vendor/flag/country-flag.js
/**
     * @private
     * @param {CountryFlagTuple} country
     * @return {Number} the ISO numeric code of the selected country
     */
@private
@param {CountryFlagTuple} country
@return {Number} the ISO numeric code of the selected country
@private @param { CountryFlagTuple } country @return { Number } the ISO numeric code of the selected country
trySelectCountry(country) {
        if (country) {
            this.element.setAttribute("class", `flag flag-${country[CountryFlag.IDX_ALPHA2]}`);
            return country[CountryFlag.IDX_NUMERIC];
        } else {
            this.element.setAttribute("class", "");
            return 0;
        }
    }
trySelectCountry ( country ) { if ( country ) { this . element . setAttribute ( "class" , ` ${ country [ CountryFlag . IDX_ALPHA2 ] } ` ) ; return country [ CountryFlag . IDX_NUMERIC ] ; } else { this . element . setAttribute ( "class" , "" ) ; return 0 ; } }
@private
 @param {CountryFlagTuple} country
 @return {Number} the ISO numeric code of the selected country
@private @param { CountryFlagTuple } country @return { Number } the ISO numeric code of the selected country