Guest User

Untitled

a guest
Jun 14th, 2017
1,633
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 443.41 KB | None | 0 0
  1. require("source-map-support").install();
  2. module.exports =
  3. /******/ (function(modules) { // webpackBootstrap
  4. /******/ // The module cache
  5. /******/ var installedModules = {};
  6. /******/
  7. /******/ // The require function
  8. /******/ function __webpack_require__(moduleId) {
  9. /******/
  10. /******/ // Check if module is in cache
  11. /******/ if(installedModules[moduleId]) {
  12. /******/ return installedModules[moduleId].exports;
  13. /******/ }
  14. /******/ // Create a new module (and put it into the cache)
  15. /******/ var module = installedModules[moduleId] = {
  16. /******/ i: moduleId,
  17. /******/ l: false,
  18. /******/ exports: {}
  19. /******/ };
  20. /******/
  21. /******/ // Execute the module function
  22. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  23. /******/
  24. /******/ // Flag the module as loaded
  25. /******/ module.l = true;
  26. /******/
  27. /******/ // Return the exports of the module
  28. /******/ return module.exports;
  29. /******/ }
  30. /******/
  31. /******/
  32. /******/ // expose the modules object (__webpack_modules__)
  33. /******/ __webpack_require__.m = modules;
  34. /******/
  35. /******/ // expose the module cache
  36. /******/ __webpack_require__.c = installedModules;
  37. /******/
  38. /******/ // identity function for calling harmony imports with the correct context
  39. /******/ __webpack_require__.i = function(value) { return value; };
  40. /******/
  41. /******/ // define getter function for harmony exports
  42. /******/ __webpack_require__.d = function(exports, name, getter) {
  43. /******/ if(!__webpack_require__.o(exports, name)) {
  44. /******/ Object.defineProperty(exports, name, {
  45. /******/ configurable: false,
  46. /******/ enumerable: true,
  47. /******/ get: getter
  48. /******/ });
  49. /******/ }
  50. /******/ };
  51. /******/
  52. /******/ // getDefaultExport function for compatibility with non-harmony modules
  53. /******/ __webpack_require__.n = function(module) {
  54. /******/ var getter = module && module.__esModule ?
  55. /******/ function getDefault() { return module['default']; } :
  56. /******/ function getModuleExports() { return module; };
  57. /******/ __webpack_require__.d(getter, 'a', getter);
  58. /******/ return getter;
  59. /******/ };
  60. /******/
  61. /******/ // Object.prototype.hasOwnProperty.call
  62. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  63. /******/
  64. /******/ // __webpack_public_path__
  65. /******/ __webpack_require__.p = "/assets/";
  66. /******/
  67. /******/ // Load entry module and return exports
  68. /******/ return __webpack_require__(__webpack_require__.s = 161);
  69. /******/ })
  70. /************************************************************************/
  71. /******/ ([
  72. /* 0 */
  73. /***/ (function(module, exports) {
  74.  
  75. module.exports = require("react");
  76.  
  77. /***/ }),
  78. /* 1 */
  79. /***/ (function(module, exports) {
  80.  
  81. module.exports = require("prop-types");
  82.  
  83. /***/ }),
  84. /* 2 */
  85. /***/ (function(module, exports) {
  86.  
  87. module.exports = require("react-redux");
  88.  
  89. /***/ }),
  90. /* 3 */
  91. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  92.  
  93. "use strict";
  94. /* unused harmony export AuthServiceClass */
  95. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__Cookies_cookies_service__ = __webpack_require__(30);
  96. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Communication_socket_Socket_service__ = __webpack_require__(10);
  97. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__modules_users_models_User_model__ = __webpack_require__(29);
  98. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__my_redux_actions_UserAuthenticated_actions__ = __webpack_require__(21);
  99. /**
  100. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/12/2017.
  101. * (C) BIT TECHNOLOGIES
  102. */
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110. let AuthServiceClass = class AuthServiceClass {
  111. //from redux
  112.  
  113. constructor() {
  114. this.dispatch = null;
  115. this.userAuthenticated = null;
  116.  
  117.  
  118. console.log(" @@@ AUTH SERVICE CLASS");
  119. }
  120.  
  121. startService(dispatch, userAuthenticated, SocketService) {
  122.  
  123. this.dispatch = dispatch;
  124. this.userAuthenticated = userAuthenticated;
  125.  
  126. this.loadCookieUserDocumentReady();
  127. }
  128.  
  129. loadCookieUserDocumentReady() {
  130. // this.loadCookieInterval = setInterval(::this.loadCookieUser,500);
  131. // this.loadCookieUser();
  132. }
  133.  
  134. loadCookieUser() {
  135.  
  136. if (this.userAuthenticated.user.isLoggedIn() === true) return; //already logged in
  137.  
  138. if (typeof window !== "undefined" && typeof window.document !== "undefined") {
  139.  
  140. var sessionId = __WEBPACK_IMPORTED_MODULE_0__Cookies_cookies_service__["a" /* default */].getSessionCookie();
  141. if (sessionId !== "") this.loginSessionAsync(sessionId);
  142.  
  143. __WEBPACK_IMPORTED_MODULE_1__Communication_socket_Socket_service__["a" /* default */].setSocketReadObservable("connect").subscribe(response => {
  144. var sessionId = __WEBPACK_IMPORTED_MODULE_0__Cookies_cookies_service__["a" /* default */].getSessionCookie();
  145. if (sessionId !== "") this.loginSessionAsync(sessionId);
  146. });
  147.  
  148. clearInterval(this.loadCookieInterval);
  149. }
  150. }
  151.  
  152. loginAsync(sEmailUserName, sPassword) {
  153.  
  154. this.logout();
  155.  
  156. return new Promise(resolve => {
  157.  
  158. if (this.userAuthenticated.user.isLoggedIn() === true) {
  159. console.log("user already logged in");resolve(true);return;
  160. }; //already logged in
  161.  
  162. //Using Promise
  163. __WEBPACK_IMPORTED_MODULE_1__Communication_socket_Socket_service__["a" /* default */].sendRequestGetDataPromise("auth/login", { emailUsername: sEmailUserName, password: sPassword }).then(resData => {
  164.  
  165. console.log('Answer from Server Auth Login');
  166. console.log(resData);
  167.  
  168. if (resData.result === true) this.loginProvidingUser(resData.user, resData.sessionId);
  169.  
  170. resolve(resData);
  171. });
  172. });
  173. }
  174.  
  175. loginProvidingUser(userJSON, sessionId) {
  176. let userLogged = new __WEBPACK_IMPORTED_MODULE_2__modules_users_models_User_model__["a" /* default */](userJSON);
  177. this.dispatch(__WEBPACK_IMPORTED_MODULE_3__my_redux_actions_UserAuthenticated_actions__["a" /* newUserAuthenticated */](userLogged));
  178.  
  179. __WEBPACK_IMPORTED_MODULE_0__Cookies_cookies_service__["a" /* default */].setCookie('sessionId', sessionId, 365 * 5, '/');
  180. console.log('setting cookie ' + sessionId);
  181. }
  182.  
  183. loginSessionAsync(sessionId) {
  184.  
  185. return new Promise(resolve => {
  186. //Using Promise
  187.  
  188. if (this.userAuthenticated.user.isLoggedIn() === true) {
  189. resolve(true);return;
  190. }; //already logged in
  191.  
  192. //SocketService.createClientSocket();
  193. __WEBPACK_IMPORTED_MODULE_1__Communication_socket_Socket_service__["a" /* default */].sendRequestGetDataPromise("auth/login-session", { sessionId: sessionId }).then(resData => {
  194.  
  195. console.log('Answer from Login sessionId Async');
  196. console.log(resData);
  197.  
  198. if (resData.result == true) {
  199.  
  200. let userLogged = new __WEBPACK_IMPORTED_MODULE_2__modules_users_models_User_model__["a" /* default */](resData.user);
  201. this.dispatch(__WEBPACK_IMPORTED_MODULE_3__my_redux_actions_UserAuthenticated_actions__["a" /* newUserAuthenticated */](userLogged));
  202. }
  203.  
  204. resolve(resData);
  205. });
  206. });
  207. }
  208.  
  209. registerAsync(sUsername, sEmailAddress, sPassword, sFirstName, sLastName, sCountry, sLanguage, sCity, sLatitude, sLongitude, iTimeZone) {
  210.  
  211. return new Promise(resolve => {
  212.  
  213. //Using Promise
  214. __WEBPACK_IMPORTED_MODULE_1__Communication_socket_Socket_service__["a" /* default */].sendRequestGetDataPromise("auth/register", { email: sEmailAddress, username: sUsername, password: sPassword,
  215. firstName: sFirstName, lastName: sLastName, country: sCountry, language: sLanguage, city: sCity, latitude: sLatitude, longitude: sLongitude, timeZone: iTimeZone }).then(resData => {
  216.  
  217. console.log('Answer from Server Auth Register', resData);
  218.  
  219. if (resData.result === true) {
  220. this.loginAsync(sEmailAddress, sPassword);
  221. }
  222.  
  223. resolve(resData);
  224. });
  225. });
  226. }
  227.  
  228. registerOAuthAsync(sSocialNetworkName, sSocialNetworkId, sAccessToken, sEmail, sFirstName, sLastName, sProfilePic, sCoverImage, sCountryCode, sLanguage, sCity, latitude, longitude, sShortBio, iAge, sGender, iTimeZone, bVerified) {
  229.  
  230. return new Promise(resolve => {
  231.  
  232. //Using Promise
  233. __WEBPACK_IMPORTED_MODULE_1__Communication_socket_Socket_service__["a" /* default */].sendRequestGetDataPromise("auth/register-oauth", { socialNetwork: sSocialNetworkName, socialNetworkId: sSocialNetworkId, accessToken: sAccessToken,
  234. email: sEmail, firstName: sFirstName, lastName: sLastName, profilePic: sProfilePic, coverPic: sCoverImage, country: sCountryCode, language: sLanguage, city: sCity,
  235. latitude: latitude, longitude: longitude, shortBio: sShortBio, age: iAge, gender: sGender, timeZone: iTimeZone, verified: bVerified }).then(resData => {
  236.  
  237. console.log('Answer from Oauth', resData);
  238.  
  239. if (resData.result === true) {
  240. this.loginProvidingUser(resData.user, resData.sessionId);
  241. }
  242.  
  243. resolve(resData);
  244. });
  245. });
  246. }
  247.  
  248. logout() {
  249.  
  250. console.log("LOGOUT");
  251.  
  252. __WEBPACK_IMPORTED_MODULE_1__Communication_socket_Socket_service__["a" /* default */].sendRequest("auth/logout", {});
  253.  
  254. __WEBPACK_IMPORTED_MODULE_0__Cookies_cookies_service__["a" /* default */].deleteCookie("sessionId");
  255. this.dispatch(__WEBPACK_IMPORTED_MODULE_3__my_redux_actions_UserAuthenticated_actions__["b" /* logoutUserAuthenticated */]());
  256. }
  257.  
  258. };
  259.  
  260. var AuthService = new AuthServiceClass();
  261. /* harmony default export */ __webpack_exports__["a"] = (AuthService);
  262.  
  263. // export default {
  264. // AuthService: AuthService,
  265. //
  266. // createNewInstance: function () {
  267. // AuthService = new AuthServiceClass();
  268. // }
  269. //
  270. // }
  271.  
  272. /***/ }),
  273. /* 4 */
  274. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  275.  
  276. "use strict";
  277. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  278. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  279. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  280. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  281. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Template_components_Body__ = __webpack_require__(55);
  282. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Feedback_Feedback__ = __webpack_require__(53);
  283. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_redux__ = __webpack_require__(2);
  284. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_redux__);
  285. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__my_redux_actions_Localization_actions__ = __webpack_require__(12);
  286. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  287.  
  288. var _class, _temp;
  289.  
  290. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  291.  
  292. /**
  293. * React Starter Kit (https://www.reactstarterkit.com/)
  294. *
  295. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  296. *
  297. * This source code is licensed under the MIT license found in the
  298. * LICENSE.txt file in the root directory of this source tree.
  299. */
  300.  
  301.  
  302.  
  303.  
  304. // external-global styles must be imported in your JS.
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312.  
  313. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_3__Feedback_Feedback__["a" /* default */], {});
  314.  
  315. let Layout = (_temp = _class = class Layout extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  316.  
  317. getChildContext() {
  318. return {
  319. userAuthenticated: this.props.userAuthenticated
  320. };
  321. }
  322.  
  323. constructor(props) {
  324.  
  325. super(props);
  326. }
  327.  
  328. componentDidMount() {
  329. return _asyncToGenerator(function* () {
  330. // this.props.dispatch(startLocalizationFetchingAsync());
  331.  
  332. requestAnimationFrame(function () {//Make sure it is on client only
  333.  
  334.  
  335. });
  336. })();
  337. }
  338.  
  339. render() {
  340.  
  341. //console.log("################### Layout",this);
  342.  
  343.  
  344. return _jsx('div', {
  345. id: 'wrapper'
  346. }, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_2__Template_components_Body__["a" /* default */], {}, void 0, 'Country: ', this.props.localization.country, this.props.children), _ref);
  347. }
  348. }, _class.contextTypes = {
  349. SocketService: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,
  350. AuthService: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
  351. }, _class.childContextTypes = {
  352. userAuthenticated: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any
  353. }, _temp);
  354.  
  355.  
  356. function mapState(state) {
  357. return {
  358. localization: state.localization,
  359. userAuthenticated: state.userAuthenticated
  360. };
  361. };
  362.  
  363. function mapDispatch(dispatch) {
  364. return {
  365. dispatch: dispatch
  366. };
  367. };
  368.  
  369. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4_react_redux__["connect"])(mapState, mapDispatch)(Layout));
  370.  
  371. /***/ }),
  372. /* 5 */
  373. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  374.  
  375. "use strict";
  376. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  377. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  378. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  379. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  380. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__history__ = __webpack_require__(88);
  381. var _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; };
  382.  
  383. var _class, _temp2;
  384.  
  385. function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
  386.  
  387. /**
  388. * React Starter Kit (https://www.reactstarterkit.com/)
  389. *
  390. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  391. *
  392. * This source code is licensed under the MIT license found in the
  393. * LICENSE.txt file in the root directory of this source tree.
  394. */
  395.  
  396.  
  397.  
  398.  
  399.  
  400. function isLeftClickEvent(event) {
  401. return event.button === 0;
  402. }
  403.  
  404. function isModifiedEvent(event) {
  405. return !!(event.metaKey || event.altKey || event.ctrlKey || event.shiftKey);
  406. }
  407.  
  408. let Link = (_temp2 = _class = class Link extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  409. constructor(...args) {
  410. var _temp;
  411.  
  412. return _temp = super(...args), this.handleClick = event => {
  413. if (this.props.onClick) {
  414. this.props.onClick(event);
  415. }
  416.  
  417. if (isModifiedEvent(event) || !isLeftClickEvent(event)) {
  418. return;
  419. }
  420.  
  421. if (event.defaultPrevented === true) {
  422. return;
  423. }
  424.  
  425. event.preventDefault();
  426. __WEBPACK_IMPORTED_MODULE_2__history__["a" /* default */].push(this.props.to);
  427. }, _temp;
  428. }
  429.  
  430. render() {
  431. const _props = this.props,
  432. { to, children } = _props,
  433. props = _objectWithoutProperties(_props, ['to', 'children']);
  434. return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
  435. 'a',
  436. _extends({ href: to }, props, { onClick: this.handleClick }),
  437. children
  438. );
  439. }
  440. }, _class.defaultProps = {
  441. onClick: null
  442. }, _temp2);
  443.  
  444.  
  445. /* harmony default export */ __webpack_exports__["a"] = (Link);
  446.  
  447. /***/ }),
  448. /* 6 */
  449. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  450.  
  451. "use strict";
  452. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Forum; });
  453. /**
  454. * Created by BIT TECHNOLOGIES on 5/28/2017.
  455. */
  456.  
  457. /* eslint-disable import/prefer-default-export */
  458.  
  459. let Forum = class Forum {
  460.  
  461. constructor(data = {}) {
  462.  
  463. this.title = data.title || '';
  464. this.description = data.description || '';
  465.  
  466. this.URL = data.URL || '';
  467.  
  468. this.iconPic = data.iconPic || '';
  469. this.coverPic = data.coverPic || '';
  470. this.coverColor = data.coverColor || '';
  471.  
  472. this.preferredLang = data.preferredLang || data.language || null;
  473.  
  474. this.country = data.country || '';
  475. this.city = data.city || '';
  476. this.dtCreation = data.dtCreation || Date.now();
  477. this.dtLastActivity = data.dtLastActivity || Date.now();
  478.  
  479. this.longitude = data.longitude || -666;
  480. this.latitude = data.latitude || -666;
  481.  
  482. console.log('Forum Assigned');
  483. }
  484.  
  485. getAuthor() {
  486. return null;
  487. }
  488. };
  489.  
  490.  
  491. /***/ }),
  492. /* 7 */
  493. /***/ (function(module, exports) {
  494.  
  495. module.exports = require("isomorphic-style-loader/lib/withStyles");
  496.  
  497. /***/ }),
  498. /* 8 */
  499. /***/ (function(module, exports) {
  500.  
  501. /*
  502. MIT License http://www.opensource.org/licenses/mit-license.php
  503. Author Tobias Koppers @sokra
  504. */
  505. // css base code, injected by the css-loader
  506. module.exports = function(useSourceMap) {
  507. var list = [];
  508.  
  509. // return the list of modules as css string
  510. list.toString = function toString() {
  511. return this.map(function (item) {
  512. var content = cssWithMappingToString(item, useSourceMap);
  513. if(item[2]) {
  514. return "@media " + item[2] + "{" + content + "}";
  515. } else {
  516. return content;
  517. }
  518. }).join("");
  519. };
  520.  
  521. // import a list of modules into the list
  522. list.i = function(modules, mediaQuery) {
  523. if(typeof modules === "string")
  524. modules = [[null, modules, ""]];
  525. var alreadyImportedModules = {};
  526. for(var i = 0; i < this.length; i++) {
  527. var id = this[i][0];
  528. if(typeof id === "number")
  529. alreadyImportedModules[id] = true;
  530. }
  531. for(i = 0; i < modules.length; i++) {
  532. var item = modules[i];
  533. // skip already imported module
  534. // this implementation is not 100% perfect for weird media query combinations
  535. // when a module is imported multiple times with different media queries.
  536. // I hope this will never occur (Hey this way we have smaller bundles)
  537. if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) {
  538. if(mediaQuery && !item[2]) {
  539. item[2] = mediaQuery;
  540. } else if(mediaQuery) {
  541. item[2] = "(" + item[2] + ") and (" + mediaQuery + ")";
  542. }
  543. list.push(item);
  544. }
  545. }
  546. };
  547. return list;
  548. };
  549.  
  550. function cssWithMappingToString(item, useSourceMap) {
  551. var content = item[1] || '';
  552. var cssMapping = item[3];
  553. if (!cssMapping) {
  554. return content;
  555. }
  556.  
  557. if (useSourceMap && typeof btoa === 'function') {
  558. var sourceMapping = toComment(cssMapping);
  559. var sourceURLs = cssMapping.sources.map(function (source) {
  560. return '/*# sourceURL=' + cssMapping.sourceRoot + source + ' */'
  561. });
  562.  
  563. return [content].concat(sourceURLs).concat([sourceMapping]).join('\n');
  564. }
  565.  
  566. return [content].join('\n');
  567. }
  568.  
  569. // Adapted from convert-source-map (MIT)
  570. function toComment(sourceMap) {
  571. // eslint-disable-next-line no-undef
  572. var base64 = btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));
  573. var data = 'sourceMappingURL=data:application/json;charset=utf-8;base64,' + base64;
  574.  
  575. return '/*# ' + data + ' */';
  576. }
  577.  
  578.  
  579. /***/ }),
  580. /* 9 */
  581. /***/ (function(module, exports, __webpack_require__) {
  582.  
  583. "use strict";
  584.  
  585.  
  586. var _stringify = __webpack_require__(138);
  587.  
  588. var _stringify2 = _interopRequireDefault(_stringify);
  589.  
  590. var _slicedToArray2 = __webpack_require__(139);
  591.  
  592. var _slicedToArray3 = _interopRequireDefault(_slicedToArray2);
  593.  
  594. function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  595.  
  596. /**
  597. * Isomorphic CSS style loader for Webpack
  598. *
  599. * Copyright © 2015-present Kriasoft, LLC. All rights reserved.
  600. *
  601. * This source code is licensed under the MIT license found in the
  602. * LICENSE.txt file in the root directory of this source tree.
  603. */
  604.  
  605. var prefix = 's';
  606. var inserted = {};
  607.  
  608. // Base64 encoding and decoding - The "Unicode Problem"
  609. // https://developer.mozilla.org/en-US/docs/Web/API/WindowBase64/Base64_encoding_and_decoding#The_Unicode_Problem
  610. function b64EncodeUnicode(str) {
  611. return btoa(encodeURIComponent(str).replace(/%([0-9A-F]{2})/g, function (match, p1) {
  612. return String.fromCharCode('0x' + p1);
  613. }));
  614. }
  615.  
  616. /**
  617. * Remove style/link elements for specified node IDs
  618. * if they are no longer referenced by UI components.
  619. */
  620. function removeCss(ids) {
  621. ids.forEach(function (id) {
  622. if (--inserted[id] <= 0) {
  623. var elem = document.getElementById(prefix + id);
  624. if (elem) {
  625. elem.parentNode.removeChild(elem);
  626. }
  627. }
  628. });
  629. }
  630.  
  631. /**
  632. * Example:
  633. * // Insert CSS styles object generated by `css-loader` into DOM
  634. * var removeCss = insertCss([[1, 'body { color: red; }']]);
  635. *
  636. * // Remove it from the DOM
  637. * removeCss();
  638. */
  639. function insertCss(styles) {
  640. var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
  641. _ref$replace = _ref.replace,
  642. replace = _ref$replace === undefined ? false : _ref$replace,
  643. _ref$prepend = _ref.prepend,
  644. prepend = _ref$prepend === undefined ? false : _ref$prepend;
  645.  
  646. var ids = [];
  647. for (var i = 0; i < styles.length; i++) {
  648. var _styles$i = (0, _slicedToArray3.default)(styles[i], 4),
  649. moduleId = _styles$i[0],
  650. css = _styles$i[1],
  651. media = _styles$i[2],
  652. sourceMap = _styles$i[3];
  653.  
  654. var id = moduleId + '-' + i;
  655.  
  656. ids.push(id);
  657.  
  658. if (inserted[id]) {
  659. if (!replace) {
  660. inserted[id]++;
  661. continue;
  662. }
  663. }
  664.  
  665. inserted[id] = 1;
  666.  
  667. var elem = document.getElementById(prefix + id);
  668. var create = false;
  669.  
  670. if (!elem) {
  671. create = true;
  672.  
  673. elem = document.createElement('style');
  674. elem.setAttribute('type', 'text/css');
  675. elem.id = prefix + id;
  676.  
  677. if (media) {
  678. elem.setAttribute('media', media);
  679. }
  680. }
  681.  
  682. var cssText = css;
  683. if (sourceMap && typeof btoa === 'function') {
  684. // skip IE9 and below, see http://caniuse.com/atob-btoa
  685. cssText += '\n/*# sourceMappingURL=data:application/json;base64,' + b64EncodeUnicode((0, _stringify2.default)(sourceMap)) + '*/';
  686. cssText += '\n/*# sourceURL=' + sourceMap.file + '?' + id + '*/';
  687. }
  688.  
  689. if ('textContent' in elem) {
  690. elem.textContent = cssText;
  691. } else {
  692. elem.styleSheet.cssText = cssText;
  693. }
  694.  
  695. if (create) {
  696. if (prepend) {
  697. document.head.insertBefore(elem, document.head.childNodes[0]);
  698. } else {
  699. document.head.appendChild(elem);
  700. }
  701. }
  702. }
  703.  
  704. return removeCss.bind(null, ids);
  705. }
  706.  
  707. module.exports = insertCss;
  708.  
  709. /***/ }),
  710. /* 10 */
  711. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  712.  
  713. "use strict";
  714. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_socket_io_client__ = __webpack_require__(48);
  715. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_socket_io_client___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_socket_io_client__);
  716. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__ = __webpack_require__(47);
  717. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__);
  718. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Cookies_cookies_service__ = __webpack_require__(30);
  719. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__my_redux_actions_SocketStatus_actions__ = __webpack_require__(34);
  720. /**
  721. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/6/2017.
  722. * (C) BIT TECHNOLOGIES
  723. */
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731.  
  732. let SocketServiceClass = class SocketServiceClass {
  733.  
  734. constructor() {
  735. this.sServerSocketAddress = "myskyhub.ddns.net:4000";
  736. this.sServerSocketApi = "api/";
  737. this.sServerSocketVersion = "";
  738.  
  739.  
  740. console.log(' @@@@@@ Socket Client constructor');
  741. }
  742.  
  743. startService(dispatch) {
  744. this.dispatch = dispatch;
  745. this.createClientSocketDocumentReady();
  746. }
  747.  
  748. createClientSocketDocumentReady() {
  749. //this.createClientSocketInterval = setInterval(::this.createClientSocket,500);
  750. this.createClientSocket();
  751. }
  752.  
  753. createClientSocket() {
  754.  
  755. // console.log("Trying to create Client...");
  756. //
  757. // if ((typeof window === "undefined") || (typeof window.document === "undefined")) return; //in case it is not executed on the Client Browser
  758. //
  759. // console.log('createClientSocket ');
  760. // clearInterval(this.createClientSocketInterval);
  761.  
  762. this.socket = __WEBPACK_IMPORTED_MODULE_0_socket_io_client__["connect"](this.sServerSocketAddress, {
  763. //query: "token=aaa" //JWT Token
  764. query: "token=" + __WEBPACK_IMPORTED_MODULE_2__Cookies_cookies_service__["a" /* default */].getSessionCookie //JWT Token
  765. () });
  766.  
  767. this.setSocketReadObservable("connect").subscribe(response => {
  768.  
  769. console.log('Client has connected to the server!');
  770. this.dispatch(__WEBPACK_IMPORTED_MODULE_3__my_redux_actions_SocketStatus_actions__["a" /* socketConnectionSuccessfully */]());
  771. });
  772.  
  773. this.socket.on("connect_failed", function () {
  774. console.log('Connecting failed 222');
  775. });
  776.  
  777. this.setSocketReadObservable("connect_error").subscribe(response => {
  778. console.log('Connecting Error', response);
  779. this.dispatch(__WEBPACK_IMPORTED_MODULE_3__my_redux_actions_SocketStatus_actions__["b" /* socketConnectingError */]());
  780. });
  781.  
  782. this.socket.on("error", function () {
  783. console.log('error 222');
  784. });
  785.  
  786. this.socket.on('api/news', function (res) {
  787. console.log('news');
  788. console.log(res);
  789. });
  790.  
  791. // THE SAME CODE written but using OBSERVABLE
  792. this.setSocketReadObservable("connectionReady").subscribe(response => {
  793.  
  794. console.log("Connection Ready: " + response);
  795.  
  796. this.sendRequestObservable("version", '').subscribe(response => {
  797.  
  798. this.sServerSocketVersion = response.version;
  799.  
  800. console.log("API VERSION: " + response.version);
  801. });
  802. });
  803.  
  804. // Add a connect listener
  805. this.socket.on('api/message', function (data) {
  806. console.log('Received a message from the server!', data);
  807. });
  808.  
  809. // Add a disconnect listener
  810. this.setSocketReadObservable("disconnect").subscribe(response => {
  811.  
  812. console.log('The client has disconnected!');
  813. this.dispatch(__WEBPACK_IMPORTED_MODULE_3__my_redux_actions_SocketStatus_actions__["c" /* socketDisconnected */]());
  814. });
  815. }
  816.  
  817. /*
  818. FUNCTIONS
  819. */
  820.  
  821. sendRequest(sRequestName, requestData) {
  822.  
  823. //console.log('sending'+sRequestName); console.log(sRequestData);
  824.  
  825. var token = __WEBPACK_IMPORTED_MODULE_2__Cookies_cookies_service__["a" /* default */].getSessionCookie();
  826. if (token !== "" && !requestData.hasOwnProperty('token') && typeof requestData !== "string") {
  827. requestData.token = token;
  828. }
  829.  
  830. if (sRequestName !== '' || requestData !== '') return this.socket.emit(this.sServerSocketApi + sRequestName, requestData);
  831. }
  832.  
  833. /*
  834. Sending the Request and Obtain the Promise to Wait Async
  835. */
  836. sendRequestGetDataPromise(sRequestName, sRequestData) {
  837. return new Promise(resolve => {
  838.  
  839. this.sendRequest(sRequestName, sRequestData);
  840.  
  841. this.socket.once(this.sServerSocketApi + sRequestName, function (resData) {
  842.  
  843. /*console.log('SOCKET RECEIVED: ');
  844. console.log(resData);*/
  845.  
  846. resolve(resData);
  847. });
  848. });
  849. }
  850.  
  851. sendMessage(msg) {
  852. return this.sendRequest("message", msg);
  853. }
  854.  
  855. /*
  856. Sending Request and Obtain the Observable Object
  857. */
  858. sendRequestObservable(sRequestName, sRequestData) {
  859.  
  860. var result = this.sendRequest(sRequestName, sRequestData);
  861.  
  862. return this.setSocketReadObservable(sRequestName);
  863. }
  864.  
  865. setSocketReadObservable(sRequestName) {
  866.  
  867. if (sRequestName !== "connect" && sRequestName !== "disconnect" && sRequestName !== 'connect_failed' && sRequestName !== 'connect_error') sRequestName = this.sServerSocketApi + sRequestName;
  868.  
  869. //let observable = new Observable < Object > (observer => {
  870. let observable = __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__["Observable"].create(observer => {
  871. this.socket.on(sRequestName, data => {
  872. observer.next(data);
  873. });
  874. });
  875.  
  876. console.log("OBSERVABLE for " + sRequestName, observable);
  877. return observable;
  878. }
  879.  
  880. };
  881.  
  882.  
  883. var SocketService = new SocketServiceClass();
  884.  
  885. /* harmony default export */ __webpack_exports__["a"] = (SocketService);
  886.  
  887. // var SocketService = new SocketServiceClass();
  888. //
  889. // export default {
  890. // SocketService: SocketService,
  891. // createNewInstance: function (){
  892. // SocketService = new SocketServiceClass();
  893. // }
  894. // };
  895.  
  896. /***/ }),
  897. /* 11 */
  898. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  899.  
  900. "use strict";
  901. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize__ = __webpack_require__(13);
  902. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_sequelize__);
  903. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__config__ = __webpack_require__(15);
  904. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__config___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__config__);
  905. /**
  906. * React Starter Kit (https://www.reactstarterkit.com/)
  907. *
  908. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  909. *
  910. * This source code is licensed under the MIT license found in the
  911. * LICENSE.txt file in the root directory of this source tree.
  912. */
  913.  
  914.  
  915.  
  916.  
  917. const sequelize = new __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a(__WEBPACK_IMPORTED_MODULE_1__config___default.a.databaseUrl, {
  918. define: {
  919. freezeTableName: true
  920. }
  921. });
  922.  
  923. /* harmony default export */ __webpack_exports__["a"] = (sequelize);
  924.  
  925. /***/ }),
  926. /* 12 */
  927. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  928.  
  929. "use strict";
  930. /* harmony export (immutable) */ __webpack_exports__["a"] = extractIP;
  931. /* harmony export (immutable) */ __webpack_exports__["b"] = startLocalizationFetchingAsync;
  932. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(43);
  933. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);
  934. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  935.  
  936. /**
  937. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/26/2017.
  938. * (C) BIT TECHNOLOGIES
  939. */
  940.  
  941. /* eslint-disable import/prefer-default-export */
  942.  
  943.  
  944.  
  945. function extractIP(req) {
  946.  
  947. var ip = req.headers['x-real-ip'] || req.connection.remoteAddress;
  948. //const requestIp = require('request-ip');
  949. //const ip = requestIp.getClientIp(req);
  950.  
  951. console.log('IP::');console.log(ip);
  952.  
  953. return {
  954. type: 'NEW_LOCALIZATION_IP',
  955. payload: {
  956. clientIP: ip
  957. }
  958. };
  959. }
  960.  
  961. function startLocalizationFetchingAsync() {
  962. return (() => {
  963. var _ref = _asyncToGenerator(function* (dispatch, getState) {
  964.  
  965. //console.log("startLocalizationFetchingAsync ",getState());
  966.  
  967. if (getState().localization.request.sent) {
  968. return dispatch({
  969. type: "LOCALIZATION_SKIPPED",
  970. payload: {}
  971. });
  972. }
  973.  
  974. let payload = {
  975. request: {
  976. sent: true
  977. }
  978. };
  979.  
  980. dispatch({
  981. type: "NEW_LOCALIZATION_REQUEST_SENT",
  982. payload: payload
  983. });
  984.  
  985. return __WEBPACK_IMPORTED_MODULE_0_axios___default.a.get("http://freegeoip.net/json/" + getState().localization.IP).then(function (res) {
  986.  
  987. res = res.data;
  988.  
  989. var payload = {
  990. country: res.country_name || '',
  991. countryCode: res.country_code || '',
  992. city: res.city || '',
  993. latitude: res.latitude || '',
  994. longitude: res.longitude || '',
  995. ip: res.ip || '',
  996. timeZone: res.time_zone || '',
  997. request: {
  998. sent: true,
  999. done: true,
  1000. error: false
  1001. }
  1002. };
  1003.  
  1004. //console.log("IP STATUS",payload);
  1005.  
  1006. dispatch({
  1007. type: "NEW_LOCALIZATION",
  1008. payload: payload
  1009. });
  1010. }).catch(function (error) {
  1011. console.log("Promise Rejected", error);
  1012.  
  1013. dispatch({
  1014. type: "NEW_LOCALIZATION_REQUEST_ERROR",
  1015. payload: null
  1016. });
  1017. });
  1018. });
  1019.  
  1020. return function (_x, _x2) {
  1021. return _ref.apply(this, arguments);
  1022. };
  1023. })();
  1024. }
  1025.  
  1026. /***/ }),
  1027. /* 13 */
  1028. /***/ (function(module, exports) {
  1029.  
  1030. module.exports = require("sequelize");
  1031.  
  1032. /***/ }),
  1033. /* 14 */
  1034. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1035.  
  1036. "use strict";
  1037. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__services_Communication_socket_Socket_service__ = __webpack_require__(10);
  1038. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__my_redux_actions_UserAuthenticated_actions__ = __webpack_require__(21);
  1039. /**
  1040. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/26/2017.
  1041. * (C) BIT TECHNOLOGIES
  1042. */
  1043.  
  1044.  
  1045.  
  1046.  
  1047. let ForumsServiceClass = class ForumsServiceClass {
  1048.  
  1049. constructor() {
  1050. this.dispatch = null;
  1051. }
  1052.  
  1053. startService(dispatch) {
  1054. this.dispatch = dispatch;
  1055. }
  1056.  
  1057. forumAddAsync(sParentId, sTitle, sDescription, arrKeywords, sCountryCode, sLanguage, sCity, latitude, longitude, iTimeZone) {
  1058.  
  1059. return new Promise(resolve => {
  1060.  
  1061. //Using Promise
  1062. __WEBPACK_IMPORTED_MODULE_0__services_Communication_socket_Socket_service__["a" /* default */].sendRequestGetDataPromise("forums/add-forum", { parent: sParentId, title: sTitle, description: sDescription, keywords: arrKeywords,
  1063. country: sCountryCode, language: sLanguage, city: sCity, latitude: latitude, longitude: longitude, timeZone: iTimeZone }).then(resData => {
  1064.  
  1065. console.log('Answer from FORUM ', resData);
  1066.  
  1067. // if(resData.result === true) {
  1068. // this.loginProvidingUser(resData.user, resData.token);
  1069. // }
  1070.  
  1071. resolve(resData);
  1072. });
  1073. });
  1074. }
  1075.  
  1076. getForumAsync(sId) {
  1077.  
  1078. //Using Promise
  1079. return __WEBPACK_IMPORTED_MODULE_0__services_Communication_socket_Socket_service__["a" /* default */].sendRequestGetDataPromise("forums/get-forum", { id: sId });
  1080. }
  1081.  
  1082. };
  1083.  
  1084.  
  1085. var ForumsService = new ForumsServiceClass();
  1086. /* harmony default export */ __webpack_exports__["a"] = (ForumsService);
  1087.  
  1088. /***/ }),
  1089. /* 15 */
  1090. /***/ (function(module, exports, __webpack_require__) {
  1091.  
  1092. /**
  1093. * React Starter Kit (https://www.reactstarterkit.com/)
  1094. *
  1095. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  1096. *
  1097. * This source code is licensed under the MIT license found in the
  1098. * LICENSE.txt file in the root directory of this source tree.
  1099. */
  1100.  
  1101. /* eslint-disable max-len */
  1102.  
  1103. if (false) {
  1104. throw new Error('Do not import `config.js` from inside the client-side code.');
  1105. }
  1106.  
  1107. module.exports = {
  1108. // Node.js app
  1109. port: process.env.PORT || 8000,
  1110.  
  1111. // API Gateway
  1112. api: {
  1113. // API URL to be used in the client-side code
  1114. clientUrl: process.env.API_CLIENT_URL || '',
  1115. // API URL to be used in the server-side code
  1116. serverUrl: process.env.API_SERVER_URL || `http://localhost:${process.env.PORT || 8000}`
  1117. },
  1118.  
  1119. // Database
  1120. databaseUrl: process.env.DATABASE_URL || 'sqlite:database.sqlite',
  1121.  
  1122. // Web analytics
  1123. analytics: {
  1124. // https://analytics.google.com/
  1125. googleTrackingId: process.env.GOOGLE_TRACKING_ID // UA-XXXXX-X
  1126. },
  1127.  
  1128. // Authentication
  1129. auth: {
  1130. jwt: { secret: process.env.JWT_SECRET || 'SKYHUB_SECRET_44442222' },
  1131.  
  1132. // https://developers.facebook.com/
  1133. facebook: {
  1134. id: process.env.FACEBOOK_APP_ID || '622709767918813',
  1135. secret: process.env.FACEBOOK_APP_SECRET || 'f4fb647d60c8569d4048d0a1a3a50e89'
  1136. },
  1137.  
  1138. // https://cloud.google.com/console/project
  1139. google: {
  1140. id: process.env.GOOGLE_CLIENT_ID || '658977310896-knrl3gka66fldh83dao2rhgbblmd4un9.apps.googleusercontent.com',
  1141. secret: process.env.GOOGLE_CLIENT_SECRET || 'Y8yR9yZAhm9jQ8FKAL8QIEcd'
  1142. },
  1143.  
  1144. // https://apps.twitter.com/
  1145. twitter: {
  1146. key: process.env.TWITTER_CONSUMER_KEY || 'Ie20AZvLJI2lQD5Dsgxgjauns',
  1147. secret: process.env.TWITTER_CONSUMER_SECRET || 'KTZ6cxoKnEakQCeSpZlaUCJWGAlTEBJj0y2EMkUBujA7zWSvaQ'
  1148. }
  1149. }
  1150. };
  1151.  
  1152. /***/ }),
  1153. /* 16 */
  1154. /***/ (function(module, exports) {
  1155.  
  1156. module.exports = require("graphql");
  1157.  
  1158. /***/ }),
  1159. /* 17 */
  1160. /***/ (function(module, exports) {
  1161.  
  1162. module.exports = require("react-select");
  1163.  
  1164. /***/ }),
  1165. /* 18 */
  1166. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1167.  
  1168. "use strict";
  1169. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  1170. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  1171. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  1172. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  1173. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(7);
  1174. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__);
  1175. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Page_css__ = __webpack_require__(131);
  1176. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Page_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__Page_css__);
  1177. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  1178.  
  1179. /**
  1180. * React Starter Kit (https://www.reactstarterkit.com/)
  1181. *
  1182. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  1183. *
  1184. * This source code is licensed under the MIT license found in the
  1185. * LICENSE.txt file in the root directory of this source tree.
  1186. */
  1187.  
  1188.  
  1189.  
  1190.  
  1191.  
  1192.  
  1193. let Page = function () {
  1194. function Page(props) {
  1195. const { title, html } = props;
  1196. return _jsx('div', {
  1197. className: __WEBPACK_IMPORTED_MODULE_3__Page_css___default.a.root
  1198. }, void 0, _jsx('div', {
  1199. className: __WEBPACK_IMPORTED_MODULE_3__Page_css___default.a.container
  1200. }, void 0, _jsx('h1', {}, void 0, title), _jsx('div', {
  1201. dangerouslySetInnerHTML: { __html: html }
  1202. }), _jsx('div', {}, void 0, props.children || null)));
  1203. }
  1204.  
  1205. return Page;
  1206. }();
  1207.  
  1208. /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default()(__WEBPACK_IMPORTED_MODULE_3__Page_css___default.a)(Page));
  1209.  
  1210. /***/ }),
  1211. /* 19 */
  1212. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1213.  
  1214. "use strict";
  1215. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios__ = __webpack_require__(43);
  1216. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_axios___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_axios__);
  1217. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  1218.  
  1219. /**
  1220. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/6/2017.
  1221. * (C) BIT TECHNOLOGIES
  1222. */
  1223.  
  1224. //import CookiesService from 'modules/services/Cookies/Cookies.service';
  1225.  
  1226.  
  1227.  
  1228. //import { Configuration } from '../app.constants';
  1229.  
  1230. let HTTPServiceClass = class HTTPServiceClass {
  1231.  
  1232. constructor() {
  1233. this.serverHTTP = "http://myskyhub.ddns.net:4000/";
  1234. this.serverHTTPApi = this.serverHTTP + "api/";
  1235.  
  1236.  
  1237. console.log("Creating HTTP Service");
  1238. }
  1239.  
  1240. getRequest(sRequest, req) {
  1241. var _this = this;
  1242.  
  1243. return _asyncToGenerator(function* () {
  1244.  
  1245. //console.log(""); console.log(""); console.log(""); console.log(this.addTrailingSlash(this.serverHTTPApi)+sRequest); console.log(req);
  1246.  
  1247. req = { data: req };
  1248.  
  1249. let answer = yield __WEBPACK_IMPORTED_MODULE_0_axios___default.a.get(_this.addTrailingSlash(_this.serverHTTPApi) + sRequest, req);
  1250. return answer.data;
  1251. })();
  1252. }
  1253.  
  1254. getRequestURL(sRequest, req) {
  1255. return _asyncToGenerator(function* () {
  1256. req = { data: req };
  1257.  
  1258. let answer = yield __WEBPACK_IMPORTED_MODULE_0_axios___default.a.get(sRequest, req);
  1259. return answer.data;
  1260. })();
  1261. }
  1262.  
  1263. postRequest(sRequest, post) {
  1264. var _this2 = this;
  1265.  
  1266. return _asyncToGenerator(function* () {
  1267. let answer = yield __WEBPACK_IMPORTED_MODULE_0_axios___default.a.post(_this2.addTrailingSlash(_this2.serverHTTPApi) + sRequest, post);
  1268. return answer.data;
  1269. })();
  1270. }
  1271.  
  1272. checkAuthCookie(cookie) {
  1273. var _this3 = this;
  1274.  
  1275. return _asyncToGenerator(function* () {
  1276.  
  1277. let sessionId = '';
  1278.  
  1279. //based on this https://stackoverflow.com/questions/3393854/get-and-set-a-single-cookie-with-node-js-http-server
  1280. cookie && cookie.split(';').forEach(function (cookie) {
  1281. let parts = cookie.split('=');
  1282.  
  1283. let cookieName = parts.shift().trim();
  1284.  
  1285. if (cookieName === 'sessionId') sessionId = decodeURI(parts.join('='));
  1286. });
  1287.  
  1288. if (sessionId !== '' && sessionId.length > 5) {
  1289.  
  1290. return yield _this3.getRequest("auth/login-session", { sessionId: sessionId });
  1291. } else {
  1292. return {
  1293. data: {
  1294. result: false,
  1295. message: "cookie invalid"
  1296. }
  1297. };
  1298. }
  1299. })();
  1300. }
  1301.  
  1302. addTrailingSlash(url) {
  1303. var lastChar = url.substr(-1); // Selects the last character
  1304. if (lastChar != '/') {
  1305. // If the last character is not a slash
  1306. url = url + '/'; // Append a slash to it.
  1307. }
  1308. return url;
  1309. }
  1310.  
  1311. };
  1312.  
  1313.  
  1314. var HTTPServiceInstance = new HTTPServiceClass();
  1315.  
  1316. /* harmony default export */ __webpack_exports__["a"] = (HTTPServiceInstance);
  1317.  
  1318. // module.exports = {
  1319. // HTTPService : new HTTPServiceClass(),
  1320. // }
  1321.  
  1322. /***/ }),
  1323. /* 20 */
  1324. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1325.  
  1326. "use strict";
  1327. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__my_redux_actions_ContentState_actions__ = __webpack_require__(89);
  1328. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__modules_forums_forums_models_Forum_model__ = __webpack_require__(6);
  1329. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_Communication_socket_Socket_service__ = __webpack_require__(10);
  1330. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Communication_http_Http_service__ = __webpack_require__(19);
  1331. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  1332.  
  1333. /**
  1334. * Created by ERAZER-ALEX on 6/4/2017.
  1335. */
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341.  
  1342.  
  1343.  
  1344. let ContentServiceClass = class ContentServiceClass {
  1345.  
  1346. constructor(props) {
  1347. this.contentState = null;
  1348. this.dispatch = null;
  1349.  
  1350.  
  1351. console.log("@@@@ ContentService - CREATE instance");
  1352. } //from redux store
  1353.  
  1354.  
  1355. startService(dispatch, contentState) {
  1356. this.dispatch = dispatch;
  1357. this.contentState = contentState;
  1358.  
  1359. //console.log("@@@@ ContentService - STARTING Service", dispatch, contentState);
  1360. }
  1361.  
  1362. getTopContent(parent, pageIndex, pageCount) {
  1363. return _asyncToGenerator(function* () {
  1364. return __WEBPACK_IMPORTED_MODULE_2__services_Communication_socket_Socket_service__["a" /* default */].sendRequestGetDataPromise("content/get-top-content", { parent: parent, pageIndex: pageIndex, pageCount: pageCount });
  1365. })();
  1366. }
  1367.  
  1368. getTopContentHTTP(parent, pageIndex, pageCount) {
  1369. return _asyncToGenerator(function* () {
  1370. return __WEBPACK_IMPORTED_MODULE_3__Communication_http_Http_service__["a" /* default */].getRequest("content/get-top-content", { parent: parent, pageIndex: pageIndex, pageCount: pageCount });
  1371. })();
  1372. }
  1373.  
  1374. fetchTopContent(parent, pageIndex, pageCount, protocol) {
  1375. var _this = this;
  1376.  
  1377. return _asyncToGenerator(function* () {
  1378.  
  1379. let answer = { result: false };
  1380.  
  1381. if (protocol === 'http') answer = yield _this.getTopContentHTTP(parent, pageIndex, pageCount);else answer = yield _this.getTopContent(parent, pageIndex, pageCount);
  1382.  
  1383. console.log("ANSWER TOP CONTENT", answer);
  1384.  
  1385. if (answer.result === true) {
  1386.  
  1387. let toBeAdded = _this.processNewContent(answer.content);
  1388.  
  1389. if (toBeAdded !== []) yield _this.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__my_redux_actions_ContentState_actions__["a" /* setContentState_AddContentObjects_Action */])(toBeAdded));
  1390.  
  1391. return toBeAdded;
  1392. }
  1393. })();
  1394. }
  1395.  
  1396. processNewContent(newContentObjects) {
  1397.  
  1398. if (newContentObjects.constructor !== Array) newContentObjects = [newContentObjects];
  1399.  
  1400. let toBeAdded = [];
  1401.  
  1402. for (let i = 0; i < newContentObjects.length; i++) {
  1403.  
  1404. let newObject = newContentObjects[i].object;
  1405.  
  1406. let bFound = false;
  1407.  
  1408. if (this.contentState.contentObjects !== null) for (let obj in this.contentState.contentObjects) if (newObject.id === obj.id) {
  1409. bFound = true;
  1410. break;
  1411. }
  1412.  
  1413. if (!bFound && newObject !== null && newObject.id !== null) {
  1414. toBeAdded.push(newObject);
  1415. }
  1416. }
  1417.  
  1418. return toBeAdded;
  1419. }
  1420.  
  1421. getRouterObjectContent(sContentToSearchId) {
  1422. return _asyncToGenerator(function* () {
  1423. if (sContentToSearchId !== '') return __WEBPACK_IMPORTED_MODULE_2__services_Communication_socket_Socket_service__["a" /* default */].sendRequestGetDataPromise("content/get-content", { id: sContentToSearchId });else return { result: true, data: { content: null } };
  1424. })();
  1425. }
  1426.  
  1427. getRouterObjectContentHTTP(sContentToSearchId) {
  1428. return _asyncToGenerator(function* () {
  1429.  
  1430. if (sContentToSearchId !== '') {
  1431. return __WEBPACK_IMPORTED_MODULE_3__Communication_http_Http_service__["a" /* default */].getRequest('content/get-content', { id: sContentToSearchId });
  1432. } else return { result: true, data: { content: null } };
  1433. })();
  1434. }
  1435.  
  1436. /*
  1437. IT WILL FETCH THE DATA from the BACKEND AND STORE THE ANSWER IN THE REDUX
  1438. */
  1439.  
  1440. fetchRouterObjectAndContent(sContentToSearchId, protocol) {
  1441. var _this2 = this;
  1442.  
  1443. return _asyncToGenerator(function* () {
  1444.  
  1445. let answer = { result: false };
  1446.  
  1447. if (protocol === "http") answer = yield _this2.getRouterObjectContentHTTP(sContentToSearchId);else answer = yield _this2.getRouterObjectContent(sContentToSearchId);
  1448.  
  1449. console.log("ANSWER FOR ", sContentToSearchId, answer);
  1450.  
  1451. if (answer.result === true) {
  1452.  
  1453. yield _this2.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__my_redux_actions_ContentState_actions__["b" /* setContentState_NewRouterObject_Action */])(answer.data.content, false, sContentToSearchId, 1, 8, []));
  1454.  
  1455. yield _this2.fetchTopContent(sContentToSearchId, 1, 8, protocol);
  1456.  
  1457. return answer.data.content;
  1458. } else {
  1459.  
  1460. yield _this2.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__my_redux_actions_ContentState_actions__["b" /* setContentState_NewRouterObject_Action */])(null, true, sContentToSearchId, 1, 8, []));
  1461. }
  1462.  
  1463. return null;
  1464. })();
  1465. }
  1466.  
  1467. };
  1468.  
  1469.  
  1470. var ContentServiceInstance = new ContentServiceClass();
  1471.  
  1472. /* harmony default export */ __webpack_exports__["a"] = (ContentServiceInstance);
  1473.  
  1474. /***/ }),
  1475. /* 21 */
  1476. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1477.  
  1478. "use strict";
  1479. /* harmony export (immutable) */ __webpack_exports__["a"] = newUserAuthenticated;
  1480. /* harmony export (immutable) */ __webpack_exports__["b"] = logoutUserAuthenticated;
  1481. /* eslint-disable import/prefer-default-export */
  1482.  
  1483. function newUserAuthenticated(user) {
  1484. user.loggedIn = true;
  1485. return {
  1486. type: "NEW_USER_AUTHENTICATED",
  1487. payload: {
  1488. user: user,
  1489. error: ''
  1490. }
  1491. };
  1492. }
  1493.  
  1494. function logoutUserAuthenticated() {
  1495. return {
  1496. type: "LOGOUT_USER"
  1497. };
  1498. }
  1499.  
  1500. /***/ }),
  1501. /* 22 */
  1502. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1503.  
  1504. "use strict";
  1505. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HeaderCover; });
  1506. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  1507. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  1508. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  1509.  
  1510. /**
  1511. * Created by BIT TECHNOLOGIES on 5/28/2017.
  1512. */
  1513.  
  1514.  
  1515.  
  1516. var _ref = _jsx('h4', {
  1517. className: 'fg-white text-center'
  1518. }, void 0, 'Anna Sanchez');
  1519.  
  1520. var _ref2 = _jsx('br', {});
  1521.  
  1522. var _ref3 = _jsx('i', {
  1523. className: 'icon-fontello-heart-1'
  1524. });
  1525.  
  1526. var _ref4 = _jsx('div', {
  1527. className: 'header-cover-layover'
  1528. }, void 0, ' ');
  1529.  
  1530. let HeaderCover = class HeaderCover extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  1531. constructor(props) {
  1532. super(props);
  1533. this.state = {
  1534. follow: 'follow me',
  1535. followActive: false,
  1536. likeCount: 999,
  1537. likeActive: false,
  1538. likeTextStyle: 'fg-white'
  1539. };
  1540. }
  1541. handleFollow() {
  1542. this.setState({
  1543. follow: 'followed',
  1544. followActive: true
  1545. });
  1546. }
  1547. handleLike() {
  1548. this.setState({
  1549. likeCount: 1000,
  1550. likeActive: true,
  1551. likeTextStyle: 'fg-orange75'
  1552. });
  1553. }
  1554.  
  1555. renderSocialMenu() {
  1556. return _jsx('div', {
  1557. className: 'col-xs-12 col-sm-4'
  1558. }, void 0, _jsx('div', {
  1559. className: 'header-cover-avatar'
  1560. }, void 0, _jsx('image', {
  1561. src: '/imgs/app/avatars/avatar.jpg',
  1562. height: '100',
  1563. width: '100',
  1564. style: { display: 'block', borderRadius: 100, border: '2px solid #fff', margin: 'auto', marginTop: 50 }
  1565. }), _ref, _jsx('h5', {
  1566. className: 'fg-white text-center',
  1567. style: { opacity: 0.8 }
  1568. }, void 0, 'DevOps Engineer, NY'), _jsx('hr', {
  1569. className: 'border-black75',
  1570. style: { borderWidth: 2 }
  1571. }), _jsx('div', {
  1572. className: 'text-center'
  1573. }, void 0, _jsx('button', {
  1574. active: this.state.followActive,
  1575. onClick: this.handleFollow.bind(this)
  1576. }, void 0, _jsx('span', {}, void 0, this.state.follow)))));
  1577. }
  1578.  
  1579. renderDescriptionMenu() {
  1580. return _jsx('div', {}, void 0, _jsx('div', {
  1581. className: 'col-xs-12 col-sm-8'
  1582. }, void 0, _jsx('div', {
  1583. className: 'header-cover-description'
  1584. }, void 0, _jsx('div', {}, void 0, _jsx('image', {
  1585. src: this.props.icon || '/res/logo/SkyHub-logo.png'
  1586. }), _jsx('div', {
  1587. className: 'row'
  1588. }, void 0, _jsx('h1', {
  1589. className: 'fg-white'
  1590. }, void 0, this.props.title), _ref2, _jsx('h4', {
  1591. className: 'fg-white',
  1592. style: { opacity: 0.8 }
  1593. }, void 0, this.props.subTitle)), _jsx('div', {
  1594. className: 'header-cover-toolbar'
  1595. }, void 0, _jsx('div', {
  1596. style: { display: 'inline-block' }
  1597. }, void 0, this.props.buttons, _jsx('button', {
  1598. type: 'button',
  1599. id: 'likeCount',
  1600. onClick: this.handleLike.bind(this)
  1601. }, void 0, _ref3), _jsx('label', {
  1602. className: 'header-cover-toolbar-label'
  1603. }, void 0, _jsx('span', {
  1604. className: this.state.likeTextStyle
  1605. }, void 0, this.state.likeCount, ' likes'))))))), false ? this.renderSocialMenu.bind(this) : '');
  1606. }
  1607.  
  1608. render() {
  1609. return _jsx('div', {
  1610. className: 'header-cover',
  1611. style: { backgroundImage: 'url(' + this.props.coverPic + ')', backgroundColor: this.props.coverColor || 'darkblue' }
  1612. }, void 0, (this.props.showLayOver || false) == true ? _ref4 : '', (this.props.showDescriptionMenu || true) == true ? this.renderDescriptionMenu() : 'NU AFISEZ NIMIC');
  1613. }
  1614. };
  1615.  
  1616.  
  1617. /***/ }),
  1618. /* 23 */
  1619. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1620.  
  1621. "use strict";
  1622. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  1623. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  1624. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_create_react_class__ = __webpack_require__(142);
  1625. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_create_react_class___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_create_react_class__);
  1626. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);
  1627. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
  1628. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_select__ = __webpack_require__(17);
  1629. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_select__);
  1630. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  1631.  
  1632. /**
  1633. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/10/2017.
  1634. * (C) BIT TECHNOLOGIES
  1635. */
  1636.  
  1637.  
  1638.  
  1639.  
  1640.  
  1641. const FLAGS = __webpack_require__(71);
  1642. const FLAGS_SIZE = 18;
  1643.  
  1644. const FlagOption = __WEBPACK_IMPORTED_MODULE_1_create_react_class___default()({
  1645. propTypes: {
  1646. children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,
  1647. className: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
  1648. isDisabled: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
  1649. isFocused: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
  1650. isSelected: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.bool,
  1651. onFocus: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
  1652. onSelect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func,
  1653. option: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object.isRequired
  1654. },
  1655. handleMouseDown(event) {
  1656. event.preventDefault();
  1657. event.stopPropagation();
  1658.  
  1659. //console.log(this);
  1660. this.props.onSelect(this.props.option, event);
  1661. },
  1662. handleMouseEnter(event) {
  1663. //console.log(this);
  1664. this.props.onFocus(this.props.option, event);
  1665. },
  1666. handleMouseMove(event) {
  1667. //console.log(this);
  1668. if (this.props.isFocused) return;
  1669. this.props.onFocus(this.props.option, event);
  1670. },
  1671. render() {
  1672. let flagStyle = {
  1673.  
  1674. display: 'inline-block',
  1675. marginRight: 10,
  1676. position: 'relative',
  1677. top: -2,
  1678. verticalAlign: 'middle'
  1679. };
  1680. return _jsx('div', {
  1681. className: this.props.className,
  1682. onMouseDown: this.handleMouseDown,
  1683. onMouseEnter: this.handleMouseEnter,
  1684. onMouseMove: this.handleMouseMove,
  1685. title: this.props.option.title
  1686. }, void 0, _jsx('img', {
  1687. src: this.props.option.flag,
  1688. size: FLAGS_SIZE,
  1689. className: this.props.option.imageCSS,
  1690. style: flagStyle
  1691. }), this.props.children);
  1692. }
  1693. });
  1694.  
  1695. const FlagValue = __WEBPACK_IMPORTED_MODULE_1_create_react_class___default()({
  1696. propTypes: {
  1697. children: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.node,
  1698. placeholder: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
  1699. value: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.object
  1700. },
  1701. render() {
  1702.  
  1703. var flagStyle = {
  1704.  
  1705. display: 'inline-block',
  1706.  
  1707. position: 'relative',
  1708. top: 10,
  1709. verticalAlign: 'middle'
  1710. };
  1711.  
  1712. return _jsx('div', {
  1713. className: 'Select-value',
  1714. title: this.props.value.title
  1715. }, void 0, _jsx('span', {
  1716. className: 'Select-value-label'
  1717. }, void 0, _jsx('img', {
  1718. src: this.props.value.flag,
  1719. size: FLAGS_SIZE,
  1720. className: this.props.value.imageCSS,
  1721. style: flagStyle
  1722. }), this.props.children));
  1723. }
  1724. });
  1725.  
  1726. var _ref = _jsx('span', {}, void 0, 'Select Country');
  1727.  
  1728. const MyCountrySelect = __WEBPACK_IMPORTED_MODULE_1_create_react_class___default()({
  1729.  
  1730. propTypes: {
  1731. hint: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
  1732. label: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
  1733. initialCountry: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.string,
  1734. onSelect: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.func
  1735. },
  1736.  
  1737. getInitialState() {
  1738. return { value: "" };
  1739. },
  1740. setValue(value) {
  1741. this.setState({ value });
  1742.  
  1743. if (this.props.onSelect !== null) this.props.onSelect(value);
  1744. },
  1745. render() {
  1746. var placeholder = _ref;
  1747.  
  1748. return _jsx(__WEBPACK_IMPORTED_MODULE_3_react_select___default.a, {
  1749. arrowRenderer: arrowRenderer,
  1750. onChange: this.setValue,
  1751. optionComponent: FlagOption,
  1752. options: FLAGS,
  1753. clearable: false,
  1754. placeholder: placeholder,
  1755. value: this.state.value === '' ? this.props.initialCountry.toLowerCase() : this.state.value,
  1756. valueComponent: FlagValue
  1757. });
  1758. }
  1759. });
  1760.  
  1761. var _ref2 = _jsx('span', {}, void 0, '+');
  1762.  
  1763. function arrowRenderer() {
  1764. return _ref2;
  1765. }
  1766.  
  1767. /* harmony default export */ __webpack_exports__["a"] = (MyCountrySelect);
  1768.  
  1769. /***/ }),
  1770. /* 24 */
  1771. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1772.  
  1773. "use strict";
  1774. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  1775. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  1776. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  1777. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  1778. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_REST_authentication_Auth_service__ = __webpack_require__(3);
  1779. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_REST_forums_content_Content_service__ = __webpack_require__(20);
  1780. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_ContentButtons_component__ = __webpack_require__(72);
  1781. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__components_PreviewContent_component__ = __webpack_require__(73);
  1782. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__forums_view_forum_PreviewForum_component__ = __webpack_require__(25);
  1783. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  1784.  
  1785. /**
  1786. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/24/2017.
  1787. * (C) BIT TECHNOLOGIES
  1788. */
  1789.  
  1790.  
  1791.  
  1792.  
  1793.  
  1794.  
  1795.  
  1796.  
  1797.  
  1798.  
  1799.  
  1800.  
  1801. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_4__components_ContentButtons_component__["a" /* default */], {});
  1802.  
  1803. var _ref2 = _jsx('div', {
  1804. className: 'navy-line'
  1805. });
  1806.  
  1807. let DisplayContent = class DisplayContent extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  1808.  
  1809. constructor(props) {
  1810. super(props);
  1811. }
  1812.  
  1813. renderForums() {
  1814. const objects = this.props.contentState.contentForums.objects;
  1815. if (objects === null || typeof objects === "undefined") return '';
  1816.  
  1817. return objects.map(object => _jsx(__WEBPACK_IMPORTED_MODULE_6__forums_view_forum_PreviewForum_component__["a" /* default */], {
  1818. object: object
  1819. }, object.id));
  1820. }
  1821.  
  1822. renderContent() {
  1823. const objects = this.props.contentState.contentObjects.objects;
  1824. if (objects === null || typeof objects === "undefined") return '';
  1825.  
  1826. return objects.map(object => _jsx(__WEBPACK_IMPORTED_MODULE_5__components_PreviewContent_component__["a" /* default */], {
  1827. object: object
  1828. }, object.id));
  1829. }
  1830.  
  1831. render() {
  1832.  
  1833. return _jsx('div', {
  1834. style: { marginBottom: 0 }
  1835. }, void 0, _jsx('div', {
  1836. className: 'row'
  1837. }, void 0, _jsx('div', {
  1838. className: 'lightBoxGallery'
  1839. }, void 0, this.renderForums.call(this))), _ref, _jsx('div', {
  1840. className: 'row',
  1841. style: { paddingBottom: 20 }
  1842. }, void 0, _jsx('div', {
  1843. className: 'text-center'
  1844. }, void 0, _ref2, _jsx('h4', {
  1845. style: { fontSize: 30 }
  1846. }, void 0, 'What\'s hot on SkyHub'))), _jsx('div', {
  1847. className: 'row'
  1848. }, void 0, this.renderContent.call(this)));
  1849. }
  1850. };
  1851.  
  1852.  
  1853. function mapState(state) {
  1854. return {
  1855. userAuthenticated: state.userAuthenticated,
  1856. contentState: state.contentState
  1857. };
  1858. };
  1859.  
  1860. function mapDispatch(dispatch) {
  1861. return {
  1862. dispatch: dispatch
  1863. };
  1864. };
  1865.  
  1866. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(DisplayContent));
  1867.  
  1868. /***/ }),
  1869. /* 25 */
  1870. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1871.  
  1872. "use strict";
  1873. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  1874. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  1875. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  1876. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  1877. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__my_redux_actions_RouterState_actions__ = __webpack_require__(33);
  1878. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_REST_authentication_Auth_service_js__ = __webpack_require__(3);
  1879. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_REST_forums_forums_Forums_service__ = __webpack_require__(14);
  1880. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__models_Forum_model__ = __webpack_require__(6);
  1881. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  1882.  
  1883. /**
  1884. * Created by BIT TECHNOLOGIES on 5/28/2017.
  1885. */
  1886.  
  1887.  
  1888.  
  1889.  
  1890.  
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897. /*
  1898. PreviewForum can also work with a prop id="1_frm_3333", and it fetch automatically the forum from you
  1899. */
  1900.  
  1901. var _ref = _jsx('span', {}, void 0, 'Forum not found!');
  1902.  
  1903. let PreviewForum = class PreviewForum extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  1904.  
  1905. constructor(props) {
  1906. super(props);
  1907.  
  1908. this.state = {
  1909. forum: props.forum || new __WEBPACK_IMPORTED_MODULE_5__models_Forum_model__["a" /* default */]({ title: "TEST FORUM", description: "DESCRIPTION" }),
  1910. forumNotFound: props.forumNotFound || false
  1911. };
  1912. }
  1913.  
  1914. componentDidMount() {
  1915.  
  1916. if (typeof this.props.forum !== "undefined") {
  1917. this.setState({
  1918. forum: new __WEBPACK_IMPORTED_MODULE_5__models_Forum_model__["a" /* default */](this.props.forum),
  1919. forumNotFound: this.props.forum === null
  1920. });
  1921. return;
  1922. }
  1923.  
  1924. if (typeof this.props.id !== "undefined") {
  1925. let forumId = this.props.id || '';
  1926.  
  1927. __WEBPACK_IMPORTED_MODULE_4__services_REST_forums_forums_Forums_service__["a" /* default */].getForumAsync(forumId).then(forumAnswer => {
  1928.  
  1929. this.setState({
  1930. forum: forumAnswer,
  1931. forumNotFound: forumAnswer !== null
  1932. });
  1933. });
  1934. }
  1935. }
  1936.  
  1937. renderError() {
  1938. return _jsx('a', {
  1939. title: 'Forum not found',
  1940. 'data-gallery': ''
  1941. }, void 0, _jsx('img', {
  1942. style: { backgroundColor: "red" }
  1943. }), _ref);
  1944. }
  1945.  
  1946. setForumArgument() {}
  1947.  
  1948. render() {
  1949.  
  1950. return _jsx('div', {}, void 0, this.state.forum !== null && this.state.forumNotFound === false ? _jsx('a', {
  1951. href: 'http://webapplayers.com/inspinia_admin-v2.7.1/img/gallery/1.jpg',
  1952. title: this.state.forum.title,
  1953. 'data-gallery': ''
  1954. }, void 0, _jsx('img', {
  1955. src: this.state.forum.iconPic,
  1956. style: { backgroundColor: this.state.forum.coverColor || "#79B0EC" }
  1957. }), _jsx('span', {}, void 0, this.state.forum.title)) : this.renderError.call(this));
  1958. }
  1959. };
  1960.  
  1961.  
  1962. function mapState(state) {
  1963. return {
  1964. userAuthenticated: state.userAuthenticated
  1965. };
  1966. };
  1967.  
  1968. function mapDispatch(dispatch) {
  1969. return {
  1970. dispatch: dispatch
  1971. };
  1972. };
  1973.  
  1974. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(PreviewForum));
  1975.  
  1976. /***/ }),
  1977. /* 26 */
  1978. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  1979.  
  1980. "use strict";
  1981. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginForm; });
  1982. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  1983. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  1984. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  1985. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  1986. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames__ = __webpack_require__(44);
  1987. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_classnames__);
  1988. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__components_Link_Link__ = __webpack_require__(5);
  1989. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__oauth_social_networks_form_oauth_social_networks_component__ = __webpack_require__(27);
  1990. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_REST_authentication_Auth_service__ = __webpack_require__(3);
  1991. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  1992.  
  1993.  
  1994.  
  1995.  
  1996.  
  1997.  
  1998.  
  1999.  
  2000.  
  2001.  
  2002.  
  2003. var _ref = _jsx('label', {}, void 0, 'Username or Email');
  2004.  
  2005. var _ref2 = _jsx('span', {
  2006. className: 'input-group-addon'
  2007. }, void 0, _jsx('i', {
  2008. className: 'fa fa-user'
  2009. }));
  2010.  
  2011. var _ref3 = _jsx('br', {});
  2012.  
  2013. var _ref4 = _jsx('label', {}, void 0, 'Password');
  2014.  
  2015. var _ref5 = _jsx('span', {
  2016. className: 'input-group-addon'
  2017. }, void 0, _jsx('i', {
  2018. className: 'fa fa-key'
  2019. }));
  2020.  
  2021. var _ref6 = _jsx('strong', {}, void 0, ' Register ');
  2022.  
  2023. var _ref7 = _jsx('i', {
  2024. className: 'fa fa-sign-in'
  2025. });
  2026.  
  2027. let LoginForm = class LoginForm extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  2028.  
  2029. constructor(props) {
  2030. super(props);
  2031.  
  2032. this.state = {
  2033.  
  2034. userEmail: '',
  2035. password: '',
  2036.  
  2037. userEmailValidationStatus: [null, ''],
  2038. passwordValidationStatus: [null, '']
  2039. };
  2040. }
  2041.  
  2042. componentDidMount() {
  2043. requestAnimationFrame(() => {//Make sure it is on client only
  2044.  
  2045. //console.log("#################### LOGIN ",AuthService);
  2046.  
  2047. });
  2048. }
  2049.  
  2050. back(e) {
  2051. e.preventDefault();e.stopPropagation();
  2052.  
  2053. //this.props.router.goBack();
  2054. }
  2055.  
  2056. handleCheckLogin(e) {
  2057.  
  2058. e.preventDefault();e.stopPropagation();
  2059.  
  2060. console.log(this.state.userEmail, this.state.password);
  2061.  
  2062. __WEBPACK_IMPORTED_MODULE_5__services_REST_authentication_Auth_service__["a" /* default */].loginAsync(this.state.userEmail, this.state.password).then(res => {
  2063.  
  2064. let userEmailValidationStatus = [null, ''],
  2065. passwordValidationStatus = [null, ''];
  2066.  
  2067. console.log("LOGIN ANSWER", res);
  2068.  
  2069. if (res.result === true) {
  2070. this.loginSuccessfully(res);
  2071. } else if (res.result === false) {
  2072.  
  2073. if (res.message === "No User Found") {
  2074. userEmailValidationStatus = ["error", "No User Found"];
  2075. }
  2076. if (res.message === "Password Incorrect") {
  2077. userEmailValidationStatus = ["success", ''];
  2078. passwordValidationStatus = ["error", "Incorrect Password"];
  2079. }
  2080.  
  2081. this.loginFailure(res);
  2082. }
  2083.  
  2084. this.setState({
  2085. userEmailValidationStatus: userEmailValidationStatus,
  2086. passwordValidationStatus: passwordValidationStatus
  2087. });
  2088. });
  2089. }
  2090.  
  2091. handleUserEmailChange(e) {
  2092.  
  2093. this.setState({
  2094. userEmail: e.target.value,
  2095. userEmailValidationStatus: [null, '']
  2096. });
  2097. }
  2098.  
  2099. handlePasswordChange(e) {
  2100.  
  2101. this.setState({
  2102. password: e.target.value,
  2103. passwordValidationStatus: [null, '']
  2104. });
  2105. }
  2106.  
  2107. loginSuccessfully(res) {
  2108. var onSuccess = this.props.onSuccess || function () {};
  2109.  
  2110. onSuccess(res);
  2111. }
  2112.  
  2113. loginFailure(res) {
  2114. var onError = this.props.onError || function () {};
  2115.  
  2116. onError(res);
  2117. }
  2118.  
  2119. //https://www.w3schools.com/bootstrap/bootstrap_forms_inputs2.asp DOC
  2120. showInputStatus(status) {
  2121. return status[0] === 'error' ? "has-error has-feedback" : status[0] === 'success' ? "has-success has-feedback" : '';
  2122. }
  2123. showInputFeedback(status) {
  2124. return status[0] === 'error' ? "fa fa-remove form-control-feedback" : status[0] === 'success' ? "fa fa-check form-control-feedback" : '';
  2125. }
  2126.  
  2127. render() {
  2128.  
  2129. var onSwitch = this.props.onSwitch || function () {};
  2130.  
  2131. return _jsx('div', {}, void 0, _jsx('div', {
  2132. style: { padding: 25, paddingTop: 0, paddingBottom: 0, margin: 'auto', marginBottom: 25, marginTop: 5 }
  2133. }, void 0, _jsx('form', {
  2134. onSubmit: this.handleCheckLogin.bind(this),
  2135. autoComplete: 'on'
  2136. }, void 0, _ref, _jsx('div', {
  2137. className: "input-group " + this.showInputStatus(this.state.userEmailValidationStatus)
  2138. }, void 0, _ref2, _jsx('input', {
  2139. autoFocus: true,
  2140. type: 'text',
  2141. className: 'form-control input-lg',
  2142. placeholder: 'username or email',
  2143. name: 'username',
  2144. value: this.state.userEmail,
  2145. onChange: this.handleUserEmailChange.bind(this)
  2146. }), _jsx('span', {
  2147. className: this.showInputFeedback.call(this, this.state.userEmailValidationStatus)
  2148. })), _jsx('label', {
  2149. className: 'error'
  2150. }, void 0, this.state.userEmailValidationStatus[1]), ' ', _ref3, _ref4, _jsx('div', {
  2151. className: "input-group " + this.showInputStatus(this.state.passwordValidationStatus)
  2152. }, void 0, _ref5, _jsx('input', {
  2153. autoFocus: true,
  2154. type: 'password',
  2155. className: 'form-control input-lg',
  2156. placeholder: 'password',
  2157. name: 'password',
  2158. value: this.state.password,
  2159. onChange: this.handlePasswordChange.bind(this)
  2160. }), _jsx('span', {
  2161. className: this.showInputFeedback.call(this, this.state.passwordValidationStatus)
  2162. })), _jsx('label', {
  2163. className: 'error'
  2164. }, void 0, this.state.passwordValidationStatus[1]), _jsx('div', {
  2165. className: 'form-group'
  2166. }, void 0, _jsx('div', {
  2167. className: 'row'
  2168. }, void 0, _jsx('div', {
  2169. className: 'col-xs-6',
  2170. style: { paddingTop: 10 }
  2171. }, void 0, _jsx('div', {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_3__components_Link_Link__["a" /* default */], {
  2172. to: 'register',
  2173. onClick: onSwitch.bind(this)
  2174. }, void 0, ' ', _ref6), 'to SkyHub')), _jsx('div', {
  2175. className: 'col-xs-6 text-right'
  2176. }, void 0, _jsx('button', {
  2177. type: 'button',
  2178. className: 'btn btn-success ',
  2179. onClick: this.handleCheckLogin.bind(this)
  2180. }, void 0, _ref7, ' Login')))))), _jsx(__WEBPACK_IMPORTED_MODULE_4__oauth_social_networks_form_oauth_social_networks_component__["a" /* default */], {
  2181. onSuccess: this.loginSuccessfully.bind(this),
  2182. onError: this.loginFailure.bind(this)
  2183. }));
  2184. }
  2185. };
  2186.  
  2187.  
  2188. /***/ }),
  2189. /* 27 */
  2190. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2191.  
  2192. "use strict";
  2193. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  2194. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  2195. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  2196. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  2197. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_facebook_login__ = __webpack_require__(155);
  2198. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_facebook_login___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_facebook_login__);
  2199. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_google_login__ = __webpack_require__(156);
  2200. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_google_login___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_google_login__);
  2201. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_REST_authentication_Auth_service__ = __webpack_require__(3);
  2202. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  2203.  
  2204. /**
  2205. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/14/2017.
  2206. * (C) BIT TECHNOLOGIES
  2207. */
  2208.  
  2209.  
  2210.  
  2211.  
  2212.  
  2213.  
  2214.  
  2215.  
  2216.  
  2217. var _ref = _jsx('strong', {}, void 0, 'SIGN UP with');
  2218.  
  2219. var _ref2 = _jsx('i', {
  2220. className: 'fa fa-google-plus'
  2221. });
  2222.  
  2223. var _ref3 = _jsx('span', {
  2224. className: 'fa fa-twitter'
  2225. });
  2226.  
  2227. var _ref4 = _jsx('button', {
  2228. 'aria-hidden': 'true',
  2229. 'data-dismiss': 'alert',
  2230. className: 'close',
  2231. type: 'button'
  2232. }, void 0, '\xD7');
  2233.  
  2234. let OauthSocialNetworkComponent = class OauthSocialNetworkComponent extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  2235.  
  2236. constructor(props) {
  2237. super(props);
  2238.  
  2239. this.state = {
  2240. error: ''
  2241. };
  2242. }
  2243.  
  2244. componentDidMount() {
  2245.  
  2246. requestAnimationFrame(() => {//Make sure it is on client only
  2247.  
  2248. //console.log("#################### REGISTER ",AuthService);
  2249.  
  2250. });
  2251. }
  2252.  
  2253. responseFacebook(response) {
  2254.  
  2255. this.setState({
  2256. error: ''
  2257. });
  2258.  
  2259. // accessToken:"EAAI2WeqD1N0BAH11ZBrtE66a2ZAF1BMoVPNBf9WVS6thiRjLqsWloXNswva5uZAp48iFmNARJFYkd6y4OzqhyU36vyjhp5idDjSfGoEoC6TfaK7VZCE63u34WFwoeaqPLQBmzVJWAWxdqVkJUVBZBW2JZAZB72IrhRw7jSvTJ86mBK1GeJstFR1lSXZBgqZCSAqQZD"
  2260. // age_range: {min: 21}
  2261. // cover: {id: "" , offset_y: 2, source: "location.jpg"}
  2262. // expiresIn:6803
  2263. // first_name:"Alexandru"
  2264. // gender:"male"
  2265. // id:"1899824400275208"
  2266. // last_name : "Ionut"
  2267. // link:"https://www.facebook.com/app_scoped_user_id/1899824400275208/"
  2268. // locale:"en_US"
  2269. // name:"Alexandru Ionut"
  2270. // picture:{ data: { is_silhoette: false, url : "picture"}}
  2271. // signedRequest: "ASS-ky4D-1KsC1Rbksly-QiCPN5sYQDYAK7xqLN_v9I.eyJhbGdvcml0aG0iOiJITUFDLVNIQTI1NiIsImNvZGUiOiJBUUJ6VXFicHlvNU1CVnNSTHRJbWwzcnBFOGwyN2xURTk4Ny1XRWNzZHQyWlJkc1JxR2k4QVE3SDEzMjFwTFFrTzJaWm80LUEwcWRyZDM1dHU4UUtMb0JKa3k2eWpGMUFkLVVLb0Q0Q3piU3hVdm1xeGhHWjRuQ2pqSDY5NXpFLWJfT0dMdDM0Sll4ZHdCTlN0aHNSaGZVWHJESno5Z2NaTDhaQlZqb3NFdmRIRV90dVpFQ3VKODVEZk9MVTZvZ1BhVkVFSnpqdkxhQ0tuWjg2ckw3c0cwY2w1UVdFb04ydEtVdks2UXJZcGtTZE9BUXlhUlpGc3N0Z2FkVWl2ZzA0SmstWGY4X1hXSmhuWnlQaTk0bmJOUUVQdlZyc3h0SW5PWnY3NGw0QUIzTHBlLXVQakxQQ2p5OVhnRHVvbUgtTkZkTkNlZEtUYjZtVGp1U2ZvSmtONEZFWSIsImlzc3VlZF9hdCI6MTQ5NDc4NTE5NywidXNlcl9pZCI6IjE4OTk4MjQ0MDAyNzUyMDgifQ"
  2272. // timezone:3
  2273. // updated_time:"2017-04-09T16:31:48+0000"
  2274. // userID: "1899824400275208"
  2275. // verified : true
  2276.  
  2277. try {
  2278.  
  2279. var sFacebookId = response.id || '';
  2280.  
  2281. try {
  2282. var objCover = response.cover || {};
  2283. var sCoverImage = objCover.source || '';
  2284.  
  2285. var sProfilePic = "http://graph.facebook.com/" + sFacebookId + "/picture?type=large";
  2286.  
  2287. // var objProfile = response.picture || {};
  2288. // objProfile = objProfile.data || {};
  2289. // var sProfilePic = objProfile.url || '';
  2290. } catch (Exception) {
  2291. console.log('Error extracting CoverImage and Profile Pic');
  2292. }
  2293.  
  2294. var sAccessToken = response.accessToken || '';
  2295. var sEmail = response.email || '';
  2296. var sFirstName = response.first_name || '';
  2297. var sLastName = response.last_name || '';
  2298. var sGender = response.gender || '';
  2299. var iAge = response.age_range.min || 0;
  2300. var iTimeZone = response.time_zone || 0;
  2301. var sLanguage = response.locale;
  2302. var sShortBio = response.user_about_me || '';
  2303. var bVerified = response.verified;
  2304.  
  2305. console.log("OAUTH Instance", this);
  2306.  
  2307. __WEBPACK_IMPORTED_MODULE_4__services_REST_authentication_Auth_service__["a" /* default */].registerOAuthAsync('facebook', sFacebookId, sAccessToken, sEmail, sFirstName, sLastName, sProfilePic, sCoverImage, this.props.localization.countryCode, sLanguage, this.props.localization.city, this.props.localization.latitude, this.props.localization.longitude, sShortBio, iAge, sGender, iTimeZone, bVerified).then(res => {
  2308.  
  2309. console.log("Auth Service answer ", res);
  2310.  
  2311. if (res.result === true) this.registrationSuccessfully(res);else if (res.result === false) {
  2312. this.errorRegisteringFacebook(response);
  2313. }
  2314. });
  2315. } catch (Exception) {
  2316. console.log('error facebook registering', Exception);
  2317. this.errorRegisteringFacebook(response);
  2318. }
  2319.  
  2320. console.log(response);
  2321. }
  2322.  
  2323. errorRegisteringFacebook(response) {
  2324.  
  2325. this.setState({
  2326. error: "Error registering with Facebook"
  2327. });
  2328.  
  2329. //this.modalRef.showAlert('Error registering with Facebook','',"Ops! It didn't work");
  2330.  
  2331. this.registrationFailure(response);
  2332. }
  2333.  
  2334. responseSuccessGoogle(response) {
  2335. console.log(response);
  2336. }
  2337.  
  2338. responseFailureGoogle(response) {
  2339. this.setState({
  2340. error: "Error registering with Google"
  2341. });
  2342.  
  2343. this.modalRef.showAlert('Error registering with Google', '', "Ops! It didn't work");
  2344. }
  2345.  
  2346. registrationSuccessfully(response) {
  2347. var onSuccess = this.props.onSuccess || function () {};
  2348.  
  2349. onSuccess(response);
  2350. }
  2351.  
  2352. registrationFailure(response) {
  2353. var onError = this.props.onError || function () {};
  2354.  
  2355. onError(response);
  2356. }
  2357.  
  2358. render() {
  2359.  
  2360. return _jsx('div', {
  2361. className: 'text-center',
  2362. style: { padding: 10 }
  2363. }, void 0, _ref, _jsx('div', {}, void 0, _jsx('div', {
  2364. style: { marginTop: 12.5, marginBottom: 12.5, display: "inline-flex" }
  2365. }, void 0, _jsx('div', {
  2366. style: { marginRight: 20 }
  2367. }, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_2_react_facebook_login___default.a, {
  2368. appId: '622709767918813',
  2369. autoLoad: false,
  2370. fields: 'id,name,email,picture,cover,first_name,last_name,age_range,link,gender,locale,timezone,updated_time,verified',
  2371. scope: 'public_profile,user_friends,user_about_me',
  2372. icon: 'fa fa-facebook',
  2373. textButton: '',
  2374. callback: this.responseFacebook.bind(this),
  2375. cssClass: 'btn btn-social-icon btn-facebook btn-lg'
  2376. })), _jsx('div', {
  2377. style: { marginRight: 20 }
  2378. }, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_3_react_google_login___default.a, {
  2379. clientId: '658977310896-knrl3gka66fldh83dao2rhgbblmd4un9.apps.googleusercontent.com',
  2380. buttonText: '',
  2381. autoLoad: false,
  2382. className: 'btn btn-social-icon btn-google btn-lg',
  2383. onSuccess: this.responseSuccessGoogle.bind(this),
  2384. fetchBasicProfile: true
  2385. }, void 0, _ref2)), _jsx('a', {
  2386. className: 'btn btn-social-icon btn-twitter ',
  2387. style: { "marginRight": 20 }
  2388. }, void 0, _ref3)), this.state.error !== '' ? _jsx('div', {}, void 0, _jsx('div', {
  2389. className: 'alert alert-danger alert-dismissable'
  2390. }, void 0, _ref4, this.state.error)) : ''));
  2391. }
  2392. };
  2393.  
  2394.  
  2395. function mapState(state) {
  2396. return {
  2397. authenticate: state.authenticate,
  2398. localization: state.localization
  2399. };
  2400. };
  2401.  
  2402. function mapDispatch(dispatch) {
  2403. return {
  2404. dispatch: dispatch
  2405. };
  2406. };
  2407.  
  2408. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(OauthSocialNetworkComponent));
  2409.  
  2410. /***/ }),
  2411. /* 28 */
  2412. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2413.  
  2414. "use strict";
  2415. /* unused harmony export RegistrationForm */
  2416. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  2417. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  2418. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  2419. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  2420. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__components_Link_Link__ = __webpack_require__(5);
  2421. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_select__ = __webpack_require__(17);
  2422. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_react_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_react_select__);
  2423. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__components_util_components_select_MyCountry_select_component__ = __webpack_require__(23);
  2424. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__oauth_social_networks_form_oauth_social_networks_component__ = __webpack_require__(27);
  2425. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__services_Communication_socket_Socket_service__ = __webpack_require__(10);
  2426. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__services_REST_authentication_Auth_service__ = __webpack_require__(3);
  2427. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  2428.  
  2429. /**
  2430. * Created by Alexandru Ionut Budisteanu - SkyHub
  2431. * (C) BIT TECHNOLOGIES
  2432. */
  2433.  
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439.  
  2440.  
  2441. //import CountrySelect from "react-country-select";
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447.  
  2448.  
  2449.  
  2450. var _ref = _jsx('span', {
  2451. className: 'input-group-addon'
  2452. }, void 0, _jsx('i', {
  2453. className: 'fa fa-user'
  2454. }));
  2455.  
  2456. var _ref2 = _jsx('br', {});
  2457.  
  2458. var _ref3 = _jsx('span', {
  2459. className: 'input-group-addon'
  2460. }, void 0, _jsx('i', {
  2461. className: 'fa fa-envelope'
  2462. }));
  2463.  
  2464. var _ref4 = _jsx('br', {});
  2465.  
  2466. var _ref5 = _jsx('span', {
  2467. className: 'input-group-addon'
  2468. }, void 0, _jsx('i', {
  2469. className: 'fa fa-font'
  2470. }));
  2471.  
  2472. var _ref6 = _jsx('br', {});
  2473.  
  2474. var _ref7 = _jsx('span', {
  2475. className: 'input-group-addon'
  2476. }, void 0, _jsx('i', {
  2477. className: 'fa fa-bold'
  2478. }));
  2479.  
  2480. var _ref8 = _jsx('br', {});
  2481.  
  2482. var _ref9 = _jsx('span', {
  2483. className: 'input-group-addon'
  2484. }, void 0, _jsx('i', {
  2485. className: 'fa fa-key'
  2486. }));
  2487.  
  2488. var _ref10 = _jsx('br', {});
  2489.  
  2490. var _ref11 = _jsx('span', {
  2491. className: 'input-group-addon'
  2492. }, void 0, _jsx('i', {
  2493. className: 'fa fa-key'
  2494. }));
  2495.  
  2496. var _ref12 = _jsx('br', {});
  2497.  
  2498. var _ref13 = _jsx('span', {
  2499. className: 'input-group-addon'
  2500. }, void 0, _jsx('i', {
  2501. className: 'fa fa-flag'
  2502. }));
  2503.  
  2504. var _ref14 = _jsx('br', {});
  2505.  
  2506. var _ref15 = _jsx('span', {
  2507. className: 'input-group-addon'
  2508. }, void 0, _jsx('i', {
  2509. className: 'fa fa-institution'
  2510. }));
  2511.  
  2512. var _ref16 = _jsx('br', {});
  2513.  
  2514. var _ref17 = _jsx('strong', {}, void 0, ' Login ');
  2515.  
  2516. var _ref18 = _jsx('i', {
  2517. className: 'fa fa-sign-up'
  2518. });
  2519.  
  2520. let RegistrationForm = class RegistrationForm extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  2521.  
  2522. constructor(props) {
  2523. super(props);
  2524.  
  2525. this.state = {
  2526.  
  2527. userName: '',
  2528. emailAddress: '',
  2529. password: '',
  2530. retypePassword: '',
  2531.  
  2532. city: null,
  2533. country: null,
  2534. countryCode: null,
  2535.  
  2536. timeZone: '',
  2537. ip: '',
  2538.  
  2539. latitude: null, longitude: null,
  2540.  
  2541. userNameValidationStatus: [null, ''],
  2542. emailAddressValidationStatus: [null, ''],
  2543. firstNameValidationStatus: [null, ''],
  2544. lastNameValidationStatus: [null, ''],
  2545. passwordValidationStatus: [null, ''],
  2546. retypePasswordValidationStatus: [null, ''],
  2547.  
  2548. countryValidationStatus: [null, ''],
  2549. cityValidationStatus: [null, '']
  2550. };
  2551. }
  2552.  
  2553. componentDidMount() {
  2554. requestAnimationFrame(() => {//Make sure it is on client only
  2555.  
  2556. //console.log("#################### REGISTER ",AuthService);
  2557.  
  2558. });
  2559. }
  2560.  
  2561. back(e) {
  2562. e.preventDefault();
  2563. e.stopPropagation();
  2564. //this.props.router.goBack();
  2565. }
  2566.  
  2567. handleCheckRegister(e) {
  2568.  
  2569. e.preventDefault();e.stopPropagation();
  2570.  
  2571. console.log(this.state.userName, this.state.emailAddress, this.state.firstName, this.state.lastName, this.state.password, this.state.retypePassword, this.state.latitude, this.state.longitude, this.state.city, this.state.country, this.state.ip);
  2572.  
  2573. let userNameValidationStatus = [null, ''],
  2574. emailAddressValidationStatus = [null, ''],
  2575. firstNameValidationStatus = [null, ''],
  2576. lastNameValidationStatus = [null, ''],
  2577. passwordValidationStatus = [null, ''],
  2578. retypePasswordValidationStatus = [null, ''],
  2579. countryValidationStatus = [null, ''],
  2580. cityValidationStatus = [null, ''];
  2581.  
  2582. let bValidationError = false;
  2583.  
  2584. if (this.state.password.length < 4) {
  2585. passwordValidationStatus = ["error", "To weak. At least 4 characters"];
  2586. bValidationError = true;
  2587. }
  2588.  
  2589. if (this.state.password !== this.state.retypePassword && this.state.password !== '') {
  2590. retypePasswordValidationStatus = ["error", "The passwords don't match"];
  2591. bValidationError = true;
  2592. }
  2593.  
  2594. this.setState({
  2595. userNameValidationStatus: userNameValidationStatus, emailAddressValidationStatus: emailAddressValidationStatus,
  2596. firstNameValidationStatus: firstNameValidationStatus, lastNameValidationStatus: lastNameValidationStatus,
  2597. passwordValidationStatus: passwordValidationStatus, retypePasswordValidationStatus: retypePasswordValidationStatus,
  2598. countryValidationStatus: countryValidationStatus, cityValidationStatus: cityValidationStatus
  2599. });
  2600.  
  2601. console.log(bValidationError);
  2602.  
  2603. if (!bValidationError) __WEBPACK_IMPORTED_MODULE_7__services_REST_authentication_Auth_service__["a" /* default */].registerAsync(this.state.userName, this.state.emailAddress, this.state.password, this.state.firstName, this.state.lastName, this.state.countryCode || this.props.localization.countryCode, '', this.state.city || this.props.localization.city, this.state.latitude || this.props.localization.latitude, this.state.longitude || this.props.localization.longtitude, this.state.timeZone).then(res => {
  2604.  
  2605. console.log(res);
  2606.  
  2607. if (res.result === true) {
  2608. this.registrationSuccessfully(res);
  2609. } else if (res.result === false) {
  2610.  
  2611. if (typeof res.errors.username !== "undefined" && Object.keys(res.errors.username).length !== 0) this.setState({ userNameValidationStatus: ["error", this.convertValidationErrorToString(res.errors.username[0])] });
  2612. if (typeof res.errors.email !== "undefined" && Object.keys(res.errors.email).length !== 0) this.setState({ emailAddressValidationStatus: ["error", this.convertValidationErrorToString(res.errors.email[0])] });
  2613. if (typeof res.errors.firstName !== "undefined" && Object.keys(res.errors.firstName).length !== 0) this.setState({ firstNameValidationStatus: ["error", this.convertValidationErrorToString(res.errors.firstName[0])] });
  2614. if (typeof res.errors.lastName !== "undefined" && Object.keys(res.errors.lastName).length !== 0) this.setState({ lastNameValidationStatus: ["error", this.convertValidationErrorToString(res.errors.lastName[0])] });
  2615. if (typeof res.errors.country !== "undefined" && Object.keys(res.errors.country).length !== 0) this.setState({ countryValidationStatus: ["error", this.convertValidationErrorToString(res.errors.country[0])] });
  2616. if (typeof res.errors.city !== "undefined" && Object.keys(res.errors.city).length !== 0) this.setState({ cityValidationStatus: ["error", this.convertValidationErrorToString(res.errors.city[0])] });
  2617.  
  2618. this.registrationFailure(res);
  2619. }
  2620. });
  2621. }
  2622.  
  2623. handleUserNameChange(e) {
  2624. this.setState({
  2625. userName: e.target.value,
  2626. userNameValidationStatus: [null, '']
  2627. });
  2628. }
  2629.  
  2630. handleEmailAddressChange(e) {
  2631. this.setState({
  2632. emailAddress: e.target.value,
  2633. emailAddressValidationStatus: [null, '']
  2634. });
  2635. }
  2636.  
  2637. handleFirstNameChange(e) {
  2638. this.setState({
  2639. firstName: e.target.value,
  2640. firstNameValidationStatus: [null, '']
  2641. });
  2642. }
  2643.  
  2644. handleLastNameChange(e) {
  2645. this.setState({
  2646. lastName: e.target.value,
  2647. lastNameValidationStatus: [null, '']
  2648. });
  2649. }
  2650.  
  2651. handlePasswordChange(e) {
  2652. this.setState({
  2653. password: e.target.value,
  2654. passwordValidationStatus: [null, '']
  2655. });
  2656. }
  2657.  
  2658. handleRetypePasswordChange(e) {
  2659. this.setState({
  2660. retypePassword: e.target.value,
  2661. retypePasswordValidationStatus: [null, '']
  2662. });
  2663. }
  2664.  
  2665. handleCountrySelect(val) {
  2666. this.setState({
  2667. country: val.label,
  2668. countryCode: val.value,
  2669.  
  2670. countryValidationStatus: [null, '']
  2671. });
  2672.  
  2673. console.log("values selected are:", val);
  2674. }
  2675.  
  2676. handleCityChange(e) {
  2677. this.setState({
  2678. city: e.target.value,
  2679. cityValidationStatus: null, cityValidationStatusText: ''
  2680. });
  2681. }
  2682.  
  2683. registrationSuccessfully(res) {
  2684. var onSuccess = this.props.onSuccess || function () {};
  2685.  
  2686. onSuccess(res);
  2687. }
  2688.  
  2689. registrationFailure(res) {
  2690. var onError = this.props.onError || function () {};
  2691.  
  2692. onError(res);
  2693. }
  2694.  
  2695. convertValidationErrorToString(error) {
  2696. if (error === "notUnique") return "Already exists in the Database";else if (error === "notEmpty") return "It's empty";else if (error === "validateUsername") return " Invalid username";
  2697.  
  2698. return error;
  2699. }
  2700. //https://www.w3schools.com/bootstrap/bootstrap_forms_inputs2.asp DOC
  2701. showInputStatus(status) {
  2702. return status[0] === 'error' ? "has-error has-feedback" : status[0] === 'success' ? "has-success has-feedback" : '';
  2703. }
  2704. showInputFeedback(status) {
  2705. return status[0] === 'error' ? "fa fa-remove form-control-feedback" : status[0] === 'success' ? "fa fa-check form-control-feedback" : '';
  2706. }
  2707.  
  2708. render() {
  2709.  
  2710. var onSuccess = this.props.onSuccess || function () {};
  2711. var onSwitch = this.props.onSwitch || function () {};
  2712.  
  2713. return _jsx('div', {}, void 0, _jsx('div', {
  2714. style: { padding: 25, paddingTop: 0, paddingBottom: 0, margin: 'auto', marginBottom: 25, marginTop: 5 }
  2715. }, void 0, _jsx('form', {
  2716. onSubmit: this.handleCheckRegister.bind(this),
  2717. autoComplete: 'on'
  2718. }, void 0, _jsx('div', {
  2719. className: 'row'
  2720. }, void 0, _jsx('div', {
  2721. className: 'col-sm-6'
  2722. }, void 0, _jsx('div', {
  2723. className: "input-group " + this.showInputStatus(this.state.userNameValidationStatus)
  2724. }, void 0, _ref, _jsx('input', {
  2725. autoFocus: true,
  2726. type: 'text',
  2727. className: 'form-control input-lg',
  2728. placeholder: 'username',
  2729. name: 'username',
  2730. value: this.state.userName,
  2731. onChange: this.handleUserNameChange.bind(this)
  2732. }), _jsx('span', {
  2733. className: this.showInputFeedback.call(this, this.state.userNameValidationStatus)
  2734. })), _jsx('label', {
  2735. className: 'error'
  2736. }, void 0, this.state.userNameValidationStatus[1]), ' ', _ref2), _jsx('div', {
  2737. className: 'col-sm-6'
  2738. }, void 0, _jsx('div', {
  2739. className: "input-group " + this.showInputStatus(this.state.emailAddressValidationStatus)
  2740. }, void 0, _ref3, _jsx('input', {
  2741. type: 'text',
  2742. className: 'form-control input-lg',
  2743. placeholder: 'E-mail',
  2744. name: 'email',
  2745. value: this.state.emailAddress,
  2746. onChange: this.handleEmailAddressChange.bind(this)
  2747. }), _jsx('span', {
  2748. className: this.showInputFeedback.call(this, this.state.emailAddressValidationStatus)
  2749. })), _jsx('label', {
  2750. className: 'error'
  2751. }, void 0, this.state.emailAddressValidationStatus[1]), ' ', _ref4)), _jsx('div', {
  2752. className: 'row'
  2753. }, void 0, _jsx('div', {
  2754. className: 'col-sm-6'
  2755. }, void 0, _jsx('div', {
  2756. className: "input-group " + this.showInputStatus(this.state.firstNameValidationStatus)
  2757. }, void 0, _ref5, _jsx('input', {
  2758. type: 'text',
  2759. className: 'form-control input-lg',
  2760. placeholder: 'First Name',
  2761. name: 'firstname',
  2762. value: this.state.firstName,
  2763. onChange: this.handleFirstNameChange.bind(this)
  2764. }), _jsx('span', {
  2765. className: this.showInputFeedback.call(this, this.state.firstNameValidationStatus)
  2766. })), _jsx('label', {
  2767. className: 'error'
  2768. }, void 0, this.state.firstNameValidationStatus[1]), ' ', _ref6), _jsx('div', {
  2769. className: 'col-sm-6'
  2770. }, void 0, _jsx('div', {
  2771. className: "input-group " + this.showInputStatus(this.state.lastNameValidationStatus)
  2772. }, void 0, _ref7, _jsx('input', {
  2773. type: 'text',
  2774. className: 'form-control input-lg',
  2775. placeholder: 'Last Name',
  2776. name: 'lastname',
  2777. value: this.state.lastName,
  2778. onChange: this.handleLastNameChange.bind(this)
  2779. }), _jsx('span', {
  2780. className: this.showInputFeedback.call(this, this.state.lastNameValidationStatus)
  2781. })), _jsx('label', {
  2782. className: 'error'
  2783. }, void 0, this.state.lastNameValidationStatus[1]), ' ', _ref8)), _jsx('div', {
  2784. className: 'row'
  2785. }, void 0, _jsx('div', {
  2786. className: 'col-sm-6'
  2787. }, void 0, _jsx('div', {
  2788. className: "input-group " + this.showInputStatus(this.state.passwordValidationStatus)
  2789. }, void 0, _ref9, _jsx('input', {
  2790. type: 'password',
  2791. className: 'form-control input-lg',
  2792. placeholder: 'password',
  2793. name: 'password',
  2794. value: this.state.password,
  2795. onChange: this.handlePasswordChange.bind(this)
  2796. }), _jsx('span', {
  2797. className: this.showInputFeedback.call(this, this.state.passwordValidationStatus)
  2798. })), _jsx('label', {
  2799. className: 'error'
  2800. }, void 0, this.state.passwordValidationStatus[1]), ' ', _ref10), _jsx('div', {
  2801. className: 'col-sm-6'
  2802. }, void 0, _jsx('div', {
  2803. className: "input-group " + this.showInputStatus(this.state.retypePasswordValidationStatus)
  2804. }, void 0, _ref11, _jsx('input', {
  2805. type: 'password',
  2806. className: 'form-control input-lg',
  2807. placeholder: 'password',
  2808. value: this.state.retypePassword,
  2809. onChange: this.handleRetypePasswordChange.bind(this)
  2810. }), _jsx('span', {
  2811. className: this.showInputFeedback.call(this, this.state.retypePasswordValidationStatus)
  2812. })), _jsx('label', {
  2813. className: 'error'
  2814. }, void 0, this.state.retypePasswordValidationStatus[1]), ' ', _ref12)), _jsx('div', {
  2815. className: 'row'
  2816. }, void 0, _jsx('div', {
  2817. className: 'col-sm-6'
  2818. }, void 0, _jsx('div', {
  2819. className: "input-group " + this.showInputStatus(this.state.countryValidationStatus)
  2820. }, void 0, _ref13, _jsx(__WEBPACK_IMPORTED_MODULE_4__components_util_components_select_MyCountry_select_component__["a" /* default */], {
  2821. initialCountry: this.props.localization.countryCode || '',
  2822. onSelect: this.handleCountrySelect.bind(this)
  2823. }), _jsx('span', {
  2824. className: this.showInputFeedback.call(this, this.state.countryValidationStatus)
  2825. })), _jsx('label', {
  2826. className: 'error'
  2827. }, void 0, this.state.countryValidationStatus[1]), ' ', _ref14), _jsx('div', {
  2828. className: 'col-sm-6',
  2829. style: { paddingBottom: 5 }
  2830. }, void 0, _jsx('div', {
  2831. className: "input-group " + this.showInputStatus(this.state.cityValidationStatus)
  2832. }, void 0, _ref15, _jsx('input', {
  2833. type: 'text',
  2834. className: 'form-control input-lg',
  2835. placeholder: 'city',
  2836. value: this.props.localization.city || this.state.city,
  2837. onChange: this.handleCityChange.bind(this)
  2838. }), _jsx('span', {
  2839. className: this.showInputFeedback.call(this, this.state.cityValidationStatus)
  2840. })), _jsx('label', {
  2841. className: 'error'
  2842. }, void 0, this.state.cityValidationStatus[1]), ' ', _ref16)), _jsx('div', {
  2843. className: 'form-group'
  2844. }, void 0, _jsx('div', {
  2845. className: 'row'
  2846. }, void 0, _jsx('div', {
  2847. className: 'col-xs-6',
  2848. style: { paddingTop: 5 }
  2849. }, void 0, _jsx('div', {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_2__components_Link_Link__["a" /* default */], {
  2850. to: 'login',
  2851. onClick: onSwitch.bind(this)
  2852. }, void 0, ' ', _ref17), 'to SkyHub')), _jsx('div', {
  2853. className: 'col-xs-6 text-right'
  2854. }, void 0, _jsx('button', {
  2855. type: 'button',
  2856. className: 'btn btn-success',
  2857. onClick: this.handleCheckRegister.bind(this)
  2858. }, void 0, _ref18, ' Register')))))), _jsx(__WEBPACK_IMPORTED_MODULE_5__oauth_social_networks_form_oauth_social_networks_component__["a" /* default */], {
  2859. onSuccess: this.registrationSuccessfully.bind(this),
  2860. onError: this.registrationFailure.bind(this)
  2861. }));
  2862. }
  2863. };
  2864.  
  2865. function mapState(state) {
  2866. return {
  2867. localization: state.localization
  2868. };
  2869. };
  2870.  
  2871. function mapDispatch(dispatch) {
  2872. return {
  2873. dispatch: dispatch
  2874. };
  2875. };
  2876.  
  2877. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(RegistrationForm));
  2878.  
  2879. /***/ }),
  2880. /* 29 */
  2881. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2882.  
  2883. "use strict";
  2884. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return User; });
  2885. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__User_properties_js__ = __webpack_require__(76);
  2886. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__User_properties_js___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__User_properties_js__);
  2887. /* eslint-disable import/prefer-default-export */
  2888.  
  2889.  
  2890. //var UserProperties = require ('./User.properties.ts');
  2891.  
  2892. let User = class User {
  2893.  
  2894. constructor(data = {}) {
  2895.  
  2896. this.firstName = data.firstName || '';
  2897. this.lastName = data.lastName || '';
  2898.  
  2899. this.email = data.email || '';
  2900. this.username = data.username || '';
  2901.  
  2902. this.loggedIn = data.loggedIn || false;
  2903.  
  2904. this.preferredLang = data.preferredLang || data.language || null;
  2905. this.connected = data.connected || false;
  2906.  
  2907. this.profilePic = data.profilePic || '';
  2908. this.coverPic = data.coverPic || '';
  2909.  
  2910. this.country = data.country || '';
  2911. this.city = data.city || '';
  2912. this.dtCreation = data.dtCreation || Date.now();
  2913. this.dtLastActivity = data.dtLastActivity || Date.now();
  2914.  
  2915. this.gender = data.gender || '';
  2916.  
  2917. this.role = data.role || __WEBPACK_IMPORTED_MODULE_0__User_properties_js__["UserRolesEnum"].NOT_REGISTERED;
  2918.  
  2919. this.timeZone = data.timeZone || 0;
  2920. this.shortBio = data.shortBio || '';
  2921. this.longitude = data.longitude || -666;
  2922. this.latitude = data.latitude || -666;
  2923.  
  2924. console.log('User assigned ', data, data.firstName, data.userName);
  2925. }
  2926.  
  2927. getName() {
  2928. return this.firstName + ' ' + this.lastName;
  2929. }
  2930.  
  2931. isLoggedIn() {
  2932. return this.loggedIn || false;
  2933. }
  2934.  
  2935. getProfilePic() {
  2936. return this.profilePic;
  2937. }
  2938.  
  2939. };
  2940.  
  2941.  
  2942. /***/ }),
  2943. /* 30 */
  2944. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2945.  
  2946. "use strict";
  2947. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CookiesService; });
  2948. /*
  2949. TUTORIAL BASED on http://stackoverflow.com/questions/34298133/angular-2-cookies
  2950. */
  2951.  
  2952. let CookiesService = class CookiesService {
  2953.  
  2954. static getSessionCookie() {
  2955. return this.readCookie2('sessionId');
  2956. }
  2957.  
  2958. static readCookie(cookieName) {
  2959. var theCookie = " " + window.document.cookie;
  2960. var ind = theCookie.indexOf(" " + cookieName + "=");
  2961. if (ind == -1) ind = theCookie.indexOf(";" + cookieName + "=");
  2962. if (ind == -1 || cookieName == "") return "";
  2963. var ind1 = theCookie.indexOf(";", ind + 1);
  2964. if (ind1 == -1) ind1 = theCookie.length;
  2965. return theCookie.substring(ind + cookieName.length + 2, ind1);
  2966. }
  2967.  
  2968. static readCookie2(a) {
  2969. var b = window.document.cookie.match('(^|;)\\s*' + a + '\\s*=\\s*([^;]+)');
  2970. return b ? b.pop() : '';
  2971. }
  2972.  
  2973. static deleteCookie(name) {
  2974. console.log('deleting cookie');
  2975. this.setCookie(name, '', -1);
  2976. }
  2977.  
  2978. static setCookie(name, value, days) {
  2979. var expires = "";
  2980. if (days) {
  2981. var date = new Date();
  2982. date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
  2983. expires = "; expires=" + date.toUTCString();
  2984. }
  2985. document.cookie = name + "=" + value + expires + "; path=/";
  2986. }
  2987.  
  2988. };
  2989.  
  2990.  
  2991. /***/ }),
  2992. /* 31 */
  2993. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  2994.  
  2995. "use strict";
  2996. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__modules_forums_forums_models_Forum_model__ = __webpack_require__(6);
  2997. /**
  2998. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/8/2017.
  2999. * (C) BIT TECHNOLOGIES
  3000. */
  3001.  
  3002.  
  3003.  
  3004. let ContentObjectServiceClass = class ContentObjectServiceClass {
  3005.  
  3006. /*
  3007. Loading forum/topic/reply from the Id
  3008. sObjectId contains inside also the type of the object example: 1_frm_14958198943447852
  3009. */
  3010.  
  3011. extractDataFromIds(objectId) {
  3012.  
  3013. if (typeof objectId === "object" && objectId !== null) objectId = objectId.id;
  3014. if (typeof objectId !== "string") return null;
  3015.  
  3016. //console.log("extract data from Ids",objectId);
  3017.  
  3018. var iDelimitatorPosLeft = objectId.indexOf("_");
  3019. var iDelimitatorPosRight = objectId.indexOf("_", iDelimitatorPosLeft + 1);
  3020.  
  3021. var iRedisDB = objectId.substring(0, iDelimitatorPosLeft);
  3022. var sObjectType = objectId.substring(iDelimitatorPosLeft + 1, iDelimitatorPosRight);
  3023.  
  3024. //console.log("finding OBJECT ID: ", iRedisDB, " :::: ", sObjectType, " :::: ", sObjectId);
  3025.  
  3026. if (iRedisDB !== 0 && sObjectType !== '') return { redisDB: iRedisDB, objectType: sObjectType };else return null;
  3027. }
  3028.  
  3029. extractObjectTypeFromId(object) {
  3030.  
  3031. let extractedIdData = this.extractDataFromIds(object);
  3032.  
  3033. if (extractedIdData === null) return 'none';
  3034.  
  3035. switch (extractedIdData.objectType || '') {
  3036. case 'frm':
  3037. return 'forum';
  3038.  
  3039. case 'us':
  3040. return 'user';
  3041.  
  3042. case 'top':
  3043. return 'topic';
  3044. }
  3045.  
  3046. return 'none';
  3047. }
  3048.  
  3049. createObject(object) {
  3050.  
  3051. //console.log(this.extractObjectTypeFromId(object));
  3052.  
  3053. switch (this.extractObjectTypeFromId(object)) {
  3054. case 'forum':
  3055. return new __WEBPACK_IMPORTED_MODULE_0__modules_forums_forums_models_Forum_model__["a" /* default */](object);
  3056. break;
  3057. /*case 'topic':
  3058. return New Fo*/
  3059. }
  3060.  
  3061. return null;
  3062. }
  3063. };
  3064.  
  3065.  
  3066. var ContentObjectService = new ContentObjectServiceClass();
  3067.  
  3068. /* harmony default export */ __webpack_exports__["a"] = (ContentObjectService);
  3069.  
  3070. // export function ContentObjectService(){
  3071. // return ContentObjectServiceInstance;
  3072. // };
  3073.  
  3074. /***/ }),
  3075. /* 32 */
  3076. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3077.  
  3078. "use strict";
  3079. /* eslint-disable import/prefer-default-export */
  3080.  
  3081. const SET_RUNTIME_VARIABLE = 'SET_RUNTIME_VARIABLE';
  3082. /* harmony export (immutable) */ __webpack_exports__["a"] = SET_RUNTIME_VARIABLE;
  3083.  
  3084.  
  3085. const SET_NEW_LOCALIZATION = 'SET_NEW_LOCALIZATION';
  3086. /* unused harmony export SET_NEW_LOCALIZATION */
  3087.  
  3088.  
  3089. const SET_NEW_ROUTER_OBJECT_ARGUMENT = 'SET_NEW_ROUTER_OBJECT_ARGUMENT';
  3090. /* unused harmony export SET_NEW_ROUTER_OBJECT_ARGUMENT */
  3091.  
  3092. const SET_NEW_ROUTER_TOPIC_ARGUMENT = 'SET_NEW_ROUTER_TOPIC_ARGUMENT';
  3093. /* unused harmony export SET_NEW_ROUTER_TOPIC_ARGUMENT */
  3094.  
  3095.  
  3096. const SET_NEW_SOCKET_STATUS = 'SET_NEW_SOCKET_STATUS';
  3097. /* unused harmony export SET_NEW_SOCKET_STATUS */
  3098.  
  3099.  
  3100. const SET_NEW_USER_AUTHENTICATED = 'SET_NEW_USER_AUTHENTICATED';
  3101. /* unused harmony export SET_NEW_USER_AUTHENTICATED */
  3102.  
  3103. const SET_LOGOUT_USER = 'SET_LOGOUT_USER';
  3104. /* unused harmony export SET_LOGOUT_USER */
  3105.  
  3106.  
  3107. /***/ }),
  3108. /* 33 */
  3109. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3110.  
  3111. "use strict";
  3112. /* harmony export (immutable) */ __webpack_exports__["a"] = setAuthenticationModalElement;
  3113. /**
  3114. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/5/2017.
  3115. * (C) BIT TECHNOLOGIES
  3116. */
  3117.  
  3118. /* eslint-disable import/prefer-default-export */
  3119.  
  3120. function setAuthenticationModalElement(refAuthenticationModal) {
  3121.  
  3122. return {
  3123. type: 'SET_AUTHENTICATION_MODAL_ELEMENT',
  3124. payload: {
  3125. refAuthenticationModal: refAuthenticationModal
  3126. }
  3127. };
  3128. }
  3129.  
  3130. /***/ }),
  3131. /* 34 */
  3132. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3133.  
  3134. "use strict";
  3135. /* harmony export (immutable) */ __webpack_exports__["b"] = socketConnectingError;
  3136. /* harmony export (immutable) */ __webpack_exports__["c"] = socketDisconnected;
  3137. /* harmony export (immutable) */ __webpack_exports__["a"] = socketConnectionSuccessfully;
  3138. /* harmony export (immutable) */ __webpack_exports__["d"] = socketHideSocketStatusMessage;
  3139. /* eslint-disable import/prefer-default-export */
  3140.  
  3141. function socketConnectingError() {
  3142. return {
  3143. type: "NEW_SOCKET_STATUS",
  3144. payload: {
  3145. connectionOffline: true,
  3146. showOnlineStatus: false,
  3147. message: 'Error Connecting to the SkyHub Server. Check your internet connection or contact us at contact@skyhub.me',
  3148. icon: 'fa fa-warning'
  3149. }
  3150. };
  3151. }
  3152.  
  3153. function socketDisconnected() {
  3154. return {
  3155. type: "NEW_SOCKET_STATUS",
  3156. payload: {
  3157. connectionOffline: true,
  3158. showOnlineStatus: false,
  3159. message: 'Connection Problem',
  3160. icon: 'fa fa-warning'
  3161. }
  3162. };
  3163. }
  3164.  
  3165. function socketConnectionSuccessfully() {
  3166. return {
  3167. type: "NEW_SOCKET_STATUS",
  3168. payload: {
  3169. connectionOffline: false,
  3170. showOnlineStatus: true,
  3171. message: 'Connection established to SkyHub',
  3172. icon: 'fa fa-check'
  3173. }
  3174. };
  3175. }
  3176.  
  3177. function socketHideSocketStatusMessage() {
  3178. return {
  3179. type: "NEW_SOCKET_STATUS",
  3180. payload: {
  3181. connectionOffline: false,
  3182. showOnlineStatus: false,
  3183. message: '',
  3184. icon: ''
  3185. }
  3186. };
  3187. }
  3188.  
  3189. /***/ }),
  3190. /* 35 */
  3191. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3192.  
  3193. "use strict";
  3194. /* harmony export (immutable) */ __webpack_exports__["a"] = defaultContentState;
  3195. /* harmony export (immutable) */ __webpack_exports__["b"] = ContentStateReducer;
  3196. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__client_modules_forums_forums_models_Forum_model__ = __webpack_require__(6);
  3197. var _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; };
  3198.  
  3199. /**
  3200. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/13/2017.
  3201. * (C) BIT TECHNOLOGIES
  3202. */
  3203.  
  3204.  
  3205. function defaultContentState(initial) {
  3206.  
  3207. return {
  3208.  
  3209. routerObject: initial.routerObject || {
  3210. type: 'none', //'none','forum','topic','user',
  3211. object: null,
  3212. notFound: false,
  3213. pageURL: ''
  3214. },
  3215.  
  3216. contentObjects: initial.contentObjects || {
  3217. pageIndex: 1,
  3218. pageCount: 8,
  3219. hasNext: true,
  3220. objects: []
  3221. },
  3222.  
  3223. contentForums: initial.contentForums || {
  3224. pageIndex: 1,
  3225. pageCount: 8,
  3226. hasNext: true,
  3227. objects: []
  3228. },
  3229.  
  3230. contentReplies: initial.contentReplies || {
  3231. pageIndex: 1,
  3232. pageCount: 8,
  3233. hasNext: true,
  3234. objects: []
  3235. }
  3236.  
  3237. };
  3238. };
  3239.  
  3240. function ContentStateReducer(state = defaultContentState, action) {
  3241.  
  3242. switch (action.type) {
  3243.  
  3244. case 'SET_NEW_CONTENT_STATE_ROUTER_OBJECT':
  3245. console.log("!!!!!!!!!!!!!!! SET_NEW_CONTENT_STATE_ROUTER_OBJECT", action);
  3246. return _extends({}, state, {
  3247. routerObject: _extends({}, state.routerObject, {
  3248. type: action.payload.routerObject.type,
  3249. object: action.payload.routerObject.object,
  3250. notFound: action.payload.routerObject.notFound,
  3251. pageURL: action.payload.routerObject.pageURL
  3252. }),
  3253. ['contentObjects']: action.payload.contentObjects,
  3254. ['contentForums']: action.payload.contentForums,
  3255. ['contentReplies']: action.payload.contentReplies
  3256. });
  3257.  
  3258. case 'ADD_CONTENT_OBJECTS':
  3259. //console.log("NEW_ROUTER_OBJECT_ARGUMENT_ADD_TO_CONTENT_ARRAY",action);
  3260. return _extends({}, state, {
  3261. contentObjects: _extends({}, state.contentObjects, {
  3262. objects: Array.concat(...state.contentObjects.objects, action.payload)
  3263. })
  3264.  
  3265. });
  3266.  
  3267. case 'ADD_CONTENT_FORUMS':
  3268. return _extends({}, state, {
  3269. contentForums: _extends({}, state.contentForums, {
  3270. objects: Array.concat(...state.contentForums.objects, action.payload)
  3271. })
  3272. });
  3273.  
  3274. case 'ADD_CONTENT_REPLIES':
  3275. return _extends({}, state, {
  3276. contentReplies: _extends({}, state.contentReplies, {
  3277. objects: Array.concat(...state.contentReplies.objects, action.payload)
  3278. })
  3279. });
  3280.  
  3281. default:
  3282. return state;
  3283.  
  3284. }
  3285. };
  3286.  
  3287. /***/ }),
  3288. /* 36 */
  3289. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3290.  
  3291. "use strict";
  3292. /* harmony export (immutable) */ __webpack_exports__["a"] = defaultLocalization;
  3293. /* harmony export (immutable) */ __webpack_exports__["b"] = LocalizationReducer;
  3294. var _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; };
  3295.  
  3296. /**
  3297. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/26/2017.
  3298. * (C) BIT TECHNOLOGIES
  3299. */
  3300.  
  3301. /* eslint-disable import/prefer-default-export */
  3302.  
  3303. function defaultLocalization(initial) {
  3304. return {
  3305. country: initial.country || '',
  3306. countryCode: initial.countryCode || '',
  3307. city: initial.city || '',
  3308. latitude: initial.latitude || '',
  3309. longitude: initial.longtitude || '',
  3310. IP: initial.IP || '',
  3311. timeZone: initial.timeZone || '',
  3312.  
  3313. clientIP: initial.clientIP || '',
  3314.  
  3315. request: initial.request || {
  3316. sent: false,
  3317. done: false,
  3318. error: false
  3319. }
  3320. };
  3321. };
  3322.  
  3323. function LocalizationReducer(state = defaultLocalization, action) {
  3324.  
  3325. switch (action.type) {
  3326.  
  3327. case 'NEW_LOCALIZATION_IP':
  3328. return _extends({}, state, {
  3329. ['clientIP']: action.payload.clientIP
  3330. });
  3331.  
  3332. case 'NEW_LOCALIZATION_REQUEST_SENT':
  3333. return _extends({}, state, {
  3334. ['request.sent']: action.payload.request.sent
  3335. });
  3336.  
  3337. case 'NEW_LOCALIZATION':
  3338. return _extends({}, state, {
  3339. ['country']: action.payload.country,
  3340. ['countryCode']: action.payload.countryCode,
  3341. ['city']: action.payload.city,
  3342. ['latitude']: action.payload.latitude,
  3343. ['longtitude']: action.payload.longitude,
  3344. ['ip']: action.payload.ip,
  3345. ['timeZone']: action.payload.timeZone,
  3346. ['request']: action.payload.request
  3347. });
  3348.  
  3349. case 'NEW_LOCALIZATION_REQUEST_ERROR':
  3350. return _extends({}, state, {
  3351. ['request.error']: true
  3352. });
  3353.  
  3354. default:
  3355. return state;
  3356.  
  3357. }
  3358. }
  3359.  
  3360. /***/ }),
  3361. /* 37 */
  3362. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3363.  
  3364. "use strict";
  3365. /* harmony export (immutable) */ __webpack_exports__["a"] = defaultRouterState;
  3366. /* harmony export (immutable) */ __webpack_exports__["b"] = RouterStateReducer;
  3367. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__client_modules_forums_forums_models_Forum_model__ = __webpack_require__(6);
  3368. var _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; };
  3369.  
  3370. /**
  3371. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/5/2017.
  3372. * (C) BIT TECHNOLOGIES
  3373. */
  3374.  
  3375.  
  3376. function defaultRouterState(initial) {
  3377.  
  3378. return {
  3379.  
  3380. refAuthenticationModal: initial.refAuthenticationModal || null
  3381.  
  3382. };
  3383. };
  3384.  
  3385. function RouterStateReducer(state = defaultRouterState, action) {
  3386.  
  3387. switch (action.type) {
  3388.  
  3389. case 'SET_AUTHENTICATION_MODAL_ELEMENT':
  3390. return _extends({}, state, {
  3391. ['refAuthenticationModal']: action.payload.refAuthenticationModal
  3392. });
  3393.  
  3394. default:
  3395. return state;
  3396.  
  3397. }
  3398. };
  3399.  
  3400. /***/ }),
  3401. /* 38 */
  3402. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3403.  
  3404. "use strict";
  3405. /* harmony export (immutable) */ __webpack_exports__["b"] = SocketStatusReducer;
  3406. var _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; };
  3407.  
  3408. /* eslint-disable import/prefer-default-export */
  3409.  
  3410. const defaultSocketStatus = {
  3411. connectionOffline: false,
  3412. message: '',
  3413.  
  3414. icon: '',
  3415. showOnlineStatus: false
  3416. };
  3417. /* harmony export (immutable) */ __webpack_exports__["a"] = defaultSocketStatus;
  3418.  
  3419.  
  3420. function SocketStatusReducer(state = defaultSocketStatus, action) {
  3421.  
  3422. switch (action.type) {
  3423. case 'NEW_SOCKET_STATUS':
  3424. return _extends({}, state, {
  3425. ['connectionOffline']: action.payload.connectionOffline,
  3426. ['message']: action.payload.message,
  3427. ['icon']: action.payload.icon,
  3428. ['showOnlineStatus']: action.payload.showOnlineStatus
  3429. });
  3430.  
  3431. default:
  3432. return state;
  3433. }
  3434. };
  3435.  
  3436. /***/ }),
  3437. /* 39 */
  3438. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3439.  
  3440. "use strict";
  3441. /* harmony export (immutable) */ __webpack_exports__["a"] = defaultUserState;
  3442. /* harmony export (immutable) */ __webpack_exports__["b"] = UserReducer;
  3443. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__client_modules_users_models_User_model__ = __webpack_require__(29);
  3444. var _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; };
  3445.  
  3446. /* eslint-disable import/prefer-default-export */
  3447.  
  3448.  
  3449.  
  3450. function defaultUserState(initial) {
  3451. return {
  3452. user: new __WEBPACK_IMPORTED_MODULE_0__client_modules_users_models_User_model__["a" /* default */](initial.user || {}),
  3453. error: initial.error || ''
  3454. };
  3455. };
  3456.  
  3457. function UserReducer(state = defaultUserState, action) {
  3458.  
  3459. switch (action.type) {
  3460. case 'NEW_USER_AUTHENTICATED':
  3461. var newState = _extends({}, state, {
  3462. ['user']: new __WEBPACK_IMPORTED_MODULE_0__client_modules_users_models_User_model__["a" /* default */](action.payload.user),
  3463. ['error']: action.payload.error
  3464. });
  3465.  
  3466. if (typeof document !== "undefined" && newState.user.isLoggedIn()) document.body.classList.remove("top-navigation");
  3467. // document.body.addClass("top-navigation");
  3468.  
  3469. return newState;
  3470.  
  3471. case 'LOGOUT_USER':
  3472. var newState = _extends({}, state, {
  3473. ['user']: defaultUserState({}).user,
  3474. ['error']: defaultUserState({}).error
  3475. });
  3476.  
  3477. if (typeof document !== "undefined" && !newState.user.isLoggedIn()) document.body.classList.add("top-navigation");
  3478.  
  3479. return newState;
  3480.  
  3481. default:
  3482. return state;
  3483. }
  3484. };
  3485.  
  3486. /***/ }),
  3487. /* 40 */
  3488. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3489.  
  3490. "use strict";
  3491. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  3492. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  3493. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  3494. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  3495. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);
  3496. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
  3497. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__actions_TestRedux_actions__ = __webpack_require__(98);
  3498. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  3499.  
  3500. /**
  3501. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/9/2017.
  3502. * (C) BIT TECHNOLOGIES
  3503. */
  3504.  
  3505. /* eslint-disable import/prefer-default-export */
  3506.  
  3507.  
  3508.  
  3509.  
  3510.  
  3511.  
  3512.  
  3513.  
  3514. /*@connect(
  3515. state => (console.log('STATE @connect',state),{
  3516. testReduxState: state.testReduxState.value1,
  3517. runtime: state.testReduxState.runtime,
  3518. },
  3519. dispatch => ({dispatch})
  3520. ))*/
  3521.  
  3522. var _ref = _jsx('div', {}, void 0, 'NASOL');
  3523.  
  3524. var _ref2 = _jsx('br', {});
  3525.  
  3526. var _ref3 = _jsx('br', {});
  3527.  
  3528. var _ref4 = _jsx('br', {});
  3529.  
  3530. let TestRedux = class TestRedux extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  3531.  
  3532. constructor(props) {
  3533. super(props);
  3534. }
  3535.  
  3536. button1Click(e) {
  3537.  
  3538. //this.newTestReduxValue1(this.props.testReduxState.value1+1);
  3539. console.log("button1 clicked");
  3540. this.props.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__actions_TestRedux_actions__["a" /* newTestReduxValue1 */])(this.props.testReduxState.value1 + 1));
  3541. }
  3542.  
  3543. button2Click(e) {
  3544.  
  3545. //this.props.newTestReduxValue2(this.props.testReduxState.value2+5);
  3546. console.log("button2 clicked");
  3547. this.props.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__actions_TestRedux_actions__["b" /* newTestReduxValue2 */])(this.props.testReduxState.value2 + 5));
  3548. }
  3549.  
  3550. renderStatus() {
  3551. return _ref;
  3552. }
  3553.  
  3554. render() {
  3555.  
  3556. console.log('---');console.log('---');console.log('---');console.log('---');
  3557. console.log(this);
  3558.  
  3559. return _jsx('div', {}, void 0, _jsx('button', {
  3560. onClick: this.button1Click.bind(this)
  3561. }, 'buttonRedux1', ' INC Val1 by 1'), _jsx('button', {
  3562. onClick: this.button2Click.bind(this)
  3563. }, 'buttonRedux2', ' INC Val2 by 5'), ' ', _ref2, this.props.testReduxState !== null ? this.renderStatus.bind(this) : 'KKKT', 'Val 1 ====', _jsx('b', {}, void 0, this.props.testReduxState.value1), ' ', _ref3, ' Val 2 ====', _jsx('b', {}, void 0, this.props.testReduxState.value2), ' ', _ref4);
  3564. }
  3565. };
  3566.  
  3567.  
  3568. function mapState(state) {
  3569. return {
  3570. testReduxState: state.testReduxState
  3571. };
  3572. };
  3573.  
  3574. function mapDispatch(dispatch) {
  3575. return {
  3576. dispatch: dispatch
  3577. };
  3578. };
  3579.  
  3580. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(TestRedux));
  3581.  
  3582. /***/ }),
  3583. /* 41 */
  3584. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3585.  
  3586. "use strict";
  3587. /* harmony export (immutable) */ __webpack_exports__["b"] = testReduxReducer;
  3588. var _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; };
  3589.  
  3590. /**
  3591. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/9/2017.
  3592. * (C) BIT TECHNOLOGIES
  3593. */
  3594.  
  3595. const defaultTestReduxState = {
  3596.  
  3597. value1: 0,
  3598. value2: 0
  3599.  
  3600. };
  3601. /* harmony export (immutable) */ __webpack_exports__["a"] = defaultTestReduxState;
  3602.  
  3603.  
  3604. function testReduxReducer(state = {}, action) {
  3605.  
  3606. switch (action.type) {
  3607. case 'NEW_TEST_REDUX_VALUE_1':
  3608. return _extends({}, state, {
  3609. ['value1']: action.payload.value
  3610. });
  3611. case 'NEW_TEST_REDUX_VALUE_2':
  3612. return _extends({}, state, {
  3613. ['value2']: action.payload.value
  3614. });
  3615. default:
  3616. return state;
  3617. }
  3618. }
  3619.  
  3620. /***/ }),
  3621. /* 42 */
  3622. /***/ (function(module, exports, __webpack_require__) {
  3623.  
  3624.  
  3625. var content = __webpack_require__(128);
  3626. var insertCss = __webpack_require__(9);
  3627.  
  3628. if (typeof content === 'string') {
  3629. content = [[module.i, content, '']];
  3630. }
  3631.  
  3632. module.exports = content.locals || {};
  3633. module.exports._getContent = function() { return content; };
  3634. module.exports._getCss = function() { return content.toString(); };
  3635. module.exports._insertCss = function(options) { return insertCss(content, options) };
  3636.  
  3637. // Hot Module Replacement
  3638. // https://webpack.github.io/docs/hot-module-replacement
  3639. // Only activated in browser context
  3640. if (false) {
  3641. var removeCss = function() {};
  3642. module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--1-1!../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./ErrorPage.css", function() {
  3643. content = require("!!../../../node_modules/css-loader/index.js??ref--1-1!../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./ErrorPage.css");
  3644.  
  3645. if (typeof content === 'string') {
  3646. content = [[module.id, content, '']];
  3647. }
  3648.  
  3649. removeCss = insertCss(content, { replace: true });
  3650. });
  3651. module.hot.dispose(function() { removeCss(); });
  3652. }
  3653.  
  3654.  
  3655. /***/ }),
  3656. /* 43 */
  3657. /***/ (function(module, exports) {
  3658.  
  3659. module.exports = require("axios");
  3660.  
  3661. /***/ }),
  3662. /* 44 */
  3663. /***/ (function(module, exports) {
  3664.  
  3665. module.exports = require("classnames");
  3666.  
  3667. /***/ }),
  3668. /* 45 */
  3669. /***/ (function(module, exports) {
  3670.  
  3671. module.exports = require("isomorphic-fetch");
  3672.  
  3673. /***/ }),
  3674. /* 46 */
  3675. /***/ (function(module, exports) {
  3676.  
  3677. module.exports = require("redux");
  3678.  
  3679. /***/ }),
  3680. /* 47 */
  3681. /***/ (function(module, exports) {
  3682.  
  3683. module.exports = require("rxjs/Observable");
  3684.  
  3685. /***/ }),
  3686. /* 48 */
  3687. /***/ (function(module, exports) {
  3688.  
  3689. module.exports = require("socket.io-client");
  3690.  
  3691. /***/ }),
  3692. /* 49 */
  3693. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3694.  
  3695. "use strict";
  3696. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  3697. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path__ = __webpack_require__(151);
  3698. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_path___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_path__);
  3699. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_express__ = __webpack_require__(144);
  3700. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_express___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_express__);
  3701. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_cookie_parser__ = __webpack_require__(141);
  3702. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_cookie_parser___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_cookie_parser__);
  3703. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_body_parser__ = __webpack_require__(140);
  3704. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_body_parser___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_body_parser__);
  3705. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_express_graphql__ = __webpack_require__(145);
  3706. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_express_graphql___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_express_graphql__);
  3707. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react__ = __webpack_require__(0);
  3708. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react__);
  3709. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom_server__ = __webpack_require__(154);
  3710. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_dom_server___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_dom_server__);
  3711. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_pretty_error__ = __webpack_require__(152);
  3712. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7_pretty_error___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_7_pretty_error__);
  3713. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__client_App__ = __webpack_require__(51);
  3714. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__client_Html__ = __webpack_require__(52);
  3715. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__routes_error_ErrorPage__ = __webpack_require__(105);
  3716. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__routes_error_ErrorPage_css__ = __webpack_require__(42);
  3717. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__routes_error_ErrorPage_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_11__routes_error_ErrorPage_css__);
  3718. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__createFetch__ = __webpack_require__(77);
  3719. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__router__ = __webpack_require__(99);
  3720. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__data_models__ = __webpack_require__(82);
  3721. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__data_schema__ = __webpack_require__(85);
  3722. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__assets_json__ = __webpack_require__(137);
  3723. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__assets_json___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_16__assets_json__);
  3724. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_17__my_redux_store_configureStore__ = __webpack_require__(95);
  3725. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__config__ = __webpack_require__(15);
  3726. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_18__config___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_18__config__);
  3727. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_19__my_redux_actions_Runtime_actions__ = __webpack_require__(90);
  3728. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_20__my_redux_actions_UserAuthenticated_actions__ = __webpack_require__(21);
  3729. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_21__my_redux_actions_Localization_actions__ = __webpack_require__(12);
  3730. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_22__client_services_Communication_http_Http_service__ = __webpack_require__(19);
  3731. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_23__utils_socket_worker_SocketWorker__ = __webpack_require__(123);
  3732. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_24__utils_passport_PassportDefined_js__ = __webpack_require__(122);
  3733. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  3734.  
  3735. var _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; };
  3736.  
  3737. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  3738.  
  3739. /**
  3740. * React Starter Kit (https://www.reactstarterkit.com/)
  3741. *
  3742. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  3743. *
  3744. * This source code is licensed under the MIT license found in the
  3745. * LICENSE.txt file in the root directory of this source tree.
  3746. */
  3747.  
  3748.  
  3749.  
  3750.  
  3751.  
  3752.  
  3753.  
  3754.  
  3755.  
  3756.  
  3757.  
  3758.  
  3759.  
  3760.  
  3761.  
  3762.  
  3763.  
  3764.  
  3765.  
  3766.  
  3767. // eslint-disable-line import/no-unresolved
  3768.  
  3769.  
  3770.  
  3771.  
  3772.  
  3773.  
  3774.  
  3775.  
  3776. var app = __WEBPACK_IMPORTED_MODULE_1_express___default()();
  3777.  
  3778.  
  3779.  
  3780.  
  3781. //SocketWorker.startService();
  3782.  
  3783. // let SocketWorkerFile = require('./utils/socket-worker/SocketWorker');
  3784. // let SocketWorker = SocketWorkerFile.default.SocketWorker;
  3785.  
  3786. // let SocketClientFile = require('./client/services/Communication/socket/socket.service');
  3787. // let SocketClient = SocketClientFile.default.SocketService;
  3788. // SocketClient.startService(null);
  3789.  
  3790. //
  3791. // Tell any CSS tooling (such as Material UI) to use all vendor prefixes if the
  3792. // user agent is not known.
  3793. // -----------------------------------------------------------------------------
  3794. global.navigator = global.navigator || {};
  3795. global.navigator.userAgent = global.navigator.userAgent || 'all';
  3796.  
  3797. //
  3798. // Register Node.js middleware
  3799. // -----------------------------------------------------------------------------
  3800. app.use(__WEBPACK_IMPORTED_MODULE_1_express___default.a.static(__WEBPACK_IMPORTED_MODULE_0_path___default.a.join(__dirname, 'public')));
  3801. app.use(__WEBPACK_IMPORTED_MODULE_2_cookie_parser___default()());
  3802. app.use(__WEBPACK_IMPORTED_MODULE_3_body_parser___default.a.urlencoded({ extended: true }));
  3803. app.use(__WEBPACK_IMPORTED_MODULE_3_body_parser___default.a.json());
  3804.  
  3805.  
  3806.  
  3807. __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_24__utils_passport_PassportDefined_js__["a" /* initializePassport */])(app);
  3808.  
  3809. //
  3810. // Register API middleware
  3811. // -----------------------------------------------------------------------------
  3812. app.use('/graphql', __WEBPACK_IMPORTED_MODULE_4_express_graphql___default()(req => ({
  3813. schema: __WEBPACK_IMPORTED_MODULE_15__data_schema__["a" /* default */],
  3814. graphiql: false,
  3815. rootValue: { request: req },
  3816. pretty: false
  3817. })));
  3818.  
  3819. //
  3820. // Register server-side rendering middleware
  3821. // -----------------------------------------------------------------------------
  3822. app.get('*', (() => {
  3823. var _ref = _asyncToGenerator(function* (req, res, next) {
  3824. try {
  3825.  
  3826. console.log("HELLO WORLD");
  3827.  
  3828. const css = new Set();
  3829.  
  3830. const fetch = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_12__createFetch__["a" /* default */])({
  3831. baseUrl: __WEBPACK_IMPORTED_MODULE_18__config___default.a.api.serverUrl,
  3832. cookie: req.headers.cookie
  3833. });
  3834.  
  3835. const initialState = {
  3836. user: req.user || null
  3837. // userAuthenticated : defaultUserState, //Current User Authenticated
  3838. // socketStatus : defaultSocketStatus, //Socket Status
  3839. // localization : defaultLocalization, //Location
  3840. // routerState : defaultRouterState, //Router Arguments
  3841. // testReduxState : defaultTestReduxState,
  3842. };
  3843.  
  3844. const store = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_17__my_redux_store_configureStore__["a" /* default */])(initialState, {
  3845. fetch
  3846. // I should not use `history` on server.. but how I do redirection? follow universal-router
  3847. });
  3848.  
  3849. store.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_19__my_redux_actions_Runtime_actions__["a" /* setRuntimeVariable */])({
  3850. name: 'initialNow',
  3851. value: Date.now()
  3852. }));
  3853.  
  3854. // Global (context) variables that can be easily accessed from any React component
  3855. // https://facebook.github.io/react/docs/context.html
  3856. const context = {
  3857. // Enables critical path CSS rendering
  3858. // https://github.com/kriasoft/isomorphic-style-loader
  3859. insertCss: function (...styles) {
  3860. // eslint-disable-next-line no-underscore-dangle
  3861. styles.forEach(function (style) {
  3862. return css.add(style._getCss());
  3863. });
  3864. },
  3865. fetch,
  3866. // You can access redux through react-redux connect
  3867. store,
  3868. storeSubscription: null
  3869. };
  3870.  
  3871. if (req.path.indexOf("res/") === 1) return show404(app, req.path, res);
  3872.  
  3873. //checking the cookie user
  3874. if (req.headers.cookie) {
  3875.  
  3876. let cookieAnswer = yield __WEBPACK_IMPORTED_MODULE_22__client_services_Communication_http_Http_service__["a" /* default */].checkAuthCookie(req.headers.cookie);
  3877.  
  3878. //console.log("COOOKIE ANSWER", cookieAnswer);
  3879.  
  3880. //we have a registered user already in the cookie
  3881. if ((cookieAnswer.result || false) === true) {
  3882. store.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_20__my_redux_actions_UserAuthenticated_actions__["a" /* newUserAuthenticated */])(cookieAnswer.user));
  3883. }
  3884. }
  3885.  
  3886. const route = yield __WEBPACK_IMPORTED_MODULE_13__router__["a" /* default */].resolve(_extends({}, context, {
  3887. path: req.path,
  3888. query: req.query
  3889. }));
  3890.  
  3891. if (route.status === 404) return show404(app, req.path, res);
  3892.  
  3893. console.log("route:: ", req.path);
  3894. console.log("cookie:: ", req.headers.cookie);
  3895.  
  3896. if (route.redirect) {
  3897. res.redirect(route.status || 302, route.redirect);
  3898. return;
  3899. }
  3900.  
  3901. store.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_21__my_redux_actions_Localization_actions__["a" /* extractIP */])(req));
  3902.  
  3903. // var sleep = require('sleep'); sleep.sleep(5); // sleep for ten seconds
  3904.  
  3905.  
  3906. const data = _extends({}, route);
  3907. data.children = __WEBPACK_IMPORTED_MODULE_6_react_dom_server___default.a.renderToString(_jsx(__WEBPACK_IMPORTED_MODULE_8__client_App__["a" /* default */], {
  3908. context: context,
  3909. store: store
  3910. }, void 0, route.component));
  3911. data.styles = [{ id: 'css', cssText: [...css].join('') }];
  3912. data.scripts = [__WEBPACK_IMPORTED_MODULE_16__assets_json___default.a.vendor.js, __WEBPACK_IMPORTED_MODULE_16__assets_json___default.a.client.js];
  3913. if (__WEBPACK_IMPORTED_MODULE_16__assets_json___default.a[route.chunk]) {
  3914. data.scripts.push(__WEBPACK_IMPORTED_MODULE_16__assets_json___default.a[route.chunk].js);
  3915. }
  3916. data.app = {
  3917. apiUrl: __WEBPACK_IMPORTED_MODULE_18__config___default.a.api.clientUrl,
  3918. state: context.store.getState()
  3919. };
  3920.  
  3921. const html = __WEBPACK_IMPORTED_MODULE_6_react_dom_server___default.a.renderToStaticMarkup(__WEBPACK_IMPORTED_MODULE_5_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_9__client_Html__["a" /* default */], data));
  3922. res.status(route.status || 200);
  3923. res.send(`<!doctype html>${html}`);
  3924. } catch (err) {
  3925. next(err);
  3926. }
  3927. });
  3928.  
  3929. return function (_x, _x2, _x3) {
  3930. return _ref.apply(this, arguments);
  3931. };
  3932. })());
  3933.  
  3934. //
  3935. // Error handling
  3936. // -----------------------------------------------------------------------------
  3937. const pe = new __WEBPACK_IMPORTED_MODULE_7_pretty_error___default.a();
  3938. pe.skipNodeFiles();
  3939. pe.skipPackage('express');
  3940.  
  3941. app.use((err, req, res, next) => {
  3942. // eslint-disable-line no-unused-vars
  3943. console.error(pe.render(err));
  3944. const html = __WEBPACK_IMPORTED_MODULE_6_react_dom_server___default.a.renderToStaticMarkup(_jsx(__WEBPACK_IMPORTED_MODULE_9__client_Html__["a" /* default */], {
  3945. title: 'Internal Server Error',
  3946. description: err.message,
  3947. styles: [{ id: 'css', cssText: __WEBPACK_IMPORTED_MODULE_11__routes_error_ErrorPage_css___default.a._getCss() }]
  3948. }, void 0, __WEBPACK_IMPORTED_MODULE_6_react_dom_server___default.a.renderToString(_jsx(__WEBPACK_IMPORTED_MODULE_10__routes_error_ErrorPage__["a" /* ErrorPageWithoutStyle */], {
  3949. error: err
  3950. }))));
  3951. res.status(err.status || 500);
  3952. res.send(`<!doctype html>${html}`);
  3953. });
  3954.  
  3955. //
  3956. // Launch the server
  3957. // -----------------------------------------------------------------------------
  3958. __WEBPACK_IMPORTED_MODULE_14__data_models__["a" /* default */].sync().catch(err => console.error(err.stack)).then(() => {
  3959. app.listen(__WEBPACK_IMPORTED_MODULE_18__config___default.a.port, () => {
  3960. console.info(`The server is running at http://localhost:${__WEBPACK_IMPORTED_MODULE_18__config___default.a.port}/`);
  3961. });
  3962. });
  3963.  
  3964. function show404(app, path, res) {
  3965. let Error404 = __webpack_require__(54);
  3966. Error404.show404(app, path, res);
  3967. }
  3968.  
  3969. /***/ }),
  3970. /* 50 */
  3971. /***/ (function(module, exports) {
  3972.  
  3973. module.exports = require("babel-polyfill");
  3974.  
  3975. /***/ }),
  3976. /* 51 */
  3977. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  3978.  
  3979. "use strict";
  3980. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  3981. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  3982. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  3983. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  3984. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_redux__ = __webpack_require__(2);
  3985. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_redux__);
  3986. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__my_redux_actions_Localization_actions__ = __webpack_require__(12);
  3987. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_Communication_socket_Socket_service__ = __webpack_require__(10);
  3988. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__services_REST_authentication_Auth_service__ = __webpack_require__(3);
  3989. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__services_REST_forums_forums_Forums_service__ = __webpack_require__(14);
  3990. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__services_REST_forums_content_Content_service__ = __webpack_require__(20);
  3991. var _class, _temp;
  3992.  
  3993. var _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; };
  3994.  
  3995. /**
  3996. * React Starter Kit (https://www.reactstarterkit.com/)
  3997. *
  3998. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  3999. *
  4000. * This source code is licensed under the MIT license found in the
  4001. * LICENSE.txt file in the root directory of this source tree.
  4002. */
  4003.  
  4004.  
  4005.  
  4006.  
  4007.  
  4008.  
  4009.  
  4010. //Creating the Socket Service
  4011.  
  4012.  
  4013.  
  4014.  
  4015.  
  4016.  
  4017.  
  4018. const ContextType = _extends({
  4019. // Enables critical path CSS rendering
  4020. // https://github.com/kriasoft/isomorphic-style-loader
  4021. insertCss: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
  4022. // Universal HTTP client
  4023. fetch: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.func.isRequired,
  4024. // Integrate Redux
  4025. // http://redux.js.org/docs/basics/UsageWithReact.html
  4026. SocketService: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object,
  4027. AuthService: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
  4028.  
  4029. }, __WEBPACK_IMPORTED_MODULE_2_react_redux__["Provider"].childContextTypes);
  4030.  
  4031. /**
  4032. * The top-level React component setting context (global) variables
  4033. * that can be accessed from all the child components.
  4034. *
  4035. * https://facebook.github.io/react/docs/context.html
  4036. *
  4037. * Usage example:
  4038. *
  4039. * const context = {
  4040. * history: createBrowserHistory(),
  4041. * store: createStore(),
  4042. * };
  4043. *
  4044. * ReactDOM.render(
  4045. * <App context={context}>
  4046. * <Layout>
  4047. * <LandingPage />
  4048. * </Layout>
  4049. * </App>,
  4050. * container,
  4051. * );
  4052. */
  4053. let App = (_temp = _class = class App extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.PureComponent {
  4054.  
  4055. getChildContext() {
  4056. return _extends({}, this.props.context, {
  4057. SocketService: __WEBPACK_IMPORTED_MODULE_4__services_Communication_socket_Socket_service__["a" /* default */],
  4058. AuthService: __WEBPACK_IMPORTED_MODULE_5__services_REST_authentication_Auth_service__["a" /* default */]
  4059. });
  4060. }
  4061.  
  4062. constructor(props) {
  4063.  
  4064. super(props);
  4065.  
  4066. this.bInitialized = false;
  4067. this.AuthService = null;
  4068. }
  4069.  
  4070. initializeClientApp() {
  4071.  
  4072. if (this.bInitialized) return;
  4073. this.bInitialized = true;
  4074.  
  4075. console.log("APP", this.props);
  4076.  
  4077. //Async Localization in case I don't have anything there
  4078. this.props.context.store.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__my_redux_actions_Localization_actions__["b" /* startLocalizationFetchingAsync */])());
  4079.  
  4080. //Creating the Socket Service
  4081. __WEBPACK_IMPORTED_MODULE_4__services_Communication_socket_Socket_service__["a" /* default */].startService(this.props.context.store.dispatch);
  4082.  
  4083. __WEBPACK_IMPORTED_MODULE_5__services_REST_authentication_Auth_service__["a" /* default */].startService(this.props.context.store.dispatch, this.props.context.store.getState().userAuthenticated);
  4084.  
  4085. __WEBPACK_IMPORTED_MODULE_6__services_REST_forums_forums_Forums_service__["a" /* default */].startService(this.props.context.store.dispatch);
  4086.  
  4087. __WEBPACK_IMPORTED_MODULE_7__services_REST_forums_content_Content_service__["a" /* default */].startService(this.props.context.store.dispatch, this.props.context.store.getState().routerState);
  4088. }
  4089.  
  4090. componentDidMount() {
  4091.  
  4092. requestAnimationFrame(() => {
  4093. //Make sure it is on client only
  4094.  
  4095. this.setState({ appIsMounted: true });
  4096. });
  4097. }
  4098.  
  4099. render() {
  4100. if (false) {
  4101. console.log("APP RENDERED FIRST");
  4102. this.initializeClientApp();
  4103. }
  4104. // NOTE: If you need to add or modify header, footer etc. of the app,
  4105. // please do that inside the Layout component.
  4106. return __WEBPACK_IMPORTED_MODULE_0_react___default.a.Children.only(this.props.children);
  4107. }
  4108.  
  4109. }, _class.childContextTypes = ContextType, _temp);
  4110.  
  4111.  
  4112. /* harmony default export */ __webpack_exports__["a"] = (App);
  4113.  
  4114. /***/ }),
  4115. /* 52 */
  4116. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4117.  
  4118. "use strict";
  4119. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  4120. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  4121. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  4122. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  4123. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_serialize_javascript__ = __webpack_require__(158);
  4124. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_serialize_javascript___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_serialize_javascript__);
  4125. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(15);
  4126. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__config__);
  4127. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_redux__ = __webpack_require__(2);
  4128. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_redux__);
  4129. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  4130.  
  4131. /**
  4132. * React Starter Kit (https://www.reactstarterkit.com/)
  4133. *
  4134. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  4135. *
  4136. * This source code is licensed under the MIT license found in the
  4137. * LICENSE.txt file in the root directory of this source tree.
  4138. */
  4139.  
  4140.  
  4141.  
  4142.  
  4143.  
  4144.  
  4145.  
  4146.  
  4147. /* eslint-disable react/no-danger */
  4148.  
  4149. var _ref = _jsx('meta', {
  4150. charSet: 'utf-8'
  4151. });
  4152.  
  4153. var _ref2 = _jsx('meta', {
  4154. httpEquiv: 'x-ua-compatible',
  4155. content: 'ie=edge'
  4156. });
  4157.  
  4158. var _ref3 = _jsx('meta', {
  4159. name: 'viewport',
  4160. content: 'width=device-width, initial-scale=1'
  4161. });
  4162.  
  4163. var _ref4 = _jsx('link', {
  4164. rel: 'apple-touch-icon',
  4165. href: 'apple-touch-icon.png'
  4166. });
  4167.  
  4168. var _ref5 = _jsx('link', {
  4169. rel: 'stylesheet',
  4170. type: 'text/css',
  4171. href: 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css'
  4172. });
  4173.  
  4174. var _ref6 = _jsx('link', {
  4175. rel: 'stylesheet',
  4176. type: 'text/css',
  4177. href: 'https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css'
  4178. });
  4179.  
  4180. var _ref7 = _jsx('link', {
  4181. rel: 'stylesheet',
  4182. type: 'text/css',
  4183. href: 'https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css'
  4184. });
  4185.  
  4186. var _ref8 = _jsx('link', {
  4187. rel: 'stylesheet',
  4188. type: 'text/css',
  4189. href: '/res/template/css/style.css'
  4190. });
  4191.  
  4192. var _ref9 = _jsx('link', {
  4193. rel: 'stylesheet',
  4194. type: 'text/css',
  4195. href: '/res/components/react-select.css'
  4196. });
  4197.  
  4198. var _ref10 = _jsx('link', {
  4199. rel: 'stylesheet',
  4200. type: 'text/css',
  4201. href: '/res/customSkyHubStyle.css'
  4202. });
  4203.  
  4204. var _ref11 = _jsx('link', {
  4205. rel: 'stylesheet',
  4206. type: 'text/css',
  4207. href: 'http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/css/msdropdown/flags.css'
  4208. });
  4209.  
  4210. var _ref12 = _jsx('link', {
  4211. rel: 'stylesheet',
  4212. type: 'text/css',
  4213. href: 'https://cdnjs.cloudflare.com/ajax/libs/bootstrap-social/5.1.1/bootstrap-social.min.css'
  4214. });
  4215.  
  4216. var _ref13 = _jsx('script', {
  4217. src: 'https://code.jquery.com/jquery-3.2.1.min.js'
  4218. });
  4219.  
  4220. var _ref14 = _jsx('script', {
  4221. src: 'https://cdnjs.cloudflare.com/ajax/libs/metisMenu/2.7.0/metisMenu.min.js'
  4222. });
  4223.  
  4224. var _ref15 = _jsx('script', {
  4225. src: 'https://cdnjs.cloudflare.com/ajax/libs/jQuery-slimScroll/1.3.8/jquery.slimscroll.min.js'
  4226. });
  4227.  
  4228. var _ref16 = _jsx('script', {
  4229. src: 'https://cdnjs.cloudflare.com/ajax/libs/blueimp-gallery/2.25.1/js/blueimp-gallery.min.js'
  4230. });
  4231.  
  4232. var _ref17 = _jsx('script', {
  4233. src: 'https://www.google-analytics.com/analytics.js',
  4234. async: true,
  4235. defer: true
  4236. });
  4237.  
  4238. var _ref18 = _jsx('script', {
  4239. src: 'https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js'
  4240. });
  4241.  
  4242. var _ref19 = _jsx('script', {
  4243. src: '/res/template/js/inspinia.js'
  4244. });
  4245.  
  4246. var _ref20 = _jsx('script', {
  4247. src: '/res/template/js/plugins/pace/pace.min.js'
  4248. });
  4249.  
  4250. let Html = function () {
  4251. function Html(props) {
  4252. const { title, description, styles, scripts, app, children } = props;
  4253.  
  4254. return _jsx('html', {
  4255. className: 'no-js',
  4256. lang: 'en'
  4257. }, void 0, _jsx('head', {}, void 0, _ref, _ref2, _jsx('title', {}, void 0, title), _jsx('meta', {
  4258. name: 'description',
  4259. content: description
  4260. }), _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, styles.map(style => _jsx('style', {
  4261. id: style.id,
  4262. dangerouslySetInnerHTML: { __html: style.cssText }
  4263. }, style.id))), _jsx('body', {
  4264. style: { margin: 0 },
  4265. className: ' mini-navbar pace-done'
  4266. }, void 0, _jsx('div', {
  4267. id: 'app',
  4268. dangerouslySetInnerHTML: { __html: children }
  4269. }), _jsx('script', {
  4270. dangerouslySetInnerHTML: { __html: `window.App=${__WEBPACK_IMPORTED_MODULE_2_serialize_javascript___default()(app)}` }
  4271. }), scripts.map(script => _jsx('script', {
  4272. src: script
  4273. }, script)), __WEBPACK_IMPORTED_MODULE_3__config___default.a.analytics.googleTrackingId && _jsx('script', {
  4274. dangerouslySetInnerHTML: { __html: 'window.ga=function(){ga.q.push(arguments)};ga.q=[];ga.l=+new Date;' + `ga('create','${__WEBPACK_IMPORTED_MODULE_3__config___default.a.analytics.googleTrackingId}','auto');ga('send','pageview')` }
  4275. }), __WEBPACK_IMPORTED_MODULE_3__config___default.a.analytics.googleTrackingId && _ref17), _ref18, _ref19, _ref20);
  4276. }
  4277.  
  4278. Html.defaultProps = {
  4279. styles: [],
  4280. scripts: []
  4281. };
  4282. return Html;
  4283. }();
  4284.  
  4285. /* harmony default export */ __webpack_exports__["a"] = (Html);
  4286.  
  4287. /***/ }),
  4288. /* 53 */
  4289. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4290.  
  4291. "use strict";
  4292. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  4293. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  4294. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(7);
  4295. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles__);
  4296. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Feedback_css__ = __webpack_require__(130);
  4297. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Feedback_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2__Feedback_css__);
  4298. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  4299.  
  4300. /**
  4301. * React Starter Kit (https://www.reactstarterkit.com/)
  4302. *
  4303. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  4304. *
  4305. * This source code is licensed under the MIT license found in the
  4306. * LICENSE.txt file in the root directory of this source tree.
  4307. */
  4308.  
  4309.  
  4310.  
  4311.  
  4312.  
  4313. let Feedback = function () {
  4314. function Feedback(props) {
  4315. return _jsx('div', {
  4316. className: __WEBPACK_IMPORTED_MODULE_2__Feedback_css___default.a.root
  4317. }, void 0, _jsx('div', {
  4318. className: __WEBPACK_IMPORTED_MODULE_2__Feedback_css___default.a.container
  4319. }, void 0, _jsx('a', {
  4320. className: __WEBPACK_IMPORTED_MODULE_2__Feedback_css___default.a.link,
  4321. href: 'https://gitter.im/kriasoft/react-starter-kit'
  4322. }, void 0, 'Ask a question'), _jsx('span', {
  4323. className: __WEBPACK_IMPORTED_MODULE_2__Feedback_css___default.a.spacer
  4324. }, void 0, '|'), _jsx('a', {
  4325. className: __WEBPACK_IMPORTED_MODULE_2__Feedback_css___default.a.link,
  4326. href: 'https://github.com/kriasoft/react-starter-kit/issues/new'
  4327. }, void 0, 'Report an issue')));
  4328. }
  4329.  
  4330. return Feedback;
  4331. }();
  4332.  
  4333. /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles___default()(__WEBPACK_IMPORTED_MODULE_2__Feedback_css___default.a)(Feedback));
  4334.  
  4335. /***/ }),
  4336. /* 54 */
  4337. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4338.  
  4339. "use strict";
  4340. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  4341. /* harmony export (immutable) */ __webpack_exports__["show404"] = show404;
  4342. function show404(app, path, res) {
  4343.  
  4344. app.engine('.html', __webpack_require__(143).__express);
  4345. app.set('views', __dirname + '/../src/client/components/Template/404');
  4346. app.set('view engine', 'html');
  4347.  
  4348. //console.log("404",path);
  4349.  
  4350. res.render('404.html', {
  4351. filePath: path
  4352. });
  4353. }
  4354.  
  4355. /***/ }),
  4356. /* 55 */
  4357. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4358.  
  4359. "use strict";
  4360. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  4361. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  4362. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Link_Link__ = __webpack_require__(5);
  4363. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types__ = __webpack_require__(1);
  4364. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_prop_types__);
  4365. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Header_Header__ = __webpack_require__(63);
  4366. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Left_sidebar_LeftSidebar__ = __webpack_require__(59);
  4367. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__Right_sidebar_RightSidebar__ = __webpack_require__(60);
  4368. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__Content_Content__ = __webpack_require__(58);
  4369. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__Footer_Footer__ = __webpack_require__(61);
  4370. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__Chat_Chat__ = __webpack_require__(56);
  4371. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__Chat_ChatButton__ = __webpack_require__(57);
  4372. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__modules_users_authentication_modals_Authentication_modal__ = __webpack_require__(75);
  4373. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__my_redux_actions_RouterState_actions_js__ = __webpack_require__(33);
  4374. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_redux__ = __webpack_require__(2);
  4375. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_12_react_redux__);
  4376. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  4377.  
  4378. var _class, _temp2;
  4379.  
  4380. /**
  4381. * React Starter Kit (https://www.reactstarterkit.com/)
  4382. *
  4383. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  4384. *
  4385. * This source code is licensed under the MIT license found in the
  4386. * LICENSE.txt file in the root directory of this source tree.
  4387. */
  4388.  
  4389.  
  4390.  
  4391.  
  4392.  
  4393.  
  4394.  
  4395.  
  4396.  
  4397.  
  4398.  
  4399.  
  4400.  
  4401.  
  4402.  
  4403.  
  4404.  
  4405.  
  4406.  
  4407.  
  4408.  
  4409. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_4__Left_sidebar_LeftSidebar__["a" /* default */], {});
  4410.  
  4411. var _ref2 = _jsx(__WEBPACK_IMPORTED_MODULE_3__Header_Header__["a" /* default */], {});
  4412.  
  4413. var _ref3 = _jsx(__WEBPACK_IMPORTED_MODULE_7__Footer_Footer__["a" /* default */], {});
  4414.  
  4415. var _ref4 = _jsx(__WEBPACK_IMPORTED_MODULE_8__Chat_Chat__["a" /* default */], {});
  4416.  
  4417. var _ref5 = _jsx(__WEBPACK_IMPORTED_MODULE_9__Chat_ChatButton__["a" /* default */], {});
  4418.  
  4419. var _ref6 = _jsx(__WEBPACK_IMPORTED_MODULE_5__Right_sidebar_RightSidebar__["a" /* default */], {});
  4420.  
  4421. let Body = (_temp2 = _class = class Body extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  4422. constructor(...args) {
  4423. var _temp;
  4424.  
  4425. return _temp = super(...args), this.refAuthenticationModal = null, _temp;
  4426. }
  4427.  
  4428. getChildContext() {
  4429. return {
  4430. refAuthenticationModal: this.refAuthenticationModal
  4431. };
  4432. }
  4433.  
  4434. componentDidMount() {
  4435. requestAnimationFrame(() => {
  4436. //Make sure it is on client only
  4437.  
  4438. this.props.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_11__my_redux_actions_RouterState_actions_js__["a" /* setAuthenticationModalElement */])(this.refAuthenticationModal));
  4439. });
  4440. }
  4441.  
  4442. render() {
  4443.  
  4444. //console.log("XXXXXXXXXXXXXXXXXXXXXXXXXX BODYY", this);
  4445.  
  4446. return _jsx('div', {}, void 0, _ref, _jsx('div', {
  4447. id: 'page-wrapper',
  4448. className: 'gray-bg',
  4449. style: { minHeight: 785 }
  4450. }, void 0, _ref2, _jsx('div', {
  4451. className: 'container',
  4452. style: { padding: 0 }
  4453. }, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_6__Content_Content__["a" /* default */], {}, void 0, this.props.children, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_10__modules_users_authentication_modals_Authentication_modal__["a" /* default */], { ref: c => this.refAuthenticationModal = c })))), _ref3, _ref4, _ref5, _ref6);
  4454. }
  4455. }, _class.childContextTypes = {
  4456. refAuthenticationModal: __WEBPACK_IMPORTED_MODULE_2_prop_types___default.a.any
  4457. }, _temp2);
  4458.  
  4459.  
  4460. function mapState(state) {
  4461. return {
  4462. userAuthenticated: state.userAuthenticated,
  4463. localization: state.localization
  4464. };
  4465. };
  4466.  
  4467. function mapDispatch(dispatch) {
  4468. return {
  4469. dispatch: dispatch
  4470. };
  4471. };
  4472.  
  4473. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_12_react_redux__["connect"])(mapState, mapDispatch)(Body));
  4474.  
  4475. /***/ }),
  4476. /* 56 */
  4477. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4478.  
  4479. "use strict";
  4480. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  4481. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  4482. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  4483. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  4484. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  4485.  
  4486. /**
  4487. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/9/2017.
  4488. * (C) BIT TECHNOLOGIES
  4489. */
  4490.  
  4491.  
  4492.  
  4493.  
  4494. var _ref = _jsx('div', {
  4495. className: 'heading',
  4496. draggable: 'true'
  4497. }, void 0, _jsx('small', {
  4498. className: 'chat-date pull-right'
  4499. }, void 0, '02.19.2015'), 'Small chat');
  4500.  
  4501. var _ref2 = _jsx('div', {
  4502. className: 'left'
  4503. }, void 0, _jsx('div', {
  4504. className: 'author-name'
  4505. }, void 0, 'Monica Jackson', _jsx('small', {
  4506. className: 'chat-date'
  4507. }, void 0, '10:02 am')), _jsx('div', {
  4508. className: 'chat-message active'
  4509. }, void 0, 'Lorem Ipsum is simply dummy text input.'));
  4510.  
  4511. var _ref3 = _jsx('div', {
  4512. className: 'right'
  4513. }, void 0, _jsx('div', {
  4514. className: 'author-name'
  4515. }, void 0, 'Mick Smith', _jsx('small', {
  4516. className: 'chat-date'
  4517. }, void 0, '11:24 am')), _jsx('div', {
  4518. className: 'chat-message'
  4519. }, void 0, 'Lorem Ipsum is simpl.'));
  4520.  
  4521. var _ref4 = _jsx('div', {
  4522. className: 'left'
  4523. }, void 0, _jsx('div', {
  4524. className: 'author-name'
  4525. }, void 0, 'Alice Novak', _jsx('small', {
  4526. className: 'chat-date'
  4527. }, void 0, '08:45 pm')), _jsx('div', {
  4528. className: 'chat-message active'
  4529. }, void 0, 'Check this stock char.'));
  4530.  
  4531. var _ref5 = _jsx('div', {
  4532. className: 'right'
  4533. }, void 0, _jsx('div', {
  4534. className: 'author-name'
  4535. }, void 0, 'Anna Lamson', _jsx('small', {
  4536. className: 'chat-date'
  4537. }, void 0, '11:24 am')), _jsx('div', {
  4538. className: 'chat-message'
  4539. }, void 0, 'The standard chunk of Lorem Ipsum'));
  4540.  
  4541. var _ref6 = _jsx('div', {
  4542. className: 'left'
  4543. }, void 0, _jsx('div', {
  4544. className: 'author-name'
  4545. }, void 0, 'Mick Lane', _jsx('small', {
  4546. className: 'chat-date'
  4547. }, void 0, '08:45 pm')), _jsx('div', {
  4548. className: 'chat-message active'
  4549. }, void 0, 'I belive that. Lorem Ipsum is simply dummy text.'));
  4550.  
  4551. var _ref7 = _jsx('div', {
  4552. className: 'form-chat'
  4553. }, void 0, _jsx('div', {
  4554. className: 'input-group input-group-sm'
  4555. }, void 0, _jsx('input', {
  4556. type: 'text',
  4557. className: 'form-control'
  4558. }), _jsx('span', {
  4559. className: 'input-group-btn'
  4560. }, void 0, _jsx('button', {
  4561. className: 'btn btn-primary',
  4562. type: 'button'
  4563. }, void 0, ' Send '))));
  4564.  
  4565. let Chat = function () {
  4566. function Chat(props) {
  4567. return _jsx('div', {
  4568. className: 'small-chat-box fadeInRight animated'
  4569. }, void 0, _ref, _jsx('div', {
  4570. className: 'slimScrollDiv',
  4571. style: { position: "relative", overflow: "hidden", width: "auto", height: 234 }
  4572. }, void 0, _jsx('div', {
  4573. className: 'content',
  4574. style: { overflow: "hidden", width: "auto", height: 234 }
  4575. }, void 0, _ref2, _ref3, _ref4, _ref5, _ref6), _jsx('div', {
  4576. className: 'slimScrollBar',
  4577. style: { background: 0, width: 7, position: "absolute", top: 0, opacity: 0.4, display: "block", borderRadius: 7, zIndex: 99, right: 1 }
  4578. }, void 0), _jsx('div', {
  4579. className: 'slimScrollRail',
  4580. style: { width: 7, height: "100%", position: "absolute", top: 0, display: "none", borderRadius: 7, background: "#333333", opacity: 0.4, zIndex: 90, right: 1 }
  4581. }, void 0)), _ref7);
  4582. }
  4583.  
  4584. return Chat;
  4585. }();
  4586.  
  4587. /* harmony default export */ __webpack_exports__["a"] = (Chat);
  4588.  
  4589. /***/ }),
  4590. /* 57 */
  4591. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4592.  
  4593. "use strict";
  4594. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  4595. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  4596. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  4597. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  4598. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  4599.  
  4600. /**
  4601. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/9/2017.
  4602. * (C) BIT TECHNOLOGIES
  4603. */
  4604.  
  4605.  
  4606.  
  4607.  
  4608. var _ref = _jsx('div', {
  4609. id: 'small-chat'
  4610. }, void 0, _jsx('span', {
  4611. className: 'badge badge-warning pull-right'
  4612. }, void 0, '5'), _jsx('a', {
  4613. className: 'open-small-chat'
  4614. }, void 0, _jsx('i', {
  4615. className: 'fa fa-comments'
  4616. })));
  4617.  
  4618. let ChatButton = function () {
  4619. function ChatButton(props) {
  4620. return _ref;
  4621. }
  4622.  
  4623. return ChatButton;
  4624. }();
  4625.  
  4626. /* harmony default export */ __webpack_exports__["a"] = (ChatButton);
  4627.  
  4628. /***/ }),
  4629. /* 58 */
  4630. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4631.  
  4632. "use strict";
  4633. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  4634. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  4635. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  4636. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  4637. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  4638.  
  4639. /**
  4640. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/8/2017.
  4641. * (C) BIT TECHNOLOGIES
  4642. */
  4643.  
  4644.  
  4645.  
  4646.  
  4647. let Content = function () {
  4648. function Content(props) {
  4649. return _jsx('div', {
  4650. className: 'wrapper wrapper-content'
  4651. }, void 0, _jsx('div', {
  4652. className: 'col-xl-8 col-xl-offset-2 col-lg-10 col-lg-offset-1 col-md-10 col-md-offset-1 col-sm-10 col-sm-offset-1 col-xs-12',
  4653. style: { padding: 0 }
  4654. }, void 0, props.children));
  4655. }
  4656.  
  4657. return Content;
  4658. }();
  4659.  
  4660. /* harmony default export */ __webpack_exports__["a"] = (Content);
  4661.  
  4662. /***/ }),
  4663. /* 59 */
  4664. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4665.  
  4666. "use strict";
  4667. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  4668. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  4669. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  4670. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  4671. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_redux__ = __webpack_require__(2);
  4672. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_redux__);
  4673. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  4674.  
  4675. /**
  4676. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/8/2017.
  4677. * (C) BIT TECHNOLOGIES
  4678. */
  4679.  
  4680.  
  4681.  
  4682.  
  4683.  
  4684.  
  4685. var _ref = _jsx('div', {
  4686. className: 'logo-element'
  4687. }, void 0, 'IN+');
  4688.  
  4689. var _ref2 = _jsx('li', {
  4690. className: 'active'
  4691. }, void 0, _jsx('a', {
  4692. href: 'index-2.html'
  4693. }, void 0, _jsx('i', {
  4694. className: 'fa fa-th-large'
  4695. }), ' ', _jsx('span', {
  4696. className: 'nav-label'
  4697. }, void 0, 'Dashboards'), ' ', _jsx('span', {
  4698. className: 'fa arrow'
  4699. })), _jsx('ul', {
  4700. className: 'nav nav-second-level collapse in'
  4701. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  4702. href: 'index-2.html'
  4703. }, void 0, 'Dashboard v.1')), _jsx('li', {
  4704. className: 'active'
  4705. }, void 0, _jsx('a', {
  4706. href: 'dashboard_2.html'
  4707. }, void 0, 'Dashboard v.2')), _jsx('li', {}, void 0, _jsx('a', {
  4708. href: 'dashboard_3.html'
  4709. }, void 0, 'Dashboard v.3')), _jsx('li', {}, void 0, _jsx('a', {
  4710. href: 'dashboard_4_1.html'
  4711. }, void 0, 'Dashboard v.4')), _jsx('li', {}, void 0, _jsx('a', {
  4712. href: 'dashboard_5.html'
  4713. }, void 0, 'Dashboard v.5 '))));
  4714.  
  4715. var _ref3 = _jsx('li', {}, void 0, _jsx('a', {
  4716. href: 'layouts.html'
  4717. }, void 0, _jsx('i', {
  4718. className: 'fa fa-diamond'
  4719. }), ' ', _jsx('span', {
  4720. className: 'nav-label'
  4721. }, void 0, 'Layouts')));
  4722.  
  4723. var _ref4 = _jsx('li', {}, void 0, _jsx('a', {
  4724. href: '#'
  4725. }, void 0, _jsx('i', {
  4726. className: 'fa fa-bar-chart-o'
  4727. }), ' ', _jsx('span', {
  4728. className: 'nav-label'
  4729. }, void 0, 'Graphs'), _jsx('span', {
  4730. className: 'fa arrow'
  4731. })), _jsx('ul', {
  4732. className: 'nav nav-second-level collapse'
  4733. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  4734. href: 'graph_flot.html'
  4735. }, void 0, 'Flot Charts')), _jsx('li', {}, void 0, _jsx('a', {
  4736. href: 'graph_morris.html'
  4737. }, void 0, 'Morris.js Charts')), _jsx('li', {}, void 0, _jsx('a', {
  4738. href: 'graph_rickshaw.html'
  4739. }, void 0, 'Rickshaw Charts')), _jsx('li', {}, void 0, _jsx('a', {
  4740. href: 'graph_chartjs.html'
  4741. }, void 0, 'Chart.js')), _jsx('li', {}, void 0, _jsx('a', {
  4742. href: 'graph_chartist.html'
  4743. }, void 0, 'Chartist')), _jsx('li', {}, void 0, _jsx('a', {
  4744. href: 'c3.html'
  4745. }, void 0, 'c3 charts')), _jsx('li', {}, void 0, _jsx('a', {
  4746. href: 'graph_peity.html'
  4747. }, void 0, 'Peity Charts')), _jsx('li', {}, void 0, _jsx('a', {
  4748. href: 'graph_sparkline.html'
  4749. }, void 0, 'Sparkline Charts'))));
  4750.  
  4751. var _ref5 = _jsx('li', {}, void 0, _jsx('a', {
  4752. href: 'mailbox.html'
  4753. }, void 0, _jsx('i', {
  4754. className: 'fa fa-envelope'
  4755. }), ' ', _jsx('span', {
  4756. className: 'nav-label'
  4757. }, void 0, 'Mailbox '), _jsx('span', {
  4758. className: 'label label-warning pull-right'
  4759. }, void 0, '16/24')), _jsx('ul', {
  4760. className: 'nav nav-second-level collapse'
  4761. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  4762. href: 'mailbox.html'
  4763. }, void 0, 'Inbox')), _jsx('li', {}, void 0, _jsx('a', {
  4764. href: 'mail_detail.html'
  4765. }, void 0, 'Email view')), _jsx('li', {}, void 0, _jsx('a', {
  4766. href: 'mail_compose.html'
  4767. }, void 0, 'Compose email')), _jsx('li', {}, void 0, _jsx('a', {
  4768. href: 'email_template.html'
  4769. }, void 0, 'Email templates'))));
  4770.  
  4771. var _ref6 = _jsx('li', {}, void 0, _jsx('a', {
  4772. href: 'metrics.html'
  4773. }, void 0, _jsx('i', {
  4774. className: 'fa fa-pie-chart'
  4775. }), ' ', _jsx('span', {
  4776. className: 'nav-label'
  4777. }, void 0, 'Metrics'), ' '));
  4778.  
  4779. var _ref7 = _jsx('li', {}, void 0, _jsx('a', {
  4780. href: 'widgets.html'
  4781. }, void 0, _jsx('i', {
  4782. className: 'fa fa-flask'
  4783. }), ' ', _jsx('span', {
  4784. className: 'nav-label'
  4785. }, void 0, 'Widgets')));
  4786.  
  4787. var _ref8 = _jsx('li', {}, void 0, _jsx('a', {
  4788. href: '#'
  4789. }, void 0, _jsx('i', {
  4790. className: 'fa fa-edit'
  4791. }), ' ', _jsx('span', {
  4792. className: 'nav-label'
  4793. }, void 0, 'Forms'), _jsx('span', {
  4794. className: 'fa arrow'
  4795. })), _jsx('ul', {
  4796. className: 'nav nav-second-level collapse'
  4797. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  4798. href: 'form_basic.html'
  4799. }, void 0, 'Basic form')), _jsx('li', {}, void 0, _jsx('a', {
  4800. href: 'form_advanced.html'
  4801. }, void 0, 'Advanced Plugins')), _jsx('li', {}, void 0, _jsx('a', {
  4802. href: 'form_wizard.html'
  4803. }, void 0, 'Wizard')), _jsx('li', {}, void 0, _jsx('a', {
  4804. href: 'form_file_upload.html'
  4805. }, void 0, 'File Upload')), _jsx('li', {}, void 0, _jsx('a', {
  4806. href: 'form_editors.html'
  4807. }, void 0, 'Text Editor')), _jsx('li', {}, void 0, _jsx('a', {
  4808. href: 'form_autocomplete.html'
  4809. }, void 0, 'Autocomplete')), _jsx('li', {}, void 0, _jsx('a', {
  4810. href: 'form_markdown.html'
  4811. }, void 0, 'Markdown'))));
  4812.  
  4813. var _ref9 = _jsx('li', {}, void 0, _jsx('a', {
  4814. href: '#'
  4815. }, void 0, _jsx('i', {
  4816. className: 'fa fa-desktop'
  4817. }), ' ', _jsx('span', {
  4818. className: 'nav-label'
  4819. }, void 0, 'App Views'), ' ', _jsx('span', {
  4820. className: 'pull-right label label-primary'
  4821. }, void 0, 'SPECIAL')), _jsx('ul', {
  4822. className: 'nav nav-second-level collapse'
  4823. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  4824. href: 'contacts.html'
  4825. }, void 0, 'Contacts')), _jsx('li', {}, void 0, _jsx('a', {
  4826. href: 'profile.html'
  4827. }, void 0, 'Profile')), _jsx('li', {}, void 0, _jsx('a', {
  4828. href: 'profile_2.html'
  4829. }, void 0, 'Profile v.2')), _jsx('li', {}, void 0, _jsx('a', {
  4830. href: 'contacts_2.html'
  4831. }, void 0, 'Contacts v.2')), _jsx('li', {}, void 0, _jsx('a', {
  4832. href: 'projects.html'
  4833. }, void 0, 'Projects')), _jsx('li', {}, void 0, _jsx('a', {
  4834. href: 'project_detail.html'
  4835. }, void 0, 'Project detail')), _jsx('li', {}, void 0, _jsx('a', {
  4836. href: 'activity_stream.html'
  4837. }, void 0, 'Activity stream')), _jsx('li', {}, void 0, _jsx('a', {
  4838. href: 'teams_board.html'
  4839. }, void 0, 'Teams board')), _jsx('li', {}, void 0, _jsx('a', {
  4840. href: 'social_feed.html'
  4841. }, void 0, 'Social feed')), _jsx('li', {}, void 0, _jsx('a', {
  4842. href: 'clients.html'
  4843. }, void 0, 'Clients')), _jsx('li', {}, void 0, _jsx('a', {
  4844. href: 'full_height.html'
  4845. }, void 0, 'Outlook view')), _jsx('li', {}, void 0, _jsx('a', {
  4846. href: 'vote_list.html'
  4847. }, void 0, 'Vote list')), _jsx('li', {}, void 0, _jsx('a', {
  4848. href: 'file_manager.html'
  4849. }, void 0, 'File manager')), _jsx('li', {}, void 0, _jsx('a', {
  4850. href: 'calendar.html'
  4851. }, void 0, 'Calendar')), _jsx('li', {}, void 0, _jsx('a', {
  4852. href: 'issue_tracker.html'
  4853. }, void 0, 'Issue tracker')), _jsx('li', {}, void 0, _jsx('a', {
  4854. href: 'blog.html'
  4855. }, void 0, 'Blog')), _jsx('li', {}, void 0, _jsx('a', {
  4856. href: 'article.html'
  4857. }, void 0, 'Article')), _jsx('li', {}, void 0, _jsx('a', {
  4858. href: 'faq.html'
  4859. }, void 0, 'FAQ')), _jsx('li', {}, void 0, _jsx('a', {
  4860. href: 'timeline.html'
  4861. }, void 0, 'Timeline')), _jsx('li', {}, void 0, _jsx('a', {
  4862. href: 'pin_board.html'
  4863. }, void 0, 'Pin board'))));
  4864.  
  4865. var _ref10 = _jsx('li', {}, void 0, _jsx('a', {
  4866. href: '#'
  4867. }, void 0, _jsx('i', {
  4868. className: 'fa fa-files-o'
  4869. }), ' ', _jsx('span', {
  4870. className: 'nav-label'
  4871. }, void 0, 'Other Pages'), _jsx('span', {
  4872. className: 'fa arrow'
  4873. })), _jsx('ul', {
  4874. className: 'nav nav-second-level collapse'
  4875. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  4876. href: 'search_results.html'
  4877. }, void 0, 'Search results')), _jsx('li', {}, void 0, _jsx('a', {
  4878. href: 'lockscreen.html'
  4879. }, void 0, 'Lockscreen')), _jsx('li', {}, void 0, _jsx('a', {
  4880. href: 'invoice.html'
  4881. }, void 0, 'Invoice')), _jsx('li', {}, void 0, _jsx('a', {
  4882. href: 'login.html'
  4883. }, void 0, 'Login')), _jsx('li', {}, void 0, _jsx('a', {
  4884. href: 'login_two_columns.html'
  4885. }, void 0, 'Login v.2')), _jsx('li', {}, void 0, _jsx('a', {
  4886. href: 'forgot_password.html'
  4887. }, void 0, 'Forget password')), _jsx('li', {}, void 0, _jsx('a', {
  4888. href: 'register.html'
  4889. }, void 0, 'Register')), _jsx('li', {}, void 0, _jsx('a', {
  4890. href: '404.html'
  4891. }, void 0, '404 Page')), _jsx('li', {}, void 0, _jsx('a', {
  4892. href: '500.html'
  4893. }, void 0, '500 Page')), _jsx('li', {}, void 0, _jsx('a', {
  4894. href: 'empty_page.html'
  4895. }, void 0, 'Empty page'))));
  4896.  
  4897. var _ref11 = _jsx('li', {}, void 0, _jsx('a', {
  4898. href: '#'
  4899. }, void 0, _jsx('i', {
  4900. className: 'fa fa-globe'
  4901. }), ' ', _jsx('span', {
  4902. className: 'nav-label'
  4903. }, void 0, 'Miscellaneous'), _jsx('span', {
  4904. className: 'label label-info pull-right'
  4905. }, void 0, 'NEW')), _jsx('ul', {
  4906. className: 'nav nav-second-level collapse'
  4907. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  4908. href: 'toastr_notifications.html'
  4909. }, void 0, 'Notification')), _jsx('li', {}, void 0, _jsx('a', {
  4910. href: 'nestable_list.html'
  4911. }, void 0, 'Nestable list')), _jsx('li', {}, void 0, _jsx('a', {
  4912. href: 'agile_board.html'
  4913. }, void 0, 'Agile board')), _jsx('li', {}, void 0, _jsx('a', {
  4914. href: 'timeline_2.html'
  4915. }, void 0, 'Timeline v.2')), _jsx('li', {}, void 0, _jsx('a', {
  4916. href: 'diff.html'
  4917. }, void 0, 'Diff')), _jsx('li', {}, void 0, _jsx('a', {
  4918. href: 'pdf_viewer.html'
  4919. }, void 0, 'PDF viewer')), _jsx('li', {}, void 0, _jsx('a', {
  4920. href: 'i18support.html'
  4921. }, void 0, 'i18 support')), _jsx('li', {}, void 0, _jsx('a', {
  4922. href: 'sweetalert.html'
  4923. }, void 0, 'Sweet alert')), _jsx('li', {}, void 0, _jsx('a', {
  4924. href: 'idle_timer.html'
  4925. }, void 0, 'Idle timer')), _jsx('li', {}, void 0, _jsx('a', {
  4926. href: 'truncate.html'
  4927. }, void 0, 'Truncate')), _jsx('li', {}, void 0, _jsx('a', {
  4928. href: 'password_meter.html'
  4929. }, void 0, 'Password meter')), _jsx('li', {}, void 0, _jsx('a', {
  4930. href: 'spinners.html'
  4931. }, void 0, 'Spinners')), _jsx('li', {}, void 0, _jsx('a', {
  4932. href: 'spinners_usage.html'
  4933. }, void 0, 'Spinners usage')), _jsx('li', {}, void 0, _jsx('a', {
  4934. href: 'tinycon.html'
  4935. }, void 0, 'Live favicon')), _jsx('li', {}, void 0, _jsx('a', {
  4936. href: 'google_maps.html'
  4937. }, void 0, 'Google maps')), _jsx('li', {}, void 0, _jsx('a', {
  4938. href: 'datamaps.html'
  4939. }, void 0, 'Datamaps')), _jsx('li', {}, void 0, _jsx('a', {
  4940. href: 'social_buttons.html'
  4941. }, void 0, 'Social buttons')), _jsx('li', {}, void 0, _jsx('a', {
  4942. href: 'code_editor.html'
  4943. }, void 0, 'Code editor')), _jsx('li', {}, void 0, _jsx('a', {
  4944. href: 'modal_window.html'
  4945. }, void 0, 'Modal window')), _jsx('li', {}, void 0, _jsx('a', {
  4946. href: 'clipboard.html'
  4947. }, void 0, 'Clipboard')), _jsx('li', {}, void 0, _jsx('a', {
  4948. href: 'text_spinners.html'
  4949. }, void 0, 'Text spinners')), _jsx('li', {}, void 0, _jsx('a', {
  4950. href: 'forum_main.html'
  4951. }, void 0, 'Forum view')), _jsx('li', {}, void 0, _jsx('a', {
  4952. href: 'validation.html'
  4953. }, void 0, 'Validation')), _jsx('li', {}, void 0, _jsx('a', {
  4954. href: 'tree_view.html'
  4955. }, void 0, 'Tree view')), _jsx('li', {}, void 0, _jsx('a', {
  4956. href: 'loading_buttons.html'
  4957. }, void 0, 'Loading buttons')), _jsx('li', {}, void 0, _jsx('a', {
  4958. href: 'chat_view.html'
  4959. }, void 0, 'Chat view')), _jsx('li', {}, void 0, _jsx('a', {
  4960. href: 'masonry.html'
  4961. }, void 0, 'Masonry')), _jsx('li', {}, void 0, _jsx('a', {
  4962. href: 'tour.html'
  4963. }, void 0, 'Tour'))));
  4964.  
  4965. var _ref12 = _jsx('li', {}, void 0, _jsx('a', {
  4966. href: '#'
  4967. }, void 0, _jsx('i', {
  4968. className: 'fa fa-flask'
  4969. }), ' ', _jsx('span', {
  4970. className: 'nav-label'
  4971. }, void 0, 'UI Elements'), _jsx('span', {
  4972. className: 'fa arrow'
  4973. })), _jsx('ul', {
  4974. className: 'nav nav-second-level collapse'
  4975. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  4976. href: 'typography.html'
  4977. }, void 0, 'Typography')), _jsx('li', {}, void 0, _jsx('a', {
  4978. href: 'icons.html'
  4979. }, void 0, 'Icons')), _jsx('li', {}, void 0, _jsx('a', {
  4980. href: 'draggable_panels.html'
  4981. }, void 0, 'Draggable Panels')), ' ', _jsx('li', {}, void 0, _jsx('a', {
  4982. href: 'resizeable_panels.html'
  4983. }, void 0, 'Resizeable Panels')), _jsx('li', {}, void 0, _jsx('a', {
  4984. href: 'buttons.html'
  4985. }, void 0, 'Buttons')), _jsx('li', {}, void 0, _jsx('a', {
  4986. href: 'video.html'
  4987. }, void 0, 'Video')), _jsx('li', {}, void 0, _jsx('a', {
  4988. href: 'tabs_panels.html'
  4989. }, void 0, 'Panels')), _jsx('li', {}, void 0, _jsx('a', {
  4990. href: 'tabs.html'
  4991. }, void 0, 'Tabs')), _jsx('li', {}, void 0, _jsx('a', {
  4992. href: 'notifications.html'
  4993. }, void 0, 'Notifications & Tooltips')), _jsx('li', {}, void 0, _jsx('a', {
  4994. href: 'helper_classNamees.html'
  4995. }, void 0, 'Helper css classNamees')), _jsx('li', {}, void 0, _jsx('a', {
  4996. href: 'badges_labels.html'
  4997. }, void 0, 'Badges, Labels, Progress'))));
  4998.  
  4999. var _ref13 = _jsx('li', {}, void 0, _jsx('a', {
  5000. href: 'grid_options.html'
  5001. }, void 0, _jsx('i', {
  5002. className: 'fa fa-laptop'
  5003. }), ' ', _jsx('span', {
  5004. className: 'nav-label'
  5005. }, void 0, 'Grid options')));
  5006.  
  5007. var _ref14 = _jsx('li', {}, void 0, _jsx('a', {
  5008. href: '#'
  5009. }, void 0, _jsx('i', {
  5010. className: 'fa fa-table'
  5011. }), ' ', _jsx('span', {
  5012. className: 'nav-label'
  5013. }, void 0, 'Tables'), _jsx('span', {
  5014. className: 'fa arrow'
  5015. })), _jsx('ul', {
  5016. className: 'nav nav-second-level collapse'
  5017. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  5018. href: 'table_basic.html'
  5019. }, void 0, 'Static Tables')), _jsx('li', {}, void 0, _jsx('a', {
  5020. href: 'table_data_tables.html'
  5021. }, void 0, 'Data Tables')), _jsx('li', {}, void 0, _jsx('a', {
  5022. href: 'table_foo_table.html'
  5023. }, void 0, 'Foo Tables')), _jsx('li', {}, void 0, _jsx('a', {
  5024. href: 'jq_grid.html'
  5025. }, void 0, 'jqGrid'))));
  5026.  
  5027. var _ref15 = _jsx('li', {}, void 0, _jsx('a', {
  5028. href: '#'
  5029. }, void 0, _jsx('i', {
  5030. className: 'fa fa-shopping-cart'
  5031. }), ' ', _jsx('span', {
  5032. className: 'nav-label'
  5033. }, void 0, 'E-commerce'), _jsx('span', {
  5034. className: 'fa arrow'
  5035. })), _jsx('ul', {
  5036. className: 'nav nav-second-level collapse'
  5037. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  5038. href: 'ecommerce_products_grid.html'
  5039. }, void 0, 'Products grid')), _jsx('li', {}, void 0, _jsx('a', {
  5040. href: 'ecommerce_product_list.html'
  5041. }, void 0, 'Products list')), _jsx('li', {}, void 0, _jsx('a', {
  5042. href: 'ecommerce_product.html'
  5043. }, void 0, 'Product edit')), _jsx('li', {}, void 0, _jsx('a', {
  5044. href: 'ecommerce_product_detail.html'
  5045. }, void 0, 'Product detail')), _jsx('li', {}, void 0, _jsx('a', {
  5046. href: 'ecommerce-cart.html'
  5047. }, void 0, 'Cart')), _jsx('li', {}, void 0, _jsx('a', {
  5048. href: 'ecommerce-orders.html'
  5049. }, void 0, 'Orders')), _jsx('li', {}, void 0, _jsx('a', {
  5050. href: 'ecommerce_payments.html'
  5051. }, void 0, 'Credit Card form'))));
  5052.  
  5053. var _ref16 = _jsx('li', {}, void 0, _jsx('a', {
  5054. href: '#'
  5055. }, void 0, _jsx('i', {
  5056. className: 'fa fa-picture-o'
  5057. }), ' ', _jsx('span', {
  5058. className: 'nav-label'
  5059. }, void 0, 'Gallery'), _jsx('span', {
  5060. className: 'fa arrow'
  5061. })), _jsx('ul', {
  5062. className: 'nav nav-second-level collapse'
  5063. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  5064. href: 'basic_gallery.html'
  5065. }, void 0, 'Lightbox Gallery')), _jsx('li', {}, void 0, _jsx('a', {
  5066. href: 'slick_carousel.html'
  5067. }, void 0, 'Slick Carousel')), _jsx('li', {}, void 0, _jsx('a', {
  5068. href: 'carousel.html'
  5069. }, void 0, 'Bootstrap Carousel'))));
  5070.  
  5071. var _ref17 = _jsx('li', {}, void 0, _jsx('a', {
  5072. href: '#'
  5073. }, void 0, _jsx('i', {
  5074. className: 'fa fa-sitemap'
  5075. }), ' ', _jsx('span', {
  5076. className: 'nav-label'
  5077. }, void 0, 'Menu Levels '), _jsx('span', {
  5078. className: 'fa arrow'
  5079. })), _jsx('ul', {
  5080. className: 'nav nav-second-level collapse'
  5081. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  5082. href: '#'
  5083. }, void 0, 'Third Level ', _jsx('span', {
  5084. className: 'fa arrow'
  5085. })), _jsx('ul', {
  5086. className: 'nav nav-third-level collapse'
  5087. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  5088. href: '#'
  5089. }, void 0, 'Third Level Item')), _jsx('li', {}, void 0, _jsx('a', {
  5090. href: '#'
  5091. }, void 0, 'Third Level Item')), _jsx('li', {}, void 0, _jsx('a', {
  5092. href: '#'
  5093. }, void 0, 'Third Level Item')))), _jsx('li', {}, void 0, _jsx('a', {
  5094. href: '#'
  5095. }, void 0, 'Second Level Item')), _jsx('li', {}, void 0, _jsx('a', {
  5096. href: '#'
  5097. }, void 0, 'Second Level Item')), _jsx('li', {}, void 0, _jsx('a', {
  5098. href: '#'
  5099. }, void 0, 'Second Level Item'))));
  5100.  
  5101. var _ref18 = _jsx('li', {}, void 0, _jsx('a', {
  5102. href: 'css_animation.html'
  5103. }, void 0, _jsx('i', {
  5104. className: 'fa fa-magic'
  5105. }), ' ', _jsx('span', {
  5106. className: 'nav-label'
  5107. }, void 0, 'CSS Animations '), _jsx('span', {
  5108. className: 'label label-info pull-right'
  5109. }, void 0, '62')));
  5110.  
  5111. var _ref19 = _jsx('li', {
  5112. className: 'landing_link'
  5113. }, void 0, _jsx('a', {
  5114. target: '_blank',
  5115. href: 'landing.html'
  5116. }, void 0, _jsx('i', {
  5117. className: 'fa fa-star'
  5118. }), ' ', _jsx('span', {
  5119. className: 'nav-label'
  5120. }, void 0, 'Landing Page'), ' ', _jsx('span', {
  5121. className: 'label label-warning pull-right'
  5122. }, void 0, 'NEW')));
  5123.  
  5124. var _ref20 = _jsx('li', {
  5125. className: 'special_link'
  5126. }, void 0, _jsx('a', {
  5127. href: 'package.html'
  5128. }, void 0, _jsx('i', {
  5129. className: 'fa fa-database'
  5130. }), ' ', _jsx('span', {
  5131. className: 'nav-label'
  5132. }, void 0, 'Package')));
  5133.  
  5134. let LeftSidebar = function () {
  5135. function LeftSidebar(props) {
  5136.  
  5137. //console.log("#################### LEFT SIDEBAR ",this);
  5138.  
  5139. if (props.userAuthenticated.user.isLoggedIn() === false) return null;
  5140.  
  5141. return _jsx('nav', {
  5142. className: 'navbar-default navbar-static-side',
  5143. role: 'navigation'
  5144. }, void 0, _jsx('div', {
  5145. className: 'sidebar-collapse'
  5146. }, void 0, _jsx('ul', {
  5147. className: 'nav metismenu',
  5148. id: 'side-menu',
  5149. style: { backgroundColor: "#2f4050" }
  5150. }, void 0, _jsx('li', {
  5151. className: 'nav-header',
  5152. style: { paddingTop: 15 }
  5153. }, void 0, _jsx('div', {
  5154. className: 'dropdown profile-element'
  5155. }, void 0, _jsx('span', {}, void 0, _jsx('img', {
  5156. alt: 'image',
  5157. className: 'img-circle',
  5158. src: props.userAuthenticated.user.getProfilePic(),
  5159. style: { maxWidth: 145, maxHeight: 145, paddingBottom: 15, marginLeft: "auto", marginRight: "auto", display: "block" }
  5160. })), _jsx('a', {
  5161. 'data-toggle': 'dropdown',
  5162. className: 'dropdown-toggle',
  5163. href: '#'
  5164. }, void 0, _jsx('span', {
  5165. className: 'clear',
  5166. style: { textAlign: "center" }
  5167. }, void 0, _jsx('span', {
  5168. className: 'block m-t-xs'
  5169. }, void 0, _jsx('strong', {
  5170. className: 'font-bold'
  5171. }, void 0, props.userAuthenticated.user.getName())), _jsx('span', {
  5172. className: 'text-muted text-xs block',
  5173. style: { align: "center" }
  5174. }, void 0, props.userAuthenticated.user.shortBio)))), _ref), _ref2, _ref3, _ref4, _ref5, _ref6, _ref7, _ref8, _ref9, _ref10, _ref11, _ref12, _ref13, _ref14, _ref15, _ref16, _ref17, _ref18, _ref19, _ref20)));
  5175. }
  5176.  
  5177. return LeftSidebar;
  5178. }();
  5179.  
  5180. ;
  5181.  
  5182. function mapState(state) {
  5183. return {
  5184. userAuthenticated: state.userAuthenticated
  5185. };
  5186. };
  5187.  
  5188. function mapDispatch(dispatch) {
  5189. return {
  5190. dispatch: dispatch
  5191. };
  5192. };
  5193.  
  5194. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_2_react_redux__["connect"])(mapState, mapDispatch)(LeftSidebar));
  5195.  
  5196. /***/ }),
  5197. /* 60 */
  5198. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5199.  
  5200. "use strict";
  5201. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  5202. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  5203. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  5204. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  5205. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  5206.  
  5207. /**
  5208. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/9/2017.
  5209. * (C) BIT TECHNOLOGIES
  5210. */
  5211.  
  5212.  
  5213.  
  5214.  
  5215. var _ref = _jsx('ul', {
  5216. className: 'nav nav-tabs navs-3'
  5217. }, void 0, _jsx('li', {
  5218. className: 'active'
  5219. }, void 0, _jsx('a', {
  5220. 'data-toggle': 'tab',
  5221. href: '#tab-1'
  5222. }, void 0, 'Notes')), _jsx('li', {}, void 0, _jsx('a', {
  5223. 'data-toggle': 'tab',
  5224. href: '#tab-2'
  5225. }, void 0, 'Projects')), _jsx('li', {
  5226. className: ''
  5227. }, void 0, _jsx('a', {
  5228. 'data-toggle': 'tab',
  5229. href: '#tab-3'
  5230. }, void 0, _jsx('i', {
  5231. className: 'fa fa-gear'
  5232. }))));
  5233.  
  5234. var _ref2 = _jsx('div', {
  5235. id: 'tab-1',
  5236. className: 'tab-pane active'
  5237. }, void 0, _jsx('div', {
  5238. className: 'sidebar-title'
  5239. }, void 0, _jsx('h3', {}, void 0, _jsx('i', {
  5240. className: 'fa fa-comments-o'
  5241. }), ' Latest Notes'), _jsx('small', {}, void 0, _jsx('i', {
  5242. className: 'fa fa-tim'
  5243. }), ' You have 10 new message.')), _jsx('div', {}, void 0, _jsx('div', {
  5244. className: 'sidebar-message'
  5245. }, void 0, _jsx('a', {
  5246. href: '#'
  5247. }, void 0, _jsx('div', {
  5248. className: 'pull-left text-center'
  5249. }, void 0, _jsx('img', {
  5250. alt: 'image',
  5251. className: 'img-circle message-avatar',
  5252. src: '/res/logo/SkyHub-logo.png'
  5253. }), _jsx('div', {
  5254. className: 'm-t-xs'
  5255. }, void 0, _jsx('i', {
  5256. className: 'fa fa-star text-warning'
  5257. }), _jsx('i', {
  5258. className: 'fa fa-star text-warning'
  5259. }))), _jsx('div', {
  5260. className: 'media-body'
  5261. }, void 0, 'There are many variations of passages of Lorem Ipsum available.', _jsx('br', {}), _jsx('small', {
  5262. className: 'text-muted'
  5263. }, void 0, 'Today 4:21 pm')))), _jsx('div', {
  5264. className: 'sidebar-message'
  5265. }, void 0, _jsx('a', {
  5266. href: '#'
  5267. }, void 0, _jsx('div', {
  5268. className: 'pull-left text-center'
  5269. }, void 0, _jsx('img', {
  5270. alt: 'image',
  5271. className: 'img-circle message-avatar',
  5272. src: '/res/logo/SkyHub-logo.png'
  5273. })), _jsx('div', {
  5274. className: 'media-body'
  5275. }, void 0, 'The point of using Lorem Ipsum is that it has a more-or-less normal.', _jsx('br', {}), _jsx('small', {
  5276. className: 'text-muted'
  5277. }, void 0, 'Yesterday 2:45 pm')))), _jsx('div', {
  5278. className: 'sidebar-message'
  5279. }, void 0, _jsx('a', {
  5280. href: '#'
  5281. }, void 0, _jsx('div', {
  5282. className: 'pull-left text-center'
  5283. }, void 0, _jsx('img', {
  5284. alt: 'image',
  5285. className: 'img-circle message-avatar',
  5286. src: '/res/logo/SkyHub-logo.png'
  5287. }), _jsx('div', {
  5288. className: 'm-t-xs'
  5289. }, void 0, _jsx('i', {
  5290. className: 'fa fa-star text-warning'
  5291. }), _jsx('i', {
  5292. className: 'fa fa-star text-warning'
  5293. }), _jsx('i', {
  5294. className: 'fa fa-star text-warning'
  5295. }))), _jsx('div', {
  5296. className: 'media-body'
  5297. }, void 0, 'Mevolved over the years, sometimes by accident, sometimes on purpose (injected humour and the like).', _jsx('br', {}), _jsx('small', {
  5298. className: 'text-muted'
  5299. }, void 0, 'Yesterday 1:10 pm')))), _jsx('div', {
  5300. className: 'sidebar-message'
  5301. }, void 0, _jsx('a', {
  5302. href: '#'
  5303. }, void 0, _jsx('div', {
  5304. className: 'pull-left text-center'
  5305. }, void 0, _jsx('img', {
  5306. alt: 'image',
  5307. className: 'img-circle message-avatar',
  5308. src: '/res/logo/SkyHub-logo.png'
  5309. })), _jsx('div', {
  5310. className: 'media-body'
  5311. }, void 0, 'Lorem Ipsum, you need to be sure there isn\'t anything embarrassing hidden in the', _jsx('br', {}), _jsx('small', {
  5312. className: 'text-muted'
  5313. }, void 0, 'Monday 8:37 pm')))), _jsx('div', {
  5314. className: 'sidebar-message'
  5315. }, void 0, _jsx('a', {
  5316. href: '#'
  5317. }, void 0, _jsx('div', {
  5318. className: 'pull-left text-center'
  5319. }, void 0, _jsx('img', {
  5320. alt: 'image',
  5321. className: 'img-circle message-avatar',
  5322. src: '/res/logo/SkyHub-logo.png'
  5323. })), _jsx('div', {
  5324. className: 'media-body'
  5325. }, void 0, 'All the Lorem Ipsum generators on the Internet tend to repeat.', _jsx('br', {}), _jsx('small', {
  5326. className: 'text-muted'
  5327. }, void 0, 'Today 4:21 pm')))), _jsx('div', {
  5328. className: 'sidebar-message'
  5329. }, void 0, _jsx('a', {
  5330. href: '#'
  5331. }, void 0, _jsx('div', {
  5332. className: 'pull-left text-center'
  5333. }, void 0, _jsx('img', {
  5334. alt: 'image',
  5335. className: 'img-circle message-avatar',
  5336. src: '/res/logo/SkyHub-logo.png'
  5337. })), _jsx('div', {
  5338. className: 'media-body'
  5339. }, void 0, 'Renaissance. The first line of Lorem Ipsum, "Lorem ipsum dolor sit amet..", comes from a line in section 1.10.32.', _jsx('br', {}), _jsx('small', {
  5340. className: 'text-muted'
  5341. }, void 0, 'Yesterday 2:45 pm')))), _jsx('div', {
  5342. className: 'sidebar-message'
  5343. }, void 0, _jsx('a', {
  5344. href: '#'
  5345. }, void 0, _jsx('div', {
  5346. className: 'pull-left text-center'
  5347. }, void 0, _jsx('img', {
  5348. alt: 'image',
  5349. className: 'img-circle message-avatar',
  5350. src: '/res/logo/SkyHub-logo.png'
  5351. }), _jsx('div', {
  5352. className: 'm-t-xs'
  5353. }, void 0, _jsx('i', {
  5354. className: 'fa fa-star text-warning'
  5355. }), _jsx('i', {
  5356. className: 'fa fa-star text-warning'
  5357. }), _jsx('i', {
  5358. className: 'fa fa-star text-warning'
  5359. }))), _jsx('div', {
  5360. className: 'media-body'
  5361. }, void 0, 'The standard chunk of Lorem Ipsum used since the 1500s is reproduced below.', _jsx('br', {}), _jsx('small', {
  5362. className: 'text-muted'
  5363. }, void 0, 'Yesterday 1:10 pm')))), _jsx('div', {
  5364. className: 'sidebar-message'
  5365. }, void 0, _jsx('a', {
  5366. href: '#'
  5367. }, void 0, _jsx('div', {
  5368. className: 'pull-left text-center'
  5369. }, void 0, _jsx('img', {
  5370. alt: 'image',
  5371. className: 'img-circle message-avatar',
  5372. src: '/res/logo/SkyHub-logo.png'
  5373. })), _jsx('div', {
  5374. className: 'media-body'
  5375. }, void 0, 'Uncover many web sites still in their infancy. Various versions have.', _jsx('br', {}), _jsx('small', {
  5376. className: 'text-muted'
  5377. }, void 0, 'Monday 8:37 pm'))))));
  5378.  
  5379. var _ref3 = _jsx('div', {
  5380. className: 'sidebar-title'
  5381. }, void 0, _jsx('h3', {}, void 0, _jsx('i', {
  5382. className: 'fa fa-cube'
  5383. }), ' Latest projects'), _jsx('small', {}, void 0, _jsx('i', {
  5384. className: 'fa fa-tim'
  5385. }), ' You have 14 projects. 10 not completed.'));
  5386.  
  5387. var _ref4 = _jsx('div', {
  5388. className: 'small pull-right m-t-xs'
  5389. }, void 0, '9 hours ago');
  5390.  
  5391. var _ref5 = _jsx('h4', {}, void 0, 'Business valuation');
  5392.  
  5393. var _ref6 = _jsx('div', {
  5394. className: 'small'
  5395. }, void 0, 'Completion with: 22%');
  5396.  
  5397. var _ref7 = _jsx('div', {
  5398. className: 'small text-muted m-t-xs'
  5399. }, void 0, 'Project end: 4:00 pm - 12.06.2014');
  5400.  
  5401. var _ref8 = _jsx('div', {
  5402. className: 'small pull-right m-t-xs'
  5403. }, void 0, '9 hours ago');
  5404.  
  5405. var _ref9 = _jsx('h4', {}, void 0, 'Contract with Company ');
  5406.  
  5407. var _ref10 = _jsx('div', {
  5408. className: 'small'
  5409. }, void 0, 'Completion with: 48%');
  5410.  
  5411. var _ref11 = _jsx('div', {
  5412. className: 'small pull-right m-t-xs'
  5413. }, void 0, '9 hours ago');
  5414.  
  5415. var _ref12 = _jsx('h4', {}, void 0, 'Meeting');
  5416.  
  5417. var _ref13 = _jsx('div', {
  5418. className: 'small'
  5419. }, void 0, 'Completion with: 14%');
  5420.  
  5421. var _ref14 = _jsx('li', {}, void 0, _jsx('a', {
  5422. href: '#'
  5423. }, void 0, _jsx('span', {
  5424. className: 'label label-primary pull-right'
  5425. }, void 0, 'NEW'), _jsx('h4', {}, void 0, 'The generated'), 'There are many variations of passages of Lorem Ipsum available.', _jsx('div', {
  5426. className: 'small'
  5427. }, void 0, 'Completion with: 22%'), _jsx('div', {
  5428. className: 'small text-muted m-t-xs'
  5429. }, void 0, 'Project end: 4:00 pm - 12.06.2014')));
  5430.  
  5431. var _ref15 = _jsx('div', {
  5432. className: 'small pull-right m-t-xs'
  5433. }, void 0, '9 hours ago');
  5434.  
  5435. var _ref16 = _jsx('h4', {}, void 0, 'Business valuation');
  5436.  
  5437. var _ref17 = _jsx('div', {
  5438. className: 'small'
  5439. }, void 0, 'Completion with: 22%');
  5440.  
  5441. var _ref18 = _jsx('div', {
  5442. className: 'small text-muted m-t-xs'
  5443. }, void 0, 'Project end: 4:00 pm - 12.06.2014');
  5444.  
  5445. var _ref19 = _jsx('div', {
  5446. className: 'small pull-right m-t-xs'
  5447. }, void 0, '9 hours ago');
  5448.  
  5449. var _ref20 = _jsx('h4', {}, void 0, 'Contract with Company ');
  5450.  
  5451. var _ref21 = _jsx('div', {
  5452. className: 'small'
  5453. }, void 0, 'Completion with: 48%');
  5454.  
  5455. var _ref22 = _jsx('div', {
  5456. className: 'small pull-right m-t-xs'
  5457. }, void 0, '9 hours ago');
  5458.  
  5459. var _ref23 = _jsx('h4', {}, void 0, 'Meeting');
  5460.  
  5461. var _ref24 = _jsx('div', {
  5462. className: 'small'
  5463. }, void 0, 'Completion with: 14%');
  5464.  
  5465. var _ref25 = _jsx('li', {}, void 0, _jsx('a', {
  5466. href: '#'
  5467. }, void 0, _jsx('span', {
  5468. className: 'label label-primary pull-right'
  5469. }, void 0, 'NEW'), _jsx('h4', {}, void 0, 'The generated'), 'There are many variations of passages of Lorem Ipsum available.', _jsx('div', {
  5470. className: 'small'
  5471. }, void 0, 'Completion with: 22%'), _jsx('div', {
  5472. className: 'small text-muted m-t-xs'
  5473. }, void 0, 'Project end: 4:00 pm - 12.06.2014')));
  5474.  
  5475. var _ref26 = _jsx('div', {
  5476. id: 'tab-3',
  5477. className: 'tab-pane'
  5478. }, void 0, _jsx('div', {
  5479. className: 'sidebar-title'
  5480. }, void 0, _jsx('h3', {}, void 0, _jsx('i', {
  5481. className: 'fa fa-gears'
  5482. }), ' Settings'), _jsx('small', {}, void 0, _jsx('i', {
  5483. className: 'fa fa-tim'
  5484. }), ' You have 14 projects. 10 not completed.')), _jsx('div', {
  5485. className: 'setings-item'
  5486. }, void 0, _jsx('span', {}, void 0, 'Show notifications'), _jsx('div', {
  5487. className: 'switch'
  5488. }, void 0, _jsx('div', {
  5489. className: 'onoffswitch'
  5490. }, void 0, _jsx('input', {
  5491. type: 'checkbox',
  5492. name: 'collapsemenu',
  5493. className: 'onoffswitch-checkbox',
  5494. id: 'example'
  5495. }), _jsx('label', {
  5496. className: 'onoffswitch-label'
  5497. }, void 0, _jsx('span', {
  5498. className: 'onoffswitch-inner'
  5499. }), _jsx('span', {
  5500. className: 'onoffswitch-switch'
  5501. }))))), _jsx('div', {
  5502. className: 'setings-item'
  5503. }, void 0, _jsx('span', {}, void 0, 'Disable Chat'), _jsx('div', {
  5504. className: 'switch'
  5505. }, void 0, _jsx('div', {
  5506. className: 'onoffswitch'
  5507. }, void 0, _jsx('input', {
  5508. type: 'checkbox',
  5509. name: 'collapsemenu',
  5510. checked: '',
  5511. className: 'onoffswitch-checkbox',
  5512. id: 'example2'
  5513. }), _jsx('label', {
  5514. className: 'onoffswitch-label'
  5515. }, void 0, _jsx('span', {
  5516. className: 'onoffswitch-inner'
  5517. }), _jsx('span', {
  5518. className: 'onoffswitch-switch'
  5519. }))))), _jsx('div', {
  5520. className: 'setings-item'
  5521. }, void 0, _jsx('span', {}, void 0, 'Enable history'), _jsx('div', {
  5522. className: 'switch'
  5523. }, void 0, _jsx('div', {
  5524. className: 'onoffswitch'
  5525. }, void 0, _jsx('input', {
  5526. type: 'checkbox',
  5527. name: 'collapsemenu',
  5528. className: 'onoffswitch-checkbox',
  5529. id: 'example3'
  5530. }), _jsx('label', {
  5531. className: 'onoffswitch-label'
  5532. }, void 0, _jsx('span', {
  5533. className: 'onoffswitch-inner'
  5534. }), _jsx('span', {
  5535. className: 'onoffswitch-switch'
  5536. }))))), _jsx('div', {
  5537. className: 'setings-item'
  5538. }, void 0, _jsx('span', {}, void 0, 'Show charts'), _jsx('div', {
  5539. className: 'switch'
  5540. }, void 0, _jsx('div', {
  5541. className: 'onoffswitch'
  5542. }, void 0, _jsx('input', {
  5543. type: 'checkbox',
  5544. name: 'collapsemenu',
  5545. className: 'onoffswitch-checkbox',
  5546. id: 'example4'
  5547. }), _jsx('label', {
  5548. className: 'onoffswitch-label'
  5549. }, void 0, _jsx('span', {
  5550. className: 'onoffswitch-inner'
  5551. }), _jsx('span', {
  5552. className: 'onoffswitch-switch'
  5553. }))))), _jsx('div', {
  5554. className: 'setings-item'
  5555. }, void 0, _jsx('span', {}, void 0, 'Offline users'), _jsx('div', {
  5556. className: 'switch'
  5557. }, void 0, _jsx('div', {
  5558. className: 'onoffswitch'
  5559. }, void 0, _jsx('input', {
  5560. type: 'checkbox',
  5561. checked: '',
  5562. name: 'collapsemenu',
  5563. className: 'onoffswitch-checkbox',
  5564. id: 'example5'
  5565. }), _jsx('label', {
  5566. className: 'onoffswitch-label'
  5567. }, void 0, _jsx('span', {
  5568. className: 'onoffswitch-inner'
  5569. }), _jsx('span', {
  5570. className: 'onoffswitch-switch'
  5571. }))))), _jsx('div', {
  5572. className: 'setings-item'
  5573. }, void 0, _jsx('span', {}, void 0, 'Global search'), _jsx('div', {
  5574. className: 'switch'
  5575. }, void 0, _jsx('div', {
  5576. className: 'onoffswitch'
  5577. }, void 0, _jsx('input', {
  5578. type: 'checkbox',
  5579. checked: '',
  5580. name: 'collapsemenu',
  5581. className: 'onoffswitch-checkbox',
  5582. id: 'example6'
  5583. }), _jsx('label', {
  5584. className: 'onoffswitch-label'
  5585. }, void 0, _jsx('span', {
  5586. className: 'onoffswitch-inner'
  5587. }), _jsx('span', {
  5588. className: 'onoffswitch-switch'
  5589. }))))), _jsx('div', {
  5590. className: 'setings-item'
  5591. }, void 0, _jsx('span', {}, void 0, 'Update everyday'), _jsx('div', {
  5592. className: 'switch'
  5593. }, void 0, _jsx('div', {
  5594. className: 'onoffswitch'
  5595. }, void 0, _jsx('input', {
  5596. type: 'checkbox',
  5597. name: 'collapsemenu',
  5598. className: 'onoffswitch-checkbox',
  5599. id: 'example7'
  5600. }), _jsx('label', {
  5601. className: 'onoffswitch-label'
  5602. }, void 0, _jsx('span', {
  5603. className: 'onoffswitch-inner'
  5604. }), _jsx('span', {
  5605. className: 'onoffswitch-switch'
  5606. }))))), _jsx('div', {
  5607. className: 'sidebar-content'
  5608. }, void 0, _jsx('h4', {}, void 0, 'Settings'), _jsx('div', {
  5609. className: 'small'
  5610. }, void 0, 'I belive that. Lorem Ipsum is simply dummy text of the printing and typesetting industry. And typesetting industry. Lorem Ipsum has been the industry\'s standard dummy text ever since the 1500s. Over the years, sometimes by accident, sometimes on purpose (injected humour and the like).')));
  5611.  
  5612. let RightSidebar = function () {
  5613. function RightSidebar(props) {
  5614. return _jsx('div', {
  5615. id: 'right-sidebar',
  5616. className: 'animated'
  5617. }, void 0, _jsx('div', {
  5618. className: 'slimScrollDiv',
  5619. style: { position: "relative", overflow: "hidden", width: "auto", height: "100%" }
  5620. }, void 0, _jsx('div', {
  5621. className: 'sidebar-container',
  5622. style: { overflow: "hidden", width: "auto", height: "100%" }
  5623. }, void 0, _ref, _jsx('div', {
  5624. className: 'tab-content'
  5625. }, void 0, _ref2, _jsx('div', {
  5626. id: 'tab-2',
  5627. className: 'tab-pane'
  5628. }, void 0, _ref3, _jsx('ul', {
  5629. className: 'sidebar-list'
  5630. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  5631. href: '#'
  5632. }, void 0, _ref4, _ref5, 'It is a long established fact that a reader will be distracted.', _ref6, _jsx('div', {
  5633. className: 'progress progress-mini'
  5634. }, void 0, _jsx('div', {
  5635. style: { width: "22%" },
  5636. className: 'progress-bar progress-bar-warning'
  5637. })), _ref7)), _jsx('li', {}, void 0, _jsx('a', {
  5638. href: '#'
  5639. }, void 0, _ref8, _ref9, 'Many desktop publishing packages and web page editors.', _ref10, _jsx('div', {
  5640. className: 'progress progress-mini'
  5641. }, void 0, _jsx('div', {
  5642. style: { width: "48%" },
  5643. className: 'progress-bar'
  5644. })))), _jsx('li', {}, void 0, _jsx('a', {
  5645. href: '#'
  5646. }, void 0, _ref11, _ref12, 'By the readable content of a page when looking at its layout.', _ref13, _jsx('div', {
  5647. className: 'progress progress-mini'
  5648. }, void 0, _jsx('div', {
  5649. style: { width: "14%" },
  5650. className: 'progress-bar progress-bar-info'
  5651. })))), _ref14, _jsx('li', {}, void 0, _jsx('a', {
  5652. href: '#'
  5653. }, void 0, _ref15, _ref16, 'It is a long established fact that a reader will be distracted.', _ref17, _jsx('div', {
  5654. className: 'progress progress-mini'
  5655. }, void 0, _jsx('div', {
  5656. style: { width: "22%" },
  5657. className: 'progress-bar progress-bar-warning'
  5658. })), _ref18)), _jsx('li', {}, void 0, _jsx('a', {
  5659. href: '#'
  5660. }, void 0, _ref19, _ref20, 'Many desktop publishing packages and web page editors.', _ref21, _jsx('div', {
  5661. className: 'progress progress-mini'
  5662. }, void 0, _jsx('div', {
  5663. style: { width: "48%" },
  5664. className: 'progress-bar'
  5665. })))), _jsx('li', {}, void 0, _jsx('a', {
  5666. href: '#'
  5667. }, void 0, _ref22, _ref23, 'By the readable content of a page when looking at its layout.', _ref24, _jsx('div', {
  5668. className: 'progress progress-mini'
  5669. }, void 0, _jsx('div', {
  5670. style: { width: "14%" },
  5671. className: 'progress-bar progress-bar-info'
  5672. })))), _ref25)), _ref26)), _jsx('div', {
  5673. className: 'slimScrollBar',
  5674. style: { background: 0, width: 7, position: "absolute", top: 0, opacity: 0.4, display: "block", borderRadius: 7, zIndex: 99, right: 1, height: 546.017
  5675. }
  5676. }, void 0), _jsx('div', {
  5677. className: 'slimScrollRail',
  5678. style: { width: 7, height: "100%", position: "absolute", top: 0, display: "none", borderRadius: 7, background: "#333333", opacity: 0.4, zIndex: 90, right: 1
  5679. }
  5680. }, void 0)));
  5681. }
  5682.  
  5683. return RightSidebar;
  5684. }();
  5685.  
  5686. /* harmony default export */ __webpack_exports__["a"] = (RightSidebar);
  5687.  
  5688. /***/ }),
  5689. /* 61 */
  5690. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5691.  
  5692. "use strict";
  5693. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  5694. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  5695. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(7);
  5696. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_isomorphic_style_loader_lib_withStyles__);
  5697. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Link_Link__ = __webpack_require__(5);
  5698. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  5699.  
  5700. /**
  5701. * React Starter Kit (https://www.reactstarterkit.com/)
  5702. *
  5703. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  5704. *
  5705. * This source code is licensed under the MIT license found in the
  5706. * LICENSE.txt file in the root directory of this source tree.
  5707. */
  5708.  
  5709.  
  5710.  
  5711.  
  5712.  
  5713.  
  5714. var _ref = _jsx('strong', {}, void 0, 'Copyright');
  5715.  
  5716. var _ref2 = _jsx('a', {
  5717. href: 'http://bit-technologies.net/'
  5718. }, void 0, ' BIT TECHNOLOGIES ');
  5719.  
  5720. let Footer = function () {
  5721. function Footer(props) {
  5722. return _jsx('div', {
  5723. className: 'footer fixed',
  5724. style: { zIndex: 200, marginLeft: 0 }
  5725. }, void 0, _jsx('div', {
  5726. style: { textAlign: "right" }
  5727. }, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_2__Link_Link__["a" /* default */], {
  5728. style: { marginLeft: 10 },
  5729. to: '/'
  5730. }, void 0, 'Home'), _jsx(__WEBPACK_IMPORTED_MODULE_2__Link_Link__["a" /* default */], {
  5731. style: { marginLeft: 10 },
  5732. to: '/admin'
  5733. }, void 0, 'Admin'), _jsx(__WEBPACK_IMPORTED_MODULE_2__Link_Link__["a" /* default */], {
  5734. style: { marginLeft: 10 },
  5735. to: '/privacy'
  5736. }, void 0, 'Privacy'), _jsx(__WEBPACK_IMPORTED_MODULE_2__Link_Link__["a" /* default */], {
  5737. style: { marginLeft: 10 },
  5738. to: '/not-found'
  5739. }, void 0, 'Not Found'), _jsx(__WEBPACK_IMPORTED_MODULE_2__Link_Link__["a" /* default */], {
  5740. style: { marginLeft: 10 },
  5741. to: '/about'
  5742. }, void 0, 'About'), _jsx(__WEBPACK_IMPORTED_MODULE_2__Link_Link__["a" /* default */], {
  5743. style: { marginLeft: 10 },
  5744. to: '/contact'
  5745. }, void 0, 'Contact')), _jsx('div', {
  5746. style: { textAlign: "center" }
  5747. }, void 0, _ref, ' SkyHub 2016-2017 by ', _ref2));
  5748. }
  5749.  
  5750. return Footer;
  5751. }();
  5752.  
  5753. /* harmony default export */ __webpack_exports__["a"] = (Footer);
  5754.  
  5755. /***/ }),
  5756. /* 62 */
  5757. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5758.  
  5759. "use strict";
  5760. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return WebsiteHeaderCover; });
  5761. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  5762. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  5763. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__HeaderCover_component__ = __webpack_require__(22);
  5764. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  5765.  
  5766. /**
  5767. * Created by BIT TECHNOLOGIES on 5/28/2017.
  5768. */
  5769.  
  5770.  
  5771.  
  5772. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_1__HeaderCover_component__["a" /* default */], {
  5773. title: 'SkyHub - Forum 2.0',
  5774. subTitle: 'Discover, Connect and Change the world together',
  5775. coverPic: 'http://spitfiresocial.com/wp-content/uploads/2015/03/worldsocial.jpg'
  5776. }, void 0);
  5777.  
  5778. let WebsiteHeaderCover = class WebsiteHeaderCover extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  5779.  
  5780. constructor(props) {
  5781.  
  5782. super(props);
  5783. }
  5784.  
  5785. render() {
  5786. return _ref;
  5787. }
  5788. };
  5789.  
  5790.  
  5791. /***/ }),
  5792. /* 63 */
  5793. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5794.  
  5795. "use strict";
  5796. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  5797. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  5798. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Socket_status_bar_HeaderBarSocketStatus_component__ = __webpack_require__(64);
  5799. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Link_Link__ = __webpack_require__(5);
  5800. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(1);
  5801. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
  5802. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__Top_navbar_TopNavbar__ = __webpack_require__(68);
  5803. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  5804.  
  5805. var _class, _temp;
  5806.  
  5807. /**
  5808. * React Starter Kit (https://www.reactstarterkit.com/)
  5809. *
  5810. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  5811. *
  5812. * This source code is licensed under the MIT license found in the
  5813. * LICENSE.txt file in the root directory of this source tree.
  5814. */
  5815.  
  5816.  
  5817.  
  5818.  
  5819.  
  5820.  
  5821.  
  5822.  
  5823.  
  5824.  
  5825.  
  5826. var _ref = _jsx('div', {
  5827. className: 'row border-bottom'
  5828. }, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_4__Top_navbar_TopNavbar__["a" /* default */], {}), _jsx(__WEBPACK_IMPORTED_MODULE_1__Socket_status_bar_HeaderBarSocketStatus_component__["a" /* default */], {}));
  5829.  
  5830. let Header = (_temp = _class = function () {
  5831. function Header(props) {
  5832.  
  5833. //console.log("###### HEADER",this);
  5834.  
  5835. return _ref;
  5836. }
  5837.  
  5838. return Header;
  5839. }(), _class.contextTypes = {
  5840. refAuthenticationModal: __WEBPACK_IMPORTED_MODULE_3_prop_types___default.a.any
  5841. }, _temp);
  5842.  
  5843.  
  5844. /* harmony default export */ __webpack_exports__["a"] = (Header);
  5845.  
  5846. /***/ }),
  5847. /* 64 */
  5848. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5849.  
  5850. "use strict";
  5851. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  5852. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  5853. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  5854. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  5855. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__my_redux_actions_SocketStatus_actions_js__ = __webpack_require__(34);
  5856. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  5857.  
  5858. /**
  5859. * Created by Alexandru Ionut Budisteanu - SkyHub on ${DATE}.
  5860. * (C) BIT TECHNOLOGIES
  5861. */
  5862.  
  5863.  
  5864.  
  5865.  
  5866.  
  5867.  
  5868. let HeaderBarSocketStatus = class HeaderBarSocketStatus extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  5869. constructor(...args) {
  5870. var _temp;
  5871.  
  5872. return _temp = super(...args), this.sBackgroundColor = 'yellow', this.sTextColor = 'black', _temp;
  5873. }
  5874.  
  5875. renderStatusBar() {
  5876. if (this.props.socketStatus.connectionOffline) {
  5877. this.sBackgroundColor = 'red';
  5878. this.sTextColor = 'yellow';
  5879. } else if (this.props.socketStatus.showOnlineStatus) {
  5880. this.sBackgroundColor = 'yellow';
  5881. this.sTextColor = 'navy';
  5882. }
  5883.  
  5884. return _jsx('nav', {
  5885. className: 'navbar navbar-default',
  5886. style: { display: 'inline-block', width: '100%', marginBottom: -5, minHeight: 26, background: this.sBackgroundColor }
  5887. }, void 0, _jsx('div', {
  5888. style: { textAlign: 'center', margiTop: 5, color: this.sTextColor }
  5889. }, void 0, _jsx('i', {
  5890. className: this.props.socketStatus.icon,
  5891. 'aria-hidden': 'true'
  5892. }), _jsx('a', {
  5893. href: '#'
  5894. }, void 0, _jsx('b', {
  5895. style: { color: this.sTextColor }
  5896. }, void 0, this.props.socketStatus.message))));
  5897. }
  5898.  
  5899. hideSocketStatusTimeout() {
  5900. console.log('Hide Socket Status');
  5901. setTimeout(this.hideSocketStatus.bind(this), 3000);
  5902. }
  5903.  
  5904. hideSocketStatus() {
  5905. this.props.dispatch(__WEBPACK_IMPORTED_MODULE_2__my_redux_actions_SocketStatus_actions_js__["d" /* socketHideSocketStatusMessage */]());
  5906. }
  5907.  
  5908. render() {
  5909. return _jsx('div', {}, void 0, this.props.socketStatus.connectionOffline || this.props.socketStatus.showOnlineStatus ? this.renderStatusBar.call(this) : '', this.props.socketStatus.showOnlineStatus ? this.hideSocketStatusTimeout.call(this) : '');
  5910. }
  5911. };
  5912.  
  5913.  
  5914. function mapState(state) {
  5915. return {
  5916. socketStatus: state.socketStatus
  5917. };
  5918. };
  5919.  
  5920. function mapDispatch(dispatch) {
  5921. return {
  5922. dispatch: dispatch
  5923. };
  5924. };
  5925.  
  5926. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(HeaderBarSocketStatus));
  5927.  
  5928. /***/ }),
  5929. /* 65 */
  5930. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  5931.  
  5932. "use strict";
  5933. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  5934. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  5935. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Link_Link__ = __webpack_require__(5);
  5936. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_REST_authentication_Auth_service__ = __webpack_require__(3);
  5937. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  5938.  
  5939. /**
  5940. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/10/2017.
  5941. * (C) BIT TECHNOLOGIES
  5942. */
  5943.  
  5944.  
  5945.  
  5946.  
  5947.  
  5948.  
  5949. var _ref = _jsx('li', {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_1__Link_Link__["a" /* default */], {
  5950. to: '/'
  5951. }, void 0, _jsx('i', {
  5952. className: 'fa fa-home'
  5953. }), _jsx('span', {
  5954. className: 'm-r-sm text-muted welcome-message'
  5955. }, void 0, 'Home')));
  5956.  
  5957. var _ref2 = _jsx('li', {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_1__Link_Link__["a" /* default */], {
  5958. to: '/'
  5959. }, void 0, _jsx('i', {
  5960. className: 'fa fa-home'
  5961. }), _jsx('span', {
  5962. className: 'm-r-sm text-muted welcome-message'
  5963. }, void 0, 'Profile')));
  5964.  
  5965. var _ref3 = _jsx('li', {
  5966. className: 'dropdown'
  5967. }, void 0, _jsx('a', {
  5968. className: 'dropdown-toggle count-info',
  5969. 'data-toggle': 'dropdown',
  5970. href: '#'
  5971. }, void 0, _jsx('i', {
  5972. className: 'fa fa-envelope'
  5973. }), ' ', _jsx('span', {
  5974. className: 'label label-warning'
  5975. }, void 0, '16')), _jsx('ul', {
  5976. className: 'dropdown-menu dropdown-messages'
  5977. }, void 0, _jsx('li', {}, void 0, _jsx('div', {
  5978. className: 'dropdown-messages-box'
  5979. }, void 0, _jsx('a', {
  5980. href: 'profile.html',
  5981. className: 'pull-left'
  5982. }, void 0, _jsx('img', {
  5983. alt: 'image',
  5984. className: 'img-circle',
  5985. src: '/res/logo/SkyHub-logo.png'
  5986. })), _jsx('div', {}, void 0, _jsx('small', {
  5987. className: 'pull-right'
  5988. }, void 0, '46h ago'), _jsx('strong', {}, void 0, 'Mike Loreipsum'), ' started following ', _jsx('strong', {}, void 0, 'Monica Smith'), '. ', _jsx('br', {}), _jsx('small', {
  5989. className: 'text-muted'
  5990. }, void 0, '3 days ago at 7:58 pm - 10.06.2014')))), _jsx('li', {
  5991. className: 'divider'
  5992. }), _jsx('li', {}, void 0, _jsx('div', {
  5993. className: 'dropdown-messages-box'
  5994. }, void 0, _jsx('a', {
  5995. href: 'profile.html',
  5996. className: 'pull-left'
  5997. }, void 0, _jsx('img', {
  5998. alt: 'image',
  5999. className: 'img-circle',
  6000. src: '/res/logo/SkyHub-logo.png'
  6001. })), _jsx('div', {}, void 0, _jsx('small', {
  6002. className: 'pull-right text-navy'
  6003. }, void 0, '5h ago'), _jsx('strong', {}, void 0, 'Chris Johnatan Overtunk'), ' started following ', _jsx('strong', {}, void 0, 'Monica Smith'), '. ', _jsx('br', {}), _jsx('small', {
  6004. className: 'text-muted'
  6005. }, void 0, 'Yesterday 1:21 pm - 11.06.2014')))), _jsx('li', {
  6006. className: 'divider'
  6007. }), _jsx('li', {}, void 0, _jsx('div', {
  6008. className: 'dropdown-messages-box'
  6009. }, void 0, _jsx('a', {
  6010. href: 'profile.html',
  6011. className: 'pull-left'
  6012. }, void 0, _jsx('img', {
  6013. alt: 'image',
  6014. className: 'img-circle',
  6015. src: '/res/logo/SkyHub-logo.png'
  6016. })), _jsx('div', {}, void 0, _jsx('small', {
  6017. className: 'pull-right'
  6018. }, void 0, '23h ago'), _jsx('strong', {}, void 0, 'Monica Smith'), ' love ', _jsx('strong', {}, void 0, 'Kim Smith'), '. ', _jsx('br', {}), _jsx('small', {
  6019. className: 'text-muted'
  6020. }, void 0, '2 days ago at 2:30 am - 11.06.2014')))), _jsx('li', {
  6021. className: 'divider'
  6022. }), _jsx('li', {}, void 0, _jsx('div', {
  6023. className: 'text-center link-block'
  6024. }, void 0, _jsx('a', {
  6025. href: 'mailbox.html'
  6026. }, void 0, _jsx('i', {
  6027. className: 'fa fa-envelope'
  6028. }), ' ', _jsx('strong', {}, void 0, 'Read All Messages'))))));
  6029.  
  6030. var _ref4 = _jsx('li', {
  6031. className: 'dropdown'
  6032. }, void 0, _jsx('a', {
  6033. className: 'dropdown-toggle count-info',
  6034. 'data-toggle': 'dropdown',
  6035. href: '#'
  6036. }, void 0, _jsx('i', {
  6037. className: 'fa fa-bell'
  6038. }), ' ', _jsx('span', {
  6039. className: 'label label-primary'
  6040. }, void 0, '8')), _jsx('ul', {
  6041. className: 'dropdown-menu dropdown-alerts'
  6042. }, void 0, _jsx('li', {}, void 0, _jsx('a', {
  6043. href: 'mailbox.html'
  6044. }, void 0, _jsx('div', {}, void 0, _jsx('i', {
  6045. className: 'fa fa-envelope fa-fw'
  6046. }), ' You have 16 messages', _jsx('span', {
  6047. className: 'pull-right text-muted small'
  6048. }, void 0, '4 minutes ago')))), _jsx('li', {
  6049. className: 'divider'
  6050. }), _jsx('li', {}, void 0, _jsx('a', {
  6051. href: 'profile.html'
  6052. }, void 0, _jsx('div', {}, void 0, _jsx('i', {
  6053. className: 'fa fa-twitter fa-fw'
  6054. }), ' 3 New Followers', _jsx('span', {
  6055. className: 'pull-right text-muted small'
  6056. }, void 0, '12 minutes ago')))), _jsx('li', {
  6057. className: 'divider'
  6058. }), _jsx('li', {}, void 0, _jsx('a', {
  6059. href: 'grid_options.html'
  6060. }, void 0, _jsx('div', {}, void 0, _jsx('i', {
  6061. className: 'fa fa-upload fa-fw'
  6062. }), ' Server Rebooted', _jsx('span', {
  6063. className: 'pull-right text-muted small'
  6064. }, void 0, '4 minutes ago')))), _jsx('li', {
  6065. className: 'divider'
  6066. }), _jsx('li', {}, void 0, _jsx('div', {
  6067. className: 'text-center link-block'
  6068. }, void 0, _jsx('a', {
  6069. href: 'notifications.html'
  6070. }, void 0, _jsx('strong', {}, void 0, 'See All Alerts'), _jsx('i', {
  6071. className: 'fa fa-angle-right'
  6072. }))))));
  6073.  
  6074. var _ref5 = _jsx('i', {
  6075. className: 'fa fa-sign-out'
  6076. });
  6077.  
  6078. var _ref6 = _jsx('li', {}, void 0, _jsx('a', {
  6079. className: 'right-sidebar-toggle'
  6080. }, void 0, _jsx('i', {
  6081. className: 'fa fa-tasks'
  6082. })));
  6083.  
  6084. let AuthenticatedHeaderNavigationMenu = class AuthenticatedHeaderNavigationMenu extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  6085. constructor(...args) {
  6086. var _temp;
  6087.  
  6088. return _temp = super(...args), this.AuthService = null, _temp;
  6089. }
  6090.  
  6091. componentDidMount() {
  6092. requestAnimationFrame(() => {//Make sure it is on client only
  6093.  
  6094.  
  6095. });
  6096. }
  6097.  
  6098. handleLogout(e) {
  6099. e.preventDefault();e.stopPropagation();
  6100.  
  6101. __WEBPACK_IMPORTED_MODULE_2__services_REST_authentication_Auth_service__["a" /* default */].logout();
  6102. }
  6103.  
  6104. render() {
  6105.  
  6106. //console.log("######## AUTHENTICATED HEADER", this);
  6107.  
  6108. return _jsx('ul', {
  6109. className: 'nav navbar-top-links navbar-right'
  6110. }, void 0, _ref, _ref2, _ref3, _ref4, _jsx('li', {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_1__Link_Link__["a" /* default */], {
  6111. to: '/logout',
  6112. onClick: this.handleLogout.bind(this)
  6113. }, void 0, _ref5, ' Log out')), _ref6);
  6114. }
  6115. };
  6116.  
  6117.  
  6118. /* harmony default export */ __webpack_exports__["a"] = (AuthenticatedHeaderNavigationMenu);
  6119.  
  6120. /***/ }),
  6121. /* 66 */
  6122. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6123.  
  6124. "use strict";
  6125. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  6126. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  6127. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  6128. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  6129. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__AuthenticatedHeaderNavigationMenu__ = __webpack_require__(65);
  6130. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__NotAuthenticatedHeaderNavigationMenu__ = __webpack_require__(67);
  6131. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_redux__ = __webpack_require__(2);
  6132. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_redux__);
  6133. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  6134.  
  6135. var _class, _temp;
  6136.  
  6137.  
  6138.  
  6139.  
  6140.  
  6141.  
  6142.  
  6143.  
  6144.  
  6145.  
  6146. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_2__AuthenticatedHeaderNavigationMenu__["a" /* default */], {});
  6147.  
  6148. var _ref2 = _jsx(__WEBPACK_IMPORTED_MODULE_3__NotAuthenticatedHeaderNavigationMenu__["a" /* default */], {});
  6149.  
  6150. let HeaderNavigationMenu = (_temp = _class = class HeaderNavigationMenu extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  6151.  
  6152. constructor(props) {
  6153. super(props);
  6154. }
  6155.  
  6156. renderNavigationAuthenticated() {
  6157.  
  6158. return _ref;
  6159. }
  6160.  
  6161. renderNavigationNotAuthenticated() {
  6162.  
  6163. return _ref2;
  6164. }
  6165.  
  6166. render() {
  6167.  
  6168. //console.log("###### HEADER NAVIGATION",this);
  6169.  
  6170. if (typeof this.context.userAuthenticated !== "undefined" && this.context.userAuthenticated.user !== null) {
  6171.  
  6172. if (this.context.userAuthenticated.user.isLoggedIn()) return this.renderNavigationAuthenticated.call(this);
  6173. }
  6174.  
  6175. return this.renderNavigationNotAuthenticated.call(this);
  6176. }
  6177. }, _class.contextTypes = {
  6178. refAuthenticationModal: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any,
  6179. userAuthenticated: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.object
  6180. }, _temp);
  6181.  
  6182.  
  6183. function mapState(state) {
  6184. return {
  6185. userAuthenticated: state.userAuthenticated
  6186. };
  6187. };
  6188.  
  6189. function mapDispatch(dispatch) {
  6190. return {
  6191. dispatch: dispatch
  6192. };
  6193. };
  6194.  
  6195. /* harmony default export */ __webpack_exports__["a"] = (HeaderNavigationMenu);
  6196.  
  6197. /***/ }),
  6198. /* 67 */
  6199. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6200.  
  6201. "use strict";
  6202. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  6203. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  6204. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Link_Link__ = __webpack_require__(5);
  6205. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom__ = __webpack_require__(153);
  6206. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_dom___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_dom__);
  6207. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types__ = __webpack_require__(1);
  6208. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_prop_types__);
  6209. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_redux__ = __webpack_require__(2);
  6210. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_react_redux__);
  6211. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  6212.  
  6213. /**
  6214. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/10/2017.
  6215. * (C) BIT TECHNOLOGIES
  6216. */
  6217.  
  6218.  
  6219.  
  6220.  
  6221.  
  6222.  
  6223.  
  6224.  
  6225. var _ref = _jsx('li', {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_1__Link_Link__["a" /* default */], {
  6226. to: '/'
  6227. }, void 0, _jsx('i', {
  6228. className: 'fa fa-home'
  6229. }), _jsx('span', {
  6230. className: 'm-r-sm text-muted welcome-message'
  6231. }, void 0, 'Home')));
  6232.  
  6233. var _ref2 = _jsx('i', {
  6234. className: 'fa fa-sign-in'
  6235. });
  6236.  
  6237. var _ref3 = _jsx('span', {
  6238. className: 'm-r-sm text-muted welcome-message'
  6239. }, void 0, 'Log in');
  6240.  
  6241. var _ref4 = _jsx('i', {
  6242. className: 'fa fa-user-plus'
  6243. });
  6244.  
  6245. var _ref5 = _jsx('span', {
  6246. className: 'm-r-sm text-muted welcome-message'
  6247. }, void 0, 'Register');
  6248.  
  6249. let NotAuthenticatedHeaderNavigationMenu = class NotAuthenticatedHeaderNavigationMenu extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  6250.  
  6251. // static contextTypes = {
  6252. // refAuthenticationModal: PropTypes.any,
  6253. // };
  6254.  
  6255. handleSignIn(e) {
  6256. e.preventDefault();e.stopPropagation();
  6257. console.log("SIGN IN");
  6258.  
  6259. if (this.props.routerState !== null && this.props.routerState.refAuthenticationModal !== null) this.props.routerState.refAuthenticationModal.openLogin();
  6260.  
  6261. //using props & context
  6262. // if ((this.context.refAuthenticationModal !== null)&&(typeof this.context.refAuthenticationModal !== "undefined"))
  6263. // this.context.refAuthenticationModal.openLogin();
  6264. }
  6265.  
  6266. handleRegister(e) {
  6267. e.preventDefault();e.stopPropagation();
  6268.  
  6269. if (this.props.routerState !== null && this.props.routerState.refAuthenticationModal !== null) this.props.routerState.refAuthenticationModal.openRegistration();
  6270.  
  6271. // if ((this.context.refAuthenticationModal !== null)&&(typeof this.context.refAuthenticationModal !== "undefined"))
  6272. // this.context.refAuthenticationModal.openRegistration();
  6273. }
  6274.  
  6275. render() {
  6276.  
  6277. //console.log("######## NOT AUTHENTICATED HEADER", this);
  6278.  
  6279. return _jsx('ul', {
  6280. className: 'nav navbar-top-links navbar-right'
  6281. }, void 0, _ref, _jsx('li', {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_1__Link_Link__["a" /* default */], {
  6282. to: '/login',
  6283. onClick: this.handleSignIn.bind(this)
  6284. }, void 0, _ref2, _ref3)), _jsx('li', {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_1__Link_Link__["a" /* default */], {
  6285. to: '/register',
  6286. onClick: this.handleRegister.bind(this)
  6287. }, void 0, _ref4, _ref5)));
  6288. }
  6289. };
  6290.  
  6291.  
  6292. function mapState(state) {
  6293. return {
  6294. routerState: state.routerState
  6295. };
  6296. };
  6297.  
  6298. function mapDispatch(dispatch) {
  6299. return {
  6300. dispatch: dispatch
  6301. };
  6302. };
  6303.  
  6304. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_4_react_redux__["connect"])(mapState, mapDispatch)(NotAuthenticatedHeaderNavigationMenu));
  6305.  
  6306. /***/ }),
  6307. /* 68 */
  6308. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6309.  
  6310. "use strict";
  6311. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  6312. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  6313. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  6314. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  6315. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Link_Link__ = __webpack_require__(5);
  6316. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Header_Navigation_Menu_HeaderNavigationMenu__ = __webpack_require__(66);
  6317. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  6318.  
  6319. var _class, _temp;
  6320.  
  6321. /**
  6322. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/8/2017.
  6323. * (C) BIT TECHNOLOGIES
  6324. */
  6325.  
  6326.  
  6327.  
  6328.  
  6329.  
  6330.  
  6331.  
  6332. var _ref = _jsx('div', {
  6333. className: 'navbar-header'
  6334. }, void 0, _jsx('a', {
  6335. className: 'navbar-minimalize minimalize-styl-2 btn btn-primary ',
  6336. href: '#'
  6337. }, void 0, _jsx('i', {
  6338. className: 'fa fa-bars'
  6339. }), ' '), _jsx('form', {
  6340. role: 'search',
  6341. className: 'navbar-form-custom',
  6342. action: 'http://webapplayers.com/inspinia_admin-v2.7.1/search_results.html'
  6343. }, void 0, _jsx('div', {
  6344. className: 'form-group'
  6345. }, void 0, _jsx('input', {
  6346. type: 'text',
  6347. placeholder: 'Search for something...',
  6348. className: 'form-control',
  6349. name: 'top-search',
  6350. id: 'top-search'
  6351. }))));
  6352.  
  6353. var _ref2 = _jsx(__WEBPACK_IMPORTED_MODULE_3__Header_Navigation_Menu_HeaderNavigationMenu__["a" /* default */], {});
  6354.  
  6355. let TopNavbar = (_temp = _class = function () {
  6356. function TopNavbar(props) {
  6357.  
  6358. //console.log("###### TOP NAVBAR",this);
  6359.  
  6360. return _jsx('div', {
  6361. className: 'row border-bottom'
  6362. }, void 0, _jsx('nav', {
  6363. className: 'navbar navbar-static-top white-bg',
  6364. role: 'navigation',
  6365. style: { marginBottom: 0 }
  6366. }, void 0, _ref, _ref2));
  6367. }
  6368.  
  6369. return TopNavbar;
  6370. }(), _class.contextTypes = {
  6371. refAuthenticationModal: __WEBPACK_IMPORTED_MODULE_1_prop_types___default.a.any
  6372. }, _temp);
  6373.  
  6374.  
  6375. /* harmony default export */ __webpack_exports__["a"] = (TopNavbar);
  6376.  
  6377. /***/ }),
  6378. /* 69 */
  6379. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6380.  
  6381. "use strict";
  6382. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ModalComponent; });
  6383. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  6384. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  6385. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  6386.  
  6387. /**
  6388. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/11/2017.
  6389. * (C) BIT TECHNOLOGIES
  6390. */
  6391.  
  6392.  
  6393.  
  6394. var _ref = _jsx('button', {
  6395. type: 'button',
  6396. className: 'close',
  6397. 'data-dismiss': 'modal'
  6398. }, void 0, _jsx('span', {
  6399. 'aria-hidden': 'true'
  6400. }, void 0, '\xD7'), _jsx('span', {
  6401. className: 'sr-only'
  6402. }, void 0, 'Close'));
  6403.  
  6404. let ModalComponent = class ModalComponent extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  6405.  
  6406. constructor(props) {
  6407. super(props);
  6408.  
  6409. this.modalRef = null;
  6410. this.state = {
  6411. isModalOpen: props.showModal || true,
  6412.  
  6413. title: 'TITLE',
  6414. subTitle: 'SUB TITLE',
  6415. body: 'BODY',
  6416. closable: true,
  6417. buttons: [{ className: 'btn-white', closable: true, text: 'Close' }, { className: 'btn-primary', closable: false, text: 'Save' }],
  6418. animation: "animated flipInY"
  6419. };
  6420. }
  6421.  
  6422. showAlert(title, subTitle, body, buttons) {
  6423. this.setState({
  6424. title: title,
  6425. subTitle: subTitle,
  6426. body: body,
  6427. closable: true,
  6428. buttons: buttons,
  6429. animation: "animated flipInY"
  6430. });
  6431. this.showModal();
  6432. }
  6433.  
  6434. showModal() {
  6435. $(this.modalRef).modal("show");
  6436.  
  6437. this.setState({
  6438. isModalOpen: true
  6439. });
  6440. }
  6441.  
  6442. hideModal() {
  6443. $(this.modalRef).modal("hide");
  6444.  
  6445. this.setState({
  6446. isModalOpen: false
  6447. });
  6448. }
  6449.  
  6450. closeModal() {
  6451. this.hideModal();
  6452. }
  6453.  
  6454. handleToggle() {
  6455. if (this.state.isModalOpen === true) this.hideModal();else this.showModal();
  6456. }
  6457.  
  6458. renderButtons(buttons) {
  6459. let output = [];
  6460.  
  6461. if (typeof buttons === "undefined") return '';
  6462.  
  6463. for (let i = 0; i < buttons.length; i++) {
  6464. let button = buttons[i];
  6465. output.push(_jsx('button', {
  6466. type: 'button',
  6467. className: "btn " + buttons[i].className || '',
  6468. onClick: button.onClick || function () {},
  6469. 'data-dismiss': (button.closable || false) === true ? "modal" : ''
  6470. }, "modal" + this.props.modalId + "_Button" + i, ' ', button.text || '', ' '));
  6471. }
  6472.  
  6473. if (output === []) return '';
  6474.  
  6475. return _jsx('div', {
  6476. className: 'modal-footer'
  6477. }, void 0, output);
  6478. }
  6479.  
  6480. render() {
  6481.  
  6482. let body = this.props.body || this.state.body;
  6483. let children = this.props.children || null;
  6484.  
  6485. let title = this.props.title || this.state.title;
  6486. let subTitle = this.props.subTitle || this.state.subTitle;
  6487.  
  6488. let closable = this.props.closable || this.state.subTitle;
  6489.  
  6490. let buttons = this.props.buttons || this.state.buttons;
  6491.  
  6492. let animation = this.props.animation || this.state.animation;
  6493.  
  6494. return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
  6495. 'div',
  6496. { className: 'modal inmodal in', key: "modal" + this.props.modalId, ref: c => this.modalRef = c, role: 'dialog', 'aria-hidden': 'true' },
  6497. _jsx('div', {
  6498. className: 'modal-dialog'
  6499. }, void 0, _jsx('div', {
  6500. className: "modal-content " + (animation !== '' ? animation : '')
  6501. }, void 0, _jsx('div', {
  6502. className: 'modal-header'
  6503. }, void 0, closable === true ? _ref : '', title !== '' ? _jsx('h4', {
  6504. className: 'modal-title'
  6505. }, void 0, title) : '', subTitle !== '' ? _jsx('small', {
  6506. className: 'font-bold'
  6507. }, void 0, subTitle) : ''), body !== '' && typeof body !== "undefined" || children !== null ? _jsx('div', {
  6508. className: 'modal-body'
  6509. }, void 0, body !== '' ? _jsx('p', {}, void 0, body) : '', children) : '', buttons !== [] && buttons !== null && typeof buttons !== "undefined" ? this.renderButtons.call(this, buttons) : ''))
  6510. );
  6511. }
  6512.  
  6513. };
  6514.  
  6515.  
  6516. /***/ }),
  6517. /* 70 */
  6518. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6519.  
  6520. "use strict";
  6521. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AutocompleteSelect; });
  6522. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  6523. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  6524. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  6525. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  6526. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_select__ = __webpack_require__(17);
  6527. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_react_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_react_select__);
  6528. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_jsonp__ = __webpack_require__(148);
  6529. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_jsonp___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_jsonp__);
  6530. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  6531.  
  6532. /**
  6533. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/25/2017.
  6534. * (C) BIT TECHNOLOGIES
  6535. */
  6536.  
  6537.  
  6538.  
  6539.  
  6540.  
  6541. let AutocompleteSelect = class AutocompleteSelect extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  6542.  
  6543. constructor(props) {
  6544.  
  6545. super(props);
  6546.  
  6547. this.state = {
  6548. backspaceRemoves: false,
  6549. creatable: true,
  6550.  
  6551. value: props.value || ''
  6552. };
  6553. }
  6554.  
  6555. onChange(value) {
  6556. this.setState({
  6557. value: value
  6558. });
  6559.  
  6560. let answer;
  6561. if ((this.props.multi || false) === true) {
  6562. //multiple keywords
  6563.  
  6564. if (!Array.isArray(value)) value = [value];
  6565.  
  6566. answer = [];
  6567. value.forEach(function (element) {
  6568. answer.push(element.value);
  6569. });
  6570. } else //just value
  6571. answer = value;
  6572.  
  6573. console.log("AUTOCOMPLETE:: ", answer);
  6574.  
  6575. let onSelect = this.props.onSelect || function () {};
  6576. onSelect(answer);
  6577. }
  6578.  
  6579. getSuggestionsGitHub(input) {
  6580. if (!input) return Promise.resolve({ options: [] });
  6581.  
  6582. return fetch(`https://api.github.com/search/users?q=${input}`).then(response => response.json()).then(json => {
  6583. return { options: json.items };
  6584. });
  6585. }
  6586.  
  6587. //using Google http://google.com/complete/search?client=firefox&hl=ro&q=theory
  6588. getSuggestions(input) {
  6589.  
  6590. if (!input) return Promise.resolve({ options: [] });
  6591.  
  6592. return new Promise(resolve => {
  6593.  
  6594. __WEBPACK_IMPORTED_MODULE_3_jsonp___default()(`http://google.com/complete/search?client=firefox&hl=ro&q=${input}`, null, function (err, data) {
  6595. if (err) {
  6596. console.error('Error getting KEYWORDS ' + err.message);
  6597. } else {
  6598. //console.log({options: data[1]});
  6599.  
  6600. var keywords = data[1];
  6601. var optionsKeywords = [];
  6602. keywords.forEach(function (entry) {
  6603. optionsKeywords.push({
  6604. value: entry,
  6605. label: entry
  6606. });
  6607. });
  6608.  
  6609. //console.log({options: optionsKeywords});
  6610.  
  6611. resolve({ options: optionsKeywords });
  6612. }
  6613. });
  6614. });
  6615. }
  6616.  
  6617. render() {
  6618.  
  6619. const AsyncSelectComponent = this.state.creatable ? __WEBPACK_IMPORTED_MODULE_2_react_select___default.a.AsyncCreatable : __WEBPACK_IMPORTED_MODULE_2_react_select___default.a.Async;
  6620.  
  6621. return _jsx('div', {
  6622. className: 'section'
  6623. }, void 0, (this.props.label || '') !== '' ? _jsx('h3', {
  6624. className: 'section-heading'
  6625. }, void 0, this.props.label) : '', _jsx(AsyncSelectComponent, {
  6626. multi: this.props.multi || false,
  6627. value: this.state.value,
  6628. onChange: this.onChange.bind(this),
  6629. valueKey: 'value',
  6630. labelKey: 'label',
  6631. loadOptions: this.getSuggestions.bind(this),
  6632. backspaceRemoves: this.state.backspaceRemoves
  6633. }));
  6634. }
  6635. };
  6636.  
  6637.  
  6638. /***/ }),
  6639. /* 71 */
  6640. /***/ (function(module, exports) {
  6641.  
  6642. module.exports = [{ value: 'ad', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ad", label: "Andorra" }, { value: 'ae', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ae", label: "United Arab Emirates" }, { value: 'af', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag af", label: "Afghanistan" }, { value: 'ag', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ag", label: "Antigua and Barbuda" }, { value: 'ai', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ai", label: "Anguilla" }, { value: 'al', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag al", label: "Albania" }, { value: 'am', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag am", label: "Armenia" }, { value: 'an', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag an", label: "Netherlands Antilles" }, { value: 'ao', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ao", label: "Angola" }, { value: 'aq', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag aq", label: "Antarctica" }, { value: 'ar', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ar", label: "Argentina" }, { value: 'as', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag as", label: "American Samoa" }, { value: 'at', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag at", label: "Austria" }, { value: 'au', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag au", label: "Australia" }, { value: 'aw', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag aw", label: "Aruba" }, { value: 'ax', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ax", label: "Aland Islands" }, { value: 'az', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag az", label: "Azerbaijan" }, { value: 'ba', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ba", label: "Bosnia and Herzegovina" }, { value: 'bb', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bb", label: "Barbados" }, { value: 'bd', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bd", label: "Bangladesh" }, { value: 'be', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag be", label: "Belgium" }, { value: 'bf', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bf", label: "Burkina Faso" }, { value: 'bg', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bg", label: "Bulgaria" }, { value: 'bh', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bh", label: "Bahrain" }, { value: 'bi', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bi", label: "Burundi" }, { value: 'bj', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bj", label: "Benin" }, { value: 'bm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bm", label: "Bermuda" }, { value: 'bn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bn", label: "Brunei Darussalam" }, { value: 'bo', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bo", label: "Bolivia" }, { value: 'br', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag br", label: "Brazil" }, { value: 'bs', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bs", label: "Bahamas" }, { value: 'bt', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bt", label: "Bhutan" }, { value: 'bv', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bv", label: "Bouvet Island" }, { value: 'bw', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bw", label: "Botswana" }, { value: 'by', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag by", label: "Belarus" }, { value: 'bz', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag bz", label: "Belize" }, { value: 'ca', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ca", label: "Canada" }, { value: 'cc', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cc", label: "Cocos (Keeling) Islands" }, { value: 'cd', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cd", label: "Democratic Republic of the Congo" }, { value: 'cf', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cf", label: "Central African Republic" }, { value: 'cg', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cg", label: "Congo" }, { value: 'ch', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ch", label: "Switzerland" }, { value: 'ci', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ci", label: "Cote D'Ivoire (Ivory Coast)" }, { value: 'ck', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ck", label: "Cook Islands" }, { value: 'cl', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cl", label: "Chile" }, { value: 'cm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cm", label: "Cameroon" }, { value: 'cn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cn", label: "China" }, { value: 'co', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag co", label: "Colombia" }, { value: 'cr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cr", label: "Costa Rica" }, { value: 'cs', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cs", label: "Serbia and Montenegro" }, { value: 'cu', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cu", label: "Cuba" }, { value: 'cv', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cv", label: "Cape Verde" }, { value: 'cx', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cx", label: "Christmas Island" }, { value: 'cy', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cy", label: "Cyprus" }, { value: 'cz', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag cz", label: "Czech Republic" }, { value: 'de', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag de", label: "Germany" }, { value: 'dj', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag dj", label: "Djibouti" }, { value: 'dk', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag dk", label: "Denmark" }, { value: 'dm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag dm", label: "Dominica" }, { value: 'do', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag do", label: "Dominican Republic" }, { value: 'dz', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag dz", label: "Algeria" }, { value: 'ec', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ec", label: "Ecuador" }, { value: 'ee', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ee", label: "Estonia" }, { value: 'eg', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag eg", label: "Egypt" }, { value: 'eh', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag eh", label: "Western Sahara" }, { value: 'er', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag er", label: "Eritrea" }, { value: 'es', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag es", label: "Spain" }, { value: 'et', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag et", label: "Ethiopia" }, { value: 'fi', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag fi", label: "Finland" }, { value: 'fj', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag fj", label: "Fiji" }, { value: 'fk', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag fk", label: "Falkland Islands (Malvinas)" }, { value: 'fm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag fm", label: "Federated States of Micronesia" }, { value: 'fo', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag fo", label: "Faroe Islands" }, { value: 'fr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag fr", label: "France" }, { value: 'fx', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag fx", label: "France, Metropolitan" }, { value: 'ga', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ga", label: "Gabon" }, { value: 'gb', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gb", label: "Great Britain (UK)" }, { value: 'gd', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gd", label: "Grenada" }, { value: 'ge', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ge", label: "Georgia" }, { value: 'gf', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gf", label: "French Guiana" }, { value: 'gh', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gh", label: "Ghana" }, { value: 'gi', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gi", label: "Gibraltar" }, { value: 'gl', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gl", label: "Greenland" }, { value: 'gm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gm", label: "Gambia" }, { value: 'gn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gn", label: "Guinea" }, { value: 'gp', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gp", label: "Guadeloupe" }, { value: 'gq', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gq", label: "Equatorial Guinea" }, { value: 'gr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gr", label: "Greece" }, { value: 'gs', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gs", label: "S. Georgia and S. Sandwich Islands" }, { value: 'gt', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gt", label: "Guatemala" }, { value: 'gu', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gu", label: "Guam" }, { value: 'gw', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gw", label: "Guinea-Bissau" }, { value: 'gy', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag gy", label: "Guyana" }, { value: 'hk', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag hk", label: "Hong Kong" }, { value: 'hm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag hm", label: "Heard Island and McDonald Islands" }, { value: 'hn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag hn", label: "Honduras" }, { value: 'hr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag hr", label: "Croatia (Hrvatska)" }, { value: 'ht', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ht", label: "Haiti" }, { value: 'hu', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag hu", label: "Hungary" }, { value: 'id', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag id", label: "Indonesia" }, { value: 'ie', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ie", label: "Ireland" }, { value: 'il', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag il", label: "Israel" }, { value: 'in', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag in", label: "India" }, { value: 'io', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag io", label: "British Indian Ocean Territory" }, { value: 'iq', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag iq", label: "Iraq" }, { value: 'ir', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ir", label: "Iran" }, { value: 'is', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag is", label: "Iceland" }, { value: 'it', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag it", label: "Italy" }, { value: 'jm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag jm", label: "Jamaica" }, { value: 'jo', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag jo", label: "Jordan" }, { value: 'jp', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag jp", label: "Japan" }, { value: 'ke', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ke", label: "Kenya" }, { value: 'kg', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag kg", label: "Kyrgyzstan" }, { value: 'kh', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag kh", label: "Cambodia" }, { value: 'ki', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ki", label: "Kiribati" }, { value: 'km', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag km", label: "Comoros" }, { value: 'kn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag kn", label: "Saint Kitts and Nevis" }, { value: 'kp', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag kp", label: "Korea (North)" }, { value: 'kr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag kr", label: "Korea (South)" }, { value: 'kw', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag kw", label: "Kuwait" }, { value: 'ky', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ky", label: "Cayman Islands" }, { value: 'kz', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag kz", label: "Kazakhstan" }, { value: 'la', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag la", label: "Laos" }, { value: 'lb', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag lb", label: "Lebanon" }, { value: 'lc', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag lc", label: "Saint Lucia" }, { value: 'li', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag li", label: "Liechtenstein" }, { value: 'lk', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag lk", label: "Sri Lanka" }, { value: 'lr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag lr", label: "Liberia" }, { value: 'ls', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ls", label: "Lesotho" }, { value: 'lt', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag lt", label: "Lithuania" }, { value: 'lu', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag lu", label: "Luxembourg" }, { value: 'lv', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag lv", label: "Latvia" }, { value: 'ly', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ly", label: "Libya" }, { value: 'ma', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ma", label: "Morocco" }, { value: 'mc', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mc", label: "Monaco" }, { value: 'md', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag md", label: "Moldova" }, { value: 'mg', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mg", label: "Madagascar" }, { value: 'mh', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mh", label: "Marshall Islands" }, { value: 'mk', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mk", label: "Macedonia" }, { value: 'ml', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ml", label: "Mali" }, { value: 'mm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mm", label: "Myanmar" }, { value: 'mn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mn", label: "Mongolia" }, { value: 'mo', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mo", label: "Macao" }, { value: 'mp', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mp", label: "Northern Mariana Islands" }, { value: 'mq', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mq", label: "Martinique" }, { value: 'mr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mr", label: "Mauritania" }, { value: 'ms', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ms", label: "Montserrat" }, { value: 'mt', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mt", label: "Malta" }, { value: 'mu', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mu", label: "Mauritius" }, { value: 'mv', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mv", label: "Maldives" }, { value: 'mw', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mw", label: "Malawi" }, { value: 'mx', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mx", label: "Mexico" }, { value: 'my', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag my", label: "Malaysia" }, { value: 'mz', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag mz", label: "Mozambique" }, { value: 'na', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag na", label: "Namibia" }, { value: 'nc', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag nc", label: "New Caledonia" }, { value: 'ne', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ne", label: "Niger" }, { value: 'nf', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag nf", label: "Norfolk Island" }, { value: 'ng', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ng", label: "Nigeria" }, { value: 'ni', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ni", label: "Nicaragua" }, { value: 'nl', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag nl", label: "Netherlands" }, { value: 'no', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag no", label: "Norway" }, { value: 'np', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag np", label: "Nepal" }, { value: 'nr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag nr", label: "Nauru" }, { value: 'nu', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag nu", label: "Niue" }, { value: 'nz', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag nz", label: "New Zealand (Aotearoa)" }, { value: 'om', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag om", label: "Oman" }, { value: 'pa', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pa", label: "Panama" }, { value: 'pe', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pe", label: "Peru" }, { value: 'pf', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pf", label: "French Polynesia" }, { value: 'pg', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pg", label: "Papua New Guinea" }, { value: 'ph', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ph", label: "Philippines" }, { value: 'pk', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pk", label: "Pakistan" }, { value: 'pl', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pl", label: "Poland" }, { value: 'pm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pm", label: "Saint Pierre and Miquelon" }, { value: 'pn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pn", label: "Pitcairn" }, { value: 'pr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pr", label: "Puerto Rico" }, { value: 'ps', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ps", label: "Palestinian Territory" }, { value: 'pt', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pt", label: "Portugal" }, { value: 'pw', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag pw", label: "Palau" }, { value: 'py', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag py", label: "Paraguay" }, { value: 'qa', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag qa", label: "Qatar" }, { value: 're', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag re", label: "Reunion" }, { value: 'ro', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ro", label: "Romania" }, { value: 'ru', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ru", label: "Russian Federation" }, { value: 'rw', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag rw", label: "Rwanda" }, { value: 'sa', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sa", label: "Saudi Arabia" }, { value: 'sb', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sb", label: "Solomon Islands" }, { value: 'sc', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sc", label: "Seychelles" }, { value: 'sd', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sd", label: "Sudan" }, { value: 'se', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag se", label: "Sweden" }, { value: 'sg', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sg", label: "Singapore" }, { value: 'sh', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sh", label: "Saint Helena" }, { value: 'si', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag si", label: "Slovenia" }, { value: 'sj', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sj", label: "Svalbard and Jan Mayen" }, { value: 'sk', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sk", label: "Slovakia" }, { value: 'sl', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sl", label: "Sierra Leone" }, { value: 'sm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sm", label: "San Marino" }, { value: 'sn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sn", label: "Senegal" }, { value: 'so', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag so", label: "Somalia" }, { value: 'sr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sr", label: "Suriname" }, { value: 'st', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag st", label: "Sao Tome and Principe" }, { value: 'su', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag su", label: "USSR (former)" }, { value: 'sv', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sv", label: "El Salvador" }, { value: 'sy', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sy", label: "Syria" }, { value: 'sz', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag sz", label: "Swaziland" }, { value: 'tc', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tc", label: "Turks and Caicos Islands" }, { value: 'td', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag td", label: "Chad" }, { value: 'tf', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tf", label: "French Southern Territories" }, { value: 'tg', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tg", label: "Togo" }, { value: 'th', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag th", label: "Thailand" }, { value: 'tj', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tj", label: "Tajikistan" }, { value: 'tk', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tk", label: "Tokelau" }, { value: 'tl', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tl", label: "Timor-Leste" }, { value: 'tm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tm", label: "Turkmenistan" }, { value: 'tn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tn", label: "Tunisia" }, { value: 'to', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag to", label: "Tonga" }, { value: 'tp', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tp", label: "East Timor" }, { value: 'tr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tr", label: "Turkey" }, { value: 'tt', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tt", label: "Trinidad and Tobago" }, { value: 'tv', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tv", label: "Tuvalu" }, { value: 'tw', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tw", label: "Taiwan" }, { value: 'tz', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag tz", label: "Tanzania" }, { value: 'ua', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ua", label: "Ukraine" }, { value: 'ug', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ug", label: "Uganda" }, { value: 'uk', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag uk", label: "United Kingdom" }, { value: 'um', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag um", label: "United States Minor Outlying Islands" }, { value: 'us', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag us", label: "United States" }, { value: 'uy', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag uy", label: "Uruguay" }, { value: 'uz', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag uz", label: "Uzbekistan" }, { value: 'va', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag va", label: "Vatican City State (Holy See)" }, { value: 'vc', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag vc", label: "Saint Vincent and the Grenadines" }, { value: 've', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ve", label: "Venezuela" }, { value: 'vg', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag vg", label: "Virgin Islands (British)" }, { value: 'vi', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag vi", label: "Virgin Islands (U.S.)" }, { value: 'vn', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag vn", label: "Viet Nam" }, { value: 'vu', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag vu", label: "Vanuatu" }, { value: 'wf', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag wf", label: "Wallis and Futuna" }, { value: 'ws', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ws", label: "Samoa" }, { value: 'ye', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag ye", label: "Yemen" }, { value: 'yt', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag yt", label: "Mayotte" }, { value: 'yu', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag yu", label: "Yugoslavia (former)" }, { value: 'za', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag za", label: "South Africa" }, { value: 'zm', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag zm", label: "Zambia" }, { value: 'zr', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag zr", label: "Zaire (former)" }, { value: 'zw', flag: "http://www.marghoobsuleman.com/mywork/jcomponents/image-dropdown/samples/images/msdropdown/icons/blank.gif", imageCSS: "flag zw", label: "Zimbabwe" }];
  6643.  
  6644. /***/ }),
  6645. /* 72 */
  6646. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6647.  
  6648. "use strict";
  6649. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ButtonsContent; });
  6650. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  6651. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  6652. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  6653. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  6654. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_REST_authentication_Auth_service__ = __webpack_require__(3);
  6655. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__forums_components_AddForum_form_component__ = __webpack_require__(74);
  6656. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  6657.  
  6658. /**
  6659. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/24/2017.
  6660. * (C) BIT TECHNOLOGIES
  6661. */
  6662.  
  6663.  
  6664.  
  6665.  
  6666.  
  6667.  
  6668.  
  6669.  
  6670. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_3__forums_components_AddForum_form_component__["a" /* default */], {});
  6671.  
  6672. var _ref2 = _jsx(__WEBPACK_IMPORTED_MODULE_3__forums_components_AddForum_form_component__["a" /* default */], {});
  6673.  
  6674. let ButtonsContent = class ButtonsContent extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  6675.  
  6676. constructor(props) {
  6677. super(props);
  6678.  
  6679. console.log("FORUM BUTTONS CONSTRUCTOR");
  6680. this.state = {
  6681. showAddTopicForm: props.showAddTopicForm || false,
  6682. showAddForumForm: props.showAddForumForm || false,
  6683. showAddReplyForm: props.showAddReplyForm || false,
  6684.  
  6685. btnAddTopic: props.btnAddTopic || true,
  6686. btnAddForum: props.btnAddForum || true,
  6687. btnAddReply: props.btnAddReply || true
  6688. };
  6689. }
  6690.  
  6691. handleAddForum(e) {
  6692. //e.preventDefault(); e.stopPropagation();
  6693.  
  6694. this.setState({
  6695. showAddForumForm: true
  6696. });
  6697. }
  6698.  
  6699. handleAddTopic(e) {
  6700. e.preventDefault();e.stopPropagation();
  6701. }
  6702.  
  6703. handleAddReply(e) {
  6704. e.preventDefault();e.stopPropagation();
  6705. }
  6706.  
  6707. showAddForum() {
  6708. console.log('a mers222');
  6709. return _ref;
  6710. }
  6711.  
  6712. showAddTopic() {
  6713. return _ref2;
  6714. }
  6715.  
  6716. render() {
  6717.  
  6718. return _jsx('div', {
  6719. className: 'row'
  6720. }, void 0, console.log(this.state), _jsx('div', {
  6721. style: { paddingTop: 20 }
  6722. }, void 0, this.state.btnAddForum ? _jsx('button', {
  6723. type: 'button',
  6724. className: 'btn btn-warning dim btn-rounded',
  6725. 'data-toggle': 'button',
  6726. 'aria-pressed': 'true',
  6727. onClick: this.handleAddForum.bind(this),
  6728. style: { marginRight: 5 }
  6729. }, void 0, _jsx('i', {
  6730. className: 'fa fa-users',
  6731. style: { marginRight: 5 }
  6732. }), 'Forum') : '', this.state.btnAddTopic ? _jsx('button', {
  6733. type: 'button',
  6734. className: 'btn btn-success dim btn-rounded',
  6735. onClick: this.handleAddTopic.bind(this),
  6736. style: { marginRight: 5 }
  6737. }, void 0, _jsx('i', {
  6738. className: 'fa fa-pencil',
  6739. style: { marginRight: 5 }
  6740. }), 'Topic') : '', this.state.btnAddReply ? _jsx('button', {
  6741. type: 'button',
  6742. className: 'btn btn-danger dim btn-rounded',
  6743. onClick: this.handleAddTopic.bind(this),
  6744. style: { marginRight: 5 }
  6745. }, void 0, _jsx('i', {
  6746. className: 'fa fa-comment',
  6747. style: { marginRight: 5 }
  6748. }), 'Reply') : ''), this.state.showAddForumForm ? this.showAddForum() : '');
  6749. }
  6750. };
  6751.  
  6752.  
  6753. /***/ }),
  6754. /* 73 */
  6755. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6756.  
  6757. "use strict";
  6758. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  6759. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  6760. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  6761. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  6762. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_REST_authentication_Auth_service__ = __webpack_require__(3);
  6763. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_REST_forums_content_ContentObject_service__ = __webpack_require__(31);
  6764. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__forums_models_Forum_model__ = __webpack_require__(6);
  6765. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__forums_view_forum_PreviewForum_component__ = __webpack_require__(25);
  6766. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  6767.  
  6768. /**
  6769. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/4/2017.
  6770. * (C) BIT TECHNOLOGIES
  6771. */
  6772.  
  6773.  
  6774.  
  6775.  
  6776.  
  6777.  
  6778.  
  6779.  
  6780.  
  6781.  
  6782. let PreviewContent = class PreviewContent extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  6783.  
  6784. constructor(props) {
  6785. super(props);
  6786. }
  6787.  
  6788. renderForum() {
  6789. let forum = new __WEBPACK_IMPORTED_MODULE_4__forums_models_Forum_model__["a" /* default */](this.props.object);
  6790.  
  6791. return _jsx(__WEBPACK_IMPORTED_MODULE_5__forums_view_forum_PreviewForum_component__["a" /* default */], {
  6792. forum: forum
  6793. }, forum.id);
  6794. }
  6795.  
  6796. render() {
  6797.  
  6798. let extractedIdData = __WEBPACK_IMPORTED_MODULE_3__services_REST_forums_content_ContentObject_service__["a" /* default */].extractDataFromIds(this.props.object.id);
  6799. let objectType = extractedIdData.objectType || '';
  6800.  
  6801. switch (objectType) {
  6802. case 'frm':
  6803. return this.renderForum();
  6804. case 'us':
  6805. return this.renderForum();
  6806. case 'top':
  6807. return this.renderForum();
  6808. }
  6809. }
  6810. };
  6811.  
  6812.  
  6813. function mapState(state) {
  6814. return {
  6815. userAuthenticated: state.userAuthenticated
  6816. };
  6817. };
  6818.  
  6819. function mapDispatch(dispatch) {
  6820. return {
  6821. dispatch: dispatch
  6822. };
  6823. };
  6824.  
  6825. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(PreviewContent));
  6826.  
  6827. /***/ }),
  6828. /* 74 */
  6829. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  6830.  
  6831. "use strict";
  6832. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  6833. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  6834. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  6835. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  6836. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_REST_forums_forums_Forums_service__ = __webpack_require__(14);
  6837. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__client_components_util_components_select_Autocomplete_select_component__ = __webpack_require__(70);
  6838. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__client_components_util_components_select_MyCountry_select_component__ = __webpack_require__(23);
  6839. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_select__ = __webpack_require__(17);
  6840. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5_react_select___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_5_react_select__);
  6841. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  6842.  
  6843. /**
  6844. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/16/2017.
  6845. * (C) BIT TECHNOLOGIES
  6846. */
  6847.  
  6848.  
  6849.  
  6850.  
  6851.  
  6852.  
  6853.  
  6854.  
  6855.  
  6856.  
  6857. var _ref = _jsx('div', {
  6858. className: 'panel-heading'
  6859. }, void 0, _jsx('h2', {}, void 0, 'Create a ', _jsx('strong', {}, void 0, 'Forum')));
  6860.  
  6861. var _ref2 = _jsx('span', {
  6862. className: 'input-group-addon'
  6863. }, void 0, _jsx('i', {
  6864. className: 'fa fa-header'
  6865. }));
  6866.  
  6867. var _ref3 = _jsx('br', {});
  6868.  
  6869. var _ref4 = _jsx('span', {
  6870. className: 'input-group-addon'
  6871. }, void 0, _jsx('i', {
  6872. className: 'fa fa-info'
  6873. }));
  6874.  
  6875. var _ref5 = _jsx('br', {});
  6876.  
  6877. var _ref6 = _jsx('span', {
  6878. className: 'input-group-addon'
  6879. }, void 0, _jsx('i', {
  6880. className: 'fa fa-tags'
  6881. }));
  6882.  
  6883. var _ref7 = _jsx('br', {});
  6884.  
  6885. var _ref8 = _jsx('span', {
  6886. className: 'input-group-addon'
  6887. }, void 0, _jsx('i', {
  6888. className: 'fa fa-flag'
  6889. }));
  6890.  
  6891. var _ref9 = _jsx('br', {});
  6892.  
  6893. var _ref10 = _jsx('span', {
  6894. className: 'input-group-addon'
  6895. }, void 0, _jsx('i', {
  6896. className: 'fa fa-institution'
  6897. }));
  6898.  
  6899. var _ref11 = _jsx('br', {});
  6900.  
  6901. var _ref12 = _jsx('i', {
  6902. className: 'fa fa-plus'
  6903. });
  6904.  
  6905. let AddForumForm = class AddForumForm extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  6906.  
  6907. constructor(props) {
  6908. super(props);
  6909.  
  6910. this.state = {
  6911.  
  6912. title: '',
  6913. description: '',
  6914. keywords: [],
  6915. countryCode: '', country: '',
  6916. city: '',
  6917. language: '',
  6918. latitude: 0, longitude: 0,
  6919.  
  6920. parentName: '',
  6921. parentId: '',
  6922.  
  6923. titleValidationStatus: [null, ''],
  6924. descriptionValidationStatus: [null, ''],
  6925. keywordsValidationStatus: [null, ''],
  6926. countryValidationStatus: [null, ''],
  6927. cityValidationStatus: [null, '']
  6928. };
  6929. }
  6930.  
  6931. handleAddForum(e) {
  6932.  
  6933. if (typeof e !== "undefined") {
  6934. e.preventDefault();
  6935. e.stopPropagation();
  6936. }
  6937.  
  6938. var onSuccess = this.props.onSuccess || function () {};
  6939. var onError = this.props.onError || function () {};
  6940.  
  6941. var titleValidationStatus = [null, ''],
  6942. descriptionValidationStatus = [null, ''],
  6943. keywordsValidationStatus = [null, ''],
  6944. countryValidationStatus = [null, ''],
  6945. cityValidationStatus = [null, ''];
  6946.  
  6947. var bValidationError = false;
  6948. this.setState({
  6949. titleValidationStatus: titleValidationStatus,
  6950. descriptionValidationStatus: descriptionValidationStatus,
  6951. keywordsValidationStatus: keywordsValidationStatus,
  6952. countryValidationStatus: countryValidationStatus,
  6953. cityValidationStatus: cityValidationStatus
  6954. });
  6955.  
  6956. console.log('ADDing forum... ');
  6957.  
  6958. let sCountryCode = this.state.countryCode;
  6959. if (sCountryCode === '') sCountryCode = this.props.localization.countryCode;
  6960.  
  6961. let sCity = this.state.city;
  6962. if (sCity === '') sCity = this.props.localization.city;
  6963.  
  6964. if (!bValidationError) __WEBPACK_IMPORTED_MODULE_2__services_REST_forums_forums_Forums_service__["a" /* default */].forumAddAsync(this.state.parentId, this.state.title, this.state.description, this.state.keywords, sCountryCode, '', sCity, this.state.latitude, this.state.longitude, this.state.timeZone).then(res => {
  6965.  
  6966. console.log("ANSWER FROM adding forum", res);
  6967.  
  6968. if (res.result === true) {
  6969. onSuccess(res);
  6970. } else if (res.result === false) {
  6971.  
  6972. if (typeof res.errors.title !== "undefined" && Object.keys(res.errors.title).length !== 0) titleValidationStatus = ["error", this.convertValidationErrorToString(res.errors.title[0])];
  6973. if (typeof res.errors.description !== "undefined" && Object.keys(res.errors.description).length !== 0) descriptionValidationStatus = ["error", this.convertValidationErrorToString(res.errors.description[0])];
  6974. if (typeof res.errors.keywords !== "undefined" && Object.keys(res.errors.keywords).length !== 0) keywordsValidationStatus = ["error", this.convertValidationErrorToString(res.errors.keywords[0])];
  6975. if (typeof res.errors.country !== "undefined" && Object.keys(res.errors.country).length !== 0) countryValidationStatus = ["error", this.convertValidationErrorToString(res.errors.country[0])];
  6976. if (typeof res.errors.city !== "undefined" && Object.keys(res.errors.city).length !== 0) cityValidationStatus = ["error", this.convertValidationErrorToString(res.errors.city[0])];
  6977.  
  6978. //in case there are no other errors, except the fact that I am not logged In
  6979. if (typeof res.errors.authorId !== "undefined" && Object.keys(res.errors.authorId).length !== 0) if (titleValidationStatus[0] === null && descriptionValidationStatus[0] === null && keywordsValidationStatus[0] === null && countryValidationStatus[0] === null && cityValidationStatus[0] === null) this.openLogin();
  6980.  
  6981. this.setState({
  6982. titleValidationStatus: titleValidationStatus,
  6983. descriptionValidationStatus: descriptionValidationStatus,
  6984. keywordsValidationStatus: keywordsValidationStatus,
  6985. countryValidationStatus: countryValidationStatus,
  6986. cityValidationStatus: cityValidationStatus
  6987. });
  6988.  
  6989. onError(res);
  6990. }
  6991. });
  6992. }
  6993.  
  6994. handleTitleChangeSelect(value) {
  6995. this.setState({
  6996. title: value,
  6997. titleValidationStatus: [null, '']
  6998. });
  6999. }
  7000.  
  7001. handleTitleChange(e) {
  7002. this.handleTitleChangeSelect(e.target.value);
  7003. }
  7004.  
  7005. handleDescriptionChange(e) {
  7006. this.setState({
  7007. description: e.target.value,
  7008. descriptionValidationStatus: [null, '']
  7009. });
  7010. }
  7011.  
  7012. handleKeywordsSelect(value) {
  7013. this.setState({
  7014. keywords: value,
  7015. keywordsValidationStatus: [null, '']
  7016. });
  7017.  
  7018. console.log("KEYWORDS SELECTED: ", value);
  7019. }
  7020.  
  7021. handleCountrySelect(val) {
  7022. this.setState({
  7023. country: val.label,
  7024. countryCode: val.value,
  7025.  
  7026. countryValidationStatus: [null, '']
  7027. });
  7028.  
  7029. console.log("values selected are:", val);
  7030. }
  7031.  
  7032. handleCityChange(e) {
  7033. this.setState({
  7034. city: e.target.value,
  7035. cityValidationStatus: null, cityValidationStatusText: ''
  7036. });
  7037. }
  7038.  
  7039. openLogin() {
  7040.  
  7041. if (typeof this.props.routerState.refAuthenticationModal !== "undefined") {
  7042. this.props.routerState.refAuthenticationModal.setOnSuccessEvent(this.authenticationSuccessfully);
  7043. this.props.routerState.refAuthenticationModal.openLogin();
  7044. }
  7045. }
  7046.  
  7047. authenticationSuccessfully(resource) {
  7048. this.handleAddForum();
  7049. }
  7050.  
  7051. convertValidationErrorToString(error) {
  7052. if (error === "notUnique") return "Already exists in the Database";else if (error === "notEmpty") return "It's empty";else if (error === "validateUsername") return " Invalid username";else if (error === "validateKeywords") return " Too few keywords. Minimum 3";
  7053.  
  7054. return error;
  7055. }
  7056. //https://www.w3schools.com/bootstrap/bootstrap_forms_inputs2.asp DOC
  7057. showInputStatus(status) {
  7058. return status[0] === 'error' ? "has-error has-feedback" : status[0] === 'success' ? "has-success has-feedback" : '';
  7059. }
  7060. showInputFeedback(status) {
  7061. return status[0] === 'error' ? "fa fa-remove form-control-feedback" : status[0] === 'success' ? "fa fa-check form-control-feedback" : '';
  7062. }
  7063.  
  7064. render() {
  7065.  
  7066. return _jsx('div', {
  7067. className: 'col-sm-8 col-sm-offset-2',
  7068. style: { padding: 0 }
  7069. }, void 0, _jsx('div', {
  7070. className: 'panel panel-warning'
  7071. }, void 0, _ref, _jsx('div', {
  7072. className: 'panel-body'
  7073. }, void 0, _jsx('form', {
  7074. onSubmit: this.handleAddForum.bind(this),
  7075. autoComplete: 'on'
  7076. }, void 0, _jsx('div', {
  7077. className: "input-group " + this.showInputStatus(this.state.titleValidationStatus)
  7078. }, void 0, _ref2, _jsx('input', {
  7079. autoFocus: true,
  7080. type: 'text',
  7081. className: 'form-control input-lg',
  7082. placeholder: 'title',
  7083. name: 'title',
  7084. value: this.state.title,
  7085. onChange: this.handleTitleChange.bind(this)
  7086. }), _jsx('span', {
  7087. className: this.showInputFeedback.call(this, this.state.titleValidationStatus)
  7088. })), _jsx('label', {
  7089. className: 'error'
  7090. }, void 0, this.state.titleValidationStatus[1]), ' ', _ref3, _jsx('div', {
  7091. className: "input-group " + this.showInputStatus(this.state.descriptionValidationStatus)
  7092. }, void 0, _ref4, _jsx('textarea', {
  7093. type: 'text',
  7094. className: 'form-control input-lg',
  7095. rows: '5',
  7096. placeholder: 'description',
  7097. name: 'description',
  7098. value: this.state.description,
  7099. onChange: this.handleDescriptionChange.bind(this)
  7100. }), _jsx('span', {
  7101. className: this.showInputFeedback.call(this, this.state.descriptionValidationStatus)
  7102. })), _jsx('label', {
  7103. className: 'error'
  7104. }, void 0, this.state.descriptionValidationStatus[1]), ' ', _ref5, _jsx('div', {
  7105. className: "input-group " + this.showInputStatus(this.state.keywordsValidationStatus)
  7106. }, void 0, _ref6, _jsx(__WEBPACK_IMPORTED_MODULE_3__client_components_util_components_select_Autocomplete_select_component__["a" /* default */], {
  7107. controlId: 'keywordsSelect',
  7108. value: this.state.keywords,
  7109. multi: true,
  7110. onSelect: this.handleKeywordsSelect.bind(this),
  7111. style: { zIndex: 0 }
  7112. }), _jsx('span', {
  7113. className: this.showInputFeedback.call(this, this.state.keywordsValidationStatus)
  7114. })), _jsx('label', {
  7115. className: 'error'
  7116. }, void 0, this.state.keywordsValidationStatus[1]), ' ', _ref7, _jsx('div', {
  7117. className: 'row'
  7118. }, void 0, _jsx('div', {
  7119. className: 'col-sm-6'
  7120. }, void 0, _jsx('div', {
  7121. className: "input-group " + this.showInputStatus(this.state.countryValidationStatus)
  7122. }, void 0, _ref8, _jsx(__WEBPACK_IMPORTED_MODULE_4__client_components_util_components_select_MyCountry_select_component__["a" /* default */], {
  7123. initialCountry: this.props.localization.countryCode || '',
  7124. onSelect: this.handleCountrySelect.bind(this)
  7125. }), _jsx('span', {
  7126. className: this.showInputFeedback.call(this, this.state.countryValidationStatus)
  7127. })), _jsx('label', {
  7128. className: 'error'
  7129. }, void 0, this.state.countryValidationStatus[1]), ' ', _ref9), _jsx('div', {
  7130. className: 'col-sm-6',
  7131. style: { paddingBottom: 5 }
  7132. }, void 0, _jsx('div', {
  7133. className: "input-group " + this.showInputStatus(this.state.cityValidationStatus)
  7134. }, void 0, _ref10, _jsx('input', {
  7135. type: 'text',
  7136. className: 'form-control input-lg',
  7137. placeholder: 'city',
  7138. value: this.props.localization.city || this.state.city,
  7139. onChange: this.handleCityChange.bind(this)
  7140. }), _jsx('span', {
  7141. className: this.showInputFeedback.call(this, this.state.cityValidationStatus)
  7142. })), _jsx('label', {
  7143. className: 'error'
  7144. }, void 0, this.state.cityValidationStatus[1]), ' ', _ref11)))), _jsx('div', {
  7145. className: 'panel-footer text-right',
  7146. style: { paddingTop: 20, paddingBottom: 20, paddingRight: 20 }
  7147. }, void 0, _jsx('button', {
  7148. className: 'btn btn-primary',
  7149. type: 'button',
  7150. onClick: this.handleAddForum.bind(this)
  7151. }, void 0, ' ', _ref12, ' Create Forum'))));
  7152. }
  7153. };
  7154.  
  7155.  
  7156. function mapState(state) {
  7157. return {
  7158. userAuthenticated: state.userAuthenticated,
  7159. routerState: state.routerState,
  7160. localization: state.localization
  7161. };
  7162. };
  7163.  
  7164. function mapDispatch(dispatch) {
  7165. return {
  7166. dispatch: dispatch
  7167. };
  7168. };
  7169.  
  7170. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(AddForumForm));
  7171.  
  7172. /***/ }),
  7173. /* 75 */
  7174. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7175.  
  7176. "use strict";
  7177. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  7178. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  7179. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__login_login_form__ = __webpack_require__(26);
  7180. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__registration_registration_form__ = __webpack_require__(28);
  7181. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__client_components_util_components_modals_Modal_component__ = __webpack_require__(69);
  7182.  
  7183.  
  7184.  
  7185.  
  7186.  
  7187.  
  7188.  
  7189. let AuthenticationModal = class AuthenticationModal extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  7190.  
  7191. constructor(props) {
  7192. super(props);
  7193.  
  7194. this.refModal = null;
  7195. this.loginRef = null;
  7196. this.registrationRef = null;
  7197. this.state = { modalType: 'login', modalTitle: 'Login', onSuccess: function () {} };
  7198. }
  7199.  
  7200. setOnSuccessEvent(onSuccess) {
  7201. this.setState({
  7202. onSuccess: onSuccess || function () {}
  7203. });
  7204. }
  7205.  
  7206. close() {
  7207. this.refModal.closeModal();
  7208. }
  7209.  
  7210. open() {
  7211. this.refModal.showAlert();
  7212. }
  7213.  
  7214. setLogin() {
  7215. this.setState({
  7216. modalType: "login",
  7217. modalTitle: "Login to SkyHub"
  7218. });
  7219. }
  7220.  
  7221. openLogin() {
  7222.  
  7223. this.setLogin();
  7224. this.open("login");
  7225. }
  7226.  
  7227. setRegistration() {
  7228. this.setState({
  7229. modalType: "registration",
  7230. modalTitle: "Register to SkyHub"
  7231. });
  7232. }
  7233.  
  7234. openRegistration() {
  7235. this.setRegistration();
  7236. this.open("registration");
  7237. }
  7238.  
  7239. renderLogin() {
  7240. return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__login_login_form__["a" /* default */], { ref: c => this.loginRef = c, onSuccess: this.loginSuccess.bind(this), onSwitch: this.switchLoginToRegistration.bind(this) });
  7241. }
  7242.  
  7243. renderRegistration() {
  7244. return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__registration_registration_form__["a" /* default */], { ref: c => this.registrationRef = c, onSuccess: this.registrationSuccess.bind(this), onSwitch: this.switchRegistrationToLogin.bind(this) });
  7245. }
  7246.  
  7247. render() {
  7248.  
  7249. return __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
  7250. __WEBPACK_IMPORTED_MODULE_3__client_components_util_components_modals_Modal_component__["a" /* default */],
  7251. { modalId: 'AuthenticationModal', ref: c => this.refModal = c, title: this.state.modalTitle, subTitle: '', buttons: [] },
  7252. this.state.modalType === "login" ? this.renderLogin.call(this) : this.renderRegistration.call(this)
  7253. );
  7254. }
  7255.  
  7256. loginSuccess(resource) {
  7257. let onSuccess = this.props.onSuccess || function () {};
  7258. onSuccess(resource);
  7259.  
  7260. onSuccess = this.state.onSuccess || function () {};
  7261. onSuccess(resource);
  7262.  
  7263. this.close();
  7264. }
  7265.  
  7266. registrationSuccess(resource) {
  7267. let onSuccess = this.props.onSuccess || function () {};
  7268. onSuccess(resource);
  7269.  
  7270. onSuccess = this.state.onSuccess || function () {};
  7271. onSuccess(resource);
  7272.  
  7273. this.close();
  7274. }
  7275.  
  7276. switchLoginToRegistration(e) {
  7277. e.preventDefault();e.stopPropagation();
  7278. this.setRegistration();
  7279. }
  7280.  
  7281. switchRegistrationToLogin(e) {
  7282. e.preventDefault();e.stopPropagation();
  7283. this.setLogin();
  7284. }
  7285.  
  7286. };
  7287.  
  7288.  
  7289. /* harmony default export */ __webpack_exports__["a"] = (AuthenticationModal);
  7290.  
  7291. /***/ }),
  7292. /* 76 */
  7293. /***/ (function(module, exports) {
  7294.  
  7295. /**
  7296. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/16/2017.
  7297. * (C) BIT TECHNOLOGIES
  7298. */
  7299.  
  7300. /* eslint-disable import/prefer-default-export */
  7301.  
  7302. const UserGenderEnum = {
  7303. MALE: 0,
  7304. FEMALE: 1,
  7305. NOT_SPECIFIED: 2
  7306. };
  7307.  
  7308. const UserRolesEnum = {
  7309. NOT_REGISTERED: 0,
  7310. USER: 3,
  7311. MODERATOR: 5,
  7312. ADMIN: 8,
  7313. SYS_ADMIN: 666
  7314. };
  7315.  
  7316. module.exports = {
  7317.  
  7318. UserGenderEnum: UserGenderEnum,
  7319. UserRolesEnum: UserRolesEnum,
  7320.  
  7321. convertGenderString(sGender) {
  7322.  
  7323. sGender = sGender.toLowerCase();
  7324.  
  7325. switch (sGender) {
  7326. case 'male':
  7327. return UserGenderEnum.MALE;
  7328. case 'female':
  7329. return UserGenderEnum.FEMALE;
  7330. case 'not specified':
  7331. default:
  7332. return UserGenderEnum.NOT_SPECIFIED;
  7333. }
  7334. },
  7335.  
  7336. convertRoleType(sUserRoleType) {
  7337.  
  7338. sUserRoleType = sUserRoleType.toLowerCase();
  7339.  
  7340. switch (sUserRoleType) {
  7341. case 'user':
  7342. return UserRolesEnum.USER;
  7343. case 'admin':
  7344. case 'administrator':
  7345. return UserRolesEnum.ADMIN;
  7346. case 'moderator':
  7347. return UserRolesEnum.MODERATOR;
  7348. case 'sys admin':
  7349. case 'system admin':
  7350. return UserRolesEnum.SYS_ADMIN;
  7351. case 'not registered':
  7352. case 'anonymous':
  7353. return UserRolesEnum.NOT_REGISTERED;
  7354. default:
  7355. return UserRolesEnum.USER;
  7356. }
  7357. },
  7358.  
  7359. getTimeZone: function (timeZone) {
  7360. return '';
  7361. },
  7362.  
  7363. getGenderString: function (gender) {
  7364.  
  7365. switch (gender) {
  7366. case UserGenderEnum.FEMALE:
  7367. return 'female';
  7368. case UserGenderEnum.MALE:
  7369. return 'male';
  7370. case UserGenderEnum.NOT_SPECIFIED:
  7371. default:
  7372. return 'not specified';
  7373. }
  7374. },
  7375.  
  7376. getRoleString: function (role) {
  7377.  
  7378. switch (role) {
  7379.  
  7380. case UserRolesEnum.ADMIN:
  7381. return 'admin';
  7382. case UserRolesEnum.MODERATOR:
  7383. return 'moderator';
  7384. case UserRolesEnum.NOT_REGISTERED:
  7385. return 'not registered';
  7386. case UserRolesEnum.SYS_ADMIN:
  7387. return 'system admin';
  7388. case UserRolesEnum.USER:
  7389. return 'user';
  7390. default:
  7391. return 'not specified';
  7392. }
  7393. }
  7394.  
  7395. };
  7396.  
  7397. /***/ }),
  7398. /* 77 */
  7399. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7400.  
  7401. "use strict";
  7402. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_isomorphic_fetch__ = __webpack_require__(45);
  7403. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_isomorphic_fetch___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_isomorphic_fetch__);
  7404. var _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; };
  7405.  
  7406. /**
  7407. * React Starter Kit (https://www.reactstarterkit.com/)
  7408. *
  7409. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7410. *
  7411. * This source code is licensed under the MIT license found in the
  7412. * LICENSE.txt file in the root directory of this source tree.
  7413. */
  7414.  
  7415.  
  7416.  
  7417. /**
  7418. * Creates a wrapper function around the HTML5 Fetch API that provides
  7419. * default arguments to fetch(...) and is intended to reduce the amount
  7420. * of boilerplate code in the application.
  7421. * https://developer.mozilla.org/docs/Web/API/Fetch_API/Using_Fetch
  7422. */
  7423. function createFetch({ baseUrl, cookie }) {
  7424. // NOTE: Tweak the default options to suite your application needs
  7425. const defaults = {
  7426. method: 'POST', // handy with GraphQL backends
  7427. mode: baseUrl ? 'cors' : 'same-origin',
  7428. credentials: baseUrl ? 'include' : 'same-origin',
  7429. headers: _extends({
  7430. Accept: 'application/json',
  7431. 'Content-Type': 'application/json'
  7432. }, cookie ? { Cookie: cookie } : null)
  7433. };
  7434.  
  7435. return (url, options) => url.startsWith('/graphql') || url.startsWith('/api') ? __WEBPACK_IMPORTED_MODULE_0_isomorphic_fetch___default()(`${baseUrl}${url}`, _extends({}, defaults, options, {
  7436. headers: _extends({}, defaults.headers, options && options.headers)
  7437. })) : __WEBPACK_IMPORTED_MODULE_0_isomorphic_fetch___default()(url, options);
  7438. }
  7439.  
  7440. /* harmony default export */ __webpack_exports__["a"] = (createFetch);
  7441.  
  7442. /***/ }),
  7443. /* 78 */
  7444. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7445.  
  7446. "use strict";
  7447. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize__ = __webpack_require__(13);
  7448. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_sequelize__);
  7449. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__sequelize__ = __webpack_require__(11);
  7450. /**
  7451. * React Starter Kit (https://www.reactstarterkit.com/)
  7452. *
  7453. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7454. *
  7455. * This source code is licensed under the MIT license found in the
  7456. * LICENSE.txt file in the root directory of this source tree.
  7457. */
  7458.  
  7459.  
  7460.  
  7461.  
  7462. const User = __WEBPACK_IMPORTED_MODULE_1__sequelize__["a" /* default */].define('User', {
  7463.  
  7464. id: {
  7465. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.UUID,
  7466. defaultValue: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.UUIDV1,
  7467. primaryKey: true
  7468. },
  7469.  
  7470. email: {
  7471. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING(255),
  7472. validate: { isEmail: true }
  7473. },
  7474.  
  7475. emailConfirmed: {
  7476. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.BOOLEAN,
  7477. defaultValue: false
  7478. }
  7479.  
  7480. }, {
  7481.  
  7482. indexes: [{ fields: ['email'] }]
  7483.  
  7484. });
  7485.  
  7486. /* harmony default export */ __webpack_exports__["a"] = (User);
  7487.  
  7488. /***/ }),
  7489. /* 79 */
  7490. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7491.  
  7492. "use strict";
  7493. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize__ = __webpack_require__(13);
  7494. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_sequelize__);
  7495. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__sequelize__ = __webpack_require__(11);
  7496. /**
  7497. * React Starter Kit (https://www.reactstarterkit.com/)
  7498. *
  7499. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7500. *
  7501. * This source code is licensed under the MIT license found in the
  7502. * LICENSE.txt file in the root directory of this source tree.
  7503. */
  7504.  
  7505.  
  7506.  
  7507.  
  7508. const UserClaim = __WEBPACK_IMPORTED_MODULE_1__sequelize__["a" /* default */].define('UserClaim', {
  7509.  
  7510. type: {
  7511. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING
  7512. },
  7513.  
  7514. value: {
  7515. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING
  7516. }
  7517.  
  7518. });
  7519.  
  7520. /* harmony default export */ __webpack_exports__["a"] = (UserClaim);
  7521.  
  7522. /***/ }),
  7523. /* 80 */
  7524. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7525.  
  7526. "use strict";
  7527. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize__ = __webpack_require__(13);
  7528. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_sequelize__);
  7529. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__sequelize__ = __webpack_require__(11);
  7530. /**
  7531. * React Starter Kit (https://www.reactstarterkit.com/)
  7532. *
  7533. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7534. *
  7535. * This source code is licensed under the MIT license found in the
  7536. * LICENSE.txt file in the root directory of this source tree.
  7537. */
  7538.  
  7539.  
  7540.  
  7541.  
  7542. const UserLogin = __WEBPACK_IMPORTED_MODULE_1__sequelize__["a" /* default */].define('UserLogin', {
  7543.  
  7544. name: {
  7545. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING(50),
  7546. primaryKey: true
  7547. },
  7548.  
  7549. key: {
  7550. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING(100),
  7551. primaryKey: true
  7552. }
  7553.  
  7554. });
  7555.  
  7556. /* harmony default export */ __webpack_exports__["a"] = (UserLogin);
  7557.  
  7558. /***/ }),
  7559. /* 81 */
  7560. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7561.  
  7562. "use strict";
  7563. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize__ = __webpack_require__(13);
  7564. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_sequelize___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_sequelize__);
  7565. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__sequelize__ = __webpack_require__(11);
  7566. /**
  7567. * React Starter Kit (https://www.reactstarterkit.com/)
  7568. *
  7569. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7570. *
  7571. * This source code is licensed under the MIT license found in the
  7572. * LICENSE.txt file in the root directory of this source tree.
  7573. */
  7574.  
  7575.  
  7576.  
  7577.  
  7578. const UserProfile = __WEBPACK_IMPORTED_MODULE_1__sequelize__["a" /* default */].define('UserProfile', {
  7579.  
  7580. userId: {
  7581. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.UUID,
  7582. primaryKey: true
  7583. },
  7584.  
  7585. displayName: {
  7586. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING(100)
  7587. },
  7588.  
  7589. picture: {
  7590. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING(255)
  7591. },
  7592.  
  7593. gender: {
  7594. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING(50)
  7595. },
  7596.  
  7597. location: {
  7598. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING(100)
  7599. },
  7600.  
  7601. website: {
  7602. type: __WEBPACK_IMPORTED_MODULE_0_sequelize___default.a.STRING(255)
  7603. }
  7604.  
  7605. });
  7606.  
  7607. /* harmony default export */ __webpack_exports__["a"] = (UserProfile);
  7608.  
  7609. /***/ }),
  7610. /* 82 */
  7611. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7612.  
  7613. "use strict";
  7614. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__sequelize__ = __webpack_require__(11);
  7615. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__User__ = __webpack_require__(78);
  7616. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__UserLogin__ = __webpack_require__(80);
  7617. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__UserClaim__ = __webpack_require__(79);
  7618. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__UserProfile__ = __webpack_require__(81);
  7619. /* unused harmony reexport User */
  7620. /* unused harmony reexport UserLogin */
  7621. /* unused harmony reexport UserClaim */
  7622. /* unused harmony reexport UserProfile */
  7623. /**
  7624. * React Starter Kit (https://www.reactstarterkit.com/)
  7625. *
  7626. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7627. *
  7628. * This source code is licensed under the MIT license found in the
  7629. * LICENSE.txt file in the root directory of this source tree.
  7630. */
  7631.  
  7632.  
  7633.  
  7634.  
  7635.  
  7636.  
  7637.  
  7638. __WEBPACK_IMPORTED_MODULE_1__User__["a" /* default */].hasMany(__WEBPACK_IMPORTED_MODULE_2__UserLogin__["a" /* default */], {
  7639. foreignKey: 'userId',
  7640. as: 'logins',
  7641. onUpdate: 'cascade',
  7642. onDelete: 'cascade'
  7643. });
  7644.  
  7645. __WEBPACK_IMPORTED_MODULE_1__User__["a" /* default */].hasMany(__WEBPACK_IMPORTED_MODULE_3__UserClaim__["a" /* default */], {
  7646. foreignKey: 'userId',
  7647. as: 'claims',
  7648. onUpdate: 'cascade',
  7649. onDelete: 'cascade'
  7650. });
  7651.  
  7652. __WEBPACK_IMPORTED_MODULE_1__User__["a" /* default */].hasOne(__WEBPACK_IMPORTED_MODULE_4__UserProfile__["a" /* default */], {
  7653. foreignKey: 'userId',
  7654. as: 'profile',
  7655. onUpdate: 'cascade',
  7656. onDelete: 'cascade'
  7657. });
  7658.  
  7659. function sync(...args) {
  7660. return __WEBPACK_IMPORTED_MODULE_0__sequelize__["a" /* default */].sync(...args);
  7661. }
  7662.  
  7663. /* harmony default export */ __webpack_exports__["a"] = ({ sync });
  7664.  
  7665.  
  7666. /***/ }),
  7667. /* 83 */
  7668. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7669.  
  7670. "use strict";
  7671. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__types_UserType__ = __webpack_require__(87);
  7672. /**
  7673. * React Starter Kit (https://www.reactstarterkit.com/)
  7674. *
  7675. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7676. *
  7677. * This source code is licensed under the MIT license found in the
  7678. * LICENSE.txt file in the root directory of this source tree.
  7679. */
  7680.  
  7681.  
  7682.  
  7683. const me = {
  7684. type: __WEBPACK_IMPORTED_MODULE_0__types_UserType__["a" /* default */],
  7685. resolve({ request }) {
  7686. return request.user && {
  7687. id: request.user.id,
  7688. email: request.user.email
  7689. };
  7690. }
  7691. };
  7692.  
  7693. /* harmony default export */ __webpack_exports__["a"] = (me);
  7694.  
  7695. /***/ }),
  7696. /* 84 */
  7697. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7698.  
  7699. "use strict";
  7700. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_graphql__ = __webpack_require__(16);
  7701. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_graphql___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_graphql__);
  7702. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_fetch__ = __webpack_require__(45);
  7703. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_isomorphic_fetch___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_isomorphic_fetch__);
  7704. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__types_NewsItemType__ = __webpack_require__(86);
  7705. /**
  7706. * React Starter Kit (https://www.reactstarterkit.com/)
  7707. *
  7708. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7709. *
  7710. * This source code is licensed under the MIT license found in the
  7711. * LICENSE.txt file in the root directory of this source tree.
  7712. */
  7713.  
  7714.  
  7715.  
  7716.  
  7717.  
  7718. // React.js News Feed (RSS)
  7719. const url = 'https://api.rss2json.com/v1/api.json' + '?rss_url=https%3A%2F%2Freactjsnews.com%2Ffeed.xml';
  7720.  
  7721. let items = [];
  7722. let lastFetchTask;
  7723. let lastFetchTime = new Date(1970, 0, 1);
  7724.  
  7725. const news = {
  7726. type: new __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLList"](__WEBPACK_IMPORTED_MODULE_2__types_NewsItemType__["a" /* default */]),
  7727. resolve() {
  7728. if (lastFetchTask) {
  7729. return lastFetchTask;
  7730. }
  7731.  
  7732. if (new Date() - lastFetchTime > 1000 * 60 * 10 /* 10 mins */) {
  7733. lastFetchTime = new Date();
  7734. lastFetchTask = __WEBPACK_IMPORTED_MODULE_1_isomorphic_fetch___default()(url).then(response => response.json()).then(data => {
  7735. if (data.status === 'ok') {
  7736. items = data.items;
  7737. }
  7738.  
  7739. lastFetchTask = null;
  7740. return items;
  7741. }).catch(err => {
  7742. lastFetchTask = null;
  7743. throw err;
  7744. });
  7745.  
  7746. if (items.length) {
  7747. return items;
  7748. }
  7749.  
  7750. return lastFetchTask;
  7751. }
  7752.  
  7753. return items;
  7754. }
  7755. };
  7756.  
  7757. /* harmony default export */ __webpack_exports__["a"] = (news);
  7758.  
  7759. /***/ }),
  7760. /* 85 */
  7761. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7762.  
  7763. "use strict";
  7764. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_graphql__ = __webpack_require__(16);
  7765. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_graphql___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_graphql__);
  7766. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__queries_me__ = __webpack_require__(83);
  7767. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__queries_news__ = __webpack_require__(84);
  7768. /**
  7769. * React Starter Kit (https://www.reactstarterkit.com/)
  7770. *
  7771. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7772. *
  7773. * This source code is licensed under the MIT license found in the
  7774. * LICENSE.txt file in the root directory of this source tree.
  7775. */
  7776.  
  7777.  
  7778.  
  7779.  
  7780.  
  7781.  
  7782. const schema = new __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLSchema"]({
  7783. query: new __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLObjectType"]({
  7784. name: 'Query',
  7785. fields: {
  7786. me: __WEBPACK_IMPORTED_MODULE_1__queries_me__["a" /* default */],
  7787. news: __WEBPACK_IMPORTED_MODULE_2__queries_news__["a" /* default */]
  7788. }
  7789. })
  7790. });
  7791.  
  7792. /* harmony default export */ __webpack_exports__["a"] = (schema);
  7793.  
  7794. /***/ }),
  7795. /* 86 */
  7796. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7797.  
  7798. "use strict";
  7799. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_graphql__ = __webpack_require__(16);
  7800. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_graphql___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_graphql__);
  7801. /**
  7802. * React Starter Kit (https://www.reactstarterkit.com/)
  7803. *
  7804. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7805. *
  7806. * This source code is licensed under the MIT license found in the
  7807. * LICENSE.txt file in the root directory of this source tree.
  7808. */
  7809.  
  7810.  
  7811.  
  7812. const NewsItemType = new __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLObjectType"]({
  7813. name: 'NewsItem',
  7814. fields: {
  7815. title: { type: new __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLNonNull"](__WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLString"]) },
  7816. link: { type: new __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLNonNull"](__WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLString"]) },
  7817. author: { type: __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLString"] },
  7818. pubDate: { type: new __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLNonNull"](__WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLString"]) },
  7819. content: { type: __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLString"] }
  7820. }
  7821. });
  7822.  
  7823. /* harmony default export */ __webpack_exports__["a"] = (NewsItemType);
  7824.  
  7825. /***/ }),
  7826. /* 87 */
  7827. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7828.  
  7829. "use strict";
  7830. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_graphql__ = __webpack_require__(16);
  7831. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_graphql___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_graphql__);
  7832. /**
  7833. * React Starter Kit (https://www.reactstarterkit.com/)
  7834. *
  7835. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7836. *
  7837. * This source code is licensed under the MIT license found in the
  7838. * LICENSE.txt file in the root directory of this source tree.
  7839. */
  7840.  
  7841.  
  7842.  
  7843. const UserType = new __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLObjectType"]({
  7844. name: 'User',
  7845. fields: {
  7846. id: { type: new __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLNonNull"](__WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLID"]) },
  7847. email: { type: __WEBPACK_IMPORTED_MODULE_0_graphql__["GraphQLString"] }
  7848. }
  7849. });
  7850.  
  7851. /* harmony default export */ __webpack_exports__["a"] = (UserType);
  7852.  
  7853. /***/ }),
  7854. /* 88 */
  7855. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7856.  
  7857. "use strict";
  7858. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_createBrowserHistory__ = __webpack_require__(147);
  7859. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_history_createBrowserHistory___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_history_createBrowserHistory__);
  7860. /**
  7861. * React Starter Kit (https://www.reactstarterkit.com/)
  7862. *
  7863. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  7864. *
  7865. * This source code is licensed under the MIT license found in the
  7866. * LICENSE.txt file in the root directory of this source tree.
  7867. */
  7868.  
  7869.  
  7870.  
  7871. // Navigation manager, e.g. history.push('/home')
  7872. // https://github.com/mjackson/history
  7873. /* harmony default export */ __webpack_exports__["a"] = (false && __WEBPACK_IMPORTED_MODULE_0_history_createBrowserHistory___default()());
  7874.  
  7875. /***/ }),
  7876. /* 89 */
  7877. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7878.  
  7879. "use strict";
  7880. /* harmony export (immutable) */ __webpack_exports__["b"] = setContentState_NewRouterObject_Action;
  7881. /* harmony export (immutable) */ __webpack_exports__["a"] = setContentState_AddContentObjects_Action;
  7882. /* unused harmony export setContentState_AddForums_Action */
  7883. /* unused harmony export newRouterObjectArgument_AddReplies_Action */
  7884. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__client_services_REST_forums_content_ContentObject_service__ = __webpack_require__(31);
  7885. /**
  7886. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/13/2017.
  7887. * (C) BIT TECHNOLOGIES
  7888. */
  7889.  
  7890.  
  7891.  
  7892. function setContentState_NewRouterObject_Action(newRouterObject, objectNotFound, pageURL, pageIndex, pageCount, initialContentObjects) {
  7893.  
  7894. return {
  7895. type: "SET_NEW_CONTENT_STATE_ROUTER_OBJECT",
  7896. payload: {
  7897.  
  7898. routerObject: {
  7899. type: __WEBPACK_IMPORTED_MODULE_0__client_services_REST_forums_content_ContentObject_service__["a" /* default */].extractObjectTypeFromId(newRouterObject),
  7900. object: __WEBPACK_IMPORTED_MODULE_0__client_services_REST_forums_content_ContentObject_service__["a" /* default */].createObject(newRouterObject),
  7901. notFound: objectNotFound !== null ? objectNotFound : true,
  7902. pageURL: pageURL || ''
  7903. },
  7904.  
  7905. contentObjects: {
  7906. pageIndex: pageIndex || 1,
  7907. pageCount: pageCount || 8,
  7908. hasNext: true,
  7909. objects: initialContentObjects || []
  7910. },
  7911.  
  7912. contentForums: {
  7913. pageIndex: 1,
  7914. pageCount: 8,
  7915. hasNext: true,
  7916. objects: []
  7917. },
  7918.  
  7919. contentReplies: {
  7920. pageIndex: 1,
  7921. pageCount: 8,
  7922. hasNext: true,
  7923. objects: []
  7924. }
  7925.  
  7926. }
  7927. };
  7928. }
  7929.  
  7930. function setContentState_AddContentObjects_Action(toBeAdded) {
  7931. return {
  7932. type: "ADD_CONTENT_OBJECTS",
  7933. payload: toBeAdded
  7934. };
  7935. }
  7936.  
  7937. function setContentState_AddForums_Action(toBeAdded) {
  7938. return {
  7939. type: "ADD_CONTENT_FORUMS",
  7940. payload: toBeAdded
  7941. };
  7942. }
  7943.  
  7944. function newRouterObjectArgument_AddReplies_Action(toBeAdded) {
  7945. return {
  7946. type: "ADD_CONTENT_REPLIES",
  7947. payload: toBeAdded
  7948. };
  7949. }
  7950.  
  7951. /***/ }),
  7952. /* 90 */
  7953. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7954.  
  7955. "use strict";
  7956. /* harmony export (immutable) */ __webpack_exports__["a"] = setRuntimeVariable;
  7957. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constants_index__ = __webpack_require__(32);
  7958. /* eslint-disable import/prefer-default-export */
  7959.  
  7960.  
  7961.  
  7962. function setRuntimeVariable({ name, value }) {
  7963. return {
  7964. type: __WEBPACK_IMPORTED_MODULE_0__constants_index__["a" /* SET_RUNTIME_VARIABLE */],
  7965. payload: {
  7966. name,
  7967. value
  7968. }
  7969. };
  7970. }
  7971.  
  7972. /***/ }),
  7973. /* 91 */
  7974. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7975.  
  7976. "use strict";
  7977. /* harmony export (immutable) */ __webpack_exports__["a"] = runtime;
  7978. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__constants_index__ = __webpack_require__(32);
  7979. var _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; };
  7980.  
  7981.  
  7982.  
  7983. function runtime(state = {}, action) {
  7984.  
  7985. switch (action.type) {
  7986. case __WEBPACK_IMPORTED_MODULE_0__constants_index__["a" /* SET_RUNTIME_VARIABLE */]:
  7987. return _extends({}, state, {
  7988. [action.payload.name]: action.payload.value
  7989. });
  7990. default:
  7991. return state;
  7992. }
  7993. }
  7994.  
  7995. /***/ }),
  7996. /* 92 */
  7997. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  7998.  
  7999. "use strict";
  8000. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_redux__ = __webpack_require__(46);
  8001. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_redux__);
  8002. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__user_reducer__ = __webpack_require__(93);
  8003. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Runtime_reducer__ = __webpack_require__(91);
  8004. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Localization_reducer__ = __webpack_require__(36);
  8005. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__RouterState_reducer__ = __webpack_require__(37);
  8006. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__SocketStatus_reducer__ = __webpack_require__(38);
  8007. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__UserAuthenticated_reducer__ = __webpack_require__(39);
  8008. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ContentState_reducer__ = __webpack_require__(35);
  8009. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__test_redux_reducers_TestRedux_reducer__ = __webpack_require__(41);
  8010.  
  8011.  
  8012.  
  8013.  
  8014.  
  8015.  
  8016.  
  8017.  
  8018.  
  8019.  
  8020.  
  8021.  
  8022. //including TEST-REDUX
  8023.  
  8024.  
  8025. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_redux__["combineReducers"])({
  8026. user: __WEBPACK_IMPORTED_MODULE_1__user_reducer__["a" /* default */],
  8027. runtime: __WEBPACK_IMPORTED_MODULE_2__Runtime_reducer__["a" /* default */],
  8028.  
  8029. userAuthenticated: __WEBPACK_IMPORTED_MODULE_6__UserAuthenticated_reducer__["b" /* default */],
  8030. socketStatus: __WEBPACK_IMPORTED_MODULE_5__SocketStatus_reducer__["b" /* default */],
  8031. localization: __WEBPACK_IMPORTED_MODULE_3__Localization_reducer__["b" /* default */],
  8032.  
  8033. routerState: __WEBPACK_IMPORTED_MODULE_4__RouterState_reducer__["b" /* default */],
  8034. contentState: __WEBPACK_IMPORTED_MODULE_7__ContentState_reducer__["b" /* default */],
  8035.  
  8036. //including TEST-REDUX
  8037. testReduxState: __WEBPACK_IMPORTED_MODULE_8__test_redux_reducers_TestRedux_reducer__["b" /* default */]
  8038.  
  8039. }));
  8040.  
  8041. /***/ }),
  8042. /* 93 */
  8043. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8044.  
  8045. "use strict";
  8046. /* harmony export (immutable) */ __webpack_exports__["a"] = user;
  8047. function user(state = {}, action) {
  8048. switch (action.type) {
  8049. default:
  8050. return state;
  8051. }
  8052. }
  8053.  
  8054. /***/ }),
  8055. /* 94 */
  8056. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8057.  
  8058. "use strict";
  8059. /* unused harmony export default */
  8060. var _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; };
  8061.  
  8062. function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
  8063.  
  8064. /**
  8065. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/10/2017.
  8066. * (C) BIT TECHNOLOGIES
  8067. */
  8068.  
  8069. // Middleware
  8070. function promiseMiddleware() {
  8071. return next => action => {
  8072. const { promise } = action,
  8073. rest = _objectWithoutProperties(action, ['promise']);
  8074. if (!promise) {
  8075. return next(action);
  8076. }
  8077.  
  8078. next(_extends({}, rest, { readyState: 'request' }));
  8079. return promise.then(result => next(_extends({}, rest, { result, readyState: 'success' })), error => next(_extends({}, rest, { error, readyState: 'failure' })));
  8080. };
  8081. }
  8082.  
  8083. /***/ }),
  8084. /* 95 */
  8085. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8086.  
  8087. "use strict";
  8088. /* harmony export (immutable) */ __webpack_exports__["a"] = configureStore;
  8089. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_redux__ = __webpack_require__(46);
  8090. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_redux__);
  8091. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_redux_thunk__ = __webpack_require__(157);
  8092. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_redux_thunk___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_redux_thunk__);
  8093. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__reducers_index__ = __webpack_require__(92);
  8094. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__createHelpers__ = __webpack_require__(96);
  8095. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__logger_logger_server__ = __webpack_require__(97);
  8096. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__async_middleware_AsyncMiddleware__ = __webpack_require__(94);
  8097. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__reducers_UserAuthenticated_reducer__ = __webpack_require__(39);
  8098. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__reducers_SocketStatus_reducer__ = __webpack_require__(38);
  8099. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__reducers_Localization_reducer__ = __webpack_require__(36);
  8100. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__reducers_RouterState_reducer__ = __webpack_require__(37);
  8101. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__reducers_ContentState_reducer__ = __webpack_require__(35);
  8102. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__test_redux_reducers_TestRedux_reducer__ = __webpack_require__(41);
  8103.  
  8104.  
  8105.  
  8106.  
  8107.  
  8108.  
  8109.  
  8110.  
  8111.  
  8112.  
  8113.  
  8114.  
  8115.  
  8116.  
  8117.  
  8118. function configureStore(initialState, helpersConfig) {
  8119. const helpers = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__createHelpers__["a" /* default */])(helpersConfig);
  8120. const middleware = [__WEBPACK_IMPORTED_MODULE_1_redux_thunk___default.a.withExtraArgument(helpers)];
  8121.  
  8122. let enhancer;
  8123.  
  8124. if (false) {
  8125. middleware.push(createLogger());
  8126. //middleware.push(AsyncMiddleware());
  8127.  
  8128. // https://github.com/zalmoxisus/redux-devtools-extension#redux-devtools-extension
  8129. let devToolsExtension = f => f;
  8130. if (process.env.BROWSER && window.devToolsExtension) {
  8131. devToolsExtension = window.devToolsExtension();
  8132. }
  8133.  
  8134. enhancer = compose(applyMiddleware(...middleware), devToolsExtension);
  8135. } else {
  8136. enhancer = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_redux__["applyMiddleware"])(...middleware);
  8137. }
  8138.  
  8139. //Initial Redux Store State
  8140. console.log(initialState, helpersConfig);
  8141. initialState.userAuthenticated = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6__reducers_UserAuthenticated_reducer__["a" /* defaultUserState */])(initialState.userAuthenticated || {}); //Current User Authenticated
  8142. initialState.socketStatus = __WEBPACK_IMPORTED_MODULE_7__reducers_SocketStatus_reducer__["a" /* defaultSocketStatus */]; //Socket Status
  8143. initialState.localization = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_8__reducers_Localization_reducer__["a" /* defaultLocalization */])(initialState.localization || {}); //Location
  8144.  
  8145. initialState.routerState = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_9__reducers_RouterState_reducer__["a" /* defaultRouterState */])(initialState.routerState || {}); //Router
  8146. initialState.contentState = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_10__reducers_ContentState_reducer__["a" /* defaultContentState */])(initialState.contentState || {}); //Content Redux State
  8147.  
  8148. initialState.testReduxState = __WEBPACK_IMPORTED_MODULE_11__test_redux_reducers_TestRedux_reducer__["a" /* defaultTestReduxState */];
  8149.  
  8150. if (typeof document !== "undefined" && initialState.userAuthenticated.user.isLoggedIn()) document.body.classList.remove("top-navigation");
  8151.  
  8152. // See https://github.com/rackt/redux/releases/tag/v3.1.0
  8153. const store = __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_redux__["createStore"])(__WEBPACK_IMPORTED_MODULE_2__reducers_index__["a" /* default */], initialState, enhancer);
  8154.  
  8155. // Hot reload reducers (requires Webpack or Browserify HMR to be enabled)
  8156. if (false) {
  8157. module.hot.accept('../reducers', () =>
  8158. // eslint-disable-next-line global-require
  8159. store.replaceReducer(require('../reducers/index').default));
  8160. }
  8161.  
  8162. return store;
  8163. }
  8164.  
  8165. /***/ }),
  8166. /* 96 */
  8167. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8168.  
  8169. "use strict";
  8170. /* harmony export (immutable) */ __webpack_exports__["a"] = createHelpers;
  8171. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  8172.  
  8173. function createGraphqlRequest(fetch) {
  8174. return (() => {
  8175. var _ref = _asyncToGenerator(function* (query, variables) {
  8176. const fetchConfig = {
  8177. method: 'post',
  8178. headers: {
  8179. Accept: 'application/json',
  8180. 'Content-Type': 'application/json'
  8181. },
  8182. body: JSON.stringify({ query, variables }),
  8183. credentials: 'include'
  8184. };
  8185. const resp = yield fetch('/graphql', fetchConfig);
  8186. if (resp.status !== 200) throw new Error(resp.statusText);
  8187. return resp.json();
  8188. });
  8189.  
  8190. function graphqlRequest(_x, _x2) {
  8191. return _ref.apply(this, arguments);
  8192. }
  8193.  
  8194. return graphqlRequest;
  8195. })();
  8196. }
  8197.  
  8198. function createHelpers({ fetch, history }) {
  8199. return {
  8200. fetch,
  8201. history,
  8202. graphqlRequest: createGraphqlRequest(fetch)
  8203. };
  8204. }
  8205.  
  8206. /***/ }),
  8207. /* 97 */
  8208. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8209.  
  8210. "use strict";
  8211. /* unused harmony export default */
  8212. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_util__ = __webpack_require__(160);
  8213. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_util___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_util__);
  8214.  
  8215.  
  8216. function inspectObject(object) {
  8217. return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0_util__["inspect"])(object, {
  8218. colors: true
  8219. });
  8220. }
  8221.  
  8222. function singleLine(str) {
  8223. return str.replace(/\s+/g, ' ');
  8224. }
  8225.  
  8226. const actionFormatters = {
  8227. // This is used at feature/apollo branch, but it can help you when implementing Apollo
  8228. APOLLO_QUERY_INIT: a => `queryId:${a.queryId} variables:${inspectObject(a.variables)}\n ${singleLine(a.queryString)}`,
  8229.  
  8230. APOLLO_QUERY_RESULT: a => `queryId:${a.queryId}\n ${singleLine(inspectObject(a.result))}`,
  8231.  
  8232. APOLLO_QUERY_STOP: a => `queryId:${a.queryId}`
  8233. };
  8234.  
  8235. // Server side redux action logger
  8236. function createLogger() {
  8237. // eslint-disable-next-line no-unused-vars
  8238. return store => next => action => {
  8239. let formattedPayload = '';
  8240. const actionFormatter = actionFormatters[action.type];
  8241. if (typeof actionFormatter === 'function') {
  8242. formattedPayload = actionFormatter(action);
  8243. } else if (action.toString !== Object.prototype.toString) {
  8244. formattedPayload = action.toString();
  8245. } else if (typeof action.payload !== 'undefined') {
  8246. formattedPayload = inspectObject(action.payload);
  8247. } else {
  8248. formattedPayload = inspectObject(action);
  8249. }
  8250.  
  8251. console.log(` * ${action.type}: ${formattedPayload}`); // eslint-disable-line no-console
  8252. return next(action);
  8253. };
  8254. }
  8255.  
  8256. /***/ }),
  8257. /* 98 */
  8258. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8259.  
  8260. "use strict";
  8261. /* harmony export (immutable) */ __webpack_exports__["a"] = newTestReduxValue1;
  8262. /* harmony export (immutable) */ __webpack_exports__["b"] = newTestReduxValue2;
  8263. /**
  8264. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/9/2017.
  8265. * (C) BIT TECHNOLOGIES
  8266. */
  8267.  
  8268. /* eslint-disable import/prefer-default-export */
  8269.  
  8270. function newTestReduxValue1(iNewValue) {
  8271.  
  8272. console.log("ACTION 1 FIRED", iNewValue);
  8273.  
  8274. return {
  8275. type: "NEW_TEST_REDUX_VALUE_1",
  8276. payload: {
  8277.  
  8278. value: iNewValue
  8279.  
  8280. }
  8281. };
  8282. }
  8283.  
  8284. function newTestReduxValue2(iNewValue) {
  8285.  
  8286. console.log("ACTION 2 FIRED", iNewValue);
  8287.  
  8288. return {
  8289. type: "NEW_TEST_REDUX_VALUE_2",
  8290. payload: {
  8291.  
  8292. value: iNewValue
  8293.  
  8294. }
  8295. };
  8296. }
  8297.  
  8298. /***/ }),
  8299. /* 99 */
  8300. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8301.  
  8302. "use strict";
  8303. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_universal_router__ = __webpack_require__(159);
  8304. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_universal_router___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_universal_router__);
  8305. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__routes__ = __webpack_require__(112);
  8306. /**
  8307. * React Starter Kit (https://www.reactstarterkit.com/)
  8308. *
  8309. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  8310. *
  8311. * This source code is licensed under the MIT license found in the
  8312. * LICENSE.txt file in the root directory of this source tree.
  8313. */
  8314.  
  8315.  
  8316.  
  8317.  
  8318. /* harmony default export */ __webpack_exports__["a"] = (new __WEBPACK_IMPORTED_MODULE_0_universal_router___default.a(__WEBPACK_IMPORTED_MODULE_1__routes__["a" /* default */]));
  8319.  
  8320. /***/ }),
  8321. /* 100 */
  8322. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8323.  
  8324. "use strict";
  8325. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8326. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8327. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8328. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__ = __webpack_require__(4);
  8329. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__client_components_Page__ = __webpack_require__(18);
  8330. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__my_redux_test_redux_TestRedux_component__ = __webpack_require__(40);
  8331. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8332.  
  8333. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  8334.  
  8335. /**
  8336. * React Starter Kit (https://www.reactstarterkit.com/)
  8337. *
  8338. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  8339. *
  8340. * This source code is licensed under the MIT license found in the
  8341. * LICENSE.txt file in the root directory of this source tree.
  8342. */
  8343.  
  8344.  
  8345.  
  8346.  
  8347.  
  8348.  
  8349. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_3__my_redux_test_redux_TestRedux_component__["a" /* default */], {});
  8350.  
  8351. /* harmony default export */ __webpack_exports__["default"] = ({
  8352.  
  8353. path: '/about',
  8354.  
  8355. action() {
  8356. return _asyncToGenerator(function* () {
  8357. const data = yield new Promise(function(resolve) { resolve(); }).then((function (require) {
  8358. return __webpack_require__(135);
  8359. }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
  8360.  
  8361. return {
  8362. title: data.title,
  8363. description: 'About SkyHub',
  8364. chunk: 'about',
  8365. component: _jsx(__WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__["a" /* default */], {}, void 0, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(
  8366. __WEBPACK_IMPORTED_MODULE_2__client_components_Page__["a" /* default */],
  8367. data,
  8368. _ref
  8369. ))
  8370. };
  8371. })();
  8372. }
  8373.  
  8374. });
  8375.  
  8376. /***/ }),
  8377. /* 101 */
  8378. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8379.  
  8380. "use strict";
  8381. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8382. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8383. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8384. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  8385. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  8386. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(7);
  8387. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__);
  8388. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Admin_css__ = __webpack_require__(132);
  8389. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Admin_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__Admin_css__);
  8390. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8391.  
  8392. /**
  8393. * React Starter Kit (https://www.reactstarterkit.com/)
  8394. *
  8395. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  8396. *
  8397. * This source code is licensed under the MIT license found in the
  8398. * LICENSE.txt file in the root directory of this source tree.
  8399. */
  8400.  
  8401.  
  8402.  
  8403.  
  8404.  
  8405.  
  8406. var _ref = _jsx('p', {}, void 0, '...');
  8407.  
  8408. let Admin = function () {
  8409. function Admin(props) {
  8410. return _jsx('div', {
  8411. className: __WEBPACK_IMPORTED_MODULE_3__Admin_css___default.a.root
  8412. }, void 0, _jsx('div', {
  8413. className: __WEBPACK_IMPORTED_MODULE_3__Admin_css___default.a.container
  8414. }, void 0, _jsx('h1', {}, void 0, props.title), _ref));
  8415. }
  8416.  
  8417. return Admin;
  8418. }();
  8419.  
  8420. /* harmony default export */ __webpack_exports__["default"] = (__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default()(__WEBPACK_IMPORTED_MODULE_3__Admin_css___default.a)(Admin));
  8421.  
  8422. /***/ }),
  8423. /* 102 */
  8424. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8425.  
  8426. "use strict";
  8427. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8428. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8429. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8430. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__ = __webpack_require__(4);
  8431. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8432.  
  8433. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  8434.  
  8435. /**
  8436. * React Starter Kit (https://www.reactstarterkit.com/)
  8437. *
  8438. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  8439. *
  8440. * This source code is licensed under the MIT license found in the
  8441. * LICENSE.txt file in the root directory of this source tree.
  8442. */
  8443.  
  8444.  
  8445.  
  8446.  
  8447. const title = 'Admin Page';
  8448. const isAdmin = false;
  8449.  
  8450. /* harmony default export */ __webpack_exports__["default"] = ({
  8451.  
  8452. path: '/admin',
  8453.  
  8454. action() {
  8455. return _asyncToGenerator(function* () {
  8456. if (!isAdmin) {
  8457. return { redirect: '/login' };
  8458. }
  8459.  
  8460. const Admin = yield new Promise(function(resolve) { resolve(); }).then((function (require) {
  8461. return __webpack_require__(101).default;
  8462. }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
  8463.  
  8464. return {
  8465. title,
  8466. chunk: 'admin',
  8467. component: _jsx(__WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__["a" /* default */], {}, void 0, _jsx(Admin, {
  8468. title: title
  8469. }))
  8470. };
  8471. })();
  8472. }
  8473.  
  8474. });
  8475.  
  8476. /***/ }),
  8477. /* 103 */
  8478. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8479.  
  8480. "use strict";
  8481. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8482. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8483. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  8484. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  8485. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(7);
  8486. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__);
  8487. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Contact_css__ = __webpack_require__(133);
  8488. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__Contact_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__Contact_css__);
  8489. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8490.  
  8491. /**
  8492. * React Starter Kit (https://www.reactstarterkit.com/)
  8493. *
  8494. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  8495. *
  8496. * This source code is licensed under the MIT license found in the
  8497. * LICENSE.txt file in the root directory of this source tree.
  8498. */
  8499.  
  8500.  
  8501.  
  8502.  
  8503.  
  8504.  
  8505. var _ref = _jsx('p', {}, void 0, '...');
  8506.  
  8507. let Contact = function () {
  8508. function Contact(props) {
  8509. return _jsx('div', {
  8510. className: __WEBPACK_IMPORTED_MODULE_3__Contact_css___default.a.root
  8511. }, void 0, _jsx('div', {
  8512. className: __WEBPACK_IMPORTED_MODULE_3__Contact_css___default.a.container
  8513. }, void 0, _jsx('h1', {}, void 0, props.title), _ref));
  8514. }
  8515.  
  8516. return Contact;
  8517. }();
  8518.  
  8519. /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default()(__WEBPACK_IMPORTED_MODULE_3__Contact_css___default.a)(Contact));
  8520.  
  8521. /***/ }),
  8522. /* 104 */
  8523. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8524.  
  8525. "use strict";
  8526. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8527. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8528. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8529. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__ = __webpack_require__(4);
  8530. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__Contact__ = __webpack_require__(103);
  8531. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8532.  
  8533. /**
  8534. * React Starter Kit (https://www.reactstarterkit.com/)
  8535. *
  8536. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  8537. *
  8538. * This source code is licensed under the MIT license found in the
  8539. * LICENSE.txt file in the root directory of this source tree.
  8540. */
  8541.  
  8542.  
  8543.  
  8544.  
  8545.  
  8546. const title = 'Contact Us';
  8547.  
  8548. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__["a" /* default */], {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_2__Contact__["a" /* default */], {
  8549. title: title
  8550. }));
  8551.  
  8552. /* harmony default export */ __webpack_exports__["default"] = ({
  8553.  
  8554. path: '/contact',
  8555.  
  8556. action() {
  8557. return {
  8558. title,
  8559. component: _ref
  8560. };
  8561. }
  8562.  
  8563. });
  8564.  
  8565. /***/ }),
  8566. /* 105 */
  8567. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8568.  
  8569. "use strict";
  8570. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ErrorPage; });
  8571. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8572. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8573. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  8574. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  8575. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(7);
  8576. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__);
  8577. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ErrorPage_css__ = __webpack_require__(42);
  8578. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ErrorPage_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__ErrorPage_css__);
  8579. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8580.  
  8581. /**
  8582. * React Starter Kit (https://www.reactstarterkit.com/)
  8583. *
  8584. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  8585. *
  8586. * This source code is licensed under the MIT license found in the
  8587. * LICENSE.txt file in the root directory of this source tree.
  8588. */
  8589.  
  8590.  
  8591.  
  8592.  
  8593.  
  8594.  
  8595. var _ref = _jsx('div', {}, void 0, _jsx('h1', {}, void 0, 'Error'), _jsx('p', {}, void 0, 'Sorry, a critical error occurred on this page.'));
  8596.  
  8597. let ErrorPage = function () {
  8598. function ErrorPage(props) {
  8599. if (false) {
  8600. const { error } = props;
  8601. return _jsx('div', {}, void 0, _jsx('h1', {}, void 0, error.name), _jsx('p', {}, void 0, error.message), _jsx('pre', {}, void 0, error.stack));
  8602. }
  8603.  
  8604. return _ref;
  8605. }
  8606.  
  8607. return ErrorPage;
  8608. }();
  8609.  
  8610.  
  8611. /* unused harmony default export */ var _unused_webpack_default_export = (__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default()(__WEBPACK_IMPORTED_MODULE_3__ErrorPage_css___default.a)(ErrorPage));
  8612.  
  8613. /***/ }),
  8614. /* 106 */
  8615. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8616.  
  8617. "use strict";
  8618. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8619. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8620. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  8621. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  8622. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__client_modules_forums_content_DisplayContent_component__ = __webpack_require__(24);
  8623. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__home_content_pages_HomeContentPage__ = __webpack_require__(107);
  8624. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__home_authenticated_Authenticated_home_component__ = __webpack_require__(110);
  8625. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__home_NotAuthenticatedHome_component__ = __webpack_require__(109);
  8626. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_redux__ = __webpack_require__(2);
  8627. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_6_react_redux__);
  8628. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8629.  
  8630. /**
  8631. * React Starter Kit (https://www.reactstarterkit.com/)
  8632. *
  8633. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  8634. *
  8635. * This source code is licensed under the MIT license found in the
  8636. * LICENSE.txt file in the root directory of this source tree.
  8637. */
  8638.  
  8639.  
  8640.  
  8641.  
  8642.  
  8643.  
  8644.  
  8645.  
  8646.  
  8647.  
  8648.  
  8649.  
  8650. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_4__home_authenticated_Authenticated_home_component__["a" /* default */], {});
  8651.  
  8652. var _ref2 = _jsx(__WEBPACK_IMPORTED_MODULE_5__home_NotAuthenticatedHome_component__["a" /* default */], {});
  8653.  
  8654. var _ref3 = _jsx(__WEBPACK_IMPORTED_MODULE_3__home_content_pages_HomeContentPage__["a" /* default */], {});
  8655.  
  8656. var _ref4 = _jsx(__WEBPACK_IMPORTED_MODULE_2__client_modules_forums_content_DisplayContent_component__["a" /* default */], {});
  8657.  
  8658. let Home = class Home extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  8659.  
  8660. renderError() {
  8661. return _jsx('div', {
  8662. className: 'row'
  8663. }, void 0, _jsx('div', {
  8664. className: 'col-xs-12 col-sm-8 col-sm-offset-2 col-md-6 col-md-offset-3'
  8665. }, void 0, _jsx('div', {
  8666. className: 'alert alert-danger '
  8667. }, void 0, _jsx('h4', {
  8668. style: { textAlign: "center" }
  8669. }, void 0, 'NOT Found'), _jsx('strong', {}, void 0, this.props.URL || "/"), ' was not found. Probably what you\'ve been looking for doesn\'t exists or has been deleted in the mean while.')));
  8670. }
  8671.  
  8672. renderSimpleWebsite() {
  8673.  
  8674. return _jsx('div', {}, void 0, this.props.userAuthenticated.user.isLoggedIn() ? _ref : _ref2);
  8675. }
  8676.  
  8677. renderHomepageComponent() {
  8678.  
  8679. return _ref3;
  8680. }
  8681.  
  8682. render() {
  8683. return _jsx('div', {}, void 0, this.props.contentState.routerObject.object === null ? this.renderSimpleWebsite.call(this) : this.renderHomepageComponent.call(this), this.props.contentState.routerObject.notFound ? this.renderError.call(this) : ' A FOST GASIT', _ref4);
  8684. }
  8685. };
  8686.  
  8687.  
  8688. function mapState(state) {
  8689. return {
  8690. userAuthenticated: state.userAuthenticated,
  8691. contentState: state.contentState
  8692. };
  8693. };
  8694.  
  8695. function mapDispatch(dispatch) {
  8696. return {
  8697. dispatch: dispatch
  8698. };
  8699. };
  8700.  
  8701. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_6_react_redux__["connect"])(mapState, mapDispatch)(Home));
  8702.  
  8703. /***/ }),
  8704. /* 107 */
  8705. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8706.  
  8707. "use strict";
  8708. /* unused harmony export HomeContentPage */
  8709. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8710. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8711. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  8712. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  8713. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__client_services_REST_authentication_Auth_service__ = __webpack_require__(3);
  8714. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__client_services_Communication_http_Http_service__ = __webpack_require__(19);
  8715. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__client_modules_forums_forums_models_Forum_model__ = __webpack_require__(6);
  8716. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_ViewForum_component__ = __webpack_require__(108);
  8717. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8718.  
  8719. /**
  8720. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/12/2017.
  8721. * (C) BIT TECHNOLOGIES
  8722. */
  8723.  
  8724.  
  8725.  
  8726.  
  8727.  
  8728.  
  8729.  
  8730.  
  8731.  
  8732. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_5__pages_ViewForum_component__["a" /* default */], {});
  8733.  
  8734. var _ref2 = _jsx('b', {}, void 0, 'no valid content');
  8735.  
  8736. let HomeContentPage = class HomeContentPage extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  8737.  
  8738. constructor(props) {
  8739.  
  8740. super(props);
  8741. }
  8742.  
  8743. renderForum() {
  8744. //console.log("%%%%%%%%%%%RENDER FORUM ",this.props.object);
  8745.  
  8746. return _ref;
  8747. }
  8748.  
  8749. render() {
  8750.  
  8751. console.log('@@@@', this.props.contentState.routerObject.type);
  8752.  
  8753. switch (this.props.contentState.routerObject.type) {
  8754. case 'forum':
  8755. return this.renderForum();
  8756. case 'user':
  8757. return this.renderForum();
  8758. case 'topic':
  8759. return this.renderForum();
  8760. }
  8761.  
  8762. return _ref2;
  8763. }
  8764. };
  8765.  
  8766. function mapState(state) {
  8767. return {
  8768. userAuthenticated: state.userAuthenticated,
  8769. contentState: state.contentState
  8770. };
  8771. };
  8772.  
  8773. function mapDispatch(dispatch) {
  8774. return {
  8775. dispatch: dispatch
  8776. };
  8777. };
  8778.  
  8779. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(HomeContentPage));
  8780.  
  8781. /***/ }),
  8782. /* 108 */
  8783. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8784.  
  8785. "use strict";
  8786. /* unused harmony export ViewForum */
  8787. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8788. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8789. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  8790. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  8791. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__client_services_REST_authentication_Auth_service__ = __webpack_require__(3);
  8792. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__client_services_REST_forums_forums_Forums_service__ = __webpack_require__(14);
  8793. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__client_components_Template_Template_components_Header_Cover_HeaderCover_component__ = __webpack_require__(22);
  8794. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__client_components_Template_Template_components_Header_Cover_WebsiteHeaderCover_component__ = __webpack_require__(62);
  8795. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__client_modules_forums_content_DisplayContent_component__ = __webpack_require__(24);
  8796. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8797.  
  8798. /**
  8799. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/24/2017.
  8800. * (C) BIT TECHNOLOGIES
  8801. */
  8802.  
  8803.  
  8804.  
  8805.  
  8806.  
  8807.  
  8808.  
  8809.  
  8810.  
  8811.  
  8812.  
  8813.  
  8814. var _ref = _jsx('h4', {}, void 0, 'Forum NOT Found');
  8815.  
  8816. var _ref2 = _jsx(__WEBPACK_IMPORTED_MODULE_5__client_components_Template_Template_components_Header_Cover_WebsiteHeaderCover_component__["a" /* default */], {});
  8817.  
  8818. var _ref3 = _jsx(__WEBPACK_IMPORTED_MODULE_6__client_modules_forums_content_DisplayContent_component__["a" /* default */], {});
  8819.  
  8820. let ViewForum = class ViewForum extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  8821.  
  8822. constructor(props) {
  8823. super(props);
  8824. }
  8825.  
  8826. renderForum() {
  8827. return _jsx('div', {}, void 0, _jsx(HeroHeader, {}, void 0, _jsx('span', {}, void 0, this.props.routerState.currentRouterObject.object.title)));
  8828. }
  8829.  
  8830. renderError() {
  8831. return _jsx(Alert, {
  8832. danger: true
  8833. }, void 0, _ref, _jsx('strong', {}, void 0, this.props.params.forumURL || ""), ' was not found. Probably the forum you are looking for doesn\'t exists or has been deleted.');
  8834. }
  8835.  
  8836. render() {
  8837.  
  8838. console.log("%%%%%%%%%%% VIEW FORUM ", this.props.routerState.currentRouterObject.object);
  8839.  
  8840. return _jsx('div', {}, void 0, this.props.routerState.currentRouterObject.object !== null && this.props.routerState.currentRouterObject.objectNotFound === false ? _jsx(__WEBPACK_IMPORTED_MODULE_4__client_components_Template_Template_components_Header_Cover_HeaderCover_component__["a" /* default */], {
  8841. title: this.props.routerState.currentRouterObject.object.title || "",
  8842. subTitle: this.props.routerState.currentRouterObject.object.description || "",
  8843. icon: this.props.routerState.currentRouterObject.object.iconPic || "",
  8844. cover: this.props.routerState.currentRouterObject.object.coverPic || '',
  8845. backgroundColor: this.props.routerState.currentRouterObject.object.coverColor || ''
  8846. }) : _ref2, _jsx(Hero, {
  8847. style: { position: 'relative', zIndex: 2 }
  8848. }, void 0, this.props.routerState.currentRouterObject.object !== null ? this.renderForum.call(this) : this.renderError.bind(this)), _ref3);
  8849. }
  8850. };
  8851.  
  8852. function mapState(state) {
  8853. return {
  8854. userAuthenticated: state.userAuthenticated,
  8855. routerState: state.routerState
  8856. };
  8857. };
  8858.  
  8859. function mapDispatch(dispatch) {
  8860. return {
  8861. dispatch: dispatch
  8862. };
  8863. };
  8864.  
  8865. /* harmony default export */ __webpack_exports__["a"] = (__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_1_react_redux__["connect"])(mapState, mapDispatch)(ViewForum));
  8866.  
  8867. /***/ }),
  8868. /* 109 */
  8869. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8870.  
  8871. "use strict";
  8872. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return NotAuthenticatedHome; });
  8873. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8874. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8875. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  8876. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  8877. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8878.  
  8879. /**
  8880. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/16/2017.
  8881. * (C) BIT TECHNOLOGIES
  8882. */
  8883.  
  8884.  
  8885.  
  8886.  
  8887.  
  8888. var _ref = _jsx("div", {}, void 0, _jsx("section", {
  8889. id: "team",
  8890. className: "gray-section team"
  8891. }, void 0, _jsx("div", {
  8892. className: "container"
  8893. }, void 0, _jsx("div", {
  8894. className: "row m-b-lg"
  8895. }, void 0, _jsx("div", {
  8896. className: "col-lg-12 text-center"
  8897. }, void 0, _jsx("div", {
  8898. className: "navy-line"
  8899. }), _jsx("h1", {}, void 0, _jsx("strong", {}, void 0, "SkyHub")), _jsx("p", {}, void 0, "SkyHub is a new Social Network that allows people to ", _jsx("strong", {}, void 0, "discover, talk and change "), " the world together"))), _jsx("div", {
  8900. className: "row"
  8901. }, void 0, _jsx("div", {
  8902. className: "col-lg-8 col-lg-offset-2 text-center m-t-lg m-b-lg"
  8903. }, void 0, _jsx("p", {}, void 0, "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Aut eaque, laboriosam veritatis, quos non quis ad perspiciatis, totam corporis ea, alias ut unde."))))));
  8904.  
  8905. let NotAuthenticatedHome = function () {
  8906. function NotAuthenticatedHome(props) {
  8907. return _ref;
  8908. }
  8909.  
  8910. return NotAuthenticatedHome;
  8911. }();
  8912.  
  8913.  
  8914.  
  8915. /***/ }),
  8916. /* 110 */
  8917. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8918.  
  8919. "use strict";
  8920. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AuthenticatedHomeComponent; });
  8921. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8922. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8923. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux__ = __webpack_require__(2);
  8924. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_react_redux___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_react_redux__);
  8925. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8926.  
  8927. /**
  8928. * Created by Alexandru Ionut Budisteanu - SkyHub on 5/16/2017.
  8929. * (C) BIT TECHNOLOGIES
  8930. */
  8931.  
  8932.  
  8933.  
  8934.  
  8935. var _ref = _jsx("div", {}, void 0, "HELLO WORLD");
  8936.  
  8937. let AuthenticatedHomeComponent = function () {
  8938. function AuthenticatedHomeComponent(props) {
  8939. return _ref;
  8940. }
  8941.  
  8942. return AuthenticatedHomeComponent;
  8943. }();
  8944.  
  8945.  
  8946.  
  8947. /***/ }),
  8948. /* 111 */
  8949. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  8950.  
  8951. "use strict";
  8952. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  8953. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  8954. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  8955. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__Home__ = __webpack_require__(106);
  8956. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__client_components_Template_Layout__ = __webpack_require__(4);
  8957. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__my_redux_actions_Localization_actions__ = __webpack_require__(12);
  8958. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__client_services_REST_forums_content_Content_service__ = __webpack_require__(20);
  8959. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  8960.  
  8961. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  8962.  
  8963. /**
  8964. * React Starter Kit (https://www.reactstarterkit.com/)
  8965. *
  8966. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  8967. *
  8968. * This source code is licensed under the MIT license found in the
  8969. * LICENSE.txt file in the root directory of this source tree.
  8970. */
  8971.  
  8972.  
  8973.  
  8974.  
  8975.  
  8976.  
  8977.  
  8978.  
  8979.  
  8980. /* harmony default export */ __webpack_exports__["default"] = ({
  8981.  
  8982. path: '/:url*',
  8983. //path: '/:filter(active|completed|)',
  8984.  
  8985.  
  8986. action({ params, fetch, store }) {
  8987. return _asyncToGenerator(function* () {
  8988.  
  8989. yield store.dispatch(__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_3__my_redux_actions_Localization_actions__["b" /* startLocalizationFetchingAsync */])());
  8990.  
  8991. __WEBPACK_IMPORTED_MODULE_4__client_services_REST_forums_content_Content_service__["a" /* default */].startService(store.dispatch, store.getState().routerState);
  8992. var contentData = yield __WEBPACK_IMPORTED_MODULE_4__client_services_REST_forums_content_Content_service__["a" /* default */].fetchRouterObjectAndContent(params.url || '', 'http');
  8993.  
  8994. //if (!data || !data.news) throw new Error('Failed to load the news feed.');
  8995. console.log("DATA ", contentData);
  8996.  
  8997. return {
  8998. title: 'React Starter Kit',
  8999. component: _jsx(__WEBPACK_IMPORTED_MODULE_2__client_components_Template_Layout__["a" /* default */], {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_1__Home__["a" /* default */], {
  9000. URL: params.url
  9001. }))
  9002. };
  9003. })();
  9004. }
  9005.  
  9006. });
  9007.  
  9008. /***/ }),
  9009. /* 112 */
  9010. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9011.  
  9012. "use strict";
  9013. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__my_redux_actions_Localization_actions__ = __webpack_require__(12);
  9014. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  9015.  
  9016. /**
  9017. * React Starter Kit (https://www.reactstarterkit.com/)
  9018. *
  9019. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  9020. *
  9021. * This source code is licensed under the MIT license found in the
  9022. * LICENSE.txt file in the root directory of this source tree.
  9023. */
  9024.  
  9025. /* eslint-disable global-require */
  9026.  
  9027.  
  9028.  
  9029. // The top-level (parent) route
  9030. /* harmony default export */ __webpack_exports__["a"] = ({
  9031.  
  9032. path: '/',
  9033.  
  9034. // Keep in mind, routes are evaluated in order
  9035. children: [__webpack_require__(104).default, __webpack_require__(113).default, __webpack_require__(118).default, __webpack_require__(100).default, __webpack_require__(117).default, __webpack_require__(102).default, __webpack_require__(120).default, __webpack_require__(111).default,
  9036.  
  9037. // Wildcard routes, e.g. { path: '*', ... } (must go last)
  9038. __webpack_require__(116).default],
  9039.  
  9040. action({ next, store }) {
  9041. return _asyncToGenerator(function* () {
  9042. // Execute each child route until one of them return the result
  9043. const route = yield next();
  9044.  
  9045. // Provide default values for title, description etc.
  9046. route.title = `${route.title || 'SkyHub Social Network'} - www.skyhub.me`;
  9047. route.description = route.description || '';
  9048.  
  9049. return route;
  9050. })();
  9051. }
  9052.  
  9053. });
  9054.  
  9055. /***/ }),
  9056. /* 113 */
  9057. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9058.  
  9059. "use strict";
  9060. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9061. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  9062. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  9063. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__ = __webpack_require__(4);
  9064. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__login_page__ = __webpack_require__(114);
  9065. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  9066.  
  9067. /**
  9068. * React Starter Kit (https://www.reactstarterkit.com/)
  9069. *
  9070. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  9071. *
  9072. * This source code is licensed under the MIT license found in the
  9073. * LICENSE.txt file in the root directory of this source tree.
  9074. */
  9075.  
  9076.  
  9077.  
  9078.  
  9079. //import Login from './Login';
  9080.  
  9081.  
  9082. const title = 'Log In';
  9083.  
  9084. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__["a" /* default */], {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_2__login_page__["a" /* default */], {
  9085. title: title
  9086. }));
  9087.  
  9088. /* harmony default export */ __webpack_exports__["default"] = ({
  9089.  
  9090. path: '/login',
  9091.  
  9092. action() {
  9093. return {
  9094. title,
  9095. component: _ref
  9096. };
  9097. }
  9098.  
  9099. });
  9100.  
  9101. /***/ }),
  9102. /* 114 */
  9103. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9104.  
  9105. "use strict";
  9106. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginPage; });
  9107. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  9108. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  9109. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames__ = __webpack_require__(44);
  9110. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_classnames___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_classnames__);
  9111. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__client_modules_users_authentication_login_login_form__ = __webpack_require__(26);
  9112. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  9113.  
  9114.  
  9115.  
  9116.  
  9117.  
  9118.  
  9119. var _ref = _jsx('div', {
  9120. className: 'panel-heading'
  9121. }, void 0, _jsx('h2', {}, void 0, _jsx('strong', {}, void 0, 'Login to '), 'SkyHub'));
  9122.  
  9123. let LoginPage = class LoginPage extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  9124. constructor(...args) {
  9125. var _temp;
  9126.  
  9127. return _temp = super(...args), this.loginForm = null, _temp;
  9128. }
  9129.  
  9130. back(e) {
  9131. e.preventDefault();e.stopPropagation();
  9132. //this.props.router.goBack();
  9133. }
  9134.  
  9135. componentDidMount() {
  9136. $('html').addClass('authentication');
  9137. }
  9138.  
  9139. componentWillUnmount() {
  9140. $('html').removeClass('authentication');
  9141. }
  9142.  
  9143. render() {
  9144. return _jsx('div', {
  9145. id: 'auth-container',
  9146. className: 'login',
  9147. style: { marginTop: 75 }
  9148. }, void 0, _jsx('div', {
  9149. className: 'col-sm-7 col-sm-offset-3 col-xs-10 col-xs-offset-1'
  9150. }, void 0, _jsx('div', {
  9151. className: 'panel panel-success'
  9152. }, void 0, _ref, _jsx('div', {
  9153. className: 'panel-body'
  9154. }, void 0, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__client_modules_users_authentication_login_login_form__["a" /* default */], { ref: c => this.loginForm = c, onSuccess: this.back.bind(this) })))));
  9155. }
  9156. };
  9157.  
  9158.  
  9159. /***/ }),
  9160. /* 115 */
  9161. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9162.  
  9163. "use strict";
  9164. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  9165. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  9166. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types__ = __webpack_require__(1);
  9167. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_prop_types___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_prop_types__);
  9168. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__ = __webpack_require__(7);
  9169. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles__);
  9170. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__NotFound_css__ = __webpack_require__(134);
  9171. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__NotFound_css___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__NotFound_css__);
  9172. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  9173.  
  9174. /**
  9175. * React Starter Kit (https://www.reactstarterkit.com/)
  9176. *
  9177. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  9178. *
  9179. * This source code is licensed under the MIT license found in the
  9180. * LICENSE.txt file in the root directory of this source tree.
  9181. */
  9182.  
  9183.  
  9184.  
  9185.  
  9186.  
  9187.  
  9188. var _ref = _jsx('p', {}, void 0, 'Sorry, the page you were trying to view does not exist.');
  9189.  
  9190. let NotFound = function () {
  9191. function NotFound(props) {
  9192. return _jsx('div', {
  9193. className: __WEBPACK_IMPORTED_MODULE_3__NotFound_css___default.a.root
  9194. }, void 0, _jsx('div', {
  9195. className: __WEBPACK_IMPORTED_MODULE_3__NotFound_css___default.a.container
  9196. }, void 0, _jsx('h1', {}, void 0, props.title), _ref));
  9197. }
  9198.  
  9199. return NotFound;
  9200. }();
  9201.  
  9202. /* harmony default export */ __webpack_exports__["a"] = (__WEBPACK_IMPORTED_MODULE_2_isomorphic_style_loader_lib_withStyles___default()(__WEBPACK_IMPORTED_MODULE_3__NotFound_css___default.a)(NotFound));
  9203.  
  9204. /***/ }),
  9205. /* 116 */
  9206. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9207.  
  9208. "use strict";
  9209. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9210. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  9211. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  9212. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__ = __webpack_require__(4);
  9213. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__NotFound__ = __webpack_require__(115);
  9214. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  9215.  
  9216. /**
  9217. * React Starter Kit (https://www.reactstarterkit.com/)
  9218. *
  9219. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  9220. *
  9221. * This source code is licensed under the MIT license found in the
  9222. * LICENSE.txt file in the root directory of this source tree.
  9223. */
  9224.  
  9225.  
  9226.  
  9227.  
  9228.  
  9229. const title = 'Page Not Found';
  9230.  
  9231. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__["a" /* default */], {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_2__NotFound__["a" /* default */], {
  9232. title: title
  9233. }));
  9234.  
  9235. /* harmony default export */ __webpack_exports__["default"] = ({
  9236.  
  9237. path: '*',
  9238.  
  9239. action() {
  9240. return {
  9241. title,
  9242. component: _ref,
  9243. status: 404
  9244. };
  9245. }
  9246.  
  9247. });
  9248.  
  9249. /***/ }),
  9250. /* 117 */
  9251. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9252.  
  9253. "use strict";
  9254. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9255. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  9256. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  9257. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__ = __webpack_require__(4);
  9258. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__client_components_Page__ = __webpack_require__(18);
  9259. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  9260.  
  9261. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  9262.  
  9263. /**
  9264. * React Starter Kit (https://www.reactstarterkit.com/)
  9265. *
  9266. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  9267. *
  9268. * This source code is licensed under the MIT license found in the
  9269. * LICENSE.txt file in the root directory of this source tree.
  9270. */
  9271.  
  9272.  
  9273.  
  9274.  
  9275.  
  9276. /* harmony default export */ __webpack_exports__["default"] = ({
  9277.  
  9278. path: '/privacy',
  9279.  
  9280. action() {
  9281. return _asyncToGenerator(function* () {
  9282. const data = yield new Promise(function(resolve) { resolve(); }).then((function (require) {
  9283. return __webpack_require__(136);
  9284. }).bind(null, __webpack_require__)).catch(__webpack_require__.oe);
  9285.  
  9286. return {
  9287. title: data.title,
  9288. chunk: 'privacy',
  9289. component: _jsx(__WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__["a" /* default */], {}, void 0, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_2__client_components_Page__["a" /* default */], data))
  9290. };
  9291. })();
  9292. }
  9293.  
  9294. });
  9295.  
  9296. /***/ }),
  9297. /* 118 */
  9298. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9299.  
  9300. "use strict";
  9301. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9302. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  9303. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  9304. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__ = __webpack_require__(4);
  9305. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__registration_page__ = __webpack_require__(119);
  9306. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  9307.  
  9308. /**
  9309. * React Starter Kit (https://www.reactstarterkit.com/)
  9310. *
  9311. * Copyright © 2014-present Kriasoft, LLC. All rights reserved.
  9312. *
  9313. * This source code is licensed under the MIT license found in the
  9314. * LICENSE.txt file in the root directory of this source tree.
  9315. */
  9316.  
  9317.  
  9318.  
  9319.  
  9320. //import Register from './Register';
  9321.  
  9322.  
  9323. const title = 'New User Registration';
  9324.  
  9325. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__["a" /* default */], {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_2__registration_page__["a" /* default */], {
  9326. title: title
  9327. }));
  9328.  
  9329. /* harmony default export */ __webpack_exports__["default"] = ({
  9330.  
  9331. path: '/register',
  9332.  
  9333. action() {
  9334. return {
  9335. title,
  9336. component: _ref
  9337. };
  9338. }
  9339.  
  9340. });
  9341.  
  9342. /***/ }),
  9343. /* 119 */
  9344. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9345.  
  9346. "use strict";
  9347. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return RegistrationPage; });
  9348. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  9349. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  9350. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_modules_users_authentication_registration_registration_form__ = __webpack_require__(28);
  9351. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  9352.  
  9353. /**
  9354. * Created by Alexandru Ionut Budisteanu - SkyHub
  9355. * (C) BIT TECHNOLOGIES
  9356. */
  9357.  
  9358.  
  9359.  
  9360.  
  9361.  
  9362. var _ref = _jsx('div', {
  9363. className: 'panel-heading'
  9364. }, void 0, _jsx('h2', {}, void 0, _jsx('strong', {}, void 0, 'Register '), 'SkyHub'));
  9365.  
  9366. let RegistrationPage = class RegistrationPage extends __WEBPACK_IMPORTED_MODULE_0_react___default.a.Component {
  9367.  
  9368. back(e) {
  9369. e.preventDefault();e.stopPropagation();
  9370. // this.props.router.goBack();
  9371. }
  9372.  
  9373. componentDidMount() {
  9374. $('html').addClass('authentication');
  9375. }
  9376.  
  9377. componentWillUnmount() {
  9378. $('html').removeClass('authentication');
  9379. }
  9380.  
  9381. render() {
  9382. return _jsx('div', {
  9383. id: 'auth-container',
  9384. className: 'login',
  9385. style: { marginTop: 75 }
  9386. }, void 0, _jsx('div', {
  9387. className: 'col-sm-7 col-sm-offset-3 col-xs-10 col-xs-offset-1'
  9388. }, void 0, _jsx('div', {
  9389. className: 'panel panel-warning'
  9390. }, void 0, _ref, _jsx('div', {
  9391. className: 'panel-body'
  9392. }, void 0, __WEBPACK_IMPORTED_MODULE_0_react___default.a.createElement(__WEBPACK_IMPORTED_MODULE_1__client_modules_users_authentication_registration_registration_form__["a" /* default */], { ref: c => this.loginForm = c, onSuccess: this.back.bind(this) })))));
  9393. }
  9394. };
  9395.  
  9396.  
  9397. /***/ }),
  9398. /* 120 */
  9399. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9400.  
  9401. "use strict";
  9402. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  9403. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  9404. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  9405. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__test_redux_TestRedux__ = __webpack_require__(121);
  9406. /* eslint-disable import/prefer-default-export */
  9407.  
  9408.  
  9409.  
  9410.  
  9411.  
  9412. const title = 'SkyHub Testing';
  9413.  
  9414. /* harmony default export */ __webpack_exports__["default"] = ({
  9415. path: '/testing/redux',
  9416.  
  9417. action() {
  9418. return __WEBPACK_IMPORTED_MODULE_1__test_redux_TestRedux__["a" /* default */].action();
  9419. }
  9420. });
  9421.  
  9422. /***/ }),
  9423. /* 121 */
  9424. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9425.  
  9426. "use strict";
  9427. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react__ = __webpack_require__(0);
  9428. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_react___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_react__);
  9429. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__ = __webpack_require__(4);
  9430. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__client_components_Page__ = __webpack_require__(18);
  9431. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__my_redux_test_redux_TestRedux_component__ = __webpack_require__(40);
  9432. var _jsx = function () { var REACT_ELEMENT_TYPE = typeof Symbol === "function" && Symbol.for && Symbol.for("react.element") || 0xeac7; return function createRawReactElement(type, props, key, children) { var defaultProps = type && type.defaultProps; var childrenLength = arguments.length - 3; if (!props && childrenLength !== 0) { props = {}; } if (props && defaultProps) { for (var propName in defaultProps) { if (props[propName] === void 0) { props[propName] = defaultProps[propName]; } } } else if (!props) { props = defaultProps || {}; } if (childrenLength === 1) { props.children = children; } else if (childrenLength > 1) { var childArray = Array(childrenLength); for (var i = 0; i < childrenLength; i++) { childArray[i] = arguments[i + 3]; } props.children = childArray; } return { $$typeof: REACT_ELEMENT_TYPE, type: type, key: key === undefined ? null : '' + key, ref: null, props: props, _owner: null }; }; }();
  9433.  
  9434. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  9435.  
  9436. /**
  9437. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/9/2017.
  9438. * (C) BIT TECHNOLOGIES
  9439. */
  9440.  
  9441.  
  9442.  
  9443.  
  9444.  
  9445.  
  9446.  
  9447. var _ref = _jsx(__WEBPACK_IMPORTED_MODULE_1__client_components_Template_Layout__["a" /* default */], {}, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_2__client_components_Page__["a" /* default */], {
  9448. title: 'TESTING REDUX',
  9449. html: ''
  9450. }, void 0, _jsx(__WEBPACK_IMPORTED_MODULE_3__my_redux_test_redux_TestRedux_component__["a" /* default */], {})));
  9451.  
  9452. /* harmony default export */ __webpack_exports__["a"] = ({
  9453.  
  9454. path: '/about',
  9455.  
  9456. action() {
  9457. return _asyncToGenerator(function* () {
  9458.  
  9459. return {
  9460. title: "TESTING REDUX",
  9461. description: 'TESTING REDUX',
  9462. chunk: 'test-redux',
  9463. component: _ref
  9464. };
  9465. })();
  9466. }
  9467.  
  9468. });
  9469.  
  9470. /***/ }),
  9471. /* 122 */
  9472. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9473.  
  9474. "use strict";
  9475. /* harmony export (immutable) */ __webpack_exports__["a"] = initializePassport;
  9476. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_express_jwt__ = __webpack_require__(146);
  9477. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_express_jwt___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_express_jwt__);
  9478. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_jsonwebtoken__ = __webpack_require__(149);
  9479. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_jsonwebtoken___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_jsonwebtoken__);
  9480. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_passport__ = __webpack_require__(150);
  9481. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_passport___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_passport__);
  9482. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config__ = __webpack_require__(15);
  9483. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__config___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3__config__);
  9484. /**
  9485. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/9/2017.
  9486. * (C) BIT TECHNOLOGIES
  9487. */
  9488.  
  9489.  
  9490.  
  9491.  
  9492.  
  9493.  
  9494. function initializePassport(app) {
  9495.  
  9496. //
  9497. // Authentication
  9498. // -----------------------------------------------------------------------------
  9499. app.use(__WEBPACK_IMPORTED_MODULE_0_express_jwt___default()({
  9500. secret: __WEBPACK_IMPORTED_MODULE_3__config___default.a.auth.jwt.secret,
  9501. credentialsRequired: false,
  9502. getToken: req => req.cookies.id_token
  9503. }));
  9504.  
  9505. // Error handler for express-jwt
  9506. app.use((err, req, res, next) => {
  9507. // eslint-disable-line no-unused-vars
  9508. if (err instanceof __WEBPACK_IMPORTED_MODULE_0_express_jwt__["UnauthorizedError"]) {
  9509. console.error('[express-jwt-error]', req.cookies.id_token);
  9510. // `clearCookie`, otherwise user can't use web-app until cookie expires
  9511. res.clearCookie('id_token');
  9512. }
  9513. next(err);
  9514. });
  9515.  
  9516. app.use(__WEBPACK_IMPORTED_MODULE_2_passport___default.a.initialize());
  9517.  
  9518. if (false) {
  9519. app.enable('trust proxy');
  9520. }
  9521.  
  9522. app.get('/login/facebook', __WEBPACK_IMPORTED_MODULE_2_passport___default.a.authenticate('facebook', { scope: ['email', 'user_location'], session: false }));
  9523.  
  9524. app.get('/login/facebook/return', __WEBPACK_IMPORTED_MODULE_2_passport___default.a.authenticate('facebook', { failureRedirect: '/login', session: false }), (req, res) => {
  9525. const expiresIn = 60 * 60 * 24 * 180; // 180 days
  9526. const token = __WEBPACK_IMPORTED_MODULE_1_jsonwebtoken___default.a.sign(req.user, __WEBPACK_IMPORTED_MODULE_3__config___default.a.auth.jwt.secret, { expiresIn });
  9527. res.cookie('id_token', token, { maxAge: 1000 * expiresIn, httpOnly: true });
  9528. res.redirect('/');
  9529. });
  9530. }
  9531.  
  9532. /***/ }),
  9533. /* 123 */
  9534. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  9535.  
  9536. "use strict";
  9537. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_socket_io_client__ = __webpack_require__(48);
  9538. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_socket_io_client___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_socket_io_client__);
  9539. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__ = __webpack_require__(47);
  9540. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__);
  9541. function _asyncToGenerator(fn) { return function () { var gen = fn.apply(this, arguments); return new Promise(function (resolve, reject) { function step(key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { return Promise.resolve(value).then(function (value) { step("next", value); }, function (err) { step("throw", err); }); } } return step("next"); }); }; }
  9542.  
  9543. /**
  9544. * Created by Alexandru Ionut Budisteanu - SkyHub on 6/11/2017.
  9545. * (C) BIT TECHNOLOGIES
  9546. */
  9547.  
  9548.  
  9549.  
  9550.  
  9551.  
  9552. let SocketWorkerClass = class SocketWorkerClass {
  9553.  
  9554. constructor() {
  9555. this.socket = null;
  9556. this.sServerSocketAddress = "myskyhub.ddns.net:4000/";
  9557. this.sServerSocketApi = "api/";
  9558. this.sServerSocketVersion = "";
  9559.  
  9560.  
  9561. console.log(' @@@@@@ Socket Worker Client constructor');
  9562. }
  9563.  
  9564. startService() {
  9565. this.createClientWorkerSocket();
  9566. }
  9567.  
  9568. createClientWorkerSocket() {
  9569.  
  9570. console.log("Trying to create Worker Socket ...");
  9571.  
  9572. this.socket = __WEBPACK_IMPORTED_MODULE_0_socket_io_client__["connect"](this.sServerSocketAddress, {
  9573. //transports: [ 'xhr-polling' ],
  9574. //transports: ['xhr-multipart'],
  9575. //transports: ['polling'],
  9576. //transports: ['websocket'],
  9577. //transports: ['websocket', 'polling'],
  9578. port: 4000,
  9579. query: "token=" + "xxxx" //JWT Token
  9580. });
  9581.  
  9582. this.setSocketReadObservable("connect").subscribe(response => {
  9583. console.log('SocketWorker has connected to the server!');
  9584. });
  9585.  
  9586. this.socket.on("connect_failed", function () {
  9587. console.log('SocketWorker Connecting failed 222');
  9588. });
  9589.  
  9590. this.setSocketReadObservable("connect_error").subscribe(response => {
  9591. console.log('SocketWorker Connecting Error ', response);
  9592. });
  9593.  
  9594. this.socket.on("error", function () {
  9595. console.log('SocketWorker error 222');
  9596. });
  9597.  
  9598. // THE SAME CODE written but using OBSERVABLE
  9599. this.setSocketReadObservable("connectionReady").subscribe(response => {
  9600.  
  9601. console.log("SocketWorker Connection Ready: " + response);
  9602.  
  9603. this.sendRequestObservable("version", '').subscribe(response => {
  9604.  
  9605. this.sServerSocketVersion = response.version;
  9606.  
  9607. console.log("API VERSION: " + response.version);
  9608. });
  9609. });
  9610.  
  9611. // Add a connect listener
  9612. this.socket.on('api/message', function (data) {
  9613. console.log('Received a message from the server!', data);
  9614. });
  9615.  
  9616. // Add a disconnect listener
  9617. this.setSocketReadObservable("disconnect").subscribe(response => {
  9618.  
  9619. console.log('SocketWorker has disconnected!');
  9620. });
  9621. }
  9622.  
  9623. /*
  9624. FUNCTIONS
  9625. */
  9626.  
  9627. checkAuthCookie(cookie) {
  9628. var _this = this;
  9629.  
  9630. return _asyncToGenerator(function* () {
  9631.  
  9632. let sessionId = '';
  9633.  
  9634. //based on this https://stackoverflow.com/questions/3393854/get-and-set-a-single-cookie-with-node-js-http-server
  9635. cookie && cookie.split(';').forEach(function (cookie) {
  9636. let parts = cookie.split('=');
  9637.  
  9638. let cookieName = parts.shift().trim();
  9639.  
  9640. if (cookieName === 'sessionId') sessionId = decodeURI(parts.join('='));
  9641. });
  9642.  
  9643. if (sessionId !== '' && sessionId.length > 5) {
  9644.  
  9645. return _this.sendRequestGetDataPromise("auth/login-session", sessionId);
  9646. } else {
  9647. return {
  9648. result: false,
  9649. message: "cookie invalid"
  9650. };
  9651. }
  9652. })();
  9653. }
  9654.  
  9655. sendRequest(sRequestName, requestData) {
  9656.  
  9657. //console.log('sending'+sRequestName); console.log(sRequestData);
  9658.  
  9659. if (sRequestName !== '' || requestData !== '') return this.socket.emit(this.sServerSocketApi + sRequestName, requestData);
  9660. }
  9661.  
  9662. /*
  9663. Sending the Request and Obtain the Promise to Wait Async
  9664. */
  9665. sendRequestGetDataPromise(sRequestName, sRequestData) {
  9666. return new Promise(resolve => {
  9667.  
  9668. this.sendRequest(sRequestName, sRequestData);
  9669.  
  9670. this.socket.once(this.sServerSocketApi + sRequestName, function (resData) {
  9671.  
  9672. /*console.log('SOCKET RECEIVED: ');
  9673. console.log(resData);*/
  9674.  
  9675. resolve(resData);
  9676. });
  9677. });
  9678. }
  9679.  
  9680. /*
  9681. Sending Request and Obtain the Observable Object
  9682. */
  9683. sendRequestObservable(sRequestName, sRequestData) {
  9684.  
  9685. var result = this.sendRequest(sRequestName, sRequestData);
  9686.  
  9687. return this.setSocketReadObservable(sRequestName);
  9688. }
  9689.  
  9690. setSocketReadObservable(sRequestName) {
  9691.  
  9692. if (sRequestName !== "connect" && sRequestName !== "disconnect" && sRequestName !== 'connect_failed' && sRequestName !== 'connect_error') sRequestName = this.sServerSocketApi + sRequestName;
  9693.  
  9694. //let observable = new Observable < Object > (observer => {
  9695. let observable = __WEBPACK_IMPORTED_MODULE_1_rxjs_Observable__["Observable"].create(observer => {
  9696. this.socket.on(sRequestName, data => {
  9697. observer.next(data);
  9698. });
  9699. });
  9700.  
  9701. //console.log("SocketWorker OBSERVABLE for "+sRequestName,observable,);
  9702. return observable;
  9703. }
  9704.  
  9705. };
  9706.  
  9707.  
  9708. var SocketWorker = new SocketWorkerClass();
  9709.  
  9710. /* unused harmony default export */ var _unused_webpack_default_export = (SocketWorker);
  9711.  
  9712. // export default {
  9713. // SocketWorker: SocketWorker,
  9714. // createNewInstance: function (){
  9715. // SocketWorker = new SocketWorkerClass();
  9716. // }
  9717. // };
  9718.  
  9719. /***/ }),
  9720. /* 124 */
  9721. /***/ (function(module, exports, __webpack_require__) {
  9722.  
  9723. exports = module.exports = __webpack_require__(8)(false);
  9724. // imports
  9725.  
  9726.  
  9727. // module
  9728. exports.push([module.i, "._1zAhc{background:#f5f5f5;color:#333}._2_1A7{margin:0 auto;padding:20px 8px;max-width:1000px;text-align:center;font-size:1.5em}.pTzko,.pTzko:active,.pTzko:hover,.pTzko:visited{color:#333;text-decoration:none}.pTzko:hover{text-decoration:underline}._12FIM{padding-right:15px;padding-left:15px}", ""]);
  9729.  
  9730. // exports
  9731. exports.locals = {
  9732. "root": "_1zAhc",
  9733. "container": "_2_1A7",
  9734. "link": "pTzko",
  9735. "spacer": "_12FIM"
  9736. };
  9737.  
  9738. /***/ }),
  9739. /* 125 */
  9740. /***/ (function(module, exports, __webpack_require__) {
  9741.  
  9742. exports = module.exports = __webpack_require__(8)(false);
  9743. // imports
  9744.  
  9745.  
  9746. // module
  9747. exports.push([module.i, ".bm87A{padding-left:20px;padding-right:20px}._5Opdb{margin:0 auto;padding:0 0 40px;max-width:1000px}", ""]);
  9748.  
  9749. // exports
  9750. exports.locals = {
  9751. "root": "bm87A",
  9752. "container": "_5Opdb"
  9753. };
  9754.  
  9755. /***/ }),
  9756. /* 126 */
  9757. /***/ (function(module, exports, __webpack_require__) {
  9758.  
  9759. exports = module.exports = __webpack_require__(8)(false);
  9760. // imports
  9761.  
  9762.  
  9763. // module
  9764. exports.push([module.i, "._2FmpK{padding-left:20px;padding-right:20px}._1Q6TR{margin:0 auto;padding:0 0 40px;max-width:1000px}", ""]);
  9765.  
  9766. // exports
  9767. exports.locals = {
  9768. "root": "_2FmpK",
  9769. "container": "_1Q6TR"
  9770. };
  9771.  
  9772. /***/ }),
  9773. /* 127 */
  9774. /***/ (function(module, exports, __webpack_require__) {
  9775.  
  9776. exports = module.exports = __webpack_require__(8)(false);
  9777. // imports
  9778.  
  9779.  
  9780. // module
  9781. exports.push([module.i, "._2d2gO{padding-left:20px;padding-right:20px}._3u9Jq{margin:0 auto;padding:0 0 40px;max-width:1000px}", ""]);
  9782.  
  9783. // exports
  9784. exports.locals = {
  9785. "root": "_2d2gO",
  9786. "container": "_3u9Jq"
  9787. };
  9788.  
  9789. /***/ }),
  9790. /* 128 */
  9791. /***/ (function(module, exports, __webpack_require__) {
  9792.  
  9793. exports = module.exports = __webpack_require__(8)(false);
  9794. // imports
  9795.  
  9796.  
  9797. // module
  9798. exports.push([module.i, "*{line-height:1.2;margin:0}html{color:#888;display:table;font-family:sans-serif;height:100%;text-align:center;width:100%}body{display:table-cell;vertical-align:middle;padding:2em}h1{color:#555;font-size:2em;font-weight:400}p{margin:0 auto;width:280px}pre{text-align:left;margin-top:32px;margin-top:2rem}@media only screen and (max-width:280px){body,p{width:95%}h1{font-size:1.5em;margin:0 0 .3em}}", ""]);
  9799.  
  9800. // exports
  9801.  
  9802.  
  9803. /***/ }),
  9804. /* 129 */
  9805. /***/ (function(module, exports, __webpack_require__) {
  9806.  
  9807. exports = module.exports = __webpack_require__(8)(false);
  9808. // imports
  9809.  
  9810.  
  9811. // module
  9812. exports.push([module.i, "._29QB0{padding-left:20px;padding-right:20px}._1xgnj{margin:0 auto;padding:0 0 40px;max-width:1000px}", ""]);
  9813.  
  9814. // exports
  9815. exports.locals = {
  9816. "root": "_29QB0",
  9817. "container": "_1xgnj"
  9818. };
  9819.  
  9820. /***/ }),
  9821. /* 130 */
  9822. /***/ (function(module, exports, __webpack_require__) {
  9823.  
  9824.  
  9825. var content = __webpack_require__(124);
  9826. var insertCss = __webpack_require__(9);
  9827.  
  9828. if (typeof content === 'string') {
  9829. content = [[module.i, content, '']];
  9830. }
  9831.  
  9832. module.exports = content.locals || {};
  9833. module.exports._getContent = function() { return content; };
  9834. module.exports._getCss = function() { return content.toString(); };
  9835. module.exports._insertCss = function(options) { return insertCss(content, options) };
  9836.  
  9837. // Hot Module Replacement
  9838. // https://webpack.github.io/docs/hot-module-replacement
  9839. // Only activated in browser context
  9840. if (false) {
  9841. var removeCss = function() {};
  9842. module.hot.accept("!!../../../../node_modules/css-loader/index.js??ref--1-1!../../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./Feedback.css", function() {
  9843. content = require("!!../../../../node_modules/css-loader/index.js??ref--1-1!../../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./Feedback.css");
  9844.  
  9845. if (typeof content === 'string') {
  9846. content = [[module.id, content, '']];
  9847. }
  9848.  
  9849. removeCss = insertCss(content, { replace: true });
  9850. });
  9851. module.hot.dispose(function() { removeCss(); });
  9852. }
  9853.  
  9854.  
  9855. /***/ }),
  9856. /* 131 */
  9857. /***/ (function(module, exports, __webpack_require__) {
  9858.  
  9859.  
  9860. var content = __webpack_require__(125);
  9861. var insertCss = __webpack_require__(9);
  9862.  
  9863. if (typeof content === 'string') {
  9864. content = [[module.i, content, '']];
  9865. }
  9866.  
  9867. module.exports = content.locals || {};
  9868. module.exports._getContent = function() { return content; };
  9869. module.exports._getCss = function() { return content.toString(); };
  9870. module.exports._insertCss = function(options) { return insertCss(content, options) };
  9871.  
  9872. // Hot Module Replacement
  9873. // https://webpack.github.io/docs/hot-module-replacement
  9874. // Only activated in browser context
  9875. if (false) {
  9876. var removeCss = function() {};
  9877. module.hot.accept("!!../../../../node_modules/css-loader/index.js??ref--1-1!../../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./Page.css", function() {
  9878. content = require("!!../../../../node_modules/css-loader/index.js??ref--1-1!../../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./Page.css");
  9879.  
  9880. if (typeof content === 'string') {
  9881. content = [[module.id, content, '']];
  9882. }
  9883.  
  9884. removeCss = insertCss(content, { replace: true });
  9885. });
  9886. module.hot.dispose(function() { removeCss(); });
  9887. }
  9888.  
  9889.  
  9890. /***/ }),
  9891. /* 132 */
  9892. /***/ (function(module, exports, __webpack_require__) {
  9893.  
  9894.  
  9895. var content = __webpack_require__(126);
  9896. var insertCss = __webpack_require__(9);
  9897.  
  9898. if (typeof content === 'string') {
  9899. content = [[module.i, content, '']];
  9900. }
  9901.  
  9902. module.exports = content.locals || {};
  9903. module.exports._getContent = function() { return content; };
  9904. module.exports._getCss = function() { return content.toString(); };
  9905. module.exports._insertCss = function(options) { return insertCss(content, options) };
  9906.  
  9907. // Hot Module Replacement
  9908. // https://webpack.github.io/docs/hot-module-replacement
  9909. // Only activated in browser context
  9910. if (false) {
  9911. var removeCss = function() {};
  9912. module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--1-1!../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./Admin.css", function() {
  9913. content = require("!!../../../node_modules/css-loader/index.js??ref--1-1!../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./Admin.css");
  9914.  
  9915. if (typeof content === 'string') {
  9916. content = [[module.id, content, '']];
  9917. }
  9918.  
  9919. removeCss = insertCss(content, { replace: true });
  9920. });
  9921. module.hot.dispose(function() { removeCss(); });
  9922. }
  9923.  
  9924.  
  9925. /***/ }),
  9926. /* 133 */
  9927. /***/ (function(module, exports, __webpack_require__) {
  9928.  
  9929.  
  9930. var content = __webpack_require__(127);
  9931. var insertCss = __webpack_require__(9);
  9932.  
  9933. if (typeof content === 'string') {
  9934. content = [[module.i, content, '']];
  9935. }
  9936.  
  9937. module.exports = content.locals || {};
  9938. module.exports._getContent = function() { return content; };
  9939. module.exports._getCss = function() { return content.toString(); };
  9940. module.exports._insertCss = function(options) { return insertCss(content, options) };
  9941.  
  9942. // Hot Module Replacement
  9943. // https://webpack.github.io/docs/hot-module-replacement
  9944. // Only activated in browser context
  9945. if (false) {
  9946. var removeCss = function() {};
  9947. module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--1-1!../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./Contact.css", function() {
  9948. content = require("!!../../../node_modules/css-loader/index.js??ref--1-1!../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./Contact.css");
  9949.  
  9950. if (typeof content === 'string') {
  9951. content = [[module.id, content, '']];
  9952. }
  9953.  
  9954. removeCss = insertCss(content, { replace: true });
  9955. });
  9956. module.hot.dispose(function() { removeCss(); });
  9957. }
  9958.  
  9959.  
  9960. /***/ }),
  9961. /* 134 */
  9962. /***/ (function(module, exports, __webpack_require__) {
  9963.  
  9964.  
  9965. var content = __webpack_require__(129);
  9966. var insertCss = __webpack_require__(9);
  9967.  
  9968. if (typeof content === 'string') {
  9969. content = [[module.i, content, '']];
  9970. }
  9971.  
  9972. module.exports = content.locals || {};
  9973. module.exports._getContent = function() { return content; };
  9974. module.exports._getCss = function() { return content.toString(); };
  9975. module.exports._insertCss = function(options) { return insertCss(content, options) };
  9976.  
  9977. // Hot Module Replacement
  9978. // https://webpack.github.io/docs/hot-module-replacement
  9979. // Only activated in browser context
  9980. if (false) {
  9981. var removeCss = function() {};
  9982. module.hot.accept("!!../../../node_modules/css-loader/index.js??ref--1-1!../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./NotFound.css", function() {
  9983. content = require("!!../../../node_modules/css-loader/index.js??ref--1-1!../../../node_modules/postcss-loader/lib/index.js??ref--1-2!./NotFound.css");
  9984.  
  9985. if (typeof content === 'string') {
  9986. content = [[module.id, content, '']];
  9987. }
  9988.  
  9989. removeCss = insertCss(content, { replace: true });
  9990. });
  9991. module.hot.dispose(function() { removeCss(); });
  9992. }
  9993.  
  9994.  
  9995. /***/ }),
  9996. /* 135 */
  9997. /***/ (function(module, exports) {
  9998.  
  9999. module.exports = {"title":"About Us","component":"ContentPage","html":"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean consequat\ntortor fermentum mi fermentum dignissim. Nullam vel ipsum ut ligula elementum\nlobortis. Maecenas aliquam, massa laoreet lacinia pretium, nisi urna venenatis\ntortor, nec imperdiet tellus libero efficitur metus. Fusce semper posuere\nligula, et facilisis metus bibendum interdum. Mauris at mauris sit amet sem\npharetra commodo a eu leo. Nam at est non risus cursus maximus. Nam feugiat\naugue libero, id consectetur tortor bibendum non. Quisque nec fringilla lorem.\nNullam efficitur vulputate mauris, nec maximus leo dignissim id.</p>\n<p>In hac habitasse platea dictumst. Duis sagittis dui ac ex suscipit maximus.\nMorbi pellentesque venenatis felis sed convallis. Nulla varius, nibh vitae\nplacerat tempus, mauris sem elementum ipsum, eget sollicitudin nisl est vel\npurus. Fusce malesuada odio velit, non cursus leo fermentum id. Cras pharetra\nsodales fringilla. Etiam quis est a dolor egestas pellentesque. Maecenas non\nscelerisque purus, congue cursus arcu. Donec vel dapibus mi. Mauris maximus\nposuere placerat. Sed et libero eu nibh tristique mollis a eget lectus. Donec\ninterdum augue sollicitudin vehicula hendrerit. Vivamus justo orci, molestie\nac sollicitudin ac, lobortis at tellus. Etiam rhoncus ullamcorper risus eu\ntempor. Sed porttitor, neque ac efficitur gravida, arcu lacus pharetra dui, in\nconsequat elit tellus auctor nulla. Donec placerat elementum diam, vitae\nimperdiet lectus luctus at.</p>\n<p>Nullam eu feugiat mi. Quisque nec tristique nisl, dignissim dictum leo. Nam\nnon quam nisi. Donec rutrum turpis ac diam blandit, id pulvinar mauris\nsuscipit. Pellentesque tincidunt libero ultricies risus iaculis, sit amet\nconsequat velit blandit. Fusce quis varius nulla. Nullam nisi nisi, suscipit\nut magna quis, feugiat porta nibh. Sed id enim lectus. Suspendisse elementum\njusto sapien, sit amet consequat orci accumsan et. Aliquam ornare ullamcorper\nsem sed finibus. Nullam ac lacus pulvinar, egestas felis ut, accumsan est.</p>\n<p>Pellentesque sagittis vehicula sem quis luctus. Proin sodales magna in lorem\nhendrerit aliquam. Integer eu varius orci. Vestibulum ante ipsum primis in\nfaucibus orci luctus et ultrices posuere cubilia Curae; Vestibulum ante ipsum\nprimis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut at mauris\nnibh. Suspendisse maximus ac eros at vestibulum.</p>\n<p>Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque egestas\ntortor et dui consequat faucibus. Nunc vitae odio ornare, venenatis ligula a,\nvulputate nisl. Aenean congue varius ex, sit amet bibendum odio posuere at.\nNulla facilisi. In finibus, nulla vitae tincidunt ornare, sapien nulla\nfermentum mauris, sed consectetur tortor arcu eget arcu. Vestibulum vel quam\nenim.</p>\n"};
  10000.  
  10001. /***/ }),
  10002. /* 136 */
  10003. /***/ (function(module, exports) {
  10004.  
  10005. module.exports = {"title":"Privacy Policy","html":"<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Aenean consequat\ntortor fermentum mi fermentum dignissim. Nullam vel ipsum ut ligula elementum\nlobortis. Maecenas aliquam, massa laoreet lacinia pretium, nisi urna venenatis\ntortor, nec imperdiet tellus libero efficitur metus. Fusce semper posuere\nligula, et facilisis metus bibendum interdum. Mauris at mauris sit amet sem\npharetra commodo a eu leo. Nam at est non risus cursus maximus. Nam feugiat\naugue libero, id consectetur tortor bibendum non. Quisque nec fringilla lorem.\nNullam efficitur vulputate mauris, nec maximus leo dignissim id.</p>\n<p>In hac habitasse platea dictumst. Duis sagittis dui ac ex suscipit maximus.\nMorbi pellentesque venenatis felis sed convallis. Nulla varius, nibh vitae\nplacerat tempus, mauris sem elementum ipsum, eget sollicitudin nisl est vel\npurus. Fusce malesuada odio velit, non cursus leo fermentum id. Cras pharetra\nsodales fringilla. Etiam quis est a dolor egestas pellentesque. Maecenas non\nscelerisque purus, congue cursus arcu. Donec vel dapibus mi. Mauris maximus\nposuere placerat. Sed et libero eu nibh tristique mollis a eget lectus. Donec\ninterdum augue sollicitudin vehicula hendrerit. Vivamus justo orci, molestie\nac sollicitudin ac, lobortis at tellus. Etiam rhoncus ullamcorper risus eu\ntempor. Sed porttitor, neque ac efficitur gravida, arcu lacus pharetra dui, in\nconsequat elit tellus auctor nulla. Donec placerat elementum diam, vitae\nimperdiet lectus luctus at.</p>\n<p>Nullam eu feugiat mi. Quisque nec tristique nisl, dignissim dictum leo. Nam\nnon quam nisi. Donec rutrum turpis ac diam blandit, id pulvinar mauris\nsuscipit. Pellentesque tincidunt libero ultricies risus iaculis, sit amet\nconsequat velit blandit. Fusce quis varius nulla. Nullam nisi nisi, suscipit\nut magna quis, feugiat porta nibh. Sed id enim lectus. Suspendisse elementum\njusto sapien, sit amet consequat orci accumsan et. Aliquam ornare ullamcorper\nsem sed finibus. Nullam ac lacus pulvinar, egestas felis ut, accumsan est.</p>\n<p>Pellentesque sagittis vehicula sem quis luctus. Proin sodales magna in lorem\nhendrerit aliquam. Integer eu varius orci. Vestibulum ante ipsum primis in\nfaucibus orci luctus et ultrices posuere cubilia Curae; Vestibulum ante ipsum\nprimis in faucibus orci luctus et ultrices posuere cubilia Curae; Ut at mauris\nnibh. Suspendisse maximus ac eros at vestibulum.</p>\n<p>Interdum et malesuada fames ac ante ipsum primis in faucibus. Quisque egestas\ntortor et dui consequat faucibus. Nunc vitae odio ornare, venenatis ligula a,\nvulputate nisl. Aenean congue varius ex, sit amet bibendum odio posuere at.\nNulla facilisi. In finibus, nulla vitae tincidunt ornare, sapien nulla\nfermentum mauris, sed consectetur tortor arcu eget arcu. Vestibulum vel quam\nenim.</p>\n"};
  10006.  
  10007. /***/ }),
  10008. /* 137 */
  10009. /***/ (function(module, exports) {
  10010.  
  10011. module.exports = require("./assets.json");
  10012.  
  10013. /***/ }),
  10014. /* 138 */
  10015. /***/ (function(module, exports) {
  10016.  
  10017. module.exports = require("babel-runtime/core-js/json/stringify");
  10018.  
  10019. /***/ }),
  10020. /* 139 */
  10021. /***/ (function(module, exports) {
  10022.  
  10023. module.exports = require("babel-runtime/helpers/slicedToArray");
  10024.  
  10025. /***/ }),
  10026. /* 140 */
  10027. /***/ (function(module, exports) {
  10028.  
  10029. module.exports = require("body-parser");
  10030.  
  10031. /***/ }),
  10032. /* 141 */
  10033. /***/ (function(module, exports) {
  10034.  
  10035. module.exports = require("cookie-parser");
  10036.  
  10037. /***/ }),
  10038. /* 142 */
  10039. /***/ (function(module, exports) {
  10040.  
  10041. module.exports = require("create-react-class");
  10042.  
  10043. /***/ }),
  10044. /* 143 */
  10045. /***/ (function(module, exports) {
  10046.  
  10047. module.exports = require("ejs");
  10048.  
  10049. /***/ }),
  10050. /* 144 */
  10051. /***/ (function(module, exports) {
  10052.  
  10053. module.exports = require("express");
  10054.  
  10055. /***/ }),
  10056. /* 145 */
  10057. /***/ (function(module, exports) {
  10058.  
  10059. module.exports = require("express-graphql");
  10060.  
  10061. /***/ }),
  10062. /* 146 */
  10063. /***/ (function(module, exports) {
  10064.  
  10065. module.exports = require("express-jwt");
  10066.  
  10067. /***/ }),
  10068. /* 147 */
  10069. /***/ (function(module, exports) {
  10070.  
  10071. module.exports = require("history/createBrowserHistory");
  10072.  
  10073. /***/ }),
  10074. /* 148 */
  10075. /***/ (function(module, exports) {
  10076.  
  10077. module.exports = require("jsonp");
  10078.  
  10079. /***/ }),
  10080. /* 149 */
  10081. /***/ (function(module, exports) {
  10082.  
  10083. module.exports = require("jsonwebtoken");
  10084.  
  10085. /***/ }),
  10086. /* 150 */
  10087. /***/ (function(module, exports) {
  10088.  
  10089. module.exports = require("passport");
  10090.  
  10091. /***/ }),
  10092. /* 151 */
  10093. /***/ (function(module, exports) {
  10094.  
  10095. module.exports = require("path");
  10096.  
  10097. /***/ }),
  10098. /* 152 */
  10099. /***/ (function(module, exports) {
  10100.  
  10101. module.exports = require("pretty-error");
  10102.  
  10103. /***/ }),
  10104. /* 153 */
  10105. /***/ (function(module, exports) {
  10106.  
  10107. module.exports = require("react-dom");
  10108.  
  10109. /***/ }),
  10110. /* 154 */
  10111. /***/ (function(module, exports) {
  10112.  
  10113. module.exports = require("react-dom/server");
  10114.  
  10115. /***/ }),
  10116. /* 155 */
  10117. /***/ (function(module, exports) {
  10118.  
  10119. module.exports = require("react-facebook-login");
  10120.  
  10121. /***/ }),
  10122. /* 156 */
  10123. /***/ (function(module, exports) {
  10124.  
  10125. module.exports = require("react-google-login");
  10126.  
  10127. /***/ }),
  10128. /* 157 */
  10129. /***/ (function(module, exports) {
  10130.  
  10131. module.exports = require("redux-thunk");
  10132.  
  10133. /***/ }),
  10134. /* 158 */
  10135. /***/ (function(module, exports) {
  10136.  
  10137. module.exports = require("serialize-javascript");
  10138.  
  10139. /***/ }),
  10140. /* 159 */
  10141. /***/ (function(module, exports) {
  10142.  
  10143. module.exports = require("universal-router");
  10144.  
  10145. /***/ }),
  10146. /* 160 */
  10147. /***/ (function(module, exports) {
  10148.  
  10149. module.exports = require("util");
  10150.  
  10151. /***/ }),
  10152. /* 161 */
  10153. /***/ (function(module, exports, __webpack_require__) {
  10154.  
  10155. __webpack_require__(50);
  10156. module.exports = __webpack_require__(49);
  10157.  
  10158.  
  10159. /***/ })
  10160. /******/ ]);
  10161. //# sourceMappingURL=server.js.map
Add Comment
Please, Sign In to add comment