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

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