Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

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