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

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