You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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