"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 utils_1 = require("@joincivil/utils");
var styledComponents_1 = require("./styledComponents");
// Text for reviewing a vote to commit
exports.CommitVoteReviewButtonText = function (props) { return React.createElement(React.Fragment, null, "Review My Vote"); };
// Text for whitelisting action. Used in buttons and calls to action
exports.WhitelistActionText = function (props) { return React.createElement(React.Fragment, null, "approve"); };
// Text for removing action. Used in buttons and calls to action
exports.RemoveActionText = function (props) { return React.createElement(React.Fragment, null, "reject"); };
// Text for upholding granted appeal action. Used in buttons and calls to action
exports.UpholdActionText = function (props) { return React.createElement(React.Fragment, null, "upheld"); };
// Text for overturning granted appeal  action. Used in buttons and calls to action
exports.OverturnActionText = function (props) { return React.createElement(React.Fragment, null, "overturned"); };
exports.VoteCallToActionText = function (props) {
    return (React.createElement(React.Fragment, null,
        "Do you",
        " ",
        React.createElement("b", null,
            React.createElement(exports.WhitelistActionText, null)),
        " ",
        "or",
        " ",
        React.createElement("b", null,
            React.createElement(exports.RemoveActionText, null)),
        " ",
        React.createElement("i", null, props.newsroomName || "this newsroom"),
        " from being listed on the Civil Registry?"));
};
exports.AppealChallengeVoteCallToActionText = function (props) {
    return (React.createElement(React.Fragment, null,
        "Should the Civil Council's decision be",
        " ",
        React.createElement("b", null,
            React.createElement(exports.UpholdActionText, null)),
        " ",
        "or",
        " ",
        React.createElement("b", null,
            React.createElement(exports.OverturnActionText, null)),
        " ",
        "?"));
};
exports.RevealVoteCallToActionHeaderText = function (props) { return (React.createElement(React.Fragment, null, "Confirm Your Secret Vote and Make It Count!")); };
exports.RevealVoteCallToActionCopyText = function (props) { return (React.createElement(React.Fragment, null, "To finalize the vote, you must complete this step to be eligible for rewards. Similar to the actual elections, votes are not revealed until after polls closed.")); };
exports.RevealVoteDidNotCommitHeaderText = function (props) { return (React.createElement(React.Fragment, null, "You did not participate in this challenge")); };
exports.RevealVoteDidNotCommitCopyText = function (props) { return (React.createElement(React.Fragment, null, "You did not commit a vote, so there is nothing here for you to reveal")); };
exports.RevealVoteDoneHeaderText = function (props) { return React.createElement(React.Fragment, null, "You have revealed your vote"); };
exports.RevealVoteDoneCopyText = function (props) { return (React.createElement(React.Fragment, null, "Thank you for participating! Please check back after the challenge ends to see if you have earned a reward.")); };
exports.RevealVoteCalloutCopyText = function (props) { return (React.createElement(React.Fragment, null,
    "Civil does not store your vote information. It is stored in the",
    " ",
    React.createElement("a", { href: props.votingSmartContractFaqURL, target: "_blank" }, "voting smart contract"),
    ". For your convenience, it is also stored in your browser cache. Please confirm your vote below.")); };
