您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

5413 行
176 KiB

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