@capsitech/react-utilities 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/README.md +74 -0
  2. package/lib/Components.d.ts +2 -0
  3. package/lib/Components.js +5 -0
  4. package/lib/Components.js.map +1 -0
  5. package/lib/Hooks/index.d.ts +2 -2
  6. package/lib/Hooks/useInfiniteScroll.d.ts +1 -1
  7. package/lib/Hooks.d.ts +2 -0
  8. package/lib/Hooks.js +67 -0
  9. package/lib/Hooks.js.map +1 -0
  10. package/lib/Utilities/ApiUtility.axios.d.ts +16 -3
  11. package/lib/Utilities/RouteUtils.d.ts +1 -1
  12. package/lib/Utilities/Utils.d.ts +1 -1
  13. package/lib/Utilities/dayjs.d.ts +10 -11
  14. package/lib/Utilities.d.ts +2 -0
  15. package/lib/Utilities.js +54 -0
  16. package/lib/Utilities.js.map +1 -0
  17. package/lib/dayjs-aKjfjjRl.mjs +605 -0
  18. package/lib/dayjs-aKjfjjRl.mjs.map +1 -0
  19. package/lib/index.js +72 -3
  20. package/lib/index.js.map +1 -0
  21. package/lib/logo.png +0 -0
  22. package/lib/src/Components/SuspenseRoute.d.ts +2 -0
  23. package/lib/src/Components/SuspenseRoute.js +22 -0
  24. package/lib/src/Components/SuspenseRoute.js.map +1 -0
  25. package/lib/src/Components/index.d.ts +2 -0
  26. package/lib/src/Components/index.js +5 -0
  27. package/lib/src/Components/index.js.map +1 -0
  28. package/lib/src/Hooks/index.d.ts +2 -0
  29. package/lib/src/Hooks/index.js +20 -0
  30. package/lib/src/Hooks/index.js.map +1 -0
  31. package/lib/src/Hooks/useInfiniteScroll.d.ts +2 -0
  32. package/lib/src/Hooks/useInfiniteScroll.js +20 -0
  33. package/lib/src/Hooks/useInfiniteScroll.js.map +1 -0
  34. package/lib/src/Hooks/useNetworkState.d.ts +2 -0
  35. package/lib/src/Hooks/useNetworkState.js +33 -0
  36. package/lib/src/Hooks/useNetworkState.js.map +1 -0
  37. package/lib/src/Hooks/useShortcuts.d.ts +2 -0
  38. package/lib/src/Hooks/useShortcuts.js +43 -0
  39. package/lib/src/Hooks/useShortcuts.js.map +1 -0
  40. package/lib/src/Utilities/ApiUtility.axios.d.ts +2 -0
  41. package/lib/src/Utilities/ApiUtility.axios.js +222 -0
  42. package/lib/src/Utilities/ApiUtility.axios.js.map +1 -0
  43. package/lib/src/Utilities/BrowserInfo.d.ts +2 -0
  44. package/lib/src/Utilities/BrowserInfo.js +51 -0
  45. package/lib/src/Utilities/BrowserInfo.js.map +1 -0
  46. package/lib/src/Utilities/Countries.d.ts +2 -0
  47. package/lib/src/Utilities/Countries.js +512 -0
  48. package/lib/src/Utilities/Countries.js.map +1 -0
  49. package/lib/src/Utilities/CustomEventEmitter.d.ts +2 -0
  50. package/lib/src/Utilities/CustomEventEmitter.js +24 -0
  51. package/lib/src/Utilities/CustomEventEmitter.js.map +1 -0
  52. package/lib/src/Utilities/FastCompare.d.ts +2 -0
  53. package/lib/src/Utilities/FastCompare.js +56 -0
  54. package/lib/src/Utilities/FastCompare.js.map +1 -0
  55. package/lib/src/Utilities/HideablePromise.d.ts +2 -0
  56. package/lib/src/Utilities/HideablePromise.js +12 -0
  57. package/lib/src/Utilities/HideablePromise.js.map +1 -0
  58. package/lib/src/Utilities/LoadScripts.d.ts +2 -0
  59. package/lib/src/Utilities/LoadScripts.js +26 -0
  60. package/lib/src/Utilities/LoadScripts.js.map +1 -0
  61. package/lib/src/Utilities/MTDFraudPrevention.d.ts +2 -0
  62. package/lib/src/Utilities/MTDFraudPrevention.js +60 -0
  63. package/lib/src/Utilities/MTDFraudPrevention.js.map +1 -0
  64. package/lib/src/Utilities/Nationalities.d.ts +2 -0
  65. package/lib/src/Utilities/Nationalities.js +250 -0
  66. package/lib/src/Utilities/Nationalities.js.map +1 -0
  67. package/lib/src/Utilities/RouteUtils.d.ts +2 -0
  68. package/lib/src/Utilities/RouteUtils.js +192 -0
  69. package/lib/src/Utilities/RouteUtils.js.map +1 -0
  70. package/lib/src/Utilities/TimeZones.d.ts +2 -0
  71. package/lib/src/Utilities/TimeZones.js +1074 -0
  72. package/lib/src/Utilities/TimeZones.js.map +1 -0
  73. package/lib/src/Utilities/Types.d.ts +1 -0
  74. package/lib/src/Utilities/Types.js +2 -0
  75. package/lib/src/Utilities/Types.js.map +1 -0
  76. package/lib/src/Utilities/Utils.d.ts +2 -0
  77. package/lib/src/Utilities/Utils.js +271 -0
  78. package/lib/src/Utilities/Utils.js.map +1 -0
  79. package/lib/src/Utilities/dayjs.d.ts +2 -0
  80. package/lib/src/Utilities/dayjs.js +6 -0
  81. package/lib/src/Utilities/dayjs.js.map +1 -0
  82. package/lib/src/Utilities/index.d.ts +2 -0
  83. package/lib/src/Utilities/index.js +54 -0
  84. package/lib/src/Utilities/index.js.map +1 -0
  85. package/package.json +42 -7
  86. package/lib/Components/SuspenseRoute.js +0 -29
  87. package/lib/Components/index.js +0 -1
  88. package/lib/Hooks/index.js +0 -98
  89. package/lib/Hooks/useInfiniteScroll.js +0 -22
  90. package/lib/Hooks/useNetworkState.js +0 -41
  91. package/lib/Hooks/useShortcuts.js +0 -91
  92. package/lib/Utilities/ApiUtility.axios.js +0 -305
  93. package/lib/Utilities/BrowserInfo.js +0 -153
  94. package/lib/Utilities/Countries.js +0 -290
  95. package/lib/Utilities/CustomEventEmitter.js +0 -30
  96. package/lib/Utilities/FastCompare.js +0 -128
  97. package/lib/Utilities/HideablePromise.js +0 -10
  98. package/lib/Utilities/LoadScripts.js +0 -51
  99. package/lib/Utilities/MTDFraudPrevention.js +0 -157
  100. package/lib/Utilities/Nationalities.js +0 -245
  101. package/lib/Utilities/RouteUtils.js +0 -223
  102. package/lib/Utilities/TimeZones.js +0 -1069
  103. package/lib/Utilities/Types.js +0 -1
  104. package/lib/Utilities/Utils.js +0 -331
  105. package/lib/Utilities/dayjs.js +0 -56
  106. package/lib/Utilities/index.js +0 -14
