text: /******/ (function(modules) { // webpackBootstrap
  /******/ 	// The module cache
  /******/ 	var installedModules = {};
  /******/
  /******/ 	// The require function
  /******/ 	function __webpack_require__(moduleId) {
  /******/
  /******/ 		// Check if module is in cache
  /******/ 		if(installedModules[moduleId])
  /******/ 			return installedModules[moduleId].exports;
  /******/
  /******/ 		// Create a new module (and put it into the cache)
  /******/ 		var module = installedModules[moduleId] = {
  /******/ 			exports: {},
  /******/ 			id: moduleId,
  /******/ 			loaded: false
  /******/ 		};
  /******/
  /******/ 		// Execute the module function
  /******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  /******/
  /******/ 		// Flag the module as loaded
  /******/ 		module.loaded = true;
  /******/
  /******/ 		// Return the exports of the module
  /******/ 		return module.exports;
  /******/ 	}
  /******/
  /******/
  /******/ 	// expose the modules object (__webpack_modules__)
  /******/ 	__webpack_require__.m = modules;
  /******/
  /******/ 	// expose the module cache
  /******/ 	__webpack_require__.c = installedModules;
  /******/
  /******/ 	// __webpack_public_path__
  /******/ 	__webpack_require__.p = "";
  /******/
  /******/ 	// Load entry module and return exports
  /******/ 	return __webpack_require__(0);
  /******/ })
  /************************************************************************/
  /******/ ([
  /* 0 */
  /*!************************!*\
    !*** ./static/main.js ***!
    \************************/
  /***/ function(module, exports, __webpack_require__) {
  
  	"use strict";
  	
  	var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  	
  	var _Tweet = __webpack_require__(/*! ./components/Tweet */ 1);
  	
  	var _Tweet2 = _interopRequireDefault(_Tweet);
  	
  	var _TweetList = __webpack_require__(/*! ./components/TweetList */ 2);
  	
  	var _TweetList2 = _interopRequireDefault(_TweetList);
  	
  	var _reactCookie = __webpack_require__(/*! react-cookie */ 4);
  	
  	var _reactCookie2 = _interopRequireDefault(_reactCookie);
  	
  	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  	
  	function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  	
  	function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  	
  	function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  	
  	var Main = function (_React$Component) {
  	  _inherits(Main, _React$Component);
  	
  	  function Main(props) {
  	    _classCallCheck(this, Main);
  	
  	    var _this = _possibleConstructorReturn(this, (Main.__proto__ || Object.getPrototypeOf(Main)).call(this, props));
  	
  	    _this.state = { userId: _reactCookie2.default.load('session') };
  	    _this.state = { tweets: [{ 'id': 1, 'username': 'guest', 'body': '"Listen to your heart. It knows all things." - Paulo Coelho #Motivation' }] };
  	    return _this;
  	  }
  	
  	  _createClass(Main, [{
  	    key: "addTweet",
  	    value: function addTweet(tweet) {
  	      var newTweet = this.state.tweets;
  	      newTweet.unshift({ 'id': Date(), 'username': 'guest', 'body': tweet });
  	      this.setState({ tweets: newTweet });
  	    }
  	
  	    /*
  	    addTweet(tweet){
  	        var self = this;
  	        $.ajax({
  	          url: '/api/v2/tweets/',
  	          contentType: 'application/json',
  	          type: 'POST',
  	          data: JSON.stringify({
  	            'username': "test",
  	            'body': tweet,
  	          }),
  	          success: function(data) {
  	               return console.log("success");
  	          },
  	          error: function() {
  	            return console.log("Failed");
  	          }
  	        });
  	       }
  	       */
  	
  	  }, {
  	    key: "componentDidMount",
  	    value: function componentDidMount() {
  	      var self = this;
  	      $.ajax({ url: '/api/v2/tweets',
  	        success: function success(data) {
  	          //self.setState({tweets: data['tweets_list']});
  	          //alert(self.state.tweets);
  	          return console.log("success");
  	        },
  	        error: function error() {
  	          return console.log("Failed");
  	        }
  	      });
  	    }
  	  }, {
  	    key: "render",
  	    value: function render() {
  	      return React.createElement(
  	        "div",
  	        null,
  	        React.createElement(
  	          "h3",
  	          null,
  	          "Welcome to cloud-native-app!"
  	        ),
  	        React.createElement(_Tweet2.default, { sendTweet: this.addTweet.bind(this) }),
  	        React.createElement(_TweetList2.default, { tweets: this.state.tweets })
  	      );
  	    }
  	  }]);
  	
  	  return Main;
  	}(React.Component);
  	
  	var documentReady = function documentReady() {
  	  ReactDOM.render(React.createElement(Main, null), document.getElementById('react'));
  	};
  	$(documentReady);
  
  /***/ },
  /* 1 */
  /*!************************************!*\
    !*** ./static/components/Tweet.js ***!
    \************************************/
  /***/ function(module, exports) {
  
  	"use strict";
  	
  	Object.defineProperty(exports, "__esModule", {
  	  value: true
  	});
  	
  	var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  	
  	function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  	
  	function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  	
  	function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  	
  	var Tweet = function (_React$Component) {
  	  _inherits(Tweet, _React$Component);
  	
  	  function Tweet() {
  	    _classCallCheck(this, Tweet);
  	
  	    return _possibleConstructorReturn(this, (Tweet.__proto__ || Object.getPrototypeOf(Tweet)).apply(this, arguments));
  	  }
  	
  	  _createClass(Tweet, [{
  	    key: "sendTweet",
  	    value: function sendTweet(event) {
  	      event.preventDefault();
  	      this.props.sendTweet(this.refs.tweetTextArea.value);
  	      this.refs.tweetTextArea.value = '';
  	    }
  	  }, {
  	    key: "render",
  	    value: function render() {
  	      return React.createElement(
  	        "div",
  	        { className: "row" },
  	        React.createElement(
  	          "nav",
  	          null,
  	          React.createElement(
  	            "div",
  	            { className: "nav-wrapper" },
  	            React.createElement(
  	              "a",
  	              { href: "#", className: "brand-logo" },
  	              "APP"
  	            ),
  	            React.createElement(
  	              "ul",
  	              { id: "nav-mobile", className: "right" },
  	              React.createElement(
  	                "li",
  	                null,
  	                React.createElement(
  	                  "a",
  	                  { href: "/profile" },
  	                  "Profile"
  	                )
  	              ),
  	              React.createElement(
  	                "li",
  	                null,
  	                React.createElement(
  	                  "a",
  	                  { href: "/logout" },
  	                  "Logout"
  	                )
  	              )
  	            )
  	          )
  	        ),
  	        React.createElement(
  	          "form",
  	          { onSubmit: this.sendTweet.bind(this) },
  	          React.createElement(
  	            "div",
  	            { className: "input-field" },
  	            React.createElement("textarea", { ref: "tweetTextArea", className: "materialize-textarea" }),
  	            React.createElement(
  	              "label",
  	              null,
  	              "How you doing?"
  	            ),
  	            React.createElement(
  	              "button",
  	              { className: "btn waves-effect waves-light right" },
  	              "Tweet now ",
  	              React.createElement(
  	                "i",
  	                { className: "material-icons right" },
  	                "send"
  	              )
  	            )
  	          )
  	        )
  	      );
  	    }
  	    /*
  	    render(){
  	    return(
  	           <div className="row">
  	         <form onSubmit={this.sendTweet.bind(this)}>
  	          <div className="input-field">
  	            <textarea ref="tweetTextArea" className="materialize-textarea" />
  	            <label>How you doing?</label>
  	              <button className="btn waves-effect waves-lightright">Tweet now <i className="material-icons right">send</i></button>
  	          </div>
  	         </form>
  	       </div>
  	      );
  	    }
  	    */
  	
  	  }]);
  	
  	  return Tweet;
  	}(React.Component);
  	
  	exports.default = Tweet;
  
  /***/ },
  /* 2 */
  /*!****************************************!*\
    !*** ./static/components/TweetList.js ***!
    \****************************************/
  /***/ function(module, exports, __webpack_require__) {
  
  	"use strict";
  	
  	Object.defineProperty(exports, "__esModule", {
  	  value: true
  	});
  	
  	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; };
  	
  	var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  	
  	var _templatetweet = __webpack_require__(/*! ./templatetweet */ 3);
  	
  	var _templatetweet2 = _interopRequireDefault(_templatetweet);
  	
  	function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
  	
  	function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  	
  	function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  	
  	function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  	
  	var TweetList = function (_React$Component) {
  	  _inherits(TweetList, _React$Component);
  	
  	  function TweetList() {
  	    _classCallCheck(this, TweetList);
  	
  	    return _possibleConstructorReturn(this, (TweetList.__proto__ || Object.getPrototypeOf(TweetList)).apply(this, arguments));
  	  }
  	
  	  _createClass(TweetList, [{
  	    key: "render",
  	    value: function render() {
  	      var tweetlist = this.props.tweets.map(function (tweet) {
  	        return React.createElement(_templatetweet2.default, _extends({ key: tweet.id }, tweet));
  	      });
  	      return React.createElement(
  	        "div",
  	        null,
  	        React.createElement(
  	          "ul",
  	          { className: "collection" },
  	          tweetlist
  	        )
  	      );
  	    }
  	  }]);
  	
  	  return TweetList;
  	}(React.Component);
  	
  	exports.default = TweetList;
  
  /***/ },
  /* 3 */
  /*!********************************************!*\
    !*** ./static/components/templatetweet.js ***!
    \********************************************/
  /***/ function(module, exports) {
  
  	"use strict";
  	
  	Object.defineProperty(exports, "__esModule", {
  	  value: true
  	});
  	
  	var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  	
  	function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  	
  	function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
  	
  	function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
  	
  	var Tweettemplate = function (_React$Component) {
  	  _inherits(Tweettemplate, _React$Component);
  	
  	  function Tweettemplate() {
  	    _classCallCheck(this, Tweettemplate);
  	
  	    return _possibleConstructorReturn(this, (Tweettemplate.__proto__ || Object.getPrototypeOf(Tweettemplate)).apply(this, arguments));
  	  }
  	
  	  _createClass(Tweettemplate, [{
  	    key: "render",
  	    value: function render() {
  	      return React.createElement(
  	        "li",
  	        { className: "collection-item avatar" },
  	        React.createElement(
  	          "i",
  	          { className: "material-icons circle red" },
  	          "play_arrow"
  	        ),
  	        React.createElement(
  	          "span",
  	          { className: "title" },
  	          this.props.username
  	        ),
  	        React.createElement(
  	          "p",
  	          null,
  	          this.props.body
  	        ),
  	        React.createElement(
  	          "p",
  	          null,
  	          this.props.id
  	        )
  	      );
  	    }
  	  }]);
  	
  	  return Tweettemplate;
  	}(React.Component);
  	
  	exports.default = Tweettemplate;
  
  /***/ },
  /* 4 */
  /*!*********************************!*\
    !*** ./~/react-cookie/index.js ***!
    \*********************************/
  /***/ function(module, exports, __webpack_require__) {
  
  	var cookie = __webpack_require__(/*! cookie */ 5);
  	
  	var _cookies = cookie.parse((typeof document !== 'undefined') ? document.cookie : '');
  	
  	for (var key in _cookies) {
  	  try {
  	    _cookies[key] = JSON.parse(_cookies[key]);
  	  } catch(e) {
  	    // Not serialized object
  	  }
  	}
  	
  	function load(name) {
  	  return _cookies[name];
  	}
  	
  	function save(name, val, opt) {
  	  _cookies[name] = val;
  	
  	  // Cookies only work in the browser
  	  if (typeof document === 'undefined') return;
  	
  	  // allow you to work with cookies as objects.
  	  // make sure a serialized value returns as serialized again
  	  if (typeof val === 'object' || typeof val === 'string') val = JSON.stringify(val);
  	
  	  document.cookie = cookie.serialize(name, val, opt);
  	}
  	
  	function remove(name) {
  	  if (typeof document === 'undefined') return;
  	  document.cookie = name + '=; expires=Thu, 01 Jan 1970 00:00:01 GMT;';
  	}
  	
  	var reactCookie = {
  	  load: load,
  	  save: save,
  	  remove: remove
  	};
  	
  	if (true) {
  	  module.exports = reactCookie
  	}
  	
  	if (typeof window !== 'undefined') {
  	  window['reactCookie'] = reactCookie;
  	}
  
  
  /***/ },
  /* 5 */
  /*!***************************!*\
    !*** ./~/cookie/index.js ***!
    \***************************/
  /***/ function(module, exports) {
  
  	/*!
  	 * cookie
  	 * Copyright(c) 2012-2014 Roman Shtylman
  	 * Copyright(c) 2015 Douglas Christopher Wilson
  	 * MIT Licensed
  	 */
  	
  	/**
  	 * Module exports.
  	 * @public
  	 */
  	
  	exports.parse = parse;
  	exports.serialize = serialize;
  	
  	/**
  	 * Module variables.
  	 * @private
  	 */
  	
  	var decode = decodeURIComponent;
  	var encode = encodeURIComponent;
  	
  	/**
  	 * RegExp to match field-content in RFC 7230 sec 3.2
  	 *
  	 * field-content = field-vchar [ 1*( SP / HTAB ) field-vchar ]
  	 * field-vchar   = VCHAR / obs-text
  	 * obs-text      = %x80-FF
  	 */
  	
  	var fieldContentRegExp = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;
  	
  	/**
  	 * Parse a cookie header.
  	 *
  	 * Parse the given cookie header string into an object
  	 * The object has the various cookies as keys(names) => values
  	 *
  	 * @param {string} str
  	 * @param {object} [options]
  	 * @return {object}
  	 * @public
  	 */
  	
  	function parse(str, options) {
  	  if (typeof str !== 'string') {
  	    throw new TypeError('argument str must be a string');
  	  }
  	
  	  var obj = {}
  	  var opt = options || {};
  	  var pairs = str.split(/; */);
  	  var dec = opt.decode || decode;
  	
  	  pairs.forEach(function(pair) {
  	    var eq_idx = pair.indexOf('=')
  	
  	    // skip things that don't look like key=value
  	    if (eq_idx < 0) {
  	      return;
  	    }
  	
  	    var key = pair.substr(0, eq_idx).trim()
  	    var val = pair.substr(++eq_idx, pair.length).trim();
  	
  	    // quoted values
  	    if ('"' == val[0]) {
  	      val = val.slice(1, -1);
  	    }
  	
  	    // only assign once
  	    if (undefined == obj[key]) {
  	      obj[key] = tryDecode(val, dec);
  	    }
  	  });
  	
  	  return obj;
  	}
  	
  	/**
  	 * Serialize data into a cookie header.
  	 *
  	 * Serialize the a name value pair into a cookie string suitable for
  	 * http headers. An optional options object specified cookie parameters.
  	 *
  	 * serialize('foo', 'bar', { httpOnly: true })
  	 *   => "foo=bar; httpOnly"
  	 *
  	 * @param {string} name
  	 * @param {string} val
  	 * @param {object} [options]
  	 * @return {string}
  	 * @public
  	 */
  	
  	function serialize(name, val, options) {
  	  var opt = options || {};
  	  var enc = opt.encode || encode;
  	
  	  if (!fieldContentRegExp.test(name)) {
  	    throw new TypeError('argument name is invalid');
  	  }
  	
  	  var value = enc(val);
  	
  	  if (value && !fieldContentRegExp.test(value)) {
  	    throw new TypeError('argument val is invalid');
  	  }
  	
  	  var pairs = [name + '=' + value];
  	
  	  if (null != opt.maxAge) {
  	    var maxAge = opt.maxAge - 0;
  	    if (isNaN(maxAge)) throw new Error('maxAge should be a Number');
  	    pairs.push('Max-Age=' + maxAge);
  	  }
  	
  	  if (opt.domain) {
  	    if (!fieldContentRegExp.test(opt.domain)) {
  	      throw new TypeError('option domain is invalid');
  	    }
  	
  	    pairs.push('Domain=' + opt.domain);
  	  }
  	
  	  if (opt.path) {
  	    if (!fieldContentRegExp.test(opt.path)) {
  	      throw new TypeError('option path is invalid');
  	    }
  	
  	    pairs.push('Path=' + opt.path);
  	  }
  	
  	  if (opt.expires) pairs.push('Expires=' + opt.expires.toUTCString());
  	  if (opt.httpOnly) pairs.push('HttpOnly');
  	  if (opt.secure) pairs.push('Secure');
  	
  	  return pairs.join('; ');
  	}
  	
  	/**
  	 * Try decoding a string using a decoding function.
  	 *
  	 * @param {string} str
  	 * @param {function} decode
  	 * @private
  	 */
  	
  	function tryDecode(str, decode) {
  	  try {
  	    return decode(str);
  	  } catch (e) {
  	    return str;
  	  }
  	}
  
  
  /***/ }
  /******/ ]);
  //# sourceMappingURL=bundle.js.map