Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.

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