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

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