Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

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