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

5558 lines
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 = 78);
  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. /***/ 78:
  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. /***/ "M9IG":
  1875. /***/ (function(module, exports) {
  1876. /***/ }),
  1877. /***/ "Ms0O":
  1878. /***/ (function(module, exports) {
  1879. module.exports = require("@material-ui/core/Toolbar");
  1880. /***/ }),
  1881. /***/ "Osoz":
  1882. /***/ (function(module, exports) {
  1883. module.exports = require("next/dist/next-server/lib/router-context.js");
  1884. /***/ }),
  1885. /***/ "Q01v":
  1886. /***/ (function(module, exports) {
  1887. module.exports = require("@material-ui/core/Drawer");
  1888. /***/ }),
  1889. /***/ "QOEo":
  1890. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1891. "use strict";
  1892. // EXPORTS
  1893. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomDropdown; });
  1894. // EXTERNAL MODULE: external "react"
  1895. var external_react_ = __webpack_require__("cDcd");
  1896. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1897. // EXTERNAL MODULE: external "classnames"
  1898. var external_classnames_ = __webpack_require__("K2gz");
  1899. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1900. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1901. var styles_ = __webpack_require__("9Pu4");
  1902. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  1903. var MenuItem_ = __webpack_require__("x54t");
  1904. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  1905. // EXTERNAL MODULE: external "@material-ui/core/MenuList"
  1906. var MenuList_ = __webpack_require__("xmQw");
  1907. var MenuList_default = /*#__PURE__*/__webpack_require__.n(MenuList_);
  1908. // EXTERNAL MODULE: external "@material-ui/core/ClickAwayListener"
  1909. var ClickAwayListener_ = __webpack_require__("31Yn");
  1910. var ClickAwayListener_default = /*#__PURE__*/__webpack_require__.n(ClickAwayListener_);
  1911. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  1912. var Paper_ = __webpack_require__("qt1I");
  1913. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  1914. // EXTERNAL MODULE: external "@material-ui/core/Grow"
  1915. var Grow_ = __webpack_require__("mf1M");
  1916. var Grow_default = /*#__PURE__*/__webpack_require__.n(Grow_);
  1917. // EXTERNAL MODULE: external "@material-ui/core/Divider"
  1918. var Divider_ = __webpack_require__("nybW");
  1919. var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
  1920. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  1921. var Icon_ = __webpack_require__("7vM9");
  1922. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  1923. // EXTERNAL MODULE: external "@material-ui/core/Popper"
  1924. var Popper_ = __webpack_require__("jD8W");
  1925. var Popper_default = /*#__PURE__*/__webpack_require__.n(Popper_);
  1926. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  1927. var Button = __webpack_require__("Kg+a");
  1928. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1929. var nextjs_material_kit = __webpack_require__("eDSW");
  1930. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customDropdownStyle.js
  1931. 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; }
  1932. 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; }
  1933. 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; }
  1934. const customDropdownStyle = theme => ({
  1935. popperClose: {
  1936. pointerEvents: "none"
  1937. },
  1938. pooperNav: {
  1939. [theme.breakpoints.down("sm")]: {
  1940. position: "static !important",
  1941. left: "unset !important",
  1942. top: "unset !important",
  1943. transform: "none !important",
  1944. willChange: "none !important",
  1945. "& > div": {
  1946. boxShadow: "none !important",
  1947. marginLeft: "1.5rem",
  1948. marginRight: "1.5rem",
  1949. transition: "none !important",
  1950. marginTop: "0px !important",
  1951. marginBottom: "5px !important",
  1952. padding: "0px !important"
  1953. }
  1954. }
  1955. },
  1956. dropdown: {
  1957. borderRadius: "3px",
  1958. border: "0",
  1959. boxShadow: "0 2px 5px 0 rgba(0, 0, 0, 0.26)",
  1960. top: "100%",
  1961. zIndex: "1000",
  1962. minWidth: "160px",
  1963. padding: "5px 0",
  1964. margin: "2px 0 0",
  1965. fontSize: "14px",
  1966. textAlign: "left",
  1967. listStyle: "none",
  1968. backgroundColor: "#fff",
  1969. backgroundClip: "padding-box"
  1970. },
  1971. menuList: {
  1972. padding: "0"
  1973. },
  1974. popperResponsive: {
  1975. zIndex: "1200",
  1976. position: "absolute !important",
  1977. [theme.breakpoints.down("sm")]: {
  1978. zIndex: "1640",
  1979. position: "static !important",
  1980. float: "none",
  1981. width: "auto",
  1982. marginTop: "0",
  1983. backgroundColor: "transparent",
  1984. border: "0",
  1985. boxShadow: "none",
  1986. color: "black"
  1987. }
  1988. },
  1989. dropdownItem: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  1990. fontSize: "13px",
  1991. padding: "10px 20px",
  1992. margin: "0 5px",
  1993. borderRadius: "2px",
  1994. position: "relative",
  1995. transition: "all 150ms linear",
  1996. display: "block",
  1997. clear: "both",
  1998. fontWeight: "400",
  1999. height: "fit-content",
  2000. color: "#333",
  2001. whiteSpace: "nowrap",
  2002. minHeight: "unset"
  2003. }),
  2004. blackHover: {
  2005. "&:hover": {
  2006. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)",
  2007. backgroundColor: "#212121",
  2008. color: "#fff"
  2009. }
  2010. },
  2011. primaryHover: {
  2012. "&:hover": _objectSpread({
  2013. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2014. color: "#FFFFFF"
  2015. }, nextjs_material_kit["n" /* primaryBoxShadow */])
  2016. },
  2017. infoHover: {
  2018. "&:hover": _objectSpread({
  2019. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2020. color: "#FFFFFF"
  2021. }, nextjs_material_kit["k" /* infoBoxShadow */])
  2022. },
  2023. successHover: {
  2024. "&:hover": _objectSpread({
  2025. backgroundColor: nextjs_material_kit["u" /* successColor */],
  2026. color: "#FFFFFF"
  2027. }, nextjs_material_kit["s" /* successBoxShadow */])
  2028. },
  2029. warningHover: {
  2030. "&:hover": _objectSpread({
  2031. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  2032. color: "#FFFFFF"
  2033. }, nextjs_material_kit["x" /* warningBoxShadow */])
  2034. },
  2035. dangerHover: {
  2036. "&:hover": _objectSpread({
  2037. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  2038. color: "#FFFFFF"
  2039. }, nextjs_material_kit["d" /* dangerBoxShadow */])
  2040. },
  2041. roseHover: {
  2042. "&:hover": _objectSpread({
  2043. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  2044. color: "#FFFFFF"
  2045. }, nextjs_material_kit["q" /* roseBoxShadow */])
  2046. },
  2047. dropdownItemRTL: {
  2048. textAlign: "right"
  2049. },
  2050. dropdownDividerItem: {
  2051. margin: "5px 0",
  2052. backgroundColor: "rgba(0, 0, 0, 0.12)",
  2053. height: "1px",
  2054. overflow: "hidden"
  2055. },
  2056. buttonIcon: {
  2057. width: "20px",
  2058. height: "20px"
  2059. },
  2060. caret: {
  2061. transition: "all 150ms ease-in",
  2062. display: "inline-block",
  2063. width: "0",
  2064. height: "0",
  2065. marginLeft: "4px",
  2066. verticalAlign: "middle",
  2067. borderTop: "4px solid",
  2068. borderRight: "4px solid transparent",
  2069. borderLeft: "4px solid transparent"
  2070. },
  2071. caretActive: {
  2072. transform: "rotate(180deg)"
  2073. },
  2074. caretRTL: {
  2075. marginRight: "4px"
  2076. },
  2077. dropdownHeader: {
  2078. display: "block",
  2079. padding: "0.1875rem 1.25rem",
  2080. fontSize: "0.75rem",
  2081. lineHeight: "1.428571",
  2082. color: "#777",
  2083. whiteSpace: "nowrap",
  2084. fontWeight: "inherit",
  2085. marginTop: "10px",
  2086. minHeight: "unset",
  2087. "&:hover,&:focus": {
  2088. backgroundColor: "transparent",
  2089. cursor: "auto"
  2090. }
  2091. },
  2092. noLiPadding: {
  2093. padding: "0"
  2094. }
  2095. });
  2096. /* harmony default export */ var components_customDropdownStyle = (customDropdownStyle);
  2097. // CONCATENATED MODULE: ./components/CustomDropdown/CustomDropdown.js
  2098. var __jsx = external_react_default.a.createElement;
  2099. 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); }
  2100. // nodejs library that concatenates classes
  2101. // nodejs library to set properties for components
  2102. // @material-ui/core components
  2103. // core components
  2104. const useStyles = Object(styles_["makeStyles"])(components_customDropdownStyle);
  2105. function CustomDropdown(props) {
  2106. const [anchorEl, setAnchorEl] = external_react_default.a.useState(null);
  2107. const handleClick = event => {
  2108. if (anchorEl && anchorEl.contains(event.target)) {
  2109. setAnchorEl(null);
  2110. } else {
  2111. setAnchorEl(event.currentTarget);
  2112. }
  2113. };
  2114. const handleClose = param => {
  2115. setAnchorEl(null);
  2116. if (props && props.onClick) {
  2117. props.onClick(param);
  2118. }
  2119. };
  2120. const handleCloseAway = event => {
  2121. if (anchorEl.contains(event.target)) {
  2122. return;
  2123. }
  2124. setAnchorEl(null);
  2125. };
  2126. const classes = useStyles();
  2127. const {
  2128. buttonText,
  2129. buttonIcon,
  2130. dropdownList,
  2131. buttonProps,
  2132. dropup,
  2133. dropdownHeader,
  2134. caret,
  2135. hoverColor,
  2136. left,
  2137. rtlActive,
  2138. noLiPadding,
  2139. navDropdown
  2140. } = props;
  2141. const caretClasses = external_classnames_default()({
  2142. [classes.caret]: true,
  2143. [classes.caretActive]: Boolean(anchorEl),
  2144. [classes.caretRTL]: rtlActive
  2145. });
  2146. const dropdownItem = external_classnames_default()({
  2147. [classes.dropdownItem]: true,
  2148. [classes[hoverColor + "Hover"]]: true,
  2149. [classes.noLiPadding]: noLiPadding,
  2150. [classes.dropdownItemRTL]: rtlActive
  2151. });
  2152. let icon = null;
  2153. switch (typeof buttonIcon) {
  2154. case "object":
  2155. icon = __jsx(props.buttonIcon, {
  2156. className: classes.buttonIcon
  2157. });
  2158. break;
  2159. case "string":
  2160. icon = __jsx(Icon_default.a, {
  2161. className: classes.buttonIcon
  2162. }, props.buttonIcon);
  2163. break;
  2164. default:
  2165. icon = null;
  2166. break;
  2167. }
  2168. return __jsx("div", null, __jsx("div", null, __jsx(Button["a" /* default */], _extends({
  2169. "aria-label": "Notifications",
  2170. "aria-owns": anchorEl ? "menu-list" : null,
  2171. "aria-haspopup": "true"
  2172. }, buttonProps, {
  2173. onClick: handleClick
  2174. }), icon, buttonText !== undefined ? buttonText : null, caret ? __jsx("b", {
  2175. className: caretClasses
  2176. }) : null)), __jsx(Popper_default.a, {
  2177. open: Boolean(anchorEl),
  2178. anchorEl: anchorEl,
  2179. transition: true,
  2180. disablePortal: true,
  2181. placement: dropup ? left ? "top-start" : "top" : left ? "bottom-start" : "bottom",
  2182. className: external_classnames_default()({
  2183. [classes.popperClose]: !anchorEl,
  2184. [classes.popperResponsive]: true,
  2185. [classes.pooperNav]: Boolean(anchorEl) && navDropdown
  2186. })
  2187. }, () => __jsx(Grow_default.a, {
  2188. in: Boolean(anchorEl),
  2189. id: "menu-list",
  2190. style: dropup ? {
  2191. transformOrigin: "0 100% 0"
  2192. } : {
  2193. transformOrigin: "0 0 0"
  2194. }
  2195. }, __jsx(Paper_default.a, {
  2196. className: classes.dropdown
  2197. }, __jsx(ClickAwayListener_default.a, {
  2198. onClickAway: handleCloseAway
  2199. }, __jsx(MenuList_default.a, {
  2200. role: "menu",
  2201. className: classes.menuList
  2202. }, dropdownHeader !== undefined ? __jsx(MenuItem_default.a, {
  2203. onClick: () => handleClose(dropdownHeader),
  2204. className: classes.dropdownHeader
  2205. }, dropdownHeader) : null, dropdownList.map((prop, key) => {
  2206. if (prop.divider) {
  2207. return __jsx(Divider_default.a, {
  2208. key: key,
  2209. onClick: () => handleClose("divider"),
  2210. className: classes.dropdownDividerItem
  2211. });
  2212. }
  2213. return __jsx(MenuItem_default.a, {
  2214. key: key,
  2215. onClick: () => handleClose(prop),
  2216. className: dropdownItem
  2217. }, prop);
  2218. })))))));
  2219. }
  2220. CustomDropdown.defaultProps = {
  2221. caret: true,
  2222. hoverColor: "primary"
  2223. };
  2224. /***/ }),
  2225. /***/ "QzC/":
  2226. /***/ (function(module, exports) {
  2227. module.exports = require("react-swipeable-views");
  2228. /***/ }),
  2229. /***/ "SJC6":
  2230. /***/ (function(module, exports) {
  2231. module.exports = require("@material-ui/core/Tabs");
  2232. /***/ }),
  2233. /***/ "SuH/":
  2234. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2235. "use strict";
  2236. // EXPORTS
  2237. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ NavPills; });
  2238. // EXTERNAL MODULE: external "react"
  2239. var external_react_ = __webpack_require__("cDcd");
  2240. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2241. // EXTERNAL MODULE: external "classnames"
  2242. var external_classnames_ = __webpack_require__("K2gz");
  2243. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2244. // EXTERNAL MODULE: external "react-swipeable-views"
  2245. var external_react_swipeable_views_ = __webpack_require__("QzC/");
  2246. var external_react_swipeable_views_default = /*#__PURE__*/__webpack_require__.n(external_react_swipeable_views_);
  2247. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2248. var styles_ = __webpack_require__("9Pu4");
  2249. // EXTERNAL MODULE: external "@material-ui/core/Tabs"
  2250. var Tabs_ = __webpack_require__("SJC6");
  2251. var Tabs_default = /*#__PURE__*/__webpack_require__.n(Tabs_);
  2252. // EXTERNAL MODULE: external "@material-ui/core/Tab"
  2253. var Tab_ = __webpack_require__("6Yxu");
  2254. var Tab_default = /*#__PURE__*/__webpack_require__.n(Tab_);
  2255. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  2256. var GridContainer = __webpack_require__("mtPR");
  2257. // EXTERNAL MODULE: ./components/Grid/GridItem.js
  2258. var GridItem = __webpack_require__("i4t8");
  2259. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  2260. var nextjs_material_kit = __webpack_require__("eDSW");
  2261. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/navPillsStyle.js
  2262. const navPillsStyle = theme => ({
  2263. root: {
  2264. marginTop: "20px",
  2265. paddingLeft: "0",
  2266. marginBottom: "0",
  2267. overflow: "visible !important",
  2268. lineHeight: "24px",
  2269. textTransform: "uppercase",
  2270. fontSize: "12px",
  2271. fontWeight: "500",
  2272. position: "relative",
  2273. display: "block",
  2274. color: "inherit"
  2275. },
  2276. flexContainer: {
  2277. [theme.breakpoints.down("xs")]: {
  2278. display: "flex",
  2279. flexWrap: "wrap"
  2280. }
  2281. },
  2282. displayNone: {
  2283. display: "none !important"
  2284. },
  2285. fixed: {
  2286. overflow: "visible !important"
  2287. },
  2288. horizontalDisplay: {
  2289. display: "block"
  2290. },
  2291. pills: {
  2292. float: "left",
  2293. position: "relative",
  2294. display: "block",
  2295. borderRadius: "30px",
  2296. minWidth: "100px",
  2297. textAlign: "center",
  2298. transition: "all .3s",
  2299. padding: "10px 15px",
  2300. color: "#555555",
  2301. height: "auto",
  2302. opacity: "1",
  2303. maxWidth: "100%",
  2304. margin: "0 5px"
  2305. },
  2306. pillsWithIcons: {
  2307. borderRadius: "4px"
  2308. },
  2309. tabIcon: {
  2310. width: "30px",
  2311. height: "30px",
  2312. display: "block",
  2313. margin: "15px 0 !important",
  2314. "&, & *": {
  2315. letterSpacing: "normal !important"
  2316. }
  2317. },
  2318. horizontalPills: {
  2319. width: "100%",
  2320. float: "none !important",
  2321. "& + button": {
  2322. margin: "10px 0"
  2323. }
  2324. },
  2325. contentWrapper: {
  2326. marginTop: "20px"
  2327. },
  2328. primary: {
  2329. "&,&:hover": {
  2330. color: "#FFFFFF",
  2331. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2332. 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)}`
  2333. }
  2334. },
  2335. info: {
  2336. "&,&:hover": {
  2337. color: "#FFFFFF",
  2338. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2339. 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)}`
  2340. }
  2341. },
  2342. success: {
  2343. "&,&:hover": {
  2344. color: "#FFFFFF",
  2345. backgroundColor: nextjs_material_kit["u" /* successColor */],
  2346. 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)}`
  2347. }
  2348. },
  2349. warning: {
  2350. "&,&:hover": {
  2351. color: "#FFFFFF",
  2352. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  2353. 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)}`
  2354. }
  2355. },
  2356. danger: {
  2357. "&,&:hover": {
  2358. color: "#FFFFFF",
  2359. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  2360. 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)}`
  2361. }
  2362. },
  2363. rose: {
  2364. "&,&:hover": {
  2365. color: "#FFFFFF",
  2366. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  2367. 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)}`
  2368. }
  2369. },
  2370. alignCenter: {
  2371. alignItems: "center",
  2372. justifyContent: "center"
  2373. },
  2374. tabWrapper: {
  2375. color: "inherit",
  2376. position: "relative",
  2377. fontSize: "12px",
  2378. lineHeight: "24px",
  2379. fontWeight: "500",
  2380. textTransform: "uppercase",
  2381. "&,& *": {
  2382. letterSpacing: "normal"
  2383. }
  2384. }
  2385. });
  2386. /* harmony default export */ var components_navPillsStyle = (navPillsStyle);
  2387. // CONCATENATED MODULE: ./components/NavPills/NavPills.js
  2388. var __jsx = external_react_default.a.createElement;
  2389. 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); }
  2390. // nodejs library that concatenates classes
  2391. // nodejs library to set properties for components
  2392. // @material-ui/core components
  2393. // core components
  2394. const useStyles = Object(styles_["makeStyles"])(components_navPillsStyle);
  2395. function NavPills(props) {
  2396. const [active, setActive] = external_react_default.a.useState(props.active);
  2397. const handleChange = (event, active) => {
  2398. setActive(active);
  2399. };
  2400. const handleChangeIndex = index => {
  2401. setActive(index);
  2402. };
  2403. const classes = useStyles();
  2404. const {
  2405. tabs,
  2406. direction,
  2407. color,
  2408. horizontal,
  2409. alignCenter
  2410. } = props;
  2411. const flexContainerClasses = external_classnames_default()({
  2412. [classes.flexContainer]: true,
  2413. [classes.horizontalDisplay]: horizontal !== undefined
  2414. });
  2415. const tabButtons = __jsx(Tabs_default.a, {
  2416. classes: {
  2417. root: classes.root,
  2418. fixed: classes.fixed,
  2419. flexContainer: flexContainerClasses,
  2420. indicator: classes.displayNone
  2421. },
  2422. value: active,
  2423. onChange: handleChange,
  2424. centered: alignCenter
  2425. }, tabs.map((prop, key) => {
  2426. var icon = {};
  2427. if (prop.tabIcon !== undefined) {
  2428. icon["icon"] = __jsx(prop.tabIcon, {
  2429. className: classes.tabIcon
  2430. });
  2431. }
  2432. const pillsClasses = external_classnames_default()({
  2433. [classes.pills]: true,
  2434. [classes.horizontalPills]: horizontal !== undefined,
  2435. [classes.pillsWithIcons]: prop.tabIcon !== undefined
  2436. });
  2437. return __jsx(Tab_default.a, _extends({
  2438. label: prop.tabButton,
  2439. key: key
  2440. }, icon, {
  2441. classes: {
  2442. root: pillsClasses,
  2443. selected: classes[color],
  2444. wrapper: classes.tabWrapper
  2445. }
  2446. }));
  2447. }));
  2448. const tabContent = __jsx("div", {
  2449. className: classes.contentWrapper
  2450. }, __jsx(external_react_swipeable_views_default.a, {
  2451. axis: direction === "rtl" ? "x-reverse" : "x",
  2452. index: active,
  2453. onChangeIndex: handleChangeIndex
  2454. }, tabs.map((prop, key) => {
  2455. return __jsx("div", {
  2456. className: classes.tabContent,
  2457. key: key
  2458. }, prop.tabContent);
  2459. })));
  2460. 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);
  2461. }
  2462. NavPills.defaultProps = {
  2463. active: 0,
  2464. color: "primary"
  2465. };
  2466. /***/ }),
  2467. /***/ "UsYt":
  2468. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2469. "use strict";
  2470. // EXPORTS
  2471. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CardBody; });
  2472. // EXTERNAL MODULE: external "react"
  2473. var external_react_ = __webpack_require__("cDcd");
  2474. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2475. // EXTERNAL MODULE: external "classnames"
  2476. var external_classnames_ = __webpack_require__("K2gz");
  2477. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2478. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2479. var styles_ = __webpack_require__("9Pu4");
  2480. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardBodyStyle.js
  2481. const cardBodyStyle = {
  2482. cardBody: {
  2483. padding: "0.9375rem 1.875rem",
  2484. flex: "1 1 auto"
  2485. }
  2486. };
  2487. /* harmony default export */ var components_cardBodyStyle = (cardBodyStyle);
  2488. // CONCATENATED MODULE: ./components/Card/CardBody.js
  2489. var __jsx = external_react_default.a.createElement;
  2490. 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); }
  2491. 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; }
  2492. 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; }
  2493. // nodejs library that concatenates classes
  2494. // nodejs library to set properties for components
  2495. // @material-ui/core components
  2496. // @material-ui/icons
  2497. // core components
  2498. const useStyles = Object(styles_["makeStyles"])(components_cardBodyStyle);
  2499. function CardBody(props) {
  2500. const classes = useStyles();
  2501. const {
  2502. className,
  2503. children
  2504. } = props,
  2505. rest = _objectWithoutProperties(props, ["className", "children"]);
  2506. const cardBodyClasses = external_classnames_default()({
  2507. [classes.cardBody]: true,
  2508. [className]: className !== undefined
  2509. });
  2510. return __jsx("div", _extends({
  2511. className: cardBodyClasses
  2512. }, rest), children);
  2513. }
  2514. /***/ }),
  2515. /***/ "Vjj2":
  2516. /***/ (function(module, exports) {
  2517. module.exports = require("cookies");
  2518. /***/ }),
  2519. /***/ "Wh1t":
  2520. /***/ (function(module, exports) {
  2521. module.exports = require("@material-ui/core/Button");
  2522. /***/ }),
  2523. /***/ "Y8uC":
  2524. /***/ (function(module, exports) {
  2525. module.exports = require("@material-ui/core/Hidden");
  2526. /***/ }),
  2527. /***/ "YFqc":
  2528. /***/ (function(module, exports, __webpack_require__) {
  2529. module.exports = __webpack_require__("cTJO")
  2530. /***/ }),
  2531. /***/ "YTqd":
  2532. /***/ (function(module, exports, __webpack_require__) {
  2533. "use strict";
  2534. Object.defineProperty(exports, "__esModule", {
  2535. value: true
  2536. }); // this isn't importing the escape-string-regex module
  2537. // to reduce bytes
  2538. function escapeRegex(str) {
  2539. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  2540. }
  2541. function getRouteRegex(normalizedRoute) {
  2542. // Escape all characters that could be considered RegEx
  2543. const escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  2544. const groups = {};
  2545. let groupIndex = 1;
  2546. const parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2547. const isCatchAll = /^(\\\.){3}/.test($1);
  2548. groups[$1 // Un-escape key
  2549. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  2550. ] = {
  2551. pos: groupIndex++,
  2552. repeat: isCatchAll
  2553. };
  2554. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  2555. });
  2556. let namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  2557. // while generating routes-manifest
  2558. if (true) {
  2559. namedParameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2560. const isCatchAll = /^(\\\.){3}/.test($1);
  2561. const key = $1 // Un-escape key
  2562. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '');
  2563. return isCatchAll ? `/(?<${escapeRegex(key)}>.+?)` : `/(?<${escapeRegex(key)}>[^/]+?)`;
  2564. });
  2565. }
  2566. return Object.assign({
  2567. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  2568. groups
  2569. }, namedParameterizedRoute ? {
  2570. namedRegex: `^${namedParameterizedRoute}(?:/)?$`
  2571. } : {});
  2572. }
  2573. exports.getRouteRegex = getRouteRegex;
  2574. /***/ }),
  2575. /***/ "Z2Lm":
  2576. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2577. "use strict";
  2578. // EXPORTS
  2579. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Parallax; });
  2580. // EXTERNAL MODULE: external "react"
  2581. var external_react_ = __webpack_require__("cDcd");
  2582. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2583. // EXTERNAL MODULE: external "classnames"
  2584. var external_classnames_ = __webpack_require__("K2gz");
  2585. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2586. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2587. var styles_ = __webpack_require__("9Pu4");
  2588. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/parallaxStyle.js
  2589. const parallaxStyle = theme => ({
  2590. parallax: {
  2591. height: "90vh",
  2592. maxHeight: "1000px",
  2593. overflow: "hidden",
  2594. position: "relative",
  2595. backgroundPosition: "center top",
  2596. backgroundSize: "cover",
  2597. margin: "0",
  2598. padding: "0",
  2599. border: "0",
  2600. display: "flex",
  2601. alignItems: "center"
  2602. },
  2603. filter: {
  2604. "&:before": {
  2605. background: "#212121"
  2606. },
  2607. "&:after,&:before": {
  2608. position: "absolute",
  2609. zIndex: "1",
  2610. width: "100%",
  2611. height: "100%",
  2612. display: "block",
  2613. left: "0",
  2614. top: "0",
  2615. content: "''"
  2616. }
  2617. },
  2618. small: {
  2619. height: "380px"
  2620. },
  2621. parallaxResponsive: {
  2622. [theme.breakpoints.down("md")]: {
  2623. minHeight: "660px"
  2624. }
  2625. }
  2626. });
  2627. /* harmony default export */ var components_parallaxStyle = (parallaxStyle);
  2628. // CONCATENATED MODULE: ./components/Parallax/Parallax.js
  2629. var __jsx = external_react_default.a.createElement;
  2630. 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; }
  2631. 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; }
  2632. 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; }
  2633. // nodejs library that concatenates classes
  2634. // nodejs library to set properties for components
  2635. // @material-ui/core components
  2636. // core components
  2637. const useStyles = Object(styles_["makeStyles"])(components_parallaxStyle);
  2638. function Parallax(props) {
  2639. let windowScrollTop; // if (window.innerWidth >= 768) {
  2640. // windowScrollTop = window.pageYOffset / 3;
  2641. // } else {
  2642. // windowScrollTop = 0;
  2643. // }
  2644. const [transform, setTransform] = external_react_default.a.useState("translate3d(0,0px,0)");
  2645. external_react_default.a.useEffect(() => {
  2646. if (window.innerWidth >= 768) {
  2647. window.addEventListener("scroll", resetTransform);
  2648. }
  2649. return function cleanup() {
  2650. if (window.innerWidth >= 768) {
  2651. window.removeEventListener("scroll", resetTransform);
  2652. }
  2653. };
  2654. });
  2655. const resetTransform = () => {
  2656. var windowScrollTop = window.pageYOffset / 3;
  2657. setTransform("translate3d(0," + windowScrollTop + "px,0)");
  2658. };
  2659. const {
  2660. filter,
  2661. className,
  2662. children,
  2663. style,
  2664. image,
  2665. small,
  2666. responsive
  2667. } = props;
  2668. const classes = useStyles();
  2669. const parallaxClasses = external_classnames_default()({
  2670. [classes.parallax]: true,
  2671. [classes.filter]: filter,
  2672. [classes.small]: small,
  2673. [classes.parallaxResponsive]: responsive,
  2674. [className]: className !== undefined
  2675. });
  2676. return __jsx("div", {
  2677. className: parallaxClasses,
  2678. style: _objectSpread({}, style, {
  2679. backgroundImage: "url(" + image + ")",
  2680. transform: transform
  2681. })
  2682. }, children);
  2683. }
  2684. /***/ }),
  2685. /***/ "aIa2":
  2686. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2687. "use strict";
  2688. // EXPORTS
  2689. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Quote; });
  2690. // EXTERNAL MODULE: external "react"
  2691. var external_react_ = __webpack_require__("cDcd");
  2692. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2693. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2694. var styles_ = __webpack_require__("9Pu4");
  2695. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  2696. var nextjs_material_kit = __webpack_require__("eDSW");
  2697. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/typographyStyle.js
  2698. 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; }
  2699. 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; }
  2700. 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; }
  2701. const typographyStyle = {
  2702. defaultFontStyle: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  2703. fontSize: "14px"
  2704. }),
  2705. defaultHeaderMargins: {
  2706. marginTop: "20px",
  2707. marginBottom: "10px"
  2708. },
  2709. quote: {
  2710. padding: "10px 20px",
  2711. margin: "0 0 20px",
  2712. fontSize: "17.5px",
  2713. borderLeft: "5px solid #eee"
  2714. },
  2715. quoteText: {
  2716. margin: "0 0 10px",
  2717. fontStyle: "italic"
  2718. },
  2719. quoteAuthor: {
  2720. display: "block",
  2721. fontSize: "80%",
  2722. lineHeight: "1.42857143",
  2723. color: "#777"
  2724. },
  2725. mutedText: {
  2726. color: "#777"
  2727. },
  2728. primaryText: {
  2729. color: nextjs_material_kit["p" /* primaryColor */]
  2730. },
  2731. infoText: {
  2732. color: nextjs_material_kit["m" /* infoColor */]
  2733. },
  2734. successText: {
  2735. color: nextjs_material_kit["u" /* successColor */]
  2736. },
  2737. warningText: {
  2738. color: nextjs_material_kit["z" /* warningColor */]
  2739. },
  2740. dangerText: {
  2741. color: nextjs_material_kit["f" /* dangerColor */]
  2742. },
  2743. smallText: {
  2744. fontSize: "65%",
  2745. fontWeight: "400",
  2746. lineHeight: "1",
  2747. color: "#777"
  2748. }
  2749. };
  2750. /* harmony default export */ var components_typographyStyle = (typographyStyle);
  2751. // CONCATENATED MODULE: ./components/Typography/Quote.js
  2752. var __jsx = external_react_default.a.createElement;
  2753. // nodejs library to set properties for components
  2754. // @material-ui/core components
  2755. // core components
  2756. const useStyles = Object(styles_["makeStyles"])(components_typographyStyle);
  2757. function Quote(props) {
  2758. const {
  2759. text,
  2760. author
  2761. } = props;
  2762. const classes = useStyles();
  2763. return __jsx("blockquote", {
  2764. className: classes.defaultFontStyle + " " + classes.quote
  2765. }, __jsx("p", {
  2766. className: classes.quoteText
  2767. }, text), __jsx("small", {
  2768. className: classes.quoteAuthor
  2769. }, author));
  2770. }
  2771. /***/ }),
  2772. /***/ "bhG4":
  2773. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2774. "use strict";
  2775. /* harmony import */ var _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  2776. const componentsStyle = {
  2777. container: _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  2778. brand: {
  2779. color: "#FFFFFF",
  2780. textAlign: "left"
  2781. },
  2782. title: {
  2783. fontSize: "4.2rem",
  2784. fontWeight: "600",
  2785. display: "inline-block",
  2786. position: "relative"
  2787. },
  2788. subtitle: {
  2789. fontSize: "1.313rem",
  2790. maxWidth: "510px",
  2791. margin: "10px 0 0"
  2792. },
  2793. main: {
  2794. background: "#FFFFFF",
  2795. position: "relative",
  2796. zIndex: "3"
  2797. },
  2798. mainRaised: {
  2799. margin: "-60px 30px 0px",
  2800. borderRadius: "6px",
  2801. 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)",
  2802. "@media (max-width: 830px)": {
  2803. marginLeft: "10px",
  2804. marginRight: "10px"
  2805. }
  2806. },
  2807. link: {
  2808. textDecoration: "none"
  2809. },
  2810. textCenter: {
  2811. textAlign: "center"
  2812. }
  2813. };
  2814. /* harmony default export */ __webpack_exports__["a"] = (componentsStyle);
  2815. /***/ }),
  2816. /***/ "bx/+":
  2817. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2818. "use strict";
  2819. __webpack_require__.r(__webpack_exports__);
  2820. // Apollo Value Configuration
  2821. const ApolloConfig = {
  2822. graphql_uri: process.env.API_GRAPHQL_URI
  2823. };
  2824. /* harmony default export */ __webpack_exports__["default"] = (ApolloConfig);
  2825. /***/ }),
  2826. /***/ "bzos":
  2827. /***/ (function(module, exports) {
  2828. module.exports = require("url");
  2829. /***/ }),
  2830. /***/ "c25J":
  2831. /***/ (function(module, exports) {
  2832. module.exports = require("@material-ui/core/ListItem");
  2833. /***/ }),
  2834. /***/ "cDcd":
  2835. /***/ (function(module, exports) {
  2836. module.exports = require("react");
  2837. /***/ }),
  2838. /***/ "cTJO":
  2839. /***/ (function(module, exports, __webpack_require__) {
  2840. "use strict";
  2841. var _interopRequireDefault = __webpack_require__("AroE");
  2842. var _interopRequireWildcard = __webpack_require__("7KCV");
  2843. exports.__esModule = true;
  2844. exports.default = void 0;
  2845. var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
  2846. var _url = __webpack_require__("bzos");
  2847. var _utils = __webpack_require__("kYf9");
  2848. var _router = _interopRequireDefault(__webpack_require__("nOHt"));
  2849. var _router2 = __webpack_require__("elyg");
  2850. function isLocal(href) {
  2851. var url = (0, _url.parse)(href, false, true);
  2852. var origin = (0, _url.parse)((0, _utils.getLocationOrigin)(), false, true);
  2853. return !url.host || url.protocol === origin.protocol && url.host === origin.host;
  2854. }
  2855. function memoizedFormatUrl(formatFunc) {
  2856. var lastHref = null;
  2857. var lastAs = null;
  2858. var lastResult = null;
  2859. return (href, as) => {
  2860. if (lastResult && href === lastHref && as === lastAs) {
  2861. return lastResult;
  2862. }
  2863. var result = formatFunc(href, as);
  2864. lastHref = href;
  2865. lastAs = as;
  2866. lastResult = result;
  2867. return result;
  2868. };
  2869. }
  2870. function formatUrl(url) {
  2871. return url && typeof url === 'object' ? (0, _utils.formatWithValidation)(url) : url;
  2872. }
  2873. var observer;
  2874. var listeners = new Map();
  2875. var IntersectionObserver = false ? undefined : null;
  2876. var prefetched = {};
  2877. function getObserver() {
  2878. // Return shared instance of IntersectionObserver if already created
  2879. if (observer) {
  2880. return observer;
  2881. } // Only create shared IntersectionObserver if supported in browser
  2882. if (!IntersectionObserver) {
  2883. return undefined;
  2884. }
  2885. return observer = new IntersectionObserver(entries => {
  2886. entries.forEach(entry => {
  2887. if (!listeners.has(entry.target)) {
  2888. return;
  2889. }
  2890. var cb = listeners.get(entry.target);
  2891. if (entry.isIntersecting || entry.intersectionRatio > 0) {
  2892. observer.unobserve(entry.target);
  2893. listeners.delete(entry.target);
  2894. cb();
  2895. }
  2896. });
  2897. }, {
  2898. rootMargin: '200px'
  2899. });
  2900. }
  2901. var listenToIntersections = (el, cb) => {
  2902. var observer = getObserver();
  2903. if (!observer) {
  2904. return () => {};
  2905. }
  2906. observer.observe(el);
  2907. listeners.set(el, cb);
  2908. return () => {
  2909. try {
  2910. observer.unobserve(el);
  2911. } catch (err) {
  2912. console.error(err);
  2913. }
  2914. listeners.delete(el);
  2915. };
  2916. };
  2917. class Link extends _react.Component {
  2918. constructor(props) {
  2919. super(props);
  2920. this.p = void 0;
  2921. this.cleanUpListeners = () => {};
  2922. this.formatUrls = memoizedFormatUrl((href, asHref) => {
  2923. return {
  2924. href: (0, _router2.addBasePath)(formatUrl(href)),
  2925. as: asHref ? (0, _router2.addBasePath)(formatUrl(asHref)) : asHref
  2926. };
  2927. });
  2928. this.linkClicked = e => {
  2929. var {
  2930. nodeName,
  2931. target
  2932. } = e.currentTarget;
  2933. if (nodeName === 'A' && (target && target !== '_self' || e.metaKey || e.ctrlKey || e.shiftKey || e.nativeEvent && e.nativeEvent.which === 2)) {
  2934. // ignore click for new tab / new window behavior
  2935. return;
  2936. }
  2937. var {
  2938. href,
  2939. as
  2940. } = this.formatUrls(this.props.href, this.props.as);
  2941. if (!isLocal(href)) {
  2942. // ignore click if it's outside our scope (e.g. https://google.com)
  2943. return;
  2944. }
  2945. var {
  2946. pathname
  2947. } = window.location;
  2948. href = (0, _url.resolve)(pathname, href);
  2949. as = as ? (0, _url.resolve)(pathname, as) : href;
  2950. e.preventDefault(); // avoid scroll for urls with anchor refs
  2951. var {
  2952. scroll
  2953. } = this.props;
  2954. if (scroll == null) {
  2955. scroll = as.indexOf('#') < 0;
  2956. } // replace state instead of push if prop is present
  2957. _router.default[this.props.replace ? 'replace' : 'push'](href, as, {
  2958. shallow: this.props.shallow
  2959. }).then(success => {
  2960. if (!success) return;
  2961. if (scroll) {
  2962. window.scrollTo(0, 0);
  2963. document.body.focus();
  2964. }
  2965. });
  2966. };
  2967. if (false) {}
  2968. this.p = props.prefetch !== false;
  2969. }
  2970. componentWillUnmount() {
  2971. this.cleanUpListeners();
  2972. }
  2973. getPaths() {
  2974. var {
  2975. pathname
  2976. } = window.location;
  2977. var {
  2978. href: parsedHref,
  2979. as: parsedAs
  2980. } = this.formatUrls(this.props.href, this.props.as);
  2981. var resolvedHref = (0, _url.resolve)(pathname, parsedHref);
  2982. return [resolvedHref, parsedAs ? (0, _url.resolve)(pathname, parsedAs) : resolvedHref];
  2983. }
  2984. handleRef(ref) {
  2985. if (this.p && IntersectionObserver && ref && ref.tagName) {
  2986. this.cleanUpListeners();
  2987. var isPrefetched = prefetched[this.getPaths().join( // Join on an invalid URI character
  2988. '%')];
  2989. if (!isPrefetched) {
  2990. this.cleanUpListeners = listenToIntersections(ref, () => {
  2991. this.prefetch();
  2992. });
  2993. }
  2994. }
  2995. } // The function is memoized so that no extra lifecycles are needed
  2996. // as per https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
  2997. prefetch(options) {
  2998. if (!this.p || true) return; // Prefetch the JSON page if asked (only in the client)
  2999. var paths = this.getPaths(); // We need to handle a prefetch error here since we may be
  3000. // loading with priority which can reject but we don't
  3001. // want to force navigation since this is only a prefetch
  3002. _router.default.prefetch(paths[
  3003. /* href */
  3004. 0], paths[
  3005. /* asPath */
  3006. 1], options).catch(err => {
  3007. if (false) {}
  3008. });
  3009. prefetched[paths.join( // Join on an invalid URI character
  3010. '%')] = true;
  3011. }
  3012. render() {
  3013. var {
  3014. children
  3015. } = this.props;
  3016. var {
  3017. href,
  3018. as
  3019. } = 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
  3020. if (typeof children === 'string') {
  3021. children = _react.default.createElement("a", null, children);
  3022. } // This will return the first child, if multiple are provided it will throw an error
  3023. var child = _react.Children.only(children);
  3024. var props = {
  3025. ref: el => {
  3026. this.handleRef(el);
  3027. if (child && typeof child === 'object' && child.ref) {
  3028. if (typeof child.ref === 'function') child.ref(el);else if (typeof child.ref === 'object') {
  3029. child.ref.current = el;
  3030. }
  3031. }
  3032. },
  3033. onMouseEnter: e => {
  3034. if (child.props && typeof child.props.onMouseEnter === 'function') {
  3035. child.props.onMouseEnter(e);
  3036. }
  3037. this.prefetch({
  3038. priority: true
  3039. });
  3040. },
  3041. onClick: e => {
  3042. if (child.props && typeof child.props.onClick === 'function') {
  3043. child.props.onClick(e);
  3044. }
  3045. if (!e.defaultPrevented) {
  3046. this.linkClicked(e);
  3047. }
  3048. }
  3049. }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
  3050. // defined, we specify the current 'href', so that repetition is not needed by the user
  3051. if (this.props.passHref || child.type === 'a' && !('href' in child.props)) {
  3052. props.href = as || href;
  3053. } // Add the ending slash to the paths. So, we can serve the
  3054. // "<page>/index.html" directly.
  3055. if (false) { var rewriteUrlForNextExport; }
  3056. return _react.default.cloneElement(child, props);
  3057. }
  3058. }
  3059. if (false) { var exact, PropTypes, warn; }
  3060. var _default = Link;
  3061. exports.default = _default;
  3062. /***/ }),
  3063. /***/ "dZ6Y":
  3064. /***/ (function(module, exports, __webpack_require__) {
  3065. "use strict";
  3066. /*
  3067. MIT License
  3068. Copyright (c) Jason Miller (https://jasonformat.com/)
  3069. 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:
  3070. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  3071. 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.
  3072. */
  3073. Object.defineProperty(exports, "__esModule", {
  3074. value: true
  3075. });
  3076. function mitt() {
  3077. const all = Object.create(null);
  3078. return {
  3079. on(type, handler) {
  3080. ;
  3081. (all[type] || (all[type] = [])).push(handler);
  3082. },
  3083. off(type, handler) {
  3084. if (all[type]) {
  3085. // tslint:disable-next-line:no-bitwise
  3086. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  3087. }
  3088. },
  3089. emit(type, ...evts) {
  3090. // eslint-disable-next-line array-callback-return
  3091. ;
  3092. (all[type] || []).slice().map(handler => {
  3093. handler(...evts);
  3094. });
  3095. }
  3096. };
  3097. }
  3098. exports.default = mitt;
  3099. /***/ }),
  3100. /***/ "eDSW":
  3101. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3102. "use strict";
  3103. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hexToRGBAlpha; });
  3104. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return drawerWidth; });
  3105. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return transition; });
  3106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return container; });
  3107. /* unused harmony export conatinerFluid */
  3108. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return boxShadow; });
  3109. /* unused harmony export card */
  3110. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return defaultFont; });
  3111. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return primaryColor; });
  3112. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return warningColor; });
  3113. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return dangerColor; });
  3114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return successColor; });
  3115. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return infoColor; });
  3116. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return roseColor; });
  3117. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return grayColor; });
  3118. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return primaryBoxShadow; });
  3119. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return infoBoxShadow; });
  3120. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return successBoxShadow; });
  3121. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return warningBoxShadow; });
  3122. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dangerBoxShadow; });
  3123. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return roseBoxShadow; });
  3124. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return warningCardHeader; });
  3125. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return successCardHeader; });
  3126. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dangerCardHeader; });
  3127. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return infoCardHeader; });
  3128. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return primaryCardHeader; });
  3129. /* unused harmony export roseCardHeader */
  3130. /* unused harmony export cardActions */
  3131. /* unused harmony export cardHeader */
  3132. /* unused harmony export defaultBoxShadow */
  3133. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return title; });
  3134. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cardTitle; });
  3135. /* unused harmony export cardLink */
  3136. /* unused harmony export cardSubtitle */
  3137. 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; }
  3138. 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; }
  3139. 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; }
  3140. const hexColorToRGB = function (hexColor) {
  3141. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  3142. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  3143. return r + r + g + g + b + b;
  3144. });
  3145. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  3146. return hex_array ? {
  3147. r: parseInt(hex_array[1], 16),
  3148. // 0-255
  3149. g: parseInt(hex_array[2], 16),
  3150. // 0-255
  3151. b: parseInt(hex_array[3], 16) // 0-255
  3152. } : null;
  3153. };
  3154. const hexToRGBAlpha = function (hexColor, alpha) {
  3155. let rgb = hexColorToRGB(hexColor);
  3156. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  3157. };
  3158. const drawerWidth = 260;
  3159. const transition = {
  3160. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  3161. };
  3162. const conatinerFluid = {
  3163. paddingRight: "15px",
  3164. paddingLeft: "15px",
  3165. marginRight: "auto",
  3166. marginLeft: "auto",
  3167. width: "100%"
  3168. };
  3169. const container = _objectSpread({}, conatinerFluid, {
  3170. "@media (min-width: 576px)": {
  3171. maxWidth: "540px"
  3172. },
  3173. "@media (min-width: 768px)": {
  3174. maxWidth: "720px"
  3175. },
  3176. "@media (min-width: 992px)": {
  3177. maxWidth: "960px"
  3178. },
  3179. "@media (min-width: 1200px)": {
  3180. maxWidth: "1140px"
  3181. }
  3182. });
  3183. const boxShadow = {
  3184. 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)"
  3185. };
  3186. const card = {
  3187. display: "inline-block",
  3188. position: "relative",
  3189. width: "100%",
  3190. margin: "25px 0",
  3191. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  3192. borderRadius: "3px",
  3193. color: "rgba(0, 0, 0, 0.87)",
  3194. background: "#fff"
  3195. };
  3196. const defaultFont = {
  3197. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  3198. fontWeight: "300",
  3199. lineHeight: "1.5em"
  3200. };
  3201. const primaryColor = "#212121";
  3202. const warningColor = "#ff9800";
  3203. const dangerColor = "#f44336";
  3204. const successColor = "#4caf50";
  3205. const infoColor = "#212121";
  3206. const roseColor = "#e91e63";
  3207. const grayColor = "#ffffff";
  3208. const primaryBoxShadow = {
  3209. 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)}`
  3210. };
  3211. const infoBoxShadow = {
  3212. 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)}`
  3213. };
  3214. const successBoxShadow = {
  3215. 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)}`
  3216. };
  3217. const warningBoxShadow = {
  3218. 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)}`
  3219. };
  3220. const dangerBoxShadow = {
  3221. 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)}`
  3222. };
  3223. const roseBoxShadow = {
  3224. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  3225. };
  3226. const warningCardHeader = _objectSpread({
  3227. color: "#fff",
  3228. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  3229. }, warningBoxShadow);
  3230. const successCardHeader = _objectSpread({
  3231. color: "#fff",
  3232. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  3233. }, successBoxShadow);
  3234. const dangerCardHeader = _objectSpread({
  3235. color: "#fff",
  3236. background: "linear-gradient(60deg, #ef5350, #e53935)"
  3237. }, dangerBoxShadow);
  3238. const infoCardHeader = _objectSpread({
  3239. color: "#fff",
  3240. background: "#212121"
  3241. }, infoBoxShadow);
  3242. const primaryCardHeader = _objectSpread({
  3243. color: "#fff",
  3244. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  3245. }, primaryBoxShadow);
  3246. const roseCardHeader = _objectSpread({
  3247. color: "#fff",
  3248. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  3249. }, roseBoxShadow);
  3250. const cardActions = _objectSpread({
  3251. margin: "0 20px 10px",
  3252. paddingTop: "10px",
  3253. borderTop: "1px solid #eeeeee",
  3254. height: "auto"
  3255. }, defaultFont);
  3256. const cardHeader = {
  3257. margin: "-30px 15px 0",
  3258. borderRadius: "3px",
  3259. padding: "15px"
  3260. };
  3261. const defaultBoxShadow = {
  3262. border: "0",
  3263. borderRadius: "3px",
  3264. 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)",
  3265. padding: "10px 0",
  3266. transition: "all 150ms ease 0s"
  3267. };
  3268. const title = {
  3269. color: "#ffffff",
  3270. margin: "1.75rem 0 0.875rem",
  3271. textDecoration: "none",
  3272. fontWeight: "700",
  3273. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  3274. };
  3275. const cardTitle = _objectSpread({}, title, {
  3276. marginTop: ".625rem"
  3277. });
  3278. const cardLink = {
  3279. "& + $cardLink": {
  3280. marginLeft: "1.25rem"
  3281. }
  3282. };
  3283. const cardSubtitle = {
  3284. marginBottom: "0",
  3285. marginTop: "-.375rem"
  3286. };
  3287. /***/ }),
  3288. /***/ "elyg":
  3289. /***/ (function(module, exports, __webpack_require__) {
  3290. "use strict";
  3291. var __importDefault = this && this.__importDefault || function (mod) {
  3292. return mod && mod.__esModule ? mod : {
  3293. "default": mod
  3294. };
  3295. };
  3296. Object.defineProperty(exports, "__esModule", {
  3297. value: true
  3298. });
  3299. const url_1 = __webpack_require__("bzos");
  3300. const mitt_1 = __importDefault(__webpack_require__("dZ6Y"));
  3301. const utils_1 = __webpack_require__("g/15");
  3302. const is_dynamic_1 = __webpack_require__("/jkW");
  3303. const route_matcher_1 = __webpack_require__("gguc");
  3304. const route_regex_1 = __webpack_require__("YTqd");
  3305. const basePath = false || '';
  3306. function addBasePath(path) {
  3307. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  3308. }
  3309. exports.addBasePath = addBasePath;
  3310. function delBasePath(path) {
  3311. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  3312. }
  3313. exports.delBasePath = delBasePath;
  3314. function toRoute(path) {
  3315. return path.replace(/\/$/, '') || '/';
  3316. }
  3317. const prepareRoute = path => toRoute(!path || path === '/' ? '/index' : path);
  3318. function fetchNextData(pathname, query, isServerRender, cb) {
  3319. let attempts = isServerRender ? 3 : 1;
  3320. function getResponse() {
  3321. return fetch(utils_1.formatWithValidation({
  3322. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  3323. `/_next/data/${__NEXT_DATA__.buildId}${delBasePath(pathname)}.json`),
  3324. query
  3325. }), {
  3326. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  3327. // Cookies may also be required for `getServerSideProps`.
  3328. //
  3329. // > `fetch` won’t send cookies, unless you set the credentials init
  3330. // > option.
  3331. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  3332. //
  3333. // > For maximum browser compatibility when it comes to sending &
  3334. // > receiving cookies, always supply the `credentials: 'same-origin'`
  3335. // > option instead of relying on the default.
  3336. // https://github.com/github/fetch#caveats
  3337. credentials: 'same-origin'
  3338. }).then(res => {
  3339. if (!res.ok) {
  3340. if (--attempts > 0 && res.status >= 500) {
  3341. return getResponse();
  3342. }
  3343. throw new Error(`Failed to load static props`);
  3344. }
  3345. return res.json();
  3346. });
  3347. }
  3348. return getResponse().then(data => {
  3349. return cb ? cb(data) : data;
  3350. }).catch(err => {
  3351. // We should only trigger a server-side transition if this was caused
  3352. // on a client-side transition. Otherwise, we'd get into an infinite
  3353. // loop.
  3354. if (!isServerRender) {
  3355. ;
  3356. err.code = 'PAGE_LOAD_ERROR';
  3357. }
  3358. throw err;
  3359. });
  3360. }
  3361. class Router {
  3362. constructor(pathname, query, as, {
  3363. initialProps,
  3364. pageLoader,
  3365. App,
  3366. wrapApp,
  3367. Component,
  3368. err,
  3369. subscription,
  3370. isFallback
  3371. }) {
  3372. // Static Data Cache
  3373. this.sdc = {};
  3374. this.onPopState = e => {
  3375. if (!e.state) {
  3376. // We get state as undefined for two reasons.
  3377. // 1. With older safari (< 8) and older chrome (< 34)
  3378. // 2. When the URL changed with #
  3379. //
  3380. // In the both cases, we don't need to proceed and change the route.
  3381. // (as it's already changed)
  3382. // But we can simply replace the state with the new changes.
  3383. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  3384. // So, doing the following for (1) does no harm.
  3385. const {
  3386. pathname,
  3387. query
  3388. } = this;
  3389. this.changeState('replaceState', utils_1.formatWithValidation({
  3390. pathname,
  3391. query
  3392. }), utils_1.getURL());
  3393. return;
  3394. } // Make sure we don't re-render on initial load,
  3395. // can be caused by navigating back from an external site
  3396. if (e.state && this.isSsr && e.state.as === this.asPath && url_1.parse(e.state.url).pathname === this.pathname) {
  3397. return;
  3398. } // If the downstream application returns falsy, return.
  3399. // They will then be responsible for handling the event.
  3400. if (this._bps && !this._bps(e.state)) {
  3401. return;
  3402. }
  3403. const {
  3404. url,
  3405. as,
  3406. options
  3407. } = e.state;
  3408. if (false) {}
  3409. this.replace(url, as, options);
  3410. };
  3411. this._getStaticData = asPath => {
  3412. const pathname = prepareRoute(url_1.parse(asPath).pathname);
  3413. return true && this.sdc[pathname] ? Promise.resolve(this.sdc[pathname]) : fetchNextData(pathname, null, this.isSsr, data => this.sdc[pathname] = data);
  3414. };
  3415. this._getServerData = asPath => {
  3416. let {
  3417. pathname,
  3418. query
  3419. } = url_1.parse(asPath, true);
  3420. pathname = prepareRoute(pathname);
  3421. return fetchNextData(pathname, query, this.isSsr);
  3422. }; // represents the current component key
  3423. this.route = toRoute(pathname); // set up the component cache (by route keys)
  3424. this.components = {}; // We should not keep the cache, if there's an error
  3425. // Otherwise, this cause issues when when going back and
  3426. // come again to the errored page.
  3427. if (pathname !== '/_error') {
  3428. this.components[this.route] = {
  3429. Component,
  3430. props: initialProps,
  3431. err,
  3432. __N_SSG: initialProps && initialProps.__N_SSG,
  3433. __N_SSP: initialProps && initialProps.__N_SSP
  3434. };
  3435. }
  3436. this.components['/_app'] = {
  3437. Component: App
  3438. }; // Backwards compat for Router.router.events
  3439. // TODO: Should be remove the following major version as it was never documented
  3440. this.events = Router.events;
  3441. this.pageLoader = pageLoader;
  3442. this.pathname = pathname;
  3443. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  3444. // until after mount to prevent hydration mismatch
  3445. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  3446. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  3447. this.basePath = basePath;
  3448. this.sub = subscription;
  3449. this.clc = null;
  3450. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  3451. // back from external site
  3452. this.isSsr = true;
  3453. this.isFallback = isFallback;
  3454. if (false) {}
  3455. } // @deprecated backwards compatibility even though it's a private method.
  3456. static _rewriteUrlForNextExport(url) {
  3457. if (false) {} else {
  3458. return url;
  3459. }
  3460. }
  3461. update(route, mod) {
  3462. const Component = mod.default || mod;
  3463. const data = this.components[route];
  3464. if (!data) {
  3465. throw new Error(`Cannot update unavailable route: ${route}`);
  3466. }
  3467. const newData = Object.assign(Object.assign({}, data), {
  3468. Component,
  3469. __N_SSG: mod.__N_SSG,
  3470. __N_SSP: mod.__N_SSP
  3471. });
  3472. this.components[route] = newData; // pages/_app.js updated
  3473. if (route === '/_app') {
  3474. this.notify(this.components[this.route]);
  3475. return;
  3476. }
  3477. if (route === this.route) {
  3478. this.notify(newData);
  3479. }
  3480. }
  3481. reload() {
  3482. window.location.reload();
  3483. }
  3484. /**
  3485. * Go back in history
  3486. */
  3487. back() {
  3488. window.history.back();
  3489. }
  3490. /**
  3491. * Performs a `pushState` with arguments
  3492. * @param url of the route
  3493. * @param as masks `url` for the browser
  3494. * @param options object you can define `shallow` and other options
  3495. */
  3496. push(url, as = url, options = {}) {
  3497. return this.change('pushState', url, as, options);
  3498. }
  3499. /**
  3500. * Performs a `replaceState` with arguments
  3501. * @param url of the route
  3502. * @param as masks `url` for the browser
  3503. * @param options object you can define `shallow` and other options
  3504. */
  3505. replace(url, as = url, options = {}) {
  3506. return this.change('replaceState', url, as, options);
  3507. }
  3508. change(method, _url, _as, options) {
  3509. return new Promise((resolve, reject) => {
  3510. if (!options._h) {
  3511. this.isSsr = false;
  3512. } // marking route changes as a navigation start entry
  3513. if (utils_1.ST) {
  3514. performance.mark('routeChange');
  3515. } // If url and as provided as an object representation,
  3516. // we'll format them into the string version here.
  3517. let url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  3518. let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  3519. url = addBasePath(url);
  3520. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  3521. // "<page>/index.html" directly for the SSR page.
  3522. if (false) {}
  3523. this.abortComponentLoad(as); // If the url change is only related to a hash change
  3524. // We should not proceed. We should only change the state.
  3525. // WARNING: `_h` is an internal option for handing Next.js client-side
  3526. // hydration. Your app should _never_ use this property. It may change at
  3527. // any time without notice.
  3528. if (!options._h && this.onlyAHashChange(as)) {
  3529. this.asPath = as;
  3530. Router.events.emit('hashChangeStart', as);
  3531. this.changeState(method, url, as, options);
  3532. this.scrollToHash(as);
  3533. Router.events.emit('hashChangeComplete', as);
  3534. return resolve(true);
  3535. }
  3536. const {
  3537. pathname,
  3538. query,
  3539. protocol
  3540. } = url_1.parse(url, true);
  3541. if (!pathname || protocol) {
  3542. if (false) {}
  3543. return resolve(false);
  3544. } // If asked to change the current URL we should reload the current page
  3545. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  3546. // We also need to set the method = replaceState always
  3547. // as this should not go into the history (That's how browsers work)
  3548. // We should compare the new asPath to the current asPath, not the url
  3549. if (!this.urlIsNew(as)) {
  3550. method = 'replaceState';
  3551. }
  3552. const route = toRoute(pathname);
  3553. const {
  3554. shallow = false
  3555. } = options;
  3556. if (is_dynamic_1.isDynamicRoute(route)) {
  3557. const {
  3558. pathname: asPathname
  3559. } = url_1.parse(as);
  3560. const routeRegex = route_regex_1.getRouteRegex(route);
  3561. const routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  3562. if (!routeMatch) {
  3563. const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
  3564. if (missingParams.length > 0) {
  3565. if (false) {}
  3566. 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`));
  3567. }
  3568. } else {
  3569. // Merge params into `query`, overwriting any specified in search
  3570. Object.assign(query, routeMatch);
  3571. }
  3572. }
  3573. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  3574. this.getRouteInfo(route, pathname, query, as, shallow).then(routeInfo => {
  3575. const {
  3576. error
  3577. } = routeInfo;
  3578. if (error && error.cancelled) {
  3579. return resolve(false);
  3580. }
  3581. Router.events.emit('beforeHistoryChange', as);
  3582. this.changeState(method, url, as, options);
  3583. if (false) {}
  3584. this.set(route, pathname, query, as, routeInfo);
  3585. if (error) {
  3586. Router.events.emit('routeChangeError', error, as);
  3587. throw error;
  3588. }
  3589. Router.events.emit('routeChangeComplete', as);
  3590. return resolve(true);
  3591. }, reject);
  3592. });
  3593. }
  3594. changeState(method, url, as, options = {}) {
  3595. if (false) {}
  3596. if (method !== 'pushState' || utils_1.getURL() !== as) {
  3597. window.history[method]({
  3598. url,
  3599. as,
  3600. options
  3601. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  3602. // Passing the empty string here should be safe against future changes to the method.
  3603. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  3604. '', as);
  3605. }
  3606. }
  3607. getRouteInfo(route, pathname, query, as, shallow = false) {
  3608. const cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  3609. // If the route is already rendered on the screen.
  3610. if (shallow && cachedRouteInfo && this.route === route) {
  3611. return Promise.resolve(cachedRouteInfo);
  3612. }
  3613. const handleError = (err, loadErrorFail) => {
  3614. return new Promise(resolve => {
  3615. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  3616. // If we can't load the page it could be one of following reasons
  3617. // 1. Page doesn't exists
  3618. // 2. Page does exist in a different zone
  3619. // 3. Internal error while loading the page
  3620. // So, doing a hard reload is the proper way to deal with this.
  3621. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  3622. // So, we need to mark it as a cancelled error and stop the routing logic.
  3623. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  3624. return resolve({
  3625. error: err
  3626. });
  3627. }
  3628. if (err.cancelled) {
  3629. // @ts-ignore TODO: fix the control flow here
  3630. return resolve({
  3631. error: err
  3632. });
  3633. }
  3634. resolve(this.fetchComponent('/_error').then(res => {
  3635. const {
  3636. page: Component
  3637. } = res;
  3638. const routeInfo = {
  3639. Component,
  3640. err
  3641. };
  3642. return new Promise(resolve => {
  3643. this.getInitialProps(Component, {
  3644. err,
  3645. pathname,
  3646. query
  3647. }).then(props => {
  3648. routeInfo.props = props;
  3649. routeInfo.error = err;
  3650. resolve(routeInfo);
  3651. }, gipErr => {
  3652. console.error('Error in error page `getInitialProps`: ', gipErr);
  3653. routeInfo.error = err;
  3654. routeInfo.props = {};
  3655. resolve(routeInfo);
  3656. });
  3657. });
  3658. }).catch(err => handleError(err, true)));
  3659. });
  3660. };
  3661. return new Promise((resolve, reject) => {
  3662. if (cachedRouteInfo) {
  3663. return resolve(cachedRouteInfo);
  3664. }
  3665. this.fetchComponent(route).then(res => resolve({
  3666. Component: res.page,
  3667. __N_SSG: res.mod.__N_SSG,
  3668. __N_SSP: res.mod.__N_SSP
  3669. }), reject);
  3670. }).then(routeInfo => {
  3671. const {
  3672. Component,
  3673. __N_SSG,
  3674. __N_SSP
  3675. } = routeInfo;
  3676. if (false) {}
  3677. 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`
  3678. {
  3679. pathname,
  3680. query,
  3681. asPath: as
  3682. })).then(props => {
  3683. routeInfo.props = props;
  3684. this.components[route] = routeInfo;
  3685. return routeInfo;
  3686. });
  3687. }).catch(handleError);
  3688. }
  3689. set(route, pathname, query, as, data) {
  3690. this.isFallback = false;
  3691. this.route = route;
  3692. this.pathname = pathname;
  3693. this.query = query;
  3694. this.asPath = as;
  3695. this.notify(data);
  3696. }
  3697. /**
  3698. * Callback to execute before replacing router state
  3699. * @param cb callback to be executed
  3700. */
  3701. beforePopState(cb) {
  3702. this._bps = cb;
  3703. }
  3704. onlyAHashChange(as) {
  3705. if (!this.asPath) return false;
  3706. const [oldUrlNoHash, oldHash] = this.asPath.split('#');
  3707. const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
  3708. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  3709. return true;
  3710. } // If the urls are change, there's more than a hash change
  3711. if (oldUrlNoHash !== newUrlNoHash) {
  3712. return false;
  3713. } // If the hash has changed, then it's a hash only change.
  3714. // This check is necessary to handle both the enter and
  3715. // leave hash === '' cases. The identity case falls through
  3716. // and is treated as a next reload.
  3717. return oldHash !== newHash;
  3718. }
  3719. scrollToHash(as) {
  3720. const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value
  3721. if (hash === '') {
  3722. window.scrollTo(0, 0);
  3723. return;
  3724. } // First we check if the element by id is found
  3725. const idEl = document.getElementById(hash);
  3726. if (idEl) {
  3727. idEl.scrollIntoView();
  3728. return;
  3729. } // If there's no element with the id, we check the `name` property
  3730. // To mirror browsers
  3731. const nameEl = document.getElementsByName(hash)[0];
  3732. if (nameEl) {
  3733. nameEl.scrollIntoView();
  3734. }
  3735. }
  3736. urlIsNew(asPath) {
  3737. return this.asPath !== asPath;
  3738. }
  3739. /**
  3740. * Prefetch page code, you may wait for the data during page rendering.
  3741. * This feature only works in production!
  3742. * @param url the href of prefetched page
  3743. * @param asPath the as path of the prefetched page
  3744. */
  3745. prefetch(url, asPath = url, options = {}) {
  3746. return new Promise((resolve, reject) => {
  3747. const {
  3748. pathname,
  3749. protocol
  3750. } = url_1.parse(url);
  3751. if (!pathname || protocol) {
  3752. if (false) {}
  3753. return;
  3754. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  3755. if (false) {}
  3756. const route = delBasePath(toRoute(pathname));
  3757. Promise.all([this.pageLoader.prefetchData(url, delBasePath(asPath)), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(() => resolve(), reject);
  3758. });
  3759. }
  3760. async fetchComponent(route) {
  3761. let cancelled = false;
  3762. const cancel = this.clc = () => {
  3763. cancelled = true;
  3764. };
  3765. route = delBasePath(route);
  3766. const componentResult = await this.pageLoader.loadPage(route);
  3767. if (cancelled) {
  3768. const error = new Error(`Abort fetching component for route: "${route}"`);
  3769. error.cancelled = true;
  3770. throw error;
  3771. }
  3772. if (cancel === this.clc) {
  3773. this.clc = null;
  3774. }
  3775. return componentResult;
  3776. }
  3777. _getData(fn) {
  3778. let cancelled = false;
  3779. const cancel = () => {
  3780. cancelled = true;
  3781. };
  3782. this.clc = cancel;
  3783. return fn().then(data => {
  3784. if (cancel === this.clc) {
  3785. this.clc = null;
  3786. }
  3787. if (cancelled) {
  3788. const err = new Error('Loading initial props cancelled');
  3789. err.cancelled = true;
  3790. throw err;
  3791. }
  3792. return data;
  3793. });
  3794. }
  3795. getInitialProps(Component, ctx) {
  3796. const {
  3797. Component: App
  3798. } = this.components['/_app'];
  3799. const AppTree = this._wrapApp(App);
  3800. ctx.AppTree = AppTree;
  3801. return utils_1.loadGetInitialProps(App, {
  3802. AppTree,
  3803. Component,
  3804. router: this,
  3805. ctx
  3806. });
  3807. }
  3808. abortComponentLoad(as) {
  3809. if (this.clc) {
  3810. const e = new Error('Route Cancelled');
  3811. e.cancelled = true;
  3812. Router.events.emit('routeChangeError', e, as);
  3813. this.clc();
  3814. this.clc = null;
  3815. }
  3816. }
  3817. notify(data) {
  3818. this.sub(data, this.components['/_app'].Component);
  3819. }
  3820. }
  3821. exports.default = Router;
  3822. Router.events = mitt_1.default();
  3823. /***/ }),
  3824. /***/ "g/15":
  3825. /***/ (function(module, exports, __webpack_require__) {
  3826. "use strict";
  3827. Object.defineProperty(exports, "__esModule", {
  3828. value: true
  3829. });
  3830. const url_1 = __webpack_require__("bzos");
  3831. /**
  3832. * Utils
  3833. */
  3834. function execOnce(fn) {
  3835. let used = false;
  3836. let result;
  3837. return (...args) => {
  3838. if (!used) {
  3839. used = true;
  3840. result = fn(...args);
  3841. }
  3842. return result;
  3843. };
  3844. }
  3845. exports.execOnce = execOnce;
  3846. function getLocationOrigin() {
  3847. const {
  3848. protocol,
  3849. hostname,
  3850. port
  3851. } = window.location;
  3852. return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  3853. }
  3854. exports.getLocationOrigin = getLocationOrigin;
  3855. function getURL() {
  3856. const {
  3857. href
  3858. } = window.location;
  3859. const origin = getLocationOrigin();
  3860. return href.substring(origin.length);
  3861. }
  3862. exports.getURL = getURL;
  3863. function getDisplayName(Component) {
  3864. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  3865. }
  3866. exports.getDisplayName = getDisplayName;
  3867. function isResSent(res) {
  3868. return res.finished || res.headersSent;
  3869. }
  3870. exports.isResSent = isResSent;
  3871. async function loadGetInitialProps(App, ctx) {
  3872. var _a;
  3873. if (false) {} // when called from _app `ctx` is nested in `ctx`
  3874. const res = ctx.res || ctx.ctx && ctx.ctx.res;
  3875. if (!App.getInitialProps) {
  3876. if (ctx.ctx && ctx.Component) {
  3877. // @ts-ignore pageProps default
  3878. return {
  3879. pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
  3880. };
  3881. }
  3882. return {};
  3883. }
  3884. const props = await App.getInitialProps(ctx);
  3885. if (res && isResSent(res)) {
  3886. return props;
  3887. }
  3888. if (!props) {
  3889. const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
  3890. throw new Error(message);
  3891. }
  3892. if (false) {}
  3893. return props;
  3894. }
  3895. exports.loadGetInitialProps = loadGetInitialProps;
  3896. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  3897. function formatWithValidation(url, options) {
  3898. if (false) {}
  3899. return url_1.format(url, options);
  3900. }
  3901. exports.formatWithValidation = formatWithValidation;
  3902. exports.SP = typeof performance !== 'undefined';
  3903. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  3904. /***/ }),
  3905. /***/ "gguc":
  3906. /***/ (function(module, exports, __webpack_require__) {
  3907. "use strict";
  3908. Object.defineProperty(exports, "__esModule", {
  3909. value: true
  3910. });
  3911. function getRouteMatcher(routeRegex) {
  3912. const {
  3913. re,
  3914. groups
  3915. } = routeRegex;
  3916. return pathname => {
  3917. const routeMatch = re.exec(pathname);
  3918. if (!routeMatch) {
  3919. return false;
  3920. }
  3921. const decode = param => {
  3922. try {
  3923. return decodeURIComponent(param);
  3924. } catch (_) {
  3925. const err = new Error('failed to decode param');
  3926. err.code = 'DECODE_FAILED';
  3927. throw err;
  3928. }
  3929. };
  3930. const params = {};
  3931. Object.keys(groups).forEach(slugName => {
  3932. const g = groups[slugName];
  3933. const m = routeMatch[g.pos];
  3934. if (m !== undefined) {
  3935. params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
  3936. }
  3937. });
  3938. return params;
  3939. };
  3940. }
  3941. exports.getRouteMatcher = getRouteMatcher;
  3942. /***/ }),
  3943. /***/ "i4t8":
  3944. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3945. "use strict";
  3946. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridItem; });
  3947. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3948. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3949. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3950. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3951. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3952. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3953. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3954. 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); }
  3955. 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; }
  3956. 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; }
  3957. // nodejs library to set properties for components
  3958. // @material-ui/core components
  3959. const styles = {
  3960. grid: {
  3961. position: "relative",
  3962. width: "100%",
  3963. minHeight: "1px",
  3964. paddingRight: "15px",
  3965. paddingLeft: "15px",
  3966. flexBasis: "auto"
  3967. }
  3968. };
  3969. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3970. function GridItem(props) {
  3971. const classes = useStyles();
  3972. const {
  3973. children,
  3974. className
  3975. } = props,
  3976. rest = _objectWithoutProperties(props, ["children", "className"]);
  3977. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3978. item: true
  3979. }, rest, {
  3980. className: classes.grid + " " + className
  3981. }), children);
  3982. }
  3983. GridItem.defaultProps = {
  3984. className: ""
  3985. };
  3986. /***/ }),
  3987. /***/ "jD8W":
  3988. /***/ (function(module, exports) {
  3989. module.exports = require("@material-ui/core/Popper");
  3990. /***/ }),
  3991. /***/ "kYf9":
  3992. /***/ (function(module, exports) {
  3993. module.exports = require("next/dist/next-server/lib/utils.js");
  3994. /***/ }),
  3995. /***/ "mf1M":
  3996. /***/ (function(module, exports) {
  3997. module.exports = require("@material-ui/core/Grow");
  3998. /***/ }),
  3999. /***/ "mtPR":
  4000. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4001. "use strict";
  4002. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridContainer; });
  4003. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  4004. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  4005. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  4006. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  4007. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  4008. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  4009. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  4010. 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); }
  4011. 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; }
  4012. 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; }
  4013. // nodejs library to set properties for components
  4014. // @material-ui/core components
  4015. const styles = {
  4016. grid: {
  4017. marginRight: "-15px",
  4018. marginLeft: "-15px",
  4019. width: "auto"
  4020. }
  4021. };
  4022. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  4023. function GridContainer(props) {
  4024. const classes = useStyles();
  4025. const {
  4026. children,
  4027. className
  4028. } = props,
  4029. rest = _objectWithoutProperties(props, ["children", "className"]);
  4030. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  4031. container: true
  4032. }, rest, {
  4033. className: classes.grid + " " + className
  4034. }), children);
  4035. }
  4036. GridContainer.defaultProps = {
  4037. className: ""
  4038. };
  4039. /***/ }),
  4040. /***/ "nJn1":
  4041. /***/ (function(module, exports) {
  4042. module.exports = "/_next/static/images/tb-07080d5d3d7b45d4452f1aae75c323f1.png";
  4043. /***/ }),
  4044. /***/ "nOHt":
  4045. /***/ (function(module, exports, __webpack_require__) {
  4046. "use strict";
  4047. var _interopRequireWildcard = __webpack_require__("7KCV");
  4048. var _interopRequireDefault = __webpack_require__("AroE");
  4049. exports.__esModule = true;
  4050. exports.useRouter = useRouter;
  4051. exports.makePublicRouterInstance = makePublicRouterInstance;
  4052. exports.createRouter = exports.withRouter = exports.default = void 0;
  4053. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  4054. var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
  4055. exports.Router = _router2.default;
  4056. exports.NextRouter = _router2.NextRouter;
  4057. var _routerContext = __webpack_require__("Osoz");
  4058. var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
  4059. exports.withRouter = _withRouter.default;
  4060. /* global window */
  4061. var singletonRouter = {
  4062. router: null,
  4063. // holds the actual router instance
  4064. readyCallbacks: [],
  4065. ready(cb) {
  4066. if (this.router) return cb();
  4067. if (false) {}
  4068. }
  4069. }; // Create public properties and methods of the router in the singletonRouter
  4070. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  4071. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  4072. 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
  4073. Object.defineProperty(singletonRouter, 'events', {
  4074. get() {
  4075. return _router2.default.events;
  4076. }
  4077. });
  4078. urlPropertyFields.forEach(field => {
  4079. // Here we need to use Object.defineProperty because, we need to return
  4080. // the property assigned to the actual router
  4081. // The value might get changed as we change routes and this is the
  4082. // proper way to access it
  4083. Object.defineProperty(singletonRouter, field, {
  4084. get() {
  4085. var router = getRouter();
  4086. return router[field];
  4087. }
  4088. });
  4089. });
  4090. coreMethodFields.forEach(field => {
  4091. // We don't really know the types here, so we add them later instead
  4092. ;
  4093. singletonRouter[field] = function () {
  4094. var router = getRouter();
  4095. return router[field](...arguments);
  4096. };
  4097. });
  4098. routerEvents.forEach(event => {
  4099. singletonRouter.ready(() => {
  4100. _router2.default.events.on(event, function () {
  4101. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  4102. var _singletonRouter = singletonRouter;
  4103. if (_singletonRouter[eventField]) {
  4104. try {
  4105. _singletonRouter[eventField](...arguments);
  4106. } catch (err) {
  4107. // tslint:disable-next-line:no-console
  4108. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  4109. console.error(err.message + "\n" + err.stack);
  4110. }
  4111. }
  4112. });
  4113. });
  4114. });
  4115. function getRouter() {
  4116. if (!singletonRouter.router) {
  4117. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  4118. throw new Error(message);
  4119. }
  4120. return singletonRouter.router;
  4121. } // Export the singletonRouter and this is the public API.
  4122. var _default = singletonRouter; // Reexport the withRoute HOC
  4123. exports.default = _default;
  4124. function useRouter() {
  4125. return _react.default.useContext(_routerContext.RouterContext);
  4126. } // INTERNAL APIS
  4127. // -------------
  4128. // (do not use following exports inside the app)
  4129. // Create a router and assign it as the singleton instance.
  4130. // This is used in client side when we are initilizing the app.
  4131. // This should **not** use inside the server.
  4132. var createRouter = function createRouter() {
  4133. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  4134. args[_key] = arguments[_key];
  4135. }
  4136. singletonRouter.router = new _router2.default(...args);
  4137. singletonRouter.readyCallbacks.forEach(cb => cb());
  4138. singletonRouter.readyCallbacks = [];
  4139. return singletonRouter.router;
  4140. }; // This function is used to create the `withRouter` router instance
  4141. exports.createRouter = createRouter;
  4142. function makePublicRouterInstance(router) {
  4143. var _router = router;
  4144. var instance = {};
  4145. for (var property of urlPropertyFields) {
  4146. if (typeof _router[property] === 'object') {
  4147. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  4148. continue;
  4149. }
  4150. instance[property] = _router[property];
  4151. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  4152. instance.events = _router2.default.events;
  4153. coreMethodFields.forEach(field => {
  4154. instance[field] = function () {
  4155. return _router[field](...arguments);
  4156. };
  4157. });
  4158. return instance;
  4159. }
  4160. /***/ }),
  4161. /***/ "nybW":
  4162. /***/ (function(module, exports) {
  4163. module.exports = require("@material-ui/core/Divider");
  4164. /***/ }),
  4165. /***/ "oLCs":
  4166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4167. "use strict";
  4168. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  4169. const footerStyle = {
  4170. block: {
  4171. color: "inherit",
  4172. padding: "0.9375rem",
  4173. fontWeight: "500",
  4174. fontSize: "12px",
  4175. textTransform: "uppercase",
  4176. borderRadius: "3px",
  4177. textDecoration: "none",
  4178. position: "relative",
  4179. display: "block"
  4180. },
  4181. left: {
  4182. float: "left!important",
  4183. display: "block"
  4184. },
  4185. right: {
  4186. padding: "15px 0",
  4187. margin: "0",
  4188. float: "right!important"
  4189. },
  4190. footer: {
  4191. padding: "0.9375rem 0",
  4192. textAlign: "center",
  4193. display: "flex",
  4194. zIndex: "2",
  4195. position: "relative"
  4196. },
  4197. a: {
  4198. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* primaryColor */ "p"],
  4199. textDecoration: "none",
  4200. backgroundColor: "transparent"
  4201. },
  4202. footerWhiteFont: {
  4203. "&,&:hover,&:focus": {
  4204. color: "#FFFFFF"
  4205. }
  4206. },
  4207. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  4208. list: {
  4209. marginBottom: "0",
  4210. padding: "0",
  4211. marginTop: "0"
  4212. },
  4213. inlineBlock: {
  4214. display: "inline-block",
  4215. padding: "0px",
  4216. width: "auto"
  4217. },
  4218. icon: {
  4219. width: "18px",
  4220. height: "18px",
  4221. position: "relative",
  4222. top: "3px"
  4223. }
  4224. };
  4225. /* harmony default export */ __webpack_exports__["a"] = (footerStyle);
  4226. /***/ }),
  4227. /***/ "qt1I":
  4228. /***/ (function(module, exports) {
  4229. module.exports = require("@material-ui/core/Paper");
  4230. /***/ }),
  4231. /***/ "uU2H":
  4232. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4233. "use strict";
  4234. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  4235. /* harmony import */ var assets_jss_nextjs_material_kit_imagesStyles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Ilpk");
  4236. 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; }
  4237. 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; }
  4238. 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; }
  4239. const profilePageStyle = _objectSpread({
  4240. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  4241. profile: {
  4242. textAlign: "center",
  4243. "& img": {
  4244. maxWidth: "160px",
  4245. width: "100%",
  4246. margin: "0 auto",
  4247. transform: "translate3d(0, -50%, 0)"
  4248. }
  4249. },
  4250. description: {
  4251. margin: "1.071rem auto 0",
  4252. maxWidth: "600px",
  4253. color: "#999",
  4254. textAlign: "center !important"
  4255. },
  4256. name: {
  4257. marginTop: "-80px"
  4258. }
  4259. }, assets_jss_nextjs_material_kit_imagesStyles_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
  4260. main: {
  4261. background: "#FFFFFF",
  4262. position: "relative",
  4263. zIndex: "3"
  4264. },
  4265. mainRaised: {
  4266. margin: "-60px 30px 0px",
  4267. borderRadius: "6px",
  4268. 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)"
  4269. },
  4270. title: _objectSpread({}, assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* title */ "v"], {
  4271. display: "inline-block",
  4272. position: "relative",
  4273. marginTop: "30px",
  4274. minHeight: "32px",
  4275. textDecoration: "none"
  4276. }),
  4277. socials: {
  4278. marginTop: "0",
  4279. width: "100%",
  4280. transform: "none",
  4281. left: "0",
  4282. top: "0",
  4283. height: "100%",
  4284. lineHeight: "41px",
  4285. fontSize: "20px",
  4286. color: "#999"
  4287. },
  4288. navWrapper: {
  4289. margin: "20px auto 50px auto",
  4290. textAlign: "center"
  4291. }
  4292. });
  4293. /* harmony default export */ __webpack_exports__["a"] = (profilePageStyle);
  4294. /***/ }),
  4295. /***/ "vFf/":
  4296. /***/ (function(module, exports) {
  4297. module.exports = require("@material-ui/icons/Dashboard");
  4298. /***/ }),
  4299. /***/ "wPKo":
  4300. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4301. "use strict";
  4302. // ESM COMPAT FLAG
  4303. __webpack_require__.r(__webpack_exports__);
  4304. // EXPORTS
  4305. __webpack_require__.d(__webpack_exports__, "getServerSideProps", function() { return /* binding */ getServerSideProps; });
  4306. // EXTERNAL MODULE: external "react"
  4307. var external_react_ = __webpack_require__("cDcd");
  4308. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  4309. // EXTERNAL MODULE: external "classnames"
  4310. var external_classnames_ = __webpack_require__("K2gz");
  4311. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  4312. // EXTERNAL MODULE: external "@material-ui/core/styles"
  4313. var styles_ = __webpack_require__("9Pu4");
  4314. // EXTERNAL MODULE: ./components/Header/Header.js + 1 modules
  4315. var Header = __webpack_require__("8x5e");
  4316. // EXTERNAL MODULE: ./components/Header/HeaderLinks.js
  4317. var HeaderLinks = __webpack_require__("8E12");
  4318. // EXTERNAL MODULE: ./components/Footer/Footer.js
  4319. var Footer = __webpack_require__("HXcA");
  4320. // EXTERNAL MODULE: ./components/Parallax/Parallax.js + 1 modules
  4321. var Parallax = __webpack_require__("Z2Lm");
  4322. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/components.js
  4323. var components = __webpack_require__("bhG4");
  4324. // EXTERNAL MODULE: external "@material-ui/icons/Dashboard"
  4325. var Dashboard_ = __webpack_require__("vFf/");
  4326. var Dashboard_default = /*#__PURE__*/__webpack_require__.n(Dashboard_);
  4327. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  4328. var GridContainer = __webpack_require__("mtPR");
  4329. // EXTERNAL MODULE: ./components/Grid/GridItem.js
  4330. var GridItem = __webpack_require__("i4t8");
  4331. // EXTERNAL MODULE: ./components/NavPills/NavPills.js + 1 modules
  4332. var NavPills = __webpack_require__("SuH/");
  4333. // EXTERNAL MODULE: ./components/Card/Card.js + 1 modules
  4334. var Card = __webpack_require__("A2So");
  4335. // EXTERNAL MODULE: ./components/Card/CardBody.js + 1 modules
  4336. var CardBody = __webpack_require__("UsYt");
  4337. // EXTERNAL MODULE: ./components/Card/CardHeader.js + 1 modules
  4338. var CardHeader = __webpack_require__("2zww");
  4339. // EXTERNAL MODULE: ./components/Typography/Quote.js + 1 modules
  4340. var Quote = __webpack_require__("aIa2");
  4341. // EXTERNAL MODULE: external "@material-ui/core/Grid"
  4342. var Grid_ = __webpack_require__("JQ2V");
  4343. var Grid_default = /*#__PURE__*/__webpack_require__.n(Grid_);
  4344. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  4345. var Button = __webpack_require__("Kg+a");
  4346. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/profilePage.js
  4347. var profilePage = __webpack_require__("uU2H");
  4348. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  4349. var Icon_ = __webpack_require__("7vM9");
  4350. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  4351. // CONCATENATED MODULE: ./pages-sections/yamaha/carrer/carrer.js
  4352. var __jsx = external_react_default.a.createElement;
  4353. 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; }
  4354. 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; }
  4355. const useStyles = Object(styles_["makeStyles"])(profilePage["a" /* default */]);
  4356. const DataCarrers = function (_ref) {
  4357. let {
  4358. backend,
  4359. s1,
  4360. d3,
  4361. sma
  4362. } = _ref,
  4363. props = _objectWithoutProperties(_ref, ["backend", "s1", "d3", "sma"]);
  4364. const classes = useStyles();
  4365. const rest = Object.assign({}, props);
  4366. const imageClasses = external_classnames_default()(classes.imgRaised, classes.imgRoundedCircle, classes.imgFluid);
  4367. const navImageClasses = external_classnames_default()(classes.imgRounded, classes.imgGallery);
  4368. const CarrerS1 = s1.map(data => {
  4369. return __jsx(Grid_default.a, {
  4370. style: {
  4371. width: "600px",
  4372. padding: "30px"
  4373. }
  4374. }, __jsx(Card["a" /* default */], null, __jsx(CardHeader["a" /* default */], {
  4375. color: "info"
  4376. }, __jsx("div", {
  4377. align: "center"
  4378. }, __jsx("b", null, data.name))), __jsx(CardBody["a" /* default */], null, __jsx(Quote["a" /* default */], {
  4379. text: data.name_description,
  4380. author: "Post By Thamrin Group"
  4381. }), "Masa Pendaftaran : ", data.start_regis, " s/d ", data.until_regis, __jsx(Button["a" /* default */], {
  4382. color: "info",
  4383. style: {
  4384. marginLeft: "20px"
  4385. },
  4386. round: true,
  4387. href: "/yamaha/carrer/carrer_details?s=" + data.id
  4388. }, __jsx(Icon_default.a, {
  4389. className: classes.icons
  4390. }, "open_in_new"), "Detail Carrer"))));
  4391. });
  4392. const CarrerD3 = d3.map(data => {
  4393. return __jsx(Grid_default.a, {
  4394. style: {
  4395. width: "600px",
  4396. padding: "30px"
  4397. }
  4398. }, __jsx(Card["a" /* default */], null, __jsx(CardHeader["a" /* default */], {
  4399. color: "info"
  4400. }, __jsx("b", null, data.name)), __jsx(CardBody["a" /* default */], null, __jsx(Quote["a" /* default */], {
  4401. text: data.name_description,
  4402. author: "Post By Thamrin Group"
  4403. }), "Masa Pendaftaran : ", data.start_regis, " s/d ", data.until_regis, __jsx(Button["a" /* default */], {
  4404. color: "info",
  4405. style: {
  4406. marginLeft: "20px"
  4407. },
  4408. round: true,
  4409. href: "/yamaha/carrer/carrer_details?s=" + data.id
  4410. }, __jsx(Icon_default.a, {
  4411. className: classes.icons
  4412. }, "open_in_new"), "Detail Carrer"))));
  4413. });
  4414. const CarrerSMA = sma.map(data => {
  4415. return __jsx(Grid_default.a, {
  4416. style: {
  4417. width: "600px",
  4418. padding: "30px"
  4419. }
  4420. }, __jsx(Card["a" /* default */], null, __jsx(CardHeader["a" /* default */], {
  4421. justify: "center",
  4422. color: "info"
  4423. }, __jsx("b", null, data.name)), __jsx(CardBody["a" /* default */], null, __jsx(Quote["a" /* default */], {
  4424. text: data.name_description,
  4425. author: "Post By Thamrin Group"
  4426. }), "Masa Pendaftaran : ", data.start_regis, " s/d ", data.until_regis, __jsx(Button["a" /* default */], {
  4427. color: "info",
  4428. style: {
  4429. marginLeft: "20px"
  4430. },
  4431. round: true,
  4432. href: "/yamaha/carrer/carrer_details?s=" + data.id
  4433. }, __jsx(Icon_default.a, {
  4434. className: classes.icons
  4435. }, "open_in_new"), "Detail Carrer"))));
  4436. });
  4437. return __jsx(Card["a" /* default */], {
  4438. className: classes.textCenter
  4439. }, __jsx("div", {
  4440. align: "center"
  4441. }, __jsx(CardHeader["a" /* default */], {
  4442. color: "info"
  4443. }, __jsx("b", null, "Carrer"))), __jsx(CardBody["a" /* default */], null, __jsx("div", {
  4444. align: "center"
  4445. }, __jsx("h2", null, __jsx("b", null, "Carrer & Job Vacancies"))), __jsx(GridContainer["a" /* default */], {
  4446. justify: "center"
  4447. }, __jsx(GridItem["a" /* default */], null, __jsx(NavPills["a" /* default */], {
  4448. alignCenter: true,
  4449. color: "primary",
  4450. tabs: [{
  4451. tabButton: "S1",
  4452. tabIcon: Dashboard_default.a,
  4453. tabContent: __jsx(GridContainer["a" /* default */], {
  4454. justify: "center"
  4455. }, CarrerS1)
  4456. }, {
  4457. tabButton: "D3",
  4458. tabIcon: Dashboard_default.a,
  4459. tabContent: __jsx(GridContainer["a" /* default */], {
  4460. justify: "center"
  4461. }, CarrerD3)
  4462. }, {
  4463. tabButton: "SMA / SMK ",
  4464. tabIcon: Dashboard_default.a,
  4465. tabContent: __jsx(GridContainer["a" /* default */], {
  4466. justify: "center"
  4467. }, CarrerSMA)
  4468. }, {
  4469. tabButton: "Recruitment Process",
  4470. tabIcon: Dashboard_default.a,
  4471. tabContent: __jsx(GridContainer["a" /* default */], {
  4472. justify: "center"
  4473. }, __jsx(GridItem["a" /* default */], null, __jsx("div", {
  4474. align: "center"
  4475. }, __jsx("img", {
  4476. alt: "...",
  4477. style: {
  4478. width: "1000px",
  4479. height: "800px",
  4480. display: "block"
  4481. },
  4482. src: " https://www.yamaha-motor.co.id/uploads/career/big_img/5d305eca19dfb8171.jpg",
  4483. className: navImageClasses
  4484. }))))
  4485. }]
  4486. })))));
  4487. };
  4488. /* harmony default export */ var carrer = (DataCarrers);
  4489. // EXTERNAL MODULE: ./api/carrer/carrer.js
  4490. var carrer_carrer = __webpack_require__("940a");
  4491. var carrer_default = /*#__PURE__*/__webpack_require__.n(carrer_carrer);
  4492. // EXTERNAL MODULE: external "cookies"
  4493. var external_cookies_ = __webpack_require__("Vjj2");
  4494. var external_cookies_default = /*#__PURE__*/__webpack_require__.n(external_cookies_);
  4495. // EXTERNAL MODULE: ./pages/home.css
  4496. var home = __webpack_require__("M9IG");
  4497. // CONCATENATED MODULE: ./pages/yamaha/carrer/carrer.js
  4498. var carrer_jsx = external_react_default.a.createElement;
  4499. 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); }
  4500. 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; }
  4501. 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; }
  4502. const carrer_useStyles = Object(styles_["makeStyles"])(components["a" /* default */]);
  4503. const Carrer = function (_ref) {
  4504. let {
  4505. user,
  4506. backend,
  4507. s1,
  4508. d3,
  4509. sma
  4510. } = _ref,
  4511. props = carrer_objectWithoutProperties(_ref, ["user", "backend", "s1", "d3", "sma"]);
  4512. const classes = carrer_useStyles();
  4513. const rest = Object.assign({}, props);
  4514. return carrer_jsx("div", null, carrer_jsx(Header["a" /* default */], _extends({
  4515. leftLinks: carrer_jsx(HeaderLinks["a" /* default */], {
  4516. username: user
  4517. }),
  4518. fixed: true,
  4519. color: "info",
  4520. changeColorOnScroll: {
  4521. height: 400,
  4522. color: "white"
  4523. }
  4524. }, rest)), carrer_jsx(Parallax["a" /* default */], {
  4525. image: __webpack_require__("F+sf"),
  4526. height: "50px"
  4527. }), carrer_jsx("div", {
  4528. className: external_classnames_default()(classes.main, classes.mainRaised)
  4529. }, carrer_jsx(carrer, {
  4530. s1: s1,
  4531. d3: d3,
  4532. sma: sma,
  4533. backend: backend
  4534. }), carrer_jsx("a", {
  4535. href: "https://wa.me/+6287797315685",
  4536. class: "float",
  4537. target: "_blank"
  4538. }, carrer_jsx("i", {
  4539. class: "fa fa-whatsapp my-float"
  4540. }))), carrer_jsx(Footer["a" /* default */], null));
  4541. };
  4542. /* harmony default export */ var yamaha_carrer_carrer = __webpack_exports__["default"] = (Carrer);
  4543. async function getServerSideProps(context) {
  4544. var s1 = [];
  4545. var d3 = [];
  4546. var sma = [];
  4547. const backend = process.env.BACKEND_SERVER_URI;
  4548. var {
  4549. req,
  4550. resp
  4551. } = context;
  4552. const cookies = new external_cookies_default.a(req, resp);
  4553. var user = "";
  4554. var userObj = (await cookies.get("user")) ? JSON.parse(await cookies.get("user")) : null;
  4555. if (userObj) {
  4556. let sessionId = userObj["partners_login_states"].filter(function (i) {
  4557. return i.business_partner && i.business_partner.name.toUpperCase() == "YAMAHA";
  4558. });
  4559. if (sessionId.length != 0) user = userObj["username"];
  4560. }
  4561. var res = await carrer_default.a.GetCarrerS1Yamaha();
  4562. if (res["STATUS"] === 1) {
  4563. s1 = res["DATA"]["carrers"];
  4564. }
  4565. var res = await carrer_default.a.GetCarrerD3Yamaha();
  4566. if (res["STATUS"] === 1) {
  4567. d3 = res["DATA"]["carrers"];
  4568. }
  4569. var res = await carrer_default.a.GetCarrerSMAYamaha();
  4570. if (res["STATUS"] === 1) {
  4571. sma = res["DATA"]["carrers"];
  4572. }
  4573. return {
  4574. props: {
  4575. user,
  4576. s1,
  4577. d3,
  4578. sma,
  4579. backend
  4580. } // will be passed to the page component as props
  4581. };
  4582. }
  4583. /***/ }),
  4584. /***/ "x54t":
  4585. /***/ (function(module, exports) {
  4586. module.exports = require("@material-ui/core/MenuItem");
  4587. /***/ }),
  4588. /***/ "xmQw":
  4589. /***/ (function(module, exports) {
  4590. module.exports = require("@material-ui/core/MenuList");
  4591. /***/ }),
  4592. /***/ "z+8S":
  4593. /***/ (function(module, exports) {
  4594. module.exports = require("@apollo/client");
  4595. /***/ })
  4596. /******/ });