/*
 * ATTENTION: An "eval-source-map" devtool has been used.
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(() => {
var exports = {};
exports.id = "pages/_error";
exports.ids = ["pages/_error"];
exports.modules = {

/***/ "./node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=private-next-pages%2F_error&absoluteAppPath=private-next-pages%2F_app&absoluteDocumentPath=private-next-pages%2F_document&middlewareConfigBase64=e30%3D!":
/*!******************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=private-next-pages%2F_error&absoluteAppPath=private-next-pages%2F_app&absoluteDocumentPath=private-next-pages%2F_document&middlewareConfigBase64=e30%3D! ***!
  \******************************************************************************************************************************************************************************************************************************************************************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   config: () => (/* binding */ config),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   getServerSideProps: () => (/* binding */ getServerSideProps),\n/* harmony export */   getStaticPaths: () => (/* binding */ getStaticPaths),\n/* harmony export */   getStaticProps: () => (/* binding */ getStaticProps),\n/* harmony export */   reportWebVitals: () => (/* binding */ reportWebVitals),\n/* harmony export */   routeModule: () => (/* binding */ routeModule),\n/* harmony export */   unstable_getServerProps: () => (/* binding */ unstable_getServerProps),\n/* harmony export */   unstable_getServerSideProps: () => (/* binding */ unstable_getServerSideProps),\n/* harmony export */   unstable_getStaticParams: () => (/* binding */ unstable_getStaticParams),\n/* harmony export */   unstable_getStaticPaths: () => (/* binding */ unstable_getStaticPaths),\n/* harmony export */   unstable_getStaticProps: () => (/* binding */ unstable_getStaticProps)\n/* harmony export */ });\n/* harmony import */ var next_dist_server_future_route_modules_pages_module_compiled__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! next/dist/server/future/route-modules/pages/module.compiled */ \"./node_modules/next/dist/server/future/route-modules/pages/module.compiled.js\");\n/* harmony import */ var next_dist_server_future_route_modules_pages_module_compiled__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(next_dist_server_future_route_modules_pages_module_compiled__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var next_dist_server_future_route_kind__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! next/dist/server/future/route-kind */ \"./node_modules/next/dist/server/future/route-kind.js\");\n/* harmony import */ var next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! next/dist/build/templates/helpers */ \"./node_modules/next/dist/build/templates/helpers.js\");\n/* harmony import */ var private_next_pages_document__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! private-next-pages/_document */ \"./node_modules/next/dist/pages/_document.js\");\n/* harmony import */ var private_next_pages_document__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(private_next_pages_document__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var private_next_pages_app__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! private-next-pages/_app */ \"./src/pages/_app.tsx\");\n/* harmony import */ var private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! private-next-pages/_error */ \"./node_modules/next/dist/pages/_error.js\");\n/* harmony import */ var private_next_pages_error__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__);\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([private_next_pages_app__WEBPACK_IMPORTED_MODULE_4__]);\nprivate_next_pages_app__WEBPACK_IMPORTED_MODULE_4__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n\n// Import the app and document modules.\n\n\n// Import the userland code.\n\n// Re-export the component (should be the default export).\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ((0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"default\"));\n// Re-export methods.\nconst getStaticProps = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"getStaticProps\");\nconst getStaticPaths = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"getStaticPaths\");\nconst getServerSideProps = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"getServerSideProps\");\nconst config = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"config\");\nconst reportWebVitals = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"reportWebVitals\");\n// Re-export legacy methods.\nconst unstable_getStaticProps = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"unstable_getStaticProps\");\nconst unstable_getStaticPaths = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"unstable_getStaticPaths\");\nconst unstable_getStaticParams = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"unstable_getStaticParams\");\nconst unstable_getServerProps = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"unstable_getServerProps\");\nconst unstable_getServerSideProps = (0,next_dist_build_templates_helpers__WEBPACK_IMPORTED_MODULE_2__.hoist)(private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__, \"unstable_getServerSideProps\");\n// Create and export the route module that will be consumed.\nconst routeModule = new next_dist_server_future_route_modules_pages_module_compiled__WEBPACK_IMPORTED_MODULE_0__.PagesRouteModule({\n    definition: {\n        kind: next_dist_server_future_route_kind__WEBPACK_IMPORTED_MODULE_1__.RouteKind.PAGES,\n        page: \"/_error\",\n        pathname: \"/_error\",\n        // The following aren't used in production.\n        bundlePath: \"\",\n        filename: \"\"\n    },\n    components: {\n        App: private_next_pages_app__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n        Document: (private_next_pages_document__WEBPACK_IMPORTED_MODULE_3___default())\n    },\n    userland: private_next_pages_error__WEBPACK_IMPORTED_MODULE_5__\n});\n\n//# sourceMappingURL=pages.js.map\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9kaXN0L2J1aWxkL3dlYnBhY2svbG9hZGVycy9uZXh0LXJvdXRlLWxvYWRlci9pbmRleC5qcz9raW5kPVBBR0VTJnBhZ2U9JTJGX2Vycm9yJnByZWZlcnJlZFJlZ2lvbj0mYWJzb2x1dGVQYWdlUGF0aD1wcml2YXRlLW5leHQtcGFnZXMlMkZfZXJyb3ImYWJzb2x1dGVBcHBQYXRoPXBya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yb3JcIixcbiAgICAgICAgLy8gVGhlIGZvbGxvd2luZyBhcmVuJ3QgdXNlZCBpbiBwcm9kdWN0aW9uLlxuICAgICAgICBidW5kbGVQYXRoOiBcIlwiLFxuICAgICAgICBmaWxlbmFtZTogXCJcIlxuICAgIH0sXG4gICAgY29tcG9uZW50czoge1xuICAgICAgICBBcHAsXG4gICAgICAgIERvY3VtZW50XG4gICAgfSxcbiAgICB1c2VybGFuZFxufSk7XG5cbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXBhZ2VzLmpzLm1hcCJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=private-next-pages%2F_error&absoluteAppPath=private-next-pages%2F_app&absoluteDocumentPath=private-next-pages%2F_document&middlewareConfigBase64=e30%3D!\n");

/***/ }),

/***/ "./src/components/IntroGuide.tsx":
/*!***************************************!*\
  !*** ./src/components/IntroGuide.tsx ***!
  \***************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var intro_js_react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! intro.js-react */ \"intro.js-react\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! next/router */ \"./node_modules/next/router.js\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_3__);\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([intro_js_react__WEBPACK_IMPORTED_MODULE_2__]);\nintro_js_react__WEBPACK_IMPORTED_MODULE_2__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n\n\nconst IntroGuide = ({ steps, stepsEnabled, onExit, stepsName })=>{\n    const router = (0,next_router__WEBPACK_IMPORTED_MODULE_3__.useRouter)();\n    const handleStepChange = (stepIndex)=>{\n        if (stepIndex === 7 && stepsName === \"appSteps\") {\n            onExit();\n            router.push(\"/users/users-list/\");\n        } else if (stepIndex === 2 && stepsName === \"usersSteps\") {\n            onExit();\n            router.push(\"/roles/roles-list/\");\n        }\n    };\n    const handleExit = ()=>{\n        localStorage.setItem(`completed_${stepsName}`, \"true\");\n        onExit();\n    };\n    return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n        children: /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(intro_js_react__WEBPACK_IMPORTED_MODULE_2__.Steps, {\n            enabled: stepsEnabled,\n            steps: steps,\n            initialStep: 0,\n            onExit: handleExit,\n            onChange: handleStepChange,\n            options: {\n                scrollToElement: true,\n                scrollPadding: 50\n            }\n        }, void 0, false, {\n            fileName: \"/app/frontend/src/components/IntroGuide.tsx\",\n            lineNumber: 39,\n            columnNumber: 7\n        }, undefined)\n    }, void 0, false);\n};\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (IntroGuide);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29tcG9uZW50cy9JbnRyb0d1aWRlLnRzeCIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBMEI7QUFDb0I7QUFDTjtBQWF4QyxNQUFNRyxhQUF3QyxDQUFDLEVBQzdDQyxLQUFLLEVBQ0xDLFlBQVksRUFDWkMsTUFBTSxFQUNOQyxTQUFTLEVBQ1Y7SUFDQyxNQUFNQyxTQUFTTixzREFBU0E7SUFDeEIsTUFBTU8sbUJBQW1CLENBQUNDO1FBQ3hCLElBQUlBLGNBQWMsS0FBS0gsY0FBYyxZQUFZO1lBQy9DRDtZQUNBRSxPQUFPRyxJQUFJLENBQUM7UUFDZCxPQUFPLElBQUlELGNBQWMsS0FBS0gsY0FBYyxjQUFjO1lBQ3hERDtZQUNBRSxPQUFPRyxJQUFJLENBQUM7UUFDZDtJQUNGO0lBRUEsTUFBTUMsYUFBYTtRQUNqQkMsYUFBYUMsT0FBTyxDQUFDLENBQUMsVUFBVSxFQUFFUCxVQUFVLENBQUMsRUFBRTtRQUMvQ0Q7SUFDRjtJQUNBLHFCQUNFO2tCQUNFLDRFQUFDTCxpREFBS0E7WUFDSmMsU0FBU1Y7WUFDVEQsT0FBT0E7WUFDUFksYUFBYTtZQUNiVixRQUFRTTtZQUNSSyxVQUFVUjtZQUNWUyxTQUFTO2dCQUNQQyxpQkFBaUI7Z0JBQ2pCQyxlQUFlO1lBQ2pCOzs7Ozs7O0FBSVI7QUFFQSxpRUFBZWpCLFVBQVVBLEVBQUMiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly8vLi9zcmMvY29t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GVzLWxpc3QvJyk7XG4gICAgfVxuICB9O1xuXG4gIGNvbnN0IGhhbmRsZUV4aXQgPSAoKSA9PiB7XG4gICAgbG9jYWxTdG9yYWdlLnNldEl0ZW0oYGNvbXBsZXRlZF8ke3N0ZXBzTmFtZX1gLCAndHJ1ZScpO1xuICAgIG9uRXhpdCgpO1xuICB9O1xuICByZXR1cm4gKFxuICAgIDw+XG4gICAgICA8U3RlcHNcbiAgICAgICAgZW5hYmxlZD17c3RlcHNFbmFibGVkfVxuICAgICAgICBzdGVwcz17c3RlcHN9XG4gICAgICAgIGluaXRpYWxTdGVwPXswfVxuICAgICAgICBvbkV4aXQ9e2hhbmRsZUV4aXR9XG4gICAgICAgIG9uQ2hhbmdlPXtoYW5kbGVTdGVwQ2hhbmdlfVxuICAgICAgICBvcHRpb25zPXt7XG4gICAgICAgICAgc2Nyb2xsVG9FbGVtZW50OiB0cnVlLFxuICAgICAgICAgIHNjcm9sbFBhZGRpbmc6IDUwLFxuICAgICAgICB9fVxuICAgICAgLz5cbiAgICA8Lz5cbiAgKTtcbn07XG5cbmV4cG9ydCBkZWZhdWx0IEludHJvR3VpZGU7XG4iXSwibmFtZXMiOlsiUmVhY3QiLCJTdGVwcyIsInVzZVJvdXRlciIsIkludHJvR3VpZGUiLCJzdGVwcyIsInN0ZXBzRW5hYmxlZCIsIm9uRXhpdCIsInN0ZXBzTmFtZSIsInJvdXRlciIsImhhbmRsZVN0ZXBDaGFuZ2UiLCJzdGVwSW5kZXgiLCJwdXNoIiwiaGFuZGxlRXhpdCIsImxvY2FsU3RvcmFnZSIsInNldEl0ZW0iLCJlbmFibGVkIiwiaW5pdGlhbFN0ZXAiLCJvbkNoYW5nZSIsIm9wdGlvbnMiLCJzY3JvbGxUb0VsZW1lbnQiLCJzY3JvbGxQYWRkaW5nIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/components/IntroGuide.tsx\n");

