{
    "description": {
        "author": "Salesforce",
        "text": [
            "Component that supports objectType/custom type in the Confirm button flow for Agentforce.",
            "Renders setup-agentic-record-form in SUMMARY mode when beta is enabled and runtime_copilot_base-view-record-form when disabled.",
            "Selector: setup-record-output-object"
        ]
    },
    "shadow": {
        "elements": [
            {
                "name": "agenticRecordForm",
                "selector": {
                    "css": "setup-agentic-record-form"
                },
                "type": "utam-setup/pageObjects/agenticRecordForm",
                "description": "Represents the agentic record form component rendered in SUMMARY mode when beta feature is enabled",
                "nullable": true,
                "wait": true,
                "public": true
            },
            {
                "name": "viewRecordForm",
                "selector": {
                    "css": "runtime_copilot_base-view-record-form"
                },
                "type": "utam-runtime_copilot_base/pageObjects/viewRecordForm",
                "description": "Represents the base view record form component rendered in read-only mode when beta feature is disabled",
                "nullable": true,
                "wait": true,
                "public": true
            }
        ]
    },
    "methods": [
        {
            "name": "isAgenticRecordFormVisible",
            "description": {
                "text": [
                    "Check if agentic record form is present and visible (beta enabled, SUMMARY mode)"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "agenticRecordForm",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "isViewRecordFormVisible",
            "description": {
                "text": [
                    "Check if base view record form is present and visible (beta disabled, read-only)"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "viewRecordForm",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "verifyAgenticRecordFormPresence",
            "description": {
                "text": [
                    "Returns true if element \"agenticRecordForm\" is present on the page"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "agenticRecordForm",
                    "matcher": {
                        "type": "notNull"
                    }
                }
            ]
        },
        {
            "name": "verifyViewRecordFormPresence",
            "description": {
                "text": [
                    "Returns true if element \"viewRecordForm\" is present on the page"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "viewRecordForm",
                    "matcher": {
                        "type": "notNull"
                    }
                }
            ]
        }
    ]
}