@kne-components/components-core 0.2.37 → 0.2.38
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.52e5cc05.chunk.css +2 -0
- package/build/static/css/{1151.03450da5.chunk.css.map → 1151.52e5cc05.chunk.css.map} +1 -1
- package/build/static/css/1153.fdc2b51b.chunk.css +2 -0
- package/build/static/css/{1153.3faef118.chunk.css.map → 1153.fdc2b51b.chunk.css.map} +1 -1
- package/build/static/css/1154.07cfcab2.chunk.css +2 -0
- package/build/static/css/{1154.4e83247f.chunk.css.map → 1154.07cfcab2.chunk.css.map} +1 -1
- package/build/static/css/1454.338fb17d.chunk.css +2 -0
- package/build/static/css/{1454.d4260759.chunk.css.map → 1454.338fb17d.chunk.css.map} +1 -1
- package/build/static/css/1554.56830c9e.chunk.css +2 -0
- package/build/static/css/{1554.d5581e19.chunk.css.map → 1554.56830c9e.chunk.css.map} +1 -1
- package/build/static/css/{2503.60a49e7c.chunk.css → 2503.c1266f44.chunk.css} +2 -2
- package/build/static/css/{2503.60a49e7c.chunk.css.map → 2503.c1266f44.chunk.css.map} +1 -1
- package/build/static/css/{2517.6163bfe2.chunk.css → 2517.5e3016b4.chunk.css} +2 -2
- package/build/static/css/{2517.6163bfe2.chunk.css.map → 2517.5e3016b4.chunk.css.map} +1 -1
- package/build/static/css/2716.7481b267.chunk.css +2 -0
- package/build/static/css/{2716.8e903843.chunk.css.map → 2716.7481b267.chunk.css.map} +1 -1
- package/build/static/css/{2730.22558faa.chunk.css → 2730.077e5d79.chunk.css} +2 -2
- package/build/static/css/{2730.22558faa.chunk.css.map → 2730.077e5d79.chunk.css.map} +1 -1
- package/build/static/css/{289.9209b6e4.chunk.css → 289.bece2aff.chunk.css} +2 -2
- package/build/static/css/{289.9209b6e4.chunk.css.map → 289.bece2aff.chunk.css.map} +1 -1
- package/build/static/css/{3142.d4231892.chunk.css → 3142.634defe2.chunk.css} +2 -2
- package/build/static/css/{3142.d4231892.chunk.css.map → 3142.634defe2.chunk.css.map} +1 -1
- package/build/static/css/{3843.b47c61bf.chunk.css → 3843.8d650318.chunk.css} +2 -2
- package/build/static/css/{3843.b47c61bf.chunk.css.map → 3843.8d650318.chunk.css.map} +1 -1
- package/build/static/css/4029.778f5299.chunk.css +2 -0
- package/build/static/css/{4029.0576aca7.chunk.css.map → 4029.778f5299.chunk.css.map} +1 -1
- package/build/static/css/4265.c84a5530.chunk.css +2 -0
- package/build/static/css/{4265.ced89574.chunk.css.map → 4265.c84a5530.chunk.css.map} +1 -1
- package/build/static/css/4666.62c3cd2d.chunk.css +2 -0
- package/build/static/css/{4666.e9a95e1f.chunk.css.map → 4666.62c3cd2d.chunk.css.map} +1 -1
- package/build/static/css/5443.e1b680c0.chunk.css +2 -0
- package/build/static/css/{5443.a7383489.chunk.css.map → 5443.e1b680c0.chunk.css.map} +1 -1
- package/build/static/css/5600.83d938a4.chunk.css +2 -0
- package/build/static/css/{5600.cebab92d.chunk.css.map → 5600.83d938a4.chunk.css.map} +1 -1
- package/build/static/css/{5873.aae7f120.chunk.css → 5873.10263ae0.chunk.css} +2 -2
- package/build/static/css/{5873.aae7f120.chunk.css.map → 5873.10263ae0.chunk.css.map} +1 -1
- package/build/static/css/{5996.9865605d.chunk.css → 5996.a0c3c42d.chunk.css} +2 -2
- package/build/static/css/{5996.9865605d.chunk.css.map → 5996.a0c3c42d.chunk.css.map} +1 -1
- package/build/static/css/{6611.6473b951.chunk.css → 6611.b82c8c6d.chunk.css} +2 -2
- package/build/static/css/{6611.6473b951.chunk.css.map → 6611.b82c8c6d.chunk.css.map} +1 -1
- package/build/static/css/6779.e3ef3c30.chunk.css +2 -0
- package/build/static/css/{6779.cda0ec27.chunk.css.map → 6779.e3ef3c30.chunk.css.map} +1 -1
- package/build/static/css/7121.fdb34b47.chunk.css +2 -0
- package/build/static/css/{7121.2839aaa8.chunk.css.map → 7121.fdb34b47.chunk.css.map} +1 -1
- package/build/static/css/7227.a9b1eb37.chunk.css +2 -0
- package/build/static/css/{7227.6d120831.chunk.css.map → 7227.a9b1eb37.chunk.css.map} +1 -1
- package/build/static/css/8017.8479c73d.chunk.css +2 -0
- package/build/static/css/{8017.a1597ccf.chunk.css.map → 8017.8479c73d.chunk.css.map} +1 -1
- package/build/static/css/8332.565d432e.chunk.css +2 -0
- package/build/static/css/{8332.6a35eea8.chunk.css.map → 8332.565d432e.chunk.css.map} +1 -1
- package/build/static/css/{8725.f814f64b.chunk.css → 8725.e7bf2a94.chunk.css} +2 -2
- package/build/static/css/{8725.f814f64b.chunk.css.map → 8725.e7bf2a94.chunk.css.map} +1 -1
- package/build/static/css/9968.72616c05.chunk.css +2 -0
- package/build/static/css/9968.72616c05.chunk.css.map +1 -0
- package/build/static/js/{1106.6e790ff1.chunk.js → 1106.f00757d2.chunk.js} +2 -2
- package/build/static/js/{1106.6e790ff1.chunk.js.map → 1106.f00757d2.chunk.js.map} +1 -1
- package/build/static/js/{1153.3fd2bb84.chunk.js → 1153.a0a27247.chunk.js} +3 -3
- package/build/static/js/{1153.3fd2bb84.chunk.js.map → 1153.a0a27247.chunk.js.map} +1 -1
- package/build/static/js/1154.c66e152e.chunk.js +2 -0
- package/build/static/js/{1154.f2513910.chunk.js.map → 1154.c66e152e.chunk.js.map} +1 -1
- package/build/static/js/1454.3e0d9dd1.chunk.js +3 -0
- package/build/static/js/{1454.bc4f32da.chunk.js.map → 1454.3e0d9dd1.chunk.js.map} +1 -1
- package/build/static/js/1554.8f3e3123.chunk.js +3 -0
- package/build/static/js/{1554.e51cd8ad.chunk.js.map → 1554.8f3e3123.chunk.js.map} +1 -1
- package/build/static/js/2503.138de34a.chunk.js +2 -0
- package/build/static/js/{2503.4ccaf7e1.chunk.js.map → 2503.138de34a.chunk.js.map} +1 -1
- package/build/static/js/2517.6b3321c9.chunk.js +2 -0
- package/build/static/js/{2517.b56f0569.chunk.js.map → 2517.6b3321c9.chunk.js.map} +1 -1
- package/build/static/js/2716.c98d9e80.chunk.js +3 -0
- package/build/static/js/{2716.a14703a4.chunk.js.map → 2716.c98d9e80.chunk.js.map} +1 -1
- package/build/static/js/{2730.ac67e7c0.chunk.js → 2730.8fb308f9.chunk.js} +2 -2
- package/build/static/js/{2730.ac67e7c0.chunk.js.map → 2730.8fb308f9.chunk.js.map} +1 -1
- package/build/static/js/2814.12bbaaa5.chunk.js +2 -0
- package/build/static/js/{2814.514bc040.chunk.js.map → 2814.12bbaaa5.chunk.js.map} +1 -1
- package/build/static/js/{289.81e61a85.chunk.js → 289.7663827b.chunk.js} +2 -2
- package/build/static/js/{289.81e61a85.chunk.js.map → 289.7663827b.chunk.js.map} +1 -1
- package/build/static/js/{3142.f0aa0433.chunk.js → 3142.c95fc76b.chunk.js} +2 -2
- package/build/static/js/{3142.f0aa0433.chunk.js.map → 3142.c95fc76b.chunk.js.map} +1 -1
- package/build/static/js/36.3e381c2f.chunk.js +2 -0
- package/build/static/js/{36.f294e8d9.chunk.js.map → 36.3e381c2f.chunk.js.map} +1 -1
- package/build/static/js/{3843.90f0e061.chunk.js → 3843.17189dab.chunk.js} +2 -2
- package/build/static/js/{3843.90f0e061.chunk.js.map → 3843.17189dab.chunk.js.map} +1 -1
- package/build/static/js/{4029.d53c9023.chunk.js → 4029.fb788692.chunk.js} +2 -2
- package/build/static/js/{4029.d53c9023.chunk.js.map → 4029.fb788692.chunk.js.map} +1 -1
- package/build/static/js/4265.227cb7a2.chunk.js +2 -0
- package/build/static/js/{4265.11c373c5.chunk.js.map → 4265.227cb7a2.chunk.js.map} +1 -1
- package/build/static/js/{4666.e0e2e7e8.chunk.js → 4666.1c5dbe5a.chunk.js} +3 -3
- package/build/static/js/{4666.e0e2e7e8.chunk.js.map → 4666.1c5dbe5a.chunk.js.map} +1 -1
- package/build/static/js/{5443.9cb909f2.chunk.js → 5443.c39e4913.chunk.js} +2 -2
- package/build/static/js/{5443.9cb909f2.chunk.js.map → 5443.c39e4913.chunk.js.map} +1 -1
- package/build/static/js/5600.9f2ea3e8.chunk.js +2 -0
- package/build/static/js/{5600.eef952fa.chunk.js.map → 5600.9f2ea3e8.chunk.js.map} +1 -1
- package/build/static/js/5873.0453f436.chunk.js +2 -0
- package/build/static/js/{5873.8b7ebb83.chunk.js.map → 5873.0453f436.chunk.js.map} +1 -1
- package/build/static/js/{5996.7e7c9380.chunk.js → 5996.71af4510.chunk.js} +2 -2
- package/build/static/js/{5996.7e7c9380.chunk.js.map → 5996.71af4510.chunk.js.map} +1 -1
- package/build/static/js/{6569.7522ba31.chunk.js → 6569.c4a33a29.chunk.js} +2 -2
- package/build/static/js/{6569.7522ba31.chunk.js.map → 6569.c4a33a29.chunk.js.map} +1 -1
- package/build/static/js/6611.c397245d.chunk.js +2 -0
- package/build/static/js/{6611.1e7772f6.chunk.js.map → 6611.c397245d.chunk.js.map} +1 -1
- package/build/static/js/{6779.fb5f7821.chunk.js → 6779.34e18b8c.chunk.js} +2 -2
- package/build/static/js/{6779.fb5f7821.chunk.js.map → 6779.34e18b8c.chunk.js.map} +1 -1
- package/build/static/js/6915.b9750330.chunk.js +2 -0
- package/build/static/js/{6915.4ba7898a.chunk.js.map → 6915.b9750330.chunk.js.map} +1 -1
- package/build/static/js/7121.624af3f0.chunk.js +2 -0
- package/build/static/js/{7121.671101fa.chunk.js.map → 7121.624af3f0.chunk.js.map} +1 -1
- package/build/static/js/7227.734d6398.chunk.js +3 -0
- package/build/static/js/{7227.d7fb7aaa.chunk.js.map → 7227.734d6398.chunk.js.map} +1 -1
- package/build/static/js/7790.1dd072fb.chunk.js +2 -0
- package/build/static/js/{7790.2ca7771a.chunk.js.map → 7790.1dd072fb.chunk.js.map} +1 -1
- package/build/static/js/{8017.128b5017.chunk.js → 8017.fd3f59f5.chunk.js} +2 -2
- package/build/static/js/{8017.128b5017.chunk.js.map → 8017.fd3f59f5.chunk.js.map} +1 -1
- package/build/static/js/{8332.e21b9b1e.chunk.js → 8332.6caa3728.chunk.js} +2 -2
- package/build/static/js/{8332.e21b9b1e.chunk.js.map → 8332.6caa3728.chunk.js.map} +1 -1
- package/build/static/js/8725.4b1f17a3.chunk.js +2 -0
- package/build/static/js/{8725.122e95a2.chunk.js.map → 8725.4b1f17a3.chunk.js.map} +1 -1
- package/build/static/js/{9968.29807a87.chunk.js → 9968.2486924c.chunk.js} +2 -2
- package/build/static/js/{9968.29807a87.chunk.js.map → 9968.2486924c.chunk.js.map} +1 -1
- package/build/static/js/{main.3b1c8651.js → main.571afaaf.js} +2 -2
- package/build/static/js/{main.3b1c8651.js.map → main.571afaaf.js.map} +1 -1
- package/package.json +1 -1
- package/build/static/css/1151.03450da5.chunk.css +0 -2
- package/build/static/css/1153.3faef118.chunk.css +0 -2
- package/build/static/css/1154.4e83247f.chunk.css +0 -2
- package/build/static/css/1454.d4260759.chunk.css +0 -2
- package/build/static/css/1554.d5581e19.chunk.css +0 -2
- package/build/static/css/2716.8e903843.chunk.css +0 -2
- package/build/static/css/4029.0576aca7.chunk.css +0 -2
- package/build/static/css/4265.ced89574.chunk.css +0 -2
- package/build/static/css/4666.e9a95e1f.chunk.css +0 -2
- package/build/static/css/5443.a7383489.chunk.css +0 -2
- package/build/static/css/5600.cebab92d.chunk.css +0 -2
- package/build/static/css/6779.cda0ec27.chunk.css +0 -2
- package/build/static/css/7121.2839aaa8.chunk.css +0 -2
- package/build/static/css/7227.6d120831.chunk.css +0 -2
- package/build/static/css/8017.a1597ccf.chunk.css +0 -2
- package/build/static/css/8332.6a35eea8.chunk.css +0 -2
- package/build/static/css/9968.4dc84cbd.chunk.css +0 -2
- package/build/static/css/9968.4dc84cbd.chunk.css.map +0 -1
- package/build/static/js/1154.f2513910.chunk.js +0 -2
- package/build/static/js/1454.bc4f32da.chunk.js +0 -3
- package/build/static/js/1554.e51cd8ad.chunk.js +0 -3
- package/build/static/js/2503.4ccaf7e1.chunk.js +0 -2
- package/build/static/js/2517.b56f0569.chunk.js +0 -2
- package/build/static/js/2716.a14703a4.chunk.js +0 -3
- package/build/static/js/2814.514bc040.chunk.js +0 -2
- package/build/static/js/36.f294e8d9.chunk.js +0 -2
- package/build/static/js/4265.11c373c5.chunk.js +0 -2
- package/build/static/js/5600.eef952fa.chunk.js +0 -2
- package/build/static/js/5873.8b7ebb83.chunk.js +0 -2
- package/build/static/js/6611.1e7772f6.chunk.js +0 -2
- package/build/static/js/6915.4ba7898a.chunk.js +0 -2
- package/build/static/js/7121.671101fa.chunk.js +0 -2
- package/build/static/js/7227.d7fb7aaa.chunk.js +0 -3
- package/build/static/js/7790.2ca7771a.chunk.js +0 -2
- package/build/static/js/8725.122e95a2.chunk.js +0 -2
- /package/build/static/js/{1153.3fd2bb84.chunk.js.LICENSE.txt → 1153.a0a27247.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1454.bc4f32da.chunk.js.LICENSE.txt → 1454.3e0d9dd1.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.e51cd8ad.chunk.js.LICENSE.txt → 1554.8f3e3123.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.a14703a4.chunk.js.LICENSE.txt → 2716.c98d9e80.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.e0e2e7e8.chunk.js.LICENSE.txt → 4666.1c5dbe5a.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.d7fb7aaa.chunk.js.LICENSE.txt → 7227.734d6398.chunk.js.LICENSE.txt} +0 -0
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2814],{25644:(e,t,n)=>{n.d(t,{A:()=>r});const r={getItem:e=>{const t=window.localStorage.getItem(e);try{const{dataType:e,value:n}=JSON.parse(t);if("object"===e&&"null"===n)return null;if("undefined"===e)return;return"number"===e?Number(n):"boolean"===e?Boolean(n):n}catch(n){return null}},setItem:(e,t)=>{const n=typeof t;window.localStorage.setItem(e,JSON.stringify({dataType:n,value:t}))}}},80940:(e,t,n)=>{n.r(t),n.d(t,{default:()=>w});var r=n(73884),s=n(96418),o=n.n(s),i=n(55199),l=n(83136),a=n.n(l),c=n(64671),m=n(81014),d=n(58407),u=n(77964),p=n(22616),h=n.n(p);const y="style_width-container__JfEbg__AYubY",g="style_hidden-container__EdySA__AYubY",_="style_hidden-inner__vAN59__AYubY",f="style_menu-list__VDttR__AYubY",x="style_btn-item__mp5MQ__AYubY";var b=n(15797),v=n.n(b),j=n(70579);const C=v()((e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:r,spaceProps:s,compact:o}=e;const i=o?0:["small","middle","large"].indexOf(s.size)>-1?8*(["small","middle","large"].indexOf(s.size)+1):Number.isInteger(s.size)?s.size:8;let l=0,a=0;for(;t>=a+r[l]+l*i&&l<r.length;)a+=r[l],l+=1;for(;t<a+(l-1)*i+(l<r.length?n+i:0)&&l>0;)a-=r[l-1],l-=1;return l}),(e=>{let{amountWidth:t,moreBtnWidth:n,buttonWidthList:r,spaceProps:s,compact:o}=e;return`${t}${n}${r.join(",")}${Object.values(s).join(",")}${o&&o.toString()}`})),Y=e=>{let{list:t,more:n,compact:s,...l}=e;const c=h()(l,["size","split","align","style"]),[p,b]=(0,r.useState)(t.length&&1),v=o()((()=>{const e=w.current,t=A.current,n=Y.current;if(!e)return;const o=e.querySelectorAll(".button-group-item");if(!o)return;if(0===o.length)return;const i=n.clientWidth,l=t.clientWidth,a=[].map.call(o,(e=>e.offsetWidth)),m=C({amountWidth:i,moreBtnWidth:l,buttonWidthList:a,spaceProps:c,compact:s});(0,r.startTransition)((()=>{b(m)}))})),Y=(0,u.A)(v),w=(0,u.A)(v),A=(0,u.A)(v),N=t.slice(p),E=(e,t,n)=>{if("function"===typeof e)return e({key:t,className:a()("button-group-item",x),isDropdown:n});const{className:s,confirm:o,buttonComponent:i,...l}=e,c=o||l.message,u=c?d.default:i||m.default;return(0,r.createElement)(u,{danger:c&&!1!==l.isDelete,...Object.assign({},l,c&&(l.isModal||n)?{isModal:!0}:{}),key:t,className:a()("button-group-item",x,s)})},S=s?i.Space.Compact:i.Space;return(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)("div",{className:y,ref:Y}),(0,j.jsxs)("div",{className:g,children:[(0,j.jsx)("div",{className:_,ref:A,children:n}),(0,j.jsx)("div",{className:_,ref:w,children:(0,j.jsx)(S,{...c,children:t.map(E)})})]}),(0,j.jsxs)(S,{...c,children:[t.slice(0,p).map(((e,t)=>E(e,t,!1))),N.length>0&&(0,j.jsx)(i.Dropdown,{overlayClassName:f,menu:{items:N.map(((e,t)=>({key:t,label:E(e,t,!0)})))},children:n})]})]})};Y.defaultProps={more:(0,j.jsxs)(i.Button,{children:["\u66f4\u591a",(0,j.jsx)(c.default,{type:"icon-arrow-thin-down"})]})};const w=Y},58407:(e,t,n)=>{n.r(t),n.d(t,{ConfirmLink:()=>_,ConfirmText:()=>f,default:()=>x,withConfirm:()=>g});n(73884);var r=n(55199);const s=e=>({"en-US":()=>n.e(3275).then(n.bind(n,63275)),"zh-CN":()=>n.e(5181).then(n.bind(n,25181))}[e]());var o=n(64671),i=n(58609),l=n(3382),a=n(83136),c=n.n(a);const m="style_overlay__99t5t__AYubY",d="style_is-danger__gxyAB__AYubY",u="style_title__EEPu2__AYubY",p="style_content__mZZg5__AYubY",h="style_has-title__5+PEt__AYubY";var y=n(70579);const g=e=>{const t=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:s})((t=>{let{title:n,message:s,isDelete:a=!0,onClick:g,onCancel:_,disabled:f,showCancel:x,cancelText:b,isModal:v,okText:j,placement:C,getContainer:Y,...w}=t;const{formatMessage:A}=(0,i.useIntl)({moduleName:"ConfirmButton"}),N=(0,l.useConfirmModal)();return v?(0,y.jsx)(e,{...w,disabled:f,onClick:e=>{N({type:"confirm",title:n,getContainer:Y,danger:a,confirmType:a?"warning":"info",message:s||A({id:"message"}),okText:j||A(a?{id:"delete"}:{id:"confirm"}),cancelText:b||A({id:"cancel"}),onCancel:_,onOk:g})}}):(0,y.jsx)(r.Popconfirm,{title:(0,y.jsxs)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[n&&(0,y.jsxs)(r.Space,{size:0,align:"start",className:u,children:[a&&(0,y.jsx)(o.default,{className:"title-icon",type:"icon-tishi-tianchong"}),n]}),(0,y.jsxs)(r.Space,{size:0,align:"start",className:c()(p,{[h]:n}),children:[!n&&a?(0,y.jsx)(o.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,s||A({id:"message"})]})]}),placement:C,onConfirm:g,okButtonProps:{danger:a},onCancel:_,overlayClassName:c()(m,{[d]:a}),getPopupContainer:Y,disabled:f,showCancel:x,cancelText:b,okText:j||A(a?{id:"delete"}:{id:"confirm"}),children:(0,y.jsx)(e,{...w,disabled:f})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},_=g(r.Typography.Link),f=g(r.Typography.Text),x=g(r.Button)},48731:(e,t,n)=>{n.r(t),n.d(t,{default:()=>g});var r=n(73884),s=n(87558),o=n(63908),i=n(15797),l=n.n(i),a=n(79686),c=n.n(a),m=n(70579);const d=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],u=(0,s.withFetch)((e=>{let{data:t,children:n}=e;return"function"===typeof n?n(t):n||(null===t||void 0===t?void 0:t.description)})),p=l()((e=>new Map(d.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),h=e=>{let{loader:t,...n}=e;const{global:{enumsRef:s}}=(0,o.useGlobalContext)(),i=(0,r.useRef)(null);return(0,m.jsx)(u,{...n,loader:async function(){const e=p(await t(...arguments)),{params:n}=arguments.length<=0?void 0:arguments[0],{moduleName:r,name:o,force:l,locale:a}=n,m=async t=>!0!==l&&i.current===a&&s.current.get(t)||await(async()=>{const n=e.get(t),r=await(async()=>"function"===typeof n?new Map((await n({locale:a})).map((e=>[e.value.toString(),e]))):Array.isArray(n)?new Map(n.map((e=>[e.value.toString(),e]))):"object"===typeof n?new Map(Object.keys(n).map((e=>[e.toString(),n[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return s.current.set(t,r),i.current=a,r})();if(Array.isArray(r))return await Promise.all(r.map((e=>m(e).then((e=>Array.from(e.values()))))));const d=await m(r);return c()(o)?Array.from(d.values()):d.get(o.toString())}})},y=e=>{let{moduleName:t,name:n,force:r,children:s,...i}=e;const l=(0,o.usePreset)();return(0,m.jsx)(h,{...i,params:{moduleName:t,locale:null===l||void 0===l?void 0:l.locale,enums:null===l||void 0===l?void 0:l.enums,name:n,force:r},loader:e=>{let{params:t}=e;return t.enums},children:s})};y.defaultProps={force:!1};const g=y},62716:(e,t,n)=>{n.r(t),n.d(t,{default:()=>d});var r=n(73884),s=n(83136),o=n.n(s);const i={"state-tag":"style_state-tag__Kx27z__AYubY","state-result-tag":"style_state-result-tag__CssDz__AYubY","state-skill-tag":"style_state-skill-tag__k0bQE__AYubY","event-tag":"style_event-tag__cg6SE__AYubY","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__AYubY","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__AYubY","state-tag-filterResult":"style_state-tag-filterResult__KTkot__AYubY","show-bg":"style_show-bg__OcL+R__AYubY","tag-text":"style_tag-text__JHCt+__AYubY","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__AYubY"};var l=n(55199),a=n(70579);const c={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},m=e=>{let{showBorder:t,text:n,type:s,showBackground:m,className:d,filterName:u,...p}=e;const h=(0,r.useMemo)((()=>{var e,t;return{color:(null===c||void 0===c||null===(e=c[s])||void 0===e?void 0:e.color)||c[s],borderColor:(null===c||void 0===c||null===(t=c[s])||void 0===t?void 0:t.borderColor)||c[s]}}),[s]);return(0,a.jsxs)(l.Space,{"data-testid":"components-core-state-tag",className:o()(i["state-tag-wrapper"],"filterResult"===s?i["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[u?(0,a.jsxs)("span",{className:i["state-tag-filter-name"],children:[u,":"]}):null,(0,a.jsx)(l.Tag,{color:h.color,...p,style:{background:m?h.color+"0F":"none",color:h.color,border:t?`1px solid ${h.borderColor}`:"none"},className:o()(i["state-tag"],d,"result"===s?i["state-result-tag"]:"","skill"===s?i["state-skill-tag"]:"",i[`state-tag-${s}`],m?i["show-bg"]:"",t?i["show-border"]:"",null!==p&&void 0!==p&&p.onClick?i["event-tag"]:""),children:(0,a.jsx)("span",{className:i["tag-text"],children:n})})]})};m.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const d=m},22814:(e,t,n)=>{n.r(t),n.d(t,{TablePage:()=>Ee,default:()=>je});const r={table:"style_table__z7kfz__AYubY","is-resize":"style_is-resize__ut6RW__AYubY","is-moving":"style_is-moving__BJ9wR__AYubY","cell-resize-bar":"style_cell-resize-bar__-mlUF__AYubY","is-computed":"style_is-computed__B9rIF__AYubY","options-column":"style_options-column__vsPTr__AYubY","options-btn":"style_options-btn__U3uoy__AYubY",tooltip:"style_tooltip__vJlkv__AYubY","table-changer-setting":"style_table-changer-setting__HcrwR__AYubY","width-changer-sign":"style_width-changer-sign__Aflyl__AYubY","columns-control":"style_columns-control__5-5ZF__AYubY","columns-control-content":"style_columns-control-content__MoeUI__AYubY","columns-control-content-title":"style_columns-control-content-title__P5sXV__AYubY","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__AYubY","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__AYubY","columns-control-content-input":"style_columns-control-content-input__G6yKq__AYubY","columns-control-content-list":"style_columns-control-content-list__aXvTs__AYubY","columns-control-content-item":"style_columns-control-content-item__jbyyE__AYubY","is-drag":"style_is-drag__U68aw__AYubY","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__AYubY","sortable-drag":"style_sortable-drag__K5hWd__AYubY","sortable-ghost":"style_sortable-ghost__lKTd2__AYubY","columns-control-overlay":"style_columns-control-overlay__OxCIz__AYubY","sort-btn":"style_sort-btn__KvNLr__AYubY","sort-active-desc":"style_sort-active-desc__TIhMC__AYubY","sort-icon":"style_sort-icon__dB85I__AYubY","sort-active-asc":"style_sort-active-asc__RUBup__AYubY"};var s=n(55199),o=n(73884),i=n(83136),l=n.n(i),a=n(42787),c=n(76801),m=n(77964),d=n(96418),u=n.n(d);const p={"col-item":"columns_col-item__Ym1Ec__AYubY",tag:"columns_tag__bQZLG__AYubY",avatar:"columns_avatar__SLPI+__AYubY",hover:"columns_hover__oAwHg__AYubY",primary:"columns_primary__6KtaA__AYubY",loading:"columns_loading__gtBay__AYubY",options:"columns_options__WvDZD__AYubY"};var h=n(57469),y=n.n(h),g=n(64671),_=n(80940),f=n(70579);const x=e=>{let{className:t,list:n=[],width:o}=e;return(0,f.jsx)("div",{className:l()(t,r["options-column"]),style:{"--max-width":o+"px"},children:(0,f.jsx)(_.default,{list:n.filter((e=>!(null!==e&&void 0!==e&&e.hidden))).map((e=>{let{className:t,...n}=e;return Object.assign({},n,{className:l()(t,"btn-no-padding",r["options-btn"]),type:"link"})})),more:(0,f.jsx)(s.Button,{icon:(0,f.jsx)(g.default,{type:"icon-gengduo2"}),className:"btn-no-padding",type:"link"})})})};var b=n(62716),v=n(40438),j=n(48731),C=n(87558);const Y=e=>{let{children:t,ellipsis:n}=e;return(0,f.jsx)(s.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{overlayClassName:r.tooltip,children:t}}),children:t})},w=e=>{let{type:t,item:n,isEmpty:r,emptyRender:s,hover:i,primary:a,children:c,width:m,style:d,onClick:u,colValue:h}=e;const[y,g]=(0,o.useState)(!1);return(0,f.jsx)("div",{style:Object.assign({},d,{"--max-width":m+"px"}),className:l()(p["col-item"],p[t],r?null:{[p.hover]:i,[p.primary]:a,[p.loading]:y}),onClick:e=>{"function"!==typeof u||r||y||(g(!0),Promise.resolve(u({item:n,colItem:h,event:e})).finally((()=>{g(!1)})))},children:r?s({type:t,item:n,hover:i,primary:a,children:c}):c})};w.defaultProps={emptyRender:()=>"-"};const A=w,N=(e,t)=>"function"===typeof t?t(e):Array.isArray(e)&&0===e.length||e&&"object"===typeof e&&0===Object.values(e).length||""===e||void 0===e||null===e,E=(0,C.createWithFetch)({loading:null})((e=>{let{data:t,children:n}=e;return n(t)})),S=e=>{let{api:t,expand:n,onExpand:r,ellipsis:o,hover:i,primary:l,emptyRender:a,isEmpty:c}=e;const m=Object.assign({},t);return n?(0,f.jsx)(E,{...m,children:e=>(0,f.jsx)(A,{type:"hide-info-expand",item:e,hover:i,primary:l,emptyRender:a,isEmpty:N(e),children:(0,f.jsx)(Y,{ellipsis:o,children:"function"===typeof m.children?m.children(e):e})})}):(0,f.jsx)(A,{type:"hide-info",primary:!0,emptyRender:a,children:(0,f.jsx)(s.Button,{className:"btn-no-padding",type:"link",onClick:r,children:"\u67e5\u770b"})})};var R=n(1488),k=n.n(R);const O=(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(A,{...l,type:"other",item:e,hover:n,primary:r,emptyRender:o,isEmpty:i,children:(0,f.jsx)(Y,{ellipsis:s,children:e})})},P={date:{render:(e,t)=>{let{hover:n,primary:r,isEmpty:s,emptyRender:o,...i}=t;return(0,f.jsx)(A,{...i,type:"date",item:e,primary:r,hover:n,emptyRender:o,isEmpty:s||!y()(e).isValid(),children:y()(e).format("YYYY-MM-DD")})},width:160,min:120,max:400},dateShort:{render:(e,t)=>{let{hover:n,primary:r,isEmpty:s,emptyRender:o,...i}=t;return(0,f.jsx)(A,{...i,type:"date-short",item:e,primary:r,hover:n,emptyRender:o,isEmpty:s||!y()(e).isValid(),children:y()(e).format("YYYY-MM")})},width:120,min:100,max:400},dateRange:{render:(e,t)=>{let{hover:n,primary:r,isEmpty:s,emptyRender:o,...i}=t;return(0,f.jsx)(A,{...i,type:"date-range",item:e,primary:r,hover:n,emptyRender:o,isEmpty:s,children:y()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD HH:mm")+"-"+y()(null===e||void 0===e?void 0:e[1]).format("HH:mm")})},width:240,min:120,max:400},datetime:{render:(e,t)=>{let{hover:n,primary:r,emptyRender:s,isEmpty:o,hideSecond:i,...l}=t;return(0,f.jsx)(A,{...l,item:e,primary:r,hover:n,emptyRender:s,isEmpty:o||!y()(e).isValid(),children:y()(e).format(i?"YYYY-MM-DD HH:mm":"YYYY-MM-DD HH:mm:ss")})},width:190,min:190,max:400},serialNumber:{render:(e,t)=>{let{hover:n,primary:r,emptyRender:s,isEmpty:o,...i}=t;return(0,f.jsx)(A,{...i,type:"serial-number",item:e,primary:r,hover:n,emptyRender:s,isEmpty:o,children:e})},width:190,min:100,max:400},serialNumberShort:{render:(e,t)=>{let{hover:n,primary:r,emptyRender:s,isEmpty:o,...i}=t;return(0,f.jsx)(A,{...i,type:"serial-number-short",item:e,primary:r,hover:n,emptyRender:s,isEmpty:o,children:e})},width:120,min:100,max:400},user:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(A,{...l,type:"user",item:e,primary:r,hover:n,emptyRender:o,isEmpty:i,children:(0,f.jsx)(Y,{ellipsis:s,children:e})})},width:200,min:120,max:400},userName:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(A,{...l,type:"user-name",item:e,primary:r,hover:n,emptyRender:o,isEmpty:i,children:(0,f.jsx)(Y,{ellipsis:s,children:e})})},width:100,min:100,max:400},contacts:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(A,{...l,type:"contacts",item:e,primary:r,hover:n,emptyRender:o,isEmpty:i,children:(0,f.jsx)(Y,{ellipsis:s,children:e})})},width:240,min:160,max:400},tag:{render:(e,t)=>{let{emptyRender:n,isEmpty:r,...s}=t;return(0,f.jsx)(A,{...s,type:"tag",item:e,emptyRender:n,isEmpty:r,children:e&&(e.isEnum?(0,f.jsx)(j.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:r}=t;return(0,f.jsx)(b.default,{type:n,...Object.assign({},k()(e,["name","isEnum","moduleName","force"])),text:r})}}):(0,f.jsx)(b.default,{...Object.assign({},e)}))})},width:140,min:100,max:400},avatar:{render:(e,t)=>{let{emptyRender:n,isEmpty:r,...s}=t;return(0,f.jsx)(A,{...s,type:"avatar",item:e,emptyRender:n,isEmpty:r,children:(0,f.jsx)(v.default.Avatar,{...Object.assign({},e),size:32})})},width:80,min:64,max:200},singleRow:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(A,{...l,type:"single-row",item:e,hover:n,primary:r,emptyRender:o,isEmpty:i,children:(0,f.jsx)(Y,{ellipsis:s,children:e})})},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,f.jsx)(S,{api:e,...t}),width:120,min:80,max:400},mainInfo:{render:(e,t)=>{let{ellipsis:n,hover:r=!0,primary:s=!0,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(A,{...l,type:"main-info",item:e,hover:r,primary:s,emptyRender:o,isEmpty:i,children:(0,f.jsx)(Y,{ellipsis:n,children:e})})},width:300,min:160,max:500},description:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(A,{...l,type:"description",item:e,hover:n,primary:r,emptyRender:o,isEmpty:i,children:(0,f.jsx)(Y,{ellipsis:s,children:e})})},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,f.jsx)(x,{className:l()(p["col-item"],p.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:r,ellipsis:s,emptyRender:o,isEmpty:i,...l}=t;return(0,f.jsx)(A,{...l,type:"sensitiveInfo",item:e,hover:n,primary:r,emptyRender:o,isEmpty:i,children:(0,f.jsx)(Y,{ellipsis:s,children:e})})},width:200,min:100,max:400},other:{render:O,width:200,min:120,max:400},otherSmall:{render:O,width:100,min:70,max:400},otherLarge:{render:O,width:300,min:120,max:500}},T=P;var M=n(33097),z=n.n(M),I=n(42907),F=n.n(I),D=n(22717),B=n.n(D),L=n(22616),$=n.n(L),W=n(63908),H=n(39835),K=n.n(H),J=n(81014),q=n(36),G=n(76441),U=n(69613),V=n.n(U),Q=n(56434),Z=n.n(Q);const{Panel:X}=s.Collapse,ee=e=>{let{close:t,onConfirm:n,columns:i,config:a}=e;const[c,m]=(0,o.useState)(a||{}),[d,u]=(0,o.useState)(""),{leftFixedColumns:p,rightFixedColumns:h,visibleColumns:y,hiddenColumns:_}=(0,o.useMemo)((()=>B()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},K()(i,(e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==z()(c,`${e.name}.visible`)&&e.hidden||!1===z()(c,`${e.name}.visible`)?"hiddenColumns":"visibleColumns"))),((e,t,n)=>{e[n]=t.sort(((e,t)=>z()(c,`${e.name}.rank`,0)-z()(c,`${t.name}.rank`,0)))}),{})),[i,c]),x=e=>(0,f.jsxs)(f.Fragment,{children:[e.titleText||e.title||"\u672a\u547d\u540d\u5217",e.groupHeader&&e.groupHeader.length>0?`(${e.groupHeader.map((e=>{let{title:t}=e;return t})).join("-")})`:""]});return(0,f.jsxs)("div",{className:r["columns-control-content"],children:[(0,f.jsx)("div",{className:r["columns-control-content-title"],children:(0,f.jsxs)(s.Row,{align:"middle",justify:"space-between",children:[(0,f.jsx)(s.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,f.jsx)(s.Col,{children:(0,f.jsx)(s.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,f.jsx)(J.default,{type:"text",icon:(0,f.jsx)(g.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,f.jsx)("div",{className:r["columns-control-content-scroller"],children:(0,f.jsxs)(s.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,f.jsx)(X,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,f.jsxs)(s.List,{className:r["columns-control-content-list"],children:[p.map(((e,t)=>(0,f.jsx)(s.List.Item,{className:r["columns-control-content-item"],children:(0,f.jsx)(s.Checkbox,{checked:!0,disabled:!0,children:x(e)})},e.name||`left-${t}`))),(0,f.jsx)(G.ReactSortable,{list:y,filter:".ignore-elements",dragClass:r["sortable-drag"],ghostClass:r["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=Z()(c),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach((e=>{V()(t,`${e.name}.visible`,!1)})),n.forEach(((e,n)=>{V()(t,`${e.name}.rank`,n+1)})),m(t)})({leftFixedColumns:p,visibleColumns:e,hiddenColumns:_,rightFixedColumns:h})},animation:300,delayOnTouchStart:!0,delay:2,children:y.map(((e,t)=>(0,f.jsxs)(s.List.Item,{className:l()(r["columns-control-content-item"],r["is-drag"]),children:[(0,f.jsx)(g.default,{type:"icon-paixu",className:r["columns-control-content-item-icon"]}),(0,f.jsx)(s.Checkbox,{checked:!0,disabled:e.fixed||p.length+y.length+h.length<=1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},c);n[e.name]=Object.assign({},n[e.name],{visible:!1}),m(n)},children:x(e)})]},e.name||`visible-${t}`)))}),h.map(((e,t)=>(0,f.jsx)(s.List.Item,{className:r["columns-control-content-item"],children:(0,f.jsx)(s.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.name||`right-${t}`)))]})},"active"),(0,f.jsx)(X,{header:(0,f.jsxs)(s.Row,{wrap:!1,justify:"space-between",children:[(0,f.jsx)(s.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,f.jsx)(s.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,f.jsx)(q.SearchInput,{prefix:(0,f.jsx)(g.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{u(e)},className:r["columns-control-content-input"],size:"small"})})]}),children:(0,f.jsx)(s.List,{dataSource:_.filter((e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(d)>-1)),renderItem:e=>(0,f.jsx)(s.List.Item,{className:r["columns-control-content-item"],children:(0,f.jsx)(s.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},c);n[e.name]=Object.assign({},n[e.name],{visible:!0}),m(n)},children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.key)})},"un-active")]})}),(0,f.jsxs)(s.Row,{className:r["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,f.jsx)(s.Col,{children:(0,f.jsx)(s.Button,{size:"small",onClick:()=>{m(a||{}),t()},children:"\u53d6\u6d88"})}),(0,f.jsx)(s.Col,{children:(0,f.jsx)(J.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(c),t()},children:"\u786e\u5b9a"})})]})]})};var te=n(51941),ne=n(19853),re=n.n(ne),se=n(21844),oe=n.n(se),ie=n(25644);const le="COMPONENTS_CORE_TABLE_CONFIG",ae={getDataApi:e=>e?{loader:()=>z()(ie.A.getItem(le),e,{})}:{},setDataFunc:(e,t)=>{if(e)return ie.A.setItem(le,Object.assign({},ie.A.getItem(le),{[e]:t}))}},ce=e=>{let{title:t,columns:n,config:i,setConfig:l}=e;const[a,c]=(0,o.useState)(!1);return(0,f.jsxs)(s.Row,{wrap:!1,children:[(0,f.jsx)(s.Col,{flex:1,children:t}),(0,f.jsx)(s.Col,{children:(0,f.jsx)(s.Popover,{open:a,onOpenChange:c,trigger:"click",placement:"bottomLeft",overlayClassName:r["columns-control-overlay"],content:(0,f.jsx)(ee,{columns:n,config:i,close:()=>{c(!1)},onConfirm:e=>{l((t=>B()(e,((e,n,r)=>{e[r]=Object.assign({},t[r],$()(n,["visible","rank"]))}),{})))}}),children:(0,f.jsx)("span",{className:r["table-changer-setting"],children:(0,f.jsx)(g.default,{type:"icon-shezhi"})})})})]})},me=e=>{let{columns:t,name:n,controllerOpen:s,tableWidth:i,rowKey:a}=e;const[c,m]=(0,o.useState)(null),d=(0,o.useRef)(c);d.current=c;const p=(0,o.useRef)(null),h=(0,o.useRef)(null),[y,_]=(0,o.useState)({}),{tableServerApis:x}=(0,W.usePreset)(),b=x||ae,v=null===b||void 0===b?void 0:b.getDataApi(n),j=(0,te.useDebouncedCallback)(((e,t)=>{null===b||void 0===b||b.setDataFunc(e,t)}),500),Y=u()((e=>{(0,o.startTransition)((()=>{_((t=>{const r="function"===typeof e?e(t):e;return n&&s&&j(n,r),r}))}))})),{send:w}=(0,C.useFetch)(Object.assign({...Object.assign({},v),auto:!1,cache:`TABLE_CONFIG_${n}`,isLocal:!0,onRequestSuccess:e=>{_(Object.assign({},e))}})),A=u()((()=>{n&&s&&v&&w({force:!1})}));(0,o.useEffect)((()=>{A()}),[A]);const N=(0,o.useMemo)((()=>t.filter((e=>!(!1===z()(y,`${e.name}.visible`)||!0!==z()(y,`${e.name}.visible`)&&!0===e.hidden))).sort(((e,t)=>{const n=e=>z()(y,`${e.name}.rank`,0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}))),[t,y]),E=(0,o.useMemo)((()=>oe()(N,(e=>{let{type:t}=e;return"options"!==t}))),[N]),S=(0,o.useMemo)((()=>F()(N,(e=>{let{type:t,name:n}=e;return z()(y,`${n}.width`)||T[t].width}))),[N,y]),R=e=>{let{width:t,index:n}=e;return E===n?t+Math.max(i-S-2,0):t},k=u()(((e,t)=>(0,f.jsx)("span",{className:l()(r["cell-resize-bar"]),onMouseDown:n=>{p.current=Object.assign({},e,{index:t}),h.current=n.clientX,m(t)},children:(0,f.jsx)(g.default,{type:"icon-paixu"})}))),O=u()((e=>{if(null===c)return;if(!p.current)return;const{name:t,width:n,min:r,max:s,index:o}=p.current,i=Math.min(Math.max(n+e,r),s);i<R({width:r,index:o})||Y((e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:i})})))})),P=u()(((e,n)=>{const{name:s,width:o,min:i,max:c}=e;let m=e;n===N.length-1&&(m=Object.assign({},e,{className:"has-config-btn",title:(0,f.jsx)(ce,{title:null===e||void 0===e?void 0:e.title,columns:t,config:y,setConfig:Y})}));const u=()=>({className:l()({[r["is-moving"]]:d.current===n})}),p=Math.min(Math.max(z()(y,`${s}.width`)||o,i),c),h=R({width:p,index:n});return Object.assign({},m,{onHeaderCell:u,onCell:u,width:h,shouldCellUpdate:(t,r)=>{const s="function"===typeof a?a(t):t[a],o="function"===typeof a?a(r):r[a];return null===d.current||d.current===n||"hideInfo"===e.type||!(s===o&&re()(t[e.name],r[e.name]))},title:(0,f.jsxs)(f.Fragment,{children:[m.title,!(h>p&&h>c)&&k(Object.assign({},m,{width:h}),n)]})})}));return(0,o.useEffect)((()=>{const e=()=>{m(null),h.current=null,p.current=null},t=e=>{null!==d.current&&null!==p.current&&(null!==h.current?O(e.clientX-h.current):h.current=e.clientX)};return document.documentElement.addEventListener("mouseup",e,!0),document.documentElement.addEventListener("mousemove",t,!0),()=>{document.documentElement.removeEventListener("mouseup",e,!0),document.documentElement.removeEventListener("mousemove",t,!0)}}),[O]),{visibleColumns:N,currentMoveColumnIndex:c,resizeBarRender:k,columnsConfig:y,totalWidth:S,computedColumnProps:P}};var de=n(79686),ue=n.n(de);const pe=e=>{let{rowKey:t,renderProps:n}=e;const[r,s]=(0,o.useState)(null),i=(0,o.useRef)(n);i.current=n;const l=u()(((e,n,o)=>{let{columnsConfig:l}=o;const{name:a,type:c,expandType:m,title:d,titleRender:u,fixed:p,emptyOf:h,emptyRender:y,groupHeader:g,sort:_,disableColItem:f,...x}=e,{render:b,width:v,min:j,max:C}=Object.assign({},T[c||"other"],"hideInfo"===c&&!ue()(r)&&$()(T[m||"other"],["width","min","max"])),Y=b;return{name:a,title:"function"===typeof u?u(d):d,min:j,max:C,width:v,fixed:p,groupHeader:g,sort:_,type:c,render:n=>{const o="function"===typeof t?t(n):n[t],c=Object.assign({},e,"function"===typeof e.render?e.render({...i.current,name:a,target:n}):{}),m=e=>{const t=N(e,h);return Y(e,{...x,name:a,width:z()(l,`${a}.width`)||v,min:j,max:C,isEmpty:t,emptyRender:y,hover:c.hover,colValue:Object.assign({},n),renderProps:i.current,primary:c.primary,ellipsis:c.ellipsis,expand:r===o,onExpand:()=>s(o)})},d=c.hasOwnProperty("valueOf")&&"function"===typeof c.valueOf?c.valueOf(n,Object.assign({},i.current,{name:a},f?{targetRender:m}:{})):z()(n,a);return f?d:m(d)}}}));return{expandInfo:r,computedColumnProps:l}},he=e=>(0,o.useMemo)((()=>{const t=e.filter((e=>e.groupHeader&&e.groupHeader.length>0));if(t.length>0){const n=e.slice(0),r=[],s=e=>{const{groupHeader:t}=e;if(!(t&&t.length>0))return;const s=n.indexOf(e),o=(t,n)=>{const[r,...i]=t;let l=n.find((e=>e.name===r.name));l||(l=Object.assign({startIndex:s},r,{children:[]}),n.push(l)),i.length>0?o(i,l.children):l.children.push(e)};o(t,r),n.splice(s,1)};return t.forEach(s),r.forEach(((e,t)=>{n.splice(e.startIndex+t,0,e)})),{columns:n,hasGroupHeader:!0}}return{columns:e,hasGroupHeader:!1}}),[e]);var ye=n(10986),ge=n.n(ye),_e=n(41740),fe=n.n(_e);const xe=e=>new Map((e||[]).map((e=>{let{name:t,sort:n}=e;return[t,n]}))),be=e=>{const[t,n]=ge()(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),s=(0,o.useMemo)((()=>xe(t)),[t]),i=(0,o.useCallback)((e=>n((t=>{const n=e(xe(t));return Array.from(n).map((e=>{let[t,n]=e;return{name:t,sort:n}}))}))),[n]);return(0,o.useCallback)((e=>{let{single:t,name:n}=e;return(0,f.jsxs)("div",{className:l()(r["sort-btn"],{[r["sort-active-desc"]]:"DESC"===s.get(n),[r["sort-active-asc"]]:"ASC"===s.get(n)}),onClick:()=>{i((e=>{const r=e.get(n),s="DESC"===r?"ASC":"ASC"===r?null:"DESC";if(t)return new Map(s?[[n,s]]:[]);const o=fe()(e);return s?o.set(n,s):o.delete(n),o}))},children:[(0,f.jsx)(g.default,{type:"icon-triangle-up",className:r["sort-icon"]}),(0,f.jsx)(g.default,{type:"icon-triangle-down",className:r["sort-icon"]})]})}),[s,i])},ve=e=>{let{columns:t,className:n,getScrollEl:i,sticky:c,stickyOffset:d,pagination:p,columnRenderProps:h,rowKey:y,dataSource:g,controllerOpen:_,name:x,summary:b,scroll:v,onTablePropsReady:j,...C}=e;const[Y,w]=(0,o.useState)(0),[A,N]=(0,o.useState)(!0);(0,o.useEffect)((()=>{Y&&setTimeout((()=>{N(!1)}),0)}),[Y]);(0,o.useRef)(h).current=h;const E=(0,m.A)((e=>{w(e.clientWidth)}),{isDebounce:!0}),{expandInfo:S,computedColumnProps:R}=pe({rowKey:y,renderProps:h}),{columnsConfig:k,visibleColumns:O,computedColumnProps:P,currentMoveColumnIndex:T,totalWidth:M}=me({columns:t,controllerOpen:_,name:x,computedColumnProps:R,tableWidth:Y,rowKey:y}),z=be(C),I=(0,o.useMemo)((()=>O.map(((e,t)=>{let n=R(e,t,{rowKey:y,expandInfo:S,columnsConfig:k});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,f.jsxs)(f.Fragment,{children:[n.title,z({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),_&&(n=P(n,t,{tableWidth:Y,columnsConfig:k})),n}))),[O,Y,k,S,y,_,R,P,z]),{columns:F,hasGroupHeader:D}=he(I),B=u()(j);return(0,o.useEffect)((()=>{B&&B({columns:t,groupColumns:F,dataSource:g,visibleColumns:O})}),[B,F,g,t,O]),(0,f.jsx)("div",{className:l()(n,r.table,{[r["is-resize"]]:null!==T,[r["is-computed"]]:A,[r["has-group-header"]]:D}),ref:E,style:{"--sticky-offset":d},children:!A&&(0,f.jsx)(a.A,{className:"table-page-scroller",scroller:{getContainer:i},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,f.jsx)(s.Table,{...C,sticky:!!c&&{getContainer:i},dataSource:g,rowKey:y,columns:F,scroll:Object.assign({},{x:Math.max(Y,M)},v),pagination:p,summary:"function"===typeof b?function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return b(Object.assign({},{pageData:e},{columns:F}),...n)}:null})})})};ve.defaultProps={controllerOpen:!0,rowKey:"id",getScrollEl:c.h,columnRenderProps:{},sticky:!1,stickyOffset:"var(--nav-height)",pagination:!1};const je=ve;var Ce=n(63361);const Ye=e=>({"en-US":()=>n.e(399).then(n.bind(n,80399)),"zh-CN":()=>n.e(9809).then(n.bind(n,59809))}[e]());var we=n(58609);const Ae=e=>{let{id:t,columns:n,children:r}=e;return t?(0,f.jsx)(Ce.default,{id:t,children:e=>{let{options:t}=e;return r({columns:n.filter((e=>!e.name||(!Array.isArray(z()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name))))})}}):r({columns:n})},Ne=(0,C.withFetch)((e=>{let{data:t,refresh:n,reload:s,requestParams:i,fetchProps:a,isComplete:m,setData:d,loadMore:p,send:h,dataFormat:y,className:g,featureId:_,columns:x,getColumns:b,pagination:v,columnRenderProps:j,summary:C,...Y}=e;const w=u()(y),A=(0,o.useMemo)((()=>w(t)),[t,w]),N={dataSource:A.list,pagination:!!v.open&&{total:A.total,showTotal:e=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(we.FormattedMessage,{id:"Page_Total",moduleName:"Table",defaultMessage:"\u5171"}),(0,f.jsx)("span",{className:r.total_text,children:e}),(0,f.jsx)(we.FormattedMessage,{id:"Page_TotalCount",moduleName:"Table",defaultMessage:"\u6761"})]}),current:z()(i,[v.paramsType,v.currentName],1),pageSize:v.pageSize,onChange:v.onChange?v.onChange:(e,t)=>{e!==z()(i,[v.paramsType,v.currentName],1)?("refresh"===v.requestType?n:s)({[v.paramsType]:{[v.currentName]:e,[v.pageSizeName]:t}}):v.onShowSizeChange&&v.onShowSizeChange(e,t),(0,c.h)().scrollTop=0},size:v.size,showSizeChanger:v.showSizeChanger,showQuickJumper:v.showQuickJumper,pageSizeOptions:v.pageSizeOptions}};return(0,f.jsx)(we.IntlProvider,{importMessages:Ye,moduleName:"Table",children:(0,f.jsx)(Ae,{id:_,columns:x,children:e=>{let{columns:r}=e;return(0,f.jsx)(je,{...Object.assign({},Y,N),className:l()(g,"loading-container",{"is-loading":!m}),columns:r,columnRenderProps:{...j,requestParams:i,fetchProps:a,data:t},summary:"function"===typeof C?function(){for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];return C(Object.assign({},{data:t,fetchProps:a,requestParams:i,refresh:n,reload:s,loadMore:p,send:h,dataFormat:y,pagination:v},...r))}:null})}})})}));Ne.defaultProps={pagination:{},columnRenderProps:{},sticky:!0,dataFormat:e=>({list:e.pageData,total:e.totalCount})};const Ee=(0,o.forwardRef)(((e,t)=>{let{pagination:n,...r}=e;n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,open:!0,paramsType:"data",requestType:"reload",currentName:"currentPage",pageSizeName:"perPage",pageSize:20},n);const s=`${(r.name||"common").toUpperCase()}_TABLE_PAGE_SIZE`,[i,l]=(0,o.useState)(ie.A.getItem(s)||n.pageSize),a=r[n.paramsType],c=(0,o.useMemo)((()=>({[n.paramsType]:Object.assign({},a,{[n.pageSizeName]:i})})),[a,n.pageSizeName,n.paramsType,i]);return(0,f.jsx)(Ne,{...r,...c,pagination:Object.assign({},n,{pageSize:i,onShowSizeChange:(e,t)=>{ie.A.setItem(s,t),l(t)}}),ref:t})}))}}]);
|
|
2
|
-
//# sourceMappingURL=2814.514bc040.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[36],{18411:(e,t,n)=>{n.d(t,{A:()=>a});n(73884);const a=n.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},93761:(e,t,n)=>{n.d(t,{qn:()=>R,TM:()=>Z,LH:()=>L,Ay:()=>E,NY:()=>k,DF:()=>D});var a=n(30509),l=n(25438),s=n(55199),r=n(27047),o=n(83136),i=n.n(o),c=n(64671),d=n(73884),u=n(21485),p=n(56434),m=n.n(p),h=n(15797),_=n.n(h),g=n(33097),f=n.n(g);const x="style_address__DIuRX__AYubY",y="style_is-popup__tqVvp__AYubY",v="style_title__FAe12__AYubY",b="style_scroll-box__JWiDl__AYubY",A="style_scroll-plus-box__lidEW__AYubY",C="style_content__lAARZ__AYubY",j="style_col-left__WPfeS__AYubY",N="style_col-right__z0e9-__AYubY";var Y=n(87558),S=n.n(Y);const w=e=>({"en-US":()=>n.e(3691).then(n.bind(n,83691)),"zh-CN":()=>n.e(2253).then(n.bind(n,32253))}[e]());var O=n(58609),P=n(70579);const I=a.A.useContext,L=e=>{let{city:t,province:n,country:a}=e;const l=_()((()=>{const e=[];return["gangaotai","municipality"].forEach((n=>{e.push(...t.relations[n])})),["provinces","continents"].forEach((n=>{t.relations[n].forEach((n=>{e.push(n),e.push(...t.relations[n])}))})),e.map((e=>t.list[e]))}));return{getCity:_()((e=>{const n=t.list[e];return n?{city:n,parent:n.parentCode?t.list[n.parentCode]:null}:{city:null,parent:null}})),getChinaHotCities:_()((()=>t.relations[2].map((e=>t.list[e])))),getChinaCities:_()((()=>["2",...n.relations.municipality,...n.relations.provinces,"gangaotai"].map((e=>Object.assign({id:e},t.list[e]))))),getCountries:_()((()=>["1",...a.relations.continents].map((e=>Object.assign({id:e},a.list[e]))))),getList:_()(((e,l)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},l);if("gangaotai"===e)return n.relations.gangaotai.map((e=>t.list[e]));const o=Object.assign({},t.list[e]);if(n.relations.municipality.indexOf(e)>-1)return o.name=""+(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map((e=>t.list[e]));return n.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),a.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i})),getNationalityList:_()((e=>{let n=m()(t);return"1"===e&&n.relations[1].unshift("410"),"350"===e&&n.relations[350].unshift("410"),n.relations[e].filter((e=>n.list[e])).map((e=>n.list[e]))})),getCityByName:_()((e=>{const t=l();let n;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find((e=>(n=t.find(e),n))),n})),combineCities:_()(((e,n)=>[...n.filter((n=>t.list[n].parentCode!==e&&t.list[e].parentCode!==n&&e!==n)),e])),searchCities:_()((e=>{if(!e)return[];return l().filter((t=>["pinyin","name","enName","spelling"].some((n=>t[n].toUpperCase().indexOf(e.toUpperCase())>-1)))).map((e=>{const n=e.parentCode?t.list[e.parentCode]:null;return{label:n?`${n.name}\xb7${e.name}`:e.name,value:e.code}}))}))}},k=(e,t)=>"en-US"===t?f()(e,"enName"):f()(e,"name"),M={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7820).then(n.t.bind(n,37820,19)).then((e=>e.__esModule?e.default:e))},F=e=>{let{value:t,setValue:n}=e;const{fetchApi:a,props:o}=I(),[p,m]=(0,d.useState)(""),[h,_]=(0,d.useState)("2"),{formatMessage:g}=(0,O.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,r.A)(),{getCity:Y,getChinaCities:S,getCountries:w,getList:M,searchCities:F}=(0,d.useMemo)((()=>L(a.data)),[a.data]),T=e=>{if(o.single)return void n([e]);const a=t.slice(0),l=a.indexOf(e);l>-1?a.splice(l,1):a.push(e),n(a)},R=p&&(0,P.jsx)(u.A,{className:A,children:(0,P.jsx)(s.List,{className:l.A.list,size:"small",dataSource:F(p),rowKey:"value",renderItem:e=>(0,P.jsx)(s.List.Item,{className:l.A["list-item"],onClick:()=>{T(e.value),m("")},children:(0,P.jsx)("span",{className:l.A["item-label"],children:e.label})})})});return(0,P.jsxs)("div",{className:i()(x,{[y]:o.isPopup}),children:[(0,P.jsx)(s.Input.Search,{className:i()(l.A["search-input"],{[l.A["is-popup"]]:o.isPopup}),placeholder:o.searchPlaceholder||g({id:"searchCity"}),prefix:(0,P.jsx)(c.default,{type:"icon-sousuo"}),enterButton:(0,P.jsx)(c.default,{type:"icon-sousuo"}),value:p,allowClear:!0,onChange:e=>{const t=e.target.value;m(t)},onSearch:e=>{m(e)}}),(0,P.jsx)("div",{className:C,children:R||(0,P.jsxs)(s.Row,{wrap:!1,children:[(0,P.jsx)(s.Col,{className:j,children:(0,P.jsx)(s.Tabs,{centered:!0,onChange:e=>{_(e)},items:[{key:"2",label:(0,P.jsx)(O.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,P.jsx)(u.A,{className:b,children:(0,P.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:S().map((e=>({label:k(e,f),key:e.id})))})})},{key:"1",label:(0,P.jsx)(O.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,P.jsx)(u.A,{className:b,children:(0,P.jsx)(s.Menu,{selectedKeys:[h],onSelect:e=>{_(e.key)},items:w().map((e=>({label:k(e,f),key:e.id})))})})}]})}),(0,P.jsxs)(s.Col,{flex:1,className:N,children:[(0,P.jsx)(s.Divider,{className:v,orientation:"left",children:k(Y(h).city,f)}),(0,P.jsx)(u.A,{className:b,children:(0,P.jsx)(s.Space,{wrap:!0,children:M(h,{showChinaQuan:o.showChinaQuan,showForeignQuan:o.showForeignQuan}).map((e=>(0,P.jsx)(s.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{T(e.code)},children:k(e,f)},e.code)))})})]})]})})]})},T=e=>(0,P.jsx)(a.A,{...e,children:e=>{let{value:t,setValue:n}=e;return(0,P.jsx)(O.IntlProvider,{moduleName:"AddressSelect",importMessages:w,children:(0,P.jsx)(F,{value:t,setValue:n})})}});T.defaultProps={overlayWidth:"500px",isPopup:!0,api:M,dataFormat:(e,t)=>{let{city:n}=e;const{locale:a}=Object.assign({},t);return{list:Object.values(n.list).map((e=>Object.assign({},e,{value:e.code,label:k(e,a)})))}}};const R=(0,Y.withFetch)((e=>{let{name:t,data:n,getAddressApi:a,children:l,...s}=e;const{locale:o}=(0,r.A)(),i=(0,d.useMemo)((()=>L(n)),[n]);return a?l(i):(0,P.jsx)(S(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:n}=t;return new Promise((e=>{setTimeout((()=>{e(i.getCity(n))}),0)}))},render:e=>{let{data:t}=e;return l(t,Object.assign({},s,{locale:o}))}})}));R.defaultProps={...M,displayParent:!1,children:(e,t)=>{let{city:n,parent:a}=e,{displayParent:l,locale:s}=t;return l&&a?`${k(a,s)}\xb7${k(n,s)}`:k(n,s)}};const D=e=>{const t=(0,Y.withFetch)((t=>{let{data:n,...a}=t;const l=(0,d.useMemo)((()=>L(n)),[n]);return(0,P.jsx)(e,{...a,addressApi:l})}));return t.defaultProps={...M},t};T.AddressEnum=T.Enum=R,T.createAddressApi=L,T.withAddressApi=D,T.getLabelForLocal=k;const E=T;var z=n(10986),V=n.n(z),W=n(78491),B=n.n(W),U=n(20492),$=n(22616),K=n.n($),q=n(1488),H=n.n(q);const Q=e=>{const{isPopup:t,size:n,disabled:a,inputPlaceholder:l,onBlur:r,className:o,...i}=e,[c,d]=V()(e),u=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:p}=(0,O.useIntl)({moduleName:"Common"}),m=B()((e=>{r&&r(e)}));return(0,P.jsx)("div",{ref:m,children:(0,P.jsxs)(s.Row,{gutter:10,children:[(0,P.jsx)(s.Col,{span:12,children:(0,P.jsx)(E,{...K()(i,u),className:o,disabled:a,single:!0,size:n,value:f()(c,"city"),onChange:e=>{d({city:e,detail:f()(c,"detail")})}})}),(0,P.jsx)(s.Col,{span:12,children:(0,P.jsx)(s.Input,{...H()(i,u),className:o,placeholder:l||p({id:"pleaseInput"}),disabled:a,size:n,value:f()(c,"detail"),onChange:e=>{d({city:f()(c,"city"),detail:e.target.value})}})})]})})};Q.defaultProps={};const Z=(0,O.createWithIntl)({importMessages:U.A,moduleName:"Common"})(Q)},12392:(e,t,n)=>{n.d(t,{Bm:()=>V,Eo:()=>E,NR:()=>j,Ay:()=>W});var a=n(55199),l=n(83136),s=n.n(l),r=n(30509),o=n(25438),i=n(26475),c=n(33097),d=n.n(c),u=n(34677),p=n.n(u);const m="create-list_scroll-loader__zoaS7__AYubY",h="create-list_is-popup__t3d-G__AYubY",_="create-list_is-not-full__FXtX1__AYubY",g="create-list_search-input__tV3vf__AYubY",f="create-list_left__EXr3i__AYubY",x="create-list_list-header__3xeJa__AYubY",y="create-list_is-modal__BMfya__AYubY";var v=n(73161),b=n(58609),A=n(70579);const C=r.A.useContext,j=e=>{let{renderList:t,defaultProps:n}=e;const l=e=>{let{value:n,setValue:l}=e;const{fetchApi:r,searchText:c,setSearchText:u,props:j,mapping:N}=C(),Y=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},j.pagination),S=d()(r.requestParams,[Y.paramsType,Y.current],1),w=d()(r.requestParams,[Y.paramsType,Y.pageSizeName])||Y.pageSize,{formatMessage:O}=(0,b.useIntl)({moduleName:"Common"}),P=j.dataFormat(r.data),{right:I,leftBottom:L,leftSpan:k=24}=j,M=1===n.length&&"all"===n[0];return(0,A.jsxs)(a.Row,{wrap:!1,className:I?s()("is-not-full",_):"",children:[(0,A.jsxs)(a.Col,{span:k,className:s()(f,"advance-select-left"),children:[j.getSearchProps?(0,A.jsx)(v.A,{isPopup:j.isPopup,className:s()(g,o.A["search-input"],{[o.A["is-popup"]]:j.isPopup}),placeholder:j.searchPlaceholder||O({id:"search"}),value:c,onSearch:e=>{r.reload(j.getSearchProps(e)),u(e)}}):null,j.single||!j.showSelectedCount&&!j.allowSelectAll?null:(0,A.jsxs)(a.Flex,{className:s()(x,{[y]:!j.isPopup}),justify:"space-between",children:[j.showSelectedCount?(0,A.jsxs)(a.Space,{children:[(0,A.jsx)(a.Typography,{children:"\u5df2\u9009:"}),(0,A.jsx)(a.Typography.Link,{children:M?j.allLabel||(0,A.jsx)(b.FormattedMessage,{id:"all",moduleName:"Common"}):`${n.length}${j.countUnit||O({id:"items"})}`})]}):(0,A.jsx)("div",{}),j.allowSelectAll?(0,A.jsx)("div",{children:(0,A.jsx)(a.Checkbox,{checked:M,onChange:e=>{l(e.target.checked?[j.allValue||"all"]:[])},children:(0,A.jsx)(b.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:j.allLabel||(0,A.jsx)(b.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,A.jsx)("div",{})]}),(0,A.jsx)(i.A,{completeTips:"",isLoading:!r.isComplete,className:s()(m,{[h]:j.isPopup}),noMore:!P.total||S*w>=P.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(p()({[Y.paramsType]:{[Y.pageSizeName]:w,[Y.current]:S+1}},j.getSearchProps&&j.getSearchProps(c)),j.mergeList)},children:t({props:j,value:n,setValue:l,list:P.list,itemIsSelected:e=>n.indexOf(e.value)>-1,isSelectedAll:M,onSelect:e=>{if(j.single)return void l([e.value]);const t=n.slice(0),a=t.indexOf(e.value);a>-1?t.splice(a,1):t.push(e.value),l(t)}})}),L&&L({fetchApi:r,value:n,mapping:N})]}),I&&I({value:n,mapping:N,fetchApi:r})]})},c=e=>{let{extra:t,...n}=e;return(0,A.jsx)(r.A,{...n,extra:t,children:e=>{let{value:t,setValue:n}=e;return(0,A.jsx)(l,{value:t,setValue:n})}})};return c.defaultProps=Object.assign({},{isPopup:!0,pagination:{},mergeList:(e,t)=>Object.assign({},t,{pageData:e.pageData.concat(t.pageData)}),dataFormat:e=>({list:e.pageData,total:e.totalCount})},n),c},N="list_list__TGynD__AYubY",Y="list_list-item__WSswf__AYubY",S="list_is-selected__6Wkgt__AYubY",w="list_item-label__bYzhe__AYubY",O="list_item-des__2nsEn__AYubY",P="list_is-disabled__qxCvO__AYubY",I="list_is-selected-all__Mp-hG__AYubY";var L=n(40438),k=n(64671);const M="user_list-inner__V508e__AYubY",F="user_list-info__y2nWo__AYubY",T="user_selected-icon__9OQJL__AYubY",R="user_item-des__o+7UR__AYubY",D="user_is-selected-all__2q0VZ__AYubY",E=j({renderList:e=>{let{list:t,onSelect:n,itemIsSelected:l,isSelectedAll:r}=e;return(0,A.jsx)(a.List,{size:"small",className:s()(N,{[I]:r,[D]:r}),dataSource:t,renderItem:e=>{const t=l(e);return(0,A.jsx)(a.List.Item,{className:s()(Y,{[S]:t}),onClick:()=>n(e),children:(0,A.jsxs)(a.Row,{wrap:!1,align:"middle",className:M,children:[(0,A.jsx)(a.Col,{children:(0,A.jsx)(L.default.Avatar,{...Object.assign({},e.avatar),size:40,gender:"M"})}),(0,A.jsx)(a.Col,{className:F,flex:1,children:(0,A.jsxs)(a.Space,{direction:"vertical",children:[(0,A.jsx)("span",{className:w,children:e.label}),e.description&&(0,A.jsx)("span",{className:R,children:e.description})]})}),(0,A.jsx)(a.Col,{children:r||t?(0,A.jsx)(k.default,{className:T,type:"icon-gouxuan"}):null})]})})}})}}),z={"is-selected-all":"table_is-selected-all__IwXUY__AYubY"},V=j({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:n,onSelect:l,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,A.jsx)(a.Table,{className:s()(z.list,N,{[I]:c,[z["is-selected-all"]]:c}),size:"small",dataSource:n,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:n.map((e=>{let{value:t}=e;return t})),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>l(e)})})}}),W=j({renderList:e=>{let{props:t,list:n,itemIsSelected:l,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,A.jsx)(a.List,{className:s()(N,i,{[I]:r}),size:"small",dataSource:n,renderItem:e=>{var n;const i=l(e);return(0,A.jsxs)(a.List.Item,{className:s()(Y,{[S]:t.single&&i,[P]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,A.jsxs)(a.Row,{wrap:!1,children:[t.single?null:(0,A.jsx)(a.Col,{children:(0,A.jsx)(a.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,A.jsx)(a.Col,{children:(0,A.jsxs)(a.Space,{className:null!==(n=null===e||void 0===e?void 0:e.className)&&void 0!==n?n:"",children:[(0,A.jsx)("span",{className:w,children:e.label}),e.description&&(0,A.jsx)("span",{className:O,children:e.description})]})})]}),i&&c]})}})}})},45776:(e,t,n)=>{n.d(t,{yK:()=>I,ON:()=>h,Ay:()=>T});var a=n(30509),l=n(73884),s=n(96418),r=n.n(s),o=n(55199),i=n(64671),c=n(73161),d=n(33097),u=n.n(d),p=n(79686),m=n.n(p);const h=e=>{const t=Array.from(e.values()),n=t.filter((e=>null===e.parentId)),a=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=t=>{const n=[],a=t=>{const l=e.get(t);l&&Array.isArray(l.children)&&l.children.length>0&&(n.push(...l.children),l.children.forEach((e=>{a(e.id)})))};return a(t),n},s=(t,n)=>{const a=t=>{const l=e.get(t);return l?n(l)?l:m()(l.parentId)?null:a(l.parentId):null};return a(t)},r=t=>{const a=e.get(t);if(!a)return[];const l=a.parentId;if(m()(l))return n;return e.get(l).children},o=(()=>{const e=n=>Array.isArray(n)&&n.length>0?n.map((n=>{const a=t.filter((e=>e.parentId===n.id));return Object.assign({},n,{children:e(a)})})):null;return e(n)})();return{mapping:e,getSelectedQueue:t=>{const n=e.get(t);if(!n)return[];const a=e=>{if(e.children&&e.children.length>0)return a(e.children.find((t=>t.children&&e.children.length>0))||u()(e.children,"0"));const t=l(e.parentId).find((e=>e.children&&e.children.length>0));return t?a(t):e},s=function(t){const n=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],a=e.get(t);return!a||m()(a.parentId)?n:s(a.parentId,n)},r=a(n);return s(u()(r,"id"))},getAllChildren:l,computedCheckboxStatus:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,(e=>n.indexOf(e.id)>-1)))return{checked:!0,indeterminate:!1};const a=(t=>{const a=t=>{const l=e.get(t);return l?(s=l,n.indexOf(s.id)>-1?l:Array.isArray(l.children)&&l.children.length>0?l.children.find((e=>!!a(e.id))):void 0):null;var s};return!!a(t)})(t);return a?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;n.push(t),l(t).forEach((e=>{a(n,e.id)}));const i=r(t),c=i.every((e=>n.indexOf(e.id)>-1));o.parentId&&c&&(i.forEach((e=>{a(n,e.id)})),s(o.parentId))};return s(t),n},setNodeUnchecked:function(t){const n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),l=t=>{const s=e.get(t);if(!s)return;if(n.indexOf(s.id)>-1)return void a(n,s.id);const o=r(t);s.parentId&&(o.forEach((e=>{t!==e.id&&n.push(e.id)})),l(s.parentId))};return l(t),n},treeData:o,treeMapping:new Map(o.map((e=>[e.id,e])))}};var _=n(74065),g=n.n(_),f=n(19853),x=n.n(f),y=n(17342),v=n(83136),b=n.n(v);const A={content:"style_content__Hxlt9__AYubY",columns:"style_columns__FmtPF__AYubY","content-item":"style_content-item__i6HCO__AYubY","last-level-area":"style_last-level-area__2y7jQ__AYubY","is-popup":"style_is-popup__+r3Mn__AYubY",menu:"style_menu__WZUVE__AYubY","scroll-plus-box":"style_scroll-plus-box__QcTst__AYubY","menu-label":"style_menu-label__iGt0Z__AYubY","menu-item":"style_menu-item__hXHfm__AYubY","checkbox-hidden":"style_checkbox-hidden__Xpx7J__AYubY",loading:"style_loading__ZwrVe__AYubY"};var C=n(87558),j=n(58609),N=n(25438),Y=n(70579),S=n(27047);const w=new Map,O=(0,C.withFetch)((e=>{let{data:t,name:n,type:a,cache:s,children:r,getLabel:o,...i}=e;const c=(0,l.useMemo)((()=>new Map(t.map((e=>[e.code,{...e,id:e.code,label:o?o(e):e.chName,parentId:e.parentCode||null}])))),[t,o]).get(n);return w.set(`${n}_${a}`,c),r(c,i)})),P=e=>{const{locale:t}=(0,S.A)(),n=`${t}_${e.name}_${e.type}`,a=w.get(n);return a&&!e.force?e.children(a):(0,Y.jsx)(O,{...e})};P.defaultProps={children:e=>u()(e,"label","")};const I=P,L=a.A.useContext,k=(0,C.withFetch)((e=>{let{data:t,computedIsChecked:n,onSelect:a}=e;return(0,Y.jsx)(y.A,{className:A["scroll-plus-box"],children:(0,Y.jsx)(o.List,{className:N.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=n(e);return(0,Y.jsx)(o.List.Item,{className:b()(N.A["list-item"],{[N.A["is-selected"]]:t}),onClick:()=>a(e,t),children:(0,Y.jsx)("span",{className:N.A["item-label"],children:e.label})})}})})})),M=e=>{let{value:t,setValue:n,size:a,selectLevel:s}=e;const{fetchApi:d,props:p}=L(),[m,_]=(0,l.useState)(""),f=r()(p.dataFormat),{formatMessage:v}=(0,j.useIntl)({moduleName:"Common"}),C=d.data,S=(0,l.useMemo)((()=>new Map(f(C).list.map((e=>[e.value,e])))),[C,f]),w=(0,l.useMemo)((()=>h(S)),[S]),O=(0,l.useRef)({});O.current={createMergeTree:p.createMergeTree,loadMore:d.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:w};const[P,I]=(0,l.useState)((()=>{const e=t.find((e=>!!S.get(e)));return w.getSelectedQueue(e||u()(d.data.find((e=>e.children&&e.children.length>0)),"id")||u()(d.data,"[0].id"),S)}));(0,l.useEffect)((()=>{const{openLoadData:e,loadMore:t,parentIdKey:n,createMergeTree:a,treeUtils:l}=O.current;if(!e)return;const s=S.get(g()(P));if(!s)return;const r=l.getSelectedQueue(s.id);x()(P,r)?s.hasOwnProperty("children")||t({data:{[n]:s.id}},a(s.id)):I(r)}),[P,S]);const M=(e,l)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(l),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(l),1),e}return e?w.setNodeChecked(l,t):w.setNodeUnchecked(l,t)})();s.length>a?o.message.error(v({id:"maxSelectedCount"},{count:a})):n(p.single&&s.length>0?[g()(s)]:s)},F=e=>{const t=S.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},T=!p.openLoadData&&"function"===typeof p.onSearch,R=T&&m&&(0,Y.jsx)(k,{data:{searchText:m},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:S})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{M(!t,e.id),!t&&I(w.getSelectedQueue(e.id,S)),_("")}});return(0,Y.jsxs)("div",{className:b()(A.content,{[A["is-popup"]]:p.isPopup,[A["has-search"]]:T}),style:{"--menu-item-width":p.menuItemWidth},children:[T&&(0,Y.jsx)(c.A,{isPopup:p.isPopup,className:b()(N.A["search-input"],{[N.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||v({id:"search"}),value:m,onSearch:e=>{_(e)}}),R||(0,Y.jsx)("div",{children:(0,Y.jsx)(y.A,{className:A.scroller,options:{autoHide:!1},children:(0,Y.jsxs)("div",{className:A.columns,children:[P.map(((e,n)=>{const a=S.get(e),r=w.getSiblingNode(e),c=!F(null===a||void 0===a?void 0:a.id)&&n>0;return(0,Y.jsx)(y.A,{className:b()(A["content-item"],{[A["last-level-area"]]:c}),children:c?(0,Y.jsx)(o.Space,{wrap:!0,children:r.map((e=>(0,l.createElement)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&(t.indexOf(e.parentCode)>-1||t.indexOf(e.code.slice(0,3))>-1),key:e.id,onChange:t=>M(t.target.checked,e.id)},e.label)))}):(0,Y.jsx)(o.Menu,{className:b()(A.menu),onSelect:e=>{const n=S.get(e.key);if(n)if(F(n.id))I(w.getSelectedQueue(n.id,S));else{const{checked:e}=w.computedCheckboxStatus(n.id,t);M(!e,n.id)}},selectedKeys:n===P.length-1?[]:P,items:r.map((e=>({key:e.id,label:(0,Y.jsxs)(o.Space,{className:b()(A["menu-item"],{[A["checkbox-hidden"]]:p.onlyAllowLastLevel&&F(e.id)}),children:[!p.onlyAllowLastLevel&&(0,Y.jsx)(o.Checkbox,{...w.computedCheckboxStatus(e.id,t),disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>M(t.target.checked,e.id)}),(0,Y.jsx)("div",{className:A["menu-label"],children:e.label}),F(e.id)&&(0,Y.jsx)(i.default,{className:A["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})})))})},u()(r,"[0].id",n))})),d.isComplete?null:(0,Y.jsx)("div",{className:A.loading,children:(0,Y.jsx)(o.Spin,{size:"small"})})]})})})]})},F=e=>{let{maxLength:t,nodeFormat:n,dataFormat:l,...s}=e;return(0,Y.jsx)(a.A,{...s,dataFormat:e=>l(e,n),children:e=>{let{value:n,setValue:a}=e;return(0,Y.jsx)(M,{...s,size:t,value:n,setValue:a})}})};F.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:n}=t;return Array.from(n.values()).filter((t=>t.label.indexOf(e)>-1))},dataFormat:(e,t)=>{const n=(e,a)=>{const l=[];return l.push(...(e||[]).map((e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&l.push(...n(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:a}))))),l};return{list:n(e,null)}},createMergeTree:e=>(t,n)=>{const a=t=>t.map((t=>t.id===e?Object.assign({},t,{children:n&&n.map((t=>Object.assign({},t,{parentId:e})))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:a(t.children)}):t));return a(t)}};const T=F},41654:(e,t,n)=>{n.d(t,{A:()=>m,K:()=>p});var a=n(45776),l=n(27047),s=n(33097),r=n.n(s),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c=()=>n.e(719).then(n.t.bind(n,10719,19)).then((e=>e.__esModule?e.default:e)),d={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:c},u=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,a.ON)(new Map(t.map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},c.functionData)})};u.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},u.defaultData=c;const p=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),c=Object.assign({},{functionData:d},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.yK,{...n,...c.functionData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};u.FunctionEnum=u.Enum=p;const m=u},53392:(e,t,n)=>{n.d(t,{A:()=>p,W:()=>u});var a=n(45776),l=n(27047),s=n(33097),r=n.n(s),o=n(70579);const i=(e,t)=>"en-US"===t?r()(e,"enName"):r()(e,"chName"),c={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>n.e(7183).then(n.t.bind(n,57183,19)).then((e=>e.__esModule?e.default:e))},d=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.Ay,{...n,api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:n}=(0,a.ON)(new Map(t.filter((e=>"000"!==e.code)).map((e=>[e.code,{...e,id:e.code,label:i(e,r),parentId:e.parentCode||null}]))));return n}},d.industryData)})};d.defaultProps={overlayWidth:"635px"};const u=e=>{let{apis:t,...n}=e;const{apis:s,locale:r}=(0,l.A)(),d=Object.assign({},{industryData:c},null===s||void 0===s?void 0:s.staticData,t);return(0,o.jsx)(a.yK,{...n,...d.industryData,type:"function",getLabel:e=>i(e,r),transformData:e=>{let{data:t}=e;return t}})};d.IndustryEnum=d.Enum=u;const p=d},26475:(e,t,n)=>{n.d(t,{A:()=>_});var a=n(73884),l=n(55199),s=n(96418),r=n.n(s),o=n(17342),i=n(83136),c=n.n(i),d=n(51941);const u="style_scroller-no-more__EH2J+__AYubY";var p=n(70579);const m=e=>{let{getScrollerRef:t,loadMore:n,maxFullCount:l}=e;const s=r()(n),o=r()(t);return(0,a.useEffect)((()=>{let e=l;const t=o(),n=async()=>{t.clientHeight===t.scrollHeight&&e>0&&(await s().then((()=>new Promise((e=>{setTimeout(e,500)})))),e--,await n())};n()}),[l,s,o]),null},h=(0,a.forwardRef)(((e,t)=>{let{className:n,noMore:s,onLoader:i,isLoading:h,completeTips:_,maxFullCount:g,children:f}=e;const x=(0,a.useRef)(),y=r()(i),v=(0,a.useRef)(!s&&!h);v.current=!s&&!h,(0,a.useImperativeHandle)(t,(()=>x.current),[]);const b=(0,d.useThrottledCallback)((e=>{const t=e.target;v.current&&t.clientHeight+t.scrollTop+20>t.scrollHeight&&y()}),100);return(0,p.jsxs)(o.A,{className:c()("load-container",n),scrollableNodeProps:{ref:x,onScroll:b},children:[!h&&!s&&(0,p.jsx)(m,{maxFullCount:g,getScrollerRef:()=>x.current,loadMore:y}),(0,p.jsxs)(l.Space,{direction:"vertical",children:[(0,p.jsx)("div",{children:f}),h?(0,p.jsx)("div",{className:u,children:(0,p.jsx)(l.Spin,{size:"small"})}):null,s&&_?(0,p.jsx)("div",{className:u,children:_}):null]})]})}));h.defaultProps={maxFullCount:3,completeTips:"\u52a0\u8f7d\u5b8c\u6210"};const _=h},73161:(e,t,n)=>{n.d(t,{A:()=>m});var a=n(55199),l=n(83136),s=n.n(l);const r="style_search-input__8aH1G__AYubY",o="style_is-popup__L0973__AYubY";var i=n(64671),c=n(73884),d=n(51941),u=n(70579);const p=e=>{let{value:t,debounce:n,onSearch:l,isPopup:p,placeholder:m,className:h,..._}=e;const[g,f]=(0,c.useState)(t),x=(0,c.useRef)(t),y=(0,d.useDebouncedCallback)(l,n);return(0,c.useEffect)((()=>{t!==x.current&&(f(t),x.current=t)}),[t]),(0,u.jsx)(a.Input.Search,{..._,allowClear:!0,className:s()(h,r,{[o]:p}),value:g,placeholder:m,prefix:(0,u.jsx)(i.default,{type:"icon-sousuo"}),enterButton:(0,u.jsx)(i.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;x.current=t,f(t),y(t)},onSearch:e=>{y(e)}})};p.defaultProps={debounce:500};const m=p},30509:(e,t,n)=>{n.d(t,{A:()=>W});const a={"ant-tag":"style_ant-tag__nNp8-__AYubY",overlay:"style_overlay__La5mO__AYubY",input:"style_input__SpJTE__AYubY","is-disabled":"style_is-disabled__joxdl__AYubY","input-icon":"style_input-icon__vVd8R__AYubY",large:"style_large__En6mL__AYubY",small:"style_small__DY0AQ__AYubY","input-inner":"style_input-inner__PWy27__AYubY","input-custom":"style_input-custom__ktsWD__AYubY","display-content":"style_display-content__hIKo+__AYubY","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__AYubY","selected-tag":"style_selected-tag__zXZZO__AYubY","selected-tag-list":"style_selected-tag-list__xUIms__AYubY","selected-tag-inner":"style_selected-tag-inner__Z5gPL__AYubY","text-inner":"style_text-inner__H24hY__AYubY",placeholder:"style_placeholder__x0ccE__AYubY","is-modal":"style_is-modal__JU+uq__AYubY","overlay-content":"style_overlay-content__WKqp+__AYubY"};var l=n(74981);const{context:s,useContext:r,Provider:o,Consumer:i}=(0,l.A)();var c=n(73884),d=n(10986),u=n.n(d),p=n(87558),m=n(33097),h=n.n(m),_=n(55199),g=n(83136),f=n.n(g),x=n(3382),y=n(64671),v=n(79686),b=n.n(v),A=n(41740),C=n.n(A),j=n(74065),N=n.n(j),Y=n(21485),S=n(96418),w=n.n(S),O=n(77964),P=n(91176),I=n(58609),L=n(20492),k=n(27047),M=n(70579);const F=e=>{let{maxLength:t,single:n,setValue:a,value:l,message:s}=e;return e=>a(!n&&Number.isInteger(t)&&t>0&&e.length>t?(s(),l):e)},T=e=>{let{single:t,value:n,mapping:l,allValue:s,allLabel:r,onClose:o}=e;return n&&Array.isArray(n)&&0!==n.length?t?(0,M.jsx)("span",{className:a["text-inner"],children:h()(l.get(n[0]),"label")||n[0]}):1===n.length&&n[0]===(s||"all")?(0,M.jsx)("span",{className:a["text-inner"],children:r||(0,M.jsx)(I.FormattedMessage,{id:"all",moduleName:"Common"})}):n.map((e=>{const t=l.get(e);return(0,M.jsx)(_.Tag,{className:a["display-tag"],closable:!0,onClose:n=>{n.preventDefault(),o(e,t)},children:(0,M.jsx)("span",{className:a["tag-inner"],children:h()(t,"label")||e})},e)})):null},R=(0,c.forwardRef)(((e,t)=>{let{value:n,onChange:l,extra:s,showSelectedTag:r,renderSelectedContent:o,children:i,...d}=e;const[u,p]=(0,c.useState)(n),m=(0,c.useRef)(n),{formatMessage:h}=(0,I.useIntl)({moduleName:"Common"});m.current=n;const[g,f]=(0,c.useState)(!1),y=e=>{var t;f(e),null===(t=d.onOpenChange)||void 0===t||t.call(d,e)},{message:v}=_.App.useApp(),b=F({maxLength:d.maxLength,single:d.single,setValue:p,value:u,message:()=>v.error(h({id:"maxSelectedCount"},{count:d.maxLength}))});return(0,c.useEffect)((()=>{g&&p(m.current)}),[g]),(0,c.useImperativeHandle)(t,(()=>({modalOpen:()=>{y(!0)},close:()=>{y(!1)}}))),(0,M.jsx)(x.default,{...d,open:g,onConfirm:()=>{l(u)},onClose:()=>{y(!1)},footer:(0,M.jsxs)(_.Space,{direction:"vertical",className:a["overlay-footer"],children:[s&&(0,M.jsx)("div",{className:a["overlay-footer-extra"],children:s}),r&&o({value:u,setValue:b})]}),children:"function"===typeof i?i({value:u,setValue:b}):i})})),D=(0,c.forwardRef)(((e,t)=>{let{value:n,setValue:l,children:s,renderSelectedContent:r,showSelectedTag:o,placement:i,inputContent:d,single:u,extra:p,overlayWidth:m,wrapClassName:h,overlayClassName:g,disabled:x,...y}=e;const[v,b]=(0,c.useState)(!1),A=w()((e=>{var t;b(e),null===(t=y.onOpenChange)||void 0===t||t.call(y,e)}));return(0,c.useImperativeHandle)(t,(()=>({close:()=>{A(!1)}})),[A]),x?(0,M.jsx)("div",{className:a["input-inner"],children:d}):(0,M.jsx)(_.Popover,{...y,open:v,onOpenChange:A,transitionName:"ant-slide-up",overlayClassName:f()(a.overlay,g),arrow:!1,content:(0,M.jsxs)("div",{style:m?{"--overlay-width":m}:{},className:f()(a["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,M.jsx)("div",{className:a["overlay-inner"],children:"function"===typeof s?s({value:n,setValue:e=>{(!u||n[0]!==e[0])&&l(e),u&&A(!1)}}):s}),(o||p)&&(0,M.jsxs)("div",{className:a["overlay-footer"],children:[p&&(0,M.jsx)("div",{className:a["overlay-footer-extra"],children:p}),o&&r({value:n,setValue:l})]})]}),trigger:"click",placement:i,children:(0,M.jsx)("div",{className:a["input-inner"],children:d})})})),E=(0,p.withFetch)((e=>{let{setFetchApi:t,wrapClassName:n,getContentRef:l,...s}=e;const[o,i]=(0,c.useState)(!1),d=(0,c.useRef)(null),u=(0,c.useRef)(null),p=r(),{valueState:m,mapping:h,props:g,inputWidth:x}=p,[v,b]=m,{formatMessage:A}=(0,I.useIntl)({moduleName:"Common"}),{single:C,placement:j,getPopupContainer:N,placeholder:S,isPopup:O,disabled:L,showSelectedTag:k,extra:F,inputContent:E,allowClear:z,overlayClassName:V}=g,W=(0,c.useRef)(s);W.current=s;const B=w()(l);(0,c.useEffect)((()=>{B(O?u:d)}),[O,B]),(0,c.useEffect)((()=>{t(Object.assign({},W.current,{data:s.data,isComplete:s.isComplete}))}),[s.data,t,s.isComplete]);const U=T({single:C,value:v,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{b((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}}),$=e=>{let{value:t,setValue:n}=e;return(0,M.jsxs)(_.Space,{className:a["selected-tag"],align:"center",wrap:!1,children:[(0,M.jsxs)("div",{children:[(0,M.jsx)(I.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?`(${t.length}/${g.maxLength})`:"",":"]}),(0,M.jsx)(Y.A,{className:a["selected-tag-list"],children:(0,M.jsx)("div",{className:a["selected-tag-inner"],children:T({value:t,mapping:h,allValue:g.allValue,allLabel:g.allLabel,onClose:e=>{n((t=>{const n=t.slice(0),a=t.indexOf(e);return a>-1&&n.splice(a,1),n}))}})})})]})},K=E?E(p):(0,M.jsxs)(_.Space,{className:a["display-content"],onMouseOver:()=>{i(!0)},onMouseOut:()=>{i(!1)},children:[(0,M.jsx)("div",{children:U||(0,M.jsx)("span",{className:a.placeholder,children:S||A({id:"pleaseSelect"})})}),o&&v&&v.length>0&&!L&&z?(0,M.jsx)(y.default,{className:f()(a.close,a["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),b([])}}):(0,M.jsx)(y.default,{className:f()(a["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return O?(0,M.jsx)(D,{ref:u,overlayWidth:(0,P.v)(Math.max(x,(0,P.j)(g.overlayWidth))),value:v,setValue:b,single:C,disabled:L,inputContent:K,onOpenChange:g.onOpenChange,overlayClassName:V,extra:"function"===typeof F?F({close:()=>u.current.close(),context:p}):F,renderSelectedContent:$,showSelectedTag:k,trigger:"click",placement:j,getPopupContainer:N,children:g.children}):(0,M.jsxs)("div",{className:a["input-inner"],onClick:()=>{L||d.current.modalOpen()},children:[(0,M.jsx)(R,{size:g.modalSize,ref:d,single:g.single,maxLength:g.maxLength,onOpenChange:g.onOpenChange,disabledScroller:!0,wrapClassName:f()(a.overlay,a["is-modal"],n),title:g.placeholder||A({id:"pleaseSelect"}),value:v,onChange:b,extra:"function"===typeof F?F({close:()=>d.current.close(),context:p}):F,showSelectedTag:k,renderSelectedContent:$,children:g.children}),K]})})),z=e=>{let{api:t,className:n,displayItems:l,wrapClassName:s,...r}=e;const{locale:i}=(0,k.A)(),[d,p]=(0,c.useState)(""),[m,g]=(0,c.useState)(new Map(l.map((e=>[e.value,e])))),{formatMessage:x}=(0,I.useIntl)({moduleName:"Common"}),[y,v]=(0,c.useState)(0),A=(0,O.A)((e=>{v(e.clientWidth)})),[j,Y]=(0,c.useState)({}),{message:S}=_.App.useApp(),w=e=>{const t=e.filter((e=>m.get(e.value)!==e));0!==t.length&&g((e=>{const n=C()(e);return t.forEach((e=>{n.set(e.value,e)})),n}))},P=e=>((e,t)=>Array.isArray(e)&&e.every((e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label")))?(t(e),e.map((e=>e.value))):e)(r.single?b()(e)?[]:[e]:e||[],w,r.valueType),[L,T]=u()(Object.assign({},r,{onChange:e=>{const t=((e,t,n)=>"all"!==n?e:e.map((e=>t.get(e))).filter((e=>!!e)))(e,m,r.valueType);r.onChange&&r.onChange(r.single?N()(t):t)}},"value"in r?{value:P(r.value)}:{defaultValue:P(r.defaultValue)})),R=F({maxLength:r.maxLength,single:r.single,setValue:T,value:L,message:()=>S.error(x({id:"maxSelectedCount"},{count:r.maxLength}))}),D=(0,c.useRef)(null);return(0,M.jsx)(o,{value:{inputWidth:y,mapping:m,searchText:d,setSearchText:p,appendMapping:w,setItems:e=>{j.setData(e),w(h()(r.dataFormat(e,{locale:i}),"list",[]))},getContentApi:()=>D.current,fetchApi:j,valueState:[L,R],props:r},children:(0,M.jsx)("div",{ref:A,className:f()(a["input"+(r.inputContent&&"function"===typeof r.inputContent?"-custom":"")],{"select-input-disabled":!!r.disabled},n),children:(0,M.jsx)(E,{...t,wrapClassName:s,loading:null,setFetchApi:Y,getContentRef:e=>{e.current&&(D.current=e.current)},onRequestSuccess:e=>{w(h()(r.dataFormat(e,{locale:i}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}})})})};z.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const V=(0,I.createWithIntl)({importMessages:L.A,moduleName:"Common"})(z);V.useContext=r;const W=V},17342:(e,t,n)=>{n.d(t,{A:()=>s});var a=n(8762),l=n.n(a);n(46733);const s=l()},21485:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(73884),l=n(44418),s=n.n(l),r=n(96418),o=n.n(r),i=n(70579);const c=(0,a.forwardRef)(((e,t)=>{let{children:n,onScroll:l,options:r,onReady:c,...d}=e;const u=(0,a.useRef)(null),p=(0,a.useRef)(null),m=(0,a.useRef)(r),h=o()(c),_=o()(l);return(0,a.useImperativeHandle)(t,(()=>p.current)),(0,a.useEffect)((()=>{const e=new(s())(u.current,m.current);return p.current=e.getScrollElement(),p.current.addEventListener("scroll",_),h(p.current),()=>{p.current.removeEventListener("scroll",_)}}),[_,h,n]),(0,i.jsx)("div",{...d,ref:u,children:n})}))},89319:(e,t,n)=>{n.d(t,{A:()=>u});var a=n(55199),l=n(10986),s=n.n(l),r=n(57469),o=n.n(r),i=n(20492),c=n(58609),d=n(70579);const u=(0,c.createWithIntl)({importMessages:i.A,moduleName:"Common"})((e=>{let{...t}=e;const{formatMessage:n}=(0,c.useIntl)({moduleName:"Common"}),l=new Map([["date",n({id:"customTime"})],["month",n({id:"monthly"})],["week",n({id:"weekly"})]]),[r,i]=s()(t);return(0,d.jsxs)(a.Space.Compact,{children:[(0,d.jsx)(a.Select,{style:{width:"120px"},value:(null===r||void 0===r?void 0:r.type)||"date",onChange:e=>{i((t=>{var n;return{value:null!==t&&void 0!==t&&null!==(n=t.value)&&void 0!==n&&n.length?[o()(t.value[0]).startOf(e||"date"),o()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}}))},options:Array.from(l).map((e=>{let[t,n]=e;return{label:n,value:t}}))}),(0,d.jsx)(a.DatePicker.RangePicker,{...t,picker:(null===r||void 0===r?void 0:r.type)||"date",value:Array.isArray(null===r||void 0===r?void 0:r.value)&&2===r.value.length&&r.value.map((e=>e&&o()(e))),onChange:e=>{i((t=>(console.log(Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]})),Object.assign({type:"date"},t,{value:e&&[e[0]&&new Date(e[0].startOf((null===t||void 0===t?void 0:t.type)||"date").valueOf()),e[1]&&new Date(e[1].endOf((null===t||void 0===t?void 0:t.type)||"date").valueOf())]}))))}})]})}))},20492:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>({"en-US":()=>n.e(3086).then(n.bind(n,13086)),"zh-CN":()=>n.e(4308).then(n.bind(n,84308))}[e]())},29574:(e,t,n)=>{n.d(t,{Zi:()=>_,FI:()=>g,AG:()=>f,Ay:()=>y,lN:()=>x});const a="style_input-file__3JGm6__AYubY",l="style_input-file-input__Fb5iw__AYubY";var s=n(83136),r=n.n(s),o=n(73884),i=n(55199),c=n(63908),d=n(28987),u=n(80111),p=n.n(u),m=n(70579);const h=e=>t=>{let{className:n,accept:s,multiple:i,onChange:c,children:d,...u}=t;const p=(0,o.useRef)(null);return(0,m.jsxs)(e,{...u,className:r()(n,a),children:[d,!0!==u.disabled&&(0,m.jsx)("input",{ref:p,type:"file",accept:s,multiple:i,className:l,onChange:e=>{const t=[].slice.call(e.target.files,0);0!==t.length&&(p.current.setAttribute("type","text"),p.current.setAttribute("type","file"),c(t))}})]})},_=h(i.Button),g=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(i.Typography.Link,{...n,className:t})})),f=h((e=>{let{className:t,...n}=e;return(0,m.jsx)(i.Typography.Text,{...n,className:r()("ant-btn",t)})})),x=e=>{const{message:t}=i.App.useApp(),{multiple:n,fileSize:a,maxLength:l,value:s,concurrentCount:r,onAdd:u,onError:m,onSave:h,onChange:_,ossUpload:g}=Object.assign({},{concurrentCount:1,value:[]},e),{apis:f}=(0,c.usePreset)(),[x,y]=(0,o.useState)([]),v=(0,o.useRef)(r),b=(0,o.useMemo)((()=>(0,d.A)(v.current)),[]);return{fileList:x,onFileSelected:async e=>{const r=l-s.length;1!==l&&!0===n&&e.length>r?t.error(`\u4e0a\u4f20\u6587\u4ef6\u4e0d\u80fd\u8d85\u8fc7\u6700\u5927\u5141\u8bb8\u6570\u91cf${l}`):await Promise.allSettled(e.map((async e=>{if(e.size>1024*a*1024)return void t.error(`\u6587\u4ef6${e.name}\u4e0d\u80fd\u8d85\u8fc7${a}MB!`);const s=p()(),r=n=>{const a=n.message||`\u6587\u4ef6${e.name}\u4e0a\u4f20\u9519\u8bef${n.message?":"+n.message:""}`;t.error(a),m&&m({file:e,error:n,errMsg:a}),y((e=>{const t=e.slice(0),n=t.findIndex((e=>e.uuid===s));return n>-1&&t.splice(n,1),t}))};try{y(1===l||!0!==n?[{uuid:s,type:"uploading",filename:e.name}]:t=>{const n=t.slice(0);return n.unshift({uuid:s,type:"uploading",filename:e.name}),n}),u&&await Promise.resolve(u(e));const t=g||f.ossUpload,{data:a}=await b((()=>t({file:e})));if(0!==a.code)return void r(new Error(`\u6587\u4ef6${e.name}\u4e0a\u4f20\u5f02\u5e38${a.msg?":"+a.msg:""}`));const o=h?await Promise.resolve(h(a,e,s)):{filename:a.data.originalName||a.data.filename||e.name,id:a.data.id,ossId:a.data.id,uuid:s};y((e=>{const t=e.slice(0),n=t.findIndex((e=>e.uuid===s));return n>-1&&t.splice(n,1),t})),_(1===l||!0!==n?[o]:e=>{const t=e.slice(0);return t.push(o),t})}catch(o){r(o)}})))}}},y=h},97211:(e,t,n)=>{n.d(t,{A:()=>c});var a=n(87558),l=n.n(a),s=n(63908),r=n(34677),o=n.n(r),i=n(70579);const c=e=>{const t=t=>{let{id:n,url:a,error:r,apis:c,loading:d,...u}=t;const{apis:p}=(0,s.usePreset)(),m=o()({},p,c);if(!n)return null;if(!m.oss)throw new Error("\u8bf7\u5728Global\u7ec4\u4ef6\u8bbe\u7f6epreset.apis.oss\u53c2\u6570");const{paramsType:h,paramsName:_,...g}=Object.assign({paramsType:"params",paramsName:"id"},m.oss),f={};return f[h]={[_]:n},(0,i.jsx)(l(),{...Object.assign({},g,f),updateType:"refresh",error:r,loading:d,cache:"oss-file",ttl:6e6,render:t=>{let{data:a}=t;return(0,i.jsx)(e,{...u,id:n,data:a})}})};return t.defaultProps={loading:null},t}},27047:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(83694),l=n(33097),s=n.n(l);const r=()=>{const e=(0,a.useGlobalContext)();return s()(e,"preset",{apis:{}})}},77964:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(73884),l=n(79889),s=n.n(l),r=n(93950),o=n.n(r),i=n(96418),c=n.n(i);const d=(e,t)=>{const n=(0,a.useRef)(null);n.current=Object.assign({},{time:500,isDebounce:!1},t);const l=(0,a.useRef)(null),r=c()(e);return(0,a.useLayoutEffect)((()=>{const e=l.current,t=()=>window.requestAnimationFrame((()=>{e&&r(e)}));t();const a=new ResizeObserver((n.current.isDebounce?o():s())(t,n.current.time));return e&&a.observe(e),()=>{a.disconnect()}}),[r]),l}},81348:(e,t,n)=>{n.d(t,{A:()=>a});const a=(e,t)=>{if(e&&t){const n=Array.isArray(t)?t:t.split(","),a=e.name||"",l=(e.type||"").toLowerCase(),s=l.replace(/\/.*$/,"");return n.some((e=>{const t=e.trim().toLowerCase();return"."===t.charAt(0)?a.toLowerCase().endsWith(t):t.endsWith("/*")?s===t.replace(/\/.*$/,""):l===t}))}return!0}},69484:(e,t,n)=>{n.d(t,{A:()=>l,e:()=>a});const a=1e15,l=e=>{let t,n,l,s=["\u96f6","\u58f9","\u8d30","\u53c1","\u8086","\u4f0d","\u9646","\u67d2","\u634c","\u7396"],r=["","\u62fe","\u4f70","\u4edf"],o=["","\u4e07","\u4ebf","\u5146"],i=["\u89d2","\u5206","\u6beb","\u5398"],c="",d="";if(""===e)return"";if((e=parseFloat(e))>=a)return c="\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57",console.error("\u8d85\u51fa\u6700\u5927\u5904\u7406\u6570\u5b57"),c;if(0===e)return c=s[0]+"\u5143\u6574",c;if(e<0&&(e=-e,d="\u8d1f "),-1===(e=e.toString()).indexOf(".")?(t=e,n=""):(l=e.split("."),t=l[0],n=l[1].substr(0,4)),parseInt(t,10)>0){let e=0,n=t.length;for(let a=0;a<n;a++){let l=t.substr(a,1),i=n-a-1,d=i/4,u=i%4;"0"===l?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(l)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==n){let e=n.length;for(let t=0;t<e;t++){let e=n.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===n&&(c+="\u6574"),c=d+c,c}},74981:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(73884);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,a.createContext)(e),{Provider:n,Consumer:l}=t;return{context:t,Provider:n,Consumer:l,useContext:()=>(0,a.useContext)(t)}}},28987:(e,t,n)=>{n.d(t,{A:()=>a});const a=e=>{const t=[];let n=0;const a=()=>{if(0!==t.length){if(n<e){const e=t.shift();n+=1,e().finally((()=>{n-=1,a()}))}}else n=0};return e=>new Promise((n=>{t.push((()=>{const t=Promise.resolve().then((()=>e()));return n(t),t})),a()}))}},55490:(e,t,n)=>{n.d(t,{A:()=>d});var a=n(12322),l=n.n(a),s=n(26727),r=n.n(s),o=n(54052),i=n.n(o);const c=e=>{if(l()(e)){const t=r()(e);return t.length>0&&t.some((e=>c(e)))}return i()(e)?e.length>0&&e.some((e=>c(e))):"number"===typeof e?!isNaN(e):!(void 0===e||null===e||""===e||0===e.length)},d=c},91176:(e,t,n)=>{n.d(t,{j:()=>l,v:()=>a});const a=e=>"number"===typeof e?`${e}px`:e,l=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},36:(e,t,n)=>{n.r(t),n.d(t,{AddressEnum:()=>h.qn,AddressInputField:()=>h.TM,AddressSelectField:()=>h.Ay,AdvancedSelectField:()=>_.Ay,CascaderField:()=>g.Ay,FetchButton:()=>i.A,FunctionEnum:()=>f.K,FunctionSelectField:()=>f.A,IndustryEnum:()=>x.W,IndustrySelectField:()=>x.A,InputFileButton:()=>m.Zi,InputFileLink:()=>m.FI,InputFileText:()=>m.AG,ScrollLoader:()=>o.A,SearchInput:()=>u.A,SelectInnerInput:()=>p.A,SimpleBar:()=>d.A,SimpleBarBox:()=>c.A,TableField:()=>_.Bm,TypeDateRangePickerField:()=>y.A,UserField:()=>_.Eo,accept:()=>b.A,changeMoneyToChinese:()=>a.A,createAddressApi:()=>h.LH,createDeferred:()=>A.A,createListField:()=>_.NR,createTreeUtils:()=>g.ON,getContainerBody:()=>l.c,getPopupContainer:()=>s,getScrollEl:()=>l.h,isNotEmpty:()=>C.A,numberToPx:()=>j.v,pxToNumber:()=>j.j,useFileUpload:()=>m.lN,useResize:()=>v.A,withAddressApi:()=>h.DF,withInputFile:()=>m.Ay,withOSSFile:()=>r.A});var a=n(69484),l=n(76801);const s=e=>{const t=e=>{const n=(0,l.h)();if(!e||e===n||!e.parentElement)return n;return[].slice.call(e.classList,0).find((e=>["ant-modal-body","ant-modal-content","ant-popover-content"].indexOf(e)>-1))?e:t(e.parentElement)};return t(e)};var r=n(97211),o=n(26475),i=n(73025),c=n(21485),d=n(17342),u=n(73161),p=n(30509),m=n(29574),h=n(93761),_=n(12392),g=n(45776),f=n(41654),x=n(53392),y=n(89319),v=n(77964),b=n(81348),A=n(28987),C=n(55490),j=n(91176)},40438:(e,t,n)=>{n.r(t),n.d(t,{default:()=>j});var a=n(87558),l=n.n(a),s=n(97211),r=n(64671),o=n(83136),i=n.n(o),c=n(55199),d=n(73884);const u=e=>{let{params:t}=e;const{data:n}=t;return new Promise(((e,t)=>{const a=new window.Image;a.src=n,a.addEventListener("load",(()=>{e(n)})),a.addEventListener("error",(e=>{t(e)}))}))},p="style_img-outer__4QLY5__AYubY",m="style_img__PSExq__AYubY",h="style_loading__WCOwA__AYubY",_="style_error__+ECgZ__AYubY";var g=n(18411),f=n(63908),x=n(70579);const y=e=>{let{data:t,className:n,alt:a,innerLoading:s,loading:r,error:o,innerError:c,children:d,onClick:p,staticUrl:h}=e;const{staticUrl:_}=(0,f.usePreset)(),g=h||_||"";return(0,x.jsx)(l(),{loader:u,params:{data:/^https?:\/\//.test(t)?t:g+t},error:c||o,loading:s||r,render:e=>{let{data:t}=e;return"function"===typeof d?d({alt:a,className:i()(n,m),src:t}):(0,x.jsx)("img",{alt:a,className:i()(n,m),src:t,onClick:p})}})},v=(0,s.A)(y),b=e=>{let{loading:t,error:n,src:a,id:l,alt:s,className:r,children:o,apis:i,onClick:c}=e;const u=t&&(0,d.cloneElement)(t,{className:h}),p=n&&(0,d.cloneElement)(n,{className:_});return a?(0,x.jsx)(y,{alt:s,className:r,data:a,loading:u,error:p,onClick:c,children:o}):l?(0,x.jsx)(v,{alt:s,className:r,id:l,loading:u,innerLoading:u,error:p,innerError:p,apis:i,onClick:c,children:o}):p},A=e=>{let{id:t,src:n,alt:a,onClick:l,loading:s,error:r,className:o,apis:c,...d}=e;return(0,x.jsx)("div",{...d,"data-testid":"components-core-image",className:i()(o,p),children:b({loading:s,error:r,src:n,id:t,alt:a,className:o,apis:c,onClick:l})})};A.Avatar=e=>{let{id:t,src:n,alt:a,gender:l,loading:s,error:o,className:d,gap:u,icon:m,children:h,shape:_,size:g,width:f,height:y,defaultAvatar:v,apis:A,...C}=e;const j=(()=>{const e=f&&y?{style:{width:f,height:y}}:{size:g};if(f&&f!==y&&(_="square"),t||n)return b({loading:s,error:o,src:n,defaultAvatar:v,id:t,alt:a,className:d,apis:A,children:t=>(0,x.jsx)(c.Avatar,{...t,gap:u,shape:_,...e})});if(l){const t=l&&["F","female","f"].indexOf(l)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,x.jsx)(c.Avatar,{...C,src:(0,x.jsx)(r.default,{role:"touxiang",colorful:!0,type:t}),gap:u,shape:_,...e})}return(0,x.jsx)(c.Avatar,{...C,gap:u,icon:m,shape:_,size:g,src:v,...e,children:h})})();return(0,x.jsx)("div",{...C,"data-testid":"components-core-image-avatar",className:i()(d,p),style:{width:f&&y?f:g,height:f&&y?y:g},children:j})};const C={error:(0,x.jsx)(r.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,x.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0})};A.defaultProps=Object.assign({},C),A.Avatar.defaultProps=Object.assign({},C,{size:100,defaultAvatar:g.A});const j=A},3382:(e,t,n)=>{n.r(t),n.d(t,{ModalButton:()=>L,TabsModal:()=>w,TabsModalButton:()=>I,default:()=>Y,useConfirmModal:()=>N,useModal:()=>j,useTabsModal:()=>O});var a=n(73884),l=n(55199),s=n(83136),r=n.n(s);const o={modal:"style_modal__Pm3cF__AYubY",large:"style_large__iaqVE__AYubY","modal-body-inner":"style_modal-body-inner__4PhpA__AYubY","modal-title":"style_modal-title__dswaw__AYubY","modal-outer":"style_modal-outer__r3SkX__AYubY","modal-body":"style_modal-body__jQJSI__AYubY","right-options-modal":"style_right-options-modal__FajDP__AYubY","right-options-row":"style_right-options-row__-mPb9__AYubY","right-options-col":"style_right-options-col__3ilee__AYubY","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__AYubY",content:"style_content__k6MIF__AYubY","modal-footer":"style_modal-footer__-prbN__AYubY","modal-close":"style_modal-close__Oa5Kl__AYubY","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__AYubY","is-danger":"style_is-danger__H5110__AYubY",title:"style_title__orTym__AYubY","has-title":"style_has-title__qy0Wp__AYubY"},i=e=>({"en-US":()=>n.e(4628).then(n.bind(n,74628)),"zh-CN":()=>n.e(7478).then(n.bind(n,87478))}[e]());var c=n(58609),d=n(64671);const u=(e,t)=>"function"===typeof e?e(t):e;var p=n(81014),m=n(17342),h=n(70579);const _="Modal",g=e=>{let{options:t,rightSpan:n=6,children:a}=e;return t?(0,h.jsxs)(l.Row,{wrap:!1,className:o["right-options-row"],children:[(0,h.jsx)(l.Col,{span:24-n,className:o["right-options-col"],children:a}),(0,h.jsx)(l.Col,{span:n,className:o["right-options-col"],children:t})]}):a},f=(e,t)=>e-48-(t?58:0)+"px",x=(e,t)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":f(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":f(300,t)}}:{width:"1000px",style:{"--min-modal-height":f(500,t)}},y=e=>{let{footer:t,footerButtons:n,onConfirm:s,onCancel:r,onClose:o,targetProps:d}=e;return(0,h.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,h.jsx)(l.Col,{flex:1,children:t}),Array.isArray(n)&&0===n.length?null:(0,h.jsx)(l.Col,{children:(0,h.jsx)(l.Space,{children:(n||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:_})}),onClick:r},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:_,children:(0,h.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:_})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,t)=>{let{ButtonComponent:n,onClick:l,autoClose:s=!0,display:r,...i}=e;const c=n||p.default;return(0,a.createElement)(c,{...i,key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];const a=await Promise.resolve(l&&l(...t,d));return s&&!1!==a&&o&&o(),a}})}))})})]})},v=e=>{let{title:t,footer:n,disabledScroller:s,footerButtons:i,onClose:c,closable:u,onConfirm:p,onCancel:_,children:g,targetProps:f}=e;const x=(0,a.useRef)(null);return(0,h.jsxs)("div",{className:o["modal-outer"],"data-testid":"components-core-modal",children:[!1===u?null:(0,h.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:o["modal-close"],type:"text",icon:(0,h.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),t&&(0,h.jsx)("div",{className:o["modal-title"],children:t}),(0,h.jsx)(m.A,{className:r()(o["modal-body"],{[o["is-disabled-scroller"]]:s},"modal-body"),ref:x,children:(0,h.jsx)("div",{className:r()(o["modal-body-inner"],"modal-body-inner"),children:g})}),null!==n||i?(0,h.jsx)("div",{className:r()(o["modal-footer"],"modal-footer"),children:(0,h.jsx)(y,{footer:n,footerButtons:i,onConfirm:p,onCancel:_,onClose:c,targetProps:f})}):null]})},b=e=>{let{withDecorator:t,footerButtons:n,title:a,closable:l,onClose:s,onConfirm:r,onCancel:o,footer:i,rightOptions:c,rightSpan:d,disabledScroller:p,childrenRef:m,children:_}=e;const f=e=>(e=Object.assign({},{title:a},e),(0,h.jsx)(v,{title:u(e.title,{...e,childrenRef:m,close:s}),closable:l,onClose:s,onConfirm:r,onCancel:o,footerButtons:u(n,{...e,close:s}),disabledScroller:p,footer:u(i,{...e,childrenRef:m,close:s}),targetProps:Object.assign({},e,{childrenRef:m,close:s}),children:(0,h.jsx)(g,{rightSpan:d,options:u(c,{...e,childrenRef:m,close:s}),children:u(_,{...e,childrenRef:m,close:s})})}));return"function"===typeof t?t(f):f({})},A=e=>{let{children:t,rightOptions:n,rightSpan:a,footer:l,footerButtons:s,className:d,size:u,title:p,onClose:m,onConfirm:_,onCancel:g,closable:f,disabledScroller:y,withDecorator:v,childrenRef:A,...C}=e;return{...C,icon:null,centered:!0,title:null,maskClosable:!!C.hasOwnProperty("maskClosable")&&C.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:m,className:r()(d,o.modal,o[u],{[o["right-options-modal"]]:n}),...x(u,!(null===l&&!s)),children:(0,h.jsx)(c.IntlProvider,{importMessages:i,moduleName:"Modal",children:b({withDecorator:v,title:p,closable:f,onClose:m,onConfirm:_,onCancel:g,footer:l,footerButtons:s,rightOptions:n,rightSpan:a,disabledScroller:y,children:t,childrenRef:A})})}},C=e=>{const t=(0,a.useRef)(null);return(0,h.jsx)(l.Modal,{...A(Object.assign({},e,{childrenRef:t}))})};C.defaultProps={size:"default"};const j=()=>{const{modal:e}=l.App.useApp(),t=(0,a.useRef)(null);return n=>{const a={},{children:l,...s}=A({onClose:()=>a.close(),childrenRef:t,...n}),{destroy:r}=e.info({...s,content:l});return a.close=r,a}},N=()=>{const{modal:e}=l.App.useApp();return t=>{const n={},{type:a,icon:s,title:i,danger:c,wrapClassName:u,message:p,iconSetting:m={},confirmType:_="info",...g}={onClose:()=>n.close(),maskClosable:!1,...t},f=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},m);if(e[a]){const{destroy:t}=e[a]({...g,icon:null,wrapClassName:r()(o["confirm-modal-wrap"],u,{[o["is-danger"]]:c}),title:(0,h.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:i&&(0,h.jsxs)(l.Space,{size:0,align:"start",className:o.title,children:[c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||f["confirm"===a?_:a]}):null,i]})}),content:(0,h.jsxs)(l.Space,{size:0,align:"start",className:r()(o.content,{[o["has-title"]]:i}),children:[!i&&c?(0,h.jsx)(d.default,{className:r()("title-icon",`title-icon-${"confirm"===a?_:a}`),type:s||f["confirm"===a?_:a]}):null,p]})});n.close=t}return n}},Y=C,S=e=>{let{items:t,className:n,activeKey:a,withDecorator:s,defaultActiveKey:o,onChange:i,...c}=e;return{...c,className:r()(n,"tabs-modal"),withDecorator:e=>{const n=n=>(0,h.jsx)(l.Tabs,{items:t.map((t=>{let{withDecorator:a,...l}=t;return Object.assign({},l,{children:"function"===typeof a?a((t=>e(Object.assign({},n,t,{children:l.children})))):e(Object.assign({},n,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:a,defaultActiveKey:o,onChange:i});return"function"===typeof s?s(n):n()},children:e=>{let{children:t,...n}=e;return"function"===typeof t?t(n):t}}},w=e=>(0,h.jsx)(Y,{...S(e)}),O=()=>{const e=j();return t=>e(S(t))};var P=n(73025);const I=e=>{const t=O();return e.api?(0,h.jsx)(P.A,{...e,modalFunc:t}):(0,h.jsx)(l.Button,{...e,onClick:()=>{t(e.modalProps)}})},L=e=>{const t=j();if(!e.api){const{modalProps:n,...a}=e;return(0,h.jsx)(l.Button,{...a,onClick:()=>{t(n)}})}return(0,h.jsx)(P.A,{...e,modalFunc:t})}},25438:(e,t,n)=>{n.d(t,{A:()=>a});const a={"search-input":"common_search-input__P6qLg__AYubY","is-popup":"common_is-popup__fJq+g__AYubY",list:"common_list__TKFzS__AYubY","list-item":"common_list-item__ASse7__AYubY","is-selected":"common_is-selected__-PU4Y__AYubY","item-label":"common_item-label__u+qz1__AYubY","item-des":"common_item-des__no2z0__AYubY"}}}]);
|
|
2
|
-
//# sourceMappingURL=36.f294e8d9.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[4265,1151,9034,6611,3142,8017],{42787:(e,t,n)=>{"use strict";n.d(t,{A:()=>_});var s=n(10486),r=n(73884),a=n(96418),l=n.n(a),o=n(83136),i=n.n(o);const c={scroller:"style_scroller__EfuqR__AYubY","scroller-inner":"style_scroller-inner__NJSE0__AYubY","is-moving":"style_is-moving__jGuy0__AYubY"};var u=n(70579);const d=e=>{let{onScroll:t,getContainer:n,...a}=e;const l=(0,r.useRef)(0),[o,d]=(0,r.useState)(!1),p=(0,r.useRef)(o);p.current=o;const _=(0,r.useRef)(t);_.current=t;const h=(0,r.useRef)(1);return h.current=a.width/a.innerWidth,(0,r.useEffect)((()=>{const e=e=>{p.current&&_.current(h.current*(e.clientX-l.current)),l.current=e.clientX},t=()=>{d(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}}),[]),(0,s.createPortal)(a.hasScroller?(0,u.jsx)("div",{className:c.scroller,style:{left:a.left,width:a.width,height:15},children:(0,u.jsx)("div",{className:i()(c["scroller-inner"],{[c["is-moving"]]:o}),style:{width:a.innerWidth,left:a.innerLeft},onMouseDown:e=>{e.preventDefault(),l.current=e.clientX,d(!0)}})}):null,n()||document.body)},p=e=>{let{className:t,scroller:n,getScrollTarget:s,children:a}=e;const[o,p]=(0,r.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),_=(0,r.useRef)(null),h=l()((()=>_.current&&s(_.current))),m=(0,r.useRef)();return m.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,r.useEffect)((()=>{const e=m.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:s,top:r,height:a}=t.getBoundingClientRect(),l=t.offsetHeight-t.clientHeight||15,o=s*t.clientWidth/t.scrollWidth-6,i=t.scrollLeft*t.clientWidth/t.scrollWidth+2,c=e.getBoundingClientRect();p((u=>Object.assign({},u,{left:n,width:s,innerLeft:i,innerWidth:o,height:l,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?r+a-e.offsetHeight>0&&r<e.offsetHeight:r<c.top+c.height&&r+a>c.top+c.height)})))},s=new ResizeObserver(n);return new ResizeObserver((()=>{t=h(),t&&(s.disconnect(),n(),Array.from(t.children).forEach((e=>{s.observe(e)})),t.addEventListener("scroll",n))})).observe(_.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}}),[h]),n?(0,u.jsxs)("div",{className:i()(c["scroller-outer"],t),ref:_,style:{"--scroller-bar-height":null!==o&&void 0!==o&&o.hasScroller?"15px":"0px"},children:[a,(0,u.jsx)(d,{...o,getContainer:m.current,onScroll:e=>{h().scrollLeft+=e}})]}):a};p.defaultProps={scroller:!0,getScrollTarget:()=>document.querySelector(".simplebar-content-wrapper")};const _=p},63361:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>y,useFeatureCall:()=>f});var s=n(73884),r=n(63908),a=n(33097),l=n.n(a),o=n(15797),i=n.n(o),c=n(1488),u=n.n(c),d=n(70579);const p=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach((e=>{p(e,t,n)})):(t(Object.assign({},u()(e,["children"]),{parentId:n})),p(e.children,t,n?n+":"+e.id:e.id)))},_=i()((e=>{const t=(()=>{const t=new Map;return p(e,(e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)})),t})(),n=(e=>Array.from(e.keys()).filter((t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some((n=>!e.get(t))))})))(t);return{profile:e,features:n,profileMap:t}})),h=(e,t)=>{let{profileMap:n,features:s}=t;const r=n.get(e);return-1!==s.indexOf(e)&&!0!==r.close&&l()(r,"dependencies",[]).every((t=>{const r=n.get(e);return s.indexOf(t)>-1&&!0!==r.close}))},m=(0,s.createContext)(null),{Provider:g}=m,f=e=>{const{features:t,profile:n,profileMap:a,debug:o}=(()=>{const e=(0,r.usePreset)(),{profile:t,debug:n}=l()(e,"features",{debug:!1,profile:{}});return Object.assign({},_(t),{debug:n})})(),i="system"===n.type?n.id:"root",c=(0,s.useContext)(m),u=c?c+":"+e:i+":"+e;return(0,s.useEffect)((()=>{t&&t.length>0&&o&&console.log(`[featureId] ${u},[state] ${h(u,{features:t,profileMap:a})}`,a.get(u))}),[t,a,o,u]),{isPass:!(e&&t&&t.length>0)||h(u,{features:t,profileMap:a}),currentId:u,feature:a.get(u)}},y=e=>{let{id:t,children:n}=e;const{isPass:s,feature:r,currentId:a}=f(t);return(0,d.jsx)(g,{value:a,children:"function"===typeof n?n({isPass:s,options:s?l()(r,"options"):l()(r,"rejectedOptions"),currentId:a}):s&&n})}},75363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>m});const s=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var r=n(58609),a=n(64671),l=n(55199),o=n(83136),i=n.n(o);const c="style_helper-guide__K5xFw__AYubY",u="style_inner__bMKeU__AYubY",d="style_content__xTfWZ__AYubY",p="style_link__93j7O__AYubY";var _=n(48731),h=n(70579);const m=e=>{let{name:t,className:n}=e;return(0,h.jsx)(r.IntlProvider,{importMessages:s,moduleName:"HelperGuide",children:(0,h.jsx)(_.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:i()(c,n),children:(0,h.jsxs)(l.Space,{className:u,children:[(0,h.jsx)(a.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:d,children:e.content}),e.url&&(0,h.jsxs)(l.Typography.Link,{className:p,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(a.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},51516:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Affix:()=>S,Menu:()=>V.default,Page:()=>L,PermissionsPage:()=>$,StateBarPage:()=>Z,TablePage:()=>J,default:()=>G});var s=n(55199),r=n(73884);const a={menu:null,filter:null,menuOpen:!0,menuWidth:"240px",menuFixed:!0,menuCloseButton:!0,backgroundColor:null,header:null,headerHeight:0,headerFixed:!0,headerInfo:null,backUrl:null,title:null,titleExtra:null,titleLeftExtra:null,noMargin:!1,noPadding:!1,optionFooterHeight:0,option:null,optionWidth:"400px",optionNoPadding:!1,optionFixed:!0,optionFooter:null},l=(0,r.createContext)({}),{Provider:o,Consumer:i}=l,c=()=>(0,r.useContext)(l);var u=n(79329),d=n(76801),p=n(36755),_=n(19853),h=n.n(_),m=n(63361),g=n(83136),f=n.n(g);const y={layout:"style_layout__k+lxR__AYubY","page-content":"style_page-content__4XeN8__AYubY","page-main":"style_page-main__P0yEF__AYubY","page-main-content":"style_page-main-content__1OVPN__AYubY","table-page":"style_table-page__JkbLf__AYubY","helper-guide":"style_helper-guide__vzw4z__AYubY","page-outer":"style_page-outer__2a6iH__AYubY","no-margin":"style_no-margin__S6caT__AYubY","page-menu":"style_page-menu__CZSa9__AYubY",closed:"style_closed__hmnft__AYubY","page-menu-inner":"style_page-menu-inner__rmKpu__AYubY","page-menu-main":"style_page-menu-main__OXg2M__AYubY","page-option-main":"style_page-option-main__LyfT3__AYubY","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__AYubY","page-option":"style_page-option__diS2S__AYubY","page-option-inner":"style_page-option-inner__Fj1JH__AYubY","page-option-footer":"style_page-option-footer__d7xE0__AYubY","fixed-container":"style_fixed-container__1VZwY__AYubY","is-fixed":"style_is-fixed__1aQhp__AYubY","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__AYubY","page-menu-btn":"style_page-menu-btn__BiTy8__AYubY","page-title":"style_page-title__zw-Fd__AYubY","page-title-text":"style_page-title-text__Rj4RC__AYubY","no-padding":"style_no-padding__V7Dwy__AYubY","page-header":"style_page-header__a813p__AYubY","page-header-info":"style_page-header-info__cMrZR__AYubY","layout-menu":"style_layout-menu__yiab0__AYubY","sub-menu":"style_sub-menu__dyqK7__AYubY","no-collapsed":"style_no-collapsed__76h8W__AYubY","has-not-children":"style_has-not-children__fnjRK__AYubY","table-page-top":"style_table-page-top__bt1l9__AYubY","error-component":"style_error-component__HvghB__AYubY","state-bar-page":"style_state-bar-page__+aUM4__AYubY","back-icon":"style_back-icon__79v2G__AYubY"};var x=n(70579);const b=e=>{let{className:t,isFixed:n,children:s}=e;return n?(0,x.jsx)("div",{className:f()(t,"fixed-container",y["fixed-container"],{[y["is-fixed"]]:n}),children:s}):(0,x.jsx)("div",{className:f()(t,"fixed-container",y["fixed-container"]),children:s})};var v=n(64671),j=n(17342),Y=n(94679),A=n(33097),N=n.n(A),C=n(55490),O=n(25644);const w="CORE_PAGE_MENU_OPEN_KEY",P=()=>{const{pageProps:e,setPageProps:t}=c(),{menu:n,menuOpen:r,menuWidth:a,menuFixed:l,menuCloseButton:o}=e,i=(0,Y.useLocation)().pathname.split("/")[1];return n?(0,x.jsxs)(s.Col,{className:f()(y["page-menu"],{[y.closed]:!r}),style:{"--width":a},children:[(0,x.jsx)(b,{className:y["page-menu-inner"],isFixed:l,children:(0,x.jsx)("div",{className:y["page-menu-main-outer"],children:(0,x.jsx)(j.A,{className:y["page-menu-main"],children:n})})}),o?(0,x.jsx)(b,{className:f()(y["page-menu-btn-outer"],{[y["is-fixed"]]:l}),isFixed:l,children:(0,x.jsx)(s.Button,{className:f()(y["page-menu-btn"],{[y.closed]:!r}),icon:r?(0,x.jsx)(v.default,{type:"icon-arrow-bold-left"}):(0,x.jsx)(v.default,{type:"icon-arrow-bold-right"}),onClick:()=>{t({menuOpen:!e.menuOpen});const n=O.A.getItem(w)||{};n[i]=!e.menuOpen,O.A.setItem(w,n),t({menuOpen:!e.menuOpen})}})}):null]}):null},k=e=>{let{children:t,isPass:n,...l}=e;const{setPageProps:o}=c(),i=(0,r.useRef)(null),u=(()=>{const e=(0,Y.useLocation)().pathname.split("/")[1];return(0,r.useMemo)((()=>{const t=O.A.getItem(w)||{};return!(0,C.A)(N()(t,e))||N()(t,e)}),[e])})(),d=(0,r.useRef)(u);return d.current=u,(0,r.useEffect)((()=>{if(!h()(i.current,l)){i.current=l;const e=Object.assign({},a,l,"boolean"===typeof d.current?{menuOpen:d.current}:{});e.header&&0===e.headerHeight&&delete e.headerHeight,e.optionFooter&&0===e.optionFooterHeight&&delete e.optionFooter,o(e)}}),[l,o]),!1===n?(0,x.jsx)(s.Result,{status:"403",subTitle:"\u6682\u672a\u5f00\u653e\u6b64\u529f\u80fd"}):t},E=e=>{let{featureId:t,name:n,openFeatures:s,...a}=e;return!0===s?(0,x.jsx)(m.default,{id:n,children:e=>{let{isPass:t}=e;return(0,r.createElement)(k,{...a,key:n,isPass:t})}}):(0,r.createElement)(k,{...a,key:n})};E.defaultProps=a;const L=E,S=e=>{let{isFixed:t,offsetTop:n,offsetBottom:r,onChange:a,...l}=e;return t?(0,x.jsx)(s.Affix,{...l,offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:r,onChange:a}):(0,x.jsx)("div",{...l})},K=e=>{let{targetKey:t,...n}=e;const s=(e=>{let{targetKey:t}=e;const{setPageProps:n}=c(),s=(0,r.useRef)(null);return(0,r.useLayoutEffect)((()=>{const e=()=>{n({[t]:s.current.offsetHeight})};e();const r=new MutationObserver(e);return r.observe(s.current,{subtree:!0,childList:!0}),()=>{r.disconnect()}}),[n,t]),s})({targetKey:t});return(0,x.jsx)("div",{...n,ref:s})},R=()=>{const{pageProps:e}=c(),{header:t,headerFixed:n}=e;return t?(0,x.jsx)(S,{isFixed:n,className:y["page-header"],offsetTop:u.navigationHeight,children:(0,x.jsx)(K,{targetKey:"headerHeight",children:t})}):null},F=()=>{const{pageProps:e}=c(),{headerInfo:t}=e,n=(0,r.useRef)(null);return t?(0,x.jsx)("div",{ref:n,className:f()(y["page-header-info"],"page-header-info"),children:t}):null};var I=n(16915);const M=e=>{let{title:t,filter:n,titleExtra:r,titleLeftExtra:a,backUrl:l}=e;const o=(0,Y.useNavigate)();return n?(0,x.jsx)(I.default,{className:y["page-title"],...n,extra:r}):t||a||r?(0,x.jsxs)(s.Row,{justify:"space-between",align:"middle",className:y["page-title"],children:[(0,x.jsx)(s.Col,{children:(0,x.jsxs)(s.Space,{children:[t?(0,x.jsx)("div",{className:y["page-title-text"],children:l?(0,x.jsxs)(s.Space,{children:[(0,x.jsx)("span",{className:y["back-icon"],onClick:()=>{o(l)},children:(0,x.jsx)(v.default,{type:"icon-arrow-thin-left"})}),(0,x.jsx)("span",{children:t})]}):t}):null,a||null]})}),(0,x.jsx)(s.Col,{children:r})]}):null},H=()=>{const{pageProps:e}=c(),{option:t,optionWidth:n,optionFixed:r,optionFooter:a,optionFooterHeight:l,optionNoPadding:o}=e;return t?(0,x.jsx)(s.Col,{className:f()(y["page-option"],"page-option"),style:{"--width":n,"--foot-height":l+"px"},children:(0,x.jsxs)(b,{className:y["page-option-inner"],isFixed:r,children:[(0,x.jsx)(j.A,{className:f()(y["page-option-main"],"page-option-main"),style:{padding:o?"0px":"var(--padding-width)"},children:t}),a?(0,x.jsx)(K,{className:y["page-option-footer"],targetKey:"optionFooterHeight",children:(0,x.jsx)(s.Space,{align:"center",children:a})}):null]})}):null};var T=n(75363),W=n(29053);const{Content:q}=s.Layout,B=()=>(0,x.jsx)(s.Alert,{message:"\u7cfb\u7edf\u51fa\u4e86\u70b9\u5c0f\u95ee\u9898\uff0c\u53ef\u5237\u65b0\u9875\u9762\u8fdb\u884c\u89e3\u51b3",showIcon:!0,type:"error",action:(0,x.jsx)(s.Button,{size:"small",danger:!0,onClick:()=>window.location.reload(),children:"\u5237\u65b0"})}),z=e=>(0,x.jsx)(p.A,{...e,errorComponent:B}),U=e=>{let{children:t,theme:n,navigation:l}=e;const[i,c]=(0,r.useState)(0),[p,_]=(0,r.useState)(Object.assign({},a)),{permissions:h}=(0,W.usePermissions)(),m=(0,r.useCallback)((e=>_((t=>Object.assign({},t,e)))),[]);return(0,r.useEffect)((()=>{const e=(0,d.h)(),t=()=>{c(e.scrollLeft)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}}),[]),(0,x.jsxs)(s.Layout,{className:y.layout,style:Object.assign({},{"--nav-height":u.navigationHeight+"px","--nav-height-base":"var(--nav-height)","--scroll-left":-i+"px"},n),children:[l&&(0,x.jsx)(z,{children:(0,x.jsx)(u.default,{permissions:h,...l,onChange:e=>{(null===l||void 0===l?void 0:l.onChange)&&l.onChange(e)}})}),(0,x.jsx)(z,{children:(0,x.jsx)(q,{className:y["layout-content-wrap"],children:(0,x.jsxs)(o,{value:{pageProps:p,setPageProps:m},children:[(0,x.jsx)(z,{children:(0,x.jsx)(R,{})}),(0,x.jsx)(z,{children:(0,x.jsx)(F,{})}),(0,x.jsx)(z,{children:(0,x.jsxs)(s.Row,{className:f()(p.className,y["page-outer"]),wrap:!1,style:{"--nav-height":`calc(${p.headerFixed?p.headerHeight:0}px + var(--nav-height-base))`,"--nav-only-height":"var(--nav-height-base)"},children:[(0,x.jsx)(z,{children:(0,x.jsx)(P,{})}),(0,x.jsx)(s.Col,{className:f()(y["page-content"],{[y["no-margin"]]:p.noMargin}),flex:1,style:{"--background-color":p.backgroundColor},children:(0,x.jsxs)("div",{className:y["page-main"],children:[(0,x.jsx)(z,{children:(0,x.jsx)(M,{title:p.title,backUrl:p.backUrl,filter:p.filter,titleExtra:p.titleExtra,titleLeftExtra:p.titleLeftExtra})}),(0,x.jsx)("div",{className:f()(y["page-main-content"],{[y["no-padding"]]:p.noPadding}),children:(0,x.jsxs)(z,{children:[p.helperGuideName&&(0,x.jsx)(T.default,{className:y["helper-guide-page"],name:p.helperGuideName}),t]})})]})}),(0,x.jsx)(z,{children:(0,x.jsx)(H,{})})]})})]})})})]})};U.defaultProps={navigation:{}};const G=U,$=e=>{let{permissions:t,...n}=e;return(0,x.jsx)(W.default,{...Object.assign({},t,{type:"error"}),children:(0,x.jsx)(L,{...n})})};var V=n(28148),X=n(22814);const J=(0,r.forwardRef)(((e,t)=>{let{helperGuideName:n,permissions:s,page:a,openFeatures:l,name:o,topArea:i,...c}=e;const[u,d]=(0,r.useState)(null);return(0,x.jsxs)($,{name:o,openFeatures:l,permissions:s,...a,children:[i?(0,x.jsx)("div",{className:y["table-page-top"],children:"function"===typeof i?i(u):i}):null,(0,x.jsxs)("div",{className:y["table-page"],children:[n&&(0,x.jsx)(T.default,{className:f()("helper-guide",y["helper-guide"]),name:n}),(0,x.jsx)(X.TablePage,{...c,ref:t,name:o,onRequestSuccess:e=>{d(e)}})]})]})}));var Q=n(87227);const Z=e=>{let{helperGuideName:t,permissions:n,page:s,stateBar:r,children:a,...l}=e;return(0,x.jsxs)($,{...s,permissions:n,...l,children:[(0,x.jsx)("div",{className:y["state-bar-page"],children:(0,x.jsx)(Q.default,{...r})}),t&&(0,x.jsx)(T.default,{className:y["helper-guide"],name:t}),a]})}},28148:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>x});const s={menu:"style_menu__gvIvn__AYubY","all-no-start-icon":"style_all-no-start-icon__CA+zR__AYubY","no-start-icon":"style_no-start-icon__LnC1S__AYubY","has-children":"style_has-children__m9tce__AYubY","has-children-node":"style_has-children-node__2bhEB__AYubY","is-root":"style_is-root__4hhOc__AYubY",title:"style_title__+Hcar__AYubY",active:"style_active__WU49K__AYubY","no-collapse":"style_no-collapse__aIZBM__AYubY","title-content":"style_title-content__cQXpK__AYubY",loading:"style_loading__1pU4P__AYubY"};var r=n(83136),a=n.n(r),l=n(55199),o=n(94679),i=n(29053),c=n(10986),u=n.n(c),d=n(64671),p=n(73884),_=n(18081),h=n.n(_),m=n(87558),g=n(70579);const f=e=>{const t=(0,o.useNavigate)(),{id:n,className:r,label:c,iconType:u,path:p,request:_,onClick:h,isOpen:f,isSelected:y,onOpenChange:x,children:b,fetchOptions:v,depth:j,onLoad:Y,allowCollapsed:A}=e,N=Array.isArray(b)&&b.length>0||v,{refresh:C,isLoading:O}=(0,m.useFetch)(Object.assign({},v,{auto:!A&&v,onRequestSuccess:e=>{Y(e)}}));return(0,g.jsx)(i.default,{request:_,children:(0,g.jsxs)("div",{className:a()(r,s["menu-item"]),children:[(0,g.jsxs)("div",{className:a()(s.title,{[s.active]:y,[s["has-children"]]:N,[s["no-collapse"]]:N&&!A,[s["no-start-icon"]]:!u,[s["is-root"]]:0===j}),onClick:s=>{s.stopPropagation(),N||!p?N||v?A&&(v&&C({}),x(!f)):null===h||void 0===h||h(n,e):t(p)},children:[u&&(0,g.jsx)(d.default,{type:u}),(0,g.jsx)("span",{className:s["title-content"],children:c}),N&&A&&(0,g.jsx)(d.default,{type:f?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),N?!A||f&&b?(0,g.jsx)("div",{className:s["children-list"],children:b}):!A||f&&O?(0,g.jsx)("div",{className:s["children-list"],children:(0,g.jsx)(l.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},y=e=>{let{className:t,allowCollapsed:n,pathMatch:r,...l}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[d,_]=u()(l,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[m,y]=u()(l,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:x,defaultOpenKeys:b,links:v,childrenKeys:j,hasStartIcon:Y,hasChildren:A}=(0,p.useMemo)((()=>{var e;const{items:t,childrenKeys:n,nodeMapping:s}=(e=>{const t={},n=[],s=(e,r)=>{const{parentKey:a,depth:l}=Object.assign({parentKey:"root",depth:0,paths:[]},r);return Array.isArray(e)&&e.length>0?e.map(((e,r)=>{const o=`${e.key||`${"root"!==a?`${a}-`:""}node-${r}`}`;t[a]||(t[a]=[]),t[a].push(o);const i=s(e.children,{parentKey:o,depth:l+1});t[o]&&t[a].push(...t[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:l,children:i,originItem:e});return n[o]=c,c})):null};return{items:s(e),childrenKeys:t,nodeMapping:n}})(m);let r=!1,a=!1;const l=[],o=[];return null===n||void 0===n||null===(e=n.root)||void 0===e||e.forEach((e=>{const t=s[e];t.iconType&&(r=!0),t.path&&l.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(a=!0,o.push(t.key))})),{defaultOpenKeys:o,links:l,items:t,childrenKeys:n,hasStartIcon:r,hasChildren:a}}),[m]);(0,p.useEffect)((()=>{const e=v.find((e=>{let{path:t}=e;return"function"===typeof r?r(t,{pathname:i,search:c}):h()(i.replace(/[#,?].*/,""))===h()(t)||h()(i+c)===h()(t)}));e&&_(e.key)}),[v,i,c,_,r]);const[N,C]=u()(Object.assign({},l,{defaultOpenKeys:l.defaultOpenKeys||b}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),O=(0,p.useCallback)(((e,t)=>{const{parentKey:s,depth:r,selectedKey:a,openKeys:l,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:t,key:i,originItem:c,...u}=e;return(0,p.createElement)(f,{...Object.assign({},u),id:i,parentId:s,depth:r,allowCollapsed:n,isSelected:i===a||j[i]&&j[i].indexOf(a)>-1,onClick:_,onLoad:e=>{y((t=>{const n=t=>Array.isArray(t)&&t.length>0?t.map((t=>Object.assign({},t,{children:c===t?e:n(t.children)}))):null;return n(t)}))},isOpen:(l||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{C((e=>{const t=e.slice(0);return e.indexOf(i)>-1?t.splice(e.indexOf(i),1):t.push(i),t}))}},O(t,{parentKey:s,depth:r+1,selectedKey:a,openKeys:l,paths:[...o,i]}))})):null}),[y,C,_,j,n]);return(0,g.jsx)("div",{className:a()(t,s.menu,{[s["all-no-start-icon"]]:!Y,[s["has-children-node"]]:A}),children:O(x,{selectedKey:d,openKeys:N})})};y.defaultProps={defaultItems:[],allowCollapsed:!0};const x=y},79329:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>E,navigationHeight:()=>O});var s=n(55199),r=n(94679),a=n(33097),l=n.n(a),o=n(73884),i=n(83136),c=n.n(i);const u=n.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var d=n(40438);const p=e=>({"en-US":()=>n.e(257).then(n.bind(n,30257)),"zh-CN":()=>n.e(5671).then(n.bind(n,5671))}[e]());var _=n(58609),h=n(96418),m=n.n(h),g=n(64671);const f="style_navigation-wrap__VF8x2__AYubY",y="style_navigation__60RrS__AYubY",x="style_is-fixed__kHFWj__AYubY",b="style_navigation-logo__q9qHu__AYubY",v="style_logo__lB9RC__AYubY",j="style_navigation-list__EYtkg__AYubY",Y="style_navigation-options__0BdJU__AYubY",A="style_more-icon__gNMnt__AYubY";var N=n(70579);const{Header:C}=s.Layout,O=48,w=e=>{let{name:t,mapping:n,defaultTitle:s}=e;const r=(0,o.useRef)({mapping:n,defaultTitle:s});return(0,o.useEffect)((()=>{const e=l()(r.current.mapping.get(t),"title");document.title=(e?e+"-":"")+r.current.defaultTitle}),[t]),null},P=e=>{let{onReady:t}=e;const n=m()(t);return(0,o.useEffect)((()=>{n()}),[n]),null},k=e=>{let{permissions:t,list:n,headerLogo:a,rightOptions:i,isFixed:h,showIndex:m,indexLabel:O,defaultTitle:k,overflowedIndicator:E,base:L,onChange:S,className:K}=e;const R=(0,o.useMemo)((()=>new Map(n.map((e=>{let{key:t,...n}=e;return[t,n]})))),[n]),F=(0,r.useNavigate)(),I=(0,r.useLocation)(),M=(0,o.useRef)(),H=(0,o.useRef)(null),[T,W]=(0,o.useState)("\u66f4\u591a"),[q,B]=(0,o.useState)(!1),z=I.pathname.replace(new RegExp(`^${L}`),"").split("/")[1],U=z?l()(Array.from(R.entries()).find((e=>{let[n,{path:s,permission:r}]=e;return-1!==("function"===typeof s?s(r,t):s).indexOf("/"+z)})),"[0]"):"home";(0,o.useEffect)((()=>{const e=()=>{if(M.current){const e=M.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let s=0;s<e.length;s++){if(-1!==e[s].getAttribute("data-menu-id").indexOf(U)){t=!0;break}}let n=R.get(U)&&!t?l()(R.get(U),"title"):"";W(n)}},t={attributes:!0,childList:!0,subtree:!0};return q&&M&&M.current&&(e(),H.current&&H.current.disconnect(),H.current=new MutationObserver(e),H.current.observe(M.current,t)),()=>{H.current&&H.current.disconnect()}}),[U,R,q]);const G=!!m&&{label:O||(0,N.jsx)(_.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{S&&S("/"),setTimeout((()=>{F("/")}),0)}};return(0,N.jsxs)(_.IntlProvider,{importMessages:p,moduleName:"Navigation",children:[(0,N.jsx)(_.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,N.jsx)(w,{defaultTitle:k||e,mapping:R,name:U})}),(0,N.jsx)("div",{className:c()(f,K),children:(0,N.jsx)(C,{className:c()("navigation",y,{[x]:h}),children:(0,N.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,N.jsx)(s.Col,{className:c()("navigation-logo",b),children:(0,N.jsx)(d.default,{className:c()(v),src:u,alt:"logo",...a})}),(0,N.jsxs)(s.Col,{ref:M,flex:1,className:c()("navigation-list",j),children:[(0,N.jsx)(P,{onReady:()=>{B(!0)}}),(0,N.jsx)(s.Menu,{selectedKeys:[U],mode:"horizontal",overflowedIndicator:E||(0,N.jsxs)(s.Space,{size:4,children:[(0,N.jsx)("span",{children:T||(0,N.jsx)(_.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,N.jsx)("span",{className:A,children:(0,N.jsx)(g.default,{type:"icon-arrow-thin-down"})})]}),items:[G,...Array.from(R.entries()).filter((e=>{let[n,{permission:s}]=e;if("string"===typeof s)return t.indexOf(s)>-1;if("function"===typeof s)return s(t);if(Array.isArray(s)){for(let e of s)if(t.indexOf(e)>-1)return!0;return!1}return!0})).map((e=>{let[n,{title:s,path:r,permission:a}]=e;const l="function"===typeof r?r(a,t):r;return{label:s,key:n,onClick:()=>{S&&S(l),setTimeout((()=>{F(l)}),0)}}}))]})]}),(0,N.jsx)(s.Col,{className:Y,children:i})]})})})]})};k.defaultProps={isFixed:!0,permissions:[],list:[],showIndex:!0,base:""};const E=k},29053:(e,t,n)=>{"use strict";n.r(t),n.d(t,{computedIsPass:()=>p,default:()=>g,usePermissions:()=>_,usePermissionsPass:()=>h});var s=n(73884),r=n(55199),a=n(33097),l=n.n(a),o=n(83136),i=n.n(o);const c="style_outer__vbHB9__AYubY";var u=n(63908),d=n(70579);const p=e=>{let{permissions:t,request:n}=e;return!(Array.isArray(n)&&n.length>0)||n.some((e=>(t||[]).indexOf(e)>-1))},_=()=>{const{global:e}=(0,u.useGlobalContext)(),{permissions:t,permissionsPath:n}=(0,u.usePreset)();return{permissions:e.permissions||t||n&&l()(e,n)||[]}},h=e=>{let{request:t}=e;const{permissions:n}=_();return p({permissions:n,request:t})},m=e=>{let{type:t,className:n,tagName:a,message:l,request:o,children:u,...p}=e;const _=h({request:o});return"function"===typeof u?u({isPass:_,type:t,request:o}):!0===_?u:"error"===t?(0,d.jsx)(r.Result,{status:"403",subTitle:l}):"tooltip"===t?(0,d.jsx)(r.Tooltip,{title:l,children:(0,s.createElement)(a,{...p,className:i()(c,n)},u)}):null};m.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const g=m},87227:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>i});var s=n(55199),r=n(83136),a=n.n(r);const l={"state-bar":"style_state-bar__3jfis__AYubY","has-children":"style_has-children__oQDqU__AYubY","tab-tab-control":"style_tab-tab-control__SopeO__AYubY","tab-radio-control":"style_tab-radio-control__R8X6-__AYubY","tab-step-control":"style_tab-step-control__EQaCl__AYubY","inner-state-bar":"style_inner-state-bar__lWmOz__AYubY"};var o=n(70579);const i=e=>{let{className:t,type:n="tab",stateOption:r=[],isInner:i,...c}=e;return(0,o.jsx)(s.Tabs,{...c,"data-testid":"components-core-state-bar",className:a()(l["state-bar"],l[`tab-${n}-control`],t,{[l["inner-state-bar"]]:i,[l["has-children"]]:r.some((e=>!!e.children))}),style:{"--total-count":r.length},animated:!1,items:r.map((e=>{let{tab:t,label:n,key:s,...r}=e;return{label:t||n,key:s,...r}}))})}},94710:e=>{e.exports=function(e,t,n,s){for(var r=-1,a=null==e?0:e.length;++r<a;){var l=e[r];t(s,l,n(l),e)}return s}},32952:(e,t,n)=>{var s=n(45652);e.exports=function(e,t,n,r){return s(e,(function(e,s,a){t(r,e,n(e),a)})),r}},45652:(e,t,n)=>{var s=n(94664),r=n(76516)(s);e.exports=r},75816:e=>{e.exports=function(e,t,n,s){for(var r=e.length,a=n+(s?1:-1);s?a--:++a<r;)if(t(e[a],a,e))return a;return-1}},99910:e=>{e.exports=function(e,t){for(var n,s=-1,r=e.length;++s<r;){var a=t(e[s]);void 0!==a&&(n=void 0===n?a:n+a)}return n}},19449:(e,t,n)=>{var s=n(94710),r=n(32952),a=n(9096),l=n(54052);e.exports=function(e,t){return function(n,o){var i=l(n)?s:r,c=t?t():{};return i(n,e,a(o,2),c)}}},76516:(e,t,n)=>{var s=n(6571);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!s(n))return e(n,r);for(var a=n.length,l=t?a:-1,o=Object(n);(t?l--:++l<a)&&!1!==r(o[l],l,o););return n}}},21844:(e,t,n)=>{var s=n(75816),r=n(9096),a=n(99140),l=Math.max,o=Math.min;e.exports=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var c=i-1;return void 0!==n&&(c=a(n),c=n<0?l(i+c,0):o(c,i-1)),s(e,r(t,3),c,!0)}},39835:(e,t,n)=>{var s=n(71775),r=n(19449),a=Object.prototype.hasOwnProperty,l=r((function(e,t,n){a.call(e,n)?e[n].push(t):s(e,n,[t])}));e.exports=l},79160:(e,t,n)=>{var s=n(16913),r=n(22761);e.exports=function(e){return"number"==typeof e||r(e)&&"[object Number]"==s(e)}},69613:(e,t,n)=>{var s=n(9261);e.exports=function(e,t,n){return null==e?e:s(e,t,n)}},42907:(e,t,n)=>{var s=n(9096),r=n(99910);e.exports=function(e,t){return e&&e.length?r(e,s(t,2)):0}},99140:(e,t,n)=>{var s=n(37303);e.exports=function(e){var t=s(e),n=t%1;return t===t?n?t-n:t:0}}}]);
|
|
2
|
-
//# sourceMappingURL=4265.11c373c5.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5600,9034,2517],{17342:(e,o,t)=>{t.d(o,{A:()=>s});var n=t(8762),l=t.n(n);t(46733);const s=l()},58407:(e,o,t)=>{t.r(o),t.d(o,{ConfirmLink:()=>g,ConfirmText:()=>y,default:()=>b,withConfirm:()=>f});t(73884);var n=t(55199);const l=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var s=t(64671),i=t(58609),a=t(3382),r=t(83136),c=t.n(r);const d="style_overlay__99t5t__AYubY",m="style_is-danger__gxyAB__AYubY",u="style_title__EEPu2__AYubY",h="style_content__mZZg5__AYubY",_="style_has-title__5+PEt__AYubY";var p=t(70579);const f=e=>{const o=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:l})((o=>{let{title:t,message:l,isDelete:r=!0,onClick:f,onCancel:g,disabled:y,showCancel:b,cancelText:C,isModal:x,okText:j,placement:Y,getContainer:A,...w}=o;const{formatMessage:N}=(0,i.useIntl)({moduleName:"ConfirmButton"}),k=(0,a.useConfirmModal)();return x?(0,p.jsx)(e,{...w,disabled:y,onClick:e=>{k({type:"confirm",title:t,getContainer:A,danger:r,confirmType:r?"warning":"info",message:l||N({id:"message"}),okText:j||N(r?{id:"delete"}:{id:"confirm"}),cancelText:C||N({id:"cancel"}),onCancel:g,onOk:f})}}):(0,p.jsx)(n.Popconfirm,{title:(0,p.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,p.jsxs)(n.Space,{size:0,align:"start",className:u,children:[r&&(0,p.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,p.jsxs)(n.Space,{size:0,align:"start",className:c()(h,{[_]:t}),children:[!t&&r?(0,p.jsx)(s.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,l||N({id:"message"})]})]}),placement:Y,onConfirm:f,okButtonProps:{danger:r},onCancel:g,overlayClassName:c()(d,{[m]:r}),getPopupContainer:A,disabled:y,showCancel:b,cancelText:C,okText:j||N(r?{id:"delete"}:{id:"confirm"}),children:(0,p.jsx)(e,{...w,disabled:y})})}));return o.defaultProps={isModal:!1,showCancel:!0},o},g=f(n.Typography.Link),y=f(n.Typography.Text),b=f(n.Button)},3382:(e,o,t)=>{t.r(o),t.d(o,{ModalButton:()=>B,TabsModal:()=>v,TabsModalButton:()=>M,default:()=>N,useConfirmModal:()=>w,useModal:()=>A,useTabsModal:()=>P});var n=t(73884),l=t(55199),s=t(83136),i=t.n(s);const a={modal:"style_modal__Pm3cF__AYubY",large:"style_large__iaqVE__AYubY","modal-body-inner":"style_modal-body-inner__4PhpA__AYubY","modal-title":"style_modal-title__dswaw__AYubY","modal-outer":"style_modal-outer__r3SkX__AYubY","modal-body":"style_modal-body__jQJSI__AYubY","right-options-modal":"style_right-options-modal__FajDP__AYubY","right-options-row":"style_right-options-row__-mPb9__AYubY","right-options-col":"style_right-options-col__3ilee__AYubY","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__AYubY",content:"style_content__k6MIF__AYubY","modal-footer":"style_modal-footer__-prbN__AYubY","modal-close":"style_modal-close__Oa5Kl__AYubY","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__AYubY","is-danger":"style_is-danger__H5110__AYubY",title:"style_title__orTym__AYubY","has-title":"style_has-title__qy0Wp__AYubY"},r=e=>({"en-US":()=>t.e(4628).then(t.bind(t,74628)),"zh-CN":()=>t.e(7478).then(t.bind(t,87478))}[e]());var c=t(58609),d=t(64671);const m=(e,o)=>"function"===typeof e?e(o):e;var u=t(81014),h=t(17342),_=t(70579);const p="Modal",f=e=>{let{options:o,rightSpan:t=6,children:n}=e;return o?(0,_.jsxs)(l.Row,{wrap:!1,className:a["right-options-row"],children:[(0,_.jsx)(l.Col,{span:24-t,className:a["right-options-col"],children:n}),(0,_.jsx)(l.Col,{span:t,className:a["right-options-col"],children:o})]}):n},g=(e,o)=>e-48-(o?58:0)+"px",y=(e,o)=>"large"===e?{width:`${Math.min(window.innerWidth-64,1500)}px`,style:{"--min-modal-height":g(500,o)}}:"small"===e?{width:"600px",style:{"--min-modal-height":g(300,o)}}:{width:"1000px",style:{"--min-modal-height":g(500,o)}},b=e=>{let{footer:o,footerButtons:t,onConfirm:s,onCancel:i,onClose:a,targetProps:d}=e;return(0,_.jsxs)(l.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(l.Col,{flex:1,children:o}),Array.isArray(t)&&0===t.length?null:(0,_.jsx)(l.Col,{children:(0,_.jsx)(l.Space,{children:(t||[{children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:p,children:(0,_.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:p})}),onClick:i},{type:"primary",children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:p,children:(0,_.jsx)(c.FormattedMessage,{id:"Confirm",moduleName:p})}),onClick:s}]).filter((e=>"function"===typeof(null===e||void 0===e?void 0:e.display)?null===e||void 0===e?void 0:e.display():!1!==(null===e||void 0===e?void 0:e.display))).map(((e,o)=>{let{ButtonComponent:t,onClick:l,autoClose:s=!0,display:i,...r}=e;const c=t||u.default;return(0,n.createElement)(c,{...r,key:o,onClick:async function(){for(var e=arguments.length,o=new Array(e),t=0;t<e;t++)o[t]=arguments[t];const n=await Promise.resolve(l&&l(...o,d));return s&&!1!==n&&a&&a(),n}})}))})})]})},C=e=>{let{title:o,footer:t,disabledScroller:s,footerButtons:r,onClose:c,closable:m,onConfirm:u,onCancel:p,children:f,targetProps:g}=e;const y=(0,n.useRef)(null);return(0,_.jsxs)("div",{className:a["modal-outer"],"data-testid":"components-core-modal",children:[!1===m?null:(0,_.jsx)(l.Button,{"data-testid":"components-core-modal-close-btn",className:a["modal-close"],type:"text",icon:(0,_.jsx)(d.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),c&&c()}}),o&&(0,_.jsx)("div",{className:a["modal-title"],children:o}),(0,_.jsx)(h.A,{className:i()(a["modal-body"],{[a["is-disabled-scroller"]]:s},"modal-body"),ref:y,children:(0,_.jsx)("div",{className:i()(a["modal-body-inner"],"modal-body-inner"),children:f})}),null!==t||r?(0,_.jsx)("div",{className:i()(a["modal-footer"],"modal-footer"),children:(0,_.jsx)(b,{footer:t,footerButtons:r,onConfirm:u,onCancel:p,onClose:c,targetProps:g})}):null]})},x=e=>{let{withDecorator:o,footerButtons:t,title:n,closable:l,onClose:s,onConfirm:i,onCancel:a,footer:r,rightOptions:c,rightSpan:d,disabledScroller:u,childrenRef:h,children:p}=e;const g=e=>(e=Object.assign({},{title:n},e),(0,_.jsx)(C,{title:m(e.title,{...e,childrenRef:h,close:s}),closable:l,onClose:s,onConfirm:i,onCancel:a,footerButtons:m(t,{...e,close:s}),disabledScroller:u,footer:m(r,{...e,childrenRef:h,close:s}),targetProps:Object.assign({},e,{childrenRef:h,close:s}),children:(0,_.jsx)(f,{rightSpan:d,options:m(c,{...e,childrenRef:h,close:s}),children:m(p,{...e,childrenRef:h,close:s})})}));return"function"===typeof o?o(g):g({})},j=e=>{let{children:o,rightOptions:t,rightSpan:n,footer:l,footerButtons:s,className:d,size:m,title:u,onClose:h,onConfirm:p,onCancel:f,closable:g,disabledScroller:b,withDecorator:C,childrenRef:j,...Y}=e;return{...Y,icon:null,centered:!0,title:null,maskClosable:!!Y.hasOwnProperty("maskClosable")&&Y.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:h,className:i()(d,a.modal,a[m],{[a["right-options-modal"]]:t}),...y(m,!(null===l&&!s)),children:(0,_.jsx)(c.IntlProvider,{importMessages:r,moduleName:"Modal",children:x({withDecorator:C,title:u,closable:g,onClose:h,onConfirm:p,onCancel:f,footer:l,footerButtons:s,rightOptions:t,rightSpan:n,disabledScroller:b,children:o,childrenRef:j})})}},Y=e=>{const o=(0,n.useRef)(null);return(0,_.jsx)(l.Modal,{...j(Object.assign({},e,{childrenRef:o}))})};Y.defaultProps={size:"default"};const A=()=>{const{modal:e}=l.App.useApp(),o=(0,n.useRef)(null);return t=>{const n={},{children:l,...s}=j({onClose:()=>n.close(),childrenRef:o,...t}),{destroy:i}=e.info({...s,content:l});return n.close=i,n}},w=()=>{const{modal:e}=l.App.useApp();return o=>{const t={},{type:n,icon:s,title:r,danger:c,wrapClassName:m,message:u,iconSetting:h={},confirmType:p="info",...f}={onClose:()=>t.close(),maskClosable:!1,...o},g=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},h);if(e[n]){const{destroy:o}=e[n]({...f,icon:null,wrapClassName:i()(a["confirm-modal-wrap"],m,{[a["is-danger"]]:c}),title:(0,_.jsx)(l.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:r&&(0,_.jsxs)(l.Space,{size:0,align:"start",className:a.title,children:[c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?p:n}`),type:s||g["confirm"===n?p:n]}):null,r]})}),content:(0,_.jsxs)(l.Space,{size:0,align:"start",className:i()(a.content,{[a["has-title"]]:r}),children:[!r&&c?(0,_.jsx)(d.default,{className:i()("title-icon",`title-icon-${"confirm"===n?p:n}`),type:s||g["confirm"===n?p:n]}):null,u]})});t.close=o}return t}},N=Y,k=e=>{let{items:o,className:t,activeKey:n,withDecorator:s,defaultActiveKey:a,onChange:r,...c}=e;return{...c,className:i()(t,"tabs-modal"),withDecorator:e=>{const t=t=>(0,_.jsx)(l.Tabs,{items:o.map((o=>{let{withDecorator:n,...l}=o;return Object.assign({},l,{children:"function"===typeof n?n((o=>e(Object.assign({},t,o,{children:l.children})))):e(Object.assign({},t,{children:l.children}))})})),destroyInactiveTabPane:!0,activeKey:n,defaultActiveKey:a,onChange:r});return"function"===typeof s?s(t):t()},children:e=>{let{children:o,...t}=e;return"function"===typeof o?o(t):o}}},v=e=>(0,_.jsx)(N,{...k(e)}),P=()=>{const e=A();return o=>e(k(o))};var S=t(73025);const M=e=>{const o=P();return e.api?(0,_.jsx)(S.A,{...e,modalFunc:o}):(0,_.jsx)(l.Button,{...e,onClick:()=>{o(e.modalProps)}})},B=e=>{const o=A();if(!e.api){const{modalProps:t,...n}=e;return(0,_.jsx)(l.Button,{...n,onClick:()=>{o(t)}})}return(0,_.jsx)(S.A,{...e,modalFunc:o})}},46733:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5600.eef952fa.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5873,9034,7790,4912],{58407:(e,t,s)=>{"use strict";s.r(t),s.d(t,{ConfirmLink:()=>v,ConfirmText:()=>h,default:()=>_,withConfirm:()=>x});s(73884);var n=s(55199);const i=e=>({"en-US":()=>s.e(3275).then(s.bind(s,63275)),"zh-CN":()=>s.e(5181).then(s.bind(s,25181))}[e]());var a=s(64671),l=s(58609),r=s(3382),o=s(83136),c=s.n(o);const d="style_overlay__99t5t__AYubY",u="style_is-danger__gxyAB__AYubY",p="style_title__EEPu2__AYubY",m="style_content__mZZg5__AYubY",f="style_has-title__5+PEt__AYubY";var g=s(70579);const x=e=>{const t=(0,l.createWithIntl)({moduleName:"ConfirmButton",importMessages:i})((t=>{let{title:s,message:i,isDelete:o=!0,onClick:x,onCancel:v,disabled:h,showCancel:_,cancelText:j,isModal:y,okText:b,placement:N,getContainer:S,...C}=t;const{formatMessage:Y}=(0,l.useIntl)({moduleName:"ConfirmButton"}),w=(0,r.useConfirmModal)();return y?(0,g.jsx)(e,{...C,disabled:h,onClick:e=>{w({type:"confirm",title:s,getContainer:S,danger:o,confirmType:o?"warning":"info",message:i||Y({id:"message"}),okText:b||Y(o?{id:"delete"}:{id:"confirm"}),cancelText:j||Y({id:"cancel"}),onCancel:v,onOk:x})}}):(0,g.jsx)(n.Popconfirm,{title:(0,g.jsxs)(n.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[s&&(0,g.jsxs)(n.Space,{size:0,align:"start",className:p,children:[o&&(0,g.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}),s]}),(0,g.jsxs)(n.Space,{size:0,align:"start",className:c()(m,{[f]:s}),children:[!s&&o?(0,g.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,i||Y({id:"message"})]})]}),placement:N,onConfirm:x,okButtonProps:{danger:o},onCancel:v,overlayClassName:c()(d,{[u]:o}),getPopupContainer:S,disabled:h,showCancel:_,cancelText:j,okText:b||Y(o?{id:"delete"}:{id:"confirm"}),children:(0,g.jsx)(e,{...C,disabled:h})})}));return t.defaultProps={isModal:!1,showCancel:!0},t},v=x(n.Typography.Link),h=x(n.Typography.Text),_=x(n.Button)},48731:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>x});var n=s(73884),i=s(87558),a=s(63908),l=s(15797),r=s.n(l),o=s(79686),c=s.n(o),d=s(70579);const u=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],p=(0,i.withFetch)((e=>{let{data:t,children:s}=e;return"function"===typeof s?s(t):s||(null===t||void 0===t?void 0:t.description)})),m=r()((e=>new Map(u.concat(Object.keys(Object.assign({},e)).map((t=>[t,e[t]])))))),f=e=>{let{loader:t,...s}=e;const{global:{enumsRef:i}}=(0,a.useGlobalContext)(),l=(0,n.useRef)(null);return(0,d.jsx)(p,{...s,loader:async function(){const e=m(await t(...arguments)),{params:s}=arguments.length<=0?void 0:arguments[0],{moduleName:n,name:a,force:r,locale:o}=s,d=async t=>!0!==r&&l.current===o&&i.current.get(t)||await(async()=>{const s=e.get(t),n=await(async()=>"function"===typeof s?new Map((await s({locale:o})).map((e=>[e.value.toString(),e]))):Array.isArray(s)?new Map(s.map((e=>[e.value.toString(),e]))):"object"===typeof s?new Map(Object.keys(s).map((e=>[e.toString(),s[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return i.current.set(t,n),l.current=o,n})();if(Array.isArray(n))return await Promise.all(n.map((e=>d(e).then((e=>Array.from(e.values()))))));const u=await d(n);return c()(a)?Array.from(u.values()):u.get(a.toString())}})},g=e=>{let{moduleName:t,name:s,force:n,children:i,...l}=e;const r=(0,a.usePreset)();return(0,d.jsx)(f,{...l,params:{moduleName:t,locale:null===r||void 0===r?void 0:r.locale,enums:null===r||void 0===r?void 0:r.enums,name:s,force:n},loader:e=>{let{params:t}=e;return t.enums},children:i})};g.defaultProps={force:!1};const x=g},24474:(e,t,s)=>{"use strict";s.r(t),s.d(t,{DragArea:()=>$,DragAreaOuter:()=>Z,DragButton:()=>V,FileUpload:()=>le,Title:()=>I,UploadButton:()=>X,UploadTips:()=>q,default:()=>se});var n=s(73884),i=s(33097),a=s.n(i),l=s(55199);const r="style_file-list-outer__wPhbb__AYubY",o="style_file-list-title__zXM5r__AYubY",c="style_container__P4RaF__AYubY",d="style_file-preview-inner__cvE72__AYubY",u="style_file-preview__M-Asq__AYubY",p="style_drag-area__Q+lm7__AYubY",m="style_upload-drag-close__u5o8W__AYubY",f="style_upload-drag-tips__z7puZ__AYubY",g="style_upload-drag-icon__sGGoS__AYubY",x="style_upload-drag-title__9Afmb__AYubY",v="style_upload-drag-text__o38vS__AYubY",h="style_title-group__8IJkS__AYubY",_="style_upload-btn__Q+Jxn__AYubY",j="style_total-count__z1fyd__AYubY",y="style_file-select__mHqyI__AYubY",b="style_file-name__QkvMn__AYubY",N="style_file-select-info__fOLiM__AYubY",S="style_file-select-option__AbDrD__AYubY";var C=s(75087),Y=s.n(C),w=s(74065),P=s.n(w),A=s(57469),F=s.n(A),L=s(64671),M=s(67390),T=s(58609),z=s(70579);const E=e=>{let{currentTab:t,setCurrentTab:s,previewMap:n,previewList:i,getPermission:a,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:d,children:u,maxWidth:p,getPopupContainer:m}=e;return(0,z.jsx)("div",{className:o,children:(0,z.jsxs)(l.Row,{align:"middle",justify:"space-between",wrap:!1,children:[(0,z.jsx)(l.Col,{children:(0,z.jsxs)(l.Space,{className:h,size:4,children:[(0,z.jsx)(l.Segmented,{value:t,onChange:s,options:[{label:(0,z.jsxs)(l.Space,{size:4,children:[(0,z.jsx)(L.default,{type:"icon-shitu-liebiao"}),(0,z.jsx)(T.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,z.jsxs)(l.Space,{size:4,children:[(0,z.jsx)(L.default,{type:"icon-shitu-yulan"}),(0,z.jsx)(T.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&n.get(r)&&(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(l.Select,{className:y,variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:m,children:i.map((e=>{let{filename:t,userName:s,date:n,ossId:i}=e;return(0,z.jsx)(l.Select.Option,{className:S,value:i,children:(0,z.jsxs)(l.Space,{direction:"vertical",children:[(0,z.jsxs)(l.Space,{size:4,align:"start",children:[(0,z.jsx)(Y(),{type:P()(t.split(".")),size:14}),(0,z.jsx)(l.Typography.Text,{className:b,ellipsis:!0,style:{"--max-width":`${p}px`},children:t})]}),s||n?(0,z.jsxs)(l.Space,{className:N,size:24,children:[(0,z.jsxs)("div",{children:[(0,z.jsx)(T.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",s]}),(0,z.jsxs)("div",{children:[(0,z.jsx)(T.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&F()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},i)}))}),(0,z.jsx)(M.OptionButtons,{hasPreview:!1,getPermission:a,item:n.get(r),apis:d}),(0,z.jsx)("div",{className:j,children:(0,z.jsx)(T.FormattedMessage,{id:"totalCount",values:{count:i.length},moduleName:"FileList"})})]})]})}),(0,z.jsx)(l.Col,{children:u})]})})};E.defaultProps={maxWidth:260};const I=E,D=e=>({"en-US":()=>s.e(3333).then(s.bind(s,63333)),"zh-CN":()=>s.e(8795).then(s.bind(s,48795))}[e]());var k=s(70720),O=s.n(k),U=s(83136),B=s.n(U);const R=(0,n.createContext)({}),{Provider:G}=R,W=()=>(0,n.useContext)(R);var H=s(29574),Q=s(81348);const V=e=>{let{children:t}=e;const{onOpenChange:s,getDragButtonEl:n}=W();return(0,z.jsx)("div",{ref:n,className:_,onClick:()=>{s((e=>!e))},children:(0,z.jsxs)(l.Typography.Text,{className:"ant-btn",children:[(0,z.jsx)(L.default,{type:"icon-tuozhuaishangchuan"}),t||(0,z.jsx)(T.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},X=e=>{let{children:t}=e;const{accept:s,onFileSelected:n}=W();return(0,z.jsxs)(H.AG,{className:_,accept:s,multiple:!0,onChange:n,children:[(0,z.jsx)(L.default,{type:"icon-tianjia"}),t]})},Z=e=>{let{title:t,accept:s,fileSize:i,maxLength:a,onFileSelected:o,children:d,className:u}=e;const[p,m]=(0,n.useState)(!1),f=(0,n.useRef)(null),g=O()((e=>{f.current&&(f.current.contains(e.target)||e.target===f.current||m(!1))}));return(0,z.jsx)(T.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,z.jsx)(G,{value:{open:p,onOpenChange:m,accept:s,fileSize:i,maxLength:a,onFileSelected:o,getDragButtonEl:e=>{f.current=e}},children:(0,z.jsxs)(l.Space,{className:r,direction:"vertical",children:[t,(0,z.jsx)("div",{className:B()(c,u),ref:g,onDragEnter:()=>{m(!0)},children:d})]})})})};Z.defaultProps={fileSize:20,accept:[".png",".jpg",".pdf",".docx",".doc"]};const q=e=>{let{icon:t,title:s,renderTips:n}=e;const{accept:i,fileSize:a,maxLength:l}=W(),r=n((0,T.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:i.map((e=>e.replace(/^\./,""))).join("\u3001"),size:a}),{fileSize:a,maxLength:l,accept:i});return(0,z.jsxs)("div",{className:B()(f,"upload-drag-tips"),children:[(0,z.jsx)("div",{className:g,children:t||(0,z.jsx)(L.default,{type:"icon-shangchuan",size:64})}),(0,z.jsx)("div",{className:x,children:s||(0,z.jsx)(T.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,z.jsx)("div",{className:v,children:r})]})};q.defaultProps={renderTips:e=>e};const J=e=>{let{children:t,className:s}=e;const{open:n,accept:i,onOpenChange:a,onFileSelected:r}=W();return n?(0,z.jsxs)("div",{className:B()(p,s),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;a(!1);const t=Array.from(e.dataTransfer.files).filter((e=>(0,Q.A)(e,i)));r(t)},onDragEnd:()=>{a(!1)},children:[(0,z.jsx)(l.Button,{className:m,type:"text",shape:"circle",size:"small",icon:(0,z.jsx)(L.default,{type:"icon-close-bold"}),onClick:()=>{a(!1)}}),t]}):null};J.defaultProps={children:(0,z.jsx)(q,{})};const $=J;var K=s(51714),ee=s(63908);const te=e=>{var t;let{maxLength:s,list:i,setList:r,defaultTab:o,defaultPreviewFileId:c,apis:p,getPermission:m,titleExtra:f,fileSize:g,accept:x,getPopupContainer:v}=e;const{apis:h}=(0,ee.usePreset)(),_=Object.assign({},h,p),{fileList:j,onFileSelected:y}=(0,H.lN)({maxLength:s,multiple:!0,value:i,onChange:r,concurrentCount:1,onAdd:()=>{N("list")},onSave:_.onSave,ossUpload:_.ossUpload}),[b,N]=(0,n.useState)(o),{formatMessage:S}=(0,T.useIntl)({moduleName:"FileList"}),{message:C}=l.App.useApp(),Y=(0,n.useMemo)((()=>new Map(i.map((e=>[e.ossId,e])))),[i]),[w,P]=(0,n.useState)(c||a()(i,"[0].ossId",null));(0,n.useEffect)((()=>{w&&Y.get(w)||P(a()(i,"[0].ossId",null))}),[i,Y,w]);const A={onPreview:e=>{P(e.ossId),N("preview")},onDelete:async e=>{_.onDelete&&await _.onDelete(e),r((t=>{const s=t.slice(0),n=t.findIndex((t=>{let{ossId:s}=t;return s===e.ossId}));return n>-1&&s.splice(n,1),s})),C.success(S({id:"successDelete"},{name:e.filename}))},onEdit:async e=>{let{formData:t,item:s}=e;_.onEdit&&await _.onEdit({formData:t,item:s}),r((e=>{const n=e.slice(0),i=e.findIndex((e=>{let{ossId:t}=e;return t===s.ossId}));return i>-1&&n.splice(i,1,Object.assign({},s,{filename:t.name})),n})),C.success(S({id:"successEditFileName"},{name:s.filename}))}},F="function"===typeof f?f({currentPreviewFileId:w,currentTab:b}):f;return(0,z.jsxs)(Z,{title:(0,z.jsx)(I,{currentTab:b,setCurrentTab:N,previewMap:Y,previewList:i,getPermission:m,currentPreviewFileId:w,setCurrentPreviewFileId:P,itemApis:A,getPopupContainer:v,children:(0,z.jsxs)(l.Space,{split:(0,z.jsx)(l.Divider,{type:"vertical"}),children:[F,m("add",{})?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(V,{children:(0,z.jsx)(T.FormattedMessage,{id:"dragText",moduleName:"FileList"})}),(0,z.jsx)(X,{children:(0,z.jsx)(T.FormattedMessage,{id:"uploadFile",moduleName:"FileList"})})]}):null]})}),fileSize:g,maxLength:s,onFileSelected:y,accept:x,children:["list"===b?(0,z.jsx)(M.List,{dataSource:[...j,...i],getPermission:m,apis:A}):null,"preview"===b?w?(0,z.jsx)("div",{className:d,children:(0,z.jsx)(K.default,{className:u,id:w,apis:_,originName:null===(t=Y.get(w))||void 0===t?void 0:t.filename})}):(0,z.jsx)(l.Empty,{image:l.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,z.jsx)($,{})]})};te.defaultProps={defaultTab:"list",titleExtra:null,accept:[".png",".jpg",".pdf",".docx",".doc"],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const se=e=>(0,z.jsx)(T.IntlProvider,{importMessages:D,moduleName:"FileList",children:(0,z.jsx)(te,{...e})});var ne=s(10986),ie=s.n(ne);const ae=e=>{let{maxLength:t,apis:s,getPermission:n,fileSize:i,accept:a,...r}=e;const{apis:o}=(0,ee.usePreset)(),c=Object.assign({},o,s),[d,u]=ie()(r,{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:p,onFileSelected:m}=(0,H.lN)({maxLength:t,multiple:!0,value:d,onChange:u,concurrentCount:1,onSave:c.onSave,ossUpload:c.ossUpload});return(0,z.jsxs)(Z,{title:(0,z.jsxs)(l.Row,{children:[(0,z.jsx)(l.Col,{flex:1}),(0,z.jsx)(l.Col,{children:(0,z.jsxs)(l.Space,{split:(0,z.jsx)(l.Divider,{type:"vertical"}),children:[(0,z.jsx)(V,{}),(0,z.jsx)(X,{children:"\u4e0a\u4f20"})]})})]}),fileSize:i,maxLength:t,onFileSelected:m,accept:a,children:[(0,z.jsx)(M.List,{dataSource:[...p,...d],getPermission:n,apis:c}),(0,z.jsx)($,{})]})};ae.defaultProps={accept:[".png",".jpg",".pdf",".docx",".doc"],defaultList:[],fileSize:20,maxLength:Number.MAX_VALUE,getPermission:()=>!0};const le=ae},94710:e=>{e.exports=function(e,t,s,n){for(var i=-1,a=null==e?0:e.length;++i<a;){var l=e[i];t(n,l,s(l),e)}return n}},32952:(e,t,s)=>{var n=s(45652);e.exports=function(e,t,s,i){return n(e,(function(e,n,a){t(i,e,s(e),a)})),i}},45652:(e,t,s)=>{var n=s(94664),i=s(76516)(n);e.exports=i},99910:e=>{e.exports=function(e,t){for(var s,n=-1,i=e.length;++n<i;){var a=t(e[n]);void 0!==a&&(s=void 0===s?a:s+a)}return s}},19449:(e,t,s)=>{var n=s(94710),i=s(32952),a=s(9096),l=s(54052);e.exports=function(e,t){return function(s,r){var o=l(s)?n:i,c=t?t():{};return o(s,e,a(r,2),c)}}},76516:(e,t,s)=>{var n=s(6571);e.exports=function(e,t){return function(s,i){if(null==s)return s;if(!n(s))return e(s,i);for(var a=s.length,l=t?a:-1,r=Object(s);(t?l--:++l<a)&&!1!==i(r[l],l,r););return s}}},26304:(e,t,s)=>{var n=s(53871),i=s(99140);e.exports=function(e,t,s){var a=null==e?0:e.length;return a?(t=s||void 0===t?1:i(t),n(e,0,(t=a-t)<0?0:t)):[]}},39835:(e,t,s)=>{var n=s(71775),i=s(19449),a=Object.prototype.hasOwnProperty,l=i((function(e,t,s){a.call(e,s)?e[s].push(t):n(e,s,[t])}));e.exports=l},56641:(e,t,s)=>{var n=s(26989);e.exports=function(e,t,s){var i=(s="function"==typeof s?s:void 0)?s(e,t):void 0;return void 0===i?n(e,t,void 0,s):!!i}},60262:(e,t,s)=>{var n=s(99910),i=s(33279);e.exports=function(e){return e&&e.length?n(e,i):0}},99140:(e,t,s)=>{var n=s(37303);e.exports=function(e){var t=n(e),s=t%1;return t===t?s?t-s:t:0}},17448:()=>{},71975:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=5873.8b7ebb83.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6611,9034,3142],{28148:(e,s,t)=>{t.r(s),t.d(s,{default:()=>b});const n={menu:"style_menu__gvIvn__AYubY","all-no-start-icon":"style_all-no-start-icon__CA+zR__AYubY","no-start-icon":"style_no-start-icon__LnC1S__AYubY","has-children":"style_has-children__m9tce__AYubY","has-children-node":"style_has-children-node__2bhEB__AYubY","is-root":"style_is-root__4hhOc__AYubY",title:"style_title__+Hcar__AYubY",active:"style_active__WU49K__AYubY","no-collapse":"style_no-collapse__aIZBM__AYubY","title-content":"style_title-content__cQXpK__AYubY",loading:"style_loading__1pU4P__AYubY"};var l=t(83136),a=t.n(l),r=t(55199),o=t(94679),i=t(29053),c=t(10986),d=t.n(c),u=t(64671),p=t(73884),h=t(18081),_=t.n(h),y=t(87558),m=t(70579);const g=e=>{const s=(0,o.useNavigate)(),{id:t,className:l,label:c,iconType:d,path:p,request:h,onClick:_,isOpen:g,isSelected:f,onOpenChange:b,children:K,fetchOptions:A,depth:O,onLoad:Y,allowCollapsed:v}=e,C=Array.isArray(K)&&K.length>0||A,{refresh:j,isLoading:k}=(0,y.useFetch)(Object.assign({},A,{auto:!v&&A,onRequestSuccess:e=>{Y(e)}}));return(0,m.jsx)(i.default,{request:h,children:(0,m.jsxs)("div",{className:a()(l,n["menu-item"]),children:[(0,m.jsxs)("div",{className:a()(n.title,{[n.active]:f,[n["has-children"]]:C,[n["no-collapse"]]:C&&!v,[n["no-start-icon"]]:!d,[n["is-root"]]:0===O}),onClick:n=>{n.stopPropagation(),C||!p?C||A?v&&(A&&j({}),b(!g)):null===_||void 0===_||_(t,e):s(p)},children:[d&&(0,m.jsx)(u.default,{type:d}),(0,m.jsx)("span",{className:n["title-content"],children:c}),C&&v&&(0,m.jsx)(u.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),C?!v||g&&K?(0,m.jsx)("div",{className:n["children-list"],children:K}):!v||g&&k?(0,m.jsx)("div",{className:n["children-list"],children:(0,m.jsx)(r.Spin,{className:n.loading,size:"small"})}):void 0:null]})})},f=e=>{let{className:s,allowCollapsed:t,pathMatch:l,...r}=e;const{pathname:i,search:c}=(0,o.useLocation)(),[u,h]=d()(r,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[y,f]=d()(r,{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:b,defaultOpenKeys:K,links:A,childrenKeys:O,hasStartIcon:Y,hasChildren:v}=(0,p.useMemo)((()=>{var e;const{items:s,childrenKeys:t,nodeMapping:n}=(e=>{const s={},t=[],n=(e,l)=>{const{parentKey:a,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},l);return Array.isArray(e)&&e.length>0?e.map(((e,l)=>{const o=`${e.key||`${"root"!==a?`${a}-`:""}node-${l}`}`;s[a]||(s[a]=[]),s[a].push(o);const i=n(e.children,{parentKey:o,depth:r+1});s[o]&&s[a].push(...s[o]);const c=Object.assign({},e,{key:o,parentKey:a,depth:r,children:i,originItem:e});return t[o]=c,c})):null};return{items:n(e),childrenKeys:s,nodeMapping:t}})(y);let l=!1,a=!1;const r=[],o=[];return null===t||void 0===t||null===(e=t.root)||void 0===e||e.forEach((e=>{const s=n[e];s.iconType&&(l=!0),s.path&&r.push({path:s.path,key:e}),Array.isArray(s.children)&&s.children.length>0&&(a=!0,o.push(s.key))})),{defaultOpenKeys:o,links:r,items:s,childrenKeys:t,hasStartIcon:l,hasChildren:a}}),[y]);(0,p.useEffect)((()=>{const e=A.find((e=>{let{path:s}=e;return"function"===typeof l?l(s,{pathname:i,search:c}):_()(i.replace(/[#,?].*/,""))===_()(s)||_()(i+c)===_()(s)}));e&&h(e.key)}),[A,i,c,h,l]);const[C,j]=d()(Object.assign({},r,{defaultOpenKeys:r.defaultOpenKeys||K}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),k=(0,p.useCallback)(((e,s)=>{const{parentKey:n,depth:l,selectedKey:a,openKeys:r,paths:o}=Object.assign({parentKey:null,depth:0,paths:[]},s);return Array.isArray(e)&&e.length>0?e.map((e=>{let{children:s,key:i,originItem:c,...d}=e;return(0,p.createElement)(g,{...Object.assign({},d),id:i,parentId:n,depth:l,allowCollapsed:t,isSelected:i===a||O[i]&&O[i].indexOf(a)>-1,onClick:h,onLoad:e=>{f((s=>{const t=s=>Array.isArray(s)&&s.length>0?s.map((s=>Object.assign({},s,{children:c===s?e:t(s.children)}))):null;return t(s)}))},isOpen:(r||[]).indexOf(i)>-1,key:i,onOpenChange:()=>{j((e=>{const s=e.slice(0);return e.indexOf(i)>-1?s.splice(e.indexOf(i),1):s.push(i),s}))}},k(s,{parentKey:n,depth:l+1,selectedKey:a,openKeys:r,paths:[...o,i]}))})):null}),[f,j,h,O,t]);return(0,m.jsx)("div",{className:a()(s,n.menu,{[n["all-no-start-icon"]]:!Y,[n["has-children-node"]]:v}),children:k(b,{selectedKey:u,openKeys:C})})};f.defaultProps={defaultItems:[],allowCollapsed:!0};const b=f},29053:(e,s,t)=>{t.r(s),t.d(s,{computedIsPass:()=>p,default:()=>m,usePermissions:()=>h,usePermissionsPass:()=>_});var n=t(73884),l=t(55199),a=t(33097),r=t.n(a),o=t(83136),i=t.n(o);const c="style_outer__vbHB9__AYubY";var d=t(63908),u=t(70579);const p=e=>{let{permissions:s,request:t}=e;return!(Array.isArray(t)&&t.length>0)||t.some((e=>(s||[]).indexOf(e)>-1))},h=()=>{const{global:e}=(0,d.useGlobalContext)(),{permissions:s,permissionsPath:t}=(0,d.usePreset)();return{permissions:e.permissions||s||t&&r()(e,t)||[]}},_=e=>{let{request:s}=e;const{permissions:t}=h();return p({permissions:t,request:s})},y=e=>{let{type:s,className:t,tagName:a,message:r,request:o,children:d,...p}=e;const h=_({request:o});return"function"===typeof d?d({isPass:h,type:s,request:o}):!0===h?d:"error"===s?(0,u.jsx)(l.Result,{status:"403",subTitle:r}):"tooltip"===s?(0,u.jsx)(l.Tooltip,{title:r,children:(0,n.createElement)(a,{...p,className:i()(c,t)},d)}):null};y.defaultProps={type:"hidden",tagName:"span",message:"\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458"};const m=y}}]);
|
|
2
|
-
//# sourceMappingURL=6611.1e7772f6.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[6915],{16915:(e,l,t)=>{t.r(l),t.d(l,{AdvancedFilter:()=>Be,AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>je,CityFilterItem:()=>be,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FilterItem:()=>w,FilterItemContainer:()=>Ke,FilterLines:()=>b,FilterValueDisplay:()=>y,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ye,NumberRangeFilterItem:()=>Ce,PopoverItem:()=>le,SearchInput:()=>Me,TreeFilterItem:()=>ye,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe,advancedFields:()=>Re,default:()=>Xe,fields:()=>a,getFilterValue:()=>Ae,useFilter:()=>v,withFieldItem:()=>z,withFilterValue:()=>Ie});var a={};t.r(a),t.d(a,{AdvancedSelectFilterItem:()=>he,CascaderFilterItem:()=>je,CityFilterItem:()=>be,DatePickerFilterItem:()=>de,DateRangePickerFilterItem:()=>me,FunctionSelectFilterItem:()=>ge,IndustrySelectFilterItem:()=>xe,InputFilterItem:()=>Ye,NumberRangeFilterItem:()=>Ce,TreeFilterItem:()=>ye,TypeDateRangePickerFilterItem:()=>ve,UserFilterItem:()=>fe});var n=t(83136),s=t.n(n),i=t(73884),r=t(64671);const o={filter:"style_filter__Xml45__AYubY","filter-item-icon":"style_filter-item-icon__kVCRK__AYubY","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__AYubY","filter-title":"style_filter-title__PlIpS__AYubY","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__AYubY","ad-filter-title":"style_ad-filter-title__5-OzD__AYubY","ad-filter-line":"style_ad-filter-line__ga6UH__AYubY","filter-line":"style_filter-line__E+cRh__AYubY","clean-btn":"style_clean-btn__oSEvm__AYubY","filter-item":"style_filter-item__Q2ncE__AYubY","un-expand":"style_un-expand__4PFY8__AYubY","ad-filter-selected":"style_ad-filter-selected__KbLfG__AYubY","filter-label":"style_filter-label__qu26i__AYubY","filter-item-wrap":"style_filter-item-wrap__rOq7H__AYubY",option:"style_option__rd5Qo__AYubY","is-active":"style_is-active__OArQI__AYubY","is-visited":"style_is-visited__gZ5ni__AYubY","un-expand-shadow":"style_un-expand-shadow__fj92e__AYubY","filter-item-label":"style_filter-item-label__C781J__AYubY","filter-item-field":"style_filter-item-field__Ltfr8__AYubY","filter-drop-tag":"style_filter-drop-tag__DD-2P__AYubY","filter-list-tag":"style_filter-list-tag__Qt5hA__AYubY","filter-tag":"style_filter-tag__dUGfu__AYubY","filter-tag-value":"style_filter-tag-value__p-SFv__AYubY","pop-util-content":"style_pop-util-content__bx5zP__AYubY","pop-util-overlay":"style_pop-util-overlay__LEASt__AYubY","pop-util-footer":"style_pop-util-footer__Xat1s__AYubY","pop-util-text":"style_pop-util-text__pzeUy__AYubY","filter-item-inner":"style_filter-item-inner__LVXgh__AYubY","filter-item-text":"style_filter-item-text__MA8tU__AYubY","filter-item-number-range":"style_filter-item-number-range__U-OgQ__AYubY","filter-item-custom":"style_filter-item-custom__UusRa__AYubY","filter-item-custom-active":"style_filter-item-custom-active__uFtny__AYubY","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__AYubY","filter-item-number-input":"style_filter-item-number-input__YPO6K__AYubY","range-picker":"style_range-picker__c6ngq__AYubY","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__AYubY","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__AYubY","filter-advanced":"style_filter-advanced__4cyDy__AYubY","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__AYubY","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__AYubY","filter-advanced-more":"style_filter-advanced-more__OFXq4__AYubY"};var u=t(55199),c=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,i.createContext)({}),{Provider:p}=m,v=()=>(0,i.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)=>{if("function"===typeof e)return e((e=>({index:l,value:a?h()(a.get(null===e||void 0===e?void 0:e.name),"value"):null===e||void 0===e?void 0:e.value,onChange:n?l=>n({name:null===e||void 0===e?void 0:e.name,label:null===e||void 0===e?void 0:e.label,value:l}):null===e||void 0===e?void 0:e.onChange})));const t=e.type;return(0,f.jsx)(t,{...Object.assign({},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,i.useState)(!1);return(0,f.jsxs)(c.IntlProvider,{importMessages:d,moduleName:"Filter",children:[(0,f.jsxs)(u.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)(c.FormattedMessage,{id:"filterText",moduleName:"Filter",defaultMessage:"\u7b5b\u9009"})}),(0,f.jsxs)(u.Row,{justify:"space-between",wrap:!1,align:"top",children:[(0,f.jsx)(u.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)(u.Space,{size:4,className:s()(o["filter-item"],o.option),onClick:()=>{h((e=>!e))},children:[(0,f.jsx)(c.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"}),(0,f.jsx)(r.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-down"})]}):null},l)))}),(0,f.jsx)(u.Col,{children:m})]})]}),(0,f.jsx)(u.Space,{className:s()(o["filter-title"],"filter-title-wrap"),align:"center",size:16,children:p}),(0,f.jsxs)(u.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)(c.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)(u.Space,{size:4,className:s()(o["un-expand-shadow"]),children:(0,f.jsxs)(u.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,f.jsx)(c.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,f.jsx)(r.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})}),(0,f.jsx)(u.Space,{size:4,className:s()(o["un-expand"]),onClick:()=>{h((e=>!e))},children:(0,f.jsxs)(u.Space,{size:4,className:s()(o.option,o["filter-item"]),children:[(0,f.jsx)(c.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,f.jsx)(r.default,{className:o["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})})]})},l)))})]})]})};x.defaultProps={displayLine:1};const b=x;var j=t(62716);const y=e=>{let{value:l,extraExpand:t,onChange:a}=e;return(0,f.jsx)(c.IntlProvider,{importMessages:d,moduleName:"Filter",children:(0,f.jsxs)(u.Space,{className:o["filter-title"],align:"top",size:16,children:[(0,f.jsx)("span",{className:o["filter-label"],children:(0,f.jsx)(c.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:i}=e;return(0,f.jsx)(j.default,{type:"filterResult",filterName:s,text:Array.isArray(i)?i.map((e=>e.label)).join("\uff0c"):i.label,closable:!0,onClose:()=>{const e=l.slice(0);e.splice(t,1),a(e)}},n)})),(0,f.jsxs)(u.Space,{size:4,className:s()(o["un-expand-shadow"]),children:[t,(0,f.jsx)(u.Button,{size:"small",children:(0,f.jsx)(c.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]}),(0,f.jsxs)(u.Space,{size:4,className:s()(o["un-expand"]),children:[t,(0,f.jsx)(u.Button,{size:"small",onClick:()=>{a([])},children:(0,f.jsx)(c.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]})]})]})})};var Y=t(10986),C=t.n(Y),F=t(41740),N=t.n(F),A=t(36);const I=e=>{let{children:l,className:t,...a}=e;const[n,r]=C()(a),u=(0,i.useMemo)((()=>n.filter((e=>(0,A.isNotEmpty)(e.value)))),[n]),m=(0,i.useMemo)((()=>new Map(u.map((e=>[e.name,e])))),[u]);return(0,f.jsx)(c.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===r||void 0===r||r(Array.from(l.values()))}},children:(0,f.jsx)("div",{className:s()(o.filter,t),children:l({props:a,value:u,onChange:r})})})})};I.defaultProps={defaultValue:[]};const M=I,k=e=>(0,f.jsx)(M,{...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)(b,{...s}),t&&t.length>0&&(0,f.jsx)(y,{value:t,onChange:a,extraExpand:n})]})}});k.defaultProps={defaultValue:[]};const S=k;var P=t(55490);const w=e=>{let{open:l,active:t,label:a,children:n}=e;return(0,f.jsx)(u.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)(u.Space,{className:o["filter-item-label"],size:4,children:[(0,f.jsx)("div",{children:a}),(0,f.jsx)(r.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,...r}=l;const[u,c]=(0,i.useState)(!1);return(0,f.jsx)(w,{label:s,open:u,active:(0,P.A)(t),children:(0,f.jsx)(e,{allowClear:!1,...r,className:o["filter-item-inner"],value:"function"===typeof(null===n||void 0===n?void 0:n.input)?n.input(t):t,onChange:"function"===typeof(null===n||void 0===n?void 0:n.output)?function(){return a(n.output(...arguments))}:a,valueType:"all",onOpenChange:c})})};var D=t(12392),O=t(41654),T=t(93761),V=t(53392),L=t(45776),$=t(30509),R=t(96418),E=t.n(R);const U="style_scroll-loader__Rcuti__AYubY",B="style_is-popup__pCRv2__AYubY";var K=t(17342),X=t(1488),q=t.n(X),Q=t(15797),H=t.n(Q);const G=$.A.useContext,J=e=>{let{value:l,setValue:t,size:a}=e;const{fetchApi:n,props:r}=G(),o=E()(r.dataFormat),{single:c,isPopup:d,searchPlaceholder:m,...p}=r,v=(0,i.useRef)(r.fieldNames);v.current=r.fieldNames;const _=n.data,{treeData:h}=(0,i.useMemo)((()=>o(_,{fieldNames:v.current})),[o,_]);return(0,f.jsx)(u.Space,{direction:"vertical",size:16,children:(0,f.jsx)(K.A,{className:s()(U,{[B]:r.isPopup}),children:(0,f.jsx)(u.Tree,{...q()(p,["value","valueType","children","dataFormat"]),size:a,checkable:!c,treeData:h,onCheck:t,checkedKeys:l,onSelect:c?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:c?l:void 0})})})},Z=e=>{let{maxLength:l,dataFormat:t,...a}=e;return(0,f.jsx)($.A,{...a,dataFormat:e=>t(e,{fieldNames:a.fieldNames}),children:e=>{let{value:t,setValue:a}=e;return(0,f.jsx)(J,{size:l,value:t,setValue:a})}})};Z.defaultProps={searchPlaceholder:"\u641c\u7d22",maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,checkStrictly:!1,dataFormat:(e,l)=>{let{fieldNames:t}=l;const a=H()(((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")],i=e[h()(t,"children","children")];a.push({id:l,value:l,label:s}),n(i)}))};return n(e),a}));return{treeData:e,list:a(e,{fieldNames:t})}}};const W=Z,ee=e=>{let{value:l,label:t,onValidate:a,overlayClassName:n,placement:r,onOpenChange:d,onChange:m,children:p}=e;const[v,_]=(0,i.useState)(l),[h,g]=(0,i.useState)(!1),x=(0,i.useMemo)((()=>a&&!a(v)),[a,v]);return(0,f.jsx)(u.Popover,{open:h,trigger:"click",placement:r,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)(u.Row,{className:o["pop-util-footer"],justify:"end",gutter:8,children:[(0,f.jsx)(u.Col,{children:(0,f.jsx)(u.Button,{size:"small",onClick:()=>{g(!1),d&&d(!1)},children:(0,f.jsx)(c.FormattedMessage,{id:"cancelText",moduleName:"Filter",defaultMessage:"\u53d6\u6d88"})})}),(0,f.jsx)(u.Col,{children:(0,f.jsx)(u.Button,{size:"small",type:"primary",disabled:x,onClick:()=>{g(!1),d&&d(!1),m&&m(v)},children:(0,f.jsx)(c.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:i,placement:r,onOpenChange:c,...d}=e;return(0,f.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:i,placement:r,onOpenChange:c,children:e=>{let{value:t,onChange:a}=e;return(0,f.jsx)(u.Input,{...d,placeholder:n||`\u8bf7\u8f93\u5165${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])?`${e[0]}-${e[1]}${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,ie=e=>{let{label:l,value:t,onChange:a,placeholder:n,onValidate:s,overlayClassName:i,placement:r,onOpenChange:d,unit:m,...p}=e;const{formatMessage:v}=(0,c.useIntl)({moduleName:"Filter"});return(0,f.jsx)(le,{label:l,value:t,onChange:a,onValidate:s,overlayClassName:i,placement:r,onOpenChange:d,children:e=>{let{value:t,onChange:a}=e;return(0,f.jsxs)(u.Space.Compact,{children:[(0,f.jsx)(u.InputNumber,{...p,placeholder:n||`${v({id:"pleaseInput"})}${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)(u.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),(0,f.jsx)(u.InputNumber,{...p,placeholder:n||`${v({id:"pleaseInput"})}${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)(u.Input,{style:{width:50,borderLeft:0},value:m,disabled:!0})]})}})};ie.defaultProps={onValidate:e=>{const l=h()(e,"value");return!(l&&ne()(l[0])&&ne()(l[1])&&l[1]<l[0])}};const re=ie;var oe=t(57469),ue=t.n(oe);const ce=z((e=>{let{value:l,onChange:t,picker:a,...n}=e;return(0,f.jsx)(u.DatePicker,{...n,picker:a,value:l&&ue()(l.value),onChange:e=>{const{format:l}=Object.assign({format:"YYYY-MM-DD"},n);e&&t({label:"date"!==a?`${e.startOf(a).format(l)}~${e.endOf(a).format(l)}`:e.format(l),value:new Date(e.startOf(a).valueOf())})}})}));ce.defaultProps="date";const de=ce,me=z((e=>{let{value:l,onChange:t,...a}=e;return(0,f.jsx)(u.DatePicker.RangePicker,{...a,allowEmpty:[!1,!1],value:l&&Array.isArray(l.value)&&2===l.value.length&&l.value.map((e=>ue()(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]?`${ue()(a[0]).format(l)}\u4ee5\u540e`:!a[0]&&a[1]?`${ue()(a[1]).format(l)}\u4ee5\u524d`:a[0]&&a[1]?`${ue()(a[0]).format(l)}~${ue()(a[1]).format(l)}`:"",value:e})}})}})},_e=e=>l=>{let{placeholder:t,label:a,...n}=l;return(0,f.jsx)(c.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(O.A),xe=z(V.A),be=z(T.Ay),je=z(L.Ay),ye=z(W),Ye=_e(te),Ce=_e(re);var Fe=t(22717),Ne=t.n(Fe);const Ae=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})):null===a||void 0===a?void 0:a.value}),{}),Ie=e=>l=>{let{name:t,label:a,...n}=l;const{value:s,onChange:i}=v();return(0,f.jsx)(e,{...n,label:a,onChange:i?e=>i({name:t,label:a,value:e}):n.onChange,value:s?h()(s.get(t),"value"):n.value})},Me=Ie((e=>{let{label:l,onChange:t,value:a,...n}=e;return(0,f.jsx)(A.SearchInput,{...n,placeholder:`\u8bf7\u8f93\u5165${l}`,value:(null===a||void 0===a?void 0:a.value)||"",onSearch:e=>{t({label:e,value:e})}})}));var ke=t(63908);const{CheckableTag:Se}=u.Tag,Pe=e=>{let{value:l,onChange:t,single:a,maxLength:n,addressApi:s,...r}=e;const{message:d}=u.App.useApp(),{locale:m}=(0,ke.usePreset)(),{formatMessage:p}=(0,c.useIntl)({moduleName:"Filter"}),v=(0,i.useMemo)((()=>s.getChinaHotCities()),[s]);return(0,f.jsxs)(f.Fragment,{children:[v.map((e=>{const{code:s}=e,i=(0,T.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:i}:null);const r=(l||[]).slice(0);e?r.push({value:s,label:i}):(()=>{const e=r.findIndex((e=>{let{value:l}=e;return l===s}));r.splice(e,1)})(),r.length>n?d.error(p({id:"maxSelectedCount"},{count:n})):t(r)},children:i},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)(c.FormattedMessage,{id:"otherText",moduleName:"Filter",defaultMessage:"\u5176\u4ed6"}),(0,f.jsx)(T.Ay,{...r,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,T.DF)(Pe);var ze=t(19853),De=t.n(ze);const{CheckableTag:Oe}=u.Tag,Te=e=>{let{value:l,onChange:t,label:n,single:s,maxLength:i,items:r,custom:o}=e;const{message:d}=u.App.useApp(),{formatMessage:m}=(0,c.useIntl)({moduleName:"Filter"});return(0,f.jsxs)(f.Fragment,{children:[r.map((e=>{let{label:a,value:n}=e;return(0,f.jsx)(Oe,{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 r=(l||[]).slice(0);e?r.push({value:n,label:a}):(()=>{const e=r.find((e=>{let{value:l}=e;return De()(n,l)}));r.splice(e,1)})(),r.length>i?d.error(m({id:"maxSelectedCount"},{count:i})):t(r)},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:`${m({id:"pleaseInput"})}${n}`,onChange:t}):null})()]})};Te.defaultProps={single:!1,maxLength:5,items:[]};const Ve=Te;var Le=t(78491),$e=t.n(Le);const Re={CityFilterItem:we,ListFilterItem:Ve,InputFilterItem:e=>{let{value:l,label:t,onChange:a,...n}=e;const s=null===l||void 0===l?void 0:l.value,[r,o]=(0,i.useState)(s||""),[d,m]=(0,i.useState)(!1),{formatMessage:p}=(0,c.useIntl)({moduleName:"Filter"}),v=()=>{a(r?{label:r,value:r}:null)},_=$e()((()=>{m(!1),v()})),h=(0,i.useRef)("");return h.current=r,(0,i.useEffect)((()=>{s!==h.current&&o(s)}),[s]),(0,f.jsx)("span",{ref:_,children:(0,f.jsxs)(u.Space.Compact,{children:[(0,f.jsx)(u.Input,{placeholder:`${p({id:"pleaseInput"})}${t}`,...n,size:"small",value:r,onFocus:()=>{m(!0)},onChange:e=>{o(e.target.value)},onPressEnter:v}),d&&(0,f.jsx)(u.Button,{size:"small",type:"primary",onClick:v,children:p({id:"search"})})]})})}},Ee=e=>{let{list:l}=e;const{value:t,onChange:a}=v();return(0,f.jsx)(u.Flex,{gap:8,children:l.map(((e,l)=>{const n=e.type;return(0,f.jsxs)(u.Flex,{gap:16,align:"center",children:[(0,f.jsxs)("div",{className:o["filter-label"],children:[e.props.label,":"]}),(0,f.jsx)(u.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)}))})},Ue=(0,c.createWithIntl)({importMessages:d,moduleName:"Filter"})((e=>{const{formatMessage:l}=(0,c.useIntl)({moduleName:"Filter"});return(0,f.jsx)(M,{...e,children:e=>{let{value:t,onChange:a,props:n}=e;const{list:s,more:i}=n;return(0,f.jsxs)("div",{children:[(0,f.jsxs)(u.Flex,{gap:8,vertical:!0,className:o["filter-advanced"],children:[s.map(((e,l)=>(0,f.jsx)(Ee,{list:e},l))),i&&(0,f.jsx)(b,{className:o["filter-advanced-more"],label:`${l({id:"moreText"})}:`,list:[i]})]}),t&&t.length>0&&(0,f.jsx)(y,{value:t,onChange:a})]})}})}));Ue.fields=Re;const Be=Ue,Ke=e=>{let{children:l,...t}=e;return l(t)};S.fields=a,S.getFilterValue=Ae,S.useFilter=v,S.SearchInput=Me,S.withFilterValue=Ie;const Xe=S}}]);
|
|
2
|
-
//# sourceMappingURL=6915.4ba7898a.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7121,1151,9034],{62716:(t,e,s)=>{"use strict";s.r(e),s.d(e,{default:()=>g});var a=s(73884),r=s(83136),l=s.n(r);const o={"state-tag":"style_state-tag__Kx27z__AYubY","state-result-tag":"style_state-result-tag__CssDz__AYubY","state-skill-tag":"style_state-skill-tag__k0bQE__AYubY","event-tag":"style_event-tag__cg6SE__AYubY","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__AYubY","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__AYubY","state-tag-filterResult":"style_state-tag-filterResult__KTkot__AYubY","show-bg":"style_show-bg__OcL+R__AYubY","tag-text":"style_tag-text__JHCt+__AYubY","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__AYubY"};var _=s(55199),n=s(70579);const u={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},c=t=>{let{showBorder:e,text:s,type:r,showBackground:c,className:g,filterName:i,...d}=t;const p=(0,a.useMemo)((()=>{var t,e;return{color:(null===u||void 0===u||null===(t=u[r])||void 0===t?void 0:t.color)||u[r],borderColor:(null===u||void 0===u||null===(e=u[r])||void 0===e?void 0:e.borderColor)||u[r]}}),[r]);return(0,n.jsxs)(_.Space,{"data-testid":"components-core-state-tag",className:l()(o["state-tag-wrapper"],"filterResult"===r?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[i?(0,n.jsxs)("span",{className:o["state-tag-filter-name"],children:[i,":"]}):null,(0,n.jsx)(_.Tag,{color:p.color,...d,style:{background:c?p.color+"0F":"none",color:p.color,border:e?`1px solid ${p.borderColor}`:"none"},className:l()(o["state-tag"],g,"result"===r?o["state-result-tag"]:"","skill"===r?o["state-skill-tag"]:"",o[`state-tag-${r}`],c?o["show-bg"]:"",e?o["show-border"]:"",null!==d&&void 0!==d&&d.onClick?o["event-tag"]:""),children:(0,n.jsx)("span",{className:o["tag-text"],children:s})})]})};c.defaultProps={color:"#666666",type:"default",showBorder:!1,showBackground:!0,text:"",className:""};const g=c},79160:(t,e,s)=>{var a=s(16913),r=s(22761);t.exports=function(t){return"number"==typeof t||r(t)&&"[object Number]"==a(t)}}}]);
|
|
2
|
-
//# sourceMappingURL=7121.671101fa.chunk.js.map
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 7227.d7fb7aaa.chunk.js.LICENSE.txt */
|
|
2
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7227],{87227:(e,t,r)=>{r.r(t),r.d(t,{default:()=>l});var a=r(55199),o=r(83136),n=r.n(o);const s={"state-bar":"style_state-bar__3jfis__AYubY","has-children":"style_has-children__oQDqU__AYubY","tab-tab-control":"style_tab-tab-control__SopeO__AYubY","tab-radio-control":"style_tab-radio-control__R8X6-__AYubY","tab-step-control":"style_tab-step-control__EQaCl__AYubY","inner-state-bar":"style_inner-state-bar__lWmOz__AYubY"};var _=r(70579);const l=e=>{let{className:t,type:r="tab",stateOption:o=[],isInner:l,...c}=e;return(0,_.jsx)(a.Tabs,{...c,"data-testid":"components-core-state-bar",className:n()(s["state-bar"],s[`tab-${r}-control`],t,{[s["inner-state-bar"]]:l,[s["has-children"]]:o.some((e=>!!e.children))}),style:{"--total-count":o.length},animated:!1,items:o.map((e=>{let{tab:t,label:r,key:a,...o}=e;return{label:t||r,key:a,...o}}))})}},51153:(e,t,r)=>{var a=r(73884),o=Symbol.for("react.element"),n=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,_=a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var a,n={},c=null,b=null;for(a in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(b=t.ref),t)s.call(t,a)&&!l.hasOwnProperty(a)&&(n[a]=t[a]);if(e&&e.defaultProps)for(a in t=e.defaultProps)void 0===n[a]&&(n[a]=t[a]);return{$$typeof:o,type:e,key:c,ref:b,props:n,_owner:_.current}}t.Fragment=n,t.jsx=c,t.jsxs=c},70579:(e,t,r)=>{e.exports=r(51153)}}]);
|
|
3
|
-
//# sourceMappingURL=7227.d7fb7aaa.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[7790,9034,4912],{58407:(e,n,t)=>{"use strict";t.r(n),t.d(n,{ConfirmLink:()=>h,ConfirmText:()=>y,default:()=>_,withConfirm:()=>g});t(73884);var r=t(55199);const o=e=>({"en-US":()=>t.e(3275).then(t.bind(t,63275)),"zh-CN":()=>t.e(5181).then(t.bind(t,25181))}[e]());var a=t(64671),i=t(58609),s=t(3382),l=t(83136),c=t.n(l);const u="style_overlay__99t5t__AYubY",d="style_is-danger__gxyAB__AYubY",p="style_title__EEPu2__AYubY",v="style_content__mZZg5__AYubY",m="style_has-title__5+PEt__AYubY";var f=t(70579);const g=e=>{const n=(0,i.createWithIntl)({moduleName:"ConfirmButton",importMessages:o})((n=>{let{title:t,message:o,isDelete:l=!0,onClick:g,onCancel:h,disabled:y,showCancel:_,cancelText:x,isModal:C,okText:b,placement:w,getContainer:k,...j}=n;const{formatMessage:N}=(0,i.useIntl)({moduleName:"ConfirmButton"}),A=(0,s.useConfirmModal)();return C?(0,f.jsx)(e,{...j,disabled:y,onClick:e=>{A({type:"confirm",title:t,getContainer:k,danger:l,confirmType:l?"warning":"info",message:o||N({id:"message"}),okText:b||N(l?{id:"delete"}:{id:"confirm"}),cancelText:x||N({id:"cancel"}),onCancel:h,onOk:g})}}):(0,f.jsx)(r.Popconfirm,{title:(0,f.jsxs)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:[t&&(0,f.jsxs)(r.Space,{size:0,align:"start",className:p,children:[l&&(0,f.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}),t]}),(0,f.jsxs)(r.Space,{size:0,align:"start",className:c()(v,{[m]:t}),children:[!t&&l?(0,f.jsx)(a.default,{className:"title-icon",type:"icon-tishi-tianchong"}):null,o||N({id:"message"})]})]}),placement:w,onConfirm:g,okButtonProps:{danger:l},onCancel:h,overlayClassName:c()(u,{[d]:l}),getPopupContainer:k,disabled:y,showCancel:_,cancelText:x,okText:b||N(l?{id:"delete"}:{id:"confirm"}),children:(0,f.jsx)(e,{...j,disabled:y})})}));return n.defaultProps={isModal:!1,showCancel:!0},n},h=g(r.Typography.Link),y=g(r.Typography.Text),_=g(r.Button)},48731:(e,n,t)=>{"use strict";t.r(n),t.d(n,{default:()=>g});var r=t(73884),o=t(87558),a=t(63908),i=t(15797),s=t.n(i),l=t(79686),c=t.n(l),u=t(70579);const d=[["gender",()=>[{value:"M",description:"\u7537"},{value:"F",description:"\u5973"}]],["marital",()=>[{description:"\u5df2\u5a5a",value:"Y"},{description:"\u672a\u5a5a",value:"N"}]],["confirm",()=>[{description:"\u662f",value:"Y"},{description:"\u5426",value:"N"}]],["political",()=>[{description:"\u4e2d\u5171\u515a\u5458",value:"\u4e2d\u5171\u515a\u5458"},{description:"\u5171\u9752\u56e2\u5458",value:"\u5171\u9752\u56e2\u5458"},{description:"\u7fa4\u4f17",value:"\u7fa4\u4f17"},{description:"\u5176\u4ed6\u515a\u6d3e",value:"\u5176\u4ed6\u515a\u6d3e"}]],["phoneStateEnum",()=>[{value:0,description:"\u7a7a\u53f7"},{value:1,description:"\u5b9e\u53f7"},{value:2,description:"\u505c\u673a"},{value:3,description:"\u5e93\u65e0"},{value:4,description:"\u6c89\u9ed8\u53f7"},{value:5,description:"\u98ce\u9669\u53f7"}]],["degreeEnum",()=>[{description:"\u521d\u4e2d",value:10},{description:"\u4e2d\u4e13",value:20},{description:"\u9ad8\u4e2d",value:30},{description:"\u5927\u4e13",value:40},{description:"\u672c\u79d1",value:50},{description:"\u7855\u58eb\u7814\u7a76\u751f",value:60},{description:"\u535a\u58eb\u7814\u7a76\u751f",value:70},{description:"\u535a\u58eb\u540e",value:75},{description:"\u5b66\u5386\u4e0d\u9650",value:999}]]],p=(0,o.withFetch)((e=>{let{data:n,children:t}=e;return"function"===typeof t?t(n):t||(null===n||void 0===n?void 0:n.description)})),v=s()((e=>new Map(d.concat(Object.keys(Object.assign({},e)).map((n=>[n,e[n]])))))),m=e=>{let{loader:n,...t}=e;const{global:{enumsRef:o}}=(0,a.useGlobalContext)(),i=(0,r.useRef)(null);return(0,u.jsx)(p,{...t,loader:async function(){const e=v(await n(...arguments)),{params:t}=arguments.length<=0?void 0:arguments[0],{moduleName:r,name:a,force:s,locale:l}=t,u=async n=>!0!==s&&i.current===l&&o.current.get(n)||await(async()=>{const t=e.get(n),r=await(async()=>"function"===typeof t?new Map((await t({locale:l})).map((e=>[e.value.toString(),e]))):Array.isArray(t)?new Map(t.map((e=>[e.value.toString(),e]))):"object"===typeof t?new Map(Object.keys(t).map((e=>[e.toString(),t[e]]))):(console.warn("\u679a\u4e3e\u503cloader\u7684\u8bbe\u7f6e\u53ef\u80fd\u4e0d\u6b63\u786e"),new Map))();return o.current.set(n,r),i.current=l,r})();if(Array.isArray(r))return await Promise.all(r.map((e=>u(e).then((e=>Array.from(e.values()))))));const d=await u(r);return c()(a)?Array.from(d.values()):d.get(a.toString())}})},f=e=>{let{moduleName:n,name:t,force:r,children:o,...i}=e;const s=(0,a.usePreset)();return(0,u.jsx)(m,{...i,params:{moduleName:n,locale:null===s||void 0===s?void 0:s.locale,enums:null===s||void 0===s?void 0:s.enums,name:t,force:r},loader:e=>{let{params:n}=e;return n.enums},children:o})};f.defaultProps={force:!1};const g=f},94710:e=>{e.exports=function(e,n,t,r){for(var o=-1,a=null==e?0:e.length;++o<a;){var i=e[o];n(r,i,t(i),e)}return r}},32952:(e,n,t)=>{var r=t(45652);e.exports=function(e,n,t,o){return r(e,(function(e,r,a){n(o,e,t(e),a)})),o}},45652:(e,n,t)=>{var r=t(94664),o=t(76516)(r);e.exports=o},99910:e=>{e.exports=function(e,n){for(var t,r=-1,o=e.length;++r<o;){var a=n(e[r]);void 0!==a&&(t=void 0===t?a:t+a)}return t}},19449:(e,n,t)=>{var r=t(94710),o=t(32952),a=t(9096),i=t(54052);e.exports=function(e,n){return function(t,s){var l=i(t)?r:o,c=n?n():{};return l(t,e,a(s,2),c)}}},76516:(e,n,t)=>{var r=t(6571);e.exports=function(e,n){return function(t,o){if(null==t)return t;if(!r(t))return e(t,o);for(var a=t.length,i=n?a:-1,s=Object(t);(n?i--:++i<a)&&!1!==o(s[i],i,s););return t}}},26304:(e,n,t)=>{var r=t(53871),o=t(99140);e.exports=function(e,n,t){var a=null==e?0:e.length;return a?(n=t||void 0===n?1:o(n),r(e,0,(n=a-n)<0?0:n)):[]}},39835:(e,n,t)=>{var r=t(71775),o=t(19449),a=Object.prototype.hasOwnProperty,i=o((function(e,n,t){a.call(e,t)?e[t].push(n):r(e,t,[n])}));e.exports=i},56641:(e,n,t)=>{var r=t(26989);e.exports=function(e,n,t){var o=(t="function"==typeof t?t:void 0)?t(e,n):void 0;return void 0===o?r(e,n,void 0,t):!!o}},60262:(e,n,t)=>{var r=t(99910),o=t(33279);e.exports=function(e){return e&&e.length?r(e,o):0}},99140:(e,n,t)=>{var r=t(37303);e.exports=function(e){var n=r(e),t=n%1;return n===n?t?n-t:n:0}},17448:()=>{},71975:()=>{}}]);
|
|
2
|
-
//# sourceMappingURL=7790.2ca7771a.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[8725,9034],{18411:(e,a,r)=>{r.d(a,{A:()=>s});r(73884);const s=r.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},97211:(e,a,r)=>{r.d(a,{A:()=>c});var s=r(87558),t=r.n(s),n=r(63908),o=r(34677),l=r.n(o),i=r(70579);const c=e=>{const a=a=>{let{id:r,url:s,error:o,apis:c,loading:d,...p}=a;const{apis:u}=(0,n.usePreset)(),g=l()({},u,c);if(!r)return null;if(!g.oss)throw new Error("\u8bf7\u5728Global\u7ec4\u4ef6\u8bbe\u7f6epreset.apis.oss\u53c2\u6570");const{paramsType:m,paramsName:h,..._}=Object.assign({paramsType:"params",paramsName:"id"},g.oss),f={};return f[m]={[h]:r},(0,i.jsx)(t(),{...Object.assign({},_,f),updateType:"refresh",error:o,loading:d,cache:"oss-file",ttl:6e6,render:a=>{let{data:s}=a;return(0,i.jsx)(e,{...p,id:r,data:s})}})};return a.defaultProps={loading:null},a}},40438:(e,a,r)=>{r.r(a),r.d(a,{default:()=>b});var s=r(87558),t=r.n(s),n=r(97211),o=r(64671),l=r(83136),i=r.n(l),c=r(55199),d=r(73884);const p=e=>{let{params:a}=e;const{data:r}=a;return new Promise(((e,a)=>{const s=new window.Image;s.src=r,s.addEventListener("load",(()=>{e(r)})),s.addEventListener("error",(e=>{a(e)}))}))},u="style_img-outer__4QLY5__AYubY",g="style_img__PSExq__AYubY",m="style_loading__WCOwA__AYubY",h="style_error__+ECgZ__AYubY";var _=r(18411),f=r(63908),v=r(70579);const x=e=>{let{data:a,className:r,alt:s,innerLoading:n,loading:o,error:l,innerError:c,children:d,onClick:u,staticUrl:m}=e;const{staticUrl:h}=(0,f.usePreset)(),_=m||h||"";return(0,v.jsx)(t(),{loader:p,params:{data:/^https?:\/\//.test(a)?a:_+a},error:c||l,loading:n||o,render:e=>{let{data:a}=e;return"function"===typeof d?d({alt:s,className:i()(r,g),src:a}):(0,v.jsx)("img",{alt:s,className:i()(r,g),src:a,onClick:u})}})},A=(0,n.A)(x),j=e=>{let{loading:a,error:r,src:s,id:t,alt:n,className:o,children:l,apis:i,onClick:c}=e;const p=a&&(0,d.cloneElement)(a,{className:m}),u=r&&(0,d.cloneElement)(r,{className:h});return s?(0,v.jsx)(x,{alt:n,className:o,data:s,loading:p,error:u,onClick:c,children:l}):t?(0,v.jsx)(A,{alt:n,className:o,id:t,loading:p,innerLoading:p,error:u,innerError:u,apis:i,onClick:c,children:l}):u},N=e=>{let{id:a,src:r,alt:s,onClick:t,loading:n,error:o,className:l,apis:c,...d}=e;return(0,v.jsx)("div",{...d,"data-testid":"components-core-image",className:i()(l,u),children:j({loading:n,error:o,src:r,id:a,alt:s,className:l,apis:c,onClick:t})})};N.Avatar=e=>{let{id:a,src:r,alt:s,gender:t,loading:n,error:l,className:d,gap:p,icon:g,children:m,shape:h,size:_,width:f,height:x,defaultAvatar:A,apis:N,...k}=e;const b=(()=>{const e=f&&x?{style:{width:f,height:x}}:{size:_};if(f&&f!==x&&(h="square"),a||r)return j({loading:n,error:l,src:r,defaultAvatar:A,id:a,alt:s,className:d,apis:N,children:a=>(0,v.jsx)(c.Avatar,{...a,gap:p,shape:h,...e})});if(t){const a=t&&["F","female","f"].indexOf(t)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,v.jsx)(c.Avatar,{...k,src:(0,v.jsx)(o.default,{role:"touxiang",colorful:!0,type:a}),gap:p,shape:h,...e})}return(0,v.jsx)(c.Avatar,{...k,gap:p,icon:g,shape:h,size:_,src:A,...e,children:m})})();return(0,v.jsx)("div",{...k,"data-testid":"components-core-image-avatar",className:i()(d,u),style:{width:f&&x?f:_,height:f&&x?x:_},children:b})};const k={error:(0,v.jsx)(o.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,v.jsx)(c.Skeleton.Avatar,{shape:"square",active:!0})};N.defaultProps=Object.assign({},k),N.Avatar.defaultProps=Object.assign({},k,{size:100,defaultAvatar:_.A});const b=N}}]);
|
|
2
|
-
//# sourceMappingURL=8725.122e95a2.chunk.js.map
|
/package/build/static/js/{1153.3fd2bb84.chunk.js.LICENSE.txt → 1153.a0a27247.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{1454.bc4f32da.chunk.js.LICENSE.txt → 1454.3e0d9dd1.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{1554.e51cd8ad.chunk.js.LICENSE.txt → 1554.8f3e3123.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{2716.a14703a4.chunk.js.LICENSE.txt → 2716.c98d9e80.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{4666.e0e2e7e8.chunk.js.LICENSE.txt → 4666.1c5dbe5a.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|
/package/build/static/js/{7227.d7fb7aaa.chunk.js.LICENSE.txt → 7227.734d6398.chunk.js.LICENSE.txt}
RENAMED
|
File without changes
|