Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

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