/***/ }),

/***/ "./src/config.ts":
/*!***********************!*\
  !*** ./src/config.ts ***!
  \***********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   appTitle: () => (/* binding */ appTitle),\n/* harmony export */   baseURLApi: () => (/* binding */ baseURLApi),\n/* harmony export */   containerMaxW: () => (/* binding */ containerMaxW),\n/* harmony export */   getPageTitle: () => (/* binding */ getPageTitle),\n/* harmony export */   hostApi: () => (/* binding */ hostApi),\n/* harmony export */   localStorageDarkModeKey: () => (/* binding */ localStorageDarkModeKey),\n/* harmony export */   localStorageStyleKey: () => (/* binding */ localStorageStyleKey),\n/* harmony export */   portApi: () => (/* binding */ portApi),\n/* harmony export */   tinyKey: () => (/* binding */ tinyKey)\n/* harmony export */ });\nconst hostApi =  true ? \"http://localhost\" : 0;\nconst portApi =  true ? 8080 : 0;\nconst baseURLApi = `${hostApi}${portApi ? `:${portApi}` : ``}/api`;\nconst localStorageDarkModeKey = \"darkMode\";\nconst localStorageStyleKey = \"style\";\nconst containerMaxW = \"xl:max-w-full xl:mx-auto 2xl:mx-20\";\nconst appTitle = \"created by Flatlogic generator!\";\nconst getPageTitle = (currentPageTitle)=>`${currentPageTitle} — ${appTitle}`;\nconst tinyKey = \"cnslp6h943xbg36t2tf2xglmrxiw5b7tatycf3kir7n2j7eh\";\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvY29uZmlnLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OztBQUFPLE1BQU1BLFVBQ1hDLEtBQXlCLEdBQWdCLHFCQUFxQixFQUFHO0FBQzVELE1BQU1DLFVBQVVELEtBQXlCLEdBQWdCLE9BQU8sRUFBRztBQUNuRSxNQUFNRSxhQUFhLENBQUMsRUFBRUgsUUFBUSxFQUFFRSxVQUFVLENBQUMsQ0FBQyxFQUFFQS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ydCBjb25zdCBnZXRQYWdlVGl0bGUgPSAoY3VycmVudFBhZ2VUaXRsZTogc3RyaW5nKSA9PlxuICBgJHtjdXJyZW50UGFnZVRpdGxlfSDigJQgJHthcHBUaXRsZX1gO1xuXG5leHBvcnQgY29uc3QgdGlueUtleSA9ICdjbnNscDZoOTQzeGJnMzZ0MnRmMnhnbG1yeGl3NWI3dGF0eWNmM2tpcjduMmo3ZWgnO1xuIl0sIm5hbWVzIjpbImhvc3RBcGkiLCJwcm9jZXNzIiwicG9ydEFwaSIsImJhc2VVUkxBcGkiLCJsb2NhbFN0b3JhZ2VEYXJrTW9kZUtleSIsImxvY2FsU3RvcmFnZVN0eWxlS2V5IiwiY29udGFpbmVyTWF4VyIsImFwcFRpdGxlIiwiZ2V0UGFnZVRpdGxlIiwiY3VycmVudFBhZ2VUaXRsZSIsInRpbnlLZXkiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/config.ts\n");

/***/ }),

/***/ "./src/helpers/notifyStateHandler.ts":
/*!*******************************************!*\
  !*** ./src/helpers/notifyStateHandler.ts ***!
  \*******************************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   fulfilledNotify: () => (/* binding */ fulfilledNotify),\n/* harmony export */   rejectNotify: () => (/* binding */ rejectNotify),\n/* harmony export */   resetNotify: () => (/* binding */ resetNotify)\n/* harmony export */ });\nconst resetNotify = (state)=>{\n    state.notify.showNotification = false;\n    state.notify.typeNotification = \"\";\n    state.notify.textNotification = \"\";\n};\nconst rejectNotify = (state, action)=>{\n    if (typeof action.payload === \"string\") {\n        state.notify.textNotification = action.payload;\n    } else if (typeof action === \"object\") {\n        const obj = {\n            ...action.payload?.errors\n        };\n        delete obj[\"_errors\"];\n        let msg = \"\";\n        for(const key in obj){\n            msg += `${key}: ${obj[key][\"_errors\"]}; \\n `;\n        }\n        state.notify.textNotification = msg;\n    } else {\n        state.notify.textNotification = \"\";\n    }\n    state.notify.typeNotification = \"error\";\n    state.notify.showNotification = true;\n};\nconst fulfilledNotify = (state, msg)=>{\n    state.notify.textNotification = msg;\n    state.notify.typeNotification = \"success\";\n    state.notify.showNotification = true;\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvaGVscGVycy9ub3RpZnlTdGF0ZUhhbmRsZXIudHMiLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQU8sTUFBTUEsY0FBYyxDQUFDQztJQUMxQkEsTUFBTUMsTUFBTSxDQUFDQyxnQkFBZ0IsR0FBRztJQUNoQ0YsTUFBTUMsTUFBTSxDQUFDRSxnQkFBZ0IsR0FBRztJQUNoQ0gsTUFBTUMsTUFBTSxDQUFDRyxnQkFBZ0IsR0FBRztBQUNsQyxFQUFFO0FBQ0ssTUFBTUMsZUFBZSxDQUFDTCxPQUFPTTtJQUNsQyxJQUFJLE9BQU9BLE9BQU9DLE9BQU8sS0FBSyxVQUFVO1FBQ3RDUCxNQUFNQyxNQUFNLENBQUNHLGdCQUFnQixHQUFHRSxPQUFPQyxPQUFPO0lBQ2hELE9BQU8sSUFBSSxPQUFPRCxXQUFXLFVBQVU7UUFDckMsTUFBTUUsTUFBTTtZQUFFLEdBQUdGLE9BQU9DLE9BQU8sRUFBRUUsTUFBTTtRQUFDO1FBQ3hDLE9BQU9ELEdBQUcsQ0FBQyxVQUFVO1FBRXJCLElBQUlFLE1BQU07UUFFVixJQUFLLE1BQU1DLE9BQU9ILElBQUs7WUFDckJFLE9BQU8sQ0FBQyxFQUFFQyxJQUFJLEVBQUUsRUFBRUgsR0FBRyxDQUFDRyxJQUFJLENBQUMsVUFBVSxDQUFDLEtBQUssQ0FBQztRQUM5QztRQUVBWCxNQUFNQyxNQUFNLENBQUNHLGdCQUFnQixHQUFHTTtJQUNsQyxPQUFPO1F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MnXTtcblxuICAgIGxldCBtc2cgPSAnJztcblxuICAgIGZvciAoY29uc3Qga2V5IGluIG9iaikge1xuICAgICAgbXNnICs9IGAke2tleX06ICR7b2JqW2tleV1bJ19lcnJvcnMnXX07IFxcbiBgO1xuICAgIH1cblxuICAgIHN0YXRlLm5vdGlmeS50ZXh0Tm90aWZpY2F0aW9uID0gbXNnO1xuICB9IGVsc2Uge1xuICAgIHN0YXRlLm5vdGlmeS50ZXh0Tm90aWZpY2F0aW9uID0gJyc7XG4gIH1cbiAgc3RhdGUubm90aWZ5LnR5cGVOb3RpZmljYXRpb24gPSAnZXJyb3InO1xuICBzdGF0ZS5ub3RpZnkuc2hvd05vdGlmaWNhdGlvbiA9IHRydWU7XG59O1xuZXhwb3J0IGNvbnN0IGZ1bGZpbGxlZE5vdGlmeSA9IChzdGF0ZSwgbXNnKSA9PiB7XG4gIHN0YXRlLm5vdGlmeS50ZXh0Tm90aWZpY2F0aW9uID0gbXNnO1xuICBzdGF0ZS5ub3RpZnkudHlwZU5vdGlmaWNhdGlvbiA9ICdzdWNjZXNzJztcbiAgc3RhdGUubm90aWZ5LnNob3dOb3RpZmljYXRpb24gPSB0cnVlO1xufTtcbiJdLCJuYW1lcyI6WyJyZXNldE5vdGlmeSIsInN0YXRlIiwibm90aWZ5Iiwic2hvd05vdGlmaWNhdGlvbiIsInR5cGVOb3RpZmljYXRpb24iLCJ0ZXh0Tm90aWZpY2F0aW9uIiwicmVqZWN0Tm90aWZ5IiwiYWN0aW9uIiwicGF5bG9hZCIsIm9iaiIsImVycm9ycyIsIm1zZyIsImtleSIsImZ1bGZpbGxlZE5vdGlmeSJdLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/helpers/notifyStateHandler.ts\n");

/***/ }),

