@kne-components/components-core 0.2.40 → 0.2.42
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 +108 -108
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.1f3022bf.chunk.css +2 -0
- package/build/static/css/{1151.2470ea36.chunk.css.map → 1151.1f3022bf.chunk.css.map} +1 -1
- package/build/static/css/1153.d61ce559.chunk.css +2 -0
- package/build/static/css/{1153.f104eb63.chunk.css.map → 1153.d61ce559.chunk.css.map} +1 -1
- package/build/static/css/1554.9beb1662.chunk.css +2 -0
- package/build/static/css/{1554.11d98591.chunk.css.map → 1554.9beb1662.chunk.css.map} +1 -1
- package/build/static/css/{2503.bd960188.chunk.css → 2503.314aae1d.chunk.css} +2 -2
- package/build/static/css/{2503.bd960188.chunk.css.map → 2503.314aae1d.chunk.css.map} +1 -1
- package/build/static/css/{2517.d5c805f7.chunk.css → 2517.4e00df95.chunk.css} +2 -2
- package/build/static/css/{2517.d5c805f7.chunk.css.map → 2517.4e00df95.chunk.css.map} +1 -1
- package/build/static/css/2716.df120de0.chunk.css +2 -0
- package/build/static/css/{2716.b2f4c88a.chunk.css.map → 2716.df120de0.chunk.css.map} +1 -1
- package/build/static/css/{2730.a919794b.chunk.css → 2730.802fda5a.chunk.css} +2 -2
- package/build/static/css/{2730.a919794b.chunk.css.map → 2730.802fda5a.chunk.css.map} +1 -1
- package/build/static/css/{3142.43de17a6.chunk.css → 3142.54b858e2.chunk.css} +2 -2
- package/build/static/css/{3142.43de17a6.chunk.css.map → 3142.54b858e2.chunk.css.map} +1 -1
- package/build/static/css/4029.47986b1c.chunk.css +2 -0
- package/build/static/css/{4029.81ea8304.chunk.css.map → 4029.47986b1c.chunk.css.map} +1 -1
- package/build/static/css/4265.78c20ac7.chunk.css +2 -0
- package/build/static/css/{4265.31509d7a.chunk.css.map → 4265.78c20ac7.chunk.css.map} +1 -1
- package/build/static/css/4319.b931d4d9.chunk.css +2 -0
- package/build/static/css/{4319.cb12119e.chunk.css.map → 4319.b931d4d9.chunk.css.map} +1 -1
- package/build/static/css/4666.b0afc9b3.chunk.css +2 -0
- package/build/static/css/{4666.37a4f936.chunk.css.map → 4666.b0afc9b3.chunk.css.map} +1 -1
- package/build/static/css/5443.e9f00bae.chunk.css +2 -0
- package/build/static/css/{5443.8649832b.chunk.css.map → 5443.e9f00bae.chunk.css.map} +1 -1
- package/build/static/css/5600.dce4a944.chunk.css +2 -0
- package/build/static/css/{5600.0b2a3b45.chunk.css.map → 5600.dce4a944.chunk.css.map} +1 -1
- package/build/static/css/5962.3802d3a9.chunk.css +2 -0
- package/build/static/css/{5962.9ab8b6a5.chunk.css.map → 5962.3802d3a9.chunk.css.map} +1 -1
- package/build/static/css/{5996.44e8b88f.chunk.css → 5996.22b46443.chunk.css} +2 -2
- package/build/static/css/{5996.44e8b88f.chunk.css.map → 5996.22b46443.chunk.css.map} +1 -1
- package/build/static/css/{6611.75dd19bf.chunk.css → 6611.61df97b4.chunk.css} +2 -2
- package/build/static/css/{6611.75dd19bf.chunk.css.map → 6611.61df97b4.chunk.css.map} +1 -1
- package/build/static/css/6779.774ec289.chunk.css +2 -0
- package/build/static/css/{6779.270a64f7.chunk.css.map → 6779.774ec289.chunk.css.map} +1 -1
- package/build/static/css/7121.6d05bb7a.chunk.css +2 -0
- package/build/static/css/{7121.2255885f.chunk.css.map → 7121.6d05bb7a.chunk.css.map} +1 -1
- package/build/static/css/7227.d1a75756.chunk.css +2 -0
- package/build/static/css/{7227.40c99ad1.chunk.css.map → 7227.d1a75756.chunk.css.map} +1 -1
- package/build/static/css/8017.75cee043.chunk.css +2 -0
- package/build/static/css/{8017.704d25e6.chunk.css.map → 8017.75cee043.chunk.css.map} +1 -1
- package/build/static/css/8332.dd4512a6.chunk.css +2 -0
- package/build/static/css/{8332.7a8cda47.chunk.css.map → 8332.dd4512a6.chunk.css.map} +1 -1
- package/build/static/css/{8725.53f21fbd.chunk.css → 8725.e135d3df.chunk.css} +2 -2
- package/build/static/css/{8725.53f21fbd.chunk.css.map → 8725.e135d3df.chunk.css.map} +1 -1
- package/build/static/css/9968.8466d826.chunk.css +2 -0
- package/build/static/css/{9968.c15692ff.chunk.css.map → 9968.8466d826.chunk.css.map} +1 -1
- package/build/static/js/{1153.4492c009.chunk.js → 1153.434d4de1.chunk.js} +3 -3
- package/build/static/js/{1153.4492c009.chunk.js.map → 1153.434d4de1.chunk.js.map} +1 -1
- package/build/static/js/1554.c1b883e9.chunk.js +3 -0
- package/build/static/js/{1554.d1c73092.chunk.js.map → 1554.c1b883e9.chunk.js.map} +1 -1
- package/build/static/js/2503.809ea331.chunk.js +2 -0
- package/build/static/js/{2503.f29706bd.chunk.js.map → 2503.809ea331.chunk.js.map} +1 -1
- package/build/static/js/2517.29bae06f.chunk.js +2 -0
- package/build/static/js/{2517.9c41bd35.chunk.js.map → 2517.29bae06f.chunk.js.map} +1 -1
- package/build/static/js/2716.ca598c07.chunk.js +3 -0
- package/build/static/js/{2716.ecc181f9.chunk.js.map → 2716.ca598c07.chunk.js.map} +1 -1
- package/build/static/js/2730.87112030.chunk.js +2 -0
- package/build/static/js/{2730.4eefaecf.chunk.js.map → 2730.87112030.chunk.js.map} +1 -1
- package/build/static/js/2814.fe35bfd4.chunk.js +2 -0
- package/build/static/js/{2814.1f2dc9be.chunk.js.map → 2814.fe35bfd4.chunk.js.map} +1 -1
- package/build/static/js/{3142.0c7f6496.chunk.js → 3142.f0188353.chunk.js} +2 -2
- package/build/static/js/{3142.0c7f6496.chunk.js.map → 3142.f0188353.chunk.js.map} +1 -1
- package/build/static/js/36.df9cff6b.chunk.js +2 -0
- package/build/static/js/36.df9cff6b.chunk.js.map +1 -0
- package/build/static/js/{4029.0ab53d00.chunk.js → 4029.17e3d325.chunk.js} +2 -2
- package/build/static/js/4029.17e3d325.chunk.js.map +1 -0
- package/build/static/js/4265.7b9b7816.chunk.js +2 -0
- package/build/static/js/{4265.a047dcec.chunk.js.map → 4265.7b9b7816.chunk.js.map} +1 -1
- package/build/static/js/{4319.2cc8645f.chunk.js → 4319.a8504fc9.chunk.js} +2 -2
- package/build/static/js/{4319.2cc8645f.chunk.js.map → 4319.a8504fc9.chunk.js.map} +1 -1
- package/build/static/js/{4666.0a5b1cda.chunk.js → 4666.0b3f925c.chunk.js} +3 -3
- package/build/static/js/{4666.0a5b1cda.chunk.js.map → 4666.0b3f925c.chunk.js.map} +1 -1
- package/build/static/js/5443.1ca71be9.chunk.js +2 -0
- package/build/static/js/{5443.3195656f.chunk.js.map → 5443.1ca71be9.chunk.js.map} +1 -1
- package/build/static/js/5600.71a7974a.chunk.js +2 -0
- package/build/static/js/{5600.298f6b6b.chunk.js.map → 5600.71a7974a.chunk.js.map} +1 -1
- package/build/static/js/5962.38d7efac.chunk.js +2 -0
- package/build/static/js/{5962.b8774e96.chunk.js.map → 5962.38d7efac.chunk.js.map} +1 -1
- package/build/static/js/{5996.fc73eb76.chunk.js → 5996.252eb99a.chunk.js} +2 -2
- package/build/static/js/{5996.fc73eb76.chunk.js.map → 5996.252eb99a.chunk.js.map} +1 -1
- package/build/static/js/6611.c167c7bf.chunk.js +2 -0
- package/build/static/js/{6611.1152fb3a.chunk.js.map → 6611.c167c7bf.chunk.js.map} +1 -1
- package/build/static/js/6779.88dcd9ea.chunk.js +2 -0
- package/build/static/js/{6779.ae91c0e8.chunk.js.map → 6779.88dcd9ea.chunk.js.map} +1 -1
- package/build/static/js/{6915.cb45bd67.chunk.js → 6915.c480d18e.chunk.js} +2 -2
- package/build/static/js/{6915.cb45bd67.chunk.js.map → 6915.c480d18e.chunk.js.map} +1 -1
- package/build/static/js/7121.a3af662f.chunk.js +2 -0
- package/build/static/js/{7121.341feb65.chunk.js.map → 7121.a3af662f.chunk.js.map} +1 -1
- package/build/static/js/{7227.383436ab.chunk.js → 7227.ee737b01.chunk.js} +3 -3
- package/build/static/js/{7227.383436ab.chunk.js.map → 7227.ee737b01.chunk.js.map} +1 -1
- package/build/static/js/{7967.59721608.chunk.js → 7967.22a1715b.chunk.js} +2 -2
- package/build/static/js/{7967.59721608.chunk.js.map → 7967.22a1715b.chunk.js.map} +1 -1
- package/build/static/js/{8017.78695bf4.chunk.js → 8017.59c87321.chunk.js} +2 -2
- package/build/static/js/{8017.78695bf4.chunk.js.map → 8017.59c87321.chunk.js.map} +1 -1
- package/build/static/js/{8151.711ff134.chunk.js → 8151.d9ededc0.chunk.js} +2 -2
- package/build/static/js/{8151.711ff134.chunk.js.map → 8151.d9ededc0.chunk.js.map} +1 -1
- package/build/static/js/{8332.f09b66e7.chunk.js → 8332.b53aa4fb.chunk.js} +2 -2
- package/build/static/js/{8332.f09b66e7.chunk.js.map → 8332.b53aa4fb.chunk.js.map} +1 -1
- package/build/static/js/{8725.427caed2.chunk.js → 8725.6dc9ccd2.chunk.js} +2 -2
- package/build/static/js/{8725.427caed2.chunk.js.map → 8725.6dc9ccd2.chunk.js.map} +1 -1
- package/build/static/js/{9968.bdb1cadd.chunk.js → 9968.e3128bbd.chunk.js} +2 -2
- package/build/static/js/{9968.bdb1cadd.chunk.js.map → 9968.e3128bbd.chunk.js.map} +1 -1
- package/build/static/js/main.71fd6553.js +2 -0
- package/build/static/js/main.71fd6553.js.map +1 -0
- package/package.json +1 -1
- package/build/static/css/1151.2470ea36.chunk.css +0 -2
- package/build/static/css/1153.f104eb63.chunk.css +0 -2
- package/build/static/css/1554.11d98591.chunk.css +0 -2
- package/build/static/css/2716.b2f4c88a.chunk.css +0 -2
- package/build/static/css/4029.81ea8304.chunk.css +0 -2
- package/build/static/css/4265.31509d7a.chunk.css +0 -2
- package/build/static/css/4319.cb12119e.chunk.css +0 -2
- package/build/static/css/4666.37a4f936.chunk.css +0 -2
- package/build/static/css/5443.8649832b.chunk.css +0 -2
- package/build/static/css/5600.0b2a3b45.chunk.css +0 -2
- package/build/static/css/5962.9ab8b6a5.chunk.css +0 -2
- package/build/static/css/6779.270a64f7.chunk.css +0 -2
- package/build/static/css/7121.2255885f.chunk.css +0 -2
- package/build/static/css/7227.40c99ad1.chunk.css +0 -2
- package/build/static/css/8017.704d25e6.chunk.css +0 -2
- package/build/static/css/8332.7a8cda47.chunk.css +0 -2
- package/build/static/css/9968.c15692ff.chunk.css +0 -2
- package/build/static/js/1554.d1c73092.chunk.js +0 -3
- package/build/static/js/2503.f29706bd.chunk.js +0 -2
- package/build/static/js/2517.9c41bd35.chunk.js +0 -2
- package/build/static/js/2716.ecc181f9.chunk.js +0 -3
- package/build/static/js/2730.4eefaecf.chunk.js +0 -2
- package/build/static/js/2814.1f2dc9be.chunk.js +0 -2
- package/build/static/js/4029.0ab53d00.chunk.js.map +0 -1
- package/build/static/js/4265.a047dcec.chunk.js +0 -2
- package/build/static/js/5443.3195656f.chunk.js +0 -2
- package/build/static/js/5600.298f6b6b.chunk.js +0 -2
- package/build/static/js/5962.b8774e96.chunk.js +0 -2
- package/build/static/js/6611.1152fb3a.chunk.js +0 -2
- package/build/static/js/6779.ae91c0e8.chunk.js +0 -2
- package/build/static/js/7121.341feb65.chunk.js +0 -2
- package/build/static/js/7655.e56958cf.chunk.js +0 -2
- package/build/static/js/7655.e56958cf.chunk.js.map +0 -1
- package/build/static/js/main.03606915.js +0 -2
- package/build/static/js/main.03606915.js.map +0 -1
- /package/build/static/js/{1153.4492c009.chunk.js.LICENSE.txt → 1153.434d4de1.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.d1c73092.chunk.js.LICENSE.txt → 1554.c1b883e9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.ecc181f9.chunk.js.LICENSE.txt → 2716.ca598c07.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.0a5b1cda.chunk.js.LICENSE.txt → 4666.0b3f925c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.383436ab.chunk.js.LICENSE.txt → 7227.ee737b01.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4265,1151,9034,6611,3142,8017],{42787:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var s=n(10486),r=n(73884),a=n(96418),l=n.n(a),o=n(83136),i=n.n(o);const c={scroller:"style_scroller__EfuqR__SCBFp","scroller-inner":"style_scroller-inner__NJSE0__SCBFp","is-moving":"style_is-moving__jGuy0__SCBFp"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...a}=e;const l=(0,r.useRef)(0),[o,d]=(0,r.useState)(!1),p=(0,r.useRef)(o);p.current=o;const _=(0,r.useRef)(t);_.current=t;const h=(0,r.useRef)(1);return h.current=a.width/a.innerWidth,(0,r.useEffect)((()=>{const e=e=>{p.current&&_.current(h.current*(e.clientX-l.current)),l.current=e.clientX},t=()=>{d(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,s.createPortal)(a.hasScroller?(0,u.jsx)("div",{className:c.scroller,style:{left:a.left,width:a.width,height:15},children:(0,u.jsx)("div",{className:i()(c["scroller-inner"],{[c["is-moving"]]:o}),style:{width:a.innerWidth,left:a.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,d(!0)}})}):null,n()||document.body)},p=e=>{let{className:t,scroller:n,getScrollTarget:s,children:a}=e;const[o,p]=(0,r.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),_=(0,r.useRef)(null),h=l()((()=>_.current&&s(_.current))),m=(0,r.useRef)();return m.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,r.useEffect)((()=>{const e=m.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:s,top:r,height:a}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,o=s*t.clientWidth/t.scrollWidth-6,i=t.scrollLeft*t.clientWidth/t.scrollWidth+2,c=e.getBoundingClientRect();p((u=>Object.assign({},u,{left:n,width:s,innerLeft:i,innerWidth:o,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?r+a-e.offsetHeight>0&&r<e.offsetHeight:r<c.top+c.height&&r+a>c.top+c.height)})))},s=new ResizeObserver(n);return new ResizeObserver((()=>{t=h(),t&&(s.disconnect(),n(),Array.from(t.children).forEach((e=>{s.observe(e)})),t.addEventListener("scroll",n))})).observe(_.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[h]),n?(0,u.jsxs)("div",{className:i()(c["scroller-outer"],t),ref:_,style:{"--scroller-bar-height":null!==o&&void 0!==o&&o.hasScroller?"15px":"0px"},children:[a,(0,u.jsx)(d,{...o,getContainer:m.current,onScroll:e=>{h().scrollLeft+=e}})]}):a};p.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const _=p},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y,useFeatureCall:()=>f});var s=n(73884),r=n(63908),a=n(33097),l=n.n(a),o=n(15797),i=n.n(o),c=n(1488),u=n.n(c),d=n(70579);const p=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{p(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),p(e.children,t,n?n+":"+e.id:e.id)))},_=i()((e=>{const t=(()=>{const t=new Map;return p(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),h=(e,t)=>{let{profileMap:n,features:s}=t;const r=n.get(e);return-1!==s.indexOf(e)&&!0!==r.close&&l()(r,"dependencies",[]).every((t=>{const r=n.get(e);return s.indexOf(t)>-1&&!0!==r.close}))},m=(0,s.createContext)(null),{Provider:g}=m,f=e=>{const{features:t,profile:n,profileMap:a,debug:o}=(()=>{const e=(0,r.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},_(t),{debug:n})})(),i="system"===n.type?n.id:"root",c=(0,s.useContext)(m),u=c?c+":"+e:i+":"+e;return(0,s.useEffect)((()=>{t&&t.length>0&&o&&console.log(`[featureId] ${u},[state] ${h(u,{features:t,profileMap:a})}`,a.get(u))}),[t,a,o,u]),{isPass:!(e&&t&&t.length>0)||h(u,{features:t,profileMap:a}),currentId:u,feature:a.get(u)}},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?l()(r,"options"):l()(r,"rejectedOptions"),currentId:a}):s&&n})}},75363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});const s=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var r=n(58609),a=n(64671),l=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__SCBFp",u="style_inner__bMKeU__SCBFp",d="style_content__xTfWZ__SCBFp",p="style_link__93j7O__SCBFp";var _=n(48731),h=n(70579);const m=e=>{let{name:t,className:n}=e;return(0,h.jsx)(r.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,h.jsx)(_.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,n),children:(0,h.jsxs)(l.Space,{className:u,children:[(0,h.jsx)(a.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:d,children:e.content}),e.url&&(0,h.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(a.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},51516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Affix:()=>L,Menu:()=>X.default,Page:()=>E,PermissionsPage:()=>V,StateBarPage:()=>D,TablePage:()=>Q,default:()=>$});var s=n(55199),r=n(73884);const a={menu:null,filter:null,menuOpen:!0,menuWidth:"240px",menuFixed:!0,menuCloseButton:!0,backgroundColor:null,header:null,headerHeight:0,headerFixed:!0,headerInfo:null,backUrl:null,title:null,titleExtra:null,titleLeftExtra:null,noMargin:!1,noPadding:!1,optionFooterHeight:0,option:null,optionWidth:"400px",optionNoPadding:!1,optionFixed:!0,optionFooter:null},l=(0,r.createContext)({}),{Provider:o,Consumer:i}=l,c=()=>(0,r.useContext)(l);var u=n(79329),d=n(76801),p=n(36755),_=n(19853),h=n.n(_),m=n(63361),g=n(83136),f=n.n(g);const y={layout:"style_layout__k+lxR__SCBFp","page-content":"style_page-content__4XeN8__SCBFp","page-main":"style_page-main__P0yEF__SCBFp","page-main-content":"style_page-main-content__1OVPN__SCBFp","table-page":"style_table-page__JkbLf__SCBFp","helper-guide":"style_helper-guide__vzw4z__SCBFp","page-outer":"style_page-outer__2a6iH__SCBFp","no-margin":"style_no-margin__S6caT__SCBFp","page-menu":"style_page-menu__CZSa9__SCBFp",closed:"style_closed__hmnft__SCBFp","page-menu-inner":"style_page-menu-inner__rmKpu__SCBFp","page-menu-main":"style_page-menu-main__OXg2M__SCBFp","page-option-main":"style_page-option-main__LyfT3__SCBFp","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__SCBFp","page-option":"style_page-option__diS2S__SCBFp","page-option-inner":"style_page-option-inner__Fj1JH__SCBFp","page-option-footer":"style_page-option-footer__d7xE0__SCBFp","fixed-container":"style_fixed-container__1VZwY__SCBFp","is-fixed":"style_is-fixed__1aQhp__SCBFp","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__SCBFp","page-menu-btn":"style_page-menu-btn__BiTy8__SCBFp","page-title":"style_page-title__zw-Fd__SCBFp","page-title-text":"style_page-title-text__Rj4RC__SCBFp","no-padding":"style_no-padding__V7Dwy__SCBFp","page-header":"style_page-header__a813p__SCBFp","page-header-info":"style_page-header-info__cMrZR__SCBFp","layout-menu":"style_layout-menu__yiab0__SCBFp","sub-menu":"style_sub-menu__dyqK7__SCBFp","no-collapsed":"style_no-collapsed__76h8W__SCBFp","has-not-children":"style_has-not-children__fnjRK__SCBFp","table-page-top":"style_table-page-top__bt1l9__SCBFp","error-component":"style_error-component__HvghB__SCBFp","state-bar-page":"style_state-bar-page__+aUM4__SCBFp","back-icon":"style_back-icon__79v2G__SCBFp"};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),C=n(17342),b=n(94679),S=n(33097),F=n.n(S),N=n(55490),B=n(25644);const O="CORE_PAGE_MENU_OPEN_KEY",w=()=>{const{pageProps:e,setPageProps:t}=c(),{menu:n,menuOpen:r,menuWidth:a,menuFixed:l,menuCloseButton:o}=e,i=(0,b.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:l,children:(0,x.jsx)("div",{className:y["page-menu-main-outer"],children:(0,x.jsx)(C.A,{className:y["page-menu-main"],children:n})})}),o?(0,x.jsx)(v,{className:f()(y["page-menu-btn-outer"],{[y["is-fixed"]]:l}),isFixed:l,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=B.A.getItem(O)||{};n[i]=!e.menuOpen,B.A.setItem(O,n),t({menuOpen:!e.menuOpen})}})}):null]}):null},P=e=>{let{children:t,isPass:n,...l}=e;const{setPageProps:o}=c(),i=(0,r.useRef)(null),u=(()=>{const e=(0,b.useLocation)().pathname.split("/")[1];return(0,r.useMemo)((()=>{const t=B.A.getItem(O)||{};return!(0,N.A)(F()(t,e))||F()(t,e)}),[e])})(),d=(0,r.useRef)(u);return d.current=u,(0,r.useEffect)((()=>{if(!h()(i.current,l)){i.current=l;const e=Object.assign({},a,l,"boolean"===typeof d.current?{menuOpen:d.current}:{});e.header&&0===e.headerHeight&&delete e.headerHeight,e.optionFooter&&0===e.optionFooterHeight&&delete e.optionFooter,o(e)}}),[l,o]),!1===n?(0,x.jsx)(s.Result,{status:"403",subTitle:"\u6682\u672a\u5f00\u653e\u6b64\u529f\u80fd"}):t},k=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)(P,{...a,key:n,isPass:t})}}):(0,r.createElement)(P,{...a,key:n})};k.defaultProps=a;const E=k,L=e=>{let{isFixed:t,offsetTop:n,offsetBottom:r,onChange:a,...l}=e;return t?(0,x.jsx)(s.Affix,{...l,offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:r,onChange:a}):(0,x.jsx)("div",{...l})},K=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)(L,{isFixed:n,className:y["page-header"],offsetTop:u.navigationHeight,children:(0,x.jsx)(K,{targetKey:"headerHeight",children:t})}):null},A=()=>{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 I=n(16915);const M=e=>{let{title:t,filter:n,titleExtra:r,titleLeftExtra:a,backUrl:l}=e;const o=(0,b.useNavigate)();return n?(0,x.jsx)(I.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:l?(0,x.jsxs)(s.Space,{children:[(0,x.jsx)("span",{className:y["back-icon"],onClick:()=>{o(l)},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},H=()=>{const{pageProps:e}=c(),{option:t,optionWidth:n,optionFixed:r,optionFooter:a,optionFooterHeight:l,optionNoPadding:o}=e;return t?(0,x.jsx)(s.Col,{className:f()(y["page-option"],"page-option"),style:{"--width":n,"--foot-height":l+"px"},children:(0,x.jsxs)(v,{className:y["page-option-inner"],isFixed:r,children:[(0,x.jsx)(C.A,{className:f()(y["page-option-main"],"page-option-main"),style:{padding:o?"0px":"var(--padding-width)"},children:t}),a?(0,x.jsx)(K,{className:y["page-option-footer"],targetKey:"optionFooterHeight",children:(0,x.jsx)(s.Space,{align:"center",children:a})}):null]})}):null};var T=n(75363),W=n(29053);const{Content:q}=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:l}=e;const[i,c]=(0,r.useState)(0),[p,_]=(0,r.useState)(Object.assign({},a)),{permissions:h}=(0,W.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:[l&&(0,x.jsx)(U,{children:(0,x.jsx)(u.default,{permissions:h,...l,onChange:e=>{(null===l||void 0===l?void 0:l.onChange)&&l.onChange(e)}})}),(0,x.jsx)(U,{children:(0,x.jsx)(q,{className:y["layout-content-wrap"],children:(0,x.jsxs)(o,{value:{pageProps:p,setPageProps:m},children:[(0,x.jsx)(U,{children:(0,x.jsx)(R,{})}),(0,x.jsx)(U,{children:(0,x.jsx)(A,{})}),(0,x.jsx)(U,{children:(0,x.jsxs)(s.Row,{className:f()(p.className,y["page-outer"]),wrap:!1,style:{"--nav-height":`calc(${p.headerFixed?p.headerHeight:0}px + var(--nav-height-base))`,"--nav-only-height":"var(--nav-height-base)"},children:[(0,x.jsx)(U,{children:(0,x.jsx)(w,{})}),(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)(M,{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)(T.default,{className:y["helper-guide-page"],name:p.helperGuideName}),t]})})]})}),(0,x.jsx)(U,{children:(0,x.jsx)(H,{})})]})})]})})})]})};G.defaultProps={navigation:{}};const $=G,V=e=>{let{permissions:t,...n}=e;return(0,x.jsx)(W.default,{...Object.assign({},t,{type:"error"}),children:(0,x.jsx)(E,{...n})})};var X=n(28148),J=n(22814);const Q=(0,r.forwardRef)(((e,t)=>{let{helperGuideName:n,permissions:s,page:a,openFeatures:l,name:o,topArea:i,...c}=e;const[u,d]=(0,r.useState)(null);return(0,x.jsxs)(V,{name:o,openFeatures:l,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)(T.default,{className:f()("helper-guide",y["helper-guide"]),name:n}),(0,x.jsx)(J.TablePage,{...c,ref:t,name:o,onRequestSuccess:e=>{d(e)}})]})]})}));var Z=n(87227);const D=e=>{let{helperGuideName:t,permissions:n,page:s,stateBar:r,children:a,...l}=e;return(0,x.jsxs)(V,{...s,permissions:n,...l,children:[(0,x.jsx)("div",{className:y["state-bar-page"],children:(0,x.jsx)(Z.default,{...r})}),t&&(0,x.jsx)(T.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__SCBFp","all-no-start-icon":"style_all-no-start-icon__CA+zR__SCBFp","no-start-icon":"style_no-start-icon__LnC1S__SCBFp","has-children":"style_has-children__m9tce__SCBFp","has-children-node":"style_has-children-node__2bhEB__SCBFp","is-root":"style_is-root__4hhOc__SCBFp",title:"style_title__+Hcar__SCBFp",active:"style_active__WU49K__SCBFp","no-collapse":"style_no-collapse__aIZBM__SCBFp","title-content":"style_title-content__cQXpK__SCBFp",loading:"style_loading__1pU4P__SCBFp"};var r=n(83136),a=n.n(r),l=n(55199),o=n(94679),i=n(29053),c=n(10986),u=n.n(c),d=n(64671),p=n(73884),_=n(18081),h=n.n(_),m=n(87558),g=n(70579);const f=e=>{const t=(0,o.useNavigate)(),{id:n,className:r,label:c,iconType:u,path:p,request:_,onClick:h,isOpen:f,isSelected:y,onOpenChange:x,children:v,fetchOptions:j,depth:C,onLoad:b,allowCollapsed:S}=e,F=Array.isArray(v)&&v.length>0||j,{refresh:N,isLoading:B}=(0,m.useFetch)(Object.assign({},j,{auto:!S&&j,onRequestSuccess:e=>{b(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"]]:F,[s["no-collapse"]]:F&&!S,[s["no-start-icon"]]:!u,[s["is-root"]]:0===C}),onClick:s=>{s.stopPropagation(),F||!p?F||j?S&&(j&&N({}),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}),F&&S&&(0,g.jsx)(d.default,{type:f?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),F?!S||f&&v?(0,g.jsx)("div",{className:s["children-list"],children:v}):!S||f&&B?(0,g.jsx)("div",{className:s["children-list"],children:(0,g.jsx)(l.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},y=e=>{let{className:t,allowCollapsed:n,pathMatch:r,...l}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[d,_]=u()(l,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[m,y]=u()(l,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:x,defaultOpenKeys:v,links:j,childrenKeys:C,hasStartIcon:b,hasChildren:S}=(0,p.useMemo)((()=>{var e;const{items:t,childrenKeys:n,nodeMapping:s}=(e=>{const t={},n=[],s=(e,r)=>{const{parentKey:a,depth:l}=Object.assign({parentKey:"root",depth:0,paths:[]},r);return Array.isArray(e)&&e.length>0?e.map(((e,r)=>{const o=`${e.key||`${"root"!==a?`${a}-`:""}node-${r}`}`;t[a]||(t[a]=[]),t[a].push(o);const i=s(e.children,{parentKey:o,depth:l+1});t[o]&&t[a].push(...t[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:l,children:i,originItem:e});return n[o]=c,c})):null};return{items:s(e),childrenKeys:t,nodeMapping:n}})(m);let r=!1,a=!1;const l=[],o=[];return null===n||void 0===n||null===(e=n.root)||void 0===e||e.forEach((e=>{const t=s[e];t.iconType&&(r=!0),t.path&&l.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(a=!0,o.push(t.key))})),{defaultOpenKeys:o,links:l,items:t,childrenKeys:n,hasStartIcon:r,hasChildren:a}}),[m]);(0,p.useEffect)((()=>{const e=j.find((e=>{let{path:t}=e;return"function"===typeof r?r(t,{pathname:i,search:c}):h()(i.replace(/[#,?].*/,""))===h()(t)||h()(i+c)===h()(t)}));e&&_(e.key)}),[j,i,c,_,r]);const[F,N]=u()(Object.assign({},l,{defaultOpenKeys:l.defaultOpenKeys||v}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),B=(0,p.useCallback)(((e,t)=>{const{parentKey:s,depth:r,selectedKey:a,openKeys:l,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:t,key:i,originItem:c,...u}=e;return(0,p.createElement)(f,{...Object.assign({},u),id:i,parentId:s,depth:r,allowCollapsed:n,isSelected:i===a||C[i]&&C[i].indexOf(a)>-1,onClick:_,onLoad:e=>{y((t=>{const n=t=>Array.isArray(t)&&t.length>0?t.map((t=>Object.assign({},t,{children:c===t?e:n(t.children)}))):null;return n(t)}))},isOpen:(l||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{N((e=>{const t=e.slice(0);return e.indexOf(i)>-1?t.splice(e.indexOf(i),1):t.push(i),t}))}},B(t,{parentKey:s,depth:r+1,selectedKey:a,openKeys:l,paths:[...o,i]}))})):null}),[y,N,_,C,n]);return(0,g.jsx)("div",{className:a()(t,s.menu,{[s["all-no-start-icon"]]:!b,[s["has-children-node"]]:S}),children:B(x,{selectedKey:d,openKeys:F})})};y.defaultProps={defaultItems:[],allowCollapsed:!0};const x=y},79329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k,navigationHeight:()=>B});var s=n(55199),r=n(94679),a=n(33097),l=n.n(a),o=n(73884),i=n(83136),c=n.n(i);const u=n.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var d=n(40438);const p=e=>({"en-US":()=>n.e(257).then(n.bind(n,30257)),"zh-CN":()=>n.e(5671).then(n.bind(n,5671))}[e]());var _=n(58609),h=n(96418),m=n.n(h),g=n(64671);const f="style_navigation-wrap__VF8x2__SCBFp",y="style_navigation__60RrS__SCBFp",x="style_is-fixed__kHFWj__SCBFp",v="style_navigation-logo__q9qHu__SCBFp",j="style_logo__lB9RC__SCBFp",C="style_navigation-list__EYtkg__SCBFp",b="style_navigation-options__0BdJU__SCBFp",S="style_more-icon__gNMnt__SCBFp";var F=n(70579);const{Header:N}=s.Layout,B=48,O=e=>{let{name:t,mapping:n,defaultTitle:s}=e;const r=(0,o.useRef)({mapping:n,defaultTitle:s});return(0,o.useEffect)((()=>{const e=l()(r.current.mapping.get(t),"title");document.title=(e?e+"-":"")+r.current.defaultTitle}),[t]),null},w=e=>{let{onReady:t}=e;const n=m()(t);return(0,o.useEffect)((()=>{n()}),[n]),null},P=e=>{let{permissions:t,list:n,headerLogo:a,rightOptions:i,isFixed:h,showIndex:m,indexLabel:B,defaultTitle:P,overflowedIndicator:k,base:E,onChange:L,className:K}=e;const R=(0,o.useMemo)((()=>new Map(n.map((e=>{let{key:t,...n}=e;return[t,n]})))),[n]),A=(0,r.useNavigate)(),I=(0,r.useLocation)(),M=(0,o.useRef)(),H=(0,o.useRef)(null),[T,W]=(0,o.useState)("\u66f4\u591a"),[q,z]=(0,o.useState)(!1),U=I.pathname.replace(new RegExp(`^${E}`),"").split("/")[1],G=U?l()(Array.from(R.entries()).find((e=>{let[n,{path:s,permission:r}]=e;return-1!==("function"===typeof s?s(r,t):s).indexOf("/"+U)})),"[0]"):"home";(0,o.useEffect)((()=>{const e=()=>{if(M.current){const e=M.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let s=0;s<e.length;s++){if(-1!==e[s].getAttribute("data-menu-id").indexOf(G)){t=!0;break}}let n=R.get(G)&&!t?l()(R.get(G),"title"):"";W(n)}},t={attributes:!0,childList:!0,subtree:!0};return q&&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()}}),[G,R,q]);const $=!!m&&{label:B||(0,F.jsx)(_.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{L&&L("/"),setTimeout((()=>{A("/")}),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:P||e,mapping:R,name:G})}),(0,F.jsx)("div",{className:c()(f,K),children:(0,F.jsx)(N,{className:c()("navigation",y,{[x]:h}),children:(0,F.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,F.jsx)(s.Col,{className:c()("navigation-logo",v),children:(0,F.jsx)(d.default,{className:c()(j),src:u,alt:"logo",...a})}),(0,F.jsxs)(s.Col,{ref:M,flex:1,className:c()("navigation-list",C),children:[(0,F.jsx)(w,{onReady:()=>{z(!0)}}),(0,F.jsx)(s.Menu,{selectedKeys:[G],mode:"horizontal",overflowedIndicator:k||(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:S,children:(0,F.jsx)(g.default,{type:"icon-arrow-thin-down"})})]}),items:[$,...Array.from(R.entries()).filter((e=>{let[n,{permission:s}]=e;if("string"===typeof s)return t.indexOf(s)>-1;if("function"===typeof s)return s(t);if(Array.isArray(s)){for(let e of s)if(t.indexOf(e)>-1)return!0;return!1}return!0})).map((e=>{let[n,{title:s,path:r,permission:a}]=e;const l="function"===typeof r?r(a,t):r;return{label:s,key:n,onClick:()=>{L&&L(l),setTimeout((()=>{A(l)}),0)}}}))]})]}),(0,F.jsx)(s.Col,{className:b,children:i})]})})})]})};P.defaultProps={isFixed:!0,permissions:[],list:[],showIndex:!0,base:""};const k=P},29053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{computedIsPass:()=>p,default:()=>g,usePermissions:()=>_,usePermissionsPass:()=>h});var s=n(73884),r=n(55199),a=n(33097),l=n.n(a),o=n(83136),i=n.n(o);const c="style_outer__vbHB9__SCBFp";var u=n(63908),d=n(70579);const p=e=>{let{permissions:t,request:n}=e;return!(Array.isArray(n)&&n.length>0)||n.some((e=>(t||[]).indexOf(e)>-1))},_=()=>{const{global:e}=(0,u.useGlobalContext)(),{permissions:t,permissionsPath:n}=(0,u.usePreset)();return{permissions:e.permissions||t||n&&l()(e,n)||[]}},h=e=>{let{request:t}=e;const{permissions:n}=_();return p({permissions:n,request:t})},m=e=>{let{type:t,className:n,tagName:a,message:l,request:o,children:u,...p}=e;const _=h({request:o});return"function"===typeof u?u({isPass:_,type:t,request:o}):!0===_?u:"error"===t?(0,d.jsx)(r.Result,{status:"403",subTitle:l}):"tooltip"===t?(0,d.jsx)(r.Tooltip,{title:l,children:(0,s.createElement)(a,{...p,className:i()(c,n)},u)}):null};m.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const g=m},87227:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(55199),r=n(83136),a=n.n(r);const l={"state-bar":"style_state-bar__3jfis__SCBFp","has-children":"style_has-children__oQDqU__SCBFp","tab-tab-control":"style_tab-tab-control__SopeO__SCBFp","tab-radio-control":"style_tab-radio-control__R8X6-__SCBFp","tab-step-control":"style_tab-step-control__EQaCl__SCBFp","inner-state-bar":"style_inner-state-bar__lWmOz__SCBFp"};var o=n(70579);const i=e=>{let{className:t,type:n="tab",stateOption:r=[],isInner:i,...c}=e;return(0,o.jsx)(s.Tabs,{...c,"data-testid":"components-core-state-bar",className:a()(l["state-bar"],l[`tab-${n}-control`],t,{[l["inner-state-bar"]]:i,[l["has-children"]]:r.some((e=>!!e.children))}),style:{"--total-count":r.length},animated:!1,items:r.map((e=>{let{tab:t,label:n,key:s,...r}=e;return{label:t||n,key:s,...r}}))})}},94710:e=>{e.exports=function(e,t,n,s){for(var r=-1,a=null==e?0:e.length;++r<a;){var l=e[r];t(s,l,n(l),e)}return s}},32952:(e,t,n)=>{var s=n(45652);e.exports=function(e,t,n,r){return s(e,(function(e,s,a){t(r,e,n(e),a)})),r}},45652:(e,t,n)=>{var s=n(94664),r=n(76516)(s);e.exports=r},75816:e=>{e.exports=function(e,t,n,s){for(var r=e.length,a=n+(s?1:-1);s?a--:++a<r;)if(t(e[a],a,e))return a;return-1}},99910:e=>{e.exports=function(e,t){for(var n,s=-1,r=e.length;++s<r;){var a=t(e[s]);void 0!==a&&(n=void 0===n?a:n+a)}return n}},19449:(e,t,n)=>{var s=n(94710),r=n(32952),a=n(9096),l=n(54052);e.exports=function(e,t){return function(n,o){var i=l(n)?s:r,c=t?t():{};return i(n,e,a(o,2),c)}}},76516:(e,t,n)=>{var s=n(6571);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!s(n))return e(n,r);for(var a=n.length,l=t?a:-1,o=Object(n);(t?l--:++l<a)&&!1!==r(o[l],l,o););return n}}},21844:(e,t,n)=>{var s=n(75816),r=n(9096),a=n(99140),l=Math.max,o=Math.min;e.exports=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var c=i-1;return void 0!==n&&(c=a(n),c=n<0?l(i+c,0):o(c,i-1)),s(e,r(t,3),c,!0)}},39835:(e,t,n)=>{var s=n(71775),r=n(19449),a=Object.prototype.hasOwnProperty,l=r((function(e,t,n){a.call(e,n)?e[n].push(t):s(e,n,[t])}));e.exports=l},79160:(e,t,n)=>{var s=n(16913),r=n(22761);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==s(e)}},69613:(e,t,n)=>{var s=n(9261);e.exports=function(e,t,n){return null==e?e:s(e,t,n)}},42907:(e,t,n)=>{var s=n(9096),r=n(99910);e.exports=function(e,t){return e&&e.length?r(e,s(t,2)):0}},99140:(e,t,n)=>{var s=n(37303);e.exports=function(e){var t=s(e),n=t%1;return t===t?n?t-n:t:0}}}]);
|
|
2
|
-
//# sourceMappingURL=4265.a047dcec.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5443],{42787:(e,t,n)=>{n.d(t,{A:()=>h});var r=n(10486),s=n(73884),o=n(96418),l=n.n(o),a=n(83136),c=n.n(a);const i={scroller:"style_scroller__EfuqR__SCBFp","scroller-inner":"style_scroller-inner__NJSE0__SCBFp","is-moving":"style_is-moving__jGuy0__SCBFp"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...o}=e;const l=(0,s.useRef)(0),[a,d]=(0,s.useState)(!1),m=(0,s.useRef)(a);m.current=a;const h=(0,s.useRef)(t);h.current=t;const p=(0,s.useRef)(1);return p.current=o.width/o.innerWidth,(0,s.useEffect)((()=>{const e=e=>{m.current&&h.current(p.current*(e.clientX-l.current)),l.current=e.clientX},t=()=>{d(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,r.createPortal)(o.hasScroller?(0,u.jsx)("div",{className:i.scroller,style:{left:o.left,width:o.width,height:15},children:(0,u.jsx)("div",{className:c()(i["scroller-inner"],{[i["is-moving"]]:a}),style:{width:o.innerWidth,left:o.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,d(!0)}})}):null,n()||document.body)},m=e=>{let{className:t,scroller:n,getScrollTarget:r,children:o}=e;const[a,m]=(0,s.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),h=(0,s.useRef)(null),p=l()((()=>h.current&&r(h.current))),g=(0,s.useRef)();return g.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,s.useEffect)((()=>{const e=g.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:r,top:s,height:o}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,a=r*t.clientWidth/t.scrollWidth-6,c=t.scrollLeft*t.clientWidth/t.scrollWidth+2,i=e.getBoundingClientRect();m((u=>Object.assign({},u,{left:n,width:r,innerLeft:c,innerWidth:a,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?s+o-e.offsetHeight>0&&s<e.offsetHeight:s<i.top+i.height&&s+o>i.top+i.height)})))},r=new ResizeObserver(n);return new ResizeObserver((()=>{t=p(),t&&(r.disconnect(),n(),Array.from(t.children).forEach((e=>{r.observe(e)})),t.addEventListener("scroll",n))})).observe(h.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[p]),n?(0,u.jsxs)("div",{className:c()(i["scroller-outer"],t),ref:h,style:{"--scroller-bar-height":null!==a&&void 0!==a&&a.hasScroller?"15px":"0px"},children:[o,(0,u.jsx)(d,{...a,getContainer:g.current,onScroll:e=>{p().scrollLeft+=e}})]}):o};m.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const h=m},63361:(e,t,n)=>{n.r(t),n.d(t,{default:()=>x,useFeatureCall:()=>C});var r=n(73884),s=n(63908),o=n(33097),l=n.n(o),a=n(15797),c=n.n(a),i=n(1488),u=n.n(i),d=n(70579);const m=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{m(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),m(e.children,t,n?n+":"+e.id:e.id)))},h=c()((e=>{const t=(()=>{const t=new Map;return m(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),p=(e,t)=>{let{profileMap:n,features:r}=t;const s=n.get(e);return-1!==r.indexOf(e)&&!0!==s.close&&l()(s,"dependencies",[]).every((t=>{const s=n.get(e);return r.indexOf(t)>-1&&!0!==s.close}))},g=(0,r.createContext)(null),{Provider:f}=g,C=e=>{const{features:t,profile:n,profileMap:o,debug:a}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},h(t),{debug:n})})(),c="system"===n.type?n.id:"root",i=(0,r.useContext)(g),u=i?i+":"+e:c+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&a&&console.log(`[featureId] ${u},[state] ${p(u,{features:t,profileMap:o})}`,o.get(u))}),[t,o,a,u]),{isPass:!(e&&t&&t.length>0)||p(u,{features:t,profileMap:o}),currentId:u,feature:o.get(u)}},x=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:o}=C(t);return(0,d.jsx)(f,{value:o,children:"function"===typeof n?n({isPass:r,options:r?l()(s,"options"):l()(s,"rejectedOptions"),currentId:o}):r&&n})}},27777:(e,t,n)=>{n.r(t),n.d(t,{Table:()=>T,default:()=>X});var r=n(55199),s=n(73884),o=n(96418),l=n.n(o),a=n(87558),c=n.n(a),i=n(83136),u=n.n(i),d=n(33097),m=n.n(d),h=n(42787),p=n(76801),g=n(60262),f=n.n(g),C=n(56641),x=n.n(C),_=n(51941);const y={"loading-container":"style_loading-container__tATe2__SCBFp","width-changer":"style_width-changer__2ZxQE__SCBFp","table-changer-setting":"style_table-changer-setting__vHBi5__SCBFp","width-changer-sign":"style_width-changer-sign__JpI-0__SCBFp","columns-control":"style_columns-control__Yt34Y__SCBFp","columns-control-content":"style_columns-control-content__1wnZG__SCBFp","columns-control-content-title":"style_columns-control-content-title__MsQpI__SCBFp","columns-control-content-scroller":"style_columns-control-content-scroller__VEy4q__SCBFp","columns-control-content-footer":"style_columns-control-content-footer__rvk74__SCBFp","columns-control-content-input":"style_columns-control-content-input__fYYyr__SCBFp","columns-control-content-list":"style_columns-control-content-list__wepM4__SCBFp","columns-control-content-item":"style_columns-control-content-item__1cPXT__SCBFp","is-drag":"style_is-drag__HRe9m__SCBFp","columns-control-content-item-icon":"style_columns-control-content-item-icon__oku-X__SCBFp","sortable-drag":"style_sortable-drag__N6+aC__SCBFp","sortable-ghost":"style_sortable-ghost__EbwXI__SCBFp","columns-control-overlay":"style_columns-control-overlay__QYEXZ__SCBFp"};var j=n(63908),b=n(70579);const S=e=>"TH"===e.tagName.toUpperCase()&&[].indexOf.call(e.classList,"ant-table-cell")>-1&&-1===[].indexOf.call(e.classList,"ant-table-selection-column")?e:null!==e.parentElement&&e.parentElement!==document.body&&S(e.parentElement),v=e=>{let{columns:t,setData:n,name:r,initColumnsData:o}=e;const c=(0,s.useRef)(null),i=(0,s.useRef)(r);i.current=r;const d=(0,s.useMemo)((()=>new Map(t.map((e=>[e.key,e])))),[t]),m=(0,s.useRef)(d);m.current=d;const{tablePageServerApis:h}=(0,j.usePreset)(),p=(0,_.useDebouncedCallback)((()=>{(0,a.getCache)().delByCacheName(`TABLE_CONFIG_${i.current}`),h&&h.setDataFunc&&(h.setDataFunc(i.current,k),n(k))}),1e3),[g,C]=(0,s.useState)(!1),v=(0,s.useRef)(!1),w=(0,s.useRef)({index:-1,width:0}),[A,I]=(0,s.useState)({}),E=(0,s.useRef)(0),F=(0,s.useCallback)((()=>o&&o.length>0&&t.length===o.length&&x()(t,o,((e,t)=>e.key===t.id))?o.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})):t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})))),[o,t]);(0,s.useEffect)((()=>{O(F())}),[F]);const[k,O]=(0,s.useState)(F),L=l()((e=>{O(e),p()})),N=(0,s.useRef)(k),R=(0,s.useRef)(k);N.current=R.current=k;const B=l()((()=>{const e=t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})));R.current=e,L(e)}));return(0,s.useEffect)((()=>{if(!c.current)return;const e=e=>{const t=e.target;v.current||t.classList.contains("changer-sign")||S(t)||C(!1)},t=()=>{document.body.style.cursor="unset",v.current=!1,w.current={index:-1,width:0},C(!1)};return c.current.addEventListener("mousemove",(e=>{const t=S(e.target)||e.target,{left:n,top:r}=c.current.getBoundingClientRect(),{left:s,width:o,height:l}=t.getBoundingClientRect(),a=c.current.querySelector(".ant-table-thead"),i=a.getBoundingClientRect().top,u=Array.from(a.querySelectorAll("th")),d=Array.from(a.querySelectorAll("th:not(.ant-table-selection-column)"));if(!v.current&&S(t)&&0<e.pageX-s+8&&(w.current={index:d.indexOf(t),locationIndex:u.indexOf(t),width:o,left:s,height:l},I({left:s-n+o-8,top:i-r,height:l}),C(!0)),!v.current&&S(t)&&0>e.pageX-s+8&&C(!1),v.current&&w.current.index>-1){const t=e.pageX-E.current,n=(c.current.querySelector(".ant-table-body")||c.current.querySelector(".ant-table-content")).scrollLeft,s=Math.max(t+w.current.width,100);I({left:Math.max(f()(u.slice(0,w.current.locationIndex).map((e=>e.clientWidth)))-n,0)+s-8,top:i-r,height:w.current.height}),L((e=>{const t=e.slice(0);return t.filter((e=>{let{hidden:t}=e;return!0!==t})).forEach(((e,t)=>{var n;e.width=w.current.index===t?s:(null===(n=d[t])||void 0===n?void 0:n.clientWidth)||100})),t}))}}),!0),window.addEventListener("mouseup",t),document.addEventListener("mousemove",e,!0),()=>{document.removeEventListener("mousemove",e,!0),window.removeEventListener("mouseup",t)}}),[B,L]),{ref:c,sign:g&&(0,b.jsx)("div",{className:u()(y["width-changer-sign"],"changer-sign"),style:{top:A.top,left:A.left,height:A.height},onMouseDown:e=>{e.preventDefault(),v.current=!0,E.current=e.pageX,document.body.style.cursor="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAMAAACgaw2xAAAANlBMVEUAAAAjIyMiIiIhISEjIyMiIiIhISEiIiIjIyMiIiIjIyMjIyMiIiIiIiIiIiIiIiIiIiL///8npLH6AAAAEHRSTlMAZm9zdnd7gISIjKq78fL+6p9oYgAAAAFiS0dEEeK1PboAAAA/SURBVBgZ1cGJDYAgEEXBh7JyKPj7r9ZkQyKUwAx7yhfurCyyDHe8lUlRf4auws/U7qHJmJgSLslYxIALkS192tYB4NtE/LQAAAAASUVORK5CYII=) 12 10,col-resize"}}),targetColumns:k.filter((e=>{let{hidden:t}=e;return!0!==t})).map((e=>{let{id:t,width:n}=e;return Object.assign({},d.get(t),{width:n,ellipsis:!1})})),popupColumns:R.current,columnMap:m.current,setColumns:e=>{R.current=e},onConfirm:()=>{L(R.current)},onCancel:()=>{R.current=N.current},onReset:()=>{B()}}},w=e=>{const t=(0,a.withFetch)(e);return n=>{const{name:r,controllerOpen:s}=n,{tablePageServerApis:o}=(0,j.usePreset)();return s&&r&&o&&o.getDataApi?(0,b.jsx)(t,{...n,...o.getDataApi(r),cache:`TABLE_CONFIG_${r}`,isLocal:!0,ttl:5e3,error:(0,b.jsx)(e,{...n})}):(0,b.jsx)(e,{...n})}};var A=n(74529);const I=n.n(A)()(w,(e=>t=>{let{name:n,controllerOpen:r,columns:s,data:o,setData:l,...a}=t;const{ref:c,targetColumns:i,sign:d}=v({columns:s,name:n,initColumnsData:o,setData:l});return r?(0,b.jsxs)("div",{className:u()(y["width-changer"],"table-page-columns-width-changer"),ref:c,children:[(0,b.jsx)(e,{...a,name:n,controllerOpen:r,originColumns:s,tableColumnFetchApi:{data:o,setData:l},columns:i}),d]}):(0,b.jsx)(e,{columns:s,controllerOpen:r,originColumns:s,name:n,...a})}));var E=n(63361);const F=e=>({"en-US":()=>n.e(6222).then(n.bind(n,86222)),"zh-CN":()=>n.e(6964).then(n.bind(n,56964))}[e]());var k=n(58609),O=n(39835),L=n.n(O),N=n(64671),R=n(81014),B=n(36),M=n(76441);const{Panel:P}=r.Collapse,z=e=>{let{close:t,onCancel:n,onConfirm:o,onReset:l,columns:a,setColumns:c}=e;const[i,d]=(0,s.useState)(a),[m,h]=(0,s.useState)(""),{leftFixedColumns:p,rightFixedColumns:g,visibleColumns:f,hiddenColumns:C}=(0,s.useMemo)((()=>Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},L()(i,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":e.hidden?"hiddenColumns":"visibleColumns")))),[i]),x=e=>{d(e),c(e)};return(0,b.jsxs)("div",{className:y["columns-control-content"],children:[(0,b.jsx)("div",{className:y["columns-control-content-title"],children:(0,b.jsxs)(r.Row,{align:"middle",justify:"space-between",children:[(0,b.jsx)(r.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,b.jsx)(r.Col,{children:(0,b.jsx)(r.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,b.jsx)(R.default,{type:"text",icon:(0,b.jsx)(N.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{l&&await l(),t()}})})})]})}),(0,b.jsx)("div",{className:y["columns-control-content-scroller"],children:(0,b.jsxs)(r.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,b.jsx)(P,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,b.jsxs)(r.List,{className:y["columns-control-content-list"],children:[p.map((e=>(0,b.jsx)(r.List.Item,{className:y["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id))),(0,b.jsx)(M.ReactSortable,{list:f,filter:".ignore-elements",dragClass:y["sortable-drag"],ghostClass:y["sortable-ghost"],forceFallback:!0,setList:e=>{x([...p,...e,...C,...g])},animation:300,delayOnTouchStart:!0,delay:2,children:f.map((e=>(0,b.jsxs)(r.List.Item,{className:u()(y["columns-control-content-item"],y["is-drag"]),children:[(0,b.jsx)(N.default,{type:"icon-paixu",className:y["columns-control-content-item-icon"]}),(0,b.jsx)(r.Checkbox,{checked:!0,disabled:e.fixed,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=i.indexOf(e),r=i.slice(0);r[n]=Object.assign({},r[n],{hidden:!0}),x(r)},children:e.name})]},e.id)))}),g.map((e=>(0,b.jsx)(r.List.Item,{className:y["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id)))]})},"active"),(0,b.jsx)(P,{header:(0,b.jsxs)(r.Row,{wrap:!1,justify:"space-between",children:[(0,b.jsx)(r.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,b.jsx)(r.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,b.jsx)(B.SearchInput,{prefix:(0,b.jsx)(N.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{h(e)},className:y["columns-control-content-input"],size:"small"})})]}),children:(0,b.jsx)(r.List,{dataSource:C.filter((e=>"string"===typeof e.name&&e.name.indexOf(m)>-1)),renderItem:e=>(0,b.jsx)(r.List.Item,{className:y["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=i.indexOf(e),r=i.slice(0);r[n]=Object.assign({},r[n],{hidden:!1,width:r[n].width||200}),x(r)},children:e.name})},e.id)})},"un-active")]})}),(0,b.jsxs)(r.Row,{className:y["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,b.jsx)(r.Col,{children:(0,b.jsx)(r.Button,{size:"small",onClick:()=>{n&&n(),t()},children:"\u53d6\u6d88"})}),(0,b.jsx)(r.Col,{children:(0,b.jsx)(R.default,{type:"primary",size:"small",onClick:async()=>{o&&await o(),t()},children:"\u786e\u5b9a"})})]})]})},D=e=>{let{columns:t,name:n,data:o,setData:l,...a}=e;const[c,i]=(0,s.useState)(!1),{popupColumns:u,columnMap:d,setColumns:h,onConfirm:p,onCancel:g,onReset:f}=v({columns:t,name:n,initColumnsData:o,setData:l});return(0,b.jsx)(r.Popover,{...a,open:c,overlayClassName:y["columns-control-overlay"],trigger:"click",autoAdjustOverflow:!1,placement:"bottomRight",content:(0,b.jsx)(z,{columns:u.map((e=>{const t=d.get(e.id);return Object.assign({},e,{name:m()(t,"titleText")||m()(t,"title")||"\u672a\u547d\u540d\u5217",fixed:m()(t,"fixed")})})),setColumns:e=>{h(e.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})))},close:()=>i(!1),onConfirm:p,onCancel:g,onReset:f}),onOpenChange:e=>i(e),children:(0,b.jsx)("span",{className:y["table-changer-setting"],children:(0,b.jsx)(N.default,{type:"icon-shezhi"})})})},T=I((e=>{let{className:t,columns:n,originColumns:s,controllerOpen:o,tableColumnFetchApi:l,name:a,scroller:c,featureId:i,...d}=e;const{data:p,setData:g}=l||{},f=e=>{let{children:t}=e;return i?(0,b.jsx)(E.default,{id:i,children:e=>t(e)}):t({})};return(e=>(0,b.jsx)(h.A,{className:"table-page-scroller",scroller:c,getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:f({children:n=>{let{options:l}=n;const c=e.filter((e=>!e.key||(!Array.isArray(m()(l,"hiddenColumns"))||-1===l.hiddenColumns.indexOf(e.key))));return(0,b.jsx)(r.Table,{...d,columns:!1===o?c:c.map(((e,t)=>c.length-1===t?{...e,title:()=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("span",{children:e.title}),(0,b.jsx)(D,{data:p,columns:s,setData:g,name:a})]})}:e)),className:u()(t,"table-page")})}})}))(n)})),q=(0,a.withFetch)((e=>{let{data:t,refresh:n,reload:r,requestParams:o,fetchProps:a,isComplete:i,setData:d,loadMore:h,send:p,dataFormat:g,pagination:f,scroller:C,getColumns:x,getColumnsParams:_,className:j,columns:S,featureId:v,stickyOffset:w,...A}=e;const I=l()(g),E=l()(x),O=(0,s.useMemo)((()=>I(t)),[t,I]),L={dataSource:O.list,pagination:!!f.open&&{total:O.total,showTotal:e=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.FormattedMessage,{id:"Page_Total",moduleName:"TablePage",defaultMessage:"\u5171"}),(0,b.jsx)("span",{className:y.total_text,children:e}),(0,b.jsx)(k.FormattedMessage,{id:"Page_TotalCount",moduleName:"TablePage",defaultMessage:"\u6761"})]}),current:m()(o,[f.paramsType,f.current],1),pageSize:f.defaultPageSize,onChange:f.onChange?f.onChange:(e,t)=>{e!==m()(o,[f.paramsType,f.current],1)?("refresh"===f.requestType?n:r)({[f.paramsType]:{[f.current]:e,[f.pageSize]:t}}):f.onShowSizeChange&&f.onShowSizeChange(e,t)},size:f.size,showSizeChanger:f.showSizeChanger,showQuickJumper:f.showQuickJumper},className:j,style:{"--sticky-offset":w}};return(0,b.jsx)(k.IntlProvider,{importMessages:F,moduleName:"TablePage",children:(0,b.jsx)("div",{className:u()(y["loading-container"],"loading-container",{"is-loading":!i}),children:"function"!==typeof x||S?(0,b.jsx)(T,{...A,...L,columns:S,scroller:C,featureId:v}):(0,b.jsx)(c(),{data:t,params:_,loader:e=>{let{data:t,params:n}=e;return E({data:t,params:n,formatData:O})},render:e=>{let{data:t}=e;return(0,b.jsx)(T,{...A,...L,columns:t,scroller:C,featureId:v})}})})})})),W=(0,s.forwardRef)(((e,t)=>{let{pagination:n,...r}=e;const[o,l]=(0,s.useState)(20);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",current:"currentPage",pageSize:"perPage",size:"default"},n);const a=(0,s.useMemo)((()=>{const e={};return r.params&&Object.keys(r.params).length>0&&(e.params={...r.params,[n.pageSize]:o}),r.data&&Object.keys(r.data).length>0&&(e.data={...r.data,[n.pageSize]:o}),e}),[r.params,r.data,n.pageSize,o]);return(0,b.jsx)(q,{...r,pagination:Object.assign({},{defaultPageSize:o,onShowSizeChange:(e,t)=>{l(t)}},n),...a,ref:t})}));W.defaultProps={controllerOpen:!0,size:"middle",stickyOffset:"var(--nav-height)",sticky:{getContainer:p.h},scroller:{getContainer:p.h},scroll:{x:"max-content"},rowKey:"id",pagination:{},dataFormat:e=>({list:e.pageData,total:e.totalCount})};const X=W}}]);
|
|
2
|
-
//# sourceMappingURL=5443.3195656f.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:()=>C,ConfirmText:()=>g,default:()=>y,withConfirm:()=>f});t(73884);var n=t(55199);const l=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var s=t(64671),i=t(58609),a=t(3382),r=t(83136),c=t.n(r);const d="style_overlay__99t5t__SCBFp",m="style_is-danger__gxyAB__SCBFp",p="style_title__EEPu2__SCBFp",h="style_content__mZZg5__SCBFp",_="style_has-title__5+PEt__SCBFp";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:C,disabled:g,showCancel:y,cancelText:x,isModal:b,okText:j,placement:S,getContainer:B,...w}=o;const{formatMessage:N}=(0,i.useIntl)({moduleName:"ConfirmButton"}),k=(0,a.useConfirmModal)();return b?(0,u.jsx)(e,{...w,disabled:g,onClick:e=>{k({type:"confirm",title:t,getContainer:B,danger:r,confirmType:r?"warning":"info",message:l||N({id:"message"}),okText:j||N(r?{id:"delete"}:{id:"confirm"}),cancelText:x||N({id:"cancel"}),onCancel:C,onOk:f})}}):(0,u.jsx)(n.Popconfirm,{title:(0,u.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(n.Space,{size:0,align:"start",className:p,children:[r&&(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,u.jsxs)(n.Space,{size:0,align:"start",className:c()(h,{[_]:t}),children:[!t&&r?(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||N({id:"message"})]})]}),placement:S,onConfirm:f,okButtonProps:{danger:r},onCancel:C,overlayClassName:c()(d,{[m]:r}),getPopupContainer:B,disabled:g,showCancel:y,cancelText:x,okText:j||N(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...w,disabled:g})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},C=f(n.Typography.Link),g=f(n.Typography.Text),y=f(n.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>T,TabsModal:()=>v,TabsModalButton:()=>M,default:()=>N,useConfirmModal:()=>w,useModal:()=>B,useTabsModal:()=>F});var n=t(73884),l=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__SCBFp",large:"style_large__iaqVE__SCBFp","modal-body-inner":"style_modal-body-inner__4PhpA__SCBFp","modal-title":"style_modal-title__dswaw__SCBFp","modal-outer":"style_modal-outer__r3SkX__SCBFp","modal-body":"style_modal-body__jQJSI__SCBFp","right-options-modal":"style_right-options-modal__FajDP__SCBFp","right-options-row":"style_right-options-row__-mPb9__SCBFp","right-options-col":"style_right-options-col__3ilee__SCBFp","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__SCBFp",content:"style_content__k6MIF__SCBFp","modal-footer":"style_modal-footer__-prbN__SCBFp","modal-close":"style_modal-close__Oa5Kl__SCBFp","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__SCBFp","is-danger":"style_is-danger__H5110__SCBFp",title:"style_title__orTym__SCBFp","has-title":"style_has-title__qy0Wp__SCBFp"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var p=t(81014),h=t(17342),_=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:n}=e;return o?(0,_.jsxs)(l.Row,{wrap:!1,className:a["right-options-row"],children:[(0,_.jsx)(l.Col,{span:24-t,className:a["right-options-col"],children:n}),(0,_.jsx)(l.Col,{span:t,className:a["right-options-col"],children:o})]}):n},C=(e,o)=>e-48-(o?58:0)+"px",g=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":C(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":C(300,o)}}:{width:"1000px",style:{"--min-modal-height":C(500,o)}},y=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,_.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(l.Col,{children:(0,_.jsx)(l.Space,{children:(t||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:l,autoClose:s=!0,display:i,...r}=e;const c=t||p.default;return(0,n.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(l&&l(...o,d));return s&&!1!==n&&a&&a(),n}})}))})})]})},x=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:p,onCancel:u,children:f,targetProps:C}=e;const g=(0,n.useRef)(null);return(0,_.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:a["modal-title"],children:o}),(0,_.jsx)(h.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:g,children:(0,_.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,_.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,_.jsx)(y,{footer:t,footerButtons:r,onConfirm:p,onCancel:u,onClose:c,targetProps:C})}):null]})},b=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:h,children:u}=e;const C=e=>(e=Object.assign({},{title:n},e),(0,_.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:p,footer:m(r,{...e,childrenRef:h,close:s}),targetProps:Object.assign({},e,{childrenRef:h,close:s}),children:(0,_.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:h,close:s}),children:m(u,{...e,childrenRef:h,close:s})})}));return"function"===typeof o?o(C):C({})},j=e=>{let{children:o,rightOptions:t,rightSpan:n,footer:l,footerButtons:s,className:d,size:m,title:p,onClose:h,onConfirm:u,onCancel:f,closable:C,disabledScroller:y,withDecorator:x,childrenRef:j,...S}=e;return{...S,icon:null,centered:!0,title:null,maskClosable:!!S.hasOwnProperty("maskClosable")&&S.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:h,className:i()(d,a.modal,a[m],{[a["right-options-modal"]]:t}),...g(m,!(null===l&&!s)),children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:b({withDecorator:x,title:p,closable:C,onClose:h,onConfirm:u,onCancel:f,footer:l,footerButtons:s,rightOptions:t,rightSpan:n,disabledScroller:y,children:o,childrenRef:j})})}},S=e=>{const o=(0,n.useRef)(null);return(0,_.jsx)(l.Modal,{...j(Object.assign({},e,{childrenRef:o}))})};S.defaultProps={size:"default"};const B=()=>{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}},w=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:r,danger:c,wrapClassName:m,message:p,iconSetting:h={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},C=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},h);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,_.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,_.jsxs)(l.Space,{size:0,align:"start",className:a.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||C["confirm"===n?u:n]}):null,r]})}),content:(0,_.jsxs)(l.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||C["confirm"===n?u:n]}):null,p]})});t.close=o}return t}},N=S,k=e=>{let{items:o,className:t,activeKey:n,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.jsx)(l.Tabs,{items:o.map((o=>{let{withDecorator:n,...l}=o;return Object.assign({},l,{children:"function"===typeof n?n((o=>e(Object.assign({},t,o,{children:l.children})))):e(Object.assign({},t,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},v=e=>(0,_.jsx)(N,{...k(e)}),F=()=>{const e=B();return o=>e(k(o))};var P=t(73025);const M=e=>{const o=F();return e.api?(0,_.jsx)(P.A,{...e,modalFunc:o}):(0,_.jsx)(l.Button,{...e,onClick:()=>{o(e.modalProps)}})},T=e=>{const o=B();if(!e.api){const{modalProps:t,...n}=e;return(0,_.jsx)(l.Button,{...n,onClick:()=>{o(t)}})}return(0,_.jsx)(P.A,{...e,modalFunc:o})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5600.298f6b6b.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5962,2095],{24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>$,DragAreaOuter:()=>q,DragButton:()=>V,FileUpload:()=>le,Title:()=>E,UploadButton:()=>X,UploadTips:()=>J,default:()=>se});var i=s(73884),n=s(33097),a=s.n(n),l=s(55199);const r="style_file-list-outer__wPhbb__SCBFp",o="style_file-list-title__zXM5r__SCBFp",c="style_container__P4RaF__SCBFp",d="style_file-preview-inner__cvE72__SCBFp",p="style_file-preview__M-Asq__SCBFp",u="style_drag-area__Q+lm7__SCBFp",m="style_upload-drag-close__u5o8W__SCBFp",x="style_upload-drag-tips__z7puZ__SCBFp",g="style_upload-drag-icon__sGGoS__SCBFp",f="style_upload-drag-title__9Afmb__SCBFp",_="style_upload-drag-text__o38vS__SCBFp",h="style_title-group__8IJkS__SCBFp",v="style_upload-btn__Q+Jxn__SCBFp",j="style_total-count__z1fyd__SCBFp",S="style_file-select__mHqyI__SCBFp",F="style_file-name__QkvMn__SCBFp",C="style_file-select-info__fOLiM__SCBFp",y="style_file-select-option__AbDrD__SCBFp";var N=s(75087),L=s.n(N),P=s(74065),w=s.n(P),b=s(57469),M=s.n(b),T=s(64671),z=s(67390),I=s(58609),B=s(70579);const D=e=>{let{currentTab:t,setCurrentTab:s,previewMap:i,previewList:n,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:p,maxWidth:u,getPopupContainer:m}=e;return(0,B.jsx)("div",{className:o,children:(0,B.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,B.jsx)(l.Col,{children:(0,B.jsxs)(l.Space,{className:h,size:4,children:[(0,B.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,B.jsxs)(l.Space,{size:4,children:[(0,B.jsx)(T.default,{type:"icon-shitu-liebiao"}),(0,B.jsx)(I.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,B.jsxs)(l.Space,{size:4,children:[(0,B.jsx)(T.default,{type:"icon-shitu-yulan"}),(0,B.jsx)(I.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&i.get(r)&&(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(l.Select,{className:S,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:n.map((e=>{let{filename:t,userName:s,date:i,ossId:n}=e;return(0,B.jsx)(l.Select.Option,{className:y,value:n,children:(0,B.jsxs)(l.Space,{direction:"vertical",children:[(0,B.jsxs)(l.Space,{size:4,align:"start",children:[(0,B.jsx)(L(),{type:w()(t.split(".")),size:14}),(0,B.jsx)(l.Typography.Text,{className:F,ellipsis:!0,style:{"--max-width":`${u}px`},children:t})]}),s||i?(0,B.jsxs)(l.Space,{className:C,size:24,children:[(0,B.jsxs)("div",{children:[(0,B.jsx)(I.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,B.jsxs)("div",{children:[(0,B.jsx)(I.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",i&&M()(i).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},n)}))}),(0,B.jsx)(z.OptionButtons,{hasPreview:!1,getPermission:a,item:i.get(r),apis:d}),(0,B.jsx)("div",{className:j,children:(0,B.jsx)(I.FormattedMessage,{id:"totalCount",values:{count:n.length},moduleName:"FileList"})})]})]})}),(0,B.jsx)(l.Col,{children:p})]})})};D.defaultProps={maxWidth:260};const E=D,A=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var O=s(70720),U=s.n(O),k=s(83136),R=s.n(k);const G=(0,i.createContext)({}),{Provider:W}=G,Y=()=>(0,i.useContext)(G);var H=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:i}=Y();return(0,B.jsx)("div",{ref:i,className:v,onClick:()=>{s((e=>!e))},children:(0,B.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,B.jsx)(T.default,{type:"icon-tuozhuaishangchuan"}),t||(0,B.jsx)(I.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:i}=Y();return(0,B.jsxs)(H.AG,{className:v,accept:s,multiple:!0,onChange:i,children:[(0,B.jsx)(T.default,{type:"icon-tianjia"}),t]})},q=e=>{let{title:t,accept:s,fileSize:n,maxLength:a,onFileSelected:o,children:d,className:p}=e;const[u,m]=(0,i.useState)(!1),x=(0,i.useRef)(null),g=U()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||m(!1))}));return(0,B.jsx)(I.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,B.jsx)(W,{value:{open:u,onOpenChange:m,accept:s,fileSize:n,maxLength:a,onFileSelected:o,getDragButtonEl:e=>{x.current=e}},children:(0,B.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,B.jsx)("div",{className:R()(c,p),ref:g,onDragEnter:()=>{m(!0)},children:d})]})})})};q.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const J=e=>{let{icon:t,title:s,renderTips:i}=e;const{accept:n,fileSize:a,maxLength:l}=Y(),r=i((0,I.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:n.map((e=>e.replace(/^\./,""))).join("\u3001"),size:a}),{fileSize:a,maxLength:l,accept:n});return(0,B.jsxs)("div",{className:R()(x,"upload-drag-tips"),children:[(0,B.jsx)("div",{className:g,children:t||(0,B.jsx)(T.default,{type:"icon-shangchuan",size:64})}),(0,B.jsx)("div",{className:f,children:s||(0,B.jsx)(I.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,B.jsx)("div",{className:_,children:r})]})};J.defaultProps={renderTips:e=>e};const Z=e=>{let{children:t,className:s}=e;const{open:i,accept:n,onOpenChange:a,onFileSelected:r}=Y();return i?(0,B.jsxs)("div",{className:R()(u,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;a(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,n)));r(t)},onDragEnd:()=>{a(!1)},children:[(0,B.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,B.jsx)(T.default,{type:"icon-close-bold"}),onClick:()=>{a(!1)}}),t]}):null};Z.defaultProps={children:(0,B.jsx)(J,{})};const $=Z;var K=s(51714),ee=s(63908);const te=e=>{var t;let{maxLength:s,list:n,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:u,getPermission:m,titleExtra:x,fileSize:g,accept:f,getPopupContainer:_}=e;const{apis:h}=(0,ee.usePreset)(),v=Object.assign({},h,u),{fileList:j,onFileSelected:S}=(0,H.lN)({maxLength:s,multiple:!0,value:n,onChange:r,concurrentCount:1,onAdd:()=>{C("list")},onSave:v.onSave,ossUpload:v.ossUpload}),[F,C]=(0,i.useState)(o),{formatMessage:y}=(0,I.useIntl)({moduleName:"FileList"}),{message:N}=l.App.useApp(),L=(0,i.useMemo)((()=>new Map(n.map((e=>[e.ossId,e])))),[n]),[P,w]=(0,i.useState)(c||a()(n,"[0].ossId",null));(0,i.useEffect)((()=>{P&&L.get(P)||w(a()(n,"[0].ossId",null))}),[n,L,P]);const b={onPreview:e=>{w(e.ossId),C("preview")},onDelete:async e=>{v.onDelete&&await v.onDelete(e),r((t=>{const s=t.slice(0),i=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return i>-1&&s.splice(i,1),s})),N.success(y({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;v.onEdit&&await v.onEdit({formData:t,item:s}),r((e=>{const i=e.slice(0),n=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return n>-1&&i.splice(n,1,Object.assign({},s,{filename:t.name})),i})),N.success(y({id:"successEditFileName"},{name:s.filename}))}},M="function"===typeof x?x({currentPreviewFileId:P,currentTab:F}):x;return(0,B.jsxs)(q,{title:(0,B.jsx)(E,{currentTab:F,setCurrentTab:C,previewMap:L,previewList:n,getPermission:m,currentPreviewFileId:P,setCurrentPreviewFileId:w,itemApis:b,getPopupContainer:_,children:(0,B.jsxs)(l.Space,{split:(0,B.jsx)(l.Divider,{type:"vertical"}),children:[M,m("add",{})?(0,B.jsxs)(B.Fragment,{children:[(0,B.jsx)(V,{children:(0,B.jsx)(I.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,B.jsx)(X,{children:(0,B.jsx)(I.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:S,accept:f,children:["list"===F?(0,B.jsx)(z.List,{dataSource:[...j,...n],getPermission:m,apis:b}):null,"preview"===F?P?(0,B.jsx)("div",{className:d,children:(0,B.jsx)(K.default,{className:p,id:P,apis:v,originName:null===(t=L.get(P))||void 0===t?void 0:t.filename})}):(0,B.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,B.jsx)($,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,B.jsx)(I.IntlProvider,{importMessages:A,moduleName:"FileList",children:(0,B.jsx)(te,{...e})});var ie=s(10986),ne=s.n(ie);const ae=e=>{let{maxLength:t,apis:s,getPermission:i,fileSize:n,accept:a,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,p]=ne()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:u,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:p,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,B.jsxs)(q,{title:(0,B.jsxs)(l.Row,{children:[(0,B.jsx)(l.Col,{flex:1}),(0,B.jsx)(l.Col,{children:(0,B.jsxs)(l.Space,{split:(0,B.jsx)(l.Divider,{type:"vertical"}),children:[(0,B.jsx)(V,{}),(0,B.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:n,maxLength:t,onFileSelected:m,accept:a,children:[(0,B.jsx)(z.List,{dataSource:[...u,...d],getPermission:i,apis:c}),(0,B.jsx)($,{})]})};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,i){for(var n=-1,a=null==e?0:e.length;++n<a;){var l=e[n];t(i,l,s(l),e)}return i}},32952:(e,t,s)=>{var i=s(45652);e.exports=function(e,t,s,n){return i(e,(function(e,i,a){t(n,e,s(e),a)})),n}},45652:(e,t,s)=>{var i=s(94664),n=s(76516)(i);e.exports=n},99910:e=>{e.exports=function(e,t){for(var s,i=-1,n=e.length;++i<n;){var a=t(e[i]);void 0!==a&&(s=void 0===s?a:s+a)}return s}},19449:(e,t,s)=>{var i=s(94710),n=s(32952),a=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?i:n,c=t?t():{};return o(s,e,a(r,2),c)}}},76516:(e,t,s)=>{var i=s(6571);e.exports=function(e,t){return function(s,n){if(null==s)return s;if(!i(s))return e(s,n);for(var a=s.length,l=t?a:-1,r=Object(s);(t?l--:++l<a)&&!1!==n(r[l],l,r););return s}}},26304:(e,t,s)=>{var i=s(53871),n=s(99140);e.exports=function(e,t,s){var a=null==e?0:e.length;return a?(t=s||void 0===t?1:n(t),i(e,0,(t=a-t)<0?0:t)):[]}},39835:(e,t,s)=>{var i=s(71775),n=s(19449),a=Object.prototype.hasOwnProperty,l=n((function(e,t,s){a.call(e,s)?e[s].push(t):i(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var i=s(26989);e.exports=function(e,t,s){var n=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===n?i(e,t,void 0,s):!!n}},60262:(e,t,s)=>{var i=s(99910),n=s(33279);e.exports=function(e){return e&&e.length?i(e,n):0}},99140:(e,t,s)=>{var i=s(37303);e.exports=function(e){var t=i(e),s=t%1;return t===t?s?t-s:t:0}},55664:()=>{},17448:()=>{},71975:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5962.b8774e96.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:()=>C});const n={menu:"style_menu__gvIvn__SCBFp","all-no-start-icon":"style_all-no-start-icon__CA+zR__SCBFp","no-start-icon":"style_no-start-icon__LnC1S__SCBFp","has-children":"style_has-children__m9tce__SCBFp","has-children-node":"style_has-children-node__2bhEB__SCBFp","is-root":"style_is-root__4hhOc__SCBFp",title:"style_title__+Hcar__SCBFp",active:"style_active__WU49K__SCBFp","no-collapse":"style_no-collapse__aIZBM__SCBFp","title-content":"style_title-content__cQXpK__SCBFp",loading:"style_loading__1pU4P__SCBFp"};var l=t(83136),a=t.n(l),r=t(55199),o=t(94679),i=t(29053),c=t(10986),p=t.n(c),d=t(64671),h=t(73884),u=t(18081),_=t.n(u),y=t(87558),m=t(70579);const g=e=>{const s=(0,o.useNavigate)(),{id:t,className:l,label:c,iconType:p,path:h,request:u,onClick:_,isOpen:g,isSelected:f,onOpenChange:C,children:K,fetchOptions:O,depth:v,onLoad:j,allowCollapsed:k}=e,S=Array.isArray(K)&&K.length>0||O,{refresh:b,isLoading:x}=(0,y.useFetch)(Object.assign({},O,{auto:!k&&O,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"]]:S,[n["no-collapse"]]:S&&!k,[n["no-start-icon"]]:!p,[n["is-root"]]:0===v}),onClick:n=>{n.stopPropagation(),S||!h?S||O?k&&(O&&b({}),C(!g)):null===_||void 0===_||_(t,e):s(h)},children:[p&&(0,m.jsx)(d.default,{type:p}),(0,m.jsx)("span",{className:n["title-content"],children:c}),S&&k&&(0,m.jsx)(d.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),S?!k||g&&K?(0,m.jsx)("div",{className:n["children-list"],children:K}):!k||g&&x?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},f=e=>{let{className:s,allowCollapsed:t,pathMatch:l,...r}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[d,u]=p()(r,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[y,f]=p()(r,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:C,defaultOpenKeys:K,links:O,childrenKeys:v,hasStartIcon:j,hasChildren:k}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},l);return Array.isArray(e)&&e.length>0?e.map(((e,l)=>{const o=`${e.key||`${"root"!==a?`${a}-`:""}node-${l}`}`;s[a]||(s[a]=[]),s[a].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[a].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(y);let l=!1,a=!1;const r=[],o=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach((e=>{const s=n[e];s.iconType&&(l=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(a=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:l,hasChildren:a}}),[y]);(0,h.useEffect)((()=>{const e=O.find((e=>{let{path:s}=e;return"function"===typeof l?l(s,{pathname:i,search:c}):_()(i.replace(/[#,?].*/,""))===_()(s)||_()(i+c)===_()(s)}));e&&u(e.key)}),[O,i,c,u,l]);const[S,b]=p()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||K}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),x=(0,h.useCallback)(((e,s)=>{const{parentKey:n,depth:l,selectedKey:a,openKeys:r,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...p}=e;return(0,h.createElement)(g,{...Object.assign({},p),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||v[i]&&v[i].indexOf(a)>-1,onClick:u,onLoad:e=>{f((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(r||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{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:r,paths:[...o,i]}))})):null}),[f,b,u,v,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!j,[n["has-children-node"]]:k}),children:x(C,{selectedKey:d,openKeys:S})})};f.defaultProps={defaultItems:[],allowCollapsed:!0};const C=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),r=t.n(a),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__SCBFp";var p=t(63908),d=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,p.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,p.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:a,message:r,request:o,children:p,...h}=e;const u=_({request:o});return"function"===typeof p?p({isPass:u,type:s,request:o}):!0===u?p:"error"===s?(0,d.jsx)(l.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,d.jsx)(l.Tooltip,{title:r,children:(0,n.createElement)(a,{...h,className:i()(c,t)},p)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
|
|
2
|
-
//# sourceMappingURL=6611.1152fb3a.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6779,5600,9034,2517],{17342:(e,t,n)=>{"use strict";n.d(t,{A:()=>i});var o=n(8762),r=n.n(o);n(46733);const i=r()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),r=n(79889),i=n.n(r),l=n(93950),s=n.n(l),a=n(96418),c=n.n(a);const d=(e,t)=>{const n=(0,o.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const r=(0,o.useRef)(null),l=c()(e);return(0,o.useLayoutEffect)((()=>{const e=r.current,t=()=>window.requestAnimationFrame((()=>{e&&l(e)}));t();const o=new ResizeObserver((n.current.isDebounce?s():i())(t,n.current.time));return e&&o.observe(e),()=>{o.disconnect()}}),[l]),r}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>w});var o=n(73884),r=n(96418),i=n.n(r),l=n(55199),s=n(83136),a=n.n(s),c=n(64671),d=n(81014),u=n(58407),m=n(77964),p=n(22616),f=n.n(p);const h="style_width-container__JfEbg__SCBFp",_="style_hidden-container__EdySA__SCBFp",g="style_hidden-inner__vAN59__SCBFp",C="style_menu-list__VDttR__SCBFp",y="style_btn-item__mp5MQ__SCBFp";var x=n(15797),v=n.n(x),b=n(70579);const j=v()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;const l=i?0:["small","middle","large"].indexOf(r.size)>-1?8*(["small","middle","large"].indexOf(r.size)+1):Number.isInteger(r.size)?r.size:8;let s=0,a=0;for(;t>=a+o[s]+s*l&&s<o.length;)a+=o[s],s+=1;for(;t<a+(s-1)*l+(s<o.length?n+l:0)&&s>0;)a-=o[s-1],s-=1;return s}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;return`${t}${n}${o.join(",")}${Object.values(r).join(",")}${i&&i.toString()}`})),S=e=>{let{list:t,more:n,compact:r,...s}=e;const c=f()(s,["size","split","align","style"]),[p,x]=(0,o.useState)(t.length&&1),v=i()((()=>{const e=w.current,t=B.current,n=S.current;if(!e)return;const i=e.querySelectorAll(".button-group-item");if(!i)return;if(0===i.length)return;const l=n.clientWidth,s=t.clientWidth,a=[].map.call(i,(e=>e.offsetWidth)),d=j({amountWidth:l,moreBtnWidth:s,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{x(d)}))})),S=(0,m.A)(v),w=(0,m.A)(v),B=(0,m.A)(v),N=t.slice(p),F=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",y),isDropdown:n});const{className:r,confirm:i,buttonComponent:l,...s}=e,c=i||s.message,m=c?u.default:l||d.default;return(0,o.createElement)(m,{danger:c&&!1!==s.isDelete,...Object.assign({},s,c&&(s.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",y,r)})},k=r?l.Space.Compact:l.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:h,ref:S}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:g,ref:B,children:n}),(0,b.jsx)("div",{className:g,ref:w,children:(0,b.jsx)(k,{...c,children:t.map(F)})})]}),(0,b.jsxs)(k,{...c,children:[t.slice(0,p).map(((e,t)=>F(e,t,!1))),N.length>0&&(0,b.jsx)(l.Dropdown,{overlayClassName:C,menu:{items:N.map(((e,t)=>({key:t,label:F(e,t,!0)})))},children:n})]})]})};S.defaultProps={more:(0,b.jsxs)(l.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const w=S},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>g,ConfirmText:()=>C,default:()=>y,withConfirm:()=>_});n(73884);var o=n(55199);const r=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var i=n(64671),l=n(58609),s=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__SCBFp",u="style_is-danger__gxyAB__SCBFp",m="style_title__EEPu2__SCBFp",p="style_content__mZZg5__SCBFp",f="style_has-title__5+PEt__SCBFp";var h=n(70579);const _=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:a=!0,onClick:_,onCancel:g,disabled:C,showCancel:y,cancelText:x,isModal:v,okText:b,placement:j,getContainer:S,...w}=t;const{formatMessage:B}=(0,l.useIntl)({moduleName:"ConfirmButton"}),N=(0,s.useConfirmModal)();return v?(0,h.jsx)(e,{...w,disabled:C,onClick:e=>{N({type:"confirm",title:n,getContainer:S,danger:a,confirmType:a?"warning":"info",message:r||B({id:"message"}),okText:b||B(a?{id:"delete"}:{id:"confirm"}),cancelText:x||B({id:"cancel"}),onCancel:g,onOk:_})}}):(0,h.jsx)(o.Popconfirm,{title:(0,h.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,h.jsxs)(o.Space,{size:0,align:"start",className:m,children:[a&&(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,h.jsxs)(o.Space,{size:0,align:"start",className:c()(p,{[f]:n}),children:[!n&&a?(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,r||B({id:"message"})]})]}),placement:j,onConfirm:_,okButtonProps:{danger:a},onCancel:g,overlayClassName:c()(d,{[u]:a}),getPopupContainer:S,disabled:C,showCancel:y,cancelText:x,okText:b||B(a?{id:"delete"}:{id:"confirm"}),children:(0,h.jsx)(e,{...w,disabled:C})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},g=_(o.Typography.Link),C=_(o.Typography.Text),y=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>M,TabsModal:()=>F,TabsModalButton:()=>T,default:()=>B,useConfirmModal:()=>w,useModal:()=>S,useTabsModal:()=>k});var o=n(73884),r=n(55199),i=n(83136),l=n.n(i);const s={modal:"style_modal__Pm3cF__SCBFp",large:"style_large__iaqVE__SCBFp","modal-body-inner":"style_modal-body-inner__4PhpA__SCBFp","modal-title":"style_modal-title__dswaw__SCBFp","modal-outer":"style_modal-outer__r3SkX__SCBFp","modal-body":"style_modal-body__jQJSI__SCBFp","right-options-modal":"style_right-options-modal__FajDP__SCBFp","right-options-row":"style_right-options-row__-mPb9__SCBFp","right-options-col":"style_right-options-col__3ilee__SCBFp","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__SCBFp",content:"style_content__k6MIF__SCBFp","modal-footer":"style_modal-footer__-prbN__SCBFp","modal-close":"style_modal-close__Oa5Kl__SCBFp","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__SCBFp","is-danger":"style_is-danger__H5110__SCBFp",title:"style_title__orTym__SCBFp","has-title":"style_has-title__qy0Wp__SCBFp"},a=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var m=n(81014),p=n(17342),f=n(70579);const h="Modal",_=e=>{let{options:t,rightSpan:n=6,children:o}=e;return t?(0,f.jsxs)(r.Row,{wrap:!1,className:s["right-options-row"],children:[(0,f.jsx)(r.Col,{span:24-n,className:s["right-options-col"],children:o}),(0,f.jsx)(r.Col,{span:n,className:s["right-options-col"],children:t})]}):o},g=(e,t)=>e-48-(t?58:0)+"px",C=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":g(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,t)}}:{width:"1000px",style:{"--min-modal-height":g(500,t)}},y=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:l,onClose:s,targetProps:d}=e;return(0,f.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,f.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,f.jsx)(r.Col,{children:(0,f.jsx)(r.Space,{children:(n||[{children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,f.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:h})}),onClick:l},{type:"primary",children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,f.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:h})}),onClick:i}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:i=!0,display:l,...a}=e;const c=n||m.default;return(0,o.createElement)(c,{...a,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=await Promise.resolve(r&&r(...t,d));return i&&!1!==o&&s&&s(),o}})}))})})]})},x=e=>{let{title:t,footer:n,disabledScroller:i,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:h,children:_,targetProps:g}=e;const C=(0,o.useRef)(null);return(0,f.jsxs)("div",{className:s["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,f.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:s["modal-close"],type:"text",icon:(0,f.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,f.jsx)("div",{className:s["modal-title"],children:t}),(0,f.jsx)(p.A,{className:l()(s["modal-body"],{[s["is-disabled-scroller"]]:i},"modal-body"),ref:C,children:(0,f.jsx)("div",{className:l()(s["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,f.jsx)("div",{className:l()(s["modal-footer"],"modal-footer"),children:(0,f.jsx)(y,{footer:n,footerButtons:a,onConfirm:m,onCancel:h,onClose:c,targetProps:g})}):null]})},v=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:i,onConfirm:l,onCancel:s,footer:a,rightOptions:c,rightSpan:d,disabledScroller:m,childrenRef:p,children:h}=e;const g=e=>(e=Object.assign({},{title:o},e),(0,f.jsx)(x,{title:u(e.title,{...e,childrenRef:p,close:i}),closable:r,onClose:i,onConfirm:l,onCancel:s,footerButtons:u(n,{...e,close:i}),disabledScroller:m,footer:u(a,{...e,childrenRef:p,close:i}),targetProps:Object.assign({},e,{childrenRef:p,close:i}),children:(0,f.jsx)(_,{rightSpan:d,options:u(c,{...e,childrenRef:p,close:i}),children:u(h,{...e,childrenRef:p,close:i})})}));return"function"===typeof t?t(g):g({})},b=e=>{let{children:t,rightOptions:n,rightSpan:o,footer:r,footerButtons:i,className:d,size:u,title:m,onClose:p,onConfirm:h,onCancel:_,closable:g,disabledScroller:y,withDecorator:x,childrenRef:b,...j}=e;return{...j,icon:null,centered:!0,title:null,maskClosable:!!j.hasOwnProperty("maskClosable")&&j.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:p,className:l()(d,s.modal,s[u],{[s["right-options-modal"]]:n}),...C(u,!(null===r&&!i)),children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:v({withDecorator:x,title:m,closable:g,onClose:p,onConfirm:h,onCancel:_,footer:r,footerButtons:i,rightOptions:n,rightSpan:o,disabledScroller:y,children:t,childrenRef:b})})}},j=e=>{const t=(0,o.useRef)(null);return(0,f.jsx)(r.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const S=()=>{const{modal:e}=r.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:r,...i}=b({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:l}=e.info({...i,content:r});return o.close=l,o}},w=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:i,title:a,danger:c,wrapClassName:u,message:m,iconSetting:p={},confirmType:h="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},p);if(e[o]){const{destroy:t}=e[o]({..._,icon:null,wrapClassName:l()(s["confirm-modal-wrap"],u,{[s["is-danger"]]:c}),title:(0,f.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,f.jsxs)(r.Space,{size:0,align:"start",className:s.title,children:[c?(0,f.jsx)(d.default,{className:l()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:i||g["confirm"===o?h:o]}):null,a]})}),content:(0,f.jsxs)(r.Space,{size:0,align:"start",className:l()(s.content,{[s["has-title"]]:a}),children:[!a&&c?(0,f.jsx)(d.default,{className:l()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:i||g["confirm"===o?h:o]}):null,m]})});n.close=t}return n}},B=j,N=e=>{let{items:t,className:n,activeKey:o,withDecorator:i,defaultActiveKey:s,onChange:a,...c}=e;return{...c,className:l()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,f.jsx)(r.Tabs,{items:t.map((t=>{let{withDecorator:o,...r}=t;return Object.assign({},r,{children:"function"===typeof o?o((t=>e(Object.assign({},n,t,{children:r.children})))):e(Object.assign({},n,{children:r.children}))})})),destroyInactiveTabPane:!0,activeKey:o,defaultActiveKey:s,onChange:a});return"function"===typeof i?i(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},F=e=>(0,f.jsx)(B,{...N(e)}),k=()=>{const e=S();return t=>e(N(t))};var P=n(73025);const T=e=>{const t=k();return e.api?(0,f.jsx)(P.A,{...e,modalFunc:t}):(0,f.jsx)(r.Button,{...e,onClick:()=>{t(e.modalProps)}})},M=e=>{const t=S();if(!e.api){const{modalProps:n,...o}=e;return(0,f.jsx)(r.Button,{...o,onClick:()=>{t(n)}})}return(0,f.jsx)(P.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),r=n(77116);e.exports=function e(t,n,i,l,s){var a=-1,c=t.length;for(i||(i=r),s||(s=[]);++a<c;){var d=t[a];n>0&&i(d)?n>1?e(d,n-1,i,l,s):o(s,d):l||(s[s.length]=d)}return s}},94008:(e,t,n)=>{var o=n(27449),r=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return r(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),r=n(9261),i=n(35324);e.exports=function(e,t,n){for(var l=-1,s=t.length,a={};++l<s;){var c=t[l],d=o(e,c);n(d,c)&&r(a,i(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),r=n(35324),i=n(69194),l=n(46686),s=n(70914);e.exports=function(e,t,n,a){if(!l(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var p=s(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=u){var h=m[p];void 0===(f=a?a(h,p,m):void 0)&&(f=l(h)?h:i(t[c+1])?[]:{})}o(m,p,f),m=m[p]}return e}},15857:(e,t,n)=>{var o=n(20819),r=n(55636),i=n(46350);e.exports=function(e){return i(r(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),r=n(22777),i=n(54052),l=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(l&&e&&e[l])}},93950:(e,t,n)=>{var o=n(46686),r=n(4757),i=n(40801),l=Math.max,s=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,p,f=0,h=!1,_=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function C(t){var n=a,o=c;return a=c=void 0,f=t,u=e.apply(o,n)}function y(e){var n=e-p;return void 0===p||n>=t||n<0||_&&e-f>=d}function x(){var e=r();if(y(e))return v(e);m=setTimeout(x,function(e){var n=t-(e-p);return _?s(n,d-(e-f)):n}(e))}function v(e){return m=void 0,g&&a?C(e):(a=c=void 0,u)}function b(){var e=r(),n=y(e);if(a=arguments,c=this,p=e,n){if(void 0===m)return function(e){return f=e,m=setTimeout(x,t),h?C(e):u}(p);if(_)return clearTimeout(m),m=setTimeout(x,t),C(p)}return void 0===m&&(m=setTimeout(x,t)),u}return t=i(t)||0,o(n)&&(h=!!n.leading,d=(_="maxWait"in n)?l(i(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),b.cancel=function(){void 0!==m&&clearTimeout(m),f=0,a=p=c=m=void 0},b.flush=function(){return void 0===m?u:v(r())},b}},20819:(e,t,n)=>{var o=n(80755);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},4757:(e,t,n)=>{var o=n(56552);e.exports=function(){return o.Date.now()}},22616:(e,t,n)=>{var o=n(94008),r=n(15857)((function(e,t){return null==e?{}:o(e,t)}));e.exports=r},79889:(e,t,n)=>{var o=n(93950),r=n(46686);e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),o(e,t,{leading:i,maxWait:t,trailing:l})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=6779.ae91c0e8.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:()=>p});var a=s(73884),r=s(83136),l=s.n(r);const o={"state-tag":"style_state-tag__Kx27z__SCBFp","state-result-tag":"style_state-result-tag__CssDz__SCBFp","state-skill-tag":"style_state-skill-tag__k0bQE__SCBFp","event-tag":"style_event-tag__cg6SE__SCBFp","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__SCBFp","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__SCBFp","state-tag-filterResult":"style_state-tag-filterResult__KTkot__SCBFp","show-bg":"style_show-bg__OcL+R__SCBFp","tag-text":"style_tag-text__JHCt+__SCBFp","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__SCBFp"};var _=s(55199),n=s(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},g=t=>{let{showBorder:e,text:s,type:r,showBackground:g,className:p,filterName:u,...i}=t;const d=(0,a.useMemo)((()=>{var t,e;return{color:(null===c||void 0===c||null===(t=c[r])||void 0===t?void 0:t.color)||c[r],borderColor:(null===c||void 0===c||null===(e=c[r])||void 0===e?void 0:e.borderColor)||c[r]}}),[r]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:l()(o["state-tag-wrapper"],"filterResult"===r?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[u?(0,n.jsxs)("span",{className:o["state-tag-filter-name"],children:[u,":"]}):null,(0,n.jsx)(_.Tag,{color:d.color,...i,style:{background:g?d.color+"0F":"none",color:d.color,border:e?`1px solid ${d.borderColor}`:"none"},className:l()(o["state-tag"],p,"result"===r?o["state-result-tag"]:"","skill"===r?o["state-skill-tag"]:"",o[`state-tag-${r}`],g?o["show-bg"]:"",e?o["show-border"]:"",null!==i&&void 0!==i&&i.onClick?o["event-tag"]:""),children:(0,n.jsx)("span",{className:o["tag-text"],children:s})})]})};g.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const p=g},79160:(t,e,s)=>{var a=s(16913),r=s(22761);t.exports=function(t){return"number"==typeof t||r(t)&&"[object Number]"==a(t)}}}]);
|
|
2
|
-
//# sourceMappingURL=7121.341feb65.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7655],{18411:(e,t,n)=>{n.d(t,{A:()=>a});n(73884);const a=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},93761:(e,t,n)=>{n.d(t,{qn:()=>R,TM:()=>G,LH:()=>I,Ay:()=>E,NY:()=>L,DF:()=>D});var a=n(30509),l=n(25438),s=n(55199),r=n(27047),o=n(83136),i=n.n(o),c=n(64671),d=n(73884),u=n(21485),p=n(56434),m=n.n(p),h=n(15797),_=n.n(h),g=n(33097),f=n.n(g);const x="style_address__DIuRX__SCBFp",C="style_is-popup__tqVvp__SCBFp",y="style_title__FAe12__SCBFp",v="style_scroll-box__JWiDl__SCBFp",S="style_scroll-plus-box__lidEW__SCBFp",j="style_content__lAARZ__SCBFp",b="style_col-left__WPfeS__SCBFp",A="style_col-right__z0e9-__SCBFp";var N=n(87558),F=n.n(N);const w=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var B=n(58609),O=n(70579);const P=a.A.useContext,I=e=>{let{city:t,province:n,country:a}=e;const l=_()((()=>{const e=[];return["gangaotai","municipality"].forEach((n=>{e.push(...t.relations[n])})),["provinces","continents"].forEach((n=>{t.relations[n].forEach((n=>{e.push(n),e.push(...t.relations[n])}))})),e.map((e=>t.list[e]))}));return{getCity:_()((e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}})),getChinaHotCities:_()((()=>t.relations[2].map((e=>t.list[e])))),getChinaCities:_()((()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map((e=>Object.assign({id:e},t.list[e]))))),getCountries:_()((()=>["1",...a.relations.continents].map((e=>Object.assign({id:e},a.list[e]))))),getList:_()(((e,l)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map((e=>t.list[e]));const o=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return o.name=""+(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map((e=>t.list[e]));return n.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),a.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i})),getNationalityList:_()((e=>{let n=m()(t);return"1"===e&&n.relations[1].unshift("410"),"350"===e&&n.relations[350].unshift("410"),n.relations[e].filter((e=>n.list[e])).map((e=>n.list[e]))})),getCityByName:_()((e=>{const t=l();let n;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find((e=>(n=t.find(e),n))),n})),combineCities:_()(((e,n)=>[...n.filter((n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n)),e])),searchCities:_()((e=>{if(!e)return[];return l().filter((t=>["pinyin","name","enName","spelling"].some((n=>t[n].toUpperCase().indexOf(e.toUpperCase())>-1)))).map((e=>{const n=e.parentCode?t.list[e.parentCode]:null;return{label:n?`${n.name}\xb7${e.name}`:e.name,value:e.code}}))}))}},L=(e,t)=>"en-US"===t?f()(e,"enName"):f()(e,"name"),k={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7820).then(n.t.bind(n,37820,19)).then((e=>e.__esModule?e.default:e))},M=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:o}=P(),[p,m]=(0,d.useState)(""),[h,_]=(0,d.useState)("2"),{formatMessage:g}=(0,B.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,r.A)(),{getCity:N,getChinaCities:F,getCountries:w,getList:k,searchCities:M}=(0,d.useMemo)((()=>I(a.data)),[a.data]),T=e=>{if(o.single)return void n([e]);const a=t.slice(0),l=a.indexOf(e);l>-1?a.splice(l,1):a.push(e),n(a)},R=p&&(0,O.jsx)(u.A,{className:S,children:(0,O.jsx)(s.List,{className:l.A.list,size:"small",dataSource:M(p),rowKey:"value",renderItem:e=>(0,O.jsx)(s.List.Item,{className:l.A["list-item"],onClick:()=>{T(e.value),m("")},children:(0,O.jsx)("span",{className:l.A["item-label"],children:e.label})})})});return(0,O.jsxs)("div",{className:i()(x,{[C]:o.isPopup}),children:[(0,O.jsx)(s.Input.Search,{className:i()(l.A["search-input"],{[l.A["is-popup"]]:o.isPopup}),placeholder:o.searchPlaceholder||g({id:"searchCity"}),prefix:(0,O.jsx)(c.default,{type:"icon-sousuo"}),enterButton:(0,O.jsx)(c.default,{type:"icon-sousuo"}),value:p,allowClear:!0,onChange:e=>{const t=e.target.value;m(t)},onSearch:e=>{m(e)}}),(0,O.jsx)("div",{className:j,children:R||(0,O.jsxs)(s.Row,{wrap:!1,children:[(0,O.jsx)(s.Col,{className:b,children:(0,O.jsx)(s.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,O.jsx)(B.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,O.jsx)(u.A,{className:v,children:(0,O.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:F().map((e=>({label:L(e,f),key:e.id})))})})},{key:"1",label:(0,O.jsx)(B.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,O.jsx)(u.A,{className:v,children:(0,O.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map((e=>({label:L(e,f),key:e.id})))})})}]})}),(0,O.jsxs)(s.Col,{flex:1,className:A,children:[(0,O.jsx)(s.Divider,{className:y,orientation:"left",children:L(N(h).city,f)}),(0,O.jsx)(u.A,{className:v,children:(0,O.jsx)(s.Space,{wrap:!0,children:k(h,{showChinaQuan:o.showChinaQuan,showForeignQuan:o.showForeignQuan}).map((e=>(0,O.jsx)(s.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{T(e.code)},children:L(e,f)},e.code)))})})]})]})})]})},T=e=>(0,O.jsx)(a.A,{...e,children:e=>{let{value:t,setValue:n}=e;return(0,O.jsx)(B.IntlProvider,{moduleName:"AddressSelect",importMessages:w,children:(0,O.jsx)(M,{value:t,setValue:n})})}});T.defaultProps={overlayWidth:"500px",isPopup:!0,api:k,dataFormat:(e,t)=>{let{city:n}=e;const{locale:a}=Object.assign({},t);return{list:Object.values(n.list).map((e=>Object.assign({},e,{value:e.code,label:L(e,a)})))}}};const R=(0,N.withFetch)((e=>{let{name:t,data:n,getAddressApi:a,children:l,...s}=e;const{locale:o}=(0,r.A)(),i=(0,d.useMemo)((()=>I(n)),[n]);return a?l(i):(0,O.jsx)(F(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise((e=>{setTimeout((()=>{e(i.getCity(n))}),0)}))},render:e=>{let{data:t}=e;return l(t,Object.assign({},s,{locale:o}))}})}));R.defaultProps={...k,displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?`${L(a,s)}\xb7${L(n,s)}`:L(n,s)}};const D=e=>{const t=(0,N.withFetch)((t=>{let{data:n,...a}=t;const l=(0,d.useMemo)((()=>I(n)),[n]);return(0,O.jsx)(e,{...a,addressApi:l})}));return t.defaultProps={...k},t};T.AddressEnum=T.Enum=R,T.createAddressApi=I,T.withAddressApi=D,T.getLabelForLocal=L;const E=T;var z=n(10986),V=n.n(z),W=n(78491),U=n.n(W),$=n(20492),K=n(22616),q=n.n(K),H=n(1488),Q=n.n(H);const Z=e=>{const{isPopup:t,size:n,disabled:a,inputPlaceholder:l,onBlur:r,className:o,...i}=e,[c,d]=V()(e),u=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:p}=(0,B.useIntl)({moduleName:"Common"}),m=U()((e=>{r&&r(e)}));return(0,O.jsx)("div",{ref:m,children:(0,O.jsxs)(s.Row,{gutter:10,children:[(0,O.jsx)(s.Col,{span:12,children:(0,O.jsx)(E,{...q()(i,u),className:o,disabled:a,single:!0,size:n,value:f()(c,"city"),onChange:e=>{d({city:e,detail:f()(c,"detail")})}})}),(0,O.jsx)(s.Col,{span:12,children:(0,O.jsx)(s.Input,{...Q()(i,u),className:o,placeholder:l||p({id:"pleaseInput"}),disabled:a,size:n,value:f()(c,"detail"),onChange:e=>{d({city:f()(c,"city"),detail:e.target.value})}})})]})})};Z.defaultProps={};const G=(0,B.createWithIntl)({importMessages:$.A,moduleName:"Common"})(Z)},12392:(e,t,n)=>{n.d(t,{Bm:()=>V,Eo:()=>E,NR:()=>b,Ay:()=>W});var a=n(55199),l=n(83136),s=n.n(l),r=n(30509),o=n(25438),i=n(26475),c=n(33097),d=n.n(c),u=n(34677),p=n.n(u);const m="create-list_scroll-loader__zoaS7__SCBFp",h="create-list_is-popup__t3d-G__SCBFp",_="create-list_is-not-full__FXtX1__SCBFp",g="create-list_search-input__tV3vf__SCBFp",f="create-list_left__EXr3i__SCBFp",x="create-list_list-header__3xeJa__SCBFp",C="create-list_is-modal__BMfya__SCBFp";var y=n(73161),v=n(58609),S=n(70579);const j=r.A.useContext,b=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:c,setSearchText:u,props:b,mapping:A}=j(),N=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},b.pagination),F=d()(r.requestParams,[N.paramsType,N.current],1),w=d()(r.requestParams,[N.paramsType,N.pageSizeName])||N.pageSize,{formatMessage:B}=(0,v.useIntl)({moduleName:"Common"}),O=b.dataFormat(r.data),{right:P,leftBottom:I,leftSpan:L=24}=b,k=1===n.length&&"all"===n[0];return(0,S.jsxs)(a.Row,{wrap:!1,className:P?s()("is-not-full",_):"",children:[(0,S.jsxs)(a.Col,{span:L,className:s()(f,"advance-select-left"),children:[b.getSearchProps?(0,S.jsx)(y.A,{isPopup:b.isPopup,className:s()(g,o.A["search-input"],{[o.A["is-popup"]]:b.isPopup}),placeholder:b.searchPlaceholder||B({id:"search"}),value:c,onSearch:e=>{r.reload(b.getSearchProps(e)),u(e)}}):null,b.single||!b.showSelectedCount&&!b.allowSelectAll?null:(0,S.jsxs)(a.Flex,{className:s()(x,{[C]:!b.isPopup}),justify:"space-between",children:[b.showSelectedCount?(0,S.jsxs)(a.Space,{children:[(0,S.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,S.jsx)(a.Typography.Link,{children:k?b.allLabel||(0,S.jsx)(v.FormattedMessage,{id:"all",moduleName:"Common"}):`${n.length}${b.countUnit||B({id:"items"})}`})]}):(0,S.jsx)("div",{}),b.allowSelectAll?(0,S.jsx)("div",{children:(0,S.jsx)(a.Checkbox,{checked:k,onChange:e=>{l(e.target.checked?[b.allValue||"all"]:[])},children:(0,S.jsx)(v.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:b.allLabel||(0,S.jsx)(v.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,S.jsx)("div",{})]}),(0,S.jsx)(i.A,{completeTips:"",isLoading:!r.isComplete,className:s()(m,{[h]:b.isPopup}),noMore:!O.total||F*w>=O.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(p()({[N.paramsType]:{[N.pageSizeName]:w,[N.current]:F+1}},b.getSearchProps&&b.getSearchProps(c)),b.mergeList)},children:t({props:b,value:n,setValue:l,list:O.list,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:k,onSelect:e=>{if(b.single)return void l([e.value]);const t=n.slice(0),a=t.indexOf(e.value);a>-1?t.splice(a,1):t.push(e.value),l(t)}})}),I&&I({fetchApi:r,value:n,mapping:A})]}),P&&P({value:n,mapping:A,fetchApi:r})]})},c=e=>{let{extra:t,...n}=e;return(0,S.jsx)(r.A,{...n,extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,S.jsx)(l,{value:t,setValue:n})}})};return c.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},n),c},A="list_list__TGynD__SCBFp",N="list_list-item__WSswf__SCBFp",F="list_is-selected__6Wkgt__SCBFp",w="list_item-label__bYzhe__SCBFp",B="list_item-des__2nsEn__SCBFp",O="list_is-disabled__qxCvO__SCBFp",P="list_is-selected-all__Mp-hG__SCBFp";var I=n(40438),L=n(64671);const k="user_list-inner__V508e__SCBFp",M="user_list-info__y2nWo__SCBFp",T="user_selected-icon__9OQJL__SCBFp",R="user_item-des__o+7UR__SCBFp",D="user_is-selected-all__2q0VZ__SCBFp",E=b({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:r}=e;return(0,S.jsx)(a.List,{size:"small",className:s()(A,{[P]:r,[D]:r}),dataSource:t,renderItem:e=>{const t=l(e);return(0,S.jsx)(a.List.Item,{className:s()(N,{[F]:t}),onClick:()=>n(e),children:(0,S.jsxs)(a.Row,{wrap:!1,align:"middle",className:k,children:[(0,S.jsx)(a.Col,{children:(0,S.jsx)(I.default.Avatar,{...Object.assign({},e.avatar),size:40,gender:"M"})}),(0,S.jsx)(a.Col,{className:M,flex:1,children:(0,S.jsxs)(a.Space,{direction:"vertical",children:[(0,S.jsx)("span",{className:w,children:e.label}),e.description&&(0,S.jsx)("span",{className:R,children:e.description})]})}),(0,S.jsx)(a.Col,{children:r||t?(0,S.jsx)(L.default,{className:T,type:"icon-gouxuan"}):null})]})})}})}}),z={"is-selected-all":"table_is-selected-all__IwXUY__SCBFp"},V=b({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,S.jsx)(a.Table,{className:s()(z.list,A,{[P]:c,[z["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map((e=>{let{value:t}=e;return t})),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),W=b({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,S.jsx)(a.List,{className:s()(A,i,{[P]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const i=l(e);return(0,S.jsxs)(a.List.Item,{className:s()(N,{[F]:t.single&&i,[O]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,S.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,S.jsx)(a.Col,{children:(0,S.jsx)(a.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,S.jsx)(a.Col,{children:(0,S.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,S.jsx)("span",{className:w,children:e.label}),e.description&&(0,S.jsx)("span",{className:B,children:e.description})]})})]}),i&&c]})}})}})},45776:(e,t,n)=>{n.d(t,{yK:()=>P,ON:()=>h,Ay:()=>T});var a=n(30509),l=n(73884),s=n(96418),r=n.n(s),o=n(55199),i=n(64671),c=n(73161),d=n(33097),u=n.n(d),p=n(79686),m=n.n(p);const h=e=>{const t=Array.from(e.values()),n=t.filter((e=>null===e.parentId)),a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],a=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach((e=>{a(e.id)})))};return a(t),n},s=(t,n)=>{const a=t=>{const l=e.get(t);return l?n(l)?l:m()(l.parentId)?null:a(l.parentId):null};return a(t)},r=t=>{const a=e.get(t);if(!a)return[];const l=a.parentId;if(m()(l))return n;return e.get(l).children},o=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map((n=>{const a=t.filter((e=>e.parentId===n.id));return Object.assign({},n,{children:e(a)})})):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const a=e=>{if(e.children&&e.children.length>0)return a(e.children.find((t=>t.children&&e.children.length>0))||u()(e.children,"0"));const t=l(e.parentId).find((e=>e.children&&e.children.length>0));return t?a(t):e},s=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],a=e.get(t);return!a||m()(a.parentId)?n:s(a.parentId,n)},r=a(n);return s(u()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,(e=>n.indexOf(e.id)>-1)))return{checked:!0,indeterminate:!1};const a=(t=>{const a=t=>{const l=e.get(t);return l?(s=l,n.indexOf(s.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find((e=>!!a(e.id))):void 0):null;var s};return!!a(t)})(t);return a?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;n.push(t),l(t).forEach((e=>{a(n,e.id)}));const i=r(t),c=i.every((e=>n.indexOf(e.id)>-1));o.parentId&&c&&(i.forEach((e=>{a(n,e.id)})),s(o.parentId))};return s(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const s=e.get(t);if(!s)return;if(n.indexOf(s.id)>-1)return void a(n,s.id);const o=r(t);s.parentId&&(o.forEach((e=>{t!==e.id&&n.push(e.id)})),l(s.parentId))};return l(t),n},treeData:o,treeMapping:new Map(o.map((e=>[e.id,e])))}};var _=n(74065),g=n.n(_),f=n(19853),x=n.n(f),C=n(17342),y=n(83136),v=n.n(y);const S={content:"style_content__Hxlt9__SCBFp",columns:"style_columns__FmtPF__SCBFp","content-item":"style_content-item__i6HCO__SCBFp","last-level-area":"style_last-level-area__2y7jQ__SCBFp","is-popup":"style_is-popup__+r3Mn__SCBFp",menu:"style_menu__WZUVE__SCBFp","scroll-plus-box":"style_scroll-plus-box__QcTst__SCBFp","menu-label":"style_menu-label__iGt0Z__SCBFp","menu-item":"style_menu-item__hXHfm__SCBFp","checkbox-hidden":"style_checkbox-hidden__Xpx7J__SCBFp",loading:"style_loading__ZwrVe__SCBFp"};var j=n(87558),b=n(58609),A=n(25438),N=n(70579),F=n(27047);const w=new Map,B=(0,j.withFetch)((e=>{let{data:t,name:n,type:a,cache:s,children:r,getLabel:o,...i}=e;const c=(0,l.useMemo)((()=>new Map(t.map((e=>[e.code,{...e,id:e.code,label:o?o(e):e.chName,parentId:e.parentCode||null}])))),[t,o]).get(n);return w.set(`${n}_${a}`,c),r(c,i)})),O=e=>{const{locale:t}=(0,F.A)(),n=`${t}_${e.name}_${e.type}`,a=w.get(n);return a&&!e.force?e.children(a):(0,N.jsx)(B,{...e})};O.defaultProps={children:e=>u()(e,"label","")};const P=O,I=a.A.useContext,L=(0,j.withFetch)((e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,N.jsx)(C.A,{className:S["scroll-plus-box"],children:(0,N.jsx)(o.List,{className:A.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,N.jsx)(o.List.Item,{className:v()(A.A["list-item"],{[A.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,N.jsx)("span",{className:A.A["item-label"],children:e.label})})}})})})),k=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:d,props:p}=I(),[m,_]=(0,l.useState)(""),f=r()(p.dataFormat),{formatMessage:y}=(0,b.useIntl)({moduleName:"Common"}),j=d.data,F=(0,l.useMemo)((()=>new Map(f(j).list.map((e=>[e.value,e])))),[j,f]),w=(0,l.useMemo)((()=>h(F)),[F]),B=(0,l.useRef)({});B.current={createMergeTree:p.createMergeTree,loadMore:d.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:w};const[O,P]=(0,l.useState)((()=>{const e=t.find((e=>!!F.get(e)));return w.getSelectedQueue(e||u()(d.data.find((e=>e.children&&e.children.length>0)),"id")||u()(d.data,"[0].id"),F)}));(0,l.useEffect)((()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:a,treeUtils:l}=B.current;if(!e)return;const s=F.get(g()(O));if(!s)return;const r=l.getSelectedQueue(s.id);x()(O,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):P(r)}),[O,F]);const k=(e,l)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?w.setNodeChecked(l,t):w.setNodeUnchecked(l,t)})();s.length>a?o.message.error(y({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[g()(s)]:s)},M=e=>{const t=F.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},T=!p.openLoadData&&"function"===typeof p.onSearch,R=T&&m&&(0,N.jsx)(L,{data:{searchText:m},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:F})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{k(!t,e.id),!t&&P(w.getSelectedQueue(e.id,F)),_("")}});return(0,N.jsxs)("div",{className:v()(S.content,{[S["is-popup"]]:p.isPopup,[S["has-search"]]:T}),style:{"--menu-item-width":p.menuItemWidth},children:[T&&(0,N.jsx)(c.A,{isPopup:p.isPopup,className:v()(A.A["search-input"],{[A.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||y({id:"search"}),value:m,onSearch:e=>{_(e)}}),R||(0,N.jsx)("div",{children:(0,N.jsx)(C.A,{className:S.scroller,options:{autoHide:!1},children:(0,N.jsxs)("div",{className:S.columns,children:[O.map(((e,n)=>{const a=F.get(e),r=w.getSiblingNode(e),c=!M(null===a||void 0===a?void 0:a.id)&&n>0;return(0,N.jsx)(C.A,{className:v()(S["content-item"],{[S["last-level-area"]]:c}),children:c?(0,N.jsx)(o.Space,{wrap:!0,children:r.map((e=>(0,l.createElement)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>k(t.target.checked,e.id)},e.label)))}):(0,N.jsx)(o.Menu,{className:v()(S.menu),onSelect:e=>{const n=F.get(e.key);if(n)if(M(n.id))P(w.getSelectedQueue(n.id,F));else{const{checked:e}=w.computedCheckboxStatus(n.id,t);k(!e,n.id)}},selectedKeys:n===O.length-1?[]:O,items:r.map((e=>({key:e.id,label:(0,N.jsxs)(o.Space,{className:v()(S["menu-item"],{[S["checkbox-hidden"]]:p.onlyAllowLastLevel&&M(e.id)}),children:[!p.onlyAllowLastLevel&&(0,N.jsx)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>k(t.target.checked,e.id)}),(0,N.jsx)("div",{className:S["menu-label"],children:e.label}),M(e.id)&&(0,N.jsx)(i.default,{className:S["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})})))})},u()(r,"[0].id",n))})),d.isComplete?null:(0,N.jsx)("div",{className:S.loading,children:(0,N.jsx)(o.Spin,{size:"small"})})]})})})]})},M=e=>{let{maxLength:t,nodeFormat:n,dataFormat:l,...s}=e;return(0,N.jsx)(a.A,{...s,dataFormat:e=>l(e,n),children:e=>{let{value:n,setValue:a}=e;return(0,N.jsx)(k,{...s,size:t,value:n,setValue:a})}})};M.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:n}=t;return Array.from(n.values()).filter((t=>t.label.indexOf(e)>-1))},dataFormat:(e,t)=>{const n=(e,a)=>{const l=[];return l.push(...(e||[]).map((e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...n(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:a}))))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const a=t=>t.map((t=>t.id===e?Object.assign({},t,{children:n&&n.map((t=>Object.assign({},t,{parentId:e})))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:a(t.children)}):t));return a(t)}};const T=M},41654:(e,t,n)=>{n.d(t,{A:()=>m,K:()=>p});var a=n(45776),l=n(27047),s=n(33097),r=n.n(s),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c=()=>n.e(719).then(n.t.bind(n,10719,19)).then((e=>e.__esModule?e.default:e)),d={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:c},u=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,a.ON)(new Map(t.map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},c.functionData)})};u.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},u.defaultData=c;const p=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.yK,{...n,...c.functionData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};u.FunctionEnum=u.Enum=p;const m=u},53392:(e,t,n)=>{n.d(t,{A:()=>p,W:()=>u});var a=n(45776),l=n(27047),s=n(33097),r=n.n(s),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7183).then(n.t.bind(n,57183,19)).then((e=>e.__esModule?e.default:e))},d=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,a.ON)(new Map(t.filter((e=>"000"!==e.code)).map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},d.industryData)})};d.defaultProps={overlayWidth:"635px"};const u=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.yK,{...n,...d.industryData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};d.IndustryEnum=d.Enum=u;const p=d},26475:(e,t,n)=>{n.d(t,{A:()=>_});var a=n(73884),l=n(55199),s=n(96418),r=n.n(s),o=n(17342),i=n(83136),c=n.n(i),d=n(51941);const u="style_scroller-no-more__EH2J+__SCBFp";var p=n(70579);const m=e=>{let{getScrollerRef:t,loadMore:n,maxFullCount:l}=e;const s=r()(n),o=r()(t);return(0,a.useEffect)((()=>{let e=l;const t=o(),n=async()=>{t.clientHeight===t.scrollHeight&&e>0&&(await s().then((()=>new Promise((e=>{setTimeout(e,500)})))),e--,await n())};n()}),[l,s,o]),null},h=(0,a.forwardRef)(((e,t)=>{let{className:n,noMore:s,onLoader:i,isLoading:h,completeTips:_,maxFullCount:g,children:f}=e;const x=(0,a.useRef)(),C=r()(i),y=(0,a.useRef)(!s&&!h);y.current=!s&&!h,(0,a.useImperativeHandle)(t,(()=>x.current),[]);const v=(0,d.useThrottledCallback)((e=>{const t=e.target;y.current&&t.clientHeight+t.scrollTop+20>t.scrollHeight&&C()}),100);return(0,p.jsxs)(o.A,{className:c()("load-container",n),scrollableNodeProps:{ref:x,onScroll:v},children:[!h&&!s&&(0,p.jsx)(m,{maxFullCount:g,getScrollerRef:()=>x.current,loadMore:C}),(0,p.jsxs)(l.Space,{direction:"vertical",children:[(0,p.jsx)("div",{children:f}),h?(0,p.jsx)("div",{className:u,children:(0,p.jsx)(l.Spin,{size:"small"})}):null,s&&_?(0,p.jsx)("div",{className:u,children:_}):null]})]})}));h.defaultProps={maxFullCount:3,completeTips:"\u52a0\u8f7d\u5b8c\u6210"};const _=h},73161:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(55199),l=n(83136),s=n.n(l);const r="style_search-input__8aH1G__SCBFp",o="style_is-popup__L0973__SCBFp";var i=n(64671),c=n(73884),d=n(51941),u=n(70579);const p=e=>{let{value:t,debounce:n,onSearch:l,isPopup:p,placeholder:m,className:h,..._}=e;const[g,f]=(0,c.useState)(t),x=(0,c.useRef)(t),C=(0,d.useDebouncedCallback)(l,n);return(0,c.useEffect)((()=>{t!==x.current&&(f(t),x.current=t)}),[t]),(0,u.jsx)(a.Input.Search,{..._,allowClear:!0,className:s()(h,r,{[o]:p}),value:g,placeholder:m,prefix:(0,u.jsx)(i.default,{type:"icon-sousuo"}),enterButton:(0,u.jsx)(i.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;x.current=t,f(t),C(t)},onSearch:e=>{C(e)}})};p.defaultProps={debounce:500};const m=p},30509:(e,t,n)=>{n.d(t,{A:()=>W});const a={"ant-tag":"style_ant-tag__nNp8-__SCBFp",overlay:"style_overlay__La5mO__SCBFp",input:"style_input__SpJTE__SCBFp","is-disabled":"style_is-disabled__joxdl__SCBFp","input-icon":"style_input-icon__vVd8R__SCBFp",large:"style_large__En6mL__SCBFp",small:"style_small__DY0AQ__SCBFp","input-inner":"style_input-inner__PWy27__SCBFp","input-custom":"style_input-custom__ktsWD__SCBFp","display-content":"style_display-content__hIKo+__SCBFp","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__SCBFp","selected-tag":"style_selected-tag__zXZZO__SCBFp","selected-tag-list":"style_selected-tag-list__xUIms__SCBFp","selected-tag-inner":"style_selected-tag-inner__Z5gPL__SCBFp","text-inner":"style_text-inner__H24hY__SCBFp",placeholder:"style_placeholder__x0ccE__SCBFp","is-modal":"style_is-modal__JU+uq__SCBFp","overlay-content":"style_overlay-content__WKqp+__SCBFp"};var l=n(74981);const{context:s,useContext:r,Provider:o,Consumer:i}=(0,l.A)();var c=n(73884),d=n(10986),u=n.n(d),p=n(87558),m=n(33097),h=n.n(m),_=n(55199),g=n(83136),f=n.n(g),x=n(3382),C=n(64671),y=n(79686),v=n.n(y),S=n(41740),j=n.n(S),b=n(74065),A=n.n(b),N=n(21485),F=n(96418),w=n.n(F),B=n(77964),O=n(91176),P=n(58609),I=n(20492),L=n(27047),k=n(70579);const M=e=>{let{maxLength:t,single:n,setValue:a,value:l,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s(),l):e)},T=e=>{let{single:t,value:n,mapping:l,allValue:s,allLabel:r,onClose:o}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,k.jsx)("span",{className:a["text-inner"],children:h()(l.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(s||"all")?(0,k.jsx)("span",{className:a["text-inner"],children:r||(0,k.jsx)(P.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map((e=>{const t=l.get(e);return(0,k.jsx)(_.Tag,{className:a["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,k.jsx)("span",{className:a["tag-inner"],children:h()(t,"label")||e})},e)})):null},R=(0,c.forwardRef)(((e,t)=>{let{value:n,onChange:l,extra:s,showSelectedTag:r,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n),{formatMessage:h}=(0,P.useIntl)({moduleName:"Common"});m.current=n;const[g,f]=(0,c.useState)(!1),C=e=>{var t;f(e),null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},{message:y}=_.App.useApp(),v=M({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:()=>y.error(h({id:"maxSelectedCount"},{count:d.maxLength}))});return(0,c.useEffect)((()=>{g&&p(m.current)}),[g]),(0,c.useImperativeHandle)(t,(()=>({modalOpen:()=>{C(!0)},close:()=>{C(!1)}}))),(0,k.jsx)(x.default,{...d,open:g,onConfirm:()=>{l(u)},onClose:()=>{C(!1)},footer:(0,k.jsxs)(_.Space,{direction:"vertical",className:a["overlay-footer"],children:[s&&(0,k.jsx)("div",{className:a["overlay-footer-extra"],children:s}),r&&o({value:u,setValue:v})]}),children:"function"===typeof i?i({value:u,setValue:v}):i})})),D=(0,c.forwardRef)(((e,t)=>{let{value:n,setValue:l,children:s,renderSelectedContent:r,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,overlayClassName:g,disabled:x,...C}=e;const[y,v]=(0,c.useState)(!1),S=w()((e=>{var t;v(e),null===(t=C.onOpenChange)||void 0===t||t.call(C,e)}));return(0,c.useImperativeHandle)(t,(()=>({close:()=>{S(!1)}})),[S]),x?(0,k.jsx)("div",{className:a["input-inner"],children:d}):(0,k.jsx)(_.Popover,{...C,open:y,onOpenChange:S,transitionName:"ant-slide-up",overlayClassName:f()(a.overlay,g),arrow:!1,content:(0,k.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:f()(a["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,k.jsx)("div",{className:a["overlay-inner"],children:"function"===typeof s?s({value:n,setValue:e=>{(!u||n[0]!==e[0])&&l(e),u&&S(!1)}}):s}),(o||p)&&(0,k.jsxs)("div",{className:a["overlay-footer"],children:[p&&(0,k.jsx)("div",{className:a["overlay-footer-extra"],children:p}),o&&r({value:n,setValue:l})]})]}),trigger:"click",placement:i,children:(0,k.jsx)("div",{className:a["input-inner"],children:d})})})),E=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:l,...s}=e;const[o,i]=(0,c.useState)(!1),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=r(),{valueState:m,mapping:h,props:g,inputWidth:x}=p,[y,v]=m,{formatMessage:S}=(0,P.useIntl)({moduleName:"Common"}),{single:j,placement:b,getPopupContainer:A,placeholder:F,isPopup:B,disabled:I,showSelectedTag:L,extra:M,inputContent:E,allowClear:z,overlayClassName:V}=g,W=(0,c.useRef)(s);W.current=s;const U=w()(l);(0,c.useEffect)((()=>{U(B?u:d)}),[B,U]),(0,c.useEffect)((()=>{t(Object.assign({},W.current,{data:s.data,isComplete:s.isComplete}))}),[s.data,t,s.isComplete]);const $=T({single:j,value:y,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{v((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}}),K=e=>{let{value:t,setValue:n}=e;return(0,k.jsxs)(_.Space,{className:a["selected-tag"],align:"center",wrap:!1,children:[(0,k.jsxs)("div",{children:[(0,k.jsx)(P.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,k.jsx)(N.A,{className:a["selected-tag-list"],children:(0,k.jsx)("div",{className:a["selected-tag-inner"],children:T({value:t,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}})})})]})},q=E?E(p):(0,k.jsxs)(_.Space,{className:a["display-content"],onMouseOver:()=>{i(!0)},onMouseOut:()=>{i(!1)},children:[(0,k.jsx)("div",{children:$||(0,k.jsx)("span",{className:a.placeholder,children:F||S({id:"pleaseSelect"})})}),o&&y&&y.length>0&&!I&&z?(0,k.jsx)(C.default,{className:f()(a.close,a["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),v([])}}):(0,k.jsx)(C.default,{className:f()(a["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return B?(0,k.jsx)(D,{ref:u,overlayWidth:(0,O.v)(Math.max(x,(0,O.j)(g.overlayWidth))),value:y,setValue:v,single:j,disabled:I,inputContent:q,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof M?M({close:()=>u.current.close(),context:p}):M,renderSelectedContent:K,showSelectedTag:L,trigger:"click",placement:b,getPopupContainer:A,children:g.children}):(0,k.jsxs)("div",{className:a["input-inner"],onClick:()=>{I||d.current.modalOpen()},children:[(0,k.jsx)(R,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:f()(a.overlay,a["is-modal"],n),title:g.placeholder||S({id:"pleaseSelect"}),value:y,onChange:v,extra:"function"===typeof M?M({close:()=>d.current.close(),context:p}):M,showSelectedTag:L,renderSelectedContent:K,children:g.children}),q]})})),z=e=>{let{api:t,className:n,displayItems:l,wrapClassName:s,...r}=e;const{locale:i}=(0,L.A)(),[d,p]=(0,c.useState)(""),[m,g]=(0,c.useState)(new Map(l.map((e=>[e.value,e])))),{formatMessage:x}=(0,P.useIntl)({moduleName:"Common"}),[C,y]=(0,c.useState)(0),S=(0,B.A)((e=>{y(e.clientWidth)})),[b,N]=(0,c.useState)({}),{message:F}=_.App.useApp(),w=e=>{const t=e.filter((e=>m.get(e.value)!==e));0!==t.length&&g((e=>{const n=j()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},O=e=>((e,t)=>Array.isArray(e)&&e.every((e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label")))?(t(e),e.map((e=>e.value))):e)(r.single?v()(e)?[]:[e]:e||[],w,r.valueType),[I,T]=u()(Object.assign({},r,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map((e=>t.get(e))).filter((e=>!!e)))(e,m,r.valueType);r.onChange&&r.onChange(r.single?A()(t):t)}},"value"in r?{value:O(r.value)}:{defaultValue:O(r.defaultValue)})),R=M({maxLength:r.maxLength,single:r.single,setValue:T,value:I,message:()=>F.error(x({id:"maxSelectedCount"},{count:r.maxLength}))}),D=(0,c.useRef)(null);return(0,k.jsx)(o,{value:{inputWidth:C,mapping:m,searchText:d,setSearchText:p,appendMapping:w,setItems:e=>{b.setData(e),w(h()(r.dataFormat(e,{locale:i}),"list",[]))},getContentApi:()=>D.current,fetchApi:b,valueState:[I,R],props:r},children:(0,k.jsx)("div",{ref:S,className:f()(a["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],{"select-input-disabled":!!r.disabled},n),children:(0,k.jsx)(E,{...t,wrapClassName:s,loading:null,setFetchApi:N,getContentRef:e=>{e.current&&(D.current=e.current)},onRequestSuccess:e=>{w(h()(r.dataFormat(e,{locale:i}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};z.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const V=(0,P.createWithIntl)({importMessages:I.A,moduleName:"Common"})(z);V.useContext=r;const W=V},17342:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(8762),l=n.n(a);n(46733);const s=l()},21485:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(73884),l=n(44418),s=n.n(l),r=n(96418),o=n.n(r),i=n(70579);const c=(0,a.forwardRef)(((e,t)=>{let{children:n,onScroll:l,options:r,onReady:c,...d}=e;const u=(0,a.useRef)(null),p=(0,a.useRef)(null),m=(0,a.useRef)(r),h=o()(c),_=o()(l);return(0,a.useImperativeHandle)(t,(()=>p.current)),(0,a.useEffect)((()=>{const e=new(s())(u.current,m.current);return p.current=e.getScrollElement(),p.current.addEventListener("scroll",_),h(p.current),()=>{p.current.removeEventListener("scroll",_)}}),[_,h,n]),(0,i.jsx)("div",{...d,ref:u,children:n})}))},89319:(e,t,n)=>{n.d(t,{A:()=>u});var a=n(55199),l=n(10986),s=n.n(l),r=n(57469),o=n.n(r),i=n(20492),c=n(58609),d=n(70579);const u=(0,c.createWithIntl)({importMessages:i.A,moduleName:"Common"})((e=>{let{...t}=e;const{formatMessage:n}=(0,c.useIntl)({moduleName:"Common"}),l=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[r,i]=s()(t);return(0,d.jsxs)(a.Space.Compact,{children:[(0,d.jsx)(a.Select,{style:{width:"120px"},value:(null===r||void 0===r?void 0:r.type)||"date",onChange:e=>{i((t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[o()(t.value[0]).startOf(e||"date"),o()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}}))},options:Array.from(l).map((e=>{let[t,n]=e;return{label:n,value:t}}))}),(0,d.jsx)(a.DatePicker.RangePicker,{...t,picker:(null===r||void 0===r?void 0:r.type)||"date",value:Array.isArray(null===r||void 0===r?void 0:r.value)&&2===r.value.length&&r.value.map((e=>e&&o()(e))),onChange:e=>{i((t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]}))))}})]})}))},20492:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(3086).then(n.bind(n,13086)),"zh-CN":()=>n.e(4308).then(n.bind(n,84308))}[e]())},29574:(e,t,n)=>{n.d(t,{Zi:()=>_,FI:()=>g,AG:()=>f,Ay:()=>C,lN:()=>x});const a="style_input-file__3JGm6__SCBFp",l="style_input-file-input__Fb5iw__SCBFp";var s=n(83136),r=n.n(s),o=n(73884),i=n(55199),c=n(63908),d=n(28987),u=n(80111),p=n.n(u),m=n(70579);const h=e=>t=>{let{className:n,accept:s,multiple:i,onChange:c,children:d,...u}=t;const p=(0,o.useRef)(null);return(0,m.jsxs)(e,{...u,className:r()(n,a),children:[d,!0!==u.disabled&&(0,m.jsx)("input",{ref:p,type:"file",accept:s,multiple:i,className:l,onChange:e=>{const t=[].slice.call(e.target.files,0);0!==t.length&&(p.current.setAttribute("type","text"),p.current.setAttribute("type","file"),c(t))}})]})},_=h(i.Button),g=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(i.Typography.Link,{...n,className:t})})),f=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(i.Typography.Text,{...n,className:r()("ant-btn",t)})})),x=e=>{const{message:t}=i.App.useApp(),{multiple:n,fileSize:a,maxLength:l,value:s,concurrentCount:r,onAdd:u,onError:m,onSave:h,onChange:_,ossUpload:g}=Object.assign({},{concurrentCount:1,value:[]},e),{apis:f}=(0,c.usePreset)(),[x,C]=(0,o.useState)([]),y=(0,o.useRef)(r),v=(0,o.useMemo)((()=>(0,d.A)(y.current)),[]);return{fileList:x,onFileSelected:async e=>{const r=l-s.length;1!==l&&!0===n&&e.length>r?t.error(`\u4e0a\u4f20\u6587\u4ef6\u4e0d\u80fd\u8d85\u8fc7\u6700\u5927\u5141\u8bb8\u6570\u91cf${l}`):await Promise.allSettled(e.map((async e=>{if(e.size>1024*a*1024)return void t.error(`\u6587\u4ef6${e.name}\u4e0d\u80fd\u8d85\u8fc7${a}MB!`);const s=p()(),r=n=>{const a=n.message||`\u6587\u4ef6${e.name}\u4e0a\u4f20\u9519\u8bef${n.message?":"+n.message:""}`;t.error(a),m&&m({file:e,error:n,errMsg:a}),C((e=>{const t=e.slice(0),n=t.findIndex((e=>e.uuid===s));return n>-1&&t.splice(n,1),t}))};try{C(1===l||!0!==n?[{uuid:s,type:"uploading",filename:e.name}]:t=>{const n=t.slice(0);return n.unshift({uuid:s,type:"uploading",filename:e.name}),n}),u&&await Promise.resolve(u(e));const t=g||f.ossUpload,{data:a}=await v((()=>t({file:e})));if(0!==a.code)return void r(new Error(`\u6587\u4ef6${e.name}\u4e0a\u4f20\u5f02\u5e38${a.msg?":"+a.msg:""}`));const o=h?await Promise.resolve(h(a,e,s)):{filename:a.data.originalName||a.data.filename||e.name,id:a.data.id,ossId:a.data.id,uuid:s};C((e=>{const t=e.slice(0),n=t.findIndex((e=>e.uuid===s));return n>-1&&t.splice(n,1),t})),_(1===l||!0!==n?[o]:e=>{const t=e.slice(0);return t.push(o),t})}catch(o){r(o)}})))}}},C=h},97211:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(87558),l=n.n(a),s=n(63908),r=n(34677),o=n.n(r),i=n(70579);const c=e=>{const t=t=>{let{id:n,url:a,error:r,apis:c,loading:d,...u}=t;const{apis:p}=(0,s.usePreset)(),m=o()({},p,c);if(!n)return null;if(!m.oss)throw new Error("\u8bf7\u5728Global\u7ec4\u4ef6\u8bbe\u7f6epreset.apis.oss\u53c2\u6570");const{paramsType:h,paramsName:_,...g}=Object.assign({paramsType:"params",paramsName:"id"},m.oss),f={};return f[h]={[_]:n},(0,i.jsx)(l(),{...Object.assign({},g,f),updateType:"refresh",error:r,loading:d,cache:"oss-file",ttl:6e6,render:t=>{let{data:a}=t;return(0,i.jsx)(e,{...u,id:n,data:a})}})};return t.defaultProps={loading:null},t}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(83694),l=n(33097),s=n.n(l);const r=()=>{const e=(0,a.useGlobalContext)();return s()(e,"preset",{apis:{}})}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(73884),l=n(79889),s=n.n(l),r=n(93950),o=n.n(r),i=n(96418),c=n.n(i);const d=(e,t)=>{const n=(0,a.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,a.useRef)(null),r=c()(e);return(0,a.useLayoutEffect)((()=>{const e=l.current,t=()=>window.requestAnimationFrame((()=>{e&&r(e)}));t();const a=new ResizeObserver((n.current.isDebounce?o():s())(t,n.current.time));return e&&a.observe(e),()=>{a.disconnect()}}),[r]),l}},81348:(e,t,n)=>{n.d(t,{A:()=>a});const a=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),a=e.name||"",l=(e.type||"").toLowerCase(),s=l.replace(/\/.*$/,"");return n.some((e=>{const t=e.trim().toLowerCase();return"."===t.charAt(0)?a.toLowerCase().endsWith(t):t.endsWith("/*")?s===t.replace(/\/.*$/,""):l===t}))}return!0}},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>a});const a=1e15,l=e=>{let t,n,l,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=a)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(l=e.split("."),t=l[0],n=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let a=0;a<n;a++){let l=t.substr(a,1),i=n-a-1,d=i/4,u=i%4;"0"===l?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(l)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},74981:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,a.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,a.useContext)(t)}}},28987:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>{const t=[];let n=0;const a=()=>{if(0!==t.length){if(n<e){const e=t.shift();n+=1,e().finally((()=>{n-=1,a()}))}}else n=0};return e=>new Promise((n=>{t.push((()=>{const t=Promise.resolve().then((()=>e()));return n(t),t})),a()}))}},55490:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(12322),l=n.n(a),s=n(26727),r=n.n(s),o=n(54052),i=n.n(o);const c=e=>{if(l()(e)){const t=r()(e);return t.length>0&&t.some((e=>c(e)))}return i()(e)?e.length>0&&e.some((e=>c(e))):"number"===typeof e?!isNaN(e):!(void 0===e||null===e||""===e||0===e.length)},d=c},91176:(e,t,n)=>{n.d(t,{j:()=>l,v:()=>a});const a=e=>"number"===typeof e?`${e}px`:e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},36:(e,t,n)=>{n.r(t),n.d(t,{AddressEnum:()=>h.qn,AddressInputField:()=>h.TM,AddressSelectField:()=>h.Ay,AdvancedSelectField:()=>_.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>m.Zi,InputFileLink:()=>m.FI,InputFileText:()=>m.AG,ScrollLoader:()=>o.A,SearchInput:()=>u.A,SelectInnerInput:()=>p.A,SimpleBar:()=>d.A,SimpleBarBox:()=>c.A,TableField:()=>_.Bm,TypeDateRangePickerField:()=>C.A,UserField:()=>_.Eo,accept:()=>v.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>h.LH,createDeferred:()=>S.A,createListField:()=>_.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>j.A,numberToPx:()=>b.v,pxToNumber:()=>b.j,useFileUpload:()=>m.lN,useResize:()=>y.A,withAddressApi:()=>h.DF,withInputFile:()=>m.Ay,withOSSFile:()=>r.A});var a=n(69484),l=n(76801);const s=e=>{const t=e=>{const n=(0,l.h)();if(!e||e===n||!e.parentElement)return n;return[].slice.call(e.classList,0).find((e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1))?e:t(e.parentElement)};return t(e)};var r=n(97211),o=n(26475),i=n(73025),c=n(21485),d=n(17342),u=n(73161),p=n(30509),m=n(29574),h=n(93761),_=n(12392),g=n(45776),f=n(41654),x=n(53392),C=n(89319),y=n(77964),v=n(81348),S=n(28987),j=n(55490),b=n(91176)},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(87558),l=n.n(a),s=n(97211),r=n(64671),o=n(83136),i=n.n(o),c=n(55199),d=n(73884);const u=e=>{let{params:t}=e;const{data:n}=t;return new Promise(((e,t)=>{const a=new window.Image;a.src=n,a.addEventListener("load",(()=>{e(n)})),a.addEventListener("error",(e=>{t(e)}))}))},p="style_img-outer__4QLY5__SCBFp",m="style_img__PSExq__SCBFp",h="style_loading__WCOwA__SCBFp",_="style_error__+ECgZ__SCBFp";var g=n(18411),f=n(63908),x=n(70579);const C=e=>{let{data:t,className:n,alt:a,innerLoading:s,loading:r,error:o,innerError:c,children:d,onClick:p,staticUrl:h}=e;const{staticUrl:_}=(0,f.usePreset)(),g=h||_||"";return(0,x.jsx)(l(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:g+t},error:c||o,loading:s||r,render:e=>{let{data:t}=e;return"function"===typeof d?d({alt:a,className:i()(n,m),src:t}):(0,x.jsx)("img",{alt:a,className:i()(n,m),src:t,onClick:p})}})},y=(0,s.A)(C),v=e=>{let{loading:t,error:n,src:a,id:l,alt:s,className:r,children:o,apis:i,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:h}),p=n&&(0,d.cloneElement)(n,{className:_});return a?(0,x.jsx)(C,{alt:s,className:r,data:a,loading:u,error:p,onClick:c,children:o}):l?(0,x.jsx)(y,{alt:s,className:r,id:l,loading:u,innerLoading:u,error:p,innerError:p,apis:i,onClick:c,children:o}):p},S=e=>{let{id:t,src:n,alt:a,onClick:l,loading:s,error:r,className:o,apis:c,...d}=e;return(0,x.jsx)("div",{...d,"data-testid":"components-core-image",className:i()(o,p),children:v({loading:s,error:r,src:n,id:t,alt:a,className:o,apis:c,onClick:l})})};S.Avatar=e=>{let{id:t,src:n,alt:a,gender:l,loading:s,error:o,className:d,gap:u,icon:m,children:h,shape:_,size:g,width:f,height:C,defaultAvatar:y,apis:S,...j}=e;const b=(()=>{const e=f&&C?{style:{width:f,height:C}}:{size:g};if(f&&f!==C&&(_="square"),t||n)return v({loading:s,error:o,src:n,defaultAvatar:y,id:t,alt:a,className:d,apis:S,children:t=>(0,x.jsx)(c.Avatar,{...t,gap:u,shape:_,...e})});if(l){const t=l&&["F","female","f"].indexOf(l)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,x.jsx)(c.Avatar,{...j,src:(0,x.jsx)(r.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:_,...e})}return(0,x.jsx)(c.Avatar,{...j,gap:u,icon:m,shape:_,size:g,src:y,...e,children:h})})();return(0,x.jsx)("div",{...j,"data-testid":"components-core-image-avatar",className:i()(d,p),style:{width:f&&C?f:g,height:f&&C?C:g},children:b})};const j={error:(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0})};S.defaultProps=Object.assign({},j),S.Avatar.defaultProps=Object.assign({},j,{size:100,defaultAvatar:g.A});const b=S},3382:(e,t,n)=>{n.r(t),n.d(t,{ModalButton:()=>I,TabsModal:()=>w,TabsModalButton:()=>P,default:()=>N,useConfirmModal:()=>A,useModal:()=>b,useTabsModal:()=>B});var a=n(73884),l=n(55199),s=n(83136),r=n.n(s);const o={modal:"style_modal__Pm3cF__SCBFp",large:"style_large__iaqVE__SCBFp","modal-body-inner":"style_modal-body-inner__4PhpA__SCBFp","modal-title":"style_modal-title__dswaw__SCBFp","modal-outer":"style_modal-outer__r3SkX__SCBFp","modal-body":"style_modal-body__jQJSI__SCBFp","right-options-modal":"style_right-options-modal__FajDP__SCBFp","right-options-row":"style_right-options-row__-mPb9__SCBFp","right-options-col":"style_right-options-col__3ilee__SCBFp","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__SCBFp",content:"style_content__k6MIF__SCBFp","modal-footer":"style_modal-footer__-prbN__SCBFp","modal-close":"style_modal-close__Oa5Kl__SCBFp","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__SCBFp","is-danger":"style_is-danger__H5110__SCBFp",title:"style_title__orTym__SCBFp","has-title":"style_has-title__qy0Wp__SCBFp"},i=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var p=n(81014),m=n(17342),h=n(70579);const _="Modal",g=e=>{let{options:t,rightSpan:n=6,children:a}=e;return t?(0,h.jsxs)(l.Row,{wrap:!1,className:o["right-options-row"],children:[(0,h.jsx)(l.Col,{span:24-n,className:o["right-options-col"],children:a}),(0,h.jsx)(l.Col,{span:n,className:o["right-options-col"],children:t})]}):a},f=(e,t)=>e-48-(t?58:0)+"px",x=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":f(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":f(300,t)}}:{width:"1000px",style:{"--min-modal-height":f(500,t)}},C=e=>{let{footer:t,footerButtons:n,onConfirm:s,onCancel:r,onClose:o,targetProps:d}=e;return(0,h.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(l.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,h.jsx)(l.Col,{children:(0,h.jsx)(l.Space,{children:(n||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:r},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:_})}),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,t)=>{let{ButtonComponent:n,onClick:l,autoClose:s=!0,display:r,...i}=e;const c=n||p.default;return(0,a.createElement)(c,{...i,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=await Promise.resolve(l&&l(...t,d));return s&&!1!==a&&o&&o(),a}})}))})})]})},y=e=>{let{title:t,footer:n,disabledScroller:s,footerButtons:i,onClose:c,closable:u,onConfirm:p,onCancel:_,children:g,targetProps:f}=e;const x=(0,a.useRef)(null);return(0,h.jsxs)("div",{className:o["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:o["modal-close"],type:"text",icon:(0,h.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,h.jsx)("div",{className:o["modal-title"],children:t}),(0,h.jsx)(m.A,{className:r()(o["modal-body"],{[o["is-disabled-scroller"]]:s},"modal-body"),ref:x,children:(0,h.jsx)("div",{className:r()(o["modal-body-inner"],"modal-body-inner"),children:g})}),null!==n||i?(0,h.jsx)("div",{className:r()(o["modal-footer"],"modal-footer"),children:(0,h.jsx)(C,{footer:n,footerButtons:i,onConfirm:p,onCancel:_,onClose:c,targetProps:f})}):null]})},v=e=>{let{withDecorator:t,footerButtons:n,title:a,closable:l,onClose:s,onConfirm:r,onCancel:o,footer:i,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:m,children:_}=e;const f=e=>(e=Object.assign({},{title:a},e),(0,h.jsx)(y,{title:u(e.title,{...e,childrenRef:m,close:s}),closable:l,onClose:s,onConfirm:r,onCancel:o,footerButtons:u(n,{...e,close:s}),disabledScroller:p,footer:u(i,{...e,childrenRef:m,close:s}),targetProps:Object.assign({},e,{childrenRef:m,close:s}),children:(0,h.jsx)(g,{rightSpan:d,options:u(c,{...e,childrenRef:m,close:s}),children:u(_,{...e,childrenRef:m,close:s})})}));return"function"===typeof t?t(f):f({})},S=e=>{let{children:t,rightOptions:n,rightSpan:a,footer:l,footerButtons:s,className:d,size:u,title:p,onClose:m,onConfirm:_,onCancel:g,closable:f,disabledScroller:C,withDecorator:y,childrenRef:S,...j}=e;return{...j,icon:null,centered:!0,title:null,maskClosable:!!j.hasOwnProperty("maskClosable")&&j.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:r()(d,o.modal,o[u],{[o["right-options-modal"]]:n}),...x(u,!(null===l&&!s)),children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:"Modal",children:v({withDecorator:y,title:p,closable:f,onClose:m,onConfirm:_,onCancel:g,footer:l,footerButtons:s,rightOptions:n,rightSpan:a,disabledScroller:C,children:t,childrenRef:S})})}},j=e=>{const t=(0,a.useRef)(null);return(0,h.jsx)(l.Modal,{...S(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const b=()=>{const{modal:e}=l.App.useApp(),t=(0,a.useRef)(null);return n=>{const a={},{children:l,...s}=S({onClose:()=>a.close(),childrenRef:t,...n}),{destroy:r}=e.info({...s,content:l});return a.close=r,a}},A=()=>{const{modal:e}=l.App.useApp();return t=>{const n={},{type:a,icon:s,title:i,danger:c,wrapClassName:u,message:p,iconSetting:m={},confirmType:_="info",...g}={onClose:()=>n.close(),maskClosable:!1,...t},f=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},m);if(e[a]){const{destroy:t}=e[a]({...g,icon:null,wrapClassName:r()(o["confirm-modal-wrap"],u,{[o["is-danger"]]:c}),title:(0,h.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:i&&(0,h.jsxs)(l.Space,{size:0,align:"start",className:o.title,children:[c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||f["confirm"===a?_:a]}):null,i]})}),content:(0,h.jsxs)(l.Space,{size:0,align:"start",className:r()(o.content,{[o["has-title"]]:i}),children:[!i&&c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||f["confirm"===a?_:a]}):null,p]})});n.close=t}return n}},N=j,F=e=>{let{items:t,className:n,activeKey:a,withDecorator:s,defaultActiveKey:o,onChange:i,...c}=e;return{...c,className:r()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,h.jsx)(l.Tabs,{items:t.map((t=>{let{withDecorator:a,...l}=t;return Object.assign({},l,{children:"function"===typeof a?a((t=>e(Object.assign({},n,t,{children:l.children})))):e(Object.assign({},n,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:a,defaultActiveKey:o,onChange:i});return"function"===typeof s?s(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},w=e=>(0,h.jsx)(N,{...F(e)}),B=()=>{const e=b();return t=>e(F(t))};var O=n(73025);const P=e=>{const t=B();return e.api?(0,h.jsx)(O.A,{...e,modalFunc:t}):(0,h.jsx)(l.Button,{...e,onClick:()=>{t(e.modalProps)}})},I=e=>{const t=b();if(!e.api){const{modalProps:n,...a}=e;return(0,h.jsx)(l.Button,{...a,onClick:()=>{t(n)}})}return(0,h.jsx)(O.A,{...e,modalFunc:t})}},25438:(e,t,n)=>{n.d(t,{A:()=>a});const a={"search-input":"common_search-input__P6qLg__SCBFp","is-popup":"common_is-popup__fJq+g__SCBFp",list:"common_list__TKFzS__SCBFp","list-item":"common_list-item__ASse7__SCBFp","is-selected":"common_is-selected__-PU4Y__SCBFp","item-label":"common_item-label__u+qz1__SCBFp","item-des":"common_item-des__no2z0__SCBFp"}}}]);
|
|
2
|
-
//# sourceMappingURL=7655.e56958cf.chunk.js.map
|