Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

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