Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

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