Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

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