25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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