@kne-components/components-core 0.2.13 → 0.2.14
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 +128 -128
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.5dc98c3e.chunk.css +2 -0
- package/build/static/css/{1151.0e0f439d.chunk.css.map → 1151.5dc98c3e.chunk.css.map} +1 -1
- package/build/static/css/1153.1eeff921.chunk.css +2 -0
- package/build/static/css/1153.1eeff921.chunk.css.map +1 -0
- package/build/static/css/1154.c2ee569d.chunk.css +2 -0
- package/build/static/css/{1154.f4f205da.chunk.css.map → 1154.c2ee569d.chunk.css.map} +1 -1
- package/build/static/css/1454.50daa0d4.chunk.css +2 -0
- package/build/static/css/{1454.773ade76.chunk.css.map → 1454.50daa0d4.chunk.css.map} +1 -1
- package/build/static/css/1554.406dc716.chunk.css +2 -0
- package/build/static/css/{1554.378aab07.chunk.css.map → 1554.406dc716.chunk.css.map} +1 -1
- package/build/static/css/2503.b3280599.chunk.css +2 -0
- package/build/static/css/{2503.beef9f54.chunk.css.map → 2503.b3280599.chunk.css.map} +1 -1
- package/build/static/css/2517.682b090d.chunk.css +2 -0
- package/build/static/css/{2517.ad3e2b99.chunk.css.map → 2517.682b090d.chunk.css.map} +1 -1
- package/build/static/css/2716.d84d538b.chunk.css +2 -0
- package/build/static/css/{2716.3c6f43fb.chunk.css.map → 2716.d84d538b.chunk.css.map} +1 -1
- package/build/static/css/2730.2d23a373.chunk.css +2 -0
- package/build/static/css/{2730.860e390e.chunk.css.map → 2730.2d23a373.chunk.css.map} +1 -1
- package/build/static/css/289.949637de.chunk.css +2 -0
- package/build/static/css/{289.b138addc.chunk.css.map → 289.949637de.chunk.css.map} +1 -1
- package/build/static/css/3142.6be78baa.chunk.css +2 -0
- package/build/static/css/{3142.13adfc3a.chunk.css.map → 3142.6be78baa.chunk.css.map} +1 -1
- package/build/static/css/3333.607fcd62.chunk.css +2 -0
- package/build/static/css/{3333.2f52a976.chunk.css.map → 3333.607fcd62.chunk.css.map} +1 -1
- package/build/static/css/{3843.0a0692b4.chunk.css → 3843.24bbde3b.chunk.css} +2 -2
- package/build/static/css/{3843.0a0692b4.chunk.css.map → 3843.24bbde3b.chunk.css.map} +1 -1
- package/build/static/css/4029.cab10503.chunk.css +2 -0
- package/build/static/css/4029.cab10503.chunk.css.map +1 -0
- package/build/static/css/4265.336a9850.chunk.css +2 -0
- package/build/static/css/4265.336a9850.chunk.css.map +1 -0
- package/build/static/css/4666.2f47b197.chunk.css +2 -0
- package/build/static/css/{4666.daddc0cc.chunk.css.map → 4666.2f47b197.chunk.css.map} +1 -1
- package/build/static/css/5443.31d13381.chunk.css +2 -0
- package/build/static/css/5443.31d13381.chunk.css.map +1 -0
- package/build/static/css/5600.4f8be433.chunk.css +2 -0
- package/build/static/css/{5600.ca194700.chunk.css.map → 5600.4f8be433.chunk.css.map} +1 -1
- package/build/static/css/5873.88c6f045.chunk.css +2 -0
- package/build/static/css/{5873.ba71089f.chunk.css.map → 5873.88c6f045.chunk.css.map} +1 -1
- package/build/static/css/{5996.d5db9990.chunk.css → 5996.36ec99cc.chunk.css} +2 -2
- package/build/static/css/{5996.d5db9990.chunk.css.map → 5996.36ec99cc.chunk.css.map} +1 -1
- package/build/static/css/6611.f845c191.chunk.css +2 -0
- package/build/static/css/{6611.5ee2d32c.chunk.css.map → 6611.f845c191.chunk.css.map} +1 -1
- package/build/static/css/6779.4570887f.chunk.css +2 -0
- package/build/static/css/{6779.5644d170.chunk.css.map → 6779.4570887f.chunk.css.map} +1 -1
- package/build/static/css/7121.baa29b11.chunk.css +2 -0
- package/build/static/css/{7121.82a6e5ff.chunk.css.map → 7121.baa29b11.chunk.css.map} +1 -1
- package/build/static/css/7227.afc4b7be.chunk.css +2 -0
- package/build/static/css/{7227.86530a2a.chunk.css.map → 7227.afc4b7be.chunk.css.map} +1 -1
- package/build/static/css/8017.7d8e26b3.chunk.css +2 -0
- package/build/static/css/8017.7d8e26b3.chunk.css.map +1 -0
- package/build/static/css/{8725.f7685908.chunk.css → 8725.8cfdbe6b.chunk.css} +2 -2
- package/build/static/css/{8725.f7685908.chunk.css.map → 8725.8cfdbe6b.chunk.css.map} +1 -1
- package/build/static/css/9968.d2f68841.chunk.css +2 -0
- package/build/static/css/{931.86e57f64.chunk.css.map → 9968.d2f68841.chunk.css.map} +1 -1
- package/build/static/js/{1106.94b2f66d.chunk.js → 1106.183ac7c8.chunk.js} +2 -2
- package/build/static/js/{1106.94b2f66d.chunk.js.map → 1106.183ac7c8.chunk.js.map} +1 -1
- package/build/static/js/{1153.084c38bb.chunk.js → 1153.732c30e2.chunk.js} +3 -3
- package/build/static/js/{1153.084c38bb.chunk.js.map → 1153.732c30e2.chunk.js.map} +1 -1
- package/build/static/js/1154.ef71017d.chunk.js +2 -0
- package/build/static/js/1154.ef71017d.chunk.js.map +1 -0
- package/build/static/js/{1454.95cc1e18.chunk.js → 1454.0717db50.chunk.js} +3 -3
- package/build/static/js/{1454.95cc1e18.chunk.js.map → 1454.0717db50.chunk.js.map} +1 -1
- package/build/static/js/1554.219210ee.chunk.js +3 -0
- package/build/static/js/{1554.3483fb84.chunk.js.map → 1554.219210ee.chunk.js.map} +1 -1
- package/build/static/js/2503.a220548c.chunk.js +2 -0
- package/build/static/js/{2503.e70ef261.chunk.js.map → 2503.a220548c.chunk.js.map} +1 -1
- package/build/static/js/2517.30110c37.chunk.js +2 -0
- package/build/static/js/{2517.618e29cf.chunk.js.map → 2517.30110c37.chunk.js.map} +1 -1
- package/build/static/js/{2716.b8095105.chunk.js → 2716.720c4fd2.chunk.js} +3 -3
- package/build/static/js/{2716.b8095105.chunk.js.map → 2716.720c4fd2.chunk.js.map} +1 -1
- package/build/static/js/2730.199bd6fc.chunk.js +2 -0
- package/build/static/js/{2730.25605c83.chunk.js.map → 2730.199bd6fc.chunk.js.map} +1 -1
- package/build/static/js/{2814.ef0e78ca.chunk.js → 2814.5199ac2c.chunk.js} +2 -2
- package/build/static/js/{2814.ef0e78ca.chunk.js.map → 2814.5199ac2c.chunk.js.map} +1 -1
- package/build/static/js/{289.e8f67dbf.chunk.js → 289.a0f495ff.chunk.js} +2 -2
- package/build/static/js/{289.e8f67dbf.chunk.js.map → 289.a0f495ff.chunk.js.map} +1 -1
- package/build/static/js/{3142.1719d4a1.chunk.js → 3142.6b3185e3.chunk.js} +2 -2
- package/build/static/js/{3142.1719d4a1.chunk.js.map → 3142.6b3185e3.chunk.js.map} +1 -1
- package/build/static/js/3333.be21dc19.chunk.js +2 -0
- package/build/static/js/3333.be21dc19.chunk.js.map +1 -0
- package/build/static/js/36.ab576f7c.chunk.js +2 -0
- package/build/static/js/{36.c44b9595.chunk.js.map → 36.ab576f7c.chunk.js.map} +1 -1
- package/build/static/js/{3843.e3b94c91.chunk.js → 3843.b6cbf5c1.chunk.js} +2 -2
- package/build/static/js/{3843.e3b94c91.chunk.js.map → 3843.b6cbf5c1.chunk.js.map} +1 -1
- package/build/static/js/{4029.b169bb60.chunk.js → 4029.58606b32.chunk.js} +2 -2
- package/build/static/js/4029.58606b32.chunk.js.map +1 -0
- package/build/static/js/4265.1a0d4e24.chunk.js +2 -0
- package/build/static/js/{4265.b63b8852.chunk.js.map → 4265.1a0d4e24.chunk.js.map} +1 -1
- package/build/static/js/{4666.586b40a7.chunk.js → 4666.22bddd4a.chunk.js} +3 -3
- package/build/static/js/{4666.586b40a7.chunk.js.map → 4666.22bddd4a.chunk.js.map} +1 -1
- package/build/static/js/5443.2d0fb1ec.chunk.js +2 -0
- package/build/static/js/{5443.eb1bd9c6.chunk.js.map → 5443.2d0fb1ec.chunk.js.map} +1 -1
- package/build/static/js/5600.c595c920.chunk.js +2 -0
- package/build/static/js/{5600.81f2aef6.chunk.js.map → 5600.c595c920.chunk.js.map} +1 -1
- package/build/static/js/5873.4fa60fe1.chunk.js +2 -0
- package/build/static/js/{5873.55afd19e.chunk.js.map → 5873.4fa60fe1.chunk.js.map} +1 -1
- package/build/static/js/{5996.b6b4584c.chunk.js → 5996.af346155.chunk.js} +2 -2
- package/build/static/js/{5996.b6b4584c.chunk.js.map → 5996.af346155.chunk.js.map} +1 -1
- package/build/static/js/{6569.25ee0c69.chunk.js → 6569.99773494.chunk.js} +2 -2
- package/build/static/js/{6569.25ee0c69.chunk.js.map → 6569.99773494.chunk.js.map} +1 -1
- package/build/static/js/6611.3a3d4c3b.chunk.js +2 -0
- package/build/static/js/{6611.07e270e6.chunk.js.map → 6611.3a3d4c3b.chunk.js.map} +1 -1
- package/build/static/js/{6660.27e8f26c.chunk.js → 6660.98a9f0a4.chunk.js} +2 -2
- package/build/static/js/{6660.27e8f26c.chunk.js.map → 6660.98a9f0a4.chunk.js.map} +1 -1
- package/build/static/js/6779.1f6f4e15.chunk.js +2 -0
- package/build/static/js/{6779.c1862ff1.chunk.js.map → 6779.1f6f4e15.chunk.js.map} +1 -1
- package/build/static/js/6915.8badcfcc.chunk.js +2 -0
- package/build/static/js/{6915.3738b719.chunk.js.map → 6915.8badcfcc.chunk.js.map} +1 -1
- package/build/static/js/{7050.a624fdf7.chunk.js → 7050.f7fd28dd.chunk.js} +2 -2
- package/build/static/js/{7050.a624fdf7.chunk.js.map → 7050.f7fd28dd.chunk.js.map} +1 -1
- package/build/static/js/7121.01888343.chunk.js +2 -0
- package/build/static/js/{7121.10fd060f.chunk.js.map → 7121.01888343.chunk.js.map} +1 -1
- package/build/static/js/{7227.0aee129e.chunk.js → 7227.87a4af32.chunk.js} +3 -3
- package/build/static/js/{7227.0aee129e.chunk.js.map → 7227.87a4af32.chunk.js.map} +1 -1
- package/build/static/js/{7790.e1bcb362.chunk.js → 7790.3fa7a216.chunk.js} +2 -2
- package/build/static/js/{7790.e1bcb362.chunk.js.map → 7790.3fa7a216.chunk.js.map} +1 -1
- package/build/static/js/{8017.0adb338a.chunk.js → 8017.dd265926.chunk.js} +2 -2
- package/build/static/js/{8017.0adb338a.chunk.js.map → 8017.dd265926.chunk.js.map} +1 -1
- package/build/static/js/8643.f0fb9940.chunk.js +3 -0
- package/build/static/js/{8643.4b5aa62b.chunk.js.map → 8643.f0fb9940.chunk.js.map} +1 -1
- package/build/static/js/{8725.c77c40ca.chunk.js → 8725.6f74c5b1.chunk.js} +2 -2
- package/build/static/js/{8725.c77c40ca.chunk.js.map → 8725.6f74c5b1.chunk.js.map} +1 -1
- package/build/static/js/9968.cff2b58a.chunk.js +2 -0
- package/build/static/js/9968.cff2b58a.chunk.js.map +1 -0
- package/build/static/js/main.ea866373.js +2 -0
- package/build/static/js/main.ea866373.js.map +1 -0
- package/package.json +1 -1
- package/build/static/css/1151.0e0f439d.chunk.css +0 -2
- package/build/static/css/1153.85f06ccf.chunk.css +0 -2
- package/build/static/css/1153.85f06ccf.chunk.css.map +0 -1
- package/build/static/css/1154.f4f205da.chunk.css +0 -2
- package/build/static/css/1454.773ade76.chunk.css +0 -2
- package/build/static/css/1554.378aab07.chunk.css +0 -2
- package/build/static/css/2503.beef9f54.chunk.css +0 -2
- package/build/static/css/2517.ad3e2b99.chunk.css +0 -2
- package/build/static/css/2716.3c6f43fb.chunk.css +0 -2
- package/build/static/css/2730.860e390e.chunk.css +0 -2
- package/build/static/css/289.b138addc.chunk.css +0 -2
- package/build/static/css/3142.13adfc3a.chunk.css +0 -2
- package/build/static/css/3333.2f52a976.chunk.css +0 -2
- package/build/static/css/4029.3296f349.chunk.css +0 -2
- package/build/static/css/4029.3296f349.chunk.css.map +0 -1
- package/build/static/css/4265.cc94dd41.chunk.css +0 -2
- package/build/static/css/4265.cc94dd41.chunk.css.map +0 -1
- package/build/static/css/4666.daddc0cc.chunk.css +0 -2
- package/build/static/css/5443.35cb414e.chunk.css +0 -2
- package/build/static/css/5443.35cb414e.chunk.css.map +0 -1
- package/build/static/css/5600.ca194700.chunk.css +0 -2
- package/build/static/css/5873.ba71089f.chunk.css +0 -2
- package/build/static/css/6611.5ee2d32c.chunk.css +0 -2
- package/build/static/css/6779.5644d170.chunk.css +0 -2
- package/build/static/css/7121.82a6e5ff.chunk.css +0 -2
- package/build/static/css/7227.86530a2a.chunk.css +0 -2
- package/build/static/css/8017.30097e6b.chunk.css +0 -2
- package/build/static/css/8017.30097e6b.chunk.css.map +0 -1
- package/build/static/css/931.86e57f64.chunk.css +0 -2
- package/build/static/js/1154.bf6eb17b.chunk.js +0 -2
- package/build/static/js/1154.bf6eb17b.chunk.js.map +0 -1
- package/build/static/js/1554.3483fb84.chunk.js +0 -3
- package/build/static/js/2503.e70ef261.chunk.js +0 -2
- package/build/static/js/2517.618e29cf.chunk.js +0 -2
- package/build/static/js/2730.25605c83.chunk.js +0 -2
- package/build/static/js/3333.2d80e8a4.chunk.js +0 -2
- package/build/static/js/3333.2d80e8a4.chunk.js.map +0 -1
- package/build/static/js/36.c44b9595.chunk.js +0 -2
- package/build/static/js/4029.b169bb60.chunk.js.map +0 -1
- package/build/static/js/4265.b63b8852.chunk.js +0 -2
- package/build/static/js/5443.eb1bd9c6.chunk.js +0 -2
- package/build/static/js/5600.81f2aef6.chunk.js +0 -2
- package/build/static/js/5873.55afd19e.chunk.js +0 -2
- package/build/static/js/6611.07e270e6.chunk.js +0 -2
- package/build/static/js/6779.c1862ff1.chunk.js +0 -2
- package/build/static/js/6915.3738b719.chunk.js +0 -2
- package/build/static/js/7121.10fd060f.chunk.js +0 -2
- package/build/static/js/8643.4b5aa62b.chunk.js +0 -3
- package/build/static/js/931.25d5f1b7.chunk.js +0 -2
- package/build/static/js/931.25d5f1b7.chunk.js.map +0 -1
- package/build/static/js/main.1547f954.js +0 -2
- package/build/static/js/main.1547f954.js.map +0 -1
- /package/build/static/js/{1153.084c38bb.chunk.js.LICENSE.txt → 1153.732c30e2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1454.95cc1e18.chunk.js.LICENSE.txt → 1454.0717db50.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.3483fb84.chunk.js.LICENSE.txt → 1554.219210ee.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.b8095105.chunk.js.LICENSE.txt → 2716.720c4fd2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.586b40a7.chunk.js.LICENSE.txt → 4666.22bddd4a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.0aee129e.chunk.js.LICENSE.txt → 7227.87a4af32.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{8643.4b5aa62b.chunk.js.LICENSE.txt → 8643.f0fb9940.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),r=n(73884),a=n(96418),l=n.n(a),o=n(83136),i=n.n(o);const c={scroller:"style_scroller__EfuqR__vpO+I","scroller-inner":"style_scroller-inner__NJSE0__vpO+I","is-moving":"style_is-moving__jGuy0__vpO+I"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...a}=e;const l=(0,r.useRef)(0),[o,d]=(0,r.useState)(!1),p=(0,r.useRef)(o);p.current=o;const _=(0,r.useRef)(t);_.current=t;const h=(0,r.useRef)(1);return h.current=a.width/a.innerWidth,(0,r.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)(a.hasScroller?(0,u.jsx)("div",{className:c.scroller,style:{left:a.left,width:a.width,height:15},children:(0,u.jsx)("div",{className:i()(c["scroller-inner"],{[c["is-moving"]]:o}),style:{width:a.innerWidth,left:a.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:a}=e;const[o,p]=(0,r.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),_=(0,r.useRef)(null),h=l()((()=>_.current&&s(_.current))),m=(0,r.useRef)();return m.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,r.useEffect)((()=>{const e=m.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:s,top:r,height:a}=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?r+a-e.offsetHeight>0&&r<e.offsetHeight:r<c.top+c.height&&r+a>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:[a,(0,u.jsx)(d,{...o,getContainer:m.current,onScroll:e=>{h().scrollLeft+=e}})]}):a};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:()=>v,useFeatureCall:()=>f});var s=n(73884),r=n(76329),a=n(33097),l=n.n(a),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 r=n.get(e);return-1!==s.indexOf(e)&&!0!==r.close&&l()(r,"dependencies",[]).every((t=>{const r=n.get(e);return s.indexOf(t)>-1&&!0!==r.close}))},m=(0,s.createContext)(null),{Provider:g}=m,f=e=>{const{features:t,profile:n,profileMap:a,debug:o}=(()=>{const e=(0,r.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:a})),a.get(u))}),[t,a,o,u]),{isPass:!(e&&t&&t.length>0)||h(u,{features:t,profileMap:a}),currentId:u,feature:a.get(u)}},v=e=>{let{id:t,children:n}=e;const{isPass:s,feature:r,currentId:a}=f(t);return(0,d.jsx)(g,{value:a,children:"function"===typeof n?n({isPass:s,options:s?l()(r,"options"):l()(r,"rejectedOptions"),currentId:a}):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 r=n(58609),a=n(64671),l=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__vpO+I",u="style_inner__bMKeU__vpO+I",d="style_content__xTfWZ__vpO+I",p="style_link__93j7O__vpO+I";var _=n(48731),h=n(70579);const m=e=>{let{name:t,className:n}=e;return(0,h.jsx)(r.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)(a.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)(a.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),r=n(73884);const a={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,r.createContext)({}),{Provider:o,Consumer:i}=l,c=()=>(0,r.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 v={layout:"style_layout__k+lxR__vpO+I","page-content":"style_page-content__4XeN8__vpO+I","page-main":"style_page-main__P0yEF__vpO+I","page-main-content":"style_page-main-content__1OVPN__vpO+I","table-page":"style_table-page__JkbLf__vpO+I","helper-guide":"style_helper-guide__vzw4z__vpO+I","page-outer":"style_page-outer__2a6iH__vpO+I","no-margin":"style_no-margin__S6caT__vpO+I","page-menu":"style_page-menu__CZSa9__vpO+I",closed:"style_closed__hmnft__vpO+I","page-menu-inner":"style_page-menu-inner__rmKpu__vpO+I","page-menu-main":"style_page-menu-main__OXg2M__vpO+I","page-option-main":"style_page-option-main__LyfT3__vpO+I","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__vpO+I","page-option":"style_page-option__diS2S__vpO+I","page-option-inner":"style_page-option-inner__Fj1JH__vpO+I","page-option-footer":"style_page-option-footer__d7xE0__vpO+I","fixed-container":"style_fixed-container__1VZwY__vpO+I","is-fixed":"style_is-fixed__1aQhp__vpO+I","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__vpO+I","page-menu-btn":"style_page-menu-btn__BiTy8__vpO+I","page-title":"style_page-title__zw-Fd__vpO+I","page-title-text":"style_page-title-text__Rj4RC__vpO+I","no-padding":"style_no-padding__V7Dwy__vpO+I","page-header":"style_page-header__a813p__vpO+I","page-header-info":"style_page-header-info__cMrZR__vpO+I","layout-menu":"style_layout-menu__yiab0__vpO+I","sub-menu":"style_sub-menu__dyqK7__vpO+I","no-collapsed":"style_no-collapsed__76h8W__vpO+I","has-not-children":"style_has-not-children__fnjRK__vpO+I","table-page-top":"style_table-page-top__bt1l9__vpO+I","error-component":"style_error-component__HvghB__vpO+I","state-bar-page":"style_state-bar-page__+aUM4__vpO+I","back-icon":"style_back-icon__79v2G__vpO+I"};var y=n(70579);const x=e=>{let{className:t,isFixed:n,children:s}=e;return n?(0,y.jsx)("div",{className:f()(t,"fixed-container",v["fixed-container"],{[v["is-fixed"]]:n}),children:s}):(0,y.jsx)("div",{className:f()(t,"fixed-container",v["fixed-container"]),children:s})};var j=n(64671),b=n(17342),O=n(94679),I=n(33097),N=n.n(I),C=n(55490),w=n(25644);const P="CORE_PAGE_MENU_OPEN_KEY",k=()=>{const{pageProps:e,setPageProps:t}=c(),{menu:n,menuOpen:r,menuWidth:a,menuFixed:l,menuCloseButton:o}=e,i=(0,O.useLocation)().pathname.split("/")[1];return n?(0,y.jsxs)(s.Col,{className:f()(v["page-menu"],{[v.closed]:!r}),style:{"--width":a},children:[(0,y.jsx)(x,{className:v["page-menu-inner"],isFixed:l,children:(0,y.jsx)("div",{className:v["page-menu-main-outer"],children:(0,y.jsx)(b.A,{className:v["page-menu-main"],children:n})})}),o?(0,y.jsx)(x,{className:f()(v["page-menu-btn-outer"],{[v["is-fixed"]]:l}),isFixed:l,children:(0,y.jsx)(s.Button,{className:f()(v["page-menu-btn"],{[v.closed]:!r}),icon:r?(0,y.jsx)(j.default,{type:"icon-arrow-bold-left"}):(0,y.jsx)(j.default,{type:"icon-arrow-bold-right"}),onClick:()=>{t({menuOpen:!e.menuOpen});const n=w.A.getItem(P)||{};n[i]=!e.menuOpen,w.A.setItem(P,n),t({menuOpen:!e.menuOpen})}})}):null]}):null},E=e=>{let{children:t,isPass:n,...l}=e;const{setPageProps:o}=c(),i=(0,r.useRef)(null),u=(()=>{const e=(0,O.useLocation)().pathname.split("/")[1];return(0,r.useMemo)((()=>{const t=w.A.getItem(P)||{};return!(0,C.A)(N()(t,e))||N()(t,e)}),[e])})(),d=(0,r.useRef)(u);return d.current=u,(0,r.useEffect)((()=>{if(!h()(i.current,l)){i.current=l;const e=Object.assign({},a,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},L=e=>{let{featureId:t,name:n,openFeatures:s,...a}=e;return!0===s?(0,y.jsx)(m.default,{id:n,children:e=>{let{isPass:t}=e;return(0,r.createElement)(E,{...a,key:n,isPass:t})}}):(0,r.createElement)(E,{...a,key:n})};L.defaultProps=a;const K=L,S=e=>{let{isFixed:t,offsetTop:n,offsetBottom:r,onChange:a,...l}=e;return t?(0,y.jsx)(s.Affix,{...l,offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:r,onChange:a}):(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,r.useRef)(null);return(0,r.useLayoutEffect)((()=>{const e=()=>{n({[t]:s.current.offsetHeight})};e();const r=new MutationObserver(e);return r.observe(s.current,{subtree:!0,childList:!0}),()=>{r.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:v["page-header"],offsetTop:u.navigationHeight,children:(0,y.jsx)(A,{targetKey:"headerHeight",children:t})}):null},F=()=>{const{pageProps:e}=c(),{headerInfo:t}=e,n=(0,r.useRef)(null);return t?(0,y.jsx)("div",{ref:n,className:f()(v["page-header-info"],"page-header-info"),children:t}):null};var M=n(16915);const H=e=>{let{title:t,filter:n,titleExtra:r,titleLeftExtra:a,backUrl:l}=e;const o=(0,O.useNavigate)();return n?(0,y.jsx)(M.default,{className:v["page-title"],...n,extra:r}):t||a||r?(0,y.jsxs)(s.Row,{justify:"space-between",align:"middle",className:v["page-title"],children:[(0,y.jsx)(s.Col,{children:(0,y.jsxs)(s.Space,{children:[t?(0,y.jsx)("div",{className:v["page-title-text"],children:l?(0,y.jsxs)(s.Space,{children:[(0,y.jsx)("span",{className:v["back-icon"],onClick:()=>{o(l)},children:(0,y.jsx)(j.default,{type:"icon-arrow-thin-left"})}),(0,y.jsx)("span",{children:t})]}):t}):null,a||null]})}),(0,y.jsx)(s.Col,{children:r})]}):null},T=()=>{const{pageProps:e}=c(),{option:t,optionWidth:n,optionFixed:r,optionFooter:a,optionFooterHeight:l,optionNoPadding:o}=e;return t?(0,y.jsx)(s.Col,{className:f()(v["page-option"],"page-option"),style:{"--width":n,"--foot-height":l+"px"},children:(0,y.jsxs)(x,{className:v["page-option-inner"],isFixed:r,children:[(0,y.jsx)(b.A,{className:f()(v["page-option-main"],"page-option-main"),style:{padding:o?"0px":"var(--padding-width)"},children:t}),a?(0,y.jsx)(A,{className:v["page-option-footer"],targetKey:"optionFooterHeight",children:(0,y.jsx)(s.Space,{align:"center",children:a})}):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,r.useState)(0),[p,_]=(0,r.useState)(Object.assign({},a)),{permissions:h}=(0,q.usePermissions)(),m=(0,r.useCallback)((e=>_((t=>Object.assign({},t,e)))),[]);return(0,r.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:v.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:v["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)(F,{})}),(0,y.jsx)(U,{children:(0,y.jsxs)(s.Row,{className:f()(p.className,v["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)(k,{})}),(0,y.jsx)(s.Col,{className:f()(v["page-content"],{[v["no-margin"]]:p.noMargin}),flex:1,style:{"--background-color":p.backgroundColor},children:(0,y.jsxs)("div",{className:v["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()(v["page-main-content"],{[v["no-padding"]]:p.noPadding}),children:(0,y.jsxs)(U,{children:[p.helperGuideName&&(0,y.jsx)(W.default,{className:v["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,r.forwardRef)(((e,t)=>{let{helperGuideName:n,permissions:s,page:a,openFeatures:l,name:o,topArea:i,...c}=e;const[u,d]=(0,r.useState)(null);return(0,y.jsxs)(X,{name:o,openFeatures:l,permissions:s,...a,children:[i?(0,y.jsx)("div",{className:v["table-page-top"],children:"function"===typeof i?i(u):i}):null,(0,y.jsxs)("div",{className:v["table-page"],children:[n&&(0,y.jsx)(W.default,{className:f()("helper-guide",v["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:r,children:a,...l}=e;return(0,y.jsxs)(X,{...s,permissions:n,...l,children:[(0,y.jsx)("div",{className:v["state-bar-page"],children:(0,y.jsx)(D.default,{...r})}),t&&(0,y.jsx)(W.default,{className:v["helper-guide"],name:t}),a]})}},28148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y});const s={menu:"style_menu__gvIvn__vpO+I","all-no-start-icon":"style_all-no-start-icon__CA+zR__vpO+I","no-start-icon":"style_no-start-icon__LnC1S__vpO+I","has-children":"style_has-children__m9tce__vpO+I","has-children-node":"style_has-children-node__2bhEB__vpO+I","is-root":"style_is-root__4hhOc__vpO+I",title:"style_title__+Hcar__vpO+I",active:"style_active__WU49K__vpO+I","no-collapse":"style_no-collapse__aIZBM__vpO+I","title-content":"style_title-content__cQXpK__vpO+I",loading:"style_loading__1pU4P__vpO+I"};var r=n(83136),a=n.n(r),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:r,label:c,iconType:u,path:p,request:_,onClick:h,isOpen:f,isSelected:v,onOpenChange:y,children:x,fetchOptions:j,depth:b,onLoad:O,allowCollapsed:I}=e,N=Array.isArray(x)&&x.length>0||j,{refresh:C,isLoading:w}=(0,m.useFetch)(Object.assign({},j,{auto:!I&&j,onRequestSuccess:e=>{O(e)}}));return(0,g.jsx)(i.default,{request:_,children:(0,g.jsxs)("div",{className:a()(r,s["menu-item"]),children:[(0,g.jsxs)("div",{className:a()(s.title,{[s.active]:v,[s["has-children"]]:N,[s["no-collapse"]]:N&&!I,[s["no-start-icon"]]:!u,[s["is-root"]]:0===b}),onClick:s=>{s.stopPropagation(),N||!p?N||j?I&&(j&&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}),N&&I&&(0,g.jsx)(d.default,{type:f?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),N?!I||f&&x?(0,g.jsx)("div",{className:s["children-list"],children:x}):!I||f&&w?(0,g.jsx)("div",{className:s["children-list"],children:(0,g.jsx)(l.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},v=e=>{let{className:t,allowCollapsed:n,...r}=e;const{pathname:l,search:i}=(0,o.useLocation)(),[c,d]=u()(r,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[_,m]=u()(r,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:v,defaultOpenKeys:y,links:x,childrenKeys:j,hasStartIcon:b,hasChildren:O}=(0,p.useMemo)((()=>{var e;const{items:t,childrenKeys:n,nodeMapping:s}=(e=>{const t={},n=[],s=(e,r)=>{const{parentKey:a,depth:l}=Object.assign({parentKey:"root",depth:0,paths:[]},r);return Array.isArray(e)&&e.length>0?e.map(((e,r)=>{const o="".concat(e.key||"".concat("root"!==a?"".concat(a,"-"):"","node-").concat(r));t[a]||(t[a]=[]),t[a].push(o);const i=s(e.children,{parentKey:o,depth:l+1});t[o]&&t[a].push(...t[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:l,children:i,originItem:e});return n[o]=c,c})):null};return{items:s(e),childrenKeys:t,nodeMapping:n}})(_);let r=!1,a=!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&&(r=!0),t.path&&l.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(a=!0,o.push(t.key))})),{defaultOpenKeys:o,links:l,items:t,childrenKeys:n,hasStartIcon:r,hasChildren:a}}),[_]);(0,p.useEffect)((()=>{const e=x.find((e=>{let{path:t}=e;return h()(l.replace(/[#,?].*/,""))===h()(t)||h()(l+i)===h()(t)}));e&&d(e.key)}),[x,l,i,d]);const[I,N]=u()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||y}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),C=(0,p.useCallback)(((e,t)=>{const{parentKey:s,depth:r,selectedKey:a,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:r,allowCollapsed:n,isSelected:i===a||j[i]&&j[i].indexOf(a)>-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:()=>{N((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:r+1,selectedKey:a,openKeys:l,paths:[...o,i]}))})):null}),[m,N,d,j,n]);return(0,g.jsx)("div",{className:a()(t,s.menu,{[s["all-no-start-icon"]]:!b,[s["has-children-node"]]:O}),children:C(v,{selectedKey:c,openKeys:I})})};v.defaultProps={defaultItems:[],allowCollapsed:!0};const y=v},79329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P,navigationHeight:()=>N});var s=n(55199),r=n(94679),a=n(33097),l=n.n(a),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__vpO+I",g="style_navigation__60RrS__vpO+I",f="style_is-fixed__kHFWj__vpO+I",v="style_navigation-logo__q9qHu__vpO+I",y="style_logo__lB9RC__vpO+I",x="style_navigation-list__EYtkg__vpO+I",j="style_navigation-options__0BdJU__vpO+I",b="style_more-icon__gNMnt__vpO+I";var O=n(70579);const{Header:I}=s.Layout,N=48,C=e=>{let{name:t,mapping:n,defaultTitle:s}=e;const r=(0,o.useRef)({mapping:n,defaultTitle:s});return(0,o.useEffect)((()=>{const e=l()(r.current.mapping.get(t),"title");document.title=(e?e+"-":"")+r.current.defaultTitle}),[t]),null},w=e=>{let{permissions:t,list:n,headerLogo:a,rightOptions:i,isFixed:N,showIndex:w,indexLabel:P,defaultTitle:k,overflowedIndicator:E,base:L,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,r.useNavigate)(),F=(0,r.useLocation)(),M=(0,o.useRef)(),H=(0,o.useRef)(null),[T,W]=(0,o.useState)("\u66f4\u591a"),q=F.pathname.replace(new RegExp("^".concat(L)),"").split("/")[1],B=q?l()(Array.from(A.entries()).find((e=>{let[n,{path:s,permission:r}]=e;return-1!==("function"===typeof s?s(r,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=!!w&&{label:P||(0,O.jsx)(_.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{K&&K("/"),setTimeout((()=>{R("/")}),0)}};return(0,O.jsxs)(_.IntlProvider,{importMessages:p,moduleName:"Navigation",children:[(0,O.jsx)(_.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,O.jsx)(C,{defaultTitle:k||e,mapping:A,name:B})}),(0,O.jsx)("div",{className:c()(m,S),children:(0,O.jsx)(I,{className:c()("navigation",g,{[f]:N}),children:(0,O.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,O.jsx)(s.Col,{className:c()("navigation-logo",v),children:(0,O.jsx)(d.default,{className:c()(y),src:u,alt:"logo",...a})}),(0,O.jsx)(s.Col,{ref:M,flex:1,className:c()("navigation-list",x),children:(0,O.jsx)(s.Menu,{selectedKeys:[B],mode:"horizontal",overflowedIndicator:E||(0,O.jsxs)(s.Space,{size:4,children:[(0,O.jsx)("span",{children:T||(0,O.jsx)(_.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,O.jsx)("span",{className:b,children:(0,O.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:r,permission:a}]=e;const l="function"===typeof r?r(a,t):r;return{label:s,key:n,onClick:()=>{K&&K(l),setTimeout((()=>{R(l)}),0)}}}))]})}),(0,O.jsx)(s.Col,{className:j,children:i})]})})})]})};w.defaultProps={isFixed:!0,permissions:[],list:[],showIndex:!0,base:""};const P=w},29053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{computedIsPass:()=>p,default:()=>g,usePermissions:()=>_,usePermissionsPass:()=>h});var s=n(73884),r=n(55199),a=n(33097),l=n.n(a),o=n(83136),i=n.n(o);const c="style_outer__vbHB9__vpO+I";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:a,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)(r.Result,{status:"403",subTitle:l}):"tooltip"===t?(0,d.jsx)(r.Tooltip,{title:l,children:(0,s.createElement)(a,{...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),r=n(83136),a=n.n(r);const l={"state-bar":"style_state-bar__3jfis__vpO+I","has-children":"style_has-children__oQDqU__vpO+I","tab-tab-control":"style_tab-tab-control__SopeO__vpO+I","tab-radio-control":"style_tab-radio-control__R8X6-__vpO+I","tab-step-control":"style_tab-step-control__EQaCl__vpO+I","inner-state-bar":"style_inner-state-bar__lWmOz__vpO+I"};var o=n(70579);const i=e=>{let{className:t,type:n="tab",stateOption:r=[],isInner:i,...c}=e;return(0,o.jsx)(s.Tabs,{...c,"data-testid":"components-core-state-bar",className:a()(l["state-bar"],l["tab-".concat(n,"-control")],t,{[l["inner-state-bar"]]:i,[l["has-children"]]:r.some((e=>!!e.children))}),style:{"--total-count":r.length},animated:!1,items:r.map((e=>{let{tab:t,label:n,key:s,...r}=e;return{label:t||n,key:s,...r}}))})}},94710:e=>{e.exports=function(e,t,n,s){for(var r=-1,a=null==e?0:e.length;++r<a;){var l=e[r];t(s,l,n(l),e)}return s}},32952:(e,t,n)=>{var s=n(45652);e.exports=function(e,t,n,r){return s(e,(function(e,s,a){t(r,e,n(e),a)})),r}},45652:(e,t,n)=>{var s=n(94664),r=n(76516)(s);e.exports=r},75816:e=>{e.exports=function(e,t,n,s){for(var r=e.length,a=n+(s?1:-1);s?a--:++a<r;)if(t(e[a],a,e))return a;return-1}},99910:e=>{e.exports=function(e,t){for(var n,s=-1,r=e.length;++s<r;){var a=t(e[s]);void 0!==a&&(n=void 0===n?a:n+a)}return n}},19449:(e,t,n)=>{var s=n(94710),r=n(32952),a=n(9096),l=n(54052);e.exports=function(e,t){return function(n,o){var i=l(n)?s:r,c=t?t():{};return i(n,e,a(o,2),c)}}},76516:(e,t,n)=>{var s=n(6571);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!s(n))return e(n,r);for(var a=n.length,l=t?a:-1,o=Object(n);(t?l--:++l<a)&&!1!==r(o[l],l,o););return n}}},21844:(e,t,n)=>{var s=n(75816),r=n(9096),a=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=a(n),c=n<0?l(i+c,0):o(c,i-1)),s(e,r(t,3),c,!0)}},39835:(e,t,n)=>{var s=n(71775),r=n(19449),a=Object.prototype.hasOwnProperty,l=r((function(e,t,n){a.call(e,n)?e[n].push(t):s(e,n,[t])}));e.exports=l},79160:(e,t,n)=>{var s=n(16913),r=n(22761);e.exports=function(e){return"number"==typeof e||r(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),r=n(99910);e.exports=function(e,t){return e&&e.length?r(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.b63b8852.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5443],{42787:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(10486),s=n(73884),o=n(96418),l=n.n(o),a=n(83136),c=n.n(a);const i={scroller:"style_scroller__EfuqR__vpO+I","scroller-inner":"style_scroller-inner__NJSE0__vpO+I","is-moving":"style_is-moving__jGuy0__vpO+I"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...o}=e;const l=(0,s.useRef)(0),[a,d]=(0,s.useState)(!1),m=(0,s.useRef)(a);m.current=a;const h=(0,s.useRef)(t);h.current=t;const p=(0,s.useRef)(1);return p.current=o.width/o.innerWidth,(0,s.useEffect)((()=>{const e=e=>{m.current&&h.current(p.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,r.createPortal)(o.hasScroller?(0,u.jsx)("div",{className:i.scroller,style:{left:o.left,width:o.width,height:15},children:(0,u.jsx)("div",{className:c()(i["scroller-inner"],{[i["is-moving"]]:a}),style:{width:o.innerWidth,left:o.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,d(!0)}})}):null,n()||document.body)},m=e=>{let{className:t,scroller:n,getScrollTarget:r,children:o}=e;const[a,m]=(0,s.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),h=(0,s.useRef)(null),p=l()((()=>h.current&&r(h.current))),g=(0,s.useRef)();return g.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,s.useEffect)((()=>{const e=g.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:r,top:s,height:o}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,a=r*t.clientWidth/t.scrollWidth-6,c=t.scrollLeft*t.clientWidth/t.scrollWidth+2,i=e.getBoundingClientRect();m((u=>Object.assign({},u,{left:n,width:r,innerLeft:c,innerWidth:a,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+o-e.offsetHeight>0&&s<e.offsetHeight:s<i.top+i.height&&s+o>i.top+i.height)})))},r=new ResizeObserver(n);return new ResizeObserver((()=>{t=p(),t&&(r.disconnect(),n(),Array.from(t.children).forEach((e=>{r.observe(e)})),t.addEventListener("scroll",n))})).observe(h.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[p]),n?(0,u.jsxs)("div",{className:c()(i["scroller-outer"],t),ref:h,style:{"--scroller-bar-height":null!==a&&void 0!==a&&a.hasScroller?"15px":"0px"},children:[o,(0,u.jsx)(d,{...a,getContainer:g.current,onScroll:e=>{p().scrollLeft+=e}})]}):o};m.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const h=m},63361:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_,useFeatureCall:()=>x});var r=n(73884),s=n(76329),o=n(33097),l=n.n(o),a=n(15797),c=n.n(a),i=n(1488),u=n.n(i),d=n(70579);const m=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{m(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),m(e.children,t,n?n+":"+e.id:e.id)))},h=c()((e=>{const t=(()=>{const t=new Map;return m(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),p=(e,t)=>{let{profileMap:n,features:r}=t;const s=n.get(e);return-1!==r.indexOf(e)&&!0!==s.close&&l()(s,"dependencies",[]).every((t=>{const s=n.get(e);return r.indexOf(t)>-1&&!0!==s.close}))},g=(0,r.createContext)(null),{Provider:f}=g,x=e=>{const{features:t,profile:n,profileMap:o,debug:a}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},h(t),{debug:n})})(),c="system"===n.type?n.id:"root",i=(0,r.useContext)(g),u=i?i+":"+e:c+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&a&&console.log("[featureId] ".concat(u,",[state] ").concat(p(u,{features:t,profileMap:o})),o.get(u))}),[t,o,a,u]),{isPass:!(e&&t&&t.length>0)||p(u,{features:t,profileMap:o}),currentId:u,feature:o.get(u)}},_=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:o}=x(t);return(0,d.jsx)(f,{value:o,children:"function"===typeof n?n({isPass:r,options:r?l()(s,"options"):l()(s,"rejectedOptions"),currentId:o}):r&&n})}},27777:(e,t,n)=>{n.r(t),n.d(t,{Table:()=>B,default:()=>X});var r=n(55199),s=n(73884),o=n(96418),l=n.n(o),a=n(87558),c=n.n(a),i=n(83136),u=n.n(i),d=n(33097),m=n.n(d),h=n(42787),p=n(76801),g=n(60262),f=n.n(g),x=n(56641),_=n.n(x),y=n(51941);const C={"loading-container":"style_loading-container__tATe2__vpO+I","width-changer":"style_width-changer__2ZxQE__vpO+I","table-changer-setting":"style_table-changer-setting__vHBi5__vpO+I","width-changer-sign":"style_width-changer-sign__JpI-0__vpO+I","columns-control":"style_columns-control__Yt34Y__vpO+I","columns-control-content":"style_columns-control-content__1wnZG__vpO+I","columns-control-content-title":"style_columns-control-content-title__MsQpI__vpO+I","columns-control-content-scroller":"style_columns-control-content-scroller__VEy4q__vpO+I","columns-control-content-footer":"style_columns-control-content-footer__rvk74__vpO+I","columns-control-content-input":"style_columns-control-content-input__fYYyr__vpO+I","columns-control-content-list":"style_columns-control-content-list__wepM4__vpO+I","columns-control-content-item":"style_columns-control-content-item__1cPXT__vpO+I","is-drag":"style_is-drag__HRe9m__vpO+I","columns-control-content-item-icon":"style_columns-control-content-item-icon__oku-X__vpO+I","sortable-drag":"style_sortable-drag__N6+aC__vpO+I","sortable-ghost":"style_sortable-ghost__EbwXI__vpO+I","columns-control-overlay":"style_columns-control-overlay__QYEXZ__vpO+I"};var v=n(76329),j=n(70579);const b=e=>"TH"===e.tagName.toUpperCase()&&[].indexOf.call(e.classList,"ant-table-cell")>-1&&-1===[].indexOf.call(e.classList,"ant-table-selection-column")?e:null!==e.parentElement&&e.parentElement!==document.body&&b(e.parentElement),w=e=>{let{columns:t,setData:n,name:r,initColumnsData:o}=e;const c=(0,s.useRef)(null),i=(0,s.useRef)(r);i.current=r;const d=(0,s.useMemo)((()=>new Map(t.map((e=>[e.key,e])))),[t]),m=(0,s.useRef)(d);m.current=d;const{tablePageServerApis:h}=(0,v.usePreset)(),p=(0,y.useDebouncedCallback)((()=>{(0,a.getCache)().delByCacheName("TABLE_CONFIG_".concat(i.current)),h&&h.setDataFunc&&(h.setDataFunc(i.current,k),n(k))}),1e3),[g,x]=(0,s.useState)(!1),w=(0,s.useRef)(!1),I=(0,s.useRef)({index:-1,width:0}),[A,S]=(0,s.useState)({}),O=(0,s.useRef)(0),E=(0,s.useCallback)((()=>o&&o.length>0&&t.length===o.length&&_()(t,o,((e,t)=>e.key===t.id))?o.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})):t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})))),[o,t]);(0,s.useEffect)((()=>{L(E())}),[E]);const[k,L]=(0,s.useState)(E),N=l()((e=>{L(e),p()})),R=(0,s.useRef)(k),M=(0,s.useRef)(k);R.current=M.current=k;const P=l()((()=>{const e=t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})));M.current=e,N(e)}));return(0,s.useEffect)((()=>{if(!c.current)return;const e=e=>{const t=e.target;w.current||t.classList.contains("changer-sign")||b(t)||x(!1)},t=()=>{document.body.style.cursor="unset",w.current=!1,I.current={index:-1,width:0},x(!1)};return c.current.addEventListener("mousemove",(e=>{const t=b(e.target)||e.target,{left:n,top:r}=c.current.getBoundingClientRect(),{left:s,width:o,height:l}=t.getBoundingClientRect(),a=c.current.querySelector(".ant-table-thead"),i=a.getBoundingClientRect().top,u=Array.from(a.querySelectorAll("th")),d=Array.from(a.querySelectorAll("th:not(.ant-table-selection-column)"));if(!w.current&&b(t)&&0<e.pageX-s+8&&(I.current={index:d.indexOf(t),locationIndex:u.indexOf(t),width:o,left:s,height:l},S({left:s-n+o-8,top:i-r,height:l}),x(!0)),!w.current&&b(t)&&0>e.pageX-s+8&&x(!1),w.current&&I.current.index>-1){const t=e.pageX-O.current,n=(c.current.querySelector(".ant-table-body")||c.current.querySelector(".ant-table-content")).scrollLeft,s=Math.max(t+I.current.width,100);S({left:Math.max(f()(u.slice(0,I.current.locationIndex).map((e=>e.clientWidth)))-n,0)+s-8,top:i-r,height:I.current.height}),N((e=>{const t=e.slice(0);return t.filter((e=>{let{hidden:t}=e;return!0!==t})).forEach(((e,t)=>{var n;e.width=I.current.index===t?s:(null===(n=d[t])||void 0===n?void 0:n.clientWidth)||100})),t}))}}),!0),window.addEventListener("mouseup",t),document.addEventListener("mousemove",e,!0),()=>{document.removeEventListener("mousemove",e,!0),window.removeEventListener("mouseup",t)}}),[P,N]),{ref:c,sign:g&&(0,j.jsx)("div",{className:u()(C["width-changer-sign"],"changer-sign"),style:{top:A.top,left:A.left,height:A.height},onMouseDown:e=>{e.preventDefault(),w.current=!0,O.current=e.pageX,document.body.style.cursor="url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAMAAACgaw2xAAAANlBMVEUAAAAjIyMiIiIhISEjIyMiIiIhISEiIiIjIyMiIiIjIyMjIyMiIiIiIiIiIiIiIiIiIiL///8npLH6AAAAEHRSTlMAZm9zdnd7gISIjKq78fL+6p9oYgAAAAFiS0dEEeK1PboAAAA/SURBVBgZ1cGJDYAgEEXBh7JyKPj7r9ZkQyKUwAx7yhfurCyyDHe8lUlRf4auws/U7qHJmJgSLslYxIALkS192tYB4NtE/LQAAAAASUVORK5CYII=",") 12 10,col-resize")}}),targetColumns:k.filter((e=>{let{hidden:t}=e;return!0!==t})).map((e=>{let{id:t,width:n}=e;return Object.assign({},d.get(t),{width:n,ellipsis:!1})})),popupColumns:M.current,columnMap:m.current,setColumns:e=>{M.current=e},onConfirm:()=>{N(M.current)},onCancel:()=>{M.current=R.current},onReset:()=>{P()}}},I=e=>{const t=(0,a.withFetch)(e);return n=>{const{name:r,controllerOpen:s}=n,{tablePageServerApis:o}=(0,v.usePreset)();return s&&r&&o&&o.getDataApi?(0,j.jsx)(t,{...n,...o.getDataApi(r),cache:"TABLE_CONFIG_".concat(r),isLocal:!0,ttl:5e3,error:(0,j.jsx)(e,{...n})}):(0,j.jsx)(e,{...n})}};var A=n(74529);const S=n.n(A)()(I,(e=>t=>{let{name:n,controllerOpen:r,columns:s,data:o,setData:l,...a}=t;const{ref:c,targetColumns:i,sign:d}=w({columns:s,name:n,initColumnsData:o,setData:l});return r?(0,j.jsxs)("div",{className:u()(C["width-changer"],"table-page-columns-width-changer"),ref:c,children:[(0,j.jsx)(e,{...a,name:n,controllerOpen:r,originColumns:s,tableColumnFetchApi:{data:o,setData:l},columns:i}),d]}):(0,j.jsx)(e,{columns:s,controllerOpen:r,originColumns:s,name:n,...a})}));var O=n(63361);const E=e=>({"en-US":()=>n.e(6222).then(n.bind(n,86222)),"zh-CN":()=>n.e(6964).then(n.bind(n,56964))}[e]());var k=n(58609),L=n(39835),N=n.n(L),R=n(64671),M=n(81014),P=n(36),z=n(76441);const{Panel:D}=r.Collapse,T=e=>{let{close:t,onCancel:n,onConfirm:o,onReset:l,columns:a,setColumns:c}=e;const[i,d]=(0,s.useState)(a),[m,h]=(0,s.useState)(""),{leftFixedColumns:p,rightFixedColumns:g,visibleColumns:f,hiddenColumns:x}=(0,s.useMemo)((()=>Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},N()(i,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":e.hidden?"hiddenColumns":"visibleColumns")))),[i]),_=e=>{d(e),c(e)};return(0,j.jsxs)("div",{className:C["columns-control-content"],children:[(0,j.jsx)("div",{className:C["columns-control-content-title"],children:(0,j.jsxs)(r.Row,{align:"middle",justify:"space-between",children:[(0,j.jsx)(r.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,j.jsx)(r.Col,{children:(0,j.jsx)(r.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,j.jsx)(M.default,{type:"text",icon:(0,j.jsx)(R.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{l&&await l(),t()}})})})]})}),(0,j.jsx)("div",{className:C["columns-control-content-scroller"],children:(0,j.jsxs)(r.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,j.jsx)(D,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,j.jsxs)(r.List,{className:C["columns-control-content-list"],children:[p.map((e=>(0,j.jsx)(r.List.Item,{className:C["columns-control-content-item"],children:(0,j.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id))),(0,j.jsx)(z.ReactSortable,{list:f,filter:".ignore-elements",dragClass:C["sortable-drag"],ghostClass:C["sortable-ghost"],forceFallback:!0,setList:e=>{_([...p,...e,...x,...g])},animation:300,delayOnTouchStart:!0,delay:2,children:f.map((e=>(0,j.jsxs)(r.List.Item,{className:u()(C["columns-control-content-item"],C["is-drag"]),children:[(0,j.jsx)(R.default,{type:"icon-paixu",className:C["columns-control-content-item-icon"]}),(0,j.jsx)(r.Checkbox,{checked:!0,disabled:e.fixed,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=i.indexOf(e),r=i.slice(0);r[n]=Object.assign({},r[n],{hidden:!0}),_(r)},children:e.name})]},e.id)))}),g.map((e=>(0,j.jsx)(r.List.Item,{className:C["columns-control-content-item"],children:(0,j.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id)))]})},"active"),(0,j.jsx)(D,{header:(0,j.jsxs)(r.Row,{wrap:!1,justify:"space-between",children:[(0,j.jsx)(r.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,j.jsx)(r.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,j.jsx)(P.SearchInput,{prefix:(0,j.jsx)(R.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{h(e)},className:C["columns-control-content-input"],size:"small"})})]}),children:(0,j.jsx)(r.List,{dataSource:x.filter((e=>"string"===typeof e.name&&e.name.indexOf(m)>-1)),renderItem:e=>(0,j.jsx)(r.List.Item,{className:C["columns-control-content-item"],children:(0,j.jsx)(r.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=i.indexOf(e),r=i.slice(0);r[n]=Object.assign({},r[n],{hidden:!1,width:r[n].width||200}),_(r)},children:e.name})},e.id)})},"un-active")]})}),(0,j.jsxs)(r.Row,{className:C["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,j.jsx)(r.Col,{children:(0,j.jsx)(r.Button,{size:"small",onClick:()=>{n&&n(),t()},children:"\u53d6\u6d88"})}),(0,j.jsx)(r.Col,{children:(0,j.jsx)(M.default,{type:"primary",size:"small",onClick:async()=>{o&&await o(),t()},children:"\u786e\u5b9a"})})]})]})},F=e=>{let{columns:t,name:n,data:o,setData:l,...a}=e;const[c,i]=(0,s.useState)(!1),{popupColumns:u,columnMap:d,setColumns:h,onConfirm:p,onCancel:g,onReset:f}=w({columns:t,name:n,initColumnsData:o,setData:l});return(0,j.jsx)(r.Popover,{...a,open:c,overlayClassName:C["columns-control-overlay"],trigger:"click",autoAdjustOverflow:!1,placement:"bottomRight",content:(0,j.jsx)(T,{columns:u.map((e=>{const t=d.get(e.id);return Object.assign({},e,{name:m()(t,"titleText")||m()(t,"title")||"\u672a\u547d\u540d\u5217",fixed:m()(t,"fixed")})})),setColumns:e=>{h(e.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})))},close:()=>i(!1),onConfirm:p,onCancel:g,onReset:f}),onOpenChange:e=>i(e),children:(0,j.jsx)("span",{className:C["table-changer-setting"],children:(0,j.jsx)(R.default,{type:"icon-shezhi"})})})},B=S((e=>{let{className:t,columns:n,originColumns:s,controllerOpen:o,tableColumnFetchApi:l,name:a,scroller:c,featureId:i,...d}=e;const{data:p,setData:g}=l||{},f=e=>{let{children:t}=e;return i?(0,j.jsx)(O.default,{id:i,children:e=>t(e)}):t({})};return(e=>(0,j.jsx)(h.A,{className:"table-page-scroller",scroller:c,getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:f({children:n=>{let{options:l}=n;const c=e.filter((e=>!e.key||(!Array.isArray(m()(l,"hiddenColumns"))||-1===l.hiddenColumns.indexOf(e.key))));return(0,j.jsx)(r.Table,{...d,columns:!1===o?c:c.map(((e,t)=>c.length-1===t?{...e,title:()=>(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("span",{children:e.title}),(0,j.jsx)(F,{data:p,columns:s,setData:g,name:a})]})}:e)),className:u()(t,"table-page")})}})}))(n)})),q=(0,a.withFetch)((e=>{let{data:t,refresh:n,reload:r,requestParams:o,fetchProps:a,isComplete:i,setData:d,loadMore:h,send:p,dataFormat:g,pagination:f,scroller:x,getColumns:_,getColumnsParams:y,className:v,columns:b,featureId:w,stickyOffset:I,...A}=e;const S=l()(g),O=l()(_),L=(0,s.useMemo)((()=>S(t)),[t,S]),N={dataSource:L.list,pagination:!!f.open&&{total:L.total,showTotal:e=>(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(k.FormattedMessage,{id:"Page_Total",moduleName:"TablePage",defaultMessage:"\u5171"}),(0,j.jsx)("span",{className:C.total_text,children:e}),(0,j.jsx)(k.FormattedMessage,{id:"Page_TotalCount",moduleName:"TablePage",defaultMessage:"\u6761"})]}),current:m()(o,[f.paramsType,f.current],1),pageSize:f.defaultPageSize,onChange:f.onChange?f.onChange:(e,t)=>{e!==m()(o,[f.paramsType,f.current],1)?("refresh"===f.requestType?n:r)({[f.paramsType]:{[f.current]:e,[f.pageSize]:t}}):f.onShowSizeChange&&f.onShowSizeChange(e,t)},size:f.size,showSizeChanger:f.showSizeChanger,showQuickJumper:f.showQuickJumper},className:v,style:{"--sticky-offset":I}};return(0,j.jsx)(k.IntlProvider,{importMessages:E,moduleName:"TablePage",children:(0,j.jsx)("div",{className:u()(C["loading-container"],"loading-container",{"is-loading":!i}),children:"function"!==typeof _||b?(0,j.jsx)(B,{...A,...N,columns:b,scroller:x,featureId:w}):(0,j.jsx)(c(),{data:t,params:y,loader:e=>{let{data:t,params:n}=e;return O({data:t,params:n,formatData:L})},render:e=>{let{data:t}=e;return(0,j.jsx)(B,{...A,...N,columns:t,scroller:x,featureId:w})}})})})})),W=(0,s.forwardRef)(((e,t)=>{let{pagination:n,...r}=e;const[o,l]=(0,s.useState)(20);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",current:"currentPage",pageSize:"perPage",size:"default"},n);const a=(0,s.useMemo)((()=>{const e={};return r.params&&Object.keys(r.params).length>0&&(e.params={...r.params,[n.pageSize]:o}),r.data&&Object.keys(r.data).length>0&&(e.data={...r.data,[n.pageSize]:o}),e}),[r.params,r.data,n.pageSize,o]);return(0,j.jsx)(q,{...r,pagination:Object.assign({},{defaultPageSize:o,onShowSizeChange:(e,t)=>{l(t)}},n),...a,ref:t})}));W.defaultProps={controllerOpen:!0,size:"middle",stickyOffset:"var(--nav-height)",sticky:{getContainer:p.h},scroller:{getContainer:p.h},scroll:{x:"max-content"},rowKey:"id",pagination:{},dataFormat:e=>({list:e.pageData,total:e.totalCount})};const X=W}}]);
|
|
2
|
-
//# sourceMappingURL=5443.eb1bd9c6.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:()=>y,default:()=>C,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),i=t(58609),a=t(3382),r=t(83136),c=t.n(r);const d="style_overlay__99t5t__vpO+I",m="style_is-danger__gxyAB__vpO+I",p="style_title__EEPu2__vpO+I",h="style_content__mZZg5__vpO+I",_="style_has-title__5+PEt__vpO+I";var u=t(70579);const f=e=>{const o=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:l})((o=>{let{title:t,message:l,isDelete:r=!0,onClick:f,onCancel:g,disabled:y,showCancel:C,cancelText:x,isModal:v,okText:b,placement:j,getContainer:w,...O}=o;const{formatMessage:N}=(0,i.useIntl)({moduleName:"ConfirmButton"}),I=(0,a.useConfirmModal)();return v?(0,u.jsx)(e,{...O,disabled:y,onClick:e=>{I({type:"confirm",title:t,getContainer:w,danger:r,confirmType:r?"warning":"info",message:l||N({id:"message"}),okText:b||N(r?{id:"delete"}:{id:"confirm"}),cancelText:x||N({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:p,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()(h,{[_]:t}),children:[!t&&r?(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||N({id:"message"})]})]}),placement:j,onConfirm:f,okButtonProps:{danger:r},onCancel:g,overlayClassName:c()(d,{[m]:r}),getPopupContainer:w,disabled:y,showCancel:C,cancelText:x,okText:b||N(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...O,disabled:y})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},g=f(n.Typography.Link),y=f(n.Typography.Text),C=f(n.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>S,TabsModal:()=>k,TabsModalButton:()=>T,default:()=>N,useConfirmModal:()=>O,useModal:()=>w,useTabsModal:()=>P});var n=t(73884),l=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__vpO+I",large:"style_large__iaqVE__vpO+I","modal-body-inner":"style_modal-body-inner__4PhpA__vpO+I","modal-title":"style_modal-title__dswaw__vpO+I","modal-outer":"style_modal-outer__r3SkX__vpO+I","modal-body":"style_modal-body__jQJSI__vpO+I","right-options-modal":"style_right-options-modal__FajDP__vpO+I","right-options-row":"style_right-options-row__-mPb9__vpO+I","right-options-col":"style_right-options-col__3ilee__vpO+I","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__vpO+I",content:"style_content__k6MIF__vpO+I","modal-footer":"style_modal-footer__-prbN__vpO+I","modal-close":"style_modal-close__Oa5Kl__vpO+I","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__vpO+I","is-danger":"style_is-danger__H5110__vpO+I",title:"style_title__orTym__vpO+I","has-title":"style_has-title__qy0Wp__vpO+I"},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 p=t(81014),h=t(17342),_=t(70579);const u="Modal",f=e=>{let{options:o,children:t}=e;return o?(0,_.jsxs)(l.Row,{wrap:!1,className:a["right-options-row"],children:[(0,_.jsx)(l.Col,{span:18,className:a["right-options-col"],children:t}),(0,_.jsx)(l.Col,{span:6,className:a["right-options-col"],children:o})]}):t},g=(e,o)=>"".concat(e-48-(o?58:0),"px"),y=(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)}},C=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,_.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(l.Col,{children:(0,_.jsx)(l.Space,{children:(t||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,_.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:i,...r}=e;const c=t||p.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&&a&&a(),n}})}))})})]})},x=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:p,onCancel:u,children:f,targetProps:g}=e;const y=(0,n.useRef)(null);return(0,_.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:a["modal-title"],children:o}),(0,_.jsx)(h.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:y,children:(0,_.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,_.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,_.jsx)(C,{footer:t,footerButtons:r,onConfirm:p,onCancel:u,onClose:c,targetProps:g})}):null]})},v=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,disabledScroller:d,childrenRef:p,children:h}=e;const u=e=>(e=Object.assign({},{title:n},e),(0,_.jsx)(x,{title:m(e.title,{...e,childrenRef:p,close:s}),closable:l,onClose:s,onConfirm:i,onCancel:a,footerButtons:m(t,{...e,close:s}),disabledScroller:d,footer:m(r,{...e,childrenRef:p,close:s}),targetProps:Object.assign({},e,{childrenRef:p,close:s}),children:(0,_.jsx)(f,{options:m(c,{...e,childrenRef:p,close:s}),children:m(h,{...e,childrenRef:p,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:p,onConfirm:h,onCancel:u,closable:f,disabledScroller:g,withDecorator:C,childrenRef:x,...b}=e;return{...b,icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:p,className:i()(s,a.modal,a[d],{[a["right-options-modal"]]:t}),...y(d,!(null===n&&!l)),children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:v({withDecorator:C,title:m,closable:f,onClose:p,onConfirm:h,onCancel:u,footer:n,footerButtons:l,rightOptions:t,disabledScroller:g,children:o,childrenRef:x})})}},j=e=>{const o=(0,n.useRef)(null);return(0,_.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:i}=e.info({...s,content:l});return n.close=i,n}},O=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:r,danger:c,wrapClassName:m,message:p,iconSetting:h={},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"},h);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,_.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,_.jsxs)(l.Space,{size:0,align:"start",className:a.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon","title-icon-".concat("confirm"===n?u:n)),type:s||g["confirm"===n?u:n]}):null,r]})}),content:(0,_.jsxs)(l.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,_.jsx)(d.default,{className:i()("title-icon","title-icon-".concat("confirm"===n?u:n)),type:s||g["confirm"===n?u:n]}):null,p]})});t.close=o}return t}},N=j,I=e=>{let{items:o,className:t,activeKey:n,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.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:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},k=e=>(0,_.jsx)(N,{...I(e)}),P=()=>{const e=w();return o=>e(I(o))};var M=t(73025);const T=e=>{const o=P();return(0,_.jsx)(M.A,{...e,modalFunc:o})},S=e=>{const o=w();return(0,_.jsx)(M.A,{...e,modalFunc:o})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5600.81f2aef6.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:()=>x,ConfirmText:()=>h,default:()=>_,withConfirm:()=>g});s(73884);var n=s(55199);const i=e=>({"en-US":()=>s.e(3275).then(s.bind(s,63275)),"zh-CN":()=>s.e(5181).then(s.bind(s,25181))}[e]());var a=s(64671),l=s(58609),r=s(3382),o=s(83136),c=s.n(o);const d="style_overlay__99t5t__vpO+I",p="style_is-danger__gxyAB__vpO+I",u="style_title__EEPu2__vpO+I",m="style_content__mZZg5__vpO+I",v="style_has-title__5+PEt__vpO+I";var f=s(70579);const g=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:i})((t=>{let{title:s,message:i,isDelete:o=!0,onClick:g,onCancel:x,disabled:h,showCancel:_,cancelText:j,isModal:y,okText:N,placement:S,getContainer:C,...I}=t;const{formatMessage:w}=(0,l.useIntl)({moduleName:"ConfirmButton"}),P=(0,r.useConfirmModal)();return y?(0,f.jsx)(e,{...I,disabled:h,onClick:e=>{P({type:"confirm",title:s,getContainer:C,danger:o,confirmType:o?"warning":"info",message:i||w({id:"message"}),okText:N||w(o?{id:"delete"}:{id:"confirm"}),cancelText:j||w({id:"cancel"}),onCancel:x,onOk:g})}}):(0,f.jsx)(n.Popconfirm,{title:(0,f.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[s&&(0,f.jsxs)(n.Space,{size:0,align:"start",className:u,children:[o&&(0,f.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}),s]}),(0,f.jsxs)(n.Space,{size:0,align:"start",className:c()(m,{[v]:s}),children:[!s&&o?(0,f.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,i||w({id:"message"})]})]}),placement:S,onConfirm:g,okButtonProps:{danger:o},onCancel:x,overlayClassName:c()(d,{[p]:o}),getPopupContainer:C,disabled:h,showCancel:_,cancelText:j,okText:N||w(o?{id:"delete"}:{id:"confirm"}),children:(0,f.jsx)(e,{...I,disabled:h})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},x=g(n.Typography.Link),h=g(n.Typography.Text),_=g(n.Button)},48731:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>g});var n=s(73884),i=s(87558),a=s(76329),l=s(15797),r=s.n(l),o=s(79686),c=s.n(o),d=s(70579);const p=[["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}]]],u=(0,i.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(p.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),v=e=>{let{loader:t,...s}=e;const{global:{enumsRef:i}}=(0,a.useGlobalContext)(),l=(0,n.useRef)(null);return(0,d.jsx)(u,{...s,loader:async function(){const e=m(await t(...arguments)),{params:s}=arguments.length<=0?void 0:arguments[0],{moduleName:n,name:a,force:r,locale:o}=s,d=async t=>!0!==r&&l.current===o&&i.current.get(t)||await(async()=>{const s=e.get(t),n=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 i.current.set(t,n),l.current=o,n})();if(Array.isArray(n))return await Promise.all(n.map((e=>d(e).then((e=>Array.from(e.values()))))));const p=await d(n);return c()(a)?Array.from(p.values()):p.get(a.toString())}})},f=e=>{let{moduleName:t,name:s,force:n,children:i,...l}=e;const r=(0,a.usePreset)();return(0,d.jsx)(v,{...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:n},loader:e=>{let{params:t}=e;return t.enums},children:i})};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:()=>A,UploadButton:()=>X,UploadTips:()=>q,default:()=>se});var n=s(73884),i=s(33097),a=s.n(i),l=s(55199);const r="style_file-list-outer__wPhbb__vpO+I",o="style_file-list-title__zXM5r__vpO+I",c="style_container__P4RaF__vpO+I",d="style_file-preview-inner__cvE72__vpO+I",p="style_file-preview__M-Asq__vpO+I",u="style_drag-area__Q+lm7__vpO+I",m="style_upload-drag-close__u5o8W__vpO+I",v="style_upload-drag-tips__z7puZ__vpO+I",f="style_upload-drag-icon__sGGoS__vpO+I",g="style_upload-drag-title__9Afmb__vpO+I",x="style_upload-drag-text__o38vS__vpO+I",h="style_title-group__8IJkS__vpO+I",_="style_upload-btn__Q+Jxn__vpO+I",j="style_total-count__z1fyd__vpO+I",y="style_file-select__mHqyI__vpO+I",N="style_file-name__QkvMn__vpO+I",S="style_file-select-info__fOLiM__vpO+I",C="style_file-select-option__AbDrD__vpO+I";var I=s(75087),w=s.n(I),P=s(74065),F=s.n(P),b=s(57469),L=s.n(b),O=s(64671),M=s(67390),T=s(58609),z=s(70579);const E=e=>{let{currentTab:t,setCurrentTab:s,previewMap:n,previewList:i,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:p,maxWidth:u,getPopupContainer:m}=e;return(0,z.jsx)("div",{className:o,children:(0,z.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,z.jsx)(l.Col,{children:(0,z.jsxs)(l.Space,{className:h,size:4,children:[(0,z.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,z.jsxs)(l.Space,{size:4,children:[(0,z.jsx)(O.default,{type:"icon-shitu-liebiao"}),(0,z.jsx)(T.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,z.jsxs)(l.Space,{size:4,children:[(0,z.jsx)(O.default,{type:"icon-shitu-yulan"}),(0,z.jsx)(T.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&n.get(r)&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(l.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:i.map((e=>{let{filename:t,userName:s,date:n,ossId:i}=e;return(0,z.jsx)(l.Select.Option,{className:C,value:i,children:(0,z.jsxs)(l.Space,{direction:"vertical",children:[(0,z.jsxs)(l.Space,{size:4,align:"start",children:[(0,z.jsx)(w(),{type:F()(t.split(".")),size:14}),(0,z.jsx)(l.Typography.Text,{className:N,ellipsis:!0,style:{"--max-width":"".concat(u,"px")},children:t})]}),s||n?(0,z.jsxs)(l.Space,{className:S,size:24,children:[(0,z.jsxs)("div",{children:[(0,z.jsx)(T.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,z.jsxs)("div",{children:[(0,z.jsx)(T.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&L()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},i)}))}),(0,z.jsx)(M.OptionButtons,{hasPreview:!1,getPermission:a,item:n.get(r),apis:d}),(0,z.jsx)("div",{className:j,children:(0,z.jsx)(T.FormattedMessage,{id:"totalCount",values:{count:i.length},moduleName:"FileList"})})]})]})}),(0,z.jsx)(l.Col,{children:p})]})})};E.defaultProps={maxWidth:260};const A=E,D=e=>({"en-US":()=>s.e(5714).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var k=s(70720),U=s.n(k),B=s(83136),R=s.n(B);const Y=(0,n.createContext)({}),{Provider:G}=Y,W=()=>(0,n.useContext)(Y);var H=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:n}=W();return(0,z.jsx)("div",{ref:n,className:_,onClick:()=>{s((e=>!e))},children:(0,z.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,z.jsx)(O.default,{type:"icon-tuozhuaishangchuan"}),t||(0,z.jsx)(T.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:n}=W();return(0,z.jsxs)(H.AG,{className:_,accept:s,multiple:!0,onChange:n,children:[(0,z.jsx)(O.default,{type:"icon-tianjia"}),t]})},Z=e=>{let{title:t,accept:s,fileSize:i,maxLength:a,onFileSelected:o,children:d,className:p}=e;const[u,m]=(0,n.useState)(!1),v=(0,n.useRef)(null),f=U()((e=>{v.current&&(v.current.contains(e.target)||e.target===v.current||m(!1))}));return(0,z.jsx)(T.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,z.jsx)(G,{value:{open:u,onOpenChange:m,accept:s,fileSize:i,maxLength:a,onFileSelected:o,getDragButtonEl:e=>{v.current=e}},children:(0,z.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,z.jsx)("div",{className:R()(c,p),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:n}=e;const{accept:i,fileSize:a,maxLength:l}=W(),r=n((0,T.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:i.map((e=>e.replace(/^\./,""))).join("\u3001"),size:a}),{fileSize:a,maxLength:l,accept:i});return(0,z.jsxs)("div",{className:R()(v,"upload-drag-tips"),children:[(0,z.jsx)("div",{className:f,children:t||(0,z.jsx)(O.default,{type:"icon-shangchuan",size:64})}),(0,z.jsx)("div",{className:g,children:s||(0,z.jsx)(T.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,z.jsx)("div",{className:x,children:r})]})};q.defaultProps={renderTips:e=>e};const J=e=>{let{children:t,className:s}=e;const{open:n,accept:i,onOpenChange:a,onFileSelected:r}=W();return n?(0,z.jsxs)("div",{className:R()(u,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;a(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,i)));r(t)},onDragEnd:()=>{a(!1)},children:[(0,z.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,z.jsx)(O.default,{type:"icon-close-bold"}),onClick:()=>{a(!1)}}),t]}):null};J.defaultProps={children:(0,z.jsx)(q,{})};const K=J;var $=s(10419),ee=s(76329);const te=e=>{var t;let{maxLength:s,list:i,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:u,getPermission:m,titleExtra:v,fileSize:f,accept:g,getPopupContainer:x}=e;const{apis:h}=(0,ee.usePreset)(),_=Object.assign({},h,u),{fileList:j,onFileSelected:y}=(0,H.lN)({maxLength:s,multiple:!0,value:i,onChange:r,concurrentCount:1,onAdd:()=>{S("list")},onSave:_.onSave,ossUpload:_.ossUpload}),[N,S]=(0,n.useState)(o),{formatMessage:C}=(0,T.useIntl)({moduleName:"FileList"}),{message:I}=l.App.useApp(),w=(0,n.useMemo)((()=>new Map(i.map((e=>[e.ossId,e])))),[i]),[P,F]=(0,n.useState)(c||a()(i,"[0].ossId",null));(0,n.useEffect)((()=>{P&&w.get(P)||F(a()(i,"[0].ossId",null))}),[i,w,P]);const b={onPreview:e=>{F(e.ossId),S("preview")},onDelete:async e=>{_.onDelete&&await _.onDelete(e),r((t=>{const s=t.slice(0),n=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return n>-1&&s.splice(n,1),s})),I.success(C({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;_.onEdit&&await _.onEdit({formData:t,item:s}),r((e=>{const n=e.slice(0),i=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return i>-1&&n.splice(i,1,Object.assign({},s,{filename:t.name})),n})),I.success(C({id:"successEditFileName"},{name:s.filename}))}},L="function"===typeof v?v({currentPreviewFileId:P,currentTab:N}):v;return(0,z.jsxs)(Z,{title:(0,z.jsx)(A,{currentTab:N,setCurrentTab:S,previewMap:w,previewList:i,getPermission:m,currentPreviewFileId:P,setCurrentPreviewFileId:F,itemApis:b,getPopupContainer:x,children:(0,z.jsxs)(l.Space,{split:(0,z.jsx)(l.Divider,{type:"vertical"}),children:[L,m("add",{})?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(V,{children:(0,z.jsx)(T.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,z.jsx)(X,{children:(0,z.jsx)(T.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:f,maxLength:s,onFileSelected:y,accept:g,children:["list"===N?(0,z.jsx)(M.List,{dataSource:[...j,...i],getPermission:m,apis:b}):null,"preview"===N?P?(0,z.jsx)("div",{className:d,children:(0,z.jsx)($.default,{className:p,id:P,apis:_,originName:null===(t=w.get(P))||void 0===t?void 0:t.filename})}):(0,z.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,z.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,z.jsx)(T.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,z.jsx)(te,{...e})});var ne=s(10986),ie=s.n(ne);const ae=e=>{let{maxLength:t,apis:s,getPermission:n,fileSize:i,accept:a,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,p]=ie()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:u,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:p,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,z.jsxs)(Z,{title:(0,z.jsxs)(l.Row,{children:[(0,z.jsx)(l.Col,{flex:1}),(0,z.jsx)(l.Col,{children:(0,z.jsxs)(l.Space,{split:(0,z.jsx)(l.Divider,{type:"vertical"}),children:[(0,z.jsx)(V,{}),(0,z.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:i,maxLength:t,onFileSelected:m,accept:a,children:[(0,z.jsx)(M.List,{dataSource:[...u,...d],getPermission:n,apis:c}),(0,z.jsx)(K,{})]})};ae.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const le=ae},94710:e=>{e.exports=function(e,t,s,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var l=e[i];t(n,l,s(l),e)}return n}},32952:(e,t,s)=>{var n=s(45652);e.exports=function(e,t,s,i){return n(e,(function(e,n,a){t(i,e,s(e),a)})),i}},45652:(e,t,s)=>{var n=s(94664),i=s(76516)(n);e.exports=i},99910:e=>{e.exports=function(e,t){for(var s,n=-1,i=e.length;++n<i;){var a=t(e[n]);void 0!==a&&(s=void 0===s?a:s+a)}return s}},19449:(e,t,s)=>{var n=s(94710),i=s(32952),a=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?n:i,c=t?t():{};return o(s,e,a(r,2),c)}}},76516:(e,t,s)=>{var n=s(6571);e.exports=function(e,t){return function(s,i){if(null==s)return s;if(!n(s))return e(s,i);for(var a=s.length,l=t?a:-1,r=Object(s);(t?l--:++l<a)&&!1!==i(r[l],l,r););return s}}},26304:(e,t,s)=>{var n=s(53871),i=s(99140);e.exports=function(e,t,s){var a=null==e?0:e.length;return a?(t=s||void 0===t?1:i(t),n(e,0,(t=a-t)<0?0:t)):[]}},39835:(e,t,s)=>{var n=s(71775),i=s(19449),a=Object.prototype.hasOwnProperty,l=i((function(e,t,s){a.call(e,s)?e[s].push(t):n(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var n=s(26989);e.exports=function(e,t,s){var i=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===i?n(e,t,void 0,s):!!i}},60262:(e,t,s)=>{var n=s(99910),i=s(33279);e.exports=function(e){return e&&e.length?n(e,i):0}},99140:(e,t,s)=>{var n=s(37303);e.exports=function(e){var t=n(e),s=t%1;return t===t?s?t-s:t:0}},17448:()=>{},71975:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5873.55afd19e.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:()=>v});const n={menu:"style_menu__gvIvn__vpO+I","all-no-start-icon":"style_all-no-start-icon__CA+zR__vpO+I","no-start-icon":"style_no-start-icon__LnC1S__vpO+I","has-children":"style_has-children__m9tce__vpO+I","has-children-node":"style_has-children-node__2bhEB__vpO+I","is-root":"style_is-root__4hhOc__vpO+I",title:"style_title__+Hcar__vpO+I",active:"style_active__WU49K__vpO+I","no-collapse":"style_no-collapse__aIZBM__vpO+I","title-content":"style_title-content__cQXpK__vpO+I",loading:"style_loading__1pU4P__vpO+I"};var l=t(83136),a=t.n(l),r=t(55199),o=t(94679),i=t(29053),c=t(10986),p=t.n(c),d=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:l,label:c,iconType:p,path:h,request:u,onClick:_,isOpen:g,isSelected:O,onOpenChange:v,children:f,fetchOptions:K,depth:I,onLoad:C,allowCollapsed:j}=e,k=Array.isArray(f)&&f.length>0||K,{refresh:b,isLoading:x}=(0,y.useFetch)(Object.assign({},K,{auto:!j&&K,onRequestSuccess:e=>{C(e)}}));return(0,m.jsx)(i.default,{request:u,children:(0,m.jsxs)("div",{className:a()(l,n["menu-item"]),children:[(0,m.jsxs)("div",{className:a()(n.title,{[n.active]:O,[n["has-children"]]:k,[n["no-collapse"]]:k&&!j,[n["no-start-icon"]]:!p,[n["is-root"]]:0===I}),onClick:n=>{n.stopPropagation(),k||!h?k||K?j&&(K&&b({}),v(!g)):null===_||void 0===_||_(t,e):s(h)},children:[p&&(0,m.jsx)(d.default,{type:p}),(0,m.jsx)("span",{className:n["title-content"],children:c}),k&&j&&(0,m.jsx)(d.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),k?!j||g&&f?(0,m.jsx)("div",{className:n["children-list"],children:f}):!j||g&&x?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},O=e=>{let{className:s,allowCollapsed:t,...l}=e;const{pathname:r,search:i}=(0,o.useLocation)(),[c,d]=p()(l,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[u,y]=p()(l,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:O,defaultOpenKeys:v,links:f,childrenKeys:K,hasStartIcon:I,hasChildren:C}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},l);return Array.isArray(e)&&e.length>0?e.map(((e,l)=>{const o="".concat(e.key||"".concat("root"!==a?"".concat(a,"-"):"","node-").concat(l));s[a]||(s[a]=[]),s[a].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[a].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(u);let l=!1,a=!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&&(l=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(a=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:l,hasChildren:a}}),[u]);(0,h.useEffect)((()=>{const e=f.find((e=>{let{path:s}=e;return _()(r.replace(/[#,?].*/,""))===_()(s)||_()(r+i)===_()(s)}));e&&d(e.key)}),[f,r,i,d]);const[j,k]=p()(Object.assign({},l,{defaultOpenKeys:l.defaultOpenKeys||v}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),b=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:l,selectedKey:a,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,...p}=e;return(0,h.createElement)(g,{...Object.assign({},p),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||K[i]&&K[i].indexOf(a)>-1,onClick:d,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:()=>{k((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},b(s,{parentKey:n,depth:l+1,selectedKey:a,openKeys:r,paths:[...o,i]}))})):null}),[y,k,d,K,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!I,[n["has-children-node"]]:C}),children:b(O,{selectedKey:c,openKeys:j})})};O.defaultProps={defaultItems:[],allowCollapsed:!0};const v=O},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>h,default:()=>m,usePermissions:()=>u,usePermissionsPass:()=>_});var n=t(73884),l=t(55199),a=t(33097),r=t.n(a),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__vpO+I";var p=t(76329),d=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,p.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,p.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:a,message:r,request:o,children:p,...h}=e;const u=_({request:o});return"function"===typeof p?p({isPass:u,type:s,request:o}):!0===u?p:"error"===s?(0,d.jsx)(l.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,d.jsx)(l.Tooltip,{title:r,children:(0,n.createElement)(a,{...h,className:i()(c,t)},p)}):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.07e270e6.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:()=>O});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),p=n(22616),f=n.n(p);const h="style_width-container__JfEbg__vpO+I",_="style_hidden-container__EdySA__vpO+I",g="style_hidden-inner__vAN59__vpO+I",v="style_menu-list__VDttR__vpO+I",y="style_btn-item__mp5MQ__vpO+I";var x=n(15797),C=n.n(x),b=n(70579);const j=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())})),w=e=>{let{list:t,more:n,compact:r,...s}=e;const c=f()(s,["size","split","align","style"]),[p,x]=(0,o.useState)(t.length&&1),C=i()((()=>{const e=O.current,t=N.current,n=w.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=j({amountWidth:l,moreBtnWidth:s,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{x(d)}))})),w=(0,m.A)(C),O=(0,m.A)(C),N=(0,m.A)(C),I=t.slice(p),k=(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:h,ref:w}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:g,ref:N,children:n}),(0,b.jsx)("div",{className:g,ref:O,children:(0,b.jsx)(P,{...c,children:t.map(k)})})]}),(0,b.jsxs)(P,{...c,children:[t.slice(0,p).map(((e,t)=>k(e,t,!1))),I.length>0&&(0,b.jsx)(l.Dropdown,{overlayClassName:v,menu:{items:I.map(((e,t)=>({key:t,label:k(e,t,!0)})))},children:n})]})]})};w.defaultProps={more:(0,b.jsxs)(l.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const O=w},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>g,ConfirmText:()=>v,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__vpO+I",u="style_is-danger__gxyAB__vpO+I",m="style_title__EEPu2__vpO+I",p="style_content__mZZg5__vpO+I",f="style_has-title__5+PEt__vpO+I";var h=n(70579);const _=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:a=!0,onClick:_,onCancel:g,disabled:v,showCancel:y,cancelText:x,isModal:C,okText:b,placement:j,getContainer:w,...O}=t;const{formatMessage:N}=(0,l.useIntl)({moduleName:"ConfirmButton"}),I=(0,s.useConfirmModal)();return C?(0,h.jsx)(e,{...O,disabled:v,onClick:e=>{I({type:"confirm",title:n,getContainer:w,danger:a,confirmType:a?"warning":"info",message:r||N({id:"message"}),okText:b||N(a?{id:"delete"}:{id:"confirm"}),cancelText:x||N({id:"cancel"}),onCancel:g,onOk:_})}}):(0,h.jsx)(o.Popconfirm,{title:(0,h.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,h.jsxs)(o.Space,{size:0,align:"start",className:m,children:[a&&(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,h.jsxs)(o.Space,{size:0,align:"start",className:c()(p,{[f]:n}),children:[!n&&a?(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,r||N({id:"message"})]})]}),placement:j,onConfirm:_,okButtonProps:{danger:a},onCancel:g,overlayClassName:c()(d,{[u]:a}),getPopupContainer:w,disabled:v,showCancel:y,cancelText:x,okText:b||N(a?{id:"delete"}:{id:"confirm"}),children:(0,h.jsx)(e,{...O,disabled:v})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},g=_(o.Typography.Link),v=_(o.Typography.Text),y=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>S,TabsModal:()=>k,TabsModalButton:()=>M,default:()=>N,useConfirmModal:()=>O,useModal:()=>w,useTabsModal:()=>P});var o=n(73884),r=n(55199),i=n(83136),l=n.n(i);const s={modal:"style_modal__Pm3cF__vpO+I",large:"style_large__iaqVE__vpO+I","modal-body-inner":"style_modal-body-inner__4PhpA__vpO+I","modal-title":"style_modal-title__dswaw__vpO+I","modal-outer":"style_modal-outer__r3SkX__vpO+I","modal-body":"style_modal-body__jQJSI__vpO+I","right-options-modal":"style_right-options-modal__FajDP__vpO+I","right-options-row":"style_right-options-row__-mPb9__vpO+I","right-options-col":"style_right-options-col__3ilee__vpO+I","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__vpO+I",content:"style_content__k6MIF__vpO+I","modal-footer":"style_modal-footer__-prbN__vpO+I","modal-close":"style_modal-close__Oa5Kl__vpO+I","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__vpO+I","is-danger":"style_is-danger__H5110__vpO+I",title:"style_title__orTym__vpO+I","has-title":"style_has-title__qy0Wp__vpO+I"},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),p=n(17342),f=n(70579);const h="Modal",_=e=>{let{options:t,children:n}=e;return t?(0,f.jsxs)(r.Row,{wrap:!1,className:s["right-options-row"],children:[(0,f.jsx)(r.Col,{span:18,className:s["right-options-col"],children:n}),(0,f.jsx)(r.Col,{span:6,className:s["right-options-col"],children:t})]}):n},g=(e,t)=>"".concat(e-48-(t?58:0),"px"),v=(e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":g(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,t)}}:{width:"1000px",style:{"--min-modal-height":g(500,t)}},y=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:l,onClose:s,targetProps:d}=e;return(0,f.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,f.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,f.jsx)(r.Col,{children:(0,f.jsx)(r.Space,{children:(n||[{children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,f.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:h})}),onClick:l},{type:"primary",children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,f.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:h})}),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}})}))})})]})},x=e=>{let{title:t,footer:n,disabledScroller:i,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:h,children:_,targetProps:g}=e;const v=(0,o.useRef)(null);return(0,f.jsxs)("div",{className:s["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,f.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:s["modal-close"],type:"text",icon:(0,f.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,f.jsx)("div",{className:s["modal-title"],children:t}),(0,f.jsx)(p.A,{className:l()(s["modal-body"],{[s["is-disabled-scroller"]]:i},"modal-body"),ref:v,children:(0,f.jsx)("div",{className:l()(s["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,f.jsx)("div",{className:l()(s["modal-footer"],"modal-footer"),children:(0,f.jsx)(y,{footer:n,footerButtons:a,onConfirm:m,onCancel:h,onClose:c,targetProps:g})}):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:p}=e;const h=e=>(e=Object.assign({},{title:o},e),(0,f.jsx)(x,{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,f.jsx)(_,{options:u(c,{...e,childrenRef:m,close:i}),children:u(p,{...e,childrenRef:m,close:i})})}));return"function"===typeof t?t(h):h({})},b=e=>{let{children:t,rightOptions:n,footer:o,footerButtons:r,className:i,size:d,title:u,onClose:m,onConfirm:p,onCancel:h,closable:_,disabledScroller:g,withDecorator:y,childrenRef:x,...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}),...v(d,!(null===o&&!r)),children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:y,title:u,closable:_,onClose:m,onConfirm:p,onCancel:h,footer:o,footerButtons:r,rightOptions:n,disabledScroller:g,children:t,childrenRef:x})})}},j=e=>{const t=(0,o.useRef)(null);return(0,f.jsx)(r.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const w=()=>{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}},O=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:i,title:a,danger:c,wrapClassName:u,message:m,iconSetting:p={},confirmType:h="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},p);if(e[o]){const{destroy:t}=e[o]({..._,icon:null,wrapClassName:l()(s["confirm-modal-wrap"],u,{[s["is-danger"]]:c}),title:(0,f.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,f.jsxs)(r.Space,{size:0,align:"start",className:s.title,children:[c?(0,f.jsx)(d.default,{className:l()("title-icon","title-icon-".concat("confirm"===o?h:o)),type:i||g["confirm"===o?h:o]}):null,a]})}),content:(0,f.jsxs)(r.Space,{size:0,align:"start",className:l()(s.content,{[s["has-title"]]:a}),children:[!a&&c?(0,f.jsx)(d.default,{className:l()("title-icon","title-icon-".concat("confirm"===o?h:o)),type:i||g["confirm"===o?h:o]}):null,m]})});n.close=t}return n}},N=j,I=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,f.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}}},k=e=>(0,f.jsx)(N,{...I(e)}),P=()=>{const e=w();return t=>e(I(t))};var T=n(73025);const M=e=>{const t=P();return(0,f.jsx)(T.A,{...e,modalFunc:t})},S=e=>{const t=w();return(0,f.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 p=s(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=u){var h=m[p];void 0===(f=a?a(h,p,m):void 0)&&(f=l(h)?h:i(t[c+1])?[]:{})}o(m,p,f),m=m[p]}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,p,f=0,h=!1,_=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=a,o=c;return a=c=void 0,f=t,u=e.apply(o,n)}function y(e){var n=e-p;return void 0===p||n>=t||n<0||_&&e-f>=d}function x(){var e=r();if(y(e))return C(e);m=setTimeout(x,function(e){var n=t-(e-p);return _?s(n,d-(e-f)):n}(e))}function C(e){return m=void 0,g&&a?v(e):(a=c=void 0,u)}function b(){var e=r(),n=y(e);if(a=arguments,c=this,p=e,n){if(void 0===m)return function(e){return f=e,m=setTimeout(x,t),h?v(e):u}(p);if(_)return clearTimeout(m),m=setTimeout(x,t),v(p)}return void 0===m&&(m=setTimeout(x,t)),u}return t=i(t)||0,o(n)&&(h=!!n.leading,d=(_="maxWait"in n)?l(i(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),b.cancel=function(){void 0!==m&&clearTimeout(m),f=0,a=p=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.c1862ff1.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:()=>ye,CityFilterItem:()=>je,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FilterItem:()=>w,FilterItemContainer:()=>Xe,FilterLines:()=>j,FilterValueDisplay:()=>I,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ce,NumberRangeFilterItem:()=>Fe,PopoverItem:()=>le,SearchInput:()=>ke,TreeFilterItem:()=>Ie,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe,advancedFields:()=>Ye,default:()=>qe,fields:()=>a,getFilterValue:()=>Oe,useFilter:()=>v,withFieldItem:()=>z,withFilterValue:()=>Me});var a={};t.r(a),t.d(a,{AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>ye,CityFilterItem:()=>je,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ce,NumberRangeFilterItem:()=>Fe,TreeFilterItem:()=>Ie,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe});var n=t(83136),s=t.n(n),r=t(73884),i=t(64671);const o={filter:"style_filter__Xml45__vpO+I","filter-item-icon":"style_filter-item-icon__kVCRK__vpO+I","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__vpO+I","filter-title":"style_filter-title__PlIpS__vpO+I","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__vpO+I","ad-filter-title":"style_ad-filter-title__5-OzD__vpO+I","ad-filter-line":"style_ad-filter-line__ga6UH__vpO+I","filter-line":"style_filter-line__E+cRh__vpO+I","clean-btn":"style_clean-btn__oSEvm__vpO+I","filter-item":"style_filter-item__Q2ncE__vpO+I","un-expand":"style_un-expand__4PFY8__vpO+I","ad-filter-selected":"style_ad-filter-selected__KbLfG__vpO+I","filter-label":"style_filter-label__qu26i__vpO+I","filter-item-wrap":"style_filter-item-wrap__rOq7H__vpO+I",option:"style_option__rd5Qo__vpO+I","is-active":"style_is-active__OArQI__vpO+I","is-visited":"style_is-visited__gZ5ni__vpO+I","un-expand-shadow":"style_un-expand-shadow__fj92e__vpO+I","filter-item-label":"style_filter-item-label__C781J__vpO+I","filter-item-field":"style_filter-item-field__Ltfr8__vpO+I","filter-drop-tag":"style_filter-drop-tag__DD-2P__vpO+I","filter-list-tag":"style_filter-list-tag__Qt5hA__vpO+I","filter-tag":"style_filter-tag__dUGfu__vpO+I","filter-tag-value":"style_filter-tag-value__p-SFv__vpO+I","pop-util-content":"style_pop-util-content__bx5zP__vpO+I","pop-util-overlay":"style_pop-util-overlay__LEASt__vpO+I","pop-util-footer":"style_pop-util-footer__Xat1s__vpO+I","pop-util-text":"style_pop-util-text__pzeUy__vpO+I","filter-item-inner":"style_filter-item-inner__LVXgh__vpO+I","filter-item-text":"style_filter-item-text__MA8tU__vpO+I","filter-item-number-range":"style_filter-item-number-range__U-OgQ__vpO+I","filter-item-custom":"style_filter-item-custom__UusRa__vpO+I","filter-item-custom-active":"style_filter-item-custom-active__uFtny__vpO+I","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__vpO+I","filter-item-number-input":"style_filter-item-number-input__YPO6K__vpO+I","range-picker":"style_range-picker__c6ngq__vpO+I","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__vpO+I","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__vpO+I","filter-advanced":"style_filter-advanced__4cyDy__vpO+I","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__vpO+I","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__vpO+I","filter-advanced-more":"style_filter-advanced-more__OFXq4__vpO+I"};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(_),f=t(70579);const g=e=>{let{list:l,children:t}=e;const{value:a,onChange:n}=v();return(0,f.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]})},x=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,f.jsxs)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:[(0,f.jsxs)(c.Space,{className:s()(o["filter-title"],l),align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:n||(0,f.jsx)(u.FormattedMessage,{id:"filterText",moduleName:"Filter",defaultMessage:"\u7b5b\u9009"})}),(0,f.jsxs)(c.Row,{justify:"space-between",wrap:!1,align:"top",children:[(0,f.jsx)(c.Col,{className:o["filter-list"],flex:1,children:t.slice(0,a).map(((e,l)=>(0,f.jsx)(g,{list:e,children:v&&!1===_&&l===a-1?(0,f.jsxs)(c.Space,{size:4,className:s()(o["filter-item"],o.option),onClick:()=>{h((e=>!e))},children:[(0,f.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"}),(0,f.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-down"})]}):null},l)))}),(0,f.jsx)(c.Col,{children:m})]})]}),(0,f.jsx)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap"),align:"center",size:16,children:p}),(0,f.jsxs)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap",{[o["filter-title-hidden"]]:!(v&&_)}),align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:(0,f.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"})}),(0,f.jsx)("div",{className:o["filter-list"],children:t.slice(a).map(((e,l)=>(0,f.jsx)(g,{list:e,children:l===t.length-a-1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:(0,f.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,f.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,f.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})}),(0,f.jsx)(c.Space,{size:4,className:s()(o["un-expand"]),onClick:()=>{h((e=>!e))},children:(0,f.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,f.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,f.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})})]})},l)))})]})]})};x.defaultProps={displayLine:1};const j=x;var y=t(62716);const I=e=>{let{value:l,extraExpand:t,onChange:a}=e;return(0,f.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:(0,f.jsxs)(c.Space,{className:o["filter-title"],align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:(0,f.jsx)(u.FormattedMessage,{id:"selectedText",moduleName:"Filter",defaultMessage:"\u60a8\u5df2\u9009\u62e9"})}),(0,f.jsxs)("div",{className:o["filter-line"],children:[l.map(((e,t)=>{let{name:n,label:s,value:r}=e;return(0,f.jsx)(y.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,f.jsxs)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:[t,(0,f.jsx)(c.Button,{size:"small",children:(0,f.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]}),(0,f.jsxs)(c.Space,{size:4,className:s()(o["un-expand"]),children:[t,(0,f.jsx)(c.Button,{size:"small",onClick:()=>{a([])},children:(0,f.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]})]})]})})};var C=t(10986),F=t.n(C),b=t(41740),N=t.n(b),O=t(36);const M=e=>{let{children:l,className:t,...a}=e;const[n,i]=F()(a),c=(0,r.useMemo)((()=>n.filter((e=>(0,O.isNotEmpty)(e.value)))),[n]),m=(0,r.useMemo)((()=>new Map(c.map((e=>[e.name,e])))),[c]);return(0,f.jsx)(u.IntlProvider,{moduleName:"Filter",importMessages:d,children:(0,f.jsx)(p,{value:{value:m,onChange:e=>{const l=N()(m);e.value?l.set(e.name,e):l.delete(e.name),null===i||void 0===i||i(Array.from(l.values()))}},children:(0,f.jsx)("div",{className:s()(o.filter,t),children:l({props:a,value:c,onChange:i})})})})};M.defaultProps={defaultValue:[]};const k=M,A=e=>(0,f.jsx)(k,{...e,children:e=>{let{props:l,value:t,onChange:a}=e;const{extraExpand:n,...s}=l;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(j,{...s}),t&&t.length>0&&(0,f.jsx)(I,{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,f.jsx)(c.Space,{className:o["filter-item-wrap"],children:(0,f.jsxs)("div",{className:s()(o["filter-item"],{[o["is-active"]]:t,[o["is-visited"]]:l}),children:[(0,f.jsxs)(c.Space,{className:o["filter-item-label"],size:4,children:[(0,f.jsx)("div",{children:a}),(0,f.jsx)(i.default,{className:o["filter-item-icon"],type:"icon-triangle-down"})]}),(0,f.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,f.jsx)(w,{label:s,open:c,active:(0,P.A)(t),children:(0,f.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),V=t(93761),L=t(53392),E=t(45776),R=t(30509),Y=t(96418),U=t.n(Y);const B="style_scroll-loader__Rcuti__vpO+I",K="style_is-popup__pCRv2__vpO+I";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,f.jsx)(c.Space,{direction:"vertical",size:16,children:(0,f.jsx)(X.A,{className:s()(B,{[K]:i.isPopup}),children:(0,f.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,f.jsx)(R.A,{...a,dataFormat:e=>t(e,{fieldNames:a.fieldNames}),children:e=>{let{value:t,setValue:a}=e;return(0,f.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,g]=(0,r.useState)(!1),x=(0,r.useMemo)((()=>a&&!a(v)),[a,v]);return(0,f.jsx)(c.Popover,{open:h,trigger:"click",placement:i,overlayClassName:s()(o["pop-util-overlay"],n),onOpenChange:e=>{g(e),_(l),d&&d(e)},content:(0,f.jsxs)("span",{onClick:e=>{e.stopPropagation()},children:[(0,f.jsx)("div",{className:o["pop-util-content"],children:p({value:v,onChange:_})}),(0,f.jsxs)(c.Row,{className:o["pop-util-footer"],justify:"end",gutter:8,children:[(0,f.jsx)(c.Col,{children:(0,f.jsx)(c.Button,{size:"small",onClick:()=>{g(!1),d&&d(!1)},children:(0,f.jsx)(u.FormattedMessage,{id:"cancelText",moduleName:"Filter",defaultMessage:"\u53d6\u6d88"})})}),(0,f.jsx)(c.Col,{children:(0,f.jsx)(c.Button,{size:"small",type:"primary",disabled:x,onClick:()=>{g(!1),d&&d(!1),m&&m(v)},children:(0,f.jsx)(u.FormattedMessage,{id:"determineText",moduleName:"Filter",defaultMessage:"\u786e\u5b9a"})})})]})]}),children:(0,f.jsx)("span",{children:(0,f.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,f.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,f.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,f.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,f.jsxs)(c.Space.Compact,{children:[(0,f.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,f.jsx)(c.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),(0,f.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,f.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,f.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,f.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,f.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,f.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,f.jsx)(u.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"Filter",values:{label:a},children:l=>(0,f.jsx)(e,{...n,label:a,placeholder:t||l})})},he=z(D.Ay),fe=z(D.Eo),ge=z(T.A),xe=z(L.A),je=z(V.Ay),ye=z(E.Ay),Ie=z($),Ce=_e(te),Fe=_e(ie);var be=t(22717),Ne=t.n(be);const Oe=e=>Ne()(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,f.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,f.jsx)(O.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,f.jsxs)(f.Fragment,{children:[v.map((e=>{const{code:s}=e,r=(0,V.NY)(e,m);return(0,f.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,f.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,f.jsx)(u.FormattedMessage,{id:"otherText",moduleName:"Filter",defaultMessage:"\u5176\u4ed6"}),(0,f.jsx)(V.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,V.DF)(Pe);var ze=t(19853),De=t.n(ze);const{CheckableTag:Te}=c.Tag,Ve=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,f.jsxs)(f.Fragment,{children:[i.map((e=>{let{label:a,value:n}=e;return(0,f.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,f.jsx)(e,{...o.props,value:l,placeholder:"".concat(m({id:"pleaseInput"})).concat(n),onChange:t}):null})()]})};Ve.defaultProps={single:!1,maxLength:5,items:[]};const Le=Ve;var Ee=t(78491),Re=t.n(Ee);const Ye={CityFilterItem:we,ListFilterItem:Le,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,f.jsx)("span",{ref:_,children:(0,f.jsxs)(c.Space.Compact,{children:[(0,f.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,f.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,f.jsx)(c.Flex,{gap:8,children:l.map(((e,l)=>{const n=e.type;return(0,f.jsxs)(c.Flex,{gap:16,align:"center",children:[(0,f.jsxs)("div",{className:o["filter-label"],children:[e.props.label,":"]}),(0,f.jsx)(c.Flex,{wrap:!0,align:"center",children:(0,f.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,f.jsx)(k,{...e,children:e=>{let{value:t,onChange:a,props:n}=e;const{list:s,more:r}=n;return(0,f.jsxs)("div",{children:[(0,f.jsxs)(c.Flex,{gap:8,vertical:!0,className:o["filter-advanced"],children:[s.map(((e,l)=>(0,f.jsx)(Ue,{list:e},l))),r&&(0,f.jsx)(j,{className:o["filter-advanced-more"],label:"".concat(l({id:"moreText"}),":"),list:[r]})]}),t&&t.length>0&&(0,f.jsx)(I,{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=Oe,S.useFilter=v,S.SearchInput=ke,S.withFilterValue=Me;const qe=S}}]);
|
|
2
|
-
//# sourceMappingURL=6915.3738b719.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:()=>g});var a=s(73884),r=s(83136),l=s.n(r);const o={"state-tag":"style_state-tag__Kx27z__vpO+I","state-result-tag":"style_state-result-tag__CssDz__vpO+I","state-skill-tag":"style_state-skill-tag__k0bQE__vpO+I","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__vpO+I","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__vpO+I","state-tag-filterResult":"style_state-tag-filterResult__KTkot__vpO+I","show-bg":"style_show-bg__OcL+R__vpO+I","tag-text":"style_tag-text__JHCt+__vpO+I","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__vpO+I"};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"},p=t=>{let{showBorder:e,text:s,type:r,showBackground:p,className:g,filterName:u,...i}=t;const d=(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:[u?(0,n.jsxs)("span",{className:o["state-tag-filter-name"],children:[u,":"]}):null,(0,n.jsx)(_.Tag,{color:d.color,...i,style:{background:p?d.color+"0F":"none",color:d.color,border:e?"1px solid ".concat(d.borderColor):"none"},className:l()(o["state-tag"],g,"result"===r?o["state-result-tag"]:"","skill"===r?o["state-skill-tag"]:"",o["state-tag-".concat(r)],p?o["show-bg"]:"",e?o["show-border"]:""),children:(0,n.jsx)("span",{className:o["tag-text"],children:s})})]})};p.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const g=p},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.10fd060f.chunk.js.map
|