5 lines
32 KiB
JavaScript
5 lines
32 KiB
JavaScript
|
|
"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[6110],{77404:function(le,z,l){Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;const o=U(l(85317));function U(K){return K&&K.__esModule?K:{default:K}}const d=o;z.default=d,le.exports=d},86056:function(le,z,l){Object.defineProperty(z,"__esModule",{value:!0}),z.default=void 0;const o=U(l(91724));function U(K){return K&&K.__esModule?K:{default:K}}const d=o;z.default=d,le.exports=d},2236:function(le,z,l){l.d(z,{S:function(){return Oe}});var o=l(1413),U=l(4942),d=l(91),K=l(12044),de=l(21532),me=l(93967),ye=l.n(me),ce=l(98423),i=l(67294),Be=l(73935),A=l(76509),re=l(64847),Re=function(N){return(0,U.Z)({},N.componentCls,{position:"fixed",insetInlineEnd:0,bottom:0,zIndex:99,display:"flex",alignItems:"center",width:"100%",paddingInline:24,paddingBlock:0,boxSizing:"border-box",lineHeight:"64px",backgroundColor:(0,re.uK)(N.colorBgElevated,.6),borderBlockStart:"1px solid ".concat(N.colorSplit),"-webkit-backdrop-filter":"blur(8px)",backdropFilter:"blur(8px)",color:N.colorText,transition:"all 0.2s ease 0s","&-left":{flex:1,color:N.colorText},"&-right":{color:N.colorText,"> *":{marginInlineEnd:8,"&:last-child":{marginBlock:0,marginInline:0}}}})};function pe(se){return(0,re.Xj)("ProLayoutFooterToolbar",function(N){var _=(0,o.Z)((0,o.Z)({},N),{},{componentCls:".".concat(se)});return[Re(_)]})}function xe(se,N){var _=N.stylish;return(0,re.Xj)("ProLayoutFooterToolbarStylish",function(ae){var ue=(0,o.Z)((0,o.Z)({},ae),{},{componentCls:".".concat(se)});return _?[(0,U.Z)({},"".concat(ue.componentCls),_==null?void 0:_(ue))]:[]})}var ne=l(85893),ge=["children","className","extra","portalDom","style","renderContent"],Oe=function(N){var _=N.children,ae=N.className,ue=N.extra,be=N.portalDom,Le=be===void 0?!0:be,Ee=N.style,Ne=N.renderContent,Te=(0,d.Z)(N,ge),Se=(0,i.useContext)(de.ZP.ConfigContext),Qe=Se.getPrefixCls,Pe=Se.getTargetContainer,He=N.prefixCls||Qe("pro"),q="".concat(He,"-footer-bar"),G=pe(q),We=G.wrapSSR,Ze=G.hashId,c=(0,i.useContext)(A.X),we=(0,i.useMemo)(function(){var oe=c.hasSiderMenu,Ae=c.isMobile,De=c.siderWidth;if(oe)return De?Ae?"100%":"calc(100% - ".concat(De,"px)"):"100%"},[c.collapsed,c.hasSiderMenu,c.isMobile,c.siderWidth]),ve=(0,i.useMemo)(function(){return typeof window=="undefined"||typeof document=="undefined"?null:(Pe==null?void 0:Pe())||document.body},[]),Xe=xe("".concat(q,".").concat(q,"-stylish"),{stylish:N.stylish}),$e=(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("div",{className:"".concat(q,"-left ").concat(Ze).trim(),children:ue}),(0,ne.jsx)("div",{className:"".concat(q,"-right ").concat(Ze).trim(),children:_})]});(0,i.useEffect)(function(){return!c||!(c!=null&&c.setHasFooterToolbar)?function(){}:(c==null||c.setHasFooterToolbar(!0),function(){var oe;c==null||(oe=c.setHasFooterToolbar)===null||oe===void 0||oe.call(c,!1)})},[]);var Me=(0,ne.jsx)("div",(0,o.Z)((0,o.Z)({className:ye()(ae,Ze,q,(0,U.Z)({},"".concat(q,"-stylish"),!!N.stylish)),style:(0,o.Z)({width:we},Ee)},(0,ce.Z)(Te,["prefixCls"])),{},{children:Ne?Ne((0,o.Z)((0,o.Z)((0,o.Z)({},N),c),{},{leftWidth:we}),$e):$e})),Ue=!(0,K.j)()||!Le||!ve?Me:(0,Be.createPortal)(Me,ve,q);return Xe.wrapSSR(We((0,ne.jsx)(i.Fragment,{children:Ue},q)))}},6110:function(le,z,l){l.d(z,{_z:function(){return tn}});var o=l(4942),U=l(91),d=l(1413),K=l(71002),de=l(6376),me=l(92398),ye=l(67159),ce=l(21532),i=l(67294),Be=l(93967),A=l.n(Be),re=l(9220),Re=l(74902),pe=l(75164);function xe(t){let e=null;const n=a=>()=>{e=null,t.apply(void 0,(0,Re.Z)(a))},r=(...a)=>{e===null&&(e=(0,pe.Z)(n(a)))};return r.cancel=()=>{pe.Z.cancel(e),e=null},r}var ne=xe,ge=l(53124),Oe=l(83559);const se=t=>{const{componentCls:e}=t;return{[e]:{position:"fixed",zIndex:t.zIndexPopup}}},N=t=>({zIndexPopup:t.zIndexBase+10});var _=(0,Oe.I$)("Affix",se,N);function ae(t){return t!==window?t.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function ue(t,e,n){if(n!==void 0&&Math.round(e.top)>Math.round(t.top)-n)return n+e.top}function be(t,e,n){if(n!==void 0&&Math.round(e.bottom)<Math.round(t.bottom)+n){cons
|
||
|
|
> ${n} + span,
|
||
|
|
> ${n} + a
|
||
|
|
`]:{marginInlineStart:t.marginXXS}},[`${e}-overlay-link`]:{borderRadius:t.borderRadiusSM,height:t.fontHeight,display:"inline-block",padding:`0 ${(0,tt.bf)(t.paddingXXS)}`,marginInline:r(t.marginXXS).mul(-1).equal(),[`> ${n}`]:{marginInlineStart:t.marginXXS,fontSize:t.fontSizeIcon},"&:hover":{color:t.linkHoverColor,backgroundColor:t.colorBgTextHover,a:{color:t.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${t.componentCls}-rtl`]:{direction:"rtl"}})}},pt=t=>({itemColor:t.colorTextDescription,lastItemColor:t.colorText,iconFontSize:t.fontSize,linkColor:t.colorTextDescription,linkHoverColor:t.colorText,separatorColor:t.colorTextDescription,separatorMargin:t.marginXS});var xt=(0,Oe.I$)("Breadcrumb",t=>{const e=(0,Ct.IX)(t,{});return yt(e)},pt),rt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n};function bt(t){const{breadcrumbName:e,children:n}=t,r=rt(t,["breadcrumbName","children"]),a=Object.assign({title:e},r);return n&&(a.menu={items:n.map(s=>{var{breadcrumbName:u}=s,v=rt(s,["breadcrumbName"]);return Object.assign(Object.assign({},v),{title:u})})}),a}function St(t,e){return(0,i.useMemo)(()=>t||(e?e.map(bt):null),[t,e])}var Pt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(t);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(t,r[a])&&(n[r[a]]=t[r[a]]);return n};const Zt=(t,e)=>{if(e===void 0)return e;let n=(e||"").replace(/^\//,"");return Object.keys(t).forEach(r=>{n=n.replace(`:${r}`,t[r])}),n},Ve=t=>{const{prefixCls:e,separator:n="/",style:r,className:a,rootClassName:s,routes:u,items:v,children:P,itemRender:h,params:C={}}=t,g=Pt(t,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Z,direction:x,breadcrumb:y}=i.useContext(ge.E_);let f;const p=Z("breadcrumb",e),[m,H,j]=xt(p),I=St(v,u),F=vt(p,h);if(I&&I.length>0){const $=[],w=v||u;f=I.map((R,L)=>{const{path:k,key:O,type:V,menu:J,overlay:Y,onClick:W,className:E,separator:D,dropdownProps:ee}=R,te=Zt(C,k);te!==void 0&&$.push(te);const he=O!=null?O:L;if(V==="separator")return i.createElement(Ke,{key:he},D);const fe={},je=L===I.length-1;J?fe.menu=J:Y&&(fe.overlay=Y);let{href:ie}=R;return $.length&&te!==void 0&&(ie=`#/${$.join("/")}`),i.createElement(_e,Object.assign({key:he},fe,(0,Ae.Z)(R,{data:!0,aria:!0}),{className:E,dropdownProps:ee,href:ie,separator:je?"":n,onClick:W,prefixCls:p}),F(R,C,w,$,ie))})}else if(P){const $=(0,oe.Z)(P).length;f=(0,oe.Z)(P).map((w,R)=>{if(!w)return w;const L=R===$-1;return(0,De.Tm)(w,{separator:L?"":n,key:R})})}const b=A()(p,y==null?void 0:y.className,{[`${p}-rtl`]:x==="rtl"},a,s,H,j),B=Object.assign(Object.assign({},y==null?void 0:y.style),r);return m(i.createElement("nav",Object.assign({className:b,style:B},g),i.createElement("ol",null,f)))};Ve.Item=ht,Ve.Separator=Ke;var jt=Ve,It=jt,Bt=l(68997),Rt=l(78957),at=l(80334),ot=function(){return{overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"}},Ot=function(e){var n;return(0,o.Z)({},e.componentCls,(0,d.Z)((0,d.Z)({},G.Wf===null||G.Wf===void 0?void 0:(0,G.Wf)(e)),{},(0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)((0,o.Z)({position:"relative",backgroundColor:e.colorWhite,paddingBlock:e.pageHeaderPaddingVertical+2,paddingInline:e.pageHeaderPadding,"&&-ghost":{backgroundColor:e.pageHeaderBgGhost},"&-no-children":{height:(n=e.layout)===null||n===void 0||(n=n.pageContainer)===null||n===void 0?void 0:n.paddingBlockPageContainerContent},"&&-has-breadcrumb":{paddingBlockStart:e.pageHeaderPaddingBreadCrumb},"&&-has-footer":{paddingBlockEnd:0},"& &-back":(0,o.Z)({marginInlineEnd:e.margin,fontSize:16,lineHeight:1,"&-button":(0,d.Z
|