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.
 
 

5536 line
180 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 = 57);
  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. /***/ 57:
  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: "#fff",
  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);
  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("div", {
  1350. align: "center",
  1351. style: {
  1352. marginTop: "-20px"
  1353. }
  1354. }, __jsx("br", null), __jsx("br", null), __jsx("br", null), __jsx("div", {
  1355. align: "center",
  1356. style: {
  1357. marginTop: "-20px"
  1358. }
  1359. }, __jsx("img", {
  1360. className: classes.imgCard,
  1361. src: assets_img_nscb_png__WEBPACK_IMPORTED_MODULE_11___default.a,
  1362. style: {
  1363. width: "350px",
  1364. padding: "20px"
  1365. }
  1366. }), __jsx("img", {
  1367. className: classes.imgCard,
  1368. src: assets_img_Suzuki_png__WEBPACK_IMPORTED_MODULE_12___default.a,
  1369. style: {
  1370. width: "350px",
  1371. padding: "20px"
  1372. }
  1373. }))), __jsx("br", null), __jsx("div", {
  1374. align: "center"
  1375. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1376. className: classes.list
  1377. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1378. className: classes.inlineBlock
  1379. }, __jsx("a", {
  1380. href: "/suzuki/home",
  1381. className: classes.block
  1382. }, " Home ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1383. className: classes.inlineBlock
  1384. }, __jsx("a", {
  1385. href: "/suzuki/product/product",
  1386. className: classes.block
  1387. }, " Product ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1388. className: classes.inlineBlock
  1389. }, __jsx("a", {
  1390. href: "/suzuki/latestsnews",
  1391. className: classes.block
  1392. }, " Latest News ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1393. className: classes.inlineBlock
  1394. }, __jsx("a", {
  1395. href: "/suzuki/carrer",
  1396. className: classes.block
  1397. }, " Carrer ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1398. className: classes.inlineBlock
  1399. }, __jsx("a", {
  1400. href: "/suzuki/about_us/aboutus",
  1401. className: classes.block
  1402. }, " About Us ")))), __jsx("div", {
  1403. align: "center"
  1404. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1405. className: classes.list
  1406. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1407. className: classes.inlineBlock
  1408. }, __jsx("a", {
  1409. href: "#",
  1410. target: "_blank",
  1411. className: classes.block
  1412. }, "Facebook")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1413. className: classes.inlineBlock
  1414. }, __jsx("a", {
  1415. href: "#",
  1416. target: "_blank",
  1417. className: classes.block
  1418. }, "Instagram")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1419. className: classes.inlineBlock
  1420. }, __jsx("a", {
  1421. href: "#",
  1422. target: "_blank",
  1423. className: classes.block
  1424. }, "Twitter")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1425. className: classes.inlineBlock
  1426. }, __jsx("a", {
  1427. href: "#",
  1428. target: "_blank",
  1429. className: classes.block
  1430. }, "Youtube")))), __jsx("br", null), __jsx("br", null), __jsx("div", {
  1431. align: "center"
  1432. }, "\xA9 ", 1900 + new Date().getYear(), " , All Right Reserved", " ", " by", " ", " @Thamrin Brothers"), __jsx("br", null), __jsx("br", null));
  1433. }
  1434. /***/ }),
  1435. /***/ "K2gz":
  1436. /***/ (function(module, exports) {
  1437. module.exports = require("classnames");
  1438. /***/ }),
  1439. /***/ "KKbo":
  1440. /***/ (function(module, exports) {
  1441. module.exports = require("@material-ui/core");
  1442. /***/ }),
  1443. /***/ "Kg+a":
  1444. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1445. "use strict";
  1446. // EXTERNAL MODULE: external "react"
  1447. var external_react_ = __webpack_require__("cDcd");
  1448. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1449. // EXTERNAL MODULE: external "classnames"
  1450. var external_classnames_ = __webpack_require__("K2gz");
  1451. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1452. // EXTERNAL MODULE: external "@material-ui/core/styles/makeStyles"
  1453. var makeStyles_ = __webpack_require__("8//M");
  1454. var makeStyles_default = /*#__PURE__*/__webpack_require__.n(makeStyles_);
  1455. // EXTERNAL MODULE: external "@material-ui/core/Button"
  1456. var Button_ = __webpack_require__("Wh1t");
  1457. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  1458. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1459. var nextjs_material_kit = __webpack_require__("eDSW");
  1460. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/buttonStyle.js
  1461. const buttonStyle = {
  1462. button: {
  1463. minHeight: "auto",
  1464. minWidth: "auto",
  1465. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1466. color: "#FFFFFF",
  1467. 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)",
  1468. border: "none",
  1469. borderRadius: "3px",
  1470. position: "relative",
  1471. padding: "12px 30px",
  1472. margin: ".3125rem 1px",
  1473. fontSize: "12px",
  1474. fontWeight: "400",
  1475. textTransform: "uppercase",
  1476. letterSpacing: "0",
  1477. willChange: "box-shadow, transform",
  1478. transition: "box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
  1479. lineHeight: "1.42857143",
  1480. textAlign: "center",
  1481. whiteSpace: "nowrap",
  1482. verticalAlign: "middle",
  1483. touchAction: "manipulation",
  1484. cursor: "pointer",
  1485. "&:hover,&:focus": {
  1486. color: "#FFFFFF",
  1487. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1488. 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)"
  1489. },
  1490. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1491. position: "relative",
  1492. display: "inline-block",
  1493. top: "0",
  1494. fontSize: "1.1rem",
  1495. marginRight: "4px",
  1496. verticalAlign: "middle"
  1497. },
  1498. "& svg": {
  1499. position: "relative",
  1500. display: "inline-block",
  1501. top: "0",
  1502. width: "18px",
  1503. height: "18px",
  1504. marginRight: "4px",
  1505. verticalAlign: "middle"
  1506. },
  1507. "&$justIcon": {
  1508. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1509. marginRight: "0px",
  1510. position: "absolute",
  1511. width: "100%",
  1512. transform: "none",
  1513. left: "0px",
  1514. top: "0px",
  1515. height: "100%",
  1516. lineHeight: "41px",
  1517. fontSize: "20px"
  1518. }
  1519. }
  1520. },
  1521. fullWidth: {
  1522. width: "100%"
  1523. },
  1524. primary: {
  1525. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1526. 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)}`,
  1527. "&:hover,&:focus": {
  1528. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1529. 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)}`
  1530. }
  1531. },
  1532. info: {
  1533. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1534. 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)}`,
  1535. "&:hover,&:focus": {
  1536. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1537. 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)}`
  1538. }
  1539. },
  1540. success: {
  1541. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1542. 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)}`,
  1543. "&:hover,&:focus": {
  1544. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1545. 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)}`
  1546. }
  1547. },
  1548. warning: {
  1549. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1550. 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)}`,
  1551. "&:hover,&:focus": {
  1552. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1553. 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)}`
  1554. }
  1555. },
  1556. danger: {
  1557. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1558. 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)}`,
  1559. "&:hover,&:focus": {
  1560. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1561. 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)}`
  1562. }
  1563. },
  1564. rose: {
  1565. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1566. 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)}`,
  1567. "&:hover,&:focus": {
  1568. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1569. 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)}`
  1570. }
  1571. },
  1572. white: {
  1573. "&,&:focus,&:hover,&:visited": {
  1574. backgroundColor: "#FFFFFF",
  1575. color: nextjs_material_kit["i" /* grayColor */]
  1576. }
  1577. },
  1578. twitter: {
  1579. backgroundColor: "#55acee",
  1580. color: "#fff",
  1581. 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)",
  1582. "&:hover,&:focus,&:visited": {
  1583. backgroundColor: "#55acee",
  1584. color: "#fff",
  1585. 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)"
  1586. }
  1587. },
  1588. facebook: {
  1589. backgroundColor: "#3b5998",
  1590. color: "#fff",
  1591. 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)",
  1592. "&:hover,&:focus": {
  1593. backgroundColor: "#3b5998",
  1594. color: "#fff",
  1595. 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)"
  1596. }
  1597. },
  1598. google: {
  1599. backgroundColor: "#dd4b39",
  1600. color: "#fff",
  1601. 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)",
  1602. "&:hover,&:focus": {
  1603. backgroundColor: "#dd4b39",
  1604. color: "#fff",
  1605. 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)"
  1606. }
  1607. },
  1608. github: {
  1609. backgroundColor: "#333333",
  1610. color: "#fff",
  1611. 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)",
  1612. "&:hover,&:focus": {
  1613. backgroundColor: "#333333",
  1614. color: "#fff",
  1615. 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)"
  1616. }
  1617. },
  1618. simple: {
  1619. "&,&:focus,&:hover,&:visited": {
  1620. color: "#FFFFFF",
  1621. background: "transparent",
  1622. boxShadow: "none"
  1623. },
  1624. "&$primary": {
  1625. "&,&:focus,&:hover,&:visited": {
  1626. color: nextjs_material_kit["p" /* primaryColor */]
  1627. }
  1628. },
  1629. "&$info": {
  1630. "&,&:focus,&:hover,&:visited": {
  1631. color: nextjs_material_kit["m" /* infoColor */]
  1632. }
  1633. },
  1634. "&$success": {
  1635. "&,&:focus,&:hover,&:visited": {
  1636. color: nextjs_material_kit["u" /* successColor */]
  1637. }
  1638. },
  1639. "&$warning": {
  1640. "&,&:focus,&:hover,&:visited": {
  1641. color: nextjs_material_kit["z" /* warningColor */]
  1642. }
  1643. },
  1644. "&$rose": {
  1645. "&,&:focus,&:hover,&:visited": {
  1646. color: nextjs_material_kit["r" /* roseColor */]
  1647. }
  1648. },
  1649. "&$danger": {
  1650. "&,&:focus,&:hover,&:visited": {
  1651. color: nextjs_material_kit["f" /* dangerColor */]
  1652. }
  1653. },
  1654. "&$twitter": {
  1655. "&,&:focus,&:hover,&:visited": {
  1656. color: "#55acee"
  1657. }
  1658. },
  1659. "&$facebook": {
  1660. "&,&:focus,&:hover,&:visited": {
  1661. color: "#3b5998"
  1662. }
  1663. },
  1664. "&$google": {
  1665. "&,&:focus,&:hover,&:visited": {
  1666. color: "#dd4b39"
  1667. }
  1668. },
  1669. "&$github": {
  1670. "&,&:focus,&:hover,&:visited": {
  1671. color: "#333333"
  1672. }
  1673. }
  1674. },
  1675. transparent: {
  1676. "&,&:focus,&:hover,&:visited": {
  1677. color: "inherit",
  1678. background: "transparent",
  1679. boxShadow: "none"
  1680. }
  1681. },
  1682. disabled: {
  1683. opacity: "0.65",
  1684. pointerEvents: "none"
  1685. },
  1686. lg: {
  1687. padding: "1.125rem 2.25rem",
  1688. fontSize: "0.875rem",
  1689. lineHeight: "1.333333",
  1690. borderRadius: "0.2rem"
  1691. },
  1692. sm: {
  1693. padding: "0.40625rem 1.25rem",
  1694. fontSize: "0.6875rem",
  1695. lineHeight: "1.5",
  1696. borderRadius: "0.2rem"
  1697. },
  1698. round: {
  1699. borderRadius: "30px"
  1700. },
  1701. block: {
  1702. width: "100% !important"
  1703. },
  1704. link: {
  1705. "&,&:hover,&:focus": {
  1706. backgroundColor: "transparent",
  1707. color: "#999999",
  1708. boxShadow: "none"
  1709. }
  1710. },
  1711. justIcon: {
  1712. paddingLeft: "12px",
  1713. paddingRight: "12px",
  1714. fontSize: "20px",
  1715. height: "41px",
  1716. minWidth: "41px",
  1717. width: "41px",
  1718. "& .fab,& .fas,& .far,& .fal,& svg,& .material-icons": {
  1719. marginRight: "0px"
  1720. },
  1721. "&$lg": {
  1722. height: "57px",
  1723. minWidth: "57px",
  1724. width: "57px",
  1725. lineHeight: "56px",
  1726. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1727. fontSize: "32px",
  1728. lineHeight: "56px"
  1729. },
  1730. "& svg": {
  1731. width: "32px",
  1732. height: "32px"
  1733. }
  1734. },
  1735. "&$sm": {
  1736. height: "30px",
  1737. minWidth: "30px",
  1738. width: "30px",
  1739. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1740. fontSize: "17px",
  1741. lineHeight: "29px"
  1742. },
  1743. "& svg": {
  1744. width: "17px",
  1745. height: "17px"
  1746. }
  1747. }
  1748. }
  1749. };
  1750. /* harmony default export */ var components_buttonStyle = (buttonStyle);
  1751. // CONCATENATED MODULE: ./components/CustomButtons/Button.js
  1752. var __jsx = external_react_default.a.createElement;
  1753. 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); }
  1754. 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; }
  1755. 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; }
  1756. 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; }
  1757. 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; }
  1758. 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; }
  1759. // nodejs library to set properties for components
  1760. // nodejs library that concatenates classes
  1761. // @material-ui/core components
  1762. // core components
  1763. const makeComponentStyles = makeStyles_default()(() => _objectSpread({}, components_buttonStyle));
  1764. const RegularButton = external_react_default.a.forwardRef((props, ref) => {
  1765. const {
  1766. color,
  1767. round,
  1768. children,
  1769. fullWidth,
  1770. disabled,
  1771. simple,
  1772. size,
  1773. block,
  1774. link,
  1775. justIcon,
  1776. className
  1777. } = props,
  1778. rest = _objectWithoutProperties(props, ["color", "round", "children", "fullWidth", "disabled", "simple", "size", "block", "link", "justIcon", "className"]);
  1779. const classes = makeComponentStyles();
  1780. const btnClasses = external_classnames_default()({
  1781. [classes.button]: true,
  1782. [classes[size]]: size,
  1783. [classes[color]]: color,
  1784. [classes.round]: round,
  1785. [classes.fullWidth]: fullWidth,
  1786. [classes.disabled]: disabled,
  1787. [classes.simple]: simple,
  1788. [classes.block]: block,
  1789. [classes.link]: link,
  1790. [classes.justIcon]: justIcon,
  1791. [className]: className
  1792. });
  1793. return __jsx(Button_default.a, _extends({}, rest, {
  1794. ref: ref,
  1795. classes: {
  1796. root: btnClasses
  1797. }
  1798. }), children);
  1799. });
  1800. /* harmony default export */ var Button = __webpack_exports__["a"] = (RegularButton);
  1801. /***/ }),
  1802. /***/ "Luvt":
  1803. /***/ (function(module, exports, __webpack_require__) {
  1804. "use strict";
  1805. var _apollo = _interopRequireDefault(__webpack_require__("B/3u"));
  1806. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  1807. async function GetservicesYamaha(token = "") {
  1808. var res = await _apollo.default.query(`
  1809. query{
  1810. services
  1811. {
  1812. name
  1813. img{
  1814. url
  1815. }
  1816. }
  1817. }
  1818. `, token);
  1819. return res;
  1820. }
  1821. async function GetservicesSuzuki(token = "") {
  1822. var res = await _apollo.default.query(`
  1823. query{
  1824. services
  1825. {
  1826. name
  1827. img{
  1828. url
  1829. }
  1830. }
  1831. }
  1832. `, token);
  1833. return res;
  1834. }
  1835. module.exports = {
  1836. GetservicesYamaha: GetservicesYamaha,
  1837. GetservicesSuzuki: GetservicesSuzuki
  1838. };
  1839. /***/ }),
  1840. /***/ "M9IG":
  1841. /***/ (function(module, exports) {
  1842. /***/ }),
  1843. /***/ "Ms0O":
  1844. /***/ (function(module, exports) {
  1845. module.exports = require("@material-ui/core/Toolbar");
  1846. /***/ }),
  1847. /***/ "Npyv":
  1848. /***/ (function(module, exports) {
  1849. module.exports = "/_next/static/images/Suzuki-46aee4e5f912860adf2da85d836532b5.png";
  1850. /***/ }),
  1851. /***/ "O/hg":
  1852. /***/ (function(module, exports) {
  1853. module.exports = require("react-slick");
  1854. /***/ }),
  1855. /***/ "Osoz":
  1856. /***/ (function(module, exports) {
  1857. module.exports = require("next/dist/next-server/lib/router-context.js");
  1858. /***/ }),
  1859. /***/ "Q01v":
  1860. /***/ (function(module, exports) {
  1861. module.exports = require("@material-ui/core/Drawer");
  1862. /***/ }),
  1863. /***/ "QOEo":
  1864. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1865. "use strict";
  1866. // EXPORTS
  1867. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomDropdown; });
  1868. // EXTERNAL MODULE: external "react"
  1869. var external_react_ = __webpack_require__("cDcd");
  1870. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1871. // EXTERNAL MODULE: external "classnames"
  1872. var external_classnames_ = __webpack_require__("K2gz");
  1873. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1874. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1875. var styles_ = __webpack_require__("9Pu4");
  1876. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  1877. var MenuItem_ = __webpack_require__("x54t");
  1878. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  1879. // EXTERNAL MODULE: external "@material-ui/core/MenuList"
  1880. var MenuList_ = __webpack_require__("xmQw");
  1881. var MenuList_default = /*#__PURE__*/__webpack_require__.n(MenuList_);
  1882. // EXTERNAL MODULE: external "@material-ui/core/ClickAwayListener"
  1883. var ClickAwayListener_ = __webpack_require__("31Yn");
  1884. var ClickAwayListener_default = /*#__PURE__*/__webpack_require__.n(ClickAwayListener_);
  1885. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  1886. var Paper_ = __webpack_require__("qt1I");
  1887. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  1888. // EXTERNAL MODULE: external "@material-ui/core/Grow"
  1889. var Grow_ = __webpack_require__("mf1M");
  1890. var Grow_default = /*#__PURE__*/__webpack_require__.n(Grow_);
  1891. // EXTERNAL MODULE: external "@material-ui/core/Divider"
  1892. var Divider_ = __webpack_require__("nybW");
  1893. var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
  1894. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  1895. var Icon_ = __webpack_require__("7vM9");
  1896. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  1897. // EXTERNAL MODULE: external "@material-ui/core/Popper"
  1898. var Popper_ = __webpack_require__("jD8W");
  1899. var Popper_default = /*#__PURE__*/__webpack_require__.n(Popper_);
  1900. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  1901. var Button = __webpack_require__("Kg+a");
  1902. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1903. var nextjs_material_kit = __webpack_require__("eDSW");
  1904. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customDropdownStyle.js
  1905. 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; }
  1906. 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; }
  1907. 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; }
  1908. const customDropdownStyle = theme => ({
  1909. popperClose: {
  1910. pointerEvents: "none"
  1911. },
  1912. pooperNav: {
  1913. [theme.breakpoints.down("sm")]: {
  1914. position: "static !important",
  1915. left: "unset !important",
  1916. top: "unset !important",
  1917. transform: "none !important",
  1918. willChange: "none !important",
  1919. "& > div": {
  1920. boxShadow: "none !important",
  1921. marginLeft: "1.5rem",
  1922. marginRight: "1.5rem",
  1923. transition: "none !important",
  1924. marginTop: "0px !important",
  1925. marginBottom: "5px !important",
  1926. padding: "0px !important"
  1927. }
  1928. }
  1929. },
  1930. dropdown: {
  1931. borderRadius: "3px",
  1932. border: "0",
  1933. boxShadow: "0 2px 5px 0 rgba(0, 0, 0, 0.26)",
  1934. top: "100%",
  1935. zIndex: "1000",
  1936. minWidth: "160px",
  1937. padding: "5px 0",
  1938. margin: "2px 0 0",
  1939. fontSize: "14px",
  1940. textAlign: "left",
  1941. listStyle: "none",
  1942. backgroundColor: "#fff",
  1943. backgroundClip: "padding-box"
  1944. },
  1945. menuList: {
  1946. padding: "0"
  1947. },
  1948. popperResponsive: {
  1949. zIndex: "1200",
  1950. position: "absolute !important",
  1951. [theme.breakpoints.down("sm")]: {
  1952. zIndex: "1640",
  1953. position: "static !important",
  1954. float: "none",
  1955. width: "auto",
  1956. marginTop: "0",
  1957. backgroundColor: "transparent",
  1958. border: "0",
  1959. boxShadow: "none",
  1960. color: "black"
  1961. }
  1962. },
  1963. dropdownItem: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  1964. fontSize: "13px",
  1965. padding: "10px 20px",
  1966. margin: "0 5px",
  1967. borderRadius: "2px",
  1968. position: "relative",
  1969. transition: "all 150ms linear",
  1970. display: "block",
  1971. clear: "both",
  1972. fontWeight: "400",
  1973. height: "fit-content",
  1974. color: "#333",
  1975. whiteSpace: "nowrap",
  1976. minHeight: "unset"
  1977. }),
  1978. blackHover: {
  1979. "&:hover": {
  1980. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)",
  1981. backgroundColor: "#212121",
  1982. color: "#fff"
  1983. }
  1984. },
  1985. primaryHover: {
  1986. "&:hover": _objectSpread({
  1987. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1988. color: "#FFFFFF"
  1989. }, nextjs_material_kit["n" /* primaryBoxShadow */])
  1990. },
  1991. infoHover: {
  1992. "&:hover": _objectSpread({
  1993. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1994. color: "#FFFFFF"
  1995. }, nextjs_material_kit["k" /* infoBoxShadow */])
  1996. },
  1997. successHover: {
  1998. "&:hover": _objectSpread({
  1999. backgroundColor: nextjs_material_kit["u" /* successColor */],
  2000. color: "#FFFFFF"
  2001. }, nextjs_material_kit["s" /* successBoxShadow */])
  2002. },
  2003. warningHover: {
  2004. "&:hover": _objectSpread({
  2005. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  2006. color: "#FFFFFF"
  2007. }, nextjs_material_kit["x" /* warningBoxShadow */])
  2008. },
  2009. dangerHover: {
  2010. "&:hover": _objectSpread({
  2011. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  2012. color: "#FFFFFF"
  2013. }, nextjs_material_kit["d" /* dangerBoxShadow */])
  2014. },
  2015. roseHover: {
  2016. "&:hover": _objectSpread({
  2017. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  2018. color: "#FFFFFF"
  2019. }, nextjs_material_kit["q" /* roseBoxShadow */])
  2020. },
  2021. dropdownItemRTL: {
  2022. textAlign: "right"
  2023. },
  2024. dropdownDividerItem: {
  2025. margin: "5px 0",
  2026. backgroundColor: "rgba(0, 0, 0, 0.12)",
  2027. height: "1px",
  2028. overflow: "hidden"
  2029. },
  2030. buttonIcon: {
  2031. width: "20px",
  2032. height: "20px"
  2033. },
  2034. caret: {
  2035. transition: "all 150ms ease-in",
  2036. display: "inline-block",
  2037. width: "0",
  2038. height: "0",
  2039. marginLeft: "4px",
  2040. verticalAlign: "middle",
  2041. borderTop: "4px solid",
  2042. borderRight: "4px solid transparent",
  2043. borderLeft: "4px solid transparent"
  2044. },
  2045. caretActive: {
  2046. transform: "rotate(180deg)"
  2047. },
  2048. caretRTL: {
  2049. marginRight: "4px"
  2050. },
  2051. dropdownHeader: {
  2052. display: "block",
  2053. padding: "0.1875rem 1.25rem",
  2054. fontSize: "0.75rem",
  2055. lineHeight: "1.428571",
  2056. color: "#777",
  2057. whiteSpace: "nowrap",
  2058. fontWeight: "inherit",
  2059. marginTop: "10px",
  2060. minHeight: "unset",
  2061. "&:hover,&:focus": {
  2062. backgroundColor: "transparent",
  2063. cursor: "auto"
  2064. }
  2065. },
  2066. noLiPadding: {
  2067. padding: "0"
  2068. }
  2069. });
  2070. /* harmony default export */ var components_customDropdownStyle = (customDropdownStyle);
  2071. // CONCATENATED MODULE: ./components/CustomDropdown/CustomDropdown.js
  2072. var __jsx = external_react_default.a.createElement;
  2073. 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); }
  2074. // nodejs library that concatenates classes
  2075. // nodejs library to set properties for components
  2076. // @material-ui/core components
  2077. // core components
  2078. const useStyles = Object(styles_["makeStyles"])(components_customDropdownStyle);
  2079. function CustomDropdown(props) {
  2080. const [anchorEl, setAnchorEl] = external_react_default.a.useState(null);
  2081. const handleClick = event => {
  2082. if (anchorEl && anchorEl.contains(event.target)) {
  2083. setAnchorEl(null);
  2084. } else {
  2085. setAnchorEl(event.currentTarget);
  2086. }
  2087. };
  2088. const handleClose = param => {
  2089. setAnchorEl(null);
  2090. if (props && props.onClick) {
  2091. props.onClick(param);
  2092. }
  2093. };
  2094. const handleCloseAway = event => {
  2095. if (anchorEl.contains(event.target)) {
  2096. return;
  2097. }
  2098. setAnchorEl(null);
  2099. };
  2100. const classes = useStyles();
  2101. const {
  2102. buttonText,
  2103. buttonIcon,
  2104. dropdownList,
  2105. buttonProps,
  2106. dropup,
  2107. dropdownHeader,
  2108. caret,
  2109. hoverColor,
  2110. left,
  2111. rtlActive,
  2112. noLiPadding,
  2113. navDropdown
  2114. } = props;
  2115. const caretClasses = external_classnames_default()({
  2116. [classes.caret]: true,
  2117. [classes.caretActive]: Boolean(anchorEl),
  2118. [classes.caretRTL]: rtlActive
  2119. });
  2120. const dropdownItem = external_classnames_default()({
  2121. [classes.dropdownItem]: true,
  2122. [classes[hoverColor + "Hover"]]: true,
  2123. [classes.noLiPadding]: noLiPadding,
  2124. [classes.dropdownItemRTL]: rtlActive
  2125. });
  2126. let icon = null;
  2127. switch (typeof buttonIcon) {
  2128. case "object":
  2129. icon = __jsx(props.buttonIcon, {
  2130. className: classes.buttonIcon
  2131. });
  2132. break;
  2133. case "string":
  2134. icon = __jsx(Icon_default.a, {
  2135. className: classes.buttonIcon
  2136. }, props.buttonIcon);
  2137. break;
  2138. default:
  2139. icon = null;
  2140. break;
  2141. }
  2142. return __jsx("div", null, __jsx("div", null, __jsx(Button["a" /* default */], _extends({
  2143. "aria-label": "Notifications",
  2144. "aria-owns": anchorEl ? "menu-list" : null,
  2145. "aria-haspopup": "true"
  2146. }, buttonProps, {
  2147. onClick: handleClick
  2148. }), icon, buttonText !== undefined ? buttonText : null, caret ? __jsx("b", {
  2149. className: caretClasses
  2150. }) : null)), __jsx(Popper_default.a, {
  2151. open: Boolean(anchorEl),
  2152. anchorEl: anchorEl,
  2153. transition: true,
  2154. disablePortal: true,
  2155. placement: dropup ? left ? "top-start" : "top" : left ? "bottom-start" : "bottom",
  2156. className: external_classnames_default()({
  2157. [classes.popperClose]: !anchorEl,
  2158. [classes.popperResponsive]: true,
  2159. [classes.pooperNav]: Boolean(anchorEl) && navDropdown
  2160. })
  2161. }, () => __jsx(Grow_default.a, {
  2162. in: Boolean(anchorEl),
  2163. id: "menu-list",
  2164. style: dropup ? {
  2165. transformOrigin: "0 100% 0"
  2166. } : {
  2167. transformOrigin: "0 0 0"
  2168. }
  2169. }, __jsx(Paper_default.a, {
  2170. className: classes.dropdown
  2171. }, __jsx(ClickAwayListener_default.a, {
  2172. onClickAway: handleCloseAway
  2173. }, __jsx(MenuList_default.a, {
  2174. role: "menu",
  2175. className: classes.menuList
  2176. }, dropdownHeader !== undefined ? __jsx(MenuItem_default.a, {
  2177. onClick: () => handleClose(dropdownHeader),
  2178. className: classes.dropdownHeader
  2179. }, dropdownHeader) : null, dropdownList.map((prop, key) => {
  2180. if (prop.divider) {
  2181. return __jsx(Divider_default.a, {
  2182. key: key,
  2183. onClick: () => handleClose("divider"),
  2184. className: classes.dropdownDividerItem
  2185. });
  2186. }
  2187. return __jsx(MenuItem_default.a, {
  2188. key: key,
  2189. onClick: () => handleClose(prop),
  2190. className: dropdownItem
  2191. }, prop);
  2192. })))))));
  2193. }
  2194. CustomDropdown.defaultProps = {
  2195. caret: true,
  2196. hoverColor: "primary"
  2197. };
  2198. /***/ }),
  2199. /***/ "Qit1":
  2200. /***/ (function(module, exports) {
  2201. module.exports = "/_next/static/images/1-8fd80a0b8c906c638286a4356ee691ae.jpg";
  2202. /***/ }),
  2203. /***/ "SpHr":
  2204. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2205. "use strict";
  2206. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  2207. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  2208. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  2209. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  2210. /* harmony import */ var components_Snackbar_SnackbarContent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("FoiA");
  2211. /* harmony import */ var assets_jss_nextjs_material_kit_pages_componentsSections_notificationsStyles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("7WNa");
  2212. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  2213. // @material-ui/core components
  2214. // Component
  2215. 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"]);
  2216. const DataSnackbarContent = function () {
  2217. const classes = useStyles();
  2218. return __jsx("div", {
  2219. align: "center"
  2220. }, __jsx("div", {
  2221. align: "center",
  2222. className: classes.section,
  2223. id: "notifications"
  2224. }, __jsx(components_Snackbar_SnackbarContent_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], {
  2225. message: __jsx("h4", null, "Thamrin Group bersama Anda melawan COVID-19. Untuk informasi silakan ", __jsx("a", {
  2226. href: "https://covid19.go.id/",
  2227. target: "_blank",
  2228. className: classes.block
  2229. }, "klik di sini.")),
  2230. align: "center",
  2231. color: "info"
  2232. })));
  2233. };
  2234. /* harmony default export */ __webpack_exports__["a"] = (DataSnackbarContent);
  2235. /***/ }),
  2236. /***/ "T/ge":
  2237. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2238. "use strict";
  2239. // ESM COMPAT FLAG
  2240. __webpack_require__.r(__webpack_exports__);
  2241. // EXPORTS
  2242. __webpack_require__.d(__webpack_exports__, "getServerSideProps", function() { return /* binding */ getServerSideProps; });
  2243. // EXTERNAL MODULE: external "react"
  2244. var external_react_ = __webpack_require__("cDcd");
  2245. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2246. // EXTERNAL MODULE: external "classnames"
  2247. var external_classnames_ = __webpack_require__("K2gz");
  2248. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2249. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2250. var styles_ = __webpack_require__("9Pu4");
  2251. // EXTERNAL MODULE: ./components/Header/Header.js + 1 modules
  2252. var Header = __webpack_require__("8x5e");
  2253. // EXTERNAL MODULE: ./components/Header/HeaderSuzuki.js
  2254. var HeaderSuzuki = __webpack_require__("3f76");
  2255. // EXTERNAL MODULE: ./components/Parallax/Parallax.js + 1 modules
  2256. var Parallax = __webpack_require__("Z2Lm");
  2257. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/components.js
  2258. var components = __webpack_require__("bhG4");
  2259. // EXTERNAL MODULE: ./components/Footer/FooterSuzuki.js
  2260. var FooterSuzuki = __webpack_require__("Jlmy");
  2261. // EXTERNAL MODULE: ./api/home/service.js
  2262. var home_service = __webpack_require__("Luvt");
  2263. var service_default = /*#__PURE__*/__webpack_require__.n(home_service);
  2264. // EXTERNAL MODULE: ./api/home/carousel.js
  2265. var carousel = __webpack_require__("/j62");
  2266. var carousel_default = /*#__PURE__*/__webpack_require__.n(carousel);
  2267. // EXTERNAL MODULE: ./pages-sections/suzuki/snackbar.js
  2268. var snackbar = __webpack_require__("SpHr");
  2269. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  2270. var GridContainer = __webpack_require__("mtPR");
  2271. // EXTERNAL MODULE: ./components/Grid/GridItem.js
  2272. var GridItem = __webpack_require__("i4t8");
  2273. // EXTERNAL MODULE: ./components/Card/Card.js + 1 modules
  2274. var Card = __webpack_require__("A2So");
  2275. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/componentsSections/notificationsStyles.js
  2276. var notificationsStyles = __webpack_require__("7WNa");
  2277. // EXTERNAL MODULE: external "react-slick"
  2278. var external_react_slick_ = __webpack_require__("O/hg");
  2279. var external_react_slick_default = /*#__PURE__*/__webpack_require__.n(external_react_slick_);
  2280. // EXTERNAL MODULE: external "@material-ui/core/Grid"
  2281. var Grid_ = __webpack_require__("JQ2V");
  2282. var Grid_default = /*#__PURE__*/__webpack_require__.n(Grid_);
  2283. // CONCATENATED MODULE: ./pages-sections/suzuki/home/carousel.js
  2284. var __jsx = external_react_default.a.createElement;
  2285. 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; }
  2286. 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; }
  2287. const useStyles = Object(styles_["makeStyles"])(notificationsStyles["a" /* default */]);
  2288. const DataCarousel = function (_ref) {
  2289. let {
  2290. backend,
  2291. carousels
  2292. } = _ref,
  2293. props = _objectWithoutProperties(_ref, ["backend", "carousels"]);
  2294. const classes = useStyles();
  2295. const settings = {
  2296. dots: true,
  2297. infinite: true,
  2298. speed: 500,
  2299. slidesToShow: 1,
  2300. slidesToScroll: 1,
  2301. autoplay: true,
  2302. time: 5
  2303. };
  2304. const Carousels = carousels.map(data => {
  2305. return __jsx("div", null, __jsx("img", {
  2306. src: `${backend}${data.img[0]["url"]}`,
  2307. alt: "First slide",
  2308. className: "slick-image"
  2309. }));
  2310. });
  2311. return __jsx("div", {
  2312. className: classes.section,
  2313. id: "notifications"
  2314. }, __jsx("div", {
  2315. className: classes.section
  2316. }, __jsx("div", {
  2317. className: classes.container
  2318. }, __jsx(GridContainer["a" /* default */], null, __jsx(GridItem["a" /* default */], {
  2319. className: classes.marginAuto
  2320. }, __jsx(Card["a" /* default */], {
  2321. carousel: true
  2322. }, __jsx(external_react_slick_default.a, settings, Carousels)))), __jsx(GridContainer["a" /* default */], null, __jsx(GridItem["a" /* default */], {
  2323. className: classes.marginAuto,
  2324. xs: 6
  2325. }, __jsx(Card["a" /* default */], {
  2326. carousel: true
  2327. }, __jsx(external_react_slick_default.a, settings, __jsx("iframe", {
  2328. height: "300px",
  2329. src: "https://www.youtube.com/embed/lF8mfdLz2A8",
  2330. title: "YouTube video player",
  2331. frameborder: "0",
  2332. allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
  2333. allowfullscreen: true
  2334. })))), __jsx(GridItem["a" /* default */], {
  2335. className: classes.marginAuto,
  2336. xs: 6
  2337. }, __jsx(Card["a" /* default */], {
  2338. carousel: true
  2339. }, __jsx(external_react_slick_default.a, settings, __jsx("iframe", {
  2340. height: "300px",
  2341. src: "https://www.youtube.com/embed/W5y2C8lqOeA",
  2342. title: "YouTube video player",
  2343. frameborder: "0",
  2344. allow: "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",
  2345. allowfullscreen: true
  2346. }))))))));
  2347. };
  2348. /* harmony default export */ var home_carousel = (DataCarousel);
  2349. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  2350. var Paper_ = __webpack_require__("qt1I");
  2351. // EXTERNAL MODULE: ./components/Snackbar/SnackbarContent.js + 1 modules
  2352. var SnackbarContent = __webpack_require__("FoiA");
  2353. // CONCATENATED MODULE: ./pages-sections/suzuki/home/service.js
  2354. var service_jsx = external_react_default.a.createElement;
  2355. 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; }
  2356. 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; }
  2357. const service_useStyles = Object(styles_["makeStyles"])(notificationsStyles["a" /* default */]);
  2358. const DataService = function (_ref) {
  2359. let {
  2360. backend,
  2361. service
  2362. } = _ref,
  2363. props = service_objectWithoutProperties(_ref, ["backend", "service"]);
  2364. const classes = service_useStyles();
  2365. const services = service.map((data, index) => service_jsx(Grid_default.a, {
  2366. align: "center",
  2367. style: {
  2368. padding: "25px",
  2369. marginTop: "-30px"
  2370. }
  2371. }, service_jsx(Card["a" /* default */], {
  2372. style: {
  2373. width: "20rem"
  2374. }
  2375. }, service_jsx("div", {
  2376. align: "center"
  2377. }, service_jsx("img", {
  2378. style: {
  2379. height: "180px",
  2380. width: "300px",
  2381. display: "block"
  2382. },
  2383. className: classes.imgCardTop,
  2384. src: `${backend}${data.img[0]["url"]}`
  2385. })))));
  2386. return service_jsx("div", {
  2387. className: classes.section,
  2388. id: "notifications"
  2389. }, service_jsx("div", {
  2390. align: "center"
  2391. }, service_jsx("div", {
  2392. align: "center",
  2393. className: classes.section,
  2394. id: "notifications"
  2395. }, service_jsx(SnackbarContent["a" /* default */], {
  2396. message: service_jsx("h4", null, "Our Service"),
  2397. align: "center",
  2398. color: "info"
  2399. }))), service_jsx("div", null, service_jsx(GridContainer["a" /* default */], {
  2400. style: {
  2401. padding: "40px"
  2402. },
  2403. justify: "center"
  2404. }, services)));
  2405. };
  2406. /* harmony default export */ var suzuki_home_service = (DataService);
  2407. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  2408. var Icon_ = __webpack_require__("7vM9");
  2409. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  2410. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  2411. var Button = __webpack_require__("Kg+a");
  2412. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/imagesStyles.js
  2413. var imagesStyles = __webpack_require__("Ilpk");
  2414. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  2415. var nextjs_material_kit = __webpack_require__("eDSW");
  2416. // EXTERNAL MODULE: ./assets/img/sosmed/fb.jpg
  2417. var fb = __webpack_require__("zKQ2");
  2418. var fb_default = /*#__PURE__*/__webpack_require__.n(fb);
  2419. // EXTERNAL MODULE: ./assets/img/sosmed/ig.png
  2420. var ig = __webpack_require__("5Ld7");
  2421. var ig_default = /*#__PURE__*/__webpack_require__.n(ig);
  2422. // EXTERNAL MODULE: ./assets/img/sosmed/twt.png
  2423. var twt = __webpack_require__("0jmq");
  2424. var twt_default = /*#__PURE__*/__webpack_require__.n(twt);
  2425. // EXTERNAL MODULE: ./assets/img/sosmed/yt.jpg
  2426. var yt = __webpack_require__("bXSz");
  2427. var yt_default = /*#__PURE__*/__webpack_require__.n(yt);
  2428. // CONCATENATED MODULE: ./pages-sections/suzuki/home/sosmed.js
  2429. var sosmed_jsx = external_react_default.a.createElement;
  2430. 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; }
  2431. 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; }
  2432. 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; }
  2433. 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; }
  2434. 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; }
  2435. const styles = _objectSpread({}, imagesStyles["a" /* default */], {
  2436. cardTitle: nextjs_material_kit["b" /* cardTitle */]
  2437. });
  2438. const sosmed_useStyles = Object(styles_["makeStyles"])(styles);
  2439. const sosmed_DataService = function (_ref) {
  2440. let {
  2441. backend,
  2442. service
  2443. } = _ref,
  2444. props = sosmed_objectWithoutProperties(_ref, ["backend", "service"]);
  2445. const classes = sosmed_useStyles();
  2446. return sosmed_jsx("div", {
  2447. className: classes.section,
  2448. id: "notifications"
  2449. }, sosmed_jsx("div", {
  2450. align: "center",
  2451. className: classes.section,
  2452. id: "notifications"
  2453. }, sosmed_jsx(SnackbarContent["a" /* default */], {
  2454. message: sosmed_jsx("h4", null, "Follow Us On"),
  2455. align: "center",
  2456. color: "danger"
  2457. })), sosmed_jsx("div", {
  2458. align: "center"
  2459. }, sosmed_jsx(GridContainer["a" /* default */], {
  2460. justify: "center"
  2461. }, sosmed_jsx(Grid_default.a, {
  2462. style: {
  2463. padding: "25px"
  2464. }
  2465. }, sosmed_jsx(Card["a" /* default */], null, sosmed_jsx("img", {
  2466. className: classes.imgCard,
  2467. src: fb_default.a,
  2468. alt: "Card-img",
  2469. style: {
  2470. height: "200px",
  2471. width: "350px",
  2472. display: "block"
  2473. }
  2474. }), sosmed_jsx("div", {
  2475. className: classes.imgCardOverlay
  2476. }, sosmed_jsx("div", {
  2477. align: "center",
  2478. style: {
  2479. marginTop: "120px"
  2480. }
  2481. }, sosmed_jsx(Button["a" /* default */], {
  2482. color: "white",
  2483. href: "https://www.facebook.com/yamaholigan",
  2484. target: "_blank"
  2485. }, sosmed_jsx(Icon_default.a, {
  2486. className: classes.icons
  2487. }, "open_in_new"), "For More Info"))))), sosmed_jsx(Grid_default.a, {
  2488. style: {
  2489. padding: "25px"
  2490. }
  2491. }, sosmed_jsx(Card["a" /* default */], null, sosmed_jsx("img", {
  2492. className: classes.imgCard,
  2493. src: yt_default.a,
  2494. alt: "Card-img",
  2495. style: {
  2496. height: "200px",
  2497. width: "350px",
  2498. display: "block"
  2499. }
  2500. }), sosmed_jsx("div", {
  2501. className: classes.imgCardOverlay
  2502. }, sosmed_jsx("div", {
  2503. align: "center",
  2504. style: {
  2505. marginTop: "120px"
  2506. }
  2507. }, sosmed_jsx(Button["a" /* default */], {
  2508. color: "white",
  2509. href: "https://www.youtube.com/user/yamahamotorindonesia",
  2510. target: "_blank"
  2511. }, sosmed_jsx(Icon_default.a, {
  2512. className: classes.icons
  2513. }, "open_in_new"), "For More Info"))))), sosmed_jsx(Grid_default.a, {
  2514. style: {
  2515. padding: "25px"
  2516. }
  2517. }, sosmed_jsx(Card["a" /* default */], null, sosmed_jsx("img", {
  2518. className: classes.imgCard,
  2519. src: ig_default.a,
  2520. alt: "Card-img",
  2521. style: {
  2522. height: "200px",
  2523. width: "350px",
  2524. display: "block"
  2525. }
  2526. }), sosmed_jsx("div", {
  2527. className: classes.imgCardOverlay
  2528. }, sosmed_jsx("div", {
  2529. align: "center",
  2530. style: {
  2531. marginTop: "120px"
  2532. }
  2533. }, sosmed_jsx(Button["a" /* default */], {
  2534. color: "white",
  2535. href: "https://www.instagram.com/yamahaindonesia/",
  2536. target: "_blank"
  2537. }, sosmed_jsx(Icon_default.a, {
  2538. className: classes.icons
  2539. }, "open_in_new"), "For More Info")))))), sosmed_jsx(GridContainer["a" /* default */], {
  2540. justify: "center"
  2541. }, sosmed_jsx(Grid_default.a, {
  2542. style: {
  2543. padding: "25px",
  2544. marginTop: "-50px"
  2545. }
  2546. }, sosmed_jsx(Card["a" /* default */], null, sosmed_jsx("img", {
  2547. className: classes.imgCard,
  2548. src: twt_default.a,
  2549. alt: "Card-img",
  2550. style: {
  2551. height: "200px",
  2552. width: "350px",
  2553. display: "block"
  2554. }
  2555. }), sosmed_jsx("div", {
  2556. className: classes.imgCardOverlay
  2557. }, sosmed_jsx("div", {
  2558. align: "center",
  2559. style: {
  2560. marginTop: "120px"
  2561. }
  2562. }, sosmed_jsx(Button["a" /* default */], {
  2563. color: "white",
  2564. href: "https://twitter.com/YamahaIndonesia/status/1369143579684171778",
  2565. target: "_blank"
  2566. }, sosmed_jsx(Icon_default.a, {
  2567. className: classes.icons
  2568. }, "open_in_new"), "For More Info"))))))));
  2569. };
  2570. /* harmony default export */ var sosmed = (sosmed_DataService);
  2571. // EXTERNAL MODULE: ./assets/img/feature/1.jpg
  2572. var _1 = __webpack_require__("Qit1");
  2573. var _1_default = /*#__PURE__*/__webpack_require__.n(_1);
  2574. // EXTERNAL MODULE: ./assets/img/feature/2.jpg
  2575. var _2 = __webpack_require__("eLCk");
  2576. var _2_default = /*#__PURE__*/__webpack_require__.n(_2);
  2577. // EXTERNAL MODULE: ./assets/img/feature/3.jpg
  2578. var _3 = __webpack_require__("rsJo");
  2579. var _3_default = /*#__PURE__*/__webpack_require__.n(_3);
  2580. // EXTERNAL MODULE: ./assets/img/feature/4.jpg
  2581. var _4 = __webpack_require__("7lQd");
  2582. var _4_default = /*#__PURE__*/__webpack_require__.n(_4);
  2583. // EXTERNAL MODULE: ./assets/img/feature/5.jpg
  2584. var _5 = __webpack_require__("44bq");
  2585. var _5_default = /*#__PURE__*/__webpack_require__.n(_5);
  2586. // EXTERNAL MODULE: ./assets/img/feature/6.jpg
  2587. var _6 = __webpack_require__("aXSx");
  2588. var _6_default = /*#__PURE__*/__webpack_require__.n(_6);
  2589. // CONCATENATED MODULE: ./pages-sections/suzuki/home/feature.js
  2590. var feature_jsx = external_react_default.a.createElement;
  2591. 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; }
  2592. 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; }
  2593. 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; }
  2594. 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; }
  2595. 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; }
  2596. const feature_styles = feature_objectSpread({}, imagesStyles["a" /* default */], {
  2597. cardTitle: nextjs_material_kit["b" /* cardTitle */]
  2598. });
  2599. const feature_useStyles = Object(styles_["makeStyles"])(feature_styles);
  2600. const DataFeature = function (_ref) {
  2601. let {
  2602. backend,
  2603. service
  2604. } = _ref,
  2605. props = feature_objectWithoutProperties(_ref, ["backend", "service"]);
  2606. const classes = feature_useStyles();
  2607. return feature_jsx("div", {
  2608. className: classes.section,
  2609. id: "notifications"
  2610. }, feature_jsx("div", {
  2611. align: "center",
  2612. className: classes.section,
  2613. id: "notifications"
  2614. }, feature_jsx(SnackbarContent["a" /* default */], {
  2615. message: feature_jsx("h4", null, "Feature Product"),
  2616. align: "center",
  2617. color: "info"
  2618. })), feature_jsx(GridContainer["a" /* default */], {
  2619. justify: "center",
  2620. style: {
  2621. padding: "50px",
  2622. marginTop: "-30px"
  2623. }
  2624. }, feature_jsx(Grid_default.a, {
  2625. align: "center",
  2626. style: {
  2627. padding: "25px",
  2628. marginTop: "-30px"
  2629. }
  2630. }, feature_jsx(Card["a" /* default */], {
  2631. style: {
  2632. width: "19rem"
  2633. }
  2634. }, feature_jsx("div", {
  2635. align: "center"
  2636. }, feature_jsx("img", {
  2637. style: {
  2638. height: "180px",
  2639. width: "300px",
  2640. display: "block"
  2641. },
  2642. className: classes.imgCardTop,
  2643. src: _1_default.a
  2644. })))), feature_jsx(Grid_default.a, {
  2645. align: "center",
  2646. style: {
  2647. padding: "25px",
  2648. marginTop: "-30px"
  2649. }
  2650. }, feature_jsx(Card["a" /* default */], {
  2651. style: {
  2652. width: "19rem"
  2653. }
  2654. }, feature_jsx("div", {
  2655. align: "center"
  2656. }, feature_jsx("img", {
  2657. style: {
  2658. height: "180px",
  2659. width: "300px",
  2660. display: "block"
  2661. },
  2662. className: classes.imgCardTop,
  2663. src: _2_default.a
  2664. })))), feature_jsx(Grid_default.a, {
  2665. align: "center",
  2666. style: {
  2667. padding: "25px",
  2668. marginTop: "-30px"
  2669. }
  2670. }, feature_jsx(Card["a" /* default */], {
  2671. style: {
  2672. width: "19rem"
  2673. }
  2674. }, feature_jsx("div", {
  2675. align: "center"
  2676. }, feature_jsx("img", {
  2677. style: {
  2678. height: "180px",
  2679. width: "300px",
  2680. display: "block"
  2681. },
  2682. className: classes.imgCardTop,
  2683. src: _3_default.a
  2684. })))), feature_jsx(Grid_default.a, {
  2685. align: "center",
  2686. style: {
  2687. padding: "25px",
  2688. marginTop: "-30px"
  2689. }
  2690. }, feature_jsx(Card["a" /* default */], {
  2691. style: {
  2692. width: "19rem"
  2693. }
  2694. }, feature_jsx("div", {
  2695. align: "center"
  2696. }, feature_jsx("img", {
  2697. style: {
  2698. height: "180px",
  2699. width: "200px",
  2700. display: "block"
  2701. },
  2702. className: classes.imgCardTop,
  2703. src: _4_default.a
  2704. })))), feature_jsx(Grid_default.a, {
  2705. align: "center",
  2706. style: {
  2707. padding: "25px",
  2708. marginTop: "-30px"
  2709. }
  2710. }, feature_jsx(Card["a" /* default */], {
  2711. style: {
  2712. width: "19rem"
  2713. }
  2714. }, feature_jsx("div", {
  2715. align: "center"
  2716. }, feature_jsx("img", {
  2717. style: {
  2718. height: "180px",
  2719. width: "200px",
  2720. display: "block"
  2721. },
  2722. className: classes.imgCardTop,
  2723. src: _5_default.a
  2724. })))), feature_jsx(Grid_default.a, {
  2725. align: "center",
  2726. style: {
  2727. padding: "25px",
  2728. marginTop: "-30px"
  2729. }
  2730. }, feature_jsx(Card["a" /* default */], {
  2731. style: {
  2732. width: "19rem"
  2733. }
  2734. }, feature_jsx("div", {
  2735. align: "center"
  2736. }, feature_jsx("img", {
  2737. style: {
  2738. height: "180px",
  2739. width: "300px",
  2740. display: "block"
  2741. },
  2742. className: classes.imgCardTop,
  2743. src: _6_default.a
  2744. }))))));
  2745. };
  2746. /* harmony default export */ var feature = (DataFeature);
  2747. // EXTERNAL MODULE: ./pages/home.css
  2748. var home = __webpack_require__("M9IG");
  2749. // EXTERNAL MODULE: external "cookies"
  2750. var external_cookies_ = __webpack_require__("Vjj2");
  2751. var external_cookies_default = /*#__PURE__*/__webpack_require__.n(external_cookies_);
  2752. // CONCATENATED MODULE: ./pages/suzuki/home.js
  2753. var home_jsx = external_react_default.a.createElement;
  2754. 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); }
  2755. 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; }
  2756. 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; }
  2757. const home_useStyles = Object(styles_["makeStyles"])(components["a" /* default */]);
  2758. const Home = function (_ref) {
  2759. let {
  2760. backend,
  2761. businessPartners,
  2762. service,
  2763. carousels,
  2764. user
  2765. } = _ref,
  2766. props = home_objectWithoutProperties(_ref, ["backend", "businessPartners", "service", "carousels", "user"]);
  2767. const classes = home_useStyles();
  2768. const rest = Object.assign({}, props);
  2769. home_jsx(suzuki_home_service, {
  2770. service: props.service
  2771. });
  2772. return home_jsx("div", null, home_jsx(Header["a" /* default */], _extends({
  2773. rightLinks: home_jsx(HeaderSuzuki["a" /* default */], {
  2774. username: user
  2775. }),
  2776. fixed: true,
  2777. color: "dark",
  2778. changeColorOnScroll: {
  2779. height: 400,
  2780. color: "white"
  2781. }
  2782. }, rest)), home_jsx(Parallax["a" /* default */], {
  2783. image: __webpack_require__("orDh"),
  2784. styles: {
  2785. marginTop: "50px"
  2786. }
  2787. }), home_jsx("div", {
  2788. className: external_classnames_default()(classes.main, classes.mainRaised)
  2789. }, home_jsx(snackbar["a" /* default */], null), home_jsx(home_carousel, {
  2790. carousels: carousels,
  2791. backend: backend
  2792. }), home_jsx(suzuki_home_service, {
  2793. service: service,
  2794. backend: backend
  2795. }), home_jsx("a", {
  2796. href: "https://wa.me/087797315685",
  2797. target: "_blank",
  2798. class: "float"
  2799. }, home_jsx("i", {
  2800. class: "fa fa-phone my-float"
  2801. }))), home_jsx(FooterSuzuki["a" /* default */], null));
  2802. };
  2803. async function getServerSideProps(context) {
  2804. var businessPartners = [];
  2805. var service = [];
  2806. var carousels = [];
  2807. const backend = process.env.BACKEND_SERVER_URI;
  2808. var {
  2809. req,
  2810. resp
  2811. } = context;
  2812. const cookies = new external_cookies_default.a(req, resp);
  2813. var user = "";
  2814. var userObj = (await cookies.get("user")) ? JSON.parse(await cookies.get("user")) : null;
  2815. if (userObj) {
  2816. let sessionId = userObj["partners_login_states"].filter(function (i) {
  2817. return i.business_partner && i.business_partner.name.toUpperCase() == "SUZUKI";
  2818. });
  2819. if (sessionId.length != 0) user = userObj["username"];
  2820. }
  2821. var res = await service_default.a.GetservicesSuzuki();
  2822. if (res["STATUS"] === 1) {
  2823. service = res["DATA"]["services"];
  2824. }
  2825. var res = await carousel_default.a.GetCarouselsSuzuki();
  2826. if (res["STATUS"] === 1) {
  2827. carousels = res["DATA"]["carousels"];
  2828. }
  2829. return {
  2830. props: {
  2831. businessPartners,
  2832. service,
  2833. carousels,
  2834. backend,
  2835. user
  2836. } // will be passed to the page component as props
  2837. };
  2838. }
  2839. /* harmony default export */ var suzuki_home = __webpack_exports__["default"] = (Home);
  2840. /***/ }),
  2841. /***/ "Vjj2":
  2842. /***/ (function(module, exports) {
  2843. module.exports = require("cookies");
  2844. /***/ }),
  2845. /***/ "Wh1t":
  2846. /***/ (function(module, exports) {
  2847. module.exports = require("@material-ui/core/Button");
  2848. /***/ }),
  2849. /***/ "Y8uC":
  2850. /***/ (function(module, exports) {
  2851. module.exports = require("@material-ui/core/Hidden");
  2852. /***/ }),
  2853. /***/ "YFqc":
  2854. /***/ (function(module, exports, __webpack_require__) {
  2855. module.exports = __webpack_require__("cTJO")
  2856. /***/ }),
  2857. /***/ "YTqd":
  2858. /***/ (function(module, exports, __webpack_require__) {
  2859. "use strict";
  2860. Object.defineProperty(exports, "__esModule", {
  2861. value: true
  2862. }); // this isn't importing the escape-string-regex module
  2863. // to reduce bytes
  2864. function escapeRegex(str) {
  2865. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  2866. }
  2867. function getRouteRegex(normalizedRoute) {
  2868. // Escape all characters that could be considered RegEx
  2869. const escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  2870. const groups = {};
  2871. let groupIndex = 1;
  2872. const parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2873. const isCatchAll = /^(\\\.){3}/.test($1);
  2874. groups[$1 // Un-escape key
  2875. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  2876. ] = {
  2877. pos: groupIndex++,
  2878. repeat: isCatchAll
  2879. };
  2880. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  2881. });
  2882. let namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  2883. // while generating routes-manifest
  2884. if (true) {
  2885. namedParameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2886. const isCatchAll = /^(\\\.){3}/.test($1);
  2887. const key = $1 // Un-escape key
  2888. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '');
  2889. return isCatchAll ? `/(?<${escapeRegex(key)}>.+?)` : `/(?<${escapeRegex(key)}>[^/]+?)`;
  2890. });
  2891. }
  2892. return Object.assign({
  2893. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  2894. groups
  2895. }, namedParameterizedRoute ? {
  2896. namedRegex: `^${namedParameterizedRoute}(?:/)?$`
  2897. } : {});
  2898. }
  2899. exports.getRouteRegex = getRouteRegex;
  2900. /***/ }),
  2901. /***/ "Z2Lm":
  2902. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2903. "use strict";
  2904. // EXPORTS
  2905. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Parallax; });
  2906. // EXTERNAL MODULE: external "react"
  2907. var external_react_ = __webpack_require__("cDcd");
  2908. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2909. // EXTERNAL MODULE: external "classnames"
  2910. var external_classnames_ = __webpack_require__("K2gz");
  2911. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2912. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2913. var styles_ = __webpack_require__("9Pu4");
  2914. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/parallaxStyle.js
  2915. const parallaxStyle = theme => ({
  2916. parallax: {
  2917. height: "90vh",
  2918. maxHeight: "1000px",
  2919. overflow: "hidden",
  2920. position: "relative",
  2921. backgroundPosition: "center top",
  2922. backgroundSize: "cover",
  2923. margin: "0",
  2924. padding: "0",
  2925. border: "0",
  2926. display: "flex",
  2927. alignItems: "center"
  2928. },
  2929. filter: {
  2930. "&:before": {
  2931. background: "#212121"
  2932. },
  2933. "&:after,&:before": {
  2934. position: "absolute",
  2935. zIndex: "1",
  2936. width: "100%",
  2937. height: "100%",
  2938. display: "block",
  2939. left: "0",
  2940. top: "0",
  2941. content: "''"
  2942. }
  2943. },
  2944. small: {
  2945. height: "380px"
  2946. },
  2947. parallaxResponsive: {
  2948. [theme.breakpoints.down("md")]: {
  2949. minHeight: "660px"
  2950. }
  2951. }
  2952. });
  2953. /* harmony default export */ var components_parallaxStyle = (parallaxStyle);
  2954. // CONCATENATED MODULE: ./components/Parallax/Parallax.js
  2955. var __jsx = external_react_default.a.createElement;
  2956. 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; }
  2957. 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; }
  2958. 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; }
  2959. // nodejs library that concatenates classes
  2960. // nodejs library to set properties for components
  2961. // @material-ui/core components
  2962. // core components
  2963. const useStyles = Object(styles_["makeStyles"])(components_parallaxStyle);
  2964. function Parallax(props) {
  2965. let windowScrollTop; // if (window.innerWidth >= 768) {
  2966. // windowScrollTop = window.pageYOffset / 3;
  2967. // } else {
  2968. // windowScrollTop = 0;
  2969. // }
  2970. const [transform, setTransform] = external_react_default.a.useState("translate3d(0,0px,0)");
  2971. external_react_default.a.useEffect(() => {
  2972. if (window.innerWidth >= 768) {
  2973. window.addEventListener("scroll", resetTransform);
  2974. }
  2975. return function cleanup() {
  2976. if (window.innerWidth >= 768) {
  2977. window.removeEventListener("scroll", resetTransform);
  2978. }
  2979. };
  2980. });
  2981. const resetTransform = () => {
  2982. var windowScrollTop = window.pageYOffset / 3;
  2983. setTransform("translate3d(0," + windowScrollTop + "px,0)");
  2984. };
  2985. const {
  2986. filter,
  2987. className,
  2988. children,
  2989. style,
  2990. image,
  2991. small,
  2992. responsive
  2993. } = props;
  2994. const classes = useStyles();
  2995. const parallaxClasses = external_classnames_default()({
  2996. [classes.parallax]: true,
  2997. [classes.filter]: filter,
  2998. [classes.small]: small,
  2999. [classes.parallaxResponsive]: responsive,
  3000. [className]: className !== undefined
  3001. });
  3002. return __jsx("div", {
  3003. className: parallaxClasses,
  3004. style: _objectSpread({}, style, {
  3005. backgroundImage: "url(" + image + ")",
  3006. transform: transform
  3007. })
  3008. }, children);
  3009. }
  3010. /***/ }),
  3011. /***/ "aXSx":
  3012. /***/ (function(module, exports) {
  3013. module.exports = "/_next/static/images/6-741f4a3816f172bb5da0c9acfa289df8.jpg";
  3014. /***/ }),
  3015. /***/ "bXSz":
  3016. /***/ (function(module, exports) {
  3017. module.exports = "/_next/static/images/yt-f08bca0237d694ca4a7b38b8abbedbb7.jpg";
  3018. /***/ }),
  3019. /***/ "bhG4":
  3020. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3021. "use strict";
  3022. /* harmony import */ var _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  3023. const componentsStyle = {
  3024. container: _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  3025. brand: {
  3026. color: "#FFFFFF",
  3027. textAlign: "left"
  3028. },
  3029. title: {
  3030. fontSize: "4.2rem",
  3031. fontWeight: "600",
  3032. display: "inline-block",
  3033. position: "relative"
  3034. },
  3035. subtitle: {
  3036. fontSize: "1.313rem",
  3037. maxWidth: "510px",
  3038. margin: "10px 0 0"
  3039. },
  3040. main: {
  3041. background: "#FFFFFF",
  3042. position: "relative",
  3043. zIndex: "3"
  3044. },
  3045. mainRaised: {
  3046. margin: "-60px 30px 0px",
  3047. borderRadius: "6px",
  3048. 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)",
  3049. "@media (max-width: 830px)": {
  3050. marginLeft: "10px",
  3051. marginRight: "10px"
  3052. }
  3053. },
  3054. link: {
  3055. textDecoration: "none"
  3056. },
  3057. textCenter: {
  3058. textAlign: "center"
  3059. }
  3060. };
  3061. /* harmony default export */ __webpack_exports__["a"] = (componentsStyle);
  3062. /***/ }),
  3063. /***/ "bx/+":
  3064. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3065. "use strict";
  3066. __webpack_require__.r(__webpack_exports__);
  3067. // Apollo Value Configuration
  3068. const ApolloConfig = {
  3069. graphql_uri: process.env.API_GRAPHQL_URI
  3070. };
  3071. /* harmony default export */ __webpack_exports__["default"] = (ApolloConfig);
  3072. /***/ }),
  3073. /***/ "bzos":
  3074. /***/ (function(module, exports) {
  3075. module.exports = require("url");
  3076. /***/ }),
  3077. /***/ "c25J":
  3078. /***/ (function(module, exports) {
  3079. module.exports = require("@material-ui/core/ListItem");
  3080. /***/ }),
  3081. /***/ "cDcd":
  3082. /***/ (function(module, exports) {
  3083. module.exports = require("react");
  3084. /***/ }),
  3085. /***/ "cTJO":
  3086. /***/ (function(module, exports, __webpack_require__) {
  3087. "use strict";
  3088. var _interopRequireDefault = __webpack_require__("AroE");
  3089. var _interopRequireWildcard = __webpack_require__("7KCV");
  3090. exports.__esModule = true;
  3091. exports.default = void 0;
  3092. var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
  3093. var _url = __webpack_require__("bzos");
  3094. var _utils = __webpack_require__("kYf9");
  3095. var _router = _interopRequireDefault(__webpack_require__("nOHt"));
  3096. var _router2 = __webpack_require__("elyg");
  3097. function isLocal(href) {
  3098. var url = (0, _url.parse)(href, false, true);
  3099. var origin = (0, _url.parse)((0, _utils.getLocationOrigin)(), false, true);
  3100. return !url.host || url.protocol === origin.protocol && url.host === origin.host;
  3101. }
  3102. function memoizedFormatUrl(formatFunc) {
  3103. var lastHref = null;
  3104. var lastAs = null;
  3105. var lastResult = null;
  3106. return (href, as) => {
  3107. if (lastResult && href === lastHref && as === lastAs) {
  3108. return lastResult;
  3109. }
  3110. var result = formatFunc(href, as);
  3111. lastHref = href;
  3112. lastAs = as;
  3113. lastResult = result;
  3114. return result;
  3115. };
  3116. }
  3117. function formatUrl(url) {
  3118. return url && typeof url === 'object' ? (0, _utils.formatWithValidation)(url) : url;
  3119. }
  3120. var observer;
  3121. var listeners = new Map();
  3122. var IntersectionObserver = false ? undefined : null;
  3123. var prefetched = {};
  3124. function getObserver() {
  3125. // Return shared instance of IntersectionObserver if already created
  3126. if (observer) {
  3127. return observer;
  3128. } // Only create shared IntersectionObserver if supported in browser
  3129. if (!IntersectionObserver) {
  3130. return undefined;
  3131. }
  3132. return observer = new IntersectionObserver(entries => {
  3133. entries.forEach(entry => {
  3134. if (!listeners.has(entry.target)) {
  3135. return;
  3136. }
  3137. var cb = listeners.get(entry.target);
  3138. if (entry.isIntersecting || entry.intersectionRatio > 0) {
  3139. observer.unobserve(entry.target);
  3140. listeners.delete(entry.target);
  3141. cb();
  3142. }
  3143. });
  3144. }, {
  3145. rootMargin: '200px'
  3146. });
  3147. }
  3148. var listenToIntersections = (el, cb) => {
  3149. var observer = getObserver();
  3150. if (!observer) {
  3151. return () => {};
  3152. }
  3153. observer.observe(el);
  3154. listeners.set(el, cb);
  3155. return () => {
  3156. try {
  3157. observer.unobserve(el);
  3158. } catch (err) {
  3159. console.error(err);
  3160. }
  3161. listeners.delete(el);
  3162. };
  3163. };
  3164. class Link extends _react.Component {
  3165. constructor(props) {
  3166. super(props);
  3167. this.p = void 0;
  3168. this.cleanUpListeners = () => {};
  3169. this.formatUrls = memoizedFormatUrl((href, asHref) => {
  3170. return {
  3171. href: (0, _router2.addBasePath)(formatUrl(href)),
  3172. as: asHref ? (0, _router2.addBasePath)(formatUrl(asHref)) : asHref
  3173. };
  3174. });
  3175. this.linkClicked = e => {
  3176. var {
  3177. nodeName,
  3178. target
  3179. } = e.currentTarget;
  3180. if (nodeName === 'A' && (target && target !== '_self' || e.metaKey || e.ctrlKey || e.shiftKey || e.nativeEvent && e.nativeEvent.which === 2)) {
  3181. // ignore click for new tab / new window behavior
  3182. return;
  3183. }
  3184. var {
  3185. href,
  3186. as
  3187. } = this.formatUrls(this.props.href, this.props.as);
  3188. if (!isLocal(href)) {
  3189. // ignore click if it's outside our scope (e.g. https://google.com)
  3190. return;
  3191. }
  3192. var {
  3193. pathname
  3194. } = window.location;
  3195. href = (0, _url.resolve)(pathname, href);
  3196. as = as ? (0, _url.resolve)(pathname, as) : href;
  3197. e.preventDefault(); // avoid scroll for urls with anchor refs
  3198. var {
  3199. scroll
  3200. } = this.props;
  3201. if (scroll == null) {
  3202. scroll = as.indexOf('#') < 0;
  3203. } // replace state instead of push if prop is present
  3204. _router.default[this.props.replace ? 'replace' : 'push'](href, as, {
  3205. shallow: this.props.shallow
  3206. }).then(success => {
  3207. if (!success) return;
  3208. if (scroll) {
  3209. window.scrollTo(0, 0);
  3210. document.body.focus();
  3211. }
  3212. });
  3213. };
  3214. if (false) {}
  3215. this.p = props.prefetch !== false;
  3216. }
  3217. componentWillUnmount() {
  3218. this.cleanUpListeners();
  3219. }
  3220. getPaths() {
  3221. var {
  3222. pathname
  3223. } = window.location;
  3224. var {
  3225. href: parsedHref,
  3226. as: parsedAs
  3227. } = this.formatUrls(this.props.href, this.props.as);
  3228. var resolvedHref = (0, _url.resolve)(pathname, parsedHref);
  3229. return [resolvedHref, parsedAs ? (0, _url.resolve)(pathname, parsedAs) : resolvedHref];
  3230. }
  3231. handleRef(ref) {
  3232. if (this.p && IntersectionObserver && ref && ref.tagName) {
  3233. this.cleanUpListeners();
  3234. var isPrefetched = prefetched[this.getPaths().join( // Join on an invalid URI character
  3235. '%')];
  3236. if (!isPrefetched) {
  3237. this.cleanUpListeners = listenToIntersections(ref, () => {
  3238. this.prefetch();
  3239. });
  3240. }
  3241. }
  3242. } // The function is memoized so that no extra lifecycles are needed
  3243. // as per https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
  3244. prefetch(options) {
  3245. if (!this.p || true) return; // Prefetch the JSON page if asked (only in the client)
  3246. var paths = this.getPaths(); // We need to handle a prefetch error here since we may be
  3247. // loading with priority which can reject but we don't
  3248. // want to force navigation since this is only a prefetch
  3249. _router.default.prefetch(paths[
  3250. /* href */
  3251. 0], paths[
  3252. /* asPath */
  3253. 1], options).catch(err => {
  3254. if (false) {}
  3255. });
  3256. prefetched[paths.join( // Join on an invalid URI character
  3257. '%')] = true;
  3258. }
  3259. render() {
  3260. var {
  3261. children
  3262. } = this.props;
  3263. var {
  3264. href,
  3265. as
  3266. } = 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
  3267. if (typeof children === 'string') {
  3268. children = _react.default.createElement("a", null, children);
  3269. } // This will return the first child, if multiple are provided it will throw an error
  3270. var child = _react.Children.only(children);
  3271. var props = {
  3272. ref: el => {
  3273. this.handleRef(el);
  3274. if (child && typeof child === 'object' && child.ref) {
  3275. if (typeof child.ref === 'function') child.ref(el);else if (typeof child.ref === 'object') {
  3276. child.ref.current = el;
  3277. }
  3278. }
  3279. },
  3280. onMouseEnter: e => {
  3281. if (child.props && typeof child.props.onMouseEnter === 'function') {
  3282. child.props.onMouseEnter(e);
  3283. }
  3284. this.prefetch({
  3285. priority: true
  3286. });
  3287. },
  3288. onClick: e => {
  3289. if (child.props && typeof child.props.onClick === 'function') {
  3290. child.props.onClick(e);
  3291. }
  3292. if (!e.defaultPrevented) {
  3293. this.linkClicked(e);
  3294. }
  3295. }
  3296. }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
  3297. // defined, we specify the current 'href', so that repetition is not needed by the user
  3298. if (this.props.passHref || child.type === 'a' && !('href' in child.props)) {
  3299. props.href = as || href;
  3300. } // Add the ending slash to the paths. So, we can serve the
  3301. // "<page>/index.html" directly.
  3302. if (false) { var rewriteUrlForNextExport; }
  3303. return _react.default.cloneElement(child, props);
  3304. }
  3305. }
  3306. if (false) { var exact, PropTypes, warn; }
  3307. var _default = Link;
  3308. exports.default = _default;
  3309. /***/ }),
  3310. /***/ "dZ6Y":
  3311. /***/ (function(module, exports, __webpack_require__) {
  3312. "use strict";
  3313. /*
  3314. MIT License
  3315. Copyright (c) Jason Miller (https://jasonformat.com/)
  3316. 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:
  3317. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  3318. 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.
  3319. */
  3320. Object.defineProperty(exports, "__esModule", {
  3321. value: true
  3322. });
  3323. function mitt() {
  3324. const all = Object.create(null);
  3325. return {
  3326. on(type, handler) {
  3327. ;
  3328. (all[type] || (all[type] = [])).push(handler);
  3329. },
  3330. off(type, handler) {
  3331. if (all[type]) {
  3332. // tslint:disable-next-line:no-bitwise
  3333. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  3334. }
  3335. },
  3336. emit(type, ...evts) {
  3337. // eslint-disable-next-line array-callback-return
  3338. ;
  3339. (all[type] || []).slice().map(handler => {
  3340. handler(...evts);
  3341. });
  3342. }
  3343. };
  3344. }
  3345. exports.default = mitt;
  3346. /***/ }),
  3347. /***/ "eDSW":
  3348. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3349. "use strict";
  3350. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hexToRGBAlpha; });
  3351. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return drawerWidth; });
  3352. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return transition; });
  3353. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return container; });
  3354. /* unused harmony export conatinerFluid */
  3355. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return boxShadow; });
  3356. /* unused harmony export card */
  3357. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return defaultFont; });
  3358. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return primaryColor; });
  3359. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return warningColor; });
  3360. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return dangerColor; });
  3361. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return successColor; });
  3362. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return infoColor; });
  3363. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return roseColor; });
  3364. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return grayColor; });
  3365. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return primaryBoxShadow; });
  3366. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return infoBoxShadow; });
  3367. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return successBoxShadow; });
  3368. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return warningBoxShadow; });
  3369. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dangerBoxShadow; });
  3370. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return roseBoxShadow; });
  3371. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return warningCardHeader; });
  3372. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return successCardHeader; });
  3373. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dangerCardHeader; });
  3374. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return infoCardHeader; });
  3375. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return primaryCardHeader; });
  3376. /* unused harmony export roseCardHeader */
  3377. /* unused harmony export cardActions */
  3378. /* unused harmony export cardHeader */
  3379. /* unused harmony export defaultBoxShadow */
  3380. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return title; });
  3381. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cardTitle; });
  3382. /* unused harmony export cardLink */
  3383. /* unused harmony export cardSubtitle */
  3384. 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; }
  3385. 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; }
  3386. 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; }
  3387. const hexColorToRGB = function (hexColor) {
  3388. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  3389. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  3390. return r + r + g + g + b + b;
  3391. });
  3392. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  3393. return hex_array ? {
  3394. r: parseInt(hex_array[1], 16),
  3395. // 0-255
  3396. g: parseInt(hex_array[2], 16),
  3397. // 0-255
  3398. b: parseInt(hex_array[3], 16) // 0-255
  3399. } : null;
  3400. };
  3401. const hexToRGBAlpha = function (hexColor, alpha) {
  3402. let rgb = hexColorToRGB(hexColor);
  3403. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  3404. };
  3405. const drawerWidth = 260;
  3406. const transition = {
  3407. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  3408. };
  3409. const conatinerFluid = {
  3410. paddingRight: "15px",
  3411. paddingLeft: "15px",
  3412. marginRight: "auto",
  3413. marginLeft: "auto",
  3414. width: "100%"
  3415. };
  3416. const container = _objectSpread({}, conatinerFluid, {
  3417. "@media (min-width: 576px)": {
  3418. maxWidth: "540px"
  3419. },
  3420. "@media (min-width: 768px)": {
  3421. maxWidth: "720px"
  3422. },
  3423. "@media (min-width: 992px)": {
  3424. maxWidth: "960px"
  3425. },
  3426. "@media (min-width: 1200px)": {
  3427. maxWidth: "1140px"
  3428. }
  3429. });
  3430. const boxShadow = {
  3431. 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)"
  3432. };
  3433. const card = {
  3434. display: "inline-block",
  3435. position: "relative",
  3436. width: "100%",
  3437. margin: "25px 0",
  3438. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  3439. borderRadius: "3px",
  3440. color: "rgba(0, 0, 0, 0.87)",
  3441. background: "#fff"
  3442. };
  3443. const defaultFont = {
  3444. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  3445. fontWeight: "300",
  3446. lineHeight: "1.5em"
  3447. };
  3448. const primaryColor = "#212121";
  3449. const warningColor = "#ff9800";
  3450. const dangerColor = "#f44336";
  3451. const successColor = "#4caf50";
  3452. const infoColor = "#212121";
  3453. const roseColor = "#e91e63";
  3454. const grayColor = "#ffffff";
  3455. const primaryBoxShadow = {
  3456. 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)}`
  3457. };
  3458. const infoBoxShadow = {
  3459. 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)}`
  3460. };
  3461. const successBoxShadow = {
  3462. 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)}`
  3463. };
  3464. const warningBoxShadow = {
  3465. 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)}`
  3466. };
  3467. const dangerBoxShadow = {
  3468. 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)}`
  3469. };
  3470. const roseBoxShadow = {
  3471. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  3472. };
  3473. const warningCardHeader = _objectSpread({
  3474. color: "#fff",
  3475. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  3476. }, warningBoxShadow);
  3477. const successCardHeader = _objectSpread({
  3478. color: "#fff",
  3479. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  3480. }, successBoxShadow);
  3481. const dangerCardHeader = _objectSpread({
  3482. color: "#fff",
  3483. background: "linear-gradient(60deg, #ef5350, #e53935)"
  3484. }, dangerBoxShadow);
  3485. const infoCardHeader = _objectSpread({
  3486. color: "#fff",
  3487. background: "#212121"
  3488. }, infoBoxShadow);
  3489. const primaryCardHeader = _objectSpread({
  3490. color: "#fff",
  3491. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  3492. }, primaryBoxShadow);
  3493. const roseCardHeader = _objectSpread({
  3494. color: "#fff",
  3495. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  3496. }, roseBoxShadow);
  3497. const cardActions = _objectSpread({
  3498. margin: "0 20px 10px",
  3499. paddingTop: "10px",
  3500. borderTop: "1px solid #eeeeee",
  3501. height: "auto"
  3502. }, defaultFont);
  3503. const cardHeader = {
  3504. margin: "-30px 15px 0",
  3505. borderRadius: "3px",
  3506. padding: "15px"
  3507. };
  3508. const defaultBoxShadow = {
  3509. border: "0",
  3510. borderRadius: "3px",
  3511. 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)",
  3512. padding: "10px 0",
  3513. transition: "all 150ms ease 0s"
  3514. };
  3515. const title = {
  3516. color: "#ffffff",
  3517. margin: "1.75rem 0 0.875rem",
  3518. textDecoration: "none",
  3519. fontWeight: "700",
  3520. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  3521. };
  3522. const cardTitle = _objectSpread({}, title, {
  3523. marginTop: ".625rem"
  3524. });
  3525. const cardLink = {
  3526. "& + $cardLink": {
  3527. marginLeft: "1.25rem"
  3528. }
  3529. };
  3530. const cardSubtitle = {
  3531. marginBottom: "0",
  3532. marginTop: "-.375rem"
  3533. };
  3534. /***/ }),
  3535. /***/ "eLCk":
  3536. /***/ (function(module, exports) {
  3537. module.exports = "/_next/static/images/2-3b75e58edab298203ed6c515af2526cb.jpg";
  3538. /***/ }),
  3539. /***/ "elyg":
  3540. /***/ (function(module, exports, __webpack_require__) {
  3541. "use strict";
  3542. var __importDefault = this && this.__importDefault || function (mod) {
  3543. return mod && mod.__esModule ? mod : {
  3544. "default": mod
  3545. };
  3546. };
  3547. Object.defineProperty(exports, "__esModule", {
  3548. value: true
  3549. });
  3550. const url_1 = __webpack_require__("bzos");
  3551. const mitt_1 = __importDefault(__webpack_require__("dZ6Y"));
  3552. const utils_1 = __webpack_require__("g/15");
  3553. const is_dynamic_1 = __webpack_require__("/jkW");
  3554. const route_matcher_1 = __webpack_require__("gguc");
  3555. const route_regex_1 = __webpack_require__("YTqd");
  3556. const basePath = false || '';
  3557. function addBasePath(path) {
  3558. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  3559. }
  3560. exports.addBasePath = addBasePath;
  3561. function delBasePath(path) {
  3562. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  3563. }
  3564. exports.delBasePath = delBasePath;
  3565. function toRoute(path) {
  3566. return path.replace(/\/$/, '') || '/';
  3567. }
  3568. const prepareRoute = path => toRoute(!path || path === '/' ? '/index' : path);
  3569. function fetchNextData(pathname, query, isServerRender, cb) {
  3570. let attempts = isServerRender ? 3 : 1;
  3571. function getResponse() {
  3572. return fetch(utils_1.formatWithValidation({
  3573. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  3574. `/_next/data/${__NEXT_DATA__.buildId}${delBasePath(pathname)}.json`),
  3575. query
  3576. }), {
  3577. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  3578. // Cookies may also be required for `getServerSideProps`.
  3579. //
  3580. // > `fetch` won’t send cookies, unless you set the credentials init
  3581. // > option.
  3582. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  3583. //
  3584. // > For maximum browser compatibility when it comes to sending &
  3585. // > receiving cookies, always supply the `credentials: 'same-origin'`
  3586. // > option instead of relying on the default.
  3587. // https://github.com/github/fetch#caveats
  3588. credentials: 'same-origin'
  3589. }).then(res => {
  3590. if (!res.ok) {
  3591. if (--attempts > 0 && res.status >= 500) {
  3592. return getResponse();
  3593. }
  3594. throw new Error(`Failed to load static props`);
  3595. }
  3596. return res.json();
  3597. });
  3598. }
  3599. return getResponse().then(data => {
  3600. return cb ? cb(data) : data;
  3601. }).catch(err => {
  3602. // We should only trigger a server-side transition if this was caused
  3603. // on a client-side transition. Otherwise, we'd get into an infinite
  3604. // loop.
  3605. if (!isServerRender) {
  3606. ;
  3607. err.code = 'PAGE_LOAD_ERROR';
  3608. }
  3609. throw err;
  3610. });
  3611. }
  3612. class Router {
  3613. constructor(pathname, query, as, {
  3614. initialProps,
  3615. pageLoader,
  3616. App,
  3617. wrapApp,
  3618. Component,
  3619. err,
  3620. subscription,
  3621. isFallback
  3622. }) {
  3623. // Static Data Cache
  3624. this.sdc = {};
  3625. this.onPopState = e => {
  3626. if (!e.state) {
  3627. // We get state as undefined for two reasons.
  3628. // 1. With older safari (< 8) and older chrome (< 34)
  3629. // 2. When the URL changed with #
  3630. //
  3631. // In the both cases, we don't need to proceed and change the route.
  3632. // (as it's already changed)
  3633. // But we can simply replace the state with the new changes.
  3634. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  3635. // So, doing the following for (1) does no harm.
  3636. const {
  3637. pathname,
  3638. query
  3639. } = this;
  3640. this.changeState('replaceState', utils_1.formatWithValidation({
  3641. pathname,
  3642. query
  3643. }), utils_1.getURL());
  3644. return;
  3645. } // Make sure we don't re-render on initial load,
  3646. // can be caused by navigating back from an external site
  3647. if (e.state && this.isSsr && e.state.as === this.asPath && url_1.parse(e.state.url).pathname === this.pathname) {
  3648. return;
  3649. } // If the downstream application returns falsy, return.
  3650. // They will then be responsible for handling the event.
  3651. if (this._bps && !this._bps(e.state)) {
  3652. return;
  3653. }
  3654. const {
  3655. url,
  3656. as,
  3657. options
  3658. } = e.state;
  3659. if (false) {}
  3660. this.replace(url, as, options);
  3661. };
  3662. this._getStaticData = asPath => {
  3663. const pathname = prepareRoute(url_1.parse(asPath).pathname);
  3664. return true && this.sdc[pathname] ? Promise.resolve(this.sdc[pathname]) : fetchNextData(pathname, null, this.isSsr, data => this.sdc[pathname] = data);
  3665. };
  3666. this._getServerData = asPath => {
  3667. let {
  3668. pathname,
  3669. query
  3670. } = url_1.parse(asPath, true);
  3671. pathname = prepareRoute(pathname);
  3672. return fetchNextData(pathname, query, this.isSsr);
  3673. }; // represents the current component key
  3674. this.route = toRoute(pathname); // set up the component cache (by route keys)
  3675. this.components = {}; // We should not keep the cache, if there's an error
  3676. // Otherwise, this cause issues when when going back and
  3677. // come again to the errored page.
  3678. if (pathname !== '/_error') {
  3679. this.components[this.route] = {
  3680. Component,
  3681. props: initialProps,
  3682. err,
  3683. __N_SSG: initialProps && initialProps.__N_SSG,
  3684. __N_SSP: initialProps && initialProps.__N_SSP
  3685. };
  3686. }
  3687. this.components['/_app'] = {
  3688. Component: App
  3689. }; // Backwards compat for Router.router.events
  3690. // TODO: Should be remove the following major version as it was never documented
  3691. this.events = Router.events;
  3692. this.pageLoader = pageLoader;
  3693. this.pathname = pathname;
  3694. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  3695. // until after mount to prevent hydration mismatch
  3696. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  3697. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  3698. this.basePath = basePath;
  3699. this.sub = subscription;
  3700. this.clc = null;
  3701. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  3702. // back from external site
  3703. this.isSsr = true;
  3704. this.isFallback = isFallback;
  3705. if (false) {}
  3706. } // @deprecated backwards compatibility even though it's a private method.
  3707. static _rewriteUrlForNextExport(url) {
  3708. if (false) {} else {
  3709. return url;
  3710. }
  3711. }
  3712. update(route, mod) {
  3713. const Component = mod.default || mod;
  3714. const data = this.components[route];
  3715. if (!data) {
  3716. throw new Error(`Cannot update unavailable route: ${route}`);
  3717. }
  3718. const newData = Object.assign(Object.assign({}, data), {
  3719. Component,
  3720. __N_SSG: mod.__N_SSG,
  3721. __N_SSP: mod.__N_SSP
  3722. });
  3723. this.components[route] = newData; // pages/_app.js updated
  3724. if (route === '/_app') {
  3725. this.notify(this.components[this.route]);
  3726. return;
  3727. }
  3728. if (route === this.route) {
  3729. this.notify(newData);
  3730. }
  3731. }
  3732. reload() {
  3733. window.location.reload();
  3734. }
  3735. /**
  3736. * Go back in history
  3737. */
  3738. back() {
  3739. window.history.back();
  3740. }
  3741. /**
  3742. * Performs a `pushState` with arguments
  3743. * @param url of the route
  3744. * @param as masks `url` for the browser
  3745. * @param options object you can define `shallow` and other options
  3746. */
  3747. push(url, as = url, options = {}) {
  3748. return this.change('pushState', url, as, options);
  3749. }
  3750. /**
  3751. * Performs a `replaceState` with arguments
  3752. * @param url of the route
  3753. * @param as masks `url` for the browser
  3754. * @param options object you can define `shallow` and other options
  3755. */
  3756. replace(url, as = url, options = {}) {
  3757. return this.change('replaceState', url, as, options);
  3758. }
  3759. change(method, _url, _as, options) {
  3760. return new Promise((resolve, reject) => {
  3761. if (!options._h) {
  3762. this.isSsr = false;
  3763. } // marking route changes as a navigation start entry
  3764. if (utils_1.ST) {
  3765. performance.mark('routeChange');
  3766. } // If url and as provided as an object representation,
  3767. // we'll format them into the string version here.
  3768. let url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  3769. let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  3770. url = addBasePath(url);
  3771. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  3772. // "<page>/index.html" directly for the SSR page.
  3773. if (false) {}
  3774. this.abortComponentLoad(as); // If the url change is only related to a hash change
  3775. // We should not proceed. We should only change the state.
  3776. // WARNING: `_h` is an internal option for handing Next.js client-side
  3777. // hydration. Your app should _never_ use this property. It may change at
  3778. // any time without notice.
  3779. if (!options._h && this.onlyAHashChange(as)) {
  3780. this.asPath = as;
  3781. Router.events.emit('hashChangeStart', as);
  3782. this.changeState(method, url, as, options);
  3783. this.scrollToHash(as);
  3784. Router.events.emit('hashChangeComplete', as);
  3785. return resolve(true);
  3786. }
  3787. const {
  3788. pathname,
  3789. query,
  3790. protocol
  3791. } = url_1.parse(url, true);
  3792. if (!pathname || protocol) {
  3793. if (false) {}
  3794. return resolve(false);
  3795. } // If asked to change the current URL we should reload the current page
  3796. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  3797. // We also need to set the method = replaceState always
  3798. // as this should not go into the history (That's how browsers work)
  3799. // We should compare the new asPath to the current asPath, not the url
  3800. if (!this.urlIsNew(as)) {
  3801. method = 'replaceState';
  3802. }
  3803. const route = toRoute(pathname);
  3804. const {
  3805. shallow = false
  3806. } = options;
  3807. if (is_dynamic_1.isDynamicRoute(route)) {
  3808. const {
  3809. pathname: asPathname
  3810. } = url_1.parse(as);
  3811. const routeRegex = route_regex_1.getRouteRegex(route);
  3812. const routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  3813. if (!routeMatch) {
  3814. const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
  3815. if (missingParams.length > 0) {
  3816. if (false) {}
  3817. 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`));
  3818. }
  3819. } else {
  3820. // Merge params into `query`, overwriting any specified in search
  3821. Object.assign(query, routeMatch);
  3822. }
  3823. }
  3824. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  3825. this.getRouteInfo(route, pathname, query, as, shallow).then(routeInfo => {
  3826. const {
  3827. error
  3828. } = routeInfo;
  3829. if (error && error.cancelled) {
  3830. return resolve(false);
  3831. }
  3832. Router.events.emit('beforeHistoryChange', as);
  3833. this.changeState(method, url, as, options);
  3834. if (false) {}
  3835. this.set(route, pathname, query, as, routeInfo);
  3836. if (error) {
  3837. Router.events.emit('routeChangeError', error, as);
  3838. throw error;
  3839. }
  3840. Router.events.emit('routeChangeComplete', as);
  3841. return resolve(true);
  3842. }, reject);
  3843. });
  3844. }
  3845. changeState(method, url, as, options = {}) {
  3846. if (false) {}
  3847. if (method !== 'pushState' || utils_1.getURL() !== as) {
  3848. window.history[method]({
  3849. url,
  3850. as,
  3851. options
  3852. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  3853. // Passing the empty string here should be safe against future changes to the method.
  3854. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  3855. '', as);
  3856. }
  3857. }
  3858. getRouteInfo(route, pathname, query, as, shallow = false) {
  3859. const cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  3860. // If the route is already rendered on the screen.
  3861. if (shallow && cachedRouteInfo && this.route === route) {
  3862. return Promise.resolve(cachedRouteInfo);
  3863. }
  3864. const handleError = (err, loadErrorFail) => {
  3865. return new Promise(resolve => {
  3866. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  3867. // If we can't load the page it could be one of following reasons
  3868. // 1. Page doesn't exists
  3869. // 2. Page does exist in a different zone
  3870. // 3. Internal error while loading the page
  3871. // So, doing a hard reload is the proper way to deal with this.
  3872. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  3873. // So, we need to mark it as a cancelled error and stop the routing logic.
  3874. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  3875. return resolve({
  3876. error: err
  3877. });
  3878. }
  3879. if (err.cancelled) {
  3880. // @ts-ignore TODO: fix the control flow here
  3881. return resolve({
  3882. error: err
  3883. });
  3884. }
  3885. resolve(this.fetchComponent('/_error').then(res => {
  3886. const {
  3887. page: Component
  3888. } = res;
  3889. const routeInfo = {
  3890. Component,
  3891. err
  3892. };
  3893. return new Promise(resolve => {
  3894. this.getInitialProps(Component, {
  3895. err,
  3896. pathname,
  3897. query
  3898. }).then(props => {
  3899. routeInfo.props = props;
  3900. routeInfo.error = err;
  3901. resolve(routeInfo);
  3902. }, gipErr => {
  3903. console.error('Error in error page `getInitialProps`: ', gipErr);
  3904. routeInfo.error = err;
  3905. routeInfo.props = {};
  3906. resolve(routeInfo);
  3907. });
  3908. });
  3909. }).catch(err => handleError(err, true)));
  3910. });
  3911. };
  3912. return new Promise((resolve, reject) => {
  3913. if (cachedRouteInfo) {
  3914. return resolve(cachedRouteInfo);
  3915. }
  3916. this.fetchComponent(route).then(res => resolve({
  3917. Component: res.page,
  3918. __N_SSG: res.mod.__N_SSG,
  3919. __N_SSP: res.mod.__N_SSP
  3920. }), reject);
  3921. }).then(routeInfo => {
  3922. const {
  3923. Component,
  3924. __N_SSG,
  3925. __N_SSP
  3926. } = routeInfo;
  3927. if (false) {}
  3928. 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`
  3929. {
  3930. pathname,
  3931. query,
  3932. asPath: as
  3933. })).then(props => {
  3934. routeInfo.props = props;
  3935. this.components[route] = routeInfo;
  3936. return routeInfo;
  3937. });
  3938. }).catch(handleError);
  3939. }
  3940. set(route, pathname, query, as, data) {
  3941. this.isFallback = false;
  3942. this.route = route;
  3943. this.pathname = pathname;
  3944. this.query = query;
  3945. this.asPath = as;
  3946. this.notify(data);
  3947. }
  3948. /**
  3949. * Callback to execute before replacing router state
  3950. * @param cb callback to be executed
  3951. */
  3952. beforePopState(cb) {
  3953. this._bps = cb;
  3954. }
  3955. onlyAHashChange(as) {
  3956. if (!this.asPath) return false;
  3957. const [oldUrlNoHash, oldHash] = this.asPath.split('#');
  3958. const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
  3959. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  3960. return true;
  3961. } // If the urls are change, there's more than a hash change
  3962. if (oldUrlNoHash !== newUrlNoHash) {
  3963. return false;
  3964. } // If the hash has changed, then it's a hash only change.
  3965. // This check is necessary to handle both the enter and
  3966. // leave hash === '' cases. The identity case falls through
  3967. // and is treated as a next reload.
  3968. return oldHash !== newHash;
  3969. }
  3970. scrollToHash(as) {
  3971. const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value
  3972. if (hash === '') {
  3973. window.scrollTo(0, 0);
  3974. return;
  3975. } // First we check if the element by id is found
  3976. const idEl = document.getElementById(hash);
  3977. if (idEl) {
  3978. idEl.scrollIntoView();
  3979. return;
  3980. } // If there's no element with the id, we check the `name` property
  3981. // To mirror browsers
  3982. const nameEl = document.getElementsByName(hash)[0];
  3983. if (nameEl) {
  3984. nameEl.scrollIntoView();
  3985. }
  3986. }
  3987. urlIsNew(asPath) {
  3988. return this.asPath !== asPath;
  3989. }
  3990. /**
  3991. * Prefetch page code, you may wait for the data during page rendering.
  3992. * This feature only works in production!
  3993. * @param url the href of prefetched page
  3994. * @param asPath the as path of the prefetched page
  3995. */
  3996. prefetch(url, asPath = url, options = {}) {
  3997. return new Promise((resolve, reject) => {
  3998. const {
  3999. pathname,
  4000. protocol
  4001. } = url_1.parse(url);
  4002. if (!pathname || protocol) {
  4003. if (false) {}
  4004. return;
  4005. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  4006. if (false) {}
  4007. const route = delBasePath(toRoute(pathname));
  4008. Promise.all([this.pageLoader.prefetchData(url, delBasePath(asPath)), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(() => resolve(), reject);
  4009. });
  4010. }
  4011. async fetchComponent(route) {
  4012. let cancelled = false;
  4013. const cancel = this.clc = () => {
  4014. cancelled = true;
  4015. };
  4016. route = delBasePath(route);
  4017. const componentResult = await this.pageLoader.loadPage(route);
  4018. if (cancelled) {
  4019. const error = new Error(`Abort fetching component for route: "${route}"`);
  4020. error.cancelled = true;
  4021. throw error;
  4022. }
  4023. if (cancel === this.clc) {
  4024. this.clc = null;
  4025. }
  4026. return componentResult;
  4027. }
  4028. _getData(fn) {
  4029. let cancelled = false;
  4030. const cancel = () => {
  4031. cancelled = true;
  4032. };
  4033. this.clc = cancel;
  4034. return fn().then(data => {
  4035. if (cancel === this.clc) {
  4036. this.clc = null;
  4037. }
  4038. if (cancelled) {
  4039. const err = new Error('Loading initial props cancelled');
  4040. err.cancelled = true;
  4041. throw err;
  4042. }
  4043. return data;
  4044. });
  4045. }
  4046. getInitialProps(Component, ctx) {
  4047. const {
  4048. Component: App
  4049. } = this.components['/_app'];
  4050. const AppTree = this._wrapApp(App);
  4051. ctx.AppTree = AppTree;
  4052. return utils_1.loadGetInitialProps(App, {
  4053. AppTree,
  4054. Component,
  4055. router: this,
  4056. ctx
  4057. });
  4058. }
  4059. abortComponentLoad(as) {
  4060. if (this.clc) {
  4061. const e = new Error('Route Cancelled');
  4062. e.cancelled = true;
  4063. Router.events.emit('routeChangeError', e, as);
  4064. this.clc();
  4065. this.clc = null;
  4066. }
  4067. }
  4068. notify(data) {
  4069. this.sub(data, this.components['/_app'].Component);
  4070. }
  4071. }
  4072. exports.default = Router;
  4073. Router.events = mitt_1.default();
  4074. /***/ }),
  4075. /***/ "g/15":
  4076. /***/ (function(module, exports, __webpack_require__) {
  4077. "use strict";
  4078. Object.defineProperty(exports, "__esModule", {
  4079. value: true
  4080. });
  4081. const url_1 = __webpack_require__("bzos");
  4082. /**
  4083. * Utils
  4084. */
  4085. function execOnce(fn) {
  4086. let used = false;
  4087. let result;
  4088. return (...args) => {
  4089. if (!used) {
  4090. used = true;
  4091. result = fn(...args);
  4092. }
  4093. return result;
  4094. };
  4095. }
  4096. exports.execOnce = execOnce;
  4097. function getLocationOrigin() {
  4098. const {
  4099. protocol,
  4100. hostname,
  4101. port
  4102. } = window.location;
  4103. return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  4104. }
  4105. exports.getLocationOrigin = getLocationOrigin;
  4106. function getURL() {
  4107. const {
  4108. href
  4109. } = window.location;
  4110. const origin = getLocationOrigin();
  4111. return href.substring(origin.length);
  4112. }
  4113. exports.getURL = getURL;
  4114. function getDisplayName(Component) {
  4115. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  4116. }
  4117. exports.getDisplayName = getDisplayName;
  4118. function isResSent(res) {
  4119. return res.finished || res.headersSent;
  4120. }
  4121. exports.isResSent = isResSent;
  4122. async function loadGetInitialProps(App, ctx) {
  4123. var _a;
  4124. if (false) {} // when called from _app `ctx` is nested in `ctx`
  4125. const res = ctx.res || ctx.ctx && ctx.ctx.res;
  4126. if (!App.getInitialProps) {
  4127. if (ctx.ctx && ctx.Component) {
  4128. // @ts-ignore pageProps default
  4129. return {
  4130. pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
  4131. };
  4132. }
  4133. return {};
  4134. }
  4135. const props = await App.getInitialProps(ctx);
  4136. if (res && isResSent(res)) {
  4137. return props;
  4138. }
  4139. if (!props) {
  4140. const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
  4141. throw new Error(message);
  4142. }
  4143. if (false) {}
  4144. return props;
  4145. }
  4146. exports.loadGetInitialProps = loadGetInitialProps;
  4147. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  4148. function formatWithValidation(url, options) {
  4149. if (false) {}
  4150. return url_1.format(url, options);
  4151. }
  4152. exports.formatWithValidation = formatWithValidation;
  4153. exports.SP = typeof performance !== 'undefined';
  4154. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  4155. /***/ }),
  4156. /***/ "gguc":
  4157. /***/ (function(module, exports, __webpack_require__) {
  4158. "use strict";
  4159. Object.defineProperty(exports, "__esModule", {
  4160. value: true
  4161. });
  4162. function getRouteMatcher(routeRegex) {
  4163. const {
  4164. re,
  4165. groups
  4166. } = routeRegex;
  4167. return pathname => {
  4168. const routeMatch = re.exec(pathname);
  4169. if (!routeMatch) {
  4170. return false;
  4171. }
  4172. const decode = param => {
  4173. try {
  4174. return decodeURIComponent(param);
  4175. } catch (_) {
  4176. const err = new Error('failed to decode param');
  4177. err.code = 'DECODE_FAILED';
  4178. throw err;
  4179. }
  4180. };
  4181. const params = {};
  4182. Object.keys(groups).forEach(slugName => {
  4183. const g = groups[slugName];
  4184. const m = routeMatch[g.pos];
  4185. if (m !== undefined) {
  4186. params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
  4187. }
  4188. });
  4189. return params;
  4190. };
  4191. }
  4192. exports.getRouteMatcher = getRouteMatcher;
  4193. /***/ }),
  4194. /***/ "i4t8":
  4195. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4196. "use strict";
  4197. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridItem; });
  4198. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  4199. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  4200. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  4201. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  4202. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  4203. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  4204. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  4205. 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); }
  4206. 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; }
  4207. 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; }
  4208. // nodejs library to set properties for components
  4209. // @material-ui/core components
  4210. const styles = {
  4211. grid: {
  4212. position: "relative",
  4213. width: "100%",
  4214. minHeight: "1px",
  4215. paddingRight: "15px",
  4216. paddingLeft: "15px",
  4217. flexBasis: "auto"
  4218. }
  4219. };
  4220. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  4221. function GridItem(props) {
  4222. const classes = useStyles();
  4223. const {
  4224. children,
  4225. className
  4226. } = props,
  4227. rest = _objectWithoutProperties(props, ["children", "className"]);
  4228. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  4229. item: true
  4230. }, rest, {
  4231. className: classes.grid + " " + className
  4232. }), children);
  4233. }
  4234. GridItem.defaultProps = {
  4235. className: ""
  4236. };
  4237. /***/ }),
  4238. /***/ "j08L":
  4239. /***/ (function(module, exports) {
  4240. module.exports = require("@material-ui/icons/Close");
  4241. /***/ }),
  4242. /***/ "jD8W":
  4243. /***/ (function(module, exports) {
  4244. module.exports = require("@material-ui/core/Popper");
  4245. /***/ }),
  4246. /***/ "kYf9":
  4247. /***/ (function(module, exports) {
  4248. module.exports = require("next/dist/next-server/lib/utils.js");
  4249. /***/ }),
  4250. /***/ "mf1M":
  4251. /***/ (function(module, exports) {
  4252. module.exports = require("@material-ui/core/Grow");
  4253. /***/ }),
  4254. /***/ "mtPR":
  4255. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4256. "use strict";
  4257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridContainer; });
  4258. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  4259. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  4260. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  4261. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  4262. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  4263. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  4264. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  4265. 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); }
  4266. 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; }
  4267. 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; }
  4268. // nodejs library to set properties for components
  4269. // @material-ui/core components
  4270. const styles = {
  4271. grid: {
  4272. marginRight: "-15px",
  4273. marginLeft: "-15px",
  4274. width: "auto"
  4275. }
  4276. };
  4277. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  4278. function GridContainer(props) {
  4279. const classes = useStyles();
  4280. const {
  4281. children,
  4282. className
  4283. } = props,
  4284. rest = _objectWithoutProperties(props, ["children", "className"]);
  4285. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  4286. container: true
  4287. }, rest, {
  4288. className: classes.grid + " " + className
  4289. }), children);
  4290. }
  4291. GridContainer.defaultProps = {
  4292. className: ""
  4293. };
  4294. /***/ }),
  4295. /***/ "n1EF":
  4296. /***/ (function(module, exports) {
  4297. module.exports = require("@material-ui/core/SnackbarContent");
  4298. /***/ }),
  4299. /***/ "nOHt":
  4300. /***/ (function(module, exports, __webpack_require__) {
  4301. "use strict";
  4302. var _interopRequireWildcard = __webpack_require__("7KCV");
  4303. var _interopRequireDefault = __webpack_require__("AroE");
  4304. exports.__esModule = true;
  4305. exports.useRouter = useRouter;
  4306. exports.makePublicRouterInstance = makePublicRouterInstance;
  4307. exports.createRouter = exports.withRouter = exports.default = void 0;
  4308. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  4309. var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
  4310. exports.Router = _router2.default;
  4311. exports.NextRouter = _router2.NextRouter;
  4312. var _routerContext = __webpack_require__("Osoz");
  4313. var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
  4314. exports.withRouter = _withRouter.default;
  4315. /* global window */
  4316. var singletonRouter = {
  4317. router: null,
  4318. // holds the actual router instance
  4319. readyCallbacks: [],
  4320. ready(cb) {
  4321. if (this.router) return cb();
  4322. if (false) {}
  4323. }
  4324. }; // Create public properties and methods of the router in the singletonRouter
  4325. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  4326. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  4327. 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
  4328. Object.defineProperty(singletonRouter, 'events', {
  4329. get() {
  4330. return _router2.default.events;
  4331. }
  4332. });
  4333. urlPropertyFields.forEach(field => {
  4334. // Here we need to use Object.defineProperty because, we need to return
  4335. // the property assigned to the actual router
  4336. // The value might get changed as we change routes and this is the
  4337. // proper way to access it
  4338. Object.defineProperty(singletonRouter, field, {
  4339. get() {
  4340. var router = getRouter();
  4341. return router[field];
  4342. }
  4343. });
  4344. });
  4345. coreMethodFields.forEach(field => {
  4346. // We don't really know the types here, so we add them later instead
  4347. ;
  4348. singletonRouter[field] = function () {
  4349. var router = getRouter();
  4350. return router[field](...arguments);
  4351. };
  4352. });
  4353. routerEvents.forEach(event => {
  4354. singletonRouter.ready(() => {
  4355. _router2.default.events.on(event, function () {
  4356. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  4357. var _singletonRouter = singletonRouter;
  4358. if (_singletonRouter[eventField]) {
  4359. try {
  4360. _singletonRouter[eventField](...arguments);
  4361. } catch (err) {
  4362. // tslint:disable-next-line:no-console
  4363. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  4364. console.error(err.message + "\n" + err.stack);
  4365. }
  4366. }
  4367. });
  4368. });
  4369. });
  4370. function getRouter() {
  4371. if (!singletonRouter.router) {
  4372. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  4373. throw new Error(message);
  4374. }
  4375. return singletonRouter.router;
  4376. } // Export the singletonRouter and this is the public API.
  4377. var _default = singletonRouter; // Reexport the withRoute HOC
  4378. exports.default = _default;
  4379. function useRouter() {
  4380. return _react.default.useContext(_routerContext.RouterContext);
  4381. } // INTERNAL APIS
  4382. // -------------
  4383. // (do not use following exports inside the app)
  4384. // Create a router and assign it as the singleton instance.
  4385. // This is used in client side when we are initilizing the app.
  4386. // This should **not** use inside the server.
  4387. var createRouter = function createRouter() {
  4388. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  4389. args[_key] = arguments[_key];
  4390. }
  4391. singletonRouter.router = new _router2.default(...args);
  4392. singletonRouter.readyCallbacks.forEach(cb => cb());
  4393. singletonRouter.readyCallbacks = [];
  4394. return singletonRouter.router;
  4395. }; // This function is used to create the `withRouter` router instance
  4396. exports.createRouter = createRouter;
  4397. function makePublicRouterInstance(router) {
  4398. var _router = router;
  4399. var instance = {};
  4400. for (var property of urlPropertyFields) {
  4401. if (typeof _router[property] === 'object') {
  4402. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  4403. continue;
  4404. }
  4405. instance[property] = _router[property];
  4406. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  4407. instance.events = _router2.default.events;
  4408. coreMethodFields.forEach(field => {
  4409. instance[field] = function () {
  4410. return _router[field](...arguments);
  4411. };
  4412. });
  4413. return instance;
  4414. }
  4415. /***/ }),
  4416. /***/ "nybW":
  4417. /***/ (function(module, exports) {
  4418. module.exports = require("@material-ui/core/Divider");
  4419. /***/ }),
  4420. /***/ "oLCs":
  4421. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4422. "use strict";
  4423. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  4424. const footerStyle = {
  4425. block: {
  4426. color: "inherit",
  4427. padding: "0.9375rem",
  4428. fontWeight: "500",
  4429. fontSize: "12px",
  4430. textTransform: "uppercase",
  4431. borderRadius: "3px",
  4432. textDecoration: "none",
  4433. position: "relative",
  4434. display: "block"
  4435. },
  4436. left: {
  4437. float: "left!important",
  4438. display: "block"
  4439. },
  4440. right: {
  4441. padding: "15px 0",
  4442. margin: "0",
  4443. float: "right!important"
  4444. },
  4445. footer: {
  4446. padding: "0.9375rem 0",
  4447. textAlign: "center",
  4448. display: "flex",
  4449. zIndex: "2",
  4450. position: "relative"
  4451. },
  4452. a: {
  4453. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* primaryColor */ "p"],
  4454. textDecoration: "none",
  4455. backgroundColor: "transparent"
  4456. },
  4457. footerWhiteFont: {
  4458. "&,&:hover,&:focus": {
  4459. color: "#FFFFFF"
  4460. }
  4461. },
  4462. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  4463. list: {
  4464. marginBottom: "0",
  4465. padding: "0",
  4466. marginTop: "0"
  4467. },
  4468. inlineBlock: {
  4469. display: "inline-block",
  4470. padding: "0px",
  4471. width: "auto"
  4472. },
  4473. icon: {
  4474. width: "18px",
  4475. height: "18px",
  4476. position: "relative",
  4477. top: "3px"
  4478. }
  4479. };
  4480. /* harmony default export */ __webpack_exports__["a"] = (footerStyle);
  4481. /***/ }),
  4482. /***/ "orDh":
  4483. /***/ (function(module, exports) {
  4484. module.exports = "/_next/static/images/dekstop_pandemi-d7beff3bb7a1936b9ec2e925a2fb4345.jpg";
  4485. /***/ }),
  4486. /***/ "qt1I":
  4487. /***/ (function(module, exports) {
  4488. module.exports = require("@material-ui/core/Paper");
  4489. /***/ }),
  4490. /***/ "rf6O":
  4491. /***/ (function(module, exports) {
  4492. module.exports = require("prop-types");
  4493. /***/ }),
  4494. /***/ "rsJo":
  4495. /***/ (function(module, exports) {
  4496. module.exports = "/_next/static/images/3-8fa8d8eabb392a2a1f1108b117997e7f.jpg";
  4497. /***/ }),
  4498. /***/ "x54t":
  4499. /***/ (function(module, exports) {
  4500. module.exports = require("@material-ui/core/MenuItem");
  4501. /***/ }),
  4502. /***/ "xmQw":
  4503. /***/ (function(module, exports) {
  4504. module.exports = require("@material-ui/core/MenuList");
  4505. /***/ }),
  4506. /***/ "z+8S":
  4507. /***/ (function(module, exports) {
  4508. module.exports = require("@apollo/client");
  4509. /***/ }),
  4510. /***/ "zKQ2":
  4511. /***/ (function(module, exports) {
  4512. 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"
  4513. /***/ })
  4514. /******/ });