/***/ "./src/pages/_app.tsx":
/*!****************************!*\
  !*** ./src/pages/_app.tsx ***!
  \****************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"react/jsx-dev-runtime\");\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"react\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! next/head */ \"next/head\");\n/* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _stores_store__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../stores/store */ \"./src/stores/store.ts\");\n/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! react-redux */ \"react-redux\");\n/* harmony import */ var react_redux__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_redux__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var _css_main_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../css/main.css */ \"./src/css/main.css\");\n/* harmony import */ var _css_main_css__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_css_main_css__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../config */ \"./src/config.ts\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! next/router */ \"./node_modules/next/router.js\");\n/* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var intro_js_introjs_css__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! intro.js/introjs.css */ \"./node_modules/intro.js/introjs.css\");\n/* harmony import */ var intro_js_introjs_css__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(intro_js_introjs_css__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var _components_IntroGuide__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/IntroGuide */ \"./src/components/IntroGuide.tsx\");\n/* harmony import */ var _stores_introSteps__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../stores/introSteps */ \"./src/stores/introSteps.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_stores_store__WEBPACK_IMPORTED_MODULE_3__, axios__WEBPACK_IMPORTED_MODULE_6__, _components_IntroGuide__WEBPACK_IMPORTED_MODULE_10__]);\n([_stores_store__WEBPACK_IMPORTED_MODULE_3__, axios__WEBPACK_IMPORTED_MODULE_6__, _components_IntroGuide__WEBPACK_IMPORTED_MODULE_10__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\n\n\n\n\n\nfunction MyApp({ Component, pageProps }) {\n    // Use the layout defined at the page level, if available\n    const getLayout = Component.getLayout || ((page)=>page);\n    if (false) {}\n    react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{\n        if (false) {}\n    }, []);\n    const title = \"test3\";\n    const description = \"test3 generated by Flatlogic\";\n    const url = \"https://flatlogic.com/\";\n    const image = `https://flatlogic.com/logo.svg`;\n    const imageWidth = \"1920\";\n    const imageHeight = \"960\";\n    const [stepsEnabled, setStepsEnabled] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(true);\n    const [stepName, setStepName] = react__WEBPACK_IMPORTED_MODULE_1___default().useState(\"\");\n    const [steps, setSteps] = react__WEBPACK_IMPORTED_MODULE_1___default().useState([]);\n    const router = (0,next_router__WEBPACK_IMPORTED_MODULE_8__.useRouter)();\n    react__WEBPACK_IMPORTED_MODULE_1___default().useEffect(()=>{\n        const isCompleted = (stepKey)=>{\n            return localStorage.getItem(`completed_${stepKey}`) === \"true\";\n        };\n        if (router.pathname === \"/login\" && !isCompleted(\"loginSteps\")) {\n            setSteps(_stores_introSteps__WEBPACK_IMPORTED_MODULE_11__.loginSteps);\n            setStepName(\"loginSteps\");\n            setStepsEnabled(true);\n        } else if (router.pathname === \"/\" && !isCompleted(\"landingSteps\")) {\n            setSteps(_stores_introSteps__WEBPACK_IMPORTED_MODULE_11__.landingSteps);\n            setStepName(\"landingSteps\");\n            setStepsEnabled(true);\n        } else if (router.pathname === \"/dashboard\" && !isCompleted(\"appSteps\")) {\n            setTimeout(()=>{\n                setSteps(_stores_introSteps__WEBPACK_IMPORTED_MODULE_11__.appSteps);\n                setStepName(\"appSteps\");\n                setStepsEnabled(true);\n            }, 1000);\n        } else if (router.pathname === \"/users/users-list\" && !isCompleted(\"usersSteps\")) {\n            setTimeout(()=>{\n                setSteps(_stores_introSteps__WEBPACK_IMPORTED_MODULE_11__.usersSteps);\n                setStepName(\"usersSteps\");\n                setStepsEnabled(true);\n            }, 1000);\n        } else if (router.pathname === \"/roles/roles-list\" && !isCompleted(\"rolesSteps\")) {\n            setTimeout(()=>{\n                setSteps(_stores_introSteps__WEBPACK_IMPORTED_MODULE_11__.rolesSteps);\n                setStepName(\"rolesSteps\");\n                setStepsEnabled(true);\n            }, 1000);\n        } else {\n            setSteps([]);\n            setStepsEnabled(false);\n        }\n    }, [\n        router.pathname\n    ]);\n    const handleExit = ()=>{\n        setStepsEnabled(false);\n    };\n    return /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_redux__WEBPACK_IMPORTED_MODULE_4__.Provider, {\n        store: _stores_store__WEBPACK_IMPORTED_MODULE_3__.store,\n        children: getLayout(/*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {\n            children: [\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)((next_head__WEBPACK_IMPORTED_MODULE_2___default()), {\n                    children: [\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            name: \"description\",\n                            content: description\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 140,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"og:url\",\n                            content: url\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 142,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"og:site_name\",\n                            content: \"https://flatlogic.com/\"\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 143,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"og:title\",\n                            content: title\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 144,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"og:description\",\n                            content: description\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 145,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"og:image\",\n                            content: image\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 146,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"og:image:type\",\n                            content: \"image/png\"\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 147,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"og:image:width\",\n                            content: imageWidth\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 148,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"og:image:height\",\n                            content: imageHeight\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 149,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"twitter:card\",\n                            content: \"summary_large_image\"\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 151,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"twitter:title\",\n                            content: title\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 152,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"twitter:description\",\n                            content: description\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 153,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"twitter:image:src\",\n                            content: image\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 154,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"twitter:image:width\",\n                            content: imageWidth\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 155,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"meta\", {\n                            property: \"twitter:image:height\",\n                            content: imageHeight\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 156,\n                            columnNumber: 13\n                        }, this),\n                        /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(\"link\", {\n                            rel: \"icon\",\n                            href: \"/favicon.svg\"\n                        }, void 0, false, {\n                            fileName: \"/app/frontend/src/pages/_app.tsx\",\n                            lineNumber: 158,\n                            columnNumber: 13\n                        }, this)\n                    ]\n                }, void 0, true, {\n                    fileName: \"/app/frontend/src/pages/_app.tsx\",\n                    lineNumber: 139,\n                    columnNumber: 11\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(Component, {\n                    ...pageProps\n                }, void 0, false, {\n                    fileName: \"/app/frontend/src/pages/_app.tsx\",\n                    lineNumber: 161,\n                    columnNumber: 11\n                }, this),\n                /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__.jsxDEV)(_components_IntroGuide__WEBPACK_IMPORTED_MODULE_10__[\"default\"], {\n                    steps: steps,\n                    stepsName: stepName,\n                    stepsEnabled: stepsEnabled,\n                    onExit: handleExit\n                }, void 0, false, {\n                    fileName: \"/app/frontend/src/pages/_app.tsx\",\n                    lineNumber: 162,\n                    columnNumber: 11\n                }, this)\n            ]\n        }, void 0, true))\n    }, void 0, false, {\n        fileName: \"/app/frontend/src/pages/_app.tsx\",\n        lineNumber: 136,\n        columnNumber: 5\n    }, this);\n}\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MyApp);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 11604 characters]\n//# sourceURL=webpack-internal:///./src/pages/_app.tsx\n");

/***/ }),

/***/ "./src/stores/analytics/analyticsSlice.ts":
/*!************************************************!*\
  !*** ./src/stores/analytics/analyticsSlice.ts ***!
  \************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   analyticsSlice: () => (/* binding */ analyticsSlice),\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   deleteItem: () => (/* binding */ deleteItem),\n/* harmony export */   deleteItemsByIds: () => (/* binding */ deleteItemsByIds),\n/* harmony export */   fetch: () => (/* binding */ fetch),\n/* harmony export */   setRefetch: () => (/* binding */ setRefetch),\n/* harmony export */   update: () => (/* binding */ update),\n/* harmony export */   uploadCsv: () => (/* binding */ uploadCsv)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/notifyStateHandler */ \"./src/helpers/notifyStateHandler.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    analytics: [],\n    loading: false,\n    count: 0,\n    refetch: false,\n    rolesWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fetch = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"analytics/fetch\", async (data)=>{\n    const { id, query } = data;\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`analytics${query || (id ? `/${id}` : \"\")}`);\n    return id ? result.data : {\n        rows: result.data.rows,\n        count: result.data.count\n    };\n});\nconst deleteItemsByIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"analytics/deleteByIds\", async (data, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"analytics/deleteByIds\", {\n            data\n        });\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst deleteItem = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"analytics/deleteAnalytics\", async (id, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`analytics/${id}`);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst create = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"analytics/createAnalytics\", async (data, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"analytics\", {\n            data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst uploadCsv = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"analytics/uploadCsv\", async (file, { rejectWithValue })=>{\n    try {\n        const data = new FormData();\n        data.append(\"file\", file);\n        data.append(\"filename\", file.name);\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"analytics/bulk-import\", data, {\n            headers: {\n                \"Content-Type\": \"multipart/form-data\"\n            }\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst update = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"analytics/updateAnalytics\", async (payload, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(`analytics/${payload.id}`, {\n            id: payload.id,\n            data: payload.data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst analyticsSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"analytics\",\n    initialState,\n    reducers: {\n        setRefetch: (state, action)=>{\n            state.refetch = action.payload;\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(fetch.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(fetch.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(fetch.fulfilled, (state, action)=>{\n            if (action.payload.rows && action.payload.count >= 0) {\n                state.analytics = action.payload.rows;\n                state.count = action.payload.count;\n            } else {\n                state.analytics = action.payload;\n            }\n            state.loading = false;\n        });\n        builder.addCase(deleteItemsByIds.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItemsByIds.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Analytics has been deleted\");\n        });\n        builder.addCase(deleteItemsByIds.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(deleteItem.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItem.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Analytics\".slice(0, -1)} has been deleted`);\n        });\n        builder.addCase(deleteItem.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(create.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Analytics\".slice(0, -1)} has been created`);\n        });\n        builder.addCase(update.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(update.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Analytics\".slice(0, -1)} has been updated`);\n        });\n        builder.addCase(update.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(uploadCsv.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(uploadCsv.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Analytics has been uploaded\");\n        });\n        builder.addCase(uploadCsv.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setRefetch } = analyticsSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (analyticsSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15440 characters]\n//# sourceURL=webpack-internal:///./src/stores/analytics/analyticsSlice.ts\n");

/***/ }),

/***/ "./src/stores/authSlice.ts":
/*!*********************************!*\
  !*** ./src/stores/authSlice.ts ***!
  \*********************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   authSlice: () => (/* binding */ authSlice),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   findMe: () => (/* binding */ findMe),\n/* harmony export */   loginUser: () => (/* binding */ loginUser),\n/* harmony export */   logoutUser: () => (/* binding */ logoutUser),\n/* harmony export */   passwordReset: () => (/* binding */ passwordReset),\n/* harmony export */   resetAction: () => (/* binding */ resetAction)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var jsonwebtoken__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! jsonwebtoken */ \"jsonwebtoken\");\n/* harmony import */ var jsonwebtoken__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(jsonwebtoken__WEBPACK_IMPORTED_MODULE_2__);\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    /* User */ isFetching: false,\n    errorMessage: \"\",\n    currentUser: null,\n    token: \"\",\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst resetAction = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAction)(\"auth/passwordReset/reset\");\nconst loginUser = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"auth/loginUser\", async (creds, { rejectWithValue })=>{\n    try {\n        const response = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"auth/signin/local\", creds);\n        return response.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst passwordReset = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"auth/passwordReset\", async (value, { rejectWithValue })=>{\n    try {\n        const { data: response } = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(\"/auth/password-reset\", {\n            token: value.token,\n            password: value.password,\n            type: value.type\n        });\n        return response.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst findMe = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"auth/findMe\", async ()=>{\n    const response = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(\"auth/me\");\n    return response.data;\n});\nconst authSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"auth\",\n    initialState,\n    reducers: {\n        logoutUser: (state)=>{\n            localStorage.removeItem(\"token\");\n            localStorage.removeItem(\"user\");\n            axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].defaults.headers.common[\"Authorization\"] = \"\";\n            state.currentUser = null;\n            state.token = \"\";\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(loginUser.pending, (state)=>{\n            state.isFetching = true;\n        });\n        builder.addCase(loginUser.fulfilled, (state, action)=>{\n            const token = action.payload;\n            const user = jsonwebtoken__WEBPACK_IMPORTED_MODULE_2___default().decode(token);\n            state.errorMessage = \"\";\n            state.token = token;\n            localStorage.setItem(\"token\", token);\n            localStorage.setItem(\"user\", JSON.stringify(user));\n            axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].defaults.headers.common[\"Authorization\"] = \"Bearer \" + token;\n        });\n        builder.addCase(loginUser.rejected, (state, action)=>{\n            state.errorMessage = String(action.payload) || \"Something went wrong. Try again\";\n            state.isFetching = false;\n        });\n        builder.addCase(findMe.pending, ()=>{\n            console.log(\"Pending findMe\");\n        });\n        builder.addCase(findMe.fulfilled, (state, action)=>{\n            state.currentUser = action.payload;\n            state.isFetching = false;\n        });\n        builder.addCase(passwordReset.fulfilled, (state, action)=>{\n            state.notify.showNotification = true;\n            state.notify.textNotification = \"Password has been reset successfully\";\n        });\n        builder.addCase(resetAction, (state)=>initialState);\n        builder.addCase(passwordReset.rejected, (state)=>{\n            state.errorMessage = \"Something was wrong. Try again\";\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { logoutUser } = authSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (authSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8772 characters]\n//# sourceURL=webpack-internal:///./src/stores/authSlice.ts\n");

