WS_OK_7.4.33 HEX
HEX
Server: nginx/1.21.4
System: Linux v12674 6.8.0-85-generic #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025 x86_64
User: endtheignorance (1014)
PHP: 7.4.33
Disabled: exec,passthru,shell_exec,system,proc_open,popen,parse_ini_file,show_source
Upload Files
File: /storage/v12674/lcaliceaunties/public_html/wp-content/plugins/wp-google-maps/js/v8/accessibility.js
/**
 * @namespace WPGMZA
 * @module WPGMZA.Accessibility
 * @requires WPGMZA
 */
jQuery(function($) {
	
	/**
	 * Used to provide added accessibility tooling to better support WCAG
     * 
     * This covers things like document wide keyboard navigation within our modules, sidebar grouping expansion and so on
     * 
	 * @class WPGMZA.Accessibility
	 * @constructor WPGMZA.Accessibility
	 * @memberof WPGMZA
	 */
	WPGMZA.Accessibility = function() {
        this.bind();
		$(document.body).trigger("init.accessibility.wpgmza");
	}
	
	
	WPGMZA.Accessibility.createInstance = function() {
		return new WPGMZA.Accessibility();
	}

    WPGMZA.Accessibility.prototype.bind = function(){
        const ariaBridgeSelectors = ".wpgmza_map .wpgmza-aria-bridge, .wpgmza-standalone-component .wpgmza-aria-bridge";
        const ariaEventGroupings = {
            keydown : {
                keys : ["Enter"],
                prevent : [" "]
            },
            keyup : {
                keys : [" "]
            }
        }

        /* WCAG - Requires non-natice interactive elements to be opearable with enter and space */
        for(let event in ariaEventGroupings){
            const config = ariaEventGroupings[event];
            $(document.body).on(event, ariaBridgeSelectors, function(event){
                if(event && event.key){
                    if(config.keys && config.keys.indexOf(event.key) !== -1){
                        /* Prevent */
                        event.preventDefault();

                        /* Trigger a simulated click */
                        $(this).trigger('click');
                    }

                    if(config.prevent && config.prevent.indexOf(event.key) !== -1){
                        /* Prevent only*/
                        event.preventDefault();
                    }
                }
            });
        }

        /* Nested panel auto-open */
        $(document.body).on('focusin', '.wpgmza_map .grouping:not(.visible)', function(event) {
            $(this).parent().find('.grouping-handle .icon').click();
        });

        /* Allow Esc to close panels */
        $(document.body).on('keyup', '.wpgmza_map .grouping.visible', function(event) {
            if(event && event.key && event.key === "Escape"){
                $(this).parent().find('.grouping-handle .icon').click();
            }
        });
        
    }
});