(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[35],{

/***/ "../../node_modules/office-ui-fabric-react/lib/MessageBar.js":
/*!***************************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/office-ui-fabric-react/lib/MessageBar.js ***!
  \***************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
tslib_1.__exportStar(__webpack_require__(/*! ./components/MessageBar/index */ "../../node_modules/office-ui-fabric-react/lib/components/MessageBar/index.js"), exports);
//# sourceMappingURL=MessageBar.js.map

/***/ }),

/***/ "../../node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.js":
/*!*************************************************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.js ***!
  \*************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
var Utilities_1 = __webpack_require__(/*! ../../Utilities */ "../../node_modules/office-ui-fabric-react/lib/Utilities.js");
var Button_1 = __webpack_require__(/*! ../../Button */ "../../node_modules/office-ui-fabric-react/lib/Button.js");
var Icon_1 = __webpack_require__(/*! ../../Icon */ "../../node_modules/office-ui-fabric-react/lib/Icon.js");
var MessageBar_types_1 = __webpack_require__(/*! ./MessageBar.types */ "../../node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.types.js");
var stylesImport = __webpack_require__(/*! ./MessageBar.scss */ "../../node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.scss.js");
var styles = stylesImport;
var MessageBar = /** @class */ (function (_super) {
    tslib_1.__extends(MessageBar, _super);
    function MessageBar(props) {
        var _this = _super.call(this, props) || this;
        _this.ICON_MAP = (_a = {},
            _a[MessageBar_types_1.MessageBarType.info] = 'Info',
            _a[MessageBar_types_1.MessageBarType.warning] = 'Info',
            _a[MessageBar_types_1.MessageBarType.error] = 'ErrorBadge',
            _a[MessageBar_types_1.MessageBarType.blocked] = 'Blocked2',
            _a[MessageBar_types_1.MessageBarType.remove] = 'Blocked',
            _a[MessageBar_types_1.MessageBarType.severeWarning] = 'Warning',
            _a[MessageBar_types_1.MessageBarType.success] = 'Completed',
            _a);
        _this._onClick = function (ev) {
            _this.setState({ expandSingleLine: !_this.state.expandSingleLine });
        };
        _this.state = {
            labelId: Utilities_1.getId('MessageBar'),
            showContent: false,
            expandSingleLine: false,
        };
        return _this;
        var _a;
    }
    MessageBar.prototype.render = function () {
        var isMultiline = this.props.isMultiline;
        return isMultiline ? this._renderMultiLine() : this._renderSingleLine();
    };
    MessageBar.prototype._getActionsDiv = function () {
        if (this.props.actions) {
            return (React.createElement("div", { className: this.props.isMultiline ?
                    ('ms-MessageBar-actions ' + styles.actions) :
                    ('ms-MessageBar-actionsSingleLine ' + styles.actionsSingleLine) }, this.props.actions));
        }
        return null;
    };
    MessageBar.prototype._getClassName = function () {
        return Utilities_1.css(this.props.className, 'ms-MessageBar', styles.root, (_a = {},
            _a['ms-MessageBar ' + styles.root] = this.props.messageBarType === MessageBar_types_1.MessageBarType.info,
            _a['ms-MessageBar--error ' + styles.rootIsError] = this.props.messageBarType === MessageBar_types_1.MessageBarType.error,
            _a['ms-MessageBar--blocked ' + styles.rootIsBlocked] = (this.props.messageBarType === MessageBar_types_1.MessageBarType.blocked) ||
                (this.props.messageBarType === MessageBar_types_1.MessageBarType.remove),
            _a['ms-MessageBar--severeWarning ' + styles.rootIsSevereWarning] = this.props.messageBarType === MessageBar_types_1.MessageBarType.severeWarning,
            _a['ms-MessageBar--success ' + styles.rootIsSuccess] = this.props.messageBarType === MessageBar_types_1.MessageBarType.success,
            _a['ms-MessageBar--warning ' + styles.rootIsWarning] = this.props.messageBarType === MessageBar_types_1.MessageBarType.warning,
            _a));
        var _a;
    };
    MessageBar.prototype._getDismissDiv = function () {
        if (this.props.onDismiss) {
            return (React.createElement(Button_1.IconButton, { disabled: false, className: Utilities_1.css('ms-MessageBar-dismissal', styles.dismissal), onClick: this.props.onDismiss, iconProps: { iconName: 'Clear' }, ariaLabel: this.props.dismissButtonAriaLabel }));
        }
        return null;
    };
    MessageBar.prototype._getDismissSingleLine = function () {
        if (this.props.onDismiss) {
            return (React.createElement("div", { className: Utilities_1.css('ms-MessageBar-dismissSingleLine', styles.dismissSingleLine) }, this._getDismissDiv()));
        }
        return null;
    };
    MessageBar.prototype._getExpandSingleLine = function () {
        if (!this.props.actions && this.props.truncated) {
            return (React.createElement("div", { className: Utilities_1.css('ms-MessageBar-expandSingleLine', styles.expandSingleLine) },
                React.createElement(Button_1.IconButton, { disabled: false, className: Utilities_1.css('ms-MessageBar-expand', styles.expand), onClick: this._onClick, iconProps: { iconName: this.state.expandSingleLine ? 'DoubleChevronUp' : 'DoubleChevronDown' }, ariaLabel: this.props.overflowButtonAriaLabel })));
        }
        return null;
    };
    MessageBar.prototype._getIconSpan = function () {
        return (React.createElement("div", { className: Utilities_1.css('ms-MessageBar-icon', styles.icon) },
            React.createElement(Icon_1.Icon, { iconName: this.ICON_MAP[this.props.messageBarType] })));
    };
    MessageBar.prototype._renderMultiLine = function () {
        return (React.createElement("div", { className: Utilities_1.css(this._getClassName(), 'ms-MessageBar-multiline', styles.multiLine, this.props.onDismiss && styles.dismissalMultiLine), role: 'status', "aria-live": this._getAnnouncementPriority() },
            React.createElement("div", { className: Utilities_1.css(styles.content, 'ms-MessageBar-content') },
                this._getIconSpan(),
                this._renderInnerText(),
                this._getDismissDiv()),
            this._getActionsDiv()));
    };
    MessageBar.prototype._renderSingleLine = function () {
        return (React.createElement("div", { className: Utilities_1.css(this._getClassName(), 'ms-MessageBar-singleline', styles.singleLine, this.props.onDismiss && 'ms-MessageBar-dismissalSingleLine', this.props.truncated && 'ms-MessageBar-expandingSingleLine', this.props.truncated && styles.expandingSingleLine) },
            React.createElement("div", { className: Utilities_1.css(styles.content, 'ms-MessageBar-content') },
                this._getIconSpan(),
                this._renderInnerText(),
                this._getExpandSingleLine(),
                this._getActionsDiv(),
                this._getDismissSingleLine())));
    };
    MessageBar.prototype._renderInnerText = function () {
        return (React.createElement("div", { className: Utilities_1.css('ms-MessageBar-text', styles.text, this.props.actions && styles.multiLineWithActions, !this.props.onDismiss && styles.noDismissButton, this.state.expandSingleLine && styles.expandSingleLine), id: this.state.labelId },
            React.createElement("span", { className: Utilities_1.css('ms-MessageBar-innerText ' + styles.innerText), role: 'status', "aria-live": this._getAnnouncementPriority() },
                React.createElement(Utilities_1.DelayedRender, null,
                    React.createElement("span", null, this.props.children)))));
    };
    MessageBar.prototype._getAnnouncementPriority = function () {
        switch (this.props.messageBarType) {
            case MessageBar_types_1.MessageBarType.blocked:
            case MessageBar_types_1.MessageBarType.error:
            case MessageBar_types_1.MessageBarType.severeWarning:
                return 'assertive';
        }
        return 'polite';
    };
    MessageBar.defaultProps = {
        messageBarType: MessageBar_types_1.MessageBarType.info,
        onDismiss: undefined,
        isMultiline: true,
    };
    return MessageBar;
}(Utilities_1.BaseComponent));
exports.MessageBar = MessageBar;
//# sourceMappingURL=MessageBar.js.map

