(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[83509,84771],{77541:function(Y){Y.exports={root:"root___3mOZe",colorWeak:"colorWeak___3Ge5S","ant-layout":"ant-layout___cL_PV",globalSpin:"globalSpin___3Jk5L","ant-table":"ant-table___3ZNpi","ant-table-thead":"ant-table-thead___17pzJ","ant-table-tbody":"ant-table-tbody___1YDpm",formBox:"formBox___2kFZL",ViewBox:"ViewBox___1oDUc"}},16695:function(){},83509:function(Y,j,n){"use strict";n.r(j);var w=n(32157),E=n(82363),U=n(67294),g=n(28216),x=n(37226),o=n(7861),ve=n(19755),z=n.n(ve),W=n(77541),G=n.n(W),Q=n(41273),X=n(30672),v=n(85893),$,q,_=E.Z.TreeNode,De=E.Z.DirectoryTree,ee=(D,s)=>{var h=x.rJ.often,y=x.rJ.basics,i=x.rJ.senior,p=x.rJ.school,K=x.rJ.group,N=[...h,...y,...i,...p,...K],T="\u7EC4\u5408";return N.map(u=>{if(u.type==D)return T=u[s],!1}),T},ue=($=(0,g.$j)(D=>{var s=D.globaldesign,h=D.storagedesign,y=D.page,i=D.commondesign;return{globaldesign:s,storagedesign:h,page:y,commondesign:i}}),$(q=class extends U.Component{constructor(){super(...arguments);this.state={},this.onSelect=(s,h)=>{var y=this,i=this.props.dispatch;if(s[0]=="main"||s[0]=="header"||s[0]=="mainly"||s[0]=="footer")return!1;if(s[0]){var p=z()("[data-mid="+s[0]+"]"),K=z()("#header").height(),N=z()("#mainly").height(),T=p.parents(".topFloor"),u=parseInt(p.css("top"));switch(T.attr("id")){case"header":u=u-100-150;break;case"mainly":u=u+K-150-150;break;case"footer":u=u+K+N-350;break}i({type:"globaldesign/changeState",payload:{changeScrollY:(0,o.bV)(-u,y)}}),(0,Q.J$)(p,y)}},this.renderTreeNodes=s=>{var h=this,y="zh";return s.map(i=>{var p=i.mid||(0,Q.U$)();return i.children?(0,v.jsx)(_,{item:i,title:(0,v.jsx)("span",{children:ee(i.type,y)}),children:h.renderTreeNodes(i.children)},p):(0,v.jsx)(_,{item:i,title:(0,v.jsx)("span",{children:ee(i.type,y)})},p)})}}componentDidMount(){}render(){var s=this,h=this.props,y=h.globaldesign,i=h.storagedesign,p=h.page,K=h.commondesign,N=y.selectElement,T=i.header,u=i.mainly,te=i.footer,he=p.pageName,me=K.mainDesignId,ne=K.designId,m=(0,X.lw)((0,X.Kd)()),F=N.length>0?N.attr("data-mid"):"",ye={display:"inline-block",width:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};return(0,v.jsx)("div",{className:G().ViewBox,children:(0,v.jsx)(E.Z,{showLine:!0,defaultExpandedKeys:["main"],onSelect:s.onSelect,selectedKeys:[F],children:me==ne?(0,v.jsxs)(_,{title:he,children:[(0,v.jsx)(_,{title:m.formatMessage({id:"mack.dsl.ze"}),children:s.renderTreeNodes(T)},"header"),(0,v.jsx)(_,{title:m.formatMessage({id:"mack.dsl.zf"}),children:s.renderTreeNodes(u)},"mainly"),(0,v.jsx)(_,{title:m.formatMessage({id:"mack.dsl.zg"}),children:s.renderTreeNodes(te)},"footer")]},"main"):(0,v.jsx)(_,{title:(0,v.jsx)("span",{style:ye,children:m.formatMessage({id:"mack.dsl.zh"})}),children:s.renderTreeNodes(u)},"0-0")})})}})||q);j.default=ue},82363:function(Y,j,n){"use strict";n.d(j,{Z:function(){return Se}});var w=n(93549),E=n(96156),U=n(90484),g=n(22122),x=n(28991),o=n(67294),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},z=ve,W=n(27029),G=function(r,a){return o.createElement(W.Z,(0,x.Z)((0,x.Z)({},r),{},{ref:a,icon:z}))};G.displayName="HolderOutlined";var Q=o.forwardRef(G),X=n(94184),v=n.n(X),$=n(53124),q=n(33603),_=4;function De(e){var r,a=e.dropPosition,l=e.dropLevelOffset,d=e.prefixCls,c=e.indent,t=e.direction,P=t===void 0?"ltr":t,f=P==="ltr"?"left":"right",A=P==="ltr"?"right":"left",M=(r={},(0,E.Z)(r,f,-l*c+_),(0,E.Z)(r,A,0),r);switch(a){case-1:M.top=-3;break;case 1:M.bottom=-3;break;default:M.bottom=-3,M[f]=c+_;break}return o.createElement("div",{style:M,className:"".concat(d,"-drop-indicator")})}var ee=n(6324),ue=o.forwardRef(function(e,r){var a,l=o.useContext($.E_),d=l.getPrefixCls,c=l.direction,t=l.virtual,P=e.prefixCls,f=e.className,A=e.showIcon,M=A===void 0?!1:A,H=e.showLine,xe=e.switcherIcon,V=e.blockNode,ae=V===void 0?!1:V,re=e.children,k=e.checkable,R=k===void 0?!1:k,le=e.selectable,J=le===void 0?!0:le,S=e.draggable,oe=e.motion,pe=oe===void 0?(0,g.Z)((0,g.Z)({},q.ZP),{motionAppear:!1}):oe,C=d("tree",P),Oe=(0,g.Z)((0,g.Z)({},e),{checkable:R,selectable:J,showIcon:M,motion:pe,blockNode:ae,showLine:Boolean(H),dropIndicatorRender:De}),se=o.useMemo(function(){if(!S)return!1;var Z={};switch((0,U.Z)(S)){case"function":Z.nodeDraggable=S;break;case"object":Z=(0,g.Z)({},S);break;default:break}return Z.icon!==!1&&(Z.icon=Z.icon||o.createElement(Q,null)),Z},[S]);return o.createElement(w.Z,(0,g.Z)({itemHeight:20,ref:r,virtual:t},Oe,{prefixCls:C,className:v()((a={},(0,E.Z)(a,"".concat(C,"-icon-hide"),!M),(0,E.Z)(a,"".concat(C,"-block-node"),ae),(0,E.Z)(a,"".concat(C,"-unselectable"),!J),(0,E.Z)(a,"".concat(C,"-rtl"),c==="rtl"),a),f),direction:c,checkable:R&&o.createElement("span",{className:"".concat(C,"-checkbox-inner")}),selectable:J,switcherIcon:function(de){return(0,ee.Z)(C,xe,H,de)},draggable:se}),re)}),D=ue,s=n(85061),h=n(28481),y=n(88637),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},p=i,K=function(r,a){return o.createElement(W.Z,(0,x.Z)((0,x.Z)({},r),{},{ref:a,icon:p}))};K.displayName="FolderOpenOutlined";var N=o.forwardRef(K),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 298.4H521L403.7 186.2a8.15 8.15 0 00-5.5-2.2H144c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V330.4c0-17.7-14.3-32-32-32zM840 768H184V256h188.5l119.6 114.4H840V768z"}}]},name:"folder",theme:"outlined"},u=T,te=function(r,a){return o.createElement(W.Z,(0,x.Z)((0,x.Z)({},r),{},{ref:a,icon:u}))};te.displayName="FolderOutlined";var he=o.forwardRef(te),me=n(10225),ne=n(1089),m;(function(e){e[e.None=0]="None",e[e.Start=1]="Start",e[e.End=2]="End"})(m||(m={}));function F(e,r){function a(l){var d=l.key,c=l.children;r(d,l)!==!1&&F(c||[],r)}e.forEach(a)}function ye(e){var r=e.treeData,a=e.expandedKeys,l=e.startKey,d=e.endKey,c=[],t=m.None;if(l&&l===d)return[l];if(!l||!d)return[];function P(f){return f===l||f===d}return F(r,function(f){if(t===m.End)return!1;if(P(f)){if(c.push(f),t===m.None)t=m.Start;else if(t===m.Start)return t=m.End,!1}else t===m.Start&&c.push(f);return a.includes(f)}),c}function Ee(e,r){var a=(0,s.Z)(r),l=[];return F(e,function(d,c){var t=a.indexOf(d);return t!==-1&&(l.push(c),a.splice(t,1)),!!a.length}),l}var Ke=function(e,r){var a={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&r.indexOf(l)<0&&(a[l]=e[l]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var d=0,l=Object.getOwnPropertySymbols(e);d