Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

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