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

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