25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

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