25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

5179 lines
168 KiB

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