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

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