@kne-components/components-core 0.2.11 → 0.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +122 -122
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.fcc82944.chunk.css +2 -0
- package/build/static/css/{1151.8a1ea8b2.chunk.css.map → 1151.fcc82944.chunk.css.map} +1 -1
- package/build/static/css/1153.0f70e601.chunk.css +2 -0
- package/build/static/css/{1153.fec83a9b.chunk.css.map → 1153.0f70e601.chunk.css.map} +1 -1
- package/build/static/css/1154.25169301.chunk.css +2 -0
- package/build/static/css/{1154.3ac979f0.chunk.css.map → 1154.25169301.chunk.css.map} +1 -1
- package/build/static/css/1454.b6680ef6.chunk.css +2 -0
- package/build/static/css/{1454.597915d6.chunk.css.map → 1454.b6680ef6.chunk.css.map} +1 -1
- package/build/static/css/1554.c3f5b619.chunk.css +2 -0
- package/build/static/css/{1554.e0060527.chunk.css.map → 1554.c3f5b619.chunk.css.map} +1 -1
- package/build/static/css/{2503.1c697ec5.chunk.css → 2503.7c268bc6.chunk.css} +2 -2
- package/build/static/css/{2503.1c697ec5.chunk.css.map → 2503.7c268bc6.chunk.css.map} +1 -1
- package/build/static/css/{2517.98220b06.chunk.css → 2517.a37d84c0.chunk.css} +2 -2
- package/build/static/css/{2517.98220b06.chunk.css.map → 2517.a37d84c0.chunk.css.map} +1 -1
- package/build/static/css/2716.ba9cf85a.chunk.css +2 -0
- package/build/static/css/{2716.2ac76682.chunk.css.map → 2716.ba9cf85a.chunk.css.map} +1 -1
- package/build/static/css/{2730.2d0cbb3d.chunk.css → 2730.ee2da00c.chunk.css} +2 -2
- package/build/static/css/{2730.2d0cbb3d.chunk.css.map → 2730.ee2da00c.chunk.css.map} +1 -1
- package/build/static/css/{289.e6c6f1da.chunk.css → 289.9f854889.chunk.css} +2 -2
- package/build/static/css/{289.e6c6f1da.chunk.css.map → 289.9f854889.chunk.css.map} +1 -1
- package/build/static/css/{3142.3c249a67.chunk.css → 3142.1c704353.chunk.css} +2 -2
- package/build/static/css/{3142.3c249a67.chunk.css.map → 3142.1c704353.chunk.css.map} +1 -1
- package/build/static/css/3333.d1a3456b.chunk.css +2 -0
- package/build/static/css/{3333.e42b3e6f.chunk.css.map → 3333.d1a3456b.chunk.css.map} +1 -1
- package/build/static/css/{3843.f8664dd9.chunk.css → 3843.a44200c1.chunk.css} +2 -2
- package/build/static/css/{3843.f8664dd9.chunk.css.map → 3843.a44200c1.chunk.css.map} +1 -1
- package/build/static/css/4029.13a8fbfc.chunk.css +2 -0
- package/build/static/css/{4029.78a7d783.chunk.css.map → 4029.13a8fbfc.chunk.css.map} +1 -1
- package/build/static/css/4265.1f9caa5c.chunk.css +2 -0
- package/build/static/css/{4265.1ec41793.chunk.css.map → 4265.1f9caa5c.chunk.css.map} +1 -1
- package/build/static/css/4666.22605e23.chunk.css +2 -0
- package/build/static/css/{4666.33e12ff4.chunk.css.map → 4666.22605e23.chunk.css.map} +1 -1
- package/build/static/css/5443.6227dbca.chunk.css +2 -0
- package/build/static/css/{5443.28a016be.chunk.css.map → 5443.6227dbca.chunk.css.map} +1 -1
- package/build/static/css/5600.82b7015b.chunk.css +2 -0
- package/build/static/css/{5600.40c7f8d3.chunk.css.map → 5600.82b7015b.chunk.css.map} +1 -1
- package/build/static/css/{5873.043a805d.chunk.css → 5873.42a87e1c.chunk.css} +2 -2
- package/build/static/css/{5873.043a805d.chunk.css.map → 5873.42a87e1c.chunk.css.map} +1 -1
- package/build/static/css/{5996.7ccd8080.chunk.css → 5996.4fd83c38.chunk.css} +2 -2
- package/build/static/css/{5996.7ccd8080.chunk.css.map → 5996.4fd83c38.chunk.css.map} +1 -1
- package/build/static/css/{6611.132d7bf4.chunk.css → 6611.92a0c476.chunk.css} +2 -2
- package/build/static/css/{6611.132d7bf4.chunk.css.map → 6611.92a0c476.chunk.css.map} +1 -1
- package/build/static/css/6779.3c8f7740.chunk.css +2 -0
- package/build/static/css/{6779.63d0647a.chunk.css.map → 6779.3c8f7740.chunk.css.map} +1 -1
- package/build/static/css/7121.3ec29543.chunk.css +2 -0
- package/build/static/css/{7121.69995c30.chunk.css.map → 7121.3ec29543.chunk.css.map} +1 -1
- package/build/static/css/7227.37784a9f.chunk.css +2 -0
- package/build/static/css/{7227.e6a66529.chunk.css.map → 7227.37784a9f.chunk.css.map} +1 -1
- package/build/static/css/8017.358a538e.chunk.css +2 -0
- package/build/static/css/{8017.cbd72a3a.chunk.css.map → 8017.358a538e.chunk.css.map} +1 -1
- package/build/static/css/{8725.1db6950e.chunk.css → 8725.10073a91.chunk.css} +2 -2
- package/build/static/css/{8725.1db6950e.chunk.css.map → 8725.10073a91.chunk.css.map} +1 -1
- package/build/static/css/931.27e879a6.chunk.css +2 -0
- package/build/static/css/{931.fc2017c7.chunk.css.map → 931.27e879a6.chunk.css.map} +1 -1
- package/build/static/js/{1106.509a010d.chunk.js → 1106.5c4ba0d8.chunk.js} +2 -2
- package/build/static/js/{1106.509a010d.chunk.js.map → 1106.5c4ba0d8.chunk.js.map} +1 -1
- package/build/static/js/{1153.3ca5a153.chunk.js → 1153.9d410dce.chunk.js} +3 -3
- package/build/static/js/{1153.3ca5a153.chunk.js.map → 1153.9d410dce.chunk.js.map} +1 -1
- package/build/static/js/1154.4d03b56f.chunk.js +2 -0
- package/build/static/js/1154.4d03b56f.chunk.js.map +1 -0
- package/build/static/js/1454.909f127f.chunk.js +3 -0
- package/build/static/js/{1454.b69c4181.chunk.js.map → 1454.909f127f.chunk.js.map} +1 -1
- package/build/static/js/1554.92728c28.chunk.js +3 -0
- package/build/static/js/{1554.22446df8.chunk.js.map → 1554.92728c28.chunk.js.map} +1 -1
- package/build/static/js/2503.232f9a5f.chunk.js +2 -0
- package/build/static/js/{2503.48a98d11.chunk.js.map → 2503.232f9a5f.chunk.js.map} +1 -1
- package/build/static/js/2517.5945dc4a.chunk.js +2 -0
- package/build/static/js/{2517.12bffb49.chunk.js.map → 2517.5945dc4a.chunk.js.map} +1 -1
- package/build/static/js/2716.a3bd411c.chunk.js +3 -0
- package/build/static/js/{2716.1b7d43b2.chunk.js.map → 2716.a3bd411c.chunk.js.map} +1 -1
- package/build/static/js/2730.b81e1db8.chunk.js +2 -0
- package/build/static/js/{2730.705a15e7.chunk.js.map → 2730.b81e1db8.chunk.js.map} +1 -1
- package/build/static/js/2814.cdee12aa.chunk.js +2 -0
- package/build/static/js/{2814.aafa2a65.chunk.js.map → 2814.cdee12aa.chunk.js.map} +1 -1
- package/build/static/js/{289.c8a6e7a1.chunk.js → 289.3f45df63.chunk.js} +2 -2
- package/build/static/js/{289.c8a6e7a1.chunk.js.map → 289.3f45df63.chunk.js.map} +1 -1
- package/build/static/js/{3142.f7ddc1fa.chunk.js → 3142.d1d022d9.chunk.js} +2 -2
- package/build/static/js/{3142.f7ddc1fa.chunk.js.map → 3142.d1d022d9.chunk.js.map} +1 -1
- package/build/static/js/3333.d64ec125.chunk.js +2 -0
- package/build/static/js/3333.d64ec125.chunk.js.map +1 -0
- package/build/static/js/36.85ad7682.chunk.js +2 -0
- package/build/static/js/{36.1c63688d.chunk.js.map → 36.85ad7682.chunk.js.map} +1 -1
- package/build/static/js/{3843.c63f0e22.chunk.js → 3843.581c4c07.chunk.js} +2 -2
- package/build/static/js/{3843.c63f0e22.chunk.js.map → 3843.581c4c07.chunk.js.map} +1 -1
- package/build/static/js/{4029.909eb89b.chunk.js → 4029.63e78855.chunk.js} +2 -2
- package/build/static/js/4029.63e78855.chunk.js.map +1 -0
- package/build/static/js/4265.5dcd7c08.chunk.js +2 -0
- package/build/static/js/{4265.15b26581.chunk.js.map → 4265.5dcd7c08.chunk.js.map} +1 -1
- package/build/static/js/{4666.164a8d3a.chunk.js → 4666.d38708fb.chunk.js} +3 -3
- package/build/static/js/{4666.164a8d3a.chunk.js.map → 4666.d38708fb.chunk.js.map} +1 -1
- package/build/static/js/{5443.b66d023b.chunk.js → 5443.9038a242.chunk.js} +2 -2
- package/build/static/js/{5443.b66d023b.chunk.js.map → 5443.9038a242.chunk.js.map} +1 -1
- package/build/static/js/5600.d88a6355.chunk.js +2 -0
- package/build/static/js/{5600.fbe5fb93.chunk.js.map → 5600.d88a6355.chunk.js.map} +1 -1
- package/build/static/js/5873.6c285e0c.chunk.js +2 -0
- package/build/static/js/{5873.6057b4b5.chunk.js.map → 5873.6c285e0c.chunk.js.map} +1 -1
- package/build/static/js/{5996.e6d22e26.chunk.js → 5996.edcbda7e.chunk.js} +2 -2
- package/build/static/js/{5996.e6d22e26.chunk.js.map → 5996.edcbda7e.chunk.js.map} +1 -1
- package/build/static/js/{6569.9f6d9777.chunk.js → 6569.78db6367.chunk.js} +2 -2
- package/build/static/js/{6569.9f6d9777.chunk.js.map → 6569.78db6367.chunk.js.map} +1 -1
- package/build/static/js/6611.1146bc44.chunk.js +2 -0
- package/build/static/js/{6611.ecbae262.chunk.js.map → 6611.1146bc44.chunk.js.map} +1 -1
- package/build/static/js/{6779.4760144b.chunk.js → 6779.05efd0c4.chunk.js} +2 -2
- package/build/static/js/{6779.4760144b.chunk.js.map → 6779.05efd0c4.chunk.js.map} +1 -1
- package/build/static/js/6915.6b33f07d.chunk.js +2 -0
- package/build/static/js/{6915.5dc9fc8a.chunk.js.map → 6915.6b33f07d.chunk.js.map} +1 -1
- package/build/static/js/7121.979c4878.chunk.js +2 -0
- package/build/static/js/{7121.2431a18a.chunk.js.map → 7121.979c4878.chunk.js.map} +1 -1
- package/build/static/js/7227.d3f98f46.chunk.js +3 -0
- package/build/static/js/{7227.c271e9d9.chunk.js.map → 7227.d3f98f46.chunk.js.map} +1 -1
- package/build/static/js/{7790.531652b1.chunk.js → 7790.cd4d93d0.chunk.js} +2 -2
- package/build/static/js/{7790.531652b1.chunk.js.map → 7790.cd4d93d0.chunk.js.map} +1 -1
- package/build/static/js/{8017.cd3586a7.chunk.js → 8017.757d8f40.chunk.js} +2 -2
- package/build/static/js/{8017.cd3586a7.chunk.js.map → 8017.757d8f40.chunk.js.map} +1 -1
- package/build/static/js/{8725.b2f9157b.chunk.js → 8725.bb1c8ad4.chunk.js} +2 -2
- package/build/static/js/{8725.b2f9157b.chunk.js.map → 8725.bb1c8ad4.chunk.js.map} +1 -1
- package/build/static/js/{931.b6f30988.chunk.js → 931.377182b5.chunk.js} +2 -2
- package/build/static/js/{931.b6f30988.chunk.js.map → 931.377182b5.chunk.js.map} +1 -1
- package/build/static/js/{main.f05b1454.js → main.03426e7d.js} +2 -2
- package/build/static/js/{main.f05b1454.js.map → main.03426e7d.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1151.8a1ea8b2.chunk.css +0 -2
- package/build/static/css/1153.fec83a9b.chunk.css +0 -2
- package/build/static/css/1154.3ac979f0.chunk.css +0 -2
- package/build/static/css/1454.597915d6.chunk.css +0 -2
- package/build/static/css/1554.e0060527.chunk.css +0 -2
- package/build/static/css/2716.2ac76682.chunk.css +0 -2
- package/build/static/css/3333.e42b3e6f.chunk.css +0 -2
- package/build/static/css/4029.78a7d783.chunk.css +0 -2
- package/build/static/css/4265.1ec41793.chunk.css +0 -2
- package/build/static/css/4666.33e12ff4.chunk.css +0 -2
- package/build/static/css/5443.28a016be.chunk.css +0 -2
- package/build/static/css/5600.40c7f8d3.chunk.css +0 -2
- package/build/static/css/6779.63d0647a.chunk.css +0 -2
- package/build/static/css/7121.69995c30.chunk.css +0 -2
- package/build/static/css/7227.e6a66529.chunk.css +0 -2
- package/build/static/css/8017.cbd72a3a.chunk.css +0 -2
- package/build/static/css/931.fc2017c7.chunk.css +0 -2
- package/build/static/js/1154.dd461e4f.chunk.js +0 -2
- package/build/static/js/1154.dd461e4f.chunk.js.map +0 -1
- package/build/static/js/1454.b69c4181.chunk.js +0 -3
- package/build/static/js/1554.22446df8.chunk.js +0 -3
- package/build/static/js/2503.48a98d11.chunk.js +0 -2
- package/build/static/js/2517.12bffb49.chunk.js +0 -2
- package/build/static/js/2716.1b7d43b2.chunk.js +0 -3
- package/build/static/js/2730.705a15e7.chunk.js +0 -2
- package/build/static/js/2814.aafa2a65.chunk.js +0 -2
- package/build/static/js/3333.ed36409c.chunk.js +0 -2
- package/build/static/js/3333.ed36409c.chunk.js.map +0 -1
- package/build/static/js/36.1c63688d.chunk.js +0 -2
- package/build/static/js/4029.909eb89b.chunk.js.map +0 -1
- package/build/static/js/4265.15b26581.chunk.js +0 -2
- package/build/static/js/5600.fbe5fb93.chunk.js +0 -2
- package/build/static/js/5873.6057b4b5.chunk.js +0 -2
- package/build/static/js/6611.ecbae262.chunk.js +0 -2
- package/build/static/js/6915.5dc9fc8a.chunk.js +0 -2
- package/build/static/js/7121.2431a18a.chunk.js +0 -2
- package/build/static/js/7227.c271e9d9.chunk.js +0 -3
- /package/build/static/js/{1153.3ca5a153.chunk.js.LICENSE.txt → 1153.9d410dce.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1454.b69c4181.chunk.js.LICENSE.txt → 1454.909f127f.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.22446df8.chunk.js.LICENSE.txt → 1554.92728c28.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.1b7d43b2.chunk.js.LICENSE.txt → 2716.a3bd411c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.164a8d3a.chunk.js.LICENSE.txt → 4666.d38708fb.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.c271e9d9.chunk.js.LICENSE.txt → 7227.d3f98f46.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),o=n.n(a),l=n(83136),i=n.n(l);const c={scroller:"style_scroller__EfuqR__Fo22-","scroller-inner":"style_scroller-inner__NJSE0__Fo22-","is-moving":"style_is-moving__jGuy0__Fo22-"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...a}=e;const o=(0,r.useRef)(0),[l,d]=(0,r.useState)(!1),p=(0,r.useRef)(l);p.current=l;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-o.current)),o.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"]]:l}),style:{width:a.innerWidth,left:a.innerLeft},onMouseDown:e=>{e.preventDefault(),o.current=e.clientX,d(!0)}})}):null,n()||document.body)},p=e=>{let{className:t,scroller:n,getScrollTarget:s,children:a}=e;const[l,p]=(0,r.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),_=(0,r.useRef)(null),h=o()((()=>_.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(),o=t.offsetHeight-t.clientHeight||15,l=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:l,height:o,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!==l&&void 0!==l&&l.hasScroller?"15px":"0px"},children:[a,(0,u.jsx)(d,{...l,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:()=>y,useFeatureCall:()=>f});var s=n(73884),r=n(76329),a=n(33097),o=n.n(a),l=n(15797),i=n.n(l),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&&o()(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:l}=(()=>{const e=(0,r.usePreset)(),{profile:t,debug:n}=o()(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&&l&&console.log("[featureId] ".concat(u,",[state] ").concat(h(u,{features:t,profileMap:a})),a.get(u))}),[t,a,l,u]),{isPass:!(e&&t&&t.length>0)||h(u,{features:t,profileMap:a}),currentId:u,feature:a.get(u)}},y=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?o()(r,"options"):o()(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),o=n(55199),l=n(83136),i=n.n(l);const c="style_helper-guide__K5xFw__Fo22-",u="style_inner__bMKeU__Fo22-",d="style_content__xTfWZ__Fo22-",p="style_link__93j7O__Fo22-";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)(o.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)(o.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},o=(0,r.createContext)({}),{Provider:l,Consumer:i}=o,c=()=>(0,r.useContext)(o);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 y={layout:"style_layout__k+lxR__Fo22-","page-content":"style_page-content__4XeN8__Fo22-","page-main":"style_page-main__P0yEF__Fo22-","page-main-content":"style_page-main-content__1OVPN__Fo22-","table-page":"style_table-page__JkbLf__Fo22-","helper-guide":"style_helper-guide__vzw4z__Fo22-","page-outer":"style_page-outer__2a6iH__Fo22-","no-margin":"style_no-margin__S6caT__Fo22-","page-menu":"style_page-menu__CZSa9__Fo22-",closed:"style_closed__hmnft__Fo22-","page-menu-inner":"style_page-menu-inner__rmKpu__Fo22-","page-menu-main":"style_page-menu-main__OXg2M__Fo22-","page-option-main":"style_page-option-main__LyfT3__Fo22-","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__Fo22-","page-option":"style_page-option__diS2S__Fo22-","page-option-inner":"style_page-option-inner__Fj1JH__Fo22-","page-option-footer":"style_page-option-footer__d7xE0__Fo22-","fixed-container":"style_fixed-container__1VZwY__Fo22-","is-fixed":"style_is-fixed__1aQhp__Fo22-","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__Fo22-","page-menu-btn":"style_page-menu-btn__BiTy8__Fo22-","page-title":"style_page-title__zw-Fd__Fo22-","page-title-text":"style_page-title-text__Rj4RC__Fo22-","no-padding":"style_no-padding__V7Dwy__Fo22-","page-header":"style_page-header__a813p__Fo22-","page-header-info":"style_page-header-info__cMrZR__Fo22-","layout-menu":"style_layout-menu__yiab0__Fo22-","sub-menu":"style_sub-menu__dyqK7__Fo22-","no-collapsed":"style_no-collapsed__76h8W__Fo22-","has-not-children":"style_has-not-children__fnjRK__Fo22-","table-page-top":"style_table-page-top__bt1l9__Fo22-","error-component":"style_error-component__HvghB__Fo22-","state-bar-page":"style_state-bar-page__+aUM4__Fo22-","back-icon":"style_back-icon__79v2G__Fo22-"};var x=n(70579);const v=e=>{let{className:t,isFixed:n,children:s}=e;return n?(0,x.jsx)("div",{className:f()(t,"fixed-container",y["fixed-container"],{[y["is-fixed"]]:n}),children:s}):(0,x.jsx)("div",{className:f()(t,"fixed-container",y["fixed-container"]),children:s})};var j=n(64671),b=n(17342),F=n(94679),N=n(33097),C=n.n(N),O=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:o,menuCloseButton:l}=e,i=(0,F.useLocation)().pathname.split("/")[1];return n?(0,x.jsxs)(s.Col,{className:f()(y["page-menu"],{[y.closed]:!r}),style:{"--width":a},children:[(0,x.jsx)(v,{className:y["page-menu-inner"],isFixed:o,children:(0,x.jsx)("div",{className:y["page-menu-main-outer"],children:(0,x.jsx)(b.A,{className:y["page-menu-main"],children:n})})}),l?(0,x.jsx)(v,{className:f()(y["page-menu-btn-outer"],{[y["is-fixed"]]:o}),isFixed:o,children:(0,x.jsx)(s.Button,{className:f()(y["page-menu-btn"],{[y.closed]:!r}),icon:r?(0,x.jsx)(j.default,{type:"icon-arrow-bold-left"}):(0,x.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,...o}=e;const{setPageProps:l}=c(),i=(0,r.useRef)(null),u=(()=>{const e=(0,F.useLocation)().pathname.split("/")[1];return(0,r.useMemo)((()=>{const t=w.A.getItem(P)||{};return!(0,O.A)(C()(t,e))||C()(t,e)}),[e])})(),d=(0,r.useRef)(u);return d.current=u,(0,r.useEffect)((()=>{if(!h()(i.current,o)){i.current=o;const e=Object.assign({},a,o,"boolean"===typeof d.current?{menuOpen:d.current}:{});e.header&&0===e.headerHeight&&delete e.headerHeight,e.optionFooter&&0===e.optionFooterHeight&&delete e.optionFooter,l(e)}}),[o,l]),!1===n?(0,x.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,x.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,...o}=e;return t?(0,x.jsx)(s.Affix,{...o,offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:r,onChange:a}):(0,x.jsx)("div",{...o})},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,x.jsx)("div",{...n,ref:s})},R=()=>{const{pageProps:e}=c(),{header:t,headerFixed:n}=e;return t?(0,x.jsx)(S,{isFixed:n,className:y["page-header"],offsetTop:u.navigationHeight,children:(0,x.jsx)(A,{targetKey:"headerHeight",children:t})}):null},I=()=>{const{pageProps:e}=c(),{headerInfo:t}=e,n=(0,r.useRef)(null);return t?(0,x.jsx)("div",{ref:n,className:f()(y["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:o}=e;const l=(0,F.useNavigate)();return n?(0,x.jsx)(M.default,{className:y["page-title"],...n,extra:r}):t||a||r?(0,x.jsxs)(s.Row,{justify:"space-between",align:"middle",className:y["page-title"],children:[(0,x.jsx)(s.Col,{children:(0,x.jsxs)(s.Space,{children:[t?(0,x.jsx)("div",{className:y["page-title-text"],children:o?(0,x.jsxs)(s.Space,{children:[(0,x.jsx)("span",{className:y["back-icon"],onClick:()=>{l(o)},children:(0,x.jsx)(j.default,{type:"icon-arrow-thin-left"})}),(0,x.jsx)("span",{children:t})]}):t}):null,a||null]})}),(0,x.jsx)(s.Col,{children:r})]}):null},T=()=>{const{pageProps:e}=c(),{option:t,optionWidth:n,optionFixed:r,optionFooter:a,optionFooterHeight:o,optionNoPadding:l}=e;return t?(0,x.jsx)(s.Col,{className:f()(y["page-option"],"page-option"),style:{"--width":n,"--foot-height":o+"px"},children:(0,x.jsxs)(v,{className:y["page-option-inner"],isFixed:r,children:[(0,x.jsx)(b.A,{className:f()(y["page-option-main"],"page-option-main"),style:{padding:l?"0px":"var(--padding-width)"},children:t}),a?(0,x.jsx)(A,{className:y["page-option-footer"],targetKey:"optionFooterHeight",children:(0,x.jsx)(s.Space,{align:"center",children:a})}):null]})}):null};var W=n(75363),q=n(29053);const{Content:B}=s.Layout,z=()=>(0,x.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,x.jsx)(s.Button,{size:"small",danger:!0,onClick:()=>window.location.reload(),children:"\u5237\u65b0"})}),U=e=>(0,x.jsx)(p.A,{...e,errorComponent:z}),G=e=>{let{children:t,theme:n,navigation:o}=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,x.jsxs)(s.Layout,{className:y.layout,style:Object.assign({},{"--nav-height":u.navigationHeight+"px","--nav-height-base":"var(--nav-height)","--scroll-left":-i+"px"},n),children:[o&&(0,x.jsx)(U,{children:(0,x.jsx)(u.default,{permissions:h,...o,onChange:e=>{(null===o||void 0===o?void 0:o.onChange)&&o.onChange(e)}})}),(0,x.jsx)(U,{children:(0,x.jsx)(B,{className:y["layout-content-wrap"],children:(0,x.jsxs)(l,{value:{pageProps:p,setPageProps:m},children:[(0,x.jsx)(U,{children:(0,x.jsx)(R,{})}),(0,x.jsx)(U,{children:(0,x.jsx)(I,{})}),(0,x.jsx)(U,{children:(0,x.jsxs)(s.Row,{className:f()(p.className,y["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,x.jsx)(U,{children:(0,x.jsx)(k,{})}),(0,x.jsx)(s.Col,{className:f()(y["page-content"],{[y["no-margin"]]:p.noMargin}),flex:1,style:{"--background-color":p.backgroundColor},children:(0,x.jsxs)("div",{className:y["page-main"],children:[(0,x.jsx)(U,{children:(0,x.jsx)(H,{title:p.title,backUrl:p.backUrl,filter:p.filter,titleExtra:p.titleExtra,titleLeftExtra:p.titleLeftExtra})}),(0,x.jsx)("div",{className:f()(y["page-main-content"],{[y["no-padding"]]:p.noPadding}),children:(0,x.jsxs)(U,{children:[p.helperGuideName&&(0,x.jsx)(W.default,{className:y["helper-guide-page"],name:p.helperGuideName}),t]})})]})}),(0,x.jsx)(U,{children:(0,x.jsx)(T,{})})]})})]})})})]})};G.defaultProps={navigation:{}};const V=G,X=e=>{let{permissions:t,...n}=e;return(0,x.jsx)(q.default,{...Object.assign({},t,{type:"error"}),children:(0,x.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:o,name:l,topArea:i,...c}=e;const[u,d]=(0,r.useState)(null);return(0,x.jsxs)(X,{name:l,openFeatures:o,permissions:s,...a,children:[i?(0,x.jsx)("div",{className:y["table-page-top"],children:"function"===typeof i?i(u):i}):null,(0,x.jsxs)("div",{className:y["table-page"],children:[n&&(0,x.jsx)(W.default,{className:f()("helper-guide",y["helper-guide"]),name:n}),(0,x.jsx)(Q.TablePage,{...c,ref:t,name:l,onRequestSuccess:e=>{d(e)}})]})]})}));var D=n(87227);const Y=e=>{let{helperGuideName:t,permissions:n,page:s,stateBar:r,children:a,...o}=e;return(0,x.jsxs)(X,{...s,permissions:n,...o,children:[(0,x.jsx)("div",{className:y["state-bar-page"],children:(0,x.jsx)(D.default,{...r})}),t&&(0,x.jsx)(W.default,{className:y["helper-guide"],name:t}),a]})}},28148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});const s={menu:"style_menu__gvIvn__Fo22-","all-no-start-icon":"style_all-no-start-icon__CA+zR__Fo22-","no-start-icon":"style_no-start-icon__LnC1S__Fo22-","has-children":"style_has-children__m9tce__Fo22-","has-children-node":"style_has-children-node__2bhEB__Fo22-","is-root":"style_is-root__4hhOc__Fo22-",title:"style_title__+Hcar__Fo22-",active:"style_active__WU49K__Fo22-","no-collapse":"style_no-collapse__aIZBM__Fo22-","title-content":"style_title-content__cQXpK__Fo22-",loading:"style_loading__1pU4P__Fo22-"};var r=n(83136),a=n.n(r),o=n(55199),l=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,l.useNavigate)(),{id:n,className:r,label:c,iconType:u,path:p,request:_,onClick:h,isOpen:f,isSelected:y,onOpenChange:x,children:v,fetchOptions:j,depth:b,onLoad:F,allowCollapsed:N}=e,C=Array.isArray(v)&&v.length>0||j,{refresh:O,isLoading:w}=(0,m.useFetch)(Object.assign({},j,{auto:!N&&j,onRequestSuccess:e=>{F(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]:y,[s["has-children"]]:C,[s["no-collapse"]]:C&&!N,[s["no-start-icon"]]:!u,[s["is-root"]]:0===b}),onClick:s=>{s.stopPropagation(),C||!p?C||j?N&&(j&&O({}),x(!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}),C&&N&&(0,g.jsx)(d.default,{type:f?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),C?!N||f&&v?(0,g.jsx)("div",{className:s["children-list"],children:v}):!N||f&&w?(0,g.jsx)("div",{className:s["children-list"],children:(0,g.jsx)(o.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},y=e=>{let{className:t,allowCollapsed:n,...r}=e;const{pathname:o,search:i}=(0,l.useLocation)(),[c,d]=u()(r,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[_,m]=u()(r,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:y,defaultOpenKeys:x,links:v,childrenKeys:j,hasStartIcon:b,hasChildren:F}=(0,p.useMemo)((()=>{var e;const{items:t,childrenKeys:n,nodeMapping:s}=(e=>{const t={},n=[],s=(e,r)=>{const{parentKey:a,depth:o}=Object.assign({parentKey:"root",depth:0,paths:[]},r);return Array.isArray(e)&&e.length>0?e.map(((e,r)=>{const l="".concat(e.key||"".concat("root"!==a?"".concat(a,"-"):"","node-").concat(r));t[a]||(t[a]=[]),t[a].push(l);const i=s(e.children,{parentKey:l,depth:o+1});t[l]&&t[a].push(...t[l]);const c=Object.assign({},e,{key:l,parentKey:a,depth:o,children:i,originItem:e});return n[l]=c,c})):null};return{items:s(e),childrenKeys:t,nodeMapping:n}})(_);let r=!1,a=!1;const o=[],l=[];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&&o.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(a=!0,l.push(t.key))})),{defaultOpenKeys:l,links:o,items:t,childrenKeys:n,hasStartIcon:r,hasChildren:a}}),[_]);(0,p.useEffect)((()=>{const e=v.find((e=>{let{path:t}=e;return h()(o.replace(/[#,?].*/,""))===h()(t)||h()(o+i)===h()(t)}));e&&d(e.key)}),[v,o,i,d]);const[N,C]=u()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||x}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),O=(0,p.useCallback)(((e,t)=>{const{parentKey:s,depth:r,selectedKey:a,openKeys:o,paths:l}=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:(o||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{C((e=>{const t=e.slice(0);return e.indexOf(i)>-1?t.splice(e.indexOf(i),1):t.push(i),t}))}},O(t,{parentKey:s,depth:r+1,selectedKey:a,openKeys:o,paths:[...l,i]}))})):null}),[m,C,d,j,n]);return(0,g.jsx)("div",{className:a()(t,s.menu,{[s["all-no-start-icon"]]:!b,[s["has-children-node"]]:F}),children:O(y,{selectedKey:c,openKeys:N})})};y.defaultProps={defaultItems:[],allowCollapsed:!0};const x=y},79329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>P,navigationHeight:()=>C});var s=n(55199),r=n(94679),a=n(33097),o=n.n(a),l=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__Fo22-",g="style_navigation__60RrS__Fo22-",f="style_is-fixed__kHFWj__Fo22-",y="style_navigation-logo__q9qHu__Fo22-",x="style_logo__lB9RC__Fo22-",v="style_navigation-list__EYtkg__Fo22-",j="style_navigation-options__0BdJU__Fo22-",b="style_more-icon__gNMnt__Fo22-";var F=n(70579);const{Header:N}=s.Layout,C=48,O=e=>{let{name:t,mapping:n,defaultTitle:s}=e;const r=(0,l.useRef)({mapping:n,defaultTitle:s});return(0,l.useEffect)((()=>{const e=o()(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:C,showIndex:w,indexLabel:P,defaultTitle:k,overflowedIndicator:E,base:L,onChange:K,className:S}=e;const A=(0,l.useMemo)((()=>new Map(n.map((e=>{let{key:t,...n}=e;return[t,n]})))),[n]),R=(0,r.useNavigate)(),I=(0,r.useLocation)(),M=(0,l.useRef)(),H=(0,l.useRef)(null),[T,W]=(0,l.useState)("\u66f4\u591a"),q=I.pathname.replace(new RegExp("^".concat(L)),"").split("/")[1],B=q?o()(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,l.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?o()(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,F.jsx)(_.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{K&&K("/"),setTimeout((()=>{R("/")}),0)}};return(0,F.jsxs)(_.IntlProvider,{importMessages:p,moduleName:"Navigation",children:[(0,F.jsx)(_.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,F.jsx)(O,{defaultTitle:k||e,mapping:A,name:B})}),(0,F.jsx)("div",{className:c()(m,S),children:(0,F.jsx)(N,{className:c()("navigation",g,{[f]:C}),children:(0,F.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,F.jsx)(s.Col,{className:c()("navigation-logo",y),children:(0,F.jsx)(d.default,{className:c()(x),src:u,alt:"logo",...a})}),(0,F.jsx)(s.Col,{ref:M,flex:1,className:c()("navigation-list",v),children:(0,F.jsx)(s.Menu,{selectedKeys:[B],mode:"horizontal",overflowedIndicator:E||(0,F.jsxs)(s.Space,{size:4,children:[(0,F.jsx)("span",{children:T||(0,F.jsx)(_.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,F.jsx)("span",{className:b,children:(0,F.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 o="function"===typeof r?r(a,t):r;return{label:s,key:n,onClick:()=>{K&&K(o),setTimeout((()=>{R(o)}),0)}}}))]})}),(0,F.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),o=n.n(a),l=n(83136),i=n.n(l);const c="style_outer__vbHB9__Fo22-";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&&o()(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:o,request:l,children:u,...p}=e;const _=h({request:l});return"function"===typeof u?u({isPass:_,type:t,request:l}):!0===_?u:"error"===t?(0,d.jsx)(r.Result,{status:"403",subTitle:o}):"tooltip"===t?(0,d.jsx)(r.Tooltip,{title:o,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 o={"state-bar":"style_state-bar__3jfis__Fo22-","has-children":"style_has-children__oQDqU__Fo22-","tab-tab-control":"style_tab-tab-control__SopeO__Fo22-","tab-radio-control":"style_tab-radio-control__R8X6-__Fo22-","tab-step-control":"style_tab-step-control__EQaCl__Fo22-","inner-state-bar":"style_inner-state-bar__lWmOz__Fo22-"};var l=n(70579);const i=e=>{let{className:t,type:n="tab",stateOption:r=[],isInner:i,...c}=e;return(0,l.jsx)(s.Tabs,{...c,"data-testid":"components-core-state-bar",className:a()(o["state-bar"],o["tab-".concat(n,"-control")],t,{[o["inner-state-bar"]]:i,[o["has-children"]]:r.some((e=>!!e.children))}),style:{"--total-count":r.length},animated:!1,items:r.map((e=>{let{tab:t,label:n,key:s,...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 o=e[r];t(s,o,n(o),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),o=n(54052);e.exports=function(e,t){return function(n,l){var i=o(n)?s:r,c=t?t():{};return i(n,e,a(l,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,o=t?a:-1,l=Object(n);(t?o--:++o<a)&&!1!==r(l[o],o,l););return n}}},21844:(e,t,n)=>{var s=n(75816),r=n(9096),a=n(99140),o=Math.max,l=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?o(i+c,0):l(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,o=r((function(e,t,n){a.call(e,n)?e[n].push(t):s(e,n,[t])}));e.exports=o},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.15b26581.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__Fo22-",m="style_is-danger__gxyAB__Fo22-",h="style_title__EEPu2__Fo22-",_="style_content__mZZg5__Fo22-",p="style_has-title__5+PEt__Fo22-";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:b,okText:j,placement:w,getContainer:N,...v}=o;const{formatMessage:k}=(0,i.useIntl)({moduleName:"ConfirmButton"}),F=(0,a.useConfirmModal)();return b?(0,u.jsx)(e,{...v,disabled:y,onClick:e=>{F({type:"confirm",title:t,getContainer:N,danger:r,confirmType:r?"warning":"info",message:l||k({id:"message"}),okText:j||k(r?{id:"delete"}:{id:"confirm"}),cancelText:x||k({id:"cancel"}),onCancel:g,onOk:f})}}):(0,u.jsx)(n.Popconfirm,{title:(0,u.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(n.Space,{size:0,align:"start",className:h,children:[r&&(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,u.jsxs)(n.Space,{size:0,align:"start",className:c()(_,{[p]:t}),children:[!t&&r?(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||k({id:"message"})]})]}),placement:w,onConfirm:f,okButtonProps:{danger:r},onCancel:g,overlayClassName:c()(d,{[m]:r}),getPopupContainer:N,disabled:y,showCancel:C,cancelText:x,okText:j||k(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...v,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:()=>B,TabsModal:()=>P,TabsModalButton:()=>S,default:()=>k,useConfirmModal:()=>v,useModal:()=>N,useTabsModal:()=>M});var n=t(73884),l=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__Fo22-",large:"style_large__iaqVE__Fo22-","modal-body-inner":"style_modal-body-inner__4PhpA__Fo22-","modal-title":"style_modal-title__dswaw__Fo22-","modal-outer":"style_modal-outer__r3SkX__Fo22-","modal-body":"style_modal-body__jQJSI__Fo22-","right-options-modal":"style_right-options-modal__FajDP__Fo22-","right-options-row":"style_right-options-row__-mPb9__Fo22-","right-options-col":"style_right-options-col__3ilee__Fo22-","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__Fo22-",content:"style_content__k6MIF__Fo22-","modal-footer":"style_modal-footer__-prbN__Fo22-","modal-close":"style_modal-close__Oa5Kl__Fo22-","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__Fo22-","is-danger":"style_is-danger__H5110__Fo22-",title:"style_title__orTym__Fo22-","has-title":"style_has-title__qy0Wp__Fo22-"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=t(81014),_=t(17342),p=t(70579);const u="Modal",f=e=>{let{options:o,children:t}=e;return o?(0,p.jsxs)(l.Row,{wrap:!1,className:a["right-options-row"],children:[(0,p.jsx)(l.Col,{span:18,className:a["right-options-col"],children:t}),(0,p.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,p.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,p.jsx)(l.Col,{children:(0,p.jsx)(l.Space,{children:(t||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:l,autoClose:s=!0,display:i,...r}=e;const c=t||h.default;return(0,n.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(l&&l(...o,d));return s&&!1!==n&&a&&a(),n}})}))})})]})},x=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:g}=e;const y=(0,n.useRef)(null);return(0,p.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,p.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,p.jsx)("div",{className:a["modal-title"],children:o}),(0,p.jsx)(_.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:y,children:(0,p.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,p.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,p.jsx)(C,{footer:t,footerButtons:r,onConfirm:h,onCancel:u,onClose:c,targetProps:g})}):null]})},b=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,disabledScroller:d,childrenRef:h,children:_}=e;const u=e=>(e=Object.assign({},{title:n},e),(0,p.jsx)(x,{title:m(e.title,{...e,childrenRef:h,close:s}),closable:l,onClose:s,onConfirm:i,onCancel:a,footerButtons:m(t,{...e,close:s}),disabledScroller:d,footer:m(r,{...e,childrenRef:h,close:s}),targetProps:Object.assign({},e,{childrenRef:h,close:s}),children:(0,p.jsx)(f,{options:m(c,{...e,childrenRef:h,close:s}),children:m(_,{...e,childrenRef:h,close:s})})}));return"function"===typeof o?o(u):u({})},j=e=>{let{children:o,rightOptions:t,footer:n,footerButtons:l,className:s,size:d,title:m,onClose:h,onConfirm:_,onCancel:u,closable:f,disabledScroller:g,withDecorator:C,childrenRef:x,...j}=e;return{...j,icon:null,centered:!0,title:null,maskClosable:!!j.hasOwnProperty("maskClosable")&&j.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:h,className:i()(s,a.modal,a[d],{[a["right-options-modal"]]:t}),...y(d,!(null===n&&!l)),children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:b({withDecorator:C,title:m,closable:f,onClose:h,onConfirm:_,onCancel:u,footer:n,footerButtons:l,rightOptions:t,disabledScroller:g,children:o,childrenRef:x})})}},w=e=>{const o=(0,n.useRef)(null);return(0,p.jsx)(l.Modal,{...j(Object.assign({},e,{childrenRef:o}))})};w.defaultProps={size:"default"};const N=()=>{const{modal:e}=l.App.useApp(),o=(0,n.useRef)(null);return t=>{const n={},{children:l,...s}=j({onClose:()=>n.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:l});return n.close=i,n}},v=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:r,danger:c,wrapClassName:m,message:h,iconSetting:_={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},_);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,p.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,p.jsxs)(l.Space,{size:0,align:"start",className:a.title,children:[c?(0,p.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,p.jsxs)(l.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,p.jsx)(d.default,{className:i()("title-icon","title-icon-".concat("confirm"===n?u:n)),type:s||g["confirm"===n?u:n]}):null,h]})});t.close=o}return t}},k=w,F=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,p.jsx)(l.Tabs,{items:o.map((o=>{let{withDecorator:n,...l}=o;return Object.assign({},l,{children:"function"===typeof n?n((o=>e(Object.assign({},t,o,{children:l.children})))):e(Object.assign({},t,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},P=e=>(0,p.jsx)(k,{...F(e)}),M=()=>{const e=N();return o=>e(F(o))};var T=t(73025);const S=e=>{const o=M();return(0,p.jsx)(T.A,{...e,modalFunc:o})},B=e=>{const o=N();return(0,p.jsx)(T.A,{...e,modalFunc:o})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5600.fbe5fb93.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5873,9034,7790,4912],{58407:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ConfirmLink:()=>v,ConfirmText:()=>h,default:()=>_,withConfirm:()=>x});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__Fo22-",u="style_is-danger__gxyAB__Fo22-",p="style_title__EEPu2__Fo22-",m="style_content__mZZg5__Fo22-",f="style_has-title__5+PEt__Fo22-";var g=s(70579);const x=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:i})((t=>{let{title:s,message:i,isDelete:o=!0,onClick:x,onCancel:v,disabled:h,showCancel:_,cancelText:j,isModal:y,okText:F,placement:N,getContainer:S,...C}=t;const{formatMessage:w}=(0,l.useIntl)({moduleName:"ConfirmButton"}),P=(0,r.useConfirmModal)();return y?(0,g.jsx)(e,{...C,disabled:h,onClick:e=>{P({type:"confirm",title:s,getContainer:S,danger:o,confirmType:o?"warning":"info",message:i||w({id:"message"}),okText:F||w(o?{id:"delete"}:{id:"confirm"}),cancelText:j||w({id:"cancel"}),onCancel:v,onOk:x})}}):(0,g.jsx)(n.Popconfirm,{title:(0,g.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[s&&(0,g.jsxs)(n.Space,{size:0,align:"start",className:p,children:[o&&(0,g.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}),s]}),(0,g.jsxs)(n.Space,{size:0,align:"start",className:c()(m,{[f]:s}),children:[!s&&o?(0,g.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,i||w({id:"message"})]})]}),placement:N,onConfirm:x,okButtonProps:{danger:o},onCancel:v,overlayClassName:c()(d,{[u]:o}),getPopupContainer:S,disabled:h,showCancel:_,cancelText:j,okText:F||w(o?{id:"delete"}:{id:"confirm"}),children:(0,g.jsx)(e,{...C,disabled:h})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},v=x(n.Typography.Link),h=x(n.Typography.Text),_=x(n.Button)},48731:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>x});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 u=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],p=(0,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(u.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),f=e=>{let{loader:t,...s}=e;const{global:{enumsRef:i}}=(0,a.useGlobalContext)(),l=(0,n.useRef)(null);return(0,d.jsx)(p,{...s,loader:async function(){const e=m(await t(...arguments)),{params:s}=arguments.length<=0?void 0:arguments[0],{moduleName: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 u=await d(n);return c()(a)?Array.from(u.values()):u.get(a.toString())}})},g=e=>{let{moduleName:t,name:s,force:n,children:i,...l}=e;const r=(0,a.usePreset)();return(0,d.jsx)(f,{...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})};g.defaultProps={force:!1};const x=g},24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>K,DragAreaOuter:()=>Z,DragButton:()=>V,FileUpload:()=>le,Title:()=>D,UploadButton:()=>X,UploadTips:()=>q,default:()=>se});var n=s(73884),i=s(33097),a=s.n(i),l=s(55199);const r="style_file-list-outer__wPhbb__Fo22-",o="style_file-list-title__zXM5r__Fo22-",c="style_container__P4RaF__Fo22-",d="style_file-preview-inner__cvE72__Fo22-",u="style_file-preview__M-Asq__Fo22-",p="style_drag-area__Q+lm7__Fo22-",m="style_upload-drag-close__u5o8W__Fo22-",f="style_upload-drag-tips__z7puZ__Fo22-",g="style_upload-drag-icon__sGGoS__Fo22-",x="style_upload-drag-title__9Afmb__Fo22-",v="style_upload-drag-text__o38vS__Fo22-",h="style_title-group__8IJkS__Fo22-",_="style_upload-btn__Q+Jxn__Fo22-",j="style_total-count__z1fyd__Fo22-",y="style_file-select__mHqyI__Fo22-",F="style_file-name__QkvMn__Fo22-",N="style_file-select-info__fOLiM__Fo22-",S="style_file-select-option__AbDrD__Fo22-";var C=s(75087),w=s.n(C),P=s(74065),b=s.n(P),L=s(57469),M=s.n(L),T=s(64671),z=s(67390),E=s(58609),I=s(70579);const A=e=>{let{currentTab:t,setCurrentTab:s,previewMap:n,previewList:i,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:p,getPopupContainer:m}=e;return(0,I.jsx)("div",{className:o,children:(0,I.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,I.jsx)(l.Col,{children:(0,I.jsxs)(l.Space,{className:h,size:4,children:[(0,I.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,I.jsxs)(l.Space,{size:4,children:[(0,I.jsx)(T.default,{type:"icon-shitu-liebiao"}),(0,I.jsx)(E.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,I.jsxs)(l.Space,{size:4,children:[(0,I.jsx)(T.default,{type:"icon-shitu-yulan"}),(0,I.jsx)(E.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&n.get(r)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.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,I.jsx)(l.Select.Option,{className:S,value:i,children:(0,I.jsxs)(l.Space,{direction:"vertical",children:[(0,I.jsxs)(l.Space,{size:4,align:"start",children:[(0,I.jsx)(w(),{type:b()(t.split(".")),size:14}),(0,I.jsx)(l.Typography.Text,{className:F,ellipsis:!0,style:{"--max-width":"".concat(p,"px")},children:t})]}),s||n?(0,I.jsxs)(l.Space,{className:N,size:24,children:[(0,I.jsxs)("div",{children:[(0,I.jsx)(E.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,I.jsxs)("div",{children:[(0,I.jsx)(E.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&M()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},i)}))}),(0,I.jsx)(z.OptionButtons,{hasPreview:!1,getPermission:a,item:n.get(r),apis:d}),(0,I.jsx)("div",{className:j,children:(0,I.jsx)(E.FormattedMessage,{id:"totalCount",values:{count:i.length},moduleName:"FileList"})})]})]})}),(0,I.jsx)(l.Col,{children:u})]})})};A.defaultProps={maxWidth:260};const D=A,k=e=>({"en-US":()=>s.e(5714).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var O=s(70720),U=s.n(O),B=s(83136),R=s.n(B);const Y=(0,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,I.jsx)("div",{ref:n,className:_,onClick:()=>{s((e=>!e))},children:(0,I.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,I.jsx)(T.default,{type:"icon-tuozhuaishangchuan"}),t||(0,I.jsx)(E.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:n}=W();return(0,I.jsxs)(H.AG,{className:_,accept:s,multiple:!0,onChange:n,children:[(0,I.jsx)(T.default,{type:"icon-tianjia"}),t]})},Z=e=>{let{title:t,accept:s,fileSize:i,maxLength:a,onFileSelected:o,children:d,className:u}=e;const[p,m]=(0,n.useState)(!1),f=(0,n.useRef)(null),g=U()((e=>{f.current&&(f.current.contains(e.target)||e.target===f.current||m(!1))}));return(0,I.jsx)(E.IntlProvider,{importMessages:k,moduleName:"FileList",children:(0,I.jsx)(G,{value:{open:p,onOpenChange:m,accept:s,fileSize:i,maxLength:a,onFileSelected:o,getDragButtonEl:e=>{f.current=e}},children:(0,I.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,I.jsx)("div",{className:R()(c,u),ref:g,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,E.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:i.map((e=>e.replace(/^\./,""))).join("\u3001"),size:a}),{fileSize:a,maxLength:l,accept:i});return(0,I.jsxs)("div",{className:R()(f,"upload-drag-tips"),children:[(0,I.jsx)("div",{className:g,children:t||(0,I.jsx)(T.default,{type:"icon-shangchuan",size:64})}),(0,I.jsx)("div",{className:x,children:s||(0,I.jsx)(E.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,I.jsx)("div",{className:v,children:r})]})};q.defaultProps={renderTips:e=>e};const J=e=>{let{children:t,className:s}=e;const{open:n,accept:i,onOpenChange:a,onFileSelected:r}=W();return n?(0,I.jsxs)("div",{className:R()(p,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;a(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,i)));r(t)},onDragEnd:()=>{a(!1)},children:[(0,I.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,I.jsx)(T.default,{type:"icon-close-bold"}),onClick:()=>{a(!1)}}),t]}):null};J.defaultProps={children:(0,I.jsx)(q,{})};const K=J;var $=s(10419),ee=s(76329);const te=e=>{var t;let{maxLength:s,list:i,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:p,getPermission:m,titleExtra:f,fileSize:g,accept:x,getPopupContainer:v}=e;const{apis:h}=(0,ee.usePreset)(),_=Object.assign({},h,p),{fileList:j,onFileSelected:y}=(0,H.lN)({maxLength:s,multiple:!0,value:i,onChange:r,concurrentCount:1,onAdd:()=>{N("list")},onSave:_.onSave,ossUpload:_.ossUpload}),[F,N]=(0,n.useState)(o),{formatMessage:S}=(0,E.useIntl)({moduleName:"FileList"}),{message:C}=l.App.useApp(),w=(0,n.useMemo)((()=>new Map(i.map((e=>[e.ossId,e])))),[i]),[P,b]=(0,n.useState)(c||a()(i,"[0].ossId",null));(0,n.useEffect)((()=>{P&&w.get(P)||b(a()(i,"[0].ossId",null))}),[i,w,P]);const L={onPreview:e=>{b(e.ossId),N("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})),C.success(S({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})),C.success(S({id:"successEditFileName"},{name:s.filename}))}},M="function"===typeof f?f({currentPreviewFileId:P,currentTab:F}):f;return(0,I.jsxs)(Z,{title:(0,I.jsx)(D,{currentTab:F,setCurrentTab:N,previewMap:w,previewList:i,getPermission:m,currentPreviewFileId:P,setCurrentPreviewFileId:b,itemApis:L,getPopupContainer:v,children:(0,I.jsxs)(l.Space,{split:(0,I.jsx)(l.Divider,{type:"vertical"}),children:[M,m("add",{})?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(V,{children:(0,I.jsx)(E.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,I.jsx)(X,{children:(0,I.jsx)(E.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:y,accept:x,children:["list"===F?(0,I.jsx)(z.List,{dataSource:[...j,...i],getPermission:m,apis:L}):null,"preview"===F?P?(0,I.jsx)("div",{className:d,children:(0,I.jsx)($.default,{className:u,id:P,apis:_,originName:null===(t=w.get(P))||void 0===t?void 0:t.filename})}):(0,I.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,I.jsx)(K,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,I.jsx)(E.IntlProvider,{importMessages:k,moduleName:"FileList",children:(0,I.jsx)(te,{...e})});var 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,u]=ie()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:p,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:u,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,I.jsxs)(Z,{title:(0,I.jsxs)(l.Row,{children:[(0,I.jsx)(l.Col,{flex:1}),(0,I.jsx)(l.Col,{children:(0,I.jsxs)(l.Space,{split:(0,I.jsx)(l.Divider,{type:"vertical"}),children:[(0,I.jsx)(V,{}),(0,I.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:i,maxLength:t,onFileSelected:m,accept:a,children:[(0,I.jsx)(z.List,{dataSource:[...p,...d],getPermission:n,apis:c}),(0,I.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.6057b4b5.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:()=>K});const n={menu:"style_menu__gvIvn__Fo22-","all-no-start-icon":"style_all-no-start-icon__CA+zR__Fo22-","no-start-icon":"style_no-start-icon__LnC1S__Fo22-","has-children":"style_has-children__m9tce__Fo22-","has-children-node":"style_has-children-node__2bhEB__Fo22-","is-root":"style_is-root__4hhOc__Fo22-",title:"style_title__+Hcar__Fo22-",active:"style_active__WU49K__Fo22-","no-collapse":"style_no-collapse__aIZBM__Fo22-","title-content":"style_title-content__cQXpK__Fo22-",loading:"style_loading__1pU4P__Fo22-"};var l=t(83136),a=t.n(l),o=t(55199),r=t(94679),i=t(29053),c=t(10986),d=t.n(c),p=t(64671),h=t(73884),u=t(18081),_=t.n(u),y=t(87558),m=t(70579);const g=e=>{const s=(0,r.useNavigate)(),{id:t,className:l,label:c,iconType:d,path:h,request:u,onClick:_,isOpen:g,isSelected:f,onOpenChange:K,children:O,fetchOptions:v,depth:C,onLoad:j,allowCollapsed:k}=e,b=Array.isArray(O)&&O.length>0||v,{refresh:x,isLoading:N}=(0,y.useFetch)(Object.assign({},v,{auto:!k&&v,onRequestSuccess:e=>{j(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]:f,[n["has-children"]]:b,[n["no-collapse"]]:b&&!k,[n["no-start-icon"]]:!d,[n["is-root"]]:0===C}),onClick:n=>{n.stopPropagation(),b||!h?b||v?k&&(v&&x({}),K(!g)):null===_||void 0===_||_(t,e):s(h)},children:[d&&(0,m.jsx)(p.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),b&&k&&(0,m.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),b?!k||g&&O?(0,m.jsx)("div",{className:n["children-list"],children:O}):!k||g&&N?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(o.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},f=e=>{let{className:s,allowCollapsed:t,...l}=e;const{pathname:o,search:i}=(0,r.useLocation)(),[c,p]=d()(l,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[u,y]=d()(l,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:f,defaultOpenKeys:K,links:O,childrenKeys:v,hasStartIcon:C,hasChildren:j}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth:o}=Object.assign({parentKey:"root",depth:0,paths:[]},l);return Array.isArray(e)&&e.length>0?e.map(((e,l)=>{const r="".concat(e.key||"".concat("root"!==a?"".concat(a,"-"):"","node-").concat(l));s[a]||(s[a]=[]),s[a].push(r);const i=n(e.children,{parentKey:r,depth:o+1});s[r]&&s[a].push(...s[r]);const c=Object.assign({},e,{key:r,parentKey:a,depth:o,children:i,originItem:e});return t[r]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(u);let l=!1,a=!1;const o=[],r=[];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&&o.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(a=!0,r.push(s.key))})),{defaultOpenKeys:r,links:o,items:s,childrenKeys:t,hasStartIcon:l,hasChildren:a}}),[u]);(0,h.useEffect)((()=>{const e=O.find((e=>{let{path:s}=e;return _()(o.replace(/[#,?].*/,""))===_()(s)||_()(o+i)===_()(s)}));e&&p(e.key)}),[O,o,i,p]);const[k,b]=d()(Object.assign({},l,{defaultOpenKeys:l.defaultOpenKeys||K}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),x=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:l,selectedKey:a,openKeys:o,paths:r}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...d}=e;return(0,h.createElement)(g,{...Object.assign({},d),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||v[i]&&v[i].indexOf(a)>-1,onClick:p,onLoad:e=>{y((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(o||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{b((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},x(s,{parentKey:n,depth:l+1,selectedKey:a,openKeys:o,paths:[...r,i]}))})):null}),[y,b,p,v,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!C,[n["has-children-node"]]:j}),children:x(f,{selectedKey:c,openKeys:k})})};f.defaultProps={defaultItems:[],allowCollapsed:!0};const K=f},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),o=t.n(a),r=t(83136),i=t.n(r);const c="style_outer__vbHB9__Fo22-";var d=t(76329),p=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,d.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,d.usePreset)();return{permissions:e.permissions||s||t&&o()(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:o,request:r,children:d,...h}=e;const u=_({request:r});return"function"===typeof d?d({isPass:u,type:s,request:r}):!0===u?d:"error"===s?(0,p.jsx)(l.Result,{status:"403",subTitle:o}):"tooltip"===s?(0,p.jsx)(l.Tooltip,{title:o,children:(0,n.createElement)(a,{...h,className:i()(c,t)},d)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
|
|
2
|
-
//# sourceMappingURL=6611.ecbae262.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:()=>je,CityFilterItem:()=>Fe,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FilterItem:()=>z,FilterItemContainer:()=>Xe,FilterLines:()=>F,FilterValueDisplay:()=>y,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ce,NumberRangeFilterItem:()=>be,PopoverItem:()=>le,SearchInput:()=>Ae,TreeFilterItem:()=>ye,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe,advancedFields:()=>Ye,default:()=>qe,fields:()=>a,getFilterValue:()=>Me,useFilter:()=>v,withFieldItem:()=>D,withFilterValue:()=>ke});var a={};t.r(a),t.d(a,{AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>je,CityFilterItem:()=>Fe,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ce,NumberRangeFilterItem:()=>be,TreeFilterItem:()=>ye,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe});var n=t(83136),s=t.n(n),r=t(73884),i=t(64671);const o={filter:"style_filter__Xml45__Fo22-","filter-item-icon":"style_filter-item-icon__kVCRK__Fo22-","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__Fo22-","filter-title":"style_filter-title__PlIpS__Fo22-","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__Fo22-","ad-filter-title":"style_ad-filter-title__5-OzD__Fo22-","ad-filter-line":"style_ad-filter-line__ga6UH__Fo22-","filter-line":"style_filter-line__E+cRh__Fo22-","clean-btn":"style_clean-btn__oSEvm__Fo22-","filter-item":"style_filter-item__Q2ncE__Fo22-","un-expand":"style_un-expand__4PFY8__Fo22-","ad-filter-selected":"style_ad-filter-selected__KbLfG__Fo22-","filter-label":"style_filter-label__qu26i__Fo22-","filter-item-wrap":"style_filter-item-wrap__rOq7H__Fo22-",option:"style_option__rd5Qo__Fo22-","is-active":"style_is-active__OArQI__Fo22-","is-visited":"style_is-visited__gZ5ni__Fo22-","un-expand-shadow":"style_un-expand-shadow__fj92e__Fo22-","filter-item-label":"style_filter-item-label__C781J__Fo22-","filter-item-field":"style_filter-item-field__Ltfr8__Fo22-","filter-drop-tag":"style_filter-drop-tag__DD-2P__Fo22-","filter-list-tag":"style_filter-list-tag__Qt5hA__Fo22-","filter-tag":"style_filter-tag__dUGfu__Fo22-","filter-tag-value":"style_filter-tag-value__p-SFv__Fo22-","pop-util-content":"style_pop-util-content__bx5zP__Fo22-","pop-util-overlay":"style_pop-util-overlay__LEASt__Fo22-","pop-util-footer":"style_pop-util-footer__Xat1s__Fo22-","pop-util-text":"style_pop-util-text__pzeUy__Fo22-","filter-item-inner":"style_filter-item-inner__LVXgh__Fo22-","filter-item-text":"style_filter-item-text__MA8tU__Fo22-","filter-item-number-range":"style_filter-item-number-range__U-OgQ__Fo22-","filter-item-custom":"style_filter-item-custom__UusRa__Fo22-","filter-item-custom-active":"style_filter-item-custom-active__uFtny__Fo22-","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__Fo22-","filter-item-number-input":"style_filter-item-number-input__YPO6K__Fo22-","range-picker":"style_range-picker__c6ngq__Fo22-","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__Fo22-","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__Fo22-","filter-advanced":"style_filter-advanced__4cyDy__Fo22-","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__Fo22-","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__Fo22-","filter-advanced-more":"style_filter-advanced-more__OFXq4__Fo22-"};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 F=x;var j=t(62716);const y=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)(j.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),b=t.n(C),N=t(41740),I=t.n(N),M=t(36);const k=e=>{let{children:l,className:t,...a}=e;const[n,i]=b()(a),c=(0,r.useMemo)((()=>n.filter((e=>(0,M.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=I()(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})})})})};k.defaultProps={defaultValue:[]};const A=k,S=e=>(0,f.jsx)(A,{...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)(F,{...s}),t&&t.length>0&&(0,f.jsx)(y,{value:t,onChange:a,extraExpand:n})]})}});S.defaultProps={defaultValue:[]};const P=S;var w=t(55490);const z=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})]})})},D=e=>l=>{let{value:t,onChange:a,interceptor:n,label:s,...i}=l;const[c,u]=(0,r.useState)(!1);return(0,f.jsx)(z,{label:s,open:c,active:(0,w.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 T=t(12392),O=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__Fo22-",K="style_is-popup__pCRv2__Fo22-";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)(z,{open:h,active:(0,w.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=D((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=D((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=D(T.Ay),fe=D(T.Eo),ge=D(O.A),xe=D(L.A),Fe=D(V.Ay),je=D(E.Ay),ye=D($),Ce=_e(te),be=_e(ie);var Ne=t(22717),Ie=t.n(Ne);const Me=e=>Ie()(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}),{}),ke=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})},Ae=ke((e=>{let{label:l,onChange:t,value:a,...n}=e;return(0,f.jsx)(M.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 Se=t(76329);const{CheckableTag:Pe}=c.Tag,we=e=>{let{value:l,onChange:t,single:a,maxLength:n,addressApi:s,...i}=e;const{message:d}=c.App.useApp(),{locale:m}=(0,Se.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)(Pe,{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)(Pe,{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))))}})]})]})};we.defaultProps={single:!1,maxLength:5};const ze=(0,V.DF)(we);var De=t(19853),Te=t.n(De);const{CheckableTag:Oe}=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)(Oe,{size:"small",checked:s?Te()(n,null===l||void 0===l?void 0:l.value):!!(l||[]).find((e=>{let{value:l}=e;return Te()(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 Te()(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:ze,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)(A,{...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)(F,{className:o["filter-advanced-more"],label:"".concat(l({id:"moreText"}),":"),list:[r]})]}),t&&t.length>0&&(0,f.jsx)(y,{value:t,onChange:a})]})}})}));Be.fields=Ye;const Ke=Be,Xe=e=>{let{children:l,...t}=e;return l(t)};P.fields=a,P.getFilterValue=Me,P.useFilter=v,P.SearchInput=Ae,P.withFilterValue=ke;const qe=P}}]);
|
|
2
|
-
//# sourceMappingURL=6915.5dc9fc8a.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7121,1151,9034],{62716:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>u});var a=s(73884),o=s(83136),r=s.n(o);const l={"state-tag":"style_state-tag__Kx27z__Fo22-","state-result-tag":"style_state-result-tag__CssDz__Fo22-","state-skill-tag":"style_state-skill-tag__k0bQE__Fo22-","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__Fo22-","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__Fo22-","state-tag-filterResult":"style_state-tag-filterResult__KTkot__Fo22-","show-bg":"style_show-bg__OcL+R__Fo22-","tag-text":"style_tag-text__JHCt+__Fo22-","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__Fo22-"};var _=s(55199),n=s(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},g=t=>{let{showBorder:e,text:s,type:o,showBackground:g,className:u,filterName:i,...d}=t;const p=(0,a.useMemo)((()=>{var t,e;return{color:(null===c||void 0===c||null===(t=c[o])||void 0===t?void 0:t.color)||c[o],borderColor:(null===c||void 0===c||null===(e=c[o])||void 0===e?void 0:e.borderColor)||c[o]}}),[o]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:r()(l["state-tag-wrapper"],"filterResult"===o?l["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[i?(0,n.jsxs)("span",{className:l["state-tag-filter-name"],children:[i,":"]}):null,(0,n.jsx)(_.Tag,{color:p.color,...d,style:{background:g?p.color+"0F":"none",color:p.color,border:e?"1px solid ".concat(p.borderColor):"none"},className:r()(l["state-tag"],u,"result"===o?l["state-result-tag"]:"","skill"===o?l["state-skill-tag"]:"",l["state-tag-".concat(o)],g?l["show-bg"]:"",e?l["show-border"]:""),children:(0,n.jsx)("span",{className:l["tag-text"],children:s})})]})};g.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const u=g},79160:(t,e,s)=>{var a=s(16913),o=s(22761);t.exports=function(t){return"number"==typeof t||o(t)&&"[object Number]"==a(t)}}}]);
|
|
2
|
-
//# sourceMappingURL=7121.2431a18a.chunk.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7227.c271e9d9.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7227],{87227:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var o=r(55199),a=r(83136),n=r.n(a);const s={"state-bar":"style_state-bar__3jfis__Fo22-","has-children":"style_has-children__oQDqU__Fo22-","tab-tab-control":"style_tab-tab-control__SopeO__Fo22-","tab-radio-control":"style_tab-radio-control__R8X6-__Fo22-","tab-step-control":"style_tab-step-control__EQaCl__Fo22-","inner-state-bar":"style_inner-state-bar__lWmOz__Fo22-"};var _=r(70579);const l=e=>{let{className:t,type:r="tab",stateOption:a=[],isInner:l,...c}=e;return(0,_.jsx)(o.Tabs,{...c,"data-testid":"components-core-state-bar",className:n()(s["state-bar"],s["tab-".concat(r,"-control")],t,{[s["inner-state-bar"]]:l,[s["has-children"]]:a.some((e=>!!e.children))}),style:{"--total-count":a.length},animated:!1,items:a.map((e=>{let{tab:t,label:r,key:o,...a}=e;return{label:t||r,key:o,...a}}))})}},51153:(e,t,r)=>{var o=r(73884),a=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,_=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var o,n={},c=null,b=null;for(o in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(b=t.ref),t)s.call(t,o)&&!l.hasOwnProperty(o)&&(n[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===n[o]&&(n[o]=t[o]);return{$$typeof:a,type:e,key:c,ref:b,props:n,_owner:_.current}}t.Fragment=n,t.jsx=c,t.jsxs=c},70579:(e,t,r)=>{e.exports=r(51153)}}]);
|
|
3
|
-
//# sourceMappingURL=7227.c271e9d9.chunk.js.map
|
/package/build/static/js/{1153.3ca5a153.chunk.js.LICENSE.txt → 1153.9d410dce.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{1454.b69c4181.chunk.js.LICENSE.txt → 1454.909f127f.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{1554.22446df8.chunk.js.LICENSE.txt → 1554.92728c28.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{2716.1b7d43b2.chunk.js.LICENSE.txt → 2716.a3bd411c.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{4666.164a8d3a.chunk.js.LICENSE.txt → 4666.d38708fb.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{7227.c271e9d9.chunk.js.LICENSE.txt → 7227.d3f98f46.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|