25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

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