define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Checkbox", "office-ui-fabric-react/lib/Dropdown", "office-ui-fabric-react/lib/Facepile", "office-ui-fabric-react/lib/Persona", "office-ui-fabric-react/lib/Slider", "office-ui-fabric-react/lib/Utilities", "./FacepileExampleData", "../../../common/_exampleStyles.scss", "./Facepile.Examples.scss"], function (require, exports, tslib_1, React, Checkbox_1, Dropdown_1, Facepile_1, Persona_1, Slider_1, Utilities_1, FacepileExampleData_1, exampleStylesImport) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var exampleStyles = exampleStylesImport;
    var FacepileBasicExample = /** @class */ (function (_super) {
        tslib_1.__extends(FacepileBasicExample, _super);
        function FacepileBasicExample(props) {
            var _this = _super.call(this, props) || this;
            _this.state = {
                numberOfFaces: 3,
                imagesFadeIn: true,
                personaSize: Persona_1.PersonaSize.size32
            };
            return _this;
        }
        FacepileBasicExample.prototype.render = function () {
            var _this = this;
            var _a = this.state, numberOfFaces = _a.numberOfFaces, personaSize = _a.personaSize;
            var facepileProps = {
                personaSize: personaSize,
                personas: FacepileExampleData_1.facepilePersonas.slice(0, numberOfFaces),
                getPersonaProps: function (persona) {
                    return {
                        imageShouldFadeIn: _this.state.imagesFadeIn
                    };
                },
                ariaDescription: 'To move through the items use left and right arrow keys.'
            };
            return (React.createElement("div", { className: 'ms-FacepileExample' },
                React.createElement(Facepile_1.Facepile, tslib_1.__assign({}, facepileProps)),
                React.createElement("div", { className: 'control' },
                    React.createElement(Slider_1.Slider, { label: 'Number of Personas:', min: 1, max: 5, step: 1, showValue: true, value: numberOfFaces, onChange: this._onChangePersonaNumber }),
                    React.createElement(Dropdown_1.Dropdown, { label: 'Persona Size:', selectedKey: this.state.personaSize, options: [
                            { key: Persona_1.PersonaSize.size16, text: Persona_1.PersonaSize[Persona_1.PersonaSize.size16] },
                            { key: Persona_1.PersonaSize.size24, text: Persona_1.PersonaSize[Persona_1.PersonaSize.size24] },
                            { key: Persona_1.PersonaSize.size28, text: Persona_1.PersonaSize[Persona_1.PersonaSize.size28] },
                            { key: Persona_1.PersonaSize.size32, text: Persona_1.PersonaSize[Persona_1.PersonaSize.size32] },
                            { key: Persona_1.PersonaSize.size40, text: Persona_1.PersonaSize[Persona_1.PersonaSize.size40] }
                        ], onChanged: this._onChangePersonaSize }),
                    React.createElement(Checkbox_1.Checkbox, { className: exampleStyles.exampleCheckbox, label: 'Fade In', checked: this.state.imagesFadeIn, onChange: this._onChangeFadeIn }))));
        };
        FacepileBasicExample.prototype._onChangeFadeIn = function (ev, checked) {
            this.setState(function (prevState) {
                prevState.imagesFadeIn = checked;
                return prevState;
            });
        };
        FacepileBasicExample.prototype._onChangePersonaNumber = function (value) {
            this.setState(function (prevState) {
                prevState.numberOfFaces = value;
                return prevState;
            });
        };
        FacepileBasicExample.prototype._onChangePersonaSize = function (value) {
            this.setState(function (prevState) {
                prevState.personaSize = value.key;
                return prevState;
            });
        };
        tslib_1.__decorate([
            Utilities_1.autobind
        ], FacepileBasicExample.prototype, "_onChangeFadeIn", null);
        tslib_1.__decorate([
            Utilities_1.autobind
        ], FacepileBasicExample.prototype, "_onChangePersonaNumber", null);
        tslib_1.__decorate([
            Utilities_1.autobind
        ], FacepileBasicExample.prototype, "_onChangePersonaSize", null);
        return FacepileBasicExample;
    }(React.Component));
    exports.FacepileBasicExample = FacepileBasicExample;
});
//# sourceMappingURL=Facepile.Basic.Example.js.map