Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

5278 linhas
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. /***/ "D+hd":
  1135. /***/ (function(module, exports) {
  1136. module.exports = require("@material-ui/icons/Language");
  1137. /***/ }),
  1138. /***/ "EmCc":
  1139. /***/ (function(module, exports) {
  1140. module.exports = require("@material-ui/core/IconButton");
  1141. /***/ }),
  1142. /***/ "Fm7H":
  1143. /***/ (function(module, exports) {
  1144. module.exports = require("@material-ui/icons/Favorite");
  1145. /***/ }),
  1146. /***/ "FoiA":
  1147. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1148. "use strict";
  1149. // EXPORTS
  1150. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ SnackbarContent; });
  1151. // EXTERNAL MODULE: external "react"
  1152. var external_react_ = __webpack_require__("cDcd");
  1153. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1154. // EXTERNAL MODULE: external "prop-types"
  1155. var external_prop_types_ = __webpack_require__("rf6O");
  1156. var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
  1157. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1158. var styles_ = __webpack_require__("9Pu4");
  1159. // EXTERNAL MODULE: external "@material-ui/core/SnackbarContent"
  1160. var SnackbarContent_ = __webpack_require__("n1EF");
  1161. var SnackbarContent_default = /*#__PURE__*/__webpack_require__.n(SnackbarContent_);
  1162. // EXTERNAL MODULE: external "@material-ui/core/IconButton"
  1163. var IconButton_ = __webpack_require__("EmCc");
  1164. var IconButton_default = /*#__PURE__*/__webpack_require__.n(IconButton_);
  1165. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  1166. var Icon_ = __webpack_require__("7vM9");
  1167. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  1168. // EXTERNAL MODULE: external "@material-ui/icons/Close"
  1169. var Close_ = __webpack_require__("j08L");
  1170. var Close_default = /*#__PURE__*/__webpack_require__.n(Close_);
  1171. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1172. var nextjs_material_kit = __webpack_require__("eDSW");
  1173. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/snackbarContentStyle.js
  1174. 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; }
  1175. 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; }
  1176. 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; }
  1177. const snackbarContentStyle = {
  1178. root: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  1179. position: "relative",
  1180. padding: "20px 15px",
  1181. lineHeight: "20px",
  1182. marginBottom: "20px",
  1183. fontSize: "14px",
  1184. backgroundColor: "white",
  1185. color: "#555555",
  1186. borderRadius: "0px",
  1187. maxWidth: "100%",
  1188. minWidth: "auto",
  1189. 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)"
  1190. }),
  1191. info: _objectSpread({
  1192. backgroundColor: "#212121",
  1193. color: "#ffffff"
  1194. }, nextjs_material_kit["k" /* infoBoxShadow */]),
  1195. success: _objectSpread({
  1196. backgroundColor: "#5cb860",
  1197. color: "#ffffff"
  1198. }, nextjs_material_kit["s" /* successBoxShadow */]),
  1199. warning: _objectSpread({
  1200. backgroundColor: "#ffa21a",
  1201. color: "#ffffff"
  1202. }, nextjs_material_kit["x" /* warningBoxShadow */]),
  1203. danger: _objectSpread({
  1204. backgroundColor: "#f55a4e",
  1205. color: "#ffffff"
  1206. }, nextjs_material_kit["d" /* dangerBoxShadow */]),
  1207. primary: _objectSpread({
  1208. backgroundColor: "#af2cc5",
  1209. color: "#ffffff"
  1210. }, nextjs_material_kit["n" /* primaryBoxShadow */]),
  1211. message: {
  1212. padding: "0",
  1213. display: "block",
  1214. maxWidth: "89%",
  1215. "&,& *": {
  1216. letterSpacing: "normal"
  1217. }
  1218. },
  1219. close: {
  1220. width: "14px",
  1221. height: "14px"
  1222. },
  1223. iconButton: {
  1224. width: "24px",
  1225. height: "24px",
  1226. float: "right",
  1227. fontSize: "1.5rem",
  1228. fontWeight: "500",
  1229. lineHeight: "1",
  1230. position: "absolute",
  1231. right: "-4px",
  1232. top: "0",
  1233. padding: "0"
  1234. },
  1235. icon: {
  1236. display: "block",
  1237. float: "left",
  1238. marginRight: "1.071rem"
  1239. },
  1240. container: _objectSpread({}, nextjs_material_kit["c" /* container */], {
  1241. position: "relative"
  1242. })
  1243. };
  1244. /* harmony default export */ var components_snackbarContentStyle = (snackbarContentStyle);
  1245. // CONCATENATED MODULE: ./components/Snackbar/SnackbarContent.js
  1246. var __jsx = external_react_default.a.createElement;
  1247. // nodejs library to set properties for components
  1248. // @material-ui/core components
  1249. // @material-ui/icons
  1250. // core components
  1251. const useStyles = Object(styles_["makeStyles"])(components_snackbarContentStyle);
  1252. function SnackbarContent(props) {
  1253. const {
  1254. message,
  1255. color,
  1256. close,
  1257. icon
  1258. } = props;
  1259. const classes = useStyles();
  1260. var action = [];
  1261. const closeAlert = () => {
  1262. setAlert(null);
  1263. };
  1264. if (close !== undefined) {
  1265. action = [__jsx(IconButton_default.a, {
  1266. className: classes.iconButton,
  1267. key: "close",
  1268. "aria-label": "Close",
  1269. color: "inherit",
  1270. onClick: closeAlert
  1271. }, __jsx(Close_default.a, {
  1272. className: classes.close
  1273. }))];
  1274. }
  1275. let snackIcon = null;
  1276. switch (typeof icon) {
  1277. case "object":
  1278. snackIcon = __jsx(props.icon, {
  1279. className: classes.icon
  1280. });
  1281. break;
  1282. case "string":
  1283. snackIcon = __jsx(Icon_default.a, {
  1284. className: classes.icon
  1285. }, props.icon);
  1286. break;
  1287. default:
  1288. snackIcon = null;
  1289. break;
  1290. }
  1291. const [alert, setAlert] = external_react_default.a.useState(__jsx(SnackbarContent_default.a, {
  1292. message: __jsx("div", null, snackIcon, message, close !== undefined ? action : null),
  1293. classes: {
  1294. root: classes.root + " " + classes[color],
  1295. message: classes.message + " " + classes.container
  1296. }
  1297. }));
  1298. return alert;
  1299. }
  1300. SnackbarContent.propTypes = {
  1301. message: external_prop_types_default.a.node.isRequired,
  1302. color: external_prop_types_default.a.oneOf(["info", "success", "warning", "danger", "primary"]),
  1303. close: external_prop_types_default.a.bool,
  1304. icon: external_prop_types_default.a.oneOfType([external_prop_types_default.a.object, external_prop_types_default.a.string])
  1305. };
  1306. /***/ }),
  1307. /***/ "I/1N":
  1308. /***/ (function(module, exports) {
  1309. module.exports = require("react-scroll");
  1310. /***/ }),
  1311. /***/ "Ilpk":
  1312. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1313. "use strict";
  1314. const imagesStyles = {
  1315. imgFluid: {
  1316. maxWidth: "100%",
  1317. height: "auto"
  1318. },
  1319. imgRounded: {
  1320. borderRadius: "6px !important"
  1321. },
  1322. imgRoundedCircle: {
  1323. borderRadius: "50% !important"
  1324. },
  1325. imgRaised: {
  1326. boxShadow: "0 5px 15px -8px rgba(0, 0, 0, 0.24), 0 8px 10px -5px rgba(0, 0, 0, 0.2)"
  1327. },
  1328. imgGallery: {
  1329. width: "100%",
  1330. marginBottom: "2.142rem"
  1331. },
  1332. imgCardTop: {
  1333. width: "100%",
  1334. borderTopLeftRadius: "calc(.25rem - 1px)",
  1335. borderTopRightRadius: "calc(.25rem - 1px)"
  1336. },
  1337. imgCardBottom: {
  1338. width: "100%",
  1339. borderBottomLeftRadius: "calc(.25rem - 1px)",
  1340. borderBottomRightRadius: "calc(.25rem - 1px)"
  1341. },
  1342. imgCard: {
  1343. width: "100%",
  1344. borderRadius: "calc(.25rem - 1px)"
  1345. },
  1346. imgCardOverlay: {
  1347. position: "absolute",
  1348. top: "0",
  1349. right: "0",
  1350. bottom: "0",
  1351. left: "0",
  1352. padding: "1.25rem"
  1353. }
  1354. };
  1355. /* harmony default export */ __webpack_exports__["a"] = (imagesStyles);
  1356. /***/ }),
  1357. /***/ "JQ2V":
  1358. /***/ (function(module, exports) {
  1359. module.exports = require("@material-ui/core/Grid");
  1360. /***/ }),
  1361. /***/ "K2gz":
  1362. /***/ (function(module, exports) {
  1363. module.exports = require("classnames");
  1364. /***/ }),
  1365. /***/ "KKbo":
  1366. /***/ (function(module, exports) {
  1367. module.exports = require("@material-ui/core");
  1368. /***/ }),
  1369. /***/ "Kg+a":
  1370. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1371. "use strict";
  1372. // EXTERNAL MODULE: external "react"
  1373. var external_react_ = __webpack_require__("cDcd");
  1374. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1375. // EXTERNAL MODULE: external "classnames"
  1376. var external_classnames_ = __webpack_require__("K2gz");
  1377. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1378. // EXTERNAL MODULE: external "@material-ui/core/styles/makeStyles"
  1379. var makeStyles_ = __webpack_require__("8//M");
  1380. var makeStyles_default = /*#__PURE__*/__webpack_require__.n(makeStyles_);
  1381. // EXTERNAL MODULE: external "@material-ui/core/Button"
  1382. var Button_ = __webpack_require__("Wh1t");
  1383. var Button_default = /*#__PURE__*/__webpack_require__.n(Button_);
  1384. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1385. var nextjs_material_kit = __webpack_require__("eDSW");
  1386. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/buttonStyle.js
  1387. const buttonStyle = {
  1388. button: {
  1389. minHeight: "auto",
  1390. minWidth: "auto",
  1391. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1392. color: "#FFFFFF",
  1393. 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)",
  1394. border: "none",
  1395. borderRadius: "3px",
  1396. position: "relative",
  1397. padding: "12px 30px",
  1398. margin: ".3125rem 1px",
  1399. fontSize: "12px",
  1400. fontWeight: "400",
  1401. textTransform: "uppercase",
  1402. letterSpacing: "0",
  1403. willChange: "box-shadow, transform",
  1404. transition: "box-shadow 0.2s cubic-bezier(0.4, 0, 1, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1)",
  1405. lineHeight: "1.42857143",
  1406. textAlign: "center",
  1407. whiteSpace: "nowrap",
  1408. verticalAlign: "middle",
  1409. touchAction: "manipulation",
  1410. cursor: "pointer",
  1411. "&:hover,&:focus": {
  1412. color: "#FFFFFF",
  1413. backgroundColor: nextjs_material_kit["i" /* grayColor */],
  1414. 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)"
  1415. },
  1416. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1417. position: "relative",
  1418. display: "inline-block",
  1419. top: "0",
  1420. fontSize: "1.1rem",
  1421. marginRight: "4px",
  1422. verticalAlign: "middle"
  1423. },
  1424. "& svg": {
  1425. position: "relative",
  1426. display: "inline-block",
  1427. top: "0",
  1428. width: "18px",
  1429. height: "18px",
  1430. marginRight: "4px",
  1431. verticalAlign: "middle"
  1432. },
  1433. "&$justIcon": {
  1434. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1435. marginRight: "0px",
  1436. position: "absolute",
  1437. width: "100%",
  1438. transform: "none",
  1439. left: "0px",
  1440. top: "0px",
  1441. height: "100%",
  1442. lineHeight: "41px",
  1443. fontSize: "20px"
  1444. }
  1445. }
  1446. },
  1447. fullWidth: {
  1448. width: "100%"
  1449. },
  1450. primary: {
  1451. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1452. 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)}`,
  1453. "&:hover,&:focus": {
  1454. backgroundColor: nextjs_material_kit["p" /* primaryColor */],
  1455. 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)}`
  1456. }
  1457. },
  1458. info: {
  1459. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1460. 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)}`,
  1461. "&:hover,&:focus": {
  1462. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1463. 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)}`
  1464. }
  1465. },
  1466. success: {
  1467. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1468. 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)}`,
  1469. "&:hover,&:focus": {
  1470. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1471. 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)}`
  1472. }
  1473. },
  1474. warning: {
  1475. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1476. 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)}`,
  1477. "&:hover,&:focus": {
  1478. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1479. 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)}`
  1480. }
  1481. },
  1482. danger: {
  1483. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1484. 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)}`,
  1485. "&:hover,&:focus": {
  1486. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1487. 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)}`
  1488. }
  1489. },
  1490. rose: {
  1491. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1492. 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)}`,
  1493. "&:hover,&:focus": {
  1494. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1495. 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)}`
  1496. }
  1497. },
  1498. white: {
  1499. "&,&:focus,&:hover,&:visited": {
  1500. backgroundColor: "#FFFFFF",
  1501. color: nextjs_material_kit["i" /* grayColor */]
  1502. }
  1503. },
  1504. twitter: {
  1505. backgroundColor: "#55acee",
  1506. color: "#fff",
  1507. 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)",
  1508. "&:hover,&:focus,&:visited": {
  1509. backgroundColor: "#55acee",
  1510. color: "#fff",
  1511. 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)"
  1512. }
  1513. },
  1514. facebook: {
  1515. backgroundColor: "#3b5998",
  1516. color: "#fff",
  1517. 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)",
  1518. "&:hover,&:focus": {
  1519. backgroundColor: "#3b5998",
  1520. color: "#fff",
  1521. 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)"
  1522. }
  1523. },
  1524. google: {
  1525. backgroundColor: "#dd4b39",
  1526. color: "#fff",
  1527. 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)",
  1528. "&:hover,&:focus": {
  1529. backgroundColor: "#dd4b39",
  1530. color: "#fff",
  1531. 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)"
  1532. }
  1533. },
  1534. github: {
  1535. backgroundColor: "#333333",
  1536. color: "#fff",
  1537. 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)",
  1538. "&:hover,&:focus": {
  1539. backgroundColor: "#333333",
  1540. color: "#fff",
  1541. 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)"
  1542. }
  1543. },
  1544. simple: {
  1545. "&,&:focus,&:hover,&:visited": {
  1546. color: "#FFFFFF",
  1547. background: "transparent",
  1548. boxShadow: "none"
  1549. },
  1550. "&$primary": {
  1551. "&,&:focus,&:hover,&:visited": {
  1552. color: nextjs_material_kit["p" /* primaryColor */]
  1553. }
  1554. },
  1555. "&$info": {
  1556. "&,&:focus,&:hover,&:visited": {
  1557. color: nextjs_material_kit["m" /* infoColor */]
  1558. }
  1559. },
  1560. "&$success": {
  1561. "&,&:focus,&:hover,&:visited": {
  1562. color: nextjs_material_kit["u" /* successColor */]
  1563. }
  1564. },
  1565. "&$warning": {
  1566. "&,&:focus,&:hover,&:visited": {
  1567. color: nextjs_material_kit["z" /* warningColor */]
  1568. }
  1569. },
  1570. "&$rose": {
  1571. "&,&:focus,&:hover,&:visited": {
  1572. color: nextjs_material_kit["r" /* roseColor */]
  1573. }
  1574. },
  1575. "&$danger": {
  1576. "&,&:focus,&:hover,&:visited": {
  1577. color: nextjs_material_kit["f" /* dangerColor */]
  1578. }
  1579. },
  1580. "&$twitter": {
  1581. "&,&:focus,&:hover,&:visited": {
  1582. color: "#55acee"
  1583. }
  1584. },
  1585. "&$facebook": {
  1586. "&,&:focus,&:hover,&:visited": {
  1587. color: "#3b5998"
  1588. }
  1589. },
  1590. "&$google": {
  1591. "&,&:focus,&:hover,&:visited": {
  1592. color: "#dd4b39"
  1593. }
  1594. },
  1595. "&$github": {
  1596. "&,&:focus,&:hover,&:visited": {
  1597. color: "#333333"
  1598. }
  1599. }
  1600. },
  1601. transparent: {
  1602. "&,&:focus,&:hover,&:visited": {
  1603. color: "inherit",
  1604. background: "transparent",
  1605. boxShadow: "none"
  1606. }
  1607. },
  1608. disabled: {
  1609. opacity: "0.65",
  1610. pointerEvents: "none"
  1611. },
  1612. lg: {
  1613. padding: "1.125rem 2.25rem",
  1614. fontSize: "0.875rem",
  1615. lineHeight: "1.333333",
  1616. borderRadius: "0.2rem"
  1617. },
  1618. sm: {
  1619. padding: "0.40625rem 1.25rem",
  1620. fontSize: "0.6875rem",
  1621. lineHeight: "1.5",
  1622. borderRadius: "0.2rem"
  1623. },
  1624. round: {
  1625. borderRadius: "30px"
  1626. },
  1627. block: {
  1628. width: "100% !important"
  1629. },
  1630. link: {
  1631. "&,&:hover,&:focus": {
  1632. backgroundColor: "transparent",
  1633. color: "#999999",
  1634. boxShadow: "none"
  1635. }
  1636. },
  1637. justIcon: {
  1638. paddingLeft: "12px",
  1639. paddingRight: "12px",
  1640. fontSize: "20px",
  1641. height: "41px",
  1642. minWidth: "41px",
  1643. width: "41px",
  1644. "& .fab,& .fas,& .far,& .fal,& svg,& .material-icons": {
  1645. marginRight: "0px"
  1646. },
  1647. "&$lg": {
  1648. height: "57px",
  1649. minWidth: "57px",
  1650. width: "57px",
  1651. lineHeight: "56px",
  1652. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1653. fontSize: "32px",
  1654. lineHeight: "56px"
  1655. },
  1656. "& svg": {
  1657. width: "32px",
  1658. height: "32px"
  1659. }
  1660. },
  1661. "&$sm": {
  1662. height: "30px",
  1663. minWidth: "30px",
  1664. width: "30px",
  1665. "& .fab,& .fas,& .far,& .fal,& .material-icons": {
  1666. fontSize: "17px",
  1667. lineHeight: "29px"
  1668. },
  1669. "& svg": {
  1670. width: "17px",
  1671. height: "17px"
  1672. }
  1673. }
  1674. }
  1675. };
  1676. /* harmony default export */ var components_buttonStyle = (buttonStyle);
  1677. // CONCATENATED MODULE: ./components/CustomButtons/Button.js
  1678. var __jsx = external_react_default.a.createElement;
  1679. 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); }
  1680. 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; }
  1681. 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; }
  1682. 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; }
  1683. 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; }
  1684. 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; }
  1685. // nodejs library to set properties for components
  1686. // nodejs library that concatenates classes
  1687. // @material-ui/core components
  1688. // core components
  1689. const makeComponentStyles = makeStyles_default()(() => _objectSpread({}, components_buttonStyle));
  1690. const RegularButton = external_react_default.a.forwardRef((props, ref) => {
  1691. const {
  1692. color,
  1693. round,
  1694. children,
  1695. fullWidth,
  1696. disabled,
  1697. simple,
  1698. size,
  1699. block,
  1700. link,
  1701. justIcon,
  1702. className
  1703. } = props,
  1704. rest = _objectWithoutProperties(props, ["color", "round", "children", "fullWidth", "disabled", "simple", "size", "block", "link", "justIcon", "className"]);
  1705. const classes = makeComponentStyles();
  1706. const btnClasses = external_classnames_default()({
  1707. [classes.button]: true,
  1708. [classes[size]]: size,
  1709. [classes[color]]: color,
  1710. [classes.round]: round,
  1711. [classes.fullWidth]: fullWidth,
  1712. [classes.disabled]: disabled,
  1713. [classes.simple]: simple,
  1714. [classes.block]: block,
  1715. [classes.link]: link,
  1716. [classes.justIcon]: justIcon,
  1717. [className]: className
  1718. });
  1719. return __jsx(Button_default.a, _extends({}, rest, {
  1720. ref: ref,
  1721. classes: {
  1722. root: btnClasses
  1723. }
  1724. }), children);
  1725. });
  1726. /* harmony default export */ var Button = __webpack_exports__["a"] = (RegularButton);
  1727. /***/ }),
  1728. /***/ "M9IG":
  1729. /***/ (function(module, exports) {
  1730. /***/ }),
  1731. /***/ "Ms0O":
  1732. /***/ (function(module, exports) {
  1733. module.exports = require("@material-ui/core/Toolbar");
  1734. /***/ }),
  1735. /***/ "O/hg":
  1736. /***/ (function(module, exports) {
  1737. module.exports = require("react-slick");
  1738. /***/ }),
  1739. /***/ "OL+V":
  1740. /***/ (function(module, exports) {
  1741. module.exports = require("@material-ui/icons/Email");
  1742. /***/ }),
  1743. /***/ "Osoz":
  1744. /***/ (function(module, exports) {
  1745. module.exports = require("next/dist/next-server/lib/router-context.js");
  1746. /***/ }),
  1747. /***/ "Q01v":
  1748. /***/ (function(module, exports) {
  1749. module.exports = require("@material-ui/core/Drawer");
  1750. /***/ }),
  1751. /***/ "QMLM":
  1752. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1753. "use strict";
  1754. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  1755. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  1756. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  1757. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  1758. /* harmony import */ var components_Snackbar_SnackbarContent_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("FoiA");
  1759. /* harmony import */ var assets_jss_nextjs_material_kit_pages_componentsSections_notificationsStyles_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("7WNa");
  1760. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  1761. // @material-ui/core components
  1762. // Component
  1763. 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"]);
  1764. const DataSnackbarContent = function () {
  1765. const classes = useStyles();
  1766. return __jsx("div", {
  1767. align: "center"
  1768. }, __jsx("div", {
  1769. align: "center",
  1770. className: classes.section,
  1771. id: "notifications"
  1772. }, __jsx(components_Snackbar_SnackbarContent_js__WEBPACK_IMPORTED_MODULE_2__[/* default */ "a"], {
  1773. message: __jsx("h4", null, "Thamrin Group bersama Anda melawan COVID-19. Untuk informasi silakan ", __jsx("a", {
  1774. href: "https://covid19.go.id/",
  1775. target: "_blank",
  1776. className: classes.block
  1777. }, "klik di sini.")),
  1778. align: "center",
  1779. color: "info"
  1780. })));
  1781. };
  1782. /* harmony default export */ __webpack_exports__["a"] = (DataSnackbarContent);
  1783. /***/ }),
  1784. /***/ "QOEo":
  1785. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1786. "use strict";
  1787. // EXPORTS
  1788. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CustomDropdown; });
  1789. // EXTERNAL MODULE: external "react"
  1790. var external_react_ = __webpack_require__("cDcd");
  1791. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  1792. // EXTERNAL MODULE: external "classnames"
  1793. var external_classnames_ = __webpack_require__("K2gz");
  1794. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  1795. // EXTERNAL MODULE: external "@material-ui/core/styles"
  1796. var styles_ = __webpack_require__("9Pu4");
  1797. // EXTERNAL MODULE: external "@material-ui/core/MenuItem"
  1798. var MenuItem_ = __webpack_require__("x54t");
  1799. var MenuItem_default = /*#__PURE__*/__webpack_require__.n(MenuItem_);
  1800. // EXTERNAL MODULE: external "@material-ui/core/MenuList"
  1801. var MenuList_ = __webpack_require__("xmQw");
  1802. var MenuList_default = /*#__PURE__*/__webpack_require__.n(MenuList_);
  1803. // EXTERNAL MODULE: external "@material-ui/core/ClickAwayListener"
  1804. var ClickAwayListener_ = __webpack_require__("31Yn");
  1805. var ClickAwayListener_default = /*#__PURE__*/__webpack_require__.n(ClickAwayListener_);
  1806. // EXTERNAL MODULE: external "@material-ui/core/Paper"
  1807. var Paper_ = __webpack_require__("qt1I");
  1808. var Paper_default = /*#__PURE__*/__webpack_require__.n(Paper_);
  1809. // EXTERNAL MODULE: external "@material-ui/core/Grow"
  1810. var Grow_ = __webpack_require__("mf1M");
  1811. var Grow_default = /*#__PURE__*/__webpack_require__.n(Grow_);
  1812. // EXTERNAL MODULE: external "@material-ui/core/Divider"
  1813. var Divider_ = __webpack_require__("nybW");
  1814. var Divider_default = /*#__PURE__*/__webpack_require__.n(Divider_);
  1815. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  1816. var Icon_ = __webpack_require__("7vM9");
  1817. var Icon_default = /*#__PURE__*/__webpack_require__.n(Icon_);
  1818. // EXTERNAL MODULE: external "@material-ui/core/Popper"
  1819. var Popper_ = __webpack_require__("jD8W");
  1820. var Popper_default = /*#__PURE__*/__webpack_require__.n(Popper_);
  1821. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  1822. var Button = __webpack_require__("Kg+a");
  1823. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit.js
  1824. var nextjs_material_kit = __webpack_require__("eDSW");
  1825. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/customDropdownStyle.js
  1826. 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; }
  1827. 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; }
  1828. 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; }
  1829. const customDropdownStyle = theme => ({
  1830. popperClose: {
  1831. pointerEvents: "none"
  1832. },
  1833. pooperNav: {
  1834. [theme.breakpoints.down("sm")]: {
  1835. position: "static !important",
  1836. left: "unset !important",
  1837. top: "unset !important",
  1838. transform: "none !important",
  1839. willChange: "none !important",
  1840. "& > div": {
  1841. boxShadow: "none !important",
  1842. marginLeft: "1.5rem",
  1843. marginRight: "1.5rem",
  1844. transition: "none !important",
  1845. marginTop: "0px !important",
  1846. marginBottom: "5px !important",
  1847. padding: "0px !important"
  1848. }
  1849. }
  1850. },
  1851. dropdown: {
  1852. borderRadius: "3px",
  1853. border: "0",
  1854. boxShadow: "0 2px 5px 0 rgba(0, 0, 0, 0.26)",
  1855. top: "100%",
  1856. zIndex: "1000",
  1857. minWidth: "160px",
  1858. padding: "5px 0",
  1859. margin: "2px 0 0",
  1860. fontSize: "14px",
  1861. textAlign: "left",
  1862. listStyle: "none",
  1863. backgroundColor: "#fff",
  1864. backgroundClip: "padding-box"
  1865. },
  1866. menuList: {
  1867. padding: "0"
  1868. },
  1869. popperResponsive: {
  1870. zIndex: "1200",
  1871. position: "absolute !important",
  1872. [theme.breakpoints.down("sm")]: {
  1873. zIndex: "1640",
  1874. position: "static !important",
  1875. float: "none",
  1876. width: "auto",
  1877. marginTop: "0",
  1878. backgroundColor: "transparent",
  1879. border: "0",
  1880. boxShadow: "none",
  1881. color: "black"
  1882. }
  1883. },
  1884. dropdownItem: _objectSpread({}, nextjs_material_kit["g" /* defaultFont */], {
  1885. fontSize: "13px",
  1886. padding: "10px 20px",
  1887. margin: "0 5px",
  1888. borderRadius: "2px",
  1889. position: "relative",
  1890. transition: "all 150ms linear",
  1891. display: "block",
  1892. clear: "both",
  1893. fontWeight: "400",
  1894. height: "fit-content",
  1895. color: "#333",
  1896. whiteSpace: "nowrap",
  1897. minHeight: "unset"
  1898. }),
  1899. blackHover: {
  1900. "&:hover": {
  1901. boxShadow: "0 4px 20px 0px rgba(0, 0, 0, 0.14), 0 7px 10px -5px rgba(33, 33, 33, 0.4)",
  1902. backgroundColor: "#212121",
  1903. color: "#fff"
  1904. }
  1905. },
  1906. primaryHover: {
  1907. "&:hover": _objectSpread({
  1908. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1909. color: "#FFFFFF"
  1910. }, nextjs_material_kit["n" /* primaryBoxShadow */])
  1911. },
  1912. infoHover: {
  1913. "&:hover": _objectSpread({
  1914. backgroundColor: nextjs_material_kit["m" /* infoColor */],
  1915. color: "#FFFFFF"
  1916. }, nextjs_material_kit["k" /* infoBoxShadow */])
  1917. },
  1918. successHover: {
  1919. "&:hover": _objectSpread({
  1920. backgroundColor: nextjs_material_kit["u" /* successColor */],
  1921. color: "#FFFFFF"
  1922. }, nextjs_material_kit["s" /* successBoxShadow */])
  1923. },
  1924. warningHover: {
  1925. "&:hover": _objectSpread({
  1926. backgroundColor: nextjs_material_kit["z" /* warningColor */],
  1927. color: "#FFFFFF"
  1928. }, nextjs_material_kit["x" /* warningBoxShadow */])
  1929. },
  1930. dangerHover: {
  1931. "&:hover": _objectSpread({
  1932. backgroundColor: nextjs_material_kit["f" /* dangerColor */],
  1933. color: "#FFFFFF"
  1934. }, nextjs_material_kit["d" /* dangerBoxShadow */])
  1935. },
  1936. roseHover: {
  1937. "&:hover": _objectSpread({
  1938. backgroundColor: nextjs_material_kit["r" /* roseColor */],
  1939. color: "#FFFFFF"
  1940. }, nextjs_material_kit["q" /* roseBoxShadow */])
  1941. },
  1942. dropdownItemRTL: {
  1943. textAlign: "right"
  1944. },
  1945. dropdownDividerItem: {
  1946. margin: "5px 0",
  1947. backgroundColor: "rgba(0, 0, 0, 0.12)",
  1948. height: "1px",
  1949. overflow: "hidden"
  1950. },
  1951. buttonIcon: {
  1952. width: "20px",
  1953. height: "20px"
  1954. },
  1955. caret: {
  1956. transition: "all 150ms ease-in",
  1957. display: "inline-block",
  1958. width: "0",
  1959. height: "0",
  1960. marginLeft: "4px",
  1961. verticalAlign: "middle",
  1962. borderTop: "4px solid",
  1963. borderRight: "4px solid transparent",
  1964. borderLeft: "4px solid transparent"
  1965. },
  1966. caretActive: {
  1967. transform: "rotate(180deg)"
  1968. },
  1969. caretRTL: {
  1970. marginRight: "4px"
  1971. },
  1972. dropdownHeader: {
  1973. display: "block",
  1974. padding: "0.1875rem 1.25rem",
  1975. fontSize: "0.75rem",
  1976. lineHeight: "1.428571",
  1977. color: "#777",
  1978. whiteSpace: "nowrap",
  1979. fontWeight: "inherit",
  1980. marginTop: "10px",
  1981. minHeight: "unset",
  1982. "&:hover,&:focus": {
  1983. backgroundColor: "transparent",
  1984. cursor: "auto"
  1985. }
  1986. },
  1987. noLiPadding: {
  1988. padding: "0"
  1989. }
  1990. });
  1991. /* harmony default export */ var components_customDropdownStyle = (customDropdownStyle);
  1992. // CONCATENATED MODULE: ./components/CustomDropdown/CustomDropdown.js
  1993. var __jsx = external_react_default.a.createElement;
  1994. 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); }
  1995. // nodejs library that concatenates classes
  1996. // nodejs library to set properties for components
  1997. // @material-ui/core components
  1998. // core components
  1999. const useStyles = Object(styles_["makeStyles"])(components_customDropdownStyle);
  2000. function CustomDropdown(props) {
  2001. const [anchorEl, setAnchorEl] = external_react_default.a.useState(null);
  2002. const handleClick = event => {
  2003. if (anchorEl && anchorEl.contains(event.target)) {
  2004. setAnchorEl(null);
  2005. } else {
  2006. setAnchorEl(event.currentTarget);
  2007. }
  2008. };
  2009. const handleClose = param => {
  2010. setAnchorEl(null);
  2011. if (props && props.onClick) {
  2012. props.onClick(param);
  2013. }
  2014. };
  2015. const handleCloseAway = event => {
  2016. if (anchorEl.contains(event.target)) {
  2017. return;
  2018. }
  2019. setAnchorEl(null);
  2020. };
  2021. const classes = useStyles();
  2022. const {
  2023. buttonText,
  2024. buttonIcon,
  2025. dropdownList,
  2026. buttonProps,
  2027. dropup,
  2028. dropdownHeader,
  2029. caret,
  2030. hoverColor,
  2031. left,
  2032. rtlActive,
  2033. noLiPadding,
  2034. navDropdown
  2035. } = props;
  2036. const caretClasses = external_classnames_default()({
  2037. [classes.caret]: true,
  2038. [classes.caretActive]: Boolean(anchorEl),
  2039. [classes.caretRTL]: rtlActive
  2040. });
  2041. const dropdownItem = external_classnames_default()({
  2042. [classes.dropdownItem]: true,
  2043. [classes[hoverColor + "Hover"]]: true,
  2044. [classes.noLiPadding]: noLiPadding,
  2045. [classes.dropdownItemRTL]: rtlActive
  2046. });
  2047. let icon = null;
  2048. switch (typeof buttonIcon) {
  2049. case "object":
  2050. icon = __jsx(props.buttonIcon, {
  2051. className: classes.buttonIcon
  2052. });
  2053. break;
  2054. case "string":
  2055. icon = __jsx(Icon_default.a, {
  2056. className: classes.buttonIcon
  2057. }, props.buttonIcon);
  2058. break;
  2059. default:
  2060. icon = null;
  2061. break;
  2062. }
  2063. return __jsx("div", null, __jsx("div", null, __jsx(Button["a" /* default */], _extends({
  2064. "aria-label": "Notifications",
  2065. "aria-owns": anchorEl ? "menu-list" : null,
  2066. "aria-haspopup": "true"
  2067. }, buttonProps, {
  2068. onClick: handleClick
  2069. }), icon, buttonText !== undefined ? buttonText : null, caret ? __jsx("b", {
  2070. className: caretClasses
  2071. }) : null)), __jsx(Popper_default.a, {
  2072. open: Boolean(anchorEl),
  2073. anchorEl: anchorEl,
  2074. transition: true,
  2075. disablePortal: true,
  2076. placement: dropup ? left ? "top-start" : "top" : left ? "bottom-start" : "bottom",
  2077. className: external_classnames_default()({
  2078. [classes.popperClose]: !anchorEl,
  2079. [classes.popperResponsive]: true,
  2080. [classes.pooperNav]: Boolean(anchorEl) && navDropdown
  2081. })
  2082. }, () => __jsx(Grow_default.a, {
  2083. in: Boolean(anchorEl),
  2084. id: "menu-list",
  2085. style: dropup ? {
  2086. transformOrigin: "0 100% 0"
  2087. } : {
  2088. transformOrigin: "0 0 0"
  2089. }
  2090. }, __jsx(Paper_default.a, {
  2091. className: classes.dropdown
  2092. }, __jsx(ClickAwayListener_default.a, {
  2093. onClickAway: handleCloseAway
  2094. }, __jsx(MenuList_default.a, {
  2095. role: "menu",
  2096. className: classes.menuList
  2097. }, dropdownHeader !== undefined ? __jsx(MenuItem_default.a, {
  2098. onClick: () => handleClose(dropdownHeader),
  2099. className: classes.dropdownHeader
  2100. }, dropdownHeader) : null, dropdownList.map((prop, key) => {
  2101. if (prop.divider) {
  2102. return __jsx(Divider_default.a, {
  2103. key: key,
  2104. onClick: () => handleClose("divider"),
  2105. className: classes.dropdownDividerItem
  2106. });
  2107. }
  2108. return __jsx(MenuItem_default.a, {
  2109. key: key,
  2110. onClick: () => handleClose(prop),
  2111. className: dropdownItem
  2112. }, prop);
  2113. })))))));
  2114. }
  2115. CustomDropdown.defaultProps = {
  2116. caret: true,
  2117. hoverColor: "primary"
  2118. };
  2119. /***/ }),
  2120. /***/ "RTZ3":
  2121. /***/ (function(module, exports) {
  2122. module.exports = "/_next/static/images/headerMercy-66fb0f24da658dc8a2ea659a7321ab7d.png";
  2123. /***/ }),
  2124. /***/ "T+ot":
  2125. /***/ (function(module, exports) {
  2126. /***/ }),
  2127. /***/ "UsYt":
  2128. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2129. "use strict";
  2130. // EXPORTS
  2131. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ CardBody; });
  2132. // EXTERNAL MODULE: external "react"
  2133. var external_react_ = __webpack_require__("cDcd");
  2134. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2135. // EXTERNAL MODULE: external "classnames"
  2136. var external_classnames_ = __webpack_require__("K2gz");
  2137. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2138. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2139. var styles_ = __webpack_require__("9Pu4");
  2140. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/cardBodyStyle.js
  2141. const cardBodyStyle = {
  2142. cardBody: {
  2143. padding: "0.9375rem 1.875rem",
  2144. flex: "1 1 auto"
  2145. }
  2146. };
  2147. /* harmony default export */ var components_cardBodyStyle = (cardBodyStyle);
  2148. // CONCATENATED MODULE: ./components/Card/CardBody.js
  2149. var __jsx = external_react_default.a.createElement;
  2150. 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); }
  2151. 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; }
  2152. 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; }
  2153. // nodejs library that concatenates classes
  2154. // nodejs library to set properties for components
  2155. // @material-ui/core components
  2156. // @material-ui/icons
  2157. // core components
  2158. const useStyles = Object(styles_["makeStyles"])(components_cardBodyStyle);
  2159. function CardBody(props) {
  2160. const classes = useStyles();
  2161. const {
  2162. className,
  2163. children
  2164. } = props,
  2165. rest = _objectWithoutProperties(props, ["className", "children"]);
  2166. const cardBodyClasses = external_classnames_default()({
  2167. [classes.cardBody]: true,
  2168. [className]: className !== undefined
  2169. });
  2170. return __jsx("div", _extends({
  2171. className: cardBodyClasses
  2172. }, rest), children);
  2173. }
  2174. /***/ }),
  2175. /***/ "Vjj2":
  2176. /***/ (function(module, exports) {
  2177. module.exports = require("cookies");
  2178. /***/ }),
  2179. /***/ "Wh1t":
  2180. /***/ (function(module, exports) {
  2181. module.exports = require("@material-ui/core/Button");
  2182. /***/ }),
  2183. /***/ "Y1h/":
  2184. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2185. "use strict";
  2186. // ESM COMPAT FLAG
  2187. __webpack_require__.r(__webpack_exports__);
  2188. // EXPORTS
  2189. __webpack_require__.d(__webpack_exports__, "getServerSideProps", function() { return /* binding */ getServerSideProps; });
  2190. // EXTERNAL MODULE: external "react"
  2191. var external_react_ = __webpack_require__("cDcd");
  2192. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2193. // EXTERNAL MODULE: external "classnames"
  2194. var external_classnames_ = __webpack_require__("K2gz");
  2195. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2196. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2197. var styles_ = __webpack_require__("9Pu4");
  2198. // EXTERNAL MODULE: ./components/Header/HeaderMercy.js
  2199. var HeaderMercy = __webpack_require__("aYf7");
  2200. // EXTERNAL MODULE: ./components/Header/Header.js + 1 modules
  2201. var Header = __webpack_require__("8x5e");
  2202. // EXTERNAL MODULE: ./components/Footer/FooterSosmed.js
  2203. var FooterSosmed = __webpack_require__("wzON");
  2204. // EXTERNAL MODULE: ./components/Parallax/Parallax.js + 1 modules
  2205. var Parallax = __webpack_require__("Z2Lm");
  2206. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/components.js
  2207. var components = __webpack_require__("bhG4");
  2208. // EXTERNAL MODULE: ./api/sales/sales-mercy.js
  2209. var sales_mercy = __webpack_require__("63G7");
  2210. var sales_mercy_default = /*#__PURE__*/__webpack_require__.n(sales_mercy);
  2211. // EXTERNAL MODULE: ./pages-sections/yamaha/snackbar.js
  2212. var snackbar = __webpack_require__("QMLM");
  2213. // EXTERNAL MODULE: ./assets/jss/nextjs-material-kit/pages/profilePage.js
  2214. var profilePage = __webpack_require__("uU2H");
  2215. // EXTERNAL MODULE: external "@material-ui/core/Grid"
  2216. var Grid_ = __webpack_require__("JQ2V");
  2217. // EXTERNAL MODULE: ./components/Grid/GridContainer.js
  2218. var GridContainer = __webpack_require__("mtPR");
  2219. // EXTERNAL MODULE: ./components/Grid/GridItem.js
  2220. var GridItem = __webpack_require__("i4t8");
  2221. // EXTERNAL MODULE: ./components/Card/Card.js + 1 modules
  2222. var Card = __webpack_require__("A2So");
  2223. // EXTERNAL MODULE: ./components/Card/CardBody.js + 1 modules
  2224. var CardBody = __webpack_require__("UsYt");
  2225. // EXTERNAL MODULE: ./components/Card/CardHeader.js + 1 modules
  2226. var CardHeader = __webpack_require__("2zww");
  2227. // EXTERNAL MODULE: ./components/CustomButtons/Button.js + 1 modules
  2228. var Button = __webpack_require__("Kg+a");
  2229. // EXTERNAL MODULE: ./components/Pagination/Pagination.js + 1 modules
  2230. var Pagination = __webpack_require__("+DDI");
  2231. // EXTERNAL MODULE: external "@material-ui/core/Icon"
  2232. var Icon_ = __webpack_require__("7vM9");
  2233. // EXTERNAL MODULE: ./assets/img/Logo Star.png
  2234. var Logo_Star = __webpack_require__("kxLz");
  2235. var Logo_Star_default = /*#__PURE__*/__webpack_require__.n(Logo_Star);
  2236. // EXTERNAL MODULE: external "@material-ui/icons/Email"
  2237. var Email_ = __webpack_require__("OL+V");
  2238. var Email_default = /*#__PURE__*/__webpack_require__.n(Email_);
  2239. // EXTERNAL MODULE: external "@material-ui/icons/Phone"
  2240. var Phone_ = __webpack_require__("lgrB");
  2241. var Phone_default = /*#__PURE__*/__webpack_require__.n(Phone_);
  2242. // EXTERNAL MODULE: external "@material-ui/icons/WhatsApp"
  2243. var WhatsApp_ = __webpack_require__("gc93");
  2244. var WhatsApp_default = /*#__PURE__*/__webpack_require__.n(WhatsApp_);
  2245. // EXTERNAL MODULE: external "@material-ui/icons/BusinessOutlined"
  2246. var BusinessOutlined_ = __webpack_require__("ygnN");
  2247. var BusinessOutlined_default = /*#__PURE__*/__webpack_require__.n(BusinessOutlined_);
  2248. // EXTERNAL MODULE: external "@material-ui/icons/Language"
  2249. var Language_ = __webpack_require__("D+hd");
  2250. var Language_default = /*#__PURE__*/__webpack_require__.n(Language_);
  2251. // CONCATENATED MODULE: ./pages-sections/sales/sales_detail.js
  2252. var __jsx = external_react_default.a.createElement;
  2253. 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; }
  2254. 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; }
  2255. const useStyles = Object(styles_["makeStyles"])(profilePage["a" /* default */]);
  2256. const DataLatestNews = function (_ref) {
  2257. let {
  2258. backend,
  2259. sales
  2260. } = _ref,
  2261. props = _objectWithoutProperties(_ref, ["backend", "sales"]);
  2262. const classes = useStyles();
  2263. const imageClasses = external_classnames_default()(classes.imgRaised, classes.imgRoundedCircle, classes.imgFluid);
  2264. const navImageClasses = external_classnames_default()(classes.imgRounded, classes.imgGallery);
  2265. const DataSales = sales.map(data => {
  2266. return __jsx("div", {
  2267. className: classes.container
  2268. }, __jsx("link", {
  2269. rel: "stylesheet",
  2270. href: "https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css"
  2271. }), __jsx("script", {
  2272. src: "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"
  2273. }), __jsx("script", {
  2274. src: "https://maxcdn.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"
  2275. }), __jsx(GridContainer["a" /* default */], {
  2276. justify: "center"
  2277. }, __jsx(GridItem["a" /* default */], {
  2278. xs: 12,
  2279. sm: 12,
  2280. md: 6
  2281. }, __jsx("div", {
  2282. className: classes.profile
  2283. }, __jsx("div", {
  2284. class: "jumbotron",
  2285. style: {
  2286. backgroundColor: "#000",
  2287. marginLeft: "-15px",
  2288. marginRight: "-15px"
  2289. }
  2290. }, __jsx("br", null), __jsx("br", null), __jsx("img", {
  2291. className: "image",
  2292. src: Logo_Star_default.a
  2293. }), __jsx("div", {
  2294. style: {
  2295. marginTop: "-70px"
  2296. }
  2297. }, __jsx("h1", {
  2298. style: {
  2299. color: "#fff"
  2300. }
  2301. }, data.name), __jsx("p", {
  2302. style: {
  2303. color: "#fff"
  2304. }
  2305. }, __jsx("strong", null, data.job_title))), __jsx("br", null), __jsx(Button["a" /* default */], {
  2306. color: "primary",
  2307. round: true,
  2308. href: `tel:${data.telp}`,
  2309. target: "_blank"
  2310. }, __jsx(Phone_default.a, {
  2311. className: classes.icons
  2312. }), " Call Us"), __jsx(Button["a" /* default */], {
  2313. color: "primary",
  2314. round: true,
  2315. href: `mailto:${data.email}`,
  2316. target: "_blank"
  2317. }, __jsx(Email_default.a, {
  2318. className: classes.icons
  2319. }), " Email Us"), __jsx(Button["a" /* default */], {
  2320. color: "primary",
  2321. round: true,
  2322. href: `https://wa.me/62${data.wa}`,
  2323. target: "_blank"
  2324. }, __jsx(WhatsApp_default.a, {
  2325. className: classes.icons
  2326. }), " WA Us")), __jsx("div", {
  2327. class: "table-responsive",
  2328. align: "left"
  2329. }, __jsx("table", {
  2330. class: "table"
  2331. }, __jsx("thead", null, __jsx("tr", null, __jsx("th", null, __jsx(Button["a" /* default */], {
  2332. color: "primary",
  2333. round: true
  2334. }, __jsx(Phone_default.a, {
  2335. className: classes.icons
  2336. }))), __jsx("th", null, data.telp, " ", __jsx("br", null), " Mobile ")), __jsx("tr", null, __jsx("th", null, __jsx(Button["a" /* default */], {
  2337. color: "primary",
  2338. round: true
  2339. }, __jsx(Email_default.a, {
  2340. className: classes.icons
  2341. }))), __jsx("th", null, data.email, " ", __jsx("br", null), " Email ")), __jsx("tr", null, __jsx("th", null, __jsx(Button["a" /* default */], {
  2342. color: "primary",
  2343. round: true
  2344. }, __jsx(BusinessOutlined_default.a, {
  2345. className: classes.icons
  2346. }))), __jsx("th", null, data.company, " ", __jsx("br", null), " ", data.job_title, " ")), __jsx("tr", null, __jsx("th", null, __jsx(Button["a" /* default */], {
  2347. color: "primary",
  2348. round: true
  2349. }, __jsx(Language_default.a, {
  2350. className: classes.icons
  2351. }))), __jsx("th", null, "thamrin.mercedes-benz.co.id", __jsx("br", null), " Website ")))))))));
  2352. });
  2353. return __jsx("div", null, DataSales);
  2354. };
  2355. /* harmony default export */ var sales_detail = (DataLatestNews);
  2356. // EXTERNAL MODULE: external "cookies"
  2357. var external_cookies_ = __webpack_require__("Vjj2");
  2358. // EXTERNAL MODULE: ./pages/home.css
  2359. var home = __webpack_require__("M9IG");
  2360. // CONCATENATED MODULE: ./pages/sales/sales_detail.js
  2361. var sales_detail_jsx = external_react_default.a.createElement;
  2362. 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; }
  2363. 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; }
  2364. const dashboardRoutes = [];
  2365. const sales_detail_useStyles = Object(styles_["makeStyles"])(components["a" /* default */]);
  2366. const detailSales = function (_ref) {
  2367. let {
  2368. backend,
  2369. sales
  2370. } = _ref,
  2371. props = sales_detail_objectWithoutProperties(_ref, ["backend", "sales"]);
  2372. const classes = sales_detail_useStyles();
  2373. const rest = Object.assign({}, props);
  2374. sales_detail_jsx(sales_detail, {
  2375. sales: props.sales
  2376. });
  2377. return sales_detail_jsx("div", null, sales_detail_jsx(sales_detail, {
  2378. sales: sales,
  2379. backend: backend
  2380. }), sales_detail_jsx(FooterSosmed["a" /* default */], {
  2381. style: {
  2382. position: 'absolute',
  2383. left: 0,
  2384. right: 0,
  2385. bottom: 0
  2386. }
  2387. }));
  2388. };
  2389. /* harmony default export */ var sales_sales_detail = __webpack_exports__["default"] = (detailSales);
  2390. async function getServerSideProps(context) {
  2391. var {
  2392. query
  2393. } = context;
  2394. var sales = [];
  2395. const backend = process.env.BACKEND_SERVER_URI;
  2396. var res = await sales_mercy_default.a.GetDetailSalesMerci(query.s || 0);
  2397. if (res["STATUS"] === 1) {
  2398. sales = res["DATA"]["salesMercies"];
  2399. }
  2400. console.log("detail :", sales);
  2401. return {
  2402. props: {
  2403. sales,
  2404. backend
  2405. } // will be passed to the page component as props
  2406. };
  2407. }
  2408. /***/ }),
  2409. /***/ "Y8uC":
  2410. /***/ (function(module, exports) {
  2411. module.exports = require("@material-ui/core/Hidden");
  2412. /***/ }),
  2413. /***/ "YFqc":
  2414. /***/ (function(module, exports, __webpack_require__) {
  2415. module.exports = __webpack_require__("cTJO")
  2416. /***/ }),
  2417. /***/ "YTqd":
  2418. /***/ (function(module, exports, __webpack_require__) {
  2419. "use strict";
  2420. Object.defineProperty(exports, "__esModule", {
  2421. value: true
  2422. }); // this isn't importing the escape-string-regex module
  2423. // to reduce bytes
  2424. function escapeRegex(str) {
  2425. return str.replace(/[|\\{}()[\]^$+*?.-]/g, '\\$&');
  2426. }
  2427. function getRouteRegex(normalizedRoute) {
  2428. // Escape all characters that could be considered RegEx
  2429. const escapedRoute = escapeRegex(normalizedRoute.replace(/\/$/, '') || '/');
  2430. const groups = {};
  2431. let groupIndex = 1;
  2432. const parameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2433. const isCatchAll = /^(\\\.){3}/.test($1);
  2434. groups[$1 // Un-escape key
  2435. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '') // eslint-disable-next-line no-sequences
  2436. ] = {
  2437. pos: groupIndex++,
  2438. repeat: isCatchAll
  2439. };
  2440. return isCatchAll ? '/(.+?)' : '/([^/]+?)';
  2441. });
  2442. let namedParameterizedRoute; // dead code eliminate for browser since it's only needed
  2443. // while generating routes-manifest
  2444. if (true) {
  2445. namedParameterizedRoute = escapedRoute.replace(/\/\\\[([^/]+?)\\\](?=\/|$)/g, (_, $1) => {
  2446. const isCatchAll = /^(\\\.){3}/.test($1);
  2447. const key = $1 // Un-escape key
  2448. .replace(/\\([|\\{}()[\]^$+*?.-])/g, '$1').replace(/^\.{3}/, '');
  2449. return isCatchAll ? `/(?<${escapeRegex(key)}>.+?)` : `/(?<${escapeRegex(key)}>[^/]+?)`;
  2450. });
  2451. }
  2452. return Object.assign({
  2453. re: new RegExp('^' + parameterizedRoute + '(?:/)?$', 'i'),
  2454. groups
  2455. }, namedParameterizedRoute ? {
  2456. namedRegex: `^${namedParameterizedRoute}(?:/)?$`
  2457. } : {});
  2458. }
  2459. exports.getRouteRegex = getRouteRegex;
  2460. /***/ }),
  2461. /***/ "Z2Lm":
  2462. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2463. "use strict";
  2464. // EXPORTS
  2465. __webpack_require__.d(__webpack_exports__, "a", function() { return /* binding */ Parallax; });
  2466. // EXTERNAL MODULE: external "react"
  2467. var external_react_ = __webpack_require__("cDcd");
  2468. var external_react_default = /*#__PURE__*/__webpack_require__.n(external_react_);
  2469. // EXTERNAL MODULE: external "classnames"
  2470. var external_classnames_ = __webpack_require__("K2gz");
  2471. var external_classnames_default = /*#__PURE__*/__webpack_require__.n(external_classnames_);
  2472. // EXTERNAL MODULE: external "@material-ui/core/styles"
  2473. var styles_ = __webpack_require__("9Pu4");
  2474. // CONCATENATED MODULE: ./assets/jss/nextjs-material-kit/components/parallaxStyle.js
  2475. const parallaxStyle = theme => ({
  2476. parallax: {
  2477. height: "90vh",
  2478. maxHeight: "1000px",
  2479. overflow: "hidden",
  2480. position: "relative",
  2481. backgroundPosition: "center top",
  2482. backgroundSize: "cover",
  2483. margin: "0",
  2484. padding: "0",
  2485. border: "0",
  2486. display: "flex",
  2487. alignItems: "center"
  2488. },
  2489. filter: {
  2490. "&:before": {
  2491. background: "#212121"
  2492. },
  2493. "&:after,&:before": {
  2494. position: "absolute",
  2495. zIndex: "1",
  2496. width: "100%",
  2497. height: "100%",
  2498. display: "block",
  2499. left: "0",
  2500. top: "0",
  2501. content: "''"
  2502. }
  2503. },
  2504. small: {
  2505. height: "380px"
  2506. },
  2507. parallaxResponsive: {
  2508. [theme.breakpoints.down("md")]: {
  2509. minHeight: "660px"
  2510. }
  2511. }
  2512. });
  2513. /* harmony default export */ var components_parallaxStyle = (parallaxStyle);
  2514. // CONCATENATED MODULE: ./components/Parallax/Parallax.js
  2515. var __jsx = external_react_default.a.createElement;
  2516. 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; }
  2517. 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; }
  2518. 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; }
  2519. // nodejs library that concatenates classes
  2520. // nodejs library to set properties for components
  2521. // @material-ui/core components
  2522. // core components
  2523. const useStyles = Object(styles_["makeStyles"])(components_parallaxStyle);
  2524. function Parallax(props) {
  2525. let windowScrollTop; // if (window.innerWidth >= 768) {
  2526. // windowScrollTop = window.pageYOffset / 3;
  2527. // } else {
  2528. // windowScrollTop = 0;
  2529. // }
  2530. const [transform, setTransform] = external_react_default.a.useState("translate3d(0,0px,0)");
  2531. external_react_default.a.useEffect(() => {
  2532. if (window.innerWidth >= 768) {
  2533. window.addEventListener("scroll", resetTransform);
  2534. }
  2535. return function cleanup() {
  2536. if (window.innerWidth >= 768) {
  2537. window.removeEventListener("scroll", resetTransform);
  2538. }
  2539. };
  2540. });
  2541. const resetTransform = () => {
  2542. var windowScrollTop = window.pageYOffset / 3;
  2543. setTransform("translate3d(0," + windowScrollTop + "px,0)");
  2544. };
  2545. const {
  2546. filter,
  2547. className,
  2548. children,
  2549. style,
  2550. image,
  2551. small,
  2552. responsive
  2553. } = props;
  2554. const classes = useStyles();
  2555. const parallaxClasses = external_classnames_default()({
  2556. [classes.parallax]: true,
  2557. [classes.filter]: filter,
  2558. [classes.small]: small,
  2559. [classes.parallaxResponsive]: responsive,
  2560. [className]: className !== undefined
  2561. });
  2562. return __jsx("div", {
  2563. className: parallaxClasses,
  2564. style: _objectSpread({}, style, {
  2565. backgroundImage: "url(" + image + ")",
  2566. transform: transform
  2567. })
  2568. }, children);
  2569. }
  2570. /***/ }),
  2571. /***/ "aYf7":
  2572. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2573. "use strict";
  2574. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HeaderMercy; });
  2575. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  2576. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  2577. /* harmony import */ var react_scroll__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("I/1N");
  2578. /* harmony import */ var react_scroll__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_scroll__WEBPACK_IMPORTED_MODULE_1__);
  2579. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("9Pu4");
  2580. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_2__);
  2581. /* harmony import */ var _material_ui_core_List__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("0LMq");
  2582. /* harmony import */ var _material_ui_core_List__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_List__WEBPACK_IMPORTED_MODULE_3__);
  2583. /* harmony import */ var _material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("c25J");
  2584. /* harmony import */ var _material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4__);
  2585. /* harmony import */ var _material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("7vM9");
  2586. /* harmony import */ var _material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Icon__WEBPACK_IMPORTED_MODULE_5__);
  2587. /* harmony import */ var components_Header_HeaderHome_css__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("T+ot");
  2588. /* harmony import */ var components_Header_HeaderHome_css__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(components_Header_HeaderHome_css__WEBPACK_IMPORTED_MODULE_6__);
  2589. /* harmony import */ var _material_ui_icons__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("2kat");
  2590. /* harmony import */ var _material_ui_icons__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons__WEBPACK_IMPORTED_MODULE_7__);
  2591. /* harmony import */ var components_CustomDropdown_CustomDropdown_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("QOEo");
  2592. /* harmony import */ var components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("Kg+a");
  2593. /* harmony import */ var assets_jss_nextjs_material_kit_components_headerLinksStyle_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("0G1C");
  2594. /* harmony import */ var assets_img_headerMercy_png__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("RTZ3");
  2595. /* harmony import */ var assets_img_headerMercy_png__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(assets_img_headerMercy_png__WEBPACK_IMPORTED_MODULE_11__);
  2596. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  2597. /*eslint-disable*/
  2598. // @material-ui/core components
  2599. // import People from "@material-ui/core/People";
  2600. // @material-ui/icons
  2601. // core components
  2602. 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"]);
  2603. function HeaderMercy(props) {
  2604. const classes = useStyles();
  2605. return __jsx("div", {
  2606. align: "left"
  2607. }, __jsx(_material_ui_core_List__WEBPACK_IMPORTED_MODULE_3___default.a, {
  2608. className: classes.list
  2609. }, __jsx(_material_ui_core_ListItem__WEBPACK_IMPORTED_MODULE_4___default.a, {
  2610. className: classes.listItem
  2611. }, __jsx(react_scroll__WEBPACK_IMPORTED_MODULE_1__["Link"], {
  2612. href: "#"
  2613. }, __jsx(components_CustomButtons_Button_js__WEBPACK_IMPORTED_MODULE_9__[/* default */ "a"], {
  2614. color: "transparent",
  2615. className: classes.navLink
  2616. }, __jsx("img", {
  2617. src: assets_img_headerMercy_png__WEBPACK_IMPORTED_MODULE_11___default.a,
  2618. width: "180px"
  2619. }))))));
  2620. }
  2621. /***/ }),
  2622. /***/ "bhG4":
  2623. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2624. "use strict";
  2625. /* harmony import */ var _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  2626. const componentsStyle = {
  2627. container: _jss_nextjs_material_kit__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  2628. brand: {
  2629. color: "#FFFFFF",
  2630. textAlign: "left"
  2631. },
  2632. title: {
  2633. fontSize: "4.2rem",
  2634. fontWeight: "600",
  2635. display: "inline-block",
  2636. position: "relative"
  2637. },
  2638. subtitle: {
  2639. fontSize: "1.313rem",
  2640. maxWidth: "510px",
  2641. margin: "10px 0 0"
  2642. },
  2643. main: {
  2644. background: "#FFFFFF",
  2645. position: "relative",
  2646. zIndex: "3"
  2647. },
  2648. mainRaised: {
  2649. margin: "-60px 30px 0px",
  2650. borderRadius: "6px",
  2651. 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)",
  2652. "@media (max-width: 830px)": {
  2653. marginLeft: "10px",
  2654. marginRight: "10px"
  2655. }
  2656. },
  2657. link: {
  2658. textDecoration: "none"
  2659. },
  2660. textCenter: {
  2661. textAlign: "center"
  2662. }
  2663. };
  2664. /* harmony default export */ __webpack_exports__["a"] = (componentsStyle);
  2665. /***/ }),
  2666. /***/ "bx/+":
  2667. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2668. "use strict";
  2669. __webpack_require__.r(__webpack_exports__);
  2670. // Apollo Value Configuration
  2671. const ApolloConfig = {
  2672. graphql_uri: process.env.API_GRAPHQL_URI
  2673. };
  2674. /* harmony default export */ __webpack_exports__["default"] = (ApolloConfig);
  2675. /***/ }),
  2676. /***/ "bzos":
  2677. /***/ (function(module, exports) {
  2678. module.exports = require("url");
  2679. /***/ }),
  2680. /***/ "c25J":
  2681. /***/ (function(module, exports) {
  2682. module.exports = require("@material-ui/core/ListItem");
  2683. /***/ }),
  2684. /***/ "cDcd":
  2685. /***/ (function(module, exports) {
  2686. module.exports = require("react");
  2687. /***/ }),
  2688. /***/ "cTJO":
  2689. /***/ (function(module, exports, __webpack_require__) {
  2690. "use strict";
  2691. var _interopRequireDefault = __webpack_require__("AroE");
  2692. var _interopRequireWildcard = __webpack_require__("7KCV");
  2693. exports.__esModule = true;
  2694. exports.default = void 0;
  2695. var _react = _interopRequireWildcard(__webpack_require__("cDcd"));
  2696. var _url = __webpack_require__("bzos");
  2697. var _utils = __webpack_require__("kYf9");
  2698. var _router = _interopRequireDefault(__webpack_require__("nOHt"));
  2699. var _router2 = __webpack_require__("elyg");
  2700. function isLocal(href) {
  2701. var url = (0, _url.parse)(href, false, true);
  2702. var origin = (0, _url.parse)((0, _utils.getLocationOrigin)(), false, true);
  2703. return !url.host || url.protocol === origin.protocol && url.host === origin.host;
  2704. }
  2705. function memoizedFormatUrl(formatFunc) {
  2706. var lastHref = null;
  2707. var lastAs = null;
  2708. var lastResult = null;
  2709. return (href, as) => {
  2710. if (lastResult && href === lastHref && as === lastAs) {
  2711. return lastResult;
  2712. }
  2713. var result = formatFunc(href, as);
  2714. lastHref = href;
  2715. lastAs = as;
  2716. lastResult = result;
  2717. return result;
  2718. };
  2719. }
  2720. function formatUrl(url) {
  2721. return url && typeof url === 'object' ? (0, _utils.formatWithValidation)(url) : url;
  2722. }
  2723. var observer;
  2724. var listeners = new Map();
  2725. var IntersectionObserver = false ? undefined : null;
  2726. var prefetched = {};
  2727. function getObserver() {
  2728. // Return shared instance of IntersectionObserver if already created
  2729. if (observer) {
  2730. return observer;
  2731. } // Only create shared IntersectionObserver if supported in browser
  2732. if (!IntersectionObserver) {
  2733. return undefined;
  2734. }
  2735. return observer = new IntersectionObserver(entries => {
  2736. entries.forEach(entry => {
  2737. if (!listeners.has(entry.target)) {
  2738. return;
  2739. }
  2740. var cb = listeners.get(entry.target);
  2741. if (entry.isIntersecting || entry.intersectionRatio > 0) {
  2742. observer.unobserve(entry.target);
  2743. listeners.delete(entry.target);
  2744. cb();
  2745. }
  2746. });
  2747. }, {
  2748. rootMargin: '200px'
  2749. });
  2750. }
  2751. var listenToIntersections = (el, cb) => {
  2752. var observer = getObserver();
  2753. if (!observer) {
  2754. return () => {};
  2755. }
  2756. observer.observe(el);
  2757. listeners.set(el, cb);
  2758. return () => {
  2759. try {
  2760. observer.unobserve(el);
  2761. } catch (err) {
  2762. console.error(err);
  2763. }
  2764. listeners.delete(el);
  2765. };
  2766. };
  2767. class Link extends _react.Component {
  2768. constructor(props) {
  2769. super(props);
  2770. this.p = void 0;
  2771. this.cleanUpListeners = () => {};
  2772. this.formatUrls = memoizedFormatUrl((href, asHref) => {
  2773. return {
  2774. href: (0, _router2.addBasePath)(formatUrl(href)),
  2775. as: asHref ? (0, _router2.addBasePath)(formatUrl(asHref)) : asHref
  2776. };
  2777. });
  2778. this.linkClicked = e => {
  2779. var {
  2780. nodeName,
  2781. target
  2782. } = e.currentTarget;
  2783. if (nodeName === 'A' && (target && target !== '_self' || e.metaKey || e.ctrlKey || e.shiftKey || e.nativeEvent && e.nativeEvent.which === 2)) {
  2784. // ignore click for new tab / new window behavior
  2785. return;
  2786. }
  2787. var {
  2788. href,
  2789. as
  2790. } = this.formatUrls(this.props.href, this.props.as);
  2791. if (!isLocal(href)) {
  2792. // ignore click if it's outside our scope (e.g. https://google.com)
  2793. return;
  2794. }
  2795. var {
  2796. pathname
  2797. } = window.location;
  2798. href = (0, _url.resolve)(pathname, href);
  2799. as = as ? (0, _url.resolve)(pathname, as) : href;
  2800. e.preventDefault(); // avoid scroll for urls with anchor refs
  2801. var {
  2802. scroll
  2803. } = this.props;
  2804. if (scroll == null) {
  2805. scroll = as.indexOf('#') < 0;
  2806. } // replace state instead of push if prop is present
  2807. _router.default[this.props.replace ? 'replace' : 'push'](href, as, {
  2808. shallow: this.props.shallow
  2809. }).then(success => {
  2810. if (!success) return;
  2811. if (scroll) {
  2812. window.scrollTo(0, 0);
  2813. document.body.focus();
  2814. }
  2815. });
  2816. };
  2817. if (false) {}
  2818. this.p = props.prefetch !== false;
  2819. }
  2820. componentWillUnmount() {
  2821. this.cleanUpListeners();
  2822. }
  2823. getPaths() {
  2824. var {
  2825. pathname
  2826. } = window.location;
  2827. var {
  2828. href: parsedHref,
  2829. as: parsedAs
  2830. } = this.formatUrls(this.props.href, this.props.as);
  2831. var resolvedHref = (0, _url.resolve)(pathname, parsedHref);
  2832. return [resolvedHref, parsedAs ? (0, _url.resolve)(pathname, parsedAs) : resolvedHref];
  2833. }
  2834. handleRef(ref) {
  2835. if (this.p && IntersectionObserver && ref && ref.tagName) {
  2836. this.cleanUpListeners();
  2837. var isPrefetched = prefetched[this.getPaths().join( // Join on an invalid URI character
  2838. '%')];
  2839. if (!isPrefetched) {
  2840. this.cleanUpListeners = listenToIntersections(ref, () => {
  2841. this.prefetch();
  2842. });
  2843. }
  2844. }
  2845. } // The function is memoized so that no extra lifecycles are needed
  2846. // as per https://reactjs.org/blog/2018/06/07/you-probably-dont-need-derived-state.html
  2847. prefetch(options) {
  2848. if (!this.p || true) return; // Prefetch the JSON page if asked (only in the client)
  2849. var paths = this.getPaths(); // We need to handle a prefetch error here since we may be
  2850. // loading with priority which can reject but we don't
  2851. // want to force navigation since this is only a prefetch
  2852. _router.default.prefetch(paths[
  2853. /* href */
  2854. 0], paths[
  2855. /* asPath */
  2856. 1], options).catch(err => {
  2857. if (false) {}
  2858. });
  2859. prefetched[paths.join( // Join on an invalid URI character
  2860. '%')] = true;
  2861. }
  2862. render() {
  2863. var {
  2864. children
  2865. } = this.props;
  2866. var {
  2867. href,
  2868. as
  2869. } = 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
  2870. if (typeof children === 'string') {
  2871. children = _react.default.createElement("a", null, children);
  2872. } // This will return the first child, if multiple are provided it will throw an error
  2873. var child = _react.Children.only(children);
  2874. var props = {
  2875. ref: el => {
  2876. this.handleRef(el);
  2877. if (child && typeof child === 'object' && child.ref) {
  2878. if (typeof child.ref === 'function') child.ref(el);else if (typeof child.ref === 'object') {
  2879. child.ref.current = el;
  2880. }
  2881. }
  2882. },
  2883. onMouseEnter: e => {
  2884. if (child.props && typeof child.props.onMouseEnter === 'function') {
  2885. child.props.onMouseEnter(e);
  2886. }
  2887. this.prefetch({
  2888. priority: true
  2889. });
  2890. },
  2891. onClick: e => {
  2892. if (child.props && typeof child.props.onClick === 'function') {
  2893. child.props.onClick(e);
  2894. }
  2895. if (!e.defaultPrevented) {
  2896. this.linkClicked(e);
  2897. }
  2898. }
  2899. }; // If child is an <a> tag and doesn't have a href attribute, or if the 'passHref' property is
  2900. // defined, we specify the current 'href', so that repetition is not needed by the user
  2901. if (this.props.passHref || child.type === 'a' && !('href' in child.props)) {
  2902. props.href = as || href;
  2903. } // Add the ending slash to the paths. So, we can serve the
  2904. // "<page>/index.html" directly.
  2905. if (false) { var rewriteUrlForNextExport; }
  2906. return _react.default.cloneElement(child, props);
  2907. }
  2908. }
  2909. if (false) { var exact, PropTypes, warn; }
  2910. var _default = Link;
  2911. exports.default = _default;
  2912. /***/ }),
  2913. /***/ "dZ6Y":
  2914. /***/ (function(module, exports, __webpack_require__) {
  2915. "use strict";
  2916. /*
  2917. MIT License
  2918. Copyright (c) Jason Miller (https://jasonformat.com/)
  2919. 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:
  2920. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
  2921. 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.
  2922. */
  2923. Object.defineProperty(exports, "__esModule", {
  2924. value: true
  2925. });
  2926. function mitt() {
  2927. const all = Object.create(null);
  2928. return {
  2929. on(type, handler) {
  2930. ;
  2931. (all[type] || (all[type] = [])).push(handler);
  2932. },
  2933. off(type, handler) {
  2934. if (all[type]) {
  2935. // tslint:disable-next-line:no-bitwise
  2936. all[type].splice(all[type].indexOf(handler) >>> 0, 1);
  2937. }
  2938. },
  2939. emit(type, ...evts) {
  2940. // eslint-disable-next-line array-callback-return
  2941. ;
  2942. (all[type] || []).slice().map(handler => {
  2943. handler(...evts);
  2944. });
  2945. }
  2946. };
  2947. }
  2948. exports.default = mitt;
  2949. /***/ }),
  2950. /***/ "eDSW":
  2951. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2952. "use strict";
  2953. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hexToRGBAlpha; });
  2954. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return drawerWidth; });
  2955. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "w", function() { return transition; });
  2956. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return container; });
  2957. /* unused harmony export conatinerFluid */
  2958. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return boxShadow; });
  2959. /* unused harmony export card */
  2960. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return defaultFont; });
  2961. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return primaryColor; });
  2962. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "z", function() { return warningColor; });
  2963. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return dangerColor; });
  2964. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return successColor; });
  2965. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return infoColor; });
  2966. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return roseColor; });
  2967. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return grayColor; });
  2968. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return primaryBoxShadow; });
  2969. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return infoBoxShadow; });
  2970. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return successBoxShadow; });
  2971. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "x", function() { return warningBoxShadow; });
  2972. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return dangerBoxShadow; });
  2973. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return roseBoxShadow; });
  2974. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "y", function() { return warningCardHeader; });
  2975. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return successCardHeader; });
  2976. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return dangerCardHeader; });
  2977. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return infoCardHeader; });
  2978. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return primaryCardHeader; });
  2979. /* unused harmony export roseCardHeader */
  2980. /* unused harmony export cardActions */
  2981. /* unused harmony export cardHeader */
  2982. /* unused harmony export defaultBoxShadow */
  2983. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "v", function() { return title; });
  2984. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return cardTitle; });
  2985. /* unused harmony export cardLink */
  2986. /* unused harmony export cardSubtitle */
  2987. 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; }
  2988. 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; }
  2989. 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; }
  2990. const hexColorToRGB = function (hexColor) {
  2991. let detectShorthand = /^#?([a-f\d])([a-f\d])([a-f\d])$/i; // #000 vs #000000
  2992. hexColor = hexColor.replace(detectShorthand, function (m, r, g, b) {
  2993. return r + r + g + g + b + b;
  2994. });
  2995. const hex_array = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hexColor); // #000000 to #ffffff
  2996. return hex_array ? {
  2997. r: parseInt(hex_array[1], 16),
  2998. // 0-255
  2999. g: parseInt(hex_array[2], 16),
  3000. // 0-255
  3001. b: parseInt(hex_array[3], 16) // 0-255
  3002. } : null;
  3003. };
  3004. const hexToRGBAlpha = function (hexColor, alpha) {
  3005. let rgb = hexColorToRGB(hexColor);
  3006. return `rgba(${rgb.r},${rgb.g},${rgb.b},${alpha})`;
  3007. };
  3008. const drawerWidth = 260;
  3009. const transition = {
  3010. transition: "all 0.33s cubic-bezier(0.685, 0.0473, 0.346, 1)"
  3011. };
  3012. const conatinerFluid = {
  3013. paddingRight: "15px",
  3014. paddingLeft: "15px",
  3015. marginRight: "auto",
  3016. marginLeft: "auto",
  3017. width: "100%"
  3018. };
  3019. const container = _objectSpread({}, conatinerFluid, {
  3020. "@media (min-width: 576px)": {
  3021. maxWidth: "540px"
  3022. },
  3023. "@media (min-width: 768px)": {
  3024. maxWidth: "720px"
  3025. },
  3026. "@media (min-width: 992px)": {
  3027. maxWidth: "960px"
  3028. },
  3029. "@media (min-width: 1200px)": {
  3030. maxWidth: "1140px"
  3031. }
  3032. });
  3033. const boxShadow = {
  3034. 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)"
  3035. };
  3036. const card = {
  3037. display: "inline-block",
  3038. position: "relative",
  3039. width: "100%",
  3040. margin: "25px 0",
  3041. boxShadow: "0 1px 4px 0 rgba(0, 0, 0, 0.14)",
  3042. borderRadius: "3px",
  3043. color: "rgba(0, 0, 0, 0.87)",
  3044. background: "#fff"
  3045. };
  3046. const defaultFont = {
  3047. fontFamily: '"Roboto", "Helvetica", "Arial", sans-serif',
  3048. fontWeight: "300",
  3049. lineHeight: "1.5em"
  3050. };
  3051. const primaryColor = "#212121";
  3052. const warningColor = "#ff9800";
  3053. const dangerColor = "#f44336";
  3054. const successColor = "#4caf50";
  3055. const infoColor = "#212121";
  3056. const roseColor = "#e91e63";
  3057. const grayColor = "#ffffff";
  3058. const primaryBoxShadow = {
  3059. 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)}`
  3060. };
  3061. const infoBoxShadow = {
  3062. 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)}`
  3063. };
  3064. const successBoxShadow = {
  3065. 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)}`
  3066. };
  3067. const warningBoxShadow = {
  3068. 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)}`
  3069. };
  3070. const dangerBoxShadow = {
  3071. 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)}`
  3072. };
  3073. const roseBoxShadow = {
  3074. boxShadow: `0 4px 20px 0px ${hexToRGBAlpha("#000", 0.14)}, 0 7px 10px -5px ${hexToRGBAlpha(roseColor, 0.4)}`
  3075. };
  3076. const warningCardHeader = _objectSpread({
  3077. color: "#fff",
  3078. background: "linear-gradient(60deg, #ffa726, #fb8c00)"
  3079. }, warningBoxShadow);
  3080. const successCardHeader = _objectSpread({
  3081. color: "#fff",
  3082. background: "linear-gradient(60deg, #66bb6a, #43a047)"
  3083. }, successBoxShadow);
  3084. const dangerCardHeader = _objectSpread({
  3085. color: "#fff",
  3086. background: "linear-gradient(60deg, #ef5350, #e53935)"
  3087. }, dangerBoxShadow);
  3088. const infoCardHeader = _objectSpread({
  3089. color: "#fff",
  3090. background: "#212121"
  3091. }, infoBoxShadow);
  3092. const primaryCardHeader = _objectSpread({
  3093. color: "#fff",
  3094. background: "linear-gradient(60deg, #ab47bc, #8e24aa)"
  3095. }, primaryBoxShadow);
  3096. const roseCardHeader = _objectSpread({
  3097. color: "#fff",
  3098. background: "linear-gradient(60deg, #ec407a, #d81b60)"
  3099. }, roseBoxShadow);
  3100. const cardActions = _objectSpread({
  3101. margin: "0 20px 10px",
  3102. paddingTop: "10px",
  3103. borderTop: "1px solid #eeeeee",
  3104. height: "auto"
  3105. }, defaultFont);
  3106. const cardHeader = {
  3107. margin: "-30px 15px 0",
  3108. borderRadius: "3px",
  3109. padding: "15px"
  3110. };
  3111. const defaultBoxShadow = {
  3112. border: "0",
  3113. borderRadius: "3px",
  3114. 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)",
  3115. padding: "10px 0",
  3116. transition: "all 150ms ease 0s"
  3117. };
  3118. const title = {
  3119. color: "#ffffff",
  3120. margin: "1.75rem 0 0.875rem",
  3121. textDecoration: "none",
  3122. fontWeight: "700",
  3123. fontFamily: `"Roboto Slab", "Times New Roman", serif`
  3124. };
  3125. const cardTitle = _objectSpread({}, title, {
  3126. marginTop: ".625rem"
  3127. });
  3128. const cardLink = {
  3129. "& + $cardLink": {
  3130. marginLeft: "1.25rem"
  3131. }
  3132. };
  3133. const cardSubtitle = {
  3134. marginBottom: "0",
  3135. marginTop: "-.375rem"
  3136. };
  3137. /***/ }),
  3138. /***/ "elyg":
  3139. /***/ (function(module, exports, __webpack_require__) {
  3140. "use strict";
  3141. var __importDefault = this && this.__importDefault || function (mod) {
  3142. return mod && mod.__esModule ? mod : {
  3143. "default": mod
  3144. };
  3145. };
  3146. Object.defineProperty(exports, "__esModule", {
  3147. value: true
  3148. });
  3149. const url_1 = __webpack_require__("bzos");
  3150. const mitt_1 = __importDefault(__webpack_require__("dZ6Y"));
  3151. const utils_1 = __webpack_require__("g/15");
  3152. const is_dynamic_1 = __webpack_require__("/jkW");
  3153. const route_matcher_1 = __webpack_require__("gguc");
  3154. const route_regex_1 = __webpack_require__("YTqd");
  3155. const basePath = false || '';
  3156. function addBasePath(path) {
  3157. return path.indexOf(basePath) !== 0 ? basePath + path : path;
  3158. }
  3159. exports.addBasePath = addBasePath;
  3160. function delBasePath(path) {
  3161. return path.indexOf(basePath) === 0 ? path.substr(basePath.length) || '/' : path;
  3162. }
  3163. exports.delBasePath = delBasePath;
  3164. function toRoute(path) {
  3165. return path.replace(/\/$/, '') || '/';
  3166. }
  3167. const prepareRoute = path => toRoute(!path || path === '/' ? '/index' : path);
  3168. function fetchNextData(pathname, query, isServerRender, cb) {
  3169. let attempts = isServerRender ? 3 : 1;
  3170. function getResponse() {
  3171. return fetch(utils_1.formatWithValidation({
  3172. pathname: addBasePath( // @ts-ignore __NEXT_DATA__
  3173. `/_next/data/${__NEXT_DATA__.buildId}${delBasePath(pathname)}.json`),
  3174. query
  3175. }), {
  3176. // Cookies are required to be present for Next.js' SSG "Preview Mode".
  3177. // Cookies may also be required for `getServerSideProps`.
  3178. //
  3179. // > `fetch` won’t send cookies, unless you set the credentials init
  3180. // > option.
  3181. // https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch
  3182. //
  3183. // > For maximum browser compatibility when it comes to sending &
  3184. // > receiving cookies, always supply the `credentials: 'same-origin'`
  3185. // > option instead of relying on the default.
  3186. // https://github.com/github/fetch#caveats
  3187. credentials: 'same-origin'
  3188. }).then(res => {
  3189. if (!res.ok) {
  3190. if (--attempts > 0 && res.status >= 500) {
  3191. return getResponse();
  3192. }
  3193. throw new Error(`Failed to load static props`);
  3194. }
  3195. return res.json();
  3196. });
  3197. }
  3198. return getResponse().then(data => {
  3199. return cb ? cb(data) : data;
  3200. }).catch(err => {
  3201. // We should only trigger a server-side transition if this was caused
  3202. // on a client-side transition. Otherwise, we'd get into an infinite
  3203. // loop.
  3204. if (!isServerRender) {
  3205. ;
  3206. err.code = 'PAGE_LOAD_ERROR';
  3207. }
  3208. throw err;
  3209. });
  3210. }
  3211. class Router {
  3212. constructor(pathname, query, as, {
  3213. initialProps,
  3214. pageLoader,
  3215. App,
  3216. wrapApp,
  3217. Component,
  3218. err,
  3219. subscription,
  3220. isFallback
  3221. }) {
  3222. // Static Data Cache
  3223. this.sdc = {};
  3224. this.onPopState = e => {
  3225. if (!e.state) {
  3226. // We get state as undefined for two reasons.
  3227. // 1. With older safari (< 8) and older chrome (< 34)
  3228. // 2. When the URL changed with #
  3229. //
  3230. // In the both cases, we don't need to proceed and change the route.
  3231. // (as it's already changed)
  3232. // But we can simply replace the state with the new changes.
  3233. // Actually, for (1) we don't need to nothing. But it's hard to detect that event.
  3234. // So, doing the following for (1) does no harm.
  3235. const {
  3236. pathname,
  3237. query
  3238. } = this;
  3239. this.changeState('replaceState', utils_1.formatWithValidation({
  3240. pathname,
  3241. query
  3242. }), utils_1.getURL());
  3243. return;
  3244. } // Make sure we don't re-render on initial load,
  3245. // can be caused by navigating back from an external site
  3246. if (e.state && this.isSsr && e.state.as === this.asPath && url_1.parse(e.state.url).pathname === this.pathname) {
  3247. return;
  3248. } // If the downstream application returns falsy, return.
  3249. // They will then be responsible for handling the event.
  3250. if (this._bps && !this._bps(e.state)) {
  3251. return;
  3252. }
  3253. const {
  3254. url,
  3255. as,
  3256. options
  3257. } = e.state;
  3258. if (false) {}
  3259. this.replace(url, as, options);
  3260. };
  3261. this._getStaticData = asPath => {
  3262. const pathname = prepareRoute(url_1.parse(asPath).pathname);
  3263. return true && this.sdc[pathname] ? Promise.resolve(this.sdc[pathname]) : fetchNextData(pathname, null, this.isSsr, data => this.sdc[pathname] = data);
  3264. };
  3265. this._getServerData = asPath => {
  3266. let {
  3267. pathname,
  3268. query
  3269. } = url_1.parse(asPath, true);
  3270. pathname = prepareRoute(pathname);
  3271. return fetchNextData(pathname, query, this.isSsr);
  3272. }; // represents the current component key
  3273. this.route = toRoute(pathname); // set up the component cache (by route keys)
  3274. this.components = {}; // We should not keep the cache, if there's an error
  3275. // Otherwise, this cause issues when when going back and
  3276. // come again to the errored page.
  3277. if (pathname !== '/_error') {
  3278. this.components[this.route] = {
  3279. Component,
  3280. props: initialProps,
  3281. err,
  3282. __N_SSG: initialProps && initialProps.__N_SSG,
  3283. __N_SSP: initialProps && initialProps.__N_SSP
  3284. };
  3285. }
  3286. this.components['/_app'] = {
  3287. Component: App
  3288. }; // Backwards compat for Router.router.events
  3289. // TODO: Should be remove the following major version as it was never documented
  3290. this.events = Router.events;
  3291. this.pageLoader = pageLoader;
  3292. this.pathname = pathname;
  3293. this.query = query; // if auto prerendered and dynamic route wait to update asPath
  3294. // until after mount to prevent hydration mismatch
  3295. this.asPath = // @ts-ignore this is temporarily global (attached to window)
  3296. is_dynamic_1.isDynamicRoute(pathname) && __NEXT_DATA__.autoExport ? pathname : as;
  3297. this.basePath = basePath;
  3298. this.sub = subscription;
  3299. this.clc = null;
  3300. this._wrapApp = wrapApp; // make sure to ignore extra popState in safari on navigating
  3301. // back from external site
  3302. this.isSsr = true;
  3303. this.isFallback = isFallback;
  3304. if (false) {}
  3305. } // @deprecated backwards compatibility even though it's a private method.
  3306. static _rewriteUrlForNextExport(url) {
  3307. if (false) {} else {
  3308. return url;
  3309. }
  3310. }
  3311. update(route, mod) {
  3312. const Component = mod.default || mod;
  3313. const data = this.components[route];
  3314. if (!data) {
  3315. throw new Error(`Cannot update unavailable route: ${route}`);
  3316. }
  3317. const newData = Object.assign(Object.assign({}, data), {
  3318. Component,
  3319. __N_SSG: mod.__N_SSG,
  3320. __N_SSP: mod.__N_SSP
  3321. });
  3322. this.components[route] = newData; // pages/_app.js updated
  3323. if (route === '/_app') {
  3324. this.notify(this.components[this.route]);
  3325. return;
  3326. }
  3327. if (route === this.route) {
  3328. this.notify(newData);
  3329. }
  3330. }
  3331. reload() {
  3332. window.location.reload();
  3333. }
  3334. /**
  3335. * Go back in history
  3336. */
  3337. back() {
  3338. window.history.back();
  3339. }
  3340. /**
  3341. * Performs a `pushState` with arguments
  3342. * @param url of the route
  3343. * @param as masks `url` for the browser
  3344. * @param options object you can define `shallow` and other options
  3345. */
  3346. push(url, as = url, options = {}) {
  3347. return this.change('pushState', url, as, options);
  3348. }
  3349. /**
  3350. * Performs a `replaceState` with arguments
  3351. * @param url of the route
  3352. * @param as masks `url` for the browser
  3353. * @param options object you can define `shallow` and other options
  3354. */
  3355. replace(url, as = url, options = {}) {
  3356. return this.change('replaceState', url, as, options);
  3357. }
  3358. change(method, _url, _as, options) {
  3359. return new Promise((resolve, reject) => {
  3360. if (!options._h) {
  3361. this.isSsr = false;
  3362. } // marking route changes as a navigation start entry
  3363. if (utils_1.ST) {
  3364. performance.mark('routeChange');
  3365. } // If url and as provided as an object representation,
  3366. // we'll format them into the string version here.
  3367. let url = typeof _url === 'object' ? utils_1.formatWithValidation(_url) : _url;
  3368. let as = typeof _as === 'object' ? utils_1.formatWithValidation(_as) : _as;
  3369. url = addBasePath(url);
  3370. as = addBasePath(as); // Add the ending slash to the paths. So, we can serve the
  3371. // "<page>/index.html" directly for the SSR page.
  3372. if (false) {}
  3373. this.abortComponentLoad(as); // If the url change is only related to a hash change
  3374. // We should not proceed. We should only change the state.
  3375. // WARNING: `_h` is an internal option for handing Next.js client-side
  3376. // hydration. Your app should _never_ use this property. It may change at
  3377. // any time without notice.
  3378. if (!options._h && this.onlyAHashChange(as)) {
  3379. this.asPath = as;
  3380. Router.events.emit('hashChangeStart', as);
  3381. this.changeState(method, url, as, options);
  3382. this.scrollToHash(as);
  3383. Router.events.emit('hashChangeComplete', as);
  3384. return resolve(true);
  3385. }
  3386. const {
  3387. pathname,
  3388. query,
  3389. protocol
  3390. } = url_1.parse(url, true);
  3391. if (!pathname || protocol) {
  3392. if (false) {}
  3393. return resolve(false);
  3394. } // If asked to change the current URL we should reload the current page
  3395. // (not location.reload() but reload getInitialProps and other Next.js stuffs)
  3396. // We also need to set the method = replaceState always
  3397. // as this should not go into the history (That's how browsers work)
  3398. // We should compare the new asPath to the current asPath, not the url
  3399. if (!this.urlIsNew(as)) {
  3400. method = 'replaceState';
  3401. }
  3402. const route = toRoute(pathname);
  3403. const {
  3404. shallow = false
  3405. } = options;
  3406. if (is_dynamic_1.isDynamicRoute(route)) {
  3407. const {
  3408. pathname: asPathname
  3409. } = url_1.parse(as);
  3410. const routeRegex = route_regex_1.getRouteRegex(route);
  3411. const routeMatch = route_matcher_1.getRouteMatcher(routeRegex)(asPathname);
  3412. if (!routeMatch) {
  3413. const missingParams = Object.keys(routeRegex.groups).filter(param => !query[param]);
  3414. if (missingParams.length > 0) {
  3415. if (false) {}
  3416. 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`));
  3417. }
  3418. } else {
  3419. // Merge params into `query`, overwriting any specified in search
  3420. Object.assign(query, routeMatch);
  3421. }
  3422. }
  3423. Router.events.emit('routeChangeStart', as); // If shallow is true and the route exists in the router cache we reuse the previous result
  3424. this.getRouteInfo(route, pathname, query, as, shallow).then(routeInfo => {
  3425. const {
  3426. error
  3427. } = routeInfo;
  3428. if (error && error.cancelled) {
  3429. return resolve(false);
  3430. }
  3431. Router.events.emit('beforeHistoryChange', as);
  3432. this.changeState(method, url, as, options);
  3433. if (false) {}
  3434. this.set(route, pathname, query, as, routeInfo);
  3435. if (error) {
  3436. Router.events.emit('routeChangeError', error, as);
  3437. throw error;
  3438. }
  3439. Router.events.emit('routeChangeComplete', as);
  3440. return resolve(true);
  3441. }, reject);
  3442. });
  3443. }
  3444. changeState(method, url, as, options = {}) {
  3445. if (false) {}
  3446. if (method !== 'pushState' || utils_1.getURL() !== as) {
  3447. window.history[method]({
  3448. url,
  3449. as,
  3450. options
  3451. }, // Most browsers currently ignores this parameter, although they may use it in the future.
  3452. // Passing the empty string here should be safe against future changes to the method.
  3453. // https://developer.mozilla.org/en-US/docs/Web/API/History/replaceState
  3454. '', as);
  3455. }
  3456. }
  3457. getRouteInfo(route, pathname, query, as, shallow = false) {
  3458. const cachedRouteInfo = this.components[route]; // If there is a shallow route transition possible
  3459. // If the route is already rendered on the screen.
  3460. if (shallow && cachedRouteInfo && this.route === route) {
  3461. return Promise.resolve(cachedRouteInfo);
  3462. }
  3463. const handleError = (err, loadErrorFail) => {
  3464. return new Promise(resolve => {
  3465. if (err.code === 'PAGE_LOAD_ERROR' || loadErrorFail) {
  3466. // If we can't load the page it could be one of following reasons
  3467. // 1. Page doesn't exists
  3468. // 2. Page does exist in a different zone
  3469. // 3. Internal error while loading the page
  3470. // So, doing a hard reload is the proper way to deal with this.
  3471. window.location.href = as; // Changing the URL doesn't block executing the current code path.
  3472. // So, we need to mark it as a cancelled error and stop the routing logic.
  3473. err.cancelled = true; // @ts-ignore TODO: fix the control flow here
  3474. return resolve({
  3475. error: err
  3476. });
  3477. }
  3478. if (err.cancelled) {
  3479. // @ts-ignore TODO: fix the control flow here
  3480. return resolve({
  3481. error: err
  3482. });
  3483. }
  3484. resolve(this.fetchComponent('/_error').then(res => {
  3485. const {
  3486. page: Component
  3487. } = res;
  3488. const routeInfo = {
  3489. Component,
  3490. err
  3491. };
  3492. return new Promise(resolve => {
  3493. this.getInitialProps(Component, {
  3494. err,
  3495. pathname,
  3496. query
  3497. }).then(props => {
  3498. routeInfo.props = props;
  3499. routeInfo.error = err;
  3500. resolve(routeInfo);
  3501. }, gipErr => {
  3502. console.error('Error in error page `getInitialProps`: ', gipErr);
  3503. routeInfo.error = err;
  3504. routeInfo.props = {};
  3505. resolve(routeInfo);
  3506. });
  3507. });
  3508. }).catch(err => handleError(err, true)));
  3509. });
  3510. };
  3511. return new Promise((resolve, reject) => {
  3512. if (cachedRouteInfo) {
  3513. return resolve(cachedRouteInfo);
  3514. }
  3515. this.fetchComponent(route).then(res => resolve({
  3516. Component: res.page,
  3517. __N_SSG: res.mod.__N_SSG,
  3518. __N_SSP: res.mod.__N_SSP
  3519. }), reject);
  3520. }).then(routeInfo => {
  3521. const {
  3522. Component,
  3523. __N_SSG,
  3524. __N_SSP
  3525. } = routeInfo;
  3526. if (false) {}
  3527. 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`
  3528. {
  3529. pathname,
  3530. query,
  3531. asPath: as
  3532. })).then(props => {
  3533. routeInfo.props = props;
  3534. this.components[route] = routeInfo;
  3535. return routeInfo;
  3536. });
  3537. }).catch(handleError);
  3538. }
  3539. set(route, pathname, query, as, data) {
  3540. this.isFallback = false;
  3541. this.route = route;
  3542. this.pathname = pathname;
  3543. this.query = query;
  3544. this.asPath = as;
  3545. this.notify(data);
  3546. }
  3547. /**
  3548. * Callback to execute before replacing router state
  3549. * @param cb callback to be executed
  3550. */
  3551. beforePopState(cb) {
  3552. this._bps = cb;
  3553. }
  3554. onlyAHashChange(as) {
  3555. if (!this.asPath) return false;
  3556. const [oldUrlNoHash, oldHash] = this.asPath.split('#');
  3557. const [newUrlNoHash, newHash] = as.split('#'); // Makes sure we scroll to the provided hash if the url/hash are the same
  3558. if (newHash && oldUrlNoHash === newUrlNoHash && oldHash === newHash) {
  3559. return true;
  3560. } // If the urls are change, there's more than a hash change
  3561. if (oldUrlNoHash !== newUrlNoHash) {
  3562. return false;
  3563. } // If the hash has changed, then it's a hash only change.
  3564. // This check is necessary to handle both the enter and
  3565. // leave hash === '' cases. The identity case falls through
  3566. // and is treated as a next reload.
  3567. return oldHash !== newHash;
  3568. }
  3569. scrollToHash(as) {
  3570. const [, hash] = as.split('#'); // Scroll to top if the hash is just `#` with no value
  3571. if (hash === '') {
  3572. window.scrollTo(0, 0);
  3573. return;
  3574. } // First we check if the element by id is found
  3575. const idEl = document.getElementById(hash);
  3576. if (idEl) {
  3577. idEl.scrollIntoView();
  3578. return;
  3579. } // If there's no element with the id, we check the `name` property
  3580. // To mirror browsers
  3581. const nameEl = document.getElementsByName(hash)[0];
  3582. if (nameEl) {
  3583. nameEl.scrollIntoView();
  3584. }
  3585. }
  3586. urlIsNew(asPath) {
  3587. return this.asPath !== asPath;
  3588. }
  3589. /**
  3590. * Prefetch page code, you may wait for the data during page rendering.
  3591. * This feature only works in production!
  3592. * @param url the href of prefetched page
  3593. * @param asPath the as path of the prefetched page
  3594. */
  3595. prefetch(url, asPath = url, options = {}) {
  3596. return new Promise((resolve, reject) => {
  3597. const {
  3598. pathname,
  3599. protocol
  3600. } = url_1.parse(url);
  3601. if (!pathname || protocol) {
  3602. if (false) {}
  3603. return;
  3604. } // Prefetch is not supported in development mode because it would trigger on-demand-entries
  3605. if (false) {}
  3606. const route = delBasePath(toRoute(pathname));
  3607. Promise.all([this.pageLoader.prefetchData(url, delBasePath(asPath)), this.pageLoader[options.priority ? 'loadPage' : 'prefetch'](route)]).then(() => resolve(), reject);
  3608. });
  3609. }
  3610. async fetchComponent(route) {
  3611. let cancelled = false;
  3612. const cancel = this.clc = () => {
  3613. cancelled = true;
  3614. };
  3615. route = delBasePath(route);
  3616. const componentResult = await this.pageLoader.loadPage(route);
  3617. if (cancelled) {
  3618. const error = new Error(`Abort fetching component for route: "${route}"`);
  3619. error.cancelled = true;
  3620. throw error;
  3621. }
  3622. if (cancel === this.clc) {
  3623. this.clc = null;
  3624. }
  3625. return componentResult;
  3626. }
  3627. _getData(fn) {
  3628. let cancelled = false;
  3629. const cancel = () => {
  3630. cancelled = true;
  3631. };
  3632. this.clc = cancel;
  3633. return fn().then(data => {
  3634. if (cancel === this.clc) {
  3635. this.clc = null;
  3636. }
  3637. if (cancelled) {
  3638. const err = new Error('Loading initial props cancelled');
  3639. err.cancelled = true;
  3640. throw err;
  3641. }
  3642. return data;
  3643. });
  3644. }
  3645. getInitialProps(Component, ctx) {
  3646. const {
  3647. Component: App
  3648. } = this.components['/_app'];
  3649. const AppTree = this._wrapApp(App);
  3650. ctx.AppTree = AppTree;
  3651. return utils_1.loadGetInitialProps(App, {
  3652. AppTree,
  3653. Component,
  3654. router: this,
  3655. ctx
  3656. });
  3657. }
  3658. abortComponentLoad(as) {
  3659. if (this.clc) {
  3660. const e = new Error('Route Cancelled');
  3661. e.cancelled = true;
  3662. Router.events.emit('routeChangeError', e, as);
  3663. this.clc();
  3664. this.clc = null;
  3665. }
  3666. }
  3667. notify(data) {
  3668. this.sub(data, this.components['/_app'].Component);
  3669. }
  3670. }
  3671. exports.default = Router;
  3672. Router.events = mitt_1.default();
  3673. /***/ }),
  3674. /***/ "g/15":
  3675. /***/ (function(module, exports, __webpack_require__) {
  3676. "use strict";
  3677. Object.defineProperty(exports, "__esModule", {
  3678. value: true
  3679. });
  3680. const url_1 = __webpack_require__("bzos");
  3681. /**
  3682. * Utils
  3683. */
  3684. function execOnce(fn) {
  3685. let used = false;
  3686. let result;
  3687. return (...args) => {
  3688. if (!used) {
  3689. used = true;
  3690. result = fn(...args);
  3691. }
  3692. return result;
  3693. };
  3694. }
  3695. exports.execOnce = execOnce;
  3696. function getLocationOrigin() {
  3697. const {
  3698. protocol,
  3699. hostname,
  3700. port
  3701. } = window.location;
  3702. return `${protocol}//${hostname}${port ? ':' + port : ''}`;
  3703. }
  3704. exports.getLocationOrigin = getLocationOrigin;
  3705. function getURL() {
  3706. const {
  3707. href
  3708. } = window.location;
  3709. const origin = getLocationOrigin();
  3710. return href.substring(origin.length);
  3711. }
  3712. exports.getURL = getURL;
  3713. function getDisplayName(Component) {
  3714. return typeof Component === 'string' ? Component : Component.displayName || Component.name || 'Unknown';
  3715. }
  3716. exports.getDisplayName = getDisplayName;
  3717. function isResSent(res) {
  3718. return res.finished || res.headersSent;
  3719. }
  3720. exports.isResSent = isResSent;
  3721. async function loadGetInitialProps(App, ctx) {
  3722. var _a;
  3723. if (false) {} // when called from _app `ctx` is nested in `ctx`
  3724. const res = ctx.res || ctx.ctx && ctx.ctx.res;
  3725. if (!App.getInitialProps) {
  3726. if (ctx.ctx && ctx.Component) {
  3727. // @ts-ignore pageProps default
  3728. return {
  3729. pageProps: await loadGetInitialProps(ctx.Component, ctx.ctx)
  3730. };
  3731. }
  3732. return {};
  3733. }
  3734. const props = await App.getInitialProps(ctx);
  3735. if (res && isResSent(res)) {
  3736. return props;
  3737. }
  3738. if (!props) {
  3739. const message = `"${getDisplayName(App)}.getInitialProps()" should resolve to an object. But found "${props}" instead.`;
  3740. throw new Error(message);
  3741. }
  3742. if (false) {}
  3743. return props;
  3744. }
  3745. exports.loadGetInitialProps = loadGetInitialProps;
  3746. exports.urlObjectKeys = ['auth', 'hash', 'host', 'hostname', 'href', 'path', 'pathname', 'port', 'protocol', 'query', 'search', 'slashes'];
  3747. function formatWithValidation(url, options) {
  3748. if (false) {}
  3749. return url_1.format(url, options);
  3750. }
  3751. exports.formatWithValidation = formatWithValidation;
  3752. exports.SP = typeof performance !== 'undefined';
  3753. exports.ST = exports.SP && typeof performance.mark === 'function' && typeof performance.measure === 'function';
  3754. /***/ }),
  3755. /***/ "gc93":
  3756. /***/ (function(module, exports) {
  3757. module.exports = require("@material-ui/icons/WhatsApp");
  3758. /***/ }),
  3759. /***/ "gguc":
  3760. /***/ (function(module, exports, __webpack_require__) {
  3761. "use strict";
  3762. Object.defineProperty(exports, "__esModule", {
  3763. value: true
  3764. });
  3765. function getRouteMatcher(routeRegex) {
  3766. const {
  3767. re,
  3768. groups
  3769. } = routeRegex;
  3770. return pathname => {
  3771. const routeMatch = re.exec(pathname);
  3772. if (!routeMatch) {
  3773. return false;
  3774. }
  3775. const decode = param => {
  3776. try {
  3777. return decodeURIComponent(param);
  3778. } catch (_) {
  3779. const err = new Error('failed to decode param');
  3780. err.code = 'DECODE_FAILED';
  3781. throw err;
  3782. }
  3783. };
  3784. const params = {};
  3785. Object.keys(groups).forEach(slugName => {
  3786. const g = groups[slugName];
  3787. const m = routeMatch[g.pos];
  3788. if (m !== undefined) {
  3789. params[slugName] = ~m.indexOf('/') ? m.split('/').map(entry => decode(entry)) : g.repeat ? [decode(m)] : decode(m);
  3790. }
  3791. });
  3792. return params;
  3793. };
  3794. }
  3795. exports.getRouteMatcher = getRouteMatcher;
  3796. /***/ }),
  3797. /***/ "gpfI":
  3798. /***/ (function(module, exports) {
  3799. module.exports = "/_next/static/images/White-bd6f0737533faa5691f72c5d9b00aeb6.png";
  3800. /***/ }),
  3801. /***/ "i4t8":
  3802. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3803. "use strict";
  3804. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridItem; });
  3805. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3806. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3807. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3808. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3809. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3810. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3811. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3812. 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); }
  3813. 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; }
  3814. 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; }
  3815. // nodejs library to set properties for components
  3816. // @material-ui/core components
  3817. const styles = {
  3818. grid: {
  3819. position: "relative",
  3820. width: "100%",
  3821. minHeight: "1px",
  3822. paddingRight: "15px",
  3823. paddingLeft: "15px",
  3824. flexBasis: "auto"
  3825. }
  3826. };
  3827. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3828. function GridItem(props) {
  3829. const classes = useStyles();
  3830. const {
  3831. children,
  3832. className
  3833. } = props,
  3834. rest = _objectWithoutProperties(props, ["children", "className"]);
  3835. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3836. item: true
  3837. }, rest, {
  3838. className: classes.grid + " " + className
  3839. }), children);
  3840. }
  3841. GridItem.defaultProps = {
  3842. className: ""
  3843. };
  3844. /***/ }),
  3845. /***/ "j08L":
  3846. /***/ (function(module, exports) {
  3847. module.exports = require("@material-ui/icons/Close");
  3848. /***/ }),
  3849. /***/ "jD8W":
  3850. /***/ (function(module, exports) {
  3851. module.exports = require("@material-ui/core/Popper");
  3852. /***/ }),
  3853. /***/ "kYf9":
  3854. /***/ (function(module, exports) {
  3855. module.exports = require("next/dist/next-server/lib/utils.js");
  3856. /***/ }),
  3857. /***/ "kxLz":
  3858. /***/ (function(module, exports) {
  3859. module.exports = "/_next/static/images/Logo Star-76fcfb2adbe3fb45c23081f86f2e6ede.png";
  3860. /***/ }),
  3861. /***/ "lgrB":
  3862. /***/ (function(module, exports) {
  3863. module.exports = require("@material-ui/icons/Phone");
  3864. /***/ }),
  3865. /***/ "mf1M":
  3866. /***/ (function(module, exports) {
  3867. module.exports = require("@material-ui/core/Grow");
  3868. /***/ }),
  3869. /***/ "mtPR":
  3870. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3871. "use strict";
  3872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return GridContainer; });
  3873. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  3874. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  3875. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("9Pu4");
  3876. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__);
  3877. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("JQ2V");
  3878. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2__);
  3879. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  3880. 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); }
  3881. 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; }
  3882. 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; }
  3883. // nodejs library to set properties for components
  3884. // @material-ui/core components
  3885. const styles = {
  3886. grid: {
  3887. marginRight: "-15px",
  3888. marginLeft: "-15px",
  3889. width: "auto"
  3890. }
  3891. };
  3892. const useStyles = Object(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_1__["makeStyles"])(styles);
  3893. function GridContainer(props) {
  3894. const classes = useStyles();
  3895. const {
  3896. children,
  3897. className
  3898. } = props,
  3899. rest = _objectWithoutProperties(props, ["children", "className"]);
  3900. return __jsx(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_2___default.a, _extends({
  3901. container: true
  3902. }, rest, {
  3903. className: classes.grid + " " + className
  3904. }), children);
  3905. }
  3906. GridContainer.defaultProps = {
  3907. className: ""
  3908. };
  3909. /***/ }),
  3910. /***/ "n1EF":
  3911. /***/ (function(module, exports) {
  3912. module.exports = require("@material-ui/core/SnackbarContent");
  3913. /***/ }),
  3914. /***/ "nOHt":
  3915. /***/ (function(module, exports, __webpack_require__) {
  3916. "use strict";
  3917. var _interopRequireWildcard = __webpack_require__("7KCV");
  3918. var _interopRequireDefault = __webpack_require__("AroE");
  3919. exports.__esModule = true;
  3920. exports.useRouter = useRouter;
  3921. exports.makePublicRouterInstance = makePublicRouterInstance;
  3922. exports.createRouter = exports.withRouter = exports.default = void 0;
  3923. var _react = _interopRequireDefault(__webpack_require__("cDcd"));
  3924. var _router2 = _interopRequireWildcard(__webpack_require__("elyg"));
  3925. exports.Router = _router2.default;
  3926. exports.NextRouter = _router2.NextRouter;
  3927. var _routerContext = __webpack_require__("Osoz");
  3928. var _withRouter = _interopRequireDefault(__webpack_require__("0Bsm"));
  3929. exports.withRouter = _withRouter.default;
  3930. /* global window */
  3931. var singletonRouter = {
  3932. router: null,
  3933. // holds the actual router instance
  3934. readyCallbacks: [],
  3935. ready(cb) {
  3936. if (this.router) return cb();
  3937. if (false) {}
  3938. }
  3939. }; // Create public properties and methods of the router in the singletonRouter
  3940. var urlPropertyFields = ['pathname', 'route', 'query', 'asPath', 'components', 'isFallback', 'basePath'];
  3941. var routerEvents = ['routeChangeStart', 'beforeHistoryChange', 'routeChangeComplete', 'routeChangeError', 'hashChangeStart', 'hashChangeComplete'];
  3942. 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
  3943. Object.defineProperty(singletonRouter, 'events', {
  3944. get() {
  3945. return _router2.default.events;
  3946. }
  3947. });
  3948. urlPropertyFields.forEach(field => {
  3949. // Here we need to use Object.defineProperty because, we need to return
  3950. // the property assigned to the actual router
  3951. // The value might get changed as we change routes and this is the
  3952. // proper way to access it
  3953. Object.defineProperty(singletonRouter, field, {
  3954. get() {
  3955. var router = getRouter();
  3956. return router[field];
  3957. }
  3958. });
  3959. });
  3960. coreMethodFields.forEach(field => {
  3961. // We don't really know the types here, so we add them later instead
  3962. ;
  3963. singletonRouter[field] = function () {
  3964. var router = getRouter();
  3965. return router[field](...arguments);
  3966. };
  3967. });
  3968. routerEvents.forEach(event => {
  3969. singletonRouter.ready(() => {
  3970. _router2.default.events.on(event, function () {
  3971. var eventField = "on" + event.charAt(0).toUpperCase() + event.substring(1);
  3972. var _singletonRouter = singletonRouter;
  3973. if (_singletonRouter[eventField]) {
  3974. try {
  3975. _singletonRouter[eventField](...arguments);
  3976. } catch (err) {
  3977. // tslint:disable-next-line:no-console
  3978. console.error("Error when running the Router event: " + eventField); // tslint:disable-next-line:no-console
  3979. console.error(err.message + "\n" + err.stack);
  3980. }
  3981. }
  3982. });
  3983. });
  3984. });
  3985. function getRouter() {
  3986. if (!singletonRouter.router) {
  3987. var message = 'No router instance found.\n' + 'You should only use "next/router" inside the client side of your app.\n';
  3988. throw new Error(message);
  3989. }
  3990. return singletonRouter.router;
  3991. } // Export the singletonRouter and this is the public API.
  3992. var _default = singletonRouter; // Reexport the withRoute HOC
  3993. exports.default = _default;
  3994. function useRouter() {
  3995. return _react.default.useContext(_routerContext.RouterContext);
  3996. } // INTERNAL APIS
  3997. // -------------
  3998. // (do not use following exports inside the app)
  3999. // Create a router and assign it as the singleton instance.
  4000. // This is used in client side when we are initilizing the app.
  4001. // This should **not** use inside the server.
  4002. var createRouter = function createRouter() {
  4003. for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
  4004. args[_key] = arguments[_key];
  4005. }
  4006. singletonRouter.router = new _router2.default(...args);
  4007. singletonRouter.readyCallbacks.forEach(cb => cb());
  4008. singletonRouter.readyCallbacks = [];
  4009. return singletonRouter.router;
  4010. }; // This function is used to create the `withRouter` router instance
  4011. exports.createRouter = createRouter;
  4012. function makePublicRouterInstance(router) {
  4013. var _router = router;
  4014. var instance = {};
  4015. for (var property of urlPropertyFields) {
  4016. if (typeof _router[property] === 'object') {
  4017. instance[property] = Object.assign({}, _router[property]); // makes sure query is not stateful
  4018. continue;
  4019. }
  4020. instance[property] = _router[property];
  4021. } // Events is a static property on the router, the router doesn't have to be initialized to use it
  4022. instance.events = _router2.default.events;
  4023. coreMethodFields.forEach(field => {
  4024. instance[field] = function () {
  4025. return _router[field](...arguments);
  4026. };
  4027. });
  4028. return instance;
  4029. }
  4030. /***/ }),
  4031. /***/ "nybW":
  4032. /***/ (function(module, exports) {
  4033. module.exports = require("@material-ui/core/Divider");
  4034. /***/ }),
  4035. /***/ "oLCs":
  4036. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4037. "use strict";
  4038. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  4039. const footerStyle = {
  4040. block: {
  4041. color: "inherit",
  4042. padding: "0.9375rem",
  4043. fontWeight: "500",
  4044. fontSize: "12px",
  4045. textTransform: "uppercase",
  4046. borderRadius: "3px",
  4047. textDecoration: "none",
  4048. position: "relative",
  4049. display: "block"
  4050. },
  4051. left: {
  4052. float: "left!important",
  4053. display: "block"
  4054. },
  4055. right: {
  4056. padding: "15px 0",
  4057. margin: "0",
  4058. float: "right!important"
  4059. },
  4060. footer: {
  4061. padding: "0.9375rem 0",
  4062. textAlign: "center",
  4063. display: "flex",
  4064. zIndex: "2",
  4065. position: "relative"
  4066. },
  4067. a: {
  4068. color: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* primaryColor */ "p"],
  4069. textDecoration: "none",
  4070. backgroundColor: "transparent"
  4071. },
  4072. footerWhiteFont: {
  4073. "&,&:hover,&:focus": {
  4074. color: "#FFFFFF"
  4075. }
  4076. },
  4077. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  4078. list: {
  4079. marginBottom: "0",
  4080. padding: "0",
  4081. marginTop: "0"
  4082. },
  4083. inlineBlock: {
  4084. display: "inline-block",
  4085. padding: "0px",
  4086. width: "auto"
  4087. },
  4088. icon: {
  4089. width: "18px",
  4090. height: "18px",
  4091. position: "relative",
  4092. top: "3px"
  4093. }
  4094. };
  4095. /* harmony default export */ __webpack_exports__["a"] = (footerStyle);
  4096. /***/ }),
  4097. /***/ "qt1I":
  4098. /***/ (function(module, exports) {
  4099. module.exports = require("@material-ui/core/Paper");
  4100. /***/ }),
  4101. /***/ "rf6O":
  4102. /***/ (function(module, exports) {
  4103. module.exports = require("prop-types");
  4104. /***/ }),
  4105. /***/ "uU2H":
  4106. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4107. "use strict";
  4108. /* harmony import */ var assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("eDSW");
  4109. /* harmony import */ var assets_jss_nextjs_material_kit_imagesStyles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("Ilpk");
  4110. 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; }
  4111. 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; }
  4112. 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; }
  4113. const profilePageStyle = _objectSpread({
  4114. container: assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* container */ "c"],
  4115. profile: {
  4116. textAlign: "center",
  4117. "& img": {
  4118. maxWidth: "160px",
  4119. width: "100%",
  4120. margin: "0 auto",
  4121. transform: "translate3d(0, -50%, 0)"
  4122. }
  4123. },
  4124. description: {
  4125. margin: "1.071rem auto 0",
  4126. maxWidth: "600px",
  4127. color: "#999",
  4128. textAlign: "center !important"
  4129. },
  4130. name: {
  4131. marginTop: "-80px"
  4132. }
  4133. }, assets_jss_nextjs_material_kit_imagesStyles_js__WEBPACK_IMPORTED_MODULE_1__[/* default */ "a"], {
  4134. main: {
  4135. background: "#FFFFFF",
  4136. position: "relative",
  4137. zIndex: "3"
  4138. },
  4139. mainRaised: {
  4140. margin: "-60px 30px 0px",
  4141. borderRadius: "6px",
  4142. 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)"
  4143. },
  4144. title: _objectSpread({}, assets_jss_nextjs_material_kit_js__WEBPACK_IMPORTED_MODULE_0__[/* title */ "v"], {
  4145. display: "inline-block",
  4146. position: "relative",
  4147. marginTop: "30px",
  4148. minHeight: "32px",
  4149. textDecoration: "none"
  4150. }),
  4151. socials: {
  4152. marginTop: "0",
  4153. width: "100%",
  4154. transform: "none",
  4155. left: "0",
  4156. top: "0",
  4157. height: "100%",
  4158. lineHeight: "41px",
  4159. fontSize: "20px",
  4160. color: "#999"
  4161. },
  4162. navWrapper: {
  4163. margin: "20px auto 50px auto",
  4164. textAlign: "center"
  4165. }
  4166. });
  4167. /* harmony default export */ __webpack_exports__["a"] = (profilePageStyle);
  4168. /***/ }),
  4169. /***/ "wzON":
  4170. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4171. "use strict";
  4172. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Footer; });
  4173. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("cDcd");
  4174. /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
  4175. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("K2gz");
  4176. /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
  4177. /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("KKbo");
  4178. /* harmony import */ var _material_ui_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__);
  4179. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("9Pu4");
  4180. /* harmony import */ var _material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_styles__WEBPACK_IMPORTED_MODULE_3__);
  4181. /* harmony import */ var _material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("Fm7H");
  4182. /* harmony import */ var _material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_material_ui_icons_Favorite__WEBPACK_IMPORTED_MODULE_4__);
  4183. /* harmony import */ var components_Grid_GridContainer_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("mtPR");
  4184. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("JQ2V");
  4185. /* harmony import */ var _material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Grid__WEBPACK_IMPORTED_MODULE_6__);
  4186. /* harmony import */ var components_Grid_GridItem_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("i4t8");
  4187. /* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("qt1I");
  4188. /* harmony import */ var _material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_material_ui_core_Paper__WEBPACK_IMPORTED_MODULE_8__);
  4189. /* harmony import */ var components_Card_Card_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("A2So");
  4190. /* harmony import */ var assets_jss_nextjs_material_kit_components_footerStyle_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("oLCs");
  4191. /* harmony import */ var assets_img_White_png__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("gpfI");
  4192. /* harmony import */ var assets_img_White_png__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(assets_img_White_png__WEBPACK_IMPORTED_MODULE_11__);
  4193. /* harmony import */ var react_slick__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("O/hg");
  4194. /* harmony import */ var react_slick__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(react_slick__WEBPACK_IMPORTED_MODULE_12__);
  4195. var __jsx = react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement;
  4196. /*eslint-disable*/
  4197. // import Styless from "components/Footer/footersosmed.css";
  4198. 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"]);
  4199. function Footer(props) {
  4200. const classes = useStyles();
  4201. const {
  4202. whiteFont
  4203. } = props;
  4204. const footerClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
  4205. [classes.footer]: true,
  4206. [classes.footerWhiteFont]: whiteFont
  4207. });
  4208. const aClasses = classnames__WEBPACK_IMPORTED_MODULE_1___default()({
  4209. [classes.a]: true,
  4210. [classes.footerWhiteFont]: whiteFont
  4211. });
  4212. const settings = {
  4213. dots: true,
  4214. infinite: true,
  4215. speed: 500,
  4216. slidesToShow: 1,
  4217. slidesToScroll: 1,
  4218. autoplay: true,
  4219. time: 5
  4220. };
  4221. return __jsx(components_Grid_GridItem_js__WEBPACK_IMPORTED_MODULE_7__[/* default */ "a"], {
  4222. xs: 12
  4223. }, __jsx("link", {
  4224. rel: "stylesheet",
  4225. href: "https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
  4226. }), __jsx("div", {
  4227. align: "center"
  4228. }, __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["List"], {
  4229. className: classes.list
  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.facebook.com/thamrin.mercedesbenz/",
  4237. target: "_blank",
  4238. class: "fa fa-facebook"
  4239. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  4240. className: classes.inlineBlock,
  4241. style: {
  4242. padding: "10px"
  4243. }
  4244. }, __jsx("a", {
  4245. href: "https://www.instagram.com/thamrin.mercedesbenz/",
  4246. target: "_blank",
  4247. class: "fa fa-instagram"
  4248. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  4249. className: classes.inlineBlock,
  4250. style: {
  4251. padding: "10px"
  4252. }
  4253. }, __jsx("a", {
  4254. href: "https://twitter.com/ThamrinMB",
  4255. target: "_blank",
  4256. class: "fa fa-twitter"
  4257. })), __jsx(_material_ui_core__WEBPACK_IMPORTED_MODULE_2__["ListItem"], {
  4258. className: classes.inlineBlock,
  4259. style: {
  4260. padding: "10px"
  4261. }
  4262. }, __jsx("a", {
  4263. href: "https://www.youtube.com/channel/UCkU7UUVwFHaWAzRX9HXL6xQ",
  4264. target: "_blank",
  4265. class: "fa fa-youtube"
  4266. })))), __jsx("br", null), __jsx("br", null), __jsx("div", {
  4267. align: "center"
  4268. }, "\xA9 ", 1900 + new Date().getYear(), " , All Right Reserved", " ", " by", " ", " @Thamrin Group Company"), __jsx("br", null), __jsx("br", null));
  4269. }
  4270. /***/ }),
  4271. /***/ "x54t":
  4272. /***/ (function(module, exports) {
  4273. module.exports = require("@material-ui/core/MenuItem");
  4274. /***/ }),
  4275. /***/ "xmQw":
  4276. /***/ (function(module, exports) {
  4277. module.exports = require("@material-ui/core/MenuList");
  4278. /***/ }),
  4279. /***/ "ygnN":
  4280. /***/ (function(module, exports) {
  4281. module.exports = require("@material-ui/icons/BusinessOutlined");
  4282. /***/ }),
  4283. /***/ "z+8S":
  4284. /***/ (function(module, exports) {
  4285. module.exports = require("@apollo/client");
  4286. /***/ })
  4287. /******/ });