25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.
 
 

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