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.

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