/***/ }),

/***/ "../../node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.scss.js":
/*!******************************************************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.scss.js ***!
  \******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/* tslint:disable */
var load_themed_styles_1 = __webpack_require__(/*! @microsoft/load-themed-styles */ "../../node_modules/@microsoft/load-themed-styles/lib/index.js");
load_themed_styles_1.loadStyles([{ "rawString": ".root_d18144f0{background-color:" }, { "theme": "infoBackground", "defaultValue": "#f4f4f4" }, { "rawString": ";min-height:32px;color:" }, { "theme": "infoText", "defaultValue": "#333333" }, { "rawString": ";width:100%;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;position:relative;word-break:break-word}.root_d18144f0 .ms-Link{font-size:12px;color:" }, { "theme": "themeDark", "defaultValue": "#005a9e" }, { "rawString": "}.icon_d18144f0,.text_d18144f0{display:table-cell;vertical-align:top}.icon_d18144f0{font-size:16px;min-width:16px;min-height:16px;display:-webkit-box;display:-ms-flexbox;display:flex;color:" }, { "theme": "info", "defaultValue": "#666666" }, { "rawString": ";-ms-flex-negative:0;flex-shrink:0;margin:16px 0 16px 16px}html[dir='rtl'] .icon_d18144f0{margin:16px 16px 16px 0}@media screen and (max-width: 479px){.icon_d18144f0{margin:8px 0 8px 8px}html[dir='rtl'] .icon_d18144f0{margin:8px 8px 8px 0}}.text_d18144f0{font-size:12px;font-weight:400;min-width:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;margin:16px 8px 16px 8px}html[dir='rtl'] .text_d18144f0{margin:16px 8px 16px 8px}@media screen and (max-width: 479px){.text_d18144f0{margin:8px 0 8px 8px}html[dir='rtl'] .text_d18144f0{margin:8px 8px 8px 0}html[dir='ltr'] .text_d18144f0.noDismissButton_d18144f0{margin-right:8px}html[dir='rtl'] .text_d18144f0.noDismissButton_d18144f0{margin-left:8px}}html[dir='ltr'] .text_d18144f0.noDismissButton_d18144f0{margin-right:16px}html[dir='rtl'] .text_d18144f0.noDismissButton_d18144f0{margin-left:16px}.innerText_d18144f0{line-height:16px}html[dir='ltr'] .innerText_d18144f0 span a{padding-left:4px}html[dir='rtl'] .innerText_d18144f0 span a{padding-right:4px}.root_d18144f0.rootIsWarning_d18144f0{background-color:" }, { "theme": "warningBackground", "defaultValue": "#fff4ce" }, { "rawString": ";color:" }, { "theme": "warningText", "defaultValue": "#333333" }, { "rawString": "}.root_d18144f0.rootIsSevereWarning_d18144f0{background-color:" }, { "theme": "severeWarningBackground", "defaultValue": "#fed9cc" }, { "rawString": ";color:" }, { "theme": "severeWarningText", "defaultValue": "#333333" }, { "rawString": "}.root_d18144f0.rootIsSevereWarning_d18144f0 .icon_d18144f0{color:" }, { "theme": "severeWarning", "defaultValue": "#a80000" }, { "rawString": "}.root_d18144f0.rootIsError_d18144f0{background-color:" }, { "theme": "errorBackground", "defaultValue": "#fde7e9" }, { "rawString": ";color:" }, { "theme": "errorText", "defaultValue": "#333333" }, { "rawString": "}.root_d18144f0.rootIsError_d18144f0 .icon_d18144f0{color:" }, { "theme": "error", "defaultValue": "#a80000" }, { "rawString": "}.root_d18144f0.rootIsBlocked_d18144f0{background-color:" }, { "theme": "errorBackground", "defaultValue": "#fde7e9" }, { "rawString": ";color:" }, { "theme": "errorText", "defaultValue": "#333333" }, { "rawString": "}.root_d18144f0.rootIsBlocked_d18144f0 .icon_d18144f0{color:" }, { "theme": "error", "defaultValue": "#a80000" }, { "rawString": "}.root_d18144f0.rootIsSuccess_d18144f0{background-color:" }, { "theme": "successBackground", "defaultValue": "#dff6dd" }, { "rawString": ";color:" }, { "theme": "successText", "defaultValue": "#333333" }, { "rawString": "}.root_d18144f0.rootIsSuccess_d18144f0 .icon_d18144f0{color:" }, { "theme": "green", "defaultValue": "#107c10" }, { "rawString": "}.content_d18144f0{display:-webkit-box;display:-ms-flexbox;display:flex;line-height:normal;width:100%;-webkit-box-sizing:border-box;box-sizing:border-box}.content_d18144f0:before{pointer-events:none;position:absolute;right:0;bottom:0;left:0;top:0;margin:0}@media screen and (-ms-high-contrast: active){.content_d18144f0:before{border:1px solid WindowText;content:' '}}.actions_d18144f0{margin:0 12px 12px 0}html[dir='rtl'] .actions_d18144f0{margin:0 0 12px 12px}html[dir='ltr'] .actions_d18144f0 :nth-child(n+2){margin-left:12px}html[dir='rtl'] .actions_d18144f0 :nth-child(n+2){margin-right:12px}.actionsSingleLine_d18144f0{margin:8px 8px 8px 0}html[dir='rtl'] .actionsSingleLine_d18144f0{margin:8px 0 8px 8px}html[dir='ltr'] .actionsSingleLine_d18144f0 :nth-child(n+2){margin-left:8px}html[dir='rtl'] .actionsSingleLine_d18144f0 :nth-child(n+2){margin-right:8px}.actions_d18144f0,.actionsSingleLine_d18144f0{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-align:center;-ms-flex-align:center;align-items:center}@media screen and (max-width: 479px){.actions_d18144f0,.actionsSingleLine_d18144f0{margin:0 8px 8px 0}html[dir='rtl'] .actions_d18144f0,html[dir='rtl'] .actionsSingleLine_d18144f0{margin:0 0 8px 8px}html[dir='ltr'] .actions_d18144f0 :nth-child(n+2),html[dir='ltr'] .actionsSingleLine_d18144f0 :nth-child(n+2){margin-left:8px}html[dir='rtl'] .actions_d18144f0 :nth-child(n+2),html[dir='rtl'] .actionsSingleLine_d18144f0 :nth-child(n+2){margin-right:8px}.actions_d18144f0 .ms-Button,.actionsSingleLine_d18144f0 .ms-Button{margin-top:8px}}.dismissal_d18144f0,.expand_d18144f0{-ms-flex-negative:0;flex-shrink:0;margin:8px 8px 8px 0}.dismissal_d18144f0::-moz-focus-inner,.expand_d18144f0::-moz-focus-inner{border:0}.dismissal_d18144f0,.expand_d18144f0{outline:transparent}.dismissal_d18144f0,.expand_d18144f0{position:relative}.ms-Fabric--isFocusVisible .dismissal_d18144f0:focus:after,.ms-Fabric--isFocusVisible .expand_d18144f0:focus:after{content:'';position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none;border:1px solid " }, { "theme": "focusBorder", "defaultValue": "#000000" }, { "rawString": "}html[dir='rtl'] .dismissal_d18144f0,html[dir='rtl'] .expand_d18144f0{margin:8px 0 8px 8px}@media screen and (max-width: 479px){.dismissal_d18144f0,.expand_d18144f0{margin:0 0 0 8px}html[dir='rtl'] .dismissal_d18144f0,html[dir='rtl'] .expand_d18144f0{margin:0 8px 0 0}}@media screen and (-ms-high-contrast: active){.dismissal_d18144f0,.expand_d18144f0{-ms-high-contrast-adjust:none}}.dismissSingleLine_d18144f0,.expandSingleLine_d18144f0{display:-webkit-box;display:-ms-flexbox;display:flex}.dismissal_d18144f0 .ms-Button-icon,.dismissSingleLine_d18144f0 .ms-Button-icon,.expandSingleLine_d18144f0 .ms-Button-icon{font-size:12px;height:12px;line-height:12px;color:" }, { "theme": "neutralSecondary", "defaultValue": "#666666" }, { "rawString": "}.multiLine_d18144f0{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.multiLine_d18144f0 .content_d18144f0{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.multiLine_d18144f0 .innerText_d18144f0{overflow:visible;white-space:pre-wrap}.multiLine_d18144f0 .text_d18144f0.multiLineWithActions_d18144f0{margin-bottom:8px}@media screen and (max-width: 479px){.multiLine_d18144f0 .text_d18144f0.multiLineWithActions_d18144f0{margin-bottom:0}}.singleLine_d18144f0 .innerText_d18144f0{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.singleLine_d18144f0 .expandSingleLine_d18144f0{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.singleLine_d18144f0 .expandSingleLine_d18144f0 .content_d18144f0{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.singleLine_d18144f0 .expandSingleLine_d18144f0 .innerText_d18144f0{overflow:visible;white-space:pre-wrap}@media screen and (max-width: 479px){.singleLine_d18144f0:not(.expandingSingleLine_d18144f0){-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.singleLine_d18144f0:not(.expandingSingleLine_d18144f0) .content_d18144f0{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.singleLine_d18144f0:not(.expandingSingleLine_d18144f0) .innerText_d18144f0{overflow:visible;white-space:pre-wrap}}@media screen and (max-width: 479px) and (max-width: 479px){.singleLine_d18144f0:not(.expandingSingleLine_d18144f0) .text_d18144f0.multiLineWithActions_d18144f0{margin-bottom:0}}\n" }]);
exports.root = "root_d18144f0";
exports.icon = "icon_d18144f0";
exports.text = "text_d18144f0";
exports.noDismissButton = "noDismissButton_d18144f0";
exports.innerText = "innerText_d18144f0";
exports.rootIsWarning = "rootIsWarning_d18144f0";
exports.rootIsSevereWarning = "rootIsSevereWarning_d18144f0";
exports.rootIsError = "rootIsError_d18144f0";
exports.rootIsBlocked = "rootIsBlocked_d18144f0";
exports.rootIsSuccess = "rootIsSuccess_d18144f0";
exports.content = "content_d18144f0";
exports.actions = "actions_d18144f0";
exports.actionsSingleLine = "actionsSingleLine_d18144f0";
exports.dismissal = "dismissal_d18144f0";
exports.expand = "expand_d18144f0";
exports.dismissSingleLine = "dismissSingleLine_d18144f0";
exports.expandSingleLine = "expandSingleLine_d18144f0";
exports.multiLine = "multiLine_d18144f0";
exports.multiLineWithActions = "multiLineWithActions_d18144f0";
exports.singleLine = "singleLine_d18144f0";
exports.expandingSingleLine = "expandingSingleLine_d18144f0";
//# sourceMappingURL=MessageBar.scss.js.map

