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

5725 lines
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 = 67);
  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. leftLinks: 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. /***/ 67:
  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: "#000",
  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.networkError.result);
  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("br", null), __jsx("br", null), __jsx("link", {
  1754. rel: "stylesheet",
  1755. href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
  1756. }), __jsx("div", {
  1757. align: "center"
  1758. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1759. className: classes.list
  1760. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1761. className: classes.inlineBlock
  1762. }, __jsx("a", {
  1763. href: "/suzuki/home",
  1764. className: classes.block
  1765. }, " Home ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1766. className: classes.inlineBlock
  1767. }, __jsx("a", {
  1768. href: "/suzuki/product/product",
  1769. className: classes.block
  1770. }, " Product ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1771. className: classes.inlineBlock
  1772. }, __jsx("a", {
  1773. href: "/suzuki/latestsnews",
  1774. className: classes.block
  1775. }, " Latest News ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1776. className: classes.inlineBlock
  1777. }, __jsx("a", {
  1778. href: "/suzuki/carrer",
  1779. className: classes.block
  1780. }, " Carrer ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1781. className: classes.inlineBlock
  1782. }, __jsx("a", {
  1783. href: "/suzuki/about_us/aboutus",
  1784. className: classes.block
  1785. }, " About Us ")))), __jsx("div", {
  1786. align: "center"
  1787. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1788. className: classes.list
  1789. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1790. className: classes.inlineBlock,
  1791. style: {
  1792. padding: "10px"
  1793. }
  1794. }, __jsx("a", {
  1795. href: "#",
  1796. class: "fa fa-facebook"
  1797. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1798. className: classes.inlineBlock,
  1799. style: {
  1800. padding: "10px"
  1801. }
  1802. }, __jsx("a", {
  1803. href: "#",
  1804. class: "fa fa-instagram"
  1805. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1806. className: classes.inlineBlock,
  1807. style: {
  1808. padding: "10px"
  1809. }
  1810. }, __jsx("a", {
  1811. href: "#",
  1812. class: "fa fa-twitter"
  1813. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1814. className: classes.inlineBlock,
  1815. style: {
  1816. padding: "10px"
  1817. }
  1818. }, __jsx("a", {
  1819. href: "#",
  1820. class: "fa fa-youtube"
  1821. })))), __jsx("br", null), __jsx("br", null), __jsx("div", {
  1822. align: "center"
  1823. }, "\xA9 ", 1900 + new Date().getYear(), " , All Right Reserved", " ", " by", " ", " @Thamrin Brothers"), __jsx("br", null), __jsx("br", null));
  1824. }
  1825. /***/ }),
  1826. /***/ "K2gz":
  1827. /***/ (function(module, exports) {
  1828. module.exports = require("classnames");
  1829. /***/ }),
  1830. /***/ "KKbo":
  1831. /***/ (function(module, exports) {
  1832. module.exports = require("@material-ui/core");
  1833. /***/ }),
  1834. /***/ "Kg+a":
  1835. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1836. "use strict";
  1837. // EXTERNAL MODULE: external "react"
  1838. var external_react_ = __webpack_require__("cDcd");
  1839. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1840. // EXTERNAL MODULE: external "classnames"
  1841. var external_classnames_ = __webpack_require__("K2gz");
  1842. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1843. // EXTERNAL MODULE: external "@material-ui/core/styles/makeStyles"
  1844. var makeStyles_ = __webpack_require__("8//M");
  1845. var makeStyles_default = /*#__PURE__*/__webpack_require__.n(makeStyles_);
  1846. // EXTERNAL MODULE: external "@material-ui/core/Button"
  1847. var Button_ = __webpack_require__("Wh1t");
  1848. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  1849. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1850. var nextjs_material_kit = __webpack_require__("eDSW");
  1851. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/buttonStyle.js
  1852. const buttonStyle = {
  1853. button: {
  1854. minHeight: "auto",
  1855. minWidth: "auto",
  1856. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1857. color: "#FFFFFF",
  1858. 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)",
  1859. border: "none",
  1860. borderRadius: "3px",
  1861. position: "relative",
  1862. padding: "12px 30px",
  1863. margin: ".3125rem 1px",
  1864. fontSize: "12px",
  1865. fontWeight: "400",
  1866. textTransform: "uppercase",
  1867. letterSpacing: "0",
  1868. willChange: "box-shadow, transform",
  1869. transition: "box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
  1870. lineHeight: "1.42857143",
  1871. textAlign: "center",
  1872. whiteSpace: "nowrap",
  1873. verticalAlign: "middle",
  1874. touchAction: "manipulation",
  1875. cursor: "pointer",
  1876. "&:hover,&:focus": {
  1877. color: "#FFFFFF",
  1878. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1879. 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)"
  1880. },
  1881. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1882. position: "relative",
  1883. display: "inline-block",
  1884. top: "0",
  1885. fontSize: "1.1rem",
  1886. marginRight: "4px",
  1887. verticalAlign: "middle"
  1888. },
  1889. "& svg": {
  1890. position: "relative",
  1891. display: "inline-block",
  1892. top: "0",
  1893. width: "18px",
  1894. height: "18px",
  1895. marginRight: "4px",
  1896. verticalAlign: "middle"
  1897. },
  1898. "&$justIcon": {
  1899. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1900. marginRight: "0px",
  1901. position: "absolute",
  1902. width: "100%",
  1903. transform: "none",
  1904. left: "0px",
  1905. top: "0px",
  1906. height: "100%",
  1907. lineHeight: "41px",
  1908. fontSize: "20px"
  1909. }
  1910. }
  1911. },
  1912. fullWidth: {
  1913. width: "100%"
  1914. },
  1915. primary: {
  1916. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1917. 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)}`,
  1918. "&:hover,&:focus": {
  1919. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1920. 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)}`
  1921. }
  1922. },
  1923. info: {
  1924. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1925. 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)}`,
  1926. "&:hover,&:focus": {
  1927. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1928. 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)}`
  1929. }
  1930. },
  1931. success: {
  1932. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1933. 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)}`,
  1934. "&:hover,&:focus": {
  1935. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1936. 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)}`
  1937. }
  1938. },
  1939. warning: {
  1940. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1941. 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)}`,
  1942. "&:hover,&:focus": {
  1943. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1944. 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)}`
  1945. }
  1946. },
  1947. danger: {
  1948. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1949. 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)}`,
  1950. "&:hover,&:focus": {
  1951. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1952. 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)}`
  1953. }
  1954. },
  1955. rose: {
  1956. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1957. 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)}`,
  1958. "&:hover,&:focus": {
  1959. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1960. 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)}`
  1961. }
  1962. },
  1963. white: {
  1964. "&,&:focus,&:hover,&:visited": {
  1965. backgroundColor: "#FFFFFF",
  1966. color: nextjs_material_kit["i" /* grayColor */]
  1967. }
  1968. },
  1969. twitter: {
  1970. backgroundColor: "#55acee",
  1971. color: "#fff",
  1972. 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)",
  1973. "&:hover,&:focus,&:visited": {
  1974. backgroundColor: "#55acee",
  1975. color: "#fff",
  1976. 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)"
  1977. }
  1978. },
  1979. facebook: {
  1980. backgroundColor: "#3b5998",
  1981. color: "#fff",
  1982. 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)",
  1983. "&:hover,&:focus": {
  1984. backgroundColor: "#3b5998",
  1985. color: "#fff",
  1986. 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)"
  1987. }
  1988. },
  1989. google: {
  1990. backgroundColor: "#dd4b39",
  1991. color: "#fff",
  1992. 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)",
  1993. "&:hover,&:focus": {
  1994. backgroundColor: "#dd4b39",
  1995. color: "#fff",
  1996. 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)"
  1997. }
  1998. },
  1999. github: {
  2000. backgroundColor: "#333333",
  2001. color: "#fff",
  2002. 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)",
  2003. "&:hover,&:focus": {
  2004. backgroundColor: "#333333",
  2005. color: "#fff",
  2006. 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)"
  2007. }
  2008. },
  2009. simple: {
  2010. "&,&:focus,&:hover,&:visited": {
  2011. color: "#FFFFFF",
  2012. background: "transparent",
  2013. boxShadow: "none"
  2014. },
  2015. "&$primary": {
  2016. "&,&:focus,&:hover,&:visited": {
  2017. color: nextjs_material_kit["p" /* primaryColor */]
  2018. }
  2019. },
  2020. "&$info": {
  2021. "&,&:focus,&:hover,&:visited": {
  2022. color: nextjs_material_kit["m" /* infoColor */]
  2023. }
  2024. },
  2025. "&$success": {
  2026. "&,&:focus,&:hover,&:visited": {
  2027. color: nextjs_material_kit["u" /* successColor */]
  2028. }
  2029. },
  2030. "&$warning": {
  2031. "&,&:focus,&:hover,&:visited": {
  2032. color: nextjs_material_kit["z" /* warningColor */]
  2033. }
  2034. },
  2035. "&$rose": {
  2036. "&,&:focus,&:hover,&:visited": {
  2037. color: nextjs_material_kit["r" /* roseColor */]
  2038. }
  2039. },
  2040. "&$danger": {
  2041. "&,&:focus,&:hover,&:visited": {
  2042. color: nextjs_material_kit["f" /* dangerColor */]
  2043. }
  2044. },
  2045. "&$twitter": {
  2046. "&,&:focus,&:hover,&:visited": {
  2047. color: "#55acee"
  2048. }
  2049. },
  2050. "&$facebook": {
  2051. "&,&:focus,&:hover,&:visited": {
  2052. color: "#3b5998"
  2053. }
  2054. },
  2055. "&$google": {
  2056. "&,&:focus,&:hover,&:visited": {
  2057. color: "#dd4b39"
  2058. }
  2059. },
  2060. "&$github": {
  2061. "&,&:focus,&:hover,&:visited": {
  2062. color: "#333333"
  2063. }
  2064. }
  2065. },
  2066. transparent: {
  2067. "&,&:focus,&:hover,&:visited": {
  2068. color: "inherit",
  2069. background: "transparent",
  2070. boxShadow: "none"
  2071. }
  2072. },
  2073. disabled: {
  2074. opacity: "0.65",
  2075. pointerEvents: "none"
  2076. },
  2077. lg: {
  2078. padding: "1.125rem 2.25rem",
  2079. fontSize: "0.875rem",
  2080. lineHeight: "1.333333",
  2081. borderRadius: "0.2rem"
  2082. },
  2083. sm: {
  2084. padding: "0.40625rem 1.25rem",
  2085. fontSize: "0.6875rem",
  2086. lineHeight: "1.5",
  2087. borderRadius: "0.2rem"
  2088. },
  2089. round: {
  2090. borderRadius: "30px"
  2091. },
  2092. block: {
  2093. width: "100% !important"
  2094. },
  2095. link: {
  2096. "&,&:hover,&:focus": {
  2097. backgroundColor: "transparent",
  2098. color: "#999999",
  2099. boxShadow: "none"
  2100. }
  2101. },
  2102. justIcon: {
  2103. paddingLeft: "12px",
  2104. paddingRight: "12px",
  2105. fontSize: "20px",
  2106. height: "41px",
  2107. minWidth: "41px",
  2108. width: "41px",
  2109. "& .fab,& .fas,& .far,& .fal,& svg,& .material-icons": {
  2110. marginRight: "0px"
  2111. },
  2112. "&$lg": {
  2113. height: "57px",
  2114. minWidth: "57px",
  2115. width: "57px",
  2116. lineHeight: "56px",
  2117. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  2118. fontSize: "32px",
  2119. lineHeight: "56px"
  2120. },
  2121. "& svg": {
  2122. width: "32px",
  2123. height: "32px"
  2124. }
  2125. },
  2126. "&$sm": {
  2127. height: "30px",
  2128. minWidth: "30px",
  2129. width: "30px",
  2130. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  2131. fontSize: "17px",
  2132. lineHeight: "29px"
  2133. },
  2134. "& svg": {
  2135. width: "17px",
  2136. height: "17px"
  2137. }
  2138. }
  2139. }
  2140. };
  2141. /* harmony default export */ var components_buttonStyle = (buttonStyle);
  2142. // CONCATENATED MODULE: ./components/CustomButtons/Button.js
  2143. var __jsx = external_react_default.a.createElement;
  2144. 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); }
  2145. 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; }
  2146. 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; }
  2147. 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; }
  2148. 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; }
  2149. 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; }
  2150. // nodejs library to set properties for components
  2151. // nodejs library that concatenates classes
  2152. // @material-ui/core components
  2153. // core components
  2154. const makeComponentStyles = makeStyles_default()(() => _objectSpread({}, components_buttonStyle));
  2155. const RegularButton = external_react_default.a.forwardRef((props, ref) => {
  2156. const {
  2157. color,
  2158. round,
  2159. children,
  2160. fullWidth,
  2161. disabled,
  2162. simple,
  2163. size,
  2164. block,
  2165. link,
  2166. justIcon,
  2167. className
  2168. } = props,
  2169. rest = _objectWithoutProperties(props, ["color", "round", "children", "fullWidth", "disabled", "simple", "size", "block", "link", "justIcon", "className"]);
  2170. const classes = makeComponentStyles();
  2171. const btnClasses = external_classnames_default()({
  2172. [classes.button]: true,
  2173. [classes[size]]: size,
  2174. [classes[color]]: color,
  2175. [classes.round]: round,
  2176. [classes.fullWidth]: fullWidth,
  2177. [classes.disabled]: disabled,
  2178. [classes.simple]: simple,
  2179. [classes.block]: block,
  2180. [classes.link]: link,
  2181. [classes.justIcon]: justIcon,
  2182. [className]: className
  2183. });
  2184. return __jsx(Button_default.a, _extends({}, rest, {
  2185. ref: ref,
  2186. classes: {
  2187. root: btnClasses
  2188. }
  2189. }), children);
  2190. });
  2191. /* harmony default export */ var Button = __webpack_exports__["a"] = (RegularButton);
  2192. /***/ }),
  2193. /***/ "Ms0O":
  2194. /***/ (function(module, exports) {
  2195. module.exports = require("@material-ui/core/Toolbar");
  2196. /***/ }),
  2197. /***/ "Npyv":
  2198. /***/ (function(module, exports) {
  2199. module.exports = "/_next/static/images/Suzuki-46aee4e5f912860adf2da85d836532b5.png";
  2200. /***/ }),
  2201. /***/ "O/hg":
  2202. /***/ (function(module, exports) {
  2203. module.exports = require("react-slick");
  2204. /***/ }),
  2205. /***/ "Osoz":
  2206. /***/ (function(module, exports) {
  2207. module.exports = require("next/dist/next-server/lib/router-context.js");
  2208. /***/ }),
  2209. /***/ "Q01v":
  2210. /***/ (function(module, exports) {
  2211. module.exports = require("@material-ui/core/Drawer");
  2212. /***/ }),
  2213. /***/ "QOEo":
  2214. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2215. "use strict";
  2216. // EXPORTS
  2217. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomDropdown; });
  2218. // EXTERNAL MODULE: external "react"
  2219. var external_react_ = __webpack_require__("cDcd");
  2220. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2221. // EXTERNAL MODULE: external "classnames"
  2222. var external_classnames_ = __webpack_require__("K2gz");
  2223. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2224. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2225. var styles_ = __webpack_require__("9Pu4");
  2226. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  2227. var MenuItem_ = __webpack_require__("x54t");
  2228. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  2229. // EXTERNAL MODULE: external "@material-ui/core/MenuList"
  2230. var MenuList_ = __webpack_require__("xmQw");
  2231. var MenuList_default = /*#__PURE__*/__webpack_require__.n(MenuList_);
  2232. // EXTERNAL MODULE: external "@material-ui/core/ClickAwayListener"
  2233. var ClickAwayListener_ = __webpack_require__("31Yn");
  2234. var ClickAwayListener_default = /*#__PURE__*/__webpack_require__.n(ClickAwayListener_);
  2235. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  2236. var Paper_ = __webpack_require__("qt1I");
  2237. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  2238. // EXTERNAL MODULE: external "@material-ui/core/Grow"
  2239. var Grow_ = __webpack_require__("mf1M");
  2240. var Grow_default = /*#__PURE__*/__webpack_require__.n(Grow_);
  2241. // EXTERNAL MODULE: external "@material-ui/core/Divider"
  2242. var Divider_ = __webpack_require__("nybW");
  2243. var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
  2244. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  2245. var Icon_ = __webpack_require__("7vM9");
  2246. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  2247. // EXTERNAL MODULE: external "@material-ui/core/Popper"
  2248. var Popper_ = __webpack_require__("jD8W");
  2249. var Popper_default = /*#__PURE__*/__webpack_require__.n(Popper_);
  2250. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  2251. var Button = __webpack_require__("Kg+a");
  2252. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  2253. var nextjs_material_kit = __webpack_require__("eDSW");
  2254. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customDropdownStyle.js
  2255. 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; }
  2256. 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; }
  2257. 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; }
  2258. const customDropdownStyle = theme => ({
  2259. popperClose: {
  2260. pointerEvents: "none"
  2261. },
  2262. pooperNav: {
  2263. [theme.breakpoints.down("sm")]: {
  2264. position: "static !important",
  2265. left: "unset !important",
  2266. top: "unset !important",
  2267. transform: "none !important",
  2268. willChange: "none !important",
  2269. "& > div": {
  2270. boxShadow: "none !important",
  2271. marginLeft: "1.5rem",
  2272. marginRight: "1.5rem",
  2273. transition: "none !important",
  2274. marginTop: "0px !important",
  2275. marginBottom: "5px !important",
  2276. padding: "0px !important"
  2277. }
  2278. }
  2279. },
  2280. dropdown: {
  2281. borderRadius: "3px",
  2282. border: "0",
  2283. boxShadow: "0 2px 5px 0 rgba(0, 0, 0, 0.26)",
  2284. top: "100%",
  2285. zIndex: "1000",
  2286. minWidth: "160px",
  2287. padding: "5px 0",
  2288. margin: "2px 0 0",
  2289. fontSize: "14px",
  2290. textAlign: "left",
  2291. listStyle: "none",
  2292. backgroundColor: "#fff",
  2293. backgroundClip: "padding-box"
  2294. },
  2295. menuList: {
  2296. padding: "0"
  2297. },
  2298. popperResponsive: {
  2299. zIndex: "1200",
  2300. position: "absolute !important",
  2301. [theme.breakpoints.down("sm")]: {
  2302. zIndex: "1640",
  2303. position: "static !important",
  2304. float: "none",
  2305. width: "auto",
  2306. marginTop: "0",
  2307. backgroundColor: "transparent",
  2308. border: "0",
  2309. boxShadow: "none",
  2310. color: "black"
  2311. }
  2312. },
  2313. dropdownItem: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  2314. fontSize: "13px",
  2315. padding: "10px 20px",
  2316. margin: "0 5px",
  2317. borderRadius: "2px",
  2318. position: "relative",
  2319. transition: "all 150ms linear",
  2320. display: "block",
  2321. clear: "both",
  2322. fontWeight: "400",
  2323. height: "fit-content",
  2324. color: "#333",
  2325. whiteSpace: "nowrap",
  2326. minHeight: "unset"
  2327. }),
  2328. blackHover: {
  2329. "&:hover": {
  2330. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)",
  2331. backgroundColor: "#212121",
  2332. color: "#fff"
  2333. }
  2334. },
  2335. primaryHover: {
  2336. "&:hover": _objectSpread({
  2337. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2338. color: "#FFFFFF"
  2339. }, nextjs_material_kit["n" /* primaryBoxShadow */])
  2340. },
  2341. infoHover: {
  2342. "&:hover": _objectSpread({
  2343. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2344. color: "#FFFFFF"
  2345. }, nextjs_material_kit["k" /* infoBoxShadow */])
  2346. },
  2347. successHover: {
  2348. "&:hover": _objectSpread({
  2349. backgroundColor: nextjs_material_kit["u" /* successColor */],
  2350. color: "#FFFFFF"
  2351. }, nextjs_material_kit["s" /* successBoxShadow */])
  2352. },
  2353. warningHover: {
  2354. "&:hover": _objectSpread({
  2355. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  2356. color: "#FFFFFF"
  2357. }, nextjs_material_kit["x" /* warningBoxShadow */])
  2358. },
  2359. dangerHover: {
  2360. "&:hover": _objectSpread({
  2361. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  2362. color: "#FFFFFF"
  2363. }, nextjs_material_kit["d" /* dangerBoxShadow */])
  2364. },
  2365. roseHover: {
  2366. "&:hover": _objectSpread({
  2367. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  2368. color: "#FFFFFF"
  2369. }, nextjs_material_kit["q" /* roseBoxShadow */])
  2370. },
  2371. dropdownItemRTL: {
  2372. textAlign: "right"
  2373. },
  2374. dropdownDividerItem: {
  2375. margin: "5px 0",
  2376. backgroundColor: "rgba(0, 0, 0, 0.12)",
  2377. height: "1px",
  2378. overflow: "hidden"
  2379. },
  2380. buttonIcon: {
  2381. width: "20px",
  2382. height: "20px"
  2383. },
  2384. caret: {
  2385. transition: "all 150ms ease-in",
  2386. display: "inline-block",
  2387. width: "0",
  2388. height: "0",
  2389. marginLeft: "4px",
  2390. verticalAlign: "middle",
  2391. borderTop: "4px solid",
  2392. borderRight: "4px solid transparent",
  2393. borderLeft: "4px solid transparent"
  2394. },
  2395. caretActive: {
  2396. transform: "rotate(180deg)"
  2397. },
  2398. caretRTL: {
  2399. marginRight: "4px"
  2400. },
  2401. dropdownHeader: {
  2402. display: "block",
  2403. padding: "0.1875rem 1.25rem",
  2404. fontSize: "0.75rem",
  2405. lineHeight: "1.428571",
  2406. color: "#777",
  2407. whiteSpace: "nowrap",
  2408. fontWeight: "inherit",
  2409. marginTop: "10px",
  2410. minHeight: "unset",
  2411. "&:hover,&:focus": {
  2412. backgroundColor: "transparent",
  2413. cursor: "auto"
  2414. }
  2415. },
  2416. noLiPadding: {
  2417. padding: "0"
  2418. }
  2419. });
  2420. /* harmony default export */ var components_customDropdownStyle = (customDropdownStyle);
  2421. // CONCATENATED MODULE: ./components/CustomDropdown/CustomDropdown.js
  2422. var __jsx = external_react_default.a.createElement;
  2423. 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); }
  2424. // nodejs library that concatenates classes
  2425. // nodejs library to set properties for components
  2426. // @material-ui/core components
  2427. // core components
  2428. const useStyles = Object(styles_["makeStyles"])(components_customDropdownStyle);
  2429. function CustomDropdown(props) {
  2430. const [anchorEl, setAnchorEl] = external_react_default.a.useState(null);
  2431. const handleClick = event => {
  2432. if (anchorEl && anchorEl.contains(event.target)) {
  2433. setAnchorEl(null);
  2434. } else {
  2435. setAnchorEl(event.currentTarget);
  2436. }
  2437. };
  2438. const handleClose = param => {
  2439. setAnchorEl(null);
  2440. if (props && props.onClick) {
  2441. props.onClick(param);
  2442. }
  2443. };
  2444. const handleCloseAway = event => {
  2445. if (anchorEl.contains(event.target)) {
  2446. return;
  2447. }
  2448. setAnchorEl(null);
  2449. };
  2450. const classes = useStyles();
  2451. const {
  2452. buttonText,
  2453. buttonIcon,
  2454. dropdownList,
  2455. buttonProps,
  2456. dropup,
  2457. dropdownHeader,
  2458. caret,
  2459. hoverColor,
  2460. left,
  2461. rtlActive,
  2462. noLiPadding,
  2463. navDropdown
  2464. } = props;
  2465. const caretClasses = external_classnames_default()({
  2466. [classes.caret]: true,
  2467. [classes.caretActive]: Boolean(anchorEl),
  2468. [classes.caretRTL]: rtlActive
  2469. });
  2470. const dropdownItem = external_classnames_default()({
  2471. [classes.dropdownItem]: true,
  2472. [classes[hoverColor + "Hover"]]: true,
  2473. [classes.noLiPadding]: noLiPadding,
  2474. [classes.dropdownItemRTL]: rtlActive
  2475. });
  2476. let icon = null;
  2477. switch (typeof buttonIcon) {
  2478. case "object":
  2479. icon = __jsx(props.buttonIcon, {
  2480. className: classes.buttonIcon
  2481. });
  2482. break;
  2483. case "string":
  2484. icon = __jsx(Icon_default.a, {
  2485. className: classes.buttonIcon
  2486. }, props.buttonIcon);
  2487. break;
  2488. default:
  2489. icon = null;
  2490. break;
  2491. }
  2492. return __jsx("div", null, __jsx("div", null, __jsx(Button["a" /* default */], _extends({
  2493. "aria-label": "Notifications",
  2494. "aria-owns": anchorEl ? "menu-list" : null,
  2495. "aria-haspopup": "true"
  2496. }, buttonProps, {
  2497. onClick: handleClick
  2498. }), icon, buttonText !== undefined ? buttonText : null, caret ? __jsx("b", {
  2499. className: caretClasses
  2500. }) : null)), __jsx(Popper_default.a, {
  2501. open: Boolean(anchorEl),
  2502. anchorEl: anchorEl,
  2503. transition: true,
  2504. disablePortal: true,
  2505. placement: dropup ? left ? "top-start" : "top" : left ? "bottom-start" : "bottom",
  2506. className: external_classnames_default()({
  2507. [classes.popperClose]: !anchorEl,
  2508. [classes.popperResponsive]: true,
  2509. [classes.pooperNav]: Boolean(anchorEl) && navDropdown
  2510. })
  2511. }, () => __jsx(Grow_default.a, {
  2512. in: Boolean(anchorEl),
  2513. id: "menu-list",
  2514. style: dropup ? {
  2515. transformOrigin: "0 100% 0"
  2516. } : {
  2517. transformOrigin: "0 0 0"
  2518. }
  2519. }, __jsx(Paper_default.a, {
  2520. className: classes.dropdown
  2521. }, __jsx(ClickAwayListener_default.a, {
  2522. onClickAway: handleCloseAway
  2523. }, __jsx(MenuList_default.a, {
  2524. role: "menu",
  2525. className: classes.menuList
  2526. }, dropdownHeader !== undefined ? __jsx(MenuItem_default.a, {
  2527. onClick: () => handleClose(dropdownHeader),
  2528. className: classes.dropdownHeader
  2529. }, dropdownHeader) : null, dropdownList.map((prop, key) => {
  2530. if (prop.divider) {
  2531. return __jsx(Divider_default.a, {
  2532. key: key,
  2533. onClick: () => handleClose("divider"),
  2534. className: classes.dropdownDividerItem
  2535. });
  2536. }
  2537. return __jsx(MenuItem_default.a, {
  2538. key: key,
  2539. onClick: () => handleClose(prop),
  2540. className: dropdownItem
  2541. }, prop);
  2542. })))))));
  2543. }
  2544. CustomDropdown.defaultProps = {
  2545. caret: true,
  2546. hoverColor: "primary"
  2547. };
  2548. /***/ }),
  2549. /***/ "QzC/":
  2550. /***/ (function(module, exports) {
  2551. module.exports = require("react-swipeable-views");
  2552. /***/ }),
  2553. /***/ "SJC6":
  2554. /***/ (function(module, exports) {
  2555. module.exports = require("@material-ui/core/Tabs");
  2556. /***/ }),
  2557. /***/ "SuH/":
  2558. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2559. "use strict";
  2560. // EXPORTS
  2561. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ NavPills; });
  2562. // EXTERNAL MODULE: external "react"
  2563. var external_react_ = __webpack_require__("cDcd");
  2564. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2565. // EXTERNAL MODULE: external "classnames"
  2566. var external_classnames_ = __webpack_require__("K2gz");
  2567. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2568. // EXTERNAL MODULE: external "react-swipeable-views"
  2569. var external_react_swipeable_views_ = __webpack_require__("QzC/");
  2570. var external_react_swipeable_views_default = /*#__PURE__*/__webpack_require__.n(external_react_swipeable_views_);
  2571. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2572. var styles_ = __webpack_require__("9Pu4");
  2573. // EXTERNAL MODULE: external "@material-ui/core/Tabs"
  2574. var Tabs_ = __webpack_require__("SJC6");
  2575. var Tabs_default = /*#__PURE__*/__webpack_require__.n(Tabs_);
  2576. // EXTERNAL MODULE: external "@material-ui/core/Tab"
  2577. var Tab_ = __webpack_require__("6Yxu");
  2578. var Tab_default = /*#__PURE__*/__webpack_require__.n(Tab_);
  2579. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  2580. var GridContainer = __webpack_require__("mtPR");
  2581. // EXTERNAL MODULE: ./components/Grid/GridItem.js
  2582. var GridItem = __webpack_require__("i4t8");
  2583. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  2584. var nextjs_material_kit = __webpack_require__("eDSW");
  2585. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/navPillsStyle.js
  2586. const navPillsStyle = theme => ({
  2587. root: {
  2588. marginTop: "20px",
  2589. paddingLeft: "0",
  2590. marginBottom: "0",
  2591. overflow: "visible !important",
  2592. lineHeight: "24px",
  2593. textTransform: "uppercase",
  2594. fontSize: "12px",
  2595. fontWeight: "500",
  2596. position: "relative",
  2597. display: "block",
  2598. color: "inherit"
  2599. },
  2600. flexContainer: {
  2601. [theme.breakpoints.down("xs")]: {
  2602. display: "flex",
  2603. flexWrap: "wrap"
  2604. }
  2605. },
  2606. displayNone: {
  2607. display: "none !important"
  2608. },
  2609. fixed: {
  2610. overflow: "visible !important"
  2611. },
  2612. horizontalDisplay: {
  2613. display: "block"
  2614. },
  2615. pills: {
  2616. float: "left",
  2617. position: "relative",
  2618. display: "block",
  2619. borderRadius: "30px",
  2620. minWidth: "100px",
  2621. textAlign: "center",
  2622. transition: "all .3s",
  2623. padding: "10px 15px",
  2624. color: "#555555",
  2625. height: "auto",
  2626. opacity: "1",
  2627. maxWidth: "100%",
  2628. margin: "0 5px"
  2629. },
  2630. pillsWithIcons: {
  2631. borderRadius: "4px"
  2632. },
  2633. tabIcon: {
  2634. width: "30px",
  2635. height: "30px",
  2636. display: "block",
  2637. margin: "15px 0 !important",
  2638. "&, & *": {
  2639. letterSpacing: "normal !important"
  2640. }
  2641. },
  2642. horizontalPills: {
  2643. width: "100%",
  2644. float: "none !important",
  2645. "& + button": {
  2646. margin: "10px 0"
  2647. }
  2648. },
  2649. contentWrapper: {
  2650. marginTop: "20px"
  2651. },
  2652. primary: {
  2653. "&,&:hover": {
  2654. color: "#FFFFFF",
  2655. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2656. 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)}`
  2657. }
  2658. },
  2659. info: {
  2660. "&,&:hover": {
  2661. color: "#FFFFFF",
  2662. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2663. 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)}`
  2664. }
  2665. },
  2666. success: {
  2667. "&,&:hover": {
  2668. color: "#FFFFFF",
  2669. backgroundColor: nextjs_material_kit["u" /* successColor */],
  2670. 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)}`
  2671. }
  2672. },
  2673. warning: {
  2674. "&,&:hover": {
  2675. color: "#FFFFFF",
  2676. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  2677. 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)}`
  2678. }
  2679. },
  2680. danger: {
  2681. "&,&:hover": {
  2682. color: "#FFFFFF",
  2683. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  2684. 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)}`
  2685. }
  2686. },
  2687. rose: {
  2688. "&,&:hover": {
  2689. color: "#FFFFFF",
  2690. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  2691. 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)}`
  2692. }
  2693. },
  2694. alignCenter: {
  2695. alignItems: "center",
  2696. justifyContent: "center"
  2697. },
  2698. tabWrapper: {
  2699. color: "inherit",
  2700. position: "relative",
  2701. fontSize: "12px",
  2702. lineHeight: "24px",
  2703. fontWeight: "500",
  2704. textTransform: "uppercase",
  2705. "&,& *": {
  2706. letterSpacing: "normal"
  2707. }
  2708. }
  2709. });
  2710. /* harmony default export */ var components_navPillsStyle = (navPillsStyle);
  2711. // CONCATENATED MODULE: ./components/NavPills/NavPills.js
  2712. var __jsx = external_react_default.a.createElement;
  2713. 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); }
  2714. // nodejs library that concatenates classes
  2715. // nodejs library to set properties for components
  2716. // @material-ui/core components
  2717. // core components
  2718. const useStyles = Object(styles_["makeStyles"])(components_navPillsStyle);
  2719. function NavPills(props) {
  2720. const [active, setActive] = external_react_default.a.useState(props.active);
  2721. const handleChange = (event, active) => {
  2722. setActive(active);
  2723. };
  2724. const handleChangeIndex = index => {
  2725. setActive(index);
  2726. };
  2727. const classes = useStyles();
  2728. const {
  2729. tabs,
  2730. direction,
  2731. color,
  2732. horizontal,
  2733. alignCenter
  2734. } = props;
  2735. const flexContainerClasses = external_classnames_default()({
  2736. [classes.flexContainer]: true,
  2737. [classes.horizontalDisplay]: horizontal !== undefined
  2738. });
  2739. const tabButtons = __jsx(Tabs_default.a, {
  2740. classes: {
  2741. root: classes.root,
  2742. fixed: classes.fixed,
  2743. flexContainer: flexContainerClasses,
  2744. indicator: classes.displayNone
  2745. },
  2746. value: active,
  2747. onChange: handleChange,
  2748. centered: alignCenter
  2749. }, tabs.map((prop, key) => {
  2750. var icon = {};
  2751. if (prop.tabIcon !== undefined) {
  2752. icon["icon"] = __jsx(prop.tabIcon, {
  2753. className: classes.tabIcon
  2754. });
  2755. }
  2756. const pillsClasses = external_classnames_default()({
  2757. [classes.pills]: true,
  2758. [classes.horizontalPills]: horizontal !== undefined,
  2759. [classes.pillsWithIcons]: prop.tabIcon !== undefined
  2760. });
  2761. return __jsx(Tab_default.a, _extends({
  2762. label: prop.tabButton,
  2763. key: key
  2764. }, icon, {
  2765. classes: {
  2766. root: pillsClasses,
  2767. selected: classes[color],
  2768. wrapper: classes.tabWrapper
  2769. }
  2770. }));
  2771. }));
  2772. const tabContent = __jsx("div", {
  2773. className: classes.contentWrapper
  2774. }, __jsx(external_react_swipeable_views_default.a, {
  2775. axis: direction === "rtl" ? "x-reverse" : "x",
  2776. index: active,
  2777. onChangeIndex: handleChangeIndex
  2778. }, tabs.map((prop, key) => {
  2779. return __jsx("div", {
  2780. className: classes.tabContent,
  2781. key: key
  2782. }, prop.tabContent);
  2783. })));
  2784. 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);
  2785. }
  2786. NavPills.defaultProps = {
  2787. active: 0,
  2788. color: "primary"
  2789. };
  2790. /***/ }),
  2791. /***/ "UsYt":
  2792. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2793. "use strict";
  2794. // EXPORTS
  2795. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CardBody; });
  2796. // EXTERNAL MODULE: external "react"
  2797. var external_react_ = __webpack_require__("cDcd");
  2798. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2799. // EXTERNAL MODULE: external "classnames"
  2800. var external_classnames_ = __webpack_require__("K2gz");
  2801. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2802. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2803. var styles_ = __webpack_require__("9Pu4");
  2804. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardBodyStyle.js
  2805. const cardBodyStyle = {
  2806. cardBody: {
  2807. padding: "0.9375rem 1.875rem",
  2808. flex: "1 1 auto"
  2809. }
  2810. };
  2811. /* harmony default export */ var components_cardBodyStyle = (cardBodyStyle);
  2812. // CONCATENATED MODULE: ./components/Card/CardBody.js
  2813. var __jsx = external_react_default.a.createElement;
  2814. 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); }
  2815. 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; }
  2816. 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; }
  2817. // nodejs library that concatenates classes
  2818. // nodejs library to set properties for components
  2819. // @material-ui/core components
  2820. // @material-ui/icons
  2821. // core components
  2822. const useStyles = Object(styles_["makeStyles"])(components_cardBodyStyle);
  2823. function CardBody(props) {
  2824. const classes = useStyles();
  2825. const {
  2826. className,
  2827. children
  2828. } = props,
  2829. rest = _objectWithoutProperties(props, ["className", "children"]);
  2830. const cardBodyClasses = external_classnames_default()({
  2831. [classes.cardBody]: true,
  2832. [className]: className !== undefined
  2833. });
  2834. return __jsx("div", _extends({
  2835. className: cardBodyClasses
  2836. }, rest), children);
  2837. }
  2838. /***/ }),
  2839. /***/ "Vjj2":
  2840. /***/ (function(module, exports) {
  2841. module.exports = require("cookies");
  2842. /***/ }),
  2843. /***/ "Wh1t":
  2844. /***/ (function(module, exports) {
  2845. module.exports = require("@material-ui/core/Button");
  2846. /***/ }),
  2847. /***/ "Y8uC":
  2848. /***/ (function(module, exports) {
  2849. module.exports = require("@material-ui/core/Hidden");
  2850. /***/ }),
  2851. /***/ "YFqc":
  2852. /***/ (function(module, exports, __webpack_require__) {
  2853. module.exports = __webpack_require__("cTJO")
  2854. /***/ }),
  2855. /***/ "YTqd":
  2856. /***/ (function(module, exports, __webpack_require__) {
  2857. "use strict";
  2858. Object.defineProperty(exports, "__esModule", {
  2859. value: true
  2860. }); // this isn't importing the escape-string-regex module
  2861. // to reduce bytes
  2862. function escapeRegex(str) {
  2863. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  2864. }
  2865. function getRouteRegex(normalizedRoute) {
  2866. // Escape all characters that could be considered RegEx
  2867. const escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  2868. const groups = {};
  2869. let groupIndex = 1;
  2870. const parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2871. const isCatchAll = /^(\\\.){3}/.test($1);
  2872. groups[$1 // Un-escape key
  2873. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  2874. ] = {
  2875. pos: groupIndex++,
  2876. repeat: isCatchAll
  2877. };
  2878. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  2879. });
  2880. let namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  2881. // while generating routes-manifest
  2882. if (true) {
  2883. namedParameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2884. const isCatchAll = /^(\\\.){3}/.test($1);
  2885. const key = $1 // Un-escape key
  2886. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '');
  2887. return isCatchAll ? `/(?<${escapeRegex(key)}>.+?)` : `/(?<${escapeRegex(key)}>[^/]+?)`;
  2888. });
  2889. }
  2890. return Object.assign({
  2891. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  2892. groups
  2893. }, namedParameterizedRoute ? {
  2894. namedRegex: `^${namedParameterizedRoute}(?:/)?$`
  2895. } : {});
  2896. }
  2897. exports.getRouteRegex = getRouteRegex;
  2898. /***/ }),
  2899. /***/ "Z2Lm":
  2900. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2901. "use strict";
  2902. // EXPORTS
  2903. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Parallax; });
  2904. // EXTERNAL MODULE: external "react"
  2905. var external_react_ = __webpack_require__("cDcd");
  2906. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2907. // EXTERNAL MODULE: external "classnames"
  2908. var external_classnames_ = __webpack_require__("K2gz");
  2909. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2910. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2911. var styles_ = __webpack_require__("9Pu4");
  2912. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/parallaxStyle.js
  2913. const parallaxStyle = theme => ({
  2914. parallax: {
  2915. height: "90vh",
  2916. maxHeight: "1000px",
  2917. overflow: "hidden",
  2918. position: "relative",
  2919. backgroundPosition: "center top",
  2920. backgroundSize: "cover",
  2921. margin: "0",
  2922. padding: "0",
  2923. border: "0",
  2924. display: "flex",
  2925. alignItems: "center"
  2926. },
  2927. filter: {
  2928. "&:before": {
  2929. background: "#212121"
  2930. },
  2931. "&:after,&:before": {
  2932. position: "absolute",
  2933. zIndex: "1",
  2934. width: "100%",
  2935. height: "100%",
  2936. display: "block",
  2937. left: "0",
  2938. top: "0",
  2939. content: "''"
  2940. }
  2941. },
  2942. small: {
  2943. height: "380px"
  2944. },
  2945. parallaxResponsive: {
  2946. [theme.breakpoints.down("md")]: {
  2947. minHeight: "660px"
  2948. }
  2949. }
  2950. });
  2951. /* harmony default export */ var components_parallaxStyle = (parallaxStyle);
  2952. // CONCATENATED MODULE: ./components/Parallax/Parallax.js
  2953. var __jsx = external_react_default.a.createElement;
  2954. 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; }
  2955. 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; }
  2956. 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; }
  2957. // nodejs library that concatenates classes
  2958. // nodejs library to set properties for components
  2959. // @material-ui/core components
  2960. // core components
  2961. const useStyles = Object(styles_["makeStyles"])(components_parallaxStyle);
  2962. function Parallax(props) {
  2963. let windowScrollTop; // if (window.innerWidth >= 768) {
  2964. // windowScrollTop = window.pageYOffset / 3;
  2965. // } else {
  2966. // windowScrollTop = 0;
  2967. // }
  2968. const [transform, setTransform] = external_react_default.a.useState("translate3d(0,0px,0)");
  2969. external_react_default.a.useEffect(() => {
  2970. if (window.innerWidth >= 768) {
  2971. window.addEventListener("scroll", resetTransform);
  2972. }
  2973. return function cleanup() {
  2974. if (window.innerWidth >= 768) {
  2975. window.removeEventListener("scroll", resetTransform);
  2976. }
  2977. };
  2978. });
  2979. const resetTransform = () => {
  2980. var windowScrollTop = window.pageYOffset / 3;
  2981. setTransform("translate3d(0," + windowScrollTop + "px,0)");
  2982. };
  2983. const {
  2984. filter,
  2985. className,
  2986. children,
  2987. style,
  2988. image,
  2989. small,
  2990. responsive
  2991. } = props;
  2992. const classes = useStyles();
  2993. const parallaxClasses = external_classnames_default()({
  2994. [classes.parallax]: true,
  2995. [classes.filter]: filter,
  2996. [classes.small]: small,
  2997. [classes.parallaxResponsive]: responsive,
  2998. [className]: className !== undefined
  2999. });
  3000. return __jsx("div", {
  3001. className: parallaxClasses,
  3002. style: _objectSpread({}, style, {
  3003. backgroundImage: "url(" + image + ")",
  3004. transform: transform
  3005. })
  3006. }, children);
  3007. }
  3008. /***/ }),
  3009. /***/ "bhG4":
  3010. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3011. "use strict";
  3012. /* harmony import */ var _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  3013. const componentsStyle = {
  3014. container: _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  3015. brand: {
  3016. color: "#FFFFFF",
  3017. textAlign: "left"
  3018. },
  3019. title: {
  3020. fontSize: "4.2rem",
  3021. fontWeight: "600",
  3022. display: "inline-block",
  3023. position: "relative"
  3024. },
  3025. subtitle: {
  3026. fontSize: "1.313rem",
  3027. maxWidth: "510px",
  3028. margin: "10px 0 0"
  3029. },
  3030. main: {
  3031. background: "#FFFFFF",
  3032. position: "relative",
  3033. zIndex: "3"
  3034. },
  3035. mainRaised: {
  3036. margin: "-60px 30px 0px",
  3037. borderRadius: "6px",
  3038. 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)",
  3039. "@media (max-width: 830px)": {
  3040. marginLeft: "10px",
  3041. marginRight: "10px"
  3042. }
  3043. },
  3044. link: {
  3045. textDecoration: "none"
  3046. },
  3047. textCenter: {
  3048. textAlign: "center"
  3049. }
  3050. };
  3051. /* harmony default export */ __webpack_exports__["a"] = (componentsStyle);
  3052. /***/ }),
  3053. /***/ "bx/+":
  3054. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3055. "use strict";
  3056. __webpack_require__.r(__webpack_exports__);
  3057. // Apollo Value Configuration
  3058. const ApolloConfig = {
  3059. graphql_uri: process.env.API_GRAPHQL_URI
  3060. };
  3061. /* harmony default export */ __webpack_exports__["default"] = (ApolloConfig);
  3062. /***/ }),
  3063. /***/ "bzos":
  3064. /***/ (function(module, exports) {
  3065. module.exports = require("url");
  3066. /***/ }),
  3067. /***/ "c25J":
  3068. /***/ (function(module, exports) {
  3069. module.exports = require("@material-ui/core/ListItem");
  3070. /***/ }),
  3071. /***/ "cDcd":
  3072. /***/ (function(module, exports) {
  3073. module.exports = require("react");
  3074. /***/ }),
  3075. /***/ "cTJO":
  3076. /***/ (function(module, exports, __webpack_require__) {
  3077. "use strict";
  3078. var _interopRequireDefault = __webpack_require__("AroE");
  3079. var _interopRequireWildcard = __webpack_require__("7KCV");
  3080. exports.__esModule = true;
  3081. exports.default = void 0;
  3082. var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
  3083. var _url = __webpack_require__("bzos");
  3084. var _utils = __webpack_require__("kYf9");
  3085. var _router = _interopRequireDefault(__webpack_require__("nOHt"));
  3086. var _router2 = __webpack_require__("elyg");
  3087. function isLocal(href) {
  3088. var url = (0, _url.parse)(href, false, true);
  3089. var origin = (0, _url.parse)((0, _utils.getLocationOrigin)(), false, true);
  3090. return !url.host || url.protocol === origin.protocol && url.host === origin.host;
  3091. }
  3092. function memoizedFormatUrl(formatFunc) {
  3093. var lastHref = null;
  3094. var lastAs = null;
  3095. var lastResult = null;
  3096. return (href, as) => {
  3097. if (lastResult && href === lastHref && as === lastAs) {
  3098. return lastResult;
  3099. }
  3100. var result = formatFunc(href, as);
  3101. lastHref = href;
  3102. lastAs = as;
  3103. lastResult = result;
  3104. return result;
  3105. };
  3106. }
  3107. function formatUrl(url) {
  3108. return url && typeof url === 'object' ? (0, _utils.formatWithValidation)(url) : url;
  3109. }
  3110. var observer;
  3111. var listeners = new Map();
  3112. var IntersectionObserver = false ? undefined : null;
  3113. var prefetched = {};
  3114. function getObserver() {
  3115. // Return shared instance of IntersectionObserver if already created
  3116. if (observer) {
  3117. return observer;
  3118. } // Only create shared IntersectionObserver if supported in browser
  3119. if (!IntersectionObserver) {
  3120. return undefined;
  3121. }
  3122. return observer = new IntersectionObserver(entries => {
  3123. entries.forEach(entry => {
  3124. if (!listeners.has(entry.target)) {
  3125. return;
  3126. }
  3127. var cb = listeners.get(entry.target);
  3128. if (entry.isIntersecting || entry.intersectionRatio > 0) {
  3129. observer.unobserve(entry.target);
  3130. listeners.delete(entry.target);
  3131. cb();
  3132. }
  3133. });
  3134. }, {
  3135. rootMargin: '200px'
  3136. });
  3137. }
  3138. var listenToIntersections = (el, cb) => {
  3139. var observer = getObserver();
  3140. if (!observer) {
  3141. return () => {};
  3142. }
  3143. observer.observe(el);
  3144. listeners.set(el, cb);
  3145. return () => {
  3146. try {
  3147. observer.unobserve(el);
  3148. } catch (err) {
  3149. console.error(err);
  3150. }
  3151. listeners.delete(el);
  3152. };
  3153. };
  3154. class Link extends _react.Component {
  3155. constructor(props) {
  3156. super(props);
  3157. this.p = void 0;
  3158. this.cleanUpListeners = () => {};
  3159. this.formatUrls = memoizedFormatUrl((href, asHref) => {
  3160. return {
  3161. href: (0, _router2.addBasePath)(formatUrl(href)),
  3162. as: asHref ? (0, _router2.addBasePath)(formatUrl(asHref)) : asHref
  3163. };
  3164. });
  3165. this.linkClicked = e => {
  3166. var {
  3167. nodeName,
  3168. target
  3169. } = e.currentTarget;
  3170. if (nodeName === 'A' && (target && target !== '_self' || e.metaKey || e.ctrlKey || e.shiftKey || e.nativeEvent && e.nativeEvent.which === 2)) {
  3171. // ignore click for new tab / new window behavior
  3172. return;
  3173. }
  3174. var {
  3175. href,
  3176. as
  3177. } = this.formatUrls(this.props.href, this.props.as);
  3178. if (!isLocal(href)) {
  3179. // ignore click if it's outside our scope (e.g. https://google.com)
  3180. return;
  3181. }
  3182. var {
  3183. pathname
  3184. } = window.location;
  3185. href = (0, _url.resolve)(pathname, href);
  3186. as = as ? (0, _url.resolve)(pathname, as) : href;
  3187. e.preventDefault(); // avoid scroll for urls with anchor refs
  3188. var {
  3189. scroll
  3190. } = this.props;
  3191. if (scroll == null) {
  3192. scroll = as.indexOf('#') < 0;
  3193. } // replace state instead of push if prop is present
  3194. _router.default[this.props.replace ? 'replace' : 'push'](href, as, {
  3195. shallow: this.props.shallow
  3196. }).then(success => {
  3197. if (!success) return;
  3198. if (scroll) {
  3199. window.scrollTo(0, 0);
  3200. document.body.focus();
  3201. }
  3202. });
  3203. };
  3204. if (false) {}
  3205. this.p = props.prefetch !== false;
  3206. }
  3207. componentWillUnmount() {
  3208. this.cleanUpListeners();
  3209. }
  3210. getPaths() {
  3211. var {
  3212. pathname
  3213. } = window.location;
  3214. var {
  3215. href: parsedHref,
  3216. as: parsedAs
  3217. } = this.formatUrls(this.props.href, this.props.as);
  3218. var resolvedHref = (0, _url.resolve)(pathname, parsedHref);
  3219. return [resolvedHref, parsedAs ? (0, _url.resolve)(pathname, parsedAs) : resolvedHref];
  3220. }
  3221. handleRef(ref) {
  3222. if (this.p && IntersectionObserver && ref && ref.tagName) {
  3223. this.cleanUpListeners();
  3224. var isPrefetched = prefetched[this.getPaths().join( // Join on an invalid URI character
  3225. '%')];
  3226. if (!isPrefetched) {
  3227. this.cleanUpListeners = listenToIntersections(ref, () => {
  3228. this.prefetch();
  3229. });
  3230. }
  3231. }
  3232. } // The function is memoized so that no extra lifecycles are needed
  3233. // as per https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
  3234. prefetch(options) {
  3235. if (!this.p || true) return; // Prefetch the JSON page if asked (only in the client)
  3236. var paths = this.getPaths(); // We need to handle a prefetch error here since we may be
  3237. // loading with priority which can reject but we don't
  3238. // want to force navigation since this is only a prefetch
  3239. _router.default.prefetch(paths[
  3240. /* href */
  3241. 0], paths[
  3242. /* asPath */
  3243. 1], options).catch(err => {
  3244. if (false) {}
  3245. });
  3246. prefetched[paths.join( // Join on an invalid URI character
  3247. '%')] = true;
  3248. }
  3249. render() {
  3250. var {
  3251. children
  3252. } = this.props;
  3253. var {
  3254. href,
  3255. as
  3256. } = 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
  3257. if (typeof children === 'string') {
  3258. children = _react.default.createElement("a", null, children);
  3259. } // This will return the first child, if multiple are provided it will throw an error
  3260. var child = _react.Children.only(children);
  3261. var props = {
  3262. ref: el => {
  3263. this.handleRef(el);
  3264. if (child && typeof child === 'object' && child.ref) {
  3265. if (typeof child.ref === 'function') child.ref(el);else if (typeof child.ref === 'object') {
  3266. child.ref.current = el;
  3267. }
  3268. }
  3269. },
  3270. onMouseEnter: e => {
  3271. if (child.props && typeof child.props.onMouseEnter === 'function') {
  3272. child.props.onMouseEnter(e);
  3273. }
  3274. this.prefetch({
  3275. priority: true
  3276. });
  3277. },
  3278. onClick: e => {
  3279. if (child.props && typeof child.props.onClick === 'function') {
  3280. child.props.onClick(e);
  3281. }
  3282. if (!e.defaultPrevented) {
  3283. this.linkClicked(e);
  3284. }
  3285. }
  3286. }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
  3287. // defined, we specify the current 'href', so that repetition is not needed by the user
  3288. if (this.props.passHref || child.type === 'a' && !('href' in child.props)) {
  3289. props.href = as || href;
  3290. } // Add the ending slash to the paths. So, we can serve the
  3291. // "<page>/index.html" directly.
  3292. if (false) { var rewriteUrlForNextExport; }
  3293. return _react.default.cloneElement(child, props);
  3294. }
  3295. }
  3296. if (false) { var exact, PropTypes, warn; }
  3297. var _default = Link;
  3298. exports.default = _default;
  3299. /***/ }),
  3300. /***/ "cVmi":
  3301. /***/ (function(module, exports) {
  3302. module.exports = require("@material-ui/icons/LocationOn");
  3303. /***/ }),
  3304. /***/ "chnp":
  3305. /***/ (function(module, exports) {
  3306. 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=="
  3307. /***/ }),
  3308. /***/ "dZ6Y":
  3309. /***/ (function(module, exports, __webpack_require__) {
  3310. "use strict";
  3311. /*
  3312. MIT License
  3313. Copyright (c) Jason Miller (https://jasonformat.com/)
  3314. 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:
  3315. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  3316. 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.
  3317. */
  3318. Object.defineProperty(exports, "__esModule", {
  3319. value: true
  3320. });
  3321. function mitt() {
  3322. const all = Object.create(null);
  3323. return {
  3324. on(type, handler) {
  3325. ;
  3326. (all[type] || (all[type] = [])).push(handler);
  3327. },
  3328. off(type, handler) {
  3329. if (all[type]) {
  3330. // tslint:disable-next-line:no-bitwise
  3331. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  3332. }
  3333. },
  3334. emit(type, ...evts) {
  3335. // eslint-disable-next-line array-callback-return
  3336. ;
  3337. (all[type] || []).slice().map(handler => {
  3338. handler(...evts);
  3339. });
  3340. }
  3341. };
  3342. }
  3343. exports.default = mitt;
  3344. /***/ }),
  3345. /***/ "eDSW":
  3346. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3347. "use strict";
  3348. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hexToRGBAlpha; });
  3349. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return drawerWidth; });
  3350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return transition; });
  3351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return container; });
  3352. /* unused harmony export conatinerFluid */
  3353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return boxShadow; });
  3354. /* unused harmony export card */
  3355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return defaultFont; });
  3356. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return primaryColor; });
  3357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return warningColor; });
  3358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return dangerColor; });
  3359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return successColor; });
  3360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return infoColor; });
  3361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return roseColor; });
  3362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return grayColor; });
  3363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return primaryBoxShadow; });
  3364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return infoBoxShadow; });
  3365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return successBoxShadow; });
  3366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return warningBoxShadow; });
  3367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dangerBoxShadow; });
  3368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return roseBoxShadow; });
  3369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return warningCardHeader; });
  3370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return successCardHeader; });
  3371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dangerCardHeader; });
  3372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return infoCardHeader; });
  3373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return primaryCardHeader; });
  3374. /* unused harmony export roseCardHeader */
  3375. /* unused harmony export cardActions */
  3376. /* unused harmony export cardHeader */
  3377. /* unused harmony export defaultBoxShadow */
  3378. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return title; });
  3379. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cardTitle; });
  3380. /* unused harmony export cardLink */
  3381. /* unused harmony export cardSubtitle */
  3382. 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; }
  3383. 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; }
  3384. 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; }
  3385. const hexColorToRGB = function (hexColor) {
  3386. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  3387. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  3388. return r + r + g + g + b + b;
  3389. });
  3390. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  3391. return hex_array ? {
  3392. r: parseInt(hex_array[1], 16),
  3393. // 0-255
  3394. g: parseInt(hex_array[2], 16),
  3395. // 0-255
  3396. b: parseInt(hex_array[3], 16) // 0-255
  3397. } : null;
  3398. };
  3399. const hexToRGBAlpha = function (hexColor, alpha) {
  3400. let rgb = hexColorToRGB(hexColor);
  3401. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  3402. };
  3403. const drawerWidth = 260;
  3404. const transition = {
  3405. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  3406. };
  3407. const conatinerFluid = {
  3408. paddingRight: "15px",
  3409. paddingLeft: "15px",
  3410. marginRight: "auto",
  3411. marginLeft: "auto",
  3412. width: "100%"
  3413. };
  3414. const container = _objectSpread({}, conatinerFluid, {
  3415. "@media (min-width: 576px)": {
  3416. maxWidth: "540px"
  3417. },
  3418. "@media (min-width: 768px)": {
  3419. maxWidth: "720px"
  3420. },
  3421. "@media (min-width: 992px)": {
  3422. maxWidth: "960px"
  3423. },
  3424. "@media (min-width: 1200px)": {
  3425. maxWidth: "1140px"
  3426. }
  3427. });
  3428. const boxShadow = {
  3429. 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)"
  3430. };
  3431. const card = {
  3432. display: "inline-block",
  3433. position: "relative",
  3434. width: "100%",
  3435. margin: "25px 0",
  3436. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  3437. borderRadius: "3px",
  3438. color: "rgba(0, 0, 0, 0.87)",
  3439. background: "#fff"
  3440. };
  3441. const defaultFont = {
  3442. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  3443. fontWeight: "300",
  3444. lineHeight: "1.5em"
  3445. };
  3446. const primaryColor = "#212121";
  3447. const warningColor = "#ff9800";
  3448. const dangerColor = "#f44336";
  3449. const successColor = "#4caf50";
  3450. const infoColor = "#212121";
  3451. const roseColor = "#e91e63";
  3452. const grayColor = "#ffffff";
  3453. const primaryBoxShadow = {
  3454. 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)}`
  3455. };
  3456. const infoBoxShadow = {
  3457. 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)}`
  3458. };
  3459. const successBoxShadow = {
  3460. 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)}`
  3461. };
  3462. const warningBoxShadow = {
  3463. 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)}`
  3464. };
  3465. const dangerBoxShadow = {
  3466. 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)}`
  3467. };
  3468. const roseBoxShadow = {
  3469. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  3470. };
  3471. const warningCardHeader = _objectSpread({
  3472. color: "#fff",
  3473. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  3474. }, warningBoxShadow);
  3475. const successCardHeader = _objectSpread({
  3476. color: "#fff",
  3477. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  3478. }, successBoxShadow);
  3479. const dangerCardHeader = _objectSpread({
  3480. color: "#fff",
  3481. background: "linear-gradient(60deg, #ef5350, #e53935)"
  3482. }, dangerBoxShadow);
  3483. const infoCardHeader = _objectSpread({
  3484. color: "#fff",
  3485. background: "#212121"
  3486. }, infoBoxShadow);
  3487. const primaryCardHeader = _objectSpread({
  3488. color: "#fff",
  3489. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  3490. }, primaryBoxShadow);
  3491. const roseCardHeader = _objectSpread({
  3492. color: "#fff",
  3493. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  3494. }, roseBoxShadow);
  3495. const cardActions = _objectSpread({
  3496. margin: "0 20px 10px",
  3497. paddingTop: "10px",
  3498. borderTop: "1px solid #eeeeee",
  3499. height: "auto"
  3500. }, defaultFont);
  3501. const cardHeader = {
  3502. margin: "-30px 15px 0",
  3503. borderRadius: "3px",
  3504. padding: "15px"
  3505. };
  3506. const defaultBoxShadow = {
  3507. border: "0",
  3508. borderRadius: "3px",
  3509. 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)",
  3510. padding: "10px 0",
  3511. transition: "all 150ms ease 0s"
  3512. };
  3513. const title = {
  3514. color: "#ffffff",
  3515. margin: "1.75rem 0 0.875rem",
  3516. textDecoration: "none",
  3517. fontWeight: "700",
  3518. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  3519. };
  3520. const cardTitle = _objectSpread({}, title, {
  3521. marginTop: ".625rem"
  3522. });
  3523. const cardLink = {
  3524. "& + $cardLink": {
  3525. marginLeft: "1.25rem"
  3526. }
  3527. };
  3528. const cardSubtitle = {
  3529. marginBottom: "0",
  3530. marginTop: "-.375rem"
  3531. };
  3532. /***/ }),
  3533. /***/ "elyg":
  3534. /***/ (function(module, exports, __webpack_require__) {
  3535. "use strict";
  3536. var __importDefault = this && this.__importDefault || function (mod) {
  3537. return mod && mod.__esModule ? mod : {
  3538. "default": mod
  3539. };
  3540. };
  3541. Object.defineProperty(exports, "__esModule", {
  3542. value: true
  3543. });
  3544. const url_1 = __webpack_require__("bzos");
  3545. const mitt_1 = __importDefault(__webpack_require__("dZ6Y"));
  3546. const utils_1 = __webpack_require__("g/15");
  3547. const is_dynamic_1 = __webpack_require__("/jkW");
  3548. const route_matcher_1 = __webpack_require__("gguc");
  3549. const route_regex_1 = __webpack_require__("YTqd");
  3550. const basePath = false || '';
  3551. function addBasePath(path) {
  3552. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  3553. }
  3554. exports.addBasePath = addBasePath;
  3555. function delBasePath(path) {
  3556. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  3557. }
  3558. exports.delBasePath = delBasePath;
  3559. function toRoute(path) {
  3560. return path.replace(/\/$/, '') || '/';
  3561. }
  3562. const prepareRoute = path => toRoute(!path || path === '/' ? '/index' : path);
  3563. function fetchNextData(pathname, query, isServerRender, cb) {
  3564. let attempts = isServerRender ? 3 : 1;
  3565. function getResponse() {
  3566. return fetch(utils_1.formatWithValidation({
  3567. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  3568. `/_next/data/${__NEXT_DATA__.buildId}${delBasePath(pathname)}.json`),
  3569. query
  3570. }), {
  3571. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  3572. // Cookies may also be required for `getServerSideProps`.
  3573. //
  3574. // > `fetch` won’t send cookies, unless you set the credentials init
  3575. // > option.
  3576. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  3577. //
  3578. // > For maximum browser compatibility when it comes to sending &
  3579. // > receiving cookies, always supply the `credentials: 'same-origin'`
  3580. // > option instead of relying on the default.
  3581. // https://github.com/github/fetch#caveats
  3582. credentials: 'same-origin'
  3583. }).then(res => {
  3584. if (!res.ok) {
  3585. if (--attempts > 0 && res.status >= 500) {
  3586. return getResponse();
  3587. }
  3588. throw new Error(`Failed to load static props`);
  3589. }
  3590. return res.json();
  3591. });
  3592. }
  3593. return getResponse().then(data => {
  3594. return cb ? cb(data) : data;
  3595. }).catch(err => {
  3596. // We should only trigger a server-side transition if this was caused
  3597. // on a client-side transition. Otherwise, we'd get into an infinite
  3598. // loop.
  3599. if (!isServerRender) {
  3600. ;
  3601. err.code = 'PAGE_LOAD_ERROR';
  3602. }
  3603. throw err;
  3604. });
  3605. }
  3606. class Router {
  3607. constructor(pathname, query, as, {
  3608. initialProps,
  3609. pageLoader,
  3610. App,
  3611. wrapApp,
  3612. Component,
  3613. err,
  3614. subscription,
  3615. isFallback
  3616. }) {
  3617. // Static Data Cache
  3618. this.sdc = {};
  3619. this.onPopState = e => {
  3620. if (!e.state) {
  3621. // We get state as undefined for two reasons.
  3622. // 1. With older safari (< 8) and older chrome (< 34)
  3623. // 2. When the URL changed with #
  3624. //
  3625. // In the both cases, we don't need to proceed and change the route.
  3626. // (as it's already changed)
  3627. // But we can simply replace the state with the new changes.
  3628. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  3629. // So, doing the following for (1) does no harm.
  3630. const {
  3631. pathname,
  3632. query
  3633. } = this;
  3634. this.changeState('replaceState', utils_1.formatWithValidation({
  3635. pathname,
  3636. query
  3637. }), utils_1.getURL());
  3638. return;
  3639. } // Make sure we don't re-render on initial load,
  3640. // can be caused by navigating back from an external site
  3641. if (e.state && this.isSsr && e.state.as === this.asPath && url_1.parse(e.state.url).pathname === this.pathname) {
  3642. return;
  3643. } // If the downstream application returns falsy, return.
  3644. // They will then be responsible for handling the event.
  3645. if (this._bps && !this._bps(e.state)) {
  3646. return;
  3647. }
  3648. const {
  3649. url,
  3650. as,
  3651. options
  3652. } = e.state;
  3653. if (false) {}
  3654. this.replace(url, as, options);
  3655. };
  3656. this._getStaticData = asPath => {
  3657. const pathname = prepareRoute(url_1.parse(asPath).pathname);
  3658. return true && this.sdc[pathname] ? Promise.resolve(this.sdc[pathname]) : fetchNextData(pathname, null, this.isSsr, data => this.sdc[pathname] = data);
  3659. };
  3660. this._getServerData = asPath => {
  3661. let {
  3662. pathname,
  3663. query
  3664. } = url_1.parse(asPath, true);
  3665. pathname = prepareRoute(pathname);
  3666. return fetchNextData(pathname, query, this.isSsr);
  3667. }; // represents the current component key
  3668. this.route = toRoute(pathname); // set up the component cache (by route keys)
  3669. this.components = {}; // We should not keep the cache, if there's an error
  3670. // Otherwise, this cause issues when when going back and
  3671. // come again to the errored page.
  3672. if (pathname !== '/_error') {
  3673. this.components[this.route] = {
  3674. Component,
  3675. props: initialProps,
  3676. err,
  3677. __N_SSG: initialProps && initialProps.__N_SSG,
  3678. __N_SSP: initialProps && initialProps.__N_SSP
  3679. };
  3680. }
  3681. this.components['/_app'] = {
  3682. Component: App
  3683. }; // Backwards compat for Router.router.events
  3684. // TODO: Should be remove the following major version as it was never documented
  3685. this.events = Router.events;
  3686. this.pageLoader = pageLoader;
  3687. this.pathname = pathname;
  3688. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  3689. // until after mount to prevent hydration mismatch
  3690. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  3691. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  3692. this.basePath = basePath;
  3693. this.sub = subscription;
  3694. this.clc = null;
  3695. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  3696. // back from external site
  3697. this.isSsr = true;
  3698. this.isFallback = isFallback;
  3699. if (false) {}
  3700. } // @deprecated backwards compatibility even though it's a private method.
  3701. static _rewriteUrlForNextExport(url) {
  3702. if (false) {} else {
  3703. return url;
  3704. }
  3705. }
  3706. update(route, mod) {
  3707. const Component = mod.default || mod;
  3708. const data = this.components[route];
  3709. if (!data) {
  3710. throw new Error(`Cannot update unavailable route: ${route}`);
  3711. }
  3712. const newData = Object.assign(Object.assign({}, data), {
  3713. Component,
  3714. __N_SSG: mod.__N_SSG,
  3715. __N_SSP: mod.__N_SSP
  3716. });
  3717. this.components[route] = newData; // pages/_app.js updated
  3718. if (route === '/_app') {
  3719. this.notify(this.components[this.route]);
  3720. return;
  3721. }
  3722. if (route === this.route) {
  3723. this.notify(newData);
  3724. }
  3725. }
  3726. reload() {
  3727. window.location.reload();
  3728. }
  3729. /**
  3730. * Go back in history
  3731. */
  3732. back() {
  3733. window.history.back();
  3734. }
  3735. /**
  3736. * Performs a `pushState` with arguments
  3737. * @param url of the route
  3738. * @param as masks `url` for the browser
  3739. * @param options object you can define `shallow` and other options
  3740. */
  3741. push(url, as = url, options = {}) {
  3742. return this.change('pushState', url, as, options);
  3743. }
  3744. /**
  3745. * Performs a `replaceState` with arguments
  3746. * @param url of the route
  3747. * @param as masks `url` for the browser
  3748. * @param options object you can define `shallow` and other options
  3749. */
  3750. replace(url, as = url, options = {}) {
  3751. return this.change('replaceState', url, as, options);
  3752. }
  3753. change(method, _url, _as, options) {
  3754. return new Promise((resolve, reject) => {
  3755. if (!options._h) {
  3756. this.isSsr = false;
  3757. } // marking route changes as a navigation start entry
  3758. if (utils_1.ST) {
  3759. performance.mark('routeChange');
  3760. } // If url and as provided as an object representation,
  3761. // we'll format them into the string version here.
  3762. let url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  3763. let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  3764. url = addBasePath(url);
  3765. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  3766. // "<page>/index.html" directly for the SSR page.
  3767. if (false) {}
  3768. this.abortComponentLoad(as); // If the url change is only related to a hash change
  3769. // We should not proceed. We should only change the state.
  3770. // WARNING: `_h` is an internal option for handing Next.js client-side
  3771. // hydration. Your app should _never_ use this property. It may change at
  3772. // any time without notice.
  3773. if (!options._h && this.onlyAHashChange(as)) {
  3774. this.asPath = as;
  3775. Router.events.emit('hashChangeStart', as);
  3776. this.changeState(method, url, as, options);
  3777. this.scrollToHash(as);
  3778. Router.events.emit('hashChangeComplete', as);
  3779. return resolve(true);
  3780. }
  3781. const {
  3782. pathname,
  3783. query,
  3784. protocol
  3785. } = url_1.parse(url, true);
  3786. if (!pathname || protocol) {
  3787. if (false) {}
  3788. return resolve(false);
  3789. } // If asked to change the current URL we should reload the current page
  3790. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  3791. // We also need to set the method = replaceState always
  3792. // as this should not go into the history (That's how browsers work)
  3793. // We should compare the new asPath to the current asPath, not the url
  3794. if (!this.urlIsNew(as)) {
  3795. method = 'replaceState';
  3796. }
  3797. const route = toRoute(pathname);
  3798. const {
  3799. shallow = false
  3800. } = options;
  3801. if (is_dynamic_1.isDynamicRoute(route)) {
  3802. const {
  3803. pathname: asPathname
  3804. } = url_1.parse(as);
  3805. const routeRegex = route_regex_1.getRouteRegex(route);
  3806. const routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  3807. if (!routeMatch) {
  3808. const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
  3809. if (missingParams.length > 0) {
  3810. if (false) {}
  3811. 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`));
  3812. }
  3813. } else {
  3814. // Merge params into `query`, overwriting any specified in search
  3815. Object.assign(query, routeMatch);
  3816. }
  3817. }
  3818. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  3819. this.getRouteInfo(route, pathname, query, as, shallow).then(routeInfo => {
  3820. const {
  3821. error
  3822. } = routeInfo;
  3823. if (error && error.cancelled) {
  3824. return resolve(false);
  3825. }
  3826. Router.events.emit('beforeHistoryChange', as);
  3827. this.changeState(method, url, as, options);
  3828. if (false) {}
  3829. this.set(route, pathname, query, as, routeInfo);
  3830. if (error) {
  3831. Router.events.emit('routeChangeError', error, as);
  3832. throw error;
  3833. }
  3834. Router.events.emit('routeChangeComplete', as);
  3835. return resolve(true);
  3836. }, reject);
  3837. });
  3838. }
  3839. changeState(method, url, as, options = {}) {
  3840. if (false) {}
  3841. if (method !== 'pushState' || utils_1.getURL() !== as) {
  3842. window.history[method]({
  3843. url,
  3844. as,
  3845. options
  3846. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  3847. // Passing the empty string here should be safe against future changes to the method.
  3848. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  3849. '', as);
  3850. }
  3851. }
  3852. getRouteInfo(route, pathname, query, as, shallow = false) {
  3853. const cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  3854. // If the route is already rendered on the screen.
  3855. if (shallow && cachedRouteInfo && this.route === route) {
  3856. return Promise.resolve(cachedRouteInfo);
  3857. }
  3858. const handleError = (err, loadErrorFail) => {
  3859. return new Promise(resolve => {
  3860. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  3861. // If we can't load the page it could be one of following reasons
  3862. // 1. Page doesn't exists
  3863. // 2. Page does exist in a different zone
  3864. // 3. Internal error while loading the page
  3865. // So, doing a hard reload is the proper way to deal with this.
  3866. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  3867. // So, we need to mark it as a cancelled error and stop the routing logic.
  3868. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  3869. return resolve({
  3870. error: err
  3871. });
  3872. }
  3873. if (err.cancelled) {
  3874. // @ts-ignore TODO: fix the control flow here
  3875. return resolve({
  3876. error: err
  3877. });
  3878. }
  3879. resolve(this.fetchComponent('/_error').then(res => {
  3880. const {
  3881. page: Component
  3882. } = res;
  3883. const routeInfo = {
  3884. Component,
  3885. err
  3886. };
  3887. return new Promise(resolve => {
  3888. this.getInitialProps(Component, {
  3889. err,
  3890. pathname,
  3891. query
  3892. }).then(props => {
  3893. routeInfo.props = props;
  3894. routeInfo.error = err;
  3895. resolve(routeInfo);
  3896. }, gipErr => {
  3897. console.error('Error in error page `getInitialProps`: ', gipErr);
  3898. routeInfo.error = err;
  3899. routeInfo.props = {};
  3900. resolve(routeInfo);
  3901. });
  3902. });
  3903. }).catch(err => handleError(err, true)));
  3904. });
  3905. };
  3906. return new Promise((resolve, reject) => {
  3907. if (cachedRouteInfo) {
  3908. return resolve(cachedRouteInfo);
  3909. }
  3910. this.fetchComponent(route).then(res => resolve({
  3911. Component: res.page,
  3912. __N_SSG: res.mod.__N_SSG,
  3913. __N_SSP: res.mod.__N_SSP
  3914. }), reject);
  3915. }).then(routeInfo => {
  3916. const {
  3917. Component,
  3918. __N_SSG,
  3919. __N_SSP
  3920. } = routeInfo;
  3921. if (false) {}
  3922. 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`
  3923. {
  3924. pathname,
  3925. query,
  3926. asPath: as
  3927. })).then(props => {
  3928. routeInfo.props = props;
  3929. this.components[route] = routeInfo;
  3930. return routeInfo;
  3931. });
  3932. }).catch(handleError);
  3933. }
  3934. set(route, pathname, query, as, data) {
  3935. this.isFallback = false;
  3936. this.route = route;
  3937. this.pathname = pathname;
  3938. this.query = query;
  3939. this.asPath = as;
  3940. this.notify(data);
  3941. }
  3942. /**
  3943. * Callback to execute before replacing router state
  3944. * @param cb callback to be executed
  3945. */
  3946. beforePopState(cb) {
  3947. this._bps = cb;
  3948. }
  3949. onlyAHashChange(as) {
  3950. if (!this.asPath) return false;
  3951. const [oldUrlNoHash, oldHash] = this.asPath.split('#');
  3952. const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
  3953. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  3954. return true;
  3955. } // If the urls are change, there's more than a hash change
  3956. if (oldUrlNoHash !== newUrlNoHash) {
  3957. return false;
  3958. } // If the hash has changed, then it's a hash only change.
  3959. // This check is necessary to handle both the enter and
  3960. // leave hash === '' cases. The identity case falls through
  3961. // and is treated as a next reload.
  3962. return oldHash !== newHash;
  3963. }
  3964. scrollToHash(as) {
  3965. const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value
  3966. if (hash === '') {
  3967. window.scrollTo(0, 0);
  3968. return;
  3969. } // First we check if the element by id is found
  3970. const idEl = document.getElementById(hash);
  3971. if (idEl) {
  3972. idEl.scrollIntoView();
  3973. return;
  3974. } // If there's no element with the id, we check the `name` property
  3975. // To mirror browsers
  3976. const nameEl = document.getElementsByName(hash)[0];
  3977. if (nameEl) {
  3978. nameEl.scrollIntoView();
  3979. }
  3980. }
  3981. urlIsNew(asPath) {
  3982. return this.asPath !== asPath;
  3983. }
  3984. /**
  3985. * Prefetch page code, you may wait for the data during page rendering.
  3986. * This feature only works in production!
  3987. * @param url the href of prefetched page
  3988. * @param asPath the as path of the prefetched page
  3989. */
  3990. prefetch(url, asPath = url, options = {}) {
  3991. return new Promise((resolve, reject) => {
  3992. const {
  3993. pathname,
  3994. protocol
  3995. } = url_1.parse(url);
  3996. if (!pathname || protocol) {
  3997. if (false) {}
  3998. return;
  3999. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  4000. if (false) {}
  4001. const route = delBasePath(toRoute(pathname));
  4002. Promise.all([this.pageLoader.prefetchData(url, delBasePath(asPath)), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(() => resolve(), reject);
  4003. });
  4004. }
  4005. async fetchComponent(route) {
  4006. let cancelled = false;
  4007. const cancel = this.clc = () => {
  4008. cancelled = true;
  4009. };
  4010. route = delBasePath(route);
  4011. const componentResult = await this.pageLoader.loadPage(route);
  4012. if (cancelled) {
  4013. const error = new Error(`Abort fetching component for route: "${route}"`);
  4014. error.cancelled = true;
  4015. throw error;
  4016. }
  4017. if (cancel === this.clc) {
  4018. this.clc = null;
  4019. }
  4020. return componentResult;
  4021. }
  4022. _getData(fn) {
  4023. let cancelled = false;
  4024. const cancel = () => {
  4025. cancelled = true;
  4026. };
  4027. this.clc = cancel;
  4028. return fn().then(data => {
  4029. if (cancel === this.clc) {
  4030. this.clc = null;
  4031. }
  4032. if (cancelled) {
  4033. const err = new Error('Loading initial props cancelled');
  4034. err.cancelled = true;
  4035. throw err;
  4036. }
  4037. return data;
  4038. });
  4039. }
  4040. getInitialProps(Component, ctx) {
  4041. const {
  4042. Component: App
  4043. } = this.components['/_app'];
  4044. const AppTree = this._wrapApp(App);
  4045. ctx.AppTree = AppTree;
  4046. return utils_1.loadGetInitialProps(App, {
  4047. AppTree,
  4048. Component,
  4049. router: this,
  4050. ctx
  4051. });
  4052. }
  4053. abortComponentLoad(as) {
  4054. if (this.clc) {
  4055. const e = new Error('Route Cancelled');
  4056. e.cancelled = true;
  4057. Router.events.emit('routeChangeError', e, as);
  4058. this.clc();
  4059. this.clc = null;
  4060. }
  4061. }
  4062. notify(data) {
  4063. this.sub(data, this.components['/_app'].Component);
  4064. }
  4065. }
  4066. exports.default = Router;
  4067. Router.events = mitt_1.default();
  4068. /***/ }),
  4069. /***/ "g/15":
  4070. /***/ (function(module, exports, __webpack_require__) {
  4071. "use strict";
  4072. Object.defineProperty(exports, "__esModule", {
  4073. value: true
  4074. });
  4075. const url_1 = __webpack_require__("bzos");
  4076. /**
  4077. * Utils
  4078. */
  4079. function execOnce(fn) {
  4080. let used = false;
  4081. let result;
  4082. return (...args) => {
  4083. if (!used) {
  4084. used = true;
  4085. result = fn(...args);
  4086. }
  4087. return result;
  4088. };
  4089. }
  4090. exports.execOnce = execOnce;
  4091. function getLocationOrigin() {
  4092. const {
  4093. protocol,
  4094. hostname,
  4095. port
  4096. } = window.location;
  4097. return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  4098. }
  4099. exports.getLocationOrigin = getLocationOrigin;
  4100. function getURL() {
  4101. const {
  4102. href
  4103. } = window.location;
  4104. const origin = getLocationOrigin();
  4105. return href.substring(origin.length);
  4106. }
  4107. exports.getURL = getURL;
  4108. function getDisplayName(Component) {
  4109. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  4110. }
  4111. exports.getDisplayName = getDisplayName;
  4112. function isResSent(res) {
  4113. return res.finished || res.headersSent;
  4114. }
  4115. exports.isResSent = isResSent;
  4116. async function loadGetInitialProps(App, ctx) {
  4117. var _a;
  4118. if (false) {} // when called from _app `ctx` is nested in `ctx`
  4119. const res = ctx.res || ctx.ctx && ctx.ctx.res;
  4120. if (!App.getInitialProps) {
  4121. if (ctx.ctx && ctx.Component) {
  4122. // @ts-ignore pageProps default
  4123. return {
  4124. pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
  4125. };
  4126. }
  4127. return {};
  4128. }
  4129. const props = await App.getInitialProps(ctx);
  4130. if (res && isResSent(res)) {
  4131. return props;
  4132. }
  4133. if (!props) {
  4134. const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
  4135. throw new Error(message);
  4136. }
  4137. if (false) {}
  4138. return props;
  4139. }
  4140. exports.loadGetInitialProps = loadGetInitialProps;
  4141. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  4142. function formatWithValidation(url, options) {
  4143. if (false) {}
  4144. return url_1.format(url, options);
  4145. }
  4146. exports.formatWithValidation = formatWithValidation;
  4147. exports.SP = typeof performance !== 'undefined';
  4148. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  4149. /***/ }),
  4150. /***/ "gguc":
  4151. /***/ (function(module, exports, __webpack_require__) {
  4152. "use strict";
  4153. Object.defineProperty(exports, "__esModule", {
  4154. value: true
  4155. });
  4156. function getRouteMatcher(routeRegex) {
  4157. const {
  4158. re,
  4159. groups
  4160. } = routeRegex;
  4161. return pathname => {
  4162. const routeMatch = re.exec(pathname);
  4163. if (!routeMatch) {
  4164. return false;
  4165. }
  4166. const decode = param => {
  4167. try {
  4168. return decodeURIComponent(param);
  4169. } catch (_) {
  4170. const err = new Error('failed to decode param');
  4171. err.code = 'DECODE_FAILED';
  4172. throw err;
  4173. }
  4174. };
  4175. const params = {};
  4176. Object.keys(groups).forEach(slugName => {
  4177. const g = groups[slugName];
  4178. const m = routeMatch[g.pos];
  4179. if (m !== undefined) {
  4180. params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
  4181. }
  4182. });
  4183. return params;
  4184. };
  4185. }
  4186. exports.getRouteMatcher = getRouteMatcher;
  4187. /***/ }),
  4188. /***/ "i4t8":
  4189. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4190. "use strict";
  4191. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridItem; });
  4192. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  4193. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  4194. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  4195. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  4196. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  4197. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  4198. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  4199. 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); }
  4200. 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; }
  4201. 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; }
  4202. // nodejs library to set properties for components
  4203. // @material-ui/core components
  4204. const styles = {
  4205. grid: {
  4206. position: "relative",
  4207. width: "100%",
  4208. minHeight: "1px",
  4209. paddingRight: "15px",
  4210. paddingLeft: "15px",
  4211. flexBasis: "auto"
  4212. }
  4213. };
  4214. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  4215. function GridItem(props) {
  4216. const classes = useStyles();
  4217. const {
  4218. children,
  4219. className
  4220. } = props,
  4221. rest = _objectWithoutProperties(props, ["children", "className"]);
  4222. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  4223. item: true
  4224. }, rest, {
  4225. className: classes.grid + " " + className
  4226. }), children);
  4227. }
  4228. GridItem.defaultProps = {
  4229. className: ""
  4230. };
  4231. /***/ }),
  4232. /***/ "j08L":
  4233. /***/ (function(module, exports) {
  4234. module.exports = require("@material-ui/icons/Close");
  4235. /***/ }),
  4236. /***/ "jD8W":
  4237. /***/ (function(module, exports) {
  4238. module.exports = require("@material-ui/core/Popper");
  4239. /***/ }),
  4240. /***/ "kYf9":
  4241. /***/ (function(module, exports) {
  4242. module.exports = require("next/dist/next-server/lib/utils.js");
  4243. /***/ }),
  4244. /***/ "kmfx":
  4245. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4246. "use strict";
  4247. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  4248. 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; }
  4249. 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; }
  4250. 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; }
  4251. const pillsStyle = {
  4252. section: {
  4253. padding: "70px 0"
  4254. },
  4255. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  4256. title: _objectSpread({}, assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* title */ "v"], {
  4257. marginTop: "30px",
  4258. minHeight: "32px",
  4259. textDecoration: "none"
  4260. })
  4261. };
  4262. /* unused harmony default export */ var _unused_webpack_default_export = (pillsStyle);
  4263. /***/ }),
  4264. /***/ "lWoh":
  4265. /***/ (function(module, exports) {
  4266. module.exports = require("@material-ui/core/FormControl");
  4267. /***/ }),
  4268. /***/ "lj8g":
  4269. /***/ (function(module, exports) {
  4270. module.exports = require("@material-ui/core/InputAdornment");
  4271. /***/ }),
  4272. /***/ "mf1M":
  4273. /***/ (function(module, exports) {
  4274. module.exports = require("@material-ui/core/Grow");
  4275. /***/ }),
  4276. /***/ "mtPR":
  4277. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4278. "use strict";
  4279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridContainer; });
  4280. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  4281. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  4282. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  4283. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  4284. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  4285. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  4286. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  4287. 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); }
  4288. 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; }
  4289. 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; }
  4290. // nodejs library to set properties for components
  4291. // @material-ui/core components
  4292. const styles = {
  4293. grid: {
  4294. marginRight: "-15px",
  4295. marginLeft: "-15px",
  4296. width: "auto"
  4297. }
  4298. };
  4299. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  4300. function GridContainer(props) {
  4301. const classes = useStyles();
  4302. const {
  4303. children,
  4304. className
  4305. } = props,
  4306. rest = _objectWithoutProperties(props, ["children", "className"]);
  4307. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  4308. container: true
  4309. }, rest, {
  4310. className: classes.grid + " " + className
  4311. }), children);
  4312. }
  4313. GridContainer.defaultProps = {
  4314. className: ""
  4315. };
  4316. /***/ }),
  4317. /***/ "n1EF":
  4318. /***/ (function(module, exports) {
  4319. module.exports = require("@material-ui/core/SnackbarContent");
  4320. /***/ }),
  4321. /***/ "nOHt":
  4322. /***/ (function(module, exports, __webpack_require__) {
  4323. "use strict";
  4324. var _interopRequireWildcard = __webpack_require__("7KCV");
  4325. var _interopRequireDefault = __webpack_require__("AroE");
  4326. exports.__esModule = true;
  4327. exports.useRouter = useRouter;
  4328. exports.makePublicRouterInstance = makePublicRouterInstance;
  4329. exports.createRouter = exports.withRouter = exports.default = void 0;
  4330. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  4331. var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
  4332. exports.Router = _router2.default;
  4333. exports.NextRouter = _router2.NextRouter;
  4334. var _routerContext = __webpack_require__("Osoz");
  4335. var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
  4336. exports.withRouter = _withRouter.default;
  4337. /* global window */
  4338. var singletonRouter = {
  4339. router: null,
  4340. // holds the actual router instance
  4341. readyCallbacks: [],
  4342. ready(cb) {
  4343. if (this.router) return cb();
  4344. if (false) {}
  4345. }
  4346. }; // Create public properties and methods of the router in the singletonRouter
  4347. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  4348. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  4349. 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
  4350. Object.defineProperty(singletonRouter, 'events', {
  4351. get() {
  4352. return _router2.default.events;
  4353. }
  4354. });
  4355. urlPropertyFields.forEach(field => {
  4356. // Here we need to use Object.defineProperty because, we need to return
  4357. // the property assigned to the actual router
  4358. // The value might get changed as we change routes and this is the
  4359. // proper way to access it
  4360. Object.defineProperty(singletonRouter, field, {
  4361. get() {
  4362. var router = getRouter();
  4363. return router[field];
  4364. }
  4365. });
  4366. });
  4367. coreMethodFields.forEach(field => {
  4368. // We don't really know the types here, so we add them later instead
  4369. ;
  4370. singletonRouter[field] = function () {
  4371. var router = getRouter();
  4372. return router[field](...arguments);
  4373. };
  4374. });
  4375. routerEvents.forEach(event => {
  4376. singletonRouter.ready(() => {
  4377. _router2.default.events.on(event, function () {
  4378. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  4379. var _singletonRouter = singletonRouter;
  4380. if (_singletonRouter[eventField]) {
  4381. try {
  4382. _singletonRouter[eventField](...arguments);
  4383. } catch (err) {
  4384. // tslint:disable-next-line:no-console
  4385. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  4386. console.error(err.message + "\n" + err.stack);
  4387. }
  4388. }
  4389. });
  4390. });
  4391. });
  4392. function getRouter() {
  4393. if (!singletonRouter.router) {
  4394. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  4395. throw new Error(message);
  4396. }
  4397. return singletonRouter.router;
  4398. } // Export the singletonRouter and this is the public API.
  4399. var _default = singletonRouter; // Reexport the withRoute HOC
  4400. exports.default = _default;
  4401. function useRouter() {
  4402. return _react.default.useContext(_routerContext.RouterContext);
  4403. } // INTERNAL APIS
  4404. // -------------
  4405. // (do not use following exports inside the app)
  4406. // Create a router and assign it as the singleton instance.
  4407. // This is used in client side when we are initilizing the app.
  4408. // This should **not** use inside the server.
  4409. var createRouter = function createRouter() {
  4410. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  4411. args[_key] = arguments[_key];
  4412. }
  4413. singletonRouter.router = new _router2.default(...args);
  4414. singletonRouter.readyCallbacks.forEach(cb => cb());
  4415. singletonRouter.readyCallbacks = [];
  4416. return singletonRouter.router;
  4417. }; // This function is used to create the `withRouter` router instance
  4418. exports.createRouter = createRouter;
  4419. function makePublicRouterInstance(router) {
  4420. var _router = router;
  4421. var instance = {};
  4422. for (var property of urlPropertyFields) {
  4423. if (typeof _router[property] === 'object') {
  4424. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  4425. continue;
  4426. }
  4427. instance[property] = _router[property];
  4428. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  4429. instance.events = _router2.default.events;
  4430. coreMethodFields.forEach(field => {
  4431. instance[field] = function () {
  4432. return _router[field](...arguments);
  4433. };
  4434. });
  4435. return instance;
  4436. }
  4437. /***/ }),
  4438. /***/ "nybW":
  4439. /***/ (function(module, exports) {
  4440. module.exports = require("@material-ui/core/Divider");
  4441. /***/ }),
  4442. /***/ "oLCs":
  4443. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4444. "use strict";
  4445. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  4446. const footerStyle = {
  4447. block: {
  4448. color: "inherit",
  4449. padding: "0.9375rem",
  4450. fontWeight: "500",
  4451. fontSize: "12px",
  4452. textTransform: "uppercase",
  4453. borderRadius: "3px",
  4454. textDecoration: "none",
  4455. position: "relative",
  4456. display: "block"
  4457. },
  4458. left: {
  4459. float: "left!important",
  4460. display: "block"
  4461. },
  4462. right: {
  4463. padding: "15px 0",
  4464. margin: "0",
  4465. float: "right!important"
  4466. },
  4467. footer: {
  4468. padding: "0.9375rem 0",
  4469. textAlign: "center",
  4470. display: "flex",
  4471. zIndex: "2",
  4472. position: "relative"
  4473. },
  4474. a: {
  4475. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* primaryColor */ "p"],
  4476. textDecoration: "none",
  4477. backgroundColor: "transparent"
  4478. },
  4479. footerWhiteFont: {
  4480. "&,&:hover,&:focus": {
  4481. color: "#FFFFFF"
  4482. }
  4483. },
  4484. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  4485. list: {
  4486. marginBottom: "0",
  4487. padding: "0",
  4488. marginTop: "0"
  4489. },
  4490. inlineBlock: {
  4491. display: "inline-block",
  4492. padding: "0px",
  4493. width: "auto"
  4494. },
  4495. icon: {
  4496. width: "18px",
  4497. height: "18px",
  4498. position: "relative",
  4499. top: "3px"
  4500. }
  4501. };
  4502. /* harmony default export */ __webpack_exports__["a"] = (footerStyle);
  4503. /***/ }),
  4504. /***/ "orDh":
  4505. /***/ (function(module, exports) {
  4506. module.exports = "/_next/static/images/dekstop_pandemi-d7beff3bb7a1936b9ec2e925a2fb4345.jpg";
  4507. /***/ }),
  4508. /***/ "qt1I":
  4509. /***/ (function(module, exports) {
  4510. module.exports = require("@material-ui/core/Paper");
  4511. /***/ }),
  4512. /***/ "rf6O":
  4513. /***/ (function(module, exports) {
  4514. module.exports = require("prop-types");
  4515. /***/ }),
  4516. /***/ "tBFs":
  4517. /***/ (function(module, exports) {
  4518. module.exports = require("@material-ui/core/Input");
  4519. /***/ }),
  4520. /***/ "um8N":
  4521. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4522. "use strict";
  4523. // EXPORTS
  4524. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomInput; });
  4525. // EXTERNAL MODULE: external "react"
  4526. var external_react_ = __webpack_require__("cDcd");
  4527. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  4528. // EXTERNAL MODULE: external "classnames"
  4529. var external_classnames_ = __webpack_require__("K2gz");
  4530. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  4531. // EXTERNAL MODULE: external "@material-ui/core/styles"
  4532. var styles_ = __webpack_require__("9Pu4");
  4533. // EXTERNAL MODULE: external "@material-ui/core/FormControl"
  4534. var FormControl_ = __webpack_require__("lWoh");
  4535. var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
  4536. // EXTERNAL MODULE: external "@material-ui/core/InputLabel"
  4537. var InputLabel_ = __webpack_require__("zOcm");
  4538. var InputLabel_default = /*#__PURE__*/__webpack_require__.n(InputLabel_);
  4539. // EXTERNAL MODULE: external "@material-ui/core/Input"
  4540. var Input_ = __webpack_require__("tBFs");
  4541. var Input_default = /*#__PURE__*/__webpack_require__.n(Input_);
  4542. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  4543. var nextjs_material_kit = __webpack_require__("eDSW");
  4544. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customInputStyle.js
  4545. 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; }
  4546. 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; }
  4547. 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; }
  4548. const customInputStyle = {
  4549. disabled: {
  4550. "&:before": {
  4551. borderColor: "transparent !important"
  4552. }
  4553. },
  4554. underline: {
  4555. "&:hover:not($disabled):before,&:before": {
  4556. borderColor: "#D2D2D2 !important",
  4557. borderWidth: "1px !important"
  4558. },
  4559. "&:after": {
  4560. borderColor: nextjs_material_kit["p" /* primaryColor */]
  4561. }
  4562. },
  4563. underlineError: {
  4564. "&:after": {
  4565. borderColor: nextjs_material_kit["f" /* dangerColor */]
  4566. }
  4567. },
  4568. underlineSuccess: {
  4569. "&:after": {
  4570. borderColor: nextjs_material_kit["u" /* successColor */]
  4571. }
  4572. },
  4573. whiteUnderline: {
  4574. "&:hover:not($disabled):before,&:before": {
  4575. borderColor: "#FFFFFF"
  4576. },
  4577. "&:after": {
  4578. borderColor: "#FFFFFF"
  4579. }
  4580. },
  4581. labelRoot: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  4582. color: "#AAAAAA !important",
  4583. fontWeight: "400",
  4584. fontSize: "14px",
  4585. lineHeight: "1.42857",
  4586. top: "10px",
  4587. letterSpacing: "unset",
  4588. "& + $underline": {
  4589. marginTop: "0px"
  4590. }
  4591. }),
  4592. labelRootError: {
  4593. color: nextjs_material_kit["f" /* dangerColor */] + " !important"
  4594. },
  4595. labelRootSuccess: {
  4596. color: nextjs_material_kit["u" /* successColor */] + " !important"
  4597. },
  4598. formControl: {
  4599. margin: "0 0 17px 0",
  4600. paddingTop: "27px",
  4601. position: "relative",
  4602. "& svg,& .fab,& .far,& .fal,& .fas,& .material-icons": {
  4603. color: "#495057"
  4604. }
  4605. },
  4606. input: {
  4607. color: "#495057",
  4608. height: "unset",
  4609. "&,&::placeholder": {
  4610. fontSize: "14px",
  4611. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  4612. fontWeight: "400",
  4613. lineHeight: "1.42857",
  4614. opacity: "1"
  4615. },
  4616. "&::placeholder": {
  4617. color: "#AAAAAA"
  4618. }
  4619. },
  4620. whiteInput: {
  4621. "&,&::placeholder": {
  4622. color: "#FFFFFF",
  4623. opacity: "1"
  4624. }
  4625. }
  4626. };
  4627. /* harmony default export */ var components_customInputStyle = (customInputStyle);
  4628. // CONCATENATED MODULE: ./components/CustomInput/CustomInput.js
  4629. var __jsx = external_react_default.a.createElement;
  4630. 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); }
  4631. // nodejs library to set properties for components
  4632. // nodejs library that concatenates classes
  4633. // @material-ui/core components
  4634. const useStyles = Object(styles_["makeStyles"])(components_customInputStyle);
  4635. function CustomInput(props) {
  4636. const classes = useStyles();
  4637. const {
  4638. formControlProps,
  4639. labelText,
  4640. id,
  4641. labelProps,
  4642. inputProps,
  4643. error,
  4644. white,
  4645. inputRootCustomClasses,
  4646. success
  4647. } = props;
  4648. const labelClasses = external_classnames_default()({
  4649. [" " + classes.labelRootError]: error,
  4650. [" " + classes.labelRootSuccess]: success && !error
  4651. });
  4652. const underlineClasses = external_classnames_default()({
  4653. [classes.underlineError]: error,
  4654. [classes.underlineSuccess]: success && !error,
  4655. [classes.underline]: true,
  4656. [classes.whiteUnderline]: white
  4657. });
  4658. const marginTop = external_classnames_default()({
  4659. [inputRootCustomClasses]: inputRootCustomClasses !== undefined
  4660. });
  4661. const inputClasses = external_classnames_default()({
  4662. [classes.input]: true,
  4663. [classes.whiteInput]: white
  4664. });
  4665. var formControlClasses;
  4666. if (formControlProps !== undefined) {
  4667. formControlClasses = external_classnames_default()(formControlProps.className, classes.formControl);
  4668. } else {
  4669. formControlClasses = classes.formControl;
  4670. }
  4671. return __jsx(FormControl_default.a, _extends({}, formControlProps, {
  4672. className: formControlClasses
  4673. }), labelText !== undefined ? __jsx(InputLabel_default.a, _extends({
  4674. className: classes.labelRoot + " " + labelClasses,
  4675. htmlFor: id
  4676. }, labelProps), labelText) : null, __jsx(Input_default.a, _extends({
  4677. classes: {
  4678. input: inputClasses,
  4679. root: marginTop,
  4680. disabled: classes.disabled,
  4681. underline: underlineClasses
  4682. },
  4683. id: id
  4684. }, inputProps)));
  4685. }
  4686. /***/ }),
  4687. /***/ "vtRj":
  4688. /***/ (function(module, exports) {
  4689. module.exports = require("react-select");
  4690. /***/ }),
  4691. /***/ "x54t":
  4692. /***/ (function(module, exports) {
  4693. module.exports = require("@material-ui/core/MenuItem");
  4694. /***/ }),
  4695. /***/ "xmQw":
  4696. /***/ (function(module, exports) {
  4697. module.exports = require("@material-ui/core/MenuList");
  4698. /***/ }),
  4699. /***/ "yFMe":
  4700. /***/ (function(module, exports) {
  4701. module.exports = require("@material-ui/icons/People");
  4702. /***/ }),
  4703. /***/ "z+8S":
  4704. /***/ (function(module, exports) {
  4705. module.exports = require("@apollo/client");
  4706. /***/ }),
  4707. /***/ "zOcm":
  4708. /***/ (function(module, exports) {
  4709. module.exports = require("@material-ui/core/InputLabel");
  4710. /***/ })
  4711. /******/ });