/***/ }),

/***/ "./src/stores/courses/coursesSlice.ts":
/*!********************************************!*\
  !*** ./src/stores/courses/coursesSlice.ts ***!
  \********************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   coursesSlice: () => (/* binding */ coursesSlice),\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   deleteItem: () => (/* binding */ deleteItem),\n/* harmony export */   deleteItemsByIds: () => (/* binding */ deleteItemsByIds),\n/* harmony export */   fetch: () => (/* binding */ fetch),\n/* harmony export */   setRefetch: () => (/* binding */ setRefetch),\n/* harmony export */   update: () => (/* binding */ update),\n/* harmony export */   uploadCsv: () => (/* binding */ uploadCsv)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/notifyStateHandler */ \"./src/helpers/notifyStateHandler.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    courses: [],\n    loading: false,\n    count: 0,\n    refetch: false,\n    rolesWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fetch = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"courses/fetch\", async (data)=>{\n    const { id, query } = data;\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`courses${query || (id ? `/${id}` : \"\")}`);\n    return id ? result.data : {\n        rows: result.data.rows,\n        count: result.data.count\n    };\n});\nconst deleteItemsByIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"courses/deleteByIds\", async (data, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"courses/deleteByIds\", {\n            data\n        });\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst deleteItem = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"courses/deleteCourses\", async (id, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`courses/${id}`);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst create = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"courses/createCourses\", async (data, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"courses\", {\n            data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst uploadCsv = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"courses/uploadCsv\", async (file, { rejectWithValue })=>{\n    try {\n        const data = new FormData();\n        data.append(\"file\", file);\n        data.append(\"filename\", file.name);\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"courses/bulk-import\", data, {\n            headers: {\n                \"Content-Type\": \"multipart/form-data\"\n            }\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst update = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"courses/updateCourses\", async (payload, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(`courses/${payload.id}`, {\n            id: payload.id,\n            data: payload.data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst coursesSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"courses\",\n    initialState,\n    reducers: {\n        setRefetch: (state, action)=>{\n            state.refetch = action.payload;\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(fetch.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(fetch.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(fetch.fulfilled, (state, action)=>{\n            if (action.payload.rows && action.payload.count >= 0) {\n                state.courses = action.payload.rows;\n                state.count = action.payload.count;\n            } else {\n                state.courses = action.payload;\n            }\n            state.loading = false;\n        });\n        builder.addCase(deleteItemsByIds.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItemsByIds.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Courses has been deleted\");\n        });\n        builder.addCase(deleteItemsByIds.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(deleteItem.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItem.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Courses\".slice(0, -1)} has been deleted`);\n        });\n        builder.addCase(deleteItem.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(create.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Courses\".slice(0, -1)} has been created`);\n        });\n        builder.addCase(update.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(update.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Courses\".slice(0, -1)} has been updated`);\n        });\n        builder.addCase(update.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(uploadCsv.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(uploadCsv.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Courses has been uploaded\");\n        });\n        builder.addCase(uploadCsv.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setRefetch } = coursesSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (coursesSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15344 characters]\n//# sourceURL=webpack-internal:///./src/stores/courses/coursesSlice.ts\n");

/***/ }),

/***/ "./src/stores/discussion_boards/discussion_boardsSlice.ts":
/*!****************************************************************!*\
  !*** ./src/stores/discussion_boards/discussion_boardsSlice.ts ***!
  \****************************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   deleteItem: () => (/* binding */ deleteItem),\n/* harmony export */   deleteItemsByIds: () => (/* binding */ deleteItemsByIds),\n/* harmony export */   discussion_boardsSlice: () => (/* binding */ discussion_boardsSlice),\n/* harmony export */   fetch: () => (/* binding */ fetch),\n/* harmony export */   setRefetch: () => (/* binding */ setRefetch),\n/* harmony export */   update: () => (/* binding */ update),\n/* harmony export */   uploadCsv: () => (/* binding */ uploadCsv)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/notifyStateHandler */ \"./src/helpers/notifyStateHandler.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    discussion_boards: [],\n    loading: false,\n    count: 0,\n    refetch: false,\n    rolesWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fetch = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"discussion_boards/fetch\", async (data)=>{\n    const { id, query } = data;\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`discussion_boards${query || (id ? `/${id}` : \"\")}`);\n    return id ? result.data : {\n        rows: result.data.rows,\n        count: result.data.count\n    };\n});\nconst deleteItemsByIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"discussion_boards/deleteByIds\", async (data, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"discussion_boards/deleteByIds\", {\n            data\n        });\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst deleteItem = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"discussion_boards/deleteDiscussion_boards\", async (id, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`discussion_boards/${id}`);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst create = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"discussion_boards/createDiscussion_boards\", async (data, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"discussion_boards\", {\n            data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst uploadCsv = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"discussion_boards/uploadCsv\", async (file, { rejectWithValue })=>{\n    try {\n        const data = new FormData();\n        data.append(\"file\", file);\n        data.append(\"filename\", file.name);\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"discussion_boards/bulk-import\", data, {\n            headers: {\n                \"Content-Type\": \"multipart/form-data\"\n            }\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst update = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"discussion_boards/updateDiscussion_boards\", async (payload, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(`discussion_boards/${payload.id}`, {\n            id: payload.id,\n            data: payload.data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst discussion_boardsSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"discussion_boards\",\n    initialState,\n    reducers: {\n        setRefetch: (state, action)=>{\n            state.refetch = action.payload;\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(fetch.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(fetch.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(fetch.fulfilled, (state, action)=>{\n            if (action.payload.rows && action.payload.count >= 0) {\n                state.discussion_boards = action.payload.rows;\n                state.count = action.payload.count;\n            } else {\n                state.discussion_boards = action.payload;\n            }\n            state.loading = false;\n        });\n        builder.addCase(deleteItemsByIds.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItemsByIds.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Discussion_boards has been deleted\");\n        });\n        builder.addCase(deleteItemsByIds.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(deleteItem.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItem.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Discussion_boards\".slice(0, -1)} has been deleted`);\n        });\n        builder.addCase(deleteItem.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(create.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Discussion_boards\".slice(0, -1)} has been created`);\n        });\n        builder.addCase(update.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(update.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Discussion_boards\".slice(0, -1)} has been updated`);\n        });\n        builder.addCase(update.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(uploadCsv.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(uploadCsv.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Discussion_boards has been uploaded\");\n        });\n        builder.addCase(uploadCsv.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setRefetch } = discussion_boardsSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (discussion_boardsSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15996 characters]\n//# sourceURL=webpack-internal:///./src/stores/discussion_boards/discussion_boardsSlice.ts\n");

/***/ }),

/***/ "./src/stores/enrollments/enrollmentsSlice.ts":
/*!****************************************************!*\
  !*** ./src/stores/enrollments/enrollmentsSlice.ts ***!
  \****************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   deleteItem: () => (/* binding */ deleteItem),\n/* harmony export */   deleteItemsByIds: () => (/* binding */ deleteItemsByIds),\n/* harmony export */   enrollmentsSlice: () => (/* binding */ enrollmentsSlice),\n/* harmony export */   fetch: () => (/* binding */ fetch),\n/* harmony export */   setRefetch: () => (/* binding */ setRefetch),\n/* harmony export */   update: () => (/* binding */ update),\n/* harmony export */   uploadCsv: () => (/* binding */ uploadCsv)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/notifyStateHandler */ \"./src/helpers/notifyStateHandler.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    enrollments: [],\n    loading: false,\n    count: 0,\n    refetch: false,\n    rolesWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fetch = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"enrollments/fetch\", async (data)=>{\n    const { id, query } = data;\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`enrollments${query || (id ? `/${id}` : \"\")}`);\n    return id ? result.data : {\n        rows: result.data.rows,\n        count: result.data.count\n    };\n});\nconst deleteItemsByIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"enrollments/deleteByIds\", async (data, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"enrollments/deleteByIds\", {\n            data\n        });\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst deleteItem = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"enrollments/deleteEnrollments\", async (id, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`enrollments/${id}`);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst create = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"enrollments/createEnrollments\", async (data, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"enrollments\", {\n            data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst uploadCsv = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"enrollments/uploadCsv\", async (file, { rejectWithValue })=>{\n    try {\n        const data = new FormData();\n        data.append(\"file\", file);\n        data.append(\"filename\", file.name);\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"enrollments/bulk-import\", data, {\n            headers: {\n                \"Content-Type\": \"multipart/form-data\"\n            }\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst update = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"enrollments/updateEnrollments\", async (payload, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(`enrollments/${payload.id}`, {\n            id: payload.id,\n            data: payload.data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst enrollmentsSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"enrollments\",\n    initialState,\n    reducers: {\n        setRefetch: (state, action)=>{\n            state.refetch = action.payload;\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(fetch.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(fetch.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(fetch.fulfilled, (state, action)=>{\n            if (action.payload.rows && action.payload.count >= 0) {\n                state.enrollments = action.payload.rows;\n                state.count = action.payload.count;\n            } else {\n                state.enrollments = action.payload;\n            }\n            state.loading = false;\n        });\n        builder.addCase(deleteItemsByIds.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItemsByIds.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Enrollments has been deleted\");\n        });\n        builder.addCase(deleteItemsByIds.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(deleteItem.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItem.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Enrollments\".slice(0, -1)} has been deleted`);\n        });\n        builder.addCase(deleteItem.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(create.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Enrollments\".slice(0, -1)} has been created`);\n        });\n        builder.addCase(update.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(update.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Enrollments\".slice(0, -1)} has been updated`);\n        });\n        builder.addCase(update.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(uploadCsv.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(uploadCsv.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Enrollments has been uploaded\");\n        });\n        builder.addCase(uploadCsv.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setRefetch } = enrollmentsSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (enrollmentsSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15584 characters]\n//# sourceURL=webpack-internal:///./src/stores/enrollments/enrollmentsSlice.ts\n");

/***/ }),

