"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __assign = (this && this.__assign) || function () {
    __assign = Object.assign || function(t) {
        for (var s, i = 1, n = arguments.length; i < n; i++) {
            s = arguments[i];
            for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
                t[p] = s[p];
        }
        return t;
    };
    return __assign.apply(this, arguments);
};
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;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var React = __importStar(require("react"));
var styled_components_1 = __importDefault(require("styled-components"));
var styledComponents_1 = require("./styledComponents");
var Button_1 = require("../Button");
var Collapsable_1 = require("../Collapsable");
var StyledInner = styled_components_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n  padding-top: 14px;\n"], ["\n  padding-top: 14px;\n"])));
var AppealDecisionDetailInner = function (props) {
    var decisionText = props.appealGranted ? "granted" : "not granted";
    return (React.createElement(StyledInner, null,
        React.createElement(styledComponents_1.FormCopy, null,
            "The Civil Council has ",
            decisionText,
            " the appeal.",
            " ",
            props.appealGranted && "Read more about their methodology and how they’ve come to this decision."),
        props.appealGranted && (React.createElement(Button_1.InvertedButton, { href: props.appealGrantedStatementURI, size: Button_1.buttonSizes.MEDIUM_WIDE }, "Read about this decision"))));
};
exports.AppealDecisionDetail = function (props) {
    var headerElement = (React.createElement(styledComponents_1.StyledListingDetailPhaseCardSectionHeader, null, "Civil Council Decision"));
    if (props.collapsable) {
        var open_1 = props.open !== undefined ? props.open : true;
        return (React.createElement(styledComponents_1.StyledListingDetailPhaseCardSection, null,
            React.createElement(Collapsable_1.Collapsable, { header: headerElement, open: open_1 },
                React.createElement(AppealDecisionDetailInner, __assign({}, props)))));
    }
    return (React.createElement(styledComponents_1.StyledListingDetailPhaseCardSection, null,
        headerElement,
        React.createElement(AppealDecisionDetailInner, __assign({}, props))));
};
var templateObject_1;
//# sourceMappingURL=AppealDecisionDetail.js.map