@kne-components/components-core 0.2.45 → 0.2.47
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 +110 -110
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.63379fa1.chunk.css +2 -0
- package/build/static/css/{1151.309b6798.chunk.css.map → 1151.63379fa1.chunk.css.map} +1 -1
- package/build/static/css/1153.4be9443f.chunk.css +2 -0
- package/build/static/css/{1153.bb512942.chunk.css.map → 1153.4be9443f.chunk.css.map} +1 -1
- package/build/static/css/1554.324f37d3.chunk.css +2 -0
- package/build/static/css/{1554.29f055a4.chunk.css.map → 1554.324f37d3.chunk.css.map} +1 -1
- package/build/static/css/{2503.e9a4ba13.chunk.css → 2503.5fe9d3b4.chunk.css} +2 -2
- package/build/static/css/{2503.e9a4ba13.chunk.css.map → 2503.5fe9d3b4.chunk.css.map} +1 -1
- package/build/static/css/{2517.10708505.chunk.css → 2517.438363ca.chunk.css} +2 -2
- package/build/static/css/{2517.10708505.chunk.css.map → 2517.438363ca.chunk.css.map} +1 -1
- package/build/static/css/2716.e41ac5f8.chunk.css +2 -0
- package/build/static/css/{2716.3360c5d0.chunk.css.map → 2716.e41ac5f8.chunk.css.map} +1 -1
- package/build/static/css/{2730.7e38e5c5.chunk.css → 2730.3502fcad.chunk.css} +2 -2
- package/build/static/css/{2730.7e38e5c5.chunk.css.map → 2730.3502fcad.chunk.css.map} +1 -1
- package/build/static/css/{3142.49a2c712.chunk.css → 3142.6ad58342.chunk.css} +2 -2
- package/build/static/css/{3142.49a2c712.chunk.css.map → 3142.6ad58342.chunk.css.map} +1 -1
- package/build/static/css/4029.73c43ace.chunk.css +2 -0
- package/build/static/css/{4029.f20b44ba.chunk.css.map → 4029.73c43ace.chunk.css.map} +1 -1
- package/build/static/css/4265.04b5e769.chunk.css +2 -0
- package/build/static/css/{4265.662e02b9.chunk.css.map → 4265.04b5e769.chunk.css.map} +1 -1
- package/build/static/css/4666.1935941f.chunk.css +2 -0
- package/build/static/css/{4666.837bc3de.chunk.css.map → 4666.1935941f.chunk.css.map} +1 -1
- package/build/static/css/5443.e0dc4e1c.chunk.css +2 -0
- package/build/static/css/{5443.c91b99b6.chunk.css.map → 5443.e0dc4e1c.chunk.css.map} +1 -1
- package/build/static/css/5600.0b8587ed.chunk.css +2 -0
- package/build/static/css/{5600.eb7e2006.chunk.css.map → 5600.0b8587ed.chunk.css.map} +1 -1
- package/build/static/css/5962.9f6a0bf5.chunk.css +2 -0
- package/build/static/css/{5962.484ef148.chunk.css.map → 5962.9f6a0bf5.chunk.css.map} +1 -1
- package/build/static/css/{5996.7ba28c98.chunk.css → 5996.cbc73c66.chunk.css} +2 -2
- package/build/static/css/{5996.7ba28c98.chunk.css.map → 5996.cbc73c66.chunk.css.map} +1 -1
- package/build/static/css/{6611.1c346e21.chunk.css → 6611.2eefbef4.chunk.css} +2 -2
- package/build/static/css/{6611.1c346e21.chunk.css.map → 6611.2eefbef4.chunk.css.map} +1 -1
- package/build/static/css/6779.54607c7a.chunk.css +2 -0
- package/build/static/css/{6779.391bd737.chunk.css.map → 6779.54607c7a.chunk.css.map} +1 -1
- package/build/static/css/6995.db6c75dc.chunk.css +2 -0
- package/build/static/css/{3799.2a21e7c9.chunk.css.map → 6995.db6c75dc.chunk.css.map} +1 -1
- package/build/static/css/7121.52bb9b7c.chunk.css +2 -0
- package/build/static/css/{7121.fa93d087.chunk.css.map → 7121.52bb9b7c.chunk.css.map} +1 -1
- package/build/static/css/7227.84b06d5b.chunk.css +2 -0
- package/build/static/css/{7227.146b5a30.chunk.css.map → 7227.84b06d5b.chunk.css.map} +1 -1
- package/build/static/css/8017.20448249.chunk.css +2 -0
- package/build/static/css/{8017.6e386c83.chunk.css.map → 8017.20448249.chunk.css.map} +1 -1
- package/build/static/css/8332.104c5be2.chunk.css +2 -0
- package/build/static/css/{8332.128b0697.chunk.css.map → 8332.104c5be2.chunk.css.map} +1 -1
- package/build/static/css/{8725.393f1b87.chunk.css → 8725.0e50b6ac.chunk.css} +2 -2
- package/build/static/css/{8725.393f1b87.chunk.css.map → 8725.0e50b6ac.chunk.css.map} +1 -1
- package/build/static/css/9968.1ebcd2e7.chunk.css +2 -0
- package/build/static/css/{9968.4b0ffef8.chunk.css.map → 9968.1ebcd2e7.chunk.css.map} +1 -1
- package/build/static/js/{1153.e689d5f2.chunk.js → 1153.675bc8ae.chunk.js} +3 -3
- package/build/static/js/{1153.e689d5f2.chunk.js.map → 1153.675bc8ae.chunk.js.map} +1 -1
- package/build/static/js/1554.121e8458.chunk.js +3 -0
- package/build/static/js/{1554.f7b48c44.chunk.js.map → 1554.121e8458.chunk.js.map} +1 -1
- package/build/static/js/2503.e6375248.chunk.js +2 -0
- package/build/static/js/{2503.a22e4254.chunk.js.map → 2503.e6375248.chunk.js.map} +1 -1
- package/build/static/js/2517.5e39e19f.chunk.js +2 -0
- package/build/static/js/2517.5e39e19f.chunk.js.map +1 -0
- package/build/static/js/2716.374831b4.chunk.js +3 -0
- package/build/static/js/{2716.496078cd.chunk.js.map → 2716.374831b4.chunk.js.map} +1 -1
- package/build/static/js/2730.6f5b6b4c.chunk.js +2 -0
- package/build/static/js/{2730.de4191a3.chunk.js.map → 2730.6f5b6b4c.chunk.js.map} +1 -1
- package/build/static/js/2814.f04cde6e.chunk.js +2 -0
- package/build/static/js/{2814.d29117fe.chunk.js.map → 2814.f04cde6e.chunk.js.map} +1 -1
- package/build/static/js/{3142.0dd0d70c.chunk.js → 3142.27379c28.chunk.js} +2 -2
- package/build/static/js/{3142.0dd0d70c.chunk.js.map → 3142.27379c28.chunk.js.map} +1 -1
- package/build/static/js/36.debb67c5.chunk.js +2 -0
- package/build/static/js/36.debb67c5.chunk.js.map +1 -0
- package/build/static/js/4029.178b87b0.chunk.js +2 -0
- package/build/static/js/4029.178b87b0.chunk.js.map +1 -0
- package/build/static/js/4265.ff2886bf.chunk.js +2 -0
- package/build/static/js/{4265.93e2bc34.chunk.js.map → 4265.ff2886bf.chunk.js.map} +1 -1
- package/build/static/js/{4666.e3cff340.chunk.js → 4666.005bd056.chunk.js} +3 -3
- package/build/static/js/{4666.e3cff340.chunk.js.map → 4666.005bd056.chunk.js.map} +1 -1
- package/build/static/js/5443.31a8afb9.chunk.js +2 -0
- package/build/static/js/{5443.3d05f7e0.chunk.js.map → 5443.31a8afb9.chunk.js.map} +1 -1
- package/build/static/js/5600.0c94d07c.chunk.js +2 -0
- package/build/static/js/5600.0c94d07c.chunk.js.map +1 -0
- package/build/static/js/5962.3b5ab583.chunk.js +2 -0
- package/build/static/js/{5962.a04e6aea.chunk.js.map → 5962.3b5ab583.chunk.js.map} +1 -1
- package/build/static/js/5996.093d22ad.chunk.js +2 -0
- package/build/static/js/{5996.7f3dce8b.chunk.js.map → 5996.093d22ad.chunk.js.map} +1 -1
- package/build/static/js/6611.870fd682.chunk.js +2 -0
- package/build/static/js/{6611.5beb4e84.chunk.js.map → 6611.870fd682.chunk.js.map} +1 -1
- package/build/static/js/6779.98e8a21a.chunk.js +2 -0
- package/build/static/js/6779.98e8a21a.chunk.js.map +1 -0
- package/build/static/js/6908.517174fe.chunk.js +3 -0
- package/build/static/js/6908.517174fe.chunk.js.map +1 -0
- package/build/static/js/6915.8b1e2ce7.chunk.js +2 -0
- package/build/static/js/{6915.fcc24f94.chunk.js.map → 6915.8b1e2ce7.chunk.js.map} +1 -1
- package/build/static/js/6995.68003e0b.chunk.js +2 -0
- package/build/static/js/6995.68003e0b.chunk.js.map +1 -0
- package/build/static/js/7121.d706a404.chunk.js +2 -0
- package/build/static/js/{7121.f7ae880f.chunk.js.map → 7121.d706a404.chunk.js.map} +1 -1
- package/build/static/js/7227.9da28a8a.chunk.js +3 -0
- package/build/static/js/{7227.9293f668.chunk.js.map → 7227.9da28a8a.chunk.js.map} +1 -1
- package/build/static/js/{7967.e2dcd35c.chunk.js → 7967.925349ae.chunk.js} +2 -2
- package/build/static/js/{7967.e2dcd35c.chunk.js.map → 7967.925349ae.chunk.js.map} +1 -1
- package/build/static/js/{8017.191e1d28.chunk.js → 8017.ffcfed39.chunk.js} +2 -2
- package/build/static/js/{8017.191e1d28.chunk.js.map → 8017.ffcfed39.chunk.js.map} +1 -1
- package/build/static/js/{8151.f292913d.chunk.js → 8151.3b57c961.chunk.js} +2 -2
- package/build/static/js/{8151.f292913d.chunk.js.map → 8151.3b57c961.chunk.js.map} +1 -1
- package/build/static/js/{8332.e456e1c8.chunk.js → 8332.09c1946e.chunk.js} +2 -2
- package/build/static/js/{8332.e456e1c8.chunk.js.map → 8332.09c1946e.chunk.js.map} +1 -1
- package/build/static/js/{8725.6f6702ee.chunk.js → 8725.dc2aacbc.chunk.js} +2 -2
- package/build/static/js/{8725.6f6702ee.chunk.js.map → 8725.dc2aacbc.chunk.js.map} +1 -1
- package/build/static/js/{9968.421ce14d.chunk.js → 9968.1b1eac03.chunk.js} +2 -2
- package/build/static/js/{9968.421ce14d.chunk.js.map → 9968.1b1eac03.chunk.js.map} +1 -1
- package/build/static/js/{main.e8c6576e.js → main.7a59c458.js} +2 -2
- package/build/static/js/{main.e8c6576e.js.map → main.7a59c458.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1151.309b6798.chunk.css +0 -2
- package/build/static/css/1153.bb512942.chunk.css +0 -2
- package/build/static/css/1554.29f055a4.chunk.css +0 -2
- package/build/static/css/2716.3360c5d0.chunk.css +0 -2
- package/build/static/css/3799.2a21e7c9.chunk.css +0 -2
- package/build/static/css/4029.f20b44ba.chunk.css +0 -2
- package/build/static/css/4265.662e02b9.chunk.css +0 -2
- package/build/static/css/4666.837bc3de.chunk.css +0 -2
- package/build/static/css/5443.c91b99b6.chunk.css +0 -2
- package/build/static/css/5600.eb7e2006.chunk.css +0 -2
- package/build/static/css/5962.484ef148.chunk.css +0 -2
- package/build/static/css/6779.391bd737.chunk.css +0 -2
- package/build/static/css/7121.fa93d087.chunk.css +0 -2
- package/build/static/css/7227.146b5a30.chunk.css +0 -2
- package/build/static/css/8017.6e386c83.chunk.css +0 -2
- package/build/static/css/8332.128b0697.chunk.css +0 -2
- package/build/static/css/9968.4b0ffef8.chunk.css +0 -2
- package/build/static/js/1554.f7b48c44.chunk.js +0 -3
- package/build/static/js/2503.a22e4254.chunk.js +0 -2
- package/build/static/js/2517.57862bdb.chunk.js +0 -2
- package/build/static/js/2517.57862bdb.chunk.js.map +0 -1
- package/build/static/js/2716.496078cd.chunk.js +0 -3
- package/build/static/js/2730.de4191a3.chunk.js +0 -2
- package/build/static/js/2814.d29117fe.chunk.js +0 -2
- package/build/static/js/36.e0310f1c.chunk.js +0 -2
- package/build/static/js/36.e0310f1c.chunk.js.map +0 -1
- package/build/static/js/3799.b6221438.chunk.js +0 -2
- package/build/static/js/3799.b6221438.chunk.js.map +0 -1
- package/build/static/js/4029.63e2e13f.chunk.js +0 -2
- package/build/static/js/4029.63e2e13f.chunk.js.map +0 -1
- package/build/static/js/4265.93e2bc34.chunk.js +0 -2
- package/build/static/js/5443.3d05f7e0.chunk.js +0 -2
- package/build/static/js/5600.ffd573b2.chunk.js +0 -2
- package/build/static/js/5600.ffd573b2.chunk.js.map +0 -1
- package/build/static/js/5962.a04e6aea.chunk.js +0 -2
- package/build/static/js/5996.7f3dce8b.chunk.js +0 -2
- package/build/static/js/6611.5beb4e84.chunk.js +0 -2
- package/build/static/js/6779.c77cdd06.chunk.js +0 -2
- package/build/static/js/6779.c77cdd06.chunk.js.map +0 -1
- package/build/static/js/6908.b9d9e979.chunk.js +0 -3
- package/build/static/js/6908.b9d9e979.chunk.js.map +0 -1
- package/build/static/js/6915.fcc24f94.chunk.js +0 -2
- package/build/static/js/7121.f7ae880f.chunk.js +0 -2
- package/build/static/js/7227.9293f668.chunk.js +0 -3
- /package/build/static/js/{1153.e689d5f2.chunk.js.LICENSE.txt → 1153.675bc8ae.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.f7b48c44.chunk.js.LICENSE.txt → 1554.121e8458.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.496078cd.chunk.js.LICENSE.txt → 2716.374831b4.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.e3cff340.chunk.js.LICENSE.txt → 4666.005bd056.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6908.b9d9e979.chunk.js.LICENSE.txt → 6908.517174fe.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.9293f668.chunk.js.LICENSE.txt → 7227.9da28a8a.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__UI56B","scroller-inner":"style_scroller-inner__NJSE0__UI56B","is-moving":"style_is-moving__jGuy0__UI56B"};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__UI56B",u="style_inner__bMKeU__UI56B",d="style_content__xTfWZ__UI56B",p="style_link__93j7O__UI56B";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__UI56B","page-content":"style_page-content__4XeN8__UI56B","page-main":"style_page-main__P0yEF__UI56B","page-main-content":"style_page-main-content__1OVPN__UI56B","table-page":"style_table-page__JkbLf__UI56B","helper-guide":"style_helper-guide__vzw4z__UI56B","page-outer":"style_page-outer__2a6iH__UI56B","no-margin":"style_no-margin__S6caT__UI56B","page-menu":"style_page-menu__CZSa9__UI56B",closed:"style_closed__hmnft__UI56B","page-menu-inner":"style_page-menu-inner__rmKpu__UI56B","page-menu-main":"style_page-menu-main__OXg2M__UI56B","page-option-main":"style_page-option-main__LyfT3__UI56B","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__UI56B","page-option":"style_page-option__diS2S__UI56B","page-option-inner":"style_page-option-inner__Fj1JH__UI56B","page-option-footer":"style_page-option-footer__d7xE0__UI56B","fixed-container":"style_fixed-container__1VZwY__UI56B","is-fixed":"style_is-fixed__1aQhp__UI56B","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__UI56B","page-menu-btn":"style_page-menu-btn__BiTy8__UI56B","page-title":"style_page-title__zw-Fd__UI56B","page-title-text":"style_page-title-text__Rj4RC__UI56B","no-padding":"style_no-padding__V7Dwy__UI56B","page-header":"style_page-header__a813p__UI56B","page-header-info":"style_page-header-info__cMrZR__UI56B","layout-menu":"style_layout-menu__yiab0__UI56B","sub-menu":"style_sub-menu__dyqK7__UI56B","no-collapsed":"style_no-collapsed__76h8W__UI56B","has-not-children":"style_has-not-children__fnjRK__UI56B","table-page-top":"style_table-page-top__bt1l9__UI56B","error-component":"style_error-component__HvghB__UI56B","state-bar-page":"style_state-bar-page__+aUM4__UI56B","back-icon":"style_back-icon__79v2G__UI56B"};var x=n(70579);const v=e=>{let{className:t,isFixed:n,children:s}=e;return n?(0,x.jsx)("div",{className:f()(t,"fixed-container",y["fixed-container"],{[y["is-fixed"]]:n}),children:s}):(0,x.jsx)("div",{className:f()(t,"fixed-container",y["fixed-container"]),children:s})};var j=n(64671),b=n(17342),I=n(94679),N=n(33097),B=n.n(N),U=n(55490),C=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,I.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)(b.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=C.A.getItem(O)||{};n[i]=!e.menuOpen,C.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,I.useLocation)().pathname.split("/")[1];return(0,r.useMemo)((()=>{const t=C.A.getItem(O)||{};return!(0,U.A)(B()(t,e))||B()(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})},S=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})},K=()=>{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)(S,{targetKey:"headerHeight",children:t})}):null},R=()=>{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 A=n(16915);const F=e=>{let{title:t,filter:n,titleExtra:r,titleLeftExtra:a,backUrl:l}=e;const o=(0,I.useNavigate)();return n?(0,x.jsx)(A.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},M=()=>{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)(b.A,{className:f()(y["page-option-main"],"page-option-main"),style:{padding:o?"0px":"var(--padding-width)"},children:t}),a?(0,x.jsx)(S,{className:y["page-option-footer"],targetKey:"optionFooterHeight",children:(0,x.jsx)(s.Space,{align:"center",children:a})}):null]})}):null};var H=n(75363),T=n(29053);const{Content:W}=s.Layout,q=()=>(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"})}),z=e=>(0,x.jsx)(p.A,{...e,errorComponent:q}),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,T.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)(z,{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)(z,{children:(0,x.jsx)(W,{className:y["layout-content-wrap"],children:(0,x.jsxs)(o,{value:{pageProps:p,setPageProps:m},children:[(0,x.jsx)(z,{children:(0,x.jsx)(K,{})}),(0,x.jsx)(z,{children:(0,x.jsx)(R,{})}),(0,x.jsx)(z,{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)(z,{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)(z,{children:(0,x.jsx)(F,{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)(z,{children:[p.helperGuideName&&(0,x.jsx)(H.default,{className:y["helper-guide-page"],name:p.helperGuideName}),t]})})]})}),(0,x.jsx)(z,{children:(0,x.jsx)(M,{})})]})})]})})})]})};G.defaultProps={navigation:{}};const $=G,V=e=>{let{permissions:t,...n}=e;return(0,x.jsx)(T.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)(H.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)(H.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__UI56B","all-no-start-icon":"style_all-no-start-icon__CA+zR__UI56B","no-start-icon":"style_no-start-icon__LnC1S__UI56B","has-children":"style_has-children__m9tce__UI56B","has-children-node":"style_has-children-node__2bhEB__UI56B","is-root":"style_is-root__4hhOc__UI56B",title:"style_title__+Hcar__UI56B",active:"style_active__WU49K__UI56B","no-collapse":"style_no-collapse__aIZBM__UI56B","title-content":"style_title-content__cQXpK__UI56B",loading:"style_loading__1pU4P__UI56B"};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:b,onLoad:I,allowCollapsed:N}=e,B=Array.isArray(v)&&v.length>0||j,{refresh:U,isLoading:C}=(0,m.useFetch)(Object.assign({},j,{auto:!N&&j,onRequestSuccess:e=>{I(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"]]:B,[s["no-collapse"]]:B&&!N,[s["no-start-icon"]]:!u,[s["is-root"]]:0===b}),onClick:s=>{s.stopPropagation(),B||!p?B||j?N&&(j&&U({}),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}),B&&N&&(0,g.jsx)(d.default,{type:f?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),B?!N||f&&v?(0,g.jsx)("div",{className:s["children-list"],children:v}):!N||f&&C?(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:b,hasStartIcon:I,hasChildren:N}=(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[B,U]=u()(Object.assign({},l,{defaultOpenKeys:l.defaultOpenKeys||v}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),C=(0,p.useCallback)(((e,t)=>{const{parentKey:s,depth:r,selectedKey:a,openKeys:l,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:t,key:i,originItem:c,...u}=e;return(0,p.createElement)(f,{...Object.assign({},u),id:i,parentId:s,depth:r,allowCollapsed:n,isSelected:i===a||b[i]&&b[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:()=>{U((e=>{const t=e.slice(0);return e.indexOf(i)>-1?t.splice(e.indexOf(i),1):t.push(i),t}))}},C(t,{parentKey:s,depth:r+1,selectedKey:a,openKeys:l,paths:[...o,i]}))})):null}),[y,U,_,b,n]);return(0,g.jsx)("div",{className:a()(t,s.menu,{[s["all-no-start-icon"]]:!I,[s["has-children-node"]]:N}),children:C(x,{selectedKey:d,openKeys:B})})};y.defaultProps={defaultItems:[],allowCollapsed:!0};const x=y},79329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>k,navigationHeight:()=>C});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__UI56B",y="style_navigation__60RrS__UI56B",x="style_is-fixed__kHFWj__UI56B",v="style_navigation-logo__q9qHu__UI56B",j="style_logo__lB9RC__UI56B",b="style_navigation-list__EYtkg__UI56B",I="style_navigation-options__0BdJU__UI56B",N="style_more-icon__gNMnt__UI56B";var B=n(70579);const{Header:U}=s.Layout,C=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:C,defaultTitle:P,overflowedIndicator:k,base:E,onChange:L,className:S}=e;const K=(0,o.useMemo)((()=>new Map(n.map((e=>{let{key:t,...n}=e;return[t,n]})))),[n]),R=(0,r.useNavigate)(),A=(0,r.useLocation)(),F=(0,o.useRef)(),M=(0,o.useRef)(null),[H,T]=(0,o.useState)("\u66f4\u591a"),[W,q]=(0,o.useState)(!1),z=A.pathname.replace(new RegExp(`^${E}`),"").split("/")[1],G=z?l()(Array.from(K.entries()).find((e=>{let[n,{path:s,permission:r}]=e;return-1!==("function"===typeof s?s(r,t):s).indexOf("/"+z)})),"[0]"):"home";(0,o.useEffect)((()=>{const e=()=>{if(F.current){const e=F.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=K.get(G)&&!t?l()(K.get(G),"title"):"";T(n)}},t={attributes:!0,childList:!0,subtree:!0};return W&&F&&F.current&&(e(),M.current&&M.current.disconnect(),M.current=new MutationObserver(e),M.current.observe(F.current,t)),()=>{M.current&&M.current.disconnect()}}),[G,K,W]);const $=!!m&&{label:C||(0,B.jsx)(_.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{L&&L("/"),setTimeout((()=>{R("/")}),0)}};return(0,B.jsxs)(_.IntlProvider,{importMessages:p,moduleName:"Navigation",children:[(0,B.jsx)(_.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,B.jsx)(O,{defaultTitle:P||e,mapping:K,name:G})}),(0,B.jsx)("div",{className:c()(f,S),children:(0,B.jsx)(U,{className:c()("navigation",y,{[x]:h}),children:(0,B.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,B.jsx)(s.Col,{className:c()("navigation-logo",v),children:(0,B.jsx)(d.default,{className:c()(j),src:u,alt:"logo",...a})}),(0,B.jsxs)(s.Col,{ref:F,flex:1,className:c()("navigation-list",b),children:[(0,B.jsx)(w,{onReady:()=>{q(!0)}}),(0,B.jsx)(s.Menu,{selectedKeys:[G],mode:"horizontal",overflowedIndicator:k||(0,B.jsxs)(s.Space,{size:4,children:[(0,B.jsx)("span",{children:H||(0,B.jsx)(_.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,B.jsx)("span",{className:N,children:(0,B.jsx)(g.default,{type:"icon-arrow-thin-down"})})]}),items:[$,...Array.from(K.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((()=>{R(l)}),0)}}}))]})]}),(0,B.jsx)(s.Col,{className:I,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__UI56B";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__UI56B","has-children":"style_has-children__oQDqU__UI56B","tab-tab-control":"style_tab-tab-control__SopeO__UI56B","tab-radio-control":"style_tab-radio-control__R8X6-__UI56B","tab-step-control":"style_tab-step-control__EQaCl__UI56B","inner-state-bar":"style_inner-state-bar__lWmOz__UI56B"};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.93e2bc34.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__UI56B","scroller-inner":"style_scroller-inner__NJSE0__UI56B","is-moving":"style_is-moving__jGuy0__UI56B"};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 g=(0,s.useRef)(1);return g.current=o.width/o.innerWidth,(0,s.useEffect)((()=>{const e=e=>{m.current&&h.current(g.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),g=l()((()=>h.current&&r(h.current))),p=(0,s.useRef)();return p.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,s.useEffect)((()=>{const e=p.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=g(),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)}}),[g]),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:p.current,onScroll:e=>{g().scrollLeft+=e}})]}):o};m.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const h=m},63361:(e,t,n)=>{n.r(t),n.d(t,{default:()=>_,useFeatureCall:()=>x});var r=n(73884),s=n(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}})),g=(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}))},p=(0,r.createContext)(null),{Provider:f}=p,x=e=>{const{features:t,profile:n,profileMap:o,debug:a}=(()=>{const e=(0,s.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},h(t),{debug:n})})(),c="system"===n.type?n.id:"root",i=(0,r.useContext)(p),u=i?i+":"+e:c+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&a&&console.log(`[featureId] ${u},[state] ${g(u,{features:t,profileMap:o})}`,o.get(u))}),[t,o,a,u]),{isPass:!(e&&t&&t.length>0)||g(u,{features:t,profileMap:o}),currentId:u,feature:o.get(u)}},_=e=>{let{id:t,children:n}=e;const{isPass:r,feature:s,currentId:o}=x(t);return(0,d.jsx)(f,{value:o,children:"function"===typeof n?n({isPass:r,options:r?l()(s,"options"):l()(s,"rejectedOptions"),currentId:o}):r&&n})}},27777:(e,t,n)=>{n.r(t),n.d(t,{Table:()=>T,default:()=>W});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),g=n(76801),p=n(60262),f=n.n(p),x=n(56641),_=n.n(x),y=n(51941);const C={"loading-container":"style_loading-container__tATe2__UI56B","width-changer":"style_width-changer__2ZxQE__UI56B","table-changer-setting":"style_table-changer-setting__vHBi5__UI56B","width-changer-sign":"style_width-changer-sign__JpI-0__UI56B","columns-control":"style_columns-control__Yt34Y__UI56B","columns-control-content":"style_columns-control-content__1wnZG__UI56B","columns-control-content-title":"style_columns-control-content-title__MsQpI__UI56B","columns-control-content-scroller":"style_columns-control-content-scroller__VEy4q__UI56B","columns-control-content-footer":"style_columns-control-content-footer__rvk74__UI56B","columns-control-content-input":"style_columns-control-content-input__fYYyr__UI56B","columns-control-content-list":"style_columns-control-content-list__wepM4__UI56B","columns-control-content-item":"style_columns-control-content-item__1cPXT__UI56B","is-drag":"style_is-drag__HRe9m__UI56B","columns-control-content-item-icon":"style_columns-control-content-item-icon__oku-X__UI56B","sortable-drag":"style_sortable-drag__N6+aC__UI56B","sortable-ghost":"style_sortable-ghost__EbwXI__UI56B","columns-control-overlay":"style_columns-control-overlay__QYEXZ__UI56B"};var j=n(63908),b=n(70579);const v=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&&v(e.parentElement),w=e=>{let{columns:t,setData:n,name:r,initColumnsData:o}=e;const c=(0,s.useRef)(null),i=(0,s.useRef)(r);i.current=r;const d=(0,s.useMemo)((()=>new Map(t.map((e=>[e.key,e])))),[t]),m=(0,s.useRef)(d);m.current=d;const{tablePageServerApis:h}=(0,j.usePreset)(),g=(0,y.useDebouncedCallback)((()=>{(0,a.getCache)().delByCacheName(`TABLE_CONFIG_${i.current}`),h&&h.setDataFunc&&(h.setDataFunc(i.current,O),n(O))}),1e3),[p,x]=(0,s.useState)(!1),w=(0,s.useRef)(!1),I=(0,s.useRef)({index:-1,width:0}),[A,S]=(0,s.useState)({}),E=(0,s.useRef)(0),k=(0,s.useCallback)((()=>o&&o.length>0&&t.length===o.length&&_()(t,o,((e,t)=>e.key===t.id))?o.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})):t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})))),[o,t]);(0,s.useEffect)((()=>{L(k())}),[k]);const[O,L]=(0,s.useState)(k),N=l()((e=>{L(e),g()})),R=(0,s.useRef)(O),B=(0,s.useRef)(O);R.current=B.current=O;const M=l()((()=>{const e=t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})));B.current=e,N(e)}));return(0,s.useEffect)((()=>{if(!c.current)return;const e=e=>{const t=e.target;w.current||t.classList.contains("changer-sign")||v(t)||x(!1)},t=()=>{document.body.style.cursor="unset",w.current=!1,I.current={index:-1,width:0},x(!1)};return c.current.addEventListener("mousemove",(e=>{const t=v(e.target)||e.target,{left:n,top:r}=c.current.getBoundingClientRect(),{left:s,width:o,height:l}=t.getBoundingClientRect(),a=c.current.querySelector(".ant-table-thead"),i=a.getBoundingClientRect().top,u=Array.from(a.querySelectorAll("th")),d=Array.from(a.querySelectorAll("th:not(.ant-table-selection-column)"));if(!w.current&&v(t)&&0<e.pageX-s+8&&(I.current={index:d.indexOf(t),locationIndex:u.indexOf(t),width:o,left:s,height:l},S({left:s-n+o-8,top:i-r,height:l}),x(!0)),!w.current&&v(t)&&0>e.pageX-s+8&&x(!1),w.current&&I.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+I.current.width,100);S({left:Math.max(f()(u.slice(0,I.current.locationIndex).map((e=>e.clientWidth)))-n,0)+s-8,top:i-r,height:I.current.height}),N((e=>{const t=e.slice(0);return t.filter((e=>{let{hidden:t}=e;return!0!==t})).forEach(((e,t)=>{var n;e.width=I.current.index===t?s:(null===(n=d[t])||void 0===n?void 0:n.clientWidth)||100})),t}))}}),!0),window.addEventListener("mouseup",t),document.addEventListener("mousemove",e,!0),()=>{document.removeEventListener("mousemove",e,!0),window.removeEventListener("mouseup",t)}}),[M,N]),{ref:c,sign:p&&(0,b.jsx)("div",{className:u()(C["width-changer-sign"],"changer-sign"),style:{top:A.top,left:A.left,height:A.height},onMouseDown:e=>{e.preventDefault(),w.current=!0,E.current=e.pageX,document.body.style.cursor="url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAMAAACgaw2xAAAANlBMVEUAAAAjIyMiIiIhISEjIyMiIiIhISEiIiIjIyMiIiIjIyMjIyMiIiIiIiIiIiIiIiIiIiL///8npLH6AAAAEHRSTlMAZm9zdnd7gISIjKq78fL+6p9oYgAAAAFiS0dEEeK1PboAAAA/SURBVBgZ1cGJDYAgEEXBh7JyKPj7r9ZkQyKUwAx7yhfurCyyDHe8lUlRf4auws/U7qHJmJgSLslYxIALkS192tYB4NtE/LQAAAAASUVORK5CYII=) 12 10,col-resize"}}),targetColumns:O.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:B.current,columnMap:m.current,setColumns:e=>{B.current=e},onConfirm:()=>{N(B.current)},onCancel:()=>{B.current=R.current},onReset:()=>{M()}}},I=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 S=n.n(A)()(I,(e=>t=>{let{name:n,controllerOpen:r,columns:s,data:o,setData:l,...a}=t;const{ref:c,targetColumns:i,sign:d}=w({columns:s,name:n,initColumnsData:o,setData:l});return r?(0,b.jsxs)("div",{className:u()(C["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 k=e=>({"en-US":()=>n.e(6222).then(n.bind(n,86222)),"zh-CN":()=>n.e(6964).then(n.bind(n,56964))}[e]());var O=n(58609),L=n(39835),N=n.n(L),R=n(64671),B=n(81014),M=n(36),P=n(76441);const{Panel:U}=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:g,rightFixedColumns:p,visibleColumns:f,hiddenColumns:x}=(0,s.useMemo)((()=>Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},N()(i,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":e.hidden?"hiddenColumns":"visibleColumns")))),[i]),_=e=>{d(e),c(e)};return(0,b.jsxs)("div",{className:C["columns-control-content"],children:[(0,b.jsx)("div",{className:C["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)(B.default,{type:"text",icon:(0,b.jsx)(R.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{l&&await l(),t()}})})})]})}),(0,b.jsx)("div",{className:C["columns-control-content-scroller"],children:(0,b.jsxs)(r.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,b.jsx)(U,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,b.jsxs)(r.List,{className:C["columns-control-content-list"],children:[g.map((e=>(0,b.jsx)(r.List.Item,{className:C["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id))),(0,b.jsx)(P.ReactSortable,{list:f,filter:".ignore-elements",dragClass:C["sortable-drag"],ghostClass:C["sortable-ghost"],forceFallback:!0,setList:e=>{_([...g,...e,...x,...p])},animation:300,delayOnTouchStart:!0,delay:2,children:f.map((e=>(0,b.jsxs)(r.List.Item,{className:u()(C["columns-control-content-item"],C["is-drag"]),children:[(0,b.jsx)(R.default,{type:"icon-paixu",className:C["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}),_(r)},children:e.name})]},e.id)))}),p.map((e=>(0,b.jsx)(r.List.Item,{className:C["columns-control-content-item"],children:(0,b.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.name})},e.id)))]})},"active"),(0,b.jsx)(U,{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)(M.SearchInput,{prefix:(0,b.jsx)(R.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{h(e)},className:C["columns-control-content-input"],size:"small"})})]}),children:(0,b.jsx)(r.List,{dataSource:x.filter((e=>"string"===typeof e.name&&e.name.indexOf(m)>-1)),renderItem:e=>(0,b.jsx)(r.List.Item,{className:C["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}),_(r)},children:e.name})},e.id)})},"un-active")]})}),(0,b.jsxs)(r.Row,{className:C["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)(B.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:g,onCancel:p,onReset:f}=w({columns:t,name:n,initColumnsData:o,setData:l});return(0,b.jsx)(r.Popover,{...a,open:c,overlayClassName:C["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:g,onCancel:p,onReset:f}),onOpenChange:e=>i(e),children:(0,b.jsx)("span",{className:C["table-changer-setting"],children:(0,b.jsx)(R.default,{type:"icon-shezhi"})})})},T=S((e=>{let{className:t,columns:n,originColumns:s,controllerOpen:o,tableColumnFetchApi:l,name:a,scroller:c,featureId:i,...d}=e;const{data:g,setData:p}=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:g,columns:s,setData:p,name:a})]})}:e)),className:u()(t,"table-page")})}})}))(n)})),F=(0,a.withFetch)((e=>{let{data:t,refresh:n,reload:r,requestParams:o,fetchProps:a,isComplete:i,setData:d,loadMore:h,send:g,dataFormat:p,pagination:f,scroller:x,getColumns:_,getColumnsParams:y,className:j,columns:v,featureId:w,stickyOffset:I,...A}=e;const S=l()(p),E=l()(_),L=(0,s.useMemo)((()=>S(t)),[t,S]),N={dataSource:L.list,pagination:!!f.open&&{total:L.total,showTotal:e=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(O.FormattedMessage,{id:"Page_Total",moduleName:"TablePage",defaultMessage:"\u5171"}),(0,b.jsx)("span",{className:C.total_text,children:e}),(0,b.jsx)(O.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":I}};return(0,b.jsx)(O.IntlProvider,{importMessages:k,moduleName:"TablePage",children:(0,b.jsx)("div",{className:u()(C["loading-container"],"loading-container",{"is-loading":!i}),children:"function"!==typeof _||v?(0,b.jsx)(T,{...A,...N,columns:v,scroller:x,featureId:w}):(0,b.jsx)(c(),{data:t,params:y,loader:e=>{let{data:t,params:n}=e;return E({data:t,params:n,formatData:L})},render:e=>{let{data:t}=e;return(0,b.jsx)(T,{...A,...N,columns:t,scroller:x,featureId:w})}})})})})),q=(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)(F,{...r,pagination:Object.assign({},{defaultPageSize:o,onShowSizeChange:(e,t)=>{l(t)}},n),...a,ref:t})}));q.defaultProps={controllerOpen:!0,size:"middle",stickyOffset:"var(--nav-height)",sticky:{getContainer:g.h},scroller:{getContainer:g.h},scroll:{x:"max-content"},rowKey:"id",pagination:{},dataFormat:e=>({list:e.pageData,total:e.totalCount})};const W=q}}]);
|
|
2
|
-
//# sourceMappingURL=5443.3d05f7e0.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5600,9034,2517],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(8762),l=t.n(n);t(46733);const s=l()},58407:(e,o,t)=>{t.r(o),t.d(o,{ConfirmLink:()=>g,ConfirmText:()=>y,default:()=>C,withConfirm:()=>f});t(73884);var n=t(55199);const l=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var s=t(64671),i=t(58609),a=t(3382),r=t(83136),c=t.n(r);const d="style_overlay__99t5t__UI56B",m="style_is-danger__gxyAB__UI56B",h="style_title__EEPu2__UI56B",_="style_content__mZZg5__UI56B",p="style_has-title__5+PEt__UI56B";var u=t(70579);const f=e=>{const o=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:l})((o=>{let{title:t,message:l,isDelete:r=!0,onClick:f,onCancel:g,disabled:y,showCancel:C,cancelText:x,isModal:b,okText:j,placement:B,getContainer:w,...N}=o;const{formatMessage:k}=(0,i.useIntl)({moduleName:"ConfirmButton"}),v=(0,a.useConfirmModal)();return b?(0,u.jsx)(e,{...N,disabled:y,onClick:e=>{v({type:"confirm",title:t,getContainer:w,danger:r,confirmType:r?"warning":"info",message:l||k({id:"message"}),okText:j||k(r?{id:"delete"}:{id:"confirm"}),cancelText:x||k({id:"cancel"}),onCancel:g,onOk:f})}}):(0,u.jsx)(n.Popconfirm,{title:(0,u.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,u.jsxs)(n.Space,{size:0,align:"start",className:h,children:[r&&(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,u.jsxs)(n.Space,{size:0,align:"start",className:c()(_,{[p]:t}),children:[!t&&r?(0,u.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||k({id:"message"})]})]}),placement:B,onConfirm:f,okButtonProps:{danger:r},onCancel:g,overlayClassName:c()(d,{[m]:r}),getPopupContainer:w,disabled:y,showCancel:C,cancelText:x,okText:j||k(r?{id:"delete"}:{id:"confirm"}),children:(0,u.jsx)(e,{...N,disabled:y})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},g=f(n.Typography.Link),y=f(n.Typography.Text),C=f(n.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>M,TabsModal:()=>I,TabsModalButton:()=>S,default:()=>k,useConfirmModal:()=>N,useModal:()=>w,useTabsModal:()=>P});var n=t(73884),l=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__UI56B",large:"style_large__iaqVE__UI56B","modal-body-inner":"style_modal-body-inner__4PhpA__UI56B","modal-title":"style_modal-title__dswaw__UI56B","modal-outer":"style_modal-outer__r3SkX__UI56B","modal-body":"style_modal-body__jQJSI__UI56B","right-options-modal":"style_right-options-modal__FajDP__UI56B","right-options-row":"style_right-options-row__-mPb9__UI56B","right-options-col":"style_right-options-col__3ilee__UI56B","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__UI56B",content:"style_content__k6MIF__UI56B","modal-footer":"style_modal-footer__-prbN__UI56B","modal-close":"style_modal-close__Oa5Kl__UI56B","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__UI56B","is-danger":"style_is-danger__H5110__UI56B",title:"style_title__orTym__UI56B","has-title":"style_has-title__qy0Wp__UI56B"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var h=t(81014),_=t(17342),p=t(70579);const u="Modal",f=e=>{let{options:o,rightSpan:t=6,children:n}=e;return o?(0,p.jsxs)(l.Row,{wrap:!1,className:a["right-options-row"],children:[(0,p.jsx)(l.Col,{span:24-t,className:a["right-options-col"],children:n}),(0,p.jsx)(l.Col,{span:t,className:a["right-options-col"],children:o})]}):n},g=(e,o)=>e-48-(o?58:0)+"px",y=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":g(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,o)}}:{width:"1000px",style:{"--min-modal-height":g(500,o)}},C=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,p.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,p.jsx)(l.Col,{children:(0,p.jsx)(l.Space,{children:(t||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:u})}),onClick:i},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:u,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:u})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:l,autoClose:s=!0,display:i,...r}=e;const c=t||h.default;return(0,n.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(l&&l(...o,d));return s&&!1!==n&&a&&a(),n}})}))})})]})},x=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:h,onCancel:u,children:f,targetProps:g}=e;const y=(0,n.useRef)(null);return(0,p.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,p.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,p.jsx)("div",{className:a["modal-title"],children:o}),(0,p.jsx)(_.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:y,children:(0,p.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,p.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,p.jsx)(C,{footer:t,footerButtons:r,onConfirm:h,onCancel:u,onClose:c,targetProps:g})}):null]})},b=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,rightSpan:d,disabledScroller:h,childrenRef:_,children:u}=e;const g=e=>(e=Object.assign({},{title:n},e),(0,p.jsx)(x,{title:m(e.title,{...e,childrenRef:_,close:s}),closable:l,onClose:s,onConfirm:i,onCancel:a,footerButtons:m(t,{...e,close:s}),disabledScroller:h,footer:m(r,{...e,childrenRef:_,close:s}),targetProps:Object.assign({},e,{childrenRef:_,close:s}),children:(0,p.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:_,close:s}),children:m(u,{...e,childrenRef:_,close:s})})}));return"function"===typeof o?o(g):g({})},j=e=>{let{children:o,rightOptions:t,rightSpan:n,footer:l,footerButtons:s,className:d,size:m,title:h,onClose:_,onConfirm:u,onCancel:f,closable:g,disabledScroller:C,withDecorator:x,childrenRef:j,...B}=e;return{...B,icon:null,centered:!0,title:null,maskClosable:!!B.hasOwnProperty("maskClosable")&&B.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:_,className:i()(d,a.modal,a[m],{[a["right-options-modal"]]:t}),...y(m,!(null===l&&!s)),children:(0,p.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:b({withDecorator:x,title:h,closable:g,onClose:_,onConfirm:u,onCancel:f,footer:l,footerButtons:s,rightOptions:t,rightSpan:n,disabledScroller:C,children:o,childrenRef:j})})}},B=e=>{const o=(0,n.useRef)(null);return(0,p.jsx)(l.Modal,{...j(Object.assign({},e,{childrenRef:o}))})};B.defaultProps={size:"default"};const w=()=>{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}},N=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:r,danger:c,wrapClassName:m,message:h,iconSetting:_={},confirmType:u="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},_);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,p.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,p.jsxs)(l.Space,{size:0,align:"start",className:a.title,children:[c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||g["confirm"===n?u:n]}):null,r]})}),content:(0,p.jsxs)(l.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,p.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?u:n}`),type:s||g["confirm"===n?u:n]}):null,h]})});t.close=o}return t}},k=B,v=e=>{let{items:o,className:t,activeKey:n,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,p.jsx)(l.Tabs,{items:o.map((o=>{let{withDecorator:n,...l}=o;return Object.assign({},l,{children:"function"===typeof n?n((o=>e(Object.assign({},t,o,{children:l.children})))):e(Object.assign({},t,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},I=e=>(0,p.jsx)(k,{...v(e)}),P=()=>{const e=w();return o=>e(v(o))};var U=t(73025);const S=e=>{const o=P();return e.api?(0,p.jsx)(U.A,{...e,modalFunc:o}):(0,p.jsx)(l.Button,{...e,onClick:()=>{o(e.modalProps)}})},M=e=>{const o=w();if(!e.api){const{modalProps:t,...n}=e;return(0,p.jsx)(l.Button,{...n,onClick:()=>{o(t)}})}return(0,p.jsx)(U.A,{...e,modalFunc:o})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5600.ffd573b2.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/5600.ffd573b2.chunk.js","mappings":"8MAGA,QAAeA,G,8HCHf,MAOA,EAPwBC,IACf,CACL,QAASC,IAAM,gCACf,QAASC,IAAM,iCACfF,M,wDCHJ,QAA0B,8BAA1B,EAAoE,gCAApE,EAA4G,4BAA5G,EAAkJ,8BAAlJ,EAA4L,gC,eCQrL,MAAMG,EAAeC,IAC1B,MAAMC,GAAmBC,EAAAA,EAAAA,gBAAe,CACtCC,WAAY,gBACZC,eACF,GAHyBF,EAIvBG,IAcO,IAdN,MACCC,EAAK,QACLC,EAAO,SACPC,GAAW,EAAI,QACfC,EAAO,SACPC,EAAQ,SACRC,EAAQ,WACRC,EAAU,WACVC,EAAU,QACVC,EAAO,OACPC,EAAM,UACNC,EAAS,aACTC,KACGC,GACJb,EACC,MAAM,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EAAAA,KAAC6B,EAAAA,OAAM,IACDlC,EACJT,QAASA,KACPkJ,EAAUzI,EAAM4I,WAAW,GAKoB,EAEzD,EA9BqB5I,IACnB,MAAMG,EAAQ2G,IACd,IAAK9G,EAAMiH,IAAK,CACd,MAAM,WAAE2B,KAAeC,GAAW7I,EAClC,OACEK,EAAAA,EAAAA,KAAC6B,EAAAA,OAAM,IACD2G,EACJtJ,QAASA,KACPY,EAAMyI,EAAW,GAIzB,CACA,OAAOvI,EAAAA,EAAAA,KAACqI,EAAAA,EAAW,IAAK1I,EAAO2I,UAAWxI,GAAS,C","sources":["common/components/SimpleBar.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__UI56B\",\"is-danger\":\"style_is-danger__gxyAB__UI56B\",\"title\":\"style_title__EEPu2__UI56B\",\"content\":\"style_content__mZZg5__UI56B\",\"has-title\":\"style_has-title__5+PEt__UI56B\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__UI56B\",\"large\":\"style_large__iaqVE__UI56B\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__UI56B\",\"modal-title\":\"style_modal-title__dswaw__UI56B\",\"modal-outer\":\"style_modal-outer__r3SkX__UI56B\",\"modal-body\":\"style_modal-body__jQJSI__UI56B\",\"right-options-modal\":\"style_right-options-modal__FajDP__UI56B\",\"right-options-row\":\"style_right-options-row__-mPb9__UI56B\",\"right-options-col\":\"style_right-options-col__3ilee__UI56B\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__UI56B\",\"content\":\"style_content__k6MIF__UI56B\",\"modal-footer\":\"style_modal-footer__-prbN__UI56B\",\"modal-close\":\"style_modal-close__Oa5Kl__UI56B\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__UI56B\",\"is-danger\":\"style_is-danger__H5110__UI56B\",\"title\":\"style_title__orTym__UI56B\",\"has-title\":\"style_has-title__qy0Wp__UI56B\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, rightSpan = 6, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n"],"names":["SimpleBar","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","_ref","title","message","isDelete","onClick","onCancel","disabled","showCancel","cancelText","isModal","okText","placement","getContainer","props","formatMessage","useIntl","modal","useConfirmModal","_jsx","e","type","danger","confirmType","id","onOk","Popconfirm","_jsxs","Space","direction","stopPropagation","children","size","align","className","style","Icon","classnames","onConfirm","okButtonProps","overlayClassName","getPopupContainer","defaultProps","ConfirmLink","Typography","Link","ConfirmText","Text","Button","renderWithOptions","footer","options","localeModuleName","RightOptions","rightSpan","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","window","innerWidth","Footer","_ref2","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","length","IntlProvider","FormattedMessage","filter","item","display","map","_ref3","index","ButtonComponent","autoClose","CurrentButton","LoadingButton","_createElement","key","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","useRef","icon","ref","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","Object","assign","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","confirm","warning","error","success","items","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others"],"sourceRoot":""}
|
|
@@ -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:()=>D,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__UI56B",o="style_file-list-title__zXM5r__UI56B",c="style_container__P4RaF__UI56B",d="style_file-preview-inner__cvE72__UI56B",u="style_file-preview__M-Asq__UI56B",p="style_drag-area__Q+lm7__UI56B",m="style_upload-drag-close__u5o8W__UI56B",x="style_upload-drag-tips__z7puZ__UI56B",g="style_upload-drag-icon__sGGoS__UI56B",f="style_upload-drag-title__9Afmb__UI56B",_="style_upload-drag-text__o38vS__UI56B",h="style_title-group__8IJkS__UI56B",v="style_upload-btn__Q+Jxn__UI56B",j="style_total-count__z1fyd__UI56B",y="style_file-select__mHqyI__UI56B",S="style_file-name__QkvMn__UI56B",N="style_file-select-info__fOLiM__UI56B",I="style_file-select-option__AbDrD__UI56B";var F=s(75087),L=s.n(F),P=s(74065),w=s.n(P),C=s(57469),b=s.n(C),U=s(64671),M=s(67390),T=s(58609),z=s(70579);const B=e=>{let{currentTab:t,setCurrentTab:s,previewMap:i,previewList:n,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:p,getPopupContainer:m}=e;return(0,z.jsx)("div",{className:o,children:(0,z.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,z.jsx)(l.Col,{children:(0,z.jsxs)(l.Space,{className:h,size:4,children:[(0,z.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,z.jsxs)(l.Space,{size:4,children:[(0,z.jsx)(U.default,{type:"icon-shitu-liebiao"}),(0,z.jsx)(T.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,z.jsxs)(l.Space,{size:4,children:[(0,z.jsx)(U.default,{type:"icon-shitu-yulan"}),(0,z.jsx)(T.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&i.get(r)&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(l.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:n.map((e=>{let{filename:t,userName:s,date:i,ossId:n}=e;return(0,z.jsx)(l.Select.Option,{className:I,value:n,children:(0,z.jsxs)(l.Space,{direction:"vertical",children:[(0,z.jsxs)(l.Space,{size:4,align:"start",children:[(0,z.jsx)(L(),{type:w()(t.split(".")),size:14}),(0,z.jsx)(l.Typography.Text,{className:S,ellipsis:!0,style:{"--max-width":`${p}px`},children:t})]}),s||i?(0,z.jsxs)(l.Space,{className:N,size:24,children:[(0,z.jsxs)("div",{children:[(0,z.jsx)(T.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,z.jsxs)("div",{children:[(0,z.jsx)(T.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",i&&b()(i).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},n)}))}),(0,z.jsx)(M.OptionButtons,{hasPreview:!1,getPermission:a,item:i.get(r),apis:d}),(0,z.jsx)("div",{className:j,children:(0,z.jsx)(T.FormattedMessage,{id:"totalCount",values:{count:n.length},moduleName:"FileList"})})]})]})}),(0,z.jsx)(l.Col,{children:u})]})})};B.defaultProps={maxWidth:260};const D=B,E=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var A=s(70720),O=s.n(A),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,z.jsx)("div",{ref:i,className:v,onClick:()=>{s((e=>!e))},children:(0,z.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,z.jsx)(U.default,{type:"icon-tuozhuaishangchuan"}),t||(0,z.jsx)(T.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:i}=Y();return(0,z.jsxs)(H.AG,{className:v,accept:s,multiple:!0,onChange:i,children:[(0,z.jsx)(U.default,{type:"icon-tianjia"}),t]})},q=e=>{let{title:t,accept:s,fileSize:n,maxLength:a,onFileSelected:o,children:d,className:u}=e;const[p,m]=(0,i.useState)(!1),x=(0,i.useRef)(null),g=O()((e=>{x.current&&(x.current.contains(e.target)||e.target===x.current||m(!1))}));return(0,z.jsx)(T.IntlProvider,{importMessages:E,moduleName:"FileList",children:(0,z.jsx)(W,{value:{open:p,onOpenChange:m,accept:s,fileSize:n,maxLength:a,onFileSelected:o,getDragButtonEl:e=>{x.current=e}},children:(0,z.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,z.jsx)("div",{className:R()(c,u),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,T.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:n.map((e=>e.replace(/^\./,""))).join("\u3001"),size:a}),{fileSize:a,maxLength:l,accept:n});return(0,z.jsxs)("div",{className:R()(x,"upload-drag-tips"),children:[(0,z.jsx)("div",{className:g,children:t||(0,z.jsx)(U.default,{type:"icon-shangchuan",size:64})}),(0,z.jsx)("div",{className:f,children:s||(0,z.jsx)(T.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,z.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,z.jsxs)("div",{className:R()(p,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;a(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,n)));r(t)},onDragEnd:()=>{a(!1)},children:[(0,z.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,z.jsx)(U.default,{type:"icon-close-bold"}),onClick:()=>{a(!1)}}),t]}):null};Z.defaultProps={children:(0,z.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:p,getPermission:m,titleExtra:x,fileSize:g,accept:f,getPopupContainer:_}=e;const{apis:h}=(0,ee.usePreset)(),v=Object.assign({},h,p),{fileList:j,onFileSelected:y}=(0,H.lN)({maxLength:s,multiple:!0,value:n,onChange:r,concurrentCount:1,onAdd:()=>{N("list")},onSave:v.onSave,ossUpload:v.ossUpload}),[S,N]=(0,i.useState)(o),{formatMessage:I}=(0,T.useIntl)({moduleName:"FileList"}),{message:F}=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 C={onPreview:e=>{w(e.ossId),N("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})),F.success(I({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})),F.success(I({id:"successEditFileName"},{name:s.filename}))}},b="function"===typeof x?x({currentPreviewFileId:P,currentTab:S}):x;return(0,z.jsxs)(q,{title:(0,z.jsx)(D,{currentTab:S,setCurrentTab:N,previewMap:L,previewList:n,getPermission:m,currentPreviewFileId:P,setCurrentPreviewFileId:w,itemApis:C,getPopupContainer:_,children:(0,z.jsxs)(l.Space,{split:(0,z.jsx)(l.Divider,{type:"vertical"}),children:[b,m("add",{})?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(V,{children:(0,z.jsx)(T.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,z.jsx)(X,{children:(0,z.jsx)(T.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:y,accept:f,children:["list"===S?(0,z.jsx)(M.List,{dataSource:[...j,...n],getPermission:m,apis:C}):null,"preview"===S?P?(0,z.jsx)("div",{className:d,children:(0,z.jsx)(K.default,{className:u,id:P,apis:v,originName:null===(t=L.get(P))||void 0===t?void 0:t.filename})}):(0,z.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,z.jsx)($,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,z.jsx)(T.IntlProvider,{importMessages:E,moduleName:"FileList",children:(0,z.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,u]=ne()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:p,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:u,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,z.jsxs)(q,{title:(0,z.jsxs)(l.Row,{children:[(0,z.jsx)(l.Col,{flex:1}),(0,z.jsx)(l.Col,{children:(0,z.jsxs)(l.Space,{split:(0,z.jsx)(l.Divider,{type:"vertical"}),children:[(0,z.jsx)(V,{}),(0,z.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:n,maxLength:t,onFileSelected:m,accept:a,children:[(0,z.jsx)(M.List,{dataSource:[...p,...d],getPermission:i,apis:c}),(0,z.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.a04e6aea.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5996,9034,6660],{48731:(e,n,a)=>{"use strict";a.r(n),a.d(n,{default:()=>f});var t=a(73884),r=a(87558),i=a(63908),l=a(15797),o=a.n(l),s=a(79686),c=a.n(s),u=a(70579);const d=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],p=(0,r.withFetch)((e=>{let{data:n,children:a}=e;return"function"===typeof a?a(n):a||(null===n||void 0===n?void 0:n.description)})),m=o()((e=>new Map(d.concat(Object.keys(Object.assign({},e)).map((n=>[n,e[n]])))))),v=e=>{let{loader:n,...a}=e;const{global:{enumsRef:r}}=(0,i.useGlobalContext)(),l=(0,t.useRef)(null);return(0,u.jsx)(p,{...a,loader:async function(){const e=m(await n(...arguments)),{params:a}=arguments.length<=0?void 0:arguments[0],{moduleName:t,name:i,force:o,locale:s}=a,u=async n=>!0!==o&&l.current===s&&r.current.get(n)||await(async()=>{const a=e.get(n),t=await(async()=>"function"===typeof a?new Map((await a({locale:s})).map((e=>[e.value.toString(),e]))):Array.isArray(a)?new Map(a.map((e=>[e.value.toString(),e]))):"object"===typeof a?new Map(Object.keys(a).map((e=>[e.toString(),a[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return r.current.set(n,t),l.current=s,t})();if(Array.isArray(t))return await Promise.all(t.map((e=>u(e).then((e=>Array.from(e.values()))))));const d=await u(t);return c()(i)?Array.from(d.values()):d.get(i.toString())}})},_=e=>{let{moduleName:n,name:a,force:t,children:r,...l}=e;const o=(0,i.usePreset)();return(0,u.jsx)(v,{...l,params:{moduleName:n,locale:null===o||void 0===o?void 0:o.locale,enums:null===o||void 0===o?void 0:o.enums,name:a,force:t},loader:e=>{let{params:n}=e;return n.enums},children:r})};_.defaultProps={force:!1};const f=_},75363:(e,n,a)=>{"use strict";a.r(n),a.d(n,{default:()=>_});const t=e=>({"en-US":()=>a.e(9431).then(a.bind(a,9431)),"zh-CN":()=>a.e(1065).then(a.bind(a,81065))}[e]());var r=a(58609),i=a(64671),l=a(55199),o=a(83136),s=a.n(o);const c="style_helper-guide__K5xFw__UI56B",u="style_inner__bMKeU__UI56B",d="style_content__xTfWZ__UI56B",p="style_link__93j7O__UI56B";var m=a(48731),v=a(70579);const _=e=>{let{name:n,className:a}=e;return(0,v.jsx)(r.IntlProvider,{importMessages:t,moduleName:"HelperGuide",children:(0,v.jsx)(m.default,{moduleName:"helperGuide",name:n,children:e=>e&&e.value&&(0,v.jsx)("div",{className:s()(c,a),children:(0,v.jsxs)(l.Space,{className:u,children:[(0,v.jsx)(i.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,v.jsx)("span",{className:d,children:e.content}),e.url&&(0,v.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,v.jsx)(i.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},79686:e=>{e.exports=function(e){return null==e}}}]);
|
|
2
|
-
//# sourceMappingURL=5996.7f3dce8b.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6611,9034,3142],{28148:(e,s,t)=>{t.r(s),t.d(s,{default:()=>K});const n={menu:"style_menu__gvIvn__UI56B","all-no-start-icon":"style_all-no-start-icon__CA+zR__UI56B","no-start-icon":"style_no-start-icon__LnC1S__UI56B","has-children":"style_has-children__m9tce__UI56B","has-children-node":"style_has-children-node__2bhEB__UI56B","is-root":"style_is-root__4hhOc__UI56B",title:"style_title__+Hcar__UI56B",active:"style_active__WU49K__UI56B","no-collapse":"style_no-collapse__aIZBM__UI56B","title-content":"style_title-content__cQXpK__UI56B",loading:"style_loading__1pU4P__UI56B"};var l=t(83136),a=t.n(l),r=t(55199),o=t(94679),i=t(29053),c=t(10986),d=t.n(c),p=t(64671),h=t(73884),u=t(18081),_=t.n(u),y=t(87558),m=t(70579);const g=e=>{const s=(0,o.useNavigate)(),{id:t,className:l,label:c,iconType:d,path:h,request:u,onClick:_,isOpen:g,isSelected:f,onOpenChange:K,children:O,fetchOptions:v,depth:I,onLoad:C,allowCollapsed:j}=e,k=Array.isArray(O)&&O.length>0||v,{refresh:b,isLoading:x}=(0,y.useFetch)(Object.assign({},v,{auto:!j&&v,onRequestSuccess:e=>{C(e)}}));return(0,m.jsx)(i.default,{request:u,children:(0,m.jsxs)("div",{className:a()(l,n["menu-item"]),children:[(0,m.jsxs)("div",{className:a()(n.title,{[n.active]:f,[n["has-children"]]:k,[n["no-collapse"]]:k&&!j,[n["no-start-icon"]]:!d,[n["is-root"]]:0===I}),onClick:n=>{n.stopPropagation(),k||!h?k||v?j&&(v&&b({}),K(!g)):null===_||void 0===_||_(t,e):s(h)},children:[d&&(0,m.jsx)(p.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),k&&j&&(0,m.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),k?!j||g&&O?(0,m.jsx)("div",{className:n["children-list"],children:O}):!j||g&&x?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},f=e=>{let{className:s,allowCollapsed:t,pathMatch:l,...r}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[p,u]=d()(r,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[y,f]=d()(r,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:K,defaultOpenKeys:O,links:v,childrenKeys:I,hasStartIcon:C,hasChildren:j}=(0,h.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth: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=v.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)}),[v,i,c,u,l]);const[k,b]=d()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||O}),{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,...d}=e;return(0,h.createElement)(g,{...Object.assign({},d),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||I[i]&&I[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,I,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!C,[n["has-children-node"]]:j}),children:x(K,{selectedKey:p,openKeys:k})})};f.defaultProps={defaultItems:[],allowCollapsed:!0};const K=f},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>h,default:()=>m,usePermissions:()=>u,usePermissionsPass:()=>_});var n=t(73884),l=t(55199),a=t(33097),r=t.n(a),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__UI56B";var d=t(63908),p=t(70579);const h=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},u=()=>{const{global:e}=(0,d.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,d.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=u();return h({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:a,message:r,request:o,children:d,...h}=e;const u=_({request:o});return"function"===typeof d?d({isPass:u,type:s,request:o}):!0===u?d:"error"===s?(0,p.jsx)(l.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,p.jsx)(l.Tooltip,{title:r,children:(0,n.createElement)(a,{...h,className:i()(c,t)},d)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
|
|
2
|
-
//# sourceMappingURL=6611.5beb4e84.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:()=>B});var o=n(73884),r=n(96418),i=n.n(r),l=n(55199),s=n(83136),a=n.n(s),c=n(64671),d=n(81014),u=n(58407),m=n(77964),f=n(22616),p=n.n(f);const h="style_width-container__JfEbg__UI56B",_="style_hidden-container__EdySA__UI56B",g="style_hidden-inner__vAN59__UI56B",y="style_menu-list__VDttR__UI56B",x="style_btn-item__mp5MQ__UI56B";var v=n(15797),C=n.n(v),b=n(70579);const j=C()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;const l=i?0:["small","middle","large"].indexOf(r.size)>-1?8*(["small","middle","large"].indexOf(r.size)+1):Number.isInteger(r.size)?r.size:8;let s=0,a=0;for(;t>=a+o[s]+s*l&&s<o.length;)a+=o[s],s+=1;for(;t<a+(s-1)*l+(s<o.length?n+l:0)&&s>0;)a-=o[s-1],s-=1;return s}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;return`${t}${n}${o.join(",")}${Object.values(r).join(",")}${i&&i.toString()}`})),w=e=>{let{list:t,more:n,compact:r,...s}=e;const c=p()(s,["size","split","align","style"]),[f,v]=(0,o.useState)(t.length&&1),C=i()((()=>{const e=B.current,t=N.current,n=w.current;if(!e)return;const i=e.querySelectorAll(".button-group-item");if(!i)return;if(0===i.length)return;const l=n.clientWidth,s=t.clientWidth,a=[].map.call(i,(e=>e.offsetWidth)),d=j({amountWidth:l,moreBtnWidth:s,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{v(d)}))})),w=(0,m.A)(C),B=(0,m.A)(C),N=(0,m.A)(C),I=t.slice(f),k=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",x),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",x,r)})},P=r?l.Space.Compact:l.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:h,ref:w}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:g,ref:N,children:n}),(0,b.jsx)("div",{className:g,ref:B,children:(0,b.jsx)(P,{...c,children:t.map(k)})})]}),(0,b.jsxs)(P,{...c,children:[t.slice(0,f).map(((e,t)=>k(e,t,!1))),I.length>0&&(0,b.jsx)(l.Dropdown,{overlayClassName:y,menu:{items:I.map(((e,t)=>({key:t,label:k(e,t,!0)})))},children:n})]})]})};w.defaultProps={more:(0,b.jsxs)(l.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const B=w},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>g,ConfirmText:()=>y,default:()=>x,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__UI56B",u="style_is-danger__gxyAB__UI56B",m="style_title__EEPu2__UI56B",f="style_content__mZZg5__UI56B",p="style_has-title__5+PEt__UI56B";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:y,showCancel:x,cancelText:v,isModal:C,okText:b,placement:j,getContainer:w,...B}=t;const{formatMessage:N}=(0,l.useIntl)({moduleName:"ConfirmButton"}),I=(0,s.useConfirmModal)();return C?(0,h.jsx)(e,{...B,disabled:y,onClick:e=>{I({type:"confirm",title:n,getContainer:w,danger:a,confirmType:a?"warning":"info",message:r||N({id:"message"}),okText:b||N(a?{id:"delete"}:{id:"confirm"}),cancelText:v||N({id:"cancel"}),onCancel:g,onOk:_})}}):(0,h.jsx)(o.Popconfirm,{title:(0,h.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,h.jsxs)(o.Space,{size:0,align:"start",className:m,children:[a&&(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,h.jsxs)(o.Space,{size:0,align:"start",className:c()(f,{[p]:n}),children:[!n&&a?(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,r||N({id:"message"})]})]}),placement:j,onConfirm:_,okButtonProps:{danger:a},onCancel:g,overlayClassName:c()(d,{[u]:a}),getPopupContainer:w,disabled:y,showCancel:x,cancelText:v,okText:b||N(a?{id:"delete"}:{id:"confirm"}),children:(0,h.jsx)(e,{...B,disabled:y})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},g=_(o.Typography.Link),y=_(o.Typography.Text),x=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>T,TabsModal:()=>k,TabsModalButton:()=>U,default:()=>N,useConfirmModal:()=>B,useModal:()=>w,useTabsModal:()=>P});var o=n(73884),r=n(55199),i=n(83136),l=n.n(i);const s={modal:"style_modal__Pm3cF__UI56B",large:"style_large__iaqVE__UI56B","modal-body-inner":"style_modal-body-inner__4PhpA__UI56B","modal-title":"style_modal-title__dswaw__UI56B","modal-outer":"style_modal-outer__r3SkX__UI56B","modal-body":"style_modal-body__jQJSI__UI56B","right-options-modal":"style_right-options-modal__FajDP__UI56B","right-options-row":"style_right-options-row__-mPb9__UI56B","right-options-col":"style_right-options-col__3ilee__UI56B","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__UI56B",content:"style_content__k6MIF__UI56B","modal-footer":"style_modal-footer__-prbN__UI56B","modal-close":"style_modal-close__Oa5Kl__UI56B","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__UI56B","is-danger":"style_is-danger__H5110__UI56B",title:"style_title__orTym__UI56B","has-title":"style_has-title__qy0Wp__UI56B"},a=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var m=n(81014),f=n(17342),p=n(70579);const h="Modal",_=e=>{let{options:t,rightSpan:n=6,children:o}=e;return t?(0,p.jsxs)(r.Row,{wrap:!1,className:s["right-options-row"],children:[(0,p.jsx)(r.Col,{span:24-n,className:s["right-options-col"],children:o}),(0,p.jsx)(r.Col,{span:n,className:s["right-options-col"],children:t})]}):o},g=(e,t)=>e-48-(t?58:0)+"px",y=(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)}},x=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:l,onClose:s,targetProps:d}=e;return(0,p.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,p.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,p.jsx)(r.Col,{children:(0,p.jsx)(r.Space,{children:(n||[{children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:h})}),onClick:l},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,p.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}})}))})})]})},v=e=>{let{title:t,footer:n,disabledScroller:i,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:h,children:_,targetProps:g}=e;const y=(0,o.useRef)(null);return(0,p.jsxs)("div",{className:s["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,p.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:s["modal-close"],type:"text",icon:(0,p.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,p.jsx)("div",{className:s["modal-title"],children:t}),(0,p.jsx)(f.A,{className:l()(s["modal-body"],{[s["is-disabled-scroller"]]:i},"modal-body"),ref:y,children:(0,p.jsx)("div",{className:l()(s["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,p.jsx)("div",{className:l()(s["modal-footer"],"modal-footer"),children:(0,p.jsx)(x,{footer:n,footerButtons:a,onConfirm:m,onCancel:h,onClose:c,targetProps:g})}):null]})},C=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:i,onConfirm:l,onCancel:s,footer:a,rightOptions:c,rightSpan:d,disabledScroller:m,childrenRef:f,children:h}=e;const g=e=>(e=Object.assign({},{title:o},e),(0,p.jsx)(v,{title:u(e.title,{...e,childrenRef:f,close:i}),closable:r,onClose:i,onConfirm:l,onCancel:s,footerButtons:u(n,{...e,close:i}),disabledScroller:m,footer:u(a,{...e,childrenRef:f,close:i}),targetProps:Object.assign({},e,{childrenRef:f,close:i}),children:(0,p.jsx)(_,{rightSpan:d,options:u(c,{...e,childrenRef:f,close:i}),children:u(h,{...e,childrenRef:f,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:f,onConfirm:h,onCancel:_,closable:g,disabledScroller:x,withDecorator:v,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:f,className:l()(d,s.modal,s[u],{[s["right-options-modal"]]:n}),...y(u,!(null===r&&!i)),children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:v,title:m,closable:g,onClose:f,onConfirm:h,onCancel:_,footer:r,footerButtons:i,rightOptions:n,rightSpan:o,disabledScroller:x,children:t,childrenRef:b})})}},j=e=>{const t=(0,o.useRef)(null);return(0,p.jsx)(r.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const w=()=>{const{modal:e}=r.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:r,...i}=b({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:l}=e.info({...i,content:r});return o.close=l,o}},B=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:i,title:a,danger:c,wrapClassName:u,message:m,iconSetting:f={},confirmType: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"},f);if(e[o]){const{destroy:t}=e[o]({..._,icon:null,wrapClassName:l()(s["confirm-modal-wrap"],u,{[s["is-danger"]]:c}),title:(0,p.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,p.jsxs)(r.Space,{size:0,align:"start",className:s.title,children:[c?(0,p.jsx)(d.default,{className:l()("title-icon",`title-icon-${"confirm"===o?h:o}`),type:i||g["confirm"===o?h:o]}):null,a]})}),content:(0,p.jsxs)(r.Space,{size:0,align:"start",className:l()(s.content,{[s["has-title"]]:a}),children:[!a&&c?(0,p.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}},N=j,I=e=>{let{items:t,className:n,activeKey:o,withDecorator:i,defaultActiveKey:s,onChange:a,...c}=e;return{...c,className:l()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,p.jsx)(r.Tabs,{items:t.map((t=>{let{withDecorator:o,...r}=t;return Object.assign({},r,{children:"function"===typeof o?o((t=>e(Object.assign({},n,t,{children:r.children})))):e(Object.assign({},n,{children:r.children}))})})),destroyInactiveTabPane:!0,activeKey:o,defaultActiveKey:s,onChange:a});return"function"===typeof i?i(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},k=e=>(0,p.jsx)(N,{...I(e)}),P=()=>{const e=w();return t=>e(I(t))};var S=n(73025);const U=e=>{const t=P();return e.api?(0,p.jsx)(S.A,{...e,modalFunc:t}):(0,p.jsx)(r.Button,{...e,onClick:()=>{t(e.modalProps)}})},T=e=>{const t=w();if(!e.api){const{modalProps:n,...o}=e;return(0,p.jsx)(r.Button,{...o,onClick:()=>{t(n)}})}return(0,p.jsx)(S.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),r=n(77116);e.exports=function e(t,n,i,l,s){var a=-1,c=t.length;for(i||(i=r),s||(s=[]);++a<c;){var d=t[a];n>0&&i(d)?n>1?e(d,n-1,i,l,s):o(s,d):l||(s[s.length]=d)}return s}},94008:(e,t,n)=>{var o=n(27449),r=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return r(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),r=n(9261),i=n(35324);e.exports=function(e,t,n){for(var l=-1,s=t.length,a={};++l<s;){var c=t[l],d=o(e,c);n(d,c)&&r(a,i(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),r=n(35324),i=n(69194),l=n(46686),s=n(70914);e.exports=function(e,t,n,a){if(!l(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var f=s(t[c]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=u){var h=m[f];void 0===(p=a?a(h,f,m):void 0)&&(p=l(h)?h:i(t[c+1])?[]:{})}o(m,f,p),m=m[f]}return e}},15857:(e,t,n)=>{var o=n(20819),r=n(55636),i=n(46350);e.exports=function(e){return i(r(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),r=n(22777),i=n(54052),l=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(l&&e&&e[l])}},93950:(e,t,n)=>{var o=n(46686),r=n(4757),i=n(40801),l=Math.max,s=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,f,p=0,h=!1,_=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function y(t){var n=a,o=c;return a=c=void 0,p=t,u=e.apply(o,n)}function x(e){var n=e-f;return void 0===f||n>=t||n<0||_&&e-p>=d}function v(){var e=r();if(x(e))return C(e);m=setTimeout(v,function(e){var n=t-(e-f);return _?s(n,d-(e-p)):n}(e))}function C(e){return m=void 0,g&&a?y(e):(a=c=void 0,u)}function b(){var e=r(),n=x(e);if(a=arguments,c=this,f=e,n){if(void 0===m)return function(e){return p=e,m=setTimeout(v,t),h?y(e):u}(f);if(_)return clearTimeout(m),m=setTimeout(v,t),y(f)}return void 0===m&&(m=setTimeout(v,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),p=0,a=f=c=m=void 0},b.flush=function(){return void 0===m?u:C(r())},b}},20819:(e,t,n)=>{var o=n(80755);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},4757:(e,t,n)=>{var o=n(56552);e.exports=function(){return o.Date.now()}},22616:(e,t,n)=>{var o=n(94008),r=n(15857)((function(e,t){return null==e?{}:o(e,t)}));e.exports=r},79889:(e,t,n)=>{var o=n(93950),r=n(46686);e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),o(e,t,{leading:i,maxWait:t,trailing:l})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=6779.c77cdd06.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/6779.c77cdd06.chunk.js","mappings":"mNAGA,QAAeA,G,2HCEf,MA+BA,EA/BkBC,CAACC,EAAUC,KAC3B,MAAMC,GAAaC,EAAAA,EAAAA,QAAO,MAC1BD,EAAWE,QAAUC,OAAOC,OAC1B,CAAC,EACD,CAAEC,KAAM,IAAKC,YAAY,GACzBP,GAEF,MAAMQ,GAAMN,EAAAA,EAAAA,QAAO,MACbO,EAAkBC,IAAeX,GAoBvC,OAnBAY,EAAAA,EAAAA,kBAAgB,KACd,MAAMC,EAAKJ,EAAIL,QACTU,EAAWA,IACRC,OAAOC,uBAAsB,KAClCH,GAAMH,EAAgBG,EAAG,IAG7BC,IACA,MAAMG,EAAiB,IAAIC,gBACxBhB,EAAWE,QAAQI,WAAaW,IAAWC,KAC1CN,EACAZ,EAAWE,QAAQG,OAIvB,OADAM,GAAMI,EAAeI,QAAQR,GACtB,KACLI,EAAeK,YAAY,CAC5B,GACA,CAACZ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,EAAOC,QAlBP,SAAkB6B,EAAMU,EAAM/Q,GAC5B,IAAIsR,GAAU,EACVE,GAAW,EAEf,GAAmB,mBAARnB,EACT,MAAM,IAAIoB,UAnDQ,uBAyDpB,OAJI/B,EAAS1P,KACXsR,EAAU,YAAatR,IAAYA,EAAQsR,QAAUA,EACrDE,EAAW,aAAcxR,IAAYA,EAAQwR,SAAWA,GAEnDtQ,EAASmP,EAAMU,EAAM,CAC1B,QAAWO,EACX,QAAWP,EACX,SAAYS,GAEhB,C","sources":["common/components/SimpleBar.js","common/hooks/useResize.js","webpack://@kne-components/components-core/./src/components/ButtonGroup/style.module.scss?7e95","components/ButtonGroup/index.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_basePick.js","../node_modules/lodash/_basePickBy.js","../node_modules/lodash/_baseSet.js","../node_modules/lodash/_flatRest.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/debounce.js","../node_modules/lodash/flatten.js","../node_modules/lodash/now.js","../node_modules/lodash/pick.js","../node_modules/lodash/throttle.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","import { useLayoutEffect, useRef } from \"react\";\nimport throttle from \"lodash/throttle\";\nimport debounce from \"lodash/debounce\";\nimport useRefCallback from \"@kne/use-ref-callback\";\n\nconst useResize = (callback, options) => {\n const optionsRef = useRef(null);\n optionsRef.current = Object.assign(\n {},\n { time: 500, isDebounce: false },\n options\n );\n const ref = useRef(null);\n const callbackHandler = useRefCallback(callback);\n useLayoutEffect(() => {\n const el = ref.current;\n const computed = () => {\n return window.requestAnimationFrame(() => {\n el && callbackHandler(el);\n });\n };\n computed();\n const resizeObserver = new ResizeObserver(\n (optionsRef.current.isDebounce ? debounce : throttle)(\n computed,\n optionsRef.current.time\n )\n );\n el && resizeObserver.observe(el);\n return () => {\n resizeObserver.disconnect();\n };\n }, [callbackHandler]);\n return ref;\n};\n\nexport default useResize;\n","// extracted by mini-css-extract-plugin\nexport default {\"width-container\":\"style_width-container__JfEbg__UI56B\",\"hidden-container\":\"style_hidden-container__EdySA__UI56B\",\"hidden-inner\":\"style_hidden-inner__vAN59__UI56B\",\"menu-list\":\"style_menu-list__VDttR__UI56B\",\"btn-item\":\"style_btn-item__mp5MQ__UI56B\"};","import { startTransition, useState } from \"react\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport { Button, Dropdown, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport Icon from \"@components/Icon\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport ConfirmButton from \"@components/ConfirmButton\";\nimport useResize from \"@common/hooks/useResize\";\nimport pick from \"lodash/pick\";\nimport style from \"./style.module.scss\";\nimport memoize from \"lodash/memoize\";\n\nconst areaWidthComputed = memoize(\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n const spaceWidth = (() => {\n if (compact) {\n return 0;\n }\n\n if ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) > -1) {\n return ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) + 1) * 8;\n }\n\n if (Number.isInteger(spaceProps.size)) {\n return spaceProps.size;\n }\n return 8;\n })();\n\n let targetLength = 0,\n targetWidth = 0;\n\n // 采取先加后减策略\n while (\n amountWidth >=\n targetWidth +\n buttonWidthList[targetLength] +\n targetLength * spaceWidth &&\n targetLength < buttonWidthList.length\n ) {\n targetWidth += buttonWidthList[targetLength];\n targetLength += 1;\n }\n\n while (\n amountWidth <\n targetWidth +\n (targetLength - 1) * spaceWidth +\n (targetLength < buttonWidthList.length\n ? moreBtnWidth + spaceWidth\n : 0) &&\n targetLength > 0\n ) {\n targetWidth -= buttonWidthList[targetLength - 1];\n targetLength -= 1;\n }\n\n return targetLength;\n },\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n return `${amountWidth}${moreBtnWidth}${buttonWidthList.join(\n \",\"\n )}${Object.values(spaceProps).join(\",\")}${compact && compact.toString()}`;\n }\n);\n\nconst ButtonGroup = ({ list, more, compact, ...props }) => {\n const spaceProps = pick(props, [\"size\", \"split\", \"align\", \"style\"]);\n const [showLength, setShowLength] = useState(list.length && 1);\n const computedLength = useRefCallback(() => {\n const el = targetRef.current,\n moreEl = moreRef.current,\n widthEl = ref.current;\n if (!el) {\n return;\n }\n\n const buttonEls = el.querySelectorAll(\".button-group-item\");\n if (!buttonEls) {\n return;\n }\n if (buttonEls.length === 0) {\n return;\n }\n\n const amountWidth = widthEl.clientWidth,\n moreBtnWidth = moreEl.clientWidth,\n buttonWidthList = [].map.call(buttonEls, (el) => el.offsetWidth);\n const targetLength = areaWidthComputed({\n amountWidth,\n moreBtnWidth,\n buttonWidthList,\n spaceProps,\n compact,\n });\n startTransition(() => {\n setShowLength(targetLength);\n });\n });\n const ref = useResize(computedLength);\n const targetRef = useResize(computedLength);\n const moreRef = useResize(computedLength);\n const otherList = list.slice(showLength);\n\n const renderButton = (renderItem, index, isDropdown) => {\n if (typeof renderItem === \"function\") {\n return renderItem({\n key: index,\n className: classnames(\"button-group-item\", style[\"btn-item\"]),\n isDropdown,\n });\n }\n const { className, confirm, buttonComponent, ...props } = renderItem;\n const isConfirm = confirm || props.message;\n const CurrentButton = isConfirm\n ? ConfirmButton\n : buttonComponent || LoadingButton;\n\n return (\n <CurrentButton\n danger={isConfirm && props.isDelete !== false}\n {...Object.assign(\n {},\n props,\n isConfirm && (props.isModal || isDropdown)\n ? {\n isModal: true,\n }\n : {}\n )}\n key={index}\n className={classnames(\n \"button-group-item\",\n style[\"btn-item\"],\n className\n )}\n />\n );\n };\n\n const SpaceComponent = compact ? Space.Compact : Space;\n\n return (\n <>\n <div className={style[\"width-container\"]} ref={ref} />\n <div className={style[\"hidden-container\"]}>\n <div className={style[\"hidden-inner\"]} ref={moreRef}>\n {more}\n </div>\n <div className={style[\"hidden-inner\"]} ref={targetRef}>\n <SpaceComponent {...spaceProps}>\n {list.map(renderButton)}\n </SpaceComponent>\n </div>\n </div>\n <SpaceComponent {...spaceProps}>\n {list\n .slice(0, showLength)\n .map((item, index) => renderButton(item, index, false))}\n {otherList.length > 0 && (\n <Dropdown\n overlayClassName={style[\"menu-list\"]}\n menu={{\n items: otherList.map((item, index) => {\n return {\n key: index,\n label: renderButton(item, index, true),\n };\n }),\n }}\n >\n {more}\n </Dropdown>\n )}\n </SpaceComponent>\n </>\n );\n};\n\nButtonGroup.defaultProps = {\n more: (\n <Button>\n 更多\n <Icon type=\"icon-arrow-thin-down\" />\n </Button>\n ),\n};\n\nexport default ButtonGroup;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__UI56B\",\"is-danger\":\"style_is-danger__gxyAB__UI56B\",\"title\":\"style_title__EEPu2__UI56B\",\"content\":\"style_content__mZZg5__UI56B\",\"has-title\":\"style_has-title__5+PEt__UI56B\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__UI56B\",\"large\":\"style_large__iaqVE__UI56B\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__UI56B\",\"modal-title\":\"style_modal-title__dswaw__UI56B\",\"modal-outer\":\"style_modal-outer__r3SkX__UI56B\",\"modal-body\":\"style_modal-body__jQJSI__UI56B\",\"right-options-modal\":\"style_right-options-modal__FajDP__UI56B\",\"right-options-row\":\"style_right-options-row__-mPb9__UI56B\",\"right-options-col\":\"style_right-options-col__3ilee__UI56B\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__UI56B\",\"content\":\"style_content__k6MIF__UI56B\",\"modal-footer\":\"style_modal-footer__-prbN__UI56B\",\"modal-close\":\"style_modal-close__Oa5Kl__UI56B\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__UI56B\",\"is-danger\":\"style_is-danger__H5110__UI56B\",\"title\":\"style_title__orTym__UI56B\",\"has-title\":\"style_has-title__qy0Wp__UI56B\"};","const importMessages = (locale) => {\n return ({\n 'en-US': () => import('./en-US'), 'zh-CN': () => import('./zh-CN')\n })[locale]();\n};\n\nexport default importMessages;","const renderWithOptions = (footer, options) => {\n if (typeof footer === \"function\") {\n return footer(options);\n }\n return footer;\n};\n\nexport default renderWithOptions;\n","import React, { useRef } from \"react\";\nimport { App, Button, Col, Modal as AntdModal, Row, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\nimport importMessages from \"./locale\";\nimport { FormattedMessage, IntlProvider } from \"@components/Intl\";\nimport Icon from \"@components/Icon\";\nimport renderWithOptions from \"./renderWithOptions\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport SimpleBar from \"@common/components/SimpleBar\";\n\nconst localeModuleName = \"Modal\";\n\nexport const RightOptions = ({ options, rightSpan = 6, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false} className={style[\"right-options-row\"]}>\n <Col span={24 - rightSpan} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={rightSpan} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n rightSpan,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n rightSpan={rightSpan}\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n rightSpan,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n rightSpan,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\nimport { Button } from \"antd\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n if (!props.api) {\n const { modalProps, ...others } = props;\n return (\n <Button\n {...others}\n onClick={() => {\n modal(modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\n if (!props.api) {\n return (\n <Button\n {...props}\n onClick={() => {\n tabsModal(props.modalProps);\n }}\n />\n );\n }\n return <FetchButton {...props} modalFunc={tabsModal} />;\n};\nexport default ModalButton;\n","var arrayPush = require('./_arrayPush'),\n isFlattenable = require('./_isFlattenable');\n\n/**\n * The base implementation of `_.flatten` with support for restricting flattening.\n *\n * @private\n * @param {Array} array The array to flatten.\n * @param {number} depth The maximum recursion depth.\n * @param {boolean} [predicate=isFlattenable] The function invoked per iteration.\n * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks.\n * @param {Array} [result=[]] The initial result value.\n * @returns {Array} Returns the new flattened array.\n */\nfunction baseFlatten(array, depth, predicate, isStrict, result) {\n var index = -1,\n length = array.length;\n\n predicate || (predicate = isFlattenable);\n result || (result = []);\n\n while (++index < length) {\n var value = array[index];\n if (depth > 0 && predicate(value)) {\n if (depth > 1) {\n // Recursively flatten arrays (susceptible to call stack limits).\n baseFlatten(value, depth - 1, predicate, isStrict, result);\n } else {\n arrayPush(result, value);\n }\n } else if (!isStrict) {\n result[result.length] = value;\n }\n }\n return result;\n}\n\nmodule.exports = baseFlatten;\n","var basePickBy = require('./_basePickBy'),\n hasIn = require('./hasIn');\n\n/**\n * The base implementation of `_.pick` without support for individual\n * property identifiers.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @returns {Object} Returns the new object.\n */\nfunction basePick(object, paths) {\n return basePickBy(object, paths, function(value, path) {\n return hasIn(object, path);\n });\n}\n\nmodule.exports = basePick;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","var assignValue = require('./_assignValue'),\n castPath = require('./_castPath'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject'),\n toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.set`.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {Array|string} path The path of the property to set.\n * @param {*} value The value to set.\n * @param {Function} [customizer] The function to customize path creation.\n * @returns {Object} Returns `object`.\n */\nfunction baseSet(object, path, value, customizer) {\n if (!isObject(object)) {\n return object;\n }\n path = castPath(path, object);\n\n var index = -1,\n length = path.length,\n lastIndex = length - 1,\n nested = object;\n\n while (nested != null && ++index < length) {\n var key = toKey(path[index]),\n newValue = value;\n\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n return object;\n }\n\n if (index != lastIndex) {\n var objValue = nested[key];\n newValue = customizer ? customizer(objValue, key, nested) : undefined;\n if (newValue === undefined) {\n newValue = isObject(objValue)\n ? objValue\n : (isIndex(path[index + 1]) ? [] : {});\n }\n }\n assignValue(nested, key, newValue);\n nested = nested[key];\n }\n return object;\n}\n\nmodule.exports = baseSet;\n","var flatten = require('./flatten'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * A specialized version of `baseRest` which flattens the rest array.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @returns {Function} Returns the new function.\n */\nfunction flatRest(func) {\n return setToString(overRest(func, undefined, flatten), func + '');\n}\n\nmodule.exports = flatRest;\n","var Symbol = require('./_Symbol'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray');\n\n/** Built-in value references. */\nvar spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined;\n\n/**\n * Checks if `value` is a flattenable `arguments` object or array.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is flattenable, else `false`.\n */\nfunction isFlattenable(value) {\n return isArray(value) || isArguments(value) ||\n !!(spreadableSymbol && value && value[spreadableSymbol]);\n}\n\nmodule.exports = isFlattenable;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var baseFlatten = require('./_baseFlatten');\n\n/**\n * Flattens `array` a single level deep.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to flatten.\n * @returns {Array} Returns the new flattened array.\n * @example\n *\n * _.flatten([1, [2, [3, [4]], 5]]);\n * // => [1, 2, [3, [4]], 5]\n */\nfunction flatten(array) {\n var length = array == null ? 0 : array.length;\n return length ? baseFlatten(array, 1) : [];\n}\n\nmodule.exports = flatten;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","var basePick = require('./_basePick'),\n flatRest = require('./_flatRest');\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The source object.\n * @param {...(string|string[])} [paths] The property paths to pick.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pick(object, ['a', 'c']);\n * // => { 'a': 1, 'c': 3 }\n */\nvar pick = flatRest(function(object, paths) {\n return object == null ? {} : basePick(object, paths);\n});\n\nmodule.exports = pick;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n"],"names":["SimpleBar","useResize","callback","options","optionsRef","useRef","current","Object","assign","time","isDebounce","ref","callbackHandler","useRefCallback","useLayoutEffect","el","computed","window","requestAnimationFrame","resizeObserver","ResizeObserver","debounce","throttle","observe","disconnect","areaWidthComputed","memoize","_ref","amountWidth","moreBtnWidth","buttonWidthList","spaceProps","compact","spaceWidth","indexOf","size","Number","isInteger","targetLength","targetWidth","length","_ref2","join","values","toString","ButtonGroup","_ref3","list","more","props","pick","showLength","setShowLength","useState","computedLength","targetRef","moreEl","moreRef","widthEl","buttonEls","querySelectorAll","clientWidth","map","call","offsetWidth","startTransition","otherList","slice","renderButton","renderItem","index","isDropdown","key","className","classnames","style","confirm","buttonComponent","isConfirm","message","CurrentButton","ConfirmButton","LoadingButton","_createElement","danger","isDelete","isModal","SpaceComponent","Space","Compact","_jsxs","_Fragment","children","_jsx","item","Dropdown","overlayClassName","menu","items","label","defaultProps","Button","Icon","type","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","title","onClick","onCancel","disabled","showCancel","cancelText","okText","placement","getContainer","formatMessage","useIntl","modal","useConfirmModal","e","confirmType","id","onOk","Popconfirm","direction","stopPropagation","align","onConfirm","okButtonProps","getPopupContainer","ConfirmLink","Typography","Link","ConfirmText","Text","renderWithOptions","footer","localeModuleName","RightOptions","rightSpan","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","innerWidth","Footer","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","IntlProvider","FormattedMessage","filter","display","ButtonComponent","autoClose","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","icon","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","warning","error","success","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","modalProps","others","arrayPush","require","isFlattenable","module","exports","baseFlatten","array","depth","predicate","isStrict","result","value","basePickBy","hasIn","object","paths","path","baseGet","baseSet","castPath","assignValue","isIndex","isObject","toKey","customizer","lastIndex","nested","newValue","objValue","undefined","flatten","overRest","setToString","func","Symbol","isArguments","spreadableSymbol","isConcatSpreadable","now","toNumber","nativeMax","max","nativeMin","wait","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","TypeError","invokeFunc","thisArg","apply","shouldInvoke","timeSinceLastCall","timerExpired","trailingEdge","setTimeout","timeWaiting","remainingWait","debounced","isInvoking","this","leadingEdge","clearTimeout","cancel","flush","root","Date","basePick","flatRest"],"sourceRoot":""}
|