Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

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