-
Notifications
You must be signed in to change notification settings - Fork 0
/
316.a30bb0c2.async.js
4 lines (4 loc) · 16.2 KB
/
316.a30bb0c2.async.js
1
2
3
4
"use strict";(self.webpackChunkantd=self.webpackChunkantd||[]).push([[316],{800316:function(Te,q,t){t.r(q),t.d(q,{scopes:function(){return de}});var E=t(667294),s=t(86198),oe=t(106750),a=t(256661),N=t(529410),O=t(965516),k=t(988872),L=t(75529),j=t(943215),R=t(5603),S=t(887547),G=t(269243),K=t(526911),_=t(48869),A=t(455355),ee=t(884477),V=t(919944),H=t(88484),h=t(497680),J=t(741156),Q=t(461086),le=t(670125),ie=t(647235),de={"components-layout-demo-basic":{React:E,Layout:s.Z,Flex:oe.Z},"components-layout-demo-top":{React:E,Breadcrumb:a.Z,Layout:s.Z,Menu:N.Z,theme:O.Z},"components-layout-demo-top-side":{React:E,LaptopOutlined:j.Z,NotificationOutlined:R.Z,UserOutlined:S.Z,Breadcrumb:a.Z,Layout:s.Z,Menu:N.Z,theme:O.Z},"components-layout-demo-top-side-2":{React:E,LaptopOutlined:j.Z,NotificationOutlined:R.Z,UserOutlined:S.Z,Breadcrumb:a.Z,Layout:s.Z,Menu:N.Z,theme:O.Z},"components-layout-demo-side":{React:E,useState:E.useState,DesktopOutlined:G.Z,FileOutlined:K.Z,PieChartOutlined:_.Z,TeamOutlined:A.Z,UserOutlined:S.Z,Breadcrumb:a.Z,Layout:s.Z,Menu:N.Z,theme:O.Z},"components-layout-demo-custom-trigger":{React:E,useState:E.useState,MenuFoldOutlined:ee.Z,MenuUnfoldOutlined:V.Z,UploadOutlined:H.Z,UserOutlined:S.Z,VideoCameraOutlined:h.Z,Layout:s.Z,Menu:N.Z,Button:k.ZP,theme:O.Z},"components-layout-demo-responsive":{React:E,UploadOutlined:H.Z,UserOutlined:S.Z,VideoCameraOutlined:h.Z,Layout:s.Z,Menu:N.Z,theme:O.Z},"components-layout-demo-fixed":{React:E,Breadcrumb:a.Z,Layout:s.Z,Menu:N.Z,theme:O.Z},"components-layout-demo-fixed-sider":{React:E,AppstoreOutlined:J.Z,BarChartOutlined:Q.Z,CloudOutlined:le.Z,ShopOutlined:ie.Z,TeamOutlined:A.Z,UploadOutlined:H.Z,UserOutlined:S.Z,VideoCameraOutlined:h.Z,Layout:s.Z,Menu:N.Z,theme:O.Z},"components-layout-demo-custom-trigger-debug":{React:E,useState:E.useState,DesktopOutlined:G.Z,FileOutlined:K.Z,MenuFoldOutlined:ee.Z,MenuUnfoldOutlined:V.Z,PieChartOutlined:_.Z,TeamOutlined:A.Z,UserOutlined:S.Z,Layout:s.Z,Menu:N.Z,Button:k.ZP,theme:O.Z},"components-layout-demo-component-token":{React:E,LaptopOutlined:j.Z,NotificationOutlined:R.Z,UserOutlined:S.Z,Breadcrumb:a.Z,ConfigProvider:L.ZP,Layout:s.Z,Menu:N.Z,theme:O.Z}}},256661:function(Te,q,t){t.d(q,{Z:function(){return D}});var E=t(238416),s=t.n(E),oe=t(242122),a=t.n(oe),N=t(627424),O=t.n(N),k=t(670215),L=t.n(k),j=t(667294),R=t(294184),S=t.n(R),G=t(45598),K=t(430339),_=t(106465),A=t(73287),ee=t(205085),V=t.n(ee),H=t(121267),h=t(785893),J=function(e){var o=e.children,i=j.useContext(A.E_),d=i.getPrefixCls,g=d("breadcrumb");return(0,h.jsx)("li",{className:"".concat(g,"-separator"),"aria-hidden":"true",children:o===""?o:o||"/"})};J.__ANT_BREADCRUMB_SEPARATOR=!0;var Q=J,le=t(918698),ie=t.n(le),de=["className","onClick"];function ye(l,e){if(l.title===void 0||l.title===null)return null;var o=Object.keys(e).join("|");return ie()(l.title)==="object"?l.title:String(l.title).replace(new RegExp(":(".concat(o,")"),"g"),function(i,d){return e[d]||i})}function se(l,e,o,i){if(o==null)return null;var d=e.className,g=e.onClick,p=L()(e,de),P=a()(a()({},(0,K.default)(p,{data:!0,aria:!0})),{},{onClick:g});return i!==void 0?(0,h.jsx)("a",a()(a()({},P),{},{className:S()("".concat(l,"-link"),d),href:i,children:o})):(0,h.jsx)("span",a()(a()({},P),{},{className:S()("".concat(l,"-link"),d),children:o}))}function te(l,e){var o=function(d,g,p,P,M){if(e)return e(d,g,p,P);var U=ye(d,g);return se(l,d,U,M)};return o}var xe=["items"],Se=["key","title","label","path"],ae=["prefixCls","children","href"],re=function(e){var o=e.prefixCls,i=e.separator,d=i===void 0?"/":i,g=e.children,p=e.menu,P=e.overlay,M=e.dropdownProps,U=e.href;if(!1)var T;var z=function(ce){if(p||P){var Y=a()({},M);if(p){var ve=p||{},ue=ve.items,$=L()(ve,xe);Y.menu=a()(a()({},$),{},{items:ue==null?void 0:ue.map(function(F,X){var w=F.key,Ce=F.title,Pe=F.label,Ee=F.path,he=L()(F,Se),Oe=Pe!=null?Pe:Ce;return Ee&&(Oe=(0,h.jsx)("a",{href:"".concat(U).concat(Ee),children:Oe})),a()(a()({},he),{},{key:w!=null?w:X,label:Oe})})})}else P&&(Y.overlay=P);return(0,h.jsx)(H.Z,a()(a()({placement:"bottom"},Y),{},{children:(0,h.jsxs)("span",{className:"".concat(o,"-overlay-link"),children:[ce,(0,h.jsx)(V(),{})]})}))}return ce},b=z(g);return b!=null?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)("li",{children:b}),d&&(0,h.jsx)(Q,{children:d})]}):null},ge=function(e){var o=e.prefixCls,i=e.children,d=e.href,g=L()(e,ae),p=j.useContext(A.E_),P=p.getPrefixCls,M=P("breadcrumb",o);return(0,h.jsx)(re,a()(a()({},g),{},{prefixCls:M,children:se(M,g,i,d)}))};ge.__ANT_BREADCRUMB_ITEM=!0;var pe=ge,fe=t(615624),me=t(548073),u=t(286665),f=t(986943),c=function(e){var o,i,d=e.componentCls,g=e.iconCls,p=e.calc;return s()({},d,a()(a()({},(0,me.Wf)(e)),{},(i={color:e.itemColor,fontSize:e.fontSize},s()(i,g,{fontSize:e.iconFontSize}),s()(i,"ol",{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"}),s()(i,"a",a()({color:e.linkColor,transition:"color ".concat(e.motionDurationMid),padding:"0 ".concat((0,fe.bf)(e.paddingXXS)),borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",marginInline:p(e.marginXXS).mul(-1).equal(),"&:hover":{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover}},(0,me.Qy)(e))),s()(i,"li:last-child",{color:e.lastItemColor}),s()(i,"".concat(d,"-separator"),{marginInline:e.separatorMargin,color:e.separatorColor}),s()(i,"".concat(d,"-link"),s()({},`
> `.concat(g,` + span,
> `).concat(g,` + a
`),{marginInlineStart:e.marginXXS})),s()(i,"".concat(d,"-overlay-link"),(o={borderRadius:e.borderRadiusSM,height:e.fontHeight,display:"inline-block",padding:"0 ".concat((0,fe.bf)(e.paddingXXS)),marginInline:p(e.marginXXS).mul(-1).equal()},s()(o,"> ".concat(g),{marginInlineStart:e.marginXXS,fontSize:e.fontSizeIcon}),s()(o,"&:hover",{color:e.linkHoverColor,backgroundColor:e.colorBgTextHover,a:{color:e.linkHoverColor}}),s()(o,"a",{"&:hover":{backgroundColor:"transparent"}}),o)),s()(i,"&".concat(e.componentCls,"-rtl"),{direction:"rtl"}),i)))},v=function(e){return{itemColor:e.colorTextDescription,lastItemColor:e.colorText,iconFontSize:e.fontSize,linkColor:e.colorTextDescription,linkHoverColor:e.colorText,separatorColor:e.colorTextDescription,separatorMargin:e.marginXS}},r=(0,u.I$)("Breadcrumb",function(l){var e=(0,f.TS)(l,{});return c(e)},v),n=["breadcrumbName","children"],m=["breadcrumbName"];function y(l){var e=l.breadcrumbName,o=l.children,i=L()(l,n),d=a()({title:e},i);return o&&(d.menu={items:o.map(function(g){var p=g.breadcrumbName,P=L()(g,m);return a()(a()({},P),{},{title:p})})}),d}function C(l,e){return(0,j.useMemo)(function(){return l||(e?e.map(y):null)},[l,e])}var x=["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"],Z=function(e,o){if(o===void 0)return o;var i=(o||"").replace(/^\//,"");return Object.keys(e).forEach(function(d){i=i.replace(":".concat(d),e[d])}),i},B=function(e){var o=e.prefixCls,i=e.separator,d=i===void 0?"/":i,g=e.style,p=e.className,P=e.rootClassName,M=e.routes,U=e.items,T=e.children,z=e.itemRender,b=e.params,ne=b===void 0?{}:b,ce=L()(e,x),Y=j.useContext(A.E_),ve=Y.getPrefixCls,ue=Y.direction,$=Y.breadcrumb,F,X=ve("breadcrumb",o),w=r(X),Ce=O()(w,2),Pe=Ce[0],Ee=Ce[1],he=C(U,M);if(!1)var Oe,Je;var Ae=te(X,z);if(he&&he.length>0){var Ze=[],We=U||M;F=he.map(function(I,Be){var Me=I.path,Ne=I.key,Ke=I.type,De=I.menu,be=I.overlay,Fe=I.onClick,Xe=I.className,$e=I.separator,Ge=I.dropdownProps,Re=Z(ne,Me);Re!==void 0&&Ze.push(Re);var je=Ne!=null?Ne:Be;if(Ke==="separator")return(0,h.jsx)(Q,{children:$e},je);var Ie={},Ve=Be===he.length-1;De?Ie.menu=De:be&&(Ie.overlay=be);var Le=I.href;return Ze.length&&Re!==void 0&&(Le="#/".concat(Ze.join("/"))),(0,h.jsx)(re,a()(a()(a()({},Ie),(0,K.default)(I,{data:!0,aria:!0})),{},{className:Xe,dropdownProps:Ge,href:Le,separator:Ve?"":d,onClick:Fe,prefixCls:X,children:Ae(I,ne,We,Ze,Le)}),je)})}else if(T){var He=(0,G.default)(T).length;F=(0,G.default)(T).map(function(I,Be){if(!I)return I;var Me=Be===He-1;return(0,_.Tm)(I,{separator:Me?"":d,key:Be})})}var Ue=S()(X,$==null?void 0:$.className,s()({},"".concat(X,"-rtl"),ue==="rtl"),p,P,Ee),ze=a()(a()({},$==null?void 0:$.style),g);return Pe((0,h.jsx)("nav",a()(a()({className:Ue,style:ze},ce),{},{children:(0,h.jsx)("ol",{children:F})})))};B.Item=pe,B.Separator=Q;var W=B,D=W},106750:function(Te,q,t){t.d(q,{Z:function(){return me}});var E=t(242122),s=t.n(E),oe=t(238416),a=t.n(oe),N=t(627424),O=t.n(N),k=t(670215),L=t.n(k),j=t(667294),R=t(294184),S=t.n(R),G=t(518475),K=t(376148),_=t(73287),A=t(286665),ee=t(986943),V=["wrap","nowrap","wrap-reverse"],H=["flex-start","flex-end","start","end","center","space-between","space-around","space-evenly","stretch","normal","left","right"],h=["center","start","end","flex-start","flex-end","self-start","self-end","baseline","normal","stretch"],J=function(f,c){var v={};return V.forEach(function(r){v["".concat(f,"-wrap-").concat(r)]=c.wrap===r}),v},Q=function(f,c){var v={};return h.forEach(function(r){v["".concat(f,"-align-").concat(r)]=c.align===r}),v["".concat(f,"-align-stretch")]=!c.align&&!!c.vertical,v},le=function(f,c){var v={};return H.forEach(function(r){v["".concat(f,"-justify-").concat(r)]=c.justify===r}),v};function ie(u,f){return S()(s()(s()(s()({},J(u,f)),Q(u,f)),le(u,f)))}var de=ie,ye=function(f){var c=f.componentCls;return a()({},c,{display:"flex","&-vertical":{flexDirection:"column"},"&-rtl":{direction:"rtl"},"&:empty":{display:"none"}})},se=function(f){var c=f.componentCls;return a()({},c,{"&-gap-small":{gap:f.flexGapSM},"&-gap-middle":{gap:f.flexGap},"&-gap-large":{gap:f.flexGapLG}})},te=function(f){var c=f.componentCls,v={};return V.forEach(function(r){v["".concat(c,"-wrap-").concat(r)]={flexWrap:r}}),v},xe=function(f){var c=f.componentCls,v={};return h.forEach(function(r){v["".concat(c,"-align-").concat(r)]={alignItems:r}}),v},Se=function(f){var c=f.componentCls,v={};return H.forEach(function(r){v["".concat(c,"-justify-").concat(r)]={justifyContent:r}}),v},ae=function(){return{}},re=(0,A.I$)("Flex",function(u){var f=u.paddingXS,c=u.padding,v=u.paddingLG,r=(0,ee.TS)(u,{flexGapSM:f,flexGap:c,flexGapLG:v});return[ye(r),se(r),te(r),xe(r),Se(r)]},ae,{resetStyle:!1}),ge=t(785893),pe=["prefixCls","rootClassName","className","style","flex","gap","children","vertical","component"],fe=j.forwardRef(function(u,f){var c,v=u.prefixCls,r=u.rootClassName,n=u.className,m=u.style,y=u.flex,C=u.gap,x=u.children,Z=u.vertical,B=Z===void 0?!1:Z,W=u.component,D=W===void 0?"div":W,l=L()(u,pe),e=j.useContext(_.E_),o=e.flex,i=e.direction,d=e.getPrefixCls,g=d("flex",v),p=re(g),P=O()(p,2),M=P[0],U=P[1],T=B!=null?B:o==null?void 0:o.vertical,z=S()(n,r,o==null?void 0:o.className,g,U,de(g,u),(c={},a()(c,"".concat(g,"-rtl"),i==="rtl"),a()(c,"".concat(g,"-gap-").concat(C),(0,K.n)(C)),a()(c,"".concat(g,"-vertical"),T),c)),b=s()(s()({},o==null?void 0:o.style),m);return y&&(b.flex=y),C&&!(0,K.n)(C)&&(b.gap=C),M((0,ge.jsx)(D,s()(s()({ref:f,className:z,style:b},(0,G.default)(l,["justify","wrap","align"])),{},{children:x})))}),me=fe},86198:function(Te,q,t){t.d(q,{Z:function(){return v}});var E=t(600861),s=t.n(E),oe=t(238416),a=t.n(oe),N=t(627424),O=t.n(N),k=t(670215),L=t.n(k),j=t(242122),R=t.n(j),S=t(667294),G=t(294184),K=t.n(G),_=t(518475),A=t(73287),ee=t(121790),V=t(45598),H=t(296708);function h(r,n,m){if(typeof m=="boolean")return m;if(r.length)return!0;var y=(0,V.default)(n);return y.some(function(C){return C.type===H.Z})}var J=t(615624),Q=t(286665),le=function(n){var m,y=n.componentCls,C=n.bodyBg,x=n.lightSiderBg,Z=n.lightTriggerBg,B=n.lightTriggerColor;return a()({},"".concat(y,"-sider-light"),(m={background:x},a()(m,"".concat(y,"-sider-trigger"),{color:B,background:Z}),a()(m,"".concat(y,"-sider-zero-width-trigger"),{color:B,background:Z,border:"1px solid ".concat(C),borderInlineStart:0}),m))},ie=le,de=function(n){var m,y,C=n.antCls,x=n.componentCls,Z=n.colorText,B=n.triggerColor,W=n.footerBg,D=n.triggerBg,l=n.headerHeight,e=n.headerPadding,o=n.headerColor,i=n.footerPadding,d=n.triggerHeight,g=n.zeroTriggerHeight,p=n.zeroTriggerWidth,P=n.motionDurationMid,M=n.motionDurationSlow,U=n.fontSize,T=n.borderRadius,z=n.bodyBg,b=n.headerBg,ne=n.siderBg;return y={},a()(y,x,R()(R()((m={display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:z,"&, *":{boxSizing:"border-box"}},a()(m,"&".concat(x,"-has-sider"),a()({flexDirection:"row"},"> ".concat(x,", > ").concat(x,"-content"),{width:0})),a()(m,"".concat(x,"-header, &").concat(x,"-footer"),{flex:"0 0 auto"}),a()(m,"".concat(x,"-sider"),{position:"relative",minWidth:0,background:ne,transition:"all ".concat(P,", background 0s"),"&-children":a()({height:"100%",marginTop:-.1,paddingTop:.1},"".concat(C,"-menu").concat(C,"-menu-inline-collapsed"),{width:"auto"}),"&-has-trigger":{paddingBottom:d},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:d,color:B,lineHeight:(0,J.bf)(d),textAlign:"center",background:D,cursor:"pointer",transition:"all ".concat(P)},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:l,insetInlineEnd:n.calc(p).mul(-1).equal(),zIndex:1,width:p,height:g,color:B,fontSize:n.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ne,borderStartStartRadius:0,borderStartEndRadius:T,borderEndEndRadius:T,borderEndStartRadius:0,cursor:"pointer",transition:"background ".concat(M," ease"),"&::after":{position:"absolute",inset:0,background:"transparent",transition:"all ".concat(M),content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:n.calc(p).mul(-1).equal(),borderStartStartRadius:T,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:T}}}}),m),ie(n)),{},{"&-rtl":{direction:"rtl"}})),a()(y,"".concat(x,"-header"),a()({height:l,padding:e,color:o,lineHeight:(0,J.bf)(l),background:b},"".concat(C,"-menu"),{lineHeight:"inherit"})),a()(y,"".concat(x,"-footer"),{padding:i,color:Z,fontSize:U,background:W}),a()(y,"".concat(x,"-content"),{flex:"auto",minHeight:0}),y},ye=function(n){var m=n.colorBgLayout,y=n.controlHeight,C=n.controlHeightLG,x=n.colorText,Z=n.controlHeightSM,B=n.marginXXS,W=n.colorTextLightSolid,D=n.colorBgContainer,l=C*1.25;return{colorBgHeader:"#001529",colorBgBody:m,colorBgTrigger:"#002140",bodyBg:m,headerBg:"#001529",headerHeight:y*2,headerPadding:"0 ".concat(l,"px"),headerColor:x,footerPadding:"".concat(Z,"px ").concat(l,"px"),footerBg:m,siderBg:"#001529",triggerHeight:C+B*2,triggerBg:"#002140",triggerColor:W,zeroTriggerWidth:C,zeroTriggerHeight:C,lightSiderBg:D,lightTriggerBg:D,lightTriggerColor:x}},se=(0,Q.I$)("Layout",function(r){return[de(r)]},ye,{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),te=t(785893),xe=["prefixCls","suffixCls","className","tagName"],Se=["prefixCls","className","rootClassName","children","hasSider","tagName","style"];function ae(r){var n=r.suffixCls,m=r.tagName,y=r.displayName;return function(C){var x=S.forwardRef(function(Z,B){return(0,te.jsx)(C,R()({ref:B,suffixCls:n,tagName:m},Z))});return x}}var re=S.forwardRef(function(r,n){var m=r.prefixCls,y=r.suffixCls,C=r.className,x=r.tagName,Z=L()(r,xe),B=S.useContext(A.E_),W=B.getPrefixCls,D=W("layout",m),l=se(D),e=O()(l,2),o=e[0],i=e[1],d=y?"".concat(D,"-").concat(y):D;return o((0,te.jsx)(x,R()({className:K()(m||d,C,i),ref:n},Z)))}),ge=S.forwardRef(function(r,n){var m,y=S.useContext(A.E_),C=y.direction,x=S.useState([]),Z=O()(x,2),B=Z[0],W=Z[1],D=r.prefixCls,l=r.className,e=r.rootClassName,o=r.children,i=r.hasSider,d=r.tagName,g=r.style,p=L()(r,Se),P=(0,_.default)(p,["suffixCls"]),M=S.useContext(A.E_),U=M.getPrefixCls,T=M.layout,z=U("layout",D),b=h(B,o,i),ne=se(z),ce=O()(ne,2),Y=ce[0],ve=ce[1],ue=K()(z,(m={},a()(m,"".concat(z,"-has-sider"),b),a()(m,"".concat(z,"-rtl"),C==="rtl"),m),T==null?void 0:T.className,l,e,ve),$=S.useMemo(function(){return{siderHook:{addSider:function(X){W(function(w){return[].concat(s()(w),[X])})},removeSider:function(X){W(function(w){return w.filter(function(Ce){return Ce!==X})})}}}},[]);return Y((0,te.jsx)(ee.V.Provider,{value:$,children:(0,te.jsx)(d,R()(R()({ref:n,className:ue,style:R()(R()({},T==null?void 0:T.style),g)},P),{},{children:o}))}))}),pe=ae({tagName:"div",displayName:"Layout"})(ge),fe=ae({suffixCls:"header",tagName:"header",displayName:"Header"})(re),me=ae({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(re),u=ae({suffixCls:"content",tagName:"main",displayName:"Content"})(re),f=pe,c=f;c.Header=fe,c.Footer=me,c.Content=u,c.Sider=H.Z,c._InternalSiderContext=H.D;var v=c}}]);