You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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