/***/ }),

/***/ "../../node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.types.js":
/*!*******************************************************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.types.js ***!
  \*******************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var MessageBarType;
(function (MessageBarType) {
    /** Info styled MessageBar */
    MessageBarType[MessageBarType["info"] = 0] = "info";
    /** Error styled MessageBar */
    MessageBarType[MessageBarType["error"] = 1] = "error";
    /** Blocked styled MessageBar */
    MessageBarType[MessageBarType["blocked"] = 2] = "blocked";
    /** SevereWarning styled MessageBar */
    MessageBarType[MessageBarType["severeWarning"] = 3] = "severeWarning";
    /** Success styled MessageBar */
    MessageBarType[MessageBarType["success"] = 4] = "success";
    /** Warning styled MessageBar */
    MessageBarType[MessageBarType["warning"] = 5] = "warning";
    /**
     * Deprecated at v0.48.0, to be removed at >= v1.0.0. Use 'blocked' instead.
     * @deprecated
     */
    MessageBarType[MessageBarType["remove"] = 90000] = "remove";
})(MessageBarType = exports.MessageBarType || (exports.MessageBarType = {}));
//# sourceMappingURL=MessageBar.types.js.map

/***/ }),

/***/ "../../node_modules/office-ui-fabric-react/lib/components/MessageBar/index.js":
/*!********************************************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/office-ui-fabric-react/lib/components/MessageBar/index.js ***!
  \********************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var tslib_1 = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
tslib_1.__exportStar(__webpack_require__(/*! ./MessageBar */ "../../node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.js"), exports);
tslib_1.__exportStar(__webpack_require__(/*! ./MessageBar.types */ "../../node_modules/office-ui-fabric-react/lib/components/MessageBar/MessageBar.types.js"), exports);
//# sourceMappingURL=index.js.map

