@kne-components/components-core 0.2.11 → 0.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/asset-manifest.json +122 -122
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1151.0e0f439d.chunk.css +2 -0
- package/build/static/css/{1151.8a1ea8b2.chunk.css.map → 1151.0e0f439d.chunk.css.map} +1 -1
- package/build/static/css/1153.85f06ccf.chunk.css +2 -0
- package/build/static/css/1153.85f06ccf.chunk.css.map +1 -0
- package/build/static/css/1154.f4f205da.chunk.css +2 -0
- package/build/static/css/1154.f4f205da.chunk.css.map +1 -0
- package/build/static/css/1454.773ade76.chunk.css +2 -0
- package/build/static/css/{1454.597915d6.chunk.css.map → 1454.773ade76.chunk.css.map} +1 -1
- package/build/static/css/1554.378aab07.chunk.css +2 -0
- package/build/static/css/{1554.e0060527.chunk.css.map → 1554.378aab07.chunk.css.map} +1 -1
- package/build/static/css/2503.beef9f54.chunk.css +2 -0
- package/build/static/css/{2503.1c697ec5.chunk.css.map → 2503.beef9f54.chunk.css.map} +1 -1
- package/build/static/css/2517.ad3e2b99.chunk.css +2 -0
- package/build/static/css/{2517.98220b06.chunk.css.map → 2517.ad3e2b99.chunk.css.map} +1 -1
- package/build/static/css/2716.3c6f43fb.chunk.css +2 -0
- package/build/static/css/{2716.2ac76682.chunk.css.map → 2716.3c6f43fb.chunk.css.map} +1 -1
- package/build/static/css/2730.860e390e.chunk.css +2 -0
- package/build/static/css/{2730.2d0cbb3d.chunk.css.map → 2730.860e390e.chunk.css.map} +1 -1
- package/build/static/css/289.b138addc.chunk.css +2 -0
- package/build/static/css/{289.e6c6f1da.chunk.css.map → 289.b138addc.chunk.css.map} +1 -1
- package/build/static/css/3142.13adfc3a.chunk.css +2 -0
- package/build/static/css/{3142.3c249a67.chunk.css.map → 3142.13adfc3a.chunk.css.map} +1 -1
- package/build/static/css/3333.2f52a976.chunk.css +2 -0
- package/build/static/css/3333.2f52a976.chunk.css.map +1 -0
- package/build/static/css/{3843.f8664dd9.chunk.css → 3843.0a0692b4.chunk.css} +2 -2
- package/build/static/css/{3843.f8664dd9.chunk.css.map → 3843.0a0692b4.chunk.css.map} +1 -1
- package/build/static/css/4029.3296f349.chunk.css +2 -0
- package/build/static/css/4029.3296f349.chunk.css.map +1 -0
- package/build/static/css/4265.cc94dd41.chunk.css +2 -0
- package/build/static/css/4265.cc94dd41.chunk.css.map +1 -0
- package/build/static/css/4666.daddc0cc.chunk.css +2 -0
- package/build/static/css/{4666.33e12ff4.chunk.css.map → 4666.daddc0cc.chunk.css.map} +1 -1
- package/build/static/css/5443.35cb414e.chunk.css +2 -0
- package/build/static/css/5443.35cb414e.chunk.css.map +1 -0
- package/build/static/css/5600.ca194700.chunk.css +2 -0
- package/build/static/css/{5600.40c7f8d3.chunk.css.map → 5600.ca194700.chunk.css.map} +1 -1
- package/build/static/css/5873.ba71089f.chunk.css +2 -0
- package/build/static/css/{5873.043a805d.chunk.css.map → 5873.ba71089f.chunk.css.map} +1 -1
- package/build/static/css/{5996.7ccd8080.chunk.css → 5996.d5db9990.chunk.css} +2 -2
- package/build/static/css/{5996.7ccd8080.chunk.css.map → 5996.d5db9990.chunk.css.map} +1 -1
- package/build/static/css/6611.5ee2d32c.chunk.css +2 -0
- package/build/static/css/{6611.132d7bf4.chunk.css.map → 6611.5ee2d32c.chunk.css.map} +1 -1
- package/build/static/css/6779.5644d170.chunk.css +2 -0
- package/build/static/css/{6779.63d0647a.chunk.css.map → 6779.5644d170.chunk.css.map} +1 -1
- package/build/static/css/7121.82a6e5ff.chunk.css +2 -0
- package/build/static/css/{7121.69995c30.chunk.css.map → 7121.82a6e5ff.chunk.css.map} +1 -1
- package/build/static/css/7227.86530a2a.chunk.css +2 -0
- package/build/static/css/{7227.e6a66529.chunk.css.map → 7227.86530a2a.chunk.css.map} +1 -1
- package/build/static/css/8017.30097e6b.chunk.css +2 -0
- package/build/static/css/8017.30097e6b.chunk.css.map +1 -0
- package/build/static/css/{8725.1db6950e.chunk.css → 8725.f7685908.chunk.css} +2 -2
- package/build/static/css/{8725.1db6950e.chunk.css.map → 8725.f7685908.chunk.css.map} +1 -1
- package/build/static/css/931.86e57f64.chunk.css +2 -0
- package/build/static/css/931.86e57f64.chunk.css.map +1 -0
- package/build/static/js/{1106.509a010d.chunk.js → 1106.94b2f66d.chunk.js} +2 -2
- package/build/static/js/{1106.509a010d.chunk.js.map → 1106.94b2f66d.chunk.js.map} +1 -1
- package/build/static/js/{1153.3ca5a153.chunk.js → 1153.084c38bb.chunk.js} +3 -3
- package/build/static/js/{1153.3ca5a153.chunk.js.map → 1153.084c38bb.chunk.js.map} +1 -1
- package/build/static/js/1154.bf6eb17b.chunk.js +2 -0
- package/build/static/js/1154.bf6eb17b.chunk.js.map +1 -0
- package/build/static/js/1454.95cc1e18.chunk.js +3 -0
- package/build/static/js/{1454.b69c4181.chunk.js.map → 1454.95cc1e18.chunk.js.map} +1 -1
- package/build/static/js/1554.3483fb84.chunk.js +3 -0
- package/build/static/js/{1554.22446df8.chunk.js.map → 1554.3483fb84.chunk.js.map} +1 -1
- package/build/static/js/2503.e70ef261.chunk.js +2 -0
- package/build/static/js/{2503.48a98d11.chunk.js.map → 2503.e70ef261.chunk.js.map} +1 -1
- package/build/static/js/2517.618e29cf.chunk.js +2 -0
- package/build/static/js/{2517.12bffb49.chunk.js.map → 2517.618e29cf.chunk.js.map} +1 -1
- package/build/static/js/2716.b8095105.chunk.js +3 -0
- package/build/static/js/{2716.1b7d43b2.chunk.js.map → 2716.b8095105.chunk.js.map} +1 -1
- package/build/static/js/2730.25605c83.chunk.js +2 -0
- package/build/static/js/{2730.705a15e7.chunk.js.map → 2730.25605c83.chunk.js.map} +1 -1
- package/build/static/js/{2814.aafa2a65.chunk.js → 2814.ef0e78ca.chunk.js} +2 -2
- package/build/static/js/{2814.aafa2a65.chunk.js.map → 2814.ef0e78ca.chunk.js.map} +1 -1
- package/build/static/js/{289.c8a6e7a1.chunk.js → 289.e8f67dbf.chunk.js} +2 -2
- package/build/static/js/{289.c8a6e7a1.chunk.js.map → 289.e8f67dbf.chunk.js.map} +1 -1
- package/build/static/js/{3142.f7ddc1fa.chunk.js → 3142.1719d4a1.chunk.js} +2 -2
- package/build/static/js/{3142.f7ddc1fa.chunk.js.map → 3142.1719d4a1.chunk.js.map} +1 -1
- package/build/static/js/3333.2d80e8a4.chunk.js +2 -0
- package/build/static/js/3333.2d80e8a4.chunk.js.map +1 -0
- package/build/static/js/36.c44b9595.chunk.js +2 -0
- package/build/static/js/{36.1c63688d.chunk.js.map → 36.c44b9595.chunk.js.map} +1 -1
- package/build/static/js/{3843.c63f0e22.chunk.js → 3843.e3b94c91.chunk.js} +2 -2
- package/build/static/js/{3843.c63f0e22.chunk.js.map → 3843.e3b94c91.chunk.js.map} +1 -1
- package/build/static/js/4029.b169bb60.chunk.js +2 -0
- package/build/static/js/4029.b169bb60.chunk.js.map +1 -0
- package/build/static/js/4265.b63b8852.chunk.js +2 -0
- package/build/static/js/{4265.15b26581.chunk.js.map → 4265.b63b8852.chunk.js.map} +1 -1
- package/build/static/js/{4666.164a8d3a.chunk.js → 4666.586b40a7.chunk.js} +3 -3
- package/build/static/js/{4666.164a8d3a.chunk.js.map → 4666.586b40a7.chunk.js.map} +1 -1
- package/build/static/js/5443.eb1bd9c6.chunk.js +2 -0
- package/build/static/js/{5443.b66d023b.chunk.js.map → 5443.eb1bd9c6.chunk.js.map} +1 -1
- package/build/static/js/5600.81f2aef6.chunk.js +2 -0
- package/build/static/js/{5600.fbe5fb93.chunk.js.map → 5600.81f2aef6.chunk.js.map} +1 -1
- package/build/static/js/5873.55afd19e.chunk.js +2 -0
- package/build/static/js/{5873.6057b4b5.chunk.js.map → 5873.55afd19e.chunk.js.map} +1 -1
- package/build/static/js/{5996.e6d22e26.chunk.js → 5996.b6b4584c.chunk.js} +2 -2
- package/build/static/js/{5996.e6d22e26.chunk.js.map → 5996.b6b4584c.chunk.js.map} +1 -1
- package/build/static/js/{6569.9f6d9777.chunk.js → 6569.25ee0c69.chunk.js} +2 -2
- package/build/static/js/{6569.9f6d9777.chunk.js.map → 6569.25ee0c69.chunk.js.map} +1 -1
- package/build/static/js/6611.07e270e6.chunk.js +2 -0
- package/build/static/js/{6611.ecbae262.chunk.js.map → 6611.07e270e6.chunk.js.map} +1 -1
- package/build/static/js/6779.c1862ff1.chunk.js +2 -0
- package/build/static/js/{6779.4760144b.chunk.js.map → 6779.c1862ff1.chunk.js.map} +1 -1
- package/build/static/js/{6915.5dc9fc8a.chunk.js → 6915.3738b719.chunk.js} +2 -2
- package/build/static/js/{6915.5dc9fc8a.chunk.js.map → 6915.3738b719.chunk.js.map} +1 -1
- package/build/static/js/7121.10fd060f.chunk.js +2 -0
- package/build/static/js/{7121.2431a18a.chunk.js.map → 7121.10fd060f.chunk.js.map} +1 -1
- package/build/static/js/7227.0aee129e.chunk.js +3 -0
- package/build/static/js/{7227.c271e9d9.chunk.js.map → 7227.0aee129e.chunk.js.map} +1 -1
- package/build/static/js/{7790.531652b1.chunk.js → 7790.e1bcb362.chunk.js} +2 -2
- package/build/static/js/{7790.531652b1.chunk.js.map → 7790.e1bcb362.chunk.js.map} +1 -1
- package/build/static/js/{8017.cd3586a7.chunk.js → 8017.0adb338a.chunk.js} +2 -2
- package/build/static/js/{8017.cd3586a7.chunk.js.map → 8017.0adb338a.chunk.js.map} +1 -1
- package/build/static/js/{8725.b2f9157b.chunk.js → 8725.c77c40ca.chunk.js} +2 -2
- package/build/static/js/{8725.b2f9157b.chunk.js.map → 8725.c77c40ca.chunk.js.map} +1 -1
- package/build/static/js/{931.b6f30988.chunk.js → 931.25d5f1b7.chunk.js} +2 -2
- package/build/static/js/{931.b6f30988.chunk.js.map → 931.25d5f1b7.chunk.js.map} +1 -1
- package/build/static/js/{main.f05b1454.js → main.1547f954.js} +2 -2
- package/build/static/js/{main.f05b1454.js.map → main.1547f954.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1151.8a1ea8b2.chunk.css +0 -2
- package/build/static/css/1153.fec83a9b.chunk.css +0 -2
- package/build/static/css/1153.fec83a9b.chunk.css.map +0 -1
- package/build/static/css/1154.3ac979f0.chunk.css +0 -2
- package/build/static/css/1154.3ac979f0.chunk.css.map +0 -1
- package/build/static/css/1454.597915d6.chunk.css +0 -2
- package/build/static/css/1554.e0060527.chunk.css +0 -2
- package/build/static/css/2503.1c697ec5.chunk.css +0 -2
- package/build/static/css/2517.98220b06.chunk.css +0 -2
- package/build/static/css/2716.2ac76682.chunk.css +0 -2
- package/build/static/css/2730.2d0cbb3d.chunk.css +0 -2
- package/build/static/css/289.e6c6f1da.chunk.css +0 -2
- package/build/static/css/3142.3c249a67.chunk.css +0 -2
- package/build/static/css/3333.e42b3e6f.chunk.css +0 -2
- package/build/static/css/3333.e42b3e6f.chunk.css.map +0 -1
- package/build/static/css/4029.78a7d783.chunk.css +0 -2
- package/build/static/css/4029.78a7d783.chunk.css.map +0 -1
- package/build/static/css/4265.1ec41793.chunk.css +0 -2
- package/build/static/css/4265.1ec41793.chunk.css.map +0 -1
- package/build/static/css/4666.33e12ff4.chunk.css +0 -2
- package/build/static/css/5443.28a016be.chunk.css +0 -2
- package/build/static/css/5443.28a016be.chunk.css.map +0 -1
- package/build/static/css/5600.40c7f8d3.chunk.css +0 -2
- package/build/static/css/5873.043a805d.chunk.css +0 -2
- package/build/static/css/6611.132d7bf4.chunk.css +0 -2
- package/build/static/css/6779.63d0647a.chunk.css +0 -2
- package/build/static/css/7121.69995c30.chunk.css +0 -2
- package/build/static/css/7227.e6a66529.chunk.css +0 -2
- package/build/static/css/8017.cbd72a3a.chunk.css +0 -2
- package/build/static/css/8017.cbd72a3a.chunk.css.map +0 -1
- package/build/static/css/931.fc2017c7.chunk.css +0 -2
- package/build/static/css/931.fc2017c7.chunk.css.map +0 -1
- package/build/static/js/1154.dd461e4f.chunk.js +0 -2
- package/build/static/js/1154.dd461e4f.chunk.js.map +0 -1
- package/build/static/js/1454.b69c4181.chunk.js +0 -3
- package/build/static/js/1554.22446df8.chunk.js +0 -3
- package/build/static/js/2503.48a98d11.chunk.js +0 -2
- package/build/static/js/2517.12bffb49.chunk.js +0 -2
- package/build/static/js/2716.1b7d43b2.chunk.js +0 -3
- package/build/static/js/2730.705a15e7.chunk.js +0 -2
- package/build/static/js/3333.ed36409c.chunk.js +0 -2
- package/build/static/js/3333.ed36409c.chunk.js.map +0 -1
- package/build/static/js/36.1c63688d.chunk.js +0 -2
- package/build/static/js/4029.909eb89b.chunk.js +0 -2
- package/build/static/js/4029.909eb89b.chunk.js.map +0 -1
- package/build/static/js/4265.15b26581.chunk.js +0 -2
- package/build/static/js/5443.b66d023b.chunk.js +0 -2
- package/build/static/js/5600.fbe5fb93.chunk.js +0 -2
- package/build/static/js/5873.6057b4b5.chunk.js +0 -2
- package/build/static/js/6611.ecbae262.chunk.js +0 -2
- package/build/static/js/6779.4760144b.chunk.js +0 -2
- package/build/static/js/7121.2431a18a.chunk.js +0 -2
- package/build/static/js/7227.c271e9d9.chunk.js +0 -3
- /package/build/static/js/{1153.3ca5a153.chunk.js.LICENSE.txt → 1153.084c38bb.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1454.b69c4181.chunk.js.LICENSE.txt → 1454.95cc1e18.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.22446df8.chunk.js.LICENSE.txt → 1554.3483fb84.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.1b7d43b2.chunk.js.LICENSE.txt → 2716.b8095105.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.164a8d3a.chunk.js.LICENSE.txt → 4666.586b40a7.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.c271e9d9.chunk.js.LICENSE.txt → 7227.0aee129e.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:()=>i});var o=n(8762),r=n.n(o);n(46733);const i=r()},77964:(e,t,n)=>{"use strict";n.d(t,{A:()=>d});var o=n(73884),r=n(79889),i=n.n(r),l=n(93950),s=n.n(l),a=n(96418),c=n.n(a);const d=(e,t)=>{const n=(0,o.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const r=(0,o.useRef)(null),l=c()(e);return(0,o.useLayoutEffect)((()=>{const e=r.current,t=()=>window.requestAnimationFrame((()=>{e&&l(e)}));t();const o=new ResizeObserver((n.current.isDebounce?s():i())(t,n.current.time));return e&&o.observe(e),()=>{o.disconnect()}}),[l]),r}},80940:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>O});var o=n(73884),r=n(96418),i=n.n(r),l=n(55199),s=n(83136),a=n.n(s),c=n(64671),d=n(81014),u=n(58407),m=n(77964),p=n(22616),f=n.n(p);const h="style_width-container__JfEbg__vpO+I",_="style_hidden-container__EdySA__vpO+I",g="style_hidden-inner__vAN59__vpO+I",v="style_menu-list__VDttR__vpO+I",y="style_btn-item__mp5MQ__vpO+I";var x=n(15797),C=n.n(x),b=n(70579);const j=C()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;const l=i?0:["small","middle","large"].indexOf(r.size)>-1?8*(["small","middle","large"].indexOf(r.size)+1):Number.isInteger(r.size)?r.size:8;let s=0,a=0;for(;t>=a+o[s]+s*l&&s<o.length;)a+=o[s],s+=1;for(;t<a+(s-1)*l+(s<o.length?n+l:0)&&s>0;)a-=o[s-1],s-=1;return s}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:o,spaceProps:r,compact:i}=e;return"".concat(t).concat(n).concat(o.join(",")).concat(Object.values(r).join(",")).concat(i&&i.toString())})),w=e=>{let{list:t,more:n,compact:r,...s}=e;const c=f()(s,["size","split","align","style"]),[p,x]=(0,o.useState)(t.length&&1),C=i()((()=>{const e=O.current,t=N.current,n=w.current;if(!e)return;const i=e.querySelectorAll(".button-group-item");if(!i)return;if(0===i.length)return;const l=n.clientWidth,s=t.clientWidth,a=[].map.call(i,(e=>e.offsetWidth)),d=j({amountWidth:l,moreBtnWidth:s,buttonWidthList:a,spaceProps:c,compact:r});(0,o.startTransition)((()=>{x(d)}))})),w=(0,m.A)(C),O=(0,m.A)(C),N=(0,m.A)(C),I=t.slice(p),k=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",y),isDropdown:n});const{className:r,confirm:i,buttonComponent:l,...s}=e,c=i||s.message,m=c?u.default:l||d.default;return(0,o.createElement)(m,{danger:c&&!1!==s.isDelete,...Object.assign({},s,c&&(s.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",y,r)})},P=r?l.Space.Compact:l.Space;return(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{className:h,ref:w}),(0,b.jsxs)("div",{className:_,children:[(0,b.jsx)("div",{className:g,ref:N,children:n}),(0,b.jsx)("div",{className:g,ref:O,children:(0,b.jsx)(P,{...c,children:t.map(k)})})]}),(0,b.jsxs)(P,{...c,children:[t.slice(0,p).map(((e,t)=>k(e,t,!1))),I.length>0&&(0,b.jsx)(l.Dropdown,{overlayClassName:v,menu:{items:I.map(((e,t)=>({key:t,label:k(e,t,!0)})))},children:n})]})]})};w.defaultProps={more:(0,b.jsxs)(l.Button,{children:["\u66f4\u591a",(0,b.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const O=w},58407:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ConfirmLink:()=>g,ConfirmText:()=>v,default:()=>y,withConfirm:()=>_});n(73884);var o=n(55199);const r=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var i=n(64671),l=n(58609),s=n(3382),a=n(83136),c=n.n(a);const d="style_overlay__99t5t__vpO+I",u="style_is-danger__gxyAB__vpO+I",m="style_title__EEPu2__vpO+I",p="style_content__mZZg5__vpO+I",f="style_has-title__5+PEt__vpO+I";var h=n(70579);const _=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:r})((t=>{let{title:n,message:r,isDelete:a=!0,onClick:_,onCancel:g,disabled:v,showCancel:y,cancelText:x,isModal:C,okText:b,placement:j,getContainer:w,...O}=t;const{formatMessage:N}=(0,l.useIntl)({moduleName:"ConfirmButton"}),I=(0,s.useConfirmModal)();return C?(0,h.jsx)(e,{...O,disabled:v,onClick:e=>{I({type:"confirm",title:n,getContainer:w,danger:a,confirmType:a?"warning":"info",message:r||N({id:"message"}),okText:b||N(a?{id:"delete"}:{id:"confirm"}),cancelText:x||N({id:"cancel"}),onCancel:g,onOk:_})}}):(0,h.jsx)(o.Popconfirm,{title:(0,h.jsxs)(o.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,h.jsxs)(o.Space,{size:0,align:"start",className:m,children:[a&&(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,h.jsxs)(o.Space,{size:0,align:"start",className:c()(p,{[f]:n}),children:[!n&&a?(0,h.jsx)(i.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,r||N({id:"message"})]})]}),placement:j,onConfirm:_,okButtonProps:{danger:a},onCancel:g,overlayClassName:c()(d,{[u]:a}),getPopupContainer:w,disabled:v,showCancel:y,cancelText:x,okText:b||N(a?{id:"delete"}:{id:"confirm"}),children:(0,h.jsx)(e,{...O,disabled:v})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},g=_(o.Typography.Link),v=_(o.Typography.Text),y=_(o.Button)},3382:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ModalButton:()=>S,TabsModal:()=>k,TabsModalButton:()=>M,default:()=>N,useConfirmModal:()=>O,useModal:()=>w,useTabsModal:()=>P});var o=n(73884),r=n(55199),i=n(83136),l=n.n(i);const s={modal:"style_modal__Pm3cF__vpO+I",large:"style_large__iaqVE__vpO+I","modal-body-inner":"style_modal-body-inner__4PhpA__vpO+I","modal-title":"style_modal-title__dswaw__vpO+I","modal-outer":"style_modal-outer__r3SkX__vpO+I","modal-body":"style_modal-body__jQJSI__vpO+I","right-options-modal":"style_right-options-modal__FajDP__vpO+I","right-options-row":"style_right-options-row__-mPb9__vpO+I","right-options-col":"style_right-options-col__3ilee__vpO+I","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__vpO+I",content:"style_content__k6MIF__vpO+I","modal-footer":"style_modal-footer__-prbN__vpO+I","modal-close":"style_modal-close__Oa5Kl__vpO+I","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__vpO+I","is-danger":"style_is-danger__H5110__vpO+I",title:"style_title__orTym__vpO+I","has-title":"style_has-title__qy0Wp__vpO+I"},a=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var m=n(81014),p=n(17342),f=n(70579);const h="Modal",_=e=>{let{options:t,children:n}=e;return t?(0,f.jsxs)(r.Row,{wrap:!1,className:s["right-options-row"],children:[(0,f.jsx)(r.Col,{span:18,className:s["right-options-col"],children:n}),(0,f.jsx)(r.Col,{span:6,className:s["right-options-col"],children:t})]}):n},g=(e,t)=>"".concat(e-48-(t?58:0),"px"),v=(e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":g(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,t)}}:{width:"1000px",style:{"--min-modal-height":g(500,t)}},y=e=>{let{footer:t,footerButtons:n,onConfirm:i,onCancel:l,onClose:s,targetProps:d}=e;return(0,f.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,f.jsx)(r.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,f.jsx)(r.Col,{children:(0,f.jsx)(r.Space,{children:(n||[{children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,f.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:h})}),onClick:l},{type:"primary",children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:h,children:(0,f.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:h})}),onClick:i}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:r,autoClose:i=!0,display:l,...a}=e;const c=n||m.default;return(0,o.createElement)(c,{...a,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const o=await Promise.resolve(r&&r(...t,d));return i&&!1!==o&&s&&s(),o}})}))})})]})},x=e=>{let{title:t,footer:n,disabledScroller:i,footerButtons:a,onClose:c,closable:u,onConfirm:m,onCancel:h,children:_,targetProps:g}=e;const v=(0,o.useRef)(null);return(0,f.jsxs)("div",{className:s["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,f.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:s["modal-close"],type:"text",icon:(0,f.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,f.jsx)("div",{className:s["modal-title"],children:t}),(0,f.jsx)(p.A,{className:l()(s["modal-body"],{[s["is-disabled-scroller"]]:i},"modal-body"),ref:v,children:(0,f.jsx)("div",{className:l()(s["modal-body-inner"],"modal-body-inner"),children:_})}),null!==n||a?(0,f.jsx)("div",{className:l()(s["modal-footer"],"modal-footer"),children:(0,f.jsx)(y,{footer:n,footerButtons:a,onConfirm:m,onCancel:h,onClose:c,targetProps:g})}):null]})},C=e=>{let{withDecorator:t,footerButtons:n,title:o,closable:r,onClose:i,onConfirm:l,onCancel:s,footer:a,rightOptions:c,disabledScroller:d,childrenRef:m,children:p}=e;const h=e=>(e=Object.assign({},{title:o},e),(0,f.jsx)(x,{title:u(e.title,{...e,childrenRef:m,close:i}),closable:r,onClose:i,onConfirm:l,onCancel:s,footerButtons:u(n,{...e,close:i}),disabledScroller:d,footer:u(a,{...e,childrenRef:m,close:i}),targetProps:Object.assign({},e,{childrenRef:m,close:i}),children:(0,f.jsx)(_,{options:u(c,{...e,childrenRef:m,close:i}),children:u(p,{...e,childrenRef:m,close:i})})}));return"function"===typeof t?t(h):h({})},b=e=>{let{children:t,rightOptions:n,footer:o,footerButtons:r,className:i,size:d,title:u,onClose:m,onConfirm:p,onCancel:h,closable:_,disabledScroller:g,withDecorator:y,childrenRef:x,...b}=e;return{...b,icon:null,centered:!0,title:null,maskClosable:!!b.hasOwnProperty("maskClosable")&&b.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:l()(i,s.modal,s[d],{[s["right-options-modal"]]:n}),...v(d,!(null===o&&!r)),children:(0,f.jsx)(c.IntlProvider,{importMessages:a,moduleName:"Modal",children:C({withDecorator:y,title:u,closable:_,onClose:m,onConfirm:p,onCancel:h,footer:o,footerButtons:r,rightOptions:n,disabledScroller:g,children:t,childrenRef:x})})}},j=e=>{const t=(0,o.useRef)(null);return(0,f.jsx)(r.Modal,{...b(Object.assign({},e,{childrenRef:t}))})};j.defaultProps={size:"default"};const w=()=>{const{modal:e}=r.App.useApp(),t=(0,o.useRef)(null);return n=>{const o={},{children:r,...i}=b({onClose:()=>o.close(),childrenRef:t,...n}),{destroy:l}=e.info({...i,content:r});return o.close=l,o}},O=()=>{const{modal:e}=r.App.useApp();return t=>{const n={},{type:o,icon:i,title:a,danger:c,wrapClassName:u,message:m,iconSetting:p={},confirmType:h="info",..._}={onClose:()=>n.close(),maskClosable:!1,...t},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},p);if(e[o]){const{destroy:t}=e[o]({..._,icon:null,wrapClassName:l()(s["confirm-modal-wrap"],u,{[s["is-danger"]]:c}),title:(0,f.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:a&&(0,f.jsxs)(r.Space,{size:0,align:"start",className:s.title,children:[c?(0,f.jsx)(d.default,{className:l()("title-icon","title-icon-".concat("confirm"===o?h:o)),type:i||g["confirm"===o?h:o]}):null,a]})}),content:(0,f.jsxs)(r.Space,{size:0,align:"start",className:l()(s.content,{[s["has-title"]]:a}),children:[!a&&c?(0,f.jsx)(d.default,{className:l()("title-icon","title-icon-".concat("confirm"===o?h:o)),type:i||g["confirm"===o?h:o]}):null,m]})});n.close=t}return n}},N=j,I=e=>{let{items:t,className:n,activeKey:o,withDecorator:i,defaultActiveKey:s,onChange:a,...c}=e;return{...c,className:l()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,f.jsx)(r.Tabs,{items:t.map((t=>{let{withDecorator:o,...r}=t;return Object.assign({},r,{children:"function"===typeof o?o((t=>e(Object.assign({},n,t,{children:r.children})))):e(Object.assign({},n,{children:r.children}))})})),destroyInactiveTabPane:!0,activeKey:o,defaultActiveKey:s,onChange:a});return"function"===typeof i?i(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},k=e=>(0,f.jsx)(N,{...I(e)}),P=()=>{const e=w();return t=>e(I(t))};var T=n(73025);const M=e=>{const t=P();return(0,f.jsx)(T.A,{...e,modalFunc:t})},S=e=>{const t=w();return(0,f.jsx)(T.A,{...e,modalFunc:t})}},80755:(e,t,n)=>{var o=n(48895),r=n(77116);e.exports=function e(t,n,i,l,s){var a=-1,c=t.length;for(i||(i=r),s||(s=[]);++a<c;){var d=t[a];n>0&&i(d)?n>1?e(d,n-1,i,l,s):o(s,d):l||(s[s.length]=d)}return s}},94008:(e,t,n)=>{var o=n(27449),r=n(53366);e.exports=function(e,t){return o(e,t,(function(t,n){return r(e,n)}))}},27449:(e,t,n)=>{var o=n(52969),r=n(9261),i=n(35324);e.exports=function(e,t,n){for(var l=-1,s=t.length,a={};++l<s;){var c=t[l],d=o(e,c);n(d,c)&&r(a,i(c,e),d)}return a}},9261:(e,t,n)=>{var o=n(78420),r=n(35324),i=n(69194),l=n(46686),s=n(70914);e.exports=function(e,t,n,a){if(!l(e))return e;for(var c=-1,d=(t=r(t,e)).length,u=d-1,m=e;null!=m&&++c<d;){var p=s(t[c]),f=n;if("__proto__"===p||"constructor"===p||"prototype"===p)return e;if(c!=u){var h=m[p];void 0===(f=a?a(h,p,m):void 0)&&(f=l(h)?h:i(t[c+1])?[]:{})}o(m,p,f),m=m[p]}return e}},15857:(e,t,n)=>{var o=n(20819),r=n(55636),i=n(46350);e.exports=function(e){return i(r(e,void 0,o),e+"")}},77116:(e,t,n)=>{var o=n(9812),r=n(22777),i=n(54052),l=o?o.isConcatSpreadable:void 0;e.exports=function(e){return i(e)||r(e)||!!(l&&e&&e[l])}},93950:(e,t,n)=>{var o=n(46686),r=n(4757),i=n(40801),l=Math.max,s=Math.min;e.exports=function(e,t,n){var a,c,d,u,m,p,f=0,h=!1,_=!1,g=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=a,o=c;return a=c=void 0,f=t,u=e.apply(o,n)}function y(e){var n=e-p;return void 0===p||n>=t||n<0||_&&e-f>=d}function x(){var e=r();if(y(e))return C(e);m=setTimeout(x,function(e){var n=t-(e-p);return _?s(n,d-(e-f)):n}(e))}function C(e){return m=void 0,g&&a?v(e):(a=c=void 0,u)}function b(){var e=r(),n=y(e);if(a=arguments,c=this,p=e,n){if(void 0===m)return function(e){return f=e,m=setTimeout(x,t),h?v(e):u}(p);if(_)return clearTimeout(m),m=setTimeout(x,t),v(p)}return void 0===m&&(m=setTimeout(x,t)),u}return t=i(t)||0,o(n)&&(h=!!n.leading,d=(_="maxWait"in n)?l(i(n.maxWait)||0,t):d,g="trailing"in n?!!n.trailing:g),b.cancel=function(){void 0!==m&&clearTimeout(m),f=0,a=p=c=m=void 0},b.flush=function(){return void 0===m?u:C(r())},b}},20819:(e,t,n)=>{var o=n(80755);e.exports=function(e){return(null==e?0:e.length)?o(e,1):[]}},4757:(e,t,n)=>{var o=n(56552);e.exports=function(){return o.Date.now()}},22616:(e,t,n)=>{var o=n(94008),r=n(15857)((function(e,t){return null==e?{}:o(e,t)}));e.exports=r},79889:(e,t,n)=>{var o=n(93950),r=n(46686);e.exports=function(e,t,n){var i=!0,l=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return r(n)&&(i="leading"in n?!!n.leading:i,l="trailing"in n?!!n.trailing:l),o(e,t,{leading:i,maxWait:t,trailing:l})}},46733:()=>{}}]);
|
|
2
|
+
//# sourceMappingURL=6779.c1862ff1.chunk.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/6779.4760144b.chunk.js","mappings":"mNAGA,QAAeA,G,2HCEf,MA+BA,EA/BkBC,CAACC,EAAUC,KAC3B,MAAMC,GAAaC,EAAAA,EAAAA,QAAO,MAC1BD,EAAWE,QAAUC,OAAOC,OAC1B,CAAC,EACD,CAAEC,KAAM,IAAKC,YAAY,GACzBP,GAEF,MAAMQ,GAAMN,EAAAA,EAAAA,QAAO,MACbO,EAAkBC,IAAeX,GAoBvC,OAnBAY,EAAAA,EAAAA,kBAAgB,KACd,MAAMC,EAAKJ,EAAIL,QACTU,EAAWA,IACRC,OAAOC,uBAAsB,KAClCH,GAAMH,EAAgBG,EAAG,IAG7BC,IACA,MAAMG,EAAiB,IAAIC,gBACxBhB,EAAWE,QAAQI,WAAaW,IAAWC,KAC1CN,EACAZ,EAAWE,QAAQG,OAIvB,OADAM,GAAMI,EAAeI,QAAQR,GACtB,KACLI,EAAeK,YAAY,CAC5B,GACA,CAACZ,IACGD,CAAG,C,+LChCZ,QAAkC,sCAAlC,EAA2F,uCAA3F,EAAiJ,mCAAjJ,EAAgM,gCAAhM,EAA2O,+B,mCCW3O,MAAMc,EAAoBC,KACxBC,IAA0E,IAAzE,YAAEC,EAAW,aAAEC,EAAY,gBAAEC,EAAe,WAAEC,EAAU,QAAEC,GAASL,EA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EAAQsR,SAAWA,GAoG1DY,EAAUK,OApCV,gBACkBxC,IAAZkB,GACFqB,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,EAAMnM,QACvBkM,EAAYC,EAAO,GAAK,EAC1C,C,iBCnBA,IAAIiE,EAAOtE,EAAQ,OAsBnBE,EAAOC,QAJG,WACR,OAAOmE,EAAKC,KAAKlC,KACnB,C,kBCpBA,IAAImC,EAAWxE,EAAQ,OAoBnBnL,EAnBWmL,EAAQ,MAmBZyE,EAAS,SAAS5D,EAAQC,GACnC,OAAiB,MAAVD,EAAiB,CAAC,EAAI2D,EAAS3D,EAAQC,EAChD,IAEAZ,EAAOC,QAAUtL,C,kBCxBjB,IAAI9B,EAAWiN,EAAQ,OACnBqB,EAAWrB,EAAQ,OAmEvBE,EAAOC,QAlBP,SAAkB6B,EAAMU,EAAM7Q,GAC5B,IAAIoR,GAAU,EACVE,GAAW,EAEf,GAAmB,mBAARnB,EACT,MAAM,IAAIoB,UAnDQ,uBAyDpB,OAJI/B,EAASxP,KACXoR,EAAU,YAAapR,IAAYA,EAAQoR,QAAUA,EACrDE,EAAW,aAActR,IAAYA,EAAQsR,SAAWA,GAEnDpQ,EAASiP,EAAMU,EAAM,CAC1B,QAAWO,EACX,QAAWP,EACX,SAAYS,GAEhB,C","sources":["common/components/SimpleBar.js","common/hooks/useResize.js","webpack://@kne-components/components-core/./src/components/ButtonGroup/style.module.scss?7e95","components/ButtonGroup/index.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_basePick.js","../node_modules/lodash/_basePickBy.js","../node_modules/lodash/_baseSet.js","../node_modules/lodash/_flatRest.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/debounce.js","../node_modules/lodash/flatten.js","../node_modules/lodash/now.js","../node_modules/lodash/pick.js","../node_modules/lodash/throttle.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","import { useLayoutEffect, useRef } from \"react\";\nimport throttle from \"lodash/throttle\";\nimport debounce from \"lodash/debounce\";\nimport useRefCallback from \"@kne/use-ref-callback\";\n\nconst useResize = (callback, options) => {\n const optionsRef = useRef(null);\n optionsRef.current = Object.assign(\n {},\n { time: 500, isDebounce: false },\n options\n );\n const ref = useRef(null);\n const callbackHandler = useRefCallback(callback);\n useLayoutEffect(() => {\n const el = ref.current;\n const computed = () => {\n return window.requestAnimationFrame(() => {\n el && callbackHandler(el);\n });\n };\n computed();\n const resizeObserver = new ResizeObserver(\n (optionsRef.current.isDebounce ? debounce : throttle)(\n computed,\n optionsRef.current.time\n )\n );\n el && resizeObserver.observe(el);\n return () => {\n resizeObserver.disconnect();\n };\n }, [callbackHandler]);\n return ref;\n};\n\nexport default useResize;\n","// extracted by mini-css-extract-plugin\nexport default {\"width-container\":\"style_width-container__JfEbg__Fo22-\",\"hidden-container\":\"style_hidden-container__EdySA__Fo22-\",\"hidden-inner\":\"style_hidden-inner__vAN59__Fo22-\",\"menu-list\":\"style_menu-list__VDttR__Fo22-\",\"btn-item\":\"style_btn-item__mp5MQ__Fo22-\"};","import { startTransition, useState } from \"react\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport { Button, Dropdown, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport Icon from \"@components/Icon\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport ConfirmButton from \"@components/ConfirmButton\";\nimport useResize from \"@common/hooks/useResize\";\nimport pick from \"lodash/pick\";\nimport style from \"./style.module.scss\";\nimport memoize from \"lodash/memoize\";\n\nconst areaWidthComputed = memoize(\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n const spaceWidth = (() => {\n if (compact) {\n return 0;\n }\n\n if ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) > -1) {\n return ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) + 1) * 8;\n }\n\n if (Number.isInteger(spaceProps.size)) {\n return spaceProps.size;\n }\n return 8;\n })();\n\n let targetLength = 0,\n targetWidth = 0;\n\n // 采取先加后减策略\n while (\n amountWidth >=\n targetWidth +\n buttonWidthList[targetLength] +\n targetLength * spaceWidth &&\n targetLength < buttonWidthList.length\n ) {\n targetWidth += buttonWidthList[targetLength];\n targetLength += 1;\n }\n\n while (\n amountWidth <\n targetWidth +\n (targetLength - 1) * spaceWidth +\n (targetLength < buttonWidthList.length\n ? moreBtnWidth + spaceWidth\n : 0) &&\n targetLength > 0\n ) {\n targetWidth -= buttonWidthList[targetLength - 1];\n targetLength -= 1;\n }\n\n return targetLength;\n },\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n return `${amountWidth}${moreBtnWidth}${buttonWidthList.join(\n \",\"\n )}${Object.values(spaceProps).join(\",\")}${compact && compact.toString()}`;\n }\n);\n\nconst ButtonGroup = ({ list, more, compact, ...props }) => {\n const spaceProps = pick(props, [\"size\", \"split\", \"align\", \"style\"]);\n const [showLength, setShowLength] = useState(list.length && 1);\n const computedLength = useRefCallback(() => {\n const el = targetRef.current,\n moreEl = moreRef.current,\n widthEl = ref.current;\n if (!el) {\n return;\n }\n\n const buttonEls = el.querySelectorAll(\".button-group-item\");\n if (!buttonEls) {\n return;\n }\n if (buttonEls.length === 0) {\n return;\n }\n\n const amountWidth = widthEl.clientWidth,\n moreBtnWidth = moreEl.clientWidth,\n buttonWidthList = [].map.call(buttonEls, (el) => el.offsetWidth);\n const targetLength = areaWidthComputed({\n amountWidth,\n moreBtnWidth,\n buttonWidthList,\n spaceProps,\n compact,\n });\n startTransition(() => {\n setShowLength(targetLength);\n });\n });\n const ref = useResize(computedLength);\n const targetRef = useResize(computedLength);\n const moreRef = useResize(computedLength);\n const otherList = list.slice(showLength);\n\n const renderButton = (renderItem, index, isDropdown) => {\n if (typeof renderItem === \"function\") {\n return renderItem({\n key: index,\n className: classnames(\"button-group-item\", style[\"btn-item\"]),\n isDropdown,\n });\n }\n const { className, confirm, buttonComponent, ...props } = renderItem;\n const isConfirm = confirm || props.message;\n const CurrentButton = isConfirm\n ? ConfirmButton\n : buttonComponent || LoadingButton;\n\n return (\n <CurrentButton\n danger={isConfirm && props.isDelete !== false}\n {...Object.assign(\n {},\n props,\n isConfirm && (props.isModal || isDropdown)\n ? {\n isModal: true,\n }\n : {}\n )}\n key={index}\n className={classnames(\n \"button-group-item\",\n style[\"btn-item\"],\n className\n )}\n />\n );\n };\n\n const SpaceComponent = compact ? Space.Compact : Space;\n\n return (\n <>\n <div className={style[\"width-container\"]} ref={ref} />\n <div className={style[\"hidden-container\"]}>\n <div className={style[\"hidden-inner\"]} ref={moreRef}>\n {more}\n </div>\n <div className={style[\"hidden-inner\"]} ref={targetRef}>\n <SpaceComponent {...spaceProps}>\n {list.map(renderButton)}\n </SpaceComponent>\n </div>\n </div>\n <SpaceComponent {...spaceProps}>\n {list\n .slice(0, showLength)\n .map((item, index) => renderButton(item, index, false))}\n {otherList.length > 0 && (\n <Dropdown\n overlayClassName={style[\"menu-list\"]}\n menu={{\n items: otherList.map((item, index) => {\n return {\n key: index,\n label: renderButton(item, index, true),\n };\n }),\n }}\n >\n {more}\n </Dropdown>\n )}\n </SpaceComponent>\n </>\n );\n};\n\nButtonGroup.defaultProps = {\n more: (\n <Button>\n 更多\n <Icon type=\"icon-arrow-thin-down\" />\n </Button>\n ),\n};\n\nexport default ButtonGroup;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__Fo22-\",\"is-danger\":\"style_is-danger__gxyAB__Fo22-\",\"title\":\"style_title__EEPu2__Fo22-\",\"content\":\"style_content__mZZg5__Fo22-\",\"has-title\":\"style_has-title__5+PEt__Fo22-\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__Fo22-\",\"large\":\"style_large__iaqVE__Fo22-\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__Fo22-\",\"modal-title\":\"style_modal-title__dswaw__Fo22-\",\"modal-outer\":\"style_modal-outer__r3SkX__Fo22-\",\"modal-body\":\"style_modal-body__jQJSI__Fo22-\",\"right-options-modal\":\"style_right-options-modal__FajDP__Fo22-\",\"right-options-row\":\"style_right-options-row__-mPb9__Fo22-\",\"right-options-col\":\"style_right-options-col__3ilee__Fo22-\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__Fo22-\",\"content\":\"style_content__k6MIF__Fo22-\",\"modal-footer\":\"style_modal-footer__-prbN__Fo22-\",\"modal-close\":\"style_modal-close__Oa5Kl__Fo22-\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__Fo22-\",\"is-danger\":\"style_is-danger__H5110__Fo22-\",\"title\":\"style_title__orTym__Fo22-\",\"has-title\":\"style_has-title__qy0Wp__Fo22-\"};","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} className={style[\"right-options-row\"]}>\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 calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\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","window","requestAnimationFrame","resizeObserver","ResizeObserver","debounce","throttle","observe","disconnect","areaWidthComputed","memoize","_ref","amountWidth","moreBtnWidth","buttonWidthList","spaceProps","compact","spaceWidth","indexOf","size","Number","isInteger","targetLength","targetWidth","length","_ref2","concat","join","values","toString","ButtonGroup","_ref3","list","more","props","pick","showLength","setShowLength","useState","computedLength","targetRef","moreEl","moreRef","widthEl","buttonEls","querySelectorAll","clientWidth","map","call","offsetWidth","startTransition","otherList","slice","renderButton","renderItem","index","isDropdown","key","className","classnames","style","confirm","buttonComponent","isConfirm","message","CurrentButton","ConfirmButton","LoadingButton","_createElement","danger","isDelete","isModal","SpaceComponent","Space","Compact","_jsxs","_Fragment","children","_jsx","item","Dropdown","overlayClassName","menu","items","label","defaultProps","Button","Icon","type","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","title","onClick","onCancel","disabled","showCancel","cancelText","okText","placement","getContainer","formatMessage","useIntl","modal","useConfirmModal","e","confirmType","id","onOk","Popconfirm","direction","stopPropagation","align","onConfirm","okButtonProps","getPopupContainer","ConfirmLink","Typography","Link","ConfirmText","Text","renderWithOptions","footer","localeModuleName","RightOptions","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","innerWidth","Footer","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","IntlProvider","FormattedMessage","filter","display","ButtonComponent","autoClose","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","icon","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","warning","error","success","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","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
|
+
{"version":3,"file":"static/js/6779.c1862ff1.chunk.js","mappings":"mNAGA,QAAeA,G,2HCEf,MA+BA,EA/BkBC,CAACC,EAAUC,KAC3B,MAAMC,GAAaC,EAAAA,EAAAA,QAAO,MAC1BD,EAAWE,QAAUC,OAAOC,OAC1B,CAAC,EACD,CAAEC,KAAM,IAAKC,YAAY,GACzBP,GAEF,MAAMQ,GAAMN,EAAAA,EAAAA,QAAO,MACbO,EAAkBC,IAAeX,GAoBvC,OAnBAY,EAAAA,EAAAA,kBAAgB,KACd,MAAMC,EAAKJ,EAAIL,QACTU,EAAWA,IACRC,OAAOC,uBAAsB,KAClCH,GAAMH,EAAgBG,EAAG,IAG7BC,IACA,MAAMG,EAAiB,IAAIC,gBACxBhB,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,EAAQoR,QAAUA,EACrDE,EAAW,aAActR,IAAYA,EAAQsR,SAAWA,GAEnDpQ,EAASiP,EAAMU,EAAM,CAC1B,QAAWO,EACX,QAAWP,EACX,SAAYS,GAEhB,C","sources":["common/components/SimpleBar.js","common/hooks/useResize.js","webpack://@kne-components/components-core/./src/components/ButtonGroup/style.module.scss?7e95","components/ButtonGroup/index.js","components/ConfirmButton/locale/index.js","webpack://@kne-components/components-core/./src/components/ConfirmButton/style.module.scss?9447","components/ConfirmButton/index.js","webpack://@kne-components/components-core/./src/components/Modal/style.module.scss?4fe4","components/Modal/locale/index.js","components/Modal/renderWithOptions.js","components/Modal/Modal.js","components/Modal/TabsModal.js","components/Modal/ModalButton.js","../node_modules/lodash/_baseFlatten.js","../node_modules/lodash/_basePick.js","../node_modules/lodash/_basePickBy.js","../node_modules/lodash/_baseSet.js","../node_modules/lodash/_flatRest.js","../node_modules/lodash/_isFlattenable.js","../node_modules/lodash/debounce.js","../node_modules/lodash/flatten.js","../node_modules/lodash/now.js","../node_modules/lodash/pick.js","../node_modules/lodash/throttle.js"],"sourcesContent":["import SimpleBar from \"simplebar-react\";\nimport \"simplebar-react/dist/simplebar.min.css\";\n\nexport default SimpleBar;\n","import { useLayoutEffect, useRef } from \"react\";\nimport throttle from \"lodash/throttle\";\nimport debounce from \"lodash/debounce\";\nimport useRefCallback from \"@kne/use-ref-callback\";\n\nconst useResize = (callback, options) => {\n const optionsRef = useRef(null);\n optionsRef.current = Object.assign(\n {},\n { time: 500, isDebounce: false },\n options\n );\n const ref = useRef(null);\n const callbackHandler = useRefCallback(callback);\n useLayoutEffect(() => {\n const el = ref.current;\n const computed = () => {\n return window.requestAnimationFrame(() => {\n el && callbackHandler(el);\n });\n };\n computed();\n const resizeObserver = new ResizeObserver(\n (optionsRef.current.isDebounce ? debounce : throttle)(\n computed,\n optionsRef.current.time\n )\n );\n el && resizeObserver.observe(el);\n return () => {\n resizeObserver.disconnect();\n };\n }, [callbackHandler]);\n return ref;\n};\n\nexport default useResize;\n","// extracted by mini-css-extract-plugin\nexport default {\"width-container\":\"style_width-container__JfEbg__vpO+I\",\"hidden-container\":\"style_hidden-container__EdySA__vpO+I\",\"hidden-inner\":\"style_hidden-inner__vAN59__vpO+I\",\"menu-list\":\"style_menu-list__VDttR__vpO+I\",\"btn-item\":\"style_btn-item__mp5MQ__vpO+I\"};","import { startTransition, useState } from \"react\";\nimport useRefCallback from \"@kne/use-ref-callback\";\nimport { Button, Dropdown, Space } from \"antd\";\nimport classnames from \"classnames\";\nimport Icon from \"@components/Icon\";\nimport LoadingButton from \"@components/LoadingButton\";\nimport ConfirmButton from \"@components/ConfirmButton\";\nimport useResize from \"@common/hooks/useResize\";\nimport pick from \"lodash/pick\";\nimport style from \"./style.module.scss\";\nimport memoize from \"lodash/memoize\";\n\nconst areaWidthComputed = memoize(\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n const spaceWidth = (() => {\n if (compact) {\n return 0;\n }\n\n if ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) > -1) {\n return ([\"small\", \"middle\", \"large\"].indexOf(spaceProps.size) + 1) * 8;\n }\n\n if (Number.isInteger(spaceProps.size)) {\n return spaceProps.size;\n }\n return 8;\n })();\n\n let targetLength = 0,\n targetWidth = 0;\n\n // 采取先加后减策略\n while (\n amountWidth >=\n targetWidth +\n buttonWidthList[targetLength] +\n targetLength * spaceWidth &&\n targetLength < buttonWidthList.length\n ) {\n targetWidth += buttonWidthList[targetLength];\n targetLength += 1;\n }\n\n while (\n amountWidth <\n targetWidth +\n (targetLength - 1) * spaceWidth +\n (targetLength < buttonWidthList.length\n ? moreBtnWidth + spaceWidth\n : 0) &&\n targetLength > 0\n ) {\n targetWidth -= buttonWidthList[targetLength - 1];\n targetLength -= 1;\n }\n\n return targetLength;\n },\n ({ amountWidth, moreBtnWidth, buttonWidthList, spaceProps, compact }) => {\n return `${amountWidth}${moreBtnWidth}${buttonWidthList.join(\n \",\"\n )}${Object.values(spaceProps).join(\",\")}${compact && compact.toString()}`;\n }\n);\n\nconst ButtonGroup = ({ list, more, compact, ...props }) => {\n const spaceProps = pick(props, [\"size\", \"split\", \"align\", \"style\"]);\n const [showLength, setShowLength] = useState(list.length && 1);\n const computedLength = useRefCallback(() => {\n const el = targetRef.current,\n moreEl = moreRef.current,\n widthEl = ref.current;\n if (!el) {\n return;\n }\n\n const buttonEls = el.querySelectorAll(\".button-group-item\");\n if (!buttonEls) {\n return;\n }\n if (buttonEls.length === 0) {\n return;\n }\n\n const amountWidth = widthEl.clientWidth,\n moreBtnWidth = moreEl.clientWidth,\n buttonWidthList = [].map.call(buttonEls, (el) => el.offsetWidth);\n const targetLength = areaWidthComputed({\n amountWidth,\n moreBtnWidth,\n buttonWidthList,\n spaceProps,\n compact,\n });\n startTransition(() => {\n setShowLength(targetLength);\n });\n });\n const ref = useResize(computedLength);\n const targetRef = useResize(computedLength);\n const moreRef = useResize(computedLength);\n const otherList = list.slice(showLength);\n\n const renderButton = (renderItem, index, isDropdown) => {\n if (typeof renderItem === \"function\") {\n return renderItem({\n key: index,\n className: classnames(\"button-group-item\", style[\"btn-item\"]),\n isDropdown,\n });\n }\n const { className, confirm, buttonComponent, ...props } = renderItem;\n const isConfirm = confirm || props.message;\n const CurrentButton = isConfirm\n ? ConfirmButton\n : buttonComponent || LoadingButton;\n\n return (\n <CurrentButton\n danger={isConfirm && props.isDelete !== false}\n {...Object.assign(\n {},\n props,\n isConfirm && (props.isModal || isDropdown)\n ? {\n isModal: true,\n }\n : {}\n )}\n key={index}\n className={classnames(\n \"button-group-item\",\n style[\"btn-item\"],\n className\n )}\n />\n );\n };\n\n const SpaceComponent = compact ? Space.Compact : Space;\n\n return (\n <>\n <div className={style[\"width-container\"]} ref={ref} />\n <div className={style[\"hidden-container\"]}>\n <div className={style[\"hidden-inner\"]} ref={moreRef}>\n {more}\n </div>\n <div className={style[\"hidden-inner\"]} ref={targetRef}>\n <SpaceComponent {...spaceProps}>\n {list.map(renderButton)}\n </SpaceComponent>\n </div>\n </div>\n <SpaceComponent {...spaceProps}>\n {list\n .slice(0, showLength)\n .map((item, index) => renderButton(item, index, false))}\n {otherList.length > 0 && (\n <Dropdown\n overlayClassName={style[\"menu-list\"]}\n menu={{\n items: otherList.map((item, index) => {\n return {\n key: index,\n label: renderButton(item, index, true),\n };\n }),\n }}\n >\n {more}\n </Dropdown>\n )}\n </SpaceComponent>\n </>\n );\n};\n\nButtonGroup.defaultProps = {\n more: (\n <Button>\n 更多\n <Icon type=\"icon-arrow-thin-down\" />\n </Button>\n ),\n};\n\nexport default ButtonGroup;\n","const importMessages = (locale) => {\n return {\n \"en-US\": () => import(\"./en-US\"),\n \"zh-CN\": () => import(\"./zh-CN\"),\n }[locale]();\n};\n\nexport default importMessages;\n","// extracted by mini-css-extract-plugin\nexport default {\"overlay\":\"style_overlay__99t5t__vpO+I\",\"is-danger\":\"style_is-danger__gxyAB__vpO+I\",\"title\":\"style_title__EEPu2__vpO+I\",\"content\":\"style_content__mZZg5__vpO+I\",\"has-title\":\"style_has-title__5+PEt__vpO+I\"};","import React from \"react\";\nimport { Button, Popconfirm, Space, Typography } from \"antd\";\nimport importMessages from \"./locale\";\nimport Icon from \"@components/Icon\";\nimport { createWithIntl, useIntl } from \"@components/Intl\";\nimport { useConfirmModal } from \"@components/Modal\";\nimport classnames from \"classnames\";\nimport style from \"./style.module.scss\";\n\nexport const withConfirm = (WrappedComponent) => {\n const ConfirmComponent = createWithIntl({\n moduleName: \"ConfirmButton\",\n importMessages,\n })(\n ({\n title,\n message,\n isDelete = true,\n onClick,\n onCancel,\n disabled,\n showCancel,\n cancelText,\n isModal,\n okText,\n placement,\n getContainer,\n ...props\n }) => {\n const { formatMessage } = useIntl({ moduleName: \"ConfirmButton\" });\n const modal = useConfirmModal();\n if (isModal) {\n return (\n <WrappedComponent\n {...props}\n disabled={disabled}\n onClick={(e) => {\n modal({\n type: \"confirm\",\n title: title,\n getContainer,\n danger: isDelete,\n confirmType: isDelete ? \"warning\" : \"info\",\n message: message || formatMessage({ id: \"message\" }),\n okText: okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" }),\n cancelText: cancelText || formatMessage({ id: \"cancel\" }),\n onCancel,\n onOk: onClick,\n });\n }}\n />\n );\n }\n return (\n <Popconfirm\n title={\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {isDelete && (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n )}\n {title}\n </Space>\n )}\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && isDelete ? (\n <Icon className=\"title-icon\" type=\"icon-tishi-tianchong\" />\n ) : null}\n {message || formatMessage({ id: \"message\" })}\n </Space>\n </Space>\n }\n placement={placement}\n onConfirm={onClick}\n okButtonProps={{\n danger: isDelete,\n }}\n onCancel={onCancel}\n overlayClassName={classnames(style[\"overlay\"], {\n [style[\"is-danger\"]]: isDelete,\n })}\n getPopupContainer={getContainer}\n disabled={disabled}\n showCancel={showCancel}\n cancelText={cancelText}\n okText={\n okText\n ? okText\n : isDelete\n ? formatMessage({ id: \"delete\" })\n : formatMessage({ id: \"confirm\" })\n }\n >\n <WrappedComponent {...props} disabled={disabled} />\n </Popconfirm>\n );\n }\n );\n\n ConfirmComponent.defaultProps = {\n isModal: false,\n showCancel: true,\n };\n\n return ConfirmComponent;\n};\n\nexport const ConfirmLink = withConfirm(Typography.Link);\nexport const ConfirmText = withConfirm(Typography.Text);\n\nexport default withConfirm(Button);\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"style_modal__Pm3cF__vpO+I\",\"large\":\"style_large__iaqVE__vpO+I\",\"modal-body-inner\":\"style_modal-body-inner__4PhpA__vpO+I\",\"modal-title\":\"style_modal-title__dswaw__vpO+I\",\"modal-outer\":\"style_modal-outer__r3SkX__vpO+I\",\"modal-body\":\"style_modal-body__jQJSI__vpO+I\",\"right-options-modal\":\"style_right-options-modal__FajDP__vpO+I\",\"right-options-row\":\"style_right-options-row__-mPb9__vpO+I\",\"right-options-col\":\"style_right-options-col__3ilee__vpO+I\",\"is-disabled-scroller\":\"style_is-disabled-scroller__PmHyk__vpO+I\",\"content\":\"style_content__k6MIF__vpO+I\",\"modal-footer\":\"style_modal-footer__-prbN__vpO+I\",\"modal-close\":\"style_modal-close__Oa5Kl__vpO+I\",\"confirm-modal-wrap\":\"style_confirm-modal-wrap__YFImr__vpO+I\",\"is-danger\":\"style_is-danger__H5110__vpO+I\",\"title\":\"style_title__orTym__vpO+I\",\"has-title\":\"style_has-title__qy0Wp__vpO+I\"};","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} className={style[\"right-options-row\"]}>\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 calcHeight = (height, footer) => {\n return `${height - 48 - (footer ? 58 : 0)}px`;\n};\n\nconst sizeMap = (type, footer) => {\n if (type === \"large\") {\n return {\n width: `${Math.min(window.innerWidth - 64, 1500)}px`,\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n }\n if (type === \"small\") {\n return {\n width: \"600px\",\n style: { \"--min-modal-height\": calcHeight(300, footer) },\n };\n }\n return {\n width: \"1000px\",\n style: { \"--min-modal-height\": calcHeight(500, footer) },\n };\n};\n\nconst Footer = ({\n footer,\n footerButtons,\n onConfirm,\n onCancel,\n onClose,\n targetProps,\n}) => {\n return (\n <Row gutter={10} wrap={false}>\n <Col flex={1}>{footer}</Col>\n {Array.isArray(footerButtons) && footerButtons.length === 0 ? null : (\n <Col>\n <Space>\n {(\n footerButtons || [\n {\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Cancel\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onCancel,\n },\n {\n type: \"primary\",\n children: (\n <IntlProvider\n importMessages={importMessages}\n moduleName={localeModuleName}\n >\n <FormattedMessage\n id={\"Confirm\"}\n moduleName={localeModuleName}\n />\n </IntlProvider>\n ),\n onClick: onConfirm,\n },\n ]\n )\n .filter((item) => {\n if (typeof item?.display === \"function\") {\n return item?.display();\n }\n return item?.display !== false;\n })\n .map(\n (\n {\n ButtonComponent,\n onClick,\n autoClose = true,\n display,\n ...props\n },\n index\n ) => {\n const CurrentButton = ButtonComponent || LoadingButton;\n return (\n <CurrentButton\n {...props}\n key={index}\n onClick={async (...args) => {\n const res = await Promise.resolve(\n onClick && onClick(...args, targetProps)\n );\n autoClose && res !== false && onClose && onClose();\n return res;\n }}\n />\n );\n }\n )}\n </Space>\n </Col>\n )}\n </Row>\n );\n};\n\nconst ModalOuter = ({\n title,\n footer,\n disabledScroller,\n footerButtons,\n onClose,\n closable,\n onConfirm,\n onCancel,\n children,\n targetProps,\n}) => {\n const modalBodyRef = useRef(null);\n return (\n <div className={style[\"modal-outer\"]} data-testid=\"components-core-modal\">\n {closable === false ? null : (\n <Button\n data-testid=\"components-core-modal-close-btn\"\n className={style[\"modal-close\"]}\n type=\"text\"\n icon={<Icon type=\"icon-close-thin\" />}\n onClick={(e) => {\n e.stopPropagation();\n onClose && onClose();\n }}\n />\n )}\n {title && <div className={style[\"modal-title\"]}>{title}</div>}\n <SimpleBar\n className={classnames(\n style[\"modal-body\"],\n {\n [style[\"is-disabled-scroller\"]]: disabledScroller,\n },\n \"modal-body\"\n )}\n ref={modalBodyRef}\n >\n <div\n className={classnames(style[\"modal-body-inner\"], \"modal-body-inner\")}\n >\n {children}\n </div>\n </SimpleBar>\n {footer === null && !footerButtons ? null : (\n <div className={classnames(style[\"modal-footer\"], \"modal-footer\")}>\n <Footer\n footer={footer}\n footerButtons={footerButtons}\n onConfirm={onConfirm}\n onCancel={onCancel}\n onClose={onClose}\n targetProps={targetProps}\n />\n </div>\n )}\n </div>\n );\n};\n\nconst runWithDecorator = ({\n withDecorator,\n footerButtons,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n rightOptions,\n disabledScroller,\n childrenRef,\n children,\n}) => {\n const getInner = (props) => {\n props = Object.assign({}, { title }, props);\n return (\n <ModalOuter\n title={renderWithOptions(props.title, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n closable={closable}\n onClose={onClose}\n onConfirm={onConfirm}\n onCancel={onCancel}\n footerButtons={renderWithOptions(footerButtons, {\n ...props,\n close: onClose,\n })}\n disabledScroller={disabledScroller}\n footer={renderWithOptions(footer, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n targetProps={Object.assign({}, props, { childrenRef, close: onClose })}\n >\n <RightOptions\n options={renderWithOptions(rightOptions, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n >\n {renderWithOptions(children, {\n ...props,\n childrenRef,\n close: onClose,\n })}\n </RightOptions>\n </ModalOuter>\n );\n };\n return typeof withDecorator === \"function\"\n ? withDecorator(getInner)\n : getInner({});\n};\n\nconst computedCommonProps = ({\n children,\n rightOptions,\n footer,\n footerButtons,\n className,\n size,\n title,\n onClose,\n onConfirm,\n onCancel,\n closable,\n disabledScroller,\n withDecorator,\n childrenRef,\n ...props\n}) => {\n return {\n ...props,\n icon: null,\n centered: true,\n title: null,\n maskClosable: props.hasOwnProperty(\"maskClosable\")\n ? props.maskClosable\n : false,\n destroyOnClose: true,\n footer: null,\n closable: false,\n onCancel: onClose,\n className: classnames(className, style[\"modal\"], style[size], {\n [style[\"right-options-modal\"]]: rightOptions,\n }),\n ...sizeMap(size, !(footer === null && !footerButtons)),\n children: (\n <IntlProvider importMessages={importMessages} moduleName=\"Modal\">\n {runWithDecorator({\n withDecorator,\n title,\n closable,\n onClose,\n onConfirm,\n onCancel,\n footer,\n footerButtons,\n rightOptions,\n disabledScroller,\n children,\n childrenRef,\n })}\n </IntlProvider>\n ),\n };\n};\n\nconst Modal = (props) => {\n const childrenRef = useRef(null);\n return (\n <AntdModal\n {...computedCommonProps(Object.assign({}, props, { childrenRef }))}\n />\n );\n};\n\nModal.defaultProps = {\n size: \"default\", //large small\n};\n\nexport const useModal = () => {\n const { modal } = App.useApp();\n const childrenRef = useRef(null);\n return (props) => {\n const api = {};\n const { children, ...otherProps } = computedCommonProps({\n onClose: () => api.close(),\n childrenRef,\n ...props,\n });\n const { destroy } = modal.info({\n ...otherProps,\n content: children,\n });\n api.close = destroy;\n\n return api;\n };\n};\n\nexport const useConfirmModal = () => {\n const { modal } = App.useApp();\n return (props) => {\n const api = {};\n const {\n type,\n icon,\n title,\n danger,\n wrapClassName,\n message,\n iconSetting = {},\n confirmType = \"info\",\n ...otherProps\n } = {\n onClose: () => api.close(),\n maskClosable: false,\n ...props,\n };\n const typeEnum = Object.assign(\n {},\n {\n info: \"icon-xinxi-tianchong\",\n confirm: \"icon-tishi-tianchong\",\n warning: \"icon-tishi-tianchong\",\n error: \"icon-shibai\",\n success: \"icon-chenggong\",\n },\n iconSetting\n );\n if (modal[type]) {\n const { destroy } = modal[type]({\n ...otherProps,\n icon: null,\n wrapClassName: classnames(style[\"confirm-modal-wrap\"], wrapClassName, {\n [style[\"is-danger\"]]: danger,\n }),\n title: (\n <Space\n direction=\"vertical\"\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n {title && (\n <Space size={0} align=\"start\" className={style[\"title\"]}>\n {danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={\n icon || typeEnum[type === \"confirm\" ? confirmType : type]\n }\n />\n ) : null}\n {title}\n </Space>\n )}\n </Space>\n ),\n content: (\n <Space\n size={0}\n align=\"start\"\n className={classnames(style[\"content\"], {\n [style[\"has-title\"]]: title,\n })}\n >\n {!title && danger ? (\n <Icon\n className={classnames(\n \"title-icon\",\n `title-icon-${type === \"confirm\" ? confirmType : type}`\n )}\n type={icon || typeEnum[type === \"confirm\" ? confirmType : type]}\n />\n ) : null}\n {message}\n </Space>\n ),\n });\n api.close = destroy;\n }\n return api;\n };\n};\n\nexport default Modal;\n","import Modal, { useModal } from \"./Modal\";\nimport { Tabs } from \"antd\";\nimport classnames from \"classnames\";\n\nconst computedCommonProps = ({\n items,\n className,\n activeKey,\n withDecorator,\n defaultActiveKey,\n onChange,\n ...props\n}) => {\n return {\n ...props,\n className: classnames(className, \"tabs-modal\"),\n withDecorator: (render) => {\n const innerRender = (props) => (\n <Tabs\n items={items.map(({ withDecorator: itemWithDecorator, ...item }) => {\n return Object.assign({}, item, {\n children:\n typeof itemWithDecorator === \"function\"\n ? itemWithDecorator((innerProps) =>\n render(\n Object.assign({}, props, innerProps, {\n children: item.children,\n })\n )\n )\n : render(\n Object.assign({}, props, { children: item.children })\n ),\n });\n })}\n destroyInactiveTabPane\n activeKey={activeKey}\n defaultActiveKey={defaultActiveKey}\n onChange={onChange}\n />\n );\n return typeof withDecorator === \"function\"\n ? withDecorator(innerRender)\n : innerRender();\n },\n children: ({ children, ...props }) => {\n return typeof children === \"function\" ? children(props) : children;\n },\n };\n};\n\nconst TabsModal = (props) => {\n return <Modal {...computedCommonProps(props)} />;\n};\n\nexport default TabsModal;\n\nexport const useTabsModal = () => {\n const modal = useModal();\n return (props) => modal(computedCommonProps(props));\n};\n","import { useModal } from \"./Modal\";\nimport { useTabsModal } from \"./TabsModal\";\nimport FetchButton from \"@common/components/FetchButton\";\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","window","requestAnimationFrame","resizeObserver","ResizeObserver","debounce","throttle","observe","disconnect","areaWidthComputed","memoize","_ref","amountWidth","moreBtnWidth","buttonWidthList","spaceProps","compact","spaceWidth","indexOf","size","Number","isInteger","targetLength","targetWidth","length","_ref2","concat","join","values","toString","ButtonGroup","_ref3","list","more","props","pick","showLength","setShowLength","useState","computedLength","targetRef","moreEl","moreRef","widthEl","buttonEls","querySelectorAll","clientWidth","map","call","offsetWidth","startTransition","otherList","slice","renderButton","renderItem","index","isDropdown","key","className","classnames","style","confirm","buttonComponent","isConfirm","message","CurrentButton","ConfirmButton","LoadingButton","_createElement","danger","isDelete","isModal","SpaceComponent","Space","Compact","_jsxs","_Fragment","children","_jsx","item","Dropdown","overlayClassName","menu","items","label","defaultProps","Button","Icon","type","locale","en-US","zh-CN","withConfirm","WrappedComponent","ConfirmComponent","createWithIntl","moduleName","importMessages","title","onClick","onCancel","disabled","showCancel","cancelText","okText","placement","getContainer","formatMessage","useIntl","modal","useConfirmModal","e","confirmType","id","onOk","Popconfirm","direction","stopPropagation","align","onConfirm","okButtonProps","getPopupContainer","ConfirmLink","Typography","Link","ConfirmText","Text","renderWithOptions","footer","localeModuleName","RightOptions","Row","wrap","Col","span","calcHeight","height","sizeMap","width","Math","min","innerWidth","Footer","footerButtons","onClose","targetProps","gutter","flex","Array","isArray","IntlProvider","FormattedMessage","filter","display","ButtonComponent","autoClose","async","_len","arguments","args","_key","res","Promise","resolve","ModalOuter","_ref4","disabledScroller","closable","modalBodyRef","icon","runWithDecorator","_ref5","withDecorator","rightOptions","childrenRef","getInner","close","computedCommonProps","_ref6","centered","maskClosable","hasOwnProperty","destroyOnClose","Modal","AntdModal","useModal","App","useApp","api","otherProps","destroy","info","content","wrapClassName","iconSetting","typeEnum","warning","error","success","activeKey","defaultActiveKey","onChange","render","innerRender","Tabs","itemWithDecorator","innerProps","destroyInactiveTabPane","useTabsModal","TabsModalButton","tabsModal","FetchButton","modalFunc","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,2 +1,2 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6915],{16915:(e,l,t)=>{t.r(l),t.d(l,{AdvancedFilter:()=>Ke,AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>je,CityFilterItem:()=>Fe,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FilterItem:()=>z,FilterItemContainer:()=>Xe,FilterLines:()=>F,FilterValueDisplay:()=>y,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ce,NumberRangeFilterItem:()=>be,PopoverItem:()=>le,SearchInput:()=>Ae,TreeFilterItem:()=>ye,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe,advancedFields:()=>Ye,default:()=>qe,fields:()=>a,getFilterValue:()=>Me,useFilter:()=>v,withFieldItem:()=>D,withFilterValue:()=>ke});var a={};t.r(a),t.d(a,{AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>je,CityFilterItem:()=>Fe,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ce,NumberRangeFilterItem:()=>be,TreeFilterItem:()=>ye,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe});var n=t(83136),s=t.n(n),r=t(73884),i=t(64671);const o={filter:"style_filter__Xml45__Fo22-","filter-item-icon":"style_filter-item-icon__kVCRK__Fo22-","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__Fo22-","filter-title":"style_filter-title__PlIpS__Fo22-","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__Fo22-","ad-filter-title":"style_ad-filter-title__5-OzD__Fo22-","ad-filter-line":"style_ad-filter-line__ga6UH__Fo22-","filter-line":"style_filter-line__E+cRh__Fo22-","clean-btn":"style_clean-btn__oSEvm__Fo22-","filter-item":"style_filter-item__Q2ncE__Fo22-","un-expand":"style_un-expand__4PFY8__Fo22-","ad-filter-selected":"style_ad-filter-selected__KbLfG__Fo22-","filter-label":"style_filter-label__qu26i__Fo22-","filter-item-wrap":"style_filter-item-wrap__rOq7H__Fo22-",option:"style_option__rd5Qo__Fo22-","is-active":"style_is-active__OArQI__Fo22-","is-visited":"style_is-visited__gZ5ni__Fo22-","un-expand-shadow":"style_un-expand-shadow__fj92e__Fo22-","filter-item-label":"style_filter-item-label__C781J__Fo22-","filter-item-field":"style_filter-item-field__Ltfr8__Fo22-","filter-drop-tag":"style_filter-drop-tag__DD-2P__Fo22-","filter-list-tag":"style_filter-list-tag__Qt5hA__Fo22-","filter-tag":"style_filter-tag__dUGfu__Fo22-","filter-tag-value":"style_filter-tag-value__p-SFv__Fo22-","pop-util-content":"style_pop-util-content__bx5zP__Fo22-","pop-util-overlay":"style_pop-util-overlay__LEASt__Fo22-","pop-util-footer":"style_pop-util-footer__Xat1s__Fo22-","pop-util-text":"style_pop-util-text__pzeUy__Fo22-","filter-item-inner":"style_filter-item-inner__LVXgh__Fo22-","filter-item-text":"style_filter-item-text__MA8tU__Fo22-","filter-item-number-range":"style_filter-item-number-range__U-OgQ__Fo22-","filter-item-custom":"style_filter-item-custom__UusRa__Fo22-","filter-item-custom-active":"style_filter-item-custom-active__uFtny__Fo22-","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__Fo22-","filter-item-number-input":"style_filter-item-number-input__YPO6K__Fo22-","range-picker":"style_range-picker__c6ngq__Fo22-","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__Fo22-","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__Fo22-","filter-advanced":"style_filter-advanced__4cyDy__Fo22-","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__Fo22-","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__Fo22-","filter-advanced-more":"style_filter-advanced-more__OFXq4__Fo22-"};var c=t(55199),u=t(58609);const d=e=>({"en-US":()=>t.e(8869).then(t.bind(t,18869)),"zh-CN":()=>t.e(2363).then(t.bind(t,92363))}[e]()),m=(0,r.createContext)({}),{Provider:p}=m,v=()=>(0,r.useContext)(m);var _=t(33097),h=t.n(_),f=t(70579);const g=e=>{let{list:l,children:t}=e;const{value:a,onChange:n}=v();return(0,f.jsxs)("div",{className:o["filter-line"],children:[l.map(((e,l)=>{const t=e.type;return(0,r.createElement)(t,{...e.props,key:e.key||e.props.name||l,value:a?h()(a.get(e.props.name),"value"):e.props.value,onChange:n?l=>n({name:e.props.name,label:e.props.label,value:l}):e.props.onChange})})),t]})},x=e=>{let{className:l,list:t,displayLine:a,label:n,extra:m,children:p}=e;const v=t.length>a,[_,h]=(0,r.useState)(!1);return(0,f.jsxs)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:[(0,f.jsxs)(c.Space,{className:s()(o["filter-title"],l),align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:n||(0,f.jsx)(u.FormattedMessage,{id:"filterText",moduleName:"Filter",defaultMessage:"\u7b5b\u9009"})}),(0,f.jsxs)(c.Row,{justify:"space-between",wrap:!1,align:"top",children:[(0,f.jsx)(c.Col,{className:o["filter-list"],flex:1,children:t.slice(0,a).map(((e,l)=>(0,f.jsx)(g,{list:e,children:v&&!1===_&&l===a-1?(0,f.jsxs)(c.Space,{size:4,className:s()(o["filter-item"],o.option),onClick:()=>{h((e=>!e))},children:[(0,f.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"}),(0,f.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-down"})]}):null},l)))}),(0,f.jsx)(c.Col,{children:m})]})]}),(0,f.jsx)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap"),align:"center",size:16,children:p}),(0,f.jsxs)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap",{[o["filter-title-hidden"]]:!(v&&_)}),align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:(0,f.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"})}),(0,f.jsx)("div",{className:o["filter-list"],children:t.slice(a).map(((e,l)=>(0,f.jsx)(g,{list:e,children:l===t.length-a-1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:(0,f.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,f.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,f.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})}),(0,f.jsx)(c.Space,{size:4,className:s()(o["un-expand"]),onClick:()=>{h((e=>!e))},children:(0,f.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,f.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,f.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})})]})},l)))})]})]})};x.defaultProps={displayLine:1};const F=x;var j=t(62716);const y=e=>{let{value:l,extraExpand:t,onChange:a}=e;return(0,f.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:(0,f.jsxs)(c.Space,{className:o["filter-title"],align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:(0,f.jsx)(u.FormattedMessage,{id:"selectedText",moduleName:"Filter",defaultMessage:"\u60a8\u5df2\u9009\u62e9"})}),(0,f.jsxs)("div",{className:o["filter-line"],children:[l.map(((e,t)=>{let{name:n,label:s,value:r}=e;return(0,f.jsx)(j.default,{type:"filterResult",filterName:s,text:Array.isArray(r)?r.map((e=>e.label)).join("\uff0c"):r.label,closable:!0,onClose:()=>{const e=l.slice(0);e.splice(t,1),a(e)}},n)})),(0,f.jsxs)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:[t,(0,f.jsx)(c.Button,{size:"small",children:(0,f.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]}),(0,f.jsxs)(c.Space,{size:4,className:s()(o["un-expand"]),children:[t,(0,f.jsx)(c.Button,{size:"small",onClick:()=>{a([])},children:(0,f.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]})]})]})})};var C=t(10986),b=t.n(C),N=t(41740),I=t.n(N),M=t(36);const k=e=>{let{children:l,className:t,...a}=e;const[n,i]=b()(a),c=(0,r.useMemo)((()=>n.filter((e=>(0,M.isNotEmpty)(e.value)))),[n]),m=(0,r.useMemo)((()=>new Map(c.map((e=>[e.name,e])))),[c]);return(0,f.jsx)(u.IntlProvider,{moduleName:"Filter",importMessages:d,children:(0,f.jsx)(p,{value:{value:m,onChange:e=>{const l=I()(m);e.value?l.set(e.name,e):l.delete(e.name),null===i||void 0===i||i(Array.from(l.values()))}},children:(0,f.jsx)("div",{className:s()(o.filter,t),children:l({props:a,value:c,onChange:i})})})})};k.defaultProps={defaultValue:[]};const A=k,S=e=>(0,f.jsx)(A,{...e,children:e=>{let{props:l,value:t,onChange:a}=e;const{extraExpand:n,...s}=l;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(F,{...s}),t&&t.length>0&&(0,f.jsx)(y,{value:t,onChange:a,extraExpand:n})]})}});S.defaultProps={defaultValue:[]};const P=S;var w=t(55490);const z=e=>{let{open:l,active:t,label:a,children:n}=e;return(0,f.jsx)(c.Space,{className:o["filter-item-wrap"],children:(0,f.jsxs)("div",{className:s()(o["filter-item"],{[o["is-active"]]:t,[o["is-visited"]]:l}),children:[(0,f.jsxs)(c.Space,{className:o["filter-item-label"],size:4,children:[(0,f.jsx)("div",{children:a}),(0,f.jsx)(i.default,{className:o["filter-item-icon"],type:"icon-triangle-down"})]}),(0,f.jsx)("div",{className:o["filter-item-field"],children:n})]})})},D=e=>l=>{let{value:t,onChange:a,interceptor:n,label:s,...i}=l;const[c,u]=(0,r.useState)(!1);return(0,f.jsx)(z,{label:s,open:c,active:(0,w.A)(t),children:(0,f.jsx)(e,{allowClear:!1,...i,className:o["filter-item-inner"],value:t,onChange:"function"===typeof n?function(){return a(n(...arguments))}:a,valueType:"all",onOpenChange:u})})};var T=t(12392),O=t(41654),V=t(93761),L=t(53392),E=t(45776),R=t(30509),Y=t(96418),U=t.n(Y);const B="style_scroll-loader__Rcuti__Fo22-",K="style_is-popup__pCRv2__Fo22-";var X=t(17342),q=t(1488),Q=t.n(q),H=t(15797),G=t.n(H);const J=R.A.useContext,Z=e=>{let{value:l,setValue:t,size:a}=e;const{fetchApi:n,props:i}=J(),o=U()(i.dataFormat),{single:u,isPopup:d,searchPlaceholder:m,...p}=i,v=(0,r.useRef)(i.fieldNames);v.current=i.fieldNames;const _=n.data,{treeData:h}=(0,r.useMemo)((()=>o(_,{fieldNames:v.current})),[o,_]);return(0,f.jsx)(c.Space,{direction:"vertical",size:16,children:(0,f.jsx)(X.A,{className:s()(B,{[K]:i.isPopup}),children:(0,f.jsx)(c.Tree,{...Q()(p,["value","valueType","children","dataFormat"]),size:a,checkable:!u,treeData:h,onCheck:t,checkedKeys:l,onSelect:u?t:e=>{const l=e[0];void 0!==l&&t((e=>{const t=e.slice(0),a=t.indexOf(l);return a>-1?t.splice(a,1):t.push(l),t}))},selectedKeys:u?l:void 0})})})},W=e=>{let{maxLength:l,dataFormat:t,...a}=e;return(0,f.jsx)(R.A,{...a,dataFormat:e=>t(e,{fieldNames:a.fieldNames}),children:e=>{let{value:t,setValue:a}=e;return(0,f.jsx)(Z,{size:l,value:t,setValue:a})}})};W.defaultProps={searchPlaceholder:"\u641c\u7d22",maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,checkStrictly:!1,dataFormat:(e,l)=>{let{fieldNames:t}=l;const a=G()(((e,l)=>{let{fieldNames:t}=l;const a=[],n=e=>{Array.isArray(e)&&e.length>0&&e.forEach((e=>{const l=e[h()(t,"key","key")],s=e[h()(t,"title","title")],r=e[h()(t,"children","children")];a.push({id:l,value:l,label:s}),n(r)}))};return n(e),a}));return{treeData:e,list:a(e,{fieldNames:t})}}};const $=W,ee=e=>{let{value:l,label:t,onValidate:a,overlayClassName:n,placement:i,onOpenChange:d,onChange:m,children:p}=e;const[v,_]=(0,r.useState)(l),[h,g]=(0,r.useState)(!1),x=(0,r.useMemo)((()=>a&&!a(v)),[a,v]);return(0,f.jsx)(c.Popover,{open:h,trigger:"click",placement:i,overlayClassName:s()(o["pop-util-overlay"],n),onOpenChange:e=>{g(e),_(l),d&&d(e)},content:(0,f.jsxs)("span",{onClick:e=>{e.stopPropagation()},children:[(0,f.jsx)("div",{className:o["pop-util-content"],children:p({value:v,onChange:_})}),(0,f.jsxs)(c.Row,{className:o["pop-util-footer"],justify:"end",gutter:8,children:[(0,f.jsx)(c.Col,{children:(0,f.jsx)(c.Button,{size:"small",onClick:()=>{g(!1),d&&d(!1)},children:(0,f.jsx)(u.FormattedMessage,{id:"cancelText",moduleName:"Filter",defaultMessage:"\u53d6\u6d88"})})}),(0,f.jsx)(c.Col,{children:(0,f.jsx)(c.Button,{size:"small",type:"primary",disabled:x,onClick:()=>{g(!1),d&&d(!1),m&&m(v)},children:(0,f.jsx)(u.FormattedMessage,{id:"determineText",moduleName:"Filter",defaultMessage:"\u786e\u5b9a"})})})]})]}),children:(0,f.jsx)("span",{children:(0,f.jsx)(z,{open:h,active:(0,w.A)(l),label:t})})})};ee.defaultProps={placeholder:"\u8bf7\u9009\u62e9",placement:"bottomLeft"};const le=ee,te=e=>{let{label:l,value:t,onChange:a,placeholder:n,onValidate:s,overlayClassName:r,placement:i,onOpenChange:u,...d}=e;return(0,f.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:r,placement:i,onOpenChange:u,children:e=>{let{value:t,onChange:a}=e;return(0,f.jsx)(c.Input,{...d,placeholder:n||"\u8bf7\u8f93\u5165".concat(l),className:o["filter-item-text"],value:h()(t,"value",""),onChange:e=>a(e.target.value?{label:e.target.value,value:e.target.value}:null)})}})};var ae=t(79160),ne=t.n(ae);const se=(e,l,t)=>ne()(e[0])||ne()(e[1])?{label:(e=>ne()(e[0])&&ne()(e[1])?"".concat(e[0],"-").concat(e[1]).concat(l||""):ne()(e[0])?t({id:"over"},{count:e[0],unit:l}):ne()(e[1])?t({id:"lessThan"},{count:e[1],unit:l}):void 0)(e),value:[e[0]||null,e[1]||null]}:null,re=e=>{let{label:l,value:t,onChange:a,placeholder:n,onValidate:s,overlayClassName:r,placement:i,onOpenChange:d,unit:m,...p}=e;const{formatMessage:v}=(0,u.useIntl)({moduleName:"Filter"});return(0,f.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:r,placement:i,onOpenChange:d,children:e=>{let{value:t,onChange:a}=e;return(0,f.jsxs)(c.Space.Compact,{children:[(0,f.jsx)(c.InputNumber,{...p,placeholder:n||"".concat(v({id:"pleaseInput"})).concat(l),className:o["filter-item-number-range"],value:h()(t,"value[0]",""),onChange:e=>{a(se([e,h()(t,"value[1]")],m,v))}}),(0,f.jsx)(c.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),(0,f.jsx)(c.InputNumber,{...p,placeholder:n||"".concat(v({id:"pleaseInput"})).concat(l),className:o["filter-item-number-range"],value:h()(t,"value[1]",""),onChange:e=>{a(se([h()(t,"value[0]"),e],m,v))}}),m&&(0,f.jsx)(c.Input,{style:{width:50,borderLeft:0},value:m,disabled:!0})]})}})};re.defaultProps={onValidate:e=>{const l=h()(e,"value");return!(l&&ne()(l[0])&&ne()(l[1])&&l[1]<l[0])}};const ie=re;var oe=t(57469),ce=t.n(oe);const ue=D((e=>{let{value:l,onChange:t,picker:a,...n}=e;return(0,f.jsx)(c.DatePicker,{...n,picker:a,value:l&&ce()(l.value),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},n);e&&t({label:"date"!==a?"".concat(e.startOf(a).format(l),"~").concat(e.endOf(a).format(l)):e.format(l),value:new Date(e.startOf(a).valueOf())})}})}));ue.defaultProps="date";const de=ue,me=D((e=>{let{value:l,onChange:t,...a}=e;return(0,f.jsx)(c.DatePicker.RangePicker,{...a,allowEmpty:[!1,!1],value:l&&Array.isArray(l.value)&&2===l.value.length&&l.value.map((e=>ce()(e))),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},a);t({label:e.map((e=>e.format(l))).join("~"),value:e.map((e=>new Date(e.valueOf())))})}})}));var pe=t(89319);const ve=e=>{let{label:l,value:t,onChange:a,...n}=e;return(0,f.jsx)(le,{label:l,value:t,onChange:a,onValidate:e=>{const l=null===e||void 0===e?void 0:e.value;return(null===l||void 0===l?void 0:l.type)&&Array.isArray(null===l||void 0===l?void 0:l.value)&&2===l.value.length},children:e=>{let{value:l,onChange:t}=e;return(0,f.jsx)(pe.A,{...n,className:o["filter-item-text"],value:h()(l,"value"),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},n),a=(null===e||void 0===e?void 0:e.value)||[];t({label:a[0]&&!a[1]?"".concat(ce()(a[0]).format(l),"\u4ee5\u540e"):!a[0]&&a[1]?"".concat(ce()(a[1]).format(l),"\u4ee5\u524d"):a[0]&&a[1]?"".concat(ce()(a[0]).format(l),"~").concat(ce()(a[1]).format(l)):"",value:e})}})}})},_e=e=>l=>{let{placeholder:t,label:a,...n}=l;return(0,f.jsx)(u.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"Filter",values:{label:a},children:l=>(0,f.jsx)(e,{...n,label:a,placeholder:t||l})})},he=D(T.Ay),fe=D(T.Eo),ge=D(O.A),xe=D(L.A),Fe=D(V.Ay),je=D(E.Ay),ye=D($),Ce=_e(te),be=_e(ie);var Ne=t(22717),Ie=t.n(Ne);const Me=e=>Ie()(e,((e,l)=>{let{name:t,value:a}=l;e[t]=Array.isArray(a)?a.map((e=>{let{value:l}=e;return l})):a.value}),{}),ke=e=>l=>{let{name:t,label:a,...n}=l;const{value:s,onChange:r}=v();return(0,f.jsx)(e,{...n,label:a,onChange:r?e=>r({name:t,label:a,value:e}):n.onChange,value:s?h()(s.get(t),"value"):n.value})},Ae=ke((e=>{let{label:l,onChange:t,value:a,...n}=e;return(0,f.jsx)(M.SearchInput,{...n,placeholder:"\u8bf7\u8f93\u5165".concat(l),value:(null===a||void 0===a?void 0:a.value)||"",onSearch:e=>{t({label:e,value:e})}})}));var Se=t(76329);const{CheckableTag:Pe}=c.Tag,we=e=>{let{value:l,onChange:t,single:a,maxLength:n,addressApi:s,...i}=e;const{message:d}=c.App.useApp(),{locale:m}=(0,Se.usePreset)(),{formatMessage:p}=(0,u.useIntl)({moduleName:"Filter"}),v=(0,r.useMemo)((()=>s.getChinaHotCities()),[s]);return(0,f.jsxs)(f.Fragment,{children:[v.map((e=>{const{code:s}=e,r=(0,V.NY)(e,m);return(0,f.jsx)(Pe,{size:"small",checked:a?(null===l||void 0===l?void 0:l.value)===s:!!(l||[]).find((e=>{let{value:l}=e;return l===s})),onChange:e=>{if(a)return void t(e?{value:s,label:r}:null);const i=(l||[]).slice(0);e?i.push({value:s,label:r}):(()=>{const e=i.findIndex((e=>{let{value:l}=e;return l===s}));i.splice(e,1)})(),i.length>n?d.error(p({id:"maxSelectedCount"},{count:n})):t(i)},children:r},s)})),(0,f.jsxs)(Pe,{className:o["filter-advanced-item-other"],size:"small",checked:(a?null===l||void 0===l?void 0:l.value:(null===l||void 0===l?void 0:l.value)&&l.value.length>0)&&!v.find((e=>{let{code:t}=e;return a?(null===l||void 0===l?void 0:l.value)===t:!!(l||[]).find((e=>{let{value:l}=e;return l===t}))})),children:[(0,f.jsx)(u.FormattedMessage,{id:"otherText",moduleName:"Filter",defaultMessage:"\u5176\u4ed6"}),(0,f.jsx)(V.Ay,{...i,className:o["filter-advanced-item-other-inner"],maxLength:n,value:a?null===l||void 0===l?void 0:l.value:(l||[]).map((e=>{let{value:l}=e;return l})),single:a,onChange:function(e){const l=e=>{const{city:l}=s.getCity(e);return{value:null===l||void 0===l?void 0:l.code,label:null===l||void 0===l?void 0:l.name}};t(a?l(e):e.map((e=>l(e))))}})]})]})};we.defaultProps={single:!1,maxLength:5};const ze=(0,V.DF)(we);var De=t(19853),Te=t.n(De);const{CheckableTag:Oe}=c.Tag,Ve=e=>{let{value:l,onChange:t,label:n,single:s,maxLength:r,items:i,custom:o}=e;const{message:d}=c.App.useApp(),{formatMessage:m}=(0,u.useIntl)({moduleName:"Filter"});return(0,f.jsxs)(f.Fragment,{children:[i.map((e=>{let{label:a,value:n}=e;return(0,f.jsx)(Oe,{size:"small",checked:s?Te()(n,null===l||void 0===l?void 0:l.value):!!(l||[]).find((e=>{let{value:l}=e;return Te()(n,l)})),onChange:e=>{if(s)return void t(e?{value:n,label:a}:null);const i=(l||[]).slice(0);e?i.push({value:n,label:a}):(()=>{const e=i.find((e=>{let{value:l}=e;return Te()(n,l)}));i.splice(e,1)})(),i.length>r?d.error(m({id:"maxSelectedCount"},{count:r})):t(i)},children:a},a)})),o&&(()=>{const e=Object.values(a).find((e=>e===o.type));return e?(0,f.jsx)(e,{...o.props,value:l,placeholder:"".concat(m({id:"pleaseInput"})).concat(n),onChange:t}):null})()]})};Ve.defaultProps={single:!1,maxLength:5,items:[]};const Le=Ve;var Ee=t(78491),Re=t.n(Ee);const Ye={CityFilterItem:ze,ListFilterItem:Le,InputFilterItem:e=>{let{value:l,label:t,onChange:a,...n}=e;const s=null===l||void 0===l?void 0:l.value,[i,o]=(0,r.useState)(s||""),[d,m]=(0,r.useState)(!1),{formatMessage:p}=(0,u.useIntl)({moduleName:"Filter"}),v=()=>{a(i?{label:i,value:i}:null)},_=Re()((()=>{m(!1),v()})),h=(0,r.useRef)("");return h.current=i,(0,r.useEffect)((()=>{s!==h.current&&o(s)}),[s]),(0,f.jsx)("span",{ref:_,children:(0,f.jsxs)(c.Space.Compact,{children:[(0,f.jsx)(c.Input,{placeholder:"".concat(p({id:"pleaseInput"})).concat(t),...n,size:"small",value:i,onFocus:()=>{m(!0)},onChange:e=>{o(e.target.value)},onPressEnter:v}),d&&(0,f.jsx)(c.Button,{size:"small",type:"primary",onClick:v,children:p({id:"search"})})]})})}},Ue=e=>{let{list:l}=e;const{value:t,onChange:a}=v();return(0,f.jsx)(c.Flex,{gap:8,children:l.map(((e,l)=>{const n=e.type;return(0,f.jsxs)(c.Flex,{gap:16,align:"center",children:[(0,f.jsxs)("div",{className:o["filter-label"],children:[e.props.label,":"]}),(0,f.jsx)(c.Flex,{wrap:!0,align:"center",children:(0,f.jsx)(n,{...e.props,value:t?h()(t.get(e.props.name),"value"):e.props.value,onChange:a?l=>a({name:e.props.name,label:e.props.label,value:l}):e.props.onChange})})]},e.key||e.props.name||l)}))})},Be=(0,u.createWithIntl)({importMessages:d,moduleName:"Filter"})((e=>{const{formatMessage:l}=(0,u.useIntl)({moduleName:"Filter"});return(0,f.jsx)(A,{...e,children:e=>{let{value:t,onChange:a,props:n}=e;const{list:s,more:r}=n;return(0,f.jsxs)("div",{children:[(0,f.jsxs)(c.Flex,{gap:8,vertical:!0,className:o["filter-advanced"],children:[s.map(((e,l)=>(0,f.jsx)(Ue,{list:e},l))),r&&(0,f.jsx)(F,{className:o["filter-advanced-more"],label:"".concat(l({id:"moreText"}),":"),list:[r]})]}),t&&t.length>0&&(0,f.jsx)(y,{value:t,onChange:a})]})}})}));Be.fields=Ye;const Ke=Be,Xe=e=>{let{children:l,...t}=e;return l(t)};P.fields=a,P.getFilterValue=Me,P.useFilter=v,P.SearchInput=Ae,P.withFilterValue=ke;const qe=P}}]);
|
|
2
|
-
//# sourceMappingURL=6915.
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6915],{16915:(e,l,t)=>{t.r(l),t.d(l,{AdvancedFilter:()=>Ke,AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>ye,CityFilterItem:()=>je,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FilterItem:()=>w,FilterItemContainer:()=>Xe,FilterLines:()=>j,FilterValueDisplay:()=>I,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ce,NumberRangeFilterItem:()=>Fe,PopoverItem:()=>le,SearchInput:()=>ke,TreeFilterItem:()=>Ie,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe,advancedFields:()=>Ye,default:()=>qe,fields:()=>a,getFilterValue:()=>Oe,useFilter:()=>v,withFieldItem:()=>z,withFilterValue:()=>Me});var a={};t.r(a),t.d(a,{AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>ye,CityFilterItem:()=>je,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ce,NumberRangeFilterItem:()=>Fe,TreeFilterItem:()=>Ie,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe});var n=t(83136),s=t.n(n),r=t(73884),i=t(64671);const o={filter:"style_filter__Xml45__vpO+I","filter-item-icon":"style_filter-item-icon__kVCRK__vpO+I","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__vpO+I","filter-title":"style_filter-title__PlIpS__vpO+I","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__vpO+I","ad-filter-title":"style_ad-filter-title__5-OzD__vpO+I","ad-filter-line":"style_ad-filter-line__ga6UH__vpO+I","filter-line":"style_filter-line__E+cRh__vpO+I","clean-btn":"style_clean-btn__oSEvm__vpO+I","filter-item":"style_filter-item__Q2ncE__vpO+I","un-expand":"style_un-expand__4PFY8__vpO+I","ad-filter-selected":"style_ad-filter-selected__KbLfG__vpO+I","filter-label":"style_filter-label__qu26i__vpO+I","filter-item-wrap":"style_filter-item-wrap__rOq7H__vpO+I",option:"style_option__rd5Qo__vpO+I","is-active":"style_is-active__OArQI__vpO+I","is-visited":"style_is-visited__gZ5ni__vpO+I","un-expand-shadow":"style_un-expand-shadow__fj92e__vpO+I","filter-item-label":"style_filter-item-label__C781J__vpO+I","filter-item-field":"style_filter-item-field__Ltfr8__vpO+I","filter-drop-tag":"style_filter-drop-tag__DD-2P__vpO+I","filter-list-tag":"style_filter-list-tag__Qt5hA__vpO+I","filter-tag":"style_filter-tag__dUGfu__vpO+I","filter-tag-value":"style_filter-tag-value__p-SFv__vpO+I","pop-util-content":"style_pop-util-content__bx5zP__vpO+I","pop-util-overlay":"style_pop-util-overlay__LEASt__vpO+I","pop-util-footer":"style_pop-util-footer__Xat1s__vpO+I","pop-util-text":"style_pop-util-text__pzeUy__vpO+I","filter-item-inner":"style_filter-item-inner__LVXgh__vpO+I","filter-item-text":"style_filter-item-text__MA8tU__vpO+I","filter-item-number-range":"style_filter-item-number-range__U-OgQ__vpO+I","filter-item-custom":"style_filter-item-custom__UusRa__vpO+I","filter-item-custom-active":"style_filter-item-custom-active__uFtny__vpO+I","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__vpO+I","filter-item-number-input":"style_filter-item-number-input__YPO6K__vpO+I","range-picker":"style_range-picker__c6ngq__vpO+I","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__vpO+I","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__vpO+I","filter-advanced":"style_filter-advanced__4cyDy__vpO+I","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__vpO+I","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__vpO+I","filter-advanced-more":"style_filter-advanced-more__OFXq4__vpO+I"};var c=t(55199),u=t(58609);const d=e=>({"en-US":()=>t.e(8869).then(t.bind(t,18869)),"zh-CN":()=>t.e(2363).then(t.bind(t,92363))}[e]()),m=(0,r.createContext)({}),{Provider:p}=m,v=()=>(0,r.useContext)(m);var _=t(33097),h=t.n(_),f=t(70579);const g=e=>{let{list:l,children:t}=e;const{value:a,onChange:n}=v();return(0,f.jsxs)("div",{className:o["filter-line"],children:[l.map(((e,l)=>{const t=e.type;return(0,r.createElement)(t,{...e.props,key:e.key||e.props.name||l,value:a?h()(a.get(e.props.name),"value"):e.props.value,onChange:n?l=>n({name:e.props.name,label:e.props.label,value:l}):e.props.onChange})})),t]})},x=e=>{let{className:l,list:t,displayLine:a,label:n,extra:m,children:p}=e;const v=t.length>a,[_,h]=(0,r.useState)(!1);return(0,f.jsxs)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:[(0,f.jsxs)(c.Space,{className:s()(o["filter-title"],l),align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:n||(0,f.jsx)(u.FormattedMessage,{id:"filterText",moduleName:"Filter",defaultMessage:"\u7b5b\u9009"})}),(0,f.jsxs)(c.Row,{justify:"space-between",wrap:!1,align:"top",children:[(0,f.jsx)(c.Col,{className:o["filter-list"],flex:1,children:t.slice(0,a).map(((e,l)=>(0,f.jsx)(g,{list:e,children:v&&!1===_&&l===a-1?(0,f.jsxs)(c.Space,{size:4,className:s()(o["filter-item"],o.option),onClick:()=>{h((e=>!e))},children:[(0,f.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"}),(0,f.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-down"})]}):null},l)))}),(0,f.jsx)(c.Col,{children:m})]})]}),(0,f.jsx)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap"),align:"center",size:16,children:p}),(0,f.jsxs)(c.Space,{className:s()(o["filter-title"],"filter-title-wrap",{[o["filter-title-hidden"]]:!(v&&_)}),align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:(0,f.jsx)(u.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"})}),(0,f.jsx)("div",{className:o["filter-list"],children:t.slice(a).map(((e,l)=>(0,f.jsx)(g,{list:e,children:l===t.length-a-1&&(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:(0,f.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,f.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,f.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})}),(0,f.jsx)(c.Space,{size:4,className:s()(o["un-expand"]),onClick:()=>{h((e=>!e))},children:(0,f.jsxs)(c.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,f.jsx)(u.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,f.jsx)(i.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})})]})},l)))})]})]})};x.defaultProps={displayLine:1};const j=x;var y=t(62716);const I=e=>{let{value:l,extraExpand:t,onChange:a}=e;return(0,f.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Filter",children:(0,f.jsxs)(c.Space,{className:o["filter-title"],align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:(0,f.jsx)(u.FormattedMessage,{id:"selectedText",moduleName:"Filter",defaultMessage:"\u60a8\u5df2\u9009\u62e9"})}),(0,f.jsxs)("div",{className:o["filter-line"],children:[l.map(((e,t)=>{let{name:n,label:s,value:r}=e;return(0,f.jsx)(y.default,{type:"filterResult",filterName:s,text:Array.isArray(r)?r.map((e=>e.label)).join("\uff0c"):r.label,closable:!0,onClose:()=>{const e=l.slice(0);e.splice(t,1),a(e)}},n)})),(0,f.jsxs)(c.Space,{size:4,className:s()(o["un-expand-shadow"]),children:[t,(0,f.jsx)(c.Button,{size:"small",children:(0,f.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]}),(0,f.jsxs)(c.Space,{size:4,className:s()(o["un-expand"]),children:[t,(0,f.jsx)(c.Button,{size:"small",onClick:()=>{a([])},children:(0,f.jsx)(u.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]})]})]})})};var C=t(10986),F=t.n(C),b=t(41740),N=t.n(b),O=t(36);const M=e=>{let{children:l,className:t,...a}=e;const[n,i]=F()(a),c=(0,r.useMemo)((()=>n.filter((e=>(0,O.isNotEmpty)(e.value)))),[n]),m=(0,r.useMemo)((()=>new Map(c.map((e=>[e.name,e])))),[c]);return(0,f.jsx)(u.IntlProvider,{moduleName:"Filter",importMessages:d,children:(0,f.jsx)(p,{value:{value:m,onChange:e=>{const l=N()(m);e.value?l.set(e.name,e):l.delete(e.name),null===i||void 0===i||i(Array.from(l.values()))}},children:(0,f.jsx)("div",{className:s()(o.filter,t),children:l({props:a,value:c,onChange:i})})})})};M.defaultProps={defaultValue:[]};const k=M,A=e=>(0,f.jsx)(k,{...e,children:e=>{let{props:l,value:t,onChange:a}=e;const{extraExpand:n,...s}=l;return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(j,{...s}),t&&t.length>0&&(0,f.jsx)(I,{value:t,onChange:a,extraExpand:n})]})}});A.defaultProps={defaultValue:[]};const S=A;var P=t(55490);const w=e=>{let{open:l,active:t,label:a,children:n}=e;return(0,f.jsx)(c.Space,{className:o["filter-item-wrap"],children:(0,f.jsxs)("div",{className:s()(o["filter-item"],{[o["is-active"]]:t,[o["is-visited"]]:l}),children:[(0,f.jsxs)(c.Space,{className:o["filter-item-label"],size:4,children:[(0,f.jsx)("div",{children:a}),(0,f.jsx)(i.default,{className:o["filter-item-icon"],type:"icon-triangle-down"})]}),(0,f.jsx)("div",{className:o["filter-item-field"],children:n})]})})},z=e=>l=>{let{value:t,onChange:a,interceptor:n,label:s,...i}=l;const[c,u]=(0,r.useState)(!1);return(0,f.jsx)(w,{label:s,open:c,active:(0,P.A)(t),children:(0,f.jsx)(e,{allowClear:!1,...i,className:o["filter-item-inner"],value:t,onChange:"function"===typeof n?function(){return a(n(...arguments))}:a,valueType:"all",onOpenChange:u})})};var D=t(12392),T=t(41654),V=t(93761),L=t(53392),E=t(45776),R=t(30509),Y=t(96418),U=t.n(Y);const B="style_scroll-loader__Rcuti__vpO+I",K="style_is-popup__pCRv2__vpO+I";var X=t(17342),q=t(1488),Q=t.n(q),H=t(15797),G=t.n(H);const J=R.A.useContext,Z=e=>{let{value:l,setValue:t,size:a}=e;const{fetchApi:n,props:i}=J(),o=U()(i.dataFormat),{single:u,isPopup:d,searchPlaceholder:m,...p}=i,v=(0,r.useRef)(i.fieldNames);v.current=i.fieldNames;const _=n.data,{treeData:h}=(0,r.useMemo)((()=>o(_,{fieldNames:v.current})),[o,_]);return(0,f.jsx)(c.Space,{direction:"vertical",size:16,children:(0,f.jsx)(X.A,{className:s()(B,{[K]:i.isPopup}),children:(0,f.jsx)(c.Tree,{...Q()(p,["value","valueType","children","dataFormat"]),size:a,checkable:!u,treeData:h,onCheck:t,checkedKeys:l,onSelect:u?t:e=>{const l=e[0];void 0!==l&&t((e=>{const t=e.slice(0),a=t.indexOf(l);return a>-1?t.splice(a,1):t.push(l),t}))},selectedKeys:u?l:void 0})})})},W=e=>{let{maxLength:l,dataFormat:t,...a}=e;return(0,f.jsx)(R.A,{...a,dataFormat:e=>t(e,{fieldNames:a.fieldNames}),children:e=>{let{value:t,setValue:a}=e;return(0,f.jsx)(Z,{size:l,value:t,setValue:a})}})};W.defaultProps={searchPlaceholder:"\u641c\u7d22",maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,checkStrictly:!1,dataFormat:(e,l)=>{let{fieldNames:t}=l;const a=G()(((e,l)=>{let{fieldNames:t}=l;const a=[],n=e=>{Array.isArray(e)&&e.length>0&&e.forEach((e=>{const l=e[h()(t,"key","key")],s=e[h()(t,"title","title")],r=e[h()(t,"children","children")];a.push({id:l,value:l,label:s}),n(r)}))};return n(e),a}));return{treeData:e,list:a(e,{fieldNames:t})}}};const $=W,ee=e=>{let{value:l,label:t,onValidate:a,overlayClassName:n,placement:i,onOpenChange:d,onChange:m,children:p}=e;const[v,_]=(0,r.useState)(l),[h,g]=(0,r.useState)(!1),x=(0,r.useMemo)((()=>a&&!a(v)),[a,v]);return(0,f.jsx)(c.Popover,{open:h,trigger:"click",placement:i,overlayClassName:s()(o["pop-util-overlay"],n),onOpenChange:e=>{g(e),_(l),d&&d(e)},content:(0,f.jsxs)("span",{onClick:e=>{e.stopPropagation()},children:[(0,f.jsx)("div",{className:o["pop-util-content"],children:p({value:v,onChange:_})}),(0,f.jsxs)(c.Row,{className:o["pop-util-footer"],justify:"end",gutter:8,children:[(0,f.jsx)(c.Col,{children:(0,f.jsx)(c.Button,{size:"small",onClick:()=>{g(!1),d&&d(!1)},children:(0,f.jsx)(u.FormattedMessage,{id:"cancelText",moduleName:"Filter",defaultMessage:"\u53d6\u6d88"})})}),(0,f.jsx)(c.Col,{children:(0,f.jsx)(c.Button,{size:"small",type:"primary",disabled:x,onClick:()=>{g(!1),d&&d(!1),m&&m(v)},children:(0,f.jsx)(u.FormattedMessage,{id:"determineText",moduleName:"Filter",defaultMessage:"\u786e\u5b9a"})})})]})]}),children:(0,f.jsx)("span",{children:(0,f.jsx)(w,{open:h,active:(0,P.A)(l),label:t})})})};ee.defaultProps={placeholder:"\u8bf7\u9009\u62e9",placement:"bottomLeft"};const le=ee,te=e=>{let{label:l,value:t,onChange:a,placeholder:n,onValidate:s,overlayClassName:r,placement:i,onOpenChange:u,...d}=e;return(0,f.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:r,placement:i,onOpenChange:u,children:e=>{let{value:t,onChange:a}=e;return(0,f.jsx)(c.Input,{...d,placeholder:n||"\u8bf7\u8f93\u5165".concat(l),className:o["filter-item-text"],value:h()(t,"value",""),onChange:e=>a(e.target.value?{label:e.target.value,value:e.target.value}:null)})}})};var ae=t(79160),ne=t.n(ae);const se=(e,l,t)=>ne()(e[0])||ne()(e[1])?{label:(e=>ne()(e[0])&&ne()(e[1])?"".concat(e[0],"-").concat(e[1]).concat(l||""):ne()(e[0])?t({id:"over"},{count:e[0],unit:l}):ne()(e[1])?t({id:"lessThan"},{count:e[1],unit:l}):void 0)(e),value:[e[0]||null,e[1]||null]}:null,re=e=>{let{label:l,value:t,onChange:a,placeholder:n,onValidate:s,overlayClassName:r,placement:i,onOpenChange:d,unit:m,...p}=e;const{formatMessage:v}=(0,u.useIntl)({moduleName:"Filter"});return(0,f.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:r,placement:i,onOpenChange:d,children:e=>{let{value:t,onChange:a}=e;return(0,f.jsxs)(c.Space.Compact,{children:[(0,f.jsx)(c.InputNumber,{...p,placeholder:n||"".concat(v({id:"pleaseInput"})).concat(l),className:o["filter-item-number-range"],value:h()(t,"value[0]",""),onChange:e=>{a(se([e,h()(t,"value[1]")],m,v))}}),(0,f.jsx)(c.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),(0,f.jsx)(c.InputNumber,{...p,placeholder:n||"".concat(v({id:"pleaseInput"})).concat(l),className:o["filter-item-number-range"],value:h()(t,"value[1]",""),onChange:e=>{a(se([h()(t,"value[0]"),e],m,v))}}),m&&(0,f.jsx)(c.Input,{style:{width:50,borderLeft:0},value:m,disabled:!0})]})}})};re.defaultProps={onValidate:e=>{const l=h()(e,"value");return!(l&&ne()(l[0])&&ne()(l[1])&&l[1]<l[0])}};const ie=re;var oe=t(57469),ce=t.n(oe);const ue=z((e=>{let{value:l,onChange:t,picker:a,...n}=e;return(0,f.jsx)(c.DatePicker,{...n,picker:a,value:l&&ce()(l.value),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},n);e&&t({label:"date"!==a?"".concat(e.startOf(a).format(l),"~").concat(e.endOf(a).format(l)):e.format(l),value:new Date(e.startOf(a).valueOf())})}})}));ue.defaultProps="date";const de=ue,me=z((e=>{let{value:l,onChange:t,...a}=e;return(0,f.jsx)(c.DatePicker.RangePicker,{...a,allowEmpty:[!1,!1],value:l&&Array.isArray(l.value)&&2===l.value.length&&l.value.map((e=>ce()(e))),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},a);t({label:e.map((e=>e.format(l))).join("~"),value:e.map((e=>new Date(e.valueOf())))})}})}));var pe=t(89319);const ve=e=>{let{label:l,value:t,onChange:a,...n}=e;return(0,f.jsx)(le,{label:l,value:t,onChange:a,onValidate:e=>{const l=null===e||void 0===e?void 0:e.value;return(null===l||void 0===l?void 0:l.type)&&Array.isArray(null===l||void 0===l?void 0:l.value)&&2===l.value.length},children:e=>{let{value:l,onChange:t}=e;return(0,f.jsx)(pe.A,{...n,className:o["filter-item-text"],value:h()(l,"value"),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},n),a=(null===e||void 0===e?void 0:e.value)||[];t({label:a[0]&&!a[1]?"".concat(ce()(a[0]).format(l),"\u4ee5\u540e"):!a[0]&&a[1]?"".concat(ce()(a[1]).format(l),"\u4ee5\u524d"):a[0]&&a[1]?"".concat(ce()(a[0]).format(l),"~").concat(ce()(a[1]).format(l)):"",value:e})}})}})},_e=e=>l=>{let{placeholder:t,label:a,...n}=l;return(0,f.jsx)(u.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"Filter",values:{label:a},children:l=>(0,f.jsx)(e,{...n,label:a,placeholder:t||l})})},he=z(D.Ay),fe=z(D.Eo),ge=z(T.A),xe=z(L.A),je=z(V.Ay),ye=z(E.Ay),Ie=z($),Ce=_e(te),Fe=_e(ie);var be=t(22717),Ne=t.n(be);const Oe=e=>Ne()(e,((e,l)=>{let{name:t,value:a}=l;e[t]=Array.isArray(a)?a.map((e=>{let{value:l}=e;return l})):a.value}),{}),Me=e=>l=>{let{name:t,label:a,...n}=l;const{value:s,onChange:r}=v();return(0,f.jsx)(e,{...n,label:a,onChange:r?e=>r({name:t,label:a,value:e}):n.onChange,value:s?h()(s.get(t),"value"):n.value})},ke=Me((e=>{let{label:l,onChange:t,value:a,...n}=e;return(0,f.jsx)(O.SearchInput,{...n,placeholder:"\u8bf7\u8f93\u5165".concat(l),value:(null===a||void 0===a?void 0:a.value)||"",onSearch:e=>{t({label:e,value:e})}})}));var Ae=t(76329);const{CheckableTag:Se}=c.Tag,Pe=e=>{let{value:l,onChange:t,single:a,maxLength:n,addressApi:s,...i}=e;const{message:d}=c.App.useApp(),{locale:m}=(0,Ae.usePreset)(),{formatMessage:p}=(0,u.useIntl)({moduleName:"Filter"}),v=(0,r.useMemo)((()=>s.getChinaHotCities()),[s]);return(0,f.jsxs)(f.Fragment,{children:[v.map((e=>{const{code:s}=e,r=(0,V.NY)(e,m);return(0,f.jsx)(Se,{size:"small",checked:a?(null===l||void 0===l?void 0:l.value)===s:!!(l||[]).find((e=>{let{value:l}=e;return l===s})),onChange:e=>{if(a)return void t(e?{value:s,label:r}:null);const i=(l||[]).slice(0);e?i.push({value:s,label:r}):(()=>{const e=i.findIndex((e=>{let{value:l}=e;return l===s}));i.splice(e,1)})(),i.length>n?d.error(p({id:"maxSelectedCount"},{count:n})):t(i)},children:r},s)})),(0,f.jsxs)(Se,{className:o["filter-advanced-item-other"],size:"small",checked:(a?null===l||void 0===l?void 0:l.value:(null===l||void 0===l?void 0:l.value)&&l.value.length>0)&&!v.find((e=>{let{code:t}=e;return a?(null===l||void 0===l?void 0:l.value)===t:!!(l||[]).find((e=>{let{value:l}=e;return l===t}))})),children:[(0,f.jsx)(u.FormattedMessage,{id:"otherText",moduleName:"Filter",defaultMessage:"\u5176\u4ed6"}),(0,f.jsx)(V.Ay,{...i,className:o["filter-advanced-item-other-inner"],maxLength:n,value:a?null===l||void 0===l?void 0:l.value:(l||[]).map((e=>{let{value:l}=e;return l})),single:a,onChange:function(e){const l=e=>{const{city:l}=s.getCity(e);return{value:null===l||void 0===l?void 0:l.code,label:null===l||void 0===l?void 0:l.name}};t(a?l(e):e.map((e=>l(e))))}})]})]})};Pe.defaultProps={single:!1,maxLength:5};const we=(0,V.DF)(Pe);var ze=t(19853),De=t.n(ze);const{CheckableTag:Te}=c.Tag,Ve=e=>{let{value:l,onChange:t,label:n,single:s,maxLength:r,items:i,custom:o}=e;const{message:d}=c.App.useApp(),{formatMessage:m}=(0,u.useIntl)({moduleName:"Filter"});return(0,f.jsxs)(f.Fragment,{children:[i.map((e=>{let{label:a,value:n}=e;return(0,f.jsx)(Te,{size:"small",checked:s?De()(n,null===l||void 0===l?void 0:l.value):!!(l||[]).find((e=>{let{value:l}=e;return De()(n,l)})),onChange:e=>{if(s)return void t(e?{value:n,label:a}:null);const i=(l||[]).slice(0);e?i.push({value:n,label:a}):(()=>{const e=i.find((e=>{let{value:l}=e;return De()(n,l)}));i.splice(e,1)})(),i.length>r?d.error(m({id:"maxSelectedCount"},{count:r})):t(i)},children:a},a)})),o&&(()=>{const e=Object.values(a).find((e=>e===o.type));return e?(0,f.jsx)(e,{...o.props,value:l,placeholder:"".concat(m({id:"pleaseInput"})).concat(n),onChange:t}):null})()]})};Ve.defaultProps={single:!1,maxLength:5,items:[]};const Le=Ve;var Ee=t(78491),Re=t.n(Ee);const Ye={CityFilterItem:we,ListFilterItem:Le,InputFilterItem:e=>{let{value:l,label:t,onChange:a,...n}=e;const s=null===l||void 0===l?void 0:l.value,[i,o]=(0,r.useState)(s||""),[d,m]=(0,r.useState)(!1),{formatMessage:p}=(0,u.useIntl)({moduleName:"Filter"}),v=()=>{a(i?{label:i,value:i}:null)},_=Re()((()=>{m(!1),v()})),h=(0,r.useRef)("");return h.current=i,(0,r.useEffect)((()=>{s!==h.current&&o(s)}),[s]),(0,f.jsx)("span",{ref:_,children:(0,f.jsxs)(c.Space.Compact,{children:[(0,f.jsx)(c.Input,{placeholder:"".concat(p({id:"pleaseInput"})).concat(t),...n,size:"small",value:i,onFocus:()=>{m(!0)},onChange:e=>{o(e.target.value)},onPressEnter:v}),d&&(0,f.jsx)(c.Button,{size:"small",type:"primary",onClick:v,children:p({id:"search"})})]})})}},Ue=e=>{let{list:l}=e;const{value:t,onChange:a}=v();return(0,f.jsx)(c.Flex,{gap:8,children:l.map(((e,l)=>{const n=e.type;return(0,f.jsxs)(c.Flex,{gap:16,align:"center",children:[(0,f.jsxs)("div",{className:o["filter-label"],children:[e.props.label,":"]}),(0,f.jsx)(c.Flex,{wrap:!0,align:"center",children:(0,f.jsx)(n,{...e.props,value:t?h()(t.get(e.props.name),"value"):e.props.value,onChange:a?l=>a({name:e.props.name,label:e.props.label,value:l}):e.props.onChange})})]},e.key||e.props.name||l)}))})},Be=(0,u.createWithIntl)({importMessages:d,moduleName:"Filter"})((e=>{const{formatMessage:l}=(0,u.useIntl)({moduleName:"Filter"});return(0,f.jsx)(k,{...e,children:e=>{let{value:t,onChange:a,props:n}=e;const{list:s,more:r}=n;return(0,f.jsxs)("div",{children:[(0,f.jsxs)(c.Flex,{gap:8,vertical:!0,className:o["filter-advanced"],children:[s.map(((e,l)=>(0,f.jsx)(Ue,{list:e},l))),r&&(0,f.jsx)(j,{className:o["filter-advanced-more"],label:"".concat(l({id:"moreText"}),":"),list:[r]})]}),t&&t.length>0&&(0,f.jsx)(I,{value:t,onChange:a})]})}})}));Be.fields=Ye;const Ke=Be,Xe=e=>{let{children:l,...t}=e;return l(t)};S.fields=a,S.getFilterValue=Oe,S.useFilter=v,S.SearchInput=ke,S.withFilterValue=Me;const qe=S}}]);
|
|
2
|
+
//# sourceMappingURL=6915.3738b719.chunk.js.map
|