{
    "description": {
        "author": "Salesforce",
        "text": [
            "Component that displays an error notification inside a Lightning Card with options to refresh or close the tab.",
            "Selector: setup-agentic-setup-error"
        ]
    },
    "shadow": {
        "elements": [
            {
                "name": "errorCard",
                "selector": {
                    "css": "lightning-card.agentic-setup-error"
                },
                "type": "utam-lightning/pageObjects/card",
                "description": "Represents the Lightning Card that contains the error notification",
                "public": true,
                "elements": [
                    {
                        "name": "errorNotification",
                        "selector": {
                            "css": "div.slds-scoped-notification"
                        },
                        "description": "Represents the error notification container with error text and icon",
                        "elements": [
                            {
                                "name": "errorIconContainer",
                                "selector": {
                                    "css": "span.slds-icon_container"
                                },
                                "description": "Represents the container for the error icon",
                                "elements": [
                                    {
                                        "name": "errorIcon",
                                        "selector": {
                                            "css": "lightning-icon"
                                        },
                                        "type": "utam-lightning/pageObjects/icon",
                                        "description": "Represents the Lightning Icon used to display the error icon",
                                        "public": true
                                    }
                                ]
                            },
                            {
                                "name": "errorText",
                                "selector": {
                                    "css": "div.error-text"
                                },
                                "description": "Represents the error text displayed in the notification"
                            }
                        ]
                    },
                    {
                        "name": "buttonContainer",
                        "selector": {
                            "css": "div.slds-align--absolute-center"
                        },
                        "description": "Represents the container for the action buttons",
                        "elements": [
                            {
                                "name": "refreshButton",
                                "selector": {
                                    "css": "lightning-button.slds-m-right_small"
                                },
                                "type": "utam-lightning/pageObjects/button",
                                "description": "Represents the Refresh button that triggers a tab refresh",
                                "public": true
                            },
                            {
                                "name": "closeButton",
                                "selector": {
                                    "css": "lightning-button:not(.slds-m-right_small)"
                                },
                                "type": "utam-lightning/pageObjects/button",
                                "description": "Represents the Close button that triggers a tab close",
                                "public": true
                            }
                        ]
                    }
                ]
            }
        ]
    },
    "methods": [
        {
            "name": "isErrorNotificationVisible",
            "description": {
                "text": [
                    "Check if the error notification container is present and visible"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "errorNotification",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "isErrorIconContainerVisible",
            "description": {
                "text": [
                    "Check if the error icon container is present and visible"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "errorIconContainer",
                    "apply": "isVisible"
                }
            ]
        },
        {
            "name": "getErrorText",
            "description": {
                "text": [
                    "Get the error message text from the notification"
                ],
                "return": "string"
            },
            "compose": [
                {
                    "element": "errorText",
                    "apply": "getText"
                }
            ]
        },
        {
            "name": "isButtonContainerVisible",
            "description": {
                "text": [
                    "Check if the button container is present and visible"
                ],
                "return": "boolean"
            },
            "compose": [
                {
                    "element": "buttonContainer",
                    "apply": "isVisible"
                }
            ]
        }
    ]
}