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IAAA,GAAe;AAC/B,IAAA,OAAO,IAAA,CAAK,aAAY,CAAE,IAAA;AAAA,EAC5B;AAAA,EAEA,WAAkB,MAAA,GAAiB;AACjC,IAAA,OAAO,IAAA,CAAK,aAAY,CAAE,MAAA;AAAA,EAC5B;AAAA,EAEA,WAAkB,IAAA,GAAe;AAC/B,IAAA,OAAO,IAAA,CAAK,aAAY,CAAE,IAAA;AAAA,EAC5B;AAAA,EAEA,WAAkB,IAAA,GAAe;AAC/B,IAAA,OAAO,IAAA,CAAK,aAAY,CAAE,IAAA;AAAA,EAC5B;AAAA,EAEA,OAAc,WAAW,GAAA,EAAmB;AAC1C,IAAA,IAAA,CAAK,WAAA,EAAY,CAAE,MAAA,CAAO,GAAG,CAAA;AAAA,EAC/B;AAAA,EAEA,OAAe,WAAA,GAAwB;AACrC,IAAA,OAAO,MAAA,CAAO,QAAA;AAAA,EAChB;AACF","file":"index.cjs","sourcesContent":["/**\n * Validates whether the current environment is either development or test\n */\n// eslint-disable-next-line no-restricted-globals, n/prefer-global/process\nexport const isDevEnv = process.env.NODE_ENV === 'development' ? true : process.env.NODE_ENV === 'test';\n","/**\n * Validates whether the current environment is test\n */\n// eslint-disable-next-line no-restricted-globals, n/prefer-global/process\nexport const isTestEnv = process.env.NODE_ENV === 'test';\n","/**\n * @deprecated use `secondsToMilliseconds` function from `date-fns` instead\n */\nexport const SECOND = 1_000;\n/**\n * @deprecated use `minutesToMilliseconds` function from `date-fns` instead\n */\nexport const MINUTE = SECOND * 60;\n/**\n * @deprecated use `hoursToMilliseconds` function from `date-fns` instead\n */\nexport const HOUR = MINUTE * 60;\n/**\n * @deprecated use `hoursToMilliseconds` function from `date-fns` instead (multiply by 24)\n */\nexport const DAY = HOUR * 24;\n\n/**\n * @deprecated This is unused in our applications and marked for removal\n */\nexport const DAYS = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];\n/**\n * @deprecated This is unused in our applications and marked for removal\n */\nexport const MONTHS = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];\n/**\n * @deprecated This is unused in our applications and marked for removal\n */\nexport const DAYS_NL = ['Zondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrijdag', 'Zaterdag'];\n/**\n * @deprecated This is unused in our applications and marked for removal\n */\nexport const MONTHS_NL = ['Januari', 'Februari', 'Maart', 'April', 'Mei', 'Juni', 'July', 'Augustus', 'September', 'October', 'November', 'December'];\n","/**\n * @deprecated Use `window.location.<property>` directly instead.\n * This class was once implemented to make code testable by mocking the outputs,\n * this is no longer necessary when using Vitest where mocking the global window is just as easy.\n */\nexport class WindowLocationService {\n  public static get origin(): string {\n    return this.getLocation().origin;\n  }\n\n  public static get path(): string {\n    return this.getLocation().pathname;\n  }\n\n  public static get hash(): string {\n    return this.getLocation().hash;\n  }\n\n  public static get search(): string {\n    return this.getLocation().search;\n  }\n\n  public static get host(): string {\n    return this.getLocation().host;\n  }\n\n  public static get href(): string {\n    return this.getLocation().href;\n  }\n\n  public static redirectTo(url: string): void {\n    this.getLocation().assign(url);\n  }\n\n  private static getLocation(): Location {\n    return window.location;\n  }\n}\n"]}