Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

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