You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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