No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

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