package/README.md CHANGED
@@ -1,3 +1,77 @@
1
1
  # `Capsitech.ReactUtilities`
2
2
 
3
3
  A set of javascript utility methods
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @capsitech/react-utilities
9
+ # or
10
+ yarn add @capsitech/react-utilities
11
+ ```
12
+
13
+ ## ApiUtility Configuration
14
+
15
+ The `ApiUtility` now supports flexible configuration for different deployment environments.
16
+
17
+ ### Quick Start
18
+
19
+ ```typescript
20
+ import { ApiUtility } from '@capsitech/react-utilities';
21
+
22
+ // Configure once at app startup
23
+ ApiUtility.configure({
24
+ baseURL: 'https://api.yourapp.com',
25
+ });
26
+
27
+ // Use throughout your app
28
+ const users = await ApiUtility.getResult('/users');
29
+ ```
30
+
31
+ ### Configuration Options
32
+
33
+ ```typescript
34
+ import { ApiUtility, IApiUtilityConfig } from '@capsitech/react-utilities';
35
+
36
+ const config: IApiUtilityConfig = {
37
+ baseURL: 'https://api.example.com', // Base URL for all API calls
38
+ accessToken: 'your-jwt-token', // JWT token for authorization
39
+ handleError: (error, errors) => {
40
+ // Custom error handler
41
+ console.error('API Error:', error);
42
+ },
43
+ };
44
+
45
+ ApiUtility.configure(config);
46
+ ```
47
+
48
+ ### Environment Integration
49
+
50
+ #### Next.js
51
+
52
+ ```typescript
53
+ // In your _app.tsx or layout.tsx
54
+ ApiUtility.configure({
55
+ baseURL: process.env.NEXT_PUBLIC_API_URL,
56
+ });
57
+ ```
58
+
59
+ #### Vite
60
+
61
+ ```typescript
62
+ // In your main.tsx
63
+ ApiUtility.configure({
64
+ baseURL: import.meta.env.VITE_API_URL,
65
+ });
66
+ ```
67
+
68
+ #### Create React App
69
+
70
+ ```typescript
71
+ // In your index.tsx
72
+ ApiUtility.configure({
73
+ baseURL: process.env.REACT_APP_API_URL,
74
+ });
75
+ ```
76
+
77
+ For more detailed configuration examples, see [API_CONFIGURATION.md](./docs/API_CONFIGURATION.md).
@@ -0,0 +1,2 @@
1
+ export * from './Components/index'
2
+ export {}
@@ -0,0 +1,5 @@
1
+ import { SuspenseRoute as p } from "./src/Components/SuspenseRoute.js";
2
+ export {
3
+ p as SuspenseRoute
4
+ };
5
+ //# sourceMappingURL=Components.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Components.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
@@ -1,4 +1,4 @@
1
- import { useEffect } from 'react';
1
+ import { useEffect, MutableRefObject } from 'react';
2
2
  export * from './useInfiniteScroll';
3
3
  export * from './useNetworkState';
4
4
  export * from './useShortcuts';
@@ -13,7 +13,7 @@ export declare const useUpdateEffect: typeof useEffect;
13
13
  *
14
14
  * @param value the value or function to persist
15
15
  */
16
- export declare function useLatestRef<T>(value: T): import("react").MutableRefObject<T>;
16
+ export declare function useLatestRef<T>(value: T): MutableRefObject<T>;
17
17
  /**
18
18
  * useCallbackRef hook
19
19
  *
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import { default as React } from 'react';
2
2
  /**
3
3
  * Infinite scrolling with intersection observer
4
4
  * @param scrollRef Reference object for observe bottom boundary
package/lib/Hooks.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './Hooks/index'
2
+ export {}
package/lib/Hooks.js ADDED
@@ -0,0 +1,67 @@
1
+ import { useRef as u, useEffect as n, useCallback as i } from "react";
2
+ import { useInfiniteScroll as b } from "./src/Hooks/useInfiniteScroll.js";
3
+ import { isBrowser as R, isNavigator as x, useNetworkState as C } from "./src/Hooks/useNetworkState.js";
4
+ import { disabledEventPropagation as E, useShortcuts as T } from "./src/Hooks/useShortcuts.js";
5
+ const a = (t, r) => {
6
+ const e = u(!1);
7
+ return n(() => {
8
+ if (e.current)
9
+ return t();
10
+ e.current = !0;
11
+ }, r), e.current;
12
+ };
13
+ function c(t) {
14
+ const r = u(t);
15
+ return n(() => {
16
+ r.current = t;
17
+ }, [t]), r;
18
+ }
19
+ const l = (t) => {
20
+ const r = u(t);
21
+ return n(() => {
22
+ r.current = t;
23
+ }), i(
24
+ ((...e) => r.current?.(...e)),
25
+ []
26
+ );
27
+ }, m = () => {
28
+ const t = u(!0);
29
+ return t.current ? (t.current = !1, !0) : t.current;
30
+ };
31
+ function p(t, r) {
32
+ const e = c(t);
33
+ n(() => {
34
+ const s = () => {
35
+ e.current?.();
36
+ };
37
+ if (r !== null) {
38
+ const o = setInterval(s, r);
39
+ return () => clearInterval(o);
40
+ }
41
+ }, [r, e]);
42
+ }
43
+ function d(t, r) {
44
+ const e = c(t);
45
+ n(() => {
46
+ if (r == null) return;
47
+ const s = setTimeout(() => {
48
+ e.current?.();
49
+ }, r);
50
+ return () => clearTimeout(s);
51
+ }, [r, e]);
52
+ }
53
+ export {
54
+ E as disabledEventPropagation,
55
+ R as isBrowser,
56
+ x as isNavigator,
57
+ l as useCallbackRef,
58
+ m as useFirstRenderState,
59
+ b as useInfiniteScroll,
60
+ p as useInterval,
61
+ c as useLatestRef,
62
+ C as useNetworkState,
63
+ T as useShortcuts,
64
+ d as useTimeout,
65
+ a as useUpdateEffect
66
+ };
67
+ //# sourceMappingURL=Hooks.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Hooks.js","sources":["../src/Hooks/index.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\r\n\r\nexport * from './useInfiniteScroll';\r\nexport * from './useNetworkState';\r\nexport * from './useShortcuts';\r\n\r\n/**\r\n * React effect hook that invokes only on update.\r\n * It doesn't invoke on mount\r\n */\r\nexport const useUpdateEffect: typeof useEffect = (effect, deps) => {\r\n const mounted = useRef(false);\r\n\r\n useEffect(() => {\r\n if (mounted.current) {\r\n return effect();\r\n }\r\n mounted.current = true;\r\n return undefined;\r\n // eslint-disable-next-line react-hooks/exhaustive-deps\r\n }, deps);\r\n\r\n return mounted.current;\r\n};\r\n\r\n/**\r\n * React hook to persist any value between renders,\r\n * but keeps it up-to-date if it changes.\r\n *\r\n * @param value the value or function to persist\r\n */\r\nexport function useLatestRef<T>(value: T) {\r\n const ref = useRef(value);\r\n\r\n useEffect(() => {\r\n ref.current = value;\r\n }, [value]);\r\n\r\n return ref;\r\n}\r\n\r\n/**\r\n * useCallbackRef hook\r\n *\r\n * A custom hook that converts a callback to a ref to avoid triggering re-renders\r\n * ..when passed as a prop or avoid re-executing effects when passed as a dependency\r\n *\r\n * @param callback The callback to write to a ref object\r\n */\r\nexport const useCallbackRef = <T extends (...args: any[]) => any>(callback: T | undefined): T => {\r\n const callbackRef = useRef(callback);\r\n\r\n useEffect(() => {\r\n callbackRef.current = callback;\r\n });\r\n\r\n return useCallback(\r\n ((...args) => {\r\n return callbackRef.current?.(...args);\r\n }) as T,\r\n []\r\n );\r\n};\r\n\r\n/**\r\n * useFirstRenderState hook\r\n *\r\n * Returns \"true\" if component is just mounted (first render), else \"false\".\r\n */\r\nexport const useFirstRenderState = (): boolean => {\r\n const isFirst = useRef(true);\r\n\r\n if (isFirst.current) {\r\n isFirst.current = false;\r\n return true;\r\n }\r\n\r\n return isFirst.current;\r\n};\r\n\r\n/**\r\n * React Hook that provides a declarative `setInterval`\r\n *\r\n * @param callback the callback to execute at interval\r\n * @param delay the `setInterval` delay (in ms)\r\n */\r\nexport function useInterval(callback: () => void, delay: number | null) {\r\n const savedCallback = useLatestRef(callback);\r\n\r\n useEffect(() => {\r\n const tick = () => {\r\n savedCallback.current?.();\r\n };\r\n if (delay !== null) {\r\n const id = setInterval(tick, delay);\r\n return () => clearInterval(id);\r\n }\r\n }, [delay, savedCallback]);\r\n}\r\n\r\n/**\r\n * React hook that provides a declarative `setTimeout`\r\n *\r\n * @param callback the callback to run after specified delay\r\n * @param delay the delay (in ms)\r\n */\r\nexport function useTimeout(callback: Function, delay: number | null) {\r\n const savedCallback = useLatestRef(callback);\r\n\r\n useEffect(() => {\r\n if (delay == null) return;\r\n\r\n const timeoutId = setTimeout(() => {\r\n savedCallback.current?.();\r\n }, delay);\r\n\r\n return () => clearTimeout(timeoutId);\r\n }, [delay, savedCallback]);\r\n}\r\n"],"names":["useUpdateEffect","effect","deps","mounted","useRef","useEffect","useLatestRef","value","ref","useCallbackRef","callback","callbackRef","useCallback","args","useFirstRenderState","isFirst","useInterval","delay","savedCallback","tick","id","useTimeout","timeoutId"],"mappings":";;;;AAUO,MAAMA,IAAoC,CAACC,GAAQC,MAAS;AACjE,QAAMC,IAAUC,EAAO,EAAK;AAE5B,SAAAC,EAAU,MAAM;AACd,QAAIF,EAAQ;AACV,aAAOF,EAAA;AAET,IAAAE,EAAQ,UAAU;AAAA,EAGpB,GAAGD,CAAI,GAEAC,EAAQ;AACjB;AAQO,SAASG,EAAgBC,GAAU;AACxC,QAAMC,IAAMJ,EAAOG,CAAK;AAExB,SAAAF,EAAU,MAAM;AACd,IAAAG,EAAI,UAAUD;AAAA,EAChB,GAAG,CAACA,CAAK,CAAC,GAEHC;AACT;AAUO,MAAMC,IAAiB,CAAoCC,MAA+B;AAC/F,QAAMC,IAAcP,EAAOM,CAAQ;AAEnC,SAAAL,EAAU,MAAM;AACd,IAAAM,EAAY,UAAUD;AAAA,EACxB,CAAC,GAEME;AAAA,KACJ,IAAIC,MACIF,EAAY,UAAU,GAAGE,CAAI;AAAA,IAEtC,CAAA;AAAA,EAAC;AAEL,GAOaC,IAAsB,MAAe;AAChD,QAAMC,IAAUX,EAAO,EAAI;AAE3B,SAAIW,EAAQ,WACVA,EAAQ,UAAU,IACX,MAGFA,EAAQ;AACjB;AAQO,SAASC,EAAYN,GAAsBO,GAAsB;AACtE,QAAMC,IAAgBZ,EAAaI,CAAQ;AAE3C,EAAAL,EAAU,MAAM;AACd,UAAMc,IAAO,MAAM;AACjB,MAAAD,EAAc,UAAA;AAAA,IAChB;AACA,QAAID,MAAU,MAAM;AAClB,YAAMG,IAAK,YAAYD,GAAMF,CAAK;AAClC,aAAO,MAAM,cAAcG,CAAE;AAAA,IAC/B;AAAA,EACF,GAAG,CAACH,GAAOC,CAAa,CAAC;AAC3B;AAQO,SAASG,EAAWX,GAAoBO,GAAsB;AACnE,QAAMC,IAAgBZ,EAAaI,CAAQ;AAE3C,EAAAL,EAAU,MAAM;AACd,QAAIY,KAAS,KAAM;AAEnB,UAAMK,IAAY,WAAW,MAAM;AACjC,MAAAJ,EAAc,UAAA;AAAA,IAChB,GAAGD,CAAK;AAER,WAAO,MAAM,aAAaK,CAAS;AAAA,EACrC,GAAG,CAACL,GAAOC,CAAa,CAAC;AAC3B;"}
@@ -32,9 +32,22 @@ export type DownloadCallback = (status: FileDownloadStatus, error?: any) => void
32
32
  export interface IAxiosRequestConfigWithoutParams extends Omit<AxiosRequestConfig, 'params' | 'paramsSerializer'> {
33
33
  contentType?: string;
34
34
  }
35
- declare class ApiUtilityBase {
35
+ export interface IApiUtilityConfig {
36
+ baseURL?: string;
36
37
  accessToken?: string;
37
- handleError: (error: string, errors?: any) => void;
38
+ handleError?: (error: string, errors?: any) => void;
39
+ }
40
+ declare class ApiUtilityBase {
41
+ private config;
42
+ get accessToken(): string | undefined;
43
+ set accessToken(token: string | undefined);
44
+ get handleError(): (error: string, errors?: any) => void;
45
+ set handleError(handler: (error: string, errors?: any) => void);
46
+ /**
47
+ * Configure the API utility with base URL and other options
48
+ * @param config Configuration object
49
+ */
50
+ configure(config: IApiUtilityConfig): void;
38
51
  getResponse: <T = any>(endpoint: string, params?: any, options?: IAxiosRequestConfigWithoutParams) => Promise<AxiosResponse<T, any>>;
39
52
  get: <T = IApiResponse>(endpoint: string, params?: any, throwErrorOn401?: boolean, options?: IAxiosRequestConfigWithoutParams) => Promise<T>;
40
53
  getResult: <T = any>(endpoint: string, params?: any, throwErrorOn401?: boolean, options?: IAxiosRequestConfigWithoutParams) => Promise<T | null>;
@@ -54,7 +67,7 @@ declare class ApiUtilityBase {
54
67
  handleAxiosError: <T = IApiResponse>(error: AxiosError, throwErrorOn401?: boolean) => T;
55
68
  handleErrorResponse: (message: any, errors?: any) => void;
56
69
  _axiosOptions: (options?: IAxiosRequestConfigWithoutParams) => AxiosRequestConfig;
57
- getBaseUrl: () => string | undefined;
70
+ getBaseUrl: () => any;
58
71
  }
59
72
  export declare const ApiUtility: ApiUtilityBase;
60
73
  export {};
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import { default as React } from 'react';
2
2
  export declare enum FeatureStatus {
3
3
  placeholder = 0,
4
4
  alpha = 1,
@@ -1,5 +1,5 @@
1
1
  import { Dayjs } from 'dayjs';
2
- import React from 'react';
2
+ import { default as React } from 'react';
3
3
  import { IAddress } from './Types';
4
4
  export declare const StorageMessageKey = "ao-message";
5
5
  export interface IStorageMessage extends Record<string, any> {
@@ -1,14 +1,13 @@
1
- import dayjsBase from 'dayjs';
2
- import 'dayjs/locale/en-gb';
3
- import AdvancedFormat from 'dayjs/plugin/advancedFormat';
4
- import CustomParseFormat from 'dayjs/plugin/customParseFormat';
5
- import Duration from 'dayjs/plugin/duration';
6
- import IsSameOrAfter from 'dayjs/plugin/isSameOrAfter';
7
- import IsSameOrBefore from 'dayjs/plugin/isSameOrBefore';
8
- import RelativeTime from 'dayjs/plugin/relativeTime';
9
- import tz from 'dayjs/plugin/timezone';
10
- import utc from 'dayjs/plugin/utc';
11
- import Weekday from 'dayjs/plugin/weekday';
1
+ import { default as dayjsBase } from 'dayjs';
2
+ import { default as AdvancedFormat } from 'dayjs/plugin/advancedFormat';
3
+ import { default as CustomParseFormat } from 'dayjs/plugin/customParseFormat';
4
+ import { default as Duration } from 'dayjs/plugin/duration';
5
+ import { default as IsSameOrAfter } from 'dayjs/plugin/isSameOrAfter';
6
+ import { default as IsSameOrBefore } from 'dayjs/plugin/isSameOrBefore';
7
+ import { default as RelativeTime } from 'dayjs/plugin/relativeTime';
8
+ import { default as tz } from 'dayjs/plugin/timezone';
9
+ import { default as utc } from 'dayjs/plugin/utc';
10
+ import { default as Weekday } from 'dayjs/plugin/weekday';
12
11
  declare module 'dayjs' {
13
12
  interface Dayjs {
14
13
  addWorkdays(amount: number): dayjsBase.Dayjs;
@@ -0,0 +1,2 @@
1
+ export * from './Utilities/index'
2
+ export {}
@@ -0,0 +1,54 @@
1
+ import { ApiUtility as o, FileDownloadStatus as r, HttpMethods as i } from "./src/Utilities/ApiUtility.axios.js";
2
+ import { getBrowserDoNotTrackStatus as s, getBrowserPluginsAsString as a, getDeviceLocalIPAsString as g, getScreenColourDepth as m, getScreenHeight as p, getScreenScalingFactor as l, getScreenWidth as u, getTimezone as d, getUserAgent as f, getWindowHeight as S, getWindowWidth as c, resetDeviceIpString as x, resetDeviceIpTimeStamp as D } from "./src/Utilities/BrowserInfo.js";
3
+ import { AllCountries as w, getCountries as y, getCountryByPhoneNumber as A, getCountryOptions as C } from "./src/Utilities/Countries.js";
4
+ import { CustomEventEmitter as H } from "./src/Utilities/CustomEventEmitter.js";
5
+ import { d as T } from "./dayjs-aKjfjjRl.mjs";
6
+ import { fastCompare as I } from "./src/Utilities/FastCompare.js";
7
+ import { HideablePromise as U } from "./src/Utilities/HideablePromise.js";
8
+ import { LoadScript as B } from "./src/Utilities/LoadScripts.js";
9
+ import { fraudPreventionHeadersEnum as M, getFraudPreventionHeaders as O, getScreenDetails as b, windowDetails as L } from "./src/Utilities/MTDFraudPrevention.js";
10
+ import { AllNationalities as Z, getNationalityOptions as j } from "./src/Utilities/Nationalities.js";
11
+ import { FeatureStatus as z, RouteUtils as K } from "./src/Utilities/RouteUtils.js";
12
+ import { AllTimeZones as G, getTimeZoneOptions as J } from "./src/Utilities/TimeZones.js";
13
+ import { StorageMessageKey as V, Utils as X, useIsMountedRef as Y } from "./src/Utilities/Utils.js";
14
+ export {
15
+ w as AllCountries,
16
+ Z as AllNationalities,
17
+ G as AllTimeZones,
18
+ o as ApiUtility,
19
+ H as CustomEventEmitter,
20
+ z as FeatureStatus,
21
+ r as FileDownloadStatus,
22
+ U as HideablePromise,
23
+ i as HttpMethods,
24
+ B as LoadScript,
25
+ K as RouteUtils,
26
+ V as StorageMessageKey,
27
+ X as Utils,
28
+ T as dayjs,
29
+ I as fastCompare,
30
+ M as fraudPreventionHeadersEnum,
31
+ s as getBrowserDoNotTrackStatus,
32
+ a as getBrowserPluginsAsString,
33
+ y as getCountries,
34
+ A as getCountryByPhoneNumber,
35
+ C as getCountryOptions,
36
+ g as getDeviceLocalIPAsString,
37
+ O as getFraudPreventionHeaders,
38
+ j as getNationalityOptions,
39
+ m as getScreenColourDepth,
40
+ b as getScreenDetails,
41
+ p as getScreenHeight,
42
+ l as getScreenScalingFactor,
43
+ u as getScreenWidth,
44
+ J as getTimeZoneOptions,
45
+ d as getTimezone,
46
+ f as getUserAgent,
47
+ S as getWindowHeight,
48
+ c as getWindowWidth,
49
+ x as resetDeviceIpString,
50
+ D as resetDeviceIpTimeStamp,
51
+ Y as useIsMountedRef,
52
+ L as windowDetails
53
+ };
54
+ //# sourceMappingURL=Utilities.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utilities.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}