您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

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