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.
 
 

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