"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var ScrollablePane_1 = require("office-ui-fabric-react/lib/ScrollablePane");
var Sticky_1 = require("office-ui-fabric-react/lib/Sticky");
var example_app_base_1 = require("@uifabric/example-app-base");
require("./ScrollablePane.Example.scss");
var ScrollablePaneDefaultExample = /** @class */ (function (_super) {
    tslib_1.__extends(ScrollablePaneDefaultExample, _super);
    function ScrollablePaneDefaultExample() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ScrollablePaneDefaultExample.prototype.render = function () {
        var contentAreas = [];
        for (var i = 0; i < 4; i++) {
            contentAreas.push(this._createContentArea(i));
        }
        return (React.createElement(ScrollablePane_1.ScrollablePane, { className: 'scrollablePaneDefaultExample' }, contentAreas.map(function (ele) {
            return ele;
        })));
    };
    ScrollablePaneDefaultExample.prototype._getRandomColor = function () {
        var letters = 'BCDEF'.split('');
        var color = '#';
        for (var i = 0; i < 6; i++) {
            color += letters[Math.floor(Math.random() * letters.length)];
        }
        return color;
    };
    ScrollablePaneDefaultExample.prototype._createContentArea = function (index) {
        var style = {
            backgroundColor: this._getRandomColor()
        };
        return (React.createElement("div", { key: index },
            React.createElement(Sticky_1.Sticky, { stickyPosition: Sticky_1.StickyPositionType.Both, stickyClassName: 'largeFont' },
                React.createElement("div", { className: 'sticky', style: style },
                    "Sticky Component #",
                    index + 1)),
            React.createElement("div", { className: 'textContent' }, example_app_base_1.lorem(200))));
    };
    return ScrollablePaneDefaultExample;
}(React.Component));
exports.ScrollablePaneDefaultExample = ScrollablePaneDefaultExample;
//# sourceMappingURL=ScrollablePane.Default.Example.js.map