"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = require("tslib");
var React = require("react");
var experiments_1 = require("@uifabric/experiments");
var office_ui_fabric_react_1 = require("office-ui-fabric-react");
var ButtonToggleExample = /** @class */ (function (_super) {
    tslib_1.__extends(ButtonToggleExample, _super);
    function ButtonToggleExample(props) {
        var _this = _super.call(this, props) || this;
        _this._onDefaultButtonClicked = function () {
            _this.setState({ defaultButtonToggled: !_this.state.defaultButtonToggled });
        };
        _this._onPrimaryButtonClicked = function () {
            _this.setState({ primaryButtonToggled: !_this.state.primaryButtonToggled });
        };
        _this._onDefaultCircularButtonClicked = function () {
            _this.setState({ defaultCircularButtonToggled: !_this.state.defaultCircularButtonToggled });
        };
        _this._onPrimaryCircularButtonClicked = function () {
            _this.setState({ primaryCircularButtonToggled: !_this.state.primaryCircularButtonToggled });
        };
        _this.state = {
            defaultButtonToggled: false,
            primaryButtonToggled: false,
            defaultCircularButtonToggled: false,
            primaryCircularButtonToggled: false,
        };
        return _this;
    }
    ButtonToggleExample.prototype.render = function () {
        var _a = this.state, defaultButtonToggled = _a.defaultButtonToggled, primaryButtonToggled = _a.primaryButtonToggled, defaultCircularButtonToggled = _a.defaultCircularButtonToggled, primaryCircularButtonToggled = _a.primaryCircularButtonToggled;
        var buttonStackTokens = { childrenGap: 12 };
        return (React.createElement(office_ui_fabric_react_1.Stack, { horizontal: true, disableShrink: true, tokens: buttonStackTokens },
            React.createElement(experiments_1.Button, { content: defaultButtonToggled ? 'Muted' : 'Unmuted', checked: defaultButtonToggled, onClick: this._onDefaultButtonClicked }),
            React.createElement(experiments_1.Button, { primary: true, content: primaryButtonToggled ? 'Muted' : 'Unmuted', checked: primaryButtonToggled, onClick: this._onPrimaryButtonClicked }),
            React.createElement(experiments_1.Button, { circular: true, icon: defaultCircularButtonToggled ? 'VolumeDisabled' : 'Volume3', checked: defaultCircularButtonToggled, onClick: this._onDefaultCircularButtonClicked }),
            React.createElement(experiments_1.Button, { circular: true, primary: true, icon: primaryCircularButtonToggled ? 'VolumeDisabled' : 'Volume3', checked: primaryCircularButtonToggled, onClick: this._onPrimaryCircularButtonClicked })));
    };
    return ButtonToggleExample;
}(React.Component));
exports.ButtonToggleExample = ButtonToggleExample;
//# sourceMappingURL=Button.Toggle.Example.js.map