Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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