Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

5505 строки
177 KiB

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