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

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