Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

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