You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
36 KiB
44 lines
36 KiB
(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,14669,e=>{"use strict";let t=e.i(191788).default.createContext(null);e.s(["default",0,t])},54269,e=>{"use strict";e.i(495059);var t=e.i(191788),r=e.i(320001);e.i(957562);var o=e.i(617796),n=e.i(27593),l=e.i(851581),a=e.i(56206),i=e.i(430898),c=e.i(708176),d=e.i(498324),s=e.i(658686),u=e.i(993175),p=e.i(82038),f=e.i(749919),m=e.i(873627),b=e.i(14669),g=e.i(187056),h=e.i(270010);let x=t.forwardRef((e,x)=>{let{prefixCls:v,children:C,indeterminate:$=!1,onMouseEnter:y,onMouseLeave:k,skipGroup:S=!1,disabled:E,rootClassName:w,className:R,style:I,classNames:B,styles:T,name:M,value:z,checked:D,defaultChecked:N,onChange:H,...L}=e,{getPrefixCls:O,direction:W,className:F,style:q,classNames:P,styles:_}=(0,u.useComponentConfig)("checkbox"),A=t.useContext(b.default),{isFormItemInput:j}=t.useContext(m.FormItemInputContext),X=t.useContext(p.default),G=(A?.disabled||E)??X,[V,K]=(0,o.useControlledState)(N,D),U=V,J=(0,n.useEvent)(e=>{K(e.target.checked),H?.(e),!S&&A?.toggleOption&&A.toggleOption({label:C,value:z})});A&&!S&&(U=A.value.includes(z));let Q=t.useRef(null),Y=(0,l.useComposeRef)(x,Q);t.useEffect(()=>{if(!S&&A)return A.registerValue(z),()=>{A.cancelValue(z)}},[z,S]),t.useEffect(()=>{Q.current?.input&&(Q.current.input.indeterminate=$)},[$]);let Z=O("checkbox",v),ee=(0,f.default)(Z),[et,er]=(0,g.default)(Z,ee),eo={...L},en={...e,indeterminate:$,disabled:G,checked:U},[el,ea]=(0,i.useMergeSemantic)([P,B],[_,T],{props:en}),ei=(0,a.clsx)(`${Z}-wrapper`,{[`${Z}-rtl`]:"rtl"===W,[`${Z}-wrapper-checked`]:U,[`${Z}-wrapper-disabled`]:G,[`${Z}-wrapper-in-form-item`]:j},F,R,el.root,w,er,ee,et),ec=(0,a.clsx)(el.icon,{[`${Z}-indeterminate`]:$},s.TARGET_CLS,et),[ed,es]=(0,h.default)(eo.onClick);return t.createElement(d.default,{component:"Checkbox",disabled:G},t.createElement("label",{className:ei,style:{...ea.root,...q,...I},onMouseEnter:y,onMouseLeave:k,onClick:ed},t.createElement(r.default,{...eo,name:!S&&A?A.name:M,checked:U,onClick:es,onChange:J,prefixCls:Z,className:ec,style:ea.icon,disabled:G,ref:Y,value:z}),(0,c.default)(C)&&t.createElement("span",{className:(0,a.clsx)(`${Z}-label`,el.label),style:ea.label},C)))});var v=e.i(633829),C=e.i(191248);let $=t.forwardRef((e,r)=>{let{defaultValue:o,children:n,options:l=[],prefixCls:i,className:c,rootClassName:d,style:s,onChange:p,role:m="group",...h}=e,{getPrefixCls:$,direction:y}=t.useContext(u.ConfigContext),[k,S]=t.useState(h.value||o||[]),[E,w]=t.useState([]);t.useEffect(()=>{"value"in h&&S(h.value||[])},[h.value]);let R=t.useMemo(()=>l.map(e=>"string"==typeof e||"number"==typeof e?{label:e,value:e}:e),[l]),I=e=>{w(t=>t.filter(t=>t!==e))},B=e=>{w(t=>[].concat((0,v.default)(t),[e]))},T=e=>{let t=k.indexOf(e.value),r=(0,v.default)(k);-1===t?r.push(e.value):r.splice(t,1),"value"in h||S(r),p?.(r.filter(e=>E.includes(e)).sort((e,t)=>R.findIndex(t=>t.value===e)-R.findIndex(e=>e.value===t)))},M=$("checkbox",i),z=`${M}-group`,D=(0,f.default)(M),[N,H]=(0,g.default)(M,D),L=(0,C.omit)(h,["value","disabled"]),O=l.length?R.map(e=>t.createElement(x,{prefixCls:M,key:e.value.toString(),disabled:"disabled"in e?e.disabled:h.disabled,value:e.value,checked:k.includes(e.value),onChange:e.onChange,className:(0,a.clsx)(`${z}-item`,e.className),style:e.style,title:e.title,id:e.id,required:e.required},e.label)):n,W=t.useMemo(()=>({toggleOption:T,value:k,disabled:h.disabled,name:h.name,registerValue:B,cancelValue:I}),[T,k,h.disabled,h.name,B,I]),F=(0,a.clsx)(z,{[`${z}-rtl`]:"rtl"===y},c,d,H,D,N);return t.createElement("div",{className:F,style:s,role:m,...L,ref:r},t.createElement(b.default.Provider,{value:W},O))});x.Group=$,x.__ANT_CHECKBOX=!0,e.s(["default",0,x],54269)},100264,e=>{"use strict";e.i(495059);var t=e.i(191788),r={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"},o=e.i(117716);function n(){return(n=Object.assign.bind()).apply(this,arguments)}let l=t.forwardRef((e,l)=>t.createElement(o.default,n({},e,{ref:l,icon:r})));e.s(["default",0,l],100264)},187056,e=>{"use strict";e.i(290586);var t=e.i(774778),r=e.i(307441),o=e.i(198567),n=e.i(352050),l=e.i(104616);function a(e,n){return(e=>{let{checkboxCls:n,checkboxSize:l,lineWidth:a}=e,i=`${n}-wrapper`;return[{[`${n}-group`]:{...(0,r.resetComponent)(e),display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}},[i]:{...(0,r.resetComponent)(e),display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${i}`]:{marginInlineStart:0},[`&${i}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}},[n]:{...(0,r.resetComponent)(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:l,height:l,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${(0,t.unit)(a)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,borderCollapse:"separate",transition:`all ${e.motionDurationSlow}`,flex:"none",...(0,o.genNoMotionStyle)(),"&:after":{boxSizing:"border-box",position:"absolute",top:`calc(${l} / 2 - ${a})`,insetInlineStart:`calc(${l} / 4 - ${a})`,display:"table",width:e.calc(l).div(14).mul(5).equal(),height:e.calc(l).div(14).mul(8).equal(),border:`${(0,t.unit)(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`,...(0,o.genNoMotionStyle)()},[`${n}-input`]:{position:"absolute",inset:`calc(-1 * (${a}))`,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${n}-input:focus-visible)`]:(0,r.genFocusOutline)(e),"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}}},{[`
|
|
${i}:not(${i}-disabled),
|
|
${n}:not(${n}-disabled)
|
|
`]:{[`&:hover ${n}`]:{borderColor:e.colorPrimary}},[`${i}:not(${i}-disabled)`]:{[`&:hover ${n}-checked:not(${n}-disabled)`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[`${n}-checked`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`,...(0,o.genNoMotionStyle)()},[`&:not(${n}-disabled):hover`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[n]:{"&-indeterminate":{backgroundColor:e.colorBgContainer,borderColor:e.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'},"&:hover":{backgroundColor:e.colorBgContainer,borderColor:e.colorPrimary}}}},{[`${i}-disabled`]:{cursor:"not-allowed"},[`${n}-disabled`]:{[`&, ${n}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled},"& + span":{color:e.colorTextDisabled},[`&${n}-indeterminate::after`]:{background:e.colorTextDisabled}}}]})((0,l.mergeToken)(n,{checkboxCls:`.${e}`,checkboxSize:n.controlInteractiveSize}))}var i=(0,n.genStyleHooks)("Checkbox",(e,{prefixCls:t})=>[a(t,e)]);e.s(["default",0,i,"getStyle",0,a])},320001,270010,e=>{"use strict";var t=e.i(56926),r=e.i(56206),o=e.i(191788);function n(){return(n=Object.assign.bind()).apply(this,arguments)}let l=(0,o.forwardRef)((e,l)=>{let{prefixCls:a="rc-checkbox",className:i,style:c,checked:d,disabled:s,defaultChecked:u=!1,type:p="checkbox",title:f,onChange:m,...b}=e,g=(0,o.useRef)(null),h=(0,o.useRef)(null),[x,v]=(0,t.default)(u,d);(0,o.useImperativeHandle)(l,()=>({focus:e=>{g.current?.focus(e)},blur:()=>{g.current?.blur()},input:g.current,nativeElement:h.current}));let C=(0,r.clsx)(a,i,{[`${a}-checked`]:x,[`${a}-disabled`]:s});return o.createElement("span",{className:C,title:f,style:c,ref:h},o.createElement("input",n({},b,{className:`${a}-input`,ref:g,onChange:t=>{s||("checked"in e||v(t.target.checked),m?.({target:{...e,type:p,checked:t.target.checked},stopPropagation(){t.stopPropagation()},preventDefault(){t.preventDefault()},nativeEvent:t.nativeEvent}))},disabled:s,checked:!!x,type:p})))});e.s(["default",0,l],320001);var a=e.i(499997);e.s(["default",0,function(e){let t=o.default.useRef(null),r=()=>{a.default.cancel(t.current),t.current=null};return[()=>{r(),t.current=(0,a.default)(()=>{t.current=null})},o=>{t.current&&(o.stopPropagation(),r()),e?.(o)}]}],270010)},344670,e=>{"use strict";e.i(495059);var t=e.i(191788),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"},o=e.i(117716);function n(){return(n=Object.assign.bind()).apply(this,arguments)}let l=t.forwardRef((e,l)=>t.createElement(o.default,n({},e,{ref:l,icon:r})));e.s(["InfoCircleOutlined",0,l],344670)},422904,e=>{"use strict";var t=e.i(191788);e.i(957562);var r=e.i(617796),o=e.i(572353),n=e.i(624200),l=e.i(56206),a=e.i(497630),i=e.i(993175),c=e.i(749919),d=e.i(625263),s=e.i(873627),u=e.i(749344);let p=t.createContext(void 0),f=p.Provider,m=t.createContext(void 0),b=m.Provider;e.i(495059);var g=e.i(320001),h=e.i(851581),x=e.i(430898),v=e.i(498324),C=e.i(658686),$=e.i(270010),y=e.i(82038);e.i(290586);var k=e.i(774778),S=e.i(307441),E=e.i(352050),w=e.i(104616),R=(0,E.genStyleHooks)("Radio",e=>{let{controlOutline:t,controlOutlineWidth:r}=e,o=`0 0 0 ${(0,k.unit)(r)} ${t}`,n=(0,w.mergeToken)(e,{radioFocusShadow:o,radioButtonFocusShadow:o});return[(e=>{let{componentCls:t,antCls:r}=e,o=`${t}-group`;return{[o]:{...(0,S.resetComponent)(e),display:"inline-block",fontSize:0,[`&${o}-rtl`]:{direction:"rtl"},[`&${o}-block`]:{display:"flex"},[`${r}-badge ${r}-badge-count`]:{zIndex:1},[`> ${r}-badge:not(:first-child) > ${r}-button-wrapper`]:{borderInlineStart:"none"},"&-vertical":{display:"flex",flexDirection:"column",rowGap:e.marginXS,[`${t}-wrapper`]:{marginInlineEnd:0}}}}})(n),(e=>{let{componentCls:t,wrapperMarginInlineEnd:r,colorPrimary:o,colorPrimaryHover:n,radioSize:l,motionDurationSlow:a,motionDurationMid:i,motionEaseInOutCirc:c,colorBgContainer:d,colorBorder:s,lineWidth:u,colorBgContainerDisabled:p,colorTextDisabled:f,paddingXS:m,dotColorDisabled:b,dotSize:g,lineType:h,radioColor:x,radioBgColor:v}=e;return{[`${t}-wrapper`]:{...(0,S.resetComponent)(e),display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:r,cursor:"pointer","&:last-child":{marginInlineEnd:0},[`&${t}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:e.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},"&-block":{flex:1,justifyContent:"center"},[t]:{...(0,S.resetComponent)(e),position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",alignSelf:"center",boxSizing:"border-box",display:"block",width:`calc(${l} * 1px)`,height:`calc(${l} * 1px)`,backgroundColor:d,border:`${(0,k.unit)(u)} ${h} ${s}`,borderRadius:"50%",transition:`all ${i}`,flex:"none","&:after":{content:'""',position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%) scale(0)",width:`calc(${g} * 1px)`,height:`calc(${g} * 1px)`,backgroundColor:x,borderRadius:"50%",transformOrigin:"50% 50%",opacity:0,transition:`all ${a} ${c}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0},[`&:has(${t}-input:focus-visible)`]:(0,S.genFocusOutline)(e)},[`&:hover ${t}`]:{borderColor:o},[`&:hover ${t}-checked:not(${t}-disabled)`]:{backgroundColor:n,borderColor:"transparent"},[`${t}-checked`]:{backgroundColor:v,borderColor:o,"&::after":{transform:"translate(-50%, -50%)",opacity:1}},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},background:p,borderColor:s,"&::after":{backgroundColor:b}},[`${t}-disabled + span`]:{color:f,cursor:"not-allowed"},[`span${t} + *`]:{paddingInlineStart:m,paddingInlineEnd:m}}}})(n),(e=>{let{buttonColor:t,controlHeight:r,componentCls:o,lineWidth:n,lineType:l,colorBorder:a,motionDurationMid:i,buttonPaddingInline:c,fontSize:d,buttonBg:s,fontSizeLG:u,controlHeightLG:p,controlHeightSM:f,paddingXS:m,borderRadius:b,borderRadiusSM:g,borderRadiusLG:h,buttonCheckedBg:x,buttonSolidCheckedColor:v,colorTextDisabled:C,colorBgContainerDisabled:$,buttonCheckedBgDisabled:y,buttonCheckedColorDisabled:E,colorPrimary:w,colorPrimaryHover:R,colorPrimaryActive:I,buttonSolidCheckedBg:B,buttonSolidCheckedHoverBg:T,buttonSolidCheckedActiveBg:M,calc:z}=e;return{[`${o}-button-wrapper`]:{position:"relative",display:"inline-block",height:r,margin:0,paddingInline:c,paddingBlock:0,color:t,fontSize:d,lineHeight:(0,k.unit)(z(r).sub(z(n).mul(2)).equal()),background:s,border:`${(0,k.unit)(n)} ${l} ${a}`,borderBlockStartWidth:z(n).add(.02).equal(),borderInlineEndWidth:n,cursor:"pointer",transition:["color","background-color","box-shadow"].map(e=>`${e} ${i}`).join(","),a:{color:t},[`> ${o}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:last-child)":{marginInlineEnd:z(n).mul(-1).equal()},"&:first-child":{borderInlineStart:`${(0,k.unit)(n)} ${l} ${a}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${o}-group-large &`]:{height:p,fontSize:u,lineHeight:(0,k.unit)(z(p).sub(z(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:h,borderEndStartRadius:h},"&:last-child":{borderStartEndRadius:h,borderEndEndRadius:h}},[`${o}-group-small &`]:{height:f,paddingInline:z(m).sub(n).equal(),paddingBlock:0,lineHeight:(0,k.unit)(z(f).sub(z(n).mul(2)).equal()),"&:first-child":{borderStartStartRadius:g,borderEndStartRadius:g},"&:last-child":{borderStartEndRadius:g,borderEndEndRadius:g}},"&:hover":{position:"relative",color:w},"&:has(:focus-visible)":(0,S.genFocusOutline)(e),[`${o}, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${o}-button-wrapper-disabled)`]:{zIndex:1,color:w,background:x,borderColor:w,"&::before":{backgroundColor:w},"&:first-child":{borderColor:w},"&:hover":{color:R,borderColor:R,"&::before":{backgroundColor:R}},"&:active":{color:I,borderColor:I,"&::before":{backgroundColor:I}}},[`${o}-group-solid &-checked:not(${o}-button-wrapper-disabled)`]:{color:v,background:B,borderColor:B,"&:hover":{color:v,background:T,borderColor:T},"&:active":{color:v,background:M,borderColor:M}},"&-disabled":{color:C,backgroundColor:$,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:$,borderColor:a}},[`&-disabled${o}-button-wrapper-checked`]:{color:E,backgroundColor:y,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}})(n)]},e=>{let{wireframe:t,padding:r,marginXS:o,lineWidth:n,fontSizeLG:l,colorText:a,colorBgContainer:i,colorTextDisabled:c,controlItemBgActiveDisabled:d,colorTextLightSolid:s,colorPrimary:u,colorPrimaryHover:p,colorPrimaryActive:f,colorWhite:m}=e;return{radioSize:l,dotSize:t?l-8:l-(4+n)*2,dotColorDisabled:c,buttonSolidCheckedColor:s,buttonSolidCheckedBg:u,buttonSolidCheckedHoverBg:p,buttonSolidCheckedActiveBg:f,buttonBg:i,buttonCheckedBg:i,buttonColor:a,buttonCheckedBgDisabled:d,buttonCheckedColorDisabled:c,buttonPaddingInline:r-n,wrapperMarginInlineEnd:o,radioColor:t?u:m,radioBgColor:t?i:u}},{unitless:{radioSize:!0,dotSize:!0}});let I=t.forwardRef((e,r)=>{let o=t.useContext(p),n=t.useContext(m),{getPrefixCls:a,direction:d,className:u,style:f,classNames:b,styles:k}=(0,i.useComponentConfig)("radio"),S=t.useRef(null),E=(0,h.composeRef)(r,S),{isFormItemInput:w}=t.useContext(s.FormItemInputContext),{prefixCls:I,className:B,rootClassName:T,children:M,style:z,title:D,classNames:N,styles:H,...L}=e,O=a("radio",I),W="button"===(o?.optionType||n),F=W?`${O}-button`:O,q=(0,c.default)(O),[P,_]=R(O,q),A={...L},j=t.useContext(y.default),X=A.checked;o&&(A.name=o.name,A.onChange=t=>{e.onChange?.(t),o?.onChange?.(t)},X=e.value===o.value,A.disabled=A.disabled??o.disabled),A.disabled=A.disabled??j;let G={...e,...A,checked:X},[V,K]=(0,x.useMergeSemantic)([b,N],[k,H],{props:G}),U=(0,l.clsx)(`${F}-wrapper`,{[`${F}-wrapper-checked`]:X,[`${F}-wrapper-disabled`]:A.disabled,[`${F}-wrapper-rtl`]:"rtl"===d,[`${F}-wrapper-in-form-item`]:w,[`${F}-wrapper-block`]:!!o?.block},u,B,T,V.root,P,_,q),[J,Q]=(0,$.default)(A.onClick);return t.createElement(v.default,{component:"Radio",disabled:A.disabled},t.createElement("label",{className:U,style:{...K.root,...f,...z},onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:D,onClick:J},t.createElement(g.default,{...A,checked:X,className:(0,l.clsx)(V.icon,{[C.TARGET_CLS]:!W}),style:K.icon,type:"radio",prefixCls:F,ref:E,onClick:Q}),void 0!==M?t.createElement("span",{className:(0,l.clsx)(`${F}-label`,V.label),style:K.label},M):null))}),B=t.forwardRef((e,p)=>{let{getPrefixCls:m,direction:b}=t.useContext(i.ConfigContext),{name:g}=t.useContext(s.FormItemInputContext),h=(0,o.default)((0,u.toNamePathStr)(g)),{prefixCls:x,className:v,rootClassName:C,options:$,buttonStyle:y="outline",disabled:k,children:S,size:E,style:w,id:B,optionType:T,name:M=h,defaultValue:z,value:D,block:N=!1,onChange:H,onMouseEnter:L,onMouseLeave:O,onFocus:W,onBlur:F,orientation:q,vertical:P,role:_="radiogroup"}=e,[A,j]=(0,r.useControlledState)(z,D),X=t.useCallback(t=>{let r=t.target.value;"value"in e||j(r),r!==A&&H?.(t)},[A,j,H]),G=m("radio",x),V=`${G}-group`,K=(0,c.default)(G),[U,J]=R(G,K),Q=S;$&&$.length>0&&(Q=$.map(e=>"string"==typeof e||"number"==typeof e?t.createElement(I,{key:e.toString(),prefixCls:G,disabled:k,value:e,checked:A===e},e):t.createElement(I,{key:`radio-group-value-options-${e.value}`,prefixCls:G,disabled:e.disabled||k,value:e.value,checked:A===e.value,title:e.title,style:e.style,className:e.className,id:e.id,required:e.required},e.label)));let Y=(0,d.default)(E),[,Z]=(0,a.useOrientation)(q,P),ee=(0,l.clsx)(V,`${V}-${y}`,{[`${V}-large`]:"large"===Y,[`${V}-small`]:"small"===Y,[`${V}-rtl`]:"rtl"===b,[`${V}-block`]:N},v,C,U,J,K),et=t.useMemo(()=>({onChange:X,value:A,disabled:k,name:M,optionType:T,block:N}),[X,A,k,M,T,N]);return t.createElement("div",{...(0,n.default)(e,{aria:!0,data:!0}),role:_,className:(0,l.clsx)(ee,{[`${G}-group-vertical`]:Z}),style:w,onMouseEnter:L,onMouseLeave:O,onFocus:W,onBlur:F,id:B,ref:p},t.createElement(f,{value:et},Q))});var T=t.memo(B),M=t.forwardRef((e,r)=>{let{getPrefixCls:o}=t.useContext(i.ConfigContext),{prefixCls:n,...l}=e,a=o("radio",n);return t.createElement(b,{value:"button"},t.createElement(I,{prefixCls:a,...l,type:"radio",ref:r}))});I.Button=M,I.Group=T,I.__ANT_RADIO=!0,e.s(["default",0,I],422904)},560370,e=>{"use strict";e.i(495059);var t=e.i(191788),r=e.i(633829),o=e.i(100264),n=e.i(259165);e.i(957562);var l=e.i(191248),a=e.i(531983),i=e.i(617796),c=e.i(351212),d=e.i(851581),s=e.i(56206),u=e.i(708176),p=e.i(664557),f=e.i(993175),m=e.i(583082),b=e.i(188304),g={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"},h=e.i(117716);function x(){return(x=Object.assign.bind()).apply(this,arguments)}let v=t.forwardRef((e,r)=>t.createElement(h.default,x({},e,{ref:r,icon:g})));var C=e.i(536343),$=e.i(663032),y=e.i(97679),k=e.i(307441),S=e.i(352050);e.i(797652);var E=e.i(435187),w=(0,S.genStyleHooks)("Typography",e=>{let t,{componentCls:r,titleMarginTop:o}=e;return{[r]:{color:e.colorText,wordBreak:"break-word",lineHeight:e.lineHeight,[`&${r}-secondary, &${r}-link${r}-secondary`]:{color:e.colorTextDescription},[`&${r}-success, &${r}-link${r}-success`]:{color:e.colorSuccessText},[`&${r}-warning, &${r}-link${r}-warning`]:{color:e.colorWarningText},[`&${r}-danger, &${r}-link${r}-danger`]:{color:e.colorErrorText,[`&${r}-link:active, &${r}-link:focus`]:{color:e.colorErrorTextActive},[`&${r}-link:hover`]:{color:e.colorErrorTextHover}},[`&${r}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",userSelect:"none"},[`
|
|
div&,
|
|
p
|
|
`]:{marginBottom:"1em"},...(t={},[1,2,3,4,5].forEach(r=>{t[`
|
|
h${r}&,
|
|
div&-h${r},
|
|
div&-h${r} > textarea,
|
|
h${r}
|
|
`]=((e,t,r,o)=>{let{titleMarginBottom:n,fontWeightStrong:l}=o;return{marginBottom:n,color:r,fontWeight:l,fontSize:e,lineHeight:t}})(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),t),[`
|
|
& + h1${r},
|
|
& + h2${r},
|
|
& + h3${r},
|
|
& + h4${r},
|
|
& + h5${r}
|
|
`]:{marginTop:o},[`
|
|
div,
|
|
ul,
|
|
li,
|
|
p,
|
|
h1,
|
|
h2,
|
|
h3,
|
|
h4,
|
|
h5`]:{[`
|
|
+ h1,
|
|
+ h2,
|
|
+ h3,
|
|
+ h4,
|
|
+ h5
|
|
`]:{marginTop:o}},...{code:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.2em 0.1em",fontSize:"85%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3},kbd:{margin:"0 0.2em",paddingInline:"0.4em",paddingBlock:"0.15em 0.1em",fontSize:"90%",fontFamily:e.fontFamilyCode,background:"rgba(150, 150, 150, 0.06)",border:"1px solid rgba(100, 100, 100, 0.2)",borderBottomWidth:2,borderRadius:3},mark:{padding:0,backgroundColor:E.gold[2]},"u, ins":{textDecoration:"underline",textDecorationSkipInk:"auto"},"s, del":{textDecoration:"line-through"},strong:{fontWeight:e.fontWeightStrong},"ul, ol":{marginInline:0,marginBlock:"0 1em",padding:0,li:{marginInline:"20px 0",marginBlock:0,paddingInline:"4px 0",paddingBlock:0}},ul:{listStyleType:"circle",ul:{listStyleType:"disc"}},ol:{listStyleType:"decimal"},"pre, blockquote":{margin:"1em 0"},pre:{padding:"0.4em 0.6em",whiteSpace:"pre-wrap",wordWrap:"break-word",background:"rgba(150, 150, 150, 0.1)",border:"1px solid rgba(100, 100, 100, 0.2)",borderRadius:3,fontFamily:e.fontFamilyCode,code:{display:"inline",margin:0,padding:0,fontSize:"inherit",fontFamily:"inherit",background:"transparent",border:0}},blockquote:{paddingInline:"0.6em 0",paddingBlock:0,borderInlineStart:"4px solid rgba(100, 100, 100, 0.2)",opacity:.85}},...(e=>{let{componentCls:t}=e,r=`${t}-link`;return{[`&${r}`]:{...(0,k.operationUnit)(e),userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}}}})(e),[`${r}-actions`]:{display:"inline"},[`
|
|
${r}-expand,
|
|
${r}-collapse,
|
|
${r}-edit,
|
|
${r}-copy
|
|
`]:{...(0,k.operationUnit)(e),marginInlineStart:e.marginXXS},...(e=>{let{componentCls:t,paddingSM:r}=e;return{"&-edit-content":{position:"relative","div&":{insetInlineStart:e.calc(e.paddingSM).mul(-1).equal(),insetBlockStart:e.calc(r).div(-2).add(1).equal(),marginBottom:e.calc(r).div(2).sub(2).equal()},[`${t}-edit-content-confirm`]:{position:"absolute",insetInlineEnd:e.calc(e.marginXS).add(2).equal(),insetBlockEnd:e.marginXS,color:e.colorIcon,fontWeight:"normal",fontSize:e.fontSize,fontStyle:"normal",pointerEvents:"none"},textarea:{margin:"0!important",MozTransition:"none",height:"1em"}}}})(e),...{[`${e.componentCls}-copy-success`]:{[`
|
|
&,
|
|
&:hover,
|
|
&:focus`]:{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}},...{[`
|
|
a&-ellipsis,
|
|
span&-ellipsis
|
|
`]:{display:"inline-block",maxWidth:"100%"},"&-ellipsis-single-line":{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis","a&, span&":{verticalAlign:"bottom"},"> code":{paddingBlock:0,maxWidth:"calc(100% - 1.2em)",display:"inline-block",overflow:"hidden",textOverflow:"ellipsis",verticalAlign:"bottom",boxSizing:"content-box"}},"&-ellipsis-multiple-line":{display:"-webkit-box",overflow:"hidden",WebkitLineClamp:3,WebkitBoxOrient:"vertical"}},"&-rtl":{direction:"rtl"}}}},()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"})),R=e=>{let{prefixCls:r,"aria-label":o,className:n,style:l,direction:a,maxLength:i,autoSize:c=!0,value:d,onSave:u,onCancel:p,onEnd:f,component:m,enterIcon:b=t.createElement(v,null)}=e,g=t.useRef(null),h=t.useRef(!1),x=t.useRef(null),[k,S]=t.useState(d);t.useEffect(()=>{S(d)},[d]),t.useEffect(()=>{if(g.current?.resizableTextArea){let{textArea:e}=g.current.resizableTextArea;e.focus();let{length:t}=e.value;e.setSelectionRange(t,t)}},[]);let E=()=>{u(k.trim())},[R,I]=w(r),B=(0,s.clsx)(r,`${r}-edit-content`,{[`${r}-rtl`]:"rtl"===a,[`${r}-${m}`]:!!m},n,R,I);return t.createElement("div",{className:B,style:l},t.createElement(y.default,{ref:g,maxLength:i,value:k,onChange:({target:e})=>{S(e.value.replace(/[\n\r]/g,""))},onKeyDown:({keyCode:e})=>{h.current||(x.current=e)},onKeyUp:({keyCode:e,ctrlKey:t,altKey:r,metaKey:o,shiftKey:n})=>{x.current!==e||h.current||t||r||o||n||(e===C.default.ENTER?(E(),f?.()):e===C.default.ESC&&p())},onCompositionStart:()=>{h.current=!0},onCompositionEnd:()=>{h.current=!1},onBlur:()=>{E()},"aria-label":o,rows:1,autoSize:c}),null!==b?(0,$.cloneElement)(b,{className:`${r}-edit-content-confirm`}):null)},I=e.i(27593);let B=async(e,t)=>{try{return t?await navigator.clipboard.write([new ClipboardItem({"text/html":new Blob([e],{type:"text/html"}),"text/plain":new Blob([e],{type:"text/plain"})})]):await navigator.clipboard.writeText(e),!0}catch{return!1}};async function T(e,t){if("string"!=typeof e)return!1;let r=t?.format==="text/html";return!!(await B(e,r)||((e,t)=>{let r=!1,o=o=>{o.stopPropagation(),o.preventDefault(),o.clipboardData?.clearData(),o.clipboardData?.setData("text/plain",e),t&&o.clipboardData?.setData("text/html",e),r=!0};try{return document.addEventListener("copy",o,{capture:!0}),document.execCommand("copy"),r}catch{return!1}finally{document.removeEventListener("copy",o,{capture:!0})}})(e,r))}var M=e.i(154165);function z(e,r){return t.useMemo(()=>{let t=!!e;return[t,{...r,...t&&"object"==typeof e?e:null}]},[e])}let D=t.forwardRef((e,r)=>{let{prefixCls:o,component:n="article",className:l,rootClassName:a,children:i,direction:c,style:d,...u}=e,{getPrefixCls:p,direction:m,className:b,style:g}=(0,f.useComponentConfig)("typography"),h=p("typography",o),[x,v]=w(h),C=(0,s.clsx)(h,b,{[`${h}-rtl`]:"rtl"===(c??m)},l,a,x,v),$={...g,...d};return t.createElement(n,{className:C,style:$,ref:r,...u},i)});var N=e.i(146025),H=e.i(636207),L=e.i(677057);let O=e=>!1===e?[!1,!1]:(0,M.default)(e);function W(e,t,r){return!0===e||void 0===e?t:e||r&&t}let F=e=>["string","number"].includes(typeof e);var q=e=>{let{prefixCls:r,copied:o,locale:n,iconOnly:l,tooltips:a,icon:i,tabIndex:c,onCopy:d,loading:u}=e,p=O(a),f=O(i),{copied:m,copy:g}=n??{},h=o?m:g,x=W(p[+!!o],h),v="string"==typeof x?x:h;return t.createElement(b.default,{title:x},t.createElement("button",{type:"button",className:(0,s.clsx)(`${r}-copy`,{[`${r}-copy-success`]:o,[`${r}-copy-icon-only`]:l}),onClick:d,"aria-label":v,tabIndex:c},o?W(f[1],t.createElement(N.default,null),!0):W(f[0],u?t.createElement(L.default,null):t.createElement(H.default,null),!0)))};let P=t.forwardRef(({style:e,children:r},o)=>{let n=t.useRef(null);return t.useImperativeHandle(o,()=>({isExceed:()=>{let e=n.current;return e.scrollHeight>e.clientHeight},getHeight:()=>n.current.clientHeight})),t.createElement("span",{"aria-hidden":!0,ref:n,style:{position:"fixed",display:"block",left:0,top:0,pointerEvents:"none",backgroundColor:"rgba(255, 0, 0, 0.65)",...e}},r)});function _(e,t){let r=0,o=[];for(let n=0;n<e.length;n+=1){if(r===t)return o;let l=e[n],a=r+(F(l)?String(l).length:1);if(a>t){let e=t-r;return o.push(String(l).slice(0,e)),o}o.push(l),r=a}return e}let A={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function j(e){let{enableMeasure:o,width:n,text:l,children:i,rows:d,expanded:s,miscDeps:u,onEllipsis:p}=e,f=t.useMemo(()=>(0,a.toArray)(l),[l]),m=t.useMemo(()=>f.reduce((e,t)=>e+(F(t)?String(t).length:1),0),[l]),b=t.useMemo(()=>i(f,!1),[l]),[g,h]=t.useState(null),x=t.useRef(null),v=t.useRef(null),C=t.useRef(null),$=t.useRef(null),y=t.useRef(null),[k,S]=t.useState(!1),[E,w]=t.useState(0),[R,I]=t.useState(0),[B,T]=t.useState(null);(0,c.default)(()=>{o&&n&&m?w(1):w(0)},[n,l,d,o,f]),(0,c.default)(()=>{if(1===E)w(2),T(v.current&&getComputedStyle(v.current).whiteSpace);else if(2===E){let e=!!C.current?.isExceed();w(e?3:4),h(e?[0,m]:null),S(e),I(Math.max(C.current?.getHeight()||0,(1===d?0:$.current?.getHeight()||0)+(y.current?.getHeight()||0))+1),p(e)}},[E]);let M=g?Math.ceil((g[0]+g[1])/2):0;(0,c.default)(()=>{let[e,t]=g||[0,0];if(e!==t){let r=(x.current?.getHeight()||0)>R,o=M;t-e==1&&(o=r?e:t),h(r?[e,o]:[o,t])}},[g,M]);let z=t.useMemo(()=>{if(!o)return i(f,!1);if(3!==E||!g||g[0]!==g[1]){let e=i(f,!1);return[4,0].includes(E)?e:t.createElement("span",{style:{...A,WebkitLineClamp:d}},e)}return i(s?f:_(f,g[0]),k)},[s,E,g,f].concat((0,r.default)(u))),D={width:n,margin:0,padding:0,whiteSpace:"nowrap"===B?"normal":"inherit"};return t.createElement(t.Fragment,null,z,2===E&&t.createElement(t.Fragment,null,t.createElement(P,{style:{...D,...A,WebkitLineClamp:d},ref:C},b),t.createElement(P,{style:{...D,...A,WebkitLineClamp:d-1},ref:$},b),t.createElement(P,{style:{...D,...A,WebkitLineClamp:1},ref:y},i([],!0))),3===E&&g&&g[0]!==g[1]&&t.createElement(P,{style:{...D,top:400},ref:x},i(_(f,M),!0)),1===E&&t.createElement("span",{style:{whiteSpace:"inherit"},ref:v}))}var X=({enableEllipsis:e,isEllipsis:r,open:o,children:n,tooltipProps:l})=>l?.title&&e?t.createElement(b.default,{open:o&&r,...l},n):n;let G=["delete","mark","code","underline","strong","keyboard","italic"],V=t.forwardRef((e,g)=>{let h,x,v,{prefixCls:C,className:$,style:y,type:k,disabled:S,children:E,ellipsis:w,editable:B,copyable:N,component:H,title:L,onMouseEnter:O,onMouseLeave:W,...P}=e,{getPrefixCls:_,direction:A}=t.useContext(f.ConfigContext),[V]=(0,m.default)("Text"),K=t.useRef(null),U=t.useRef(null),J=_("typography",C),Q=(0,l.omit)(P,G),[Y,Z]=z(B),[ee,et]=(0,i.useControlledState)(!1,Z.editing),{triggerType:er=["icon"]}=Z,eo=e=>{e&&Z.onStart?.(),et(e)},en=(h=(0,t.useRef)(void 0),(0,t.useEffect)(()=>{h.current=ee}),h.current);(0,c.default)(()=>{!ee&&en&&U.current?.focus()},[ee]);let el=e=>{e?.preventDefault(),eo(!0)},[ea,ei]=z(N),{copied:ec,copyLoading:ed,onClick:es}=(({copyConfig:e,children:r})=>{let[o,n]=t.useState(!1),[l,a]=t.useState(!1),i=t.useRef(null),c=()=>{i.current&&clearTimeout(i.current)},d={};return e.format&&(d.format=e.format),t.useEffect(()=>c,[]),{copied:o,copyLoading:l,onClick:(0,I.useEvent)(async t=>{t?.preventDefault(),t?.stopPropagation(),a(!0);try{let o="function"==typeof e.text?await e.text():e.text;await T(o||(0,M.default)(r,{skipEmpty:!0}).join("")||"",d),a(!1),n(!0),c(),i.current=setTimeout(()=>{n(!1)},3e3),e.onCopy?.(t)}catch(e){throw a(!1),e}})}})({copyConfig:ei,children:E}),[eu,ep]=t.useState(!1),[ef,em]=t.useState(!1),[eb,eg]=t.useState(!1),[eh,ex]=t.useState(!1),[ev,eC]=t.useState(!0),[e$,ey]=z(w,{expandable:!1,symbol:e=>e?V?.collapse:V?.expand}),[ek,eS]=(0,i.useControlledState)(ey.defaultExpanded||!1,ey.expanded),eE=e$&&(!ek||"collapsible"===ey.expandable),{rows:ew=1}=ey,eR=t.useMemo(()=>eE&&(void 0!==ey.suffix||ey.onEllipsis||ey.expandable||Y||ea),[eE,ey,Y,ea]);(0,c.default)(()=>{e$&&!eR&&(ep((0,p.isStyleSupport)("webkitLineClamp")),em((0,p.isStyleSupport)("textOverflow")))},[eR,e$]);let[eI,eB]=t.useState(eE),eT=t.useMemo(()=>!eR&&(1===ew?ef:eu),[eR,ef,eu]);(0,c.default)(()=>{eB(eT&&eE)},[eT,eE]);let eM=eE&&(eI?eh:eb),ez=eE&&1===ew&&eI,eD=eE&&ew>1&&eI,[eN,eH]=t.useState(0),[eL,eO]=t.useState(!1),[eW,eF]=t.useState(!1),eq=e=>{eg(e),eb!==e&&ey.onEllipsis?.(e)};t.useEffect(()=>{let e=K.current;if(e$&&eI&&e){let t,r,o,n=(t=document.createElement("em"),e.appendChild(t),r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),e.removeChild(t),r.left>o.left||o.right>r.right||r.top>o.top||o.bottom>r.bottom);eh!==n&&ex(n)}},[e$,eI,E,eD,ev,eN]),t.useEffect(()=>{let e=K.current;if("u"<typeof IntersectionObserver||!e||!eI||!eE)return;let t=new IntersectionObserver(()=>{eC(!!e.offsetParent)});return t.observe(e),()=>{t.disconnect()}},[eI,eE]);let eP=(x=ey.tooltip,v=Z.text,(0,t.useMemo)(()=>!0===x?{title:v??E}:(0,t.isValidElement)(x)?{title:x}:"object"==typeof x?{title:v??E,...x}:{title:x},[x,v,E])),e_=t.useMemo(()=>{if(e$&&!eI)return[Z.text,E,L,eP.title].find(F)},[e$,eI,L,eP.title,eM]);return ee?t.createElement(R,{value:Z.text??("string"==typeof E?E:""),onSave:e=>{Z.onChange?.(e),eo(!1)},onCancel:()=>{Z.onCancel?.(),eo(!1)},onEnd:Z.onEnd,prefixCls:J,className:$,style:y,direction:A,component:H,maxLength:Z.maxLength,autoSize:Z.autoSize,enterIcon:Z.enterIcon}):t.createElement(n.default,{onResize:({offsetWidth:e})=>{eH(e)},disabled:!eE},n=>t.createElement(X,{tooltipProps:eP,enableEllipsis:eE,isEllipsis:eM,open:eW&&!eL},t.createElement(D,{onMouseEnter:e=>{eF(!0),O?.(e)},onMouseLeave:e=>{eF(!1),W?.(e)},className:(0,s.clsx)({[`${J}-${k}`]:k,[`${J}-disabled`]:S,[`${J}-ellipsis`]:e$,[`${J}-ellipsis-single-line`]:ez,[`${J}-ellipsis-multiple-line`]:eD,[`${J}-link`]:"a"===H},$),prefixCls:C,style:{...y,WebkitLineClamp:eD?ew:void 0},component:H,ref:(0,d.composeRef)(n,K,g),direction:A,onClick:er.includes("text")?el:void 0,"aria-label":e_?.toString(),title:L,...Q},t.createElement(j,{enableMeasure:eE&&!eI,text:E,rows:ew,width:eN,onEllipsis:eq,expanded:ek,miscDeps:[ec,ek,ed,Y,ea,V].concat((0,r.default)(G.map(t=>e[t])))},(r,n)=>{var l;let i,c,d;return function({mark:e,code:r,underline:o,delete:n,strong:l,keyboard:a,italic:i},c){let d=c;function s(e,r){r&&(d=t.createElement(e,{},d))}return s("strong",l),s("u",o),s("del",n),s("code",r),s("mark",e),s("kbd",a),s("i",i),d}(e,t.createElement(t.Fragment,null,r.length>0&&n&&!ek&&e_?t.createElement("span",{key:"show-content","aria-hidden":!0},r):r,[(l=n)&&!ek&&t.createElement("span",{"aria-hidden":!0,key:"ellipsis"},"..."),ey.suffix,(i=l&&(()=>{let{expandable:e,symbol:r}=ey;return e?t.createElement("button",{type:"button",key:"expand",className:`${J}-${ek?"collapse":"expand"}`,onClick:e=>{var t;eS((t={expanded:!ek}).expanded),ey.onExpand?.(e,t)},"aria-label":ek?V.collapse:V?.expand},"function"==typeof r?r(ek):r):null})(),c=(()=>{if(!Y)return;let{icon:e,tooltip:r,tabIndex:n}=Z,l=(0,a.toArray)(r)[0]||V?.edit,i="string"==typeof l?l:"";return er.includes("icon")?t.createElement(b.default,{key:"edit",title:!1===r?"":l},t.createElement("button",{type:"button",ref:U,className:`${J}-edit`,onClick:el,"aria-label":i,tabIndex:n},e||t.createElement(o.default,{role:"button"}))):null})(),d=ea?t.createElement(q,{key:"copy",...ei,prefixCls:J,copied:ec,locale:V,onCopy:es,loading:ed,iconOnly:!(0,u.default)(E)}):null,i||c||d?t.createElement("span",{key:"operations",className:`${J}-actions`,onMouseEnter:()=>eO(!0),onMouseLeave:()=>eO(!1)},i,c,d):null)]))}))))}),K=t.forwardRef((e,r)=>{let{ellipsis:o,rel:n,children:l,navigate:a,...i}=e,c={...i,rel:void 0===n&&"_blank"===i.target?"noopener noreferrer":n};return t.createElement(V,{...c,ref:r,ellipsis:!!o,component:"a"},l)}),U=t.forwardRef((e,r)=>{let{children:o,...n}=e;return t.createElement(V,{ref:r,...n,component:"div"},o)}),J=t.forwardRef((e,r)=>{let{ellipsis:o,children:n,...a}=e,i=t.useMemo(()=>o&&"object"==typeof o?(0,l.omit)(o,["expandable","rows"]):o,[o]);return t.createElement(V,{ref:r,...a,ellipsis:i,component:"span"},n)}),Q=[1,2,3,4,5],Y=t.forwardRef((e,r)=>{let{level:o=1,children:n,...l}=e,a=Q.includes(o)?`h${o}`:"h1";return t.createElement(V,{ref:r,...l,component:a},n)});D.Text=J,D.Link=K,D.Title=Y,D.Paragraph=U,e.s(["Typography",0,D],560370)}]);
|