text: "use strict";
  
  var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };
  
  var _createClass = (function () { function defineProperties(target, props) { for (var key in props) { var prop = props[key]; prop.configurable = true; if (prop.value) prop.writable = true; } Object.defineProperties(target, props); } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
  
  var _inherits = function (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) subClass.__proto__ = superClass; };
  
  var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };
  
  var FamousRenderNode = _interopRequire(require("famous/core/RenderNode"));
  
  var FamousScrollview = _interopRequire(require("famous/views/Scrollview"));
  
  var defaults = _interopRequire(require("lodash/object/defaults"));
  
  var React = _interopRequire(require("react"));
  
  var FamousComponent = _interopRequire(require("../lib/FamousComponent"));
  
  var Scrollview = (function (_FamousComponent) {
    function Scrollview() {
      _classCallCheck(this, Scrollview);
  
      if (_FamousComponent != null) {
        _FamousComponent.apply(this, arguments);
      }
    }
  
    _inherits(Scrollview, _FamousComponent);
  
    _createClass(Scrollview, {
      famousCreate: {
        value: function famousCreate() {
          return new FamousScrollview(this.props.options);
        }
      },
      famousCreateNode: {
        value: function famousCreateNode(parentNode) {
          var scrollview = this.getFamous();
          var node = parentNode.add(scrollview);
          var next = [];
          var sequence = this.getFamousChildrenRef().map(function (child, idx) {
            var renderNode = new FamousRenderNode();
            next.push([child, renderNode]);
            return renderNode;
          });
          scrollview.sequenceFrom(sequence);
          return [node, next];
        }
      },
      famousUpdate: {
        value: function famousUpdate(nextProps) {
          var scrollview = this.getFamous();
  
          scrollview.setOptions(nextProps.options);
        }
      },
      render: {
        value: function render() {
          return React.createElement(
            "div",
            { "data-famous": "Scrollview" },
            this.getFamousChildren()
          );
        }
      }
    });
  
    return Scrollview;
  })(FamousComponent);
  
  defaults(Scrollview, FamousScrollview);
  
  module.exports = Scrollview;