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

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