function e(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(e="PRODUCTION"){switch(e){case"beta":case"test":return"TEST";default:return"PRODUCTION"}}function r(t,r){if(t)return function(t){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),o.forEach(function(r){e(t,r,n[r])})}return t}({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},r&&{firstName:t.name})}const n=["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 o(e=""){const t=e.toLowerCase().substring(0,2);return n.includes(t)?t:null}export{r as formatGooglePayContactToAdyenAddressFormat,o as getGooglePayLocale,t as resolveEnvironment};
//# sourceMappingURL=utils.js.map
