import { TopUpProvider } from '../models/TopUpProvider';
var TopUpProviderSupportService = /** @class */ (function () {
    function TopUpProviderSupportService(countries) {
        this.countries = countries;
    }
    TopUpProviderSupportService.prototype.checkRampSupport = function (countryName) {
        var country = this.countries.find(function (_a) {
            var name = _a.name;
            return name === countryName;
        });
        return !!country && country.isEU;
    };
    TopUpProviderSupportService.prototype.checkSafelloSupport = function (countryName) {
        var scandinavianCountries = ['Denmark', 'Sweden', 'Norway'];
        return scandinavianCountries.includes(countryName);
    };
    TopUpProviderSupportService.prototype.checkWyreSupport = function (countryName) {
        return countryName === 'United States';
    };
    TopUpProviderSupportService.prototype.getProviders = function (countryName) {
        var providers = [];
        this.checkRampSupport(countryName) && providers.push(TopUpProvider.RAMP);
        this.checkSafelloSupport(countryName) && providers.push(TopUpProvider.SAFELLO);
        this.checkWyreSupport(countryName) && providers.push(TopUpProvider.WYRE);
        return providers;
    };
    TopUpProviderSupportService.prototype.isInputAmountUsed = function (topUpProvider) {
        return !!topUpProvider && [TopUpProvider.RAMP].includes(topUpProvider);
    };
    return TopUpProviderSupportService;
}());
export { TopUpProviderSupportService };
//# sourceMappingURL=TopUpProviderSupportService.js.map