define(["require", "exports", "tslib", "react", "office-ui-fabric-react/lib/Button", "office-ui-fabric-react/lib/TeachingBubble"], function (require, exports, tslib_1, React, Button_1, TeachingBubble_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var TeachingBubbleIllustrationExample = /** @class */ (function (_super) {
        tslib_1.__extends(TeachingBubbleIllustrationExample, _super);
        function TeachingBubbleIllustrationExample(props) {
            var _this = _super.call(this, props) || this;
            _this._onDismiss = _this._onDismiss.bind(_this);
            _this.state = {
                isTeachingBubbleVisible: false,
            };
            return _this;
        }
        TeachingBubbleIllustrationExample.prototype.render = function () {
            var _this = this;
            var isTeachingBubbleVisible = this.state.isTeachingBubbleVisible;
            var exampleImageProps = { src: 'http://placehold.it/364x140' };
            var examplePrimaryButton = {
                children: 'Try it out',
            };
            var exampleSecondaryButtonProps = {
                children: 'May be later',
                onClick: this._onDismiss
            };
            return (React.createElement("div", { className: 'ms-TeachingBubbleExample' },
                React.createElement("span", { className: 'ms-TeachingBubbleBasicExample-buttonArea', ref: function (menuButton) { return _this._menuButtonElement = menuButton; } },
                    React.createElement(Button_1.DefaultButton, { onClick: this._onDismiss, text: isTeachingBubbleVisible ? 'Hide TeachingBubble' : 'Show TeachingBubble' })),
                isTeachingBubbleVisible ? (React.createElement("div", null,
                    React.createElement(TeachingBubble_1.TeachingBubble, { illustrationImage: exampleImageProps, targetElement: this._menuButtonElement, primaryButtonProps: examplePrimaryButton, secondaryButtonProps: exampleSecondaryButtonProps, onDismiss: this._onDismiss, headline: 'Discover what’s trending around you' }, "Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facere, nulla, ipsum? Molestiae quis aliquam magni harum non?"))) : (null)));
        };
        TeachingBubbleIllustrationExample.prototype._onDismiss = function (ev) {
            this.setState({
                isTeachingBubbleVisible: !this.state.isTeachingBubbleVisible
            });
        };
        return TeachingBubbleIllustrationExample;
    }(React.Component));
    exports.TeachingBubbleIllustrationExample = TeachingBubbleIllustrationExample;
});
//# sourceMappingURL=TeachingBubble.Illustration.Example.js.map