Files
smartsites-www/66.a884a0b4.async.js
2022-09-14 07:55:11 +00:00

3 lines
22 KiB
JavaScript

(self.webpackChunkgms_ui=self.webpackChunkgms_ui||[]).push([[66],{64335:function(_,B,n){"use strict";var Z=n(67294),D=(0,Z.createContext)({});B.Z=D},85224:function(_,B,n){"use strict";var Z=n(72598),D=n(84305),f=n(75901),R=n(87301),O=n(85893),T=n(94184),z=n.n(T),W=n(97435),$=n(67294),K=n(64335),U=n(56264),L=n.n(U),V=["children","className","extra","style","renderContent"],l=function(I){var re=I.children,le=I.className,ae=I.extra,ne=I.style,X=I.renderContent,oe=(0,R.Z)(I,V),fe=(0,$.useContext)(f.ZP.ConfigContext),ve=fe.getPrefixCls,J=I.prefixCls||ve("pro"),me="".concat(J,"-footer-bar"),E=(0,$.useContext)(K.Z),se=(0,$.useMemo)(function(){var k=E.hasSiderMenu,Q=E.isMobile,q=E.siderWidth;if(!!k)return q?Q?"100%":"calc(100% - ".concat(q,"px)"):"100%"},[E.collapsed,E.hasSiderMenu,E.isMobile,E.siderWidth]),ce=(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{className:"".concat(me,"-left"),children:ae}),(0,O.jsx)("div",{className:"".concat(me,"-right"),children:re})]});return(0,$.useEffect)(function(){return!E||!(E==null?void 0:E.setHasFooterToolbar)?function(){}:(E==null||E.setHasFooterToolbar(!0),function(){var k;E==null||(k=E.setHasFooterToolbar)===null||k===void 0||k.call(E,!1)})},[]),(0,O.jsx)("div",(0,Z.Z)((0,Z.Z)({className:z()(le,"".concat(me)),style:(0,Z.Z)({width:se},ne)},(0,W.Z)(oe,["prefixCls"])),{},{children:X?X((0,Z.Z)((0,Z.Z)((0,Z.Z)({},I),E),{},{leftWidth:se}),ce):ce}))};B.Z=l},21349:function(_,B,n){"use strict";var Z=n(84305),D=n(75901),f=n(85893),R=n(94184),O=n.n(R),T=n(67294),z=n(64335),W=n(53645),$=n.n(W),K=function(L){var V=(0,T.useContext)(z.Z),l=L.children,G=L.contentWidth,I=L.className,re=L.style,le=(0,T.useContext)(D.ZP.ConfigContext),ae=le.getPrefixCls,ne=L.prefixCls||ae("pro"),X=G||V.contentWidth,oe="".concat(ne,"-grid-content");return(0,f.jsx)("div",{className:O()(oe,I,{wide:X==="Fixed"}),style:re,children:(0,f.jsx)("div",{className:"".concat(ne,"-grid-content-children"),children:l})})};B.Z=K},86894:function(_,B,n){"use strict";n.d(B,{ZP:function(){return jt}});var Z=n(38663),D=n(70883),f=n(16184),R=n(46823),O=n(60585),T=n(10206),z=n(55753),W=n(88579),$=n(65459),K=n(94184),U=n.n(K),L=n(97601),V=n(10366),l=n(67294),G=n(53124),I=n(33552),re=n(96523);function le(o){var e,r=function(i){return function(){e=null,o.apply(void 0,(0,I.Z)(i))}},t=function(){if(e==null){for(var i=arguments.length,s=new Array(i),c=0;c<i;c++)s[c]=arguments[c];e=(0,re.Z)(r(s))}};return t.cancel=function(){re.Z.cancel(e),e=null},t}function ae(){return function(e,r,t){var a=t.value,i=!1;return{configurable:!0,get:function(){if(i||this===e.prototype||this.hasOwnProperty(r))return a;var c=le(a.bind(this));return i=!0,Object.defineProperty(this,r,{value:c,configurable:!0,writable:!0}),i=!1,c}}}}var ne=n(45883);function X(o){return o!==window?o.getBoundingClientRect():{top:0,bottom:window.innerHeight}}function oe(o,e,r){if(r!==void 0&&e.top>o.top-r)return r+e.top}function fe(o,e,r){if(r!==void 0&&e.bottom<o.bottom+r){var t=window.innerHeight-e.bottom;return r+t}}var ve=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],J=[];function me(){return J}function E(o,e){if(!!o){var r=J.find(function(t){return t.target===o});r?r.affixList.push(e):(r={target:o,affixList:[e],eventHandlers:{}},J.push(r),ve.forEach(function(t){r.eventHandlers[t]=(0,ne.Z)(o,t,function(){r.affixList.forEach(function(a){a.lazyUpdatePosition()})})}))}}function se(o){var e=J.find(function(r){var t=r.affixList.some(function(a){return a===o});return t&&(r.affixList=r.affixList.filter(function(a){return a!==o})),t});e&&e.affixList.length===0&&(J=J.filter(function(r){return r!==e}),ve.forEach(function(r){var t=e.eventHandlers[r];t&&t.remove&&t.remove()}))}var ce=function(o,e,r,t){var a=arguments.length,i=a<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,r):t,s;if((typeof Reflect=="undefined"?"undefined":(0,$.Z)(Reflect))==="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,r,t);else for(var c=o.length-1;c>=0;c--)(s=o[c])&&(i=(a<3?s(i):a>3?s(e,r,i):s(e,r))||i);return a>3&&i&&Object.defineProperty(e,r,i),i};function k(){return typeof window!="undefined"?window:null}var Q;(function(o){o[o.None=0]="None",o[o.Prepare=1]="Prepare"})(Q||(Q={}));var q=function(o){(0,z.Z)(r,o);var e=(0,W.Z)(r);function r(){var t;return(0,O.Z)(this,r),t=e.apply(this,arguments),t.state={status:Q.None,lastAffix:!1,prevTarget:null},t.getOffsetTop=function(){var a=t.props,i=a.offsetBottom,s=a.offsetTop;return i===void 0&&s===void 0?0:s},t.getOffsetBottom=function(){return t.props.offsetBottom},t.savePlaceholderNode=function(a){t.placeholderNode=a},t.saveFixedNode=function(a){t.fixedNode=a},t.measure=function(){var a=t.state,i=a.status,s=a.lastAffix,c=t.props.onChange,d=t.getTargetFunc();if(!(i!==Q.Prepare||!t.fixedNode||!t.placeholderNode||!d)){var m=t.getOffsetTop(),h=t.getOffsetBottom(),g=d();if(!!g){var u={status:Q.None},x=X(g),v=X(t.placeholderNode),C=oe(v,x,m),N=fe(v,x,h);C!==void 0?(u.affixStyle={position:"fixed",top:C,width:v.width,height:v.height},u.placeholderStyle={width:v.width,height:v.height}):N!==void 0&&(u.affixStyle={position:"fixed",bottom:N,width:v.width,height:v.height},u.placeholderStyle={width:v.width,height:v.height}),u.lastAffix=!!u.affixStyle,c&&s!==u.lastAffix&&c(u.lastAffix),t.setState(u)}}},t.prepareMeasure=function(){if(t.setState({status:Q.Prepare,affixStyle:void 0,placeholderStyle:void 0}),!1)var a},t}return(0,T.Z)(r,[{key:"getTargetFunc",value:function(){var a=this.context.getTargetContainer,i=this.props.target;return i!==void 0?i:a||k}},{key:"componentDidMount",value:function(){var a=this,i=this.getTargetFunc();i&&(this.timeout=setTimeout(function(){E(i(),a),a.updatePosition()}))}},{key:"componentDidUpdate",value:function(a){var i=this.state.prevTarget,s=this.getTargetFunc(),c=(s==null?void 0:s())||null;i!==c&&(se(this),c&&(E(c,this),this.updatePosition()),this.setState({prevTarget:c})),(a.offsetTop!==this.props.offsetTop||a.offsetBottom!==this.props.offsetBottom)&&this.updatePosition(),this.measure()}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout),se(this),this.updatePosition.cancel(),this.lazyUpdatePosition.cancel()}},{key:"updatePosition",value:function(){this.prepareMeasure()}},{key:"lazyUpdatePosition",value:function(){var a=this.getTargetFunc(),i=this.state.affixStyle;if(a&&i){var s=this.getOffsetTop(),c=this.getOffsetBottom(),d=a();if(d&&this.placeholderNode){var m=X(d),h=X(this.placeholderNode),g=oe(h,m,s),u=fe(h,m,c);if(g!==void 0&&i.top===g||u!==void 0&&i.bottom===u)return}}this.prepareMeasure()}},{key:"render",value:function(){var a=this,i=this.state,s=i.affixStyle,c=i.placeholderStyle,d=this.props,m=d.affixPrefixCls,h=d.children,g=U()((0,R.Z)({},m,!!s)),u=(0,V.Z)(this.props,["prefixCls","offsetTop","offsetBottom","target","onChange","affixPrefixCls"]);return l.createElement(L.Z,{onResize:function(){a.updatePosition()}},l.createElement("div",(0,f.Z)({},u,{ref:this.savePlaceholderNode}),s&&l.createElement("div",{style:c,"aria-hidden":"true"}),l.createElement("div",{className:g,ref:this.saveFixedNode,style:s},l.createElement(L.Z,{onResize:function(){a.updatePosition()}},h))))}}]),r}(l.Component);q.contextType=G.E_,ce([ae()],q.prototype,"updatePosition",null),ce([ae()],q.prototype,"lazyUpdatePosition",null);var Ue=l.forwardRef(function(o,e){var r=o.prefixCls,t=l.useContext(G.E_),a=t.getPrefixCls,i=a("affix",r),s=(0,f.Z)((0,f.Z)({},o),{affixPrefixCls:i});return l.createElement(q,(0,f.Z)({},s,{ref:e}))}),Fe=Ue,ye=n(55690),Qt=n(84305),Ce=n(75901),_t=n(59903),kt=n(94233),qt=n(81262),er=n(59250),tr=n(30887),rr=n(49111),He=n(33671),he=n(99370),we={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"},ze=we,Pe=n(27713),be=function(e,r){return l.createElement(Pe.Z,(0,he.Z)((0,he.Z)({},e),{},{ref:r,icon:ze}))};be.displayName="ArrowLeftOutlined";var $e=l.forwardRef(be),Ke={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M869 487.8L491.2 159.9c-2.9-2.5-6.6-3.9-10.5-3.9h-88.5c-7.4 0-10.8 9.2-5.2 14l350.2 304H152c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h585.1L386.9 854c-5.6 4.9-2.2 14 5.2 14h91.5c1.9 0 3.8-.7 5.2-2L869 536.2a32.07 32.07 0 000-48.4z"}}]},name:"arrow-right",theme:"outlined"},Ge=Ke,pe=function(e,r){return l.createElement(Pe.Z,(0,he.Z)((0,he.Z)({},e),{},{ref:r,icon:Ge}))};pe.displayName="ArrowRightOutlined";var Xe=l.forwardRef(pe),Ye=n(9475),Ve=n(51890),Je=n(37419),Qe=n(28682),_e=n(96159),ke=n(31856),qe=n(81555),et=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(o);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(o,t[a])&&(r[t[a]]=o[t[a]]);return r},Ee=function(e){var r=e.prefixCls,t=e.separator,a=t===void 0?"/":t,i=e.children,s=e.overlay,c=e.dropdownProps,d=et(e,["prefixCls","separator","children","overlay","dropdownProps"]),m=l.useContext(G.E_),h=m.getPrefixCls,g=h("breadcrumb",r),u=function(C){return s?l.createElement(qe.Z,(0,f.Z)({overlay:s,placement:"bottom"},c),l.createElement("span",{className:"".concat(g,"-overlay-link")},C,l.createElement(ke.Z,null))):C},x;return"href"in d?x=l.createElement("a",(0,f.Z)({className:"".concat(g,"-link")},d),i):x=l.createElement("span",(0,f.Z)({className:"".concat(g,"-link")},d),i),x=u(x),i?l.createElement("li",null,x,a&&l.createElement("span",{className:"".concat(g,"-separator")},a)):null};Ee.__ANT_BREADCRUMB_ITEM=!0;var Ze=Ee,Oe=function(e){var r=e.children,t=l.useContext(G.E_),a=t.getPrefixCls,i=a("breadcrumb");return l.createElement("span",{className:"".concat(i,"-separator")},r||"/")};Oe.__ANT_BREADCRUMB_SEPARATOR=!0;var tt=Oe,rt=function(o,e){var r={};for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&e.indexOf(t)<0&&(r[t]=o[t]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,t=Object.getOwnPropertySymbols(o);a<t.length;a++)e.indexOf(t[a])<0&&Object.prototype.propertyIsEnumerable.call(o,t[a])&&(r[t[a]]=o[t[a]]);return r};function at(o,e){if(!o.breadcrumbName)return null;var r=Object.keys(e).join("|"),t=o.breadcrumbName.replace(new RegExp(":(".concat(r,")"),"g"),function(a,i){return e[i]||a});return t}function nt(o,e,r,t){var a=r.indexOf(o)===r.length-1,i=at(o,e);return a?l.createElement("span",null,i):l.createElement("a",{href:"#/".concat(t.join("/"))},i)}var Re=function(e,r){return e=(e||"").replace(/^\//,""),Object.keys(r).forEach(function(t){e=e.replace(":".concat(t),r[t])}),e},ot=function(e,r,t){var a=(0,I.Z)(e),i=Re(r||"",t);return i&&a.push(i),a},ge=function(e){var r=e.prefixCls,t=e.separator,a=t===void 0?"/":t,i=e.style,s=e.className,c=e.routes,d=e.children,m=e.itemRender,h=m===void 0?nt:m,g=e.params,u=g===void 0?{}:g,x=rt(e,["prefixCls","separator","style","className","routes","children","itemRender","params"]),v=l.useContext(G.E_),C=v.getPrefixCls,N=v.direction,P,M=C("breadcrumb",r);if(c&&c.length>0){var A=[];P=c.map(function(b){var F=Re(b.path,u);F&&A.push(F);var H;return b.children&&b.children.length&&(H=l.createElement(Qe.Z,{items:b.children.map(function(w){return{key:w.path||w.breadcrumbName,label:h(w,u,c,ot(A,w.path,u))}})})),l.createElement(Ze,{overlay:H,separator:a,key:F||b.breadcrumbName},h(b,u,c,A))})}else d&&(P=(0,Je.Z)(d).map(function(b,F){return b&&(0,_e.Tm)(b,{separator:a,key:F})}));var S=U()(M,(0,R.Z)({},"".concat(M,"-rtl"),N==="rtl"),s);return l.createElement("nav",(0,f.Z)({className:S,style:i},x),l.createElement("ol",null,P))};ge.Item=Ze,ge.Separator=tt;var it=ge,lt=it,st=n(42051),ct=n(19650),dt=n(34952),ut=function(e,r,t){return!r||!t?null:l.createElement(st.Z,{componentName:"PageHeader"},function(a){var i=a.back;return l.createElement("div",{className:"".concat(e,"-back")},l.createElement(dt.Z,{onClick:function(c){t==null||t(c)},className:"".concat(e,"-back-button"),"aria-label":i},r))})},ft=function(e){return l.createElement(lt,(0,f.Z)({},e))},vt=function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"ltr";return e.backIcon!==void 0?e.backIcon:r==="rtl"?l.createElement(Xe,null):l.createElement($e,null)},mt=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"ltr",a=r.title,i=r.avatar,s=r.subTitle,c=r.tags,d=r.extra,m=r.onBack,h="".concat(e,"-heading"),g=a||s||c||d;if(!g)return null;var u=vt(r,t),x=ut(e,u,m),v=x||i||g;return l.createElement("div",{className:h},v&&l.createElement("div",{className:"".concat(h,"-left")},x,i&&l.createElement(Ve.C,(0,f.Z)({},i)),a&&l.createElement("span",{className:"".concat(h,"-title"),title:typeof a=="string"?a:void 0},a),s&&l.createElement("span",{className:"".concat(h,"-sub-title"),title:typeof s=="string"?s:void 0},s),c&&l.createElement("span",{className:"".concat(h,"-tags")},c)),d&&l.createElement("span",{className:"".concat(h,"-extra")},l.createElement(ct.Z,null,d)))},ht=function(e,r){return r?l.createElement("div",{className:"".concat(e,"-footer")},r):null},gt=function(e,r){return l.createElement("div",{className:"".concat(e,"-content")},r)},xt=function(e){var r=(0,Ye.Z)(!1),t=(0,He.Z)(r,2),a=t[0],i=t[1],s=function(d){var m=d.width;i(m<768,!0)};return l.createElement(G.C,null,function(c){var d,m=c.getPrefixCls,h=c.pageHeader,g=c.direction,u,x=e.prefixCls,v=e.style,C=e.footer,N=e.children,P=e.breadcrumb,M=e.breadcrumbRender,A=e.className,S=!0;"ghost"in e?S=e.ghost:h&&"ghost"in h&&(S=h.ghost);var b=m("page-header",x),F=function(){return(P==null?void 0:P.routes)?ft(P):null},H=F(),w=P&&"props"in P,ee=(u=M==null?void 0:M(e,H))!==null&&u!==void 0?u:H,j=w?P:ee,ie=U()(b,A,(d={"has-breadcrumb":!!j,"has-footer":!!C},(0,R.Z)(d,"".concat(b,"-ghost"),S),(0,R.Z)(d,"".concat(b,"-rtl"),g==="rtl"),(0,R.Z)(d,"".concat(b,"-compact"),a),d));return l.createElement(L.Z,{onResize:s},l.createElement("div",{className:ie,style:v},j,mt(b,e,g),N&&gt(b,N),ht(b,C)))})},yt=xt,Te=n(87301),y=n(72598),ar=n(18106),Ne=n(31096),Ct=n(67179),p=n(85893),Me=n(64335),Pt=n(85224),bt=n(21349),pt=n(83832),Et=n(98775),Zt=function(e){if(!e)return 1;var r=e.backingStorePixelRatio||e.webkitBackingStorePixelRatio||e.mozBackingStorePixelRatio||e.msBackingStorePixelRatio||e.oBackingStorePixelRatio||e.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/r},Ot=function(e){var r=e.children,t=e.style,a=e.className,i=e.markStyle,s=e.markClassName,c=e.zIndex,d=c===void 0?9:c,m=e.gapX,h=m===void 0?212:m,g=e.gapY,u=g===void 0?222:g,x=e.width,v=x===void 0?120:x,C=e.height,N=C===void 0?64:C,P=e.rotate,M=P===void 0?-22:P,A=e.image,S=e.content,b=e.offsetLeft,F=e.offsetTop,H=e.fontStyle,w=H===void 0?"normal":H,ee=e.fontWeight,j=ee===void 0?"normal":ee,ie=e.fontColor,xe=ie===void 0?"rgba(0,0,0,.15)":ie,Ae=e.fontSize,Be=Ae===void 0?16:Ae,De=e.fontFamily,Se=De===void 0?"sans-serif":De,Lt=e.prefixCls,It=(0,l.useContext)(Ce.ZP.ConfigContext),Wt=It.getPrefixCls,je=Wt("pro-layout-watermark",Lt),Ut=U()("".concat(je,"-wrapper"),a),Ft=U()(je,s),Ht=(0,l.useState)(""),Le=(0,Et.Z)(Ht,2),wt=Le[0],Ie=Le[1];return(0,l.useEffect)(function(){var de=document.createElement("canvas"),Y=de.getContext("2d"),te=Zt(Y),zt="".concat((h+v)*te,"px"),$t="".concat((u+N)*te,"px"),Kt=b||h/2,Gt=F||u/2;if(de.setAttribute("width",zt),de.setAttribute("height",$t),Y){Y.translate(Kt*te,Gt*te),Y.rotate(Math.PI/180*Number(M));var Xt=v*te,We=N*te;if(A){var ue=new Image;ue.crossOrigin="anonymous",ue.referrerPolicy="no-referrer",ue.src=A,ue.onload=function(){Y.drawImage(ue,0,0,Xt,We),Ie(de.toDataURL())}}else if(S){var Yt=Number(Be)*te;Y.font="".concat(w," normal ").concat(j," ").concat(Yt,"px/").concat(We,"px ").concat(Se),Y.fillStyle=xe,Array.isArray(S)?S==null||S.forEach(function(Vt,Jt){return Y.fillText(Vt,0,Jt*50)}):Y.fillText(S,0,0),Ie(de.toDataURL())}}else console.error("\u5F53\u524D\u73AF\u5883\u4E0D\u652F\u6301Canvas")},[h,u,b,F,M,w,j,v,N,Se,xe,A,S,Be]),(0,p.jsxs)("div",{style:(0,y.Z)({position:"relative"},t),className:Ut,children:[r,(0,p.jsx)("div",{className:Ft,style:(0,y.Z)({zIndex:d,position:"absolute",left:0,top:0,width:"100%",height:"100%",backgroundSize:"".concat(h+v,"px"),pointerEvents:"none",backgroundRepeat:"repeat",backgroundImage:"url('".concat(wt,"')")},i)})]})},Rt=Ot,nr=n(12395),Tt=["title","content","pageHeaderRender","header","prefixedClassName","extraContent","style","prefixCls","breadcrumbRender"],Nt=["children","loading","className","style","footer","affixProps","ghost","fixedHeader","breadcrumbRender"];function Mt(o){return(0,Ct.Z)(o)==="object"?o:{spinning:o}}var At=function(e){var r=e.tabList,t=e.tabActiveKey,a=e.onTabChange,i=e.tabBarExtraContent,s=e.tabProps,c=e.prefixedClassName;return Array.isArray(r)||i?(0,p.jsx)(Ne.Z,(0,y.Z)((0,y.Z)({className:"".concat(c,"-tabs"),activeKey:t,onChange:function(m){a&&a(m)},tabBarExtraContent:i},s),{},{children:r==null?void 0:r.map(function(d,m){return(0,l.createElement)(Ne.Z.TabPane,(0,y.Z)((0,y.Z)({},d),{},{tab:d.tab,key:d.key||m}))})})):null},Bt=function(e,r,t){return!e&&!r?null:(0,p.jsx)("div",{className:"".concat(t,"-detail"),children:(0,p.jsx)("div",{className:"".concat(t,"-main"),children:(0,p.jsxs)("div",{className:"".concat(t,"-row"),children:[e&&(0,p.jsx)("div",{className:"".concat(t,"-content"),children:e}),r&&(0,p.jsx)("div",{className:"".concat(t,"-extraContent"),children:r})]})})})},or=function(e){var r=useContext(RouteContext);return _jsx("div",{style:{height:"100%",display:"flex",alignItems:"center"},children:_jsx(_Breadcrumb,_objectSpread(_objectSpread(_objectSpread({},r==null?void 0:r.breadcrumb),r==null?void 0:r.breadcrumbProps),e))})},Dt=function(e){var r,t=(0,l.useContext)(Me.Z),a=e.title,i=e.content,s=e.pageHeaderRender,c=e.header,d=e.prefixedClassName,m=e.extraContent,h=e.style,g=e.prefixCls,u=e.breadcrumbRender,x=(0,Te.Z)(e,Tt),v=(0,l.useMemo)(function(){if(!!u)return u},[u]);if(s===!1)return null;if(s)return(0,p.jsxs)(p.Fragment,{children:[" ",s((0,y.Z)((0,y.Z)({},e),t))]});var C=a;!a&&a!==!1&&(C=t.title);var N=(0,y.Z)((0,y.Z)((0,y.Z)({},t),{},{title:C},x),{},{footer:At((0,y.Z)((0,y.Z)({},x),{},{breadcrumbRender:u,prefixedClassName:d}))},c),P=N.breadcrumb,M=(!P||!(P==null?void 0:P.itemRender)&&!(P==null||(r=P.routes)===null||r===void 0?void 0:r.length))&&!u;return["title","subTitle","extra","tags","footer","avatar","backIcon"].every(function(A){return!N[A]})&&M&&!i&&!m?null:(0,p.jsx)("div",{className:"".concat(d,"-warp"),children:(0,p.jsx)(yt,(0,y.Z)((0,y.Z)({},N),{},{breadcrumb:u===!1?void 0:(0,y.Z)((0,y.Z)({},N.breadcrumb),t.breadcrumbProps),breadcrumbRender:v,prefixCls:g,children:(c==null?void 0:c.children)||Bt(i,m,d)}))})},St=function(e){var r,t,a=e.children,i=e.loading,s=i===void 0?!1:i,c=e.className,d=e.style,m=e.footer,h=e.affixProps,g=e.ghost,u=e.fixedHeader,x=e.breadcrumbRender,v=(0,Te.Z)(e,Nt),C=(0,l.useContext)(Me.Z),N=(0,l.useContext)(Ce.ZP.ConfigContext),P=N.getPrefixCls,M=e.prefixCls||P("pro"),A="".concat(M,"-page-container"),S=U()(A,c,(r={},(0,ye.Z)(r,"".concat(M,"-page-container-ghost"),g),(0,ye.Z)(r,"".concat(M,"-page-container-with-footer"),m),r)),b=(0,l.useMemo)(function(){return a?(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"".concat(A,"-children-content"),children:a}),C.hasFooterToolbar&&(0,p.jsx)("div",{style:{height:48,marginTop:24}})]}):null},[a,A,C.hasFooterToolbar]),F=(0,l.useMemo)(function(){var j;return x==!1?!1:x||(v==null||(j=v.header)===null||j===void 0?void 0:j.breadcrumbRender)},[x,v==null||(t=v.header)===null||t===void 0?void 0:t.breadcrumbRender]),H=(0,p.jsx)(Dt,(0,y.Z)((0,y.Z)({},v),{},{breadcrumbRender:F,ghost:g,prefixCls:void 0,prefixedClassName:A})),w=(0,l.useMemo)(function(){if(l.isValidElement(s))return s;if(typeof s=="boolean"&&!s)return null;var j=Mt(s);return(0,p.jsx)(pt.Z,(0,y.Z)({},j))},[s]),ee=(0,l.useMemo)(function(){var j=w||b;if(e.waterMarkProps||C.waterMarkProps){var ie=(0,y.Z)((0,y.Z)({},C.waterMarkProps),e.waterMarkProps);return(0,p.jsx)(Rt,(0,y.Z)((0,y.Z)({},ie),{},{children:j}))}return j},[e.waterMarkProps,C.waterMarkProps,w,b]);return(0,p.jsxs)("div",{style:d,className:S,children:[u&&H?(0,p.jsx)(Fe,(0,y.Z)((0,y.Z)({offsetTop:C.hasHeader&&C.fixedHeader?C.headerHeight:0},h),{},{children:H})):H,ee&&(0,p.jsx)(bt.Z,{children:ee}),m&&(0,p.jsx)(Pt.Z,{prefixCls:M,children:m})]})},jt=St},13738:function(_,B,n){"use strict";n.d(B,{Z:function(){return Z}});function Z(D,f){(f==null||f>D.length)&&(f=D.length);for(var R=0,O=new Array(f);R<f;R++)O[R]=D[R];return O}},98775:function(_,B,n){"use strict";n.d(B,{Z:function(){return O}});function Z(T){if(Array.isArray(T))return T}function D(T,z){var W=T==null?null:typeof Symbol!="undefined"&&T[Symbol.iterator]||T["@@iterator"];if(W!=null){var $=[],K=!0,U=!1,L,V;try{for(W=W.call(T);!(K=(L=W.next()).done)&&($.push(L.value),!(z&&$.length===z));K=!0);}catch(l){U=!0,V=l}finally{try{!K&&W.return!=null&&W.return()}finally{if(U)throw V}}return $}}var f=n(89523);function R(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(T,z){return Z(T)||D(T,z)||(0,f.Z)(T,z)||R()}},67179:function(_,B,n){"use strict";n.d(B,{Z:function(){return Z}});function Z(D){return Z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(f){return typeof f}:function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},Z(D)}},89523:function(_,B,n){"use strict";n.d(B,{Z:function(){return D}});var Z=n(13738);function D(f,R){if(!!f){if(typeof f=="string")return(0,Z.Z)(f,R);var O=Object.prototype.toString.call(f).slice(8,-1);if(O==="Object"&&f.constructor&&(O=f.constructor.name),O==="Map"||O==="Set")return Array.from(f);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return(0,Z.Z)(f,R)}}},56264:function(){},53645:function(){},12395:function(){},70883:function(){},81262:function(){},59903:function(){}}]);