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.
 
 

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