您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

801 行
31 KiB

  1. module.exports =
  2. /******/ (function(modules) { // webpackBootstrap
  3. /******/ // The module cache
  4. /******/ var installedModules = require('../../../ssr-module-cache.js');
  5. /******/
  6. /******/ // The require function
  7. /******/ function __webpack_require__(moduleId) {
  8. /******/
  9. /******/ // Check if module is in cache
  10. /******/ if(installedModules[moduleId]) {
  11. /******/ return installedModules[moduleId].exports;
  12. /******/ }
  13. /******/ // Create a new module (and put it into the cache)
  14. /******/ var module = installedModules[moduleId] = {
  15. /******/ i: moduleId,
  16. /******/ l: false,
  17. /******/ exports: {}
  18. /******/ };
  19. /******/
  20. /******/ // Execute the module function
  21. /******/ var threw = true;
  22. /******/ try {
  23. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  24. /******/ threw = false;
  25. /******/ } finally {
  26. /******/ if(threw) delete installedModules[moduleId];
  27. /******/ }
  28. /******/
  29. /******/ // Flag the module as loaded
  30. /******/ module.l = true;
  31. /******/
  32. /******/ // Return the exports of the module
  33. /******/ return module.exports;
  34. /******/ }
  35. /******/
  36. /******/
  37. /******/ // expose the modules object (__webpack_modules__)
  38. /******/ __webpack_require__.m = modules;
  39. /******/
  40. /******/ // expose the module cache
  41. /******/ __webpack_require__.c = installedModules;
  42. /******/
  43. /******/ // define getter function for harmony exports
  44. /******/ __webpack_require__.d = function(exports, name, getter) {
  45. /******/ if(!__webpack_require__.o(exports, name)) {
  46. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  47. /******/ }
  48. /******/ };
  49. /******/
  50. /******/ // define __esModule on exports
  51. /******/ __webpack_require__.r = function(exports) {
  52. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  53. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  54. /******/ }
  55. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  56. /******/ };
  57. /******/
  58. /******/ // create a fake namespace object
  59. /******/ // mode & 1: value is a module id, require it
  60. /******/ // mode & 2: merge all properties of value into the ns
  61. /******/ // mode & 4: return value when already ns object
  62. /******/ // mode & 8|1: behave like require
  63. /******/ __webpack_require__.t = function(value, mode) {
  64. /******/ if(mode & 1) value = __webpack_require__(value);
  65. /******/ if(mode & 8) return value;
  66. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  67. /******/ var ns = Object.create(null);
  68. /******/ __webpack_require__.r(ns);
  69. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  70. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  71. /******/ return ns;
  72. /******/ };
  73. /******/
  74. /******/ // getDefaultExport function for compatibility with non-harmony modules
  75. /******/ __webpack_require__.n = function(module) {
  76. /******/ var getter = module && module.__esModule ?
  77. /******/ function getDefault() { return module['default']; } :
  78. /******/ function getModuleExports() { return module; };
  79. /******/ __webpack_require__.d(getter, 'a', getter);
  80. /******/ return getter;
  81. /******/ };
  82. /******/
  83. /******/ // Object.prototype.hasOwnProperty.call
  84. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  85. /******/
  86. /******/ // __webpack_public_path__
  87. /******/ __webpack_require__.p = "";
  88. /******/
  89. /******/
  90. /******/ // Load entry module and return exports
  91. /******/ return __webpack_require__(__webpack_require__.s = 0);
  92. /******/ })
  93. /************************************************************************/
  94. /******/ ({
  95. /***/ "../next-server/lib/utils":
  96. /*!*****************************************************!*\
  97. !*** external "next/dist/next-server/lib/utils.js" ***!
  98. \*****************************************************/
  99. /*! no static exports found */
  100. /***/ (function(module, exports) {
  101. module.exports = require("next/dist/next-server/lib/utils.js");
  102. /***/ }),
  103. /***/ "./assets/jss/nextjs-material-kit.js":
  104. /*!*******************************************!*\
  105. !*** ./assets/jss/nextjs-material-kit.js ***!
  106. \*******************************************/
  107. /*! 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 */
  108. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  109. "use strict";
  110. __webpack_require__.r(__webpack_exports__);
  111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hexToRGBAlpha", function() { return hexToRGBAlpha; });
  112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "drawerWidth", function() { return drawerWidth; });
  113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "transition", function() { return transition; });
  114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "container", function() { return container; });
  115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "conatinerFluid", function() { return conatinerFluid; });
  116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "boxShadow", function() { return boxShadow; });
  117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "card", function() { return card; });
  118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultFont", function() { return defaultFont; });
  119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryColor", function() { return primaryColor; });
  120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningColor", function() { return warningColor; });
  121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dangerColor", function() { return dangerColor; });
  122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "successColor", function() { return successColor; });
  123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "infoColor", function() { return infoColor; });
  124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "roseColor", function() { return roseColor; });
  125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "grayColor", function() { return grayColor; });
  126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryBoxShadow", function() { return primaryBoxShadow; });
  127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "infoBoxShadow", function() { return infoBoxShadow; });
  128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "successBoxShadow", function() { return successBoxShadow; });
  129. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningBoxShadow", function() { return warningBoxShadow; });
  130. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dangerBoxShadow", function() { return dangerBoxShadow; });
  131. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "roseBoxShadow", function() { return roseBoxShadow; });
  132. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "warningCardHeader", function() { return warningCardHeader; });
  133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "successCardHeader", function() { return successCardHeader; });
  134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "dangerCardHeader", function() { return dangerCardHeader; });
  135. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "infoCardHeader", function() { return infoCardHeader; });
  136. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "primaryCardHeader", function() { return primaryCardHeader; });
  137. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "roseCardHeader", function() { return roseCardHeader; });
  138. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardActions", function() { return cardActions; });
  139. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardHeader", function() { return cardHeader; });
  140. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "defaultBoxShadow", function() { return defaultBoxShadow; });
  141. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "title", function() { return title; });
  142. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardTitle", function() { return cardTitle; });
  143. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardLink", function() { return cardLink; });
  144. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "cardSubtitle", function() { return cardSubtitle; });
  145. 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; }
  146. 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; }
  147. 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; }
  148. const hexColorToRGB = function (hexColor) {
  149. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  150. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  151. return r + r + g + g + b + b;
  152. });
  153. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  154. return hex_array ? {
  155. r: parseInt(hex_array[1], 16),
  156. // 0-255
  157. g: parseInt(hex_array[2], 16),
  158. // 0-255
  159. b: parseInt(hex_array[3], 16) // 0-255
  160. } : null;
  161. };
  162. const hexToRGBAlpha = function (hexColor, alpha) {
  163. let rgb = hexColorToRGB(hexColor);
  164. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  165. };
  166. const drawerWidth = 260;
  167. const transition = {
  168. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  169. };
  170. const conatinerFluid = {
  171. paddingRight: "15px",
  172. paddingLeft: "15px",
  173. marginRight: "auto",
  174. marginLeft: "auto",
  175. width: "100%"
  176. };
  177. const container = _objectSpread({}, conatinerFluid, {
  178. "@media (min-width: 576px)": {
  179. maxWidth: "540px"
  180. },
  181. "@media (min-width: 768px)": {
  182. maxWidth: "720px"
  183. },
  184. "@media (min-width: 992px)": {
  185. maxWidth: "960px"
  186. },
  187. "@media (min-width: 1200px)": {
  188. maxWidth: "1140px"
  189. }
  190. });
  191. const boxShadow = {
  192. 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)"
  193. };
  194. const card = {
  195. display: "inline-block",
  196. position: "relative",
  197. width: "100%",
  198. margin: "25px 0",
  199. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  200. borderRadius: "3px",
  201. color: "rgba(0, 0, 0, 0.87)",
  202. background: "#fff"
  203. };
  204. const defaultFont = {
  205. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  206. fontWeight: "300",
  207. lineHeight: "1.5em"
  208. };
  209. const primaryColor = "#212121";
  210. const warningColor = "#ff9800";
  211. const dangerColor = "#f44336";
  212. const successColor = "#4caf50";
  213. const infoColor = "#212121";
  214. const roseColor = "#e91e63";
  215. const grayColor = "#ffffff";
  216. const primaryBoxShadow = {
  217. 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)}`
  218. };
  219. const infoBoxShadow = {
  220. 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)}`
  221. };
  222. const successBoxShadow = {
  223. 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)}`
  224. };
  225. const warningBoxShadow = {
  226. 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)}`
  227. };
  228. const dangerBoxShadow = {
  229. 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)}`
  230. };
  231. const roseBoxShadow = {
  232. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  233. };
  234. const warningCardHeader = _objectSpread({
  235. color: "#fff",
  236. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  237. }, warningBoxShadow);
  238. const successCardHeader = _objectSpread({
  239. color: "#fff",
  240. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  241. }, successBoxShadow);
  242. const dangerCardHeader = _objectSpread({
  243. color: "#fff",
  244. background: "linear-gradient(60deg, #ef5350, #e53935)"
  245. }, dangerBoxShadow);
  246. const infoCardHeader = _objectSpread({
  247. color: "#fff",
  248. background: "#212121"
  249. }, infoBoxShadow);
  250. const primaryCardHeader = _objectSpread({
  251. color: "#fff",
  252. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  253. }, primaryBoxShadow);
  254. const roseCardHeader = _objectSpread({
  255. color: "#fff",
  256. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  257. }, roseBoxShadow);
  258. const cardActions = _objectSpread({
  259. margin: "0 20px 10px",
  260. paddingTop: "10px",
  261. borderTop: "1px solid #eeeeee",
  262. height: "auto"
  263. }, defaultFont);
  264. const cardHeader = {
  265. margin: "-30px 15px 0",
  266. borderRadius: "3px",
  267. padding: "15px"
  268. };
  269. const defaultBoxShadow = {
  270. border: "0",
  271. borderRadius: "3px",
  272. 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)",
  273. padding: "10px 0",
  274. transition: "all 150ms ease 0s"
  275. };
  276. const title = {
  277. color: "#ffffff",
  278. margin: "1.75rem 0 0.875rem",
  279. textDecoration: "none",
  280. fontWeight: "700",
  281. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  282. };
  283. const cardTitle = _objectSpread({}, title, {
  284. marginTop: ".625rem"
  285. });
  286. const cardLink = {
  287. "& + $cardLink": {
  288. marginLeft: "1.25rem"
  289. }
  290. };
  291. const cardSubtitle = {
  292. marginBottom: "0",
  293. marginTop: "-.375rem"
  294. };
  295. /***/ }),
  296. /***/ "./assets/scss/nextjs-material-kit.scss?v=1.1.0":
  297. /*!******************************************************!*\
  298. !*** ./assets/scss/nextjs-material-kit.scss?v=1.1.0 ***!
  299. \******************************************************/
  300. /*! no static exports found */
  301. /***/ (function(module, exports) {
  302. /***/ }),
  303. /***/ "./components/PageChange/PageChange.js":
  304. /*!*********************************************!*\
  305. !*** ./components/PageChange/PageChange.js ***!
  306. \*********************************************/
  307. /*! exports provided: default */
  308. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  309. "use strict";
  310. __webpack_require__.r(__webpack_exports__);
  311. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return PageChange; });
  312. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
  313. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  314. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @material-ui/core/styles */ "@material-ui/core/styles");
  315. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  316. /* harmony import */ var _material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @material-ui/core/CircularProgress */ "@material-ui/core/CircularProgress");
  317. /* harmony import */ var _material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2__);
  318. /* 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");
  319. var _jsxFileName = "E:\\Project\\tbg-ecomm-nextjs\\components\\PageChange\\PageChange.js";
  320. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  321. 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; }
  322. 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; }
  323. 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; }
  324. // @material-ui/core components
  325. // core components
  326. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])({
  327. progress: {
  328. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_3__["infoColor"],
  329. width: "6rem !important",
  330. height: "6rem !important"
  331. },
  332. wrapperDiv: {
  333. margin: "100px auto",
  334. padding: "0px",
  335. maxWidth: "360px",
  336. textAlign: "center",
  337. position: "relative",
  338. zIndex: "9999",
  339. top: "0"
  340. },
  341. iconWrapper: {
  342. display: "block"
  343. },
  344. title: _objectSpread({}, assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_3__["title"], {
  345. color: "#FFFFFF"
  346. })
  347. });
  348. function PageChange(props) {
  349. const classes = useStyles();
  350. return __jsx("div", {
  351. __self: this,
  352. __source: {
  353. fileName: _jsxFileName,
  354. lineNumber: 37,
  355. columnNumber: 5
  356. }
  357. }, __jsx("div", {
  358. className: classes.wrapperDiv,
  359. __self: this,
  360. __source: {
  361. fileName: _jsxFileName,
  362. lineNumber: 38,
  363. columnNumber: 7
  364. }
  365. }, __jsx("div", {
  366. className: classes.iconWrapper,
  367. __self: this,
  368. __source: {
  369. fileName: _jsxFileName,
  370. lineNumber: 39,
  371. columnNumber: 9
  372. }
  373. }, __jsx(_material_ui_core_CircularProgress__WEBPACK_IMPORTED_MODULE_2___default.a, {
  374. className: classes.progress,
  375. __self: this,
  376. __source: {
  377. fileName: _jsxFileName,
  378. lineNumber: 40,
  379. columnNumber: 11
  380. }
  381. })), __jsx("div", {
  382. align: "center",
  383. color: "white",
  384. __self: this,
  385. __source: {
  386. fileName: _jsxFileName,
  387. lineNumber: 42,
  388. columnNumber: 9
  389. }
  390. }, __jsx("h4", {
  391. __self: this,
  392. __source: {
  393. fileName: _jsxFileName,
  394. lineNumber: 43,
  395. columnNumber: 11
  396. }
  397. }, "Thamrin Group - Generasi ke Generasi"))));
  398. }
  399. /***/ }),
  400. /***/ "./node_modules/next/app.js":
  401. /*!**********************************!*\
  402. !*** ./node_modules/next/app.js ***!
  403. \**********************************/
  404. /*! no static exports found */
  405. /***/ (function(module, exports, __webpack_require__) {
  406. module.exports = __webpack_require__(/*! ./dist/pages/_app */ "./node_modules/next/dist/pages/_app.js")
  407. /***/ }),
  408. /***/ "./node_modules/next/dist/pages/_app.js":
  409. /*!**********************************************!*\
  410. !*** ./node_modules/next/dist/pages/_app.js ***!
  411. \**********************************************/
  412. /*! no static exports found */
  413. /***/ (function(module, exports, __webpack_require__) {
  414. "use strict";
  415. var _interopRequireDefault = __webpack_require__(/*! @babel/runtime/helpers/interopRequireDefault */ "./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js");
  416. exports.__esModule = true;
  417. exports.Container = Container;
  418. exports.createUrl = createUrl;
  419. exports.default = void 0;
  420. var _react = _interopRequireDefault(__webpack_require__(/*! react */ "react"));
  421. var _utils = __webpack_require__(/*! ../next-server/lib/utils */ "../next-server/lib/utils");
  422. exports.AppInitialProps = _utils.AppInitialProps;
  423. /**
  424. * `App` component is used for initialize of pages. It allows for overwriting and full control of the `page` initialization.
  425. * This allows for keeping state between navigation, custom error handling, injecting additional data.
  426. */
  427. async function appGetInitialProps(_ref) {
  428. var {
  429. Component,
  430. ctx
  431. } = _ref;
  432. var pageProps = await (0, _utils.loadGetInitialProps)(Component, ctx);
  433. return {
  434. pageProps
  435. };
  436. }
  437. class App extends _react.default.Component {
  438. // Kept here for backwards compatibility.
  439. // When someone ended App they could call `super.componentDidCatch`.
  440. // @deprecated This method is no longer needed. Errors are caught at the top level
  441. componentDidCatch(error, _errorInfo) {
  442. throw error;
  443. }
  444. render() {
  445. var {
  446. router,
  447. Component,
  448. pageProps,
  449. __N_SSG,
  450. __N_SSP
  451. } = this.props;
  452. return _react.default.createElement(Component, Object.assign({}, pageProps, // we don't add the legacy URL prop if it's using non-legacy
  453. // methods like getStaticProps and getServerSideProps
  454. !(__N_SSG || __N_SSP) ? {
  455. url: createUrl(router)
  456. } : {}));
  457. }
  458. }
  459. exports.default = App;
  460. App.origGetInitialProps = appGetInitialProps;
  461. App.getInitialProps = appGetInitialProps;
  462. var warnContainer;
  463. var warnUrl;
  464. if (true) {
  465. warnContainer = (0, _utils.execOnce)(() => {
  466. console.warn("Warning: the `Container` in `_app` has been deprecated and should be removed. https://err.sh/zeit/next.js/app-container-deprecated");
  467. });
  468. warnUrl = (0, _utils.execOnce)(() => {
  469. console.error("Warning: the 'url' property is deprecated. https://err.sh/zeit/next.js/url-deprecated");
  470. });
  471. } // @deprecated noop for now until removal
  472. function Container(p) {
  473. if (true) warnContainer();
  474. return p.children;
  475. }
  476. function createUrl(router) {
  477. // This is to make sure we don't references the router object at call time
  478. var {
  479. pathname,
  480. asPath,
  481. query
  482. } = router;
  483. return {
  484. get query() {
  485. if (true) warnUrl();
  486. return query;
  487. },
  488. get pathname() {
  489. if (true) warnUrl();
  490. return pathname;
  491. },
  492. get asPath() {
  493. if (true) warnUrl();
  494. return asPath;
  495. },
  496. back: () => {
  497. if (true) warnUrl();
  498. router.back();
  499. },
  500. push: (url, as) => {
  501. if (true) warnUrl();
  502. return router.push(url, as);
  503. },
  504. pushTo: (href, as) => {
  505. if (true) warnUrl();
  506. var pushRoute = as ? href : '';
  507. var pushUrl = as || href;
  508. return router.push(pushRoute, pushUrl);
  509. },
  510. replace: (url, as) => {
  511. if (true) warnUrl();
  512. return router.replace(url, as);
  513. },
  514. replaceTo: (href, as) => {
  515. if (true) warnUrl();
  516. var replaceRoute = as ? href : '';
  517. var replaceUrl = as || href;
  518. return router.replace(replaceRoute, replaceUrl);
  519. }
  520. };
  521. }
  522. /***/ }),
  523. /***/ "./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js":
  524. /*!****************************************************************************************!*\
  525. !*** ./node_modules/next/node_modules/@babel/runtime/helpers/interopRequireDefault.js ***!
  526. \****************************************************************************************/
  527. /*! no static exports found */
  528. /***/ (function(module, exports) {
  529. function _interopRequireDefault(obj) {
  530. return obj && obj.__esModule ? obj : {
  531. "default": obj
  532. };
  533. }
  534. module.exports = _interopRequireDefault;
  535. /***/ }),
  536. /***/ "./pages/_app.js":
  537. /*!***********************!*\
  538. !*** ./pages/_app.js ***!
  539. \***********************/
  540. /*! exports provided: default */
  541. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  542. "use strict";
  543. __webpack_require__.r(__webpack_exports__);
  544. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return MyApp; });
  545. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
  546. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  547. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react-dom */ "react-dom");
  548. /* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_1__);
  549. /* harmony import */ var next_app__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! next/app */ "./node_modules/next/app.js");
  550. /* harmony import */ var next_app__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(next_app__WEBPACK_IMPORTED_MODULE_2__);
  551. /* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! next/head */ "next/head");
  552. /* harmony import */ var next_head__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(next_head__WEBPACK_IMPORTED_MODULE_3__);
  553. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! next/router */ "next/router");
  554. /* harmony import */ var next_router__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(next_router__WEBPACK_IMPORTED_MODULE_4__);
  555. /* harmony import */ var components_PageChange_PageChange_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! components/PageChange/PageChange.js */ "./components/PageChange/PageChange.js");
  556. /* 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");
  557. /* 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__);
  558. var _jsxFileName = "E:\\Project\\tbg-ecomm-nextjs\\pages\\_app.js";
  559. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  560. 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); }
  561. // import styles from "assets/jss/nextjs-material-kit/pages/components.js";
  562. next_router__WEBPACK_IMPORTED_MODULE_4___default.a.events.on("routeChangeStart", url => {
  563. console.log(`Loading: ${url}`);
  564. document.body.classList.add("body-page-transition");
  565. react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.render(__jsx(components_PageChange_PageChange_js__WEBPACK_IMPORTED_MODULE_5__["default"], {
  566. path: url,
  567. __self: undefined,
  568. __source: {
  569. fileName: _jsxFileName,
  570. lineNumber: 14,
  571. columnNumber: 5
  572. }
  573. }), document.getElementById("page-transition"));
  574. });
  575. next_router__WEBPACK_IMPORTED_MODULE_4___default.a.events.on("routeChangeComplete", () => {
  576. react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.unmountComponentAtNode(document.getElementById("page-transition"));
  577. document.body.classList.remove("body-page-transition");
  578. });
  579. next_router__WEBPACK_IMPORTED_MODULE_4___default.a.events.on("routeChangeError", () => {
  580. react_dom__WEBPACK_IMPORTED_MODULE_1___default.a.unmountComponentAtNode(document.getElementById("page-transition"));
  581. document.body.classList.remove("body-page-transition");
  582. });
  583. class MyApp extends next_app__WEBPACK_IMPORTED_MODULE_2___default.a {
  584. static async getInitialProps({
  585. Component,
  586. router,
  587. ctx
  588. }) {
  589. let pageProps = {};
  590. if (Component.getInitialProps) {
  591. pageProps = await Component.getInitialProps(ctx);
  592. }
  593. return {
  594. pageProps
  595. };
  596. }
  597. render() {
  598. const {
  599. Component,
  600. pageProps
  601. } = this.props;
  602. return __jsx(react__WEBPACK_IMPORTED_MODULE_0___default.a.Fragment, {
  603. __self: this,
  604. __source: {
  605. fileName: _jsxFileName,
  606. lineNumber: 40,
  607. columnNumber: 7
  608. }
  609. }, __jsx(next_head__WEBPACK_IMPORTED_MODULE_3___default.a, {
  610. __self: this,
  611. __source: {
  612. fileName: _jsxFileName,
  613. lineNumber: 41,
  614. columnNumber: 9
  615. }
  616. }, __jsx("title", {
  617. __self: this,
  618. __source: {
  619. fileName: _jsxFileName,
  620. lineNumber: 42,
  621. columnNumber: 11
  622. }
  623. }, "Thamrin Group")), __jsx(Component, _extends({}, pageProps, {
  624. __self: this,
  625. __source: {
  626. fileName: _jsxFileName,
  627. lineNumber: 44,
  628. columnNumber: 9
  629. }
  630. })));
  631. }
  632. }
  633. /***/ }),
  634. /***/ 0:
  635. /*!****************************************!*\
  636. !*** multi private-next-pages/_app.js ***!
  637. \****************************************/
  638. /*! no static exports found */
  639. /***/ (function(module, exports, __webpack_require__) {
  640. module.exports = __webpack_require__(/*! private-next-pages/_app.js */"./pages/_app.js");
  641. /***/ }),
  642. /***/ "@material-ui/core/CircularProgress":
  643. /*!*****************************************************!*\
  644. !*** external "@material-ui/core/CircularProgress" ***!
  645. \*****************************************************/
  646. /*! no static exports found */
  647. /***/ (function(module, exports) {
  648. module.exports = require("@material-ui/core/CircularProgress");
  649. /***/ }),
  650. /***/ "@material-ui/core/styles":
  651. /*!*******************************************!*\
  652. !*** external "@material-ui/core/styles" ***!
  653. \*******************************************/
  654. /*! no static exports found */
  655. /***/ (function(module, exports) {
  656. module.exports = require("@material-ui/core/styles");
  657. /***/ }),
  658. /***/ "next/head":
  659. /*!****************************!*\
  660. !*** external "next/head" ***!
  661. \****************************/
  662. /*! no static exports found */
  663. /***/ (function(module, exports) {
  664. module.exports = require("next/head");
  665. /***/ }),
  666. /***/ "next/router":
  667. /*!******************************!*\
  668. !*** external "next/router" ***!
  669. \******************************/
  670. /*! no static exports found */
  671. /***/ (function(module, exports) {
  672. module.exports = require("next/router");
  673. /***/ }),
  674. /***/ "react":
  675. /*!************************!*\
  676. !*** external "react" ***!
  677. \************************/
  678. /*! no static exports found */
  679. /***/ (function(module, exports) {
  680. module.exports = require("react");
  681. /***/ }),
  682. /***/ "react-dom":
  683. /*!****************************!*\
  684. !*** external "react-dom" ***!
  685. \****************************/
  686. /*! no static exports found */
  687. /***/ (function(module, exports) {
  688. module.exports = require("react-dom");
  689. /***/ })
  690. /******/ });
  691. //# sourceMappingURL=_app.js.map