25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

5599 lines
179 KiB

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