Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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