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.
 
 

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