{
    "description": {
        "author": "Salesforce",
        "text": [
            "Component that displays a chat interface with header, drill-in container, and agentic shell.",
            "Selector: setup-agentic-setup-chat"
        ]
    },
    "selector": {
        "css": "setup-agentic-setup-chat"
    },
    "root": true,
    "beforeLoad": [
        {
            "apply": "waitFor",
            "args": [
                {
                    "type": "function",
                    "predicate": [
                        {
                            "element": "root",
                            "apply": "isPresent"
                        }
                    ]
                }
            ]
        }
    ],
    "shadow": {
        "elements": [
            {
                "name": "errorComponent",
                "selector": {
                    "css": "setup-agentic-setup-error"
                },
                "type": "utam-setup/pageObjects/agenticSetupError",
                "description": "Represents the error component displayed when there is an error.",
                "nullable": true,
                "public": true
            },
            {
                "name": "chatMessageContext",
                "selector": {
                    "css": "setup-agentic-chat-message-context"
                },
                "type": "utam-setup/pageObjects/agenticChatMessageContext",
                "description": "Represents the root context for the chat message functionality.",
                "public": true,
                "elements": [
                    {
                        "name": "flexBox",
                        "selector": {
                            "css": ".flex-box.chat-tab"
                        },
                        "description": "Represents the main container for the chat tab layout.",
                        "elements": [
                            {
                                "name": "spinnerOverlay",
                                "selector": {
                                    "css": ".spinner-overlay"
                                },
                                "description": "Represents the overlay containing the loading spinner",
                                "nullable": true,
                                "wait": true,
                                "elements": [
                                    {
                                        "name": "loadingSpinner",
                                        "selector": {
                                            "css": "lightning-spinner"
                                        },
                                        "type": "utam-lightning/pageObjects/spinner",
                                        "description": "Represents the loading spinner",
                                        "public": true,
                                        "wait": true
                                    }
                                ]
                            },
                            {
                                "name": "chatHeader",
                                "selector": {
                                    "css": "setup-agentic-setup-chat-header.topic"
                                },
                                "type": "utam-setup/pageObjects/agenticSetupChatHeader",
                                "description": "Represents the chat header when beta features are enabled.",
                                "nullable": true,
                                "public": true
                            },
                            {
                                "name": "tabsContainer",
                                "selector": {
                                    "css": ".tabs-container"
                                },
                                "description": "Represents the container for tabs or panels.",
                                "elements": [
                                    {
                                        "name": "drillInContainer",
                                        "selector": {
                                            "css": "setup-agentic-setup-drill-in-container.slds-grow"
                                        },
                                        "type": "utam-setup/pageObjects/agenticSetupDrillInContainer",
                                        "description": "Represents the container for drill-in functionality when beta features are enabled.",
                                        "nullable": true,
                                        "wait": true,
                                        "public": true
                                    }
                                ]
                            },
                            {
                                "name": "chatContainer",
                                "selector": {
                                    "css": ".chat-container"
                                },
                                "description": "Represents the container for chat input or shell",
                                "nullable": true,
                                "elements": [
                                    {
                                        "description": "Represents the runtime_copilot-agentic-shell component for chat.",
                                        "name": "agenticShell",
                                        "selector": {
                                            "css": "runtime_copilot-agentic-shell"
                                        },
                                        "shadow": {
                                            "elements": [
                                                {
                                                    "name": "agenticSetupBroker",
                                                    "selector": {
                                                        "css": "setup-agentic-setup-broker"
                                                    },
                                                    "type": "utam-setup/pageObjects/agenticSetupBroker",
                                                    "description": "Represents the message input component for chat.",
                                                    "nullable": true,
                                                    "public": true,
                                                    "wait": true
                                                }
                                            ]
                                        }
                                    }
                                ]
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "methods": [
        {
            "name": "isFlexBoxVisible",
            "description": {
                "text": [
                    "Check that the flexBox container is present and visible"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "flexBox",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "isSpinnerOverlayVisible",
            "description": {
                "text": [
                    "Check if spinner overlay is present and visible"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "spinnerOverlay",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "isTabsContainerVisible",
            "description": {
                "text": [
                    "Check that the tabs container is present and visible"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "tabsContainer",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "isChatContainerVisible",
            "description": {
                "text": [
                    "Check if chat container is present and visible"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "chatContainer",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "verifySpinnerOverlayPresence",
            "description": {
                "text": [
                    "Returns true if element \"spinnerOverlay\" present on the page"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "spinnerOverlay",
                    "matcher": {
                        "type": "notNull"
                    }
                }
            ]
        },
        {
            "name": "verifyChatContainerPresence",
            "description": {
                "text": [
                    "Returns true if element \"chatContainer\" present on the page"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "chatContainer",
                    "matcher": {
                        "type": "notNull"
                    }
                }
            ]
        }
    ]
}