Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

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