@sudobility/email-components 2.0.7 → 2.0.9
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.
- package/dist/index.esm.js +1447 -1624
- package/dist/index.umd.js +4 -4
- package/package.json +6 -6
package/dist/index.esm.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import * as
|
|
4
|
-
import { useRef as
|
|
5
|
-
import { ChevronRightIcon as
|
|
6
|
-
import { textVariants as
|
|
7
|
-
const
|
|
1
|
+
import { jsx as v, jsxs as W } from "react/jsx-runtime";
|
|
2
|
+
import { cn as M, Label as Bt } from "@sudobility/components";
|
|
3
|
+
import * as E from "react";
|
|
4
|
+
import { useRef as Gt, useState as Ht, useEffect as Yt } from "react";
|
|
5
|
+
import { ChevronRightIcon as qt, ChevronUpIcon as zt, ChevronDownIcon as Kt } from "@heroicons/react/24/outline";
|
|
6
|
+
import { textVariants as gt } from "@sudobility/design";
|
|
7
|
+
const Qn = ({
|
|
8
8
|
className: e,
|
|
9
9
|
children: t,
|
|
10
10
|
disabled: r
|
|
11
|
-
}) => /* @__PURE__ */
|
|
11
|
+
}) => /* @__PURE__ */ v(
|
|
12
12
|
"div",
|
|
13
13
|
{
|
|
14
|
-
className:
|
|
14
|
+
className: M(
|
|
15
15
|
"p-4 rounded-lg border transition-colors",
|
|
16
16
|
"bg-white dark:bg-gray-900",
|
|
17
17
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -23,14 +23,14 @@ const Qa = ({
|
|
|
23
23
|
"aria-label": "SubscriberList",
|
|
24
24
|
children: t || "SubscriberList Component"
|
|
25
25
|
}
|
|
26
|
-
),
|
|
26
|
+
), xn = ({
|
|
27
27
|
className: e,
|
|
28
28
|
children: t,
|
|
29
29
|
disabled: r
|
|
30
|
-
}) => /* @__PURE__ */
|
|
30
|
+
}) => /* @__PURE__ */ v(
|
|
31
31
|
"div",
|
|
32
32
|
{
|
|
33
|
-
className:
|
|
33
|
+
className: M(
|
|
34
34
|
"p-4 rounded-lg border transition-colors",
|
|
35
35
|
"bg-white dark:bg-gray-900",
|
|
36
36
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -42,14 +42,14 @@ const Qa = ({
|
|
|
42
42
|
"aria-label": "AbTestEmail",
|
|
43
43
|
children: t || "AbTestEmail Component"
|
|
44
44
|
}
|
|
45
|
-
), $
|
|
45
|
+
), $n = ({
|
|
46
46
|
className: e,
|
|
47
47
|
children: t,
|
|
48
48
|
disabled: r
|
|
49
|
-
}) => /* @__PURE__ */
|
|
49
|
+
}) => /* @__PURE__ */ v(
|
|
50
50
|
"div",
|
|
51
51
|
{
|
|
52
|
-
className:
|
|
52
|
+
className: M(
|
|
53
53
|
"p-4 rounded-lg border transition-colors",
|
|
54
54
|
"bg-white dark:bg-gray-900",
|
|
55
55
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -62,193 +62,127 @@ const Qa = ({
|
|
|
62
62
|
children: t || "ContactCard Component"
|
|
63
63
|
}
|
|
64
64
|
);
|
|
65
|
-
var
|
|
66
|
-
function
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
var ve = {}, v = {}, tt;
|
|
70
|
-
function ne() {
|
|
71
|
-
if (tt) return v;
|
|
72
|
-
tt = 1, Object.defineProperty(v, "__esModule", { value: !0 }), v.Currency = v.ErrorType = v.FeatureFlag = v.EmailValidationState = v.PlatformType = v.ConnectionState = v.ConnectionType = v.EmailSortCriteria = v.SortOrder = v.EmailAddressType = v.InfoType = v.NotificationType = v.RequestStatus = v.SubscriptionAction = v.EmailAction = v.MediumView = v.MobileView = v.EmailComposeType = v.FontSize = v.Theme = v.Chain = v.ChainType = v.AuthStatus = void 0;
|
|
65
|
+
var Ee = {}, T = {}, je;
|
|
66
|
+
function x() {
|
|
67
|
+
if (je) return T;
|
|
68
|
+
je = 1, Object.defineProperty(T, "__esModule", { value: !0 }), T.Currency = T.ErrorType = T.FeatureFlag = T.EmailValidationState = T.PlatformType = T.ConnectionState = T.ConnectionType = T.EmailSortCriteria = T.SortOrder = T.EmailAddressType = T.InfoType = T.NotificationType = T.RequestStatus = T.SubscriptionAction = T.EmailAction = T.MediumView = T.MobileView = T.EmailComposeType = T.FontSize = T.Theme = T.Chain = T.ChainType = T.AuthStatus = void 0;
|
|
73
69
|
var e;
|
|
74
|
-
(function(
|
|
75
|
-
|
|
76
|
-
})(e || (
|
|
70
|
+
(function(s) {
|
|
71
|
+
s.CONNECTED = "connected", s.DISCONNECTED = "disconnected", s.VERIFIED = "verified";
|
|
72
|
+
})(e || (T.AuthStatus = e = {}));
|
|
77
73
|
var t;
|
|
78
|
-
(function(
|
|
79
|
-
|
|
80
|
-
})(t || (
|
|
74
|
+
(function(s) {
|
|
75
|
+
s.EVM = "evm", s.SOLANA = "solana";
|
|
76
|
+
})(t || (T.ChainType = t = {}));
|
|
81
77
|
var r;
|
|
82
|
-
(function(
|
|
83
|
-
|
|
84
|
-
})(r || (
|
|
78
|
+
(function(s) {
|
|
79
|
+
s.ETH_MAINNET = "eth-mainnet", s.ETH_SEPOLIA = "eth-sepolia", s.ETH_GOERLI = "eth-goerli", s.POLYGON_MAINNET = "polygon-mainnet", s.POLYGON_MUMBAI = "polygon-mumbai", s.POLYGON_AMOY = "polygon-amoy", s.OPTIMISM_MAINNET = "optimism-mainnet", s.OPTIMISM_SEPOLIA = "optimism-sepolia", s.OPTIMISM_GOERLI = "optimism-goerli", s.ARBITRUM_MAINNET = "arbitrum-mainnet", s.ARBITRUM_SEPOLIA = "arbitrum-sepolia", s.ARBITRUM_GOERLI = "arbitrum-goerli", s.BASE_MAINNET = "base-mainnet", s.BASE_SEPOLIA = "base-sepolia", s.BASE_GOERLI = "base-goerli", s.AVALANCHE_MAINNET = "avalanche-mainnet", s.AVALANCHE_FUJI = "avalanche-fuji", s.BNB_MAINNET = "bnb-mainnet", s.BNB_TESTNET = "bnb-testnet", s.GNOSIS_MAINNET = "gnosis-mainnet", s.GNOSIS_CHIADO = "gnosis-chiado", s.CELO_MAINNET = "celo-mainnet", s.CELO_ALFAJORES = "celo-alfajores", s.ZKSYNC_MAINNET = "zksync-mainnet", s.ZKSYNC_SEPOLIA = "zksync-sepolia", s.LINEA_MAINNET = "linea-mainnet", s.LINEA_SEPOLIA = "linea-sepolia", s.SCROLL_MAINNET = "scroll-mainnet", s.SCROLL_SEPOLIA = "scroll-sepolia", s.MONAD_MAINNET = "monad-mainnet", s.MONAD_TESTNET = "monad-testnet", s.STORY_MAINNET = "story-mainnet", s.STORY_TESTNET = "story-testnet", s.PLUME_MAINNET = "plume-mainnet", s.PLUME_TESTNET = "plume-testnet", s.NEXUS_MAINNET = "nexus-mainnet", s.NEXUS_TESTNET = "nexus-testnet", s.HYPEREVM_MAINNET = "hyperevm-mainnet", s.HYPEREVM_TESTNET = "hyperevm-testnet", s.SONIC_MAINNET = "sonic-mainnet", s.SONIC_TESTNET = "sonic-testnet", s.SONIC_BLAZE = "sonic-blaze", s.UNICHAIN_MAINNET = "unichain-mainnet", s.UNICHAIN_SEPOLIA = "unichain-sepolia", s.WORLD_MAINNET = "world-mainnet", s.XDC_MAINNET = "xdc-mainnet", s.INK_TESTNET = "ink-testnet", s.FETCH_MAINNET = "fetch-mainnet", s.FETCH_TESTNET = "fetch-testnet", s.GENSYN_MAINNET = "gensyn-mainnet", s.GENSYN_TESTNET = "gensyn-testnet", s.RITUAL_MAINNET = "ritual-mainnet", s.RITUAL_TESTNET = "ritual-testnet", s.SOLANA_MAINNET = "solana-mainnet", s.SOLANA_DEVNET = "solana-devnet", s.SOLANA_TESTNET = "solana-testnet", s.EVM_LOCAL = "evm-local", s.SOLANA_LOCAL = "solana-local";
|
|
80
|
+
})(r || (T.Chain = r = {}));
|
|
85
81
|
var n;
|
|
86
|
-
(function(
|
|
87
|
-
|
|
88
|
-
})(n || (
|
|
82
|
+
(function(s) {
|
|
83
|
+
s.LIGHT = "light", s.DARK = "dark", s.SYSTEM = "system";
|
|
84
|
+
})(n || (T.Theme = n = {}));
|
|
89
85
|
var i;
|
|
90
|
-
(function(
|
|
91
|
-
|
|
92
|
-
})(i || (
|
|
86
|
+
(function(s) {
|
|
87
|
+
s.SMALL = "small", s.MEDIUM = "medium", s.LARGE = "large";
|
|
88
|
+
})(i || (T.FontSize = i = {}));
|
|
93
89
|
var a;
|
|
94
|
-
(function(
|
|
95
|
-
|
|
96
|
-
})(a || (
|
|
90
|
+
(function(s) {
|
|
91
|
+
s.NEW = "new", s.REPLY = "reply", s.REPLY_ALL = "replyAll", s.FORWARD = "forward";
|
|
92
|
+
})(a || (T.EmailComposeType = a = {}));
|
|
97
93
|
var o;
|
|
98
|
-
(function(
|
|
99
|
-
|
|
100
|
-
})(o || (
|
|
101
|
-
var
|
|
102
|
-
(function(
|
|
103
|
-
|
|
104
|
-
})(
|
|
94
|
+
(function(s) {
|
|
95
|
+
s.EMAIL_ADDRESSES = "emailAddresses", s.FOLDERS = "folders", s.EMAILS = "emails", s.EMAIL_BODY = "emailBody";
|
|
96
|
+
})(o || (T.MobileView = o = {}));
|
|
97
|
+
var d;
|
|
98
|
+
(function(s) {
|
|
99
|
+
s.LEFT = "left", s.RIGHT = "right";
|
|
100
|
+
})(d || (T.MediumView = d = {}));
|
|
105
101
|
var c;
|
|
106
|
-
(function(
|
|
107
|
-
|
|
108
|
-
})(c || (
|
|
109
|
-
var s;
|
|
110
|
-
(function(d) {
|
|
111
|
-
d.VIEW = "view", d.PURCHASE = "purchase", d.CANCEL = "cancel", d.RESTORE = "restore";
|
|
112
|
-
})(s || (v.SubscriptionAction = s = {}));
|
|
113
|
-
var f;
|
|
114
|
-
(function(d) {
|
|
115
|
-
d.IDLE = "idle", d.LOADING = "loading", d.SUCCESS = "success", d.ERROR = "error";
|
|
116
|
-
})(f || (v.RequestStatus = f = {}));
|
|
102
|
+
(function(s) {
|
|
103
|
+
s.OPEN = "open", s.REPLY = "reply", s.FORWARD = "forward", s.DELETE = "delete", s.STAR = "star", s.UNSTAR = "unstar", s.MARK_READ = "mark_read", s.MARK_UNREAD = "mark_unread";
|
|
104
|
+
})(c || (T.EmailAction = c = {}));
|
|
117
105
|
var l;
|
|
118
|
-
(function(
|
|
119
|
-
|
|
120
|
-
})(l || (
|
|
106
|
+
(function(s) {
|
|
107
|
+
s.VIEW = "view", s.PURCHASE = "purchase", s.CANCEL = "cancel", s.RESTORE = "restore";
|
|
108
|
+
})(l || (T.SubscriptionAction = l = {}));
|
|
109
|
+
var f;
|
|
110
|
+
(function(s) {
|
|
111
|
+
s.IDLE = "idle", s.LOADING = "loading", s.SUCCESS = "success", s.ERROR = "error";
|
|
112
|
+
})(f || (T.RequestStatus = f = {}));
|
|
113
|
+
var u;
|
|
114
|
+
(function(s) {
|
|
115
|
+
s.INFO = "info", s.SUCCESS = "success", s.WARNING = "warning", s.ERROR = "error";
|
|
116
|
+
})(u || (T.NotificationType = u = {}));
|
|
121
117
|
var m;
|
|
122
|
-
(function(
|
|
123
|
-
|
|
124
|
-
})(m || (
|
|
118
|
+
(function(s) {
|
|
119
|
+
s.INFO = "info", s.SUCCESS = "success", s.WARNING = "warning", s.ERROR = "error";
|
|
120
|
+
})(m || (T.InfoType = m = {}));
|
|
125
121
|
var b;
|
|
126
|
-
(function(
|
|
127
|
-
|
|
128
|
-
})(b || (
|
|
122
|
+
(function(s) {
|
|
123
|
+
s.DIRECT = "direct", s.ENS = "ens", s.SNS = "sns", s.CUSTOM = "custom";
|
|
124
|
+
})(b || (T.EmailAddressType = b = {}));
|
|
129
125
|
var S;
|
|
130
|
-
(function(
|
|
131
|
-
|
|
132
|
-
})(S || (
|
|
126
|
+
(function(s) {
|
|
127
|
+
s.ASC = "asc", s.DESC = "desc";
|
|
128
|
+
})(S || (T.SortOrder = S = {}));
|
|
133
129
|
var p;
|
|
134
|
-
(function(
|
|
135
|
-
|
|
136
|
-
})(p || (
|
|
130
|
+
(function(s) {
|
|
131
|
+
s.DATE = "date", s.SUBJECT = "subject", s.FROM = "from", s.SIZE = "size";
|
|
132
|
+
})(p || (T.EmailSortCriteria = p = {}));
|
|
137
133
|
var g;
|
|
138
|
-
(function(
|
|
139
|
-
|
|
140
|
-
})(g || (
|
|
134
|
+
(function(s) {
|
|
135
|
+
s.UNKNOWN = "unknown", s.NONE = "none", s.WIFI = "wifi", s.CELLULAR_2G = "2g", s.CELLULAR_3G = "3g", s.CELLULAR_4G = "4g", s.CELLULAR_5G = "5g", s.ETHERNET = "ethernet";
|
|
136
|
+
})(g || (T.ConnectionType = g = {}));
|
|
141
137
|
var A;
|
|
142
|
-
(function(
|
|
143
|
-
|
|
144
|
-
})(A || (
|
|
138
|
+
(function(s) {
|
|
139
|
+
s.UNKNOWN = "unknown", s.DISCONNECTED = "disconnected", s.CONNECTING = "connecting", s.CONNECTED = "connected", s.RECONNECTING = "reconnecting", s.VERIFIED = "verified", s.LIMITED = "limited", s.ERROR = "error";
|
|
140
|
+
})(A || (T.ConnectionState = A = {}));
|
|
145
141
|
var y;
|
|
146
|
-
(function(
|
|
147
|
-
|
|
148
|
-
})(y || (
|
|
149
|
-
var
|
|
150
|
-
(function(
|
|
151
|
-
|
|
152
|
-
})(
|
|
153
|
-
var
|
|
154
|
-
(function(
|
|
155
|
-
|
|
156
|
-
})(
|
|
142
|
+
(function(s) {
|
|
143
|
+
s.WEB = "web", s.REACT_NATIVE = "react_native", s.DESKTOP = "desktop";
|
|
144
|
+
})(y || (T.PlatformType = y = {}));
|
|
145
|
+
var h;
|
|
146
|
+
(function(s) {
|
|
147
|
+
s.VALID = "valid", s.INVALID = "invalid", s.PENDING = "pending", s.UNKNOWN = "unknown";
|
|
148
|
+
})(h || (T.EmailValidationState = h = {}));
|
|
149
|
+
var R;
|
|
150
|
+
(function(s) {
|
|
151
|
+
s.AI_SEARCH = "ai_search", s.SMART_COMPOSE = "smart_compose", s.ADVANCED_FILTERS = "advanced_filters", s.DARK_MODE = "dark_mode", s.NOTIFICATIONS = "notifications", s.ANALYTICS = "analytics";
|
|
152
|
+
})(R || (T.FeatureFlag = R = {}));
|
|
157
153
|
var N;
|
|
158
|
-
(function(
|
|
159
|
-
|
|
160
|
-
})(N || (
|
|
161
|
-
var
|
|
162
|
-
return (function(
|
|
163
|
-
|
|
164
|
-
})(
|
|
165
|
-
}
|
|
166
|
-
var
|
|
167
|
-
function
|
|
168
|
-
return
|
|
154
|
+
(function(s) {
|
|
155
|
+
s.NETWORK = "network", s.AUTH = "auth", s.VALIDATION = "validation", s.PERMISSION = "permission", s.UNKNOWN = "unknown";
|
|
156
|
+
})(N || (T.ErrorType = N = {}));
|
|
157
|
+
var P;
|
|
158
|
+
return (function(s) {
|
|
159
|
+
s.USD = "USD", s.EUR = "EUR", s.GBP = "GBP", s.CAD = "CAD", s.AUD = "AUD";
|
|
160
|
+
})(P || (T.Currency = P = {})), T;
|
|
161
|
+
}
|
|
162
|
+
var be = {}, Ue;
|
|
163
|
+
function Zt() {
|
|
164
|
+
return Ue || (Ue = 1, (function(e) {
|
|
169
165
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getWalletConnectionState = e.isWalletVerified = e.isWalletConnected = void 0;
|
|
170
|
-
const t =
|
|
166
|
+
const t = x(), r = (a) => a != null && !!a.walletAddress;
|
|
171
167
|
e.isWalletConnected = r;
|
|
172
168
|
const n = (a) => (0, e.isWalletConnected)(a) && !!a.message && !!a.signature;
|
|
173
169
|
e.isWalletVerified = n;
|
|
174
170
|
const i = (a) => (0, e.isWalletConnected)(a) ? (0, e.isWalletVerified)(a) ? t.ConnectionState.VERIFIED : t.ConnectionState.CONNECTED : t.ConnectionState.DISCONNECTED;
|
|
175
171
|
e.getWalletConnectionState = i;
|
|
176
|
-
})(
|
|
172
|
+
})(be)), be;
|
|
177
173
|
}
|
|
178
|
-
var
|
|
179
|
-
function
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
var t = ne();
|
|
183
|
-
Object.defineProperty(e, "AuthStatus", { enumerable: !0, get: function() {
|
|
184
|
-
return t.AuthStatus;
|
|
185
|
-
} }), Object.defineProperty(e, "Chain", { enumerable: !0, get: function() {
|
|
186
|
-
return t.Chain;
|
|
187
|
-
} }), Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
|
|
188
|
-
return t.ChainType;
|
|
189
|
-
} }), Object.defineProperty(e, "ConnectionState", { enumerable: !0, get: function() {
|
|
190
|
-
return t.ConnectionState;
|
|
191
|
-
} }), Object.defineProperty(e, "ConnectionType", { enumerable: !0, get: function() {
|
|
192
|
-
return t.ConnectionType;
|
|
193
|
-
} }), Object.defineProperty(e, "Currency", { enumerable: !0, get: function() {
|
|
194
|
-
return t.Currency;
|
|
195
|
-
} }), Object.defineProperty(e, "EmailAction", { enumerable: !0, get: function() {
|
|
196
|
-
return t.EmailAction;
|
|
197
|
-
} }), Object.defineProperty(e, "EmailAddressType", { enumerable: !0, get: function() {
|
|
198
|
-
return t.EmailAddressType;
|
|
199
|
-
} }), Object.defineProperty(e, "EmailComposeType", { enumerable: !0, get: function() {
|
|
200
|
-
return t.EmailComposeType;
|
|
201
|
-
} }), Object.defineProperty(e, "EmailSortCriteria", { enumerable: !0, get: function() {
|
|
202
|
-
return t.EmailSortCriteria;
|
|
203
|
-
} }), Object.defineProperty(e, "EmailValidationState", { enumerable: !0, get: function() {
|
|
204
|
-
return t.EmailValidationState;
|
|
205
|
-
} }), Object.defineProperty(e, "ErrorType", { enumerable: !0, get: function() {
|
|
206
|
-
return t.ErrorType;
|
|
207
|
-
} }), Object.defineProperty(e, "FeatureFlag", { enumerable: !0, get: function() {
|
|
208
|
-
return t.FeatureFlag;
|
|
209
|
-
} }), Object.defineProperty(e, "FontSize", { enumerable: !0, get: function() {
|
|
210
|
-
return t.FontSize;
|
|
211
|
-
} }), Object.defineProperty(e, "InfoType", { enumerable: !0, get: function() {
|
|
212
|
-
return t.InfoType;
|
|
213
|
-
} }), Object.defineProperty(e, "MediumView", { enumerable: !0, get: function() {
|
|
214
|
-
return t.MediumView;
|
|
215
|
-
} }), Object.defineProperty(e, "MobileView", { enumerable: !0, get: function() {
|
|
216
|
-
return t.MobileView;
|
|
217
|
-
} }), Object.defineProperty(e, "NotificationType", { enumerable: !0, get: function() {
|
|
218
|
-
return t.NotificationType;
|
|
219
|
-
} }), Object.defineProperty(e, "PlatformType", { enumerable: !0, get: function() {
|
|
220
|
-
return t.PlatformType;
|
|
221
|
-
} }), Object.defineProperty(e, "RequestStatus", { enumerable: !0, get: function() {
|
|
222
|
-
return t.RequestStatus;
|
|
223
|
-
} }), Object.defineProperty(e, "SortOrder", { enumerable: !0, get: function() {
|
|
224
|
-
return t.SortOrder;
|
|
225
|
-
} }), Object.defineProperty(e, "SubscriptionAction", { enumerable: !0, get: function() {
|
|
226
|
-
return t.SubscriptionAction;
|
|
227
|
-
} }), Object.defineProperty(e, "Theme", { enumerable: !0, get: function() {
|
|
228
|
-
return t.Theme;
|
|
229
|
-
} });
|
|
230
|
-
var r = Lr();
|
|
231
|
-
Object.defineProperty(e, "getWalletConnectionState", { enumerable: !0, get: function() {
|
|
232
|
-
return r.getWalletConnectionState;
|
|
233
|
-
} }), Object.defineProperty(e, "isWalletConnected", { enumerable: !0, get: function() {
|
|
234
|
-
return r.isWalletConnected;
|
|
235
|
-
} }), Object.defineProperty(e, "isWalletVerified", { enumerable: !0, get: function() {
|
|
236
|
-
return r.isWalletVerified;
|
|
237
|
-
} });
|
|
238
|
-
})(ve)), ve;
|
|
239
|
-
}
|
|
240
|
-
var Oe = {}, L = {}, at;
|
|
241
|
-
function Ge() {
|
|
242
|
-
if (at) return L;
|
|
243
|
-
at = 1, Object.defineProperty(L, "__esModule", { value: !0 }), L.PROTOCOL_CONSTANTS = L.TransactionStatus = L.MessageType = void 0, L.isSolanaAddress = r, L.isEvmAddress = n, L.isSolanaRecipient = i, L.isEvmRecipient = a;
|
|
174
|
+
var D = {}, ke;
|
|
175
|
+
function ht() {
|
|
176
|
+
if (ke) return D;
|
|
177
|
+
ke = 1, Object.defineProperty(D, "__esModule", { value: !0 }), D.PROTOCOL_CONSTANTS = D.TransactionStatus = D.MessageType = void 0, D.isSolanaAddress = r, D.isEvmAddress = n, D.isSolanaRecipient = i, D.isEvmRecipient = a;
|
|
244
178
|
var e;
|
|
245
179
|
(function(o) {
|
|
246
180
|
o.STANDARD = "standard", o.PRIORITY = "priority", o.PREPARED_STANDARD = "prepared_standard", o.PREPARED_PRIORITY = "prepared_priority";
|
|
247
|
-
})(e || (
|
|
181
|
+
})(e || (D.MessageType = e = {}));
|
|
248
182
|
var t;
|
|
249
183
|
(function(o) {
|
|
250
184
|
o.SUCCESS = "success", o.FAILED = "failed", o.PENDING = "pending";
|
|
251
|
-
})(t || (
|
|
185
|
+
})(t || (D.TransactionStatus = t = {}));
|
|
252
186
|
function r(o) {
|
|
253
187
|
try {
|
|
254
188
|
if (o.length < 32 || o.length > 44 || !/^[1-9A-HJ-NP-Za-km-z]+$/.test(o))
|
|
@@ -271,7 +205,7 @@ function Ge() {
|
|
|
271
205
|
function a(o) {
|
|
272
206
|
return n(o);
|
|
273
207
|
}
|
|
274
|
-
return
|
|
208
|
+
return D.PROTOCOL_CONSTANTS = {
|
|
275
209
|
/** Base send fee: 0.1 USDC (100,000 with 6 decimals) */
|
|
276
210
|
SEND_FEE: 100000n,
|
|
277
211
|
/** Claim period: 60 days in seconds */
|
|
@@ -289,19 +223,19 @@ function Ge() {
|
|
|
289
223
|
BODY: 2e3,
|
|
290
224
|
MAIL_ID: 100
|
|
291
225
|
}
|
|
292
|
-
},
|
|
226
|
+
}, D;
|
|
293
227
|
}
|
|
294
|
-
var Z = {},
|
|
295
|
-
function
|
|
296
|
-
if (
|
|
297
|
-
|
|
298
|
-
const e =
|
|
228
|
+
var Z = {}, j = {}, Ve;
|
|
229
|
+
function Et() {
|
|
230
|
+
if (Ve) return j;
|
|
231
|
+
Ve = 1, Object.defineProperty(j, "__esModule", { value: !0 }), j.AddressType = void 0, j.isENSName = n, j.isSNSName = i, j.getAddressType = a, j.isValidWalletAddress = o, j.isValidSignature = d, j.parseEmailAddress = c, j.formatWalletAddress = l, j.getChainDisplayName = f;
|
|
232
|
+
const e = x(), t = ht();
|
|
299
233
|
var r;
|
|
300
|
-
(function(
|
|
301
|
-
|
|
302
|
-
})(r || (
|
|
303
|
-
function n(
|
|
304
|
-
const m =
|
|
234
|
+
(function(u) {
|
|
235
|
+
u.EVMAddress = "EVMAddress", u.SolanaAddress = "SolanaAddress", u.ENSName = "ENSName", u.SNSName = "SNSName";
|
|
236
|
+
})(r || (j.AddressType = r = {}));
|
|
237
|
+
function n(u) {
|
|
238
|
+
const m = u.toLowerCase();
|
|
305
239
|
if (!m.endsWith(".eth") && !m.endsWith(".box"))
|
|
306
240
|
return !1;
|
|
307
241
|
const b = (m.endsWith(".eth"), m.slice(0, -4));
|
|
@@ -313,8 +247,8 @@ function er() {
|
|
|
313
247
|
return !1;
|
|
314
248
|
return !0;
|
|
315
249
|
}
|
|
316
|
-
function i(
|
|
317
|
-
const m =
|
|
250
|
+
function i(u) {
|
|
251
|
+
const m = u.toLowerCase(), S = [
|
|
318
252
|
".sol",
|
|
319
253
|
".abc",
|
|
320
254
|
".bonk",
|
|
@@ -335,22 +269,22 @@ function er() {
|
|
|
335
269
|
return !1;
|
|
336
270
|
return !0;
|
|
337
271
|
}
|
|
338
|
-
function a(
|
|
339
|
-
if ((0, t.isEvmAddress)(
|
|
272
|
+
function a(u, m = void 0) {
|
|
273
|
+
if ((0, t.isEvmAddress)(u))
|
|
340
274
|
return r.EVMAddress;
|
|
341
|
-
if ((0, t.isSolanaAddress)(
|
|
275
|
+
if ((0, t.isSolanaAddress)(u))
|
|
342
276
|
return r.SolanaAddress;
|
|
343
|
-
if (m &&
|
|
277
|
+
if (m && u.includes(".")) {
|
|
344
278
|
if (m === r.EVMAddress)
|
|
345
279
|
return r.ENSName;
|
|
346
280
|
if (m === r.SolanaAddress)
|
|
347
281
|
return r.SNSName;
|
|
348
282
|
}
|
|
349
283
|
}
|
|
350
|
-
function o(
|
|
351
|
-
if (!
|
|
284
|
+
function o(u, m) {
|
|
285
|
+
if (!u || typeof u != "string")
|
|
352
286
|
return !1;
|
|
353
|
-
const b = a(
|
|
287
|
+
const b = a(u);
|
|
354
288
|
switch (m) {
|
|
355
289
|
case e.ChainType.EVM:
|
|
356
290
|
return b === r.EVMAddress || b === r.ENSName;
|
|
@@ -360,22 +294,22 @@ function er() {
|
|
|
360
294
|
return !!b;
|
|
361
295
|
}
|
|
362
296
|
}
|
|
363
|
-
function u
|
|
364
|
-
if (!
|
|
297
|
+
function d(u, m) {
|
|
298
|
+
if (!u || typeof u != "string")
|
|
365
299
|
return !1;
|
|
366
300
|
switch (m) {
|
|
367
301
|
case e.ChainType.EVM:
|
|
368
|
-
return /^0x[a-fA-F0-9]{130}$/.test(
|
|
302
|
+
return /^0x[a-fA-F0-9]{130}$/.test(u);
|
|
369
303
|
case e.ChainType.SOLANA:
|
|
370
|
-
return /^[1-9A-HJ-NP-Za-km-z]{87,88}$/.test(
|
|
304
|
+
return /^[1-9A-HJ-NP-Za-km-z]{87,88}$/.test(u);
|
|
371
305
|
default:
|
|
372
|
-
return
|
|
306
|
+
return u.length > 50;
|
|
373
307
|
}
|
|
374
308
|
}
|
|
375
|
-
function c(
|
|
376
|
-
if (!
|
|
309
|
+
function c(u) {
|
|
310
|
+
if (!u || typeof u != "string")
|
|
377
311
|
return;
|
|
378
|
-
const m =
|
|
312
|
+
const m = u.split("@");
|
|
379
313
|
if (m.length !== 2)
|
|
380
314
|
return;
|
|
381
315
|
const [b, S] = m;
|
|
@@ -388,16 +322,16 @@ function er() {
|
|
|
388
322
|
type: p
|
|
389
323
|
};
|
|
390
324
|
}
|
|
391
|
-
function
|
|
392
|
-
if (!
|
|
393
|
-
return
|
|
394
|
-
const m = a(
|
|
395
|
-
return (m === r.ENSName || m === r.SNSName) &&
|
|
325
|
+
function l(u) {
|
|
326
|
+
if (!u || u.length < 10)
|
|
327
|
+
return u;
|
|
328
|
+
const m = a(u);
|
|
329
|
+
return (m === r.ENSName || m === r.SNSName) && u.length <= 20 ? u : `${u.slice(0, 6)}...${u.slice(-4)}`;
|
|
396
330
|
}
|
|
397
|
-
function f(
|
|
398
|
-
if (!
|
|
331
|
+
function f(u) {
|
|
332
|
+
if (!u)
|
|
399
333
|
return "Unknown Chain";
|
|
400
|
-
switch (
|
|
334
|
+
switch (u) {
|
|
401
335
|
case e.ChainType.EVM:
|
|
402
336
|
return "EVM Chain";
|
|
403
337
|
case e.ChainType.SOLANA:
|
|
@@ -406,13 +340,13 @@ function er() {
|
|
|
406
340
|
return "Blockchain";
|
|
407
341
|
}
|
|
408
342
|
}
|
|
409
|
-
return
|
|
343
|
+
return j;
|
|
410
344
|
}
|
|
411
|
-
var
|
|
412
|
-
function
|
|
413
|
-
if (
|
|
414
|
-
|
|
415
|
-
const e =
|
|
345
|
+
var We;
|
|
346
|
+
function Jt() {
|
|
347
|
+
if (We) return Z;
|
|
348
|
+
We = 1, Object.defineProperty(Z, "__esModule", { value: !0 }), Z.validateDomain = t, Z.validateMessage = r, Z.validateAddress = n, Z.validateAmount = i;
|
|
349
|
+
const e = Et();
|
|
416
350
|
function t(a) {
|
|
417
351
|
if (!a || a.length === 0)
|
|
418
352
|
throw new Error("Domain cannot be empty");
|
|
@@ -466,61 +400,19 @@ function jr() {
|
|
|
466
400
|
}
|
|
467
401
|
return Z;
|
|
468
402
|
}
|
|
469
|
-
var
|
|
470
|
-
function
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
var t = Ge();
|
|
474
|
-
Object.defineProperty(e, "MessageType", { enumerable: !0, get: function() {
|
|
475
|
-
return t.MessageType;
|
|
476
|
-
} }), Object.defineProperty(e, "PROTOCOL_CONSTANTS", { enumerable: !0, get: function() {
|
|
477
|
-
return t.PROTOCOL_CONSTANTS;
|
|
478
|
-
} }), Object.defineProperty(e, "TransactionStatus", { enumerable: !0, get: function() {
|
|
479
|
-
return t.TransactionStatus;
|
|
480
|
-
} }), Object.defineProperty(e, "isEvmAddress", { enumerable: !0, get: function() {
|
|
481
|
-
return t.isEvmAddress;
|
|
482
|
-
} }), Object.defineProperty(e, "isEvmRecipient", { enumerable: !0, get: function() {
|
|
483
|
-
return t.isEvmRecipient;
|
|
484
|
-
} }), Object.defineProperty(e, "isSolanaAddress", { enumerable: !0, get: function() {
|
|
485
|
-
return t.isSolanaAddress;
|
|
486
|
-
} }), Object.defineProperty(e, "isSolanaRecipient", { enumerable: !0, get: function() {
|
|
487
|
-
return t.isSolanaRecipient;
|
|
488
|
-
} });
|
|
489
|
-
var r = jr();
|
|
490
|
-
Object.defineProperty(e, "validateAddress", { enumerable: !0, get: function() {
|
|
491
|
-
return r.validateAddress;
|
|
492
|
-
} }), Object.defineProperty(e, "validateAmount", { enumerable: !0, get: function() {
|
|
493
|
-
return r.validateAmount;
|
|
494
|
-
} }), Object.defineProperty(e, "validateDomain", { enumerable: !0, get: function() {
|
|
495
|
-
return r.validateDomain;
|
|
496
|
-
} }), Object.defineProperty(e, "validateMessage", { enumerable: !0, get: function() {
|
|
497
|
-
return r.validateMessage;
|
|
498
|
-
} });
|
|
499
|
-
})(Oe)), Oe;
|
|
500
|
-
}
|
|
501
|
-
var Re = {}, oe = {}, lt;
|
|
502
|
-
function kr() {
|
|
503
|
-
if (lt) return oe;
|
|
504
|
-
lt = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.StorageType = void 0;
|
|
403
|
+
var te = {}, Fe;
|
|
404
|
+
function Xt() {
|
|
405
|
+
if (Fe) return te;
|
|
406
|
+
Fe = 1, Object.defineProperty(te, "__esModule", { value: !0 }), te.StorageType = void 0;
|
|
505
407
|
var e;
|
|
506
408
|
return (function(t) {
|
|
507
409
|
t.LOCAL_STORAGE = "localStorage", t.SESSION_STORAGE = "sessionStorage", t.ASYNC_STORAGE = "asyncStorage", t.MEMORY = "memory";
|
|
508
|
-
})(e || (
|
|
410
|
+
})(e || (te.StorageType = e = {})), te;
|
|
509
411
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
var t = kr();
|
|
515
|
-
Object.defineProperty(e, "StorageType", { enumerable: !0, get: function() {
|
|
516
|
-
return t.StorageType;
|
|
517
|
-
} });
|
|
518
|
-
})(Re)), Re;
|
|
519
|
-
}
|
|
520
|
-
var Ne = {}, J = {}, ct;
|
|
521
|
-
function Wr() {
|
|
522
|
-
if (ct) return J;
|
|
523
|
-
ct = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.AnalyticsEventBuilder = J.AnalyticsEvent = void 0;
|
|
412
|
+
var J = {}, Be;
|
|
413
|
+
function Qt() {
|
|
414
|
+
if (Be) return J;
|
|
415
|
+
Be = 1, Object.defineProperty(J, "__esModule", { value: !0 }), J.AnalyticsEventBuilder = J.AnalyticsEvent = void 0;
|
|
524
416
|
var e;
|
|
525
417
|
(function(r) {
|
|
526
418
|
r.USER_LOGIN = "user_login", r.USER_LOGOUT = "user_logout", r.USER_SIGNUP = "user_signup", r.EMAIL_SENT = "email_sent", r.EMAIL_RECEIVED = "email_received", r.EMAIL_OPENED = "email_opened", r.EMAIL_REPLY = "email_reply", r.EMAIL_FORWARD = "email_forward", r.EMAIL_DELETE = "email_delete", r.EMAIL_STAR = "email_star", r.EMAIL_COMPOSE = "email_compose", r.EMAIL_CLICKED = "email_clicked", r.PAGE_VIEW = "page_view", r.SCREEN_VIEW = "screen_view", r.FOLDER_SWITCH = "folder_switch", r.SUBSCRIPTION_VIEW = "subscription_view", r.SUBSCRIPTION_PURCHASE = "subscription_purchase", r.SUBSCRIPTION_CANCEL = "subscription_cancel", r.SEARCH_PERFORMED = "search_performed", r.SETTINGS_CHANGED = "settings_changed", r.ERROR_OCCURRED = "error_occurred", r.AB_TEST_VIEWED = "ab_test_viewed", r.AB_TEST_CONVERTED = "ab_test_converted", r.CUSTOM_EVENT = "custom_event";
|
|
@@ -643,11 +535,11 @@ function Wr() {
|
|
|
643
535
|
}
|
|
644
536
|
return J.AnalyticsEventBuilder = t, J;
|
|
645
537
|
}
|
|
646
|
-
var
|
|
647
|
-
function
|
|
648
|
-
return
|
|
538
|
+
var Se = {}, Ge;
|
|
539
|
+
function xt() {
|
|
540
|
+
return Ge || (Ge = 1, (function(e) {
|
|
649
541
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ProcessedEventName = e.ContractType = e.ChainType = void 0;
|
|
650
|
-
var t =
|
|
542
|
+
var t = x();
|
|
651
543
|
Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
|
|
652
544
|
return t.ChainType;
|
|
653
545
|
} });
|
|
@@ -659,112 +551,60 @@ function Br() {
|
|
|
659
551
|
(function(i) {
|
|
660
552
|
i.MailSent = "MailSent", i.PreparedMailSent = "PreparedMailSent", i.DelegationSet = "DelegationSet", i.DelegationCleared = "DelegationCleared", i.DomainRegistered = "DomainRegistered", i.DomainExtended = "DomainExtended", i.DomainReleased = "DomainReleased", i.FeeUpdated = "FeeUpdated", i.SharesRecorded = "SharesRecorded", i.RecipientClaimed = "RecipientClaimed", i.OwnerClaimed = "OwnerClaimed", i.ExpiredSharesClaimed = "ExpiredSharesClaimed";
|
|
661
553
|
})(n || (e.ProcessedEventName = n = {}));
|
|
662
|
-
})(
|
|
554
|
+
})(Se)), Se;
|
|
663
555
|
}
|
|
664
|
-
var
|
|
665
|
-
function
|
|
666
|
-
if (
|
|
667
|
-
|
|
556
|
+
var re = {}, He;
|
|
557
|
+
function $t() {
|
|
558
|
+
if (He) return re;
|
|
559
|
+
He = 1, Object.defineProperty(re, "__esModule", { value: !0 }), re.NetworkError = void 0;
|
|
668
560
|
class e extends Error {
|
|
669
561
|
constructor(r, n, i, a) {
|
|
670
562
|
super(r), this.name = "NetworkError", this.status = n, this.statusText = i, this.response = a;
|
|
671
563
|
}
|
|
672
564
|
}
|
|
673
|
-
return
|
|
565
|
+
return re.NetworkError = e, re;
|
|
674
566
|
}
|
|
675
|
-
var
|
|
676
|
-
function
|
|
677
|
-
if (
|
|
678
|
-
|
|
567
|
+
var ne = {}, Ye;
|
|
568
|
+
function er() {
|
|
569
|
+
if (Ye) return ne;
|
|
570
|
+
Ye = 1, Object.defineProperty(ne, "__esModule", { value: !0 }), ne.WalletType = void 0;
|
|
679
571
|
var e;
|
|
680
572
|
return (function(t) {
|
|
681
573
|
t.METAMASK = "metamask", t.PHANTOM = "phantom", t.COINBASE = "coinbase", t.WALLETCONNECT = "walletconnect", t.INJECTED = "injected";
|
|
682
|
-
})(e || (
|
|
574
|
+
})(e || (ne.WalletType = e = {})), ne;
|
|
683
575
|
}
|
|
684
|
-
var
|
|
685
|
-
function
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
var t = Wr();
|
|
689
|
-
Object.defineProperty(e, "AnalyticsEvent", { enumerable: !0, get: function() {
|
|
690
|
-
return t.AnalyticsEvent;
|
|
691
|
-
} }), Object.defineProperty(e, "AnalyticsEventBuilder", { enumerable: !0, get: function() {
|
|
692
|
-
return t.AnalyticsEventBuilder;
|
|
693
|
-
} });
|
|
694
|
-
var r = Br();
|
|
695
|
-
Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
|
|
696
|
-
return r.ChainType;
|
|
697
|
-
} }), Object.defineProperty(e, "ContractType", { enumerable: !0, get: function() {
|
|
698
|
-
return r.ContractType;
|
|
699
|
-
} }), Object.defineProperty(e, "ProcessedEventName", { enumerable: !0, get: function() {
|
|
700
|
-
return r.ProcessedEventName;
|
|
701
|
-
} });
|
|
702
|
-
var n = Fr();
|
|
703
|
-
Object.defineProperty(e, "NetworkError", { enumerable: !0, get: function() {
|
|
704
|
-
return n.NetworkError;
|
|
705
|
-
} });
|
|
706
|
-
var i = qr();
|
|
707
|
-
Object.defineProperty(e, "WalletType", { enumerable: !0, get: function() {
|
|
708
|
-
return i.WalletType;
|
|
709
|
-
} });
|
|
710
|
-
})(Ne)), Ne;
|
|
711
|
-
}
|
|
712
|
-
var X = {}, se = {}, ht;
|
|
713
|
-
function Gr() {
|
|
714
|
-
if (ht) return se;
|
|
715
|
-
ht = 1, Object.defineProperty(se, "__esModule", { value: !0 }), se.RateLimitPeriodType = void 0;
|
|
576
|
+
var ae = {}, qe;
|
|
577
|
+
function tr() {
|
|
578
|
+
if (qe) return ae;
|
|
579
|
+
qe = 1, Object.defineProperty(ae, "__esModule", { value: !0 }), ae.RateLimitPeriodType = void 0;
|
|
716
580
|
var e;
|
|
717
581
|
return (function(t) {
|
|
718
582
|
t.HOUR = "hour", t.DAY = "day", t.MONTH = "month";
|
|
719
|
-
})(e || (
|
|
720
|
-
}
|
|
721
|
-
var Et;
|
|
722
|
-
function Yr() {
|
|
723
|
-
return Et || (Et = 1, (function(e) {
|
|
724
|
-
var t = X && X.__createBinding || (Object.create ? (function(n, i, a, o) {
|
|
725
|
-
o === void 0 && (o = a);
|
|
726
|
-
var u = Object.getOwnPropertyDescriptor(i, a);
|
|
727
|
-
(!u || ("get" in u ? !i.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
|
|
728
|
-
return i[a];
|
|
729
|
-
} }), Object.defineProperty(n, o, u);
|
|
730
|
-
}) : (function(n, i, a, o) {
|
|
731
|
-
o === void 0 && (o = a), n[o] = i[a];
|
|
732
|
-
})), r = X && X.__exportStar || function(n, i) {
|
|
733
|
-
for (var a in n) a !== "default" && !Object.prototype.hasOwnProperty.call(i, a) && t(i, n, a);
|
|
734
|
-
};
|
|
735
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), r(Gr(), e);
|
|
736
|
-
})(X)), X;
|
|
583
|
+
})(e || (ae.RateLimitPeriodType = e = {})), ae;
|
|
737
584
|
}
|
|
738
|
-
var
|
|
739
|
-
function
|
|
740
|
-
if (
|
|
741
|
-
|
|
585
|
+
var H = {}, ze;
|
|
586
|
+
function bt() {
|
|
587
|
+
if (ze) return H;
|
|
588
|
+
ze = 1, Object.defineProperty(H, "__esModule", { value: !0 }), H.InvitationStatus = H.EntityRole = H.EntityType = void 0;
|
|
742
589
|
var e;
|
|
743
590
|
(function(n) {
|
|
744
591
|
n.PERSONAL = "personal", n.ORGANIZATION = "organization";
|
|
745
|
-
})(e || (
|
|
592
|
+
})(e || (H.EntityType = e = {}));
|
|
746
593
|
var t;
|
|
747
594
|
(function(n) {
|
|
748
|
-
n.OWNER = "owner", n.
|
|
749
|
-
})(t || (
|
|
595
|
+
n.OWNER = "owner", n.MANAGER = "manager", n.MEMBER = "member";
|
|
596
|
+
})(t || (H.EntityRole = t = {}));
|
|
750
597
|
var r;
|
|
751
598
|
return (function(n) {
|
|
752
599
|
n.PENDING = "pending", n.ACCEPTED = "accepted", n.DECLINED = "declined", n.EXPIRED = "expired";
|
|
753
|
-
})(r || (
|
|
754
|
-
}
|
|
755
|
-
var Ce = {}, yt;
|
|
756
|
-
function zr() {
|
|
757
|
-
return yt || (yt = 1, Object.defineProperty(Ce, "__esModule", { value: !0 })), Ce;
|
|
600
|
+
})(r || (H.InvitationStatus = r = {})), H;
|
|
758
601
|
}
|
|
759
|
-
var
|
|
760
|
-
function
|
|
761
|
-
return
|
|
762
|
-
}
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
return pt || (pt = 1, (function(e) {
|
|
766
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.ROLE_PERMISSIONS = void 0, e.getPermissionsForRole = a, e.hasPermission = o;
|
|
767
|
-
const t = tr(), r = {
|
|
602
|
+
var ye = {}, Ke;
|
|
603
|
+
function rr() {
|
|
604
|
+
return Ke || (Ke = 1, (function(e) {
|
|
605
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.ROLE_PERMISSIONS = e.MEMBER_PERMISSIONS = e.MANAGER_PERMISSIONS = e.OWNER_PERMISSIONS = void 0, e.getPermissionsForRole = r, e.hasPermission = n;
|
|
606
|
+
const t = bt();
|
|
607
|
+
e.OWNER_PERMISSIONS = {
|
|
768
608
|
canViewEntity: !0,
|
|
769
609
|
canEditEntity: !0,
|
|
770
610
|
canDeleteEntity: !0,
|
|
@@ -775,7 +615,7 @@ function Zr() {
|
|
|
775
615
|
canViewProjects: !0,
|
|
776
616
|
canManageApiKeys: !0,
|
|
777
617
|
canViewApiKeys: !0
|
|
778
|
-
},
|
|
618
|
+
}, e.MANAGER_PERMISSIONS = {
|
|
779
619
|
canViewEntity: !0,
|
|
780
620
|
canEditEntity: !0,
|
|
781
621
|
canDeleteEntity: !1,
|
|
@@ -786,7 +626,7 @@ function Zr() {
|
|
|
786
626
|
canViewProjects: !0,
|
|
787
627
|
canManageApiKeys: !0,
|
|
788
628
|
canViewApiKeys: !0
|
|
789
|
-
},
|
|
629
|
+
}, e.MEMBER_PERMISSIONS = {
|
|
790
630
|
canViewEntity: !0,
|
|
791
631
|
canEditEntity: !1,
|
|
792
632
|
canDeleteEntity: !1,
|
|
@@ -797,59 +637,24 @@ function Zr() {
|
|
|
797
637
|
canViewProjects: !0,
|
|
798
638
|
canManageApiKeys: !1,
|
|
799
639
|
canViewApiKeys: !0
|
|
640
|
+
}, e.ROLE_PERMISSIONS = {
|
|
641
|
+
[t.EntityRole.OWNER]: e.OWNER_PERMISSIONS,
|
|
642
|
+
[t.EntityRole.MANAGER]: e.MANAGER_PERMISSIONS,
|
|
643
|
+
[t.EntityRole.MEMBER]: e.MEMBER_PERMISSIONS
|
|
800
644
|
};
|
|
801
|
-
|
|
802
|
-
[
|
|
803
|
-
[t.EntityRole.ADMIN]: n,
|
|
804
|
-
[t.EntityRole.MEMBER]: i
|
|
805
|
-
};
|
|
806
|
-
function a(u) {
|
|
807
|
-
return e.ROLE_PERMISSIONS[u];
|
|
645
|
+
function r(i) {
|
|
646
|
+
return e.ROLE_PERMISSIONS[i];
|
|
808
647
|
}
|
|
809
|
-
function
|
|
810
|
-
return e.ROLE_PERMISSIONS[
|
|
648
|
+
function n(i, a) {
|
|
649
|
+
return e.ROLE_PERMISSIONS[i][a];
|
|
811
650
|
}
|
|
812
|
-
})(
|
|
651
|
+
})(ye)), ye;
|
|
813
652
|
}
|
|
814
|
-
var
|
|
815
|
-
function
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
var u = Object.getOwnPropertyDescriptor(i, a);
|
|
820
|
-
(!u || ("get" in u ? !i.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
|
|
821
|
-
return i[a];
|
|
822
|
-
} }), Object.defineProperty(n, o, u);
|
|
823
|
-
}) : (function(n, i, a, o) {
|
|
824
|
-
o === void 0 && (o = a), n[o] = i[a];
|
|
825
|
-
})), r = Q && Q.__exportStar || function(n, i) {
|
|
826
|
-
for (var a in n) a !== "default" && !Object.prototype.hasOwnProperty.call(i, a) && t(i, n, a);
|
|
827
|
-
};
|
|
828
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), r(tr(), e), r(zr(), e), r(Kr(), e), r(Zr(), e);
|
|
829
|
-
})(Q)), Q;
|
|
830
|
-
}
|
|
831
|
-
var vt;
|
|
832
|
-
function Tt() {
|
|
833
|
-
return vt || (vt = 1, (function(e) {
|
|
834
|
-
var t = K && K.__createBinding || (Object.create ? (function(n, i, a, o) {
|
|
835
|
-
o === void 0 && (o = a);
|
|
836
|
-
var u = Object.getOwnPropertyDescriptor(i, a);
|
|
837
|
-
(!u || ("get" in u ? !i.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
|
|
838
|
-
return i[a];
|
|
839
|
-
} }), Object.defineProperty(n, o, u);
|
|
840
|
-
}) : (function(n, i, a, o) {
|
|
841
|
-
o === void 0 && (o = a), n[o] = i[a];
|
|
842
|
-
})), r = K && K.__exportStar || function(n, i) {
|
|
843
|
-
for (var a in n) a !== "default" && !Object.prototype.hasOwnProperty.call(i, a) && t(i, n, a);
|
|
844
|
-
};
|
|
845
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), r(Mr(), e), r(Dr(), e), r(Ur(), e), r(Vr(), e), r(Hr(), e), r(Yr(), e), r(Jr(), e);
|
|
846
|
-
})(K)), K;
|
|
847
|
-
}
|
|
848
|
-
var x = {}, we = {}, ce = {}, Ot;
|
|
849
|
-
function Xr() {
|
|
850
|
-
if (Ot) return ce;
|
|
851
|
-
Ot = 1, Object.defineProperty(ce, "__esModule", { value: !0 }), ce.Web3UsernameValidator = void 0;
|
|
852
|
-
const e = ne();
|
|
653
|
+
var ie = {}, Ze;
|
|
654
|
+
function nr() {
|
|
655
|
+
if (Ze) return ie;
|
|
656
|
+
Ze = 1, Object.defineProperty(ie, "__esModule", { value: !0 }), ie.Web3UsernameValidator = void 0;
|
|
657
|
+
const e = x();
|
|
853
658
|
class t {
|
|
854
659
|
/**
|
|
855
660
|
* Comprehensive address validation for API endpoint
|
|
@@ -924,7 +729,7 @@ function Xr() {
|
|
|
924
729
|
return this.VALID_SNS_TLDS.includes(o) && this.SNS_NAME_REGEX.test(a) && a.length >= 1;
|
|
925
730
|
}
|
|
926
731
|
}
|
|
927
|
-
return
|
|
732
|
+
return ie.Web3UsernameValidator = t, t.EVM_REGEX = /^0x[a-fA-F0-9]{40}$/, t.BASE58_REGEX = /^[1-9A-HJ-NP-Za-km-z]+$/, t.ENS_REGEX = /^[a-zA-Z0-9]([a-zA-Z0-9]|(-[a-zA-Z0-9]))*\.(eth|box)$/i, t.SNS_NAME_REGEX = /^[a-zA-Z0-9]([a-zA-Z0-9]|(-[a-zA-Z0-9]))*$/, t.VALID_SNS_TLDS = [
|
|
928
733
|
"sol",
|
|
929
734
|
"abc",
|
|
930
735
|
"backpack",
|
|
@@ -938,76 +743,76 @@ function Xr() {
|
|
|
938
743
|
"shdw",
|
|
939
744
|
"stepn",
|
|
940
745
|
"web3"
|
|
941
|
-
],
|
|
746
|
+
], ie;
|
|
942
747
|
}
|
|
943
|
-
var
|
|
944
|
-
function
|
|
945
|
-
return
|
|
748
|
+
var pe = {}, Je;
|
|
749
|
+
function ar() {
|
|
750
|
+
return Je || (Je = 1, (function(e) {
|
|
946
751
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.parseJson = e.createAssertion = e.isUrl = e.isEmail = e.isValidDate = e.isErrorResponse = e.isSuccessResponse = e.isApiResponse = e.optional = e.validateArray = e.hasRequiredProperties = e.isNullish = e.isArray = e.isObject = e.isBoolean = e.isNumber = e.isString = e.createValidator = void 0;
|
|
947
|
-
const t = (
|
|
752
|
+
const t = (h, R) => (N) => {
|
|
948
753
|
try {
|
|
949
|
-
return
|
|
950
|
-
} catch (
|
|
754
|
+
return h(N) ? { isValid: !0, data: N } : { isValid: !1, error: `Invalid ${R}`, data: null };
|
|
755
|
+
} catch (P) {
|
|
951
756
|
return {
|
|
952
757
|
isValid: !1,
|
|
953
|
-
error: `Validation error for ${
|
|
758
|
+
error: `Validation error for ${R}: ${P instanceof Error ? P.message : "Unknown error"}`,
|
|
954
759
|
data: null
|
|
955
760
|
};
|
|
956
761
|
}
|
|
957
762
|
};
|
|
958
763
|
e.createValidator = t;
|
|
959
|
-
const r = (
|
|
764
|
+
const r = (h) => typeof h == "string";
|
|
960
765
|
e.isString = r;
|
|
961
|
-
const n = (
|
|
766
|
+
const n = (h) => typeof h == "number" && !isNaN(h);
|
|
962
767
|
e.isNumber = n;
|
|
963
|
-
const i = (
|
|
768
|
+
const i = (h) => typeof h == "boolean";
|
|
964
769
|
e.isBoolean = i;
|
|
965
|
-
const a = (
|
|
770
|
+
const a = (h) => typeof h == "object" && h !== null && !Array.isArray(h);
|
|
966
771
|
e.isObject = a;
|
|
967
|
-
const o = (
|
|
772
|
+
const o = (h) => Array.isArray(h);
|
|
968
773
|
e.isArray = o;
|
|
969
|
-
const
|
|
970
|
-
e.isNullish =
|
|
971
|
-
const c = (
|
|
774
|
+
const d = (h) => h == null;
|
|
775
|
+
e.isNullish = d;
|
|
776
|
+
const c = (h, R) => (0, e.isObject)(h) ? R.every((N) => N in h) : !1;
|
|
972
777
|
e.hasRequiredProperties = c;
|
|
973
|
-
const
|
|
974
|
-
e.validateArray =
|
|
975
|
-
const f = (
|
|
778
|
+
const l = (h, R) => (0, e.isArray)(h) ? h.every(R) : !1;
|
|
779
|
+
e.validateArray = l;
|
|
780
|
+
const f = (h) => (R) => R === void 0 || h(R);
|
|
976
781
|
e.optional = f;
|
|
977
|
-
const
|
|
978
|
-
e.isApiResponse =
|
|
979
|
-
const m = (
|
|
782
|
+
const u = (h) => (0, e.isObject)(h) && (0, e.isBoolean)(h.success);
|
|
783
|
+
e.isApiResponse = u;
|
|
784
|
+
const m = (h, R) => !(0, e.isApiResponse)(h) || !h.success ? !1 : R && "data" in h ? R(h.data) : !0;
|
|
980
785
|
e.isSuccessResponse = m;
|
|
981
|
-
const b = (
|
|
786
|
+
const b = (h) => (0, e.isApiResponse)(h) && !h.success && "error" in h && (0, e.isString)(h.error);
|
|
982
787
|
e.isErrorResponse = b;
|
|
983
|
-
const S = (
|
|
984
|
-
if (!(0, e.isString)(
|
|
788
|
+
const S = (h) => {
|
|
789
|
+
if (!(0, e.isString)(h))
|
|
985
790
|
return !1;
|
|
986
|
-
const
|
|
987
|
-
return !isNaN(
|
|
791
|
+
const R = new Date(h);
|
|
792
|
+
return !isNaN(R.getTime());
|
|
988
793
|
};
|
|
989
794
|
e.isValidDate = S;
|
|
990
|
-
const p = (
|
|
795
|
+
const p = (h) => (0, e.isString)(h) ? /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(h) : !1;
|
|
991
796
|
e.isEmail = p;
|
|
992
|
-
const g = (
|
|
993
|
-
if (!(0, e.isString)(
|
|
797
|
+
const g = (h) => {
|
|
798
|
+
if (!(0, e.isString)(h))
|
|
994
799
|
return !1;
|
|
995
800
|
try {
|
|
996
|
-
return new URL(
|
|
801
|
+
return new URL(h), !0;
|
|
997
802
|
} catch {
|
|
998
803
|
return !1;
|
|
999
804
|
}
|
|
1000
805
|
};
|
|
1001
806
|
e.isUrl = g;
|
|
1002
|
-
const A = (
|
|
1003
|
-
if (!
|
|
1004
|
-
throw new TypeError(`Invalid ${
|
|
807
|
+
const A = (h, R) => (N, P = R) => {
|
|
808
|
+
if (!h(N))
|
|
809
|
+
throw new TypeError(`Invalid ${P}: expected ${R}`);
|
|
1005
810
|
};
|
|
1006
811
|
e.createAssertion = A;
|
|
1007
|
-
const y = (
|
|
812
|
+
const y = (h, R) => {
|
|
1008
813
|
try {
|
|
1009
|
-
const N = JSON.parse(
|
|
1010
|
-
return
|
|
814
|
+
const N = JSON.parse(h);
|
|
815
|
+
return R ? R(N) ? { isValid: !0, data: N } : {
|
|
1011
816
|
isValid: !1,
|
|
1012
817
|
error: "Parsed JSON does not match expected type",
|
|
1013
818
|
data: null
|
|
@@ -1021,83 +826,35 @@ function Qr() {
|
|
|
1021
826
|
}
|
|
1022
827
|
};
|
|
1023
828
|
e.parseJson = y;
|
|
1024
|
-
})(
|
|
829
|
+
})(pe)), pe;
|
|
1025
830
|
}
|
|
1026
|
-
var
|
|
1027
|
-
function
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
return t.Web3UsernameValidator;
|
|
1033
|
-
} });
|
|
1034
|
-
var r = Qr();
|
|
1035
|
-
Object.defineProperty(e, "createAssertion", { enumerable: !0, get: function() {
|
|
1036
|
-
return r.createAssertion;
|
|
1037
|
-
} }), Object.defineProperty(e, "createValidator", { enumerable: !0, get: function() {
|
|
1038
|
-
return r.createValidator;
|
|
1039
|
-
} }), Object.defineProperty(e, "hasRequiredProperties", { enumerable: !0, get: function() {
|
|
1040
|
-
return r.hasRequiredProperties;
|
|
1041
|
-
} }), Object.defineProperty(e, "isApiResponse", { enumerable: !0, get: function() {
|
|
1042
|
-
return r.isApiResponse;
|
|
1043
|
-
} }), Object.defineProperty(e, "isArray", { enumerable: !0, get: function() {
|
|
1044
|
-
return r.isArray;
|
|
1045
|
-
} }), Object.defineProperty(e, "isBoolean", { enumerable: !0, get: function() {
|
|
1046
|
-
return r.isBoolean;
|
|
1047
|
-
} }), Object.defineProperty(e, "isEmail", { enumerable: !0, get: function() {
|
|
1048
|
-
return r.isEmail;
|
|
1049
|
-
} }), Object.defineProperty(e, "isErrorResponse", { enumerable: !0, get: function() {
|
|
1050
|
-
return r.isErrorResponse;
|
|
1051
|
-
} }), Object.defineProperty(e, "isNullish", { enumerable: !0, get: function() {
|
|
1052
|
-
return r.isNullish;
|
|
1053
|
-
} }), Object.defineProperty(e, "isNumber", { enumerable: !0, get: function() {
|
|
1054
|
-
return r.isNumber;
|
|
1055
|
-
} }), Object.defineProperty(e, "isObject", { enumerable: !0, get: function() {
|
|
1056
|
-
return r.isObject;
|
|
1057
|
-
} }), Object.defineProperty(e, "isString", { enumerable: !0, get: function() {
|
|
1058
|
-
return r.isString;
|
|
1059
|
-
} }), Object.defineProperty(e, "isSuccessResponse", { enumerable: !0, get: function() {
|
|
1060
|
-
return r.isSuccessResponse;
|
|
1061
|
-
} }), Object.defineProperty(e, "isUrl", { enumerable: !0, get: function() {
|
|
1062
|
-
return r.isUrl;
|
|
1063
|
-
} }), Object.defineProperty(e, "isValidDate", { enumerable: !0, get: function() {
|
|
1064
|
-
return r.isValidDate;
|
|
1065
|
-
} }), Object.defineProperty(e, "optional", { enumerable: !0, get: function() {
|
|
1066
|
-
return r.optional;
|
|
1067
|
-
} }), Object.defineProperty(e, "parseJson", { enumerable: !0, get: function() {
|
|
1068
|
-
return r.parseJson;
|
|
1069
|
-
} }), Object.defineProperty(e, "validateArray", { enumerable: !0, get: function() {
|
|
1070
|
-
return r.validateArray;
|
|
1071
|
-
} });
|
|
1072
|
-
})(we)), we;
|
|
1073
|
-
}
|
|
1074
|
-
var Le = {}, j = {}, _t;
|
|
1075
|
-
function $r() {
|
|
1076
|
-
if (_t) return j;
|
|
1077
|
-
_t = 1, Object.defineProperty(j, "__esModule", { value: !0 }), j.createMultiChainId = e, j.createUserMultiChainId = t, j.createChainStatsId = r, j.createDelegationId = n, j.normalizeAddress = i, j.formatBigInt = a, j.isZeroAddress = o, j.isTestNet = u, j.validateEventArgs = c;
|
|
1078
|
-
function e(s, f, l) {
|
|
1079
|
-
return `${s}-${f}-${l}`;
|
|
831
|
+
var U = {}, Xe;
|
|
832
|
+
function ir() {
|
|
833
|
+
if (Xe) return U;
|
|
834
|
+
Xe = 1, Object.defineProperty(U, "__esModule", { value: !0 }), U.createMultiChainId = e, U.createUserMultiChainId = t, U.createChainStatsId = r, U.createDelegationId = n, U.normalizeAddress = i, U.formatBigInt = a, U.isZeroAddress = o, U.isTestNet = d, U.validateEventArgs = c;
|
|
835
|
+
function e(l, f, u) {
|
|
836
|
+
return `${l}-${f}-${u}`;
|
|
1080
837
|
}
|
|
1081
|
-
function t(
|
|
1082
|
-
return `${
|
|
838
|
+
function t(l, f) {
|
|
839
|
+
return `${l}-${f.toLowerCase()}`;
|
|
1083
840
|
}
|
|
1084
|
-
function r(
|
|
1085
|
-
return `${
|
|
841
|
+
function r(l) {
|
|
842
|
+
return `${l}-global`;
|
|
1086
843
|
}
|
|
1087
|
-
function n(
|
|
1088
|
-
return `${
|
|
844
|
+
function n(l, f) {
|
|
845
|
+
return `${l.toLowerCase()}-${f}`;
|
|
1089
846
|
}
|
|
1090
|
-
function i(
|
|
1091
|
-
return
|
|
847
|
+
function i(l) {
|
|
848
|
+
return l.toLowerCase();
|
|
1092
849
|
}
|
|
1093
|
-
function a(
|
|
1094
|
-
const
|
|
850
|
+
function a(l, f = 18) {
|
|
851
|
+
const u = BigInt(10 ** f), m = l / u, b = l % u;
|
|
1095
852
|
return b === 0n ? m.toString() : `${m}.${b.toString().padStart(f, "0").replace(/0+$/, "")}`;
|
|
1096
853
|
}
|
|
1097
|
-
function o(
|
|
1098
|
-
return
|
|
854
|
+
function o(l) {
|
|
855
|
+
return l.toLowerCase() === "0x0000000000000000000000000000000000000000";
|
|
1099
856
|
}
|
|
1100
|
-
function
|
|
857
|
+
function d(l) {
|
|
1101
858
|
const f = /* @__PURE__ */ new Set([
|
|
1102
859
|
31337,
|
|
1103
860
|
// Hardhat (local development)
|
|
@@ -1115,7 +872,7 @@ function $r() {
|
|
|
1115
872
|
// Base Sepolia (if configured)
|
|
1116
873
|
43113
|
|
1117
874
|
// Avalanche Fuji (if configured)
|
|
1118
|
-
]),
|
|
875
|
+
]), u = /* @__PURE__ */ new Set([
|
|
1119
876
|
-102,
|
|
1120
877
|
// Solana Devnet
|
|
1121
878
|
-103,
|
|
@@ -1123,84 +880,32 @@ function $r() {
|
|
|
1123
880
|
-104
|
|
1124
881
|
// Solana Localnet
|
|
1125
882
|
]);
|
|
1126
|
-
return f.has(
|
|
883
|
+
return f.has(l) || u.has(l);
|
|
1127
884
|
}
|
|
1128
|
-
function c(
|
|
1129
|
-
for (const
|
|
1130
|
-
if (
|
|
1131
|
-
return console.error(`❌ Missing required field: ${String(
|
|
885
|
+
function c(l, f) {
|
|
886
|
+
for (const u of f)
|
|
887
|
+
if (l[u] === void 0 || l[u] === null)
|
|
888
|
+
return console.error(`❌ Missing required field: ${String(u)}`), !1;
|
|
1132
889
|
return !0;
|
|
1133
890
|
}
|
|
1134
|
-
return
|
|
891
|
+
return U;
|
|
1135
892
|
}
|
|
1136
|
-
var
|
|
1137
|
-
function
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
return t.isSNSName;
|
|
1153
|
-
} }), Object.defineProperty(e, "isValidSignature", { enumerable: !0, get: function() {
|
|
1154
|
-
return t.isValidSignature;
|
|
1155
|
-
} }), Object.defineProperty(e, "isValidWalletAddress", { enumerable: !0, get: function() {
|
|
1156
|
-
return t.isValidWalletAddress;
|
|
1157
|
-
} }), Object.defineProperty(e, "parseEmailAddress", { enumerable: !0, get: function() {
|
|
1158
|
-
return t.parseEmailAddress;
|
|
1159
|
-
} });
|
|
1160
|
-
var r = Ge();
|
|
1161
|
-
Object.defineProperty(e, "isEvmAddress", { enumerable: !0, get: function() {
|
|
1162
|
-
return r.isEvmAddress;
|
|
1163
|
-
} }), Object.defineProperty(e, "isSolanaAddress", { enumerable: !0, get: function() {
|
|
1164
|
-
return r.isSolanaAddress;
|
|
1165
|
-
} });
|
|
1166
|
-
var n = $r();
|
|
1167
|
-
Object.defineProperty(e, "createChainStatsId", { enumerable: !0, get: function() {
|
|
1168
|
-
return n.createChainStatsId;
|
|
1169
|
-
} }), Object.defineProperty(e, "createDelegationId", { enumerable: !0, get: function() {
|
|
1170
|
-
return n.createDelegationId;
|
|
1171
|
-
} }), Object.defineProperty(e, "createMultiChainId", { enumerable: !0, get: function() {
|
|
1172
|
-
return n.createMultiChainId;
|
|
1173
|
-
} }), Object.defineProperty(e, "createUserMultiChainId", { enumerable: !0, get: function() {
|
|
1174
|
-
return n.createUserMultiChainId;
|
|
1175
|
-
} }), Object.defineProperty(e, "formatBigInt", { enumerable: !0, get: function() {
|
|
1176
|
-
return n.formatBigInt;
|
|
1177
|
-
} }), Object.defineProperty(e, "isTestNet", { enumerable: !0, get: function() {
|
|
1178
|
-
return n.isTestNet;
|
|
1179
|
-
} }), Object.defineProperty(e, "isZeroAddress", { enumerable: !0, get: function() {
|
|
1180
|
-
return n.isZeroAddress;
|
|
1181
|
-
} }), Object.defineProperty(e, "normalizeAddress", { enumerable: !0, get: function() {
|
|
1182
|
-
return n.normalizeAddress;
|
|
1183
|
-
} }), Object.defineProperty(e, "validateEventArgs", { enumerable: !0, get: function() {
|
|
1184
|
-
return n.validateEventArgs;
|
|
1185
|
-
} });
|
|
1186
|
-
})(Le)), Le;
|
|
1187
|
-
}
|
|
1188
|
-
var De = {}, U = {}, Pt;
|
|
1189
|
-
function tn() {
|
|
1190
|
-
if (Pt) return U;
|
|
1191
|
-
Pt = 1, Object.defineProperty(U, "__esModule", { value: !0 }), U.generateAuthMessage = t, U.isAuthExpired = r, U.getAuthStatusText = n, U.canAccessProtectedFeatures = i, U.isAuthStatusConnected = a, U.generateNonce = o, U.extractNonceFromMessage = u, U.isValidNonce = c;
|
|
1192
|
-
const e = ne();
|
|
1193
|
-
function t(s, f) {
|
|
1194
|
-
const l = f || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
1195
|
-
return `Authenticate with ${s}
|
|
1196
|
-
Nonce: ${l}`;
|
|
1197
|
-
}
|
|
1198
|
-
function r(s, f = 24) {
|
|
1199
|
-
const l = new Date(s.getTime() + f * 60 * 60 * 1e3);
|
|
1200
|
-
return /* @__PURE__ */ new Date() > l;
|
|
1201
|
-
}
|
|
1202
|
-
function n(s) {
|
|
1203
|
-
switch (s) {
|
|
893
|
+
var V = {}, Qe;
|
|
894
|
+
function or() {
|
|
895
|
+
if (Qe) return V;
|
|
896
|
+
Qe = 1, Object.defineProperty(V, "__esModule", { value: !0 }), V.generateAuthMessage = t, V.isAuthExpired = r, V.getAuthStatusText = n, V.canAccessProtectedFeatures = i, V.isAuthStatusConnected = a, V.generateNonce = o, V.extractNonceFromMessage = d, V.isValidNonce = c;
|
|
897
|
+
const e = x();
|
|
898
|
+
function t(l, f) {
|
|
899
|
+
const u = f || `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
900
|
+
return `Authenticate with ${l}
|
|
901
|
+
Nonce: ${u}`;
|
|
902
|
+
}
|
|
903
|
+
function r(l, f = 24) {
|
|
904
|
+
const u = new Date(l.getTime() + f * 60 * 60 * 1e3);
|
|
905
|
+
return /* @__PURE__ */ new Date() > u;
|
|
906
|
+
}
|
|
907
|
+
function n(l) {
|
|
908
|
+
switch (l) {
|
|
1204
909
|
case e.AuthStatus.DISCONNECTED:
|
|
1205
910
|
return "Not connected";
|
|
1206
911
|
case e.AuthStatus.CONNECTED:
|
|
@@ -1211,62 +916,38 @@ Nonce: ${l}`;
|
|
|
1211
916
|
return "Unknown status";
|
|
1212
917
|
}
|
|
1213
918
|
}
|
|
1214
|
-
function i(
|
|
1215
|
-
return
|
|
919
|
+
function i(l) {
|
|
920
|
+
return l === e.AuthStatus.VERIFIED;
|
|
1216
921
|
}
|
|
1217
|
-
function a(
|
|
1218
|
-
return
|
|
922
|
+
function a(l) {
|
|
923
|
+
return l === e.AuthStatus.CONNECTED || l === e.AuthStatus.VERIFIED;
|
|
1219
924
|
}
|
|
1220
925
|
function o() {
|
|
1221
926
|
return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
|
|
1222
927
|
}
|
|
1223
|
-
function
|
|
1224
|
-
const f =
|
|
928
|
+
function d(l) {
|
|
929
|
+
const f = l.match(/Nonce:\s*(.+)$/m);
|
|
1225
930
|
return f ? f[1].trim() : void 0;
|
|
1226
931
|
}
|
|
1227
|
-
function c(
|
|
1228
|
-
if (!
|
|
932
|
+
function c(l) {
|
|
933
|
+
if (!l || typeof l != "string" || l.length < 10)
|
|
1229
934
|
return !1;
|
|
1230
|
-
const f =
|
|
935
|
+
const f = l.split("-");
|
|
1231
936
|
if (f.length >= 2) {
|
|
1232
|
-
const
|
|
1233
|
-
if (!isNaN(
|
|
937
|
+
const u = parseInt(f[0], 10);
|
|
938
|
+
if (!isNaN(u)) {
|
|
1234
939
|
const m = Date.now() - 864e5;
|
|
1235
|
-
if (
|
|
940
|
+
if (u < m)
|
|
1236
941
|
return !1;
|
|
1237
942
|
}
|
|
1238
943
|
}
|
|
1239
944
|
return !0;
|
|
1240
945
|
}
|
|
1241
|
-
return
|
|
1242
|
-
}
|
|
1243
|
-
var It;
|
|
1244
|
-
function rn() {
|
|
1245
|
-
return It || (It = 1, (function(e) {
|
|
1246
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.isValidNonce = e.isAuthStatusConnected = e.isAuthExpired = e.getAuthStatusText = e.generateNonce = e.generateAuthMessage = e.extractNonceFromMessage = e.canAccessProtectedFeatures = void 0;
|
|
1247
|
-
var t = tn();
|
|
1248
|
-
Object.defineProperty(e, "canAccessProtectedFeatures", { enumerable: !0, get: function() {
|
|
1249
|
-
return t.canAccessProtectedFeatures;
|
|
1250
|
-
} }), Object.defineProperty(e, "extractNonceFromMessage", { enumerable: !0, get: function() {
|
|
1251
|
-
return t.extractNonceFromMessage;
|
|
1252
|
-
} }), Object.defineProperty(e, "generateAuthMessage", { enumerable: !0, get: function() {
|
|
1253
|
-
return t.generateAuthMessage;
|
|
1254
|
-
} }), Object.defineProperty(e, "generateNonce", { enumerable: !0, get: function() {
|
|
1255
|
-
return t.generateNonce;
|
|
1256
|
-
} }), Object.defineProperty(e, "getAuthStatusText", { enumerable: !0, get: function() {
|
|
1257
|
-
return t.getAuthStatusText;
|
|
1258
|
-
} }), Object.defineProperty(e, "isAuthExpired", { enumerable: !0, get: function() {
|
|
1259
|
-
return t.isAuthExpired;
|
|
1260
|
-
} }), Object.defineProperty(e, "isAuthStatusConnected", { enumerable: !0, get: function() {
|
|
1261
|
-
return t.isAuthStatusConnected;
|
|
1262
|
-
} }), Object.defineProperty(e, "isValidNonce", { enumerable: !0, get: function() {
|
|
1263
|
-
return t.isValidNonce;
|
|
1264
|
-
} });
|
|
1265
|
-
})(De)), De;
|
|
946
|
+
return V;
|
|
1266
947
|
}
|
|
1267
|
-
var
|
|
1268
|
-
function
|
|
1269
|
-
return
|
|
948
|
+
var Ae = {}, xe;
|
|
949
|
+
function ur() {
|
|
950
|
+
return xe || (xe = 1, (function(e) {
|
|
1270
951
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CLAIM_PERIOD_DAYS = e.USDC_DECIMALS = void 0, e.formatUSDC = t, e.parseUSDC = r, e.USDC_DECIMALS = 6, e.CLAIM_PERIOD_DAYS = 60;
|
|
1271
952
|
function t(n) {
|
|
1272
953
|
return (n / Math.pow(10, e.USDC_DECIMALS)).toFixed(2);
|
|
@@ -1274,24 +955,24 @@ function nn() {
|
|
|
1274
955
|
function r(n) {
|
|
1275
956
|
return Math.floor(parseFloat(n) * Math.pow(10, e.USDC_DECIMALS));
|
|
1276
957
|
}
|
|
1277
|
-
})(
|
|
958
|
+
})(Ae)), Ae;
|
|
1278
959
|
}
|
|
1279
|
-
var
|
|
1280
|
-
function
|
|
1281
|
-
if (
|
|
1282
|
-
|
|
1283
|
-
function e(
|
|
1284
|
-
const c = typeof
|
|
960
|
+
var B = {}, $e;
|
|
961
|
+
function lr() {
|
|
962
|
+
if ($e) return B;
|
|
963
|
+
$e = 1, Object.defineProperty(B, "__esModule", { value: !0 }), B.formatEmailDate = e, B.formatTimestamp = t, B.formatRelativeTime = r, B.parseDate = n, B.isDateInRange = i, B.addDays = a, B.addHours = o;
|
|
964
|
+
function e(d) {
|
|
965
|
+
const c = typeof d == "string" ? new Date(d) : d;
|
|
1285
966
|
if (isNaN(c.getTime()))
|
|
1286
967
|
return "Invalid date";
|
|
1287
|
-
const
|
|
1288
|
-
return
|
|
968
|
+
const l = /* @__PURE__ */ new Date(), f = l.getTime() - c.getTime(), u = Math.floor(f / (1e3 * 60 * 60 * 24));
|
|
969
|
+
return u === 0 ? c.toLocaleTimeString("en-US", {
|
|
1289
970
|
hour: "numeric",
|
|
1290
971
|
minute: "2-digit",
|
|
1291
972
|
hour12: !0
|
|
1292
|
-
}) :
|
|
973
|
+
}) : u === 1 ? "Yesterday" : u < 7 ? c.toLocaleDateString("en-US", {
|
|
1293
974
|
weekday: "long"
|
|
1294
|
-
}) : c.getFullYear() ===
|
|
975
|
+
}) : c.getFullYear() === l.getFullYear() ? c.toLocaleDateString("en-US", {
|
|
1295
976
|
month: "short",
|
|
1296
977
|
day: "numeric"
|
|
1297
978
|
}) : c.toLocaleDateString("en-US", {
|
|
@@ -1300,41 +981,41 @@ function an() {
|
|
|
1300
981
|
day: "numeric"
|
|
1301
982
|
});
|
|
1302
983
|
}
|
|
1303
|
-
function t(
|
|
1304
|
-
return new Date(
|
|
984
|
+
function t(d) {
|
|
985
|
+
return new Date(d).toISOString();
|
|
1305
986
|
}
|
|
1306
|
-
function r(
|
|
1307
|
-
const c = typeof
|
|
987
|
+
function r(d) {
|
|
988
|
+
const c = typeof d == "string" || typeof d == "number" ? new Date(d) : d;
|
|
1308
989
|
if (isNaN(c.getTime()))
|
|
1309
990
|
return "Invalid date";
|
|
1310
|
-
const f = (/* @__PURE__ */ new Date()).getTime() - c.getTime(),
|
|
1311
|
-
return
|
|
991
|
+
const f = (/* @__PURE__ */ new Date()).getTime() - c.getTime(), u = Math.floor(f / 1e3), m = Math.floor(u / 60), b = Math.floor(m / 60), S = Math.floor(b / 24), p = Math.floor(S / 7), g = Math.floor(S / 30), A = Math.floor(S / 365);
|
|
992
|
+
return u < 60 ? "just now" : m < 60 ? m === 1 ? "1 minute ago" : `${m} minutes ago` : b < 24 ? b === 1 ? "1 hour ago" : `${b} hours ago` : S < 7 ? S === 1 ? "1 day ago" : `${S} days ago` : p < 4 ? p === 1 ? "1 week ago" : `${p} weeks ago` : g < 12 ? g === 1 ? "1 month ago" : `${g} months ago` : A === 1 ? "1 year ago" : `${A} years ago`;
|
|
1312
993
|
}
|
|
1313
|
-
function n(
|
|
994
|
+
function n(d) {
|
|
1314
995
|
try {
|
|
1315
|
-
const c = new Date(
|
|
996
|
+
const c = new Date(d);
|
|
1316
997
|
return isNaN(c.getTime()) ? null : c;
|
|
1317
998
|
} catch {
|
|
1318
999
|
return null;
|
|
1319
1000
|
}
|
|
1320
1001
|
}
|
|
1321
|
-
function i(
|
|
1322
|
-
return
|
|
1002
|
+
function i(d, c, l) {
|
|
1003
|
+
return d >= c && d <= l;
|
|
1323
1004
|
}
|
|
1324
|
-
function a(
|
|
1325
|
-
const
|
|
1326
|
-
return
|
|
1005
|
+
function a(d, c) {
|
|
1006
|
+
const l = new Date(d);
|
|
1007
|
+
return l.setDate(l.getDate() + c), l;
|
|
1327
1008
|
}
|
|
1328
|
-
function o(
|
|
1329
|
-
const
|
|
1330
|
-
return
|
|
1009
|
+
function o(d, c) {
|
|
1010
|
+
const l = new Date(d);
|
|
1011
|
+
return l.setHours(l.getHours() + c), l;
|
|
1331
1012
|
}
|
|
1332
|
-
return
|
|
1013
|
+
return B;
|
|
1333
1014
|
}
|
|
1334
|
-
var
|
|
1335
|
-
function
|
|
1336
|
-
if (
|
|
1337
|
-
|
|
1015
|
+
var C = {}, et;
|
|
1016
|
+
function sr() {
|
|
1017
|
+
if (et) return C;
|
|
1018
|
+
et = 1, Object.defineProperty(C, "__esModule", { value: !0 }), C.truncate = e, C.capitalize = t, C.toTitleCase = r, C.toKebabCase = n, C.toCamelCase = i, C.toSnakeCase = a, C.normalizeWhitespace = o, C.isBlank = d, C.isNotBlank = c, C.escapeHtml = l, C.stripHtml = f, C.getInitials = u, C.formatBytes = m, C.randomString = b, C.pluralize = S, C.formatNumber = p;
|
|
1338
1019
|
function e(g, A, y = "...") {
|
|
1339
1020
|
return !g || g.length <= A ? g : g.slice(0, A - y.length) + y;
|
|
1340
1021
|
}
|
|
@@ -1356,13 +1037,13 @@ function on() {
|
|
|
1356
1037
|
function o(g) {
|
|
1357
1038
|
return g && g.replace(/\s+/g, " ").trim();
|
|
1358
1039
|
}
|
|
1359
|
-
function
|
|
1040
|
+
function d(g) {
|
|
1360
1041
|
return !g || g.trim().length === 0;
|
|
1361
1042
|
}
|
|
1362
1043
|
function c(g) {
|
|
1363
|
-
return !
|
|
1044
|
+
return !d(g);
|
|
1364
1045
|
}
|
|
1365
|
-
function
|
|
1046
|
+
function l(g) {
|
|
1366
1047
|
if (!g)
|
|
1367
1048
|
return g;
|
|
1368
1049
|
const A = {
|
|
@@ -1377,14 +1058,14 @@ function on() {
|
|
|
1377
1058
|
function f(g) {
|
|
1378
1059
|
return g && g.replace(/<[^>]*>/g, "");
|
|
1379
1060
|
}
|
|
1380
|
-
function
|
|
1381
|
-
return g ? g.trim().split(/\s+/).slice(0, A).map((
|
|
1061
|
+
function u(g, A = 2) {
|
|
1062
|
+
return g ? g.trim().split(/\s+/).slice(0, A).map((R) => R.charAt(0).toUpperCase()).join("") : "";
|
|
1382
1063
|
}
|
|
1383
1064
|
function m(g, A = 2) {
|
|
1384
1065
|
if (g === 0)
|
|
1385
1066
|
return "0 Bytes";
|
|
1386
|
-
const y = 1024,
|
|
1387
|
-
return parseFloat((g / Math.pow(y, N)).toFixed(
|
|
1067
|
+
const y = 1024, h = A < 0 ? 0 : A, R = ["Bytes", "KB", "MB", "GB", "TB", "PB"], N = Math.floor(Math.log(g) / Math.log(y));
|
|
1068
|
+
return parseFloat((g / Math.pow(y, N)).toFixed(h)) + " " + R[N];
|
|
1388
1069
|
}
|
|
1389
1070
|
function b(g, A = "alphanumeric") {
|
|
1390
1071
|
let y;
|
|
@@ -1404,10 +1085,10 @@ function on() {
|
|
|
1404
1085
|
default:
|
|
1405
1086
|
y = A;
|
|
1406
1087
|
}
|
|
1407
|
-
let
|
|
1408
|
-
for (let
|
|
1409
|
-
|
|
1410
|
-
return
|
|
1088
|
+
let h = "";
|
|
1089
|
+
for (let R = 0; R < g; R++)
|
|
1090
|
+
h += y.charAt(Math.floor(Math.random() * y.length));
|
|
1091
|
+
return h;
|
|
1411
1092
|
}
|
|
1412
1093
|
function S(g, A, y) {
|
|
1413
1094
|
return g === 1 ? A : y || `${A}s`;
|
|
@@ -1415,78 +1096,12 @@ function on() {
|
|
|
1415
1096
|
function p(g) {
|
|
1416
1097
|
return g.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
|
|
1417
1098
|
}
|
|
1418
|
-
return
|
|
1099
|
+
return C;
|
|
1419
1100
|
}
|
|
1420
|
-
var
|
|
1421
|
-
function
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
var t = nn();
|
|
1425
|
-
Object.defineProperty(e, "CLAIM_PERIOD_DAYS", { enumerable: !0, get: function() {
|
|
1426
|
-
return t.CLAIM_PERIOD_DAYS;
|
|
1427
|
-
} }), Object.defineProperty(e, "USDC_DECIMALS", { enumerable: !0, get: function() {
|
|
1428
|
-
return t.USDC_DECIMALS;
|
|
1429
|
-
} }), Object.defineProperty(e, "formatUSDC", { enumerable: !0, get: function() {
|
|
1430
|
-
return t.formatUSDC;
|
|
1431
|
-
} }), Object.defineProperty(e, "parseUSDC", { enumerable: !0, get: function() {
|
|
1432
|
-
return t.parseUSDC;
|
|
1433
|
-
} });
|
|
1434
|
-
var r = an();
|
|
1435
|
-
Object.defineProperty(e, "addDays", { enumerable: !0, get: function() {
|
|
1436
|
-
return r.addDays;
|
|
1437
|
-
} }), Object.defineProperty(e, "addHours", { enumerable: !0, get: function() {
|
|
1438
|
-
return r.addHours;
|
|
1439
|
-
} }), Object.defineProperty(e, "formatEmailDate", { enumerable: !0, get: function() {
|
|
1440
|
-
return r.formatEmailDate;
|
|
1441
|
-
} }), Object.defineProperty(e, "formatRelativeTime", { enumerable: !0, get: function() {
|
|
1442
|
-
return r.formatRelativeTime;
|
|
1443
|
-
} }), Object.defineProperty(e, "formatTimestamp", { enumerable: !0, get: function() {
|
|
1444
|
-
return r.formatTimestamp;
|
|
1445
|
-
} }), Object.defineProperty(e, "isDateInRange", { enumerable: !0, get: function() {
|
|
1446
|
-
return r.isDateInRange;
|
|
1447
|
-
} }), Object.defineProperty(e, "parseDate", { enumerable: !0, get: function() {
|
|
1448
|
-
return r.parseDate;
|
|
1449
|
-
} });
|
|
1450
|
-
var n = on();
|
|
1451
|
-
Object.defineProperty(e, "capitalize", { enumerable: !0, get: function() {
|
|
1452
|
-
return n.capitalize;
|
|
1453
|
-
} }), Object.defineProperty(e, "escapeHtml", { enumerable: !0, get: function() {
|
|
1454
|
-
return n.escapeHtml;
|
|
1455
|
-
} }), Object.defineProperty(e, "formatBytes", { enumerable: !0, get: function() {
|
|
1456
|
-
return n.formatBytes;
|
|
1457
|
-
} }), Object.defineProperty(e, "formatNumber", { enumerable: !0, get: function() {
|
|
1458
|
-
return n.formatNumber;
|
|
1459
|
-
} }), Object.defineProperty(e, "getInitials", { enumerable: !0, get: function() {
|
|
1460
|
-
return n.getInitials;
|
|
1461
|
-
} }), Object.defineProperty(e, "isBlank", { enumerable: !0, get: function() {
|
|
1462
|
-
return n.isBlank;
|
|
1463
|
-
} }), Object.defineProperty(e, "isNotBlank", { enumerable: !0, get: function() {
|
|
1464
|
-
return n.isNotBlank;
|
|
1465
|
-
} }), Object.defineProperty(e, "normalizeWhitespace", { enumerable: !0, get: function() {
|
|
1466
|
-
return n.normalizeWhitespace;
|
|
1467
|
-
} }), Object.defineProperty(e, "pluralize", { enumerable: !0, get: function() {
|
|
1468
|
-
return n.pluralize;
|
|
1469
|
-
} }), Object.defineProperty(e, "randomString", { enumerable: !0, get: function() {
|
|
1470
|
-
return n.randomString;
|
|
1471
|
-
} }), Object.defineProperty(e, "stripHtml", { enumerable: !0, get: function() {
|
|
1472
|
-
return n.stripHtml;
|
|
1473
|
-
} }), Object.defineProperty(e, "toCamelCase", { enumerable: !0, get: function() {
|
|
1474
|
-
return n.toCamelCase;
|
|
1475
|
-
} }), Object.defineProperty(e, "toKebabCase", { enumerable: !0, get: function() {
|
|
1476
|
-
return n.toKebabCase;
|
|
1477
|
-
} }), Object.defineProperty(e, "toSnakeCase", { enumerable: !0, get: function() {
|
|
1478
|
-
return n.toSnakeCase;
|
|
1479
|
-
} }), Object.defineProperty(e, "toTitleCase", { enumerable: !0, get: function() {
|
|
1480
|
-
return n.toTitleCase;
|
|
1481
|
-
} }), Object.defineProperty(e, "truncate", { enumerable: !0, get: function() {
|
|
1482
|
-
return n.truncate;
|
|
1483
|
-
} });
|
|
1484
|
-
})(je)), je;
|
|
1485
|
-
}
|
|
1486
|
-
var ke = {}, O = {}, jt;
|
|
1487
|
-
function ln() {
|
|
1488
|
-
if (jt) return O;
|
|
1489
|
-
jt = 1, Object.defineProperty(O, "__esModule", { value: !0 }), O.Z_INDEX = O.ANIMATION = O.NETWORK_IDS = O.WALLET_NAMES = O.CONTACT_INFO = O.ROUTES = O.SUCCESS_MESSAGES = O.ERROR_MESSAGES = O.TIME_FORMAT = O.SUBSCRIPTION_TIERS = O.EMAIL_CONFIG = O.STORAGE_KEYS = O.CHAIN_TYPE = O.AUTH_STATUS = O.API_RETRY_DELAY = O.API_RETRY_ATTEMPTS = O.API_TIMEOUT = void 0;
|
|
1101
|
+
var O = {}, tt;
|
|
1102
|
+
function cr() {
|
|
1103
|
+
if (tt) return O;
|
|
1104
|
+
tt = 1, Object.defineProperty(O, "__esModule", { value: !0 }), O.Z_INDEX = O.ANIMATION = O.NETWORK_IDS = O.WALLET_NAMES = O.CONTACT_INFO = O.ROUTES = O.SUCCESS_MESSAGES = O.ERROR_MESSAGES = O.TIME_FORMAT = O.SUBSCRIPTION_TIERS = O.EMAIL_CONFIG = O.STORAGE_KEYS = O.CHAIN_TYPE = O.AUTH_STATUS = O.API_RETRY_DELAY = O.API_RETRY_ATTEMPTS = O.API_TIMEOUT = void 0;
|
|
1490
1105
|
const e = 3e4;
|
|
1491
1106
|
O.API_TIMEOUT = e;
|
|
1492
1107
|
const t = 3;
|
|
@@ -1525,13 +1140,13 @@ function ln() {
|
|
|
1525
1140
|
// 5 minutes
|
|
1526
1141
|
};
|
|
1527
1142
|
O.EMAIL_CONFIG = o;
|
|
1528
|
-
const
|
|
1143
|
+
const d = {
|
|
1529
1144
|
FREE: "free",
|
|
1530
1145
|
BASIC: "basic",
|
|
1531
1146
|
PRO: "pro",
|
|
1532
1147
|
ENTERPRISE: "enterprise"
|
|
1533
1148
|
};
|
|
1534
|
-
O.SUBSCRIPTION_TIERS =
|
|
1149
|
+
O.SUBSCRIPTION_TIERS = d;
|
|
1535
1150
|
const c = {
|
|
1536
1151
|
SHORT_DATE: "MMM d",
|
|
1537
1152
|
FULL_DATE: "MMM d, yyyy",
|
|
@@ -1539,7 +1154,7 @@ function ln() {
|
|
|
1539
1154
|
RELATIVE: "relative"
|
|
1540
1155
|
};
|
|
1541
1156
|
O.TIME_FORMAT = c;
|
|
1542
|
-
const
|
|
1157
|
+
const l = {
|
|
1543
1158
|
WALLET_NOT_CONNECTED: "Please connect your wallet first",
|
|
1544
1159
|
INVALID_ADDRESS: "Please enter a valid address",
|
|
1545
1160
|
NETWORK_ERROR: "Network error. Please try again.",
|
|
@@ -1550,7 +1165,7 @@ function ln() {
|
|
|
1550
1165
|
SESSION_EXPIRED: "Your session has expired. Please sign in again.",
|
|
1551
1166
|
PERMISSION_DENIED: "You do not have permission to perform this action"
|
|
1552
1167
|
};
|
|
1553
|
-
O.ERROR_MESSAGES =
|
|
1168
|
+
O.ERROR_MESSAGES = l;
|
|
1554
1169
|
const f = {
|
|
1555
1170
|
EMAIL_SENT: "Email sent successfully",
|
|
1556
1171
|
EMAIL_DELETED: "Email deleted successfully",
|
|
@@ -1561,7 +1176,7 @@ function ln() {
|
|
|
1561
1176
|
SUBSCRIPTION_ACTIVATED: "Subscription activated successfully"
|
|
1562
1177
|
};
|
|
1563
1178
|
O.SUCCESS_MESSAGES = f;
|
|
1564
|
-
const
|
|
1179
|
+
const u = {
|
|
1565
1180
|
HOME: "/",
|
|
1566
1181
|
ABOUT: "/about",
|
|
1567
1182
|
CONNECT: "/connect",
|
|
@@ -1574,7 +1189,7 @@ function ln() {
|
|
|
1574
1189
|
WEB3_USERS: "/web3-users",
|
|
1575
1190
|
WEB3_PROJECTS: "/web3-projects"
|
|
1576
1191
|
};
|
|
1577
|
-
O.ROUTES =
|
|
1192
|
+
O.ROUTES = u;
|
|
1578
1193
|
const m = {
|
|
1579
1194
|
SUPPORT_EMAIL: "support@sudobility.com",
|
|
1580
1195
|
CONTACT_EMAIL: "info@sudobility.com"
|
|
@@ -1620,69 +1235,23 @@ function ln() {
|
|
|
1620
1235
|
};
|
|
1621
1236
|
return O.Z_INDEX = g, O;
|
|
1622
1237
|
}
|
|
1623
|
-
var
|
|
1624
|
-
function
|
|
1625
|
-
return
|
|
1238
|
+
var oe = {}, rt;
|
|
1239
|
+
function dr() {
|
|
1240
|
+
return rt || (rt = 1, Object.defineProperty(oe, "__esModule", { value: !0 }), oe.STATUS_VALUES = void 0, oe.STATUS_VALUES = {
|
|
1626
1241
|
SUCCESS: "success",
|
|
1627
1242
|
PENDING: "pending",
|
|
1628
1243
|
FAILED: "failed",
|
|
1629
1244
|
ERROR: "error"
|
|
1630
|
-
}),
|
|
1631
|
-
}
|
|
1632
|
-
var kt;
|
|
1633
|
-
function cn() {
|
|
1634
|
-
return kt || (kt = 1, (function(e) {
|
|
1635
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.STATUS_VALUES = e.Z_INDEX = e.ANIMATION = e.NETWORK_IDS = e.WALLET_NAMES = e.CONTACT_INFO = e.ROUTES = e.SUCCESS_MESSAGES = e.ERROR_MESSAGES = e.TIME_FORMAT = e.SUBSCRIPTION_TIERS = e.EMAIL_CONFIG = e.STORAGE_KEYS = e.CHAIN_TYPE = e.AUTH_STATUS = e.API_RETRY_DELAY = e.API_RETRY_ATTEMPTS = e.API_TIMEOUT = void 0;
|
|
1636
|
-
var t = ln();
|
|
1637
|
-
Object.defineProperty(e, "API_TIMEOUT", { enumerable: !0, get: function() {
|
|
1638
|
-
return t.API_TIMEOUT;
|
|
1639
|
-
} }), Object.defineProperty(e, "API_RETRY_ATTEMPTS", { enumerable: !0, get: function() {
|
|
1640
|
-
return t.API_RETRY_ATTEMPTS;
|
|
1641
|
-
} }), Object.defineProperty(e, "API_RETRY_DELAY", { enumerable: !0, get: function() {
|
|
1642
|
-
return t.API_RETRY_DELAY;
|
|
1643
|
-
} }), Object.defineProperty(e, "AUTH_STATUS", { enumerable: !0, get: function() {
|
|
1644
|
-
return t.AUTH_STATUS;
|
|
1645
|
-
} }), Object.defineProperty(e, "CHAIN_TYPE", { enumerable: !0, get: function() {
|
|
1646
|
-
return t.CHAIN_TYPE;
|
|
1647
|
-
} }), Object.defineProperty(e, "STORAGE_KEYS", { enumerable: !0, get: function() {
|
|
1648
|
-
return t.STORAGE_KEYS;
|
|
1649
|
-
} }), Object.defineProperty(e, "EMAIL_CONFIG", { enumerable: !0, get: function() {
|
|
1650
|
-
return t.EMAIL_CONFIG;
|
|
1651
|
-
} }), Object.defineProperty(e, "SUBSCRIPTION_TIERS", { enumerable: !0, get: function() {
|
|
1652
|
-
return t.SUBSCRIPTION_TIERS;
|
|
1653
|
-
} }), Object.defineProperty(e, "TIME_FORMAT", { enumerable: !0, get: function() {
|
|
1654
|
-
return t.TIME_FORMAT;
|
|
1655
|
-
} }), Object.defineProperty(e, "ERROR_MESSAGES", { enumerable: !0, get: function() {
|
|
1656
|
-
return t.ERROR_MESSAGES;
|
|
1657
|
-
} }), Object.defineProperty(e, "SUCCESS_MESSAGES", { enumerable: !0, get: function() {
|
|
1658
|
-
return t.SUCCESS_MESSAGES;
|
|
1659
|
-
} }), Object.defineProperty(e, "ROUTES", { enumerable: !0, get: function() {
|
|
1660
|
-
return t.ROUTES;
|
|
1661
|
-
} }), Object.defineProperty(e, "CONTACT_INFO", { enumerable: !0, get: function() {
|
|
1662
|
-
return t.CONTACT_INFO;
|
|
1663
|
-
} }), Object.defineProperty(e, "WALLET_NAMES", { enumerable: !0, get: function() {
|
|
1664
|
-
return t.WALLET_NAMES;
|
|
1665
|
-
} }), Object.defineProperty(e, "NETWORK_IDS", { enumerable: !0, get: function() {
|
|
1666
|
-
return t.NETWORK_IDS;
|
|
1667
|
-
} }), Object.defineProperty(e, "ANIMATION", { enumerable: !0, get: function() {
|
|
1668
|
-
return t.ANIMATION;
|
|
1669
|
-
} }), Object.defineProperty(e, "Z_INDEX", { enumerable: !0, get: function() {
|
|
1670
|
-
return t.Z_INDEX;
|
|
1671
|
-
} });
|
|
1672
|
-
var r = sn();
|
|
1673
|
-
Object.defineProperty(e, "STATUS_VALUES", { enumerable: !0, get: function() {
|
|
1674
|
-
return r.STATUS_VALUES;
|
|
1675
|
-
} });
|
|
1676
|
-
})(ke)), ke;
|
|
1245
|
+
}), oe;
|
|
1677
1246
|
}
|
|
1678
|
-
var
|
|
1679
|
-
function
|
|
1680
|
-
if (
|
|
1681
|
-
|
|
1247
|
+
var _ = {}, nt;
|
|
1248
|
+
function St() {
|
|
1249
|
+
if (nt) return _;
|
|
1250
|
+
nt = 1, Object.defineProperty(_, "__esModule", { value: !0 }), _.storageLogger = _.ensLogger = _.contractLogger = _.apiLogger = _.authLogger = _.logger = _.LogLevel = void 0;
|
|
1682
1251
|
var e;
|
|
1683
1252
|
(function(c) {
|
|
1684
1253
|
c.ERROR = "error", c.WARN = "warn", c.INFO = "info", c.DEBUG = "debug";
|
|
1685
|
-
})(e || (
|
|
1254
|
+
})(e || (_.LogLevel = e = {}));
|
|
1686
1255
|
class t {
|
|
1687
1256
|
constructor() {
|
|
1688
1257
|
this.isDevelopment = process.env.NODE_ENV === "development";
|
|
@@ -1690,107 +1259,85 @@ function dn() {
|
|
|
1690
1259
|
formatTimestamp() {
|
|
1691
1260
|
return (/* @__PURE__ */ new Date()).toISOString();
|
|
1692
1261
|
}
|
|
1693
|
-
formatMessage(
|
|
1694
|
-
const m = this.formatTimestamp(), b =
|
|
1262
|
+
formatMessage(l, f, u) {
|
|
1263
|
+
const m = this.formatTimestamp(), b = u ? ` [${u}]` : "";
|
|
1695
1264
|
return `[${m}]${b} ${f}`;
|
|
1696
1265
|
}
|
|
1697
|
-
shouldLog(
|
|
1698
|
-
return this.isDevelopment ? !0 :
|
|
1266
|
+
shouldLog(l) {
|
|
1267
|
+
return this.isDevelopment ? !0 : l === e.ERROR || l === e.WARN;
|
|
1699
1268
|
}
|
|
1700
|
-
error(
|
|
1701
|
-
this.shouldLog(e.ERROR) && (console.error(this.formatMessage(e.ERROR,
|
|
1269
|
+
error(l, f, u) {
|
|
1270
|
+
this.shouldLog(e.ERROR) && (console.error(this.formatMessage(e.ERROR, l, f)), u && console.error(u));
|
|
1702
1271
|
}
|
|
1703
|
-
warn(
|
|
1704
|
-
this.shouldLog(e.WARN) && (console.warn(this.formatMessage(e.WARN,
|
|
1272
|
+
warn(l, f, u) {
|
|
1273
|
+
this.shouldLog(e.WARN) && (console.warn(this.formatMessage(e.WARN, l, f)), u && console.warn(u));
|
|
1705
1274
|
}
|
|
1706
|
-
info(
|
|
1707
|
-
this.shouldLog(e.INFO) && (console.log(this.formatMessage(e.INFO,
|
|
1275
|
+
info(l, f, u) {
|
|
1276
|
+
this.shouldLog(e.INFO) && (console.log(this.formatMessage(e.INFO, l, f)), u && console.log(u));
|
|
1708
1277
|
}
|
|
1709
|
-
debug(
|
|
1710
|
-
this.shouldLog(e.DEBUG) && (console.log(this.formatMessage(e.DEBUG,
|
|
1278
|
+
debug(l, f, u) {
|
|
1279
|
+
this.shouldLog(e.DEBUG) && (console.log(this.formatMessage(e.DEBUG, l, f)), u && console.log(u));
|
|
1711
1280
|
}
|
|
1712
1281
|
/**
|
|
1713
1282
|
* Create a contextual logger that automatically includes context in all calls
|
|
1714
1283
|
*/
|
|
1715
|
-
withContext(
|
|
1284
|
+
withContext(l) {
|
|
1716
1285
|
return {
|
|
1717
|
-
error: (f,
|
|
1718
|
-
warn: (f,
|
|
1719
|
-
info: (f,
|
|
1720
|
-
debug: (f,
|
|
1286
|
+
error: (f, u) => this.error(f, l, u),
|
|
1287
|
+
warn: (f, u) => this.warn(f, l, u),
|
|
1288
|
+
info: (f, u) => this.info(f, l, u),
|
|
1289
|
+
debug: (f, u) => this.debug(f, l, u)
|
|
1721
1290
|
};
|
|
1722
1291
|
}
|
|
1723
1292
|
}
|
|
1724
1293
|
const r = new t();
|
|
1725
|
-
|
|
1294
|
+
_.logger = r;
|
|
1726
1295
|
const n = r.withContext("AUTH");
|
|
1727
|
-
|
|
1296
|
+
_.authLogger = n;
|
|
1728
1297
|
const i = r.withContext("API");
|
|
1729
|
-
|
|
1298
|
+
_.apiLogger = i;
|
|
1730
1299
|
const a = r.withContext("CONTRACT");
|
|
1731
|
-
|
|
1300
|
+
_.contractLogger = a;
|
|
1732
1301
|
const o = r.withContext("ENS");
|
|
1733
|
-
|
|
1734
|
-
const
|
|
1735
|
-
return
|
|
1736
|
-
}
|
|
1737
|
-
var
|
|
1738
|
-
function
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
var t = dn();
|
|
1742
|
-
Object.defineProperty(e, "LogLevel", { enumerable: !0, get: function() {
|
|
1743
|
-
return t.LogLevel;
|
|
1744
|
-
} }), Object.defineProperty(e, "logger", { enumerable: !0, get: function() {
|
|
1745
|
-
return t.logger;
|
|
1746
|
-
} }), Object.defineProperty(e, "authLogger", { enumerable: !0, get: function() {
|
|
1747
|
-
return t.authLogger;
|
|
1748
|
-
} }), Object.defineProperty(e, "apiLogger", { enumerable: !0, get: function() {
|
|
1749
|
-
return t.apiLogger;
|
|
1750
|
-
} }), Object.defineProperty(e, "contractLogger", { enumerable: !0, get: function() {
|
|
1751
|
-
return t.contractLogger;
|
|
1752
|
-
} }), Object.defineProperty(e, "ensLogger", { enumerable: !0, get: function() {
|
|
1753
|
-
return t.ensLogger;
|
|
1754
|
-
} }), Object.defineProperty(e, "storageLogger", { enumerable: !0, get: function() {
|
|
1755
|
-
return t.storageLogger;
|
|
1756
|
-
} });
|
|
1757
|
-
})(Ve)), Ve;
|
|
1758
|
-
}
|
|
1759
|
-
var We = {}, $ = {}, Bt;
|
|
1760
|
-
function fn() {
|
|
1761
|
-
if (Bt) return $;
|
|
1762
|
-
Bt = 1, Object.defineProperty($, "__esModule", { value: !0 }), $.createURLSearchParams = t, $.createSearchParams = r, $.searchParamsToString = n, $.parseSearchParams = i;
|
|
1302
|
+
_.ensLogger = o;
|
|
1303
|
+
const d = r.withContext("STORAGE");
|
|
1304
|
+
return _.storageLogger = d, _;
|
|
1305
|
+
}
|
|
1306
|
+
var X = {}, at;
|
|
1307
|
+
function fr() {
|
|
1308
|
+
if (at) return X;
|
|
1309
|
+
at = 1, Object.defineProperty(X, "__esModule", { value: !0 }), X.createURLSearchParams = t, X.createSearchParams = r, X.searchParamsToString = n, X.parseSearchParams = i;
|
|
1763
1310
|
class e {
|
|
1764
1311
|
constructor(o) {
|
|
1765
1312
|
if (this.params = /* @__PURE__ */ new Map(), o)
|
|
1766
1313
|
if (typeof o == "string")
|
|
1767
1314
|
this.parseString(o);
|
|
1768
1315
|
else if (Array.isArray(o))
|
|
1769
|
-
for (const [
|
|
1770
|
-
this.append(
|
|
1316
|
+
for (const [d, c] of o)
|
|
1317
|
+
this.append(d, c);
|
|
1771
1318
|
else
|
|
1772
|
-
for (const [
|
|
1773
|
-
c !== void 0 && this.append(
|
|
1319
|
+
for (const [d, c] of Object.entries(o))
|
|
1320
|
+
c !== void 0 && this.append(d, c);
|
|
1774
1321
|
}
|
|
1775
1322
|
parseString(o) {
|
|
1776
|
-
const
|
|
1777
|
-
if (
|
|
1778
|
-
for (const c of
|
|
1779
|
-
const [
|
|
1780
|
-
|
|
1323
|
+
const d = o.startsWith("?") ? o.slice(1) : o;
|
|
1324
|
+
if (d)
|
|
1325
|
+
for (const c of d.split("&")) {
|
|
1326
|
+
const [l, f = ""] = c.split("=");
|
|
1327
|
+
l && this.append(decodeURIComponent(l), decodeURIComponent(f));
|
|
1781
1328
|
}
|
|
1782
1329
|
}
|
|
1783
|
-
append(o,
|
|
1330
|
+
append(o, d) {
|
|
1784
1331
|
this.params.has(o) || this.params.set(o, []);
|
|
1785
1332
|
const c = this.params.get(o);
|
|
1786
|
-
c && c.push(
|
|
1333
|
+
c && c.push(d);
|
|
1787
1334
|
}
|
|
1788
1335
|
delete(o) {
|
|
1789
1336
|
this.params.delete(o);
|
|
1790
1337
|
}
|
|
1791
1338
|
get(o) {
|
|
1792
|
-
const
|
|
1793
|
-
return
|
|
1339
|
+
const d = this.params.get(o);
|
|
1340
|
+
return d && d.length > 0 ? d[0] : null;
|
|
1794
1341
|
}
|
|
1795
1342
|
getAll(o) {
|
|
1796
1343
|
return this.params.get(o) || [];
|
|
@@ -1798,20 +1345,20 @@ function fn() {
|
|
|
1798
1345
|
has(o) {
|
|
1799
1346
|
return this.params.has(o);
|
|
1800
1347
|
}
|
|
1801
|
-
set(o,
|
|
1802
|
-
this.params.set(o, [
|
|
1348
|
+
set(o, d) {
|
|
1349
|
+
this.params.set(o, [d]);
|
|
1803
1350
|
}
|
|
1804
1351
|
toString() {
|
|
1805
1352
|
const o = [];
|
|
1806
|
-
return this.params.forEach((
|
|
1807
|
-
for (const
|
|
1808
|
-
o.push(`${encodeURIComponent(c)}=${encodeURIComponent(
|
|
1353
|
+
return this.params.forEach((d, c) => {
|
|
1354
|
+
for (const l of d)
|
|
1355
|
+
o.push(`${encodeURIComponent(c)}=${encodeURIComponent(l)}`);
|
|
1809
1356
|
}), o.join("&");
|
|
1810
1357
|
}
|
|
1811
1358
|
forEach(o) {
|
|
1812
|
-
this.params.forEach((
|
|
1813
|
-
for (const
|
|
1814
|
-
o(
|
|
1359
|
+
this.params.forEach((d, c) => {
|
|
1360
|
+
for (const l of d)
|
|
1361
|
+
o(l, c);
|
|
1815
1362
|
});
|
|
1816
1363
|
}
|
|
1817
1364
|
}
|
|
@@ -1820,52 +1367,36 @@ function fn() {
|
|
|
1820
1367
|
}
|
|
1821
1368
|
function r(a) {
|
|
1822
1369
|
const o = t(void 0);
|
|
1823
|
-
for (const [
|
|
1824
|
-
c != null && o.append(
|
|
1370
|
+
for (const [d, c] of Object.entries(a))
|
|
1371
|
+
c != null && o.append(d, String(c));
|
|
1825
1372
|
return o;
|
|
1826
1373
|
}
|
|
1827
1374
|
function n(a) {
|
|
1828
1375
|
return a.toString();
|
|
1829
1376
|
}
|
|
1830
1377
|
function i(a) {
|
|
1831
|
-
const o = t(a),
|
|
1832
|
-
return o.forEach((c,
|
|
1833
|
-
|
|
1834
|
-
}),
|
|
1835
|
-
}
|
|
1836
|
-
return
|
|
1837
|
-
}
|
|
1838
|
-
var
|
|
1839
|
-
function
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
Object.defineProperty(e, "createURLSearchParams", { enumerable: !0, get: function() {
|
|
1844
|
-
return t.createURLSearchParams;
|
|
1845
|
-
} }), Object.defineProperty(e, "createSearchParams", { enumerable: !0, get: function() {
|
|
1846
|
-
return t.createSearchParams;
|
|
1847
|
-
} }), Object.defineProperty(e, "searchParamsToString", { enumerable: !0, get: function() {
|
|
1848
|
-
return t.searchParamsToString;
|
|
1849
|
-
} }), Object.defineProperty(e, "parseSearchParams", { enumerable: !0, get: function() {
|
|
1850
|
-
return t.parseSearchParams;
|
|
1851
|
-
} });
|
|
1852
|
-
})(We)), We;
|
|
1853
|
-
}
|
|
1854
|
-
var P = {}, qt;
|
|
1855
|
-
function gn() {
|
|
1856
|
-
if (qt) return P;
|
|
1857
|
-
qt = 1, Object.defineProperty(P, "__esModule", { value: !0 }), P.debounceAsync = P.clearExpiredCache = P.withCache = P.withTimeout = P.safeParallel = P.withLoadingState = P.safeAsync = void 0;
|
|
1858
|
-
const e = rr(), t = async (f, l) => {
|
|
1378
|
+
const o = t(a), d = {};
|
|
1379
|
+
return o.forEach((c, l) => {
|
|
1380
|
+
d[l] = c;
|
|
1381
|
+
}), d;
|
|
1382
|
+
}
|
|
1383
|
+
return X;
|
|
1384
|
+
}
|
|
1385
|
+
var I = {}, it;
|
|
1386
|
+
function mr() {
|
|
1387
|
+
if (it) return I;
|
|
1388
|
+
it = 1, Object.defineProperty(I, "__esModule", { value: !0 }), I.debounceAsync = I.clearExpiredCache = I.withCache = I.withTimeout = I.safeParallel = I.withLoadingState = I.safeAsync = void 0;
|
|
1389
|
+
const e = St(), t = async (f, u) => {
|
|
1859
1390
|
try {
|
|
1860
1391
|
return { data: await f(), success: !0 };
|
|
1861
1392
|
} catch (m) {
|
|
1862
1393
|
const b = m instanceof Error ? m : new Error(String(m));
|
|
1863
|
-
return e.logger.error(`Async operation failed: ${b.message}`,
|
|
1394
|
+
return e.logger.error(`Async operation failed: ${b.message}`, u, m), { error: b, success: !1 };
|
|
1864
1395
|
}
|
|
1865
1396
|
};
|
|
1866
|
-
|
|
1867
|
-
const r = async (f,
|
|
1868
|
-
|
|
1397
|
+
I.safeAsync = t;
|
|
1398
|
+
const r = async (f, u, m, b) => {
|
|
1399
|
+
u(!0), m(null);
|
|
1869
1400
|
try {
|
|
1870
1401
|
return await f();
|
|
1871
1402
|
} catch (S) {
|
|
@@ -1873,43 +1404,43 @@ function gn() {
|
|
|
1873
1404
|
m(p), e.logger.error(`Operation failed: ${p}`, b, S);
|
|
1874
1405
|
return;
|
|
1875
1406
|
} finally {
|
|
1876
|
-
|
|
1407
|
+
u(!1);
|
|
1877
1408
|
}
|
|
1878
1409
|
};
|
|
1879
|
-
|
|
1880
|
-
const n = async (f,
|
|
1410
|
+
I.withLoadingState = r;
|
|
1411
|
+
const n = async (f, u) => {
|
|
1881
1412
|
try {
|
|
1882
1413
|
return { data: await Promise.all(f.map((b) => b())), success: !0 };
|
|
1883
1414
|
} catch (m) {
|
|
1884
1415
|
const b = m instanceof Error ? m : new Error(String(m));
|
|
1885
|
-
return e.logger.error(`Parallel operations failed: ${b.message}`,
|
|
1416
|
+
return e.logger.error(`Parallel operations failed: ${b.message}`, u, m), { error: b, success: !1 };
|
|
1886
1417
|
}
|
|
1887
1418
|
};
|
|
1888
|
-
|
|
1889
|
-
const i = async (f,
|
|
1890
|
-
const b = new Promise((S, p) => setTimeout(() => p(new Error(`Operation timed out after ${
|
|
1419
|
+
I.safeParallel = n;
|
|
1420
|
+
const i = async (f, u, m) => {
|
|
1421
|
+
const b = new Promise((S, p) => setTimeout(() => p(new Error(`Operation timed out after ${u}ms`)), u));
|
|
1891
1422
|
try {
|
|
1892
1423
|
return await Promise.race([f(), b]);
|
|
1893
1424
|
} catch (S) {
|
|
1894
1425
|
throw e.logger.error("Timeout operation failed", m, S), S;
|
|
1895
1426
|
}
|
|
1896
1427
|
};
|
|
1897
|
-
|
|
1898
|
-
const a = /* @__PURE__ */ new Map(), o = async (f,
|
|
1428
|
+
I.withTimeout = i;
|
|
1429
|
+
const a = /* @__PURE__ */ new Map(), o = async (f, u, m = 300 * 1e3) => {
|
|
1899
1430
|
const b = a.get(f), S = Date.now();
|
|
1900
1431
|
if (b && S - b.timestamp < b.ttl)
|
|
1901
1432
|
return b.data;
|
|
1902
|
-
const p = await
|
|
1433
|
+
const p = await u();
|
|
1903
1434
|
return a.set(f, { data: p, timestamp: S, ttl: m }), p;
|
|
1904
1435
|
};
|
|
1905
|
-
|
|
1906
|
-
const
|
|
1436
|
+
I.withCache = o;
|
|
1437
|
+
const d = () => {
|
|
1907
1438
|
const f = Date.now();
|
|
1908
|
-
for (const [
|
|
1909
|
-
f - m.timestamp >= m.ttl && a.delete(
|
|
1439
|
+
for (const [u, m] of a.entries())
|
|
1440
|
+
f - m.timestamp >= m.ttl && a.delete(u);
|
|
1910
1441
|
};
|
|
1911
|
-
|
|
1912
|
-
const c = /* @__PURE__ */ new Map(),
|
|
1442
|
+
I.clearExpiredCache = d;
|
|
1443
|
+
const c = /* @__PURE__ */ new Map(), l = (f, u, m) => (...b) => new Promise((S) => {
|
|
1913
1444
|
const p = c.get(m);
|
|
1914
1445
|
p && clearTimeout(p);
|
|
1915
1446
|
const g = setTimeout(async () => {
|
|
@@ -1920,127 +1451,419 @@ function gn() {
|
|
|
1920
1451
|
} catch (A) {
|
|
1921
1452
|
e.logger.error("Debounced operation failed", m, A), S(void 0);
|
|
1922
1453
|
}
|
|
1923
|
-
},
|
|
1454
|
+
}, u);
|
|
1924
1455
|
c.set(m, g);
|
|
1925
1456
|
});
|
|
1926
|
-
return
|
|
1927
|
-
}
|
|
1928
|
-
var Ht;
|
|
1929
|
-
function Gt() {
|
|
1930
|
-
return Ht || (Ht = 1, (function(e) {
|
|
1931
|
-
var t = x && x.__createBinding || (Object.create ? (function(n, i, a, o) {
|
|
1932
|
-
o === void 0 && (o = a);
|
|
1933
|
-
var u = Object.getOwnPropertyDescriptor(i, a);
|
|
1934
|
-
(!u || ("get" in u ? !i.__esModule : u.writable || u.configurable)) && (u = { enumerable: !0, get: function() {
|
|
1935
|
-
return i[a];
|
|
1936
|
-
} }), Object.defineProperty(n, o, u);
|
|
1937
|
-
}) : (function(n, i, a, o) {
|
|
1938
|
-
o === void 0 && (o = a), n[o] = i[a];
|
|
1939
|
-
})), r = x && x.__exportStar || function(n, i) {
|
|
1940
|
-
for (var a in n) a !== "default" && !Object.prototype.hasOwnProperty.call(i, a) && t(i, n, a);
|
|
1941
|
-
};
|
|
1942
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), r(xr(), e), r(en(), e), r(rn(), e), r(un(), e), r(cn(), e), r(rr(), e), r(mn(), e), r(gn(), e);
|
|
1943
|
-
})(x)), x;
|
|
1457
|
+
return I.debounceAsync = l, I;
|
|
1944
1458
|
}
|
|
1945
|
-
var
|
|
1946
|
-
function
|
|
1947
|
-
return
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
var s = Object.getOwnPropertyDescriptor(o, u);
|
|
1951
|
-
(!s || ("get" in s ? !o.__esModule : s.writable || s.configurable)) && (s = { enumerable: !0, get: function() {
|
|
1952
|
-
return o[u];
|
|
1953
|
-
} }), Object.defineProperty(a, c, s);
|
|
1954
|
-
}) : (function(a, o, u, c) {
|
|
1955
|
-
c === void 0 && (c = u), a[c] = o[u];
|
|
1956
|
-
})), r = z && z.__exportStar || function(a, o) {
|
|
1957
|
-
for (var u in a) u !== "default" && !Object.prototype.hasOwnProperty.call(o, u) && t(o, a, u);
|
|
1958
|
-
};
|
|
1959
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.ProcessedEventName = e.ContractType = e.StorageType = e.WalletType = e.ChainType = e.AnalyticsEvent = e.TransactionStatus = e.MessageType = e.InfoType = e.NotificationType = e.RequestStatus = e.MobileView = e.EmailComposeType = e.FontSize = e.Theme = e.Chain = e.AuthStatus = e.debounceAsync = e.clearExpiredCache = e.withCache = e.withTimeout = e.safeParallel = e.withLoadingState = e.safeAsync = void 0, r(Tt(), e), r(Gt(), e);
|
|
1960
|
-
var n = Gt();
|
|
1961
|
-
Object.defineProperty(e, "safeAsync", { enumerable: !0, get: function() {
|
|
1962
|
-
return n.safeAsync;
|
|
1963
|
-
} }), Object.defineProperty(e, "withLoadingState", { enumerable: !0, get: function() {
|
|
1964
|
-
return n.withLoadingState;
|
|
1965
|
-
} }), Object.defineProperty(e, "safeParallel", { enumerable: !0, get: function() {
|
|
1966
|
-
return n.safeParallel;
|
|
1967
|
-
} }), Object.defineProperty(e, "withTimeout", { enumerable: !0, get: function() {
|
|
1968
|
-
return n.withTimeout;
|
|
1969
|
-
} }), Object.defineProperty(e, "withCache", { enumerable: !0, get: function() {
|
|
1970
|
-
return n.withCache;
|
|
1971
|
-
} }), Object.defineProperty(e, "clearExpiredCache", { enumerable: !0, get: function() {
|
|
1972
|
-
return n.clearExpiredCache;
|
|
1973
|
-
} }), Object.defineProperty(e, "debounceAsync", { enumerable: !0, get: function() {
|
|
1974
|
-
return n.debounceAsync;
|
|
1975
|
-
} });
|
|
1976
|
-
var i = Tt();
|
|
1459
|
+
var ot;
|
|
1460
|
+
function gr() {
|
|
1461
|
+
return ot || (ot = 1, (function(e) {
|
|
1462
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.MANAGER_PERMISSIONS = e.OWNER_PERMISSIONS = e.InvitationStatus = e.EntityRole = e.EntityType = e.RateLimitPeriodType = e.WalletType = e.NetworkError = e.ProcessedEventName = e.ContractType = e.AnalyticsEventBuilder = e.AnalyticsEvent = e.StorageType = e.validateMessage = e.validateDomain = e.validateAmount = e.validateAddress = e.isSolanaRecipient = e.isSolanaAddress = e.isEvmRecipient = e.isEvmAddress = e.TransactionStatus = e.PROTOCOL_CONSTANTS = e.MessageType = e.isWalletVerified = e.isWalletConnected = e.getWalletConnectionState = e.Theme = e.SubscriptionAction = e.SortOrder = e.RequestStatus = e.PlatformType = e.NotificationType = e.MobileView = e.MediumView = e.InfoType = e.FontSize = e.FeatureFlag = e.ErrorType = e.EmailValidationState = e.EmailSortCriteria = e.EmailComposeType = e.EmailAddressType = e.EmailAction = e.Currency = e.ConnectionType = e.ConnectionState = e.ChainType = e.Chain = e.AuthStatus = void 0, e.USDC_DECIMALS = e.CLAIM_PERIOD_DAYS = e.isValidNonce = e.isAuthStatusConnected = e.isAuthExpired = e.getAuthStatusText = e.generateNonce = e.generateAuthMessage = e.extractNonceFromMessage = e.canAccessProtectedFeatures = e.validateEventArgs = e.normalizeAddress = e.isZeroAddress = e.isTestNet = e.formatBigInt = e.createUserMultiChainId = e.createMultiChainId = e.createDelegationId = e.createChainStatsId = e.parseEmailAddress = e.isValidWalletAddress = e.isValidSignature = e.isSNSName = e.isENSName = e.getChainDisplayName = e.getAddressType = e.formatWalletAddress = e.AddressType = e.validateArray = e.parseJson = e.optional = e.isValidDate = e.isUrl = e.isSuccessResponse = e.isString = e.isObject = e.isNumber = e.isNullish = e.isErrorResponse = e.isEmail = e.isBoolean = e.isArray = e.isApiResponse = e.hasRequiredProperties = e.createValidator = e.createAssertion = e.Web3UsernameValidator = e.hasPermission = e.getPermissionsForRole = e.MEMBER_PERMISSIONS = void 0, e.storageLogger = e.ensLogger = e.contractLogger = e.apiLogger = e.authLogger = e.logger = e.LogLevel = e.STATUS_VALUES = e.Z_INDEX = e.ANIMATION = e.NETWORK_IDS = e.WALLET_NAMES = e.CONTACT_INFO = e.ROUTES = e.SUCCESS_MESSAGES = e.ERROR_MESSAGES = e.TIME_FORMAT = e.SUBSCRIPTION_TIERS = e.EMAIL_CONFIG = e.STORAGE_KEYS = e.CHAIN_TYPE = e.AUTH_STATUS = e.API_RETRY_DELAY = e.API_RETRY_ATTEMPTS = e.API_TIMEOUT = e.truncate = e.toTitleCase = e.toSnakeCase = e.toKebabCase = e.toCamelCase = e.stripHtml = e.randomString = e.pluralize = e.normalizeWhitespace = e.isNotBlank = e.isBlank = e.getInitials = e.formatNumber = e.formatBytes = e.escapeHtml = e.capitalize = e.parseDate = e.isDateInRange = e.formatTimestamp = e.formatRelativeTime = e.formatEmailDate = e.addHours = e.addDays = e.parseUSDC = e.formatUSDC = void 0, e.debounceAsync = e.clearExpiredCache = e.withCache = e.withTimeout = e.safeParallel = e.withLoadingState = e.safeAsync = e.parseSearchParams = e.searchParamsToString = e.createSearchParams = e.createURLSearchParams = void 0;
|
|
1463
|
+
var t = x();
|
|
1977
1464
|
Object.defineProperty(e, "AuthStatus", { enumerable: !0, get: function() {
|
|
1978
|
-
return
|
|
1465
|
+
return t.AuthStatus;
|
|
1979
1466
|
} }), Object.defineProperty(e, "Chain", { enumerable: !0, get: function() {
|
|
1980
|
-
return
|
|
1981
|
-
} }), Object.defineProperty(e, "
|
|
1982
|
-
return
|
|
1983
|
-
} }), Object.defineProperty(e, "
|
|
1984
|
-
return
|
|
1467
|
+
return t.Chain;
|
|
1468
|
+
} }), Object.defineProperty(e, "ChainType", { enumerable: !0, get: function() {
|
|
1469
|
+
return t.ChainType;
|
|
1470
|
+
} }), Object.defineProperty(e, "ConnectionState", { enumerable: !0, get: function() {
|
|
1471
|
+
return t.ConnectionState;
|
|
1472
|
+
} }), Object.defineProperty(e, "ConnectionType", { enumerable: !0, get: function() {
|
|
1473
|
+
return t.ConnectionType;
|
|
1474
|
+
} }), Object.defineProperty(e, "Currency", { enumerable: !0, get: function() {
|
|
1475
|
+
return t.Currency;
|
|
1476
|
+
} }), Object.defineProperty(e, "EmailAction", { enumerable: !0, get: function() {
|
|
1477
|
+
return t.EmailAction;
|
|
1478
|
+
} }), Object.defineProperty(e, "EmailAddressType", { enumerable: !0, get: function() {
|
|
1479
|
+
return t.EmailAddressType;
|
|
1985
1480
|
} }), Object.defineProperty(e, "EmailComposeType", { enumerable: !0, get: function() {
|
|
1986
|
-
return
|
|
1481
|
+
return t.EmailComposeType;
|
|
1482
|
+
} }), Object.defineProperty(e, "EmailSortCriteria", { enumerable: !0, get: function() {
|
|
1483
|
+
return t.EmailSortCriteria;
|
|
1484
|
+
} }), Object.defineProperty(e, "EmailValidationState", { enumerable: !0, get: function() {
|
|
1485
|
+
return t.EmailValidationState;
|
|
1486
|
+
} }), Object.defineProperty(e, "ErrorType", { enumerable: !0, get: function() {
|
|
1487
|
+
return t.ErrorType;
|
|
1488
|
+
} }), Object.defineProperty(e, "FeatureFlag", { enumerable: !0, get: function() {
|
|
1489
|
+
return t.FeatureFlag;
|
|
1490
|
+
} }), Object.defineProperty(e, "FontSize", { enumerable: !0, get: function() {
|
|
1491
|
+
return t.FontSize;
|
|
1492
|
+
} }), Object.defineProperty(e, "InfoType", { enumerable: !0, get: function() {
|
|
1493
|
+
return t.InfoType;
|
|
1494
|
+
} }), Object.defineProperty(e, "MediumView", { enumerable: !0, get: function() {
|
|
1495
|
+
return t.MediumView;
|
|
1987
1496
|
} }), Object.defineProperty(e, "MobileView", { enumerable: !0, get: function() {
|
|
1988
|
-
return
|
|
1989
|
-
} }), Object.defineProperty(e, "RequestStatus", { enumerable: !0, get: function() {
|
|
1990
|
-
return i.RequestStatus;
|
|
1497
|
+
return t.MobileView;
|
|
1991
1498
|
} }), Object.defineProperty(e, "NotificationType", { enumerable: !0, get: function() {
|
|
1992
|
-
return
|
|
1993
|
-
} }), Object.defineProperty(e, "
|
|
1994
|
-
return
|
|
1995
|
-
} }), Object.defineProperty(e, "
|
|
1996
|
-
return
|
|
1499
|
+
return t.NotificationType;
|
|
1500
|
+
} }), Object.defineProperty(e, "PlatformType", { enumerable: !0, get: function() {
|
|
1501
|
+
return t.PlatformType;
|
|
1502
|
+
} }), Object.defineProperty(e, "RequestStatus", { enumerable: !0, get: function() {
|
|
1503
|
+
return t.RequestStatus;
|
|
1504
|
+
} }), Object.defineProperty(e, "SortOrder", { enumerable: !0, get: function() {
|
|
1505
|
+
return t.SortOrder;
|
|
1506
|
+
} }), Object.defineProperty(e, "SubscriptionAction", { enumerable: !0, get: function() {
|
|
1507
|
+
return t.SubscriptionAction;
|
|
1508
|
+
} }), Object.defineProperty(e, "Theme", { enumerable: !0, get: function() {
|
|
1509
|
+
return t.Theme;
|
|
1510
|
+
} });
|
|
1511
|
+
var r = Zt();
|
|
1512
|
+
Object.defineProperty(e, "getWalletConnectionState", { enumerable: !0, get: function() {
|
|
1513
|
+
return r.getWalletConnectionState;
|
|
1514
|
+
} }), Object.defineProperty(e, "isWalletConnected", { enumerable: !0, get: function() {
|
|
1515
|
+
return r.isWalletConnected;
|
|
1516
|
+
} }), Object.defineProperty(e, "isWalletVerified", { enumerable: !0, get: function() {
|
|
1517
|
+
return r.isWalletVerified;
|
|
1518
|
+
} });
|
|
1519
|
+
var n = ht();
|
|
1520
|
+
Object.defineProperty(e, "MessageType", { enumerable: !0, get: function() {
|
|
1521
|
+
return n.MessageType;
|
|
1522
|
+
} }), Object.defineProperty(e, "PROTOCOL_CONSTANTS", { enumerable: !0, get: function() {
|
|
1523
|
+
return n.PROTOCOL_CONSTANTS;
|
|
1997
1524
|
} }), Object.defineProperty(e, "TransactionStatus", { enumerable: !0, get: function() {
|
|
1998
|
-
return
|
|
1999
|
-
} }), Object.defineProperty(e, "
|
|
2000
|
-
return
|
|
2001
|
-
} }), Object.defineProperty(e, "
|
|
2002
|
-
return
|
|
2003
|
-
} }), Object.defineProperty(e, "
|
|
2004
|
-
return
|
|
2005
|
-
} }), Object.defineProperty(e, "
|
|
2006
|
-
return
|
|
2007
|
-
} })
|
|
2008
|
-
|
|
1525
|
+
return n.TransactionStatus;
|
|
1526
|
+
} }), Object.defineProperty(e, "isEvmAddress", { enumerable: !0, get: function() {
|
|
1527
|
+
return n.isEvmAddress;
|
|
1528
|
+
} }), Object.defineProperty(e, "isEvmRecipient", { enumerable: !0, get: function() {
|
|
1529
|
+
return n.isEvmRecipient;
|
|
1530
|
+
} }), Object.defineProperty(e, "isSolanaAddress", { enumerable: !0, get: function() {
|
|
1531
|
+
return n.isSolanaAddress;
|
|
1532
|
+
} }), Object.defineProperty(e, "isSolanaRecipient", { enumerable: !0, get: function() {
|
|
1533
|
+
return n.isSolanaRecipient;
|
|
1534
|
+
} });
|
|
1535
|
+
var i = Jt();
|
|
1536
|
+
Object.defineProperty(e, "validateAddress", { enumerable: !0, get: function() {
|
|
1537
|
+
return i.validateAddress;
|
|
1538
|
+
} }), Object.defineProperty(e, "validateAmount", { enumerable: !0, get: function() {
|
|
1539
|
+
return i.validateAmount;
|
|
1540
|
+
} }), Object.defineProperty(e, "validateDomain", { enumerable: !0, get: function() {
|
|
1541
|
+
return i.validateDomain;
|
|
1542
|
+
} }), Object.defineProperty(e, "validateMessage", { enumerable: !0, get: function() {
|
|
1543
|
+
return i.validateMessage;
|
|
1544
|
+
} });
|
|
1545
|
+
var a = Xt();
|
|
1546
|
+
Object.defineProperty(e, "StorageType", { enumerable: !0, get: function() {
|
|
1547
|
+
return a.StorageType;
|
|
1548
|
+
} });
|
|
1549
|
+
var o = Qt();
|
|
1550
|
+
Object.defineProperty(e, "AnalyticsEvent", { enumerable: !0, get: function() {
|
|
1551
|
+
return o.AnalyticsEvent;
|
|
1552
|
+
} }), Object.defineProperty(e, "AnalyticsEventBuilder", { enumerable: !0, get: function() {
|
|
1553
|
+
return o.AnalyticsEventBuilder;
|
|
1554
|
+
} });
|
|
1555
|
+
var d = xt();
|
|
1556
|
+
Object.defineProperty(e, "ContractType", { enumerable: !0, get: function() {
|
|
1557
|
+
return d.ContractType;
|
|
2009
1558
|
} }), Object.defineProperty(e, "ProcessedEventName", { enumerable: !0, get: function() {
|
|
2010
|
-
return
|
|
1559
|
+
return d.ProcessedEventName;
|
|
1560
|
+
} });
|
|
1561
|
+
var c = $t();
|
|
1562
|
+
Object.defineProperty(e, "NetworkError", { enumerable: !0, get: function() {
|
|
1563
|
+
return c.NetworkError;
|
|
1564
|
+
} });
|
|
1565
|
+
var l = er();
|
|
1566
|
+
Object.defineProperty(e, "WalletType", { enumerable: !0, get: function() {
|
|
1567
|
+
return l.WalletType;
|
|
1568
|
+
} });
|
|
1569
|
+
var f = tr();
|
|
1570
|
+
Object.defineProperty(e, "RateLimitPeriodType", { enumerable: !0, get: function() {
|
|
1571
|
+
return f.RateLimitPeriodType;
|
|
1572
|
+
} });
|
|
1573
|
+
var u = bt();
|
|
1574
|
+
Object.defineProperty(e, "EntityType", { enumerable: !0, get: function() {
|
|
1575
|
+
return u.EntityType;
|
|
1576
|
+
} }), Object.defineProperty(e, "EntityRole", { enumerable: !0, get: function() {
|
|
1577
|
+
return u.EntityRole;
|
|
1578
|
+
} }), Object.defineProperty(e, "InvitationStatus", { enumerable: !0, get: function() {
|
|
1579
|
+
return u.InvitationStatus;
|
|
1580
|
+
} });
|
|
1581
|
+
var m = rr();
|
|
1582
|
+
Object.defineProperty(e, "OWNER_PERMISSIONS", { enumerable: !0, get: function() {
|
|
1583
|
+
return m.OWNER_PERMISSIONS;
|
|
1584
|
+
} }), Object.defineProperty(e, "MANAGER_PERMISSIONS", { enumerable: !0, get: function() {
|
|
1585
|
+
return m.MANAGER_PERMISSIONS;
|
|
1586
|
+
} }), Object.defineProperty(e, "MEMBER_PERMISSIONS", { enumerable: !0, get: function() {
|
|
1587
|
+
return m.MEMBER_PERMISSIONS;
|
|
1588
|
+
} }), Object.defineProperty(e, "getPermissionsForRole", { enumerable: !0, get: function() {
|
|
1589
|
+
return m.getPermissionsForRole;
|
|
1590
|
+
} }), Object.defineProperty(e, "hasPermission", { enumerable: !0, get: function() {
|
|
1591
|
+
return m.hasPermission;
|
|
1592
|
+
} });
|
|
1593
|
+
var b = nr();
|
|
1594
|
+
Object.defineProperty(e, "Web3UsernameValidator", { enumerable: !0, get: function() {
|
|
1595
|
+
return b.Web3UsernameValidator;
|
|
1596
|
+
} });
|
|
1597
|
+
var S = ar();
|
|
1598
|
+
Object.defineProperty(e, "createAssertion", { enumerable: !0, get: function() {
|
|
1599
|
+
return S.createAssertion;
|
|
1600
|
+
} }), Object.defineProperty(e, "createValidator", { enumerable: !0, get: function() {
|
|
1601
|
+
return S.createValidator;
|
|
1602
|
+
} }), Object.defineProperty(e, "hasRequiredProperties", { enumerable: !0, get: function() {
|
|
1603
|
+
return S.hasRequiredProperties;
|
|
1604
|
+
} }), Object.defineProperty(e, "isApiResponse", { enumerable: !0, get: function() {
|
|
1605
|
+
return S.isApiResponse;
|
|
1606
|
+
} }), Object.defineProperty(e, "isArray", { enumerable: !0, get: function() {
|
|
1607
|
+
return S.isArray;
|
|
1608
|
+
} }), Object.defineProperty(e, "isBoolean", { enumerable: !0, get: function() {
|
|
1609
|
+
return S.isBoolean;
|
|
1610
|
+
} }), Object.defineProperty(e, "isEmail", { enumerable: !0, get: function() {
|
|
1611
|
+
return S.isEmail;
|
|
1612
|
+
} }), Object.defineProperty(e, "isErrorResponse", { enumerable: !0, get: function() {
|
|
1613
|
+
return S.isErrorResponse;
|
|
1614
|
+
} }), Object.defineProperty(e, "isNullish", { enumerable: !0, get: function() {
|
|
1615
|
+
return S.isNullish;
|
|
1616
|
+
} }), Object.defineProperty(e, "isNumber", { enumerable: !0, get: function() {
|
|
1617
|
+
return S.isNumber;
|
|
1618
|
+
} }), Object.defineProperty(e, "isObject", { enumerable: !0, get: function() {
|
|
1619
|
+
return S.isObject;
|
|
1620
|
+
} }), Object.defineProperty(e, "isString", { enumerable: !0, get: function() {
|
|
1621
|
+
return S.isString;
|
|
1622
|
+
} }), Object.defineProperty(e, "isSuccessResponse", { enumerable: !0, get: function() {
|
|
1623
|
+
return S.isSuccessResponse;
|
|
1624
|
+
} }), Object.defineProperty(e, "isUrl", { enumerable: !0, get: function() {
|
|
1625
|
+
return S.isUrl;
|
|
1626
|
+
} }), Object.defineProperty(e, "isValidDate", { enumerable: !0, get: function() {
|
|
1627
|
+
return S.isValidDate;
|
|
1628
|
+
} }), Object.defineProperty(e, "optional", { enumerable: !0, get: function() {
|
|
1629
|
+
return S.optional;
|
|
1630
|
+
} }), Object.defineProperty(e, "parseJson", { enumerable: !0, get: function() {
|
|
1631
|
+
return S.parseJson;
|
|
1632
|
+
} }), Object.defineProperty(e, "validateArray", { enumerable: !0, get: function() {
|
|
1633
|
+
return S.validateArray;
|
|
1634
|
+
} });
|
|
1635
|
+
var p = Et();
|
|
1636
|
+
Object.defineProperty(e, "AddressType", { enumerable: !0, get: function() {
|
|
1637
|
+
return p.AddressType;
|
|
1638
|
+
} }), Object.defineProperty(e, "formatWalletAddress", { enumerable: !0, get: function() {
|
|
1639
|
+
return p.formatWalletAddress;
|
|
1640
|
+
} }), Object.defineProperty(e, "getAddressType", { enumerable: !0, get: function() {
|
|
1641
|
+
return p.getAddressType;
|
|
1642
|
+
} }), Object.defineProperty(e, "getChainDisplayName", { enumerable: !0, get: function() {
|
|
1643
|
+
return p.getChainDisplayName;
|
|
1644
|
+
} }), Object.defineProperty(e, "isENSName", { enumerable: !0, get: function() {
|
|
1645
|
+
return p.isENSName;
|
|
1646
|
+
} }), Object.defineProperty(e, "isSNSName", { enumerable: !0, get: function() {
|
|
1647
|
+
return p.isSNSName;
|
|
1648
|
+
} }), Object.defineProperty(e, "isValidSignature", { enumerable: !0, get: function() {
|
|
1649
|
+
return p.isValidSignature;
|
|
1650
|
+
} }), Object.defineProperty(e, "isValidWalletAddress", { enumerable: !0, get: function() {
|
|
1651
|
+
return p.isValidWalletAddress;
|
|
1652
|
+
} }), Object.defineProperty(e, "parseEmailAddress", { enumerable: !0, get: function() {
|
|
1653
|
+
return p.parseEmailAddress;
|
|
1654
|
+
} });
|
|
1655
|
+
var g = ir();
|
|
1656
|
+
Object.defineProperty(e, "createChainStatsId", { enumerable: !0, get: function() {
|
|
1657
|
+
return g.createChainStatsId;
|
|
1658
|
+
} }), Object.defineProperty(e, "createDelegationId", { enumerable: !0, get: function() {
|
|
1659
|
+
return g.createDelegationId;
|
|
1660
|
+
} }), Object.defineProperty(e, "createMultiChainId", { enumerable: !0, get: function() {
|
|
1661
|
+
return g.createMultiChainId;
|
|
1662
|
+
} }), Object.defineProperty(e, "createUserMultiChainId", { enumerable: !0, get: function() {
|
|
1663
|
+
return g.createUserMultiChainId;
|
|
1664
|
+
} }), Object.defineProperty(e, "formatBigInt", { enumerable: !0, get: function() {
|
|
1665
|
+
return g.formatBigInt;
|
|
1666
|
+
} }), Object.defineProperty(e, "isTestNet", { enumerable: !0, get: function() {
|
|
1667
|
+
return g.isTestNet;
|
|
1668
|
+
} }), Object.defineProperty(e, "isZeroAddress", { enumerable: !0, get: function() {
|
|
1669
|
+
return g.isZeroAddress;
|
|
1670
|
+
} }), Object.defineProperty(e, "normalizeAddress", { enumerable: !0, get: function() {
|
|
1671
|
+
return g.normalizeAddress;
|
|
1672
|
+
} }), Object.defineProperty(e, "validateEventArgs", { enumerable: !0, get: function() {
|
|
1673
|
+
return g.validateEventArgs;
|
|
2011
1674
|
} });
|
|
2012
|
-
|
|
1675
|
+
var A = or();
|
|
1676
|
+
Object.defineProperty(e, "canAccessProtectedFeatures", { enumerable: !0, get: function() {
|
|
1677
|
+
return A.canAccessProtectedFeatures;
|
|
1678
|
+
} }), Object.defineProperty(e, "extractNonceFromMessage", { enumerable: !0, get: function() {
|
|
1679
|
+
return A.extractNonceFromMessage;
|
|
1680
|
+
} }), Object.defineProperty(e, "generateAuthMessage", { enumerable: !0, get: function() {
|
|
1681
|
+
return A.generateAuthMessage;
|
|
1682
|
+
} }), Object.defineProperty(e, "generateNonce", { enumerable: !0, get: function() {
|
|
1683
|
+
return A.generateNonce;
|
|
1684
|
+
} }), Object.defineProperty(e, "getAuthStatusText", { enumerable: !0, get: function() {
|
|
1685
|
+
return A.getAuthStatusText;
|
|
1686
|
+
} }), Object.defineProperty(e, "isAuthExpired", { enumerable: !0, get: function() {
|
|
1687
|
+
return A.isAuthExpired;
|
|
1688
|
+
} }), Object.defineProperty(e, "isAuthStatusConnected", { enumerable: !0, get: function() {
|
|
1689
|
+
return A.isAuthStatusConnected;
|
|
1690
|
+
} }), Object.defineProperty(e, "isValidNonce", { enumerable: !0, get: function() {
|
|
1691
|
+
return A.isValidNonce;
|
|
1692
|
+
} });
|
|
1693
|
+
var y = ur();
|
|
1694
|
+
Object.defineProperty(e, "CLAIM_PERIOD_DAYS", { enumerable: !0, get: function() {
|
|
1695
|
+
return y.CLAIM_PERIOD_DAYS;
|
|
1696
|
+
} }), Object.defineProperty(e, "USDC_DECIMALS", { enumerable: !0, get: function() {
|
|
1697
|
+
return y.USDC_DECIMALS;
|
|
1698
|
+
} }), Object.defineProperty(e, "formatUSDC", { enumerable: !0, get: function() {
|
|
1699
|
+
return y.formatUSDC;
|
|
1700
|
+
} }), Object.defineProperty(e, "parseUSDC", { enumerable: !0, get: function() {
|
|
1701
|
+
return y.parseUSDC;
|
|
1702
|
+
} });
|
|
1703
|
+
var h = lr();
|
|
1704
|
+
Object.defineProperty(e, "addDays", { enumerable: !0, get: function() {
|
|
1705
|
+
return h.addDays;
|
|
1706
|
+
} }), Object.defineProperty(e, "addHours", { enumerable: !0, get: function() {
|
|
1707
|
+
return h.addHours;
|
|
1708
|
+
} }), Object.defineProperty(e, "formatEmailDate", { enumerable: !0, get: function() {
|
|
1709
|
+
return h.formatEmailDate;
|
|
1710
|
+
} }), Object.defineProperty(e, "formatRelativeTime", { enumerable: !0, get: function() {
|
|
1711
|
+
return h.formatRelativeTime;
|
|
1712
|
+
} }), Object.defineProperty(e, "formatTimestamp", { enumerable: !0, get: function() {
|
|
1713
|
+
return h.formatTimestamp;
|
|
1714
|
+
} }), Object.defineProperty(e, "isDateInRange", { enumerable: !0, get: function() {
|
|
1715
|
+
return h.isDateInRange;
|
|
1716
|
+
} }), Object.defineProperty(e, "parseDate", { enumerable: !0, get: function() {
|
|
1717
|
+
return h.parseDate;
|
|
1718
|
+
} });
|
|
1719
|
+
var R = sr();
|
|
1720
|
+
Object.defineProperty(e, "capitalize", { enumerable: !0, get: function() {
|
|
1721
|
+
return R.capitalize;
|
|
1722
|
+
} }), Object.defineProperty(e, "escapeHtml", { enumerable: !0, get: function() {
|
|
1723
|
+
return R.escapeHtml;
|
|
1724
|
+
} }), Object.defineProperty(e, "formatBytes", { enumerable: !0, get: function() {
|
|
1725
|
+
return R.formatBytes;
|
|
1726
|
+
} }), Object.defineProperty(e, "formatNumber", { enumerable: !0, get: function() {
|
|
1727
|
+
return R.formatNumber;
|
|
1728
|
+
} }), Object.defineProperty(e, "getInitials", { enumerable: !0, get: function() {
|
|
1729
|
+
return R.getInitials;
|
|
1730
|
+
} }), Object.defineProperty(e, "isBlank", { enumerable: !0, get: function() {
|
|
1731
|
+
return R.isBlank;
|
|
1732
|
+
} }), Object.defineProperty(e, "isNotBlank", { enumerable: !0, get: function() {
|
|
1733
|
+
return R.isNotBlank;
|
|
1734
|
+
} }), Object.defineProperty(e, "normalizeWhitespace", { enumerable: !0, get: function() {
|
|
1735
|
+
return R.normalizeWhitespace;
|
|
1736
|
+
} }), Object.defineProperty(e, "pluralize", { enumerable: !0, get: function() {
|
|
1737
|
+
return R.pluralize;
|
|
1738
|
+
} }), Object.defineProperty(e, "randomString", { enumerable: !0, get: function() {
|
|
1739
|
+
return R.randomString;
|
|
1740
|
+
} }), Object.defineProperty(e, "stripHtml", { enumerable: !0, get: function() {
|
|
1741
|
+
return R.stripHtml;
|
|
1742
|
+
} }), Object.defineProperty(e, "toCamelCase", { enumerable: !0, get: function() {
|
|
1743
|
+
return R.toCamelCase;
|
|
1744
|
+
} }), Object.defineProperty(e, "toKebabCase", { enumerable: !0, get: function() {
|
|
1745
|
+
return R.toKebabCase;
|
|
1746
|
+
} }), Object.defineProperty(e, "toSnakeCase", { enumerable: !0, get: function() {
|
|
1747
|
+
return R.toSnakeCase;
|
|
1748
|
+
} }), Object.defineProperty(e, "toTitleCase", { enumerable: !0, get: function() {
|
|
1749
|
+
return R.toTitleCase;
|
|
1750
|
+
} }), Object.defineProperty(e, "truncate", { enumerable: !0, get: function() {
|
|
1751
|
+
return R.truncate;
|
|
1752
|
+
} });
|
|
1753
|
+
var N = cr();
|
|
1754
|
+
Object.defineProperty(e, "API_TIMEOUT", { enumerable: !0, get: function() {
|
|
1755
|
+
return N.API_TIMEOUT;
|
|
1756
|
+
} }), Object.defineProperty(e, "API_RETRY_ATTEMPTS", { enumerable: !0, get: function() {
|
|
1757
|
+
return N.API_RETRY_ATTEMPTS;
|
|
1758
|
+
} }), Object.defineProperty(e, "API_RETRY_DELAY", { enumerable: !0, get: function() {
|
|
1759
|
+
return N.API_RETRY_DELAY;
|
|
1760
|
+
} }), Object.defineProperty(e, "AUTH_STATUS", { enumerable: !0, get: function() {
|
|
1761
|
+
return N.AUTH_STATUS;
|
|
1762
|
+
} }), Object.defineProperty(e, "CHAIN_TYPE", { enumerable: !0, get: function() {
|
|
1763
|
+
return N.CHAIN_TYPE;
|
|
1764
|
+
} }), Object.defineProperty(e, "STORAGE_KEYS", { enumerable: !0, get: function() {
|
|
1765
|
+
return N.STORAGE_KEYS;
|
|
1766
|
+
} }), Object.defineProperty(e, "EMAIL_CONFIG", { enumerable: !0, get: function() {
|
|
1767
|
+
return N.EMAIL_CONFIG;
|
|
1768
|
+
} }), Object.defineProperty(e, "SUBSCRIPTION_TIERS", { enumerable: !0, get: function() {
|
|
1769
|
+
return N.SUBSCRIPTION_TIERS;
|
|
1770
|
+
} }), Object.defineProperty(e, "TIME_FORMAT", { enumerable: !0, get: function() {
|
|
1771
|
+
return N.TIME_FORMAT;
|
|
1772
|
+
} }), Object.defineProperty(e, "ERROR_MESSAGES", { enumerable: !0, get: function() {
|
|
1773
|
+
return N.ERROR_MESSAGES;
|
|
1774
|
+
} }), Object.defineProperty(e, "SUCCESS_MESSAGES", { enumerable: !0, get: function() {
|
|
1775
|
+
return N.SUCCESS_MESSAGES;
|
|
1776
|
+
} }), Object.defineProperty(e, "ROUTES", { enumerable: !0, get: function() {
|
|
1777
|
+
return N.ROUTES;
|
|
1778
|
+
} }), Object.defineProperty(e, "CONTACT_INFO", { enumerable: !0, get: function() {
|
|
1779
|
+
return N.CONTACT_INFO;
|
|
1780
|
+
} }), Object.defineProperty(e, "WALLET_NAMES", { enumerable: !0, get: function() {
|
|
1781
|
+
return N.WALLET_NAMES;
|
|
1782
|
+
} }), Object.defineProperty(e, "NETWORK_IDS", { enumerable: !0, get: function() {
|
|
1783
|
+
return N.NETWORK_IDS;
|
|
1784
|
+
} }), Object.defineProperty(e, "ANIMATION", { enumerable: !0, get: function() {
|
|
1785
|
+
return N.ANIMATION;
|
|
1786
|
+
} }), Object.defineProperty(e, "Z_INDEX", { enumerable: !0, get: function() {
|
|
1787
|
+
return N.Z_INDEX;
|
|
1788
|
+
} });
|
|
1789
|
+
var P = dr();
|
|
1790
|
+
Object.defineProperty(e, "STATUS_VALUES", { enumerable: !0, get: function() {
|
|
1791
|
+
return P.STATUS_VALUES;
|
|
1792
|
+
} });
|
|
1793
|
+
var s = St();
|
|
1794
|
+
Object.defineProperty(e, "LogLevel", { enumerable: !0, get: function() {
|
|
1795
|
+
return s.LogLevel;
|
|
1796
|
+
} }), Object.defineProperty(e, "logger", { enumerable: !0, get: function() {
|
|
1797
|
+
return s.logger;
|
|
1798
|
+
} }), Object.defineProperty(e, "authLogger", { enumerable: !0, get: function() {
|
|
1799
|
+
return s.authLogger;
|
|
1800
|
+
} }), Object.defineProperty(e, "apiLogger", { enumerable: !0, get: function() {
|
|
1801
|
+
return s.apiLogger;
|
|
1802
|
+
} }), Object.defineProperty(e, "contractLogger", { enumerable: !0, get: function() {
|
|
1803
|
+
return s.contractLogger;
|
|
1804
|
+
} }), Object.defineProperty(e, "ensLogger", { enumerable: !0, get: function() {
|
|
1805
|
+
return s.ensLogger;
|
|
1806
|
+
} }), Object.defineProperty(e, "storageLogger", { enumerable: !0, get: function() {
|
|
1807
|
+
return s.storageLogger;
|
|
1808
|
+
} });
|
|
1809
|
+
var k = fr();
|
|
1810
|
+
Object.defineProperty(e, "createURLSearchParams", { enumerable: !0, get: function() {
|
|
1811
|
+
return k.createURLSearchParams;
|
|
1812
|
+
} }), Object.defineProperty(e, "createSearchParams", { enumerable: !0, get: function() {
|
|
1813
|
+
return k.createSearchParams;
|
|
1814
|
+
} }), Object.defineProperty(e, "searchParamsToString", { enumerable: !0, get: function() {
|
|
1815
|
+
return k.searchParamsToString;
|
|
1816
|
+
} }), Object.defineProperty(e, "parseSearchParams", { enumerable: !0, get: function() {
|
|
1817
|
+
return k.parseSearchParams;
|
|
1818
|
+
} });
|
|
1819
|
+
var L = mr();
|
|
1820
|
+
Object.defineProperty(e, "safeAsync", { enumerable: !0, get: function() {
|
|
1821
|
+
return L.safeAsync;
|
|
1822
|
+
} }), Object.defineProperty(e, "withLoadingState", { enumerable: !0, get: function() {
|
|
1823
|
+
return L.withLoadingState;
|
|
1824
|
+
} }), Object.defineProperty(e, "safeParallel", { enumerable: !0, get: function() {
|
|
1825
|
+
return L.safeParallel;
|
|
1826
|
+
} }), Object.defineProperty(e, "withTimeout", { enumerable: !0, get: function() {
|
|
1827
|
+
return L.withTimeout;
|
|
1828
|
+
} }), Object.defineProperty(e, "withCache", { enumerable: !0, get: function() {
|
|
1829
|
+
return L.withCache;
|
|
1830
|
+
} }), Object.defineProperty(e, "clearExpiredCache", { enumerable: !0, get: function() {
|
|
1831
|
+
return L.clearExpiredCache;
|
|
1832
|
+
} }), Object.defineProperty(e, "debounceAsync", { enumerable: !0, get: function() {
|
|
1833
|
+
return L.debounceAsync;
|
|
1834
|
+
} });
|
|
1835
|
+
})(Ee)), Ee;
|
|
2013
1836
|
}
|
|
2014
|
-
var
|
|
2015
|
-
const
|
|
1837
|
+
var z = gr();
|
|
1838
|
+
const hr = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` : "", yt = ({ addressType: e }) => {
|
|
2016
1839
|
const t = () => {
|
|
2017
1840
|
switch (e) {
|
|
2018
|
-
case
|
|
1841
|
+
case z.AddressType.EVMAddress:
|
|
2019
1842
|
return "ETH";
|
|
2020
|
-
case
|
|
1843
|
+
case z.AddressType.SolanaAddress:
|
|
2021
1844
|
return "SOL";
|
|
2022
|
-
case
|
|
1845
|
+
case z.AddressType.ENSName:
|
|
2023
1846
|
return "ENS";
|
|
2024
|
-
case
|
|
1847
|
+
case z.AddressType.SNSName:
|
|
2025
1848
|
return "SNS";
|
|
2026
1849
|
default:
|
|
2027
1850
|
return "DOMAIN";
|
|
2028
1851
|
}
|
|
2029
1852
|
};
|
|
2030
|
-
return /* @__PURE__ */
|
|
1853
|
+
return /* @__PURE__ */ v(
|
|
2031
1854
|
"span",
|
|
2032
1855
|
{
|
|
2033
|
-
className:
|
|
1856
|
+
className: M(
|
|
2034
1857
|
"inline-flex items-center px-2.5 py-0.5 rounded-md text-xs font-medium border",
|
|
2035
1858
|
(() => {
|
|
2036
1859
|
switch (e) {
|
|
2037
|
-
case
|
|
1860
|
+
case z.AddressType.EVMAddress:
|
|
2038
1861
|
return "bg-blue-50 text-blue-700 border-blue-200 dark:bg-blue-900/10 dark:text-blue-300 dark:border-blue-800";
|
|
2039
|
-
case
|
|
1862
|
+
case z.AddressType.SolanaAddress:
|
|
2040
1863
|
return "bg-purple-50 text-purple-700 border-purple-200 dark:bg-purple-900/10 dark:text-purple-300 dark:border-purple-800";
|
|
2041
|
-
case
|
|
1864
|
+
case z.AddressType.ENSName:
|
|
2042
1865
|
return "bg-green-50 text-green-700 border-green-200 dark:bg-green-900/10 dark:text-green-300 dark:border-green-800";
|
|
2043
|
-
case
|
|
1866
|
+
case z.AddressType.SNSName:
|
|
2044
1867
|
return "bg-orange-50 text-orange-700 border-orange-200 dark:bg-orange-900/10 dark:text-orange-300 dark:border-orange-800";
|
|
2045
1868
|
default:
|
|
2046
1869
|
return "bg-gray-50 text-gray-700 border-gray-200 dark:bg-gray-900/10 dark:text-gray-300 dark:border-gray-800";
|
|
@@ -2050,7 +1873,7 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2050
1873
|
children: t()
|
|
2051
1874
|
}
|
|
2052
1875
|
);
|
|
2053
|
-
},
|
|
1876
|
+
}, Er = ({
|
|
2054
1877
|
domainEmails: e,
|
|
2055
1878
|
isExpanded: t,
|
|
2056
1879
|
selectedAccount: r,
|
|
@@ -2058,38 +1881,38 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2058
1881
|
onAccountSettings: i,
|
|
2059
1882
|
onTrack: a
|
|
2060
1883
|
}) => {
|
|
2061
|
-
const o =
|
|
2062
|
-
return
|
|
1884
|
+
const o = Gt(null), [d, c] = Ht(void 0);
|
|
1885
|
+
return Yt(() => {
|
|
2063
1886
|
if (o.current) {
|
|
2064
|
-
const
|
|
2065
|
-
c(t ?
|
|
1887
|
+
const l = o.current.scrollHeight;
|
|
1888
|
+
c(t ? l + 8 : 0);
|
|
2066
1889
|
}
|
|
2067
|
-
}, [t, e]), /* @__PURE__ */
|
|
1890
|
+
}, [t, e]), /* @__PURE__ */ v(
|
|
2068
1891
|
"div",
|
|
2069
1892
|
{
|
|
2070
1893
|
className: "overflow-hidden transition-all duration-300 ease-in-out",
|
|
2071
|
-
style: { height:
|
|
2072
|
-
children: /* @__PURE__ */
|
|
1894
|
+
style: { height: d !== void 0 ? `${d}px` : "auto" },
|
|
1895
|
+
children: /* @__PURE__ */ v("div", { ref: o, className: "ml-6 mt-2 space-y-1", children: e.map((l) => /* @__PURE__ */ W(
|
|
2073
1896
|
"button",
|
|
2074
1897
|
{
|
|
2075
1898
|
onClick: () => {
|
|
2076
|
-
a?.("account_select"), n(
|
|
1899
|
+
a?.("account_select"), n(l.address);
|
|
2077
1900
|
},
|
|
2078
|
-
className:
|
|
1901
|
+
className: M(
|
|
2079
1902
|
"w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
|
|
2080
|
-
|
|
2081
|
-
r ===
|
|
1903
|
+
gt.body.sm(),
|
|
1904
|
+
r === l.address ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
2082
1905
|
),
|
|
2083
1906
|
children: [
|
|
2084
|
-
/* @__PURE__ */
|
|
2085
|
-
/* @__PURE__ */
|
|
1907
|
+
/* @__PURE__ */ v("span", { className: "truncate flex-1", children: l.name }),
|
|
1908
|
+
/* @__PURE__ */ v(yt, { addressType: l.addressType })
|
|
2086
1909
|
]
|
|
2087
1910
|
},
|
|
2088
|
-
|
|
1911
|
+
l.address
|
|
2089
1912
|
)) })
|
|
2090
1913
|
}
|
|
2091
1914
|
);
|
|
2092
|
-
},
|
|
1915
|
+
}, ea = ({
|
|
2093
1916
|
walletGroups: e,
|
|
2094
1917
|
selectedAccount: t,
|
|
2095
1918
|
expandedWallets: r,
|
|
@@ -2097,41 +1920,41 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2097
1920
|
onToggleWallet: i,
|
|
2098
1921
|
onAccountSettings: a,
|
|
2099
1922
|
className: o = "",
|
|
2100
|
-
onTrack:
|
|
2101
|
-
}) => /* @__PURE__ */
|
|
2102
|
-
/* @__PURE__ */
|
|
1923
|
+
onTrack: d
|
|
1924
|
+
}) => /* @__PURE__ */ v("nav", { className: M("space-y-1", o), children: e.map((c) => /* @__PURE__ */ W("div", { children: [
|
|
1925
|
+
/* @__PURE__ */ W(
|
|
2103
1926
|
"button",
|
|
2104
1927
|
{
|
|
2105
1928
|
onClick: () => {
|
|
2106
|
-
|
|
1929
|
+
d?.("primary_account_select"), n(c.primaryEmail.address);
|
|
2107
1930
|
},
|
|
2108
|
-
className:
|
|
1931
|
+
className: M(
|
|
2109
1932
|
"w-full flex items-center justify-between text-left px-3 py-2 rounded-lg transition-colors h-[44px]",
|
|
2110
|
-
|
|
1933
|
+
gt.body.sm(),
|
|
2111
1934
|
t === c.primaryEmail.address && c.domainEmails.length === 0 ? "bg-blue-100 dark:bg-blue-900/30 text-blue-700 dark:text-blue-300" : "hover:bg-gray-100 dark:hover:bg-gray-700"
|
|
2112
1935
|
),
|
|
2113
1936
|
style: c.customColor ? { backgroundColor: c.customColor } : void 0,
|
|
2114
1937
|
children: [
|
|
2115
|
-
/* @__PURE__ */
|
|
2116
|
-
/* @__PURE__ */
|
|
2117
|
-
/* @__PURE__ */
|
|
1938
|
+
/* @__PURE__ */ W("div", { className: "flex items-center flex-1 min-w-0", children: [
|
|
1939
|
+
/* @__PURE__ */ v("span", { className: "truncate flex-1", children: hr(c.walletAddress) }),
|
|
1940
|
+
/* @__PURE__ */ v(yt, { addressType: c.primaryEmail.addressType })
|
|
2118
1941
|
] }),
|
|
2119
|
-
c.domainEmails.length > 0 && /* @__PURE__ */
|
|
1942
|
+
c.domainEmails.length > 0 && /* @__PURE__ */ v(
|
|
2120
1943
|
"div",
|
|
2121
1944
|
{
|
|
2122
|
-
onClick: (
|
|
2123
|
-
|
|
1945
|
+
onClick: (l) => {
|
|
1946
|
+
l.stopPropagation(), d?.("toggle_wallet"), i(c.walletAddress);
|
|
2124
1947
|
},
|
|
2125
1948
|
className: "p-1 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-600 transition-colors cursor-pointer",
|
|
2126
1949
|
role: "button",
|
|
2127
1950
|
tabIndex: 0,
|
|
2128
|
-
onKeyDown: (
|
|
2129
|
-
(
|
|
1951
|
+
onKeyDown: (l) => {
|
|
1952
|
+
(l.key === "Enter" || l.key === " ") && (l.preventDefault(), l.stopPropagation(), d?.("toggle_wallet"), i(c.walletAddress));
|
|
2130
1953
|
},
|
|
2131
|
-
children: /* @__PURE__ */
|
|
2132
|
-
|
|
1954
|
+
children: /* @__PURE__ */ v(
|
|
1955
|
+
qt,
|
|
2133
1956
|
{
|
|
2134
|
-
className:
|
|
1957
|
+
className: M(
|
|
2135
1958
|
"h-4 w-4 text-gray-500 transition-transform duration-300 ease-in-out",
|
|
2136
1959
|
r.includes(c.walletAddress) ? "rotate-90" : "rotate-0"
|
|
2137
1960
|
)
|
|
@@ -2142,25 +1965,25 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2142
1965
|
]
|
|
2143
1966
|
}
|
|
2144
1967
|
),
|
|
2145
|
-
c.domainEmails.length > 0 && /* @__PURE__ */
|
|
2146
|
-
|
|
1968
|
+
c.domainEmails.length > 0 && /* @__PURE__ */ v(
|
|
1969
|
+
Er,
|
|
2147
1970
|
{
|
|
2148
1971
|
domainEmails: c.domainEmails,
|
|
2149
1972
|
isExpanded: r.includes(c.walletAddress),
|
|
2150
1973
|
selectedAccount: t,
|
|
2151
1974
|
onAccountSelect: n,
|
|
2152
1975
|
onAccountSettings: a,
|
|
2153
|
-
onTrack:
|
|
1976
|
+
onTrack: d
|
|
2154
1977
|
}
|
|
2155
1978
|
)
|
|
2156
|
-
] }, c.walletAddress)) }),
|
|
1979
|
+
] }, c.walletAddress)) }), ta = ({
|
|
2157
1980
|
className: e,
|
|
2158
1981
|
children: t,
|
|
2159
1982
|
disabled: r
|
|
2160
|
-
}) => /* @__PURE__ */
|
|
1983
|
+
}) => /* @__PURE__ */ v(
|
|
2161
1984
|
"div",
|
|
2162
1985
|
{
|
|
2163
|
-
className:
|
|
1986
|
+
className: M(
|
|
2164
1987
|
"p-4 rounded-lg border transition-colors",
|
|
2165
1988
|
"bg-white dark:bg-gray-900",
|
|
2166
1989
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -2172,14 +1995,14 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2172
1995
|
"aria-label": "EmailAnalytics",
|
|
2173
1996
|
children: t || "EmailAnalytics Component"
|
|
2174
1997
|
}
|
|
2175
|
-
),
|
|
1998
|
+
), ra = ({
|
|
2176
1999
|
className: e,
|
|
2177
2000
|
children: t,
|
|
2178
2001
|
disabled: r
|
|
2179
|
-
}) => /* @__PURE__ */
|
|
2002
|
+
}) => /* @__PURE__ */ v(
|
|
2180
2003
|
"div",
|
|
2181
2004
|
{
|
|
2182
|
-
className:
|
|
2005
|
+
className: M(
|
|
2183
2006
|
"p-4 rounded-lg border transition-colors",
|
|
2184
2007
|
"bg-white dark:bg-gray-900",
|
|
2185
2008
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -2191,7 +2014,7 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2191
2014
|
"aria-label": "EmailCampaign",
|
|
2192
2015
|
children: t || "EmailCampaign Component"
|
|
2193
2016
|
}
|
|
2194
|
-
),
|
|
2017
|
+
), pt = ({
|
|
2195
2018
|
label: e,
|
|
2196
2019
|
value: t,
|
|
2197
2020
|
onChange: r,
|
|
@@ -2199,26 +2022,26 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2199
2022
|
required: i = !1,
|
|
2200
2023
|
error: a,
|
|
2201
2024
|
className: o = ""
|
|
2202
|
-
}) => /* @__PURE__ */
|
|
2203
|
-
/* @__PURE__ */
|
|
2204
|
-
|
|
2025
|
+
}) => /* @__PURE__ */ W("div", { className: o, children: [
|
|
2026
|
+
/* @__PURE__ */ W(
|
|
2027
|
+
Bt,
|
|
2205
2028
|
{
|
|
2206
2029
|
htmlFor: e.toLowerCase(),
|
|
2207
2030
|
className: "text-sm font-medium text-gray-700 dark:text-gray-300",
|
|
2208
2031
|
children: [
|
|
2209
2032
|
e,
|
|
2210
2033
|
" ",
|
|
2211
|
-
i && /* @__PURE__ */
|
|
2034
|
+
i && /* @__PURE__ */ v("span", { className: "text-red-500", children: "*" })
|
|
2212
2035
|
]
|
|
2213
2036
|
}
|
|
2214
2037
|
),
|
|
2215
|
-
/* @__PURE__ */
|
|
2038
|
+
/* @__PURE__ */ v(
|
|
2216
2039
|
"input",
|
|
2217
2040
|
{
|
|
2218
2041
|
id: e.toLowerCase(),
|
|
2219
2042
|
type: "email",
|
|
2220
2043
|
value: t,
|
|
2221
|
-
onChange: (
|
|
2044
|
+
onChange: (d) => r(d.target.value),
|
|
2222
2045
|
placeholder: n,
|
|
2223
2046
|
className: `
|
|
2224
2047
|
mt-1 block w-full px-3 py-2 border rounded-md shadow-sm
|
|
@@ -2228,8 +2051,8 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2228
2051
|
`
|
|
2229
2052
|
}
|
|
2230
2053
|
),
|
|
2231
|
-
a && /* @__PURE__ */
|
|
2232
|
-
] }),
|
|
2054
|
+
a && /* @__PURE__ */ v("p", { className: "mt-1 text-sm text-red-600 dark:text-red-400", children: a })
|
|
2055
|
+
] }), ut = ({
|
|
2233
2056
|
isVisible: e,
|
|
2234
2057
|
onToggle: t,
|
|
2235
2058
|
showLabel: r,
|
|
@@ -2237,9 +2060,9 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2237
2060
|
onTrack: i,
|
|
2238
2061
|
trackingLabel: a,
|
|
2239
2062
|
componentName: o = "CollapsibleEmailField",
|
|
2240
|
-
...
|
|
2241
|
-
}) => /* @__PURE__ */
|
|
2242
|
-
/* @__PURE__ */
|
|
2063
|
+
...d
|
|
2064
|
+
}) => /* @__PURE__ */ W("div", { children: [
|
|
2065
|
+
/* @__PURE__ */ W(
|
|
2243
2066
|
"button",
|
|
2244
2067
|
{
|
|
2245
2068
|
type: "button",
|
|
@@ -2248,13 +2071,13 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2248
2071
|
},
|
|
2249
2072
|
className: "flex items-center text-sm text-blue-600 dark:text-blue-400 hover:text-blue-800 dark:hover:text-blue-300 mb-2",
|
|
2250
2073
|
children: [
|
|
2251
|
-
e ? /* @__PURE__ */
|
|
2074
|
+
e ? /* @__PURE__ */ v(zt, { className: "h-4 w-4 mr-1" }) : /* @__PURE__ */ v(Kt, { className: "h-4 w-4 mr-1" }),
|
|
2252
2075
|
e ? n : r
|
|
2253
2076
|
]
|
|
2254
2077
|
}
|
|
2255
2078
|
),
|
|
2256
|
-
e && /* @__PURE__ */
|
|
2257
|
-
] }),
|
|
2079
|
+
e && /* @__PURE__ */ v(pt, { ...d })
|
|
2080
|
+
] }), na = ({
|
|
2258
2081
|
to: e,
|
|
2259
2082
|
onToChange: t,
|
|
2260
2083
|
cc: r = "",
|
|
@@ -2262,11 +2085,11 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2262
2085
|
bcc: i = "",
|
|
2263
2086
|
onBccChange: a,
|
|
2264
2087
|
showCc: o = !1,
|
|
2265
|
-
showBcc:
|
|
2088
|
+
showBcc: d = !1,
|
|
2266
2089
|
onToggleCc: c,
|
|
2267
|
-
onToggleBcc:
|
|
2090
|
+
onToggleBcc: l,
|
|
2268
2091
|
errors: f = {},
|
|
2269
|
-
className:
|
|
2092
|
+
className: u = "",
|
|
2270
2093
|
labels: m = {},
|
|
2271
2094
|
placeholders: b = {},
|
|
2272
2095
|
onTrack: S,
|
|
@@ -2285,53 +2108,53 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2285
2108
|
to: "recipient@example.com",
|
|
2286
2109
|
cc: "cc@example.com",
|
|
2287
2110
|
bcc: "bcc@example.com"
|
|
2288
|
-
},
|
|
2289
|
-
return /* @__PURE__ */
|
|
2290
|
-
/* @__PURE__ */
|
|
2291
|
-
|
|
2111
|
+
}, h = { ...A, ...m }, R = { ...y, ...b };
|
|
2112
|
+
return /* @__PURE__ */ W("div", { className: `space-y-4 ${u}`, children: [
|
|
2113
|
+
/* @__PURE__ */ v(
|
|
2114
|
+
pt,
|
|
2292
2115
|
{
|
|
2293
|
-
label:
|
|
2116
|
+
label: h.to,
|
|
2294
2117
|
value: e,
|
|
2295
2118
|
onChange: t,
|
|
2296
|
-
placeholder:
|
|
2119
|
+
placeholder: R.to,
|
|
2297
2120
|
required: !0,
|
|
2298
2121
|
error: f.to
|
|
2299
2122
|
}
|
|
2300
2123
|
),
|
|
2301
|
-
c && n && /* @__PURE__ */
|
|
2302
|
-
|
|
2124
|
+
c && n && /* @__PURE__ */ v(
|
|
2125
|
+
ut,
|
|
2303
2126
|
{
|
|
2304
|
-
label:
|
|
2127
|
+
label: h.cc,
|
|
2305
2128
|
value: r,
|
|
2306
2129
|
onChange: n,
|
|
2307
|
-
placeholder:
|
|
2130
|
+
placeholder: R.cc,
|
|
2308
2131
|
error: f.cc,
|
|
2309
2132
|
isVisible: o,
|
|
2310
2133
|
onToggle: c,
|
|
2311
|
-
showLabel:
|
|
2312
|
-
hideLabel:
|
|
2134
|
+
showLabel: h.addCc,
|
|
2135
|
+
hideLabel: h.removeCc,
|
|
2313
2136
|
onTrack: S,
|
|
2314
2137
|
trackingLabel: p
|
|
2315
2138
|
}
|
|
2316
2139
|
),
|
|
2317
|
-
|
|
2318
|
-
|
|
2140
|
+
l && a && /* @__PURE__ */ v(
|
|
2141
|
+
ut,
|
|
2319
2142
|
{
|
|
2320
|
-
label:
|
|
2143
|
+
label: h.bcc,
|
|
2321
2144
|
value: i,
|
|
2322
2145
|
onChange: a,
|
|
2323
|
-
placeholder:
|
|
2146
|
+
placeholder: R.bcc,
|
|
2324
2147
|
error: f.bcc,
|
|
2325
|
-
isVisible:
|
|
2326
|
-
onToggle:
|
|
2327
|
-
showLabel:
|
|
2328
|
-
hideLabel:
|
|
2148
|
+
isVisible: d,
|
|
2149
|
+
onToggle: l,
|
|
2150
|
+
showLabel: h.addBcc,
|
|
2151
|
+
hideLabel: h.removeBcc,
|
|
2329
2152
|
onTrack: S,
|
|
2330
2153
|
trackingLabel: p
|
|
2331
2154
|
}
|
|
2332
2155
|
)
|
|
2333
2156
|
] });
|
|
2334
|
-
},
|
|
2157
|
+
}, aa = ({
|
|
2335
2158
|
className: e,
|
|
2336
2159
|
children: t,
|
|
2337
2160
|
disabled: r = !1,
|
|
@@ -2341,10 +2164,10 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2341
2164
|
const a = () => {
|
|
2342
2165
|
r || (i?.("click"), n?.());
|
|
2343
2166
|
};
|
|
2344
|
-
return /* @__PURE__ */
|
|
2167
|
+
return /* @__PURE__ */ v(
|
|
2345
2168
|
"div",
|
|
2346
2169
|
{
|
|
2347
|
-
className:
|
|
2170
|
+
className: M(
|
|
2348
2171
|
"p-4 rounded-lg border transition-colors",
|
|
2349
2172
|
"bg-white dark:bg-gray-900",
|
|
2350
2173
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -2360,11 +2183,11 @@ const En = (e) => e ? e.length <= 10 ? e : `${e.slice(0, 6)}...${e.slice(-4)}` :
|
|
|
2360
2183
|
}
|
|
2361
2184
|
);
|
|
2362
2185
|
};
|
|
2363
|
-
function
|
|
2186
|
+
function w(e, t) {
|
|
2364
2187
|
if (e === !1 || e === null || typeof e > "u")
|
|
2365
2188
|
throw new Error(t);
|
|
2366
2189
|
}
|
|
2367
|
-
function
|
|
2190
|
+
function G(e, t) {
|
|
2368
2191
|
if (!e) {
|
|
2369
2192
|
typeof console < "u" && console.warn(t);
|
|
2370
2193
|
try {
|
|
@@ -2373,14 +2196,14 @@ function B(e, t) {
|
|
|
2373
2196
|
}
|
|
2374
2197
|
}
|
|
2375
2198
|
}
|
|
2376
|
-
function
|
|
2199
|
+
function Oe({
|
|
2377
2200
|
pathname: e = "/",
|
|
2378
2201
|
search: t = "",
|
|
2379
2202
|
hash: r = ""
|
|
2380
2203
|
}) {
|
|
2381
2204
|
return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), r && r !== "#" && (e += r.charAt(0) === "#" ? r : "#" + r), e;
|
|
2382
2205
|
}
|
|
2383
|
-
function
|
|
2206
|
+
function ve(e) {
|
|
2384
2207
|
let t = {};
|
|
2385
2208
|
if (e) {
|
|
2386
2209
|
let r = e.indexOf("#");
|
|
@@ -2390,100 +2213,100 @@ function Ye(e) {
|
|
|
2390
2213
|
}
|
|
2391
2214
|
return t;
|
|
2392
2215
|
}
|
|
2393
|
-
function
|
|
2394
|
-
return
|
|
2216
|
+
function At(e, t, r = "/") {
|
|
2217
|
+
return br(e, t, r, !1);
|
|
2395
2218
|
}
|
|
2396
|
-
function
|
|
2397
|
-
let i = typeof t == "string" ?
|
|
2219
|
+
function br(e, t, r, n) {
|
|
2220
|
+
let i = typeof t == "string" ? ve(t) : t, a = K(i.pathname || "/", r);
|
|
2398
2221
|
if (a == null)
|
|
2399
2222
|
return null;
|
|
2400
|
-
let o =
|
|
2401
|
-
|
|
2402
|
-
let
|
|
2403
|
-
for (let c = 0;
|
|
2404
|
-
let
|
|
2405
|
-
|
|
2223
|
+
let o = Rt(e);
|
|
2224
|
+
Sr(o);
|
|
2225
|
+
let d = null;
|
|
2226
|
+
for (let c = 0; d == null && c < o.length; ++c) {
|
|
2227
|
+
let l = _r(a);
|
|
2228
|
+
d = Cr(
|
|
2406
2229
|
o[c],
|
|
2407
|
-
|
|
2230
|
+
l,
|
|
2408
2231
|
n
|
|
2409
2232
|
);
|
|
2410
2233
|
}
|
|
2411
|
-
return
|
|
2234
|
+
return d;
|
|
2412
2235
|
}
|
|
2413
|
-
function
|
|
2414
|
-
let a = (o,
|
|
2236
|
+
function Rt(e, t = [], r = [], n = "", i = !1) {
|
|
2237
|
+
let a = (o, d, c = i, l) => {
|
|
2415
2238
|
let f = {
|
|
2416
|
-
relativePath:
|
|
2239
|
+
relativePath: l === void 0 ? o.path || "" : l,
|
|
2417
2240
|
caseSensitive: o.caseSensitive === !0,
|
|
2418
|
-
childrenIndex:
|
|
2241
|
+
childrenIndex: d,
|
|
2419
2242
|
route: o
|
|
2420
2243
|
};
|
|
2421
2244
|
if (f.relativePath.startsWith("/")) {
|
|
2422
2245
|
if (!f.relativePath.startsWith(n) && c)
|
|
2423
2246
|
return;
|
|
2424
|
-
|
|
2247
|
+
w(
|
|
2425
2248
|
f.relativePath.startsWith(n),
|
|
2426
2249
|
`Absolute route path "${f.relativePath}" nested under path "${n}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`
|
|
2427
2250
|
), f.relativePath = f.relativePath.slice(n.length);
|
|
2428
2251
|
}
|
|
2429
|
-
let
|
|
2430
|
-
o.children && o.children.length > 0 && (
|
|
2252
|
+
let u = Y([n, f.relativePath]), m = r.concat(f);
|
|
2253
|
+
o.children && o.children.length > 0 && (w(
|
|
2431
2254
|
// Our types know better, but runtime JS may not!
|
|
2432
2255
|
// @ts-expect-error
|
|
2433
2256
|
o.index !== !0,
|
|
2434
|
-
`Index routes must not have child routes. Please remove all child routes from route path "${
|
|
2435
|
-
),
|
|
2257
|
+
`Index routes must not have child routes. Please remove all child routes from route path "${u}".`
|
|
2258
|
+
), Rt(
|
|
2436
2259
|
o.children,
|
|
2437
2260
|
t,
|
|
2438
2261
|
m,
|
|
2439
|
-
|
|
2262
|
+
u,
|
|
2440
2263
|
c
|
|
2441
2264
|
)), !(o.path == null && !o.index) && t.push({
|
|
2442
|
-
path:
|
|
2443
|
-
score:
|
|
2265
|
+
path: u,
|
|
2266
|
+
score: Or(u, o.index),
|
|
2444
2267
|
routesMeta: m
|
|
2445
2268
|
});
|
|
2446
2269
|
};
|
|
2447
|
-
return e.forEach((o,
|
|
2270
|
+
return e.forEach((o, d) => {
|
|
2448
2271
|
if (o.path === "" || !o.path?.includes("?"))
|
|
2449
|
-
a(o,
|
|
2272
|
+
a(o, d);
|
|
2450
2273
|
else
|
|
2451
|
-
for (let c of
|
|
2452
|
-
a(o,
|
|
2274
|
+
for (let c of Nt(o.path))
|
|
2275
|
+
a(o, d, !0, c);
|
|
2453
2276
|
}), t;
|
|
2454
2277
|
}
|
|
2455
|
-
function
|
|
2278
|
+
function Nt(e) {
|
|
2456
2279
|
let t = e.split("/");
|
|
2457
2280
|
if (t.length === 0) return [];
|
|
2458
2281
|
let [r, ...n] = t, i = r.endsWith("?"), a = r.replace(/\?$/, "");
|
|
2459
2282
|
if (n.length === 0)
|
|
2460
2283
|
return i ? [a, ""] : [a];
|
|
2461
|
-
let o =
|
|
2462
|
-
return
|
|
2284
|
+
let o = Nt(n.join("/")), d = [];
|
|
2285
|
+
return d.push(
|
|
2463
2286
|
...o.map(
|
|
2464
2287
|
(c) => c === "" ? a : [a, c].join("/")
|
|
2465
2288
|
)
|
|
2466
|
-
), i &&
|
|
2289
|
+
), i && d.push(...o), d.map(
|
|
2467
2290
|
(c) => e.startsWith("/") && c === "" ? "/" : c
|
|
2468
2291
|
);
|
|
2469
2292
|
}
|
|
2470
|
-
function
|
|
2293
|
+
function Sr(e) {
|
|
2471
2294
|
e.sort(
|
|
2472
|
-
(t, r) => t.score !== r.score ? r.score - t.score :
|
|
2295
|
+
(t, r) => t.score !== r.score ? r.score - t.score : vr(
|
|
2473
2296
|
t.routesMeta.map((n) => n.childrenIndex),
|
|
2474
2297
|
r.routesMeta.map((n) => n.childrenIndex)
|
|
2475
2298
|
)
|
|
2476
2299
|
);
|
|
2477
2300
|
}
|
|
2478
|
-
var
|
|
2479
|
-
function
|
|
2301
|
+
var yr = /^:[\w-]+$/, pr = 3, Ar = 2, Rr = 1, Nr = 10, Tr = -2, lt = (e) => e === "*";
|
|
2302
|
+
function Or(e, t) {
|
|
2480
2303
|
let r = e.split("/"), n = r.length;
|
|
2481
|
-
return r.some(
|
|
2482
|
-
(i, a) => i + (
|
|
2304
|
+
return r.some(lt) && (n += Tr), t && (n += Ar), r.filter((i) => !lt(i)).reduce(
|
|
2305
|
+
(i, a) => i + (yr.test(a) ? pr : a === "" ? Rr : Nr),
|
|
2483
2306
|
n
|
|
2484
2307
|
);
|
|
2485
2308
|
}
|
|
2486
|
-
function
|
|
2309
|
+
function vr(e, t) {
|
|
2487
2310
|
return e.length === t.length && e.slice(0, -1).every((n, i) => n === t[i]) ? (
|
|
2488
2311
|
// If two routes are siblings, we should try to match the earlier sibling
|
|
2489
2312
|
// first. This allows people to have fine-grained control over the matching
|
|
@@ -2496,52 +2319,52 @@ function _n(e, t) {
|
|
|
2496
2319
|
0
|
|
2497
2320
|
);
|
|
2498
2321
|
}
|
|
2499
|
-
function
|
|
2322
|
+
function Cr(e, t, r = !1) {
|
|
2500
2323
|
let { routesMeta: n } = e, i = {}, a = "/", o = [];
|
|
2501
|
-
for (let
|
|
2502
|
-
let c = n[
|
|
2503
|
-
{ path: c.relativePath, caseSensitive: c.caseSensitive, end:
|
|
2324
|
+
for (let d = 0; d < n.length; ++d) {
|
|
2325
|
+
let c = n[d], l = d === n.length - 1, f = a === "/" ? t : t.slice(a.length) || "/", u = fe(
|
|
2326
|
+
{ path: c.relativePath, caseSensitive: c.caseSensitive, end: l },
|
|
2504
2327
|
f
|
|
2505
2328
|
), m = c.route;
|
|
2506
|
-
if (!
|
|
2329
|
+
if (!u && l && r && !n[n.length - 1].route.index && (u = fe(
|
|
2507
2330
|
{
|
|
2508
2331
|
path: c.relativePath,
|
|
2509
2332
|
caseSensitive: c.caseSensitive,
|
|
2510
2333
|
end: !1
|
|
2511
2334
|
},
|
|
2512
2335
|
f
|
|
2513
|
-
)), !
|
|
2336
|
+
)), !u)
|
|
2514
2337
|
return null;
|
|
2515
|
-
Object.assign(i,
|
|
2338
|
+
Object.assign(i, u.params), o.push({
|
|
2516
2339
|
// TODO: Can this as be avoided?
|
|
2517
2340
|
params: i,
|
|
2518
|
-
pathname:
|
|
2519
|
-
pathnameBase:
|
|
2520
|
-
|
|
2341
|
+
pathname: Y([a, u.pathname]),
|
|
2342
|
+
pathnameBase: Lr(
|
|
2343
|
+
Y([a, u.pathnameBase])
|
|
2521
2344
|
),
|
|
2522
2345
|
route: m
|
|
2523
|
-
}),
|
|
2346
|
+
}), u.pathnameBase !== "/" && (a = Y([a, u.pathnameBase]));
|
|
2524
2347
|
}
|
|
2525
2348
|
return o;
|
|
2526
2349
|
}
|
|
2527
|
-
function
|
|
2350
|
+
function fe(e, t) {
|
|
2528
2351
|
typeof e == "string" && (e = { path: e, caseSensitive: !1, end: !0 });
|
|
2529
|
-
let [r, n] =
|
|
2352
|
+
let [r, n] = Pr(
|
|
2530
2353
|
e.path,
|
|
2531
2354
|
e.caseSensitive,
|
|
2532
2355
|
e.end
|
|
2533
2356
|
), i = t.match(r);
|
|
2534
2357
|
if (!i) return null;
|
|
2535
|
-
let a = i[0], o = a.replace(/(.)\/+$/, "$1"),
|
|
2358
|
+
let a = i[0], o = a.replace(/(.)\/+$/, "$1"), d = i.slice(1);
|
|
2536
2359
|
return {
|
|
2537
2360
|
params: n.reduce(
|
|
2538
|
-
(
|
|
2361
|
+
(l, { paramName: f, isOptional: u }, m) => {
|
|
2539
2362
|
if (f === "*") {
|
|
2540
|
-
let S =
|
|
2363
|
+
let S = d[m] || "";
|
|
2541
2364
|
o = a.slice(0, a.length - S.length).replace(/(.)\/+$/, "$1");
|
|
2542
2365
|
}
|
|
2543
|
-
const b =
|
|
2544
|
-
return
|
|
2366
|
+
const b = d[m];
|
|
2367
|
+
return u && !b ? l[f] = void 0 : l[f] = (b || "").replace(/%2F/g, "/"), l;
|
|
2545
2368
|
},
|
|
2546
2369
|
{}
|
|
2547
2370
|
),
|
|
@@ -2550,139 +2373,139 @@ function be(e, t) {
|
|
|
2550
2373
|
pattern: e
|
|
2551
2374
|
};
|
|
2552
2375
|
}
|
|
2553
|
-
function
|
|
2554
|
-
|
|
2376
|
+
function Pr(e, t = !1, r = !0) {
|
|
2377
|
+
G(
|
|
2555
2378
|
e === "*" || !e.endsWith("*") || e.endsWith("/*"),
|
|
2556
2379
|
`Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`
|
|
2557
2380
|
);
|
|
2558
2381
|
let n = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(
|
|
2559
2382
|
/\/:([\w-]+)(\?)?/g,
|
|
2560
|
-
(o,
|
|
2383
|
+
(o, d, c) => (n.push({ paramName: d, isOptional: c != null }), c ? "/?([^\\/]+)?" : "/([^\\/]+)")
|
|
2561
2384
|
).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
|
|
2562
2385
|
return e.endsWith("*") ? (n.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : r ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), n];
|
|
2563
2386
|
}
|
|
2564
|
-
function
|
|
2387
|
+
function _r(e) {
|
|
2565
2388
|
try {
|
|
2566
2389
|
return e.split("/").map((t) => decodeURIComponent(t).replace(/\//g, "%2F")).join("/");
|
|
2567
2390
|
} catch (t) {
|
|
2568
|
-
return
|
|
2391
|
+
return G(
|
|
2569
2392
|
!1,
|
|
2570
2393
|
`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`
|
|
2571
2394
|
), e;
|
|
2572
2395
|
}
|
|
2573
2396
|
}
|
|
2574
|
-
function
|
|
2397
|
+
function K(e, t) {
|
|
2575
2398
|
if (t === "/") return e;
|
|
2576
2399
|
if (!e.toLowerCase().startsWith(t.toLowerCase()))
|
|
2577
2400
|
return null;
|
|
2578
2401
|
let r = t.endsWith("/") ? t.length - 1 : t.length, n = e.charAt(r);
|
|
2579
2402
|
return n && n !== "/" ? null : e.slice(r) || "/";
|
|
2580
2403
|
}
|
|
2581
|
-
var
|
|
2582
|
-
function
|
|
2404
|
+
var Tt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Ir = (e) => Tt.test(e);
|
|
2405
|
+
function wr(e, t = "/") {
|
|
2583
2406
|
let {
|
|
2584
2407
|
pathname: r,
|
|
2585
2408
|
search: n = "",
|
|
2586
2409
|
hash: i = ""
|
|
2587
|
-
} = typeof e == "string" ?
|
|
2410
|
+
} = typeof e == "string" ? ve(e) : e, a;
|
|
2588
2411
|
if (r)
|
|
2589
|
-
if (
|
|
2412
|
+
if (Ir(r))
|
|
2590
2413
|
a = r;
|
|
2591
2414
|
else {
|
|
2592
2415
|
if (r.includes("//")) {
|
|
2593
2416
|
let o = r;
|
|
2594
|
-
r = r.replace(/\/\/+/g, "/"),
|
|
2417
|
+
r = r.replace(/\/\/+/g, "/"), G(
|
|
2595
2418
|
!1,
|
|
2596
2419
|
`Pathnames cannot have embedded double slashes - normalizing ${o} -> ${r}`
|
|
2597
2420
|
);
|
|
2598
2421
|
}
|
|
2599
|
-
r.startsWith("/") ? a =
|
|
2422
|
+
r.startsWith("/") ? a = st(r.substring(1), "/") : a = st(r, t);
|
|
2600
2423
|
}
|
|
2601
2424
|
else
|
|
2602
2425
|
a = t;
|
|
2603
2426
|
return {
|
|
2604
2427
|
pathname: a,
|
|
2605
|
-
search:
|
|
2606
|
-
hash:
|
|
2428
|
+
search: Dr(n),
|
|
2429
|
+
hash: jr(i)
|
|
2607
2430
|
};
|
|
2608
2431
|
}
|
|
2609
|
-
function
|
|
2432
|
+
function st(e, t) {
|
|
2610
2433
|
let r = t.replace(/\/+$/, "").split("/");
|
|
2611
2434
|
return e.split("/").forEach((i) => {
|
|
2612
2435
|
i === ".." ? r.length > 1 && r.pop() : i !== "." && r.push(i);
|
|
2613
2436
|
}), r.length > 1 ? r.join("/") : "/";
|
|
2614
2437
|
}
|
|
2615
|
-
function
|
|
2438
|
+
function Re(e, t, r, n) {
|
|
2616
2439
|
return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(
|
|
2617
2440
|
n
|
|
2618
2441
|
)}]. Please separate it out to the \`to.${r}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
|
|
2619
2442
|
}
|
|
2620
|
-
function
|
|
2443
|
+
function Mr(e) {
|
|
2621
2444
|
return e.filter(
|
|
2622
2445
|
(t, r) => r === 0 || t.route.path && t.route.path.length > 0
|
|
2623
2446
|
);
|
|
2624
2447
|
}
|
|
2625
|
-
function
|
|
2626
|
-
let t =
|
|
2448
|
+
function Ot(e) {
|
|
2449
|
+
let t = Mr(e);
|
|
2627
2450
|
return t.map(
|
|
2628
2451
|
(r, n) => n === t.length - 1 ? r.pathname : r.pathnameBase
|
|
2629
2452
|
);
|
|
2630
2453
|
}
|
|
2631
|
-
function
|
|
2454
|
+
function vt(e, t, r, n = !1) {
|
|
2632
2455
|
let i;
|
|
2633
|
-
typeof e == "string" ? i =
|
|
2456
|
+
typeof e == "string" ? i = ve(e) : (i = { ...e }, w(
|
|
2634
2457
|
!i.pathname || !i.pathname.includes("?"),
|
|
2635
|
-
|
|
2636
|
-
),
|
|
2458
|
+
Re("?", "pathname", "search", i)
|
|
2459
|
+
), w(
|
|
2637
2460
|
!i.pathname || !i.pathname.includes("#"),
|
|
2638
|
-
|
|
2639
|
-
),
|
|
2461
|
+
Re("#", "pathname", "hash", i)
|
|
2462
|
+
), w(
|
|
2640
2463
|
!i.search || !i.search.includes("#"),
|
|
2641
|
-
|
|
2464
|
+
Re("#", "search", "hash", i)
|
|
2642
2465
|
));
|
|
2643
|
-
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname,
|
|
2466
|
+
let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, d;
|
|
2644
2467
|
if (o == null)
|
|
2645
|
-
|
|
2468
|
+
d = r;
|
|
2646
2469
|
else {
|
|
2647
|
-
let
|
|
2470
|
+
let u = t.length - 1;
|
|
2648
2471
|
if (!n && o.startsWith("..")) {
|
|
2649
2472
|
let m = o.split("/");
|
|
2650
2473
|
for (; m[0] === ".."; )
|
|
2651
|
-
m.shift(),
|
|
2474
|
+
m.shift(), u -= 1;
|
|
2652
2475
|
i.pathname = m.join("/");
|
|
2653
2476
|
}
|
|
2654
|
-
|
|
2477
|
+
d = u >= 0 ? t[u] : "/";
|
|
2655
2478
|
}
|
|
2656
|
-
let c =
|
|
2657
|
-
return !c.pathname.endsWith("/") && (
|
|
2479
|
+
let c = wr(i, d), l = o && o !== "/" && o.endsWith("/"), f = (a || o === ".") && r.endsWith("/");
|
|
2480
|
+
return !c.pathname.endsWith("/") && (l || f) && (c.pathname += "/"), c;
|
|
2658
2481
|
}
|
|
2659
|
-
var
|
|
2482
|
+
var Y = (e) => e.join("/").replace(/\/\/+/g, "/"), Lr = (e) => e.replace(/\/+$/, "").replace(/^\/*/, "/"), Dr = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, jr = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ur = class {
|
|
2660
2483
|
constructor(e, t, r, n = !1) {
|
|
2661
2484
|
this.status = e, this.statusText = t || "", this.internal = n, r instanceof Error ? (this.data = r.toString(), this.error = r) : this.data = r;
|
|
2662
2485
|
}
|
|
2663
2486
|
};
|
|
2664
|
-
function
|
|
2487
|
+
function kr(e) {
|
|
2665
2488
|
return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
|
|
2666
2489
|
}
|
|
2667
|
-
function
|
|
2490
|
+
function Vr(e) {
|
|
2668
2491
|
return e.map((t) => t.route.path).filter(Boolean).join("/").replace(/\/\/*/g, "/") || "/";
|
|
2669
2492
|
}
|
|
2670
|
-
var
|
|
2671
|
-
function
|
|
2493
|
+
var Ct = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
2494
|
+
function Pt(e, t) {
|
|
2672
2495
|
let r = e;
|
|
2673
|
-
if (typeof r != "string" || !
|
|
2496
|
+
if (typeof r != "string" || !Tt.test(r))
|
|
2674
2497
|
return {
|
|
2675
2498
|
absoluteURL: void 0,
|
|
2676
2499
|
isExternal: !1,
|
|
2677
2500
|
to: r
|
|
2678
2501
|
};
|
|
2679
2502
|
let n = r, i = !1;
|
|
2680
|
-
if (
|
|
2503
|
+
if (Ct)
|
|
2681
2504
|
try {
|
|
2682
|
-
let a = new URL(window.location.href), o = r.startsWith("//") ? new URL(a.protocol + r) : new URL(r),
|
|
2683
|
-
o.origin === a.origin &&
|
|
2505
|
+
let a = new URL(window.location.href), o = r.startsWith("//") ? new URL(a.protocol + r) : new URL(r), d = K(o.pathname, t);
|
|
2506
|
+
o.origin === a.origin && d != null ? r = d + o.search + o.hash : i = !0;
|
|
2684
2507
|
} catch {
|
|
2685
|
-
|
|
2508
|
+
G(
|
|
2686
2509
|
!1,
|
|
2687
2510
|
`<Link to="${r}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`
|
|
2688
2511
|
);
|
|
@@ -2694,53 +2517,53 @@ function fr(e, t) {
|
|
|
2694
2517
|
};
|
|
2695
2518
|
}
|
|
2696
2519
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
2697
|
-
var
|
|
2520
|
+
var _t = [
|
|
2698
2521
|
"POST",
|
|
2699
2522
|
"PUT",
|
|
2700
2523
|
"PATCH",
|
|
2701
2524
|
"DELETE"
|
|
2702
2525
|
];
|
|
2703
2526
|
new Set(
|
|
2704
|
-
|
|
2527
|
+
_t
|
|
2705
2528
|
);
|
|
2706
|
-
var
|
|
2529
|
+
var Wr = [
|
|
2707
2530
|
"GET",
|
|
2708
|
-
...
|
|
2531
|
+
..._t
|
|
2709
2532
|
];
|
|
2710
|
-
new Set(
|
|
2711
|
-
var
|
|
2712
|
-
|
|
2713
|
-
var
|
|
2714
|
-
|
|
2715
|
-
var
|
|
2533
|
+
new Set(Wr);
|
|
2534
|
+
var $ = E.createContext(null);
|
|
2535
|
+
$.displayName = "DataRouter";
|
|
2536
|
+
var me = E.createContext(null);
|
|
2537
|
+
me.displayName = "DataRouterState";
|
|
2538
|
+
var Fr = E.createContext(!1), It = E.createContext({
|
|
2716
2539
|
isTransitioning: !1
|
|
2717
2540
|
});
|
|
2718
|
-
|
|
2719
|
-
var
|
|
2541
|
+
It.displayName = "ViewTransition";
|
|
2542
|
+
var Br = E.createContext(
|
|
2720
2543
|
/* @__PURE__ */ new Map()
|
|
2721
2544
|
);
|
|
2722
|
-
|
|
2723
|
-
var
|
|
2724
|
-
|
|
2725
|
-
var
|
|
2545
|
+
Br.displayName = "Fetchers";
|
|
2546
|
+
var Gr = E.createContext(null);
|
|
2547
|
+
Gr.displayName = "Await";
|
|
2548
|
+
var F = E.createContext(
|
|
2726
2549
|
null
|
|
2727
2550
|
);
|
|
2728
|
-
|
|
2729
|
-
var
|
|
2551
|
+
F.displayName = "Navigation";
|
|
2552
|
+
var Ce = E.createContext(
|
|
2730
2553
|
null
|
|
2731
2554
|
);
|
|
2732
|
-
|
|
2733
|
-
var
|
|
2555
|
+
Ce.displayName = "Location";
|
|
2556
|
+
var q = E.createContext({
|
|
2734
2557
|
outlet: null,
|
|
2735
2558
|
matches: [],
|
|
2736
2559
|
isDataRoute: !1
|
|
2737
2560
|
});
|
|
2738
|
-
|
|
2739
|
-
var
|
|
2740
|
-
|
|
2741
|
-
var
|
|
2742
|
-
function
|
|
2743
|
-
if (e.startsWith(`${
|
|
2561
|
+
q.displayName = "Route";
|
|
2562
|
+
var Pe = E.createContext(null);
|
|
2563
|
+
Pe.displayName = "RouteError";
|
|
2564
|
+
var wt = "REACT_ROUTER_ERROR", Hr = "REDIRECT", Yr = "ROUTE_ERROR_RESPONSE";
|
|
2565
|
+
function qr(e) {
|
|
2566
|
+
if (e.startsWith(`${wt}:${Hr}:{`))
|
|
2744
2567
|
try {
|
|
2745
2568
|
let t = JSON.parse(e.slice(28));
|
|
2746
2569
|
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean")
|
|
@@ -2748,14 +2571,14 @@ function zn(e) {
|
|
|
2748
2571
|
} catch {
|
|
2749
2572
|
}
|
|
2750
2573
|
}
|
|
2751
|
-
function
|
|
2574
|
+
function zr(e) {
|
|
2752
2575
|
if (e.startsWith(
|
|
2753
|
-
`${
|
|
2576
|
+
`${wt}:${Yr}:{`
|
|
2754
2577
|
))
|
|
2755
2578
|
try {
|
|
2756
2579
|
let t = JSON.parse(e.slice(40));
|
|
2757
2580
|
if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string")
|
|
2758
|
-
return new
|
|
2581
|
+
return new Ur(
|
|
2759
2582
|
t.status,
|
|
2760
2583
|
t.statusText,
|
|
2761
2584
|
t.data
|
|
@@ -2763,62 +2586,62 @@ function Kn(e) {
|
|
|
2763
2586
|
} catch {
|
|
2764
2587
|
}
|
|
2765
2588
|
}
|
|
2766
|
-
function
|
|
2767
|
-
|
|
2768
|
-
|
|
2589
|
+
function Kr(e, { relative: t } = {}) {
|
|
2590
|
+
w(
|
|
2591
|
+
ge(),
|
|
2769
2592
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2770
2593
|
// router loaded. We can help them understand how to avoid that.
|
|
2771
2594
|
"useHref() may be used only in the context of a <Router> component."
|
|
2772
2595
|
);
|
|
2773
|
-
let { basename: r, navigator: n } =
|
|
2774
|
-
return r !== "/" && (
|
|
2596
|
+
let { basename: r, navigator: n } = E.useContext(F), { hash: i, pathname: a, search: o } = le(e, { relative: t }), d = a;
|
|
2597
|
+
return r !== "/" && (d = a === "/" ? r : Y([r, a])), n.createHref({ pathname: d, search: o, hash: i });
|
|
2775
2598
|
}
|
|
2776
|
-
function
|
|
2777
|
-
return
|
|
2599
|
+
function ge() {
|
|
2600
|
+
return E.useContext(Ce) != null;
|
|
2778
2601
|
}
|
|
2779
|
-
function
|
|
2780
|
-
return
|
|
2781
|
-
|
|
2602
|
+
function Q() {
|
|
2603
|
+
return w(
|
|
2604
|
+
ge(),
|
|
2782
2605
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2783
2606
|
// router loaded. We can help them understand how to avoid that.
|
|
2784
2607
|
"useLocation() may be used only in the context of a <Router> component."
|
|
2785
|
-
),
|
|
2608
|
+
), E.useContext(Ce).location;
|
|
2786
2609
|
}
|
|
2787
|
-
var
|
|
2788
|
-
function
|
|
2789
|
-
|
|
2610
|
+
var Mt = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
|
|
2611
|
+
function Lt(e) {
|
|
2612
|
+
E.useContext(F).static || E.useLayoutEffect(e);
|
|
2790
2613
|
}
|
|
2791
|
-
function
|
|
2792
|
-
let { isDataRoute: e } =
|
|
2793
|
-
return e ?
|
|
2614
|
+
function Zr() {
|
|
2615
|
+
let { isDataRoute: e } = E.useContext(q);
|
|
2616
|
+
return e ? ln() : Jr();
|
|
2794
2617
|
}
|
|
2795
|
-
function
|
|
2796
|
-
|
|
2797
|
-
|
|
2618
|
+
function Jr() {
|
|
2619
|
+
w(
|
|
2620
|
+
ge(),
|
|
2798
2621
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2799
2622
|
// router loaded. We can help them understand how to avoid that.
|
|
2800
2623
|
"useNavigate() may be used only in the context of a <Router> component."
|
|
2801
2624
|
);
|
|
2802
|
-
let e =
|
|
2803
|
-
return
|
|
2625
|
+
let e = E.useContext($), { basename: t, navigator: r } = E.useContext(F), { matches: n } = E.useContext(q), { pathname: i } = Q(), a = JSON.stringify(Ot(n)), o = E.useRef(!1);
|
|
2626
|
+
return Lt(() => {
|
|
2804
2627
|
o.current = !0;
|
|
2805
|
-
}),
|
|
2806
|
-
(c,
|
|
2807
|
-
if (
|
|
2628
|
+
}), E.useCallback(
|
|
2629
|
+
(c, l = {}) => {
|
|
2630
|
+
if (G(o.current, Mt), !o.current) return;
|
|
2808
2631
|
if (typeof c == "number") {
|
|
2809
2632
|
r.go(c);
|
|
2810
2633
|
return;
|
|
2811
2634
|
}
|
|
2812
|
-
let f =
|
|
2635
|
+
let f = vt(
|
|
2813
2636
|
c,
|
|
2814
2637
|
JSON.parse(a),
|
|
2815
2638
|
i,
|
|
2816
|
-
|
|
2639
|
+
l.relative === "path"
|
|
2817
2640
|
);
|
|
2818
|
-
e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t :
|
|
2641
|
+
e == null && t !== "/" && (f.pathname = f.pathname === "/" ? t : Y([t, f.pathname])), (l.replace ? r.replace : r.push)(
|
|
2819
2642
|
f,
|
|
2820
|
-
|
|
2821
|
-
|
|
2643
|
+
l.state,
|
|
2644
|
+
l
|
|
2822
2645
|
);
|
|
2823
2646
|
},
|
|
2824
2647
|
[
|
|
@@ -2830,11 +2653,11 @@ function Xn() {
|
|
|
2830
2653
|
]
|
|
2831
2654
|
);
|
|
2832
2655
|
}
|
|
2833
|
-
|
|
2834
|
-
function
|
|
2835
|
-
let { matches: r } =
|
|
2836
|
-
return
|
|
2837
|
-
() =>
|
|
2656
|
+
E.createContext(null);
|
|
2657
|
+
function le(e, { relative: t } = {}) {
|
|
2658
|
+
let { matches: r } = E.useContext(q), { pathname: n } = Q(), i = JSON.stringify(Ot(r));
|
|
2659
|
+
return E.useMemo(
|
|
2660
|
+
() => vt(
|
|
2838
2661
|
e,
|
|
2839
2662
|
JSON.parse(i),
|
|
2840
2663
|
n,
|
|
@@ -2843,43 +2666,43 @@ function me(e, { relative: t } = {}) {
|
|
|
2843
2666
|
[e, i, n, t]
|
|
2844
2667
|
);
|
|
2845
2668
|
}
|
|
2846
|
-
function
|
|
2847
|
-
|
|
2848
|
-
|
|
2669
|
+
function Xr(e, t, r, n, i) {
|
|
2670
|
+
w(
|
|
2671
|
+
ge(),
|
|
2849
2672
|
// TODO: This error is probably because they somehow have 2 versions of the
|
|
2850
2673
|
// router loaded. We can help them understand how to avoid that.
|
|
2851
2674
|
"useRoutes() may be used only in the context of a <Router> component."
|
|
2852
2675
|
);
|
|
2853
|
-
let { navigator: a } =
|
|
2676
|
+
let { navigator: a } = E.useContext(F), { matches: o } = E.useContext(q), d = o[o.length - 1], c = d ? d.params : {}, l = d ? d.pathname : "/", f = d ? d.pathnameBase : "/", u = d && d.route;
|
|
2854
2677
|
{
|
|
2855
|
-
let y =
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
!
|
|
2859
|
-
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${
|
|
2678
|
+
let y = u && u.path || "";
|
|
2679
|
+
jt(
|
|
2680
|
+
l,
|
|
2681
|
+
!u || y.endsWith("*") || y.endsWith("*?"),
|
|
2682
|
+
`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${y}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
2860
2683
|
|
|
2861
2684
|
Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" : `${y}/*`}">.`
|
|
2862
2685
|
);
|
|
2863
2686
|
}
|
|
2864
|
-
let m =
|
|
2687
|
+
let m = Q(), b;
|
|
2865
2688
|
b = m;
|
|
2866
2689
|
let S = b.pathname || "/", p = S;
|
|
2867
2690
|
if (f !== "/") {
|
|
2868
2691
|
let y = f.replace(/^\//, "").split("/");
|
|
2869
2692
|
p = "/" + S.replace(/^\//, "").split("/").slice(y.length).join("/");
|
|
2870
2693
|
}
|
|
2871
|
-
let g =
|
|
2872
|
-
return
|
|
2873
|
-
|
|
2694
|
+
let g = At(e, { pathname: p });
|
|
2695
|
+
return G(
|
|
2696
|
+
u || g != null,
|
|
2874
2697
|
`No routes matched location "${b.pathname}${b.search}${b.hash}" `
|
|
2875
|
-
),
|
|
2698
|
+
), G(
|
|
2876
2699
|
g == null || g[g.length - 1].route.element !== void 0 || g[g.length - 1].route.Component !== void 0 || g[g.length - 1].route.lazy !== void 0,
|
|
2877
2700
|
`Matched leaf route at location "${b.pathname}${b.search}${b.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`
|
|
2878
|
-
),
|
|
2701
|
+
), tn(
|
|
2879
2702
|
g && g.map(
|
|
2880
2703
|
(y) => Object.assign({}, y, {
|
|
2881
2704
|
params: Object.assign({}, c, y.params),
|
|
2882
|
-
pathname:
|
|
2705
|
+
pathname: Y([
|
|
2883
2706
|
f,
|
|
2884
2707
|
// Re-encode pathnames that were decoded inside matchRoutes.
|
|
2885
2708
|
// Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
|
|
@@ -2889,7 +2712,7 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
|
|
|
2889
2712
|
y.pathname.replace(/\?/g, "%3F").replace(/#/g, "%23")
|
|
2890
2713
|
).pathname : y.pathname
|
|
2891
2714
|
]),
|
|
2892
|
-
pathnameBase: y.pathnameBase === "/" ? f :
|
|
2715
|
+
pathnameBase: y.pathnameBase === "/" ? f : Y([
|
|
2893
2716
|
f,
|
|
2894
2717
|
// Re-encode pathnames that were decoded inside matchRoutes
|
|
2895
2718
|
// Pre-encode `?` and `#` ahead of `encodeLocation` because it uses
|
|
@@ -2907,14 +2730,14 @@ Please change the parent <Route path="${y}"> to <Route path="${y === "/" ? "*" :
|
|
|
2907
2730
|
i
|
|
2908
2731
|
);
|
|
2909
2732
|
}
|
|
2910
|
-
function
|
|
2911
|
-
let e =
|
|
2733
|
+
function Qr() {
|
|
2734
|
+
let e = un(), t = kr(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), r = e instanceof Error ? e.stack : null, n = "rgba(200,200,200, 0.5)", i = { padding: "0.5rem", backgroundColor: n }, a = { padding: "2px 4px", backgroundColor: n }, o = null;
|
|
2912
2735
|
return console.error(
|
|
2913
2736
|
"Error handled by React Router default ErrorBoundary:",
|
|
2914
2737
|
e
|
|
2915
|
-
), o = /* @__PURE__ */
|
|
2738
|
+
), o = /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ E.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ E.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ E.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ E.createElement(E.Fragment, null, /* @__PURE__ */ E.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ E.createElement("h3", { style: { fontStyle: "italic" } }, t), r ? /* @__PURE__ */ E.createElement("pre", { style: i }, r) : null, o);
|
|
2916
2739
|
}
|
|
2917
|
-
var
|
|
2740
|
+
var xr = /* @__PURE__ */ E.createElement(Qr, null), Dt = class extends E.Component {
|
|
2918
2741
|
constructor(e) {
|
|
2919
2742
|
super(e), this.state = {
|
|
2920
2743
|
location: e.location,
|
|
@@ -2945,33 +2768,33 @@ var $n = /* @__PURE__ */ h.createElement(xn, null), yr = class extends h.Compone
|
|
|
2945
2768
|
render() {
|
|
2946
2769
|
let e = this.state.error;
|
|
2947
2770
|
if (this.context && typeof e == "object" && e && "digest" in e && typeof e.digest == "string") {
|
|
2948
|
-
const r =
|
|
2771
|
+
const r = zr(e.digest);
|
|
2949
2772
|
r && (e = r);
|
|
2950
2773
|
}
|
|
2951
|
-
let t = e !== void 0 ? /* @__PURE__ */
|
|
2952
|
-
|
|
2774
|
+
let t = e !== void 0 ? /* @__PURE__ */ E.createElement(q.Provider, { value: this.props.routeContext }, /* @__PURE__ */ E.createElement(
|
|
2775
|
+
Pe.Provider,
|
|
2953
2776
|
{
|
|
2954
2777
|
value: e,
|
|
2955
2778
|
children: this.props.component
|
|
2956
2779
|
}
|
|
2957
2780
|
)) : this.props.children;
|
|
2958
|
-
return this.context ? /* @__PURE__ */
|
|
2781
|
+
return this.context ? /* @__PURE__ */ E.createElement($r, { error: e }, t) : t;
|
|
2959
2782
|
}
|
|
2960
2783
|
};
|
|
2961
|
-
|
|
2962
|
-
var
|
|
2963
|
-
function
|
|
2784
|
+
Dt.contextType = Fr;
|
|
2785
|
+
var Ne = /* @__PURE__ */ new WeakMap();
|
|
2786
|
+
function $r({
|
|
2964
2787
|
children: e,
|
|
2965
2788
|
error: t
|
|
2966
2789
|
}) {
|
|
2967
|
-
let { basename: r } =
|
|
2790
|
+
let { basename: r } = E.useContext(F);
|
|
2968
2791
|
if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
|
|
2969
|
-
let n =
|
|
2792
|
+
let n = qr(t.digest);
|
|
2970
2793
|
if (n) {
|
|
2971
|
-
let i =
|
|
2794
|
+
let i = Ne.get(t);
|
|
2972
2795
|
if (i) throw i;
|
|
2973
|
-
let a =
|
|
2974
|
-
if (
|
|
2796
|
+
let a = Pt(n.location, r);
|
|
2797
|
+
if (Ct && !Ne.get(t))
|
|
2975
2798
|
if (a.isExternal || n.reloadDocument)
|
|
2976
2799
|
window.location.href = a.absoluteURL || a.to;
|
|
2977
2800
|
else {
|
|
@@ -2980,9 +2803,9 @@ function ea({
|
|
|
2980
2803
|
replace: n.replace
|
|
2981
2804
|
})
|
|
2982
2805
|
);
|
|
2983
|
-
throw
|
|
2806
|
+
throw Ne.set(t, o), o;
|
|
2984
2807
|
}
|
|
2985
|
-
return /* @__PURE__ */
|
|
2808
|
+
return /* @__PURE__ */ E.createElement(
|
|
2986
2809
|
"meta",
|
|
2987
2810
|
{
|
|
2988
2811
|
httpEquiv: "refresh",
|
|
@@ -2993,11 +2816,11 @@ function ea({
|
|
|
2993
2816
|
}
|
|
2994
2817
|
return e;
|
|
2995
2818
|
}
|
|
2996
|
-
function
|
|
2997
|
-
let n =
|
|
2998
|
-
return n && n.static && n.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */
|
|
2819
|
+
function en({ routeContext: e, match: t, children: r }) {
|
|
2820
|
+
let n = E.useContext($);
|
|
2821
|
+
return n && n.static && n.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (n.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ E.createElement(q.Provider, { value: e }, r);
|
|
2999
2822
|
}
|
|
3000
|
-
function
|
|
2823
|
+
function tn(e, t = [], r = null, n = null, i = null) {
|
|
3001
2824
|
if (e == null) {
|
|
3002
2825
|
if (!r)
|
|
3003
2826
|
return null;
|
|
@@ -3011,9 +2834,9 @@ function ra(e, t = [], r = null, n = null, i = null) {
|
|
|
3011
2834
|
let a = e, o = r?.errors;
|
|
3012
2835
|
if (o != null) {
|
|
3013
2836
|
let f = a.findIndex(
|
|
3014
|
-
(
|
|
2837
|
+
(u) => u.route.id && o?.[u.route.id] !== void 0
|
|
3015
2838
|
);
|
|
3016
|
-
|
|
2839
|
+
w(
|
|
3017
2840
|
f >= 0,
|
|
3018
2841
|
`Could not find a matching route for errors on route IDs: ${Object.keys(
|
|
3019
2842
|
o
|
|
@@ -3023,51 +2846,51 @@ function ra(e, t = [], r = null, n = null, i = null) {
|
|
|
3023
2846
|
Math.min(a.length, f + 1)
|
|
3024
2847
|
);
|
|
3025
2848
|
}
|
|
3026
|
-
let
|
|
2849
|
+
let d = !1, c = -1;
|
|
3027
2850
|
if (r)
|
|
3028
2851
|
for (let f = 0; f < a.length; f++) {
|
|
3029
|
-
let
|
|
3030
|
-
if ((
|
|
3031
|
-
let { loaderData: m, errors: b } = r, S =
|
|
3032
|
-
if (
|
|
3033
|
-
|
|
2852
|
+
let u = a[f];
|
|
2853
|
+
if ((u.route.HydrateFallback || u.route.hydrateFallbackElement) && (c = f), u.route.id) {
|
|
2854
|
+
let { loaderData: m, errors: b } = r, S = u.route.loader && !m.hasOwnProperty(u.route.id) && (!b || b[u.route.id] === void 0);
|
|
2855
|
+
if (u.route.lazy || S) {
|
|
2856
|
+
d = !0, c >= 0 ? a = a.slice(0, c + 1) : a = [a[0]];
|
|
3034
2857
|
break;
|
|
3035
2858
|
}
|
|
3036
2859
|
}
|
|
3037
2860
|
}
|
|
3038
|
-
let
|
|
2861
|
+
let l = r && n ? (f, u) => {
|
|
3039
2862
|
n(f, {
|
|
3040
2863
|
location: r.location,
|
|
3041
2864
|
params: r.matches?.[0]?.params ?? {},
|
|
3042
|
-
unstable_pattern:
|
|
3043
|
-
errorInfo:
|
|
2865
|
+
unstable_pattern: Vr(r.matches),
|
|
2866
|
+
errorInfo: u
|
|
3044
2867
|
});
|
|
3045
2868
|
} : void 0;
|
|
3046
2869
|
return a.reduceRight(
|
|
3047
|
-
(f,
|
|
2870
|
+
(f, u, m) => {
|
|
3048
2871
|
let b, S = !1, p = null, g = null;
|
|
3049
|
-
r && (b = o &&
|
|
2872
|
+
r && (b = o && u.route.id ? o[u.route.id] : void 0, p = u.route.errorElement || xr, d && (c < 0 && m === 0 ? (jt(
|
|
3050
2873
|
"route-fallback",
|
|
3051
2874
|
!1,
|
|
3052
2875
|
"No `HydrateFallback` element provided to render during initial hydration"
|
|
3053
|
-
), S = !0, g = null) : c === m && (S = !0, g =
|
|
2876
|
+
), S = !0, g = null) : c === m && (S = !0, g = u.route.hydrateFallbackElement || null)));
|
|
3054
2877
|
let A = t.concat(a.slice(0, m + 1)), y = () => {
|
|
3055
|
-
let
|
|
3056
|
-
return b ?
|
|
3057
|
-
|
|
2878
|
+
let h;
|
|
2879
|
+
return b ? h = p : S ? h = g : u.route.Component ? h = /* @__PURE__ */ E.createElement(u.route.Component, null) : u.route.element ? h = u.route.element : h = f, /* @__PURE__ */ E.createElement(
|
|
2880
|
+
en,
|
|
3058
2881
|
{
|
|
3059
|
-
match:
|
|
2882
|
+
match: u,
|
|
3060
2883
|
routeContext: {
|
|
3061
2884
|
outlet: f,
|
|
3062
2885
|
matches: A,
|
|
3063
2886
|
isDataRoute: r != null
|
|
3064
2887
|
},
|
|
3065
|
-
children:
|
|
2888
|
+
children: h
|
|
3066
2889
|
}
|
|
3067
2890
|
);
|
|
3068
2891
|
};
|
|
3069
|
-
return r && (
|
|
3070
|
-
|
|
2892
|
+
return r && (u.route.ErrorBoundary || u.route.errorElement || m === 0) ? /* @__PURE__ */ E.createElement(
|
|
2893
|
+
Dt,
|
|
3071
2894
|
{
|
|
3072
2895
|
location: r.location,
|
|
3073
2896
|
revalidation: r.revalidation,
|
|
@@ -3075,170 +2898,170 @@ function ra(e, t = [], r = null, n = null, i = null) {
|
|
|
3075
2898
|
error: b,
|
|
3076
2899
|
children: y(),
|
|
3077
2900
|
routeContext: { outlet: null, matches: A, isDataRoute: !0 },
|
|
3078
|
-
onError:
|
|
2901
|
+
onError: l
|
|
3079
2902
|
}
|
|
3080
2903
|
) : y();
|
|
3081
2904
|
},
|
|
3082
2905
|
null
|
|
3083
2906
|
);
|
|
3084
2907
|
}
|
|
3085
|
-
function
|
|
2908
|
+
function _e(e) {
|
|
3086
2909
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
3087
2910
|
}
|
|
3088
|
-
function
|
|
3089
|
-
let t =
|
|
3090
|
-
return
|
|
2911
|
+
function rn(e) {
|
|
2912
|
+
let t = E.useContext($);
|
|
2913
|
+
return w(t, _e(e)), t;
|
|
3091
2914
|
}
|
|
3092
|
-
function
|
|
3093
|
-
let t =
|
|
3094
|
-
return
|
|
2915
|
+
function nn(e) {
|
|
2916
|
+
let t = E.useContext(me);
|
|
2917
|
+
return w(t, _e(e)), t;
|
|
3095
2918
|
}
|
|
3096
|
-
function
|
|
3097
|
-
let t =
|
|
3098
|
-
return
|
|
2919
|
+
function an(e) {
|
|
2920
|
+
let t = E.useContext(q);
|
|
2921
|
+
return w(t, _e(e)), t;
|
|
3099
2922
|
}
|
|
3100
|
-
function
|
|
3101
|
-
let t =
|
|
3102
|
-
return
|
|
2923
|
+
function Ie(e) {
|
|
2924
|
+
let t = an(e), r = t.matches[t.matches.length - 1];
|
|
2925
|
+
return w(
|
|
3103
2926
|
r.route.id,
|
|
3104
2927
|
`${e} can only be used on routes that contain a unique "id"`
|
|
3105
2928
|
), r.route.id;
|
|
3106
2929
|
}
|
|
3107
|
-
function
|
|
3108
|
-
return
|
|
2930
|
+
function on() {
|
|
2931
|
+
return Ie(
|
|
3109
2932
|
"useRouteId"
|
|
3110
2933
|
/* UseRouteId */
|
|
3111
2934
|
);
|
|
3112
2935
|
}
|
|
3113
|
-
function
|
|
3114
|
-
let e =
|
|
2936
|
+
function un() {
|
|
2937
|
+
let e = E.useContext(Pe), t = nn(
|
|
3115
2938
|
"useRouteError"
|
|
3116
2939
|
/* UseRouteError */
|
|
3117
|
-
), r =
|
|
2940
|
+
), r = Ie(
|
|
3118
2941
|
"useRouteError"
|
|
3119
2942
|
/* UseRouteError */
|
|
3120
2943
|
);
|
|
3121
2944
|
return e !== void 0 ? e : t.errors?.[r];
|
|
3122
2945
|
}
|
|
3123
|
-
function
|
|
3124
|
-
let { router: e } =
|
|
2946
|
+
function ln() {
|
|
2947
|
+
let { router: e } = rn(
|
|
3125
2948
|
"useNavigate"
|
|
3126
2949
|
/* UseNavigateStable */
|
|
3127
|
-
), t =
|
|
2950
|
+
), t = Ie(
|
|
3128
2951
|
"useNavigate"
|
|
3129
2952
|
/* UseNavigateStable */
|
|
3130
|
-
), r =
|
|
3131
|
-
return
|
|
2953
|
+
), r = E.useRef(!1);
|
|
2954
|
+
return Lt(() => {
|
|
3132
2955
|
r.current = !0;
|
|
3133
|
-
}),
|
|
2956
|
+
}), E.useCallback(
|
|
3134
2957
|
async (i, a = {}) => {
|
|
3135
|
-
|
|
2958
|
+
G(r.current, Mt), r.current && (typeof i == "number" ? await e.navigate(i) : await e.navigate(i, { fromRouteId: t, ...a }));
|
|
3136
2959
|
},
|
|
3137
2960
|
[e, t]
|
|
3138
2961
|
);
|
|
3139
2962
|
}
|
|
3140
|
-
var
|
|
3141
|
-
function
|
|
3142
|
-
!t && !
|
|
2963
|
+
var ct = {};
|
|
2964
|
+
function jt(e, t, r) {
|
|
2965
|
+
!t && !ct[e] && (ct[e] = !0, G(!1, r));
|
|
3143
2966
|
}
|
|
3144
|
-
|
|
3145
|
-
function
|
|
2967
|
+
E.memo(sn);
|
|
2968
|
+
function sn({
|
|
3146
2969
|
routes: e,
|
|
3147
2970
|
future: t,
|
|
3148
2971
|
state: r,
|
|
3149
2972
|
onError: n
|
|
3150
2973
|
}) {
|
|
3151
|
-
return
|
|
2974
|
+
return Xr(e, void 0, r, n, t);
|
|
3152
2975
|
}
|
|
3153
|
-
var
|
|
3154
|
-
function
|
|
2976
|
+
var ce = "get", de = "application/x-www-form-urlencoded";
|
|
2977
|
+
function he(e) {
|
|
3155
2978
|
return typeof HTMLElement < "u" && e instanceof HTMLElement;
|
|
3156
2979
|
}
|
|
3157
|
-
function
|
|
3158
|
-
return
|
|
2980
|
+
function cn(e) {
|
|
2981
|
+
return he(e) && e.tagName.toLowerCase() === "button";
|
|
3159
2982
|
}
|
|
3160
|
-
function
|
|
3161
|
-
return
|
|
2983
|
+
function dn(e) {
|
|
2984
|
+
return he(e) && e.tagName.toLowerCase() === "form";
|
|
3162
2985
|
}
|
|
3163
|
-
function
|
|
3164
|
-
return
|
|
2986
|
+
function fn(e) {
|
|
2987
|
+
return he(e) && e.tagName.toLowerCase() === "input";
|
|
3165
2988
|
}
|
|
3166
|
-
function
|
|
2989
|
+
function mn(e) {
|
|
3167
2990
|
return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
|
|
3168
2991
|
}
|
|
3169
|
-
function
|
|
2992
|
+
function gn(e, t) {
|
|
3170
2993
|
return e.button === 0 && // Ignore everything but left clicks
|
|
3171
2994
|
(!t || t === "_self") && // Let browser handle "target=_blank" etc.
|
|
3172
|
-
!
|
|
2995
|
+
!mn(e);
|
|
3173
2996
|
}
|
|
3174
|
-
var
|
|
3175
|
-
function
|
|
3176
|
-
if (
|
|
2997
|
+
var se = null;
|
|
2998
|
+
function hn() {
|
|
2999
|
+
if (se === null)
|
|
3177
3000
|
try {
|
|
3178
3001
|
new FormData(
|
|
3179
3002
|
document.createElement("form"),
|
|
3180
3003
|
// @ts-expect-error if FormData supports the submitter parameter, this will throw
|
|
3181
3004
|
0
|
|
3182
|
-
),
|
|
3005
|
+
), se = !1;
|
|
3183
3006
|
} catch {
|
|
3184
|
-
|
|
3007
|
+
se = !0;
|
|
3185
3008
|
}
|
|
3186
|
-
return
|
|
3009
|
+
return se;
|
|
3187
3010
|
}
|
|
3188
|
-
var
|
|
3011
|
+
var En = /* @__PURE__ */ new Set([
|
|
3189
3012
|
"application/x-www-form-urlencoded",
|
|
3190
3013
|
"multipart/form-data",
|
|
3191
3014
|
"text/plain"
|
|
3192
3015
|
]);
|
|
3193
|
-
function
|
|
3194
|
-
return e != null && !
|
|
3016
|
+
function Te(e) {
|
|
3017
|
+
return e != null && !En.has(e) ? (G(
|
|
3195
3018
|
!1,
|
|
3196
|
-
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${
|
|
3019
|
+
`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${de}"`
|
|
3197
3020
|
), null) : e;
|
|
3198
3021
|
}
|
|
3199
|
-
function
|
|
3022
|
+
function bn(e, t) {
|
|
3200
3023
|
let r, n, i, a, o;
|
|
3201
|
-
if (
|
|
3202
|
-
let
|
|
3203
|
-
n =
|
|
3204
|
-
} else if (
|
|
3205
|
-
let
|
|
3206
|
-
if (
|
|
3024
|
+
if (dn(e)) {
|
|
3025
|
+
let d = e.getAttribute("action");
|
|
3026
|
+
n = d ? K(d, t) : null, r = e.getAttribute("method") || ce, i = Te(e.getAttribute("enctype")) || de, a = new FormData(e);
|
|
3027
|
+
} else if (cn(e) || fn(e) && (e.type === "submit" || e.type === "image")) {
|
|
3028
|
+
let d = e.form;
|
|
3029
|
+
if (d == null)
|
|
3207
3030
|
throw new Error(
|
|
3208
3031
|
'Cannot submit a <button> or <input type="submit"> without a <form>'
|
|
3209
3032
|
);
|
|
3210
|
-
let c = e.getAttribute("formaction") ||
|
|
3211
|
-
if (n = c ?
|
|
3212
|
-
let { name:
|
|
3033
|
+
let c = e.getAttribute("formaction") || d.getAttribute("action");
|
|
3034
|
+
if (n = c ? K(c, t) : null, r = e.getAttribute("formmethod") || d.getAttribute("method") || ce, i = Te(e.getAttribute("formenctype")) || Te(d.getAttribute("enctype")) || de, a = new FormData(d, e), !hn()) {
|
|
3035
|
+
let { name: l, type: f, value: u } = e;
|
|
3213
3036
|
if (f === "image") {
|
|
3214
|
-
let m =
|
|
3037
|
+
let m = l ? `${l}.` : "";
|
|
3215
3038
|
a.append(`${m}x`, "0"), a.append(`${m}y`, "0");
|
|
3216
|
-
} else
|
|
3039
|
+
} else l && a.append(l, u);
|
|
3217
3040
|
}
|
|
3218
3041
|
} else {
|
|
3219
|
-
if (
|
|
3042
|
+
if (he(e))
|
|
3220
3043
|
throw new Error(
|
|
3221
3044
|
'Cannot submit element that is not <form>, <button>, or <input type="submit|image">'
|
|
3222
3045
|
);
|
|
3223
|
-
r =
|
|
3046
|
+
r = ce, n = null, i = de, o = e;
|
|
3224
3047
|
}
|
|
3225
3048
|
return a && i === "text/plain" && (o = a, a = void 0), { action: n, method: r.toLowerCase(), encType: i, formData: a, body: o };
|
|
3226
3049
|
}
|
|
3227
3050
|
Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
|
|
3228
|
-
function
|
|
3051
|
+
function we(e, t) {
|
|
3229
3052
|
if (e === !1 || e === null || typeof e > "u")
|
|
3230
3053
|
throw new Error(t);
|
|
3231
3054
|
}
|
|
3232
|
-
function
|
|
3055
|
+
function Sn(e, t, r, n) {
|
|
3233
3056
|
let i = typeof e == "string" ? new URL(
|
|
3234
3057
|
e,
|
|
3235
3058
|
// This can be called during the SSR flow via PrefetchPageLinksImpl so
|
|
3236
3059
|
// don't assume window is available
|
|
3237
3060
|
typeof window > "u" ? "server://singlefetch/" : window.location.origin
|
|
3238
3061
|
) : e;
|
|
3239
|
-
return r ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${n}` : i.pathname = `${i.pathname}.${n}` : i.pathname === "/" ? i.pathname = `_root.${n}` : t &&
|
|
3062
|
+
return r ? i.pathname.endsWith("/") ? i.pathname = `${i.pathname}_.${n}` : i.pathname = `${i.pathname}.${n}` : i.pathname === "/" ? i.pathname = `_root.${n}` : t && K(i.pathname, t) === "/" ? i.pathname = `${t.replace(/\/$/, "")}/_root.${n}` : i.pathname = `${i.pathname.replace(/\/$/, "")}.${n}`, i;
|
|
3240
3063
|
}
|
|
3241
|
-
async function
|
|
3064
|
+
async function yn(e, t) {
|
|
3242
3065
|
if (e.id in t)
|
|
3243
3066
|
return t[e.id];
|
|
3244
3067
|
try {
|
|
@@ -3255,43 +3078,43 @@ async function Sa(e, t) {
|
|
|
3255
3078
|
});
|
|
3256
3079
|
}
|
|
3257
3080
|
}
|
|
3258
|
-
function
|
|
3081
|
+
function pn(e) {
|
|
3259
3082
|
return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
|
|
3260
3083
|
}
|
|
3261
|
-
async function
|
|
3084
|
+
async function An(e, t, r) {
|
|
3262
3085
|
let n = await Promise.all(
|
|
3263
3086
|
e.map(async (i) => {
|
|
3264
3087
|
let a = t.routes[i.route.id];
|
|
3265
3088
|
if (a) {
|
|
3266
|
-
let o = await
|
|
3089
|
+
let o = await yn(a, r);
|
|
3267
3090
|
return o.links ? o.links() : [];
|
|
3268
3091
|
}
|
|
3269
3092
|
return [];
|
|
3270
3093
|
})
|
|
3271
3094
|
);
|
|
3272
|
-
return
|
|
3273
|
-
n.flat(1).filter(
|
|
3095
|
+
return On(
|
|
3096
|
+
n.flat(1).filter(pn).filter((i) => i.rel === "stylesheet" || i.rel === "preload").map(
|
|
3274
3097
|
(i) => i.rel === "stylesheet" ? { ...i, rel: "prefetch", as: "style" } : { ...i, rel: "prefetch" }
|
|
3275
3098
|
)
|
|
3276
3099
|
);
|
|
3277
3100
|
}
|
|
3278
|
-
function
|
|
3279
|
-
let o = (c,
|
|
3101
|
+
function dt(e, t, r, n, i, a) {
|
|
3102
|
+
let o = (c, l) => r[l] ? c.route.id !== r[l].route.id : !0, d = (c, l) => (
|
|
3280
3103
|
// param change, /users/123 -> /users/456
|
|
3281
|
-
r[
|
|
3104
|
+
r[l].pathname !== c.pathname || // splat param changed, which is not present in match.path
|
|
3282
3105
|
// e.g. /files/images/avatar.jpg -> files/finances.xls
|
|
3283
|
-
r[
|
|
3106
|
+
r[l].route.path?.endsWith("*") && r[l].params["*"] !== c.params["*"]
|
|
3284
3107
|
);
|
|
3285
3108
|
return a === "assets" ? t.filter(
|
|
3286
|
-
(c,
|
|
3287
|
-
) : a === "data" ? t.filter((c,
|
|
3109
|
+
(c, l) => o(c, l) || d(c, l)
|
|
3110
|
+
) : a === "data" ? t.filter((c, l) => {
|
|
3288
3111
|
let f = n.routes[c.route.id];
|
|
3289
3112
|
if (!f || !f.hasLoader)
|
|
3290
3113
|
return !1;
|
|
3291
|
-
if (o(c,
|
|
3114
|
+
if (o(c, l) || d(c, l))
|
|
3292
3115
|
return !0;
|
|
3293
3116
|
if (c.route.shouldRevalidate) {
|
|
3294
|
-
let
|
|
3117
|
+
let u = c.route.shouldRevalidate({
|
|
3295
3118
|
currentUrl: new URL(
|
|
3296
3119
|
i.pathname + i.search + i.hash,
|
|
3297
3120
|
window.origin
|
|
@@ -3301,14 +3124,14 @@ function Xt(e, t, r, n, i, a) {
|
|
|
3301
3124
|
nextParams: c.params,
|
|
3302
3125
|
defaultShouldRevalidate: !0
|
|
3303
3126
|
});
|
|
3304
|
-
if (typeof
|
|
3305
|
-
return
|
|
3127
|
+
if (typeof u == "boolean")
|
|
3128
|
+
return u;
|
|
3306
3129
|
}
|
|
3307
3130
|
return !0;
|
|
3308
3131
|
}) : [];
|
|
3309
3132
|
}
|
|
3310
|
-
function
|
|
3311
|
-
return
|
|
3133
|
+
function Rn(e, t, { includeHydrateFallback: r } = {}) {
|
|
3134
|
+
return Nn(
|
|
3312
3135
|
e.map((n) => {
|
|
3313
3136
|
let i = t.routes[n.route.id];
|
|
3314
3137
|
if (!i) return [];
|
|
@@ -3317,48 +3140,48 @@ function va(e, t, { includeHydrateFallback: r } = {}) {
|
|
|
3317
3140
|
}).flat(1)
|
|
3318
3141
|
);
|
|
3319
3142
|
}
|
|
3320
|
-
function
|
|
3143
|
+
function Nn(e) {
|
|
3321
3144
|
return [...new Set(e)];
|
|
3322
3145
|
}
|
|
3323
|
-
function
|
|
3146
|
+
function Tn(e) {
|
|
3324
3147
|
let t = {}, r = Object.keys(e).sort();
|
|
3325
3148
|
for (let n of r)
|
|
3326
3149
|
t[n] = e[n];
|
|
3327
3150
|
return t;
|
|
3328
3151
|
}
|
|
3329
|
-
function
|
|
3152
|
+
function On(e, t) {
|
|
3330
3153
|
let r = /* @__PURE__ */ new Set();
|
|
3331
3154
|
return new Set(t), e.reduce((n, i) => {
|
|
3332
|
-
let a = JSON.stringify(
|
|
3155
|
+
let a = JSON.stringify(Tn(i));
|
|
3333
3156
|
return r.has(a) || (r.add(a), n.push({ key: a, link: i })), n;
|
|
3334
3157
|
}, []);
|
|
3335
3158
|
}
|
|
3336
|
-
function
|
|
3337
|
-
let e =
|
|
3338
|
-
return
|
|
3159
|
+
function Ut() {
|
|
3160
|
+
let e = E.useContext($);
|
|
3161
|
+
return we(
|
|
3339
3162
|
e,
|
|
3340
3163
|
"You must render this element inside a <DataRouterContext.Provider> element"
|
|
3341
3164
|
), e;
|
|
3342
3165
|
}
|
|
3343
|
-
function
|
|
3344
|
-
let e =
|
|
3345
|
-
return
|
|
3166
|
+
function vn() {
|
|
3167
|
+
let e = E.useContext(me);
|
|
3168
|
+
return we(
|
|
3346
3169
|
e,
|
|
3347
3170
|
"You must render this element inside a <DataRouterStateContext.Provider> element"
|
|
3348
3171
|
), e;
|
|
3349
3172
|
}
|
|
3350
|
-
var
|
|
3351
|
-
|
|
3352
|
-
function
|
|
3353
|
-
let e =
|
|
3354
|
-
return
|
|
3173
|
+
var Me = E.createContext(void 0);
|
|
3174
|
+
Me.displayName = "FrameworkContext";
|
|
3175
|
+
function kt() {
|
|
3176
|
+
let e = E.useContext(Me);
|
|
3177
|
+
return we(
|
|
3355
3178
|
e,
|
|
3356
3179
|
"You must render this element inside a <HydratedRouter> element"
|
|
3357
3180
|
), e;
|
|
3358
3181
|
}
|
|
3359
|
-
function
|
|
3360
|
-
let r =
|
|
3361
|
-
|
|
3182
|
+
function Cn(e, t) {
|
|
3183
|
+
let r = E.useContext(Me), [n, i] = E.useState(!1), [a, o] = E.useState(!1), { onFocus: d, onBlur: c, onMouseEnter: l, onMouseLeave: f, onTouchStart: u } = t, m = E.useRef(null);
|
|
3184
|
+
E.useEffect(() => {
|
|
3362
3185
|
if (e === "render" && o(!0), e === "viewport") {
|
|
3363
3186
|
let p = (A) => {
|
|
3364
3187
|
A.forEach((y) => {
|
|
@@ -3369,7 +3192,7 @@ function _a(e, t) {
|
|
|
3369
3192
|
g.disconnect();
|
|
3370
3193
|
};
|
|
3371
3194
|
}
|
|
3372
|
-
}, [e]),
|
|
3195
|
+
}, [e]), E.useEffect(() => {
|
|
3373
3196
|
if (n) {
|
|
3374
3197
|
let p = setTimeout(() => {
|
|
3375
3198
|
o(!0);
|
|
@@ -3388,31 +3211,31 @@ function _a(e, t) {
|
|
|
3388
3211
|
a,
|
|
3389
3212
|
m,
|
|
3390
3213
|
{
|
|
3391
|
-
onFocus:
|
|
3392
|
-
onBlur:
|
|
3393
|
-
onMouseEnter:
|
|
3394
|
-
onMouseLeave:
|
|
3395
|
-
onTouchStart:
|
|
3214
|
+
onFocus: ue(d, b),
|
|
3215
|
+
onBlur: ue(c, S),
|
|
3216
|
+
onMouseEnter: ue(l, b),
|
|
3217
|
+
onMouseLeave: ue(f, S),
|
|
3218
|
+
onTouchStart: ue(u, b)
|
|
3396
3219
|
}
|
|
3397
3220
|
] : [!1, m, {}];
|
|
3398
3221
|
}
|
|
3399
|
-
function
|
|
3222
|
+
function ue(e, t) {
|
|
3400
3223
|
return (r) => {
|
|
3401
3224
|
e && e(r), r.defaultPrevented || t(r);
|
|
3402
3225
|
};
|
|
3403
3226
|
}
|
|
3404
|
-
function
|
|
3405
|
-
let { router: r } =
|
|
3406
|
-
() =>
|
|
3227
|
+
function Pn({ page: e, ...t }) {
|
|
3228
|
+
let { router: r } = Ut(), n = E.useMemo(
|
|
3229
|
+
() => At(r.routes, e, r.basename),
|
|
3407
3230
|
[r.routes, e, r.basename]
|
|
3408
3231
|
);
|
|
3409
|
-
return n ? /* @__PURE__ */
|
|
3232
|
+
return n ? /* @__PURE__ */ E.createElement(In, { page: e, matches: n, ...t }) : null;
|
|
3410
3233
|
}
|
|
3411
|
-
function
|
|
3412
|
-
let { manifest: t, routeModules: r } =
|
|
3413
|
-
return
|
|
3234
|
+
function _n(e) {
|
|
3235
|
+
let { manifest: t, routeModules: r } = kt(), [n, i] = E.useState([]);
|
|
3236
|
+
return E.useEffect(() => {
|
|
3414
3237
|
let a = !1;
|
|
3415
|
-
return
|
|
3238
|
+
return An(e, t, r).then(
|
|
3416
3239
|
(o) => {
|
|
3417
3240
|
a || i(o);
|
|
3418
3241
|
}
|
|
@@ -3421,43 +3244,43 @@ function Pa(e) {
|
|
|
3421
3244
|
};
|
|
3422
3245
|
}, [e, t, r]), n;
|
|
3423
3246
|
}
|
|
3424
|
-
function
|
|
3247
|
+
function In({
|
|
3425
3248
|
page: e,
|
|
3426
3249
|
matches: t,
|
|
3427
3250
|
...r
|
|
3428
3251
|
}) {
|
|
3429
|
-
let n =
|
|
3430
|
-
() =>
|
|
3252
|
+
let n = Q(), { future: i, manifest: a, routeModules: o } = kt(), { basename: d } = Ut(), { loaderData: c, matches: l } = vn(), f = E.useMemo(
|
|
3253
|
+
() => dt(
|
|
3431
3254
|
e,
|
|
3432
3255
|
t,
|
|
3433
|
-
|
|
3256
|
+
l,
|
|
3434
3257
|
a,
|
|
3435
3258
|
n,
|
|
3436
3259
|
"data"
|
|
3437
3260
|
),
|
|
3438
|
-
[e, t,
|
|
3439
|
-
),
|
|
3440
|
-
() =>
|
|
3261
|
+
[e, t, l, a, n]
|
|
3262
|
+
), u = E.useMemo(
|
|
3263
|
+
() => dt(
|
|
3441
3264
|
e,
|
|
3442
3265
|
t,
|
|
3443
|
-
|
|
3266
|
+
l,
|
|
3444
3267
|
a,
|
|
3445
3268
|
n,
|
|
3446
3269
|
"assets"
|
|
3447
3270
|
),
|
|
3448
|
-
[e, t,
|
|
3449
|
-
), m =
|
|
3271
|
+
[e, t, l, a, n]
|
|
3272
|
+
), m = E.useMemo(() => {
|
|
3450
3273
|
if (e === n.pathname + n.search + n.hash)
|
|
3451
3274
|
return [];
|
|
3452
3275
|
let p = /* @__PURE__ */ new Set(), g = !1;
|
|
3453
3276
|
if (t.forEach((y) => {
|
|
3454
|
-
let
|
|
3455
|
-
!
|
|
3277
|
+
let h = a.routes[y.route.id];
|
|
3278
|
+
!h || !h.hasLoader || (!f.some((R) => R.route.id === y.route.id) && y.route.id in c && o[y.route.id]?.shouldRevalidate || h.hasClientLoader ? g = !0 : p.add(y.route.id));
|
|
3456
3279
|
}), p.size === 0)
|
|
3457
3280
|
return [];
|
|
3458
|
-
let A =
|
|
3281
|
+
let A = Sn(
|
|
3459
3282
|
e,
|
|
3460
|
-
|
|
3283
|
+
d,
|
|
3461
3284
|
i.unstable_trailingSlashAwareDataRequests,
|
|
3462
3285
|
"data"
|
|
3463
3286
|
);
|
|
@@ -3466,7 +3289,7 @@ function Ia({
|
|
|
3466
3289
|
t.filter((y) => p.has(y.route.id)).map((y) => y.route.id).join(",")
|
|
3467
3290
|
), [A.pathname + A.search];
|
|
3468
3291
|
}, [
|
|
3469
|
-
|
|
3292
|
+
d,
|
|
3470
3293
|
i.unstable_trailingSlashAwareDataRequests,
|
|
3471
3294
|
c,
|
|
3472
3295
|
n,
|
|
@@ -3475,30 +3298,30 @@ function Ia({
|
|
|
3475
3298
|
t,
|
|
3476
3299
|
e,
|
|
3477
3300
|
o
|
|
3478
|
-
]), b =
|
|
3479
|
-
() =>
|
|
3480
|
-
[
|
|
3481
|
-
), S =
|
|
3482
|
-
return /* @__PURE__ */
|
|
3301
|
+
]), b = E.useMemo(
|
|
3302
|
+
() => Rn(u, a),
|
|
3303
|
+
[u, a]
|
|
3304
|
+
), S = _n(u);
|
|
3305
|
+
return /* @__PURE__ */ E.createElement(E.Fragment, null, m.map((p) => /* @__PURE__ */ E.createElement("link", { key: p, rel: "prefetch", as: "fetch", href: p, ...r })), b.map((p) => /* @__PURE__ */ E.createElement("link", { key: p, rel: "modulepreload", href: p, ...r })), S.map(({ key: p, link: g }) => (
|
|
3483
3306
|
// these don't spread `linkProps` because they are full link descriptors
|
|
3484
3307
|
// already with their own props
|
|
3485
|
-
/* @__PURE__ */
|
|
3308
|
+
/* @__PURE__ */ E.createElement("link", { key: p, nonce: r.nonce, ...g })
|
|
3486
3309
|
)));
|
|
3487
3310
|
}
|
|
3488
|
-
function
|
|
3311
|
+
function wn(...e) {
|
|
3489
3312
|
return (t) => {
|
|
3490
3313
|
e.forEach((r) => {
|
|
3491
3314
|
typeof r == "function" ? r(t) : r != null && (r.current = t);
|
|
3492
3315
|
});
|
|
3493
3316
|
};
|
|
3494
3317
|
}
|
|
3495
|
-
var
|
|
3318
|
+
var Mn = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u";
|
|
3496
3319
|
try {
|
|
3497
|
-
|
|
3320
|
+
Mn && (window.__reactRouterVersion = // @ts-expect-error
|
|
3498
3321
|
"7.12.0");
|
|
3499
3322
|
} catch {
|
|
3500
3323
|
}
|
|
3501
|
-
var
|
|
3324
|
+
var Vt = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, Le = E.forwardRef(
|
|
3502
3325
|
function({
|
|
3503
3326
|
onClick: t,
|
|
3504
3327
|
discover: r = "render",
|
|
@@ -3506,52 +3329,52 @@ var vr = /^(?:[a-z][a-z0-9+.-]*:|\/\/)/i, xe = h.forwardRef(
|
|
|
3506
3329
|
relative: i,
|
|
3507
3330
|
reloadDocument: a,
|
|
3508
3331
|
replace: o,
|
|
3509
|
-
state:
|
|
3332
|
+
state: d,
|
|
3510
3333
|
target: c,
|
|
3511
|
-
to:
|
|
3334
|
+
to: l,
|
|
3512
3335
|
preventScrollReset: f,
|
|
3513
|
-
viewTransition:
|
|
3336
|
+
viewTransition: u,
|
|
3514
3337
|
unstable_defaultShouldRevalidate: m,
|
|
3515
3338
|
...b
|
|
3516
3339
|
}, S) {
|
|
3517
|
-
let { basename: p, unstable_useTransitions: g } =
|
|
3518
|
-
|
|
3519
|
-
let
|
|
3340
|
+
let { basename: p, unstable_useTransitions: g } = E.useContext(F), A = typeof l == "string" && Vt.test(l), y = Pt(l, p);
|
|
3341
|
+
l = y.to;
|
|
3342
|
+
let h = Kr(l, { relative: i }), [R, N, P] = Cn(
|
|
3520
3343
|
n,
|
|
3521
3344
|
b
|
|
3522
|
-
),
|
|
3345
|
+
), s = Un(l, {
|
|
3523
3346
|
replace: o,
|
|
3524
|
-
state:
|
|
3347
|
+
state: d,
|
|
3525
3348
|
target: c,
|
|
3526
3349
|
preventScrollReset: f,
|
|
3527
3350
|
relative: i,
|
|
3528
|
-
viewTransition:
|
|
3351
|
+
viewTransition: u,
|
|
3529
3352
|
unstable_defaultShouldRevalidate: m,
|
|
3530
3353
|
unstable_useTransitions: g
|
|
3531
3354
|
});
|
|
3532
|
-
function
|
|
3533
|
-
t && t(
|
|
3355
|
+
function k(ee) {
|
|
3356
|
+
t && t(ee), ee.defaultPrevented || s(ee);
|
|
3534
3357
|
}
|
|
3535
|
-
let
|
|
3358
|
+
let L = (
|
|
3536
3359
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
|
3537
|
-
/* @__PURE__ */
|
|
3360
|
+
/* @__PURE__ */ E.createElement(
|
|
3538
3361
|
"a",
|
|
3539
3362
|
{
|
|
3540
3363
|
...b,
|
|
3541
|
-
...
|
|
3542
|
-
href: y.absoluteURL ||
|
|
3543
|
-
onClick: y.isExternal || a ? t :
|
|
3544
|
-
ref:
|
|
3364
|
+
...P,
|
|
3365
|
+
href: y.absoluteURL || h,
|
|
3366
|
+
onClick: y.isExternal || a ? t : k,
|
|
3367
|
+
ref: wn(S, N),
|
|
3545
3368
|
target: c,
|
|
3546
3369
|
"data-discover": !A && r === "render" ? "true" : void 0
|
|
3547
3370
|
}
|
|
3548
3371
|
)
|
|
3549
3372
|
);
|
|
3550
|
-
return
|
|
3373
|
+
return R && !A ? /* @__PURE__ */ E.createElement(E.Fragment, null, L, /* @__PURE__ */ E.createElement(Pn, { page: h })) : L;
|
|
3551
3374
|
}
|
|
3552
3375
|
);
|
|
3553
|
-
|
|
3554
|
-
var
|
|
3376
|
+
Le.displayName = "Link";
|
|
3377
|
+
var Ln = E.forwardRef(
|
|
3555
3378
|
function({
|
|
3556
3379
|
"aria-current": t = "page",
|
|
3557
3380
|
caseSensitive: r = !1,
|
|
@@ -3559,44 +3382,44 @@ var La = h.forwardRef(
|
|
|
3559
3382
|
end: i = !1,
|
|
3560
3383
|
style: a,
|
|
3561
3384
|
to: o,
|
|
3562
|
-
viewTransition:
|
|
3385
|
+
viewTransition: d,
|
|
3563
3386
|
children: c,
|
|
3564
|
-
...
|
|
3387
|
+
...l
|
|
3565
3388
|
}, f) {
|
|
3566
|
-
let
|
|
3389
|
+
let u = le(o, { relative: l.relative }), m = Q(), b = E.useContext(me), { navigator: S, basename: p } = E.useContext(F), g = b != null && // Conditional usage is OK here because the usage of a data router is static
|
|
3567
3390
|
// eslint-disable-next-line react-hooks/rules-of-hooks
|
|
3568
|
-
|
|
3569
|
-
r || (y = y.toLowerCase(),
|
|
3570
|
-
const
|
|
3571
|
-
let N = y === A || !i && y.startsWith(A) && y.charAt(
|
|
3391
|
+
Bn(u) && d === !0, A = S.encodeLocation ? S.encodeLocation(u).pathname : u.pathname, y = m.pathname, h = b && b.navigation && b.navigation.location ? b.navigation.location.pathname : null;
|
|
3392
|
+
r || (y = y.toLowerCase(), h = h ? h.toLowerCase() : null, A = A.toLowerCase()), h && p && (h = K(h, p) || h);
|
|
3393
|
+
const R = A !== "/" && A.endsWith("/") ? A.length - 1 : A.length;
|
|
3394
|
+
let N = y === A || !i && y.startsWith(A) && y.charAt(R) === "/", P = h != null && (h === A || !i && h.startsWith(A) && h.charAt(A.length) === "/"), s = {
|
|
3572
3395
|
isActive: N,
|
|
3573
|
-
isPending:
|
|
3396
|
+
isPending: P,
|
|
3574
3397
|
isTransitioning: g
|
|
3575
|
-
},
|
|
3576
|
-
typeof n == "function" ?
|
|
3398
|
+
}, k = N ? t : void 0, L;
|
|
3399
|
+
typeof n == "function" ? L = n(s) : L = [
|
|
3577
3400
|
n,
|
|
3578
3401
|
N ? "active" : null,
|
|
3579
|
-
|
|
3402
|
+
P ? "pending" : null,
|
|
3580
3403
|
g ? "transitioning" : null
|
|
3581
3404
|
].filter(Boolean).join(" ");
|
|
3582
|
-
let
|
|
3583
|
-
return /* @__PURE__ */
|
|
3584
|
-
|
|
3405
|
+
let ee = typeof a == "function" ? a(s) : a;
|
|
3406
|
+
return /* @__PURE__ */ E.createElement(
|
|
3407
|
+
Le,
|
|
3585
3408
|
{
|
|
3586
|
-
...
|
|
3587
|
-
"aria-current":
|
|
3588
|
-
className:
|
|
3409
|
+
...l,
|
|
3410
|
+
"aria-current": k,
|
|
3411
|
+
className: L,
|
|
3589
3412
|
ref: f,
|
|
3590
|
-
style:
|
|
3413
|
+
style: ee,
|
|
3591
3414
|
to: o,
|
|
3592
|
-
viewTransition:
|
|
3415
|
+
viewTransition: d
|
|
3593
3416
|
},
|
|
3594
|
-
typeof c == "function" ? c(
|
|
3417
|
+
typeof c == "function" ? c(s) : c
|
|
3595
3418
|
);
|
|
3596
3419
|
}
|
|
3597
3420
|
);
|
|
3598
|
-
|
|
3599
|
-
var
|
|
3421
|
+
Ln.displayName = "NavLink";
|
|
3422
|
+
var Dn = E.forwardRef(
|
|
3600
3423
|
({
|
|
3601
3424
|
discover: e = "render",
|
|
3602
3425
|
fetcherKey: t,
|
|
@@ -3604,82 +3427,82 @@ var Da = h.forwardRef(
|
|
|
3604
3427
|
reloadDocument: n,
|
|
3605
3428
|
replace: i,
|
|
3606
3429
|
state: a,
|
|
3607
|
-
method: o =
|
|
3608
|
-
action:
|
|
3430
|
+
method: o = ce,
|
|
3431
|
+
action: d,
|
|
3609
3432
|
onSubmit: c,
|
|
3610
|
-
relative:
|
|
3433
|
+
relative: l,
|
|
3611
3434
|
preventScrollReset: f,
|
|
3612
|
-
viewTransition:
|
|
3435
|
+
viewTransition: u,
|
|
3613
3436
|
unstable_defaultShouldRevalidate: m,
|
|
3614
3437
|
...b
|
|
3615
3438
|
}, S) => {
|
|
3616
|
-
let { unstable_useTransitions: p } =
|
|
3439
|
+
let { unstable_useTransitions: p } = E.useContext(F), g = Wn(), A = Fn(d, { relative: l }), y = o.toLowerCase() === "get" ? "get" : "post", h = typeof d == "string" && Vt.test(d), R = (N) => {
|
|
3617
3440
|
if (c && c(N), N.defaultPrevented) return;
|
|
3618
3441
|
N.preventDefault();
|
|
3619
|
-
let
|
|
3442
|
+
let P = N.nativeEvent.submitter, s = P?.getAttribute("formmethod") || o, k = () => g(P || N.currentTarget, {
|
|
3620
3443
|
fetcherKey: t,
|
|
3621
|
-
method:
|
|
3444
|
+
method: s,
|
|
3622
3445
|
navigate: r,
|
|
3623
3446
|
replace: i,
|
|
3624
3447
|
state: a,
|
|
3625
|
-
relative:
|
|
3448
|
+
relative: l,
|
|
3626
3449
|
preventScrollReset: f,
|
|
3627
|
-
viewTransition:
|
|
3450
|
+
viewTransition: u,
|
|
3628
3451
|
unstable_defaultShouldRevalidate: m
|
|
3629
3452
|
});
|
|
3630
|
-
p && r !== !1 ?
|
|
3453
|
+
p && r !== !1 ? E.startTransition(() => k()) : k();
|
|
3631
3454
|
};
|
|
3632
|
-
return /* @__PURE__ */
|
|
3455
|
+
return /* @__PURE__ */ E.createElement(
|
|
3633
3456
|
"form",
|
|
3634
3457
|
{
|
|
3635
3458
|
ref: S,
|
|
3636
3459
|
method: y,
|
|
3637
3460
|
action: A,
|
|
3638
|
-
onSubmit: n ? c :
|
|
3461
|
+
onSubmit: n ? c : R,
|
|
3639
3462
|
...b,
|
|
3640
|
-
"data-discover": !
|
|
3463
|
+
"data-discover": !h && e === "render" ? "true" : void 0
|
|
3641
3464
|
}
|
|
3642
3465
|
);
|
|
3643
3466
|
}
|
|
3644
3467
|
);
|
|
3645
|
-
|
|
3646
|
-
function
|
|
3468
|
+
Dn.displayName = "Form";
|
|
3469
|
+
function jn(e) {
|
|
3647
3470
|
return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
|
|
3648
3471
|
}
|
|
3649
|
-
function
|
|
3650
|
-
let t =
|
|
3651
|
-
return
|
|
3472
|
+
function Wt(e) {
|
|
3473
|
+
let t = E.useContext($);
|
|
3474
|
+
return w(t, jn(e)), t;
|
|
3652
3475
|
}
|
|
3653
|
-
function
|
|
3476
|
+
function Un(e, {
|
|
3654
3477
|
target: t,
|
|
3655
3478
|
replace: r,
|
|
3656
3479
|
state: n,
|
|
3657
3480
|
preventScrollReset: i,
|
|
3658
3481
|
relative: a,
|
|
3659
3482
|
viewTransition: o,
|
|
3660
|
-
unstable_defaultShouldRevalidate:
|
|
3483
|
+
unstable_defaultShouldRevalidate: d,
|
|
3661
3484
|
unstable_useTransitions: c
|
|
3662
3485
|
} = {}) {
|
|
3663
|
-
let
|
|
3664
|
-
return
|
|
3486
|
+
let l = Zr(), f = Q(), u = le(e, { relative: a });
|
|
3487
|
+
return E.useCallback(
|
|
3665
3488
|
(m) => {
|
|
3666
|
-
if (
|
|
3489
|
+
if (gn(m, t)) {
|
|
3667
3490
|
m.preventDefault();
|
|
3668
|
-
let b = r !== void 0 ? r :
|
|
3491
|
+
let b = r !== void 0 ? r : Oe(f) === Oe(u), S = () => l(e, {
|
|
3669
3492
|
replace: b,
|
|
3670
3493
|
state: n,
|
|
3671
3494
|
preventScrollReset: i,
|
|
3672
3495
|
relative: a,
|
|
3673
3496
|
viewTransition: o,
|
|
3674
|
-
unstable_defaultShouldRevalidate:
|
|
3497
|
+
unstable_defaultShouldRevalidate: d
|
|
3675
3498
|
});
|
|
3676
|
-
c ?
|
|
3499
|
+
c ? E.startTransition(() => S()) : S();
|
|
3677
3500
|
}
|
|
3678
3501
|
},
|
|
3679
3502
|
[
|
|
3680
3503
|
f,
|
|
3681
|
-
s,
|
|
3682
3504
|
l,
|
|
3505
|
+
u,
|
|
3683
3506
|
r,
|
|
3684
3507
|
n,
|
|
3685
3508
|
t,
|
|
@@ -3687,42 +3510,42 @@ function Ua(e, {
|
|
|
3687
3510
|
i,
|
|
3688
3511
|
a,
|
|
3689
3512
|
o,
|
|
3690
|
-
|
|
3513
|
+
d,
|
|
3691
3514
|
c
|
|
3692
3515
|
]
|
|
3693
3516
|
);
|
|
3694
3517
|
}
|
|
3695
|
-
var
|
|
3696
|
-
function
|
|
3697
|
-
let { router: e } =
|
|
3518
|
+
var kn = 0, Vn = () => `__${String(++kn)}__`;
|
|
3519
|
+
function Wn() {
|
|
3520
|
+
let { router: e } = Wt(
|
|
3698
3521
|
"useSubmit"
|
|
3699
3522
|
/* UseSubmit */
|
|
3700
|
-
), { basename: t } =
|
|
3701
|
-
return
|
|
3523
|
+
), { basename: t } = E.useContext(F), r = on(), n = e.fetch, i = e.navigate;
|
|
3524
|
+
return E.useCallback(
|
|
3702
3525
|
async (a, o = {}) => {
|
|
3703
|
-
let { action:
|
|
3526
|
+
let { action: d, method: c, encType: l, formData: f, body: u } = bn(
|
|
3704
3527
|
a,
|
|
3705
3528
|
t
|
|
3706
3529
|
);
|
|
3707
3530
|
if (o.navigate === !1) {
|
|
3708
|
-
let m = o.fetcherKey ||
|
|
3709
|
-
await n(m, r, o.action ||
|
|
3531
|
+
let m = o.fetcherKey || Vn();
|
|
3532
|
+
await n(m, r, o.action || d, {
|
|
3710
3533
|
unstable_defaultShouldRevalidate: o.unstable_defaultShouldRevalidate,
|
|
3711
3534
|
preventScrollReset: o.preventScrollReset,
|
|
3712
3535
|
formData: f,
|
|
3713
|
-
body:
|
|
3536
|
+
body: u,
|
|
3714
3537
|
formMethod: o.method || c,
|
|
3715
|
-
formEncType: o.encType ||
|
|
3538
|
+
formEncType: o.encType || l,
|
|
3716
3539
|
flushSync: o.flushSync
|
|
3717
3540
|
});
|
|
3718
3541
|
} else
|
|
3719
|
-
await i(o.action ||
|
|
3542
|
+
await i(o.action || d, {
|
|
3720
3543
|
unstable_defaultShouldRevalidate: o.unstable_defaultShouldRevalidate,
|
|
3721
3544
|
preventScrollReset: o.preventScrollReset,
|
|
3722
3545
|
formData: f,
|
|
3723
|
-
body:
|
|
3546
|
+
body: u,
|
|
3724
3547
|
formMethod: o.method || c,
|
|
3725
|
-
formEncType: o.encType ||
|
|
3548
|
+
formEncType: o.encType || l,
|
|
3726
3549
|
replace: o.replace,
|
|
3727
3550
|
state: o.state,
|
|
3728
3551
|
fromRouteId: r,
|
|
@@ -3733,79 +3556,79 @@ function Wa() {
|
|
|
3733
3556
|
[n, i, t, r]
|
|
3734
3557
|
);
|
|
3735
3558
|
}
|
|
3736
|
-
function
|
|
3737
|
-
let { basename: r } =
|
|
3738
|
-
|
|
3739
|
-
let [i] = n.matches.slice(-1), a = { ...
|
|
3559
|
+
function Fn(e, { relative: t } = {}) {
|
|
3560
|
+
let { basename: r } = E.useContext(F), n = E.useContext(q);
|
|
3561
|
+
w(n, "useFormAction must be used inside a RouteContext");
|
|
3562
|
+
let [i] = n.matches.slice(-1), a = { ...le(e || ".", { relative: t }) }, o = Q();
|
|
3740
3563
|
if (e == null) {
|
|
3741
3564
|
a.search = o.search;
|
|
3742
|
-
let
|
|
3565
|
+
let d = new URLSearchParams(a.search), c = d.getAll("index");
|
|
3743
3566
|
if (c.some((f) => f === "")) {
|
|
3744
|
-
|
|
3745
|
-
let f =
|
|
3567
|
+
d.delete("index"), c.filter((u) => u).forEach((u) => d.append("index", u));
|
|
3568
|
+
let f = d.toString();
|
|
3746
3569
|
a.search = f ? `?${f}` : "";
|
|
3747
3570
|
}
|
|
3748
3571
|
}
|
|
3749
|
-
return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r :
|
|
3572
|
+
return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (a.pathname = a.pathname === "/" ? r : Y([r, a.pathname])), Oe(a);
|
|
3750
3573
|
}
|
|
3751
|
-
function
|
|
3752
|
-
let r =
|
|
3753
|
-
|
|
3574
|
+
function Bn(e, { relative: t } = {}) {
|
|
3575
|
+
let r = E.useContext(It);
|
|
3576
|
+
w(
|
|
3754
3577
|
r != null,
|
|
3755
3578
|
"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?"
|
|
3756
3579
|
);
|
|
3757
|
-
let { basename: n } =
|
|
3580
|
+
let { basename: n } = Wt(
|
|
3758
3581
|
"useViewTransitionState"
|
|
3759
3582
|
/* useViewTransitionState */
|
|
3760
|
-
), i =
|
|
3583
|
+
), i = le(e, { relative: t });
|
|
3761
3584
|
if (!r.isTransitioning)
|
|
3762
3585
|
return !1;
|
|
3763
|
-
let a =
|
|
3764
|
-
return
|
|
3586
|
+
let a = K(r.currentLocation.pathname, n) || r.currentLocation.pathname, o = K(r.nextLocation.pathname, n) || r.nextLocation.pathname;
|
|
3587
|
+
return fe(i.pathname, o) != null || fe(i.pathname, a) != null;
|
|
3765
3588
|
}
|
|
3766
|
-
function
|
|
3589
|
+
function Ft(e) {
|
|
3767
3590
|
var t, r, n = "";
|
|
3768
3591
|
if (typeof e == "string" || typeof e == "number") n += e;
|
|
3769
3592
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
3770
3593
|
var i = e.length;
|
|
3771
|
-
for (t = 0; t < i; t++) e[t] && (r =
|
|
3594
|
+
for (t = 0; t < i; t++) e[t] && (r = Ft(e[t])) && (n && (n += " "), n += r);
|
|
3772
3595
|
} else for (r in e) e[r] && (n && (n += " "), n += r);
|
|
3773
3596
|
return n;
|
|
3774
3597
|
}
|
|
3775
|
-
function
|
|
3776
|
-
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t =
|
|
3598
|
+
function Gn() {
|
|
3599
|
+
for (var e, t, r = 0, n = "", i = arguments.length; r < i; r++) (e = arguments[r]) && (t = Ft(e)) && (n && (n += " "), n += t);
|
|
3777
3600
|
return n;
|
|
3778
3601
|
}
|
|
3779
|
-
const
|
|
3602
|
+
const ft = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, mt = Gn, De = (e, t) => (r) => {
|
|
3780
3603
|
var n;
|
|
3781
|
-
if (t?.variants == null) return
|
|
3782
|
-
const { variants: i, defaultVariants: a } = t, o = Object.keys(i).map((
|
|
3783
|
-
const f = r?.[
|
|
3604
|
+
if (t?.variants == null) return mt(e, r?.class, r?.className);
|
|
3605
|
+
const { variants: i, defaultVariants: a } = t, o = Object.keys(i).map((l) => {
|
|
3606
|
+
const f = r?.[l], u = a?.[l];
|
|
3784
3607
|
if (f === null) return null;
|
|
3785
|
-
const m =
|
|
3786
|
-
return i[
|
|
3787
|
-
}),
|
|
3788
|
-
let [
|
|
3789
|
-
return m === void 0 || (
|
|
3790
|
-
}, {}), c = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((
|
|
3791
|
-
let { class:
|
|
3608
|
+
const m = ft(f) || ft(u);
|
|
3609
|
+
return i[l][m];
|
|
3610
|
+
}), d = r && Object.entries(r).reduce((l, f) => {
|
|
3611
|
+
let [u, m] = f;
|
|
3612
|
+
return m === void 0 || (l[u] = m), l;
|
|
3613
|
+
}, {}), c = t == null || (n = t.compoundVariants) === null || n === void 0 ? void 0 : n.reduce((l, f) => {
|
|
3614
|
+
let { class: u, className: m, ...b } = f;
|
|
3792
3615
|
return Object.entries(b).every((S) => {
|
|
3793
3616
|
let [p, g] = S;
|
|
3794
3617
|
return Array.isArray(g) ? g.includes({
|
|
3795
3618
|
...a,
|
|
3796
|
-
...
|
|
3619
|
+
...d
|
|
3797
3620
|
}[p]) : {
|
|
3798
3621
|
...a,
|
|
3799
|
-
...
|
|
3622
|
+
...d
|
|
3800
3623
|
}[p] === g;
|
|
3801
3624
|
}) ? [
|
|
3802
|
-
...
|
|
3803
|
-
|
|
3625
|
+
...l,
|
|
3626
|
+
u,
|
|
3804
3627
|
m
|
|
3805
|
-
] :
|
|
3628
|
+
] : l;
|
|
3806
3629
|
}, []);
|
|
3807
|
-
return
|
|
3808
|
-
},
|
|
3630
|
+
return mt(e, o, c, r?.class, r?.className);
|
|
3631
|
+
}, Hn = De("border-b transition-all duration-200", {
|
|
3809
3632
|
variants: {
|
|
3810
3633
|
variant: {
|
|
3811
3634
|
default: "bg-gradient-to-r from-green-100 to-blue-100 dark:from-green-900/20 dark:to-blue-900/20 border-green-200 dark:border-green-700",
|
|
@@ -3823,7 +3646,7 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
|
|
|
3823
3646
|
variant: "default",
|
|
3824
3647
|
size: "default"
|
|
3825
3648
|
}
|
|
3826
|
-
}),
|
|
3649
|
+
}), Yn = De("font-semibold", {
|
|
3827
3650
|
variants: {
|
|
3828
3651
|
variant: {
|
|
3829
3652
|
default: "text-green-800 dark:text-green-200",
|
|
@@ -3835,7 +3658,7 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
|
|
|
3835
3658
|
defaultVariants: {
|
|
3836
3659
|
variant: "default"
|
|
3837
3660
|
}
|
|
3838
|
-
}),
|
|
3661
|
+
}), qn = De(
|
|
3839
3662
|
"inline-flex items-center justify-center px-6 py-2 rounded-lg font-medium transition-all duration-200 hover:transform hover:scale-105 focus:outline-none focus:ring-2 focus:ring-offset-2",
|
|
3840
3663
|
{
|
|
3841
3664
|
variants: {
|
|
@@ -3850,7 +3673,7 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
|
|
|
3850
3673
|
variant: "default"
|
|
3851
3674
|
}
|
|
3852
3675
|
}
|
|
3853
|
-
),
|
|
3676
|
+
), ia = ({
|
|
3854
3677
|
className: e,
|
|
3855
3678
|
variant: t = "default",
|
|
3856
3679
|
size: r = "default",
|
|
@@ -3858,28 +3681,28 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
|
|
|
3858
3681
|
ctaText: i = "Get Free Email",
|
|
3859
3682
|
ctaLink: a = "/connect",
|
|
3860
3683
|
showBadge: o = !0,
|
|
3861
|
-
badgeText:
|
|
3684
|
+
badgeText: d = "FREE",
|
|
3862
3685
|
onDismiss: c,
|
|
3863
|
-
isDismissible:
|
|
3686
|
+
isDismissible: l = !1,
|
|
3864
3687
|
dismissAriaLabel: f = "Dismiss banner",
|
|
3865
|
-
onTrack:
|
|
3866
|
-
}) => /* @__PURE__ */
|
|
3867
|
-
|
|
3688
|
+
onTrack: u
|
|
3689
|
+
}) => /* @__PURE__ */ v("div", { className: M(Hn({ variant: t, size: r }), e), children: /* @__PURE__ */ v("div", { className: "max-w-7xl mx-auto px-4 sm:px-6 lg:px-8", children: /* @__PURE__ */ W("div", { className: "flex flex-col sm:flex-row items-center justify-center gap-4 text-center relative", children: [
|
|
3690
|
+
l && c && /* @__PURE__ */ v(
|
|
3868
3691
|
"button",
|
|
3869
3692
|
{
|
|
3870
3693
|
onClick: () => {
|
|
3871
|
-
|
|
3694
|
+
u?.("dismiss"), c();
|
|
3872
3695
|
},
|
|
3873
3696
|
className: "absolute right-0 top-1/2 -translate-y-1/2 p-1 rounded-full hover:bg-black/10 dark:hover:bg-white/10 transition-colors",
|
|
3874
3697
|
"aria-label": f,
|
|
3875
|
-
children: /* @__PURE__ */
|
|
3698
|
+
children: /* @__PURE__ */ v(
|
|
3876
3699
|
"svg",
|
|
3877
3700
|
{
|
|
3878
3701
|
className: "w-4 h-4 text-current opacity-60",
|
|
3879
3702
|
fill: "none",
|
|
3880
3703
|
stroke: "currentColor",
|
|
3881
3704
|
viewBox: "0 0 24 24",
|
|
3882
|
-
children: /* @__PURE__ */
|
|
3705
|
+
children: /* @__PURE__ */ v(
|
|
3883
3706
|
"path",
|
|
3884
3707
|
{
|
|
3885
3708
|
strokeLinecap: "round",
|
|
@@ -3892,29 +3715,29 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
|
|
|
3892
3715
|
)
|
|
3893
3716
|
}
|
|
3894
3717
|
),
|
|
3895
|
-
/* @__PURE__ */
|
|
3896
|
-
o && /* @__PURE__ */
|
|
3718
|
+
/* @__PURE__ */ W("div", { className: "flex items-center", children: [
|
|
3719
|
+
o && /* @__PURE__ */ v(
|
|
3897
3720
|
"div",
|
|
3898
3721
|
{
|
|
3899
|
-
className:
|
|
3722
|
+
className: M(
|
|
3900
3723
|
"text-xs font-bold px-3 py-1 rounded-full mr-3 transition-colors",
|
|
3901
3724
|
t === "vibrant" ? "bg-white text-blue-600" : "bg-green-500 text-white"
|
|
3902
3725
|
),
|
|
3903
|
-
children:
|
|
3726
|
+
children: d
|
|
3904
3727
|
}
|
|
3905
3728
|
),
|
|
3906
|
-
/* @__PURE__ */
|
|
3729
|
+
/* @__PURE__ */ v("span", { className: M(Yn({ variant: t })), children: n })
|
|
3907
3730
|
] }),
|
|
3908
|
-
/* @__PURE__ */
|
|
3909
|
-
|
|
3731
|
+
/* @__PURE__ */ v(
|
|
3732
|
+
Le,
|
|
3910
3733
|
{
|
|
3911
3734
|
to: a,
|
|
3912
|
-
className:
|
|
3913
|
-
onClick: () =>
|
|
3735
|
+
className: M(qn({ variant: t })),
|
|
3736
|
+
onClick: () => u?.("cta_click"),
|
|
3914
3737
|
children: i
|
|
3915
3738
|
}
|
|
3916
3739
|
)
|
|
3917
|
-
] }) }) }),
|
|
3740
|
+
] }) }) }), oa = ({
|
|
3918
3741
|
className: e,
|
|
3919
3742
|
children: t,
|
|
3920
3743
|
disabled: r = !1,
|
|
@@ -3924,10 +3747,10 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
|
|
|
3924
3747
|
const a = () => {
|
|
3925
3748
|
r || (i?.("click"), n?.());
|
|
3926
3749
|
};
|
|
3927
|
-
return /* @__PURE__ */
|
|
3750
|
+
return /* @__PURE__ */ v(
|
|
3928
3751
|
"div",
|
|
3929
3752
|
{
|
|
3930
|
-
className:
|
|
3753
|
+
className: M(
|
|
3931
3754
|
"p-4 rounded-lg border transition-colors",
|
|
3932
3755
|
"bg-white dark:bg-gray-900",
|
|
3933
3756
|
"border-gray-200 dark:border-gray-700",
|
|
@@ -3944,16 +3767,16 @@ const Qt = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, xt = qa, $
|
|
|
3944
3767
|
);
|
|
3945
3768
|
};
|
|
3946
3769
|
export {
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
$
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3770
|
+
xn as AbTestEmail,
|
|
3771
|
+
ut as CollapsibleEmailField,
|
|
3772
|
+
$n as ContactCard,
|
|
3773
|
+
ea as EmailAccountsList,
|
|
3774
|
+
ta as EmailAnalytics,
|
|
3775
|
+
ra as EmailCampaign,
|
|
3776
|
+
pt as EmailInputField,
|
|
3777
|
+
na as EmailInputGroup,
|
|
3778
|
+
ia as FreeEmailBanner,
|
|
3779
|
+
Qn as SubscriberList,
|
|
3780
|
+
aa as UemailUtemplate,
|
|
3781
|
+
oa as UsubscriptionUplan
|
|
3959
3782
|
};
|