/***/ }),

/***/ "../core-ui-fabric/lib/component/AppFrame.classNames.js":
/*!**************************************************************!*\
  !*** ../core-ui-fabric/lib/component/AppFrame.classNames.js ***!
  \**************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var styling_1 = __webpack_require__(/*! @uifabric/styling */ "../../node_modules/@uifabric/styling/lib/index.js");
var utilities_1 = __webpack_require__(/*! @uifabric/utilities */ "../../node_modules/@uifabric/utilities/lib/index.js");
var getClassNames = utilities_1.memoizeFunction(function (styles, className) {
    return {
        root: styling_1.mergeStyles("app-frame-root", className, styles.root),
        frame: styling_1.mergeStyles("app-frame", styles.frame)
    };
});
exports.getClassNames = getClassNames;


/***/ }),

/***/ "../core-ui-fabric/lib/component/AppFrame.js":
/*!***************************************************!*\
  !*** ../core-ui-fabric/lib/component/AppFrame.js ***!
  \***************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
var AppFrame_styles_1 = __webpack_require__(/*! ./AppFrame.styles */ "../core-ui-fabric/lib/component/AppFrame.styles.js");
var AppFrame_classNames_1 = __webpack_require__(/*! ./AppFrame.classNames */ "../core-ui-fabric/lib/component/AppFrame.classNames.js");
var Error_1 = __webpack_require__(/*! ./Error */ "../core-ui-fabric/lib/component/Error.js");
var AppFrame = /** @class */ (function (_super) {
    __extends(AppFrame, _super);
    function AppFrame(props) {
        var _this = _super.call(this, props) || this;
        _this._onMessage = function (e) {
            if (e.origin && e.source === _this._frameRef.contentWindow && _this.props.messageRouter) {
                _this.props.messageRouter.handleRequest(e.data).then(function (value) {
                    e.source.postMessage({ correlationId: e.data.correlationId, value: value }, "*");
                }).catch(function (error) {
                    try {
                        e.source.postMessage({
                            correlationId: e.data.correlationId,
                            error: error
                        }, "*");
                    }
                    catch (e) {
                        e.source.postMessage({
                            correlationId: e.data.correlationId,
                            error: { message: "Error processing message", details: JSON.stringify(error) }
                        }, "*");
                    }
                });
            }
        };
        _this._onResize = function () {
            var bounds = _this._containerRef.getBoundingClientRect();
            if (_this._frameRef) {
                _this._frameRef.width = String(bounds.width);
                _this._frameRef.height = String(bounds.height);
            }
            if (!_this.state.renderFrame && bounds.width > 0 && bounds.height > 0) {
                _this.setState({ renderFrame: true });
            }
        };
        _this._onContainerRef = function (ref) {
            _this._containerRef = ref;
        };
        _this._onFrameRef = function (ref) {
            _this._frameRef = ref;
            if (_this._frameRef) {
                _this._onResize();
            }
        };
        _this._onFrameLoaded = function (e) {
            try {
                _this._frameRef.contentWindow.addEventListener("message", _this._onMessage);
            }
            catch (e) {
                _this.setState({ error: e });
                console.error(e);
            }
        };
        _this.state = { renderFrame: false };
        return _this;
    }
    AppFrame.prototype.componentDidMount = function () {
        var host = this.props.host;
        if (host) {
            host.addEventListener("resize", this._onResize);
            this._onResize();
        }
    };
    AppFrame.prototype.componentWillUnmount = function () {
        if (this.props.host) {
            this.props.host.removeEventListener("resize", this._onResize);
        }
        if (this._frameRef) {
            this._frameRef.removeEventListener("load", this._onFrameLoaded);
            if (this._frameRef.contentWindow) {
                try {
                    this._frameRef.contentWindow.removeEventListener("message", this._onMessage);
                }
                catch (e) {
                    console.error(e);
                }
            }
            this._frameRef.src = "about:blank";
        }
    };
    AppFrame.prototype.render = function () {
        var classNames = AppFrame_classNames_1.getClassNames(AppFrame_styles_1.getStyles(undefined, this.props.styles), this.props.className);
        var frame = this.state.renderFrame ?
            React.createElement("iframe", { className: classNames.frame, ref: this._onFrameRef, src: this.props.src, onLoad: this._onFrameLoaded }) : undefined;
        var error = this.state.error ?
            React.createElement(Error_1.Error, { error: this.state.error }) : undefined;
        return (React.createElement("div", { className: classNames.root, ref: this._onContainerRef },
            frame,
            error));
    };
    return AppFrame;
}(React.Component));
exports.AppFrame = AppFrame;
;


