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

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