Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

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