"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;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ChatbotWelcomePrompt = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_core_1 = require("@patternfly/react-core");
const ChatbotWelcomePrompt = (_a) => {
    var { title, description, prompts, className, testId, isCompact = false } = _a, props = __rest(_a, ["title", "description", "prompts", "className", "testId", "isCompact"]);
    return ((0, jsx_runtime_1.jsxs)("div", Object.assign({ "data-testid": testId, className: `pf-chatbot--layout--welcome ${isCompact ? 'pf-m-compact' : ''} ${className !== null && className !== void 0 ? className : ''}` }, props, { children: [(0, jsx_runtime_1.jsxs)(react_core_1.Content, { component: react_core_1.ContentVariants.h1, children: [(0, jsx_runtime_1.jsx)("span", { className: "pf-chatbot__hello", children: title }), (0, jsx_runtime_1.jsx)("br", {}), (0, jsx_runtime_1.jsx)("span", { className: "pf-chatbot__question", children: description })] }), prompts && ((0, jsx_runtime_1.jsx)("div", { className: "pf-chatbot__prompt-suggestions", children: prompts === null || prompts === void 0 ? void 0 : prompts.map((prompt, index) => ((0, jsx_runtime_1.jsxs)(react_core_1.Card, { className: "pf-chatbot__prompt-suggestion", isClickable: true, isCompact: isCompact, children: [(0, jsx_runtime_1.jsx)(react_core_1.CardHeader, { selectableActions: {
                                onClickAction: prompt.onClick,
                                selectableActionId: `welcome-prompt-input-${index}`,
                                selectableActionAriaLabelledby: `welcome-prompt-title-${index}`
                            }, children: (0, jsx_runtime_1.jsx)(react_core_1.CardTitle, { id: `welcome-prompt-title-${index}`, children: prompt.title }) }), prompt.message && (0, jsx_runtime_1.jsx)(react_core_1.CardBody, { children: prompt.message })] }, `welcome-prompt-${index}`))) }))] })));
};
exports.ChatbotWelcomePrompt = ChatbotWelcomePrompt;
exports.default = exports.ChatbotWelcomePrompt;
