{"version":3,"sources":["config.js","App/layout/Loader/index.js","hoc/_Aux/index.js","store/actions.js","App/layout/ScrollToTop/index.js","route.js","App/index.js","serviceWorker.js","store/reducer.js","index.js"],"names":["__webpack_exports__","defaultPath","basename","layout","subLayout","collapseMenu","layoutType","headerBackColor","navBrandColor","rtlLayout","navFixedLayout","headerFixedLayout","boxLayout","react__WEBPACK_IMPORTED_MODULE_0__","__webpack_require__","react__WEBPACK_IMPORTED_MODULE_0___default","n","loader","a","createElement","className","Aux","props","children","d","COLLAPSE_MENU","COLLAPSE_TOGGLE","FULL_SCREEN","FULL_SCREEN_EXIT","CHANGE_LAYOUT","CHANGE_SUB_LAYOUT","LAYOUT_TYPE","RESET","NAV_BACK_COLOR","NAV_BRAND_COLOR","HEADER_BACK_COLOR","RTL_LAYOUT","NAV_FIXED_LAYOUT","HEADER_FIXED_LAYOUT","BOX_LAYOUT","NAV_CONTENT_LEAVE","NAV_COLLAPSE_LEAVE","ScrollToTop","prevProps","this","location","window","scrollTo","React","Component","withRouter","SignUp1","lazy","e","then","bind","SignUp2","Signin1","Signin2","ResetPassword1","ResetPassword2","ChangePassword","ProfileSettings","TabsAuth","Error","OfflineUI","route","path","exact","name","component","AdminLayout","Loadable","Promise","all","loading","Loader","App","menu","routes","map","index","react_default","Route","key","render","_Aux","layout_ScrollToTop","react","fallback","Switch","Boolean","hostname","match","initialState","Object","objectSpread","isOpen","isTrigger","config","isFullScreen","reducer","state","arguments","length","undefined","action","trigger","open","type","actionTypes","triggerIndex","indexOf","id","filter","item","concat","toConsumableArray","store","createStore","app","es","BrowserRouter","src_App","ReactDOM","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"0FAAeA,EAAA,GACXC,YAAa,uBACbC,SAAU,4CACVC,OAAQ,WACRC,UAAW,GACXC,cAAc,EACdC,WAAY,YACZC,gBAAiB,cACjBC,cAAe,gBACfC,WAAW,EACXC,gBAAgB,EAChBC,mBAAmB,EACnBC,WAAW,oCCZf,IAAAC,EAAAC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vC,OAAOmC,EAAKK,SAASC,eAAe,SFkGvC,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAM3E,KAAK,SAAA4E,GACjCA,EAAaC","file":"static/js/main.30fe6a5c.chunk.js","sourcesContent":["export default {\r\n    defaultPath: '/dashboard/analytics',\r\n    basename: '/demos/admin-templates/next/react/default', // only at build time to set, like //next/react/\r\n    layout: 'vertical', // vertical, horizontal\r\n    subLayout: '', // horizontal-2\r\n    collapseMenu: false, // mini-menu\r\n    layoutType: 'menu-dark', // menu-dark, menu-light, dark\r\n    headerBackColor: 'header-blue', // header-default, header-blue, header-red, header-purple, header-info, header-dark\r\n    navBrandColor: 'brand-default', // brand-default, brand-blue, brand-red, brand-purple, brand-info, brand-dark\r\n    rtlLayout: false,\r\n    navFixedLayout: true,\r\n    headerFixedLayout: true,\r\n    boxLayout: false\r\n};\r\n","import React from 'react';\r\n\r\nconst loader = () => {\r\n    return (\r\n        <div className=\"loader-bg\">\r\n            <div className=\"loader-track\">\r\n                <div className=\"loader-fill\"/>\r\n            </div>\r\n        </div>\r\n    );\r\n};\r\n\r\nexport default loader;","const Aux = (props) => props.children;\r\n\r\nexport default Aux;","export const COLLAPSE_MENU = 'COLLAPSE_MENU';\r\nexport const COLLAPSE_TOGGLE = 'COLLAPSE_TOGGLE';\r\nexport const FULL_SCREEN = 'FULL_SCREEN';\r\nexport const FULL_SCREEN_EXIT = 'FULL_SCREEN_EXIT';\r\nexport const CHANGE_LAYOUT = 'CHANGE_LAYOUT';\r\nexport const CHANGE_SUB_LAYOUT = 'CHANGE_SUB_LAYOUT';\r\nexport const LAYOUT_TYPE = 'LAYOUT_TYPE';\r\nexport const RESET = 'RESET';\r\nexport const NAV_BACK_COLOR = 'NAV_BACK_COLOR';\r\nexport const NAV_BRAND_COLOR = 'NAV_BRAND_COLOR';\r\nexport const HEADER_BACK_COLOR = 'HEADER_BACK_COLOR';\r\nexport const RTL_LAYOUT = 'RTL_LAYOUT';\r\nexport const NAV_FIXED_LAYOUT = 'NAV_FIXED_LAYOUT';\r\nexport const HEADER_FIXED_LAYOUT = 'HEADER_FIXED_LAYOUT';\r\nexport const BOX_LAYOUT = 'BOX_LAYOUT';\r\nexport const NAV_CONTENT_LEAVE = 'NAV_CONTENT_LEAVE';\r\nexport const NAV_COLLAPSE_LEAVE = 'NAV_COLLAPSE_LEAVE';","import React from 'react';\r\nimport { withRouter } from 'react-router';\r\n\r\nclass ScrollToTop extends React.Component {\r\n    componentDidUpdate(prevProps) {\r\n        if (this.props.location !== prevProps.location) {\r\n            window.scrollTo(0, 0)\r\n        }\r\n    }\r\n\r\n    render() {\r\n        return this.props.children\r\n    }\r\n}\r\n\r\nexport default withRouter(ScrollToTop);","import React from 'react';\r\n\r\nconst SignUp1 = React.lazy(() => import('./Demo/Authentication/SignUp/SignUp1'));\r\nconst SignUp2 = React.lazy(() => import('./Demo/Authentication/SignUp/SignUp2'));\r\nconst Signin1 = React.lazy(() => import('./Demo/Authentication/SignIn/SignIn1'));\r\nconst Signin2 = React.lazy(() => import('./Demo/Authentication/SignIn/SignIn2'));\r\nconst ResetPassword1 = React.lazy(() => import('./Demo/Authentication/ResetPassword/ResetPassword1'));\r\nconst ResetPassword2 = React.lazy(() => import('./Demo/Authentication/ResetPassword/ResetPassword2'));\r\nconst ChangePassword = React.lazy(() => import('./Demo/Authentication/ChangePassword'));\r\nconst ProfileSettings = React.lazy(() => import('./Demo/Authentication/ProfileSettings'));\r\nconst TabsAuth = React.lazy(() => import('./Demo/Authentication/TabsAuth'));\r\nconst Error = React.lazy(() => import('./Demo/Maintenance/Error'));\r\nconst OfflineUI = React.lazy(() => import('./Demo/Maintenance/OfflineUI'));\r\nconst ComingSoon = React.lazy(() => import('./Demo/Maintenance/ComingSoon'));\r\n\r\nconst route = [\r\n    { path: '/auth/signup-1', exact: true, name: 'Signup 1', component: SignUp1 },\r\n    { path: '/auth/signup-2', exact: true, name: 'Signup 2', component: SignUp2 },\r\n    { path: '/auth/signin-1', exact: true, name: 'Signin 1', component: Signin1 },\r\n    { path: '/auth/signin-2', exact: true, name: 'Signin 2', component: Signin2 },\r\n    { path: '/auth/reset-password-1', exact: true, name: 'Reset Password 1', component: ResetPassword1 },\r\n    { path: '/auth/reset-password-2', exact: true, name: 'Reset Password 2', component: ResetPassword2 },\r\n    { path: '/auth/change-password', exact: true, name: 'Change Password', component: ChangePassword },\r\n    { path: '/auth/profile-settings', exact: true, name: 'Profile Settings', component: ProfileSettings },\r\n    { path: '/auth/tabs-auth', exact: true, name: 'Tabs Authentication', component: TabsAuth },\r\n    { path: '/maintenance/error', exact: true, name: 'Error', component: Error },\r\n    { path: '/maintenance/coming-soon', exact: true, name: 'Coming Soon', component: ComingSoon },\r\n    { path: '/maintenance/offline-ui', exact: true, name: 'Offline UI', component: OfflineUI },\r\n];\r\n\r\nexport default route;","import React, { Component, Suspense } from 'react';\nimport { Switch, Route } from 'react-router-dom';\nimport Loadable from 'react-loadable';\n\nimport '../../node_modules/font-awesome/scss/font-awesome.scss';\n\nimport Loader from './layout/Loader'\nimport Aux from \"../hoc/_Aux\";\nimport ScrollToTop from './layout/ScrollToTop';\nimport routes from \"../route\";\n\nconst AdminLayout = Loadable({\n    loader: () => import('./layout/AdminLayout'),\n    loading: Loader\n});\n\nclass App extends Component {\n    render() {\n        const menu = routes.map((route, index) => {\n          return (route.component) ? (\n              <Route\n                  key={index}\n                  path={route.path}\n                  exact={route.exact}\n                  name={route.name}\n                  render={props => (\n                      <route.component {...props} />\n                  )} />\n          ) : (null);\n        });\n\n        return (\n            <Aux>\n                <ScrollToTop>\n                    <Suspense fallback={<Loader/>}>\n                        <Switch>\n                            {menu}\n                            <Route path=\"/\" component={AdminLayout} />\n                        </Switch>\n                    </Suspense>\n                </ScrollToTop>\n            </Aux>\n        );\n    }\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n  window.location.hostname === 'localhost' ||\n    // [::1] is the IPv6 localhost address.\n    window.location.hostname === '[::1]' ||\n    // 127.0.0.1/8 is considered localhost for IPv4.\n    window.location.hostname.match(\n      /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n    )\n);\n\nexport function register(config) {\n  if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n    // The URL constructor is available in all browsers that support SW.\n    const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n    if (publicUrl.origin !== window.location.origin) {\n      // Our service worker won't work if PUBLIC_URL is on a different origin\n      // from what our page is served on. This might happen if a CDN is used to\n      // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n      return;\n    }\n\n    window.addEventListener('load', () => {\n      const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n      if (isLocalhost) {\n        // This is running on localhost. Let's check if a service worker still exists or not.\n        checkValidServiceWorker(swUrl, config);\n\n        // Add some additional logging to localhost, pointing developers to the\n        // service worker/PWA documentation.\n        navigator.serviceWorker.ready.then(() => {\n          console.log(\n            'This web app is being served cache-first by a service ' +\n              'worker. To learn more, visit https://bit.ly/CRA-PWA'\n          );\n        });\n      } else {\n        // Is not localhost. Just register service worker\n        registerValidSW(swUrl, config);\n      }\n    });\n  }\n}\n\nfunction registerValidSW(swUrl, config) {\n  navigator.serviceWorker\n    .register(swUrl)\n    .then(registration => {\n      registration.onupdatefound = () => {\n        const installingWorker = registration.installing;\n        if (installingWorker == null) {\n          return;\n        }\n        installingWorker.onstatechange = () => {\n          if (installingWorker.state === 'installed') {\n            if (navigator.serviceWorker.controller) {\n              // At this point, the updated precached content has been fetched,\n              // but the previous service worker will still serve the older\n              // content until all client tabs are closed.\n\n              // Execute callback\n              if (config && config.onUpdate) {\n                config.onUpdate(registration);\n              }\n            } else {\n              // At this point, everything has been precached.\n              // It's the perfect time to display a\n              // \"Content is cached for offline use.\" message.\n\n              // Execute callback\n              if (config && config.onSuccess) {\n                config.onSuccess(registration);\n              }\n            }\n          }\n        };\n      };\n    })\n    .catch(error => {\n      console.error('Error during service worker registration:', error);\n    });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n  // Check if the service worker can be found. If it can't reload the page.\n  fetch(swUrl)\n    .then(response => {\n      // Ensure service worker exists, and that we really are getting a JS file.\n      const contentType = response.headers.get('content-type');\n      if (\n        response.status === 404 ||\n        (contentType != null && contentType.indexOf('javascript') === -1)\n      ) {\n        // No service worker found. Probably a different app. Reload the page.\n        navigator.serviceWorker.ready.then(registration => {\n          registration.unregister().then(() => {\n            window.location.reload();\n          });\n        });\n      } else {\n        // Service worker found. Proceed as normal.\n        registerValidSW(swUrl, config);\n      }\n    })\n    .catch(() => {\n    });\n}\n\nexport function unregister() {\n  if ('serviceWorker' in navigator) {\n    navigator.serviceWorker.ready.then(registration => {\n      registration.unregister();\n    });\n  }\n}\n","import * as actionTypes from './actions';\r\nimport config from './../config';\r\n\r\nconst initialState = {\r\n    isOpen: [], //for active default menu\r\n    isTrigger: [], //for active default menu, set blank for horizontal\r\n    ...config,\r\n    isFullScreen: false, // static can't change\r\n};\r\n\r\nconst reducer = (state = initialState, action) => {\r\n    let trigger = [];\r\n    let open = [];\r\n\r\n    switch (action.type) {\r\n        case actionTypes.COLLAPSE_MENU:\r\n            return {\r\n                ...state,\r\n                collapseMenu: !state.collapseMenu\r\n            };\r\n        case actionTypes.COLLAPSE_TOGGLE:\r\n            if (action.menu.type === 'sub') {\r\n                open = state.isOpen;\r\n                trigger = state.isTrigger;\r\n\r\n                const triggerIndex = trigger.indexOf(action.menu.id);\r\n                if (triggerIndex > -1) {\r\n                    open = open.filter(item => item !== action.menu.id);\r\n                    trigger = trigger.filter(item => item !== action.menu.id);\r\n                }\r\n\r\n                if (triggerIndex === -1) {\r\n                    open = [...open, action.menu.id];\r\n                    trigger = [...trigger, action.menu.id];\r\n                }\r\n            } else {\r\n                open = state.isOpen;\r\n                const triggerIndex = (state.isTrigger).indexOf(action.menu.id);\r\n                trigger = (triggerIndex === -1) ? [action.menu.id] : [];\r\n                open = (triggerIndex === -1) ? [action.menu.id] : [];\r\n            }\r\n\r\n            return {\r\n                ...state,\r\n                isOpen: open,\r\n                isTrigger: trigger\r\n            };\r\n        case actionTypes.NAV_CONTENT_LEAVE:\r\n            return {\r\n                ...state,\r\n                isOpen: open,\r\n                isTrigger: trigger,\r\n            };\r\n        case actionTypes.NAV_COLLAPSE_LEAVE:\r\n            if (action.menu.type === 'sub') {\r\n                open = state.isOpen;\r\n                trigger = state.isTrigger;\r\n\r\n                const triggerIndex = trigger.indexOf(action.menu.id);\r\n                if (triggerIndex > -1) {\r\n                    open = open.filter(item => item !== action.menu.id);\r\n                    trigger = trigger.filter(item => item !== action.menu.id);\r\n                }\r\n                return {\r\n                    ...state,\r\n                    isOpen: open,\r\n                    isTrigger: trigger,\r\n                };\r\n            }\r\n            return {...state};\r\n        case actionTypes.FULL_SCREEN :\r\n            return {\r\n                ...state,\r\n                isFullScreen: !state.isFullScreen\r\n            };\r\n        case actionTypes.FULL_SCREEN_EXIT:\r\n            return {\r\n                ...state,\r\n                isFullScreen: false\r\n            };\r\n        case actionTypes.CHANGE_LAYOUT:\r\n            return {\r\n                ...state,\r\n                layout: action.layout\r\n            };\r\n        case actionTypes.CHANGE_SUB_LAYOUT:\r\n            return {\r\n                ...state,\r\n                subLayout: action.subLayout\r\n            };\r\n        case actionTypes.LAYOUT_TYPE:\r\n            return {\r\n                ...state,\r\n                layoutType: action.layoutType,\r\n                navBrandColor: (action.layoutType === 'dark') ? 'brand-default' : state.navBrandColor,\r\n                headerBackColor: initialState.headerBackColor\r\n            };\r\n        case actionTypes.NAV_BACK_COLOR:\r\n            return {\r\n                ...state,\r\n                navBrandColor: 'brand-default',\r\n                layoutType: (state.layoutType === 'menu-light') ? 'menu-dark' : state.layoutType\r\n            };\r\n        case actionTypes.NAV_BRAND_COLOR:\r\n            return {\r\n                ...state,\r\n                navBrandColor: action.navBrandColor\r\n            };\r\n        case actionTypes.HEADER_BACK_COLOR:\r\n            return {\r\n                ...state,\r\n                headerBackColor: action.headerBackColor\r\n            };\r\n        case actionTypes.RTL_LAYOUT:\r\n            return {\r\n                ...state,\r\n                rtlLayout: !state.rtlLayout\r\n            };\r\n        case actionTypes.NAV_FIXED_LAYOUT:\r\n            return {\r\n                ...state,\r\n                navFixedLayout: !state.navFixedLayout\r\n            };\r\n        case actionTypes.HEADER_FIXED_LAYOUT:\r\n            return {\r\n                ...state,\r\n                headerFixedLayout: !state.headerFixedLayout,\r\n                headerBackColor: (!state.headerFixedLayout && initialState.headerBackColor === 'header-default') ? 'header-blue' : state.headerBackColor,\r\n                navBrandColor: (!state.headerFixedLayout) ? 'brand-default' : initialState.navBrandColor\r\n            };\r\n        case actionTypes.BOX_LAYOUT:\r\n            return {\r\n                ...state,\r\n                boxLayout: !state.boxLayout\r\n            };\r\n        case actionTypes.RESET:\r\n            return {\r\n                ...state,\r\n                layout: initialState.layout,\r\n                subLayout: initialState.subLayout,\r\n                collapseMenu: initialState.collapseMenu,\r\n                layoutType: initialState.layoutType,\r\n                headerBackColor: initialState.headerBackColor,\r\n                navBrandColor: initialState.navBrandColor,\r\n                rtlLayout: initialState.rtlLayout,\r\n                navFixedLayout: initialState.navFixedLayout,\r\n                headerFixedLayout: initialState.headerFixedLayout,\r\n                boxLayout: initialState.boxLayout\r\n            };\r\n        default:\r\n            return state;\r\n    }\r\n};\r\n\r\nexport default reducer;","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport { createStore } from 'redux';\nimport {Provider} from 'react-redux';\nimport {BrowserRouter} from 'react-router-dom';\n\nimport App from './App/index';\nimport * as serviceWorker from './serviceWorker';\nimport reducer from './store/reducer';\nimport config from './config';\n\nimport './assets/scss/style.scss';\n\nconst store = createStore(reducer);\n\nconst app = (\n    <Provider store={store}>\n        <BrowserRouter basename={config.basename}>\n            <App />\n        </BrowserRouter>\n    </Provider>\n);\n\nReactDOM.render(app, document.getElementById('root'));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: http://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}