25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

5200 satır
166 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 = 62);
  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. /***/ 62:
  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: "#000",
  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.networkError.result);
  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("br", null), __jsx("br", null), __jsx("link", {
  1593. rel: "stylesheet",
  1594. href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
  1595. }), __jsx("div", {
  1596. align: "center"
  1597. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1598. className: classes.list
  1599. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1600. className: classes.inlineBlock
  1601. }, __jsx("a", {
  1602. href: "/suzuki/home",
  1603. className: classes.block
  1604. }, " Home ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1605. className: classes.inlineBlock
  1606. }, __jsx("a", {
  1607. href: "/suzuki/product/product",
  1608. className: classes.block
  1609. }, " Product ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1610. className: classes.inlineBlock
  1611. }, __jsx("a", {
  1612. href: "/suzuki/latestsnews",
  1613. className: classes.block
  1614. }, " Latest News ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1615. className: classes.inlineBlock
  1616. }, __jsx("a", {
  1617. href: "/suzuki/carrer",
  1618. className: classes.block
  1619. }, " Carrer ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1620. className: classes.inlineBlock
  1621. }, __jsx("a", {
  1622. href: "/suzuki/about_us/aboutus",
  1623. className: classes.block
  1624. }, " About Us ")))), __jsx("div", {
  1625. align: "center"
  1626. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1627. className: classes.list
  1628. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1629. className: classes.inlineBlock,
  1630. style: {
  1631. padding: "10px"
  1632. }
  1633. }, __jsx("a", {
  1634. href: "#",
  1635. class: "fa fa-facebook"
  1636. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1637. className: classes.inlineBlock,
  1638. style: {
  1639. padding: "10px"
  1640. }
  1641. }, __jsx("a", {
  1642. href: "#",
  1643. class: "fa fa-instagram"
  1644. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1645. className: classes.inlineBlock,
  1646. style: {
  1647. padding: "10px"
  1648. }
  1649. }, __jsx("a", {
  1650. href: "#",
  1651. class: "fa fa-twitter"
  1652. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1653. className: classes.inlineBlock,
  1654. style: {
  1655. padding: "10px"
  1656. }
  1657. }, __jsx("a", {
  1658. href: "#",
  1659. class: "fa fa-youtube"
  1660. })))), __jsx("br", null), __jsx("br", null), __jsx("div", {
  1661. align: "center"
  1662. }, "\xA9 ", 1900 + new Date().getYear(), " , All Right Reserved", " ", " by", " ", " @Thamrin Brothers"), __jsx("br", null), __jsx("br", null));
  1663. }
  1664. /***/ }),
  1665. /***/ "K2gz":
  1666. /***/ (function(module, exports) {
  1667. module.exports = require("classnames");
  1668. /***/ }),
  1669. /***/ "KKbo":
  1670. /***/ (function(module, exports) {
  1671. module.exports = require("@material-ui/core");
  1672. /***/ }),
  1673. /***/ "Kg+a":
  1674. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1675. "use strict";
  1676. // EXTERNAL MODULE: external "react"
  1677. var external_react_ = __webpack_require__("cDcd");
  1678. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1679. // EXTERNAL MODULE: external "classnames"
  1680. var external_classnames_ = __webpack_require__("K2gz");
  1681. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1682. // EXTERNAL MODULE: external "@material-ui/core/styles/makeStyles"
  1683. var makeStyles_ = __webpack_require__("8//M");
  1684. var makeStyles_default = /*#__PURE__*/__webpack_require__.n(makeStyles_);
  1685. // EXTERNAL MODULE: external "@material-ui/core/Button"
  1686. var Button_ = __webpack_require__("Wh1t");
  1687. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  1688. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1689. var nextjs_material_kit = __webpack_require__("eDSW");
  1690. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/buttonStyle.js
  1691. const buttonStyle = {
  1692. button: {
  1693. minHeight: "auto",
  1694. minWidth: "auto",
  1695. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1696. color: "#FFFFFF",
  1697. 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)",
  1698. border: "none",
  1699. borderRadius: "3px",
  1700. position: "relative",
  1701. padding: "12px 30px",
  1702. margin: ".3125rem 1px",
  1703. fontSize: "12px",
  1704. fontWeight: "400",
  1705. textTransform: "uppercase",
  1706. letterSpacing: "0",
  1707. willChange: "box-shadow, transform",
  1708. transition: "box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
  1709. lineHeight: "1.42857143",
  1710. textAlign: "center",
  1711. whiteSpace: "nowrap",
  1712. verticalAlign: "middle",
  1713. touchAction: "manipulation",
  1714. cursor: "pointer",
  1715. "&:hover,&:focus": {
  1716. color: "#FFFFFF",
  1717. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1718. 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)"
  1719. },
  1720. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1721. position: "relative",
  1722. display: "inline-block",
  1723. top: "0",
  1724. fontSize: "1.1rem",
  1725. marginRight: "4px",
  1726. verticalAlign: "middle"
  1727. },
  1728. "& svg": {
  1729. position: "relative",
  1730. display: "inline-block",
  1731. top: "0",
  1732. width: "18px",
  1733. height: "18px",
  1734. marginRight: "4px",
  1735. verticalAlign: "middle"
  1736. },
  1737. "&$justIcon": {
  1738. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1739. marginRight: "0px",
  1740. position: "absolute",
  1741. width: "100%",
  1742. transform: "none",
  1743. left: "0px",
  1744. top: "0px",
  1745. height: "100%",
  1746. lineHeight: "41px",
  1747. fontSize: "20px"
  1748. }
  1749. }
  1750. },
  1751. fullWidth: {
  1752. width: "100%"
  1753. },
  1754. primary: {
  1755. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1756. 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)}`,
  1757. "&:hover,&:focus": {
  1758. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1759. 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)}`
  1760. }
  1761. },
  1762. info: {
  1763. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1764. 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)}`,
  1765. "&:hover,&:focus": {
  1766. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1767. 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)}`
  1768. }
  1769. },
  1770. success: {
  1771. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1772. 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)}`,
  1773. "&:hover,&:focus": {
  1774. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1775. 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)}`
  1776. }
  1777. },
  1778. warning: {
  1779. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1780. 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)}`,
  1781. "&:hover,&:focus": {
  1782. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1783. 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)}`
  1784. }
  1785. },
  1786. danger: {
  1787. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1788. 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)}`,
  1789. "&:hover,&:focus": {
  1790. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1791. 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)}`
  1792. }
  1793. },
  1794. rose: {
  1795. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1796. 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)}`,
  1797. "&:hover,&:focus": {
  1798. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1799. 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)}`
  1800. }
  1801. },
  1802. white: {
  1803. "&,&:focus,&:hover,&:visited": {
  1804. backgroundColor: "#FFFFFF",
  1805. color: nextjs_material_kit["i" /* grayColor */]
  1806. }
  1807. },
  1808. twitter: {
  1809. backgroundColor: "#55acee",
  1810. color: "#fff",
  1811. 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)",
  1812. "&:hover,&:focus,&:visited": {
  1813. backgroundColor: "#55acee",
  1814. color: "#fff",
  1815. 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)"
  1816. }
  1817. },
  1818. facebook: {
  1819. backgroundColor: "#3b5998",
  1820. color: "#fff",
  1821. 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)",
  1822. "&:hover,&:focus": {
  1823. backgroundColor: "#3b5998",
  1824. color: "#fff",
  1825. 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)"
  1826. }
  1827. },
  1828. google: {
  1829. backgroundColor: "#dd4b39",
  1830. color: "#fff",
  1831. 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)",
  1832. "&:hover,&:focus": {
  1833. backgroundColor: "#dd4b39",
  1834. color: "#fff",
  1835. 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)"
  1836. }
  1837. },
  1838. github: {
  1839. backgroundColor: "#333333",
  1840. color: "#fff",
  1841. 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)",
  1842. "&:hover,&:focus": {
  1843. backgroundColor: "#333333",
  1844. color: "#fff",
  1845. 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)"
  1846. }
  1847. },
  1848. simple: {
  1849. "&,&:focus,&:hover,&:visited": {
  1850. color: "#FFFFFF",
  1851. background: "transparent",
  1852. boxShadow: "none"
  1853. },
  1854. "&$primary": {
  1855. "&,&:focus,&:hover,&:visited": {
  1856. color: nextjs_material_kit["p" /* primaryColor */]
  1857. }
  1858. },
  1859. "&$info": {
  1860. "&,&:focus,&:hover,&:visited": {
  1861. color: nextjs_material_kit["m" /* infoColor */]
  1862. }
  1863. },
  1864. "&$success": {
  1865. "&,&:focus,&:hover,&:visited": {
  1866. color: nextjs_material_kit["u" /* successColor */]
  1867. }
  1868. },
  1869. "&$warning": {
  1870. "&,&:focus,&:hover,&:visited": {
  1871. color: nextjs_material_kit["z" /* warningColor */]
  1872. }
  1873. },
  1874. "&$rose": {
  1875. "&,&:focus,&:hover,&:visited": {
  1876. color: nextjs_material_kit["r" /* roseColor */]
  1877. }
  1878. },
  1879. "&$danger": {
  1880. "&,&:focus,&:hover,&:visited": {
  1881. color: nextjs_material_kit["f" /* dangerColor */]
  1882. }
  1883. },
  1884. "&$twitter": {
  1885. "&,&:focus,&:hover,&:visited": {
  1886. color: "#55acee"
  1887. }
  1888. },
  1889. "&$facebook": {
  1890. "&,&:focus,&:hover,&:visited": {
  1891. color: "#3b5998"
  1892. }
  1893. },
  1894. "&$google": {
  1895. "&,&:focus,&:hover,&:visited": {
  1896. color: "#dd4b39"
  1897. }
  1898. },
  1899. "&$github": {
  1900. "&,&:focus,&:hover,&:visited": {
  1901. color: "#333333"
  1902. }
  1903. }
  1904. },
  1905. transparent: {
  1906. "&,&:focus,&:hover,&:visited": {
  1907. color: "inherit",
  1908. background: "transparent",
  1909. boxShadow: "none"
  1910. }
  1911. },
  1912. disabled: {
  1913. opacity: "0.65",
  1914. pointerEvents: "none"
  1915. },
  1916. lg: {
  1917. padding: "1.125rem 2.25rem",
  1918. fontSize: "0.875rem",
  1919. lineHeight: "1.333333",
  1920. borderRadius: "0.2rem"
  1921. },
  1922. sm: {
  1923. padding: "0.40625rem 1.25rem",
  1924. fontSize: "0.6875rem",
  1925. lineHeight: "1.5",
  1926. borderRadius: "0.2rem"
  1927. },
  1928. round: {
  1929. borderRadius: "30px"
  1930. },
  1931. block: {
  1932. width: "100% !important"
  1933. },
  1934. link: {
  1935. "&,&:hover,&:focus": {
  1936. backgroundColor: "transparent",
  1937. color: "#999999",
  1938. boxShadow: "none"
  1939. }
  1940. },
  1941. justIcon: {
  1942. paddingLeft: "12px",
  1943. paddingRight: "12px",
  1944. fontSize: "20px",
  1945. height: "41px",
  1946. minWidth: "41px",
  1947. width: "41px",
  1948. "& .fab,& .fas,& .far,& .fal,& svg,& .material-icons": {
  1949. marginRight: "0px"
  1950. },
  1951. "&$lg": {
  1952. height: "57px",
  1953. minWidth: "57px",
  1954. width: "57px",
  1955. lineHeight: "56px",
  1956. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1957. fontSize: "32px",
  1958. lineHeight: "56px"
  1959. },
  1960. "& svg": {
  1961. width: "32px",
  1962. height: "32px"
  1963. }
  1964. },
  1965. "&$sm": {
  1966. height: "30px",
  1967. minWidth: "30px",
  1968. width: "30px",
  1969. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1970. fontSize: "17px",
  1971. lineHeight: "29px"
  1972. },
  1973. "& svg": {
  1974. width: "17px",
  1975. height: "17px"
  1976. }
  1977. }
  1978. }
  1979. };
  1980. /* harmony default export */ var components_buttonStyle = (buttonStyle);
  1981. // CONCATENATED MODULE: ./components/CustomButtons/Button.js
  1982. var __jsx = external_react_default.a.createElement;
  1983. 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); }
  1984. 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; }
  1985. 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; }
  1986. 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; }
  1987. 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; }
  1988. 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; }
  1989. // nodejs library to set properties for components
  1990. // nodejs library that concatenates classes
  1991. // @material-ui/core components
  1992. // core components
  1993. const makeComponentStyles = makeStyles_default()(() => _objectSpread({}, components_buttonStyle));
  1994. const RegularButton = external_react_default.a.forwardRef((props, ref) => {
  1995. const {
  1996. color,
  1997. round,
  1998. children,
  1999. fullWidth,
  2000. disabled,
  2001. simple,
  2002. size,
  2003. block,
  2004. link,
  2005. justIcon,
  2006. className
  2007. } = props,
  2008. rest = _objectWithoutProperties(props, ["color", "round", "children", "fullWidth", "disabled", "simple", "size", "block", "link", "justIcon", "className"]);
  2009. const classes = makeComponentStyles();
  2010. const btnClasses = external_classnames_default()({
  2011. [classes.button]: true,
  2012. [classes[size]]: size,
  2013. [classes[color]]: color,
  2014. [classes.round]: round,
  2015. [classes.fullWidth]: fullWidth,
  2016. [classes.disabled]: disabled,
  2017. [classes.simple]: simple,
  2018. [classes.block]: block,
  2019. [classes.link]: link,
  2020. [classes.justIcon]: justIcon,
  2021. [className]: className
  2022. });
  2023. return __jsx(Button_default.a, _extends({}, rest, {
  2024. ref: ref,
  2025. classes: {
  2026. root: btnClasses
  2027. }
  2028. }), children);
  2029. });
  2030. /* harmony default export */ var Button = __webpack_exports__["a"] = (RegularButton);
  2031. /***/ }),
  2032. /***/ "Ms0O":
  2033. /***/ (function(module, exports) {
  2034. module.exports = require("@material-ui/core/Toolbar");
  2035. /***/ }),
  2036. /***/ "Npyv":
  2037. /***/ (function(module, exports) {
  2038. module.exports = "/_next/static/images/Suzuki-46aee4e5f912860adf2da85d836532b5.png";
  2039. /***/ }),
  2040. /***/ "Osoz":
  2041. /***/ (function(module, exports) {
  2042. module.exports = require("next/dist/next-server/lib/router-context.js");
  2043. /***/ }),
  2044. /***/ "Q01v":
  2045. /***/ (function(module, exports) {
  2046. module.exports = require("@material-ui/core/Drawer");
  2047. /***/ }),
  2048. /***/ "QOEo":
  2049. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2050. "use strict";
  2051. // EXPORTS
  2052. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomDropdown; });
  2053. // EXTERNAL MODULE: external "react"
  2054. var external_react_ = __webpack_require__("cDcd");
  2055. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2056. // EXTERNAL MODULE: external "classnames"
  2057. var external_classnames_ = __webpack_require__("K2gz");
  2058. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2059. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2060. var styles_ = __webpack_require__("9Pu4");
  2061. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  2062. var MenuItem_ = __webpack_require__("x54t");
  2063. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  2064. // EXTERNAL MODULE: external "@material-ui/core/MenuList"
  2065. var MenuList_ = __webpack_require__("xmQw");
  2066. var MenuList_default = /*#__PURE__*/__webpack_require__.n(MenuList_);
  2067. // EXTERNAL MODULE: external "@material-ui/core/ClickAwayListener"
  2068. var ClickAwayListener_ = __webpack_require__("31Yn");
  2069. var ClickAwayListener_default = /*#__PURE__*/__webpack_require__.n(ClickAwayListener_);
  2070. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  2071. var Paper_ = __webpack_require__("qt1I");
  2072. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  2073. // EXTERNAL MODULE: external "@material-ui/core/Grow"
  2074. var Grow_ = __webpack_require__("mf1M");
  2075. var Grow_default = /*#__PURE__*/__webpack_require__.n(Grow_);
  2076. // EXTERNAL MODULE: external "@material-ui/core/Divider"
  2077. var Divider_ = __webpack_require__("nybW");
  2078. var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
  2079. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  2080. var Icon_ = __webpack_require__("7vM9");
  2081. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  2082. // EXTERNAL MODULE: external "@material-ui/core/Popper"
  2083. var Popper_ = __webpack_require__("jD8W");
  2084. var Popper_default = /*#__PURE__*/__webpack_require__.n(Popper_);
  2085. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  2086. var Button = __webpack_require__("Kg+a");
  2087. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  2088. var nextjs_material_kit = __webpack_require__("eDSW");
  2089. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customDropdownStyle.js
  2090. 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; }
  2091. 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; }
  2092. 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; }
  2093. const customDropdownStyle = theme => ({
  2094. popperClose: {
  2095. pointerEvents: "none"
  2096. },
  2097. pooperNav: {
  2098. [theme.breakpoints.down("sm")]: {
  2099. position: "static !important",
  2100. left: "unset !important",
  2101. top: "unset !important",
  2102. transform: "none !important",
  2103. willChange: "none !important",
  2104. "& > div": {
  2105. boxShadow: "none !important",
  2106. marginLeft: "1.5rem",
  2107. marginRight: "1.5rem",
  2108. transition: "none !important",
  2109. marginTop: "0px !important",
  2110. marginBottom: "5px !important",
  2111. padding: "0px !important"
  2112. }
  2113. }
  2114. },
  2115. dropdown: {
  2116. borderRadius: "3px",
  2117. border: "0",
  2118. boxShadow: "0 2px 5px 0 rgba(0, 0, 0, 0.26)",
  2119. top: "100%",
  2120. zIndex: "1000",
  2121. minWidth: "160px",
  2122. padding: "5px 0",
  2123. margin: "2px 0 0",
  2124. fontSize: "14px",
  2125. textAlign: "left",
  2126. listStyle: "none",
  2127. backgroundColor: "#fff",
  2128. backgroundClip: "padding-box"
  2129. },
  2130. menuList: {
  2131. padding: "0"
  2132. },
  2133. popperResponsive: {
  2134. zIndex: "1200",
  2135. position: "absolute !important",
  2136. [theme.breakpoints.down("sm")]: {
  2137. zIndex: "1640",
  2138. position: "static !important",
  2139. float: "none",
  2140. width: "auto",
  2141. marginTop: "0",
  2142. backgroundColor: "transparent",
  2143. border: "0",
  2144. boxShadow: "none",
  2145. color: "black"
  2146. }
  2147. },
  2148. dropdownItem: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  2149. fontSize: "13px",
  2150. padding: "10px 20px",
  2151. margin: "0 5px",
  2152. borderRadius: "2px",
  2153. position: "relative",
  2154. transition: "all 150ms linear",
  2155. display: "block",
  2156. clear: "both",
  2157. fontWeight: "400",
  2158. height: "fit-content",
  2159. color: "#333",
  2160. whiteSpace: "nowrap",
  2161. minHeight: "unset"
  2162. }),
  2163. blackHover: {
  2164. "&:hover": {
  2165. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)",
  2166. backgroundColor: "#212121",
  2167. color: "#fff"
  2168. }
  2169. },
  2170. primaryHover: {
  2171. "&:hover": _objectSpread({
  2172. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2173. color: "#FFFFFF"
  2174. }, nextjs_material_kit["n" /* primaryBoxShadow */])
  2175. },
  2176. infoHover: {
  2177. "&:hover": _objectSpread({
  2178. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2179. color: "#FFFFFF"
  2180. }, nextjs_material_kit["k" /* infoBoxShadow */])
  2181. },
  2182. successHover: {
  2183. "&:hover": _objectSpread({
  2184. backgroundColor: nextjs_material_kit["u" /* successColor */],
  2185. color: "#FFFFFF"
  2186. }, nextjs_material_kit["s" /* successBoxShadow */])
  2187. },
  2188. warningHover: {
  2189. "&:hover": _objectSpread({
  2190. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  2191. color: "#FFFFFF"
  2192. }, nextjs_material_kit["x" /* warningBoxShadow */])
  2193. },
  2194. dangerHover: {
  2195. "&:hover": _objectSpread({
  2196. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  2197. color: "#FFFFFF"
  2198. }, nextjs_material_kit["d" /* dangerBoxShadow */])
  2199. },
  2200. roseHover: {
  2201. "&:hover": _objectSpread({
  2202. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  2203. color: "#FFFFFF"
  2204. }, nextjs_material_kit["q" /* roseBoxShadow */])
  2205. },
  2206. dropdownItemRTL: {
  2207. textAlign: "right"
  2208. },
  2209. dropdownDividerItem: {
  2210. margin: "5px 0",
  2211. backgroundColor: "rgba(0, 0, 0, 0.12)",
  2212. height: "1px",
  2213. overflow: "hidden"
  2214. },
  2215. buttonIcon: {
  2216. width: "20px",
  2217. height: "20px"
  2218. },
  2219. caret: {
  2220. transition: "all 150ms ease-in",
  2221. display: "inline-block",
  2222. width: "0",
  2223. height: "0",
  2224. marginLeft: "4px",
  2225. verticalAlign: "middle",
  2226. borderTop: "4px solid",
  2227. borderRight: "4px solid transparent",
  2228. borderLeft: "4px solid transparent"
  2229. },
  2230. caretActive: {
  2231. transform: "rotate(180deg)"
  2232. },
  2233. caretRTL: {
  2234. marginRight: "4px"
  2235. },
  2236. dropdownHeader: {
  2237. display: "block",
  2238. padding: "0.1875rem 1.25rem",
  2239. fontSize: "0.75rem",
  2240. lineHeight: "1.428571",
  2241. color: "#777",
  2242. whiteSpace: "nowrap",
  2243. fontWeight: "inherit",
  2244. marginTop: "10px",
  2245. minHeight: "unset",
  2246. "&:hover,&:focus": {
  2247. backgroundColor: "transparent",
  2248. cursor: "auto"
  2249. }
  2250. },
  2251. noLiPadding: {
  2252. padding: "0"
  2253. }
  2254. });
  2255. /* harmony default export */ var components_customDropdownStyle = (customDropdownStyle);
  2256. // CONCATENATED MODULE: ./components/CustomDropdown/CustomDropdown.js
  2257. var __jsx = external_react_default.a.createElement;
  2258. 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); }
  2259. // nodejs library that concatenates classes
  2260. // nodejs library to set properties for components
  2261. // @material-ui/core components
  2262. // core components
  2263. const useStyles = Object(styles_["makeStyles"])(components_customDropdownStyle);
  2264. function CustomDropdown(props) {
  2265. const [anchorEl, setAnchorEl] = external_react_default.a.useState(null);
  2266. const handleClick = event => {
  2267. if (anchorEl && anchorEl.contains(event.target)) {
  2268. setAnchorEl(null);
  2269. } else {
  2270. setAnchorEl(event.currentTarget);
  2271. }
  2272. };
  2273. const handleClose = param => {
  2274. setAnchorEl(null);
  2275. if (props && props.onClick) {
  2276. props.onClick(param);
  2277. }
  2278. };
  2279. const handleCloseAway = event => {
  2280. if (anchorEl.contains(event.target)) {
  2281. return;
  2282. }
  2283. setAnchorEl(null);
  2284. };
  2285. const classes = useStyles();
  2286. const {
  2287. buttonText,
  2288. buttonIcon,
  2289. dropdownList,
  2290. buttonProps,
  2291. dropup,
  2292. dropdownHeader,
  2293. caret,
  2294. hoverColor,
  2295. left,
  2296. rtlActive,
  2297. noLiPadding,
  2298. navDropdown
  2299. } = props;
  2300. const caretClasses = external_classnames_default()({
  2301. [classes.caret]: true,
  2302. [classes.caretActive]: Boolean(anchorEl),
  2303. [classes.caretRTL]: rtlActive
  2304. });
  2305. const dropdownItem = external_classnames_default()({
  2306. [classes.dropdownItem]: true,
  2307. [classes[hoverColor + "Hover"]]: true,
  2308. [classes.noLiPadding]: noLiPadding,
  2309. [classes.dropdownItemRTL]: rtlActive
  2310. });
  2311. let icon = null;
  2312. switch (typeof buttonIcon) {
  2313. case "object":
  2314. icon = __jsx(props.buttonIcon, {
  2315. className: classes.buttonIcon
  2316. });
  2317. break;
  2318. case "string":
  2319. icon = __jsx(Icon_default.a, {
  2320. className: classes.buttonIcon
  2321. }, props.buttonIcon);
  2322. break;
  2323. default:
  2324. icon = null;
  2325. break;
  2326. }
  2327. return __jsx("div", null, __jsx("div", null, __jsx(Button["a" /* default */], _extends({
  2328. "aria-label": "Notifications",
  2329. "aria-owns": anchorEl ? "menu-list" : null,
  2330. "aria-haspopup": "true"
  2331. }, buttonProps, {
  2332. onClick: handleClick
  2333. }), icon, buttonText !== undefined ? buttonText : null, caret ? __jsx("b", {
  2334. className: caretClasses
  2335. }) : null)), __jsx(Popper_default.a, {
  2336. open: Boolean(anchorEl),
  2337. anchorEl: anchorEl,
  2338. transition: true,
  2339. disablePortal: true,
  2340. placement: dropup ? left ? "top-start" : "top" : left ? "bottom-start" : "bottom",
  2341. className: external_classnames_default()({
  2342. [classes.popperClose]: !anchorEl,
  2343. [classes.popperResponsive]: true,
  2344. [classes.pooperNav]: Boolean(anchorEl) && navDropdown
  2345. })
  2346. }, () => __jsx(Grow_default.a, {
  2347. in: Boolean(anchorEl),
  2348. id: "menu-list",
  2349. style: dropup ? {
  2350. transformOrigin: "0 100% 0"
  2351. } : {
  2352. transformOrigin: "0 0 0"
  2353. }
  2354. }, __jsx(Paper_default.a, {
  2355. className: classes.dropdown
  2356. }, __jsx(ClickAwayListener_default.a, {
  2357. onClickAway: handleCloseAway
  2358. }, __jsx(MenuList_default.a, {
  2359. role: "menu",
  2360. className: classes.menuList
  2361. }, dropdownHeader !== undefined ? __jsx(MenuItem_default.a, {
  2362. onClick: () => handleClose(dropdownHeader),
  2363. className: classes.dropdownHeader
  2364. }, dropdownHeader) : null, dropdownList.map((prop, key) => {
  2365. if (prop.divider) {
  2366. return __jsx(Divider_default.a, {
  2367. key: key,
  2368. onClick: () => handleClose("divider"),
  2369. className: classes.dropdownDividerItem
  2370. });
  2371. }
  2372. return __jsx(MenuItem_default.a, {
  2373. key: key,
  2374. onClick: () => handleClose(prop),
  2375. className: dropdownItem
  2376. }, prop);
  2377. })))))));
  2378. }
  2379. CustomDropdown.defaultProps = {
  2380. caret: true,
  2381. hoverColor: "primary"
  2382. };
  2383. /***/ }),
  2384. /***/ "SpHr":
  2385. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2386. "use strict";
  2387. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  2388. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  2389. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  2390. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  2391. /* harmony import */ var components_Snackbar_SnackbarContent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("FoiA");
  2392. /* harmony import */ var assets_jss_nextjs_material_kit_pages_componentsSections_notificationsStyles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("7WNa");
  2393. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  2394. // @material-ui/core components
  2395. // Component
  2396. 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"]);
  2397. const DataSnackbarContent = function () {
  2398. const classes = useStyles();
  2399. return __jsx("div", {
  2400. align: "center"
  2401. }, __jsx("div", {
  2402. align: "center",
  2403. className: classes.section,
  2404. id: "notifications"
  2405. }, __jsx(components_Snackbar_SnackbarContent_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], {
  2406. message: __jsx("h4", null, "Thamrin Group bersama Anda melawan COVID-19. Untuk informasi silakan ", __jsx("a", {
  2407. href: "https://covid19.go.id/",
  2408. target: "_blank",
  2409. className: classes.block
  2410. }, "klik di sini.")),
  2411. align: "center",
  2412. color: "info"
  2413. })));
  2414. };
  2415. /* harmony default export */ __webpack_exports__["a"] = (DataSnackbarContent);
  2416. /***/ }),
  2417. /***/ "UsYt":
  2418. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2419. "use strict";
  2420. // EXPORTS
  2421. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CardBody; });
  2422. // EXTERNAL MODULE: external "react"
  2423. var external_react_ = __webpack_require__("cDcd");
  2424. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2425. // EXTERNAL MODULE: external "classnames"
  2426. var external_classnames_ = __webpack_require__("K2gz");
  2427. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2428. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2429. var styles_ = __webpack_require__("9Pu4");
  2430. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardBodyStyle.js
  2431. const cardBodyStyle = {
  2432. cardBody: {
  2433. padding: "0.9375rem 1.875rem",
  2434. flex: "1 1 auto"
  2435. }
  2436. };
  2437. /* harmony default export */ var components_cardBodyStyle = (cardBodyStyle);
  2438. // CONCATENATED MODULE: ./components/Card/CardBody.js
  2439. var __jsx = external_react_default.a.createElement;
  2440. 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); }
  2441. 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; }
  2442. 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; }
  2443. // nodejs library that concatenates classes
  2444. // nodejs library to set properties for components
  2445. // @material-ui/core components
  2446. // @material-ui/icons
  2447. // core components
  2448. const useStyles = Object(styles_["makeStyles"])(components_cardBodyStyle);
  2449. function CardBody(props) {
  2450. const classes = useStyles();
  2451. const {
  2452. className,
  2453. children
  2454. } = props,
  2455. rest = _objectWithoutProperties(props, ["className", "children"]);
  2456. const cardBodyClasses = external_classnames_default()({
  2457. [classes.cardBody]: true,
  2458. [className]: className !== undefined
  2459. });
  2460. return __jsx("div", _extends({
  2461. className: cardBodyClasses
  2462. }, rest), children);
  2463. }
  2464. /***/ }),
  2465. /***/ "Wh1t":
  2466. /***/ (function(module, exports) {
  2467. module.exports = require("@material-ui/core/Button");
  2468. /***/ }),
  2469. /***/ "Y8uC":
  2470. /***/ (function(module, exports) {
  2471. module.exports = require("@material-ui/core/Hidden");
  2472. /***/ }),
  2473. /***/ "YFqc":
  2474. /***/ (function(module, exports, __webpack_require__) {
  2475. module.exports = __webpack_require__("cTJO")
  2476. /***/ }),
  2477. /***/ "YTqd":
  2478. /***/ (function(module, exports, __webpack_require__) {
  2479. "use strict";
  2480. Object.defineProperty(exports, "__esModule", {
  2481. value: true
  2482. }); // this isn't importing the escape-string-regex module
  2483. // to reduce bytes
  2484. function escapeRegex(str) {
  2485. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  2486. }
  2487. function getRouteRegex(normalizedRoute) {
  2488. // Escape all characters that could be considered RegEx
  2489. const escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  2490. const groups = {};
  2491. let groupIndex = 1;
  2492. const parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2493. const isCatchAll = /^(\\\.){3}/.test($1);
  2494. groups[$1 // Un-escape key
  2495. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  2496. ] = {
  2497. pos: groupIndex++,
  2498. repeat: isCatchAll
  2499. };
  2500. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  2501. });
  2502. let namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  2503. // while generating routes-manifest
  2504. if (true) {
  2505. namedParameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2506. const isCatchAll = /^(\\\.){3}/.test($1);
  2507. const key = $1 // Un-escape key
  2508. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '');
  2509. return isCatchAll ? `/(?<${escapeRegex(key)}>.+?)` : `/(?<${escapeRegex(key)}>[^/]+?)`;
  2510. });
  2511. }
  2512. return Object.assign({
  2513. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  2514. groups
  2515. }, namedParameterizedRoute ? {
  2516. namedRegex: `^${namedParameterizedRoute}(?:/)?$`
  2517. } : {});
  2518. }
  2519. exports.getRouteRegex = getRouteRegex;
  2520. /***/ }),
  2521. /***/ "Z2Lm":
  2522. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2523. "use strict";
  2524. // EXPORTS
  2525. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Parallax; });
  2526. // EXTERNAL MODULE: external "react"
  2527. var external_react_ = __webpack_require__("cDcd");
  2528. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2529. // EXTERNAL MODULE: external "classnames"
  2530. var external_classnames_ = __webpack_require__("K2gz");
  2531. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2532. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2533. var styles_ = __webpack_require__("9Pu4");
  2534. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/parallaxStyle.js
  2535. const parallaxStyle = theme => ({
  2536. parallax: {
  2537. height: "90vh",
  2538. maxHeight: "1000px",
  2539. overflow: "hidden",
  2540. position: "relative",
  2541. backgroundPosition: "center top",
  2542. backgroundSize: "cover",
  2543. margin: "0",
  2544. padding: "0",
  2545. border: "0",
  2546. display: "flex",
  2547. alignItems: "center"
  2548. },
  2549. filter: {
  2550. "&:before": {
  2551. background: "#212121"
  2552. },
  2553. "&:after,&:before": {
  2554. position: "absolute",
  2555. zIndex: "1",
  2556. width: "100%",
  2557. height: "100%",
  2558. display: "block",
  2559. left: "0",
  2560. top: "0",
  2561. content: "''"
  2562. }
  2563. },
  2564. small: {
  2565. height: "380px"
  2566. },
  2567. parallaxResponsive: {
  2568. [theme.breakpoints.down("md")]: {
  2569. minHeight: "660px"
  2570. }
  2571. }
  2572. });
  2573. /* harmony default export */ var components_parallaxStyle = (parallaxStyle);
  2574. // CONCATENATED MODULE: ./components/Parallax/Parallax.js
  2575. var __jsx = external_react_default.a.createElement;
  2576. 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; }
  2577. 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; }
  2578. 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; }
  2579. // nodejs library that concatenates classes
  2580. // nodejs library to set properties for components
  2581. // @material-ui/core components
  2582. // core components
  2583. const useStyles = Object(styles_["makeStyles"])(components_parallaxStyle);
  2584. function Parallax(props) {
  2585. let windowScrollTop; // if (window.innerWidth >= 768) {
  2586. // windowScrollTop = window.pageYOffset / 3;
  2587. // } else {
  2588. // windowScrollTop = 0;
  2589. // }
  2590. const [transform, setTransform] = external_react_default.a.useState("translate3d(0,0px,0)");
  2591. external_react_default.a.useEffect(() => {
  2592. if (window.innerWidth >= 768) {
  2593. window.addEventListener("scroll", resetTransform);
  2594. }
  2595. return function cleanup() {
  2596. if (window.innerWidth >= 768) {
  2597. window.removeEventListener("scroll", resetTransform);
  2598. }
  2599. };
  2600. });
  2601. const resetTransform = () => {
  2602. var windowScrollTop = window.pageYOffset / 3;
  2603. setTransform("translate3d(0," + windowScrollTop + "px,0)");
  2604. };
  2605. const {
  2606. filter,
  2607. className,
  2608. children,
  2609. style,
  2610. image,
  2611. small,
  2612. responsive
  2613. } = props;
  2614. const classes = useStyles();
  2615. const parallaxClasses = external_classnames_default()({
  2616. [classes.parallax]: true,
  2617. [classes.filter]: filter,
  2618. [classes.small]: small,
  2619. [classes.parallaxResponsive]: responsive,
  2620. [className]: className !== undefined
  2621. });
  2622. return __jsx("div", {
  2623. className: parallaxClasses,
  2624. style: _objectSpread({}, style, {
  2625. backgroundImage: "url(" + image + ")",
  2626. transform: transform
  2627. })
  2628. }, children);
  2629. }
  2630. /***/ }),
  2631. /***/ "bhG4":
  2632. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2633. "use strict";
  2634. /* harmony import */ var _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  2635. const componentsStyle = {
  2636. container: _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  2637. brand: {
  2638. color: "#FFFFFF",
  2639. textAlign: "left"
  2640. },
  2641. title: {
  2642. fontSize: "4.2rem",
  2643. fontWeight: "600",
  2644. display: "inline-block",
  2645. position: "relative"
  2646. },
  2647. subtitle: {
  2648. fontSize: "1.313rem",
  2649. maxWidth: "510px",
  2650. margin: "10px 0 0"
  2651. },
  2652. main: {
  2653. background: "#FFFFFF",
  2654. position: "relative",
  2655. zIndex: "3"
  2656. },
  2657. mainRaised: {
  2658. margin: "-60px 30px 0px",
  2659. borderRadius: "6px",
  2660. 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)",
  2661. "@media (max-width: 830px)": {
  2662. marginLeft: "10px",
  2663. marginRight: "10px"
  2664. }
  2665. },
  2666. link: {
  2667. textDecoration: "none"
  2668. },
  2669. textCenter: {
  2670. textAlign: "center"
  2671. }
  2672. };
  2673. /* harmony default export */ __webpack_exports__["a"] = (componentsStyle);
  2674. /***/ }),
  2675. /***/ "bx/+":
  2676. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2677. "use strict";
  2678. __webpack_require__.r(__webpack_exports__);
  2679. // Apollo Value Configuration
  2680. const ApolloConfig = {
  2681. graphql_uri: process.env.API_GRAPHQL_URI
  2682. };
  2683. /* harmony default export */ __webpack_exports__["default"] = (ApolloConfig);
  2684. /***/ }),
  2685. /***/ "bzos":
  2686. /***/ (function(module, exports) {
  2687. module.exports = require("url");
  2688. /***/ }),
  2689. /***/ "c25J":
  2690. /***/ (function(module, exports) {
  2691. module.exports = require("@material-ui/core/ListItem");
  2692. /***/ }),
  2693. /***/ "cDcd":
  2694. /***/ (function(module, exports) {
  2695. module.exports = require("react");
  2696. /***/ }),
  2697. /***/ "cTJO":
  2698. /***/ (function(module, exports, __webpack_require__) {
  2699. "use strict";
  2700. var _interopRequireDefault = __webpack_require__("AroE");
  2701. var _interopRequireWildcard = __webpack_require__("7KCV");
  2702. exports.__esModule = true;
  2703. exports.default = void 0;
  2704. var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
  2705. var _url = __webpack_require__("bzos");
  2706. var _utils = __webpack_require__("kYf9");
  2707. var _router = _interopRequireDefault(__webpack_require__("nOHt"));
  2708. var _router2 = __webpack_require__("elyg");
  2709. function isLocal(href) {
  2710. var url = (0, _url.parse)(href, false, true);
  2711. var origin = (0, _url.parse)((0, _utils.getLocationOrigin)(), false, true);
  2712. return !url.host || url.protocol === origin.protocol && url.host === origin.host;
  2713. }
  2714. function memoizedFormatUrl(formatFunc) {
  2715. var lastHref = null;
  2716. var lastAs = null;
  2717. var lastResult = null;
  2718. return (href, as) => {
  2719. if (lastResult && href === lastHref && as === lastAs) {
  2720. return lastResult;
  2721. }
  2722. var result = formatFunc(href, as);
  2723. lastHref = href;
  2724. lastAs = as;
  2725. lastResult = result;
  2726. return result;
  2727. };
  2728. }
  2729. function formatUrl(url) {
  2730. return url && typeof url === 'object' ? (0, _utils.formatWithValidation)(url) : url;
  2731. }
  2732. var observer;
  2733. var listeners = new Map();
  2734. var IntersectionObserver = false ? undefined : null;
  2735. var prefetched = {};
  2736. function getObserver() {
  2737. // Return shared instance of IntersectionObserver if already created
  2738. if (observer) {
  2739. return observer;
  2740. } // Only create shared IntersectionObserver if supported in browser
  2741. if (!IntersectionObserver) {
  2742. return undefined;
  2743. }
  2744. return observer = new IntersectionObserver(entries => {
  2745. entries.forEach(entry => {
  2746. if (!listeners.has(entry.target)) {
  2747. return;
  2748. }
  2749. var cb = listeners.get(entry.target);
  2750. if (entry.isIntersecting || entry.intersectionRatio > 0) {
  2751. observer.unobserve(entry.target);
  2752. listeners.delete(entry.target);
  2753. cb();
  2754. }
  2755. });
  2756. }, {
  2757. rootMargin: '200px'
  2758. });
  2759. }
  2760. var listenToIntersections = (el, cb) => {
  2761. var observer = getObserver();
  2762. if (!observer) {
  2763. return () => {};
  2764. }
  2765. observer.observe(el);
  2766. listeners.set(el, cb);
  2767. return () => {
  2768. try {
  2769. observer.unobserve(el);
  2770. } catch (err) {
  2771. console.error(err);
  2772. }
  2773. listeners.delete(el);
  2774. };
  2775. };
  2776. class Link extends _react.Component {
  2777. constructor(props) {
  2778. super(props);
  2779. this.p = void 0;
  2780. this.cleanUpListeners = () => {};
  2781. this.formatUrls = memoizedFormatUrl((href, asHref) => {
  2782. return {
  2783. href: (0, _router2.addBasePath)(formatUrl(href)),
  2784. as: asHref ? (0, _router2.addBasePath)(formatUrl(asHref)) : asHref
  2785. };
  2786. });
  2787. this.linkClicked = e => {
  2788. var {
  2789. nodeName,
  2790. target
  2791. } = e.currentTarget;
  2792. if (nodeName === 'A' && (target && target !== '_self' || e.metaKey || e.ctrlKey || e.shiftKey || e.nativeEvent && e.nativeEvent.which === 2)) {
  2793. // ignore click for new tab / new window behavior
  2794. return;
  2795. }
  2796. var {
  2797. href,
  2798. as
  2799. } = this.formatUrls(this.props.href, this.props.as);
  2800. if (!isLocal(href)) {
  2801. // ignore click if it's outside our scope (e.g. https://google.com)
  2802. return;
  2803. }
  2804. var {
  2805. pathname
  2806. } = window.location;
  2807. href = (0, _url.resolve)(pathname, href);
  2808. as = as ? (0, _url.resolve)(pathname, as) : href;
  2809. e.preventDefault(); // avoid scroll for urls with anchor refs
  2810. var {
  2811. scroll
  2812. } = this.props;
  2813. if (scroll == null) {
  2814. scroll = as.indexOf('#') < 0;
  2815. } // replace state instead of push if prop is present
  2816. _router.default[this.props.replace ? 'replace' : 'push'](href, as, {
  2817. shallow: this.props.shallow
  2818. }).then(success => {
  2819. if (!success) return;
  2820. if (scroll) {
  2821. window.scrollTo(0, 0);
  2822. document.body.focus();
  2823. }
  2824. });
  2825. };
  2826. if (false) {}
  2827. this.p = props.prefetch !== false;
  2828. }
  2829. componentWillUnmount() {
  2830. this.cleanUpListeners();
  2831. }
  2832. getPaths() {
  2833. var {
  2834. pathname
  2835. } = window.location;
  2836. var {
  2837. href: parsedHref,
  2838. as: parsedAs
  2839. } = this.formatUrls(this.props.href, this.props.as);
  2840. var resolvedHref = (0, _url.resolve)(pathname, parsedHref);
  2841. return [resolvedHref, parsedAs ? (0, _url.resolve)(pathname, parsedAs) : resolvedHref];
  2842. }
  2843. handleRef(ref) {
  2844. if (this.p && IntersectionObserver && ref && ref.tagName) {
  2845. this.cleanUpListeners();
  2846. var isPrefetched = prefetched[this.getPaths().join( // Join on an invalid URI character
  2847. '%')];
  2848. if (!isPrefetched) {
  2849. this.cleanUpListeners = listenToIntersections(ref, () => {
  2850. this.prefetch();
  2851. });
  2852. }
  2853. }
  2854. } // The function is memoized so that no extra lifecycles are needed
  2855. // as per https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
  2856. prefetch(options) {
  2857. if (!this.p || true) return; // Prefetch the JSON page if asked (only in the client)
  2858. var paths = this.getPaths(); // We need to handle a prefetch error here since we may be
  2859. // loading with priority which can reject but we don't
  2860. // want to force navigation since this is only a prefetch
  2861. _router.default.prefetch(paths[
  2862. /* href */
  2863. 0], paths[
  2864. /* asPath */
  2865. 1], options).catch(err => {
  2866. if (false) {}
  2867. });
  2868. prefetched[paths.join( // Join on an invalid URI character
  2869. '%')] = true;
  2870. }
  2871. render() {
  2872. var {
  2873. children
  2874. } = this.props;
  2875. var {
  2876. href,
  2877. as
  2878. } = 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
  2879. if (typeof children === 'string') {
  2880. children = _react.default.createElement("a", null, children);
  2881. } // This will return the first child, if multiple are provided it will throw an error
  2882. var child = _react.Children.only(children);
  2883. var props = {
  2884. ref: el => {
  2885. this.handleRef(el);
  2886. if (child && typeof child === 'object' && child.ref) {
  2887. if (typeof child.ref === 'function') child.ref(el);else if (typeof child.ref === 'object') {
  2888. child.ref.current = el;
  2889. }
  2890. }
  2891. },
  2892. onMouseEnter: e => {
  2893. if (child.props && typeof child.props.onMouseEnter === 'function') {
  2894. child.props.onMouseEnter(e);
  2895. }
  2896. this.prefetch({
  2897. priority: true
  2898. });
  2899. },
  2900. onClick: e => {
  2901. if (child.props && typeof child.props.onClick === 'function') {
  2902. child.props.onClick(e);
  2903. }
  2904. if (!e.defaultPrevented) {
  2905. this.linkClicked(e);
  2906. }
  2907. }
  2908. }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
  2909. // defined, we specify the current 'href', so that repetition is not needed by the user
  2910. if (this.props.passHref || child.type === 'a' && !('href' in child.props)) {
  2911. props.href = as || href;
  2912. } // Add the ending slash to the paths. So, we can serve the
  2913. // "<page>/index.html" directly.
  2914. if (false) { var rewriteUrlForNextExport; }
  2915. return _react.default.cloneElement(child, props);
  2916. }
  2917. }
  2918. if (false) { var exact, PropTypes, warn; }
  2919. var _default = Link;
  2920. exports.default = _default;
  2921. /***/ }),
  2922. /***/ "dZ6Y":
  2923. /***/ (function(module, exports, __webpack_require__) {
  2924. "use strict";
  2925. /*
  2926. MIT License
  2927. Copyright (c) Jason Miller (https://jasonformat.com/)
  2928. 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:
  2929. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  2930. 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.
  2931. */
  2932. Object.defineProperty(exports, "__esModule", {
  2933. value: true
  2934. });
  2935. function mitt() {
  2936. const all = Object.create(null);
  2937. return {
  2938. on(type, handler) {
  2939. ;
  2940. (all[type] || (all[type] = [])).push(handler);
  2941. },
  2942. off(type, handler) {
  2943. if (all[type]) {
  2944. // tslint:disable-next-line:no-bitwise
  2945. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  2946. }
  2947. },
  2948. emit(type, ...evts) {
  2949. // eslint-disable-next-line array-callback-return
  2950. ;
  2951. (all[type] || []).slice().map(handler => {
  2952. handler(...evts);
  2953. });
  2954. }
  2955. };
  2956. }
  2957. exports.default = mitt;
  2958. /***/ }),
  2959. /***/ "eDSW":
  2960. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2961. "use strict";
  2962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hexToRGBAlpha; });
  2963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return drawerWidth; });
  2964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return transition; });
  2965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return container; });
  2966. /* unused harmony export conatinerFluid */
  2967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return boxShadow; });
  2968. /* unused harmony export card */
  2969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return defaultFont; });
  2970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return primaryColor; });
  2971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return warningColor; });
  2972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return dangerColor; });
  2973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return successColor; });
  2974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return infoColor; });
  2975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return roseColor; });
  2976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return grayColor; });
  2977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return primaryBoxShadow; });
  2978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return infoBoxShadow; });
  2979. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return successBoxShadow; });
  2980. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return warningBoxShadow; });
  2981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dangerBoxShadow; });
  2982. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return roseBoxShadow; });
  2983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return warningCardHeader; });
  2984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return successCardHeader; });
  2985. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dangerCardHeader; });
  2986. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return infoCardHeader; });
  2987. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return primaryCardHeader; });
  2988. /* unused harmony export roseCardHeader */
  2989. /* unused harmony export cardActions */
  2990. /* unused harmony export cardHeader */
  2991. /* unused harmony export defaultBoxShadow */
  2992. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return title; });
  2993. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cardTitle; });
  2994. /* unused harmony export cardLink */
  2995. /* unused harmony export cardSubtitle */
  2996. 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; }
  2997. 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; }
  2998. 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; }
  2999. const hexColorToRGB = function (hexColor) {
  3000. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  3001. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  3002. return r + r + g + g + b + b;
  3003. });
  3004. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  3005. return hex_array ? {
  3006. r: parseInt(hex_array[1], 16),
  3007. // 0-255
  3008. g: parseInt(hex_array[2], 16),
  3009. // 0-255
  3010. b: parseInt(hex_array[3], 16) // 0-255
  3011. } : null;
  3012. };
  3013. const hexToRGBAlpha = function (hexColor, alpha) {
  3014. let rgb = hexColorToRGB(hexColor);
  3015. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  3016. };
  3017. const drawerWidth = 260;
  3018. const transition = {
  3019. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  3020. };
  3021. const conatinerFluid = {
  3022. paddingRight: "15px",
  3023. paddingLeft: "15px",
  3024. marginRight: "auto",
  3025. marginLeft: "auto",
  3026. width: "100%"
  3027. };
  3028. const container = _objectSpread({}, conatinerFluid, {
  3029. "@media (min-width: 576px)": {
  3030. maxWidth: "540px"
  3031. },
  3032. "@media (min-width: 768px)": {
  3033. maxWidth: "720px"
  3034. },
  3035. "@media (min-width: 992px)": {
  3036. maxWidth: "960px"
  3037. },
  3038. "@media (min-width: 1200px)": {
  3039. maxWidth: "1140px"
  3040. }
  3041. });
  3042. const boxShadow = {
  3043. 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)"
  3044. };
  3045. const card = {
  3046. display: "inline-block",
  3047. position: "relative",
  3048. width: "100%",
  3049. margin: "25px 0",
  3050. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  3051. borderRadius: "3px",
  3052. color: "rgba(0, 0, 0, 0.87)",
  3053. background: "#fff"
  3054. };
  3055. const defaultFont = {
  3056. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  3057. fontWeight: "300",
  3058. lineHeight: "1.5em"
  3059. };
  3060. const primaryColor = "#212121";
  3061. const warningColor = "#ff9800";
  3062. const dangerColor = "#f44336";
  3063. const successColor = "#4caf50";
  3064. const infoColor = "#212121";
  3065. const roseColor = "#e91e63";
  3066. const grayColor = "#ffffff";
  3067. const primaryBoxShadow = {
  3068. 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)}`
  3069. };
  3070. const infoBoxShadow = {
  3071. 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)}`
  3072. };
  3073. const successBoxShadow = {
  3074. 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)}`
  3075. };
  3076. const warningBoxShadow = {
  3077. 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)}`
  3078. };
  3079. const dangerBoxShadow = {
  3080. 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)}`
  3081. };
  3082. const roseBoxShadow = {
  3083. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  3084. };
  3085. const warningCardHeader = _objectSpread({
  3086. color: "#fff",
  3087. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  3088. }, warningBoxShadow);
  3089. const successCardHeader = _objectSpread({
  3090. color: "#fff",
  3091. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  3092. }, successBoxShadow);
  3093. const dangerCardHeader = _objectSpread({
  3094. color: "#fff",
  3095. background: "linear-gradient(60deg, #ef5350, #e53935)"
  3096. }, dangerBoxShadow);
  3097. const infoCardHeader = _objectSpread({
  3098. color: "#fff",
  3099. background: "#212121"
  3100. }, infoBoxShadow);
  3101. const primaryCardHeader = _objectSpread({
  3102. color: "#fff",
  3103. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  3104. }, primaryBoxShadow);
  3105. const roseCardHeader = _objectSpread({
  3106. color: "#fff",
  3107. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  3108. }, roseBoxShadow);
  3109. const cardActions = _objectSpread({
  3110. margin: "0 20px 10px",
  3111. paddingTop: "10px",
  3112. borderTop: "1px solid #eeeeee",
  3113. height: "auto"
  3114. }, defaultFont);
  3115. const cardHeader = {
  3116. margin: "-30px 15px 0",
  3117. borderRadius: "3px",
  3118. padding: "15px"
  3119. };
  3120. const defaultBoxShadow = {
  3121. border: "0",
  3122. borderRadius: "3px",
  3123. 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)",
  3124. padding: "10px 0",
  3125. transition: "all 150ms ease 0s"
  3126. };
  3127. const title = {
  3128. color: "#ffffff",
  3129. margin: "1.75rem 0 0.875rem",
  3130. textDecoration: "none",
  3131. fontWeight: "700",
  3132. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  3133. };
  3134. const cardTitle = _objectSpread({}, title, {
  3135. marginTop: ".625rem"
  3136. });
  3137. const cardLink = {
  3138. "& + $cardLink": {
  3139. marginLeft: "1.25rem"
  3140. }
  3141. };
  3142. const cardSubtitle = {
  3143. marginBottom: "0",
  3144. marginTop: "-.375rem"
  3145. };
  3146. /***/ }),
  3147. /***/ "elyg":
  3148. /***/ (function(module, exports, __webpack_require__) {
  3149. "use strict";
  3150. var __importDefault = this && this.__importDefault || function (mod) {
  3151. return mod && mod.__esModule ? mod : {
  3152. "default": mod
  3153. };
  3154. };
  3155. Object.defineProperty(exports, "__esModule", {
  3156. value: true
  3157. });
  3158. const url_1 = __webpack_require__("bzos");
  3159. const mitt_1 = __importDefault(__webpack_require__("dZ6Y"));
  3160. const utils_1 = __webpack_require__("g/15");
  3161. const is_dynamic_1 = __webpack_require__("/jkW");
  3162. const route_matcher_1 = __webpack_require__("gguc");
  3163. const route_regex_1 = __webpack_require__("YTqd");
  3164. const basePath = false || '';
  3165. function addBasePath(path) {
  3166. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  3167. }
  3168. exports.addBasePath = addBasePath;
  3169. function delBasePath(path) {
  3170. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  3171. }
  3172. exports.delBasePath = delBasePath;
  3173. function toRoute(path) {
  3174. return path.replace(/\/$/, '') || '/';
  3175. }
  3176. const prepareRoute = path => toRoute(!path || path === '/' ? '/index' : path);
  3177. function fetchNextData(pathname, query, isServerRender, cb) {
  3178. let attempts = isServerRender ? 3 : 1;
  3179. function getResponse() {
  3180. return fetch(utils_1.formatWithValidation({
  3181. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  3182. `/_next/data/${__NEXT_DATA__.buildId}${delBasePath(pathname)}.json`),
  3183. query
  3184. }), {
  3185. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  3186. // Cookies may also be required for `getServerSideProps`.
  3187. //
  3188. // > `fetch` won’t send cookies, unless you set the credentials init
  3189. // > option.
  3190. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  3191. //
  3192. // > For maximum browser compatibility when it comes to sending &
  3193. // > receiving cookies, always supply the `credentials: 'same-origin'`
  3194. // > option instead of relying on the default.
  3195. // https://github.com/github/fetch#caveats
  3196. credentials: 'same-origin'
  3197. }).then(res => {
  3198. if (!res.ok) {
  3199. if (--attempts > 0 && res.status >= 500) {
  3200. return getResponse();
  3201. }
  3202. throw new Error(`Failed to load static props`);
  3203. }
  3204. return res.json();
  3205. });
  3206. }
  3207. return getResponse().then(data => {
  3208. return cb ? cb(data) : data;
  3209. }).catch(err => {
  3210. // We should only trigger a server-side transition if this was caused
  3211. // on a client-side transition. Otherwise, we'd get into an infinite
  3212. // loop.
  3213. if (!isServerRender) {
  3214. ;
  3215. err.code = 'PAGE_LOAD_ERROR';
  3216. }
  3217. throw err;
  3218. });
  3219. }
  3220. class Router {
  3221. constructor(pathname, query, as, {
  3222. initialProps,
  3223. pageLoader,
  3224. App,
  3225. wrapApp,
  3226. Component,
  3227. err,
  3228. subscription,
  3229. isFallback
  3230. }) {
  3231. // Static Data Cache
  3232. this.sdc = {};
  3233. this.onPopState = e => {
  3234. if (!e.state) {
  3235. // We get state as undefined for two reasons.
  3236. // 1. With older safari (< 8) and older chrome (< 34)
  3237. // 2. When the URL changed with #
  3238. //
  3239. // In the both cases, we don't need to proceed and change the route.
  3240. // (as it's already changed)
  3241. // But we can simply replace the state with the new changes.
  3242. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  3243. // So, doing the following for (1) does no harm.
  3244. const {
  3245. pathname,
  3246. query
  3247. } = this;
  3248. this.changeState('replaceState', utils_1.formatWithValidation({
  3249. pathname,
  3250. query
  3251. }), utils_1.getURL());
  3252. return;
  3253. } // Make sure we don't re-render on initial load,
  3254. // can be caused by navigating back from an external site
  3255. if (e.state && this.isSsr && e.state.as === this.asPath && url_1.parse(e.state.url).pathname === this.pathname) {
  3256. return;
  3257. } // If the downstream application returns falsy, return.
  3258. // They will then be responsible for handling the event.
  3259. if (this._bps && !this._bps(e.state)) {
  3260. return;
  3261. }
  3262. const {
  3263. url,
  3264. as,
  3265. options
  3266. } = e.state;
  3267. if (false) {}
  3268. this.replace(url, as, options);
  3269. };
  3270. this._getStaticData = asPath => {
  3271. const pathname = prepareRoute(url_1.parse(asPath).pathname);
  3272. return true && this.sdc[pathname] ? Promise.resolve(this.sdc[pathname]) : fetchNextData(pathname, null, this.isSsr, data => this.sdc[pathname] = data);
  3273. };
  3274. this._getServerData = asPath => {
  3275. let {
  3276. pathname,
  3277. query
  3278. } = url_1.parse(asPath, true);
  3279. pathname = prepareRoute(pathname);
  3280. return fetchNextData(pathname, query, this.isSsr);
  3281. }; // represents the current component key
  3282. this.route = toRoute(pathname); // set up the component cache (by route keys)
  3283. this.components = {}; // We should not keep the cache, if there's an error
  3284. // Otherwise, this cause issues when when going back and
  3285. // come again to the errored page.
  3286. if (pathname !== '/_error') {
  3287. this.components[this.route] = {
  3288. Component,
  3289. props: initialProps,
  3290. err,
  3291. __N_SSG: initialProps && initialProps.__N_SSG,
  3292. __N_SSP: initialProps && initialProps.__N_SSP
  3293. };
  3294. }
  3295. this.components['/_app'] = {
  3296. Component: App
  3297. }; // Backwards compat for Router.router.events
  3298. // TODO: Should be remove the following major version as it was never documented
  3299. this.events = Router.events;
  3300. this.pageLoader = pageLoader;
  3301. this.pathname = pathname;
  3302. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  3303. // until after mount to prevent hydration mismatch
  3304. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  3305. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  3306. this.basePath = basePath;
  3307. this.sub = subscription;
  3308. this.clc = null;
  3309. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  3310. // back from external site
  3311. this.isSsr = true;
  3312. this.isFallback = isFallback;
  3313. if (false) {}
  3314. } // @deprecated backwards compatibility even though it's a private method.
  3315. static _rewriteUrlForNextExport(url) {
  3316. if (false) {} else {
  3317. return url;
  3318. }
  3319. }
  3320. update(route, mod) {
  3321. const Component = mod.default || mod;
  3322. const data = this.components[route];
  3323. if (!data) {
  3324. throw new Error(`Cannot update unavailable route: ${route}`);
  3325. }
  3326. const newData = Object.assign(Object.assign({}, data), {
  3327. Component,
  3328. __N_SSG: mod.__N_SSG,
  3329. __N_SSP: mod.__N_SSP
  3330. });
  3331. this.components[route] = newData; // pages/_app.js updated
  3332. if (route === '/_app') {
  3333. this.notify(this.components[this.route]);
  3334. return;
  3335. }
  3336. if (route === this.route) {
  3337. this.notify(newData);
  3338. }
  3339. }
  3340. reload() {
  3341. window.location.reload();
  3342. }
  3343. /**
  3344. * Go back in history
  3345. */
  3346. back() {
  3347. window.history.back();
  3348. }
  3349. /**
  3350. * Performs a `pushState` with arguments
  3351. * @param url of the route
  3352. * @param as masks `url` for the browser
  3353. * @param options object you can define `shallow` and other options
  3354. */
  3355. push(url, as = url, options = {}) {
  3356. return this.change('pushState', url, as, options);
  3357. }
  3358. /**
  3359. * Performs a `replaceState` with arguments
  3360. * @param url of the route
  3361. * @param as masks `url` for the browser
  3362. * @param options object you can define `shallow` and other options
  3363. */
  3364. replace(url, as = url, options = {}) {
  3365. return this.change('replaceState', url, as, options);
  3366. }
  3367. change(method, _url, _as, options) {
  3368. return new Promise((resolve, reject) => {
  3369. if (!options._h) {
  3370. this.isSsr = false;
  3371. } // marking route changes as a navigation start entry
  3372. if (utils_1.ST) {
  3373. performance.mark('routeChange');
  3374. } // If url and as provided as an object representation,
  3375. // we'll format them into the string version here.
  3376. let url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  3377. let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  3378. url = addBasePath(url);
  3379. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  3380. // "<page>/index.html" directly for the SSR page.
  3381. if (false) {}
  3382. this.abortComponentLoad(as); // If the url change is only related to a hash change
  3383. // We should not proceed. We should only change the state.
  3384. // WARNING: `_h` is an internal option for handing Next.js client-side
  3385. // hydration. Your app should _never_ use this property. It may change at
  3386. // any time without notice.
  3387. if (!options._h && this.onlyAHashChange(as)) {
  3388. this.asPath = as;
  3389. Router.events.emit('hashChangeStart', as);
  3390. this.changeState(method, url, as, options);
  3391. this.scrollToHash(as);
  3392. Router.events.emit('hashChangeComplete', as);
  3393. return resolve(true);
  3394. }
  3395. const {
  3396. pathname,
  3397. query,
  3398. protocol
  3399. } = url_1.parse(url, true);
  3400. if (!pathname || protocol) {
  3401. if (false) {}
  3402. return resolve(false);
  3403. } // If asked to change the current URL we should reload the current page
  3404. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  3405. // We also need to set the method = replaceState always
  3406. // as this should not go into the history (That's how browsers work)
  3407. // We should compare the new asPath to the current asPath, not the url
  3408. if (!this.urlIsNew(as)) {
  3409. method = 'replaceState';
  3410. }
  3411. const route = toRoute(pathname);
  3412. const {
  3413. shallow = false
  3414. } = options;
  3415. if (is_dynamic_1.isDynamicRoute(route)) {
  3416. const {
  3417. pathname: asPathname
  3418. } = url_1.parse(as);
  3419. const routeRegex = route_regex_1.getRouteRegex(route);
  3420. const routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  3421. if (!routeMatch) {
  3422. const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
  3423. if (missingParams.length > 0) {
  3424. if (false) {}
  3425. 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`));
  3426. }
  3427. } else {
  3428. // Merge params into `query`, overwriting any specified in search
  3429. Object.assign(query, routeMatch);
  3430. }
  3431. }
  3432. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  3433. this.getRouteInfo(route, pathname, query, as, shallow).then(routeInfo => {
  3434. const {
  3435. error
  3436. } = routeInfo;
  3437. if (error && error.cancelled) {
  3438. return resolve(false);
  3439. }
  3440. Router.events.emit('beforeHistoryChange', as);
  3441. this.changeState(method, url, as, options);
  3442. if (false) {}
  3443. this.set(route, pathname, query, as, routeInfo);
  3444. if (error) {
  3445. Router.events.emit('routeChangeError', error, as);
  3446. throw error;
  3447. }
  3448. Router.events.emit('routeChangeComplete', as);
  3449. return resolve(true);
  3450. }, reject);
  3451. });
  3452. }
  3453. changeState(method, url, as, options = {}) {
  3454. if (false) {}
  3455. if (method !== 'pushState' || utils_1.getURL() !== as) {
  3456. window.history[method]({
  3457. url,
  3458. as,
  3459. options
  3460. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  3461. // Passing the empty string here should be safe against future changes to the method.
  3462. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  3463. '', as);
  3464. }
  3465. }
  3466. getRouteInfo(route, pathname, query, as, shallow = false) {
  3467. const cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  3468. // If the route is already rendered on the screen.
  3469. if (shallow && cachedRouteInfo && this.route === route) {
  3470. return Promise.resolve(cachedRouteInfo);
  3471. }
  3472. const handleError = (err, loadErrorFail) => {
  3473. return new Promise(resolve => {
  3474. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  3475. // If we can't load the page it could be one of following reasons
  3476. // 1. Page doesn't exists
  3477. // 2. Page does exist in a different zone
  3478. // 3. Internal error while loading the page
  3479. // So, doing a hard reload is the proper way to deal with this.
  3480. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  3481. // So, we need to mark it as a cancelled error and stop the routing logic.
  3482. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  3483. return resolve({
  3484. error: err
  3485. });
  3486. }
  3487. if (err.cancelled) {
  3488. // @ts-ignore TODO: fix the control flow here
  3489. return resolve({
  3490. error: err
  3491. });
  3492. }
  3493. resolve(this.fetchComponent('/_error').then(res => {
  3494. const {
  3495. page: Component
  3496. } = res;
  3497. const routeInfo = {
  3498. Component,
  3499. err
  3500. };
  3501. return new Promise(resolve => {
  3502. this.getInitialProps(Component, {
  3503. err,
  3504. pathname,
  3505. query
  3506. }).then(props => {
  3507. routeInfo.props = props;
  3508. routeInfo.error = err;
  3509. resolve(routeInfo);
  3510. }, gipErr => {
  3511. console.error('Error in error page `getInitialProps`: ', gipErr);
  3512. routeInfo.error = err;
  3513. routeInfo.props = {};
  3514. resolve(routeInfo);
  3515. });
  3516. });
  3517. }).catch(err => handleError(err, true)));
  3518. });
  3519. };
  3520. return new Promise((resolve, reject) => {
  3521. if (cachedRouteInfo) {
  3522. return resolve(cachedRouteInfo);
  3523. }
  3524. this.fetchComponent(route).then(res => resolve({
  3525. Component: res.page,
  3526. __N_SSG: res.mod.__N_SSG,
  3527. __N_SSP: res.mod.__N_SSP
  3528. }), reject);
  3529. }).then(routeInfo => {
  3530. const {
  3531. Component,
  3532. __N_SSG,
  3533. __N_SSP
  3534. } = routeInfo;
  3535. if (false) {}
  3536. 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`
  3537. {
  3538. pathname,
  3539. query,
  3540. asPath: as
  3541. })).then(props => {
  3542. routeInfo.props = props;
  3543. this.components[route] = routeInfo;
  3544. return routeInfo;
  3545. });
  3546. }).catch(handleError);
  3547. }
  3548. set(route, pathname, query, as, data) {
  3549. this.isFallback = false;
  3550. this.route = route;
  3551. this.pathname = pathname;
  3552. this.query = query;
  3553. this.asPath = as;
  3554. this.notify(data);
  3555. }
  3556. /**
  3557. * Callback to execute before replacing router state
  3558. * @param cb callback to be executed
  3559. */
  3560. beforePopState(cb) {
  3561. this._bps = cb;
  3562. }
  3563. onlyAHashChange(as) {
  3564. if (!this.asPath) return false;
  3565. const [oldUrlNoHash, oldHash] = this.asPath.split('#');
  3566. const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
  3567. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  3568. return true;
  3569. } // If the urls are change, there's more than a hash change
  3570. if (oldUrlNoHash !== newUrlNoHash) {
  3571. return false;
  3572. } // If the hash has changed, then it's a hash only change.
  3573. // This check is necessary to handle both the enter and
  3574. // leave hash === '' cases. The identity case falls through
  3575. // and is treated as a next reload.
  3576. return oldHash !== newHash;
  3577. }
  3578. scrollToHash(as) {
  3579. const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value
  3580. if (hash === '') {
  3581. window.scrollTo(0, 0);
  3582. return;
  3583. } // First we check if the element by id is found
  3584. const idEl = document.getElementById(hash);
  3585. if (idEl) {
  3586. idEl.scrollIntoView();
  3587. return;
  3588. } // If there's no element with the id, we check the `name` property
  3589. // To mirror browsers
  3590. const nameEl = document.getElementsByName(hash)[0];
  3591. if (nameEl) {
  3592. nameEl.scrollIntoView();
  3593. }
  3594. }
  3595. urlIsNew(asPath) {
  3596. return this.asPath !== asPath;
  3597. }
  3598. /**
  3599. * Prefetch page code, you may wait for the data during page rendering.
  3600. * This feature only works in production!
  3601. * @param url the href of prefetched page
  3602. * @param asPath the as path of the prefetched page
  3603. */
  3604. prefetch(url, asPath = url, options = {}) {
  3605. return new Promise((resolve, reject) => {
  3606. const {
  3607. pathname,
  3608. protocol
  3609. } = url_1.parse(url);
  3610. if (!pathname || protocol) {
  3611. if (false) {}
  3612. return;
  3613. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  3614. if (false) {}
  3615. const route = delBasePath(toRoute(pathname));
  3616. Promise.all([this.pageLoader.prefetchData(url, delBasePath(asPath)), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(() => resolve(), reject);
  3617. });
  3618. }
  3619. async fetchComponent(route) {
  3620. let cancelled = false;
  3621. const cancel = this.clc = () => {
  3622. cancelled = true;
  3623. };
  3624. route = delBasePath(route);
  3625. const componentResult = await this.pageLoader.loadPage(route);
  3626. if (cancelled) {
  3627. const error = new Error(`Abort fetching component for route: "${route}"`);
  3628. error.cancelled = true;
  3629. throw error;
  3630. }
  3631. if (cancel === this.clc) {
  3632. this.clc = null;
  3633. }
  3634. return componentResult;
  3635. }
  3636. _getData(fn) {
  3637. let cancelled = false;
  3638. const cancel = () => {
  3639. cancelled = true;
  3640. };
  3641. this.clc = cancel;
  3642. return fn().then(data => {
  3643. if (cancel === this.clc) {
  3644. this.clc = null;
  3645. }
  3646. if (cancelled) {
  3647. const err = new Error('Loading initial props cancelled');
  3648. err.cancelled = true;
  3649. throw err;
  3650. }
  3651. return data;
  3652. });
  3653. }
  3654. getInitialProps(Component, ctx) {
  3655. const {
  3656. Component: App
  3657. } = this.components['/_app'];
  3658. const AppTree = this._wrapApp(App);
  3659. ctx.AppTree = AppTree;
  3660. return utils_1.loadGetInitialProps(App, {
  3661. AppTree,
  3662. Component,
  3663. router: this,
  3664. ctx
  3665. });
  3666. }
  3667. abortComponentLoad(as) {
  3668. if (this.clc) {
  3669. const e = new Error('Route Cancelled');
  3670. e.cancelled = true;
  3671. Router.events.emit('routeChangeError', e, as);
  3672. this.clc();
  3673. this.clc = null;
  3674. }
  3675. }
  3676. notify(data) {
  3677. this.sub(data, this.components['/_app'].Component);
  3678. }
  3679. }
  3680. exports.default = Router;
  3681. Router.events = mitt_1.default();
  3682. /***/ }),
  3683. /***/ "g/15":
  3684. /***/ (function(module, exports, __webpack_require__) {
  3685. "use strict";
  3686. Object.defineProperty(exports, "__esModule", {
  3687. value: true
  3688. });
  3689. const url_1 = __webpack_require__("bzos");
  3690. /**
  3691. * Utils
  3692. */
  3693. function execOnce(fn) {
  3694. let used = false;
  3695. let result;
  3696. return (...args) => {
  3697. if (!used) {
  3698. used = true;
  3699. result = fn(...args);
  3700. }
  3701. return result;
  3702. };
  3703. }
  3704. exports.execOnce = execOnce;
  3705. function getLocationOrigin() {
  3706. const {
  3707. protocol,
  3708. hostname,
  3709. port
  3710. } = window.location;
  3711. return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  3712. }
  3713. exports.getLocationOrigin = getLocationOrigin;
  3714. function getURL() {
  3715. const {
  3716. href
  3717. } = window.location;
  3718. const origin = getLocationOrigin();
  3719. return href.substring(origin.length);
  3720. }
  3721. exports.getURL = getURL;
  3722. function getDisplayName(Component) {
  3723. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  3724. }
  3725. exports.getDisplayName = getDisplayName;
  3726. function isResSent(res) {
  3727. return res.finished || res.headersSent;
  3728. }
  3729. exports.isResSent = isResSent;
  3730. async function loadGetInitialProps(App, ctx) {
  3731. var _a;
  3732. if (false) {} // when called from _app `ctx` is nested in `ctx`
  3733. const res = ctx.res || ctx.ctx && ctx.ctx.res;
  3734. if (!App.getInitialProps) {
  3735. if (ctx.ctx && ctx.Component) {
  3736. // @ts-ignore pageProps default
  3737. return {
  3738. pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
  3739. };
  3740. }
  3741. return {};
  3742. }
  3743. const props = await App.getInitialProps(ctx);
  3744. if (res && isResSent(res)) {
  3745. return props;
  3746. }
  3747. if (!props) {
  3748. const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
  3749. throw new Error(message);
  3750. }
  3751. if (false) {}
  3752. return props;
  3753. }
  3754. exports.loadGetInitialProps = loadGetInitialProps;
  3755. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  3756. function formatWithValidation(url, options) {
  3757. if (false) {}
  3758. return url_1.format(url, options);
  3759. }
  3760. exports.formatWithValidation = formatWithValidation;
  3761. exports.SP = typeof performance !== 'undefined';
  3762. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  3763. /***/ }),
  3764. /***/ "gguc":
  3765. /***/ (function(module, exports, __webpack_require__) {
  3766. "use strict";
  3767. Object.defineProperty(exports, "__esModule", {
  3768. value: true
  3769. });
  3770. function getRouteMatcher(routeRegex) {
  3771. const {
  3772. re,
  3773. groups
  3774. } = routeRegex;
  3775. return pathname => {
  3776. const routeMatch = re.exec(pathname);
  3777. if (!routeMatch) {
  3778. return false;
  3779. }
  3780. const decode = param => {
  3781. try {
  3782. return decodeURIComponent(param);
  3783. } catch (_) {
  3784. const err = new Error('failed to decode param');
  3785. err.code = 'DECODE_FAILED';
  3786. throw err;
  3787. }
  3788. };
  3789. const params = {};
  3790. Object.keys(groups).forEach(slugName => {
  3791. const g = groups[slugName];
  3792. const m = routeMatch[g.pos];
  3793. if (m !== undefined) {
  3794. params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
  3795. }
  3796. });
  3797. return params;
  3798. };
  3799. }
  3800. exports.getRouteMatcher = getRouteMatcher;
  3801. /***/ }),
  3802. /***/ "i4t8":
  3803. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3804. "use strict";
  3805. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridItem; });
  3806. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3807. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3808. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3809. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3810. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3811. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3812. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3813. 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); }
  3814. 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; }
  3815. 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; }
  3816. // nodejs library to set properties for components
  3817. // @material-ui/core components
  3818. const styles = {
  3819. grid: {
  3820. position: "relative",
  3821. width: "100%",
  3822. minHeight: "1px",
  3823. paddingRight: "15px",
  3824. paddingLeft: "15px",
  3825. flexBasis: "auto"
  3826. }
  3827. };
  3828. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3829. function GridItem(props) {
  3830. const classes = useStyles();
  3831. const {
  3832. children,
  3833. className
  3834. } = props,
  3835. rest = _objectWithoutProperties(props, ["children", "className"]);
  3836. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3837. item: true
  3838. }, rest, {
  3839. className: classes.grid + " " + className
  3840. }), children);
  3841. }
  3842. GridItem.defaultProps = {
  3843. className: ""
  3844. };
  3845. /***/ }),
  3846. /***/ "j08L":
  3847. /***/ (function(module, exports) {
  3848. module.exports = require("@material-ui/icons/Close");
  3849. /***/ }),
  3850. /***/ "jD8W":
  3851. /***/ (function(module, exports) {
  3852. module.exports = require("@material-ui/core/Popper");
  3853. /***/ }),
  3854. /***/ "kYf9":
  3855. /***/ (function(module, exports) {
  3856. module.exports = require("next/dist/next-server/lib/utils.js");
  3857. /***/ }),
  3858. /***/ "mf1M":
  3859. /***/ (function(module, exports) {
  3860. module.exports = require("@material-ui/core/Grow");
  3861. /***/ }),
  3862. /***/ "mtPR":
  3863. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3864. "use strict";
  3865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridContainer; });
  3866. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3867. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3868. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3869. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3870. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3871. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3872. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3873. 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); }
  3874. 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; }
  3875. 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; }
  3876. // nodejs library to set properties for components
  3877. // @material-ui/core components
  3878. const styles = {
  3879. grid: {
  3880. marginRight: "-15px",
  3881. marginLeft: "-15px",
  3882. width: "auto"
  3883. }
  3884. };
  3885. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3886. function GridContainer(props) {
  3887. const classes = useStyles();
  3888. const {
  3889. children,
  3890. className
  3891. } = props,
  3892. rest = _objectWithoutProperties(props, ["children", "className"]);
  3893. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3894. container: true
  3895. }, rest, {
  3896. className: classes.grid + " " + className
  3897. }), children);
  3898. }
  3899. GridContainer.defaultProps = {
  3900. className: ""
  3901. };
  3902. /***/ }),
  3903. /***/ "n1EF":
  3904. /***/ (function(module, exports) {
  3905. module.exports = require("@material-ui/core/SnackbarContent");
  3906. /***/ }),
  3907. /***/ "nOHt":
  3908. /***/ (function(module, exports, __webpack_require__) {
  3909. "use strict";
  3910. var _interopRequireWildcard = __webpack_require__("7KCV");
  3911. var _interopRequireDefault = __webpack_require__("AroE");
  3912. exports.__esModule = true;
  3913. exports.useRouter = useRouter;
  3914. exports.makePublicRouterInstance = makePublicRouterInstance;
  3915. exports.createRouter = exports.withRouter = exports.default = void 0;
  3916. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  3917. var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
  3918. exports.Router = _router2.default;
  3919. exports.NextRouter = _router2.NextRouter;
  3920. var _routerContext = __webpack_require__("Osoz");
  3921. var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
  3922. exports.withRouter = _withRouter.default;
  3923. /* global window */
  3924. var singletonRouter = {
  3925. router: null,
  3926. // holds the actual router instance
  3927. readyCallbacks: [],
  3928. ready(cb) {
  3929. if (this.router) return cb();
  3930. if (false) {}
  3931. }
  3932. }; // Create public properties and methods of the router in the singletonRouter
  3933. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  3934. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  3935. 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
  3936. Object.defineProperty(singletonRouter, 'events', {
  3937. get() {
  3938. return _router2.default.events;
  3939. }
  3940. });
  3941. urlPropertyFields.forEach(field => {
  3942. // Here we need to use Object.defineProperty because, we need to return
  3943. // the property assigned to the actual router
  3944. // The value might get changed as we change routes and this is the
  3945. // proper way to access it
  3946. Object.defineProperty(singletonRouter, field, {
  3947. get() {
  3948. var router = getRouter();
  3949. return router[field];
  3950. }
  3951. });
  3952. });
  3953. coreMethodFields.forEach(field => {
  3954. // We don't really know the types here, so we add them later instead
  3955. ;
  3956. singletonRouter[field] = function () {
  3957. var router = getRouter();
  3958. return router[field](...arguments);
  3959. };
  3960. });
  3961. routerEvents.forEach(event => {
  3962. singletonRouter.ready(() => {
  3963. _router2.default.events.on(event, function () {
  3964. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  3965. var _singletonRouter = singletonRouter;
  3966. if (_singletonRouter[eventField]) {
  3967. try {
  3968. _singletonRouter[eventField](...arguments);
  3969. } catch (err) {
  3970. // tslint:disable-next-line:no-console
  3971. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  3972. console.error(err.message + "\n" + err.stack);
  3973. }
  3974. }
  3975. });
  3976. });
  3977. });
  3978. function getRouter() {
  3979. if (!singletonRouter.router) {
  3980. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  3981. throw new Error(message);
  3982. }
  3983. return singletonRouter.router;
  3984. } // Export the singletonRouter and this is the public API.
  3985. var _default = singletonRouter; // Reexport the withRoute HOC
  3986. exports.default = _default;
  3987. function useRouter() {
  3988. return _react.default.useContext(_routerContext.RouterContext);
  3989. } // INTERNAL APIS
  3990. // -------------
  3991. // (do not use following exports inside the app)
  3992. // Create a router and assign it as the singleton instance.
  3993. // This is used in client side when we are initilizing the app.
  3994. // This should **not** use inside the server.
  3995. var createRouter = function createRouter() {
  3996. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  3997. args[_key] = arguments[_key];
  3998. }
  3999. singletonRouter.router = new _router2.default(...args);
  4000. singletonRouter.readyCallbacks.forEach(cb => cb());
  4001. singletonRouter.readyCallbacks = [];
  4002. return singletonRouter.router;
  4003. }; // This function is used to create the `withRouter` router instance
  4004. exports.createRouter = createRouter;
  4005. function makePublicRouterInstance(router) {
  4006. var _router = router;
  4007. var instance = {};
  4008. for (var property of urlPropertyFields) {
  4009. if (typeof _router[property] === 'object') {
  4010. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  4011. continue;
  4012. }
  4013. instance[property] = _router[property];
  4014. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  4015. instance.events = _router2.default.events;
  4016. coreMethodFields.forEach(field => {
  4017. instance[field] = function () {
  4018. return _router[field](...arguments);
  4019. };
  4020. });
  4021. return instance;
  4022. }
  4023. /***/ }),
  4024. /***/ "nybW":
  4025. /***/ (function(module, exports) {
  4026. module.exports = require("@material-ui/core/Divider");
  4027. /***/ }),
  4028. /***/ "oLCs":
  4029. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4030. "use strict";
  4031. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  4032. const footerStyle = {
  4033. block: {
  4034. color: "inherit",
  4035. padding: "0.9375rem",
  4036. fontWeight: "500",
  4037. fontSize: "12px",
  4038. textTransform: "uppercase",
  4039. borderRadius: "3px",
  4040. textDecoration: "none",
  4041. position: "relative",
  4042. display: "block"
  4043. },
  4044. left: {
  4045. float: "left!important",
  4046. display: "block"
  4047. },
  4048. right: {
  4049. padding: "15px 0",
  4050. margin: "0",
  4051. float: "right!important"
  4052. },
  4053. footer: {
  4054. padding: "0.9375rem 0",
  4055. textAlign: "center",
  4056. display: "flex",
  4057. zIndex: "2",
  4058. position: "relative"
  4059. },
  4060. a: {
  4061. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* primaryColor */ "p"],
  4062. textDecoration: "none",
  4063. backgroundColor: "transparent"
  4064. },
  4065. footerWhiteFont: {
  4066. "&,&:hover,&:focus": {
  4067. color: "#FFFFFF"
  4068. }
  4069. },
  4070. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  4071. list: {
  4072. marginBottom: "0",
  4073. padding: "0",
  4074. marginTop: "0"
  4075. },
  4076. inlineBlock: {
  4077. display: "inline-block",
  4078. padding: "0px",
  4079. width: "auto"
  4080. },
  4081. icon: {
  4082. width: "18px",
  4083. height: "18px",
  4084. position: "relative",
  4085. top: "3px"
  4086. }
  4087. };
  4088. /* harmony default export */ __webpack_exports__["a"] = (footerStyle);
  4089. /***/ }),
  4090. /***/ "orDh":
  4091. /***/ (function(module, exports) {
  4092. module.exports = "/_next/static/images/dekstop_pandemi-d7beff3bb7a1936b9ec2e925a2fb4345.jpg";
  4093. /***/ }),
  4094. /***/ "qt1I":
  4095. /***/ (function(module, exports) {
  4096. module.exports = require("@material-ui/core/Paper");
  4097. /***/ }),
  4098. /***/ "rf6O":
  4099. /***/ (function(module, exports) {
  4100. module.exports = require("prop-types");
  4101. /***/ }),
  4102. /***/ "x54t":
  4103. /***/ (function(module, exports) {
  4104. module.exports = require("@material-ui/core/MenuItem");
  4105. /***/ }),
  4106. /***/ "xiBf":
  4107. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4108. "use strict";
  4109. // ESM COMPAT FLAG
  4110. __webpack_require__.r(__webpack_exports__);
  4111. // EXPORTS
  4112. __webpack_require__.d(__webpack_exports__, "getServerSideProps", function() { return /* binding */ getServerSideProps; });
  4113. // EXTERNAL MODULE: external "react"
  4114. var external_react_ = __webpack_require__("cDcd");
  4115. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  4116. // EXTERNAL MODULE: external "classnames"
  4117. var external_classnames_ = __webpack_require__("K2gz");
  4118. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  4119. // EXTERNAL MODULE: external "@material-ui/core/styles"
  4120. var styles_ = __webpack_require__("9Pu4");
  4121. // EXTERNAL MODULE: ./components/Header/Header.js + 1 modules
  4122. var Header = __webpack_require__("8x5e");
  4123. // EXTERNAL MODULE: ./components/Header/HeaderSuzuki.js
  4124. var HeaderSuzuki = __webpack_require__("3f76");
  4125. // EXTERNAL MODULE: ./components/Footer/FooterSuzuki.js
  4126. var FooterSuzuki = __webpack_require__("Jlmy");
  4127. // EXTERNAL MODULE: ./components/Parallax/Parallax.js + 1 modules
  4128. var Parallax = __webpack_require__("Z2Lm");
  4129. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/components.js
  4130. var components = __webpack_require__("bhG4");
  4131. // EXTERNAL MODULE: ./api/latest_news/news.js
  4132. var latest_news_news = __webpack_require__("Irx9");
  4133. var news_default = /*#__PURE__*/__webpack_require__.n(latest_news_news);
  4134. // EXTERNAL MODULE: ./pages-sections/suzuki/snackbar.js
  4135. var snackbar = __webpack_require__("SpHr");
  4136. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js
  4137. var notificationsStyles = __webpack_require__("7WNa");
  4138. // EXTERNAL MODULE: external "@material-ui/core/Grid"
  4139. var Grid_ = __webpack_require__("JQ2V");
  4140. var Grid_default = /*#__PURE__*/__webpack_require__.n(Grid_);
  4141. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  4142. var GridContainer = __webpack_require__("mtPR");
  4143. // EXTERNAL MODULE: ./components/Card/Card.js + 1 modules
  4144. var Card = __webpack_require__("A2So");
  4145. // EXTERNAL MODULE: ./components/Card/CardBody.js + 1 modules
  4146. var CardBody = __webpack_require__("UsYt");
  4147. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  4148. var Button = __webpack_require__("Kg+a");
  4149. // EXTERNAL MODULE: ./components/Pagination/Pagination.js + 1 modules
  4150. var Pagination = __webpack_require__("+DDI");
  4151. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  4152. var Icon_ = __webpack_require__("7vM9");
  4153. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  4154. // CONCATENATED MODULE: ./pages-sections/suzuki/latest_news/news.js
  4155. var __jsx = external_react_default.a.createElement;
  4156. 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; }
  4157. 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; }
  4158. const useStyles = Object(styles_["makeStyles"])(notificationsStyles["a" /* default */]);
  4159. const DataLatestNews = function (_ref) {
  4160. let {
  4161. backend,
  4162. news
  4163. } = _ref,
  4164. props = _objectWithoutProperties(_ref, ["backend", "news"]);
  4165. const classes = useStyles();
  4166. const latnews = news.map(data => {
  4167. return __jsx(Grid_default.a, {
  4168. align: "center",
  4169. style: {
  4170. padding: "30px",
  4171. marginTop: "-50px"
  4172. }
  4173. }, __jsx(Card["a" /* default */], {
  4174. style: {
  4175. width: "20rem"
  4176. }
  4177. }, __jsx("img", {
  4178. style: {
  4179. height: "180px",
  4180. width: "100%",
  4181. display: "block"
  4182. },
  4183. className: classes.imgCardTop,
  4184. src: `${backend}${data.img[0]["url"]}`
  4185. }), __jsx(CardBody["a" /* default */], null, __jsx("p", null, data.title), __jsx("p", null, data.published_at), __jsx(Button["a" /* default */], {
  4186. color: "info",
  4187. round: true,
  4188. href: "/suzuki/latest_news/latestnews_details?s=" + data.id
  4189. }, __jsx(Icon_default.a, {
  4190. className: classes.icons
  4191. }, "open_in_new"), "Read More"))));
  4192. });
  4193. return __jsx("div", {
  4194. className: classes.section,
  4195. id: "notifications"
  4196. }, __jsx("div", {
  4197. align: "center"
  4198. }, __jsx("h2", null, "Latest News")), __jsx("div", {
  4199. align: "center"
  4200. }, latnews), __jsx("div", {
  4201. align: "center"
  4202. }, __jsx(Pagination["a" /* default */], {
  4203. pages: [{
  4204. text: "PREV"
  4205. }, {
  4206. text: 1
  4207. }, {
  4208. text: 2
  4209. }, {
  4210. active: true,
  4211. text: 3
  4212. }, {
  4213. text: 4
  4214. }, {
  4215. text: 5
  4216. }, {
  4217. text: "NEXT"
  4218. }],
  4219. color: "info"
  4220. })));
  4221. };
  4222. /* harmony default export */ var suzuki_latest_news_news = (DataLatestNews);
  4223. // CONCATENATED MODULE: ./pages/suzuki/latest_news/latestnews.js
  4224. var latestnews_jsx = external_react_default.a.createElement;
  4225. 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); }
  4226. 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; }
  4227. 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; }
  4228. const latestnews_useStyles = Object(styles_["makeStyles"])(components["a" /* default */]);
  4229. const LatestNews = function (_ref) {
  4230. let {
  4231. backend,
  4232. news
  4233. } = _ref,
  4234. props = latestnews_objectWithoutProperties(_ref, ["backend", "news"]);
  4235. const classes = latestnews_useStyles();
  4236. const rest = Object.assign({}, props);
  4237. latestnews_jsx(suzuki_latest_news_news, {
  4238. news: props.news
  4239. });
  4240. return latestnews_jsx("div", null, latestnews_jsx(Header["a" /* default */], _extends({
  4241. leftLinks: latestnews_jsx(HeaderSuzuki["a" /* default */], null),
  4242. fixed: true,
  4243. color: "info",
  4244. changeColorOnScroll: {
  4245. height: 400,
  4246. color: "white"
  4247. }
  4248. }, rest)), latestnews_jsx(Parallax["a" /* default */], {
  4249. image: __webpack_require__("orDh"),
  4250. width: "200px"
  4251. }), latestnews_jsx("div", {
  4252. className: external_classnames_default()(classes.main, classes.mainRaised)
  4253. }, latestnews_jsx(snackbar["a" /* default */], null), latestnews_jsx(suzuki_latest_news_news, {
  4254. news: news,
  4255. backend: backend
  4256. })), latestnews_jsx(FooterSuzuki["a" /* default */], null));
  4257. };
  4258. /* harmony default export */ var latestnews = __webpack_exports__["default"] = (LatestNews);
  4259. async function getServerSideProps(context) {
  4260. var news = [];
  4261. const backend = process.env.BACKEND_SERVER_URI;
  4262. var res = await news_default.a.GetNewsSuzuki();
  4263. if (res["STATUS"] === 1) {
  4264. news = res["DATA"]["latestNews"];
  4265. }
  4266. return {
  4267. props: {
  4268. news,
  4269. backend
  4270. } // will be passed to the page component as props
  4271. };
  4272. }
  4273. /***/ }),
  4274. /***/ "xmQw":
  4275. /***/ (function(module, exports) {
  4276. module.exports = require("@material-ui/core/MenuList");
  4277. /***/ }),
  4278. /***/ "z+8S":
  4279. /***/ (function(module, exports) {
  4280. module.exports = require("@apollo/client");
  4281. /***/ })
  4282. /******/ });