You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

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