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

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