👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1 lines
28 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,15720,e=>{"use strict";var t=e.i(191788),o=e.i(56742);e.s(["useDebounceFn",0,function(e,r){let n=(0,o.useRefFunction)(e),i=(0,t.useRef)(),a=(0,t.useCallback)(()=>{i.current&&(clearTimeout(i.current),i.current=null)},[]),l=(0,t.useCallback)(async(...e)=>0===r||void 0===r?n(...e):(a(),new Promise(t=>{i.current=setTimeout(async()=>{t(await n(...e))},r)})),[n,a,r]);return(0,t.useEffect)(()=>a,[a]),{run:l,cancel:a}}])},35384,e=>{"use strict";var t=e.i(790731);e.s(["Popover",()=>t.default])},76820,245538,e=>{"use strict";var t=e.i(84443).Col;e.s(["Col",0,t],76820);var o=e.i(247699).Row;e.s(["Row",0,o],245538)},106555,e=>{"use strict";var t=e.i(379049),o=e.i(56206),r=e.i(191788),n=e.i(814432),i=e.i(889590),a=e.i(391398);e.s(["GridContent",0,e=>{let l=(0,r.useContext)(n.RouteContext),{children:s,contentWidth:d,className:c,style:u}=e,{getPrefixCls:m}=(0,r.useContext)(t.ConfigProvider.ConfigContext),p=e.prefixCls||m("pro"),f=d||l.contentWidth,g=`${p}-grid-content`,{wrapSSR:h,hashId:b}=(0,i.useStyle)("ProLayoutGridContent",e=>[{[({...e,componentCls:`.${g}`}).componentCls]:{boxSizing:"border-box",width:"100%","&-wide":{maxWidth:1152,margin:"0 auto"}}}]),x="Fixed"===f&&"top"===l.layout;return h((0,a.jsx)("div",{className:(0,o.clsx)(g,b,c,{[`${g}-wide`]:x}),style:u,"data-testid":"pro-grid-content",children:(0,a.jsx)("div",{className:(0,o.clsx)(`${p}-grid-content-children`,b),children:s})}))}],106555)},132259,e=>{"use strict";var t=e.i(313213);e.s(["Space",()=>t.default])},201962,e=>{"use strict";e.i(957562);var t=e.i(191248),o=e.i(146601),r=e.i(191788),n=e.i(440656),i=e.i(379049),a=e.i(56206),l=e.i(889590),s=e.i(391398),d=r.default.forwardRef(({text:e,fieldProps:o},n)=>{let{getPrefixCls:d}=(0,r.useContext)(i.ConfigProvider.ConfigContext),c=d("pro-field-readonly"),u=`${c}-textarea`,{wrapSSR:m,hashId:p}=(0,l.useStyle)("TextArea",()=>({[`.${u}`]:{display:"inline-block",lineHeight:"1.5715",maxWidth:"100%",whiteSpace:"pre-wrap"}}));return m((0,s.jsx)("span",{ref:n,className:(0,a.clsx)(p,c,u),...(0,t.omit)(o,["autoSize","classNames","styles"]),children:e??"-"}))}),c=r.default.forwardRef((e,r)=>{let{text:i,mode:a,render:l,formItemRender:c,fieldProps:u}=e,m=(0,n.useIntl)();if("read"===a){let o=(0,s.jsx)(d,{...e,ref:r});return l?l(i,{mode:a,...(0,t.omit)(u,["showCount"])},o):o}if("edit"===a||"update"===a){let e=(0,s.jsx)(o.Input.TextArea,{ref:r,rows:3,onKeyDown:e=>{"Enter"===e.key&&e.stopPropagation()},placeholder:m.getMessage("tableForm.inputPlaceholder","请输入"),...u});return c?c(i,{mode:a,...u},e):e}return null});e.s(["default",0,c],201962)},268074,e=>{"use strict";e.i(495059);var t=e.i(191788),o=e.i(186762),r=e.i(56206),n=e.i(483917),i=e.i(430898),a=e.i(708176),l=e.i(663032),s=e.i(993175);let d=e=>{let o,{prefixCls:n,value:i,current:a,offset:l=0}=e;return l&&(o={position:"absolute",top:`${l}00%`,left:0}),t.createElement("span",{style:o,className:(0,r.clsx)(`${n}-only-unit`,{current:a})},i)};var c=e=>{let o,r,{prefixCls:n,count:i,value:a}=e,l=Number(a),s=Math.abs(i),[c,u]=t.useState(l),[m,p]=t.useState(s),f=()=>{u(l),p(s)};if(t.useEffect(()=>{let e=setTimeout(f,1e3);return()=>clearTimeout(e)},[l]),c===l||Number.isNaN(l)||Number.isNaN(c))o=[t.createElement(d,{...e,key:l,current:!0})],r={transition:"none"};else{o=[];let n=l+10,i=[];for(let e=l;e<=n;e+=1)i.push(e);let a=m<s?1:-1,u=i.findIndex(e=>e%10===c);o=(a<0?i.slice(0,u+1):i.slice(u)).map((o,r)=>t.createElement(d,{...e,key:o,value:o%10,offset:a<0?r-u:r,current:r===u})),r={transform:`translateY(${-function(e,t,o){let r=e,n=0;for(;(r+10)%10!==t;)r+=o,n+=o;return n}(c,l,a)}00%)`}}return t.createElement("span",{className:`${n}-only`,style:r,onTransitionEnd:f},o)};let u=t.forwardRef((e,o)=>{let{prefixCls:n,count:i,className:a,motionClassName:d,style:u,title:m,show:p,component:f="sup",children:g,...h}=e,{getPrefixCls:b}=t.useContext(s.ConfigContext),x=b("scroll-number",n),v={...h,"data-show":p,style:u,className:(0,r.clsx)(x,a,d),title:m},C=i;if(i&&Number(i)%1==0){let e=String(i).split("");C=t.createElement("bdi",null,e.map((o,r)=>t.createElement(c,{prefixCls:x,count:Number(i),value:o,key:e.length-r})))}return(u?.borderColor&&(v.style={...u,boxShadow:`0 0 0 1px ${u.borderColor} inset`}),g)?(0,l.cloneElement)(g,e=>({className:(0,r.clsx)(`${x}-custom-component`,e?.className,d)})):t.createElement(f,{...v,ref:o},C)});e.i(290586);var m=e.i(456161),p=e.i(774778),f=e.i(307441),g=e.i(218870),h=e.i(352050),b=e.i(104616);let x=new m.Keyframes("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),v=new m.Keyframes("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),C=new m.Keyframes("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),y=new m.Keyframes("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),$=new m.Keyframes("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),w=new m.Keyframes("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),N=e=>{let{fontHeight:t,lineWidth:o,marginXS:r,colorBorderBg:n}=e,i=e.colorTextLightSolid,a=e.colorError,l=e.colorErrorHover;return(0,b.mergeToken)(e,{badgeFontHeight:t,badgeShadowSize:o,badgeTextColor:i,badgeColor:a,badgeColorHover:l,badgeShadowColor:n,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},S=e=>{let{fontSize:t,lineHeight:o,fontSizeSM:r,lineWidth:n}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*o)-2*n,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}};var k=(0,h.genStyleHooks)("Badge",e=>(e=>{let{componentCls:t,iconCls:o,antCls:r,badgeShadowSize:n,textFontSize:i,textFontSizeSM:a,statusSize:l,dotSize:s,textFontWeight:d,indicatorHeight:c,indicatorHeightSM:u,marginXS:m,calc:h}=e,b=`${r}-scroll-number`,N=(0,g.genPresetColor)(e,(e,{darkColor:o})=>({[`&${t} ${t}-color-${e}`]:{background:o,[`&:not(${t}-count)`]:{color:o},"a:hover &":{background:o}}}));return{[t]:{...(0,f.resetComponent)(e),position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:c,height:c,color:e.badgeTextColor,fontWeight:d,fontSize:i,lineHeight:(0,p.unit)(c),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(c).div(2).equal(),boxShadow:`0 0 0 ${(0,p.unit)(n)} ${e.badgeShadowColor}`,transition:`background-color ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:u,height:u,fontSize:a,lineHeight:(0,p.unit)(u),borderRadius:h(u).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${(0,p.unit)(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:s,minWidth:s,height:s,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${(0,p.unit)(n)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${b}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${o}-spin`]:{animationName:w,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:l,height:l,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:n,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:x,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}},...N,[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:v,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:C,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:y,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:$,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${b}-custom-component, ${t}-count`]:{transform:"none"},[`${b}-custom-component, ${b}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[b]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${b}-only`]:{position:"relative",display:"inline-block",height:c,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${b}-only-unit`]:{height:c,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${b}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${b}-custom-component`]:{transform:"translate(-50%, -50%)"}}}}})(N(e)),S);let E=t.forwardRef((e,d)=>{let{prefixCls:c,scrollNumberPrefixCls:m,children:p,status:f,text:g,color:h,count:b=null,overflowCount:x=99,dot:v=!1,size:C="medium",title:y,offset:$,style:w,className:N,rootClassName:S,classNames:E,styles:P,showZero:T=!1,...R}=e,{getPrefixCls:F,direction:I,className:M,style:j,classNames:W,styles:B}=(0,s.useComponentConfig)("badge"),O=F("badge",c),[H,z]=k(O),D={...e,overflowCount:x,size:C,dot:v,showZero:T},[_,A]=(0,i.useMergeSemantic)([W,E],[B,P],{props:D}),q=b>x?`${x}+`:b,L="0"===q||0===q||"0"===g||0===g,V=null===b||L&&!T,Z=((0,a.default)(f)||(0,a.default)(h))&&V,K=(0,a.default)(f)||!L,Y=v&&!L,X=Y?"":q,U=(0,t.useMemo)(()=>((!(0,a.default)(X)||""===X)&&(!(0,a.default)(g)||""===g)||L&&!T)&&!Y,[X,L,T,Y,g]),G=(0,t.useRef)(b);U||(G.current=b);let J=G.current,Q=(0,t.useRef)(X);U||(Q.current=X);let ee=Q.current,et=(0,t.useRef)(Y);U||(et.current=Y);let eo=(0,t.useMemo)(()=>{if(!$)return{...j,...w};let e=Number.parseInt($[0],10);return{...{marginTop:$[1],insetInlineEnd:-e},...j,...w}},[$,w,j]),er=y??("string"==typeof J||"number"==typeof J?J:void 0),en=!U&&(0===g?T:!!g&&!0!==g),ei=en?t.createElement("span",{className:`${O}-status-text`},g):null,ea=J&&"object"==typeof J?(0,l.cloneElement)(J,e=>({style:{...eo,...e.style}})):void 0,el=(0,n.isPresetColor)(h,!1),es=(0,r.clsx)(_.indicator,{[`${O}-status-dot`]:Z,[`${O}-status-${f}`]:!!f,[`${O}-color-${h}`]:el}),ed={};h&&!el&&(ed.color=h,ed.background=h);let ec=(0,r.clsx)(O,{[`${O}-status`]:Z,[`${O}-not-a-wrapper`]:!p,[`${O}-rtl`]:"rtl"===I},N,S,M,_.root,H,z);if(!p&&Z&&(g||K||!V)){let e=eo.color;return t.createElement("span",{ref:d,...R,className:ec,style:{...A.root,...eo}},t.createElement("span",{className:es,style:{...A.indicator,...ed}}),en&&t.createElement("span",{style:{color:e},className:`${O}-status-text`},g))}return t.createElement("span",{ref:d,...R,className:ec,style:A.root},p,t.createElement(o.default,{visible:!U,motionName:`${O}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:e})=>{let o=F("scroll-number",m),n=et.current,i=(0,r.clsx)(_.indicator,{[`${O}-dot`]:n,[`${O}-count`]:!n,[`${O}-count-sm`]:"small"===C,[`${O}-multiple-words`]:!n&&ee&&ee.toString().length>1,[`${O}-status-${f}`]:!!f,[`${O}-color-${h}`]:el}),a={...A.indicator,...eo};return h&&!el&&((a=a||{}).background=h),t.createElement(u,{prefixCls:o,show:!U,motionClassName:e,className:i,count:ee,title:er,style:a,key:"scrollNumber"},ea)}),ei)});var P=(0,h.genStyleHooks)(["Badge","Ribbon"],e=>(e=>{let{antCls:t,badgeFontHeight:o,marginXS:r,badgeRibbonOffset:n,calc:i}=e,a=`${t}-ribbon`,l=`${t}-ribbon-wrapper`,s=(0,g.genPresetColor)(e,(e,{darkColor:t})=>({[`&${a}-color-${e}`]:{background:t,color:t}}));return{[l]:{position:"relative"},[a]:{...(0,f.resetComponent)(e),position:"absolute",top:r,padding:`0 ${(0,p.unit)(e.paddingXS)}`,color:e.colorPrimary,lineHeight:(0,p.unit)(o),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-content`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:n,height:n,color:"currentcolor",border:`${(0,p.unit)(i(n).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter},...s,[`&${a}-placement-end`]:{insetInlineEnd:i(n).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(n).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}}}})(N(e)),S);E.Ribbon=e=>{let{className:o,prefixCls:a,style:l,color:d,children:c,text:u,placement:m="end",rootClassName:p,styles:f,classNames:g}=e,{getPrefixCls:h,direction:b,className:x,style:v,classNames:C,styles:y}=(0,s.useComponentConfig)("ribbon"),$=h("ribbon",a),w=`${$}-wrapper`,[N,S]=P($,w),k={...e,placement:m},[E,T]=(0,i.useMergeSemantic)([C,g],[y,f],{props:k}),R=(0,n.isPresetColor)(d,!1),F=(0,r.clsx)($,`${$}-placement-${m}`,{[`${$}-rtl`]:"rtl"===b,[`${$}-color-${d}`]:R},o,x,E.indicator),I={},M={};return d&&!R&&(I.background=d,M.color=d),t.createElement("div",{className:(0,r.clsx)(w,p,N,S,E.root),style:T.root},c,t.createElement("div",{className:(0,r.clsx)(F,N),style:{...I,...T.indicator,...v,...l}},t.createElement("span",{className:(0,r.clsx)(`${$}-content`,E.content),style:T.content},u),t.createElement("div",{className:`${$}-corner`,style:M})))},e.s(["Badge",0,E],268074)},360618,e=>{"use strict";var t=e.i(439214);e.s(["PlusOutlined",()=>t.default])},439214,e=>{"use strict";e.i(495059);var t=e.i(191788),o={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},r=e.i(117716);function n(){return(n=Object.assign.bind()).apply(this,arguments)}let i=t.forwardRef((e,i)=>t.createElement(r.default,n({},e,{ref:i,icon:o})));e.s(["default",0,i],439214)},688008,e=>{"use strict";e.i(957562);var t=e.i(191248),o=e.i(617796),r=e.i(882474),n=e.i(35384),i=e.i(191788),a=e.i(238570),a=a,l=e.i(440656),s=e.i(967595),d=e.i(391398);let c="text",u=e=>{let[t,a]=(0,o.useControlledState)(e.open||!1,e.open),l=(0,i.useCallback)(t=>{a(o=>{let r="function"==typeof t?t(o):t;return e.onOpenChange?.(r),r})},[e.onOpenChange]);return(0,d.jsx)(r.Form.Item,{shouldUpdate:!0,noStyle:!0,children:o=>{let r=o.getFieldValue(e.name||[]);return(0,d.jsx)(n.Popover,{getPopupContainer:e=>e&&e.parentNode?e.parentNode:e,onOpenChange:e=>l(e),content:(0,d.jsxs)("div",{style:{padding:"4px 0"},children:[e.statusRender?.(r),e.strengthText?(0,d.jsx)("div",{style:{marginTop:10},children:(0,d.jsx)("span",{children:e.strengthText})}):null]}),styles:{root:{width:240}},placement:"rightTop",...e.popoverProps,open:t,children:e.children})}})},m=({fieldProps:e,proFieldProps:t,...o})=>(0,d.jsx)(s.default,{valueType:c,fieldProps:e,fieldConfig:{valueType:c},proFieldProps:t,...o});m.Password=({fieldProps:e,proFieldProps:o,...r})=>{let[n,m]=(0,i.useState)(!1);return e?.statusRender&&r.name?(0,d.jsx)(l.ProConfigProvider,{valueTypeMap:{password:{render:(e,t)=>(0,d.jsx)(a.default,{...t,text:e}),formItemRender:(e,t)=>(0,d.jsx)(a.default,{...t,text:e})}},children:(0,d.jsx)(u,{name:r.name,statusRender:e?.statusRender,popoverProps:e?.popoverProps,strengthText:e?.strengthText,open:n,onOpenChange:m,children:(0,d.jsx)("div",{children:(0,d.jsx)(s.default,{valueType:"password",fieldProps:{...(0,t.omit)(e,["statusRender","popoverProps","strengthText"]),onBlur:t=>{e?.onBlur?.(t),m(!1)},onClick:t=>{e?.onClick?.(t),m(!0)}},proFieldProps:o,fieldConfig:{valueType:c},...r})})})}):(0,d.jsx)(l.ProConfigProvider,{valueTypeMap:{password:{render:(e,t)=>(0,d.jsx)(a.default,{...t,text:e}),formItemRender:(e,t)=>(0,d.jsx)(a.default,{...t,text:e})}},children:(0,d.jsx)(s.default,{valueType:"password",fieldProps:e,proFieldProps:o,fieldConfig:{valueType:c},...r})})},m.displayName="ProFormComponent",e.s(["ProFormText",0,m],688008)},739217,e=>{"use strict";var t=e.i(191788),o=e.i(551233),o=o,r=e.i(440656),n=e.i(810711),i=e.i(568061),a=e.i(967595),l=e.i(391398);let s=t.default.forwardRef(({fieldProps:e,children:s,params:d,proFieldProps:c,mode:u,valueEnum:m,request:p,options:f,...g},h)=>{let b=e?.mode||u||"multiple",x={options:f,labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label",...e,mode:"single"===b?void 0:b},v=(0,t.useContext)(i.default);return(0,l.jsx)(r.ProConfigProvider,{valueTypeMap:{select:{render:(e,t)=>(0,l.jsx)(o.default,{...t,text:e}),formItemRender:(e,t)=>(0,l.jsx)(o.default,{...t,text:e})}},children:(0,l.jsx)(a.default,{valueEnum:(0,n.runFunction)(m),request:p,params:d,valueType:"select",fieldConfig:{customLightMode:!0},fieldProps:{getPopupContainer:v.getPopupContainer,...x},ref:h,proFieldProps:c,...g,children:s})})}),d=t.default.forwardRef(({fieldProps:e,children:s,params:d,proFieldProps:c,mode:u,valueEnum:m,request:p,showSearch:f,options:g,...h},b)=>{let x=(0,t.useContext)(i.default);return(0,l.jsx)(r.ProConfigProvider,{valueTypeMap:{select:{render:(e,t)=>(0,l.jsx)(o.default,{...t,text:e}),formItemRender:(e,t)=>(0,l.jsx)(o.default,{...t,text:e})}},children:(0,l.jsx)(a.default,{valueEnum:(0,n.runFunction)(m),request:p,params:d,valueType:"select",fieldConfig:{customLightMode:!0},fieldProps:{options:g,mode:u,showSearch:f,getPopupContainer:x.getPopupContainer,...e},ref:b,proFieldProps:c,...h,children:s})})});d.SearchSelect=s,d.displayName="ProFormComponent",e.s(["ProFormSelect",0,d],739217)},749344,236107,e=>{"use strict";var t=e.i(191788);e.i(117327);var o=e.i(226150),o=o,r=e.i(938667);let n=e=>"object"==typeof e&&null!=e&&1===e.nodeType,i=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,a=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let o,r=getComputedStyle(e,null);return i(r.overflowY,t)||i(r.overflowX,t)||!!(o=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(o.clientHeight<e.scrollHeight||o.clientWidth<e.scrollWidth)}return!1},l=(e,t,o,r,n,i,a,l)=>i<e&&a>t||i>e&&a<t?0:i<=e&&l<=o||a>=t&&l>=o?i-e-r:a>t&&l<o||i<e&&l>o?a-t+n:0,s=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},d=(e,t)=>{var o,r,i,d;let c;if("u"<typeof document)return[];let{scrollMode:u,block:m,inline:p,boundary:f,skipOverflowHiddenElements:g}=t,h="function"==typeof f?f:e=>e!==f;if(!n(e))throw TypeError("Invalid target");let b=document.scrollingElement||document.documentElement,x=[],v=e;for(;n(v)&&h(v);){if((v=s(v))===b){x.push(v);break}null!=v&&v===document.body&&a(v)&&!a(document.documentElement)||null!=v&&a(v,g)&&x.push(v)}let C=null!=(r=null==(o=window.visualViewport)?void 0:o.width)?r:innerWidth,y=null!=(d=null==(i=window.visualViewport)?void 0:i.height)?d:innerHeight,{scrollX:$,scrollY:w}=window,{height:N,width:S,top:k,right:E,bottom:P,left:T}=e.getBoundingClientRect(),{top:R,right:F,bottom:I,left:M}={top:parseFloat((c=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(c.scrollMarginRight)||0,bottom:parseFloat(c.scrollMarginBottom)||0,left:parseFloat(c.scrollMarginLeft)||0},j="start"===m||"nearest"===m?k-R:"end"===m?P+I:k+N/2-R+I,W="center"===p?T+S/2-M+F:"end"===p?E+F:T-M,B=[];for(let e=0;e<x.length;e++){let t=x[e],{height:o,width:r,top:n,right:i,bottom:s,left:d}=t.getBoundingClientRect();if("if-needed"===u&&k>=0&&T>=0&&P<=y&&E<=C&&(t===b&&!a(t)||k>=n&&P<=s&&T>=d&&E<=i))break;let c=getComputedStyle(t),f=parseInt(c.borderLeftWidth,10),g=parseInt(c.borderTopWidth,10),h=parseInt(c.borderRightWidth,10),v=parseInt(c.borderBottomWidth,10),R=0,F=0,I="offsetWidth"in t?t.offsetWidth-t.clientWidth-f-h:0,M="offsetHeight"in t?t.offsetHeight-t.clientHeight-g-v:0,O="offsetWidth"in t?0===t.offsetWidth?0:r/t.offsetWidth:0,H="offsetHeight"in t?0===t.offsetHeight?0:o/t.offsetHeight:0;if(b===t)R="start"===m?j:"end"===m?j-y:"nearest"===m?l(w,w+y,y,g,v,w+j,w+j+N,N):j-y/2,F="start"===p?W:"center"===p?W-C/2:"end"===p?W-C:l($,$+C,C,f,h,$+W,$+W+S,S),R=Math.max(0,R+w),F=Math.max(0,F+$);else{R="start"===m?j-n-g:"end"===m?j-s+v+M:"nearest"===m?l(n,s,o,g,v+M,j,j+N,N):j-(n+o/2)+M/2,F="start"===p?W-d-f:"center"===p?W-(d+r/2)+I/2:"end"===p?W-i+h+I:l(d,i,r,f,h+I,W,W+S,S);let{scrollLeft:e,scrollTop:a}=t;R=0===H?0:Math.max(0,Math.min(a+R/H,t.scrollHeight-o/H+M)),F=0===O?0:Math.max(0,Math.min(e+F/O,t.scrollWidth-r/O+I)),j+=a-R,W+=e-F}B.push({el:t,top:R,left:F})}return B},c=["parentNode"];function u(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function m(e,t){if(!e.length)return;let o=e.join("_");return t?`${t}_${o}`:c.includes(o)?`form_item_${o}`:o}function p(e){return u(e).join("_")}function f(e,t){let o=t.getFieldInstance(e),n=(0,r.getDOM)(o);if(n)return n;let i=m(u(e),t.__INTERNAL__.name);if(i)return document.getElementById(i)}e.s(["getFieldId",0,m,"getStatus",0,function(e,t,o,r,n,i){let a=r;return void 0!==i?a=i:o.validating?a="validating":e.length?a="error":t.length?a="warning":(o.touched||n&&o.validated)&&(a="success"),a},"toArray",0,u],236107),e.s(["default",0,function(e){let[r]=(0,o.default)(),n=t.useRef({}),i=t.useMemo(()=>e??{...r,__INTERNAL__:{itemRef:e=>t=>{let o=p(e);t?n.current[o]=t:delete n.current[o]}},scrollToField:(e,t={})=>{let{focus:o,...r}=t,n=f(e,i);n&&(!function(e,t){let o;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let r={top:parseFloat((o=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(o.scrollMarginRight)||0,bottom:parseFloat(o.scrollMarginBottom)||0,left:parseFloat(o.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(d(e,t));let n="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:o,top:i,left:a}of d(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=i-r.top+r.bottom,t=a-r.left+r.right;o.scroll({top:e,left:t,behavior:n})}}(n,{scrollMode:"if-needed",block:"nearest",...r}),o&&i.focusField(e))},focusField:e=>{let t=i.getFieldInstance(e);"function"==typeof t?.focus?t.focus():f(e,i)?.focus?.()},getFieldInstance:e=>{let t=p(e);return n.current[t]}},[e,r]);return[i]},"toNamePathStr",0,p],749344)},778141,e=>{"use strict";e.s(["omitUndefined",0,e=>{let t={};if(Object.keys(e||{}).forEach(o=>{void 0!==e[o]&&(t[o]=e[o])}),!(Object.keys(t).length<1))return t}])},790731,37132,21567,e=>{"use strict";e.i(495059);var t=e.i(191788);e.i(957562);var o=e.i(617796),r=e.i(56206);let n=e=>e?"function"==typeof e?e():e:null;e.s(["getRenderPropValue",0,n],37132);var i=e.i(430898),a=e.i(47472),l=e.i(993175),s=e.i(188304),d=e.i(783831);e.i(215747);var c=e.i(208081),u=e.i(307441),m=e.i(394739),p=e.i(770371),f=e.i(840665),g=e.i(352050),h=e.i(104616),b=e.i(678251),x=(0,g.genStyleHooks)("Popover",e=>{let{colorBgElevated:t,colorText:o}=e,r=(0,h.mergeToken)(e,{popoverBg:t,popoverColor:o});return[(e=>{let{componentCls:t,popoverColor:o,titleMinWidth:r,fontWeightStrong:n,innerPadding:i,boxShadowSecondary:a,colorTextHeading:l,borderRadiusLG:s,zIndexPopup:d,titleMarginBottom:c,colorBgElevated:m,popoverBg:f,titleBorderBottom:h,innerContentPadding:b,titlePadding:x,antCls:v}=e,[C,y]=(0,g.genCssVar)(v,"tooltip");return[{[t]:{...(0,u.resetComponent)(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:d,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[C("valid-offset-x")]:y("arrow-offset-x","var(--arrow-x)"),transformOrigin:[y("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" "),[C("arrow-background-color")]:m,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:f,backgroundClip:"padding-box",borderRadius:s,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:c,color:l,fontWeight:n,borderBottom:h,padding:x},[`${t}-content`]:{color:o,padding:b}}},(0,p.default)(e,y("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]})(r),(e=>{let{componentCls:t,antCls:o}=e,[r]=(0,g.genCssVar)(o,"tooltip");return{[t]:b.PresetColors.map(o=>{let n=e[`${o}6`];return{[`&${t}-${o}`]:{[r("arrow-background-color")]:n,[`${t}-inner`]:{backgroundColor:n},[`${t}-arrow`]:{background:"transparent"}}}})}})(r),(0,m.initZoomMotion)(r,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:o,fontHeight:r,padding:n,wireframe:i,zIndexPopupBase:a,borderRadiusLG:l,marginXS:s,lineType:d,colorSplit:c,paddingSM:u}=e,m=o-r;return{titleMinWidth:177,zIndexPopup:a+30,...(0,f.getArrowToken)(e),...(0,p.getArrowOffsetToken)({contentRadius:l,limitVerticalRadius:!0}),innerPadding:12*!i,titleMarginBottom:i?0:s,titlePadding:i?`${m/2}px ${n}px ${m/2-t}px`:0,titleBorderBottom:i?`${t}px ${d} ${c}`:"none",innerContentPadding:i?`${u}px ${n}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});let v=e=>{let{title:o,content:n,prefixCls:i,classNames:a,styles:l}=e;return o||n?t.createElement(t.Fragment,null,o&&t.createElement("div",{className:(0,r.clsx)(`${i}-title`,a?.title),style:l?.title},o),n&&t.createElement("div",{className:(0,r.clsx)(`${i}-content`,a?.content),style:l?.content},n)):null},C=e=>{let{hashId:o,prefixCls:a,className:l,style:s,placement:d="top",title:u,content:m,children:p,classNames:f,styles:g}=e,h=n(u),b=n(m),x={...e,placement:d},[C,y]=(0,i.useMergeSemantic)([f],[g],{props:x}),$=(0,r.clsx)(o,a,`${a}-pure`,`${a}-placement-${d}`,l);return t.createElement("div",{className:$,style:s},t.createElement("div",{className:`${a}-arrow`}),t.createElement(c.Popup,{...e,className:o,prefixCls:a,classNames:C,styles:y},p||t.createElement(v,{prefixCls:a,title:h,content:b,classNames:C,styles:y})))};var y=e=>{let{prefixCls:o,className:n,...i}=e,{getPrefixCls:a}=t.useContext(l.ConfigContext),s=a("popover",o),[d,c]=x(s);return t.createElement(C,{...i,prefixCls:s,hashId:d,className:(0,r.clsx)(n,c)})};e.s(["Overlay",0,v,"default",0,y],21567);let $=t.forwardRef((e,c)=>{let{prefixCls:u,title:m,content:p,overlayClassName:f,placement:g="top",trigger:h,children:b,mouseEnterDelay:C=.1,mouseLeaveDelay:y=.1,onOpenChange:$,overlayStyle:w={},styles:N,classNames:S,motion:k,arrow:E,...P}=e,{getPrefixCls:T,className:R,style:F,classNames:I,styles:M,arrow:j,trigger:W}=(0,l.useComponentConfig)("popover"),B=T("popover",u),[O,H]=x(B),z=T(),D=(0,d.default)(E,j),_=h||W||"hover",A={...e,placement:g,trigger:_,mouseEnterDelay:C,mouseLeaveDelay:y,overlayStyle:w,styles:N,classNames:S},[q,L]=(0,i.useMergeSemantic)([I,S],[M,N],{props:A}),V=(0,r.clsx)(f,O,H,R,q.root),[Z,K]=(0,o.useControlledState)(e.defaultOpen??!1,e.open),Y=n(m),X=n(p);return t.createElement(s.default,{unique:!1,arrow:D,placement:g,trigger:_,mouseEnterDelay:C,mouseLeaveDelay:y,...P,prefixCls:B,classNames:{root:V,container:q.container,arrow:q.arrow},styles:{root:{...L.root,...F,...w},container:L.container,arrow:L.arrow},ref:c,open:Z,onOpenChange:e=>{K(e),$?.(e)},overlay:Y||X?t.createElement(v,{prefixCls:B,title:Y,content:X,classNames:q,styles:L}):null,motion:{motionName:(0,a.getTransitionName)(z,"zoom-big","string"==typeof k?.motionName?k?.motionName:void 0)},"data-popover-inject":!0},b)});$._InternalPanelDoNotUseOrYouWillBeFired=y,e.s(["default",0,$],790731)},814432,e=>{"use strict";let t=(0,e.i(191788).createContext)({});e.s(["RouteContext",0,t])},954942,e=>{"use strict";var t=e.i(881428);e.s(["DownOutlined",()=>t.default])},977892,e=>{"use strict";var t=e.i(677057);e.s(["LoadingOutlined",()=>t.default])}]);