25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

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