/***/ "./src/stores/instructors/instructorsSlice.ts":
/*!****************************************************!*\
  !*** ./src/stores/instructors/instructorsSlice.ts ***!
  \****************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   deleteItem: () => (/* binding */ deleteItem),\n/* harmony export */   deleteItemsByIds: () => (/* binding */ deleteItemsByIds),\n/* harmony export */   fetch: () => (/* binding */ fetch),\n/* harmony export */   instructorsSlice: () => (/* binding */ instructorsSlice),\n/* harmony export */   setRefetch: () => (/* binding */ setRefetch),\n/* harmony export */   update: () => (/* binding */ update),\n/* harmony export */   uploadCsv: () => (/* binding */ uploadCsv)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/notifyStateHandler */ \"./src/helpers/notifyStateHandler.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    instructors: [],\n    loading: false,\n    count: 0,\n    refetch: false,\n    rolesWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fetch = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"instructors/fetch\", async (data)=>{\n    const { id, query } = data;\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`instructors${query || (id ? `/${id}` : \"\")}`);\n    return id ? result.data : {\n        rows: result.data.rows,\n        count: result.data.count\n    };\n});\nconst deleteItemsByIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"instructors/deleteByIds\", async (data, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"instructors/deleteByIds\", {\n            data\n        });\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst deleteItem = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"instructors/deleteInstructors\", async (id, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`instructors/${id}`);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst create = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"instructors/createInstructors\", async (data, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"instructors\", {\n            data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst uploadCsv = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"instructors/uploadCsv\", async (file, { rejectWithValue })=>{\n    try {\n        const data = new FormData();\n        data.append(\"file\", file);\n        data.append(\"filename\", file.name);\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"instructors/bulk-import\", data, {\n            headers: {\n                \"Content-Type\": \"multipart/form-data\"\n            }\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst update = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"instructors/updateInstructors\", async (payload, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(`instructors/${payload.id}`, {\n            id: payload.id,\n            data: payload.data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst instructorsSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"instructors\",\n    initialState,\n    reducers: {\n        setRefetch: (state, action)=>{\n            state.refetch = action.payload;\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(fetch.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(fetch.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(fetch.fulfilled, (state, action)=>{\n            if (action.payload.rows && action.payload.count >= 0) {\n                state.instructors = action.payload.rows;\n                state.count = action.payload.count;\n            } else {\n                state.instructors = action.payload;\n            }\n            state.loading = false;\n        });\n        builder.addCase(deleteItemsByIds.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItemsByIds.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Instructors has been deleted\");\n        });\n        builder.addCase(deleteItemsByIds.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(deleteItem.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItem.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Instructors\".slice(0, -1)} has been deleted`);\n        });\n        builder.addCase(deleteItem.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(create.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Instructors\".slice(0, -1)} has been created`);\n        });\n        builder.addCase(update.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(update.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Instructors\".slice(0, -1)} has been updated`);\n        });\n        builder.addCase(update.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(uploadCsv.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(uploadCsv.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Instructors has been uploaded\");\n        });\n        builder.addCase(uploadCsv.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setRefetch } = instructorsSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (instructorsSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15584 characters]\n//# sourceURL=webpack-internal:///./src/stores/instructors/instructorsSlice.ts\n");

/***/ }),

/***/ "./src/stores/introSteps.ts":
/*!**********************************!*\
  !*** ./src/stores/introSteps.ts ***!
  \**********************************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   appSteps: () => (/* binding */ appSteps),\n/* harmony export */   landingSteps: () => (/* binding */ landingSteps),\n/* harmony export */   loginSteps: () => (/* binding */ loginSteps),\n/* harmony export */   rolesSteps: () => (/* binding */ rolesSteps),\n/* harmony export */   usersSteps: () => (/* binding */ usersSteps)\n/* harmony export */ });\nconst landingSteps = [\n    {\n        element: \"#elementId1\",\n        intro: `\n          <div class=\"text-center text-black \">\n            <img src=\"https://flatlogic.com/blog/wp-content/uploads/2024/10/good_img.png\" alt=\"Description\" class=\"w-full mb-2 object-cover\" />\n            <p>Welcome to our app tutorial! Get a sneak peek into the key functionalities and learn how to navigate seamlessly. Here's a quick overview to get you started.</p>\n          </div>\n        `,\n        position: \"auto\",\n        tooltipClass: \" good-img\"\n    },\n    {\n        element: \"#websiteHeader\",\n        intro: \"You can switch between different sections of the app using this header. It's your gateway to exploring all the available pages.\",\n        position: \"auto\",\n        tooltipClass: \" right-0 mx-auto rounded shadow-lg\",\n        disableInteraction: true\n    },\n    {\n        element: \"#loginButton\",\n        intro: \"Decide whether to explore the landing page or proceed to the login. You can always return to the landing page later.\",\n        disableInteraction: true\n    }\n];\nconst loginSteps = [\n    {\n        element: \"#loginRoles\",\n        intro: \"Choose your login role to proceed. Experience the app as   Admin, or  User, or create your own account to get started.\",\n        position: \"auto\"\n    }\n];\nconst appSteps = [\n    {\n        element: \"#profilEdit\",\n        intro: \"Update your profile information, including name, email, and password. Don't forget to save your changes to keep your profile current.\",\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#themeToggle\",\n        intro: \"Switch between light and dark modes to suit your preference.\",\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#logout\",\n        intro: \"Log out or switch users/roles with ease to manage your access.\",\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#search\",\n        intro: \"Quickly find specific data or items by entering your query in the search field. Navigate directly to the desired element.\",\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#widgetCreator\",\n        intro: 'Use Text-to-Chart and Text-to-Widget to create charts or widgets from text descriptions. Type what you need, like \"Orders by Month,\" and customize your dashboard.',\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#dashboard\",\n        intro: \"View all the entities available to your role, offering insights into the data categories and total items in each.\",\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#asideMenu\",\n        intro: \"Access various entities and manage your data. Find links to  the landing page and  Swagger API documentation for more information.\",\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#asideMenu\",\n        intro: \"Let's explore the User entity.\",\n        position: \"auto\",\n        disableInteraction: true\n    }\n];\nconst usersSteps = [\n    {\n        element: \"#usersList\",\n        intro: \"Invite new users, filter data, and work with CSV files in this section.\",\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#usersTable\",\n        intro: \"View, modify, or delete items with the necessary permissions. Inline editing is available within the table.\",\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#asideMenu\",\n        intro: \"Let's explore the Roles entity.\",\n        position: \"auto\",\n        disableInteraction: true\n    }\n];\nconst rolesSteps = [\n    {\n        element: \"#rolesTable\",\n        intro: \"Super Admin can manage roles and permissions. Adjust access levels and permissions for each role or user in the Roles and Permissions sections.\",\n        position: \"auto\",\n        disableInteraction: true\n    },\n    {\n        element: \"#feedbackSection\",\n        intro: `\n    <div class=\"text-center \">\n      <img src=\"https://flatlogic.com/blog/wp-content/uploads/2024/10/end_guide.png\" alt=\"Description\" class=\"w-full mb-2 object-cover\" />\n      <p>Thank you for completing the tour! We hope you now have a better understanding of the app.</p>\n      <p>If you have any questions, feel free to reach out to us at <a href=\"mailto:support@flatlogic.com\" class=\"text-blue-500 underline\">support@flatlogic.com</a>.</p>\n    </div>\n  `,\n        position: \"auto\",\n        tooltipClass: \"end-img\"\n    }\n];\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8364 characters]\n//# sourceURL=webpack-internal:///./src/stores/introSteps.ts\n");

/***/ }),

/***/ "./src/stores/mainSlice.ts":
/*!*********************************!*\
  !*** ./src/stores/mainSlice.ts ***!
  \*********************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   mainSlice: () => (/* binding */ mainSlice),\n/* harmony export */   setUser: () => (/* binding */ setUser)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__]);\n_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\nconst initialState = {\n    /* User */ userName: \"\",\n    userEmail: null,\n    userAvatar: null,\n    /* Field focus with ctrl+k (to register only once) */ isFieldFocusRegistered: false\n};\nconst mainSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"main\",\n    initialState,\n    reducers: {\n        setUser: (state, action)=>{\n            state.userName = action.payload.name;\n            state.userEmail = action.payload.email;\n            state.userAvatar = action.payload.avatar;\n        }\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setUser } = mainSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (mainSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIj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EZvY3VzUmVnaXN0ZXJlZCIsIm1haW5TbGljZSIsIm5hbWUiLCJyZWR1Y2VycyIsInNldFVzZXIiLCJzdGF0ZSIsImFjdGlvbiIsInBheWxvYWQiLCJlbWFpbCIsImF2YXRhciIsImFjdGlvbnMiLCJyZWR1Y2VyIl0sInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/stores/mainSlice.ts\n");

/***/ }),

/***/ "./src/stores/openAiSlice.ts":
/*!***********************************!*\
  !*** ./src/stores/openAiSlice.ts ***!
  \***********************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   aiPrompt: () => (/* binding */ aiPrompt),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   openAiSlice: () => (/* binding */ openAiSlice),\n/* harmony export */   resetNotify: () => (/* binding */ resetNotify),\n/* harmony export */   setErrorNotification: () => (/* binding */ setErrorNotification)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\nconst initialState = {\n    isFetchingQuery: false,\n    errorMessage: \"\",\n    smartWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fulfilledNotify = (state, msg, type)=>{\n    state.notify.textNotification = msg;\n    state.notify.typeNotification = type || \"success\";\n    state.notify.showNotification = true;\n};\nconst aiPrompt = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"openai/aiPrompt\", async (data, { rejectWithValue })=>{\n    try {\n        return await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"/openai/create_widget\", data);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst openAiSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"openAiSlice\",\n    initialState,\n    reducers: {\n        resetNotify: (state)=>{\n            state.notify.showNotification = false;\n            state.notify.typeNotification = \"\";\n            state.notify.textNotification = \"\";\n        },\n        setErrorNotification: (state, action)=>{\n            fulfilledNotify(state, action.payload, \"error\");\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(aiPrompt.pending, (state)=>{\n            state.isFetchingQuery = true;\n        });\n        builder.addCase(aiPrompt.fulfilled, (state, action)=>{\n            state.isFetchingQuery = false;\n            state.errorMessage = \"\";\n            state.smartWidgets.unshift(action.payload.data);\n        });\n        builder.addCase(aiPrompt.rejected, (state)=>{\n            state.errorMessage = \"Something was wrong. Try again\";\n            state.isFetchingQuery = false;\n            state.smartWidgets = null;\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { resetNotify, setErrorNotification } = openAiSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (openAiSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 5508 characters]\n//# sourceURL=webpack-internal:///./src/stores/openAiSlice.ts\n");

/***/ }),

/***/ "./src/stores/permissions/permissionsSlice.ts":
/*!****************************************************!*\
  !*** ./src/stores/permissions/permissionsSlice.ts ***!
  \****************************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   deleteItem: () => (/* binding */ deleteItem),\n/* harmony export */   deleteItemsByIds: () => (/* binding */ deleteItemsByIds),\n/* harmony export */   fetch: () => (/* binding */ fetch),\n/* harmony export */   permissionsSlice: () => (/* binding */ permissionsSlice),\n/* harmony export */   setRefetch: () => (/* binding */ setRefetch),\n/* harmony export */   update: () => (/* binding */ update),\n/* harmony export */   uploadCsv: () => (/* binding */ uploadCsv)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/notifyStateHandler */ \"./src/helpers/notifyStateHandler.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    permissions: [],\n    loading: false,\n    count: 0,\n    refetch: false,\n    rolesWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fetch = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"permissions/fetch\", async (data)=>{\n    const { id, query } = data;\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`permissions${query || (id ? `/${id}` : \"\")}`);\n    return id ? result.data : {\n        rows: result.data.rows,\n        count: result.data.count\n    };\n});\nconst deleteItemsByIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"permissions/deleteByIds\", async (data, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"permissions/deleteByIds\", {\n            data\n        });\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst deleteItem = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"permissions/deletePermissions\", async (id, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`permissions/${id}`);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst create = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"permissions/createPermissions\", async (data, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"permissions\", {\n            data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst uploadCsv = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"permissions/uploadCsv\", async (file, { rejectWithValue })=>{\n    try {\n        const data = new FormData();\n        data.append(\"file\", file);\n        data.append(\"filename\", file.name);\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"permissions/bulk-import\", data, {\n            headers: {\n                \"Content-Type\": \"multipart/form-data\"\n            }\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst update = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"permissions/updatePermissions\", async (payload, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(`permissions/${payload.id}`, {\n            id: payload.id,\n            data: payload.data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst permissionsSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"permissions\",\n    initialState,\n    reducers: {\n        setRefetch: (state, action)=>{\n            state.refetch = action.payload;\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(fetch.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(fetch.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(fetch.fulfilled, (state, action)=>{\n            if (action.payload.rows && action.payload.count >= 0) {\n                state.permissions = action.payload.rows;\n                state.count = action.payload.count;\n            } else {\n                state.permissions = action.payload;\n            }\n            state.loading = false;\n        });\n        builder.addCase(deleteItemsByIds.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItemsByIds.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Permissions has been deleted\");\n        });\n        builder.addCase(deleteItemsByIds.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(deleteItem.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItem.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Permissions\".slice(0, -1)} has been deleted`);\n        });\n        builder.addCase(deleteItem.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(create.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Permissions\".slice(0, -1)} has been created`);\n        });\n        builder.addCase(update.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(update.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Permissions\".slice(0, -1)} has been updated`);\n        });\n        builder.addCase(update.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(uploadCsv.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(uploadCsv.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Permissions has been uploaded\");\n        });\n        builder.addCase(uploadCsv.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setRefetch } = permissionsSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (permissionsSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15584 characters]\n//# sourceURL=webpack-internal:///./src/stores/permissions/permissionsSlice.ts\n");

