text: "use strict";(self.webpackChunkisland_install_front=self.webpackChunkisland_install_front||[]).push([[130],{9678:(e,t,n)=>{n.d(t,{Z:()=>l});var a=n(7294),r=n(3411),c=n(4494),o=n(5477);const l=(0,c.$j)((function(e){return e}))((function(e){var t=r.Z.getState().common.loading;return a.createElement("div",{className:" circular-progress ".concat(t?"show-progress":"")},a.createElement(o.Z,{size:60,color:"primary"}))}))},6105:(e,t,n)=>{n.d(t,{Z:()=>u});var a=n(7462),r=n(7294),c=n(6912),o=n(2285),l=n(3411),i=n(5347),s=n(4494),m=function(e){return r.createElement(o.Z,(0,a.Z)({},e,{direction:"up"}))};const u=(0,s.$j)((function(e){return e}))((function(e){return r.createElement("div",{className:"snackbar-container"},r.createElement(c.Z,{open:Boolean(l.Z.getState().common.snackbar),anchorOrigin:{vertical:"bottom",horizontal:"center"},autoHideDuration:5e3,onClose:function(){l.Z.dispatch({type:i.Sn,val:""})},TransitionComponent:m,message:l.Z.getState().common.snackbar}))}))},7130:(e,t,n)=>{n.r(t),n.d(t,{default:()=>b});var a=n(7294),r=n(8390),c=n(5977),o=n(4494),l=n(3411),i=n(5347),s=(n(9669),[{name:"应用管理",url:"/home",sub:[]},{name:"工作负载",url:"/home/workload",sub:[]},{name:"密码设置",url:"/home/reset",sub:[]}]);const m=(0,o.$j)((function(e){return e}))((0,c.EN)((function(e){sessionStorage.getItem("curNav")||sessionStorage.setItem("curNav","/home");var t=(0,a.useState)(sessionStorage.getItem("curNav")),n=(0,r.Z)(t,2),c=n[0],o=n[1],m=(0,a.useState)([]),u=(0,r.Z)(m,2),d=u[0],h=u[1];function f(t){var n=t.currentTarget.dataset,a=n.id,r=n.path,c="https://"+n.href;if(""===r){var s=d.slice();!function e(t,n){if(t&&Array.isArray(t))for(var a=0,r=t.length;a<r;a++){if(t[a].id===n){t[a].showChild=!t[a].showChild;break}t[a].children&&e(t[a].children,n)}}(s,a),h(s)}else o(r),sessionStorage.setItem("curNav",r),r.indexOf(".")>-1?(e.change("/system"),l.Z.dispatch({type:i.nj,val:c})):e.change(r)}return(0,a.useEffect)((function(){var e=function(e){return function e(t,n){Array.isArray(t)&&t.forEach((function(t,a){t.id=n+"."+a,t.sub&&e(t.sub,a+1)}))}(e,1),e}(s);h(e)}),[]),(0,a.useEffect)((function(){sessionStorage.setItem("curNav",e.common.curNav),o(e.common.curNav)}),[e.common.curNav]),a.createElement("div",{className:"nav-container"},a.createElement("div",{className:"logo"},a.createElement("p",{className:"logo-title"},"Crab")),a.createElement("div",{className:"nav-list"},d.map((function(e,t){return a.createElement("div",{className:"list-item",key:e.id},a.createElement("div",{className:"item-content ".concat(c==e.url?"blueBorder":""),"data-id":e.id,"data-path":e.url,onClick:f},a.createElement("i",{className:"iconfont ".concat(e.icon||"")}),a.createElement("span",null,e.name)),e.sub&&e.showChild?e.sub.map((function(e,t){return a.createElement("div",{className:"list-item",key:e.id},a.createElement("div",{className:"item-content item-content-child ".concat(c==e.url?"blueBorder":""),"data-id":e.id,"data-path":e.url,"data-href":e.url||"",onClick:f},a.createElement("i",{className:"iconfont ".concat(e.icon||"")}),a.createElement("span",null,e.name)))})):null)}))))})));var u=n(8925),d=n(9678),h=n(6105),f=(0,a.lazy)((function(){return Promise.all([n.e(660),n.e(510),n.e(641),n.e(815),n.e(400)]).then(n.bind(n,8735))})),v=(0,a.lazy)((function(){return Promise.all([n.e(660),n.e(510),n.e(641),n.e(815),n.e(197)]).then(n.bind(n,2263))})),p=(0,a.lazy)((function(){return Promise.all([n.e(660),n.e(65)]).then(n.bind(n,5065))})),E=(0,a.lazy)((function(){return Promise.all([n.e(660),n.e(893)]).then(n.bind(n,893))})),N=(0,a.lazy)((function(){return n.e(725).then(n.bind(n,2725))}));const b=function(e){var t=(0,c.k6)();return a.createElement("div",{className:"home-container"},a.createElement("div",{className:"content-left"},a.createElement(m,{change:function(e){t.push(e)}})),a.createElement("div",{className:"content-right"},a.createElement(a.Suspense,{fallback:(0,u.Z)()},a.createElement(c.rs,null,a.createElement(c.AW,{path:"/home/online",component:N}),a.createElement(c.AW,{path:"/home/workload",component:v}),a.createElement(c.AW,{path:"/home/domain",component:p}),a.createElement(c.AW,{path:"/home/reset",component:E}),a.createElement(c.AW,{path:"/home",component:f})))),a.createElement(d.Z,null),a.createElement(h.Z,null))}}}]);