import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
import { AgentSharingSection } from "../../AgentSharingSection";
import { AgentProfileModelSettingsSection } from "./AgentProfileModelSettingsSection";
import { AgentSkillSettingsSection } from "./AgentSkillSettingsSection";
import { AgentAllowancesSection, AgentAvailableToolsSection, AgentSubscribedTriggersSection, } from "./AgentSettingsSections";
export function AgentSettingsContent({ agentId, isLocalOnlyDraftAgent, readOnly, profiles, activeProfile, profileOptions, selectedModelId, modelOptions, onProfileChange, onModelChange, onOpenProfileSettings, showSkillPicker, onShowSkillPickerChange, skillRootIds, selectedSkillIds, selectableTemplateIdSet, manuallyAssignableSkillIdSet, selectedSkills, autoAssignedSkillSet, skillsLoading, skillsError, skillActionError, profileFilteredSkills, onSkillActionErrorChange, onAddSkill, onOpenSkillItem, onRemoveSkill, toolsSectionExpanded, onToolsSectionExpandedChange, tools, toolsLoading, toolsError, allowancesSectionExpanded, onAllowancesSectionExpandedChange, allowancesTotalCount, allowancesLoading, allowancesError, hasAnyAllowances, allowanceGroups, subscribedTriggersSectionExpanded, onSubscribedTriggersSectionExpandedChange, activeTriggerSubscriptions, triggerSubscriptionsLoading, triggerSubscriptionsError, }) {
    return (_jsxs(_Fragment, { children: [_jsx(AgentProfileModelSettingsSection, { profiles: profiles, activeProfile: activeProfile, profileOptions: profileOptions, selectedModelId: selectedModelId, modelOptions: modelOptions, readOnly: readOnly, onProfileChange: onProfileChange, onModelChange: onModelChange, onOpenProfileSettings: onOpenProfileSettings }), _jsx(AgentSkillSettingsSection, { showSkillPicker: showSkillPicker, onShowSkillPickerChange: onShowSkillPickerChange, readOnly: readOnly, skillRootIds: skillRootIds, selectedSkillIds: selectedSkillIds, selectableTemplateIdSet: selectableTemplateIdSet, manuallyAssignableSkillIdSet: manuallyAssignableSkillIdSet, selectedSkills: selectedSkills, autoAssignedSkillSet: autoAssignedSkillSet, skillsLoading: skillsLoading, skillsError: skillsError, skillActionError: skillActionError, profileFilteredSkills: profileFilteredSkills, onSkillActionErrorChange: onSkillActionErrorChange, onAddSkill: onAddSkill, onOpenSkillItem: onOpenSkillItem, onRemoveSkill: onRemoveSkill }), _jsx(AgentAvailableToolsSection, { expanded: toolsSectionExpanded, onExpandedChange: onToolsSectionExpandedChange, tools: tools, loading: toolsLoading, error: toolsError, isLocalOnlyDraftAgent: isLocalOnlyDraftAgent }), _jsx(AgentAllowancesSection, { expanded: allowancesSectionExpanded, onExpandedChange: onAllowancesSectionExpandedChange, totalCount: allowancesTotalCount, loading: allowancesLoading, error: allowancesError, hasAnyAllowances: hasAnyAllowances, groups: allowanceGroups, isLocalOnlyDraftAgent: isLocalOnlyDraftAgent }), _jsx(AgentSubscribedTriggersSection, { expanded: subscribedTriggersSectionExpanded, onExpandedChange: onSubscribedTriggersSectionExpandedChange, subscriptions: activeTriggerSubscriptions, loading: triggerSubscriptionsLoading, error: triggerSubscriptionsError, isLocalOnlyDraftAgent: isLocalOnlyDraftAgent }), agentId && !isLocalOnlyDraftAgent ? (_jsx("div", { className: "border-border-default border-t pt-2", children: _jsx(AgentSharingSection, { agentId: agentId, canManage: !readOnly }) })) : null] }));
}
//# sourceMappingURL=AgentSettingsContent.js.map