|
- 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);
- /******/ })
- /************************************************************************/
- /******/ ({
-
- /***/ "../next-server/lib/utils":
- /*!*****************************************************!*\
- !*** external "next/dist/next-server/lib/utils.js" ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
- module.exports = require("next/dist/next-server/lib/utils.js");
-
- /***/ }),
-
- /***/ "./assets/jss/nextjs-material-kit.js":
- /*!*******************************************!*\
- !*** ./assets/jss/nextjs-material-kit.js ***!
- \*******************************************/
- /*! exports provided: hexToRGBAlpha, drawerWidth, transition, container, conatinerFluid, boxShadow, card, defaultFont, primaryColor, warningColor, dangerColor, successColor, infoColor, roseColor, grayColor, primaryBoxShadow, infoBoxShadow, successBoxShadow, warningBoxShadow, dangerBoxShadow, roseBoxShadow, warningCardHeader, successCardHeader, dangerCardHeader, infoCardHeader, primaryCardHeader, roseCardHeader, cardActions, cardHeader, defaultBoxShadow, title, cardTitle, cardLink, cardSubtitle */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hexToRGBAlpha", function() { return hexToRGBAlpha; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawerWidth", function() { return drawerWidth; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return transition; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "container", function() { return container; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conatinerFluid", function() { return conatinerFluid; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "boxShadow", function() { return boxShadow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "card", function() { return card; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultFont", function() { return defaultFont; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryColor", function() { return primaryColor; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningColor", function() { return warningColor; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dangerColor", function() { return dangerColor; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "successColor", function() { return successColor; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "infoColor", function() { return infoColor; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "roseColor", function() { return roseColor; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "grayColor", function() { return grayColor; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryBoxShadow", function() { return primaryBoxShadow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "infoBoxShadow", function() { return infoBoxShadow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "successBoxShadow", function() { return successBoxShadow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningBoxShadow", function() { return warningBoxShadow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dangerBoxShadow", function() { return dangerBoxShadow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "roseBoxShadow", function() { return roseBoxShadow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningCardHeader", function() { return warningCardHeader; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "successCardHeader", function() { return successCardHeader; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dangerCardHeader", function() { return dangerCardHeader; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "infoCardHeader", function() { return infoCardHeader; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryCardHeader", function() { return primaryCardHeader; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "roseCardHeader", function() { return roseCardHeader; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardActions", function() { return cardActions; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardHeader", function() { return cardHeader; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultBoxShadow", function() { return defaultBoxShadow; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "title", function() { return title; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardTitle", function() { return cardTitle; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardLink", function() { return cardLink; });
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardSubtitle", function() { return cardSubtitle; });
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
-
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
-
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
-
- const hexColorToRGB = function (hexColor) {
- let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
-
- hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
- return r + r + g + g + b + b;
- });
- const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
-
- return hex_array ? {
- r: parseInt(hex_array[1], 16),
- // 0-255
- g: parseInt(hex_array[2], 16),
- // 0-255
- b: parseInt(hex_array[3], 16) // 0-255
-
- } : null;
- };
-
- const hexToRGBAlpha = function (hexColor, alpha) {
- let rgb = hexColorToRGB(hexColor);
- return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
- };
-
- const drawerWidth = 260;
- const transition = {
- transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
- };
- const conatinerFluid = {
- paddingRight: "15px",
- paddingLeft: "15px",
- marginRight: "auto",
- marginLeft: "auto",
- width: "100%"
- };
-
- const container = _objectSpread({}, conatinerFluid, {
- "@media (min-width: 576px)": {
- maxWidth: "540px"
- },
- "@media (min-width: 768px)": {
- maxWidth: "720px"
- },
- "@media (min-width: 992px)": {
- maxWidth: "960px"
- },
- "@media (min-width: 1200px)": {
- maxWidth: "1140px"
- }
- });
-
- const boxShadow = {
- boxShadow: "0 10px 30px -12px rgba(0, 0, 0, 0.42), 0 4px 25px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2)"
- };
- const card = {
- display: "inline-block",
- position: "relative",
- width: "100%",
- margin: "25px 0",
- boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
- borderRadius: "3px",
- color: "rgba(0, 0, 0, 0.87)",
- background: "#fff"
- };
- const defaultFont = {
- fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
- fontWeight: "300",
- lineHeight: "1.5em"
- };
- const primaryColor = "#212121";
- const warningColor = "#ff9800";
- const dangerColor = "#f44336";
- const successColor = "#4caf50";
- const infoColor = "#212121";
- const roseColor = "#e91e63";
- const grayColor = "#ffffff";
- const primaryBoxShadow = {
- boxShadow: `0 12px 20px -10px ${hexToRGBAlpha(primaryColor, 0.28)}, 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px ${hexToRGBAlpha(primaryColor, 0.2)}`
- };
- const infoBoxShadow = {
- boxShadow: `0 12px 20px -10px ${hexToRGBAlpha(infoColor, 0.28)}, 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px ${hexToRGBAlpha(infoColor, 0.2)}`
- };
- const successBoxShadow = {
- boxShadow: `0 12px 20px -10px ${hexToRGBAlpha(successColor, 0.28)}, 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px ${hexToRGBAlpha(successColor, 0.2)}`
- };
- const warningBoxShadow = {
- boxShadow: `0 12px 20px -10px ${hexToRGBAlpha(warningColor, 0.28)}, 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px ${hexToRGBAlpha(warningColor, 0.2)}`
- };
- const dangerBoxShadow = {
- boxShadow: `0 12px 20px -10px ${hexToRGBAlpha(dangerColor, 0.28)}, 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px ${hexToRGBAlpha(dangerColor, 0.2)}`
- };
- const roseBoxShadow = {
- boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
- };
-
- const warningCardHeader = _objectSpread({
- color: "#fff",
- background: "linear-gradient(60deg, #ffa726, #fb8c00)"
- }, warningBoxShadow);
-
- const successCardHeader = _objectSpread({
- color: "#fff",
- background: "linear-gradient(60deg, #66bb6a, #43a047)"
- }, successBoxShadow);
-
- const dangerCardHeader = _objectSpread({
- color: "#fff",
- background: "linear-gradient(60deg, #ef5350, #e53935)"
- }, dangerBoxShadow);
-
- const infoCardHeader = _objectSpread({
- color: "#fff",
- background: "#212121"
- }, infoBoxShadow);
-
- const primaryCardHeader = _objectSpread({
- color: "#fff",
- background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
- }, primaryBoxShadow);
-
- const roseCardHeader = _objectSpread({
- color: "#fff",
- background: "linear-gradient(60deg, #ec407a, #d81b60)"
- }, roseBoxShadow);
-
- const cardActions = _objectSpread({
- margin: "0 20px 10px",
- paddingTop: "10px",
- borderTop: "1px solid #eeeeee",
- height: "auto"
- }, defaultFont);
-
- const cardHeader = {
- margin: "-30px 15px 0",
- borderRadius: "3px",
- padding: "15px"
- };
- const defaultBoxShadow = {
- border: "0",
- borderRadius: "3px",
- boxShadow: "0 10px 20px -12px rgba(0, 0, 0, 0.42), 0 3px 20px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2)",
- padding: "10px 0",
- transition: "all 150ms ease 0s"
- };
- const title = {
- color: "#ffffff",
- margin: "1.75rem 0 0.875rem",
- textDecoration: "none",
- fontWeight: "700",
- fontFamily: `"Roboto Slab", "Times New Roman", serif`
- };
-
- const cardTitle = _objectSpread({}, title, {
- marginTop: ".625rem"
- });
-
- const cardLink = {
- "& + $cardLink": {
- marginLeft: "1.25rem"
- }
- };
- const cardSubtitle = {
- marginBottom: "0",
- marginTop: "-.375rem"
- };
-
-
- /***/ }),
-
- /***/ "./assets/scss/nextjs-material-kit.scss?v=1.1.0":
- /*!******************************************************!*\
- !*** ./assets/scss/nextjs-material-kit.scss?v=1.1.0 ***!
- \******************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
-
-
- /***/ }),
-
- /***/ "./components/PageChange/PageChange.js":
- /*!*********************************************!*\
- !*** ./components/PageChange/PageChange.js ***!
- \*********************************************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PageChange; });
- /* 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 _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @material-ui/core/styles */ "@material-ui/core/styles");
- /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var _material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @material-ui/core/CircularProgress */ "@material-ui/core/CircularProgress");
- /* harmony import */ var _material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! assets/jss/nextjs-material-kit.js */ "./assets/jss/nextjs-material-kit.js");
- var _jsxFileName = "E:\\Project\\tbg-ecomm-nextjs\\components\\PageChange\\PageChange.js";
- var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
-
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
-
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
-
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
-
- // @material-ui/core components
-
-
- // core components
-
-
- const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])({
- progress: {
- color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_3__["infoColor"],
- width: "6rem !important",
- height: "6rem !important"
- },
- wrapperDiv: {
- margin: "100px auto",
- padding: "0px",
- maxWidth: "360px",
- textAlign: "center",
- position: "relative",
- zIndex: "9999",
- top: "0"
- },
- iconWrapper: {
- display: "block"
- },
- title: _objectSpread({}, assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_3__["title"], {
- color: "#FFFFFF"
- })
- });
- function PageChange(props) {
- const classes = useStyles();
- return __jsx("div", {
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 37,
- columnNumber: 5
- }
- }, __jsx("div", {
- className: classes.wrapperDiv,
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 38,
- columnNumber: 7
- }
- }, __jsx("div", {
- className: classes.iconWrapper,
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 39,
- columnNumber: 9
- }
- }, __jsx(_material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2___default.a, {
- className: classes.progress,
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 40,
- columnNumber: 11
- }
- })), __jsx("div", {
- align: "center",
- color: "white",
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 42,
- columnNumber: 9
- }
- }, __jsx("h4", {
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 43,
- columnNumber: 11
- }
- }, "Thamrin Group - Generasi ke Generasi"))));
- }
-
- /***/ }),
-
- /***/ "./node_modules/next/app.js":
- /*!**********************************!*\
- !*** ./node_modules/next/app.js ***!
- \**********************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = __webpack_require__(/*! ./dist/pages/_app */ "./node_modules/next/dist/pages/_app.js")
-
-
- /***/ }),
-
- /***/ "./node_modules/next/dist/pages/_app.js":
- /*!**********************************************!*\
- !*** ./node_modules/next/dist/pages/_app.js ***!
- \**********************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- "use strict";
-
-
- var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js");
-
- exports.__esModule = true;
- exports.Container = Container;
- exports.createUrl = createUrl;
- exports.default = void 0;
-
- var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
-
- var _utils = __webpack_require__(/*! ../next-server/lib/utils */ "../next-server/lib/utils");
-
- exports.AppInitialProps = _utils.AppInitialProps;
- /**
- * `App` component is used for initialize of pages. It allows for overwriting and full control of the `page` initialization.
- * This allows for keeping state between navigation, custom error handling, injecting additional data.
- */
-
- async function appGetInitialProps(_ref) {
- var {
- Component,
- ctx
- } = _ref;
- var pageProps = await (0, _utils.loadGetInitialProps)(Component, ctx);
- return {
- pageProps
- };
- }
-
- class App extends _react.default.Component {
- // Kept here for backwards compatibility.
- // When someone ended App they could call `super.componentDidCatch`.
- // @deprecated This method is no longer needed. Errors are caught at the top level
- componentDidCatch(error, _errorInfo) {
- throw error;
- }
-
- render() {
- var {
- router,
- Component,
- pageProps,
- __N_SSG,
- __N_SSP
- } = this.props;
- return _react.default.createElement(Component, Object.assign({}, pageProps, // we don't add the legacy URL prop if it's using non-legacy
- // methods like getStaticProps and getServerSideProps
- !(__N_SSG || __N_SSP) ? {
- url: createUrl(router)
- } : {}));
- }
-
- }
-
- exports.default = App;
- App.origGetInitialProps = appGetInitialProps;
- App.getInitialProps = appGetInitialProps;
- var warnContainer;
- var warnUrl;
-
- if (true) {
- warnContainer = (0, _utils.execOnce)(() => {
- console.warn("Warning: the `Container` in `_app` has been deprecated and should be removed. https://err.sh/zeit/next.js/app-container-deprecated");
- });
- warnUrl = (0, _utils.execOnce)(() => {
- console.error("Warning: the 'url' property is deprecated. https://err.sh/zeit/next.js/url-deprecated");
- });
- } // @deprecated noop for now until removal
-
-
- function Container(p) {
- if (true) warnContainer();
- return p.children;
- }
-
- function createUrl(router) {
- // This is to make sure we don't references the router object at call time
- var {
- pathname,
- asPath,
- query
- } = router;
- return {
- get query() {
- if (true) warnUrl();
- return query;
- },
-
- get pathname() {
- if (true) warnUrl();
- return pathname;
- },
-
- get asPath() {
- if (true) warnUrl();
- return asPath;
- },
-
- back: () => {
- if (true) warnUrl();
- router.back();
- },
- push: (url, as) => {
- if (true) warnUrl();
- return router.push(url, as);
- },
- pushTo: (href, as) => {
- if (true) warnUrl();
- var pushRoute = as ? href : '';
- var pushUrl = as || href;
- return router.push(pushRoute, pushUrl);
- },
- replace: (url, as) => {
- if (true) warnUrl();
- return router.replace(url, as);
- },
- replaceTo: (href, as) => {
- if (true) warnUrl();
- var replaceRoute = as ? href : '';
- var replaceUrl = as || href;
- return router.replace(replaceRoute, replaceUrl);
- }
- };
- }
-
- /***/ }),
-
- /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js":
- /*!****************************************************************************************!*\
- !*** ./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
- \****************************************************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
- function _interopRequireDefault(obj) {
- return obj && obj.__esModule ? obj : {
- "default": obj
- };
- }
-
- module.exports = _interopRequireDefault;
-
- /***/ }),
-
- /***/ "./pages/_app.js":
- /*!***********************!*\
- !*** ./pages/_app.js ***!
- \***********************/
- /*! exports provided: default */
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
-
- "use strict";
- __webpack_require__.r(__webpack_exports__);
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MyApp; });
- /* 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 react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "react-dom");
- /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
- /* harmony import */ var next_app__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! next/app */ "./node_modules/next/app.js");
- /* harmony import */ var next_app__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_app__WEBPACK_IMPORTED_MODULE_2__);
- /* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! next/head */ "next/head");
- /* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_3__);
- /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/router */ "next/router");
- /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_4__);
- /* harmony import */ var components_PageChange_PageChange_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! components/PageChange/PageChange.js */ "./components/PageChange/PageChange.js");
- /* harmony import */ var assets_scss_nextjs_material_kit_scss_v_1_1_0__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! assets/scss/nextjs-material-kit.scss?v=1.1.0 */ "./assets/scss/nextjs-material-kit.scss?v=1.1.0");
- /* harmony import */ var assets_scss_nextjs_material_kit_scss_v_1_1_0__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(assets_scss_nextjs_material_kit_scss_v_1_1_0__WEBPACK_IMPORTED_MODULE_6__);
- var _jsxFileName = "E:\\Project\\tbg-ecomm-nextjs\\pages\\_app.js";
- 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); }
-
-
-
-
-
-
-
- // import styles from "assets/jss/nextjs-material-kit/pages/components.js";
-
- next_router__WEBPACK_IMPORTED_MODULE_4___default.a.events.on("routeChangeStart", url => {
- console.log(`Loading: ${url}`);
- document.body.classList.add("body-page-transition");
- react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render(__jsx(components_PageChange_PageChange_js__WEBPACK_IMPORTED_MODULE_5__["default"], {
- path: url,
- __self: undefined,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 14,
- columnNumber: 5
- }
- }), document.getElementById("page-transition"));
- });
- next_router__WEBPACK_IMPORTED_MODULE_4___default.a.events.on("routeChangeComplete", () => {
- react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.unmountComponentAtNode(document.getElementById("page-transition"));
- document.body.classList.remove("body-page-transition");
- });
- next_router__WEBPACK_IMPORTED_MODULE_4___default.a.events.on("routeChangeError", () => {
- react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.unmountComponentAtNode(document.getElementById("page-transition"));
- document.body.classList.remove("body-page-transition");
- });
- class MyApp extends next_app__WEBPACK_IMPORTED_MODULE_2___default.a {
- static async getInitialProps({
- Component,
- router,
- ctx
- }) {
- let pageProps = {};
-
- if (Component.getInitialProps) {
- pageProps = await Component.getInitialProps(ctx);
- }
-
- return {
- pageProps
- };
- }
-
- render() {
- const {
- Component,
- pageProps
- } = this.props;
- return __jsx(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, {
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 40,
- columnNumber: 7
- }
- }, __jsx(next_head__WEBPACK_IMPORTED_MODULE_3___default.a, {
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 41,
- columnNumber: 9
- }
- }, __jsx("title", {
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 42,
- columnNumber: 11
- }
- }, "Thamrin Group")), __jsx(Component, _extends({}, pageProps, {
- __self: this,
- __source: {
- fileName: _jsxFileName,
- lineNumber: 44,
- columnNumber: 9
- }
- })));
- }
-
- }
-
- /***/ }),
-
- /***/ 0:
- /*!****************************************!*\
- !*** multi private-next-pages/_app.js ***!
- \****************************************/
- /*! no static exports found */
- /***/ (function(module, exports, __webpack_require__) {
-
- module.exports = __webpack_require__(/*! private-next-pages/_app.js */"./pages/_app.js");
-
-
- /***/ }),
-
- /***/ "@material-ui/core/CircularProgress":
- /*!*****************************************************!*\
- !*** external "@material-ui/core/CircularProgress" ***!
- \*****************************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
- module.exports = require("@material-ui/core/CircularProgress");
-
- /***/ }),
-
- /***/ "@material-ui/core/styles":
- /*!*******************************************!*\
- !*** external "@material-ui/core/styles" ***!
- \*******************************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
- module.exports = require("@material-ui/core/styles");
-
- /***/ }),
-
- /***/ "next/head":
- /*!****************************!*\
- !*** external "next/head" ***!
- \****************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
- module.exports = require("next/head");
-
- /***/ }),
-
- /***/ "next/router":
- /*!******************************!*\
- !*** external "next/router" ***!
- \******************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
- module.exports = require("next/router");
-
- /***/ }),
-
- /***/ "react":
- /*!************************!*\
- !*** external "react" ***!
- \************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
- module.exports = require("react");
-
- /***/ }),
-
- /***/ "react-dom":
- /*!****************************!*\
- !*** external "react-dom" ***!
- \****************************/
- /*! no static exports found */
- /***/ (function(module, exports) {
-
- module.exports = require("react-dom");
-
- /***/ })
-
- /******/ });
- //# sourceMappingURL=_app.js.map
|