25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

5559 satır
177 KiB

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