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.
 
 

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