Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

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