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.

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