/***/ }),

/***/ "../core-ui-fabric/lib/component/AppFrame.styles.js":
/*!**********************************************************!*\
  !*** ../core-ui-fabric/lib/component/AppFrame.styles.js ***!
  \**********************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
var styling_1 = __webpack_require__(/*! @uifabric/styling */ "../../node_modules/@uifabric/styling/lib/index.js");
var utilities_1 = __webpack_require__(/*! @uifabric/utilities */ "../../node_modules/@uifabric/utilities/lib/index.js");
var getStyles = utilities_1.memoizeFunction(function (theme, customStyles) {
    if (!theme) {
        theme = styling_1.getTheme();
    }
    var DefaultStyles = {
        root: {
            overflow: "hidden",
            position: "absolute",
            top: 0,
            right: 0,
            bottom: 0,
            left: 0
        },
        frame: {
            position: "absolute",
            top: 0,
            left: 0,
            border: "none"
        }
    };
    return styling_1.concatStyleSets(DefaultStyles, customStyles);
});
exports.getStyles = getStyles;


/***/ }),

/***/ "../ozone/lib/listing/ListingHelper.js":
/*!*********************************************!*\
  !*** ../ozone/lib/listing/ListingHelper.js ***!
  \*********************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

Object.defineProperty(exports, "__esModule", { value: true });
/**
 * Note: this is all temporary - how listings are handled on the view side would actually depend on the
 * listing type.
 */
