Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

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