@kne-components/components-core 0.1.45 → 0.1.46
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 +118 -118
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.c4951560.chunk.css +2 -0
- package/build/static/css/{1151.b83efc6d.chunk.css.map → 1151.c4951560.chunk.css.map} +1 -1
- package/build/static/css/1153.805e5b20.chunk.css +2 -0
- package/build/static/css/{1153.d211205e.chunk.css.map → 1153.805e5b20.chunk.css.map} +1 -1
- package/build/static/css/1454.59212fdd.chunk.css +2 -0
- package/build/static/css/{1454.f7186781.chunk.css.map → 1454.59212fdd.chunk.css.map} +1 -1
- package/build/static/css/1554.1f110c67.chunk.css +2 -0
- package/build/static/css/{1554.b7cfc023.chunk.css.map → 1554.1f110c67.chunk.css.map} +1 -1
- package/build/static/css/{2503.acb88450.chunk.css → 2503.2219de14.chunk.css} +2 -2
- package/build/static/css/{2503.acb88450.chunk.css.map → 2503.2219de14.chunk.css.map} +1 -1
- package/build/static/css/{2517.3f0d1ef8.chunk.css → 2517.0ae1cdfe.chunk.css} +2 -2
- package/build/static/css/{2517.3f0d1ef8.chunk.css.map → 2517.0ae1cdfe.chunk.css.map} +1 -1
- package/build/static/css/2526.cc3e37bc.chunk.css +2 -0
- package/build/static/css/{2526.3e327202.chunk.css.map → 2526.cc3e37bc.chunk.css.map} +1 -1
- package/build/static/css/2716.be6998f3.chunk.css +2 -0
- package/build/static/css/{2716.46dd401c.chunk.css.map → 2716.be6998f3.chunk.css.map} +1 -1
- package/build/static/css/{2730.731593bc.chunk.css → 2730.238a5ee9.chunk.css} +2 -2
- package/build/static/css/{2730.731593bc.chunk.css.map → 2730.238a5ee9.chunk.css.map} +1 -1
- package/build/static/css/{289.47dca2c4.chunk.css → 289.d7ce4d8e.chunk.css} +2 -2
- package/build/static/css/{289.47dca2c4.chunk.css.map → 289.d7ce4d8e.chunk.css.map} +1 -1
- package/build/static/css/2999.35ce31f0.chunk.css +2 -0
- package/build/static/css/{2999.a610dbcb.chunk.css.map → 2999.35ce31f0.chunk.css.map} +1 -1
- package/build/static/css/3040.ce6a37fb.chunk.css +2 -0
- package/build/static/css/{3040.cd70a558.chunk.css.map → 3040.ce6a37fb.chunk.css.map} +1 -1
- package/build/static/css/3333.b4c8da12.chunk.css +2 -0
- package/build/static/css/{3333.20308c86.chunk.css.map → 3333.b4c8da12.chunk.css.map} +1 -1
- package/build/static/css/{3843.69ad2a7c.chunk.css → 3843.be5cca2e.chunk.css} +2 -2
- package/build/static/css/{3843.69ad2a7c.chunk.css.map → 3843.be5cca2e.chunk.css.map} +1 -1
- package/build/static/css/4666.16fbf29d.chunk.css +2 -0
- package/build/static/css/{4666.e03f5a2f.chunk.css.map → 4666.16fbf29d.chunk.css.map} +1 -1
- package/build/static/css/5600.4d8c099c.chunk.css +2 -0
- package/build/static/css/{5600.92bd0867.chunk.css.map → 5600.4d8c099c.chunk.css.map} +1 -1
- package/build/static/css/5846.177176a9.chunk.css +2 -0
- package/build/static/css/{5846.5bccb785.chunk.css.map → 5846.177176a9.chunk.css.map} +1 -1
- package/build/static/css/5868.2fd57fac.chunk.css +2 -0
- package/build/static/css/{5868.5c823973.chunk.css.map → 5868.2fd57fac.chunk.css.map} +1 -1
- package/build/static/css/{5996.312bfdb2.chunk.css → 5996.b8e9986c.chunk.css} +2 -2
- package/build/static/css/{5996.312bfdb2.chunk.css.map → 5996.b8e9986c.chunk.css.map} +1 -1
- package/build/static/css/6779.00d8a875.chunk.css +2 -0
- package/build/static/css/{6779.df40dab5.chunk.css.map → 6779.00d8a875.chunk.css.map} +1 -1
- package/build/static/css/7227.c21c063c.chunk.css +2 -0
- package/build/static/css/{7227.0eb404fe.chunk.css.map → 7227.c21c063c.chunk.css.map} +1 -1
- package/build/static/css/8148.f0ed6db8.chunk.css +2 -0
- package/build/static/css/{8148.8ad972cf.chunk.css.map → 8148.f0ed6db8.chunk.css.map} +1 -1
- package/build/static/css/8393.d0a60e6f.chunk.css +2 -0
- package/build/static/css/{8393.ea223dee.chunk.css.map → 8393.d0a60e6f.chunk.css.map} +1 -1
- package/build/static/css/{8725.17a179fb.chunk.css → 8725.74ffba59.chunk.css} +2 -2
- package/build/static/css/{8725.17a179fb.chunk.css.map → 8725.74ffba59.chunk.css.map} +1 -1
- package/build/static/css/9053.600e3e46.chunk.css +2 -0
- package/build/static/css/{9053.57fba7d8.chunk.css.map → 9053.600e3e46.chunk.css.map} +1 -1
- package/build/static/css/931.8a27ac23.chunk.css +2 -0
- package/build/static/css/{931.2f2b5b26.chunk.css.map → 931.8a27ac23.chunk.css.map} +1 -1
- package/build/static/css/{9449.46f6888c.chunk.css → 9449.3467800e.chunk.css} +2 -2
- package/build/static/css/{9449.46f6888c.chunk.css.map → 9449.3467800e.chunk.css.map} +1 -1
- package/build/static/css/9689.2487c178.chunk.css +2 -0
- package/build/static/css/{9689.c17769d6.chunk.css.map → 9689.2487c178.chunk.css.map} +1 -1
- package/build/static/js/1153.b50a3ee9.chunk.js +3 -0
- package/build/static/js/{1153.0dd6423b.chunk.js.map → 1153.b50a3ee9.chunk.js.map} +1 -1
- package/build/static/js/{1454.0556a15d.chunk.js → 1454.08039ff2.chunk.js} +3 -3
- package/build/static/js/{1454.0556a15d.chunk.js.map → 1454.08039ff2.chunk.js.map} +1 -1
- package/build/static/js/1554.469d6375.chunk.js +3 -0
- package/build/static/js/{1554.44c98ff2.chunk.js.map → 1554.469d6375.chunk.js.map} +1 -1
- package/build/static/js/{1664.4c500116.chunk.js → 1664.2c960289.chunk.js} +2 -2
- package/build/static/js/{1664.4c500116.chunk.js.map → 1664.2c960289.chunk.js.map} +1 -1
- package/build/static/js/{2503.e05663f8.chunk.js → 2503.73ed21bd.chunk.js} +2 -2
- package/build/static/js/{2503.e05663f8.chunk.js.map → 2503.73ed21bd.chunk.js.map} +1 -1
- package/build/static/js/2517.1bf60408.chunk.js +2 -0
- package/build/static/js/{2517.1c1b3756.chunk.js.map → 2517.1bf60408.chunk.js.map} +1 -1
- package/build/static/js/2526.23c3be83.chunk.js +2 -0
- package/build/static/js/{2526.1a3d5789.chunk.js.map → 2526.23c3be83.chunk.js.map} +1 -1
- package/build/static/js/{2716.5cbf7666.chunk.js → 2716.0ea9fdf2.chunk.js} +3 -3
- package/build/static/js/{2716.5cbf7666.chunk.js.map → 2716.0ea9fdf2.chunk.js.map} +1 -1
- package/build/static/js/2730.6ea58882.chunk.js +2 -0
- package/build/static/js/{2730.a72fbc35.chunk.js.map → 2730.6ea58882.chunk.js.map} +1 -1
- package/build/static/js/{289.a59d9b5e.chunk.js → 289.bd2aaa0d.chunk.js} +2 -2
- package/build/static/js/{289.a59d9b5e.chunk.js.map → 289.bd2aaa0d.chunk.js.map} +1 -1
- package/build/static/js/2999.ffb08bf5.chunk.js +2 -0
- package/build/static/js/2999.ffb08bf5.chunk.js.map +1 -0
- package/build/static/js/{3040.2748ff61.chunk.js → 3040.b052dea3.chunk.js} +2 -2
- package/build/static/js/3040.b052dea3.chunk.js.map +1 -0
- package/build/static/js/{3333.f06988cc.chunk.js → 3333.93a5b225.chunk.js} +2 -2
- package/build/static/js/{3333.f06988cc.chunk.js.map → 3333.93a5b225.chunk.js.map} +1 -1
- package/build/static/js/{36.b7c48937.chunk.js → 36.d8d7dab2.chunk.js} +2 -2
- package/build/static/js/{36.b7c48937.chunk.js.map → 36.d8d7dab2.chunk.js.map} +1 -1
- package/build/static/js/{3843.ca525275.chunk.js → 3843.1411faf8.chunk.js} +2 -2
- package/build/static/js/{3843.ca525275.chunk.js.map → 3843.1411faf8.chunk.js.map} +1 -1
- package/build/static/js/{4666.d1136d85.chunk.js → 4666.3cccba32.chunk.js} +3 -3
- package/build/static/js/{4666.d1136d85.chunk.js.map → 4666.3cccba32.chunk.js.map} +1 -1
- package/build/static/js/5600.201222ba.chunk.js +2 -0
- package/build/static/js/{5600.0caa92c6.chunk.js.map → 5600.201222ba.chunk.js.map} +1 -1
- package/build/static/js/{5846.1174f098.chunk.js → 5846.0ab92739.chunk.js} +2 -2
- package/build/static/js/{5846.1174f098.chunk.js.map → 5846.0ab92739.chunk.js.map} +1 -1
- package/build/static/js/5868.8e8b0047.chunk.js +2 -0
- package/build/static/js/5868.8e8b0047.chunk.js.map +1 -0
- package/build/static/js/{5996.79124fa8.chunk.js → 5996.4bbf7a58.chunk.js} +2 -2
- package/build/static/js/{5996.79124fa8.chunk.js.map → 5996.4bbf7a58.chunk.js.map} +1 -1
- package/build/static/js/6779.0196a95d.chunk.js +2 -0
- package/build/static/js/6779.0196a95d.chunk.js.map +1 -0
- package/build/static/js/{7227.ca0a8f6c.chunk.js → 7227.5d0655b4.chunk.js} +3 -3
- package/build/static/js/{7227.ca0a8f6c.chunk.js.map → 7227.5d0655b4.chunk.js.map} +1 -1
- package/build/static/js/7777.6bd3d829.chunk.js +2 -0
- package/build/static/js/{7777.ad532f7d.chunk.js.map → 7777.6bd3d829.chunk.js.map} +1 -1
- package/build/static/js/{8148.b15aa10e.chunk.js → 8148.a4f4b706.chunk.js} +3 -3
- package/build/static/js/{8148.b15aa10e.chunk.js.map → 8148.a4f4b706.chunk.js.map} +1 -1
- package/build/static/js/{8393.a78505f7.chunk.js → 8393.a30c05b4.chunk.js} +2 -2
- package/build/static/js/8393.a30c05b4.chunk.js.map +1 -0
- package/build/static/js/{8725.55799c34.chunk.js → 8725.eb42a763.chunk.js} +2 -2
- package/build/static/js/{8725.55799c34.chunk.js.map → 8725.eb42a763.chunk.js.map} +1 -1
- package/build/static/js/{9053.8d32ad5e.chunk.js → 9053.5472c4cb.chunk.js} +3 -3
- package/build/static/js/{9053.8d32ad5e.chunk.js.map → 9053.5472c4cb.chunk.js.map} +1 -1
- package/build/static/js/{931.9083d558.chunk.js → 931.0f053987.chunk.js} +2 -2
- package/build/static/js/{931.9083d558.chunk.js.map → 931.0f053987.chunk.js.map} +1 -1
- package/build/static/js/9449.37718185.chunk.js +2 -0
- package/build/static/js/{9449.9aa5e43c.chunk.js.map → 9449.37718185.chunk.js.map} +1 -1
- package/build/static/js/{main.5a20df0c.js → main.54197b0c.js} +2 -2
- package/build/static/js/{main.5a20df0c.js.map → main.54197b0c.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1151.b83efc6d.chunk.css +0 -2
- package/build/static/css/1153.d211205e.chunk.css +0 -2
- package/build/static/css/1454.f7186781.chunk.css +0 -2
- package/build/static/css/1554.b7cfc023.chunk.css +0 -2
- package/build/static/css/2526.3e327202.chunk.css +0 -2
- package/build/static/css/2716.46dd401c.chunk.css +0 -2
- package/build/static/css/2999.a610dbcb.chunk.css +0 -2
- package/build/static/css/3040.cd70a558.chunk.css +0 -2
- package/build/static/css/3333.20308c86.chunk.css +0 -2
- package/build/static/css/4666.e03f5a2f.chunk.css +0 -2
- package/build/static/css/5600.92bd0867.chunk.css +0 -2
- package/build/static/css/5846.5bccb785.chunk.css +0 -2
- package/build/static/css/5868.5c823973.chunk.css +0 -2
- package/build/static/css/6779.df40dab5.chunk.css +0 -2
- package/build/static/css/7227.0eb404fe.chunk.css +0 -2
- package/build/static/css/8148.8ad972cf.chunk.css +0 -2
- package/build/static/css/8393.ea223dee.chunk.css +0 -2
- package/build/static/css/9053.57fba7d8.chunk.css +0 -2
- package/build/static/css/931.2f2b5b26.chunk.css +0 -2
- package/build/static/css/9689.c17769d6.chunk.css +0 -2
- package/build/static/js/1153.0dd6423b.chunk.js +0 -3
- package/build/static/js/1554.44c98ff2.chunk.js +0 -3
- package/build/static/js/2517.1c1b3756.chunk.js +0 -2
- package/build/static/js/2526.1a3d5789.chunk.js +0 -2
- package/build/static/js/2730.a72fbc35.chunk.js +0 -2
- package/build/static/js/2999.00d2f675.chunk.js +0 -2
- package/build/static/js/2999.00d2f675.chunk.js.map +0 -1
- package/build/static/js/3040.2748ff61.chunk.js.map +0 -1
- package/build/static/js/5600.0caa92c6.chunk.js +0 -2
- package/build/static/js/5868.ce2a2970.chunk.js +0 -2
- package/build/static/js/5868.ce2a2970.chunk.js.map +0 -1
- package/build/static/js/6779.c39d5d55.chunk.js +0 -2
- package/build/static/js/6779.c39d5d55.chunk.js.map +0 -1
- package/build/static/js/7777.ad532f7d.chunk.js +0 -2
- package/build/static/js/8393.a78505f7.chunk.js.map +0 -1
- package/build/static/js/9449.9aa5e43c.chunk.js +0 -2
- /package/build/static/js/{1153.0dd6423b.chunk.js.LICENSE.txt → 1153.b50a3ee9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1454.0556a15d.chunk.js.LICENSE.txt → 1454.08039ff2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.44c98ff2.chunk.js.LICENSE.txt → 1554.469d6375.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.5cbf7666.chunk.js.LICENSE.txt → 2716.0ea9fdf2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.d1136d85.chunk.js.LICENSE.txt → 4666.3cccba32.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.ca0a8f6c.chunk.js.LICENSE.txt → 7227.5d0655b4.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{8148.b15aa10e.chunk.js.LICENSE.txt → 8148.a4f4b706.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9053.8d32ad5e.chunk.js.LICENSE.txt → 9053.5472c4cb.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
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:()=>s});var o=n(8762),r=n.n(o);n(46733);const s=r()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),r=n(79889),s=n.n(r),i=n(93950),l=n.n(i),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),i=c()(e);return(0,o.useLayoutEffect)((()=>{const e=r.current,t=()=>(0,o.startTransition)((()=>{e&&i(e)}));t();const a=new ResizeObserver((n.current.isDebounce?l():s())(t,n.current.time));return e&&a.observe(e),()=>{a.disconnect()}}),[i]),r}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>N});var o=n(73884),r=n(96418),s=n.n(r),i=n(55199),l=n(83136),a=n.n(l),c=n(64671),d=n(81014),u=n(58407),m=n(77964),f=n(22616),p=n.n(f);const _="style_width-container__JfEbg__1DfGQ",h="style_hidden-container__EdySA__1DfGQ",g="style_hidden-inner__vAN59__1DfGQ",y="style_menu-list__VDttR__1DfGQ",x="style_btn-item__mp5MQ__1DfGQ";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:s}=e;const i=s?0:["small","middle","large"].indexOf(r.size)>-1?8*(["small","middle","large"].indexOf(r.size)+1):Number.isInteger(r.size)?r.size:8;let l=0,a=0;for(;t>=a+o[l]+l*i&&l<o.length;)a+=o[l],l+=1;for(;t<a+(l-1)*i+(l<o.length?n+i:0)&&l>0;)a-=o[l-1],l-=1;return l}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:s}=e;return"".concat(t).concat(n).concat(o.join(",")).concat(Object.values(r).join(",")).concat(s&&s.toString())})),w=e=>{let{list:t,more:n,compact:r,...l}=e;const c=p()(l,["size","split","align","style"]),[f,v]=(0,o.useState)(t.length),C=s()((()=>{const e=N.current,t=D.current,n=w.current;if(!e)return;const s=e.querySelectorAll(".button-group-item");if(!s)return;if(0===s.length)return;const i=n.clientWidth,l=t.clientWidth,a=[].map.call(s,(e=>e.offsetWidth)),d=j({amountWidth:i,moreBtnWidth:l,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{v(d)}))})),w=(0,m.A)(C),N=(0,m.A)(C),D=(0,m.A)(C),k=t.slice(f),P=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",x),isDropdown:n});const{className:r,confirm:s,...i}=e,l=s||i.message,c=l?u.default:d.default;return(0,o.createElement)(c,{danger:l&&!1!==i.isDelete,...Object.assign({},i,l&&(i.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",x,r)})},Q=r?i.Space.Compact:i.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:_,ref:w}),(0,b.jsxs)("div",{className:h,children:[(0,b.jsx)("div",{className:g,ref:D,children:n}),(0,b.jsx)("div",{className:g,ref:N,children:(0,b.jsx)(Q,{...c,children:t.map(P)})})]}),(0,b.jsxs)(Q,{...c,children:[t.slice(0,f).map(((e,t)=>P(e,t,!1))),k.length>0&&(0,b.jsx)(i.Dropdown,{overlayClassName:y,menu:{items:k.map(((e,t)=>({key:t,label:P(e,t,!0)})))},children:n})]})]})};w.defaultProps={more:(0,b.jsxs)(i.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const N=w},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>g,ConfirmText:()=>y,default:()=>x,withConfirm:()=>h});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 s=n(64671),i=n(58609),l=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__1DfGQ",u="style_is-danger__gxyAB__1DfGQ",m="style_title__EEPu2__1DfGQ",f="style_content__mZZg5__1DfGQ",p="style_has-title__5+PEt__1DfGQ";var _=n(70579);const h=e=>{const t=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:a=!0,onClick:h,onCancel:g,disabled:y,showCancel:x,cancelText:v,isModal:C,okText:b,placement:j,getContainer:w,...N}=t;const{formatMessage:D}=(0,i.useIntl)({moduleName:"ConfirmButton"}),k=(0,l.useConfirmModal)();return C?(0,_.jsx)(e,{...N,onClick:e=>{k({type:"confirm",title:n,getContainer:w,danger:a,message:r||D({id:"message"}),okText:b||D(a?{id:"delete"}:{id:"confirm"}),cancelText:v||D({id:"cancel"}),onCancel:g,onOk:h})}}):(0,_.jsx)(o.Popconfirm,{title:(0,_.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,_.jsxs)(o.Space,{size:0,align:"start",className:m,children:[(0,_.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,_.jsxs)(o.Space,{size:0,align:"start",className:c()(f,{[p]:n}),children:[!n&&(0,_.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),r||D({id:"message"})]})]}),placement:j,onConfirm:h,okButtonProps:{danger:a},onCancel:g,overlayClassName:c()(d,{[u]:a}),getPopupContainer:w,disabled:y,showCancel:x,cancelText:v,okText:b||D(a?{id:"delete"}:{id:"confirm"}),children:(0,_.jsx)(e,{...N,disabled:y})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},g=h(o.Typography.Link),y=h(o.Typography.Text),x=h(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>T,TabsModal:()=>D,TabsModalButton:()=>Q,default:()=>w,useConfirmModal:()=>j,useModal:()=>b,useTabsModal:()=>k});var o=n(73884),r=n(55199),s=n(83136),i=n.n(s);const l={modal:"style_modal__Pm3cF__1DfGQ",large:"style_large__iaqVE__1DfGQ","modal-body-inner":"style_modal-body-inner__4PhpA__1DfGQ","modal-title":"style_modal-title__dswaw__1DfGQ","modal-outer":"style_modal-outer__r3SkX__1DfGQ","modal-body":"style_modal-body__jQJSI__1DfGQ","right-options-modal":"style_right-options-modal__FajDP__1DfGQ","right-options-col":"style_right-options-col__3ilee__1DfGQ","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__1DfGQ","modal-footer":"style_modal-footer__-prbN__1DfGQ","modal-close":"style_modal-close__Oa5Kl__1DfGQ","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__1DfGQ","is-danger":"style_is-danger__H5110__1DfGQ",title:"style_title__orTym__1DfGQ",content:"style_content__k6MIF__1DfGQ","has-title":"style_has-title__qy0Wp__1DfGQ"},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 _="Modal",h=e=>{let{options:t,children:n}=e;return t?(0,p.jsxs)(r.Row,{wrap:!1,children:[(0,p.jsx)(r.Col,{span:18,className:l["right-options-col"],children:n}),(0,p.jsx)(r.Col,{span:6,className:l["right-options-col"],children:t})]}):n},g=e=>{let{footer:t,footerButtons:n,onConfirm:s,onCancel:i,onClose:l,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:_,children:(0,p.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:i},{type:"primary",children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:_,children:(0,p.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:_})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:s=!0,display:i,...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 s&&!1!==o&&l&&l(),o}})}))})})]})},y=e=>{let{title:t,footer:n,disabledScroller:s,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:_,children:h,targetProps:y}=e;const x=(0,o.useRef)(null);return(0,p.jsxs)("div",{className:l["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,p.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:l["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:l["modal-title"],children:t}),(0,p.jsx)(f.A,{className:i()(l["modal-body"],{[l["is-disabled-scroller"]]:s},"modal-body"),ref:x,children:(0,p.jsx)("div",{className:i()(l["modal-body-inner"],"modal-body-inner"),children:h})}),null!==n||a?(0,p.jsx)("div",{className:i()(l["modal-footer"],"modal-footer"),children:(0,p.jsx)(g,{footer:n,footerButtons:a,onConfirm:m,onCancel:_,onClose:c,targetProps:y})}):null]})},x=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:s,onConfirm:i,onCancel:l,footer:a,rightOptions:c,disabledScroller:d,children:m}=e;const f=e=>(e=Object.assign({},{title:o},e),(0,p.jsx)(y,{title:u(e.title,{...e,close:s}),closable:r,onClose:s,onConfirm:i,onCancel:l,footerButtons:u(n,{...e,close:s}),disabledScroller:d,footer:u(a,{...e,close:s}),targetProps:e,children:(0,p.jsx)(h,{options:u(c,{...e,close:s}),children:u(m,{...e,close:s})})}));return"function"===typeof t?t(f):f({})},v=e=>{let{children:t,rightOptions:n,footer:o,footerButtons:r,className:s,size:d,title:u,onClose:m,onConfirm:f,onCancel:_,closable:h,disabledScroller:g,withDecorator:y,...v}=e;return{...v,icon:null,centered:!0,title:null,maskClosable:!!v.hasOwnProperty("maskClosable")&&v.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:i()(s,l.modal,l[d],{[l["right-options-modal"]]:n}),...(C=d,"large"===C?{width:"".concat(Math.min(window.innerWidth-64,1500),"px")}:"small"===C?{width:"600px"}:{width:"1000px"}),children:(0,p.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:x({withDecorator:y,title:u,closable:h,onClose:m,onConfirm:f,onCancel:_,footer:o,footerButtons:r,rightOptions:n,disabledScroller:g,children:t})})};var C},C=e=>(0,p.jsx)(r.Modal,{...v(e)});C.defaultProps={size:"default"};const b=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{children:o,...r}=v({onClose:()=>n.close(),...t}),{destroy:s}=e.info({...r,content:o});return n.close=s,n}},j=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:s,title:a,danger:c,wrapClassName:u,message:m,iconSetting:f={},confirmType:_="info",...h}={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]({...h,icon:null,wrapClassName:i()(l["confirm-modal-wrap"],u,{[l["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:l.title,children:[(0,p.jsx)(d.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?_:o)),type:s||g["confirm"===o?_:o]}),a]})}),content:(0,p.jsxs)(r.Space,{size:0,align:"start",className:i()(l.content,{[l["has-title"]]:a}),children:[!a&&(0,p.jsx)(d.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?_:o)),type:s||g["confirm"===o?_:o]}),m]})});n.close=t}return n}},w=C,N=e=>{let{items:t,className:n,activeKey:o,withDecorator:s,defaultActiveKey:l,onChange:a,...c}=e;return{...c,className:i()(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:l,onChange:a});return"function"===typeof s?s(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},D=e=>(0,p.jsx)(w,{...N(e)}),k=()=>{const e=b();return t=>e(N(t))};var P=n(73025);const Q=e=>{const t=k();return(0,p.jsx)(P.A,{...e,modalFunc:t})},T=e=>{const t=b();return(0,p.jsx)(P.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),r=n(77116);e.exports=function e(t,n,s,i,l){var a=-1,c=t.length;for(s||(s=r),l||(l=[]);++a<c;){var d=t[a];n>0&&s(d)?n>1?e(d,n-1,s,i,l):o(l,d):i||(l[l.length]=d)}return l}},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),s=n(35324);e.exports=function(e,t,n){for(var i=-1,l=t.length,a={};++i<l;){var c=t[i],d=o(e,c);n(d,c)&&r(a,s(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),r=n(35324),s=n(69194),i=n(46686),l=n(70914);e.exports=function(e,t,n,a){if(!i(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var f=l(t[c]),p=n;if("__proto__"===f||"constructor"===f||"prototype"===f)return e;if(c!=u){var _=m[f];void 0===(p=a?a(_,f,m):void 0)&&(p=i(_)?_:s(t[c+1])?[]:{})}o(m,f,p),m=m[f]}return e}},15857:(e,t,n)=>{var o=n(20819),r=n(55636),s=n(46350);e.exports=function(e){return s(r(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),r=n(22777),s=n(54052),i=o?o.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||r(e)||!!(i&&e&&e[i])}},93950:(e,t,n)=>{var o=n(46686),r=n(4757),s=n(40801),i=Math.max,l=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,f,p=0,_=!1,h=!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||h&&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 h?l(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),_?y(e):u}(f);if(h)return clearTimeout(m),m=setTimeout(v,t),y(f)}return void 0===m&&(m=setTimeout(v,t)),u}return t=s(t)||0,o(n)&&(_=!!n.leading,d=(h="maxWait"in n)?i(s(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 s=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(s="leading"in n?!!n.leading:s,i="trailing"in n?!!n.trailing:i),o(e,t,{leading:s,maxWait:t,trailing:i})}},46733:()=>{}}]);
|
|
2
|
+
//# sourceMappingURL=6779.0196a95d.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/6779.0196a95d.chunk.js","mappings":"mNAGA,QAAeA,G,2HCEf,MA8BA,EA9BkBC,CAACC,EAAUC,KAC3B,MAAMC,GAAaC,EAAAA,EAAAA,QAAO,MAC1BD,EAAWE,QAAUC,OAAOC,OAC1B,CAAC,EACD,CAAEC,KAAM,IAAKC,YAAY,GACzBP,GA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B,aAAarB,GAEfE,EAAiB,EACjBL,EAAWI,EAAeH,EAAWE,OAAUlB,CACjD,EA+BAmC,EAAUM,MA7BV,WACE,YAAmBzC,IAAZkB,EAAwBrC,EAASkD,EAAatB,IACvD,EA4BO0B,CACT,C,kBC5LA,IAAI3D,EAAcJ,EAAQ,OAqB1BE,EAAOC,QALP,SAAiBE,GAEf,OADsB,MAATA,EAAgB,EAAIA,EAAM9L,QACvB6L,EAAYC,EAAO,GAAK,EAC1C,C,iBCnBA,IAAIiE,EAAOtE,EAAQ,OAsBnBE,EAAOC,QAJG,WACR,OAAOmE,EAAKC,KAAKlC,KACnB,C,kBCpBA,IAAImC,EAAWxE,EAAQ,OAoBnB9K,EAnBW8K,EAAQ,MAmBZyE,EAAS,SAAS5D,EAAQC,GACnC,OAAiB,MAAVD,EAAiB,CAAC,EAAI2D,EAAS3D,EAAQC,EAChD,IAEAZ,EAAOC,QAAUjL,C,kBCxBjB,IAAI9B,EAAW4M,EAAQ,OACnBqB,EAAWrB,EAAQ,OAmEvBE,EAAOC,QAlBP,SAAkB6B,EAAMU,EAAMvQ,GAC5B,IAAI8Q,GAAU,EACVE,GAAW,EAEf,GAAmB,mBAARnB,EACT,MAAM,IAAIoB,UAnDQ,uBAyDpB,OAJI/B,EAASlP,KACX8Q,EAAU,YAAa9Q,IAAYA,EAAQ8Q,QAAUA,EACrDE,EAAW,aAAchR,IAAYA,EAAQgR,SAAWA,GAEnD/P,EAAS4O,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 { startTransition, 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 startTransition(() => {\n el && callbackHandler(el);\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__1DfGQ\",\"hidden-container\":\"style_hidden-container__EdySA__1DfGQ\",\"hidden-inner\":\"style_hidden-inner__vAN59__1DfGQ\",\"menu-list\":\"style_menu-list__VDttR__1DfGQ\",\"btn-item\":\"style_btn-item__mp5MQ__1DfGQ\"};","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);\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, ...props } = renderItem;\n const isConfirm = confirm || props.message;\n const CurrentButton = isConfirm ? ConfirmButton : 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__1DfGQ\",\"is-danger\":\"style_is-danger__gxyAB__1DfGQ\",\"title\":\"style_title__EEPu2__1DfGQ\",\"content\":\"style_content__mZZg5__1DfGQ\",\"has-title\":\"style_has-title__5+PEt__1DfGQ\"};","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 onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\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 <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\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 && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\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__1DfGQ\",\"large\":\"style_large__iaqVE__1DfGQ\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__1DfGQ\",\"modal-title\":\"style_modal-title__dswaw__1DfGQ\",\"modal-outer\":\"style_modal-outer__r3SkX__1DfGQ\",\"modal-body\":\"style_modal-body__jQJSI__1DfGQ\",\"right-options-modal\":\"style_right-options-modal__FajDP__1DfGQ\",\"right-options-col\":\"style_right-options-col__3ilee__1DfGQ\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__1DfGQ\",\"modal-footer\":\"style_modal-footer__-prbN__1DfGQ\",\"modal-close\":\"style_modal-close__Oa5Kl__1DfGQ\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__1DfGQ\",\"is-danger\":\"style_is-danger__H5110__1DfGQ\",\"title\":\"style_title__orTym__1DfGQ\",\"content\":\"style_content__k6MIF__1DfGQ\",\"has-title\":\"style_has-title__qy0Wp__1DfGQ\"};","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, children }) => {\n if (!options) {\n return children;\n }\n return (\n <Row wrap={false}>\n <Col span={18} className={style[\"right-options-col\"]}>\n {children}\n </Col>\n <Col span={6} className={style[\"right-options-col\"]}>\n {options}\n </Col>\n </Row>\n );\n};\n\nconst sizeMap = (type) => {\n if (type === \"large\") {\n return { width: `${Math.min(window.innerWidth - 64, 1500)}px` };\n }\n if (type === \"small\") {\n return { width: \"600px\" };\n }\n return { width: \"1000px\" };\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 disabledScroller,\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 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, { ...props, close: onClose })}\n targetProps={props}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\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 footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\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),\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 disabledScroller,\n children,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n return <AntdModal {...computedCommonProps(props)} />;\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\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 <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 {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 && (\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 )}\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\";\n\nconst ModalButton = (props) => {\n const modal = useModal();\n return <FetchButton {...props} modalFunc={modal} />;\n};\n\nexport const TabsModalButton = (props) => {\n const tabsModal = useTabsModal();\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","startTransition","resizeObserver","ResizeObserver","debounce","throttle","observe","disconnect","areaWidthComputed","memoize","_ref","amountWidth","moreBtnWidth","buttonWidthList","spaceProps","compact","spaceWidth","indexOf","size","Number","isInteger","targetLength","targetWidth","length","_ref2","concat","join","values","toString","ButtonGroup","_ref3","list","more","props","pick","showLength","setShowLength","useState","computedLength","targetRef","moreEl","moreRef","widthEl","buttonEls","querySelectorAll","clientWidth","map","call","offsetWidth","otherList","slice","renderButton","renderItem","index","isDropdown","key","className","classnames","style","confirm","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","id","onOk","Popconfirm","direction","stopPropagation","align","onConfirm","okButtonProps","getPopupContainer","ConfirmLink","Typography","Link","ConfirmText","Text","renderWithOptions","footer","localeModuleName","RightOptions","Row","wrap","Col","span","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","getInner","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","width","Math","min","window","innerWidth","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","confirmType","typeEnum","warning","error","success","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","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":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
/*! For license information please see 7227.
|
|
2
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7227],{87227:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var a=r(55199),o=r(83136),n=r.n(o);const s={"state-bar":"style_state-
|
|
3
|
-
//# sourceMappingURL=7227.
|
|
1
|
+
/*! For license information please see 7227.5d0655b4.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7227],{87227:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var a=r(55199),o=r(83136),n=r.n(o);const s={"state-bar":"style_state-bar__3jfis__1DfGQ","has-children":"style_has-children__oQDqU__1DfGQ","tab-tab-control":"style_tab-tab-control__SopeO__1DfGQ","tab-radio-control":"style_tab-radio-control__R8X6-__1DfGQ","tab-step-control":"style_tab-step-control__EQaCl__1DfGQ","inner-state-bar":"style_inner-state-bar__lWmOz__1DfGQ"};var _=r(70579);const l=e=>{let{className:t,type:r="tab",stateOption:o=[],isInner:l,...c}=e;return(0,_.jsx)(a.Tabs,{...c,"data-testid":"components-core-state-bar",className:n()(s["state-bar"],s["tab-".concat(r,"-control")],t,{[s["inner-state-bar"]]:l,[s["has-children"]]:o.some((e=>!!e.children))}),style:{"--total-count":o.length},animated:!1,items:o.map((e=>{let{tab:t,label:r,key:a,...o}=e;return{label:t||r,key:a,...o}}))})}},51153:(e,t,r)=>{var a=r(73884),o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,_=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var a,n={},c=null,b=null;for(a in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(b=t.ref),t)s.call(t,a)&&!l.hasOwnProperty(a)&&(n[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===n[a]&&(n[a]=t[a]);return{$$typeof:o,type:e,key:c,ref:b,props:n,_owner:_.current}}t.Fragment=n,t.jsx=c,t.jsxs=c},70579:(e,t,r)=>{e.exports=r(51153)}}]);
|
|
3
|
+
//# sourceMappingURL=7227.5d0655b4.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/7227.
|
|
1
|
+
{"version":3,"file":"static/js/7227.5d0655b4.chunk.js","mappings":";oNACA,SAAgB,YAAY,gCAAgC,eAAe,mCAAmC,kBAAkB,sCAAsC,oBAAoB,wCAAwC,mBAAmB,uCAAuC,kBAAkB,sDCa9S,MA6BA,EA7BiBA,IAMV,IANW,UAChBC,EAAS,KACTC,EAAO,MAAK,YACZC,EAAc,GAAE,QAChBC,KACGC,GACJL,EACC,OACEM,EAAAA,EAAAA,KAACC,EAAAA,KAAI,IACCF,EACJ,cAAa,4BACbJ,UAAWO,IACTC,EAAM,aACNA,EAAM,OAADC,OAAQR,EAAI,aACjBD,EACA,CACE,CAACQ,EAAM,oBAAqBL,EAC5B,CAACK,EAAM,iBAAkBN,EAAYQ,MAAMC,KAAWA,EAAKC,aAG/DJ,MAAO,CAAE,gBAAiBN,EAAYW,QACtCC,UAAU,EACVC,MAAOb,EAAYc,KAAIC,IAAoC,IAAnC,IAAEC,EAAG,MAAEC,EAAK,IAAEC,KAAQhB,GAAOa,EACnD,MAAO,CAAEE,MAAOD,GAAOC,EAAOC,SAAQhB,EAAO,KAE/C,mBC9BO,IAAIiB,EAAEC,EAAQ,OAASC,EAAEC,OAAOC,IAAI,iBAAiBC,EAAEF,OAAOC,IAAI,kBAAkBE,EAAEC,OAAOC,UAAUC,eAAeC,EAAEV,EAAEW,mDAAmDC,kBAAkBC,EAAE,CAACd,KAAI,EAAGe,KAAI,EAAGC,QAAO,EAAGC,UAAS,GAChP,SAASC,EAAEC,EAAEC,EAAEC,GAAG,IAAIC,EAAEC,EAAE,CAAC,EAAEC,EAAE,KAAKC,EAAE,KAAiF,IAAIH,UAAhF,IAASD,IAAIG,EAAE,GAAGH,QAAG,IAASD,EAAEpB,MAAMwB,EAAE,GAAGJ,EAAEpB,UAAK,IAASoB,EAAEL,MAAMU,EAAEL,EAAEL,KAAcK,EAAEb,EAAEmB,KAAKN,EAAEE,KAAKR,EAAEJ,eAAeY,KAAKC,EAAED,GAAGF,EAAEE,IAAI,GAAGH,GAAGA,EAAEQ,aAAa,IAAIL,KAAKF,EAAED,EAAEQ,kBAAe,IAASJ,EAAED,KAAKC,EAAED,GAAGF,EAAEE,IAAI,MAAM,CAACM,SAASzB,EAAEtB,KAAKsC,EAAEnB,IAAIwB,EAAET,IAAIU,EAAEzC,MAAMuC,EAAEM,OAAOlB,EAAEmB,QAAQ,CAACC,EAAQC,SAAS1B,EAAEyB,EAAQE,IAAIf,EAAEa,EAAQG,KAAKhB,mBCPxWiB,EAAOJ,QAAU,EAAjBI","sources":["webpack://@kne-components/components-core/./src/components/StateBar/style.module.scss?ecea","components/StateBar/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"state-bar\":\"style_state-bar__3jfis__1DfGQ\",\"has-children\":\"style_has-children__oQDqU__1DfGQ\",\"tab-tab-control\":\"style_tab-tab-control__SopeO__1DfGQ\",\"tab-radio-control\":\"style_tab-radio-control__R8X6-__1DfGQ\",\"tab-step-control\":\"style_tab-step-control__EQaCl__1DfGQ\",\"inner-state-bar\":\"style_inner-state-bar__lWmOz__1DfGQ\"};","import { Tabs } from \"antd\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\n/**\n *\n * @param className\n * @param type 'tab' | 'radio' | 'step'\n * @param stateOption\n * @param isInner\n * @param props\n * @returns {JSX.Element}\n * @constructor\n */\nconst StateBar = ({\n className,\n type = \"tab\",\n stateOption = [],\n isInner,\n ...props\n}) => {\n return (\n <Tabs\n {...props}\n data-testid={\"components-core-state-bar\"}\n className={classnames(\n style[\"state-bar\"],\n style[`tab-${type}-control`],\n className,\n {\n [style[\"inner-state-bar\"]]: isInner,\n [style[\"has-children\"]]: stateOption.some((item) => !!item.children),\n }\n )}\n style={{ \"--total-count\": stateOption.length }}\n animated={false}\n items={stateOption.map(({ tab, label, key, ...props }) => {\n return { label: tab || label, key, ...props };\n })}\n />\n );\n};\n\nexport default StateBar;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n"],"names":["_ref","className","type","stateOption","isInner","props","_jsx","Tabs","classnames","style","concat","some","item","children","length","animated","items","map","_ref2","tab","label","key","f","require","k","Symbol","for","l","m","Object","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","ref","__self","__source","q","c","a","g","b","d","e","h","call","defaultProps","$$typeof","_owner","current","exports","Fragment","jsx","jsxs","module"],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7777],{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__1DfGQ","scroller-inner":"style_scroller-inner__NJSE0__1DfGQ","is-moving":"style_is-moving__jGuy0__1DfGQ"};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))),f=(0,s.useRef)();return f.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,s.useEffect)((()=>{const e=f.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:f.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(76329),o=n(33097),l=n.n(o),a=n(15797),c=n.n(a),i=n(1488),u=n.n(i),d=n(70579);const m=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{m(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),m(e.children,t,n?n+":"+e.id:e.id)))},h=c()((e=>{const t=(()=>{const t=new Map;return m(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),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}))},f=(0,r.createContext)(null),{Provider:p}=f,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)(f),u=i?i+":"+e:c+":"+e;return(0,r.useEffect)((()=>{t&&t.length>0&&a&&console.log("[featureId] ".concat(u,",[state] ").concat(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)(p,{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:()=>q});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),f=n(60262),p=n.n(f),x=n(56641),_=n.n(x),y=n(51941);const C={"loading-container":"style_loading-container__tATe2__1DfGQ","width-changer":"style_width-changer__2ZxQE__1DfGQ","table-changer-setting":"style_table-changer-setting__vHBi5__1DfGQ","width-changer-sign":"style_width-changer-sign__JpI-0__1DfGQ","columns-control":"style_columns-control__Yt34Y__1DfGQ","columns-control-content":"style_columns-control-content__1wnZG__1DfGQ","columns-control-content-title":"style_columns-control-content-title__MsQpI__1DfGQ","columns-control-content-scroller":"style_columns-control-content-scroller__VEy4q__1DfGQ","columns-control-content-footer":"style_columns-control-content-footer__rvk74__1DfGQ","columns-control-content-input":"style_columns-control-content-input__fYYyr__1DfGQ","columns-control-content-list":"style_columns-control-content-list__wepM4__1DfGQ","columns-control-content-item":"style_columns-control-content-item__1cPXT__1DfGQ","is-drag":"style_is-drag__HRe9m__1DfGQ","columns-control-content-item-icon":"style_columns-control-content-item-icon__oku-X__1DfGQ","sortable-drag":"style_sortable-drag__N6+aC__1DfGQ","sortable-ghost":"style_sortable-ghost__EbwXI__1DfGQ","columns-control-overlay":"style_columns-control-overlay__QYEXZ__1DfGQ"};var j=n(76329),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_".concat(i.current)),h&&h.setDataFunc&&(h.setDataFunc(i.current,k),n(k))}),1e3),[f,x]=(0,s.useState)(!1),w=(0,s.useRef)(!1),A=(0,s.useRef)({index:-1,width:0}),[S,I]=(0,s.useState)({}),D=(0,s.useRef)(0),E=(0,s.useCallback)((()=>o&&o.length>0&&t.length===o.length&&_()(t,o,((e,t)=>e.key===t.id))?o.map((e=>{let{id:t,width:n,hidden:r}=e;return{id:t,width:n,hidden:r}})):t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})))),[o,t]);(0,s.useEffect)((()=>{O(E())}),[E]);const[k,O]=(0,s.useState)(E),L=l()((e=>{O(e),g()})),N=(0,s.useRef)(k),R=(0,s.useRef)(k);N.current=R.current=k;const M=l()((()=>{const e=t.map((e=>({id:e.key,hidden:e.hidden,width:e.width})));R.current=e,L(e)}));return(0,s.useEffect)((()=>{if(!c.current)return;const e=e=>{const t=e.target;w.current||t.classList.contains("changer-sign")||v(t)||x(!1)},t=()=>{document.body.style.cursor="unset",w.current=!1,A.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&&(A.current={index:d.indexOf(t),locationIndex:u.indexOf(t),width:o,left:s,height:l},I({left:s-n+o-8,top:i-r,height:l}),x(!0)),!w.current&&v(t)&&0>e.pageX-s+8&&x(!1),w.current&&A.current.index>-1){const t=e.pageX-D.current,n=(c.current.querySelector(".ant-table-body")||c.current.querySelector(".ant-table-content")).scrollLeft,s=Math.max(t+A.current.width,100);I({left:Math.max(p()(u.slice(0,A.current.locationIndex).map((e=>e.clientWidth)))-n,0)+s-8,top:i-r,height:A.current.height}),L((e=>{const t=e.slice(0);return t.filter((e=>{let{hidden:t}=e;return!0!==t})).forEach(((e,t)=>{var n;e.width=A.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,L]),{ref:c,sign:f&&(0,b.jsx)("div",{className:u()(C["width-changer-sign"],"changer-sign"),style:{top:S.top,left:S.left,height:S.height},onMouseDown:e=>{e.preventDefault(),w.current=!0,D.current=e.pageX,document.body.style.cursor="url(".concat("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAUCAMAAACgaw2xAAAANlBMVEUAAAAjIyMiIiIhISEjIyMiIiIhISEiIiIjIyMiIiIjIyMjIyMiIiIiIiIiIiIiIiIiIiL///8npLH6AAAAEHRSTlMAZm9zdnd7gISIjKq78fL+6p9oYgAAAAFiS0dEEeK1PboAAAA/SURBVBgZ1cGJDYAgEEXBh7JyKPj7r9ZkQyKUwAx7yhfurCyyDHe8lUlRf4auws/U7qHJmJgSLslYxIALkS192tYB4NtE/LQAAAAASUVORK5CYII=",") 12 10,col-resize")}}),targetColumns:k.filter((e=>{let{hidden:t}=e;return!0!==t})).map((e=>{let{id:t,width:n}=e;return Object.assign({},d.get(t),{width:n,ellipsis:!1})})),popupColumns:R.current,columnMap:m.current,setColumns:e=>{R.current=e},onConfirm:()=>{L(R.current)},onCancel:()=>{R.current=N.current},onReset:()=>{M()}}},A=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_".concat(r),isLocal:!0,ttl:5e3,error:(0,b.jsx)(e,{...n})}):(0,b.jsx)(e,{...n})}};var S=n(74529);const I=n.n(S)()(A,(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 D=n(63361);const E=e=>({"en-US":()=>n.e(6222).then(n.bind(n,86222)),"zh-CN":()=>n.e(6964).then(n.bind(n,56964))}[e]());var k=n(58609),O=n(39835),L=n.n(O),N=n(64671),R=n(81014),M=n(36),P=n(76441);const{Panel:z}=r.Collapse,Q=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:f,visibleColumns:p,hiddenColumns:x}=(0,s.useMemo)((()=>Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},L()(i,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":e.hidden?"hiddenColumns":"visibleColumns")))),[i]),_=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)(R.default,{type:"text",icon:(0,b.jsx)(N.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)(z,{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:p,filter:".ignore-elements",dragClass:C["sortable-drag"],ghostClass:C["sortable-ghost"],forceFallback:!0,setList:e=>{_([...g,...e,...x,...f])},animation:300,delayOnTouchStart:!0,delay:2,children:p.map((e=>(0,b.jsxs)(r.List.Item,{className:u()(C["columns-control-content-item"],C["is-drag"]),children:[(0,b.jsx)(N.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)))}),f.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)(z,{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)(N.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)(R.default,{type:"primary",size:"small",onClick:async()=>{o&&await o(),t()},children:"\u786e\u5b9a"})})]})]})},G=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:f,onReset:p}=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)(Q,{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:f,onReset:p}),onOpenChange:e=>i(e),children:(0,b.jsx)("span",{className:C["table-changer-setting"],children:(0,b.jsx)(N.default,{type:"icon-shezhi"})})})},T=I((e=>{let{className:t,columns:n,originColumns:s,controllerOpen:o,tableColumnFetchApi:l,name:a,scroller:c,featureId:i,...d}=e;const{data:g,setData:f}=l||{},p=e=>{let{children:t}=e;return i?(0,b.jsx)(D.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:p({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)(G,{data:g,columns:s,setData:f,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:f,pagination:p,scroller:x,getColumns:_,getColumnsParams:y,className:j,columns:v,featureId:w,stickyOffset:A,...S}=e;const I=l()(f),D=l()(_),O=(0,s.useMemo)((()=>I(t)),[t,I]),L={dataSource:O.list,pagination:!!p.open&&{total:O.total,showTotal:e=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)(k.FormattedMessage,{id:"Page_Total",moduleName:"TablePage",defaultMessage:"\u5171"}),(0,b.jsx)("span",{className:C.total_text,children:e}),(0,b.jsx)(k.FormattedMessage,{id:"Page_TotalCount",moduleName:"TablePage",defaultMessage:"\u6761"})]}),current:m()(o,[p.paramsType,p.current],1),pageSize:p.defaultPageSize,onChange:p.onChange?p.onChange:(e,t)=>{e!==m()(o,[p.paramsType,p.current],1)?("refresh"===p.requestType?n:r)({[p.paramsType]:{[p.current]:e,[p.pageSize]:t}}):p.onShowSizeChange&&p.onShowSizeChange(e,t)},size:p.size,showSizeChanger:p.showSizeChanger,showQuickJumper:p.showQuickJumper},className:j,style:{"--sticky-offset":A}};return(0,b.jsx)(k.IntlProvider,{importMessages:E,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,{...S,...L,columns:v,scroller:x,featureId:w}):(0,b.jsx)(c(),{data:t,params:y,loader:e=>{let{data:t,params:n}=e;return D({data:t,params:n,formatData:O})},render:e=>{let{data:t}=e;return(0,b.jsx)(T,{...S,...L,columns:t,scroller:x,featureId:w})}})})})})),B=(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})}));B.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 q=B}}]);
|
|
2
|
+
//# sourceMappingURL=7777.6bd3d829.chunk.js.map
|