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

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