/***/ }),

/***/ "./src/stores/roles/rolesSlice.ts":
/*!****************************************!*\
  !*** ./src/stores/roles/rolesSlice.ts ***!
  \****************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   deleteItem: () => (/* binding */ deleteItem),\n/* harmony export */   deleteItemsByIds: () => (/* binding */ deleteItemsByIds),\n/* harmony export */   fetch: () => (/* binding */ fetch),\n/* harmony export */   fetchWidgets: () => (/* binding */ fetchWidgets),\n/* harmony export */   removeWidget: () => (/* binding */ removeWidget),\n/* harmony export */   rolesSlice: () => (/* binding */ rolesSlice),\n/* harmony export */   setRefetch: () => (/* binding */ setRefetch),\n/* harmony export */   update: () => (/* binding */ update),\n/* harmony export */   uploadCsv: () => (/* binding */ uploadCsv)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/notifyStateHandler */ \"./src/helpers/notifyStateHandler.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    roles: [],\n    loading: false,\n    count: 0,\n    refetch: false,\n    rolesWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fetch = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"roles/fetch\", async (data)=>{\n    const { id, query } = data;\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`roles${query || (id ? `/${id}` : \"\")}`);\n    return id ? result.data : {\n        rows: result.data.rows,\n        count: result.data.count\n    };\n});\nconst deleteItemsByIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"roles/deleteByIds\", async (data, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"roles/deleteByIds\", {\n            data\n        });\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst deleteItem = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"roles/deleteRoles\", async (id, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`roles/${id}`);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst create = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"roles/createRoles\", async (data, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"roles\", {\n            data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst uploadCsv = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"roles/uploadCsv\", async (file, { rejectWithValue })=>{\n    try {\n        const data = new FormData();\n        data.append(\"file\", file);\n        data.append(\"filename\", file.name);\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"roles/bulk-import\", data, {\n            headers: {\n                \"Content-Type\": \"multipart/form-data\"\n            }\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst update = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"roles/updateRoles\", async (payload, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(`roles/${payload.id}`, {\n            id: payload.id,\n            data: payload.data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst removeWidget = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"openai/removeWidget\", async (payload)=>{\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`openai/roles-info/${payload.id}`, {\n        params: {\n            roleId: payload.roleId,\n            infoId: payload.widgetId,\n            key: \"widgets\"\n        }\n    });\n    return result.data;\n});\nconst fetchWidgets = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"openai/fetchWidgets\", async (roleId)=>{\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`openai/info-by-key?key=widgets&roleId=${roleId}`);\n    return result.data;\n});\nconst rolesSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"roles\",\n    initialState,\n    reducers: {\n        setRefetch: (state, action)=>{\n            state.refetch = action.payload;\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(fetch.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(fetch.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(fetch.fulfilled, (state, action)=>{\n            if (action.payload.rows && action.payload.count >= 0) {\n                state.roles = action.payload.rows;\n                state.count = action.payload.count;\n            } else {\n                state.roles = action.payload;\n            }\n            state.loading = false;\n        });\n        builder.addCase(deleteItemsByIds.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItemsByIds.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Roles has been deleted\");\n        });\n        builder.addCase(deleteItemsByIds.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(deleteItem.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItem.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Roles\".slice(0, -1)} has been deleted`);\n        });\n        builder.addCase(deleteItem.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(create.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Roles\".slice(0, -1)} has been created`);\n        });\n        builder.addCase(update.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(update.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Roles\".slice(0, -1)} has been updated`);\n        });\n        builder.addCase(update.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(uploadCsv.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(uploadCsv.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Roles has been uploaded\");\n        });\n        builder.addCase(uploadCsv.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(removeWidget.pending, (state)=>{\n            state.loading = true;\n        });\n        builder.addCase(removeWidget.fulfilled, (state)=>{\n            state.loading = false;\n        });\n        builder.addCase(removeWidget.rejected, (state)=>{\n            state.loading = false;\n        });\n        builder.addCase(fetchWidgets.pending, (state)=>{\n            state.loading = true;\n            state.rolesWidgets = [];\n        });\n        builder.addCase(fetchWidgets.fulfilled, (state, action)=>{\n            state.loading = false;\n            state.rolesWidgets = action.payload;\n        });\n        builder.addCase(fetchWidgets.rejected, (state)=>{\n            state.loading = false;\n            state.rolesWidgets = [];\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setRefetch } = rolesSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (rolesSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 18332 characters]\n//# sourceURL=webpack-internal:///./src/stores/roles/rolesSlice.ts\n");

/***/ }),

/***/ "./src/stores/store.ts":
/*!*****************************!*\
  !*** ./src/stores/store.ts ***!
  \*****************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   store: () => (/* binding */ store)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var _styleSlice__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./styleSlice */ \"./src/stores/styleSlice.ts\");\n/* harmony import */ var _mainSlice__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./mainSlice */ \"./src/stores/mainSlice.ts\");\n/* harmony import */ var _authSlice__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./authSlice */ \"./src/stores/authSlice.ts\");\n/* harmony import */ var _openAiSlice__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./openAiSlice */ \"./src/stores/openAiSlice.ts\");\n/* harmony import */ var _users_usersSlice__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./users/usersSlice */ \"./src/stores/users/usersSlice.ts\");\n/* harmony import */ var _analytics_analyticsSlice__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./analytics/analyticsSlice */ \"./src/stores/analytics/analyticsSlice.ts\");\n/* harmony import */ var _courses_coursesSlice__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./courses/coursesSlice */ \"./src/stores/courses/coursesSlice.ts\");\n/* harmony import */ var _discussion_boards_discussion_boardsSlice__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./discussion_boards/discussion_boardsSlice */ \"./src/stores/discussion_boards/discussion_boardsSlice.ts\");\n/* harmony import */ var _enrollments_enrollmentsSlice__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./enrollments/enrollmentsSlice */ \"./src/stores/enrollments/enrollmentsSlice.ts\");\n/* harmony import */ var _instructors_instructorsSlice__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./instructors/instructorsSlice */ \"./src/stores/instructors/instructorsSlice.ts\");\n/* harmony import */ var _students_studentsSlice__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./students/studentsSlice */ \"./src/stores/students/studentsSlice.ts\");\n/* harmony import */ var _roles_rolesSlice__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./roles/rolesSlice */ \"./src/stores/roles/rolesSlice.ts\");\n/* harmony import */ var _permissions_permissionsSlice__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./permissions/permissionsSlice */ \"./src/stores/permissions/permissionsSlice.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, _styleSlice__WEBPACK_IMPORTED_MODULE_1__, _mainSlice__WEBPACK_IMPORTED_MODULE_2__, _authSlice__WEBPACK_IMPORTED_MODULE_3__, _openAiSlice__WEBPACK_IMPORTED_MODULE_4__, _users_usersSlice__WEBPACK_IMPORTED_MODULE_5__, _analytics_analyticsSlice__WEBPACK_IMPORTED_MODULE_6__, _courses_coursesSlice__WEBPACK_IMPORTED_MODULE_7__, _discussion_boards_discussion_boardsSlice__WEBPACK_IMPORTED_MODULE_8__, _enrollments_enrollmentsSlice__WEBPACK_IMPORTED_MODULE_9__, _instructors_instructorsSlice__WEBPACK_IMPORTED_MODULE_10__, _students_studentsSlice__WEBPACK_IMPORTED_MODULE_11__, _roles_rolesSlice__WEBPACK_IMPORTED_MODULE_12__, _permissions_permissionsSlice__WEBPACK_IMPORTED_MODULE_13__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, _styleSlice__WEBPACK_IMPORTED_MODULE_1__, _mainSlice__WEBPACK_IMPORTED_MODULE_2__, _authSlice__WEBPACK_IMPORTED_MODULE_3__, _openAiSlice__WEBPACK_IMPORTED_MODULE_4__, _users_usersSlice__WEBPACK_IMPORTED_MODULE_5__, _analytics_analyticsSlice__WEBPACK_IMPORTED_MODULE_6__, _courses_coursesSlice__WEBPACK_IMPORTED_MODULE_7__, _discussion_boards_discussion_boardsSlice__WEBPACK_IMPORTED_MODULE_8__, _enrollments_enrollmentsSlice__WEBPACK_IMPORTED_MODULE_9__, _instructors_instructorsSlice__WEBPACK_IMPORTED_MODULE_10__, _students_studentsSlice__WEBPACK_IMPORTED_MODULE_11__, _roles_rolesSlice__WEBPACK_IMPORTED_MODULE_12__, _permissions_permissionsSlice__WEBPACK_IMPORTED_MODULE_13__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nconst store = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.configureStore)({\n    reducer: {\n        style: _styleSlice__WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n        main: _mainSlice__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n        auth: _authSlice__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n        openAi: _openAiSlice__WEBPACK_IMPORTED_MODULE_4__[\"default\"],\n        users: _users_usersSlice__WEBPACK_IMPORTED_MODULE_5__[\"default\"],\n        analytics: _analytics_analyticsSlice__WEBPACK_IMPORTED_MODULE_6__[\"default\"],\n        courses: _courses_coursesSlice__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n        discussion_boards: _discussion_boards_discussion_boardsSlice__WEBPACK_IMPORTED_MODULE_8__[\"default\"],\n        enrollments: _enrollments_enrollmentsSlice__WEBPACK_IMPORTED_MODULE_9__[\"default\"],\n        instructors: _instructors_instructorsSlice__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n        students: _students_studentsSlice__WEBPACK_IMPORTED_MODULE_11__[\"default\"],\n        roles: _roles_rolesSlice__WEBPACK_IMPORTED_MODULE_12__[\"default\"],\n        permissions: _permissions_permissionsSlice__WEBPACK_IMPORTED_MODULE_13__[\"default\"]\n    }\n});\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc3RvcmVzL3N0b3JlLnRzIiwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUFrRDtBQUNWO0FBQ0Y7QUFDRjtBQUNJO0FBRUk7QUFDWTtBQUNOO0FBQzhCO0FBQ2xCO0FBQ0E7QUFDVDtBQUNUO0FBQ2tCO0FBRXZELE1BQU1jLFFBQVFkLGdFQUFjQSx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JbmZlciB0aGUgYFJvb3RTdGF0ZWAgYW5kIGBBcHBEaXNwYXRjaGAgdHlwZXMgZnJvbSB0aGUgc3RvcmUgaXRzZWxmXG5leHBvcnQgdHlwZSBSb290U3RhdGUgPSBSZXR1cm5UeXBlPHR5cGVvZiBzdG9yZS5nZXRTdGF0ZT47XG4vLyBJbmZlcnJlZCB0eXBlOiB7cG9zdHM6IFBvc3RzU3RhdGUsIGNvbW1lbnRzOiBDb21tZW50c1N0YXRlLCB1c2VyczogVXNlcnNTdGF0ZX1cbmV4cG9ydCB0eXBlIEFwcERpc3BhdGNoID0gdHlwZW9mIHN0b3JlLmRpc3BhdGNoO1xuIl0sIm5hbWVzIjpbImNvbmZpZ3VyZVN0b3JlIiwic3R5bGVSZWR1Y2VyIiwibWFpblJlZHVjZXIiLCJhdXRoU2xpY2UiLCJvcGVuQWlTbGljZSIsInVzZXJzU2xpY2UiLCJhbmFseXRpY3NTbGljZSIsImNvdXJzZXNTbGljZSIsImRpc2N1c3Npb25fYm9hcmRzU2xpY2UiLCJlbnJvbGxtZW50c1NsaWNlIiwiaW5zdHJ1Y3RvcnNTbGljZSIsInN0dWRlbnRzU2xpY2UiLCJyb2xlc1NsaWNlIiwicGVybWlzc2lvbnNTbGljZSIsInN0b3JlIiwicmVkdWNlciIsInN0eWxlIiwibWFpbiIsImF1dGgiLCJvcGVuQWkiLCJ1c2VycyIsImFuYWx5dGljcyIsImNvdXJzZXMiLCJkaXNjdXNzaW9uX2JvYXJkcyIsImVucm9sbG1lbnRzIiwiaW5zdHJ1Y3RvcnMiLCJzdHVkZW50cyIsInJvbGVzIiwicGVybWlzc2lvbnMiXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/stores/store.ts\n");

