Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

4628 rindas
148 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 = 30);
  92. /******/ })
  93. /************************************************************************/
  94. /******/ ({
  95. /***/ "/jkW":
  96. /***/ (function(module, exports, __webpack_require__) {
  97. "use strict";
  98. Object.defineProperty(exports, "__esModule", {
  99. value: true
  100. }); // Identify /[param]/ in route string
  101. const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/;
  102. function isDynamicRoute(route) {
  103. return TEST_ROUTE.test(route);
  104. }
  105. exports.isDynamicRoute = isDynamicRoute;
  106. /***/ }),
  107. /***/ "0Az+":
  108. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  109. "use strict";
  110. // ESM COMPAT FLAG
  111. __webpack_require__.r(__webpack_exports__);
  112. // EXPORTS
  113. __webpack_require__.d(__webpack_exports__, "getServerSideProps", function() { return /* binding */ getServerSideProps; });
  114. // EXTERNAL MODULE: external "react"
  115. var external_react_ = __webpack_require__("cDcd");
  116. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  117. // EXTERNAL MODULE: external "classnames"
  118. var external_classnames_ = __webpack_require__("K2gz");
  119. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  120. // EXTERNAL MODULE: external "@material-ui/core/styles"
  121. var styles_ = __webpack_require__("9Pu4");
  122. // EXTERNAL MODULE: ./components/Header/Header.js + 1 modules
  123. var Header = __webpack_require__("8x5e");
  124. // EXTERNAL MODULE: ./components/Header/HeaderLinks.js
  125. var HeaderLinks = __webpack_require__("8E12");
  126. // EXTERNAL MODULE: ./components/Footer/Footer.js
  127. var Footer = __webpack_require__("HXcA");
  128. // EXTERNAL MODULE: external "react-html-parser"
  129. var external_react_html_parser_ = __webpack_require__("gifY");
  130. var external_react_html_parser_default = /*#__PURE__*/__webpack_require__.n(external_react_html_parser_);
  131. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  132. var GridContainer = __webpack_require__("mtPR");
  133. // EXTERNAL MODULE: external "@material-ui/core/Grid"
  134. var Grid_ = __webpack_require__("JQ2V");
  135. var Grid_default = /*#__PURE__*/__webpack_require__.n(Grid_);
  136. // EXTERNAL MODULE: ./components/Grid/GridItem.js
  137. var GridItem = __webpack_require__("i4t8");
  138. // EXTERNAL MODULE: ./components/Card/Card.js + 1 modules
  139. var Card = __webpack_require__("A2So");
  140. // EXTERNAL MODULE: external "react-slick"
  141. var external_react_slick_ = __webpack_require__("O/hg");
  142. var external_react_slick_default = /*#__PURE__*/__webpack_require__.n(external_react_slick_);
  143. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js
  144. var notificationsStyles = __webpack_require__("7WNa");
  145. // CONCATENATED MODULE: ./pages-sections/yamaha/carrer/carrer_details.js
  146. var __jsx = external_react_default.a.createElement;
  147. 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; }
  148. 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; }
  149. const useStyles = Object(styles_["makeStyles"])(notificationsStyles["a" /* default */]);
  150. const DataCarrer = function (_ref) {
  151. let {
  152. backend,
  153. detailcarrer
  154. } = _ref,
  155. props = _objectWithoutProperties(_ref, ["backend", "detailcarrer"]);
  156. const classes = useStyles();
  157. const imageClasses = external_classnames_default()(classes.imgRaised, classes.imgRoundedCircle, classes.imgFluid);
  158. const settings = {
  159. dots: true,
  160. infinite: true,
  161. speed: 500,
  162. slidesToShow: 1,
  163. slidesToScroll: 1,
  164. autoplay: true,
  165. time: 5
  166. };
  167. const navImageClasses = external_classnames_default()(classes.imgRounded, classes.imgGallery);
  168. const carrer = detailcarrer.map(data => {
  169. return __jsx(GridContainer["a" /* default */], {
  170. justify: "center"
  171. }, __jsx(Grid_default.a, {
  172. fluid: true,
  173. xs: 4
  174. }, __jsx("div", {
  175. className: classes.section,
  176. id: "notifications"
  177. }, __jsx("div", {
  178. className: classes.section
  179. }, __jsx("div", {
  180. className: classes.container
  181. }, __jsx(GridContainer["a" /* default */], null, __jsx(GridItem["a" /* default */], {
  182. className: classes.marginAuto
  183. }, __jsx(Card["a" /* default */], {
  184. carousel: true
  185. }, __jsx(external_react_slick_default.a, settings, __jsx("img", {
  186. className: navImageClasses,
  187. width: "300px",
  188. alt: "First slide",
  189. src: `${backend}${data.img[0]["url"]}`
  190. }))))))))), __jsx(Grid_default.a, {
  191. xs: 7,
  192. style: {
  193. padding: "40px",
  194. marginTop: "-30px"
  195. }
  196. }, __jsx("h4", null, data.name), __jsx("h4", null, data.published_at), __jsx("hr", null), __jsx("div", {
  197. align: "justify"
  198. }, __jsx("p", null, external_react_html_parser_default()(data.description)))));
  199. });
  200. return __jsx("div", null, carrer);
  201. };
  202. /* harmony default export */ var carrer_details = (DataCarrer);
  203. // EXTERNAL MODULE: ./components/Parallax/Parallax.js + 1 modules
  204. var Parallax = __webpack_require__("Z2Lm");
  205. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/components.js
  206. var components = __webpack_require__("bhG4");
  207. // EXTERNAL MODULE: ./api/carrer/carrer.js
  208. var carrer_carrer = __webpack_require__("940a");
  209. var carrer_default = /*#__PURE__*/__webpack_require__.n(carrer_carrer);
  210. // CONCATENATED MODULE: ./pages/yamaha/carrer_details.js
  211. var carrer_details_jsx = external_react_default.a.createElement;
  212. 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); }
  213. function carrer_details_objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = carrer_details_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; }
  214. function carrer_details_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; }
  215. const carrer_details_useStyles = Object(styles_["makeStyles"])(components["a" /* default */]);
  216. const CarrerDetails = function (_ref) {
  217. let {
  218. backend,
  219. detailcarrer
  220. } = _ref,
  221. props = carrer_details_objectWithoutProperties(_ref, ["backend", "detailcarrer"]);
  222. const classes = carrer_details_useStyles();
  223. const rest = Object.assign({}, props);
  224. return carrer_details_jsx("div", null, carrer_details_jsx(Header["a" /* default */], _extends({
  225. rightLinks: carrer_details_jsx(HeaderLinks["a" /* default */], null),
  226. fixed: true,
  227. color: "info",
  228. changeColorOnScroll: {
  229. height: 400,
  230. color: "white"
  231. }
  232. }, rest)), carrer_details_jsx(Parallax["a" /* default */], {
  233. image: __webpack_require__("F+sf"),
  234. height: "50px"
  235. }), carrer_details_jsx("div", {
  236. className: external_classnames_default()(classes.main, classes.mainRaised)
  237. }, carrer_details_jsx(carrer_details, {
  238. detailcarrer: detailcarrer,
  239. backend: backend
  240. })), carrer_details_jsx(Footer["a" /* default */], null));
  241. };
  242. /* harmony default export */ var yamaha_carrer_details = __webpack_exports__["default"] = (CarrerDetails);
  243. async function getServerSideProps(context) {
  244. var {
  245. query
  246. } = context;
  247. var detailcarrer = [];
  248. const backend = process.env.BACKEND_SERVER_URI;
  249. var res = await carrer_default.a.GetDetailCarrer(query.s || 0);
  250. if (res["STATUS"] === 1) {
  251. detailcarrer = res["DATA"]["carrers"];
  252. }
  253. console.log(res);
  254. return {
  255. props: {
  256. detailcarrer,
  257. backend
  258. } // will be passed to the page component as props
  259. };
  260. }
  261. /***/ }),
  262. /***/ "0Bsm":
  263. /***/ (function(module, exports, __webpack_require__) {
  264. "use strict";
  265. var _interopRequireDefault = __webpack_require__("AroE");
  266. exports.__esModule = true;
  267. exports.default = withRouter;
  268. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  269. var _router = __webpack_require__("nOHt");
  270. function withRouter(ComposedComponent) {
  271. function WithRouterWrapper(props) {
  272. return _react.default.createElement(ComposedComponent, Object.assign({
  273. router: (0, _router.useRouter)()
  274. }, props));
  275. }
  276. WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps // This is needed to allow checking for custom getInitialProps in _app
  277. ;
  278. WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
  279. if (false) { var name; }
  280. return WithRouterWrapper;
  281. }
  282. /***/ }),
  283. /***/ "0G1C":
  284. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  285. "use strict";
  286. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  287. var nextjs_material_kit = __webpack_require__("eDSW");
  288. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/tooltipsStyle.js
  289. const tooltipsStyle = {
  290. tooltip: {
  291. padding: "10px 15px",
  292. minWidth: "130px",
  293. color: "#555555",
  294. lineHeight: "1.7em",
  295. background: "#FFFFFF",
  296. border: "none",
  297. borderRadius: "3px",
  298. 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)",
  299. maxWidth: "200px",
  300. textAlign: "center",
  301. fontFamily: '"Helvetica Neue",Helvetica,Arial,sans-serif',
  302. fontSize: "0.875em",
  303. fontStyle: "normal",
  304. fontWeight: "400",
  305. textShadow: "none",
  306. textTransform: "none",
  307. letterSpacing: "normal",
  308. wordBreak: "normal",
  309. wordSpacing: "normal",
  310. wordWrap: "normal",
  311. whiteSpace: "normal",
  312. lineBreak: "auto"
  313. }
  314. };
  315. /* harmony default export */ var nextjs_material_kit_tooltipsStyle = (tooltipsStyle);
  316. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/headerLinksStyle.js
  317. 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; }
  318. 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; }
  319. 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; }
  320. const headerLinksStyle = theme => _objectSpread({
  321. list: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  322. fontSize: "14px",
  323. margin: 0,
  324. paddingLeft: "0",
  325. listStyle: "none",
  326. paddingTop: "0",
  327. paddingBottom: "0",
  328. color: "inherit"
  329. }),
  330. listItem: {
  331. float: "left",
  332. color: "inherit",
  333. position: "relative",
  334. display: "block",
  335. width: "auto",
  336. margin: "0",
  337. padding: "0",
  338. [theme.breakpoints.down("sm")]: {
  339. width: "100%",
  340. "&:after": {
  341. width: "calc(100% - 30px)",
  342. content: '""',
  343. display: "block",
  344. height: "1px",
  345. marginLeft: "15px",
  346. backgroundColor: "#e5e5e5"
  347. }
  348. }
  349. },
  350. listItemText: {
  351. padding: "0 !important"
  352. },
  353. navLink: {
  354. color: "inherit",
  355. position: "relative",
  356. padding: "0.9375rem",
  357. fontWeight: "400",
  358. fontSize: "12px",
  359. textTransform: "uppercase",
  360. borderRadius: "3px",
  361. lineHeight: "20px",
  362. textDecoration: "none",
  363. margin: "0px",
  364. display: "inline-flex",
  365. "&:hover,&:focus": {
  366. color: "inherit",
  367. background: "rgba(200, 200, 200, 0.2)"
  368. },
  369. [theme.breakpoints.down("sm")]: {
  370. width: "calc(100% - 30px)",
  371. marginLeft: "15px",
  372. marginBottom: "8px",
  373. marginTop: "8px",
  374. textAlign: "left",
  375. "& > span:first-child": {
  376. justifyContent: "flex-start"
  377. }
  378. }
  379. },
  380. notificationNavLink: {
  381. [theme.breakpoints.down("md")]: {
  382. top: "0",
  383. margin: "5px 15px"
  384. },
  385. color: "#FFF",
  386. padding: "0.9375rem",
  387. fontWeight: "400",
  388. fontSize: "12px",
  389. textTransform: "uppercase",
  390. lineHeight: "20px",
  391. textDecoration: "none",
  392. margin: "0px",
  393. display: "inline-flex",
  394. top: "4px"
  395. },
  396. registerNavLink: {
  397. [theme.breakpoints.down("md")]: {
  398. top: "0",
  399. margin: "5px 15px"
  400. },
  401. top: "3px",
  402. position: "relative",
  403. fontWeight: "400",
  404. fontSize: "12px",
  405. textTransform: "uppercase",
  406. lineHeight: "20px",
  407. textDecoration: "none",
  408. margin: "0px",
  409. display: "inline-flex"
  410. },
  411. navLinkActive: {
  412. color: "inherit",
  413. backgroundColor: "rgba(255, 255, 255, 0.1)"
  414. },
  415. icons: {
  416. width: "20px",
  417. height: "20px",
  418. marginRight: "3px"
  419. },
  420. socialIcons: {
  421. position: "relative",
  422. fontSize: "20px !important",
  423. marginRight: "4px"
  424. },
  425. dropdownLink: {
  426. "&,&:hover,&:focus": {
  427. color: "inherit",
  428. textDecoration: "none",
  429. display: "block",
  430. padding: "10px 20px"
  431. }
  432. }
  433. }, nextjs_material_kit_tooltipsStyle, {
  434. marginRight5: {
  435. marginRight: "5px"
  436. }
  437. });
  438. /* harmony default export */ var components_headerLinksStyle = __webpack_exports__["a"] = (headerLinksStyle);
  439. /***/ }),
  440. /***/ "0LMq":
  441. /***/ (function(module, exports) {
  442. module.exports = require("@material-ui/core/List");
  443. /***/ }),
  444. /***/ "2kat":
  445. /***/ (function(module, exports) {
  446. module.exports = require("@material-ui/icons");
  447. /***/ }),
  448. /***/ 30:
  449. /***/ (function(module, exports, __webpack_require__) {
  450. module.exports = __webpack_require__("0Az+");
  451. /***/ }),
  452. /***/ "31Yn":
  453. /***/ (function(module, exports) {
  454. module.exports = require("@material-ui/core/ClickAwayListener");
  455. /***/ }),
  456. /***/ "3REV":
  457. /***/ (function(module, exports) {
  458. module.exports = require("@material-ui/icons/LocalGroceryStore");
  459. /***/ }),
  460. /***/ "4151":
  461. /***/ (function(module, exports) {
  462. module.exports = require("@material-ui/core/AppBar");
  463. /***/ }),
  464. /***/ "4D1s":
  465. /***/ (function(module, exports) {
  466. module.exports = require("@material-ui/icons/Menu");
  467. /***/ }),
  468. /***/ "7KCV":
  469. /***/ (function(module, exports, __webpack_require__) {
  470. var _typeof = __webpack_require__("C+bE");
  471. function _getRequireWildcardCache() {
  472. if (typeof WeakMap !== "function") return null;
  473. var cache = new WeakMap();
  474. _getRequireWildcardCache = function _getRequireWildcardCache() {
  475. return cache;
  476. };
  477. return cache;
  478. }
  479. function _interopRequireWildcard(obj) {
  480. if (obj && obj.__esModule) {
  481. return obj;
  482. }
  483. if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
  484. return {
  485. "default": obj
  486. };
  487. }
  488. var cache = _getRequireWildcardCache();
  489. if (cache && cache.has(obj)) {
  490. return cache.get(obj);
  491. }
  492. var newObj = {};
  493. var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  494. for (var key in obj) {
  495. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  496. var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
  497. if (desc && (desc.get || desc.set)) {
  498. Object.defineProperty(newObj, key, desc);
  499. } else {
  500. newObj[key] = obj[key];
  501. }
  502. }
  503. }
  504. newObj["default"] = obj;
  505. if (cache) {
  506. cache.set(obj, newObj);
  507. }
  508. return newObj;
  509. }
  510. module.exports = _interopRequireWildcard;
  511. /***/ }),
  512. /***/ "7WNa":
  513. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  514. "use strict";
  515. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  516. 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; }
  517. 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; }
  518. 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; }
  519. const notificationsStyles = {
  520. section: {
  521. backgroundColor: "#FFFFFF",
  522. display: "block",
  523. width: "100%",
  524. position: "relative",
  525. padding: "0"
  526. },
  527. title: _objectSpread({}, assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* title */ "v"], {
  528. marginTop: "30px",
  529. minHeight: "32px",
  530. textDecoration: "none"
  531. }),
  532. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"]
  533. };
  534. /* harmony default export */ __webpack_exports__["a"] = (notificationsStyles);
  535. /***/ }),
  536. /***/ "7vM9":
  537. /***/ (function(module, exports) {
  538. module.exports = require("@material-ui/core/Icon");
  539. /***/ }),
  540. /***/ "8//M":
  541. /***/ (function(module, exports) {
  542. module.exports = require("@material-ui/core/styles/makeStyles");
  543. /***/ }),
  544. /***/ "8E12":
  545. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  546. "use strict";
  547. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HeaderLinks; });
  548. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  549. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  550. /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("YFqc");
  551. /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_1__);
  552. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("9Pu4");
  553. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__);
  554. /* harmony import */ var _material_ui_core_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("0LMq");
  555. /* harmony import */ var _material_ui_core_List__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_List__WEBPACK_IMPORTED_MODULE_3__);
  556. /* harmony import */ var _material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("c25J");
  557. /* harmony import */ var _material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4__);
  558. /* harmony import */ var _material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("7vM9");
  559. /* harmony import */ var _material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5__);
  560. /* harmony import */ var _material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("3REV");
  561. /* harmony import */ var _material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6__);
  562. /* harmony import */ var _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("2kat");
  563. /* harmony import */ var _material_ui_icons__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons__WEBPACK_IMPORTED_MODULE_7__);
  564. /* harmony import */ var components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("QOEo");
  565. /* harmony import */ var components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("Kg+a");
  566. /* harmony import */ var assets_jss_nextjs_material_kit_components_headerLinksStyle_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("0G1C");
  567. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  568. /*eslint-disable*/
  569. // @material-ui/core components
  570. // @material-ui/icons
  571. // core components
  572. 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"]);
  573. function HeaderLinks(props) {
  574. const classes = useStyles();
  575. return __jsx(_material_ui_core_List__WEBPACK_IMPORTED_MODULE_3___default.a, {
  576. className: classes.list
  577. }, __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  578. className: classes.listItem
  579. }, __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  580. href: "/yamaha/home"
  581. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  582. color: "transparent",
  583. className: classes.navLink
  584. }, __jsx("img", {
  585. src: "https://1.bp.blogspot.com/-J9AsxdwrF-Y/Wn70KyBApaI/AAAAAAAACRo/LTy3zrALzhckryd9QPi_KuVyWvwFMZyMQCLcBGAs/s640/TG.png",
  586. width: "180px"
  587. })))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  588. className: classes.listItem
  589. }, __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  590. href: "/yamaha/home"
  591. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  592. color: "transparent",
  593. className: classes.navLink,
  594. style: {
  595. marginTop: "10px"
  596. }
  597. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  598. className: classes.icons
  599. }, "home"), " Home"))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  600. className: classes.listItem,
  601. style: {
  602. marginTop: "10px"
  603. }
  604. }, __jsx(components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], {
  605. noLiPadding: true,
  606. navDropdown: true,
  607. buttonText: "Product",
  608. buttonProps: {
  609. className: classes.navLink,
  610. color: "transparent"
  611. },
  612. buttonIcon: _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__["Apps"],
  613. dropdownList: [__jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  614. href: "/yamaha/product/product"
  615. }, __jsx("a", {
  616. className: classes.dropdownLink
  617. }, "Motor")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  618. href: "/yamaha/product/ygp"
  619. }, __jsx("a", {
  620. className: classes.dropdownLink
  621. }, "YGP")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  622. href: "/yamaha/product/yamalube"
  623. }, __jsx("a", {
  624. className: classes.dropdownLink
  625. }, "Yamalube")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  626. href: "/yamaha/product/helmet"
  627. }, __jsx("a", {
  628. className: classes.dropdownLink
  629. }, "Helmet")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  630. href: "/yamaha/product/apparel"
  631. }, __jsx("a", {
  632. className: classes.dropdownLink
  633. }, "Apparel")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  634. href: "/yamaha/product/accessories"
  635. }, __jsx("a", {
  636. className: classes.dropdownLink
  637. }, "Accessories")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  638. href: "https://booking.thamrin.co.id/"
  639. }, __jsx("a", {
  640. className: classes.dropdownLink
  641. }, "Service")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  642. href: "/yamaha/dealers"
  643. }, __jsx("a", {
  644. className: classes.dropdownLink
  645. }, "Dealers"))]
  646. })), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  647. className: classes.listItem,
  648. style: {
  649. marginTop: "10px"
  650. }
  651. }, __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  652. href: "/yamaha/latestnews"
  653. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  654. color: "transparent",
  655. className: classes.navLink
  656. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  657. className: classes.icons
  658. }, "event"), " Latest News"))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  659. className: classes.listItem,
  660. style: {
  661. marginTop: "10px"
  662. }
  663. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  664. href: "/yamaha/carrer",
  665. color: "transparent",
  666. className: classes.navLink
  667. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  668. className: classes.icons
  669. }, "wallet_travel"), " Career")), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  670. className: classes.listItem,
  671. style: {
  672. marginTop: "10px"
  673. }
  674. }, __jsx(components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], {
  675. noLiPadding: true,
  676. navDropdown: true,
  677. buttonText: "Partner",
  678. buttonProps: {
  679. className: classes.navLink,
  680. color: "transparent"
  681. },
  682. buttonIcon: _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__["ShareTwoTone"],
  683. dropdownList: [__jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  684. href: "https://www.yamaha-motor.co.id/"
  685. }, __jsx("a", {
  686. className: classes.dropdownLink
  687. }, "Yamaha")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  688. href: "https://www.suzuki.co.id/"
  689. }, __jsx("a", {
  690. className: classes.dropdownLink
  691. }, "Suzuki")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  692. href: "https://www.honda-indonesia.com/"
  693. }, __jsx("a", {
  694. className: classes.dropdownLink
  695. }, "Honda")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  696. href: "https://www.hino.co.id/"
  697. }, __jsx("a", {
  698. className: classes.dropdownLink
  699. }, "Hino")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  700. href: "https://www.mercedes-benz.co.id/passengercars.html"
  701. }, __jsx("a", {
  702. className: classes.dropdownLink
  703. }, "Mercedes-Benz")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  704. href: "http://bprberkatsejati.com/"
  705. }, __jsx("a", {
  706. className: classes.dropdownLink
  707. }, "BPR Berkat Sejati")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  708. href: "https://www.hino.co.id/"
  709. }, __jsx("a", {
  710. className: classes.dropdownLink
  711. }, "Palembang Indah Mall")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  712. href: "http://www.emilia-hotel.com/"
  713. }, __jsx("a", {
  714. className: classes.dropdownLink
  715. }, "Hotel Emilia")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  716. href: "http://homes.thamrin.xyz/"
  717. }, __jsx("a", {
  718. className: classes.dropdownLink
  719. }, "Thamrin Home")), __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  720. href: "https://www.hino.co.id/"
  721. }, __jsx("a", {
  722. className: classes.dropdownLink
  723. }, "Ketty Resto"))]
  724. })), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  725. className: classes.listItem,
  726. style: {
  727. marginTop: "10px"
  728. }
  729. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  730. href: "/yamaha/abous_us/aboutus",
  731. color: "transparent",
  732. className: classes.navLink
  733. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  734. className: classes.icons
  735. }, "account_balance"), " About Us")), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  736. className: classes.listItem,
  737. style: {
  738. marginTop: "10px"
  739. }
  740. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  741. href: "/chart",
  742. color: "transparent",
  743. className: classes.navLink
  744. }, __jsx(_material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6___default.a, {
  745. className: classes.icons
  746. }))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  747. className: classes.listItem,
  748. style: {
  749. marginTop: "10px"
  750. }
  751. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  752. href: "/yamaha/login",
  753. className: classes.registerNavLink,
  754. color: "info",
  755. round: true
  756. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  757. className: classes.icons
  758. }, "input"), " Login")));
  759. }
  760. /***/ }),
  761. /***/ "8x5e":
  762. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  763. "use strict";
  764. // EXPORTS
  765. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Header; });
  766. // EXTERNAL MODULE: external "react"
  767. var external_react_ = __webpack_require__("cDcd");
  768. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  769. // EXTERNAL MODULE: ./node_modules/next/link.js
  770. var next_link = __webpack_require__("YFqc");
  771. var link_default = /*#__PURE__*/__webpack_require__.n(next_link);
  772. // EXTERNAL MODULE: external "classnames"
  773. var external_classnames_ = __webpack_require__("K2gz");
  774. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  775. // EXTERNAL MODULE: external "@material-ui/core/styles"
  776. var styles_ = __webpack_require__("9Pu4");
  777. // EXTERNAL MODULE: external "@material-ui/core/AppBar"
  778. var AppBar_ = __webpack_require__("4151");
  779. var AppBar_default = /*#__PURE__*/__webpack_require__.n(AppBar_);
  780. // EXTERNAL MODULE: external "@material-ui/core/Toolbar"
  781. var Toolbar_ = __webpack_require__("Ms0O");
  782. var Toolbar_default = /*#__PURE__*/__webpack_require__.n(Toolbar_);
  783. // EXTERNAL MODULE: external "@material-ui/core/IconButton"
  784. var IconButton_ = __webpack_require__("EmCc");
  785. var IconButton_default = /*#__PURE__*/__webpack_require__.n(IconButton_);
  786. // EXTERNAL MODULE: external "@material-ui/core/Button"
  787. var Button_ = __webpack_require__("Wh1t");
  788. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  789. // EXTERNAL MODULE: external "@material-ui/core/Hidden"
  790. var Hidden_ = __webpack_require__("Y8uC");
  791. var Hidden_default = /*#__PURE__*/__webpack_require__.n(Hidden_);
  792. // EXTERNAL MODULE: external "@material-ui/core/Drawer"
  793. var Drawer_ = __webpack_require__("Q01v");
  794. var Drawer_default = /*#__PURE__*/__webpack_require__.n(Drawer_);
  795. // EXTERNAL MODULE: external "@material-ui/icons/Menu"
  796. var Menu_ = __webpack_require__("4D1s");
  797. var Menu_default = /*#__PURE__*/__webpack_require__.n(Menu_);
  798. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  799. var nextjs_material_kit = __webpack_require__("eDSW");
  800. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/headerStyle.js
  801. 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; }
  802. 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; }
  803. 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; }
  804. const headerStyle = {
  805. appBar: {
  806. display: "flex",
  807. border: "0",
  808. borderRadius: "3px",
  809. padding: "0.625rem 0",
  810. marginBottom: "20px",
  811. color: "#555",
  812. width: "100%",
  813. backgroundColor: "#fff",
  814. boxShadow: "0 4px 18px 0px rgba(0, 0, 0, 0.12), 0 7px 10px -5px rgba(0, 0, 0, 0.15)",
  815. transition: "all 150ms ease 0s",
  816. alignItems: "center",
  817. flexFlow: "row nowrap",
  818. justifyContent: "flex-start",
  819. position: "relative",
  820. zIndex: "unset"
  821. },
  822. absolute: {
  823. position: "absolute",
  824. zIndex: "1100"
  825. },
  826. fixed: {
  827. position: "fixed",
  828. zIndex: "1100"
  829. },
  830. container: _objectSpread({}, nextjs_material_kit["c" /* container */], {
  831. minHeight: "50px",
  832. flex: "1",
  833. alignItems: "center",
  834. justifyContent: "space-between",
  835. display: "flex",
  836. flexWrap: "nowrap"
  837. }),
  838. flex: {
  839. flex: 1
  840. },
  841. title: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  842. lineHeight: "30px",
  843. fontSize: "18px",
  844. borderRadius: "3px",
  845. textTransform: "none",
  846. color: "inherit",
  847. padding: "8px 16px",
  848. letterSpacing: "unset",
  849. "&:hover,&:focus": {
  850. color: "inherit",
  851. background: "transparent"
  852. }
  853. }),
  854. appResponsive: {
  855. margin: "20px 10px"
  856. },
  857. primary: {
  858. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  859. color: "#FFFFFF",
  860. 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)}`
  861. },
  862. info: {
  863. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  864. color: "#FFFFFF",
  865. 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)}`
  866. },
  867. success: {
  868. backgroundColor: nextjs_material_kit["u" /* successColor */],
  869. color: "#FFFFFF",
  870. 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)}`
  871. },
  872. warning: {
  873. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  874. color: "#FFFFFF",
  875. 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)}`
  876. },
  877. danger: {
  878. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  879. color: "#FFFFFF",
  880. 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)}`
  881. },
  882. rose: {
  883. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  884. color: "#FFFFFF",
  885. 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)}`
  886. },
  887. transparent: {
  888. backgroundColor: "transparent !important",
  889. boxShadow: "none",
  890. paddingTop: "25px",
  891. color: "#FFFFFF"
  892. },
  893. dark: {
  894. color: "#FFFFFF",
  895. backgroundColor: "#212121 !important",
  896. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px rgba(33, 33, 33, 0.46)"
  897. },
  898. white: {
  899. border: "0",
  900. padding: "0.625rem 0",
  901. marginBottom: "20px",
  902. color: "#555",
  903. backgroundColor: "#fff !important",
  904. boxShadow: "0 4px 18px 0px rgba(0, 0, 0, 0.12), 0 7px 10px -5px rgba(0, 0, 0, 0.15)"
  905. },
  906. drawerPaper: _objectSpread({
  907. border: "none",
  908. bottom: "0",
  909. transitionProperty: "top, bottom, width",
  910. transitionDuration: ".2s, .2s, .35s",
  911. transitionTimingFunction: "linear, linear, ease",
  912. width: nextjs_material_kit["h" /* drawerWidth */]
  913. }, nextjs_material_kit["a" /* boxShadow */], {
  914. position: "fixed",
  915. display: "block",
  916. top: "0",
  917. height: "100vh",
  918. right: "0",
  919. left: "auto",
  920. visibility: "visible",
  921. overflowY: "visible",
  922. borderTop: "none",
  923. textAlign: "left",
  924. paddingRight: "0px",
  925. paddingLeft: "0"
  926. }, nextjs_material_kit["w" /* transition */])
  927. };
  928. /* harmony default export */ var components_headerStyle = (headerStyle);
  929. // CONCATENATED MODULE: ./components/Header/Header.js
  930. var __jsx = external_react_default.a.createElement;
  931. // nodejs library that concatenates classes
  932. // nodejs library to set properties for components
  933. // @material-ui/core components
  934. // @material-ui/icons
  935. // core components
  936. const useStyles = Object(styles_["makeStyles"])(components_headerStyle);
  937. function Header(props) {
  938. const classes = useStyles();
  939. const [mobileOpen, setMobileOpen] = external_react_default.a.useState(false);
  940. external_react_default.a.useEffect(() => {
  941. if (props.changeColorOnScroll) {
  942. window.addEventListener("scroll", headerColorChange);
  943. }
  944. return function cleanup() {
  945. if (props.changeColorOnScroll) {
  946. window.removeEventListener("scroll", headerColorChange);
  947. }
  948. };
  949. });
  950. const handleDrawerToggle = () => {
  951. setMobileOpen(!mobileOpen);
  952. };
  953. const headerColorChange = () => {
  954. const {
  955. color,
  956. changeColorOnScroll
  957. } = props;
  958. const windowsScrollTop = window.pageYOffset;
  959. if (windowsScrollTop > changeColorOnScroll.height) {
  960. document.body.getElementsByTagName("header")[0].classList.remove(classes[color]);
  961. document.body.getElementsByTagName("header")[0].classList.add(classes[changeColorOnScroll.color]);
  962. } else {
  963. document.body.getElementsByTagName("header")[0].classList.add(classes[color]);
  964. document.body.getElementsByTagName("header")[0].classList.remove(classes[changeColorOnScroll.color]);
  965. }
  966. };
  967. const {
  968. color,
  969. rightLinks,
  970. leftLinks,
  971. brand,
  972. fixed,
  973. absolute
  974. } = props;
  975. const appBarClasses = external_classnames_default()({
  976. [classes.appBar]: true,
  977. [classes[color]]: color,
  978. [classes.absolute]: absolute,
  979. [classes.fixed]: fixed
  980. });
  981. const brandComponent = __jsx(link_default.a, {
  982. href: "/components",
  983. as: "/components"
  984. }, __jsx(Button_default.a, {
  985. className: classes.title
  986. }, brand));
  987. return __jsx(AppBar_default.a, {
  988. className: appBarClasses
  989. }, __jsx(Toolbar_default.a, {
  990. className: classes.container
  991. }, leftLinks !== undefined ? brandComponent : null, __jsx("div", {
  992. className: classes.flex
  993. }, leftLinks !== undefined ? __jsx(Hidden_default.a, {
  994. smDown: true,
  995. implementation: "css"
  996. }, leftLinks) : brandComponent), __jsx(Hidden_default.a, {
  997. smDown: true,
  998. implementation: "css"
  999. }, rightLinks), __jsx(Hidden_default.a, {
  1000. mdUp: true
  1001. }, __jsx(IconButton_default.a, {
  1002. color: "inherit",
  1003. "aria-label": "open drawer",
  1004. onClick: handleDrawerToggle
  1005. }, __jsx(Menu_default.a, null)))), __jsx(Hidden_default.a, {
  1006. mdUp: true,
  1007. implementation: "js"
  1008. }, __jsx(Drawer_default.a, {
  1009. variant: "temporary",
  1010. anchor: "right",
  1011. open: mobileOpen,
  1012. classes: {
  1013. paper: classes.drawerPaper
  1014. },
  1015. onClose: handleDrawerToggle
  1016. }, __jsx("div", {
  1017. className: classes.appResponsive
  1018. }, leftLinks, rightLinks))));
  1019. }
  1020. Header.defaultProp = {
  1021. color: "black"
  1022. };
  1023. /***/ }),
  1024. /***/ "940a":
  1025. /***/ (function(module, exports, __webpack_require__) {
  1026. "use strict";
  1027. var _apollo = _interopRequireDefault(__webpack_require__("B/3u"));
  1028. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  1029. async function GetCarrerS1(token = "") {
  1030. var res = await _apollo.default.query(`
  1031. query {
  1032. carrers(where: {category: "S1" business_partner: "1"})
  1033. {
  1034. id
  1035. name
  1036. start_regis
  1037. until_regis
  1038. name_description
  1039. }
  1040. }`, token);
  1041. return res;
  1042. }
  1043. async function GetCarrerD3(token = "") {
  1044. var res = await _apollo.default.query(`
  1045. query {
  1046. carrers(where: {category: "D3" business_partner: "1"})
  1047. {
  1048. id
  1049. name
  1050. start_regis
  1051. until_regis
  1052. name_description
  1053. }
  1054. }`, token);
  1055. return res;
  1056. }
  1057. async function GetCarrerSMA(token = "") {
  1058. var res = await _apollo.default.query(`
  1059. query {
  1060. carrers(where: {category: "SMA" business_partner: "1"})
  1061. {
  1062. id
  1063. name
  1064. start_regis
  1065. until_regis
  1066. name_description
  1067. }
  1068. }`, token);
  1069. return res;
  1070. }
  1071. async function GetDetailCarrer(id, token = "") {
  1072. var res = await _apollo.default.query(`
  1073. query($input: ID!){
  1074. carrers(where:{id:$input})
  1075. {
  1076. name
  1077. description
  1078. category
  1079. img{
  1080. url
  1081. }
  1082. start_regis
  1083. until_regis
  1084. name_description
  1085. }
  1086. }
  1087. `, token, {
  1088. "input": id
  1089. });
  1090. return res;
  1091. }
  1092. module.exports = {
  1093. GetCarrerS1: GetCarrerS1,
  1094. GetCarrerD3: GetCarrerD3,
  1095. GetCarrerSMA: GetCarrerSMA,
  1096. GetDetailCarrer: GetDetailCarrer
  1097. };
  1098. /***/ }),
  1099. /***/ "9Pu4":
  1100. /***/ (function(module, exports) {
  1101. module.exports = require("@material-ui/core/styles");
  1102. /***/ }),
  1103. /***/ "A2So":
  1104. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1105. "use strict";
  1106. // EXPORTS
  1107. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Card; });
  1108. // EXTERNAL MODULE: external "react"
  1109. var external_react_ = __webpack_require__("cDcd");
  1110. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1111. // EXTERNAL MODULE: external "classnames"
  1112. var external_classnames_ = __webpack_require__("K2gz");
  1113. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1114. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1115. var styles_ = __webpack_require__("9Pu4");
  1116. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardStyle.js
  1117. const cardStyle = {
  1118. card: {
  1119. border: "0",
  1120. marginBottom: "30px",
  1121. marginTop: "30px",
  1122. borderRadius: "6px",
  1123. color: "rgba(0, 0, 0, 0.87)",
  1124. background: "#fff",
  1125. width: "100%",
  1126. 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)",
  1127. position: "relative",
  1128. display: "flex",
  1129. flexDirection: "column",
  1130. minWidth: "0",
  1131. wordWrap: "break-word",
  1132. fontSize: ".875rem",
  1133. transition: "all 300ms linear"
  1134. },
  1135. cardPlain: {
  1136. background: "transparent",
  1137. boxShadow: "none"
  1138. },
  1139. cardCarousel: {
  1140. overflow: "hidden"
  1141. }
  1142. };
  1143. /* harmony default export */ var components_cardStyle = (cardStyle);
  1144. // CONCATENATED MODULE: ./components/Card/Card.js
  1145. var __jsx = external_react_default.a.createElement;
  1146. 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); }
  1147. 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; }
  1148. 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; }
  1149. // nodejs library that concatenates classes
  1150. // nodejs library to set properties for components
  1151. // @material-ui/core components
  1152. // @material-ui/icons
  1153. // core components
  1154. const useStyles = Object(styles_["makeStyles"])(components_cardStyle);
  1155. function Card(props) {
  1156. const classes = useStyles();
  1157. const {
  1158. className,
  1159. children,
  1160. plain,
  1161. carousel
  1162. } = props,
  1163. rest = _objectWithoutProperties(props, ["className", "children", "plain", "carousel"]);
  1164. const cardClasses = external_classnames_default()({
  1165. [classes.card]: true,
  1166. [classes.cardPlain]: plain,
  1167. [classes.cardCarousel]: carousel,
  1168. [className]: className !== undefined
  1169. });
  1170. return __jsx("div", _extends({
  1171. className: cardClasses
  1172. }, rest), children);
  1173. }
  1174. /***/ }),
  1175. /***/ "AroE":
  1176. /***/ (function(module, exports) {
  1177. function _interopRequireDefault(obj) {
  1178. return obj && obj.__esModule ? obj : {
  1179. "default": obj
  1180. };
  1181. }
  1182. module.exports = _interopRequireDefault;
  1183. /***/ }),
  1184. /***/ "B/3u":
  1185. /***/ (function(module, exports, __webpack_require__) {
  1186. "use strict";
  1187. var _client = __webpack_require__("z+8S");
  1188. var _apolloConfig = _interopRequireDefault(__webpack_require__("bx/+"));
  1189. var _crossFetch = _interopRequireDefault(__webpack_require__("CCqr"));
  1190. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  1191. function initApollo(token) {
  1192. const httpLink = (0, _client.createHttpLink)({
  1193. uri: _apolloConfig.default.graphql_uri,
  1194. fetch: _crossFetch.default,
  1195. headers: token != "" ? {
  1196. Authorization: `Bearer ${token}`
  1197. } : null
  1198. });
  1199. return new _client.ApolloClient({
  1200. ssrMode: false,
  1201. cache: new _client.InMemoryCache({
  1202. addTypename: false
  1203. }),
  1204. link: httpLink
  1205. });
  1206. }
  1207. async function query(query, token = "", variables = {}, cache = false) {
  1208. const client = initApollo(token);
  1209. var res;
  1210. try {
  1211. var sql = await client.query({
  1212. query: (0, _client.gql)`
  1213. ${query}
  1214. `,
  1215. variables: variables,
  1216. fetchPolicy: cache ? "cache-first" : "no-cache"
  1217. });
  1218. res = {
  1219. STATUS: 1,
  1220. DATA: sql.data
  1221. };
  1222. } catch (e) {
  1223. res = {
  1224. STATUS: 0,
  1225. DATA: e
  1226. };
  1227. }
  1228. return res;
  1229. }
  1230. async function mutation(mutation, token = "", variables = {}) {
  1231. const client = initApollo(token);
  1232. var res;
  1233. try {
  1234. var sql = await client.mutate({
  1235. mutation: (0, _client.gql)`
  1236. ${mutation}
  1237. `,
  1238. variables: variables
  1239. });
  1240. res = {
  1241. STATUS: 1,
  1242. DATA: sql.data
  1243. };
  1244. } catch (e) {
  1245. res = {
  1246. STATUS: 0,
  1247. DATA: e
  1248. };
  1249. }
  1250. return res;
  1251. }
  1252. module.exports = {
  1253. query: query,
  1254. mutation: mutation
  1255. };
  1256. /***/ }),
  1257. /***/ "C+bE":
  1258. /***/ (function(module, exports) {
  1259. 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); }
  1260. function _typeof(obj) {
  1261. if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
  1262. module.exports = _typeof = function _typeof(obj) {
  1263. return _typeof2(obj);
  1264. };
  1265. } else {
  1266. module.exports = _typeof = function _typeof(obj) {
  1267. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
  1268. };
  1269. }
  1270. return _typeof(obj);
  1271. }
  1272. module.exports = _typeof;
  1273. /***/ }),
  1274. /***/ "CCqr":
  1275. /***/ (function(module, exports) {
  1276. module.exports = require("cross-fetch");
  1277. /***/ }),
  1278. /***/ "EmCc":
  1279. /***/ (function(module, exports) {
  1280. module.exports = require("@material-ui/core/IconButton");
  1281. /***/ }),
  1282. /***/ "F+sf":
  1283. /***/ (function(module, exports) {
  1284. module.exports = "/_next/static/images/carrer-aecb323ebc9b8a1d77335dbcfae8580f.png";
  1285. /***/ }),
  1286. /***/ "Fm7H":
  1287. /***/ (function(module, exports) {
  1288. module.exports = require("@material-ui/icons/Favorite");
  1289. /***/ }),
  1290. /***/ "HXcA":
  1291. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1292. "use strict";
  1293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Footer; });
  1294. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  1295. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  1296. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("K2gz");
  1297. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  1298. /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("KKbo");
  1299. /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__);
  1300. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("9Pu4");
  1301. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__);
  1302. /* harmony import */ var _material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Fm7H");
  1303. /* harmony import */ var _material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4__);
  1304. /* harmony import */ var components_Grid_GridContainer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("mtPR");
  1305. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("JQ2V");
  1306. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6__);
  1307. /* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("qt1I");
  1308. /* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_7__);
  1309. /* harmony import */ var components_Card_Card_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("A2So");
  1310. /* harmony import */ var assets_jss_nextjs_material_kit_components_footerStyle_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("oLCs");
  1311. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  1312. /*eslint-disable*/
  1313. // nodejs library to set properties for components
  1314. // nodejs library that concatenates classes
  1315. // material-ui core components
  1316. // @material-ui/icons
  1317. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__["makeStyles"])(assets_jss_nextjs_material_kit_components_footerStyle_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"]);
  1318. function Footer(props) {
  1319. const classes = useStyles();
  1320. const {
  1321. whiteFont
  1322. } = props;
  1323. const footerClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
  1324. [classes.footer]: true,
  1325. [classes.footerWhiteFont]: whiteFont
  1326. });
  1327. const aClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
  1328. [classes.a]: true,
  1329. [classes.footerWhiteFont]: whiteFont
  1330. });
  1331. return __jsx("div", null, __jsx(components_Grid_GridContainer_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], {
  1332. style: {
  1333. padding: "40px"
  1334. },
  1335. justify: "center"
  1336. }, __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6___default.a, null, __jsx("div", {
  1337. align: "center",
  1338. style: {
  1339. marginTop: "-20px"
  1340. }
  1341. }, __jsx("img", {
  1342. className: classes.imgCard,
  1343. src: "https://1.bp.blogspot.com/-GTTVvnJ9x0c/Wn70CJxGoYI/AAAAAAAACRY/GSv1ehPFOPQZcvOfiALy_p7Xa7GOBRHKgCLcBGAs/s320/TB.pn",
  1344. style: {
  1345. width: "350px"
  1346. }
  1347. }), __jsx("img", {
  1348. className: classes.imgCard,
  1349. src: "https://belimotoryuk.com/wp-content/uploads/2017/03/cropped-logo-yamaha.png",
  1350. style: {
  1351. width: "350px"
  1352. }
  1353. }))), __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6___default.a, null, __jsx("div", null, __jsx("footer", {
  1354. className: footerClasses
  1355. }, __jsx("div", {
  1356. className: classes.container
  1357. }, __jsx("div", {
  1358. className: classes.left
  1359. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1360. className: classes.list
  1361. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1362. className: classes.inlineBlock
  1363. }, __jsx("a", {
  1364. href: "/home",
  1365. className: classes.block
  1366. }, " Home ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1367. className: classes.inlineBlock
  1368. }, __jsx("a", {
  1369. href: "/product/product",
  1370. className: classes.block
  1371. }, " Motor ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1372. className: classes.inlineBlock
  1373. }, __jsx("a", {
  1374. href: "/product/ygp",
  1375. className: classes.block
  1376. }, " YGP ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1377. className: classes.inlineBlock
  1378. }, __jsx("a", {
  1379. href: "/product/yamalube",
  1380. className: classes.block
  1381. }, " Yamalube ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1382. className: classes.inlineBlock
  1383. }, __jsx("a", {
  1384. href: "/product/apparel",
  1385. className: classes.block
  1386. }, " Apparel ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1387. className: classes.inlineBlock
  1388. }, __jsx("a", {
  1389. href: "/product/helmet",
  1390. className: classes.block
  1391. }, " Helmet ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1392. className: classes.inlineBlock
  1393. }, __jsx("a", {
  1394. href: "/product/accessories",
  1395. className: classes.block
  1396. }, " Accessories ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1397. className: classes.inlineBlock
  1398. }, __jsx("a", {
  1399. href: "/product/service",
  1400. className: classes.block
  1401. }, " Service ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1402. className: classes.inlineBlock
  1403. }, __jsx("a", {
  1404. href: "/product/dealer",
  1405. className: classes.block
  1406. }, " Dealer ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1407. className: classes.inlineBlock
  1408. }, __jsx("a", {
  1409. href: "/latestsnews",
  1410. className: classes.block
  1411. }, " Latest News ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1412. className: classes.inlineBlock
  1413. }, __jsx("a", {
  1414. href: "/carrer",
  1415. className: classes.block
  1416. }, " Carrer ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1417. className: classes.inlineBlock
  1418. }, __jsx("a", {
  1419. href: "/about_us/aboutus",
  1420. className: classes.block
  1421. }, " About Us "))))))))), __jsx(components_Grid_GridContainer_js__WEBPACK_IMPORTED_MODULE_5__[/* default */ "a"], {
  1422. style: {
  1423. marginTop: "-40px"
  1424. },
  1425. justify: "center"
  1426. }, __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6___default.a, null, __jsx("div", {
  1427. align: "center"
  1428. }, __jsx("div", {
  1429. className: classes.right
  1430. }, "\xA9 ", 1900 + new Date().getYear(), " , All Right Reserved", " ", " by", " ", " @Thamrin Group Company")))));
  1431. }
  1432. /***/ }),
  1433. /***/ "JQ2V":
  1434. /***/ (function(module, exports) {
  1435. module.exports = require("@material-ui/core/Grid");
  1436. /***/ }),
  1437. /***/ "K2gz":
  1438. /***/ (function(module, exports) {
  1439. module.exports = require("classnames");
  1440. /***/ }),
  1441. /***/ "KKbo":
  1442. /***/ (function(module, exports) {
  1443. module.exports = require("@material-ui/core");
  1444. /***/ }),
  1445. /***/ "Kg+a":
  1446. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1447. "use strict";
  1448. // EXTERNAL MODULE: external "react"
  1449. var external_react_ = __webpack_require__("cDcd");
  1450. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1451. // EXTERNAL MODULE: external "classnames"
  1452. var external_classnames_ = __webpack_require__("K2gz");
  1453. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1454. // EXTERNAL MODULE: external "@material-ui/core/styles/makeStyles"
  1455. var makeStyles_ = __webpack_require__("8//M");
  1456. var makeStyles_default = /*#__PURE__*/__webpack_require__.n(makeStyles_);
  1457. // EXTERNAL MODULE: external "@material-ui/core/Button"
  1458. var Button_ = __webpack_require__("Wh1t");
  1459. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  1460. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1461. var nextjs_material_kit = __webpack_require__("eDSW");
  1462. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/buttonStyle.js
  1463. const buttonStyle = {
  1464. button: {
  1465. minHeight: "auto",
  1466. minWidth: "auto",
  1467. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1468. color: "#FFFFFF",
  1469. 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)",
  1470. border: "none",
  1471. borderRadius: "3px",
  1472. position: "relative",
  1473. padding: "12px 30px",
  1474. margin: ".3125rem 1px",
  1475. fontSize: "12px",
  1476. fontWeight: "400",
  1477. textTransform: "uppercase",
  1478. letterSpacing: "0",
  1479. willChange: "box-shadow, transform",
  1480. transition: "box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
  1481. lineHeight: "1.42857143",
  1482. textAlign: "center",
  1483. whiteSpace: "nowrap",
  1484. verticalAlign: "middle",
  1485. touchAction: "manipulation",
  1486. cursor: "pointer",
  1487. "&:hover,&:focus": {
  1488. color: "#FFFFFF",
  1489. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1490. 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)"
  1491. },
  1492. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1493. position: "relative",
  1494. display: "inline-block",
  1495. top: "0",
  1496. fontSize: "1.1rem",
  1497. marginRight: "4px",
  1498. verticalAlign: "middle"
  1499. },
  1500. "& svg": {
  1501. position: "relative",
  1502. display: "inline-block",
  1503. top: "0",
  1504. width: "18px",
  1505. height: "18px",
  1506. marginRight: "4px",
  1507. verticalAlign: "middle"
  1508. },
  1509. "&$justIcon": {
  1510. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1511. marginRight: "0px",
  1512. position: "absolute",
  1513. width: "100%",
  1514. transform: "none",
  1515. left: "0px",
  1516. top: "0px",
  1517. height: "100%",
  1518. lineHeight: "41px",
  1519. fontSize: "20px"
  1520. }
  1521. }
  1522. },
  1523. fullWidth: {
  1524. width: "100%"
  1525. },
  1526. primary: {
  1527. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1528. 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)}`,
  1529. "&:hover,&:focus": {
  1530. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1531. 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)}`
  1532. }
  1533. },
  1534. info: {
  1535. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1536. 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)}`,
  1537. "&:hover,&:focus": {
  1538. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1539. 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)}`
  1540. }
  1541. },
  1542. success: {
  1543. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1544. 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)}`,
  1545. "&:hover,&:focus": {
  1546. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1547. 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)}`
  1548. }
  1549. },
  1550. warning: {
  1551. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1552. 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)}`,
  1553. "&:hover,&:focus": {
  1554. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1555. 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)}`
  1556. }
  1557. },
  1558. danger: {
  1559. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1560. 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)}`,
  1561. "&:hover,&:focus": {
  1562. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1563. 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)}`
  1564. }
  1565. },
  1566. rose: {
  1567. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1568. 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)}`,
  1569. "&:hover,&:focus": {
  1570. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1571. 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)}`
  1572. }
  1573. },
  1574. white: {
  1575. "&,&:focus,&:hover,&:visited": {
  1576. backgroundColor: "#FFFFFF",
  1577. color: nextjs_material_kit["i" /* grayColor */]
  1578. }
  1579. },
  1580. twitter: {
  1581. backgroundColor: "#55acee",
  1582. color: "#fff",
  1583. 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)",
  1584. "&:hover,&:focus,&:visited": {
  1585. backgroundColor: "#55acee",
  1586. color: "#fff",
  1587. 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)"
  1588. }
  1589. },
  1590. facebook: {
  1591. backgroundColor: "#3b5998",
  1592. color: "#fff",
  1593. 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)",
  1594. "&:hover,&:focus": {
  1595. backgroundColor: "#3b5998",
  1596. color: "#fff",
  1597. 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)"
  1598. }
  1599. },
  1600. google: {
  1601. backgroundColor: "#dd4b39",
  1602. color: "#fff",
  1603. 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)",
  1604. "&:hover,&:focus": {
  1605. backgroundColor: "#dd4b39",
  1606. color: "#fff",
  1607. 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)"
  1608. }
  1609. },
  1610. github: {
  1611. backgroundColor: "#333333",
  1612. color: "#fff",
  1613. 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)",
  1614. "&:hover,&:focus": {
  1615. backgroundColor: "#333333",
  1616. color: "#fff",
  1617. 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)"
  1618. }
  1619. },
  1620. simple: {
  1621. "&,&:focus,&:hover,&:visited": {
  1622. color: "#FFFFFF",
  1623. background: "transparent",
  1624. boxShadow: "none"
  1625. },
  1626. "&$primary": {
  1627. "&,&:focus,&:hover,&:visited": {
  1628. color: nextjs_material_kit["p" /* primaryColor */]
  1629. }
  1630. },
  1631. "&$info": {
  1632. "&,&:focus,&:hover,&:visited": {
  1633. color: nextjs_material_kit["m" /* infoColor */]
  1634. }
  1635. },
  1636. "&$success": {
  1637. "&,&:focus,&:hover,&:visited": {
  1638. color: nextjs_material_kit["u" /* successColor */]
  1639. }
  1640. },
  1641. "&$warning": {
  1642. "&,&:focus,&:hover,&:visited": {
  1643. color: nextjs_material_kit["z" /* warningColor */]
  1644. }
  1645. },
  1646. "&$rose": {
  1647. "&,&:focus,&:hover,&:visited": {
  1648. color: nextjs_material_kit["r" /* roseColor */]
  1649. }
  1650. },
  1651. "&$danger": {
  1652. "&,&:focus,&:hover,&:visited": {
  1653. color: nextjs_material_kit["f" /* dangerColor */]
  1654. }
  1655. },
  1656. "&$twitter": {
  1657. "&,&:focus,&:hover,&:visited": {
  1658. color: "#55acee"
  1659. }
  1660. },
  1661. "&$facebook": {
  1662. "&,&:focus,&:hover,&:visited": {
  1663. color: "#3b5998"
  1664. }
  1665. },
  1666. "&$google": {
  1667. "&,&:focus,&:hover,&:visited": {
  1668. color: "#dd4b39"
  1669. }
  1670. },
  1671. "&$github": {
  1672. "&,&:focus,&:hover,&:visited": {
  1673. color: "#333333"
  1674. }
  1675. }
  1676. },
  1677. transparent: {
  1678. "&,&:focus,&:hover,&:visited": {
  1679. color: "inherit",
  1680. background: "transparent",
  1681. boxShadow: "none"
  1682. }
  1683. },
  1684. disabled: {
  1685. opacity: "0.65",
  1686. pointerEvents: "none"
  1687. },
  1688. lg: {
  1689. padding: "1.125rem 2.25rem",
  1690. fontSize: "0.875rem",
  1691. lineHeight: "1.333333",
  1692. borderRadius: "0.2rem"
  1693. },
  1694. sm: {
  1695. padding: "0.40625rem 1.25rem",
  1696. fontSize: "0.6875rem",
  1697. lineHeight: "1.5",
  1698. borderRadius: "0.2rem"
  1699. },
  1700. round: {
  1701. borderRadius: "30px"
  1702. },
  1703. block: {
  1704. width: "100% !important"
  1705. },
  1706. link: {
  1707. "&,&:hover,&:focus": {
  1708. backgroundColor: "transparent",
  1709. color: "#999999",
  1710. boxShadow: "none"
  1711. }
  1712. },
  1713. justIcon: {
  1714. paddingLeft: "12px",
  1715. paddingRight: "12px",
  1716. fontSize: "20px",
  1717. height: "41px",
  1718. minWidth: "41px",
  1719. width: "41px",
  1720. "& .fab,& .fas,& .far,& .fal,& svg,& .material-icons": {
  1721. marginRight: "0px"
  1722. },
  1723. "&$lg": {
  1724. height: "57px",
  1725. minWidth: "57px",
  1726. width: "57px",
  1727. lineHeight: "56px",
  1728. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1729. fontSize: "32px",
  1730. lineHeight: "56px"
  1731. },
  1732. "& svg": {
  1733. width: "32px",
  1734. height: "32px"
  1735. }
  1736. },
  1737. "&$sm": {
  1738. height: "30px",
  1739. minWidth: "30px",
  1740. width: "30px",
  1741. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1742. fontSize: "17px",
  1743. lineHeight: "29px"
  1744. },
  1745. "& svg": {
  1746. width: "17px",
  1747. height: "17px"
  1748. }
  1749. }
  1750. }
  1751. };
  1752. /* harmony default export */ var components_buttonStyle = (buttonStyle);
  1753. // CONCATENATED MODULE: ./components/CustomButtons/Button.js
  1754. var __jsx = external_react_default.a.createElement;
  1755. 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); }
  1756. 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; }
  1757. 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; }
  1758. 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; }
  1759. 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; }
  1760. 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; }
  1761. // nodejs library to set properties for components
  1762. // nodejs library that concatenates classes
  1763. // @material-ui/core components
  1764. // core components
  1765. const makeComponentStyles = makeStyles_default()(() => _objectSpread({}, components_buttonStyle));
  1766. const RegularButton = external_react_default.a.forwardRef((props, ref) => {
  1767. const {
  1768. color,
  1769. round,
  1770. children,
  1771. fullWidth,
  1772. disabled,
  1773. simple,
  1774. size,
  1775. block,
  1776. link,
  1777. justIcon,
  1778. className
  1779. } = props,
  1780. rest = _objectWithoutProperties(props, ["color", "round", "children", "fullWidth", "disabled", "simple", "size", "block", "link", "justIcon", "className"]);
  1781. const classes = makeComponentStyles();
  1782. const btnClasses = external_classnames_default()({
  1783. [classes.button]: true,
  1784. [classes[size]]: size,
  1785. [classes[color]]: color,
  1786. [classes.round]: round,
  1787. [classes.fullWidth]: fullWidth,
  1788. [classes.disabled]: disabled,
  1789. [classes.simple]: simple,
  1790. [classes.block]: block,
  1791. [classes.link]: link,
  1792. [classes.justIcon]: justIcon,
  1793. [className]: className
  1794. });
  1795. return __jsx(Button_default.a, _extends({}, rest, {
  1796. ref: ref,
  1797. classes: {
  1798. root: btnClasses
  1799. }
  1800. }), children);
  1801. });
  1802. /* harmony default export */ var Button = __webpack_exports__["a"] = (RegularButton);
  1803. /***/ }),
  1804. /***/ "Ms0O":
  1805. /***/ (function(module, exports) {
  1806. module.exports = require("@material-ui/core/Toolbar");
  1807. /***/ }),
  1808. /***/ "O/hg":
  1809. /***/ (function(module, exports) {
  1810. module.exports = require("react-slick");
  1811. /***/ }),
  1812. /***/ "Osoz":
  1813. /***/ (function(module, exports) {
  1814. module.exports = require("next/dist/next-server/lib/router-context.js");
  1815. /***/ }),
  1816. /***/ "Q01v":
  1817. /***/ (function(module, exports) {
  1818. module.exports = require("@material-ui/core/Drawer");
  1819. /***/ }),
  1820. /***/ "QOEo":
  1821. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1822. "use strict";
  1823. // EXPORTS
  1824. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomDropdown; });
  1825. // EXTERNAL MODULE: external "react"
  1826. var external_react_ = __webpack_require__("cDcd");
  1827. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1828. // EXTERNAL MODULE: external "classnames"
  1829. var external_classnames_ = __webpack_require__("K2gz");
  1830. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1831. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1832. var styles_ = __webpack_require__("9Pu4");
  1833. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  1834. var MenuItem_ = __webpack_require__("x54t");
  1835. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  1836. // EXTERNAL MODULE: external "@material-ui/core/MenuList"
  1837. var MenuList_ = __webpack_require__("xmQw");
  1838. var MenuList_default = /*#__PURE__*/__webpack_require__.n(MenuList_);
  1839. // EXTERNAL MODULE: external "@material-ui/core/ClickAwayListener"
  1840. var ClickAwayListener_ = __webpack_require__("31Yn");
  1841. var ClickAwayListener_default = /*#__PURE__*/__webpack_require__.n(ClickAwayListener_);
  1842. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  1843. var Paper_ = __webpack_require__("qt1I");
  1844. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  1845. // EXTERNAL MODULE: external "@material-ui/core/Grow"
  1846. var Grow_ = __webpack_require__("mf1M");
  1847. var Grow_default = /*#__PURE__*/__webpack_require__.n(Grow_);
  1848. // EXTERNAL MODULE: external "@material-ui/core/Divider"
  1849. var Divider_ = __webpack_require__("nybW");
  1850. var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
  1851. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  1852. var Icon_ = __webpack_require__("7vM9");
  1853. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  1854. // EXTERNAL MODULE: external "@material-ui/core/Popper"
  1855. var Popper_ = __webpack_require__("jD8W");
  1856. var Popper_default = /*#__PURE__*/__webpack_require__.n(Popper_);
  1857. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  1858. var Button = __webpack_require__("Kg+a");
  1859. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1860. var nextjs_material_kit = __webpack_require__("eDSW");
  1861. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customDropdownStyle.js
  1862. 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; }
  1863. 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; }
  1864. 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; }
  1865. const customDropdownStyle = theme => ({
  1866. popperClose: {
  1867. pointerEvents: "none"
  1868. },
  1869. pooperNav: {
  1870. [theme.breakpoints.down("sm")]: {
  1871. position: "static !important",
  1872. left: "unset !important",
  1873. top: "unset !important",
  1874. transform: "none !important",
  1875. willChange: "none !important",
  1876. "& > div": {
  1877. boxShadow: "none !important",
  1878. marginLeft: "1.5rem",
  1879. marginRight: "1.5rem",
  1880. transition: "none !important",
  1881. marginTop: "0px !important",
  1882. marginBottom: "5px !important",
  1883. padding: "0px !important"
  1884. }
  1885. }
  1886. },
  1887. dropdown: {
  1888. borderRadius: "3px",
  1889. border: "0",
  1890. boxShadow: "0 2px 5px 0 rgba(0, 0, 0, 0.26)",
  1891. top: "100%",
  1892. zIndex: "1000",
  1893. minWidth: "160px",
  1894. padding: "5px 0",
  1895. margin: "2px 0 0",
  1896. fontSize: "14px",
  1897. textAlign: "left",
  1898. listStyle: "none",
  1899. backgroundColor: "#fff",
  1900. backgroundClip: "padding-box"
  1901. },
  1902. menuList: {
  1903. padding: "0"
  1904. },
  1905. popperResponsive: {
  1906. zIndex: "1200",
  1907. position: "absolute !important",
  1908. [theme.breakpoints.down("sm")]: {
  1909. zIndex: "1640",
  1910. position: "static !important",
  1911. float: "none",
  1912. width: "auto",
  1913. marginTop: "0",
  1914. backgroundColor: "transparent",
  1915. border: "0",
  1916. boxShadow: "none",
  1917. color: "black"
  1918. }
  1919. },
  1920. dropdownItem: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  1921. fontSize: "13px",
  1922. padding: "10px 20px",
  1923. margin: "0 5px",
  1924. borderRadius: "2px",
  1925. position: "relative",
  1926. transition: "all 150ms linear",
  1927. display: "block",
  1928. clear: "both",
  1929. fontWeight: "400",
  1930. height: "fit-content",
  1931. color: "#333",
  1932. whiteSpace: "nowrap",
  1933. minHeight: "unset"
  1934. }),
  1935. blackHover: {
  1936. "&:hover": {
  1937. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)",
  1938. backgroundColor: "#212121",
  1939. color: "#fff"
  1940. }
  1941. },
  1942. primaryHover: {
  1943. "&:hover": _objectSpread({
  1944. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1945. color: "#FFFFFF"
  1946. }, nextjs_material_kit["n" /* primaryBoxShadow */])
  1947. },
  1948. infoHover: {
  1949. "&:hover": _objectSpread({
  1950. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1951. color: "#FFFFFF"
  1952. }, nextjs_material_kit["k" /* infoBoxShadow */])
  1953. },
  1954. successHover: {
  1955. "&:hover": _objectSpread({
  1956. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1957. color: "#FFFFFF"
  1958. }, nextjs_material_kit["s" /* successBoxShadow */])
  1959. },
  1960. warningHover: {
  1961. "&:hover": _objectSpread({
  1962. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1963. color: "#FFFFFF"
  1964. }, nextjs_material_kit["x" /* warningBoxShadow */])
  1965. },
  1966. dangerHover: {
  1967. "&:hover": _objectSpread({
  1968. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1969. color: "#FFFFFF"
  1970. }, nextjs_material_kit["d" /* dangerBoxShadow */])
  1971. },
  1972. roseHover: {
  1973. "&:hover": _objectSpread({
  1974. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1975. color: "#FFFFFF"
  1976. }, nextjs_material_kit["q" /* roseBoxShadow */])
  1977. },
  1978. dropdownItemRTL: {
  1979. textAlign: "right"
  1980. },
  1981. dropdownDividerItem: {
  1982. margin: "5px 0",
  1983. backgroundColor: "rgba(0, 0, 0, 0.12)",
  1984. height: "1px",
  1985. overflow: "hidden"
  1986. },
  1987. buttonIcon: {
  1988. width: "20px",
  1989. height: "20px"
  1990. },
  1991. caret: {
  1992. transition: "all 150ms ease-in",
  1993. display: "inline-block",
  1994. width: "0",
  1995. height: "0",
  1996. marginLeft: "4px",
  1997. verticalAlign: "middle",
  1998. borderTop: "4px solid",
  1999. borderRight: "4px solid transparent",
  2000. borderLeft: "4px solid transparent"
  2001. },
  2002. caretActive: {
  2003. transform: "rotate(180deg)"
  2004. },
  2005. caretRTL: {
  2006. marginRight: "4px"
  2007. },
  2008. dropdownHeader: {
  2009. display: "block",
  2010. padding: "0.1875rem 1.25rem",
  2011. fontSize: "0.75rem",
  2012. lineHeight: "1.428571",
  2013. color: "#777",
  2014. whiteSpace: "nowrap",
  2015. fontWeight: "inherit",
  2016. marginTop: "10px",
  2017. minHeight: "unset",
  2018. "&:hover,&:focus": {
  2019. backgroundColor: "transparent",
  2020. cursor: "auto"
  2021. }
  2022. },
  2023. noLiPadding: {
  2024. padding: "0"
  2025. }
  2026. });
  2027. /* harmony default export */ var components_customDropdownStyle = (customDropdownStyle);
  2028. // CONCATENATED MODULE: ./components/CustomDropdown/CustomDropdown.js
  2029. var __jsx = external_react_default.a.createElement;
  2030. 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); }
  2031. // nodejs library that concatenates classes
  2032. // nodejs library to set properties for components
  2033. // @material-ui/core components
  2034. // core components
  2035. const useStyles = Object(styles_["makeStyles"])(components_customDropdownStyle);
  2036. function CustomDropdown(props) {
  2037. const [anchorEl, setAnchorEl] = external_react_default.a.useState(null);
  2038. const handleClick = event => {
  2039. if (anchorEl && anchorEl.contains(event.target)) {
  2040. setAnchorEl(null);
  2041. } else {
  2042. setAnchorEl(event.currentTarget);
  2043. }
  2044. };
  2045. const handleClose = param => {
  2046. setAnchorEl(null);
  2047. if (props && props.onClick) {
  2048. props.onClick(param);
  2049. }
  2050. };
  2051. const handleCloseAway = event => {
  2052. if (anchorEl.contains(event.target)) {
  2053. return;
  2054. }
  2055. setAnchorEl(null);
  2056. };
  2057. const classes = useStyles();
  2058. const {
  2059. buttonText,
  2060. buttonIcon,
  2061. dropdownList,
  2062. buttonProps,
  2063. dropup,
  2064. dropdownHeader,
  2065. caret,
  2066. hoverColor,
  2067. left,
  2068. rtlActive,
  2069. noLiPadding,
  2070. navDropdown
  2071. } = props;
  2072. const caretClasses = external_classnames_default()({
  2073. [classes.caret]: true,
  2074. [classes.caretActive]: Boolean(anchorEl),
  2075. [classes.caretRTL]: rtlActive
  2076. });
  2077. const dropdownItem = external_classnames_default()({
  2078. [classes.dropdownItem]: true,
  2079. [classes[hoverColor + "Hover"]]: true,
  2080. [classes.noLiPadding]: noLiPadding,
  2081. [classes.dropdownItemRTL]: rtlActive
  2082. });
  2083. let icon = null;
  2084. switch (typeof buttonIcon) {
  2085. case "object":
  2086. icon = __jsx(props.buttonIcon, {
  2087. className: classes.buttonIcon
  2088. });
  2089. break;
  2090. case "string":
  2091. icon = __jsx(Icon_default.a, {
  2092. className: classes.buttonIcon
  2093. }, props.buttonIcon);
  2094. break;
  2095. default:
  2096. icon = null;
  2097. break;
  2098. }
  2099. return __jsx("div", null, __jsx("div", null, __jsx(Button["a" /* default */], _extends({
  2100. "aria-label": "Notifications",
  2101. "aria-owns": anchorEl ? "menu-list" : null,
  2102. "aria-haspopup": "true"
  2103. }, buttonProps, {
  2104. onClick: handleClick
  2105. }), icon, buttonText !== undefined ? buttonText : null, caret ? __jsx("b", {
  2106. className: caretClasses
  2107. }) : null)), __jsx(Popper_default.a, {
  2108. open: Boolean(anchorEl),
  2109. anchorEl: anchorEl,
  2110. transition: true,
  2111. disablePortal: true,
  2112. placement: dropup ? left ? "top-start" : "top" : left ? "bottom-start" : "bottom",
  2113. className: external_classnames_default()({
  2114. [classes.popperClose]: !anchorEl,
  2115. [classes.popperResponsive]: true,
  2116. [classes.pooperNav]: Boolean(anchorEl) && navDropdown
  2117. })
  2118. }, () => __jsx(Grow_default.a, {
  2119. in: Boolean(anchorEl),
  2120. id: "menu-list",
  2121. style: dropup ? {
  2122. transformOrigin: "0 100% 0"
  2123. } : {
  2124. transformOrigin: "0 0 0"
  2125. }
  2126. }, __jsx(Paper_default.a, {
  2127. className: classes.dropdown
  2128. }, __jsx(ClickAwayListener_default.a, {
  2129. onClickAway: handleCloseAway
  2130. }, __jsx(MenuList_default.a, {
  2131. role: "menu",
  2132. className: classes.menuList
  2133. }, dropdownHeader !== undefined ? __jsx(MenuItem_default.a, {
  2134. onClick: () => handleClose(dropdownHeader),
  2135. className: classes.dropdownHeader
  2136. }, dropdownHeader) : null, dropdownList.map((prop, key) => {
  2137. if (prop.divider) {
  2138. return __jsx(Divider_default.a, {
  2139. key: key,
  2140. onClick: () => handleClose("divider"),
  2141. className: classes.dropdownDividerItem
  2142. });
  2143. }
  2144. return __jsx(MenuItem_default.a, {
  2145. key: key,
  2146. onClick: () => handleClose(prop),
  2147. className: dropdownItem
  2148. }, prop);
  2149. })))))));
  2150. }
  2151. CustomDropdown.defaultProps = {
  2152. caret: true,
  2153. hoverColor: "primary"
  2154. };
  2155. /***/ }),
  2156. /***/ "Wh1t":
  2157. /***/ (function(module, exports) {
  2158. module.exports = require("@material-ui/core/Button");
  2159. /***/ }),
  2160. /***/ "Y8uC":
  2161. /***/ (function(module, exports) {
  2162. module.exports = require("@material-ui/core/Hidden");
  2163. /***/ }),
  2164. /***/ "YFqc":
  2165. /***/ (function(module, exports, __webpack_require__) {
  2166. module.exports = __webpack_require__("cTJO")
  2167. /***/ }),
  2168. /***/ "YTqd":
  2169. /***/ (function(module, exports, __webpack_require__) {
  2170. "use strict";
  2171. Object.defineProperty(exports, "__esModule", {
  2172. value: true
  2173. }); // this isn't importing the escape-string-regex module
  2174. // to reduce bytes
  2175. function escapeRegex(str) {
  2176. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  2177. }
  2178. function getRouteRegex(normalizedRoute) {
  2179. // Escape all characters that could be considered RegEx
  2180. const escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  2181. const groups = {};
  2182. let groupIndex = 1;
  2183. const parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2184. const isCatchAll = /^(\\\.){3}/.test($1);
  2185. groups[$1 // Un-escape key
  2186. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  2187. ] = {
  2188. pos: groupIndex++,
  2189. repeat: isCatchAll
  2190. };
  2191. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  2192. });
  2193. let namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  2194. // while generating routes-manifest
  2195. if (true) {
  2196. namedParameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2197. const isCatchAll = /^(\\\.){3}/.test($1);
  2198. const key = $1 // Un-escape key
  2199. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '');
  2200. return isCatchAll ? `/(?<${escapeRegex(key)}>.+?)` : `/(?<${escapeRegex(key)}>[^/]+?)`;
  2201. });
  2202. }
  2203. return Object.assign({
  2204. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  2205. groups
  2206. }, namedParameterizedRoute ? {
  2207. namedRegex: `^${namedParameterizedRoute}(?:/)?$`
  2208. } : {});
  2209. }
  2210. exports.getRouteRegex = getRouteRegex;
  2211. /***/ }),
  2212. /***/ "Z2Lm":
  2213. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2214. "use strict";
  2215. // EXPORTS
  2216. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Parallax; });
  2217. // EXTERNAL MODULE: external "react"
  2218. var external_react_ = __webpack_require__("cDcd");
  2219. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2220. // EXTERNAL MODULE: external "classnames"
  2221. var external_classnames_ = __webpack_require__("K2gz");
  2222. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2223. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2224. var styles_ = __webpack_require__("9Pu4");
  2225. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/parallaxStyle.js
  2226. const parallaxStyle = theme => ({
  2227. parallax: {
  2228. height: "90vh",
  2229. maxHeight: "1000px",
  2230. overflow: "hidden",
  2231. position: "relative",
  2232. backgroundPosition: "center top",
  2233. backgroundSize: "cover",
  2234. margin: "0",
  2235. padding: "0",
  2236. border: "0",
  2237. display: "flex",
  2238. alignItems: "center"
  2239. },
  2240. filter: {
  2241. "&:before": {
  2242. background: "rgba(0, 0, 0, 0.5)"
  2243. },
  2244. "&:after,&:before": {
  2245. position: "absolute",
  2246. zIndex: "1",
  2247. width: "100%",
  2248. height: "100%",
  2249. display: "block",
  2250. left: "0",
  2251. top: "0",
  2252. content: "''"
  2253. }
  2254. },
  2255. small: {
  2256. height: "380px"
  2257. },
  2258. parallaxResponsive: {
  2259. [theme.breakpoints.down("md")]: {
  2260. minHeight: "660px"
  2261. }
  2262. }
  2263. });
  2264. /* harmony default export */ var components_parallaxStyle = (parallaxStyle);
  2265. // CONCATENATED MODULE: ./components/Parallax/Parallax.js
  2266. var __jsx = external_react_default.a.createElement;
  2267. 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; }
  2268. 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; }
  2269. 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; }
  2270. // nodejs library that concatenates classes
  2271. // nodejs library to set properties for components
  2272. // @material-ui/core components
  2273. // core components
  2274. const useStyles = Object(styles_["makeStyles"])(components_parallaxStyle);
  2275. function Parallax(props) {
  2276. let windowScrollTop; // if (window.innerWidth >= 768) {
  2277. // windowScrollTop = window.pageYOffset / 3;
  2278. // } else {
  2279. // windowScrollTop = 0;
  2280. // }
  2281. const [transform, setTransform] = external_react_default.a.useState("translate3d(0,0px,0)");
  2282. external_react_default.a.useEffect(() => {
  2283. if (window.innerWidth >= 768) {
  2284. window.addEventListener("scroll", resetTransform);
  2285. }
  2286. return function cleanup() {
  2287. if (window.innerWidth >= 768) {
  2288. window.removeEventListener("scroll", resetTransform);
  2289. }
  2290. };
  2291. });
  2292. const resetTransform = () => {
  2293. var windowScrollTop = window.pageYOffset / 3;
  2294. setTransform("translate3d(0," + windowScrollTop + "px,0)");
  2295. };
  2296. const {
  2297. filter,
  2298. className,
  2299. children,
  2300. style,
  2301. image,
  2302. small,
  2303. responsive
  2304. } = props;
  2305. const classes = useStyles();
  2306. const parallaxClasses = external_classnames_default()({
  2307. [classes.parallax]: true,
  2308. [classes.filter]: filter,
  2309. [classes.small]: small,
  2310. [classes.parallaxResponsive]: responsive,
  2311. [className]: className !== undefined
  2312. });
  2313. return __jsx("div", {
  2314. className: parallaxClasses,
  2315. style: _objectSpread({}, style, {
  2316. backgroundImage: "url(" + image + ")",
  2317. transform: transform
  2318. })
  2319. }, children);
  2320. }
  2321. /***/ }),
  2322. /***/ "bhG4":
  2323. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2324. "use strict";
  2325. /* harmony import */ var _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  2326. const componentsStyle = {
  2327. container: _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  2328. brand: {
  2329. color: "#FFFFFF",
  2330. textAlign: "left"
  2331. },
  2332. title: {
  2333. fontSize: "4.2rem",
  2334. fontWeight: "600",
  2335. display: "inline-block",
  2336. position: "relative"
  2337. },
  2338. subtitle: {
  2339. fontSize: "1.313rem",
  2340. maxWidth: "510px",
  2341. margin: "10px 0 0"
  2342. },
  2343. main: {
  2344. background: "#FFFFFF",
  2345. position: "relative",
  2346. zIndex: "3"
  2347. },
  2348. mainRaised: {
  2349. margin: "-60px 30px 0px",
  2350. borderRadius: "6px",
  2351. 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)",
  2352. "@media (max-width: 830px)": {
  2353. marginLeft: "10px",
  2354. marginRight: "10px"
  2355. }
  2356. },
  2357. link: {
  2358. textDecoration: "none"
  2359. },
  2360. textCenter: {
  2361. textAlign: "center"
  2362. }
  2363. };
  2364. /* harmony default export */ __webpack_exports__["a"] = (componentsStyle);
  2365. /***/ }),
  2366. /***/ "bx/+":
  2367. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2368. "use strict";
  2369. __webpack_require__.r(__webpack_exports__);
  2370. // Apollo Value Configuration
  2371. const ApolloConfig = {
  2372. graphql_uri: process.env.API_GRAPHQL_URI
  2373. };
  2374. /* harmony default export */ __webpack_exports__["default"] = (ApolloConfig);
  2375. /***/ }),
  2376. /***/ "bzos":
  2377. /***/ (function(module, exports) {
  2378. module.exports = require("url");
  2379. /***/ }),
  2380. /***/ "c25J":
  2381. /***/ (function(module, exports) {
  2382. module.exports = require("@material-ui/core/ListItem");
  2383. /***/ }),
  2384. /***/ "cDcd":
  2385. /***/ (function(module, exports) {
  2386. module.exports = require("react");
  2387. /***/ }),
  2388. /***/ "cTJO":
  2389. /***/ (function(module, exports, __webpack_require__) {
  2390. "use strict";
  2391. var _interopRequireDefault = __webpack_require__("AroE");
  2392. var _interopRequireWildcard = __webpack_require__("7KCV");
  2393. exports.__esModule = true;
  2394. exports.default = void 0;
  2395. var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
  2396. var _url = __webpack_require__("bzos");
  2397. var _utils = __webpack_require__("kYf9");
  2398. var _router = _interopRequireDefault(__webpack_require__("nOHt"));
  2399. var _router2 = __webpack_require__("elyg");
  2400. function isLocal(href) {
  2401. var url = (0, _url.parse)(href, false, true);
  2402. var origin = (0, _url.parse)((0, _utils.getLocationOrigin)(), false, true);
  2403. return !url.host || url.protocol === origin.protocol && url.host === origin.host;
  2404. }
  2405. function memoizedFormatUrl(formatFunc) {
  2406. var lastHref = null;
  2407. var lastAs = null;
  2408. var lastResult = null;
  2409. return (href, as) => {
  2410. if (lastResult && href === lastHref && as === lastAs) {
  2411. return lastResult;
  2412. }
  2413. var result = formatFunc(href, as);
  2414. lastHref = href;
  2415. lastAs = as;
  2416. lastResult = result;
  2417. return result;
  2418. };
  2419. }
  2420. function formatUrl(url) {
  2421. return url && typeof url === 'object' ? (0, _utils.formatWithValidation)(url) : url;
  2422. }
  2423. var observer;
  2424. var listeners = new Map();
  2425. var IntersectionObserver = false ? undefined : null;
  2426. var prefetched = {};
  2427. function getObserver() {
  2428. // Return shared instance of IntersectionObserver if already created
  2429. if (observer) {
  2430. return observer;
  2431. } // Only create shared IntersectionObserver if supported in browser
  2432. if (!IntersectionObserver) {
  2433. return undefined;
  2434. }
  2435. return observer = new IntersectionObserver(entries => {
  2436. entries.forEach(entry => {
  2437. if (!listeners.has(entry.target)) {
  2438. return;
  2439. }
  2440. var cb = listeners.get(entry.target);
  2441. if (entry.isIntersecting || entry.intersectionRatio > 0) {
  2442. observer.unobserve(entry.target);
  2443. listeners.delete(entry.target);
  2444. cb();
  2445. }
  2446. });
  2447. }, {
  2448. rootMargin: '200px'
  2449. });
  2450. }
  2451. var listenToIntersections = (el, cb) => {
  2452. var observer = getObserver();
  2453. if (!observer) {
  2454. return () => {};
  2455. }
  2456. observer.observe(el);
  2457. listeners.set(el, cb);
  2458. return () => {
  2459. try {
  2460. observer.unobserve(el);
  2461. } catch (err) {
  2462. console.error(err);
  2463. }
  2464. listeners.delete(el);
  2465. };
  2466. };
  2467. class Link extends _react.Component {
  2468. constructor(props) {
  2469. super(props);
  2470. this.p = void 0;
  2471. this.cleanUpListeners = () => {};
  2472. this.formatUrls = memoizedFormatUrl((href, asHref) => {
  2473. return {
  2474. href: (0, _router2.addBasePath)(formatUrl(href)),
  2475. as: asHref ? (0, _router2.addBasePath)(formatUrl(asHref)) : asHref
  2476. };
  2477. });
  2478. this.linkClicked = e => {
  2479. var {
  2480. nodeName,
  2481. target
  2482. } = e.currentTarget;
  2483. if (nodeName === 'A' && (target && target !== '_self' || e.metaKey || e.ctrlKey || e.shiftKey || e.nativeEvent && e.nativeEvent.which === 2)) {
  2484. // ignore click for new tab / new window behavior
  2485. return;
  2486. }
  2487. var {
  2488. href,
  2489. as
  2490. } = this.formatUrls(this.props.href, this.props.as);
  2491. if (!isLocal(href)) {
  2492. // ignore click if it's outside our scope (e.g. https://google.com)
  2493. return;
  2494. }
  2495. var {
  2496. pathname
  2497. } = window.location;
  2498. href = (0, _url.resolve)(pathname, href);
  2499. as = as ? (0, _url.resolve)(pathname, as) : href;
  2500. e.preventDefault(); // avoid scroll for urls with anchor refs
  2501. var {
  2502. scroll
  2503. } = this.props;
  2504. if (scroll == null) {
  2505. scroll = as.indexOf('#') < 0;
  2506. } // replace state instead of push if prop is present
  2507. _router.default[this.props.replace ? 'replace' : 'push'](href, as, {
  2508. shallow: this.props.shallow
  2509. }).then(success => {
  2510. if (!success) return;
  2511. if (scroll) {
  2512. window.scrollTo(0, 0);
  2513. document.body.focus();
  2514. }
  2515. });
  2516. };
  2517. if (false) {}
  2518. this.p = props.prefetch !== false;
  2519. }
  2520. componentWillUnmount() {
  2521. this.cleanUpListeners();
  2522. }
  2523. getPaths() {
  2524. var {
  2525. pathname
  2526. } = window.location;
  2527. var {
  2528. href: parsedHref,
  2529. as: parsedAs
  2530. } = this.formatUrls(this.props.href, this.props.as);
  2531. var resolvedHref = (0, _url.resolve)(pathname, parsedHref);
  2532. return [resolvedHref, parsedAs ? (0, _url.resolve)(pathname, parsedAs) : resolvedHref];
  2533. }
  2534. handleRef(ref) {
  2535. if (this.p && IntersectionObserver && ref && ref.tagName) {
  2536. this.cleanUpListeners();
  2537. var isPrefetched = prefetched[this.getPaths().join( // Join on an invalid URI character
  2538. '%')];
  2539. if (!isPrefetched) {
  2540. this.cleanUpListeners = listenToIntersections(ref, () => {
  2541. this.prefetch();
  2542. });
  2543. }
  2544. }
  2545. } // The function is memoized so that no extra lifecycles are needed
  2546. // as per https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
  2547. prefetch(options) {
  2548. if (!this.p || true) return; // Prefetch the JSON page if asked (only in the client)
  2549. var paths = this.getPaths(); // We need to handle a prefetch error here since we may be
  2550. // loading with priority which can reject but we don't
  2551. // want to force navigation since this is only a prefetch
  2552. _router.default.prefetch(paths[
  2553. /* href */
  2554. 0], paths[
  2555. /* asPath */
  2556. 1], options).catch(err => {
  2557. if (false) {}
  2558. });
  2559. prefetched[paths.join( // Join on an invalid URI character
  2560. '%')] = true;
  2561. }
  2562. render() {
  2563. var {
  2564. children
  2565. } = this.props;
  2566. var {
  2567. href,
  2568. as
  2569. } = 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
  2570. if (typeof children === 'string') {
  2571. children = _react.default.createElement("a", null, children);
  2572. } // This will return the first child, if multiple are provided it will throw an error
  2573. var child = _react.Children.only(children);
  2574. var props = {
  2575. ref: el => {
  2576. this.handleRef(el);
  2577. if (child && typeof child === 'object' && child.ref) {
  2578. if (typeof child.ref === 'function') child.ref(el);else if (typeof child.ref === 'object') {
  2579. child.ref.current = el;
  2580. }
  2581. }
  2582. },
  2583. onMouseEnter: e => {
  2584. if (child.props && typeof child.props.onMouseEnter === 'function') {
  2585. child.props.onMouseEnter(e);
  2586. }
  2587. this.prefetch({
  2588. priority: true
  2589. });
  2590. },
  2591. onClick: e => {
  2592. if (child.props && typeof child.props.onClick === 'function') {
  2593. child.props.onClick(e);
  2594. }
  2595. if (!e.defaultPrevented) {
  2596. this.linkClicked(e);
  2597. }
  2598. }
  2599. }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
  2600. // defined, we specify the current 'href', so that repetition is not needed by the user
  2601. if (this.props.passHref || child.type === 'a' && !('href' in child.props)) {
  2602. props.href = as || href;
  2603. } // Add the ending slash to the paths. So, we can serve the
  2604. // "<page>/index.html" directly.
  2605. if (false) { var rewriteUrlForNextExport; }
  2606. return _react.default.cloneElement(child, props);
  2607. }
  2608. }
  2609. if (false) { var exact, PropTypes, warn; }
  2610. var _default = Link;
  2611. exports.default = _default;
  2612. /***/ }),
  2613. /***/ "dZ6Y":
  2614. /***/ (function(module, exports, __webpack_require__) {
  2615. "use strict";
  2616. /*
  2617. MIT License
  2618. Copyright (c) Jason Miller (https://jasonformat.com/)
  2619. 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:
  2620. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  2621. 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.
  2622. */
  2623. Object.defineProperty(exports, "__esModule", {
  2624. value: true
  2625. });
  2626. function mitt() {
  2627. const all = Object.create(null);
  2628. return {
  2629. on(type, handler) {
  2630. ;
  2631. (all[type] || (all[type] = [])).push(handler);
  2632. },
  2633. off(type, handler) {
  2634. if (all[type]) {
  2635. // tslint:disable-next-line:no-bitwise
  2636. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  2637. }
  2638. },
  2639. emit(type, ...evts) {
  2640. // eslint-disable-next-line array-callback-return
  2641. ;
  2642. (all[type] || []).slice().map(handler => {
  2643. handler(...evts);
  2644. });
  2645. }
  2646. };
  2647. }
  2648. exports.default = mitt;
  2649. /***/ }),
  2650. /***/ "eDSW":
  2651. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2652. "use strict";
  2653. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hexToRGBAlpha; });
  2654. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return drawerWidth; });
  2655. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return transition; });
  2656. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return container; });
  2657. /* unused harmony export conatinerFluid */
  2658. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return boxShadow; });
  2659. /* unused harmony export card */
  2660. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return defaultFont; });
  2661. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return primaryColor; });
  2662. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return warningColor; });
  2663. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return dangerColor; });
  2664. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return successColor; });
  2665. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return infoColor; });
  2666. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return roseColor; });
  2667. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return grayColor; });
  2668. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return primaryBoxShadow; });
  2669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return infoBoxShadow; });
  2670. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return successBoxShadow; });
  2671. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return warningBoxShadow; });
  2672. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dangerBoxShadow; });
  2673. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return roseBoxShadow; });
  2674. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return warningCardHeader; });
  2675. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return successCardHeader; });
  2676. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dangerCardHeader; });
  2677. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return infoCardHeader; });
  2678. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return primaryCardHeader; });
  2679. /* unused harmony export roseCardHeader */
  2680. /* unused harmony export cardActions */
  2681. /* unused harmony export cardHeader */
  2682. /* unused harmony export defaultBoxShadow */
  2683. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return title; });
  2684. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cardTitle; });
  2685. /* unused harmony export cardLink */
  2686. /* unused harmony export cardSubtitle */
  2687. 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; }
  2688. 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; }
  2689. 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; }
  2690. /*!
  2691. =========================================================
  2692. * NextJS Material Kit - v1.1.0 based on Material Kit - v2.0.2 and Material Kit React - v1.8.0
  2693. =========================================================
  2694. * Product Page: https://www.creative-tim.com/product/nextjs-material-kit
  2695. * Copyright 2020 Creative Tim (https://www.creative-tim.com)
  2696. * Licensed under MIT (https://github.com/creativetimofficial/nextjs-material-kit/blob/master/LICENSE.md)
  2697. =========================================================
  2698. * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  2699. */
  2700. // ##############################
  2701. // // // Variables - Styles that are used on more than one component
  2702. // #############################
  2703. const hexColorToRGB = function (hexColor) {
  2704. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  2705. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  2706. return r + r + g + g + b + b;
  2707. });
  2708. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  2709. return hex_array ? {
  2710. r: parseInt(hex_array[1], 16),
  2711. // 0-255
  2712. g: parseInt(hex_array[2], 16),
  2713. // 0-255
  2714. b: parseInt(hex_array[3], 16) // 0-255
  2715. } : null;
  2716. };
  2717. const hexToRGBAlpha = function (hexColor, alpha) {
  2718. let rgb = hexColorToRGB(hexColor);
  2719. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  2720. };
  2721. const drawerWidth = 260;
  2722. const transition = {
  2723. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  2724. };
  2725. const conatinerFluid = {
  2726. paddingRight: "15px",
  2727. paddingLeft: "15px",
  2728. marginRight: "auto",
  2729. marginLeft: "auto",
  2730. width: "100%"
  2731. };
  2732. const container = _objectSpread({}, conatinerFluid, {
  2733. "@media (min-width: 576px)": {
  2734. maxWidth: "540px"
  2735. },
  2736. "@media (min-width: 768px)": {
  2737. maxWidth: "720px"
  2738. },
  2739. "@media (min-width: 992px)": {
  2740. maxWidth: "960px"
  2741. },
  2742. "@media (min-width: 1200px)": {
  2743. maxWidth: "1140px"
  2744. }
  2745. });
  2746. const boxShadow = {
  2747. 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)"
  2748. };
  2749. const card = {
  2750. display: "inline-block",
  2751. position: "relative",
  2752. width: "100%",
  2753. margin: "25px 0",
  2754. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  2755. borderRadius: "3px",
  2756. color: "rgba(0, 0, 0, 0.87)",
  2757. background: "#fff"
  2758. };
  2759. const defaultFont = {
  2760. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  2761. fontWeight: "300",
  2762. lineHeight: "1.5em"
  2763. };
  2764. const primaryColor = "#9c27b0";
  2765. const warningColor = "#ff9800";
  2766. const dangerColor = "#f44336";
  2767. const successColor = "#4caf50";
  2768. const infoColor = "#00acc1";
  2769. const roseColor = "#e91e63";
  2770. const grayColor = "#999999";
  2771. const primaryBoxShadow = {
  2772. 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)}`
  2773. };
  2774. const infoBoxShadow = {
  2775. 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)}`
  2776. };
  2777. const successBoxShadow = {
  2778. 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)}`
  2779. };
  2780. const warningBoxShadow = {
  2781. 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)}`
  2782. };
  2783. const dangerBoxShadow = {
  2784. 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)}`
  2785. };
  2786. const roseBoxShadow = {
  2787. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  2788. };
  2789. const warningCardHeader = _objectSpread({
  2790. color: "#fff",
  2791. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  2792. }, warningBoxShadow);
  2793. const successCardHeader = _objectSpread({
  2794. color: "#fff",
  2795. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  2796. }, successBoxShadow);
  2797. const dangerCardHeader = _objectSpread({
  2798. color: "#fff",
  2799. background: "linear-gradient(60deg, #ef5350, #e53935)"
  2800. }, dangerBoxShadow);
  2801. const infoCardHeader = _objectSpread({
  2802. color: "#fff",
  2803. background: "linear-gradient(60deg, #26c6da, #00acc1)"
  2804. }, infoBoxShadow);
  2805. const primaryCardHeader = _objectSpread({
  2806. color: "#fff",
  2807. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  2808. }, primaryBoxShadow);
  2809. const roseCardHeader = _objectSpread({
  2810. color: "#fff",
  2811. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  2812. }, roseBoxShadow);
  2813. const cardActions = _objectSpread({
  2814. margin: "0 20px 10px",
  2815. paddingTop: "10px",
  2816. borderTop: "1px solid #eeeeee",
  2817. height: "auto"
  2818. }, defaultFont);
  2819. const cardHeader = {
  2820. margin: "-30px 15px 0",
  2821. borderRadius: "3px",
  2822. padding: "15px"
  2823. };
  2824. const defaultBoxShadow = {
  2825. border: "0",
  2826. borderRadius: "3px",
  2827. 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)",
  2828. padding: "10px 0",
  2829. transition: "all 150ms ease 0s"
  2830. };
  2831. const title = {
  2832. color: "#3C4858",
  2833. margin: "1.75rem 0 0.875rem",
  2834. textDecoration: "none",
  2835. fontWeight: "700",
  2836. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  2837. };
  2838. const cardTitle = _objectSpread({}, title, {
  2839. marginTop: ".625rem"
  2840. });
  2841. const cardLink = {
  2842. "& + $cardLink": {
  2843. marginLeft: "1.25rem"
  2844. }
  2845. };
  2846. const cardSubtitle = {
  2847. marginBottom: "0",
  2848. marginTop: "-.375rem"
  2849. };
  2850. /***/ }),
  2851. /***/ "elyg":
  2852. /***/ (function(module, exports, __webpack_require__) {
  2853. "use strict";
  2854. var __importDefault = this && this.__importDefault || function (mod) {
  2855. return mod && mod.__esModule ? mod : {
  2856. "default": mod
  2857. };
  2858. };
  2859. Object.defineProperty(exports, "__esModule", {
  2860. value: true
  2861. });
  2862. const url_1 = __webpack_require__("bzos");
  2863. const mitt_1 = __importDefault(__webpack_require__("dZ6Y"));
  2864. const utils_1 = __webpack_require__("g/15");
  2865. const is_dynamic_1 = __webpack_require__("/jkW");
  2866. const route_matcher_1 = __webpack_require__("gguc");
  2867. const route_regex_1 = __webpack_require__("YTqd");
  2868. const basePath = false || '';
  2869. function addBasePath(path) {
  2870. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  2871. }
  2872. exports.addBasePath = addBasePath;
  2873. function delBasePath(path) {
  2874. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  2875. }
  2876. exports.delBasePath = delBasePath;
  2877. function toRoute(path) {
  2878. return path.replace(/\/$/, '') || '/';
  2879. }
  2880. const prepareRoute = path => toRoute(!path || path === '/' ? '/index' : path);
  2881. function fetchNextData(pathname, query, isServerRender, cb) {
  2882. let attempts = isServerRender ? 3 : 1;
  2883. function getResponse() {
  2884. return fetch(utils_1.formatWithValidation({
  2885. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  2886. `/_next/data/${__NEXT_DATA__.buildId}${delBasePath(pathname)}.json`),
  2887. query
  2888. }), {
  2889. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  2890. // Cookies may also be required for `getServerSideProps`.
  2891. //
  2892. // > `fetch` won’t send cookies, unless you set the credentials init
  2893. // > option.
  2894. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  2895. //
  2896. // > For maximum browser compatibility when it comes to sending &
  2897. // > receiving cookies, always supply the `credentials: 'same-origin'`
  2898. // > option instead of relying on the default.
  2899. // https://github.com/github/fetch#caveats
  2900. credentials: 'same-origin'
  2901. }).then(res => {
  2902. if (!res.ok) {
  2903. if (--attempts > 0 && res.status >= 500) {
  2904. return getResponse();
  2905. }
  2906. throw new Error(`Failed to load static props`);
  2907. }
  2908. return res.json();
  2909. });
  2910. }
  2911. return getResponse().then(data => {
  2912. return cb ? cb(data) : data;
  2913. }).catch(err => {
  2914. // We should only trigger a server-side transition if this was caused
  2915. // on a client-side transition. Otherwise, we'd get into an infinite
  2916. // loop.
  2917. if (!isServerRender) {
  2918. ;
  2919. err.code = 'PAGE_LOAD_ERROR';
  2920. }
  2921. throw err;
  2922. });
  2923. }
  2924. class Router {
  2925. constructor(pathname, query, as, {
  2926. initialProps,
  2927. pageLoader,
  2928. App,
  2929. wrapApp,
  2930. Component,
  2931. err,
  2932. subscription,
  2933. isFallback
  2934. }) {
  2935. // Static Data Cache
  2936. this.sdc = {};
  2937. this.onPopState = e => {
  2938. if (!e.state) {
  2939. // We get state as undefined for two reasons.
  2940. // 1. With older safari (< 8) and older chrome (< 34)
  2941. // 2. When the URL changed with #
  2942. //
  2943. // In the both cases, we don't need to proceed and change the route.
  2944. // (as it's already changed)
  2945. // But we can simply replace the state with the new changes.
  2946. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  2947. // So, doing the following for (1) does no harm.
  2948. const {
  2949. pathname,
  2950. query
  2951. } = this;
  2952. this.changeState('replaceState', utils_1.formatWithValidation({
  2953. pathname,
  2954. query
  2955. }), utils_1.getURL());
  2956. return;
  2957. } // Make sure we don't re-render on initial load,
  2958. // can be caused by navigating back from an external site
  2959. if (e.state && this.isSsr && e.state.as === this.asPath && url_1.parse(e.state.url).pathname === this.pathname) {
  2960. return;
  2961. } // If the downstream application returns falsy, return.
  2962. // They will then be responsible for handling the event.
  2963. if (this._bps && !this._bps(e.state)) {
  2964. return;
  2965. }
  2966. const {
  2967. url,
  2968. as,
  2969. options
  2970. } = e.state;
  2971. if (false) {}
  2972. this.replace(url, as, options);
  2973. };
  2974. this._getStaticData = asPath => {
  2975. const pathname = prepareRoute(url_1.parse(asPath).pathname);
  2976. return true && this.sdc[pathname] ? Promise.resolve(this.sdc[pathname]) : fetchNextData(pathname, null, this.isSsr, data => this.sdc[pathname] = data);
  2977. };
  2978. this._getServerData = asPath => {
  2979. let {
  2980. pathname,
  2981. query
  2982. } = url_1.parse(asPath, true);
  2983. pathname = prepareRoute(pathname);
  2984. return fetchNextData(pathname, query, this.isSsr);
  2985. }; // represents the current component key
  2986. this.route = toRoute(pathname); // set up the component cache (by route keys)
  2987. this.components = {}; // We should not keep the cache, if there's an error
  2988. // Otherwise, this cause issues when when going back and
  2989. // come again to the errored page.
  2990. if (pathname !== '/_error') {
  2991. this.components[this.route] = {
  2992. Component,
  2993. props: initialProps,
  2994. err,
  2995. __N_SSG: initialProps && initialProps.__N_SSG,
  2996. __N_SSP: initialProps && initialProps.__N_SSP
  2997. };
  2998. }
  2999. this.components['/_app'] = {
  3000. Component: App
  3001. }; // Backwards compat for Router.router.events
  3002. // TODO: Should be remove the following major version as it was never documented
  3003. this.events = Router.events;
  3004. this.pageLoader = pageLoader;
  3005. this.pathname = pathname;
  3006. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  3007. // until after mount to prevent hydration mismatch
  3008. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  3009. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  3010. this.basePath = basePath;
  3011. this.sub = subscription;
  3012. this.clc = null;
  3013. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  3014. // back from external site
  3015. this.isSsr = true;
  3016. this.isFallback = isFallback;
  3017. if (false) {}
  3018. } // @deprecated backwards compatibility even though it's a private method.
  3019. static _rewriteUrlForNextExport(url) {
  3020. if (false) {} else {
  3021. return url;
  3022. }
  3023. }
  3024. update(route, mod) {
  3025. const Component = mod.default || mod;
  3026. const data = this.components[route];
  3027. if (!data) {
  3028. throw new Error(`Cannot update unavailable route: ${route}`);
  3029. }
  3030. const newData = Object.assign(Object.assign({}, data), {
  3031. Component,
  3032. __N_SSG: mod.__N_SSG,
  3033. __N_SSP: mod.__N_SSP
  3034. });
  3035. this.components[route] = newData; // pages/_app.js updated
  3036. if (route === '/_app') {
  3037. this.notify(this.components[this.route]);
  3038. return;
  3039. }
  3040. if (route === this.route) {
  3041. this.notify(newData);
  3042. }
  3043. }
  3044. reload() {
  3045. window.location.reload();
  3046. }
  3047. /**
  3048. * Go back in history
  3049. */
  3050. back() {
  3051. window.history.back();
  3052. }
  3053. /**
  3054. * Performs a `pushState` with arguments
  3055. * @param url of the route
  3056. * @param as masks `url` for the browser
  3057. * @param options object you can define `shallow` and other options
  3058. */
  3059. push(url, as = url, options = {}) {
  3060. return this.change('pushState', url, as, options);
  3061. }
  3062. /**
  3063. * Performs a `replaceState` with arguments
  3064. * @param url of the route
  3065. * @param as masks `url` for the browser
  3066. * @param options object you can define `shallow` and other options
  3067. */
  3068. replace(url, as = url, options = {}) {
  3069. return this.change('replaceState', url, as, options);
  3070. }
  3071. change(method, _url, _as, options) {
  3072. return new Promise((resolve, reject) => {
  3073. if (!options._h) {
  3074. this.isSsr = false;
  3075. } // marking route changes as a navigation start entry
  3076. if (utils_1.ST) {
  3077. performance.mark('routeChange');
  3078. } // If url and as provided as an object representation,
  3079. // we'll format them into the string version here.
  3080. let url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  3081. let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  3082. url = addBasePath(url);
  3083. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  3084. // "<page>/index.html" directly for the SSR page.
  3085. if (false) {}
  3086. this.abortComponentLoad(as); // If the url change is only related to a hash change
  3087. // We should not proceed. We should only change the state.
  3088. // WARNING: `_h` is an internal option for handing Next.js client-side
  3089. // hydration. Your app should _never_ use this property. It may change at
  3090. // any time without notice.
  3091. if (!options._h && this.onlyAHashChange(as)) {
  3092. this.asPath = as;
  3093. Router.events.emit('hashChangeStart', as);
  3094. this.changeState(method, url, as, options);
  3095. this.scrollToHash(as);
  3096. Router.events.emit('hashChangeComplete', as);
  3097. return resolve(true);
  3098. }
  3099. const {
  3100. pathname,
  3101. query,
  3102. protocol
  3103. } = url_1.parse(url, true);
  3104. if (!pathname || protocol) {
  3105. if (false) {}
  3106. return resolve(false);
  3107. } // If asked to change the current URL we should reload the current page
  3108. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  3109. // We also need to set the method = replaceState always
  3110. // as this should not go into the history (That's how browsers work)
  3111. // We should compare the new asPath to the current asPath, not the url
  3112. if (!this.urlIsNew(as)) {
  3113. method = 'replaceState';
  3114. }
  3115. const route = toRoute(pathname);
  3116. const {
  3117. shallow = false
  3118. } = options;
  3119. if (is_dynamic_1.isDynamicRoute(route)) {
  3120. const {
  3121. pathname: asPathname
  3122. } = url_1.parse(as);
  3123. const routeRegex = route_regex_1.getRouteRegex(route);
  3124. const routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  3125. if (!routeMatch) {
  3126. const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
  3127. if (missingParams.length > 0) {
  3128. if (false) {}
  3129. 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`));
  3130. }
  3131. } else {
  3132. // Merge params into `query`, overwriting any specified in search
  3133. Object.assign(query, routeMatch);
  3134. }
  3135. }
  3136. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  3137. this.getRouteInfo(route, pathname, query, as, shallow).then(routeInfo => {
  3138. const {
  3139. error
  3140. } = routeInfo;
  3141. if (error && error.cancelled) {
  3142. return resolve(false);
  3143. }
  3144. Router.events.emit('beforeHistoryChange', as);
  3145. this.changeState(method, url, as, options);
  3146. if (false) {}
  3147. this.set(route, pathname, query, as, routeInfo);
  3148. if (error) {
  3149. Router.events.emit('routeChangeError', error, as);
  3150. throw error;
  3151. }
  3152. Router.events.emit('routeChangeComplete', as);
  3153. return resolve(true);
  3154. }, reject);
  3155. });
  3156. }
  3157. changeState(method, url, as, options = {}) {
  3158. if (false) {}
  3159. if (method !== 'pushState' || utils_1.getURL() !== as) {
  3160. window.history[method]({
  3161. url,
  3162. as,
  3163. options
  3164. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  3165. // Passing the empty string here should be safe against future changes to the method.
  3166. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  3167. '', as);
  3168. }
  3169. }
  3170. getRouteInfo(route, pathname, query, as, shallow = false) {
  3171. const cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  3172. // If the route is already rendered on the screen.
  3173. if (shallow && cachedRouteInfo && this.route === route) {
  3174. return Promise.resolve(cachedRouteInfo);
  3175. }
  3176. const handleError = (err, loadErrorFail) => {
  3177. return new Promise(resolve => {
  3178. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  3179. // If we can't load the page it could be one of following reasons
  3180. // 1. Page doesn't exists
  3181. // 2. Page does exist in a different zone
  3182. // 3. Internal error while loading the page
  3183. // So, doing a hard reload is the proper way to deal with this.
  3184. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  3185. // So, we need to mark it as a cancelled error and stop the routing logic.
  3186. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  3187. return resolve({
  3188. error: err
  3189. });
  3190. }
  3191. if (err.cancelled) {
  3192. // @ts-ignore TODO: fix the control flow here
  3193. return resolve({
  3194. error: err
  3195. });
  3196. }
  3197. resolve(this.fetchComponent('/_error').then(res => {
  3198. const {
  3199. page: Component
  3200. } = res;
  3201. const routeInfo = {
  3202. Component,
  3203. err
  3204. };
  3205. return new Promise(resolve => {
  3206. this.getInitialProps(Component, {
  3207. err,
  3208. pathname,
  3209. query
  3210. }).then(props => {
  3211. routeInfo.props = props;
  3212. routeInfo.error = err;
  3213. resolve(routeInfo);
  3214. }, gipErr => {
  3215. console.error('Error in error page `getInitialProps`: ', gipErr);
  3216. routeInfo.error = err;
  3217. routeInfo.props = {};
  3218. resolve(routeInfo);
  3219. });
  3220. });
  3221. }).catch(err => handleError(err, true)));
  3222. });
  3223. };
  3224. return new Promise((resolve, reject) => {
  3225. if (cachedRouteInfo) {
  3226. return resolve(cachedRouteInfo);
  3227. }
  3228. this.fetchComponent(route).then(res => resolve({
  3229. Component: res.page,
  3230. __N_SSG: res.mod.__N_SSG,
  3231. __N_SSP: res.mod.__N_SSP
  3232. }), reject);
  3233. }).then(routeInfo => {
  3234. const {
  3235. Component,
  3236. __N_SSG,
  3237. __N_SSP
  3238. } = routeInfo;
  3239. if (false) {}
  3240. 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`
  3241. {
  3242. pathname,
  3243. query,
  3244. asPath: as
  3245. })).then(props => {
  3246. routeInfo.props = props;
  3247. this.components[route] = routeInfo;
  3248. return routeInfo;
  3249. });
  3250. }).catch(handleError);
  3251. }
  3252. set(route, pathname, query, as, data) {
  3253. this.isFallback = false;
  3254. this.route = route;
  3255. this.pathname = pathname;
  3256. this.query = query;
  3257. this.asPath = as;
  3258. this.notify(data);
  3259. }
  3260. /**
  3261. * Callback to execute before replacing router state
  3262. * @param cb callback to be executed
  3263. */
  3264. beforePopState(cb) {
  3265. this._bps = cb;
  3266. }
  3267. onlyAHashChange(as) {
  3268. if (!this.asPath) return false;
  3269. const [oldUrlNoHash, oldHash] = this.asPath.split('#');
  3270. const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
  3271. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  3272. return true;
  3273. } // If the urls are change, there's more than a hash change
  3274. if (oldUrlNoHash !== newUrlNoHash) {
  3275. return false;
  3276. } // If the hash has changed, then it's a hash only change.
  3277. // This check is necessary to handle both the enter and
  3278. // leave hash === '' cases. The identity case falls through
  3279. // and is treated as a next reload.
  3280. return oldHash !== newHash;
  3281. }
  3282. scrollToHash(as) {
  3283. const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value
  3284. if (hash === '') {
  3285. window.scrollTo(0, 0);
  3286. return;
  3287. } // First we check if the element by id is found
  3288. const idEl = document.getElementById(hash);
  3289. if (idEl) {
  3290. idEl.scrollIntoView();
  3291. return;
  3292. } // If there's no element with the id, we check the `name` property
  3293. // To mirror browsers
  3294. const nameEl = document.getElementsByName(hash)[0];
  3295. if (nameEl) {
  3296. nameEl.scrollIntoView();
  3297. }
  3298. }
  3299. urlIsNew(asPath) {
  3300. return this.asPath !== asPath;
  3301. }
  3302. /**
  3303. * Prefetch page code, you may wait for the data during page rendering.
  3304. * This feature only works in production!
  3305. * @param url the href of prefetched page
  3306. * @param asPath the as path of the prefetched page
  3307. */
  3308. prefetch(url, asPath = url, options = {}) {
  3309. return new Promise((resolve, reject) => {
  3310. const {
  3311. pathname,
  3312. protocol
  3313. } = url_1.parse(url);
  3314. if (!pathname || protocol) {
  3315. if (false) {}
  3316. return;
  3317. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  3318. if (false) {}
  3319. const route = delBasePath(toRoute(pathname));
  3320. Promise.all([this.pageLoader.prefetchData(url, delBasePath(asPath)), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(() => resolve(), reject);
  3321. });
  3322. }
  3323. async fetchComponent(route) {
  3324. let cancelled = false;
  3325. const cancel = this.clc = () => {
  3326. cancelled = true;
  3327. };
  3328. route = delBasePath(route);
  3329. const componentResult = await this.pageLoader.loadPage(route);
  3330. if (cancelled) {
  3331. const error = new Error(`Abort fetching component for route: "${route}"`);
  3332. error.cancelled = true;
  3333. throw error;
  3334. }
  3335. if (cancel === this.clc) {
  3336. this.clc = null;
  3337. }
  3338. return componentResult;
  3339. }
  3340. _getData(fn) {
  3341. let cancelled = false;
  3342. const cancel = () => {
  3343. cancelled = true;
  3344. };
  3345. this.clc = cancel;
  3346. return fn().then(data => {
  3347. if (cancel === this.clc) {
  3348. this.clc = null;
  3349. }
  3350. if (cancelled) {
  3351. const err = new Error('Loading initial props cancelled');
  3352. err.cancelled = true;
  3353. throw err;
  3354. }
  3355. return data;
  3356. });
  3357. }
  3358. getInitialProps(Component, ctx) {
  3359. const {
  3360. Component: App
  3361. } = this.components['/_app'];
  3362. const AppTree = this._wrapApp(App);
  3363. ctx.AppTree = AppTree;
  3364. return utils_1.loadGetInitialProps(App, {
  3365. AppTree,
  3366. Component,
  3367. router: this,
  3368. ctx
  3369. });
  3370. }
  3371. abortComponentLoad(as) {
  3372. if (this.clc) {
  3373. const e = new Error('Route Cancelled');
  3374. e.cancelled = true;
  3375. Router.events.emit('routeChangeError', e, as);
  3376. this.clc();
  3377. this.clc = null;
  3378. }
  3379. }
  3380. notify(data) {
  3381. this.sub(data, this.components['/_app'].Component);
  3382. }
  3383. }
  3384. exports.default = Router;
  3385. Router.events = mitt_1.default();
  3386. /***/ }),
  3387. /***/ "g/15":
  3388. /***/ (function(module, exports, __webpack_require__) {
  3389. "use strict";
  3390. Object.defineProperty(exports, "__esModule", {
  3391. value: true
  3392. });
  3393. const url_1 = __webpack_require__("bzos");
  3394. /**
  3395. * Utils
  3396. */
  3397. function execOnce(fn) {
  3398. let used = false;
  3399. let result;
  3400. return (...args) => {
  3401. if (!used) {
  3402. used = true;
  3403. result = fn(...args);
  3404. }
  3405. return result;
  3406. };
  3407. }
  3408. exports.execOnce = execOnce;
  3409. function getLocationOrigin() {
  3410. const {
  3411. protocol,
  3412. hostname,
  3413. port
  3414. } = window.location;
  3415. return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  3416. }
  3417. exports.getLocationOrigin = getLocationOrigin;
  3418. function getURL() {
  3419. const {
  3420. href
  3421. } = window.location;
  3422. const origin = getLocationOrigin();
  3423. return href.substring(origin.length);
  3424. }
  3425. exports.getURL = getURL;
  3426. function getDisplayName(Component) {
  3427. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  3428. }
  3429. exports.getDisplayName = getDisplayName;
  3430. function isResSent(res) {
  3431. return res.finished || res.headersSent;
  3432. }
  3433. exports.isResSent = isResSent;
  3434. async function loadGetInitialProps(App, ctx) {
  3435. var _a;
  3436. if (false) {} // when called from _app `ctx` is nested in `ctx`
  3437. const res = ctx.res || ctx.ctx && ctx.ctx.res;
  3438. if (!App.getInitialProps) {
  3439. if (ctx.ctx && ctx.Component) {
  3440. // @ts-ignore pageProps default
  3441. return {
  3442. pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
  3443. };
  3444. }
  3445. return {};
  3446. }
  3447. const props = await App.getInitialProps(ctx);
  3448. if (res && isResSent(res)) {
  3449. return props;
  3450. }
  3451. if (!props) {
  3452. const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
  3453. throw new Error(message);
  3454. }
  3455. if (false) {}
  3456. return props;
  3457. }
  3458. exports.loadGetInitialProps = loadGetInitialProps;
  3459. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  3460. function formatWithValidation(url, options) {
  3461. if (false) {}
  3462. return url_1.format(url, options);
  3463. }
  3464. exports.formatWithValidation = formatWithValidation;
  3465. exports.SP = typeof performance !== 'undefined';
  3466. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  3467. /***/ }),
  3468. /***/ "gguc":
  3469. /***/ (function(module, exports, __webpack_require__) {
  3470. "use strict";
  3471. Object.defineProperty(exports, "__esModule", {
  3472. value: true
  3473. });
  3474. function getRouteMatcher(routeRegex) {
  3475. const {
  3476. re,
  3477. groups
  3478. } = routeRegex;
  3479. return pathname => {
  3480. const routeMatch = re.exec(pathname);
  3481. if (!routeMatch) {
  3482. return false;
  3483. }
  3484. const decode = param => {
  3485. try {
  3486. return decodeURIComponent(param);
  3487. } catch (_) {
  3488. const err = new Error('failed to decode param');
  3489. err.code = 'DECODE_FAILED';
  3490. throw err;
  3491. }
  3492. };
  3493. const params = {};
  3494. Object.keys(groups).forEach(slugName => {
  3495. const g = groups[slugName];
  3496. const m = routeMatch[g.pos];
  3497. if (m !== undefined) {
  3498. params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
  3499. }
  3500. });
  3501. return params;
  3502. };
  3503. }
  3504. exports.getRouteMatcher = getRouteMatcher;
  3505. /***/ }),
  3506. /***/ "gifY":
  3507. /***/ (function(module, exports) {
  3508. module.exports = require("react-html-parser");
  3509. /***/ }),
  3510. /***/ "i4t8":
  3511. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3512. "use strict";
  3513. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridItem; });
  3514. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3515. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3516. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3517. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3518. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3519. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3520. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3521. 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); }
  3522. 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; }
  3523. 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; }
  3524. // nodejs library to set properties for components
  3525. // @material-ui/core components
  3526. const styles = {
  3527. grid: {
  3528. position: "relative",
  3529. width: "100%",
  3530. minHeight: "1px",
  3531. paddingRight: "15px",
  3532. paddingLeft: "15px",
  3533. flexBasis: "auto"
  3534. }
  3535. };
  3536. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3537. function GridItem(props) {
  3538. const classes = useStyles();
  3539. const {
  3540. children,
  3541. className
  3542. } = props,
  3543. rest = _objectWithoutProperties(props, ["children", "className"]);
  3544. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3545. item: true
  3546. }, rest, {
  3547. className: classes.grid + " " + className
  3548. }), children);
  3549. }
  3550. GridItem.defaultProps = {
  3551. className: ""
  3552. };
  3553. /***/ }),
  3554. /***/ "jD8W":
  3555. /***/ (function(module, exports) {
  3556. module.exports = require("@material-ui/core/Popper");
  3557. /***/ }),
  3558. /***/ "kYf9":
  3559. /***/ (function(module, exports) {
  3560. module.exports = require("next/dist/next-server/lib/utils.js");
  3561. /***/ }),
  3562. /***/ "mf1M":
  3563. /***/ (function(module, exports) {
  3564. module.exports = require("@material-ui/core/Grow");
  3565. /***/ }),
  3566. /***/ "mtPR":
  3567. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3568. "use strict";
  3569. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridContainer; });
  3570. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3571. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3572. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3573. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3574. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3575. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3576. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3577. 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); }
  3578. 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; }
  3579. 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; }
  3580. // nodejs library to set properties for components
  3581. // @material-ui/core components
  3582. const styles = {
  3583. grid: {
  3584. marginRight: "-15px",
  3585. marginLeft: "-15px",
  3586. width: "auto"
  3587. }
  3588. };
  3589. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3590. function GridContainer(props) {
  3591. const classes = useStyles();
  3592. const {
  3593. children,
  3594. className
  3595. } = props,
  3596. rest = _objectWithoutProperties(props, ["children", "className"]);
  3597. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3598. container: true
  3599. }, rest, {
  3600. className: classes.grid + " " + className
  3601. }), children);
  3602. }
  3603. GridContainer.defaultProps = {
  3604. className: ""
  3605. };
  3606. /***/ }),
  3607. /***/ "nOHt":
  3608. /***/ (function(module, exports, __webpack_require__) {
  3609. "use strict";
  3610. var _interopRequireWildcard = __webpack_require__("7KCV");
  3611. var _interopRequireDefault = __webpack_require__("AroE");
  3612. exports.__esModule = true;
  3613. exports.useRouter = useRouter;
  3614. exports.makePublicRouterInstance = makePublicRouterInstance;
  3615. exports.createRouter = exports.withRouter = exports.default = void 0;
  3616. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  3617. var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
  3618. exports.Router = _router2.default;
  3619. exports.NextRouter = _router2.NextRouter;
  3620. var _routerContext = __webpack_require__("Osoz");
  3621. var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
  3622. exports.withRouter = _withRouter.default;
  3623. /* global window */
  3624. var singletonRouter = {
  3625. router: null,
  3626. // holds the actual router instance
  3627. readyCallbacks: [],
  3628. ready(cb) {
  3629. if (this.router) return cb();
  3630. if (false) {}
  3631. }
  3632. }; // Create public properties and methods of the router in the singletonRouter
  3633. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  3634. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  3635. 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
  3636. Object.defineProperty(singletonRouter, 'events', {
  3637. get() {
  3638. return _router2.default.events;
  3639. }
  3640. });
  3641. urlPropertyFields.forEach(field => {
  3642. // Here we need to use Object.defineProperty because, we need to return
  3643. // the property assigned to the actual router
  3644. // The value might get changed as we change routes and this is the
  3645. // proper way to access it
  3646. Object.defineProperty(singletonRouter, field, {
  3647. get() {
  3648. var router = getRouter();
  3649. return router[field];
  3650. }
  3651. });
  3652. });
  3653. coreMethodFields.forEach(field => {
  3654. // We don't really know the types here, so we add them later instead
  3655. ;
  3656. singletonRouter[field] = function () {
  3657. var router = getRouter();
  3658. return router[field](...arguments);
  3659. };
  3660. });
  3661. routerEvents.forEach(event => {
  3662. singletonRouter.ready(() => {
  3663. _router2.default.events.on(event, function () {
  3664. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  3665. var _singletonRouter = singletonRouter;
  3666. if (_singletonRouter[eventField]) {
  3667. try {
  3668. _singletonRouter[eventField](...arguments);
  3669. } catch (err) {
  3670. // tslint:disable-next-line:no-console
  3671. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  3672. console.error(err.message + "\n" + err.stack);
  3673. }
  3674. }
  3675. });
  3676. });
  3677. });
  3678. function getRouter() {
  3679. if (!singletonRouter.router) {
  3680. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  3681. throw new Error(message);
  3682. }
  3683. return singletonRouter.router;
  3684. } // Export the singletonRouter and this is the public API.
  3685. var _default = singletonRouter; // Reexport the withRoute HOC
  3686. exports.default = _default;
  3687. function useRouter() {
  3688. return _react.default.useContext(_routerContext.RouterContext);
  3689. } // INTERNAL APIS
  3690. // -------------
  3691. // (do not use following exports inside the app)
  3692. // Create a router and assign it as the singleton instance.
  3693. // This is used in client side when we are initilizing the app.
  3694. // This should **not** use inside the server.
  3695. var createRouter = function createRouter() {
  3696. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  3697. args[_key] = arguments[_key];
  3698. }
  3699. singletonRouter.router = new _router2.default(...args);
  3700. singletonRouter.readyCallbacks.forEach(cb => cb());
  3701. singletonRouter.readyCallbacks = [];
  3702. return singletonRouter.router;
  3703. }; // This function is used to create the `withRouter` router instance
  3704. exports.createRouter = createRouter;
  3705. function makePublicRouterInstance(router) {
  3706. var _router = router;
  3707. var instance = {};
  3708. for (var property of urlPropertyFields) {
  3709. if (typeof _router[property] === 'object') {
  3710. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  3711. continue;
  3712. }
  3713. instance[property] = _router[property];
  3714. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  3715. instance.events = _router2.default.events;
  3716. coreMethodFields.forEach(field => {
  3717. instance[field] = function () {
  3718. return _router[field](...arguments);
  3719. };
  3720. });
  3721. return instance;
  3722. }
  3723. /***/ }),
  3724. /***/ "nybW":
  3725. /***/ (function(module, exports) {
  3726. module.exports = require("@material-ui/core/Divider");
  3727. /***/ }),
  3728. /***/ "oLCs":
  3729. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3730. "use strict";
  3731. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  3732. const footerStyle = {
  3733. block: {
  3734. color: "inherit",
  3735. padding: "0.9375rem",
  3736. fontWeight: "500",
  3737. fontSize: "12px",
  3738. textTransform: "uppercase",
  3739. borderRadius: "3px",
  3740. textDecoration: "none",
  3741. position: "relative",
  3742. display: "block"
  3743. },
  3744. left: {
  3745. float: "left!important",
  3746. display: "block"
  3747. },
  3748. right: {
  3749. padding: "15px 0",
  3750. margin: "0",
  3751. float: "right!important"
  3752. },
  3753. footer: {
  3754. padding: "0.9375rem 0",
  3755. textAlign: "center",
  3756. display: "flex",
  3757. zIndex: "2",
  3758. position: "relative"
  3759. },
  3760. a: {
  3761. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* primaryColor */ "p"],
  3762. textDecoration: "none",
  3763. backgroundColor: "transparent"
  3764. },
  3765. footerWhiteFont: {
  3766. "&,&:hover,&:focus": {
  3767. color: "#FFFFFF"
  3768. }
  3769. },
  3770. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  3771. list: {
  3772. marginBottom: "0",
  3773. padding: "0",
  3774. marginTop: "0"
  3775. },
  3776. inlineBlock: {
  3777. display: "inline-block",
  3778. padding: "0px",
  3779. width: "auto"
  3780. },
  3781. icon: {
  3782. width: "18px",
  3783. height: "18px",
  3784. position: "relative",
  3785. top: "3px"
  3786. }
  3787. };
  3788. /* harmony default export */ __webpack_exports__["a"] = (footerStyle);
  3789. /***/ }),
  3790. /***/ "qt1I":
  3791. /***/ (function(module, exports) {
  3792. module.exports = require("@material-ui/core/Paper");
  3793. /***/ }),
  3794. /***/ "x54t":
  3795. /***/ (function(module, exports) {
  3796. module.exports = require("@material-ui/core/MenuItem");
  3797. /***/ }),
  3798. /***/ "xmQw":
  3799. /***/ (function(module, exports) {
  3800. module.exports = require("@material-ui/core/MenuList");
  3801. /***/ }),
  3802. /***/ "z+8S":
  3803. /***/ (function(module, exports) {
  3804. module.exports = require("@apollo/client");
  3805. /***/ })
  3806. /******/ });