You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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