<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">define([], function () {
    'use strict';

    var animationMethodsMap = {
        'show': 'slideDown',
        'toggle-visibility': 'slideToggle'
    };

    return function (target, animationType, animationDuration, elementToFocusOnComplete) {
        var animationMethod = animationMethodsMap[animationType];

        if (animationMethod) {
            target[animationMethod](
                animationDuration,
                function ()
                {
                    if (elementToFocusOnComplete
                        &amp;&amp; target.is(':visible')
                    ) {
                        elementToFocusOnComplete.focus();
                    }
                }.bind({ target: target, elementToFocusOnComplete: elementToFocusOnComplete})
            );
            return true;
        }
        return false;
    };
});</pre></body></html>