You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

5607 lines
191 KiB

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