var isExternalUrl = function (launchUrl) {
    return launchUrl && launchUrl.indexOf("://") >= 0;
};
exports.isExternalUrl = isExternalUrl;
var isExternalListing = function (listing) {
    return listing ? isExternalUrl(listing.launch_url) : false;
};
exports.isExternalListing = isExternalListing;
var isApplicationUrl = function (launchUrl) {
    return launchUrl && launchUrl.endsWith(".js");
};
exports.isApplicationUrl = isApplicationUrl;
var isApplicationListing = function (listing) {
    return listing ? isApplicationUrl(listing.launch_url) : false;
};
exports.isApplicationListing = isApplicationListing;


/***/ }),

/***/ "../ozone/lib/listing/component/ListingLaunch.js":
/*!*******************************************************!*\
  !*** ../ozone/lib/listing/component/ListingLaunch.js ***!
  \*******************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

"use strict";

var __extends = (this && this.__extends) || (function () {
    var extendStatics = Object.setPrototypeOf ||
        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
var mobx_react_1 = __webpack_require__(/*! mobx-react */ "../../node_modules/mobx-react/index.module.js");
var ListingApprovalStatus_1 = __webpack_require__(/*! ../ListingApprovalStatus */ "../ozone/lib/listing/ListingApprovalStatus.js");
var MessageBar_1 = __webpack_require__(/*! office-ui-fabric-react/lib/MessageBar */ "../../node_modules/office-ui-fabric-react/lib/MessageBar.js");
var ListingHelper_1 = __webpack_require__(/*! ../ListingHelper */ "../ozone/lib/listing/ListingHelper.js");
var AppFrame_1 = __webpack_require__(/*! @twii/core-ui-fabric/lib/component/AppFrame */ "../core-ui-fabric/lib/component/AppFrame.js");
var Sync_1 = __webpack_require__(/*! @twii/core-ui-fabric/lib/component/Sync */ "../core-ui-fabric/lib/component/Sync.js");
var HostAppView_1 = __webpack_require__(/*! @twii/core-ui-fabric/lib/component/HostAppView */ "../core-ui-fabric/lib/component/HostAppView.js");
var ListingModelSupplier_1 = __webpack_require__(/*! ../model/ListingModelSupplier */ "../ozone/lib/listing/model/ListingModelSupplier.js");
var ListingLaunch = /** @class */ (function (_super) {
    __extends(ListingLaunch, _super);
    function ListingLaunch() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    ListingLaunch.prototype.componentWillMount = function () {
        this.props.host.setTitle(this.props.listing.title);
    };
    Object.defineProperty(ListingLaunch.prototype, "external", {
        get: function () {
            return ListingHelper_1.isExternalListing(this.props.listing);
        },
        enumerable: true,
        configurable: true
    });
    ListingLaunch.prototype.render = function () {
        var listing = this.props.listing;
        if (!listing.is_enabled) {
            return (React.createElement(MessageBar_1.MessageBar, { messageBarType: MessageBar_1.MessageBarType.blocked },
                React.createElement("strong", null, this.props.listing.title),
                " is currently disabled."));
        }
        if (listing.is_deleted) {
            return (React.createElement(MessageBar_1.MessageBar, { messageBarType: MessageBar_1.MessageBarType.blocked },
                React.createElement("strong", null, this.props.listing.title),
                " has been removed and is no longer accessible."));
        }
        if (listing.approval_status !== ListingApprovalStatus_1.ListingApprovalStatus.APPROVED) {
            return (React.createElement(MessageBar_1.MessageBar, { messageBarType: MessageBar_1.MessageBarType.blocked },
                React.createElement("strong", null, this.props.listing.title),
                " is not currently available for use."));
        }
        if (this.external && !this.props.host.root) {
            return React.createElement(AppFrame_1.AppFrame, { src: listing.launch_url, host: this.props.host });
        }
        return null;
    };
    ListingLaunch.prototype.componentDidMount = function () {
        if (!this.external) {
            this.props.host.load({ path: this.props.listing.launch_url });
        }
        else if (this.props.host.root) {
            // this is a bit dodgy
            window.location.assign(this.props.listing.launch_url);
        }
    };
    ListingLaunch.prototype.componentDidUpdate = function () {
        if (!this.external) {
            this.props.host.load({ path: this.props.listing.launch_url });
        }
    };
    ListingLaunch = __decorate([
        mobx_react_1.observer
    ], ListingLaunch);
    return ListingLaunch;
}(React.Component));
var ListingLaunchContainer = /** @class */ (function (_super) {
    __extends(ListingLaunchContainer, _super);
    function ListingLaunchContainer() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this._onRenderDone = function () {
            return React.createElement(ListingLaunch, { host: _this.props.host, listing: _this.props.listingSupplier.value });
        };
        return _this;
    }
    ListingLaunchContainer.prototype.componentWillMount = function () {
        this.props.listingSupplier.load();
    };
    ListingLaunchContainer.prototype.render = function () {
        return React.createElement(Sync_1.Sync, { sync: this.props.listingSupplier.sync, onRenderDone: this._onRenderDone, syncLabel: "Launching " + (this.props.host.params.title || "") + "..." });
    };
    return ListingLaunchContainer;
}(React.Component));
var ListingLaunchApp = /** @class */ (function (_super) {
    __extends(ListingLaunchApp, _super);
    function ListingLaunchApp() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Object.defineProperty(ListingLaunchApp.prototype, "host", {
        get: function () {
            return this.props.match.host;
        },
        enumerable: true,
        configurable: true
    });
    ListingLaunchApp.prototype.componentWillMount = function () {
        this.host.setTitle("" + (this.props.match.params.title || ""));
    };
    Object.defineProperty(ListingLaunchApp.prototype, "listingId", {
        get: function () {
            return this.props.match.params.listingId;
        },
        enumerable: true,
        configurable: true
    });
    ListingLaunchApp.prototype.render = function () {
        return (React.createElement(HostAppView_1.HostAppView, { host: this.host },
            React.createElement(ListingLaunchContainer, { host: this.host, listingSupplier: new ListingModelSupplier_1.ListingModelSupplier(this.listingId) })));
    };
    return ListingLaunchApp;
}(React.Component));
exports.ListingLaunchApp = ListingLaunchApp;
exports.default = ListingLaunchApp;


/***/ })

}]);
//# sourceMappingURL=35.js.map