text: module.exports =
  /******/ (function(modules) { // webpackBootstrap
  /******/ 	// The module cache
  /******/ 	var installedModules = require('../../../ssr-module-cache.js');
  /******/
  /******/ 	// The require function
  /******/ 	function __webpack_require__(moduleId) {
  /******/
  /******/ 		// Check if module is in cache
  /******/ 		if(installedModules[moduleId]) {
  /******/ 			return installedModules[moduleId].exports;
  /******/ 		}
  /******/ 		// Create a new module (and put it into the cache)
  /******/ 		var module = installedModules[moduleId] = {
  /******/ 			i: moduleId,
  /******/ 			l: false,
  /******/ 			exports: {}
  /******/ 		};
  /******/
  /******/ 		// Execute the module function
  /******/ 		var threw = true;
  /******/ 		try {
  /******/ 			modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  /******/ 			threw = false;
  /******/ 		} finally {
  /******/ 			if(threw) delete installedModules[moduleId];
  /******/ 		}
  /******/
  /******/ 		// Flag the module as loaded
  /******/ 		module.l = true;
  /******/
  /******/ 		// Return the exports of the module
  /******/ 		return module.exports;
  /******/ 	}
  /******/
  /******/
  /******/ 	// expose the modules object (__webpack_modules__)
  /******/ 	__webpack_require__.m = modules;
  /******/
  /******/ 	// expose the module cache
  /******/ 	__webpack_require__.c = installedModules;
  /******/
  /******/ 	// define getter function for harmony exports
  /******/ 	__webpack_require__.d = function(exports, name, getter) {
  /******/ 		if(!__webpack_require__.o(exports, name)) {
  /******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
  /******/ 		}
  /******/ 	};
  /******/
  /******/ 	// define __esModule on exports
  /******/ 	__webpack_require__.r = function(exports) {
  /******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  /******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  /******/ 		}
  /******/ 		Object.defineProperty(exports, '__esModule', { value: true });
  /******/ 	};
  /******/
  /******/ 	// create a fake namespace object
  /******/ 	// mode & 1: value is a module id, require it
  /******/ 	// mode & 2: merge all properties of value into the ns
  /******/ 	// mode & 4: return value when already ns object
  /******/ 	// mode & 8|1: behave like require
  /******/ 	__webpack_require__.t = function(value, mode) {
  /******/ 		if(mode & 1) value = __webpack_require__(value);
  /******/ 		if(mode & 8) return value;
  /******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  /******/ 		var ns = Object.create(null);
  /******/ 		__webpack_require__.r(ns);
  /******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  /******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  /******/ 		return ns;
  /******/ 	};
  /******/
  /******/ 	// getDefaultExport function for compatibility with non-harmony modules
  /******/ 	__webpack_require__.n = function(module) {
  /******/ 		var getter = module && module.__esModule ?
  /******/ 			function getDefault() { return module['default']; } :
  /******/ 			function getModuleExports() { return module; };
  /******/ 		__webpack_require__.d(getter, 'a', getter);
  /******/ 		return getter;
  /******/ 	};
  /******/
  /******/ 	// Object.prototype.hasOwnProperty.call
  /******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  /******/
  /******/ 	// __webpack_public_path__
  /******/ 	__webpack_require__.p = "";
  /******/
  /******/
  /******/ 	// Load entry module and return exports
  /******/ 	return __webpack_require__(__webpack_require__.s = 0);
  /******/ })
  /************************************************************************/
  /******/ ({
  
  /***/ "./components/Footer/index.tsx":
  /*!*************************************!*\
    !*** ./components/Footer/index.tsx ***!
    \*************************************/
  /*! exports provided: default */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  var _jsxFileName = "/Users/tusshukl/_/Dev/rickAndMorty/src/components/Footer/index.tsx";
  var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  
  
  const Footer = () => {
    return __jsx("footer", {
      className: "footer",
      __self: undefined,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 5,
        columnNumber: 5
      }
    }, "This is footer section");
  };
  
  /* harmony default export */ __webpack_exports__["default"] = (Footer);
  
  /***/ }),
  
  /***/ "./components/Header/header.module.scss":
  /*!**********************************************!*\
    !*** ./components/Header/header.module.scss ***!
    \**********************************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  module.exports = {
  	"header": "header-module__header--2j_at",
  	"textShadow": "header-module__textShadow--3gCES"
  };
  
  /***/ }),
  
  /***/ "./components/Header/index.tsx":
  /*!*************************************!*\
    !*** ./components/Header/index.tsx ***!
    \*************************************/
  /*! exports provided: __Dark_Theme_Name, default */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__Dark_Theme_Name", function() { return __Dark_Theme_Name; });
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  /* harmony import */ var _header_module_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./header.module.scss */ "./components/Header/header.module.scss");
  /* harmony import */ var _header_module_scss__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_header_module_scss__WEBPACK_IMPORTED_MODULE_1__);
  var _jsxFileName = "/Users/tusshukl/_/Dev/rickAndMorty/src/components/Header/index.tsx";
  var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  
  
  const __Dark_Theme_Key = '__dark';
  const __Dark_Theme_Name = 'theme_dark';
  
  const Header = () => {
    react__WEBPACK_IMPORTED_MODULE_0___default.a.useEffect(() => {
      const lsItem = localStorage.getItem(__Dark_Theme_Key);
      console.log('ls val: ', lsItem);
      const isDark = localStorage.getItem(__Dark_Theme_Key) === 'true';
      console.log('is dark', isDark);
      const existingClasses = document.documentElement.className;
  
      if (isDark) {
        const newClasses = (existingClasses.trim() + ' ' + __Dark_Theme_Name).trim();
  
        document.documentElement.className = newClasses;
      }
    });
  
    const addClass = (src, val) => {
      const _src = src.length ? src.trim() + ' ' : '';
  
      return _src + val;
    };
  
    const removeClass = (src, val) => {
      return src.length ? src.replace(new RegExp(__Dark_Theme_Name, 'gi'), '') : '';
    };
  
    const themeToggle = () => {
      const existingClasses = document.documentElement.className;
      const isDark = existingClasses.indexOf(__Dark_Theme_Name) > -1;
      localStorage.setItem(__Dark_Theme_Key, JSON.stringify(!isDark));
      document.documentElement.className = isDark ? removeClass(existingClasses, __Dark_Theme_Name) : addClass(existingClasses, __Dark_Theme_Name);
    };
  
    return __jsx("header", {
      className: _header_module_scss__WEBPACK_IMPORTED_MODULE_1___default.a.header,
      __self: undefined,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 41,
        columnNumber: 5
      }
    }, "Rick", __jsx("span", {
      __self: undefined,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 43,
        columnNumber: 7
      }
    }, "And"), "Morty", __jsx("button", {
      onClick: themeToggle,
      __self: undefined,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 46,
        columnNumber: 7
      }
    }, "Toggle Dark Mode"));
  };
  
  /* harmony default export */ __webpack_exports__["default"] = (Header);
  
  /***/ }),
  
  /***/ "./pages/_app.tsx":
  /*!************************!*\
    !*** ./pages/_app.tsx ***!
    \************************/
  /*! exports provided: default */
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  __webpack_require__.r(__webpack_exports__);
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  /* harmony import */ var _styles_globals_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../styles/globals.scss */ "./styles/globals.scss");
  /* harmony import */ var _styles_globals_scss__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_styles_globals_scss__WEBPACK_IMPORTED_MODULE_1__);
  /* harmony import */ var _components_Header__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../components/Header */ "./components/Header/index.tsx");
  /* harmony import */ var _components_Footer__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/Footer */ "./components/Footer/index.tsx");
  var _jsxFileName = "/Users/tusshukl/_/Dev/rickAndMorty/src/pages/_app.tsx";
  var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
  
  
  
  
  
  
  function MyApp({
    Component,
    pageProps
  }) {
    return __jsx(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, null, __jsx(_components_Header__WEBPACK_IMPORTED_MODULE_2__["default"], {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 12,
        columnNumber: 7
      }
    }), __jsx("main", {
      className: "rickAndMorty",
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 13,
        columnNumber: 7
      }
    }, __jsx(Component, _extends({}, pageProps, {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 14,
        columnNumber: 9
      }
    }))), __jsx(_components_Footer__WEBPACK_IMPORTED_MODULE_3__["default"], {
      __self: this,
      __source: {
        fileName: _jsxFileName,
        lineNumber: 16,
        columnNumber: 7
      }
    }));
  }
  
  /* harmony default export */ __webpack_exports__["default"] = (MyApp);
  
  /***/ }),
  
  /***/ "./styles/globals.scss":
  /*!*****************************!*\
    !*** ./styles/globals.scss ***!
    \*****************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  module.exports = {
  	"rickAndMorty": "globals__rickAndMorty--13E2U"
  };
  
  /***/ }),
  
  /***/ 0:
  /*!*****************************************!*\
    !*** multi private-next-pages/_app.tsx ***!
    \*****************************************/
  /*! no static exports found */
  /***/ (function(module, exports, __webpack_require__) {
  
  module.exports = __webpack_require__(/*! private-next-pages/_app.tsx */"./pages/_app.tsx");
  
  
  /***/ }),
  
  /***/ "react":
  /*!************************!*\
    !*** external "react" ***!
    \************************/
  /*! no static exports found */
  /***/ (function(module, exports) {
  
  module.exports = require("react");
  
  /***/ })
  
  /******/ });
  //# sourceMappingURL=_app.js.map