Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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