No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

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