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

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