"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        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 extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k];
    result["default"] = mod;
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var ReactDOM = __importStar(require("react-dom"));
var TransactionButton_1 = require("../TransactionButton");
var ParameterizerStyledComponents_1 = require("./ParameterizerStyledComponents");
var textComponents_1 = require("./textComponents");
var ProcessProposal = /** @class */ (function (_super) {
    __extends(ProcessProposal, _super);
    function ProcessProposal() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.bucket = document.createElement("div");
        return _this;
    }
    ProcessProposal.prototype.componentDidMount = function () {
        document.body.appendChild(this.bucket);
    };
    ProcessProposal.prototype.componentWillUnmount = function () {
        document.body.removeChild(this.bucket);
    };
    ProcessProposal.prototype.render = function () {
        return ReactDOM.createPortal(React.createElement(ParameterizerStyledComponents_1.StyledCreateProposalOuter, null,
            React.createElement(ParameterizerStyledComponents_1.StyledChallengeProposalContainer, null,
                React.createElement(ParameterizerStyledComponents_1.StyledCreateProposalHeaderClose, { onClick: this.props.handleClose }, "\u2716"),
                React.createElement(ParameterizerStyledComponents_1.StyledCreateProposalContent, null,
                    React.createElement(ParameterizerStyledComponents_1.StyledSection, null,
                        React.createElement(textComponents_1.ProcessProposalDescriptionText, null)),
                    React.createElement(ParameterizerStyledComponents_1.StyledSection, null,
                        React.createElement(ParameterizerStyledComponents_1.StyledMetaName, null,
                            React.createElement(textComponents_1.CreateProposalParamNameLabelText, null)),
                        React.createElement(ParameterizerStyledComponents_1.StyledMetaValue, null, this.props.parameterDisplayName)),
                    React.createElement(ParameterizerStyledComponents_1.StyledSection, null,
                        React.createElement(ParameterizerStyledComponents_1.StyledMetaName, null,
                            React.createElement(textComponents_1.CreateProposalParamCurrentValueLabelText, null)),
                        React.createElement(ParameterizerStyledComponents_1.StyledMetaValue, null, this.props.parameterCurrentValue)),
                    React.createElement(ParameterizerStyledComponents_1.StyledSection, null,
                        React.createElement(ParameterizerStyledComponents_1.StyledMetaName, null,
                            React.createElement(textComponents_1.ChallengeProposalNewValueLabelText, null)),
                        React.createElement(ParameterizerStyledComponents_1.StyledMetaValue, null, this.props.parameterNewValue)),
                    React.createElement(ParameterizerStyledComponents_1.StyledSection, null,
                        React.createElement(TransactionButton_1.TransactionButtonNoModal, { transactions: this.props.transactions, postExecuteTransactions: this.props.postExecuteTransactions }, "Confirm With Metamask"))))), this.bucket);
    };
    return ProcessProposal;
}(React.Component));
exports.ProcessProposal = ProcessProposal;
//# sourceMappingURL=ProcessProposal.js.map