集成,总结MES功能
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.
 
 
 
 

2 lines
25 KiB

  1. "use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[770],{97321:function(Te,xe,t){t.d(xe,{Z:function(){return h}});var o=t(4942),X=t(1413),q=t(91),_=t(97685),ee=t(21770),x=t(28459),ye=t(7134),V=t(93967),T=t.n(V),G=t(67294),ve=t(80171),be=t(74902),Se=t(87564),ie=t(2448),fe=t(98082),ce=t(89451),ne=t(97435),ge=t(85088),de=function(e){return{backgroundColor:e.colorPrimaryBg,borderColor:e.colorPrimary}},Ze=function(e){return(0,o.Z)({backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,cursor:"not-allowed"},e.componentCls,{"&-description":{color:e.colorTextDisabled},"&-title":{color:e.colorTextDisabled},"&-avatar":{opacity:"0.25"}})},Re=new ge.E4("card-loading",{"0%":{backgroundPosition:"0 50%"},"50%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),je=function(e){var r;return(0,o.Z)({},e.componentCls,(r={position:"relative",display:"inline-block",width:"320px",marginInlineEnd:"16px",marginBlockEnd:"16px",color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight,verticalAlign:"top",backgroundColor:e.colorBgContainer,borderRadius:e.borderRadius,overflow:"auto",cursor:"pointer",transition:"all 0.3s","&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,opacity:0,transition:"all 0.3s "+e.motionEaseInOut,borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"},"&:last-child":{marginInlineEnd:0},"& + &":{marginInlineStart:"0 !important"},"&-bordered":{border:"".concat(e.lineWidth,"px solid ").concat(e.colorBorder)},"&-group":{display:"inline-block","&-sub-check-card":{display:"flex",flexDirection:"column",gap:"8px","&-title":{cursor:"pointer",paddingBlock:e.paddingXS,display:"flex",gap:4,alignItems:"center"},"&-panel":{visibility:"initial",transition:"all 0.3s",opacity:1,"&-collapse":{display:"none",visibility:"hidden",opacity:0}}}}},(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)(r,"".concat(e.componentCls,"-loading"),{overflow:"hidden",userSelect:"none","&-content":{padding:e.paddingMD}}),"&:focus",de(e)),"&-checked",(0,X.Z)((0,X.Z)({},de(e)),{},{"&:after":{opacity:1,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorPrimary),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px")}})),"&-disabled",Ze(e)),"&[disabled]",Ze(e)),"&-checked&-disabled",{"&:after":{position:"absolute",insetBlockStart:2,insetInlineEnd:2,width:0,height:0,border:"".concat(e.borderRadius+4,"px solid ").concat(e.colorTextDisabled),borderBlockEnd:"".concat(e.borderRadius+4,"px solid transparent"),borderInlineStart:"".concat(e.borderRadius+4,"px solid transparent"),borderStartEndRadius:"".concat(e.borderRadius,"px"),content:"''"}}),"&-lg",{width:440}),"&-sm",{width:212}),"&-cover",{paddingInline:e.paddingXXS,paddingBlock:e.paddingXXS,img:{width:"100%",height:"100%",overflow:"hidden",borderRadius:e.borderRadius}}),"&-content",{display:"flex",paddingInline:e.paddingSM,paddingBlock:e.padding}),(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)(r,"&-body",{paddingInline:e.paddingSM,paddingBlock:e.padding}),"&-avatar-header",{display:"flex",alignItems:"center"}),"&-avatar",{paddingInlineEnd:8}),"&-detail",{overflow:"hidden",width:"100%","> div:not(:last-child)":{marginBlockEnd:4}}),"&-header",{display:"flex",alignItems:"center",justifyContent:"space-between",lineHeight:e.lineHeight,"&-left":{display:"flex",alignItems:"center",gap:e.sizeSM,minWidth:0}}),"&-title",{overflow:"hidden",color:e.colorTextHeading,fontWeight:"500",fontSize:e.fontSize,whiteSpace:"nowrap",textOverflow:"ellipsis",display:"flex",alignItems:"center",justifyContent:"space-between","&-with-ellipsis":{display:"inline-block"}}),"&-description",{color:e.colorTextSecondary}),"&:not(".concat(e.componentCls,"-disabled)"),{"&:hover":{borderColor:e.colorPrimary}})))};function he(s){return(0,fe.Xj)("CheckCard",function(e){var r=(0,X.Z)((0,X.Z)({},e),{},{componentCls:".".concat(s)});return[je(r)]})}var f=t(85893),$e=["prefixCls","className","style","options","loading","multiple","bordered","onChange"],te=function(e){var r=e.prefixCls,j=e.hashId;return(0,f.jsx)("div",{className:T()("".concat(r,"-loading-content"),j),children:(0,f.jsx)(Se.Z,{loading:!0,active:!0,paragraph:{rows:4},title:!1})})},a=(0,G.createContext)(null),C=function(e){var r=(0,G.useState)(!1),j=(0,_.Z)(r,2),b=j[0],S=j[1],i=fe.Ow.useToken(),w=i.hashId,$="".concat(e.prefix,"-sub-check-card");return(0,f.jsxs)("div",{className:T()($,w),children:[(0,f.jsxs)("div",{className:T()("".concat($,"-title"),w),onClick:function(){S(!b)},children:[(0,f.jsx)(ie.Z,{style:{transform:"rotate(".concat(b?90:0,"deg)"),transition:"transform 0.3s"}}),e.title]}),(0,f.jsx)("div",{className:T()("".concat($,"-panel"),w,(0,o.Z)({},"".concat($,"-panel-collapse"),b)),children:e.children})]})},y=function(e){var r=e.prefixCls,j=e.className,b=e.style,S=e.options,i=S===void 0?[]:S,w=e.loading,$=w===void 0?!1:w,F=e.multiple,A=F===void 0?!1:F,K=e.bordered,J=K===void 0?!0:K,z=e.onChange,N=(0,q.Z)(e,$e),L=(0,G.useContext)(x.ZP.ConfigContext),W=(0,G.useCallback)(function(){return i==null?void 0:i.map(function(I){return typeof I=="string"?{title:I,value:I}:I})},[i]),R=L.getPrefixCls("pro-checkcard",r),ae=he(R),re=ae.wrapSSR,p=ae.hashId,P="".concat(R,"-group"),m=(0,ne.Z)(N,["children","defaultValue","value","disabled","size"]),le=(0,ee.Z)(e.defaultValue,{value:e.value,onChange:e.onChange}),U=(0,_.Z)(le,2),E=U[0],Y=U[1],oe=(0,G.useRef)(new Map),se=function(B){var O;(O=oe.current)===null||O===void 0||O.set(B,!0)},me=function(B){var O;(O=oe.current)===null||O===void 0||O.delete(B)},Ce=function(B){if(!A){var O;O=E,O===B.value?O=void 0:O=B.value,Y==null||Y(O)}if(A){var H,l=[],Z=E,v=Z==null?void 0:Z.includes(B.value);l=(0,be.Z)(Z||[]),v||l.push(B.value),v&&(l=l.filter(function(u){return u!==B.value}));var c=W(),d=(H=l)===null||H===void 0||(H=H.filter(function(u){return oe.current.has(u)}))===null||H===void 0?void 0:H.sort(function(u,M){var k=c.findIndex(function(Pe){return Pe.value===u}),pe=c.findIndex(function(Pe){return Pe.value===M});return k-pe});Y(d)}},ue=(0,G.useMemo)(function(){if($)return new Array(i.length||G.Children.toArray(e.children).length||1).fill(0).map(function(O,H){return(0,f.jsx)(h,{loading:!0},H)});if(i&&i.length>0){var I=E,B=function O(H){return H.map(function(l){var Z;if(l.children&&l.children.length>0){var v,c;return(0,f.jsx)(C,{title:l.title,prefix:P,children:O(l.children)},((v=l.value)===null||v===void 0?void 0:v.toString())||((c=l.title)===null||c===void 0?void 0:c.toString()))}return(0,f.jsx)(h,{disabled:l.disabled,size:(Z=l.size)!==null&&Z!==void 0?Z:e.size,value:l.value,checked:A?I==null?void 0:I.includes(l.value):I===l.value,onChange:l.onChange,title:l.title,avatar:l.avatar,description:l.description,cover:l.cover},l.value.toString())})};return B(W())}return e.children},[W,$,A,i,e.children,e.size,E]),Q=T()(P,j,p);return re((0,f.jsx)(a.Provider,{value:{toggleOption:Ce,bordered:J,value:E,disabled:e.disabled,size:e.size,loading:e.loading,multiple:e.multiple,registerValue:se,cancelValue:me},children:(0,f.jsx)("div",(0,X.Z)((0,X.Z)({className:Q,style:b},m),{},{children:ue}))}))},g=function(s){return(0,f.jsx)(ce._Y,{needDeps:!0,children:(0,f.jsx)(y,(0,X.Z)({},s))})},D=["prefixCls","className","avatar","title","description","cover","extra","style"],n=function(e){var r=(0,ee.Z)(e.defaultChecked||!1,{value:e.checked,onChange:e.onChange}),j=(0,_.Z)(r,2),b=j[0],S=j[1],i=(0,G.useContext)(a),w=(0,G.useContext)(x.ZP.ConfigContext),$=w.getPrefixCls,F=function(d){var u,M;e==null||(u=e.onClick)===null||u===void 0||u.call(e,d);var k=!b;i==null||(M=i.toggleOption)===null||M===void 0||M.call(i,{value:e.value}),S==null||S(k)},A=function(d){return d==="large"?"lg":d==="small"?"sm":""};(0,G.useEffect)(function(){var c;return i==null||(c=i.registerValue)===null||c===void 0||c.call(i,e.value),function(){var d;return i==null||(d=i.cancelValue)===null||d===void 0?void 0:d.call(i,e.value)}},[e.value]);var K=e.prefixCls,J=e.className,z=e.avatar,N=e.title,L=e.description,W=e.cover,R=e.extra,ae=e.style,re=ae===void 0?{}:ae,p=(0,q.Z)(e,D),P=(0,X.Z)({},p),m=$("pro-checkcard",K),le=he(m),U=le.wrapSSR,E=le.hashId,Y=function(d,u){return(0,f.jsx)("div",{className:T()("".concat(d,"-cover"),E),children:typeof u=="string"?(0,f.jsx)("img",{src:u,alt:"checkcard"}):u})};P.checked=b;var oe=!1;if(i){var se;P.disabled=e.disabled||i.disabled,P.loading=e.loading||i.loading,P.bordered=e.bordered||i.bordered,oe=i.multiple;var me=i.multiple?(se=i.value)===null||se===void 0?void 0:se.includes(e.value):i.value===e.value;P.checked=P.loading?!1:me,P.size=e.size||i.size}var Ce=P.disabled,ue=Ce===void 0?!1:Ce,Q=P.size,I=P.loading,B=P.bordered,O=B===void 0?!0:B,H=P.checked,l=A(Q),Z=T()(m,J,E,(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({},"".concat(m,"-loading"),I),"".concat(m,"-").concat(l),l),"".concat(m,"-checked"),H),"".concat(m,"-multiple"),oe),"".concat(m,"-disabled"),ue),"".concat(m,"-bordered"),O),"".concat(m,"-ghost"),e.ghost)),v=(0,G.useMemo)(function(){if(I)return(0,f.jsx)(te,{prefixCls:m||"",hashId:E});if(W)return Y(m||"",W);var c=z?(0,f.jsx)("div",{className:T()("".concat(m,"-avatar"),E),children:typeof z=="string"?(0,f.jsx)(ye.C,{size:48,shape:"square",src:z}):z}):null,d=(N!=null?N:R)!=null&&(0,f.jsxs)("div",{className:T()("".concat(m,"-header"),E),children:[(0,f.jsxs)("div",{className:T()("".concat(m,"-header-left"),E),children:[(0,f.jsx)("div",{className:T()("".concat(m,"-title"),E,(0,o.Z)({},"".concat(m,"-title-with-ellipsis"),typeof N=="string")),children:N}),e.subTitle?(0,f.jsx)("div",{className:T()("".concat(m,"-subTitle"),E),children:e.subTitle}):null]}),R&&(0,f.jsx)("div",{className:T()("".concat(m,"-extra"),E),children:R})]}),u=L?(0,f.jsx)("div",{className:T()("".concat(m,"-description"),E),children:L}):null,M=T()("".concat(m,"-content"),E,(0,o.Z)({},"".concat(m,"-avatar-header"),c&&d&&!u));return(0,f.jsxs)("div",{className:M,children:[c,d||u?(0,f.jsxs)("div",{className:T()("".concat(m,"-detail"),E),children:[d,u]}):null]})},[z,I,W,L,R,E,m,e.subTitle,N]);return U((0,f.jsxs)("div",{className:Z,style:re,onClick:function(d){!I&&!ue&&F(d)},onMouseEnter:e.onMouseEnter,children:[v,e.children?(0,f.jsx)("div",{className:T()("".concat(m,"-body"),E),style:e.bodyStyle,children:e.children}):null,e.actions?(0,f.jsx)(ve.Z,{actions:e.actions,prefixCls:m}):null]}))};n.Group=g;var h=n},88280:function(Te,xe,t){t.d(xe,{Z:function(){return s}});var o=t(4942),X=t(97685),q=t(91),_=t(74165),ee=t(15861),x=t(1413),ye=t(87462),V=t(67294),T=t(42110),G=t(32867),ve=function(r,j){return V.createElement(G.Z,(0,ye.Z)({},r,{ref:j,icon:T.Z}))},be=V.forwardRef(ve),Se=be,ie=t(97462),fe=t(952),ce=t(89451),ne=t(48171),ge=t(53914),de=t(22270),Ze=t(23491),Re=t(14726),je=t(8232),he=t(21770),f=t(88306),$e=t(8880),te=t(83145),a=t(85893),C=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],y=["record","position","creatorButtonText","newRecordType","parentKey","style"],g=V.createContext(void 0);function D(e){var r=e.children,j=e.record,b=e.position,S=e.newRecordType,i=e.parentKey,w=(0,V.useContext)(g);return V.cloneElement(r,(0,x.Z)((0,x.Z)({},r.props),{},{onClick:function(){var $=(0,ee.Z)((0,_.Z)().mark(function A(K){var J,z,N,L;return(0,_.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.next=2,(J=(z=r.props).onClick)===null||J===void 0?void 0:J.call(z,K);case 2:if(L=R.sent,L!==!1){R.next=5;break}return R.abrupt("return");case 5:w==null||(N=w.current)===null||N===void 0||N.addEditRecord(j,{position:b,newRecordType:S,parentKey:i});case 6:case"end":return R.stop()}},A)}));function F(A){return $.apply(this,arguments)}return F}()}))}function n(e){var r,j,b=(0,ce.YB)(),S=e.onTableChange,i=e.maxLength,w=e.formItemProps,$=e.recordCreatorProps,F=e.rowKey,A=e.controlled,K=e.defaultValue,J=e.onChange,z=e.editableFormRef,N=(0,q.Z)(e,C),L=(0,V.useRef)(void 0),W=(0,V.useRef)(),R=(0,V.useRef)();(0,V.useImperativeHandle)(N.actionRef,function(){return W.current},[W.current]);var ae=(0,he.Z)(function(){return e.value||K||[]},{value:e.value,onChange:e.onChange}),re=(0,X.Z)(ae,2),p=re[0],P=re[1],m=V.useMemo(function(){return typeof F=="function"?F:function(l,Z){return l[F]||Z}},[F]),le=(0,ne.J)(function(l){if(typeof l=="number"&&!e.name){if(l>=p.length)return l;var Z=p&&p[l];return m==null?void 0:m(Z,l)}if((typeof l=="string"||l>=p.length)&&e.name){var v=p.findIndex(function(c,d){var u;return(m==null||(u=m(c,d))===null||u===void 0?void 0:u.toString())===(l==null?void 0:l.toString())});if(v!==-1)return v}return l});(0,V.useImperativeHandle)(z,function(){var l=function(c){var d,u;if(c==null)throw new Error("rowIndex is required");var M=le(c),k=[e.name,(d=M==null?void 0:M.toString())!==null&&d!==void 0?d:""].flat(1).filter(Boolean);return(u=R.current)===null||u===void 0?void 0:u.getFieldValue(k)},Z=function(){var c,d=[e.name].flat(1).filter(Boolean);if(Array.isArray(d)&&d.length===0){var u,M=(u=R.current)===null||u===void 0?void 0:u.getFieldsValue();return Array.isArray(M)?M:Object.keys(M).map(function(k){return M[k]})}return(c=R.current)===null||c===void 0?void 0:c.getFieldValue(d)};return(0,x.Z)((0,x.Z)({},R.current),{},{getRowData:l,getRowsData:Z,setRowData:function(c,d){var u,M;if(c==null)throw new Error("rowIndex is required");var k=le(c),pe=[e.name,(u=k==null?void 0:k.toString())!==null&&u!==void 0?u:""].flat(1).filter(Boolean),Pe=Object.assign({},(0,x.Z)((0,x.Z)({},l(c)),d||{})),Ie=(0,$e.Z)({},pe,Pe);return(M=R.current)===null||M===void 0||M.setFieldsValue(Ie),!0}})},[le,e.name,R.current]),(0,V.useEffect)(function(){e.controlled&&(p||[]).forEach(function(l,Z){var v;(v=R.current)===null||v===void 0||v.setFieldsValue((0,o.Z)({},"".concat(m(l,Z)),l))},{})},[(0,ge.ZP)(p),e.controlled]),(0,V.useEffect)(function(){if(e.name){var l;R.current=e==null||(l=e.editable)===null||l===void 0?void 0:l.form}},[(r=e.editable)===null||r===void 0?void 0:r.form,e.name]);var U=$||{},E=U.record,Y=U.position,oe=U.creatorButtonText,se=U.newRecordType,me=U.parentKey,Ce=U.style,ue=(0,q.Z)(U,y),Q=Y==="top",I=(0,V.useMemo)(function(){return typeof i=="number"&&i<=(p==null?void 0:p.length)?!1:$!==!1&&(0,a.jsx)(D,{record:(0,de.h)(E,p==null?void 0:p.length,p)||{},position:Y,parentKey:(0,de.h)(me,p==null?void 0:p.length,p),newRecordType:se,children:(0,a.jsx)(Re.ZP,(0,x.Z)((0,x.Z)({type:"dashed",style:(0,x.Z)({display:"block",margin:"10px 0",width:"100%"},Ce),icon:(0,a.jsx)(Se,{})},ue),{},{children:oe||b.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[$,i,p==null?void 0:p.length]),B=(0,V.useMemo)(function(){return I?Q?{components:{header:{wrapper:function(Z){var v,c=Z.className,d=Z.children;return(0,a.jsxs)("thead",{className:c,children:[d,(0,a.jsxs)("tr",{style:{position:"relative"},children:[(0,a.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:I}),(0,a.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(v=N.columns)===null||v===void 0?void 0:v.length,children:I})]})]})}}}}:{tableViewRender:function(Z,v){var c,d;return(0,a.jsxs)(a.Fragment,{children:[(c=(d=e.tableViewRender)===null||d===void 0?void 0:d.call(e,Z,v))!==null&&c!==void 0?c:v,I]})}}:{}},[Q,I]),O=(0,x.Z)({},e.editable),H=(0,ne.J)(function(l,Z){var v,c,d;if((v=e.editable)===null||v===void 0||(c=v.onValuesChange)===null||c===void 0||c.call(v,l,Z),(d=e.onValuesChange)===null||d===void 0||d.call(e,Z,l),e.controlled){var u;e==null||(u=e.onChange)===null||u===void 0||u.call(e,Z)}});return(e!=null&&e.onValuesChange||(j=e.editable)!==null&&j!==void 0&&j.onValuesChange||e.controlled&&e!==null&&e!==void 0&&e.onChange)&&(O.onValuesChange=H),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(g.Provider,{value:W,children:(0,a.jsx)(te.Z,(0,x.Z)((0,x.Z)((0,x.Z)({search:!1,options:!1,pagination:!1,rowKey:F,revalidateOnFocus:!1},N),B),{},{tableLayout:"fixed",actionRef:W,onChange:S,editable:(0,x.Z)((0,x.Z)({},O),{},{formProps:(0,x.Z)({formRef:R},O.formProps)}),dataSource:p,onDataSourceChange:function(Z){if(P(Z),e.name&&Y==="top"){var v,c=(0,$e.Z)({},[e.name].flat(1).filter(Boolean),Z);(v=R.current)===null||v===void 0||v.setFieldsValue(c)}}}))}),e.name?(0,a.jsx)(ie.Z,{name:[e.name],children:function(Z){var v,c;if(!L.current)return L.current=p,null;var d=(0,f.Z)(Z,[e.name].flat(1)),u=d==null?void 0:d.find(function(M,k){var pe;return!(0,Ze.A)(M,(pe=L.current)===null||pe===void 0?void 0:pe[k])});return L.current=p,u&&(e==null||(v=e.editable)===null||v===void 0||(c=v.onValuesChange)===null||c===void 0||c.call(v,u,d)),null}}):null]})}function h(e){var r=fe.ZP.useFormInstance();return e.name?(0,a.jsx)(je.Z.Item,(0,x.Z)((0,x.Z)({style:{maxWidth:"100%"}},e==null?void 0:e.formItemProps),{},{name:e.name,shouldUpdate:function(b,S){var i=[e.name].flat(1);try{return JSON.stringify((0,f.Z)(b,i))!==JSON.stringify((0,f.Z)(S,i))}catch(w){return!0}},children:(0,a.jsx)(n,(0,x.Z)((0,x.Z)({tableLayout:"fixed",scroll:{x:"max-content"}},e),{},{editable:(0,x.Z)((0,x.Z)({},e.editable),{},{form:r})}))})):(0,a.jsx)(n,(0,x.Z)({tableLayout:"fixed",scroll:{x:"max-content"}},e))}h.RecordCreator=D;var s=h},86250:function(Te,xe,t){t.d(xe,{Z:function(){return te}});var o=t(67294),X=t(93967),q=t.n(X),_=t(98423),ee=t(98065),x=t(53124),ye=t(27036),V=t(45503);const T=["wrap","nowrap","wrap-reverse"],G=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],ve=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],be=(a,C)=>{const y=C.wrap===!0?"wrap":C.wrap;return{[`${a}-wrap-${y}`]:y&&T.includes(y)}},Se=(a,C)=>{const y={};return ve.forEach(g=>{y[`${a}-align-${g}`]=C.align===g}),y[`${a}-align-stretch`]=!C.align&&!!C.vertical,y},ie=(a,C)=>{const y={};return G.forEach(g=>{y[`${a}-justify-${g}`]=C.justify===g}),y};function fe(a,C){return q()(Object.assign(Object.assign(Object.assign({},be(a,C)),Se(a,C)),ie(a,C)))}var ce=fe;const ne=a=>{const{componentCls:C}=a;return{[C]:{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}}}},ge=a=>{const{componentCls:C}=a;return{[C]:{"&-gap-small":{gap:a.flexGapSM},"&-gap-middle":{gap:a.flexGap},"&-gap-large":{gap:a.flexGapLG}}}},de=a=>{const{componentCls:C}=a,y={};return T.forEach(g=>{y[`${C}-wrap-${g}`]={flexWrap:g}}),y},Ze=a=>{const{componentCls:C}=a,y={};return ve.forEach(g=>{y[`${C}-align-${g}`]={alignItems:g}}),y},Re=a=>{const{componentCls:C}=a,y={};return G.forEach(g=>{y[`${C}-justify-${g}`]={justifyContent:g}}),y},je=()=>({});var he=(0,ye.I$)("Flex",a=>{const{paddingXS:C,padding:y,paddingLG:g}=a,D=(0,V.TS)(a,{flexGapSM:C,flexGap:y,flexGapLG:g});return[ne(D),ge(D),de(D),Ze(D),Re(D)]},je,{resetStyle:!1}),f=function(a,C){var y={};for(var g in a)Object.prototype.hasOwnProperty.call(a,g)&&C.indexOf(g)<0&&(y[g]=a[g]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var D=0,g=Object.getOwnPropertySymbols(a);D<g.length;D++)C.indexOf(g[D])<0&&Object.prototype.propertyIsEnumerable.call(a,g[D])&&(y[g[D]]=a[g[D]]);return y},te=o.forwardRef((a,C)=>{const{prefixCls:y,rootClassName:g,className:D,style:n,flex:h,gap:s,children:e,vertical:r=!1,component:j="div"}=a,b=f(a,["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"]),{flex:S,direction:i,getPrefixCls:w}=o.useContext(x.E_),$=w("flex",y),[F,A,K]=he($),J=r!=null?r:S==null?void 0:S.vertical,z=q()(D,g,S==null?void 0:S.className,$,A,K,ce($,a),{[`${$}-rtl`]:i==="rtl",[`${$}-gap-${s}`]:(0,ee.n)(s),[`${$}-vertical`]:J}),N=Object.assign(Object.assign({},S==null?void 0:S.style),n);return h&&(N.flex=h),s&&!(0,ee.n)(s)&&(N.gap=s),F(o.createElement(j,Object.assign({ref:C,className:z,style:N},(0,_.Z)(b,["justify","wrap","align"])),e))})},66309:function(Te,xe,t){t.d(xe,{Z:function(){return D}});var o=t(67294),X=t(93967),q=t.n(X),_=t(98423),ee=t(98787),x=t(69760),ye=t(96159),V=t(45353),T=t(53124),G=t(85088),ve=t(10274),be=t(14747),Se=t(45503),ie=t(27036);const fe=n=>{const{paddingXXS:h,lineWidth:s,tagPaddingHorizontal:e,componentCls:r,calc:j}=n,b=j(e).sub(s).equal(),S=j(h).sub(s).equal();return{[r]:Object.assign(Object.assign({},(0,be.Wf)(n)),{display:"inline-block",height:"auto",marginInlineEnd:n.marginXS,paddingInline:b,fontSize:n.tagFontSize,lineHeight:n.tagLineHeight,whiteSpace:"nowrap",background:n.defaultBg,border:`${(0,G.bf)(n.lineWidth)} ${n.lineType} ${n.colorBorder}`,borderRadius:n.borderRadiusSM,opacity:1,transition:`all ${n.motionDurationMid}`,textAlign:"start",position:"relative",[`&${r}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:n.defaultColor},[`${r}-close-icon`]:{marginInlineStart:S,fontSize:n.tagIconSize,color:n.colorTextDescription,cursor:"pointer",transition:`all ${n.motionDurationMid}`,"&:hover":{color:n.colorTextHeading}},[`&${r}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${n.iconCls}-close, ${n.iconCls}-close:hover`]:{color:n.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${r}-checkable-checked):hover`]:{color:n.colorPrimary,backgroundColor:n.colorFillSecondary},"&:active, &-checked":{color:n.colorTextLightSolid},"&-checked":{backgroundColor:n.colorPrimary,"&:hover":{backgroundColor:n.colorPrimaryHover}},"&:active":{backgroundColor:n.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${n.iconCls} + span, > span + ${n.iconCls}`]:{marginInlineStart:b}}),[`${r}-borderless`]:{borderColor:"transparent",background:n.tagBorderlessBg}}},ce=n=>{const{lineWidth:h,fontSizeIcon:s,calc:e}=n,r=n.fontSizeSM;return(0,Se.TS)(n,{tagFontSize:r,tagLineHeight:(0,G.bf)(e(n.lineHeightSM).mul(r).equal()),tagIconSize:e(s).sub(e(h).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:n.defaultBg})},ne=n=>({defaultBg:new ve.C(n.colorFillQuaternary).onBackground(n.colorBgContainer).toHexString(),defaultColor:n.colorText});var ge=(0,ie.I$)("Tag",n=>{const h=ce(n);return fe(h)},ne),de=function(n,h){var s={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&h.indexOf(e)<0&&(s[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(n);r<e.length;r++)h.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(n,e[r])&&(s[e[r]]=n[e[r]]);return s},Re=o.forwardRef((n,h)=>{const{prefixCls:s,style:e,className:r,checked:j,onChange:b,onClick:S}=n,i=de(n,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:w,tag:$}=o.useContext(T.E_),F=L=>{b==null||b(!j),S==null||S(L)},A=w("tag",s),[K,J,z]=ge(A),N=q()(A,`${A}-checkable`,{[`${A}-checkable-checked`]:j},$==null?void 0:$.className,r,J,z);return K(o.createElement("span",Object.assign({},i,{ref:h,style:Object.assign(Object.assign({},e),$==null?void 0:$.style),className:N,onClick:F})))}),je=t(98719);const he=n=>(0,je.Z)(n,(h,s)=>{let{textColor:e,lightBorderColor:r,lightColor:j,darkColor:b}=s;return{[`${n.componentCls}${n.componentCls}-${h}`]:{color:e,background:j,borderColor:r,"&-inverse":{color:n.colorTextLightSolid,background:b,borderColor:b},[`&${n.componentCls}-borderless`]:{borderColor:"transparent"}}}});var f=(0,ie.bk)(["Tag","preset"],n=>{const h=ce(n);return he(h)},ne);function $e(n){return typeof n!="string"?n:n.charAt(0).toUpperCase()+n.slice(1)}const te=(n,h,s)=>{const e=$e(s);return{[`${n.componentCls}${n.componentCls}-${h}`]:{color:n[`color${s}`],background:n[`color${e}Bg`],borderColor:n[`color${e}Border`],[`&${n.componentCls}-borderless`]:{borderColor:"transparent"}}}};var a=(0,ie.bk)(["Tag","status"],n=>{const h=ce(n);return[te(h,"success","Success"),te(h,"processing","Info"),te(h,"error","Error"),te(h,"warning","Warning")]},ne),C=function(n,h){var s={};for(var e in n)Object.prototype.hasOwnProperty.call(n,e)&&h.indexOf(e)<0&&(s[e]=n[e]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var r=0,e=Object.getOwnPropertySymbols(n);r<e.length;r++)h.indexOf(e[r])<0&&Object.prototype.propertyIsEnumerable.call(n,e[r])&&(s[e[r]]=n[e[r]]);return s};const g=o.forwardRef((n,h)=>{const{prefixCls:s,className:e,rootClassName:r,style:j,children:b,icon:S,color:i,onClose:w,bordered:$=!0,visible:F}=n,A=C(n,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:K,direction:J,tag:z}=o.useContext(T.E_),[N,L]=o.useState(!0),W=(0,_.Z)(A,["closeIcon","closable"]);o.useEffect(()=>{F!==void 0&&L(F)},[F]);const R=(0,ee.o2)(i),ae=(0,ee.yT)(i),re=R||ae,p=Object.assign(Object.assign({backgroundColor:i&&!re?i:void 0},z==null?void 0:z.style),j),P=K("tag",s),[m,le,U]=ge(P),E=q()(P,z==null?void 0:z.className,{[`${P}-${i}`]:re,[`${P}-has-color`]:i&&!re,[`${P}-hidden`]:!N,[`${P}-rtl`]:J==="rtl",[`${P}-borderless`]:!$},e,r,le,U),Y=Q=>{Q.stopPropagation(),w==null||w(Q),!Q.defaultPrevented&&L(!1)},[,oe]=(0,x.Z)((0,x.w)(n),(0,x.w)(z),{closable:!1,closeIconRender:Q=>{const I=o.createElement("span",{className:`${P}-close-icon`,onClick:Y},Q);return(0,ye.wm)(Q,I,B=>({onClick:O=>{var H;(H=B==null?void 0:B.onClick)===null||H===void 0||H.call(B,O),Y(O)},className:q()(B==null?void 0:B.className,`${P}-close-icon`)}))}}),se=typeof A.onClick=="function"||b&&b.type==="a",me=S||null,Ce=me?o.createElement(o.Fragment,null,me,b&&o.createElement("span",null,b)):b,ue=o.createElement("span",Object.assign({},W,{ref:h,className:E,style:p}),Ce,oe,R&&o.createElement(f,{key:"preset",prefixCls:P}),ae&&o.createElement(a,{key:"status",prefixCls:P}));return m(se?o.createElement(V.Z,{component:"Tag"},ue):ue)});g.CheckableTag=Re;var D=g}}]);