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.
 
 

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