No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

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