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

1 lines
20 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,26486,e=>{"use strict";var l=e.i(391398),t=e.i(927494),o=e.i(977892);e.i(495059);var a=e.i(191788),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 512a48 48 0 1096 0 48 48 0 10-96 0zm200 0a48 48 0 1096 0 48 48 0 10-96 0zm-400 0a48 48 0 1096 0 48 48 0 10-96 0zm661.2-173.6c-22.6-53.7-55-101.9-96.3-143.3a444.35 444.35 0 00-143.3-96.3C630.6 75.7 572.2 64 512 64h-2c-60.6.3-119.3 12.3-174.5 35.9a445.35 445.35 0 00-142 96.5c-40.9 41.3-73 89.3-95.2 142.8-23 55.4-34.6 114.3-34.3 174.9A449.4 449.4 0 00112 714v152a46 46 0 0046 46h152.1A449.4 449.4 0 00510 960h2.1c59.9 0 118-11.6 172.7-34.3a444.48 444.48 0 00142.8-95.2c41.3-40.9 73.8-88.7 96.5-142 23.6-55.2 35.6-113.9 35.9-174.5.3-60.9-11.5-120-34.8-175.6zm-151.1 438C704 845.8 611 884 512 884h-1.7c-60.3-.3-120.2-15.3-173.1-43.5l-8.4-4.5H188V695.2l-4.5-8.4C155.3 633.9 140.3 574 140 513.7c-.4-99.7 37.7-193.3 107.6-263.8 69.8-70.5 163.1-109.5 262.8-109.9h1.7c50 0 98.5 9.7 144.2 28.9 44.6 18.7 84.6 45.6 119 80 34.3 34.3 61.3 74.4 80 119 19.4 46.2 29.1 95.2 28.9 145.8-.6 99.6-39.7 192.9-110.1 262.7z"}}]},name:"message",theme:"outlined"},i=e.i(117716);function n(){return(n=Object.assign.bind()).apply(this,arguments)}let s=a.forwardRef((e,l)=>a.createElement(i.default,n({},e,{ref:l,icon:r})));var c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};function d(){return(d=Object.assign.bind()).apply(this,arguments)}let m=a.forwardRef((e,l)=>a.createElement(i.default,d({},e,{ref:l,icon:c})));e.i(113297);var g=e.i(134124),u=e.i(313367),p=e.i(946077),h=e.i(76820),x=e.i(882474),f=e.i(326440),b=e.i(245538),C=e.i(847942),v=e.i(543330),y=e.i(184897),k=e.i(397591),j=e.i(494834),$=e.i(827830);let S=(0,$.createStyles)(({token:e})=>({description:{maxWidth:"720px",lineHeight:"22px"},extra:{marginTop:"16px",color:e.colorTextSecondary,lineHeight:"22px","& > em":{marginLeft:"16px",color:e.colorTextDisabled,fontStyle:"normal"},[`@media screen and (max-width: ${e.screenXS}px)`]:{"& > em":{display:"block",marginTop:"8px",marginLeft:"0"}}}}));var w=({data:{content:e,updatedAt:t,avatar:o,owner:a,href:r}})=>{let{styles:i}=S();return(0,l.jsxs)("div",{children:[(0,l.jsx)("div",{className:i.description,children:e}),(0,l.jsxs)("div",{className:i.extra,children:[(0,l.jsx)(k.Avatar,{src:o,size:"small"}),(0,l.jsx)("a",{href:r,children:a})," 发布在 ",(0,l.jsx)("a",{href:r,children:r}),(0,l.jsx)("em",{children:(0,j.default)(t).format("YYYY-MM-DD HH:mm")})]})]})},T=e.i(259315);let B=(0,$.createStyles)(({token:e})=>({standardFormRow:{display:"flex",width:"100%",marginBottom:"16px",paddingBottom:"16px",borderBottom:`1px dashed ${e.colorSplit}`,".ant-form-item, .ant-legacy-form-item":{marginRight:"24px"},".ant-form-item-label, .ant-legacy-form-item-label":{label:{marginRight:"0",color:e.colorText}},".ant-form-item-label, .ant-legacy-form-item-label, .ant-form-item-control, .ant-legacy-form-item-control":{padding:"0",lineHeight:"32px"}},label:{flex:"0 0 auto",marginRight:"24px",color:e.colorTextHeading,fontSize:e.fontSize,textAlign:"right","& > span":{display:"inline-block",height:"32px",lineHeight:"32px","&::after":{content:"':'"}}},content:{flex:"1 1 0",".ant-form-item, .ant-legacy-form-item":{"&:last-child":{display:"block",marginRight:"0"}}},standardFormRowLast:{marginBottom:"0",paddingBottom:"0",border:"none"},standardFormRowBlock:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"}},standardFormRowGrid:{".ant-form-item, .ant-legacy-form-item, div.ant-form-item-control-wrapper, div.ant-legacy-form-item-control-wrapper":{display:"block"},".ant-form-item-label, .ant-legacy-form-item-label":{float:"left"}}}));var R=({title:e,children:t,last:o,block:a,grid:r,...i})=>{let{styles:n}=B(),s=(0,T.default)(n.standardFormRow,{[n.standardFormRowBlock]:a,[n.standardFormRowLast]:o,[n.standardFormRowGrid]:r});return(0,l.jsxs)("div",{className:s,...i,children:[e&&(0,l.jsx)("div",{className:n.label,children:(0,l.jsx)("span",{children:e})}),(0,l.jsx)("div",{className:n.content,children:t})]})},z=e.i(954942),M=e.i(697497);e.i(957562);var H=e.i(707720);let L=(0,$.createStyles)(({token:e})=>({tagSelect:{position:"relative",maxHeight:"32px",marginLeft:"-8px",overflow:"hidden",lineHeight:"32px",transition:"all 0.3s",userSelect:"none",".ant-tag":{marginRight:"24px",padding:"0 8px",fontSize:e.fontSize}},trigger:{position:"absolute",top:"0",right:"0","span.anticon":{fontSize:"12px"}},expanded:{maxHeight:"200px",transition:"all 0.3s"},hasExpandTag:{paddingRight:"50px"}})),{CheckableTag:N}=v.Tag,E=({children:e,checked:t,onChange:o,value:a})=>(0,l.jsx)(N,{checked:!!t,onChange:e=>o?.(a,e),children:e},a);E.isTagSelectOption=!0;let D=e=>{let{styles:t}=L(),{children:o,hideCheckAll:r=!1,className:i,style:n,expandable:s,actionsText:c={}}=e,[d,m]=(0,a.useState)(!1),[g,u]=(0,H.useMergedState)(e.defaultValue||[],{value:e.value,defaultValue:e.defaultValue,onChange:e.onChange}),p=e=>e?.type&&(e.type.isTagSelectOption||"TagSelectOption"===e.type.displayName),h=(0,a.useMemo)(()=>a.default.Children.toArray(o).filter(e=>p(e)).map(e=>e.props.value),[o]),x=(0,a.useMemo)(()=>new Set(g||[]),[g]),f=(e,l)=>{let t=new Set(g||[]);l?t.add(e):t.delete(e),u([...t])},b=h.length===g?.length&&h.length>0,{expandText:C="展开",collapseText:v="收起",selectAllText:y="全部"}=c,k=(0,T.default)(t.tagSelect,i,{[t.hasExpandTag]:s,[t.expanded]:d});return(0,l.jsxs)("div",{className:k,style:n,children:[r?null:(0,l.jsx)(N,{checked:b,onChange:e=>{u(e?[...h]:[])},children:y},"tag-select-__all__"),o&&a.default.Children.map(o,e=>p(e)?a.default.cloneElement(e,{key:`tag-select-${e.props.value}`,value:e.props.value,checked:x.has(e.props.value),onChange:f}):e),s&&(0,l.jsx)("a",{className:t.trigger,onClick:()=>{m(!d)},children:d?(0,l.jsxs)(l.Fragment,{children:[v," ",(0,l.jsx)(M.UpOutlined,{})]}):(0,l.jsxs)(l.Fragment,{children:[C,(0,l.jsx)(z.DownOutlined,{})]})})]})};async function F(e){return(0,g.request)("/api/fake_list",{params:e})}D.Option=E;let I=(0,$.createStyles)(({token:e})=>({listItemMetaTitle:{color:e.colorTextHeading},listItemExtra:{width:"272px",height:"1px",[`@media screen and (max-width: ${e.screenLG}px)`]:{width:"0",height:"1px"}},selfTrigger:{marginLeft:"12px",[`@media screen and (max-width: ${e.screenXS}px)`]:{display:"block",marginLeft:"0"},[`@media screen and (max-width: ${e.screenMD}px)`]:{display:"block",marginLeft:"0"}}})),O=x.Form.Item,A=({type:e,text:o})=>{switch(e){case"star-o":return(0,l.jsxs)("span",{children:[(0,l.jsx)(m,{style:{marginRight:8}}),o]});case"like-o":return(0,l.jsxs)("span",{children:[(0,l.jsx)(t.LikeOutlined,{style:{marginRight:8}}),o]});case"message":return(0,l.jsxs)("span",{children:[(0,l.jsx)(s,{style:{marginRight:8}}),o]});default:return null}};e.s(["default",0,()=>{let[e]=x.Form.useForm(),{styles:t}=I(),{data:r,reload:i,loading:n,loadMore:s,loadingMore:c}=(0,g.useRequest)(()=>F({count:5}),{loadMore:!0}),d=r?.list||[],m=[{id:"wzj",name:"我自己"},{id:"wjh",name:"吴家豪"},{id:"zxx",name:"周星星"},{id:"zly",name:"赵丽颖"},{id:"ym",name:"姚明"}],k={wrapperCol:{xs:{span:24},sm:{span:24},md:{span:12}}},j=d.length>0&&(0,l.jsx)("div",{style:{textAlign:"center",marginTop:16},children:(0,l.jsx)(u.Button,{onClick:s,style:{paddingLeft:48,paddingRight:48},children:c?(0,l.jsxs)("span",{children:[(0,l.jsx)(o.LoadingOutlined,{})," 加载中..."]}):"加载更多"})}),$=(0,a.useMemo)(()=>m.map(e=>({label:e.name,value:e.id})),[]);return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(p.Card,{variant:"borderless",children:(0,l.jsxs)(x.Form,{layout:"inline",form:e,initialValues:{owner:["wjh","zxx"]},onValuesChange:i,children:[(0,l.jsx)(R,{title:"所属类目",block:!0,style:{paddingBottom:11},children:(0,l.jsx)(O,{name:"category",children:(0,l.jsx)(D,{expandable:!0,children:y.categoryOptions.filter(e=>void 0!==e.value&&null!==e.value).map(e=>(0,l.jsx)(D.Option,{value:e.value,children:e.label},e.value))})})}),(0,l.jsxs)(R,{title:"owner",grid:!0,children:[(0,l.jsx)(O,{name:"owner",noStyle:!0,children:(0,l.jsx)(C.Select,{mode:"multiple",placeholder:"选择 owner",style:{minWidth:"6rem"},options:$})}),(0,l.jsx)("a",{className:t.selfTrigger,onClick:()=>{e.setFieldsValue({owner:["wzj"]})},children:"只看自己的"})]}),(0,l.jsx)(R,{title:"其它选项",grid:!0,last:!0,children:(0,l.jsxs)(b.Row,{gutter:16,children:[(0,l.jsx)(h.Col,{xl:8,lg:10,md:12,sm:24,xs:24,children:(0,l.jsx)(O,{...k,label:"活跃用户",name:"user",children:(0,l.jsx)(C.Select,{placeholder:"不限",style:{maxWidth:200,width:"100%"},options:[{label:"李三",value:"lisa"}]})})}),(0,l.jsx)(h.Col,{xl:8,lg:10,md:12,sm:24,xs:24,children:(0,l.jsx)(O,{...k,label:"好评度",name:"rate",children:(0,l.jsx)(C.Select,{placeholder:"不限",style:{maxWidth:200,width:"100%"},options:[{label:"优秀",value:"good"}]})})})]})})]})}),(0,l.jsx)(p.Card,{style:{marginTop:24},variant:"borderless",styles:{body:{padding:"8px 32px 32px 32px"}},children:(0,l.jsx)(f.List,{size:"large",loading:n,rowKey:"id",itemLayout:"vertical",loadMore:j,dataSource:d,renderItem:e=>(0,l.jsxs)(f.List.Item,{actions:[(0,l.jsx)(A,{type:"star-o",text:e.star},"star"),(0,l.jsx)(A,{type:"like-o",text:e.like},"like"),(0,l.jsx)(A,{type:"message",text:e.message},"message")],extra:(0,l.jsx)("div",{className:t.listItemExtra}),children:[(0,l.jsx)(f.List.Item.Meta,{title:(0,l.jsx)("a",{className:t.listItemMetaTitle,href:e.href,children:e.title}),description:(0,l.jsxs)("span",{children:[(0,l.jsx)(v.Tag,{children:"Ant Design"}),(0,l.jsx)(v.Tag,{children:"设计语言"}),(0,l.jsx)(v.Tag,{children:"蚂蚁金服"})]})}),(0,l.jsx)(w,{data:e})]},e.id)})})]})}],26486)},184897,697497,707720,e=>{"use strict";let l=Array.from({length:12}).map((e,l)=>({value:`cat${l+1}`,label:`类目${l+1}`}));e.s(["categoryOptions",0,l],184897);var t=e.i(283949);e.s(["UpOutlined",()=>t.default],697497);var o=e.i(892858);e.s(["useMergedState",()=>o.default],707720)},543330,e=>{"use strict";e.i(495059);var l=e.i(191788);e.i(957562);var t=e.i(191248),o=e.i(56206),a=e.i(818844),r=e.i(430898),i=e.i(663032),n=e.i(498324),s=e.i(993175),c=e.i(82038);e.i(290586);var d=e.i(774778);e.i(644038);var m=e.i(839904),g=e.i(78255),u=e.i(577267),p=e.i(307441),h=e.i(352050),x=e.i(104616);let f=e=>{let{lineWidth:l,fontSizeIcon:t,calc:o}=e,a=e.fontSizeSM;return(0,x.mergeToken)(e,{tagFontSize:a,tagLineHeight:(0,d.unit)(o(e.lineHeightSM).mul(a).equal()),tagIconSize:o(t).sub(o(l).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},b=e=>{let l=(0,u.isBright)(new g.AggregationColor(e.colorBgSolid),"#fff")?"#000":"#fff";return{defaultBg:new m.FastColor(e.colorFillTertiary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText,solidTextColor:l}};var C=(0,h.genStyleHooks)("Tag",e=>(e=>{let{paddingXXS:l,lineWidth:t,tagPaddingHorizontal:o,componentCls:a,calc:r}=e,i=r(o).sub(t).equal(),n=r(l).sub(t).equal();return{[a]:{...(0,p.resetComponent)(e),display:"inline-block",height:"auto",paddingInline:i,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",backgroundColor:e.defaultBg,border:`${(0,d.unit)(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusSM,opacity:1,transition:`all ${e.motionDurationMid}`,textAlign:"start",position:"relative",[`&${a}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:e.defaultColor},[`${a}-close-icon`]:{marginInlineStart:n,fontSize:e.tagIconSize,color:e.colorIcon,cursor:"pointer",transition:`all ${e.motionDurationMid}`,"&:hover":{color:e.colorTextHeading}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${a}-checkable-checked):hover`]:{color:e.colorPrimary,backgroundColor:e.colorFillSecondary},"&:active, &-checked":{color:e.colorTextLightSolid},"&-checked":{backgroundColor:e.colorPrimary,"&:hover":{backgroundColor:e.colorPrimaryHover}},"&:active":{backgroundColor:e.colorPrimaryActive},"&-disabled":{cursor:"not-allowed",[`&:not(${a}-checkable-checked)`]:{color:e.colorTextDisabled,"&:hover":{backgroundColor:"transparent"}},[`&${a}-checkable-checked`]:{color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled},"&:hover, &:active":{backgroundColor:e.colorBgContainerDisabled,color:e.colorTextDisabled},[`&:not(${a}-checkable-checked):hover`]:{color:e.colorTextDisabled}},"&-group":{display:"flex",flexWrap:"wrap",gap:e.paddingXS}},"&-hidden":{display:"none"},[`> ${e.iconCls} + span, > span + ${e.iconCls}`]:{marginInlineStart:i}},[`&${e.componentCls}-solid`]:{borderColor:"transparent",color:e.colorTextLightSolid,backgroundColor:e.colorBgSolid,[`&${a}-default`]:{color:e.solidTextColor}},[`${a}-filled`]:{borderColor:"transparent",backgroundColor:e.tagBorderlessBg},[`&${a}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed",backgroundColor:e.colorBgContainerDisabled,a:{cursor:"not-allowed",pointerEvents:"none",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}},"a&":{"&:hover, &:active":{color:e.colorTextDisabled}},[`&${a}-outlined`]:{borderColor:e.colorBorderDisabled},[`&${a}-solid, &${a}-filled`]:{color:e.colorTextDisabled,[`${a}-close-icon`]:{color:e.colorTextDisabled}},[`${a}-close-icon`]:{cursor:"not-allowed",color:e.colorTextDisabled,"&:hover":{color:e.colorTextDisabled}}}}})(f(e)),b);let v=l.forwardRef((e,t)=>{let{prefixCls:a,style:r,className:i,checked:n,children:d,icon:m,onChange:g,onClick:u,disabled:p,...h}=e,{getPrefixCls:x,tag:f}=l.useContext(s.ConfigContext),b=l.useContext(c.default),v=p??b,y=x("tag",a),[k,j]=C(y),$=(0,o.clsx)(y,`${y}-checkable`,{[`${y}-checkable-checked`]:n,[`${y}-checkable-disabled`]:v},f?.className,i,k,j);return l.createElement("span",{...h,ref:t,style:{...r,...f?.style},className:$,onClick:e=>{v||(g?.(!n),u?.(e))}},m,l.createElement("span",null,d))});var y=e.i(633829),k=e.i(617796),j=e.i(624200),$=e.i(749919);let S=l.default.forwardRef((e,t)=>{let{id:a,prefixCls:i,rootClassName:n,className:c,style:d,classNames:m,styles:g,disabled:u,options:p,value:h,defaultValue:x,onChange:f,multiple:b,...S}=e,{getPrefixCls:w,direction:T,className:B,style:R,classNames:z,styles:M}=(0,s.useComponentConfig)("tag"),H=w("tag",i),L=`${H}-checkable-group`,N=(0,$.default)(H),[E,D]=C(H,N),[F,I]=(0,r.useMergeSemantic)([z,m],[M,g],{props:e}),O=(0,l.useMemo)(()=>Array.isArray(p)?p.map(e=>e&&"object"==typeof e?e:{value:e,label:e}):[],[p]),[A,_]=(0,k.useControlledState)(x,h),P=l.default.useRef(null);(0,l.useImperativeHandle)(t,()=>({nativeElement:P.current}));let V=(0,j.default)(S,{aria:!0,data:!0});return l.default.createElement("div",{...V,className:(0,o.clsx)(L,B,n,{[`${L}-disabled`]:u,[`${L}-rtl`]:"rtl"===T},E,D,c,F.root),style:{...R,...I.root,...d},id:a,ref:P},O.map(e=>l.default.createElement(v,{key:e.value,className:(0,o.clsx)(`${L}-item`,F.item),style:I.item,checked:b?(A||[]).includes(e.value):A===e.value,onChange:l=>((e,l)=>{let t=null;if(b){let o=A||[];t=e?[].concat((0,y.default)(o),[l.value]):o.filter(e=>e!==l.value)}else t=e?l.value:null;_(t),f?.(t)})(l,e),disabled:u},e.label)))});var w=e.i(483917),T=e.i(218870),B=(0,h.genSubStyleComponent)(["Tag","preset"],e=>{let l;return l=f(e),(0,T.genPresetColor)(l,(e,{textColor:t,lightBorderColor:o,lightColor:a,darkColor:r})=>({[`${l.componentCls}${l.componentCls}-${e}:not(${l.componentCls}-disabled)`]:{[`&${l.componentCls}-outlined`]:{backgroundColor:a,borderColor:o,color:t},[`&${l.componentCls}-solid`]:{backgroundColor:r,borderColor:r,color:l.colorTextLightSolid},[`&${l.componentCls}-filled`]:{backgroundColor:a,color:t}}}))},b);let R=(e,l,t)=>{let o="string"!=typeof t?t:t.charAt(0).toUpperCase()+t.slice(1);return{[`${e.componentCls}${e.componentCls}-${l}:not(${e.componentCls}-disabled)`]:{[`&${e.componentCls}-outlined`]:{backgroundColor:e[`color${o}Bg`],borderColor:e[`color${o}Border`],color:e[`color${t}`]},[`&${e.componentCls}-solid`]:{backgroundColor:e[`color${t}`],borderColor:e[`color${t}`]},[`&${e.componentCls}-filled`]:{backgroundColor:e[`color${o}Bg`],color:e[`color${t}`]}}}};var z=(0,h.genSubStyleComponent)(["Tag","status"],e=>{let l=f(e);return[R(l,"success","Success"),R(l,"processing","Info"),R(l,"error","Error"),R(l,"warning","Warning")]},b);let M=l.forwardRef((e,d)=>{let{prefixCls:g,className:u,rootClassName:p,style:h,children:x,icon:f,color:b,variant:v,onClose:y,bordered:k,disabled:j,href:$,target:S,styles:T,classNames:R,...M}=e,{getPrefixCls:H,direction:L,className:N,variant:E,style:D,classNames:F,styles:I}=(0,s.useComponentConfig)("tag"),[O,A,_,P,V]=function(e,t){let{color:o,variant:a,bordered:r}=e;return l.useMemo(()=>{let e,l=o?.endsWith("-inverse");e=a||(l?"solid":!1===r?"filled":t||"filled");let i=l?o?.replace("-inverse",""):o,n=(0,w.isPresetColor)(o),s=(0,w.isPresetStatusColor)(o),c={};if(!n&&!s&&i)if("solid"===e)c.backgroundColor=o;else{let l=new m.FastColor(i).toHsl();l.l=.95,c.backgroundColor=new m.FastColor(l).toHexString(),c.color=o,"outlined"===e&&(c.borderColor=o)}return[e,i,n,s,c]},[o,a,r,t])}(e,E),W=_||P,q=l.useContext(c.default),G=j??q,{tag:Y}=l.useContext(s.ConfigContext),[U,X]=l.useState(!0),K=(0,t.omit)(M,["closeIcon","closable"]),J={...e,color:A,variant:O,disabled:G},[Q,Z]=(0,r.useMergeSemantic)([F,R],[I,T],{props:J}),ee=l.useMemo(()=>{let e={...Z.root,...D,...h};return G||(e={...V,...e}),e},[Z.root,D,h,V,G]),el=H("tag",g),[et,eo]=C(el),ea=(0,o.clsx)(el,N,Q.root,`${el}-${O}`,{[`${el}-${A}`]:W,[`${el}-hidden`]:!U,[`${el}-rtl`]:"rtl"===L,[`${el}-disabled`]:G},u,p,et,eo),er=e=>{G||(e.stopPropagation(),y?.(e),e.defaultPrevented||X(!1))},[,ei]=(0,a.useClosable)((0,a.pickClosable)(e),(0,a.pickClosable)(Y),{closable:!1,closeIconRender:e=>{let t=l.createElement("span",{className:`${el}-close-icon`,onClick:er},e);return(0,i.replaceElement)(e,t,e=>({onClick:l=>{e?.onClick?.(l),er(l)},className:(0,o.clsx)(e?.className,`${el}-close-icon`)}))}}),en="function"==typeof M.onClick||x&&"a"===x.type,es=(0,i.cloneElement)(f,{className:(0,o.clsx)(l.isValidElement(f)?f.props?.className:void 0,Q.icon),style:Z.icon}),ec=es?l.createElement(l.Fragment,null,es,x&&l.createElement("span",{className:Q.content,style:Z.content},x)):x,ed=l.createElement($?"a":"span",{...K,ref:d,className:ea,style:ee,href:G?void 0:$,target:S,onClick:G?void 0:K.onClick,...$&&G?{"aria-disabled":!0}:{}},ec,ei,_&&l.createElement(B,{key:"preset",prefixCls:el}),P&&l.createElement(z,{key:"status",prefixCls:el}));return en?l.createElement(n.default,{component:"Tag"},ed):ed});M.CheckableTag=v,M.CheckableTagGroup=S,e.s(["Tag",0,M],543330)},927494,e=>{"use strict";e.i(495059);var l=e.i(191788),t={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M885.9 533.7c16.8-22.2 26.1-49.4 26.1-77.7 0-44.9-25.1-87.4-65.5-111.1a67.67 67.67 0 00-34.3-9.3H572.4l6-122.9c1.4-29.7-9.1-57.9-29.5-79.4A106.62 106.62 0 00471 99.9c-52 0-98 35-111.8 85.1l-85.9 311H144c-17.7 0-32 14.3-32 32v364c0 17.7 14.3 32 32 32h601.3c9.2 0 18.2-1.8 26.5-5.4 47.6-20.3 78.3-66.8 78.3-118.4 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7 0-12.6-1.8-25-5.4-37 16.8-22.2 26.1-49.4 26.1-77.7-.2-12.6-2-25.1-5.6-37.1zM184 852V568h81v284h-81zm636.4-353l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 16.5-7.2 32.2-19.6 43l-21.9 19 13.9 25.4a56.2 56.2 0 016.9 27.3c0 22.4-13.2 42.6-33.6 51.8H329V564.8l99.5-360.5a44.1 44.1 0 0142.2-32.3c7.6 0 15.1 2.2 21.1 6.7 9.9 7.4 15.2 18.6 14.6 30.5l-9.6 198.4h314.4C829 418.5 840 436.9 840 456c0 16.5-7.2 32.1-19.6 43z"}}]},name:"like",theme:"outlined"},o=e.i(117716);function a(){return(a=Object.assign.bind()).apply(this,arguments)}let r=l.forwardRef((e,r)=>l.createElement(o.default,a({},e,{ref:r,icon:t})));e.s(["LikeOutlined",0,r],927494)}]);