Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

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