您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

5332 行
176 KiB

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