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.
 
 

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