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.
 
 

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