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

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