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

/***/ "../../node_modules/@blueprintjs/core/lib/esm/components/alert/alert.js":
/*!**************************************************************************************************!*\
  !*** C:/workspace/gitfish/twii/node_modules/@blueprintjs/core/lib/esm/components/alert/alert.js ***!
  \**************************************************************************************************/
/*! exports provided: Alert */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Alert", function() { return Alert; });
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "../../node_modules/tslib/tslib.es6.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! classnames */ "../../node_modules/classnames/index.js");
/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_1__);
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_2__);
/* harmony import */ var _common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../common */ "../../node_modules/@blueprintjs/core/lib/esm/common/index.js");
/* harmony import */ var _common_errors__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../common/errors */ "../../node_modules/@blueprintjs/core/lib/esm/common/errors.js");
/* harmony import */ var _common_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../common/utils */ "../../node_modules/@blueprintjs/core/lib/esm/common/utils.js");
/* harmony import */ var _button_buttons__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../button/buttons */ "../../node_modules/@blueprintjs/core/lib/esm/components/button/buttons.js");
/* harmony import */ var _dialog_dialog__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../dialog/dialog */ "../../node_modules/@blueprintjs/core/lib/esm/components/dialog/dialog.js");
/* harmony import */ var _icon_icon__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../icon/icon */ "../../node_modules/@blueprintjs/core/lib/esm/components/icon/icon.js");
/*
 * Copyright 2015 Palantir Technologies, Inc. All rights reserved.
 *
 * Licensed under the terms of the LICENSE file distributed with this project.
 */









var Alert = /** @class */ (function (_super) {
    tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"](Alert, _super);
    function Alert() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.handleCancel = function (evt) { return _this.internalHandleCallbacks(false, evt); };
        _this.handleConfirm = function (evt) { return _this.internalHandleCallbacks(true, evt); };
        return _this;
    }
    Alert.prototype.render = function () {
        var _a = this.props, children = _a.children, className = _a.className, icon = _a.icon, intent = _a.intent, cancelButtonText = _a.cancelButtonText, confirmButtonText = _a.confirmButtonText;
        return (react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_dialog_dialog__WEBPACK_IMPORTED_MODULE_7__["Dialog"], { className: classnames__WEBPACK_IMPORTED_MODULE_1___default()(_common__WEBPACK_IMPORTED_MODULE_3__["Classes"].ALERT, className), canEscapeKeyClose: this.props.canEscapeKeyCancel, canOutsideClickClose: this.props.canOutsideClickCancel, isOpen: this.props.isOpen, onClose: this.handleCancel, style: this.props.style, transitionDuration: this.props.transitionDuration },
            react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: _common__WEBPACK_IMPORTED_MODULE_3__["Classes"].ALERT_BODY },
                react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_icon_icon__WEBPACK_IMPORTED_MODULE_8__["Icon"], { icon: icon, iconSize: 40, intent: intent }),
                react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: _common__WEBPACK_IMPORTED_MODULE_3__["Classes"].ALERT_CONTENTS }, children)),
            react__WEBPACK_IMPORTED_MODULE_2__["createElement"]("div", { className: _common__WEBPACK_IMPORTED_MODULE_3__["Classes"].ALERT_FOOTER },
                react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_button_buttons__WEBPACK_IMPORTED_MODULE_6__["Button"], { intent: intent, text: confirmButtonText, onClick: this.handleConfirm }),
                cancelButtonText && react__WEBPACK_IMPORTED_MODULE_2__["createElement"](_button_buttons__WEBPACK_IMPORTED_MODULE_6__["Button"], { text: cancelButtonText, onClick: this.handleCancel }))));
    };
    Alert.prototype.validateProps = function (props) {
        if (props.onClose == null && (props.cancelButtonText == null) !== (props.onCancel == null)) {
            console.warn(_common_errors__WEBPACK_IMPORTED_MODULE_4__["ALERT_WARN_CANCEL_PROPS"]);
        }
        var hasCancelHandler = props.onCancel != null || props.onClose != null;
        if (props.canEscapeKeyCancel && !hasCancelHandler) {
            console.warn(_common_errors__WEBPACK_IMPORTED_MODULE_4__["ALERT_WARN_CANCEL_ESCAPE_KEY"]);
        }
        if (props.canOutsideClickCancel && !hasCancelHandler) {
            console.warn(_common_errors__WEBPACK_IMPORTED_MODULE_4__["ALERT_WARN_CANCEL_OUTSIDE_CLICK"]);
        }
    };
    Alert.prototype.internalHandleCallbacks = function (confirmed, evt) {
        var _a = this.props, onCancel = _a.onCancel, onClose = _a.onClose, onConfirm = _a.onConfirm;
        Object(_common_utils__WEBPACK_IMPORTED_MODULE_5__["safeInvoke"])(confirmed ? onConfirm : onCancel, evt);
        Object(_common_utils__WEBPACK_IMPORTED_MODULE_5__["safeInvoke"])(onClose, confirmed, evt);
    };
    Alert.defaultProps = {
        canEscapeKeyCancel: false,
        canOutsideClickCancel: false,
        confirmButtonText: "OK",
        isOpen: false,
    };
    Alert.displayName = "Blueprint2.Alert";
    return Alert;
}(_common__WEBPACK_IMPORTED_MODULE_3__["AbstractPureComponent"]));



/***/ }),

/***/ "../blueprint-samples/lib/component/AlertSamples.js":
/*!**********************************************************!*\
  !*** ../blueprint-samples/lib/component/AlertSamples.js ***!
  \**********************************************************/
/*! exports provided: AlertSamples, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertSamples", function() { return AlertSamples; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "default", function() { return AlertSamples; });
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
/* harmony import */ var _blueprintjs_core_lib_esm_components_alert_alert__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @blueprintjs/core/lib/esm/components/alert/alert */ "../../node_modules/@blueprintjs/core/lib/esm/components/alert/alert.js");
/* harmony import */ var _blueprintjs_core_lib_esm_components_button_buttons__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @blueprintjs/core/lib/esm/components/button/buttons */ "../../node_modules/@blueprintjs/core/lib/esm/components/button/buttons.js");
var __extends = (undefined && undefined.__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 AlertSamples = /** @class */ (function (_super) {
    __extends(AlertSamples, _super);
    function AlertSamples(props) {
        var _this = _super.call(this, props) || this;
        _this._onAlertClose = function () {
            console.log("-- On Alert Close");
            _this.setState({ open: false });
        };
        _this._onClickOpenAlert = function () {
            console.log("-- On Click Open Alert");
            _this.setState({ open: true });
        };
        _this.state = { open: false };
        return _this;
    }
    AlertSamples.prototype.render = function () {
        return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: { padding: 8 } },
            react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_blueprintjs_core_lib_esm_components_button_buttons__WEBPACK_IMPORTED_MODULE_2__["Button"], { onClick: this._onClickOpenAlert, disabled: this.state.open }, "Show Alert"),
            react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_blueprintjs_core_lib_esm_components_alert_alert__WEBPACK_IMPORTED_MODULE_1__["Alert"], { isOpen: this.state.open, onClose: this._onAlertClose }, "Hello, this is an alert")));
    };
    return AlertSamples;
}(react__WEBPACK_IMPORTED_MODULE_0__["Component"]));



/***/ })

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