// Label for Commit Vote num tokens form
exports.CommitVoteNumTokensLabelText = function (props) {
    return React.createElement(React.Fragment, null, "Enter amount of tokens to vote. 1 vote equals 1 token ");
};
// Commit Vote callouts
exports.CommitVoteCalloutHeaderText = function (props) {
    return React.createElement(React.Fragment, null, "You're Invited to Vote!");
};
exports.CommitVoteCalloutCopyText = function (props) {
    return (React.createElement(React.Fragment, null, "Evaluate the Newsroom based on the Civil Constitution and vote accordingly. You will never lose tokens for participating in a vote."));
};
exports.AppealChallengeCommitVoteCalloutCopyText = function (props) {
    return (React.createElement(React.Fragment, null, "Evaluate whether the Granted Appeal should be upheld or overturned and cast your vote accordingly. Voters will never lose tokens for participating in a vote."));
};
exports.CommitVoteAlreadyVotedHeaderText = function (props) {
    return React.createElement(React.Fragment, null, "You have already submitted your vote. Thank you.");
};
// TODO(jon): Pass in and render commit vote expiry
exports.CommitVoteAlreadyVotedCopyText = function (props) {
    return React.createElement(React.Fragment, null, "You may revise your vote until the deadline.");
};
exports.CommitVoteCalloutButtonText = function (props) { return React.createElement(React.Fragment, null, "Submit My Vote"); };
// Reveal Vote
exports.RevealVoteButtonText = function (props) { return React.createElement(React.Fragment, null, "Confirm My Vote"); };
// Phase Card Display Names
exports.UnderChallengePhaseDisplayNameText = function (props) { return React.createElement(React.Fragment, null, "Under Challenge"); };
exports.ReadyToCompletePhaseDisplayNameText = function (props) { return React.createElement(React.Fragment, null, "Ready to Complete"); };
exports.NewApplicationDisplayNameText = function (props) { return React.createElement(React.Fragment, null, "New Application"); };
exports.RejectedNewroomDisplayNameText = function (props) { return React.createElement(React.Fragment, null, "Rejected Newsroom"); };
exports.WithdrawnNewroomDisplayNameText = function (props) { return React.createElement(React.Fragment, null, "Withdrawn Newsroom"); };
exports.WhitelistedNewroomsDisplayNameText = function (props) { return React.createElement(React.Fragment, null, "Approved Newsroom"); };
exports.DurationToolTipText = function (props) {
    var duration = utils_1.getReadableDuration(props.phaseLength || 0);
    return React.createElement(React.Fragment, null,
        "Time duration: ",
        duration);
};
exports.NewApplicationToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.ToolTipHdr, null, "Under review by the community"),
        React.createElement(styledComponents_1.ToolTipItalic, null,
            React.createElement(exports.DurationToolTipText, { phaseLength: props.phaseLength })),
        React.createElement("p", null, "CVL token holders may challenge a Newsroom if their mission, charter, or roster is perceived to misalign with the Civil Constitution. Newsroom will be approved if there are no challenges.")));
};
exports.UnderChallengeToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.ToolTipHdr, null, "A CVL token holder is challenging this newsroom"),
        React.createElement("p", null, "This Newsroom is being challenged by a CVL token holder who believes it violates one of principles outlined in the Civil Constitution. Read the challenger's statement in the Discussion section."),
        React.createElement("p", null, "The challenge phase consists of 2 subphases: Submit Vote and Confirm Vote.")));
};
exports.WhitelistedNewroomsToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement("p", null, "This Newsroom has been approved to be on the Civil Registry, on condition they commit to uphold the values of the Civil Constitution."),
        React.createElement("p", null, "CVL token holders are the stewards of ethical journalism on the Civil Registry. If for any reason you believe that a Newsroom has violated either the Civil Constitution or the Newsroom's own stated mission and charter, you may challenge them at any time.")));
};
exports.RejectedNewsroomsToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement("p", null, "This Newsroom has been rejected by the CVL token-holding community due to misalignment with the Civil Constitution."),
        React.createElement("p", null, "Rejected Newsrooms may reapply to the Civil Registry at any time.")));
};
exports.WithdrawnNewsroomsToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement("p", null, "This Newsroom has been withdrawn from the registry by its owner."),
        React.createElement("p", null, "Withdrawn Newsrooms may reapply to the Civil Registry at any time.")));
};
exports.ResolveChallengeToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.ToolTipHdr, null, "Resolve Challenge"),
        React.createElement("p", null, "Challenge results are in, and any CVL token holder may resolve this challenge. When this is resolved, Newsroom will be listed or delisted from The Civil Registry. Please note that this requires paying some Ethereum gas to complete.")));
};
exports.CommitVoteToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.ToolTipHdr, null, "Commit tokens to cast a secret vote"),
        React.createElement(styledComponents_1.ToolTipItalic, null,
            React.createElement(exports.DurationToolTipText, { phaseLength: props.phaseLength })),
        React.createElement("p", null, "Decide how many tokens you would like to put towards this vote. Note that the more tokens you include, the more power your vote carries. You can never lose your vote, but you will not be able to withdraw them until the end of the voting process. All votes will be hidden, using a unique 4-word voting code, until the end of the voting period. You have to come back and confirm your vote for it to count.")));
};
exports.ConfirmVoteToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.ToolTipHdr, null, "Finalize vote using a unique 4-word voting code"),
        React.createElement(styledComponents_1.ToolTipItalic, null,
            React.createElement(exports.DurationToolTipText, { phaseLength: props.phaseLength })),
        React.createElement("p", null, "Voters must enter the unique 4-word voting code they received during the commit vote stage of the process in order to confirm their vote. Votes can not be counted and rewards can not be claimed unless voters confirm their earlier vote.")));
};
exports.RewardPoolToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        "Amount of tokens to be distributed to voters of the winning party at the conclusion of the challenge. The amount comes from",
        " ",
        !!props.dispensationPct
            ? props.dispensationPct + "%"
            : "a percentage (defined by the dispensationPct Parameter)",
        " ",
        "of the challenger or Newsroom's deposit."));
};
exports.DepositsToolTipText = function (props) {
    return (React.createElement(React.Fragment, null, "Amount of CVL tokens staked by the Newsroom when they apply to The Civil Registry, and by the Challenger upon challenging this Newsroom."));
};
exports.RequestAppealToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.ToolTipItalic, null,
            React.createElement(exports.DurationToolTipText, { phaseLength: props.phaseLength })),
        React.createElement("p", null, "CVL token holders, (including newsrooms or challengers) can appeal a vote outcome if they believe it is not in keeping with the Civil Constitution. This system of checks and balances ensures that all voices and perspectives have an opportunity to be heard in the Civil community.")));
};
exports.WaitingCouncilDecisionToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.ToolTipItalic, null,
            React.createElement(exports.DurationToolTipText, { phaseLength: props.phaseLength })),
        React.createElement("p", null, "After The Civil Council reaches a decision on the appeal, they will publish a document explaining their choice and citing the section of the Civil Constitution they used to reach their decision. This system of checks and balances ensures that all voices and views have an opportunity to be heard in the Civil community.")));
};
exports.ChallangeCouncilToolTipText = function (props) {
    return (React.createElement(React.Fragment, null,
        React.createElement(styledComponents_1.ToolTipItalic, null,
            React.createElement(exports.DurationToolTipText, { phaseLength: props.phaseLength })),
        React.createElement("p", null, "The challenger must submit a statement with evidence to make their case, and deposit CVL tokens equal to the amount of the Newsroom's deposit. The CVL token deposit for the challenge is set aside for the duration of the challenge process, like an escrow account.")));
};
// Num tokens for Commit Vote text
exports.VotingTokenBalanceText = function (props) {
    return React.createElement(React.Fragment, null, "Voting Token Balance");
};
exports.AvailableTokenBalanceText = function (props) {
    return React.createElement(React.Fragment, null, "Available Token Balance");
};
exports.VotingTokenBalanceTooltipText = function (props) {
    return (React.createElement(React.Fragment, null, "Voting tokens are tokens locked in voting contracts until the challenge is completed. If a token is locked in a vote, it can be used for other votes, but can NOT be used for applications, challenges, appeals, or exchanged for currency. If you\u2019re planning on taking other actions, we recommend reserving some CVL in your available balance."));
};
exports.AvailableTokenBalanceTooltipText = function (props) {
    return (React.createElement(React.Fragment, null, "CVL tokens you can use to tip journalists, use for deposits to challenge, request appeal, and challenge appeal, or cash out for fiat currency. To vote, you will need to approve and transfer them to your Voting Token Balance. Committing CVL tokens from your Available Balance with any vote will automatically transfer those tokens into your Voting Token Balance. If you\u2019re planning on taking other actions, we recommend reserving some CVL in your Available Balance"));
};
exports.SelectNumTokensText = function (props) {
    return React.createElement(React.Fragment, null, "Select amount of CVL tokens to commit to your vote.");
};
exports.OneTokenOneVoteText = function (props) {
    return React.createElement(React.Fragment, null, "1 token equals 1 vote.");
};
exports.OneTokenOneVoteTooltipText = function (props) {
    return (React.createElement(React.Fragment, null, "Your vote is weighted based on the amount of CVL tokens you put towards your vote. If you have 1 CVL, you have 1 vote; 10 CVL gives you the power of 10 votes. This ensures that those who have the most tokens are incentivized to vote for the side that abides by the Civil Constitution. Note that you can not lose any CVL as a result of voting."));
};
exports.CommitVoteInsufficientTokensText = function (props) {
    return React.createElement(React.Fragment, null, "You don't have enough CVL tokens in your available balance");
};
exports.CommitVoteMaxTokensWarningText = function (props) {
    return (React.createElement(React.Fragment, null, "You are commiting all of your CVL tokens to this vote. If you\u2019re planning on taking other actions - tipping journalists, challenging listings, requesting appeals, challenging granted appeals, or cashing out for fiat currency - we recommend reserving some CVL in your Available Balance."));
};
//# sourceMappingURL=textComponents.js.map