選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

5170 行
167 KiB

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