"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.d = (exports1, definition)=>{
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
})();
(()=>{
    __webpack_require__.r = (exports1)=>{
        if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
            value: 'Module'
        });
        Object.defineProperty(exports1, '__esModule', {
            value: true
        });
    };
})();
var __webpack_exports__ = {};
__webpack_require__.r(__webpack_exports__);
__webpack_require__.d(__webpack_exports__, {
    BuiltInToolType: ()=>BuiltInToolType,
    DefaultAgentNodeTranslations: ()=>DefaultAgentNodeTranslations,
    DefaultCanvasTranslations: ()=>DefaultCanvasTranslations,
    DefaultCodedAgentNodeTranslations: ()=>DefaultCodedAgentNodeTranslations,
    DefaultResourceNodeTranslations: ()=>DefaultResourceNodeTranslations,
    DefaultStickyNoteNodeTranslations: ()=>DefaultStickyNoteNodeTranslations,
    DefaultSuggestionTranslations: ()=>DefaultSuggestionTranslations,
    ProjectType: ()=>ProjectType,
    createPlaceholderSuggestion: ()=>createPlaceholderSuggestion,
    isAgentFlowAgentNode: ()=>isAgentFlowAgentNode,
    isAgentFlowResourceNode: ()=>isAgentFlowResourceNode,
    isStickyNoteNode: ()=>isStickyNoteNode
});
let ProjectType = /*#__PURE__*/ function(ProjectType) {
    ProjectType["Agent"] = "Agent";
    ProjectType["Api"] = "Api";
    ProjectType["Rpa"] = "Rpa";
    ProjectType["Process"] = "Process";
    ProjectType["ProcessOrchestration"] = "ProcessOrchestration";
    ProjectType["Integration"] = "Integration";
    ProjectType["IXP"] = "IXP";
    ProjectType["Internal"] = "Internal";
    return ProjectType;
}({});
let BuiltInToolType = /*#__PURE__*/ function(BuiltInToolType) {
    BuiltInToolType["AnalyzeAttachments"] = "AnalyzeAttachments";
    BuiltInToolType["BatchTransform"] = "BatchTransform";
    BuiltInToolType["DeepRAG"] = "DeepRAG";
    BuiltInToolType["LoadAttachments"] = "LoadAttachments";
    return BuiltInToolType;
}({});
const isAgentFlowAgentNode = (node)=>'agent' === node.type;
const isAgentFlowResourceNode = (node)=>'resource' === node.type;
const isStickyNoteNode = (node)=>'stickyNote' === node.type;
const DefaultAgentNodeTranslations = {
    arguments: 'Arguments',
    input: 'Input',
    output: 'Output',
    user: 'User',
    system: 'System',
    autonomousAgent: 'Autonomous Agent',
    codedAgent: 'Coded Agent',
    conversationalAgent: 'Conversational Agent',
    escalations: 'Escalations',
    model: 'Model',
    context: 'Context',
    tools: 'Tools',
    memory: 'Memory',
    instructions: 'Instructions',
    addInstructions: 'Add Instructions',
    agentSettings: 'Agent Settings',
    readOnlyPreview: 'Read-only preview',
    systemPrompt: 'System prompt',
    userPrompt: 'User prompt',
    temperature: 'Temperature',
    maxTokens: 'Max tokens',
    maxIterations: 'Max iterations',
    notConfigured: 'Not configured'
};
const DefaultResourceNodeTranslations = {
    moreOptions: 'More options',
    enable: 'Enable',
    disable: 'Disable',
    expand: 'Expand',
    collapse: 'Collapse',
    remove: 'Remove',
    addBreakpoint: 'Add breakpoint',
    removeBreakpoint: 'Remove breakpoint',
    addGuardrail: 'Add guardrail',
    guardrailsApplied: 'Guardrail(s) applied',
    goToSource: 'Go to source'
};
const DefaultCodedAgentNodeTranslations = {
    codedAgentStep: 'Coded Agent Step',
    noDataToDisplay: 'No data to display'
};
const DefaultStickyNoteNodeTranslations = {
    placeholder: '# Add a Note\n\nUse notes to describe canvas areas and explain the purpose of each tool to organize your agent flow.\n\n*Supports Markdown formatting.*\n\n[Learn more](https://docs.uipath.com)'
};
const DefaultCanvasTranslations = {
    panShortcutTeaching: 'Hold Space and drag to pan around the canvas',
    organize: 'Organize',
    zoomIn: 'Zoom in',
    zoomOut: 'Zoom out',
    zoomToFit: 'Zoom to fit',
    addNote: 'Add note'
};
const DefaultSuggestionTranslations = {
    accept: 'Accept',
    reject: 'Reject',
    acceptAll: 'Accept all',
    rejectAll: 'Reject all'
};
function createPlaceholderSuggestion(partialResource, existingGroup, options) {
    if (!partialResource.type || !partialResource.id) throw new Error('partialResource must have at least type and id fields');
    const fullResource = {
        type: partialResource.type,
        id: partialResource.id,
        name: partialResource.name || `New ${partialResource.type}`,
        description: partialResource.description || '',
        ...partialResource
    };
    const newSuggestion = {
        id: `suggestion-${partialResource.id}`,
        type: 'add',
        resource: fullResource,
        isStandalone: options?.isStandalone ?? false
    };
    if (existingGroup) return {
        ...existingGroup,
        suggestions: [
            ...existingGroup.suggestions,
            newSuggestion
        ]
    };
    return {
        id: `placeholder-group-${Date.now()}`,
        suggestions: [
            newSuggestion
        ],
        metadata: {
            title: 'New Resource',
            description: 'Complete the resource details or remove'
        }
    };
}
exports.BuiltInToolType = __webpack_exports__.BuiltInToolType;
exports.DefaultAgentNodeTranslations = __webpack_exports__.DefaultAgentNodeTranslations;
exports.DefaultCanvasTranslations = __webpack_exports__.DefaultCanvasTranslations;
exports.DefaultCodedAgentNodeTranslations = __webpack_exports__.DefaultCodedAgentNodeTranslations;
exports.DefaultResourceNodeTranslations = __webpack_exports__.DefaultResourceNodeTranslations;
exports.DefaultStickyNoteNodeTranslations = __webpack_exports__.DefaultStickyNoteNodeTranslations;
exports.DefaultSuggestionTranslations = __webpack_exports__.DefaultSuggestionTranslations;
exports.ProjectType = __webpack_exports__.ProjectType;
exports.createPlaceholderSuggestion = __webpack_exports__.createPlaceholderSuggestion;
exports.isAgentFlowAgentNode = __webpack_exports__.isAgentFlowAgentNode;
exports.isAgentFlowResourceNode = __webpack_exports__.isAgentFlowResourceNode;
exports.isStickyNoteNode = __webpack_exports__.isStickyNoteNode;
for(var __rspack_i in __webpack_exports__)if (-1 === [
    "BuiltInToolType",
    "DefaultAgentNodeTranslations",
    "DefaultCanvasTranslations",
    "DefaultCodedAgentNodeTranslations",
    "DefaultResourceNodeTranslations",
    "DefaultStickyNoteNodeTranslations",
    "DefaultSuggestionTranslations",
    "ProjectType",
    "createPlaceholderSuggestion",
    "isAgentFlowAgentNode",
    "isAgentFlowResourceNode",
    "isStickyNoteNode"
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
Object.defineProperty(exports, '__esModule', {
    value: true
});
