pixivflow 2.34.0 → 2.36.0
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/dist/download/novelMarkers.d.ts +18 -2
- package/dist/package.json +1 -1
- package/dist/version.js +1 -1
- package/dist/webui/package.json +1 -1
- package/dist/webui/routes/handlers/scheduler-handlers.d.ts +17 -0
- package/dist/webui/routes/handlers/scheduler-handlers.js +99 -0
- package/dist/webui/routes/scheduler.js +2 -0
- package/dist/webui/utils/error-codes.d.ts +2 -0
- package/dist/webui/utils/error-codes.js +2 -0
- package/package.json +1 -1
- package/webui-frontend/dist/assets/ActionButton-bmITMO8t.js +2 -0
- package/webui-frontend/dist/assets/{CheckCircleOutlined-H3DnUyMO.js → CheckCircleOutlined-DXxMdP08.js} +2 -2
- package/webui-frontend/dist/assets/{ClearOutlined-BpODq7I7.js → ClearOutlined-CVkP1OPo.js} +2 -2
- package/webui-frontend/dist/assets/{CloseCircleOutlined-BFfS5iXd.js → CloseCircleOutlined-DGYEx-rx.js} +2 -2
- package/webui-frontend/dist/assets/{Config-DRElCeDC.js → Config-BFBZgSvI.js} +3 -3
- package/webui-frontend/dist/assets/Dashboard-CHiRV77D.js +2 -0
- package/webui-frontend/dist/assets/{DeleteOutlined-BFmW1oWe.js → DeleteOutlined-DwsLtl_I.js} +2 -2
- package/webui-frontend/dist/assets/Download-BY0RQ0yW.js +2 -0
- package/webui-frontend/dist/assets/{Files-nNoRY5tl.js → Files-qrEyGaCr.js} +3 -3
- package/webui-frontend/dist/assets/{PictureOutlined-U51jGr2U.js → PictureOutlined-B5UcfS3J.js} +2 -2
- package/webui-frontend/dist/assets/{SortDescendingOutlined-CckVuL_b.js → SortDescendingOutlined-CIPBhzNI.js} +2 -2
- package/webui-frontend/dist/assets/{useErrorHandler-BOvHue1w.js → Table-COdSkj3k.js} +31 -31
- package/webui-frontend/dist/assets/ThunderboltOutlined-BlHGTLpd.js +2 -0
- package/webui-frontend/dist/assets/UrlDownload-Dxj1MDnw.js +3 -0
- package/webui-frontend/dist/assets/{dateUtils-gQt2uAjS.js → dateUtils-Dh-zVUtr.js} +2 -2
- package/webui-frontend/dist/assets/errorCodeTranslator-D5vahyqQ.js +2 -0
- package/webui-frontend/dist/assets/{index-DPigBPWX.js → index-B84Vd9_M.js} +2 -2
- package/webui-frontend/dist/assets/index-BhmvYPFd.js +19 -0
- package/webui-frontend/dist/assets/{index-CDrp3NIf.js → index-Bp5yfy4e.js} +2 -2
- package/webui-frontend/dist/assets/{index-DG6kGbYq.js → index-BtXc5-H2.js} +37 -37
- package/webui-frontend/dist/assets/index-BvQQNYa5.js +22 -0
- package/webui-frontend/dist/assets/index-C2qRwckx.js +2 -0
- package/webui-frontend/dist/assets/index-CFWcxkyB.js +2 -0
- package/webui-frontend/dist/assets/index-CZ44NQeD.js +2 -0
- package/webui-frontend/dist/assets/index-CZXbP5HB.js +3 -0
- package/webui-frontend/dist/assets/{index-CJln3zA7.js → index-CZlT-55J.js} +3 -3
- package/webui-frontend/dist/assets/index-Cfg0ICF_.js +20 -0
- package/webui-frontend/dist/assets/index-D1KRxkVR.js +2 -0
- package/webui-frontend/dist/assets/{index-B2ns27ii.js → index-D8iUeVsP.js} +2 -2
- package/webui-frontend/dist/assets/{index-B7yYDv10.js → index-DcqvG64t.js} +2 -2
- package/webui-frontend/dist/assets/index-eeF42ACG.js +2 -0
- package/webui-frontend/dist/assets/{index-_EG4kaKN.js → index-xZubvNRw.js} +6 -6
- package/webui-frontend/dist/assets/row-DaMDSIar.js +2 -0
- package/webui-frontend/dist/assets/{useAuth-wCjAOx6S.js → useAuth-BfM9bg0I.js} +4 -4
- package/webui-frontend/dist/assets/{useConfig-Ds7RpIL1.js → useConfig-nFBmSW5k.js} +2 -2
- package/webui-frontend/dist/assets/{useDownload-BlxvZNEm.js → useDownload-ChmDqdbc.js} +2 -2
- package/webui-frontend/dist/assets/useErrorHandler-MJ8OxkB4.js +2 -0
- package/webui-frontend/dist/index.html +1 -1
- package/webui-frontend/dist/assets/Dashboard-aqPMquSO.js +0 -2
- package/webui-frontend/dist/assets/Download-DCKDU51K.js +0 -2
- package/webui-frontend/dist/assets/ThunderboltOutlined-ulcCd7ui.js +0 -2
- package/webui-frontend/dist/assets/UrlDownload-Bzs0AZN0.js +0 -3
- package/webui-frontend/dist/assets/errorCodeTranslator-BqIackMm.js +0 -3
- package/webui-frontend/dist/assets/index-Bbsa44oT.js +0 -2
- package/webui-frontend/dist/assets/index-C2ANILg9.js +0 -19
- package/webui-frontend/dist/assets/index-CFtP5lqo.js +0 -22
- package/webui-frontend/dist/assets/index-CZhfhXvc.js +0 -2
- package/webui-frontend/dist/assets/index-CfHs6AUn.js +0 -2
- package/webui-frontend/dist/assets/index-DarObP-C.js +0 -2
- package/webui-frontend/dist/assets/row-_c51T55h.js +0 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{aZ as kt,x as je,A as ie,v as Ne,y as er,z as Ot,b3 as tr,a2 as B,r as a,n as W,p as tt,h as ge,_ as we,a4 as ce,o as _e,i as he,a7 as ze,a9 as Me,ag as rt,b7 as rr,ac as nt,E as It,G as zt,J as jt,K as Bt,H as Tt,L as At,t as ot,M as et,N as ut,P as Nt,k as Ee,ap as _t,m as ft,I as at,ca as nr,bE as Mt,ae as or,a3 as pt,al as ar,an as ir,Y as it,$ as lr,aN as sr,a6 as Ht,D as cr,aD as dr}from"./index-DG6kGbYq.js";var Pt=function(t){if(kt()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},ur=function(t,n){if(!Pt(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function gt(e,t){return!Array.isArray(e)&&t!==void 0?ur(e,t):Pt(e)}function lt(e){return je(e,{inputAffixPadding:e.paddingXXS})}const st=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:i,fontSizeLG:c,lineHeightLG:f,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:g,colorFillAlter:d,colorPrimaryHover:O,colorPrimary:C,controlOutlineWidth:x,controlOutline:_,colorErrorOutline:S,colorWarningOutline:E,colorBgContainer:V,inputFontSize:T,inputFontSizeLG:y,inputFontSizeSM:m}=e,p=T||n,U=m||p,H=y||c,R=Math.round((t-p*r)/2*10)/10-o,P=Math.round((l-U*r)/2*10)/10-o,k=Math.ceil((i-H*f)/2*10)/10-o;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(P,0),paddingBlockLG:Math.max(k,0),paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:g-o,addonBg:d,activeBorderColor:C,hoverBorderColor:O,activeShadow:`0 0 0 ${x}px ${_}`,errorActiveShadow:`0 0 0 ${x}px ${S}`,warningActiveShadow:`0 0 0 ${x}px ${E}`,hoverBg:V,activeBg:V,inputFontSize:p,inputFontSizeLG:H,inputFontSizeSM:U}},fr=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ct=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},fr(je(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Dt=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),mt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Dt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),pr=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ct(e))}),mt(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),mt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),vt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),gr=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},vt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),vt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ct(e))}})}),mr=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Lt=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t?.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},bt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Lt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vr=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ct(e))}),bt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),bt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),ht=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),br=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},ht(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),ht(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Wt=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),xt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Wt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),hr=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),xt(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),xt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),xr=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ft=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ie(t)} ${ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Vt=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Gt=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},xr(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Ft(e)),"&-sm":Object.assign({},Vt(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Sr=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Ft(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Vt(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},tr()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
1
|
+
import{b6 as kt,x as je,A as ie,v as Ne,y as er,z as Ot,bb as tr,a2 as B,r as a,n as W,p as tt,h as ge,_ as we,a4 as ce,o as _e,i as he,a7 as ze,a9 as Me,ag as rt,be as rr,ac as nt,E as It,G as zt,J as jt,K as Bt,H as Tt,L as At,t as ot,M as et,N as ut,P as Nt,k as Ee,ap as _t,m as ft,I as at,cb as nr,bG as Mt,ae as or,a3 as pt,al as ar,an as ir,Y as it,$ as lr,aN as sr,a6 as Ht,D as cr,aD as dr}from"./index-BtXc5-H2.js";var Pt=function(t){if(kt()&&window.document.documentElement){var n=Array.isArray(t)?t:[t],r=window.document.documentElement;return n.some(function(o){return o in r.style})}return!1},ur=function(t,n){if(!Pt(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function gt(e,t){return!Array.isArray(e)&&t!==void 0?ur(e,t):Pt(e)}function lt(e){return je(e,{inputAffixPadding:e.paddingXXS})}const st=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:l,controlHeightLG:i,fontSizeLG:c,lineHeightLG:f,paddingSM:s,controlPaddingHorizontalSM:u,controlPaddingHorizontal:g,colorFillAlter:d,colorPrimaryHover:O,colorPrimary:C,controlOutlineWidth:x,controlOutline:_,colorErrorOutline:S,colorWarningOutline:E,colorBgContainer:V,inputFontSize:T,inputFontSizeLG:y,inputFontSizeSM:m}=e,p=T||n,U=m||p,H=y||c,R=Math.round((t-p*r)/2*10)/10-o,P=Math.round((l-U*r)/2*10)/10-o,k=Math.ceil((i-H*f)/2*10)/10-o;return{paddingBlock:Math.max(R,0),paddingBlockSM:Math.max(P,0),paddingBlockLG:Math.max(k,0),paddingInline:s-o,paddingInlineSM:u-o,paddingInlineLG:g-o,addonBg:d,activeBorderColor:C,hoverBorderColor:O,activeShadow:`0 0 0 ${x}px ${_}`,errorActiveShadow:`0 0 0 ${x}px ${S}`,warningActiveShadow:`0 0 0 ${x}px ${E}`,hoverBg:V,activeBg:V,inputFontSize:p,inputFontSizeLG:H,inputFontSizeSM:U}},fr=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),ct=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},fr(je(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),Dt=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),mt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Dt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),pr=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Dt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ct(e))}),mt(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),mt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),vt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),gr=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},vt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),vt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},ct(e))}})}),mr=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},Lt=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t?.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},bt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Lt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),vr=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Lt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},ct(e))}),bt(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),bt(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),ht=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),br=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},ht(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),ht(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Wt=(e,t)=>({background:e.colorBgContainer,borderWidth:`${ie(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),xt=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Wt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),hr=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Wt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),xt(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),xt(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),xr=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),Ft=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${ie(t)} ${ie(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},Vt=e=>({padding:`${ie(e.paddingBlockSM)} ${ie(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Gt=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${ie(e.paddingBlock)} ${ie(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},xr(e.colorTextPlaceholder)),{"&-lg":Object.assign({},Ft(e)),"&-sm":Object.assign({},Vt(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Sr=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},Ft(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},Vt(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${ie(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${ie(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${ie(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${ie(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},tr()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
2
2
|
& > ${t}-affix-wrapper,
|
|
3
3
|
& > ${t}-number-affix-wrapper,
|
|
4
4
|
& > ${n}-picker-range
|
|
@@ -13,7 +13,7 @@ import{aZ as kt,x as je,A as ie,v as Ne,y as er,z as Ot,b3 as tr,a2 as B,r as a,
|
|
|
13
13
|
& > ${n}-cascader-picker:last-child ${t},
|
|
14
14
|
& > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},yr=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,i=o(n).sub(o(r).mul(2)).sub(16).div(2).equal();return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Ot(e)),Gt(e)),pr(e)),vr(e)),mr(e)),hr(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:i,paddingBottom:i}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},Cr=e=>{const{componentCls:t}=e;return{[`${t}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${e.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:e.colorIcon},"&:active":{color:e.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${ie(e.inputAffixPadding)}`}}}},$r=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:l,colorIconHover:i,iconCls:c}=e,f=`${t}-affix-wrapper`,s=`${t}-affix-wrapper-disabled`;return{[f]:Object.assign(Object.assign(Object.assign(Object.assign({},Gt(e)),{display:"inline-flex",[`&:not(${t}-disabled):hover`]:{zIndex:1,[`${t}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${t}`]:{padding:0},[`> input${t}, > textarea${t}`]:{fontSize:"inherit",border:"none",borderRadius:0,outline:"none",background:"transparent",color:"inherit","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[t]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:e.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:e.paddingXXS},"&-prefix":{marginInlineEnd:n},"&-suffix":{marginInlineStart:n}}}),Cr(e)),{[`${c}${t}-password-icon`]:{color:l,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:i}}}),[`${t}-underlined`]:{borderRadius:0},[s]:{[`${c}${t}-password-icon`]:{color:l,cursor:"not-allowed","&:hover":{color:l}}}}},Er=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},Ot(e)),Sr(e)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${t}-group-addon`]:{borderRadius:n,fontSize:e.inputFontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:r}}},gr(e)),br(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-item`]:{[`${t}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},wr=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-search`;return{[r]:{[t]:{"&:not([disabled]):hover, &:not([disabled]):focus":{[`+ ${t}-group-addon ${r}-button:not(${n}-btn-color-primary):not(${n}-btn-variant-text)`]:{borderInlineStartColor:e.colorPrimaryHover}}},[`${t}-affix-wrapper`]:{height:e.controlHeight,borderRadius:0},[`${t}-lg`]:{lineHeight:e.calc(e.lineHeightLG).sub(2e-4).equal()},[`> ${t}-group`]:{[`> ${t}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${n}-btn-color-primary)`]:{color:e.colorTextDescription,"&:not([disabled]):hover":{color:e.colorPrimaryHover},"&:active":{color:e.colorPrimaryActive},[`&${n}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:e.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightLG}},"&-small":{[`${t}-affix-wrapper, ${r}-button`]:{height:e.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${t}-compact-item`]:{[`&:not(${t}-compact-last-item)`]:{[`${t}-group-addon`]:{[`${t}-search-button`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${t}-compact-first-item)`]:{[`${t},${t}-affix-wrapper`]:{borderRadius:0}},[`> ${t}-group-addon ${t}-search-button,
|
|
15
15
|
> ${t},
|
|
16
|
-
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Rr=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ut=Ne(["Input","Shared"],e=>{const t=je(e,lt(e));return[yr(t),$r(t)]},st,{resetFont:!1}),Or=Ne(["Input","Component"],e=>{const t=je(e,lt(e));return[Er(t),wr(t),Rr(t),er(t)]},st,{resetFont:!1});function Ir(e){return!!(e.addonBefore||e.addonAfter)}function zr(e){return!!(e.prefix||e.suffix||e.allowClear)}function St(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Ae(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=St(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=St(t,e,r),n(o);return}n(o)}}function Kt(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var qt=B.forwardRef(function(e,t){var n,r,o,l=e.inputElement,i=e.children,c=e.prefixCls,f=e.prefix,s=e.suffix,u=e.addonBefore,g=e.addonAfter,d=e.className,O=e.style,C=e.disabled,x=e.readOnly,_=e.focused,S=e.triggerFocus,E=e.allowClear,V=e.value,T=e.handleReset,y=e.hidden,m=e.classes,p=e.classNames,U=e.dataAttrs,H=e.styles,R=e.components,P=e.onClear,k=i??l,$=R?.affixWrapper||"span",w=R?.groupWrapper||"span",I=R?.wrapper||"span",b=R?.groupAddon||"span",A=a.useRef(null),h=function(K){var z;(z=A.current)!==null&&z!==void 0&&z.contains(K.target)&&S?.()},ee=zr(e),J=a.cloneElement(k,{value:V,className:W((n=k.props)===null||n===void 0?void 0:n.className,!ee&&p?.variant)||null}),te=a.useRef(null);if(B.useImperativeHandle(t,function(){return{nativeElement:te.current||A.current}}),ee){var F=null;if(E){var X=!C&&!x&&V,fe="".concat(c,"-clear-icon"),de=tt(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"✖";F=B.createElement("button",{type:"button",tabIndex:-1,onClick:function(K){T?.(K),P?.()},onMouseDown:function(K){return K.preventDefault()},className:W(fe,ge(ge({},"".concat(fe,"-hidden"),!X),"".concat(fe,"-has-suffix"),!!s))},de)}var Q="".concat(c,"-affix-wrapper"),me=W(Q,ge(ge(ge(ge(ge({},"".concat(c,"-disabled"),C),"".concat(Q,"-disabled"),C),"".concat(Q,"-focused"),_),"".concat(Q,"-readonly"),x),"".concat(Q,"-input-with-clear-btn"),s&&E&&V),m?.affixWrapper,p?.affixWrapper,p?.variant),Y=(s||E)&&B.createElement("span",{className:W("".concat(c,"-suffix"),p?.suffix),style:H?.suffix},F,s);J=B.createElement($,we({className:me,style:H?.affixWrapper,onClick:h},U?.affixWrapper,{ref:A}),f&&B.createElement("span",{className:W("".concat(c,"-prefix"),p?.prefix),style:H?.prefix},f),J,Y)}if(Ir(e)){var le="".concat(c,"-group"),Z="".concat(le,"-addon"),ne="".concat(le,"-wrapper"),q=W("".concat(c,"-wrapper"),le,m?.wrapper,p?.wrapper),ae=W(ne,ge({},"".concat(ne,"-disabled"),C),m?.group,p?.groupWrapper);J=B.createElement(w,{className:ae,ref:te},B.createElement(I,{className:q},u&&B.createElement(b,{className:Z},u),J,g&&B.createElement(b,{className:Z},g)))}return B.cloneElement(J,{className:W((r=J.props)===null||r===void 0?void 0:r.className,d)||null,style:ce(ce({},(o=J.props)===null||o===void 0?void 0:o.style),O),hidden:y})}),jr=["show"];function Xt(e,t){return a.useMemo(function(){var n={};t&&(n.show=tt(t)==="object"&&t.formatter?t.formatter:!!t),n=ce(ce({},n),e);var r=n,o=r.show,l=_e(r,jr);return ce(ce({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(i){return i.length}})},[e,t])}var Br=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Tr=a.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,l=e.onBlur,i=e.onPressEnter,c=e.onKeyDown,f=e.onKeyUp,s=e.prefixCls,u=s===void 0?"rc-input":s,g=e.disabled,d=e.htmlSize,O=e.className,C=e.maxLength,x=e.suffix,_=e.showCount,S=e.count,E=e.type,V=E===void 0?"text":E,T=e.classes,y=e.classNames,m=e.styles,p=e.onCompositionStart,U=e.onCompositionEnd,H=_e(e,Br),R=a.useState(!1),P=he(R,2),k=P[0],$=P[1],w=a.useRef(!1),I=a.useRef(!1),b=a.useRef(null),A=a.useRef(null),h=function(j){b.current&&Kt(b.current,j)},ee=ze(e.defaultValue,{value:e.value}),J=he(ee,2),te=J[0],F=J[1],X=te==null?"":String(te),fe=a.useState(null),de=he(fe,2),Q=de[0],me=de[1],Y=Xt(S,_),le=Y.max||C,Z=Y.strategy(X),ne=!!le&&Z>le;a.useImperativeHandle(t,function(){var G;return{focus:h,blur:function(){var re;(re=b.current)===null||re===void 0||re.blur()},setSelectionRange:function(re,$e,xe){var ve;(ve=b.current)===null||ve===void 0||ve.setSelectionRange(re,$e,xe)},select:function(){var re;(re=b.current)===null||re===void 0||re.select()},input:b.current,nativeElement:((G=A.current)===null||G===void 0?void 0:G.nativeElement)||b.current}}),a.useEffect(function(){I.current&&(I.current=!1),$(function(G){return G&&g?!1:G})},[g]);var q=function(j,re,$e){var xe=re;if(!w.current&&Y.exceedFormatter&&Y.max&&Y.strategy(re)>Y.max){if(xe=Y.exceedFormatter(re,{max:Y.max}),re!==xe){var ve,be;me([((ve=b.current)===null||ve===void 0?void 0:ve.selectionStart)||0,((be=b.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;F(xe),b.current&&Ae(b.current,j,r,xe)};a.useEffect(function(){if(Q){var G;(G=b.current)===null||G===void 0||G.setSelectionRange.apply(G,Me(Q))}},[Q]);var ae=function(j){q(j,j.target.value,{source:"change"})},ue=function(j){w.current=!1,q(j,j.currentTarget.value,{source:"compositionEnd"}),U?.(j)},K=function(j){i&&j.key==="Enter"&&!I.current&&(I.current=!0,i(j)),c?.(j)},z=function(j){j.key==="Enter"&&(I.current=!1),f?.(j)},M=function(j){$(!0),o?.(j)},D=function(j){I.current&&(I.current=!1),$(!1),l?.(j)},se=function(j){F(""),h(),b.current&&Ae(b.current,j,r)},Oe=ne&&"".concat(u,"-out-of-range"),Re=function(){var j=rt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return B.createElement("input",we({autoComplete:n},j,{onChange:ae,onFocus:M,onBlur:D,onKeyDown:K,onKeyUp:z,className:W(u,ge({},"".concat(u,"-disabled"),g),y?.input),style:m?.input,ref:b,size:d,type:V,onCompositionStart:function($e){w.current=!0,p?.($e)},onCompositionEnd:ue}))},Ie=function(){var j=Number(le)>0;if(x||Y.show){var re=Y.showFormatter?Y.showFormatter({value:X,count:Z,maxLength:le}):"".concat(Z).concat(j?" / ".concat(le):"");return B.createElement(B.Fragment,null,Y.show&&B.createElement("span",{className:W("".concat(u,"-show-count-suffix"),ge({},"".concat(u,"-show-count-has-suffix"),!!x),y?.count),style:ce({},m?.count)},re),x)}return null};return B.createElement(qt,we({},H,{prefixCls:u,className:W(O,Oe),handleReset:se,value:X,focused:k,triggerFocus:h,suffix:Ie(),disabled:g,classes:T,classNames:y,styles:m,ref:A}),Re())});const Yt=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:B.createElement(rr,null)}),t};function Ar(e,t){const n=a.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,l,i,c;!((o=e.current)===null||o===void 0)&&o.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((c=e.current)===null||c===void 0||c.input.removeAttribute("value"))}))};return a.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Nr(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var _r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vn=a.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:l,disabled:i,onBlur:c,onFocus:f,suffix:s,allowClear:u,addonAfter:g,addonBefore:d,className:O,style:C,styles:x,rootClassName:_,onChange:S,classNames:E,variant:V}=e,T=_r(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:y,direction:m,allowClear:p,autoComplete:U,className:H,style:R,classNames:P,styles:k}=nt("input"),$=y("input",n),w=a.useRef(null),I=It($),[b,A,h]=Ut($,_),[ee]=Or($,I),{compactSize:J,compactItemClassnames:te}=zt($,m),F=jt(D=>{var se;return(se=l??J)!==null&&se!==void 0?se:D}),X=B.useContext(Bt),fe=i??X,{status:de,hasFeedback:Q,feedbackIcon:me}=a.useContext(Tt),Y=Nt(de,o),le=Nr(e)||!!Q;a.useRef(le);const Z=Ar(w,!0),ne=D=>{Z(),c?.(D)},q=D=>{Z(),f?.(D)},ae=D=>{Z(),S?.(D)},ue=(Q||s)&&B.createElement(B.Fragment,null,s,Q&&me),K=Yt(u??p),[z,M]=At("input",V,r);return b(ee(B.createElement(Tr,Object.assign({ref:ot(t,w),prefixCls:$,autoComplete:U},T,{disabled:fe,onBlur:ne,onFocus:q,style:Object.assign(Object.assign({},R),C),styles:Object.assign(Object.assign({},k),x),suffix:ue,allowClear:K,className:W(O,_,h,I,te,H),onChange:ae,addonBefore:d&&B.createElement(ut,{form:!0,space:!0},d),addonAfter:g&&B.createElement(ut,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},E),P),{input:W({[`${$}-sm`]:F==="small",[`${$}-lg`]:F==="large",[`${$}-rtl`]:m==="rtl"},E?.input,P.input,A),variant:W({[`${$}-${z}`]:M},et($,Y)),affixWrapper:W({[`${$}-affix-wrapper-sm`]:F==="small",[`${$}-affix-wrapper-lg`]:F==="large",[`${$}-affix-wrapper-rtl`]:m==="rtl"},A),wrapper:W({[`${$}-group-rtl`]:m==="rtl"},A),groupWrapper:W({[`${$}-group-wrapper-sm`]:F==="small",[`${$}-group-wrapper-lg`]:F==="large",[`${$}-group-wrapper-rtl`]:m==="rtl",[`${$}-group-wrapper-${z}`]:M},et(`${$}-group-wrapper`,Y,Q),A)})}))))});var Mr=`
|
|
16
|
+
${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},Rr=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Ut=Ne(["Input","Shared"],e=>{const t=je(e,lt(e));return[yr(t),$r(t)]},st,{resetFont:!1}),Or=Ne(["Input","Component"],e=>{const t=je(e,lt(e));return[Er(t),wr(t),Rr(t),er(t)]},st,{resetFont:!1});function Ir(e){return!!(e.addonBefore||e.addonAfter)}function zr(e){return!!(e.prefix||e.suffix||e.allowClear)}function St(e,t,n){var r=t.cloneNode(!0),o=Object.create(e,{target:{value:r},currentTarget:{value:r}});return r.value=n,typeof t.selectionStart=="number"&&typeof t.selectionEnd=="number"&&(r.selectionStart=t.selectionStart,r.selectionEnd=t.selectionEnd),r.setSelectionRange=function(){t.setSelectionRange.apply(t,arguments)},o}function Ae(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=St(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=St(t,e,r),n(o);return}n(o)}}function Kt(e,t){if(e){e.focus(t);var n=t||{},r=n.cursor;if(r){var o=e.value.length;switch(r){case"start":e.setSelectionRange(0,0);break;case"end":e.setSelectionRange(o,o);break;default:e.setSelectionRange(0,o)}}}}var qt=B.forwardRef(function(e,t){var n,r,o,l=e.inputElement,i=e.children,c=e.prefixCls,f=e.prefix,s=e.suffix,u=e.addonBefore,g=e.addonAfter,d=e.className,O=e.style,C=e.disabled,x=e.readOnly,_=e.focused,S=e.triggerFocus,E=e.allowClear,V=e.value,T=e.handleReset,y=e.hidden,m=e.classes,p=e.classNames,U=e.dataAttrs,H=e.styles,R=e.components,P=e.onClear,k=i??l,$=R?.affixWrapper||"span",w=R?.groupWrapper||"span",I=R?.wrapper||"span",b=R?.groupAddon||"span",A=a.useRef(null),h=function(K){var z;(z=A.current)!==null&&z!==void 0&&z.contains(K.target)&&S?.()},ee=zr(e),Z=a.cloneElement(k,{value:V,className:W((n=k.props)===null||n===void 0?void 0:n.className,!ee&&p?.variant)||null}),te=a.useRef(null);if(B.useImperativeHandle(t,function(){return{nativeElement:te.current||A.current}}),ee){var F=null;if(E){var X=!C&&!x&&V,fe="".concat(c,"-clear-icon"),de=tt(E)==="object"&&E!==null&&E!==void 0&&E.clearIcon?E.clearIcon:"✖";F=B.createElement("button",{type:"button",tabIndex:-1,onClick:function(K){T?.(K),P?.()},onMouseDown:function(K){return K.preventDefault()},className:W(fe,ge(ge({},"".concat(fe,"-hidden"),!X),"".concat(fe,"-has-suffix"),!!s))},de)}var Q="".concat(c,"-affix-wrapper"),me=W(Q,ge(ge(ge(ge(ge({},"".concat(c,"-disabled"),C),"".concat(Q,"-disabled"),C),"".concat(Q,"-focused"),_),"".concat(Q,"-readonly"),x),"".concat(Q,"-input-with-clear-btn"),s&&E&&V),m?.affixWrapper,p?.affixWrapper,p?.variant),Y=(s||E)&&B.createElement("span",{className:W("".concat(c,"-suffix"),p?.suffix),style:H?.suffix},F,s);Z=B.createElement($,we({className:me,style:H?.affixWrapper,onClick:h},U?.affixWrapper,{ref:A}),f&&B.createElement("span",{className:W("".concat(c,"-prefix"),p?.prefix),style:H?.prefix},f),Z,Y)}if(Ir(e)){var le="".concat(c,"-group"),J="".concat(le,"-addon"),ne="".concat(le,"-wrapper"),q=W("".concat(c,"-wrapper"),le,m?.wrapper,p?.wrapper),ae=W(ne,ge({},"".concat(ne,"-disabled"),C),m?.group,p?.groupWrapper);Z=B.createElement(w,{className:ae,ref:te},B.createElement(I,{className:q},u&&B.createElement(b,{className:J},u),Z,g&&B.createElement(b,{className:J},g)))}return B.cloneElement(Z,{className:W((r=Z.props)===null||r===void 0?void 0:r.className,d)||null,style:ce(ce({},(o=Z.props)===null||o===void 0?void 0:o.style),O),hidden:y})}),jr=["show"];function Xt(e,t){return a.useMemo(function(){var n={};t&&(n.show=tt(t)==="object"&&t.formatter?t.formatter:!!t),n=ce(ce({},n),e);var r=n,o=r.show,l=_e(r,jr);return ce(ce({},l),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:l.strategy||function(i){return i.length}})},[e,t])}var Br=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],Tr=a.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,l=e.onBlur,i=e.onPressEnter,c=e.onKeyDown,f=e.onKeyUp,s=e.prefixCls,u=s===void 0?"rc-input":s,g=e.disabled,d=e.htmlSize,O=e.className,C=e.maxLength,x=e.suffix,_=e.showCount,S=e.count,E=e.type,V=E===void 0?"text":E,T=e.classes,y=e.classNames,m=e.styles,p=e.onCompositionStart,U=e.onCompositionEnd,H=_e(e,Br),R=a.useState(!1),P=he(R,2),k=P[0],$=P[1],w=a.useRef(!1),I=a.useRef(!1),b=a.useRef(null),A=a.useRef(null),h=function(j){b.current&&Kt(b.current,j)},ee=ze(e.defaultValue,{value:e.value}),Z=he(ee,2),te=Z[0],F=Z[1],X=te==null?"":String(te),fe=a.useState(null),de=he(fe,2),Q=de[0],me=de[1],Y=Xt(S,_),le=Y.max||C,J=Y.strategy(X),ne=!!le&&J>le;a.useImperativeHandle(t,function(){var G;return{focus:h,blur:function(){var re;(re=b.current)===null||re===void 0||re.blur()},setSelectionRange:function(re,$e,xe){var ve;(ve=b.current)===null||ve===void 0||ve.setSelectionRange(re,$e,xe)},select:function(){var re;(re=b.current)===null||re===void 0||re.select()},input:b.current,nativeElement:((G=A.current)===null||G===void 0?void 0:G.nativeElement)||b.current}}),a.useEffect(function(){I.current&&(I.current=!1),$(function(G){return G&&g?!1:G})},[g]);var q=function(j,re,$e){var xe=re;if(!w.current&&Y.exceedFormatter&&Y.max&&Y.strategy(re)>Y.max){if(xe=Y.exceedFormatter(re,{max:Y.max}),re!==xe){var ve,be;me([((ve=b.current)===null||ve===void 0?void 0:ve.selectionStart)||0,((be=b.current)===null||be===void 0?void 0:be.selectionEnd)||0])}}else if($e.source==="compositionEnd")return;F(xe),b.current&&Ae(b.current,j,r,xe)};a.useEffect(function(){if(Q){var G;(G=b.current)===null||G===void 0||G.setSelectionRange.apply(G,Me(Q))}},[Q]);var ae=function(j){q(j,j.target.value,{source:"change"})},ue=function(j){w.current=!1,q(j,j.currentTarget.value,{source:"compositionEnd"}),U?.(j)},K=function(j){i&&j.key==="Enter"&&!I.current&&(I.current=!0,i(j)),c?.(j)},z=function(j){j.key==="Enter"&&(I.current=!1),f?.(j)},M=function(j){$(!0),o?.(j)},D=function(j){I.current&&(I.current=!1),$(!1),l?.(j)},se=function(j){F(""),h(),b.current&&Ae(b.current,j,r)},Oe=ne&&"".concat(u,"-out-of-range"),Re=function(){var j=rt(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return B.createElement("input",we({autoComplete:n},j,{onChange:ae,onFocus:M,onBlur:D,onKeyDown:K,onKeyUp:z,className:W(u,ge({},"".concat(u,"-disabled"),g),y?.input),style:m?.input,ref:b,size:d,type:V,onCompositionStart:function($e){w.current=!0,p?.($e)},onCompositionEnd:ue}))},Ie=function(){var j=Number(le)>0;if(x||Y.show){var re=Y.showFormatter?Y.showFormatter({value:X,count:J,maxLength:le}):"".concat(J).concat(j?" / ".concat(le):"");return B.createElement(B.Fragment,null,Y.show&&B.createElement("span",{className:W("".concat(u,"-show-count-suffix"),ge({},"".concat(u,"-show-count-has-suffix"),!!x),y?.count),style:ce({},m?.count)},re),x)}return null};return B.createElement(qt,we({},H,{prefixCls:u,className:W(O,Oe),handleReset:se,value:X,focused:k,triggerFocus:h,suffix:Ie(),disabled:g,classes:T,classNames:y,styles:m,ref:A}),Re())});const Yt=e=>{let t;return typeof e=="object"&&e?.clearIcon?t=e:e&&(t={clearIcon:B.createElement(rr,null)}),t};function Ar(e,t){const n=a.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,l,i,c;!((o=e.current)===null||o===void 0)&&o.input&&((l=e.current)===null||l===void 0?void 0:l.input.getAttribute("type"))==="password"&&(!((i=e.current)===null||i===void 0)&&i.input.hasAttribute("value"))&&((c=e.current)===null||c===void 0||c.input.removeAttribute("value"))}))};return a.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function Nr(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var _r=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Vn=a.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:l,disabled:i,onBlur:c,onFocus:f,suffix:s,allowClear:u,addonAfter:g,addonBefore:d,className:O,style:C,styles:x,rootClassName:_,onChange:S,classNames:E,variant:V}=e,T=_r(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:y,direction:m,allowClear:p,autoComplete:U,className:H,style:R,classNames:P,styles:k}=nt("input"),$=y("input",n),w=a.useRef(null),I=It($),[b,A,h]=Ut($,_),[ee]=Or($,I),{compactSize:Z,compactItemClassnames:te}=zt($,m),F=jt(D=>{var se;return(se=l??Z)!==null&&se!==void 0?se:D}),X=B.useContext(Bt),fe=i??X,{status:de,hasFeedback:Q,feedbackIcon:me}=a.useContext(Tt),Y=Nt(de,o),le=Nr(e)||!!Q;a.useRef(le);const J=Ar(w,!0),ne=D=>{J(),c?.(D)},q=D=>{J(),f?.(D)},ae=D=>{J(),S?.(D)},ue=(Q||s)&&B.createElement(B.Fragment,null,s,Q&&me),K=Yt(u??p),[z,M]=At("input",V,r);return b(ee(B.createElement(Tr,Object.assign({ref:ot(t,w),prefixCls:$,autoComplete:U},T,{disabled:fe,onBlur:ne,onFocus:q,style:Object.assign(Object.assign({},R),C),styles:Object.assign(Object.assign({},k),x),suffix:ue,allowClear:K,className:W(O,_,h,I,te,H),onChange:ae,addonBefore:d&&B.createElement(ut,{form:!0,space:!0},d),addonAfter:g&&B.createElement(ut,{form:!0,space:!0},g),classNames:Object.assign(Object.assign(Object.assign({},E),P),{input:W({[`${$}-sm`]:F==="small",[`${$}-lg`]:F==="large",[`${$}-rtl`]:m==="rtl"},E?.input,P.input,A),variant:W({[`${$}-${z}`]:M},et($,Y)),affixWrapper:W({[`${$}-affix-wrapper-sm`]:F==="small",[`${$}-affix-wrapper-lg`]:F==="large",[`${$}-affix-wrapper-rtl`]:m==="rtl"},A),wrapper:W({[`${$}-group-rtl`]:m==="rtl"},A),groupWrapper:W({[`${$}-group-wrapper-sm`]:F==="small",[`${$}-group-wrapper-lg`]:F==="large",[`${$}-group-wrapper-rtl`]:m==="rtl",[`${$}-group-wrapper-${z}`]:M},et(`${$}-group-wrapper`,Y,Q),A)})}))))});var Mr=`
|
|
17
17
|
min-height:0 !important;
|
|
18
18
|
max-height:none !important;
|
|
19
19
|
height:0 !important;
|
|
@@ -24,10 +24,10 @@ import{aZ as kt,x as je,A as ie,v as Ne,y as er,z as Ot,b3 as tr,a2 as B,r as a,
|
|
|
24
24
|
top:0 !important;
|
|
25
25
|
right:0 !important;
|
|
26
26
|
pointer-events: none !important;
|
|
27
|
-
`,Hr=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Fe={},pe;function Pr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Fe[n])return Fe[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=Hr.map(function(s){return"".concat(s,":").concat(r.getPropertyValue(s))}).join(";"),f={sizingStyle:c,paddingSize:l,borderSize:i,boxSizing:o};return t&&n&&(Fe[n]=f),f}function Dr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;pe||(pe=document.createElement("textarea"),pe.setAttribute("tab-index","-1"),pe.setAttribute("aria-hidden","true"),pe.setAttribute("name","hiddenTextarea"),document.body.appendChild(pe)),e.getAttribute("wrap")?pe.setAttribute("wrap",e.getAttribute("wrap")):pe.removeAttribute("wrap");var o=Pr(e,t),l=o.paddingSize,i=o.borderSize,c=o.boxSizing,f=o.sizingStyle;pe.setAttribute("style","".concat(f,";").concat(Mr)),pe.value=e.value||e.placeholder||"";var s=void 0,u=void 0,g,d=pe.scrollHeight;if(c==="border-box"?d+=i:c==="content-box"&&(d-=l),n!==null||r!==null){pe.value=" ";var O=pe.scrollHeight-l;n!==null&&(s=O*n,c==="border-box"&&(s=s+l+i),d=Math.max(s,d)),r!==null&&(u=O*r,c==="border-box"&&(u=u+l+i),g=d>u?"":"hidden",d=Math.min(u,d))}var C={height:d,overflowY:g,resize:"none"};return s&&(C.minHeight=s),u&&(C.maxHeight=u),C}var Lr=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ve=0,Ge=1,Ue=2,Wr=a.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,l=n.value,i=n.autoSize,c=n.onResize,f=n.className,s=n.style,u=n.disabled,g=n.onChange;n.onInternalAutoSize;var d=_e(n,Lr),O=ze(o,{value:l,postState:function(X){return X??""}}),C=he(O,2),x=C[0],_=C[1],S=function(X){_(X.target.value),g?.(X)},E=a.useRef();a.useImperativeHandle(t,function(){return{textArea:E.current}});var V=a.useMemo(function(){return i&&tt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),T=he(V,2),y=T[0],m=T[1],p=!!i,U=a.useState(Ue),H=he(U,2),R=H[0],P=H[1],k=a.useState(),$=he(k,2),w=$[0],I=$[1],b=function(){P(Ve)};Ee(function(){p&&b()},[l,y,m,p]),Ee(function(){if(R===Ve)P(Ge);else if(R===Ge){var F=Dr(E.current,!1,y,m);P(Ue),I(F)}},[R]);var A=a.useRef(),h=function(){ft.cancel(A.current)},ee=function(X){R===Ue&&(c?.(X),i&&(h(),A.current=ft(function(){b()})))};a.useEffect(function(){return h},[]);var
|
|
27
|
+
`,Hr=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],Fe={},pe;function Pr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&Fe[n])return Fe[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),l=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),i=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),c=Hr.map(function(s){return"".concat(s,":").concat(r.getPropertyValue(s))}).join(";"),f={sizingStyle:c,paddingSize:l,borderSize:i,boxSizing:o};return t&&n&&(Fe[n]=f),f}function Dr(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;pe||(pe=document.createElement("textarea"),pe.setAttribute("tab-index","-1"),pe.setAttribute("aria-hidden","true"),pe.setAttribute("name","hiddenTextarea"),document.body.appendChild(pe)),e.getAttribute("wrap")?pe.setAttribute("wrap",e.getAttribute("wrap")):pe.removeAttribute("wrap");var o=Pr(e,t),l=o.paddingSize,i=o.borderSize,c=o.boxSizing,f=o.sizingStyle;pe.setAttribute("style","".concat(f,";").concat(Mr)),pe.value=e.value||e.placeholder||"";var s=void 0,u=void 0,g,d=pe.scrollHeight;if(c==="border-box"?d+=i:c==="content-box"&&(d-=l),n!==null||r!==null){pe.value=" ";var O=pe.scrollHeight-l;n!==null&&(s=O*n,c==="border-box"&&(s=s+l+i),d=Math.max(s,d)),r!==null&&(u=O*r,c==="border-box"&&(u=u+l+i),g=d>u?"":"hidden",d=Math.min(u,d))}var C={height:d,overflowY:g,resize:"none"};return s&&(C.minHeight=s),u&&(C.maxHeight=u),C}var Lr=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ve=0,Ge=1,Ue=2,Wr=a.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,l=n.value,i=n.autoSize,c=n.onResize,f=n.className,s=n.style,u=n.disabled,g=n.onChange;n.onInternalAutoSize;var d=_e(n,Lr),O=ze(o,{value:l,postState:function(X){return X??""}}),C=he(O,2),x=C[0],_=C[1],S=function(X){_(X.target.value),g?.(X)},E=a.useRef();a.useImperativeHandle(t,function(){return{textArea:E.current}});var V=a.useMemo(function(){return i&&tt(i)==="object"?[i.minRows,i.maxRows]:[]},[i]),T=he(V,2),y=T[0],m=T[1],p=!!i,U=a.useState(Ue),H=he(U,2),R=H[0],P=H[1],k=a.useState(),$=he(k,2),w=$[0],I=$[1],b=function(){P(Ve)};Ee(function(){p&&b()},[l,y,m,p]),Ee(function(){if(R===Ve)P(Ge);else if(R===Ge){var F=Dr(E.current,!1,y,m);P(Ue),I(F)}},[R]);var A=a.useRef(),h=function(){ft.cancel(A.current)},ee=function(X){R===Ue&&(c?.(X),i&&(h(),A.current=ft(function(){b()})))};a.useEffect(function(){return h},[]);var Z=p?w:null,te=ce(ce({},s),Z);return(R===Ve||R===Ge)&&(te.overflowY="hidden",te.overflowX="hidden"),a.createElement(_t,{onResize:ee,disabled:!(i||c)},a.createElement("textarea",we({},d,{ref:E,style:te,className:W(r,f,ge({},"".concat(r,"-disabled"),u)),disabled:u,value:x,onChange:S})))}),Fr=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Vr=B.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,l=e.onFocus,i=e.onBlur,c=e.onChange,f=e.allowClear,s=e.maxLength,u=e.onCompositionStart,g=e.onCompositionEnd,d=e.suffix,O=e.prefixCls,C=O===void 0?"rc-textarea":O,x=e.showCount,_=e.count,S=e.className,E=e.style,V=e.disabled,T=e.hidden,y=e.classNames,m=e.styles,p=e.onResize,U=e.onClear,H=e.onPressEnter,R=e.readOnly,P=e.autoSize,k=e.onKeyDown,$=_e(e,Fr),w=ze(r,{value:o,defaultValue:r}),I=he(w,2),b=I[0],A=I[1],h=b==null?"":String(b),ee=B.useState(!1),Z=he(ee,2),te=Z[0],F=Z[1],X=B.useRef(!1),fe=B.useState(null),de=he(fe,2),Q=de[0],me=de[1],Y=a.useRef(null),le=a.useRef(null),J=function(){var L;return(L=le.current)===null||L===void 0?void 0:L.textArea},ne=function(){J().focus()};a.useImperativeHandle(t,function(){var oe;return{resizableTextArea:le.current,focus:ne,blur:function(){J().blur()},nativeElement:((oe=Y.current)===null||oe===void 0?void 0:oe.nativeElement)||J()}}),a.useEffect(function(){F(function(oe){return!V&&oe})},[V]);var q=B.useState(null),ae=he(q,2),ue=ae[0],K=ae[1];B.useEffect(function(){if(ue){var oe;(oe=J()).setSelectionRange.apply(oe,Me(ue))}},[ue]);var z=Xt(_,x),M=(n=z.max)!==null&&n!==void 0?n:s,D=Number(M)>0,se=z.strategy(h),Oe=!!M&&se>M,Re=function(L,ye){var v=ye;!X.current&&z.exceedFormatter&&z.max&&z.strategy(ye)>z.max&&(v=z.exceedFormatter(ye,{max:z.max}),ye!==v&&K([J().selectionStart||0,J().selectionEnd||0])),A(v),Ae(L.currentTarget,L,c,v)},Ie=function(L){X.current=!0,u?.(L)},G=function(L){X.current=!1,Re(L,L.currentTarget.value),g?.(L)},j=function(L){Re(L,L.target.value)},re=function(L){L.key==="Enter"&&H&&H(L),k?.(L)},$e=function(L){F(!0),l?.(L)},xe=function(L){F(!1),i?.(L)},ve=function(L){A(""),ne(),Ae(J(),L,c)},be=d,Se;z.show&&(z.showFormatter?Se=z.showFormatter({value:h,count:se,maxLength:M}):Se="".concat(se).concat(D?" / ".concat(M):""),be=B.createElement(B.Fragment,null,be,B.createElement("span",{className:W("".concat(C,"-data-count"),y?.count),style:m?.count},Se)));var De=function(L){var ye;p?.(L),(ye=J())!==null&&ye!==void 0&&ye.style.height&&me(!0)},Le=!P&&!x&&!f;return B.createElement(qt,{ref:Y,value:h,allowClear:f,handleReset:ve,suffix:be,prefixCls:C,classNames:ce(ce({},y),{},{affixWrapper:W(y?.affixWrapper,ge(ge({},"".concat(C,"-show-count"),x),"".concat(C,"-textarea-allow-clear"),f))}),disabled:V,focused:te,className:W(S,Oe&&"".concat(C,"-out-of-range")),style:ce(ce({},E),Q&&!Le?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Se=="string"?Se:void 0}},hidden:T,readOnly:R,onClear:U},B.createElement(Wr,we({},$,{autoSize:P,maxLength:s,onKeyDown:re,onChange:j,onFocus:$e,onBlur:xe,onCompositionStart:Ie,onCompositionEnd:G,className:W(y?.textarea),style:ce(ce({},m?.textarea),{},{resize:E?.resize}),disabled:V,prefixCls:C,onResize:De,ref:le,readOnly:R})))});const Gr=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
|
|
28
28
|
&-allow-clear > ${t},
|
|
29
29
|
&-affix-wrapper${r}-has-feedback ${t}
|
|
30
|
-
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Ur=Ne(["Input","TextArea"],e=>{const t=je(e,lt(e));return Gr(t)},st,{resetFont:!1});var Kr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qr=a.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:l,disabled:i,status:c,allowClear:f,classNames:s,rootClassName:u,className:g,style:d,styles:O,variant:C,showCount:x,onMouseDown:_,onResize:S}=e,E=Kr(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:V,direction:T,allowClear:y,autoComplete:m,className:p,style:U,classNames:H,styles:R}=nt("textArea"),P=a.useContext(Bt),k=i??P,{status:$,hasFeedback:w,feedbackIcon:I}=a.useContext(Tt),b=Nt($,c),A=a.useRef(null);a.useImperativeHandle(t,()=>{var z;return{resizableTextArea:(z=A.current)===null||z===void 0?void 0:z.resizableTextArea,focus:M=>{var D,se;Kt((se=(D=A.current)===null||D===void 0?void 0:D.resizableTextArea)===null||se===void 0?void 0:se.textArea,M)},blur:()=>{var M;return(M=A.current)===null||M===void 0?void 0:M.blur()}}});const h=V("input",r),ee=It(h),[
|
|
30
|
+
`]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},Ur=Ne(["Input","TextArea"],e=>{const t=je(e,lt(e));return Gr(t)},st,{resetFont:!1});var Kr=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const qr=a.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:l,disabled:i,status:c,allowClear:f,classNames:s,rootClassName:u,className:g,style:d,styles:O,variant:C,showCount:x,onMouseDown:_,onResize:S}=e,E=Kr(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:V,direction:T,allowClear:y,autoComplete:m,className:p,style:U,classNames:H,styles:R}=nt("textArea"),P=a.useContext(Bt),k=i??P,{status:$,hasFeedback:w,feedbackIcon:I}=a.useContext(Tt),b=Nt($,c),A=a.useRef(null);a.useImperativeHandle(t,()=>{var z;return{resizableTextArea:(z=A.current)===null||z===void 0?void 0:z.resizableTextArea,focus:M=>{var D,se;Kt((se=(D=A.current)===null||D===void 0?void 0:D.resizableTextArea)===null||se===void 0?void 0:se.textArea,M)},blur:()=>{var M;return(M=A.current)===null||M===void 0?void 0:M.blur()}}});const h=V("input",r),ee=It(h),[Z,te,F]=Ut(h,u),[X]=Ur(h,ee),{compactSize:fe,compactItemClassnames:de}=zt(h,T),Q=jt(z=>{var M;return(M=l??fe)!==null&&M!==void 0?M:z}),[me,Y]=At("textArea",C,o),le=Yt(f??y),[J,ne]=a.useState(!1),[q,ae]=a.useState(!1),ue=z=>{ne(!0),_?.(z);const M=()=>{ne(!1),document.removeEventListener("mouseup",M)};document.addEventListener("mouseup",M)},K=z=>{var M,D;if(S?.(z),J&&typeof getComputedStyle=="function"){const se=(D=(M=A.current)===null||M===void 0?void 0:M.nativeElement)===null||D===void 0?void 0:D.querySelector("textarea");se&&getComputedStyle(se).resize==="both"&&ae(!0)}};return Z(X(a.createElement(Vr,Object.assign({autoComplete:m},E,{style:Object.assign(Object.assign({},U),d),styles:Object.assign(Object.assign({},R),O),disabled:k,allowClear:le,className:W(F,ee,g,u,de,p,q&&`${h}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},s),H),{textarea:W({[`${h}-sm`]:Q==="small",[`${h}-lg`]:Q==="large"},te,s?.textarea,H.textarea,J&&`${h}-mouse-active`),variant:W({[`${h}-${me}`]:Y},et(h,b)),affixWrapper:W(`${h}-textarea-affix-wrapper`,{[`${h}-affix-wrapper-rtl`]:T==="rtl",[`${h}-affix-wrapper-sm`]:Q==="small",[`${h}-affix-wrapper-lg`]:Q==="large",[`${h}-textarea-show-count`]:x||((n=e.count)===null||n===void 0?void 0:n.show)},te)}),prefixCls:h,suffix:w&&a.createElement("span",{className:`${h}-textarea-suffix`},I),showCount:x,ref:A,onResize:K,onMouseDown:ue}))))}),Xr=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];var Yr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"},Jr=function(t,n){return a.createElement(at,we({},t,{ref:n,icon:Yr}))},Zr=a.forwardRef(Jr),Qr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 170h-60c-4.4 0-8 3.6-8 8v518H310v-73c0-6.7-7.8-10.5-13-6.3l-141.9 112a8 8 0 000 12.6l141.9 112c5.3 4.2 13 .4 13-6.3v-75h498c35.3 0 64-28.7 64-64V178c0-4.4-3.6-8-8-8z"}}]},name:"enter",theme:"outlined"},kr=function(t,n){return a.createElement(at,we({},t,{ref:n,icon:Qr}))},en=a.forwardRef(kr);const tn=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:l}=r;return{marginBottom:o,color:n,fontWeight:l,fontSize:e,lineHeight:t}},rn=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
|
|
31
31
|
h${r}&,
|
|
32
32
|
div&-h${r},
|
|
33
33
|
div&-h${r} > textarea,
|
|
@@ -43,5 +43,5 @@ import{aZ as kt,x as je,A as ie,v as Ne,y as er,z as Ot,b3 as tr,a2 as B,r as a,
|
|
|
43
43
|
${t}-collapse,
|
|
44
44
|
${t}-edit,
|
|
45
45
|
${t}-copy
|
|
46
|
-
`]:Object.assign(Object.assign({},Mt(e)),{marginInlineStart:e.marginXXS})}),an(e)),ln(e)),sn()),{"&-rtl":{direction:"rtl"}})}},dn=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Zt=Ne("Typography",cn,dn),un=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:l,maxLength:i,autoSize:c=!0,value:f,onSave:s,onCancel:u,onEnd:g,component:d,enterIcon:O=a.createElement(en,null)}=e,C=a.useRef(null),x=a.useRef(!1),_=a.useRef(null),[S,E]=a.useState(f);a.useEffect(()=>{E(f)},[f]),a.useEffect(()=>{var w;if(!((w=C.current)===null||w===void 0)&&w.resizableTextArea){const{textArea:I}=C.current.resizableTextArea;I.focus();const{length:b}=I.value;I.setSelectionRange(b,b)}},[]);const V=({target:w})=>{E(w.value.replace(/[\n\r]/g,""))},T=()=>{x.current=!0},y=()=>{x.current=!1},m=({keyCode:w})=>{x.current||(_.current=w)},p=()=>{s(S.trim())},U=({keyCode:w,ctrlKey:I,altKey:b,metaKey:A,shiftKey:h})=>{_.current!==w||x.current||I||b||A||h||(w===pt.ENTER?(p(),g?.()):w===pt.ESC&&u())},H=()=>{p()},[R,P,k]=Zt(t),$=W(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${d}`]:!!d},r,P,k);return R(a.createElement("div",{className:$,style:o},a.createElement(qr,{ref:C,maxLength:i,value:S,onChange:V,onKeyDown:m,onKeyUp:U,onCompositionStart:T,onCompositionEnd:y,onBlur:H,"aria-label":n,rows:1,autoSize:c}),O!==null?or(O,{className:`${t}-edit-content-confirm`}):null))};var Ke,yt;function fn(){return yt||(yt=1,Ke=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Ke}var qe,Ct;function pn(){if(Ct)return qe;Ct=1;var e=fn(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,i)}function o(l,i){var c,f,s,u,g,d,O=!1;i||(i={}),c=i.debug||!1;try{s=e(),u=document.createRange(),g=document.getSelection(),d=document.createElement("span"),d.textContent=l,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(x){if(x.stopPropagation(),i.format)if(x.preventDefault(),typeof x.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _=t[i.format]||t.default;window.clipboardData.setData(_,l)}else x.clipboardData.clearData(),x.clipboardData.setData(i.format,l);i.onCopy&&(x.preventDefault(),i.onCopy(x.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),g.addRange(u);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");O=!0}catch(x){c&&console.error("unable to copy using execCommand: ",x),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",l),i.onCopy&&i.onCopy(window.clipboardData),O=!0}catch(_){c&&console.error("unable to copy using clipboardData: ",_),c&&console.error("falling back to prompt"),f=r("message"in i?i.message:n),window.prompt(f,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(u):g.removeAllRanges()),d&&document.body.removeChild(d),s()}return O}return qe=o,qe}var gn=pn();const mn=ar(gn);var vn=function(e,t,n,r){function o(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function c(u){try{s(r.next(u))}catch(g){i(g)}}function f(u){try{s(r.throw(u))}catch(g){i(g)}}function s(u){u.done?l(u.value):o(u.value).then(c,f)}s((r=r.apply(e,t||[])).next())})};const bn=({copyConfig:e,children:t})=>{const[n,r]=a.useState(!1),[o,l]=a.useState(!1),i=a.useRef(null),c=()=>{i.current&&clearTimeout(i.current)},f={};e.format&&(f.format=e.format),a.useEffect(()=>c,[]);const s=ir(u=>vn(void 0,void 0,void 0,function*(){var g;u?.preventDefault(),u?.stopPropagation(),l(!0);try{const d=typeof e.text=="function"?yield e.text():e.text;mn(d||Xr(t,!0).join("")||"",f),l(!1),r(!0),c(),i.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,u)}catch(d){throw l(!1),d}}));return{copied:n,copyLoading:o,onClick:s}};function Xe(e,t){return a.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const hn=e=>{const t=a.useRef(void 0);return a.useEffect(()=>{t.current=e}),t.current},xn=(e,t,n)=>a.useMemo(()=>e===!0?{title:t??n}:a.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Sn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Jt=a.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:l,setContentRef:i,children:c,direction:f,style:s}=e,u=Sn(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:d,className:O,style:C}=nt("typography"),x=f??d,_=i?ot(t,i):t,S=g("typography",n),[E,V,T]=Zt(S),y=W(S,O,{[`${S}-rtl`]:x==="rtl"},o,l,V,T),m=Object.assign(Object.assign({},C),s);return E(a.createElement(r,Object.assign({className:y,style:m,ref:_},u),c))});var yn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Cn=function(t,n){return a.createElement(at,we({},t,{ref:n,icon:yn}))},$n=a.forwardRef(Cn);function $t(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ye(e,t,n){return e===!0||e===void 0?t:e||n&&t}function En(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const dt=e=>["string","number"].includes(typeof e),wn=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:l,tabIndex:i,onCopy:c,loading:f})=>{const s=$t(o),u=$t(l),{copied:g,copy:d}=n??{},O=t?g:d,C=Ye(s[t?1:0],O),x=typeof C=="string"?C:O;return a.createElement(it,{title:C},a.createElement("button",{type:"button",className:W(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:c,"aria-label":x,tabIndex:i},t?Ye(u[1],a.createElement(lr,null),!0):Ye(u[0],f?a.createElement(sr,null):a.createElement($n,null),!0)))},Be=a.forwardRef(({style:e,children:t},n)=>{const r=a.useRef(null);return a.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),a.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),Rn=e=>e.reduce((t,n)=>t+(dt(n)?String(n).length:1),0);function Et(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const l=e[o],c=dt(l)?String(l).length:1,f=n+c;if(f>t){const s=t-n;return r.push(String(l).slice(0,s)),r}r.push(l),n=f}return e}const Ze=0,Je=1,Qe=2,ke=3,wt=4,Te={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function On(e){const{enableMeasure:t,width:n,text:r,children:o,rows:l,expanded:i,miscDeps:c,onEllipsis:f}=e,s=a.useMemo(()=>Ht(r),[r]),u=a.useMemo(()=>Rn(s),[r]),g=a.useMemo(()=>o(s,!1),[r]),[d,O]=a.useState(null),C=a.useRef(null),x=a.useRef(null),_=a.useRef(null),S=a.useRef(null),E=a.useRef(null),[V,T]=a.useState(!1),[y,m]=a.useState(Ze),[p,U]=a.useState(0),[H,R]=a.useState(null);Ee(()=>{m(t&&n&&u?Je:Ze)},[n,r,l,t,s]),Ee(()=>{var w,I,b,A;if(y===Je){m(Qe);const h=x.current&&getComputedStyle(x.current).whiteSpace;R(h)}else if(y===Qe){const h=!!(!((w=_.current)===null||w===void 0)&&w.isExceed());m(h?ke:wt),O(h?[0,u]:null),T(h);const ee=((I=_.current)===null||I===void 0?void 0:I.getHeight())||0,J=l===1?0:((b=S.current)===null||b===void 0?void 0:b.getHeight())||0,te=((A=E.current)===null||A===void 0?void 0:A.getHeight())||0,F=Math.max(ee,J+te);U(F+1),f(h)}},[y]);const P=d?Math.ceil((d[0]+d[1])/2):0;Ee(()=>{var w;const[I,b]=d||[0,0];if(I!==b){const h=(((w=C.current)===null||w===void 0?void 0:w.getHeight())||0)>p;let ee=P;b-I===1&&(ee=h?I:b),O(h?[I,ee]:[ee,b])}},[d,P]);const k=a.useMemo(()=>{if(!t)return o(s,!1);if(y!==ke||!d||d[0]!==d[1]){const w=o(s,!1);return[wt,Ze].includes(y)?w:a.createElement("span",{style:Object.assign(Object.assign({},Te),{WebkitLineClamp:l})},w)}return o(i?s:Et(s,d[0]),V)},[i,y,d,s].concat(Me(c))),$={width:n,margin:0,padding:0,whiteSpace:H==="nowrap"?"normal":"inherit"};return a.createElement(a.Fragment,null,k,y===Qe&&a.createElement(a.Fragment,null,a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},$),Te),{WebkitLineClamp:l}),ref:_},g),a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},$),Te),{WebkitLineClamp:l-1}),ref:S},g),a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},$),Te),{WebkitLineClamp:1}),ref:E},o([],!0))),y===ke&&d&&d[0]!==d[1]&&a.createElement(Be,{style:Object.assign(Object.assign({},$),{top:400}),ref:C},o(Et(s,P),!0)),y===Je&&a.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const In=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:a.createElement(it,Object.assign({open:t?void 0:!1},r),n);var zn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function jn({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:l,italic:i},c){let f=c;function s(u,g){g&&(f=a.createElement(u,{},f))}return s("strong",o),s("u",n),s("del",r),s("code",t),s("mark",e),s("kbd",l),s("i",i),f}const Bn="...",Rt=["delete","mark","code","underline","strong","keyboard","italic"],He=a.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:l,type:i,disabled:c,children:f,ellipsis:s,editable:u,copyable:g,component:d,title:O}=e,C=zn(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:_}=a.useContext(cr),[S]=dr("Text"),E=a.useRef(null),V=a.useRef(null),T=x("typography",r),y=rt(C,Rt),[m,p]=Xe(u),[U,H]=ze(!1,{value:p.editing}),{triggerType:R=["icon"]}=p,P=v=>{var N;v&&((N=p.onStart)===null||N===void 0||N.call(p)),H(v)},k=hn(U);Ee(()=>{var v;!U&&k&&((v=V.current)===null||v===void 0||v.focus())},[U]);const $=v=>{v?.preventDefault(),P(!0)},w=v=>{var N;(N=p.onChange)===null||N===void 0||N.call(p,v),P(!1)},I=()=>{var v;(v=p.onCancel)===null||v===void 0||v.call(p),P(!1)},[b,A]=Xe(g),{copied:h,copyLoading:ee,onClick:J}=bn({copyConfig:A,children:f}),[te,F]=a.useState(!1),[X,fe]=a.useState(!1),[de,Q]=a.useState(!1),[me,Y]=a.useState(!1),[le,Z]=a.useState(!0),[ne,q]=Xe(s,{expandable:!1,symbol:v=>v?S?.collapse:S?.expand}),[ae,ue]=ze(q.defaultExpanded||!1,{value:q.expanded}),K=ne&&(!ae||q.expandable==="collapsible"),{rows:z=1}=q,M=a.useMemo(()=>K&&(q.suffix!==void 0||q.onEllipsis||q.expandable||m||b),[K,q,m,b]);Ee(()=>{ne&&!M&&(F(gt("webkitLineClamp")),fe(gt("textOverflow")))},[M,ne]);const[D,se]=a.useState(K),Oe=a.useMemo(()=>M?!1:z===1?X:te,[M,X,te]);Ee(()=>{se(Oe&&K)},[Oe,K]);const Re=K&&(D?me:de),Ie=K&&z===1&&D,G=K&&z>1&&D,j=(v,N)=>{var Ce;ue(N.expanded),(Ce=q.onExpand)===null||Ce===void 0||Ce.call(q,v,N)},[re,$e]=a.useState(0),xe=({offsetWidth:v})=>{$e(v)},ve=v=>{var N;Q(v),de!==v&&((N=q.onEllipsis)===null||N===void 0||N.call(q,v))};a.useEffect(()=>{const v=E.current;if(ne&&D&&v){const N=En(v);me!==N&&Y(N)}},[ne,D,f,G,le,re]),a.useEffect(()=>{const v=E.current;if(typeof IntersectionObserver>"u"||!v||!D||!K)return;const N=new IntersectionObserver(()=>{Z(!!v.offsetParent)});return N.observe(v),()=>{N.disconnect()}},[D,K]);const be=xn(q.tooltip,p.text,f),Se=a.useMemo(()=>{if(!(!ne||D))return[p.text,f,O,be.title].find(dt)},[ne,D,O,be.title,Re]);if(U)return a.createElement(un,{value:(n=p.text)!==null&&n!==void 0?n:typeof f=="string"?f:"",onSave:w,onCancel:I,onEnd:p.onEnd,prefixCls:T,className:o,style:l,direction:_,component:d,maxLength:p.maxLength,autoSize:p.autoSize,enterIcon:p.enterIcon});const De=()=>{const{expandable:v,symbol:N}=q;return v?a.createElement("button",{type:"button",key:"expand",className:`${T}-${ae?"collapse":"expand"}`,onClick:Ce=>j(Ce,{expanded:!ae}),"aria-label":ae?S.collapse:S?.expand},typeof N=="function"?N(ae):N):null},Le=()=>{if(!m)return;const{icon:v,tooltip:N,tabIndex:Ce}=p,We=Ht(N)[0]||S?.edit,Qt=typeof We=="string"?We:"";return R.includes("icon")?a.createElement(it,{key:"edit",title:N===!1?"":We},a.createElement("button",{type:"button",ref:V,className:`${T}-edit`,onClick:$,"aria-label":Qt,tabIndex:Ce},v||a.createElement(Jr,{role:"button"}))):null},oe=()=>b?a.createElement(wn,Object.assign({key:"copy"},A,{prefixCls:T,copied:h,locale:S,onCopy:J,loading:ee,iconOnly:f==null})):null,L=v=>[v&&De(),Le(),oe()],ye=v=>[v&&!ae&&a.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Bn),q.suffix,L(v)];return a.createElement(_t,{onResize:xe,disabled:!K},v=>a.createElement(In,{tooltipProps:be,enableEllipsis:K,isEllipsis:Re},a.createElement(Jt,Object.assign({className:W({[`${T}-${i}`]:i,[`${T}-disabled`]:c,[`${T}-ellipsis`]:ne,[`${T}-ellipsis-single-line`]:Ie,[`${T}-ellipsis-multiple-line`]:G},o),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:G?z:void 0}),component:d,ref:ot(v,E,t),direction:_,onClick:R.includes("text")?$:void 0,"aria-label":Se?.toString(),title:O},y),a.createElement(On,{enableMeasure:K&&!D,text:f,rows:z,width:re,onEllipsis:ve,expanded:ae,miscDeps:[h,ae,ee,m,b,S].concat(Me(Rt.map(N=>e[N])))},(N,Ce)=>jn(e,a.createElement(a.Fragment,null,N.length>0&&Ce&&!ae&&Se?a.createElement("span",{key:"show-content","aria-hidden":!0},N):N,ye(Ce)))))))});var Tn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const An=a.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:l}=e,i=Tn(e,["ellipsis","rel","children","navigate"]),c=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return a.createElement(He,Object.assign({},c,{ref:t,ellipsis:!!n,component:"a"}),o)});var Nn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _n=a.forwardRef((e,t)=>{const{children:n}=e,r=Nn(e,["children"]);return a.createElement(He,Object.assign({ref:t},r,{component:"div"}),n)});var Mn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hn=(e,t)=>{const{ellipsis:n,children:r}=e,o=Mn(e,["ellipsis","children"]),l=a.useMemo(()=>n&&typeof n=="object"?rt(n,["expandable","rows"]):n,[n]);return a.createElement(He,Object.assign({ref:t},o,{ellipsis:l,component:"span"}),r)},Pn=a.forwardRef(Hn);var Dn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ln=[1,2,3,4,5],Wn=a.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=Dn(e,["level","children"]),l=Ln.includes(n)?`h${n}`:"h1";return a.createElement(He,Object.assign({ref:t},o,{component:l}),r)}),Pe=Jt;Pe.Text=Pn;Pe.Link=An;Pe.Title=Wn;Pe.Paragraph=_n;export{qt as B,Vn as I,$n as R,Pe as T,lt as a,pr as b,vr as c,hr as d,mr as e,xr as f,Gt as g,Sr as h,st as i,gr as j,br as k,Jr as l,gt as m,Dt as n,ct as o,Vt as p,Ar as q,qr as r,Kt as t,Or as u};
|
|
47
|
-
//# sourceMappingURL=index-
|
|
46
|
+
`]:Object.assign(Object.assign({},Mt(e)),{marginInlineStart:e.marginXXS})}),an(e)),ln(e)),sn()),{"&-rtl":{direction:"rtl"}})}},dn=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),Jt=Ne("Typography",cn,dn),un=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:l,maxLength:i,autoSize:c=!0,value:f,onSave:s,onCancel:u,onEnd:g,component:d,enterIcon:O=a.createElement(en,null)}=e,C=a.useRef(null),x=a.useRef(!1),_=a.useRef(null),[S,E]=a.useState(f);a.useEffect(()=>{E(f)},[f]),a.useEffect(()=>{var w;if(!((w=C.current)===null||w===void 0)&&w.resizableTextArea){const{textArea:I}=C.current.resizableTextArea;I.focus();const{length:b}=I.value;I.setSelectionRange(b,b)}},[]);const V=({target:w})=>{E(w.value.replace(/[\n\r]/g,""))},T=()=>{x.current=!0},y=()=>{x.current=!1},m=({keyCode:w})=>{x.current||(_.current=w)},p=()=>{s(S.trim())},U=({keyCode:w,ctrlKey:I,altKey:b,metaKey:A,shiftKey:h})=>{_.current!==w||x.current||I||b||A||h||(w===pt.ENTER?(p(),g?.()):w===pt.ESC&&u())},H=()=>{p()},[R,P,k]=Jt(t),$=W(t,`${t}-edit-content`,{[`${t}-rtl`]:l==="rtl",[`${t}-${d}`]:!!d},r,P,k);return R(a.createElement("div",{className:$,style:o},a.createElement(qr,{ref:C,maxLength:i,value:S,onChange:V,onKeyDown:m,onKeyUp:U,onCompositionStart:T,onCompositionEnd:y,onBlur:H,"aria-label":n,rows:1,autoSize:c}),O!==null?or(O,{className:`${t}-edit-content-confirm`}):null))};var Ke,yt;function fn(){return yt||(yt=1,Ke=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||n.forEach(function(o){e.addRange(o)}),t&&t.focus()}}),Ke}var qe,Ct;function pn(){if(Ct)return qe;Ct=1;var e=fn(),t={"text/plain":"Text","text/html":"Url",default:"Text"},n="Copy to clipboard: #{key}, Enter";function r(l){var i=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return l.replace(/#{\s*key\s*}/g,i)}function o(l,i){var c,f,s,u,g,d,O=!1;i||(i={}),c=i.debug||!1;try{s=e(),u=document.createRange(),g=document.getSelection(),d=document.createElement("span"),d.textContent=l,d.ariaHidden="true",d.style.all="unset",d.style.position="fixed",d.style.top=0,d.style.clip="rect(0, 0, 0, 0)",d.style.whiteSpace="pre",d.style.webkitUserSelect="text",d.style.MozUserSelect="text",d.style.msUserSelect="text",d.style.userSelect="text",d.addEventListener("copy",function(x){if(x.stopPropagation(),i.format)if(x.preventDefault(),typeof x.clipboardData>"u"){c&&console.warn("unable to use e.clipboardData"),c&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var _=t[i.format]||t.default;window.clipboardData.setData(_,l)}else x.clipboardData.clearData(),x.clipboardData.setData(i.format,l);i.onCopy&&(x.preventDefault(),i.onCopy(x.clipboardData))}),document.body.appendChild(d),u.selectNodeContents(d),g.addRange(u);var C=document.execCommand("copy");if(!C)throw new Error("copy command was unsuccessful");O=!0}catch(x){c&&console.error("unable to copy using execCommand: ",x),c&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(i.format||"text",l),i.onCopy&&i.onCopy(window.clipboardData),O=!0}catch(_){c&&console.error("unable to copy using clipboardData: ",_),c&&console.error("falling back to prompt"),f=r("message"in i?i.message:n),window.prompt(f,l)}}finally{g&&(typeof g.removeRange=="function"?g.removeRange(u):g.removeAllRanges()),d&&document.body.removeChild(d),s()}return O}return qe=o,qe}var gn=pn();const mn=ar(gn);var vn=function(e,t,n,r){function o(l){return l instanceof n?l:new n(function(i){i(l)})}return new(n||(n=Promise))(function(l,i){function c(u){try{s(r.next(u))}catch(g){i(g)}}function f(u){try{s(r.throw(u))}catch(g){i(g)}}function s(u){u.done?l(u.value):o(u.value).then(c,f)}s((r=r.apply(e,t||[])).next())})};const bn=({copyConfig:e,children:t})=>{const[n,r]=a.useState(!1),[o,l]=a.useState(!1),i=a.useRef(null),c=()=>{i.current&&clearTimeout(i.current)},f={};e.format&&(f.format=e.format),a.useEffect(()=>c,[]);const s=ir(u=>vn(void 0,void 0,void 0,function*(){var g;u?.preventDefault(),u?.stopPropagation(),l(!0);try{const d=typeof e.text=="function"?yield e.text():e.text;mn(d||Xr(t,!0).join("")||"",f),l(!1),r(!0),c(),i.current=setTimeout(()=>{r(!1)},3e3),(g=e.onCopy)===null||g===void 0||g.call(e,u)}catch(d){throw l(!1),d}}));return{copied:n,copyLoading:o,onClick:s}};function Xe(e,t){return a.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const hn=e=>{const t=a.useRef(void 0);return a.useEffect(()=>{t.current=e}),t.current},xn=(e,t,n)=>a.useMemo(()=>e===!0?{title:t??n}:a.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var Sn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Zt=a.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:l,setContentRef:i,children:c,direction:f,style:s}=e,u=Sn(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:g,direction:d,className:O,style:C}=nt("typography"),x=f??d,_=i?ot(t,i):t,S=g("typography",n),[E,V,T]=Jt(S),y=W(S,O,{[`${S}-rtl`]:x==="rtl"},o,l,V,T),m=Object.assign(Object.assign({},C),s);return E(a.createElement(r,Object.assign({className:y,style:m,ref:_},u),c))});var yn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 64H296c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h496v688c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8V96c0-17.7-14.3-32-32-32zM704 192H192c-17.7 0-32 14.3-32 32v530.7c0 8.5 3.4 16.6 9.4 22.6l173.3 173.3c2.2 2.2 4.7 4 7.4 5.5v1.9h4.2c3.5 1.3 7.2 2 11 2H704c17.7 0 32-14.3 32-32V224c0-17.7-14.3-32-32-32zM350 856.2L263.9 770H350v86.2zM664 888H414V746c0-22.1-17.9-40-40-40H232V264h432v624z"}}]},name:"copy",theme:"outlined"},Cn=function(t,n){return a.createElement(at,we({},t,{ref:n,icon:yn}))},$n=a.forwardRef(Cn);function $t(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function Ye(e,t,n){return e===!0||e===void 0?t:e||n&&t}function En(e){const t=document.createElement("em");e.appendChild(t);const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return e.removeChild(t),n.left>r.left||r.right>n.right||n.top>r.top||r.bottom>n.bottom}const dt=e=>["string","number"].includes(typeof e),wn=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:l,tabIndex:i,onCopy:c,loading:f})=>{const s=$t(o),u=$t(l),{copied:g,copy:d}=n??{},O=t?g:d,C=Ye(s[t?1:0],O),x=typeof C=="string"?C:O;return a.createElement(it,{title:C},a.createElement("button",{type:"button",className:W(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:c,"aria-label":x,tabIndex:i},t?Ye(u[1],a.createElement(lr,null),!0):Ye(u[0],f?a.createElement(sr,null):a.createElement($n,null),!0)))},Be=a.forwardRef(({style:e,children:t},n)=>{const r=a.useRef(null);return a.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),a.createElement("span",{"aria-hidden":!0,ref:r,style:Object.assign({position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)"},e)},t)}),Rn=e=>e.reduce((t,n)=>t+(dt(n)?String(n).length:1),0);function Et(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const l=e[o],c=dt(l)?String(l).length:1,f=n+c;if(f>t){const s=t-n;return r.push(String(l).slice(0,s)),r}r.push(l),n=f}return e}const Je=0,Ze=1,Qe=2,ke=3,wt=4,Te={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function On(e){const{enableMeasure:t,width:n,text:r,children:o,rows:l,expanded:i,miscDeps:c,onEllipsis:f}=e,s=a.useMemo(()=>Ht(r),[r]),u=a.useMemo(()=>Rn(s),[r]),g=a.useMemo(()=>o(s,!1),[r]),[d,O]=a.useState(null),C=a.useRef(null),x=a.useRef(null),_=a.useRef(null),S=a.useRef(null),E=a.useRef(null),[V,T]=a.useState(!1),[y,m]=a.useState(Je),[p,U]=a.useState(0),[H,R]=a.useState(null);Ee(()=>{m(t&&n&&u?Ze:Je)},[n,r,l,t,s]),Ee(()=>{var w,I,b,A;if(y===Ze){m(Qe);const h=x.current&&getComputedStyle(x.current).whiteSpace;R(h)}else if(y===Qe){const h=!!(!((w=_.current)===null||w===void 0)&&w.isExceed());m(h?ke:wt),O(h?[0,u]:null),T(h);const ee=((I=_.current)===null||I===void 0?void 0:I.getHeight())||0,Z=l===1?0:((b=S.current)===null||b===void 0?void 0:b.getHeight())||0,te=((A=E.current)===null||A===void 0?void 0:A.getHeight())||0,F=Math.max(ee,Z+te);U(F+1),f(h)}},[y]);const P=d?Math.ceil((d[0]+d[1])/2):0;Ee(()=>{var w;const[I,b]=d||[0,0];if(I!==b){const h=(((w=C.current)===null||w===void 0?void 0:w.getHeight())||0)>p;let ee=P;b-I===1&&(ee=h?I:b),O(h?[I,ee]:[ee,b])}},[d,P]);const k=a.useMemo(()=>{if(!t)return o(s,!1);if(y!==ke||!d||d[0]!==d[1]){const w=o(s,!1);return[wt,Je].includes(y)?w:a.createElement("span",{style:Object.assign(Object.assign({},Te),{WebkitLineClamp:l})},w)}return o(i?s:Et(s,d[0]),V)},[i,y,d,s].concat(Me(c))),$={width:n,margin:0,padding:0,whiteSpace:H==="nowrap"?"normal":"inherit"};return a.createElement(a.Fragment,null,k,y===Qe&&a.createElement(a.Fragment,null,a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},$),Te),{WebkitLineClamp:l}),ref:_},g),a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},$),Te),{WebkitLineClamp:l-1}),ref:S},g),a.createElement(Be,{style:Object.assign(Object.assign(Object.assign({},$),Te),{WebkitLineClamp:1}),ref:E},o([],!0))),y===ke&&d&&d[0]!==d[1]&&a.createElement(Be,{style:Object.assign(Object.assign({},$),{top:400}),ref:C},o(Et(s,P),!0)),y===Ze&&a.createElement("span",{style:{whiteSpace:"inherit"},ref:x}))}const In=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!r?.title||!e?n:a.createElement(it,Object.assign({open:t?void 0:!1},r),n);var zn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};function jn({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:l,italic:i},c){let f=c;function s(u,g){g&&(f=a.createElement(u,{},f))}return s("strong",o),s("u",n),s("del",r),s("code",t),s("mark",e),s("kbd",l),s("i",i),f}const Bn="...",Rt=["delete","mark","code","underline","strong","keyboard","italic"],He=a.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:l,type:i,disabled:c,children:f,ellipsis:s,editable:u,copyable:g,component:d,title:O}=e,C=zn(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:x,direction:_}=a.useContext(cr),[S]=dr("Text"),E=a.useRef(null),V=a.useRef(null),T=x("typography",r),y=rt(C,Rt),[m,p]=Xe(u),[U,H]=ze(!1,{value:p.editing}),{triggerType:R=["icon"]}=p,P=v=>{var N;v&&((N=p.onStart)===null||N===void 0||N.call(p)),H(v)},k=hn(U);Ee(()=>{var v;!U&&k&&((v=V.current)===null||v===void 0||v.focus())},[U]);const $=v=>{v?.preventDefault(),P(!0)},w=v=>{var N;(N=p.onChange)===null||N===void 0||N.call(p,v),P(!1)},I=()=>{var v;(v=p.onCancel)===null||v===void 0||v.call(p),P(!1)},[b,A]=Xe(g),{copied:h,copyLoading:ee,onClick:Z}=bn({copyConfig:A,children:f}),[te,F]=a.useState(!1),[X,fe]=a.useState(!1),[de,Q]=a.useState(!1),[me,Y]=a.useState(!1),[le,J]=a.useState(!0),[ne,q]=Xe(s,{expandable:!1,symbol:v=>v?S?.collapse:S?.expand}),[ae,ue]=ze(q.defaultExpanded||!1,{value:q.expanded}),K=ne&&(!ae||q.expandable==="collapsible"),{rows:z=1}=q,M=a.useMemo(()=>K&&(q.suffix!==void 0||q.onEllipsis||q.expandable||m||b),[K,q,m,b]);Ee(()=>{ne&&!M&&(F(gt("webkitLineClamp")),fe(gt("textOverflow")))},[M,ne]);const[D,se]=a.useState(K),Oe=a.useMemo(()=>M?!1:z===1?X:te,[M,X,te]);Ee(()=>{se(Oe&&K)},[Oe,K]);const Re=K&&(D?me:de),Ie=K&&z===1&&D,G=K&&z>1&&D,j=(v,N)=>{var Ce;ue(N.expanded),(Ce=q.onExpand)===null||Ce===void 0||Ce.call(q,v,N)},[re,$e]=a.useState(0),xe=({offsetWidth:v})=>{$e(v)},ve=v=>{var N;Q(v),de!==v&&((N=q.onEllipsis)===null||N===void 0||N.call(q,v))};a.useEffect(()=>{const v=E.current;if(ne&&D&&v){const N=En(v);me!==N&&Y(N)}},[ne,D,f,G,le,re]),a.useEffect(()=>{const v=E.current;if(typeof IntersectionObserver>"u"||!v||!D||!K)return;const N=new IntersectionObserver(()=>{J(!!v.offsetParent)});return N.observe(v),()=>{N.disconnect()}},[D,K]);const be=xn(q.tooltip,p.text,f),Se=a.useMemo(()=>{if(!(!ne||D))return[p.text,f,O,be.title].find(dt)},[ne,D,O,be.title,Re]);if(U)return a.createElement(un,{value:(n=p.text)!==null&&n!==void 0?n:typeof f=="string"?f:"",onSave:w,onCancel:I,onEnd:p.onEnd,prefixCls:T,className:o,style:l,direction:_,component:d,maxLength:p.maxLength,autoSize:p.autoSize,enterIcon:p.enterIcon});const De=()=>{const{expandable:v,symbol:N}=q;return v?a.createElement("button",{type:"button",key:"expand",className:`${T}-${ae?"collapse":"expand"}`,onClick:Ce=>j(Ce,{expanded:!ae}),"aria-label":ae?S.collapse:S?.expand},typeof N=="function"?N(ae):N):null},Le=()=>{if(!m)return;const{icon:v,tooltip:N,tabIndex:Ce}=p,We=Ht(N)[0]||S?.edit,Qt=typeof We=="string"?We:"";return R.includes("icon")?a.createElement(it,{key:"edit",title:N===!1?"":We},a.createElement("button",{type:"button",ref:V,className:`${T}-edit`,onClick:$,"aria-label":Qt,tabIndex:Ce},v||a.createElement(Zr,{role:"button"}))):null},oe=()=>b?a.createElement(wn,Object.assign({key:"copy"},A,{prefixCls:T,copied:h,locale:S,onCopy:Z,loading:ee,iconOnly:f==null})):null,L=v=>[v&&De(),Le(),oe()],ye=v=>[v&&!ae&&a.createElement("span",{"aria-hidden":!0,key:"ellipsis"},Bn),q.suffix,L(v)];return a.createElement(_t,{onResize:xe,disabled:!K},v=>a.createElement(In,{tooltipProps:be,enableEllipsis:K,isEllipsis:Re},a.createElement(Zt,Object.assign({className:W({[`${T}-${i}`]:i,[`${T}-disabled`]:c,[`${T}-ellipsis`]:ne,[`${T}-ellipsis-single-line`]:Ie,[`${T}-ellipsis-multiple-line`]:G},o),prefixCls:r,style:Object.assign(Object.assign({},l),{WebkitLineClamp:G?z:void 0}),component:d,ref:ot(v,E,t),direction:_,onClick:R.includes("text")?$:void 0,"aria-label":Se?.toString(),title:O},y),a.createElement(On,{enableMeasure:K&&!D,text:f,rows:z,width:re,onEllipsis:ve,expanded:ae,miscDeps:[h,ae,ee,m,b,S].concat(Me(Rt.map(N=>e[N])))},(N,Ce)=>jn(e,a.createElement(a.Fragment,null,N.length>0&&Ce&&!ae&&Se?a.createElement("span",{key:"show-content","aria-hidden":!0},N):N,ye(Ce)))))))});var Tn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const An=a.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:l}=e,i=Tn(e,["ellipsis","rel","children","navigate"]),c=Object.assign(Object.assign({},i),{rel:r===void 0&&i.target==="_blank"?"noopener noreferrer":r});return a.createElement(He,Object.assign({},c,{ref:t,ellipsis:!!n,component:"a"}),o)});var Nn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const _n=a.forwardRef((e,t)=>{const{children:n}=e,r=Nn(e,["children"]);return a.createElement(He,Object.assign({ref:t},r,{component:"div"}),n)});var Mn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Hn=(e,t)=>{const{ellipsis:n,children:r}=e,o=Mn(e,["ellipsis","children"]),l=a.useMemo(()=>n&&typeof n=="object"?rt(n,["expandable","rows"]):n,[n]);return a.createElement(He,Object.assign({ref:t},o,{ellipsis:l,component:"span"}),r)},Pn=a.forwardRef(Hn);var Dn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n};const Ln=[1,2,3,4,5],Wn=a.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=Dn(e,["level","children"]),l=Ln.includes(n)?`h${n}`:"h1";return a.createElement(He,Object.assign({ref:t},o,{component:l}),r)}),Pe=Zt;Pe.Text=Pn;Pe.Link=An;Pe.Title=Wn;Pe.Paragraph=_n;export{qt as B,Vn as I,$n as R,Pe as T,lt as a,pr as b,vr as c,hr as d,mr as e,xr as f,Gt as g,Sr as h,st as i,gr as j,br as k,Zr as l,gt as m,Dt as n,ct as o,Vt as p,Ar as q,qr as r,Kt as t,Or as u};
|
|
47
|
+
//# sourceMappingURL=index-xZubvNRw.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{r as f,D as A,n as G}from"./index-BtXc5-H2.js";import{b as I,r as S,u as _,c as J}from"./index-Cfg0ICF_.js";const k=f.createContext({});var M=function(e,l){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r<t.length;r++)l.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(n[t[r]]=e[t[r]]);return n};function R(e){return e==="auto"?"1 1 auto":typeof e=="number"?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const z=["xs","sm","md","lg","xl","xxl"],F=f.forwardRef((e,l)=>{const{getPrefixCls:n,direction:t}=f.useContext(A),{gutter:r,wrap:c}=f.useContext(k),{prefixCls:p,span:i,order:g,offset:m,push:h,pull:O,className:E,children:b,flex:x,style:C}=e,d=M(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),o=n("col",p),[N,P,y]=I(o),j={};let $={};z.forEach(a=>{let s={};const v=e[a];typeof v=="number"?s.span=v:typeof v=="object"&&(s=v||{}),delete d[a],$=Object.assign(Object.assign({},$),{[`${o}-${a}-${s.span}`]:s.span!==void 0,[`${o}-${a}-order-${s.order}`]:s.order||s.order===0,[`${o}-${a}-offset-${s.offset}`]:s.offset||s.offset===0,[`${o}-${a}-push-${s.push}`]:s.push||s.push===0,[`${o}-${a}-pull-${s.pull}`]:s.pull||s.pull===0,[`${o}-rtl`]:t==="rtl"}),s.flex&&($[`${o}-${a}-flex`]=!0,j[`--${o}-${a}-flex`]=R(s.flex))});const w=G(o,{[`${o}-${i}`]:i!==void 0,[`${o}-order-${g}`]:g,[`${o}-offset-${m}`]:m,[`${o}-push-${h}`]:h,[`${o}-pull-${O}`]:O},E,$,P,y),u={};if(r?.[0]){const a=typeof r[0]=="number"?`${r[0]/2}px`:`calc(${r[0]} / 2)`;u.paddingLeft=a,u.paddingRight=a}return x&&(u.flex=R(x),c===!1&&!u.minWidth&&(u.minWidth=0)),N(f.createElement("div",Object.assign({},d,{style:Object.assign(Object.assign(Object.assign({},u),C),j),className:w,ref:l}),b))});function B(e,l){const n=[void 0,void 0],t=Array.isArray(e)?e:[e,void 0],r=l||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return t.forEach((c,p)=>{if(typeof c=="object"&&c!==null)for(let i=0;i<S.length;i++){const g=S[i];if(r[g]&&c[g]!==void 0){n[p]=c[g];break}}else n[p]=c}),n}var L=function(e,l){var n={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&l.indexOf(t)<0&&(n[t]=e[t]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,t=Object.getOwnPropertySymbols(e);r<t.length;r++)l.indexOf(t[r])<0&&Object.prototype.propertyIsEnumerable.call(e,t[r])&&(n[t[r]]=e[t[r]]);return n};function V(e,l){const[n,t]=f.useState(typeof e=="string"?e:""),r=()=>{if(typeof e=="string"&&t(e),typeof e=="object")for(let c=0;c<S.length;c++){const p=S[c];if(!l||!l[p])continue;const i=e[p];if(i!==void 0){t(i);return}}};return f.useEffect(()=>{r()},[JSON.stringify(e),l]),n}const H=f.forwardRef((e,l)=>{const{prefixCls:n,justify:t,align:r,className:c,style:p,children:i,gutter:g=0,wrap:m}=e,h=L(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:O,direction:E}=f.useContext(A),b=_(!0,null),x=V(r,b),C=V(t,b),d=O("row",n),[o,N,P]=J(d),y=B(g,b),j=G(d,{[`${d}-no-wrap`]:m===!1,[`${d}-${C}`]:C,[`${d}-${x}`]:x,[`${d}-rtl`]:E==="rtl"},c,N,P),$={};if(y?.[0]){const s=typeof y[0]=="number"?`${y[0]/-2}px`:`calc(${y[0]} / -2)`;$.marginLeft=s,$.marginRight=s}const[w,u]=y;$.rowGap=u;const a=f.useMemo(()=>({gutter:[w,u],wrap:m}),[w,u,m]);return o(f.createElement(k.Provider,{value:a},f.createElement("div",Object.assign({},h,{className:j,style:Object.assign(Object.assign({},$),p),ref:l}),i)))});export{F as C,H as R};
|
|
2
|
+
//# sourceMappingURL=row-DaMDSIar.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import{r as o,v as He,aa as dt,
|
|
1
|
+
import{r as o,v as He,aa as dt,bM as qe,x as Xe,z as $e,A as ie,bN as Se,E as xe,af as Ne,a9 as Q,a5 as mt,n as X,bO as ft,K as gt,ac as pt,J as bt,bP as ht,bQ as yt,b7 as vt,bR as Ct,bS as Ke,bT as J,bU as $t,bV as St,a6 as xt,H as ue,m as Fe,bW as Et,t as wt,ba as It,bw as Me,bX as Ot,k as Ge,I as Pt,_ as Ue,aD as jt,Y as Qe,a$ as Nt,aN as Ft,be as Ye,aZ as Mt,bf as Ze,ao as _t,ag as Je,bY as et,D as Ee,bZ as kt,bo as Rt,b_ as Tt,bk as Lt,b$ as At,bu as Wt,ae as Dt,c0 as Vt,c1 as zt,i as Bt,b6 as Ht,p as le,a4 as _e,o as qt,c2 as Ce,aK as Xt,F as Kt,aS as Gt,$ as Ut,U as Qt,u as Yt,bK as Zt,a as ke,Q as Re}from"./index-BtXc5-H2.js";import{a as tt,g as rt,t as he,b as Jt}from"./index-CZXbP5HB.js";import{C as nt,R as er}from"./row-DaMDSIar.js";import{u as tr}from"./errorCodeTranslator-D5vahyqQ.js";function rr(e){return e==null?null:typeof e=="object"&&!o.isValidElement(e)?e:{title:e}}function de(e){const[t,r]=o.useState(e);return o.useEffect(()=>{const n=setTimeout(()=>{r(e)},e.length?0:10);return()=>{clearTimeout(n)}},[e]),t}const nr=e=>{const{componentCls:t}=e,r=`${t}-show-help`,n=`${t}-show-help-item`;return{[r]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[n]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
2
2
|
opacity ${e.motionDurationFast} ${e.motionEaseInOut},
|
|
3
|
-
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},or=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ie(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),
|
|
3
|
+
transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${n}-appear, &${n}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${n}-leave-active`]:{transform:"translateY(-5px)"}}}}},or=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${ie(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},'input[type="search"]':{boxSizing:"border-box"},'input[type="radio"], input[type="checkbox"]':{lineHeight:"normal"},'input[type="file"]':{display:"block"},'input[type="range"]':{display:"block",width:"100%"},"select[multiple], select[size]":{height:"auto"},"input[type='file']:focus,\n input[type='radio']:focus,\n input[type='checkbox']:focus":{outline:0,boxShadow:`0 0 0 ${ie(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Te=(e,t)=>{const{formItemCls:r}=e;return{[r]:{[`${r}-label > label`]:{height:t},[`${r}-control-input`]:{minHeight:t}}}},ar=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},$e(e)),or(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Te(e,e.controlHeightSM)),"&-large":Object.assign({},Te(e,e.controlHeightLG))})}},ir=e=>{const{formItemCls:t,iconCls:r,rootPrefixCls:n,antCls:a,labelRequiredMarkColor:s,labelColor:i,labelFontSize:l,labelHeight:u,labelColonMarginInlineStart:d,labelColonMarginInlineEnd:m,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},$e(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
4
4
|
&-hidden${a}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:u,color:i,fontSize:l,[`> ${r}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:s,fontSize:e.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"'},[`&${t}-required-mark-hidden, &${t}-required-mark-optional`]:{"&::before":{display:"none"}}},[`${t}-optional`]:{display:"inline-block",marginInlineStart:e.marginXXS,color:e.colorTextDescription,[`&${t}-required-mark-hidden`]:{display:"none"}},[`${t}-tooltip`]:{color:e.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:e.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:d,marginInlineEnd:m},[`&${t}-no-colon::after`]:{content:'"\\a0"'}}},[`${t}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${n}-col-'"]):not([class*="' ${n}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:e.controlHeight,"&-content":{flex:"auto",maxWidth:"100%",[`&:has(> ${a}-switch:only-child, > ${a}-rate:only-child)`]:{display:"flex",alignItems:"center"}}}},[t]:{"&-additional":{display:"flex",flexDirection:"column"},"&-explain, &-extra":{clear:"both",color:e.colorTextDescription,fontSize:e.fontSize,lineHeight:e.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:e.controlHeightSM,transition:`color ${e.motionDurationMid} ${e.motionEaseOut}`},"&-explain":{"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning}}},[`&-with-help ${t}-explain`]:{height:"auto",opacity:1},[`${t}-feedback-icon`]:{fontSize:e.fontSize,textAlign:"center",visibility:"visible",animationName:qe,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ae=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),sr=e=>{const{antCls:t,formItemCls:r}=e;return{[`${r}-horizontal`]:{[`${r}-label`]:{flexGrow:0},[`${r}-control`]:{flex:"1 1 0",minWidth:0},[`${r}-label[class$='-24'], ${r}-label[class*='-24 ']`]:{[`& + ${r}-control`]:{minWidth:"unset"}},[`${t}-col-24${r}-label,
|
|
5
5
|
${t}-col-xl-24${r}-label`]:ae(e)}}},lr=e=>{const{componentCls:t,formItemCls:r,inlineItemMarginBottom:n}=e;return{[`${t}-inline`]:{display:"flex",flexWrap:"wrap",[`${r}-inline`]:{flex:"none",marginInlineEnd:e.margin,marginBottom:n,"&-row":{flexWrap:"nowrap"},[`> ${r}-label,
|
|
6
6
|
> ${r}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${r}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${r}-has-feedback`]:{display:"inline-block"}}}}},cr=e=>{const{componentCls:t,formItemCls:r,rootPrefixCls:n}=e;return{[`${r} ${r}-label`]:ae(e),[`${t}:not(${t}-inline)`]:{[r]:{flexWrap:"wrap",[`${r}-label, ${r}-control`]:{[`&:not([class*=" ${n}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},ur=e=>{const{componentCls:t,formItemCls:r,antCls:n}=e;return{[`${r}-vertical`]:{[`${r}-row`]:{flexDirection:"column"},[`${r}-label > label`]:{height:"auto"},[`${r}-control`]:{width:"100%"},[`${r}-label,
|
|
7
7
|
${n}-col-24${r}-label,
|
|
8
|
-
${n}-col-xl-24${r}-label`]:ae(e)},[`@media (max-width: ${ie(e.screenXSMax)})`]:[cr(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:ae(e)}}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:ae(e)}}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:ae(e)}}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:ae(e)}}}}},dr=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),ot=(e,t)=>Xe(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),we=He("Form",(e,{rootPrefixCls:t})=>{const r=ot(e,t);return[ar(r),ir(r),nr(r),sr(r),lr(r),ur(r),dt(r),qe]},dr,{order:-1e3}),Te=[];function ye(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const at=({help:e,helpStatus:t,errors:r=Te,warnings:n=Te,className:a,fieldId:s,onVisibleChanged:i})=>{const{prefixCls:l}=o.useContext(Se),u=`${l}-item-explain`,d=xe(l),[m,f,v]=we(l,d),E=o.useMemo(()=>Ne(l),[l]),$=de(r),C=de(n),b=o.useMemo(()=>e!=null?[ye(e,"help",t)]:[].concat(Q($.map((p,c)=>ye(p,"error","error",c))),Q(C.map((p,c)=>ye(p,"warning","warning",c)))),[e,t,$,C]),h=o.useMemo(()=>{const p={};return b.forEach(({key:c})=>{p[c]=(p[c]||0)+1}),b.map((c,S)=>Object.assign(Object.assign({},c),{key:p[c.key]>1?`${c.key}-fallback-${S}`:c.key}))},[b]),y={};return s&&(y.id=`${s}_help`),m(o.createElement(mt,{motionDeadline:E.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:i},p=>{const{className:c,style:S}=p;return o.createElement("div",Object.assign({},y,{className:X(u,c,v,d,a,f),style:S}),o.createElement(ft,Object.assign({keys:h},Ne(l),{motionName:`${l}-show-help-item`,component:!1}),w=>{const{key:O,error:I,errorStatus:x,className:g,style:N}=w;return o.createElement("div",{key:O,className:X(g,{[`${u}-${x}`]:x}),style:N},I)}))}))};var mr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const fr=(e,t)=>{const r=o.useContext(gt),{getPrefixCls:n,direction:a,requiredMark:s,colon:i,scrollToFirstError:l,className:u,style:d}=pt("form"),{prefixCls:m,className:f,rootClassName:v,size:E,disabled:$=r,form:C,colon:b,labelAlign:h,labelWrap:y,labelCol:p,wrapperCol:c,hideRequiredMark:S,layout:w="horizontal",scrollToFirstError:O,requiredMark:I,onFinishFailed:x,name:g,style:N,feedbackIcons:B,variant:W}=e,M=mr(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),_=bt(E),R=o.useContext(ht),z=o.useMemo(()=>I!==void 0?I:S?!1:s!==void 0?s:!0,[S,I,s]),D=b??i,P=n("form",m),k=xe(P),[F,H,q]=we(P,k),Y=X(P,`${P}-${w}`,{[`${P}-hide-required-mark`]:z===!1,[`${P}-rtl`]:a==="rtl",[`${P}-${_}`]:_},q,k,H,u,f,v),[G]=tt(C),{__INTERNAL__:K}=G;K.name=g;const j=o.useMemo(()=>({name:g,labelAlign:h,labelCol:p,labelWrap:y,wrapperCol:c,layout:w,colon:D,requiredMark:z,itemRef:K.itemRef,form:G,feedbackIcons:B}),[g,h,p,c,w,D,z,G,B]),A=o.useRef(null);o.useImperativeHandle(t,()=>{var T;return Object.assign(Object.assign({},G),{nativeElement:(T=A.current)===null||T===void 0?void 0:T.nativeElement})});const L=(T,Z)=>{if(T){let ee={block:"nearest"};typeof T=="object"&&(ee=Object.assign(Object.assign({},ee),T)),G.scrollToField(Z,ee)}},U=T=>{if(x?.(T),T.errorFields.length){const Z=T.errorFields[0].name;if(O!==void 0){L(O,Z);return}l!==void 0&&L(l,Z)}};return F(o.createElement(yt.Provider,{value:W},o.createElement(vt,{disabled:$},o.createElement(Ct.Provider,{value:_},o.createElement(Ke,{validateMessages:R},o.createElement(J.Provider,{value:j},o.createElement($t,{status:!0},o.createElement(St,Object.assign({id:g},M,{name:g,onFinishFailed:U,form:G,ref:A,style:Object.assign(Object.assign({},d),N),className:Y})))))))))},gr=o.forwardRef(fr);function pr(e){if(typeof e=="function")return e;const t=xt(e);return t.length<=1?t[0]:t}const it=()=>{const{status:e,errors:t=[],warnings:r=[]}=o.useContext(ue);return{status:e,errors:t,warnings:r}};it.Context=ue;function br(e){const[t,r]=o.useState(e),n=o.useRef(null),a=o.useRef([]),s=o.useRef(!1);o.useEffect(()=>(s.current=!1,()=>{s.current=!0,Fe.cancel(n.current),n.current=null}),[]);function i(l){s.current||(n.current===null&&(a.current=[],n.current=Fe(()=>{n.current=null,r(u=>{let d=u;return a.current.forEach(m=>{d=m(d)}),d})})),a.current.push(l))}return[t,i]}function hr(){const{itemRef:e}=o.useContext(J),t=o.useRef({});function r(n,a){const s=a&&typeof a=="object"&&Et(a),i=n.join("_");return(t.current.name!==i||t.current.originRef!==s)&&(t.current.name=i,t.current.originRef=s,t.current.ref=wt(e(n),s)),t.current.ref}return r}const yr=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},vr=It(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=ot(e,t);return yr(r)});var Cr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const $r=24,Sr=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:a,children:s,errors:i,warnings:l,_internalItemRender:u,extra:d,help:m,fieldId:f,marginBottom:v,onErrorVisibleChanged:E,label:$}=e,C=`${t}-item`,b=o.useContext(J),h=o.useMemo(()=>{let M=Object.assign({},a||b.wrapperCol||{});return $===null&&!n&&!a&&b.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(R=>{const z=R?[R]:[],D=Me(b.labelCol,z),P=typeof D=="object"?D:{},k=Me(M,z),F=typeof k=="object"?k:{};"span"in P&&!("offset"in F)&&P.span<$r&&(M=Ot(M,[].concat(z,["offset"]),P.span))}),M},[a,b.wrapperCol,b.labelCol,$,n]),y=X(`${C}-control`,h.className),p=o.useMemo(()=>{const{labelCol:M,wrapperCol:_}=b;return Cr(b,["labelCol","wrapperCol"])},[b]),c=o.useRef(null),[S,w]=o.useState(0);Ge(()=>{d&&c.current?w(c.current.clientHeight):w(0)},[d]);const O=o.createElement("div",{className:`${C}-control-input`},o.createElement("div",{className:`${C}-control-input-content`},s)),I=o.useMemo(()=>({prefixCls:t,status:r}),[t,r]),x=v!==null||i.length||l.length?o.createElement(Se.Provider,{value:I},o.createElement(at,{fieldId:f,errors:i,warnings:l,help:m,helpStatus:r,className:`${C}-explain-connected`,onVisibleChanged:E})):null,g={};f&&(g.id=`${f}_extra`);const N=d?o.createElement("div",Object.assign({},g,{className:`${C}-extra`,ref:c}),d):null,B=x||N?o.createElement("div",{className:`${C}-additional`,style:v?{minHeight:v+S}:{}},x,N):null,W=u&&u.mark==="pro_table_render"&&u.render?u.render(e,{input:O,errorList:x,extra:N}):o.createElement(o.Fragment,null,O,B);return o.createElement(J.Provider,{value:p},o.createElement(nt,Object.assign({},h,{className:y}),W),o.createElement(vr,{prefixCls:t}))};var xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Er=function(t,r){return o.createElement(Pt,Ue({},t,{ref:r,icon:xr}))},wr=o.forwardRef(Er),Ir=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Or=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:a,colon:s,required:i,requiredMark:l,tooltip:u,vertical:d})=>{var m;const[f]=jt("Form"),{labelAlign:v,labelCol:E,labelWrap:$,colon:C}=o.useContext(J);if(!t)return null;const b=n||E||{},h=a||v,y=`${e}-item-label`,p=X(y,h==="left"&&`${y}-left`,b.className,{[`${y}-wrap`]:!!$});let c=t;const S=s===!0||C!==!1&&s!==!1;S&&!d&&typeof t=="string"&&t.trim()&&(c=t.replace(/[:|:]\s*$/,""));const O=rr(u);if(O){const{icon:W=o.createElement(wr,null)}=O,M=Ir(O,["icon"]),_=o.createElement(Qe,Object.assign({},M),o.cloneElement(W,{className:`${e}-item-tooltip`,title:"",onClick:R=>{R.preventDefault()},tabIndex:null}));c=o.createElement(o.Fragment,null,c,_)}const I=l==="optional",x=typeof l=="function",g=l===!1;x?c=l(c,{required:!!i}):I&&!i&&(c=o.createElement(o.Fragment,null,c,o.createElement("span",{className:`${e}-item-optional`,title:""},f?.optional||((m=Nt.Form)===null||m===void 0?void 0:m.optional))));let N;g?N="hidden":(I||x)&&(N="optional");const B=X({[`${e}-item-required`]:i,[`${e}-item-required-mark-${N}`]:N,[`${e}-item-no-colon`]:!S});return o.createElement(nt,Object.assign({},b,{className:p}),o.createElement("label",{htmlFor:r,className:B,title:typeof t=="string"?t:""},c))},Pr={success:Ze,warning:Mt,error:Ye,validating:Ft};function st({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:a,prefixCls:s,meta:i,noStyle:l,name:u}){const d=`${s}-item`,{feedbackIcons:m}=o.useContext(J),f=rt(t,r,i,null,!!n,a),{isFormItemInput:v,status:E,hasFeedback:$,feedbackIcon:C,name:b}=o.useContext(ue),h=o.useMemo(()=>{var y;let p;if(n){const S=n!==!0&&n.icons||m,w=f&&((y=S?.({status:f,errors:t,warnings:r}))===null||y===void 0?void 0:y[f]),O=f?Pr[f]:null;p=w!==!1&&O?o.createElement("span",{className:X(`${d}-feedback-icon`,`${d}-feedback-icon-${f}`)},w||o.createElement(O,null)):null}const c={status:f||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:p,isFormItemInput:!0,name:u};return l&&(c.status=(f??E)||"",c.isFormItemInput=v,c.hasFeedback=!!(n??$),c.feedbackIcon=n!==void 0?c.feedbackIcon:C,c.name=u??b),c},[f,n,l,v,E]);return o.createElement(ue.Provider,{value:h},e)}var jr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Nr(e){const{prefixCls:t,className:r,rootClassName:n,style:a,help:s,errors:i,warnings:l,validateStatus:u,meta:d,hasFeedback:m,hidden:f,children:v,fieldId:E,required:$,isRequired:C,onSubItemMetaChange:b,layout:h,name:y}=e,p=jr(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),c=`${t}-item`,{requiredMark:S,layout:w}=o.useContext(J),O=h||w,I=O==="vertical",x=o.useRef(null),g=de(i),N=de(l),B=s!=null,W=!!(B||i.length||l.length),M=!!x.current&&_t(x.current),[_,R]=o.useState(null);Ge(()=>{if(W&&x.current){const F=getComputedStyle(x.current);R(Number.parseInt(F.marginBottom,10))}},[W,M]);const z=F=>{F||R(null)},P=((F=!1)=>{const H=F?g:d.errors,q=F?N:d.warnings;return rt(H,q,d,"",!!m,u)})(),k=X(c,r,n,{[`${c}-with-help`]:B||g.length||N.length,[`${c}-has-feedback`]:P&&m,[`${c}-has-success`]:P==="success",[`${c}-has-warning`]:P==="warning",[`${c}-has-error`]:P==="error",[`${c}-is-validating`]:P==="validating",[`${c}-hidden`]:f,[`${c}-${O}`]:O});return o.createElement("div",{className:k,style:a,ref:x},o.createElement(tr,Object.assign({className:`${c}-row`},Je(p,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(Or,Object.assign({htmlFor:E},e,{requiredMark:S,required:$??C,prefixCls:t,vertical:I})),o.createElement(Sr,Object.assign({},e,d,{errors:g,warnings:N,prefixCls:t,status:P,help:s,marginBottom:_,onErrorVisibleChanged:z}),o.createElement(et.Provider,{value:b},o.createElement(st,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:m,validateStatus:P,name:y},v)))),!!_&&o.createElement("div",{className:`${c}-margin-offset`,style:{marginBottom:-_}}))}const Fr="__SPLIT__";function Mr(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(a=>{const s=e[a],i=t[a];return s===i||typeof s=="function"||typeof i=="function"})}const _r=o.memo(({children:e})=>e,(e,t)=>Mr(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function Ae(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function Rr(e){const{name:t,noStyle:r,className:n,dependencies:a,prefixCls:s,shouldUpdate:i,rules:l,children:u,required:d,label:m,messageVariables:f,trigger:v="onChange",validateTrigger:E,hidden:$,help:C,layout:b}=e,{getPrefixCls:h}=o.useContext(Ee),{name:y}=o.useContext(J),p=pr(u),c=typeof p=="function",S=o.useContext(et),{validateTrigger:w}=o.useContext(Rt),O=E!==void 0?E:w,I=t!=null,x=h("form",s),g=xe(x),[N,B,W]=we(x,g);kt();const M=o.useContext(Lt),_=o.useRef(null),[R,z]=br({}),[D,P]=Tt(()=>Ae()),k=j=>{const A=M?.getKey(j.name);if(P(j.destroy?Ae():j,!0),r&&C!==!1&&S){let L=j.name;if(j.destroy)L=_.current||L;else if(A!==void 0){const[U,T]=A;L=[U].concat(Q(T)),_.current=L}S(j,L)}},F=(j,A)=>{z(L=>{const U=Object.assign({},L),Z=[].concat(Q(j.name.slice(0,-1)),Q(A)).join(Fr);return j.destroy?delete U[Z]:U[Z]=j,U})},[H,q]=o.useMemo(()=>{const j=Q(D.errors),A=Q(D.warnings);return Object.values(R).forEach(L=>{j.push.apply(j,Q(L.errors||[])),A.push.apply(A,Q(L.warnings||[]))}),[j,A]},[R,D.errors,D.warnings]),Y=hr();function G(j,A,L){return r&&!$?o.createElement(st,{prefixCls:x,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:H,warnings:q,noStyle:!0,name:t},j):o.createElement(Nr,Object.assign({key:"row"},e,{className:X(n,W,g,B),prefixCls:x,fieldId:A,isRequired:L,errors:H,warnings:q,meta:D,onSubItemMetaChange:F,layout:b,name:t}),j)}if(!I&&!c&&!a)return N(G(p));let K={};return typeof m=="string"?K.label=m:t&&(K.label=String(t)),f&&(K=Object.assign(Object.assign({},K),f)),N(o.createElement(At,Object.assign({},e,{messageVariables:K,trigger:v,validateTrigger:O,onMetaChange:k}),(j,A,L)=>{const U=he(t).length&&A?A.name:[],T=Jt(U,y),Z=d!==void 0?d:!!l?.some(V=>{if(V&&typeof V=="object"&&V.required&&!V.warningOnly)return!0;if(typeof V=="function"){const ne=V(L);return ne?.required&&!ne?.warningOnly}return!1}),ee=Object.assign({},j);let se=null;if(Array.isArray(p)&&I)se=p;else if(!(c&&(!(i||a)||I))){if(!(a&&!c&&!I))if(o.isValidElement(p)){const V=Object.assign(Object.assign({},p.props),ee);if(V.id||(V.id=T),C||H.length>0||q.length>0||e.extra){const oe=[];(C||H.length>0)&&oe.push(`${T}_help`),e.extra&&oe.push(`${T}_extra`),V["aria-describedby"]=oe.join(" ")}H.length>0&&(V["aria-invalid"]="true"),Z&&(V["aria-required"]="true"),Wt(p)&&(V.ref=Y(U,p)),new Set([].concat(Q(he(v)),Q(he(O)))).forEach(oe=>{V[oe]=(...Ie)=>{var Oe,Pe,pe,je,be;(pe=ee[oe])===null||pe===void 0||(Oe=pe).call.apply(Oe,[ee].concat(Ie)),(be=(je=p.props)[oe])===null||be===void 0||(Pe=be).call.apply(Pe,[je].concat(Ie))}});const ut=[V["aria-required"],V["aria-invalid"],V["aria-describedby"]];se=o.createElement(_r,{control:ee,update:p,childProps:ut},Dt(p,V))}else c&&(i||a)&&!I?se=p(L):se=p}return G(se,T,Z)}))}const lt=Rr;lt.useStatus=it;var kr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Lr=e=>{var{prefixCls:t,children:r}=e,n=kr(e,["prefixCls","children"]);const{getPrefixCls:a}=o.useContext(Ee),s=a("form",t),i=o.useMemo(()=>({prefixCls:s,status:"error"}),[s]);return o.createElement(Vt,Object.assign({},n),(l,u,d)=>o.createElement(Se.Provider,{value:i},r(l.map(m=>Object.assign(Object.assign({},m),{fieldKey:m.key})),u,{errors:d.errors,warnings:d.warnings})))};function Tr(){const{form:e}=o.useContext(J);return e}const re=gr;re.Item=lt;re.List=Lr;re.ErrorList=at;re.useForm=tt;re.useFormInstance=Tr;re.useWatch=zt;re.Provider=Ke;re.create=()=>{};var Ar={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Wr=function(){var t=o.useRef([]),r=o.useRef(null);return o.useEffect(function(){var n=Date.now(),a=!1;t.current.forEach(function(s){if(s){a=!0;var i=s.style;i.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(r.current=Date.now())}),t.current},We=0,Dr=Ht();function Vr(){var e;return Dr?(e=We,We+=1):e="TEST_OR_SSR",e}const zr=(function(e){var t=o.useState(),r=Bt(t,2),n=r[0],a=r[1];return o.useEffect(function(){a("rc_progress_".concat(Vr()))},[]),e||n});var De=function(t){var r=t.bg,n=t.children;return o.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function Ve(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),a="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(a)})}var Br=o.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,a=e.gradientId,s=e.radius,i=e.style,l=e.ptg,u=e.strokeLinecap,d=e.strokeWidth,m=e.size,f=e.gapDegree,v=n&&le(n)==="object",E=v?"#FFF":void 0,$=m/2,C=o.createElement("circle",{className:"".concat(r,"-circle-path"),r:s,cx:$,cy:$,stroke:E,strokeLinecap:u,strokeWidth:d,opacity:l===0?0:1,style:i,ref:t});if(!v)return C;var b="".concat(a,"-conic"),h=f?"".concat(180+f/2,"deg"):"0deg",y=Ve(n,(360-f)/360),p=Ve(n,1),c="conic-gradient(from ".concat(h,", ").concat(y.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(p.join(", "),")");return o.createElement(o.Fragment,null,o.createElement("mask",{id:b},C),o.createElement("foreignObject",{x:0,y:0,width:m,height:m,mask:"url(#".concat(b,")")},o.createElement(De,{bg:S},o.createElement(De,{bg:c}))))}),ce=100,ve=function(t,r,n,a,s,i,l,u,d,m){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,v=n/100*360*((360-i)/360),E=i===0?0:{bottom:0,top:180,left:90,right:-90}[l],$=(100-a)/100*r;d==="round"&&a!==100&&($+=m/2,$>=r&&($=r-.01));var C=ce/2;return{stroke:typeof u=="string"?u:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:$+f,transform:"rotate(".concat(s+v+E,"deg)"),transformOrigin:"".concat(C,"px ").concat(C,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Hr=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ze(e){var t=e??[];return Array.isArray(t)?t:[t]}var qr=function(t){var r=_e(_e({},Ar),t),n=r.id,a=r.prefixCls,s=r.steps,i=r.strokeWidth,l=r.trailWidth,u=r.gapDegree,d=u===void 0?0:u,m=r.gapPosition,f=r.trailColor,v=r.strokeLinecap,E=r.style,$=r.className,C=r.strokeColor,b=r.percent,h=qt(r,Hr),y=ce/2,p=zr(n),c="".concat(p,"-gradient"),S=y-i/2,w=Math.PI*2*S,O=d>0?90+d/2:-90,I=w*((360-d)/360),x=le(s)==="object"?s:{count:s,gap:2},g=x.count,N=x.gap,B=ze(b),W=ze(C),M=W.find(function(F){return F&&le(F)==="object"}),_=M&&le(M)==="object",R=_?"butt":v,z=ve(w,I,0,100,O,d,m,f,R,i),D=Wr(),P=function(){var H=0;return B.map(function(q,Y){var G=W[Y]||W[W.length-1],K=ve(w,I,H,q,O,d,m,G,R,i);return H+=q,o.createElement(Br,{key:Y,color:G,ptg:q,radius:S,prefixCls:a,gradientId:c,style:K,strokeLinecap:R,strokeWidth:i,gapDegree:d,ref:function(A){D[Y]=A},size:ce})}).reverse()},k=function(){var H=Math.round(g*(B[0]/100)),q=100/g,Y=0;return new Array(g).fill(null).map(function(G,K){var j=K<=H-1?W[0]:f,A=j&&le(j)==="object"?"url(#".concat(c,")"):void 0,L=ve(w,I,Y,q,O,d,m,j,"butt",i,N);return Y+=(I-L.strokeDashoffset+N)*100/I,o.createElement("circle",{key:K,className:"".concat(a,"-circle-path"),r:S,cx:y,cy:y,stroke:A,strokeWidth:i,opacity:1,style:L,ref:function(T){D[K]=T}})})};return o.createElement("svg",Ue({className:X("".concat(a,"-circle"),$),viewBox:"0 0 ".concat(ce," ").concat(ce),style:E,id:n,role:"presentation"},h),!g&&o.createElement("circle",{className:"".concat(a,"-circle-trail"),r:S,cx:y,cy:y,stroke:f,strokeLinecap:R,strokeWidth:l||i,style:z}),g?k():P())};function te(e){return!e||e<0?0:e>100?100:e}function me({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}const Xr=({percent:e,success:t,successPercent:r})=>{const n=te(me({success:t,successPercent:r}));return[n,te(te(e)-n)]},Kr=({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||Ce.green,t||null]},ge=(e,t,r)=>{var n,a,s,i;let l=-1,u=-1;if(t==="step"){const d=r.steps,m=r.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,u=m??8):typeof e=="number"?[l,u]=[e,e]:[l=14,u=8]=Array.isArray(e)?e:[e.width,e.height],l*=d}else if(t==="line"){const d=r?.strokeWidth;typeof e=="string"||typeof e>"u"?u=d||(e==="small"?6:8):typeof e=="number"?[l,u]=[e,e]:[l=-1,u=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,u]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,u]=[e,e]:Array.isArray(e)&&(l=(a=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&a!==void 0?a:120,u=(i=(s=e[0])!==null&&s!==void 0?s:e[1])!==null&&i!==void 0?i:120));return[l,u]},Gr=3,Ur=e=>Gr/e*100,Qr=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:s,width:i=120,type:l,children:u,success:d,size:m=i,steps:f}=e,[v,E]=ge(m,"circle");let{strokeWidth:$}=e;$===void 0&&($=Math.max(Ur(v),6));const C={width:v,height:E,fontSize:v*.15+6},b=o.useMemo(()=>{if(s||s===0)return s;if(l==="dashboard")return 75},[s,l]),h=Xr(e),y=a||l==="dashboard"&&"bottom"||void 0,p=Object.prototype.toString.call(e.strokeColor)==="[object Object]",c=Kr({success:d,strokeColor:e.strokeColor}),S=X(`${t}-inner`,{[`${t}-circle-gradient`]:p}),w=o.createElement(qr,{steps:f,percent:f?h[1]:h,strokeWidth:$,trailWidth:$,strokeColor:f?c[1]:c,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:b,gapPosition:y}),O=v<=20,I=o.createElement("div",{className:S,style:C},w,!O&&u);return O?o.createElement(Qe,{title:u},I):I},fe="--progress-line-stroke-color",ct="--progress-percent",Be=e=>{const t=e?"100%":"-100%";return new Xt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Yr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},$e(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${fe})`]},height:"100%",width:`calc(1 / var(${ct}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ie(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Be(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Be(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Zr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Jr=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},en=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},tn=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),rn=He("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=Xe(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Yr(r),Zr(r),Jr(r),en(r)]},tn);var nn=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const on=e=>{let t=[];return Object.keys(e).forEach(r=>{const n=Number.parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},an=(e,t)=>{const{from:r=Ce.blue,to:n=Ce.blue,direction:a=t==="rtl"?"to left":"to right"}=e,s=nn(e,["from","to","direction"]);if(Object.keys(s).length!==0){const l=on(s),u=`linear-gradient(${a}, ${l})`;return{background:u,[fe]:u}}const i=`linear-gradient(${a}, ${r}, ${n})`;return{background:i,[fe]:i}},sn=e=>{const{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:s,strokeColor:i,strokeLinecap:l="round",children:u,trailColor:d=null,percentPosition:m,success:f}=e,{align:v,type:E}=m,$=i&&typeof i!="string"?an(i,r):{[fe]:i,background:i},C=l==="square"||l==="butt"?0:void 0,b=a??[-1,s||(a==="small"?6:8)],[h,y]=ge(b,"line",{strokeWidth:s}),p={backgroundColor:d||void 0,borderRadius:C},c=Object.assign(Object.assign({width:`${te(n)}%`,height:y,borderRadius:C},$),{[ct]:te(n)/100}),S=me(e),w={width:`${te(S)}%`,height:y,borderRadius:C,backgroundColor:f?.strokeColor},O={width:h<0?"100%":h},I=o.createElement("div",{className:`${t}-inner`,style:p},o.createElement("div",{className:X(`${t}-bg`,`${t}-bg-${E}`),style:c},E==="inner"&&u),S!==void 0&&o.createElement("div",{className:`${t}-success-bg`,style:w})),x=E==="outer"&&v==="start",g=E==="outer"&&v==="end";return E==="outer"&&v==="center"?o.createElement("div",{className:`${t}-layout-bottom`},I,u):o.createElement("div",{className:`${t}-outer`,style:O},x&&u,I,g&&u)},ln=e=>{const{size:t,steps:r,rounding:n=Math.round,percent:a=0,strokeWidth:s=8,strokeColor:i,trailColor:l=null,prefixCls:u,children:d}=e,m=n(r*(a/100)),v=t??[t==="small"?2:14,s],[E,$]=ge(v,"step",{steps:r,strokeWidth:s}),C=E/r,b=Array.from({length:r});for(let h=0;h<r;h++){const y=Array.isArray(i)?i[h]:i;b[h]=o.createElement("div",{key:h,className:X(`${u}-steps-item`,{[`${u}-steps-item-active`]:h<=m-1}),style:{backgroundColor:h<=m-1?y:l,width:C,height:$}})}return o.createElement("div",{className:`${u}-steps-outer`},b,d)};var cn=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const un=["normal","exception","active","success"],gn=o.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,steps:s,strokeColor:i,percent:l=0,size:u="default",showInfo:d=!0,type:m="line",status:f,format:v,style:E,percentPosition:$={}}=e,C=cn(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:h="outer"}=$,y=Array.isArray(i)?i[0]:i,p=typeof i=="string"||Array.isArray(i)?i:void 0,c=o.useMemo(()=>{if(y){const P=typeof y=="string"?y:Object.values(y)[0];return new Kt(P).isLight()}return!1},[i]),S=o.useMemo(()=>{var P,k;const F=me(e);return Number.parseInt(F!==void 0?(P=F??0)===null||P===void 0?void 0:P.toString():(k=l??0)===null||k===void 0?void 0:k.toString(),10)},[l,e.success,e.successPercent]),w=o.useMemo(()=>!un.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:O,direction:I,progress:x}=o.useContext(Ee),g=O("progress",r),[N,B,W]=rn(g),M=m==="line",_=M&&!s,R=o.useMemo(()=>{if(!d)return null;const P=me(e);let k;const F=v||(q=>`${q}%`),H=M&&c&&h==="inner";return h==="inner"||v||w!=="exception"&&w!=="success"?k=F(te(l),te(P)):w==="exception"?k=M?o.createElement(Ye,null):o.createElement(Gt,null):w==="success"&&(k=M?o.createElement(Ze,null):o.createElement(Ut,null)),o.createElement("span",{className:X(`${g}-text`,{[`${g}-text-bright`]:H,[`${g}-text-${b}`]:_,[`${g}-text-${h}`]:_}),title:typeof k=="string"?k:void 0},k)},[d,l,S,w,m,g,v]);let z;m==="line"?z=s?o.createElement(ln,Object.assign({},e,{strokeColor:p,prefixCls:g,steps:typeof s=="object"?s.count:s}),R):o.createElement(sn,Object.assign({},e,{strokeColor:y,prefixCls:g,direction:I,percentPosition:{align:b,type:h}}),R):(m==="circle"||m==="dashboard")&&(z=o.createElement(Qr,Object.assign({},e,{strokeColor:y,prefixCls:g,progressStatus:w}),R));const D=X(g,`${g}-status-${w}`,{[`${g}-${m==="dashboard"&&"circle"||m}`]:m!=="line",[`${g}-inline-circle`]:m==="circle"&&ge(u,"circle")[0]<=20,[`${g}-line`]:_,[`${g}-line-align-${b}`]:_,[`${g}-line-position-${h}`]:_,[`${g}-steps`]:s,[`${g}-show-info`]:d,[`${g}-${u}`]:typeof u=="string",[`${g}-rtl`]:I==="rtl"},x?.className,n,a,B,W);return N(o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},x?.style),E),className:D,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},Je(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),z))});function pn(){const e=Qt(),[t,r]=o.useState(!1),{data:n,isLoading:a,isError:s}=Yt({queryKey:ke.AUTH_STATUS,queryFn:()=>Re.getAuthStatus(),retry:!1,staleTime:0,refetchOnMount:!0,refetchOnWindowFocus:!1}),i=!s&&Zt(n),l=er({mutationFn:d=>Re.loginWithToken(d),onSuccess:()=>{e.invalidateQueries({queryKey:ke.AUTH_STATUS}),r(!1)},onError:()=>{r(!1)}});return{authenticated:i,isLoading:a,isError:s,data:n,loginWithTokenAsync:async d=>{r(!0);try{await l.mutateAsync(d)}finally{r(!1)}},isLoggingInWithToken:t}}export{re as F,gn as P,wr as R,pn as u};
|
|
9
|
-
//# sourceMappingURL=useAuth-
|
|
8
|
+
${n}-col-xl-24${r}-label`]:ae(e)},[`@media (max-width: ${ie(e.screenXSMax)})`]:[cr(e),{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-xs-24${r}-label`]:ae(e)}}}],[`@media (max-width: ${ie(e.screenSMMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-sm-24${r}-label`]:ae(e)}}},[`@media (max-width: ${ie(e.screenMDMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-md-24${r}-label`]:ae(e)}}},[`@media (max-width: ${ie(e.screenLGMax)})`]:{[t]:{[`${r}:not(${r}-horizontal)`]:{[`${n}-col-lg-24${r}-label`]:ae(e)}}}}},dr=e=>({labelRequiredMarkColor:e.colorError,labelColor:e.colorTextHeading,labelFontSize:e.fontSize,labelHeight:e.controlHeight,labelColonMarginInlineStart:e.marginXXS/2,labelColonMarginInlineEnd:e.marginXS,itemMarginBottom:e.marginLG,verticalLabelPadding:`0 0 ${e.paddingXS}px`,verticalLabelMargin:0,inlineItemMarginBottom:0}),ot=(e,t)=>Xe(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),we=He("Form",(e,{rootPrefixCls:t})=>{const r=ot(e,t);return[ar(r),ir(r),nr(r),sr(r),lr(r),ur(r),dt(r),qe]},dr,{order:-1e3}),Le=[];function ye(e,t,r,n=0){return{key:typeof e=="string"?e:`${t}-${n}`,error:e,errorStatus:r}}const at=({help:e,helpStatus:t,errors:r=Le,warnings:n=Le,className:a,fieldId:s,onVisibleChanged:i})=>{const{prefixCls:l}=o.useContext(Se),u=`${l}-item-explain`,d=xe(l),[m,f,v]=we(l,d),E=o.useMemo(()=>Ne(l),[l]),$=de(r),C=de(n),b=o.useMemo(()=>e!=null?[ye(e,"help",t)]:[].concat(Q($.map((p,c)=>ye(p,"error","error",c))),Q(C.map((p,c)=>ye(p,"warning","warning",c)))),[e,t,$,C]),h=o.useMemo(()=>{const p={};return b.forEach(({key:c})=>{p[c]=(p[c]||0)+1}),b.map((c,S)=>Object.assign(Object.assign({},c),{key:p[c.key]>1?`${c.key}-fallback-${S}`:c.key}))},[b]),y={};return s&&(y.id=`${s}_help`),m(o.createElement(mt,{motionDeadline:E.motionDeadline,motionName:`${l}-show-help`,visible:!!h.length,onVisibleChanged:i},p=>{const{className:c,style:S}=p;return o.createElement("div",Object.assign({},y,{className:X(u,c,v,d,a,f),style:S}),o.createElement(ft,Object.assign({keys:h},Ne(l),{motionName:`${l}-show-help-item`,component:!1}),w=>{const{key:O,error:I,errorStatus:x,className:g,style:N}=w;return o.createElement("div",{key:O,className:X(g,{[`${u}-${x}`]:x}),style:N},I)}))}))};var mr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const fr=(e,t)=>{const r=o.useContext(gt),{getPrefixCls:n,direction:a,requiredMark:s,colon:i,scrollToFirstError:l,className:u,style:d}=pt("form"),{prefixCls:m,className:f,rootClassName:v,size:E,disabled:$=r,form:C,colon:b,labelAlign:h,labelWrap:y,labelCol:p,wrapperCol:c,hideRequiredMark:S,layout:w="horizontal",scrollToFirstError:O,requiredMark:I,onFinishFailed:x,name:g,style:N,feedbackIcons:B,variant:W}=e,M=mr(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),_=bt(E),k=o.useContext(ht),z=o.useMemo(()=>I!==void 0?I:S?!1:s!==void 0?s:!0,[S,I,s]),D=b??i,P=n("form",m),R=xe(P),[F,H,q]=we(P,R),Y=X(P,`${P}-${w}`,{[`${P}-hide-required-mark`]:z===!1,[`${P}-rtl`]:a==="rtl",[`${P}-${_}`]:_},q,R,H,u,f,v),[G]=tt(C),{__INTERNAL__:K}=G;K.name=g;const j=o.useMemo(()=>({name:g,labelAlign:h,labelCol:p,labelWrap:y,wrapperCol:c,layout:w,colon:D,requiredMark:z,itemRef:K.itemRef,form:G,feedbackIcons:B}),[g,h,p,c,w,D,z,G,B]),A=o.useRef(null);o.useImperativeHandle(t,()=>{var L;return Object.assign(Object.assign({},G),{nativeElement:(L=A.current)===null||L===void 0?void 0:L.nativeElement})});const T=(L,Z)=>{if(L){let ee={block:"nearest"};typeof L=="object"&&(ee=Object.assign(Object.assign({},ee),L)),G.scrollToField(Z,ee)}},U=L=>{if(x?.(L),L.errorFields.length){const Z=L.errorFields[0].name;if(O!==void 0){T(O,Z);return}l!==void 0&&T(l,Z)}};return F(o.createElement(yt.Provider,{value:W},o.createElement(vt,{disabled:$},o.createElement(Ct.Provider,{value:_},o.createElement(Ke,{validateMessages:k},o.createElement(J.Provider,{value:j},o.createElement($t,{status:!0},o.createElement(St,Object.assign({id:g},M,{name:g,onFinishFailed:U,form:G,ref:A,style:Object.assign(Object.assign({},d),N),className:Y})))))))))},gr=o.forwardRef(fr);function pr(e){if(typeof e=="function")return e;const t=xt(e);return t.length<=1?t[0]:t}const it=()=>{const{status:e,errors:t=[],warnings:r=[]}=o.useContext(ue);return{status:e,errors:t,warnings:r}};it.Context=ue;function br(e){const[t,r]=o.useState(e),n=o.useRef(null),a=o.useRef([]),s=o.useRef(!1);o.useEffect(()=>(s.current=!1,()=>{s.current=!0,Fe.cancel(n.current),n.current=null}),[]);function i(l){s.current||(n.current===null&&(a.current=[],n.current=Fe(()=>{n.current=null,r(u=>{let d=u;return a.current.forEach(m=>{d=m(d)}),d})})),a.current.push(l))}return[t,i]}function hr(){const{itemRef:e}=o.useContext(J),t=o.useRef({});function r(n,a){const s=a&&typeof a=="object"&&Et(a),i=n.join("_");return(t.current.name!==i||t.current.originRef!==s)&&(t.current.name=i,t.current.originRef=s,t.current.ref=wt(e(n),s)),t.current.ref}return r}const yr=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},vr=It(["Form","item-item"],(e,{rootPrefixCls:t})=>{const r=ot(e,t);return yr(r)});var Cr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const $r=24,Sr=e=>{const{prefixCls:t,status:r,labelCol:n,wrapperCol:a,children:s,errors:i,warnings:l,_internalItemRender:u,extra:d,help:m,fieldId:f,marginBottom:v,onErrorVisibleChanged:E,label:$}=e,C=`${t}-item`,b=o.useContext(J),h=o.useMemo(()=>{let M=Object.assign({},a||b.wrapperCol||{});return $===null&&!n&&!a&&b.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(k=>{const z=k?[k]:[],D=Me(b.labelCol,z),P=typeof D=="object"?D:{},R=Me(M,z),F=typeof R=="object"?R:{};"span"in P&&!("offset"in F)&&P.span<$r&&(M=Ot(M,[].concat(z,["offset"]),P.span))}),M},[a,b.wrapperCol,b.labelCol,$,n]),y=X(`${C}-control`,h.className),p=o.useMemo(()=>{const{labelCol:M,wrapperCol:_}=b;return Cr(b,["labelCol","wrapperCol"])},[b]),c=o.useRef(null),[S,w]=o.useState(0);Ge(()=>{d&&c.current?w(c.current.clientHeight):w(0)},[d]);const O=o.createElement("div",{className:`${C}-control-input`},o.createElement("div",{className:`${C}-control-input-content`},s)),I=o.useMemo(()=>({prefixCls:t,status:r}),[t,r]),x=v!==null||i.length||l.length?o.createElement(Se.Provider,{value:I},o.createElement(at,{fieldId:f,errors:i,warnings:l,help:m,helpStatus:r,className:`${C}-explain-connected`,onVisibleChanged:E})):null,g={};f&&(g.id=`${f}_extra`);const N=d?o.createElement("div",Object.assign({},g,{className:`${C}-extra`,ref:c}),d):null,B=x||N?o.createElement("div",{className:`${C}-additional`,style:v?{minHeight:v+S}:{}},x,N):null,W=u&&u.mark==="pro_table_render"&&u.render?u.render(e,{input:O,errorList:x,extra:N}):o.createElement(o.Fragment,null,O,B);return o.createElement(J.Provider,{value:p},o.createElement(nt,Object.assign({},h,{className:y}),W),o.createElement(vr,{prefixCls:t}))};var xr={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M623.6 316.7C593.6 290.4 554 276 512 276s-81.6 14.5-111.6 40.7C369.2 344 352 380.7 352 420v7.6c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V420c0-44.1 43.1-80 96-80s96 35.9 96 80c0 31.1-22 59.6-56.1 72.7-21.2 8.1-39.2 22.3-52.1 40.9-13.1 19-19.9 41.8-19.9 64.9V620c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-22.7a48.3 48.3 0 0130.9-44.8c59-22.7 97.1-74.7 97.1-132.5.1-39.3-17.1-76-48.3-103.3zM472 732a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"question-circle",theme:"outlined"},Er=function(t,r){return o.createElement(Pt,Ue({},t,{ref:r,icon:xr}))},wr=o.forwardRef(Er),Ir=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Or=({prefixCls:e,label:t,htmlFor:r,labelCol:n,labelAlign:a,colon:s,required:i,requiredMark:l,tooltip:u,vertical:d})=>{var m;const[f]=jt("Form"),{labelAlign:v,labelCol:E,labelWrap:$,colon:C}=o.useContext(J);if(!t)return null;const b=n||E||{},h=a||v,y=`${e}-item-label`,p=X(y,h==="left"&&`${y}-left`,b.className,{[`${y}-wrap`]:!!$});let c=t;const S=s===!0||C!==!1&&s!==!1;S&&!d&&typeof t=="string"&&t.trim()&&(c=t.replace(/[:|:]\s*$/,""));const O=rr(u);if(O){const{icon:W=o.createElement(wr,null)}=O,M=Ir(O,["icon"]),_=o.createElement(Qe,Object.assign({},M),o.cloneElement(W,{className:`${e}-item-tooltip`,title:"",onClick:k=>{k.preventDefault()},tabIndex:null}));c=o.createElement(o.Fragment,null,c,_)}const I=l==="optional",x=typeof l=="function",g=l===!1;x?c=l(c,{required:!!i}):I&&!i&&(c=o.createElement(o.Fragment,null,c,o.createElement("span",{className:`${e}-item-optional`,title:""},f?.optional||((m=Nt.Form)===null||m===void 0?void 0:m.optional))));let N;g?N="hidden":(I||x)&&(N="optional");const B=X({[`${e}-item-required`]:i,[`${e}-item-required-mark-${N}`]:N,[`${e}-item-no-colon`]:!S});return o.createElement(nt,Object.assign({},b,{className:p}),o.createElement("label",{htmlFor:r,className:B,title:typeof t=="string"?t:""},c))},Pr={success:Ze,warning:Mt,error:Ye,validating:Ft};function st({children:e,errors:t,warnings:r,hasFeedback:n,validateStatus:a,prefixCls:s,meta:i,noStyle:l,name:u}){const d=`${s}-item`,{feedbackIcons:m}=o.useContext(J),f=rt(t,r,i,null,!!n,a),{isFormItemInput:v,status:E,hasFeedback:$,feedbackIcon:C,name:b}=o.useContext(ue),h=o.useMemo(()=>{var y;let p;if(n){const S=n!==!0&&n.icons||m,w=f&&((y=S?.({status:f,errors:t,warnings:r}))===null||y===void 0?void 0:y[f]),O=f?Pr[f]:null;p=w!==!1&&O?o.createElement("span",{className:X(`${d}-feedback-icon`,`${d}-feedback-icon-${f}`)},w||o.createElement(O,null)):null}const c={status:f||"",errors:t,warnings:r,hasFeedback:!!n,feedbackIcon:p,isFormItemInput:!0,name:u};return l&&(c.status=(f??E)||"",c.isFormItemInput=v,c.hasFeedback=!!(n??$),c.feedbackIcon=n!==void 0?c.feedbackIcon:C,c.name=u??b),c},[f,n,l,v,E]);return o.createElement(ue.Provider,{value:h},e)}var jr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};function Nr(e){const{prefixCls:t,className:r,rootClassName:n,style:a,help:s,errors:i,warnings:l,validateStatus:u,meta:d,hasFeedback:m,hidden:f,children:v,fieldId:E,required:$,isRequired:C,onSubItemMetaChange:b,layout:h,name:y}=e,p=jr(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),c=`${t}-item`,{requiredMark:S,layout:w}=o.useContext(J),O=h||w,I=O==="vertical",x=o.useRef(null),g=de(i),N=de(l),B=s!=null,W=!!(B||i.length||l.length),M=!!x.current&&_t(x.current),[_,k]=o.useState(null);Ge(()=>{if(W&&x.current){const F=getComputedStyle(x.current);k(Number.parseInt(F.marginBottom,10))}},[W,M]);const z=F=>{F||k(null)},P=((F=!1)=>{const H=F?g:d.errors,q=F?N:d.warnings;return rt(H,q,d,"",!!m,u)})(),R=X(c,r,n,{[`${c}-with-help`]:B||g.length||N.length,[`${c}-has-feedback`]:P&&m,[`${c}-has-success`]:P==="success",[`${c}-has-warning`]:P==="warning",[`${c}-has-error`]:P==="error",[`${c}-is-validating`]:P==="validating",[`${c}-hidden`]:f,[`${c}-${O}`]:O});return o.createElement("div",{className:R,style:a,ref:x},o.createElement(er,Object.assign({className:`${c}-row`},Je(p,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol","validateDebounce"])),o.createElement(Or,Object.assign({htmlFor:E},e,{requiredMark:S,required:$??C,prefixCls:t,vertical:I})),o.createElement(Sr,Object.assign({},e,d,{errors:g,warnings:N,prefixCls:t,status:P,help:s,marginBottom:_,onErrorVisibleChanged:z}),o.createElement(et.Provider,{value:b},o.createElement(st,{prefixCls:t,meta:d,errors:d.errors,warnings:d.warnings,hasFeedback:m,validateStatus:P,name:y},v)))),!!_&&o.createElement("div",{className:`${c}-margin-offset`,style:{marginBottom:-_}}))}const Fr="__SPLIT__";function Mr(e,t){const r=Object.keys(e),n=Object.keys(t);return r.length===n.length&&r.every(a=>{const s=e[a],i=t[a];return s===i||typeof s=="function"||typeof i=="function"})}const _r=o.memo(({children:e})=>e,(e,t)=>Mr(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((r,n)=>r===t.childProps[n]));function Ae(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function kr(e){const{name:t,noStyle:r,className:n,dependencies:a,prefixCls:s,shouldUpdate:i,rules:l,children:u,required:d,label:m,messageVariables:f,trigger:v="onChange",validateTrigger:E,hidden:$,help:C,layout:b}=e,{getPrefixCls:h}=o.useContext(Ee),{name:y}=o.useContext(J),p=pr(u),c=typeof p=="function",S=o.useContext(et),{validateTrigger:w}=o.useContext(kt),O=E!==void 0?E:w,I=t!=null,x=h("form",s),g=xe(x),[N,B,W]=we(x,g);Rt();const M=o.useContext(Tt),_=o.useRef(null),[k,z]=br({}),[D,P]=Lt(()=>Ae()),R=j=>{const A=M?.getKey(j.name);if(P(j.destroy?Ae():j,!0),r&&C!==!1&&S){let T=j.name;if(j.destroy)T=_.current||T;else if(A!==void 0){const[U,L]=A;T=[U].concat(Q(L)),_.current=T}S(j,T)}},F=(j,A)=>{z(T=>{const U=Object.assign({},T),Z=[].concat(Q(j.name.slice(0,-1)),Q(A)).join(Fr);return j.destroy?delete U[Z]:U[Z]=j,U})},[H,q]=o.useMemo(()=>{const j=Q(D.errors),A=Q(D.warnings);return Object.values(k).forEach(T=>{j.push.apply(j,Q(T.errors||[])),A.push.apply(A,Q(T.warnings||[]))}),[j,A]},[k,D.errors,D.warnings]),Y=hr();function G(j,A,T){return r&&!$?o.createElement(st,{prefixCls:x,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:D,errors:H,warnings:q,noStyle:!0,name:t},j):o.createElement(Nr,Object.assign({key:"row"},e,{className:X(n,W,g,B),prefixCls:x,fieldId:A,isRequired:T,errors:H,warnings:q,meta:D,onSubItemMetaChange:F,layout:b,name:t}),j)}if(!I&&!c&&!a)return N(G(p));let K={};return typeof m=="string"?K.label=m:t&&(K.label=String(t)),f&&(K=Object.assign(Object.assign({},K),f)),N(o.createElement(At,Object.assign({},e,{messageVariables:K,trigger:v,validateTrigger:O,onMetaChange:R}),(j,A,T)=>{const U=he(t).length&&A?A.name:[],L=Jt(U,y),Z=d!==void 0?d:!!l?.some(V=>{if(V&&typeof V=="object"&&V.required&&!V.warningOnly)return!0;if(typeof V=="function"){const ne=V(T);return ne?.required&&!ne?.warningOnly}return!1}),ee=Object.assign({},j);let se=null;if(Array.isArray(p)&&I)se=p;else if(!(c&&(!(i||a)||I))){if(!(a&&!c&&!I))if(o.isValidElement(p)){const V=Object.assign(Object.assign({},p.props),ee);if(V.id||(V.id=L),C||H.length>0||q.length>0||e.extra){const oe=[];(C||H.length>0)&&oe.push(`${L}_help`),e.extra&&oe.push(`${L}_extra`),V["aria-describedby"]=oe.join(" ")}H.length>0&&(V["aria-invalid"]="true"),Z&&(V["aria-required"]="true"),Wt(p)&&(V.ref=Y(U,p)),new Set([].concat(Q(he(v)),Q(he(O)))).forEach(oe=>{V[oe]=(...Ie)=>{var Oe,Pe,pe,je,be;(pe=ee[oe])===null||pe===void 0||(Oe=pe).call.apply(Oe,[ee].concat(Ie)),(be=(je=p.props)[oe])===null||be===void 0||(Pe=be).call.apply(Pe,[je].concat(Ie))}});const ut=[V["aria-required"],V["aria-invalid"],V["aria-describedby"]];se=o.createElement(_r,{control:ee,update:p,childProps:ut},Dt(p,V))}else c&&(i||a)&&!I?se=p(T):se=p}return G(se,L,Z)}))}const lt=kr;lt.useStatus=it;var Rr=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const Tr=e=>{var{prefixCls:t,children:r}=e,n=Rr(e,["prefixCls","children"]);const{getPrefixCls:a}=o.useContext(Ee),s=a("form",t),i=o.useMemo(()=>({prefixCls:s,status:"error"}),[s]);return o.createElement(Vt,Object.assign({},n),(l,u,d)=>o.createElement(Se.Provider,{value:i},r(l.map(m=>Object.assign(Object.assign({},m),{fieldKey:m.key})),u,{errors:d.errors,warnings:d.warnings})))};function Lr(){const{form:e}=o.useContext(J);return e}const re=gr;re.Item=lt;re.List=Tr;re.ErrorList=at;re.useForm=tt;re.useFormInstance=Lr;re.useWatch=zt;re.Provider=Ke;re.create=()=>{};var Ar={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Wr=function(){var t=o.useRef([]),r=o.useRef(null);return o.useEffect(function(){var n=Date.now(),a=!1;t.current.forEach(function(s){if(s){a=!0;var i=s.style;i.transitionDuration=".3s, .3s, .3s, .06s",r.current&&n-r.current<100&&(i.transitionDuration="0s, 0s")}}),a&&(r.current=Date.now())}),t.current},We=0,Dr=Ht();function Vr(){var e;return Dr?(e=We,We+=1):e="TEST_OR_SSR",e}const zr=(function(e){var t=o.useState(),r=Bt(t,2),n=r[0],a=r[1];return o.useEffect(function(){a("rc_progress_".concat(Vr()))},[]),e||n});var De=function(t){var r=t.bg,n=t.children;return o.createElement("div",{style:{width:"100%",height:"100%",background:r}},n)};function Ve(e,t){return Object.keys(e).map(function(r){var n=parseFloat(r),a="".concat(Math.floor(n*t),"%");return"".concat(e[r]," ").concat(a)})}var Br=o.forwardRef(function(e,t){var r=e.prefixCls,n=e.color,a=e.gradientId,s=e.radius,i=e.style,l=e.ptg,u=e.strokeLinecap,d=e.strokeWidth,m=e.size,f=e.gapDegree,v=n&&le(n)==="object",E=v?"#FFF":void 0,$=m/2,C=o.createElement("circle",{className:"".concat(r,"-circle-path"),r:s,cx:$,cy:$,stroke:E,strokeLinecap:u,strokeWidth:d,opacity:l===0?0:1,style:i,ref:t});if(!v)return C;var b="".concat(a,"-conic"),h=f?"".concat(180+f/2,"deg"):"0deg",y=Ve(n,(360-f)/360),p=Ve(n,1),c="conic-gradient(from ".concat(h,", ").concat(y.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(p.join(", "),")");return o.createElement(o.Fragment,null,o.createElement("mask",{id:b},C),o.createElement("foreignObject",{x:0,y:0,width:m,height:m,mask:"url(#".concat(b,")")},o.createElement(De,{bg:S},o.createElement(De,{bg:c}))))}),ce=100,ve=function(t,r,n,a,s,i,l,u,d,m){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,v=n/100*360*((360-i)/360),E=i===0?0:{bottom:0,top:180,left:90,right:-90}[l],$=(100-a)/100*r;d==="round"&&a!==100&&($+=m/2,$>=r&&($=r-.01));var C=ce/2;return{stroke:typeof u=="string"?u:void 0,strokeDasharray:"".concat(r,"px ").concat(t),strokeDashoffset:$+f,transform:"rotate(".concat(s+v+E,"deg)"),transformOrigin:"".concat(C,"px ").concat(C,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Hr=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function ze(e){var t=e??[];return Array.isArray(t)?t:[t]}var qr=function(t){var r=_e(_e({},Ar),t),n=r.id,a=r.prefixCls,s=r.steps,i=r.strokeWidth,l=r.trailWidth,u=r.gapDegree,d=u===void 0?0:u,m=r.gapPosition,f=r.trailColor,v=r.strokeLinecap,E=r.style,$=r.className,C=r.strokeColor,b=r.percent,h=qt(r,Hr),y=ce/2,p=zr(n),c="".concat(p,"-gradient"),S=y-i/2,w=Math.PI*2*S,O=d>0?90+d/2:-90,I=w*((360-d)/360),x=le(s)==="object"?s:{count:s,gap:2},g=x.count,N=x.gap,B=ze(b),W=ze(C),M=W.find(function(F){return F&&le(F)==="object"}),_=M&&le(M)==="object",k=_?"butt":v,z=ve(w,I,0,100,O,d,m,f,k,i),D=Wr(),P=function(){var H=0;return B.map(function(q,Y){var G=W[Y]||W[W.length-1],K=ve(w,I,H,q,O,d,m,G,k,i);return H+=q,o.createElement(Br,{key:Y,color:G,ptg:q,radius:S,prefixCls:a,gradientId:c,style:K,strokeLinecap:k,strokeWidth:i,gapDegree:d,ref:function(A){D[Y]=A},size:ce})}).reverse()},R=function(){var H=Math.round(g*(B[0]/100)),q=100/g,Y=0;return new Array(g).fill(null).map(function(G,K){var j=K<=H-1?W[0]:f,A=j&&le(j)==="object"?"url(#".concat(c,")"):void 0,T=ve(w,I,Y,q,O,d,m,j,"butt",i,N);return Y+=(I-T.strokeDashoffset+N)*100/I,o.createElement("circle",{key:K,className:"".concat(a,"-circle-path"),r:S,cx:y,cy:y,stroke:A,strokeWidth:i,opacity:1,style:T,ref:function(L){D[K]=L}})})};return o.createElement("svg",Ue({className:X("".concat(a,"-circle"),$),viewBox:"0 0 ".concat(ce," ").concat(ce),style:E,id:n,role:"presentation"},h),!g&&o.createElement("circle",{className:"".concat(a,"-circle-trail"),r:S,cx:y,cy:y,stroke:f,strokeLinecap:k,strokeWidth:l||i,style:z}),g?R():P())};function te(e){return!e||e<0?0:e>100?100:e}function me({success:e,successPercent:t}){let r=t;return e&&"progress"in e&&(r=e.progress),e&&"percent"in e&&(r=e.percent),r}const Xr=({percent:e,success:t,successPercent:r})=>{const n=te(me({success:t,successPercent:r}));return[n,te(te(e)-n)]},Kr=({success:e={},strokeColor:t})=>{const{strokeColor:r}=e;return[r||Ce.green,t||null]},ge=(e,t,r)=>{var n,a,s,i;let l=-1,u=-1;if(t==="step"){const d=r.steps,m=r.strokeWidth;typeof e=="string"||typeof e>"u"?(l=e==="small"?2:14,u=m??8):typeof e=="number"?[l,u]=[e,e]:[l=14,u=8]=Array.isArray(e)?e:[e.width,e.height],l*=d}else if(t==="line"){const d=r?.strokeWidth;typeof e=="string"||typeof e>"u"?u=d||(e==="small"?6:8):typeof e=="number"?[l,u]=[e,e]:[l=-1,u=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[l,u]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[l,u]=[e,e]:Array.isArray(e)&&(l=(a=(n=e[0])!==null&&n!==void 0?n:e[1])!==null&&a!==void 0?a:120,u=(i=(s=e[0])!==null&&s!==void 0?s:e[1])!==null&&i!==void 0?i:120));return[l,u]},Gr=3,Ur=e=>Gr/e*100,Qr=e=>{const{prefixCls:t,trailColor:r=null,strokeLinecap:n="round",gapPosition:a,gapDegree:s,width:i=120,type:l,children:u,success:d,size:m=i,steps:f}=e,[v,E]=ge(m,"circle");let{strokeWidth:$}=e;$===void 0&&($=Math.max(Ur(v),6));const C={width:v,height:E,fontSize:v*.15+6},b=o.useMemo(()=>{if(s||s===0)return s;if(l==="dashboard")return 75},[s,l]),h=Xr(e),y=a||l==="dashboard"&&"bottom"||void 0,p=Object.prototype.toString.call(e.strokeColor)==="[object Object]",c=Kr({success:d,strokeColor:e.strokeColor}),S=X(`${t}-inner`,{[`${t}-circle-gradient`]:p}),w=o.createElement(qr,{steps:f,percent:f?h[1]:h,strokeWidth:$,trailWidth:$,strokeColor:f?c[1]:c,strokeLinecap:n,trailColor:r,prefixCls:t,gapDegree:b,gapPosition:y}),O=v<=20,I=o.createElement("div",{className:S,style:C},w,!O&&u);return O?o.createElement(Qe,{title:u},I):I},fe="--progress-line-stroke-color",ct="--progress-percent",Be=e=>{const t=e?"100%":"-100%";return new Xt(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},Yr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:Object.assign(Object.assign({},$e(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${fe})`]},height:"100%",width:`calc(1 / var(${ct}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${ie(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:Be(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:Be(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},Zr=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},Jr=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},en=e=>{const{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${r}`]:{fontSize:e.fontSizeSM}}}},tn=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),rn=He("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),r=Xe(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[Yr(r),Zr(r),Jr(r),en(r)]},tn);var nn=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const on=e=>{let t=[];return Object.keys(e).forEach(r=>{const n=Number.parseFloat(r.replace(/%/g,""));Number.isNaN(n)||t.push({key:n,value:e[r]})}),t=t.sort((r,n)=>r.key-n.key),t.map(({key:r,value:n})=>`${n} ${r}%`).join(", ")},an=(e,t)=>{const{from:r=Ce.blue,to:n=Ce.blue,direction:a=t==="rtl"?"to left":"to right"}=e,s=nn(e,["from","to","direction"]);if(Object.keys(s).length!==0){const l=on(s),u=`linear-gradient(${a}, ${l})`;return{background:u,[fe]:u}}const i=`linear-gradient(${a}, ${r}, ${n})`;return{background:i,[fe]:i}},sn=e=>{const{prefixCls:t,direction:r,percent:n,size:a,strokeWidth:s,strokeColor:i,strokeLinecap:l="round",children:u,trailColor:d=null,percentPosition:m,success:f}=e,{align:v,type:E}=m,$=i&&typeof i!="string"?an(i,r):{[fe]:i,background:i},C=l==="square"||l==="butt"?0:void 0,b=a??[-1,s||(a==="small"?6:8)],[h,y]=ge(b,"line",{strokeWidth:s}),p={backgroundColor:d||void 0,borderRadius:C},c=Object.assign(Object.assign({width:`${te(n)}%`,height:y,borderRadius:C},$),{[ct]:te(n)/100}),S=me(e),w={width:`${te(S)}%`,height:y,borderRadius:C,backgroundColor:f?.strokeColor},O={width:h<0?"100%":h},I=o.createElement("div",{className:`${t}-inner`,style:p},o.createElement("div",{className:X(`${t}-bg`,`${t}-bg-${E}`),style:c},E==="inner"&&u),S!==void 0&&o.createElement("div",{className:`${t}-success-bg`,style:w})),x=E==="outer"&&v==="start",g=E==="outer"&&v==="end";return E==="outer"&&v==="center"?o.createElement("div",{className:`${t}-layout-bottom`},I,u):o.createElement("div",{className:`${t}-outer`,style:O},x&&u,I,g&&u)},ln=e=>{const{size:t,steps:r,rounding:n=Math.round,percent:a=0,strokeWidth:s=8,strokeColor:i,trailColor:l=null,prefixCls:u,children:d}=e,m=n(r*(a/100)),v=t??[t==="small"?2:14,s],[E,$]=ge(v,"step",{steps:r,strokeWidth:s}),C=E/r,b=Array.from({length:r});for(let h=0;h<r;h++){const y=Array.isArray(i)?i[h]:i;b[h]=o.createElement("div",{key:h,className:X(`${u}-steps-item`,{[`${u}-steps-item-active`]:h<=m-1}),style:{backgroundColor:h<=m-1?y:l,width:C,height:$}})}return o.createElement("div",{className:`${u}-steps-outer`},b,d)};var cn=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)t.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(r[n[a]]=e[n[a]]);return r};const un=["normal","exception","active","success"],pn=o.forwardRef((e,t)=>{const{prefixCls:r,className:n,rootClassName:a,steps:s,strokeColor:i,percent:l=0,size:u="default",showInfo:d=!0,type:m="line",status:f,format:v,style:E,percentPosition:$={}}=e,C=cn(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:b="end",type:h="outer"}=$,y=Array.isArray(i)?i[0]:i,p=typeof i=="string"||Array.isArray(i)?i:void 0,c=o.useMemo(()=>{if(y){const P=typeof y=="string"?y:Object.values(y)[0];return new Kt(P).isLight()}return!1},[i]),S=o.useMemo(()=>{var P,R;const F=me(e);return Number.parseInt(F!==void 0?(P=F??0)===null||P===void 0?void 0:P.toString():(R=l??0)===null||R===void 0?void 0:R.toString(),10)},[l,e.success,e.successPercent]),w=o.useMemo(()=>!un.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:O,direction:I,progress:x}=o.useContext(Ee),g=O("progress",r),[N,B,W]=rn(g),M=m==="line",_=M&&!s,k=o.useMemo(()=>{if(!d)return null;const P=me(e);let R;const F=v||(q=>`${q}%`),H=M&&c&&h==="inner";return h==="inner"||v||w!=="exception"&&w!=="success"?R=F(te(l),te(P)):w==="exception"?R=M?o.createElement(Ye,null):o.createElement(Gt,null):w==="success"&&(R=M?o.createElement(Ze,null):o.createElement(Ut,null)),o.createElement("span",{className:X(`${g}-text`,{[`${g}-text-bright`]:H,[`${g}-text-${b}`]:_,[`${g}-text-${h}`]:_}),title:typeof R=="string"?R:void 0},R)},[d,l,S,w,m,g,v]);let z;m==="line"?z=s?o.createElement(ln,Object.assign({},e,{strokeColor:p,prefixCls:g,steps:typeof s=="object"?s.count:s}),k):o.createElement(sn,Object.assign({},e,{strokeColor:y,prefixCls:g,direction:I,percentPosition:{align:b,type:h}}),k):(m==="circle"||m==="dashboard")&&(z=o.createElement(Qr,Object.assign({},e,{strokeColor:y,prefixCls:g,progressStatus:w}),k));const D=X(g,`${g}-status-${w}`,{[`${g}-${m==="dashboard"&&"circle"||m}`]:m!=="line",[`${g}-inline-circle`]:m==="circle"&&ge(u,"circle")[0]<=20,[`${g}-line`]:_,[`${g}-line-align-${b}`]:_,[`${g}-line-position-${h}`]:_,[`${g}-steps`]:s,[`${g}-show-info`]:d,[`${g}-${u}`]:typeof u=="string",[`${g}-rtl`]:I==="rtl"},x?.className,n,a,B,W);return N(o.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},x?.style),E),className:D,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},Je(C,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),z))});function bn(){const e=Qt(),[t,r]=o.useState(!1),{data:n,isLoading:a,isError:s}=Yt({queryKey:Re.AUTH_STATUS,queryFn:()=>ke.getAuthStatus(),retry:!1,staleTime:0,refetchOnMount:!0,refetchOnWindowFocus:!1}),i=!s&&Zt(n),l=tr({mutationFn:d=>ke.loginWithToken(d),onSuccess:()=>{e.invalidateQueries({queryKey:Re.AUTH_STATUS}),r(!1)},onError:()=>{r(!1)}});return{authenticated:i,isLoading:a,isError:s,data:n,loginWithTokenAsync:async d=>{r(!0);try{await l.mutateAsync(d)}finally{r(!1)}},isLoggingInWithToken:t}}export{re as F,pn as P,wr as R,bn as u};
|
|
9
|
+
//# sourceMappingURL=useAuth-BfM9bg0I.js.map
|