{
    "description": {
        "author": "Salesforce",
        "text": [
            "Selector: .uiContainerManager",
            "Represents the ui:containerManager Aura component.",
            "Get the panel component."
        ]
    },
    "root": true,
    "selector": {
        "css": ".uiContainerManager"
    },
    "elements": [
        {
            "name": "panel",
            "type": "utam-aura/pageObjects/panel",
            "public": true,
            "selector": {
                "css": ".uiPanel"
            }
        },
        {
            "name": "activeModals",
            "type": "utam-aura/pageObjects/modal",
            "selector": {
                "css": ".uiModal.active",
                "returnAll": true
            }
        },
        {
            "name": "modalByIndex",
            "type": "utam-aura/pageObjects/modal",
            "public": true,
            "selector": {
                "css": ".uiModal.active:nth-of-type(%d)",
                "args": [
                    {
                        "name": "index",
                        "type": "number"
                    }
                ]
            }
        }
    ],
    "methods": [
        {
            "name": "getAllActiveModals",
            "description": {
                "text": [
                    "Gets the active modals"
                ],
                "return": "the active modals"
            },
            "compose": [
                {
                    "apply": "waitFor",
                    "args": [
                        {
                            "type": "function",
                            "predicate": [
                                {
                                    "element": "activeModals"
                                }
                            ]
                        }
                    ]
                }
            ]
        }
    ]
}