Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

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