pixivflow 2.35.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-BS_TxY3k.js → CheckCircleOutlined-DXxMdP08.js} +2 -2
- package/webui-frontend/dist/assets/{ClearOutlined-uIvWLBII.js → ClearOutlined-CVkP1OPo.js} +2 -2
- package/webui-frontend/dist/assets/{CloseCircleOutlined-B45wvGw1.js → CloseCircleOutlined-DGYEx-rx.js} +2 -2
- package/webui-frontend/dist/assets/{Config-UjgCA3Jq.js → Config-BFBZgSvI.js} +3 -3
- package/webui-frontend/dist/assets/{Dashboard-hIW1nAN9.js → Dashboard-CHiRV77D.js} +2 -2
- package/webui-frontend/dist/assets/{DeleteOutlined-ByQuZQbZ.js → DeleteOutlined-DwsLtl_I.js} +2 -2
- package/webui-frontend/dist/assets/Download-BY0RQ0yW.js +2 -0
- package/webui-frontend/dist/assets/{Files-DCMyqujj.js → Files-qrEyGaCr.js} +3 -3
- package/webui-frontend/dist/assets/{PictureOutlined-CSEKKDH9.js → PictureOutlined-B5UcfS3J.js} +2 -2
- package/webui-frontend/dist/assets/{SortDescendingOutlined-BS5Vnvjg.js → SortDescendingOutlined-CIPBhzNI.js} +2 -2
- package/webui-frontend/dist/assets/{Table-CvqrzZX2.js → Table-COdSkj3k.js} +7 -7
- package/webui-frontend/dist/assets/{ThunderboltOutlined-DhgtXoNM.js → ThunderboltOutlined-BlHGTLpd.js} +2 -2
- package/webui-frontend/dist/assets/{UrlDownload-BHF2qmgI.js → UrlDownload-Dxj1MDnw.js} +2 -2
- package/webui-frontend/dist/assets/{dateUtils-CEt5gAeU.js → dateUtils-Dh-zVUtr.js} +2 -2
- package/webui-frontend/dist/assets/{errorCodeTranslator-Xn_Z9qOh.js → errorCodeTranslator-D5vahyqQ.js} +2 -2
- package/webui-frontend/dist/assets/{index-DiwSYMD5.js → index-B84Vd9_M.js} +2 -2
- package/webui-frontend/dist/assets/index-BhmvYPFd.js +19 -0
- package/webui-frontend/dist/assets/{index-NSEOZ6G5.js → index-Bp5yfy4e.js} +3 -3
- package/webui-frontend/dist/assets/{index-HJggy9SZ.js → index-BtXc5-H2.js} +15 -15
- package/webui-frontend/dist/assets/{index-eiyXJZci.js → index-BvQQNYa5.js} +2 -2
- package/webui-frontend/dist/assets/index-C2qRwckx.js +2 -0
- package/webui-frontend/dist/assets/{index-ZRYuscJf.js → index-CFWcxkyB.js} +2 -2
- package/webui-frontend/dist/assets/{index-DpfbKoAX.js → index-CZ44NQeD.js} +2 -2
- package/webui-frontend/dist/assets/{index-Cg2Wi2pt.js → index-CZXbP5HB.js} +2 -2
- package/webui-frontend/dist/assets/{index-6mtxs9yc.js → index-CZlT-55J.js} +2 -2
- package/webui-frontend/dist/assets/index-Cfg0ICF_.js +20 -0
- package/webui-frontend/dist/assets/{index-D_qUS2GR.js → index-D1KRxkVR.js} +2 -2
- package/webui-frontend/dist/assets/{index-D4mbR-Vx.js → index-D8iUeVsP.js} +2 -2
- package/webui-frontend/dist/assets/{index-C66Xw4Fs.js → index-DcqvG64t.js} +2 -2
- package/webui-frontend/dist/assets/index-eeF42ACG.js +2 -0
- package/webui-frontend/dist/assets/{index-mHLzQpzS.js → index-xZubvNRw.js} +6 -6
- package/webui-frontend/dist/assets/row-DaMDSIar.js +2 -0
- package/webui-frontend/dist/assets/{useAuth-4erTEEjT.js → useAuth-BfM9bg0I.js} +3 -3
- package/webui-frontend/dist/assets/{useConfig-BmhXnAiM.js → useConfig-nFBmSW5k.js} +2 -2
- package/webui-frontend/dist/assets/{useDownload-DhuPPKqw.js → useDownload-ChmDqdbc.js} +2 -2
- package/webui-frontend/dist/assets/{useErrorHandler-Bcb3l7ju.js → useErrorHandler-MJ8OxkB4.js} +2 -2
- package/webui-frontend/dist/index.html +1 -1
- package/webui-frontend/dist/assets/Download-DdswOGH7.js +0 -2
- package/webui-frontend/dist/assets/index-B4zZ11c-.js +0 -20
- package/webui-frontend/dist/assets/index-BlXTpFS3.js +0 -2
- package/webui-frontend/dist/assets/index-BvgYmQcZ.js +0 -2
- package/webui-frontend/dist/assets/index-DV4iHo-9.js +0 -19
- package/webui-frontend/dist/assets/row-CQQO4x82.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{v as P,x as W,z as j,A as d,ac as T,J as H,r as c,n as D}from"./index-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{v as P,x as W,z as j,A as d,ac as T,J as H,r as c,n as D}from"./index-BtXc5-H2.js";const G=t=>{const{componentCls:e}=t;return{[e]:{"&-horizontal":{[`&${e}`]:{"&-sm":{marginBlock:t.marginXS},"&-md":{marginBlock:t.margin}}}}}},A=t=>{const{componentCls:e,sizePaddingEdgeHorizontal:o,colorSplit:r,lineWidth:n,textPaddingInline:g,orientationMargin:l,verticalMarginInline:s}=t;return{[e]:Object.assign(Object.assign({},j(t)),{borderBlockStart:`${d(n)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${d(n)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${d(t.marginLG)} 0`},[`&-horizontal${e}-with-text`]:{display:"flex",alignItems:"center",margin:`${d(t.dividerHorizontalWithTextGutterMargin)} 0`,color:t.colorTextHeading,fontWeight:500,fontSize:t.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${d(n)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${e}-with-text-start`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${e}-with-text-end`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${e}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:g},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${d(n)} 0 0`},[`&-horizontal${e}-with-text${e}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${e}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${d(n)} 0 0`},[`&-horizontal${e}-with-text${e}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${e}-dotted`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${e}-with-text`]:{color:t.colorText,fontWeight:"normal",fontSize:t.fontSize},[`&-horizontal${e}-with-text-start${e}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${e}-inner-text`]:{paddingInlineStart:o}},[`&-horizontal${e}-with-text-end${e}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${e}-inner-text`]:{paddingInlineEnd:o}}})}},L=t=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:t.marginXS}),V=P("Divider",t=>{const e=W(t,{dividerHorizontalWithTextGutterMargin:t.margin,sizePaddingEdgeHorizontal:0});return[A(e),G(e)]},L,{unitless:{orientationMargin:!0}});var X=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(o[r[n]]=t[r[n]]);return o};const _={small:"sm",middle:"md"},J=t=>{const{getPrefixCls:e,direction:o,className:r,style:n}=T("divider"),{prefixCls:g,type:l="horizontal",orientation:s="center",orientationMargin:a,className:x,rootClassName:y,children:h,dashed:z,variant:f="solid",plain:v,style:w,size:C}=t,I=X(t,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),i=e("divider",g),[O,M,E]=V(i),B=H(C),b=_[B],$=!!h,m=c.useMemo(()=>s==="left"?o==="rtl"?"end":"start":s==="right"?o==="rtl"?"start":"end":s,[o,s]),p=m==="start"&&a!=null,S=m==="end"&&a!=null,N=D(i,r,M,E,`${i}-${l}`,{[`${i}-with-text`]:$,[`${i}-with-text-${m}`]:$,[`${i}-dashed`]:!!z,[`${i}-${f}`]:f!=="solid",[`${i}-plain`]:!!v,[`${i}-rtl`]:o==="rtl",[`${i}-no-default-orientation-margin-start`]:p,[`${i}-no-default-orientation-margin-end`]:S,[`${i}-${b}`]:!!b},x,y),u=c.useMemo(()=>typeof a=="number"?a:/^\d+$/.test(a)?Number(a):a,[a]),k={marginInlineStart:p?u:void 0,marginInlineEnd:S?u:void 0};return O(c.createElement("div",Object.assign({className:N,style:Object.assign(Object.assign({},n),w)},I,{role:"separator"}),h&&l!=="vertical"&&c.createElement("span",{className:`${i}-inner-text`,style:k},h)))};export{J as D};
|
|
2
|
+
//# sourceMappingURL=index-D8iUeVsP.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{r as g,o as L,a7 as q,i as A,n as D,h as H,_ as R,a3 as N,v as X,x as K,z as V,A as $,ab as F,F as _,D as B,K as G,J,aM as Q,aN as U}from"./index-
|
|
2
|
-
//# sourceMappingURL=index-
|
|
1
|
+
import{r as g,o as L,a7 as q,i as A,n as D,h as H,_ as R,a3 as N,v as X,x as K,z as V,A as $,ab as F,F as _,D as B,K as G,J,aM as Q,aN as U}from"./index-BtXc5-H2.js";var Y=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],P=g.forwardRef(function(e,n){var c,a=e.prefixCls,l=a===void 0?"rc-switch":a,r=e.className,d=e.checked,t=e.defaultChecked,i=e.disabled,o=e.loadingIcon,s=e.checkedChildren,u=e.unCheckedChildren,I=e.onClick,C=e.onChange,w=e.onKeyDown,M=L(e,Y),x=q(!1,{value:d,defaultValue:t}),f=A(x,2),p=f[0],S=f[1];function v(h,k){var b=p;return i||(b=h,S(b),C?.(b,k)),b}function y(h){h.which===N.LEFT?v(!1,h):h.which===N.RIGHT&&v(!0,h),w?.(h)}function m(h){var k=v(!p,h);I?.(k,h)}var E=D(l,r,(c={},H(c,"".concat(l,"-checked"),p),H(c,"".concat(l,"-disabled"),i),c));return g.createElement("button",R({},M,{type:"button",role:"switch","aria-checked":p,disabled:i,className:E,ref:n,onKeyDown:y,onClick:m}),o,g.createElement("span",{className:"".concat(l,"-inner")},g.createElement("span",{className:"".concat(l,"-inner-checked")},s),g.createElement("span",{className:"".concat(l,"-inner-unchecked")},u)))});P.displayName="Switch";const Z=e=>{const{componentCls:n,trackHeightSM:c,trackPadding:a,trackMinWidthSM:l,innerMinMarginSM:r,innerMaxMarginSM:d,handleSizeSM:t,calc:i}=e,o=`${n}-inner`,s=$(i(t).add(i(a).mul(2)).equal()),u=$(i(d).mul(2).equal());return{[n]:{[`&${n}-small`]:{minWidth:l,height:c,lineHeight:$(c),[`${n}-inner`]:{paddingInlineStart:d,paddingInlineEnd:r,[`${o}-checked, ${o}-unchecked`]:{minHeight:c},[`${o}-checked`]:{marginInlineStart:`calc(-100% + ${s} - ${u})`,marginInlineEnd:`calc(100% - ${s} + ${u})`},[`${o}-unchecked`]:{marginTop:i(c).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${n}-handle`]:{width:t,height:t},[`${n}-loading-icon`]:{top:i(i(t).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${n}-checked`]:{[`${n}-inner`]:{paddingInlineStart:r,paddingInlineEnd:d,[`${o}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${o}-unchecked`]:{marginInlineStart:`calc(100% - ${s} + ${u})`,marginInlineEnd:`calc(-100% + ${s} - ${u})`}},[`${n}-handle`]:{insetInlineStart:`calc(100% - ${$(i(t).add(a).equal())})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${o}`]:{[`${o}-unchecked`]:{marginInlineStart:i(e.marginXXS).div(2).equal(),marginInlineEnd:i(e.marginXXS).mul(-1).div(2).equal()}},[`&${n}-checked ${o}`]:{[`${o}-checked`]:{marginInlineStart:i(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:i(e.marginXXS).div(2).equal()}}}}}}},ee=e=>{const{componentCls:n,handleSize:c,calc:a}=e;return{[n]:{[`${n}-loading-icon${e.iconCls}`]:{position:"relative",top:a(a(c).sub(e.fontSize)).div(2).equal(),color:e.switchLoadingIconColor,verticalAlign:"top"},[`&${n}-checked ${n}-loading-icon`]:{color:e.switchColor}}}},ne=e=>{const{componentCls:n,trackPadding:c,handleBg:a,handleShadow:l,handleSize:r,calc:d}=e,t=`${n}-handle`;return{[n]:{[t]:{position:"absolute",top:c,insetInlineStart:c,width:r,height:r,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:a,borderRadius:d(r).div(2).equal(),boxShadow:l,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${n}-checked ${t}`]:{insetInlineStart:`calc(100% - ${$(d(r).add(c).equal())})`},[`&:not(${n}-disabled):active`]:{[`${t}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${n}-checked ${t}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},ie=e=>{const{componentCls:n,trackHeight:c,trackPadding:a,innerMinMargin:l,innerMaxMargin:r,handleSize:d,calc:t}=e,i=`${n}-inner`,o=$(t(d).add(t(a).mul(2)).equal()),s=$(t(r).mul(2).equal());return{[n]:{[i]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:r,paddingInlineEnd:l,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${i}-checked, ${i}-unchecked`]:{display:"block",color:e.colorTextLightSolid,fontSize:e.fontSizeSM,transition:`margin-inline-start ${e.switchDuration} ease-in-out, margin-inline-end ${e.switchDuration} ease-in-out`,pointerEvents:"none",minHeight:c},[`${i}-checked`]:{marginInlineStart:`calc(-100% + ${o} - ${s})`,marginInlineEnd:`calc(100% - ${o} + ${s})`},[`${i}-unchecked`]:{marginTop:t(c).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${n}-checked ${i}`]:{paddingInlineStart:l,paddingInlineEnd:r,[`${i}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${i}-unchecked`]:{marginInlineStart:`calc(100% - ${o} + ${s})`,marginInlineEnd:`calc(-100% + ${o} - ${s})`}},[`&:not(${n}-disabled):active`]:{[`&:not(${n}-checked) ${i}`]:{[`${i}-unchecked`]:{marginInlineStart:t(a).mul(2).equal(),marginInlineEnd:t(a).mul(-1).mul(2).equal()}},[`&${n}-checked ${i}`]:{[`${i}-checked`]:{marginInlineStart:t(a).mul(-1).mul(2).equal(),marginInlineEnd:t(a).mul(2).equal()}}}}}},ae=e=>{const{componentCls:n,trackHeight:c,trackMinWidth:a}=e;return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},V(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:a,height:c,lineHeight:$(c),verticalAlign:"middle",background:e.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${e.motionDurationMid}`,userSelect:"none",[`&:hover:not(${n}-disabled)`]:{background:e.colorTextTertiary}}),F(e)),{[`&${n}-checked`]:{background:e.switchColor,[`&:hover:not(${n}-disabled)`]:{background:e.colorPrimaryHover}},[`&${n}-loading, &${n}-disabled`]:{cursor:"not-allowed",opacity:e.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${n}-rtl`]:{direction:"rtl"}})}},te=e=>{const{fontSize:n,lineHeight:c,controlHeight:a,colorWhite:l}=e,r=n*c,d=a/2,t=2,i=r-t*2,o=d-t*2;return{trackHeight:r,trackHeightSM:d,trackMinWidth:i*2+t*4,trackMinWidthSM:o*2+t*2,trackPadding:t,handleBg:l,handleSize:i,handleSizeSM:o,handleShadow:`0 2px 4px 0 ${new _("#00230b").setA(.2).toRgbString()}`,innerMinMargin:i/2,innerMaxMargin:i+t+t*2,innerMinMarginSM:o/2,innerMaxMarginSM:o+t+t*2}},ce=X("Switch",e=>{const n=K(e,{switchDuration:e.motionDurationMid,switchColor:e.colorPrimary,switchDisabledOpacity:e.opacityLoading,switchLoadingIconSize:e.calc(e.fontSizeIcon).mul(.75).equal(),switchLoadingIconColor:`rgba(0, 0, 0, ${e.opacityLoading})`,switchHandleActiveInset:"-30%"});return[ae(n),ie(n),ne(n),ee(n),Z(n)]},te);var le=function(e,n){var c={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&n.indexOf(a)<0&&(c[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,a=Object.getOwnPropertySymbols(e);l<a.length;l++)n.indexOf(a[l])<0&&Object.prototype.propertyIsEnumerable.call(e,a[l])&&(c[a[l]]=e[a[l]]);return c};const oe=g.forwardRef((e,n)=>{const{prefixCls:c,size:a,disabled:l,loading:r,className:d,rootClassName:t,style:i,checked:o,value:s,defaultChecked:u,defaultValue:I,onChange:C}=e,w=le(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[M,x]=q(!1,{value:o??s,defaultValue:u??I}),{getPrefixCls:f,direction:p,switch:S}=g.useContext(B),v=g.useContext(G),y=(l??v)||r,m=f("switch",c),E=g.createElement("div",{className:`${m}-handle`},r&&g.createElement(U,{className:`${m}-loading-icon`})),[h,k,b]=ce(m),O=J(a),T=D(S?.className,{[`${m}-small`]:O==="small",[`${m}-loading`]:r,[`${m}-rtl`]:p==="rtl"},d,t,k,b),j=Object.assign(Object.assign({},S?.style),i),W=(...z)=>{x(z[0]),C?.apply(void 0,z)};return h(g.createElement(Q,{component:"Switch",disabled:y},g.createElement(P,Object.assign({},w,{checked:M,onChange:W,prefixCls:m,className:T,style:j,disabled:y,ref:n,loadingIcon:E}))))}),re=oe;re.__ANT_SWITCH=!0;export{re as S};
|
|
2
|
+
//# sourceMappingURL=index-DcqvG64t.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{b1 as h,R as w,u as S,Q as R,b,r as y,s as l,j as r,B as p,c as T,Z as C,S as E}from"./index-BtXc5-H2.js";import{f as L}from"./dateUtils-Dh-zVUtr.js";import{M as A}from"./index-Bp5yfy4e.js";import{T as F}from"./index-xZubvNRw.js";import{T as d}from"./index-CZlT-55J.js";import{C as M}from"./index-Cfg0ICF_.js";import{F as m}from"./Table-COdSkj3k.js";import"./ActionButton-bmITMO8t.js";import"./index-CZXbP5HB.js";const f={async listRecentSlots(e){return(await h.listRecentSlots(e)).data.data},async submitRecover(e,c){return(await h.submitRecover(e,c)).data},async recoverStatus(e,c){return(await h.recoverStatus(e,c)).data}};function D(e,c=w.SCHEDULER){const{data:o,isLoading:i,error:a,refetch:u}=S({queryKey:R.SCHEDULER,queryFn:()=>f.listRecentSlots(e),refetchInterval:c});return{slots:o?.slots,isLoading:i,error:a,refetch:u}}const{Text:x,Title:U}=F;function g(e){switch(e.toLowerCase()){case"running":return"processing";case"pending":return"default";case"success":case"submitted":case"published":return"success";case"failed":return"error";default:return"warning"}}function _(e){return Array.isArray(e)?e:[]}function z(e){return["failed","no_candidate","duplicate"].includes(e.toLowerCase())}function V(){const{t:e}=b(),{slots:c,isLoading:o,error:i,refetch:a}=D(),u=y.useCallback(async()=>{l.loading({content:e("scheduler.refreshing"),key:"scheduler-refresh"});try{await a(),l.success({content:e("scheduler.refreshed"),key:"scheduler-refresh",duration:2})}catch{l.error({content:e("scheduler.refreshFailed"),key:"scheduler-refresh",duration:3})}},[a,e]),k=y.useCallback(s=>{const t=crypto.randomUUID();A.confirm({title:e("scheduler.recovery"),content:e("scheduler.recoveryConfirm",{target:s}),okText:e("scheduler.recovery"),cancelText:e("common.cancel"),onOk:async()=>{l.loading({content:e("scheduler.recoverySubmitting"),key:"recover"});try{await f.submitRecover(s,{requestId:t,retryMode:"normal"}),l.success({content:e("scheduler.recoverySubmitted"),key:"recover",duration:3}),setTimeout(()=>a(),1500)}catch(n){const I=n?.response?.status,j=e(I===503?"scheduler.recoveryUnavailable":"scheduler.recoveryFailed");l.error({content:j,key:"recover",duration:4})}}})},[e,a]),v=[{title:e("scheduler.slotId"),dataIndex:"slotId",key:"slotId",ellipsis:!0,render:s=>r.jsx(x,{copyable:{text:s},children:s})},{title:e("scheduler.schedule"),dataIndex:"scheduleId",key:"scheduleId"},{title:e("scheduler.occurrence"),key:"occurrence",render:(s,t)=>r.jsxs("span",{children:[t.occurrenceDate,t.occurrenceLabel?` ${t.occurrenceLabel}`:"",t.occurrenceAt?r.jsx("div",{className:"scheduler-utc",children:L(new Date(t.occurrenceAt))}):null]})},{title:e("scheduler.status"),dataIndex:"status",key:"status",render:(s,t)=>r.jsxs("span",{children:[r.jsx(d,{color:g(s),children:s}),t.recoveryMode?r.jsxs(d,{color:"purple",children:[e("scheduler.recoveryMode"),": ",t.recoveryMode]}):null]})},{title:e("scheduler.trigger"),dataIndex:"triggerSource",key:"triggerSource",render:s=>s||"-"}];return r.jsxs("div",{children:[r.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:16},children:[r.jsx(U,{level:2,style:{margin:0},children:e("scheduler.title")}),r.jsx(p,{icon:r.jsx(T,{}),onClick:u,loading:o,children:e("scheduler.refresh")})]}),i?r.jsx(C,{type:"error",showIcon:!0,message:e("scheduler.loadFailed"),closable:!0,style:{marginBottom:16}}):null,o&&!c?r.jsx(E,{size:"large",style:{display:"block",textAlign:"center",marginTop:50}}):r.jsx(M,{title:e("scheduler.recentSlots"),children:r.jsx(m,{rowKey:s=>s.slotId,columns:v,dataSource:c||[],pagination:{pageSize:10},expandable:{expandedRowRender:s=>r.jsx(m,{rowKey:t=>`${s.slotId}:${t.targetId}`,size:"small",pagination:!1,dataSource:_(s.targets),columns:[{title:e("scheduler.target"),dataIndex:"targetId",key:"targetId"},{title:e("scheduler.workType"),dataIndex:"workType",key:"workType"},{title:e("scheduler.status"),dataIndex:"status",key:"status",render:t=>r.jsx(d,{color:g(t),children:t})},{title:e("scheduler.workId"),dataIndex:"workId",key:"workId",render:t=>t||"-"},{title:e("scheduler.reason"),key:"reason",render:(t,n)=>r.jsxs("span",{children:[n.terminalReasonCode?r.jsx(d,{color:"volcano",children:n.terminalReasonCode}):null,r.jsx(x,{type:"secondary",children:n.reason||"-"})]})},{title:"",key:"recovery",width:120,render:(t,n)=>z(n.status)?r.jsx(p,{size:"small",onClick:()=>k(n.targetId),children:e("scheduler.recovery")}):null}]})}})})]})}export{V as default};
|
|
2
|
+
//# sourceMappingURL=index-eeF42ACG.js.map
|
|
@@ -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,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-HJggy9SZ.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
|