function t(t="PRODUCTION"){switch(t){case"beta":case"test":return"TEST";default:return"PRODUCTION"}}function e(t,e){if(t)return{postalCode:t.postalCode,country:t.countryCode,street:[t.address1,t.address2,t.address3].join(" ").trim(),houseNumberOrName:"ZZ",city:t.locality||"",...t.administrativeArea&&{stateOrProvince:t.administrativeArea},...e&&{firstName:t.name}}}const r=["en","ar","bg","ca","cs","da","de","el","es","et","fi","fr","hr","id","it","ja","ko","ms","nl","no","pl","pt","ru","sk","sl","sr","sv","th","tr","uk","zh"];function s(t=""){const e=t.toLowerCase().substring(0,2);return r.includes(e)?e:null}export{e as formatGooglePayContactToAdyenAddressFormat,s as getGooglePayLocale,t as resolveEnvironment};
//# sourceMappingURL=utils.js.map
