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.
 
 

5163 regels
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 = 80);
  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. /***/ 80:
  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. /***/ "Ms0O":
  1851. /***/ (function(module, exports) {
  1852. module.exports = require("@material-ui/core/Toolbar");
  1853. /***/ }),
  1854. /***/ "Osoz":
  1855. /***/ (function(module, exports) {
  1856. module.exports = require("next/dist/next-server/lib/router-context.js");
  1857. /***/ }),
  1858. /***/ "Q01v":
  1859. /***/ (function(module, exports) {
  1860. module.exports = require("@material-ui/core/Drawer");
  1861. /***/ }),
  1862. /***/ "QMLM":
  1863. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1864. "use strict";
  1865. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  1866. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  1867. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  1868. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  1869. /* harmony import */ var components_Snackbar_SnackbarContent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("FoiA");
  1870. /* harmony import */ var assets_jss_nextjs_material_kit_pages_componentsSections_notificationsStyles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("7WNa");
  1871. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  1872. // @material-ui/core components
  1873. // Component
  1874. 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"]);
  1875. const DataSnackbarContent = function () {
  1876. const classes = useStyles();
  1877. return __jsx("div", {
  1878. align: "center"
  1879. }, __jsx("div", {
  1880. align: "center",
  1881. className: classes.section,
  1882. id: "notifications"
  1883. }, __jsx(components_Snackbar_SnackbarContent_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], {
  1884. message: __jsx("h4", null, "Thamrin Group bersama Anda melawan COVID-19. Untuk informasi silakan ", __jsx("a", {
  1885. href: "https://covid19.go.id/",
  1886. target: "_blank",
  1887. className: classes.block
  1888. }, "klik di sini.")),
  1889. align: "center",
  1890. color: "info"
  1891. })));
  1892. };
  1893. /* harmony default export */ __webpack_exports__["a"] = (DataSnackbarContent);
  1894. /***/ }),
  1895. /***/ "QOEo":
  1896. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1897. "use strict";
  1898. // EXPORTS
  1899. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomDropdown; });
  1900. // EXTERNAL MODULE: external "react"
  1901. var external_react_ = __webpack_require__("cDcd");
  1902. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1903. // EXTERNAL MODULE: external "classnames"
  1904. var external_classnames_ = __webpack_require__("K2gz");
  1905. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1906. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1907. var styles_ = __webpack_require__("9Pu4");
  1908. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  1909. var MenuItem_ = __webpack_require__("x54t");
  1910. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  1911. // EXTERNAL MODULE: external "@material-ui/core/MenuList"
  1912. var MenuList_ = __webpack_require__("xmQw");
  1913. var MenuList_default = /*#__PURE__*/__webpack_require__.n(MenuList_);
  1914. // EXTERNAL MODULE: external "@material-ui/core/ClickAwayListener"
  1915. var ClickAwayListener_ = __webpack_require__("31Yn");
  1916. var ClickAwayListener_default = /*#__PURE__*/__webpack_require__.n(ClickAwayListener_);
  1917. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  1918. var Paper_ = __webpack_require__("qt1I");
  1919. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  1920. // EXTERNAL MODULE: external "@material-ui/core/Grow"
  1921. var Grow_ = __webpack_require__("mf1M");
  1922. var Grow_default = /*#__PURE__*/__webpack_require__.n(Grow_);
  1923. // EXTERNAL MODULE: external "@material-ui/core/Divider"
  1924. var Divider_ = __webpack_require__("nybW");
  1925. var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
  1926. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  1927. var Icon_ = __webpack_require__("7vM9");
  1928. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  1929. // EXTERNAL MODULE: external "@material-ui/core/Popper"
  1930. var Popper_ = __webpack_require__("jD8W");
  1931. var Popper_default = /*#__PURE__*/__webpack_require__.n(Popper_);
  1932. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  1933. var Button = __webpack_require__("Kg+a");
  1934. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1935. var nextjs_material_kit = __webpack_require__("eDSW");
  1936. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customDropdownStyle.js
  1937. 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; }
  1938. 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; }
  1939. 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; }
  1940. const customDropdownStyle = theme => ({
  1941. popperClose: {
  1942. pointerEvents: "none"
  1943. },
  1944. pooperNav: {
  1945. [theme.breakpoints.down("sm")]: {
  1946. position: "static !important",
  1947. left: "unset !important",
  1948. top: "unset !important",
  1949. transform: "none !important",
  1950. willChange: "none !important",
  1951. "& > div": {
  1952. boxShadow: "none !important",
  1953. marginLeft: "1.5rem",
  1954. marginRight: "1.5rem",
  1955. transition: "none !important",
  1956. marginTop: "0px !important",
  1957. marginBottom: "5px !important",
  1958. padding: "0px !important"
  1959. }
  1960. }
  1961. },
  1962. dropdown: {
  1963. borderRadius: "3px",
  1964. border: "0",
  1965. boxShadow: "0 2px 5px 0 rgba(0, 0, 0, 0.26)",
  1966. top: "100%",
  1967. zIndex: "1000",
  1968. minWidth: "160px",
  1969. padding: "5px 0",
  1970. margin: "2px 0 0",
  1971. fontSize: "14px",
  1972. textAlign: "left",
  1973. listStyle: "none",
  1974. backgroundColor: "#fff",
  1975. backgroundClip: "padding-box"
  1976. },
  1977. menuList: {
  1978. padding: "0"
  1979. },
  1980. popperResponsive: {
  1981. zIndex: "1200",
  1982. position: "absolute !important",
  1983. [theme.breakpoints.down("sm")]: {
  1984. zIndex: "1640",
  1985. position: "static !important",
  1986. float: "none",
  1987. width: "auto",
  1988. marginTop: "0",
  1989. backgroundColor: "transparent",
  1990. border: "0",
  1991. boxShadow: "none",
  1992. color: "black"
  1993. }
  1994. },
  1995. dropdownItem: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  1996. fontSize: "13px",
  1997. padding: "10px 20px",
  1998. margin: "0 5px",
  1999. borderRadius: "2px",
  2000. position: "relative",
  2001. transition: "all 150ms linear",
  2002. display: "block",
  2003. clear: "both",
  2004. fontWeight: "400",
  2005. height: "fit-content",
  2006. color: "#333",
  2007. whiteSpace: "nowrap",
  2008. minHeight: "unset"
  2009. }),
  2010. blackHover: {
  2011. "&:hover": {
  2012. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)",
  2013. backgroundColor: "#212121",
  2014. color: "#fff"
  2015. }
  2016. },
  2017. primaryHover: {
  2018. "&:hover": _objectSpread({
  2019. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2020. color: "#FFFFFF"
  2021. }, nextjs_material_kit["n" /* primaryBoxShadow */])
  2022. },
  2023. infoHover: {
  2024. "&:hover": _objectSpread({
  2025. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2026. color: "#FFFFFF"
  2027. }, nextjs_material_kit["k" /* infoBoxShadow */])
  2028. },
  2029. successHover: {
  2030. "&:hover": _objectSpread({
  2031. backgroundColor: nextjs_material_kit["u" /* successColor */],
  2032. color: "#FFFFFF"
  2033. }, nextjs_material_kit["s" /* successBoxShadow */])
  2034. },
  2035. warningHover: {
  2036. "&:hover": _objectSpread({
  2037. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  2038. color: "#FFFFFF"
  2039. }, nextjs_material_kit["x" /* warningBoxShadow */])
  2040. },
  2041. dangerHover: {
  2042. "&:hover": _objectSpread({
  2043. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  2044. color: "#FFFFFF"
  2045. }, nextjs_material_kit["d" /* dangerBoxShadow */])
  2046. },
  2047. roseHover: {
  2048. "&:hover": _objectSpread({
  2049. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  2050. color: "#FFFFFF"
  2051. }, nextjs_material_kit["q" /* roseBoxShadow */])
  2052. },
  2053. dropdownItemRTL: {
  2054. textAlign: "right"
  2055. },
  2056. dropdownDividerItem: {
  2057. margin: "5px 0",
  2058. backgroundColor: "rgba(0, 0, 0, 0.12)",
  2059. height: "1px",
  2060. overflow: "hidden"
  2061. },
  2062. buttonIcon: {
  2063. width: "20px",
  2064. height: "20px"
  2065. },
  2066. caret: {
  2067. transition: "all 150ms ease-in",
  2068. display: "inline-block",
  2069. width: "0",
  2070. height: "0",
  2071. marginLeft: "4px",
  2072. verticalAlign: "middle",
  2073. borderTop: "4px solid",
  2074. borderRight: "4px solid transparent",
  2075. borderLeft: "4px solid transparent"
  2076. },
  2077. caretActive: {
  2078. transform: "rotate(180deg)"
  2079. },
  2080. caretRTL: {
  2081. marginRight: "4px"
  2082. },
  2083. dropdownHeader: {
  2084. display: "block",
  2085. padding: "0.1875rem 1.25rem",
  2086. fontSize: "0.75rem",
  2087. lineHeight: "1.428571",
  2088. color: "#777",
  2089. whiteSpace: "nowrap",
  2090. fontWeight: "inherit",
  2091. marginTop: "10px",
  2092. minHeight: "unset",
  2093. "&:hover,&:focus": {
  2094. backgroundColor: "transparent",
  2095. cursor: "auto"
  2096. }
  2097. },
  2098. noLiPadding: {
  2099. padding: "0"
  2100. }
  2101. });
  2102. /* harmony default export */ var components_customDropdownStyle = (customDropdownStyle);
  2103. // CONCATENATED MODULE: ./components/CustomDropdown/CustomDropdown.js
  2104. var __jsx = external_react_default.a.createElement;
  2105. 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); }
  2106. // nodejs library that concatenates classes
  2107. // nodejs library to set properties for components
  2108. // @material-ui/core components
  2109. // core components
  2110. const useStyles = Object(styles_["makeStyles"])(components_customDropdownStyle);
  2111. function CustomDropdown(props) {
  2112. const [anchorEl, setAnchorEl] = external_react_default.a.useState(null);
  2113. const handleClick = event => {
  2114. if (anchorEl && anchorEl.contains(event.target)) {
  2115. setAnchorEl(null);
  2116. } else {
  2117. setAnchorEl(event.currentTarget);
  2118. }
  2119. };
  2120. const handleClose = param => {
  2121. setAnchorEl(null);
  2122. if (props && props.onClick) {
  2123. props.onClick(param);
  2124. }
  2125. };
  2126. const handleCloseAway = event => {
  2127. if (anchorEl.contains(event.target)) {
  2128. return;
  2129. }
  2130. setAnchorEl(null);
  2131. };
  2132. const classes = useStyles();
  2133. const {
  2134. buttonText,
  2135. buttonIcon,
  2136. dropdownList,
  2137. buttonProps,
  2138. dropup,
  2139. dropdownHeader,
  2140. caret,
  2141. hoverColor,
  2142. left,
  2143. rtlActive,
  2144. noLiPadding,
  2145. navDropdown
  2146. } = props;
  2147. const caretClasses = external_classnames_default()({
  2148. [classes.caret]: true,
  2149. [classes.caretActive]: Boolean(anchorEl),
  2150. [classes.caretRTL]: rtlActive
  2151. });
  2152. const dropdownItem = external_classnames_default()({
  2153. [classes.dropdownItem]: true,
  2154. [classes[hoverColor + "Hover"]]: true,
  2155. [classes.noLiPadding]: noLiPadding,
  2156. [classes.dropdownItemRTL]: rtlActive
  2157. });
  2158. let icon = null;
  2159. switch (typeof buttonIcon) {
  2160. case "object":
  2161. icon = __jsx(props.buttonIcon, {
  2162. className: classes.buttonIcon
  2163. });
  2164. break;
  2165. case "string":
  2166. icon = __jsx(Icon_default.a, {
  2167. className: classes.buttonIcon
  2168. }, props.buttonIcon);
  2169. break;
  2170. default:
  2171. icon = null;
  2172. break;
  2173. }
  2174. return __jsx("div", null, __jsx("div", null, __jsx(Button["a" /* default */], _extends({
  2175. "aria-label": "Notifications",
  2176. "aria-owns": anchorEl ? "menu-list" : null,
  2177. "aria-haspopup": "true"
  2178. }, buttonProps, {
  2179. onClick: handleClick
  2180. }), icon, buttonText !== undefined ? buttonText : null, caret ? __jsx("b", {
  2181. className: caretClasses
  2182. }) : null)), __jsx(Popper_default.a, {
  2183. open: Boolean(anchorEl),
  2184. anchorEl: anchorEl,
  2185. transition: true,
  2186. disablePortal: true,
  2187. placement: dropup ? left ? "top-start" : "top" : left ? "bottom-start" : "bottom",
  2188. className: external_classnames_default()({
  2189. [classes.popperClose]: !anchorEl,
  2190. [classes.popperResponsive]: true,
  2191. [classes.pooperNav]: Boolean(anchorEl) && navDropdown
  2192. })
  2193. }, () => __jsx(Grow_default.a, {
  2194. in: Boolean(anchorEl),
  2195. id: "menu-list",
  2196. style: dropup ? {
  2197. transformOrigin: "0 100% 0"
  2198. } : {
  2199. transformOrigin: "0 0 0"
  2200. }
  2201. }, __jsx(Paper_default.a, {
  2202. className: classes.dropdown
  2203. }, __jsx(ClickAwayListener_default.a, {
  2204. onClickAway: handleCloseAway
  2205. }, __jsx(MenuList_default.a, {
  2206. role: "menu",
  2207. className: classes.menuList
  2208. }, dropdownHeader !== undefined ? __jsx(MenuItem_default.a, {
  2209. onClick: () => handleClose(dropdownHeader),
  2210. className: classes.dropdownHeader
  2211. }, dropdownHeader) : null, dropdownList.map((prop, key) => {
  2212. if (prop.divider) {
  2213. return __jsx(Divider_default.a, {
  2214. key: key,
  2215. onClick: () => handleClose("divider"),
  2216. className: classes.dropdownDividerItem
  2217. });
  2218. }
  2219. return __jsx(MenuItem_default.a, {
  2220. key: key,
  2221. onClick: () => handleClose(prop),
  2222. className: dropdownItem
  2223. }, prop);
  2224. })))))));
  2225. }
  2226. CustomDropdown.defaultProps = {
  2227. caret: true,
  2228. hoverColor: "primary"
  2229. };
  2230. /***/ }),
  2231. /***/ "UsYt":
  2232. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2233. "use strict";
  2234. // EXPORTS
  2235. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CardBody; });
  2236. // EXTERNAL MODULE: external "react"
  2237. var external_react_ = __webpack_require__("cDcd");
  2238. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2239. // EXTERNAL MODULE: external "classnames"
  2240. var external_classnames_ = __webpack_require__("K2gz");
  2241. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2242. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2243. var styles_ = __webpack_require__("9Pu4");
  2244. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardBodyStyle.js
  2245. const cardBodyStyle = {
  2246. cardBody: {
  2247. padding: "0.9375rem 1.875rem",
  2248. flex: "1 1 auto"
  2249. }
  2250. };
  2251. /* harmony default export */ var components_cardBodyStyle = (cardBodyStyle);
  2252. // CONCATENATED MODULE: ./components/Card/CardBody.js
  2253. var __jsx = external_react_default.a.createElement;
  2254. 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); }
  2255. 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; }
  2256. 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; }
  2257. // nodejs library that concatenates classes
  2258. // nodejs library to set properties for components
  2259. // @material-ui/core components
  2260. // @material-ui/icons
  2261. // core components
  2262. const useStyles = Object(styles_["makeStyles"])(components_cardBodyStyle);
  2263. function CardBody(props) {
  2264. const classes = useStyles();
  2265. const {
  2266. className,
  2267. children
  2268. } = props,
  2269. rest = _objectWithoutProperties(props, ["className", "children"]);
  2270. const cardBodyClasses = external_classnames_default()({
  2271. [classes.cardBody]: true,
  2272. [className]: className !== undefined
  2273. });
  2274. return __jsx("div", _extends({
  2275. className: cardBodyClasses
  2276. }, rest), children);
  2277. }
  2278. /***/ }),
  2279. /***/ "Wh1t":
  2280. /***/ (function(module, exports) {
  2281. module.exports = require("@material-ui/core/Button");
  2282. /***/ }),
  2283. /***/ "Y8uC":
  2284. /***/ (function(module, exports) {
  2285. module.exports = require("@material-ui/core/Hidden");
  2286. /***/ }),
  2287. /***/ "YFqc":
  2288. /***/ (function(module, exports, __webpack_require__) {
  2289. module.exports = __webpack_require__("cTJO")
  2290. /***/ }),
  2291. /***/ "YTqd":
  2292. /***/ (function(module, exports, __webpack_require__) {
  2293. "use strict";
  2294. Object.defineProperty(exports, "__esModule", {
  2295. value: true
  2296. }); // this isn't importing the escape-string-regex module
  2297. // to reduce bytes
  2298. function escapeRegex(str) {
  2299. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  2300. }
  2301. function getRouteRegex(normalizedRoute) {
  2302. // Escape all characters that could be considered RegEx
  2303. const escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  2304. const groups = {};
  2305. let groupIndex = 1;
  2306. const parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2307. const isCatchAll = /^(\\\.){3}/.test($1);
  2308. groups[$1 // Un-escape key
  2309. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  2310. ] = {
  2311. pos: groupIndex++,
  2312. repeat: isCatchAll
  2313. };
  2314. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  2315. });
  2316. let namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  2317. // while generating routes-manifest
  2318. if (true) {
  2319. namedParameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2320. const isCatchAll = /^(\\\.){3}/.test($1);
  2321. const key = $1 // Un-escape key
  2322. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '');
  2323. return isCatchAll ? `/(?<${escapeRegex(key)}>.+?)` : `/(?<${escapeRegex(key)}>[^/]+?)`;
  2324. });
  2325. }
  2326. return Object.assign({
  2327. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  2328. groups
  2329. }, namedParameterizedRoute ? {
  2330. namedRegex: `^${namedParameterizedRoute}(?:/)?$`
  2331. } : {});
  2332. }
  2333. exports.getRouteRegex = getRouteRegex;
  2334. /***/ }),
  2335. /***/ "Z2Lm":
  2336. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2337. "use strict";
  2338. // EXPORTS
  2339. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Parallax; });
  2340. // EXTERNAL MODULE: external "react"
  2341. var external_react_ = __webpack_require__("cDcd");
  2342. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2343. // EXTERNAL MODULE: external "classnames"
  2344. var external_classnames_ = __webpack_require__("K2gz");
  2345. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2346. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2347. var styles_ = __webpack_require__("9Pu4");
  2348. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/parallaxStyle.js
  2349. const parallaxStyle = theme => ({
  2350. parallax: {
  2351. height: "90vh",
  2352. maxHeight: "1000px",
  2353. overflow: "hidden",
  2354. position: "relative",
  2355. backgroundPosition: "center top",
  2356. backgroundSize: "cover",
  2357. margin: "0",
  2358. padding: "0",
  2359. border: "0",
  2360. display: "flex",
  2361. alignItems: "center"
  2362. },
  2363. filter: {
  2364. "&:before": {
  2365. background: "#212121"
  2366. },
  2367. "&:after,&:before": {
  2368. position: "absolute",
  2369. zIndex: "1",
  2370. width: "100%",
  2371. height: "100%",
  2372. display: "block",
  2373. left: "0",
  2374. top: "0",
  2375. content: "''"
  2376. }
  2377. },
  2378. small: {
  2379. height: "380px"
  2380. },
  2381. parallaxResponsive: {
  2382. [theme.breakpoints.down("md")]: {
  2383. minHeight: "660px"
  2384. }
  2385. }
  2386. });
  2387. /* harmony default export */ var components_parallaxStyle = (parallaxStyle);
  2388. // CONCATENATED MODULE: ./components/Parallax/Parallax.js
  2389. var __jsx = external_react_default.a.createElement;
  2390. 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; }
  2391. 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; }
  2392. 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; }
  2393. // nodejs library that concatenates classes
  2394. // nodejs library to set properties for components
  2395. // @material-ui/core components
  2396. // core components
  2397. const useStyles = Object(styles_["makeStyles"])(components_parallaxStyle);
  2398. function Parallax(props) {
  2399. let windowScrollTop; // if (window.innerWidth >= 768) {
  2400. // windowScrollTop = window.pageYOffset / 3;
  2401. // } else {
  2402. // windowScrollTop = 0;
  2403. // }
  2404. const [transform, setTransform] = external_react_default.a.useState("translate3d(0,0px,0)");
  2405. external_react_default.a.useEffect(() => {
  2406. if (window.innerWidth >= 768) {
  2407. window.addEventListener("scroll", resetTransform);
  2408. }
  2409. return function cleanup() {
  2410. if (window.innerWidth >= 768) {
  2411. window.removeEventListener("scroll", resetTransform);
  2412. }
  2413. };
  2414. });
  2415. const resetTransform = () => {
  2416. var windowScrollTop = window.pageYOffset / 3;
  2417. setTransform("translate3d(0," + windowScrollTop + "px,0)");
  2418. };
  2419. const {
  2420. filter,
  2421. className,
  2422. children,
  2423. style,
  2424. image,
  2425. small,
  2426. responsive
  2427. } = props;
  2428. const classes = useStyles();
  2429. const parallaxClasses = external_classnames_default()({
  2430. [classes.parallax]: true,
  2431. [classes.filter]: filter,
  2432. [classes.small]: small,
  2433. [classes.parallaxResponsive]: responsive,
  2434. [className]: className !== undefined
  2435. });
  2436. return __jsx("div", {
  2437. className: parallaxClasses,
  2438. style: _objectSpread({}, style, {
  2439. backgroundImage: "url(" + image + ")",
  2440. transform: transform
  2441. })
  2442. }, children);
  2443. }
  2444. /***/ }),
  2445. /***/ "aIa2":
  2446. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2447. "use strict";
  2448. // EXPORTS
  2449. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Quote; });
  2450. // EXTERNAL MODULE: external "react"
  2451. var external_react_ = __webpack_require__("cDcd");
  2452. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2453. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2454. var styles_ = __webpack_require__("9Pu4");
  2455. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  2456. var nextjs_material_kit = __webpack_require__("eDSW");
  2457. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/typographyStyle.js
  2458. 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; }
  2459. 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; }
  2460. 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; }
  2461. const typographyStyle = {
  2462. defaultFontStyle: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  2463. fontSize: "14px"
  2464. }),
  2465. defaultHeaderMargins: {
  2466. marginTop: "20px",
  2467. marginBottom: "10px"
  2468. },
  2469. quote: {
  2470. padding: "10px 20px",
  2471. margin: "0 0 20px",
  2472. fontSize: "17.5px",
  2473. borderLeft: "5px solid #eee"
  2474. },
  2475. quoteText: {
  2476. margin: "0 0 10px",
  2477. fontStyle: "italic"
  2478. },
  2479. quoteAuthor: {
  2480. display: "block",
  2481. fontSize: "80%",
  2482. lineHeight: "1.42857143",
  2483. color: "#777"
  2484. },
  2485. mutedText: {
  2486. color: "#777"
  2487. },
  2488. primaryText: {
  2489. color: nextjs_material_kit["p" /* primaryColor */]
  2490. },
  2491. infoText: {
  2492. color: nextjs_material_kit["m" /* infoColor */]
  2493. },
  2494. successText: {
  2495. color: nextjs_material_kit["u" /* successColor */]
  2496. },
  2497. warningText: {
  2498. color: nextjs_material_kit["z" /* warningColor */]
  2499. },
  2500. dangerText: {
  2501. color: nextjs_material_kit["f" /* dangerColor */]
  2502. },
  2503. smallText: {
  2504. fontSize: "65%",
  2505. fontWeight: "400",
  2506. lineHeight: "1",
  2507. color: "#777"
  2508. }
  2509. };
  2510. /* harmony default export */ var components_typographyStyle = (typographyStyle);
  2511. // CONCATENATED MODULE: ./components/Typography/Quote.js
  2512. var __jsx = external_react_default.a.createElement;
  2513. // nodejs library to set properties for components
  2514. // @material-ui/core components
  2515. // core components
  2516. const useStyles = Object(styles_["makeStyles"])(components_typographyStyle);
  2517. function Quote(props) {
  2518. const {
  2519. text,
  2520. author
  2521. } = props;
  2522. const classes = useStyles();
  2523. return __jsx("blockquote", {
  2524. className: classes.defaultFontStyle + " " + classes.quote
  2525. }, __jsx("p", {
  2526. className: classes.quoteText
  2527. }, text), __jsx("small", {
  2528. className: classes.quoteAuthor
  2529. }, author));
  2530. }
  2531. /***/ }),
  2532. /***/ "bhG4":
  2533. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2534. "use strict";
  2535. /* harmony import */ var _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  2536. const componentsStyle = {
  2537. container: _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  2538. brand: {
  2539. color: "#FFFFFF",
  2540. textAlign: "left"
  2541. },
  2542. title: {
  2543. fontSize: "4.2rem",
  2544. fontWeight: "600",
  2545. display: "inline-block",
  2546. position: "relative"
  2547. },
  2548. subtitle: {
  2549. fontSize: "1.313rem",
  2550. maxWidth: "510px",
  2551. margin: "10px 0 0"
  2552. },
  2553. main: {
  2554. background: "#FFFFFF",
  2555. position: "relative",
  2556. zIndex: "3"
  2557. },
  2558. mainRaised: {
  2559. margin: "-60px 30px 0px",
  2560. borderRadius: "6px",
  2561. 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)",
  2562. "@media (max-width: 830px)": {
  2563. marginLeft: "10px",
  2564. marginRight: "10px"
  2565. }
  2566. },
  2567. link: {
  2568. textDecoration: "none"
  2569. },
  2570. textCenter: {
  2571. textAlign: "center"
  2572. }
  2573. };
  2574. /* harmony default export */ __webpack_exports__["a"] = (componentsStyle);
  2575. /***/ }),
  2576. /***/ "bx/+":
  2577. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2578. "use strict";
  2579. __webpack_require__.r(__webpack_exports__);
  2580. // Apollo Value Configuration
  2581. const ApolloConfig = {
  2582. graphql_uri: process.env.API_GRAPHQL_URI
  2583. };
  2584. /* harmony default export */ __webpack_exports__["default"] = (ApolloConfig);
  2585. /***/ }),
  2586. /***/ "bzos":
  2587. /***/ (function(module, exports) {
  2588. module.exports = require("url");
  2589. /***/ }),
  2590. /***/ "c25J":
  2591. /***/ (function(module, exports) {
  2592. module.exports = require("@material-ui/core/ListItem");
  2593. /***/ }),
  2594. /***/ "cDcd":
  2595. /***/ (function(module, exports) {
  2596. module.exports = require("react");
  2597. /***/ }),
  2598. /***/ "cTJO":
  2599. /***/ (function(module, exports, __webpack_require__) {
  2600. "use strict";
  2601. var _interopRequireDefault = __webpack_require__("AroE");
  2602. var _interopRequireWildcard = __webpack_require__("7KCV");
  2603. exports.__esModule = true;
  2604. exports.default = void 0;
  2605. var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
  2606. var _url = __webpack_require__("bzos");
  2607. var _utils = __webpack_require__("kYf9");
  2608. var _router = _interopRequireDefault(__webpack_require__("nOHt"));
  2609. var _router2 = __webpack_require__("elyg");
  2610. function isLocal(href) {
  2611. var url = (0, _url.parse)(href, false, true);
  2612. var origin = (0, _url.parse)((0, _utils.getLocationOrigin)(), false, true);
  2613. return !url.host || url.protocol === origin.protocol && url.host === origin.host;
  2614. }
  2615. function memoizedFormatUrl(formatFunc) {
  2616. var lastHref = null;
  2617. var lastAs = null;
  2618. var lastResult = null;
  2619. return (href, as) => {
  2620. if (lastResult && href === lastHref && as === lastAs) {
  2621. return lastResult;
  2622. }
  2623. var result = formatFunc(href, as);
  2624. lastHref = href;
  2625. lastAs = as;
  2626. lastResult = result;
  2627. return result;
  2628. };
  2629. }
  2630. function formatUrl(url) {
  2631. return url && typeof url === 'object' ? (0, _utils.formatWithValidation)(url) : url;
  2632. }
  2633. var observer;
  2634. var listeners = new Map();
  2635. var IntersectionObserver = false ? undefined : null;
  2636. var prefetched = {};
  2637. function getObserver() {
  2638. // Return shared instance of IntersectionObserver if already created
  2639. if (observer) {
  2640. return observer;
  2641. } // Only create shared IntersectionObserver if supported in browser
  2642. if (!IntersectionObserver) {
  2643. return undefined;
  2644. }
  2645. return observer = new IntersectionObserver(entries => {
  2646. entries.forEach(entry => {
  2647. if (!listeners.has(entry.target)) {
  2648. return;
  2649. }
  2650. var cb = listeners.get(entry.target);
  2651. if (entry.isIntersecting || entry.intersectionRatio > 0) {
  2652. observer.unobserve(entry.target);
  2653. listeners.delete(entry.target);
  2654. cb();
  2655. }
  2656. });
  2657. }, {
  2658. rootMargin: '200px'
  2659. });
  2660. }
  2661. var listenToIntersections = (el, cb) => {
  2662. var observer = getObserver();
  2663. if (!observer) {
  2664. return () => {};
  2665. }
  2666. observer.observe(el);
  2667. listeners.set(el, cb);
  2668. return () => {
  2669. try {
  2670. observer.unobserve(el);
  2671. } catch (err) {
  2672. console.error(err);
  2673. }
  2674. listeners.delete(el);
  2675. };
  2676. };
  2677. class Link extends _react.Component {
  2678. constructor(props) {
  2679. super(props);
  2680. this.p = void 0;
  2681. this.cleanUpListeners = () => {};
  2682. this.formatUrls = memoizedFormatUrl((href, asHref) => {
  2683. return {
  2684. href: (0, _router2.addBasePath)(formatUrl(href)),
  2685. as: asHref ? (0, _router2.addBasePath)(formatUrl(asHref)) : asHref
  2686. };
  2687. });
  2688. this.linkClicked = e => {
  2689. var {
  2690. nodeName,
  2691. target
  2692. } = e.currentTarget;
  2693. if (nodeName === 'A' && (target && target !== '_self' || e.metaKey || e.ctrlKey || e.shiftKey || e.nativeEvent && e.nativeEvent.which === 2)) {
  2694. // ignore click for new tab / new window behavior
  2695. return;
  2696. }
  2697. var {
  2698. href,
  2699. as
  2700. } = this.formatUrls(this.props.href, this.props.as);
  2701. if (!isLocal(href)) {
  2702. // ignore click if it's outside our scope (e.g. https://google.com)
  2703. return;
  2704. }
  2705. var {
  2706. pathname
  2707. } = window.location;
  2708. href = (0, _url.resolve)(pathname, href);
  2709. as = as ? (0, _url.resolve)(pathname, as) : href;
  2710. e.preventDefault(); // avoid scroll for urls with anchor refs
  2711. var {
  2712. scroll
  2713. } = this.props;
  2714. if (scroll == null) {
  2715. scroll = as.indexOf('#') < 0;
  2716. } // replace state instead of push if prop is present
  2717. _router.default[this.props.replace ? 'replace' : 'push'](href, as, {
  2718. shallow: this.props.shallow
  2719. }).then(success => {
  2720. if (!success) return;
  2721. if (scroll) {
  2722. window.scrollTo(0, 0);
  2723. document.body.focus();
  2724. }
  2725. });
  2726. };
  2727. if (false) {}
  2728. this.p = props.prefetch !== false;
  2729. }
  2730. componentWillUnmount() {
  2731. this.cleanUpListeners();
  2732. }
  2733. getPaths() {
  2734. var {
  2735. pathname
  2736. } = window.location;
  2737. var {
  2738. href: parsedHref,
  2739. as: parsedAs
  2740. } = this.formatUrls(this.props.href, this.props.as);
  2741. var resolvedHref = (0, _url.resolve)(pathname, parsedHref);
  2742. return [resolvedHref, parsedAs ? (0, _url.resolve)(pathname, parsedAs) : resolvedHref];
  2743. }
  2744. handleRef(ref) {
  2745. if (this.p && IntersectionObserver && ref && ref.tagName) {
  2746. this.cleanUpListeners();
  2747. var isPrefetched = prefetched[this.getPaths().join( // Join on an invalid URI character
  2748. '%')];
  2749. if (!isPrefetched) {
  2750. this.cleanUpListeners = listenToIntersections(ref, () => {
  2751. this.prefetch();
  2752. });
  2753. }
  2754. }
  2755. } // The function is memoized so that no extra lifecycles are needed
  2756. // as per https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
  2757. prefetch(options) {
  2758. if (!this.p || true) return; // Prefetch the JSON page if asked (only in the client)
  2759. var paths = this.getPaths(); // We need to handle a prefetch error here since we may be
  2760. // loading with priority which can reject but we don't
  2761. // want to force navigation since this is only a prefetch
  2762. _router.default.prefetch(paths[
  2763. /* href */
  2764. 0], paths[
  2765. /* asPath */
  2766. 1], options).catch(err => {
  2767. if (false) {}
  2768. });
  2769. prefetched[paths.join( // Join on an invalid URI character
  2770. '%')] = true;
  2771. }
  2772. render() {
  2773. var {
  2774. children
  2775. } = this.props;
  2776. var {
  2777. href,
  2778. as
  2779. } = 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
  2780. if (typeof children === 'string') {
  2781. children = _react.default.createElement("a", null, children);
  2782. } // This will return the first child, if multiple are provided it will throw an error
  2783. var child = _react.Children.only(children);
  2784. var props = {
  2785. ref: el => {
  2786. this.handleRef(el);
  2787. if (child && typeof child === 'object' && child.ref) {
  2788. if (typeof child.ref === 'function') child.ref(el);else if (typeof child.ref === 'object') {
  2789. child.ref.current = el;
  2790. }
  2791. }
  2792. },
  2793. onMouseEnter: e => {
  2794. if (child.props && typeof child.props.onMouseEnter === 'function') {
  2795. child.props.onMouseEnter(e);
  2796. }
  2797. this.prefetch({
  2798. priority: true
  2799. });
  2800. },
  2801. onClick: e => {
  2802. if (child.props && typeof child.props.onClick === 'function') {
  2803. child.props.onClick(e);
  2804. }
  2805. if (!e.defaultPrevented) {
  2806. this.linkClicked(e);
  2807. }
  2808. }
  2809. }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
  2810. // defined, we specify the current 'href', so that repetition is not needed by the user
  2811. if (this.props.passHref || child.type === 'a' && !('href' in child.props)) {
  2812. props.href = as || href;
  2813. } // Add the ending slash to the paths. So, we can serve the
  2814. // "<page>/index.html" directly.
  2815. if (false) { var rewriteUrlForNextExport; }
  2816. return _react.default.cloneElement(child, props);
  2817. }
  2818. }
  2819. if (false) { var exact, PropTypes, warn; }
  2820. var _default = Link;
  2821. exports.default = _default;
  2822. /***/ }),
  2823. /***/ "dZ6Y":
  2824. /***/ (function(module, exports, __webpack_require__) {
  2825. "use strict";
  2826. /*
  2827. MIT License
  2828. Copyright (c) Jason Miller (https://jasonformat.com/)
  2829. 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:
  2830. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  2831. 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.
  2832. */
  2833. Object.defineProperty(exports, "__esModule", {
  2834. value: true
  2835. });
  2836. function mitt() {
  2837. const all = Object.create(null);
  2838. return {
  2839. on(type, handler) {
  2840. ;
  2841. (all[type] || (all[type] = [])).push(handler);
  2842. },
  2843. off(type, handler) {
  2844. if (all[type]) {
  2845. // tslint:disable-next-line:no-bitwise
  2846. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  2847. }
  2848. },
  2849. emit(type, ...evts) {
  2850. // eslint-disable-next-line array-callback-return
  2851. ;
  2852. (all[type] || []).slice().map(handler => {
  2853. handler(...evts);
  2854. });
  2855. }
  2856. };
  2857. }
  2858. exports.default = mitt;
  2859. /***/ }),
  2860. /***/ "eDSW":
  2861. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2862. "use strict";
  2863. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hexToRGBAlpha; });
  2864. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return drawerWidth; });
  2865. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return transition; });
  2866. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return container; });
  2867. /* unused harmony export conatinerFluid */
  2868. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return boxShadow; });
  2869. /* unused harmony export card */
  2870. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return defaultFont; });
  2871. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return primaryColor; });
  2872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return warningColor; });
  2873. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return dangerColor; });
  2874. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return successColor; });
  2875. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return infoColor; });
  2876. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return roseColor; });
  2877. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return grayColor; });
  2878. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return primaryBoxShadow; });
  2879. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return infoBoxShadow; });
  2880. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return successBoxShadow; });
  2881. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return warningBoxShadow; });
  2882. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dangerBoxShadow; });
  2883. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return roseBoxShadow; });
  2884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return warningCardHeader; });
  2885. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return successCardHeader; });
  2886. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dangerCardHeader; });
  2887. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return infoCardHeader; });
  2888. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return primaryCardHeader; });
  2889. /* unused harmony export roseCardHeader */
  2890. /* unused harmony export cardActions */
  2891. /* unused harmony export cardHeader */
  2892. /* unused harmony export defaultBoxShadow */
  2893. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return title; });
  2894. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cardTitle; });
  2895. /* unused harmony export cardLink */
  2896. /* unused harmony export cardSubtitle */
  2897. 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; }
  2898. 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; }
  2899. 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; }
  2900. const hexColorToRGB = function (hexColor) {
  2901. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  2902. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  2903. return r + r + g + g + b + b;
  2904. });
  2905. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  2906. return hex_array ? {
  2907. r: parseInt(hex_array[1], 16),
  2908. // 0-255
  2909. g: parseInt(hex_array[2], 16),
  2910. // 0-255
  2911. b: parseInt(hex_array[3], 16) // 0-255
  2912. } : null;
  2913. };
  2914. const hexToRGBAlpha = function (hexColor, alpha) {
  2915. let rgb = hexColorToRGB(hexColor);
  2916. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  2917. };
  2918. const drawerWidth = 260;
  2919. const transition = {
  2920. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  2921. };
  2922. const conatinerFluid = {
  2923. paddingRight: "15px",
  2924. paddingLeft: "15px",
  2925. marginRight: "auto",
  2926. marginLeft: "auto",
  2927. width: "100%"
  2928. };
  2929. const container = _objectSpread({}, conatinerFluid, {
  2930. "@media (min-width: 576px)": {
  2931. maxWidth: "540px"
  2932. },
  2933. "@media (min-width: 768px)": {
  2934. maxWidth: "720px"
  2935. },
  2936. "@media (min-width: 992px)": {
  2937. maxWidth: "960px"
  2938. },
  2939. "@media (min-width: 1200px)": {
  2940. maxWidth: "1140px"
  2941. }
  2942. });
  2943. const boxShadow = {
  2944. 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)"
  2945. };
  2946. const card = {
  2947. display: "inline-block",
  2948. position: "relative",
  2949. width: "100%",
  2950. margin: "25px 0",
  2951. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  2952. borderRadius: "3px",
  2953. color: "rgba(0, 0, 0, 0.87)",
  2954. background: "#fff"
  2955. };
  2956. const defaultFont = {
  2957. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  2958. fontWeight: "300",
  2959. lineHeight: "1.5em"
  2960. };
  2961. const primaryColor = "#212121";
  2962. const warningColor = "#ff9800";
  2963. const dangerColor = "#f44336";
  2964. const successColor = "#4caf50";
  2965. const infoColor = "#212121";
  2966. const roseColor = "#e91e63";
  2967. const grayColor = "#ffffff";
  2968. const primaryBoxShadow = {
  2969. 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)}`
  2970. };
  2971. const infoBoxShadow = {
  2972. 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)}`
  2973. };
  2974. const successBoxShadow = {
  2975. 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)}`
  2976. };
  2977. const warningBoxShadow = {
  2978. 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)}`
  2979. };
  2980. const dangerBoxShadow = {
  2981. 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)}`
  2982. };
  2983. const roseBoxShadow = {
  2984. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  2985. };
  2986. const warningCardHeader = _objectSpread({
  2987. color: "#fff",
  2988. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  2989. }, warningBoxShadow);
  2990. const successCardHeader = _objectSpread({
  2991. color: "#fff",
  2992. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  2993. }, successBoxShadow);
  2994. const dangerCardHeader = _objectSpread({
  2995. color: "#fff",
  2996. background: "linear-gradient(60deg, #ef5350, #e53935)"
  2997. }, dangerBoxShadow);
  2998. const infoCardHeader = _objectSpread({
  2999. color: "#fff",
  3000. background: "#212121"
  3001. }, infoBoxShadow);
  3002. const primaryCardHeader = _objectSpread({
  3003. color: "#fff",
  3004. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  3005. }, primaryBoxShadow);
  3006. const roseCardHeader = _objectSpread({
  3007. color: "#fff",
  3008. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  3009. }, roseBoxShadow);
  3010. const cardActions = _objectSpread({
  3011. margin: "0 20px 10px",
  3012. paddingTop: "10px",
  3013. borderTop: "1px solid #eeeeee",
  3014. height: "auto"
  3015. }, defaultFont);
  3016. const cardHeader = {
  3017. margin: "-30px 15px 0",
  3018. borderRadius: "3px",
  3019. padding: "15px"
  3020. };
  3021. const defaultBoxShadow = {
  3022. border: "0",
  3023. borderRadius: "3px",
  3024. 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)",
  3025. padding: "10px 0",
  3026. transition: "all 150ms ease 0s"
  3027. };
  3028. const title = {
  3029. color: "#ffffff",
  3030. margin: "1.75rem 0 0.875rem",
  3031. textDecoration: "none",
  3032. fontWeight: "700",
  3033. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  3034. };
  3035. const cardTitle = _objectSpread({}, title, {
  3036. marginTop: ".625rem"
  3037. });
  3038. const cardLink = {
  3039. "& + $cardLink": {
  3040. marginLeft: "1.25rem"
  3041. }
  3042. };
  3043. const cardSubtitle = {
  3044. marginBottom: "0",
  3045. marginTop: "-.375rem"
  3046. };
  3047. /***/ }),
  3048. /***/ "elyg":
  3049. /***/ (function(module, exports, __webpack_require__) {
  3050. "use strict";
  3051. var __importDefault = this && this.__importDefault || function (mod) {
  3052. return mod && mod.__esModule ? mod : {
  3053. "default": mod
  3054. };
  3055. };
  3056. Object.defineProperty(exports, "__esModule", {
  3057. value: true
  3058. });
  3059. const url_1 = __webpack_require__("bzos");
  3060. const mitt_1 = __importDefault(__webpack_require__("dZ6Y"));
  3061. const utils_1 = __webpack_require__("g/15");
  3062. const is_dynamic_1 = __webpack_require__("/jkW");
  3063. const route_matcher_1 = __webpack_require__("gguc");
  3064. const route_regex_1 = __webpack_require__("YTqd");
  3065. const basePath = false || '';
  3066. function addBasePath(path) {
  3067. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  3068. }
  3069. exports.addBasePath = addBasePath;
  3070. function delBasePath(path) {
  3071. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  3072. }
  3073. exports.delBasePath = delBasePath;
  3074. function toRoute(path) {
  3075. return path.replace(/\/$/, '') || '/';
  3076. }
  3077. const prepareRoute = path => toRoute(!path || path === '/' ? '/index' : path);
  3078. function fetchNextData(pathname, query, isServerRender, cb) {
  3079. let attempts = isServerRender ? 3 : 1;
  3080. function getResponse() {
  3081. return fetch(utils_1.formatWithValidation({
  3082. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  3083. `/_next/data/${__NEXT_DATA__.buildId}${delBasePath(pathname)}.json`),
  3084. query
  3085. }), {
  3086. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  3087. // Cookies may also be required for `getServerSideProps`.
  3088. //
  3089. // > `fetch` won’t send cookies, unless you set the credentials init
  3090. // > option.
  3091. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  3092. //
  3093. // > For maximum browser compatibility when it comes to sending &
  3094. // > receiving cookies, always supply the `credentials: 'same-origin'`
  3095. // > option instead of relying on the default.
  3096. // https://github.com/github/fetch#caveats
  3097. credentials: 'same-origin'
  3098. }).then(res => {
  3099. if (!res.ok) {
  3100. if (--attempts > 0 && res.status >= 500) {
  3101. return getResponse();
  3102. }
  3103. throw new Error(`Failed to load static props`);
  3104. }
  3105. return res.json();
  3106. });
  3107. }
  3108. return getResponse().then(data => {
  3109. return cb ? cb(data) : data;
  3110. }).catch(err => {
  3111. // We should only trigger a server-side transition if this was caused
  3112. // on a client-side transition. Otherwise, we'd get into an infinite
  3113. // loop.
  3114. if (!isServerRender) {
  3115. ;
  3116. err.code = 'PAGE_LOAD_ERROR';
  3117. }
  3118. throw err;
  3119. });
  3120. }
  3121. class Router {
  3122. constructor(pathname, query, as, {
  3123. initialProps,
  3124. pageLoader,
  3125. App,
  3126. wrapApp,
  3127. Component,
  3128. err,
  3129. subscription,
  3130. isFallback
  3131. }) {
  3132. // Static Data Cache
  3133. this.sdc = {};
  3134. this.onPopState = e => {
  3135. if (!e.state) {
  3136. // We get state as undefined for two reasons.
  3137. // 1. With older safari (< 8) and older chrome (< 34)
  3138. // 2. When the URL changed with #
  3139. //
  3140. // In the both cases, we don't need to proceed and change the route.
  3141. // (as it's already changed)
  3142. // But we can simply replace the state with the new changes.
  3143. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  3144. // So, doing the following for (1) does no harm.
  3145. const {
  3146. pathname,
  3147. query
  3148. } = this;
  3149. this.changeState('replaceState', utils_1.formatWithValidation({
  3150. pathname,
  3151. query
  3152. }), utils_1.getURL());
  3153. return;
  3154. } // Make sure we don't re-render on initial load,
  3155. // can be caused by navigating back from an external site
  3156. if (e.state && this.isSsr && e.state.as === this.asPath && url_1.parse(e.state.url).pathname === this.pathname) {
  3157. return;
  3158. } // If the downstream application returns falsy, return.
  3159. // They will then be responsible for handling the event.
  3160. if (this._bps && !this._bps(e.state)) {
  3161. return;
  3162. }
  3163. const {
  3164. url,
  3165. as,
  3166. options
  3167. } = e.state;
  3168. if (false) {}
  3169. this.replace(url, as, options);
  3170. };
  3171. this._getStaticData = asPath => {
  3172. const pathname = prepareRoute(url_1.parse(asPath).pathname);
  3173. return true && this.sdc[pathname] ? Promise.resolve(this.sdc[pathname]) : fetchNextData(pathname, null, this.isSsr, data => this.sdc[pathname] = data);
  3174. };
  3175. this._getServerData = asPath => {
  3176. let {
  3177. pathname,
  3178. query
  3179. } = url_1.parse(asPath, true);
  3180. pathname = prepareRoute(pathname);
  3181. return fetchNextData(pathname, query, this.isSsr);
  3182. }; // represents the current component key
  3183. this.route = toRoute(pathname); // set up the component cache (by route keys)
  3184. this.components = {}; // We should not keep the cache, if there's an error
  3185. // Otherwise, this cause issues when when going back and
  3186. // come again to the errored page.
  3187. if (pathname !== '/_error') {
  3188. this.components[this.route] = {
  3189. Component,
  3190. props: initialProps,
  3191. err,
  3192. __N_SSG: initialProps && initialProps.__N_SSG,
  3193. __N_SSP: initialProps && initialProps.__N_SSP
  3194. };
  3195. }
  3196. this.components['/_app'] = {
  3197. Component: App
  3198. }; // Backwards compat for Router.router.events
  3199. // TODO: Should be remove the following major version as it was never documented
  3200. this.events = Router.events;
  3201. this.pageLoader = pageLoader;
  3202. this.pathname = pathname;
  3203. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  3204. // until after mount to prevent hydration mismatch
  3205. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  3206. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  3207. this.basePath = basePath;
  3208. this.sub = subscription;
  3209. this.clc = null;
  3210. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  3211. // back from external site
  3212. this.isSsr = true;
  3213. this.isFallback = isFallback;
  3214. if (false) {}
  3215. } // @deprecated backwards compatibility even though it's a private method.
  3216. static _rewriteUrlForNextExport(url) {
  3217. if (false) {} else {
  3218. return url;
  3219. }
  3220. }
  3221. update(route, mod) {
  3222. const Component = mod.default || mod;
  3223. const data = this.components[route];
  3224. if (!data) {
  3225. throw new Error(`Cannot update unavailable route: ${route}`);
  3226. }
  3227. const newData = Object.assign(Object.assign({}, data), {
  3228. Component,
  3229. __N_SSG: mod.__N_SSG,
  3230. __N_SSP: mod.__N_SSP
  3231. });
  3232. this.components[route] = newData; // pages/_app.js updated
  3233. if (route === '/_app') {
  3234. this.notify(this.components[this.route]);
  3235. return;
  3236. }
  3237. if (route === this.route) {
  3238. this.notify(newData);
  3239. }
  3240. }
  3241. reload() {
  3242. window.location.reload();
  3243. }
  3244. /**
  3245. * Go back in history
  3246. */
  3247. back() {
  3248. window.history.back();
  3249. }
  3250. /**
  3251. * Performs a `pushState` with arguments
  3252. * @param url of the route
  3253. * @param as masks `url` for the browser
  3254. * @param options object you can define `shallow` and other options
  3255. */
  3256. push(url, as = url, options = {}) {
  3257. return this.change('pushState', url, as, options);
  3258. }
  3259. /**
  3260. * Performs a `replaceState` with arguments
  3261. * @param url of the route
  3262. * @param as masks `url` for the browser
  3263. * @param options object you can define `shallow` and other options
  3264. */
  3265. replace(url, as = url, options = {}) {
  3266. return this.change('replaceState', url, as, options);
  3267. }
  3268. change(method, _url, _as, options) {
  3269. return new Promise((resolve, reject) => {
  3270. if (!options._h) {
  3271. this.isSsr = false;
  3272. } // marking route changes as a navigation start entry
  3273. if (utils_1.ST) {
  3274. performance.mark('routeChange');
  3275. } // If url and as provided as an object representation,
  3276. // we'll format them into the string version here.
  3277. let url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  3278. let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  3279. url = addBasePath(url);
  3280. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  3281. // "<page>/index.html" directly for the SSR page.
  3282. if (false) {}
  3283. this.abortComponentLoad(as); // If the url change is only related to a hash change
  3284. // We should not proceed. We should only change the state.
  3285. // WARNING: `_h` is an internal option for handing Next.js client-side
  3286. // hydration. Your app should _never_ use this property. It may change at
  3287. // any time without notice.
  3288. if (!options._h && this.onlyAHashChange(as)) {
  3289. this.asPath = as;
  3290. Router.events.emit('hashChangeStart', as);
  3291. this.changeState(method, url, as, options);
  3292. this.scrollToHash(as);
  3293. Router.events.emit('hashChangeComplete', as);
  3294. return resolve(true);
  3295. }
  3296. const {
  3297. pathname,
  3298. query,
  3299. protocol
  3300. } = url_1.parse(url, true);
  3301. if (!pathname || protocol) {
  3302. if (false) {}
  3303. return resolve(false);
  3304. } // If asked to change the current URL we should reload the current page
  3305. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  3306. // We also need to set the method = replaceState always
  3307. // as this should not go into the history (That's how browsers work)
  3308. // We should compare the new asPath to the current asPath, not the url
  3309. if (!this.urlIsNew(as)) {
  3310. method = 'replaceState';
  3311. }
  3312. const route = toRoute(pathname);
  3313. const {
  3314. shallow = false
  3315. } = options;
  3316. if (is_dynamic_1.isDynamicRoute(route)) {
  3317. const {
  3318. pathname: asPathname
  3319. } = url_1.parse(as);
  3320. const routeRegex = route_regex_1.getRouteRegex(route);
  3321. const routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  3322. if (!routeMatch) {
  3323. const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
  3324. if (missingParams.length > 0) {
  3325. if (false) {}
  3326. 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`));
  3327. }
  3328. } else {
  3329. // Merge params into `query`, overwriting any specified in search
  3330. Object.assign(query, routeMatch);
  3331. }
  3332. }
  3333. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  3334. this.getRouteInfo(route, pathname, query, as, shallow).then(routeInfo => {
  3335. const {
  3336. error
  3337. } = routeInfo;
  3338. if (error && error.cancelled) {
  3339. return resolve(false);
  3340. }
  3341. Router.events.emit('beforeHistoryChange', as);
  3342. this.changeState(method, url, as, options);
  3343. if (false) {}
  3344. this.set(route, pathname, query, as, routeInfo);
  3345. if (error) {
  3346. Router.events.emit('routeChangeError', error, as);
  3347. throw error;
  3348. }
  3349. Router.events.emit('routeChangeComplete', as);
  3350. return resolve(true);
  3351. }, reject);
  3352. });
  3353. }
  3354. changeState(method, url, as, options = {}) {
  3355. if (false) {}
  3356. if (method !== 'pushState' || utils_1.getURL() !== as) {
  3357. window.history[method]({
  3358. url,
  3359. as,
  3360. options
  3361. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  3362. // Passing the empty string here should be safe against future changes to the method.
  3363. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  3364. '', as);
  3365. }
  3366. }
  3367. getRouteInfo(route, pathname, query, as, shallow = false) {
  3368. const cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  3369. // If the route is already rendered on the screen.
  3370. if (shallow && cachedRouteInfo && this.route === route) {
  3371. return Promise.resolve(cachedRouteInfo);
  3372. }
  3373. const handleError = (err, loadErrorFail) => {
  3374. return new Promise(resolve => {
  3375. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  3376. // If we can't load the page it could be one of following reasons
  3377. // 1. Page doesn't exists
  3378. // 2. Page does exist in a different zone
  3379. // 3. Internal error while loading the page
  3380. // So, doing a hard reload is the proper way to deal with this.
  3381. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  3382. // So, we need to mark it as a cancelled error and stop the routing logic.
  3383. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  3384. return resolve({
  3385. error: err
  3386. });
  3387. }
  3388. if (err.cancelled) {
  3389. // @ts-ignore TODO: fix the control flow here
  3390. return resolve({
  3391. error: err
  3392. });
  3393. }
  3394. resolve(this.fetchComponent('/_error').then(res => {
  3395. const {
  3396. page: Component
  3397. } = res;
  3398. const routeInfo = {
  3399. Component,
  3400. err
  3401. };
  3402. return new Promise(resolve => {
  3403. this.getInitialProps(Component, {
  3404. err,
  3405. pathname,
  3406. query
  3407. }).then(props => {
  3408. routeInfo.props = props;
  3409. routeInfo.error = err;
  3410. resolve(routeInfo);
  3411. }, gipErr => {
  3412. console.error('Error in error page `getInitialProps`: ', gipErr);
  3413. routeInfo.error = err;
  3414. routeInfo.props = {};
  3415. resolve(routeInfo);
  3416. });
  3417. });
  3418. }).catch(err => handleError(err, true)));
  3419. });
  3420. };
  3421. return new Promise((resolve, reject) => {
  3422. if (cachedRouteInfo) {
  3423. return resolve(cachedRouteInfo);
  3424. }
  3425. this.fetchComponent(route).then(res => resolve({
  3426. Component: res.page,
  3427. __N_SSG: res.mod.__N_SSG,
  3428. __N_SSP: res.mod.__N_SSP
  3429. }), reject);
  3430. }).then(routeInfo => {
  3431. const {
  3432. Component,
  3433. __N_SSG,
  3434. __N_SSP
  3435. } = routeInfo;
  3436. if (false) {}
  3437. 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`
  3438. {
  3439. pathname,
  3440. query,
  3441. asPath: as
  3442. })).then(props => {
  3443. routeInfo.props = props;
  3444. this.components[route] = routeInfo;
  3445. return routeInfo;
  3446. });
  3447. }).catch(handleError);
  3448. }
  3449. set(route, pathname, query, as, data) {
  3450. this.isFallback = false;
  3451. this.route = route;
  3452. this.pathname = pathname;
  3453. this.query = query;
  3454. this.asPath = as;
  3455. this.notify(data);
  3456. }
  3457. /**
  3458. * Callback to execute before replacing router state
  3459. * @param cb callback to be executed
  3460. */
  3461. beforePopState(cb) {
  3462. this._bps = cb;
  3463. }
  3464. onlyAHashChange(as) {
  3465. if (!this.asPath) return false;
  3466. const [oldUrlNoHash, oldHash] = this.asPath.split('#');
  3467. const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
  3468. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  3469. return true;
  3470. } // If the urls are change, there's more than a hash change
  3471. if (oldUrlNoHash !== newUrlNoHash) {
  3472. return false;
  3473. } // If the hash has changed, then it's a hash only change.
  3474. // This check is necessary to handle both the enter and
  3475. // leave hash === '' cases. The identity case falls through
  3476. // and is treated as a next reload.
  3477. return oldHash !== newHash;
  3478. }
  3479. scrollToHash(as) {
  3480. const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value
  3481. if (hash === '') {
  3482. window.scrollTo(0, 0);
  3483. return;
  3484. } // First we check if the element by id is found
  3485. const idEl = document.getElementById(hash);
  3486. if (idEl) {
  3487. idEl.scrollIntoView();
  3488. return;
  3489. } // If there's no element with the id, we check the `name` property
  3490. // To mirror browsers
  3491. const nameEl = document.getElementsByName(hash)[0];
  3492. if (nameEl) {
  3493. nameEl.scrollIntoView();
  3494. }
  3495. }
  3496. urlIsNew(asPath) {
  3497. return this.asPath !== asPath;
  3498. }
  3499. /**
  3500. * Prefetch page code, you may wait for the data during page rendering.
  3501. * This feature only works in production!
  3502. * @param url the href of prefetched page
  3503. * @param asPath the as path of the prefetched page
  3504. */
  3505. prefetch(url, asPath = url, options = {}) {
  3506. return new Promise((resolve, reject) => {
  3507. const {
  3508. pathname,
  3509. protocol
  3510. } = url_1.parse(url);
  3511. if (!pathname || protocol) {
  3512. if (false) {}
  3513. return;
  3514. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  3515. if (false) {}
  3516. const route = delBasePath(toRoute(pathname));
  3517. Promise.all([this.pageLoader.prefetchData(url, delBasePath(asPath)), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(() => resolve(), reject);
  3518. });
  3519. }
  3520. async fetchComponent(route) {
  3521. let cancelled = false;
  3522. const cancel = this.clc = () => {
  3523. cancelled = true;
  3524. };
  3525. route = delBasePath(route);
  3526. const componentResult = await this.pageLoader.loadPage(route);
  3527. if (cancelled) {
  3528. const error = new Error(`Abort fetching component for route: "${route}"`);
  3529. error.cancelled = true;
  3530. throw error;
  3531. }
  3532. if (cancel === this.clc) {
  3533. this.clc = null;
  3534. }
  3535. return componentResult;
  3536. }
  3537. _getData(fn) {
  3538. let cancelled = false;
  3539. const cancel = () => {
  3540. cancelled = true;
  3541. };
  3542. this.clc = cancel;
  3543. return fn().then(data => {
  3544. if (cancel === this.clc) {
  3545. this.clc = null;
  3546. }
  3547. if (cancelled) {
  3548. const err = new Error('Loading initial props cancelled');
  3549. err.cancelled = true;
  3550. throw err;
  3551. }
  3552. return data;
  3553. });
  3554. }
  3555. getInitialProps(Component, ctx) {
  3556. const {
  3557. Component: App
  3558. } = this.components['/_app'];
  3559. const AppTree = this._wrapApp(App);
  3560. ctx.AppTree = AppTree;
  3561. return utils_1.loadGetInitialProps(App, {
  3562. AppTree,
  3563. Component,
  3564. router: this,
  3565. ctx
  3566. });
  3567. }
  3568. abortComponentLoad(as) {
  3569. if (this.clc) {
  3570. const e = new Error('Route Cancelled');
  3571. e.cancelled = true;
  3572. Router.events.emit('routeChangeError', e, as);
  3573. this.clc();
  3574. this.clc = null;
  3575. }
  3576. }
  3577. notify(data) {
  3578. this.sub(data, this.components['/_app'].Component);
  3579. }
  3580. }
  3581. exports.default = Router;
  3582. Router.events = mitt_1.default();
  3583. /***/ }),
  3584. /***/ "g/15":
  3585. /***/ (function(module, exports, __webpack_require__) {
  3586. "use strict";
  3587. Object.defineProperty(exports, "__esModule", {
  3588. value: true
  3589. });
  3590. const url_1 = __webpack_require__("bzos");
  3591. /**
  3592. * Utils
  3593. */
  3594. function execOnce(fn) {
  3595. let used = false;
  3596. let result;
  3597. return (...args) => {
  3598. if (!used) {
  3599. used = true;
  3600. result = fn(...args);
  3601. }
  3602. return result;
  3603. };
  3604. }
  3605. exports.execOnce = execOnce;
  3606. function getLocationOrigin() {
  3607. const {
  3608. protocol,
  3609. hostname,
  3610. port
  3611. } = window.location;
  3612. return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  3613. }
  3614. exports.getLocationOrigin = getLocationOrigin;
  3615. function getURL() {
  3616. const {
  3617. href
  3618. } = window.location;
  3619. const origin = getLocationOrigin();
  3620. return href.substring(origin.length);
  3621. }
  3622. exports.getURL = getURL;
  3623. function getDisplayName(Component) {
  3624. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  3625. }
  3626. exports.getDisplayName = getDisplayName;
  3627. function isResSent(res) {
  3628. return res.finished || res.headersSent;
  3629. }
  3630. exports.isResSent = isResSent;
  3631. async function loadGetInitialProps(App, ctx) {
  3632. var _a;
  3633. if (false) {} // when called from _app `ctx` is nested in `ctx`
  3634. const res = ctx.res || ctx.ctx && ctx.ctx.res;
  3635. if (!App.getInitialProps) {
  3636. if (ctx.ctx && ctx.Component) {
  3637. // @ts-ignore pageProps default
  3638. return {
  3639. pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
  3640. };
  3641. }
  3642. return {};
  3643. }
  3644. const props = await App.getInitialProps(ctx);
  3645. if (res && isResSent(res)) {
  3646. return props;
  3647. }
  3648. if (!props) {
  3649. const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
  3650. throw new Error(message);
  3651. }
  3652. if (false) {}
  3653. return props;
  3654. }
  3655. exports.loadGetInitialProps = loadGetInitialProps;
  3656. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  3657. function formatWithValidation(url, options) {
  3658. if (false) {}
  3659. return url_1.format(url, options);
  3660. }
  3661. exports.formatWithValidation = formatWithValidation;
  3662. exports.SP = typeof performance !== 'undefined';
  3663. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  3664. /***/ }),
  3665. /***/ "gguc":
  3666. /***/ (function(module, exports, __webpack_require__) {
  3667. "use strict";
  3668. Object.defineProperty(exports, "__esModule", {
  3669. value: true
  3670. });
  3671. function getRouteMatcher(routeRegex) {
  3672. const {
  3673. re,
  3674. groups
  3675. } = routeRegex;
  3676. return pathname => {
  3677. const routeMatch = re.exec(pathname);
  3678. if (!routeMatch) {
  3679. return false;
  3680. }
  3681. const decode = param => {
  3682. try {
  3683. return decodeURIComponent(param);
  3684. } catch (_) {
  3685. const err = new Error('failed to decode param');
  3686. err.code = 'DECODE_FAILED';
  3687. throw err;
  3688. }
  3689. };
  3690. const params = {};
  3691. Object.keys(groups).forEach(slugName => {
  3692. const g = groups[slugName];
  3693. const m = routeMatch[g.pos];
  3694. if (m !== undefined) {
  3695. params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
  3696. }
  3697. });
  3698. return params;
  3699. };
  3700. }
  3701. exports.getRouteMatcher = getRouteMatcher;
  3702. /***/ }),
  3703. /***/ "i4t8":
  3704. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3705. "use strict";
  3706. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridItem; });
  3707. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3708. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3709. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3710. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3711. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3712. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3713. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3714. 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); }
  3715. 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; }
  3716. 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; }
  3717. // nodejs library to set properties for components
  3718. // @material-ui/core components
  3719. const styles = {
  3720. grid: {
  3721. position: "relative",
  3722. width: "100%",
  3723. minHeight: "1px",
  3724. paddingRight: "15px",
  3725. paddingLeft: "15px",
  3726. flexBasis: "auto"
  3727. }
  3728. };
  3729. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3730. function GridItem(props) {
  3731. const classes = useStyles();
  3732. const {
  3733. children,
  3734. className
  3735. } = props,
  3736. rest = _objectWithoutProperties(props, ["children", "className"]);
  3737. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3738. item: true
  3739. }, rest, {
  3740. className: classes.grid + " " + className
  3741. }), children);
  3742. }
  3743. GridItem.defaultProps = {
  3744. className: ""
  3745. };
  3746. /***/ }),
  3747. /***/ "iddH":
  3748. /***/ (function(module, exports) {
  3749. module.exports = require("react-query");
  3750. /***/ }),
  3751. /***/ "j08L":
  3752. /***/ (function(module, exports) {
  3753. module.exports = require("@material-ui/icons/Close");
  3754. /***/ }),
  3755. /***/ "jD8W":
  3756. /***/ (function(module, exports) {
  3757. module.exports = require("@material-ui/core/Popper");
  3758. /***/ }),
  3759. /***/ "kYf9":
  3760. /***/ (function(module, exports) {
  3761. module.exports = require("next/dist/next-server/lib/utils.js");
  3762. /***/ }),
  3763. /***/ "mf1M":
  3764. /***/ (function(module, exports) {
  3765. module.exports = require("@material-ui/core/Grow");
  3766. /***/ }),
  3767. /***/ "mtPR":
  3768. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3769. "use strict";
  3770. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridContainer; });
  3771. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3772. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3773. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3774. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3775. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3776. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3777. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3778. 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); }
  3779. 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; }
  3780. 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; }
  3781. // nodejs library to set properties for components
  3782. // @material-ui/core components
  3783. const styles = {
  3784. grid: {
  3785. marginRight: "-15px",
  3786. marginLeft: "-15px",
  3787. width: "auto"
  3788. }
  3789. };
  3790. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3791. function GridContainer(props) {
  3792. const classes = useStyles();
  3793. const {
  3794. children,
  3795. className
  3796. } = props,
  3797. rest = _objectWithoutProperties(props, ["children", "className"]);
  3798. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3799. container: true
  3800. }, rest, {
  3801. className: classes.grid + " " + className
  3802. }), children);
  3803. }
  3804. GridContainer.defaultProps = {
  3805. className: ""
  3806. };
  3807. /***/ }),
  3808. /***/ "n1EF":
  3809. /***/ (function(module, exports) {
  3810. module.exports = require("@material-ui/core/SnackbarContent");
  3811. /***/ }),
  3812. /***/ "nJn1":
  3813. /***/ (function(module, exports) {
  3814. module.exports = "/_next/static/images/tb-07080d5d3d7b45d4452f1aae75c323f1.png";
  3815. /***/ }),
  3816. /***/ "nOHt":
  3817. /***/ (function(module, exports, __webpack_require__) {
  3818. "use strict";
  3819. var _interopRequireWildcard = __webpack_require__("7KCV");
  3820. var _interopRequireDefault = __webpack_require__("AroE");
  3821. exports.__esModule = true;
  3822. exports.useRouter = useRouter;
  3823. exports.makePublicRouterInstance = makePublicRouterInstance;
  3824. exports.createRouter = exports.withRouter = exports.default = void 0;
  3825. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  3826. var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
  3827. exports.Router = _router2.default;
  3828. exports.NextRouter = _router2.NextRouter;
  3829. var _routerContext = __webpack_require__("Osoz");
  3830. var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
  3831. exports.withRouter = _withRouter.default;
  3832. /* global window */
  3833. var singletonRouter = {
  3834. router: null,
  3835. // holds the actual router instance
  3836. readyCallbacks: [],
  3837. ready(cb) {
  3838. if (this.router) return cb();
  3839. if (false) {}
  3840. }
  3841. }; // Create public properties and methods of the router in the singletonRouter
  3842. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  3843. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  3844. 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
  3845. Object.defineProperty(singletonRouter, 'events', {
  3846. get() {
  3847. return _router2.default.events;
  3848. }
  3849. });
  3850. urlPropertyFields.forEach(field => {
  3851. // Here we need to use Object.defineProperty because, we need to return
  3852. // the property assigned to the actual router
  3853. // The value might get changed as we change routes and this is the
  3854. // proper way to access it
  3855. Object.defineProperty(singletonRouter, field, {
  3856. get() {
  3857. var router = getRouter();
  3858. return router[field];
  3859. }
  3860. });
  3861. });
  3862. coreMethodFields.forEach(field => {
  3863. // We don't really know the types here, so we add them later instead
  3864. ;
  3865. singletonRouter[field] = function () {
  3866. var router = getRouter();
  3867. return router[field](...arguments);
  3868. };
  3869. });
  3870. routerEvents.forEach(event => {
  3871. singletonRouter.ready(() => {
  3872. _router2.default.events.on(event, function () {
  3873. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  3874. var _singletonRouter = singletonRouter;
  3875. if (_singletonRouter[eventField]) {
  3876. try {
  3877. _singletonRouter[eventField](...arguments);
  3878. } catch (err) {
  3879. // tslint:disable-next-line:no-console
  3880. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  3881. console.error(err.message + "\n" + err.stack);
  3882. }
  3883. }
  3884. });
  3885. });
  3886. });
  3887. function getRouter() {
  3888. if (!singletonRouter.router) {
  3889. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  3890. throw new Error(message);
  3891. }
  3892. return singletonRouter.router;
  3893. } // Export the singletonRouter and this is the public API.
  3894. var _default = singletonRouter; // Reexport the withRoute HOC
  3895. exports.default = _default;
  3896. function useRouter() {
  3897. return _react.default.useContext(_routerContext.RouterContext);
  3898. } // INTERNAL APIS
  3899. // -------------
  3900. // (do not use following exports inside the app)
  3901. // Create a router and assign it as the singleton instance.
  3902. // This is used in client side when we are initilizing the app.
  3903. // This should **not** use inside the server.
  3904. var createRouter = function createRouter() {
  3905. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  3906. args[_key] = arguments[_key];
  3907. }
  3908. singletonRouter.router = new _router2.default(...args);
  3909. singletonRouter.readyCallbacks.forEach(cb => cb());
  3910. singletonRouter.readyCallbacks = [];
  3911. return singletonRouter.router;
  3912. }; // This function is used to create the `withRouter` router instance
  3913. exports.createRouter = createRouter;
  3914. function makePublicRouterInstance(router) {
  3915. var _router = router;
  3916. var instance = {};
  3917. for (var property of urlPropertyFields) {
  3918. if (typeof _router[property] === 'object') {
  3919. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  3920. continue;
  3921. }
  3922. instance[property] = _router[property];
  3923. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  3924. instance.events = _router2.default.events;
  3925. coreMethodFields.forEach(field => {
  3926. instance[field] = function () {
  3927. return _router[field](...arguments);
  3928. };
  3929. });
  3930. return instance;
  3931. }
  3932. /***/ }),
  3933. /***/ "nybW":
  3934. /***/ (function(module, exports) {
  3935. module.exports = require("@material-ui/core/Divider");
  3936. /***/ }),
  3937. /***/ "oLCs":
  3938. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3939. "use strict";
  3940. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  3941. const footerStyle = {
  3942. block: {
  3943. color: "inherit",
  3944. padding: "0.9375rem",
  3945. fontWeight: "500",
  3946. fontSize: "12px",
  3947. textTransform: "uppercase",
  3948. borderRadius: "3px",
  3949. textDecoration: "none",
  3950. position: "relative",
  3951. display: "block"
  3952. },
  3953. left: {
  3954. float: "left!important",
  3955. display: "block"
  3956. },
  3957. right: {
  3958. padding: "15px 0",
  3959. margin: "0",
  3960. float: "right!important"
  3961. },
  3962. footer: {
  3963. padding: "0.9375rem 0",
  3964. textAlign: "center",
  3965. display: "flex",
  3966. zIndex: "2",
  3967. position: "relative"
  3968. },
  3969. a: {
  3970. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* primaryColor */ "p"],
  3971. textDecoration: "none",
  3972. backgroundColor: "transparent"
  3973. },
  3974. footerWhiteFont: {
  3975. "&,&:hover,&:focus": {
  3976. color: "#FFFFFF"
  3977. }
  3978. },
  3979. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  3980. list: {
  3981. marginBottom: "0",
  3982. padding: "0",
  3983. marginTop: "0"
  3984. },
  3985. inlineBlock: {
  3986. display: "inline-block",
  3987. padding: "0px",
  3988. width: "auto"
  3989. },
  3990. icon: {
  3991. width: "18px",
  3992. height: "18px",
  3993. position: "relative",
  3994. top: "3px"
  3995. }
  3996. };
  3997. /* harmony default export */ __webpack_exports__["a"] = (footerStyle);
  3998. /***/ }),
  3999. /***/ "qYno":
  4000. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4001. "use strict";
  4002. // ESM COMPAT FLAG
  4003. __webpack_require__.r(__webpack_exports__);
  4004. // EXPORTS
  4005. __webpack_require__.d(__webpack_exports__, "getServerSideProps", function() { return /* binding */ getServerSideProps; });
  4006. // EXTERNAL MODULE: external "react"
  4007. var external_react_ = __webpack_require__("cDcd");
  4008. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  4009. // EXTERNAL MODULE: external "classnames"
  4010. var external_classnames_ = __webpack_require__("K2gz");
  4011. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  4012. // EXTERNAL MODULE: external "@material-ui/core/styles"
  4013. var styles_ = __webpack_require__("9Pu4");
  4014. // EXTERNAL MODULE: external "next/router"
  4015. var router_ = __webpack_require__("4Q3z");
  4016. var router_default = /*#__PURE__*/__webpack_require__.n(router_);
  4017. // EXTERNAL MODULE: ./components/Header/Header.js + 1 modules
  4018. var Header = __webpack_require__("8x5e");
  4019. // EXTERNAL MODULE: ./components/Header/HeaderLinks.js
  4020. var HeaderLinks = __webpack_require__("8E12");
  4021. // EXTERNAL MODULE: ./components/Parallax/Parallax.js + 1 modules
  4022. var Parallax = __webpack_require__("Z2Lm");
  4023. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/components.js
  4024. var components = __webpack_require__("bhG4");
  4025. // EXTERNAL MODULE: ./components/Footer/Footer.js
  4026. var Footer = __webpack_require__("HXcA");
  4027. // EXTERNAL MODULE: ./api/dealer/dealer.js
  4028. var dealer = __webpack_require__("/pJr");
  4029. var dealer_default = /*#__PURE__*/__webpack_require__.n(dealer);
  4030. // EXTERNAL MODULE: ./pages-sections/yamaha/snackbar.js
  4031. var snackbar = __webpack_require__("QMLM");
  4032. // EXTERNAL MODULE: external "react-select"
  4033. var external_react_select_ = __webpack_require__("vtRj");
  4034. var external_react_select_default = /*#__PURE__*/__webpack_require__.n(external_react_select_);
  4035. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  4036. var GridContainer = __webpack_require__("mtPR");
  4037. // EXTERNAL MODULE: external "@material-ui/core/Grid"
  4038. var Grid_ = __webpack_require__("JQ2V");
  4039. var Grid_default = /*#__PURE__*/__webpack_require__.n(Grid_);
  4040. // EXTERNAL MODULE: ./components/Card/Card.js + 1 modules
  4041. var Card = __webpack_require__("A2So");
  4042. // EXTERNAL MODULE: ./components/Card/CardBody.js + 1 modules
  4043. var CardBody = __webpack_require__("UsYt");
  4044. // EXTERNAL MODULE: ./components/Card/CardHeader.js + 1 modules
  4045. var CardHeader = __webpack_require__("2zww");
  4046. // EXTERNAL MODULE: ./components/Typography/Quote.js + 1 modules
  4047. var Quote = __webpack_require__("aIa2");
  4048. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  4049. var Icon_ = __webpack_require__("7vM9");
  4050. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  4051. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  4052. var Button = __webpack_require__("Kg+a");
  4053. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js
  4054. var notificationsStyles = __webpack_require__("7WNa");
  4055. // CONCATENATED MODULE: ./pages-sections/yamaha/dealers/dealers.js
  4056. var __jsx = external_react_default.a.createElement;
  4057. 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; }
  4058. 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; }
  4059. const useStyles = Object(styles_["makeStyles"])(notificationsStyles["a" /* default */]);
  4060. const DataDealer = function (_ref) {
  4061. let {
  4062. selected,
  4063. handleName,
  4064. backend,
  4065. dealers
  4066. } = _ref,
  4067. props = _objectWithoutProperties(_ref, ["selected", "handleName", "backend", "dealers"]);
  4068. const classes = useStyles();
  4069. const Dealers = dealers.map(data => {
  4070. return __jsx(Grid_default.a, {
  4071. align: "center",
  4072. style: {
  4073. padding: "30px",
  4074. marginTop: "-50px"
  4075. }
  4076. }, __jsx(Card["a" /* default */], {
  4077. style: {
  4078. width: "20rem"
  4079. }
  4080. }, __jsx("img", {
  4081. style: {
  4082. height: "180px",
  4083. width: "100%",
  4084. display: "block"
  4085. },
  4086. className: classes.imgCardTop,
  4087. src: `${backend}${data.img["url"]}`
  4088. }), __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", {
  4089. align: "center"
  4090. }, __jsx(Button["a" /* default */], {
  4091. color: "info",
  4092. round: true,
  4093. href: data.location,
  4094. target: "_blank"
  4095. }, __jsx(Icon_default.a, {
  4096. className: classes.icons
  4097. }, "room"), "View Location")))));
  4098. });
  4099. return __jsx("div", null, __jsx(Card["a" /* default */], {
  4100. className: classes.textCenter,
  4101. align: "center",
  4102. style: {
  4103. padding: "5px"
  4104. }
  4105. }, __jsx(CardBody["a" /* default */], null, __jsx("div", {
  4106. align: "center",
  4107. style: {
  4108. marginTop: "-50px"
  4109. }
  4110. }, __jsx("h2", null, __jsx("b", null, "Yamaha Dealers")), __jsx(external_react_select_default.a, {
  4111. value: selected ? dealers.filter(i => i.id == selected) : null,
  4112. getOptionLabel: option => `${option.name}`,
  4113. getOptionValue: option => option.id,
  4114. options: dealers,
  4115. isMulti: true,
  4116. instanceId: "name",
  4117. placeholder: "Cari Dealer",
  4118. onChange: values => handleName(values)
  4119. }), __jsx("br", null), __jsx(GridContainer["a" /* default */], {
  4120. justify: "center"
  4121. }, Dealers)))));
  4122. };
  4123. /* harmony default export */ var dealers_dealers = (DataDealer);
  4124. // EXTERNAL MODULE: external "react-query"
  4125. var external_react_query_ = __webpack_require__("iddH");
  4126. // CONCATENATED MODULE: ./pages/yamaha/dealers.js
  4127. var dealers_jsx = external_react_default.a.createElement;
  4128. 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); }
  4129. 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; }
  4130. 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; }
  4131. const queryClient = new external_react_query_["QueryClient"]();
  4132. const dealers_handleName = values => {
  4133. router_default.a.push({
  4134. pathname: '/yamaha/dealers',
  4135. query: values && values.length != 0 ? {
  4136. filter: values[0]["name"]
  4137. } : {}
  4138. });
  4139. };
  4140. const dealers_useStyles = Object(styles_["makeStyles"])(components["a" /* default */]);
  4141. const dealers_Dealers = function (_ref) {
  4142. let {
  4143. selected,
  4144. backend,
  4145. dealers
  4146. } = _ref,
  4147. props = dealers_objectWithoutProperties(_ref, ["selected", "backend", "dealers"]);
  4148. const classes = dealers_useStyles();
  4149. const rest = Object.assign({}, props);
  4150. return dealers_jsx("div", null, dealers_jsx(Header["a" /* default */], _extends({
  4151. leftLinks: dealers_jsx(HeaderLinks["a" /* default */], null),
  4152. fixed: true,
  4153. color: "info",
  4154. changeColorOnScroll: {
  4155. height: 400,
  4156. color: "white"
  4157. }
  4158. }, rest)), dealers_jsx(Parallax["a" /* default */], {
  4159. image: __webpack_require__("3QJ7"),
  4160. styles: {
  4161. marginTop: "50px"
  4162. }
  4163. }), dealers_jsx("div", {
  4164. className: external_classnames_default()(classes.main, classes.mainRaised)
  4165. }, dealers_jsx(external_react_query_["QueryClientProvider"], {
  4166. client: queryClient
  4167. }, dealers_jsx(snackbar["a" /* default */], null), dealers_jsx(dealers_dealers, {
  4168. selected: selected == "" ? null : selected[0]["id"],
  4169. handleName: dealers_handleName,
  4170. dealers: dealers,
  4171. backend: backend
  4172. }))), dealers_jsx(Footer["a" /* default */], null));
  4173. };
  4174. /* harmony default export */ var yamaha_dealers = __webpack_exports__["default"] = (dealers_Dealers);
  4175. async function getServerSideProps(context) {
  4176. var dealers = [];
  4177. var filter = context.query.filter || "";
  4178. var selected = "";
  4179. const backend = process.env.BACKEND_SERVER_URI;
  4180. var res = await dealer_default.a.GetDealers(filter);
  4181. if (res["STATUS"] === 1) {
  4182. dealers = res["DATA"]["dealers"];
  4183. if (filter != "") {
  4184. selected = dealers.filter(i => i.name == filter);
  4185. }
  4186. }
  4187. return {
  4188. props: {
  4189. selected,
  4190. dealers,
  4191. backend
  4192. } // will be passed to the page component as props
  4193. };
  4194. }
  4195. /***/ }),
  4196. /***/ "qt1I":
  4197. /***/ (function(module, exports) {
  4198. module.exports = require("@material-ui/core/Paper");
  4199. /***/ }),
  4200. /***/ "rf6O":
  4201. /***/ (function(module, exports) {
  4202. module.exports = require("prop-types");
  4203. /***/ }),
  4204. /***/ "vtRj":
  4205. /***/ (function(module, exports) {
  4206. module.exports = require("react-select");
  4207. /***/ }),
  4208. /***/ "x54t":
  4209. /***/ (function(module, exports) {
  4210. module.exports = require("@material-ui/core/MenuItem");
  4211. /***/ }),
  4212. /***/ "xmQw":
  4213. /***/ (function(module, exports) {
  4214. module.exports = require("@material-ui/core/MenuList");
  4215. /***/ }),
  4216. /***/ "z+8S":
  4217. /***/ (function(module, exports) {
  4218. module.exports = require("@apollo/client");
  4219. /***/ })
  4220. /******/ });