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

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