25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

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