/***/ }),

/***/ "./src/stores/students/studentsSlice.ts":
/*!**********************************************!*\
  !*** ./src/stores/students/studentsSlice.ts ***!
  \**********************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   deleteItem: () => (/* binding */ deleteItem),\n/* harmony export */   deleteItemsByIds: () => (/* binding */ deleteItemsByIds),\n/* harmony export */   fetch: () => (/* binding */ fetch),\n/* harmony export */   setRefetch: () => (/* binding */ setRefetch),\n/* harmony export */   studentsSlice: () => (/* binding */ studentsSlice),\n/* harmony export */   update: () => (/* binding */ update),\n/* harmony export */   uploadCsv: () => (/* binding */ uploadCsv)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/notifyStateHandler */ \"./src/helpers/notifyStateHandler.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    students: [],\n    loading: false,\n    count: 0,\n    refetch: false,\n    rolesWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fetch = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"students/fetch\", async (data)=>{\n    const { id, query } = data;\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`students${query || (id ? `/${id}` : \"\")}`);\n    return id ? result.data : {\n        rows: result.data.rows,\n        count: result.data.count\n    };\n});\nconst deleteItemsByIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"students/deleteByIds\", async (data, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"students/deleteByIds\", {\n            data\n        });\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst deleteItem = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"students/deleteStudents\", async (id, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`students/${id}`);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst create = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"students/createStudents\", async (data, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"students\", {\n            data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst uploadCsv = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"students/uploadCsv\", async (file, { rejectWithValue })=>{\n    try {\n        const data = new FormData();\n        data.append(\"file\", file);\n        data.append(\"filename\", file.name);\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"students/bulk-import\", data, {\n            headers: {\n                \"Content-Type\": \"multipart/form-data\"\n            }\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst update = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"students/updateStudents\", async (payload, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(`students/${payload.id}`, {\n            id: payload.id,\n            data: payload.data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst studentsSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"students\",\n    initialState,\n    reducers: {\n        setRefetch: (state, action)=>{\n            state.refetch = action.payload;\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(fetch.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(fetch.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(fetch.fulfilled, (state, action)=>{\n            if (action.payload.rows && action.payload.count >= 0) {\n                state.students = action.payload.rows;\n                state.count = action.payload.count;\n            } else {\n                state.students = action.payload;\n            }\n            state.loading = false;\n        });\n        builder.addCase(deleteItemsByIds.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItemsByIds.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Students has been deleted\");\n        });\n        builder.addCase(deleteItemsByIds.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(deleteItem.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItem.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Students\".slice(0, -1)} has been deleted`);\n        });\n        builder.addCase(deleteItem.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(create.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Students\".slice(0, -1)} has been created`);\n        });\n        builder.addCase(update.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(update.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Students\".slice(0, -1)} has been updated`);\n        });\n        builder.addCase(update.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(uploadCsv.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(uploadCsv.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Students has been uploaded\");\n        });\n        builder.addCase(uploadCsv.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setRefetch } = studentsSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (studentsSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15392 characters]\n//# sourceURL=webpack-internal:///./src/stores/students/studentsSlice.ts\n");

/***/ }),

/***/ "./src/stores/styleSlice.ts":
/*!**********************************!*\
  !*** ./src/stores/styleSlice.ts ***!
  \**********************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   setDarkMode: () => (/* binding */ setDarkMode),\n/* harmony export */   setStyle: () => (/* binding */ setStyle),\n/* harmony export */   styleSlice: () => (/* binding */ styleSlice)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var _styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../styles */ \"./src/styles.ts\");\n/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../config */ \"./src/config.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__]);\n_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = (__webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__)[0];\n\n\n\nconst initialState = {\n    asideStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.aside,\n    asideScrollbarsStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.asideScrollbars,\n    asideBrandStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.asideBrand,\n    asideMenuItemStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.asideMenuItem,\n    asideMenuItemActiveStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.asideMenuItemActive,\n    asideMenuDropdownStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.asideMenuDropdown,\n    navBarItemLabelStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.navBarItemLabel,\n    navBarItemLabelHoverStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.navBarItemLabelHover,\n    navBarItemLabelActiveColorStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.navBarItemLabelActiveColor,\n    overlayStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.overlay,\n    darkMode: false,\n    bgLayoutColor: _styles__WEBPACK_IMPORTED_MODULE_1__.white.bgLayoutColor,\n    iconsColor: _styles__WEBPACK_IMPORTED_MODULE_1__.white.iconsColor,\n    activeLinkColor: _styles__WEBPACK_IMPORTED_MODULE_1__.white.activeLinkColor,\n    cardsColor: _styles__WEBPACK_IMPORTED_MODULE_1__.white.cardsColor,\n    focusRingColor: _styles__WEBPACK_IMPORTED_MODULE_1__.white.focusRingColor,\n    corners: _styles__WEBPACK_IMPORTED_MODULE_1__.white.corners,\n    cardsStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.cardsStyle,\n    linkColor: _styles__WEBPACK_IMPORTED_MODULE_1__.white.linkColor,\n    websiteHeder: _styles__WEBPACK_IMPORTED_MODULE_1__.white.websiteHeder,\n    borders: _styles__WEBPACK_IMPORTED_MODULE_1__.white.borders,\n    shadow: _styles__WEBPACK_IMPORTED_MODULE_1__.white.shadow,\n    websiteSectionStyle: _styles__WEBPACK_IMPORTED_MODULE_1__.white.websiteSectionStyle,\n    textSecondary: _styles__WEBPACK_IMPORTED_MODULE_1__.white.textSecondary\n};\nconst styleSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"style\",\n    initialState,\n    reducers: {\n        setDarkMode: (state, action)=>{\n            state.darkMode = action.payload !== null ? action.payload : !state.darkMode;\n            if (typeof localStorage !== \"undefined\") {\n                localStorage.setItem(_config__WEBPACK_IMPORTED_MODULE_2__.localStorageDarkModeKey, state.darkMode ? \"1\" : \"0\");\n            }\n            if (typeof document !== \"undefined\") {\n                document.body.classList[state.darkMode ? \"add\" : \"remove\"](\"dark-scrollbars\");\n                document.documentElement.classList[state.darkMode ? \"add\" : \"remove\"](\"dark-scrollbars-compat\");\n            }\n        },\n        setStyle: (state, action)=>{\n            if (!_styles__WEBPACK_IMPORTED_MODULE_1__[action.payload]) {\n                return;\n            }\n            if (typeof localStorage !== \"undefined\") {\n                localStorage.setItem(_config__WEBPACK_IMPORTED_MODULE_2__.localStorageStyleKey, action.payload);\n            }\n            const style = _styles__WEBPACK_IMPORTED_MODULE_1__[action.payload];\n            for(const key in style){\n                state[`${key}Style`] = style[key];\n            }\n        }\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setDarkMode, setStyle } = styleSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (styleSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 8212 characters]\n//# sourceURL=webpack-internal:///./src/stores/styleSlice.ts\n");

/***/ }),

