您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

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