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.
 
 

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