/***/ "./src/stores/users/usersSlice.ts":
/*!****************************************!*\
  !*** ./src/stores/users/usersSlice.ts ***!
  \****************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.a(module, async (__webpack_handle_async_dependencies__, __webpack_async_result__) => { try {\n__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   create: () => (/* binding */ create),\n/* harmony export */   \"default\": () => (__WEBPACK_DEFAULT_EXPORT__),\n/* harmony export */   deleteItem: () => (/* binding */ deleteItem),\n/* harmony export */   deleteItemsByIds: () => (/* binding */ deleteItemsByIds),\n/* harmony export */   fetch: () => (/* binding */ fetch),\n/* harmony export */   setRefetch: () => (/* binding */ setRefetch),\n/* harmony export */   update: () => (/* binding */ update),\n/* harmony export */   uploadCsv: () => (/* binding */ uploadCsv),\n/* harmony export */   usersSlice: () => (/* binding */ usersSlice)\n/* harmony export */ });\n/* harmony import */ var _reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @reduxjs/toolkit */ \"@reduxjs/toolkit\");\n/* harmony import */ var axios__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! axios */ \"axios\");\n/* harmony import */ var _helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/notifyStateHandler */ \"./src/helpers/notifyStateHandler.ts\");\nvar __webpack_async_dependencies__ = __webpack_handle_async_dependencies__([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__]);\n([_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__, axios__WEBPACK_IMPORTED_MODULE_1__] = __webpack_async_dependencies__.then ? (await __webpack_async_dependencies__)() : __webpack_async_dependencies__);\n\n\n\nconst initialState = {\n    users: [],\n    loading: false,\n    count: 0,\n    refetch: false,\n    rolesWidgets: [],\n    notify: {\n        showNotification: false,\n        textNotification: \"\",\n        typeNotification: \"warn\"\n    }\n};\nconst fetch = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"users/fetch\", async (data)=>{\n    const { id, query } = data;\n    const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].get(`users${query || (id ? `/${id}` : \"\")}`);\n    return id ? result.data : {\n        rows: result.data.rows,\n        count: result.data.count\n    };\n});\nconst deleteItemsByIds = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"users/deleteByIds\", async (data, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"users/deleteByIds\", {\n            data\n        });\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst deleteItem = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"users/deleteUsers\", async (id, { rejectWithValue })=>{\n    try {\n        await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"][\"delete\"](`users/${id}`);\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst create = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"users/createUsers\", async (data, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"users\", {\n            data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst uploadCsv = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"users/uploadCsv\", async (file, { rejectWithValue })=>{\n    try {\n        const data = new FormData();\n        data.append(\"file\", file);\n        data.append(\"filename\", file.name);\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].post(\"users/bulk-import\", data, {\n            headers: {\n                \"Content-Type\": \"multipart/form-data\"\n            }\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst update = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createAsyncThunk)(\"users/updateUsers\", async (payload, { rejectWithValue })=>{\n    try {\n        const result = await axios__WEBPACK_IMPORTED_MODULE_1__[\"default\"].put(`users/${payload.id}`, {\n            id: payload.id,\n            data: payload.data\n        });\n        return result.data;\n    } catch (error) {\n        if (!error.response) {\n            throw error;\n        }\n        return rejectWithValue(error.response.data);\n    }\n});\nconst usersSlice = (0,_reduxjs_toolkit__WEBPACK_IMPORTED_MODULE_0__.createSlice)({\n    name: \"users\",\n    initialState,\n    reducers: {\n        setRefetch: (state, action)=>{\n            state.refetch = action.payload;\n        }\n    },\n    extraReducers: (builder)=>{\n        builder.addCase(fetch.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(fetch.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(fetch.fulfilled, (state, action)=>{\n            if (action.payload.rows && action.payload.count >= 0) {\n                state.users = action.payload.rows;\n                state.count = action.payload.count;\n            } else {\n                state.users = action.payload;\n            }\n            state.loading = false;\n        });\n        builder.addCase(deleteItemsByIds.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItemsByIds.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Users has been deleted\");\n        });\n        builder.addCase(deleteItemsByIds.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(deleteItem.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(deleteItem.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Users\".slice(0, -1)} has been deleted`);\n        });\n        builder.addCase(deleteItem.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(create.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(create.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Users\".slice(0, -1)} has been created`);\n        });\n        builder.addCase(update.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(update.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, `${\"Users\".slice(0, -1)} has been updated`);\n        });\n        builder.addCase(update.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n        builder.addCase(uploadCsv.pending, (state)=>{\n            state.loading = true;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.resetNotify)(state);\n        });\n        builder.addCase(uploadCsv.fulfilled, (state)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.fulfilledNotify)(state, \"Users has been uploaded\");\n        });\n        builder.addCase(uploadCsv.rejected, (state, action)=>{\n            state.loading = false;\n            (0,_helpers_notifyStateHandler__WEBPACK_IMPORTED_MODULE_2__.rejectNotify)(state, action);\n        });\n    }\n});\n// Action creators are generated for each case reducer function\nconst { setRefetch } = usersSlice.actions;\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (usersSlice.reducer);\n\n__webpack_async_result__();\n} catch(e) { __webpack_async_result__(e); } });//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 15252 characters]\n//# sourceURL=webpack-internal:///./src/stores/users/usersSlice.ts\n");

/***/ }),

/***/ "./src/styles.ts":
/*!***********************!*\
  !*** ./src/styles.ts ***!
  \***********************/
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   basic: () => (/* binding */ basic),\n/* harmony export */   dataGridStyles: () => (/* binding */ dataGridStyles),\n/* harmony export */   white: () => (/* binding */ white)\n/* harmony export */ });\nconst basic = {\n    aside: \"bg-gray-800 lg:rounded-2xl\",\n    asideScrollbars: \"aside-scrollbars-gray\",\n    asideBrand: \"bg-gray-900 text-white\",\n    asideMenuItem: \"text-gray-300 hover:text-white\",\n    asideMenuItemActive: \"font-bold text-white\",\n    asideMenuDropdown: \"bg-gray-700/50\",\n    navBarItemLabel: \"text-black\",\n    navBarItemLabelHover: \"hover:text-blue-500\",\n    navBarItemLabelActiveColor: \"text-blue-600\",\n    overlay: \"from-gray-700 via-gray-900 to-gray-700\",\n    activeLinkColor: \"bg-gray-100/70\",\n    bgLayoutColor: \"bg-gray-50\",\n    iconsColor: \"text-blue-500\",\n    cardsColor: \"bg-white\",\n    focusRingColor: \"focus:ring focus:ring-blue-600 focus:border-blue-600 focus:outline-none dark:focus:ring-blue-600 border-gray-300 dark:focus:border-blue-600\",\n    corners: \"rounded\",\n    cardsStyle: \"bg-white border border-pavitra-400\",\n    linkColor: \"text-black\",\n    websiteHeder: \"\",\n    borders: \"\",\n    shadow: \"\",\n    websiteSectionStyle: \"\",\n    textSecondary: \"\"\n};\nconst white = {\n    aside: \"bg-white dark:text-white  lg:rounded-2xl\",\n    asideScrollbars: \"aside-scrollbars-light\",\n    asideBrand: \"\",\n    asideMenuItem: \"text-gray-700 hover:bg-gray-100/70 dark:text-dark-500 dark:hover:text-white dark:hover:bg-dark-800\",\n    asideMenuItemActive: \"font-bold text-black dark:text-white\",\n    asideMenuDropdown: \"bg-gray-100/75\",\n    navBarItemLabel: \"text-blue-600\",\n    navBarItemLabelHover: \"hover:text-black\",\n    navBarItemLabelActiveColor: \"text-black\",\n    overlay: \"from-white via-gray-100 to-white\",\n    activeLinkColor: \"bg-gray-100/70\",\n    bgLayoutColor: \"bg-gray-50\",\n    iconsColor: \"text-blue-500\",\n    cardsColor: \"bg-white\",\n    focusRingColor: \"focus:ring focus:ring-blue-600 focus:border-blue-600 focus:outline-none border-gray-300 dark:focus:ring-blue-600 dark:focus:border-blue-600\",\n    corners: \"rounded\",\n    cardsStyle: \"bg-white border border-pavitra-400\",\n    linkColor: \"text-blue-600\",\n    websiteHeder: \"border-b border-gray-200\",\n    borders: \"border-gray-200\",\n    shadow: \"\",\n    websiteSectionStyle: \"\",\n    textSecondary: \"text-gray-500\"\n};\nconst dataGridStyles = {\n    \"& .MuiDataGrid-cell\": {\n        paddingX: 3,\n        border: \"none\"\n    },\n    \"& .MuiDataGrid-columnHeader\": {\n        paddingX: 3\n    },\n    \"& .MuiDataGrid-columnHeaderCheckbox\": {\n        paddingX: 0\n    },\n    \"& .MuiDataGrid-columnHeaders\": {\n        paddingY: 4,\n        borderStartStartRadius: 7,\n        borderStartEndRadius: 7\n    },\n    \"& .MuiDataGrid-footerContainer\": {\n        paddingY: 0.5,\n        borderEndStartRadius: 7,\n        borderEndEndRadius: 7\n    },\n    \"& .MuiDataGrid-root\": {\n        border: \"none\"\n    }\n};\n//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,[encoded data, 6444 characters]\n//# sourceURL=webpack-internal:///./src/styles.ts\n");

/***/ }),

/***/ "./src/css/main.css":
/*!**************************!*\
  !*** ./src/css/main.css ***!
  \**************************/
/***/ (() => {



/***/ }),

/***/ "jsonwebtoken":
/*!*******************************!*\
  !*** external "jsonwebtoken" ***!
  \*******************************/
/***/ ((module) => {

"use strict";
module.exports = require("jsonwebtoken");

/***/ }),

/***/ "next/dist/compiled/next-server/pages.runtime.dev.js":
/*!**********************************************************************!*\
  !*** external "next/dist/compiled/next-server/pages.runtime.dev.js" ***!
  \**********************************************************************/
/***/ ((module) => {

"use strict";
module.exports = require("next/dist/compiled/next-server/pages.runtime.dev.js");

/***/ }),

/***/ "next/head":
/*!****************************!*\
  !*** external "next/head" ***!
  \****************************/
/***/ ((module) => {

"use strict";
module.exports = require("next/head");

/***/ }),

/***/ "react":
/*!************************!*\
  !*** external "react" ***!
  \************************/
/***/ ((module) => {

"use strict";
module.exports = require("react");

/***/ }),

/***/ "react-dom":
/*!****************************!*\
  !*** external "react-dom" ***!
  \****************************/
/***/ ((module) => {

"use strict";
module.exports = require("react-dom");

/***/ }),

/***/ "react-redux":
/*!******************************!*\
  !*** external "react-redux" ***!
  \******************************/
/***/ ((module) => {

"use strict";
module.exports = require("react-redux");

/***/ }),

/***/ "react/jsx-dev-runtime":
/*!****************************************!*\
  !*** external "react/jsx-dev-runtime" ***!
  \****************************************/
/***/ ((module) => {

"use strict";
module.exports = require("react/jsx-dev-runtime");

/***/ }),

/***/ "react/jsx-runtime":
/*!************************************!*\
  !*** external "react/jsx-runtime" ***!
  \************************************/
/***/ ((module) => {

"use strict";
module.exports = require("react/jsx-runtime");

/***/ }),

/***/ "fs":
/*!*********************!*\
  !*** external "fs" ***!
  \*********************/
/***/ ((module) => {

"use strict";
module.exports = require("fs");

/***/ }),

/***/ "path":
/*!***********************!*\
  !*** external "path" ***!
  \***********************/
/***/ ((module) => {

"use strict";
module.exports = require("path");

/***/ }),

/***/ "stream":
/*!*************************!*\
  !*** external "stream" ***!
  \*************************/
/***/ ((module) => {

"use strict";
module.exports = require("stream");

/***/ }),

/***/ "zlib":
/*!***********************!*\
  !*** external "zlib" ***!
  \***********************/
/***/ ((module) => {

"use strict";
module.exports = require("zlib");

/***/ }),

/***/ "@reduxjs/toolkit":
/*!***********************************!*\
  !*** external "@reduxjs/toolkit" ***!
  \***********************************/
/***/ ((module) => {

"use strict";
module.exports = import("@reduxjs/toolkit");;

/***/ }),

/***/ "axios":
/*!************************!*\
  !*** external "axios" ***!
  \************************/
/***/ ((module) => {

"use strict";
module.exports = import("axios");;

/***/ }),

/***/ "intro.js-react":
/*!*********************************!*\
  !*** external "intro.js-react" ***!
  \*********************************/
/***/ ((module) => {

"use strict";
module.exports = import("intro.js-react");;

/***/ })

};
;

// load runtime
var __webpack_require__ = require("../webpack-runtime.js");
__webpack_require__.C(exports);
var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
var __webpack_exports__ = __webpack_require__.X(0, ["vendor-chunks/next","vendor-chunks/@swc","vendor-chunks/intro.js"], () => (__webpack_exec__("./node_modules/next/dist/build/webpack/loaders/next-route-loader/index.js?kind=PAGES&page=%2F_error&preferredRegion=&absolutePagePath=private-next-pages%2F_error&absoluteAppPath=private-next-pages%2F_app&absoluteDocumentPath=private-next-pages%2F_document&middlewareConfigBase64=e30%3D!")));
module.exports = __webpack_exports__;

})();