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.
 
 

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