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.
 
 

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