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.
 
 

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