Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 

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