@kne-components/components-core 0.3.1 → 0.3.2
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 +95 -94
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1045.ca53a230.chunk.css +2 -0
- package/build/static/css/{1045.5b8bac7c.chunk.css.map → 1045.ca53a230.chunk.css.map} +1 -1
- package/build/static/css/1153.3938cc4f.chunk.css +2 -0
- package/build/static/css/1153.3938cc4f.chunk.css.map +1 -0
- package/build/static/css/1517.0e2b370a.chunk.css +2 -0
- package/build/static/css/{1517.910dec4e.chunk.css.map → 1517.0e2b370a.chunk.css.map} +1 -1
- package/build/static/css/1554.6872c900.chunk.css +2 -0
- package/build/static/css/{1554.ee338802.chunk.css.map → 1554.6872c900.chunk.css.map} +1 -1
- package/build/static/css/2716.1540a78c.chunk.css +2 -0
- package/build/static/css/{2716.cdace44f.chunk.css.map → 2716.1540a78c.chunk.css.map} +1 -1
- package/build/static/css/283.a8e68a9b.chunk.css +2 -0
- package/build/static/css/283.a8e68a9b.chunk.css.map +1 -0
- package/build/static/css/3834.1aadc45b.chunk.css +2 -0
- package/build/static/css/{3834.b3b5b3d1.chunk.css.map → 3834.1aadc45b.chunk.css.map} +1 -1
- package/build/static/css/4666.029a3147.chunk.css +2 -0
- package/build/static/css/{4666.8311296a.chunk.css.map → 4666.029a3147.chunk.css.map} +1 -1
- package/build/static/css/5371.e593e147.chunk.css +2 -0
- package/build/static/css/{5371.1e1f8f3d.chunk.css.map → 5371.e593e147.chunk.css.map} +1 -1
- package/build/static/css/5939.3c318ac7.chunk.css +2 -0
- package/build/static/css/{5939.7b9cea6d.chunk.css.map → 5939.3c318ac7.chunk.css.map} +1 -1
- package/build/static/css/5965.2e4fa038.chunk.css +2 -0
- package/build/static/css/{5965.004176ff.chunk.css.map → 5965.2e4fa038.chunk.css.map} +1 -1
- package/build/static/css/{624.cff8f67b.chunk.css → 624.751f939e.chunk.css} +2 -2
- package/build/static/css/{624.cff8f67b.chunk.css.map → 624.751f939e.chunk.css.map} +1 -1
- package/build/static/css/663.d39f6c6b.chunk.css +12 -0
- package/build/static/css/{663.f0d0d2ce.chunk.css.map → 663.d39f6c6b.chunk.css.map} +1 -1
- package/build/static/css/6756.55dbe43e.chunk.css +2 -0
- package/build/static/css/{6756.040dfc03.chunk.css.map → 6756.55dbe43e.chunk.css.map} +1 -1
- package/build/static/css/7227.8f74b65f.chunk.css +2 -0
- package/build/static/css/{7227.8ed71356.chunk.css.map → 7227.8f74b65f.chunk.css.map} +1 -1
- package/build/static/css/7253.47083b66.chunk.css +2 -0
- package/build/static/css/{7253.8b8a8acf.chunk.css.map → 7253.47083b66.chunk.css.map} +1 -1
- package/build/static/css/7277.4aa6f83a.chunk.css +2 -0
- package/build/static/css/7277.4aa6f83a.chunk.css.map +1 -0
- package/build/static/css/7334.76feddfb.chunk.css +2 -0
- package/build/static/css/{7334.e49acc19.chunk.css.map → 7334.76feddfb.chunk.css.map} +1 -1
- package/build/static/css/764.ebcb3503.chunk.css +2 -0
- package/build/static/css/764.ebcb3503.chunk.css.map +1 -0
- package/build/static/css/7866.30c124fe.chunk.css +2 -0
- package/build/static/css/{7866.3ca5cf18.chunk.css.map → 7866.30c124fe.chunk.css.map} +1 -1
- package/build/static/css/{8503.51365300.chunk.css → 8503.2239044c.chunk.css} +2 -2
- package/build/static/css/{8503.51365300.chunk.css.map → 8503.2239044c.chunk.css.map} +1 -1
- package/build/static/js/1045.96978d7a.chunk.js +2 -0
- package/build/static/js/{1045.187fc895.chunk.js.map → 1045.96978d7a.chunk.js.map} +1 -1
- package/build/static/js/{1153.107391cc.chunk.js → 1153.f2e1849c.chunk.js} +3 -3
- package/build/static/js/{1153.107391cc.chunk.js.map → 1153.f2e1849c.chunk.js.map} +1 -1
- package/build/static/js/1517.cbe4cda9.chunk.js +2 -0
- package/build/static/js/{1517.d6817f3d.chunk.js.map → 1517.cbe4cda9.chunk.js.map} +1 -1
- package/build/static/js/1554.d4377969.chunk.js +3 -0
- package/build/static/js/1554.d4377969.chunk.js.map +1 -0
- package/build/static/js/2716.d4e2358f.chunk.js +3 -0
- package/build/static/js/{2716.b6f444b9.chunk.js.map → 2716.d4e2358f.chunk.js.map} +1 -1
- package/build/static/js/2818.e319ed91.chunk.js +2 -0
- package/build/static/js/2818.e319ed91.chunk.js.map +1 -0
- package/build/static/js/283.0d1a3a55.chunk.js +2 -0
- package/build/static/js/{283.6cfd4ce9.chunk.js.map → 283.0d1a3a55.chunk.js.map} +1 -1
- package/build/static/js/3834.97b7fd67.chunk.js +2 -0
- package/build/static/js/{3834.afb48ef0.chunk.js.map → 3834.97b7fd67.chunk.js.map} +1 -1
- package/build/static/js/3856.8291b496.chunk.js +2 -0
- package/build/static/js/{3856.6b298690.chunk.js.map → 3856.8291b496.chunk.js.map} +1 -1
- package/build/static/js/4474.eaf8f6dd.chunk.js +2 -0
- package/build/static/js/{4474.65980687.chunk.js.map → 4474.eaf8f6dd.chunk.js.map} +1 -1
- package/build/static/js/{4666.0b771151.chunk.js → 4666.5ae60760.chunk.js} +3 -3
- package/build/static/js/{4666.0b771151.chunk.js.map → 4666.5ae60760.chunk.js.map} +1 -1
- package/build/static/js/4671.963f0532.chunk.js +1 -0
- package/build/static/js/4982.cb2c6afa.chunk.js +2 -0
- package/build/static/js/4982.cb2c6afa.chunk.js.map +1 -0
- package/build/static/js/5371.996b5f3c.chunk.js +2 -0
- package/build/static/js/{5371.36657923.chunk.js.map → 5371.996b5f3c.chunk.js.map} +1 -1
- package/build/static/js/{5939.e303acdc.chunk.js → 5939.e3810ade.chunk.js} +2 -2
- package/build/static/js/5939.e3810ade.chunk.js.map +1 -0
- package/build/static/js/5965.58a50b3c.chunk.js +2 -0
- package/build/static/js/{5965.f43b91cf.chunk.js.map → 5965.58a50b3c.chunk.js.map} +1 -1
- package/build/static/js/{624.909e77ac.chunk.js → 624.55fa139e.chunk.js} +2 -2
- package/build/static/js/{624.909e77ac.chunk.js.map → 624.55fa139e.chunk.js.map} +1 -1
- package/build/static/js/{663.c0d26ab7.chunk.js → 663.06a1a9cc.chunk.js} +2 -2
- package/build/static/js/663.06a1a9cc.chunk.js.map +1 -0
- package/build/static/js/{7227.179ff477.chunk.js → 7227.fed50031.chunk.js} +3 -3
- package/build/static/js/{7227.179ff477.chunk.js.map → 7227.fed50031.chunk.js.map} +1 -1
- package/build/static/js/7253.310ab9ae.chunk.js +2 -0
- package/build/static/js/{7253.7925a31a.chunk.js.map → 7253.310ab9ae.chunk.js.map} +1 -1
- package/build/static/js/7277.3112a937.chunk.js +2 -0
- package/build/static/js/7277.3112a937.chunk.js.map +1 -0
- package/build/static/js/7334.cc4c2c3b.chunk.js +2 -0
- package/build/static/js/{7334.75a51796.chunk.js.map → 7334.cc4c2c3b.chunk.js.map} +1 -1
- package/build/static/js/764.61214339.chunk.js +2 -0
- package/build/static/js/{764.b6ed5366.chunk.js.map → 764.61214339.chunk.js.map} +1 -1
- package/build/static/js/7866.35b7eba0.chunk.js +2 -0
- package/build/static/js/{7866.dbc4eec4.chunk.js.map → 7866.35b7eba0.chunk.js.map} +1 -1
- package/build/static/js/8503.c3ac17cd.chunk.js +2 -0
- package/build/static/js/{8503.6d24ee29.chunk.js.map → 8503.c3ac17cd.chunk.js.map} +1 -1
- package/build/static/js/main.0c22de2e.js +2 -0
- package/build/static/js/main.0c22de2e.js.map +1 -0
- package/package.json +3 -2
- package/build/static/css/1045.5b8bac7c.chunk.css +0 -2
- package/build/static/css/1153.3ff3c045.chunk.css +0 -2
- package/build/static/css/1153.3ff3c045.chunk.css.map +0 -1
- package/build/static/css/1517.910dec4e.chunk.css +0 -2
- package/build/static/css/1554.ee338802.chunk.css +0 -2
- package/build/static/css/2716.cdace44f.chunk.css +0 -2
- package/build/static/css/283.792e4f29.chunk.css +0 -2
- package/build/static/css/283.792e4f29.chunk.css.map +0 -1
- package/build/static/css/3834.b3b5b3d1.chunk.css +0 -2
- package/build/static/css/4666.8311296a.chunk.css +0 -2
- package/build/static/css/5371.1e1f8f3d.chunk.css +0 -2
- package/build/static/css/5939.7b9cea6d.chunk.css +0 -2
- package/build/static/css/5965.004176ff.chunk.css +0 -2
- package/build/static/css/663.f0d0d2ce.chunk.css +0 -12
- package/build/static/css/6756.040dfc03.chunk.css +0 -2
- package/build/static/css/7227.8ed71356.chunk.css +0 -2
- package/build/static/css/7253.8b8a8acf.chunk.css +0 -2
- package/build/static/css/7277.1a084012.chunk.css +0 -2
- package/build/static/css/7277.1a084012.chunk.css.map +0 -1
- package/build/static/css/7334.e49acc19.chunk.css +0 -2
- package/build/static/css/764.63920b2c.chunk.css +0 -2
- package/build/static/css/764.63920b2c.chunk.css.map +0 -1
- package/build/static/css/7866.3ca5cf18.chunk.css +0 -2
- package/build/static/js/1045.187fc895.chunk.js +0 -2
- package/build/static/js/1517.d6817f3d.chunk.js +0 -2
- package/build/static/js/1554.757a2787.chunk.js +0 -3
- package/build/static/js/1554.757a2787.chunk.js.map +0 -1
- package/build/static/js/2716.b6f444b9.chunk.js +0 -3
- package/build/static/js/283.6cfd4ce9.chunk.js +0 -2
- package/build/static/js/3834.afb48ef0.chunk.js +0 -2
- package/build/static/js/3856.6b298690.chunk.js +0 -2
- package/build/static/js/4474.65980687.chunk.js +0 -2
- package/build/static/js/4671.6ba75f14.chunk.js +0 -3
- package/build/static/js/4671.6ba75f14.chunk.js.map +0 -1
- package/build/static/js/5371.36657923.chunk.js +0 -2
- package/build/static/js/5652.9fe33ba5.chunk.js +0 -2
- package/build/static/js/5652.9fe33ba5.chunk.js.map +0 -1
- package/build/static/js/5939.e303acdc.chunk.js.map +0 -1
- package/build/static/js/5965.f43b91cf.chunk.js +0 -2
- package/build/static/js/663.c0d26ab7.chunk.js.map +0 -1
- package/build/static/js/7227.179ff477.chunk.js.LICENSE.txt +0 -9
- package/build/static/js/7253.7925a31a.chunk.js +0 -2
- package/build/static/js/7277.93496ccd.chunk.js +0 -2
- package/build/static/js/7277.93496ccd.chunk.js.map +0 -1
- package/build/static/js/7334.75a51796.chunk.js +0 -2
- package/build/static/js/764.b6ed5366.chunk.js +0 -2
- package/build/static/js/7866.dbc4eec4.chunk.js +0 -2
- package/build/static/js/8503.6d24ee29.chunk.js +0 -2
- package/build/static/js/main.3ca59099.js +0 -2
- package/build/static/js/main.3ca59099.js.map +0 -1
- /package/build/static/js/{1153.107391cc.chunk.js.LICENSE.txt → 1153.f2e1849c.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{1554.757a2787.chunk.js.LICENSE.txt → 1554.d4377969.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{2716.b6f444b9.chunk.js.LICENSE.txt → 2716.d4e2358f.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4666.0b771151.chunk.js.LICENSE.txt → 4666.5ae60760.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4671.6ba75f14.chunk.js.LICENSE.txt → 7227.fed50031.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[3856],{18411:(e,t,l)=>{l.d(t,{A:()=>n});l(73884);const n=l.p+"static/media/defaultAvatar.b1f2a8046cc7bee36d9a404ce6a0a1d7.svg"},93761:(e,t,l)=>{l.d(t,{qn:()=>W,TM:()=>te,LH:()=>R,Ay:()=>K,NY:()=>D,DF:()=>B});var n=l(53986),a=l(89379),s=l(30509),r=l(25438),o=l(55199),i=l(27047),c=l(83136),d=l.n(c),u=l(64671),p=l(73884),m=l(21485),h=l(56434),g=l.n(h),_=l(15797),f=l.n(_),x=l(33097),A=l.n(x);const v="style_address__DIuRX__r4rl1",y="style_is-popup__tqVvp__r4rl1",C="style_title__FAe12__r4rl1",j="style_scroll-box__JWiDl__r4rl1",b="style_scroll-plus-box__lidEW__r4rl1",N="style_content__lAARZ__r4rl1",S="style_col-left__WPfeS__r4rl1",w="style_col-right__z0e9-__r4rl1";var O=l(87558),P=l.n(O);const I=e=>({"en-US":()=>l.e(3691).then(l.bind(l,83691)),"zh-CN":()=>l.e(2253).then(l.bind(l,32253))}[e]());var L=l(47458),k=l(70579);const F=["name","data","getAddressApi","children"],M=["data"],T=s.A.useContext,R=e=>{let{city:t,province:l,country:n}=e;const a=f()((()=>{const e=[];return["gangaotai","municipality"].forEach((l=>{e.push(...t.relations[l])})),["provinces","continents"].forEach((l=>{t.relations[l].forEach((l=>{e.push(l),e.push(...t.relations[l])}))})),e.map((e=>t.list[e]))}));return{getCity:f()((e=>{const l=t.list[e];return l?{city:l,parent:l.parentCode?t.list[l.parentCode]:null}:{city:null,parent:null}})),getChinaHotCities:f()((()=>t.relations[2].map((e=>t.list[e])))),getChinaCities:f()((()=>["2",...l.relations.municipality,...l.relations.provinces,"gangaotai"].map((e=>Object.assign({id:e},t.list[e]))))),getCountries:f()((()=>["1",...n.relations.continents].map((e=>Object.assign({id:e},n.list[e]))))),getList:f()(((e,a)=>{const{showChinaQuan:s,showForeignQuan:r}=Object.assign({},a);if("gangaotai"===e)return l.relations.gangaotai.map((e=>t.list[e]));const o=Object.assign({},t.list[e]);if(l.relations.municipality.indexOf(e)>-1)return o.name="".concat(s?"\u5168":"")+o.name,[o];const i=t.relations[e].map((e=>t.list[e]));return l.relations.provinces.indexOf(e)>-1&&s&&(o.name="\u5168"+o.name,i.splice(0,0,o)),n.relations.continents.indexOf(e)>-1&&r&&(o.name="\u5168"+o.name,i.splice(0,0,o)),i})),getNationalityList:f()((e=>{let l=g()(t);return"1"===e&&l.relations[1].unshift("410"),"350"===e&&l.relations[350].unshift("410"),l.relations[e].filter((e=>l.list[e])).map((e=>l.list[e]))})),getCityByName:f()((e=>{const t=a();let l;return[t=>t.name===e,t=>t.name===e.replace(/(\u7701|\u5e02)$/,""),t=>0===e.indexOf(t.name)].find((e=>(l=t.find(e),l))),l})),combineCities:f()(((e,l)=>[...l.filter((l=>t.list[l].parentCode!==e&&t.list[e].parentCode!==l&&e!==l)),e])),searchCities:f()((e=>{if(!e)return[];return a().filter((t=>["pinyin","name","enName","spelling"].some((l=>t[l].toUpperCase().indexOf(e.toUpperCase())>-1)))).map((e=>{const l=e.parentCode?t.list[e.parentCode]:null;return{label:l?"".concat(l.name,"\xb7").concat(e.name):e.name,value:e.code}}))}))}},D=(e,t)=>"en-US"===t?A()(e,"enName"):A()(e,"name"),E={cache:"CITY_DATA",isLocal:!0,ttl:864e5,loader:()=>l.e(7820).then(l.t.bind(l,37820,19)).then((e=>e.__esModule?e.default:e))},z=e=>{let{value:t,setValue:l}=e;const{fetchApi:n,props:a}=T(),[s,c]=(0,p.useState)(""),[h,g]=(0,p.useState)("2"),{formatMessage:_}=(0,L.useIntl)({moduleName:"AddressSelect"}),{locale:f}=(0,i.A)(),{getCity:x,getChinaCities:A,getCountries:O,getList:P,searchCities:I}=(0,p.useMemo)((()=>R(n.data)),[n.data]),F=e=>{if(a.single)return void l([e]);const n=t.slice(0),s=n.indexOf(e);s>-1?n.splice(s,1):n.push(e),l(n)},M=s&&(0,k.jsx)(m.A,{className:b,children:(0,k.jsx)(o.List,{className:r.A.list,size:"small",dataSource:I(s),rowKey:"value",renderItem:e=>(0,k.jsx)(o.List.Item,{className:r.A["list-item"],onClick:()=>{F(e.value),c("")},children:(0,k.jsx)("span",{className:r.A["item-label"],children:e.label})})})});return(0,k.jsxs)("div",{className:d()(v,{[y]:a.isPopup}),children:[(0,k.jsx)(o.Input.Search,{className:d()(r.A["search-input"],{[r.A["is-popup"]]:a.isPopup}),placeholder:a.searchPlaceholder||_({id:"searchCity"}),prefix:(0,k.jsx)(u.default,{type:"icon-sousuo"}),enterButton:(0,k.jsx)(u.default,{type:"icon-sousuo"}),value:s,allowClear:!0,onChange:e=>{const t=e.target.value;c(t)},onSearch:e=>{c(e)}}),(0,k.jsx)("div",{className:N,children:M||(0,k.jsxs)(o.Row,{wrap:!1,children:[(0,k.jsx)(o.Col,{className:S,children:(0,k.jsx)(o.Tabs,{centered:!0,onChange:e=>{g(e)},items:[{key:"2",label:(0,k.jsx)(L.FormattedMessage,{id:"domestic",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5185"}),children:(0,k.jsx)(m.A,{className:j,children:(0,k.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{g(e.key)},items:A().map((e=>({label:D(e,f),key:e.id})))})})},{key:"1",label:(0,k.jsx)(L.FormattedMessage,{id:"abroad",moduleName:"AddressSelect",defaultMessage:"\u56fd\u5916"}),children:(0,k.jsx)(m.A,{className:j,children:(0,k.jsx)(o.Menu,{selectedKeys:[h],onSelect:e=>{g(e.key)},items:O().map((e=>({label:D(e,f),key:e.id})))})})}]})}),(0,k.jsxs)(o.Col,{flex:1,className:w,children:[(0,k.jsx)(o.Divider,{className:C,orientation:"left",children:D(x(h).city,f)}),(0,k.jsx)(m.A,{className:j,children:(0,k.jsx)(o.Space,{wrap:!0,children:P(h,{showChinaQuan:a.showChinaQuan,showForeignQuan:a.showForeignQuan}).map((e=>(0,k.jsx)(o.Tag.CheckableTag,{checked:t.indexOf(e.code)>-1,onChange:()=>{F(e.code)},children:D(e,f)},e.code)))})})]})]})})]})},V=e=>(0,k.jsx)(s.A,(0,a.A)((0,a.A)({},e),{},{children:e=>{let{value:t,setValue:l}=e;return(0,k.jsx)(L.IntlProvider,{moduleName:"AddressSelect",importMessages:I,children:(0,k.jsx)(z,{value:t,setValue:l})})}}));V.defaultProps={overlayWidth:"500px",isPopup:!0,api:E,dataFormat:(e,t)=>{let{city:l}=e;const{locale:n}=Object.assign({},t);return{list:Object.values(l.list).map((e=>Object.assign({},e,{value:e.code,label:D(e,n)})))}}};const W=(0,O.withFetch)((e=>{let{name:t,data:l,getAddressApi:a,children:s}=e,r=(0,n.A)(e,F);const{locale:o}=(0,i.A)(),c=(0,p.useMemo)((()=>R(l)),[l]);return a?s(c):(0,k.jsx)(P(),{cache:"city-enum",params:{name:t},loader:e=>{let{params:t}=e;const{name:l}=t;return new Promise((e=>{setTimeout((()=>{e(c.getCity(l))}),0)}))},render:e=>{let{data:t}=e;return s(t,Object.assign({},r,{locale:o}))}})}));W.defaultProps=(0,a.A)((0,a.A)({},E),{},{displayParent:!1,children:(e,t)=>{let{city:l,parent:n}=e,{displayParent:a,locale:s}=t;return a&&n?"".concat(D(n,s),"\xb7").concat(D(l,s)):D(l,s)}});const B=e=>{const t=(0,O.withFetch)((t=>{let{data:l}=t,s=(0,n.A)(t,M);const r=(0,p.useMemo)((()=>R(l)),[l]);return(0,k.jsx)(e,(0,a.A)((0,a.A)({},s),{},{addressApi:r}))}));return t.defaultProps=(0,a.A)({},E),t};V.AddressEnum=V.Enum=W,V.createAddressApi=R,V.withAddressApi=B,V.getLabelForLocal=D;const K=V;var U=l(10986),q=l.n(U),H=l(78491),Q=l.n(H),Z=l(20492),X=l(22616),Y=l.n(X),J=l(1488),G=l.n(J);const $=["isPopup","size","disabled","inputPlaceholder","onBlur","className"],ee=e=>{const{isPopup:t,size:l,disabled:s,inputPlaceholder:r,onBlur:i,className:c}=e,d=(0,n.A)(e,$),[u,p]=q()(e),m=["isPopup","searchPlaceholder","placeholder","overlayWidth","api","dataFormat"],{formatMessage:h}=(0,L.useIntl)({moduleName:"Common"}),g=Q()((e=>{i&&i(e)}));return(0,k.jsx)("div",{ref:g,children:(0,k.jsxs)(o.Row,{gutter:10,children:[(0,k.jsx)(o.Col,{span:12,children:(0,k.jsx)(K,(0,a.A)((0,a.A)({},Y()(d,m)),{},{className:c,disabled:s,single:!0,size:l,value:A()(u,"city"),onChange:e=>{p({city:e,detail:A()(u,"detail")})}}))}),(0,k.jsx)(o.Col,{span:12,children:(0,k.jsx)(o.Input,(0,a.A)((0,a.A)({},G()(d,m)),{},{className:c,placeholder:r||h({id:"pleaseInput"}),disabled:s,size:l,value:A()(u,"detail"),onChange:e=>{p({city:A()(u,"city"),detail:e.target.value})}}))})]})})};ee.defaultProps={};const te=(0,L.createWithIntl)({importMessages:Z.A,moduleName:"Common"})(ee)},12392:(e,t,l)=>{l.d(t,{Bm:()=>U,Eo:()=>B,NR:()=>w,Ay:()=>q});var n=l(55199),a=l(83136),s=l.n(a),r=l(89379),o=l(53986),i=l(30509),c=l(25438),d=l(26475),u=l(33097),p=l.n(u),m=l(34677),h=l.n(m);const g="create-list_scroll-loader__zoaS7__r4rl1",_="create-list_is-popup__t3d-G__r4rl1",f="create-list_is-not-full__FXtX1__r4rl1",x="create-list_search-input__tV3vf__r4rl1",A="create-list_left__EXr3i__r4rl1",v="create-list_list-header__3xeJa__r4rl1",y="create-list_is-modal__BMfya__r4rl1";var C=l(73161),j=l(47458),b=l(70579);const N=["extra"],S=i.A.useContext,w=e=>{let{renderList:t,defaultProps:l}=e;const a=e=>{let{value:l,setValue:a}=e;const{fetchApi:r,searchText:o,setSearchText:i,props:u,mapping:m}=S(),N=Object.assign({},{paramsType:"data",current:"currentPage",pageSizeName:"perPage",pageSize:20},u.pagination),w=p()(r.requestParams,[N.paramsType,N.current],1),O=p()(r.requestParams,[N.paramsType,N.pageSizeName])||N.pageSize,{formatMessage:P}=(0,j.useIntl)({moduleName:"Common"}),I=u.dataFormat(r.data),{right:L,leftBottom:k,leftSpan:F=24}=u,M=1===l.length&&"all"===l[0];return(0,b.jsxs)(n.Row,{wrap:!1,className:L?s()("is-not-full",f):"",children:[(0,b.jsxs)(n.Col,{span:F,className:s()(A,"advance-select-left"),children:[u.getSearchProps?(0,b.jsx)(C.A,{isPopup:u.isPopup,className:s()(x,c.A["search-input"],{[c.A["is-popup"]]:u.isPopup}),placeholder:u.searchPlaceholder||P({id:"search"}),value:o,onSearch:e=>{r.reload(u.getSearchProps(e)),i(e)}}):null,u.single||!u.showSelectedCount&&!u.allowSelectAll?null:(0,b.jsxs)(n.Flex,{className:s()(v,{[y]:!u.isPopup}),justify:"space-between",children:[u.showSelectedCount?(0,b.jsxs)(n.Space,{children:[(0,b.jsx)(n.Typography,{children:"\u5df2\u9009:"}),(0,b.jsx)(n.Typography.Link,{children:M?u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"}):"".concat(l.length).concat(u.countUnit||P({id:"items"}))})]}):(0,b.jsx)("div",{}),u.allowSelectAll?(0,b.jsx)("div",{children:(0,b.jsx)(n.Checkbox,{checked:M,onChange:e=>{a(e.target.checked?[u.allValue||"all"]:[])},children:(0,b.jsx)(j.FormattedMessage,{id:"selectAll",moduleName:"Common",values:{label:u.allLabel||(0,b.jsx)(j.FormattedMessage,{id:"all",moduleName:"Common"})}})})}):(0,b.jsx)("div",{})]}),(0,b.jsx)(d.A,{completeTips:"",isLoading:!r.isComplete,className:s()(g,{[_]:u.isPopup}),noMore:!I.total||w*O>=I.total,onLoader:async()=>{console.log("on loader"),await r.loadMore(h()({[N.paramsType]:{[N.pageSizeName]:O,[N.current]:w+1}},u.getSearchProps&&u.getSearchProps(o)),u.mergeList)},children:(()=>{const e={props:u,value:l,setValue:a,list:I.list,data:r.data,fetchApi:r,itemIsSelected:e=>l.indexOf(e.value)>-1,isSelectedAll:M,onSelect:e=>{if(u.single)return void a([e.value]);const t=l.slice(0),n=t.indexOf(e.value);n>-1?t.splice(n,1):t.push(e.value),a(t)}},n=t(e);return"function"===typeof u.dropdownRender?u.dropdownRender(Object.assign({},e,{children:n})):n})()}),k&&k({fetchApi:r,value:l,mapping:m})]}),L&&L({value:l,mapping:m,fetchApi:r})]})},u=e=>{let{extra:t}=e,l=(0,o.A)(e,N);return(0,b.jsx)(i.A,(0,r.A)((0,r.A)({},l),{},{extra:t,children:e=>{let{value:t,setValue:l}=e;return(0,b.jsx)(a,{value:t,setValue:l})}}))};return u.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})},l),u},O="list_list__TGynD__r4rl1",P="list_list-item__WSswf__r4rl1",I="list_is-selected__6Wkgt__r4rl1",L="list_item-label__bYzhe__r4rl1",k="list_item-des__2nsEn__r4rl1",F="list_is-disabled__qxCvO__r4rl1",M="list_is-selected-all__Mp-hG__r4rl1";var T=l(40438),R=l(64671);const D="user_list-inner__V508e__r4rl1",E="user_list-info__y2nWo__r4rl1",z="user_selected-icon__9OQJL__r4rl1",V="user_item-des__o+7UR__r4rl1",W="user_is-selected-all__2q0VZ__r4rl1",B=w({renderList:e=>{let{list:t,onSelect:l,itemIsSelected:a,isSelectedAll:o}=e;return(0,b.jsx)(n.List,{size:"small",className:s()(O,{[M]:o,[W]:o}),dataSource:t,renderItem:e=>{const t=a(e);return(0,b.jsx)(n.List.Item,{className:s()(P,{[I]:t}),onClick:()=>l(e),children:(0,b.jsxs)(n.Row,{wrap:!1,align:"middle",className:D,children:[(0,b.jsx)(n.Col,{children:(0,b.jsx)(T.default.Avatar,(0,r.A)((0,r.A)({},Object.assign({},e.avatar)),{},{size:40,gender:"M"}))}),(0,b.jsx)(n.Col,{className:E,flex:1,children:(0,b.jsxs)(n.Space,{direction:"vertical",children:[(0,b.jsx)("span",{className:L,children:e.label}),e.description&&(0,b.jsx)("span",{className:V,children:e.description})]})}),(0,b.jsx)(n.Col,{children:o||t?(0,b.jsx)(R.default,{className:z,type:"icon-gouxuan"}):null})]})})}})}}),K={"is-selected-all":"table_is-selected-all__IwXUY__r4rl1"},U=w({defaultProps:{overlayWidth:"450px"},renderList:e=>{let{props:t,list:l,onSelect:a,value:r,setValue:o,itemIsSelected:i,isSelectedAll:c}=e;return(0,b.jsx)(n.Table,{className:s()(K.list,O,{[M]:c,[K["is-selected-all"]]:c}),size:"small",dataSource:l,columns:t.columns,rowClassName:e=>s()({"ant-table-row-selected":i(e)}),rowKey:t.rowKey||"value",pagination:!1,rowSelection:t.single?null:c?{selectedRowKeys:l.map((e=>{let{value:t}=e;return t})),getCheckboxProps:()=>({disabled:!0})}:{selectedRowKeys:r,onChange:e=>{o(e)}},sticky:!0,onRow:e=>({onClick:()=>a(e)})})}}),q=w({renderList:e=>{let{props:t,list:l,itemIsSelected:a,isSelectedAll:r,onSelect:o}=e;const{listClassName:i="",selectIcon:c=null}=t||{};return(0,b.jsx)(n.List,{className:s()(O,i,{[M]:r}),size:"small",dataSource:l,renderItem:e=>{var l;const i=a(e);return(0,b.jsxs)(n.List.Item,{className:s()(P,{[I]:t.single&&i,[F]:r||e.disabled}),onClick:()=>{e.disabled||o(e)},children:[(0,b.jsxs)(n.Row,{wrap:!1,children:[t.single?null:(0,b.jsx)(n.Col,{children:(0,b.jsx)(n.Checkbox,{checked:r||i,disabled:r||e.disabled})}),(0,b.jsx)(n.Col,{children:(0,b.jsxs)(n.Space,{className:null!==(l=null===e||void 0===e?void 0:e.className)&&void 0!==l?l:"",children:[(0,b.jsx)("span",{className:L,children:e.label}),e.description&&(0,b.jsx)("span",{className:k,children:e.description})]})})]}),i&&c]})}})}})},45776:(e,t,l)=>{l.d(t,{yK:()=>M,ON:()=>_,Ay:()=>V});var n=l(53986),a=l(89379),s=l(30509),r=l(73884),o=l(96418),i=l.n(o),c=l(55199),d=l(64671),u=l(73161),p=l(33097),m=l.n(p),h=l(79686),g=l.n(h);const _=e=>{const t=Array.from(e.values()),l=t.filter((e=>null===e.parentId)),n=(e,t)=>{const l=e.indexOf(t);l>-1&&e.splice(l,1)},a=t=>{const l=[],n=t=>{const a=e.get(t);a&&Array.isArray(a.children)&&a.children.length>0&&(l.push(...a.children),a.children.forEach((e=>{n(e.id)})))};return n(t),l},s=(t,l)=>{const n=t=>{const a=e.get(t);return a?l(a)?a:g()(a.parentId)?null:n(a.parentId):null};return n(t)},r=t=>{const n=e.get(t);if(!n)return[];const a=n.parentId;if(g()(a))return l;return e.get(a).children},o=(()=>{const e=l=>Array.isArray(l)&&l.length>0?l.map((l=>{const n=t.filter((e=>e.parentId===l.id));return Object.assign({},l,{children:e(n)})})):null;return e(l)})();return{mapping:e,getSelectedQueue:t=>{const l=e.get(t);if(!l)return[];const n=e=>{if(e.children&&e.children.length>0)return n(e.children.find((t=>t.children&&e.children.length>0))||m()(e.children,"0"));const t=a(e.parentId).find((e=>e.children&&e.children.length>0));return t?n(t):e},s=function(t){const l=[t,...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]],n=e.get(t);return!n||g()(n.parentId)?l:s(n.parentId,l)},r=n(l);return s(m()(r,"id"))},getAllChildren:a,computedCheckboxStatus:function(t){let l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];if(s(t,(e=>l.indexOf(e.id)>-1)))return{checked:!0,indeterminate:!1};const n=(t=>{const n=t=>{const a=e.get(t);return a?(s=a,l.indexOf(s.id)>-1?a:Array.isArray(a.children)&&a.children.length>0?a.children.find((e=>!!n(e.id))):void 0):null;var s};return!!n(t)})(t);return n?{checked:!1,indeterminate:!0}:{checked:!1,indeterminate:!1}},getSiblingNode:r,findInParents:s,setNodeChecked:function(t){const l=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),s=t=>{const o=e.get(t);if(!o)return;l.push(t),a(t).forEach((e=>{n(l,e.id)}));const i=r(t),c=i.every((e=>l.indexOf(e.id)>-1));o.parentId&&c&&(i.forEach((e=>{n(l,e.id)})),s(o.parentId))};return s(t),l},setNodeUnchecked:function(t){const l=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).slice(0),a=t=>{const s=e.get(t);if(!s)return;if(l.indexOf(s.id)>-1)return void n(l,s.id);const o=r(t);s.parentId&&(o.forEach((e=>{t!==e.id&&l.push(e.id)})),a(s.parentId))};return a(t),l},treeData:o,treeMapping:new Map(o.map((e=>[e.id,e])))}};var f=l(74065),x=l.n(f),A=l(19853),v=l.n(A),y=l(17342),C=l(83136),j=l.n(C);const b={content:"style_content__Hxlt9__r4rl1",columns:"style_columns__FmtPF__r4rl1","content-item":"style_content-item__i6HCO__r4rl1","last-level-area":"style_last-level-area__2y7jQ__r4rl1","is-popup":"style_is-popup__+r3Mn__r4rl1",menu:"style_menu__WZUVE__r4rl1","scroll-plus-box":"style_scroll-plus-box__QcTst__r4rl1","menu-label":"style_menu-label__iGt0Z__r4rl1","menu-item":"style_menu-item__hXHfm__r4rl1","checkbox-hidden":"style_checkbox-hidden__Xpx7J__r4rl1",loading:"style_loading__ZwrVe__r4rl1"};var N=l(87558),S=l(47458),w=l(25438),O=l(70579),P=l(27047);const I=["data","name","type","cache","children","getLabel"],L=new Map,k=(0,N.withFetch)((e=>{let{data:t,name:l,type:s,cache:o,children:i,getLabel:c}=e,d=(0,n.A)(e,I);const u=(0,r.useMemo)((()=>new Map(t.map((e=>[e.code,(0,a.A)((0,a.A)({},e),{},{id:e.code,label:c?c(e):e.chName,parentId:e.parentCode||null})])))),[t,c]).get(l);return L.set("".concat(l,"_").concat(s),u),i(u,d)})),F=e=>{const{locale:t}=(0,P.A)(),l="".concat(t,"_").concat(e.name,"_").concat(e.type),n=L.get(l);return n&&!e.force?e.children(n):(0,O.jsx)(k,(0,a.A)({},e))};F.defaultProps={children:e=>m()(e,"label","")};const M=F,T=["maxLength","nodeFormat","dataFormat"],R=s.A.useContext,D=(0,N.withFetch)((e=>{let{data:t,computedIsChecked:l,onSelect:n}=e;return(0,O.jsx)(y.A,{className:b["scroll-plus-box"],children:(0,O.jsx)(c.List,{className:w.A.list,size:"small",dataSource:t,rowKey:"value",renderItem:e=>{const t=l(e);return(0,O.jsx)(c.List.Item,{className:j()(w.A["list-item"],{[w.A["is-selected"]]:t}),onClick:()=>n(e,t),children:(0,O.jsx)("span",{className:w.A["item-label"],children:e.label})})}})})})),E=e=>{let{value:t,setValue:l,size:n,selectLevel:s}=e;const{fetchApi:o,props:p}=R(),[h,g]=(0,r.useState)(""),f=i()(p.dataFormat),{formatMessage:A}=(0,S.useIntl)({moduleName:"Common"}),C=o.data,N=(0,r.useMemo)((()=>new Map(f(C).list.map((e=>[e.value,e])))),[C,f]),P=(0,r.useMemo)((()=>_(N)),[N]),I=(0,r.useRef)({});I.current={createMergeTree:p.createMergeTree,loadMore:o.loadMore,openLoadData:p.openLoadData,parentIdKey:p.parentIdKey,treeUtils:P};const[L,k]=(0,r.useState)((()=>{const e=t.find((e=>!!N.get(e)));return P.getSelectedQueue(e||m()(o.data.find((e=>e.children&&e.children.length>0)),"id")||m()(o.data,"[0].id"),N)}));(0,r.useEffect)((()=>{const{openLoadData:e,loadMore:t,parentIdKey:l,createMergeTree:n,treeUtils:a}=I.current;if(!e)return;const s=N.get(x()(L));if(!s)return;const r=a.getSelectedQueue(s.id);v()(L,r)?s.hasOwnProperty("children")||t({data:{[l]:s.id}},n(s.id)):k(r)}),[L,N]);const F=(e,a)=>{const s=(()=>{if(p.onlyAllowLastLevel&&e){const e=t.slice(0);return e.push(a),e}if(p.onlyAllowLastLevel){const e=t.slice(0);return e.splice(t.indexOf(a),1),e}return e?P.setNodeChecked(a,t):P.setNodeUnchecked(a,t)})();s.length>n?c.message.error(A({id:"maxSelectedCount"},{count:n})):l(p.single&&s.length>0?[x()(s)]:s)},M=e=>{const t=N.get(e);return!(!p.openLoadData||t.hasOwnProperty("children"))||t.children&&t.children.length>0},T=!p.openLoadData&&"function"===typeof p.onSearch,E=T&&h&&(0,O.jsx)(D,{data:{searchText:h},loader:e=>{let{data:t}=e;return p.onSearch(t.searchText,{mapping:N})},computedIsChecked:e=>t.indexOf(e.id)>-1,onSelect:(e,t)=>{F(!t,e.id),!t&&k(P.getSelectedQueue(e.id,N)),g("")}});return(0,O.jsxs)("div",{className:j()(b.content,{[b["is-popup"]]:p.isPopup,[b["has-search"]]:T}),style:{"--menu-item-width":p.menuItemWidth},children:[T&&(0,O.jsx)(u.A,{isPopup:p.isPopup,className:j()(w.A["search-input"],{[w.A["is-popup"]]:p.isPopup}),placeholder:p.searchPlaceholder||A({id:"search"}),value:h,onSearch:e=>{g(e)}}),E||(0,O.jsx)("div",{children:(0,O.jsx)(y.A,{className:b.scroller,options:{autoHide:!1},children:(0,O.jsxs)("div",{className:b.columns,children:[L.map(((e,l)=>{const n=N.get(e),o=P.getSiblingNode(e),i=!M(null===n||void 0===n?void 0:n.id)&&l>0;return(0,O.jsx)(y.A,{className:j()(b["content-item"],{[b["last-level-area"]]:i}),children:i?(0,O.jsx)(c.Space,{wrap:!0,children:o.map((e=>(0,r.createElement)(c.Checkbox,(0,a.A)((0,a.A)({},P.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=>F(t.target.checked,e.id)}),e.label)))}):(0,O.jsx)(c.Menu,{className:j()(b.menu),onSelect:e=>{const l=N.get(e.key);if(l)if(M(l.id))k(P.getSelectedQueue(l.id,N));else{const{checked:e}=P.computedCheckboxStatus(l.id,t);F(!e,l.id)}},selectedKeys:l===L.length-1?[]:L,items:o.map((e=>({key:e.id,label:(0,O.jsxs)(c.Space,{className:j()(b["menu-item"],{[b["checkbox-hidden"]]:p.onlyAllowLastLevel&&M(e.id)}),children:[!p.onlyAllowLastLevel&&(0,O.jsx)(c.Checkbox,(0,a.A)((0,a.A)({},P.computedCheckboxStatus(e.id,t)),{},{disabled:s>1&&t.indexOf(e.parentCode)>-1,onChange:t=>F(t.target.checked,e.id)})),(0,O.jsx)("div",{className:b["menu-label"],children:e.label}),M(e.id)&&(0,O.jsx)(d.default,{className:b["menu-item-icon"],type:"icon-arrow-thin-right",size:12})]})})))})},m()(o,"[0].id",l))})),o.isComplete?null:(0,O.jsx)("div",{className:b.loading,children:(0,O.jsx)(c.Spin,{size:"small"})})]})})})]})},z=e=>{let{maxLength:t,nodeFormat:l,dataFormat:r}=e,o=(0,n.A)(e,T);return(0,O.jsx)(s.A,(0,a.A)((0,a.A)({},o),{},{dataFormat:e=>r(e,l),children:e=>{let{value:l,setValue:n}=e;return(0,O.jsx)(E,(0,a.A)((0,a.A)({},o),{},{size:t,value:l,setValue:n}))}}))};z.defaultProps={maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,overlayWidth:"460px",menuItemWidth:"180px",openLoadData:!1,onlyAllowLastLevel:!1,parentIdKey:"id",onSearch:(e,t)=>{let{mapping:l}=t;return Array.from(l.values()).filter((t=>t.label.indexOf(e)>-1))},dataFormat:(e,t)=>{const l=(e,n)=>{const a=[];return a.push(...(e||[]).map((e=>("function"===typeof t&&Object.assign(e,t(e)),e.children&&e.children.length>0&&a.push(...l(e.children,e.id)),Object.assign({},e,{value:e.id,parentId:n}))))),a};return{list:l(e,null)}},createMergeTree:e=>(t,l)=>{const n=t=>t.map((t=>t.id===e?Object.assign({},t,{children:l&&l.map((t=>Object.assign({},t,{parentId:e})))}):Array.isArray(t.children)&&t.children.length>0?Object.assign({},t,{children:n(t.children)}):t));return n(t)}};const V=z},41654:(e,t,l)=>{l.d(t,{A:()=>f,K:()=>_});var n=l(89379),a=l(53986),s=l(45776),r=l(27047),o=l(33097),i=l.n(o),c=l(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m=()=>l.e(719).then(l.t.bind(l,10719,19)).then((e=>e.__esModule?e.default:e)),h={cache:"FUNCTION_DATA",isLocal:!0,ttl:864e5,loader:m},g=e=>{let{apis:t}=e,l=(0,a.A)(e,d);const{apis:o,locale:i}=(0,r.A)(),u=Object.assign({},{functionData:h},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.Ay,(0,n.A)((0,n.A)({},l),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:l}=(0,s.ON)(new Map(t.map((e=>[e.code,(0,n.A)((0,n.A)({},e),{},{id:e.code,label:p(e,i),parentId:e.parentCode||null})]))));return l}},u.functionData)}))};g.defaultProps={overlayWidth:"640px",getSearchProps:e=>({data:{searchText:e}})},g.defaultData=m;const _=e=>{let{apis:t}=e,l=(0,a.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{functionData:h},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,n.A)((0,n.A)((0,n.A)({},l),d.functionData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};g.FunctionEnum=g.Enum=_;const f=g},53392:(e,t,l)=>{l.d(t,{A:()=>_,W:()=>g});var n=l(89379),a=l(53986),s=l(45776),r=l(27047),o=l(33097),i=l.n(o),c=l(70579);const d=["apis"],u=["apis"],p=(e,t)=>"en-US"===t?i()(e,"enName"):i()(e,"chName"),m={cache:"INDUSTRY_DATA",isLocal:!0,ttl:864e5,loader:()=>l.e(7183).then(l.t.bind(l,57183,19)).then((e=>e.__esModule?e.default:e))},h=e=>{let{apis:t}=e,l=(0,a.A)(e,d);const{apis:o,locale:i}=(0,r.A)(),u=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.Ay,(0,n.A)((0,n.A)({},l),{},{api:Object.assign({},{transformData:e=>{let{data:t}=e;const{treeData:l}=(0,s.ON)(new Map(t.filter((e=>"000"!==e.code)).map((e=>[e.code,(0,n.A)((0,n.A)({},e),{},{id:e.code,label:p(e,i),parentId:e.parentCode||null})]))));return l}},u.industryData)}))};h.defaultProps={overlayWidth:"635px"};const g=e=>{let{apis:t}=e,l=(0,a.A)(e,u);const{apis:o,locale:i}=(0,r.A)(),d=Object.assign({},{industryData:m},null===o||void 0===o?void 0:o.staticData,t);return(0,c.jsx)(s.yK,(0,n.A)((0,n.A)((0,n.A)({},l),d.industryData),{},{type:"function",getLabel:e=>p(e,i),transformData:e=>{let{data:t}=e;return t}}))};h.IndustryEnum=h.Enum=g;const _=h},26475:(e,t,l)=>{l.d(t,{A:()=>g});var n=l(73884),a=l(55199),s=l(96418),r=l.n(s),o=l(17342),i=l(83136),c=l.n(i),d=l(51941);const u="style_scroller-no-more__EH2J+__r4rl1";var p=l(70579);const m=e=>{let{getScrollerRef:t,loadMore:l,maxFullCount:a}=e;const s=r()(l),o=r()(t);return(0,n.useEffect)((()=>{let e=a;const t=o(),l=async()=>{t.clientHeight===t.scrollHeight&&e>0&&(await s().then((()=>new Promise((e=>{setTimeout(e,500)})))),e--,await l())};l()}),[a,s,o]),null},h=(0,n.forwardRef)(((e,t)=>{let{className:l,noMore:s,onLoader:i,isLoading:h,completeTips:g,maxFullCount:_,children:f}=e;const x=(0,n.useRef)(),A=r()(i),v=(0,n.useRef)(!s&&!h);v.current=!s&&!h,(0,n.useImperativeHandle)(t,(()=>x.current),[]);const y=(0,d.useThrottledCallback)((e=>{const t=e.target;v.current&&t.clientHeight+t.scrollTop+20>t.scrollHeight&&A()}),100);return(0,p.jsxs)(o.A,{className:c()("load-container",l),scrollableNodeProps:{ref:x,onScroll:y},children:[!h&&!s&&(0,p.jsx)(m,{maxFullCount:_,getScrollerRef:()=>x.current,loadMore:A}),(0,p.jsxs)(a.Space,{direction:"vertical",children:[(0,p.jsx)("div",{children:f}),h?(0,p.jsx)("div",{className:u,children:(0,p.jsx)(a.Spin,{size:"small"})}):null,s&&g?(0,p.jsx)("div",{className:u,children:g}):null]})]})}));h.defaultProps={maxFullCount:3,completeTips:"\u52a0\u8f7d\u5b8c\u6210"};const g=h},73161:(e,t,l)=>{l.d(t,{A:()=>_});var n=l(89379),a=l(53986),s=l(55199),r=l(83136),o=l.n(r);const i="style_search-input__8aH1G__r4rl1",c="style_is-popup__L0973__r4rl1";var d=l(64671),u=l(73884),p=l(51941),m=l(70579);const h=["value","debounce","onSearch","isPopup","placeholder","className"],g=e=>{let{value:t,debounce:l,onSearch:r,isPopup:g,placeholder:_,className:f}=e,x=(0,a.A)(e,h);const[A,v]=(0,u.useState)(t),y=(0,u.useRef)(t),C=(0,p.useDebouncedCallback)(r,l);return(0,u.useEffect)((()=>{t!==y.current&&(v(t),y.current=t)}),[t]),(0,m.jsx)(s.Input.Search,(0,n.A)((0,n.A)({},x),{},{allowClear:!0,className:o()(f,i,{[c]:g}),value:A,placeholder:_,prefix:(0,m.jsx)(d.default,{type:"icon-sousuo"}),enterButton:(0,m.jsx)(d.default,{type:"icon-sousuo"}),onChange:e=>{const t=e.target.value;y.current=t,v(t),C(t)},onSearch:e=>{C(e)}}))};g.defaultProps={debounce:500};const _=g},30509:(e,t,l)=>{l.d(t,{A:()=>Z});var n=l(89379),a=l(53986);const s={"ant-tag":"style_ant-tag__nNp8-__r4rl1",overlay:"style_overlay__La5mO__r4rl1",input:"style_input__SpJTE__r4rl1","is-disabled":"style_is-disabled__joxdl__r4rl1","input-icon":"style_input-icon__vVd8R__r4rl1",large:"style_large__En6mL__r4rl1",small:"style_small__DY0AQ__r4rl1","input-inner":"style_input-inner__PWy27__r4rl1","input-custom":"style_input-custom__ktsWD__r4rl1","display-content":"style_display-content__hIKo+__r4rl1","overlay-footer-extra":"style_overlay-footer-extra__Q+BiR__r4rl1","selected-tag":"style_selected-tag__zXZZO__r4rl1","selected-tag-list":"style_selected-tag-list__xUIms__r4rl1","selected-tag-inner":"style_selected-tag-inner__Z5gPL__r4rl1","text-inner":"style_text-inner__H24hY__r4rl1",placeholder:"style_placeholder__x0ccE__r4rl1","is-modal":"style_is-modal__JU+uq__r4rl1","overlay-content":"style_overlay-content__WKqp+__r4rl1"};var r=l(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,r.A)();var u=l(73884),p=l(10986),m=l.n(p),h=l(87558),g=l(33097),_=l.n(g),f=l(55199),x=l(83136),A=l.n(x),v=l(3382),y=l(64671),C=l(79686),j=l.n(C),b=l(41740),N=l.n(b),S=l(74065),w=l.n(S),O=l(21485),P=l(96418),I=l.n(P),L=l(77964),k=l(91176),F=l(47458),M=l(20492),T=l(27047),R=l(70579);const D=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],E=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName","overlayClassName","disabled"],z=["setFetchApi","wrapClassName","getContentRef"],V=["api","className","displayItems","wrapClassName"],W=e=>{let{maxLength:t,single:l,setValue:n,value:a,message:s}=e;return e=>n(!l&&Number.isInteger(t)&&t>0&&e.length>t?(s(),a):e)},B=e=>{let{single:t,value:l,mapping:n,allValue:a,allLabel:r,onClose:o}=e;return l&&Array.isArray(l)&&0!==l.length?t?(0,R.jsx)("span",{className:s["text-inner"],children:_()(n.get(l[0]),"label")||l[0]}):1===l.length&&l[0]===(a||"all")?(0,R.jsx)("span",{className:s["text-inner"],children:r||(0,R.jsx)(F.FormattedMessage,{id:"all",moduleName:"Common"})}):l.map((e=>{const t=n.get(e);return(0,R.jsx)(f.Tag,{className:s["display-tag"],closable:!0,onClose:l=>{l.preventDefault(),o(e,t)},children:(0,R.jsx)("span",{className:s["tag-inner"],children:_()(t,"label")||e})},e)})):null},K=(0,u.forwardRef)(((e,t)=>{let{value:l,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,a.A)(e,D);const[m,h]=(0,u.useState)(l),g=(0,u.useRef)(l),{formatMessage:_}=(0,F.useIntl)({moduleName:"Common"});g.current=l;const[x,A]=(0,u.useState)(!1),y=e=>{var t;A(e),null===(t=p.onOpenChange)||void 0===t||t.call(p,e)},{message:C}=f.App.useApp(),j=W({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:()=>C.error(_({id:"maxSelectedCount"},{count:p.maxLength}))});return(0,u.useEffect)((()=>{x&&h(g.current)}),[x]),(0,u.useImperativeHandle)(t,(()=>({modalOpen:()=>{y(!0)},close:()=>{y(!1)}}))),(0,R.jsx)(v.default,(0,n.A)((0,n.A)({},p),{},{open:x,onConfirm:()=>{r(m)},onClose:()=>{y(!1)},footer:(0,R.jsxs)(f.Space,{direction:"vertical",className:s["overlay-footer"],children:[o&&(0,R.jsx)("div",{className:s["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:j})]}),children:"function"===typeof d?d({value:m,setValue:j}):d}))})),U=(0,u.forwardRef)(((e,t)=>{let{value:l,setValue:r,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:g,wrapClassName:_,overlayClassName:x,disabled:v}=e,y=(0,a.A)(e,E);const[C,j]=(0,u.useState)(!1),b=I()((e=>{var t;j(e),null===(t=y.onOpenChange)||void 0===t||t.call(y,e)}));return(0,u.useImperativeHandle)(t,(()=>({close:()=>{b(!1)}})),[b]),v?(0,R.jsx)("div",{className:s["input-inner"],children:p}):(0,R.jsx)(f.Popover,(0,n.A)((0,n.A)({},y),{},{open:C,onOpenChange:b,transitionName:"ant-slide-up",overlayClassName:A()(s.overlay,x),arrow:!1,content:(0,R.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:A()(s["overlay-content"],"over-content"),onClick:e=>{e.stopPropagation()},children:[(0,R.jsx)("div",{className:s["overlay-inner"],children:"function"===typeof o?o({value:l,setValue:e=>{(!m||l[0]!==e[0])&&r(e),m&&b(!1)}}):o}),(c||h)&&(0,R.jsxs)("div",{className:s["overlay-footer"],children:[h&&(0,R.jsx)("div",{className:s["overlay-footer-extra"],children:h}),c&&i({value:l,setValue:r})]})]}),trigger:"click",placement:d,children:(0,R.jsx)("div",{className:s["input-inner"],children:p})}))})),q=(0,h.withFetch)((e=>{let{setFetchApi:t,wrapClassName:l,getContentRef:n}=e,r=(0,a.A)(e,z);const[o,c]=(0,u.useState)(!1),d=(0,u.useRef)(null),p=(0,u.useRef)(null),m=i(),{valueState:h,mapping:g,props:_,inputWidth:x}=m,[v,C]=h,{formatMessage:j}=(0,F.useIntl)({moduleName:"Common"}),{single:b,placement:N,getPopupContainer:S,placeholder:w,isPopup:P,disabled:L,showSelectedTag:M,extra:T,inputContent:D,allowClear:E,overlayClassName:V}=_,W=(0,u.useRef)(r);W.current=r;const q=I()(n);(0,u.useEffect)((()=>{q(P?p:d)}),[P,q]),(0,u.useEffect)((()=>{t(Object.assign({},W.current,{data:r.data,isComplete:r.isComplete}))}),[r.data,t,r.isComplete]);const H=B({single:b,value:v,mapping:g,allValue:_.allValue,allLabel:_.allLabel,onClose:e=>{C((t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l}))}}),Q=e=>{let{value:t,setValue:l}=e;return(0,R.jsxs)(f.Space,{className:s["selected-tag"],align:"center",wrap:!1,children:[(0,R.jsxs)("div",{children:[(0,R.jsx)(F.FormattedMessage,{id:"selectedTextAdvanced",moduleName:"Common",defaultMessage:"\u5df2\u9009"}),!_.single&&Number.isInteger(_.maxLength)&&_.maxLength>0?"(".concat(t.length,"/").concat(_.maxLength,")"):"",":"]}),(0,R.jsx)(O.A,{className:s["selected-tag-list"],children:(0,R.jsx)("div",{className:s["selected-tag-inner"],children:B({value:t,mapping:g,allValue:_.allValue,allLabel:_.allLabel,onClose:e=>{l((t=>{const l=t.slice(0),n=t.indexOf(e);return n>-1&&l.splice(n,1),l}))}})})})]})},Z=D?D(m):(0,R.jsxs)(f.Space,{className:s["display-content"],onMouseOver:()=>{c(!0)},onMouseOut:()=>{c(!1)},children:[(0,R.jsx)("div",{children:H||(0,R.jsx)("span",{className:s.placeholder,children:w||j({id:"pleaseSelect"})})}),o&&v&&v.length>0&&!L&&E?(0,R.jsx)(y.default,{className:A()(s.close,s["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),C([])}}):(0,R.jsx)(y.default,{className:A()(s["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return P?(0,R.jsx)(U,{ref:p,overlayWidth:(0,k.v)(Math.max(x,(0,k.j)(_.overlayWidth))),value:v,setValue:C,single:b,disabled:L,inputContent:Z,onOpenChange:_.onOpenChange,overlayClassName:V,extra:"function"===typeof T?T({close:()=>p.current.close(),context:m}):T,renderSelectedContent:Q,showSelectedTag:M,trigger:"click",placement:N,getPopupContainer:S,children:_.children}):(0,R.jsxs)("div",{className:s["input-inner"],onClick:()=>{L||d.current.modalOpen()},children:[(0,R.jsx)(K,{size:_.modalSize,ref:d,single:_.single,maxLength:_.maxLength,onOpenChange:_.onOpenChange,disabledScroller:!0,wrapClassName:A()(s.overlay,s["is-modal"],l),title:_.placeholder||j({id:"pleaseSelect"}),value:v,onChange:C,extra:"function"===typeof T?T({close:()=>d.current.close(),context:m}):T,showSelectedTag:M,renderSelectedContent:Q,children:_.children}),Z]})})),H=e=>{let{api:t,className:l,displayItems:r,wrapClassName:o}=e,i=(0,a.A)(e,V);const{locale:d}=(0,T.A)(),[p,h]=(0,u.useState)(""),[g,x]=(0,u.useState)(new Map(r.map((e=>[e.value,e])))),{formatMessage:v}=(0,F.useIntl)({moduleName:"Common"}),[y,C]=(0,u.useState)(0),b=(0,L.A)((e=>{C(e.clientWidth)})),[S,O]=(0,u.useState)({}),{message:P}=f.App.useApp(),I=e=>{const t=e.filter((e=>g.get(e.value)!==e));0!==t.length&&x((e=>{const l=N()(e);return t.forEach((e=>{l.set(e.value,e)})),l}))},k=e=>((e,t)=>Array.isArray(e)&&e.every((e=>e&&e.hasOwnProperty("value")&&e.hasOwnProperty("label")))?(t(e),e.map((e=>e.value))):e)(i.single?j()(e)?[]:[e]:e||[],I,i.valueType),[M,D]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,l)=>"all"!==l?e:e.map((e=>t.get(e))).filter((e=>!!e)))(e,g,i.valueType);i.onChange&&i.onChange(i.single?w()(t):t)}},"value"in i?{value:k(i.value)}:{defaultValue:k(i.defaultValue)})),E=W({maxLength:i.maxLength,single:i.single,setValue:D,value:M,message:()=>P.error(v({id:"maxSelectedCount"},{count:i.maxLength}))}),z=(0,u.useRef)(null);return(0,R.jsx)(c,{value:{inputWidth:y,mapping:g,searchText:p,setSearchText:h,appendMapping:I,setItems:e=>{S.setData(e),I(_()(i.dataFormat(e,{locale:d}),"list",[]))},getContentApi:()=>z.current,fetchApi:S,valueState:[M,E],props:i},children:(0,R.jsx)("div",{ref:b,className:A()(s["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],{"select-input-disabled":!!i.disabled},l),children:(0,R.jsx)(q,(0,n.A)((0,n.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:O,getContentRef:e=>{e.current&&(z.current=e.current)},onRequestSuccess:e=>{I(_()(i.dataFormat(e,{locale:d}),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};H.defaultProps={displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",showSelectedTag:!0,allowClear:!0};const Q=(0,F.createWithIntl)({importMessages:M.A,moduleName:"Common"})(H);Q.useContext=i;const Z=Q},17342:(e,t,l)=>{l.d(t,{A:()=>s});var n=l(8762),a=l.n(n);l(46733);const s=a()},21485:(e,t,l)=>{l.d(t,{A:()=>p});var n=l(89379),a=l(53986),s=l(73884),r=l(44418),o=l.n(r),i=l(96418),c=l.n(i),d=l(70579);const u=["children","onScroll","options","onReady"],p=(0,s.forwardRef)(((e,t)=>{let{children:l,onScroll:r,options:i,onReady:p}=e,m=(0,a.A)(e,u);const h=(0,s.useRef)(null),g=(0,s.useRef)(null),_=(0,s.useRef)(i),f=c()(p),x=c()(r);return(0,s.useImperativeHandle)(t,(()=>g.current)),(0,s.useEffect)((()=>{const e=new(o())(h.current,_.current);return g.current=e.getScrollElement(),g.current.addEventListener("scroll",x),f(g.current),()=>{g.current.removeEventListener("scroll",x)}}),[x,f,l]),(0,d.jsx)("div",(0,n.A)((0,n.A)({},m),{},{ref:h,children:l}))}))},35063:(e,t,l)=>{l.d(t,{$9:()=>h,Ay:()=>p,e0:()=>m});var n=l(89379),a=l(73884),s=l(42597),r=l.n(s),o=l(3382),i=l(40438),c=l(55199),d=(l(96316),l(70579));const u=(0,a.forwardRef)(((e,t)=>{const l=Object.assign({},{children:e=>{let{components:t}=e;return(0,d.jsxs)(c.Flex,{vertical:!0,children:[t.search,t.selectedAll,t.fetchList,!1!==l.isPopup&&t.selectedTag]})},renderModal:e=>{const{props:t,open:l,onOpenChange:n,value:a,onComplete:r}=e,{placeholder:i,children:c,showSelectedTag:u,onConfirm:p}=t;return(0,d.jsx)(o.default,{title:i,open:l,onClose:()=>{n(!1)},footer:u&&(0,d.jsx)(s.SelectedTagList,{}),onConfirm:()=>{if(r(),"function"===typeof p)return p(a)},children:c(e)})}},e);return(0,d.jsx)(r(),(0,n.A)((0,n.A)({},l),{},{ref:t}))})),p=u,m=(0,a.forwardRef)(((e,t)=>{const l=Object.assign({},{renderModal:e=>{const{props:t,open:l,value:n,onOpenChange:a,onComplete:s}=e,{placeholder:r,children:i,onConfirm:c}=t;return(0,d.jsx)(o.default,{title:r,open:l,onClose:()=>{a(!1)},onConfirm:()=>{if(s(),"function"===typeof c)return c(n)},children:i(e)})}},e);return(0,d.jsx)(s.SelectTableList,(0,n.A)((0,n.A)({},l),{},{ref:t}))})),h=(0,a.forwardRef)(((e,t)=>(0,d.jsx)(u,(0,n.A)((0,n.A)({},e),{},{ref:t,renderItemContent:e=>{let{item:t,props:l}=e;const{labelKey:a}=l;return(0,d.jsxs)(c.Flex,{gap:8,children:[(0,d.jsx)(i.default.Avatar,(0,n.A)((0,n.A)({},Object.assign({},t.avatar)),{},{size:40,gender:"M"})),(0,d.jsxs)("div",{children:[(0,d.jsx)("div",{className:"select-list-item-label",children:t[a]}),t.description&&(0,d.jsx)("div",{className:"select-list-item-description",children:t.description})]})]})}}))))},89319:(e,t,l)=>{l.d(t,{A:()=>m});var n=l(89379),a=l(20454),s=l(55199),r=l(10986),o=l.n(r),i=l(57469),c=l.n(i),d=l(20492),u=l(47458),p=l(70579);const m=(0,u.createWithIntl)({importMessages:d.A,moduleName:"Common"})((e=>{let t=Object.assign({},((0,a.A)(e),e));const{formatMessage:l}=(0,u.useIntl)({moduleName:"Common"}),r=new Map([["date",l({id:"customTime"})],["month",l({id:"monthly"})],["week",l({id:"weekly"})]]),[i,d]=o()(t);return(0,p.jsxs)(s.Space.Compact,{children:[(0,p.jsx)(s.Select,{style:{width:"120px"},value:(null===i||void 0===i?void 0:i.type)||"date",onChange:e=>{d((t=>{var l;return{value:null!==t&&void 0!==t&&null!==(l=t.value)&&void 0!==l&&l.length?[c()(t.value[0]).startOf(e||"date"),c()(t.value[1]).endOf(e||"date")]:null,type:e||"date"}}))},options:Array.from(r).map((e=>{let[t,l]=e;return{label:l,value:t}}))}),(0,p.jsx)(s.DatePicker.RangePicker,(0,n.A)((0,n.A)({},t),{},{picker:(null===i||void 0===i?void 0:i.type)||"date",value:Array.isArray(null===i||void 0===i?void 0:i.value)&&2===i.value.length&&i.value.map((e=>e&&c()(e))),onChange:e=>{d((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,l)=>{l.d(t,{A:()=>n});const n=e=>({"en-US":()=>l.e(3086).then(l.bind(l,13086)),"zh-CN":()=>l.e(4308).then(l.bind(l,84308))}[e]())},17508:(e,t,l)=>{l.d(t,{AG:()=>v,Ay:()=>f,FI:()=>A,Zi:()=>x,lN:()=>s.useFileUpload});var n=l(89379),a=l(53986),s=l(54542),r=l(55199),o=l(83136),i=l.n(o),c=l(70579);const d=["className","multiple","accept","onChange","children"],u=["children"],p=["children"],m=["className","multiple","accept","onChange","children"],h=["children"],g=["className","multiple","accept","onChange","children"],_=["children"],f=e=>t=>{let{className:l,multiple:r,accept:o,onChange:i,children:p}=t,m=(0,a.A)(t,d);return(0,c.jsx)(s.FileInput,{className:l,multiple:r,accept:o,onChange:i,children:t=>{let{children:l}=t,s=(0,a.A)(t,u);return(0,c.jsxs)(e,(0,n.A)((0,n.A)({},Object.assign({},m,s)),{},{children:[p,l]}))}})},x=e=>{let{children:t}=e,l=(0,a.A)(e,p);return(0,c.jsx)(s.FileInput,(0,n.A)((0,n.A)({},l),{},{buttonText:t}))},A=e=>{let{className:t,multiple:l,accept:o,onChange:i,children:d}=e,u=(0,a.A)(e,m);return(0,c.jsx)(s.FileInput,{className:t,multiple:l,accept:o,onChange:i,children:e=>{let{children:t}=e,l=(0,a.A)(e,h);return(0,c.jsxs)(r.Typography.Link,(0,n.A)((0,n.A)({},Object.assign({},u,l)),{},{children:[d,t]}))}})},v=e=>{let{className:t,multiple:l,accept:o,onChange:d,children:u}=e,p=(0,a.A)(e,g);return(0,c.jsx)(s.FileInput,{className:i()(t,"ant-btn"),multiple:l,accept:o,onChange:d,children:e=>{let{children:t}=e,l=(0,a.A)(e,_);return(0,c.jsxs)(r.Typography.Text,(0,n.A)((0,n.A)({},Object.assign({},p,l)),{},{children:[u,t]}))}})}},97211:(e,t,l)=>{l.d(t,{A:()=>n.withOSSFile});var n=l(54542)},27047:(e,t,l)=>{l.d(t,{A:()=>r});var n=l(83694),a=l(33097),s=l.n(a);const r=()=>{const e=(0,n.useGlobalContext)();return s()(e,"preset",{apis:{}})}},77964:(e,t,l)=>{l.d(t,{A:()=>d});var n=l(73884),a=l(79889),s=l.n(a),r=l(93950),o=l.n(r),i=l(96418),c=l.n(i);const d=(e,t)=>{const l=(0,n.useRef)(null);l.current=Object.assign({},{time:500,isDebounce:!1},t);const a=(0,n.useRef)(null),r=c()(e);return(0,n.useLayoutEffect)((()=>{const e=a.current,t=()=>window.requestAnimationFrame((()=>{e&&r(e)}));t();const n=new ResizeObserver((l.current.isDebounce?o():s())(t,l.current.time));return e&&n.observe(e),()=>{n.disconnect()}}),[r]),a}},81348:(e,t,l)=>{l.d(t,{A:()=>n.computedAccept});var n=l(54542)},69484:(e,t,l)=>{l.d(t,{A:()=>a,e:()=>n});const n=1e15,a=e=>{let t,l,a,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))>=n)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,l=""):(a=e.split("."),t=a[0],l=a[1].substr(0,4)),parseInt(t,10)>0){let e=0,l=t.length;for(let n=0;n<l;n++){let a=t.substr(n,1),i=l-n-1,d=i/4,u=i%4;"0"===a?e++:(e>0&&(c+=s[0]),e=0,c+=s[parseInt(a)]+r[u]),0===u&&e<4&&(c+=o[d])}c+="\u5143"}if(""!==l){let e=l.length;for(let t=0;t<e;t++){let e=l.substr(t,1);"0"!==e&&(c+=s[Number(e)]+i[t])}}return""===c?c+=s[0]+"\u5143\u6574":""===l&&(c+="\u6574"),c=d+c,c}},74981:(e,t,l)=>{l.d(t,{A:()=>a});var n=l(73884);const a=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,n.createContext)(e),{Provider:l,Consumer:a}=t;return{context:t,Provider:l,Consumer:a,useContext:()=>(0,n.useContext)(t)}}},55490:(e,t,l)=>{l.d(t,{A:()=>n.isNotEmpty});var n=l(39129)},91176:(e,t,l)=>{l.d(t,{j:()=>a,v:()=>n});const n=e=>"number"===typeof e?"".concat(e,"px"):e,a=e=>{if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}},43856:(e,t,l)=>{l.r(t),l.d(t,{AddressEnum:()=>h.qn,AddressInputField:()=>h.TM,AddressSelectField:()=>h.Ay,AdvancedSelectField:()=>g.Ay,CascaderField:()=>f.Ay,FetchButton:()=>i.A,FunctionEnum:()=>x.K,FunctionSelectField:()=>x.A,IndustryEnum:()=>A.W,IndustrySelectField:()=>A.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,SuperSelectField:()=>_.Ay,SuperSelectTableListField:()=>_.e0,SuperSelectUserField:()=>_.$9,TableField:()=>g.Bm,TypeDateRangePickerField:()=>v.A,UserField:()=>g.Eo,accept:()=>C.A,changeMoneyToChinese:()=>n.A,createAddressApi:()=>h.LH,createDeferred:()=>b(),createListField:()=>g.NR,createTreeUtils:()=>f.ON,getContainerBody:()=>a.c,getPopupContainer:()=>s,getScrollEl:()=>a.h,isNotEmpty:()=>N.A,numberToPx:()=>S.v,pxToNumber:()=>S.j,useFileUpload:()=>m.lN,useResize:()=>y.A,withAddressApi:()=>h.DF,withInputFile:()=>m.Ay,withOSSFile:()=>r.A});var n=l(69484),a=l(76801);const s=e=>{const t=e=>{const l=(0,a.h)();if(!e||e===l||!e.parentElement)return l;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=l(97211),o=l(26475),i=l(73025),c=l(21485),d=l(17342),u=l(73161),p=l(30509),m=l(17508),h=l(93761),g=l(12392),_=l(35063),f=l(45776),x=l(41654),A=l(53392),v=l(89319),y=l(77964),C=l(81348),j=l(1582),b=l.n(j),N=l(55490),S=l(91176)},40438:(e,t,l)=>{l.r(t),l.d(t,{default:()=>O});var n=l(89379),a=l(53986),s=l(87558),r=l.n(s),o=l(97211),i=l(64671),c=l(83136),d=l.n(c),u=l(55199),p=l(73884);const m=e=>{let{params:t}=e;const{data:l}=t;return new Promise(((e,t)=>{const n=new window.Image;n.src=l,n.addEventListener("load",(()=>{e(l)})),n.addEventListener("error",(e=>{t(e)}))}))},h="style_img-outer__4QLY5__r4rl1",g="style_img__PSExq__r4rl1",_="style_loading__WCOwA__r4rl1",f="style_error__+ECgZ__r4rl1";var x=l(18411),A=l(63908),v=l(70579);const y=["id","src","alt","onClick","loading","error","className","apis"],C=["id","src","alt","gender","loading","error","className","gap","icon","children","shape","size","width","height","defaultAvatar","apis"],j=e=>{let{data:t,className:l,alt:n,innerLoading:a,loading:s,error:o,innerError:i,children:c,onClick:u,staticUrl:p}=e;const{staticUrl:h}=(0,A.usePreset)(),_=p||h||"";return(0,v.jsx)(r(),{loader:m,params:{data:/^https?:\/\//.test(t)?t:_+t},error:i||o,loading:a||s,render:e=>{let{data:t}=e;return"function"===typeof c?c({alt:n,className:d()(l,g),src:t}):(0,v.jsx)("img",{alt:n,className:d()(l,g),src:t,onClick:u})}})},b=(0,o.A)(j),N=e=>{let{loading:t,error:l,src:n,id:a,alt:s,className:r,children:o,apis:i,onClick:c}=e;const d=t&&(0,p.cloneElement)(t,{className:_}),u=l&&(0,p.cloneElement)(l,{className:f});return n?(0,v.jsx)(j,{alt:s,className:r,data:n,loading:d,error:u,onClick:c,children:o}):a?(0,v.jsx)(b,{alt:s,className:r,id:a,loading:d,innerLoading:d,error:u,innerError:u,apis:i,onClick:c,children:o}):u},S=e=>{let{id:t,src:l,alt:s,onClick:r,loading:o,error:i,className:c,apis:u}=e,p=(0,a.A)(e,y);return(0,v.jsx)("div",(0,n.A)((0,n.A)({},p),{},{"data-testid":"components-core-image",className:d()(c,h),children:N({loading:o,error:i,src:l,id:t,alt:s,className:c,apis:u,onClick:r})}))};S.Avatar=e=>{let{id:t,src:l,alt:s,gender:r,loading:o,error:c,className:p,gap:m,icon:g,children:_,shape:f,size:x,width:A,height:y,defaultAvatar:j,apis:b}=e,S=(0,a.A)(e,C);const w=(()=>{const e=A&&y?{style:{width:A,height:y}}:{size:x};if(A&&A!==y&&(f="square"),t||l)return N({loading:o,error:c,src:l,defaultAvatar:j,id:t,alt:s,className:p,apis:b,children:t=>(0,v.jsx)(u.Avatar,(0,n.A)((0,n.A)({},t),{},{gap:m,shape:f},e))});if(r){const t=r&&["F","female","f"].indexOf(r)>-1?"icon-color-touxiang-nv":"icon-color-touxiang-nan";return(0,v.jsx)(u.Avatar,(0,n.A)((0,n.A)({},S),{},{src:(0,v.jsx)(i.default,{role:"touxiang",colorful:!0,type:t}),gap:m,shape:f},e))}return(0,v.jsx)(u.Avatar,(0,n.A)((0,n.A)((0,n.A)({},S),{},{gap:m,icon:g,shape:f,size:x,src:j},e),{},{children:_}))})();return(0,v.jsx)("div",(0,n.A)((0,n.A)({},S),{},{"data-testid":"components-core-image-avatar",className:d()(p,h),style:{width:A&&y?A:x,height:A&&y?y:x},children:w}))};const w={error:(0,v.jsx)(i.default,{role:"error-icon",colorful:!0,type:"icon-color-touxiang-nan"}),loading:(0,v.jsx)(u.Skeleton.Avatar,{shape:"square",active:!0})};S.defaultProps=Object.assign({},w),S.Avatar.defaultProps=Object.assign({},w,{size:100,defaultAvatar:x.A});const O=S},3382:(e,t,l)=>{l.r(t),l.d(t,{ModalButton:()=>W,TabsModal:()=>R,TabsModalButton:()=>V,default:()=>L,useConfirmModal:()=>I,useModal:()=>P,useTabsModal:()=>D});var n=l(89379),a=l(53986),s=l(73884),r=l(55199),o=l(83136),i=l.n(o);const c={modal:"style_modal__Pm3cF__r4rl1",large:"style_large__iaqVE__r4rl1","modal-body-inner":"style_modal-body-inner__4PhpA__r4rl1","modal-title":"style_modal-title__dswaw__r4rl1","modal-outer":"style_modal-outer__r3SkX__r4rl1","modal-body":"style_modal-body__jQJSI__r4rl1","right-options-modal":"style_right-options-modal__FajDP__r4rl1","right-options-row":"style_right-options-row__-mPb9__r4rl1","right-options-col":"style_right-options-col__3ilee__r4rl1","is-disabled-scroller":"style_is-disabled-scroller__PmHyk__r4rl1",content:"style_content__k6MIF__r4rl1","modal-footer":"style_modal-footer__-prbN__r4rl1","modal-close":"style_modal-close__Oa5Kl__r4rl1","confirm-modal-wrap":"style_confirm-modal-wrap__YFImr__r4rl1","is-danger":"style_is-danger__H5110__r4rl1",title:"style_title__orTym__r4rl1","has-title":"style_has-title__qy0Wp__r4rl1"},d=e=>({"en-US":()=>l.e(4628).then(l.bind(l,74628)),"zh-CN":()=>l.e(7478).then(l.bind(l,87478))}[e]());var u=l(47458),p=l(64671);const m=(e,t)=>"function"===typeof e?e(t):e;var h=l(81014),g=l(17342),_=l(70579);const f=["ButtonComponent","onClick","autoClose","display"],x=["children","rightOptions","rightSpan","footer","footerButtons","className","size","title","onClose","onConfirm","onCancel","closable","disabledScroller","withDecorator","childrenRef"],A=["children"],v=["type","icon","title","danger","wrapClassName","message","iconSetting","confirmType"],y="Modal",C=e=>{let{options:t,rightSpan:l=6,children:n}=e;return t?(0,_.jsxs)(r.Row,{wrap:!1,className:c["right-options-row"],children:[(0,_.jsx)(r.Col,{span:24-l,className:c["right-options-col"],children:n}),(0,_.jsx)(r.Col,{span:l,className:c["right-options-col"],children:t})]}):n},j=(e,t)=>"".concat(e-48-(t?58:0),"px"),b=e=>{let{footer:t,footerButtons:l,onConfirm:o,onCancel:i,onClose:c,targetProps:p}=e;return(0,_.jsxs)(r.Row,{gutter:10,wrap:!1,children:[(0,_.jsx)(r.Col,{flex:1,children:t}),Array.isArray(l)&&0===l.length?null:(0,_.jsx)(r.Col,{children:(0,_.jsx)(r.Space,{children:(l||[{children:(0,_.jsx)(u.IntlProvider,{importMessages:d,moduleName:y,children:(0,_.jsx)(u.FormattedMessage,{id:"Cancel",moduleName:y})}),onClick:i},{type:"primary",children:(0,_.jsx)(u.IntlProvider,{importMessages:d,moduleName:y,children:(0,_.jsx)(u.FormattedMessage,{id:"Confirm",moduleName:y})}),onClick:o}]).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:l,onClick:r,autoClose:o=!0,display:i}=e,d=(0,a.A)(e,f);const u=l||h.default;return(0,s.createElement)(u,(0,n.A)((0,n.A)({},d),{},{key:t,onClick:async function(){for(var e=arguments.length,t=new Array(e),l=0;l<e;l++)t[l]=arguments[l];const n=await Promise.resolve(r&&r(...t,p));return o&&!1!==n&&c&&c(),n}}))}))})})]})},N=e=>{let{title:t,footer:l,disabledScroller:n,footerButtons:a,onClose:o,closable:d,onConfirm:u,onCancel:m,children:h,targetProps:f}=e;const x=(0,s.useRef)(null);return(0,_.jsxs)("div",{className:c["modal-outer"],"data-testid":"components-core-modal",children:[!1===d?null:(0,_.jsx)(r.Button,{"data-testid":"components-core-modal-close-btn",className:c["modal-close"],type:"text",icon:(0,_.jsx)(p.default,{type:"icon-close-thin"}),onClick:e=>{e.stopPropagation(),o&&o()}}),t&&(0,_.jsx)("div",{className:c["modal-title"],children:t}),(0,_.jsx)(g.A,{className:i()(c["modal-body"],{[c["is-disabled-scroller"]]:n},"modal-body"),ref:x,children:(0,_.jsx)("div",{className:i()(c["modal-body-inner"],"modal-body-inner"),children:h})}),null!==l||a?(0,_.jsx)("div",{className:i()(c["modal-footer"],"modal-footer"),children:(0,_.jsx)(b,{footer:l,footerButtons:a,onConfirm:u,onCancel:m,onClose:o,targetProps:f})}):null]})},S=e=>{let{withDecorator:t,footerButtons:l,title:a,closable:s,onClose:r,onConfirm:o,onCancel:i,footer:c,rightOptions:d,rightSpan:u,disabledScroller:p,childrenRef:h,children:g}=e;const f=e=>(e=Object.assign({},{title:a},e),(0,_.jsx)(N,{title:m(e.title,(0,n.A)((0,n.A)({},e),{},{childrenRef:h,close:r})),closable:s,onClose:r,onConfirm:o,onCancel:i,footerButtons:m(l,(0,n.A)((0,n.A)({},e),{},{close:r})),disabledScroller:p,footer:m(c,(0,n.A)((0,n.A)({},e),{},{childrenRef:h,close:r})),targetProps:Object.assign({},e,{childrenRef:h,close:r}),children:(0,_.jsx)(C,{rightSpan:u,options:m(d,(0,n.A)((0,n.A)({},e),{},{childrenRef:h,close:r})),children:m(g,(0,n.A)((0,n.A)({},e),{},{childrenRef:h,close:r}))})}));return"function"===typeof t?t(f,{childrenRef:h,close:r}):f({})},w=e=>{let{children:t,rightOptions:l,rightSpan:s,footer:r,footerButtons:o,className:p,size:m,title:h,onClose:g,onConfirm:f,onCancel:A,closable:v,disabledScroller:y,withDecorator:C,childrenRef:b}=e,N=(0,a.A)(e,x);return(0,n.A)((0,n.A)((0,n.A)({},N),{},{icon:null,centered:!0,title:null,maskClosable:!!N.hasOwnProperty("maskClosable")&&N.maskClosable,destroyOnClose:!0,footer:null,closable:!1,onCancel:g,className:i()(p,c.modal,c[m],{[c["right-options-modal"]]:l})},((e,t)=>"large"===e?{width:"".concat(Math.min(window.innerWidth-64,1500),"px"),style:{"--min-modal-height":j(500,t)}}:"small"===e?{width:"600px",style:{"--min-modal-height":j(300,t)}}:{width:"1000px",style:{"--min-modal-height":j(500,t)}})(m,!(null===r&&!o))),{},{children:(0,_.jsx)(u.IntlProvider,{importMessages:d,moduleName:"Modal",children:S({withDecorator:C,title:h,closable:v,onClose:g,onConfirm:f,onCancel:A,footer:r,footerButtons:o,rightOptions:l,rightSpan:s,disabledScroller:y,children:t,childrenRef:b})})})},O=e=>{const t=(0,s.useRef)(null);return(0,_.jsx)(r.Modal,(0,n.A)({},w(Object.assign({},e,{childrenRef:t}))))};O.defaultProps={size:"default"};const P=()=>{const{modal:e}=r.App.useApp(),t=(0,s.useRef)(null);return l=>{const s={},r=w((0,n.A)({onClose:()=>s.close(),childrenRef:t},l)),{children:o}=r,i=(0,a.A)(r,A),{destroy:c}=e.info((0,n.A)((0,n.A)({},i),{},{content:o}));return s.close=c,s}},I=()=>{const{modal:e}=r.App.useApp();return t=>{const l={},s=(0,n.A)({onClose:()=>l.close(),maskClosable:!1},t),{type:o,icon:d,title:u,danger:m,wrapClassName:h,message:g,iconSetting:f={},confirmType:x="info"}=s,A=(0,a.A)(s,v),y=Object.assign({},{info:"icon-xinxi-tianchong",confirm:"icon-tishi-tianchong",warning:"icon-tishi-tianchong",error:"icon-shibai",success:"icon-chenggong"},f);if(e[o]){const{destroy:t}=e[o]((0,n.A)((0,n.A)({},A),{},{icon:null,wrapClassName:i()(c["confirm-modal-wrap"],h,{[c["is-danger"]]:m}),title:(0,_.jsx)(r.Space,{direction:"vertical",onClick:e=>{e.stopPropagation()},children:u&&(0,_.jsxs)(r.Space,{size:0,align:"start",className:c.title,children:[m?(0,_.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||y["confirm"===o?x:o]}):null,u]})}),content:(0,_.jsxs)(r.Space,{size:0,align:"start",className:i()(c.content,{[c["has-title"]]:u}),children:[!u&&m?(0,_.jsx)(p.default,{className:i()("title-icon","title-icon-".concat("confirm"===o?x:o)),type:d||y["confirm"===o?x:o]}):null,g]})}));l.close=t}return l}},L=O,k=["items","className","activeKey","withDecorator","defaultActiveKey","onChange"],F=["withDecorator"],M=["children"],T=e=>{let{items:t,className:l,activeKey:s,withDecorator:o,defaultActiveKey:c,onChange:d}=e,u=(0,a.A)(e,k);return(0,n.A)((0,n.A)({},u),{},{className:i()(l,"tabs-modal"),withDecorator:e=>{const l=l=>(0,_.jsx)(r.Tabs,{items:t.map((t=>{let{withDecorator:n}=t,s=(0,a.A)(t,F);return Object.assign({},s,{children:"function"===typeof n?n((t=>e(Object.assign({},l,t,{children:s.children})))):e(Object.assign({},l,{children:s.children}))})})),destroyInactiveTabPane:!0,activeKey:s,defaultActiveKey:c,onChange:d});return"function"===typeof o?o(l):l()},children:e=>{let{children:t}=e,l=(0,a.A)(e,M);return"function"===typeof t?t(l):t}})},R=e=>(0,_.jsx)(L,(0,n.A)({},T(e))),D=()=>{const e=P();return t=>e(T(t))};var E=l(73025);const z=["modalProps"],V=e=>{const t=D();return e.api?(0,_.jsx)(E.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t})):(0,_.jsx)(r.Button,(0,n.A)((0,n.A)({},e),{},{onClick:()=>{t(e.modalProps)}}))},W=e=>{const t=P();if(!e.api){const{modalProps:l}=e,s=(0,a.A)(e,z);return(0,_.jsx)(r.Button,(0,n.A)((0,n.A)({},s),{},{onClick:()=>{t(l)}}))}return(0,_.jsx)(E.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},25438:(e,t,l)=>{l.d(t,{A:()=>n});const n={"search-input":"common_search-input__P6qLg__r4rl1","is-popup":"common_is-popup__fJq+g__r4rl1",list:"common_list__TKFzS__r4rl1","list-item":"common_list-item__ASse7__r4rl1","is-selected":"common_is-selected__-PU4Y__r4rl1","item-label":"common_item-label__u+qz1__r4rl1","item-des":"common_item-des__no2z0__r4rl1"}}}]);
|
|
2
|
+
//# sourceMappingURL=3856.8291b496.chunk.js.map
|