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

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