@kne-components/components-core 0.4.48 → 0.4.50
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 +125 -125
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/{1381.97c23e40.chunk.css → 1381.88787b52.chunk.css} +2 -2
- package/build/static/css/{5633.97c23e40.chunk.css.map → 1381.88787b52.chunk.css.map} +1 -1
- package/build/static/css/1742.e24a7786.chunk.css +2 -0
- package/build/static/css/{1742.a9242087.chunk.css.map → 1742.e24a7786.chunk.css.map} +1 -1
- package/build/static/css/{1996.3b1b6ffb.chunk.css → 1996.78d3b216.chunk.css} +2 -2
- package/build/static/css/{1996.3b1b6ffb.chunk.css.map → 1996.78d3b216.chunk.css.map} +1 -1
- package/build/static/css/2004.2ecf10c1.chunk.css +2 -0
- package/build/static/css/{2004.a3f147b1.chunk.css.map → 2004.2ecf10c1.chunk.css.map} +1 -1
- package/build/static/css/2307.bfd8eae1.chunk.css +2 -0
- package/build/static/css/{2307.42c53a3a.chunk.css.map → 2307.bfd8eae1.chunk.css.map} +1 -1
- package/build/static/css/254.143bfa53.chunk.css +2 -0
- package/build/static/css/{254.83fff100.chunk.css.map → 254.143bfa53.chunk.css.map} +1 -1
- package/build/static/css/3404.92842940.chunk.css +2 -0
- package/build/static/css/{3404.5e0de2a8.chunk.css.map → 3404.92842940.chunk.css.map} +1 -1
- package/build/static/css/3625.df0e0595.chunk.css +2 -0
- package/build/static/css/{3625.f7b25f1d.chunk.css.map → 3625.df0e0595.chunk.css.map} +1 -1
- package/build/static/css/{3771.e6925032.chunk.css → 3771.ecf98ddd.chunk.css} +2 -2
- package/build/static/css/{3771.e6925032.chunk.css.map → 3771.ecf98ddd.chunk.css.map} +1 -1
- package/build/static/css/{3790.a8751318.chunk.css → 3790.a93f06df.chunk.css} +2 -2
- package/build/static/css/{3790.a8751318.chunk.css.map → 3790.a93f06df.chunk.css.map} +1 -1
- package/build/static/css/5195.fc328128.chunk.css +2 -0
- package/build/static/css/{5195.76450f82.chunk.css.map → 5195.fc328128.chunk.css.map} +1 -1
- package/build/static/css/{5633.97c23e40.chunk.css → 5633.88787b52.chunk.css} +2 -2
- package/build/static/css/{1381.97c23e40.chunk.css.map → 5633.88787b52.chunk.css.map} +1 -1
- package/build/static/css/5674.505558d8.chunk.css +2 -0
- package/build/static/css/{5674.f576a7c0.chunk.css.map → 5674.505558d8.chunk.css.map} +1 -1
- package/build/static/css/{653.f1a8c344.chunk.css → 653.b666c943.chunk.css} +2 -2
- package/build/static/css/{653.f1a8c344.chunk.css.map → 653.b666c943.chunk.css.map} +1 -1
- package/build/static/css/{6763.ca44e0d1.chunk.css → 6763.a4bcbe18.chunk.css} +2 -2
- package/build/static/css/{6763.ca44e0d1.chunk.css.map → 6763.a4bcbe18.chunk.css.map} +1 -1
- package/build/static/css/7227.2ac964fd.chunk.css +2 -0
- package/build/static/css/{7227.f2b79b4b.chunk.css.map → 7227.2ac964fd.chunk.css.map} +1 -1
- package/build/static/css/{7589.3911b1f5.chunk.css → 7589.90bef6fa.chunk.css} +2 -2
- package/build/static/css/7589.90bef6fa.chunk.css.map +1 -0
- package/build/static/css/{760.002efcd5.chunk.css → 760.647a4313.chunk.css} +2 -2
- package/build/static/css/{760.002efcd5.chunk.css.map → 760.647a4313.chunk.css.map} +1 -1
- package/build/static/css/7857.18070876.chunk.css +2 -0
- package/build/static/css/{7857.d443300e.chunk.css.map → 7857.18070876.chunk.css.map} +1 -1
- package/build/static/css/{7987.97c23e40.chunk.css → 7987.88787b52.chunk.css} +2 -2
- package/build/static/css/{7987.97c23e40.chunk.css.map → 7987.88787b52.chunk.css.map} +1 -1
- package/build/static/css/833.ea57cac0.chunk.css +2 -0
- package/build/static/css/{833.ff73ca39.chunk.css.map → 833.ea57cac0.chunk.css.map} +1 -1
- package/build/static/css/{8593.3cec7681.chunk.css → 8593.7cd412ee.chunk.css} +2 -2
- package/build/static/css/{8593.3cec7681.chunk.css.map → 8593.7cd412ee.chunk.css.map} +1 -1
- package/build/static/css/{8689.906ec3c8.chunk.css → 8689.1a6dca51.chunk.css} +2 -2
- package/build/static/css/{8689.906ec3c8.chunk.css.map → 8689.1a6dca51.chunk.css.map} +1 -1
- package/build/static/css/9556.cefa83c1.chunk.css +2 -0
- package/build/static/css/{9556.84a29ddc.chunk.css.map → 9556.cefa83c1.chunk.css.map} +1 -1
- package/build/static/js/{1125.e36a3fa6.chunk.js → 1125.a3e8873c.chunk.js} +2 -2
- package/build/static/js/1125.a3e8873c.chunk.js.map +1 -0
- package/build/static/js/{1381.37b05f38.chunk.js → 1381.097e564d.chunk.js} +1 -1
- package/build/static/js/1742.8678e315.chunk.js +2 -0
- package/build/static/js/1742.8678e315.chunk.js.map +1 -0
- package/build/static/js/1996.62a2df9b.chunk.js +2 -0
- package/build/static/js/{1996.81afec75.chunk.js.map → 1996.62a2df9b.chunk.js.map} +1 -1
- package/build/static/js/2004.b05fe2b9.chunk.js +3 -0
- package/build/static/js/2004.b05fe2b9.chunk.js.map +1 -0
- package/build/static/js/2233.1f6d8796.chunk.js +2 -0
- package/build/static/js/2233.1f6d8796.chunk.js.map +1 -0
- package/build/static/js/{2242.1273f712.chunk.js → 2242.617afa95.chunk.js} +2 -2
- package/build/static/js/{2242.1273f712.chunk.js.map → 2242.617afa95.chunk.js.map} +1 -1
- package/build/static/js/254.6b8bbedf.chunk.js +2 -0
- package/build/static/js/254.6b8bbedf.chunk.js.map +1 -0
- package/build/static/js/{2723.38314d6e.chunk.js → 2723.cb6a842c.chunk.js} +1 -1
- package/build/static/js/{2931.052429b9.chunk.js → 2931.d829c9a7.chunk.js} +2 -2
- package/build/static/js/2931.d829c9a7.chunk.js.map +1 -0
- package/build/static/js/3120.5fff494a.chunk.js +2 -0
- package/build/static/js/3120.5fff494a.chunk.js.map +1 -0
- package/build/static/js/3245.0e59051d.chunk.js +3 -0
- package/build/static/js/{3245.21a3b598.chunk.js.LICENSE.txt → 3245.0e59051d.chunk.js.LICENSE.txt} +3 -3
- package/build/static/js/3245.0e59051d.chunk.js.map +1 -0
- package/build/static/js/3404.be2d5b5e.chunk.js +3 -0
- package/build/static/js/3404.be2d5b5e.chunk.js.map +1 -0
- package/build/static/js/3625.0ef86fe3.chunk.js +2 -0
- package/build/static/js/3625.0ef86fe3.chunk.js.map +1 -0
- package/build/static/js/3771.f54b12c5.chunk.js +2 -0
- package/build/static/js/{3771.1c9ba03c.chunk.js.map → 3771.f54b12c5.chunk.js.map} +1 -1
- package/build/static/js/3790.c1fab105.chunk.js +2 -0
- package/build/static/js/3790.c1fab105.chunk.js.map +1 -0
- package/build/static/js/3856.b4013dc2.chunk.js +2 -0
- package/build/static/js/3856.b4013dc2.chunk.js.map +1 -0
- package/build/static/js/{4297.71ba78e9.chunk.js → 4297.30f27b86.chunk.js} +2 -2
- package/build/static/js/4297.30f27b86.chunk.js.map +1 -0
- package/build/static/js/4474.68377945.chunk.js +2 -0
- package/build/static/js/{4474.e63d9483.chunk.js.map → 4474.68377945.chunk.js.map} +1 -1
- package/build/static/js/4614.23e24b4e.chunk.js +2 -0
- package/build/static/js/4614.23e24b4e.chunk.js.map +1 -0
- package/build/static/js/5195.76a57010.chunk.js +2 -0
- package/build/static/js/5195.76a57010.chunk.js.map +1 -0
- package/build/static/js/{5633.10b44bd7.chunk.js → 5633.175e0df7.chunk.js} +1 -1
- package/build/static/js/{5674.15935167.chunk.js → 5674.2022f092.chunk.js} +2 -2
- package/build/static/js/{5674.15935167.chunk.js.map → 5674.2022f092.chunk.js.map} +1 -1
- package/build/static/js/{5958.0f13dc94.chunk.js → 5958.0e4aecbc.chunk.js} +2 -2
- package/build/static/js/{5958.0f13dc94.chunk.js.map → 5958.0e4aecbc.chunk.js.map} +1 -1
- package/build/static/js/{6075.0a2f9a12.chunk.js → 6075.25b78309.chunk.js} +2 -2
- package/build/static/js/6075.25b78309.chunk.js.map +1 -0
- package/build/static/js/6763.32bb2def.chunk.js +2 -0
- package/build/static/js/{6763.e209fb3e.chunk.js.map → 6763.32bb2def.chunk.js.map} +1 -1
- package/build/static/js/6873.50e32922.chunk.js +2 -0
- package/build/static/js/6873.50e32922.chunk.js.map +1 -0
- package/build/static/js/{7040.7548c515.chunk.js → 7040.21027489.chunk.js} +2 -2
- package/build/static/js/{7040.7548c515.chunk.js.map → 7040.21027489.chunk.js.map} +1 -1
- package/build/static/js/{7227.7532b45e.chunk.js → 7227.c2d89fb7.chunk.js} +3 -3
- package/build/static/js/{7227.7532b45e.chunk.js.map → 7227.c2d89fb7.chunk.js.map} +1 -1
- package/build/static/js/739.8e5b8c2a.chunk.js +2 -0
- package/build/static/js/739.8e5b8c2a.chunk.js.map +1 -0
- package/build/static/js/{7589.98b577a7.chunk.js → 7589.8e796a0c.chunk.js} +2 -2
- package/build/static/js/{7589.98b577a7.chunk.js.map → 7589.8e796a0c.chunk.js.map} +1 -1
- package/build/static/js/{760.ef91a81a.chunk.js → 760.d219af07.chunk.js} +2 -2
- package/build/static/js/{760.ef91a81a.chunk.js.map → 760.d219af07.chunk.js.map} +1 -1
- package/build/static/js/7857.d0de7aca.chunk.js +2 -0
- package/build/static/js/{7857.bf4de75d.chunk.js.map → 7857.d0de7aca.chunk.js.map} +1 -1
- package/build/static/js/7899.93db7b8a.chunk.js +2 -0
- package/build/static/js/7899.93db7b8a.chunk.js.map +1 -0
- package/build/static/js/833.67e0afef.chunk.js +2 -0
- package/build/static/js/833.67e0afef.chunk.js.map +1 -0
- package/build/static/js/8593.b8caf5fe.chunk.js +2 -0
- package/build/static/js/{8593.e3573f05.chunk.js.map → 8593.b8caf5fe.chunk.js.map} +1 -1
- package/build/static/js/9254.165445d3.chunk.js +2 -0
- package/build/static/js/9254.165445d3.chunk.js.map +1 -0
- package/build/static/js/9556.cf56e497.chunk.js +3 -0
- package/build/static/js/{9556.3942adcb.chunk.js.map → 9556.cf56e497.chunk.js.map} +1 -1
- package/build/static/js/{main.c64479f0.js → main.64eb7a97.js} +2 -2
- package/build/static/js/{main.c64479f0.js.map → main.64eb7a97.js.map} +1 -1
- package/package.json +2 -2
- package/build/static/css/1742.a9242087.chunk.css +0 -2
- package/build/static/css/2004.a3f147b1.chunk.css +0 -2
- package/build/static/css/2307.42c53a3a.chunk.css +0 -2
- package/build/static/css/254.83fff100.chunk.css +0 -2
- package/build/static/css/3404.5e0de2a8.chunk.css +0 -2
- package/build/static/css/3625.f7b25f1d.chunk.css +0 -2
- package/build/static/css/5195.76450f82.chunk.css +0 -2
- package/build/static/css/5674.f576a7c0.chunk.css +0 -2
- package/build/static/css/7227.f2b79b4b.chunk.css +0 -2
- package/build/static/css/7589.3911b1f5.chunk.css.map +0 -1
- package/build/static/css/7857.d443300e.chunk.css +0 -2
- package/build/static/css/833.ff73ca39.chunk.css +0 -2
- package/build/static/css/9556.84a29ddc.chunk.css +0 -2
- package/build/static/js/1125.e36a3fa6.chunk.js.map +0 -1
- package/build/static/js/1742.7cfda614.chunk.js +0 -2
- package/build/static/js/1742.7cfda614.chunk.js.map +0 -1
- package/build/static/js/1996.81afec75.chunk.js +0 -2
- package/build/static/js/2004.dae78252.chunk.js +0 -3
- package/build/static/js/2004.dae78252.chunk.js.map +0 -1
- package/build/static/js/2233.1b5d5710.chunk.js +0 -2
- package/build/static/js/2233.1b5d5710.chunk.js.map +0 -1
- package/build/static/js/254.429a7ed6.chunk.js +0 -2
- package/build/static/js/254.429a7ed6.chunk.js.map +0 -1
- package/build/static/js/2931.052429b9.chunk.js.map +0 -1
- package/build/static/js/3120.d575468c.chunk.js +0 -2
- package/build/static/js/3120.d575468c.chunk.js.map +0 -1
- package/build/static/js/3245.21a3b598.chunk.js +0 -3
- package/build/static/js/3245.21a3b598.chunk.js.map +0 -1
- package/build/static/js/3404.bdab58a6.chunk.js +0 -3
- package/build/static/js/3404.bdab58a6.chunk.js.map +0 -1
- package/build/static/js/3625.391f04a8.chunk.js +0 -2
- package/build/static/js/3625.391f04a8.chunk.js.map +0 -1
- package/build/static/js/3771.1c9ba03c.chunk.js +0 -2
- package/build/static/js/3790.a82f2dfc.chunk.js +0 -2
- package/build/static/js/3790.a82f2dfc.chunk.js.map +0 -1
- package/build/static/js/3856.a75f9ea9.chunk.js +0 -2
- package/build/static/js/3856.a75f9ea9.chunk.js.map +0 -1
- package/build/static/js/4297.71ba78e9.chunk.js.map +0 -1
- package/build/static/js/4474.e63d9483.chunk.js +0 -2
- package/build/static/js/4614.94b249d9.chunk.js +0 -2
- package/build/static/js/4614.94b249d9.chunk.js.map +0 -1
- package/build/static/js/5195.3b24069c.chunk.js +0 -2
- package/build/static/js/5195.3b24069c.chunk.js.map +0 -1
- package/build/static/js/6075.0a2f9a12.chunk.js.map +0 -1
- package/build/static/js/6763.e209fb3e.chunk.js +0 -2
- package/build/static/js/6873.0c39cc25.chunk.js +0 -2
- package/build/static/js/6873.0c39cc25.chunk.js.map +0 -1
- package/build/static/js/739.bc04bd33.chunk.js +0 -2
- package/build/static/js/739.bc04bd33.chunk.js.map +0 -1
- package/build/static/js/7857.bf4de75d.chunk.js +0 -2
- package/build/static/js/7899.92317382.chunk.js +0 -2
- package/build/static/js/7899.92317382.chunk.js.map +0 -1
- package/build/static/js/833.c8341caa.chunk.js +0 -2
- package/build/static/js/833.c8341caa.chunk.js.map +0 -1
- package/build/static/js/8593.e3573f05.chunk.js +0 -2
- package/build/static/js/9254.250dd74b.chunk.js +0 -2
- package/build/static/js/9254.250dd74b.chunk.js.map +0 -1
- package/build/static/js/9556.3942adcb.chunk.js +0 -3
- /package/build/static/js/{2004.dae78252.chunk.js.LICENSE.txt → 2004.b05fe2b9.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{3404.bdab58a6.chunk.js.LICENSE.txt → 3404.be2d5b5e.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7227.7532b45e.chunk.js.LICENSE.txt → 7227.c2d89fb7.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9556.3942adcb.chunk.js.LICENSE.txt → 9556.cf56e497.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([[4474],{1904(e,t,a){a.d(t,{A:()=>i,N:()=>c});var n=a(98434),s=a(43856);const{useOnChange:l,useDecorator:r}=n.hooks,o=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.AddressSelectField);o.Field=s.AddressSelectField,o.AddressEnum=s.AddressSelectField.AddressEnum,o.createAddressApi=s.AddressSelectField.createAddressApi,o.withAddressApi=s.AddressSelectField.withAddressApi;const i=o,c=e=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label,inputPlaceholder:"\u8bf7\u8f93\u5165"+e.label},e))(s.AddressInputField);c.Field=s.AddressInputField},2842(e,t,a){a.d(t,{default:()=>s.a});a(2885);var n=a(48553),s=a.n(n);a.o(n,"PHONE_NUMBER_INPUT")&&a.d(t,{PHONE_NUMBER_INPUT:function(){return n.PHONE_NUMBER_INPUT}})},5995(e,t,a){a.d(t,{Ay:()=>m,Vl:()=>h,W6:()=>g});var n=a(53986),s=a(89379),l=a(3382),r=a(73025),o=a(55199),i=a(76995),c=a(47094),d=a(70579);const u=["classNames"],p=["modalProps"],m=e=>(0,d.jsx)(l.default,(0,s.A)({},(0,i.A)(Object.assign({},e,{className:c.A["form-modal"]})))),h=()=>{const e=(0,l.useModal)();return t=>e((0,i.A)(Object.assign({},t,{className:c.A["form-modal"]})))},g=e=>{let{classNames:t}=e,a=(0,n.A)(e,u);const l=h();if(!a.api){const{modalProps:e}=a,t=(0,n.A)(a,p);return(0,d.jsx)(o.Button,(0,s.A)((0,s.A)({},t),{},{onClick:()=>{l(e)}}))}return(0,d.jsx)(r.A,(0,s.A)((0,s.A)({},a),{},{modalFunc:l}))}},15209(e,t,a){a.d(t,{A:()=>h});var n=a(53986),s=a(89379),l=a(20454),r=a(55199),o=a(10986),i=a.n(o),c=a(13050),d=a(70579);const u=["remoteModules"],p=e=>{let t=Object.assign({},((0,l.A)(e),e));const[a,n]=i()(t);return(0,d.jsx)(r.Input,(0,s.A)((0,s.A)({},t),{},{value:a,onChange:e=>{n(e.target.value?e.target.value.toUpperCase():e.target.value,e)}}))},m=(0,c.createWithRemoteLoader)({modules:["FormInfo@formModule"]})(e=>{let{remoteModules:t}=e,a=(0,n.A)(e,u);const[s]=t,{hooks:l}=s,{useDecorator:r}=l;return r(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(a.label||"")},a))(p)});m.field=p;const h=m},15445(e,t,a){a.d(t,{A:()=>le,E:()=>re});var n=a(89379),s=a(53986),l=a(98434),r=a(30096),o=a(34643),i=a(1904),c=a(83230),d=a(55199),u=a(70579);const{useOnChange:p}=l.hooks,m=e=>(0,u.jsx)(d.ColorPicker,(0,n.A)((0,n.A)({},e),{},{onChange:t=>e.onChange(t.toHexString())})),h=e=>p(Object.assign({},e))(m);h.Field=h;const g=h;var f=a(81026),x=a(78756),A=a(92328),_=a(2842);const j=["checked","children"],{useOnChange:v,useCheckedToValue:y}=l.hooks,{withChecked:C}=l.hoc,b=C(e=>{let{checked:t,children:a=null}=e,l=(0,s.A)(e,j);return(0,u.jsxs)(d.Space,{children:[(0,u.jsx)(d.Switch,(0,n.A)({checked:t},l)),"function"===typeof a?a({checked:t}):a]})}),S=e=>{e=Object.assign({},{fieldName:"switch"},e);const t=y(e);return v(t)(b)};S.Field=d.Switch;const N=S;var w=a(89099),F=a(96339),P=a(36972),R=a(15209),I=a(74529),z=a.n(I),M=a(73884),T=a(52526),O=a(33097),L=a.n(O),k=a(21079),E=a(46237),D=a(56259),U=a(29556),B=a(64671),V=a(83136),W=a.n(V),H=a(70188),q=a(47094);const G=["forwardedRef","label","placeholder","labelRender"],Q=["placeholder","label"],Y=["placeholder","label"],X=["placeholder","label","soFarText"],J=e=>t=>{const a=z()(...e)(e=>{let{forwardedRef:a,label:l,placeholder:r,labelRender:o}=e,i=(0,s.A)(e,G);return(0,u.jsx)(t,(0,n.A)((0,n.A)({},i),{},{label:l,placeholder:r,labelRender:function(){const e="function"===typeof o?o(...arguments):l;return i.tips?(0,u.jsxs)(d.Space,{children:[e,(0,u.jsx)(U.default,{content:i.tips,children:(0,u.jsx)("span",{className:W()(q.A["field-tips"],{[q.A["label-hidden"]]:i.labelHidden}),children:(0,u.jsx)(B.default,{type:"icon-xinxi-miaobian"})})})]}):e},ref:a}))}),l=(0,M.forwardRef)((e,t)=>(0,u.jsx)(a,(0,n.A)((0,n.A)({},e),{},{forwardedRef:t})));return Object.keys(t).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(e=>{l[e]=t[e]}),l},$=e=>(0,H.A)(t=>{let{placeholder:a,label:l}=t,r=(0,s.A)(t,Q);const{formatMessage:o}=(0,T.useIntl)();return(0,u.jsx)(e,(0,n.A)((0,n.A)({},r),{},{label:l,placeholder:a||o({id:"defaultInputPlaceholder"},{label:l})}))}),Z=e=>(0,H.A)(t=>{let{placeholder:a,label:l}=t,r=(0,s.A)(t,Y);const{formatMessage:o}=(0,T.useIntl)();return(0,u.jsx)(e,(0,n.A)((0,n.A)({},r),{},{label:l,placeholder:a||o({id:"defaultSelectPlaceholder"},{label:l})}))}),K=e=>t=>{const a=(0,l.useGroup)(),s=L()(a,"name"),r=(0,k.get)(a,"index"),o=(0,E.oc)();return o&&Array.isArray(o)&&o.length>0?o.map(a=>{if("string"===typeof a)return(0,M.createElement)(e,(0,n.A)((0,n.A)({},t),{},{key:a}));const{name:l,label:o,options:i}=a,c=L()(i,"ignore",[]),d=L()(i,"disabled",[]),u=L()(i,"fields",[]),p=e=>t.name===e.name&&!(e.hasOwnProperty("groupName")&&e.groupName!==s)&&!(e.hasOwnProperty("groupIndex")&&e.groupIndex!==r);if(c.length>0&&c.find(p))return null;if(u.length>0&&!u.find(p))return null;let m=Object.assign({},t,{name:L()(i,"nameTransform",(e,t)=>"".concat(e).concat(t))(t.name,l),label:L()(i,"labelTransform",(e,t)=>e&&"".concat(e).concat(t))(t.label,o)});return d.length>0&&d.find(p)&&(m.disabled=!0,m.rule=""),(0,M.createElement)(e,(0,n.A)((0,n.A)({},m),{},{key:l}))}):(0,u.jsx)(e,(0,n.A)({},t))},ee=J([K,$])(l.Input),te=J([K,$])(l.InputNumber);ee.Password=J([K,$])(l.Input.Password);const ae=J([K,Z])(l.DatePicker);ae.MonthPicker=J([K,Z])(l.DatePicker.MonthPicker),ae.RangePicker=J([K,Z])(l.DatePicker.RangePicker),ae.WeekPicker=J([K,Z])(l.DatePicker.WeekPicker);const ne=J([K,Z])(l.TimePicker);ne.RangePicker=J([K,Z])(l.TimePicker.RangePicker);const se=J([K])(e=>{let{placeholder:t,label:a,soFarText:r}=e,o=(0,s.A)(e,X);const{formatMessage:i}=(0,T.useIntl)({moduleName:"FormInfo"});return(0,u.jsx)(l.DatePickerToday,(0,n.A)((0,n.A)({},o),{},{label:a,placeholder:[i({id:"startDate"}),i({id:"endDate"})],soFarText:r||i({id:"soFarText"})}))}),le={Input:ee,Checkbox:l.Checkbox,Password:ee.Password,InputNumber:te,DatePicker:ae,MonthPicker:ae.MonthPicker,WeekPicker:ae.WeekPicker,DateRangePicker:ae.RangePicker,TimeRangePicker:ne.RangePicker,TimePicker:ne,DatePickerToday:se,RadioGroup:J([K])(l.RadioGroup),CheckboxGroup:J([K])(l.CheckboxGroup),Rate:J([K])(l.Rate),Switch:J([K])(N),Slider:J([K])(l.Slider),SalaryInput:J([K,$])(P.A),TypeDateRangePicker:J([K])(D.A),MoneyInput:J([K,$])(A.A),PhoneNumber:J([K,$])(_.default),Upload:J([K])(w.A),Avatar:J([K])(F.A),FunctionSelect:J([K,Z])(f.A),IndustrySelect:J([K,Z])(x.A),Cascader:J([K,Z])(c.A),ColorPicker:J([K,Z])(g),AddressSelect:J([K,Z])(i.A),AddressInput:J([K,Z])(i.N),TreeSelect:J([K,Z])(l.TreeSelect),ReactInputNumber:J([K,$])(l.InputNumber),InputUpperCase:J([K,$])(R.A),Select:J([K,Z])(l.Select),TextArea:J([K,$])(l.TextArea),AdvancedSelect:J([K,Z])(r.Ay),SuperSelect:J([K,Z])(o.Ay),SuperSelectTableList:J([K,Z])(o.eM),SuperSelectUser:J([K,Z])(o.Pg),SuperSelectTree:J([K,Z])(o.kx)},re={createWithFieldDecorator:J,withInputDefaultPlaceholder:$,withSelectDefaultPlaceholder:Z,withLang:K}},18936(e,t,a){a.d(t,{A:()=>U});var n=a(89379),s=a(53986);const l={"ant-tag":"style_ant-tag__7ct2q__RCjzi",overlay:"style_overlay__CXfU5__RCjzi",input:"style_input__+OpvV__RCjzi","is-disabled":"style_is-disabled__uX4qq__RCjzi","input-icon":"style_input-icon__E3NjK__RCjzi",large:"style_large__vMozz__RCjzi",small:"style_small__ubqQ+__RCjzi","input-inner":"style_input-inner__sY-6k__RCjzi","input-custom":"style_input-custom__Kxq3n__RCjzi","display-content":"style_display-content__qA1jn__RCjzi","overlay-footer-extra":"style_overlay-footer-extra__yCzWX__RCjzi","selected-tag":"style_selected-tag__BZsMM__RCjzi","selected-tag-list":"style_selected-tag-list__As0ho__RCjzi","selected-tag-inner":"style_selected-tag-inner__2NH59__RCjzi","text-inner":"style_text-inner__Bq2Ji__RCjzi",placeholder:"style_placeholder__odotY__RCjzi","is-modal":"style_is-modal__4cj8L__RCjzi","overlay-content":"style_overlay-content__kpGRn__RCjzi"};var r=a(74981);const{context:o,useContext:i,Provider:c,Consumer:d}=(0,r.A)();var u=a(73884),p=a(10986),m=a.n(p),h=a(87558),g=a(33097),f=a.n(g),x=a(55199),A=a(83136),_=a.n(A),j=a(3382),v=a(64671),y=a(79686),C=a.n(y),b=a(41740),S=a.n(b),N=a(74065),w=a.n(N),F=a(17342),P=a(70579);const R=["value","onChange","extra","showSelectedTag","renderSelectedContent","children"],I=["value","setValue","children","renderSelectedContent","showSelectedTag","placement","inputContent","single","extra","overlayWidth","wrapClassName"],z=["setFetchApi","wrapClassName"],M=["api","className","displayItems","wrapClassName"],T=e=>{let{maxLength:t,single:a,setValue:n,value:s,message:l}=e;return e=>n(!a&&Number.isInteger(t)&&t>0&&e.length>t?(l("\u6700\u591a\u9009\u62e9".concat(t,"\u4e2a")),s):e)},O=e=>{let{single:t,value:a,mapping:n,onClose:s}=e;return a&&Array.isArray(a)&&0!==a.length?t?(0,P.jsx)("span",{className:l["text-inner"],children:f()(n.get(a[0]),"label")||a[0]}):a.map(e=>{const t=n.get(e);return(0,P.jsx)(x.Tag,{className:l["display-tag"],closable:!0,onClose:a=>{a.preventDefault(),s(e,t)},children:(0,P.jsx)("span",{className:l["tag-inner"],children:f()(t,"label")||e})},e)}):null},L=(0,u.forwardRef)((e,t)=>{let{value:a,onChange:r,extra:o,showSelectedTag:i,renderSelectedContent:c,children:d}=e,p=(0,s.A)(e,R);const[m,h]=(0,u.useState)(a),g=(0,u.useRef)(a);g.current=a;const[f,A]=(0,u.useState)(!1),{message:_}=x.App.useApp(),v=T({maxLength:p.maxLength,single:p.single,setValue:h,value:m,message:_.error});return(0,u.useEffect)(()=>{f&&h(g.current)},[f]),(0,u.useImperativeHandle)(t,()=>({modalOpen:()=>{A(!0)},close:()=>{A(!1)}})),(0,P.jsx)(j.default,(0,n.A)((0,n.A)({},p),{},{open:f,onConfirm:()=>{r(m)},onClose:()=>{A(!1)},footer:(i||o)&&(0,P.jsxs)(x.Space,{direction:"vertical",className:l["overlay-footer"],children:[o&&(0,P.jsx)("div",{className:l["overlay-footer-extra"],children:o}),i&&c({value:m,setValue:v})]}),children:"function"===typeof d?d({value:m,setValue:v}):d}))}),k=(0,u.forwardRef)((e,t)=>{let{value:a,setValue:r,children:o,renderSelectedContent:i,showSelectedTag:c,placement:d,inputContent:p,single:m,extra:h,overlayWidth:g,wrapClassName:f}=e,A=(0,s.A)(e,I);const[_,j]=(0,u.useState)(!1);return(0,u.useImperativeHandle)(t,()=>({close:()=>{j(!1)}}),[]),(0,P.jsx)(x.Popover,(0,n.A)((0,n.A)({},A),{},{open:_,onOpenChange:j,overlayClassName:l.overlay,arrow:!1,content:(0,P.jsxs)("div",{style:g?{"--overlay-width":g}:{},className:l["overlay-content"],onClick:e=>{e.stopPropagation()},children:[(0,P.jsx)("div",{className:l["overlay-inner"],children:"function"===typeof o?o({value:a,setValue:e=>{(!m||a[0]!==e[0])&&r(e),m&&j(!1)}}):o}),(c||h)&&(0,P.jsxs)("div",{className:l["overlay-footer"],children:[h&&(0,P.jsx)("div",{className:l["overlay-footer-extra"],children:h}),c&&i({value:a,setValue:r})]})]}),trigger:"click",placement:d,children:(0,P.jsx)("div",{className:l["input-inner"],children:p})}))}),E=(0,h.withFetch)(e=>{let{setFetchApi:t,wrapClassName:a}=e,n=(0,s.A)(e,z);const[r,o]=(0,u.useState)(!1),c=(0,u.useRef)(null),d=(0,u.useRef)(null),p=i(),{valueState:m,mapping:h,props:g}=p,[f,A]=m,{single:j,placement:y,getPopupContainer:C,placeholder:b,isPopup:S,disabled:N,showSelectedTag:w,extra:R,inputContent:I}=g,M=(0,u.useRef)(n);M.current=n,(0,u.useEffect)(()=>{t(Object.assign({},M.current,{data:n.data,isComplete:n.isComplete}))},[n.data,t,n.isComplete]);const T=O({single:j,value:f,mapping:h,onClose:e=>{A(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}}),E=e=>{let{value:t,setValue:a}=e;return(0,P.jsxs)(x.Space,{className:l["selected-tag"],align:"center",wrap:!0,children:[(0,P.jsxs)("div",{children:["\u5df2\u9009",!g.single&&Number.isInteger(g.maxLength)&&g.maxLength>0?"(".concat(t.length,"/").concat(g.maxLength,")"):"",":"]}),(0,P.jsx)(F.A,{className:l["selected-tag-list"],children:(0,P.jsx)("div",{className:l["selected-tag-inner"],children:O({value:t,mapping:h,onClose:e=>{a(t=>{const a=t.slice(0),n=t.indexOf(e);return n>-1&&a.splice(n,1),a})}})})})]})},D=I?I(p):(0,P.jsxs)(x.Space,{className:l["display-content"],onMouseOver:()=>{o(!0)},onMouseOut:()=>{o(!1)},children:[(0,P.jsx)("div",{children:T||(0,P.jsx)("span",{className:l.placeholder,children:b})}),r&&f&&f.length>0&&!N?(0,P.jsx)(v.default,{className:_()(l.close,l["input-icon"],"close","input-icon"),type:"icon-shibai",onClick:e=>{e.stopPropagation(),A([])}}):(0,P.jsx)(v.default,{className:_()(l["input-icon"],"input-icon-arrow","input-icon"),type:"icon-arrow-thin-down"})]});return S?(0,P.jsx)(k,{ref:d,overlayWidth:g.overlayWidth,value:f,setValue:A,single:j,inputContent:D,extra:"function"===typeof R?R({close:()=>d.current.close(),context:p}):R,renderSelectedContent:E,showSelectedTag:w,trigger:"click",placement:y,getPopupContainer:C,children:g.children}):(0,P.jsxs)("div",{className:l["input-inner"],onClick:()=>{c.current.modalOpen()},children:[(0,P.jsx)(L,{size:g.modalSize,ref:c,single:g.single,maxLength:g.maxLength,disabledScroller:!0,wrapClassName:_()(l.overlay,l["is-modal"],a),title:g.placeholder,value:f,onChange:A,extra:"function"===typeof R?R({close:()=>c.current.close(),context:p}):R,showSelectedTag:w,renderSelectedContent:E,children:g.children}),D]})}),D=e=>{let{api:t,className:a,displayItems:r,wrapClassName:o}=e,i=(0,s.A)(e,M);const[d,p]=(0,u.useState)(""),[h,g]=(0,u.useState)(new Map(r.map(e=>[e.value,e]))),[A,j]=(0,u.useState)({}),{message:v}=x.App.useApp(),y=e=>{const t=e.filter(e=>h.get(e.value)!==e);0!==t.length&&g(e=>{const a=S()(e);return t.forEach(e=>{a.set(e.value,e)}),a})},b=e=>((e,t,a)=>"all"!==a?e:(t(e),e.map(e=>e.value)))(i.single?C()(e)?[]:[e]:e||[],y,i.valueType),[N,F]=m()(Object.assign({},i,{onChange:e=>{const t=((e,t,a)=>"all"!==a?e:e.map(e=>t.get(e)))(e,h,i.valueType);i.onChange&&i.onChange(i.single?w()(t):t)}},"value"in i?{value:b(i.value)}:{defaultValue:b(i.defaultValue)})),R=T({maxLength:i.maxLength,single:i.single,setValue:F,value:N,message:v.error});return(0,P.jsx)(c,{value:{mapping:h,searchText:d,setSearchText:p,appendMapping:y,setItems:e=>{A.setData(e),y(f()(i.dataFormat(e),"list",[]))},fetchApi:A,valueState:[N,R],props:i},children:(0,P.jsx)("div",{className:_()(l["input".concat(i.inputContent&&"function"===typeof i.inputContent?"-custom":"")],a),children:(0,P.jsx)(E,(0,n.A)((0,n.A)({},t),{},{wrapClassName:o,loading:null,setFetchApi:j,onRequestSuccess:e=>{y(f()(i.dataFormat(e),"list",[])),t.onRequestSuccess&&t.onRequestSuccess(e)}}))})})};D.defaultProps={placeholder:"\u8bf7\u9009\u62e9",displayItems:[],extra:null,api:{loader:()=>[]},dataFormat:e=>({list:e}),placement:"bottomLeft",getPopupContainer:null,showSelectedTag:!0},D.useContext=i;const U=D},21649(e,t,a){a.r(t),a.d(t,{default:()=>n});const n={addText:"Add",addSomeThing:"Add {label}",delText:"Delete",selectedTextAdvanced:"Selected",delConfirm:"Are you sure you want to delete this {name}?",defaultInputPlaceholder:"Please enter {label}",defaultSelectPlaceholder:"Please select {label}",startDate:"Start Date",endDate:"End Date",soFarText:"Hitherto",uploadButtonText:"Click Upload",uploadTips:"Support extension {extensionNames}, single file size does not exceed {fileSize} M, upload up to {maxLength} attachments",yuan:"yuan",thousand:"ten thousand yuan",salaryType:"Salary type",Cancel:"Cancel",Save:"Save",Next:"Next",Complete:"Complete",Crop:"Crop",Preview:"Preview",PictureFormat:"Picture Format: ",ImageSize:"Image Size: ",ReUpload:"Re-upload",UploadFailed:"Upload Failed{msg}",NotExceeding:"Not exceeding {size}M",FileNotExceeding:"File {name} not exceeding {size}MB\uff01",Rotate:"Rotate",ImageFull:"Image Full",Size:"Image Size"}},24474(e,t,a){a.r(t),a.d(t,{DragArea:()=>L,DragAreaOuter:()=>T,DragButton:()=>z,FileUpload:()=>H,Title:()=>v,UploadButton:()=>M,UploadTips:()=>O,default:()=>U});var n=a(89379),s=a(73884),l=a(33097),r=a.n(l),o=a(55199);const i={"file-list-title":"style_file-list-title__zXM5r__RCjzi",container:"style_container__P4RaF__RCjzi","file-preview-inner":"style_file-preview-inner__cvE72__RCjzi","file-preview":"style_file-preview__M-Asq__RCjzi","drag-area":"style_drag-area__Q+lm7__RCjzi","upload-drag-close":"style_upload-drag-close__u5o8W__RCjzi","upload-drag-tips":"style_upload-drag-tips__z7puZ__RCjzi","upload-drag-icon":"style_upload-drag-icon__sGGoS__RCjzi","upload-drag-title":"style_upload-drag-title__9Afmb__RCjzi","upload-drag-text":"style_upload-drag-text__o38vS__RCjzi","list-item-outer":"style_list-item-outer__qfopH__RCjzi","list-item":"style_list-item__QUzqW__RCjzi",split:"style_split__8HVlD__RCjzi",loading:"style_loading__OSlYB__RCjzi","list-options":"style_list-options__4l3QJ__RCjzi","list-time":"style_list-time__canbk__RCjzi","title-group":"style_title-group__8IJkS__RCjzi","upload-btn":"style_upload-btn__Q+Jxn__RCjzi","total-count":"style_total-count__z1fyd__RCjzi","file-select":"style_file-select__mHqyI__RCjzi","file-name":"style_file-name__QkvMn__RCjzi","file-select-info":"style_file-select-info__fOLiM__RCjzi","file-select-option":"style_file-select-option__AbDrD__RCjzi"};var c=a(75087),d=a.n(c),u=a(74065),p=a.n(u),m=a(57469),h=a.n(m),g=a(64671),f=a(34699),x=a(47458),A=a(83136),_=a.n(A),j=a(70579);const v=e=>{let{currentTab:t,setCurrentTab:a,previewMap:n,previewList:s,getPermission:l,currentPreviewFileId:r,setCurrentPreviewFileId:c,itemApis:u,children:m,maxWidth:A=260,getPopupContainer:v}=e;return(0,j.jsx)("div",{className:i["file-list-title"],children:(0,j.jsxs)(o.Row,{align:"middle",justify:"space-between",wrap:!0,children:[(0,j.jsx)(o.Col,{children:(0,j.jsxs)(o.Space,{className:_()(i["title-group"],"core-file-list-title-group"),size:4,wrap:!0,children:[(0,j.jsx)(o.Segmented,{value:t,onChange:a,options:[{label:(0,j.jsxs)(o.Space,{size:4,children:[(0,j.jsx)(g.default,{type:"icon-shitu-liebiao"}),(0,j.jsx)(x.FormattedMessage,{id:"listText",moduleName:"FileList"})]}),value:"list"},{label:(0,j.jsxs)(o.Space,{size:4,children:[(0,j.jsx)(g.default,{type:"icon-shitu-yulan"}),(0,j.jsx)(x.FormattedMessage,{id:"previewText",moduleName:"FileList"})]}),value:"preview"}]}),"preview"===t&&r&&n.get(r)&&(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(o.Select,{className:i["file-select"],variant:"borderless",popupMatchSelectWidth:!1,value:r,onChange:c,getPopupContainer:v,children:s.map(e=>{let{filename:t,userName:a,date:n,id:s}=e;return(0,j.jsx)(o.Select.Option,{className:i["file-select-option"],value:s,children:(0,j.jsxs)(o.Space,{direction:"vertical",children:[(0,j.jsxs)(o.Space,{size:4,align:"start",children:[(0,j.jsx)(d(),{type:p()(t.split(".")),size:14}),(0,j.jsx)(o.Typography.Text,{className:i["file-name"],ellipsis:!0,style:{"--max-width":"".concat(A,"px")},children:t})]}),a||n?(0,j.jsxs)(o.Space,{className:i["file-select-info"],size:24,children:[(0,j.jsxs)("div",{children:[(0,j.jsx)(x.FormattedMessage,{id:"uploadUser",moduleName:"FileList"}),":",a]}),(0,j.jsxs)("div",{children:[(0,j.jsx)(x.FormattedMessage,{id:"uploadTime",moduleName:"FileList"}),":",n&&h()(n).format("YYYY-MM-DD HH:mm:ss")]})]}):null]})},s)})}),(0,j.jsx)(f.OptionButtons,{hasPreview:!1,getPermission:l,item:n.get(r),apis:u}),(0,j.jsx)("div",{className:i["total-count"],children:(0,j.jsx)(x.FormattedMessage,{id:"totalCount",values:{count:s.length},moduleName:"FileList"})})]})]})}),(0,j.jsx)(o.Col,{children:m})]})})};var y=a(53986);const C=e=>({"en-US":()=>a.e(3333).then(a.bind(a,63333)),"zh-CN":()=>a.e(8795).then(a.bind(a,48795))}[e]());var b=a(70720),S=a.n(b);const N=(0,s.createContext)({}),{Provider:w}=N,F=()=>(0,s.useContext)(N);var P=a(61323),R=a(81348);const I=["children"],z=e=>{let{children:t}=e;const{onOpenChange:a,getDragButtonEl:n}=F();return(0,j.jsx)("div",{ref:n,className:i["upload-btn"],onClick:()=>{a(e=>!e)},children:(0,j.jsxs)(o.Button,{type:"text",className:"btn-no-padding",children:[(0,j.jsx)(g.default,{type:"icon-tuozhuaishangchuan"}),t||(0,j.jsx)(x.FormattedMessage,{id:"dragText",moduleName:"FileList"})]})})},M=e=>{let{children:t}=e;const{accept:a,onFileSelected:s}=F();return(0,j.jsx)(P.FileInput,{className:_()(i["upload-btn"],"btn-no-padding"),accept:a,multiple:!0,onChange:s,children:e=>{let{children:a}=e,s=(0,y.A)(e,I);return(0,j.jsxs)(o.Button,(0,n.A)((0,n.A)({},s),{},{type:"text",children:[(0,j.jsx)(g.default,{type:"icon-tianjia"}),t,a]}))}})},T=e=>{let{title:t,accept:a=[".png",".jpg",".pdf",".docx",".doc"],fileSize:n=20,maxLength:l,onFileSelected:r,children:c,className:d,defaultOpen:u=!1}=e;const[p,m]=(0,s.useState)(u),h=(0,s.useRef)(null),g=S()(e=>{h.current&&(h.current.contains(e.target)||e.target===h.current||m(!1))});return(0,j.jsx)(x.IntlProvider,{importMessages:C,moduleName:"FileList",children:(0,j.jsx)(w,{value:{open:p,onOpenChange:m,accept:a,fileSize:n,maxLength:l,onFileSelected:r,getDragButtonEl:e=>{h.current=e}},children:(0,j.jsxs)(o.Space,{className:i["file-list-outer"],orientation:"vertical",children:[t,(0,j.jsx)("div",{className:_()(i.container,d),ref:g,onDragEnter:()=>{m(!0)},children:c})]})})})},O=e=>{let{icon:t,title:a,renderTips:n=e=>e}=e;const{accept:s,fileSize:l,maxLength:r}=F(),o=n((0,x.useIntl)({moduleName:"FileList"}).formatMessage({id:"dragTips"},{accept:s.map(e=>e.replace(/^\./,"")).join("\u3001"),size:l}),{fileSize:l,maxLength:r,accept:s});return(0,j.jsxs)("div",{className:_()(i["upload-drag-tips"],"upload-drag-tips"),children:[(0,j.jsx)("div",{className:i["upload-drag-icon"],children:t||(0,j.jsx)(g.default,{type:"icon-shangchuan",size:64})}),(0,j.jsx)("div",{className:i["upload-drag-title"],children:a||(0,j.jsx)(x.FormattedMessage,{id:"dragTitle",moduleName:"FileList"})}),(0,j.jsx)("div",{className:i["upload-drag-text"],children:o})]})},L=e=>{let{children:t=(0,j.jsx)(O,{}),className:a}=e;const{open:n,accept:s,onOpenChange:l,onFileSelected:r}=F();return n?(0,j.jsxs)("div",{className:_()(i["drag-area"],a),onDragOver:e=>{e.stopPropagation(),e.preventDefault(),e.dataTransfer.dropEffect="copy"},onDrop:e=>{if(e.stopPropagation(),e.preventDefault(),0===e.dataTransfer.files.length)return;l(!1);const t=Array.from(e.dataTransfer.files).filter(e=>(0,R.A)(e,s));r(t)},onDragEnd:()=>{l(!1)},children:[(0,j.jsx)(o.Button,{className:i["upload-drag-close"],type:"text",shape:"circle",size:"small",icon:(0,j.jsx)(g.default,{type:"icon-close-bold"}),onClick:()=>{l(!1)}}),t]}):null};var k=a(50196),E=a(72752);const D=e=>{var t,a;let{className:l,maxLength:c=Number.MAX_VALUE,list:d,setList:u,infoItemRenders:p,defaultTab:m="list",defaultPreviewFileId:h,apis:g,getPermission:A=()=>!0,titleExtra:_=null,fileSize:y=20,accept:C=[".png",".jpg",".pdf",".docx",".doc"],getPopupContainer:b}=e;const{apis:S}=(0,E.usePreset)(),N=Object.assign({},S,g),w=(d||[]).map(e=>Object.assign({},{id:e.ossId},e)),{fileList:F,onFileSelected:R}=(0,P.useFileUpload)({maxLength:c,multiple:!0,value:w,onChange:u,concurrentCount:1,onAdd:()=>{O("list")},onSave:async function(e){if("function"===typeof N.onSave){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];const s=await N.onSave(e,...a);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:N.onUpload||N.ossUpload}),[I,O]=(0,s.useState)(m),{formatMessage:D}=(0,x.useIntl)({moduleName:"FileList"}),{message:U}=o.App.useApp(),B=(0,s.useMemo)(()=>new Map(w.map(e=>[e.id,e])),[w]),[V,W]=(0,s.useState)(h||r()(w,"[0].id",null));(0,s.useEffect)(()=>{V&&B.get(V)||W(r()(w,"[0].id",null))},[w,B,V]);const H=(0,n.A)((0,n.A)({},N),{},{onPreview:e=>{W(e.id),O("preview")},onDelete:async e=>{N.onDelete&&!1===await N.onDelete(e)||(u(t=>{const a=t.slice(0),n=t.findIndex(t=>{let{id:a}=t;return a===e.id});return n>-1&&a.splice(n,1),a}),U.success(D({id:"successDelete"},{name:e.filename})))},onEdit:async e=>{let{formData:t,item:a}=e;const n=N.onEdit&&await N.onEdit({formData:t,item:a});return!1!==n&&(u(e=>{const n=e.slice(0),s=e.findIndex(e=>{let{id:t}=e;return t===a.id});return s>-1&&n.splice(s,1,Object.assign({},a,{filename:t.name})),n}),U.success(D({id:"successEditFileName"},{name:a.filename}))),n}}),q="function"===typeof _?_({currentPreviewFileId:V,currentTab:I}):_;return(0,j.jsx)("div",{className:l,children:(0,j.jsxs)(T,{title:(0,j.jsx)(v,{currentTab:I,setCurrentTab:O,previewMap:B,previewList:w,getPermission:A,currentPreviewFileId:V,setCurrentPreviewFileId:W,itemApis:H,getPopupContainer:b,children:(0,j.jsxs)(o.Space,{separator:(0,j.jsx)(o.Divider,{type:"vertical"}),children:[q,A("add",{})?(0,j.jsxs)(j.Fragment,{children:[(0,j.jsx)(z,{children:D({id:"dragText"})}),(0,j.jsx)(M,{children:D({id:"uploadFile"})})]}):null]})}),fileSize:y,maxLength:c,onFileSelected:R,accept:C,defaultOpen:0===w.length,children:["list"===I?(0,j.jsx)(f.List,{dataSource:[...w,...F],getPermission:A,apis:H,infoItemRenders:p}):null,"preview"===I?V?(0,j.jsx)("div",{className:i["file-preview-inner"],children:(0,j.jsx)(k.default,{className:i["file-preview"],src:null===(t=B.get(V))||void 0===t?void 0:t.src,id:V,apis:N,filename:null===(a=B.get(V))||void 0===a?void 0:a.filename})}):(0,j.jsx)(o.Empty,{image:o.Empty.PRESENTED_IMAGE_SIMPLE,className:"ant-empty-normal"}):null,(0,j.jsx)(L,{})]})})},U=e=>(0,j.jsx)(x.IntlProvider,{importMessages:C,moduleName:"FileList",children:(0,j.jsx)(D,(0,n.A)({},e))});var B=a(10986),V=a.n(B);const W=["maxLength","apis","getPermission","fileSize","accept","defaultList"],H=e=>{let{maxLength:t=Number.MAX_VALUE,apis:a,getPermission:s=()=>!0,fileSize:l=20,accept:i=[".png",".jpg",".pdf",".docx",".doc"],defaultList:c=[]}=e,d=(0,y.A)(e,W);const{apis:u}=(0,E.usePreset)(),p=Object.assign({},u,a),[m,h]=V()((0,n.A)({defaultList:c},d),{defaultValue:"defaultList",value:"list",onChange:"setList"}),{fileList:g,onFileSelected:A}=(0,P.useFileUpload)({maxLength:t,multiple:!0,value:m,onChange:h,concurrentCount:1,onSave:async function(e){if("function"===typeof p.onSave){for(var t=arguments.length,a=new Array(t>1?t-1:0),n=1;n<t;n++)a[n-1]=arguments[n];const s=await p.onSave(e,...a);return Object.assign({},{id:null===s||void 0===s?void 0:s.ossId},s)}return r()(e,"data")||{}},onUpload:p.ossUpload});return(0,j.jsxs)(T,{title:(0,j.jsxs)(o.Row,{children:[(0,j.jsx)(o.Col,{flex:1}),(0,j.jsx)(o.Col,{children:(0,j.jsxs)(o.Space,{split:(0,j.jsx)(o.Divider,{type:"vertical"}),children:[(0,j.jsx)(z,{}),(0,j.jsx)(M,{children:(0,j.jsx)(x.IntlProvider,{importMessages:C,moduleName:"FileList",children:(0,j.jsx)(x.FormattedMessage,{id:"upload",moduleName:"FileList"})})})]})})]}),fileSize:l,maxLength:t,onFileSelected:A,accept:i,children:[(0,j.jsx)(f.List,{dataSource:[...g,...m],getPermission:s,apis:p}),(0,j.jsx)(L,{})]})}},29556(e,t,a){a.r(t),a.d(t,{TooltipFetch:()=>I,TooltipInfoLabel:()=>w,default:()=>S});var n=a(89379),s=a(53986),l=a(55199),r=a(83136),o=a.n(r);const i="style_tooltip__zHGMI__RCjzi",c="style_large__lvmsm__RCjzi",d="style_small__nUt0r__RCjzi",u="style_popup-content__-rKQN__RCjzi",p="style_title__1EQPq__RCjzi",m="style_important-info__qTSZY__RCjzi",h="style_error__yTTq3__RCjzi",g="style_warning__CMJxz__RCjzi",f="style_success__AvJVx__RCjzi",x="style_sub-title__uD8CH__RCjzi",A="style_content__lzgUz__RCjzi",_="style_alone__q6q82__RCjzi",j="style_fetch-content__tEOEV__RCjzi",v="style_fetch-loading__tN-WB__RCjzi",y="style_title-info-icon__iY8Q+__RCjzi";var C=a(70579);const b=["overlayClassName","title","size","subtitle","content","importantInfo","importantInfoType","moreInfo"],S=e=>{let{overlayClassName:t,title:a,size:r,subtitle:j,content:v,importantInfo:y,importantInfoType:S,moreInfo:N}=e,w=(0,s.A)(e,b);return(0,C.jsx)(l.Tooltip,(0,n.A)((0,n.A)({},w),{},{rootClassName:o()(t,i,{[d]:"small"===r,[c]:"large"===r}),title:(0,C.jsxs)(l.Space,{direction:"vertical",className:u,children:[a&&(0,C.jsx)("div",{className:p,children:a}),y&&(0,C.jsx)("div",{className:o()(m,{[f]:"success"===S,[g]:"warning"===S,[h]:"error"===S}),children:y}),j&&(0,C.jsx)("div",{className:x,children:j}),v&&(0,C.jsx)("div",{className:o()(A,{[_]:[a,j,y,N].every(e=>!e)}),children:v}),N&&(0,C.jsx)("div",{children:N})]})}))};var N=a(64671);const w=e=>{let{title:t,tooltipTitle:a}=e;return(0,C.jsxs)("div",{children:[t,a?(0,C.jsx)(S,(0,n.A)((0,n.A)({},a),{},{children:(0,C.jsx)("span",{children:(0,C.jsx)(N.default,{type:"icon-xinxi-miaobian",className:y,size:14})})})):null]})};var F=a(73884),P=a(87558);const R=["api","children","fetchContent","showLoading","loadingClassName","force"],I=e=>{let{api:t,children:a,fetchContent:r,showLoading:i=!0,loadingClassName:c,force:d}=e,u=(0,s.A)(e,R);const[p,m]=(0,F.useState)(!1),h=(0,P.useFetch)(Object.assign({},t,{auto:!1})),{isComplete:g,isLoading:f,data:x,send:A}=h;return(0,C.jsx)(S,(0,n.A)((0,n.A)({},Object.assign({},u,g?r(x,h):{})),{},{open:p,onOpenChange:async e=>{!e||g&&!d||await A({type:"refresh"}),m(e)},children:(0,C.jsxs)("span",{className:j,children:[a,i&&f?(0,C.jsx)(l.Spin,{size:"small",className:o()(c,v)}):null]})}))}},30096(e,t,a){a.d(t,{Ay:()=>d});var n=a(98434),s=a(43856);const{useOnChange:l}=n.hooks,r=e=>{const t=t=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},o=r(s.UserField),i=r(s.TableField),c=r(s.AdvancedSelectField);c.createdList=e=>{let{renderList:t,defaultProps:a}=e;return r((0,s.createListField)({renderList:t,defaultProps:a}))},c.User=o,c.Table=i;const d=c},30891(e,t,a){a.d(t,{A:()=>l});var n=a(89379),s=a(98434);const l=e=>{let{children:t}=e;const{openApi:a,formData:l}=(0,s.useFormContext)();return t((0,n.A)((0,n.A)({},a),{},{formData:l}))}},34643(e,t,a){a.d(t,{Ay:()=>p,Pg:()=>c,eM:()=>d,kx:()=>u});var n=a(98434),s=a(43856),l=a(60586);const{useOnChange:r}=n.hooks,o=e=>{const t=t=>r(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+t.label},t))(e);return t.field=t.Field=e,t},i=o(s.SuperSelectField),c=o(l.$9),d=o(s.SuperSelectTableListField),u=o(s.SuperSelectTreeField),p=i},34699(e,t,a){a.r(t),a.d(t,{Download:()=>m,FileButton:()=>P,FileLink:()=>R,List:()=>N,OptionButtons:()=>S,PrintButton:()=>o.PrintButton,default:()=>i(),download:()=>o.download,downloadBlobFile:()=>o.downloadBlobFile,useDownload:()=>o.useDownload,useFileModal:()=>I});var n=a(89379),s=a(53986),l=(a(64674),a(96418)),r=a.n(l),o=a(61323),i=a.n(o),c=a(3382),d=a(83136),u=a.n(d),p=a(70579);o.Download.useDownload=o.useDownload,o.Download.downloadBlobFile=o.downloadBlobFile;const m=o.Download;var h=a(26304),g=a.n(h),f=a(74065),x=a.n(f),A=a(96252);const _=e=>({"en-US":()=>a.e(5645).then(a.bind(a,75645)),"zh-CN":()=>a.e(6707).then(a.bind(a,26707))}[e]());var j=a(47458);const v=["apis"],y=["onCancel"],C=["onCancel"],b=e=>{let{apis:t}=e;const a=(0,A.useFormModal)();return"function"===typeof(null===t||void 0===t?void 0:t.onEditModalShow)?t.onEditModalShow:(e,t)=>{const n=a({size:"small",title:(0,p.jsx)(j.IntlProvider,{importMessages:_,moduleName:"File",children:(0,p.jsx)(j.FormattedMessage,{id:"editDocumentName",moduleName:"File"})}),formProps:{data:{name:g()(e.filename.split(".")).join(".")},onSubmit:async a=>{!1!==((null===t||void 0===t?void 0:t.onEdit)&&await(null===t||void 0===t?void 0:t.onEdit({formData:Object.assign({},a,{name:"".concat(a.name,".").concat(x()(e.filename.split(".")))}),item:e})))&&n.close()}},children:(0,p.jsx)(A.default,{column:1,list:[(0,p.jsx)(A.Input,{name:"name",label:(0,p.jsx)(j.IntlProvider,{importMessages:_,moduleName:"File",children:(0,p.jsx)(j.FormattedMessage,{id:"documentName",moduleName:"File"})}),rule:"REQ LEN-0-100"})]})})}},S=e=>{var t;const a=b({apis:e.apis});return(0,p.jsx)(o.FileListOptionButtons,(0,n.A)((0,n.A)({},e),{},{onEdit:t=>a(t,e.apis),onDelete:null===(t=e.apis)||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof e.renderModal?e.renderModal:e=>{let{onCancel:t}=e,a=(0,s.A)(e,C);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},a)),{},{onClose:t}))}}))},N=e=>{let{apis:t}=e,a=(0,s.A)(e,v);const l=b({apis:t});return(0,p.jsx)(o.FileList,(0,n.A)((0,n.A)({},a),{},{apis:t,onEdit:e=>l(e,t),onDelete:null===t||void 0===t?void 0:t.onDelete,renderModal:"function"===typeof a.renderModal?a.renderModal:e=>{let{onCancel:t}=e,a=(0,s.A)(e,y);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},a)),{},{onClose:t}))}}))},w=["onCancel"],F=["className"],P=e=>(0,p.jsx)(o.FileButton,(0,n.A)({},Object.assign({},e,{modalProps:{renderModal:e=>{let{onCancel:t}=e,a=(0,s.A)(e,w);return(0,p.jsx)(c.default,(0,n.A)((0,n.A)({},Object.assign({},a)),{},{onClose:t}))}}}))),R=e=>{const t=Object.assign({},e),{className:a}=t,l=(0,s.A)(t,F);return(0,p.jsx)(P,(0,n.A)((0,n.A)({},l),{},{className:u()(a,"btn-no-padding"),type:"link",children:l.children||l.filename||l.originName}))},I=e=>{const{title:t,children:a,footer:n}=(0,o.useFileModalProps)(Object.assign({},e)),s=(0,c.useModal)();return r()(()=>s({title:t,children:a,footer:n}))}},35774(e,t,a){a.d(t,{A:()=>c});var n=a(89379),s=a(53986),l=a(98434),r=a(81014),o=a(70579);const i=["onClick"],c=e=>{let{onClick:t}=e,a=(0,s.A)(e,i);const c=(0,l.useFormContext)();return(0,o.jsx)(r.default,(0,n.A)((0,n.A)({},a),{},{onClick:e=>t(c,e)}))}},36972(e,t,a){a.d(t,{A:()=>k});var n=a(89379),s=a(53986),l=a(73884),r=a(87558),o=a(98434),i=a(78491),c=a.n(i),d=a(55199);const u="style_salary__sUOtT__RCjzi",p="style_salary-type__Sl1LC__RCjzi",m="style_input-number__eoEZr__RCjzi",h="style_full__NPqJm__RCjzi",g="style_input-group__toLB7__RCjzi",f="style_input-group-no-mb__C4nzh__RCjzi";var x=a(47458),A=a(55431),_=a(48731),j=a(10986),v=a.n(j),y=a(21079),C=a(70579);const b=["data"],S=["getPopupContainer","onBlur","api","isRange","placeholder","disabled","showMonth","remindUnit","req"],N=["api","defaultValue"],w=(0,r.withFetch)(e=>{let{data:t}=e,a=(0,s.A)(e,b);return(0,C.jsx)(d.Select,(0,n.A)((0,n.A)({},a),{},{options:t}))}),{useDecorator:F,useUIDecorator:P}=o.hooks,R=e=>{if(!e)return"";const t=isNaN(Number(e))?e:Math.abs(Number(e));return e.split(".")[1]&&e.split(".")[1].length>2?t.toFixed(2):t},I=e=>{let{children:t,isError:a}=e;return(0,C.jsx)("div",{style:{marginBottom:0},className:"react-form__field ".concat(a?"is-error":""),children:(0,C.jsx)("div",{className:"react-form__field-main",children:(0,C.jsx)("div",{className:"react-form__field-input",children:(0,l.cloneElement)(t,{className:"react-form__field-component"})})})})},z=e=>{let{getPopupContainer:t,onBlur:a,api:l,isRange:r=!0,placeholder:o,disabled:i,showMonth:A,remindUnit:j,req:b}=e,N=(0,s.A)(e,S);const[F,P]=v()(N),{formatMessage:z}=(0,x.useIntl)({moduleName:"FormInfo"}),M=z({id:"defaultSelectPlaceholder"},{label:""}),T=z({id:"defaultInputPlaceholder"},{label:""}),O=[6].indexOf((0,y.get)(F,"type"))>-1,L=1===(0,y.get)(F,"type"),k=7===(0,y.get)(F,"type"),E=e=>{if(e)return O?e/1e4:e},D=c()(a||(()=>{}));return(0,C.jsx)("div",{ref:D,className:u,children:(0,C.jsxs)(d.Row,{wrap:!1,gutter:10,children:[(0,C.jsx)(d.Col,{children:(0,C.jsx)(w,(0,n.A)((0,n.A)({className:p},l),{},{value:(0,y.get)(F,"type"),onChange:e=>{P&&P(Object.assign({},L?{}:F,{type:e,min:"",max:""}))},placeholder:o||M,getPopupContainer:t,disabled:i}))}),L?null:(0,C.jsxs)(d.Col,{flex:1,children:[r&&(0,C.jsxs)(d.Row,{className:j&&[5,6].includes(null===F||void 0===F?void 0:F.type)?g:f,wrap:!1,children:[(0,C.jsx)(d.Col,{flex:1,children:(0,C.jsx)(I,{isError:!(0,y.get)(F,"min")&&b,children:(0,C.jsx)(d.InputNumber,{disabled:i,placeholder:T,formatter:R,value:E((0,y.get)(F,"min")),style:{textAlign:"center"},onChange:e=>{P(Object.assign({},F,{min:O?1e4*e:e}))},description:j&&[5,6].includes(null===F||void 0===F?void 0:F.type)?(0,C.jsxs)("span",{style:{color:"#fc3333"},children:["\u6ce8\u610f\uff1a",(0,C.jsx)(_.default,{name:null===F||void 0===F?void 0:F.type,moduleName:"salaryTypeEnum"}),"\u7684\u5355\u4f4d\u4e3a",O?z({id:"thousand"}):k?"":z({id:"yuan"})]}):null})})}),(0,C.jsx)(d.Col,{children:(0,C.jsx)(d.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0})}),(0,C.jsx)(d.Col,{flex:1,children:(0,C.jsx)(I,{isError:!(0,y.get)(F,"max")&&b,children:(0,C.jsx)(d.InputNumber,{disabled:i,placeholder:T,formatter:R,value:E((0,y.get)(F,"max")),style:{textAlign:"center"},addonAfter:O?z({id:"thousand"}):k?"":z({id:"yuan"}),onChange:e=>{P(Object.assign({},F,{max:O?1e4*e:e}))}})})}),5===(0,y.get)(F,"type")&&A&&(0,C.jsx)(d.Col,{children:(0,C.jsxs)("span",{className:(0,y.get)(F,"max")&&(0,y.get)(F,"min")&&!(0,y.get)(F,"month")&&b?"error":"",children:[(0,C.jsx)("span",{className:m,children:"X"}),(0,C.jsx)(d.InputNumber,{min:12,disabled:i,value:(0,y.get)(F,"month"),onChange:e=>{P(Object.assign({},F,{month:e}))},style:{width:100,textAlign:"center"},placeholder:"\u6570\u91cf",addonAfter:"\u6708"})]})})]}),!r&&!k&&(0,C.jsx)(d.InputNumber,{disabled:i,min:0,max:1e8,placeholder:T,className:h,formatter:R,value:E((0,y.get)(F,"max")),style:{textAlign:"center"},addonAfter:O?z({id:"thousand"}):k?"":z({id:"yuan"}),onChange:e=>{P(Object.assign({},F,{max:O?1e4*e:e}))}}),!r&&k&&(0,C.jsx)(d.Input,{disabled:i,placeholder:T,className:h,onChange:e=>{P(Object.assign({},F,{max:e.target.value}))},value:(0,y.get)(F,"max"),style:{textAlign:"center"}})]})]})})},M={loader:()=>[{value:1,label:"\u9762\u8bae"},{value:2,label:"\u65f6\u85aa"},{value:3,label:"\u65e5\u85aa"},{value:4,label:"\u5468\u85aa"},{value:5,label:"\u6708\u85aa"},{value:6,label:"\u5e74\u85aa"}]},T={type:5,min:"",max:"",month:12},O=e=>{let{api:t=M,defaultValue:a=T}=e,l=(0,s.A)(e,N);return(0,C.jsx)(x.IntlProvider,{moduleName:"FormInfo",importMessages:A.A,children:(0,C.jsx)(z,(0,n.A)((0,n.A)({},l),{},{api:t,defaultValue:a}))})},L=e=>{var t;return F((0,n.A)((0,n.A)({},e),{},{req:(null===e||void 0===e||null===(t=e.rule)||void 0===t?void 0:t.indexOf("REQ"))>-1}))(O)};L.Field=O;const k=L},45053(e,t,a){a.d(t,{A:()=>p});var n=a(98434),s=a(55199),l=a(73884),r=a(83136),o=a.n(r),i=a(70720),c=a.n(i),d=a(47094),u=a(70579);const p=e=>{let{name:t,groupName:a,overlayClassName:r,errorRender:i=()=>null,groupIndex:p,children:m}=e;const h=(e=>{let{name:t,groupName:a,groupIndex:s}=e;const{emitter:r,formState:o}=(0,n.useFormContext)(),i=(0,l.useRef)({name:t,groupName:a,groupIndex:s});i.current={name:t,groupName:a,groupIndex:s};const c=(0,l.useRef)(o);c.current=o;const[d,u]=(0,l.useState)(null);return(0,l.useEffect)(()=>{const e=r.addListener("form-field-validate-complete",e=>{let{id:t,validate:a}=e;const s=c.current[t];if(!s)return;const l=i.current;s.name!==l.name||l.groupName&&(s.groupName!==l.groupName||s.groupIndex!==l.groupIndex)||u(2===a.status?Object.assign({},a,{label:s.label,errMsg:n.util.compileErrMsg(a.msg,s.label)}):null)});return()=>{e&&e.remove()}},[r]),d})({name:t,groupName:a,groupIndex:p}),[g,f]=(0,l.useState)(!1),x=h&&g&&i(Object.assign({},h,{closeHover:()=>f(!1)})),A=(0,l.useRef)(null),_=(0,l.useRef)(null);c()(()=>{f(!1)}).current={contains:e=>A.current.contains(e)||_.current&&_.current.contains(e)};const[j,v]=(0,l.useState)(0);return(0,l.useLayoutEffect)(()=>{const e=()=>{const e=A.current.querySelector(".react-form__field-component");e&&v(e.clientWidth)};e();const t=new ResizeObserver(e);t.observe(A.current);const a=new MutationObserver(e);return a.observe(A.current,{subtree:!0,childList:!0}),()=>{a.disconnect(),t.disconnect()}},[]),(0,u.jsx)(s.Popover,{open:!!x,rootClassName:o()(r,d.A["error-tip-overlay"]),content:x&&(0,u.jsx)("div",{ref:_,style:{width:j},className:o()(d.A["error-tip-overlay-content"]),children:x}),placement:"bottom",transitionName:"ant-slide-up",arrow:!1,children:(0,u.jsx)("div",{className:o()("error-tip"),ref:A,onMouseEnter:()=>{f(!0)},children:m})})}},46237(e,t,a){a.d(t,{Ay:()=>i,oc:()=>o});var n=a(73884);const s=(0,n.createContext)([]),{Provider:l,Consumer:r}=s,o=()=>(0,n.useContext)(s),i=l},46732(e,t,a){a.d(t,{A:()=>d,K:()=>c});var n=a(75363),s=a(73884),l=a(98434),r=a(47094),o=a(70579);const i=(0,s.createContext)(""),{Provider:c}=i,d=e=>{let{name:t}=e;const a=(0,s.useContext)(i),c=(0,l.useGroup)();return a&&(0,o.jsx)(n.default,{className:r.A["helper-guide-field"],name:a+"-"+(c.name?c.name+"-":"")+t})}},47094(e,t,a){a.d(t,{A:()=>n});const n={}},48221(e,t,a){a.d(t,{Ay:()=>c,WJ:()=>u,Xy:()=>d});var n=a(89379),s=a(25963),l=a(73025),r=a(47094),o=a(76995),i=a(70579);const c=e=>(0,i.jsx)(s.default,(0,n.A)({},(0,o.A)(Object.assign({},e,{className:r.A["form-drawer"]})))),d=()=>{const e=(0,s.useDrawer)();return t=>e((0,o.A)(Object.assign({},t,{className:r.A["form-drawer"]})))},u=e=>{const t=d();return(0,i.jsx)(l.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},50196(e,t,a){a.r(t),a.d(t,{AudioPreview:()=>n.AudioPreview,HtmlPreview:()=>n.HtmlPreview,ImagePreview:()=>n.ImagePreview,OSSFilePreview:()=>n.OSSFilePreview,OfficePreview:()=>n.OfficePreview,PdfPreview:()=>n.PdfPreview,TextPreview:()=>n.TextPreview,UnknownPreview:()=>n.UnknownPreview,VideoPreview:()=>n.VideoPreview,default:()=>n.FilePreview});a(64674);var n=a(61323)},55431(e,t,a){a.d(t,{A:()=>n});const n=e=>({"en-US":()=>Promise.resolve().then(a.bind(a,21649)),"zh-CN":()=>Promise.resolve().then(a.bind(a,80711))}[e]())},56259(e,t,a){a.d(t,{A:()=>o});var n=a(89319),s=a(98434);const{useOnChange:l}=s.hooks,r=e=>l(Object.assign({},{},e))(n.A);r.Field=n.A;const o=r},64261(e,t,a){a.d(t,{A:()=>_});var n=a(89379),s=a(98434),l=a(57469),r=a.n(l),o=a(34677),i=a.n(o),c=a(33097),d=a.n(c),u=a(22717),p=a.n(u),m=(a(17448),a(2842)),h=a(46732),g=a(13050),f=a(70579);const x=s.RULES.REQ,A=s.RULES.LEN,_=async(e,t)=>{const{locale:a}=Object.assign({},t);s.interceptors.input.use("photo-string",e=>{if(e&&"string"===typeof e){const[t,a]=e.split("?"),n=new URLSearchParams(a);return Object.assign({},{id:t},p()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}return e}),s.interceptors.output.use("photo-string",e=>e&&"string"!==typeof e?"".concat(null===e||void 0===e?void 0:e.id).concat(null!==e&&void 0!==e&&e.filename?"?filename=".concat(null===e||void 0===e?void 0:e.filename):""):e),s.interceptors.input.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>{const[t,a]=e.split("?"),n=new URLSearchParams(a);return Object.assign({},{id:t},p()(Array.from(n.entries()),(e,t)=>{e[t[0]]=t[1]},{}))}):e),s.interceptors.output.use("photo-string-list",e=>e&&Array.isArray(e)&&e.length>0?e.map(e=>"".concat(null===e||void 0===e?void 0:e.id).concat(null!==e&&void 0!==e&&e.filename?"?filename=".concat(null===e||void 0===e?void 0:e.filename):"")):e),s.interceptors.input.use("to-array",e=>Array.isArray(e)?e[0]:e),s.interceptors.output.use("to-array",e=>[e]),s.interceptors.input.use("array-single",e=>e?[e]:[]),s.interceptors.output.use("array-single",e=>e?e[0]:null),s.interceptors.input.use("boolean-number",e=>1===e||"1"===e),s.interceptors.output.use("boolean-number",e=>e?1:0),s.interceptors.input.use("un-boolean",e=>!e),s.interceptors.output.use("un-boolean",e=>!e),s.interceptors.output.use("object-output-value",e=>e?e.value||e.id:e),s.interceptors.output.use("array-output-value",e=>Array.isArray(e)&&e.length>0?e.map(e=>e.value||e.id):[]),s.interceptors.input.use("date-string",e=>e?r()(e):null),s.interceptors.output.use("date-string",e=>e?new Date(e.valueOf()).toISOString():""),s.interceptors.input.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(r()(e[0])),e[0]&&e[1]&&"sofar"===e[1]&&t.push("\u81f3\u4eca"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(r()(e[1])),t}),s.interceptors.output.use("date-range-string",e=>{if(!Array.isArray(e))return[];const t=[];return e[0]&&t.push(new Date(e[0].valueOf()).toISOString()),e[0]&&e[1]&&"\u81f3\u4eca"===e[1]&&t.push("sofar"),e[0]&&e[1]&&"\u81f3\u4eca"!==e[1]&&t.push(new Date(e[1].valueOf()).toISOString()),t}),s.interceptors.output.use("file-format",e=>Array.isArray(e)?e.map(e=>Object.assign({},e,{id:e.id||e.ossId,originalName:e.filename})):[]),s.interceptors.input.use("file-format",e=>Array.isArray(e)?e.map(e=>({id:e.id||e.ossId,ossId:e.id||e.ossId,filename:e.originalName||e.filename})):[]);const{default:l}=await(0,g.loadModule)("components-iconfont:CountyFlag@load"),o=await l(),c=new Map(o.map(e=>{let{ab:t,country_code:a}=e;return[t,a]})),u=new Map(o.map(e=>{let{ab:t,country_code:a}=e;return[a,t]}));s.interceptors.output.use("phone-number-string",e=>null!==e&&void 0!==e&&e.code&&null!==e&&void 0!==e&&e.value?"+".concat(c.get(e.code)," ").concat(e.value.replace(/\s+/g,"")):""),s.interceptors.input.use("phone-number-string",e=>{if(!e)return{};const t=e.match(/^\+(\d+)\s(.*)/);return t&&t.length>=3?{code:u.get(Number(t[1])),value:t[2]}:{code:u.get(86),value:e}});const _=(e,t)=>{t=Object.assign({},t);const n={REQ:{"zh-CN":"%s\u4e0d\u80fd\u4e3a\u7a7a","en-US":"%s cannot be empty "},EMAIL:{"zh-CN":"\u8bf7\u8f93\u5165\u6709\u6548\u7684%s","en-US":"Please enter a valid %s"},LENGTH_EQUAL:{"zh-CN":"%s\u5fc5\u987b\u7b49\u4e8e".concat(t.end),"en-US":"%s must be equal to ".concat(t.end)},LENGTH_MORE:{"zh-CN":"%s\u5fc5\u987b\u5927\u4e8e".concat(t.start),"en-US":"%s must be greater than ".concat(t.start)},LENGTH_LESS:{"zh-CN":"%s\u5fc5\u987b\u5c0f\u4e8e".concat(t.end),"en-US":"%s must be less than ".concat(t.end)}},s=d()(n,"".concat(e,".").concat(a));return s||d()(n,"".concat(e,".zh-CN"))};(0,s.preset)(i()({},{type:"inner",rules:{REQ:function(){return Object.assign({},x(...arguments),{errMsg:_("REQ")})},LEN:function(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];const[n,s,l]=t;let r="";return l===s&&n.length!==Number(l)&&(r="LENGTH_EQUAL"),n.length<s&&(r="LENGTH_MORE"),l&&n.length>l&&(r="LENGTH_LESS"),Object.assign({},A(...t),{errMsg:_(r,{start:s,end:l})})},EMAIL:function(e){return{result:/^([a-zA-Z0-9_.-])+@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(e),errMsg:_("EMAIL")}},PHONE_NUMBER_INPUT:m.PHONE_NUMBER_INPUT,ARRAY_LENGTH:(e,t,a)=>a===t&&e.length!==Number(a)?{result:!1,errMsg:_("LENGTH_EQUAL",{start:t,end:a})}:e.length<t?{result:!1,errMsg:_("LENGTH_MORE",{start:t,end:a})}:a&&e.length>a?{result:!1,errMsg:_("LENGTH_LESS",{start:t,end:a})}:{result:!0}},field:{datePicker:{defaultProps:{interceptor:"date-string"}},rangeDatePicker:{defaultProps:{interceptor:"date-range-string"}},inputNumber:{defaultProps:{changeOnWheel:!1}},textArea:{defaultProps:{autoSize:{minRows:2,maxRows:6}}}},globalProps:{labelTips:e=>(0,f.jsx)(h.A,(0,n.A)({},e))}},"function"===typeof e?e({interceptors:s.interceptors,RULES:s.RULES}):e))}},70188(e,t,a){a.d(t,{A:()=>r});var n=a(52526),s=a(80711),l=a(21649);const r=(0,n.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":s.default,"en-US":l.default},namespace:"form-info"})},76995(e,t,a){a.d(t,{A:()=>h});var n=a(89379),s=a(53986),l=a(98434),r=a(52526),o=a(83799),i=a(83136),c=a.n(i),d=a(47094),u=a(70579);const p=["className","withDecorator","footerButtons","formProps","cancelText","saveText","autoClose"],m=["onSubmit","key"],h=e=>{let{className:t,withDecorator:a,footerButtons:i,formProps:h,cancelText:g,saveText:f,autoClose:x=!0}=e,A=(0,s.A)(e,p);return(0,n.A)((0,n.A)({},A),{},{footerButtons:i||[{children:g||(0,u.jsx)(r.FormattedMessage,{id:"Cancel"}),ButtonComponent:l.CancelButton},{type:"primary",children:f||(0,u.jsx)(r.FormattedMessage,{id:"Save"}),ButtonComponent:l.SubmitButton,autoClose:!1}],withDecorator:(e,t)=>{const l=t=>{const a=Object.assign({},"function"===typeof h?h(t):h),{onSubmit:l,key:r}=a,i=(0,s.A)(a,m);return(0,u.jsx)(o.lV,(0,n.A)((0,n.A)({},i),{},{onSubmit:async function(e){for(var a=arguments.length,n=new Array(a>1?a-1:0),s=1;s<a;s++)n[s-1]=arguments[s];!1!==(l&&await l(e,Object.assign({},t),...n))&&x&&t.close()},children:e(t)}))};return"function"===typeof a?a(l,t):l(t)},className:c()(t,d.A["form-outer"])})}},78756(e,t,a){a.d(t,{A:()=>o});var n=a(43856),s=a(98434);const{useOnChange:l}=s.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.IndustrySelectField);r.Field=n.IndustrySelectField,r.Enum=n.IndustrySelectField.Enum;const o=r},80711(e,t,a){a.r(t),a.d(t,{default:()=>n});const n={addText:"\u6dfb\u52a0",addSomeThing:"\u6dfb\u52a0{label}",delText:"\u5220\u9664",selectedTextAdvanced:"\u5df2\u9009",delConfirm:"\u786e\u5b9a\u8981\u5220\u9664\u8fd9\u6761{name}\u5417?",defaultInputPlaceholder:"\u8bf7\u8f93\u5165{label}",defaultSelectPlaceholder:"\u8bf7\u9009\u62e9{label}",startDate:"\u5f00\u59cb\u65e5\u671f",endDate:"\u7ed3\u675f\u65e5\u671f",soFarText:"\u81f3\u4eca",uploadButtonText:"\u70b9\u51fb\u4e0a\u4f20",uploadTips:"\u652f\u6301\u6269\u5c55\u540d{extensionNames},\u5355\u4e2a\u6587\u4ef6\u5927\u5c0f\u4e0d\u8d85\u8fc7{fileSize}M\uff0c\u6700\u591a\u4e0a\u4f20{maxLength}\u4e2a\u9644\u4ef6",yuan:"\u5143",thousand:"\u4e07\u5143",salaryType:"\u85aa\u8d44\u7c7b\u578b",Cancel:"\u53d6\u6d88",Save:"\u4fdd\u5b58",Next:"\u4e0b\u4e00\u6b65",Complete:"\u5b8c\u6210",Crop:"\u88c1\u526a",Preview:"\u9884\u89c8",PictureFormat:"\u56fe\u7247\u683c\u5f0f\uff1a",ImageSize:"\u56fe\u7247\u5c3a\u5bf8\uff1a",ReUpload:"\u91cd\u65b0\u4e0a\u4f20",UploadFailed:"\u4e0a\u4f20\u5931\u8d25{msg}",NotExceeding:"\u4e0d\u8d85\u8fc7{size}M",FileNotExceeding:"\u6587\u4ef6{name}\u4e0d\u80fd\u8d85\u8fc7{size}MB!",Rotate:"\u65cb\u8f6c",ImageFull:"\u5145\u6ee1",Size:"\u5927\u5c0f"}},81026(e,t,a){a.d(t,{A:()=>o});var n=a(43856),s=a(98434);const{useOnChange:l}=s.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(n.FunctionSelectField);r.Field=n.FunctionSelectField,r.Enum=n.FunctionSelectField.Enum;const o=r},83230(e,t,a){a.d(t,{A:()=>o});var n=a(98434),s=a(43856);const{useOnChange:l}=n.hooks,r=e=>l(Object.assign({},{placeholder:"\u8bf7\u9009\u62e9"+e.label},e))(s.CascaderField);r.Field=s.CascaderField,r.createTreeUtils=s.createTreeUtils;const o=r},83799(e,t,a){a.d(t,{NI:()=>G,TQ:()=>m.A,JL:()=>B,eu:()=>j.A,vx:()=>h.A,lr:()=>te,s3:()=>ae,lV:()=>r.A,d4:()=>g.A,ZN:()=>f.A,pd:()=>Y,YI:()=>Z,h2:()=>Q,F0:()=>x.A,go:()=>A.default,tt:()=>l.Rate,lu:()=>v.A,l6:()=>$,Ap:()=>l.Slider,wD:()=>V,eM:()=>W,kx:()=>q,Pg:()=>H,dO:()=>l.Switch,EY:()=>z,fs:()=>X,AG:()=>ee,f7:()=>K,w5:()=>C.A,_O:()=>_.A,nk:()=>ne});var n=a(89379),s=a(53986),l=a(98434),r=a(85696),o=a(52526),i=a(73884),c=a(30891),d=a(47094),u=a(30096),p=a(34643),m=a(1904),h=a(83230),g=a(81026),f=a(78756),x=a(92328),A=a(2842),_=a(89099),j=a(96339),v=a(36972),y=a(15209),C=a(56259),b=a(55199),S=a(10986),N=a.n(S),w=a(70579);const F=["children"],{useDecorator:P}=l.hooks,R=e=>{let{children:t}=e,a=(0,s.A)(e,F);const[l]=N()(a);return(0,w.jsxs)(b.Typography.Text,(0,n.A)((0,n.A)({},a),{},{children:[(0,w.jsx)("div",{style:{height:0,width:0,overflow:"hidden"},children:(0,w.jsx)(b.Input,{value:l})}),t||l]}))},I=e=>P(e)(R);I.Field=R;const z=I;var M=a(45053),T=a(70188);const O=["placeholder","label"],L=["placeholder","label","className"],k=["placeholder","label"],E=["placeholder","label","soFarText"],D=e=>{const t=(0,T.A)((0,i.forwardRef)((t,a)=>{let{placeholder:l,label:r}=t,i=(0,s.A)(t,O);const{formatMessage:c}=(0,o.useIntl)();return(0,w.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:a,label:r,placeholder:l||c({id:"defaultInputPlaceholder"},{label:r})}))}));return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(a=>{t[a]=e[a]}),t},U=e=>{const t=(0,T.A)((0,i.forwardRef)((t,a)=>{let{placeholder:l,label:r}=t,i=(0,s.A)(t,k);const{formatMessage:c}=(0,o.useIntl)();return(0,w.jsx)(e,(0,n.A)((0,n.A)({},i),{},{ref:a,label:r,placeholder:l||c({id:"defaultSelectPlaceholder"},{label:r})}))}));return Object.keys(e).filter(e=>-1===["$$typeof","render","field"].indexOf(e)).forEach(a=>{t[a]=e[a]}),t},B=U(u.Ay),V=U(p.Ay),W=U(p.eM),H=U(p.Pg),q=U(p.kx),G=U(m.N),Q=D(y.A),Y=D(l.Input);Y.Password=D(l.Input.Password);const X=(J=l.TextArea,(0,T.A)(e=>{let{placeholder:t,label:a,className:l}=e,r=(0,s.A)(e,L);const{formatMessage:i}=(0,o.useIntl)();return(0,w.jsx)("div",{className:d.A["textarea-wrapped-component"],children:(0,w.jsx)(J,(0,n.A)((0,n.A)({},r),{},{label:a,placeholder:t||i({id:"defaultInputPlaceholder"},{label:a})}))})}));var J;const $=U(l.Select),Z=D(l.InputNumber),K=U(l.TreeSelect),ee=U(l.TimePicker);ee.RangePicker=U(l.TimePicker.RangePicker);const te=U(l.DatePicker);te.MonthPicker=U(l.DatePicker.MonthPicker),te.RangePicker=U(l.DatePicker.RangePicker),te.WeekPicker=U(l.DatePicker.WeekPicker);const ae=e=>{let{placeholder:t,label:a,soFarText:r}=e,i=(0,s.A)(e,E);const{formatMessage:c}=(0,o.useIntl)({moduleName:"FormInfo"});return(0,w.jsx)(l.DatePickerToday,(0,n.A)((0,n.A)({},i),{},{label:a,placeholder:[c({id:"startDate"}),c({id:"endDate"})],soFarText:r||c({id:"soFarText"})}))},ne=Object.assign({},l,{Input:Y,InputUpperCase:Q,TextArea:X,Select:$,InputNumber:Z,TreeSelect:K,TimePicker:ee,DatePicker:te,DatePickerToday:ae,Form:r.A,FormItem:c.A,AdvancedSelect:B,SuperSelect:V,SuperSelectTableList:W,SuperSelectUser:H,SuperSelectTree:q,AddressSelect:m.A,AddressInput:G,MoneyInput:x.A,PhoneNumber:A.default,Cascader:h.A,FunctionSelect:g.A,IndustrySelect:f.A,TypeDateRangePicker:C.A,Upload:_.A,Avatar:j.A,SalaryInput:v.A,Text:z,Rate:l.Rate,Switch:l.Switch,Slider:l.Slider,ErrorTip:M.A})},85696(e,t,a){a.d(t,{A:()=>x});var n=a(89379),s=a(53986),l=a(73884),r=a(72752),o=a(33097),i=a.n(o),c=a(64261),d=a(46237),u=a(53158),p=a(46732),m=(a(39825),a(70188)),h=a(70579);const g=["helperGuideName","lang"],f=e=>{let{children:t}=e;const[a,n]=(0,l.useState)(!1),s=(0,r.usePreset)(),o=(0,r.useGlobalValue)("locale"),d=i()(s,"formInfo",{});return(0,l.useEffect)(()=>{Promise.resolve((0,c.A)(d,{locale:o})).then(()=>{n(!0)})},[d,o]),a?(0,h.jsx)(l.Fragment,{children:t},o):null},x=(0,m.A)((0,l.forwardRef)((e,t)=>{let{helperGuideName:a,lang:l}=e,r=(0,s.A)(e,g);return(0,h.jsx)(d.Ay,{value:l,children:(0,h.jsx)(p.K,{value:a,children:(0,h.jsx)(f,{children:(0,h.jsx)(u.Form,(0,n.A)((0,n.A)({},r),{},{ref:t}))})})})}))},89099(e,t,a){a.d(t,{A:()=>N});var n=a(89379),s=a(53986),l=a(55199),r=a(83136),o=a.n(r),i=a(10986),c=a.n(i);const d="style_upload__t422Q__RCjzi",u="style_upload-list__Q9HDc__RCjzi",p="style_tips__3Gpnu__RCjzi";var m=a(34699),h=a(98434),g=a(47458),f=a(1488),x=a.n(f),A=a(17508),_=a(55431),j=a(70579);const v=["className","fileSize","maxLength","multiple","size","accept","children","renderTips","showUploadList","onSave","ossUpload","onUpload","getPermission","concurrentCount"],y=["interceptor"],{useOnChange:C}=h.hooks,b=(0,g.createWithIntl)({importMessages:_.A,moduleName:"FormInfo"})(e=>{const{formatMessage:t}=(0,g.useIntl)({moduleName:"FormInfo"}),a=Object.assign({},{defaultValue:[],children:t({id:"uploadButtonText"}),accept:[".pdf",".jpg",".png",".jpeg",".doc",".docx",".xls",".xlsx",".html",".msg",".eml",".zip"],renderTips:e=>e,multiple:!0,showUploadList:!0,maxLength:10,fileSize:30,concurrentCount:10},e),{className:r,fileSize:i,maxLength:h,multiple:f,size:_,accept:y,children:C,renderTips:b,showUploadList:S,onSave:N,ossUpload:w,onUpload:F,getPermission:P,concurrentCount:R}=a,I=(0,s.A)(a,v),[z,M]=c()(I),T=z||[],{fileList:O,onFileSelected:L}=(0,A.lN)({multiple:f,onSave:N,onUpload:w||F,fileSize:i,maxLength:h,value:T,onChange:M,concurrentCount:R}),k=[...O,...T],E=b(t({id:"uploadTips"},{extensionNames:y.map(e=>e.replace(/^\./,"")).join(","),maxLength:h,fileSize:i}),{fileSize:i,maxLength:h,accept:y});return(0,j.jsxs)(l.Space,{direction:"vertical",children:[(0,j.jsxs)(l.Flex,{align:"start",gap:8,vertical:!0,children:[(0,j.jsx)(A.Zi,(0,n.A)((0,n.A)({},x()(I,["value","onChange"])),{},{size:_,multiple:f,accept:y,className:o()(d,r),onChange:L,children:C})),E&&(0,j.jsx)("div",{className:p,children:E})]}),S&&k.length>0&&(0,j.jsx)(m.List,{className:u,dataSource:k,infoItemRenders:[],getPermission:P||(e=>"delete"===e),apis:{onDelete:e=>{const t=T.slice(0),a=t.indexOf(e);a>-1&&t.splice(a,1),M(t)}}})]})}),S=e=>{let{interceptor:t="file-format"}=e,a=(0,s.A)(e,y);return C((0,n.A)({interceptor:t},a))(b)};S.Field=b;const N=S},92328(e,t,a){a.d(t,{A:()=>C});var n=a(89379),s=a(53986),l=a(10986),r=a.n(l),o=a(98434),i=a(55199),c=a(69484);const d="style_money-input__Pyur7__RCjzi",u="style_money-description__9pFk4__RCjzi";var p=a(83136),m=a.n(p),h=a(34677),g=a.n(h),f=a(73884),x=a(70579);const A=["chineseEmpty","className","showError","errorDesc","transformMoneyToChinese","onBlur","moneyFormat"],{isNotEmpty:_}=o.util||o.formUtils,{useOnChange:j}=o.hooks,v=e=>{let{chineseEmpty:t,className:a,showError:l,errorDesc:o,transformMoneyToChinese:p,onBlur:h,moneyFormat:j}=e,v=(0,s.A)(e,A);const[y,C]=(0,f.useState)(""),[b,S]=r()(v),N=g()({controls:!1,precision:2,addonAfter:"\u5143"},v,{max:_(v.max)?v.max>c.e?c.e:v.max:c.e});return(0,x.jsxs)("div",{className:m()(a,"money-input",d),children:[(0,x.jsx)(i.InputNumber,(0,n.A)((0,n.A)({},N),{},{status:y,formatter:j?e=>"".concat(e).replace(/\B(?=(\d{3})+(?!\d))/g,","):null,parser:e=>{const t=j?null===e||void 0===e?void 0:e.replace(/\$\s?|(,*)/g,""):e;return _(t)?(Number(t)>Number(N.max)||_(N.min)&&Number(t)<Number(N.min))&&C("error"):C(""),_(t)?Number(t):null},onChange:e=>{S(e)},onBlur:e=>{h&&h(e,C)}})),(0,x.jsx)("div",{className:m()(u),children:"error"===y&&l?o:_(b)?(0,c.A)(p?p(b):b):t})]})},y=e=>j(Object.assign({placeholder:"\u8bf7\u8f93\u5165".concat(e.label||"")},e))(v);y.Field=v,y.toChineseCharacter=c.A;const C=y},94005(e,t,a){a.d(t,{$X:()=>S,Ay:()=>b,Wp:()=>N});var n=a(89379),s=a(53986),l=a(3382),r=a(73884),o=a(98434),i=a(73025),c=a(47458),d=a(47094),u=a(55431),p=a(55199),m=a(76995),h=a(70579);const g=["footerButtons","cancelText","completeText","nextText","items","withDecorator","autoClose"],f=["formProps","title"],x=["onSubmit"],A=["formProps"],_=["children","stepSection"],j=["modalProps"],v="FormInfo",y=e=>{let{items:t,children:a}=e;const[n,s]=(0,r.useState)(0);return a({currentIndex:n,setCurrentIndex:s,stepCacheRef:(0,r.useRef)({}),isLastStep:n===t.length-1,currentProps:Object.assign({},t[n])})},C=e=>{let{footerButtons:t,cancelText:a,completeText:n,nextText:l,items:r,withDecorator:i,autoClose:j=!0}=e,C=(0,s.A)(e,g);return(0,m.A)(Object.assign({},C,{footerButtons:e=>{let{currentIndex:t,isLastStep:s}=e;const{footerButtons:i}=Object.assign({},r[t]);return i||[{children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:v,children:a||(0,h.jsx)(c.FormattedMessage,{id:"Cancel",moduleName:v})}),ButtonComponent:o.CancelButton},{type:"primary",children:(0,h.jsx)(c.IntlProvider,{importMessages:u.A,moduleName:v,children:s?n||(0,h.jsx)(c.FormattedMessage,{id:"Complete",moduleName:v}):l||(0,h.jsx)(c.FormattedMessage,{id:"Next",moduleName:v})}),ButtonComponent:o.SubmitButton,autoClose:!1}]},withDecorator:(e,t)=>{const a=t=>(0,h.jsx)(y,{items:r,children:a=>{var n;let{currentIndex:l,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}=a;const{formProps:m,title:g}=c,A=(0,s.A)(c,f),_="function"===typeof m?m(t):m,{onSubmit:v}=_,y=(0,s.A)(_,x),C=Object.assign({},y.data,null===(n=u.current[l])||void 0===n?void 0:n.data);return e(Object.assign({},t,A,{currentIndex:l,isLastStep:o,setCurrentIndex:i,stepCacheRef:u,stepSection:(0,h.jsx)(p.Steps,{className:d.A["form-step-section"],current:l,items:r.map(e=>{let{title:t}=e;return{title:t}})}),formProps:Object.assign({},y,{key:l,data:C,onSubmit:async function(e){u.current[l]={data:e};for(var a=arguments.length,n=new Array(a>1?a-1:0),s=1;s<a;s++)n[s-1]=arguments[s];const r=v&&await v(e,Object.assign({},t,{currentIndex:l,isLastStep:o,setCurrentIndex:i,currentProps:c,stepCacheRef:u}),...n);return u.current[l]=Object.assign({},u.current[l],{output:r}),j&&!o&&!1!==r&&i(e=>e+1),!!o&&r}})}))}});return"function"===typeof i?i(a,t):a(t)},formProps:e=>{let{formProps:t}=e,a=(0,s.A)(e,A);return Object.assign({},a,t)},children:e=>{let{children:t,stepSection:a}=e,n=(0,s.A)(e,_);return(0,h.jsxs)(p.Flex,{vertical:!0,gap:24,children:[(0,h.jsx)(p.Flex,{justify:"center",children:a}),"function"===typeof t?t(n):t]})}}))},b=e=>(0,h.jsx)(l.default,(0,n.A)({},C(Object.assign({},e,{className:d.A["form-modal"]})))),S=()=>{const e=(0,l.useModal)();return t=>e(C(Object.assign({},t,{className:d.A["form-modal"]})))},N=e=>{const t=S();if(!e.api){const{modalProps:a}=e,l=(0,s.A)(e,j);return(0,h.jsx)(p.Button,(0,n.A)((0,n.A)({},l),{},{onClick:()=>{t(a)}}))}return(0,h.jsx)(i.A,(0,n.A)((0,n.A)({},e),{},{modalFunc:t}))}},96252(e,t,a){a.r(t),a.d(t,{AddressInput:()=>f.NI,AddressSelect:()=>f.TQ,AdvancedSelect:()=>f.JL,Avatar:()=>f.eu,Cascader:()=>f.vx,DatePicker:()=>f.lr,DatePickerToday:()=>f.s3,ErrorTip:()=>m.A,Form:()=>u.A,FormApiButton:()=>o.A,FormDrawer:()=>d.Ay,FormDrawerButton:()=>d.WJ,FormItem:()=>p.A,FormModal:()=>i.Ay,FormModalButton:()=>i.W6,FormStepModal:()=>c.Ay,FormStepModalButton:()=>c.Wp,FormSteps:()=>l.FormSteps,FunctionSelect:()=>f.d4,IndustrySelect:()=>f.ZN,Input:()=>f.pd,InputNumber:()=>f.YI,InputUpperCase:()=>f.h2,List:()=>l.List,MoneyInput:()=>f.F0,MultiField:()=>l.MultiField,PhoneNumber:()=>f.go,Rate:()=>f.tt,SalaryInput:()=>f.lu,Select:()=>f.l6,SelectInnerInput:()=>x.A,Slider:()=>f.Ap,SuperSelect:()=>f.wD,SuperSelectTableList:()=>f.eM,SuperSelectTree:()=>f.kx,SuperSelectUser:()=>f.Pg,Switch:()=>f.dO,TableList:()=>l.TableList,Text:()=>f.EY,TextArea:()=>f.fs,TimePicker:()=>f.AG,TreeSelect:()=>f.f7,TypeDateRangePicker:()=>f.w5,Upload:()=>f._O,default:()=>A,fieldDecorator:()=>s.E,fields:()=>s.A,formModule:()=>f.nk,useFormDrawer:()=>d.Xy,useFormModal:()=>i.Vl,useFormStepModal:()=>c.$X});var n=a(64261),s=a(15445),l=a(53158),r=a.n(l),o=a(35774),i=a(5995),c=a(94005),d=a(48221),u=a(85696),p=a(30891),m=a(45053),h=a(98434),g={};for(const _ in h)["default","SelectInnerInput","Form","FormItem","ErrorTip","fields","fieldDecorator","List","TableList","FormApiButton","FormModal","useFormModal","FormModalButton","FormStepModal","FormSteps","useFormStepModal","FormStepModalButton","FormDrawer","useFormDrawer","FormDrawerButton","MultiField"].indexOf(_)<0&&(g[_]=()=>h[_]);a.d(t,g);var f=a(83799),x=a(18936);(0,n.A)(),r().fields=s.A,r().List=l.List,r().TableList=l.TableList,r().FormApiButton=o.A,r().FormModal=i.Ay,r().FormSteps=l.FormSteps,r().useFormModal=i.Vl,r().FormModalButton=i.W6,r().FormStepModal=c.Ay,r().useFormStepModal=c.$X,r().FormStepModalButton=c.Wp,r().FormDrawer=d.Ay,r().useFormDrawer=d.Xy,r().FormDrawerButton=d.WJ,r().Form=u.A,r().FormItem=p.A,r().ErrorTip=m.A,r().SubmitButton=h.SubmitButton,r().CancelButton=h.CancelButton,r().fieldDecorator=s.E,r().MultiField=l.MultiField,r().useFormContext=h.useFormContext,r().hooks=h.hooks,r().widget=h.widget,r().utils=h.utils,r().formUtils=h.formUtils;const A=r()},96339(e,t,a){a.d(t,{A:()=>W});var n=a(53986),s=a(89379),l=a(73884),r=a(17508),o=a(40438),i=a(72752),c=a(3382),d=a(64671),u=a(55199),p=a(53202),m=a.n(p),h=a(33097),g=a.n(h),f=a(83136),x=a.n(f),A=a(51941),_=a(98434),j=a(34677),v=a.n(j);const y="style_upload-btn__-6XtP__RCjzi",C="style_square__UPkfA__RCjzi",b="style_is-loading__wx6Pd__RCjzi",S="style_upload-btn-tips__YtxWz__RCjzi",N="style_drop-tips__N-v59__RCjzi",w="style_preview-area__aV3SN__RCjzi";var F=a(18411),P=a(47458),R=a(55431),I=a(70579);const z=["image","width","height","borderRadius","preview","fileSize","accept","renderTips","getApi","shape","border"],M=["image","width","height","borderRadius","getApi","preview","fileSize","accept","renderTips","border","dropModalSize"],{useOnChange:T}=_.hooks,O=o.default.Avatar,L="FormInfo",k=(0,r.Ay)(e=>{let{className:t,icon:a,loading:n,value:l,gender:r,width:o,height:i,children:c,shape:p,defaultAvatar:m,displayAvatar:h,apis:f}=e;const A=(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(O,(0,s.A)((0,s.A)({},Object.assign({},"function"===typeof h?h(l):{id:g()(l,"id")})),{},{gender:r,width:64*o/i,height:64,shape:p,defaultAvatar:m,apis:f})),(0,I.jsx)("div",{className:S,children:a||(0,I.jsx)(d.default,{type:"icon-chuanzhaopian",size:16})}),c]});return(0,I.jsx)("div",{className:x()(t,y,{[b]:n,[C]:"square"===p||!(o&&o===i)}),style:{width:64*o/i},children:n?(0,I.jsx)(u.Spin,{children:A}):A})}),E=e=>{let t=e.split(","),a=t[1].substring(0,t[1].length-2),n=t[0].match(/:(.*?);/)[1],s=atob(a),l=s.length,r=new Uint8Array(l);for(;l--;)r[l]=s.charCodeAt(l);return new Blob([r],{type:n})},D=(0,l.forwardRef)((e,t)=>{let{image:a,width:o,height:i,borderRadius:c,preview:p,fileSize:h,accept:g,renderTips:f,getApi:x,shape:_,border:j=1}=e,v=(0,n.A)(e,z);const y=(0,P.useIntl)({moduleName:L}),[C,b]=(0,l.useState)(0),S=(0,l.useRef)(null),[F,R]=(0,l.useState)(a),[M,T]=(0,l.useState)(1),[O,k]=(0,l.useState)(0),[D,U]=(0,l.useState)(""),B=(0,l.useRef)(null);(0,l.useLayoutEffect)(()=>{b(2*S.current.clientWidth/3)},[]),x({getImage:()=>{const e=B.current.getImage(),t=document.createElement("canvas"),a=t.getContext("2d");return t.width=o,t.height=i,a.drawImage(e,0,0,t.width,t.height),new window.File([E(t.toDataURL())],F.name,{type:F.type})}});const V=()=>{U(B.current.getImage().toDataURL())},W=(0,A.useDebouncedCallback)(V,500);return(0,I.jsx)("div",{ref:S,children:(0,I.jsxs)(u.Row,{wrap:!1,align:"middle",children:[(0,I.jsx)(u.Col,{span:p?16:24,children:C&&(0,I.jsxs)(u.Space,{direction:"vertical",children:[(0,I.jsx)(m(),(0,s.A)((0,s.A)({},v),{},{ref:B,image:F,scale:M,rotate:O,width:C-2*j,height:i*C/o-2*j*i/o,border:j,color:[0,0,0,.6],borderRadius:c*C/o,onImageReady:V,onImageChange:W})),(0,I.jsx)("div",{className:N,children:f("".concat(y.formatMessage({id:"PictureFormat"})).concat(g.map(e=>e.replace(/^\./,"")).join(" ")," ").concat(y.formatMessage({id:"ImageSize"})).concat(y.formatMessage({id:"NotExceeding"},{size:h})),{accept:g,fileSize:h})}),(0,I.jsxs)(u.Row,{gutter:14,align:"middle",children:[(0,I.jsx)(u.Col,{children:(0,I.jsx)(u.Tooltip,{title:y.formatMessage({id:"Rotate"}),placement:"bottom",children:(0,I.jsx)(d.default,{type:"icon-xuanzhuan",onClick:()=>{k(e=>(e-90)%360)}})})}),(0,I.jsx)(u.Col,{children:(0,I.jsx)(u.Tooltip,{title:y.formatMessage({id:"ImageFull"}),placement:"bottom",children:(0,I.jsx)(d.default,{type:"icon-chongman",onClick:()=>{T(1)}})})}),(0,I.jsx)(u.Col,{flex:1,children:(0,I.jsx)(u.Slider,{tooltip:{placement:"bottom",formatter:()=>y.formatMessage({id:"Size"})},value:M,step:.05,min:.2,max:3,onChange:T})}),(0,I.jsx)(u.Col,{children:(0,I.jsx)(r.FI,{accept:g,onChange:e=>{e[0].size>1024*h*1024?u.message.error(y.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:h})):(k(0),T(1),R(e[0]))},children:y.formatMessage({id:"ReUpload"})})})]})]})}),p&&(0,I.jsx)(u.Col,{span:8,children:(0,I.jsx)("div",{className:w,children:(0,I.jsxs)(u.Space,{direction:"vertical",children:[(0,I.jsx)(u.Avatar,{src:D,shape:_,style:{width:C/2-36,height:(C/2-36)*i/o}}),(0,I.jsx)("div",{style:{textAlign:"center"},children:y.formatMessage({id:"Preview"})})]})})})]})})}),U=()=>{const e=(0,c.useModal)();return t=>{const a=Object.assign({},{title:"\u7f16\u8f91\u5934\u50cf",width:200,height:200,borderRadius:"circle"===t.shape&&t.width&&t.width===t.height?t.width/2:2,preview:!0},t),{image:l,width:r,height:o,borderRadius:i,getApi:c,preview:d,fileSize:u,accept:p,renderTips:m,border:h,dropModalSize:g}=a,f=(0,n.A)(a,M);return e((0,s.A)((0,s.A)({},f),{},{size:g,children:(0,I.jsx)(D,{preview:d,fileSize:u,accept:p,getApi:c,renderTips:m,width:r,height:o,shape:"circle"===t.shape&&t.width&&t.width===t.height?"circle":"square",borderRadius:i,image:l,border:h,scale:1,rotate:0})}))}},B=(0,P.createWithIntl)({importMessages:R.A,moduleName:"FormInfo"})(e=>{var t;let{value:a,gender:n,fileSize:s=2,accept:r=[".jpg",".png",".jpeg"],openEditor:o=!0,apis:c,renderTips:d=e=>e,onChange:p,shape:m="circle",width:h=200,height:g=200,title:f=(0,I.jsx)(P.IntlProvider,{importMessages:R.A,moduleName:"FormInfo",children:(0,I.jsx)(P.FormattedMessage,{id:"Crop",moduleName:"FormInfo"})}),border:x=1,icon:A,dropModalSize:_="small",defaultAvatar:j=F.A,displayAvatar:y}=e;const[C,b]=(0,l.useState)(!1),{apis:S}=(0,i.usePreset)(),N=v()({},S,c),w=N.ossUpload||N.upload||(null===(t=N.file)||void 0===t?void 0:t.upload),z=(0,l.useRef)(null),M=U(),T=(0,P.useIntl)({moduleName:L});return(0,I.jsx)(k,{value:a,gender:n,accept:r,width:h,height:g,shape:m,icon:A,loading:C,defaultAvatar:j,displayAvatar:y,apis:N,onChange:e=>{if(e[0].size>1024*s*1024)return void u.message.error(T.formatMessage({id:"FileNotExceeding"},{name:e[0].name,size:s}));const t=e=>(b(!0),w({file:e}).then(e=>{let{data:t}=e;0===t.code?p(t.data):u.message.error(T.formatMessage({id:"UploadFailed"},{msg:t.msg?":"+t.msg:""}))}).finally(()=>{b(!1)}));o?M({image:e[0],width:h,height:g,title:f,shape:m,border:x,dropModalSize:_,getApi:e=>z.current=e,fileSize:s,accept:r,renderTips:d,onConfirm:()=>{t(z.current.getImage())}}):t(e[0])}})}),V=e=>T(e)(B);V.Field=B,V.useDropModal=U;const W=V}}]);
|
|
2
|
-
//# sourceMappingURL=4474.e63d9483.chunk.js.map
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[2233,4614],{94614(r,n,e){e.r(n),e.d(n,{useDebounce:()=>i,useDebouncedCallback:()=>t,useThrottledCallback:()=>a});var u=e(73884);function t(r,n,e,t){var c=this,i=(0,u.useRef)(null),a=(0,u.useRef)(0),o=(0,u.useRef)(0),f=(0,u.useRef)(null),l=(0,u.useRef)([]),s=(0,u.useRef)(),v=(0,u.useRef)(),m=(0,u.useRef)(r),d=(0,u.useRef)(!0);m.current=r;var p="undefined"!=typeof window,R=!n&&0!==n&&p;if("function"!=typeof r)throw new TypeError("Expected a function");n=+n||0;var b=!!(e=e||{}).leading,h=!("trailing"in e)||!!e.trailing,k="maxWait"in e,w="debounceOnServer"in e&&!!e.debounceOnServer,g=k?Math.max(+e.maxWait||0,n):null;(0,u.useEffect)(function(){return d.current=!0,function(){d.current=!1}},[]);var _=(0,u.useMemo)(function(){var r=function(r){var n=l.current,e=s.current;return l.current=s.current=null,a.current=r,o.current=o.current||r,v.current=m.current.apply(e,n)},e=function(r,n){R&&cancelAnimationFrame(f.current),f.current=R?requestAnimationFrame(r):setTimeout(r,n)},u=function(r){if(!d.current)return!1;var e=r-i.current;return!i.current||e>=n||e<0||k&&r-a.current>=g},_=function(n){return f.current=null,h&&l.current?r(n):(l.current=s.current=null,v.current)},x=function r(){var t=Date.now();if(b&&o.current===a.current&&y(),u(t))return _(t);if(d.current){var c=n-(t-i.current),f=k?Math.min(c,g-(t-a.current)):c;e(r,f)}},y=function(){t&&t({})},C=function(){if(p||w){var t=Date.now(),o=u(t);if(l.current=[].slice.call(arguments),s.current=c,i.current=t,o){if(!f.current&&d.current)return a.current=i.current,e(x,n),b?r(i.current):v.current;if(k)return e(x,n),r(i.current)}return f.current||e(x,n),v.current}};return C.cancel=function(){var r=f.current;r&&(R?cancelAnimationFrame(f.current):clearTimeout(f.current)),a.current=0,l.current=i.current=s.current=f.current=null,r&&t&&t({})},C.isPending=function(){return!!f.current},C.flush=function(){return f.current?_(Date.now()):v.current},C},[b,k,n,g,h,R,p,w,t]);return _}function c(r,n){return r===n}function i(r,n,e){var i=e&&e.equalityFn||c,a=(0,u.useRef)(r),o=(0,u.useState)({})[1],f=t((0,u.useCallback)(function(r){a.current=r,o({})},[o]),n,e,o),l=(0,u.useRef)(r);return i(l.current,r)||(f(r),l.current=r),[a.current,f]}function a(r,n,e){var u=void 0===e?{}:e,c=u.leading,i=u.trailing;return t(r,n,{maxWait:n,leading:void 0===c||c,trailing:void 0===i||i})}}}]);
|
|
2
|
-
//# sourceMappingURL=4614.94b249d9.chunk.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"static/js/4614.94b249d9.chunk.js","mappings":"4PAwHc,SAAUA,EAGtBC,EACAC,EACAF,EACAG,GAA8C,IAAAC,EAAA,KAExCC,GAAeC,EAAAA,EAAAA,QAAO,MACtBC,GAAiBD,EAAAA,EAAAA,QAAO,GACxBE,GAAkBF,EAAAA,EAAAA,QAAO,GACzBG,GAAUH,EAAAA,EAAAA,QAAO,MACjBI,GAAWJ,EAAAA,EAAAA,QAAkB,IAC7BK,GAAWL,EAAAA,EAAAA,UACXM,GAASN,EAAAA,EAAAA,UACTO,GAAUP,EAAAA,EAAAA,QAAOL,GACjBa,GAAUR,EAAAA,EAAAA,SAAA,GAEhBO,EAAQE,QAAUd,EAElB,IAAMe,EAAiC,oBAAXC,OAEtBC,GAAUhB,GAAiB,IAATA,GAAcc,EAEtC,GAAoB,mBAATf,EACT,MAAM,IAAIkB,UAAU,uBAGtBjB,GAAQA,GAAQ,EAGhB,IAAMkB,KAFNpB,EAAUA,GAAW,CAAC,GAEIqB,QACpBC,IAAW,aAActB,MAAYA,EAAQuB,SAC7CC,EAAS,YAAaxB,EACtByB,EACJ,qBAAsBzB,KAAYA,EAAQ0B,iBACtCC,EAAUH,EAASI,KAAKC,KAAK7B,EAAQ8B,SAAW,EAAG5B,GAAQ,MAEjE6B,EAAAA,EAAAA,WAAU,WAER,OADAjB,EAAQC,SAAA,EACD,WACLD,EAAQC,SAAA,CACV,CACF,EAAG,IAYH,IAAMiB,GAAYC,EAAAA,EAAAA,SAAQ,WACxB,IAAM3B,EAAa,SAACA,GAClB,IAAMyB,EAAOrB,EAASK,QAChBkB,EAAUtB,EAASI,QAKzB,OAJAL,EAASK,QAAUJ,EAASI,QAAU,KACtCR,EAAeQ,QAAUT,EACzBE,EAAgBO,QAAUP,EAAgBO,SAAWT,EAE7CM,EAAOG,QAAUF,EAAQE,QAAQmB,MAAMD,EAASF,EAC1D,EAEMA,EAAa,SAACzB,EAAyByB,GACvCb,GAAQiB,qBAAqB1B,EAAQM,SACzCN,EAAQM,QAAUG,EACdkB,sBAAsB9B,GACtB+B,WAAW/B,EAAayB,EAC9B,EAEME,EAAe,SAAC3B,GACpB,IAAKQ,EAAQC,QAAS,OAAO,EAE7B,IAAMgB,EAAoBzB,EAAOD,EAAaU,QAM9C,OACGV,EAAaU,SACdgB,GAAqB7B,GACrB6B,EAAoB,GACnBP,GATyBlB,EAAOC,EAAeQ,SASdY,CAEtC,EAEM1B,EAAe,SAAC8B,GAKpB,OAJAtB,EAAQM,QAAU,KAIdO,GAAYZ,EAASK,QAChBT,EAAWyB,IAGpBrB,EAASK,QAAUJ,EAASI,QAAU,KAC/BH,EAAOG,QAChB,EAEMf,EAAe,SAAfM,IACJ,IAAMN,EAAOsC,KAAKC,MAMlB,GAJInB,GAAWZ,EAAgBO,UAAYR,EAAeQ,SACxDiB,IAGEC,EAAajC,GACf,OAAOC,EAAaD,GAGtB,GAAKc,EAAQC,QAAb,CAIA,IAEMZ,EAAcD,GAFMF,EAAOK,EAAaU,SAGxCX,EAAgBoB,EAClBI,KAAKY,IAAIrC,EAAawB,GAHE3B,EAAOO,EAAeQ,UAI9CZ,EAGJ4B,EAAWzB,EAAcF,EAVxB,CAWH,EAEM4B,EAA6B,WAC7B7B,GACFA,EAAY,CAAC,EAEjB,EAEMsC,EAA0B,WAC9B,GAAKzB,GAAiBS,EAAtB,CAGA,IAAMxB,EAAOqC,KAAKC,MACZpC,EAAa8B,EAAahC,GAMhC,GAJAS,EAASK,QAAO,GAAA2B,MAAAC,KAAAC,WAChBjC,EAASI,QAAUX,EACnBC,EAAaU,QAAUd,EAEnBE,EAAY,CACd,IAAKM,EAAQM,SAAWD,EAAQC,QAM9B,OAJAR,EAAeQ,QAAUV,EAAaU,QAEtCgB,EAAW/B,EAAcE,GAElBkB,EAAUd,EAAWD,EAAaU,SAAWH,EAAOG,QAE7D,GAAIS,EAGF,OADAO,EAAW/B,EAAcE,GAClBI,EAAWD,EAAaU,QAElC,CAID,OAHKN,EAAQM,SACXgB,EAAW/B,EAAcE,GAEpBU,EAAOG,OA1Bb,CA2BH,EA8BA,OA5BA0B,EAAKI,OAAS,WACZ,IAAMvC,EAAWG,EAAQM,QACrBT,IACFY,EACIiB,qBAAqB1B,EAAQM,SAC7B+B,aAAarC,EAAQM,UAE3BR,EAAeQ,QAAU,EACzBL,EAASK,QACPV,EAAaU,QACbJ,EAASI,QACTN,EAAQM,QACN,KAGAT,GAAYH,GACdA,EAAY,CAAC,EAEjB,EAEAsC,EAAKM,UAAY,WACf,QAAStC,EAAQM,OACnB,EAEA0B,EAAKO,MAAQ,WACX,OAAQvC,EAAQM,QAA2Bd,EAAaqC,KAAKC,OAAnC3B,EAAOG,OACnC,EAEO0B,CACT,EAAG,CACDrB,EACAI,EACAtB,EACAyB,EACAL,EACAJ,EACAF,EACAS,EACAtB,IAGF,OAAO6B,CACT,CCtUA,SAAS7B,EAAiBG,EAASyB,GACjC,OAAOzB,IAASyB,CAClB,CAEwB,SAAA3B,EACtB2B,EACAE,EACA7B,GAOA,IAAMC,EAAMD,GAAWA,EAAQ6C,YAAe9C,EAExCI,GAAcD,EAAAA,EAAAA,QAAOyB,GAClBvB,GAAeP,EAAAA,EAAAA,UAAS,CAAC,GAAd,GACdQ,EAAYT,GAChBE,EAAAA,EAAAA,aACE,SAACI,GACCC,EAAYQ,QAAUT,EACtBE,EAAY,CAAC,EACf,EACA,CAACA,IAEHyB,EACA7B,EACAI,GAEIE,GAAgBJ,EAAAA,EAAAA,QAAOyB,GAO7B,OALK1B,EAAGK,EAAcK,QAASgB,KAC7BtB,EAAUsB,GACVrB,EAAcK,QAAUgB,GAGnB,CAACxB,EAAYQ,QAAcN,EACpC,CCgBc,SAAUJ,EAGtBC,EACAyB,EAAYE,GACyC,IAAAhC,OAAA,IAAAgC,EAAF,CAAE,EAAAA,EAAA/B,EAAAD,EAAnDoB,QAAclB,EAAAF,EAAEsB,SAElB,OAAOvB,EAAqBM,EAAMyB,EAAM,CACtCD,QAASC,EACTV,aAAA,IAJOnB,GAAOA,EAKdqB,cAAA,IALwBpB,GAAOA,GAOnC,C","sources":["../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useDebouncedCallback.ts","../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useDebounce.ts","../node_modules/@kne/scroll-loader/node_modules/use-debounce/src/useThrottledCallback.ts"],"sourcesContent":["import {\n useRef,\n useEffect,\n useMemo,\n type Dispatch,\n type SetStateAction,\n} from 'react';\n\nexport interface CallOptions {\n /**\n * Controls if the function should be invoked on the leading edge of the timeout.\n */\n leading?: boolean;\n /**\n * Controls if the function should be invoked on the trailing edge of the timeout.\n */\n trailing?: boolean;\n}\n\nexport interface Options extends CallOptions {\n /**\n * The maximum time the given function is allowed to be delayed before it's invoked.\n */\n maxWait?: number;\n /**\n * If the setting is set to true, all debouncing and timers will happen on the server side as well\n */\n debounceOnServer?: boolean;\n}\n\nexport interface ControlFunctions<ReturnT> {\n /**\n * Cancel pending function invocations\n */\n cancel: () => void;\n /**\n * Immediately invoke pending function invocations\n */\n flush: () => ReturnT | undefined;\n /**\n * Returns `true` if there are any pending function invocations\n */\n isPending: () => boolean;\n}\n\n/**\n * Subsequent calls to the debounced function return the result of the last func invocation.\n * Note, that if there are no previous invocations you will get undefined. You should check it in your code properly.\n */\nexport interface DebouncedState<T extends (...args: any) => ReturnType<T>>\n extends ControlFunctions<ReturnType<T>> {\n (...args: Parameters<T>): ReturnType<T> | undefined;\n}\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked, or until the next browser frame is drawn.\n *\n * The debounced function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the debounced function.\n *\n * Subsequent calls to the debounced function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `debounce` and `throttle`.\n *\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0]\n * The number of milliseconds to delay; if omitted, `requestAnimationFrame` is\n * used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * Controls if `func` should be invoked on the leading edge of the timeout.\n * @param {boolean} [options.leading=false]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {number} [options.maxWait]\n * Controls if `func` should be invoked the trailing edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * const resizeHandler = useDebouncedCallback(calculateLayout, 150);\n * window.addEventListener('resize', resizeHandler)\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * const clickHandler = useDebouncedCallback(sendMail, 300, {\n * leading: true,\n * trailing: false,\n * })\n * <button onClick={clickHandler}>click me</button>\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * const debounced = useDebouncedCallback(batchLog, 250, { 'maxWait': 1000 })\n * const source = new EventSource('/stream')\n * source.addEventListener('message', debounced)\n *\n * // Cancel the trailing debounced invocation.\n * window.addEventListener('popstate', debounced.cancel)\n *\n * // Check for pending invocations.\n * const status = debounced.isPending() ? \"Pending...\" : \"Ready\"\n */\nexport default function useDebouncedCallback<\n T extends (...args: any) => ReturnType<T>,\n>(\n func: T,\n wait?: number,\n options?: Options,\n forceUpdate?: Dispatch<SetStateAction<object>>\n): DebouncedState<T> {\n const lastCallTime = useRef(null);\n const lastInvokeTime = useRef(0);\n const firstInvokeTime = useRef(0);\n const timerId = useRef(null);\n const lastArgs = useRef<unknown[]>([]);\n const lastThis = useRef<unknown>();\n const result = useRef<ReturnType<T>>();\n const funcRef = useRef(func);\n const mounted = useRef(true);\n // Always keep the latest version of debounce callback, with no wait time.\n funcRef.current = func;\n\n const isClientSide = typeof window !== 'undefined';\n // Bypass `requestAnimationFrame` by explicitly setting `wait=0`.\n const useRAF = !wait && wait !== 0 && isClientSide;\n\n if (typeof func !== 'function') {\n throw new TypeError('Expected a function');\n }\n\n wait = +wait || 0;\n options = options || {};\n\n const leading = !!options.leading;\n const trailing = 'trailing' in options ? !!options.trailing : true; // `true` by default\n const maxing = 'maxWait' in options;\n const debounceOnServer =\n 'debounceOnServer' in options ? !!options.debounceOnServer : false; // `false` by default\n const maxWait = maxing ? Math.max(+options.maxWait || 0, wait) : null;\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n // You may have a question, why we have so many code under the useMemo definition.\n //\n // This was made as we want to escape from useCallback hell and\n // not to initialize a number of functions each time useDebouncedCallback is called.\n //\n // It means that we have less garbage for our GC calls which improves performance.\n // Also, it makes this library smaller.\n //\n // And the last reason, that the code without lots of useCallback with deps is easier to read.\n // You have only one place for that.\n const debounced = useMemo(() => {\n const invokeFunc = (time: number) => {\n const args = lastArgs.current;\n const thisArg = lastThis.current;\n lastArgs.current = lastThis.current = null;\n lastInvokeTime.current = time;\n firstInvokeTime.current = firstInvokeTime.current || time;\n\n return (result.current = funcRef.current.apply(thisArg, args));\n };\n\n const startTimer = (pendingFunc: () => void, wait: number) => {\n if (useRAF) cancelAnimationFrame(timerId.current);\n timerId.current = useRAF\n ? requestAnimationFrame(pendingFunc)\n : setTimeout(pendingFunc, wait);\n };\n\n const shouldInvoke = (time: number) => {\n if (!mounted.current) return false;\n\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (\n !lastCallTime.current ||\n timeSinceLastCall >= wait ||\n timeSinceLastCall < 0 ||\n (maxing && timeSinceLastInvoke >= maxWait)\n );\n };\n\n const trailingEdge = (time: number) => {\n timerId.current = null;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs.current) {\n return invokeFunc(time);\n }\n\n lastArgs.current = lastThis.current = null;\n return result.current;\n };\n\n const timerExpired = () => {\n const time = Date.now();\n\n if (leading && firstInvokeTime.current === lastInvokeTime.current) {\n notifyManuallyTimerExpired();\n }\n\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // https://github.com/xnimorz/use-debounce/issues/97\n if (!mounted.current) {\n return;\n }\n // Remaining wait calculation\n const timeSinceLastCall = time - lastCallTime.current;\n const timeSinceLastInvoke = time - lastInvokeTime.current;\n const timeWaiting = wait - timeSinceLastCall;\n const remainingWait = maxing\n ? Math.min(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n\n // Restart the timer\n startTimer(timerExpired, remainingWait);\n };\n\n const notifyManuallyTimerExpired = () => {\n if (forceUpdate) {\n forceUpdate({});\n }\n };\n\n const func: DebouncedState<T> = (...args: Parameters<T>): ReturnType<T> => {\n if (!isClientSide && !debounceOnServer) {\n return;\n }\n const time = Date.now();\n const isInvoking = shouldInvoke(time);\n\n lastArgs.current = args;\n lastThis.current = this;\n lastCallTime.current = time;\n\n if (isInvoking) {\n if (!timerId.current && mounted.current) {\n // Reset any `maxWait` timer.\n lastInvokeTime.current = lastCallTime.current;\n // Start the timer for the trailing edge.\n startTimer(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(lastCallTime.current) : result.current;\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n startTimer(timerExpired, wait);\n return invokeFunc(lastCallTime.current);\n }\n }\n if (!timerId.current) {\n startTimer(timerExpired, wait);\n }\n return result.current;\n };\n\n func.cancel = () => {\n const hadTimer = timerId.current;\n if (hadTimer) {\n useRAF\n ? cancelAnimationFrame(timerId.current)\n : clearTimeout(timerId.current);\n }\n lastInvokeTime.current = 0;\n lastArgs.current =\n lastCallTime.current =\n lastThis.current =\n timerId.current =\n null;\n\n // Notify React to re-render when cancel is called and there was an active timer\n if (hadTimer && forceUpdate) {\n forceUpdate({});\n }\n };\n\n func.isPending = () => {\n return !!timerId.current;\n };\n\n func.flush = () => {\n return !timerId.current ? result.current : trailingEdge(Date.now());\n };\n\n return func;\n }, [\n leading,\n maxing,\n wait,\n maxWait,\n trailing,\n useRAF,\n isClientSide,\n debounceOnServer,\n forceUpdate,\n ]);\n\n return debounced;\n}\n","import { useCallback, useRef, useState } from 'react';\nimport useDebouncedCallback, { DebouncedState } from './useDebouncedCallback';\n\nfunction valueEquality<T>(left: T, right: T): boolean {\n return left === right;\n}\n\nexport default function useDebounce<T>(\n value: T,\n delay: number,\n options?: {\n maxWait?: number;\n leading?: boolean;\n trailing?: boolean;\n equalityFn?: (left: T, right: T) => boolean;\n }\n): [T, DebouncedState<(value: T) => void>] {\n const eq = (options && options.equalityFn) || valueEquality;\n\n const activeValue = useRef(value);\n const [, forceUpdate] = useState({});\n const debounced = useDebouncedCallback(\n useCallback(\n (value: T) => {\n activeValue.current = value;\n forceUpdate({});\n },\n [forceUpdate]\n ),\n delay,\n options,\n forceUpdate\n );\n const previousValue = useRef(value);\n\n if (!eq(previousValue.current, value)) {\n debounced(value);\n previousValue.current = value;\n }\n\n return [activeValue.current as T, debounced];\n}\n","import useDebouncedCallback, {\n CallOptions,\n DebouncedState,\n} from './useDebouncedCallback';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds (or once per browser frame).\n *\n * The throttled function comes with a `cancel` method to cancel delayed `func`\n * invocations and a `flush` method to immediately invoke them.\n *\n * Provide `options` to indicate whether `func` should be invoked on the leading\n * and/or trailing edge of the `wait` timeout. The `func` is invoked with the\n * last arguments provided to the throttled function.\n *\n * Subsequent calls to the throttled function return the result of the last\n * `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * If `wait` is omitted in an environment with `requestAnimationFrame`, `func`\n * invocation will be deferred until the next frame is drawn (typically about\n * 16ms).\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `throttle` and `debounce`.\n *\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0]\n * The number of milliseconds to throttle invocations to; if omitted,\n * `requestAnimationFrame` is used (if available, otherwise it will be setTimeout(...,0)).\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * const scrollHandler = useThrottledCallback(updatePosition, 100)\n * window.addEventListener('scroll', scrollHandler)\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * const throttled = useThrottledCallback(renewToken, 300000, { 'trailing': false })\n * <button onClick={throttled}>click</button>\n *\n * // Cancel the trailing throttled invocation.\n * window.addEventListener('popstate', throttled.cancel);\n */\nexport default function useThrottledCallback<\n T extends (...args: any) => ReturnType<T>,\n>(\n func: T,\n wait: number,\n { leading = true, trailing = true }: CallOptions = {}\n): DebouncedState<T> {\n return useDebouncedCallback(func, wait, {\n maxWait: wait,\n leading,\n trailing,\n });\n}\n"],"names":["c","e","u","i","a","o","r","f","l","v","m","d","g","p","w","current","s","window","x","TypeError","h","leading","y","trailing","F","A","debounceOnServer","D","Math","max","maxWait","n","T","t","apply","cancelAnimationFrame","requestAnimationFrame","setTimeout","Date","now","min","W","slice","call","arguments","cancel","clearTimeout","isPending","flush","equalityFn"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_kne_components_components_core=self.webpackChunk_kne_components_components_core||[]).push([[5195],{3874(e,t,n){n.r(t),n.d(t,{StateTagEnum:()=>g,default:()=>p});var l=n(89379),a=n(53986),s=n(73884),r=n(83136),i=n.n(r);const o={"state-tag":"style_state-tag__Kx27z__RCjzi","state-result-tag":"style_state-result-tag__CssDz__RCjzi","state-skill-tag":"style_state-skill-tag__k0bQE__RCjzi","event-tag":"style_event-tag__cg6SE__RCjzi","state-tag-filter-result-wrapper":"style_state-tag-filter-result-wrapper__QYS5z__RCjzi","state-tag-filter-name":"style_state-tag-filter-name__iJaJd__RCjzi","state-tag-filterResult":"style_state-tag-filterResult__KTkot__RCjzi","show-bg":"style_show-bg__OcL+R__RCjzi","tag-text":"style_tag-text__JHCt+__RCjzi","state-tag-wrapper":"style_state-tag-wrapper__A-gTE__RCjzi"};var c=n(55199),d=n(70579);const u=["showBorder","text","type","showBackground","className","filterName"],m={default:"#666666",skill:{color:"#666666",borderColor:"#EEEEEE"},result:"#666666",filterResult:"#5CB8B2",success:"#027A48",progress:"#F09700",danger:"#D14343",info:"#155ACF",other:"#6740C3"},p=e=>{let{showBorder:t=!1,text:n="",type:r="default",showBackground:p=!0,className:h,filterName:_}=e,g=(0,a.A)(e,u);const f=(0,s.useMemo)(()=>{var e,t;return{color:(null===m||void 0===m||null===(e=m[r])||void 0===e?void 0:e.color)||m[r],borderColor:(null===m||void 0===m||null===(t=m[r])||void 0===t?void 0:t.borderColor)||m[r]}},[r]);return(0,d.jsxs)(c.Space,{"data-testid":"components-core-state-tag",className:i()(o["state-tag-wrapper"],"filterResult"===r?o["state-tag-filter-result-wrapper"]:""),align:"center",size:4,children:[_?(0,d.jsxs)("span",{className:o["state-tag-filter-name"],children:[_,":"]}):null,(0,d.jsx)(c.Tag,(0,l.A)((0,l.A)({color:f.color},g),{},{style:{background:p?f.color+"0F":"none",color:f.color,border:t?"1px solid ".concat(f.borderColor):"none"},className:i()(o["state-tag"],h,"result"===r?o["state-result-tag"]:"","skill"===r?o["state-skill-tag"]:"",o["state-tag-".concat(r)],p?o["show-bg"]:"",t?o["show-border"]:"",null!==g&&void 0!==g&&g.onClick?o["event-tag"]:""),children:(0,d.jsx)("span",{className:o["tag-text"],children:n})}))]})};var h=n(48731);const _=["moduleName","name"],g=e=>{let{moduleName:t,name:n}=e,s=(0,a.A)(e,_);return(0,d.jsx)(h.default,{moduleName:t,name:n,children:e=>(0,d.jsx)(p,(0,l.A)((0,l.A)({},s),{},{text:e.description},e))})}},6617(e,t,n){n.r(t),n.d(t,{default:()=>a.a});n(9056);var l=n(49461),a=n.n(l),s={};for(const r in l)"default"!==r&&(s[r]=()=>l[r]);n.d(t,s)},10935(e,t,n){n.r(t),n.d(t,{TablePage:()=>lt,default:()=>rt});var l=n(89379),a=n(53986);const s={table:"style_table__z7kfz__RCjzi","is-resize":"style_is-resize__ut6RW__RCjzi","is-moving":"style_is-moving__BJ9wR__RCjzi","cell-resize-bar":"style_cell-resize-bar__-mlUF__RCjzi","is-computed":"style_is-computed__B9rIF__RCjzi","options-column":"style_options-column__vsPTr__RCjzi","options-btn":"style_options-btn__U3uoy__RCjzi",tooltip:"style_tooltip__vJlkv__RCjzi","table-changer-setting":"style_table-changer-setting__HcrwR__RCjzi","width-changer-sign":"style_width-changer-sign__Aflyl__RCjzi","columns-control":"style_columns-control__5-5ZF__RCjzi","columns-control-content":"style_columns-control-content__MoeUI__RCjzi","columns-control-content-title":"style_columns-control-content-title__P5sXV__RCjzi","columns-control-content-scroller":"style_columns-control-content-scroller__CeYRV__RCjzi","columns-control-content-footer":"style_columns-control-content-footer__0bQWm__RCjzi","columns-control-content-input":"style_columns-control-content-input__G6yKq__RCjzi","columns-control-content-list":"style_columns-control-content-list__aXvTs__RCjzi","columns-control-content-item":"style_columns-control-content-item__jbyyE__RCjzi","is-drag":"style_is-drag__U68aw__RCjzi","columns-control-content-item-icon":"style_columns-control-content-item-icon__yJqZf__RCjzi","sortable-drag":"style_sortable-drag__K5hWd__RCjzi","sortable-ghost":"style_sortable-ghost__lKTd2__RCjzi","columns-control-overlay":"style_columns-control-overlay__OxCIz__RCjzi","sort-btn":"style_sort-btn__KvNLr__RCjzi","sort-active-desc":"style_sort-active-desc__TIhMC__RCjzi","sort-icon":"style_sort-icon__dB85I__RCjzi","sort-active-asc":"style_sort-active-asc__RUBup__RCjzi"};var r=n(55199),i=n(73884),o=n(83136),c=n.n(o),d=n(10486),u=n(96418),m=n.n(u),p=n(76801);const h={scroller:"style_scroller__EfuqR__RCjzi","scroller-inner":"style_scroller-inner__NJSE0__RCjzi","is-moving":"style_is-moving__jGuy0__RCjzi"};var _=n(70579);const g=["onScroll","getContainer"],f=e=>{let{onScroll:t,getContainer:n}=e,l=(0,a.A)(e,g);const s=(0,i.useRef)(0),[r,o]=(0,i.useState)(!1),u=(0,i.useRef)(r);u.current=r;const m=(0,i.useRef)(t);m.current=t;const p=(0,i.useRef)(1);return p.current=l.width/l.innerWidth,(0,i.useEffect)(()=>{const e=e=>{u.current&&m.current(p.current*(e.clientX-s.current)),s.current=e.clientX},t=()=>{o(!1)};return document.addEventListener("mousemove",e,!0),document.addEventListener("mouseup",t,!0),()=>{document.removeEventListener("mousemove",e,!0),document.removeEventListener("mouseup",t,!0)}},[]),(0,d.createPortal)(l.hasScroller?(0,_.jsx)("div",{className:c()(h.scroller,"scroller-bar"),style:{left:l.left,width:l.width,height:15},children:(0,_.jsx)("div",{className:c()(h["scroller-inner"],"scroller-bar-inner",{[h["is-moving"]]:r}),style:{width:l.innerWidth,left:l.innerLeft},onMouseDown:e=>{e.preventDefault(),s.current=e.clientX,o(!0)}})}):null,n()||document.body)},y=e=>{let{className:t,scroller:n=!0,getScrollTarget:a=p.h,children:s}=e;return function(){const[e,r]=(0,i.useState)({left:0,width:0,innerLeft:0,innerWidth:0,height:0,hasScroller:!1}),o=(0,i.useRef)(null),d=m()(()=>o.current&&a(o.current)),u=(0,i.useRef)();return u.current="object"===typeof n&&"function"===typeof n.getContainer?n.getContainer:()=>null,(0,i.useEffect)(()=>{const e=u.current()||document.documentElement;let t;const n=()=>{if(!t)return;const{left:n,width:l,top:a,height:s}=t.getBoundingClientRect(),i=t.offsetHeight-t.clientHeight||15,o=l*t.clientWidth/t.scrollWidth-6,c=t.scrollLeft*t.clientWidth/t.scrollWidth+2,d=e.getBoundingClientRect();r(r=>Object.assign({},r,{left:n,width:l,innerLeft:c,innerWidth:o,height:i,hasScroller:t.scrollWidth-t.clientWidth>0&&(e===document.documentElement?a+s-e.offsetHeight>0&&a<e.offsetHeight:a<d.top+d.height&&a+s>d.top+d.height)}))},l=new ResizeObserver(n),a=new ResizeObserver(()=>{t=d(),t&&(l.disconnect(),n(),Array.from(t.children).forEach(e=>{l.observe(e)}),t.addEventListener("scroll",n))});return o.current&&a.observe(o.current),window.addEventListener("scroll",n),e.addEventListener("scroll",n),()=>{window.removeEventListener("scroll",n),e.removeEventListener("scroll",n)}},[d]),n?(0,_.jsxs)("div",{className:c()(h["scroller-outer"],t),ref:o,style:{"--scroller-bar-height":null!==e&&void 0!==e&&e.hasScroller?"15px":"0px"},children:[s,(0,_.jsx)(f,(0,l.A)((0,l.A)({},e),{},{getContainer:u.current,onScroll:e=>{d().scrollLeft+=e}}))]}):s}()};var v=n(77964);const j={"col-item":"columns_col-item__Ym1Ec__RCjzi",tag:"columns_tag__bQZLG__RCjzi",avatar:"columns_avatar__SLPI+__RCjzi",hover:"columns_hover__oAwHg__RCjzi",primary:"columns_primary__6KtaA__RCjzi",loading:"columns_loading__gtBay__RCjzi",options:"columns_options__WvDZD__RCjzi"};var x=n(57469),C=n.n(x),b=n(87558),A=n.n(b),R=n(6617);const N=["className"],z=["list"],w=e=>{let{className:t,list:n=[],children:r,width:o}=e;const d={className:c()(t,s["options-btn"]),type:"link"},u=n.filter(e=>!(null!==e&&void 0!==e&&e.hidden)).map(e=>{let{className:t}=e,n=(0,a.A)(e,N);return Object.assign({},n,d)});return(0,_.jsxs)("div",{className:c()(t,s["options-column"]),style:{"--max-width":o+"px"},children:["function"===typeof r?r({list:u,itemClassName:"btn-no-padding",moreType:"link",buttonProps:d}):(0,i.isValidElement)(r)?(0,i.cloneElement)(r,(0,l.A)((0,l.A)({},d),{},{itemClassName:"btn-no-padding",moreType:"link"})):r,n&&n.length>0&&(0,_.jsx)(R.default,{itemClassName:"btn-no-padding",moreType:"link",list:u})]})},F=e=>{let{list:t}=e,n=(0,a.A)(e,z);return"function"===typeof t?(0,_.jsx)(A(),{loader:t,render:e=>{let{data:t}=e;return(0,_.jsx)(w,(0,l.A)((0,l.A)({},n),{},{list:t}))}}):Array.isArray(t)?(0,_.jsx)(w,(0,l.A)((0,l.A)({},n),{},{list:t})):(0,_.jsx)(w,(0,l.A)({},Object.assign({},n,t)))};var S=n(3874),E=n(40438),O=n(48731);const k=e=>{let{children:t,ellipsis:n}=e;return(0,_.jsx)(r.Typography.Text,{ellipsis:n&&Object.assign({},{tooltip:{rootClassName:s.tooltip,children:t}},"object"===typeof n?n:{}),children:t})},I=e=>{let{type:t,item:n,isEmpty:l,emptyRender:a=()=>"-",hover:s,primary:r,children:o,width:d,style:u,onClick:m,colValue:p}=e;const[h,g]=(0,i.useState)(!1);return(0,_.jsx)("div",{style:Object.assign({},u,{"--max-width":d+"px"}),className:c()(j["col-item"],j[t],l?null:{[j.hover]:s,[j.primary]:r,[j.loading]:h}),onClick:e=>{"function"!==typeof m||l||h||(g(!0),Promise.resolve(m({item:n,colItem:p,event:e})).finally(()=>{g(!1)}))},children:l?a({type:t,item:n,hover:s,primary:r,children:o}):o})},P=(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,M=(0,b.createWithFetch)({loading:null})(e=>{let{data:t,children:n}=e;return n(t)}),T=e=>{let{api:t,expand:n,onExpand:a,ellipsis:s,hover:i,primary:o,emptyRender:c,isEmpty:d}=e;const u=Object.assign({},t);return n?(0,_.jsx)(M,(0,l.A)((0,l.A)({},u),{},{children:e=>(0,_.jsx)(I,{type:"hide-info-expand",item:e,hover:i,primary:o,emptyRender:c,isEmpty:P(e),children:(0,_.jsx)(k,{ellipsis:s,children:"function"===typeof u.children?u.children(e):e})})})):(0,_.jsx)(I,{type:"hide-info",primary:!0,emptyRender:c,children:(0,_.jsx)(r.Button,{className:"btn-no-padding",type:"link",onClick:a,children:"\u67e5\u770b"})})};var L=n(1488),K=n.n(L);const D=["hover","primary","isEmpty","emptyRender"],H=["hover","primary","isEmpty","emptyRender"],Y=["hover","primary","isEmpty","emptyRender"],V=["hover","primary","emptyRender","isEmpty","hideSecond"],B=["hover","primary","emptyRender","isEmpty"],U=["hover","primary","emptyRender","isEmpty"],W=["hover","primary","ellipsis","emptyRender","isEmpty"],q=["hover","primary","ellipsis","emptyRender","isEmpty"],G=["hover","primary","ellipsis","emptyRender","isEmpty"],X=["emptyRender","isEmpty"],J=["emptyRender","isEmpty"],Q=["hover","primary","ellipsis","emptyRender","isEmpty"],Z=["ellipsis","hover","primary","emptyRender","isEmpty"],$=["hover","primary","ellipsis","emptyRender","isEmpty"],ee=["hover","primary","ellipsis","emptyRender","isEmpty"],te=["hover","primary","ellipsis","emptyRender","isEmpty"],ne=(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,ee);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"other",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,_.jsx)(k,{ellipsis:r,children:e})}))},le={date:{render:(e,t)=>{let{hover:n,primary:s,isEmpty:r,emptyRender:i}=t,o=(0,a.A)(t,D);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},o),{},{type:"date",item:e,primary:s,hover:n,emptyRender:i,isEmpty:r||!C()(e).isValid(),children:C()(e).format("YYYY-MM-DD")}))},width:160,min:120,max:400},dateShort:{render:(e,t)=>{let{hover:n,primary:s,isEmpty:r,emptyRender:i}=t,o=(0,a.A)(t,H);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},o),{},{type:"date-short",item:e,primary:s,hover:n,emptyRender:i,isEmpty:r||!C()(e).isValid(),children:C()(e).format("YYYY-MM")}))},width:120,min:100,max:400},dateRange:{render:(e,t)=>{let{hover:n,primary:s,isEmpty:r,emptyRender:i}=t,o=(0,a.A)(t,Y);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},o),{},{type:"date-range",item:e,primary:s,hover:n,emptyRender:i,isEmpty:r,children:C()(null===e||void 0===e?void 0:e[0]).format("YYYY-MM-DD")+"~"+C()(null===e||void 0===e?void 0:e[1]).format("YYYY-MM-DD")}))},width:240,min:120,max:400},datetime:{render:(e,t)=>{let{hover:n,primary:s,emptyRender:r,isEmpty:i,hideSecond:o}=t,c=(0,a.A)(t,V);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},c),{},{item:e,primary:s,hover:n,emptyRender:r,isEmpty:i||!C()(e).isValid(),children:C()(e).format(o?"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:s,emptyRender:r,isEmpty:i}=t,o=(0,a.A)(t,B);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},o),{},{type:"serial-number",item:e,primary:s,hover:n,emptyRender:r,isEmpty:i,children:e}))},width:190,min:100,max:400},serialNumberShort:{render:(e,t)=>{let{hover:n,primary:s,emptyRender:r,isEmpty:i}=t,o=(0,a.A)(t,U);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},o),{},{type:"serial-number-short",item:e,primary:s,hover:n,emptyRender:r,isEmpty:i,children:e}))},width:120,min:100,max:400},user:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,W);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"user",item:e,primary:s,hover:n,emptyRender:i,isEmpty:o,children:(0,_.jsx)(k,{ellipsis:r,children:e})}))},width:200,min:120,max:400},userName:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,q);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"user-name",item:e,primary:s,hover:n,emptyRender:i,isEmpty:o,children:(0,_.jsx)(k,{ellipsis:r,children:e})}))},width:100,min:100,max:400},contacts:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,G);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"contacts",item:e,primary:s,hover:n,emptyRender:i,isEmpty:o,children:(0,_.jsx)(k,{ellipsis:r,children:e})}))},width:240,min:160,max:400},tag:{render:(e,t)=>{let{emptyRender:n,isEmpty:s}=t,r=(0,a.A)(t,X);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},r),{},{type:"tag",item:e,emptyRender:n,isEmpty:s,children:e&&(e.isEnum?(0,_.jsx)(O.default,{name:e.name,moduleName:e.moduleName,force:e.force,children:t=>{let{type:n,description:a}=t;return(0,_.jsx)(S.default,(0,l.A)((0,l.A)({type:n},Object.assign({},K()(e,["name","isEnum","moduleName","force"]))),{},{text:a}))}}):(0,_.jsx)(S.default,(0,l.A)({},Object.assign({},e))))}))},width:140,min:100,max:400},avatar:{render:(e,t)=>{let{emptyRender:n,isEmpty:s}=t,r=(0,a.A)(t,J);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},r),{},{type:"avatar",item:e,emptyRender:n,isEmpty:s,children:(0,_.jsx)(E.default.Avatar,(0,l.A)((0,l.A)({},Object.assign({},e)),{},{size:32}))}))},width:80,min:64,max:200},singleRow:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,Q);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"single-row",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,_.jsx)(k,{ellipsis:r,children:e})}))},width:70,min:70,max:400},hideInfo:{render:(e,t)=>(0,_.jsx)(T,(0,l.A)({api:e},t)),width:120,min:80,max:400},mainInfo:{render:(e,t)=>{let{ellipsis:n,hover:s=!0,primary:r=!0,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,Z);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"main-info",item:e,hover:s,primary:r,emptyRender:i,isEmpty:o,children:(0,_.jsx)(k,{ellipsis:n,children:e})}))},width:300,min:160,max:500},description:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,$);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"description",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,_.jsx)(k,{ellipsis:r,children:e})}))},width:400,min:160,max:600},options:{render:(e,t)=>{let{width:n}=t;return(0,_.jsx)(F,{className:c()(j["col-item"],j.options),list:e,width:n})},width:180,min:120,max:400},sensitiveInfo:{render:(e,t)=>{let{hover:n,primary:s,ellipsis:r,emptyRender:i,isEmpty:o}=t,c=(0,a.A)(t,te);return(0,_.jsx)(I,(0,l.A)((0,l.A)({},c),{},{type:"sensitiveInfo",item:e,hover:n,primary:s,emptyRender:i,isEmpty:o,children:(0,_.jsx)(k,{ellipsis:r,children:e})}))},width:200,min:100,max:400},other:{render:ne,width:200,min:120,max:400},otherSmall:{render:ne,width:100,min:70,max:400},otherLarge:{render:ne,width:300,min:120,max:500}},ae=le;var se=n(33097),re=n.n(se),ie=n(42907),oe=n.n(ie),ce=n(22717),de=n.n(ce),ue=n(22616),me=n.n(ue),pe=n(64671),he=n(72752),_e=n(39835),ge=n.n(_e),fe=n(81014),ye=n(43856),ve=n(76441),je=n(69613),xe=n.n(je),Ce=n(56434),be=n.n(Ce);const{Panel:Ae}=r.Collapse,Re=e=>{let{close:t,onConfirm:n,columns:l,config:a}=e;const[o,d]=(0,i.useState)(a||{}),[u,m]=(0,i.useState)(""),{leftFixedColumns:p,rightFixedColumns:h,visibleColumns:g,hiddenColumns:f}=(0,i.useMemo)(()=>de()(Object.assign({leftFixedColumns:[],rightFixedColumns:[],visibleColumns:[],hiddenColumns:[]},ge()(l,e=>"right"===e.fixed?"rightFixedColumns":!0===e.fixed||"left"===e.fixed?"leftFixedColumns":!0!==re()(o,"".concat(e.name,".visible"))&&e.hidden||!1===re()(o,"".concat(e.name,".visible"))?"hiddenColumns":"visibleColumns")),(e,t,n)=>{e[n]=t.sort((e,t)=>re()(o,"".concat(e.name,".rank"),0)-re()(o,"".concat(t.name,".rank"),0))},{}),[l,o]),y=e=>(0,_.jsxs)(_.Fragment,{children:[e.titleText||e.title||"\u672a\u547d\u540d\u5217",e.groupHeader&&e.groupHeader.length>0?"(".concat(e.groupHeader.map(e=>{let{title:t}=e;return t}).join("-"),")"):""]});return(0,_.jsxs)("div",{className:s["columns-control-content"],children:[(0,_.jsx)("div",{className:s["columns-control-content-title"],children:(0,_.jsxs)(r.Row,{align:"middle",justify:"space-between",children:[(0,_.jsx)(r.Col,{children:"\u7f16\u8f91\u8868\u683c"}),(0,_.jsx)(r.Col,{children:(0,_.jsx)(r.Tooltip,{title:"\u6062\u590d\u9ed8\u8ba4",children:(0,_.jsx)(fe.default,{type:"text",icon:(0,_.jsx)(pe.default,{type:"icon-huifumorenshezhi"}),onClick:async()=>{n&&await n({}),t()}})})})]})}),(0,_.jsx)("div",{className:s["columns-control-content-scroller"],children:(0,_.jsxs)(r.Collapse,{defaultActiveKey:["active","un-active"],ghost:!0,bordered:!0,children:[(0,_.jsx)(Ae,{header:"\u663e\u793a\u7684\u4fe1\u606f",children:(0,_.jsxs)(r.List,{className:s["columns-control-content-list"],children:[p.map((e,t)=>(0,_.jsx)(r.List.Item,{className:s["columns-control-content-item"],children:(0,_.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:y(e)})},e.name||"left-".concat(t))),(0,_.jsx)(ve.ReactSortable,{list:g,filter:".ignore-elements",dragClass:s["sortable-drag"],ghostClass:s["sortable-ghost"],forceFallback:!0,setList:e=>{(e=>{const t=be()(o),n=[].concat(e.leftFixedColumns,e.visibleColumns,e.rightFixedColumns);(e.hiddenColumns||[]).forEach(e=>{xe()(t,"".concat(e.name,".visible"),!1)}),n.forEach((e,n)=>{xe()(t,"".concat(e.name,".rank"),n+1)}),d(t)})({leftFixedColumns:p,visibleColumns:e,hiddenColumns:f,rightFixedColumns:h})},animation:300,delayOnTouchStart:!0,delay:2,children:g.map((e,t)=>(0,_.jsxs)(r.List.Item,{className:c()(s["columns-control-content-item"],s["is-drag"]),children:[(0,_.jsx)(pe.default,{type:"icon-paixu",className:s["columns-control-content-item-icon"]}),(0,_.jsx)(r.Checkbox,{checked:!0,disabled:e.fixed||p.length+g.length+h.length<=1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},o);n[e.name]=Object.assign({},n[e.name],{visible:!1}),d(n)},children:y(e)})]},e.name||"visible-".concat(t)))}),h.map((e,t)=>(0,_.jsx)(r.List.Item,{className:s["columns-control-content-item"],children:(0,_.jsx)(r.Checkbox,{checked:!0,disabled:!0,children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.name||"right-".concat(t)))]})},"active"),(0,_.jsx)(Ae,{header:(0,_.jsxs)(r.Row,{wrap:!1,justify:"space-between",children:[(0,_.jsx)(r.Col,{children:"\u9690\u85cf\u7684\u4fe1\u606f"}),(0,_.jsx)(r.Col,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,_.jsx)(ye.SearchInput,{prefix:(0,_.jsx)(pe.default,{type:"icon-sousuo",size:12}),placeholder:"\u641c\u7d22",onSearch:e=>{m(e)},className:s["columns-control-content-input"],size:"small"})})]}),children:(0,_.jsx)(r.List,{dataSource:f.filter(e=>"string"===typeof(e.titleText||e.title)&&(e.titleText||e.title).indexOf(u)>-1),renderItem:e=>(0,_.jsx)(r.List.Item,{className:s["columns-control-content-item"],children:(0,_.jsx)(r.Checkbox,{checked:!1,onChange:t=>{t.stopPropagation(),t.preventDefault();const n=Object.assign({},o);n[e.name]=Object.assign({},n[e.name],{visible:!0}),d(n)},children:e.titleText||e.title||"\u672a\u547d\u540d\u5217"})},e.key)})},"un-active")]})}),(0,_.jsxs)(r.Row,{className:s["columns-control-content-footer"],justify:"end",gutter:10,children:[(0,_.jsx)(r.Col,{children:(0,_.jsx)(r.Button,{size:"small",onClick:()=>{d(a||{}),t()},children:"\u53d6\u6d88"})}),(0,_.jsx)(r.Col,{children:(0,_.jsx)(fe.default,{type:"primary",size:"small",onClick:async()=>{n&&await n(o),t()},children:"\u786e\u5b9a"})})]})]})};var Ne=n(51941),ze=n(19853),we=n.n(ze),Fe=n(21844),Se=n.n(Fe),Ee=n(25644);const Oe="COMPONENTS_CORE_TABLE_CONFIG",ke={getDataApi:e=>e?{loader:()=>re()(Ee.A.getItem(Oe),e,{})}:{},setDataFunc:(e,t)=>{if(e)return Ee.A.setItem(Oe,Object.assign({},Ee.A.getItem(Oe),{[e]:t}))}},Ie=e=>{let{title:t,columns:n,config:l,setConfig:a}=e;const[o,c]=(0,i.useState)(!1);return(0,_.jsxs)(r.Row,{wrap:!1,children:[(0,_.jsx)(r.Col,{flex:1,children:t}),(0,_.jsx)(r.Col,{children:(0,_.jsx)(r.Popover,{open:o,onOpenChange:c,trigger:"click",placement:"bottomLeft",rootClassName:s["columns-control-overlay"],content:(0,_.jsx)(Re,{columns:n,config:l,close:()=>{c(!1)},onConfirm:e=>{a(t=>de()(e,(e,n,l)=>{e[l]=Object.assign({},t[l],me()(n,["visible","rank"]))},{}))}}),children:(0,_.jsx)("span",{className:s["table-changer-setting"],children:(0,_.jsx)(pe.default,{type:"icon-shezhi"})})})})]})},Pe=e=>{let{columns:t,name:n,controllerOpen:a,tableWidth:r,rowKey:o}=e;const[d,u]=(0,i.useState)(null),p=(0,i.useRef)(d);p.current=d;const h=(0,i.useRef)(null),g=(0,i.useRef)(null),[f,y]=(0,i.useState)({}),{tableServerApis:v}=(0,he.usePreset)(),j=v||ke,x=null===j||void 0===j?void 0:j.getDataApi(n),C=(0,Ne.useDebouncedCallback)((e,t)=>{null===j||void 0===j||j.setDataFunc(e,t)},500),A=m()(e=>{(0,i.startTransition)(()=>{y(t=>{const l="function"===typeof e?e(t):e;return n&&a&&C(n,l),l})})}),{send:R}=(0,b.useFetch)(Object.assign((0,l.A)((0,l.A)({},Object.assign({},x)),{},{auto:!1,cache:"TABLE_CONFIG_".concat(n),isLocal:!0,onRequestSuccess:e=>{y(Object.assign({},e))}}))),N=m()(()=>{n&&a&&x&&R({force:!1})});(0,i.useEffect)(()=>{N()},[N]);const z=(0,i.useMemo)(()=>t.filter(e=>!(!1===re()(f,"".concat(e.name,".visible"))||!0!==re()(f,"".concat(e.name,".visible"))&&!0===e.hidden)).sort((e,t)=>{const n=e=>re()(f,"".concat(e.name,".rank"),0)+("left"===e.fixed?-1e4:0)+("right"===e.fixed?1e4:0);return n(e)-n(t)}),[t,f]),w=(0,i.useMemo)(()=>Se()(z,e=>{let{type:t}=e;return"options"!==t}),[z]),F=(0,i.useMemo)(()=>oe()(z,e=>{let{type:t,name:n}=e;return re()(f,"".concat(n,".width"))||(ae[t]||ae.other).width}),[z,f]),S=e=>{let{width:t,index:n}=e;return w===n?t+Math.max(r-F-2,0):t},E=m()((e,t)=>(0,_.jsx)("span",{className:c()(s["cell-resize-bar"]),onMouseDown:n=>{h.current=Object.assign({},e,{index:t}),g.current=n.clientX,u(t)},children:(0,_.jsx)(pe.default,{type:"icon-paixu"})})),O=m()(e=>{if(null===d)return;if(!h.current)return;const{name:t,width:n,min:l,max:a,index:s}=h.current,r=Math.min(Math.max(n+e,l),a);r<S({width:l,index:s})||A(e=>Object.assign({},e,{[t]:Object.assign({},e[t],{width:r})}))}),k=m()((e,n)=>{const{name:l,width:a,min:r,max:i}=e;let d=e;n===z.length-1&&(d=Object.assign({},e,{className:"has-config-btn",title:(0,_.jsx)(Ie,{title:null===e||void 0===e?void 0:e.title,columns:t,config:f,setConfig:A})}));const u=()=>({className:c()({[s["is-moving"]]:p.current===n})}),m=Math.min(Math.max(re()(f,"".concat(l,".width"))||a,r),i),h=S({width:m,index:n});return Object.assign({},d,{onHeaderCell:u,onCell:u,width:h,shouldCellUpdate:(t,l)=>{const a="function"===typeof o?o(t):t[o],s="function"===typeof o?o(l):l[o];return null===p.current||p.current===n||"hideInfo"===e.type||!(a===s&&we()(t[e.name],l[e.name]))},title:(0,_.jsxs)(_.Fragment,{children:[d.title,!(h>m&&h>i)&&E(Object.assign({},d,{width:h}),n)]})})});return(0,i.useEffect)(()=>{const e=()=>{u(null),g.current=null,h.current=null},t=e=>{null!==p.current&&null!==h.current&&(null!==g.current?O(e.clientX-g.current):g.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:z,currentMoveColumnIndex:d,resizeBarRender:E,columnsConfig:f,totalWidth:F,computedColumnProps:k}};var Me=n(79686),Te=n.n(Me);const Le=["name","type","expandType","title","titleRender","fixed","emptyOf","emptyRender","groupHeader","sort","disableColItem"],Ke=e=>{let{rowKey:t,renderProps:n}=e;const[s,r]=(0,i.useState)(null),o=(0,i.useRef)(n);o.current=n;const c=m()((e,n,i)=>{let{columnsConfig:c}=i;const{name:d,type:u,expandType:m,title:p,titleRender:h,fixed:_,emptyOf:g,emptyRender:f,groupHeader:y,sort:v,disableColItem:j}=e,x=(0,a.A)(e,Le),{render:C,width:b,min:A,max:R}=Object.assign({},ae[u]||ae.other,"hideInfo"===u&&!Te()(s)&&me()(ae[m]||ae.other,["width","min","max"])),N=C;return{name:d,title:"function"===typeof h?h(p):p,min:A,max:R,width:b,fixed:_,groupHeader:y,sort:v,type:u,render:n=>{const a="function"===typeof t?t(n):n[t],i=Object.assign({},e,"function"===typeof e.render?e.render((0,l.A)((0,l.A)({},o.current),{},{name:d,target:n})):{}),u=e=>{const t=P(e,g);return N(e,(0,l.A)((0,l.A)({},x),{},{name:d,width:re()(c,"".concat(d,".width"))||b,min:A,max:R,isEmpty:t,emptyRender:f,hover:i.hover,colValue:Object.assign({},n),renderProps:o.current,primary:i.primary,ellipsis:i.ellipsis,expand:s===a,onExpand:()=>r(a)}))},m=i.hasOwnProperty("valueOf")&&"function"===typeof i.valueOf?i.valueOf(n,Object.assign({},o.current,{name:d},j?{targetRender:u}:{})):re()(n,d);return j?m:u(m)}}});return{expandInfo:s,computedColumnProps:c}},De=e=>(0,i.useMemo)(()=>{const t=e.filter(e=>e.groupHeader&&e.groupHeader.length>0);if(t.length>0){const n=e.slice(0),l=[],a=e=>{const{groupHeader:t}=e;if(!(t&&t.length>0))return;const a=n.indexOf(e),s=(t,n)=>{const[l,...r]=t;let i=n.find(e=>e.name===l.name);i||(i=Object.assign({startIndex:a},l,{children:[]}),n.push(i)),r.length>0?s(r,i.children):i.children.push(e)};s(t,l),n.splice(a,1)};return t.forEach(a),l.forEach((e,t)=>{n.splice(e.startIndex+t,0,e)}),{columns:n,hasGroupHeader:!0}}return{columns:e,hasGroupHeader:!1}},[e]);var He=n(10986),Ye=n.n(He),Ve=n(41740),Be=n.n(Ve);const Ue=e=>new Map((e||[]).map(e=>{let{name:t,sort:n}=e;return[t,n]})),We=e=>{const[t,n]=Ye()(e,{value:"sort",defaultValue:"defaultSort",onChange:"onSortChange"}),l=(0,i.useMemo)(()=>Ue(t),[t]),a=(0,i.useCallback)(e=>n(t=>{const n=e(Ue(t));return Array.from(n).map(e=>{let[t,n]=e;return{name:t,sort:n}})}),[n]);return(0,i.useCallback)(e=>{let{single:t,name:n}=e;return(0,_.jsxs)("div",{className:c()(s["sort-btn"],{[s["sort-active-desc"]]:"DESC"===l.get(n),[s["sort-active-asc"]]:"ASC"===l.get(n)}),onClick:()=>{a(e=>{const l=e.get(n),a="DESC"===l?"ASC":"ASC"===l?null:"DESC";if(t)return new Map(a?[[n,a]]:[]);const s=Be()(e);return a?s.set(n,a):s.delete(n),s})},children:[(0,_.jsx)(pe.default,{type:"icon-triangle-up",className:s["sort-icon"]}),(0,_.jsx)(pe.default,{type:"icon-triangle-down",className:s["sort-icon"]})]})},[l,a])};var qe=n(9376),Ge=n.n(qe);const Xe=e=>{const{rowKey:t}=Object.assign({},{rowKey:"id"},e),[n,l]=(0,i.useState)([]),a=e=>"function"===typeof t?t(e):e[t];return{type:"checkbox",selectedRowKeys:n,onSelectAll:(e,t,n)=>{const s=n.map(a);l(e?e=>Ge()([...e,...s]):e=>e.filter(e=>-1===s.indexOf(e)))},onSelect:(e,t)=>{l(t?t=>{const n=t.slice(0);return n.push(a(e)),n}:t=>{const n=t.slice(0);return n.splice(n.indexOf(a(e)),1),n})},setSelectedRowKeys:l}};var Je=n(63361);const Qe=e=>({"en-US":()=>n.e(399).then(n.bind(n,80399)),"zh-CN":()=>n.e(9809).then(n.bind(n,59809))}[e]());var Ze=n(47458);const $e=["data","refresh","reload","requestParams","fetchProps","isComplete","setData","loadMore","send","dataFormat","className","featureId","columns","getColumns","pagination","columnRenderProps","summary","sticky"],et=["pagination"],tt=e=>{let{id:t,columns:n,children:l}=e;return t?(0,_.jsx)(Je.default,{id:t,children:e=>{let{options:t}=e;return l({columns:n.filter(e=>!e.name||(!Array.isArray(re()(t,"hiddenColumns"))||-1===t.hiddenColumns.indexOf(e.name)))})}}):l({columns:n})},nt=(0,b.withFetch)(e=>{let{data:t,refresh:n,reload:r,requestParams:o,fetchProps:d,isComplete:u,setData:h,loadMore:g,send:f,dataFormat:y=e=>({list:e.pageData,total:e.totalCount}),className:v,featureId:j,columns:x,getColumns:C,pagination:b={},columnRenderProps:A={},summary:R,sticky:N=!0}=e,z=(0,a.A)(e,$e);const w=m()(y),F=(0,i.useMemo)(()=>w(t),[t,w]),S={dataSource:F.list,pagination:!!b.open&&{total:F.total,showTotal:e=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(Ze.FormattedMessage,{id:"Page_Total",moduleName:"Table",defaultMessage:"\u5171"}),(0,_.jsx)("span",{className:s.total_text,children:e}),(0,_.jsx)(Ze.FormattedMessage,{id:"Page_TotalCount",moduleName:"Table",defaultMessage:"\u6761"})]}),current:re()(o,[b.paramsType,b.currentName],1),pageSize:re()(o,[b.paramsType,b.pageSizeName],20),onChange:(e,t)=>{"function"!==typeof b.onChange?e!==re()(o,[b.paramsType,b.currentName],1)?("refresh"===b.requestType?n:r)({[b.paramsType]:{[b.currentName]:e,[b.pageSizeName]:t}}):b.onShowSizeChange&&b.onShowSizeChange(e,t):b.onChange(e,t),(0,p.h)().scrollTop=0},size:b.size,hideOnSinglePage:b.hideOnSinglePage,showSizeChanger:b.showSizeChanger,showQuickJumper:b.showQuickJumper,pageSizeOptions:b.pageSizeOptions}};return(0,_.jsx)(Ze.IntlProvider,{importMessages:Qe,moduleName:"Table",children:(0,_.jsx)(tt,{id:j,columns:"function"===typeof x?x(t):x,children:e=>{let{columns:a}=e;return(0,_.jsx)(rt,(0,l.A)((0,l.A)({},Object.assign({},z,S)),{},{sticky:N,className:c()(v,"loading-container",{"is-loading":!u}),columns:a,columnRenderProps:(0,l.A)((0,l.A)({},A),{},{requestParams:o,fetchProps:d,data:t}),summary:"function"===typeof R?function(){for(var e=arguments.length,l=new Array(e),a=0;a<e;a++)l[a]=arguments[a];return R(Object.assign({},{data:t,fetchProps:d,requestParams:o,refresh:n,reload:r,loadMore:g,send:f,dataFormat:y,pagination:b},...l))}:null}))}})})}),lt=(0,i.forwardRef)((e,t)=>{let{pagination:n}=e,s=(0,a.A)(e,et);n=Object.assign({},{showSizeChanger:!0,showQuickJumper:!0,hideOnSinglePage:!1,open:!0,paramsType:"data",requestType:"reload",currentName:"currentPage",pageSizeName:"perPage"},n);const r="".concat((s.name||"common").toUpperCase(),"_TABLE_PAGE_SIZE"),[o,c]=(0,i.useState)(Ee.A.getItem(r)||n.pageSize),d=s[n.paramsType],u=(0,i.useMemo)(()=>({[n.paramsType]:Object.assign({},d,{[n.pageSizeName]:o})}),[d,n.pageSizeName,n.paramsType,o]);return(0,_.jsx)(nt,(0,l.A)((0,l.A)((0,l.A)({},s),u),{},{pagination:Object.assign({},n,{pageSize:o,onShowSizeChange:(e,t)=>{Ee.A.setItem(r,t),c(t)}}),ref:t}))}),at=["columns","className","getScrollEl","sticky","stickyOffset","pagination","columnRenderProps","rowKey","dataSource","controllerOpen","name","summary","scroll","scroller","onTablePropsReady"],st=e=>{let{columns:t,className:n,getScrollEl:o=p.h,sticky:d=!1,stickyOffset:u="var(--nav-height)",pagination:h=!1,columnRenderProps:g={},rowKey:f="id",dataSource:j,controllerOpen:x=!0,name:C,summary:b,scroll:A,scroller:R,onTablePropsReady:N}=e,z=(0,a.A)(e,at);const[w,F]=(0,i.useState)(0),[S,E]=(0,i.useState)(!0);(0,i.useEffect)(()=>{w&&setTimeout(()=>{E(!1)},0)},[w]);(0,i.useRef)(g).current=g;const O=(0,v.A)(e=>{F(e.clientWidth)},{isDebounce:!0}),{expandInfo:k,computedColumnProps:I}=Ke({rowKey:f,renderProps:g}),{columnsConfig:P,visibleColumns:M,computedColumnProps:T,currentMoveColumnIndex:L,totalWidth:K}=Pe({columns:t,controllerOpen:x,name:C,computedColumnProps:I,tableWidth:w,rowKey:f}),D=We(z),H=(0,i.useMemo)(()=>M.map((e,t)=>{let n=I(e,t,{rowKey:f,expandInfo:k,columnsConfig:P});return n.sort&&"options"!==e.type&&(n=Object.assign({},n,{title:(0,_.jsxs)(_.Fragment,{children:[n.title,D({name:e.name,single:"object"!==typeof n.sort||n.sort.single})]})})),x&&(n=T(n,t,{tableWidth:w,columnsConfig:P})),n}),[M,w,P,k,f,x,I,T,D]),{columns:Y,hasGroupHeader:V}=De(H),B=m()(N);return(0,i.useEffect)(()=>{B&&B({columns:t,groupColumns:Y,dataSource:j,visibleColumns:M})},[B,Y,j,t,M]),(0,_.jsx)("div",{className:c()(n,s.table,{[s["is-resize"]]:null!==L,[s["is-computed"]]:S,[s["has-group-header"]]:V}),ref:O,style:{"--sticky-offset":u},children:!S&&(0,_.jsx)(y,{className:"table-page-scroller",scroller:void 0!==R?R:{getContainer:o},getScrollTarget:e=>e.querySelector(".ant-table-body")||e.querySelector(".ant-table-content"),children:(0,_.jsx)(r.Table,(0,l.A)((0,l.A)({},z),{},{sticky:!!d&&{getContainer:o},dataSource:j,rowKey:f,columns:Y,scroll:Object.assign({},{x:Math.max(w,K)},A),pagination:h,summary:"function"===typeof b?function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),l=1;l<t;l++)n[l-1]=arguments[l];return b(Object.assign({},{pageData:e},{columns:Y}),...n)}:null}))})})};st.useSelectedRow=Xe,st.TablePage=lt;const rt=st},25644(e,t,n){n.d(t,{A:()=>l});const l={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}))}}},28148(e,t,n){n.r(t),n.d(t,{default:()=>C});var l=n(89379),a=n(53986);const s={menu:"style_menu__gvIvn__RCjzi","all-no-start-icon":"style_all-no-start-icon__CA+zR__RCjzi","no-start-icon":"style_no-start-icon__LnC1S__RCjzi","has-children":"style_has-children__m9tce__RCjzi","has-children-node":"style_has-children-node__2bhEB__RCjzi","is-root":"style_is-root__4hhOc__RCjzi",title:"style_title__+Hcar__RCjzi",active:"style_active__WU49K__RCjzi","no-collapse":"style_no-collapse__aIZBM__RCjzi","title-content":"style_title-content__cQXpK__RCjzi",loading:"style_loading__1pU4P__RCjzi"};var r=n(83136),i=n.n(r),o=n(55199),c=n(94679),d=n(29053),u=n(10986),m=n.n(u),p=n(64671),h=n(73884),_=n(18081),g=n.n(_),f=n(87558),y=n(70579);const v=["className","allowCollapsed","pathMatch","defaultItems"],j=["children","key","originItem"],x=e=>{const t=(0,c.useNavigate)(),{id:n,className:l,label:a,iconType:r,icon:u,path:m,request:h,onClick:_,isOpen:g,isSelected:v,onOpenChange:j,children:x,fetchOptions:C,depth:b,onLoad:A,allowCollapsed:R}=e,N=Array.isArray(x)&&x.length>0||C,{refresh:z,isLoading:w}=(0,f.useFetch)(Object.assign({},C,{auto:!R&&C,onRequestSuccess:e=>{A(e)}}));return(0,y.jsx)(d.default,{request:h,children:(0,y.jsxs)("div",{className:i()(l,s["menu-item"]),children:[(0,y.jsxs)("div",{className:i()(s.title,{[s.active]:v,[s["has-children"]]:N,[s["no-collapse"]]:N&&!R,[s["no-start-icon"]]:!r&&!u,[s["is-root"]]:0===b}),onClick:l=>{l.stopPropagation(),N||!m?N||C?R&&(C&&z({}),j(!g)):null===_||void 0===_||_(n,e):t(m)},children:[r&&!u&&(0,y.jsx)(p.default,{type:r}),u||null,(0,y.jsx)("span",{className:s["title-content"],children:a}),N&&R&&(0,y.jsx)(p.default,{type:g?"icon-arrow-bold-down":"icon-arrow-bold-right"})]}),N?!R||g&&x?(0,y.jsx)("div",{className:s["children-list"],children:x}):!R||g&&w?(0,y.jsx)("div",{className:s["children-list"],children:(0,y.jsx)(o.Spin,{className:s.loading,size:"small"})}):void 0:null]})})},C=e=>{let{className:t,allowCollapsed:n=!0,pathMatch:r,defaultItems:o=[]}=e,d=(0,a.A)(e,v);const{pathname:u,search:p}=(0,c.useLocation)(),[_,f]=m()(d,{value:"currentKey",defaultValue:"defaultCurrentKey"}),[C,b]=m()((0,l.A)({defaultItems:o},d),{defaultValue:"defaultItems",value:"items",onChange:"onItemsChange"}),{items:A,defaultOpenKeys:R,links:N,childrenKeys:z,hasStartIcon:w,hasChildren:F}=(0,h.useMemo)(()=>{var e;const{items:t,childrenKeys:n,nodeMapping:l}=(e=>{const t={},n=[],l=(e,a)=>{const{parentKey:s,depth:r}=Object.assign({parentKey:"root",depth:0,paths:[]},a);return Array.isArray(e)&&e.length>0?e.map((e,a)=>{const i="".concat(e.key||"".concat("root"!==s?"".concat(s,"-"):"","node-").concat(a));t[s]||(t[s]=[]),t[s].push(i);const o=l(e.children,{parentKey:i,depth:r+1});t[i]&&t[s].push(...t[i]);const c=Object.assign({},e,{key:i,parentKey:s,depth:r,children:o,originItem:e});return n[i]=c,c}):null};return{items:l(e),childrenKeys:t,nodeMapping:n}})(C);let a=!1,s=!1;const r=[],i=[];return null===n||void 0===n||null===(e=n.root)||void 0===e||e.forEach(e=>{const t=l[e];(t.iconType||t.icon)&&(a=!0),t.path&&r.push({path:t.path,key:e}),Array.isArray(t.children)&&t.children.length>0&&(s=!0,i.push(t.key))}),{defaultOpenKeys:i,links:r,items:t,childrenKeys:n,hasStartIcon:a,hasChildren:s}},[C]);(0,h.useEffect)(()=>{const e=N.find(e=>{let{path:t}=e;return"function"===typeof r?r(t,{pathname:u,search:p}):g()(u.replace(/[#,?].*/,""))===g()(t)||g()(u+p)===g()(t)});e&&f(e.key)},[N,u,p,f,r]);const[S,E]=m()(Object.assign({},d,{defaultOpenKeys:d.defaultOpenKeys||R}),{value:"openKeys",defaultValue:"defaultOpenKeys",onChange:"onOpenChange"}),O=(0,h.useCallback)((e,t)=>{const{parentKey:s,depth:r,selectedKey:i,openKeys:o,paths:c}=Object.assign({parentKey:null,depth:0,paths:[]},t);return Array.isArray(e)&&e.length>0?e.map(e=>{let{children:t,key:d,originItem:u}=e,m=(0,a.A)(e,j);return(0,h.createElement)(x,(0,l.A)((0,l.A)({},Object.assign({},m)),{},{id:d,parentId:s,depth:r,allowCollapsed:n,isSelected:d===i||z[d]&&z[d].indexOf(i)>-1,onClick:f,onLoad:e=>{b(t=>{const n=t=>Array.isArray(t)&&t.length>0?t.map(t=>Object.assign({},t,{children:u===t?e:n(t.children)})):null;return n(t)})},isOpen:(o||[]).indexOf(d)>-1,key:d,onOpenChange:()=>{E(e=>{const t=e.slice(0);return e.indexOf(d)>-1?t.splice(e.indexOf(d),1):t.push(d),t})}}),O(t,{parentKey:s,depth:r+1,selectedKey:i,openKeys:o,paths:[...c,d]}))}):null},[b,E,f,z,n]);return(0,y.jsx)("div",{className:i()(t,s.menu,{[s["all-no-start-icon"]]:!w,[s["has-children-node"]]:F}),children:O(A,{selectedKey:_,openKeys:S})})}},29053(e,t,n){n.r(t),n.d(t,{computedIsPass:()=>_,default:()=>y,usePermissions:()=>g,usePermissionsPass:()=>f});var l=n(89379),a=n(53986),s=n(73884),r=n(55199),i=n(33097),o=n.n(i),c=n(83136),d=n.n(c);const u="style_outer__vbHB9__RCjzi";var m=n(72752),p=n(70579);const h=["type","className","tagName","message","request","children"],_=e=>{let{permissions:t,request:n}=e;return!(Array.isArray(n)&&n.length>0)||n.some(e=>(t||[]).indexOf(e)>-1)},g=()=>{const{global:e}=(0,m.useGlobalContext)(),{permissions:t,permissionsPath:n}=(0,m.usePreset)();return{permissions:e.permissions||t||n&&o()(e,n)||[]}},f=e=>{let{request:t}=e;const{permissions:n}=g();return _({permissions:n,request:t})},y=e=>{let{type:t="hidden",className:n,tagName:i="span",message:o="\u60a8\u6682\u65e0\u6743\u9650\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458",request:c,children:m}=e,_=(0,a.A)(e,h);const g=f({request:c});return"function"===typeof m?m({isPass:g,type:t,request:c}):!0===g?m:"error"===t?(0,p.jsx)(r.Result,{status:"403",subTitle:o}):"tooltip"===t?(0,p.jsx)(r.Tooltip,{title:o,children:(0,s.createElement)(i,(0,l.A)((0,l.A)({},_),{},{className:d()(u,n)}),m)}):null}},48731(e,t,n){n.r(t),n.d(t,{default:()=>a.a});var l=n(98919),a=n.n(l),s=n(22717),r=n.n(s);(0,l.preset)({base:r()([["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}]]],(e,t)=>{e[t[0]]=t[1]},{})})},53132(e,t,n){n.r(t),n.d(t,{Affix:()=>T,Menu:()=>$.default,Page:()=>P,PageHeader:()=>se,PermissionsPage:()=>Z,StateBarPage:()=>ue,TablePage:()=>oe,default:()=>J});var l=n(89379),a=n(55199),s=n(73884);const r={menu:null,filter:null,menuOpen:!0,menuWidth:"240px",menuCloseWidth:"0px",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},i=(0,s.createContext)({}),{Provider:o,Consumer:c}=i,d=()=>(0,s.useContext)(i);var u=n(79329),m=n(76801),p=n(36755),h=n(53986),_=n(19853),g=n.n(_),f=n(63361),y=n(83136),v=n.n(y);const j={layout:"style_layout__k+lxR__RCjzi","page-content":"style_page-content__4XeN8__RCjzi","page-main":"style_page-main__P0yEF__RCjzi","page-main-content":"style_page-main-content__1OVPN__RCjzi","table-page":"style_table-page__JkbLf__RCjzi","helper-guide":"style_helper-guide__vzw4z__RCjzi","page-outer":"style_page-outer__2a6iH__RCjzi","no-margin":"style_no-margin__S6caT__RCjzi","page-menu":"style_page-menu__CZSa9__RCjzi",closed:"style_closed__hmnft__RCjzi","page-menu-inner":"style_page-menu-inner__rmKpu__RCjzi","page-menu-main":"style_page-menu-main__OXg2M__RCjzi","page-option-main":"style_page-option-main__LyfT3__RCjzi","page-menu-main-outer":"style_page-menu-main-outer__yY+-Q__RCjzi","page-option":"style_page-option__diS2S__RCjzi","page-option-inner":"style_page-option-inner__Fj1JH__RCjzi","page-option-footer":"style_page-option-footer__d7xE0__RCjzi","fixed-container":"style_fixed-container__1VZwY__RCjzi","is-fixed":"style_is-fixed__1aQhp__RCjzi","page-menu-btn-outer":"style_page-menu-btn-outer__iVJiW__RCjzi","page-menu-btn":"style_page-menu-btn__BiTy8__RCjzi","page-title":"style_page-title__zw-Fd__RCjzi","page-title-text":"style_page-title-text__Rj4RC__RCjzi","no-padding":"style_no-padding__V7Dwy__RCjzi","page-header":"style_page-header__a813p__RCjzi","page-header-info":"style_page-header-info__cMrZR__RCjzi","layout-menu":"style_layout-menu__yiab0__RCjzi","sub-menu":"style_sub-menu__dyqK7__RCjzi","no-collapsed":"style_no-collapsed__76h8W__RCjzi","has-not-children":"style_has-not-children__fnjRK__RCjzi","table-page-top":"style_table-page-top__bt1l9__RCjzi","error-component":"style_error-component__HvghB__RCjzi","state-bar-page":"style_state-bar-page__+aUM4__RCjzi","back-icon":"style_back-icon__79v2G__RCjzi"};var x=n(70579);const C=e=>{let{className:t,isFixed:n,children:l}=e;return n?(0,x.jsx)("div",{className:v()(t,"fixed-container",j["fixed-container"],{[j["is-fixed"]]:n}),children:l}):(0,x.jsx)("div",{className:v()(t,"fixed-container",j["fixed-container"]),children:l})};var b=n(64671),A=n(17342),R=n(94679),N=n(33097),z=n.n(N),w=n(55490),F=n(25644);const S="CORE_PAGE_MENU_OPEN_KEY",E=()=>{const{pageProps:e,setPageProps:t}=d(),{menu:n,menuOpen:l,menuWidth:s,menuCloseWidth:r,menuFixed:i,menuCloseButton:o}=e,c=(0,R.useLocation)().pathname.split("/")[1];return n?(0,x.jsxs)(a.Col,{className:v()(j["page-menu"],"core-page-menu",{[j.closed]:!l}),style:{"--menu-width":s,"--menu-close-width":r},children:[(0,x.jsx)(C,{className:j["page-menu-inner"],isFixed:i,children:(0,x.jsx)("div",{className:j["page-menu-main-outer"],children:(0,x.jsx)(A.A,{className:j["page-menu-main"],children:"function"===typeof n?n({open:l}):n})})}),o?(0,x.jsx)(C,{className:v()(j["page-menu-btn-outer"],"core-page-menu-btn-outer",{[j["is-fixed"]]:i}),isFixed:i,children:(0,x.jsx)(a.Button,{className:v()(j["page-menu-btn"],{[j.closed]:!l}),icon:l?(0,x.jsx)(b.default,{type:"icon-arrow-bold-left"}):(0,x.jsx)(b.default,{type:"icon-arrow-bold-right"}),onClick:()=>{t({menuOpen:!e.menuOpen});const n=F.A.getItem(S)||{};n[c]=!e.menuOpen,F.A.setItem(S,n),t({menuOpen:!e.menuOpen})}})}):null]}):null},O=["children","isPass"],k=["featureId","name","openFeatures"],I=e=>{let{children:t,isPass:n}=e,l=(0,h.A)(e,O);const{setPageProps:i}=d(),o=(0,s.useRef)(null),c=(()=>{const e=(0,R.useLocation)().pathname.split("/")[1];return(0,s.useMemo)(()=>{const t=F.A.getItem(S)||{};return!(0,w.A)(z()(t,e))||z()(t,e)},[e])})(),u=(0,s.useRef)(c);return u.current=c,(0,s.useEffect)(()=>{if(!g()(o.current,l)){o.current=l;const e=Object.assign({},r,l,"boolean"===typeof u.current?{menuOpen:u.current}:{});e.header&&0===e.headerHeight&&delete e.headerHeight,e.optionFooter&&0===e.optionFooterHeight&&delete e.optionFooter,i(e)}},[l,i]),!1===n?(0,x.jsx)(a.Result,{status:"403",subTitle:"\u6682\u672a\u5f00\u653e\u6b64\u529f\u80fd"}):t},P=e=>{const t=Object.assign({},r,e),{featureId:n,name:a,openFeatures:i}=t,o=(0,h.A)(t,k);return!0===i?(0,x.jsx)(f.default,{id:a,children:e=>{let{isPass:t}=e;return(0,s.createElement)(I,(0,l.A)((0,l.A)({},o),{},{key:a,isPass:t}))}}):(0,s.createElement)(I,(0,l.A)((0,l.A)({},o),{},{key:a}))},M=["isFixed","offsetTop","offsetBottom","onChange"],T=e=>{let{isFixed:t,offsetTop:n,offsetBottom:s,onChange:r}=e,i=(0,h.A)(e,M);return t?(0,x.jsx)(a.Affix,(0,l.A)((0,l.A)({},i),{},{offsetTop:Number.isInteger(n)?n-.1:n,offsetBottom:s,onChange:r})):(0,x.jsx)("div",(0,l.A)({},i))},L=["targetKey"],K=e=>{let{targetKey:t}=e,n=(0,h.A)(e,L);const a=(e=>{let{targetKey:t}=e;const{setPageProps:n}=d(),l=(0,s.useRef)(null);return(0,s.useLayoutEffect)(()=>{const e=()=>{n({[t]:l.current.offsetHeight})};e();const a=new MutationObserver(e);return a.observe(l.current,{subtree:!0,childList:!0}),()=>{a.disconnect()}},[n,t]),l})({targetKey:t});return(0,x.jsx)("div",(0,l.A)((0,l.A)({},n),{},{ref:a}))},D=()=>{const{pageProps:e}=d(),{header:t,headerFixed:n}=e;return t?(0,x.jsx)(T,{isFixed:n,className:j["page-header"],offsetTop:u.navigationHeight,children:(0,x.jsx)(K,{targetKey:"headerHeight",children:t})}):null},H=()=>{const{pageProps:e}=d(),{headerInfo:t}=e,n=(0,s.useRef)(null);return t?(0,x.jsx)("div",{ref:n,className:v()(j["page-header-info"],"page-header-info"),children:t}):null};var Y=n(73604);const V=e=>{let{title:t,filter:n,titleExtra:s,titleLeftExtra:r,backUrl:i}=e;const o=(0,R.useNavigate)();return n?(0,x.jsx)(Y.default,(0,l.A)((0,l.A)({className:j["page-title"]},n),{},{extra:s})):t||r||s?(0,x.jsxs)(a.Row,{justify:"space-between",align:"middle",className:j["page-title"],children:[(0,x.jsx)(a.Col,{flex:1,children:(0,x.jsxs)(a.Flex,{gap:8,align:"center",children:[t?(0,x.jsx)("div",{className:j["page-title-text"],children:i?(0,x.jsxs)(a.Flex,{gap:8,align:"center",children:[(0,x.jsx)("span",{className:j["back-icon"],onClick:()=>{o(i)},children:(0,x.jsx)(b.default,{type:"icon-arrow-thin-left"})}),(0,x.jsx)("span",{children:t})]}):t}):null,r||null]})}),(0,x.jsx)(a.Col,{children:s})]}):null},B=()=>{const{pageProps:e}=d(),{option:t,optionWidth:n,optionFixed:l,optionFooter:s,optionFooterHeight:r,optionNoPadding:i}=e;return t?(0,x.jsx)(a.Col,{className:v()(j["page-option"],"page-option"),style:{"--width":n,"--foot-height":r+"px"},children:(0,x.jsxs)(C,{className:j["page-option-inner"],isFixed:l,children:[(0,x.jsx)(A.A,{className:v()(j["page-option-main"],"page-option-main"),style:{padding:i?"0px":"var(--padding-width)"},children:t}),s?(0,x.jsx)(K,{className:j["page-option-footer"],targetKey:"optionFooterHeight",children:(0,x.jsx)(a.Space,{align:"center",children:s})}):null]})}):null};var U=n(75363),W=n(29053);const{Content:q}=a.Layout,G=()=>(0,x.jsx)(a.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)(a.Button,{size:"small",danger:!0,onClick:()=>window.location.reload(),children:"\u5237\u65b0"})}),X=e=>(0,x.jsx)(p.A,(0,l.A)((0,l.A)({},e),{},{errorComponent:G})),J=e=>{let{className:t,children:n,theme:i,navigation:c={}}=e;const[d,p]=(0,s.useState)(0),[h,_]=(0,s.useState)(Object.assign({},r)),{permissions:g}=(0,W.usePermissions)(),f=(0,s.useCallback)(e=>_(t=>Object.assign({},t,e)),[]);return(0,s.useEffect)(()=>{const e=(0,m.h)(),t=()=>{p(e.scrollLeft)};return e.addEventListener("scroll",t),()=>{e.removeEventListener("scroll",t)}},[]),(0,x.jsxs)(a.Layout,{className:v()(j.layout,t,"core-layout"),style:Object.assign({},{"--nav-height":u.navigationHeight+"px","--nav-height-base":"var(--nav-height)","--scroll-left":-d+"px"},i),children:[c&&(0,x.jsx)(X,{children:(0,x.jsx)(u.default,(0,l.A)((0,l.A)({permissions:g},c),{},{onChange:e=>{(null===c||void 0===c?void 0:c.onChange)&&c.onChange(e)}}))}),(0,x.jsx)(X,{children:(0,x.jsx)(q,{className:v()(j["layout-content-wrap"],"core-layout-content-wrap"),children:(0,x.jsxs)(o,{value:{pageProps:h,setPageProps:f},children:[(0,x.jsx)(X,{children:(0,x.jsx)(D,{})}),(0,x.jsx)(X,{children:(0,x.jsx)(H,{})}),(0,x.jsx)(X,{children:(0,x.jsxs)(a.Row,{className:v()(h.className,j["page-outer"]),wrap:!1,style:{"--nav-height":"calc(".concat(h.headerFixed?h.headerHeight:0,"px + var(--nav-height-base))"),"--nav-only-height":"var(--nav-height-base)"},children:[(0,x.jsx)(X,{children:(0,x.jsx)(E,{})}),(0,x.jsx)(a.Col,{className:v()(j["page-content"],"core-page-content",{[j["no-margin"]]:h.noMargin}),flex:1,style:{"--background-color":h.backgroundColor},children:(0,x.jsxs)("div",{className:v()(j["page-main"],"core-page-main"),children:[(0,x.jsx)(X,{children:(0,x.jsx)(V,{title:h.title,backUrl:h.backUrl,filter:h.filter,titleExtra:h.titleExtra,titleLeftExtra:h.titleLeftExtra})}),(0,x.jsx)("div",{className:v()(j["page-main-content"],"core-page-main-content",{[j["no-padding"]]:h.noPadding}),children:(0,x.jsxs)(X,{children:[h.helperGuideName&&(0,x.jsx)(U.default,{className:v()(j["helper-guide-page"],"core-helper-guide-page"),name:h.helperGuideName}),n]})})]})}),(0,x.jsx)(X,{children:(0,x.jsx)(B,{})})]})})]})})})]})},Q=["permissions"],Z=e=>{let{permissions:t}=e,n=(0,h.A)(e,Q);return(0,x.jsx)(W.default,(0,l.A)((0,l.A)({},Object.assign({},t,{type:"error"})),{},{children:(0,x.jsx)(P,(0,l.A)({},n))}))};var $=n(28148);const ee=e=>({"en-US":()=>n.e(7317).then(n.bind(n,27317)),"zh-CN":()=>n.e(9051).then(n.bind(n,99051))}[e]());var te=n(6617),ne=n(47458);const le={"page-header":"style_page-header__l3LiS__RCjzi",main:"style_main__X1Ynh__RCjzi","icon-outer":"style_icon-outer__6F97H__RCjzi",title:"style_title__dNWQj__RCjzi",info:"style_info__yF-4c__RCjzi",overlay:"style_overlay__SWqqE__RCjzi",tags:"style_tags__5+zDU__RCjzi","tag-split":"style_tag-split__V6SqP__RCjzi","button-options":"style_button-options__f1-gI__RCjzi"},ae=e=>{let{className:t,title:n,icon:r,iconType:i,info:o,tags:c,tagSplit:d=(0,x.jsx)("span",{className:le["tag-split"],children:"|"}),tagClassName:u="",buttonOptions:m,buttonOptionsMaxWidth:p,addonBefore:h,addonAfter:_,children:g}=e;return(0,x.jsxs)(a.Row,{className:v()(t,le["page-header"]),wrap:!1,gutter:10,children:[h&&(0,x.jsx)(a.Col,{children:h}),(0,x.jsx)(a.Col,{flex:1,children:(0,x.jsxs)(a.Space,{direction:"vertical",children:[(0,x.jsxs)(a.Row,{wrap:!1,children:[(0,x.jsx)(a.Col,{flex:1,className:le.main,children:(0,x.jsxs)(a.Space,{align:"start",children:[r&&(0,x.jsx)("div",{className:le["icon-outer"],children:r}),!r&&i&&(0,x.jsx)("div",{className:le["icon-outer"],children:(0,x.jsx)(b.default,{colorful:!0,type:i,size:24})}),(0,x.jsx)("div",{className:le.title,children:n}),o&&(0,x.jsx)("div",{className:le.info,children:o})]})}),m&&(0,x.jsxs)(a.Col,{flex:1,className:le["button-options"],style:{"--max-width":p},children:[(0,s.isValidElement)(m)&&m,"object"===typeof m&&Array.isArray(null===m||void 0===m?void 0:m.list)&&(0,x.jsx)(te.default,(0,l.A)({},m))]})]}),c&&(0,x.jsx)(a.Space,{className:u,split:d,size:[16,8],children:c.map((e,t)=>(0,x.jsx)("div",{className:le.tags,children:e},t))}),g]})}),_&&(0,x.jsx)(a.Col,{children:_})]})},se=e=>(0,x.jsx)(ne.IntlProvider,{importMessages:ee,moduleName:"PageHeader",children:(0,x.jsx)(ae,(0,l.A)({},e))});var re=n(10935);const ie=["helperGuideName","permissions","page","openFeatures","name","topArea"],oe=(0,s.forwardRef)((e,t)=>{let{helperGuideName:n,permissions:a,page:r,openFeatures:i,name:o,topArea:c}=e,d=(0,h.A)(e,ie);const[u,m]=(0,s.useState)(null);return(0,x.jsxs)(Z,(0,l.A)((0,l.A)({name:o,openFeatures:i,permissions:a},r),{},{children:[c?(0,x.jsx)("div",{className:j["table-page-top"],children:"function"===typeof c?c(u):c}):null,(0,x.jsxs)("div",{className:j["table-page"],children:[n&&(0,x.jsx)(U.default,{className:v()("helper-guide",j["helper-guide"]),name:n}),(0,x.jsx)(re.TablePage,(0,l.A)((0,l.A)({},d),{},{ref:t,name:o,onRequestSuccess:e=>{m(e)}}))]})]}))});var ce=n(87227);const de=["helperGuideName","permissions","page","stateBar","children"],ue=e=>{let{helperGuideName:t,permissions:n,page:a,stateBar:s,children:r}=e,i=(0,h.A)(e,de);return(0,x.jsxs)(Z,(0,l.A)((0,l.A)((0,l.A)({},a),{},{permissions:n},i),{},{children:[(0,x.jsx)("div",{className:j["state-bar-page"],children:(0,x.jsx)(ce.default,(0,l.A)({},s))}),t&&(0,x.jsx)(U.default,{className:j["helper-guide"],name:t}),r]}))}},63361(e,t,n){n.r(t),n.d(t,{default:()=>y,useFeatureCall:()=>f});var l=n(73884),a=n(72752),s=n(33097),r=n.n(s),i=n(15797),o=n.n(i),c=n(1488),d=n.n(c),u=n(70579);const m=(e,t,n)=>{e&&(Array.isArray(e)?e.forEach(e=>{m(e,t,n)}):(t(Object.assign({},d()(e,["children"]),{parentId:n})),m(e.children,t,n?n+":"+e.id:e.id)))},p=o()(e=>{const t=(()=>{const t=new Map;return m(e,e=>{t.set(e.parentId?e.parentId+":"+e.id:e.id,e)}),t})(),n=(e=>Array.from(e.keys()).filter(t=>{const n=e.get(t);return!(Array.isArray(n.dependencies)&&n.dependencies.length>0&&n.dependencies.some(n=>!e.get(t)))}))(t);return{profile:e,features:n,profileMap:t}}),h=(e,t)=>{let{profileMap:n,features:l}=t;const a=n.get(e);return-1!==l.indexOf(e)&&!0!==a.close&&r()(a,"dependencies",[]).every(t=>{const a=n.get(e);return l.indexOf(t)>-1&&!0!==a.close})},_=(0,l.createContext)(null),{Provider:g}=_,f=e=>{const{features:t,profile:n,profileMap:s,debug:i}=(()=>{const e=(0,a.usePreset)(),{profile:t,debug:n}=r()(e,"features",{debug:!1,profile:{}});return Object.assign({},p(t),{debug:n})})(),o="system"===n.type?n.id:"root",c=(0,l.useContext)(_),d=c?c+":"+e:o+":"+e;return(0,l.useEffect)(()=>{t&&t.length>0&&i&&console.log("[featureId] ".concat(d,",[state] ").concat(h(d,{features:t,profileMap:s})),s.get(d))},[t,s,i,d]),{isPass:!(e&&t&&t.length>0)||h(d,{features:t,profileMap:s}),currentId:d,feature:s.get(d)}},y=e=>{let{id:t,children:n}=e;const{isPass:l,feature:a,currentId:s}=f(t);return(0,u.jsx)(g,{value:s,children:"function"===typeof n?n({isPass:l,options:l?r()(a,"options"):r()(a,"rejectedOptions"),currentId:s}):l&&n})}},73604(e,t,n){n.r(t),n.d(t,{AdvancedFilter:()=>ot,AdvancedSelectFilterItem:()=>we,CascaderFilterItem:()=>Me,CityFilterItem:()=>Pe,DatePickerFilterItem:()=>je,DateRangePickerFilterItem:()=>Ce,FilterItem:()=>T,FilterItemContainer:()=>dt,FilterLines:()=>x,FilterProvider:()=>S,FilterValueDisplay:()=>b,FunctionSelectFilterItem:()=>ke,IndustrySelectFilterItem:()=>Ie,InputFilterItem:()=>Le,NumberRangeFilterItem:()=>Ke,PopoverItem:()=>oe,SearchInput:()=>We,SuperSelectFilterItem:()=>Fe,SuperSelectTableListFilterItem:()=>Se,SuperSelectUserFilterItem:()=>Ee,TreeFilterItem:()=>Te,TypeDateRangePickerFilterItem:()=>Re,UserFilterItem:()=>Oe,advancedFields:()=>st,default:()=>ut,fields:()=>l,getFilterValue:()=>Ye,useFilter:()=>g,withFieldItem:()=>K,withFilterValue:()=>Be});var l={};n.r(l),n.d(l,{AdvancedSelectFilterItem:()=>we,CascaderFilterItem:()=>Me,CityFilterItem:()=>Pe,DatePickerFilterItem:()=>je,DateRangePickerFilterItem:()=>Ce,FunctionSelectFilterItem:()=>ke,IndustrySelectFilterItem:()=>Ie,InputFilterItem:()=>Le,NumberRangeFilterItem:()=>Ke,SuperSelectFilterItem:()=>Fe,SuperSelectTableListFilterItem:()=>Se,SuperSelectUserFilterItem:()=>Ee,TreeFilterItem:()=>Te,TypeDateRangePickerFilterItem:()=>Re,UserFilterItem:()=>Oe});var a=n(89379),s=n(53986),r=n(83136),i=n.n(r),o=n(73884),c=n(64671);const d={filter:"style_filter__Xml45__RCjzi","filter-item-icon":"style_filter-item-icon__kVCRK__RCjzi","filter-item-option-icon":"style_filter-item-option-icon__q1fz3__RCjzi","filter-title":"style_filter-title__PlIpS__RCjzi","filter-title-hidden":"style_filter-title-hidden__NJ1ZB__RCjzi","ad-filter-title":"style_ad-filter-title__5-OzD__RCjzi","ad-filter-line":"style_ad-filter-line__ga6UH__RCjzi","filter-line":"style_filter-line__E+cRh__RCjzi","clean-btn":"style_clean-btn__oSEvm__RCjzi","filter-item":"style_filter-item__Q2ncE__RCjzi","un-expand":"style_un-expand__4PFY8__RCjzi","ad-filter-selected":"style_ad-filter-selected__KbLfG__RCjzi","filter-label":"style_filter-label__qu26i__RCjzi","filter-item-wrap":"style_filter-item-wrap__rOq7H__RCjzi",option:"style_option__rd5Qo__RCjzi","is-active":"style_is-active__OArQI__RCjzi","is-visited":"style_is-visited__gZ5ni__RCjzi","un-expand-shadow":"style_un-expand-shadow__fj92e__RCjzi","filter-item-label":"style_filter-item-label__C781J__RCjzi","filter-item-field":"style_filter-item-field__Ltfr8__RCjzi","filter-drop-tag":"style_filter-drop-tag__DD-2P__RCjzi","filter-list-tag":"style_filter-list-tag__Qt5hA__RCjzi","filter-tag":"style_filter-tag__dUGfu__RCjzi","filter-tag-value":"style_filter-tag-value__p-SFv__RCjzi","pop-util-content":"style_pop-util-content__bx5zP__RCjzi","date-range-picker-popup":"style_date-range-picker-popup__vsjGw__RCjzi","pop-util-overlay":"style_pop-util-overlay__LEASt__RCjzi","pop-util-footer":"style_pop-util-footer__Xat1s__RCjzi","pop-util-text":"style_pop-util-text__pzeUy__RCjzi","filter-item-inner":"style_filter-item-inner__LVXgh__RCjzi","filter-item-text":"style_filter-item-text__MA8tU__RCjzi","filter-item-number-range":"style_filter-item-number-range__U-OgQ__RCjzi","filter-item-custom":"style_filter-item-custom__UusRa__RCjzi","filter-item-custom-active":"style_filter-item-custom-active__uFtny__RCjzi","filter-item-number-range-split":"style_filter-item-number-range-split__fVt8E__RCjzi","filter-item-number-input":"style_filter-item-number-input__YPO6K__RCjzi","range-picker":"style_range-picker__c6ngq__RCjzi","cascader-select-wrap":"style_cascader-select-wrap__z5hu7__RCjzi","cascader-dropdown-menu":"style_cascader-dropdown-menu__nhAH5__RCjzi","filter-advanced":"style_filter-advanced__4cyDy__RCjzi","filter-advanced-item-other":"style_filter-advanced-item-other__-v86K__RCjzi","filter-advanced-item-other-inner":"style_filter-advanced-item-other-inner__sXLEV__RCjzi","filter-advanced-more":"style_filter-advanced-more__OFXq4__RCjzi"};var u=n(55199),m=n(47458);const p=e=>({"en-US":()=>n.e(8869).then(n.bind(n,18869)),"zh-CN":()=>n.e(2363).then(n.bind(n,92363))}[e]()),h=(0,o.createContext)({}),{Provider:_}=h,g=()=>(0,o.useContext)(h);var f=n(33097),y=n.n(f),v=n(70579);const j=e=>{let{list:t,children:n}=e;const{value:l,onChange:s}=g();return(0,v.jsxs)("div",{className:d["filter-line"],children:[t.filter(e=>!!e.type).map((e,t)=>{if("function"===typeof e)return e(e=>({index:t,value:l?y()(l.get(null===e||void 0===e?void 0:e.name),"value"):null===e||void 0===e?void 0:e.value,onChange:s?t=>s({name:null===e||void 0===e?void 0:e.name,label:null===e||void 0===e?void 0:e.label,value:t}):null===e||void 0===e?void 0:e.onChange}));const n=e.type;return(0,o.createElement)(n,(0,a.A)((0,a.A)({},Object.assign({},e.props,{value:l?y()(l.get(e.props.name),"value"):e.props.value,onChange:s?t=>s({name:e.props.name,label:e.props.label,value:t}):e.props.onChange})),{},{key:e.key||e.props.name||t}))}),n]})},x=e=>{let{className:t,list:n=[],displayLine:l=1,label:a,extra:s,children:r}=e;const h=n.length>l,[_,g]=(0,o.useState)(!1);return(0,v.jsxs)(m.IntlProvider,{importMessages:p,moduleName:"Filter",children:[(0,v.jsxs)(u.Space,{className:i()(d["filter-title"],"filter-title",t),align:"top",size:16,children:[(0,v.jsx)("span",{className:d["filter-label"],children:n&&n.length>0&&(a||(0,v.jsx)(m.FormattedMessage,{id:"filterText",moduleName:"Filter",defaultMessage:"\u7b5b\u9009"}))}),(0,v.jsxs)(u.Row,{justify:"space-between",wrap:!1,align:"top",children:[(0,v.jsx)(u.Col,{className:d["filter-list"],flex:1,children:n.slice(0,l).map((e,t)=>(0,v.jsx)(j,{list:e,children:h&&!1===_&&t===l-1?(0,v.jsxs)(u.Space,{size:4,className:i()(d["filter-item"],d.option),onClick:()=>{g(e=>!e)},children:[(0,v.jsx)(m.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"}),(0,v.jsx)(c.default,{className:d["filter-item-option-icon"],type:"icon-arrow-thin-down"})]}):null},t))}),(0,v.jsx)(u.Col,{children:s})]})]}),(0,v.jsx)(u.Space,{className:i()(d["filter-title"],"filter-title-wrap"),align:"center",size:16,children:r}),(0,v.jsxs)(u.Space,{className:i()(d["filter-title"],"filter-title-wrap",{[d["filter-title-hidden"]]:!(h&&_)}),align:"top",size:16,children:[(0,v.jsx)("span",{className:d["filter-label"],children:(0,v.jsx)(m.FormattedMessage,{id:"moreText",moduleName:"Filter",defaultMessage:"\u66f4\u591a"})}),(0,v.jsx)("div",{className:d["filter-list"],children:n.slice(l).map((e,t)=>(0,v.jsx)(j,{list:e,children:t===n.length-l-1&&(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(u.Space,{size:4,className:i()(d["un-expand-shadow"]),children:(0,v.jsxs)(u.Space,{size:4,className:i()(d.option,d["filter-item"]),children:[(0,v.jsx)(m.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,v.jsx)(c.default,{className:d["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})}),(0,v.jsx)(u.Space,{size:4,className:i()(d["un-expand"]),onClick:()=>{g(e=>!e)},children:(0,v.jsxs)(u.Space,{size:4,className:i()(d.option,d["filter-item"]),children:[(0,v.jsx)(m.FormattedMessage,{id:"toggleUpText",moduleName:"Filter",defaultMessage:"\u6536\u8d77"}),(0,v.jsx)(c.default,{className:d["filter-item-option-icon"],type:"icon-arrow-thin-up"})]})})]})},t))})]})]})};var C=n(3874);const b=e=>{let{value:t,extraExpand:n,onChange:l}=e;return(0,v.jsx)(m.IntlProvider,{importMessages:p,moduleName:"Filter",children:(0,v.jsxs)(u.Space,{className:d["filter-title"],align:"top",size:16,children:[(0,v.jsx)("span",{className:d["filter-label"],children:(0,v.jsx)(m.FormattedMessage,{id:"selectedText",moduleName:"Filter",defaultMessage:"\u60a8\u5df2\u9009\u62e9"})}),(0,v.jsxs)("div",{className:d["filter-line"],children:[t.map((e,n)=>{let{name:a,label:s,value:r}=e;return(0,v.jsx)(C.default,{type:"filterResult",filterName:s,text:Array.isArray(r)?r.map(e=>e.label).join("\uff0c"):r.label,closable:!0,onClose:()=>{const e=t.slice(0);e.splice(n,1),l(e)}},a)}),(0,v.jsxs)(u.Space,{size:4,className:i()(d["un-expand-shadow"]),children:[n,(0,v.jsx)(u.Button,{size:"small",children:(0,v.jsx)(m.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]}),(0,v.jsxs)(u.Space,{size:4,className:i()(d["un-expand"]),children:[n,(0,v.jsx)(u.Button,{size:"small",onClick:()=>{l([])},children:(0,v.jsx)(m.FormattedMessage,{id:"clearAllText",moduleName:"Filter",defaultMessage:"\u6e05\u7a7a\u5168\u90e8"})})]})]})]})})};var A=n(10986),R=n.n(A),N=n(41740),z=n.n(N),w=n(43856);const F=["children","className","defaultValue"],S=e=>{let{children:t,className:n,defaultValue:l=[]}=e,a=(0,s.A)(e,F);const[r,i]=R()(a),c=(0,o.useMemo)(()=>r.filter(e=>(0,w.isNotEmpty)(e.value)),[r]),d=(0,o.useMemo)(()=>new Map(c.map(e=>[e.name,e])),[c]);return(0,v.jsx)(m.IntlProvider,{moduleName:"Filter",importMessages:p,children:(0,v.jsx)(_,{value:{value:d,onChange:e=>{const t=z()(d);e.value?t.set(e.name,e):t.delete(e.name),null===i||void 0===i||i(Array.from(t.values()))}},children:"function"===typeof t?t({props:a,value:c,onChange:i}):t})})},E=["children","className"],O=e=>{let{children:t,className:n}=e,l=(0,s.A)(e,E);return(0,v.jsx)(S,(0,a.A)((0,a.A)({},l),{},{children:e=>(0,v.jsx)("div",{className:i()(d.filter,"filter",n),children:t(e)})}))},k=["defaultValue"],I=["extraExpand"],P=e=>{let{defaultValue:t=[]}=e,n=(0,s.A)(e,k);return(0,v.jsx)(O,(0,a.A)((0,a.A)({},n),{},{defaultValue:t,children:e=>{let{props:t,value:n,onChange:l}=e;const{extraExpand:r}=t,i=(0,s.A)(t,I);return(0,v.jsxs)(v.Fragment,{children:[(0,v.jsx)(x,(0,a.A)({},i)),n&&n.length>0&&(0,v.jsx)(b,{value:n,onChange:l,extraExpand:r})]})}}))};var M=n(55490);const T=e=>{let{open:t,active:n,label:l,children:a}=e;return(0,v.jsx)(u.Space,{className:d["filter-item-wrap"],children:(0,v.jsxs)("div",{className:i()(d["filter-item"],{[d["is-active"]]:n,[d["is-visited"]]:t}),children:[(0,v.jsxs)(u.Space,{className:d["filter-item-label"],size:4,children:[(0,v.jsx)("div",{children:l}),(0,v.jsx)(c.default,{className:d["filter-item-icon"],type:"icon-triangle-down"})]}),(0,v.jsx)("div",{className:d["filter-item-field"],children:a})]})})},L=["value","onChange","interceptor","label"],K=e=>t=>{let{value:n,onChange:l,interceptor:r,label:i}=t,c=(0,s.A)(t,L);const[u,m]=(0,o.useState)(!1);return(0,v.jsx)(T,{label:i,open:u,active:(0,M.A)(n),children:(0,v.jsx)(e,(0,a.A)((0,a.A)({allowClear:!1},c),{},{className:d["filter-item-inner"],value:"function"===typeof(null===r||void 0===r?void 0:r.input)?r.input(n):n,onChange:"function"===typeof(null===r||void 0===r?void 0:r.output)?function(){return l(r.output(...arguments))}:l,valueType:"all",onOpenChange:m}))})};var D=n(12392),H=n(60586),Y=n(41654),V=n(93761),B=n(53392),U=n(45776),W=n(30509),q=n(96418),G=n.n(q);const X="style_scroll-loader__Rcuti__RCjzi",J="style_is-popup__pCRv2__RCjzi";var Q=n(17342),Z=n(1488),$=n.n(Z),ee=n(15797),te=n.n(ee);const ne=["single","isPopup","searchPlaceholder"],le=["maxLength","dataFormat"],ae=W.A.useContext,se=e=>{let{value:t,setValue:n,size:l}=e;const{fetchApi:r,props:c}=ae(),d=G()(c.dataFormat),{single:m,isPopup:p,searchPlaceholder:h}=c,_=(0,s.A)(c,ne),g=(0,o.useRef)(c.fieldNames);g.current=c.fieldNames;const f=r.data,{treeData:y}=(0,o.useMemo)(()=>d(f,{fieldNames:g.current}),[d,f]);return(0,v.jsx)(u.Space,{direction:"vertical",size:16,children:(0,v.jsx)(Q.A,{className:i()(X,{[J]:c.isPopup}),children:(0,v.jsx)(u.Tree,(0,a.A)((0,a.A)({},$()(_,["value","valueType","children","dataFormat"])),{},{size:l,checkable:!m,treeData:y,onCheck:n,checkedKeys:t,onSelect:m?n:e=>{const t=e[0];void 0!==t&&n(e=>{const n=e.slice(0),l=n.indexOf(t);return l>-1?n.splice(l,1):n.push(t),n})},selectedKeys:m?t:void 0}))})})},re=e=>{let{maxLength:t,dataFormat:n}=e,l=(0,s.A)(e,le);return(0,v.jsx)(W.A,(0,a.A)((0,a.A)({},l),{},{dataFormat:e=>n(e,{fieldNames:l.fieldNames}),children:e=>{let{value:n,setValue:l}=e;return(0,v.jsx)(se,{size:t,value:n,setValue:l})}}))};re.defaultProps={searchPlaceholder:"\u641c\u7d22",maxLength:Number.MAX_VALUE,size:"middle",isPopup:!0,checkStrictly:!1,dataFormat:(e,t)=>{let{fieldNames:n}=t;const l=te()((e,t)=>{let{fieldNames:n}=t;const l=[],a=e=>{Array.isArray(e)&&e.length>0&&e.forEach(e=>{const t=e[y()(n,"key","key")],s=e[y()(n,"title","title")],r=e[y()(n,"children","children")];l.push({id:t,value:t,label:s}),a(r)})};return a(e),l});return{treeData:e,list:l(e,{fieldNames:n})}}};const ie=re,oe=e=>{let{value:t,label:n,onValidate:l,overlayClassName:a,placement:s="bottomLeft",onOpenChange:r,onChange:c,children:p}=e;const[h,_]=(0,o.useState)(t),[g,f]=(0,o.useState)(!1),y=(0,o.useMemo)(()=>l&&!l(h),[l,h]);return(0,v.jsx)(u.Popover,{open:g,trigger:"click",placement:s,arrow:!1,rootClassName:i()(d["pop-util-overlay"],a),onOpenChange:e=>{f(e),_(t),r&&r(e)},content:(0,v.jsxs)("span",{onClick:e=>{e.stopPropagation()},children:[(0,v.jsx)("div",{className:d["pop-util-content"],children:p({value:h,onChange:_})}),(0,v.jsxs)(u.Row,{className:d["pop-util-footer"],justify:"end",gutter:8,children:[(0,v.jsx)(u.Col,{children:(0,v.jsx)(u.Button,{size:"small",onClick:()=>{f(!1),r&&r(!1)},children:(0,v.jsx)(m.FormattedMessage,{id:"cancelText",moduleName:"Filter",defaultMessage:"\u53d6\u6d88"})})}),(0,v.jsx)(u.Col,{children:(0,v.jsx)(u.Button,{size:"small",type:"primary",disabled:y,onClick:()=>{f(!1),r&&r(!1),c&&c(h)},children:(0,v.jsx)(m.FormattedMessage,{id:"determineText",moduleName:"Filter",defaultMessage:"\u786e\u5b9a"})})})]})]}),children:(0,v.jsx)("span",{children:(0,v.jsx)(T,{open:g,active:(0,M.A)(t),label:n})})})},ce=["label","value","onChange","placeholder","onValidate","overlayClassName","placement","onOpenChange"],de=e=>{let{label:t,value:n,onChange:l,placeholder:r,onValidate:i,overlayClassName:o,placement:c,onOpenChange:m}=e,p=(0,s.A)(e,ce);return(0,v.jsx)(oe,{label:t,value:n,onChange:l,onValidate:i,overlayClassName:o,placement:c,onOpenChange:m,children:e=>{let{value:n,onChange:l}=e;return(0,v.jsx)(u.Input,(0,a.A)((0,a.A)({},p),{},{placeholder:r||"\u8bf7\u8f93\u5165".concat(t),className:d["filter-item-text"],value:y()(n,"value",""),onChange:e=>l(e.target.value?{label:e.target.value,value:e.target.value}:null)}))}})};var ue=n(79160),me=n.n(ue);const pe=["label","value","onChange","placeholder","onValidate","overlayClassName","placement","onOpenChange","unit"],he=(e,t,n)=>me()(e[0])||me()(e[1])?{label:(e=>me()(e[0])&&me()(e[1])?"".concat(e[0],"-").concat(e[1]).concat(t||""):me()(e[0])?n({id:"over"},{count:e[0],unit:t}):me()(e[1])?n({id:"lessThan"},{count:e[1],unit:t}):void 0)(e),value:[e[0]||null,e[1]||null]}:null,_e=e=>{const t=y()(e,"value");return!(t&&me()(t[0])&&me()(t[1])&&t[1]<t[0])},ge=e=>{let{label:t,value:n,onChange:l,placeholder:r,onValidate:i=_e,overlayClassName:o,placement:c,onOpenChange:p,unit:h}=e,_=(0,s.A)(e,pe);const{formatMessage:g}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsx)(oe,{label:t,value:n,onChange:l,onValidate:i,overlayClassName:o,placement:c,onOpenChange:p,children:e=>{let{value:n,onChange:l}=e;return(0,v.jsxs)(u.Space.Compact,{children:[(0,v.jsx)(u.InputNumber,(0,a.A)((0,a.A)({},_),{},{placeholder:r||"".concat(g({id:"pleaseInput"})).concat(t),className:d["filter-item-number-range"],value:y()(n,"value[0]",""),onChange:e=>{l(he([e,y()(n,"value[1]")],h,g))}})),(0,v.jsx)(u.Input,{style:{width:30,borderLeft:0,borderRight:0,pointerEvents:"none"},placeholder:"~",disabled:!0}),(0,v.jsx)(u.InputNumber,(0,a.A)((0,a.A)({},_),{},{placeholder:r||"".concat(g({id:"pleaseInput"})).concat(t),className:d["filter-item-number-range"],value:y()(n,"value[1]",""),onChange:e=>{l(he([y()(n,"value[0]"),e],h,g))}})),h&&(0,v.jsx)(u.Input,{style:{width:50,borderLeft:0},value:h,disabled:!0})]})}})};var fe=n(57469),ye=n.n(fe);const ve=["value","onChange","picker"],je=K(e=>{let{value:t,onChange:n,picker:l="date"}=e,r=(0,s.A)(e,ve);return(0,v.jsx)(u.DatePicker,(0,a.A)((0,a.A)({},r),{},{picker:l,value:t&&ye()(t.value),onChange:e=>{const{format:t}=Object.assign({format:"YYYY-MM-DD"},r);e&&n({label:"date"!==l?"".concat(e.startOf(l).format(t),"~").concat(e.endOf(l).format(t)):e.format(t),value:new Date(e.startOf(l).valueOf())})}}))}),xe=["value","onChange","header"],Ce=K(e=>{let{value:t,onChange:n,header:l}=e,r=(0,s.A)(e,xe);return(0,v.jsxs)(u.Flex,{vertical:!0,children:["function"===typeof l?l({value:t,onChange:n}):l,(0,v.jsx)(u.DatePicker.RangePicker,(0,a.A)((0,a.A)({},r),{},{allowEmpty:[!1,!1],classNames:{popup:{root:d["date-range-picker-popup"]}},value:t&&Array.isArray(t.value)&&2===t.value.length&&t.value.map(e=>ye()(e)),onChange:e=>{const{format:t}=Object.assign({format:"YYYY-MM-DD"},r);n({label:e.map(e=>e.format(t)).join("~"),value:e.map(e=>new Date(e.valueOf()))})}}))]})});var be=n(89319);const Ae=["label","value","onChange"],Re=e=>{let{label:t,value:n,onChange:l}=e,r=(0,s.A)(e,Ae);return(0,v.jsx)(oe,{label:t,value:n,onChange:l,onValidate:e=>{const t=null===e||void 0===e?void 0:e.value;return(null===t||void 0===t?void 0:t.type)&&Array.isArray(null===t||void 0===t?void 0:t.value)&&2===t.value.length},children:e=>{let{value:t,onChange:n}=e;return(0,v.jsx)(be.A,(0,a.A)((0,a.A)({},r),{},{className:d["filter-item-text"],value:y()(t,"value"),onChange:e=>{const{format:t}=Object.assign({format:"YYYY-MM-DD"},r),l=(null===e||void 0===e?void 0:e.value)||[];n({label:l[0]&&!l[1]?"".concat(ye()(l[0]).format(t),"\u4ee5\u540e"):!l[0]&&l[1]?"".concat(ye()(l[1]).format(t),"\u4ee5\u524d"):l[0]&&l[1]?"".concat(ye()(l[0]).format(t),"~").concat(ye()(l[1]).format(t)):"",value:e})}}))}})},Ne=["placeholder","label"],ze=e=>t=>{let{placeholder:n,label:l}=t,r=(0,s.A)(t,Ne);return(0,v.jsx)(m.FormattedMessage,{id:"defaultInputPlaceholder",moduleName:"Filter",values:{label:l},children:t=>(0,v.jsx)(e,(0,a.A)((0,a.A)({},r),{},{label:l,placeholder:n||t}))})},we=K(D.Ay),Fe=K(H.Ay),Se=K(H.e0),Ee=K(H.$9),Oe=K(D.Eo),ke=K(Y.A),Ie=K(B.A),Pe=K(V.Ay),Me=K(U.Ay),Te=K(ie),Le=ze(de),Ke=ze(ge);var De=n(22717),He=n.n(De);const Ye=e=>He()(e,(e,t)=>{let{name:n,value:l}=t;e[n]=Array.isArray(l)?l.map(e=>{let{value:t}=e;return t}):null===l||void 0===l?void 0:l.value},{}),Ve=["name","label"],Be=e=>t=>{let{name:n,label:l}=t,r=(0,s.A)(t,Ve);const{value:i,onChange:o}=g();return(0,v.jsx)(e,(0,a.A)((0,a.A)({},r),{},{label:l,onChange:o?e=>o({name:n,label:l,value:e}):r.onChange,value:i?y()(i.get(n),"value"):r.value}))},Ue=["label","onChange","value","placeholder"],We=Be(e=>{let{label:t,onChange:n,value:l,placeholder:r}=e,i=(0,s.A)(e,Ue);const{formatMessage:o}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsx)(w.SearchInput,(0,a.A)((0,a.A)({},i),{},{placeholder:r||o({id:"inputPlaceholder"},{label:t}),value:(null===l||void 0===l?void 0:l.value)||"",onSearch:e=>{n({label:e,value:e})}}))});var qe=n(72752);const Ge=["value","onChange","single","maxLength","addressApi"],{CheckableTag:Xe}=u.Tag,Je=(0,V.DF)(e=>{let{value:t,onChange:n,single:l=!1,maxLength:r=5,addressApi:i}=e,c=(0,s.A)(e,Ge);const{message:p}=u.App.useApp(),{locale:h}=(0,qe.usePreset)(),{formatMessage:_}=(0,m.useIntl)({moduleName:"Filter"}),g=(0,o.useMemo)(()=>i.getChinaHotCities(),[i]);return(0,v.jsxs)(v.Fragment,{children:[g.map(e=>{const{code:a}=e,s=(0,V.NY)(e,h);return(0,v.jsx)(Xe,{size:"small",checked:l?(null===t||void 0===t?void 0:t.value)===a:!!(t||[]).find(e=>{let{value:t}=e;return t===a}),onChange:e=>{if(l)return void n(e?{value:a,label:s}:null);const i=(t||[]).slice(0);e?i.push({value:a,label:s}):(()=>{const e=i.findIndex(e=>{let{value:t}=e;return t===a});i.splice(e,1)})(),i.length>r?p.error(_({id:"maxSelectedCount"},{count:r})):n(i)},children:s},a)}),(0,v.jsxs)(Xe,{className:d["filter-advanced-item-other"],size:"small",checked:(l?null===t||void 0===t?void 0:t.value:(null===t||void 0===t?void 0:t.value)&&t.value.length>0)&&!g.find(e=>{let{code:n}=e;return l?(null===t||void 0===t?void 0:t.value)===n:!!(t||[]).find(e=>{let{value:t}=e;return t===n})}),children:[(0,v.jsx)(m.FormattedMessage,{id:"otherText",moduleName:"Filter",defaultMessage:"\u5176\u4ed6"}),(0,v.jsx)(V.Ay,(0,a.A)((0,a.A)({},c),{},{className:d["filter-advanced-item-other-inner"],maxLength:r,value:l?null===t||void 0===t?void 0:t.value:(t||[]).map(e=>{let{value:t}=e;return t}),single:l,onChange:function(e){const t=e=>{const{city:t}=i.getCity(e);return{value:null===t||void 0===t?void 0:t.code,label:null===t||void 0===t?void 0:t.name}};n(l?t(e):e.map(e=>t(e)))}}))]})]})}),Qe=Je;var Ze=n(19853),$e=n.n(Ze);const{CheckableTag:et}=u.Tag,tt=e=>{let{value:t,onChange:n,label:s,single:r=!1,maxLength:i=5,items:o=[],custom:c}=e;const{message:d}=u.App.useApp(),{formatMessage:p}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsxs)(v.Fragment,{children:[o.map(e=>{let{label:l,value:a}=e;return(0,v.jsx)(et,{size:"small",checked:r?$e()(a,null===t||void 0===t?void 0:t.value):!!(t||[]).find(e=>{let{value:t}=e;return $e()(a,t)}),onChange:e=>{if(r)return void n(e?{value:a,label:l}:null);const s=(t||[]).slice(0);e?s.push({value:a,label:l}):(()=>{const e=s.find(e=>{let{value:t}=e;return $e()(a,t)});s.splice(e,1)})(),s.length>i?d.error(p({id:"maxSelectedCount"},{count:i})):n(s)},children:l},l)}),c&&(()=>{const e=Object.values(l).find(e=>e===c.type);return e?(0,v.jsx)(e,(0,a.A)((0,a.A)({},c.props),{},{value:t,placeholder:"".concat(p({id:"pleaseInput"})).concat(s),onChange:n})):null})()]})};var nt=n(78491),lt=n.n(nt);const at=["value","label","onChange"],st={CityFilterItem:Qe,ListFilterItem:tt,InputFilterItem:e=>{let{value:t,label:n,onChange:l}=e,r=(0,s.A)(e,at);const i=null===t||void 0===t?void 0:t.value,[c,d]=(0,o.useState)(i||""),[p,h]=(0,o.useState)(!1),{formatMessage:_}=(0,m.useIntl)({moduleName:"Filter"}),g=()=>{l(c?{label:c,value:c}:null)},f=lt()(()=>{h(!1),g()}),y=(0,o.useRef)("");return y.current=c,(0,o.useEffect)(()=>{i!==y.current&&d(i)},[i]),(0,v.jsx)("span",{ref:f,children:(0,v.jsxs)(u.Space.Compact,{children:[(0,v.jsx)(u.Input,(0,a.A)((0,a.A)({placeholder:"".concat(_({id:"pleaseInput"})).concat(n)},r),{},{size:"small",value:c,onFocus:()=>{h(!0)},onChange:e=>{d(e.target.value)},onPressEnter:g})),p&&(0,v.jsx)(u.Button,{size:"small",type:"primary",onClick:g,children:_({id:"search"})})]})})}},rt=e=>{let{list:t}=e;const{value:n,onChange:l}=g();return(0,v.jsx)(u.Flex,{gap:8,children:t.map((e,t)=>{const s=e.type;return(0,v.jsxs)(u.Flex,{gap:16,align:"center",children:[(0,v.jsxs)("div",{className:d["filter-label"],children:[e.props.label,":"]}),(0,v.jsx)(u.Flex,{wrap:!0,align:"center",children:(0,v.jsx)(s,(0,a.A)((0,a.A)({},e.props),{},{value:n?y()(n.get(e.props.name),"value"):e.props.value,onChange:l?t=>l({name:e.props.name,label:e.props.label,value:t}):e.props.onChange}))})]},e.key||e.props.name||t)})})},it=(0,m.createWithIntl)({importMessages:p,moduleName:"Filter"})(e=>{const{formatMessage:t}=(0,m.useIntl)({moduleName:"Filter"});return(0,v.jsx)(O,(0,a.A)((0,a.A)({},e),{},{children:e=>{let{value:n,onChange:l,props:a}=e;const{list:s,more:r}=a;return(0,v.jsxs)("div",{children:[(0,v.jsxs)(u.Flex,{gap:8,vertical:!0,className:d["filter-advanced"],children:[s.map((e,t)=>(0,v.jsx)(rt,{list:e},t)),r&&(0,v.jsx)(x,{className:d["filter-advanced-more"],label:"".concat(t({id:"moreText"}),":"),list:[r]})]}),n&&n.length>0&&(0,v.jsx)(b,{value:n,onChange:l})]})}}))});it.fields=st;const ot=it,ct=["children"],dt=e=>{let{children:t}=e;return t((0,s.A)(e,ct))};P.fields=l,P.getFilterValue=Ye,P.useFilter=g,P.SearchInput=We,P.withFilterValue=Be,P.FilterProvider=S;const ut=P},75363(e,t,n){n.r(t),n.d(t,{default:()=>_});const l=e=>({"en-US":()=>n.e(9431).then(n.bind(n,9431)),"zh-CN":()=>n.e(1065).then(n.bind(n,81065))}[e]());var a=n(47458),s=n(64671),r=n(55199),i=n(83136),o=n.n(i);const c="style_helper-guide__K5xFw__RCjzi",d="style_inner__bMKeU__RCjzi",u="style_content__xTfWZ__RCjzi",m="style_link__93j7O__RCjzi";var p=n(48731),h=n(70579);const _=e=>{let{name:t,className:n}=e;return(0,h.jsx)(a.IntlProvider,{importMessages:l,moduleName:"HelperGuide",children:(0,h.jsx)(p.default,{moduleName:"helperGuide",name:t,children:e=>e&&e.value&&(0,h.jsx)("div",{className:o()(c,n),children:(0,h.jsxs)(r.Space,{className:d,children:[(0,h.jsx)(s.default,{colorful:!0,type:"icon-color-bangzhuyindao"}),(0,h.jsx)("span",{className:u,children:e.content}),e.url&&(0,h.jsxs)(r.Typography.Link,{className:m,href:e.url,target:"_blank",children:["\u67e5\u770b\u5e2e\u52a9",(0,h.jsx)(s.default,{type:"icon-shuangjiantou-right"})]})]})})})})}},79329(e,t,n){n.r(t),n.d(t,{default:()=>N,navigationHeight:()=>b});var l=n(89379),a=n(53986),s=n(55199),r=n(94679),i=n(33097),o=n.n(i),c=n(73884),d=n(83136),u=n.n(d);const m=n.p+"static/media/favicon.477a5bb996fd5b367fe0dddc29f67824.svg";var p=n(40438);const h=e=>({"en-US":()=>n.e(257).then(n.bind(n,30257)),"zh-CN":()=>n.e(5671).then(n.bind(n,5671))}[e]());var _=n(47458),g=n(96418),f=n.n(g),y=n(64671);const v={"navigation-wrap":"style_navigation-wrap__VF8x2__RCjzi",navigation:"style_navigation__60RrS__RCjzi",logo:"style_logo__lB9RC__RCjzi","is-fixed":"style_is-fixed__kHFWj__RCjzi","navigation-logo":"style_navigation-logo__q9qHu__RCjzi","navigation-list":"style_navigation-list__EYtkg__RCjzi","navigation-options":"style_navigation-options__0BdJU__RCjzi","menu-overlay":"style_menu-overlay__zU-vZ__RCjzi","more-icon":"style_more-icon__gNMnt__RCjzi"};var j=n(70579);const x=["key"],{Header:C}=s.Layout,b=48,A=e=>{let{name:t,mapping:n,defaultTitle:l}=e;const a=(0,c.useRef)({mapping:n,defaultTitle:l});return(0,c.useEffect)(()=>{const e=o()(a.current.mapping.get(t),"title");document.title=(e?e+"-":"")+a.current.defaultTitle},[t]),null},R=e=>{let{onReady:t}=e;const n=f()(t);return(0,c.useEffect)(()=>{n()},[n]),null},N=e=>{let{permissions:t=[],list:n=[],headerLogo:i,rightOptions:d,isFixed:g=!0,showIndex:f=!0,indexLabel:b,defaultTitle:N,overflowedIndicator:z,base:w="",onChange:F,className:S,navigateTo:E}=e;const O=(0,c.useMemo)(()=>new Map(n.map(e=>{let{key:t}=e;return[t,(0,a.A)(e,x)]})),[n]),k=(0,r.useNavigate)(),I="function"===typeof E?E:k,P=(0,r.useLocation)(),M=(0,c.useRef)(),T=(0,c.useRef)(null),[L,K]=(0,c.useState)("\u66f4\u591a"),[D,H]=(0,c.useState)(!1),Y=P.pathname.replace(new RegExp("^".concat(w)),"").split("/")[1],V=Y?o()(Array.from(O.entries()).find(e=>{let[n,{path:l,permission:a}]=e;return-1!==("function"===typeof l?l(a,t):l).indexOf("/"+Y)}),"[0]"):"home";(0,c.useEffect)(()=>{const e=()=>{if(M.current){const e=M.current.querySelectorAll("li[data-menu-id]");let t=!1;for(let l=0;l<e.length;l++){if(-1!==e[l].getAttribute("data-menu-id").indexOf(V)){t=!0;break}}let n=O.get(V)&&!t?o()(O.get(V),"title"):"";K(n)}},t={attributes:!0,childList:!0,subtree:!0};return D&&M&&M.current&&(e(),T.current&&T.current.disconnect(),T.current=new MutationObserver(e),T.current.observe(M.current,t)),()=>{T.current&&T.current.disconnect()}},[V,O,D]);const B=!!f&&{label:b||(0,j.jsx)(_.FormattedMessage,{id:"indexLabel",moduleName:"Navigation"}),key:"home",onClick:()=>{F&&F("/"),setTimeout(()=>{I("/")},0)}};return(0,j.jsxs)(_.IntlProvider,{importMessages:h,moduleName:"Navigation",children:[(0,j.jsx)(_.FormattedMessage,{id:"defaultTitle",moduleName:"Navigation",children:e=>(0,j.jsx)(A,{defaultTitle:N||e,mapping:O,name:V})}),(0,j.jsx)("div",{className:u()(v["navigation-wrap"],S),children:(0,j.jsx)(C,{className:u()("navigation",v.navigation,{[v["is-fixed"]]:g}),children:(0,j.jsxs)(s.Row,{justify:"space-around",wrap:!1,children:[(0,j.jsx)(s.Col,{className:u()("navigation-logo",v["navigation-logo"]),children:(0,j.jsx)(p.default,(0,l.A)({className:u()(v.logo),alt:"logo"},Object.assign({},i||{src:m})))}),(0,j.jsxs)(s.Col,{ref:M,flex:1,className:u()("navigation-list",v["navigation-list"]),children:[(0,j.jsx)(R,{onReady:()=>{H(!0)}}),(0,j.jsx)(s.Menu,{className:u()(v["main-menu"],"navigation-main-menu"),selectedKeys:[V],mode:"horizontal",overflowedIndicator:z||(0,j.jsxs)(s.Space,{size:4,children:[(0,j.jsx)("span",{children:L||(0,j.jsx)(_.FormattedMessage,{id:"overflowedIndicator",moduleName:"Navigation"})}),(0,j.jsx)("span",{className:v["more-icon"],children:(0,j.jsx)(y.default,{type:"icon-arrow-thin-down"})})]}),items:[B,...Array.from(O.entries()).filter(e=>{let[n,{permission:l}]=e;if("string"===typeof l)return t.indexOf(l)>-1;if("function"===typeof l)return l(t);if(Array.isArray(l)){for(let e of l)if(t.indexOf(e)>-1)return!0;return!1}return!0}).map(e=>{let[n,{title:l,icon:a,path:r,permission:i}]=e;const o="function"===typeof r?r(i,t):r;return{label:a?(0,j.jsxs)(s.Flex,{gap:8,children:[a,(0,j.jsx)("span",{children:l})]}):l,key:n,onClick:()=>{F&&F(o),setTimeout(()=>{I(o)},0)}}})]})]}),(0,j.jsx)(s.Col,{className:v["navigation-options"],children:d})]})})})]})}},87227(e,t,n){n.r(t),n.d(t,{default:()=>m});var l=n(89379),a=n(53986),s=n(55199),r=n(83136),i=n.n(r);const o={"state-bar":"style_state-bar__3jfis__RCjzi","has-children":"style_has-children__oQDqU__RCjzi","tab-tab-control":"style_tab-tab-control__SopeO__RCjzi","tab-radio-control":"style_tab-radio-control__R8X6-__RCjzi","tab-step-control":"style_tab-step-control__EQaCl__RCjzi","inner-state-bar":"style_inner-state-bar__lWmOz__RCjzi"};var c=n(70579);const d=["className","type","stateOption","isInner"],u=["tab","label","key"],m=e=>{let{className:t,type:n="tab",stateOption:r=[],isInner:m}=e,p=(0,a.A)(e,d);return(0,c.jsx)(s.Tabs,(0,l.A)((0,l.A)({},p),{},{"data-testid":"components-core-state-bar",className:i()(o["state-bar"],o["tab-".concat(n,"-control")],t,{[o["inner-state-bar"]]:m,[o["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}=e,r=(0,a.A)(e,u);return(0,l.A)({label:t||n,key:s},r)})}))}}}]);
|
|
2
|
-
//# sourceMappingURL=5195.3b24069c.chunk.js.map
|