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.
 
 

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