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.
 
 

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