;(function ($, window, document, undefined) {
    $.imageMapProCountriesGetList = function() {
        return [
            {
                value: 'africa',
                title: 'Africa'
            },
            {
                value: 'argentina',
                title: 'Argentina'
            },
            {
                value: 'asia',
                title: 'Asia'
            },
            {
                value: 'australia',
                title: 'Australia'
            },
            {
                value: 'austria',
                title: 'Austria'
            },
            {
                value: 'bangladesh',
                title: 'Bangladesh'
            },
            {
                value: 'belgium',
                title: 'Belgium'
            },
            {
                value: 'brazil',
                title: 'Brazil'
            },
            {
                value: 'bulgaria',
                title: 'Bulgaria'
            },
            {
                value: 'canada',
                title: 'Canada'
            },
            {
                value: 'chile',
                title: 'Chile'
            },
            {
                value: 'china',
                title: 'China'
            },
            {
                value: 'colombia',
                title: 'Colombia'
            },
            {
                value: 'croatia',
                title: 'Croatia'
            },
            {
                value: 'czech-republic',
                title: 'Czech Republic'
            },
            {
                value: 'denmark',
                title: 'Denmark'
            },
            {
                value: 'egypt',
                title: 'Egypt'
            },
            {
                value: 'england',
                title: 'England'
            },
            {
                value: 'estonia',
                title: 'Estonia'
            },
            {
                value: 'europe',
                title: 'Europe'
            },
            {
                value: 'finland',
                title: 'Finland'
            },
            {
                value: 'france',
                title: 'France'
            },
            {
                value: 'germany',
                title: 'Germany'
            },
            {
                value: 'greece',
                title: 'Greece'
            },
            {
                value: 'hong-kong',
                title: 'Hong Kong'
            },
            {
                value: 'hungary',
                title: 'Hungary'
            },
            {
                value: 'india',
                title: 'India'
            },
            {
                value: 'indonesia',
                title: 'Indonesia'
            },
            {
                value: 'israel',
                title: 'Israel'
            },
            {
                value: 'italy',
                title: 'Italy'
            },
            {
                value: 'japan',
                title: 'Japan'
            },
            {
                value: 'lithuania',
                title: 'Lithuania'
            },
            {
                value: 'malaysia',
                title: 'Malaysia'
            },
            {
                value: 'mexico',
                title: 'Mexico'
            },
            {
                value: 'morocco',
                title: 'Morocco'
            },
            {
                value: 'netherlands',
                title: 'Netherlands'
            },
            {
                value: 'new-zealand',
                title: 'New Zealand'
            },
            {
                value: 'north-america',
                title: 'North America'
            },
            {
                value: 'northern-ireland',
                title: 'Northern Ireland'
            },
            {
                value: 'norway',
                title: 'Norway'
            },
            {
                value: 'oceania',
                title: 'Oceania'
            },
            {
                value: 'pakistan',
                title: 'Pakistan'
            },
            {
                value: 'peru',
                title: 'Peru'
            },
            {
                value: 'philippines',
                title: 'Philippines'
            },
            {
                value: 'poland',
                title: 'Poland'
            },
            {
                value: 'portugal',
                title: 'Portugal'
            },
            {
                value: 'romania',
                title: 'Romania'
            },
            {
                value: 'russia',
                title: 'Russia'
            },
            {
                value: 'saudi-arabia',
                title: 'Saudi Arabia'
            },
            {
                value: 'scotland',
                title: 'Scotland'
            },
            {
                value: 'serbia',
                title: 'Serbia'
            },
            {
                value: 'singapore',
                title: 'Singapore'
            },
            {
                value: 'slovakia',
                title: 'Slovakia'
            },
            {
                value: 'slovenia',
                title: 'Slovenia'
            },
            {
                value: 'south-africa',
                title: 'South Africa'
            },
            {
                value: 'south-america',
                title: 'South America'
            },
            {
                value: 'south-korea',
                title: 'South Korea'
            },
            {
                value: 'spain',
                title: 'Spain'
            },
            {
                value: 'sweden',
                title: 'Sweden'
            },
            {
                value: 'switzerland',
                title: 'Switzerland'
            },
            {
                value: 'thailand',
                title: 'Thailand'
            },
            {
                value: 'turkey',
                title: 'Turkey'
            },
            {
                value: 'ukraine',
                title: 'Ukraine'
            },
            {
                value: 'united-arab-emirates',
                title: 'United Arab Emirates'
            },
            {
                value: 'united-kingdom',
                title: 'United Kingdom'
            },
            {
                value: 'united-states',
                title: 'United States'
            },
            {
                value: 'vietnam',
                title: 'Vietnam'
            },
            {
                value: 'wales',
                title: 'Wales'
            },
            {
                value: 'world',
                title: 'World'
            },
        ]
    };

    $.imageMapProCountriesGetCountrySVG = function(countryName, callback) {
        // Get country SVG with ajax
        var data = {
            action: 'image_map_pro_get_country_svg',
            countryName: countryName
        };
		$.ajax({
			type: 'POST',
            url: ajaxurl,
            data: data
		}).done(function(res) {
			callback(res);
		});
    };
})(jQuery, window, document);