Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

4926 Zeilen
156 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 = 80);
  92. /******/ })
  93. /************************************************************************/
  94. /******/ ({
  95. /***/ "/jkW":
  96. /***/ (function(module, exports, __webpack_require__) {
  97. "use strict";
  98. Object.defineProperty(exports, "__esModule", {
  99. value: true
  100. }); // Identify /[param]/ in route string
  101. const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/;
  102. function isDynamicRoute(route) {
  103. return TEST_ROUTE.test(route);
  104. }
  105. exports.isDynamicRoute = isDynamicRoute;
  106. /***/ }),
  107. /***/ "0Bsm":
  108. /***/ (function(module, exports, __webpack_require__) {
  109. "use strict";
  110. var _interopRequireDefault = __webpack_require__("AroE");
  111. exports.__esModule = true;
  112. exports.default = withRouter;
  113. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  114. var _router = __webpack_require__("nOHt");
  115. function withRouter(ComposedComponent) {
  116. function WithRouterWrapper(props) {
  117. return _react.default.createElement(ComposedComponent, Object.assign({
  118. router: (0, _router.useRouter)()
  119. }, props));
  120. }
  121. WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps // This is needed to allow checking for custom getInitialProps in _app
  122. ;
  123. WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
  124. if (false) { var name; }
  125. return WithRouterWrapper;
  126. }
  127. /***/ }),
  128. /***/ "0G1C":
  129. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  130. "use strict";
  131. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  132. var nextjs_material_kit = __webpack_require__("eDSW");
  133. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/tooltipsStyle.js
  134. const tooltipsStyle = {
  135. tooltip: {
  136. padding: "10px 15px",
  137. minWidth: "130px",
  138. color: "#555555",
  139. lineHeight: "1.7em",
  140. background: "#FFFFFF",
  141. border: "none",
  142. borderRadius: "3px",
  143. boxShadow: "0 8px 10px 1px rgba(0, 0, 0, 0.14), 0 3px 14px 2px rgba(0, 0, 0, 0.12), 0 5px 5px -3px rgba(0, 0, 0, 0.2)",
  144. maxWidth: "200px",
  145. textAlign: "center",
  146. fontFamily: '"Helvetica Neue",Helvetica,Arial,sans-serif',
  147. fontSize: "0.875em",
  148. fontStyle: "normal",
  149. fontWeight: "400",
  150. textShadow: "none",
  151. textTransform: "none",
  152. letterSpacing: "normal",
  153. wordBreak: "normal",
  154. wordSpacing: "normal",
  155. wordWrap: "normal",
  156. whiteSpace: "normal",
  157. lineBreak: "auto"
  158. }
  159. };
  160. /* harmony default export */ var nextjs_material_kit_tooltipsStyle = (tooltipsStyle);
  161. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/headerLinksStyle.js
  162. 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; }
  163. 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; }
  164. 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; }
  165. const headerLinksStyle = theme => _objectSpread({
  166. list: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  167. fontSize: "14px",
  168. margin: 0,
  169. paddingLeft: "0",
  170. listStyle: "none",
  171. paddingTop: "0",
  172. paddingBottom: "0",
  173. color: "inherit"
  174. }),
  175. listItem: {
  176. float: "left",
  177. color: "inherit",
  178. position: "relative",
  179. display: "block",
  180. width: "auto",
  181. margin: "0",
  182. padding: "0",
  183. [theme.breakpoints.down("sm")]: {
  184. width: "100%",
  185. "&:after": {
  186. width: "100%",
  187. content: '""',
  188. display: "block",
  189. height: "1px",
  190. backgroundColor: "#e5e5e5"
  191. }
  192. }
  193. },
  194. listItemText: {
  195. padding: "0 !important"
  196. },
  197. navLink: {
  198. color: "inherit",
  199. position: "relative",
  200. padding: "0.9375rem",
  201. fontWeight: "400",
  202. fontSize: "12px",
  203. textTransform: "uppercase",
  204. borderRadius: "3px",
  205. lineHeight: "20px",
  206. textDecoration: "none",
  207. margin: "0px",
  208. display: "inline-flex",
  209. "&:hover,&:focus": {
  210. color: "inherit",
  211. background: "rgba(200, 200, 200, 0.2)"
  212. },
  213. [theme.breakpoints.down("sm")]: {
  214. width: "calc(100% - 30px)",
  215. marginLeft: "15px",
  216. marginBottom: "8px",
  217. marginTop: "8px",
  218. textAlign: "left",
  219. "& > span:first-child": {
  220. justifyContent: "flex-start"
  221. }
  222. }
  223. },
  224. notificationNavLink: {
  225. [theme.breakpoints.down("md")]: {
  226. top: "0",
  227. margin: "5px 15px"
  228. },
  229. color: "#FFF",
  230. fontWeight: "400",
  231. fontSize: "12px",
  232. textTransform: "uppercase",
  233. lineHeight: "20px",
  234. textDecoration: "none",
  235. margin: "0px",
  236. display: "inline-flex",
  237. top: "4px"
  238. },
  239. registerNavLink: {
  240. [theme.breakpoints.down("md")]: {
  241. top: "0",
  242. margin: "5px 15px"
  243. },
  244. top: "3px",
  245. position: "relative",
  246. fontWeight: "400",
  247. fontSize: "12px",
  248. textTransform: "uppercase",
  249. lineHeight: "20px",
  250. textDecoration: "none",
  251. margin: "0px",
  252. display: "inline-flex"
  253. },
  254. navLinkActive: {
  255. color: "inherit",
  256. backgroundColor: "rgba(255, 255, 255, 0.1)"
  257. },
  258. icons: {
  259. width: "20px",
  260. height: "20px",
  261. marginRight: "3px"
  262. },
  263. socialIcons: {
  264. position: "relative",
  265. fontSize: "20px !important",
  266. marginRight: "4px"
  267. },
  268. dropdownLink: {
  269. "&,&:hover,&:focus": {
  270. color: "inherit",
  271. textDecoration: "none",
  272. display: "block",
  273. padding: "10px 20px"
  274. }
  275. }
  276. }, nextjs_material_kit_tooltipsStyle, {
  277. marginRight5: {
  278. marginRight: "5px"
  279. }
  280. });
  281. /* harmony default export */ var components_headerLinksStyle = __webpack_exports__["a"] = (headerLinksStyle);
  282. /***/ }),
  283. /***/ "0LMq":
  284. /***/ (function(module, exports) {
  285. module.exports = require("@material-ui/core/List");
  286. /***/ }),
  287. /***/ "2kat":
  288. /***/ (function(module, exports) {
  289. module.exports = require("@material-ui/icons");
  290. /***/ }),
  291. /***/ "30mr":
  292. /***/ (function(module, exports) {
  293. module.exports = require("@material-ui/core/TableBody");
  294. /***/ }),
  295. /***/ "31Yn":
  296. /***/ (function(module, exports) {
  297. module.exports = require("@material-ui/core/ClickAwayListener");
  298. /***/ }),
  299. /***/ "3REV":
  300. /***/ (function(module, exports) {
  301. module.exports = require("@material-ui/icons/LocalGroceryStore");
  302. /***/ }),
  303. /***/ "4151":
  304. /***/ (function(module, exports) {
  305. module.exports = require("@material-ui/core/AppBar");
  306. /***/ }),
  307. /***/ "4D1s":
  308. /***/ (function(module, exports) {
  309. module.exports = require("@material-ui/icons/Menu");
  310. /***/ }),
  311. /***/ "5id3":
  312. /***/ (function(module, exports) {
  313. module.exports = require("@material-ui/core/TableContainer");
  314. /***/ }),
  315. /***/ "7KCV":
  316. /***/ (function(module, exports, __webpack_require__) {
  317. var _typeof = __webpack_require__("C+bE");
  318. function _getRequireWildcardCache() {
  319. if (typeof WeakMap !== "function") return null;
  320. var cache = new WeakMap();
  321. _getRequireWildcardCache = function _getRequireWildcardCache() {
  322. return cache;
  323. };
  324. return cache;
  325. }
  326. function _interopRequireWildcard(obj) {
  327. if (obj && obj.__esModule) {
  328. return obj;
  329. }
  330. if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
  331. return {
  332. "default": obj
  333. };
  334. }
  335. var cache = _getRequireWildcardCache();
  336. if (cache && cache.has(obj)) {
  337. return cache.get(obj);
  338. }
  339. var newObj = {};
  340. var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  341. for (var key in obj) {
  342. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  343. var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
  344. if (desc && (desc.get || desc.set)) {
  345. Object.defineProperty(newObj, key, desc);
  346. } else {
  347. newObj[key] = obj[key];
  348. }
  349. }
  350. }
  351. newObj["default"] = obj;
  352. if (cache) {
  353. cache.set(obj, newObj);
  354. }
  355. return newObj;
  356. }
  357. module.exports = _interopRequireWildcard;
  358. /***/ }),
  359. /***/ "7cQc":
  360. /***/ (function(module, exports, __webpack_require__) {
  361. "use strict";
  362. var _apollo = _interopRequireDefault(__webpack_require__("B/3u"));
  363. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  364. async function GetCartProduct(id, token = "") {
  365. var res = await _apollo.default.query(`
  366. query($input: ID!){
  367. products(where:{id:$input})
  368. {
  369. name
  370. price
  371. description
  372. img{
  373. url
  374. }
  375. overview
  376. specification
  377. film
  378. stock
  379. }
  380. } `, token, {
  381. "input": id
  382. });
  383. return res;
  384. }
  385. module.exports = {
  386. GetCartProduct: GetCartProduct
  387. };
  388. /***/ }),
  389. /***/ "7vM9":
  390. /***/ (function(module, exports) {
  391. module.exports = require("@material-ui/core/Icon");
  392. /***/ }),
  393. /***/ "8//M":
  394. /***/ (function(module, exports) {
  395. module.exports = require("@material-ui/core/styles/makeStyles");
  396. /***/ }),
  397. /***/ 80:
  398. /***/ (function(module, exports, __webpack_require__) {
  399. module.exports = __webpack_require__("R+Hf");
  400. /***/ }),
  401. /***/ "8E12":
  402. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  403. "use strict";
  404. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HeaderLinks; });
  405. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  406. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  407. /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("YFqc");
  408. /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_1__);
  409. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("9Pu4");
  410. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__);
  411. /* harmony import */ var _material_ui_core_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("0LMq");
  412. /* harmony import */ var _material_ui_core_List__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_List__WEBPACK_IMPORTED_MODULE_3__);
  413. /* harmony import */ var _material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("c25J");
  414. /* harmony import */ var _material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4__);
  415. /* harmony import */ var _material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("7vM9");
  416. /* harmony import */ var _material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5__);
  417. /* harmony import */ var _material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("3REV");
  418. /* harmony import */ var _material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6__);
  419. /* harmony import */ var _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("2kat");
  420. /* harmony import */ var _material_ui_icons__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons__WEBPACK_IMPORTED_MODULE_7__);
  421. /* harmony import */ var components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("QOEo");
  422. /* harmony import */ var components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("Kg+a");
  423. /* harmony import */ var assets_jss_nextjs_material_kit_components_headerLinksStyle_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("0G1C");
  424. /* harmony import */ var assets_img_tb_png__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("nJn1");
  425. /* harmony import */ var assets_img_tb_png__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(assets_img_tb_png__WEBPACK_IMPORTED_MODULE_11__);
  426. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  427. function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  428. function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
  429. /*eslint-disable*/
  430. // @material-ui/core components
  431. // import People from "@material-ui/core/People";
  432. // @material-ui/icons
  433. // core components
  434. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__["makeStyles"])(assets_jss_nextjs_material_kit_components_headerLinksStyle_js__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"]);
  435. function HeaderLinks(_ref) {
  436. let {
  437. username
  438. } = _ref,
  439. props = _objectWithoutProperties(_ref, ["username"]);
  440. const classes = useStyles();
  441. return __jsx(_material_ui_core_List__WEBPACK_IMPORTED_MODULE_3___default.a, {
  442. className: classes.list
  443. }, __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  444. className: classes.listItem
  445. }, __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  446. href: "/yamaha/home"
  447. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  448. color: "transparent",
  449. className: classes.navLink
  450. }, __jsx("img", {
  451. src: assets_img_tb_png__WEBPACK_IMPORTED_MODULE_11___default.a,
  452. width: "180px"
  453. })))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  454. className: classes.listItem
  455. }, __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  456. href: "/yamaha/home"
  457. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  458. color: "transparent",
  459. className: classes.navLink,
  460. style: {
  461. marginTop: "10px"
  462. }
  463. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  464. className: classes.icons
  465. }, "home"), " Home"))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  466. className: classes.listItem,
  467. style: {
  468. marginTop: "10px"
  469. }
  470. }, __jsx(components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], {
  471. noLiPadding: true,
  472. navDropdown: true,
  473. buttonText: "Product",
  474. buttonProps: {
  475. className: classes.navLink,
  476. color: "transparent"
  477. },
  478. buttonIcon: _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__["Apps"],
  479. dropdownList: [__jsx("a", {
  480. href: "/yamaha/product/product",
  481. className: classes.dropdownLink
  482. }, "Motor"), __jsx("a", {
  483. href: "/yamaha/sparepart/sparepart",
  484. className: classes.dropdownLink
  485. }, "Sparepart & Accessories"), // <a href="/yamaha/product/yamalube" className={classes.dropdownLink}>
  486. // Yamalube
  487. // </a>,
  488. // <a href="/yamaha/product/helmet" className={classes.dropdownLink}>
  489. // Helmet
  490. // </a>,
  491. // <a href="/yamaha/product/apparel" className={classes.dropdownLink}>
  492. // Apparel
  493. // </a>,
  494. // <a
  495. // href="/yamaha/product/accessories"
  496. // className={classes.dropdownLink}
  497. // >
  498. // Accessories
  499. // </a>,
  500. __jsx("a", {
  501. href: "https://booking.thamrin.co.id/",
  502. className: classes.dropdownLink
  503. }, "Service"), __jsx("a", {
  504. href: "/yamaha/dealers",
  505. className: classes.dropdownLink
  506. }, "Dealers") // <a href="/yamaha/order/order" className={classes.dropdownLink}>
  507. // Dealers
  508. // </a>,
  509. ]
  510. })), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  511. className: classes.listItem,
  512. style: {
  513. marginTop: "10px"
  514. }
  515. }, __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  516. href: "/yamaha/latest_news/latestnews"
  517. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  518. color: "transparent",
  519. className: classes.navLink
  520. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  521. className: classes.icons
  522. }, "event"), " Latest News"))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  523. className: classes.listItem,
  524. style: {
  525. marginTop: "10px"
  526. }
  527. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  528. href: "/yamaha/carrer/carrer",
  529. color: "transparent",
  530. className: classes.navLink
  531. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  532. className: classes.icons
  533. }, "wallet_travel"), " Career")), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  534. className: classes.listItem,
  535. style: {
  536. marginTop: "10px"
  537. }
  538. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  539. href: "/yamaha/abous_us/aboutus",
  540. color: "transparent",
  541. className: classes.navLink
  542. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  543. className: classes.icons
  544. }, "account_balance"), " About Us")), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  545. className: classes.listItem,
  546. style: {
  547. marginTop: "10px"
  548. }
  549. }, !username || username == "" ? __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  550. href: "/yamaha/login",
  551. className: classes.registerNavLink,
  552. color: "info",
  553. round: true
  554. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  555. className: classes.icons
  556. }, "input"), " Login") : __jsx(components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], {
  557. noLiPadding: true,
  558. navDropdown: true,
  559. buttonText: username.length > 12 ? username.substring(0, 9) + ".." : username,
  560. buttonProps: {
  561. className: classes.navLink,
  562. color: "transparent"
  563. },
  564. buttonIcon: _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__["Person"],
  565. dropdownList: [__jsx("div", {
  566. onClick: async e => {
  567. e.preventDefault();
  568. fetch("/api/auth/logout", {
  569. method: "POST",
  570. headers: {
  571. "Content-Type": "application/json"
  572. },
  573. body: JSON.stringify({
  574. p: "YAMAHA"
  575. })
  576. }).then(res => {
  577. //if (res.ok) {
  578. window.location.href = "../yamaha/home";
  579. /*}
  580. else{
  581. }*/
  582. });
  583. }
  584. }, __jsx("a", {
  585. className: classes.dropdownLink
  586. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  587. className: classes.icons
  588. }, "exit_to_app"), " Logout")), __jsx("div", null, __jsx("a", {
  589. className: classes.dropdownLink,
  590. href: "/yamaha/profile/profile"
  591. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  592. className: classes.icons
  593. }, "people"), " Profile")), __jsx("div", null, __jsx("a", {
  594. className: classes.dropdownLink,
  595. href: "/yamaha/order/order"
  596. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  597. className: classes.icons
  598. }, "shopping_cart"), " Pesanan Saya")) // <a href="/yamaha/profile/profile" className={classes.dropdownLink}>Profile</a>,
  599. ]
  600. })));
  601. }
  602. /***/ }),
  603. /***/ "8x5e":
  604. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  605. "use strict";
  606. // EXPORTS
  607. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Header; });
  608. // EXTERNAL MODULE: external "react"
  609. var external_react_ = __webpack_require__("cDcd");
  610. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  611. // EXTERNAL MODULE: ./node_modules/next/link.js
  612. var next_link = __webpack_require__("YFqc");
  613. var link_default = /*#__PURE__*/__webpack_require__.n(next_link);
  614. // EXTERNAL MODULE: external "classnames"
  615. var external_classnames_ = __webpack_require__("K2gz");
  616. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  617. // EXTERNAL MODULE: external "@material-ui/core/styles"
  618. var styles_ = __webpack_require__("9Pu4");
  619. // EXTERNAL MODULE: external "@material-ui/core/AppBar"
  620. var AppBar_ = __webpack_require__("4151");
  621. var AppBar_default = /*#__PURE__*/__webpack_require__.n(AppBar_);
  622. // EXTERNAL MODULE: external "@material-ui/core/Toolbar"
  623. var Toolbar_ = __webpack_require__("Ms0O");
  624. var Toolbar_default = /*#__PURE__*/__webpack_require__.n(Toolbar_);
  625. // EXTERNAL MODULE: external "@material-ui/core/IconButton"
  626. var IconButton_ = __webpack_require__("EmCc");
  627. var IconButton_default = /*#__PURE__*/__webpack_require__.n(IconButton_);
  628. // EXTERNAL MODULE: external "@material-ui/core/Button"
  629. var Button_ = __webpack_require__("Wh1t");
  630. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  631. // EXTERNAL MODULE: external "@material-ui/core/Hidden"
  632. var Hidden_ = __webpack_require__("Y8uC");
  633. var Hidden_default = /*#__PURE__*/__webpack_require__.n(Hidden_);
  634. // EXTERNAL MODULE: external "@material-ui/core/Drawer"
  635. var Drawer_ = __webpack_require__("Q01v");
  636. var Drawer_default = /*#__PURE__*/__webpack_require__.n(Drawer_);
  637. // EXTERNAL MODULE: external "@material-ui/icons/Menu"
  638. var Menu_ = __webpack_require__("4D1s");
  639. var Menu_default = /*#__PURE__*/__webpack_require__.n(Menu_);
  640. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  641. var nextjs_material_kit = __webpack_require__("eDSW");
  642. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/headerStyle.js
  643. 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; }
  644. 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; }
  645. 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; }
  646. const headerStyle = {
  647. appBar: {
  648. display: "flex",
  649. border: "0",
  650. borderRadius: "3px",
  651. padding: "0.625rem 0",
  652. marginBottom: "20px",
  653. color: "#555",
  654. width: "100%",
  655. backgroundColor: "#000",
  656. boxShadow: "0 4px 18px 0px rgba(0, 0, 0, 0.12), 0 7px 10px -5px rgba(0, 0, 0, 0.15)",
  657. transition: "all 150ms ease 0s",
  658. alignItems: "center",
  659. flexFlow: "row nowrap",
  660. justifyContent: "flex-start",
  661. position: "relative",
  662. zIndex: "unset"
  663. },
  664. absolute: {
  665. position: "absolute",
  666. zIndex: "1100"
  667. },
  668. fixed: {
  669. position: "fixed",
  670. zIndex: "1100"
  671. },
  672. container: _objectSpread({}, nextjs_material_kit["c" /* container */], {
  673. minHeight: "50px",
  674. flex: "1",
  675. alignItems: "center",
  676. justifyContent: "space-between",
  677. display: "flex",
  678. flexWrap: "nowrap"
  679. }),
  680. flex: {
  681. flex: 1
  682. },
  683. title: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  684. lineHeight: "30px",
  685. fontSize: "18px",
  686. borderRadius: "3px",
  687. textTransform: "none",
  688. color: "inherit",
  689. padding: "8px 16px",
  690. letterSpacing: "unset",
  691. "&:hover,&:focus": {
  692. color: "inherit",
  693. background: "transparent"
  694. }
  695. }),
  696. appResponsive: {
  697. margin: "20px 10px"
  698. },
  699. primary: {
  700. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  701. color: "#FFFFFF",
  702. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.46)}`
  703. },
  704. info: {
  705. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  706. color: "#FFFFFF",
  707. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["m" /* infoColor */], 0.46)}`
  708. },
  709. success: {
  710. backgroundColor: nextjs_material_kit["u" /* successColor */],
  711. color: "#FFFFFF",
  712. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["u" /* successColor */], 0.46)}`
  713. },
  714. warning: {
  715. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  716. color: "#FFFFFF",
  717. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["z" /* warningColor */], 0.46)}`
  718. },
  719. danger: {
  720. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  721. color: "#FFFFFF",
  722. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["f" /* dangerColor */], 0.46)}`
  723. },
  724. rose: {
  725. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  726. color: "#FFFFFF",
  727. boxShadow: `0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["r" /* roseColor */], 0.46)}`
  728. },
  729. transparent: {
  730. backgroundColor: "transparent !important",
  731. boxShadow: "none",
  732. paddingTop: "25px",
  733. color: "#FFFFFF"
  734. },
  735. dark: {
  736. color: "#FFFFFF",
  737. backgroundColor: "#212121 !important",
  738. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px rgba(33, 33, 33, 0.46)"
  739. },
  740. white: {
  741. border: "0",
  742. padding: "0.625rem 0",
  743. marginBottom: "20px",
  744. color: "#555",
  745. backgroundColor: "#fff !important",
  746. boxShadow: "0 4px 18px 0px rgba(0, 0, 0, 0.12), 0 7px 10px -5px rgba(0, 0, 0, 0.15)"
  747. },
  748. drawerPaper: _objectSpread({
  749. border: "none",
  750. bottom: "0",
  751. transitionProperty: "top, bottom, width",
  752. transitionDuration: ".2s, .2s, .35s",
  753. transitionTimingFunction: "linear, linear, ease",
  754. width: nextjs_material_kit["h" /* drawerWidth */]
  755. }, nextjs_material_kit["a" /* boxShadow */], {
  756. position: "fixed",
  757. display: "block",
  758. top: "0",
  759. height: "100vh",
  760. right: "0",
  761. left: "auto",
  762. visibility: "visible",
  763. overflowY: "visible",
  764. borderTop: "none",
  765. textAlign: "left",
  766. paddingRight: "0px",
  767. paddingLeft: "0"
  768. }, nextjs_material_kit["w" /* transition */])
  769. };
  770. /* harmony default export */ var components_headerStyle = (headerStyle);
  771. // CONCATENATED MODULE: ./components/Header/Header.js
  772. var __jsx = external_react_default.a.createElement;
  773. // nodejs library that concatenates classes
  774. // nodejs library to set properties for components
  775. // @material-ui/core components
  776. // @material-ui/icons
  777. // core components
  778. const useStyles = Object(styles_["makeStyles"])(components_headerStyle);
  779. function Header(props) {
  780. const classes = useStyles();
  781. const [mobileOpen, setMobileOpen] = external_react_default.a.useState(false);
  782. external_react_default.a.useEffect(() => {
  783. if (props.changeColorOnScroll) {
  784. window.addEventListener("scroll", headerColorChange);
  785. }
  786. return function cleanup() {
  787. if (props.changeColorOnScroll) {
  788. window.removeEventListener("scroll", headerColorChange);
  789. }
  790. };
  791. });
  792. const handleDrawerToggle = () => {
  793. setMobileOpen(!mobileOpen);
  794. };
  795. const headerColorChange = () => {
  796. const {
  797. color,
  798. changeColorOnScroll
  799. } = props;
  800. const windowsScrollTop = window.pageYOffset;
  801. if (windowsScrollTop > changeColorOnScroll.height) {
  802. document.body.getElementsByTagName("header")[0].classList.remove(classes[color]);
  803. document.body.getElementsByTagName("header")[0].classList.add(classes[changeColorOnScroll.color]);
  804. } else {
  805. document.body.getElementsByTagName("header")[0].classList.add(classes[color]);
  806. document.body.getElementsByTagName("header")[0].classList.remove(classes[changeColorOnScroll.color]);
  807. }
  808. };
  809. const {
  810. color,
  811. rightLinks,
  812. leftLinks,
  813. brand,
  814. fixed,
  815. absolute
  816. } = props;
  817. const appBarClasses = external_classnames_default()({
  818. [classes.appBar]: true,
  819. [classes[color]]: color,
  820. [classes.absolute]: absolute,
  821. [classes.fixed]: fixed
  822. });
  823. const brandComponent = __jsx(link_default.a, {
  824. href: "/components",
  825. as: "/components"
  826. }, __jsx(Button_default.a, {
  827. className: classes.title
  828. }, brand));
  829. return __jsx(AppBar_default.a, {
  830. className: appBarClasses
  831. }, __jsx(Toolbar_default.a, {
  832. className: classes.container
  833. }, leftLinks !== undefined ? brandComponent : null, __jsx("div", {
  834. className: classes.flex
  835. }, leftLinks !== undefined ? __jsx(Hidden_default.a, {
  836. smDown: true,
  837. implementation: "css"
  838. }, leftLinks) : brandComponent), __jsx(Hidden_default.a, {
  839. smDown: true,
  840. implementation: "css"
  841. }, rightLinks), __jsx(Hidden_default.a, {
  842. mdUp: true
  843. }, __jsx(IconButton_default.a, {
  844. color: "inherit",
  845. "aria-label": "open drawer",
  846. onClick: handleDrawerToggle
  847. }, __jsx(Menu_default.a, null)))), __jsx(Hidden_default.a, {
  848. mdUp: true,
  849. implementation: "js"
  850. }, __jsx(Drawer_default.a, {
  851. variant: "temporary",
  852. anchor: "right",
  853. open: mobileOpen,
  854. classes: {
  855. paper: classes.drawerPaper
  856. },
  857. onClose: handleDrawerToggle
  858. }, __jsx("div", {
  859. className: classes.appResponsive
  860. }, leftLinks, rightLinks))));
  861. }
  862. Header.defaultProp = {
  863. color: "black"
  864. };
  865. /***/ }),
  866. /***/ "9Pu4":
  867. /***/ (function(module, exports) {
  868. module.exports = require("@material-ui/core/styles");
  869. /***/ }),
  870. /***/ "A2So":
  871. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  872. "use strict";
  873. // EXPORTS
  874. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Card; });
  875. // EXTERNAL MODULE: external "react"
  876. var external_react_ = __webpack_require__("cDcd");
  877. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  878. // EXTERNAL MODULE: external "classnames"
  879. var external_classnames_ = __webpack_require__("K2gz");
  880. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  881. // EXTERNAL MODULE: external "@material-ui/core/styles"
  882. var styles_ = __webpack_require__("9Pu4");
  883. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardStyle.js
  884. const cardStyle = {
  885. card: {
  886. border: "0",
  887. marginBottom: "30px",
  888. marginTop: "30px",
  889. borderRadius: "6px",
  890. color: "rgba(0, 0, 0, 0.87)",
  891. background: "#fff",
  892. width: "100%",
  893. boxShadow: "0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12)",
  894. position: "relative",
  895. display: "flex",
  896. flexDirection: "column",
  897. minWidth: "0",
  898. wordWrap: "break-word",
  899. fontSize: ".875rem",
  900. transition: "all 300ms linear"
  901. },
  902. cardPlain: {
  903. background: "transparent",
  904. boxShadow: "none"
  905. },
  906. cardCarousel: {
  907. overflow: "hidden"
  908. }
  909. };
  910. /* harmony default export */ var components_cardStyle = (cardStyle);
  911. // CONCATENATED MODULE: ./components/Card/Card.js
  912. var __jsx = external_react_default.a.createElement;
  913. 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); }
  914. function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  915. function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
  916. // nodejs library that concatenates classes
  917. // nodejs library to set properties for components
  918. // @material-ui/core components
  919. // @material-ui/icons
  920. // core components
  921. const useStyles = Object(styles_["makeStyles"])(components_cardStyle);
  922. function Card(props) {
  923. const classes = useStyles();
  924. const {
  925. className,
  926. children,
  927. plain,
  928. carousel
  929. } = props,
  930. rest = _objectWithoutProperties(props, ["className", "children", "plain", "carousel"]);
  931. const cardClasses = external_classnames_default()({
  932. [classes.card]: true,
  933. [classes.cardPlain]: plain,
  934. [classes.cardCarousel]: carousel,
  935. [className]: className !== undefined
  936. });
  937. return __jsx("div", _extends({
  938. className: cardClasses
  939. }, rest), children);
  940. }
  941. /***/ }),
  942. /***/ "Ai9N":
  943. /***/ (function(module, exports) {
  944. module.exports = require("@material-ui/core/TableCell");
  945. /***/ }),
  946. /***/ "AroE":
  947. /***/ (function(module, exports) {
  948. function _interopRequireDefault(obj) {
  949. return obj && obj.__esModule ? obj : {
  950. "default": obj
  951. };
  952. }
  953. module.exports = _interopRequireDefault;
  954. /***/ }),
  955. /***/ "B/3u":
  956. /***/ (function(module, exports, __webpack_require__) {
  957. "use strict";
  958. var _client = __webpack_require__("z+8S");
  959. var _apolloConfig = _interopRequireDefault(__webpack_require__("bx/+"));
  960. var _crossFetch = _interopRequireDefault(__webpack_require__("CCqr"));
  961. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  962. function errorHandler(object) {
  963. return object.graphQLErrors.length != 0 ? object.graphQLErrors[0].message : object.networkError && object.networkError.result ? object.networkError.result.errors.join(" ; ") : object.networkError ? object.networkError[Object.keys(object.networkError)[0]].toString() : "Fetch failed";
  964. }
  965. function initApollo(token) {
  966. const httpLink = (0, _client.createHttpLink)({
  967. uri: _apolloConfig.default.graphql_uri,
  968. fetch: _crossFetch.default,
  969. headers: token != "" ? {
  970. Authorization: `Bearer ${token}`
  971. } : null
  972. });
  973. return new _client.ApolloClient({
  974. ssrMode: false,
  975. cache: new _client.InMemoryCache({
  976. addTypename: false
  977. }),
  978. link: httpLink
  979. });
  980. }
  981. async function query(query, token = "", variables = {}, cache = false) {
  982. const client = initApollo(token);
  983. var res;
  984. try {
  985. var sql = await client.query({
  986. query: (0, _client.gql)`
  987. ${query}
  988. `,
  989. variables: variables,
  990. fetchPolicy: cache ? "cache-first" : "no-cache"
  991. });
  992. res = {
  993. STATUS: 1,
  994. DATA: sql.data
  995. };
  996. } catch (e) {
  997. res = {
  998. STATUS: 0,
  999. DATA: errorHandler(e)
  1000. };
  1001. }
  1002. return res;
  1003. }
  1004. async function mutation(mutation, token = "", variables = {}) {
  1005. const client = initApollo(token);
  1006. var res;
  1007. try {
  1008. var sql = await client.mutate({
  1009. mutation: (0, _client.gql)`
  1010. ${mutation}
  1011. `,
  1012. variables: variables
  1013. });
  1014. res = {
  1015. STATUS: 1,
  1016. DATA: sql.data
  1017. };
  1018. } catch (e) {
  1019. console.log(e.networkError.result);
  1020. res = {
  1021. STATUS: 0,
  1022. DATA: errorHandler(e)
  1023. };
  1024. }
  1025. return res;
  1026. }
  1027. module.exports = {
  1028. query: query,
  1029. mutation: mutation
  1030. };
  1031. /***/ }),
  1032. /***/ "BjFw":
  1033. /***/ (function(module, exports) {
  1034. module.exports = require("@material-ui/core/Table");
  1035. /***/ }),
  1036. /***/ "C+bE":
  1037. /***/ (function(module, exports) {
  1038. function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof2 = function _typeof2(obj) { return typeof obj; }; } else { _typeof2 = function _typeof2(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof2(obj); }
  1039. function _typeof(obj) {
  1040. if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
  1041. module.exports = _typeof = function _typeof(obj) {
  1042. return _typeof2(obj);
  1043. };
  1044. } else {
  1045. module.exports = _typeof = function _typeof(obj) {
  1046. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
  1047. };
  1048. }
  1049. return _typeof(obj);
  1050. }
  1051. module.exports = _typeof;
  1052. /***/ }),
  1053. /***/ "CCqr":
  1054. /***/ (function(module, exports) {
  1055. module.exports = require("cross-fetch");
  1056. /***/ }),
  1057. /***/ "EmCc":
  1058. /***/ (function(module, exports) {
  1059. module.exports = require("@material-ui/core/IconButton");
  1060. /***/ }),
  1061. /***/ "Fm7H":
  1062. /***/ (function(module, exports) {
  1063. module.exports = require("@material-ui/icons/Favorite");
  1064. /***/ }),
  1065. /***/ "FoiA":
  1066. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1067. "use strict";
  1068. // EXPORTS
  1069. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ SnackbarContent; });
  1070. // EXTERNAL MODULE: external "react"
  1071. var external_react_ = __webpack_require__("cDcd");
  1072. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1073. // EXTERNAL MODULE: external "prop-types"
  1074. var external_prop_types_ = __webpack_require__("rf6O");
  1075. var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
  1076. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1077. var styles_ = __webpack_require__("9Pu4");
  1078. // EXTERNAL MODULE: external "@material-ui/core/SnackbarContent"
  1079. var SnackbarContent_ = __webpack_require__("n1EF");
  1080. var SnackbarContent_default = /*#__PURE__*/__webpack_require__.n(SnackbarContent_);
  1081. // EXTERNAL MODULE: external "@material-ui/core/IconButton"
  1082. var IconButton_ = __webpack_require__("EmCc");
  1083. var IconButton_default = /*#__PURE__*/__webpack_require__.n(IconButton_);
  1084. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  1085. var Icon_ = __webpack_require__("7vM9");
  1086. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  1087. // EXTERNAL MODULE: external "@material-ui/icons/Close"
  1088. var Close_ = __webpack_require__("j08L");
  1089. var Close_default = /*#__PURE__*/__webpack_require__.n(Close_);
  1090. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1091. var nextjs_material_kit = __webpack_require__("eDSW");
  1092. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/snackbarContentStyle.js
  1093. 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; }
  1094. 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; }
  1095. 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; }
  1096. const snackbarContentStyle = {
  1097. root: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  1098. position: "relative",
  1099. padding: "20px 15px",
  1100. lineHeight: "20px",
  1101. marginBottom: "20px",
  1102. fontSize: "14px",
  1103. backgroundColor: "white",
  1104. color: "#555555",
  1105. borderRadius: "0px",
  1106. maxWidth: "100%",
  1107. minWidth: "auto",
  1108. boxShadow: "0 12px 20px -10px rgba(255, 255, 255, 0.28), 0 4px 20px 0px rgba(0, 0, 0, 0.12), 0 7px 8px -5px rgba(255, 255, 255, 0.2)"
  1109. }),
  1110. info: _objectSpread({
  1111. backgroundColor: "#212121",
  1112. color: "#ffffff"
  1113. }, nextjs_material_kit["k" /* infoBoxShadow */]),
  1114. success: _objectSpread({
  1115. backgroundColor: "#5cb860",
  1116. color: "#ffffff"
  1117. }, nextjs_material_kit["s" /* successBoxShadow */]),
  1118. warning: _objectSpread({
  1119. backgroundColor: "#ffa21a",
  1120. color: "#ffffff"
  1121. }, nextjs_material_kit["x" /* warningBoxShadow */]),
  1122. danger: _objectSpread({
  1123. backgroundColor: "#f55a4e",
  1124. color: "#ffffff"
  1125. }, nextjs_material_kit["d" /* dangerBoxShadow */]),
  1126. primary: _objectSpread({
  1127. backgroundColor: "#af2cc5",
  1128. color: "#ffffff"
  1129. }, nextjs_material_kit["n" /* primaryBoxShadow */]),
  1130. message: {
  1131. padding: "0",
  1132. display: "block",
  1133. maxWidth: "89%",
  1134. "&,& *": {
  1135. letterSpacing: "normal"
  1136. }
  1137. },
  1138. close: {
  1139. width: "14px",
  1140. height: "14px"
  1141. },
  1142. iconButton: {
  1143. width: "24px",
  1144. height: "24px",
  1145. float: "right",
  1146. fontSize: "1.5rem",
  1147. fontWeight: "500",
  1148. lineHeight: "1",
  1149. position: "absolute",
  1150. right: "-4px",
  1151. top: "0",
  1152. padding: "0"
  1153. },
  1154. icon: {
  1155. display: "block",
  1156. float: "left",
  1157. marginRight: "1.071rem"
  1158. },
  1159. container: _objectSpread({}, nextjs_material_kit["c" /* container */], {
  1160. position: "relative"
  1161. })
  1162. };
  1163. /* harmony default export */ var components_snackbarContentStyle = (snackbarContentStyle);
  1164. // CONCATENATED MODULE: ./components/Snackbar/SnackbarContent.js
  1165. var __jsx = external_react_default.a.createElement;
  1166. // nodejs library to set properties for components
  1167. // @material-ui/core components
  1168. // @material-ui/icons
  1169. // core components
  1170. const useStyles = Object(styles_["makeStyles"])(components_snackbarContentStyle);
  1171. function SnackbarContent(props) {
  1172. const {
  1173. message,
  1174. color,
  1175. close,
  1176. icon
  1177. } = props;
  1178. const classes = useStyles();
  1179. var action = [];
  1180. const closeAlert = () => {
  1181. setAlert(null);
  1182. };
  1183. if (close !== undefined) {
  1184. action = [__jsx(IconButton_default.a, {
  1185. className: classes.iconButton,
  1186. key: "close",
  1187. "aria-label": "Close",
  1188. color: "inherit",
  1189. onClick: closeAlert
  1190. }, __jsx(Close_default.a, {
  1191. className: classes.close
  1192. }))];
  1193. }
  1194. let snackIcon = null;
  1195. switch (typeof icon) {
  1196. case "object":
  1197. snackIcon = __jsx(props.icon, {
  1198. className: classes.icon
  1199. });
  1200. break;
  1201. case "string":
  1202. snackIcon = __jsx(Icon_default.a, {
  1203. className: classes.icon
  1204. }, props.icon);
  1205. break;
  1206. default:
  1207. snackIcon = null;
  1208. break;
  1209. }
  1210. const [alert, setAlert] = external_react_default.a.useState(__jsx(SnackbarContent_default.a, {
  1211. message: __jsx("div", null, snackIcon, message, close !== undefined ? action : null),
  1212. classes: {
  1213. root: classes.root + " " + classes[color],
  1214. message: classes.message + " " + classes.container
  1215. }
  1216. }));
  1217. return alert;
  1218. }
  1219. SnackbarContent.propTypes = {
  1220. message: external_prop_types_default.a.node.isRequired,
  1221. color: external_prop_types_default.a.oneOf(["info", "success", "warning", "danger", "primary"]),
  1222. close: external_prop_types_default.a.bool,
  1223. icon: external_prop_types_default.a.oneOfType([external_prop_types_default.a.object, external_prop_types_default.a.string])
  1224. };
  1225. /***/ }),
  1226. /***/ "HXcA":
  1227. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1228. "use strict";
  1229. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Footer; });
  1230. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  1231. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  1232. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("K2gz");
  1233. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  1234. /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("KKbo");
  1235. /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__);
  1236. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("9Pu4");
  1237. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__);
  1238. /* harmony import */ var _material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Fm7H");
  1239. /* harmony import */ var _material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4__);
  1240. /* harmony import */ var components_Grid_GridContainer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("mtPR");
  1241. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("JQ2V");
  1242. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6__);
  1243. /* harmony import */ var components_Grid_GridItem_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("i4t8");
  1244. /* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("qt1I");
  1245. /* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8__);
  1246. /* harmony import */ var components_Card_Card_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("A2So");
  1247. /* harmony import */ var assets_jss_nextjs_material_kit_components_footerStyle_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("oLCs");
  1248. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  1249. // import StyleYamaha from "components/Footer/footersosmed.css";
  1250. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__["makeStyles"])(assets_jss_nextjs_material_kit_components_footerStyle_js__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"]);
  1251. function Footer(props) {
  1252. const classes = useStyles();
  1253. const {
  1254. whiteFont
  1255. } = props;
  1256. const footerClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
  1257. [classes.footer]: true,
  1258. [classes.footerWhiteFont]: whiteFont
  1259. });
  1260. const aClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
  1261. [classes.a]: true,
  1262. [classes.footerWhiteFont]: whiteFont
  1263. });
  1264. return __jsx(components_Grid_GridItem_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], {
  1265. xs: 12
  1266. }, __jsx("link", {
  1267. rel: "stylesheet",
  1268. href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
  1269. }), __jsx("br", null), __jsx("br", null), __jsx("div", {
  1270. align: "center"
  1271. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1272. className: classes.list
  1273. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1274. className: classes.inlineBlock
  1275. }, __jsx("a", {
  1276. href: "/yamaha/home",
  1277. className: classes.block
  1278. }, " Home ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1279. className: classes.inlineBlock
  1280. }, __jsx("a", {
  1281. href: "/yamaha/product/product",
  1282. className: classes.block
  1283. }, " Motor ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1284. className: classes.inlineBlock
  1285. }, __jsx("a", {
  1286. href: "/yamaha/product/ygp",
  1287. className: classes.block
  1288. }, " YGP ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1289. className: classes.inlineBlock
  1290. }, __jsx("a", {
  1291. href: "/yamaha/product/yamalube",
  1292. className: classes.block
  1293. }, " Yamalube ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1294. className: classes.inlineBlock
  1295. }, __jsx("a", {
  1296. href: "/yamaha/product/apparel",
  1297. className: classes.block
  1298. }, " Apparel ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1299. className: classes.inlineBlock
  1300. }, __jsx("a", {
  1301. href: "/yamaha/product/helmet",
  1302. className: classes.block
  1303. }, " Helmet ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1304. className: classes.inlineBlock
  1305. }, __jsx("a", {
  1306. href: "/yamaha/product/accessories",
  1307. className: classes.block
  1308. }, " Accessories ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1309. className: classes.inlineBlock
  1310. }, __jsx("a", {
  1311. href: "/yamaha/product/service",
  1312. className: classes.block
  1313. }, " Service ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1314. className: classes.inlineBlock
  1315. }, __jsx("a", {
  1316. href: "/yamaha/product/dealer",
  1317. className: classes.block
  1318. }, " Dealer ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1319. className: classes.inlineBlock
  1320. }, __jsx("a", {
  1321. href: "/yamaha/latestsnews",
  1322. className: classes.block
  1323. }, " Latest News ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1324. className: classes.inlineBlock
  1325. }, __jsx("a", {
  1326. href: "/yamaha/carrer",
  1327. className: classes.block
  1328. }, " Carrer ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1329. className: classes.inlineBlock
  1330. }, __jsx("a", {
  1331. href: "/yamaha/about_us/aboutus",
  1332. className: classes.block
  1333. }, " About Us ")))), __jsx("div", {
  1334. align: "center"
  1335. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1336. className: classes.list
  1337. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1338. className: classes.inlineBlock,
  1339. style: {
  1340. padding: "10px"
  1341. }
  1342. }, __jsx("a", {
  1343. href: "#",
  1344. class: "fa fa-facebook"
  1345. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1346. className: classes.inlineBlock,
  1347. style: {
  1348. padding: "10px"
  1349. }
  1350. }, __jsx("a", {
  1351. href: "#",
  1352. class: "fa fa-instagram"
  1353. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1354. className: classes.inlineBlock,
  1355. style: {
  1356. padding: "10px"
  1357. }
  1358. }, __jsx("a", {
  1359. href: "#",
  1360. class: "fa fa-twitter"
  1361. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1362. className: classes.inlineBlock,
  1363. style: {
  1364. padding: "10px"
  1365. }
  1366. }, __jsx("a", {
  1367. href: "#",
  1368. class: "fa fa-youtube"
  1369. })))), __jsx("br", null), __jsx("br", null), __jsx("div", {
  1370. align: "center"
  1371. }, "\xA9 ", 1900 + new Date().getYear(), " , All Right Reserved", " ", " by", " ", " @Thamrin Brothers"), __jsx("br", null), __jsx("br", null));
  1372. }
  1373. /***/ }),
  1374. /***/ "IbbU":
  1375. /***/ (function(module, exports) {
  1376. module.exports = require("@material-ui/core/TextField");
  1377. /***/ }),
  1378. /***/ "JQ2V":
  1379. /***/ (function(module, exports) {
  1380. module.exports = require("@material-ui/core/Grid");
  1381. /***/ }),
  1382. /***/ "K2gz":
  1383. /***/ (function(module, exports) {
  1384. module.exports = require("classnames");
  1385. /***/ }),
  1386. /***/ "KKbo":
  1387. /***/ (function(module, exports) {
  1388. module.exports = require("@material-ui/core");
  1389. /***/ }),
  1390. /***/ "Kg+a":
  1391. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1392. "use strict";
  1393. // EXTERNAL MODULE: external "react"
  1394. var external_react_ = __webpack_require__("cDcd");
  1395. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1396. // EXTERNAL MODULE: external "classnames"
  1397. var external_classnames_ = __webpack_require__("K2gz");
  1398. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1399. // EXTERNAL MODULE: external "@material-ui/core/styles/makeStyles"
  1400. var makeStyles_ = __webpack_require__("8//M");
  1401. var makeStyles_default = /*#__PURE__*/__webpack_require__.n(makeStyles_);
  1402. // EXTERNAL MODULE: external "@material-ui/core/Button"
  1403. var Button_ = __webpack_require__("Wh1t");
  1404. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  1405. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1406. var nextjs_material_kit = __webpack_require__("eDSW");
  1407. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/buttonStyle.js
  1408. const buttonStyle = {
  1409. button: {
  1410. minHeight: "auto",
  1411. minWidth: "auto",
  1412. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1413. color: "#FFFFFF",
  1414. boxShadow: "0 2px 2px 0 rgba(153, 153, 153, 0.14), 0 3px 1px -2px rgba(153, 153, 153, 0.2), 0 1px 5px 0 rgba(153, 153, 153, 0.12)",
  1415. border: "none",
  1416. borderRadius: "3px",
  1417. position: "relative",
  1418. padding: "12px 30px",
  1419. margin: ".3125rem 1px",
  1420. fontSize: "12px",
  1421. fontWeight: "400",
  1422. textTransform: "uppercase",
  1423. letterSpacing: "0",
  1424. willChange: "box-shadow, transform",
  1425. transition: "box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
  1426. lineHeight: "1.42857143",
  1427. textAlign: "center",
  1428. whiteSpace: "nowrap",
  1429. verticalAlign: "middle",
  1430. touchAction: "manipulation",
  1431. cursor: "pointer",
  1432. "&:hover,&:focus": {
  1433. color: "#FFFFFF",
  1434. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1435. boxShadow: "0 14px 26px -12px rgba(153, 153, 153, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(153, 153, 153, 0.2)"
  1436. },
  1437. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1438. position: "relative",
  1439. display: "inline-block",
  1440. top: "0",
  1441. fontSize: "1.1rem",
  1442. marginRight: "4px",
  1443. verticalAlign: "middle"
  1444. },
  1445. "& svg": {
  1446. position: "relative",
  1447. display: "inline-block",
  1448. top: "0",
  1449. width: "18px",
  1450. height: "18px",
  1451. marginRight: "4px",
  1452. verticalAlign: "middle"
  1453. },
  1454. "&$justIcon": {
  1455. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1456. marginRight: "0px",
  1457. position: "absolute",
  1458. width: "100%",
  1459. transform: "none",
  1460. left: "0px",
  1461. top: "0px",
  1462. height: "100%",
  1463. lineHeight: "41px",
  1464. fontSize: "20px"
  1465. }
  1466. }
  1467. },
  1468. fullWidth: {
  1469. width: "100%"
  1470. },
  1471. primary: {
  1472. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1473. boxShadow: `0 2px 2px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.14)}, 0 3px 1px -2px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.2)}, 0 1px 5px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.12)}`,
  1474. "&:hover,&:focus": {
  1475. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1476. boxShadow: `0 14px 26px -12px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.42)}, 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.2)}`
  1477. }
  1478. },
  1479. info: {
  1480. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1481. boxShadow: `0 2px 2px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["m" /* infoColor */], 0.14)}, 0 3px 1px -2px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["m" /* infoColor */], 0.2)}, 0 1px 5px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["m" /* infoColor */], 0.12)}`,
  1482. "&:hover,&:focus": {
  1483. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1484. boxShadow: `0 14px 26px -12px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["m" /* infoColor */], 0.42)}, 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["m" /* infoColor */], 0.2)}`
  1485. }
  1486. },
  1487. success: {
  1488. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1489. boxShadow: `0 2px 2px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["u" /* successColor */], 0.14)}, 0 3px 1px -2px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["u" /* successColor */], 0.2)}, 0 1px 5px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["u" /* successColor */], 0.12)}`,
  1490. "&:hover,&:focus": {
  1491. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1492. boxShadow: `0 14px 26px -12px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["u" /* successColor */], 0.42)}, 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["u" /* successColor */], 0.2)}`
  1493. }
  1494. },
  1495. warning: {
  1496. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1497. boxShadow: `0 2px 2px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["z" /* warningColor */], 0.14)}, 0 3px 1px -2px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["z" /* warningColor */], 0.2)}, 0 1px 5px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["z" /* warningColor */], 0.12)}`,
  1498. "&:hover,&:focus": {
  1499. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1500. boxShadow: `0 14px 26px -12px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["z" /* warningColor */], 0.42)}, 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["z" /* warningColor */], 0.2)}`
  1501. }
  1502. },
  1503. danger: {
  1504. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1505. boxShadow: `0 2px 2px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["f" /* dangerColor */], 0.14)}, 0 3px 1px -2px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["f" /* dangerColor */], 0.2)}, 0 1px 5px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["f" /* dangerColor */], 0.12)}`,
  1506. "&:hover,&:focus": {
  1507. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1508. boxShadow: `0 14px 26px -12px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["f" /* dangerColor */], 0.42)}, 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["f" /* dangerColor */], 0.2)}`
  1509. }
  1510. },
  1511. rose: {
  1512. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1513. boxShadow: `0 2px 2px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.14)}, 0 3px 1px -2px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.2)}, 0 1px 5px 0 ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.12)}`,
  1514. "&:hover,&:focus": {
  1515. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1516. boxShadow: `0 14px 26px -12px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.42)}, 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px ${Object(nextjs_material_kit["j" /* hexToRGBAlpha */])(nextjs_material_kit["p" /* primaryColor */], 0.2)}`
  1517. }
  1518. },
  1519. white: {
  1520. "&,&:focus,&:hover,&:visited": {
  1521. backgroundColor: "#FFFFFF",
  1522. color: nextjs_material_kit["i" /* grayColor */]
  1523. }
  1524. },
  1525. twitter: {
  1526. backgroundColor: "#55acee",
  1527. color: "#fff",
  1528. boxShadow: "0 2px 2px 0 rgba(85, 172, 238, 0.14), 0 3px 1px -2px rgba(85, 172, 238, 0.2), 0 1px 5px 0 rgba(85, 172, 238, 0.12)",
  1529. "&:hover,&:focus,&:visited": {
  1530. backgroundColor: "#55acee",
  1531. color: "#fff",
  1532. boxShadow: "0 14px 26px -12px rgba(85, 172, 238, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(85, 172, 238, 0.2)"
  1533. }
  1534. },
  1535. facebook: {
  1536. backgroundColor: "#3b5998",
  1537. color: "#fff",
  1538. boxShadow: "0 2px 2px 0 rgba(59, 89, 152, 0.14), 0 3px 1px -2px rgba(59, 89, 152, 0.2), 0 1px 5px 0 rgba(59, 89, 152, 0.12)",
  1539. "&:hover,&:focus": {
  1540. backgroundColor: "#3b5998",
  1541. color: "#fff",
  1542. boxShadow: "0 14px 26px -12px rgba(59, 89, 152, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(59, 89, 152, 0.2)"
  1543. }
  1544. },
  1545. google: {
  1546. backgroundColor: "#dd4b39",
  1547. color: "#fff",
  1548. boxShadow: "0 2px 2px 0 rgba(221, 75, 57, 0.14), 0 3px 1px -2px rgba(221, 75, 57, 0.2), 0 1px 5px 0 rgba(221, 75, 57, 0.12)",
  1549. "&:hover,&:focus": {
  1550. backgroundColor: "#dd4b39",
  1551. color: "#fff",
  1552. boxShadow: "0 14px 26px -12px rgba(221, 75, 57, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(221, 75, 57, 0.2)"
  1553. }
  1554. },
  1555. github: {
  1556. backgroundColor: "#333333",
  1557. color: "#fff",
  1558. boxShadow: "0 2px 2px 0 rgba(51, 51, 51, 0.14), 0 3px 1px -2px rgba(51, 51, 51, 0.2), 0 1px 5px 0 rgba(51, 51, 51, 0.12)",
  1559. "&:hover,&:focus": {
  1560. backgroundColor: "#333333",
  1561. color: "#fff",
  1562. boxShadow: "0 14px 26px -12px rgba(51, 51, 51, 0.42), 0 4px 23px 0px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(51, 51, 51, 0.2)"
  1563. }
  1564. },
  1565. simple: {
  1566. "&,&:focus,&:hover,&:visited": {
  1567. color: "#FFFFFF",
  1568. background: "transparent",
  1569. boxShadow: "none"
  1570. },
  1571. "&$primary": {
  1572. "&,&:focus,&:hover,&:visited": {
  1573. color: nextjs_material_kit["p" /* primaryColor */]
  1574. }
  1575. },
  1576. "&$info": {
  1577. "&,&:focus,&:hover,&:visited": {
  1578. color: nextjs_material_kit["m" /* infoColor */]
  1579. }
  1580. },
  1581. "&$success": {
  1582. "&,&:focus,&:hover,&:visited": {
  1583. color: nextjs_material_kit["u" /* successColor */]
  1584. }
  1585. },
  1586. "&$warning": {
  1587. "&,&:focus,&:hover,&:visited": {
  1588. color: nextjs_material_kit["z" /* warningColor */]
  1589. }
  1590. },
  1591. "&$rose": {
  1592. "&,&:focus,&:hover,&:visited": {
  1593. color: nextjs_material_kit["r" /* roseColor */]
  1594. }
  1595. },
  1596. "&$danger": {
  1597. "&,&:focus,&:hover,&:visited": {
  1598. color: nextjs_material_kit["f" /* dangerColor */]
  1599. }
  1600. },
  1601. "&$twitter": {
  1602. "&,&:focus,&:hover,&:visited": {
  1603. color: "#55acee"
  1604. }
  1605. },
  1606. "&$facebook": {
  1607. "&,&:focus,&:hover,&:visited": {
  1608. color: "#3b5998"
  1609. }
  1610. },
  1611. "&$google": {
  1612. "&,&:focus,&:hover,&:visited": {
  1613. color: "#dd4b39"
  1614. }
  1615. },
  1616. "&$github": {
  1617. "&,&:focus,&:hover,&:visited": {
  1618. color: "#333333"
  1619. }
  1620. }
  1621. },
  1622. transparent: {
  1623. "&,&:focus,&:hover,&:visited": {
  1624. color: "inherit",
  1625. background: "transparent",
  1626. boxShadow: "none"
  1627. }
  1628. },
  1629. disabled: {
  1630. opacity: "0.65",
  1631. pointerEvents: "none"
  1632. },
  1633. lg: {
  1634. padding: "1.125rem 2.25rem",
  1635. fontSize: "0.875rem",
  1636. lineHeight: "1.333333",
  1637. borderRadius: "0.2rem"
  1638. },
  1639. sm: {
  1640. padding: "0.40625rem 1.25rem",
  1641. fontSize: "0.6875rem",
  1642. lineHeight: "1.5",
  1643. borderRadius: "0.2rem"
  1644. },
  1645. round: {
  1646. borderRadius: "30px"
  1647. },
  1648. block: {
  1649. width: "100% !important"
  1650. },
  1651. link: {
  1652. "&,&:hover,&:focus": {
  1653. backgroundColor: "transparent",
  1654. color: "#999999",
  1655. boxShadow: "none"
  1656. }
  1657. },
  1658. justIcon: {
  1659. paddingLeft: "12px",
  1660. paddingRight: "12px",
  1661. fontSize: "20px",
  1662. height: "41px",
  1663. minWidth: "41px",
  1664. width: "41px",
  1665. "& .fab,& .fas,& .far,& .fal,& svg,& .material-icons": {
  1666. marginRight: "0px"
  1667. },
  1668. "&$lg": {
  1669. height: "57px",
  1670. minWidth: "57px",
  1671. width: "57px",
  1672. lineHeight: "56px",
  1673. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1674. fontSize: "32px",
  1675. lineHeight: "56px"
  1676. },
  1677. "& svg": {
  1678. width: "32px",
  1679. height: "32px"
  1680. }
  1681. },
  1682. "&$sm": {
  1683. height: "30px",
  1684. minWidth: "30px",
  1685. width: "30px",
  1686. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1687. fontSize: "17px",
  1688. lineHeight: "29px"
  1689. },
  1690. "& svg": {
  1691. width: "17px",
  1692. height: "17px"
  1693. }
  1694. }
  1695. }
  1696. };
  1697. /* harmony default export */ var components_buttonStyle = (buttonStyle);
  1698. // CONCATENATED MODULE: ./components/CustomButtons/Button.js
  1699. var __jsx = external_react_default.a.createElement;
  1700. 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); }
  1701. function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  1702. function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
  1703. 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; }
  1704. 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; }
  1705. 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; }
  1706. // nodejs library to set properties for components
  1707. // nodejs library that concatenates classes
  1708. // @material-ui/core components
  1709. // core components
  1710. const makeComponentStyles = makeStyles_default()(() => _objectSpread({}, components_buttonStyle));
  1711. const RegularButton = external_react_default.a.forwardRef((props, ref) => {
  1712. const {
  1713. color,
  1714. round,
  1715. children,
  1716. fullWidth,
  1717. disabled,
  1718. simple,
  1719. size,
  1720. block,
  1721. link,
  1722. justIcon,
  1723. className
  1724. } = props,
  1725. rest = _objectWithoutProperties(props, ["color", "round", "children", "fullWidth", "disabled", "simple", "size", "block", "link", "justIcon", "className"]);
  1726. const classes = makeComponentStyles();
  1727. const btnClasses = external_classnames_default()({
  1728. [classes.button]: true,
  1729. [classes[size]]: size,
  1730. [classes[color]]: color,
  1731. [classes.round]: round,
  1732. [classes.fullWidth]: fullWidth,
  1733. [classes.disabled]: disabled,
  1734. [classes.simple]: simple,
  1735. [classes.block]: block,
  1736. [classes.link]: link,
  1737. [classes.justIcon]: justIcon,
  1738. [className]: className
  1739. });
  1740. return __jsx(Button_default.a, _extends({}, rest, {
  1741. ref: ref,
  1742. classes: {
  1743. root: btnClasses
  1744. }
  1745. }), children);
  1746. });
  1747. /* harmony default export */ var Button = __webpack_exports__["a"] = (RegularButton);
  1748. /***/ }),
  1749. /***/ "Ms0O":
  1750. /***/ (function(module, exports) {
  1751. module.exports = require("@material-ui/core/Toolbar");
  1752. /***/ }),
  1753. /***/ "OdWO":
  1754. /***/ (function(module, exports) {
  1755. module.exports = require("@material-ui/core/Select");
  1756. /***/ }),
  1757. /***/ "Osoz":
  1758. /***/ (function(module, exports) {
  1759. module.exports = require("next/dist/next-server/lib/router-context.js");
  1760. /***/ }),
  1761. /***/ "Q01v":
  1762. /***/ (function(module, exports) {
  1763. module.exports = require("@material-ui/core/Drawer");
  1764. /***/ }),
  1765. /***/ "QOEo":
  1766. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1767. "use strict";
  1768. // EXPORTS
  1769. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomDropdown; });
  1770. // EXTERNAL MODULE: external "react"
  1771. var external_react_ = __webpack_require__("cDcd");
  1772. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1773. // EXTERNAL MODULE: external "classnames"
  1774. var external_classnames_ = __webpack_require__("K2gz");
  1775. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1776. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1777. var styles_ = __webpack_require__("9Pu4");
  1778. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  1779. var MenuItem_ = __webpack_require__("x54t");
  1780. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  1781. // EXTERNAL MODULE: external "@material-ui/core/MenuList"
  1782. var MenuList_ = __webpack_require__("xmQw");
  1783. var MenuList_default = /*#__PURE__*/__webpack_require__.n(MenuList_);
  1784. // EXTERNAL MODULE: external "@material-ui/core/ClickAwayListener"
  1785. var ClickAwayListener_ = __webpack_require__("31Yn");
  1786. var ClickAwayListener_default = /*#__PURE__*/__webpack_require__.n(ClickAwayListener_);
  1787. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  1788. var Paper_ = __webpack_require__("qt1I");
  1789. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  1790. // EXTERNAL MODULE: external "@material-ui/core/Grow"
  1791. var Grow_ = __webpack_require__("mf1M");
  1792. var Grow_default = /*#__PURE__*/__webpack_require__.n(Grow_);
  1793. // EXTERNAL MODULE: external "@material-ui/core/Divider"
  1794. var Divider_ = __webpack_require__("nybW");
  1795. var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
  1796. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  1797. var Icon_ = __webpack_require__("7vM9");
  1798. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  1799. // EXTERNAL MODULE: external "@material-ui/core/Popper"
  1800. var Popper_ = __webpack_require__("jD8W");
  1801. var Popper_default = /*#__PURE__*/__webpack_require__.n(Popper_);
  1802. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  1803. var Button = __webpack_require__("Kg+a");
  1804. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1805. var nextjs_material_kit = __webpack_require__("eDSW");
  1806. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customDropdownStyle.js
  1807. 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; }
  1808. 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; }
  1809. 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; }
  1810. const customDropdownStyle = theme => ({
  1811. popperClose: {
  1812. pointerEvents: "none"
  1813. },
  1814. pooperNav: {
  1815. [theme.breakpoints.down("sm")]: {
  1816. position: "static !important",
  1817. left: "unset !important",
  1818. top: "unset !important",
  1819. transform: "none !important",
  1820. willChange: "none !important",
  1821. "& > div": {
  1822. boxShadow: "none !important",
  1823. marginLeft: "1.5rem",
  1824. marginRight: "1.5rem",
  1825. transition: "none !important",
  1826. marginTop: "0px !important",
  1827. marginBottom: "5px !important",
  1828. padding: "0px !important"
  1829. }
  1830. }
  1831. },
  1832. dropdown: {
  1833. borderRadius: "3px",
  1834. border: "0",
  1835. boxShadow: "0 2px 5px 0 rgba(0, 0, 0, 0.26)",
  1836. top: "100%",
  1837. zIndex: "1000",
  1838. minWidth: "160px",
  1839. padding: "5px 0",
  1840. margin: "2px 0 0",
  1841. fontSize: "14px",
  1842. textAlign: "left",
  1843. listStyle: "none",
  1844. backgroundColor: "#fff",
  1845. backgroundClip: "padding-box"
  1846. },
  1847. menuList: {
  1848. padding: "0"
  1849. },
  1850. popperResponsive: {
  1851. zIndex: "1200",
  1852. position: "absolute !important",
  1853. [theme.breakpoints.down("sm")]: {
  1854. zIndex: "1640",
  1855. position: "static !important",
  1856. float: "none",
  1857. width: "auto",
  1858. marginTop: "0",
  1859. backgroundColor: "transparent",
  1860. border: "0",
  1861. boxShadow: "none",
  1862. color: "black"
  1863. }
  1864. },
  1865. dropdownItem: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  1866. fontSize: "13px",
  1867. padding: "10px 20px",
  1868. margin: "0 5px",
  1869. borderRadius: "2px",
  1870. position: "relative",
  1871. transition: "all 150ms linear",
  1872. display: "block",
  1873. clear: "both",
  1874. fontWeight: "400",
  1875. height: "fit-content",
  1876. color: "#333",
  1877. whiteSpace: "nowrap",
  1878. minHeight: "unset"
  1879. }),
  1880. blackHover: {
  1881. "&:hover": {
  1882. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)",
  1883. backgroundColor: "#212121",
  1884. color: "#fff"
  1885. }
  1886. },
  1887. primaryHover: {
  1888. "&:hover": _objectSpread({
  1889. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1890. color: "#FFFFFF"
  1891. }, nextjs_material_kit["n" /* primaryBoxShadow */])
  1892. },
  1893. infoHover: {
  1894. "&:hover": _objectSpread({
  1895. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1896. color: "#FFFFFF"
  1897. }, nextjs_material_kit["k" /* infoBoxShadow */])
  1898. },
  1899. successHover: {
  1900. "&:hover": _objectSpread({
  1901. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1902. color: "#FFFFFF"
  1903. }, nextjs_material_kit["s" /* successBoxShadow */])
  1904. },
  1905. warningHover: {
  1906. "&:hover": _objectSpread({
  1907. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1908. color: "#FFFFFF"
  1909. }, nextjs_material_kit["x" /* warningBoxShadow */])
  1910. },
  1911. dangerHover: {
  1912. "&:hover": _objectSpread({
  1913. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1914. color: "#FFFFFF"
  1915. }, nextjs_material_kit["d" /* dangerBoxShadow */])
  1916. },
  1917. roseHover: {
  1918. "&:hover": _objectSpread({
  1919. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1920. color: "#FFFFFF"
  1921. }, nextjs_material_kit["q" /* roseBoxShadow */])
  1922. },
  1923. dropdownItemRTL: {
  1924. textAlign: "right"
  1925. },
  1926. dropdownDividerItem: {
  1927. margin: "5px 0",
  1928. backgroundColor: "rgba(0, 0, 0, 0.12)",
  1929. height: "1px",
  1930. overflow: "hidden"
  1931. },
  1932. buttonIcon: {
  1933. width: "20px",
  1934. height: "20px"
  1935. },
  1936. caret: {
  1937. transition: "all 150ms ease-in",
  1938. display: "inline-block",
  1939. width: "0",
  1940. height: "0",
  1941. marginLeft: "4px",
  1942. verticalAlign: "middle",
  1943. borderTop: "4px solid",
  1944. borderRight: "4px solid transparent",
  1945. borderLeft: "4px solid transparent"
  1946. },
  1947. caretActive: {
  1948. transform: "rotate(180deg)"
  1949. },
  1950. caretRTL: {
  1951. marginRight: "4px"
  1952. },
  1953. dropdownHeader: {
  1954. display: "block",
  1955. padding: "0.1875rem 1.25rem",
  1956. fontSize: "0.75rem",
  1957. lineHeight: "1.428571",
  1958. color: "#777",
  1959. whiteSpace: "nowrap",
  1960. fontWeight: "inherit",
  1961. marginTop: "10px",
  1962. minHeight: "unset",
  1963. "&:hover,&:focus": {
  1964. backgroundColor: "transparent",
  1965. cursor: "auto"
  1966. }
  1967. },
  1968. noLiPadding: {
  1969. padding: "0"
  1970. }
  1971. });
  1972. /* harmony default export */ var components_customDropdownStyle = (customDropdownStyle);
  1973. // CONCATENATED MODULE: ./components/CustomDropdown/CustomDropdown.js
  1974. var __jsx = external_react_default.a.createElement;
  1975. 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); }
  1976. // nodejs library that concatenates classes
  1977. // nodejs library to set properties for components
  1978. // @material-ui/core components
  1979. // core components
  1980. const useStyles = Object(styles_["makeStyles"])(components_customDropdownStyle);
  1981. function CustomDropdown(props) {
  1982. const [anchorEl, setAnchorEl] = external_react_default.a.useState(null);
  1983. const handleClick = event => {
  1984. if (anchorEl && anchorEl.contains(event.target)) {
  1985. setAnchorEl(null);
  1986. } else {
  1987. setAnchorEl(event.currentTarget);
  1988. }
  1989. };
  1990. const handleClose = param => {
  1991. setAnchorEl(null);
  1992. if (props && props.onClick) {
  1993. props.onClick(param);
  1994. }
  1995. };
  1996. const handleCloseAway = event => {
  1997. if (anchorEl.contains(event.target)) {
  1998. return;
  1999. }
  2000. setAnchorEl(null);
  2001. };
  2002. const classes = useStyles();
  2003. const {
  2004. buttonText,
  2005. buttonIcon,
  2006. dropdownList,
  2007. buttonProps,
  2008. dropup,
  2009. dropdownHeader,
  2010. caret,
  2011. hoverColor,
  2012. left,
  2013. rtlActive,
  2014. noLiPadding,
  2015. navDropdown
  2016. } = props;
  2017. const caretClasses = external_classnames_default()({
  2018. [classes.caret]: true,
  2019. [classes.caretActive]: Boolean(anchorEl),
  2020. [classes.caretRTL]: rtlActive
  2021. });
  2022. const dropdownItem = external_classnames_default()({
  2023. [classes.dropdownItem]: true,
  2024. [classes[hoverColor + "Hover"]]: true,
  2025. [classes.noLiPadding]: noLiPadding,
  2026. [classes.dropdownItemRTL]: rtlActive
  2027. });
  2028. let icon = null;
  2029. switch (typeof buttonIcon) {
  2030. case "object":
  2031. icon = __jsx(props.buttonIcon, {
  2032. className: classes.buttonIcon
  2033. });
  2034. break;
  2035. case "string":
  2036. icon = __jsx(Icon_default.a, {
  2037. className: classes.buttonIcon
  2038. }, props.buttonIcon);
  2039. break;
  2040. default:
  2041. icon = null;
  2042. break;
  2043. }
  2044. return __jsx("div", null, __jsx("div", null, __jsx(Button["a" /* default */], _extends({
  2045. "aria-label": "Notifications",
  2046. "aria-owns": anchorEl ? "menu-list" : null,
  2047. "aria-haspopup": "true"
  2048. }, buttonProps, {
  2049. onClick: handleClick
  2050. }), icon, buttonText !== undefined ? buttonText : null, caret ? __jsx("b", {
  2051. className: caretClasses
  2052. }) : null)), __jsx(Popper_default.a, {
  2053. open: Boolean(anchorEl),
  2054. anchorEl: anchorEl,
  2055. transition: true,
  2056. disablePortal: true,
  2057. placement: dropup ? left ? "top-start" : "top" : left ? "bottom-start" : "bottom",
  2058. className: external_classnames_default()({
  2059. [classes.popperClose]: !anchorEl,
  2060. [classes.popperResponsive]: true,
  2061. [classes.pooperNav]: Boolean(anchorEl) && navDropdown
  2062. })
  2063. }, () => __jsx(Grow_default.a, {
  2064. in: Boolean(anchorEl),
  2065. id: "menu-list",
  2066. style: dropup ? {
  2067. transformOrigin: "0 100% 0"
  2068. } : {
  2069. transformOrigin: "0 0 0"
  2070. }
  2071. }, __jsx(Paper_default.a, {
  2072. className: classes.dropdown
  2073. }, __jsx(ClickAwayListener_default.a, {
  2074. onClickAway: handleCloseAway
  2075. }, __jsx(MenuList_default.a, {
  2076. role: "menu",
  2077. className: classes.menuList
  2078. }, dropdownHeader !== undefined ? __jsx(MenuItem_default.a, {
  2079. onClick: () => handleClose(dropdownHeader),
  2080. className: classes.dropdownHeader
  2081. }, dropdownHeader) : null, dropdownList.map((prop, key) => {
  2082. if (prop.divider) {
  2083. return __jsx(Divider_default.a, {
  2084. key: key,
  2085. onClick: () => handleClose("divider"),
  2086. className: classes.dropdownDividerItem
  2087. });
  2088. }
  2089. return __jsx(MenuItem_default.a, {
  2090. key: key,
  2091. onClick: () => handleClose(prop),
  2092. className: dropdownItem
  2093. }, prop);
  2094. })))))));
  2095. }
  2096. CustomDropdown.defaultProps = {
  2097. caret: true,
  2098. hoverColor: "primary"
  2099. };
  2100. /***/ }),
  2101. /***/ "R+Hf":
  2102. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2103. "use strict";
  2104. // ESM COMPAT FLAG
  2105. __webpack_require__.r(__webpack_exports__);
  2106. // EXPORTS
  2107. __webpack_require__.d(__webpack_exports__, "getServerSideProps", function() { return /* binding */ getServerSideProps; });
  2108. // EXTERNAL MODULE: external "react"
  2109. var external_react_ = __webpack_require__("cDcd");
  2110. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2111. // EXTERNAL MODULE: external "classnames"
  2112. var external_classnames_ = __webpack_require__("K2gz");
  2113. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2114. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2115. var styles_ = __webpack_require__("9Pu4");
  2116. // EXTERNAL MODULE: ./components/Header/Header.js + 1 modules
  2117. var Header = __webpack_require__("8x5e");
  2118. // EXTERNAL MODULE: ./components/Header/HeaderLinks.js
  2119. var HeaderLinks = __webpack_require__("8E12");
  2120. // EXTERNAL MODULE: ./components/Footer/Footer.js
  2121. var Footer = __webpack_require__("HXcA");
  2122. // EXTERNAL MODULE: external "@material-ui/core/Table"
  2123. var Table_ = __webpack_require__("BjFw");
  2124. var Table_default = /*#__PURE__*/__webpack_require__.n(Table_);
  2125. // EXTERNAL MODULE: external "@material-ui/core/TableBody"
  2126. var TableBody_ = __webpack_require__("30mr");
  2127. var TableBody_default = /*#__PURE__*/__webpack_require__.n(TableBody_);
  2128. // EXTERNAL MODULE: external "@material-ui/core/TableCell"
  2129. var TableCell_ = __webpack_require__("Ai9N");
  2130. var TableCell_default = /*#__PURE__*/__webpack_require__.n(TableCell_);
  2131. // EXTERNAL MODULE: external "@material-ui/core/TableContainer"
  2132. var TableContainer_ = __webpack_require__("5id3");
  2133. var TableContainer_default = /*#__PURE__*/__webpack_require__.n(TableContainer_);
  2134. // EXTERNAL MODULE: external "@material-ui/core/TableHead"
  2135. var TableHead_ = __webpack_require__("TWtx");
  2136. var TableHead_default = /*#__PURE__*/__webpack_require__.n(TableHead_);
  2137. // EXTERNAL MODULE: external "@material-ui/core/TableRow"
  2138. var TableRow_ = __webpack_require__("iDDF");
  2139. var TableRow_default = /*#__PURE__*/__webpack_require__.n(TableRow_);
  2140. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  2141. var Paper_ = __webpack_require__("qt1I");
  2142. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  2143. // EXTERNAL MODULE: ./components/Snackbar/SnackbarContent.js + 1 modules
  2144. var SnackbarContent = __webpack_require__("FoiA");
  2145. // EXTERNAL MODULE: external "@material-ui/core/Grid"
  2146. var Grid_ = __webpack_require__("JQ2V");
  2147. var Grid_default = /*#__PURE__*/__webpack_require__.n(Grid_);
  2148. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  2149. var GridContainer = __webpack_require__("mtPR");
  2150. // EXTERNAL MODULE: ./components/Card/Card.js + 1 modules
  2151. var Card = __webpack_require__("A2So");
  2152. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  2153. var Button = __webpack_require__("Kg+a");
  2154. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  2155. var Icon_ = __webpack_require__("7vM9");
  2156. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  2157. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  2158. var MenuItem_ = __webpack_require__("x54t");
  2159. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  2160. // EXTERNAL MODULE: external "@material-ui/core/FormControl"
  2161. var FormControl_ = __webpack_require__("lWoh");
  2162. var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
  2163. // EXTERNAL MODULE: external "@material-ui/core/Select"
  2164. var Select_ = __webpack_require__("OdWO");
  2165. var Select_default = /*#__PURE__*/__webpack_require__.n(Select_);
  2166. // EXTERNAL MODULE: external "@material-ui/core/TextField"
  2167. var TextField_ = __webpack_require__("IbbU");
  2168. var TextField_default = /*#__PURE__*/__webpack_require__.n(TextField_);
  2169. // CONCATENATED MODULE: ./pages-sections/yamaha/cart/cart.js
  2170. var __jsx = external_react_default.a.createElement;
  2171. function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  2172. function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
  2173. const useStyles = Object(styles_["makeStyles"])({
  2174. table: {
  2175. minWidth: 650
  2176. }
  2177. });
  2178. const handleChange = event => {
  2179. setAge(event.target.value);
  2180. };
  2181. const Cart = function (_ref) {
  2182. let {
  2183. backend,
  2184. cartproduct
  2185. } = _ref,
  2186. props = _objectWithoutProperties(_ref, ["backend", "cartproduct"]);
  2187. const classes = useStyles();
  2188. const rest = Object.assign({}, props);
  2189. const imageClasses = external_classnames_default()(classes.imgRaised, classes.imgRoundedCircle, classes.imgFluid);
  2190. const navImageClasses = external_classnames_default()(classes.imgRounded, classes.imgGallery);
  2191. const CartProduct = cartproduct.map(data => {
  2192. return __jsx("div", null, __jsx(TableContainer_default.a, {
  2193. component: Paper_default.a
  2194. }, __jsx(Table_default.a, {
  2195. className: classes.table,
  2196. "aria-label": "simple table"
  2197. }, __jsx(TableHead_default.a, null, __jsx(TableRow_default.a, null, __jsx(TableCell_default.a, {
  2198. align: "center"
  2199. }, "Product"), __jsx(TableCell_default.a, {
  2200. align: "center"
  2201. }, "Nama Product"), __jsx(TableCell_default.a, {
  2202. align: "center"
  2203. }, "Warna"), __jsx(TableCell_default.a, {
  2204. align: "center"
  2205. }, "Harga Satuan"), __jsx(TableCell_default.a, {
  2206. align: "center"
  2207. }, "Jumlah Unit"), __jsx(TableCell_default.a, {
  2208. align: "center"
  2209. }, "Harga Total"), __jsx(TableCell_default.a, {
  2210. align: "center"
  2211. }, "Aksi"))), __jsx(TableBody_default.a, null, __jsx(TableRow_default.a, {
  2212. key: data.name
  2213. }, __jsx(TableCell_default.a, {
  2214. component: "th",
  2215. scope: "row",
  2216. align: "center"
  2217. }, __jsx("img", {
  2218. className: navImageClasses,
  2219. width: "200px",
  2220. alt: "First slide",
  2221. src: `${backend}${data.img[0]["url"]}`
  2222. })), __jsx(TableCell_default.a, {
  2223. align: "center"
  2224. }, data.name), __jsx(TableCell_default.a, {
  2225. align: "center"
  2226. }, __jsx(FormControl_default.a, {
  2227. className: classes.formControl
  2228. }, __jsx(Select_default.a, {
  2229. labelId: "demo-simple-select-placeholder-label-label",
  2230. id: "demo-simple-select-placeholder-label",
  2231. onChange: handleChange,
  2232. displayEmpty: true,
  2233. className: classes.selectEmpty
  2234. }, __jsx(MenuItem_default.a, {
  2235. value: ""
  2236. }, __jsx("em", null, "None")), __jsx(MenuItem_default.a, {
  2237. value: 10
  2238. }, "Hitam"), __jsx(MenuItem_default.a, {
  2239. value: 20
  2240. }, "Merah"), __jsx(MenuItem_default.a, {
  2241. value: 30
  2242. }, "Biru")))), __jsx(TableCell_default.a, {
  2243. align: "center"
  2244. }, "Rp.", data.price), __jsx(TableCell_default.a, {
  2245. align: "center"
  2246. }, __jsx(FormControl_default.a, {
  2247. className: classes.formControl
  2248. }, __jsx(TextField_default.a, {
  2249. id: "outlined-number",
  2250. type: "number",
  2251. align: "center",
  2252. InputLabelProps: {
  2253. shrink: true
  2254. }
  2255. }))), __jsx(TableCell_default.a, {
  2256. align: "center"
  2257. }, "Rp.", data.price), __jsx(TableCell_default.a, {
  2258. align: "center"
  2259. }, __jsx("a", {
  2260. href: "#"
  2261. }, "Hapus")))))), __jsx(Card["a" /* default */], {
  2262. style: {
  2263. padding: "30px"
  2264. }
  2265. }, __jsx(GridContainer["a" /* default */], null, __jsx(Grid_default.a, {
  2266. item: true,
  2267. xs: true
  2268. }), __jsx(Grid_default.a, {
  2269. item: true,
  2270. xs: true
  2271. }, __jsx("div", {
  2272. align: "right"
  2273. }, __jsx("h4", null, "Total Semua Harga Produk : Rp.", data.price))), __jsx(Grid_default.a, {
  2274. item: true,
  2275. xs: true
  2276. }, __jsx(Grid_default.a, {
  2277. item: true,
  2278. xs: true
  2279. }, __jsx(Button["a" /* default */], {
  2280. color: "info",
  2281. href: "/yamaha/cart/checkout?s=" + data.id
  2282. }, __jsx(Icon_default.a, {
  2283. className: classes.icons
  2284. }, "shopping_cart"), "Checkout"))))));
  2285. });
  2286. return __jsx("div", {
  2287. align: "center",
  2288. className: classes.section,
  2289. id: "notifications"
  2290. }, __jsx("div", {
  2291. style: {
  2292. padding: "25px"
  2293. }
  2294. }, __jsx(SnackbarContent["a" /* default */], {
  2295. message: __jsx("h2", null, __jsx("b", null, "My Cart")),
  2296. align: "center",
  2297. color: "danger"
  2298. })), __jsx("div", {
  2299. style: {
  2300. padding: "25px"
  2301. }
  2302. }, CartProduct));
  2303. };
  2304. /* harmony default export */ var cart = (Cart);
  2305. // EXTERNAL MODULE: ./components/Parallax/Parallax.js + 1 modules
  2306. var Parallax = __webpack_require__("Z2Lm");
  2307. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/components.js
  2308. var components = __webpack_require__("bhG4");
  2309. // EXTERNAL MODULE: ./api/cart/cart.js
  2310. var cart_cart = __webpack_require__("7cQc");
  2311. var cart_default = /*#__PURE__*/__webpack_require__.n(cart_cart);
  2312. // CONCATENATED MODULE: ./pages/yamaha/cart/cart.js
  2313. var cart_jsx = external_react_default.a.createElement;
  2314. 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); }
  2315. function cart_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = cart_objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  2316. function cart_objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
  2317. const cart_useStyles = Object(styles_["makeStyles"])(components["a" /* default */]);
  2318. const ProductDetails = function (_ref) {
  2319. let {
  2320. backend,
  2321. cartproduct
  2322. } = _ref,
  2323. props = cart_objectWithoutProperties(_ref, ["backend", "cartproduct"]);
  2324. const classes = cart_useStyles();
  2325. const rest = Object.assign({}, props);
  2326. return cart_jsx("div", null, cart_jsx(Header["a" /* default */], _extends({
  2327. leftLinks: cart_jsx(HeaderLinks["a" /* default */], null),
  2328. fixed: true,
  2329. color: "info",
  2330. changeColorOnScroll: {
  2331. height: 400,
  2332. color: "white"
  2333. }
  2334. }, rest)), cart_jsx(Parallax["a" /* default */], {
  2335. image: __webpack_require__("l+AL"),
  2336. width: "200px"
  2337. }), cart_jsx("div", {
  2338. className: external_classnames_default()(classes.main, classes.mainRaised)
  2339. }, cart_jsx(cart, {
  2340. cartproduct: cartproduct,
  2341. backend: backend
  2342. })), cart_jsx(Footer["a" /* default */], null));
  2343. };
  2344. /* harmony default export */ var yamaha_cart_cart = __webpack_exports__["default"] = (ProductDetails);
  2345. async function getServerSideProps(context) {
  2346. var {
  2347. query
  2348. } = context;
  2349. var cartproduct = [];
  2350. const backend = process.env.BACKEND_SERVER_URI;
  2351. var res = await cart_default.a.GetCartProduct(query.s || 0);
  2352. if (res["STATUS"] === 1) {
  2353. cartproduct = res["DATA"]["products"];
  2354. }
  2355. return {
  2356. props: {
  2357. cartproduct,
  2358. backend
  2359. } // will be passed to the page component as props
  2360. };
  2361. }
  2362. /***/ }),
  2363. /***/ "TWtx":
  2364. /***/ (function(module, exports) {
  2365. module.exports = require("@material-ui/core/TableHead");
  2366. /***/ }),
  2367. /***/ "Wh1t":
  2368. /***/ (function(module, exports) {
  2369. module.exports = require("@material-ui/core/Button");
  2370. /***/ }),
  2371. /***/ "Y8uC":
  2372. /***/ (function(module, exports) {
  2373. module.exports = require("@material-ui/core/Hidden");
  2374. /***/ }),
  2375. /***/ "YFqc":
  2376. /***/ (function(module, exports, __webpack_require__) {
  2377. module.exports = __webpack_require__("cTJO")
  2378. /***/ }),
  2379. /***/ "YTqd":
  2380. /***/ (function(module, exports, __webpack_require__) {
  2381. "use strict";
  2382. Object.defineProperty(exports, "__esModule", {
  2383. value: true
  2384. }); // this isn't importing the escape-string-regex module
  2385. // to reduce bytes
  2386. function escapeRegex(str) {
  2387. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  2388. }
  2389. function getRouteRegex(normalizedRoute) {
  2390. // Escape all characters that could be considered RegEx
  2391. const escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  2392. const groups = {};
  2393. let groupIndex = 1;
  2394. const parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2395. const isCatchAll = /^(\\\.){3}/.test($1);
  2396. groups[$1 // Un-escape key
  2397. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  2398. ] = {
  2399. pos: groupIndex++,
  2400. repeat: isCatchAll
  2401. };
  2402. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  2403. });
  2404. let namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  2405. // while generating routes-manifest
  2406. if (true) {
  2407. namedParameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2408. const isCatchAll = /^(\\\.){3}/.test($1);
  2409. const key = $1 // Un-escape key
  2410. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '');
  2411. return isCatchAll ? `/(?<${escapeRegex(key)}>.+?)` : `/(?<${escapeRegex(key)}>[^/]+?)`;
  2412. });
  2413. }
  2414. return Object.assign({
  2415. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  2416. groups
  2417. }, namedParameterizedRoute ? {
  2418. namedRegex: `^${namedParameterizedRoute}(?:/)?$`
  2419. } : {});
  2420. }
  2421. exports.getRouteRegex = getRouteRegex;
  2422. /***/ }),
  2423. /***/ "Z2Lm":
  2424. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2425. "use strict";
  2426. // EXPORTS
  2427. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Parallax; });
  2428. // EXTERNAL MODULE: external "react"
  2429. var external_react_ = __webpack_require__("cDcd");
  2430. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2431. // EXTERNAL MODULE: external "classnames"
  2432. var external_classnames_ = __webpack_require__("K2gz");
  2433. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2434. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2435. var styles_ = __webpack_require__("9Pu4");
  2436. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/parallaxStyle.js
  2437. const parallaxStyle = theme => ({
  2438. parallax: {
  2439. height: "90vh",
  2440. maxHeight: "1000px",
  2441. overflow: "hidden",
  2442. position: "relative",
  2443. backgroundPosition: "center top",
  2444. backgroundSize: "cover",
  2445. margin: "0",
  2446. padding: "0",
  2447. border: "0",
  2448. display: "flex",
  2449. alignItems: "center"
  2450. },
  2451. filter: {
  2452. "&:before": {
  2453. background: "#212121"
  2454. },
  2455. "&:after,&:before": {
  2456. position: "absolute",
  2457. zIndex: "1",
  2458. width: "100%",
  2459. height: "100%",
  2460. display: "block",
  2461. left: "0",
  2462. top: "0",
  2463. content: "''"
  2464. }
  2465. },
  2466. small: {
  2467. height: "380px"
  2468. },
  2469. parallaxResponsive: {
  2470. [theme.breakpoints.down("md")]: {
  2471. minHeight: "660px"
  2472. }
  2473. }
  2474. });
  2475. /* harmony default export */ var components_parallaxStyle = (parallaxStyle);
  2476. // CONCATENATED MODULE: ./components/Parallax/Parallax.js
  2477. var __jsx = external_react_default.a.createElement;
  2478. 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; }
  2479. 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; }
  2480. 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; }
  2481. // nodejs library that concatenates classes
  2482. // nodejs library to set properties for components
  2483. // @material-ui/core components
  2484. // core components
  2485. const useStyles = Object(styles_["makeStyles"])(components_parallaxStyle);
  2486. function Parallax(props) {
  2487. let windowScrollTop; // if (window.innerWidth >= 768) {
  2488. // windowScrollTop = window.pageYOffset / 3;
  2489. // } else {
  2490. // windowScrollTop = 0;
  2491. // }
  2492. const [transform, setTransform] = external_react_default.a.useState("translate3d(0,0px,0)");
  2493. external_react_default.a.useEffect(() => {
  2494. if (window.innerWidth >= 768) {
  2495. window.addEventListener("scroll", resetTransform);
  2496. }
  2497. return function cleanup() {
  2498. if (window.innerWidth >= 768) {
  2499. window.removeEventListener("scroll", resetTransform);
  2500. }
  2501. };
  2502. });
  2503. const resetTransform = () => {
  2504. var windowScrollTop = window.pageYOffset / 3;
  2505. setTransform("translate3d(0," + windowScrollTop + "px,0)");
  2506. };
  2507. const {
  2508. filter,
  2509. className,
  2510. children,
  2511. style,
  2512. image,
  2513. small,
  2514. responsive
  2515. } = props;
  2516. const classes = useStyles();
  2517. const parallaxClasses = external_classnames_default()({
  2518. [classes.parallax]: true,
  2519. [classes.filter]: filter,
  2520. [classes.small]: small,
  2521. [classes.parallaxResponsive]: responsive,
  2522. [className]: className !== undefined
  2523. });
  2524. return __jsx("div", {
  2525. className: parallaxClasses,
  2526. style: _objectSpread({}, style, {
  2527. backgroundImage: "url(" + image + ")",
  2528. transform: transform
  2529. })
  2530. }, children);
  2531. }
  2532. /***/ }),
  2533. /***/ "bhG4":
  2534. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2535. "use strict";
  2536. /* harmony import */ var _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  2537. const componentsStyle = {
  2538. container: _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  2539. brand: {
  2540. color: "#FFFFFF",
  2541. textAlign: "left"
  2542. },
  2543. title: {
  2544. fontSize: "4.2rem",
  2545. fontWeight: "600",
  2546. display: "inline-block",
  2547. position: "relative"
  2548. },
  2549. subtitle: {
  2550. fontSize: "1.313rem",
  2551. maxWidth: "510px",
  2552. margin: "10px 0 0"
  2553. },
  2554. main: {
  2555. background: "#FFFFFF",
  2556. position: "relative",
  2557. zIndex: "3"
  2558. },
  2559. mainRaised: {
  2560. margin: "-60px 30px 0px",
  2561. borderRadius: "6px",
  2562. boxShadow: "0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2)",
  2563. "@media (max-width: 830px)": {
  2564. marginLeft: "10px",
  2565. marginRight: "10px"
  2566. }
  2567. },
  2568. link: {
  2569. textDecoration: "none"
  2570. },
  2571. textCenter: {
  2572. textAlign: "center"
  2573. }
  2574. };
  2575. /* harmony default export */ __webpack_exports__["a"] = (componentsStyle);
  2576. /***/ }),
  2577. /***/ "bx/+":
  2578. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2579. "use strict";
  2580. __webpack_require__.r(__webpack_exports__);
  2581. // Apollo Value Configuration
  2582. const ApolloConfig = {
  2583. graphql_uri: process.env.API_GRAPHQL_URI
  2584. };
  2585. /* harmony default export */ __webpack_exports__["default"] = (ApolloConfig);
  2586. /***/ }),
  2587. /***/ "bzos":
  2588. /***/ (function(module, exports) {
  2589. module.exports = require("url");
  2590. /***/ }),
  2591. /***/ "c25J":
  2592. /***/ (function(module, exports) {
  2593. module.exports = require("@material-ui/core/ListItem");
  2594. /***/ }),
  2595. /***/ "cDcd":
  2596. /***/ (function(module, exports) {
  2597. module.exports = require("react");
  2598. /***/ }),
  2599. /***/ "cTJO":
  2600. /***/ (function(module, exports, __webpack_require__) {
  2601. "use strict";
  2602. var _interopRequireDefault = __webpack_require__("AroE");
  2603. var _interopRequireWildcard = __webpack_require__("7KCV");
  2604. exports.__esModule = true;
  2605. exports.default = void 0;
  2606. var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
  2607. var _url = __webpack_require__("bzos");
  2608. var _utils = __webpack_require__("kYf9");
  2609. var _router = _interopRequireDefault(__webpack_require__("nOHt"));
  2610. var _router2 = __webpack_require__("elyg");
  2611. function isLocal(href) {
  2612. var url = (0, _url.parse)(href, false, true);
  2613. var origin = (0, _url.parse)((0, _utils.getLocationOrigin)(), false, true);
  2614. return !url.host || url.protocol === origin.protocol && url.host === origin.host;
  2615. }
  2616. function memoizedFormatUrl(formatFunc) {
  2617. var lastHref = null;
  2618. var lastAs = null;
  2619. var lastResult = null;
  2620. return (href, as) => {
  2621. if (lastResult && href === lastHref && as === lastAs) {
  2622. return lastResult;
  2623. }
  2624. var result = formatFunc(href, as);
  2625. lastHref = href;
  2626. lastAs = as;
  2627. lastResult = result;
  2628. return result;
  2629. };
  2630. }
  2631. function formatUrl(url) {
  2632. return url && typeof url === 'object' ? (0, _utils.formatWithValidation)(url) : url;
  2633. }
  2634. var observer;
  2635. var listeners = new Map();
  2636. var IntersectionObserver = false ? undefined : null;
  2637. var prefetched = {};
  2638. function getObserver() {
  2639. // Return shared instance of IntersectionObserver if already created
  2640. if (observer) {
  2641. return observer;
  2642. } // Only create shared IntersectionObserver if supported in browser
  2643. if (!IntersectionObserver) {
  2644. return undefined;
  2645. }
  2646. return observer = new IntersectionObserver(entries => {
  2647. entries.forEach(entry => {
  2648. if (!listeners.has(entry.target)) {
  2649. return;
  2650. }
  2651. var cb = listeners.get(entry.target);
  2652. if (entry.isIntersecting || entry.intersectionRatio > 0) {
  2653. observer.unobserve(entry.target);
  2654. listeners.delete(entry.target);
  2655. cb();
  2656. }
  2657. });
  2658. }, {
  2659. rootMargin: '200px'
  2660. });
  2661. }
  2662. var listenToIntersections = (el, cb) => {
  2663. var observer = getObserver();
  2664. if (!observer) {
  2665. return () => {};
  2666. }
  2667. observer.observe(el);
  2668. listeners.set(el, cb);
  2669. return () => {
  2670. try {
  2671. observer.unobserve(el);
  2672. } catch (err) {
  2673. console.error(err);
  2674. }
  2675. listeners.delete(el);
  2676. };
  2677. };
  2678. class Link extends _react.Component {
  2679. constructor(props) {
  2680. super(props);
  2681. this.p = void 0;
  2682. this.cleanUpListeners = () => {};
  2683. this.formatUrls = memoizedFormatUrl((href, asHref) => {
  2684. return {
  2685. href: (0, _router2.addBasePath)(formatUrl(href)),
  2686. as: asHref ? (0, _router2.addBasePath)(formatUrl(asHref)) : asHref
  2687. };
  2688. });
  2689. this.linkClicked = e => {
  2690. var {
  2691. nodeName,
  2692. target
  2693. } = e.currentTarget;
  2694. if (nodeName === 'A' && (target && target !== '_self' || e.metaKey || e.ctrlKey || e.shiftKey || e.nativeEvent && e.nativeEvent.which === 2)) {
  2695. // ignore click for new tab / new window behavior
  2696. return;
  2697. }
  2698. var {
  2699. href,
  2700. as
  2701. } = this.formatUrls(this.props.href, this.props.as);
  2702. if (!isLocal(href)) {
  2703. // ignore click if it's outside our scope (e.g. https://google.com)
  2704. return;
  2705. }
  2706. var {
  2707. pathname
  2708. } = window.location;
  2709. href = (0, _url.resolve)(pathname, href);
  2710. as = as ? (0, _url.resolve)(pathname, as) : href;
  2711. e.preventDefault(); // avoid scroll for urls with anchor refs
  2712. var {
  2713. scroll
  2714. } = this.props;
  2715. if (scroll == null) {
  2716. scroll = as.indexOf('#') < 0;
  2717. } // replace state instead of push if prop is present
  2718. _router.default[this.props.replace ? 'replace' : 'push'](href, as, {
  2719. shallow: this.props.shallow
  2720. }).then(success => {
  2721. if (!success) return;
  2722. if (scroll) {
  2723. window.scrollTo(0, 0);
  2724. document.body.focus();
  2725. }
  2726. });
  2727. };
  2728. if (false) {}
  2729. this.p = props.prefetch !== false;
  2730. }
  2731. componentWillUnmount() {
  2732. this.cleanUpListeners();
  2733. }
  2734. getPaths() {
  2735. var {
  2736. pathname
  2737. } = window.location;
  2738. var {
  2739. href: parsedHref,
  2740. as: parsedAs
  2741. } = this.formatUrls(this.props.href, this.props.as);
  2742. var resolvedHref = (0, _url.resolve)(pathname, parsedHref);
  2743. return [resolvedHref, parsedAs ? (0, _url.resolve)(pathname, parsedAs) : resolvedHref];
  2744. }
  2745. handleRef(ref) {
  2746. if (this.p && IntersectionObserver && ref && ref.tagName) {
  2747. this.cleanUpListeners();
  2748. var isPrefetched = prefetched[this.getPaths().join( // Join on an invalid URI character
  2749. '%')];
  2750. if (!isPrefetched) {
  2751. this.cleanUpListeners = listenToIntersections(ref, () => {
  2752. this.prefetch();
  2753. });
  2754. }
  2755. }
  2756. } // The function is memoized so that no extra lifecycles are needed
  2757. // as per https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
  2758. prefetch(options) {
  2759. if (!this.p || true) return; // Prefetch the JSON page if asked (only in the client)
  2760. var paths = this.getPaths(); // We need to handle a prefetch error here since we may be
  2761. // loading with priority which can reject but we don't
  2762. // want to force navigation since this is only a prefetch
  2763. _router.default.prefetch(paths[
  2764. /* href */
  2765. 0], paths[
  2766. /* asPath */
  2767. 1], options).catch(err => {
  2768. if (false) {}
  2769. });
  2770. prefetched[paths.join( // Join on an invalid URI character
  2771. '%')] = true;
  2772. }
  2773. render() {
  2774. var {
  2775. children
  2776. } = this.props;
  2777. var {
  2778. href,
  2779. as
  2780. } = this.formatUrls(this.props.href, this.props.as); // Deprecated. Warning shown by propType check. If the children provided is a string (<Link>example</Link>) we wrap it in an <a> tag
  2781. if (typeof children === 'string') {
  2782. children = _react.default.createElement("a", null, children);
  2783. } // This will return the first child, if multiple are provided it will throw an error
  2784. var child = _react.Children.only(children);
  2785. var props = {
  2786. ref: el => {
  2787. this.handleRef(el);
  2788. if (child && typeof child === 'object' && child.ref) {
  2789. if (typeof child.ref === 'function') child.ref(el);else if (typeof child.ref === 'object') {
  2790. child.ref.current = el;
  2791. }
  2792. }
  2793. },
  2794. onMouseEnter: e => {
  2795. if (child.props && typeof child.props.onMouseEnter === 'function') {
  2796. child.props.onMouseEnter(e);
  2797. }
  2798. this.prefetch({
  2799. priority: true
  2800. });
  2801. },
  2802. onClick: e => {
  2803. if (child.props && typeof child.props.onClick === 'function') {
  2804. child.props.onClick(e);
  2805. }
  2806. if (!e.defaultPrevented) {
  2807. this.linkClicked(e);
  2808. }
  2809. }
  2810. }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
  2811. // defined, we specify the current 'href', so that repetition is not needed by the user
  2812. if (this.props.passHref || child.type === 'a' && !('href' in child.props)) {
  2813. props.href = as || href;
  2814. } // Add the ending slash to the paths. So, we can serve the
  2815. // "<page>/index.html" directly.
  2816. if (false) { var rewriteUrlForNextExport; }
  2817. return _react.default.cloneElement(child, props);
  2818. }
  2819. }
  2820. if (false) { var exact, PropTypes, warn; }
  2821. var _default = Link;
  2822. exports.default = _default;
  2823. /***/ }),
  2824. /***/ "dZ6Y":
  2825. /***/ (function(module, exports, __webpack_require__) {
  2826. "use strict";
  2827. /*
  2828. MIT License
  2829. Copyright (c) Jason Miller (https://jasonformat.com/)
  2830. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
  2831. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  2832. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  2833. */
  2834. Object.defineProperty(exports, "__esModule", {
  2835. value: true
  2836. });
  2837. function mitt() {
  2838. const all = Object.create(null);
  2839. return {
  2840. on(type, handler) {
  2841. ;
  2842. (all[type] || (all[type] = [])).push(handler);
  2843. },
  2844. off(type, handler) {
  2845. if (all[type]) {
  2846. // tslint:disable-next-line:no-bitwise
  2847. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  2848. }
  2849. },
  2850. emit(type, ...evts) {
  2851. // eslint-disable-next-line array-callback-return
  2852. ;
  2853. (all[type] || []).slice().map(handler => {
  2854. handler(...evts);
  2855. });
  2856. }
  2857. };
  2858. }
  2859. exports.default = mitt;
  2860. /***/ }),
  2861. /***/ "eDSW":
  2862. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2863. "use strict";
  2864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hexToRGBAlpha; });
  2865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return drawerWidth; });
  2866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return transition; });
  2867. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return container; });
  2868. /* unused harmony export conatinerFluid */
  2869. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return boxShadow; });
  2870. /* unused harmony export card */
  2871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return defaultFont; });
  2872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return primaryColor; });
  2873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return warningColor; });
  2874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return dangerColor; });
  2875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return successColor; });
  2876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return infoColor; });
  2877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return roseColor; });
  2878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return grayColor; });
  2879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return primaryBoxShadow; });
  2880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return infoBoxShadow; });
  2881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return successBoxShadow; });
  2882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return warningBoxShadow; });
  2883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dangerBoxShadow; });
  2884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return roseBoxShadow; });
  2885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return warningCardHeader; });
  2886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return successCardHeader; });
  2887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dangerCardHeader; });
  2888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return infoCardHeader; });
  2889. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return primaryCardHeader; });
  2890. /* unused harmony export roseCardHeader */
  2891. /* unused harmony export cardActions */
  2892. /* unused harmony export cardHeader */
  2893. /* unused harmony export defaultBoxShadow */
  2894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return title; });
  2895. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cardTitle; });
  2896. /* unused harmony export cardLink */
  2897. /* unused harmony export cardSubtitle */
  2898. 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; }
  2899. 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; }
  2900. 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; }
  2901. const hexColorToRGB = function (hexColor) {
  2902. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  2903. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  2904. return r + r + g + g + b + b;
  2905. });
  2906. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  2907. return hex_array ? {
  2908. r: parseInt(hex_array[1], 16),
  2909. // 0-255
  2910. g: parseInt(hex_array[2], 16),
  2911. // 0-255
  2912. b: parseInt(hex_array[3], 16) // 0-255
  2913. } : null;
  2914. };
  2915. const hexToRGBAlpha = function (hexColor, alpha) {
  2916. let rgb = hexColorToRGB(hexColor);
  2917. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  2918. };
  2919. const drawerWidth = 260;
  2920. const transition = {
  2921. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  2922. };
  2923. const conatinerFluid = {
  2924. paddingRight: "15px",
  2925. paddingLeft: "15px",
  2926. marginRight: "auto",
  2927. marginLeft: "auto",
  2928. width: "100%"
  2929. };
  2930. const container = _objectSpread({}, conatinerFluid, {
  2931. "@media (min-width: 576px)": {
  2932. maxWidth: "540px"
  2933. },
  2934. "@media (min-width: 768px)": {
  2935. maxWidth: "720px"
  2936. },
  2937. "@media (min-width: 992px)": {
  2938. maxWidth: "960px"
  2939. },
  2940. "@media (min-width: 1200px)": {
  2941. maxWidth: "1140px"
  2942. }
  2943. });
  2944. const boxShadow = {
  2945. 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)"
  2946. };
  2947. const card = {
  2948. display: "inline-block",
  2949. position: "relative",
  2950. width: "100%",
  2951. margin: "25px 0",
  2952. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  2953. borderRadius: "3px",
  2954. color: "rgba(0, 0, 0, 0.87)",
  2955. background: "#fff"
  2956. };
  2957. const defaultFont = {
  2958. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  2959. fontWeight: "300",
  2960. lineHeight: "1.5em"
  2961. };
  2962. const primaryColor = "#212121";
  2963. const warningColor = "#ff9800";
  2964. const dangerColor = "#f44336";
  2965. const successColor = "#4caf50";
  2966. const infoColor = "#212121";
  2967. const roseColor = "#e91e63";
  2968. const grayColor = "#ffffff";
  2969. const primaryBoxShadow = {
  2970. 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)}`
  2971. };
  2972. const infoBoxShadow = {
  2973. 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)}`
  2974. };
  2975. const successBoxShadow = {
  2976. 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)}`
  2977. };
  2978. const warningBoxShadow = {
  2979. 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)}`
  2980. };
  2981. const dangerBoxShadow = {
  2982. 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)}`
  2983. };
  2984. const roseBoxShadow = {
  2985. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  2986. };
  2987. const warningCardHeader = _objectSpread({
  2988. color: "#fff",
  2989. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  2990. }, warningBoxShadow);
  2991. const successCardHeader = _objectSpread({
  2992. color: "#fff",
  2993. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  2994. }, successBoxShadow);
  2995. const dangerCardHeader = _objectSpread({
  2996. color: "#fff",
  2997. background: "linear-gradient(60deg, #ef5350, #e53935)"
  2998. }, dangerBoxShadow);
  2999. const infoCardHeader = _objectSpread({
  3000. color: "#fff",
  3001. background: "#212121"
  3002. }, infoBoxShadow);
  3003. const primaryCardHeader = _objectSpread({
  3004. color: "#fff",
  3005. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  3006. }, primaryBoxShadow);
  3007. const roseCardHeader = _objectSpread({
  3008. color: "#fff",
  3009. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  3010. }, roseBoxShadow);
  3011. const cardActions = _objectSpread({
  3012. margin: "0 20px 10px",
  3013. paddingTop: "10px",
  3014. borderTop: "1px solid #eeeeee",
  3015. height: "auto"
  3016. }, defaultFont);
  3017. const cardHeader = {
  3018. margin: "-30px 15px 0",
  3019. borderRadius: "3px",
  3020. padding: "15px"
  3021. };
  3022. const defaultBoxShadow = {
  3023. border: "0",
  3024. borderRadius: "3px",
  3025. 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)",
  3026. padding: "10px 0",
  3027. transition: "all 150ms ease 0s"
  3028. };
  3029. const title = {
  3030. color: "#ffffff",
  3031. margin: "1.75rem 0 0.875rem",
  3032. textDecoration: "none",
  3033. fontWeight: "700",
  3034. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  3035. };
  3036. const cardTitle = _objectSpread({}, title, {
  3037. marginTop: ".625rem"
  3038. });
  3039. const cardLink = {
  3040. "& + $cardLink": {
  3041. marginLeft: "1.25rem"
  3042. }
  3043. };
  3044. const cardSubtitle = {
  3045. marginBottom: "0",
  3046. marginTop: "-.375rem"
  3047. };
  3048. /***/ }),
  3049. /***/ "elyg":
  3050. /***/ (function(module, exports, __webpack_require__) {
  3051. "use strict";
  3052. var __importDefault = this && this.__importDefault || function (mod) {
  3053. return mod && mod.__esModule ? mod : {
  3054. "default": mod
  3055. };
  3056. };
  3057. Object.defineProperty(exports, "__esModule", {
  3058. value: true
  3059. });
  3060. const url_1 = __webpack_require__("bzos");
  3061. const mitt_1 = __importDefault(__webpack_require__("dZ6Y"));
  3062. const utils_1 = __webpack_require__("g/15");
  3063. const is_dynamic_1 = __webpack_require__("/jkW");
  3064. const route_matcher_1 = __webpack_require__("gguc");
  3065. const route_regex_1 = __webpack_require__("YTqd");
  3066. const basePath = false || '';
  3067. function addBasePath(path) {
  3068. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  3069. }
  3070. exports.addBasePath = addBasePath;
  3071. function delBasePath(path) {
  3072. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  3073. }
  3074. exports.delBasePath = delBasePath;
  3075. function toRoute(path) {
  3076. return path.replace(/\/$/, '') || '/';
  3077. }
  3078. const prepareRoute = path => toRoute(!path || path === '/' ? '/index' : path);
  3079. function fetchNextData(pathname, query, isServerRender, cb) {
  3080. let attempts = isServerRender ? 3 : 1;
  3081. function getResponse() {
  3082. return fetch(utils_1.formatWithValidation({
  3083. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  3084. `/_next/data/${__NEXT_DATA__.buildId}${delBasePath(pathname)}.json`),
  3085. query
  3086. }), {
  3087. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  3088. // Cookies may also be required for `getServerSideProps`.
  3089. //
  3090. // > `fetch` won’t send cookies, unless you set the credentials init
  3091. // > option.
  3092. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  3093. //
  3094. // > For maximum browser compatibility when it comes to sending &
  3095. // > receiving cookies, always supply the `credentials: 'same-origin'`
  3096. // > option instead of relying on the default.
  3097. // https://github.com/github/fetch#caveats
  3098. credentials: 'same-origin'
  3099. }).then(res => {
  3100. if (!res.ok) {
  3101. if (--attempts > 0 && res.status >= 500) {
  3102. return getResponse();
  3103. }
  3104. throw new Error(`Failed to load static props`);
  3105. }
  3106. return res.json();
  3107. });
  3108. }
  3109. return getResponse().then(data => {
  3110. return cb ? cb(data) : data;
  3111. }).catch(err => {
  3112. // We should only trigger a server-side transition if this was caused
  3113. // on a client-side transition. Otherwise, we'd get into an infinite
  3114. // loop.
  3115. if (!isServerRender) {
  3116. ;
  3117. err.code = 'PAGE_LOAD_ERROR';
  3118. }
  3119. throw err;
  3120. });
  3121. }
  3122. class Router {
  3123. constructor(pathname, query, as, {
  3124. initialProps,
  3125. pageLoader,
  3126. App,
  3127. wrapApp,
  3128. Component,
  3129. err,
  3130. subscription,
  3131. isFallback
  3132. }) {
  3133. // Static Data Cache
  3134. this.sdc = {};
  3135. this.onPopState = e => {
  3136. if (!e.state) {
  3137. // We get state as undefined for two reasons.
  3138. // 1. With older safari (< 8) and older chrome (< 34)
  3139. // 2. When the URL changed with #
  3140. //
  3141. // In the both cases, we don't need to proceed and change the route.
  3142. // (as it's already changed)
  3143. // But we can simply replace the state with the new changes.
  3144. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  3145. // So, doing the following for (1) does no harm.
  3146. const {
  3147. pathname,
  3148. query
  3149. } = this;
  3150. this.changeState('replaceState', utils_1.formatWithValidation({
  3151. pathname,
  3152. query
  3153. }), utils_1.getURL());
  3154. return;
  3155. } // Make sure we don't re-render on initial load,
  3156. // can be caused by navigating back from an external site
  3157. if (e.state && this.isSsr && e.state.as === this.asPath && url_1.parse(e.state.url).pathname === this.pathname) {
  3158. return;
  3159. } // If the downstream application returns falsy, return.
  3160. // They will then be responsible for handling the event.
  3161. if (this._bps && !this._bps(e.state)) {
  3162. return;
  3163. }
  3164. const {
  3165. url,
  3166. as,
  3167. options
  3168. } = e.state;
  3169. if (false) {}
  3170. this.replace(url, as, options);
  3171. };
  3172. this._getStaticData = asPath => {
  3173. const pathname = prepareRoute(url_1.parse(asPath).pathname);
  3174. return true && this.sdc[pathname] ? Promise.resolve(this.sdc[pathname]) : fetchNextData(pathname, null, this.isSsr, data => this.sdc[pathname] = data);
  3175. };
  3176. this._getServerData = asPath => {
  3177. let {
  3178. pathname,
  3179. query
  3180. } = url_1.parse(asPath, true);
  3181. pathname = prepareRoute(pathname);
  3182. return fetchNextData(pathname, query, this.isSsr);
  3183. }; // represents the current component key
  3184. this.route = toRoute(pathname); // set up the component cache (by route keys)
  3185. this.components = {}; // We should not keep the cache, if there's an error
  3186. // Otherwise, this cause issues when when going back and
  3187. // come again to the errored page.
  3188. if (pathname !== '/_error') {
  3189. this.components[this.route] = {
  3190. Component,
  3191. props: initialProps,
  3192. err,
  3193. __N_SSG: initialProps && initialProps.__N_SSG,
  3194. __N_SSP: initialProps && initialProps.__N_SSP
  3195. };
  3196. }
  3197. this.components['/_app'] = {
  3198. Component: App
  3199. }; // Backwards compat for Router.router.events
  3200. // TODO: Should be remove the following major version as it was never documented
  3201. this.events = Router.events;
  3202. this.pageLoader = pageLoader;
  3203. this.pathname = pathname;
  3204. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  3205. // until after mount to prevent hydration mismatch
  3206. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  3207. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  3208. this.basePath = basePath;
  3209. this.sub = subscription;
  3210. this.clc = null;
  3211. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  3212. // back from external site
  3213. this.isSsr = true;
  3214. this.isFallback = isFallback;
  3215. if (false) {}
  3216. } // @deprecated backwards compatibility even though it's a private method.
  3217. static _rewriteUrlForNextExport(url) {
  3218. if (false) {} else {
  3219. return url;
  3220. }
  3221. }
  3222. update(route, mod) {
  3223. const Component = mod.default || mod;
  3224. const data = this.components[route];
  3225. if (!data) {
  3226. throw new Error(`Cannot update unavailable route: ${route}`);
  3227. }
  3228. const newData = Object.assign(Object.assign({}, data), {
  3229. Component,
  3230. __N_SSG: mod.__N_SSG,
  3231. __N_SSP: mod.__N_SSP
  3232. });
  3233. this.components[route] = newData; // pages/_app.js updated
  3234. if (route === '/_app') {
  3235. this.notify(this.components[this.route]);
  3236. return;
  3237. }
  3238. if (route === this.route) {
  3239. this.notify(newData);
  3240. }
  3241. }
  3242. reload() {
  3243. window.location.reload();
  3244. }
  3245. /**
  3246. * Go back in history
  3247. */
  3248. back() {
  3249. window.history.back();
  3250. }
  3251. /**
  3252. * Performs a `pushState` with arguments
  3253. * @param url of the route
  3254. * @param as masks `url` for the browser
  3255. * @param options object you can define `shallow` and other options
  3256. */
  3257. push(url, as = url, options = {}) {
  3258. return this.change('pushState', url, as, options);
  3259. }
  3260. /**
  3261. * Performs a `replaceState` with arguments
  3262. * @param url of the route
  3263. * @param as masks `url` for the browser
  3264. * @param options object you can define `shallow` and other options
  3265. */
  3266. replace(url, as = url, options = {}) {
  3267. return this.change('replaceState', url, as, options);
  3268. }
  3269. change(method, _url, _as, options) {
  3270. return new Promise((resolve, reject) => {
  3271. if (!options._h) {
  3272. this.isSsr = false;
  3273. } // marking route changes as a navigation start entry
  3274. if (utils_1.ST) {
  3275. performance.mark('routeChange');
  3276. } // If url and as provided as an object representation,
  3277. // we'll format them into the string version here.
  3278. let url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  3279. let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  3280. url = addBasePath(url);
  3281. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  3282. // "<page>/index.html" directly for the SSR page.
  3283. if (false) {}
  3284. this.abortComponentLoad(as); // If the url change is only related to a hash change
  3285. // We should not proceed. We should only change the state.
  3286. // WARNING: `_h` is an internal option for handing Next.js client-side
  3287. // hydration. Your app should _never_ use this property. It may change at
  3288. // any time without notice.
  3289. if (!options._h && this.onlyAHashChange(as)) {
  3290. this.asPath = as;
  3291. Router.events.emit('hashChangeStart', as);
  3292. this.changeState(method, url, as, options);
  3293. this.scrollToHash(as);
  3294. Router.events.emit('hashChangeComplete', as);
  3295. return resolve(true);
  3296. }
  3297. const {
  3298. pathname,
  3299. query,
  3300. protocol
  3301. } = url_1.parse(url, true);
  3302. if (!pathname || protocol) {
  3303. if (false) {}
  3304. return resolve(false);
  3305. } // If asked to change the current URL we should reload the current page
  3306. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  3307. // We also need to set the method = replaceState always
  3308. // as this should not go into the history (That's how browsers work)
  3309. // We should compare the new asPath to the current asPath, not the url
  3310. if (!this.urlIsNew(as)) {
  3311. method = 'replaceState';
  3312. }
  3313. const route = toRoute(pathname);
  3314. const {
  3315. shallow = false
  3316. } = options;
  3317. if (is_dynamic_1.isDynamicRoute(route)) {
  3318. const {
  3319. pathname: asPathname
  3320. } = url_1.parse(as);
  3321. const routeRegex = route_regex_1.getRouteRegex(route);
  3322. const routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  3323. if (!routeMatch) {
  3324. const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
  3325. if (missingParams.length > 0) {
  3326. if (false) {}
  3327. return reject(new Error(`The provided \`as\` value (${asPathname}) is incompatible with the \`href\` value (${route}). ` + `Read more: https://err.sh/zeit/next.js/incompatible-href-as`));
  3328. }
  3329. } else {
  3330. // Merge params into `query`, overwriting any specified in search
  3331. Object.assign(query, routeMatch);
  3332. }
  3333. }
  3334. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  3335. this.getRouteInfo(route, pathname, query, as, shallow).then(routeInfo => {
  3336. const {
  3337. error
  3338. } = routeInfo;
  3339. if (error && error.cancelled) {
  3340. return resolve(false);
  3341. }
  3342. Router.events.emit('beforeHistoryChange', as);
  3343. this.changeState(method, url, as, options);
  3344. if (false) {}
  3345. this.set(route, pathname, query, as, routeInfo);
  3346. if (error) {
  3347. Router.events.emit('routeChangeError', error, as);
  3348. throw error;
  3349. }
  3350. Router.events.emit('routeChangeComplete', as);
  3351. return resolve(true);
  3352. }, reject);
  3353. });
  3354. }
  3355. changeState(method, url, as, options = {}) {
  3356. if (false) {}
  3357. if (method !== 'pushState' || utils_1.getURL() !== as) {
  3358. window.history[method]({
  3359. url,
  3360. as,
  3361. options
  3362. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  3363. // Passing the empty string here should be safe against future changes to the method.
  3364. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  3365. '', as);
  3366. }
  3367. }
  3368. getRouteInfo(route, pathname, query, as, shallow = false) {
  3369. const cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  3370. // If the route is already rendered on the screen.
  3371. if (shallow && cachedRouteInfo && this.route === route) {
  3372. return Promise.resolve(cachedRouteInfo);
  3373. }
  3374. const handleError = (err, loadErrorFail) => {
  3375. return new Promise(resolve => {
  3376. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  3377. // If we can't load the page it could be one of following reasons
  3378. // 1. Page doesn't exists
  3379. // 2. Page does exist in a different zone
  3380. // 3. Internal error while loading the page
  3381. // So, doing a hard reload is the proper way to deal with this.
  3382. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  3383. // So, we need to mark it as a cancelled error and stop the routing logic.
  3384. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  3385. return resolve({
  3386. error: err
  3387. });
  3388. }
  3389. if (err.cancelled) {
  3390. // @ts-ignore TODO: fix the control flow here
  3391. return resolve({
  3392. error: err
  3393. });
  3394. }
  3395. resolve(this.fetchComponent('/_error').then(res => {
  3396. const {
  3397. page: Component
  3398. } = res;
  3399. const routeInfo = {
  3400. Component,
  3401. err
  3402. };
  3403. return new Promise(resolve => {
  3404. this.getInitialProps(Component, {
  3405. err,
  3406. pathname,
  3407. query
  3408. }).then(props => {
  3409. routeInfo.props = props;
  3410. routeInfo.error = err;
  3411. resolve(routeInfo);
  3412. }, gipErr => {
  3413. console.error('Error in error page `getInitialProps`: ', gipErr);
  3414. routeInfo.error = err;
  3415. routeInfo.props = {};
  3416. resolve(routeInfo);
  3417. });
  3418. });
  3419. }).catch(err => handleError(err, true)));
  3420. });
  3421. };
  3422. return new Promise((resolve, reject) => {
  3423. if (cachedRouteInfo) {
  3424. return resolve(cachedRouteInfo);
  3425. }
  3426. this.fetchComponent(route).then(res => resolve({
  3427. Component: res.page,
  3428. __N_SSG: res.mod.__N_SSG,
  3429. __N_SSP: res.mod.__N_SSP
  3430. }), reject);
  3431. }).then(routeInfo => {
  3432. const {
  3433. Component,
  3434. __N_SSG,
  3435. __N_SSP
  3436. } = routeInfo;
  3437. if (false) {}
  3438. return this._getData(() => __N_SSG ? this._getStaticData(as) : __N_SSP ? this._getServerData(as) : this.getInitialProps(Component, // we provide AppTree later so this needs to be `any`
  3439. {
  3440. pathname,
  3441. query,
  3442. asPath: as
  3443. })).then(props => {
  3444. routeInfo.props = props;
  3445. this.components[route] = routeInfo;
  3446. return routeInfo;
  3447. });
  3448. }).catch(handleError);
  3449. }
  3450. set(route, pathname, query, as, data) {
  3451. this.isFallback = false;
  3452. this.route = route;
  3453. this.pathname = pathname;
  3454. this.query = query;
  3455. this.asPath = as;
  3456. this.notify(data);
  3457. }
  3458. /**
  3459. * Callback to execute before replacing router state
  3460. * @param cb callback to be executed
  3461. */
  3462. beforePopState(cb) {
  3463. this._bps = cb;
  3464. }
  3465. onlyAHashChange(as) {
  3466. if (!this.asPath) return false;
  3467. const [oldUrlNoHash, oldHash] = this.asPath.split('#');
  3468. const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
  3469. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  3470. return true;
  3471. } // If the urls are change, there's more than a hash change
  3472. if (oldUrlNoHash !== newUrlNoHash) {
  3473. return false;
  3474. } // If the hash has changed, then it's a hash only change.
  3475. // This check is necessary to handle both the enter and
  3476. // leave hash === '' cases. The identity case falls through
  3477. // and is treated as a next reload.
  3478. return oldHash !== newHash;
  3479. }
  3480. scrollToHash(as) {
  3481. const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value
  3482. if (hash === '') {
  3483. window.scrollTo(0, 0);
  3484. return;
  3485. } // First we check if the element by id is found
  3486. const idEl = document.getElementById(hash);
  3487. if (idEl) {
  3488. idEl.scrollIntoView();
  3489. return;
  3490. } // If there's no element with the id, we check the `name` property
  3491. // To mirror browsers
  3492. const nameEl = document.getElementsByName(hash)[0];
  3493. if (nameEl) {
  3494. nameEl.scrollIntoView();
  3495. }
  3496. }
  3497. urlIsNew(asPath) {
  3498. return this.asPath !== asPath;
  3499. }
  3500. /**
  3501. * Prefetch page code, you may wait for the data during page rendering.
  3502. * This feature only works in production!
  3503. * @param url the href of prefetched page
  3504. * @param asPath the as path of the prefetched page
  3505. */
  3506. prefetch(url, asPath = url, options = {}) {
  3507. return new Promise((resolve, reject) => {
  3508. const {
  3509. pathname,
  3510. protocol
  3511. } = url_1.parse(url);
  3512. if (!pathname || protocol) {
  3513. if (false) {}
  3514. return;
  3515. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  3516. if (false) {}
  3517. const route = delBasePath(toRoute(pathname));
  3518. Promise.all([this.pageLoader.prefetchData(url, delBasePath(asPath)), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(() => resolve(), reject);
  3519. });
  3520. }
  3521. async fetchComponent(route) {
  3522. let cancelled = false;
  3523. const cancel = this.clc = () => {
  3524. cancelled = true;
  3525. };
  3526. route = delBasePath(route);
  3527. const componentResult = await this.pageLoader.loadPage(route);
  3528. if (cancelled) {
  3529. const error = new Error(`Abort fetching component for route: "${route}"`);
  3530. error.cancelled = true;
  3531. throw error;
  3532. }
  3533. if (cancel === this.clc) {
  3534. this.clc = null;
  3535. }
  3536. return componentResult;
  3537. }
  3538. _getData(fn) {
  3539. let cancelled = false;
  3540. const cancel = () => {
  3541. cancelled = true;
  3542. };
  3543. this.clc = cancel;
  3544. return fn().then(data => {
  3545. if (cancel === this.clc) {
  3546. this.clc = null;
  3547. }
  3548. if (cancelled) {
  3549. const err = new Error('Loading initial props cancelled');
  3550. err.cancelled = true;
  3551. throw err;
  3552. }
  3553. return data;
  3554. });
  3555. }
  3556. getInitialProps(Component, ctx) {
  3557. const {
  3558. Component: App
  3559. } = this.components['/_app'];
  3560. const AppTree = this._wrapApp(App);
  3561. ctx.AppTree = AppTree;
  3562. return utils_1.loadGetInitialProps(App, {
  3563. AppTree,
  3564. Component,
  3565. router: this,
  3566. ctx
  3567. });
  3568. }
  3569. abortComponentLoad(as) {
  3570. if (this.clc) {
  3571. const e = new Error('Route Cancelled');
  3572. e.cancelled = true;
  3573. Router.events.emit('routeChangeError', e, as);
  3574. this.clc();
  3575. this.clc = null;
  3576. }
  3577. }
  3578. notify(data) {
  3579. this.sub(data, this.components['/_app'].Component);
  3580. }
  3581. }
  3582. exports.default = Router;
  3583. Router.events = mitt_1.default();
  3584. /***/ }),
  3585. /***/ "g/15":
  3586. /***/ (function(module, exports, __webpack_require__) {
  3587. "use strict";
  3588. Object.defineProperty(exports, "__esModule", {
  3589. value: true
  3590. });
  3591. const url_1 = __webpack_require__("bzos");
  3592. /**
  3593. * Utils
  3594. */
  3595. function execOnce(fn) {
  3596. let used = false;
  3597. let result;
  3598. return (...args) => {
  3599. if (!used) {
  3600. used = true;
  3601. result = fn(...args);
  3602. }
  3603. return result;
  3604. };
  3605. }
  3606. exports.execOnce = execOnce;
  3607. function getLocationOrigin() {
  3608. const {
  3609. protocol,
  3610. hostname,
  3611. port
  3612. } = window.location;
  3613. return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  3614. }
  3615. exports.getLocationOrigin = getLocationOrigin;
  3616. function getURL() {
  3617. const {
  3618. href
  3619. } = window.location;
  3620. const origin = getLocationOrigin();
  3621. return href.substring(origin.length);
  3622. }
  3623. exports.getURL = getURL;
  3624. function getDisplayName(Component) {
  3625. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  3626. }
  3627. exports.getDisplayName = getDisplayName;
  3628. function isResSent(res) {
  3629. return res.finished || res.headersSent;
  3630. }
  3631. exports.isResSent = isResSent;
  3632. async function loadGetInitialProps(App, ctx) {
  3633. var _a;
  3634. if (false) {} // when called from _app `ctx` is nested in `ctx`
  3635. const res = ctx.res || ctx.ctx && ctx.ctx.res;
  3636. if (!App.getInitialProps) {
  3637. if (ctx.ctx && ctx.Component) {
  3638. // @ts-ignore pageProps default
  3639. return {
  3640. pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
  3641. };
  3642. }
  3643. return {};
  3644. }
  3645. const props = await App.getInitialProps(ctx);
  3646. if (res && isResSent(res)) {
  3647. return props;
  3648. }
  3649. if (!props) {
  3650. const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
  3651. throw new Error(message);
  3652. }
  3653. if (false) {}
  3654. return props;
  3655. }
  3656. exports.loadGetInitialProps = loadGetInitialProps;
  3657. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  3658. function formatWithValidation(url, options) {
  3659. if (false) {}
  3660. return url_1.format(url, options);
  3661. }
  3662. exports.formatWithValidation = formatWithValidation;
  3663. exports.SP = typeof performance !== 'undefined';
  3664. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  3665. /***/ }),
  3666. /***/ "gguc":
  3667. /***/ (function(module, exports, __webpack_require__) {
  3668. "use strict";
  3669. Object.defineProperty(exports, "__esModule", {
  3670. value: true
  3671. });
  3672. function getRouteMatcher(routeRegex) {
  3673. const {
  3674. re,
  3675. groups
  3676. } = routeRegex;
  3677. return pathname => {
  3678. const routeMatch = re.exec(pathname);
  3679. if (!routeMatch) {
  3680. return false;
  3681. }
  3682. const decode = param => {
  3683. try {
  3684. return decodeURIComponent(param);
  3685. } catch (_) {
  3686. const err = new Error('failed to decode param');
  3687. err.code = 'DECODE_FAILED';
  3688. throw err;
  3689. }
  3690. };
  3691. const params = {};
  3692. Object.keys(groups).forEach(slugName => {
  3693. const g = groups[slugName];
  3694. const m = routeMatch[g.pos];
  3695. if (m !== undefined) {
  3696. params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
  3697. }
  3698. });
  3699. return params;
  3700. };
  3701. }
  3702. exports.getRouteMatcher = getRouteMatcher;
  3703. /***/ }),
  3704. /***/ "i4t8":
  3705. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3706. "use strict";
  3707. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridItem; });
  3708. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3709. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3710. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3711. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3712. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3713. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3714. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3715. 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); }
  3716. function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  3717. function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
  3718. // nodejs library to set properties for components
  3719. // @material-ui/core components
  3720. const styles = {
  3721. grid: {
  3722. position: "relative",
  3723. width: "100%",
  3724. minHeight: "1px",
  3725. paddingRight: "15px",
  3726. paddingLeft: "15px",
  3727. flexBasis: "auto"
  3728. }
  3729. };
  3730. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3731. function GridItem(props) {
  3732. const classes = useStyles();
  3733. const {
  3734. children,
  3735. className
  3736. } = props,
  3737. rest = _objectWithoutProperties(props, ["children", "className"]);
  3738. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3739. item: true
  3740. }, rest, {
  3741. className: classes.grid + " " + className
  3742. }), children);
  3743. }
  3744. GridItem.defaultProps = {
  3745. className: ""
  3746. };
  3747. /***/ }),
  3748. /***/ "iDDF":
  3749. /***/ (function(module, exports) {
  3750. module.exports = require("@material-ui/core/TableRow");
  3751. /***/ }),
  3752. /***/ "j08L":
  3753. /***/ (function(module, exports) {
  3754. module.exports = require("@material-ui/icons/Close");
  3755. /***/ }),
  3756. /***/ "jD8W":
  3757. /***/ (function(module, exports) {
  3758. module.exports = require("@material-ui/core/Popper");
  3759. /***/ }),
  3760. /***/ "kYf9":
  3761. /***/ (function(module, exports) {
  3762. module.exports = require("next/dist/next-server/lib/utils.js");
  3763. /***/ }),
  3764. /***/ "l+AL":
  3765. /***/ (function(module, exports) {
  3766. module.exports = "/_next/static/images/Promotion_2-1-6e8c96e318e453a7db4ca1ffcc73c32d.jpg";
  3767. /***/ }),
  3768. /***/ "lWoh":
  3769. /***/ (function(module, exports) {
  3770. module.exports = require("@material-ui/core/FormControl");
  3771. /***/ }),
  3772. /***/ "mf1M":
  3773. /***/ (function(module, exports) {
  3774. module.exports = require("@material-ui/core/Grow");
  3775. /***/ }),
  3776. /***/ "mtPR":
  3777. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3778. "use strict";
  3779. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridContainer; });
  3780. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3781. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3782. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3783. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3784. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3785. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3786. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3787. 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); }
  3788. function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
  3789. function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
  3790. // nodejs library to set properties for components
  3791. // @material-ui/core components
  3792. const styles = {
  3793. grid: {
  3794. marginRight: "-15px",
  3795. marginLeft: "-15px",
  3796. width: "auto"
  3797. }
  3798. };
  3799. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3800. function GridContainer(props) {
  3801. const classes = useStyles();
  3802. const {
  3803. children,
  3804. className
  3805. } = props,
  3806. rest = _objectWithoutProperties(props, ["children", "className"]);
  3807. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3808. container: true
  3809. }, rest, {
  3810. className: classes.grid + " " + className
  3811. }), children);
  3812. }
  3813. GridContainer.defaultProps = {
  3814. className: ""
  3815. };
  3816. /***/ }),
  3817. /***/ "n1EF":
  3818. /***/ (function(module, exports) {
  3819. module.exports = require("@material-ui/core/SnackbarContent");
  3820. /***/ }),
  3821. /***/ "nJn1":
  3822. /***/ (function(module, exports) {
  3823. module.exports = "/_next/static/images/tb-07080d5d3d7b45d4452f1aae75c323f1.png";
  3824. /***/ }),
  3825. /***/ "nOHt":
  3826. /***/ (function(module, exports, __webpack_require__) {
  3827. "use strict";
  3828. var _interopRequireWildcard = __webpack_require__("7KCV");
  3829. var _interopRequireDefault = __webpack_require__("AroE");
  3830. exports.__esModule = true;
  3831. exports.useRouter = useRouter;
  3832. exports.makePublicRouterInstance = makePublicRouterInstance;
  3833. exports.createRouter = exports.withRouter = exports.default = void 0;
  3834. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  3835. var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
  3836. exports.Router = _router2.default;
  3837. exports.NextRouter = _router2.NextRouter;
  3838. var _routerContext = __webpack_require__("Osoz");
  3839. var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
  3840. exports.withRouter = _withRouter.default;
  3841. /* global window */
  3842. var singletonRouter = {
  3843. router: null,
  3844. // holds the actual router instance
  3845. readyCallbacks: [],
  3846. ready(cb) {
  3847. if (this.router) return cb();
  3848. if (false) {}
  3849. }
  3850. }; // Create public properties and methods of the router in the singletonRouter
  3851. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  3852. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  3853. var coreMethodFields = ['push', 'replace', 'reload', 'back', 'prefetch', 'beforePopState']; // Events is a static property on the router, the router doesn't have to be initialized to use it
  3854. Object.defineProperty(singletonRouter, 'events', {
  3855. get() {
  3856. return _router2.default.events;
  3857. }
  3858. });
  3859. urlPropertyFields.forEach(field => {
  3860. // Here we need to use Object.defineProperty because, we need to return
  3861. // the property assigned to the actual router
  3862. // The value might get changed as we change routes and this is the
  3863. // proper way to access it
  3864. Object.defineProperty(singletonRouter, field, {
  3865. get() {
  3866. var router = getRouter();
  3867. return router[field];
  3868. }
  3869. });
  3870. });
  3871. coreMethodFields.forEach(field => {
  3872. // We don't really know the types here, so we add them later instead
  3873. ;
  3874. singletonRouter[field] = function () {
  3875. var router = getRouter();
  3876. return router[field](...arguments);
  3877. };
  3878. });
  3879. routerEvents.forEach(event => {
  3880. singletonRouter.ready(() => {
  3881. _router2.default.events.on(event, function () {
  3882. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  3883. var _singletonRouter = singletonRouter;
  3884. if (_singletonRouter[eventField]) {
  3885. try {
  3886. _singletonRouter[eventField](...arguments);
  3887. } catch (err) {
  3888. // tslint:disable-next-line:no-console
  3889. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  3890. console.error(err.message + "\n" + err.stack);
  3891. }
  3892. }
  3893. });
  3894. });
  3895. });
  3896. function getRouter() {
  3897. if (!singletonRouter.router) {
  3898. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  3899. throw new Error(message);
  3900. }
  3901. return singletonRouter.router;
  3902. } // Export the singletonRouter and this is the public API.
  3903. var _default = singletonRouter; // Reexport the withRoute HOC
  3904. exports.default = _default;
  3905. function useRouter() {
  3906. return _react.default.useContext(_routerContext.RouterContext);
  3907. } // INTERNAL APIS
  3908. // -------------
  3909. // (do not use following exports inside the app)
  3910. // Create a router and assign it as the singleton instance.
  3911. // This is used in client side when we are initilizing the app.
  3912. // This should **not** use inside the server.
  3913. var createRouter = function createRouter() {
  3914. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  3915. args[_key] = arguments[_key];
  3916. }
  3917. singletonRouter.router = new _router2.default(...args);
  3918. singletonRouter.readyCallbacks.forEach(cb => cb());
  3919. singletonRouter.readyCallbacks = [];
  3920. return singletonRouter.router;
  3921. }; // This function is used to create the `withRouter` router instance
  3922. exports.createRouter = createRouter;
  3923. function makePublicRouterInstance(router) {
  3924. var _router = router;
  3925. var instance = {};
  3926. for (var property of urlPropertyFields) {
  3927. if (typeof _router[property] === 'object') {
  3928. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  3929. continue;
  3930. }
  3931. instance[property] = _router[property];
  3932. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  3933. instance.events = _router2.default.events;
  3934. coreMethodFields.forEach(field => {
  3935. instance[field] = function () {
  3936. return _router[field](...arguments);
  3937. };
  3938. });
  3939. return instance;
  3940. }
  3941. /***/ }),
  3942. /***/ "nybW":
  3943. /***/ (function(module, exports) {
  3944. module.exports = require("@material-ui/core/Divider");
  3945. /***/ }),
  3946. /***/ "oLCs":
  3947. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3948. "use strict";
  3949. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  3950. const footerStyle = {
  3951. block: {
  3952. color: "inherit",
  3953. padding: "0.9375rem",
  3954. fontWeight: "500",
  3955. fontSize: "12px",
  3956. textTransform: "uppercase",
  3957. borderRadius: "3px",
  3958. textDecoration: "none",
  3959. position: "relative",
  3960. display: "block"
  3961. },
  3962. left: {
  3963. float: "left!important",
  3964. display: "block"
  3965. },
  3966. right: {
  3967. padding: "15px 0",
  3968. margin: "0",
  3969. float: "right!important"
  3970. },
  3971. footer: {
  3972. padding: "0.9375rem 0",
  3973. textAlign: "center",
  3974. display: "flex",
  3975. zIndex: "2",
  3976. position: "relative"
  3977. },
  3978. a: {
  3979. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* primaryColor */ "p"],
  3980. textDecoration: "none",
  3981. backgroundColor: "transparent"
  3982. },
  3983. footerWhiteFont: {
  3984. "&,&:hover,&:focus": {
  3985. color: "#FFFFFF"
  3986. }
  3987. },
  3988. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  3989. list: {
  3990. marginBottom: "0",
  3991. padding: "0",
  3992. marginTop: "0"
  3993. },
  3994. inlineBlock: {
  3995. display: "inline-block",
  3996. padding: "0px",
  3997. width: "auto"
  3998. },
  3999. icon: {
  4000. width: "18px",
  4001. height: "18px",
  4002. position: "relative",
  4003. top: "3px"
  4004. }
  4005. };
  4006. /* harmony default export */ __webpack_exports__["a"] = (footerStyle);
  4007. /***/ }),
  4008. /***/ "qt1I":
  4009. /***/ (function(module, exports) {
  4010. module.exports = require("@material-ui/core/Paper");
  4011. /***/ }),
  4012. /***/ "rf6O":
  4013. /***/ (function(module, exports) {
  4014. module.exports = require("prop-types");
  4015. /***/ }),
  4016. /***/ "x54t":
  4017. /***/ (function(module, exports) {
  4018. module.exports = require("@material-ui/core/MenuItem");
  4019. /***/ }),
  4020. /***/ "xmQw":
  4021. /***/ (function(module, exports) {
  4022. module.exports = require("@material-ui/core/MenuList");
  4023. /***/ }),
  4024. /***/ "z+8S":
  4025. /***/ (function(module, exports) {
  4026. module.exports = require("@apollo/client");
  4027. /***/ })
  4028. /******/ });