{
    "root": true,
    "selector": {
        "css": "runtime_omnistudio-generated-omniscript"
    },
    "exposeRootElement": true,
    "beforeLoad": [
        {
            "apply": "waitFor",
            "args": [
                {
                    "type": "function",
                    "predicate": [
                        {
                            "element": "root",
                            "apply": "isPresent"
                        }
                    ]
                }
            ]
        }
    ],
    "shadow": {
        "elements": [
            {
                "name": "forcegeneratedOmniscriptModule",
                "public": false,
                "selector": {
                    "css": ".forcegenerated-omniscript-module"
                },
                "shadow": {
                    "elements": [
                        {
                            "name": "omniscriptContainer",
                            "public": true,
                            "type": "utam-omnistudio-omniscript/pageObjects/omniscriptContainer",
                            "selector": {
                                "css": "runtime_omnistudio_omniscript-omniscript-container"
                            }
                        }
                    ]
                }
            },
            {
                "name": "contentInsideShadow",
                "public": true,
                "type": "container",
                "selector": {
                    "css": "%s",
                    "args": [
                        {
                            "name": "cssString",
                            "type": "string"
                        }
                    ]
                }
            }
        ]
    },
    "methods": [
        {
            "name": "safeGetBody",
            "compose": [
                {
                    "apply": "waitForWrapperToLoad"
                },
                {
                    "element": "omniscriptContainer",
                    "apply": "waitForBodyToLoad",
                    "returnType": "utam-omnistudio-omniscript/pageObjects/body"
                }
            ]
        },
        {
            "name": "waitForWrapperToLoad",
            "compose": [
                {
                    "apply": "waitFor",
                    "args": [
                        {
                            "type": "function",
                            "predicate": [
                                {
                                    "element": "forcegeneratedOmniscriptModule"
                                }
                            ]
                        }
                    ]
                }
            ]
        },
        {
            "name": "getSteps",
            "compose": [
                {
                    "apply": "waitForWrapperToLoad"
                },
                {
                    "element": "omniscriptContainer",
                    "apply": "getSteps",
                    "returnType": "utam-omnistudio-omniscript/pageObjects/omniscriptStep",
                    "returnAll": true
                }
            ]
        },
        {
            "name": "getStep",
            "compose": [
                {
                    "element": "omniscriptContainer",
                    "apply": "getStep",
                    "returnType": "utam-omnistudio-omniscript/pageObjects/omniscriptStep",
                    "args": [
                        {
                            "name": "elementName",
                            "type": "string"
                        }
                    ]
                }
            ]
        },
        {
            "name": "getCurrentStep",
            "compose": [
                {
                    "apply": "waitForWrapperToLoad"
                },
                {
                    "element": "omniscriptContainer",
                    "apply": "getCurrentStep",
                    "returnType": "utam-omnistudio-omniscript/pageObjects/omniscriptStep"
                }
            ]
        },
        {
            "name": "getNextButton",
            "compose": [
                {
                    "apply": "waitForWrapperToLoad"
                },
                {
                    "element": "omniscriptContainer",
                    "apply": "getNextButton",
                    "returnType": "utam-lightning/pageObjects/button"
                }
            ]
        },
        {
            "name": "getPreviousButton",
            "compose": [
                {
                    "apply": "waitForWrapperToLoad"
                },
                {
                    "element": "omniscriptContainer",
                    "apply": "getPreviousButton",
                    "returnType": "utam-lightning/pageObjects/button"
                }
            ]
        },
        {
            "name": "getSaveForLaterButton",
            "compose": [
                {
                    "apply": "waitForWrapperToLoad"
                },
                {
                    "element": "omniscriptContainer",
                    "apply": "getSaveForLaterButton"
                }
            ]
        }
    ],
    "description": {
        "text": [
            " "
        ],
        "author": "Salesforce"
    }
}