"use strict";
var __rest = (this && this.__rest) || function (s, e) {
    var t = {};
    for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
        t[p] = s[p];
    if (s != null && typeof Object.getOwnPropertySymbols === "function")
        for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
            if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
                t[p[i]] = s[p[i]];
        }
    return t;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.BE_CONFIRMATION_COMMENTS_BLOCK = void 0;
exports.StepConfirmationCommentsComponent = StepConfirmationCommentsComponent;
const react_1 = __importDefault(require("react"));
const react_hook_form_1 = require("react-hook-form");
const react_i18next_1 = require("react-i18next");
const Translation_1 = require("translations/Translation");
const Headline_1 = __importDefault(require("../../generic/Headline"));
const LineBreak_1 = __importDefault(require("../../generic/LineBreak"));
const TextArea_1 = __importDefault(require("../../generic/TextArea"));
const DIProvider_1 = require("../../../providers/DIProvider");
const OriginalComponent = (_a) => {
    var rest = __rest(_a, []);
    const { t } = (0, react_i18next_1.useTranslation)();
    const { register } = (0, react_hook_form_1.useFormContext)();
    return (react_1.default.createElement(react_1.default.Fragment, null,
        react_1.default.createElement(LineBreak_1.default, null),
        react_1.default.createElement("div", { className: "u-marg-bottom--heavy" },
            react_1.default.createElement("div", { className: "u-marg-bottom" },
                react_1.default.createElement(Headline_1.default, { bold: true }, t(Translation_1.Translation.Step.Confirmation.Comments))),
            react_1.default.createElement(TextArea_1.default, Object.assign({}, rest, register('comments'), { placeholder: t(Translation_1.Translation.Step.Confirmation.Inputs.EnterSpecialRequestsHere) })))));
};
exports.BE_CONFIRMATION_COMMENTS_BLOCK = 'BEConfirmationCommentsBlock';
function StepConfirmationCommentsComponent(props) {
    return (0, DIProvider_1.withDI)(exports.BE_CONFIRMATION_COMMENTS_BLOCK, OriginalComponent, props);
}
//# sourceMappingURL=StepConfirmationCommentsComponent.js.map