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.

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