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

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