dsql-admin/dsql-app/.local_dist/static/chunks/pages/404.js

50 lines
38 KiB
JavaScript
Raw Permalink Normal View History

2024-12-15 11:27:16 +00:00
/*
* 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/).
*/
(self["webpackChunk_N_E"] = self["webpackChunk_N_E"] || []).push([["pages/404"],{
/***/ "./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2Fapp%2Fpages%2F404.jsx&page=%2F404!":
/*!*****************************************************************************************************************************************!*\
!*** ./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2Fapp%2Fpages%2F404.jsx&page=%2F404! ***!
\*****************************************************************************************************************************************/
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
eval(__webpack_require__.ts("\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/404\",\n function () {\n return __webpack_require__(/*! ./pages/404.jsx */ \"./pages/404.jsx\");\n }\n ]);\n if(true) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/404\"])\n });\n }\n //# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9ub2RlX21vZHVsZXMvbmV4dC9kaXN0L2J1aWxkL3dlYnBhY2svbG9hZGVycy9uZXh0LWNsaWVudC1wYWdlcy1sb2FkZXIuanM/YWJzb2x1dGVQYWdlUGF0aD0lMkZhcHAlMkZwYWdlcyUyRjQwNC5qc3gmcGFnZT0lMkY0MDQhIiwibWFwcGluZ3MiOiI7QUFDQTtBQUNBO0FBQ0E7QUFDQSxlQUFlLG1CQUFPLENBQUMsd0NBQWlCO0FBQ3hDO0FBQ0E7QUFDQSxPQUFPLElBQVU7QUFDakIsTUFBTSxVQUFVO0FBQ2hCO0FBQ0EsT0FBTztBQUNQO0FBQ0EiLCJzb3VyY2VzIjpbIiJdLCJzb3VyY2VzQ29udGVudCI6WyJcbiAgICAod2luZG93Ll9fTkVYVF9QID0gd2luZG93Ll9fTkVYVF9QIHx8IFtdKS5wdXNoKFtcbiAgICAgIFwiLzQwNFwiLFxuICAgICAgZnVuY3Rpb24gKCkge1xuICAgICAgICByZXR1cm4gcmVxdWlyZShcIi4vcGFnZXMvNDA0LmpzeFwiKTtcbiAgICAgIH1cbiAgICBdKTtcbiAgICBpZihtb2R1bGUuaG90KSB7XG4gICAgICBtb2R1bGUuaG90LmRpc3Bvc2UoZnVuY3Rpb24gKCkge1xuICAgICAgICB3aW5kb3cuX19ORVhUX1AucHVzaChbXCIvNDA0XCJdKVxuICAgICAgfSk7XG4gICAgfVxuICAiXSwibmFtZXMiOltdLCJpZ25vcmVMaXN0IjpbXSwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2Fapp%2Fpages%2F404.jsx&page=%2F404!\n"));
/***/ }),
/***/ "./functions/frontend/clientAuthUser.js":
/*!**********************************************!*\
!*** ./functions/frontend/clientAuthUser.js ***!
\**********************************************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {
"use strict";
eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ clientAuthUser)\n/* harmony export */ });\n/* harmony import */ var _fetchApi__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./fetchApi */ \"./functions/frontend/fetchApi.js\");\n// @ts-check\n/**\r\n * ==============================================================================\r\n * Imports\r\n * ==============================================================================\r\n */ \n/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**\r\n * ==============================================================================\r\n * Auth user on client side\r\n * ==============================================================================\r\n * @param {object} params - React ref with current value\r\n * @param {React.Dispatch<React.SetStateAction<import(\"@/package-shared/types\").UserType | {} | *>>} params.setUser - React ref with current value\r\n *\r\n * @requires search-field name attribute\r\n */ function clientAuthUser(param) {\n let { setUser } = param;\n /**\r\n * Check for user in local storage\r\n *\r\n * @description Preventdefault, declare variables\r\n */ let localStorageUser = localStorage.getItem(\"user\");\n if (localStorageUser) {\n try {\n setUser(JSON.parse(localStorageUser));\n return;\n } catch (error) {\n setUser({});\n return;\n }\n }\n /**\r\n * Fetch User from server\r\n *\r\n * @description Preventdefault, declare variables\r\n */ (0,_fetchApi__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(\"/api/clientSideAuth\", {\n method: \"post\",\n body: {}\n }, true).then((res)=>{\n let finalUser = res.user ? res.user : {};\n setUser(finalUser);\n localStorage.setItem(\"user\", JSON.stringify(finalUser));\n // localStorage.setItem(\"user\", JSON.stringify(res.user));\n }).catch((error)=>{\n console.log(error);\n });\n} ////////////////////////////////////////\n ////////////////////////////////////////\n ////////////////////////////////////////\n\n\n;\n // Wrapped in an IIFE to avoid polluting the global scope\n ;\n (function () {\n var _a, _b;\n // Legacy CSS implementations will `eval` browser code in a Node.js context\n // to extract CSS. For backwards compatibility, we need to check we're in a\n // browser context before continuing.\n if (typeof self !== 'undefined' &&\n // AMP / No-JS mode does not inject these helpers:\n '$RefreshHelpers$' in self) {\n // @ts-ignore __webpack_module__ is global\n var currentExports = module.exports;\n // @ts-ignore __webpack_module__ is global\n var prevSignature = (_b = (_a = module.hot.data) === null || _a === void 0 ? void 0 : _a.prevSignature) !== null && _b !== void 0 ? _b : null;\n // This cannot happen in MainTemplate because the exports mismatch between\n // templating and execution.\n self.$RefreshHelpers$.registerExportsForReactRefresh(currentExports, module.id);\n // A module can be accepted automatically based on its exports, e.g. when\n // it is a Refresh Boundary.\n if (self.$RefreshHelpers$.isReactRefreshBoundary(currentExports)) {\n // Save the previous exports signature on update so we can compare the boundary\n // signatures. We
/***/ }),
/***/ "./pages/404.jsx":
/*!***********************!*\
!*** ./pages/404.jsx ***!
\***********************/
/***/ ((module, __webpack_exports__, __webpack_require__) => {
"use strict";
eval(__webpack_require__.ts("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"default\": () => (/* binding */ NotFoundPage)\n/* harmony export */ });\n/* harmony import */ var react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react/jsx-dev-runtime */ \"./node_modules/react/jsx-dev-runtime.js\");\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 */ \"./node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _layouts_GeneralLayout__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../layouts/GeneralLayout */ \"./layouts/GeneralLayout.jsx\");\n/* harmony import */ var _components_general_PageHeadTags__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/general/PageHeadTags */ \"./components/general/PageHeadTags.jsx\");\n/* harmony import */ var _functions_frontend_clientAuthUser__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../functions/frontend/clientAuthUser */ \"./functions/frontend/clientAuthUser.js\");\n// @ts-check\n/**\r\n * ==============================================================================\r\n * Imports\r\n * ==============================================================================\r\n */ \nvar _s = $RefreshSig$();\n\n////////////////////////////////////////\n////////////////////////////////////////\n////////////////////////////////////////\n\n\n\n/** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /** ****************************************************************************** */ /**\r\n * ==============================================================================\r\n * Main Component { Functional }\r\n * ==============================================================================\r\n * @param {Object} props - Server props\r\n */ function NotFoundPage(props) {\n _s();\n /**\r\n * Get Contexts\r\n *\r\n * @abstract { React.useContext }\r\n */ if (true) {\n react__WEBPACK_IMPORTED_MODULE_1___default().useEffect({\n \"NotFoundPage.useEffect\": ()=>{\n window.location.href = \"https://datasquirel.com\";\n }\n }[\"NotFoundPage.useEffect\"], []);\n return null;\n }\n ////////////////////////////////////////\n ////////////////////////////////////////\n ////////////////////////////////////////\n /**\r\n * Javascript Variables\r\n *\r\n * @abstract Non hook variables and functions\r\n */ const pageTitle = \"Cloudbased SQL data management system | Datasquirel\";\n const pageDescription = \"Datasquirel is a fast and efficient cloud-based SQL data management system that takes away the entire hassle of dealing with data both locally and across different platforms.\";\n let head = /*#__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)(\"title\", {\n children: pageTitle\n }, void 0, false, {\n fileName: \"/app/pages/404.jsx\",\n lineNumber: 59,\n columnNumber: 13\n }, this),\n /*#__PURE__*/ (0,react_jsx_dev_runtime__WEBPACK_IMPORTED_MODULE_0
/***/ })
},
/******/ __webpack_require__ => { // webpackRuntimeModules
/******/ var __webpack_exec__ = (moduleId) => (__webpack_require__(__webpack_require__.s = moduleId))
/******/ __webpack_require__.O(0, ["pages/_app","main"], () => (__webpack_exec__("./node_modules/next/dist/build/webpack/loaders/next-client-pages-loader.js?absolutePagePath=%2Fapp%2Fpages%2F404.jsx&page=%2F404!")));
/******/ var __webpack_exports__ = __webpack_require__.O();
/******/ _N_E = __webpack_exports__;
/******/ }
]);