選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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