(this["webpackJsonp@rclone/rclone-webui-react"]=this["webpackJsonp@rclone/rclone-webui-react"]||[]).push([[22],{614:function(e,a,n){"use strict";n.r(a);var t=n(1),o=n(0),l=n.n(o),r=n(11),c=n(269),s=n(2),i=n(282);var m=n(394),p={items:[{name:"Dashboard",url:"/dashboard",icon:"icon-speedometer"},{name:"Configs",url:"/showconfig",icon:"icon-note"},{name:"Explorer",url:"/remoteExplorer",icon:"icon-screen-desktop"},{name:"Backend",url:"/rcloneBackend",icon:"icon-star"},{name:"Mounts",url:"/mountDashboard",icon:"fa fa-hdd-o"},{name:"Log Out",url:"/login",icon:"icon-logout"}]};const d=l.a.lazy(()=>Promise.all([n.e(0),n.e(2),n.e(16)]).then(n.bind(null,617))),u=l.a.lazy(()=>Promise.all([n.e(0),n.e(1),n.e(4),n.e(17)]).then(n.bind(null,620))),h=l.a.lazy(()=>n.e(18).then(n.bind(null,621))),g=l.a.lazy(()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(8),n.e(11)]).then(n.bind(null,612)));var b=[{path:"/",exact:!0,name:"Home"},{path:"/newdrive/edit/:drivePrefix",name:"Edit Remote",component:d},{path:"/newdrive",exact:!0,name:"New Remote",component:d},{path:"/login",exact:!0,name:"Login Page",component:l.a.lazy(()=>Promise.all([n.e(0),n.e(3)]).then(n.bind(null,615)))},{path:"/dashboard",name:"Dashboard",component:u},{path:"/showconfig",name:"Configs",component:h},{path:"/remoteExplorer/:remoteName/:remotePath",exact:!0,name:"Explorer",component:g},{path:"/remoteExplorer",name:"Explorer",component:g},{path:"/rcloneBackend",name:"Rclone Backend",component:l.a.lazy(()=>n.e(13).then(n.bind(null,611)))},{path:"/mountDashboard",name:"Mount Dashboard",component:l.a.lazy(()=>Promise.all([n.e(0),n.e(2),n.e(12)]).then(n.bind(null,618)))}],E=n(84),f=n(35),y=n(85);const v=l.a.lazy(()=>n.e(20).then(n.bind(null,600))),x=l.a.lazy(()=>Promise.all([n.e(0),n.e(1),n.e(4),n.e(19)]).then(n.bind(null,601))),k={attributes:{target:"_blank"},class:"mt-auto",icon:"cui-cog",url:"https://rclone.org/changelog",variant:"success"};class w extends o.Component{constructor(...e){super(...e),this.loading=()=>l.a.createElement("div",{className:"animated fadeIn pt-1 text-center"},"Loading...")}get navConfig(){return{items:[...p.items,Object(t.a)({name:this.props.version.version},k)]}}componentDidMount(){localStorage.getItem(f.a)?this.props.getVersion():this.props.history.push("/login")}render(){return l.a.createElement("div",{className:"app","data-test":"defaultLayout"},l.a.createElement(y.a,null,l.a.createElement(m.c,{fixed:!0},l.a.createElement(o.Suspense,{fallback:this.loading()},l.a.createElement(x,{onLogout:e=>this.signOut(e)}))),l.a.createElement("div",{className:"app-body"},l.a.createElement(m.e,{fixed:!0,display:"lg"},l.a.createElement(m.h,null),l.a.createElement(m.g,null),l.a.createElement(o.Suspense,{fallback:this.loading()},l.a.createElement(m.j,{navConfig:this.navConfig})),l.a.createElement(m.f,null),l.a.createElement(m.i,null)),l.a.createElement("main",{className:"main"},l.a.createElement(m.a,{appRoutes:b}),l.a.createElement(c.a,{fluid:!0},l.a.createElement(o.Suspense,{fallback:this.loading()},l.a.createElement(r.d,null,b.map((e,a)=>e.component?l.a.createElement(r.b,{key:a,path:e.path,exact:e.exact,name:e.name,render:a=>l.a.createElement(e.component,a)}):null),l.a.createElement(r.a,{from:"/",to:"/dashboard"})))))),l.a.createElement(m.b,null,l.a.createElement(o.Suspense,{fallback:this.loading()},l.a.createElement(v,null)))))}}a.default=Object(E.b)(e=>({isConnected:e.status.isConnected,version:e.version}),{getVersion:()=>e=>{Object(i.getRcloneVersion)().then(a=>e({type:s.B,status:s.L,payload:a}),a=>e({type:s.B,status:s.J,payload:a}))}})(w)}}]);
//# sourceMappingURL=22.573eea4c.chunk.js.map