"use strict";
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 styledComponents_1 = require("./styledComponents");
var ChallengeResultsChart_1 = require("../ChallengeResultsChart");
var AppealDecisionDetail_1 = require("./AppealDecisionDetail");
exports.CompleteChallengeResults = function (props) {
    var showAppealChallenge = props.appealChallengeTotalVotes &&
        props.appealChallengeVotesFor &&
        props.appealChallengeVotesAgainst &&
        props.appealChallengePercentFor &&
        props.appealChallengePercentAgainst;
    return (React.createElement(styledComponents_1.StyledListingDetailPhaseCardContainer, null,
        React.createElement(styledComponents_1.StyledListingDetailPhaseCardSection, null,
            React.createElement(ChallengeResultsChart_1.ChallengeResults, { headerText: "Challenge #" + props.challengeID + " Results", totalVotes: props.totalVotes, votesFor: props.votesFor, votesAgainst: props.votesAgainst, percentFor: props.percentFor, percentAgainst: props.percentAgainst, didChallengeSucceed: props.didChallengeOriginallySucceed })),
        props.appealRequested && React.createElement(AppealDecisionDetail_1.AppealDecisionDetail, { appealGranted: props.appealGranted }),
        showAppealChallenge && (React.createElement(styledComponents_1.StyledListingDetailPhaseCardSection, null,
            React.createElement(ChallengeResultsChart_1.ChallengeResults, { headerText: "Appeal Challenge #" + props.appealChallengeID + " Results", totalVotes: props.appealChallengeTotalVotes, votesFor: props.appealChallengeVotesFor, votesAgainst: props.appealChallengeVotesAgainst, percentFor: props.appealChallengePercentFor, percentAgainst: props.appealChallengePercentAgainst, didChallengeSucceed: props.didAppealChallengeSucceed, isAppealChallenge: true })))));
};
//# sourceMappingURL=CompleteChallengeResults.js.map