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.

6642 lines
213 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 = 100);
  92. /******/ })
  93. /************************************************************************/
  94. /******/ ({
  95. /***/ "+Hpm":
  96. /***/ (function(module, exports) {
  97. /***/ }),
  98. /***/ "/jkW":
  99. /***/ (function(module, exports, __webpack_require__) {
  100. "use strict";
  101. Object.defineProperty(exports, "__esModule", {
  102. value: true
  103. }); // Identify /[param]/ in route string
  104. const TEST_ROUTE = /\/\[[^/]+?\](?=\/|$)/;
  105. function isDynamicRoute(route) {
  106. return TEST_ROUTE.test(route);
  107. }
  108. exports.isDynamicRoute = isDynamicRoute;
  109. /***/ }),
  110. /***/ "0Bsm":
  111. /***/ (function(module, exports, __webpack_require__) {
  112. "use strict";
  113. var _interopRequireDefault = __webpack_require__("AroE");
  114. exports.__esModule = true;
  115. exports.default = withRouter;
  116. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  117. var _router = __webpack_require__("nOHt");
  118. function withRouter(ComposedComponent) {
  119. function WithRouterWrapper(props) {
  120. return _react.default.createElement(ComposedComponent, Object.assign({
  121. router: (0, _router.useRouter)()
  122. }, props));
  123. }
  124. WithRouterWrapper.getInitialProps = ComposedComponent.getInitialProps // This is needed to allow checking for custom getInitialProps in _app
  125. ;
  126. WithRouterWrapper.origGetInitialProps = ComposedComponent.origGetInitialProps;
  127. if (false) { var name; }
  128. return WithRouterWrapper;
  129. }
  130. /***/ }),
  131. /***/ "0G1C":
  132. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  133. "use strict";
  134. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  135. var nextjs_material_kit = __webpack_require__("eDSW");
  136. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/tooltipsStyle.js
  137. const tooltipsStyle = {
  138. tooltip: {
  139. padding: "10px 15px",
  140. minWidth: "130px",
  141. color: "#555555",
  142. lineHeight: "1.7em",
  143. background: "#FFFFFF",
  144. border: "none",
  145. borderRadius: "3px",
  146. 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)",
  147. maxWidth: "200px",
  148. textAlign: "center",
  149. fontFamily: '"Helvetica Neue",Helvetica,Arial,sans-serif',
  150. fontSize: "0.875em",
  151. fontStyle: "normal",
  152. fontWeight: "400",
  153. textShadow: "none",
  154. textTransform: "none",
  155. letterSpacing: "normal",
  156. wordBreak: "normal",
  157. wordSpacing: "normal",
  158. wordWrap: "normal",
  159. whiteSpace: "normal",
  160. lineBreak: "auto"
  161. }
  162. };
  163. /* harmony default export */ var nextjs_material_kit_tooltipsStyle = (tooltipsStyle);
  164. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/headerLinksStyle.js
  165. 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; }
  166. 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; }
  167. 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; }
  168. const headerLinksStyle = theme => _objectSpread({
  169. list: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  170. fontSize: "14px",
  171. margin: 0,
  172. paddingLeft: "0",
  173. listStyle: "none",
  174. paddingTop: "0",
  175. paddingBottom: "0",
  176. color: "inherit"
  177. }),
  178. listItem: {
  179. float: "left",
  180. color: "inherit",
  181. position: "relative",
  182. display: "block",
  183. width: "auto",
  184. margin: "0",
  185. padding: "0",
  186. [theme.breakpoints.down("sm")]: {
  187. width: "100%",
  188. "&:after": {
  189. width: "100%",
  190. content: '""',
  191. display: "block",
  192. height: "1px",
  193. backgroundColor: "#e5e5e5"
  194. }
  195. }
  196. },
  197. listItemText: {
  198. padding: "0 !important"
  199. },
  200. navLink: {
  201. color: "inherit",
  202. position: "relative",
  203. padding: "0.9375rem",
  204. fontWeight: "400",
  205. fontSize: "12px",
  206. textTransform: "uppercase",
  207. borderRadius: "3px",
  208. lineHeight: "20px",
  209. textDecoration: "none",
  210. margin: "0px",
  211. display: "inline-flex",
  212. "&:hover,&:focus": {
  213. color: "inherit",
  214. background: "rgba(200, 200, 200, 0.2)"
  215. },
  216. [theme.breakpoints.down("sm")]: {
  217. width: "calc(100% - 30px)",
  218. marginLeft: "15px",
  219. marginBottom: "8px",
  220. marginTop: "8px",
  221. textAlign: "left",
  222. "& > span:first-child": {
  223. justifyContent: "flex-start"
  224. }
  225. }
  226. },
  227. notificationNavLink: {
  228. [theme.breakpoints.down("md")]: {
  229. top: "0",
  230. margin: "5px 15px"
  231. },
  232. color: "#FFF",
  233. fontWeight: "400",
  234. fontSize: "12px",
  235. textTransform: "uppercase",
  236. lineHeight: "20px",
  237. textDecoration: "none",
  238. margin: "0px",
  239. display: "inline-flex",
  240. top: "4px"
  241. },
  242. registerNavLink: {
  243. [theme.breakpoints.down("md")]: {
  244. top: "0",
  245. margin: "5px 15px"
  246. },
  247. top: "3px",
  248. position: "relative",
  249. fontWeight: "400",
  250. fontSize: "12px",
  251. textTransform: "uppercase",
  252. lineHeight: "20px",
  253. textDecoration: "none",
  254. margin: "0px",
  255. display: "inline-flex"
  256. },
  257. navLinkActive: {
  258. color: "inherit",
  259. backgroundColor: "rgba(255, 255, 255, 0.1)"
  260. },
  261. icons: {
  262. width: "20px",
  263. height: "20px",
  264. marginRight: "3px"
  265. },
  266. socialIcons: {
  267. position: "relative",
  268. fontSize: "20px !important",
  269. marginRight: "4px"
  270. },
  271. dropdownLink: {
  272. "&,&:hover,&:focus": {
  273. color: "inherit",
  274. textDecoration: "none",
  275. display: "block",
  276. padding: "10px 20px"
  277. }
  278. }
  279. }, nextjs_material_kit_tooltipsStyle, {
  280. marginRight5: {
  281. marginRight: "5px"
  282. }
  283. });
  284. /* harmony default export */ var components_headerLinksStyle = __webpack_exports__["a"] = (headerLinksStyle);
  285. /***/ }),
  286. /***/ "0Jp5":
  287. /***/ (function(module, exports) {
  288. module.exports = require("@material-ui/core/DialogTitle");
  289. /***/ }),
  290. /***/ "0LMq":
  291. /***/ (function(module, exports) {
  292. module.exports = require("@material-ui/core/List");
  293. /***/ }),
  294. /***/ 100:
  295. /***/ (function(module, exports, __webpack_require__) {
  296. module.exports = __webpack_require__("Yd04");
  297. /***/ }),
  298. /***/ "1gBk":
  299. /***/ (function(module, exports) {
  300. module.exports = require("@material-ui/core/DialogActions");
  301. /***/ }),
  302. /***/ "2VNI":
  303. /***/ (function(module, exports, __webpack_require__) {
  304. "use strict";
  305. var _apollo = _interopRequireDefault(__webpack_require__("B/3u"));
  306. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  307. async function profile(token = "") {
  308. var res = await _apollo.default.query(`
  309. query{
  310. users(where: { id: "13" }){
  311. id
  312. username
  313. email
  314. firstName
  315. lastName
  316. telp
  317. address
  318. }
  319. }
  320. `, token);
  321. return res;
  322. }
  323. async function GetDetailProfile(id, token = "") {
  324. var res = await _apollo.default.query(`
  325. query($input: ID!){
  326. users(where:{id:$input})
  327. {
  328. id
  329. username
  330. email
  331. firstName
  332. lastName
  333. telp
  334. address
  335. }
  336. } `, token, {
  337. "input": id
  338. });
  339. return res;
  340. }
  341. module.exports = {
  342. profile: profile,
  343. GetDetailProfile: GetDetailProfile
  344. };
  345. /***/ }),
  346. /***/ "2kat":
  347. /***/ (function(module, exports) {
  348. module.exports = require("@material-ui/icons");
  349. /***/ }),
  350. /***/ "2zww":
  351. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  352. "use strict";
  353. // EXPORTS
  354. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CardHeader; });
  355. // EXTERNAL MODULE: external "react"
  356. var external_react_ = __webpack_require__("cDcd");
  357. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  358. // EXTERNAL MODULE: external "classnames"
  359. var external_classnames_ = __webpack_require__("K2gz");
  360. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  361. // EXTERNAL MODULE: external "@material-ui/core/styles"
  362. var styles_ = __webpack_require__("9Pu4");
  363. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  364. var nextjs_material_kit = __webpack_require__("eDSW");
  365. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardHeaderStyle.js
  366. const cardHeaderStyle = {
  367. cardHeader: {
  368. borderRadius: "3px",
  369. padding: "1rem 15px",
  370. marginLeft: "15px",
  371. marginRight: "15px",
  372. marginTop: "-30px",
  373. border: "0",
  374. marginBottom: "0"
  375. },
  376. cardHeaderPlain: {
  377. marginLeft: "0px",
  378. marginRight: "0px"
  379. },
  380. warningCardHeader: nextjs_material_kit["y" /* warningCardHeader */],
  381. successCardHeader: nextjs_material_kit["t" /* successCardHeader */],
  382. dangerCardHeader: nextjs_material_kit["e" /* dangerCardHeader */],
  383. infoCardHeader: nextjs_material_kit["l" /* infoCardHeader */],
  384. primaryCardHeader: nextjs_material_kit["o" /* primaryCardHeader */]
  385. };
  386. /* harmony default export */ var components_cardHeaderStyle = (cardHeaderStyle);
  387. // CONCATENATED MODULE: ./components/Card/CardHeader.js
  388. var __jsx = external_react_default.a.createElement;
  389. 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); }
  390. 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; }
  391. 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; }
  392. // nodejs library that concatenates classes
  393. // nodejs library to set properties for components
  394. // @material-ui/core components
  395. // @material-ui/icons
  396. // core components
  397. const useStyles = Object(styles_["makeStyles"])(components_cardHeaderStyle);
  398. function CardHeader(props) {
  399. const classes = useStyles();
  400. const {
  401. className,
  402. children,
  403. color,
  404. plain
  405. } = props,
  406. rest = _objectWithoutProperties(props, ["className", "children", "color", "plain"]);
  407. const cardHeaderClasses = external_classnames_default()({
  408. [classes.cardHeader]: true,
  409. [classes[color + "CardHeader"]]: color,
  410. [classes.cardHeaderPlain]: plain,
  411. [className]: className !== undefined
  412. });
  413. return __jsx("div", _extends({
  414. className: cardHeaderClasses
  415. }, rest), children);
  416. }
  417. /***/ }),
  418. /***/ "31Yn":
  419. /***/ (function(module, exports) {
  420. module.exports = require("@material-ui/core/ClickAwayListener");
  421. /***/ }),
  422. /***/ "3PpT":
  423. /***/ (function(module, exports) {
  424. module.exports = require("@material-ui/icons/ExpandMore");
  425. /***/ }),
  426. /***/ "3REV":
  427. /***/ (function(module, exports) {
  428. module.exports = require("@material-ui/icons/LocalGroceryStore");
  429. /***/ }),
  430. /***/ "4151":
  431. /***/ (function(module, exports) {
  432. module.exports = require("@material-ui/core/AppBar");
  433. /***/ }),
  434. /***/ "4D1s":
  435. /***/ (function(module, exports) {
  436. module.exports = require("@material-ui/icons/Menu");
  437. /***/ }),
  438. /***/ "6Yxu":
  439. /***/ (function(module, exports) {
  440. module.exports = require("@material-ui/core/Tab");
  441. /***/ }),
  442. /***/ "7KCV":
  443. /***/ (function(module, exports, __webpack_require__) {
  444. var _typeof = __webpack_require__("C+bE");
  445. function _getRequireWildcardCache() {
  446. if (typeof WeakMap !== "function") return null;
  447. var cache = new WeakMap();
  448. _getRequireWildcardCache = function _getRequireWildcardCache() {
  449. return cache;
  450. };
  451. return cache;
  452. }
  453. function _interopRequireWildcard(obj) {
  454. if (obj && obj.__esModule) {
  455. return obj;
  456. }
  457. if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") {
  458. return {
  459. "default": obj
  460. };
  461. }
  462. var cache = _getRequireWildcardCache();
  463. if (cache && cache.has(obj)) {
  464. return cache.get(obj);
  465. }
  466. var newObj = {};
  467. var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
  468. for (var key in obj) {
  469. if (Object.prototype.hasOwnProperty.call(obj, key)) {
  470. var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
  471. if (desc && (desc.get || desc.set)) {
  472. Object.defineProperty(newObj, key, desc);
  473. } else {
  474. newObj[key] = obj[key];
  475. }
  476. }
  477. }
  478. newObj["default"] = obj;
  479. if (cache) {
  480. cache.set(obj, newObj);
  481. }
  482. return newObj;
  483. }
  484. module.exports = _interopRequireWildcard;
  485. /***/ }),
  486. /***/ "7vM9":
  487. /***/ (function(module, exports) {
  488. module.exports = require("@material-ui/core/Icon");
  489. /***/ }),
  490. /***/ "8//M":
  491. /***/ (function(module, exports) {
  492. module.exports = require("@material-ui/core/styles/makeStyles");
  493. /***/ }),
  494. /***/ "8E12":
  495. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  496. "use strict";
  497. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HeaderLinks; });
  498. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  499. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  500. /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("YFqc");
  501. /* harmony import */ var next_link__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(next_link__WEBPACK_IMPORTED_MODULE_1__);
  502. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("9Pu4");
  503. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__);
  504. /* harmony import */ var _material_ui_core_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("0LMq");
  505. /* harmony import */ var _material_ui_core_List__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_List__WEBPACK_IMPORTED_MODULE_3__);
  506. /* harmony import */ var _material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("c25J");
  507. /* harmony import */ var _material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4__);
  508. /* harmony import */ var _material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("7vM9");
  509. /* harmony import */ var _material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5__);
  510. /* harmony import */ var _material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("3REV");
  511. /* harmony import */ var _material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons_LocalGroceryStore__WEBPACK_IMPORTED_MODULE_6__);
  512. /* harmony import */ var _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("2kat");
  513. /* harmony import */ var _material_ui_icons__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons__WEBPACK_IMPORTED_MODULE_7__);
  514. /* harmony import */ var components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("QOEo");
  515. /* harmony import */ var components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("Kg+a");
  516. /* harmony import */ var assets_jss_nextjs_material_kit_components_headerLinksStyle_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("0G1C");
  517. /* harmony import */ var assets_img_tb_png__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("nJn1");
  518. /* harmony import */ var assets_img_tb_png__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(assets_img_tb_png__WEBPACK_IMPORTED_MODULE_11__);
  519. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  520. 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; }
  521. 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; }
  522. /*eslint-disable*/
  523. // @material-ui/core components
  524. // import People from "@material-ui/core/People";
  525. // @material-ui/icons
  526. // core components
  527. 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"]);
  528. function HeaderLinks(_ref) {
  529. let {
  530. username
  531. } = _ref,
  532. props = _objectWithoutProperties(_ref, ["username"]);
  533. const classes = useStyles();
  534. return __jsx(_material_ui_core_List__WEBPACK_IMPORTED_MODULE_3___default.a, {
  535. className: classes.list
  536. }, __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  537. className: classes.listItem
  538. }, __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  539. href: "/yamaha/home"
  540. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  541. color: "transparent",
  542. className: classes.navLink
  543. }, __jsx("img", {
  544. src: assets_img_tb_png__WEBPACK_IMPORTED_MODULE_11___default.a,
  545. width: "180px"
  546. })))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  547. className: classes.listItem
  548. }, __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  549. href: "/yamaha/home"
  550. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  551. color: "transparent",
  552. className: classes.navLink,
  553. style: {
  554. marginTop: "10px"
  555. }
  556. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  557. className: classes.icons
  558. }, "home"), " Home"))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  559. className: classes.listItem,
  560. style: {
  561. marginTop: "10px"
  562. }
  563. }, __jsx(components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], {
  564. noLiPadding: true,
  565. navDropdown: true,
  566. buttonText: "Product",
  567. buttonProps: {
  568. className: classes.navLink,
  569. color: "transparent"
  570. },
  571. buttonIcon: _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__["Apps"],
  572. dropdownList: [__jsx("a", {
  573. href: "/yamaha/product/product",
  574. className: classes.dropdownLink
  575. }, "Motor"), __jsx("a", {
  576. href: "/yamaha/sparepart/sparepart",
  577. className: classes.dropdownLink
  578. }, "Sparepart & Accessories"), // <a href="/yamaha/product/yamalube" className={classes.dropdownLink}>
  579. // Yamalube
  580. // </a>,
  581. // <a href="/yamaha/product/helmet" className={classes.dropdownLink}>
  582. // Helmet
  583. // </a>,
  584. // <a href="/yamaha/product/apparel" className={classes.dropdownLink}>
  585. // Apparel
  586. // </a>,
  587. // <a
  588. // href="/yamaha/product/accessories"
  589. // className={classes.dropdownLink}
  590. // >
  591. // Accessories
  592. // </a>,
  593. __jsx("a", {
  594. href: "https://booking.thamrin.co.id/",
  595. className: classes.dropdownLink
  596. }, "Service"), __jsx("a", {
  597. href: "/yamaha/dealers",
  598. className: classes.dropdownLink
  599. }, "Dealers") // <a href="/yamaha/order/order" className={classes.dropdownLink}>
  600. // Dealers
  601. // </a>,
  602. ]
  603. })), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  604. className: classes.listItem,
  605. style: {
  606. marginTop: "10px"
  607. }
  608. }, __jsx(next_link__WEBPACK_IMPORTED_MODULE_1___default.a, {
  609. href: "/yamaha/latest_news/latestnews"
  610. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  611. color: "transparent",
  612. className: classes.navLink
  613. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  614. className: classes.icons
  615. }, "event"), " Latest News"))), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  616. className: classes.listItem,
  617. style: {
  618. marginTop: "10px"
  619. }
  620. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  621. href: "/yamaha/carrer/carrer",
  622. color: "transparent",
  623. className: classes.navLink
  624. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  625. className: classes.icons
  626. }, "wallet_travel"), " Career")), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  627. className: classes.listItem,
  628. style: {
  629. marginTop: "10px"
  630. }
  631. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  632. href: "/yamaha/abous_us/aboutus",
  633. color: "transparent",
  634. className: classes.navLink
  635. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  636. className: classes.icons
  637. }, "account_balance"), " About Us")), __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  638. className: classes.listItem,
  639. style: {
  640. marginTop: "10px"
  641. }
  642. }, !username || username == "" ? __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  643. href: "/yamaha/login",
  644. className: classes.registerNavLink,
  645. color: "info",
  646. round: true
  647. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  648. className: classes.icons
  649. }, "input"), " Login") : __jsx(components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__[/* default */ "a"], {
  650. noLiPadding: true,
  651. navDropdown: true,
  652. buttonText: username.length > 12 ? username.substring(0, 9) + ".." : username,
  653. buttonProps: {
  654. className: classes.navLink,
  655. color: "transparent"
  656. },
  657. buttonIcon: _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__["Person"],
  658. dropdownList: [__jsx("div", {
  659. onClick: async e => {
  660. e.preventDefault();
  661. fetch("/api/auth/logout", {
  662. method: "POST",
  663. headers: {
  664. "Content-Type": "application/json"
  665. },
  666. body: JSON.stringify({
  667. p: "YAMAHA"
  668. })
  669. }).then(res => {
  670. //if (res.ok) {
  671. window.location.href = "../yamaha/home";
  672. /*}
  673. else{
  674. }*/
  675. });
  676. }
  677. }, __jsx("a", {
  678. className: classes.dropdownLink
  679. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  680. className: classes.icons
  681. }, "exit_to_app"), " Logout")), __jsx("div", null, __jsx("a", {
  682. className: classes.dropdownLink,
  683. href: "/yamaha/profile/profile"
  684. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  685. className: classes.icons
  686. }, "people"), " Profile")), __jsx("div", null, __jsx("a", {
  687. className: classes.dropdownLink,
  688. href: "/yamaha/order/order"
  689. }, __jsx(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default.a, {
  690. className: classes.icons
  691. }, "shopping_cart"), " Pesanan Saya")) // <a href="/yamaha/profile/profile" className={classes.dropdownLink}>Profile</a>,
  692. ]
  693. })));
  694. }
  695. /***/ }),
  696. /***/ "8x5e":
  697. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  698. "use strict";
  699. // EXPORTS
  700. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Header; });
  701. // EXTERNAL MODULE: external "react"
  702. var external_react_ = __webpack_require__("cDcd");
  703. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  704. // EXTERNAL MODULE: ./node_modules/next/link.js
  705. var next_link = __webpack_require__("YFqc");
  706. var link_default = /*#__PURE__*/__webpack_require__.n(next_link);
  707. // EXTERNAL MODULE: external "classnames"
  708. var external_classnames_ = __webpack_require__("K2gz");
  709. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  710. // EXTERNAL MODULE: external "@material-ui/core/styles"
  711. var styles_ = __webpack_require__("9Pu4");
  712. // EXTERNAL MODULE: external "@material-ui/core/AppBar"
  713. var AppBar_ = __webpack_require__("4151");
  714. var AppBar_default = /*#__PURE__*/__webpack_require__.n(AppBar_);
  715. // EXTERNAL MODULE: external "@material-ui/core/Toolbar"
  716. var Toolbar_ = __webpack_require__("Ms0O");
  717. var Toolbar_default = /*#__PURE__*/__webpack_require__.n(Toolbar_);
  718. // EXTERNAL MODULE: external "@material-ui/core/IconButton"
  719. var IconButton_ = __webpack_require__("EmCc");
  720. var IconButton_default = /*#__PURE__*/__webpack_require__.n(IconButton_);
  721. // EXTERNAL MODULE: external "@material-ui/core/Button"
  722. var Button_ = __webpack_require__("Wh1t");
  723. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  724. // EXTERNAL MODULE: external "@material-ui/core/Hidden"
  725. var Hidden_ = __webpack_require__("Y8uC");
  726. var Hidden_default = /*#__PURE__*/__webpack_require__.n(Hidden_);
  727. // EXTERNAL MODULE: external "@material-ui/core/Drawer"
  728. var Drawer_ = __webpack_require__("Q01v");
  729. var Drawer_default = /*#__PURE__*/__webpack_require__.n(Drawer_);
  730. // EXTERNAL MODULE: external "@material-ui/icons/Menu"
  731. var Menu_ = __webpack_require__("4D1s");
  732. var Menu_default = /*#__PURE__*/__webpack_require__.n(Menu_);
  733. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  734. var nextjs_material_kit = __webpack_require__("eDSW");
  735. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/headerStyle.js
  736. 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; }
  737. 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; }
  738. 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; }
  739. const headerStyle = {
  740. appBar: {
  741. display: "flex",
  742. border: "0",
  743. borderRadius: "3px",
  744. padding: "0.625rem 0",
  745. marginBottom: "20px",
  746. color: "#555",
  747. width: "100%",
  748. backgroundColor: "#000",
  749. boxShadow: "0 4px 18px 0px rgba(0, 0, 0, 0.12), 0 7px 10px -5px rgba(0, 0, 0, 0.15)",
  750. transition: "all 150ms ease 0s",
  751. alignItems: "center",
  752. flexFlow: "row nowrap",
  753. justifyContent: "flex-start",
  754. position: "relative",
  755. zIndex: "unset"
  756. },
  757. absolute: {
  758. position: "absolute",
  759. zIndex: "1100"
  760. },
  761. fixed: {
  762. position: "fixed",
  763. zIndex: "1100"
  764. },
  765. container: _objectSpread({}, nextjs_material_kit["c" /* container */], {
  766. minHeight: "50px",
  767. flex: "1",
  768. alignItems: "center",
  769. justifyContent: "space-between",
  770. display: "flex",
  771. flexWrap: "nowrap"
  772. }),
  773. flex: {
  774. flex: 1
  775. },
  776. title: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  777. lineHeight: "30px",
  778. fontSize: "18px",
  779. borderRadius: "3px",
  780. textTransform: "none",
  781. color: "inherit",
  782. padding: "8px 16px",
  783. letterSpacing: "unset",
  784. "&:hover,&:focus": {
  785. color: "inherit",
  786. background: "transparent"
  787. }
  788. }),
  789. appResponsive: {
  790. margin: "20px 10px"
  791. },
  792. primary: {
  793. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  794. color: "#FFFFFF",
  795. 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)}`
  796. },
  797. info: {
  798. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  799. color: "#FFFFFF",
  800. 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)}`
  801. },
  802. success: {
  803. backgroundColor: nextjs_material_kit["u" /* successColor */],
  804. color: "#FFFFFF",
  805. 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)}`
  806. },
  807. warning: {
  808. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  809. color: "#FFFFFF",
  810. 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)}`
  811. },
  812. danger: {
  813. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  814. color: "#FFFFFF",
  815. 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)}`
  816. },
  817. rose: {
  818. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  819. color: "#FFFFFF",
  820. 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)}`
  821. },
  822. transparent: {
  823. backgroundColor: "transparent !important",
  824. boxShadow: "none",
  825. paddingTop: "25px",
  826. color: "#FFFFFF"
  827. },
  828. dark: {
  829. color: "#FFFFFF",
  830. backgroundColor: "#212121 !important",
  831. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 12px -5px rgba(33, 33, 33, 0.46)"
  832. },
  833. white: {
  834. border: "0",
  835. padding: "0.625rem 0",
  836. marginBottom: "20px",
  837. color: "#555",
  838. backgroundColor: "#fff !important",
  839. boxShadow: "0 4px 18px 0px rgba(0, 0, 0, 0.12), 0 7px 10px -5px rgba(0, 0, 0, 0.15)"
  840. },
  841. drawerPaper: _objectSpread({
  842. border: "none",
  843. bottom: "0",
  844. transitionProperty: "top, bottom, width",
  845. transitionDuration: ".2s, .2s, .35s",
  846. transitionTimingFunction: "linear, linear, ease",
  847. width: nextjs_material_kit["h" /* drawerWidth */]
  848. }, nextjs_material_kit["a" /* boxShadow */], {
  849. position: "fixed",
  850. display: "block",
  851. top: "0",
  852. height: "100vh",
  853. right: "0",
  854. left: "auto",
  855. visibility: "visible",
  856. overflowY: "visible",
  857. borderTop: "none",
  858. textAlign: "left",
  859. paddingRight: "0px",
  860. paddingLeft: "0"
  861. }, nextjs_material_kit["w" /* transition */])
  862. };
  863. /* harmony default export */ var components_headerStyle = (headerStyle);
  864. // CONCATENATED MODULE: ./components/Header/Header.js
  865. var __jsx = external_react_default.a.createElement;
  866. // nodejs library that concatenates classes
  867. // nodejs library to set properties for components
  868. // @material-ui/core components
  869. // @material-ui/icons
  870. // core components
  871. const useStyles = Object(styles_["makeStyles"])(components_headerStyle);
  872. function Header(props) {
  873. const classes = useStyles();
  874. const [mobileOpen, setMobileOpen] = external_react_default.a.useState(false);
  875. external_react_default.a.useEffect(() => {
  876. if (props.changeColorOnScroll) {
  877. window.addEventListener("scroll", headerColorChange);
  878. }
  879. return function cleanup() {
  880. if (props.changeColorOnScroll) {
  881. window.removeEventListener("scroll", headerColorChange);
  882. }
  883. };
  884. });
  885. const handleDrawerToggle = () => {
  886. setMobileOpen(!mobileOpen);
  887. };
  888. const headerColorChange = () => {
  889. const {
  890. color,
  891. changeColorOnScroll
  892. } = props;
  893. const windowsScrollTop = window.pageYOffset;
  894. if (windowsScrollTop > changeColorOnScroll.height) {
  895. document.body.getElementsByTagName("header")[0].classList.remove(classes[color]);
  896. document.body.getElementsByTagName("header")[0].classList.add(classes[changeColorOnScroll.color]);
  897. } else {
  898. document.body.getElementsByTagName("header")[0].classList.add(classes[color]);
  899. document.body.getElementsByTagName("header")[0].classList.remove(classes[changeColorOnScroll.color]);
  900. }
  901. };
  902. const {
  903. color,
  904. rightLinks,
  905. leftLinks,
  906. brand,
  907. fixed,
  908. absolute
  909. } = props;
  910. const appBarClasses = external_classnames_default()({
  911. [classes.appBar]: true,
  912. [classes[color]]: color,
  913. [classes.absolute]: absolute,
  914. [classes.fixed]: fixed
  915. });
  916. const brandComponent = __jsx(link_default.a, {
  917. href: "/components",
  918. as: "/components"
  919. }, __jsx(Button_default.a, {
  920. className: classes.title
  921. }, brand));
  922. return __jsx(AppBar_default.a, {
  923. className: appBarClasses
  924. }, __jsx(Toolbar_default.a, {
  925. className: classes.container
  926. }, leftLinks !== undefined ? brandComponent : null, __jsx("div", {
  927. className: classes.flex
  928. }, leftLinks !== undefined ? __jsx(Hidden_default.a, {
  929. smDown: true,
  930. implementation: "css"
  931. }, leftLinks) : brandComponent), __jsx(Hidden_default.a, {
  932. smDown: true,
  933. implementation: "css"
  934. }, rightLinks), __jsx(Hidden_default.a, {
  935. mdUp: true
  936. }, __jsx(IconButton_default.a, {
  937. color: "inherit",
  938. "aria-label": "open drawer",
  939. onClick: handleDrawerToggle
  940. }, __jsx(Menu_default.a, null)))), __jsx(Hidden_default.a, {
  941. mdUp: true,
  942. implementation: "js"
  943. }, __jsx(Drawer_default.a, {
  944. variant: "temporary",
  945. anchor: "right",
  946. open: mobileOpen,
  947. classes: {
  948. paper: classes.drawerPaper
  949. },
  950. onClose: handleDrawerToggle
  951. }, __jsx("div", {
  952. className: classes.appResponsive
  953. }, leftLinks, rightLinks))));
  954. }
  955. Header.defaultProp = {
  956. color: "black"
  957. };
  958. /***/ }),
  959. /***/ "9Pu4":
  960. /***/ (function(module, exports) {
  961. module.exports = require("@material-ui/core/styles");
  962. /***/ }),
  963. /***/ "A2So":
  964. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  965. "use strict";
  966. // EXPORTS
  967. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Card; });
  968. // EXTERNAL MODULE: external "react"
  969. var external_react_ = __webpack_require__("cDcd");
  970. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  971. // EXTERNAL MODULE: external "classnames"
  972. var external_classnames_ = __webpack_require__("K2gz");
  973. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  974. // EXTERNAL MODULE: external "@material-ui/core/styles"
  975. var styles_ = __webpack_require__("9Pu4");
  976. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardStyle.js
  977. const cardStyle = {
  978. card: {
  979. border: "0",
  980. marginBottom: "30px",
  981. marginTop: "30px",
  982. borderRadius: "6px",
  983. color: "rgba(0, 0, 0, 0.87)",
  984. background: "#fff",
  985. width: "100%",
  986. 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)",
  987. position: "relative",
  988. display: "flex",
  989. flexDirection: "column",
  990. minWidth: "0",
  991. wordWrap: "break-word",
  992. fontSize: ".875rem",
  993. transition: "all 300ms linear"
  994. },
  995. cardPlain: {
  996. background: "transparent",
  997. boxShadow: "none"
  998. },
  999. cardCarousel: {
  1000. overflow: "hidden"
  1001. }
  1002. };
  1003. /* harmony default export */ var components_cardStyle = (cardStyle);
  1004. // CONCATENATED MODULE: ./components/Card/Card.js
  1005. var __jsx = external_react_default.a.createElement;
  1006. 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); }
  1007. 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; }
  1008. 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; }
  1009. // nodejs library that concatenates classes
  1010. // nodejs library to set properties for components
  1011. // @material-ui/core components
  1012. // @material-ui/icons
  1013. // core components
  1014. const useStyles = Object(styles_["makeStyles"])(components_cardStyle);
  1015. function Card(props) {
  1016. const classes = useStyles();
  1017. const {
  1018. className,
  1019. children,
  1020. plain,
  1021. carousel
  1022. } = props,
  1023. rest = _objectWithoutProperties(props, ["className", "children", "plain", "carousel"]);
  1024. const cardClasses = external_classnames_default()({
  1025. [classes.card]: true,
  1026. [classes.cardPlain]: plain,
  1027. [classes.cardCarousel]: carousel,
  1028. [className]: className !== undefined
  1029. });
  1030. return __jsx("div", _extends({
  1031. className: cardClasses
  1032. }, rest), children);
  1033. }
  1034. /***/ }),
  1035. /***/ "AroE":
  1036. /***/ (function(module, exports) {
  1037. function _interopRequireDefault(obj) {
  1038. return obj && obj.__esModule ? obj : {
  1039. "default": obj
  1040. };
  1041. }
  1042. module.exports = _interopRequireDefault;
  1043. /***/ }),
  1044. /***/ "B/3u":
  1045. /***/ (function(module, exports, __webpack_require__) {
  1046. "use strict";
  1047. var _client = __webpack_require__("z+8S");
  1048. var _apolloConfig = _interopRequireDefault(__webpack_require__("bx/+"));
  1049. var _crossFetch = _interopRequireDefault(__webpack_require__("CCqr"));
  1050. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  1051. function errorHandler(object) {
  1052. 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";
  1053. }
  1054. function initApollo(token) {
  1055. const httpLink = (0, _client.createHttpLink)({
  1056. uri: _apolloConfig.default.graphql_uri,
  1057. fetch: _crossFetch.default,
  1058. headers: token != "" ? {
  1059. Authorization: `Bearer ${token}`
  1060. } : null
  1061. });
  1062. return new _client.ApolloClient({
  1063. ssrMode: false,
  1064. cache: new _client.InMemoryCache({
  1065. addTypename: false
  1066. }),
  1067. link: httpLink
  1068. });
  1069. }
  1070. async function query(query, token = "", variables = {}, cache = false) {
  1071. const client = initApollo(token);
  1072. var res;
  1073. try {
  1074. var sql = await client.query({
  1075. query: (0, _client.gql)`
  1076. ${query}
  1077. `,
  1078. variables: variables,
  1079. fetchPolicy: cache ? "cache-first" : "no-cache"
  1080. });
  1081. res = {
  1082. STATUS: 1,
  1083. DATA: sql.data
  1084. };
  1085. } catch (e) {
  1086. res = {
  1087. STATUS: 0,
  1088. DATA: errorHandler(e)
  1089. };
  1090. }
  1091. return res;
  1092. }
  1093. async function mutation(mutation, token = "", variables = {}) {
  1094. const client = initApollo(token);
  1095. var res;
  1096. try {
  1097. var sql = await client.mutate({
  1098. mutation: (0, _client.gql)`
  1099. ${mutation}
  1100. `,
  1101. variables: variables
  1102. });
  1103. res = {
  1104. STATUS: 1,
  1105. DATA: sql.data
  1106. };
  1107. } catch (e) {
  1108. console.log(e.networkError.result);
  1109. res = {
  1110. STATUS: 0,
  1111. DATA: errorHandler(e)
  1112. };
  1113. }
  1114. return res;
  1115. }
  1116. module.exports = {
  1117. query: query,
  1118. mutation: mutation
  1119. };
  1120. /***/ }),
  1121. /***/ "C+bE":
  1122. /***/ (function(module, exports) {
  1123. 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); }
  1124. function _typeof(obj) {
  1125. if (typeof Symbol === "function" && _typeof2(Symbol.iterator) === "symbol") {
  1126. module.exports = _typeof = function _typeof(obj) {
  1127. return _typeof2(obj);
  1128. };
  1129. } else {
  1130. module.exports = _typeof = function _typeof(obj) {
  1131. return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : _typeof2(obj);
  1132. };
  1133. }
  1134. return _typeof(obj);
  1135. }
  1136. module.exports = _typeof;
  1137. /***/ }),
  1138. /***/ "CCqr":
  1139. /***/ (function(module, exports) {
  1140. module.exports = require("cross-fetch");
  1141. /***/ }),
  1142. /***/ "EmCc":
  1143. /***/ (function(module, exports) {
  1144. module.exports = require("@material-ui/core/IconButton");
  1145. /***/ }),
  1146. /***/ "Fm7H":
  1147. /***/ (function(module, exports) {
  1148. module.exports = require("@material-ui/icons/Favorite");
  1149. /***/ }),
  1150. /***/ "GRvL":
  1151. /***/ (function(module, exports) {
  1152. module.exports = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAACiCAYAAAA3M3U2AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABXMSURBVHgB7d15dJT1vcfxz0wSZBEMIAioEBTZVEggKJUlCRZ6RVqCyqVal1Ct3Y4KVqmtnAKe2+Wo9IKtthUx9AqiDSJhKVAWAwiIBAg7wQIDQtghyiokmfv7PRRlSTJDMkkmz7xfx2eWJzMR/uH7+e0eKdEvoAo99dT9zgUAqBgejyff7/dPKywsHNWuXTufvecVAABwNVP8Y81TWlRU1I7c3NzH7D0bALLMlSMAAOB6pjdgwoYNG+JNAMhOMVeCVNBSKhpscoJPAADAtWrUqPHMBUMAOT5p9QSp0AQCTRMAAHCr1GLmANggkD3A9AT8XQAAwI1iS5kEWDhEzA0AAMCVSgkAOfnmYagAAIDrBFgGmJ3FpEAAANwnmH0AMgUAAFwliADg8QkAALhKEAGgKF8AAMBVgggA3jgBAABXCSIA+DsKAAC4SoAAEB8reZIFAABcJUAAiH7GPMQKAAC4SikBID7OPIwUAABwnRICgC3+MR8JAAC4UjEBoHOq6fpfI/njBAAAXCla6honFZpx/sJkkwf6m3vJAgAArmYCQMGOcy+D2RUYAAC4AVUfAIAIRAAAACACEQAAAIhABAAAACKQCQB+nwAAQEQxAWBVSynbY16nmDDwdwEAANe7YAggO8uEgTSpoCW9AgAAuFsxcwByfFJhgn0hAADgSiVMAszJNz0BKfQEAADgTqWsArAhwD9KAADAdQIsA1w9wTzkCwAAuEoQ+wD4MwUAAFwliADgYTIgAAAuE0QAKGIIAAAAlwkiAHhjBQAAXCWYOQAdBQAAXCWYHoBkAQAAVwkQADqlmR6AOAEAAFcpJQDEx0lRIwQAAFynhAAQHyvFfETrHwAAdyomACQmm+K/huIPAIB7RZ97si3+6Hjzwnb5J5viLwAA4F4mACQeNc+s9QcAIILYIQCKPwAAESaIfQAAAIDbEAAAAIhABAAAACIQAQAAgAhkAkC2R/IkSEWDzfssAQAA1/vPPgArc8yDvSZInVPN8/+aUBCnMNC1623q27ebeeWR2xQUFmrFJ+u1Y8cebd+ep4KCQgEAUBmiL7+1apoUb8JA1EfhEAK6dGmv4cMfl1vl5x/T7t0HNGPGEmVkzNfGjdt19myBAACoSNHF387xmRCQYn68RlW8T0BsbF25mf372atVqxvVv3+Spk5dqLffni6fb68AAKgopUwCtCFAY1WFvF6vYmKiFQlq1qyh9u1b6rnnHtHo0UPMsMddqlEjMv7uAIDKF2AVQMEY85CvKmKLf0pKoiKJDQIDBqTo5ZeHOM9XXVVDAACEWoAAkGOKvz9TVcTr9ahevdqKRO3bx2nEiB/p/gd6EQIAACEXxD4AnhxVEY/HY0JAlCJV27ZxGv7iD9W/f08TAmIEAECoBBEAiqpsCMDjvpV/V8yGgBEjnlTPngmKimLfJgBAaAQxy8xbpasA3BAC9u8/ory8QyoqKjSX39zxy+P1KspcDRrUU4sWTUv9frt2cfq16QnY+tku7fTtEwAA5RVEAPB3rKpNePz+c1d1You9z7dHEyfN0ZdfnNDBg0dN8T+oXbv2m+JfdNFn7SqHZs2uVVNzXXttrGKvuVqpqSlq1ChWt95600Vj/3fecZt+9tOBGjnyTZ069ZUAACiPYHoAkm2LtSr4TfX3+4sU7mzRt7v5vTU+U+vWblVu7i6nSAezs5/dCGjTph3O6+horyZNmutMfLyrW0d1vfN2JSUl6LbbbnZWBwwceLemTFmglSs3CQCA8ggQADqlmTIcpypiW8xnz4bv9ri28E+blqX33vuXVq/eouPHTzmhpawKCorM7zjpXFMyFmjWzI9Vv35dde8er169uqjPd7pq0KDe2rhxm06epBcAAFB2pQSAeDP2HzWiqlr/1pkzBVq0aJUSEtoonNjCP3PmEqWnzzCFP1enT1dMMba9CPb6xz/ma/bsZc5WwXZo4BozVEAAAACURykBICq9Klv/lm1NHz16TOEkw7TMx4+fpiVLckI+Fl+r1lWmuNdRnTq1nE2Q7BJIr9dOhDw3+//AgaPm/7lJ11/fSHv3HhYAAGVVTACIjzO3TfFXssLAoUNVtgrxIrbV//vfpzut8PIU3xo1YtS4cawZ579arVs3dw47ql+/nmrWqqnmNzZ2WvjR0XbvA69T/J0JmOf+O9cXY0LRuHEfav36bfrqq7MCAKAsLggAXePMKPRj5sUQVfEBQBdatGi19u07rCZNGqoqnD59RsuXr9OYMe9q7txPnGGJK1W3bi01b97UjOMnqnPn9ua5s2nl13Za/HZy35Xq0SPBCRIEAABAWZkAkGhP/IszxT9siv6FDh7M19atO6skANjiP358pkaPnqidO/dd8QS/Nm2aq1+/Hs4chnvuucsU/JplKviXsr8nKipyd0gEAJSf7QGIVxiz6+gXm/H2nj07qTLl5u7UmLGTNfWDhU4ICZZt7Xfo0Fppg/spIb6N2re/KSRF/0IetkgEAJRTtThvdtmytZU6DGDH+22r/513Zptu9jNBfcfu1W+P8/3+9/vogQe+rZYtmwkAgHBVLQJAdvYmbdu2u1ICgC3+zz8/1pnsF+wY+2233aQf/OAe/feg3moZR+EHAIS/ahEAjhw+psmT5ygxsV2FHo1ri/+wYWP1/vvzdPZs4Ml+DRteo/vuS9GgQX2cCX4AAFQX1SIA2B0Bp07NUteuHfTww/eoItji/6tfva733gtc/O2pfPFmfH/kyB+pW7d4xcZercpU3c5HAACEHxMAPAmmpMSaK9W872/exykM2TkAdka+nVFv18qHkp3t/9JLbzq9DIGKv92k58EH++iFF9J0003XqyqcOXMmqHMGAAAoiVdamWNG2bOkVUPM1dK0t4ea++Gx+84lli5dq+HD/6JNm7YrlCZPnquJE+cEHPO3J/b9/OcD9fLLz1RZ8bd2+PKCnpwIAEBxvJffWj1GKrC9Aj6FGdvq/ec/l+rFF9/Qxo2hCQF2n/1Ro8bp2LGTpX6ubdsWSk//jdPyr+wu/wvZwj8lY35QcxQAACiJt/jbOT7zowEKQ7bwzZq11LTEX9a7784tV0vY59ur//nteO3ata/Uz9nT+MaM+YXuvbd7lRZ/a/Nmn5Yv3yAAAMqjlEmAdmggcZR5MUJhxvYELF68Wjt35ikv74CzBK9p02uv6Hecm/T3J23cUHpPQnJKZ736yhB16hQeJxLOnbtcBw4cEQAA5RFgP9nGJgR4f2Je1FQY+uKL4/r443X69NONKiwqUpMm16pu3dpBffeNN/5hrg9UWFhU4mdSTPEf/Wr4FH/bY/HrF193JkS6yZ13tncuAEDlCbAMMCff9AKYEBAeJwMW59Sp0/roo2ytWrVZ6W9Pd4r2/fffrY4dbynxO/Pnf2qKf0ap4+jdunXUK6blb1cdlGbLFt8VH8pjT/mrXbuWbrih8RXta/D55/u0Z/cB892rVBY27HCAEADACmYfgEUK4wBw3pdfnnBWCaxYsd45NrekAGC7/l999R0z7n+gxN/VqVNbM+b/bMCWv+2BGDToV6YwH9CViIr2qtG19ZWamuRsImQnGAYTBFq3bqE5c15TWa1cuVmzZi1xnsPlmGUAQNUIIgAU+UqcKxiG6tato97fvqPEn49/O1MLF64q8ec33Xy9/vKXX6pz53YKxA49bNrkMy3rK1+Tf/jQFxo9erdmz16qX/4yTQMGJAcMAddd18C5yqpLl1t13329tGDBCqWnz9DixTkqKGA1AQBEoiAquzcsjwkuSePGDdW8edNif+Z0/b8+pcSi16hRfT079AdOoQzGlCkLylT8z7NDEGvX/lt/+EO6KcorVRmaNGngTJocO/Y59ewZ1gdBAgAqUBABwB+naqRXr87FHhpku/7/9Kf3lZd3sNjv2eV9Q4c+qB/+8HsKhu3+X7EiNMvx1q3b5oSJ/Pxjqix2N8XBg7/rnGcAAIg8wfQA9Fc1Ua9eHdN6b6+aNS/vSn938hwzfr682O/VqnWVnn56kIYMeajY7xZn1eotys3dqVBZvny9zpyp3O74u+++o0p3NAQAVJ0AASAxuTr1AFx3XUMlJXW+7L7Pl6c3//ZhibP++6cm6YUXBgdd/K3pmYtCOqN+795DIetRCJbtKbn5ZgIAAESiAAHAk65qJCkp4bINgexBP7/97dvaunVXsd/p3qOjhj3/6BUVf2vZsnUKJbuK4cjRL1WZ7C6Kx4+fEgAg8pQSABJHVKfWv+3Gb9u25WWFfOnSHOf8AH8xZ+g2a9bIhIOfKz6+ta5ETs5W7diRp+rO9jps2rxDAIDIU8wywPhYc9tu/ztE1UiDBvV0773dLrpnW//2sJ+9ey/fOc9upvPkk6nq0f3KZ8J/9tkuHT78hULp6qtrqU7tWqpMR458qdOnOFUQACLRBQHAFn5vqhRVrVr+591yS/PLWv920l9mZtZln/V6PRo4sLeefvpBlcW4cdMUanYb46SkTqostvv/ww8/4lwBAIhQJgB0MeP8ftsMjjOXCQF+VTder1d33XW7WrT4Zv1/Xt4hTZw4yxS4y3e8u/32WzRs2CNlOtkvN9fn9ACEWqtW1ysmJkqV5bPPPte0aYucg5UAAJHHBAB/mqq5hg3rqUePi1vP8+Z9ogULsi/7bGxsXf3mN4+rXbuWKotNm3Zo5859CiUbYL773Z7On60y2Nb/B1MXaseOPQIARKbqs8dvKa655mq1bt386/e29Z+RscDZrOdCMTHRSkvrp5SULiqrCRNmKtTsoUB33dVRlcXuX/DBlAU6efIrAQAikysCQEqvLqpfv97X723r3x4MdKnOiW314x/fV6auf8u2nH2+0LeaGzeub4Yvmqgy7Nt3SK+99n6JyyIBAJGh2gcAO3u+bZsWXxd1u7TNbqt7aev/xhuv06iRP1Yb89myWrIkx4yd71ao2dULdhljRbMBxp45MGPG4krfdRAAEF6qfQCw4+YXLv+bN2+Faf1fvEmPLa6PP9FfvXvfqfKwqwrs0sJQssHl1ltvDuo44PKy8xdefXWSDh7kKGAAiHR2EuCAc8v+vEnmfaqqmVatbvy6eNrWv13adumhOnd/u4uefur7Kg/bel68eJVCza5cuPvuss9JCNb27Xv0yivvaMOGfwsAABMAVp1f1D5Gio+TooZInmdUDXg8nouW/9nW/6JFay76jO3yt4f8lHXc/zw7p2Dz5tAd/nPed77TVbVr11RFsrsW2uI/ffpiFRYWCQCAS4YAcnwmEAw51yugsO8nrl//6q9nz9vWf0bG/Ita//Xr19Ujj/RVr5REldfnn+/XiROh3Tffzl/o1KlthXb/nz79lf7+fzM1efJcnTx5WgAAWCXMAbC9Av7BCnOxsfXUpm0Lp3vetv4vPKDHHg38xBOp+tnPBqq8bKhIT5+hULvhhuucI3krip2v8N57/9K4N6c5hw0BAHBeKZMAnRAwVmEsxbTsGzaI1Z49B52lbUePnmv9R0dHmZ6BDvrJTx8od9e/tWZNrrMDYKg1b95EUVEVMw/z3DkI8/TSS+Oc3hEAAC4UoPoUjlSYuuqqGGfzn1q1amjx4tXatu2b5Xnx8W30wguPqWVcU4XCp59u1P79RxVK0dFetW9/kyqC7bGYPHmORoz4m3y+0O5aCABwh+jSf5yTLyVmmRfJCjN2fL9v326m8O/Rn/+c8fW6/6ZNG+rRR/uqZ8/QHKyTn39c06ZlKdTsxj+DB/cL+fa/dsLfH/84yTkF8eDB0IYWAIB7RAfxmUUKwwDQvHlT030e5XRzb9nic+7Z7v7HH0/Vww/3VagcO3ZCu3cfUKi1atXc2ZwoVOw8iF279ut3v0vX1KkLzZ/7pAAAKEkQAaDIF477BXXv3lEFhQXOun87u90OCaQOSNGzzz4UknH/86aa379v32GFkl2+2K9f95C1/u1M/8zMxU7Lf+3arezyBwAIKJgegLBjl881alRfUzIWOEfz2kl/PXom6EdP9A9pl7rt/p/6wcKQr523e/+H4vCf863+jIx5+utfp1ZITwUAwJ2CCACeeIUZu8QvIaGNhg17zTnR7pZbbtRzv3hY3/pWB4VSYWGh9u8/olBr3LiBWrZspvKwvRJLlqxxVj9kZ28yYeCsAAAIVjABoPLOqQ1Shw63OOv+c3N3qWHDazR69FD16dNVoTZz5hLt3LlXoWa3Ji7r4T+28Nu/+1vjM/XJ8vU6e5bufgDAlQsQAOzWwOE3AdAW/dmzlykmJkpPPjlA3buHvpPCrqO36/9D3bK2wxcJ8W2uePc/W/jnzFmmt97K1MqVmyj8AIByCRAAokYozNSsWcO0/Hea8e79TvF//vlHQzrp77xTp77SwoXZCjW79v/ee7sH/fnln2zQksWrNWnSbG3e7FNBQaEAACivUgJAoi3+aQozXq/X2fTnoYf+S8OHP1Ehxd+aOetj7dixR6HWp8+dqlOn5MN/bEvfBhw7m9+u5d+8ebuOHj0uAABCqYQA4BT/kQpDHTrcrMGDv6eBA3tXWPG33f/r132mEydCf3hOz6ROF3X/ny/4+flfauLEOc6Ww1u27KSlDwCoUJcEgMRk82CLf7LClF3mV6NGjKZPz1JFsQEgMzNLodas2bWaP2+F3ng9QwcOHHX2Lzh06Kjy8g6pqMgvAAAqi8cU/ZHmqYVUlGye4wRUsqeeut+5AACVx/YAmBa/bX16BAAAIkP47fELAAAqHAEAAIAIRAAAACACEQAAAIhAdhLgKMkfK3mSzOuwO/gHAACEngkA2SO/eWv3/o8y7z2PCQAAuNYlQwA5PmlVmpxeAQAA4FYlzAFwegUIAQAAuFQpkwCdEJAlAADgOgFWARQMFQAAcJ0AASAnR/QCAADgOkHsA+BfKwAA4CrBBIAcAQAAV2EnQAAAIlAQAcAbJwAA4CrB9AAkCQAAuEqAAGC3BlayAACAqwQIAFEjBAAAXKeUANDlGcmTJgAA4DolBIA7HpP8YwQAAFwp+uK38bHmlun2LxoiAADgWiYAdEozz6bwe/ub5/hzrwEAgJuZAOBNFwAAiCjsBAgAQAQiAAAAEIEIAAAARCACAAAAEcgEAM8E85wl+fMFAAAiQrS0cvA3b+2SQM8Ic8UJAAC41iVDAKsnSKtamhejBAAAXKuEOQDZI0UIAADAtUqZBOiEgCwBAADXCbQKgF4AAABcKEAAyM4yDzkCAACuEsQ+AP5FAgAArhJMAKAHAAAAl2EnQAAAIlAQAcAbJwAA4CrBDAF0FAAAcJUAASA+TvKkCgAAuEqAABD9mAAAgOuUEgDi483DSAEAANcpIQDY4h/zoQAAgCtFX/w2Ptbcesa8GCL5YwUAANwoxwSALqa1XxQneZLMjTRzUfgBAHCxwsLCsSYA+NeY4i8AABARctq1azeBnQABAIgQHo9n2okTJ1LsazsHgCN/UaX8/iJz+QUAqBjm39h8c9mWf9b5e/8P9+XMFlJxAl0AAAAASUVORK5CYII="
  1153. /***/ }),
  1154. /***/ "HXcA":
  1155. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1156. "use strict";
  1157. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Footer; });
  1158. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  1159. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  1160. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("K2gz");
  1161. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  1162. /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("KKbo");
  1163. /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__);
  1164. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("9Pu4");
  1165. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__);
  1166. /* harmony import */ var _material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Fm7H");
  1167. /* harmony import */ var _material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4__);
  1168. /* harmony import */ var components_Grid_GridContainer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("mtPR");
  1169. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("JQ2V");
  1170. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6__);
  1171. /* harmony import */ var components_Grid_GridItem_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("i4t8");
  1172. /* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("qt1I");
  1173. /* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8__);
  1174. /* harmony import */ var components_Card_Card_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("A2So");
  1175. /* harmony import */ var assets_jss_nextjs_material_kit_components_footerStyle_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("oLCs");
  1176. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  1177. // import StyleYamaha from "components/Footer/footersosmed.css";
  1178. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__["makeStyles"])(assets_jss_nextjs_material_kit_components_footerStyle_js__WEBPACK_IMPORTED_MODULE_10__[/* default */ "a"]);
  1179. function Footer(props) {
  1180. const classes = useStyles();
  1181. const {
  1182. whiteFont
  1183. } = props;
  1184. const footerClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
  1185. [classes.footer]: true,
  1186. [classes.footerWhiteFont]: whiteFont
  1187. });
  1188. const aClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
  1189. [classes.a]: true,
  1190. [classes.footerWhiteFont]: whiteFont
  1191. });
  1192. return __jsx(components_Grid_GridItem_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], {
  1193. xs: 12
  1194. }, __jsx("link", {
  1195. rel: "stylesheet",
  1196. href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
  1197. }), __jsx("br", null), __jsx("br", null), __jsx("div", {
  1198. align: "center"
  1199. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1200. className: classes.list
  1201. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1202. className: classes.inlineBlock
  1203. }, __jsx("a", {
  1204. href: "/yamaha/home",
  1205. className: classes.block
  1206. }, " Home ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1207. className: classes.inlineBlock
  1208. }, __jsx("a", {
  1209. href: "/yamaha/product/product",
  1210. className: classes.block
  1211. }, " Motor ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1212. className: classes.inlineBlock
  1213. }, __jsx("a", {
  1214. href: "/yamaha/product/ygp",
  1215. className: classes.block
  1216. }, " YGP ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1217. className: classes.inlineBlock
  1218. }, __jsx("a", {
  1219. href: "/yamaha/product/yamalube",
  1220. className: classes.block
  1221. }, " Yamalube ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1222. className: classes.inlineBlock
  1223. }, __jsx("a", {
  1224. href: "/yamaha/product/apparel",
  1225. className: classes.block
  1226. }, " Apparel ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1227. className: classes.inlineBlock
  1228. }, __jsx("a", {
  1229. href: "/yamaha/product/helmet",
  1230. className: classes.block
  1231. }, " Helmet ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1232. className: classes.inlineBlock
  1233. }, __jsx("a", {
  1234. href: "/yamaha/product/accessories",
  1235. className: classes.block
  1236. }, " Accessories ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1237. className: classes.inlineBlock
  1238. }, __jsx("a", {
  1239. href: "/yamaha/product/service",
  1240. className: classes.block
  1241. }, " Service ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1242. className: classes.inlineBlock
  1243. }, __jsx("a", {
  1244. href: "/yamaha/product/dealer",
  1245. className: classes.block
  1246. }, " Dealer ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1247. className: classes.inlineBlock
  1248. }, __jsx("a", {
  1249. href: "/yamaha/latestsnews",
  1250. className: classes.block
  1251. }, " Latest News ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1252. className: classes.inlineBlock
  1253. }, __jsx("a", {
  1254. href: "/yamaha/carrer",
  1255. className: classes.block
  1256. }, " Carrer ")), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1257. className: classes.inlineBlock
  1258. }, __jsx("a", {
  1259. href: "/yamaha/about_us/aboutus",
  1260. className: classes.block
  1261. }, " About Us ")))), __jsx("div", {
  1262. align: "center"
  1263. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  1264. className: classes.list
  1265. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1266. className: classes.inlineBlock,
  1267. style: {
  1268. padding: "10px"
  1269. }
  1270. }, __jsx("a", {
  1271. href: "#",
  1272. class: "fa fa-facebook"
  1273. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1274. className: classes.inlineBlock,
  1275. style: {
  1276. padding: "10px"
  1277. }
  1278. }, __jsx("a", {
  1279. href: "#",
  1280. class: "fa fa-instagram"
  1281. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1282. className: classes.inlineBlock,
  1283. style: {
  1284. padding: "10px"
  1285. }
  1286. }, __jsx("a", {
  1287. href: "#",
  1288. class: "fa fa-twitter"
  1289. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  1290. className: classes.inlineBlock,
  1291. style: {
  1292. padding: "10px"
  1293. }
  1294. }, __jsx("a", {
  1295. href: "#",
  1296. class: "fa fa-youtube"
  1297. })))), __jsx("br", null), __jsx("br", null), __jsx("div", {
  1298. align: "center"
  1299. }, "\xA9 ", 1900 + new Date().getYear(), " , All Right Reserved", " ", " by", " ", " @Thamrin Brothers"), __jsx("br", null), __jsx("br", null));
  1300. }
  1301. /***/ }),
  1302. /***/ "JQ2V":
  1303. /***/ (function(module, exports) {
  1304. module.exports = require("@material-ui/core/Grid");
  1305. /***/ }),
  1306. /***/ "Jro0":
  1307. /***/ (function(module, exports) {
  1308. module.exports = require("@material-ui/core/AccordionDetails");
  1309. /***/ }),
  1310. /***/ "K2gz":
  1311. /***/ (function(module, exports) {
  1312. module.exports = require("classnames");
  1313. /***/ }),
  1314. /***/ "KKbo":
  1315. /***/ (function(module, exports) {
  1316. module.exports = require("@material-ui/core");
  1317. /***/ }),
  1318. /***/ "Kg+a":
  1319. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1320. "use strict";
  1321. // EXTERNAL MODULE: external "react"
  1322. var external_react_ = __webpack_require__("cDcd");
  1323. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1324. // EXTERNAL MODULE: external "classnames"
  1325. var external_classnames_ = __webpack_require__("K2gz");
  1326. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1327. // EXTERNAL MODULE: external "@material-ui/core/styles/makeStyles"
  1328. var makeStyles_ = __webpack_require__("8//M");
  1329. var makeStyles_default = /*#__PURE__*/__webpack_require__.n(makeStyles_);
  1330. // EXTERNAL MODULE: external "@material-ui/core/Button"
  1331. var Button_ = __webpack_require__("Wh1t");
  1332. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  1333. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1334. var nextjs_material_kit = __webpack_require__("eDSW");
  1335. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/buttonStyle.js
  1336. const buttonStyle = {
  1337. button: {
  1338. minHeight: "auto",
  1339. minWidth: "auto",
  1340. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1341. color: "#FFFFFF",
  1342. 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)",
  1343. border: "none",
  1344. borderRadius: "3px",
  1345. position: "relative",
  1346. padding: "12px 30px",
  1347. margin: ".3125rem 1px",
  1348. fontSize: "12px",
  1349. fontWeight: "400",
  1350. textTransform: "uppercase",
  1351. letterSpacing: "0",
  1352. willChange: "box-shadow, transform",
  1353. transition: "box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
  1354. lineHeight: "1.42857143",
  1355. textAlign: "center",
  1356. whiteSpace: "nowrap",
  1357. verticalAlign: "middle",
  1358. touchAction: "manipulation",
  1359. cursor: "pointer",
  1360. "&:hover,&:focus": {
  1361. color: "#FFFFFF",
  1362. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1363. 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)"
  1364. },
  1365. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1366. position: "relative",
  1367. display: "inline-block",
  1368. top: "0",
  1369. fontSize: "1.1rem",
  1370. marginRight: "4px",
  1371. verticalAlign: "middle"
  1372. },
  1373. "& svg": {
  1374. position: "relative",
  1375. display: "inline-block",
  1376. top: "0",
  1377. width: "18px",
  1378. height: "18px",
  1379. marginRight: "4px",
  1380. verticalAlign: "middle"
  1381. },
  1382. "&$justIcon": {
  1383. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1384. marginRight: "0px",
  1385. position: "absolute",
  1386. width: "100%",
  1387. transform: "none",
  1388. left: "0px",
  1389. top: "0px",
  1390. height: "100%",
  1391. lineHeight: "41px",
  1392. fontSize: "20px"
  1393. }
  1394. }
  1395. },
  1396. fullWidth: {
  1397. width: "100%"
  1398. },
  1399. primary: {
  1400. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1401. 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)}`,
  1402. "&:hover,&:focus": {
  1403. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1404. 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)}`
  1405. }
  1406. },
  1407. info: {
  1408. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1409. 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)}`,
  1410. "&:hover,&:focus": {
  1411. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1412. 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)}`
  1413. }
  1414. },
  1415. success: {
  1416. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1417. 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)}`,
  1418. "&:hover,&:focus": {
  1419. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1420. 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)}`
  1421. }
  1422. },
  1423. warning: {
  1424. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1425. 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)}`,
  1426. "&:hover,&:focus": {
  1427. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1428. 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)}`
  1429. }
  1430. },
  1431. danger: {
  1432. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1433. 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)}`,
  1434. "&:hover,&:focus": {
  1435. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1436. 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)}`
  1437. }
  1438. },
  1439. rose: {
  1440. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1441. 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)}`,
  1442. "&:hover,&:focus": {
  1443. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1444. 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)}`
  1445. }
  1446. },
  1447. white: {
  1448. "&,&:focus,&:hover,&:visited": {
  1449. backgroundColor: "#FFFFFF",
  1450. color: nextjs_material_kit["i" /* grayColor */]
  1451. }
  1452. },
  1453. twitter: {
  1454. backgroundColor: "#55acee",
  1455. color: "#fff",
  1456. 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)",
  1457. "&:hover,&:focus,&:visited": {
  1458. backgroundColor: "#55acee",
  1459. color: "#fff",
  1460. 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)"
  1461. }
  1462. },
  1463. facebook: {
  1464. backgroundColor: "#3b5998",
  1465. color: "#fff",
  1466. 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)",
  1467. "&:hover,&:focus": {
  1468. backgroundColor: "#3b5998",
  1469. color: "#fff",
  1470. 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)"
  1471. }
  1472. },
  1473. google: {
  1474. backgroundColor: "#dd4b39",
  1475. color: "#fff",
  1476. 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)",
  1477. "&:hover,&:focus": {
  1478. backgroundColor: "#dd4b39",
  1479. color: "#fff",
  1480. 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)"
  1481. }
  1482. },
  1483. github: {
  1484. backgroundColor: "#333333",
  1485. color: "#fff",
  1486. 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)",
  1487. "&:hover,&:focus": {
  1488. backgroundColor: "#333333",
  1489. color: "#fff",
  1490. 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)"
  1491. }
  1492. },
  1493. simple: {
  1494. "&,&:focus,&:hover,&:visited": {
  1495. color: "#FFFFFF",
  1496. background: "transparent",
  1497. boxShadow: "none"
  1498. },
  1499. "&$primary": {
  1500. "&,&:focus,&:hover,&:visited": {
  1501. color: nextjs_material_kit["p" /* primaryColor */]
  1502. }
  1503. },
  1504. "&$info": {
  1505. "&,&:focus,&:hover,&:visited": {
  1506. color: nextjs_material_kit["m" /* infoColor */]
  1507. }
  1508. },
  1509. "&$success": {
  1510. "&,&:focus,&:hover,&:visited": {
  1511. color: nextjs_material_kit["u" /* successColor */]
  1512. }
  1513. },
  1514. "&$warning": {
  1515. "&,&:focus,&:hover,&:visited": {
  1516. color: nextjs_material_kit["z" /* warningColor */]
  1517. }
  1518. },
  1519. "&$rose": {
  1520. "&,&:focus,&:hover,&:visited": {
  1521. color: nextjs_material_kit["r" /* roseColor */]
  1522. }
  1523. },
  1524. "&$danger": {
  1525. "&,&:focus,&:hover,&:visited": {
  1526. color: nextjs_material_kit["f" /* dangerColor */]
  1527. }
  1528. },
  1529. "&$twitter": {
  1530. "&,&:focus,&:hover,&:visited": {
  1531. color: "#55acee"
  1532. }
  1533. },
  1534. "&$facebook": {
  1535. "&,&:focus,&:hover,&:visited": {
  1536. color: "#3b5998"
  1537. }
  1538. },
  1539. "&$google": {
  1540. "&,&:focus,&:hover,&:visited": {
  1541. color: "#dd4b39"
  1542. }
  1543. },
  1544. "&$github": {
  1545. "&,&:focus,&:hover,&:visited": {
  1546. color: "#333333"
  1547. }
  1548. }
  1549. },
  1550. transparent: {
  1551. "&,&:focus,&:hover,&:visited": {
  1552. color: "inherit",
  1553. background: "transparent",
  1554. boxShadow: "none"
  1555. }
  1556. },
  1557. disabled: {
  1558. opacity: "0.65",
  1559. pointerEvents: "none"
  1560. },
  1561. lg: {
  1562. padding: "1.125rem 2.25rem",
  1563. fontSize: "0.875rem",
  1564. lineHeight: "1.333333",
  1565. borderRadius: "0.2rem"
  1566. },
  1567. sm: {
  1568. padding: "0.40625rem 1.25rem",
  1569. fontSize: "0.6875rem",
  1570. lineHeight: "1.5",
  1571. borderRadius: "0.2rem"
  1572. },
  1573. round: {
  1574. borderRadius: "30px"
  1575. },
  1576. block: {
  1577. width: "100% !important"
  1578. },
  1579. link: {
  1580. "&,&:hover,&:focus": {
  1581. backgroundColor: "transparent",
  1582. color: "#999999",
  1583. boxShadow: "none"
  1584. }
  1585. },
  1586. justIcon: {
  1587. paddingLeft: "12px",
  1588. paddingRight: "12px",
  1589. fontSize: "20px",
  1590. height: "41px",
  1591. minWidth: "41px",
  1592. width: "41px",
  1593. "& .fab,& .fas,& .far,& .fal,& svg,& .material-icons": {
  1594. marginRight: "0px"
  1595. },
  1596. "&$lg": {
  1597. height: "57px",
  1598. minWidth: "57px",
  1599. width: "57px",
  1600. lineHeight: "56px",
  1601. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1602. fontSize: "32px",
  1603. lineHeight: "56px"
  1604. },
  1605. "& svg": {
  1606. width: "32px",
  1607. height: "32px"
  1608. }
  1609. },
  1610. "&$sm": {
  1611. height: "30px",
  1612. minWidth: "30px",
  1613. width: "30px",
  1614. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1615. fontSize: "17px",
  1616. lineHeight: "29px"
  1617. },
  1618. "& svg": {
  1619. width: "17px",
  1620. height: "17px"
  1621. }
  1622. }
  1623. }
  1624. };
  1625. /* harmony default export */ var components_buttonStyle = (buttonStyle);
  1626. // CONCATENATED MODULE: ./components/CustomButtons/Button.js
  1627. var __jsx = external_react_default.a.createElement;
  1628. 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); }
  1629. 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; }
  1630. 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; }
  1631. 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; }
  1632. 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; }
  1633. 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; }
  1634. // nodejs library to set properties for components
  1635. // nodejs library that concatenates classes
  1636. // @material-ui/core components
  1637. // core components
  1638. const makeComponentStyles = makeStyles_default()(() => _objectSpread({}, components_buttonStyle));
  1639. const RegularButton = external_react_default.a.forwardRef((props, ref) => {
  1640. const {
  1641. color,
  1642. round,
  1643. children,
  1644. fullWidth,
  1645. disabled,
  1646. simple,
  1647. size,
  1648. block,
  1649. link,
  1650. justIcon,
  1651. className
  1652. } = props,
  1653. rest = _objectWithoutProperties(props, ["color", "round", "children", "fullWidth", "disabled", "simple", "size", "block", "link", "justIcon", "className"]);
  1654. const classes = makeComponentStyles();
  1655. const btnClasses = external_classnames_default()({
  1656. [classes.button]: true,
  1657. [classes[size]]: size,
  1658. [classes[color]]: color,
  1659. [classes.round]: round,
  1660. [classes.fullWidth]: fullWidth,
  1661. [classes.disabled]: disabled,
  1662. [classes.simple]: simple,
  1663. [classes.block]: block,
  1664. [classes.link]: link,
  1665. [classes.justIcon]: justIcon,
  1666. [className]: className
  1667. });
  1668. return __jsx(Button_default.a, _extends({}, rest, {
  1669. ref: ref,
  1670. classes: {
  1671. root: btnClasses
  1672. }
  1673. }), children);
  1674. });
  1675. /* harmony default export */ var Button = __webpack_exports__["a"] = (RegularButton);
  1676. /***/ }),
  1677. /***/ "M9IG":
  1678. /***/ (function(module, exports) {
  1679. /***/ }),
  1680. /***/ "MbIc":
  1681. /***/ (function(module, exports) {
  1682. module.exports = require("@material-ui/core/DialogContentText");
  1683. /***/ }),
  1684. /***/ "Ms0O":
  1685. /***/ (function(module, exports) {
  1686. module.exports = require("@material-ui/core/Toolbar");
  1687. /***/ }),
  1688. /***/ "Osoz":
  1689. /***/ (function(module, exports) {
  1690. module.exports = require("next/dist/next-server/lib/router-context.js");
  1691. /***/ }),
  1692. /***/ "Q01v":
  1693. /***/ (function(module, exports) {
  1694. module.exports = require("@material-ui/core/Drawer");
  1695. /***/ }),
  1696. /***/ "QOEo":
  1697. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1698. "use strict";
  1699. // EXPORTS
  1700. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomDropdown; });
  1701. // EXTERNAL MODULE: external "react"
  1702. var external_react_ = __webpack_require__("cDcd");
  1703. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1704. // EXTERNAL MODULE: external "classnames"
  1705. var external_classnames_ = __webpack_require__("K2gz");
  1706. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1707. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1708. var styles_ = __webpack_require__("9Pu4");
  1709. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  1710. var MenuItem_ = __webpack_require__("x54t");
  1711. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  1712. // EXTERNAL MODULE: external "@material-ui/core/MenuList"
  1713. var MenuList_ = __webpack_require__("xmQw");
  1714. var MenuList_default = /*#__PURE__*/__webpack_require__.n(MenuList_);
  1715. // EXTERNAL MODULE: external "@material-ui/core/ClickAwayListener"
  1716. var ClickAwayListener_ = __webpack_require__("31Yn");
  1717. var ClickAwayListener_default = /*#__PURE__*/__webpack_require__.n(ClickAwayListener_);
  1718. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  1719. var Paper_ = __webpack_require__("qt1I");
  1720. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  1721. // EXTERNAL MODULE: external "@material-ui/core/Grow"
  1722. var Grow_ = __webpack_require__("mf1M");
  1723. var Grow_default = /*#__PURE__*/__webpack_require__.n(Grow_);
  1724. // EXTERNAL MODULE: external "@material-ui/core/Divider"
  1725. var Divider_ = __webpack_require__("nybW");
  1726. var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
  1727. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  1728. var Icon_ = __webpack_require__("7vM9");
  1729. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  1730. // EXTERNAL MODULE: external "@material-ui/core/Popper"
  1731. var Popper_ = __webpack_require__("jD8W");
  1732. var Popper_default = /*#__PURE__*/__webpack_require__.n(Popper_);
  1733. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  1734. var Button = __webpack_require__("Kg+a");
  1735. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1736. var nextjs_material_kit = __webpack_require__("eDSW");
  1737. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customDropdownStyle.js
  1738. 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; }
  1739. 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; }
  1740. 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; }
  1741. const customDropdownStyle = theme => ({
  1742. popperClose: {
  1743. pointerEvents: "none"
  1744. },
  1745. pooperNav: {
  1746. [theme.breakpoints.down("sm")]: {
  1747. position: "static !important",
  1748. left: "unset !important",
  1749. top: "unset !important",
  1750. transform: "none !important",
  1751. willChange: "none !important",
  1752. "& > div": {
  1753. boxShadow: "none !important",
  1754. marginLeft: "1.5rem",
  1755. marginRight: "1.5rem",
  1756. transition: "none !important",
  1757. marginTop: "0px !important",
  1758. marginBottom: "5px !important",
  1759. padding: "0px !important"
  1760. }
  1761. }
  1762. },
  1763. dropdown: {
  1764. borderRadius: "3px",
  1765. border: "0",
  1766. boxShadow: "0 2px 5px 0 rgba(0, 0, 0, 0.26)",
  1767. top: "100%",
  1768. zIndex: "1000",
  1769. minWidth: "160px",
  1770. padding: "5px 0",
  1771. margin: "2px 0 0",
  1772. fontSize: "14px",
  1773. textAlign: "left",
  1774. listStyle: "none",
  1775. backgroundColor: "#fff",
  1776. backgroundClip: "padding-box"
  1777. },
  1778. menuList: {
  1779. padding: "0"
  1780. },
  1781. popperResponsive: {
  1782. zIndex: "1200",
  1783. position: "absolute !important",
  1784. [theme.breakpoints.down("sm")]: {
  1785. zIndex: "1640",
  1786. position: "static !important",
  1787. float: "none",
  1788. width: "auto",
  1789. marginTop: "0",
  1790. backgroundColor: "transparent",
  1791. border: "0",
  1792. boxShadow: "none",
  1793. color: "black"
  1794. }
  1795. },
  1796. dropdownItem: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  1797. fontSize: "13px",
  1798. padding: "10px 20px",
  1799. margin: "0 5px",
  1800. borderRadius: "2px",
  1801. position: "relative",
  1802. transition: "all 150ms linear",
  1803. display: "block",
  1804. clear: "both",
  1805. fontWeight: "400",
  1806. height: "fit-content",
  1807. color: "#333",
  1808. whiteSpace: "nowrap",
  1809. minHeight: "unset"
  1810. }),
  1811. blackHover: {
  1812. "&:hover": {
  1813. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)",
  1814. backgroundColor: "#212121",
  1815. color: "#fff"
  1816. }
  1817. },
  1818. primaryHover: {
  1819. "&:hover": _objectSpread({
  1820. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1821. color: "#FFFFFF"
  1822. }, nextjs_material_kit["n" /* primaryBoxShadow */])
  1823. },
  1824. infoHover: {
  1825. "&:hover": _objectSpread({
  1826. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1827. color: "#FFFFFF"
  1828. }, nextjs_material_kit["k" /* infoBoxShadow */])
  1829. },
  1830. successHover: {
  1831. "&:hover": _objectSpread({
  1832. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1833. color: "#FFFFFF"
  1834. }, nextjs_material_kit["s" /* successBoxShadow */])
  1835. },
  1836. warningHover: {
  1837. "&:hover": _objectSpread({
  1838. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1839. color: "#FFFFFF"
  1840. }, nextjs_material_kit["x" /* warningBoxShadow */])
  1841. },
  1842. dangerHover: {
  1843. "&:hover": _objectSpread({
  1844. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1845. color: "#FFFFFF"
  1846. }, nextjs_material_kit["d" /* dangerBoxShadow */])
  1847. },
  1848. roseHover: {
  1849. "&:hover": _objectSpread({
  1850. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1851. color: "#FFFFFF"
  1852. }, nextjs_material_kit["q" /* roseBoxShadow */])
  1853. },
  1854. dropdownItemRTL: {
  1855. textAlign: "right"
  1856. },
  1857. dropdownDividerItem: {
  1858. margin: "5px 0",
  1859. backgroundColor: "rgba(0, 0, 0, 0.12)",
  1860. height: "1px",
  1861. overflow: "hidden"
  1862. },
  1863. buttonIcon: {
  1864. width: "20px",
  1865. height: "20px"
  1866. },
  1867. caret: {
  1868. transition: "all 150ms ease-in",
  1869. display: "inline-block",
  1870. width: "0",
  1871. height: "0",
  1872. marginLeft: "4px",
  1873. verticalAlign: "middle",
  1874. borderTop: "4px solid",
  1875. borderRight: "4px solid transparent",
  1876. borderLeft: "4px solid transparent"
  1877. },
  1878. caretActive: {
  1879. transform: "rotate(180deg)"
  1880. },
  1881. caretRTL: {
  1882. marginRight: "4px"
  1883. },
  1884. dropdownHeader: {
  1885. display: "block",
  1886. padding: "0.1875rem 1.25rem",
  1887. fontSize: "0.75rem",
  1888. lineHeight: "1.428571",
  1889. color: "#777",
  1890. whiteSpace: "nowrap",
  1891. fontWeight: "inherit",
  1892. marginTop: "10px",
  1893. minHeight: "unset",
  1894. "&:hover,&:focus": {
  1895. backgroundColor: "transparent",
  1896. cursor: "auto"
  1897. }
  1898. },
  1899. noLiPadding: {
  1900. padding: "0"
  1901. }
  1902. });
  1903. /* harmony default export */ var components_customDropdownStyle = (customDropdownStyle);
  1904. // CONCATENATED MODULE: ./components/CustomDropdown/CustomDropdown.js
  1905. var __jsx = external_react_default.a.createElement;
  1906. 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); }
  1907. // nodejs library that concatenates classes
  1908. // nodejs library to set properties for components
  1909. // @material-ui/core components
  1910. // core components
  1911. const useStyles = Object(styles_["makeStyles"])(components_customDropdownStyle);
  1912. function CustomDropdown(props) {
  1913. const [anchorEl, setAnchorEl] = external_react_default.a.useState(null);
  1914. const handleClick = event => {
  1915. if (anchorEl && anchorEl.contains(event.target)) {
  1916. setAnchorEl(null);
  1917. } else {
  1918. setAnchorEl(event.currentTarget);
  1919. }
  1920. };
  1921. const handleClose = param => {
  1922. setAnchorEl(null);
  1923. if (props && props.onClick) {
  1924. props.onClick(param);
  1925. }
  1926. };
  1927. const handleCloseAway = event => {
  1928. if (anchorEl.contains(event.target)) {
  1929. return;
  1930. }
  1931. setAnchorEl(null);
  1932. };
  1933. const classes = useStyles();
  1934. const {
  1935. buttonText,
  1936. buttonIcon,
  1937. dropdownList,
  1938. buttonProps,
  1939. dropup,
  1940. dropdownHeader,
  1941. caret,
  1942. hoverColor,
  1943. left,
  1944. rtlActive,
  1945. noLiPadding,
  1946. navDropdown
  1947. } = props;
  1948. const caretClasses = external_classnames_default()({
  1949. [classes.caret]: true,
  1950. [classes.caretActive]: Boolean(anchorEl),
  1951. [classes.caretRTL]: rtlActive
  1952. });
  1953. const dropdownItem = external_classnames_default()({
  1954. [classes.dropdownItem]: true,
  1955. [classes[hoverColor + "Hover"]]: true,
  1956. [classes.noLiPadding]: noLiPadding,
  1957. [classes.dropdownItemRTL]: rtlActive
  1958. });
  1959. let icon = null;
  1960. switch (typeof buttonIcon) {
  1961. case "object":
  1962. icon = __jsx(props.buttonIcon, {
  1963. className: classes.buttonIcon
  1964. });
  1965. break;
  1966. case "string":
  1967. icon = __jsx(Icon_default.a, {
  1968. className: classes.buttonIcon
  1969. }, props.buttonIcon);
  1970. break;
  1971. default:
  1972. icon = null;
  1973. break;
  1974. }
  1975. return __jsx("div", null, __jsx("div", null, __jsx(Button["a" /* default */], _extends({
  1976. "aria-label": "Notifications",
  1977. "aria-owns": anchorEl ? "menu-list" : null,
  1978. "aria-haspopup": "true"
  1979. }, buttonProps, {
  1980. onClick: handleClick
  1981. }), icon, buttonText !== undefined ? buttonText : null, caret ? __jsx("b", {
  1982. className: caretClasses
  1983. }) : null)), __jsx(Popper_default.a, {
  1984. open: Boolean(anchorEl),
  1985. anchorEl: anchorEl,
  1986. transition: true,
  1987. disablePortal: true,
  1988. placement: dropup ? left ? "top-start" : "top" : left ? "bottom-start" : "bottom",
  1989. className: external_classnames_default()({
  1990. [classes.popperClose]: !anchorEl,
  1991. [classes.popperResponsive]: true,
  1992. [classes.pooperNav]: Boolean(anchorEl) && navDropdown
  1993. })
  1994. }, () => __jsx(Grow_default.a, {
  1995. in: Boolean(anchorEl),
  1996. id: "menu-list",
  1997. style: dropup ? {
  1998. transformOrigin: "0 100% 0"
  1999. } : {
  2000. transformOrigin: "0 0 0"
  2001. }
  2002. }, __jsx(Paper_default.a, {
  2003. className: classes.dropdown
  2004. }, __jsx(ClickAwayListener_default.a, {
  2005. onClickAway: handleCloseAway
  2006. }, __jsx(MenuList_default.a, {
  2007. role: "menu",
  2008. className: classes.menuList
  2009. }, dropdownHeader !== undefined ? __jsx(MenuItem_default.a, {
  2010. onClick: () => handleClose(dropdownHeader),
  2011. className: classes.dropdownHeader
  2012. }, dropdownHeader) : null, dropdownList.map((prop, key) => {
  2013. if (prop.divider) {
  2014. return __jsx(Divider_default.a, {
  2015. key: key,
  2016. onClick: () => handleClose("divider"),
  2017. className: classes.dropdownDividerItem
  2018. });
  2019. }
  2020. return __jsx(MenuItem_default.a, {
  2021. key: key,
  2022. onClick: () => handleClose(prop),
  2023. className: dropdownItem
  2024. }, prop);
  2025. })))))));
  2026. }
  2027. CustomDropdown.defaultProps = {
  2028. caret: true,
  2029. hoverColor: "primary"
  2030. };
  2031. /***/ }),
  2032. /***/ "QzC/":
  2033. /***/ (function(module, exports) {
  2034. module.exports = require("react-swipeable-views");
  2035. /***/ }),
  2036. /***/ "SJC6":
  2037. /***/ (function(module, exports) {
  2038. module.exports = require("@material-ui/core/Tabs");
  2039. /***/ }),
  2040. /***/ "SuH/":
  2041. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2042. "use strict";
  2043. // EXPORTS
  2044. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ NavPills; });
  2045. // EXTERNAL MODULE: external "react"
  2046. var external_react_ = __webpack_require__("cDcd");
  2047. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2048. // EXTERNAL MODULE: external "classnames"
  2049. var external_classnames_ = __webpack_require__("K2gz");
  2050. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2051. // EXTERNAL MODULE: external "react-swipeable-views"
  2052. var external_react_swipeable_views_ = __webpack_require__("QzC/");
  2053. var external_react_swipeable_views_default = /*#__PURE__*/__webpack_require__.n(external_react_swipeable_views_);
  2054. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2055. var styles_ = __webpack_require__("9Pu4");
  2056. // EXTERNAL MODULE: external "@material-ui/core/Tabs"
  2057. var Tabs_ = __webpack_require__("SJC6");
  2058. var Tabs_default = /*#__PURE__*/__webpack_require__.n(Tabs_);
  2059. // EXTERNAL MODULE: external "@material-ui/core/Tab"
  2060. var Tab_ = __webpack_require__("6Yxu");
  2061. var Tab_default = /*#__PURE__*/__webpack_require__.n(Tab_);
  2062. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  2063. var GridContainer = __webpack_require__("mtPR");
  2064. // EXTERNAL MODULE: ./components/Grid/GridItem.js
  2065. var GridItem = __webpack_require__("i4t8");
  2066. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  2067. var nextjs_material_kit = __webpack_require__("eDSW");
  2068. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/navPillsStyle.js
  2069. const navPillsStyle = theme => ({
  2070. root: {
  2071. marginTop: "20px",
  2072. paddingLeft: "0",
  2073. marginBottom: "0",
  2074. overflow: "visible !important",
  2075. lineHeight: "24px",
  2076. textTransform: "uppercase",
  2077. fontSize: "12px",
  2078. fontWeight: "500",
  2079. position: "relative",
  2080. display: "block",
  2081. color: "inherit"
  2082. },
  2083. flexContainer: {
  2084. [theme.breakpoints.down("xs")]: {
  2085. display: "flex",
  2086. flexWrap: "wrap"
  2087. }
  2088. },
  2089. displayNone: {
  2090. display: "none !important"
  2091. },
  2092. fixed: {
  2093. overflow: "visible !important"
  2094. },
  2095. horizontalDisplay: {
  2096. display: "block"
  2097. },
  2098. pills: {
  2099. float: "left",
  2100. position: "relative",
  2101. display: "block",
  2102. borderRadius: "30px",
  2103. minWidth: "100px",
  2104. textAlign: "center",
  2105. transition: "all .3s",
  2106. padding: "10px 15px",
  2107. color: "#555555",
  2108. height: "auto",
  2109. opacity: "1",
  2110. maxWidth: "100%",
  2111. margin: "0 5px"
  2112. },
  2113. pillsWithIcons: {
  2114. borderRadius: "4px"
  2115. },
  2116. tabIcon: {
  2117. width: "30px",
  2118. height: "30px",
  2119. display: "block",
  2120. margin: "15px 0 !important",
  2121. "&, & *": {
  2122. letterSpacing: "normal !important"
  2123. }
  2124. },
  2125. horizontalPills: {
  2126. width: "100%",
  2127. float: "none !important",
  2128. "& + button": {
  2129. margin: "10px 0"
  2130. }
  2131. },
  2132. contentWrapper: {
  2133. marginTop: "20px"
  2134. },
  2135. primary: {
  2136. "&,&:hover": {
  2137. color: "#FFFFFF",
  2138. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2139. 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)}`
  2140. }
  2141. },
  2142. info: {
  2143. "&,&:hover": {
  2144. color: "#FFFFFF",
  2145. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  2146. 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)}`
  2147. }
  2148. },
  2149. success: {
  2150. "&,&:hover": {
  2151. color: "#FFFFFF",
  2152. backgroundColor: nextjs_material_kit["u" /* successColor */],
  2153. 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)}`
  2154. }
  2155. },
  2156. warning: {
  2157. "&,&:hover": {
  2158. color: "#FFFFFF",
  2159. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  2160. 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)}`
  2161. }
  2162. },
  2163. danger: {
  2164. "&,&:hover": {
  2165. color: "#FFFFFF",
  2166. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  2167. 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)}`
  2168. }
  2169. },
  2170. rose: {
  2171. "&,&:hover": {
  2172. color: "#FFFFFF",
  2173. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  2174. 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)}`
  2175. }
  2176. },
  2177. alignCenter: {
  2178. alignItems: "center",
  2179. justifyContent: "center"
  2180. },
  2181. tabWrapper: {
  2182. color: "inherit",
  2183. position: "relative",
  2184. fontSize: "12px",
  2185. lineHeight: "24px",
  2186. fontWeight: "500",
  2187. textTransform: "uppercase",
  2188. "&,& *": {
  2189. letterSpacing: "normal"
  2190. }
  2191. }
  2192. });
  2193. /* harmony default export */ var components_navPillsStyle = (navPillsStyle);
  2194. // CONCATENATED MODULE: ./components/NavPills/NavPills.js
  2195. var __jsx = external_react_default.a.createElement;
  2196. 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); }
  2197. // nodejs library that concatenates classes
  2198. // nodejs library to set properties for components
  2199. // @material-ui/core components
  2200. // core components
  2201. const useStyles = Object(styles_["makeStyles"])(components_navPillsStyle);
  2202. function NavPills(props) {
  2203. const [active, setActive] = external_react_default.a.useState(props.active);
  2204. const handleChange = (event, active) => {
  2205. setActive(active);
  2206. };
  2207. const handleChangeIndex = index => {
  2208. setActive(index);
  2209. };
  2210. const classes = useStyles();
  2211. const {
  2212. tabs,
  2213. direction,
  2214. color,
  2215. horizontal,
  2216. alignCenter
  2217. } = props;
  2218. const flexContainerClasses = external_classnames_default()({
  2219. [classes.flexContainer]: true,
  2220. [classes.horizontalDisplay]: horizontal !== undefined
  2221. });
  2222. const tabButtons = __jsx(Tabs_default.a, {
  2223. classes: {
  2224. root: classes.root,
  2225. fixed: classes.fixed,
  2226. flexContainer: flexContainerClasses,
  2227. indicator: classes.displayNone
  2228. },
  2229. value: active,
  2230. onChange: handleChange,
  2231. centered: alignCenter
  2232. }, tabs.map((prop, key) => {
  2233. var icon = {};
  2234. if (prop.tabIcon !== undefined) {
  2235. icon["icon"] = __jsx(prop.tabIcon, {
  2236. className: classes.tabIcon
  2237. });
  2238. }
  2239. const pillsClasses = external_classnames_default()({
  2240. [classes.pills]: true,
  2241. [classes.horizontalPills]: horizontal !== undefined,
  2242. [classes.pillsWithIcons]: prop.tabIcon !== undefined
  2243. });
  2244. return __jsx(Tab_default.a, _extends({
  2245. label: prop.tabButton,
  2246. key: key
  2247. }, icon, {
  2248. classes: {
  2249. root: pillsClasses,
  2250. selected: classes[color],
  2251. wrapper: classes.tabWrapper
  2252. }
  2253. }));
  2254. }));
  2255. const tabContent = __jsx("div", {
  2256. className: classes.contentWrapper
  2257. }, __jsx(external_react_swipeable_views_default.a, {
  2258. axis: direction === "rtl" ? "x-reverse" : "x",
  2259. index: active,
  2260. onChangeIndex: handleChangeIndex
  2261. }, tabs.map((prop, key) => {
  2262. return __jsx("div", {
  2263. className: classes.tabContent,
  2264. key: key
  2265. }, prop.tabContent);
  2266. })));
  2267. 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);
  2268. }
  2269. NavPills.defaultProps = {
  2270. active: 0,
  2271. color: "primary"
  2272. };
  2273. /***/ }),
  2274. /***/ "UVoM":
  2275. /***/ (function(module, exports) {
  2276. module.exports = require("@material-ui/core/Typography");
  2277. /***/ }),
  2278. /***/ "UsYt":
  2279. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2280. "use strict";
  2281. // EXPORTS
  2282. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CardBody; });
  2283. // EXTERNAL MODULE: external "react"
  2284. var external_react_ = __webpack_require__("cDcd");
  2285. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2286. // EXTERNAL MODULE: external "classnames"
  2287. var external_classnames_ = __webpack_require__("K2gz");
  2288. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2289. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2290. var styles_ = __webpack_require__("9Pu4");
  2291. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardBodyStyle.js
  2292. const cardBodyStyle = {
  2293. cardBody: {
  2294. padding: "0.9375rem 1.875rem",
  2295. flex: "1 1 auto"
  2296. }
  2297. };
  2298. /* harmony default export */ var components_cardBodyStyle = (cardBodyStyle);
  2299. // CONCATENATED MODULE: ./components/Card/CardBody.js
  2300. var __jsx = external_react_default.a.createElement;
  2301. 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); }
  2302. 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; }
  2303. 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; }
  2304. // nodejs library that concatenates classes
  2305. // nodejs library to set properties for components
  2306. // @material-ui/core components
  2307. // @material-ui/icons
  2308. // core components
  2309. const useStyles = Object(styles_["makeStyles"])(components_cardBodyStyle);
  2310. function CardBody(props) {
  2311. const classes = useStyles();
  2312. const {
  2313. className,
  2314. children
  2315. } = props,
  2316. rest = _objectWithoutProperties(props, ["className", "children"]);
  2317. const cardBodyClasses = external_classnames_default()({
  2318. [classes.cardBody]: true,
  2319. [className]: className !== undefined
  2320. });
  2321. return __jsx("div", _extends({
  2322. className: cardBodyClasses
  2323. }, rest), children);
  2324. }
  2325. /***/ }),
  2326. /***/ "Vjj2":
  2327. /***/ (function(module, exports) {
  2328. module.exports = require("cookies");
  2329. /***/ }),
  2330. /***/ "VuiC":
  2331. /***/ (function(module, exports) {
  2332. module.exports = require("@material-ui/core/Accordion");
  2333. /***/ }),
  2334. /***/ "Wh1t":
  2335. /***/ (function(module, exports) {
  2336. module.exports = require("@material-ui/core/Button");
  2337. /***/ }),
  2338. /***/ "Y8uC":
  2339. /***/ (function(module, exports) {
  2340. module.exports = require("@material-ui/core/Hidden");
  2341. /***/ }),
  2342. /***/ "YFqc":
  2343. /***/ (function(module, exports, __webpack_require__) {
  2344. module.exports = __webpack_require__("cTJO")
  2345. /***/ }),
  2346. /***/ "YTqd":
  2347. /***/ (function(module, exports, __webpack_require__) {
  2348. "use strict";
  2349. Object.defineProperty(exports, "__esModule", {
  2350. value: true
  2351. }); // this isn't importing the escape-string-regex module
  2352. // to reduce bytes
  2353. function escapeRegex(str) {
  2354. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  2355. }
  2356. function getRouteRegex(normalizedRoute) {
  2357. // Escape all characters that could be considered RegEx
  2358. const escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  2359. const groups = {};
  2360. let groupIndex = 1;
  2361. const parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2362. const isCatchAll = /^(\\\.){3}/.test($1);
  2363. groups[$1 // Un-escape key
  2364. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  2365. ] = {
  2366. pos: groupIndex++,
  2367. repeat: isCatchAll
  2368. };
  2369. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  2370. });
  2371. let namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  2372. // while generating routes-manifest
  2373. if (true) {
  2374. namedParameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2375. const isCatchAll = /^(\\\.){3}/.test($1);
  2376. const key = $1 // Un-escape key
  2377. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '');
  2378. return isCatchAll ? `/(?<${escapeRegex(key)}>.+?)` : `/(?<${escapeRegex(key)}>[^/]+?)`;
  2379. });
  2380. }
  2381. return Object.assign({
  2382. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  2383. groups
  2384. }, namedParameterizedRoute ? {
  2385. namedRegex: `^${namedParameterizedRoute}(?:/)?$`
  2386. } : {});
  2387. }
  2388. exports.getRouteRegex = getRouteRegex;
  2389. /***/ }),
  2390. /***/ "Yd04":
  2391. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2392. "use strict";
  2393. // ESM COMPAT FLAG
  2394. __webpack_require__.r(__webpack_exports__);
  2395. // EXPORTS
  2396. __webpack_require__.d(__webpack_exports__, "getServerSideProps", function() { return /* binding */ getServerSideProps; });
  2397. // EXTERNAL MODULE: external "react"
  2398. var external_react_ = __webpack_require__("cDcd");
  2399. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2400. // EXTERNAL MODULE: external "classnames"
  2401. var external_classnames_ = __webpack_require__("K2gz");
  2402. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2403. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2404. var styles_ = __webpack_require__("9Pu4");
  2405. // EXTERNAL MODULE: ./components/Header/Header.js + 1 modules
  2406. var Header = __webpack_require__("8x5e");
  2407. // EXTERNAL MODULE: ./components/Header/HeaderLinks.js
  2408. var HeaderLinks = __webpack_require__("8E12");
  2409. // EXTERNAL MODULE: ./components/Parallax/Parallax.js + 1 modules
  2410. var Parallax = __webpack_require__("Z2Lm");
  2411. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/components.js
  2412. var components = __webpack_require__("bhG4");
  2413. // EXTERNAL MODULE: ./components/Footer/Footer.js
  2414. var Footer = __webpack_require__("HXcA");
  2415. // EXTERNAL MODULE: ./api/profile/profile.js
  2416. var profile_profile = __webpack_require__("2VNI");
  2417. var profile_default = /*#__PURE__*/__webpack_require__.n(profile_profile);
  2418. // EXTERNAL MODULE: external "@material-ui/icons/Dashboard"
  2419. var Dashboard_ = __webpack_require__("vFf/");
  2420. var Dashboard_default = /*#__PURE__*/__webpack_require__.n(Dashboard_);
  2421. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  2422. var GridContainer = __webpack_require__("mtPR");
  2423. // EXTERNAL MODULE: ./components/Grid/GridItem.js
  2424. var GridItem = __webpack_require__("i4t8");
  2425. // EXTERNAL MODULE: ./components/NavPills/NavPills.js + 1 modules
  2426. var NavPills = __webpack_require__("SuH/");
  2427. // EXTERNAL MODULE: ./components/Card/Card.js + 1 modules
  2428. var Card = __webpack_require__("A2So");
  2429. // EXTERNAL MODULE: ./components/Card/CardBody.js + 1 modules
  2430. var CardBody = __webpack_require__("UsYt");
  2431. // EXTERNAL MODULE: ./components/Card/CardHeader.js + 1 modules
  2432. var CardHeader = __webpack_require__("2zww");
  2433. // EXTERNAL MODULE: external "@material-ui/core/Grid"
  2434. var Grid_ = __webpack_require__("JQ2V");
  2435. var Grid_default = /*#__PURE__*/__webpack_require__.n(Grid_);
  2436. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  2437. var Button = __webpack_require__("Kg+a");
  2438. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  2439. var Icon_ = __webpack_require__("7vM9");
  2440. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  2441. // EXTERNAL MODULE: ./components/CustomInput/CustomInput.js + 1 modules
  2442. var CustomInput = __webpack_require__("um8N");
  2443. // EXTERNAL MODULE: external "@material-ui/core/InputAdornment"
  2444. var InputAdornment_ = __webpack_require__("lj8g");
  2445. var InputAdornment_default = /*#__PURE__*/__webpack_require__.n(InputAdornment_);
  2446. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  2447. var Paper_ = __webpack_require__("qt1I");
  2448. // EXTERNAL MODULE: external "@material-ui/core/Accordion"
  2449. var Accordion_ = __webpack_require__("VuiC");
  2450. var Accordion_default = /*#__PURE__*/__webpack_require__.n(Accordion_);
  2451. // EXTERNAL MODULE: external "@material-ui/core/AccordionDetails"
  2452. var AccordionDetails_ = __webpack_require__("Jro0");
  2453. var AccordionDetails_default = /*#__PURE__*/__webpack_require__.n(AccordionDetails_);
  2454. // EXTERNAL MODULE: external "@material-ui/core/AccordionSummary"
  2455. var AccordionSummary_ = __webpack_require__("cVsR");
  2456. var AccordionSummary_default = /*#__PURE__*/__webpack_require__.n(AccordionSummary_);
  2457. // EXTERNAL MODULE: external "@material-ui/core/Typography"
  2458. var Typography_ = __webpack_require__("UVoM");
  2459. var Typography_default = /*#__PURE__*/__webpack_require__.n(Typography_);
  2460. // EXTERNAL MODULE: external "@material-ui/icons/ExpandMore"
  2461. var ExpandMore_ = __webpack_require__("3PpT");
  2462. var ExpandMore_default = /*#__PURE__*/__webpack_require__.n(ExpandMore_);
  2463. // EXTERNAL MODULE: external "react-swipeable-views"
  2464. var external_react_swipeable_views_ = __webpack_require__("QzC/");
  2465. var external_react_swipeable_views_default = /*#__PURE__*/__webpack_require__.n(external_react_swipeable_views_);
  2466. // EXTERNAL MODULE: external "@material-ui/core/AppBar"
  2467. var AppBar_ = __webpack_require__("4151");
  2468. var AppBar_default = /*#__PURE__*/__webpack_require__.n(AppBar_);
  2469. // EXTERNAL MODULE: external "@material-ui/core/Tabs"
  2470. var Tabs_ = __webpack_require__("SJC6");
  2471. var Tabs_default = /*#__PURE__*/__webpack_require__.n(Tabs_);
  2472. // EXTERNAL MODULE: external "@material-ui/core/Tab"
  2473. var Tab_ = __webpack_require__("6Yxu");
  2474. var Tab_default = /*#__PURE__*/__webpack_require__.n(Tab_);
  2475. // EXTERNAL MODULE: external "@material-ui/core/Box"
  2476. var Box_ = __webpack_require__("ZkBw");
  2477. var Box_default = /*#__PURE__*/__webpack_require__.n(Box_);
  2478. // EXTERNAL MODULE: external "@material-ui/core/Dialog"
  2479. var Dialog_ = __webpack_require__("fEgT");
  2480. var Dialog_default = /*#__PURE__*/__webpack_require__.n(Dialog_);
  2481. // EXTERNAL MODULE: external "@material-ui/core/DialogActions"
  2482. var DialogActions_ = __webpack_require__("1gBk");
  2483. var DialogActions_default = /*#__PURE__*/__webpack_require__.n(DialogActions_);
  2484. // EXTERNAL MODULE: external "@material-ui/core/DialogContent"
  2485. var DialogContent_ = __webpack_require__("iTUb");
  2486. var DialogContent_default = /*#__PURE__*/__webpack_require__.n(DialogContent_);
  2487. // EXTERNAL MODULE: external "@material-ui/core/DialogContentText"
  2488. var DialogContentText_ = __webpack_require__("MbIc");
  2489. var DialogContentText_default = /*#__PURE__*/__webpack_require__.n(DialogContentText_);
  2490. // EXTERNAL MODULE: external "@material-ui/core/DialogTitle"
  2491. var DialogTitle_ = __webpack_require__("0Jp5");
  2492. var DialogTitle_default = /*#__PURE__*/__webpack_require__.n(DialogTitle_);
  2493. // EXTERNAL MODULE: ./pages-sections/yamaha/profile/profile.css
  2494. var yamaha_profile_profile = __webpack_require__("+Hpm");
  2495. // EXTERNAL MODULE: ./assets/img/Group1.png
  2496. var Group1 = __webpack_require__("GRvL");
  2497. var Group1_default = /*#__PURE__*/__webpack_require__.n(Group1);
  2498. // EXTERNAL MODULE: ./pages/home.css
  2499. var home = __webpack_require__("M9IG");
  2500. // CONCATENATED MODULE: ./pages-sections/yamaha/profile/profile.js
  2501. var __jsx = external_react_default.a.createElement;
  2502. 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); }
  2503. 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; }
  2504. 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; }
  2505. const useStyles = Object(styles_["makeStyles"])(theme => ({
  2506. root: {
  2507. backgroundColor: theme.palette.background.paper,
  2508. width: '100%'
  2509. },
  2510. heading: {
  2511. fontSize: theme.typography.pxToRem(15),
  2512. flexBasis: '33.33%',
  2513. flexShrink: 0
  2514. },
  2515. secondaryHeading: {
  2516. fontSize: theme.typography.pxToRem(15),
  2517. color: theme.palette.text.secondary
  2518. }
  2519. }));
  2520. function TabPanel(props) {
  2521. const {
  2522. children,
  2523. value,
  2524. index
  2525. } = props,
  2526. other = _objectWithoutProperties(props, ["children", "value", "index"]);
  2527. return __jsx("div", _extends({
  2528. role: "tabpanel",
  2529. hidden: value !== index,
  2530. id: `full-width-tabpanel-${index}`,
  2531. "aria-labelledby": `full-width-tab-${index}`
  2532. }, other), value === index && __jsx(Box_default.a, {
  2533. p: 3
  2534. }, __jsx(Typography_default.a, null, children)));
  2535. }
  2536. function a11yProps(index) {
  2537. return {
  2538. id: `full-width-tab-${index}`,
  2539. 'aria-controls': `full-width-tabpanel-${index}`
  2540. };
  2541. }
  2542. const DataProfile = function (_ref) {
  2543. let {
  2544. profile,
  2545. user
  2546. } = _ref,
  2547. props = _objectWithoutProperties(_ref, ["profile", "user"]);
  2548. const classes = useStyles();
  2549. const [pass, setPass] = external_react_default.a.useState("");
  2550. const rest = Object.assign({}, props);
  2551. const imageClasses = external_classnames_default()(classes.imgRaised, classes.imgRoundedCircle, classes.imgFluid);
  2552. const navImageClasses = external_classnames_default()(classes.imgRounded, classes.imgGallery);
  2553. const theme = Object(styles_["useTheme"])();
  2554. const [value, setValue] = external_react_default.a.useState(0);
  2555. const handleChange = (event, newValue) => {
  2556. setValue(newValue);
  2557. };
  2558. const handleChangeIndex = index => {
  2559. setValue(index);
  2560. };
  2561. const [open, setOpen] = external_react_default.a.useState(false);
  2562. const [scroll, setScroll] = external_react_default.a.useState('paper');
  2563. const handleClickOpen = scrollType => () => {
  2564. setOpen(true);
  2565. setScroll(scrollType);
  2566. };
  2567. const handleClose = () => {
  2568. setOpen(false);
  2569. };
  2570. const descriptionElementRef = external_react_default.a.useRef(null);
  2571. external_react_default.a.useEffect(() => {
  2572. if (open) {
  2573. const {
  2574. current: descriptionElement
  2575. } = descriptionElementRef;
  2576. if (descriptionElement !== null) {
  2577. descriptionElement.focus();
  2578. }
  2579. }
  2580. }, [open]);
  2581. const AkunSaya = profile.map(data => {
  2582. const classes = useStyles();
  2583. const [expanded, setExpanded] = external_react_default.a.useState(false);
  2584. const handleChange = panel => (event, isExpanded) => {
  2585. setExpanded(isExpanded ? panel : false);
  2586. };
  2587. return __jsx("div", {
  2588. style: {
  2589. padding: "30px"
  2590. },
  2591. className: classes.root
  2592. }, __jsx(Accordion_default.a, {
  2593. expanded: expanded === 'panel1',
  2594. onChange: handleChange('panel1')
  2595. }, __jsx(AccordionSummary_default.a, {
  2596. expandIcon: __jsx(ExpandMore_default.a, null),
  2597. "aria-controls": "panel1bh-content",
  2598. id: "panel1bh-header"
  2599. }, __jsx(Typography_default.a, {
  2600. className: classes.heading
  2601. }, __jsx("strong", null, "Profil Saya")), __jsx(Typography_default.a, {
  2602. className: classes.secondaryHeading
  2603. }, __jsx("strong", null, "Kelola informasi profil Anda untuk mengontrol, melindungi dan mengamankan akun"))), __jsx(AccordionDetails_default.a, null, __jsx(Typography_default.a, null, __jsx(Grid_default.a, {
  2604. container: "container"
  2605. }, __jsx(Grid_default.a, {
  2606. item: "item",
  2607. xs: 12
  2608. }, __jsx("hr", null)), __jsx(Grid_default.a, {
  2609. container: "container",
  2610. style: {
  2611. padding: "10px"
  2612. }
  2613. }, __jsx(Grid_default.a, {
  2614. item: true,
  2615. xs: true
  2616. }, "Username"), __jsx(Grid_default.a, {
  2617. item: true,
  2618. xs: true
  2619. }, __jsx("div", {
  2620. align: "left"
  2621. }, ": ", data.username)), __jsx(Grid_default.a, {
  2622. item: true,
  2623. xs: true
  2624. }), __jsx(Grid_default.a, {
  2625. item: true,
  2626. xs: true
  2627. })), __jsx(Grid_default.a, {
  2628. container: "container",
  2629. style: {
  2630. padding: "10px"
  2631. }
  2632. }, __jsx(Grid_default.a, {
  2633. item: true,
  2634. xs: true
  2635. }, "Nama"), __jsx(Grid_default.a, {
  2636. item: true,
  2637. xs: true
  2638. }, __jsx("div", {
  2639. align: "left"
  2640. }, ": ", data.firstName)), __jsx(Grid_default.a, {
  2641. item: true,
  2642. xs: true
  2643. }), __jsx(Grid_default.a, {
  2644. item: true,
  2645. xs: true
  2646. })), __jsx(Grid_default.a, {
  2647. container: "container",
  2648. style: {
  2649. padding: "10px"
  2650. }
  2651. }, __jsx(Grid_default.a, {
  2652. item: true,
  2653. xs: true
  2654. }, "Email"), __jsx(Grid_default.a, {
  2655. item: true,
  2656. xs: true
  2657. }, __jsx("div", {
  2658. align: "left"
  2659. }, ": ", data.email)), __jsx(Grid_default.a, {
  2660. item: true,
  2661. xs: true
  2662. }), __jsx(Grid_default.a, {
  2663. item: true,
  2664. xs: true
  2665. })), __jsx(Grid_default.a, {
  2666. container: "container",
  2667. style: {
  2668. padding: "10px"
  2669. }
  2670. }, __jsx(Grid_default.a, {
  2671. item: true,
  2672. xs: true
  2673. }, "Tanggal Lahir"), __jsx(Grid_default.a, {
  2674. item: true,
  2675. xs: true
  2676. }, __jsx("div", {
  2677. align: "left"
  2678. }, ": 15 Mei 1998")), __jsx(Grid_default.a, {
  2679. item: true,
  2680. xs: true
  2681. }), __jsx(Grid_default.a, {
  2682. item: true,
  2683. xs: true
  2684. })), __jsx(Grid_default.a, {
  2685. container: "container",
  2686. style: {
  2687. padding: "10px"
  2688. }
  2689. }, __jsx(Grid_default.a, {
  2690. item: true,
  2691. xs: true
  2692. }, "Jenis Kelamin"), __jsx(Grid_default.a, {
  2693. item: true,
  2694. xs: true
  2695. }, __jsx("div", {
  2696. align: "left"
  2697. }, ": Laki - Laki")), __jsx(Grid_default.a, {
  2698. item: true,
  2699. xs: true
  2700. }), __jsx(Grid_default.a, {
  2701. item: true,
  2702. xs: true
  2703. })), __jsx(Grid_default.a, {
  2704. container: "container",
  2705. style: {
  2706. padding: "10px"
  2707. }
  2708. }, __jsx(Grid_default.a, {
  2709. item: true,
  2710. xs: true
  2711. }, "Nomer Telpon"), __jsx(Grid_default.a, {
  2712. item: true,
  2713. xs: true
  2714. }, __jsx("div", {
  2715. align: "left"
  2716. }, ": ", data.telp)), __jsx(Grid_default.a, {
  2717. item: true,
  2718. xs: true
  2719. }), __jsx(Grid_default.a, {
  2720. item: true,
  2721. xs: true
  2722. })), __jsx(Grid_default.a, {
  2723. container: "container",
  2724. style: {
  2725. padding: "10px"
  2726. }
  2727. }, __jsx(Grid_default.a, {
  2728. item: true,
  2729. xs: true
  2730. }, "Alamat"), __jsx(Grid_default.a, {
  2731. item: true,
  2732. xs: true
  2733. }, __jsx("div", {
  2734. align: "left"
  2735. }, ": ", data.address)), __jsx(Grid_default.a, {
  2736. item: true,
  2737. xs: true
  2738. }), __jsx(Grid_default.a, {
  2739. item: true,
  2740. xs: true
  2741. })), __jsx(Button["a" /* default */], {
  2742. color: "info",
  2743. round: "round",
  2744. href: "/yamaha/profile/edit-profile?s=" + data.id
  2745. }, __jsx(Icon_default.a, {
  2746. className: classes.icons
  2747. }, "open_in_new"), "Edit Profile"))))), __jsx(Accordion_default.a, {
  2748. expanded: expanded === 'panel3',
  2749. onChange: handleChange('panel3')
  2750. }, __jsx(AccordionSummary_default.a, {
  2751. expandIcon: __jsx(ExpandMore_default.a, null),
  2752. "aria-controls": "panel3bh-content",
  2753. id: "panel3bh-header"
  2754. }, __jsx(Typography_default.a, {
  2755. className: classes.heading
  2756. }, __jsx("strong", null, "Ubah Password Saya")), __jsx(Typography_default.a, {
  2757. className: classes.secondaryHeading
  2758. }, __jsx("strong", null, "Kelola Password Saya Untuk Meningkatkan Keamanan Akun Anda"))), __jsx(AccordionDetails_default.a, null, __jsx(Typography_default.a, null, __jsx(Grid_default.a, {
  2759. container: "container"
  2760. }, __jsx(Grid_default.a, {
  2761. item: true,
  2762. xs: true
  2763. }, __jsx("hr", null)), __jsx(Grid_default.a, {
  2764. container: "container",
  2765. style: {
  2766. padding: "10px"
  2767. }
  2768. }, __jsx(Grid_default.a, {
  2769. container: "container",
  2770. style: {
  2771. padding: "10px"
  2772. }
  2773. }, __jsx(Grid_default.a, {
  2774. item: true,
  2775. xs: 3
  2776. }, "Password Saat Ini"), __jsx(Grid_default.a, {
  2777. item: true,
  2778. xs: 9
  2779. }, ":", __jsx("div", {
  2780. align: "left"
  2781. }, __jsx(CustomInput["a" /* default */], {
  2782. labelText: "Password Saat Ini",
  2783. id: "pass",
  2784. value: pass,
  2785. formControlProps: {
  2786. fullWidth: true
  2787. },
  2788. inputProps: {
  2789. onChange: event => setPass(event.target.value),
  2790. type: "password",
  2791. endAdornment: __jsx(InputAdornment_default.a, {
  2792. position: "end"
  2793. }, __jsx(Icon_default.a, {
  2794. className: classes.inputIconsColor
  2795. }, "lock_outline")),
  2796. autoComplete: "off"
  2797. }
  2798. }))))), __jsx(Grid_default.a, {
  2799. container: "container",
  2800. style: {
  2801. padding: "10px"
  2802. }
  2803. }, __jsx(Grid_default.a, {
  2804. item: true,
  2805. xs: 3
  2806. }, "Password Baru"), __jsx(Grid_default.a, {
  2807. item: true,
  2808. xs: 9
  2809. }, ":", __jsx("div", {
  2810. align: "left"
  2811. }, __jsx(CustomInput["a" /* default */], {
  2812. labelText: "Masukan Password Baru Anda",
  2813. id: "pass",
  2814. value: pass,
  2815. formControlProps: {
  2816. fullWidth: true
  2817. },
  2818. inputProps: {
  2819. onChange: event => setPass(event.target.value),
  2820. type: "password",
  2821. endAdornment: __jsx(InputAdornment_default.a, {
  2822. position: "end"
  2823. }, __jsx(Icon_default.a, {
  2824. className: classes.inputIconsColor
  2825. }, "lock_outline")),
  2826. autoComplete: "off"
  2827. }
  2828. })))), __jsx(Grid_default.a, {
  2829. container: "container",
  2830. style: {
  2831. padding: "10px"
  2832. }
  2833. }, __jsx(Grid_default.a, {
  2834. item: true,
  2835. xs: 3
  2836. }, "Confirm Password"), __jsx(Grid_default.a, {
  2837. item: true,
  2838. xs: 9
  2839. }, ":", __jsx("div", {
  2840. align: "left"
  2841. }, __jsx(CustomInput["a" /* default */], {
  2842. labelText: "Masukan Kembali Password Anda",
  2843. id: "pass",
  2844. value: pass,
  2845. formControlProps: {
  2846. fullWidth: true
  2847. },
  2848. inputProps: {
  2849. onChange: event => setPass(event.target.value),
  2850. type: "password",
  2851. endAdornment: __jsx(InputAdornment_default.a, {
  2852. position: "end"
  2853. }, __jsx(Icon_default.a, {
  2854. className: classes.inputIconsColor
  2855. }, "lock_outline")),
  2856. autoComplete: "off"
  2857. }
  2858. })))), __jsx(Button["a" /* default */], {
  2859. color: "info",
  2860. round: "round",
  2861. href: "/yamaha/product/product_detail?s=" + data.id
  2862. }, __jsx(Icon_default.a, {
  2863. className: classes.icons
  2864. }, "open_in_new"), "Simpan"))))));
  2865. });
  2866. const Notifikasi = profile.map(data => {
  2867. const classes = useStyles();
  2868. const [expanded, setExpanded] = external_react_default.a.useState(false);
  2869. const handleChange = panel => (event, isExpanded) => {
  2870. setExpanded(isExpanded ? panel : false);
  2871. };
  2872. return __jsx("div", {
  2873. style: {
  2874. padding: "30px"
  2875. },
  2876. className: classes.root
  2877. }, __jsx(Accordion_default.a, {
  2878. expanded: expanded === 'panel1',
  2879. onChange: handleChange('panel1')
  2880. }, __jsx(AccordionSummary_default.a, {
  2881. expandIcon: __jsx(ExpandMore_default.a, null),
  2882. "aria-controls": "panel1bh-content",
  2883. id: "panel1bh-header"
  2884. }, __jsx(Typography_default.a, {
  2885. className: classes.heading
  2886. }, __jsx("strong", null, "Profil Saya")), __jsx(Typography_default.a, {
  2887. className: classes.secondaryHeading
  2888. }, __jsx("strong", null, "Kelola informasi profil Anda untuk mengontrol, melindungi dan mengamankan akun"))), __jsx(AccordionDetails_default.a, null, __jsx(Typography_default.a, null, __jsx(Grid_default.a, {
  2889. container: "container"
  2890. }, __jsx(Grid_default.a, {
  2891. item: "item",
  2892. xs: 12
  2893. }, __jsx("hr", null)), __jsx(Grid_default.a, {
  2894. container: "container",
  2895. style: {
  2896. padding: "10px"
  2897. }
  2898. }, __jsx(Grid_default.a, {
  2899. item: true,
  2900. xs: true
  2901. }, "Username"), __jsx(Grid_default.a, {
  2902. item: true,
  2903. xs: true
  2904. }, __jsx("div", {
  2905. align: "left"
  2906. }, ": ", data.username)), __jsx(Grid_default.a, {
  2907. item: true,
  2908. xs: true
  2909. }), __jsx(Grid_default.a, {
  2910. item: true,
  2911. xs: true
  2912. })), __jsx(Grid_default.a, {
  2913. container: "container",
  2914. style: {
  2915. padding: "10px"
  2916. }
  2917. }, __jsx(Grid_default.a, {
  2918. item: true,
  2919. xs: true
  2920. }, "Nama"), __jsx(Grid_default.a, {
  2921. item: true,
  2922. xs: true
  2923. }, __jsx("div", {
  2924. align: "left"
  2925. }, ": ", data.firstName)), __jsx(Grid_default.a, {
  2926. item: true,
  2927. xs: true
  2928. }), __jsx(Grid_default.a, {
  2929. item: true,
  2930. xs: true
  2931. })), __jsx(Grid_default.a, {
  2932. container: "container",
  2933. style: {
  2934. padding: "10px"
  2935. }
  2936. }, __jsx(Grid_default.a, {
  2937. item: true,
  2938. xs: true
  2939. }, "Email"), __jsx(Grid_default.a, {
  2940. item: true,
  2941. xs: true
  2942. }, __jsx("div", {
  2943. align: "left"
  2944. }, ": ", data.email)), __jsx(Grid_default.a, {
  2945. item: true,
  2946. xs: true
  2947. }), __jsx(Grid_default.a, {
  2948. item: true,
  2949. xs: true
  2950. })), __jsx(Grid_default.a, {
  2951. container: "container",
  2952. style: {
  2953. padding: "10px"
  2954. }
  2955. }, __jsx(Grid_default.a, {
  2956. item: true,
  2957. xs: true
  2958. }, "Tanggal Lahir"), __jsx(Grid_default.a, {
  2959. item: true,
  2960. xs: true
  2961. }, __jsx("div", {
  2962. align: "left"
  2963. }, ": 15 Mei 1998")), __jsx(Grid_default.a, {
  2964. item: true,
  2965. xs: true
  2966. }), __jsx(Grid_default.a, {
  2967. item: true,
  2968. xs: true
  2969. })), __jsx(Grid_default.a, {
  2970. container: "container",
  2971. style: {
  2972. padding: "10px"
  2973. }
  2974. }, __jsx(Grid_default.a, {
  2975. item: true,
  2976. xs: true
  2977. }, "Jenis Kelamin"), __jsx(Grid_default.a, {
  2978. item: true,
  2979. xs: true
  2980. }, __jsx("div", {
  2981. align: "left"
  2982. }, ": Laki - Laki")), __jsx(Grid_default.a, {
  2983. item: true,
  2984. xs: true
  2985. }), __jsx(Grid_default.a, {
  2986. item: true,
  2987. xs: true
  2988. })), __jsx(Grid_default.a, {
  2989. container: "container",
  2990. style: {
  2991. padding: "10px"
  2992. }
  2993. }, __jsx(Grid_default.a, {
  2994. item: true,
  2995. xs: true
  2996. }, "Nomer Telpon"), __jsx(Grid_default.a, {
  2997. item: true,
  2998. xs: true
  2999. }, __jsx("div", {
  3000. align: "left"
  3001. }, ": ", data.telp)), __jsx(Grid_default.a, {
  3002. item: true,
  3003. xs: true
  3004. }), __jsx(Grid_default.a, {
  3005. item: true,
  3006. xs: true
  3007. })), __jsx(Grid_default.a, {
  3008. container: "container",
  3009. style: {
  3010. padding: "10px"
  3011. }
  3012. }, __jsx(Grid_default.a, {
  3013. item: true,
  3014. xs: true
  3015. }, "Alamat"), __jsx(Grid_default.a, {
  3016. item: true,
  3017. xs: true
  3018. }, __jsx("div", {
  3019. align: "left"
  3020. }, ": ", data.address)), __jsx(Grid_default.a, {
  3021. item: true,
  3022. xs: true
  3023. }), __jsx(Grid_default.a, {
  3024. item: true,
  3025. xs: true
  3026. })), __jsx(Button["a" /* default */], {
  3027. color: "info",
  3028. round: "round",
  3029. href: "/yamaha/profile/edit-profile?s=" + data.id
  3030. }, __jsx(Icon_default.a, {
  3031. className: classes.icons
  3032. }, "open_in_new"), "Edit Profile"))))), __jsx(Accordion_default.a, {
  3033. expanded: expanded === 'panel3',
  3034. onChange: handleChange('panel3')
  3035. }, __jsx(AccordionSummary_default.a, {
  3036. expandIcon: __jsx(ExpandMore_default.a, null),
  3037. "aria-controls": "panel3bh-content",
  3038. id: "panel3bh-header"
  3039. }, __jsx(Typography_default.a, {
  3040. className: classes.heading
  3041. }, __jsx("strong", null, "Ubah Password Saya")), __jsx(Typography_default.a, {
  3042. className: classes.secondaryHeading
  3043. }, __jsx("strong", null, "Kelola Password Saya Untuk Meningkatkan Keamanan Akun Anda"))), __jsx(AccordionDetails_default.a, null, __jsx(Typography_default.a, null, __jsx(Grid_default.a, {
  3044. container: "container"
  3045. }, __jsx(Grid_default.a, {
  3046. item: true,
  3047. xs: true
  3048. }, __jsx("hr", null)), __jsx(Grid_default.a, {
  3049. container: "container",
  3050. style: {
  3051. padding: "10px"
  3052. }
  3053. }, __jsx(Grid_default.a, {
  3054. container: "container",
  3055. style: {
  3056. padding: "10px"
  3057. }
  3058. }, __jsx(Grid_default.a, {
  3059. item: true,
  3060. xs: 3
  3061. }, "Password Saat Ini"), __jsx(Grid_default.a, {
  3062. item: true,
  3063. xs: 9
  3064. }, ":", __jsx("div", {
  3065. align: "left"
  3066. }, __jsx(CustomInput["a" /* default */], {
  3067. labelText: "Password Saat Ini",
  3068. id: "pass",
  3069. value: pass,
  3070. formControlProps: {
  3071. fullWidth: true
  3072. },
  3073. inputProps: {
  3074. onChange: event => setPass(event.target.value),
  3075. type: "password",
  3076. endAdornment: __jsx(InputAdornment_default.a, {
  3077. position: "end"
  3078. }, __jsx(Icon_default.a, {
  3079. className: classes.inputIconsColor
  3080. }, "lock_outline")),
  3081. autoComplete: "off"
  3082. }
  3083. }))))), __jsx(Grid_default.a, {
  3084. container: "container",
  3085. style: {
  3086. padding: "10px"
  3087. }
  3088. }, __jsx(Grid_default.a, {
  3089. item: true,
  3090. xs: 3
  3091. }, "Password Baru"), __jsx(Grid_default.a, {
  3092. item: true,
  3093. xs: 9
  3094. }, ":", __jsx("div", {
  3095. align: "left"
  3096. }, __jsx(CustomInput["a" /* default */], {
  3097. labelText: "Masukan Password Baru Anda",
  3098. id: "pass",
  3099. value: pass,
  3100. formControlProps: {
  3101. fullWidth: true
  3102. },
  3103. inputProps: {
  3104. onChange: event => setPass(event.target.value),
  3105. type: "password",
  3106. endAdornment: __jsx(InputAdornment_default.a, {
  3107. position: "end"
  3108. }, __jsx(Icon_default.a, {
  3109. className: classes.inputIconsColor
  3110. }, "lock_outline")),
  3111. autoComplete: "off"
  3112. }
  3113. })))), __jsx(Grid_default.a, {
  3114. container: "container",
  3115. style: {
  3116. padding: "10px"
  3117. }
  3118. }, __jsx(Grid_default.a, {
  3119. item: true,
  3120. xs: 3
  3121. }, "Confirm Password"), __jsx(Grid_default.a, {
  3122. item: true,
  3123. xs: 9
  3124. }, ":", __jsx("div", {
  3125. align: "left"
  3126. }, __jsx(CustomInput["a" /* default */], {
  3127. labelText: "Masukan Kembali Password Anda",
  3128. id: "pass",
  3129. value: pass,
  3130. formControlProps: {
  3131. fullWidth: true
  3132. },
  3133. inputProps: {
  3134. onChange: event => setPass(event.target.value),
  3135. type: "password",
  3136. endAdornment: __jsx(InputAdornment_default.a, {
  3137. position: "end"
  3138. }, __jsx(Icon_default.a, {
  3139. className: classes.inputIconsColor
  3140. }, "lock_outline")),
  3141. autoComplete: "off"
  3142. }
  3143. })))), __jsx(Button["a" /* default */], {
  3144. color: "info",
  3145. round: "round",
  3146. href: "/yamaha/product/product_detail?s=" + data.id
  3147. }, __jsx(Icon_default.a, {
  3148. className: classes.icons
  3149. }, "open_in_new"), "Simpan"))))));
  3150. });
  3151. const Voucher = profile.map(data => {
  3152. return __jsx("div", {
  3153. style: {
  3154. padding: "30px"
  3155. },
  3156. className: classes.root
  3157. }, __jsx("div", {
  3158. className: classes.root
  3159. }, __jsx(AppBar_default.a, {
  3160. position: "static",
  3161. color: "default"
  3162. }, __jsx(Tabs_default.a, {
  3163. value: value,
  3164. onChange: handleChange,
  3165. indicatorColor: "primary",
  3166. textColor: "primary",
  3167. variant: "fullWidth",
  3168. "aria-label": "full width tabs example"
  3169. }, __jsx(Tab_default.a, _extends({
  3170. label: "Semua"
  3171. }, a11yProps(0))), __jsx(Tab_default.a, _extends({
  3172. label: "Terbaru"
  3173. }, a11yProps(1))), __jsx(Tab_default.a, _extends({
  3174. label: "Terpopuler"
  3175. }, a11yProps(2))), __jsx(Tab_default.a, _extends({
  3176. label: "Segera Berakhir"
  3177. }, a11yProps(3))))), __jsx(external_react_swipeable_views_default.a, {
  3178. axis: theme.direction === 'rtl' ? 'x-reverse' : 'x',
  3179. index: value,
  3180. onChangeIndex: handleChangeIndex
  3181. }, __jsx(TabPanel, {
  3182. value: value,
  3183. index: 0,
  3184. dir: theme.direction
  3185. }, __jsx("div", {
  3186. className: classes.root,
  3187. align: "center"
  3188. }, __jsx(Grid_default.a, {
  3189. container: true,
  3190. spacing: 3
  3191. }, __jsx(Grid_default.a, {
  3192. item: true,
  3193. xs: 6
  3194. }, __jsx("div", {
  3195. className: "container"
  3196. }, __jsx("img", {
  3197. alt: "...",
  3198. style: {
  3199. width: "500px",
  3200. display: "block"
  3201. },
  3202. src: Group1_default.a,
  3203. className: navImageClasses
  3204. }), __jsx("p", {
  3205. className: "name"
  3206. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3207. className: "valid"
  3208. }, "s/d: 19.09.2021"), __jsx("a", {
  3209. href: "#",
  3210. target: "_blank",
  3211. className: "used"
  3212. }, "Pakai Voucher"), __jsx("a", {
  3213. onClick: handleClickOpen('paper'),
  3214. className: "sk"
  3215. }, "S&K"), __jsx(Dialog_default.a, {
  3216. open: open,
  3217. onClose: handleClose,
  3218. scroll: scroll,
  3219. "aria-labelledby": "scroll-dialog-title",
  3220. "aria-describedby": "scroll-dialog-description"
  3221. }, __jsx(DialogTitle_default.a, {
  3222. id: "scroll-dialog-title"
  3223. }, "Syarat & Ketentuan Penggunaan Voucher"), __jsx(DialogContent_default.a, {
  3224. dividers: scroll === 'paper'
  3225. }, __jsx(DialogContentText_default.a, {
  3226. id: "scroll-dialog-description",
  3227. ref: descriptionElementRef,
  3228. tabIndex: -1
  3229. }, __jsx("div", {
  3230. className: "container"
  3231. }, __jsx("img", {
  3232. alt: "...",
  3233. style: {
  3234. width: "500px",
  3235. display: "block"
  3236. },
  3237. src: Group1_default.a,
  3238. className: navImageClasses
  3239. }), __jsx("p", {
  3240. className: "name"
  3241. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3242. className: "valid"
  3243. }, "s/d: 19.09.2021")), __jsx("h4", {
  3244. className: "text"
  3245. }, __jsx("strong", null, "Promosi")), __jsx("br", null), __jsx("p", {
  3246. style: {
  3247. marginTop: "-30px"
  3248. }
  3249. }, "Voucher Gratis Ongkir"), __jsx("h4", {
  3250. className: "text"
  3251. }, __jsx("strong", null, "Masa Berlaku")), __jsx("br", null), __jsx("p", {
  3252. style: {
  3253. marginTop: "-30px"
  3254. }
  3255. }, "13.09.2021 00:00 - 19.09.2021 23:59"), __jsx("h4", {
  3256. className: "text"
  3257. }, __jsx("strong", null, "Produk")), __jsx("br", null), __jsx("p", {
  3258. style: {
  3259. marginTop: "-30px"
  3260. }
  3261. }, "Produk bertanda Gratis Ongkir di E-Commerce Yamaha"), __jsx("h4", {
  3262. className: "text"
  3263. }, __jsx("strong", null, "Metode Pembayaran")), __jsx("br", null), __jsx("p", {
  3264. style: {
  3265. marginTop: "-30px"
  3266. }
  3267. }, "Semua metode pembayaran"), __jsx("h4", {
  3268. className: "text"
  3269. }, __jsx("strong", null, "S&K")), __jsx("br", null), __jsx("p", {
  3270. style: {
  3271. marginTop: "-30px"
  3272. }
  3273. }, "Voucher Gratis Ongkir ini berlaku untuk semua toko berlogo Gratis Ongkir di E-Commerce Yamaha. Berlaku pada 13-19 September 2021 WIB sesuai ketentuan berikut : -- 1. Semua toko bertanda Gratis Ongkir dengan menggunakan pengiriman Reguler atau Hemat dengan min. belanja 30RB dan potongan s/d 10RB untuk pengiriman ke Area Sumatera Selatan dan Bengkulu. 2. Semua toko bertanda Gratis Ongkir dengan menggunakan pengiriman Reguler atau Hemat dengan min. belanja 30RB dan potongan s/d 25RB untuk pengiriman ke Sumatera Selatan. 3. Semua toko bertanda Gratis Ongkir dengan menggunakan pengiriman Reguler atau Hemat dengan min. belanja 30RB dan potongan s/d 30RB untuk pengiriman ke Sumatera Selatan dan Bengkulu -- Cek S&K selengkapnya di halaman Gratis Ongkir E-Commerce Yamaha. Dengan menggunakan Voucher ini, Anda telah menyetujui Syarat Layanan E-Commerce Yamaha."))), __jsx(DialogActions_default.a, null, __jsx(Button["a" /* default */], {
  3274. onClick: handleClose,
  3275. color: "primary"
  3276. }, "Cancel"), __jsx(Button["a" /* default */], {
  3277. onClick: handleClose,
  3278. color: "primary"
  3279. }, "Subscribe"))))), __jsx(Grid_default.a, {
  3280. item: true,
  3281. xs: 6
  3282. }, __jsx("div", {
  3283. className: "container"
  3284. }, __jsx("img", {
  3285. alt: "...",
  3286. style: {
  3287. width: "500px",
  3288. display: "block"
  3289. },
  3290. src: Group1_default.a,
  3291. className: navImageClasses
  3292. }), __jsx("p", {
  3293. className: "name"
  3294. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3295. className: "valid"
  3296. }, "s/d: 19.09.2021"), __jsx("a", {
  3297. href: "#",
  3298. target: "_blank",
  3299. className: "used"
  3300. }, "Pakai Voucher"), __jsx("a", {
  3301. href: "#",
  3302. target: "_blank",
  3303. className: "sk"
  3304. }, "S&K")))), __jsx(Grid_default.a, {
  3305. container: true,
  3306. spacing: 3
  3307. }, __jsx(Grid_default.a, {
  3308. item: true,
  3309. xs: 6
  3310. }, __jsx("div", {
  3311. className: "container"
  3312. }, __jsx("img", {
  3313. alt: "...",
  3314. style: {
  3315. width: "500px",
  3316. display: "block"
  3317. },
  3318. src: Group1_default.a,
  3319. className: navImageClasses
  3320. }), __jsx("p", {
  3321. className: "name"
  3322. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3323. className: "valid"
  3324. }, "s/d: 19.09.2021"), __jsx("a", {
  3325. href: "#",
  3326. target: "_blank",
  3327. className: "used"
  3328. }, "Pakai Voucher"), __jsx("a", {
  3329. href: "#",
  3330. target: "_blank",
  3331. className: "sk"
  3332. }, "S&K"))), __jsx(Grid_default.a, {
  3333. item: true,
  3334. xs: 6
  3335. }, __jsx("div", {
  3336. className: "container"
  3337. }, __jsx("img", {
  3338. alt: "...",
  3339. style: {
  3340. width: "500px",
  3341. display: "block"
  3342. },
  3343. src: Group1_default.a,
  3344. className: navImageClasses
  3345. }), __jsx("p", {
  3346. className: "name"
  3347. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3348. className: "valid"
  3349. }, "s/d: 19.09.2021"), __jsx("a", {
  3350. href: "#",
  3351. target: "_blank",
  3352. className: "used"
  3353. }, "Pakai Voucher"), __jsx("a", {
  3354. href: "#",
  3355. target: "_blank",
  3356. className: "sk"
  3357. }, "S&K")))))), __jsx(TabPanel, {
  3358. value: value,
  3359. index: 1,
  3360. dir: theme.direction
  3361. }, __jsx("div", {
  3362. className: classes.root,
  3363. align: "center"
  3364. }, __jsx(Grid_default.a, {
  3365. container: true,
  3366. spacing: 3
  3367. }, __jsx(Grid_default.a, {
  3368. item: true,
  3369. xs: 6
  3370. }, __jsx("div", {
  3371. className: "container"
  3372. }, __jsx("img", {
  3373. alt: "...",
  3374. style: {
  3375. width: "500px",
  3376. display: "block"
  3377. },
  3378. src: Group1_default.a,
  3379. className: navImageClasses
  3380. }), __jsx("p", {
  3381. className: "name"
  3382. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3383. className: "valid"
  3384. }, "s/d: 19.09.2021"), __jsx("a", {
  3385. href: "#",
  3386. target: "_blank",
  3387. className: "used"
  3388. }, "Pakai Voucher"), __jsx("a", {
  3389. href: "#",
  3390. target: "_blank",
  3391. className: "sk"
  3392. }, "S&K"))), __jsx(Grid_default.a, {
  3393. item: true,
  3394. xs: 6
  3395. }, __jsx("div", {
  3396. className: "container"
  3397. }, __jsx("img", {
  3398. alt: "...",
  3399. style: {
  3400. width: "500px",
  3401. display: "block"
  3402. },
  3403. src: Group1_default.a,
  3404. className: navImageClasses
  3405. }), __jsx("p", {
  3406. className: "name"
  3407. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3408. className: "valid"
  3409. }, "s/d: 19.09.2021"), __jsx("a", {
  3410. href: "#",
  3411. target: "_blank",
  3412. className: "used"
  3413. }, "Pakai Voucher"), __jsx("a", {
  3414. href: "#",
  3415. target: "_blank",
  3416. className: "sk"
  3417. }, "S&K")))), __jsx(Grid_default.a, {
  3418. container: true,
  3419. spacing: 3
  3420. }, __jsx(Grid_default.a, {
  3421. item: true,
  3422. xs: 6
  3423. }, __jsx("div", {
  3424. className: "container"
  3425. }, __jsx("img", {
  3426. alt: "...",
  3427. style: {
  3428. width: "500px",
  3429. display: "block"
  3430. },
  3431. src: Group1_default.a,
  3432. className: navImageClasses
  3433. }), __jsx("p", {
  3434. className: "name"
  3435. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3436. className: "valid"
  3437. }, "s/d: 19.09.2021"), __jsx("a", {
  3438. href: "#",
  3439. target: "_blank",
  3440. className: "used"
  3441. }, "Pakai Voucher"), __jsx("a", {
  3442. href: "#",
  3443. target: "_blank",
  3444. className: "sk"
  3445. }, "S&K"))), __jsx(Grid_default.a, {
  3446. item: true,
  3447. xs: 6
  3448. }, __jsx("div", {
  3449. className: "container"
  3450. }, __jsx("img", {
  3451. alt: "...",
  3452. style: {
  3453. width: "500px",
  3454. display: "block"
  3455. },
  3456. src: Group1_default.a,
  3457. className: navImageClasses
  3458. }), __jsx("p", {
  3459. className: "name"
  3460. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3461. className: "valid"
  3462. }, "s/d: 19.09.2021"), __jsx("a", {
  3463. href: "#",
  3464. target: "_blank",
  3465. className: "used"
  3466. }, "Pakai Voucher"), __jsx("a", {
  3467. href: "#",
  3468. target: "_blank",
  3469. className: "sk"
  3470. }, "S&K")))))), __jsx(TabPanel, {
  3471. value: value,
  3472. index: 2,
  3473. dir: theme.direction
  3474. }, __jsx("div", {
  3475. className: classes.root,
  3476. align: "center"
  3477. }, __jsx(Grid_default.a, {
  3478. container: true,
  3479. spacing: 3
  3480. }, __jsx(Grid_default.a, {
  3481. item: true,
  3482. xs: 6
  3483. }, __jsx("div", {
  3484. className: "container"
  3485. }, __jsx("img", {
  3486. alt: "...",
  3487. style: {
  3488. width: "500px",
  3489. display: "block"
  3490. },
  3491. src: Group1_default.a,
  3492. className: navImageClasses
  3493. }), __jsx("p", {
  3494. className: "name"
  3495. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3496. className: "valid"
  3497. }, "s/d: 19.09.2021"), __jsx("a", {
  3498. href: "#",
  3499. target: "_blank",
  3500. className: "used"
  3501. }, "Pakai Voucher"), __jsx("a", {
  3502. href: "#",
  3503. target: "_blank",
  3504. className: "sk"
  3505. }, "S&K"))), __jsx(Grid_default.a, {
  3506. item: true,
  3507. xs: 6
  3508. }, __jsx("div", {
  3509. className: "container"
  3510. }, __jsx("img", {
  3511. alt: "...",
  3512. style: {
  3513. width: "500px",
  3514. display: "block"
  3515. },
  3516. src: Group1_default.a,
  3517. className: navImageClasses
  3518. }), __jsx("p", {
  3519. className: "name"
  3520. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3521. className: "valid"
  3522. }, "s/d: 19.09.2021"), __jsx("a", {
  3523. href: "#",
  3524. target: "_blank",
  3525. className: "used"
  3526. }, "Pakai Voucher"), __jsx("a", {
  3527. href: "#",
  3528. target: "_blank",
  3529. className: "sk"
  3530. }, "S&K")))), __jsx(Grid_default.a, {
  3531. container: true,
  3532. spacing: 3
  3533. }, __jsx(Grid_default.a, {
  3534. item: true,
  3535. xs: 6
  3536. }, __jsx("div", {
  3537. className: "container"
  3538. }, __jsx("img", {
  3539. alt: "...",
  3540. style: {
  3541. width: "500px",
  3542. display: "block"
  3543. },
  3544. src: Group1_default.a,
  3545. className: navImageClasses
  3546. }), __jsx("p", {
  3547. className: "name"
  3548. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3549. className: "valid"
  3550. }, "s/d: 19.09.2021"), __jsx("a", {
  3551. href: "#",
  3552. target: "_blank",
  3553. className: "used"
  3554. }, "Pakai Voucher"), __jsx("a", {
  3555. href: "#",
  3556. target: "_blank",
  3557. className: "sk"
  3558. }, "S&K"))), __jsx(Grid_default.a, {
  3559. item: true,
  3560. xs: 6
  3561. }, __jsx("div", {
  3562. className: "container"
  3563. }, __jsx("img", {
  3564. alt: "...",
  3565. style: {
  3566. width: "500px",
  3567. display: "block"
  3568. },
  3569. src: Group1_default.a,
  3570. className: navImageClasses
  3571. }), __jsx("p", {
  3572. className: "name"
  3573. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3574. className: "valid"
  3575. }, "s/d: 19.09.2021"), __jsx("a", {
  3576. href: "#",
  3577. target: "_blank",
  3578. className: "used"
  3579. }, "Pakai Voucher"), __jsx("a", {
  3580. href: "#",
  3581. target: "_blank",
  3582. className: "sk"
  3583. }, "S&K")))))), __jsx(TabPanel, {
  3584. value: value,
  3585. index: 3,
  3586. dir: theme.direction
  3587. }, __jsx("div", {
  3588. className: classes.root,
  3589. align: "center"
  3590. }, __jsx(Grid_default.a, {
  3591. container: true,
  3592. spacing: 3
  3593. }, __jsx(Grid_default.a, {
  3594. item: true,
  3595. xs: 6
  3596. }, __jsx("div", {
  3597. className: "container"
  3598. }, __jsx("img", {
  3599. alt: "...",
  3600. style: {
  3601. width: "500px",
  3602. display: "block"
  3603. },
  3604. src: Group1_default.a,
  3605. className: navImageClasses
  3606. }), __jsx("p", {
  3607. className: "name"
  3608. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3609. className: "valid"
  3610. }, "s/d: 19.09.2021"), __jsx("a", {
  3611. href: "#",
  3612. target: "_blank",
  3613. className: "used"
  3614. }, "Pakai Voucher"), __jsx("a", {
  3615. href: "#",
  3616. target: "_blank",
  3617. className: "sk"
  3618. }, "S&K"))), __jsx(Grid_default.a, {
  3619. item: true,
  3620. xs: 6
  3621. }, __jsx("div", {
  3622. className: "container"
  3623. }, __jsx("img", {
  3624. alt: "...",
  3625. style: {
  3626. width: "500px",
  3627. display: "block"
  3628. },
  3629. src: Group1_default.a,
  3630. className: navImageClasses
  3631. }), __jsx("p", {
  3632. className: "name"
  3633. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3634. className: "valid"
  3635. }, "s/d: 19.09.2021"), __jsx("a", {
  3636. href: "#",
  3637. target: "_blank",
  3638. className: "used"
  3639. }, "Pakai Voucher"), __jsx("a", {
  3640. href: "#",
  3641. target: "_blank",
  3642. className: "sk"
  3643. }, "S&K")))), __jsx(Grid_default.a, {
  3644. container: true,
  3645. spacing: 3
  3646. }, __jsx(Grid_default.a, {
  3647. item: true,
  3648. xs: 6
  3649. }, __jsx("div", {
  3650. className: "container"
  3651. }, __jsx("img", {
  3652. alt: "...",
  3653. style: {
  3654. width: "500px",
  3655. display: "block"
  3656. },
  3657. src: Group1_default.a,
  3658. className: navImageClasses
  3659. }), __jsx("p", {
  3660. className: "name"
  3661. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3662. className: "valid"
  3663. }, "s/d: 19.09.2021"), __jsx("a", {
  3664. href: "#",
  3665. target: "_blank",
  3666. className: "used"
  3667. }, "Pakai Voucher"), __jsx("a", {
  3668. href: "#",
  3669. target: "_blank",
  3670. className: "sk"
  3671. }, "S&K"))), __jsx(Grid_default.a, {
  3672. item: true,
  3673. xs: 6
  3674. }, __jsx("div", {
  3675. className: "container"
  3676. }, __jsx("img", {
  3677. alt: "...",
  3678. style: {
  3679. width: "500px",
  3680. display: "block"
  3681. },
  3682. src: Group1_default.a,
  3683. className: navImageClasses
  3684. }), __jsx("p", {
  3685. className: "name"
  3686. }, __jsx("strong", null, "Voucher Gratis Ongkir")), __jsx("br", null), __jsx("p", {
  3687. className: "valid"
  3688. }, "s/d: 19.09.2021"), __jsx("a", {
  3689. href: "#",
  3690. target: "_blank",
  3691. className: "used"
  3692. }, "Pakai Voucher"), __jsx("a", {
  3693. href: "#",
  3694. target: "_blank",
  3695. className: "sk"
  3696. }, "S&K")))))))));
  3697. });
  3698. return __jsx("div", null, __jsx(Card["a" /* default */], {
  3699. className: classes.textCenter
  3700. }, __jsx("div", {
  3701. align: "center"
  3702. }, __jsx(CardHeader["a" /* default */], {
  3703. color: "info"
  3704. }, __jsx("b", null, "Profile"))), __jsx(CardBody["a" /* default */], null, __jsx("div", {
  3705. align: "center"
  3706. }, __jsx("h2", null, __jsx("b", null, "Profile & User Management"))), __jsx(GridContainer["a" /* default */], {
  3707. justify: "center"
  3708. }, __jsx(GridItem["a" /* default */], null, __jsx(NavPills["a" /* default */], {
  3709. alignCenter: true,
  3710. color: "primary",
  3711. tabs: [{
  3712. tabButton: "Akun Saya",
  3713. tabIcon: Dashboard_default.a,
  3714. tabContent: __jsx(GridContainer["a" /* default */], {
  3715. justify: "center"
  3716. }, AkunSaya)
  3717. }, {
  3718. tabButton: "Notifikasi",
  3719. tabIcon: Dashboard_default.a,
  3720. tabContent: __jsx(GridContainer["a" /* default */], {
  3721. justify: "center"
  3722. }, Notifikasi)
  3723. }, {
  3724. tabButton: "Voucher Saya",
  3725. tabIcon: Dashboard_default.a,
  3726. tabContent: __jsx(GridContainer["a" /* default */], {
  3727. justify: "center"
  3728. }, Voucher)
  3729. }]
  3730. }))))), __jsx("a", {
  3731. href: "https://wa.me/+6287797315685",
  3732. class: "float",
  3733. target: "_blank"
  3734. }, __jsx("i", {
  3735. class: "fa fa-whatsapp my-float"
  3736. })));
  3737. };
  3738. /* harmony default export */ var pages_sections_yamaha_profile_profile = (DataProfile);
  3739. // EXTERNAL MODULE: external "cookies"
  3740. var external_cookies_ = __webpack_require__("Vjj2");
  3741. var external_cookies_default = /*#__PURE__*/__webpack_require__.n(external_cookies_);
  3742. // CONCATENATED MODULE: ./pages/yamaha/profile/profile.js
  3743. var profile_jsx = external_react_default.a.createElement;
  3744. function profile_extends() { profile_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 profile_extends.apply(this, arguments); }
  3745. 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; }
  3746. 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; }
  3747. const profile_useStyles = Object(styles_["makeStyles"])(components["a" /* default */]);
  3748. const Profile = function (_ref) {
  3749. let {
  3750. user,
  3751. profile
  3752. } = _ref,
  3753. props = profile_objectWithoutProperties(_ref, ["user", "profile"]);
  3754. const classes = profile_useStyles();
  3755. const rest = Object.assign({}, props);
  3756. return profile_jsx("div", null, profile_jsx(Header["a" /* default */], profile_extends({
  3757. leftLinks: profile_jsx(HeaderLinks["a" /* default */], {
  3758. username: user
  3759. }),
  3760. fixed: true,
  3761. color: "info",
  3762. changeColorOnScroll: {
  3763. height: 400,
  3764. color: "white"
  3765. }
  3766. }, rest)), profile_jsx(Parallax["a" /* default */], {
  3767. image: __webpack_require__("l+AL"),
  3768. styles: {
  3769. marginTop: "50px"
  3770. }
  3771. }), profile_jsx("div", {
  3772. className: external_classnames_default()(classes.main, classes.mainRaised)
  3773. }, profile_jsx(pages_sections_yamaha_profile_profile, {
  3774. profile: profile
  3775. })), profile_jsx(Footer["a" /* default */], null));
  3776. };
  3777. async function getServerSideProps(context) {
  3778. var profile = [];
  3779. var res = await profile_default.a.profile();
  3780. if (res["STATUS"] === 1) {
  3781. profile = res["DATA"]["users"];
  3782. }
  3783. var {
  3784. req,
  3785. resp
  3786. } = context;
  3787. const cookies = new external_cookies_default.a(req, resp);
  3788. var user = "";
  3789. var userObj = (await cookies.get("user")) ? JSON.parse(await cookies.get("user")) : null;
  3790. if (userObj) {
  3791. let sessionId = userObj["partners_login_states"].filter(function (i) {
  3792. return i.business_partner && i.business_partner.name.toUpperCase() == "YAMAHA";
  3793. });
  3794. if (sessionId.length != 0) user = userObj["username"];
  3795. }
  3796. return {
  3797. props: {
  3798. profile,
  3799. user
  3800. } // will be passed to the page component as props
  3801. };
  3802. }
  3803. /* harmony default export */ var pages_yamaha_profile_profile = __webpack_exports__["default"] = (Profile);
  3804. /***/ }),
  3805. /***/ "Z2Lm":
  3806. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3807. "use strict";
  3808. // EXPORTS
  3809. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Parallax; });
  3810. // EXTERNAL MODULE: external "react"
  3811. var external_react_ = __webpack_require__("cDcd");
  3812. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  3813. // EXTERNAL MODULE: external "classnames"
  3814. var external_classnames_ = __webpack_require__("K2gz");
  3815. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  3816. // EXTERNAL MODULE: external "@material-ui/core/styles"
  3817. var styles_ = __webpack_require__("9Pu4");
  3818. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/parallaxStyle.js
  3819. const parallaxStyle = theme => ({
  3820. parallax: {
  3821. height: "90vh",
  3822. maxHeight: "1000px",
  3823. overflow: "hidden",
  3824. position: "relative",
  3825. backgroundPosition: "center top",
  3826. backgroundSize: "cover",
  3827. margin: "0",
  3828. padding: "0",
  3829. border: "0",
  3830. display: "flex",
  3831. alignItems: "center"
  3832. },
  3833. filter: {
  3834. "&:before": {
  3835. background: "#212121"
  3836. },
  3837. "&:after,&:before": {
  3838. position: "absolute",
  3839. zIndex: "1",
  3840. width: "100%",
  3841. height: "100%",
  3842. display: "block",
  3843. left: "0",
  3844. top: "0",
  3845. content: "''"
  3846. }
  3847. },
  3848. small: {
  3849. height: "380px"
  3850. },
  3851. parallaxResponsive: {
  3852. [theme.breakpoints.down("md")]: {
  3853. minHeight: "660px"
  3854. }
  3855. }
  3856. });
  3857. /* harmony default export */ var components_parallaxStyle = (parallaxStyle);
  3858. // CONCATENATED MODULE: ./components/Parallax/Parallax.js
  3859. var __jsx = external_react_default.a.createElement;
  3860. 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; }
  3861. 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; }
  3862. 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; }
  3863. // nodejs library that concatenates classes
  3864. // nodejs library to set properties for components
  3865. // @material-ui/core components
  3866. // core components
  3867. const useStyles = Object(styles_["makeStyles"])(components_parallaxStyle);
  3868. function Parallax(props) {
  3869. let windowScrollTop; // if (window.innerWidth >= 768) {
  3870. // windowScrollTop = window.pageYOffset / 3;
  3871. // } else {
  3872. // windowScrollTop = 0;
  3873. // }
  3874. const [transform, setTransform] = external_react_default.a.useState("translate3d(0,0px,0)");
  3875. external_react_default.a.useEffect(() => {
  3876. if (window.innerWidth >= 768) {
  3877. window.addEventListener("scroll", resetTransform);
  3878. }
  3879. return function cleanup() {
  3880. if (window.innerWidth >= 768) {
  3881. window.removeEventListener("scroll", resetTransform);
  3882. }
  3883. };
  3884. });
  3885. const resetTransform = () => {
  3886. var windowScrollTop = window.pageYOffset / 3;
  3887. setTransform("translate3d(0," + windowScrollTop + "px,0)");
  3888. };
  3889. const {
  3890. filter,
  3891. className,
  3892. children,
  3893. style,
  3894. image,
  3895. small,
  3896. responsive
  3897. } = props;
  3898. const classes = useStyles();
  3899. const parallaxClasses = external_classnames_default()({
  3900. [classes.parallax]: true,
  3901. [classes.filter]: filter,
  3902. [classes.small]: small,
  3903. [classes.parallaxResponsive]: responsive,
  3904. [className]: className !== undefined
  3905. });
  3906. return __jsx("div", {
  3907. className: parallaxClasses,
  3908. style: _objectSpread({}, style, {
  3909. backgroundImage: "url(" + image + ")",
  3910. transform: transform
  3911. })
  3912. }, children);
  3913. }
  3914. /***/ }),
  3915. /***/ "ZkBw":
  3916. /***/ (function(module, exports) {
  3917. module.exports = require("@material-ui/core/Box");
  3918. /***/ }),
  3919. /***/ "bhG4":
  3920. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3921. "use strict";
  3922. /* harmony import */ var _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  3923. const componentsStyle = {
  3924. container: _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  3925. brand: {
  3926. color: "#FFFFFF",
  3927. textAlign: "left"
  3928. },
  3929. title: {
  3930. fontSize: "4.2rem",
  3931. fontWeight: "600",
  3932. display: "inline-block",
  3933. position: "relative"
  3934. },
  3935. subtitle: {
  3936. fontSize: "1.313rem",
  3937. maxWidth: "510px",
  3938. margin: "10px 0 0"
  3939. },
  3940. main: {
  3941. background: "#FFFFFF",
  3942. position: "relative",
  3943. zIndex: "3"
  3944. },
  3945. mainRaised: {
  3946. margin: "-60px 30px 0px",
  3947. borderRadius: "6px",
  3948. 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)",
  3949. "@media (max-width: 830px)": {
  3950. marginLeft: "10px",
  3951. marginRight: "10px"
  3952. }
  3953. },
  3954. link: {
  3955. textDecoration: "none"
  3956. },
  3957. textCenter: {
  3958. textAlign: "center"
  3959. }
  3960. };
  3961. /* harmony default export */ __webpack_exports__["a"] = (componentsStyle);
  3962. /***/ }),
  3963. /***/ "bx/+":
  3964. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3965. "use strict";
  3966. __webpack_require__.r(__webpack_exports__);
  3967. // Apollo Value Configuration
  3968. const ApolloConfig = {
  3969. graphql_uri: process.env.API_GRAPHQL_URI
  3970. };
  3971. /* harmony default export */ __webpack_exports__["default"] = (ApolloConfig);
  3972. /***/ }),
  3973. /***/ "bzos":
  3974. /***/ (function(module, exports) {
  3975. module.exports = require("url");
  3976. /***/ }),
  3977. /***/ "c25J":
  3978. /***/ (function(module, exports) {
  3979. module.exports = require("@material-ui/core/ListItem");
  3980. /***/ }),
  3981. /***/ "cDcd":
  3982. /***/ (function(module, exports) {
  3983. module.exports = require("react");
  3984. /***/ }),
  3985. /***/ "cTJO":
  3986. /***/ (function(module, exports, __webpack_require__) {
  3987. "use strict";
  3988. var _interopRequireDefault = __webpack_require__("AroE");
  3989. var _interopRequireWildcard = __webpack_require__("7KCV");
  3990. exports.__esModule = true;
  3991. exports.default = void 0;
  3992. var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
  3993. var _url = __webpack_require__("bzos");
  3994. var _utils = __webpack_require__("kYf9");
  3995. var _router = _interopRequireDefault(__webpack_require__("nOHt"));
  3996. var _router2 = __webpack_require__("elyg");
  3997. function isLocal(href) {
  3998. var url = (0, _url.parse)(href, false, true);
  3999. var origin = (0, _url.parse)((0, _utils.getLocationOrigin)(), false, true);
  4000. return !url.host || url.protocol === origin.protocol && url.host === origin.host;
  4001. }
  4002. function memoizedFormatUrl(formatFunc) {
  4003. var lastHref = null;
  4004. var lastAs = null;
  4005. var lastResult = null;
  4006. return (href, as) => {
  4007. if (lastResult && href === lastHref && as === lastAs) {
  4008. return lastResult;
  4009. }
  4010. var result = formatFunc(href, as);
  4011. lastHref = href;
  4012. lastAs = as;
  4013. lastResult = result;
  4014. return result;
  4015. };
  4016. }
  4017. function formatUrl(url) {
  4018. return url && typeof url === 'object' ? (0, _utils.formatWithValidation)(url) : url;
  4019. }
  4020. var observer;
  4021. var listeners = new Map();
  4022. var IntersectionObserver = false ? undefined : null;
  4023. var prefetched = {};
  4024. function getObserver() {
  4025. // Return shared instance of IntersectionObserver if already created
  4026. if (observer) {
  4027. return observer;
  4028. } // Only create shared IntersectionObserver if supported in browser
  4029. if (!IntersectionObserver) {
  4030. return undefined;
  4031. }
  4032. return observer = new IntersectionObserver(entries => {
  4033. entries.forEach(entry => {
  4034. if (!listeners.has(entry.target)) {
  4035. return;
  4036. }
  4037. var cb = listeners.get(entry.target);
  4038. if (entry.isIntersecting || entry.intersectionRatio > 0) {
  4039. observer.unobserve(entry.target);
  4040. listeners.delete(entry.target);
  4041. cb();
  4042. }
  4043. });
  4044. }, {
  4045. rootMargin: '200px'
  4046. });
  4047. }
  4048. var listenToIntersections = (el, cb) => {
  4049. var observer = getObserver();
  4050. if (!observer) {
  4051. return () => {};
  4052. }
  4053. observer.observe(el);
  4054. listeners.set(el, cb);
  4055. return () => {
  4056. try {
  4057. observer.unobserve(el);
  4058. } catch (err) {
  4059. console.error(err);
  4060. }
  4061. listeners.delete(el);
  4062. };
  4063. };
  4064. class Link extends _react.Component {
  4065. constructor(props) {
  4066. super(props);
  4067. this.p = void 0;
  4068. this.cleanUpListeners = () => {};
  4069. this.formatUrls = memoizedFormatUrl((href, asHref) => {
  4070. return {
  4071. href: (0, _router2.addBasePath)(formatUrl(href)),
  4072. as: asHref ? (0, _router2.addBasePath)(formatUrl(asHref)) : asHref
  4073. };
  4074. });
  4075. this.linkClicked = e => {
  4076. var {
  4077. nodeName,
  4078. target
  4079. } = e.currentTarget;
  4080. if (nodeName === 'A' && (target && target !== '_self' || e.metaKey || e.ctrlKey || e.shiftKey || e.nativeEvent && e.nativeEvent.which === 2)) {
  4081. // ignore click for new tab / new window behavior
  4082. return;
  4083. }
  4084. var {
  4085. href,
  4086. as
  4087. } = this.formatUrls(this.props.href, this.props.as);
  4088. if (!isLocal(href)) {
  4089. // ignore click if it's outside our scope (e.g. https://google.com)
  4090. return;
  4091. }
  4092. var {
  4093. pathname
  4094. } = window.location;
  4095. href = (0, _url.resolve)(pathname, href);
  4096. as = as ? (0, _url.resolve)(pathname, as) : href;
  4097. e.preventDefault(); // avoid scroll for urls with anchor refs
  4098. var {
  4099. scroll
  4100. } = this.props;
  4101. if (scroll == null) {
  4102. scroll = as.indexOf('#') < 0;
  4103. } // replace state instead of push if prop is present
  4104. _router.default[this.props.replace ? 'replace' : 'push'](href, as, {
  4105. shallow: this.props.shallow
  4106. }).then(success => {
  4107. if (!success) return;
  4108. if (scroll) {
  4109. window.scrollTo(0, 0);
  4110. document.body.focus();
  4111. }
  4112. });
  4113. };
  4114. if (false) {}
  4115. this.p = props.prefetch !== false;
  4116. }
  4117. componentWillUnmount() {
  4118. this.cleanUpListeners();
  4119. }
  4120. getPaths() {
  4121. var {
  4122. pathname
  4123. } = window.location;
  4124. var {
  4125. href: parsedHref,
  4126. as: parsedAs
  4127. } = this.formatUrls(this.props.href, this.props.as);
  4128. var resolvedHref = (0, _url.resolve)(pathname, parsedHref);
  4129. return [resolvedHref, parsedAs ? (0, _url.resolve)(pathname, parsedAs) : resolvedHref];
  4130. }
  4131. handleRef(ref) {
  4132. if (this.p && IntersectionObserver && ref && ref.tagName) {
  4133. this.cleanUpListeners();
  4134. var isPrefetched = prefetched[this.getPaths().join( // Join on an invalid URI character
  4135. '%')];
  4136. if (!isPrefetched) {
  4137. this.cleanUpListeners = listenToIntersections(ref, () => {
  4138. this.prefetch();
  4139. });
  4140. }
  4141. }
  4142. } // The function is memoized so that no extra lifecycles are needed
  4143. // as per https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
  4144. prefetch(options) {
  4145. if (!this.p || true) return; // Prefetch the JSON page if asked (only in the client)
  4146. var paths = this.getPaths(); // We need to handle a prefetch error here since we may be
  4147. // loading with priority which can reject but we don't
  4148. // want to force navigation since this is only a prefetch
  4149. _router.default.prefetch(paths[
  4150. /* href */
  4151. 0], paths[
  4152. /* asPath */
  4153. 1], options).catch(err => {
  4154. if (false) {}
  4155. });
  4156. prefetched[paths.join( // Join on an invalid URI character
  4157. '%')] = true;
  4158. }
  4159. render() {
  4160. var {
  4161. children
  4162. } = this.props;
  4163. var {
  4164. href,
  4165. as
  4166. } = 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
  4167. if (typeof children === 'string') {
  4168. children = _react.default.createElement("a", null, children);
  4169. } // This will return the first child, if multiple are provided it will throw an error
  4170. var child = _react.Children.only(children);
  4171. var props = {
  4172. ref: el => {
  4173. this.handleRef(el);
  4174. if (child && typeof child === 'object' && child.ref) {
  4175. if (typeof child.ref === 'function') child.ref(el);else if (typeof child.ref === 'object') {
  4176. child.ref.current = el;
  4177. }
  4178. }
  4179. },
  4180. onMouseEnter: e => {
  4181. if (child.props && typeof child.props.onMouseEnter === 'function') {
  4182. child.props.onMouseEnter(e);
  4183. }
  4184. this.prefetch({
  4185. priority: true
  4186. });
  4187. },
  4188. onClick: e => {
  4189. if (child.props && typeof child.props.onClick === 'function') {
  4190. child.props.onClick(e);
  4191. }
  4192. if (!e.defaultPrevented) {
  4193. this.linkClicked(e);
  4194. }
  4195. }
  4196. }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
  4197. // defined, we specify the current 'href', so that repetition is not needed by the user
  4198. if (this.props.passHref || child.type === 'a' && !('href' in child.props)) {
  4199. props.href = as || href;
  4200. } // Add the ending slash to the paths. So, we can serve the
  4201. // "<page>/index.html" directly.
  4202. if (false) { var rewriteUrlForNextExport; }
  4203. return _react.default.cloneElement(child, props);
  4204. }
  4205. }
  4206. if (false) { var exact, PropTypes, warn; }
  4207. var _default = Link;
  4208. exports.default = _default;
  4209. /***/ }),
  4210. /***/ "cVsR":
  4211. /***/ (function(module, exports) {
  4212. module.exports = require("@material-ui/core/AccordionSummary");
  4213. /***/ }),
  4214. /***/ "dZ6Y":
  4215. /***/ (function(module, exports, __webpack_require__) {
  4216. "use strict";
  4217. /*
  4218. MIT License
  4219. Copyright (c) Jason Miller (https://jasonformat.com/)
  4220. 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:
  4221. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  4222. 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.
  4223. */
  4224. Object.defineProperty(exports, "__esModule", {
  4225. value: true
  4226. });
  4227. function mitt() {
  4228. const all = Object.create(null);
  4229. return {
  4230. on(type, handler) {
  4231. ;
  4232. (all[type] || (all[type] = [])).push(handler);
  4233. },
  4234. off(type, handler) {
  4235. if (all[type]) {
  4236. // tslint:disable-next-line:no-bitwise
  4237. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  4238. }
  4239. },
  4240. emit(type, ...evts) {
  4241. // eslint-disable-next-line array-callback-return
  4242. ;
  4243. (all[type] || []).slice().map(handler => {
  4244. handler(...evts);
  4245. });
  4246. }
  4247. };
  4248. }
  4249. exports.default = mitt;
  4250. /***/ }),
  4251. /***/ "eDSW":
  4252. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4253. "use strict";
  4254. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hexToRGBAlpha; });
  4255. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return drawerWidth; });
  4256. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return transition; });
  4257. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return container; });
  4258. /* unused harmony export conatinerFluid */
  4259. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return boxShadow; });
  4260. /* unused harmony export card */
  4261. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return defaultFont; });
  4262. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return primaryColor; });
  4263. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return warningColor; });
  4264. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return dangerColor; });
  4265. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return successColor; });
  4266. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return infoColor; });
  4267. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return roseColor; });
  4268. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return grayColor; });
  4269. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return primaryBoxShadow; });
  4270. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return infoBoxShadow; });
  4271. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return successBoxShadow; });
  4272. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return warningBoxShadow; });
  4273. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dangerBoxShadow; });
  4274. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return roseBoxShadow; });
  4275. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return warningCardHeader; });
  4276. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return successCardHeader; });
  4277. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dangerCardHeader; });
  4278. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return infoCardHeader; });
  4279. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return primaryCardHeader; });
  4280. /* unused harmony export roseCardHeader */
  4281. /* unused harmony export cardActions */
  4282. /* unused harmony export cardHeader */
  4283. /* unused harmony export defaultBoxShadow */
  4284. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return title; });
  4285. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cardTitle; });
  4286. /* unused harmony export cardLink */
  4287. /* unused harmony export cardSubtitle */
  4288. 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; }
  4289. 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; }
  4290. 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; }
  4291. const hexColorToRGB = function (hexColor) {
  4292. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  4293. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  4294. return r + r + g + g + b + b;
  4295. });
  4296. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  4297. return hex_array ? {
  4298. r: parseInt(hex_array[1], 16),
  4299. // 0-255
  4300. g: parseInt(hex_array[2], 16),
  4301. // 0-255
  4302. b: parseInt(hex_array[3], 16) // 0-255
  4303. } : null;
  4304. };
  4305. const hexToRGBAlpha = function (hexColor, alpha) {
  4306. let rgb = hexColorToRGB(hexColor);
  4307. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  4308. };
  4309. const drawerWidth = 260;
  4310. const transition = {
  4311. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  4312. };
  4313. const conatinerFluid = {
  4314. paddingRight: "15px",
  4315. paddingLeft: "15px",
  4316. marginRight: "auto",
  4317. marginLeft: "auto",
  4318. width: "100%"
  4319. };
  4320. const container = _objectSpread({}, conatinerFluid, {
  4321. "@media (min-width: 576px)": {
  4322. maxWidth: "540px"
  4323. },
  4324. "@media (min-width: 768px)": {
  4325. maxWidth: "720px"
  4326. },
  4327. "@media (min-width: 992px)": {
  4328. maxWidth: "960px"
  4329. },
  4330. "@media (min-width: 1200px)": {
  4331. maxWidth: "1140px"
  4332. }
  4333. });
  4334. const boxShadow = {
  4335. 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)"
  4336. };
  4337. const card = {
  4338. display: "inline-block",
  4339. position: "relative",
  4340. width: "100%",
  4341. margin: "25px 0",
  4342. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  4343. borderRadius: "3px",
  4344. color: "rgba(0, 0, 0, 0.87)",
  4345. background: "#fff"
  4346. };
  4347. const defaultFont = {
  4348. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  4349. fontWeight: "300",
  4350. lineHeight: "1.5em"
  4351. };
  4352. const primaryColor = "#212121";
  4353. const warningColor = "#ff9800";
  4354. const dangerColor = "#f44336";
  4355. const successColor = "#4caf50";
  4356. const infoColor = "#212121";
  4357. const roseColor = "#e91e63";
  4358. const grayColor = "#ffffff";
  4359. const primaryBoxShadow = {
  4360. 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)}`
  4361. };
  4362. const infoBoxShadow = {
  4363. 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)}`
  4364. };
  4365. const successBoxShadow = {
  4366. 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)}`
  4367. };
  4368. const warningBoxShadow = {
  4369. 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)}`
  4370. };
  4371. const dangerBoxShadow = {
  4372. 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)}`
  4373. };
  4374. const roseBoxShadow = {
  4375. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  4376. };
  4377. const warningCardHeader = _objectSpread({
  4378. color: "#fff",
  4379. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  4380. }, warningBoxShadow);
  4381. const successCardHeader = _objectSpread({
  4382. color: "#fff",
  4383. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  4384. }, successBoxShadow);
  4385. const dangerCardHeader = _objectSpread({
  4386. color: "#fff",
  4387. background: "linear-gradient(60deg, #ef5350, #e53935)"
  4388. }, dangerBoxShadow);
  4389. const infoCardHeader = _objectSpread({
  4390. color: "#fff",
  4391. background: "#212121"
  4392. }, infoBoxShadow);
  4393. const primaryCardHeader = _objectSpread({
  4394. color: "#fff",
  4395. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  4396. }, primaryBoxShadow);
  4397. const roseCardHeader = _objectSpread({
  4398. color: "#fff",
  4399. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  4400. }, roseBoxShadow);
  4401. const cardActions = _objectSpread({
  4402. margin: "0 20px 10px",
  4403. paddingTop: "10px",
  4404. borderTop: "1px solid #eeeeee",
  4405. height: "auto"
  4406. }, defaultFont);
  4407. const cardHeader = {
  4408. margin: "-30px 15px 0",
  4409. borderRadius: "3px",
  4410. padding: "15px"
  4411. };
  4412. const defaultBoxShadow = {
  4413. border: "0",
  4414. borderRadius: "3px",
  4415. 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)",
  4416. padding: "10px 0",
  4417. transition: "all 150ms ease 0s"
  4418. };
  4419. const title = {
  4420. color: "#ffffff",
  4421. margin: "1.75rem 0 0.875rem",
  4422. textDecoration: "none",
  4423. fontWeight: "700",
  4424. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  4425. };
  4426. const cardTitle = _objectSpread({}, title, {
  4427. marginTop: ".625rem"
  4428. });
  4429. const cardLink = {
  4430. "& + $cardLink": {
  4431. marginLeft: "1.25rem"
  4432. }
  4433. };
  4434. const cardSubtitle = {
  4435. marginBottom: "0",
  4436. marginTop: "-.375rem"
  4437. };
  4438. /***/ }),
  4439. /***/ "elyg":
  4440. /***/ (function(module, exports, __webpack_require__) {
  4441. "use strict";
  4442. var __importDefault = this && this.__importDefault || function (mod) {
  4443. return mod && mod.__esModule ? mod : {
  4444. "default": mod
  4445. };
  4446. };
  4447. Object.defineProperty(exports, "__esModule", {
  4448. value: true
  4449. });
  4450. const url_1 = __webpack_require__("bzos");
  4451. const mitt_1 = __importDefault(__webpack_require__("dZ6Y"));
  4452. const utils_1 = __webpack_require__("g/15");
  4453. const is_dynamic_1 = __webpack_require__("/jkW");
  4454. const route_matcher_1 = __webpack_require__("gguc");
  4455. const route_regex_1 = __webpack_require__("YTqd");
  4456. const basePath = false || '';
  4457. function addBasePath(path) {
  4458. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  4459. }
  4460. exports.addBasePath = addBasePath;
  4461. function delBasePath(path) {
  4462. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  4463. }
  4464. exports.delBasePath = delBasePath;
  4465. function toRoute(path) {
  4466. return path.replace(/\/$/, '') || '/';
  4467. }
  4468. const prepareRoute = path => toRoute(!path || path === '/' ? '/index' : path);
  4469. function fetchNextData(pathname, query, isServerRender, cb) {
  4470. let attempts = isServerRender ? 3 : 1;
  4471. function getResponse() {
  4472. return fetch(utils_1.formatWithValidation({
  4473. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  4474. `/_next/data/${__NEXT_DATA__.buildId}${delBasePath(pathname)}.json`),
  4475. query
  4476. }), {
  4477. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  4478. // Cookies may also be required for `getServerSideProps`.
  4479. //
  4480. // > `fetch` won’t send cookies, unless you set the credentials init
  4481. // > option.
  4482. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  4483. //
  4484. // > For maximum browser compatibility when it comes to sending &
  4485. // > receiving cookies, always supply the `credentials: 'same-origin'`
  4486. // > option instead of relying on the default.
  4487. // https://github.com/github/fetch#caveats
  4488. credentials: 'same-origin'
  4489. }).then(res => {
  4490. if (!res.ok) {
  4491. if (--attempts > 0 && res.status >= 500) {
  4492. return getResponse();
  4493. }
  4494. throw new Error(`Failed to load static props`);
  4495. }
  4496. return res.json();
  4497. });
  4498. }
  4499. return getResponse().then(data => {
  4500. return cb ? cb(data) : data;
  4501. }).catch(err => {
  4502. // We should only trigger a server-side transition if this was caused
  4503. // on a client-side transition. Otherwise, we'd get into an infinite
  4504. // loop.
  4505. if (!isServerRender) {
  4506. ;
  4507. err.code = 'PAGE_LOAD_ERROR';
  4508. }
  4509. throw err;
  4510. });
  4511. }
  4512. class Router {
  4513. constructor(pathname, query, as, {
  4514. initialProps,
  4515. pageLoader,
  4516. App,
  4517. wrapApp,
  4518. Component,
  4519. err,
  4520. subscription,
  4521. isFallback
  4522. }) {
  4523. // Static Data Cache
  4524. this.sdc = {};
  4525. this.onPopState = e => {
  4526. if (!e.state) {
  4527. // We get state as undefined for two reasons.
  4528. // 1. With older safari (< 8) and older chrome (< 34)
  4529. // 2. When the URL changed with #
  4530. //
  4531. // In the both cases, we don't need to proceed and change the route.
  4532. // (as it's already changed)
  4533. // But we can simply replace the state with the new changes.
  4534. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  4535. // So, doing the following for (1) does no harm.
  4536. const {
  4537. pathname,
  4538. query
  4539. } = this;
  4540. this.changeState('replaceState', utils_1.formatWithValidation({
  4541. pathname,
  4542. query
  4543. }), utils_1.getURL());
  4544. return;
  4545. } // Make sure we don't re-render on initial load,
  4546. // can be caused by navigating back from an external site
  4547. if (e.state && this.isSsr && e.state.as === this.asPath && url_1.parse(e.state.url).pathname === this.pathname) {
  4548. return;
  4549. } // If the downstream application returns falsy, return.
  4550. // They will then be responsible for handling the event.
  4551. if (this._bps && !this._bps(e.state)) {
  4552. return;
  4553. }
  4554. const {
  4555. url,
  4556. as,
  4557. options
  4558. } = e.state;
  4559. if (false) {}
  4560. this.replace(url, as, options);
  4561. };
  4562. this._getStaticData = asPath => {
  4563. const pathname = prepareRoute(url_1.parse(asPath).pathname);
  4564. return true && this.sdc[pathname] ? Promise.resolve(this.sdc[pathname]) : fetchNextData(pathname, null, this.isSsr, data => this.sdc[pathname] = data);
  4565. };
  4566. this._getServerData = asPath => {
  4567. let {
  4568. pathname,
  4569. query
  4570. } = url_1.parse(asPath, true);
  4571. pathname = prepareRoute(pathname);
  4572. return fetchNextData(pathname, query, this.isSsr);
  4573. }; // represents the current component key
  4574. this.route = toRoute(pathname); // set up the component cache (by route keys)
  4575. this.components = {}; // We should not keep the cache, if there's an error
  4576. // Otherwise, this cause issues when when going back and
  4577. // come again to the errored page.
  4578. if (pathname !== '/_error') {
  4579. this.components[this.route] = {
  4580. Component,
  4581. props: initialProps,
  4582. err,
  4583. __N_SSG: initialProps && initialProps.__N_SSG,
  4584. __N_SSP: initialProps && initialProps.__N_SSP
  4585. };
  4586. }
  4587. this.components['/_app'] = {
  4588. Component: App
  4589. }; // Backwards compat for Router.router.events
  4590. // TODO: Should be remove the following major version as it was never documented
  4591. this.events = Router.events;
  4592. this.pageLoader = pageLoader;
  4593. this.pathname = pathname;
  4594. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  4595. // until after mount to prevent hydration mismatch
  4596. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  4597. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  4598. this.basePath = basePath;
  4599. this.sub = subscription;
  4600. this.clc = null;
  4601. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  4602. // back from external site
  4603. this.isSsr = true;
  4604. this.isFallback = isFallback;
  4605. if (false) {}
  4606. } // @deprecated backwards compatibility even though it's a private method.
  4607. static _rewriteUrlForNextExport(url) {
  4608. if (false) {} else {
  4609. return url;
  4610. }
  4611. }
  4612. update(route, mod) {
  4613. const Component = mod.default || mod;
  4614. const data = this.components[route];
  4615. if (!data) {
  4616. throw new Error(`Cannot update unavailable route: ${route}`);
  4617. }
  4618. const newData = Object.assign(Object.assign({}, data), {
  4619. Component,
  4620. __N_SSG: mod.__N_SSG,
  4621. __N_SSP: mod.__N_SSP
  4622. });
  4623. this.components[route] = newData; // pages/_app.js updated
  4624. if (route === '/_app') {
  4625. this.notify(this.components[this.route]);
  4626. return;
  4627. }
  4628. if (route === this.route) {
  4629. this.notify(newData);
  4630. }
  4631. }
  4632. reload() {
  4633. window.location.reload();
  4634. }
  4635. /**
  4636. * Go back in history
  4637. */
  4638. back() {
  4639. window.history.back();
  4640. }
  4641. /**
  4642. * Performs a `pushState` with arguments
  4643. * @param url of the route
  4644. * @param as masks `url` for the browser
  4645. * @param options object you can define `shallow` and other options
  4646. */
  4647. push(url, as = url, options = {}) {
  4648. return this.change('pushState', url, as, options);
  4649. }
  4650. /**
  4651. * Performs a `replaceState` with arguments
  4652. * @param url of the route
  4653. * @param as masks `url` for the browser
  4654. * @param options object you can define `shallow` and other options
  4655. */
  4656. replace(url, as = url, options = {}) {
  4657. return this.change('replaceState', url, as, options);
  4658. }
  4659. change(method, _url, _as, options) {
  4660. return new Promise((resolve, reject) => {
  4661. if (!options._h) {
  4662. this.isSsr = false;
  4663. } // marking route changes as a navigation start entry
  4664. if (utils_1.ST) {
  4665. performance.mark('routeChange');
  4666. } // If url and as provided as an object representation,
  4667. // we'll format them into the string version here.
  4668. let url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  4669. let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  4670. url = addBasePath(url);
  4671. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  4672. // "<page>/index.html" directly for the SSR page.
  4673. if (false) {}
  4674. this.abortComponentLoad(as); // If the url change is only related to a hash change
  4675. // We should not proceed. We should only change the state.
  4676. // WARNING: `_h` is an internal option for handing Next.js client-side
  4677. // hydration. Your app should _never_ use this property. It may change at
  4678. // any time without notice.
  4679. if (!options._h && this.onlyAHashChange(as)) {
  4680. this.asPath = as;
  4681. Router.events.emit('hashChangeStart', as);
  4682. this.changeState(method, url, as, options);
  4683. this.scrollToHash(as);
  4684. Router.events.emit('hashChangeComplete', as);
  4685. return resolve(true);
  4686. }
  4687. const {
  4688. pathname,
  4689. query,
  4690. protocol
  4691. } = url_1.parse(url, true);
  4692. if (!pathname || protocol) {
  4693. if (false) {}
  4694. return resolve(false);
  4695. } // If asked to change the current URL we should reload the current page
  4696. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  4697. // We also need to set the method = replaceState always
  4698. // as this should not go into the history (That's how browsers work)
  4699. // We should compare the new asPath to the current asPath, not the url
  4700. if (!this.urlIsNew(as)) {
  4701. method = 'replaceState';
  4702. }
  4703. const route = toRoute(pathname);
  4704. const {
  4705. shallow = false
  4706. } = options;
  4707. if (is_dynamic_1.isDynamicRoute(route)) {
  4708. const {
  4709. pathname: asPathname
  4710. } = url_1.parse(as);
  4711. const routeRegex = route_regex_1.getRouteRegex(route);
  4712. const routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  4713. if (!routeMatch) {
  4714. const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
  4715. if (missingParams.length > 0) {
  4716. if (false) {}
  4717. 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`));
  4718. }
  4719. } else {
  4720. // Merge params into `query`, overwriting any specified in search
  4721. Object.assign(query, routeMatch);
  4722. }
  4723. }
  4724. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  4725. this.getRouteInfo(route, pathname, query, as, shallow).then(routeInfo => {
  4726. const {
  4727. error
  4728. } = routeInfo;
  4729. if (error && error.cancelled) {
  4730. return resolve(false);
  4731. }
  4732. Router.events.emit('beforeHistoryChange', as);
  4733. this.changeState(method, url, as, options);
  4734. if (false) {}
  4735. this.set(route, pathname, query, as, routeInfo);
  4736. if (error) {
  4737. Router.events.emit('routeChangeError', error, as);
  4738. throw error;
  4739. }
  4740. Router.events.emit('routeChangeComplete', as);
  4741. return resolve(true);
  4742. }, reject);
  4743. });
  4744. }
  4745. changeState(method, url, as, options = {}) {
  4746. if (false) {}
  4747. if (method !== 'pushState' || utils_1.getURL() !== as) {
  4748. window.history[method]({
  4749. url,
  4750. as,
  4751. options
  4752. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  4753. // Passing the empty string here should be safe against future changes to the method.
  4754. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  4755. '', as);
  4756. }
  4757. }
  4758. getRouteInfo(route, pathname, query, as, shallow = false) {
  4759. const cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  4760. // If the route is already rendered on the screen.
  4761. if (shallow && cachedRouteInfo && this.route === route) {
  4762. return Promise.resolve(cachedRouteInfo);
  4763. }
  4764. const handleError = (err, loadErrorFail) => {
  4765. return new Promise(resolve => {
  4766. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  4767. // If we can't load the page it could be one of following reasons
  4768. // 1. Page doesn't exists
  4769. // 2. Page does exist in a different zone
  4770. // 3. Internal error while loading the page
  4771. // So, doing a hard reload is the proper way to deal with this.
  4772. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  4773. // So, we need to mark it as a cancelled error and stop the routing logic.
  4774. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  4775. return resolve({
  4776. error: err
  4777. });
  4778. }
  4779. if (err.cancelled) {
  4780. // @ts-ignore TODO: fix the control flow here
  4781. return resolve({
  4782. error: err
  4783. });
  4784. }
  4785. resolve(this.fetchComponent('/_error').then(res => {
  4786. const {
  4787. page: Component
  4788. } = res;
  4789. const routeInfo = {
  4790. Component,
  4791. err
  4792. };
  4793. return new Promise(resolve => {
  4794. this.getInitialProps(Component, {
  4795. err,
  4796. pathname,
  4797. query
  4798. }).then(props => {
  4799. routeInfo.props = props;
  4800. routeInfo.error = err;
  4801. resolve(routeInfo);
  4802. }, gipErr => {
  4803. console.error('Error in error page `getInitialProps`: ', gipErr);
  4804. routeInfo.error = err;
  4805. routeInfo.props = {};
  4806. resolve(routeInfo);
  4807. });
  4808. });
  4809. }).catch(err => handleError(err, true)));
  4810. });
  4811. };
  4812. return new Promise((resolve, reject) => {
  4813. if (cachedRouteInfo) {
  4814. return resolve(cachedRouteInfo);
  4815. }
  4816. this.fetchComponent(route).then(res => resolve({
  4817. Component: res.page,
  4818. __N_SSG: res.mod.__N_SSG,
  4819. __N_SSP: res.mod.__N_SSP
  4820. }), reject);
  4821. }).then(routeInfo => {
  4822. const {
  4823. Component,
  4824. __N_SSG,
  4825. __N_SSP
  4826. } = routeInfo;
  4827. if (false) {}
  4828. 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`
  4829. {
  4830. pathname,
  4831. query,
  4832. asPath: as
  4833. })).then(props => {
  4834. routeInfo.props = props;
  4835. this.components[route] = routeInfo;
  4836. return routeInfo;
  4837. });
  4838. }).catch(handleError);
  4839. }
  4840. set(route, pathname, query, as, data) {
  4841. this.isFallback = false;
  4842. this.route = route;
  4843. this.pathname = pathname;
  4844. this.query = query;
  4845. this.asPath = as;
  4846. this.notify(data);
  4847. }
  4848. /**
  4849. * Callback to execute before replacing router state
  4850. * @param cb callback to be executed
  4851. */
  4852. beforePopState(cb) {
  4853. this._bps = cb;
  4854. }
  4855. onlyAHashChange(as) {
  4856. if (!this.asPath) return false;
  4857. const [oldUrlNoHash, oldHash] = this.asPath.split('#');
  4858. const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
  4859. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  4860. return true;
  4861. } // If the urls are change, there's more than a hash change
  4862. if (oldUrlNoHash !== newUrlNoHash) {
  4863. return false;
  4864. } // If the hash has changed, then it's a hash only change.
  4865. // This check is necessary to handle both the enter and
  4866. // leave hash === '' cases. The identity case falls through
  4867. // and is treated as a next reload.
  4868. return oldHash !== newHash;
  4869. }
  4870. scrollToHash(as) {
  4871. const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value
  4872. if (hash === '') {
  4873. window.scrollTo(0, 0);
  4874. return;
  4875. } // First we check if the element by id is found
  4876. const idEl = document.getElementById(hash);
  4877. if (idEl) {
  4878. idEl.scrollIntoView();
  4879. return;
  4880. } // If there's no element with the id, we check the `name` property
  4881. // To mirror browsers
  4882. const nameEl = document.getElementsByName(hash)[0];
  4883. if (nameEl) {
  4884. nameEl.scrollIntoView();
  4885. }
  4886. }
  4887. urlIsNew(asPath) {
  4888. return this.asPath !== asPath;
  4889. }
  4890. /**
  4891. * Prefetch page code, you may wait for the data during page rendering.
  4892. * This feature only works in production!
  4893. * @param url the href of prefetched page
  4894. * @param asPath the as path of the prefetched page
  4895. */
  4896. prefetch(url, asPath = url, options = {}) {
  4897. return new Promise((resolve, reject) => {
  4898. const {
  4899. pathname,
  4900. protocol
  4901. } = url_1.parse(url);
  4902. if (!pathname || protocol) {
  4903. if (false) {}
  4904. return;
  4905. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  4906. if (false) {}
  4907. const route = delBasePath(toRoute(pathname));
  4908. Promise.all([this.pageLoader.prefetchData(url, delBasePath(asPath)), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(() => resolve(), reject);
  4909. });
  4910. }
  4911. async fetchComponent(route) {
  4912. let cancelled = false;
  4913. const cancel = this.clc = () => {
  4914. cancelled = true;
  4915. };
  4916. route = delBasePath(route);
  4917. const componentResult = await this.pageLoader.loadPage(route);
  4918. if (cancelled) {
  4919. const error = new Error(`Abort fetching component for route: "${route}"`);
  4920. error.cancelled = true;
  4921. throw error;
  4922. }
  4923. if (cancel === this.clc) {
  4924. this.clc = null;
  4925. }
  4926. return componentResult;
  4927. }
  4928. _getData(fn) {
  4929. let cancelled = false;
  4930. const cancel = () => {
  4931. cancelled = true;
  4932. };
  4933. this.clc = cancel;
  4934. return fn().then(data => {
  4935. if (cancel === this.clc) {
  4936. this.clc = null;
  4937. }
  4938. if (cancelled) {
  4939. const err = new Error('Loading initial props cancelled');
  4940. err.cancelled = true;
  4941. throw err;
  4942. }
  4943. return data;
  4944. });
  4945. }
  4946. getInitialProps(Component, ctx) {
  4947. const {
  4948. Component: App
  4949. } = this.components['/_app'];
  4950. const AppTree = this._wrapApp(App);
  4951. ctx.AppTree = AppTree;
  4952. return utils_1.loadGetInitialProps(App, {
  4953. AppTree,
  4954. Component,
  4955. router: this,
  4956. ctx
  4957. });
  4958. }
  4959. abortComponentLoad(as) {
  4960. if (this.clc) {
  4961. const e = new Error('Route Cancelled');
  4962. e.cancelled = true;
  4963. Router.events.emit('routeChangeError', e, as);
  4964. this.clc();
  4965. this.clc = null;
  4966. }
  4967. }
  4968. notify(data) {
  4969. this.sub(data, this.components['/_app'].Component);
  4970. }
  4971. }
  4972. exports.default = Router;
  4973. Router.events = mitt_1.default();
  4974. /***/ }),
  4975. /***/ "fEgT":
  4976. /***/ (function(module, exports) {
  4977. module.exports = require("@material-ui/core/Dialog");
  4978. /***/ }),
  4979. /***/ "g/15":
  4980. /***/ (function(module, exports, __webpack_require__) {
  4981. "use strict";
  4982. Object.defineProperty(exports, "__esModule", {
  4983. value: true
  4984. });
  4985. const url_1 = __webpack_require__("bzos");
  4986. /**
  4987. * Utils
  4988. */
  4989. function execOnce(fn) {
  4990. let used = false;
  4991. let result;
  4992. return (...args) => {
  4993. if (!used) {
  4994. used = true;
  4995. result = fn(...args);
  4996. }
  4997. return result;
  4998. };
  4999. }
  5000. exports.execOnce = execOnce;
  5001. function getLocationOrigin() {
  5002. const {
  5003. protocol,
  5004. hostname,
  5005. port
  5006. } = window.location;
  5007. return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  5008. }
  5009. exports.getLocationOrigin = getLocationOrigin;
  5010. function getURL() {
  5011. const {
  5012. href
  5013. } = window.location;
  5014. const origin = getLocationOrigin();
  5015. return href.substring(origin.length);
  5016. }
  5017. exports.getURL = getURL;
  5018. function getDisplayName(Component) {
  5019. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  5020. }
  5021. exports.getDisplayName = getDisplayName;
  5022. function isResSent(res) {
  5023. return res.finished || res.headersSent;
  5024. }
  5025. exports.isResSent = isResSent;
  5026. async function loadGetInitialProps(App, ctx) {
  5027. var _a;
  5028. if (false) {} // when called from _app `ctx` is nested in `ctx`
  5029. const res = ctx.res || ctx.ctx && ctx.ctx.res;
  5030. if (!App.getInitialProps) {
  5031. if (ctx.ctx && ctx.Component) {
  5032. // @ts-ignore pageProps default
  5033. return {
  5034. pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
  5035. };
  5036. }
  5037. return {};
  5038. }
  5039. const props = await App.getInitialProps(ctx);
  5040. if (res && isResSent(res)) {
  5041. return props;
  5042. }
  5043. if (!props) {
  5044. const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
  5045. throw new Error(message);
  5046. }
  5047. if (false) {}
  5048. return props;
  5049. }
  5050. exports.loadGetInitialProps = loadGetInitialProps;
  5051. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  5052. function formatWithValidation(url, options) {
  5053. if (false) {}
  5054. return url_1.format(url, options);
  5055. }
  5056. exports.formatWithValidation = formatWithValidation;
  5057. exports.SP = typeof performance !== 'undefined';
  5058. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  5059. /***/ }),
  5060. /***/ "gguc":
  5061. /***/ (function(module, exports, __webpack_require__) {
  5062. "use strict";
  5063. Object.defineProperty(exports, "__esModule", {
  5064. value: true
  5065. });
  5066. function getRouteMatcher(routeRegex) {
  5067. const {
  5068. re,
  5069. groups
  5070. } = routeRegex;
  5071. return pathname => {
  5072. const routeMatch = re.exec(pathname);
  5073. if (!routeMatch) {
  5074. return false;
  5075. }
  5076. const decode = param => {
  5077. try {
  5078. return decodeURIComponent(param);
  5079. } catch (_) {
  5080. const err = new Error('failed to decode param');
  5081. err.code = 'DECODE_FAILED';
  5082. throw err;
  5083. }
  5084. };
  5085. const params = {};
  5086. Object.keys(groups).forEach(slugName => {
  5087. const g = groups[slugName];
  5088. const m = routeMatch[g.pos];
  5089. if (m !== undefined) {
  5090. params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
  5091. }
  5092. });
  5093. return params;
  5094. };
  5095. }
  5096. exports.getRouteMatcher = getRouteMatcher;
  5097. /***/ }),
  5098. /***/ "i4t8":
  5099. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5100. "use strict";
  5101. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridItem; });
  5102. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  5103. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  5104. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  5105. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  5106. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  5107. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  5108. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  5109. 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); }
  5110. 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; }
  5111. 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; }
  5112. // nodejs library to set properties for components
  5113. // @material-ui/core components
  5114. const styles = {
  5115. grid: {
  5116. position: "relative",
  5117. width: "100%",
  5118. minHeight: "1px",
  5119. paddingRight: "15px",
  5120. paddingLeft: "15px",
  5121. flexBasis: "auto"
  5122. }
  5123. };
  5124. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  5125. function GridItem(props) {
  5126. const classes = useStyles();
  5127. const {
  5128. children,
  5129. className
  5130. } = props,
  5131. rest = _objectWithoutProperties(props, ["children", "className"]);
  5132. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  5133. item: true
  5134. }, rest, {
  5135. className: classes.grid + " " + className
  5136. }), children);
  5137. }
  5138. GridItem.defaultProps = {
  5139. className: ""
  5140. };
  5141. /***/ }),
  5142. /***/ "iTUb":
  5143. /***/ (function(module, exports) {
  5144. module.exports = require("@material-ui/core/DialogContent");
  5145. /***/ }),
  5146. /***/ "jD8W":
  5147. /***/ (function(module, exports) {
  5148. module.exports = require("@material-ui/core/Popper");
  5149. /***/ }),
  5150. /***/ "kYf9":
  5151. /***/ (function(module, exports) {
  5152. module.exports = require("next/dist/next-server/lib/utils.js");
  5153. /***/ }),
  5154. /***/ "l+AL":
  5155. /***/ (function(module, exports) {
  5156. module.exports = "/_next/static/images/Promotion_2-1-6e8c96e318e453a7db4ca1ffcc73c32d.jpg";
  5157. /***/ }),
  5158. /***/ "lWoh":
  5159. /***/ (function(module, exports) {
  5160. module.exports = require("@material-ui/core/FormControl");
  5161. /***/ }),
  5162. /***/ "lj8g":
  5163. /***/ (function(module, exports) {
  5164. module.exports = require("@material-ui/core/InputAdornment");
  5165. /***/ }),
  5166. /***/ "mf1M":
  5167. /***/ (function(module, exports) {
  5168. module.exports = require("@material-ui/core/Grow");
  5169. /***/ }),
  5170. /***/ "mtPR":
  5171. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5172. "use strict";
  5173. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridContainer; });
  5174. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  5175. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  5176. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  5177. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  5178. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  5179. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  5180. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  5181. 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); }
  5182. 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; }
  5183. 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; }
  5184. // nodejs library to set properties for components
  5185. // @material-ui/core components
  5186. const styles = {
  5187. grid: {
  5188. marginRight: "-15px",
  5189. marginLeft: "-15px",
  5190. width: "auto"
  5191. }
  5192. };
  5193. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  5194. function GridContainer(props) {
  5195. const classes = useStyles();
  5196. const {
  5197. children,
  5198. className
  5199. } = props,
  5200. rest = _objectWithoutProperties(props, ["children", "className"]);
  5201. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  5202. container: true
  5203. }, rest, {
  5204. className: classes.grid + " " + className
  5205. }), children);
  5206. }
  5207. GridContainer.defaultProps = {
  5208. className: ""
  5209. };
  5210. /***/ }),
  5211. /***/ "nJn1":
  5212. /***/ (function(module, exports) {
  5213. module.exports = "/_next/static/images/tb-07080d5d3d7b45d4452f1aae75c323f1.png";
  5214. /***/ }),
  5215. /***/ "nOHt":
  5216. /***/ (function(module, exports, __webpack_require__) {
  5217. "use strict";
  5218. var _interopRequireWildcard = __webpack_require__("7KCV");
  5219. var _interopRequireDefault = __webpack_require__("AroE");
  5220. exports.__esModule = true;
  5221. exports.useRouter = useRouter;
  5222. exports.makePublicRouterInstance = makePublicRouterInstance;
  5223. exports.createRouter = exports.withRouter = exports.default = void 0;
  5224. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  5225. var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
  5226. exports.Router = _router2.default;
  5227. exports.NextRouter = _router2.NextRouter;
  5228. var _routerContext = __webpack_require__("Osoz");
  5229. var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
  5230. exports.withRouter = _withRouter.default;
  5231. /* global window */
  5232. var singletonRouter = {
  5233. router: null,
  5234. // holds the actual router instance
  5235. readyCallbacks: [],
  5236. ready(cb) {
  5237. if (this.router) return cb();
  5238. if (false) {}
  5239. }
  5240. }; // Create public properties and methods of the router in the singletonRouter
  5241. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  5242. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  5243. 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
  5244. Object.defineProperty(singletonRouter, 'events', {
  5245. get() {
  5246. return _router2.default.events;
  5247. }
  5248. });
  5249. urlPropertyFields.forEach(field => {
  5250. // Here we need to use Object.defineProperty because, we need to return
  5251. // the property assigned to the actual router
  5252. // The value might get changed as we change routes and this is the
  5253. // proper way to access it
  5254. Object.defineProperty(singletonRouter, field, {
  5255. get() {
  5256. var router = getRouter();
  5257. return router[field];
  5258. }
  5259. });
  5260. });
  5261. coreMethodFields.forEach(field => {
  5262. // We don't really know the types here, so we add them later instead
  5263. ;
  5264. singletonRouter[field] = function () {
  5265. var router = getRouter();
  5266. return router[field](...arguments);
  5267. };
  5268. });
  5269. routerEvents.forEach(event => {
  5270. singletonRouter.ready(() => {
  5271. _router2.default.events.on(event, function () {
  5272. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  5273. var _singletonRouter = singletonRouter;
  5274. if (_singletonRouter[eventField]) {
  5275. try {
  5276. _singletonRouter[eventField](...arguments);
  5277. } catch (err) {
  5278. // tslint:disable-next-line:no-console
  5279. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  5280. console.error(err.message + "\n" + err.stack);
  5281. }
  5282. }
  5283. });
  5284. });
  5285. });
  5286. function getRouter() {
  5287. if (!singletonRouter.router) {
  5288. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  5289. throw new Error(message);
  5290. }
  5291. return singletonRouter.router;
  5292. } // Export the singletonRouter and this is the public API.
  5293. var _default = singletonRouter; // Reexport the withRoute HOC
  5294. exports.default = _default;
  5295. function useRouter() {
  5296. return _react.default.useContext(_routerContext.RouterContext);
  5297. } // INTERNAL APIS
  5298. // -------------
  5299. // (do not use following exports inside the app)
  5300. // Create a router and assign it as the singleton instance.
  5301. // This is used in client side when we are initilizing the app.
  5302. // This should **not** use inside the server.
  5303. var createRouter = function createRouter() {
  5304. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  5305. args[_key] = arguments[_key];
  5306. }
  5307. singletonRouter.router = new _router2.default(...args);
  5308. singletonRouter.readyCallbacks.forEach(cb => cb());
  5309. singletonRouter.readyCallbacks = [];
  5310. return singletonRouter.router;
  5311. }; // This function is used to create the `withRouter` router instance
  5312. exports.createRouter = createRouter;
  5313. function makePublicRouterInstance(router) {
  5314. var _router = router;
  5315. var instance = {};
  5316. for (var property of urlPropertyFields) {
  5317. if (typeof _router[property] === 'object') {
  5318. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  5319. continue;
  5320. }
  5321. instance[property] = _router[property];
  5322. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  5323. instance.events = _router2.default.events;
  5324. coreMethodFields.forEach(field => {
  5325. instance[field] = function () {
  5326. return _router[field](...arguments);
  5327. };
  5328. });
  5329. return instance;
  5330. }
  5331. /***/ }),
  5332. /***/ "nybW":
  5333. /***/ (function(module, exports) {
  5334. module.exports = require("@material-ui/core/Divider");
  5335. /***/ }),
  5336. /***/ "oLCs":
  5337. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5338. "use strict";
  5339. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  5340. const footerStyle = {
  5341. block: {
  5342. color: "inherit",
  5343. padding: "0.9375rem",
  5344. fontWeight: "500",
  5345. fontSize: "12px",
  5346. textTransform: "uppercase",
  5347. borderRadius: "3px",
  5348. textDecoration: "none",
  5349. position: "relative",
  5350. display: "block"
  5351. },
  5352. left: {
  5353. float: "left!important",
  5354. display: "block"
  5355. },
  5356. right: {
  5357. padding: "15px 0",
  5358. margin: "0",
  5359. float: "right!important"
  5360. },
  5361. footer: {
  5362. padding: "0.9375rem 0",
  5363. textAlign: "center",
  5364. display: "flex",
  5365. zIndex: "2",
  5366. position: "relative"
  5367. },
  5368. a: {
  5369. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* primaryColor */ "p"],
  5370. textDecoration: "none",
  5371. backgroundColor: "transparent"
  5372. },
  5373. footerWhiteFont: {
  5374. "&,&:hover,&:focus": {
  5375. color: "#FFFFFF"
  5376. }
  5377. },
  5378. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  5379. list: {
  5380. marginBottom: "0",
  5381. padding: "0",
  5382. marginTop: "0"
  5383. },
  5384. inlineBlock: {
  5385. display: "inline-block",
  5386. padding: "0px",
  5387. width: "auto"
  5388. },
  5389. icon: {
  5390. width: "18px",
  5391. height: "18px",
  5392. position: "relative",
  5393. top: "3px"
  5394. }
  5395. };
  5396. /* harmony default export */ __webpack_exports__["a"] = (footerStyle);
  5397. /***/ }),
  5398. /***/ "qt1I":
  5399. /***/ (function(module, exports) {
  5400. module.exports = require("@material-ui/core/Paper");
  5401. /***/ }),
  5402. /***/ "tBFs":
  5403. /***/ (function(module, exports) {
  5404. module.exports = require("@material-ui/core/Input");
  5405. /***/ }),
  5406. /***/ "um8N":
  5407. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5408. "use strict";
  5409. // EXPORTS
  5410. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomInput; });
  5411. // EXTERNAL MODULE: external "react"
  5412. var external_react_ = __webpack_require__("cDcd");
  5413. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  5414. // EXTERNAL MODULE: external "classnames"
  5415. var external_classnames_ = __webpack_require__("K2gz");
  5416. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  5417. // EXTERNAL MODULE: external "@material-ui/core/styles"
  5418. var styles_ = __webpack_require__("9Pu4");
  5419. // EXTERNAL MODULE: external "@material-ui/core/FormControl"
  5420. var FormControl_ = __webpack_require__("lWoh");
  5421. var FormControl_default = /*#__PURE__*/__webpack_require__.n(FormControl_);
  5422. // EXTERNAL MODULE: external "@material-ui/core/InputLabel"
  5423. var InputLabel_ = __webpack_require__("zOcm");
  5424. var InputLabel_default = /*#__PURE__*/__webpack_require__.n(InputLabel_);
  5425. // EXTERNAL MODULE: external "@material-ui/core/Input"
  5426. var Input_ = __webpack_require__("tBFs");
  5427. var Input_default = /*#__PURE__*/__webpack_require__.n(Input_);
  5428. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  5429. var nextjs_material_kit = __webpack_require__("eDSW");
  5430. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customInputStyle.js
  5431. 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; }
  5432. 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; }
  5433. 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; }
  5434. const customInputStyle = {
  5435. disabled: {
  5436. "&:before": {
  5437. borderColor: "transparent !important"
  5438. }
  5439. },
  5440. underline: {
  5441. "&:hover:not($disabled):before,&:before": {
  5442. borderColor: "#D2D2D2 !important",
  5443. borderWidth: "1px !important"
  5444. },
  5445. "&:after": {
  5446. borderColor: nextjs_material_kit["p" /* primaryColor */]
  5447. }
  5448. },
  5449. underlineError: {
  5450. "&:after": {
  5451. borderColor: nextjs_material_kit["f" /* dangerColor */]
  5452. }
  5453. },
  5454. underlineSuccess: {
  5455. "&:after": {
  5456. borderColor: nextjs_material_kit["u" /* successColor */]
  5457. }
  5458. },
  5459. whiteUnderline: {
  5460. "&:hover:not($disabled):before,&:before": {
  5461. borderColor: "#FFFFFF"
  5462. },
  5463. "&:after": {
  5464. borderColor: "#FFFFFF"
  5465. }
  5466. },
  5467. labelRoot: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  5468. color: "#AAAAAA !important",
  5469. fontWeight: "400",
  5470. fontSize: "14px",
  5471. lineHeight: "1.42857",
  5472. top: "10px",
  5473. letterSpacing: "unset",
  5474. "& + $underline": {
  5475. marginTop: "0px"
  5476. }
  5477. }),
  5478. labelRootError: {
  5479. color: nextjs_material_kit["f" /* dangerColor */] + " !important"
  5480. },
  5481. labelRootSuccess: {
  5482. color: nextjs_material_kit["u" /* successColor */] + " !important"
  5483. },
  5484. formControl: {
  5485. margin: "0 0 17px 0",
  5486. paddingTop: "27px",
  5487. position: "relative",
  5488. "& svg,& .fab,& .far,& .fal,& .fas,& .material-icons": {
  5489. color: "#495057"
  5490. }
  5491. },
  5492. input: {
  5493. color: "#495057",
  5494. height: "unset",
  5495. "&,&::placeholder": {
  5496. fontSize: "14px",
  5497. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  5498. fontWeight: "400",
  5499. lineHeight: "1.42857",
  5500. opacity: "1"
  5501. },
  5502. "&::placeholder": {
  5503. color: "#AAAAAA"
  5504. }
  5505. },
  5506. whiteInput: {
  5507. "&,&::placeholder": {
  5508. color: "#FFFFFF",
  5509. opacity: "1"
  5510. }
  5511. }
  5512. };
  5513. /* harmony default export */ var components_customInputStyle = (customInputStyle);
  5514. // CONCATENATED MODULE: ./components/CustomInput/CustomInput.js
  5515. var __jsx = external_react_default.a.createElement;
  5516. 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); }
  5517. // nodejs library to set properties for components
  5518. // nodejs library that concatenates classes
  5519. // @material-ui/core components
  5520. const useStyles = Object(styles_["makeStyles"])(components_customInputStyle);
  5521. function CustomInput(props) {
  5522. const classes = useStyles();
  5523. const {
  5524. formControlProps,
  5525. labelText,
  5526. id,
  5527. labelProps,
  5528. inputProps,
  5529. error,
  5530. white,
  5531. inputRootCustomClasses,
  5532. success
  5533. } = props;
  5534. const labelClasses = external_classnames_default()({
  5535. [" " + classes.labelRootError]: error,
  5536. [" " + classes.labelRootSuccess]: success && !error
  5537. });
  5538. const underlineClasses = external_classnames_default()({
  5539. [classes.underlineError]: error,
  5540. [classes.underlineSuccess]: success && !error,
  5541. [classes.underline]: true,
  5542. [classes.whiteUnderline]: white
  5543. });
  5544. const marginTop = external_classnames_default()({
  5545. [inputRootCustomClasses]: inputRootCustomClasses !== undefined
  5546. });
  5547. const inputClasses = external_classnames_default()({
  5548. [classes.input]: true,
  5549. [classes.whiteInput]: white
  5550. });
  5551. var formControlClasses;
  5552. if (formControlProps !== undefined) {
  5553. formControlClasses = external_classnames_default()(formControlProps.className, classes.formControl);
  5554. } else {
  5555. formControlClasses = classes.formControl;
  5556. }
  5557. return __jsx(FormControl_default.a, _extends({}, formControlProps, {
  5558. className: formControlClasses
  5559. }), labelText !== undefined ? __jsx(InputLabel_default.a, _extends({
  5560. className: classes.labelRoot + " " + labelClasses,
  5561. htmlFor: id
  5562. }, labelProps), labelText) : null, __jsx(Input_default.a, _extends({
  5563. classes: {
  5564. input: inputClasses,
  5565. root: marginTop,
  5566. disabled: classes.disabled,
  5567. underline: underlineClasses
  5568. },
  5569. id: id
  5570. }, inputProps)));
  5571. }
  5572. /***/ }),
  5573. /***/ "vFf/":
  5574. /***/ (function(module, exports) {
  5575. module.exports = require("@material-ui/icons/Dashboard");
  5576. /***/ }),
  5577. /***/ "x54t":
  5578. /***/ (function(module, exports) {
  5579. module.exports = require("@material-ui/core/MenuItem");
  5580. /***/ }),
  5581. /***/ "xmQw":
  5582. /***/ (function(module, exports) {
  5583. module.exports = require("@material-ui/core/MenuList");
  5584. /***/ }),
  5585. /***/ "z+8S":
  5586. /***/ (function(module, exports) {
  5587. module.exports = require("@apollo/client");
  5588. /***/ }),
  5589. /***/ "zOcm":
  5590. /***/ (function(module, exports) {
  5591. module.exports = require("@material-ui/core/InputLabel");
  5592. /***/ })
  5593. /******/ });