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

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