Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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