UNPKG

@adyen/adyen-platform-experience-web

Version:

![Platform Experience header](https://github.com/Adyen/adyen-platform-experience-web/assets/7926613/18094965-9e01-450e-8dc9-ea84e6b22c2b)

28 lines (27 loc) 828 B
const A = /GMT(?:[-+](?:0?\d|1[0-4])(?::?[0-5]\d)?)?$/, { BASE_FORMAT_OPTIONS: I, BASE_LOCALE: N, SYSTEM_TIMEZONE: c, SYSTEM_TIMEZONE_FORMATTER: s } = (() => { const S = "en-US", T = "2-digit", t = "numeric", _ = Object.freeze({ year: t, month: "short", day: t, hour: T, minute: T, second: T, fractionalSecondDigits: 3, timeZoneName: "longOffset" // should not be changed — needed for the tz offsets regexp }); let E, O; try { O = new Intl.DateTimeFormat(S, _), E = O.resolvedOptions().timeZone; } catch { E = void 0; } return { BASE_FORMAT_OPTIONS: _, BASE_LOCALE: S, SYSTEM_TIMEZONE: E, SYSTEM_TIMEZONE_FORMATTER: O }; })(); export { I as BASE_FORMAT_OPTIONS, N as BASE_LOCALE, A as REGEX_TZ_OFFSET, c as SYSTEM_TIMEZONE, s as SYSTEM_TIMEZONE_FORMATTER };