@embarkai/ui-kit 0.4.123 → 0.4.124
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/iframe/index.html +1 -1
- package/dist/iframe/main.js +1 -1
- package/dist/index.cjs +542 -443
- package/dist/index.js +528 -429
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5392,96 +5392,17 @@ var init_ErrorBoundary2 = __esm({
|
|
|
5392
5392
|
}
|
|
5393
5393
|
});
|
|
5394
5394
|
|
|
5395
|
-
// src/internal/hooks/
|
|
5395
|
+
// src/internal/hooks/useBalanceViewStore.ts
|
|
5396
5396
|
import { create as create3 } from "zustand";
|
|
5397
|
-
var
|
|
5398
|
-
var
|
|
5399
|
-
"src/internal/hooks/
|
|
5400
|
-
|
|
5401
|
-
PageKey = /* @__PURE__ */ ((PageKey3) => {
|
|
5402
|
-
PageKey3["AUTH"] = "auth";
|
|
5403
|
-
PageKey3["USER_ACTIVITY"] = "user-activity";
|
|
5404
|
-
PageKey3["LANGUAGES"] = "languages";
|
|
5405
|
-
PageKey3["MAIN_MENU"] = "main-menu";
|
|
5406
|
-
PageKey3["ACTIVITY_LOG"] = "activity-log";
|
|
5407
|
-
PageKey3["SETTINGS"] = "settings";
|
|
5408
|
-
PageKey3["SEND"] = "send";
|
|
5409
|
-
PageKey3["RECEIVE"] = "receive";
|
|
5410
|
-
PageKey3["BUY"] = "buy";
|
|
5411
|
-
PageKey3["KYC"] = "kyc";
|
|
5412
|
-
PageKey3["TRANSACTIONS"] = "transactions";
|
|
5413
|
-
PageKey3["ASSETS"] = "assets";
|
|
5414
|
-
PageKey3["MANAGE_WALLET"] = "manage-wallet";
|
|
5415
|
-
PageKey3["UNLINK_PROVIDER"] = "unlink-provider";
|
|
5416
|
-
PageKey3["SECURITY"] = "security";
|
|
5417
|
-
PageKey3["KEYSARE_BACKUP"] = "keysare-backup";
|
|
5418
|
-
PageKey3["KEYSHARE_RESTORE"] = "keyshare-restore";
|
|
5419
|
-
PageKey3["CHAIN"] = "chain";
|
|
5420
|
-
PageKey3["CHAIN_SWITCH_REQUEST"] = "chain-switch-request";
|
|
5421
|
-
PageKey3["NICKNAME_SETTINGS"] = "nickname-settings";
|
|
5422
|
-
PageKey3["DEVICES"] = "devices";
|
|
5423
|
-
PageKey3["DEVICE_LINK"] = "device-link";
|
|
5424
|
-
PageKey3["DEVICE_MANAGE"] = "device-manage";
|
|
5425
|
-
PageKey3["DEVICE_RESTORE"] = "device-restore";
|
|
5426
|
-
PageKey3["CONNECT_EXTERNAL_WALLET"] = "connect-external-wallet";
|
|
5427
|
-
return PageKey3;
|
|
5428
|
-
})(PageKey || {});
|
|
5429
|
-
useLayoutDataStore = create3((set) => ({
|
|
5430
|
-
page: null,
|
|
5431
|
-
pageParams: null,
|
|
5432
|
-
postAuthNavigation: null,
|
|
5433
|
-
langOpenedFromMenu: null,
|
|
5434
|
-
walletMenuOpenedFrom: null,
|
|
5435
|
-
chainMenuOpenedFrom: null,
|
|
5397
|
+
var useBalanceViewStore;
|
|
5398
|
+
var init_useBalanceViewStore = __esm({
|
|
5399
|
+
"src/internal/hooks/useBalanceViewStore.ts"() {
|
|
5400
|
+
useBalanceViewStore = create3((set) => ({
|
|
5436
5401
|
cryptoRate: 1,
|
|
5437
5402
|
cryptoSymbol: "LUMIA",
|
|
5438
5403
|
fiatBalance: 0,
|
|
5439
5404
|
fiatSymbol: "USD",
|
|
5440
|
-
balance: { decimals: 18, formatted: "0.0", symbol: "LUMIA", value: BigInt(0) }
|
|
5441
|
-
transitionPageHeight: DEFAULT_AUTH_MENU_HEIGHT,
|
|
5442
|
-
settingsNotifications: [],
|
|
5443
|
-
pendingWalletLogin: null,
|
|
5444
|
-
isOnboarding: false,
|
|
5445
|
-
setPageParams: (pageOptions) => set({ pageParams: pageOptions }),
|
|
5446
|
-
setPostAuthNavigation: (postAuthNavigation) => set({ postAuthNavigation }),
|
|
5447
|
-
openPostAuthNavigation: () => {
|
|
5448
|
-
let navigation = null;
|
|
5449
|
-
set((state) => {
|
|
5450
|
-
navigation = state.postAuthNavigation;
|
|
5451
|
-
if (!navigation) return state;
|
|
5452
|
-
return {
|
|
5453
|
-
page: navigation.page,
|
|
5454
|
-
pageParams: navigation.params ?? null,
|
|
5455
|
-
postAuthNavigation: null
|
|
5456
|
-
};
|
|
5457
|
-
});
|
|
5458
|
-
return !!navigation;
|
|
5459
|
-
},
|
|
5460
|
-
setPage: (page) => set((prev) => ({
|
|
5461
|
-
page,
|
|
5462
|
-
// Save the page from which specific menus were opened
|
|
5463
|
-
langOpenedFromMenu: page === "languages" /* LANGUAGES */ ? prev.page : null,
|
|
5464
|
-
walletMenuOpenedFrom: page === "connect-external-wallet" /* CONNECT_EXTERNAL_WALLET */ ? prev.page : null,
|
|
5465
|
-
chainMenuOpenedFrom: page === "chain" /* CHAIN */ ? prev.page : null
|
|
5466
|
-
})),
|
|
5467
|
-
setCryptoRate: (lumiaRate) => set({ cryptoRate: lumiaRate }),
|
|
5468
|
-
setCryptoSymbol: (cryptoSymbol) => set({ cryptoSymbol }),
|
|
5469
|
-
setFiatBalance: (usdBalance) => set({ fiatBalance: usdBalance }),
|
|
5470
|
-
setFiatSymbol: (fiatSymbol) => set({ fiatSymbol }),
|
|
5471
|
-
setBalance: (balance) => set({ balance }),
|
|
5472
|
-
setTransitionPageHeight: (transitionPageHeight) => set({ transitionPageHeight }),
|
|
5473
|
-
setSettingsNotifications: (notification) => set((prev) => {
|
|
5474
|
-
const actions = notification.status === "active" ? "add" : "remove";
|
|
5475
|
-
const exists = prev.settingsNotifications.find((n) => n.id === notification.id);
|
|
5476
|
-
if (actions === "add") {
|
|
5477
|
-
if (exists) return prev;
|
|
5478
|
-
return { settingsNotifications: [...prev.settingsNotifications, notification] };
|
|
5479
|
-
}
|
|
5480
|
-
const filtered = prev.settingsNotifications.filter((n) => n.id !== notification.id);
|
|
5481
|
-
return { settingsNotifications: filtered };
|
|
5482
|
-
}),
|
|
5483
|
-
setPendingWalletLogin: (pendingWalletLogin) => set({ pendingWalletLogin }),
|
|
5484
|
-
setIsOnboarding: (isOnboarding) => set({ isOnboarding })
|
|
5405
|
+
balance: { decimals: 18, formatted: "0.0", symbol: "LUMIA", value: BigInt(0) }
|
|
5485
5406
|
}));
|
|
5486
5407
|
}
|
|
5487
5408
|
});
|
|
@@ -5583,7 +5504,7 @@ function BalanceFeedProvider() {
|
|
|
5583
5504
|
const [balanceSymbol, setBalanceSymbol] = useState2(null);
|
|
5584
5505
|
const blockscoutApiUrl = useMemo(() => getBlockscoutApiUrl(chainConfig), [chainConfig]);
|
|
5585
5506
|
useEffect2(() => {
|
|
5586
|
-
|
|
5507
|
+
useBalanceViewStore.setState({ cryptoSymbol: chainConfig?.nativeCurrency?.symbol || "LUMIA" });
|
|
5587
5508
|
const showBalanceAsSymbol = getShowBalanceAsValue(config?.current?.showBalanceAs || null, chainConfig?.id || 0);
|
|
5588
5509
|
setBalanceSymbol(showBalanceAsSymbol || chainConfig.nativeCurrency.symbol);
|
|
5589
5510
|
}, [config, embarkaiAddress, chainConfig]);
|
|
@@ -5636,12 +5557,13 @@ function BalanceFeedProvider() {
|
|
|
5636
5557
|
const nativeSymbol = chainConfig?.nativeCurrency?.symbol || "LUMIA";
|
|
5637
5558
|
const rate = Number(cryptoRate?.price || "1");
|
|
5638
5559
|
const formattedBalance = Number(formatUnits(BigInt(nativeBalance?.value || "0"), nativeBalance?.decimals || 18));
|
|
5639
|
-
|
|
5640
|
-
|
|
5641
|
-
|
|
5642
|
-
|
|
5643
|
-
|
|
5644
|
-
|
|
5560
|
+
useBalanceViewStore.setState({
|
|
5561
|
+
cryptoRate: rate,
|
|
5562
|
+
cryptoSymbol: nativeSymbol,
|
|
5563
|
+
fiatSymbol: "USD",
|
|
5564
|
+
fiatBalance: formattedBalance * rate,
|
|
5565
|
+
balance: nativeBalance || { decimals: 18, formatted: "0", symbol: nativeSymbol, value: BigInt(0) }
|
|
5566
|
+
});
|
|
5645
5567
|
}, [isNativeBalanceFeedEnabled, nativeBalance, cryptoRate, chainConfig]);
|
|
5646
5568
|
const {
|
|
5647
5569
|
balanceQuery: projectAssetBalanceQueryFn,
|
|
@@ -5660,16 +5582,18 @@ function BalanceFeedProvider() {
|
|
|
5660
5582
|
useEffect2(() => {
|
|
5661
5583
|
if (!isProjectAssetBalanceEnabled || !projectAssetBalance) return;
|
|
5662
5584
|
const { cryptoFiatRate, fiatFormatted, cryptoFormatted, cryptoSymbol, fiatSymbol } = projectAssetBalance;
|
|
5663
|
-
|
|
5664
|
-
|
|
5665
|
-
|
|
5666
|
-
|
|
5667
|
-
|
|
5668
|
-
|
|
5669
|
-
|
|
5670
|
-
|
|
5671
|
-
|
|
5672
|
-
|
|
5585
|
+
useBalanceViewStore.setState({
|
|
5586
|
+
...!!cryptoSymbol && { cryptoSymbol },
|
|
5587
|
+
...!!fiatSymbol && { fiatSymbol },
|
|
5588
|
+
cryptoRate: cryptoFiatRate || 1,
|
|
5589
|
+
fiatBalance: fiatFormatted || 0,
|
|
5590
|
+
// conversions to fit BalanceItem interface
|
|
5591
|
+
balance: {
|
|
5592
|
+
decimals: 18,
|
|
5593
|
+
formatted: cryptoFormatted?.toString() || "0",
|
|
5594
|
+
symbol: cryptoSymbol?.toUpperCase(),
|
|
5595
|
+
value: BigInt(Math.floor((cryptoFormatted || 0) * 10 ** 18))
|
|
5596
|
+
}
|
|
5673
5597
|
});
|
|
5674
5598
|
}, [isProjectAssetBalanceEnabled, projectAssetBalance]);
|
|
5675
5599
|
const isCustomAssetBalanceEnabled = !isNativeBalanceFeedEnabled && !isProjectAssetBalanceEnabled;
|
|
@@ -5738,12 +5662,13 @@ function BalanceFeedProvider() {
|
|
|
5738
5662
|
if (!!isCustomAssetBalanceEnabled && isCustomBalanceLoading) return;
|
|
5739
5663
|
const rate = Number(cryptoRate?.price || "1");
|
|
5740
5664
|
const formattedBalance = Number(formatUnits(BigInt(customBalance?.value || "0"), customBalance?.decimals || 18));
|
|
5741
|
-
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5665
|
+
useBalanceViewStore.setState({
|
|
5666
|
+
cryptoRate: rate,
|
|
5667
|
+
cryptoSymbol: customBalance.symbol,
|
|
5668
|
+
fiatSymbol: "USD",
|
|
5669
|
+
fiatBalance: formattedBalance * rate,
|
|
5670
|
+
balance: customBalance
|
|
5671
|
+
});
|
|
5747
5672
|
}, [
|
|
5748
5673
|
isCustomAssetBalanceEnabled,
|
|
5749
5674
|
customBalance,
|
|
@@ -5759,7 +5684,7 @@ var init_BalanceFeedProvider = __esm({
|
|
|
5759
5684
|
init_initial();
|
|
5760
5685
|
init_ProviderContext();
|
|
5761
5686
|
init_SessionContext();
|
|
5762
|
-
|
|
5687
|
+
init_useBalanceViewStore();
|
|
5763
5688
|
init_constants2();
|
|
5764
5689
|
init_useAssetRate();
|
|
5765
5690
|
}
|
|
@@ -5905,6 +5830,87 @@ var init_helpers = __esm({
|
|
|
5905
5830
|
}
|
|
5906
5831
|
});
|
|
5907
5832
|
|
|
5833
|
+
// src/internal/hooks/useLayoutDataStore.ts
|
|
5834
|
+
import { create as create4 } from "zustand";
|
|
5835
|
+
var PageKey, RETURNABLE_MENUS, useLayoutDataStore;
|
|
5836
|
+
var init_useLayoutDataStore = __esm({
|
|
5837
|
+
"src/internal/hooks/useLayoutDataStore.ts"() {
|
|
5838
|
+
init_constants();
|
|
5839
|
+
PageKey = /* @__PURE__ */ ((PageKey2) => {
|
|
5840
|
+
PageKey2["AUTH"] = "auth";
|
|
5841
|
+
PageKey2["USER_ACTIVITY"] = "user-activity";
|
|
5842
|
+
PageKey2["LANGUAGES"] = "languages";
|
|
5843
|
+
PageKey2["MAIN_MENU"] = "main-menu";
|
|
5844
|
+
PageKey2["ACTIVITY_LOG"] = "activity-log";
|
|
5845
|
+
PageKey2["SETTINGS"] = "settings";
|
|
5846
|
+
PageKey2["SEND"] = "send";
|
|
5847
|
+
PageKey2["RECEIVE"] = "receive";
|
|
5848
|
+
PageKey2["BUY"] = "buy";
|
|
5849
|
+
PageKey2["KYC"] = "kyc";
|
|
5850
|
+
PageKey2["TRANSACTIONS"] = "transactions";
|
|
5851
|
+
PageKey2["ASSETS"] = "assets";
|
|
5852
|
+
PageKey2["MANAGE_WALLET"] = "manage-wallet";
|
|
5853
|
+
PageKey2["UNLINK_PROVIDER"] = "unlink-provider";
|
|
5854
|
+
PageKey2["SECURITY"] = "security";
|
|
5855
|
+
PageKey2["KEYSARE_BACKUP"] = "keysare-backup";
|
|
5856
|
+
PageKey2["KEYSHARE_RESTORE"] = "keyshare-restore";
|
|
5857
|
+
PageKey2["CHAIN"] = "chain";
|
|
5858
|
+
PageKey2["CHAIN_SWITCH_REQUEST"] = "chain-switch-request";
|
|
5859
|
+
PageKey2["NICKNAME_SETTINGS"] = "nickname-settings";
|
|
5860
|
+
PageKey2["DEVICES"] = "devices";
|
|
5861
|
+
PageKey2["DEVICE_LINK"] = "device-link";
|
|
5862
|
+
PageKey2["DEVICE_MANAGE"] = "device-manage";
|
|
5863
|
+
PageKey2["DEVICE_RESTORE"] = "device-restore";
|
|
5864
|
+
PageKey2["CONNECT_EXTERNAL_WALLET"] = "connect-external-wallet";
|
|
5865
|
+
return PageKey2;
|
|
5866
|
+
})(PageKey || {});
|
|
5867
|
+
RETURNABLE_MENUS = ["languages" /* LANGUAGES */, "connect-external-wallet" /* CONNECT_EXTERNAL_WALLET */, "chain" /* CHAIN */];
|
|
5868
|
+
useLayoutDataStore = create4((set) => ({
|
|
5869
|
+
page: null,
|
|
5870
|
+
pageParams: null,
|
|
5871
|
+
postAuthNavigation: null,
|
|
5872
|
+
openedFromPage: null,
|
|
5873
|
+
transitionPageHeight: DEFAULT_AUTH_MENU_HEIGHT,
|
|
5874
|
+
settingsNotifications: [],
|
|
5875
|
+
pendingWalletLogin: null,
|
|
5876
|
+
isOnboarding: false,
|
|
5877
|
+
setPageParams: (pageOptions) => set({ pageParams: pageOptions }),
|
|
5878
|
+
setPostAuthNavigation: (postAuthNavigation) => set({ postAuthNavigation }),
|
|
5879
|
+
openPostAuthNavigation: () => {
|
|
5880
|
+
let navigation = null;
|
|
5881
|
+
set((state) => {
|
|
5882
|
+
navigation = state.postAuthNavigation;
|
|
5883
|
+
if (!navigation) return state;
|
|
5884
|
+
return {
|
|
5885
|
+
page: navigation.page,
|
|
5886
|
+
pageParams: navigation.params ?? null,
|
|
5887
|
+
postAuthNavigation: null
|
|
5888
|
+
};
|
|
5889
|
+
});
|
|
5890
|
+
return !!navigation;
|
|
5891
|
+
},
|
|
5892
|
+
setPage: (page) => set((prev) => ({
|
|
5893
|
+
page,
|
|
5894
|
+
// Save the page from which specific menus were opened
|
|
5895
|
+
openedFromPage: !!page && RETURNABLE_MENUS.includes(page) ? prev.page && RETURNABLE_MENUS.includes(prev.page) ? prev.openedFromPage : prev.page : null
|
|
5896
|
+
})),
|
|
5897
|
+
setTransitionPageHeight: (transitionPageHeight) => set({ transitionPageHeight }),
|
|
5898
|
+
setSettingsNotifications: (notification) => set((prev) => {
|
|
5899
|
+
const actions = notification.status === "active" ? "add" : "remove";
|
|
5900
|
+
const exists = prev.settingsNotifications.find((n) => n.id === notification.id);
|
|
5901
|
+
if (actions === "add") {
|
|
5902
|
+
if (exists) return prev;
|
|
5903
|
+
return { settingsNotifications: [...prev.settingsNotifications, notification] };
|
|
5904
|
+
}
|
|
5905
|
+
const filtered = prev.settingsNotifications.filter((n) => n.id !== notification.id);
|
|
5906
|
+
return { settingsNotifications: filtered };
|
|
5907
|
+
}),
|
|
5908
|
+
setPendingWalletLogin: (pendingWalletLogin) => set({ pendingWalletLogin }),
|
|
5909
|
+
setIsOnboarding: (isOnboarding) => set({ isOnboarding })
|
|
5910
|
+
}));
|
|
5911
|
+
}
|
|
5912
|
+
});
|
|
5913
|
+
|
|
5908
5914
|
// src/internal/components/ChainSync/ChainSync.tsx
|
|
5909
5915
|
import { DEFAULT_CHAIN_ID, getChainConfig, isChainSupported } from "@embarkai/core/read";
|
|
5910
5916
|
import { useMutation, useQueryClient } from "@tanstack/react-query";
|
|
@@ -7315,24 +7321,19 @@ var init_useDetectMaxScrollHeight = __esm({
|
|
|
7315
7321
|
// src/internal/hooks/useListenIframeAuthEvents.ts
|
|
7316
7322
|
import { useCallback as useCallback6, useEffect as useEffect9 } from "react";
|
|
7317
7323
|
function useListenIframeAuthEvents() {
|
|
7318
|
-
const
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
console.log("[ IFRAME MESSAGE CACTHED] recovery neede");
|
|
7332
|
-
}
|
|
7333
|
-
},
|
|
7334
|
-
[setPage, setIsIframeReady]
|
|
7335
|
-
);
|
|
7324
|
+
const handleIframeMessage = useCallback6((event) => {
|
|
7325
|
+
const type = event.data?.type?.startsWith?.("LUMIA_PASSPORT_") ? event.data.type.replace("LUMIA_PASSPORT_", "IFRAME_MSG_") : event.data?.type;
|
|
7326
|
+
if (type === "IFRAME_MSG_IFRAME_READY") {
|
|
7327
|
+
console.log("[ IFRAME MESSAGE CACTHED ] Iframe is ready");
|
|
7328
|
+
useSession.getState().setIsIframeReady(true);
|
|
7329
|
+
} else if (type === "IFRAME_MSG_SHOW_IFRAME") {
|
|
7330
|
+
console.log("[ IFRAME MESSAGE CACTHED ] Consent screen shown - hiding auth modal");
|
|
7331
|
+
} else if (type === "IFRAME_MSG_HIDE_IFRAME") {
|
|
7332
|
+
console.log("[ IFRAME MESSAGE CACTHED ] Consent screen hidden");
|
|
7333
|
+
} else if (event.data?.type === "KEYSHARE_RECOVERY_NEEDED") {
|
|
7334
|
+
console.log("[ IFRAME MESSAGE CACTHED] recovery neede");
|
|
7335
|
+
}
|
|
7336
|
+
}, []);
|
|
7336
7337
|
useEffect9(() => {
|
|
7337
7338
|
window.addEventListener("message", handleIframeMessage);
|
|
7338
7339
|
return () => window.removeEventListener("message", handleIframeMessage);
|
|
@@ -7341,7 +7342,6 @@ function useListenIframeAuthEvents() {
|
|
|
7341
7342
|
var init_useListenIframeAuthEvents = __esm({
|
|
7342
7343
|
"src/internal/hooks/useListenIframeAuthEvents.ts"() {
|
|
7343
7344
|
init_SessionContext();
|
|
7344
|
-
init_useLayoutDataStore();
|
|
7345
7345
|
}
|
|
7346
7346
|
});
|
|
7347
7347
|
|
|
@@ -9658,12 +9658,12 @@ var init_api = __esm({
|
|
|
9658
9658
|
});
|
|
9659
9659
|
|
|
9660
9660
|
// src/internal/components/ActivityLogMenu/useActivityLogFilters.ts
|
|
9661
|
-
import { create as
|
|
9661
|
+
import { create as create5 } from "zustand";
|
|
9662
9662
|
import { persist } from "zustand/middleware";
|
|
9663
9663
|
var useActivityLogFilters;
|
|
9664
9664
|
var init_useActivityLogFilters = __esm({
|
|
9665
9665
|
"src/internal/components/ActivityLogMenu/useActivityLogFilters.ts"() {
|
|
9666
|
-
useActivityLogFilters =
|
|
9666
|
+
useActivityLogFilters = create5()(
|
|
9667
9667
|
persist(() => ({}), {
|
|
9668
9668
|
name: "embark-user-activity-filters"
|
|
9669
9669
|
// unique name for the storage
|
|
@@ -9816,11 +9816,11 @@ var init_highlight = __esm({
|
|
|
9816
9816
|
});
|
|
9817
9817
|
|
|
9818
9818
|
// src/internal/components/AuthMenu/useAuthStore.ts
|
|
9819
|
-
import { create as
|
|
9819
|
+
import { create as create6 } from "zustand";
|
|
9820
9820
|
var useAuthStore;
|
|
9821
9821
|
var init_useAuthStore = __esm({
|
|
9822
9822
|
"src/internal/components/AuthMenu/useAuthStore.ts"() {
|
|
9823
|
-
useAuthStore =
|
|
9823
|
+
useAuthStore = create6((set) => ({
|
|
9824
9824
|
step: "signin",
|
|
9825
9825
|
alert: null,
|
|
9826
9826
|
email: "",
|
|
@@ -11738,11 +11738,11 @@ var init_AuthMenu2 = __esm({
|
|
|
11738
11738
|
});
|
|
11739
11739
|
|
|
11740
11740
|
// src/internal/components/Onboarding/useOnboardingStore.ts
|
|
11741
|
-
import { create as
|
|
11741
|
+
import { create as create7 } from "zustand";
|
|
11742
11742
|
var useOnboardingStore;
|
|
11743
11743
|
var init_useOnboardingStore = __esm({
|
|
11744
11744
|
"src/internal/components/Onboarding/useOnboardingStore.ts"() {
|
|
11745
|
-
useOnboardingStore =
|
|
11745
|
+
useOnboardingStore = create7((set) => ({
|
|
11746
11746
|
isTourAvailable: false,
|
|
11747
11747
|
setIsTourAvailable: (isTourAvailable) => set({ isTourAvailable }),
|
|
11748
11748
|
elRect: { x: 0, y: 0, width: 0, height: 0 },
|
|
@@ -12666,7 +12666,7 @@ var init_priceFormatter = __esm({
|
|
|
12666
12666
|
// src/internal/components/BuyMenu/useBuyMenuStore.ts
|
|
12667
12667
|
import { keys as keys2, noop } from "lodash-es";
|
|
12668
12668
|
import { useEffect as useEffect17 } from "react";
|
|
12669
|
-
import { create as
|
|
12669
|
+
import { create as create8 } from "zustand";
|
|
12670
12670
|
import { persist as persist2 } from "zustand/middleware";
|
|
12671
12671
|
function useBuyMenuParams() {
|
|
12672
12672
|
useEffect17(() => {
|
|
@@ -12699,7 +12699,7 @@ var init_useBuyMenuStore = __esm({
|
|
|
12699
12699
|
};
|
|
12700
12700
|
DEFAULT_AMOUNT = 20;
|
|
12701
12701
|
DEFAULT_PROVIDER = "binance";
|
|
12702
|
-
useBuyMenuStore =
|
|
12702
|
+
useBuyMenuStore = create8()(
|
|
12703
12703
|
persist2(
|
|
12704
12704
|
(set) => ({
|
|
12705
12705
|
/** boolean flags */
|
|
@@ -13115,11 +13115,11 @@ var init_FiatSelector = __esm({
|
|
|
13115
13115
|
});
|
|
13116
13116
|
|
|
13117
13117
|
// src/internal/components/BuyMenu/binance/useBinanceStore.ts
|
|
13118
|
-
import { create as
|
|
13118
|
+
import { create as create9 } from "zustand";
|
|
13119
13119
|
var useBinanceStore;
|
|
13120
13120
|
var init_useBinanceStore = __esm({
|
|
13121
13121
|
"src/internal/components/BuyMenu/binance/useBinanceStore.ts"() {
|
|
13122
|
-
useBinanceStore =
|
|
13122
|
+
useBinanceStore = create9((set) => ({
|
|
13123
13123
|
paymentMode: null,
|
|
13124
13124
|
setPaymentMode: (paymentMode) => set({ paymentMode }),
|
|
13125
13125
|
quoteData: null,
|
|
@@ -15500,8 +15500,8 @@ function ChainsMenu() {
|
|
|
15500
15500
|
variant: "ghost",
|
|
15501
15501
|
title: t("passport:common.back"),
|
|
15502
15502
|
onClick: () => {
|
|
15503
|
-
const
|
|
15504
|
-
useLayoutDataStore.getState().setPage(
|
|
15503
|
+
const openedFromPage = useLayoutDataStore.getState().openedFromPage;
|
|
15504
|
+
useLayoutDataStore.getState().setPage(openedFromPage || "settings" /* SETTINGS */);
|
|
15505
15505
|
},
|
|
15506
15506
|
children: /* @__PURE__ */ jsx60(ArrowLeft5, { className: "h-4 w-4" })
|
|
15507
15507
|
}
|
|
@@ -16088,11 +16088,11 @@ var init_wallet = __esm({
|
|
|
16088
16088
|
});
|
|
16089
16089
|
|
|
16090
16090
|
// src/internal/stores/useExternalWalletStore.ts
|
|
16091
|
-
import { create as
|
|
16091
|
+
import { create as create10 } from "zustand";
|
|
16092
16092
|
var useExternalWalletStore;
|
|
16093
16093
|
var init_useExternalWalletStore = __esm({
|
|
16094
16094
|
"src/internal/stores/useExternalWalletStore.ts"() {
|
|
16095
|
-
useExternalWalletStore =
|
|
16095
|
+
useExternalWalletStore = create10((set) => ({
|
|
16096
16096
|
configMode: "linked",
|
|
16097
16097
|
activeMode: "linked",
|
|
16098
16098
|
externalAddress: null,
|
|
@@ -16315,12 +16315,12 @@ var init_email = __esm({
|
|
|
16315
16315
|
});
|
|
16316
16316
|
|
|
16317
16317
|
// src/internal/components/ManageWalletMenu/hooks/useStore.ts
|
|
16318
|
-
import { create as
|
|
16318
|
+
import { create as create11 } from "zustand";
|
|
16319
16319
|
var useManageWalletStore;
|
|
16320
16320
|
var init_useStore = __esm({
|
|
16321
16321
|
"src/internal/components/ManageWalletMenu/hooks/useStore.ts"() {
|
|
16322
16322
|
init_useLayoutStore();
|
|
16323
|
-
useManageWalletStore =
|
|
16323
|
+
useManageWalletStore = create11((set) => ({
|
|
16324
16324
|
alert: null,
|
|
16325
16325
|
emailStep: "input",
|
|
16326
16326
|
email: "",
|
|
@@ -17595,7 +17595,7 @@ function ConnectExternalWalletMenu() {
|
|
|
17595
17595
|
return await signOnce(true);
|
|
17596
17596
|
}
|
|
17597
17597
|
};
|
|
17598
|
-
const
|
|
17598
|
+
const openedFromPage = useLayoutDataStore((st) => st.openedFromPage);
|
|
17599
17599
|
const { data: providers = [] } = useQuery10({
|
|
17600
17600
|
retry: false,
|
|
17601
17601
|
enabled: !!embarkAiAddress,
|
|
@@ -17606,7 +17606,7 @@ function ConnectExternalWalletMenu() {
|
|
|
17606
17606
|
const { mutateAsync: onLinkingComplete } = useMutation10({
|
|
17607
17607
|
mutationFn: async (success) => {
|
|
17608
17608
|
useManageWalletStore.getState().setProviderType(null);
|
|
17609
|
-
useLayoutDataStore.getState().setPage(
|
|
17609
|
+
useLayoutDataStore.getState().setPage(openedFromPage || "manage-wallet" /* MANAGE_WALLET */);
|
|
17610
17610
|
if (!success) return;
|
|
17611
17611
|
await qc.invalidateQueries({ queryKey: [PROVIDERS_QUERY_KEY, embarkAiAddress] });
|
|
17612
17612
|
await qc.invalidateQueries({ queryKey: [LINKED_PROFILES_QUERY_KEY, embarkAiAddress] });
|
|
@@ -17628,7 +17628,7 @@ function ConnectExternalWalletMenu() {
|
|
|
17628
17628
|
}
|
|
17629
17629
|
};
|
|
17630
17630
|
const completeExternalConnect = (connector, address, chainId) => {
|
|
17631
|
-
useLayoutDataStore.getState().setPage(
|
|
17631
|
+
useLayoutDataStore.getState().setPage(openedFromPage || "manage-wallet" /* MANAGE_WALLET */);
|
|
17632
17632
|
keepOrReleaseExternalWallet(connector, address, chainId);
|
|
17633
17633
|
};
|
|
17634
17634
|
const { mutateAsync: loginOrLinkWallet, isPending: isLoginOrLinkWallet } = useMutation10({
|
|
@@ -17798,7 +17798,7 @@ function ConnectExternalWalletMenu() {
|
|
|
17798
17798
|
size: "icon",
|
|
17799
17799
|
title: t("passport:common.back"),
|
|
17800
17800
|
disabled: isConnectingExternalWallet || isLoginOrLinkWallet,
|
|
17801
|
-
onClick: () => useLayoutDataStore.getState().setPage(
|
|
17801
|
+
onClick: () => useLayoutDataStore.getState().setPage(openedFromPage ?? "manage-wallet" /* MANAGE_WALLET */),
|
|
17802
17802
|
children: /* @__PURE__ */ jsx74(ArrowLeft8, { className: "h-4 w-4" })
|
|
17803
17803
|
}
|
|
17804
17804
|
),
|
|
@@ -19202,11 +19202,11 @@ var init_DevicesMenu = __esm({
|
|
|
19202
19202
|
});
|
|
19203
19203
|
|
|
19204
19204
|
// src/internal/components/KeyshareRestoreMenu/hooks/useRestoreStore.ts
|
|
19205
|
-
import { create as
|
|
19205
|
+
import { create as create12 } from "zustand";
|
|
19206
19206
|
var useRestoreStore;
|
|
19207
19207
|
var init_useRestoreStore = __esm({
|
|
19208
19208
|
"src/internal/components/KeyshareRestoreMenu/hooks/useRestoreStore.ts"() {
|
|
19209
|
-
useRestoreStore =
|
|
19209
|
+
useRestoreStore = create12((set) => ({
|
|
19210
19210
|
method: null,
|
|
19211
19211
|
// recoveryData: null,
|
|
19212
19212
|
showPassword: false,
|
|
@@ -21726,7 +21726,7 @@ import { jsx as jsx92, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
|
21726
21726
|
function LanguagesMenu() {
|
|
21727
21727
|
const config = useProviderConfig().config;
|
|
21728
21728
|
const { t, i18n } = useT();
|
|
21729
|
-
const
|
|
21729
|
+
const openedFromPage = useLayoutDataStore((st) => st.openedFromPage);
|
|
21730
21730
|
const languageList = getAvailableLanguages(config.current.translations);
|
|
21731
21731
|
return /* @__PURE__ */ jsxs83(Expandable, { isExpanded: true, contentClassName: "w-full flex flex-col gap-[var(--ui-kit-gap)]", children: [
|
|
21732
21732
|
/* @__PURE__ */ jsxs83("div", { className: "flex items-center gap-[var(--ui-kit-gap)]", children: [
|
|
@@ -21736,7 +21736,7 @@ function LanguagesMenu() {
|
|
|
21736
21736
|
variant: "ghost",
|
|
21737
21737
|
size: "icon",
|
|
21738
21738
|
title: "Back",
|
|
21739
|
-
onClick: () => useLayoutDataStore.getState().setPage(
|
|
21739
|
+
onClick: () => useLayoutDataStore.getState().setPage(openedFromPage || "main-menu" /* MAIN_MENU */),
|
|
21740
21740
|
children: /* @__PURE__ */ jsx92(ArrowLeft16, { className: "h-4 w-4" })
|
|
21741
21741
|
}
|
|
21742
21742
|
),
|
|
@@ -21751,7 +21751,7 @@ function LanguagesMenu() {
|
|
|
21751
21751
|
onClick: () => {
|
|
21752
21752
|
i18n.changeLanguage(langKey);
|
|
21753
21753
|
localStorage.setItem(LOCAL_STORAGE_I18N_KEY, langKey);
|
|
21754
|
-
useLayoutDataStore.getState().setPage(
|
|
21754
|
+
useLayoutDataStore.getState().setPage(openedFromPage);
|
|
21755
21755
|
},
|
|
21756
21756
|
children: [
|
|
21757
21757
|
/* @__PURE__ */ jsx92("span", { children: LANGUAGES[langKey]?.name }),
|
|
@@ -22396,11 +22396,11 @@ function BalanceView(props) {
|
|
|
22396
22396
|
const { className } = props;
|
|
22397
22397
|
const config = useProviderConfig().config;
|
|
22398
22398
|
const showFiatBalance = !!config.current?.features?.showActiveBalanceAsFiat;
|
|
22399
|
-
const balance =
|
|
22400
|
-
const cryptoSymbol =
|
|
22399
|
+
const balance = useBalanceViewStore((st) => st.balance);
|
|
22400
|
+
const cryptoSymbol = useBalanceViewStore((st) => st.cryptoSymbol);
|
|
22401
22401
|
const cryptoBalance = Number(formatUnits6(balance?.value || BigInt(0), balance?.decimals || 18));
|
|
22402
|
-
const fiatBalance =
|
|
22403
|
-
const fiatSymbol =
|
|
22402
|
+
const fiatBalance = useBalanceViewStore((st) => st.fiatBalance);
|
|
22403
|
+
const fiatSymbol = useBalanceViewStore((st) => st.fiatSymbol);
|
|
22404
22404
|
const BalanceIcon = showFiatBalance ? TOKENS_ICONS[cryptoSymbol] : null;
|
|
22405
22405
|
return /* @__PURE__ */ jsxs84(
|
|
22406
22406
|
"p",
|
|
@@ -22426,7 +22426,7 @@ var BALANCE_PREFIXES;
|
|
|
22426
22426
|
var init_BalanceView = __esm({
|
|
22427
22427
|
"src/internal/components/BalanceView/BalanceView.tsx"() {
|
|
22428
22428
|
init_tokens();
|
|
22429
|
-
|
|
22429
|
+
init_useBalanceViewStore();
|
|
22430
22430
|
init_priceFormatter();
|
|
22431
22431
|
init_utils();
|
|
22432
22432
|
init_ProviderContext();
|
|
@@ -23057,11 +23057,11 @@ var init_nickname_validation = __esm({
|
|
|
23057
23057
|
});
|
|
23058
23058
|
|
|
23059
23059
|
// src/internal/components/NicknameMenu/useNicknameStore.ts
|
|
23060
|
-
import { create as
|
|
23060
|
+
import { create as create13 } from "zustand";
|
|
23061
23061
|
var useNicknameStore;
|
|
23062
23062
|
var init_useNicknameStore = __esm({
|
|
23063
23063
|
"src/internal/components/NicknameMenu/useNicknameStore.ts"() {
|
|
23064
|
-
useNicknameStore =
|
|
23064
|
+
useNicknameStore = create13((set) => ({
|
|
23065
23065
|
nicknameValue: "",
|
|
23066
23066
|
setNicknameValue: (nicknameValue) => set({ nicknameValue }),
|
|
23067
23067
|
availability: null,
|
|
@@ -23740,7 +23740,7 @@ var init_onboarding_setup8 = __esm({
|
|
|
23740
23740
|
});
|
|
23741
23741
|
|
|
23742
23742
|
// src/internal/components/SecurityMenu/useSecurityStore.ts
|
|
23743
|
-
import { create as
|
|
23743
|
+
import { create as create14 } from "zustand";
|
|
23744
23744
|
var DEFAULT_SECURITY_STORE, useSecurityStore;
|
|
23745
23745
|
var init_useSecurityStore = __esm({
|
|
23746
23746
|
"src/internal/components/SecurityMenu/useSecurityStore.ts"() {
|
|
@@ -23750,7 +23750,7 @@ var init_useSecurityStore = __esm({
|
|
|
23750
23750
|
// connected app can be untrusted
|
|
23751
23751
|
showAssetsPolicies: false
|
|
23752
23752
|
};
|
|
23753
|
-
useSecurityStore =
|
|
23753
|
+
useSecurityStore = create14((set) => ({
|
|
23754
23754
|
title: "",
|
|
23755
23755
|
...DEFAULT_SECURITY_STORE
|
|
23756
23756
|
}));
|
|
@@ -24353,7 +24353,7 @@ var init_utils10 = __esm({
|
|
|
24353
24353
|
|
|
24354
24354
|
// src/internal/components/SecurityMenu/UserPolicies/usePolicyForm.ts
|
|
24355
24355
|
import { useEffect as useEffect41, useState as useState25 } from "react";
|
|
24356
|
-
import { create as
|
|
24356
|
+
import { create as create15 } from "zustand";
|
|
24357
24357
|
function updateDestinations(patch) {
|
|
24358
24358
|
usePolicyForm.setState((st) => ({ ...st, destinations: { ...st?.destinations, ...patch } }));
|
|
24359
24359
|
}
|
|
@@ -24406,8 +24406,8 @@ var usePolicyForm, usePolicyFormValidation;
|
|
|
24406
24406
|
var init_usePolicyForm = __esm({
|
|
24407
24407
|
"src/internal/components/SecurityMenu/UserPolicies/usePolicyForm.ts"() {
|
|
24408
24408
|
init_utils10();
|
|
24409
|
-
usePolicyForm =
|
|
24410
|
-
usePolicyFormValidation =
|
|
24409
|
+
usePolicyForm = create15(() => null);
|
|
24410
|
+
usePolicyFormValidation = create15(() => ({}));
|
|
24411
24411
|
}
|
|
24412
24412
|
});
|
|
24413
24413
|
|
|
@@ -25086,7 +25086,7 @@ var init_SecurityMenu2 = __esm({
|
|
|
25086
25086
|
});
|
|
25087
25087
|
|
|
25088
25088
|
// src/internal/components/SendMenu/hyperbridge/useBridgeStore.ts
|
|
25089
|
-
import { create as
|
|
25089
|
+
import { create as create16 } from "zustand";
|
|
25090
25090
|
import { persist as persist3 } from "zustand/middleware";
|
|
25091
25091
|
var RESETABLE_STATES, useBridgeStore;
|
|
25092
25092
|
var init_useBridgeStore = __esm({
|
|
@@ -25101,7 +25101,7 @@ var init_useBridgeStore = __esm({
|
|
|
25101
25101
|
isQuoteEstimating: false,
|
|
25102
25102
|
bridgeHistoryItem: null
|
|
25103
25103
|
};
|
|
25104
|
-
useBridgeStore =
|
|
25104
|
+
useBridgeStore = create16()(
|
|
25105
25105
|
persist3(
|
|
25106
25106
|
(set, get) => ({
|
|
25107
25107
|
bridgeSenders: [],
|
|
@@ -25310,12 +25310,12 @@ var init_useAvailableSenders = __esm({
|
|
|
25310
25310
|
});
|
|
25311
25311
|
|
|
25312
25312
|
// src/internal/components/SendMenu/useFlowSelector.ts
|
|
25313
|
-
import { create as
|
|
25313
|
+
import { create as create17 } from "zustand";
|
|
25314
25314
|
import { persist as persist4 } from "zustand/middleware";
|
|
25315
25315
|
var useFlowSelectorStore;
|
|
25316
25316
|
var init_useFlowSelector = __esm({
|
|
25317
25317
|
"src/internal/components/SendMenu/useFlowSelector.ts"() {
|
|
25318
|
-
useFlowSelectorStore =
|
|
25318
|
+
useFlowSelectorStore = create17()(
|
|
25319
25319
|
persist4(
|
|
25320
25320
|
(set) => ({
|
|
25321
25321
|
flow: "send",
|
|
@@ -25740,11 +25740,11 @@ var init_useHyperlaneHistory = __esm({
|
|
|
25740
25740
|
});
|
|
25741
25741
|
|
|
25742
25742
|
// src/internal/components/SendMenu/hyperbridge/hooks/useOperationHashesStore.ts
|
|
25743
|
-
import { create as
|
|
25743
|
+
import { create as create18 } from "zustand";
|
|
25744
25744
|
var useOperationHashesStore;
|
|
25745
25745
|
var init_useOperationHashesStore = __esm({
|
|
25746
25746
|
"src/internal/components/SendMenu/hyperbridge/hooks/useOperationHashesStore.ts"() {
|
|
25747
|
-
useOperationHashesStore =
|
|
25747
|
+
useOperationHashesStore = create18((set) => ({
|
|
25748
25748
|
hyperlaneDatabaseTx: null,
|
|
25749
25749
|
operationHashes: [],
|
|
25750
25750
|
setHyperlaneDatabaseTx: (hyperlaneDatabaseTx) => set({ hyperlaneDatabaseTx }),
|
|
@@ -26075,12 +26075,12 @@ var init_useMenuTitle = __esm({
|
|
|
26075
26075
|
});
|
|
26076
26076
|
|
|
26077
26077
|
// src/internal/components/SendMenu/send/useSendStore.ts
|
|
26078
|
-
import { create as
|
|
26078
|
+
import { create as create19 } from "zustand";
|
|
26079
26079
|
var useSendStore;
|
|
26080
26080
|
var init_useSendStore = __esm({
|
|
26081
26081
|
"src/internal/components/SendMenu/send/useSendStore.ts"() {
|
|
26082
26082
|
init_useFlowSelector();
|
|
26083
|
-
useSendStore =
|
|
26083
|
+
useSendStore = create19((set) => ({
|
|
26084
26084
|
recipient: "",
|
|
26085
26085
|
//
|
|
26086
26086
|
amount: "",
|
|
@@ -30327,13 +30327,99 @@ var init_useSettingsNotifications = __esm({
|
|
|
30327
30327
|
}
|
|
30328
30328
|
});
|
|
30329
30329
|
|
|
30330
|
+
// src/internal/assets/embark-ai-dark.svg
|
|
30331
|
+
import * as React32 from "react";
|
|
30332
|
+
import { jsx as jsx132, jsxs as jsxs119 } from "react/jsx-runtime";
|
|
30333
|
+
var SvgEmbarkAiDark, embark_ai_dark_default;
|
|
30334
|
+
var init_embark_ai_dark = __esm({
|
|
30335
|
+
"src/internal/assets/embark-ai-dark.svg"() {
|
|
30336
|
+
SvgEmbarkAiDark = (props) => /* @__PURE__ */ jsxs119("svg", { width: 873, height: 152, viewBox: "0 0 873 152", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
30337
|
+
/* @__PURE__ */ jsxs119("g", { clipPath: "url(#clip0_753_38)", children: [
|
|
30338
|
+
/* @__PURE__ */ jsx132("path", { d: "M245.901 51.1463C256.917 51.1463 265.796 54.985 272.537 62.6407C279.278 70.2963 282.288 80.0021 281.59 91.7582H220.901C221.359 98.2796 223.976 103.732 228.71 108.116C233.466 112.5 239.4 114.681 246.533 114.681C251.769 114.681 256.416 113.482 260.451 111.061C264.509 108.662 267.432 105.412 269.243 101.333H280.347C277.991 108.553 273.715 114.289 267.563 118.542C261.411 122.795 254.234 124.933 246.032 124.933C235.233 124.933 226.485 121.377 219.744 114.245C213.003 107.113 209.644 98.3887 209.644 88.0721C209.644 77.7556 213.069 69.0094 219.897 61.8555C226.725 54.7015 235.386 51.1245 245.901 51.1245V51.1463ZM262.197 67.1773C257.725 63.295 252.227 61.3538 245.661 61.3538C239.094 61.3538 233.575 63.3168 229.059 67.2646C224.544 71.1905 221.926 76.207 221.184 82.2704H270.29C269.374 76.1198 266.669 71.1033 262.197 67.1991V67.1773Z", fill: "#ffffff" }),
|
|
30339
|
+
/* @__PURE__ */ jsx132("path", { d: "M379.584 51.2773C387.743 51.2773 394.157 53.9383 398.847 59.2383C403.537 64.5384 405.893 71.5178 405.893 80.1767V123.079H395.204V81.1364C395.204 75.1603 393.611 70.4055 390.448 66.8285C387.285 63.2733 382.944 61.4848 377.425 61.4848C371.905 61.4848 367.019 63.6659 363.288 68.0499C359.558 72.4121 357.704 77.9739 357.704 84.6698V123.057H347.014V81.1146C347.014 75.0512 345.422 70.231 342.258 66.6758C339.095 63.1206 334.798 61.3758 329.366 61.463C323.214 61.5503 318.349 64.1458 314.771 69.2059C311.215 74.266 309.427 80.0895 309.427 86.6764V123.057H298.803V52.9568H309.143V64.9091H309.427C311.695 60.8305 314.728 57.5371 318.524 55.0506C322.319 52.5424 326.704 51.2992 331.656 51.2992C337.066 51.2992 341.8 52.6514 345.814 55.3342C349.85 58.0169 352.861 61.7029 354.846 66.3705H355.129C357.398 61.8338 360.605 58.1914 364.772 55.4432C368.938 52.6951 373.869 51.321 379.562 51.321L379.584 51.2773Z", fill: "#ffffff" }),
|
|
30340
|
+
/* @__PURE__ */ jsx132("path", { d: "M465.362 51.1464C475.68 51.0591 484.232 54.5053 491.016 61.5284C497.801 68.5297 501.182 77.3849 501.182 88.094C501.182 98.8031 497.823 107.506 491.082 114.551C484.341 121.596 475.767 125.063 465.362 124.976C459.384 124.889 454.039 123.558 449.284 120.985C444.528 118.411 440.732 114.965 437.853 110.603H437.569V123.1H426.945V20.6548H437.569V66.065H437.853C440.667 61.5284 444.463 57.9078 449.24 55.2032C454.018 52.4987 459.384 51.1464 465.362 51.1464ZM463.9 114.681C471.775 114.681 478.167 112.13 483.097 107.004C488.028 101.878 490.493 95.5751 490.493 88.094C490.493 80.6129 488.028 74.2659 483.097 69.0967C478.167 63.9276 471.775 61.3539 463.9 61.3539C456.025 61.3539 449.785 63.9276 444.899 69.0967C440.012 74.2659 437.569 80.5911 437.569 88.094C437.569 95.5969 440.012 101.9 444.899 107.004C449.785 112.108 456.112 114.681 463.9 114.681Z", fill: "#ffffff" }),
|
|
30341
|
+
/* @__PURE__ */ jsx132("path", { d: "M577.993 65.52V52.9569H588.486V123.079H577.993V110.036H577.579C571.427 119.895 562.243 124.867 550.07 124.955C539.751 125.042 531.2 121.596 524.415 114.573C517.631 107.55 514.249 98.6943 514.249 87.9852C514.249 77.2761 517.609 68.4208 524.35 61.4632C531.091 54.5055 539.708 51.0594 550.223 51.1466C556.2 51.2339 561.545 52.5643 566.3 55.0944C571.056 57.6463 574.808 61.1142 577.579 65.52H577.993ZM551.684 114.682C559.363 114.682 565.668 112.086 570.598 106.873C575.528 101.661 577.993 95.3573 577.993 87.9634C577.993 80.5695 575.55 74.1571 570.663 69.0534C565.777 63.9496 559.45 61.3759 551.662 61.3759C543.874 61.3759 537.243 63.9278 532.312 69.0534C527.382 74.1789 524.917 80.4823 524.917 87.9634C524.917 95.4445 527.382 101.791 532.312 106.961C537.243 112.13 543.7 114.704 551.662 114.704L551.684 114.682Z", fill: "#ffffff" }),
|
|
30342
|
+
/* @__PURE__ */ jsx132("path", { d: "M646.275 52.9565H658.644V63.6439H645.86C638.443 63.6439 632.575 65.9122 628.255 70.4925C623.936 75.051 621.755 81.4415 621.755 89.6861V123.079H611.131V52.9565H621.471V66.9155H621.885C625.921 57.6023 634.037 52.9565 646.253 52.9565H646.275Z", fill: "#ffffff" }),
|
|
30343
|
+
/* @__PURE__ */ jsx132("path", { d: "M718.069 80.3075H718.898C724.221 80.3075 728.322 81.7034 731.223 84.4734C734.125 87.2434 735.564 91.3002 735.564 96.6221V123.079H724.875V98.0834C724.875 92.936 722.279 90.3842 717.087 90.3842H683.339V123.079H672.715V20.6548H683.339V80.3075H705.983L724.308 52.9567H736.11L718.047 80.3075H718.069Z", fill: "#ffffff" }),
|
|
30344
|
+
/* @__PURE__ */ jsx132("path", { d: "M845.644 123.078H833.427L821.473 95.3787H774.526L762.724 123.078H750.508L792.175 27.8086H803.846L845.644 123.078ZM797.869 40.7206L779.108 84.8004H816.891L797.869 40.7206Z", fill: "#ffffff" }),
|
|
30345
|
+
/* @__PURE__ */ jsx132("path", { d: "M862.114 123.078V27.8086H873.022V123.078H862.114Z", fill: "#ffffff" }),
|
|
30346
|
+
/* @__PURE__ */ jsx132("path", { d: "M78.0984 35.29H157.811C157.811 15.8129 142.017 0 122.514 0H42.8014C42.8014 19.4771 58.5956 35.29 78.0984 35.29Z", fill: "url(#paint0_radial_753_38)" }),
|
|
30347
|
+
/* @__PURE__ */ jsx132("path", { d: "M122.536 58.3442H43.434C43.434 38.8671 27.6398 23.0542 8.13706 23.0542H0V58.3442H42.8014C42.8014 77.8213 58.5956 93.6342 78.0984 93.6342H157.811C157.811 74.1571 142.017 58.3442 122.514 58.3442H122.536Z", fill: "url(#paint1_radial_753_38)" }),
|
|
30348
|
+
/* @__PURE__ */ jsx132("path", { d: "M122.536 116.71H43.4122C43.2159 97.4073 27.5089 81.8125 8.13706 81.8125H0V117.103H42.8232C43.0195 136.405 58.7265 152 78.0984 152H157.811C157.811 132.523 142.017 116.71 122.514 116.71H122.536Z", fill: "url(#paint2_radial_753_38)" })
|
|
30349
|
+
] }),
|
|
30350
|
+
/* @__PURE__ */ jsxs119("defs", { children: [
|
|
30351
|
+
/* @__PURE__ */ jsxs119("radialGradient", { id: "paint0_radial_753_38", cx: 0, cy: 0, r: 1, gradientUnits: "userSpaceOnUse", gradientTransform: "translate(155.237 -5.71446) scale(164.617 164.585)", children: [
|
|
30352
|
+
/* @__PURE__ */ jsx132("stop", { stopColor: "#CCFFF8" }),
|
|
30353
|
+
/* @__PURE__ */ jsx132("stop", { offset: 0.36, stopColor: "#0DE4B3" }),
|
|
30354
|
+
/* @__PURE__ */ jsx132("stop", { offset: 1, stopColor: "#D13AFF" })
|
|
30355
|
+
] }),
|
|
30356
|
+
/* @__PURE__ */ jsxs119("radialGradient", { id: "paint1_radial_753_38", cx: 0, cy: 0, r: 1, gradientUnits: "userSpaceOnUse", gradientTransform: "translate(145.158 -12.672) scale(185.429 185.392)", children: [
|
|
30357
|
+
/* @__PURE__ */ jsx132("stop", { stopColor: "#CCFFF8" }),
|
|
30358
|
+
/* @__PURE__ */ jsx132("stop", { offset: 0.36, stopColor: "#0DE4B3" }),
|
|
30359
|
+
/* @__PURE__ */ jsx132("stop", { offset: 1, stopColor: "#D13AFF" })
|
|
30360
|
+
] }),
|
|
30361
|
+
/* @__PURE__ */ jsxs119("radialGradient", { id: "paint2_radial_753_38", cx: 0, cy: 0, r: 1, gradientUnits: "userSpaceOnUse", gradientTransform: "translate(98.8446 35.3335) scale(138.221 138.194)", children: [
|
|
30362
|
+
/* @__PURE__ */ jsx132("stop", { stopColor: "#CCFFF8" }),
|
|
30363
|
+
/* @__PURE__ */ jsx132("stop", { offset: 0.36, stopColor: "#0DE4B3" }),
|
|
30364
|
+
/* @__PURE__ */ jsx132("stop", { offset: 1, stopColor: "#D13AFF" })
|
|
30365
|
+
] }),
|
|
30366
|
+
/* @__PURE__ */ jsx132("clipPath", { id: "clip0_753_38", children: /* @__PURE__ */ jsx132("rect", { width: 873, height: 152, fill: "white" }) })
|
|
30367
|
+
] })
|
|
30368
|
+
] });
|
|
30369
|
+
embark_ai_dark_default = SvgEmbarkAiDark;
|
|
30370
|
+
}
|
|
30371
|
+
});
|
|
30372
|
+
|
|
30373
|
+
// src/internal/assets/embark-ai-light.svg
|
|
30374
|
+
import * as React33 from "react";
|
|
30375
|
+
import { jsx as jsx133, jsxs as jsxs120 } from "react/jsx-runtime";
|
|
30376
|
+
var SvgEmbarkAiLight, embark_ai_light_default;
|
|
30377
|
+
var init_embark_ai_light = __esm({
|
|
30378
|
+
"src/internal/assets/embark-ai-light.svg"() {
|
|
30379
|
+
SvgEmbarkAiLight = (props) => /* @__PURE__ */ jsxs120("svg", { width: 873, height: 152, viewBox: "0 0 873 152", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
30380
|
+
/* @__PURE__ */ jsxs120("g", { clipPath: "url(#clip0_753_38)", children: [
|
|
30381
|
+
/* @__PURE__ */ jsx133("path", { d: "M245.901 51.1463C256.917 51.1463 265.796 54.985 272.537 62.6407C279.278 70.2963 282.288 80.0021 281.59 91.7582H220.901C221.359 98.2796 223.976 103.732 228.71 108.116C233.466 112.5 239.4 114.681 246.533 114.681C251.769 114.681 256.416 113.482 260.451 111.061C264.509 108.662 267.432 105.412 269.243 101.333H280.347C277.991 108.553 273.715 114.289 267.563 118.542C261.411 122.795 254.234 124.933 246.032 124.933C235.233 124.933 226.485 121.377 219.744 114.245C213.003 107.113 209.644 98.3887 209.644 88.0721C209.644 77.7556 213.069 69.0094 219.897 61.8555C226.725 54.7015 235.386 51.1245 245.901 51.1245V51.1463ZM262.197 67.1773C257.725 63.295 252.227 61.3538 245.661 61.3538C239.094 61.3538 233.575 63.3168 229.059 67.2646C224.544 71.1905 221.926 76.207 221.184 82.2704H270.29C269.374 76.1198 266.669 71.1033 262.197 67.1991V67.1773Z", fill: "#2B2959" }),
|
|
30382
|
+
/* @__PURE__ */ jsx133("path", { d: "M379.584 51.2773C387.743 51.2773 394.157 53.9383 398.847 59.2383C403.537 64.5384 405.893 71.5178 405.893 80.1767V123.079H395.204V81.1364C395.204 75.1603 393.611 70.4055 390.448 66.8285C387.285 63.2733 382.944 61.4848 377.425 61.4848C371.905 61.4848 367.019 63.6659 363.288 68.0499C359.558 72.4121 357.704 77.9739 357.704 84.6698V123.057H347.014V81.1146C347.014 75.0512 345.422 70.231 342.258 66.6758C339.095 63.1206 334.798 61.3758 329.366 61.463C323.214 61.5503 318.349 64.1458 314.771 69.2059C311.215 74.266 309.427 80.0895 309.427 86.6764V123.057H298.803V52.9568H309.143V64.9091H309.427C311.695 60.8305 314.728 57.5371 318.524 55.0506C322.319 52.5424 326.704 51.2992 331.656 51.2992C337.066 51.2992 341.8 52.6514 345.814 55.3342C349.85 58.0169 352.861 61.7029 354.846 66.3705H355.129C357.398 61.8338 360.605 58.1914 364.772 55.4432C368.938 52.6951 373.869 51.321 379.562 51.321L379.584 51.2773Z", fill: "#2B2959" }),
|
|
30383
|
+
/* @__PURE__ */ jsx133("path", { d: "M465.362 51.1464C475.68 51.0591 484.232 54.5053 491.016 61.5284C497.801 68.5297 501.182 77.3849 501.182 88.094C501.182 98.8031 497.823 107.506 491.082 114.551C484.341 121.596 475.767 125.063 465.362 124.976C459.384 124.889 454.039 123.558 449.284 120.985C444.528 118.411 440.732 114.965 437.853 110.603H437.569V123.1H426.945V20.6548H437.569V66.065H437.853C440.667 61.5284 444.463 57.9078 449.24 55.2032C454.018 52.4987 459.384 51.1464 465.362 51.1464ZM463.9 114.681C471.775 114.681 478.167 112.13 483.097 107.004C488.028 101.878 490.493 95.5751 490.493 88.094C490.493 80.6129 488.028 74.2659 483.097 69.0967C478.167 63.9276 471.775 61.3539 463.9 61.3539C456.025 61.3539 449.785 63.9276 444.899 69.0967C440.012 74.2659 437.569 80.5911 437.569 88.094C437.569 95.5969 440.012 101.9 444.899 107.004C449.785 112.108 456.112 114.681 463.9 114.681Z", fill: "#2B2959" }),
|
|
30384
|
+
/* @__PURE__ */ jsx133("path", { d: "M577.993 65.52V52.9569H588.486V123.079H577.993V110.036H577.579C571.427 119.895 562.243 124.867 550.07 124.955C539.751 125.042 531.2 121.596 524.415 114.573C517.631 107.55 514.249 98.6943 514.249 87.9852C514.249 77.2761 517.609 68.4208 524.35 61.4632C531.091 54.5055 539.708 51.0594 550.223 51.1466C556.2 51.2339 561.545 52.5643 566.3 55.0944C571.056 57.6463 574.808 61.1142 577.579 65.52H577.993ZM551.684 114.682C559.363 114.682 565.668 112.086 570.598 106.873C575.528 101.661 577.993 95.3573 577.993 87.9634C577.993 80.5695 575.55 74.1571 570.663 69.0534C565.777 63.9496 559.45 61.3759 551.662 61.3759C543.874 61.3759 537.243 63.9278 532.312 69.0534C527.382 74.1789 524.917 80.4823 524.917 87.9634C524.917 95.4445 527.382 101.791 532.312 106.961C537.243 112.13 543.7 114.704 551.662 114.704L551.684 114.682Z", fill: "#2B2959" }),
|
|
30385
|
+
/* @__PURE__ */ jsx133("path", { d: "M646.275 52.9565H658.644V63.6439H645.86C638.443 63.6439 632.575 65.9122 628.255 70.4925C623.936 75.051 621.755 81.4415 621.755 89.6861V123.079H611.131V52.9565H621.471V66.9155H621.885C625.921 57.6023 634.037 52.9565 646.253 52.9565H646.275Z", fill: "#2B2959" }),
|
|
30386
|
+
/* @__PURE__ */ jsx133("path", { d: "M718.069 80.3075H718.898C724.221 80.3075 728.322 81.7034 731.223 84.4734C734.125 87.2434 735.564 91.3002 735.564 96.6221V123.079H724.875V98.0834C724.875 92.936 722.279 90.3842 717.087 90.3842H683.339V123.079H672.715V20.6548H683.339V80.3075H705.983L724.308 52.9567H736.11L718.047 80.3075H718.069Z", fill: "#2B2959" }),
|
|
30387
|
+
/* @__PURE__ */ jsx133("path", { d: "M845.644 123.078H833.427L821.473 95.3787H774.526L762.724 123.078H750.508L792.175 27.8086H803.846L845.644 123.078ZM797.869 40.7206L779.108 84.8004H816.891L797.869 40.7206Z", fill: "#2B2959" }),
|
|
30388
|
+
/* @__PURE__ */ jsx133("path", { d: "M862.114 123.078V27.8086H873.022V123.078H862.114Z", fill: "#2B2959" }),
|
|
30389
|
+
/* @__PURE__ */ jsx133("path", { d: "M78.0984 35.29H157.811C157.811 15.8129 142.017 0 122.514 0H42.8014C42.8014 19.4771 58.5956 35.29 78.0984 35.29Z", fill: "url(#paint0_radial_753_38)" }),
|
|
30390
|
+
/* @__PURE__ */ jsx133("path", { d: "M122.536 58.3442H43.434C43.434 38.8671 27.6398 23.0542 8.13706 23.0542H0V58.3442H42.8014C42.8014 77.8213 58.5956 93.6342 78.0984 93.6342H157.811C157.811 74.1571 142.017 58.3442 122.514 58.3442H122.536Z", fill: "url(#paint1_radial_753_38)" }),
|
|
30391
|
+
/* @__PURE__ */ jsx133("path", { d: "M122.536 116.71H43.4122C43.2159 97.4073 27.5089 81.8125 8.13706 81.8125H0V117.103H42.8232C43.0195 136.405 58.7265 152 78.0984 152H157.811C157.811 132.523 142.017 116.71 122.514 116.71H122.536Z", fill: "url(#paint2_radial_753_38)" })
|
|
30392
|
+
] }),
|
|
30393
|
+
/* @__PURE__ */ jsxs120("defs", { children: [
|
|
30394
|
+
/* @__PURE__ */ jsxs120("radialGradient", { id: "paint0_radial_753_38", cx: 0, cy: 0, r: 1, gradientUnits: "userSpaceOnUse", gradientTransform: "translate(155.237 -5.71446) scale(164.617 164.585)", children: [
|
|
30395
|
+
/* @__PURE__ */ jsx133("stop", { stopColor: "#CCFFF8" }),
|
|
30396
|
+
/* @__PURE__ */ jsx133("stop", { offset: 0.36, stopColor: "#0DE4B3" }),
|
|
30397
|
+
/* @__PURE__ */ jsx133("stop", { offset: 1, stopColor: "#D13AFF" })
|
|
30398
|
+
] }),
|
|
30399
|
+
/* @__PURE__ */ jsxs120("radialGradient", { id: "paint1_radial_753_38", cx: 0, cy: 0, r: 1, gradientUnits: "userSpaceOnUse", gradientTransform: "translate(145.158 -12.672) scale(185.429 185.392)", children: [
|
|
30400
|
+
/* @__PURE__ */ jsx133("stop", { stopColor: "#CCFFF8" }),
|
|
30401
|
+
/* @__PURE__ */ jsx133("stop", { offset: 0.36, stopColor: "#0DE4B3" }),
|
|
30402
|
+
/* @__PURE__ */ jsx133("stop", { offset: 1, stopColor: "#D13AFF" })
|
|
30403
|
+
] }),
|
|
30404
|
+
/* @__PURE__ */ jsxs120("radialGradient", { id: "paint2_radial_753_38", cx: 0, cy: 0, r: 1, gradientUnits: "userSpaceOnUse", gradientTransform: "translate(98.8446 35.3335) scale(138.221 138.194)", children: [
|
|
30405
|
+
/* @__PURE__ */ jsx133("stop", { stopColor: "#CCFFF8" }),
|
|
30406
|
+
/* @__PURE__ */ jsx133("stop", { offset: 0.36, stopColor: "#0DE4B3" }),
|
|
30407
|
+
/* @__PURE__ */ jsx133("stop", { offset: 1, stopColor: "#D13AFF" })
|
|
30408
|
+
] }),
|
|
30409
|
+
/* @__PURE__ */ jsx133("clipPath", { id: "clip0_753_38", children: /* @__PURE__ */ jsx133("rect", { width: 873, height: 152, fill: "white" }) })
|
|
30410
|
+
] })
|
|
30411
|
+
] });
|
|
30412
|
+
embark_ai_light_default = SvgEmbarkAiLight;
|
|
30413
|
+
}
|
|
30414
|
+
});
|
|
30415
|
+
|
|
30330
30416
|
// package.json
|
|
30331
30417
|
var package_default;
|
|
30332
30418
|
var init_package = __esm({
|
|
30333
30419
|
"package.json"() {
|
|
30334
30420
|
package_default = {
|
|
30335
30421
|
name: "@embarkai/ui-kit",
|
|
30336
|
-
version: "0.4.
|
|
30422
|
+
version: "0.4.124",
|
|
30337
30423
|
description: "React UI components and hooks for EmbarkAI authentication and Account Abstraction",
|
|
30338
30424
|
type: "module",
|
|
30339
30425
|
main: "./dist/index.cjs",
|
|
@@ -30439,7 +30525,7 @@ var init_package = __esm({
|
|
|
30439
30525
|
// src/internal/components/Footer/Footer.tsx
|
|
30440
30526
|
import { useMutation as useMutation22, useQueryClient as useQueryClient29 } from "@tanstack/react-query";
|
|
30441
30527
|
import { Loader as Loader30, LogOut } from "lucide-react";
|
|
30442
|
-
import { jsx as
|
|
30528
|
+
import { jsx as jsx134, jsxs as jsxs121 } from "react/jsx-runtime";
|
|
30443
30529
|
function Footer() {
|
|
30444
30530
|
const qc = useQueryClient29();
|
|
30445
30531
|
const { callbacksRef, config } = useProviderConfig();
|
|
@@ -30447,6 +30533,7 @@ function Footer() {
|
|
|
30447
30533
|
const address = useSession((st) => st.address);
|
|
30448
30534
|
const chainConfig = useSession((st) => st.chainConfig);
|
|
30449
30535
|
const isDialogForced = useLayoutStore((st) => st.isDialogForced);
|
|
30536
|
+
const colorMode = useLayoutStore((st) => st.colorMode);
|
|
30450
30537
|
const { mutate: wagmiDisconnect } = useSafeDisconnect({
|
|
30451
30538
|
mutation: {
|
|
30452
30539
|
onSuccess: () => {
|
|
@@ -30494,15 +30581,16 @@ function Footer() {
|
|
|
30494
30581
|
useLayoutStore.getState().setIsDialogForced(false);
|
|
30495
30582
|
}
|
|
30496
30583
|
});
|
|
30497
|
-
const ChainIcon = NETWORK_OPTIONS.find((net) => net.chainId === chainConfig.id)?.Icon || (() => /* @__PURE__ */
|
|
30498
|
-
|
|
30584
|
+
const ChainIcon = NETWORK_OPTIONS.find((net) => net.chainId === chainConfig.id)?.Icon || (() => /* @__PURE__ */ jsx134("div", { className: "flex-none w-4 h-4 rounded-full flex items-center justify-center bg-[var(--ui-kit-primary)]", children: /* @__PURE__ */ jsx134("span", { className: "text-[var(--ui-kit-fg-inverted)] text-xs font-bold", children: chainConfig.name.charAt(0) }) }));
|
|
30585
|
+
const EmbarkAiLogo = EMBARKAI_LOGOS[colorMode];
|
|
30586
|
+
return /* @__PURE__ */ jsxs121(
|
|
30499
30587
|
"div",
|
|
30500
30588
|
{
|
|
30501
30589
|
style: { borderTop: "1px solid var(--ui-kit-bd)" },
|
|
30502
30590
|
className: "relative w-full flex flex-col items-center p-[var(--ui-kit-pd)] pb-5",
|
|
30503
30591
|
children: [
|
|
30504
|
-
/* @__PURE__ */
|
|
30505
|
-
/* @__PURE__ */
|
|
30592
|
+
/* @__PURE__ */ jsxs121("div", { className: cn2("w-full flex justify-between", !!address ? "justify-between" : "justify-center"), children: [
|
|
30593
|
+
/* @__PURE__ */ jsxs121(
|
|
30506
30594
|
Button,
|
|
30507
30595
|
{
|
|
30508
30596
|
ref: (inst) => onboarder.registerElement(FOOTER_ONBOARDING_CHAIN_BUTTON, inst),
|
|
@@ -30518,12 +30606,12 @@ function Footer() {
|
|
|
30518
30606
|
useLayoutDataStore.getState().setPage("chain" /* CHAIN */);
|
|
30519
30607
|
},
|
|
30520
30608
|
children: [
|
|
30521
|
-
/* @__PURE__ */
|
|
30522
|
-
/* @__PURE__ */
|
|
30609
|
+
/* @__PURE__ */ jsx134(ChainIcon, { className: "flex-none w-6 h-6" }),
|
|
30610
|
+
/* @__PURE__ */ jsx134("span", { className: "text-xs font-bold", children: chainConfig.name || "EmbarkAI Wallet" })
|
|
30523
30611
|
]
|
|
30524
30612
|
}
|
|
30525
30613
|
),
|
|
30526
|
-
!!address ? /* @__PURE__ */
|
|
30614
|
+
!!address ? /* @__PURE__ */ jsxs121(
|
|
30527
30615
|
Button,
|
|
30528
30616
|
{
|
|
30529
30617
|
ref: (inst) => onboarder.registerElement(FOOTER_ONBOARDING_LOGOUT_BUTTON, inst),
|
|
@@ -30533,29 +30621,36 @@ function Footer() {
|
|
|
30533
30621
|
onClick: () => disconnect(address),
|
|
30534
30622
|
disabled: isDisconnecting || isDialogForced,
|
|
30535
30623
|
children: [
|
|
30536
|
-
/* @__PURE__ */
|
|
30537
|
-
isDisconnecting ? /* @__PURE__ */
|
|
30624
|
+
/* @__PURE__ */ jsx134("span", { children: t("passport:auth.logout") }),
|
|
30625
|
+
isDisconnecting ? /* @__PURE__ */ jsx134(Loader30, { className: "w-4 h-4 animate-spin" }) : /* @__PURE__ */ jsx134(LogOut, { className: "w-4 h-4" })
|
|
30538
30626
|
]
|
|
30539
30627
|
}
|
|
30540
30628
|
) : null
|
|
30541
30629
|
] }),
|
|
30542
|
-
/* @__PURE__ */
|
|
30543
|
-
"
|
|
30630
|
+
/* @__PURE__ */ jsxs121(
|
|
30631
|
+
"div",
|
|
30544
30632
|
{
|
|
30545
30633
|
className: cn2(
|
|
30546
|
-
"
|
|
30547
|
-
"
|
|
30634
|
+
"flex items-center gap-1 w-fit h-5",
|
|
30635
|
+
"absolute bottom-0 left-1/2 -translate-x-1/2",
|
|
30636
|
+
"opacity-60"
|
|
30637
|
+
// 'text-[var(--ui-kit-fg-muted)]'
|
|
30548
30638
|
),
|
|
30549
|
-
children:
|
|
30639
|
+
children: [
|
|
30640
|
+
/* @__PURE__ */ jsx134(EmbarkAiLogo, { className: "h-2.5 w-auto" }),
|
|
30641
|
+
/* @__PURE__ */ jsx134("span", { className: "block font-mono text-[8px] leading-3 ", children: `${package_default.version}` })
|
|
30642
|
+
]
|
|
30550
30643
|
}
|
|
30551
30644
|
)
|
|
30552
30645
|
]
|
|
30553
30646
|
}
|
|
30554
30647
|
);
|
|
30555
30648
|
}
|
|
30556
|
-
var FOOTER_ONBOARDING_CHAIN_BUTTON, FOOTER_ONBOARDING_LOGOUT_BUTTON, FOOTER_TOUR;
|
|
30649
|
+
var FOOTER_ONBOARDING_CHAIN_BUTTON, FOOTER_ONBOARDING_LOGOUT_BUTTON, EMBARKAI_LOGOS, FOOTER_TOUR;
|
|
30557
30650
|
var init_Footer = __esm({
|
|
30558
30651
|
"src/internal/components/Footer/Footer.tsx"() {
|
|
30652
|
+
init_embark_ai_dark();
|
|
30653
|
+
init_embark_ai_light();
|
|
30559
30654
|
init_package();
|
|
30560
30655
|
init_networks3();
|
|
30561
30656
|
init_ProviderContext();
|
|
@@ -30573,6 +30668,10 @@ var init_Footer = __esm({
|
|
|
30573
30668
|
init_button();
|
|
30574
30669
|
FOOTER_ONBOARDING_CHAIN_BUTTON = "embark-footer-chain-button";
|
|
30575
30670
|
FOOTER_ONBOARDING_LOGOUT_BUTTON = "embark-footer-logout-button";
|
|
30671
|
+
EMBARKAI_LOGOS = {
|
|
30672
|
+
dark: embark_ai_dark_default,
|
|
30673
|
+
light: embark_ai_light_default
|
|
30674
|
+
};
|
|
30576
30675
|
FOOTER_TOUR = [
|
|
30577
30676
|
{
|
|
30578
30677
|
elId: FOOTER_ONBOARDING_CHAIN_BUTTON,
|
|
@@ -30661,7 +30760,7 @@ var init_onborading_setup = __esm({
|
|
|
30661
30760
|
// src/internal/components/Header/Header.tsx
|
|
30662
30761
|
import { CircleQuestionMarkIcon, Copy as Copy4, Loader as Loader31 } from "lucide-react";
|
|
30663
30762
|
import { useCallback as useCallback34, useRef as useRef21, useState as useState33 } from "react";
|
|
30664
|
-
import { Fragment as Fragment46, jsx as
|
|
30763
|
+
import { Fragment as Fragment46, jsx as jsx135, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
30665
30764
|
function formatAddress3(addr) {
|
|
30666
30765
|
if (!addr) return "";
|
|
30667
30766
|
return `${addr.slice(0, 10)}...${addr.slice(-4)}`;
|
|
@@ -30699,35 +30798,35 @@ function Header() {
|
|
|
30699
30798
|
const avatar = profile?.avatar || jwtTokenManager2.getAvatar();
|
|
30700
30799
|
const displayName = profile?.nicknameDisplay || profile?.displayName || jwtTokenManager2.getDisplayName();
|
|
30701
30800
|
const ChainIcon = NETWORK_OPTIONS.find((net) => net.chainId === chainConfig.id)?.Icon || null;
|
|
30702
|
-
return /* @__PURE__ */
|
|
30801
|
+
return /* @__PURE__ */ jsxs122(
|
|
30703
30802
|
"div",
|
|
30704
30803
|
{
|
|
30705
30804
|
ref: (inst) => onboarder.registerElement(EMBARKAI_HEADER_ONBOARDING_ID, inst),
|
|
30706
30805
|
style: { borderBottom: "1px solid var(--ui-kit-bd)" },
|
|
30707
30806
|
className: "w-full flex flex-col gap-[var(--ui-kit-gap)] p-[var(--ui-kit-pd)] pt-5",
|
|
30708
30807
|
children: [
|
|
30709
|
-
/* @__PURE__ */
|
|
30710
|
-
/* @__PURE__ */
|
|
30808
|
+
/* @__PURE__ */ jsxs122("div", { className: "w-full flex items-center gap-[var(--ui-kit-gap)]", children: [
|
|
30809
|
+
/* @__PURE__ */ jsxs122(
|
|
30711
30810
|
"div",
|
|
30712
30811
|
{
|
|
30713
30812
|
className: "relative flex-none w-12 h-12 flex items-center justify-center cursor-pointer select-none",
|
|
30714
30813
|
onClick: handleAvatarClick,
|
|
30715
30814
|
children: [
|
|
30716
|
-
proMode && /* @__PURE__ */
|
|
30717
|
-
avatar ? /* @__PURE__ */
|
|
30815
|
+
proMode && /* @__PURE__ */ jsx135("span", { className: "absolute -top-1 -right-1 text-[8px] font-bold px-1 rounded bg-[var(--ui-kit-primary)] text-[var(--ui-kit-fg-inverted)] leading-3", children: "PRO" }),
|
|
30816
|
+
avatar ? /* @__PURE__ */ jsx135("img", { src: avatar, alt: displayName, className: "w-full h-full object-cover rounded-full" }) : /* @__PURE__ */ jsx135(lumia_default2, { className: "w-12 h-12" })
|
|
30718
30817
|
]
|
|
30719
30818
|
}
|
|
30720
30819
|
),
|
|
30721
|
-
/* @__PURE__ */
|
|
30820
|
+
/* @__PURE__ */ jsxs122(
|
|
30722
30821
|
"div",
|
|
30723
30822
|
{
|
|
30724
30823
|
style: { width: "calc(100% - 48px - var(--ui-kit-gap))" },
|
|
30725
30824
|
className: "flex-1 flex flex-col justify-center gap-1",
|
|
30726
30825
|
children: [
|
|
30727
|
-
isProfileLoading && /* @__PURE__ */
|
|
30728
|
-
!!address && !isProfileLoading && !!profile && /* @__PURE__ */
|
|
30729
|
-
/* @__PURE__ */
|
|
30730
|
-
/* @__PURE__ */
|
|
30826
|
+
isProfileLoading && /* @__PURE__ */ jsx135(Loader31, { className: "w-4 h-4 animate-spin" }),
|
|
30827
|
+
!!address && !isProfileLoading && !!profile && /* @__PURE__ */ jsxs122(Fragment46, { children: [
|
|
30828
|
+
/* @__PURE__ */ jsxs122("div", { className: "w-full flex items-center gap-[var(--ui-kit-gap)]", children: [
|
|
30829
|
+
/* @__PURE__ */ jsx135(
|
|
30731
30830
|
"span",
|
|
30732
30831
|
{
|
|
30733
30832
|
className: cn2(
|
|
@@ -30737,21 +30836,21 @@ function Header() {
|
|
|
30737
30836
|
children: displayName || config.current?.ui?.title || "EmbarkAI"
|
|
30738
30837
|
}
|
|
30739
30838
|
),
|
|
30740
|
-
/* @__PURE__ */
|
|
30839
|
+
/* @__PURE__ */ jsx135(KYCStatus, {})
|
|
30741
30840
|
] }),
|
|
30742
|
-
/* @__PURE__ */
|
|
30841
|
+
/* @__PURE__ */ jsx135(BalanceView, {})
|
|
30743
30842
|
] })
|
|
30744
30843
|
]
|
|
30745
30844
|
}
|
|
30746
30845
|
)
|
|
30747
30846
|
] }),
|
|
30748
|
-
!!address && /* @__PURE__ */
|
|
30749
|
-
/* @__PURE__ */
|
|
30750
|
-
!!ChainIcon ? /* @__PURE__ */
|
|
30751
|
-
/* @__PURE__ */
|
|
30847
|
+
!!address && /* @__PURE__ */ jsxs122("div", { className: "w-full flex items-center justify-between gap-[var(--ui-kit-gap)]", children: [
|
|
30848
|
+
/* @__PURE__ */ jsxs122("div", { className: "flex items-center w-fit text-[10px] px-2 leading-6 text-[var(--ui-kit-fg)] gap-2", children: [
|
|
30849
|
+
!!ChainIcon ? /* @__PURE__ */ jsx135(ChainIcon, { className: "flex-none w-6 h-6" }) : /* @__PURE__ */ jsx135("div", { className: "flex-none w-6 h-6 rounded-full flex items-center justify-center bg-[var(--ui-kit-primary)]", children: /* @__PURE__ */ jsx135("span", { className: "text-[var(--ui-kit-fg-inverted)] text-sm font-bold", children: chainConfig.name.charAt(0) }) }),
|
|
30850
|
+
/* @__PURE__ */ jsx135("span", { className: cn2("transition-colors", copied && "text-[var(--ui-kit-bg-success)]"), children: formatAddress3(address) })
|
|
30752
30851
|
] }),
|
|
30753
|
-
/* @__PURE__ */
|
|
30754
|
-
/* @__PURE__ */
|
|
30852
|
+
/* @__PURE__ */ jsxs122("div", { className: "w-fit flex items-center", children: [
|
|
30853
|
+
/* @__PURE__ */ jsx135(
|
|
30755
30854
|
Button,
|
|
30756
30855
|
{
|
|
30757
30856
|
size: "small",
|
|
@@ -30762,10 +30861,10 @@ function Header() {
|
|
|
30762
30861
|
setCopied(true);
|
|
30763
30862
|
setTimeout(() => setCopied(false), 1500);
|
|
30764
30863
|
},
|
|
30765
|
-
children: copied ? /* @__PURE__ */
|
|
30864
|
+
children: copied ? /* @__PURE__ */ jsx135(PositiveIcon, {}) : /* @__PURE__ */ jsx135(Copy4, { className: "w-4 h-4" })
|
|
30766
30865
|
}
|
|
30767
30866
|
),
|
|
30768
|
-
!!isOnboardingTourAvailable && ONBOARDING_TOURS[embarkPage] && /* @__PURE__ */
|
|
30867
|
+
!!isOnboardingTourAvailable && ONBOARDING_TOURS[embarkPage] && /* @__PURE__ */ jsx135(
|
|
30769
30868
|
Button,
|
|
30770
30869
|
{
|
|
30771
30870
|
ref: (inst) => onboarder.registerElement(EMBARKAI_HEADER_TOUR_BUTTON_ID, inst),
|
|
@@ -30773,12 +30872,12 @@ function Header() {
|
|
|
30773
30872
|
variant: "ghost",
|
|
30774
30873
|
className: "text-[10px] px-2",
|
|
30775
30874
|
onClick: () => onboarder.startTour(ONBOARDING_TOURS[embarkPage]({ config: config.current })),
|
|
30776
|
-
children: /* @__PURE__ */
|
|
30875
|
+
children: /* @__PURE__ */ jsx135(CircleQuestionMarkIcon, { className: "w-4 h-4" })
|
|
30777
30876
|
}
|
|
30778
30877
|
)
|
|
30779
30878
|
] })
|
|
30780
30879
|
] }),
|
|
30781
|
-
proToast && /* @__PURE__ */
|
|
30880
|
+
proToast && /* @__PURE__ */ jsx135("div", { className: "text-xs text-center text-[var(--ui-kit-primary)] font-medium animate-pulse", children: "Pro Mode activated" })
|
|
30782
30881
|
]
|
|
30783
30882
|
}
|
|
30784
30883
|
);
|
|
@@ -30816,7 +30915,7 @@ import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
|
30816
30915
|
import { merge as merge2 } from "lodash-es";
|
|
30817
30916
|
import { ArrowLeft as ArrowLeft25, SlidersHorizontal, X } from "lucide-react";
|
|
30818
30917
|
import { forwardRef as forwardRef6 } from "react";
|
|
30819
|
-
import { jsx as
|
|
30918
|
+
import { jsx as jsx136, jsxs as jsxs123 } from "react/jsx-runtime";
|
|
30820
30919
|
function useDecideContentStyles() {
|
|
30821
30920
|
const isMobileView = useLayoutStore((st) => st.isMobileView);
|
|
30822
30921
|
const isClosing = useLayoutStore((st) => !!st.isDialogOpen && !!st.isDialogAnimating);
|
|
@@ -30839,7 +30938,7 @@ var init_dialog = __esm({
|
|
|
30839
30938
|
Dialog = DialogPrimitive.Root;
|
|
30840
30939
|
DialogPortal = DialogPrimitive.Portal;
|
|
30841
30940
|
DialogOverlay = forwardRef6(
|
|
30842
|
-
({ className, closing, ...props }, ref) => /* @__PURE__ */
|
|
30941
|
+
({ className, closing, ...props }, ref) => /* @__PURE__ */ jsx136(
|
|
30843
30942
|
DialogPrimitive.Overlay,
|
|
30844
30943
|
{
|
|
30845
30944
|
ref,
|
|
@@ -30871,7 +30970,7 @@ var init_dialog = __esm({
|
|
|
30871
30970
|
const { isMobileView, isClosing, style } = useDecideContentStyles();
|
|
30872
30971
|
const animationCnPrefix = isMobileView ? "animate-mobile-dialog" : "animate-dialog";
|
|
30873
30972
|
const dialogAnimationCn = isClosing ? `${animationCnPrefix}-out` : `${animationCnPrefix}-in`;
|
|
30874
|
-
return /* @__PURE__ */
|
|
30973
|
+
return /* @__PURE__ */ jsx136(DialogPortal, { children: /* @__PURE__ */ jsxs123(
|
|
30875
30974
|
"div",
|
|
30876
30975
|
{
|
|
30877
30976
|
"data-purpose": "embarkai-ui-container",
|
|
@@ -30879,8 +30978,8 @@ var init_dialog = __esm({
|
|
|
30879
30978
|
"data-current-theme-mode": colorMode,
|
|
30880
30979
|
style: { ...style, outline: "none" },
|
|
30881
30980
|
children: [
|
|
30882
|
-
/* @__PURE__ */
|
|
30883
|
-
/* @__PURE__ */
|
|
30981
|
+
/* @__PURE__ */ jsx136(DialogOverlay, { closing: isClosing }),
|
|
30982
|
+
/* @__PURE__ */ jsx136(
|
|
30884
30983
|
"div",
|
|
30885
30984
|
{
|
|
30886
30985
|
className: cn2(
|
|
@@ -30892,7 +30991,7 @@ var init_dialog = __esm({
|
|
|
30892
30991
|
// allows to embuff embark content menu via --ui-kit-content-maw
|
|
30893
30992
|
isMobileView ? "items-end w-[100dvw] h-[100dvh]" : "items-center w-[var(--ui-kit-content-maw,var(--ui-kit-maw))] mx-auto"
|
|
30894
30993
|
),
|
|
30895
|
-
children: /* @__PURE__ */
|
|
30994
|
+
children: /* @__PURE__ */ jsxs123(
|
|
30896
30995
|
DialogPrimitive.Content,
|
|
30897
30996
|
{
|
|
30898
30997
|
ref,
|
|
@@ -30909,7 +31008,7 @@ var init_dialog = __esm({
|
|
|
30909
31008
|
...props,
|
|
30910
31009
|
children: [
|
|
30911
31010
|
children,
|
|
30912
|
-
!isDialogForced && /* @__PURE__ */
|
|
31011
|
+
!isDialogForced && /* @__PURE__ */ jsxs123(
|
|
30913
31012
|
"div",
|
|
30914
31013
|
{
|
|
30915
31014
|
className: cn2(
|
|
@@ -30917,7 +31016,7 @@ var init_dialog = __esm({
|
|
|
30917
31016
|
"absolute right-[var(--ui-kit-pd)] top-[var(--ui-kit-pd)]"
|
|
30918
31017
|
),
|
|
30919
31018
|
children: [
|
|
30920
|
-
!isSessionLoading && /* @__PURE__ */
|
|
31019
|
+
!isSessionLoading && /* @__PURE__ */ jsxs123(
|
|
30921
31020
|
Button,
|
|
30922
31021
|
{
|
|
30923
31022
|
variant: "ghost",
|
|
@@ -30925,12 +31024,12 @@ var init_dialog = __esm({
|
|
|
30925
31024
|
className: "relative w-4 h-4",
|
|
30926
31025
|
onClick: () => setPage("languages" /* LANGUAGES */),
|
|
30927
31026
|
children: [
|
|
30928
|
-
/* @__PURE__ */
|
|
30929
|
-
/* @__PURE__ */
|
|
31027
|
+
/* @__PURE__ */ jsx136("span", { className: "sr-only", children: t("passport:common.language") }),
|
|
31028
|
+
/* @__PURE__ */ jsx136("span", { className: "w-4 h-4 leading-4 block text-[10px] font-bold", children: getLanguageIcon(i18n.resolvedLanguage) || i18n.resolvedLanguage?.toUpperCase() })
|
|
30930
31029
|
]
|
|
30931
31030
|
}
|
|
30932
31031
|
),
|
|
30933
|
-
isSettings && /* @__PURE__ */
|
|
31032
|
+
isSettings && /* @__PURE__ */ jsxs123(
|
|
30934
31033
|
Button,
|
|
30935
31034
|
{
|
|
30936
31035
|
variant: "ghost",
|
|
@@ -30938,9 +31037,9 @@ var init_dialog = __esm({
|
|
|
30938
31037
|
className: "relative w-4 h-4",
|
|
30939
31038
|
onClick: () => setPage("settings" /* SETTINGS */),
|
|
30940
31039
|
children: [
|
|
30941
|
-
/* @__PURE__ */
|
|
30942
|
-
/* @__PURE__ */
|
|
30943
|
-
!!settingsNotifications.length && /* @__PURE__ */
|
|
31040
|
+
/* @__PURE__ */ jsx136("span", { className: "sr-only", children: t("passport:common.settings") }),
|
|
31041
|
+
/* @__PURE__ */ jsx136(SlidersHorizontal, { className: "w-4 h-4" }),
|
|
31042
|
+
!!settingsNotifications.length && /* @__PURE__ */ jsx136(
|
|
30944
31043
|
"div",
|
|
30945
31044
|
{
|
|
30946
31045
|
className: cn2(
|
|
@@ -30954,9 +31053,9 @@ var init_dialog = __esm({
|
|
|
30954
31053
|
]
|
|
30955
31054
|
}
|
|
30956
31055
|
),
|
|
30957
|
-
/* @__PURE__ */
|
|
30958
|
-
/* @__PURE__ */
|
|
30959
|
-
/* @__PURE__ */
|
|
31056
|
+
/* @__PURE__ */ jsx136(DialogPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsxs123(Button, { variant: "ghost", size: "icon", className: "w-4 h-4", children: [
|
|
31057
|
+
/* @__PURE__ */ jsx136(X, { className: "h-4 w-4" }),
|
|
31058
|
+
/* @__PURE__ */ jsx136("span", { className: "sr-only", children: t("passport:common.close") })
|
|
30960
31059
|
] }) })
|
|
30961
31060
|
]
|
|
30962
31061
|
}
|
|
@@ -30972,11 +31071,11 @@ var init_dialog = __esm({
|
|
|
30972
31071
|
}
|
|
30973
31072
|
);
|
|
30974
31073
|
DialogContent.displayName = DialogPrimitive.Content.displayName;
|
|
30975
|
-
DialogHeader = ({ className, ...props }) => /* @__PURE__ */
|
|
31074
|
+
DialogHeader = ({ className, ...props }) => /* @__PURE__ */ jsx136("div", { className: cn2("flex flex-col space-y-1.5 text-center sm:text-left", className), ...props });
|
|
30976
31075
|
DialogHeader.displayName = "DialogHeader";
|
|
30977
|
-
DialogFooter = ({ className, ...props }) => /* @__PURE__ */
|
|
31076
|
+
DialogFooter = ({ className, ...props }) => /* @__PURE__ */ jsx136("div", { className: cn2("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", className), ...props });
|
|
30978
31077
|
DialogFooter.displayName = "DialogFooter";
|
|
30979
|
-
DialogTitle = forwardRef6(({ className, ...props }, ref) => /* @__PURE__ */
|
|
31078
|
+
DialogTitle = forwardRef6(({ className, ...props }, ref) => /* @__PURE__ */ jsx136(
|
|
30980
31079
|
DialogPrimitive.Title,
|
|
30981
31080
|
{
|
|
30982
31081
|
ref,
|
|
@@ -30985,24 +31084,24 @@ var init_dialog = __esm({
|
|
|
30985
31084
|
}
|
|
30986
31085
|
));
|
|
30987
31086
|
DialogTitle.displayName = DialogPrimitive.Title.displayName;
|
|
30988
|
-
DialogDescription = forwardRef6(({ className, ...props }, ref) => /* @__PURE__ */
|
|
31087
|
+
DialogDescription = forwardRef6(({ className, ...props }, ref) => /* @__PURE__ */ jsx136(DialogPrimitive.Description, { ref, className: cn2("text-sm text-muted-foreground", className), ...props }));
|
|
30989
31088
|
DialogDescription.displayName = DialogPrimitive.Description.displayName;
|
|
30990
31089
|
}
|
|
30991
31090
|
});
|
|
30992
31091
|
|
|
30993
31092
|
// src/internal/components/ui/visually-hidden.tsx
|
|
30994
|
-
import { jsx as
|
|
31093
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
30995
31094
|
var VisuallyHidden;
|
|
30996
31095
|
var init_visually_hidden = __esm({
|
|
30997
31096
|
"src/internal/components/ui/visually-hidden.tsx"() {
|
|
30998
|
-
VisuallyHidden = ({ children }) => /* @__PURE__ */
|
|
31097
|
+
VisuallyHidden = ({ children }) => /* @__PURE__ */ jsx137("span", { className: "sr-only absolute w-px h-px p-0 -m-px overflow-hidden whitespace-nowrap border-0", children });
|
|
30999
31098
|
}
|
|
31000
31099
|
});
|
|
31001
31100
|
|
|
31002
31101
|
// src/internal/components/Dialog/Dialog.tsx
|
|
31003
31102
|
import { AnimatePresence, motion } from "motion/react";
|
|
31004
31103
|
import { useEffect as useEffect56 } from "react";
|
|
31005
|
-
import { jsx as
|
|
31104
|
+
import { jsx as jsx138, jsxs as jsxs124 } from "react/jsx-runtime";
|
|
31006
31105
|
function Dialog2() {
|
|
31007
31106
|
const config = useProviderConfig().config;
|
|
31008
31107
|
const className = config.current?.ui?.dialogClassName;
|
|
@@ -31020,7 +31119,7 @@ function Dialog2() {
|
|
|
31020
31119
|
useListenIframeAuthEvents();
|
|
31021
31120
|
useAllowExternalModalsScroll(isDialogOpen);
|
|
31022
31121
|
const isHeaderHidden = !session || page === "keysare-backup" /* KEYSARE_BACKUP */ && !hasServerVault;
|
|
31023
|
-
return /* @__PURE__ */
|
|
31122
|
+
return /* @__PURE__ */ jsx138(
|
|
31024
31123
|
Dialog,
|
|
31025
31124
|
{
|
|
31026
31125
|
open: isDialogOpen,
|
|
@@ -31032,17 +31131,17 @@ function Dialog2() {
|
|
|
31032
31131
|
setPage(null);
|
|
31033
31132
|
}
|
|
31034
31133
|
},
|
|
31035
|
-
children: /* @__PURE__ */
|
|
31134
|
+
children: /* @__PURE__ */ jsxs124(
|
|
31036
31135
|
DialogContent,
|
|
31037
31136
|
{
|
|
31038
31137
|
ref: (inst) => onboarder.registerElement(EMBARKAI_DIALOG_ONBOARDING_ID, inst),
|
|
31039
31138
|
colorMode,
|
|
31040
31139
|
className,
|
|
31041
31140
|
children: [
|
|
31042
|
-
/* @__PURE__ */
|
|
31043
|
-
/* @__PURE__ */
|
|
31044
|
-
!isHeaderHidden && /* @__PURE__ */
|
|
31045
|
-
/* @__PURE__ */
|
|
31141
|
+
/* @__PURE__ */ jsx138(VisuallyHidden, { children: /* @__PURE__ */ jsx138(DialogTitle, { children: "embarkAI" }) }),
|
|
31142
|
+
/* @__PURE__ */ jsx138(DialogDescription, { className: "sr-only", children: "embarkAI wallet" }),
|
|
31143
|
+
!isHeaderHidden && /* @__PURE__ */ jsx138(Header, {}),
|
|
31144
|
+
/* @__PURE__ */ jsx138(AnimatePresence, { mode: "wait", initial: false, children: /* @__PURE__ */ jsx138(
|
|
31046
31145
|
motion.div,
|
|
31047
31146
|
{
|
|
31048
31147
|
style: { overflow: "hidden" },
|
|
@@ -31050,7 +31149,7 @@ function Dialog2() {
|
|
|
31050
31149
|
animate: { opacity: 1, height: "auto" },
|
|
31051
31150
|
exit: { opacity: 0, height: transitionPageHeight },
|
|
31052
31151
|
transition: Y_ANIMATION_SETUP,
|
|
31053
|
-
children: /* @__PURE__ */
|
|
31152
|
+
children: /* @__PURE__ */ jsx138(
|
|
31054
31153
|
"div",
|
|
31055
31154
|
{
|
|
31056
31155
|
ref: (inst) => onboarder.registerElement(`${EMBARKAI_DIALOG_ONBOARDING_ID}-${page}`, inst),
|
|
@@ -31065,7 +31164,7 @@ function Dialog2() {
|
|
|
31065
31164
|
},
|
|
31066
31165
|
page || "empty"
|
|
31067
31166
|
) }),
|
|
31068
|
-
/* @__PURE__ */
|
|
31167
|
+
/* @__PURE__ */ jsx138(Footer, {})
|
|
31069
31168
|
]
|
|
31070
31169
|
}
|
|
31071
31170
|
)
|
|
@@ -31146,14 +31245,14 @@ var init_DirectWalletHandler = __esm({
|
|
|
31146
31245
|
});
|
|
31147
31246
|
|
|
31148
31247
|
// src/internal/components/TssManager.tsx
|
|
31149
|
-
import
|
|
31248
|
+
import React34, { useCallback as useCallback35 } from "react";
|
|
31150
31249
|
var TssManagerWithRef;
|
|
31151
31250
|
var init_TssManager = __esm({
|
|
31152
31251
|
"src/internal/components/TssManager.tsx"() {
|
|
31153
31252
|
init_SessionContext();
|
|
31154
31253
|
init_auth();
|
|
31155
31254
|
init_clients();
|
|
31156
|
-
TssManagerWithRef =
|
|
31255
|
+
TssManagerWithRef = React34.forwardRef((props, ref) => {
|
|
31157
31256
|
const { mpcPin } = props;
|
|
31158
31257
|
const usePaymaster = useSession((st) => st.usePaymaster);
|
|
31159
31258
|
const publicClient = useSession((st) => st.publicClient);
|
|
@@ -31168,7 +31267,7 @@ var init_TssManager = __esm({
|
|
|
31168
31267
|
},
|
|
31169
31268
|
[setSession, setAddress]
|
|
31170
31269
|
);
|
|
31171
|
-
const createSessionWithKeyshare =
|
|
31270
|
+
const createSessionWithKeyshare = React34.useCallback(
|
|
31172
31271
|
async (userId, hasServerKeyshare, isNewUser) => {
|
|
31173
31272
|
setStatus("checking key management setup...");
|
|
31174
31273
|
await ensureKeyshare(userId, hasServerKeyshare, setStatus, isNewUser);
|
|
@@ -31193,7 +31292,7 @@ var init_TssManager = __esm({
|
|
|
31193
31292
|
},
|
|
31194
31293
|
[setStatus, usePaymaster, activeChainId, publicClient, mpcPin]
|
|
31195
31294
|
);
|
|
31196
|
-
|
|
31295
|
+
React34.useImperativeHandle(ref, () => ({ createSessionWithKeyshare }), [createSessionWithKeyshare]);
|
|
31197
31296
|
return null;
|
|
31198
31297
|
});
|
|
31199
31298
|
}
|
|
@@ -31208,9 +31307,9 @@ import {
|
|
|
31208
31307
|
LUMIA_MAINNET_CHAIN_ID as LUMIA_MAINNET_CHAIN_ID4
|
|
31209
31308
|
} from "@embarkai/core/read";
|
|
31210
31309
|
import { Fragment as Fragment47 } from "react";
|
|
31211
|
-
import { create as
|
|
31310
|
+
import { create as create20 } from "zustand";
|
|
31212
31311
|
import { persist as persist5 } from "zustand/middleware";
|
|
31213
|
-
import { jsx as
|
|
31312
|
+
import { jsx as jsx139, jsxs as jsxs125 } from "react/jsx-runtime";
|
|
31214
31313
|
function getChainParams(chainCfg) {
|
|
31215
31314
|
return {
|
|
31216
31315
|
activeChainId: chainCfg.id,
|
|
@@ -31228,22 +31327,22 @@ function waitForStoreHydration() {
|
|
|
31228
31327
|
}
|
|
31229
31328
|
function SessionProvider({ children }) {
|
|
31230
31329
|
const config = useProviderConfig().config;
|
|
31231
|
-
return /* @__PURE__ */
|
|
31330
|
+
return /* @__PURE__ */ jsxs125(Fragment47, {
|
|
31232
31331
|
/** dApp's router might have its own error boundaries setup via imported @embarkai/ui-kitErrorBoundary */
|
|
31233
31332
|
children: [
|
|
31234
31333
|
children,
|
|
31235
|
-
/* @__PURE__ */
|
|
31236
|
-
config.current?.wallet?.enabled && (config.current?.wallet?.mode === "direct" || config.current?.wallet?.mode === "both") && /* @__PURE__ */
|
|
31237
|
-
/* @__PURE__ */
|
|
31238
|
-
/* @__PURE__ */
|
|
31239
|
-
/* @__PURE__ */
|
|
31334
|
+
/* @__PURE__ */ jsxs125(ErrorBoundary, { children: [
|
|
31335
|
+
config.current?.wallet?.enabled && (config.current?.wallet?.mode === "direct" || config.current?.wallet?.mode === "both") && /* @__PURE__ */ jsx139(DirectWalletHandler, {}),
|
|
31336
|
+
/* @__PURE__ */ jsx139(BalanceFeedProvider, {}),
|
|
31337
|
+
/* @__PURE__ */ jsx139(ChainSync, {}),
|
|
31338
|
+
/* @__PURE__ */ jsx139(
|
|
31240
31339
|
TssManagerWithRef,
|
|
31241
31340
|
{
|
|
31242
31341
|
mpcPin: void 0
|
|
31243
31342
|
}
|
|
31244
31343
|
),
|
|
31245
|
-
/* @__PURE__ */
|
|
31246
|
-
/* @__PURE__ */
|
|
31344
|
+
/* @__PURE__ */ jsx139(Dialog2, {}),
|
|
31345
|
+
/* @__PURE__ */ jsx139(OnboardingOverlay, {})
|
|
31247
31346
|
] })
|
|
31248
31347
|
]
|
|
31249
31348
|
});
|
|
@@ -31259,7 +31358,7 @@ var init_SessionContext = __esm({
|
|
|
31259
31358
|
init_Onboarding();
|
|
31260
31359
|
init_TssManager();
|
|
31261
31360
|
init_ProviderContext();
|
|
31262
|
-
useSession =
|
|
31361
|
+
useSession = create20()(
|
|
31263
31362
|
persist5(
|
|
31264
31363
|
(set) => ({
|
|
31265
31364
|
isLoading: false,
|
|
@@ -33712,7 +33811,7 @@ import {
|
|
|
33712
33811
|
useRef as useRef22
|
|
33713
33812
|
} from "react";
|
|
33714
33813
|
import { WagmiProvider } from "wagmi";
|
|
33715
|
-
import { jsx as
|
|
33814
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
33716
33815
|
function clearLegacyWagmiStorage() {
|
|
33717
33816
|
if (typeof window === "undefined" || !window.localStorage) return;
|
|
33718
33817
|
const legacyKeys = [
|
|
@@ -33833,7 +33932,7 @@ function Provider(props) {
|
|
|
33833
33932
|
}),
|
|
33834
33933
|
[config, updateConfig, callbacks, updateCallbacks]
|
|
33835
33934
|
);
|
|
33836
|
-
return /* @__PURE__ */
|
|
33935
|
+
return /* @__PURE__ */ jsx140(UIContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx140(WagmiProvider, { config: wagmiConfig3.current, children: /* @__PURE__ */ jsx140(SessionProvider, { children }) }) });
|
|
33837
33936
|
}
|
|
33838
33937
|
var UIContext, useProviderConfig;
|
|
33839
33938
|
var init_ProviderContext = __esm({
|
|
@@ -33852,7 +33951,7 @@ var init_ProviderContext = __esm({
|
|
|
33852
33951
|
});
|
|
33853
33952
|
|
|
33854
33953
|
// src/styles/built.css
|
|
33855
|
-
var built_default = `.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.embarkai-ui-scope .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.embarkai-ui-scope .pointer-events-none{pointer-events:none}.embarkai-ui-scope .pointer-events-auto{pointer-events:auto}.embarkai-ui-scope .visible{visibility:visible}.embarkai-ui-scope .invisible{visibility:hidden}.embarkai-ui-scope .static{position:static}.embarkai-ui-scope .fixed{position:fixed}.embarkai-ui-scope .absolute{position:absolute}.embarkai-ui-scope .relative{position:relative}.embarkai-ui-scope .sticky{position:sticky}.embarkai-ui-scope .inset-0{inset:0}.embarkai-ui-scope .-right-1{right:-.25rem}.embarkai-ui-scope .-right-2{right:-.5rem}.embarkai-ui-scope .-top-1{top:-.25rem}.embarkai-ui-scope .-top-2{top:-.5rem}.embarkai-ui-scope .bottom-0{bottom:0}.embarkai-ui-scope .bottom-full{bottom:100%}.embarkai-ui-scope .left-0{left:0}.embarkai-ui-scope .left-1\\/2{left:50%}.embarkai-ui-scope .left-4{left:1rem}.embarkai-ui-scope .right-0{right:0}.embarkai-ui-scope .right-1{right:.25rem}.embarkai-ui-scope .right-2{right:.5rem}.embarkai-ui-scope .right-3{right:.75rem}.embarkai-ui-scope .right-4{right:1rem}.embarkai-ui-scope .right-\\[var\\(--ui-kit-pd\\)\\]{right:var(--ui-kit-pd)}.embarkai-ui-scope .right-full{right:100%}.embarkai-ui-scope .top-0{top:0}.embarkai-ui-scope .top-1{top:.25rem}.embarkai-ui-scope .top-1\\/2{top:50%}.embarkai-ui-scope .top-2{top:.5rem}.embarkai-ui-scope .top-4{top:1rem}.embarkai-ui-scope .top-\\[var\\(--ui-kit-pd\\)\\]{top:var(--ui-kit-pd)}.embarkai-ui-scope .z-10{z-index:10}.embarkai-ui-scope .z-50{z-index:50}.embarkai-ui-scope .z-\\[9998\\]{z-index:9998}.embarkai-ui-scope .z-\\[9999\\]{z-index:9999}.embarkai-ui-scope .col-span-2{grid-column:span 2/span 2}.embarkai-ui-scope .float-right{float:right}.embarkai-ui-scope .-m-px{margin:-1px}.embarkai-ui-scope .-mx-1{margin-left:-.25rem;margin-right:-.25rem}.embarkai-ui-scope .mx-auto{margin-left:auto;margin-right:auto}.embarkai-ui-scope .my-1{margin-top:.25rem;margin-bottom:.25rem}.embarkai-ui-scope .mb-1{margin-bottom:.25rem}.embarkai-ui-scope .mb-2{margin-bottom:.5rem}.embarkai-ui-scope .mb-3{margin-bottom:.75rem}.embarkai-ui-scope .mb-4{margin-bottom:1rem}.embarkai-ui-scope .ml-1{margin-left:.25rem}.embarkai-ui-scope .ml-2{margin-left:.5rem}.embarkai-ui-scope .ml-auto{margin-left:auto}.embarkai-ui-scope .mr-1{margin-right:.25rem}.embarkai-ui-scope .mt-0\\.5{margin-top:.125rem}.embarkai-ui-scope .mt-1{margin-top:.25rem}.embarkai-ui-scope .mt-2{margin-top:.5rem}.embarkai-ui-scope .mt-4{margin-top:1rem}.embarkai-ui-scope .block{display:block}.embarkai-ui-scope .inline-block{display:inline-block}.embarkai-ui-scope .inline{display:inline}.embarkai-ui-scope .flex{display:flex}.embarkai-ui-scope .inline-flex{display:inline-flex}.embarkai-ui-scope .table{display:table}.embarkai-ui-scope .grid{display:grid}.embarkai-ui-scope .hidden{display:none}.embarkai-ui-scope .aspect-square{aspect-ratio:1/1}.embarkai-ui-scope .size-4{width:1rem;height:1rem}.embarkai-ui-scope .size-8{width:2rem;height:2rem}.embarkai-ui-scope .size-auto{width:auto;height:auto}.embarkai-ui-scope .h-0{height:0}.embarkai-ui-scope .h-1{height:.25rem}.embarkai-ui-scope .h-10{height:2.5rem}.embarkai-ui-scope .h-12{height:3rem}.embarkai-ui-scope .h-16{height:4rem}.embarkai-ui-scope .h-3{height:.75rem}.embarkai-ui-scope .h-3\\.5{height:.875rem}.embarkai-ui-scope .h-4{height:1rem}.embarkai-ui-scope .h-48{height:12rem}.embarkai-ui-scope .h-5{height:1.25rem}.embarkai-ui-scope .h-6{height:1.5rem}.embarkai-ui-scope .h-7{height:1.75rem}.embarkai-ui-scope .h-8{height:2rem}.embarkai-ui-scope .h-\\[100dvh\\]{height:100dvh}.embarkai-ui-scope .h-\\[48px\\]{height:48px}.embarkai-ui-scope .h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.embarkai-ui-scope .h-auto{height:auto}.embarkai-ui-scope .h-fit{height:-moz-fit-content;height:fit-content}.embarkai-ui-scope .h-full{height:100%}.embarkai-ui-scope .h-px{height:1px}.embarkai-ui-scope .max-h-96{max-height:24rem}.embarkai-ui-scope .max-h-\\[95dvh\\]{max-height:95dvh}.embarkai-ui-scope .min-h-10{min-height:2.5rem}.embarkai-ui-scope .min-h-12{min-height:3rem}.embarkai-ui-scope .w-0{width:0}.embarkai-ui-scope .w-1{width:.25rem}.embarkai-ui-scope .w-1\\/2{width:50%}.embarkai-ui-scope .w-10{width:2.5rem}.embarkai-ui-scope .w-12{width:3rem}.embarkai-ui-scope .w-16{width:4rem}.embarkai-ui-scope .w-3{width:.75rem}.embarkai-ui-scope .w-3\\.5{width:.875rem}.embarkai-ui-scope .w-4{width:1rem}.embarkai-ui-scope .w-48{width:12rem}.embarkai-ui-scope .w-5{width:1.25rem}.embarkai-ui-scope .w-6{width:1.5rem}.embarkai-ui-scope .w-7{width:1.75rem}.embarkai-ui-scope .w-8{width:2rem}.embarkai-ui-scope .w-\\[100dvw\\]{width:100dvw}.embarkai-ui-scope .w-\\[30dvw\\]{width:30dvw}.embarkai-ui-scope .w-\\[40px\\]{width:40px}.embarkai-ui-scope .w-\\[60dvw\\]{width:60dvw}.embarkai-ui-scope .w-\\[var\\(--ui-kit-content-maw\\2c var\\(--ui-kit-maw\\)\\)\\]{width:var(--ui-kit-content-maw,var(--ui-kit-maw))}.embarkai-ui-scope .w-\\[var\\(--ui-kit-maw\\)\\]{width:var(--ui-kit-maw)}.embarkai-ui-scope .w-fit{width:-moz-fit-content;width:fit-content}.embarkai-ui-scope .w-full{width:100%}.embarkai-ui-scope .w-px{width:1px}.embarkai-ui-scope .min-w-0{min-width:0}.embarkai-ui-scope .min-w-10{min-width:2.5rem}.embarkai-ui-scope .min-w-16{min-width:4rem}.embarkai-ui-scope .min-w-\\[256px\\]{min-width:256px}.embarkai-ui-scope .min-w-\\[8rem\\]{min-width:8rem}.embarkai-ui-scope .min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.embarkai-ui-scope .max-w-7xl{max-width:80rem}.embarkai-ui-scope .max-w-\\[100px\\]{max-width:100px}.embarkai-ui-scope .max-w-\\[144px\\]{max-width:144px}.embarkai-ui-scope .max-w-\\[150px\\]{max-width:150px}.embarkai-ui-scope .max-w-\\[160px\\]{max-width:160px}.embarkai-ui-scope .max-w-\\[256px\\]{max-width:256px}.embarkai-ui-scope .max-w-\\[420px\\]{max-width:420px}.embarkai-ui-scope .max-w-\\[680px\\]{max-width:680px}.embarkai-ui-scope .max-w-\\[calc\\(100\\%-48px-var\\(--ui-kit-gap\\)\\)\\]{max-width:calc(100% - 48px - var(--ui-kit-gap))}.embarkai-ui-scope .max-w-\\[calc\\(50\\%-8px\\)\\]{max-width:calc(50% - 8px)}.embarkai-ui-scope .max-w-full{max-width:100%}.embarkai-ui-scope .max-w-sm{max-width:24rem}.embarkai-ui-scope .flex-1{flex:1 1 0%}.embarkai-ui-scope .flex-none{flex:none}.embarkai-ui-scope .flex-shrink-0,.embarkai-ui-scope .shrink-0{flex-shrink:0}.embarkai-ui-scope .-translate-x-1\\/2{--tw-translate-x:-50%}.embarkai-ui-scope .-translate-x-1\\/2,.embarkai-ui-scope .-translate-x-\\[var\\(--ui-kit-gap\\)\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.embarkai-ui-scope .-translate-x-\\[var\\(--ui-kit-gap\\)\\]{--tw-translate-x:calc(var(--ui-kit-gap)*-1)}.embarkai-ui-scope .-translate-y-1\\/2{--tw-translate-y:-50%}.embarkai-ui-scope .-translate-y-1\\/2,.embarkai-ui-scope .-translate-y-1\\/3{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.embarkai-ui-scope .-translate-y-1\\/3{--tw-translate-y:-33.333333%}.embarkai-ui-scope .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes glow-warning{0%,to{box-shadow:inset 0 0 16px var(--ui-kit-bg-warning)}50%{box-shadow:inset 0 0 4px var(--ui-kit-bg-warning)}}.embarkai-ui-scope .animate-glow-warning{animation:glow-warning 2s ease infinite}@keyframes pulse{50%{opacity:.5}}.embarkai-ui-scope .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.embarkai-ui-scope .animate-spin{animation:spin 1s linear infinite}.embarkai-ui-scope .cursor-default{cursor:default}.embarkai-ui-scope .cursor-not-allowed{cursor:not-allowed}.embarkai-ui-scope .cursor-pointer{cursor:pointer}.embarkai-ui-scope .cursor-text{cursor:text}.embarkai-ui-scope .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.embarkai-ui-scope .select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.embarkai-ui-scope .resize{resize:both}.embarkai-ui-scope .scroll-my-1{scroll-margin-top:.25rem;scroll-margin-bottom:.25rem}.embarkai-ui-scope .list-inside{list-style-position:inside}.embarkai-ui-scope .list-disc{list-style-type:disc}.embarkai-ui-scope .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.embarkai-ui-scope .flex-col{flex-direction:column}.embarkai-ui-scope .flex-col-reverse{flex-direction:column-reverse}.embarkai-ui-scope .flex-wrap{flex-wrap:wrap}.embarkai-ui-scope .place-content-center{place-content:center}.embarkai-ui-scope .items-start{align-items:flex-start}.embarkai-ui-scope .items-end{align-items:flex-end}.embarkai-ui-scope .items-center{align-items:center}.embarkai-ui-scope .justify-start{justify-content:flex-start}.embarkai-ui-scope .justify-end{justify-content:flex-end}.embarkai-ui-scope .justify-center{justify-content:center}.embarkai-ui-scope .justify-between{justify-content:space-between}.embarkai-ui-scope .gap-0{gap:0}.embarkai-ui-scope .gap-1{gap:.25rem}.embarkai-ui-scope .gap-2{gap:.5rem}.embarkai-ui-scope .gap-3{gap:.75rem}.embarkai-ui-scope .gap-4{gap:1rem}.embarkai-ui-scope .gap-\\[10px\\]{gap:10px}.embarkai-ui-scope .gap-\\[var\\(--ui-kit-gap\\)\\]{gap:var(--ui-kit-gap)}.embarkai-ui-scope :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-right:calc(.25rem*var(--tw-space-x-reverse));margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))}.embarkai-ui-scope :is(.space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.embarkai-ui-scope :is(.space-y-0\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem*var(--tw-space-y-reverse))}.embarkai-ui-scope :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.embarkai-ui-scope :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.embarkai-ui-scope :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.embarkai-ui-scope .overflow-hidden{overflow:hidden}.embarkai-ui-scope .overflow-y-auto{overflow-y:auto}.embarkai-ui-scope .overflow-x-hidden{overflow-x:hidden}.embarkai-ui-scope .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.embarkai-ui-scope .text-ellipsis{text-overflow:ellipsis}.embarkai-ui-scope .whitespace-nowrap{white-space:nowrap}.embarkai-ui-scope .whitespace-pre-line{white-space:pre-line}.embarkai-ui-scope .whitespace-pre-wrap{white-space:pre-wrap}.embarkai-ui-scope .break-normal{overflow-wrap:normal;word-break:normal}.embarkai-ui-scope .break-words{overflow-wrap:break-word}.embarkai-ui-scope .break-all{word-break:break-all}.embarkai-ui-scope .rounded{border-radius:.25rem}.embarkai-ui-scope .rounded-\\[10px\\]{border-radius:10px}.embarkai-ui-scope .rounded-\\[8px\\]{border-radius:8px}.embarkai-ui-scope .rounded-\\[calc\\(var\\(--ui-kit-el-bdrs\\)_\\/_2\\)\\]{border-radius:calc(var(--ui-kit-el-bdrs)/2)}.embarkai-ui-scope .rounded-\\[var\\(--ui-kit-bdrs\\)\\]{border-radius:var(--ui-kit-bdrs)}.embarkai-ui-scope .rounded-\\[var\\(--ui-kit-el-bdrs\\)\\]{border-radius:var(--ui-kit-el-bdrs)}.embarkai-ui-scope .rounded-full{border-radius:9999px}.embarkai-ui-scope .rounded-lg{border-radius:.5rem}.embarkai-ui-scope .rounded-md{border-radius:.375rem}.embarkai-ui-scope .rounded-xl{border-radius:.75rem}.embarkai-ui-scope .border{border-width:1px}.embarkai-ui-scope .border-0{border-width:0}.embarkai-ui-scope .border-2{border-width:2px}.embarkai-ui-scope .border-b{border-bottom-width:1px}.embarkai-ui-scope .border-t{border-top-width:1px}.embarkai-ui-scope .border-dashed{border-style:dashed}.embarkai-ui-scope .border-\\[var\\(--ui-kit-bd\\)\\]{border-color:var(--ui-kit-bd)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-bg-error\\)\\]{border-color:var(--ui-kit-bg-error)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-bg-success\\)\\]{border-color:var(--ui-kit-bg-success)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-bg-warning\\)\\]{border-color:var(--ui-kit-bg-warning)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-error\\)\\]{border-color:var(--ui-kit-error)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-secondary\\)\\]{border-color:var(--ui-kit-secondary)}.embarkai-ui-scope .border-current{border-color:currentColor}.embarkai-ui-scope .border-transparent{border-color:transparent}.embarkai-ui-scope .border-t-transparent{border-top-color:transparent}.embarkai-ui-scope .bg-\\[\\#002c15\\]{--tw-bg-opacity:1;background-color:rgb(0 44 21/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-\\[\\#081f2c\\]{--tw-bg-opacity:1;background-color:rgb(8 31 44/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-\\[\\#f0f6f8\\]{--tw-bg-opacity:1;background-color:rgb(240 246 248/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-\\[\\#f3ba2f\\]{--tw-bg-opacity:1;background-color:rgb(243 186 47/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg\\)\\]{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-error\\)\\]{background-color:var(--ui-kit-bg-error)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-info\\)\\]{background-color:var(--ui-kit-bg-info)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-secondary\\)\\]{background-color:var(--ui-kit-bg-secondary)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-success\\)\\]{background-color:var(--ui-kit-bg-success)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-warning\\)\\]{background-color:var(--ui-kit-bg-warning)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-fg\\)\\]{background-color:var(--ui-kit-fg)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-overlay\\)\\]{background-color:var(--ui-kit-overlay)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-primary\\)\\]{background-color:var(--ui-kit-primary)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-secondary\\)\\]{background-color:var(--ui-kit-secondary)}.embarkai-ui-scope .bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-transparent{background-color:transparent}.embarkai-ui-scope .fill-\\[var\\(--ui-kit-bg-warning\\)\\]{fill:var(--ui-kit-bg-warning)}.embarkai-ui-scope .object-contain{-o-object-fit:contain;object-fit:contain}.embarkai-ui-scope .object-cover{-o-object-fit:cover;object-fit:cover}.embarkai-ui-scope .p-0{padding:0}.embarkai-ui-scope .p-1{padding:.25rem}.embarkai-ui-scope .p-2{padding:.5rem}.embarkai-ui-scope .p-3{padding:.75rem}.embarkai-ui-scope .p-4{padding:1rem}.embarkai-ui-scope .p-6{padding:1.5rem}.embarkai-ui-scope .p-8{padding:2rem}.embarkai-ui-scope .p-\\[12px\\]{padding:12px}.embarkai-ui-scope .p-\\[2px\\]{padding:2px}.embarkai-ui-scope .p-\\[var\\(--ui-kit-gap\\)\\]{padding:var(--ui-kit-gap)}.embarkai-ui-scope .p-\\[var\\(--ui-kit-pd\\)\\]{padding:var(--ui-kit-pd)}.embarkai-ui-scope .px-0{padding-left:0;padding-right:0}.embarkai-ui-scope .px-1{padding-left:.25rem;padding-right:.25rem}.embarkai-ui-scope .px-10{padding-left:2.5rem;padding-right:2.5rem}.embarkai-ui-scope .px-2{padding-left:.5rem;padding-right:.5rem}.embarkai-ui-scope .px-3{padding-left:.75rem;padding-right:.75rem}.embarkai-ui-scope .px-4{padding-left:1rem;padding-right:1rem}.embarkai-ui-scope .px-5{padding-left:1.25rem;padding-right:1.25rem}.embarkai-ui-scope .px-8{padding-left:2rem;padding-right:2rem}.embarkai-ui-scope .px-\\[var\\(--ui-kit-gap\\)\\]{padding-left:var(--ui-kit-gap);padding-right:var(--ui-kit-gap)}.embarkai-ui-scope .px-\\[var\\(--ui-kit-pd\\)\\]{padding-left:var(--ui-kit-pd);padding-right:var(--ui-kit-pd)}.embarkai-ui-scope .py-0{padding-top:0;padding-bottom:0}.embarkai-ui-scope .py-1{padding-top:.25rem;padding-bottom:.25rem}.embarkai-ui-scope .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.embarkai-ui-scope .py-2{padding-top:.5rem;padding-bottom:.5rem}.embarkai-ui-scope .py-3{padding-top:.75rem;padding-bottom:.75rem}.embarkai-ui-scope .py-4{padding-top:1rem;padding-bottom:1rem}.embarkai-ui-scope .py-8{padding-top:2rem;padding-bottom:2rem}.embarkai-ui-scope .py-\\[10px\\]{padding-top:10px;padding-bottom:10px}.embarkai-ui-scope .py-\\[var\\(--ui-kit-gap\\)\\]{padding-top:var(--ui-kit-gap);padding-bottom:var(--ui-kit-gap)}.embarkai-ui-scope .py-\\[var\\(--ui-kit-pd\\)\\]{padding-top:var(--ui-kit-pd);padding-bottom:var(--ui-kit-pd)}.embarkai-ui-scope .pb-2{padding-bottom:.5rem}.embarkai-ui-scope .pb-5{padding-bottom:1.25rem}.embarkai-ui-scope .pb-6{padding-bottom:1.5rem}.embarkai-ui-scope .pb-\\[var\\(--ui-kit-pd\\)\\]{padding-bottom:var(--ui-kit-pd)}.embarkai-ui-scope .pl-\\[var\\(--ui-kit-pd\\)\\]{padding-left:var(--ui-kit-pd)}.embarkai-ui-scope .pr-8{padding-right:2rem}.embarkai-ui-scope .pt-3{padding-top:.75rem}.embarkai-ui-scope .pt-4{padding-top:1rem}.embarkai-ui-scope .pt-5{padding-top:1.25rem}.embarkai-ui-scope .text-left{text-align:left}.embarkai-ui-scope .text-center{text-align:center}.embarkai-ui-scope .text-right{text-align:right}.embarkai-ui-scope .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.embarkai-ui-scope .font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.embarkai-ui-scope .text-2xl{font-size:1.5rem;line-height:2rem}.embarkai-ui-scope .text-\\[10px\\]{font-size:10px}.embarkai-ui-scope .text-\\[14px\\]{font-size:14px}.embarkai-ui-scope .text-\\[16px\\]{font-size:16px}.embarkai-ui-scope .text-\\[8px\\]{font-size:8px}.embarkai-ui-scope .text-lg{font-size:1.125rem;line-height:1.75rem}.embarkai-ui-scope .text-sm{font-size:.875rem;line-height:1.25rem}.embarkai-ui-scope .text-xl{font-size:1.25rem;line-height:1.75rem}.embarkai-ui-scope .text-xs{font-size:.75rem;line-height:1rem}.embarkai-ui-scope .font-bold{font-weight:700}.embarkai-ui-scope .font-light{font-weight:300}.embarkai-ui-scope .font-medium{font-weight:500}.embarkai-ui-scope .font-normal{font-weight:400}.embarkai-ui-scope .font-semibold{font-weight:600}.embarkai-ui-scope .uppercase{text-transform:uppercase}.embarkai-ui-scope .lowercase{text-transform:lowercase}.embarkai-ui-scope .leading-3{line-height:.75rem}.embarkai-ui-scope .leading-4{line-height:1rem}.embarkai-ui-scope .leading-5{line-height:1.25rem}.embarkai-ui-scope .leading-6{line-height:1.5rem}.embarkai-ui-scope .leading-7{line-height:1.75rem}.embarkai-ui-scope .leading-8{line-height:2rem}.embarkai-ui-scope .leading-\\[8px\\]{line-height:8px}.embarkai-ui-scope .leading-none{line-height:1}.embarkai-ui-scope .leading-tight{line-height:1.25}.embarkai-ui-scope .tracking-\\[0\\.3em\\]{letter-spacing:.3em}.embarkai-ui-scope .tracking-tight{letter-spacing:-.025em}.embarkai-ui-scope .text-\\[\\#c3f53c\\]{--tw-text-opacity:1;color:rgb(195 245 60/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-\\[var\\(--ui-kit-bg-error\\)\\]{color:var(--ui-kit-bg-error)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-bg-success\\)\\]{color:var(--ui-kit-bg-success)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-bg-warning\\)\\]{color:var(--ui-kit-bg-warning)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-error\\)\\]{color:var(--ui-kit-error)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-fg\\)\\]{color:var(--ui-kit-fg)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-fg-inverted\\)\\]{color:var(--ui-kit-fg-inverted)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-fg-muted\\)\\]{color:var(--ui-kit-fg-muted)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-info\\)\\]{color:var(--ui-kit-info)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-primary\\)\\]{color:var(--ui-kit-primary)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-success\\)\\]{color:var(--ui-kit-success)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-text-secondary\\)\\]{color:var(--ui-kit-text-secondary)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-warning\\)\\]{color:var(--ui-kit-warning)}.embarkai-ui-scope .text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-sky-500{--tw-text-opacity:1;color:rgb(14 165 233/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.embarkai-ui-scope .underline{text-decoration-line:underline}.embarkai-ui-scope .underline-offset-2{text-underline-offset:2px}.embarkai-ui-scope .underline-offset-4{text-underline-offset:4px}.embarkai-ui-scope .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.embarkai-ui-scope .opacity-0{opacity:0}.embarkai-ui-scope .opacity-100{opacity:1}.embarkai-ui-scope .opacity-50{opacity:.5}.embarkai-ui-scope .opacity-60{opacity:.6}.embarkai-ui-scope .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.embarkai-ui-scope .shadow-\\[inset_0_0_0_1px_var\\(--ui-kit-bd\\)\\]{--tw-shadow:inset 0 0 0 1px var(--ui-kit-bd);--tw-shadow-colored:inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.embarkai-ui-scope .shadow-\\[inset_0_0_0_1px_var\\(--ui-kit-fg\\)\\]{--tw-shadow:inset 0 0 0 1px var(--ui-kit-fg);--tw-shadow-colored:inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.embarkai-ui-scope .outline-none{outline:2px solid transparent;outline-offset:2px}.embarkai-ui-scope .outline{outline-style:solid}.embarkai-ui-scope .ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.embarkai-ui-scope .ring-offset-0{--tw-ring-offset-width:0px}.embarkai-ui-scope .blur{--tw-blur:blur(8px)}.embarkai-ui-scope .blur,.embarkai-ui-scope .grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.embarkai-ui-scope .grayscale{--tw-grayscale:grayscale(100%)}.embarkai-ui-scope .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.embarkai-ui-scope .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-\\[color\\2c box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-none{transition-property:none}.embarkai-ui-scope .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .duration-200{transition-duration:.2s}.embarkai-ui-scope .duration-500{transition-duration:.5s}.embarkai-ui-scope .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}:root{--w3m-z-index:10001!important}.embarkai-ui-scope{--ui-kit-ff:var(--embark-ui-ff,-apple-system,BlinkMacSystemFont,"Inter",system-ui,sans-serif);--ui-kit-maw:var(--embark-ui-maw,384px);--ui-kit-pd:var(--embark-ui-pd,12px);--ui-kit-gap:var(--embark-ui-gap,10px);--ui-kit-bdrs:var(--embark-ui-bdrs,20px);--ui-kit-el-bdrs:var(--embark-ui-element-bdrs,10px);--ui-kit-backdrop-blur:var(--embark-ui-backdrop-blur,10px)}.embarkai-ui-scope[data-current-theme-mode=light]{--ui-kit-overlay:var(--embark-ui-overlay,hsla(0,0%,100%,.8));--ui-kit-bg:var(--embark-ui-bg,#fff);--ui-kit-fg:var(--embark-ui-fg,#000);--ui-kit-fg-inverted:var(--embark-ui-fg-inverted,#fff);--ui-kit-fg-muted:var(--embark-ui-fg-muted,rgba(0,0,0,.6));--ui-kit-primary:var(--embark-ui-primary,#000);--ui-kit-secondary:var(--embark-ui-secondary,#e4e4e4);--ui-kit-bd:var(--embark-ui-bd,#ebebeb);--ui-kit-bd-intense:var(--embark-ui-bd-intense,#a9a9a9);--ui-kit-shadow:var(--embark-ui-shadow,0 0 0 0 transparent);--ui-kit-shadow-c:var(--embark-ui-shadow-c,rgba(0,0,0,.1));--ui-kit-info:var(--embark-ui-info,var(--ui-kit-fg));--ui-kit-bg-info:var(--embark-ui-bg-info,var(--ui-kit-secondary));--ui-kit-success:var(--embark-ui-success,#000);--ui-kit-bg-success:var(--embark-ui-bg-success,#21ff51);--ui-kit-warning:var(--embark-ui-warning,#000);--ui-kit-bg-warning:var(--embark-ui-bg-warning,#e9fa00);--ui-kit-error:var(--embark-ui-error,#fff);--ui-kit-bg-error:var(--embark-ui-bg-error,#d6204e)}.embarkai-ui-scope[data-current-theme-mode=dark]{--ui-kit-overlay:var(--embark-ui-overlay,rgba(0,0,0,.8));--ui-kit-bg:var(--embark-ui-bg,#1a1a1a);--ui-kit-fg:var(--embark-ui-fg,#fff);--ui-kit-fg-inverted:var(--embark-ui-fg-inverted,#000);--ui-kit-fg-muted:var(--embark-ui-fg-muted,hsla(0,0%,100%,.6));--ui-kit-primary:var(--embark-ui-primary,#fff);--ui-kit-secondary:var(--embark-ui-secondary,#2a2a2a);--ui-kit-bd:var(--embark-ui-bd,#3a3a3a);--ui-kit-bd-intense:var(--embark-ui-bd-intense,#4a4a4a);--ui-kit-shadow:var(--embark-ui-shadow,0 0 0 0 transparent);--ui-kit-shadow-c:var(--embark-ui-shadow-c,rgba(0,0,0,.1));--ui-kit-info:var(--embark-ui-info,var(--ui-kit-fg));--ui-kit-bg-info:var(--embark-ui-bg-info,var(--ui-kit-secondary));--ui-kit-success:var(--embark-ui-success,#000);--ui-kit-bg-success:var(--embark-ui-bg-success,#21ff51);--ui-kit-warning:var(--embark-ui-warning,#000);--ui-kit-bg-warning:var(--embark-ui-bg-warning,#e9fa00);--ui-kit-error:var(--embark-ui-error,#fff);--ui-kit-bg-error:var(--embark-ui-bg-error,#d6204e)}.embarkai-ui-scope,.embarkai-ui-scope *{margin:0;box-sizing:border-box;font-family:var(--ui-kit-ff);font-optical-sizing:auto;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;-ms-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.embarkai-ui-scope button,.embarkai-ui-scope h1,.embarkai-ui-scope h2,.embarkai-ui-scope h3,.embarkai-ui-scope h4,.embarkai-ui-scope h5,.embarkai-ui-scope h6,.embarkai-ui-scope input,.embarkai-ui-scope p,.embarkai-ui-scope select,.embarkai-ui-scope textarea{font-family:var(--ui-kit-ff)!important;margin:0}.embarkai-ui-scope button,.embarkai-ui-scope input,.embarkai-ui-scope select,.embarkai-ui-scope textarea{border-style:solid;outline:none!important;appearance:none!important;-webkit-appearance:none;-moz-appearance:none}.embarkai-ui-scope input,.embarkai-ui-scope textarea{font-size:16px!important}.embarkai-ui-scope .account-connect-button{box-shadow:0 4px 20px var(--ui-kit-shadow-c),inset 0 0 0 1px var(--ui-kit-bd);transition:transform .25s ease}.embarkai-ui-scope .account-connect-button:hover{transform:scale(1.02)}.embarkai-ui-scope .account-connect-button:active{transform:scale(1)}@keyframes lumia-mobile-dialog-fade-in{0%{opacity:0;transform:translateY(64px)}to{opacity:1;transform:translateY(0)}}@keyframes lumia-mobile-dialog-fade-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(64px)}}.embarkai-ui-scope .animate-mobile-dialog-in{animation:lumia-mobile-dialog-fade-in 375ms ease}.embarkai-ui-scope .animate-mobile-dialog-out{animation:lumia-mobile-dialog-fade-out 375ms ease forwards}@keyframes lumia-dialog-fade-in{0%{opacity:0}to{opacity:1}}@keyframes lumia-dialog-fade-out{0%{opacity:1}to{opacity:0}}.embarkai-ui-scope .animate-dialog-in{animation:lumia-dialog-fade-in 375ms ease}.embarkai-ui-scope .animate-dialog-out{animation:lumia-dialog-fade-out 375ms ease forwards}.embarkai-ui-scope .list-scrollbar-y{width:100%;padding-right:var(--ui-kit-list-scrollbar-pd-r,0);overflow-y:auto;overflow-x:hidden;max-height:var(--ui-kit-scrollbar-mah,300px)}.embarkai-ui-scope .list-scrollbar-y::-webkit-scrollbar{width:4px;height:4px}.embarkai-ui-scope .list-scrollbar-y::-webkit-scrollbar-thumb{cursor:pointer;width:4px;border-radius:2px;background-color:var(--ui-kit-bd)}.embarkai-ui-scope .list-scrollbar-y::-webkit-scrollbar-track{margin-top:10px;margin-bottom:10px;background-color:transparent}.embarkai-ui-scope .noScrollbars::-webkit-scrollbar{display:none}.embarkai-ui-scope div[data-radix-popper-content-wrapper]{z-index:10000!important}@keyframes rotateShine{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}.embarkai-ui-scope .button-shine-outline{position:absolute;top:0;left:0;width:100%;height:100%;padding:1px;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0) border-box;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0) border-box;-webkit-mask-composite:xor;mask-composite:exclude}.embarkai-ui-scope .button-shine-outline-shiner{pointer-events:none;position:absolute;top:50%;left:50%;width:500px;height:500px;transform:translate(-50%,-50%);background:conic-gradient(from 0deg,transparent 0,var(--ui-kit-fg) 8%,transparent 24%);animation:rotateShine 3s linear infinite}.embarkai-ui-scope .file\\:mr-\\[var\\(--ui-kit-gap\\)\\]::file-selector-button{margin-right:var(--ui-kit-gap)}.embarkai-ui-scope .file\\:h-12::file-selector-button{height:3rem}.embarkai-ui-scope .file\\:cursor-pointer::file-selector-button{cursor:pointer}.embarkai-ui-scope .file\\:rounded-\\[var\\(--ui-kit-el-bdrs\\)\\]::file-selector-button{border-radius:var(--ui-kit-el-bdrs)}.embarkai-ui-scope .file\\:border-0::file-selector-button{border-width:0}.embarkai-ui-scope .file\\:bg-\\[var\\(--ui-kit-primary\\)\\]::file-selector-button{background-color:var(--ui-kit-primary)}.embarkai-ui-scope .file\\:px-\\[var\\(--ui-kit-pd\\)\\]::file-selector-button{padding-left:var(--ui-kit-pd);padding-right:var(--ui-kit-pd)}.embarkai-ui-scope .file\\:text-\\[16px\\]::file-selector-button{font-size:16px}.embarkai-ui-scope .file\\:text-\\[var\\(--ui-kit-fg-inverted\\)\\]::file-selector-button{color:var(--ui-kit-fg-inverted)}.embarkai-ui-scope .placeholder\\:text-\\[var\\(--ui-kit-fg-muted\\)\\]::-moz-placeholder{color:var(--ui-kit-fg-muted)}.embarkai-ui-scope .placeholder\\:text-\\[var\\(--ui-kit-fg-muted\\)\\]::placeholder{color:var(--ui-kit-fg-muted)}.embarkai-ui-scope .focus-within\\:border-\\[var\\(--ui-kit-bd\\)\\]:focus-within{border-color:var(--ui-kit-bd)}.embarkai-ui-scope .focus-within\\:opacity-100:focus-within{opacity:1}.embarkai-ui-scope .hover\\:bg-\\[\\#002c15\\]:hover{--tw-bg-opacity:1;background-color:rgb(0 44 21/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:bg-\\[\\#081f2c\\]:hover{--tw-bg-opacity:1;background-color:rgb(8 31 44/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:bg-\\[\\#f0f6f8\\]:hover{--tw-bg-opacity:1;background-color:rgb(240 246 248/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:bg-\\[\\#f3ba2f\\]:hover{--tw-bg-opacity:1;background-color:rgb(243 186 47/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:bg-\\[var\\(--ui-kit-bg\\)\\]:hover{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .hover\\:bg-\\[var\\(--ui-kit-secondary\\)\\]:hover{background-color:var(--ui-kit-secondary)}.embarkai-ui-scope .hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:text-\\[\\#c3f53c\\]:hover{--tw-text-opacity:1;color:rgb(195 245 60/var(--tw-text-opacity,1))}.embarkai-ui-scope .hover\\:text-\\[var\\(--ui-kit-fg\\)\\]:hover{color:var(--ui-kit-fg)}.embarkai-ui-scope .hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.embarkai-ui-scope .hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.embarkai-ui-scope .hover\\:underline:hover{text-decoration-line:underline}.embarkai-ui-scope .hover\\:opacity-80:hover{opacity:.8}.embarkai-ui-scope .hover\\:brightness-110:hover{--tw-brightness:brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.embarkai-ui-scope .file\\:hover\\:opacity-90:hover::file-selector-button{opacity:.9}.embarkai-ui-scope .focus-within\\:hover\\:opacity-100:hover:focus-within{opacity:1}.embarkai-ui-scope .focus\\:border-\\[var\\(--ui-kit-primary\\)\\]:focus{border-color:var(--ui-kit-primary)}.embarkai-ui-scope .focus\\:bg-transparent:focus{background-color:transparent}.embarkai-ui-scope .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.embarkai-ui-scope .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.embarkai-ui-scope .focus-visible\\:ring-0:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.embarkai-ui-scope .focus-visible\\:ring-\\[2px\\]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.embarkai-ui-scope .focus-visible\\:ring-transparent:focus-visible{--tw-ring-color:transparent}.embarkai-ui-scope .focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px}.embarkai-ui-scope .active\\:bg-\\[\\#f3ba2f\\]:active{--tw-bg-opacity:1;background-color:rgb(243 186 47/var(--tw-bg-opacity,1))}.embarkai-ui-scope .active\\:bg-\\[var\\(--ui-kit-bg\\)\\]:active{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .active\\:text-\\[\\#c3f53c\\]:active{--tw-text-opacity:1;color:rgb(195 245 60/var(--tw-text-opacity,1))}.embarkai-ui-scope .active\\:opacity-60:active{opacity:.6}.embarkai-ui-scope .file\\:active\\:opacity-80:active::file-selector-button{opacity:.8}.embarkai-ui-scope .disabled\\:cursor-default:disabled{cursor:default}.embarkai-ui-scope .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.embarkai-ui-scope .disabled\\:opacity-50:disabled{opacity:.5}.embarkai-ui-scope .disabled\\:hover\\:bg-\\[var\\(--ui-kit-bg\\)\\]:hover:disabled{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .disabled\\:hover\\:text-\\[var\\(--ui-kit-bg-error\\)\\]:hover:disabled{color:var(--ui-kit-bg-error)}.embarkai-ui-scope .disabled\\:hover\\:opacity-50:hover:disabled{opacity:.5}.embarkai-ui-scope .disabled\\:active\\:bg-\\[var\\(--ui-kit-bg\\)\\]:active:disabled{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .disabled\\:active\\:text-\\[var\\(--ui-kit-bg-error\\)\\]:active:disabled{color:var(--ui-kit-bg-error)}.embarkai-ui-scope .disabled\\:active\\:opacity-50:active:disabled{opacity:.5}.embarkai-ui-scope :is(.group:hover .group-hover\\:opacity-100){opacity:1}.embarkai-ui-scope :is(.group:hover .group-hover\\:opacity-80){opacity:.8}.embarkai-ui-scope .data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.embarkai-ui-scope .data-\\[size\\=default\\]\\:h-12[data-size=default]{height:3rem}.embarkai-ui-scope .data-\\[size\\=sm\\]\\:h-10[data-size=sm]{height:2.5rem}.embarkai-ui-scope .data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.embarkai-ui-scope .data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom],.embarkai-ui-scope .data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.embarkai-ui-scope .data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.embarkai-ui-scope .data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.embarkai-ui-scope .data-\\[side\\=right\\]\\:translate-x-1[data-side=right],.embarkai-ui-scope .data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.embarkai-ui-scope .data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.embarkai-ui-scope .data-\\[state\\=checked\\]\\:border-\\[var\\(--ui-kit-bd-intense\\)\\][data-state=checked]{border-color:var(--ui-kit-bd-intense)}.embarkai-ui-scope .data-\\[state\\=checked\\]\\:bg-\\[var\\(--ui-kit-secondary\\)\\][data-state=checked]{background-color:var(--ui-kit-secondary)}.embarkai-ui-scope .data-\\[state\\=checked\\]\\:text-\\[var\\(--ui-kit-fg\\)\\][data-state=checked]{color:var(--ui-kit-fg)}.embarkai-ui-scope .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.embarkai-ui-scope :is(.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1[data-slot=select-value]>*){overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.embarkai-ui-scope :is(.\\*\\:data-\\[slot\\=select-value\\]\\:flex[data-slot=select-value]>*){display:flex}.embarkai-ui-scope :is(.\\*\\:data-\\[slot\\=select-value\\]\\:items-center[data-slot=select-value]>*){align-items:center}.embarkai-ui-scope :is(.\\*\\:data-\\[slot\\=select-value\\]\\:gap-\\[var\\(--ui-kit-gap\\)\\][data-slot=select-value]>*){gap:var(--ui-kit-gap)}@media (min-width:640px){.embarkai-ui-scope .sm\\:flex-row{flex-direction:row}.embarkai-ui-scope .sm\\:justify-end{justify-content:flex-end}.embarkai-ui-scope :is(.sm\\:space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.embarkai-ui-scope .sm\\:text-left{text-align:left}}@media (min-width:768px){.embarkai-ui-scope .md\\:h-8{height:2rem}.embarkai-ui-scope .md\\:w-8{width:2rem}.embarkai-ui-scope .md\\:gap-\\[var\\(--ui-kit-gap\\)\\]{gap:var(--ui-kit-gap)}.embarkai-ui-scope .md\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.embarkai-ui-scope .md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}}.embarkai-ui-scope :is(.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-])){width:1rem;height:1rem}.embarkai-ui-scope :is(.\\[\\&_svg\\]\\:pointer-events-none svg){pointer-events:none}.embarkai-ui-scope :is(.\\[\\&_svg\\]\\:shrink-0 svg){flex-shrink:0}`;
|
|
33954
|
+
var built_default = `.container{width:100%}@media (min-width:640px){.container{max-width:640px}}@media (min-width:768px){.container{max-width:768px}}@media (min-width:1024px){.container{max-width:1024px}}@media (min-width:1280px){.container{max-width:1280px}}@media (min-width:1536px){.container{max-width:1536px}}.embarkai-ui-scope .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.embarkai-ui-scope .pointer-events-none{pointer-events:none}.embarkai-ui-scope .pointer-events-auto{pointer-events:auto}.embarkai-ui-scope .visible{visibility:visible}.embarkai-ui-scope .invisible{visibility:hidden}.embarkai-ui-scope .static{position:static}.embarkai-ui-scope .fixed{position:fixed}.embarkai-ui-scope .absolute{position:absolute}.embarkai-ui-scope .relative{position:relative}.embarkai-ui-scope .sticky{position:sticky}.embarkai-ui-scope .inset-0{inset:0}.embarkai-ui-scope .-right-1{right:-.25rem}.embarkai-ui-scope .-right-2{right:-.5rem}.embarkai-ui-scope .-top-1{top:-.25rem}.embarkai-ui-scope .-top-2{top:-.5rem}.embarkai-ui-scope .bottom-0{bottom:0}.embarkai-ui-scope .bottom-full{bottom:100%}.embarkai-ui-scope .left-0{left:0}.embarkai-ui-scope .left-1\\/2{left:50%}.embarkai-ui-scope .left-4{left:1rem}.embarkai-ui-scope .right-0{right:0}.embarkai-ui-scope .right-1{right:.25rem}.embarkai-ui-scope .right-2{right:.5rem}.embarkai-ui-scope .right-3{right:.75rem}.embarkai-ui-scope .right-4{right:1rem}.embarkai-ui-scope .right-\\[var\\(--ui-kit-pd\\)\\]{right:var(--ui-kit-pd)}.embarkai-ui-scope .right-full{right:100%}.embarkai-ui-scope .top-0{top:0}.embarkai-ui-scope .top-1{top:.25rem}.embarkai-ui-scope .top-1\\/2{top:50%}.embarkai-ui-scope .top-2{top:.5rem}.embarkai-ui-scope .top-4{top:1rem}.embarkai-ui-scope .top-\\[var\\(--ui-kit-pd\\)\\]{top:var(--ui-kit-pd)}.embarkai-ui-scope .z-10{z-index:10}.embarkai-ui-scope .z-50{z-index:50}.embarkai-ui-scope .z-\\[9998\\]{z-index:9998}.embarkai-ui-scope .z-\\[9999\\]{z-index:9999}.embarkai-ui-scope .col-span-2{grid-column:span 2/span 2}.embarkai-ui-scope .float-right{float:right}.embarkai-ui-scope .-m-px{margin:-1px}.embarkai-ui-scope .-mx-1{margin-left:-.25rem;margin-right:-.25rem}.embarkai-ui-scope .mx-auto{margin-left:auto;margin-right:auto}.embarkai-ui-scope .my-1{margin-top:.25rem;margin-bottom:.25rem}.embarkai-ui-scope .mb-1{margin-bottom:.25rem}.embarkai-ui-scope .mb-2{margin-bottom:.5rem}.embarkai-ui-scope .mb-3{margin-bottom:.75rem}.embarkai-ui-scope .mb-4{margin-bottom:1rem}.embarkai-ui-scope .ml-1{margin-left:.25rem}.embarkai-ui-scope .ml-2{margin-left:.5rem}.embarkai-ui-scope .ml-auto{margin-left:auto}.embarkai-ui-scope .mr-1{margin-right:.25rem}.embarkai-ui-scope .mt-0\\.5{margin-top:.125rem}.embarkai-ui-scope .mt-1{margin-top:.25rem}.embarkai-ui-scope .mt-2{margin-top:.5rem}.embarkai-ui-scope .mt-4{margin-top:1rem}.embarkai-ui-scope .block{display:block}.embarkai-ui-scope .inline-block{display:inline-block}.embarkai-ui-scope .inline{display:inline}.embarkai-ui-scope .flex{display:flex}.embarkai-ui-scope .inline-flex{display:inline-flex}.embarkai-ui-scope .table{display:table}.embarkai-ui-scope .grid{display:grid}.embarkai-ui-scope .hidden{display:none}.embarkai-ui-scope .aspect-square{aspect-ratio:1/1}.embarkai-ui-scope .size-4{width:1rem;height:1rem}.embarkai-ui-scope .size-8{width:2rem;height:2rem}.embarkai-ui-scope .size-auto{width:auto;height:auto}.embarkai-ui-scope .h-0{height:0}.embarkai-ui-scope .h-1{height:.25rem}.embarkai-ui-scope .h-10{height:2.5rem}.embarkai-ui-scope .h-12{height:3rem}.embarkai-ui-scope .h-16{height:4rem}.embarkai-ui-scope .h-2\\.5{height:.625rem}.embarkai-ui-scope .h-3{height:.75rem}.embarkai-ui-scope .h-3\\.5{height:.875rem}.embarkai-ui-scope .h-4{height:1rem}.embarkai-ui-scope .h-48{height:12rem}.embarkai-ui-scope .h-5{height:1.25rem}.embarkai-ui-scope .h-6{height:1.5rem}.embarkai-ui-scope .h-7{height:1.75rem}.embarkai-ui-scope .h-8{height:2rem}.embarkai-ui-scope .h-\\[100dvh\\]{height:100dvh}.embarkai-ui-scope .h-\\[48px\\]{height:48px}.embarkai-ui-scope .h-\\[var\\(--radix-select-trigger-height\\)\\]{height:var(--radix-select-trigger-height)}.embarkai-ui-scope .h-auto{height:auto}.embarkai-ui-scope .h-fit{height:-moz-fit-content;height:fit-content}.embarkai-ui-scope .h-full{height:100%}.embarkai-ui-scope .h-px{height:1px}.embarkai-ui-scope .max-h-96{max-height:24rem}.embarkai-ui-scope .max-h-\\[95dvh\\]{max-height:95dvh}.embarkai-ui-scope .min-h-10{min-height:2.5rem}.embarkai-ui-scope .min-h-12{min-height:3rem}.embarkai-ui-scope .w-0{width:0}.embarkai-ui-scope .w-1{width:.25rem}.embarkai-ui-scope .w-1\\/2{width:50%}.embarkai-ui-scope .w-10{width:2.5rem}.embarkai-ui-scope .w-12{width:3rem}.embarkai-ui-scope .w-16{width:4rem}.embarkai-ui-scope .w-3{width:.75rem}.embarkai-ui-scope .w-3\\.5{width:.875rem}.embarkai-ui-scope .w-4{width:1rem}.embarkai-ui-scope .w-48{width:12rem}.embarkai-ui-scope .w-5{width:1.25rem}.embarkai-ui-scope .w-6{width:1.5rem}.embarkai-ui-scope .w-7{width:1.75rem}.embarkai-ui-scope .w-8{width:2rem}.embarkai-ui-scope .w-\\[100dvw\\]{width:100dvw}.embarkai-ui-scope .w-\\[30dvw\\]{width:30dvw}.embarkai-ui-scope .w-\\[40px\\]{width:40px}.embarkai-ui-scope .w-\\[60dvw\\]{width:60dvw}.embarkai-ui-scope .w-\\[var\\(--ui-kit-content-maw\\2c var\\(--ui-kit-maw\\)\\)\\]{width:var(--ui-kit-content-maw,var(--ui-kit-maw))}.embarkai-ui-scope .w-\\[var\\(--ui-kit-maw\\)\\]{width:var(--ui-kit-maw)}.embarkai-ui-scope .w-auto{width:auto}.embarkai-ui-scope .w-fit{width:-moz-fit-content;width:fit-content}.embarkai-ui-scope .w-full{width:100%}.embarkai-ui-scope .w-px{width:1px}.embarkai-ui-scope .min-w-0{min-width:0}.embarkai-ui-scope .min-w-10{min-width:2.5rem}.embarkai-ui-scope .min-w-16{min-width:4rem}.embarkai-ui-scope .min-w-\\[256px\\]{min-width:256px}.embarkai-ui-scope .min-w-\\[8rem\\]{min-width:8rem}.embarkai-ui-scope .min-w-\\[var\\(--radix-select-trigger-width\\)\\]{min-width:var(--radix-select-trigger-width)}.embarkai-ui-scope .max-w-7xl{max-width:80rem}.embarkai-ui-scope .max-w-\\[100px\\]{max-width:100px}.embarkai-ui-scope .max-w-\\[144px\\]{max-width:144px}.embarkai-ui-scope .max-w-\\[150px\\]{max-width:150px}.embarkai-ui-scope .max-w-\\[160px\\]{max-width:160px}.embarkai-ui-scope .max-w-\\[256px\\]{max-width:256px}.embarkai-ui-scope .max-w-\\[420px\\]{max-width:420px}.embarkai-ui-scope .max-w-\\[680px\\]{max-width:680px}.embarkai-ui-scope .max-w-\\[calc\\(100\\%-48px-var\\(--ui-kit-gap\\)\\)\\]{max-width:calc(100% - 48px - var(--ui-kit-gap))}.embarkai-ui-scope .max-w-\\[calc\\(50\\%-8px\\)\\]{max-width:calc(50% - 8px)}.embarkai-ui-scope .max-w-full{max-width:100%}.embarkai-ui-scope .max-w-sm{max-width:24rem}.embarkai-ui-scope .flex-1{flex:1 1 0%}.embarkai-ui-scope .flex-none{flex:none}.embarkai-ui-scope .flex-shrink-0,.embarkai-ui-scope .shrink-0{flex-shrink:0}.embarkai-ui-scope .-translate-x-1\\/2{--tw-translate-x:-50%}.embarkai-ui-scope .-translate-x-1\\/2,.embarkai-ui-scope .-translate-x-\\[var\\(--ui-kit-gap\\)\\]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.embarkai-ui-scope .-translate-x-\\[var\\(--ui-kit-gap\\)\\]{--tw-translate-x:calc(var(--ui-kit-gap)*-1)}.embarkai-ui-scope .-translate-y-1\\/2{--tw-translate-y:-50%}.embarkai-ui-scope .-translate-y-1\\/2,.embarkai-ui-scope .-translate-y-1\\/3{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.embarkai-ui-scope .-translate-y-1\\/3{--tw-translate-y:-33.333333%}.embarkai-ui-scope .transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes glow-warning{0%,to{box-shadow:inset 0 0 16px var(--ui-kit-bg-warning)}50%{box-shadow:inset 0 0 4px var(--ui-kit-bg-warning)}}.embarkai-ui-scope .animate-glow-warning{animation:glow-warning 2s ease infinite}@keyframes pulse{50%{opacity:.5}}.embarkai-ui-scope .animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(1turn)}}.embarkai-ui-scope .animate-spin{animation:spin 1s linear infinite}.embarkai-ui-scope .cursor-default{cursor:default}.embarkai-ui-scope .cursor-not-allowed{cursor:not-allowed}.embarkai-ui-scope .cursor-pointer{cursor:pointer}.embarkai-ui-scope .cursor-text{cursor:text}.embarkai-ui-scope .select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.embarkai-ui-scope .select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.embarkai-ui-scope .resize{resize:both}.embarkai-ui-scope .scroll-my-1{scroll-margin-top:.25rem;scroll-margin-bottom:.25rem}.embarkai-ui-scope .list-inside{list-style-position:inside}.embarkai-ui-scope .list-disc{list-style-type:disc}.embarkai-ui-scope .grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-10{grid-template-columns:repeat(10,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-11{grid-template-columns:repeat(11,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.embarkai-ui-scope .grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.embarkai-ui-scope .flex-col{flex-direction:column}.embarkai-ui-scope .flex-col-reverse{flex-direction:column-reverse}.embarkai-ui-scope .flex-wrap{flex-wrap:wrap}.embarkai-ui-scope .place-content-center{place-content:center}.embarkai-ui-scope .items-start{align-items:flex-start}.embarkai-ui-scope .items-end{align-items:flex-end}.embarkai-ui-scope .items-center{align-items:center}.embarkai-ui-scope .justify-start{justify-content:flex-start}.embarkai-ui-scope .justify-end{justify-content:flex-end}.embarkai-ui-scope .justify-center{justify-content:center}.embarkai-ui-scope .justify-between{justify-content:space-between}.embarkai-ui-scope .gap-0{gap:0}.embarkai-ui-scope .gap-1{gap:.25rem}.embarkai-ui-scope .gap-2{gap:.5rem}.embarkai-ui-scope .gap-3{gap:.75rem}.embarkai-ui-scope .gap-4{gap:1rem}.embarkai-ui-scope .gap-\\[10px\\]{gap:10px}.embarkai-ui-scope .gap-\\[var\\(--ui-kit-gap\\)\\]{gap:var(--ui-kit-gap)}.embarkai-ui-scope :is(.space-x-1>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-right:calc(.25rem*var(--tw-space-x-reverse));margin-left:calc(.25rem*(1 - var(--tw-space-x-reverse)))}.embarkai-ui-scope :is(.space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.embarkai-ui-scope :is(.space-y-0\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-top:calc(.125rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem*var(--tw-space-y-reverse))}.embarkai-ui-scope :is(.space-y-1>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-top:calc(.25rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem*var(--tw-space-y-reverse))}.embarkai-ui-scope :is(.space-y-1\\.5>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-top:calc(.375rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem*var(--tw-space-y-reverse))}.embarkai-ui-scope :is(.space-y-2>:not([hidden])~:not([hidden])){--tw-space-y-reverse:0;margin-top:calc(.5rem*(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem*var(--tw-space-y-reverse))}.embarkai-ui-scope .overflow-hidden{overflow:hidden}.embarkai-ui-scope .overflow-y-auto{overflow-y:auto}.embarkai-ui-scope .overflow-x-hidden{overflow-x:hidden}.embarkai-ui-scope .truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.embarkai-ui-scope .text-ellipsis{text-overflow:ellipsis}.embarkai-ui-scope .whitespace-nowrap{white-space:nowrap}.embarkai-ui-scope .whitespace-pre-line{white-space:pre-line}.embarkai-ui-scope .whitespace-pre-wrap{white-space:pre-wrap}.embarkai-ui-scope .break-normal{overflow-wrap:normal;word-break:normal}.embarkai-ui-scope .break-words{overflow-wrap:break-word}.embarkai-ui-scope .break-all{word-break:break-all}.embarkai-ui-scope .rounded{border-radius:.25rem}.embarkai-ui-scope .rounded-\\[10px\\]{border-radius:10px}.embarkai-ui-scope .rounded-\\[8px\\]{border-radius:8px}.embarkai-ui-scope .rounded-\\[calc\\(var\\(--ui-kit-el-bdrs\\)_\\/_2\\)\\]{border-radius:calc(var(--ui-kit-el-bdrs)/2)}.embarkai-ui-scope .rounded-\\[var\\(--ui-kit-bdrs\\)\\]{border-radius:var(--ui-kit-bdrs)}.embarkai-ui-scope .rounded-\\[var\\(--ui-kit-el-bdrs\\)\\]{border-radius:var(--ui-kit-el-bdrs)}.embarkai-ui-scope .rounded-full{border-radius:9999px}.embarkai-ui-scope .rounded-lg{border-radius:.5rem}.embarkai-ui-scope .rounded-md{border-radius:.375rem}.embarkai-ui-scope .rounded-xl{border-radius:.75rem}.embarkai-ui-scope .border{border-width:1px}.embarkai-ui-scope .border-0{border-width:0}.embarkai-ui-scope .border-2{border-width:2px}.embarkai-ui-scope .border-b{border-bottom-width:1px}.embarkai-ui-scope .border-t{border-top-width:1px}.embarkai-ui-scope .border-dashed{border-style:dashed}.embarkai-ui-scope .border-\\[var\\(--ui-kit-bd\\)\\]{border-color:var(--ui-kit-bd)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-bg-error\\)\\]{border-color:var(--ui-kit-bg-error)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-bg-success\\)\\]{border-color:var(--ui-kit-bg-success)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-bg-warning\\)\\]{border-color:var(--ui-kit-bg-warning)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-error\\)\\]{border-color:var(--ui-kit-error)}.embarkai-ui-scope .border-\\[var\\(--ui-kit-secondary\\)\\]{border-color:var(--ui-kit-secondary)}.embarkai-ui-scope .border-current{border-color:currentColor}.embarkai-ui-scope .border-transparent{border-color:transparent}.embarkai-ui-scope .border-t-transparent{border-top-color:transparent}.embarkai-ui-scope .bg-\\[\\#002c15\\]{--tw-bg-opacity:1;background-color:rgb(0 44 21/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-\\[\\#081f2c\\]{--tw-bg-opacity:1;background-color:rgb(8 31 44/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-\\[\\#f0f6f8\\]{--tw-bg-opacity:1;background-color:rgb(240 246 248/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-\\[\\#f3ba2f\\]{--tw-bg-opacity:1;background-color:rgb(243 186 47/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg\\)\\]{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-error\\)\\]{background-color:var(--ui-kit-bg-error)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-info\\)\\]{background-color:var(--ui-kit-bg-info)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-secondary\\)\\]{background-color:var(--ui-kit-bg-secondary)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-success\\)\\]{background-color:var(--ui-kit-bg-success)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-bg-warning\\)\\]{background-color:var(--ui-kit-bg-warning)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-fg\\)\\]{background-color:var(--ui-kit-fg)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-overlay\\)\\]{background-color:var(--ui-kit-overlay)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-primary\\)\\]{background-color:var(--ui-kit-primary)}.embarkai-ui-scope .bg-\\[var\\(--ui-kit-secondary\\)\\]{background-color:var(--ui-kit-secondary)}.embarkai-ui-scope .bg-blue-100{--tw-bg-opacity:1;background-color:rgb(219 234 254/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-gray-100{--tw-bg-opacity:1;background-color:rgb(243 244 246/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-green-100{--tw-bg-opacity:1;background-color:rgb(220 252 231/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-red-100{--tw-bg-opacity:1;background-color:rgb(254 226 226/var(--tw-bg-opacity,1))}.embarkai-ui-scope .bg-transparent{background-color:transparent}.embarkai-ui-scope .fill-\\[var\\(--ui-kit-bg-warning\\)\\]{fill:var(--ui-kit-bg-warning)}.embarkai-ui-scope .object-contain{-o-object-fit:contain;object-fit:contain}.embarkai-ui-scope .object-cover{-o-object-fit:cover;object-fit:cover}.embarkai-ui-scope .p-0{padding:0}.embarkai-ui-scope .p-1{padding:.25rem}.embarkai-ui-scope .p-2{padding:.5rem}.embarkai-ui-scope .p-3{padding:.75rem}.embarkai-ui-scope .p-4{padding:1rem}.embarkai-ui-scope .p-6{padding:1.5rem}.embarkai-ui-scope .p-8{padding:2rem}.embarkai-ui-scope .p-\\[12px\\]{padding:12px}.embarkai-ui-scope .p-\\[2px\\]{padding:2px}.embarkai-ui-scope .p-\\[var\\(--ui-kit-gap\\)\\]{padding:var(--ui-kit-gap)}.embarkai-ui-scope .p-\\[var\\(--ui-kit-pd\\)\\]{padding:var(--ui-kit-pd)}.embarkai-ui-scope .px-0{padding-left:0;padding-right:0}.embarkai-ui-scope .px-1{padding-left:.25rem;padding-right:.25rem}.embarkai-ui-scope .px-10{padding-left:2.5rem;padding-right:2.5rem}.embarkai-ui-scope .px-2{padding-left:.5rem;padding-right:.5rem}.embarkai-ui-scope .px-3{padding-left:.75rem;padding-right:.75rem}.embarkai-ui-scope .px-4{padding-left:1rem;padding-right:1rem}.embarkai-ui-scope .px-5{padding-left:1.25rem;padding-right:1.25rem}.embarkai-ui-scope .px-8{padding-left:2rem;padding-right:2rem}.embarkai-ui-scope .px-\\[var\\(--ui-kit-gap\\)\\]{padding-left:var(--ui-kit-gap);padding-right:var(--ui-kit-gap)}.embarkai-ui-scope .px-\\[var\\(--ui-kit-pd\\)\\]{padding-left:var(--ui-kit-pd);padding-right:var(--ui-kit-pd)}.embarkai-ui-scope .py-0{padding-top:0;padding-bottom:0}.embarkai-ui-scope .py-1{padding-top:.25rem;padding-bottom:.25rem}.embarkai-ui-scope .py-1\\.5{padding-top:.375rem;padding-bottom:.375rem}.embarkai-ui-scope .py-2{padding-top:.5rem;padding-bottom:.5rem}.embarkai-ui-scope .py-3{padding-top:.75rem;padding-bottom:.75rem}.embarkai-ui-scope .py-4{padding-top:1rem;padding-bottom:1rem}.embarkai-ui-scope .py-8{padding-top:2rem;padding-bottom:2rem}.embarkai-ui-scope .py-\\[10px\\]{padding-top:10px;padding-bottom:10px}.embarkai-ui-scope .py-\\[var\\(--ui-kit-gap\\)\\]{padding-top:var(--ui-kit-gap);padding-bottom:var(--ui-kit-gap)}.embarkai-ui-scope .py-\\[var\\(--ui-kit-pd\\)\\]{padding-top:var(--ui-kit-pd);padding-bottom:var(--ui-kit-pd)}.embarkai-ui-scope .pb-2{padding-bottom:.5rem}.embarkai-ui-scope .pb-5{padding-bottom:1.25rem}.embarkai-ui-scope .pb-6{padding-bottom:1.5rem}.embarkai-ui-scope .pb-\\[var\\(--ui-kit-pd\\)\\]{padding-bottom:var(--ui-kit-pd)}.embarkai-ui-scope .pl-\\[var\\(--ui-kit-pd\\)\\]{padding-left:var(--ui-kit-pd)}.embarkai-ui-scope .pr-8{padding-right:2rem}.embarkai-ui-scope .pt-3{padding-top:.75rem}.embarkai-ui-scope .pt-4{padding-top:1rem}.embarkai-ui-scope .pt-5{padding-top:1.25rem}.embarkai-ui-scope .text-left{text-align:left}.embarkai-ui-scope .text-center{text-align:center}.embarkai-ui-scope .text-right{text-align:right}.embarkai-ui-scope .font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.embarkai-ui-scope .font-sans{font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.embarkai-ui-scope .text-2xl{font-size:1.5rem;line-height:2rem}.embarkai-ui-scope .text-\\[10px\\]{font-size:10px}.embarkai-ui-scope .text-\\[14px\\]{font-size:14px}.embarkai-ui-scope .text-\\[16px\\]{font-size:16px}.embarkai-ui-scope .text-\\[8px\\]{font-size:8px}.embarkai-ui-scope .text-lg{font-size:1.125rem;line-height:1.75rem}.embarkai-ui-scope .text-sm{font-size:.875rem;line-height:1.25rem}.embarkai-ui-scope .text-xl{font-size:1.25rem;line-height:1.75rem}.embarkai-ui-scope .text-xs{font-size:.75rem;line-height:1rem}.embarkai-ui-scope .font-bold{font-weight:700}.embarkai-ui-scope .font-light{font-weight:300}.embarkai-ui-scope .font-medium{font-weight:500}.embarkai-ui-scope .font-normal{font-weight:400}.embarkai-ui-scope .font-semibold{font-weight:600}.embarkai-ui-scope .uppercase{text-transform:uppercase}.embarkai-ui-scope .lowercase{text-transform:lowercase}.embarkai-ui-scope .leading-3{line-height:.75rem}.embarkai-ui-scope .leading-4{line-height:1rem}.embarkai-ui-scope .leading-5{line-height:1.25rem}.embarkai-ui-scope .leading-6{line-height:1.5rem}.embarkai-ui-scope .leading-7{line-height:1.75rem}.embarkai-ui-scope .leading-8{line-height:2rem}.embarkai-ui-scope .leading-\\[8px\\]{line-height:8px}.embarkai-ui-scope .leading-none{line-height:1}.embarkai-ui-scope .leading-tight{line-height:1.25}.embarkai-ui-scope .tracking-\\[0\\.3em\\]{letter-spacing:.3em}.embarkai-ui-scope .tracking-tight{letter-spacing:-.025em}.embarkai-ui-scope .text-\\[\\#c3f53c\\]{--tw-text-opacity:1;color:rgb(195 245 60/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-\\[var\\(--ui-kit-bg-error\\)\\]{color:var(--ui-kit-bg-error)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-bg-success\\)\\]{color:var(--ui-kit-bg-success)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-bg-warning\\)\\]{color:var(--ui-kit-bg-warning)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-error\\)\\]{color:var(--ui-kit-error)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-fg\\)\\]{color:var(--ui-kit-fg)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-fg-inverted\\)\\]{color:var(--ui-kit-fg-inverted)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-fg-muted\\)\\]{color:var(--ui-kit-fg-muted)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-info\\)\\]{color:var(--ui-kit-info)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-primary\\)\\]{color:var(--ui-kit-primary)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-success\\)\\]{color:var(--ui-kit-success)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-text-secondary\\)\\]{color:var(--ui-kit-text-secondary)}.embarkai-ui-scope .text-\\[var\\(--ui-kit-warning\\)\\]{color:var(--ui-kit-warning)}.embarkai-ui-scope .text-black{--tw-text-opacity:1;color:rgb(0 0 0/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-blue-600{--tw-text-opacity:1;color:rgb(37 99 235/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-blue-800{--tw-text-opacity:1;color:rgb(30 64 175/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-gray-400{--tw-text-opacity:1;color:rgb(156 163 175/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-gray-500{--tw-text-opacity:1;color:rgb(107 114 128/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-gray-600{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-green-500{--tw-text-opacity:1;color:rgb(34 197 94/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-green-600{--tw-text-opacity:1;color:rgb(22 163 74/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-green-800{--tw-text-opacity:1;color:rgb(22 101 52/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-red-600{--tw-text-opacity:1;color:rgb(220 38 38/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-red-800{--tw-text-opacity:1;color:rgb(153 27 27/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-sky-500{--tw-text-opacity:1;color:rgb(14 165 233/var(--tw-text-opacity,1))}.embarkai-ui-scope .text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity,1))}.embarkai-ui-scope .underline{text-decoration-line:underline}.embarkai-ui-scope .underline-offset-2{text-underline-offset:2px}.embarkai-ui-scope .underline-offset-4{text-underline-offset:4px}.embarkai-ui-scope .antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.embarkai-ui-scope .opacity-0{opacity:0}.embarkai-ui-scope .opacity-100{opacity:1}.embarkai-ui-scope .opacity-50{opacity:.5}.embarkai-ui-scope .opacity-60{opacity:.6}.embarkai-ui-scope .shadow{--tw-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 1px 2px -1px rgba(0,0,0,.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color),0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.embarkai-ui-scope .shadow-\\[inset_0_0_0_1px_var\\(--ui-kit-bd\\)\\]{--tw-shadow:inset 0 0 0 1px var(--ui-kit-bd);--tw-shadow-colored:inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.embarkai-ui-scope .shadow-\\[inset_0_0_0_1px_var\\(--ui-kit-fg\\)\\]{--tw-shadow:inset 0 0 0 1px var(--ui-kit-fg);--tw-shadow-colored:inset 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}.embarkai-ui-scope .outline-none{outline:2px solid transparent;outline-offset:2px}.embarkai-ui-scope .outline{outline-style:solid}.embarkai-ui-scope .ring-0{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.embarkai-ui-scope .ring-offset-0{--tw-ring-offset-width:0px}.embarkai-ui-scope .blur{--tw-blur:blur(8px)}.embarkai-ui-scope .blur,.embarkai-ui-scope .grayscale{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.embarkai-ui-scope .grayscale{--tw-grayscale:grayscale(100%)}.embarkai-ui-scope .filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.embarkai-ui-scope .transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-\\[color\\2c box-shadow\\]{transition-property:color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-\\[width\\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .transition-none{transition-property:none}.embarkai-ui-scope .transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.embarkai-ui-scope .duration-200{transition-duration:.2s}.embarkai-ui-scope .duration-500{transition-duration:.5s}.embarkai-ui-scope .ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}:root{--w3m-z-index:10001!important}.embarkai-ui-scope{--ui-kit-ff:var(--embark-ui-ff,-apple-system,BlinkMacSystemFont,"Inter",system-ui,sans-serif);--ui-kit-maw:var(--embark-ui-maw,384px);--ui-kit-pd:var(--embark-ui-pd,12px);--ui-kit-gap:var(--embark-ui-gap,10px);--ui-kit-bdrs:var(--embark-ui-bdrs,20px);--ui-kit-el-bdrs:var(--embark-ui-element-bdrs,10px);--ui-kit-backdrop-blur:var(--embark-ui-backdrop-blur,10px)}.embarkai-ui-scope[data-current-theme-mode=light]{--ui-kit-overlay:var(--embark-ui-overlay,hsla(0,0%,100%,.8));--ui-kit-bg:var(--embark-ui-bg,#fff);--ui-kit-fg:var(--embark-ui-fg,#000);--ui-kit-fg-inverted:var(--embark-ui-fg-inverted,#fff);--ui-kit-fg-muted:var(--embark-ui-fg-muted,rgba(0,0,0,.6));--ui-kit-primary:var(--embark-ui-primary,#000);--ui-kit-secondary:var(--embark-ui-secondary,#e4e4e4);--ui-kit-bd:var(--embark-ui-bd,#ebebeb);--ui-kit-bd-intense:var(--embark-ui-bd-intense,#a9a9a9);--ui-kit-shadow:var(--embark-ui-shadow,0 0 0 0 transparent);--ui-kit-shadow-c:var(--embark-ui-shadow-c,rgba(0,0,0,.1));--ui-kit-info:var(--embark-ui-info,var(--ui-kit-fg));--ui-kit-bg-info:var(--embark-ui-bg-info,var(--ui-kit-secondary));--ui-kit-success:var(--embark-ui-success,#000);--ui-kit-bg-success:var(--embark-ui-bg-success,#21ff51);--ui-kit-warning:var(--embark-ui-warning,#000);--ui-kit-bg-warning:var(--embark-ui-bg-warning,#e9fa00);--ui-kit-error:var(--embark-ui-error,#fff);--ui-kit-bg-error:var(--embark-ui-bg-error,#d6204e)}.embarkai-ui-scope[data-current-theme-mode=dark]{--ui-kit-overlay:var(--embark-ui-overlay,rgba(0,0,0,.8));--ui-kit-bg:var(--embark-ui-bg,#1a1a1a);--ui-kit-fg:var(--embark-ui-fg,#fff);--ui-kit-fg-inverted:var(--embark-ui-fg-inverted,#000);--ui-kit-fg-muted:var(--embark-ui-fg-muted,hsla(0,0%,100%,.6));--ui-kit-primary:var(--embark-ui-primary,#fff);--ui-kit-secondary:var(--embark-ui-secondary,#2a2a2a);--ui-kit-bd:var(--embark-ui-bd,#3a3a3a);--ui-kit-bd-intense:var(--embark-ui-bd-intense,#4a4a4a);--ui-kit-shadow:var(--embark-ui-shadow,0 0 0 0 transparent);--ui-kit-shadow-c:var(--embark-ui-shadow-c,rgba(0,0,0,.1));--ui-kit-info:var(--embark-ui-info,var(--ui-kit-fg));--ui-kit-bg-info:var(--embark-ui-bg-info,var(--ui-kit-secondary));--ui-kit-success:var(--embark-ui-success,#000);--ui-kit-bg-success:var(--embark-ui-bg-success,#21ff51);--ui-kit-warning:var(--embark-ui-warning,#000);--ui-kit-bg-warning:var(--embark-ui-bg-warning,#e9fa00);--ui-kit-error:var(--embark-ui-error,#fff);--ui-kit-bg-error:var(--embark-ui-bg-error,#d6204e)}.embarkai-ui-scope,.embarkai-ui-scope *{margin:0;box-sizing:border-box;font-family:var(--ui-kit-ff);font-optical-sizing:auto;-webkit-tap-highlight-color:transparent;-moz-tap-highlight-color:transparent;-ms-tap-highlight-color:transparent;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.embarkai-ui-scope button,.embarkai-ui-scope h1,.embarkai-ui-scope h2,.embarkai-ui-scope h3,.embarkai-ui-scope h4,.embarkai-ui-scope h5,.embarkai-ui-scope h6,.embarkai-ui-scope input,.embarkai-ui-scope p,.embarkai-ui-scope select,.embarkai-ui-scope textarea{font-family:var(--ui-kit-ff)!important;margin:0}.embarkai-ui-scope button,.embarkai-ui-scope input,.embarkai-ui-scope select,.embarkai-ui-scope textarea{border-style:solid;outline:none!important;appearance:none!important;-webkit-appearance:none;-moz-appearance:none}.embarkai-ui-scope input,.embarkai-ui-scope textarea{font-size:16px!important}.embarkai-ui-scope .account-connect-button{box-shadow:0 4px 20px var(--ui-kit-shadow-c),inset 0 0 0 1px var(--ui-kit-bd);transition:transform .25s ease}.embarkai-ui-scope .account-connect-button:hover{transform:scale(1.02)}.embarkai-ui-scope .account-connect-button:active{transform:scale(1)}@keyframes lumia-mobile-dialog-fade-in{0%{opacity:0;transform:translateY(64px)}to{opacity:1;transform:translateY(0)}}@keyframes lumia-mobile-dialog-fade-out{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(64px)}}.embarkai-ui-scope .animate-mobile-dialog-in{animation:lumia-mobile-dialog-fade-in 375ms ease}.embarkai-ui-scope .animate-mobile-dialog-out{animation:lumia-mobile-dialog-fade-out 375ms ease forwards}@keyframes lumia-dialog-fade-in{0%{opacity:0}to{opacity:1}}@keyframes lumia-dialog-fade-out{0%{opacity:1}to{opacity:0}}.embarkai-ui-scope .animate-dialog-in{animation:lumia-dialog-fade-in 375ms ease}.embarkai-ui-scope .animate-dialog-out{animation:lumia-dialog-fade-out 375ms ease forwards}.embarkai-ui-scope .list-scrollbar-y{width:100%;padding-right:var(--ui-kit-list-scrollbar-pd-r,0);overflow-y:auto;overflow-x:hidden;max-height:var(--ui-kit-scrollbar-mah,300px)}.embarkai-ui-scope .list-scrollbar-y::-webkit-scrollbar{width:4px;height:4px}.embarkai-ui-scope .list-scrollbar-y::-webkit-scrollbar-thumb{cursor:pointer;width:4px;border-radius:2px;background-color:var(--ui-kit-bd)}.embarkai-ui-scope .list-scrollbar-y::-webkit-scrollbar-track{margin-top:10px;margin-bottom:10px;background-color:transparent}.embarkai-ui-scope .noScrollbars::-webkit-scrollbar{display:none}.embarkai-ui-scope div[data-radix-popper-content-wrapper]{z-index:10000!important}@keyframes rotateShine{0%{transform:translate(-50%,-50%) rotate(0deg)}to{transform:translate(-50%,-50%) rotate(1turn)}}.embarkai-ui-scope .button-shine-outline{position:absolute;top:0;left:0;width:100%;height:100%;padding:1px;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0) border-box;mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0) border-box;-webkit-mask-composite:xor;mask-composite:exclude}.embarkai-ui-scope .button-shine-outline-shiner{pointer-events:none;position:absolute;top:50%;left:50%;width:500px;height:500px;transform:translate(-50%,-50%);background:conic-gradient(from 0deg,transparent 0,var(--ui-kit-fg) 8%,transparent 24%);animation:rotateShine 3s linear infinite}.embarkai-ui-scope .file\\:mr-\\[var\\(--ui-kit-gap\\)\\]::file-selector-button{margin-right:var(--ui-kit-gap)}.embarkai-ui-scope .file\\:h-12::file-selector-button{height:3rem}.embarkai-ui-scope .file\\:cursor-pointer::file-selector-button{cursor:pointer}.embarkai-ui-scope .file\\:rounded-\\[var\\(--ui-kit-el-bdrs\\)\\]::file-selector-button{border-radius:var(--ui-kit-el-bdrs)}.embarkai-ui-scope .file\\:border-0::file-selector-button{border-width:0}.embarkai-ui-scope .file\\:bg-\\[var\\(--ui-kit-primary\\)\\]::file-selector-button{background-color:var(--ui-kit-primary)}.embarkai-ui-scope .file\\:px-\\[var\\(--ui-kit-pd\\)\\]::file-selector-button{padding-left:var(--ui-kit-pd);padding-right:var(--ui-kit-pd)}.embarkai-ui-scope .file\\:text-\\[16px\\]::file-selector-button{font-size:16px}.embarkai-ui-scope .file\\:text-\\[var\\(--ui-kit-fg-inverted\\)\\]::file-selector-button{color:var(--ui-kit-fg-inverted)}.embarkai-ui-scope .placeholder\\:text-\\[var\\(--ui-kit-fg-muted\\)\\]::-moz-placeholder{color:var(--ui-kit-fg-muted)}.embarkai-ui-scope .placeholder\\:text-\\[var\\(--ui-kit-fg-muted\\)\\]::placeholder{color:var(--ui-kit-fg-muted)}.embarkai-ui-scope .focus-within\\:border-\\[var\\(--ui-kit-bd\\)\\]:focus-within{border-color:var(--ui-kit-bd)}.embarkai-ui-scope .focus-within\\:opacity-100:focus-within{opacity:1}.embarkai-ui-scope .hover\\:bg-\\[\\#002c15\\]:hover{--tw-bg-opacity:1;background-color:rgb(0 44 21/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:bg-\\[\\#081f2c\\]:hover{--tw-bg-opacity:1;background-color:rgb(8 31 44/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:bg-\\[\\#f0f6f8\\]:hover{--tw-bg-opacity:1;background-color:rgb(240 246 248/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:bg-\\[\\#f3ba2f\\]:hover{--tw-bg-opacity:1;background-color:rgb(243 186 47/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:bg-\\[var\\(--ui-kit-bg\\)\\]:hover{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .hover\\:bg-\\[var\\(--ui-kit-secondary\\)\\]:hover{background-color:var(--ui-kit-secondary)}.embarkai-ui-scope .hover\\:bg-gray-50:hover{--tw-bg-opacity:1;background-color:rgb(249 250 251/var(--tw-bg-opacity,1))}.embarkai-ui-scope .hover\\:text-\\[\\#c3f53c\\]:hover{--tw-text-opacity:1;color:rgb(195 245 60/var(--tw-text-opacity,1))}.embarkai-ui-scope .hover\\:text-\\[var\\(--ui-kit-fg\\)\\]:hover{color:var(--ui-kit-fg)}.embarkai-ui-scope .hover\\:text-gray-600:hover{--tw-text-opacity:1;color:rgb(75 85 99/var(--tw-text-opacity,1))}.embarkai-ui-scope .hover\\:text-gray-700:hover{--tw-text-opacity:1;color:rgb(55 65 81/var(--tw-text-opacity,1))}.embarkai-ui-scope .hover\\:underline:hover{text-decoration-line:underline}.embarkai-ui-scope .hover\\:opacity-80:hover{opacity:.8}.embarkai-ui-scope .hover\\:brightness-110:hover{--tw-brightness:brightness(1.1);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.embarkai-ui-scope .file\\:hover\\:opacity-90:hover::file-selector-button{opacity:.9}.embarkai-ui-scope .focus-within\\:hover\\:opacity-100:hover:focus-within{opacity:1}.embarkai-ui-scope .focus\\:border-\\[var\\(--ui-kit-primary\\)\\]:focus{border-color:var(--ui-kit-primary)}.embarkai-ui-scope .focus\\:bg-transparent:focus{background-color:transparent}.embarkai-ui-scope .focus\\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.embarkai-ui-scope .focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.embarkai-ui-scope .focus-visible\\:ring-0:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.embarkai-ui-scope .focus-visible\\:ring-\\[2px\\]:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)}.embarkai-ui-scope .focus-visible\\:ring-transparent:focus-visible{--tw-ring-color:transparent}.embarkai-ui-scope .focus-visible\\:ring-offset-0:focus-visible{--tw-ring-offset-width:0px}.embarkai-ui-scope .active\\:bg-\\[\\#f3ba2f\\]:active{--tw-bg-opacity:1;background-color:rgb(243 186 47/var(--tw-bg-opacity,1))}.embarkai-ui-scope .active\\:bg-\\[var\\(--ui-kit-bg\\)\\]:active{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .active\\:text-\\[\\#c3f53c\\]:active{--tw-text-opacity:1;color:rgb(195 245 60/var(--tw-text-opacity,1))}.embarkai-ui-scope .active\\:opacity-60:active{opacity:.6}.embarkai-ui-scope .file\\:active\\:opacity-80:active::file-selector-button{opacity:.8}.embarkai-ui-scope .disabled\\:cursor-default:disabled{cursor:default}.embarkai-ui-scope .disabled\\:cursor-not-allowed:disabled{cursor:not-allowed}.embarkai-ui-scope .disabled\\:opacity-50:disabled{opacity:.5}.embarkai-ui-scope .disabled\\:hover\\:bg-\\[var\\(--ui-kit-bg\\)\\]:hover:disabled{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .disabled\\:hover\\:text-\\[var\\(--ui-kit-bg-error\\)\\]:hover:disabled{color:var(--ui-kit-bg-error)}.embarkai-ui-scope .disabled\\:hover\\:opacity-50:hover:disabled{opacity:.5}.embarkai-ui-scope .disabled\\:active\\:bg-\\[var\\(--ui-kit-bg\\)\\]:active:disabled{background-color:var(--ui-kit-bg)}.embarkai-ui-scope .disabled\\:active\\:text-\\[var\\(--ui-kit-bg-error\\)\\]:active:disabled{color:var(--ui-kit-bg-error)}.embarkai-ui-scope .disabled\\:active\\:opacity-50:active:disabled{opacity:.5}.embarkai-ui-scope :is(.group:hover .group-hover\\:opacity-100){opacity:1}.embarkai-ui-scope :is(.group:hover .group-hover\\:opacity-80){opacity:.8}.embarkai-ui-scope .data-\\[disabled\\]\\:pointer-events-none[data-disabled]{pointer-events:none}.embarkai-ui-scope .data-\\[size\\=default\\]\\:h-12[data-size=default]{height:3rem}.embarkai-ui-scope .data-\\[size\\=sm\\]\\:h-10[data-size=sm]{height:2.5rem}.embarkai-ui-scope .data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom]{--tw-translate-y:0.25rem}.embarkai-ui-scope .data-\\[side\\=bottom\\]\\:translate-y-1[data-side=bottom],.embarkai-ui-scope .data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.embarkai-ui-scope .data-\\[side\\=left\\]\\:-translate-x-1[data-side=left]{--tw-translate-x:-0.25rem}.embarkai-ui-scope .data-\\[side\\=right\\]\\:translate-x-1[data-side=right]{--tw-translate-x:0.25rem}.embarkai-ui-scope .data-\\[side\\=right\\]\\:translate-x-1[data-side=right],.embarkai-ui-scope .data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.embarkai-ui-scope .data-\\[side\\=top\\]\\:-translate-y-1[data-side=top]{--tw-translate-y:-0.25rem}.embarkai-ui-scope .data-\\[state\\=checked\\]\\:border-\\[var\\(--ui-kit-bd-intense\\)\\][data-state=checked]{border-color:var(--ui-kit-bd-intense)}.embarkai-ui-scope .data-\\[state\\=checked\\]\\:bg-\\[var\\(--ui-kit-secondary\\)\\][data-state=checked]{background-color:var(--ui-kit-secondary)}.embarkai-ui-scope .data-\\[state\\=checked\\]\\:text-\\[var\\(--ui-kit-fg\\)\\][data-state=checked]{color:var(--ui-kit-fg)}.embarkai-ui-scope .data-\\[disabled\\]\\:opacity-50[data-disabled]{opacity:.5}.embarkai-ui-scope :is(.\\*\\:data-\\[slot\\=select-value\\]\\:line-clamp-1[data-slot=select-value]>*){overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.embarkai-ui-scope :is(.\\*\\:data-\\[slot\\=select-value\\]\\:flex[data-slot=select-value]>*){display:flex}.embarkai-ui-scope :is(.\\*\\:data-\\[slot\\=select-value\\]\\:items-center[data-slot=select-value]>*){align-items:center}.embarkai-ui-scope :is(.\\*\\:data-\\[slot\\=select-value\\]\\:gap-\\[var\\(--ui-kit-gap\\)\\][data-slot=select-value]>*){gap:var(--ui-kit-gap)}@media (min-width:640px){.embarkai-ui-scope .sm\\:flex-row{flex-direction:row}.embarkai-ui-scope .sm\\:justify-end{justify-content:flex-end}.embarkai-ui-scope :is(.sm\\:space-x-2>:not([hidden])~:not([hidden])){--tw-space-x-reverse:0;margin-right:calc(.5rem*var(--tw-space-x-reverse));margin-left:calc(.5rem*(1 - var(--tw-space-x-reverse)))}.embarkai-ui-scope .sm\\:text-left{text-align:left}}@media (min-width:768px){.embarkai-ui-scope .md\\:h-8{height:2rem}.embarkai-ui-scope .md\\:w-8{width:2rem}.embarkai-ui-scope .md\\:gap-\\[var\\(--ui-kit-gap\\)\\]{gap:var(--ui-kit-gap)}.embarkai-ui-scope .md\\:py-1{padding-top:.25rem;padding-bottom:.25rem}.embarkai-ui-scope .md\\:text-3xl{font-size:1.875rem;line-height:2.25rem}}.embarkai-ui-scope :is(.\\[\\&_svg\\:not\\(\\[class\\*\\=\\'size-\\'\\]\\)\\]\\:size-4 svg:not([class*=size-])){width:1rem;height:1rem}.embarkai-ui-scope :is(.\\[\\&_svg\\]\\:pointer-events-none svg){pointer-events:none}.embarkai-ui-scope :is(.\\[\\&_svg\\]\\:shrink-0 svg){flex-shrink:0}`;
|
|
33856
33955
|
|
|
33857
33956
|
// src/index.ts
|
|
33858
33957
|
init_ProviderContext();
|
|
@@ -33874,7 +33973,7 @@ init_pro_mode();
|
|
|
33874
33973
|
init_utils();
|
|
33875
33974
|
import { Cloud as Cloud4, Laptop as Laptop2, Loader as Loader32, Shield as Shield2 } from "lucide-react";
|
|
33876
33975
|
import { useEffect as useEffect59, useMemo as useMemo22 } from "react";
|
|
33877
|
-
import { Fragment as Fragment48, jsx as
|
|
33976
|
+
import { Fragment as Fragment48, jsx as jsx141, jsxs as jsxs126 } from "react/jsx-runtime";
|
|
33878
33977
|
function getFormattedStatus(label, status, showStatus) {
|
|
33879
33978
|
const isStatus = showStatus && status && status !== "idle" && status !== "ready";
|
|
33880
33979
|
if (!isStatus) return label;
|
|
@@ -33905,20 +34004,20 @@ function ConnectWalletButton(props) {
|
|
|
33905
34004
|
}, [session, address, hasServerVault]);
|
|
33906
34005
|
const proMode = useProMode();
|
|
33907
34006
|
const isConnecting = connectButtonLabel !== label || isLoading;
|
|
33908
|
-
return /* @__PURE__ */
|
|
34007
|
+
return /* @__PURE__ */ jsx141("div", { "data-current-theme-mode": colorMode, className: cn2("embarkai-ui-scope w-fit h-fit", className), children: !address ? (
|
|
33909
34008
|
/** external Buttons can be provided */
|
|
33910
|
-
/* @__PURE__ */
|
|
34009
|
+
/* @__PURE__ */ jsx141(Fragment48, { children: ConnectButton ? /* @__PURE__ */ jsxs126(
|
|
33911
34010
|
ConnectButton,
|
|
33912
34011
|
{
|
|
33913
34012
|
type: "button",
|
|
33914
34013
|
disabled: isConnecting,
|
|
33915
34014
|
onClick: () => setPage("auth" /* AUTH */),
|
|
33916
34015
|
children: [
|
|
33917
|
-
isConnecting ? /* @__PURE__ */
|
|
34016
|
+
isConnecting ? /* @__PURE__ */ jsx141("span", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ jsx141(Loader32, { className: "w-4 h-4 animate-spin" }) }) : /* @__PURE__ */ jsx141(embarkAI_default2, { className: "w-6 h-6" }),
|
|
33918
34017
|
connectButtonLabel.toUpperCase()
|
|
33919
34018
|
]
|
|
33920
34019
|
}
|
|
33921
|
-
) : /* @__PURE__ */
|
|
34020
|
+
) : /* @__PURE__ */ jsxs126(
|
|
33922
34021
|
Button,
|
|
33923
34022
|
{
|
|
33924
34023
|
type: "button",
|
|
@@ -33935,12 +34034,12 @@ function ConnectWalletButton(props) {
|
|
|
33935
34034
|
"disabled:hover:bg-[var(--ui-kit-bg)] disabled:active:bg-[var(--ui-kit-bg)]"
|
|
33936
34035
|
),
|
|
33937
34036
|
children: [
|
|
33938
|
-
isConnecting ? /* @__PURE__ */
|
|
34037
|
+
isConnecting ? /* @__PURE__ */ jsx141("span", { className: "w-6 h-6 flex items-center justify-center", children: /* @__PURE__ */ jsx141(Loader32, { className: "w-4 h-4 animate-spin" }) }) : /* @__PURE__ */ jsx141(embarkAI_default2, { className: "w-6 h-6" }),
|
|
33939
34038
|
connectButtonLabel.toUpperCase()
|
|
33940
34039
|
]
|
|
33941
34040
|
}
|
|
33942
34041
|
) })
|
|
33943
|
-
) : /* @__PURE__ */
|
|
34042
|
+
) : /* @__PURE__ */ jsxs126(
|
|
33944
34043
|
"button",
|
|
33945
34044
|
{
|
|
33946
34045
|
type: "button",
|
|
@@ -33953,26 +34052,26 @@ function ConnectWalletButton(props) {
|
|
|
33953
34052
|
"rounded-[var(--ui-kit-bdrs)] p-4 max-w-sm min-w-[256px]"
|
|
33954
34053
|
),
|
|
33955
34054
|
children: [
|
|
33956
|
-
/* @__PURE__ */
|
|
33957
|
-
proMode && /* @__PURE__ */
|
|
33958
|
-
profile?.avatar ? /* @__PURE__ */
|
|
34055
|
+
/* @__PURE__ */ jsxs126("div", { className: "relative w-12 h-12 rounded-full bg-[var(--ui-kit-fg)] flex items-center justify-center flex-shrink-0", children: [
|
|
34056
|
+
proMode && /* @__PURE__ */ jsx141("span", { className: "absolute -top-1 -right-1 text-[8px] font-bold px-1 rounded bg-[var(--ui-kit-primary)] text-[var(--ui-kit-fg-inverted)] leading-3 z-10", children: "PRO" }),
|
|
34057
|
+
profile?.avatar ? /* @__PURE__ */ jsx141("img", { src: profile.avatar, alt: "User avatar", className: "w-full h-full object-cover" }) : /* @__PURE__ */ jsx141(lumia_default2, { className: "w-12 h-12" })
|
|
33959
34058
|
] }),
|
|
33960
|
-
/* @__PURE__ */
|
|
33961
|
-
/* @__PURE__ */
|
|
33962
|
-
isProfileLoading ? /* @__PURE__ */
|
|
33963
|
-
/* @__PURE__ */
|
|
34059
|
+
/* @__PURE__ */ jsxs126("div", { className: "text-left flex-1 min-w-0 text-[var(--ui-kit-fg)]", children: [
|
|
34060
|
+
/* @__PURE__ */ jsxs126("div", { className: "flex items-center gap-[var(--ui-kit-gap)]", children: [
|
|
34061
|
+
isProfileLoading ? /* @__PURE__ */ jsx141(Loader32, { className: "w-4 h-4 animate-spin" }) : /* @__PURE__ */ jsx141("span", { className: "w-fit text-[14px] leading-4 truncate max-w-[144px] text-[var(--ui-kit-fg)]", children: displayName }),
|
|
34062
|
+
/* @__PURE__ */ jsx141(KYCStatus, {})
|
|
33964
34063
|
] }),
|
|
33965
|
-
/* @__PURE__ */
|
|
34064
|
+
/* @__PURE__ */ jsx141(BalanceView, {})
|
|
33966
34065
|
] }),
|
|
33967
|
-
/* @__PURE__ */
|
|
33968
|
-
/* @__PURE__ */
|
|
33969
|
-
/* @__PURE__ */
|
|
34066
|
+
/* @__PURE__ */ jsxs126("div", { className: "flex items-center space-x-1", children: [
|
|
34067
|
+
/* @__PURE__ */ jsxs126("div", { className: "group relative", children: [
|
|
34068
|
+
/* @__PURE__ */ jsx141(
|
|
33970
34069
|
Cloud4,
|
|
33971
34070
|
{
|
|
33972
34071
|
className: `w-3 h-3 ${indicators.server ? "text-[var(--ui-kit-bg-success)]" : "text-[var(--ui-kit-bg-warning)]"}`
|
|
33973
34072
|
}
|
|
33974
34073
|
),
|
|
33975
|
-
/* @__PURE__ */
|
|
34074
|
+
/* @__PURE__ */ jsxs126(
|
|
33976
34075
|
"div",
|
|
33977
34076
|
{
|
|
33978
34077
|
className: cn2(
|
|
@@ -33987,14 +34086,14 @@ function ConnectWalletButton(props) {
|
|
|
33987
34086
|
}
|
|
33988
34087
|
)
|
|
33989
34088
|
] }),
|
|
33990
|
-
/* @__PURE__ */
|
|
33991
|
-
/* @__PURE__ */
|
|
34089
|
+
/* @__PURE__ */ jsxs126("div", { className: "group relative", children: [
|
|
34090
|
+
/* @__PURE__ */ jsx141(
|
|
33992
34091
|
Laptop2,
|
|
33993
34092
|
{
|
|
33994
34093
|
className: `w-3 h-3 ${indicators.local ? "text-[var(--ui-kit-bg-success)]" : "text-[var(--ui-kit-bg-warning)]"}`
|
|
33995
34094
|
}
|
|
33996
34095
|
),
|
|
33997
|
-
/* @__PURE__ */
|
|
34096
|
+
/* @__PURE__ */ jsxs126(
|
|
33998
34097
|
"div",
|
|
33999
34098
|
{
|
|
34000
34099
|
className: cn2(
|
|
@@ -34009,14 +34108,14 @@ function ConnectWalletButton(props) {
|
|
|
34009
34108
|
}
|
|
34010
34109
|
)
|
|
34011
34110
|
] }),
|
|
34012
|
-
/* @__PURE__ */
|
|
34013
|
-
/* @__PURE__ */
|
|
34111
|
+
/* @__PURE__ */ jsxs126("div", { className: "group relative", children: [
|
|
34112
|
+
/* @__PURE__ */ jsx141(
|
|
34014
34113
|
Shield2,
|
|
34015
34114
|
{
|
|
34016
34115
|
className: `w-3 h-3 ${indicators.backup ? "text-[var(--ui-kit-bg-success)]" : "text-[var(--ui-kit-bg-warning)]"}`
|
|
34017
34116
|
}
|
|
34018
34117
|
),
|
|
34019
|
-
/* @__PURE__ */
|
|
34118
|
+
/* @__PURE__ */ jsxs126(
|
|
34020
34119
|
"div",
|
|
34021
34120
|
{
|
|
34022
34121
|
className: cn2(
|
|
@@ -34032,7 +34131,7 @@ function ConnectWalletButton(props) {
|
|
|
34032
34131
|
)
|
|
34033
34132
|
] })
|
|
34034
34133
|
] }),
|
|
34035
|
-
!!settingsNotifications.length && /* @__PURE__ */
|
|
34134
|
+
!!settingsNotifications.length && /* @__PURE__ */ jsx141(
|
|
34036
34135
|
"div",
|
|
34037
34136
|
{
|
|
34038
34137
|
className: cn2(
|
|
@@ -34053,17 +34152,17 @@ init_SessionContext();
|
|
|
34053
34152
|
|
|
34054
34153
|
// src/hooks/childAppHooks.ts
|
|
34055
34154
|
init_SessionContext();
|
|
34056
|
-
|
|
34155
|
+
init_useBalanceViewStore();
|
|
34057
34156
|
init_useLayoutStore();
|
|
34058
34157
|
var useIsMobileView = () => {
|
|
34059
34158
|
return useLayoutStore((st) => st.isMobileView);
|
|
34060
34159
|
};
|
|
34061
34160
|
var useBalance = () => {
|
|
34062
|
-
const walletBalance =
|
|
34063
|
-
const fiatBalance =
|
|
34064
|
-
const cryptoRate =
|
|
34065
|
-
const fiatSymbol =
|
|
34066
|
-
const cryptoSymbol =
|
|
34161
|
+
const walletBalance = useBalanceViewStore((st) => st.balance);
|
|
34162
|
+
const fiatBalance = useBalanceViewStore((st) => st.fiatBalance);
|
|
34163
|
+
const cryptoRate = useBalanceViewStore((st) => st.cryptoRate);
|
|
34164
|
+
const fiatSymbol = useBalanceViewStore((st) => st.fiatSymbol);
|
|
34165
|
+
const cryptoSymbol = useBalanceViewStore((st) => st.cryptoSymbol);
|
|
34067
34166
|
return { walletBalance, fiatBalance, cryptoRate, fiatSymbol, cryptoSymbol };
|
|
34068
34167
|
};
|
|
34069
34168
|
var useIFrameReady = () => useSession((st) => st.isIframeReady);
|
|
@@ -34089,24 +34188,24 @@ init_useColorMode();
|
|
|
34089
34188
|
init_button();
|
|
34090
34189
|
init_utils();
|
|
34091
34190
|
import { Moon, Sun } from "lucide-react";
|
|
34092
|
-
import { jsx as
|
|
34191
|
+
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
34093
34192
|
function ThemeToggle(props) {
|
|
34094
34193
|
const { className, ...btnProps } = props;
|
|
34095
34194
|
const { colorMode, setColorMode } = useColorMode();
|
|
34096
|
-
return /* @__PURE__ */
|
|
34195
|
+
return /* @__PURE__ */ jsx142(
|
|
34097
34196
|
"div",
|
|
34098
34197
|
{
|
|
34099
34198
|
className: cn2("embarkai-ui-scope", className),
|
|
34100
34199
|
"data-current-theme-mode": colorMode,
|
|
34101
34200
|
style: { width: "fit-content", height: "fit-content" },
|
|
34102
|
-
children: /* @__PURE__ */
|
|
34201
|
+
children: /* @__PURE__ */ jsx142(
|
|
34103
34202
|
Button,
|
|
34104
34203
|
{
|
|
34105
34204
|
...btnProps,
|
|
34106
34205
|
variant: "ghost",
|
|
34107
34206
|
onClick: () => setColorMode(colorMode === "light" ? "dark" : "light"),
|
|
34108
34207
|
title: `Current theme: ${colorMode}. Click to switch.`,
|
|
34109
|
-
children: colorMode === "dark" ? /* @__PURE__ */
|
|
34208
|
+
children: colorMode === "dark" ? /* @__PURE__ */ jsx142(Sun, { className: "w-4 h-4" }) : /* @__PURE__ */ jsx142(Moon, { className: "w-4 h-4" })
|
|
34110
34209
|
}
|
|
34111
34210
|
)
|
|
34112
34211
|
}
|
|
@@ -34118,18 +34217,18 @@ init_i18n();
|
|
|
34118
34217
|
init_button();
|
|
34119
34218
|
init_useLayoutDataStore();
|
|
34120
34219
|
init_utils();
|
|
34121
|
-
import { jsx as
|
|
34220
|
+
import { jsx as jsx143 } from "react/jsx-runtime";
|
|
34122
34221
|
function LangToggle(props) {
|
|
34123
34222
|
const { className, ...btnProps } = props;
|
|
34124
34223
|
const { i18n } = useT();
|
|
34125
34224
|
const setPage = useLayoutDataStore((st) => st.setPage);
|
|
34126
|
-
return /* @__PURE__ */
|
|
34225
|
+
return /* @__PURE__ */ jsx143(
|
|
34127
34226
|
"div",
|
|
34128
34227
|
{
|
|
34129
34228
|
className: cn2("embarkai-ui-scope", className),
|
|
34130
34229
|
"data-mbark-language": i18n.resolvedLanguage || "en",
|
|
34131
34230
|
style: { width: "fit-content", height: "fit-content" },
|
|
34132
|
-
children: /* @__PURE__ */
|
|
34231
|
+
children: /* @__PURE__ */ jsx143(
|
|
34133
34232
|
Button,
|
|
34134
34233
|
{
|
|
34135
34234
|
...btnProps,
|
|
@@ -34151,14 +34250,14 @@ init_getUserOperationByHash();
|
|
|
34151
34250
|
init_getUserOperationReceipt();
|
|
34152
34251
|
init_cn();
|
|
34153
34252
|
import { AlertCircle as AlertCircle5, CheckCircle2 as CheckCircle28, Clock as Clock2, Copy as Copy6, ExternalLink as ExternalLink3, RefreshCw as RefreshCw4 } from "lucide-react";
|
|
34154
|
-
import * as
|
|
34253
|
+
import * as React36 from "react";
|
|
34155
34254
|
|
|
34156
34255
|
// src/internal/components/Address.tsx
|
|
34157
34256
|
init_cn();
|
|
34158
34257
|
init_button();
|
|
34159
34258
|
import { Copy as Copy5, ExternalLink as ExternalLink2 } from "lucide-react";
|
|
34160
|
-
import * as
|
|
34161
|
-
import { jsx as
|
|
34259
|
+
import * as React35 from "react";
|
|
34260
|
+
import { jsx as jsx144, jsxs as jsxs127 } from "react/jsx-runtime";
|
|
34162
34261
|
function toExplorerAddressUrl(address, chain) {
|
|
34163
34262
|
const base = chain?.blockExplorers?.default?.url;
|
|
34164
34263
|
if (!base) return null;
|
|
@@ -34179,12 +34278,12 @@ var Address = ({
|
|
|
34179
34278
|
}) => {
|
|
34180
34279
|
const addr = address || "";
|
|
34181
34280
|
const explorer = toExplorerAddressUrl(addr, chain || void 0);
|
|
34182
|
-
const [copied, setCopied] =
|
|
34183
|
-
if (!addr) return /* @__PURE__ */
|
|
34184
|
-
return /* @__PURE__ */
|
|
34185
|
-
label && /* @__PURE__ */
|
|
34186
|
-
/* @__PURE__ */
|
|
34187
|
-
showCopy && /* @__PURE__ */
|
|
34281
|
+
const [copied, setCopied] = React35.useState(false);
|
|
34282
|
+
if (!addr) return /* @__PURE__ */ jsx144("span", { className: cn("text-muted-foreground", className), children: "\u2014" });
|
|
34283
|
+
return /* @__PURE__ */ jsxs127("div", { className: cn("flex items-center gap-2", className), style: { listStyle: "none" }, children: [
|
|
34284
|
+
label && /* @__PURE__ */ jsx144("span", { className: "text-sm font-medium", children: label }),
|
|
34285
|
+
/* @__PURE__ */ jsx144("code", { className: "text-xs bg-background px-2 py-1 rounded select-all", children: truncate ? short(addr) : addr }),
|
|
34286
|
+
showCopy && /* @__PURE__ */ jsx144(
|
|
34188
34287
|
Button,
|
|
34189
34288
|
{
|
|
34190
34289
|
variant: "ghost",
|
|
@@ -34198,10 +34297,10 @@ var Address = ({
|
|
|
34198
34297
|
} catch {
|
|
34199
34298
|
}
|
|
34200
34299
|
},
|
|
34201
|
-
children: /* @__PURE__ */
|
|
34300
|
+
children: /* @__PURE__ */ jsx144(Copy5, { className: "h-4 w-4" })
|
|
34202
34301
|
}
|
|
34203
34302
|
),
|
|
34204
|
-
showExplorer && explorer && /* @__PURE__ */
|
|
34303
|
+
showExplorer && explorer && /* @__PURE__ */ jsx144(
|
|
34205
34304
|
"a",
|
|
34206
34305
|
{
|
|
34207
34306
|
href: explorer,
|
|
@@ -34209,7 +34308,7 @@ var Address = ({
|
|
|
34209
34308
|
rel: "noreferrer noopener",
|
|
34210
34309
|
className: "inline-flex items-center justify-center h-10 w-10 rounded-md hover:bg-accent text-foreground",
|
|
34211
34310
|
title: "Open in explorer",
|
|
34212
|
-
children: /* @__PURE__ */
|
|
34311
|
+
children: /* @__PURE__ */ jsx144(ExternalLink2, { className: "h-4 w-4" })
|
|
34213
34312
|
}
|
|
34214
34313
|
)
|
|
34215
34314
|
] });
|
|
@@ -34218,7 +34317,7 @@ var Address = ({
|
|
|
34218
34317
|
// src/internal/components/UserOpStatus.tsx
|
|
34219
34318
|
init_badge();
|
|
34220
34319
|
init_button();
|
|
34221
|
-
import { jsx as
|
|
34320
|
+
import { jsx as jsx145, jsxs as jsxs128 } from "react/jsx-runtime";
|
|
34222
34321
|
var UserOpStatus = ({
|
|
34223
34322
|
userOpHash,
|
|
34224
34323
|
chain,
|
|
@@ -34230,20 +34329,20 @@ var UserOpStatus = ({
|
|
|
34230
34329
|
externalState
|
|
34231
34330
|
}) => {
|
|
34232
34331
|
const useExternalState = !!externalState;
|
|
34233
|
-
const [internalReceipt, setInternalReceipt] =
|
|
34234
|
-
const [internalMempool, setInternalMempool] =
|
|
34235
|
-
const [internalError, setInternalError] =
|
|
34236
|
-
const [attempt, setAttempt] =
|
|
34237
|
-
const [internalRefreshing, setInternalRefreshing] =
|
|
34238
|
-
const [timedOut, setTimedOut] =
|
|
34239
|
-
const [rejected, setRejected] =
|
|
34240
|
-
const intervalRef =
|
|
34241
|
-
const startTimeRef =
|
|
34332
|
+
const [internalReceipt, setInternalReceipt] = React36.useState(null);
|
|
34333
|
+
const [internalMempool, setInternalMempool] = React36.useState(null);
|
|
34334
|
+
const [internalError, setInternalError] = React36.useState(null);
|
|
34335
|
+
const [attempt, setAttempt] = React36.useState(0);
|
|
34336
|
+
const [internalRefreshing, setInternalRefreshing] = React36.useState(false);
|
|
34337
|
+
const [timedOut, setTimedOut] = React36.useState(false);
|
|
34338
|
+
const [rejected, setRejected] = React36.useState(false);
|
|
34339
|
+
const intervalRef = React36.useRef(null);
|
|
34340
|
+
const startTimeRef = React36.useRef(Date.now());
|
|
34242
34341
|
const receipt = useExternalState ? externalState.receipt ?? null : internalReceipt;
|
|
34243
34342
|
const mempool = useExternalState ? externalState.mempool ?? null : internalMempool;
|
|
34244
34343
|
const error = useExternalState ? externalState.error ?? null : internalError;
|
|
34245
34344
|
const refreshing = useExternalState ? externalState.isPolling ?? false : internalRefreshing;
|
|
34246
|
-
const tick =
|
|
34345
|
+
const tick = React36.useCallback(async () => {
|
|
34247
34346
|
if (useExternalState) return;
|
|
34248
34347
|
const elapsed = Date.now() - startTimeRef.current;
|
|
34249
34348
|
if (elapsed > maxPollTimeMs) {
|
|
@@ -34286,7 +34385,7 @@ var UserOpStatus = ({
|
|
|
34286
34385
|
setAttempt((x) => x + 1);
|
|
34287
34386
|
}
|
|
34288
34387
|
}, [userOpHash, chainId, maxPollTimeMs, useExternalState]);
|
|
34289
|
-
|
|
34388
|
+
React36.useEffect(() => {
|
|
34290
34389
|
if (useExternalState) return;
|
|
34291
34390
|
console.log("[UserOpStatus] Initializing polling for UserOp hash:", userOpHash);
|
|
34292
34391
|
startTimeRef.current = Date.now();
|
|
@@ -34298,7 +34397,7 @@ var UserOpStatus = ({
|
|
|
34298
34397
|
setAttempt(0);
|
|
34299
34398
|
setInternalRefreshing(false);
|
|
34300
34399
|
}, [userOpHash, useExternalState]);
|
|
34301
|
-
|
|
34400
|
+
React36.useEffect(() => {
|
|
34302
34401
|
if (useExternalState) {
|
|
34303
34402
|
console.log("[UserOpStatus] Using external state, skipping internal polling");
|
|
34304
34403
|
return;
|
|
@@ -34333,35 +34432,35 @@ var UserOpStatus = ({
|
|
|
34333
34432
|
const stateBadge = () => {
|
|
34334
34433
|
if (receipt) {
|
|
34335
34434
|
const ok = !!receipt.success;
|
|
34336
|
-
return /* @__PURE__ */
|
|
34337
|
-
ok ? /* @__PURE__ */
|
|
34435
|
+
return /* @__PURE__ */ jsxs128(Badge, { variant: ok ? "success" : "destructive", children: [
|
|
34436
|
+
ok ? /* @__PURE__ */ jsx145(CheckCircle28, { className: "h-3 w-3" }) : /* @__PURE__ */ jsx145(AlertCircle5, { className: "h-3 w-3" }),
|
|
34338
34437
|
ok ? "Included" : "Failed"
|
|
34339
34438
|
] });
|
|
34340
34439
|
}
|
|
34341
34440
|
if (rejected) {
|
|
34342
|
-
return /* @__PURE__ */
|
|
34343
|
-
/* @__PURE__ */
|
|
34441
|
+
return /* @__PURE__ */ jsxs128(Badge, { variant: "destructive", children: [
|
|
34442
|
+
/* @__PURE__ */ jsx145(AlertCircle5, { className: "h-3 w-3" }),
|
|
34344
34443
|
" Rejected by bundler"
|
|
34345
34444
|
] });
|
|
34346
34445
|
}
|
|
34347
34446
|
if (timedOut) {
|
|
34348
|
-
return /* @__PURE__ */
|
|
34349
|
-
/* @__PURE__ */
|
|
34447
|
+
return /* @__PURE__ */ jsxs128(Badge, { variant: "warning", children: [
|
|
34448
|
+
/* @__PURE__ */ jsx145(AlertCircle5, { className: "h-3 w-3" }),
|
|
34350
34449
|
" Timeout - may be rejected"
|
|
34351
34450
|
] });
|
|
34352
34451
|
}
|
|
34353
34452
|
if (mempool) {
|
|
34354
|
-
return /* @__PURE__ */
|
|
34355
|
-
/* @__PURE__ */
|
|
34453
|
+
return /* @__PURE__ */ jsxs128(Badge, { variant: "outline", children: [
|
|
34454
|
+
/* @__PURE__ */ jsx145(Clock2, { className: "h-3 w-3" }),
|
|
34356
34455
|
" Pending in bundler"
|
|
34357
34456
|
] });
|
|
34358
34457
|
}
|
|
34359
|
-
return /* @__PURE__ */
|
|
34360
|
-
/* @__PURE__ */
|
|
34458
|
+
return /* @__PURE__ */ jsxs128(Badge, { variant: "secondary", children: [
|
|
34459
|
+
/* @__PURE__ */ jsx145(Clock2, { className: "h-3 w-3" }),
|
|
34361
34460
|
" Waiting"
|
|
34362
34461
|
] });
|
|
34363
34462
|
};
|
|
34364
|
-
return /* @__PURE__ */
|
|
34463
|
+
return /* @__PURE__ */ jsxs128(
|
|
34365
34464
|
"div",
|
|
34366
34465
|
{
|
|
34367
34466
|
className: cn(
|
|
@@ -34370,20 +34469,20 @@ var UserOpStatus = ({
|
|
|
34370
34469
|
),
|
|
34371
34470
|
style: { textAlign: "left", listStyle: "none" },
|
|
34372
34471
|
children: [
|
|
34373
|
-
/* @__PURE__ */
|
|
34374
|
-
/* @__PURE__ */
|
|
34472
|
+
/* @__PURE__ */ jsxs128("div", { className: "flex items-center justify-between mb-3", children: [
|
|
34473
|
+
/* @__PURE__ */ jsxs128("div", { className: "flex items-center gap-2", children: [
|
|
34375
34474
|
stateBadge(),
|
|
34376
|
-
/* @__PURE__ */
|
|
34475
|
+
/* @__PURE__ */ jsx145("span", { className: "text-xs text-muted-foreground", children: "This is a UserOperation hash (EIP-4337), not a L2 tx hash." })
|
|
34377
34476
|
] }),
|
|
34378
|
-
/* @__PURE__ */
|
|
34379
|
-
/* @__PURE__ */
|
|
34380
|
-
/* @__PURE__ */
|
|
34477
|
+
/* @__PURE__ */ jsxs128(Button, { variant: "ghost", size: "small", onClick: () => tick(), disabled: refreshing, className: "h-8", children: [
|
|
34478
|
+
/* @__PURE__ */ jsx145(RefreshCw4, { className: cn("h-3.5 w-3.5 mr-1", refreshing && "animate-spin") }),
|
|
34479
|
+
/* @__PURE__ */ jsx145("span", { className: "text-xs", children: "Refresh" })
|
|
34381
34480
|
] })
|
|
34382
34481
|
] }),
|
|
34383
|
-
/* @__PURE__ */
|
|
34384
|
-
/* @__PURE__ */
|
|
34385
|
-
/* @__PURE__ */
|
|
34386
|
-
/* @__PURE__ */
|
|
34482
|
+
/* @__PURE__ */ jsxs128("div", { className: "flex items-center gap-2 mb-2", children: [
|
|
34483
|
+
/* @__PURE__ */ jsx145("span", { className: "text-sm font-medium min-w-16 shrink-0", children: "UO Hash" }),
|
|
34484
|
+
/* @__PURE__ */ jsx145("code", { className: "text-xs font-mono flex-1 select-all", children: userOpHash }),
|
|
34485
|
+
/* @__PURE__ */ jsx145(
|
|
34387
34486
|
Button,
|
|
34388
34487
|
{
|
|
34389
34488
|
variant: "ghost",
|
|
@@ -34395,14 +34494,14 @@ var UserOpStatus = ({
|
|
|
34395
34494
|
} catch {
|
|
34396
34495
|
}
|
|
34397
34496
|
},
|
|
34398
|
-
children: /* @__PURE__ */
|
|
34497
|
+
children: /* @__PURE__ */ jsx145(Copy6, { className: "h-3.5 w-3.5" })
|
|
34399
34498
|
}
|
|
34400
34499
|
)
|
|
34401
34500
|
] }),
|
|
34402
|
-
receipt && receipt.receipt?.transactionHash && /* @__PURE__ */
|
|
34403
|
-
/* @__PURE__ */
|
|
34404
|
-
/* @__PURE__ */
|
|
34405
|
-
/* @__PURE__ */
|
|
34501
|
+
receipt && receipt.receipt?.transactionHash && /* @__PURE__ */ jsxs128("div", { className: "flex items-center gap-2 mb-3", children: [
|
|
34502
|
+
/* @__PURE__ */ jsx145("span", { className: "text-sm font-medium min-w-16 shrink-0", children: "Tx Hash" }),
|
|
34503
|
+
/* @__PURE__ */ jsx145("code", { className: "text-xs font-mono flex-1 select-all", children: receipt.receipt.transactionHash }),
|
|
34504
|
+
/* @__PURE__ */ jsx145(
|
|
34406
34505
|
Button,
|
|
34407
34506
|
{
|
|
34408
34507
|
variant: "ghost",
|
|
@@ -34414,10 +34513,10 @@ var UserOpStatus = ({
|
|
|
34414
34513
|
} catch {
|
|
34415
34514
|
}
|
|
34416
34515
|
},
|
|
34417
|
-
children: /* @__PURE__ */
|
|
34516
|
+
children: /* @__PURE__ */ jsx145(Copy6, { className: "h-3.5 w-3.5" })
|
|
34418
34517
|
}
|
|
34419
34518
|
),
|
|
34420
|
-
chain?.blockExplorers?.default?.url && /* @__PURE__ */
|
|
34519
|
+
chain?.blockExplorers?.default?.url && /* @__PURE__ */ jsx145(
|
|
34421
34520
|
"a",
|
|
34422
34521
|
{
|
|
34423
34522
|
href: `${chain.blockExplorers.default.url}/tx/${receipt.receipt.transactionHash}`,
|
|
@@ -34425,11 +34524,11 @@ var UserOpStatus = ({
|
|
|
34425
34524
|
rel: "noreferrer noopener",
|
|
34426
34525
|
className: "inline-flex items-center justify-center h-8 w-8 rounded-md hover:bg-accent text-foreground",
|
|
34427
34526
|
title: "Open in explorer",
|
|
34428
|
-
children: /* @__PURE__ */
|
|
34527
|
+
children: /* @__PURE__ */ jsx145(ExternalLink3, { className: "h-3.5 w-3.5" })
|
|
34429
34528
|
}
|
|
34430
34529
|
)
|
|
34431
34530
|
] }),
|
|
34432
|
-
receipt && /* @__PURE__ */
|
|
34531
|
+
receipt && /* @__PURE__ */ jsxs128("div", { className: "text-xs text-muted-foreground mb-3", children: [
|
|
34433
34532
|
"Block ",
|
|
34434
34533
|
parseInt(receipt.receipt?.blockNumber || "0x0", 16),
|
|
34435
34534
|
" \u2022 Gas Used",
|
|
@@ -34438,32 +34537,32 @@ var UserOpStatus = ({
|
|
|
34438
34537
|
" \u2022 Success ",
|
|
34439
34538
|
String(!!receipt.success)
|
|
34440
34539
|
] }),
|
|
34441
|
-
/* @__PURE__ */
|
|
34540
|
+
/* @__PURE__ */ jsx145("div", { className: "text-xs text-muted-foreground", children: !receipt && !timedOut && !rejected && /* @__PURE__ */ jsxs128("span", { className: "ml-2", children: [
|
|
34442
34541
|
"\u2022 Polling for ",
|
|
34443
34542
|
Math.round((Date.now() - startTimeRef.current) / 1e3),
|
|
34444
34543
|
"s"
|
|
34445
34544
|
] }) }),
|
|
34446
|
-
mempool && /* @__PURE__ */
|
|
34447
|
-
/* @__PURE__ */
|
|
34545
|
+
mempool && /* @__PURE__ */ jsxs128("div", { className: "text-sm text-muted-foreground mt-2", style: { listStyle: "none" }, children: [
|
|
34546
|
+
/* @__PURE__ */ jsxs128("div", { children: [
|
|
34448
34547
|
"Seen by bundler at ",
|
|
34449
|
-
/* @__PURE__ */
|
|
34548
|
+
/* @__PURE__ */ jsx145(Address, { address: mempool.entryPoint, chain, showExplorer: true, truncate: false })
|
|
34450
34549
|
] }),
|
|
34451
|
-
/* @__PURE__ */
|
|
34550
|
+
/* @__PURE__ */ jsxs128("div", { children: [
|
|
34452
34551
|
"sender ",
|
|
34453
|
-
/* @__PURE__ */
|
|
34552
|
+
/* @__PURE__ */ jsx145(Address, { address: mempool.sender, chain, truncate: false })
|
|
34454
34553
|
] })
|
|
34455
34554
|
] }),
|
|
34456
|
-
error && /* @__PURE__ */
|
|
34457
|
-
/* @__PURE__ */
|
|
34555
|
+
error && /* @__PURE__ */ jsxs128("div", { className: "text-sm text-destructive flex items-center gap-1 mt-4", children: [
|
|
34556
|
+
/* @__PURE__ */ jsx145(AlertCircle5, { className: "h-4 w-4" }),
|
|
34458
34557
|
" ",
|
|
34459
34558
|
error
|
|
34460
34559
|
] }),
|
|
34461
|
-
rejected && /* @__PURE__ */
|
|
34462
|
-
/* @__PURE__ */
|
|
34560
|
+
rejected && /* @__PURE__ */ jsxs128("div", { className: "text-sm text-destructive flex items-center gap-1 mt-4", children: [
|
|
34561
|
+
/* @__PURE__ */ jsx145(AlertCircle5, { className: "h-4 w-4" }),
|
|
34463
34562
|
"UserOperation was dropped from bundler mempool. This usually means it was invalid or replaced."
|
|
34464
34563
|
] }),
|
|
34465
|
-
timedOut && /* @__PURE__ */
|
|
34466
|
-
/* @__PURE__ */
|
|
34564
|
+
timedOut && /* @__PURE__ */ jsxs128("div", { className: "text-sm text-destructive flex items-center gap-1 mt-4", children: [
|
|
34565
|
+
/* @__PURE__ */ jsx145(AlertCircle5, { className: "h-4 w-4" }),
|
|
34467
34566
|
"Stopped polling after ",
|
|
34468
34567
|
Math.round(maxPollTimeMs / 1e3),
|
|
34469
34568
|
"s. UserOperation may have been rejected by the bundler."
|
|
@@ -34477,8 +34576,8 @@ var UserOpStatus = ({
|
|
|
34477
34576
|
init_cn();
|
|
34478
34577
|
init_button();
|
|
34479
34578
|
import { Copy as Copy7, ExternalLink as ExternalLink4 } from "lucide-react";
|
|
34480
|
-
import * as
|
|
34481
|
-
import { jsx as
|
|
34579
|
+
import * as React37 from "react";
|
|
34580
|
+
import { jsx as jsx146, jsxs as jsxs129 } from "react/jsx-runtime";
|
|
34482
34581
|
function toExplorerUrl(kind, value, chain) {
|
|
34483
34582
|
const base = chain?.blockExplorers?.default?.url;
|
|
34484
34583
|
if (!base) return null;
|
|
@@ -34501,12 +34600,12 @@ var Hash = ({
|
|
|
34501
34600
|
}) => {
|
|
34502
34601
|
const value = hash || "";
|
|
34503
34602
|
const explorer = toExplorerUrl(kind, value, chain || void 0);
|
|
34504
|
-
const [copied, setCopied] =
|
|
34505
|
-
if (!value) return /* @__PURE__ */
|
|
34506
|
-
return /* @__PURE__ */
|
|
34507
|
-
label && /* @__PURE__ */
|
|
34508
|
-
/* @__PURE__ */
|
|
34509
|
-
showCopy && /* @__PURE__ */
|
|
34603
|
+
const [copied, setCopied] = React37.useState(false);
|
|
34604
|
+
if (!value) return /* @__PURE__ */ jsx146("span", { className: cn("text-muted-foreground", className), children: "\u2014" });
|
|
34605
|
+
return /* @__PURE__ */ jsxs129("div", { className: cn("flex items-center gap-2", className), children: [
|
|
34606
|
+
label && /* @__PURE__ */ jsx146("span", { className: "text-sm font-medium", children: label }),
|
|
34607
|
+
/* @__PURE__ */ jsx146("code", { className: "text-xs bg-background px-2 py-1 rounded break-all", children: truncate ? short2(value) : value }),
|
|
34608
|
+
showCopy && /* @__PURE__ */ jsx146(
|
|
34510
34609
|
Button,
|
|
34511
34610
|
{
|
|
34512
34611
|
variant: "ghost",
|
|
@@ -34520,10 +34619,10 @@ var Hash = ({
|
|
|
34520
34619
|
} catch {
|
|
34521
34620
|
}
|
|
34522
34621
|
},
|
|
34523
|
-
children: /* @__PURE__ */
|
|
34622
|
+
children: /* @__PURE__ */ jsx146(Copy7, { className: "h-4 w-4" })
|
|
34524
34623
|
}
|
|
34525
34624
|
),
|
|
34526
|
-
showExplorer && explorer && /* @__PURE__ */
|
|
34625
|
+
showExplorer && explorer && /* @__PURE__ */ jsx146(
|
|
34527
34626
|
"a",
|
|
34528
34627
|
{
|
|
34529
34628
|
href: explorer,
|
|
@@ -34531,7 +34630,7 @@ var Hash = ({
|
|
|
34531
34630
|
rel: "noreferrer noopener",
|
|
34532
34631
|
className: "inline-flex items-center justify-center h-10 w-10 rounded-md hover:bg-accent text-foreground",
|
|
34533
34632
|
title: "Open in explorer",
|
|
34534
|
-
children: /* @__PURE__ */
|
|
34633
|
+
children: /* @__PURE__ */ jsx146(ExternalLink4, { className: "h-4 w-4" })
|
|
34535
34634
|
}
|
|
34536
34635
|
)
|
|
34537
34636
|
] });
|
|
@@ -34540,7 +34639,7 @@ var Hash = ({
|
|
|
34540
34639
|
// src/internal/components/TransactionsMenu/TransactionsList.tsx
|
|
34541
34640
|
init_base3();
|
|
34542
34641
|
import { useEffect as useEffect61, useState as useState37 } from "react";
|
|
34543
|
-
import { jsx as
|
|
34642
|
+
import { jsx as jsx147, jsxs as jsxs130 } from "react/jsx-runtime";
|
|
34544
34643
|
var TransactionsList = ({ address, itemsCount = 10 }) => {
|
|
34545
34644
|
const [transactions, setTransactions] = useState37([]);
|
|
34546
34645
|
const [loading, setLoading] = useState37(true);
|
|
@@ -34591,31 +34690,31 @@ var TransactionsList = ({ address, itemsCount = 10 }) => {
|
|
|
34591
34690
|
window.open(`${explorerUrl}/tx/${txHash}`, "_blank");
|
|
34592
34691
|
};
|
|
34593
34692
|
if (loading) {
|
|
34594
|
-
return /* @__PURE__ */
|
|
34595
|
-
/* @__PURE__ */
|
|
34596
|
-
/* @__PURE__ */
|
|
34693
|
+
return /* @__PURE__ */ jsxs130("div", { className: "p-4 text-center", children: [
|
|
34694
|
+
/* @__PURE__ */ jsx147("div", { className: "animate-spin inline-block w-6 h-6 border-2 border-current border-t-transparent rounded-full" }),
|
|
34695
|
+
/* @__PURE__ */ jsx147("p", { className: "mt-2 text-sm text-gray-600", children: "Loading transactions..." })
|
|
34597
34696
|
] });
|
|
34598
34697
|
}
|
|
34599
34698
|
if (error) {
|
|
34600
|
-
return /* @__PURE__ */
|
|
34601
|
-
/* @__PURE__ */
|
|
34602
|
-
/* @__PURE__ */
|
|
34699
|
+
return /* @__PURE__ */ jsxs130("div", { className: "p-4 text-center", children: [
|
|
34700
|
+
/* @__PURE__ */ jsx147("p", { className: "text-red-600 text-sm", children: error }),
|
|
34701
|
+
/* @__PURE__ */ jsx147("button", { onClick: () => window.location.reload(), className: "mt-2 text-blue-600 text-sm hover:underline", children: "Retry" })
|
|
34603
34702
|
] });
|
|
34604
34703
|
}
|
|
34605
34704
|
if (transactions.length === 0) {
|
|
34606
|
-
return /* @__PURE__ */
|
|
34705
|
+
return /* @__PURE__ */ jsx147("div", { className: "p-4 text-center", children: /* @__PURE__ */ jsx147("p", { className: "text-gray-600 text-sm", children: "No transactions found" }) });
|
|
34607
34706
|
}
|
|
34608
|
-
return /* @__PURE__ */
|
|
34707
|
+
return /* @__PURE__ */ jsx147("div", { className: "max-h-96 overflow-y-auto", children: /* @__PURE__ */ jsx147("div", { className: "space-y-2 p-2", children: transactions.map((tx) => /* @__PURE__ */ jsxs130(
|
|
34609
34708
|
"div",
|
|
34610
34709
|
{
|
|
34611
34710
|
className: "border rounded-lg p-3 hover:bg-gray-50 cursor-pointer transition-colors",
|
|
34612
34711
|
onClick: () => openTransaction(tx.hash),
|
|
34613
34712
|
children: [
|
|
34614
|
-
/* @__PURE__ */
|
|
34615
|
-
/* @__PURE__ */
|
|
34616
|
-
/* @__PURE__ */
|
|
34617
|
-
/* @__PURE__ */
|
|
34618
|
-
/* @__PURE__ */
|
|
34713
|
+
/* @__PURE__ */ jsxs130("div", { className: "flex justify-between items-start mb-2", children: [
|
|
34714
|
+
/* @__PURE__ */ jsxs130("div", { className: "flex-1", children: [
|
|
34715
|
+
/* @__PURE__ */ jsxs130("div", { className: "flex items-center space-x-2 mb-1", children: [
|
|
34716
|
+
/* @__PURE__ */ jsx147("span", { className: "text-xs font-mono bg-gray-100 px-2 py-1 rounded", children: formatAddress4(tx.hash) }),
|
|
34717
|
+
/* @__PURE__ */ jsx147(
|
|
34619
34718
|
"span",
|
|
34620
34719
|
{
|
|
34621
34720
|
className: `text-xs px-2 py-1 rounded ${tx.status === "ok" ? "bg-green-100 text-green-800" : "bg-red-100 text-red-800"}`,
|
|
@@ -34623,40 +34722,40 @@ var TransactionsList = ({ address, itemsCount = 10 }) => {
|
|
|
34623
34722
|
}
|
|
34624
34723
|
)
|
|
34625
34724
|
] }),
|
|
34626
|
-
/* @__PURE__ */
|
|
34627
|
-
/* @__PURE__ */
|
|
34628
|
-
/* @__PURE__ */
|
|
34629
|
-
/* @__PURE__ */
|
|
34725
|
+
/* @__PURE__ */ jsxs130("div", { className: "text-sm space-y-1", children: [
|
|
34726
|
+
/* @__PURE__ */ jsxs130("div", { children: [
|
|
34727
|
+
/* @__PURE__ */ jsx147("span", { className: "text-gray-600", children: "From:" }),
|
|
34728
|
+
/* @__PURE__ */ jsxs130("span", { className: "font-mono ml-1", children: [
|
|
34630
34729
|
formatAddress4(tx.from.hash),
|
|
34631
|
-
tx.from.is_contract && /* @__PURE__ */
|
|
34730
|
+
tx.from.is_contract && /* @__PURE__ */ jsx147("span", { className: "text-xs text-blue-600 ml-1", children: "(Contract)" })
|
|
34632
34731
|
] })
|
|
34633
34732
|
] }),
|
|
34634
|
-
/* @__PURE__ */
|
|
34635
|
-
/* @__PURE__ */
|
|
34636
|
-
/* @__PURE__ */
|
|
34733
|
+
/* @__PURE__ */ jsxs130("div", { children: [
|
|
34734
|
+
/* @__PURE__ */ jsx147("span", { className: "text-gray-600", children: "To:" }),
|
|
34735
|
+
/* @__PURE__ */ jsxs130("span", { className: "font-mono ml-1", children: [
|
|
34637
34736
|
formatAddress4(tx.to.hash),
|
|
34638
|
-
tx.to.is_contract && /* @__PURE__ */
|
|
34737
|
+
tx.to.is_contract && /* @__PURE__ */ jsx147("span", { className: "text-xs text-blue-600 ml-1", children: "(Contract)" })
|
|
34639
34738
|
] })
|
|
34640
34739
|
] }),
|
|
34641
|
-
/* @__PURE__ */
|
|
34642
|
-
/* @__PURE__ */
|
|
34643
|
-
/* @__PURE__ */
|
|
34740
|
+
/* @__PURE__ */ jsxs130("div", { children: [
|
|
34741
|
+
/* @__PURE__ */ jsx147("span", { className: "text-gray-600", children: "Value:" }),
|
|
34742
|
+
/* @__PURE__ */ jsxs130("span", { className: "font-semibold ml-1", children: [
|
|
34644
34743
|
formatValue3(tx.value),
|
|
34645
34744
|
" LUMIA"
|
|
34646
34745
|
] })
|
|
34647
34746
|
] })
|
|
34648
34747
|
] })
|
|
34649
34748
|
] }),
|
|
34650
|
-
/* @__PURE__ */
|
|
34651
|
-
/* @__PURE__ */
|
|
34652
|
-
/* @__PURE__ */
|
|
34749
|
+
/* @__PURE__ */ jsxs130("div", { className: "text-right text-xs text-gray-500", children: [
|
|
34750
|
+
/* @__PURE__ */ jsx147("div", { children: formatDate2(tx.timestamp) }),
|
|
34751
|
+
/* @__PURE__ */ jsxs130("div", { className: "mt-1", children: [
|
|
34653
34752
|
"Gas: ",
|
|
34654
34753
|
parseInt(tx.gas_used).toLocaleString()
|
|
34655
34754
|
] }),
|
|
34656
|
-
tx.method && /* @__PURE__ */
|
|
34755
|
+
tx.method && /* @__PURE__ */ jsx147("div", { className: "mt-1 text-blue-600", children: tx.method })
|
|
34657
34756
|
] })
|
|
34658
34757
|
] }),
|
|
34659
|
-
tx.transaction_types.length > 0 && /* @__PURE__ */
|
|
34758
|
+
tx.transaction_types.length > 0 && /* @__PURE__ */ jsx147("div", { className: "flex flex-wrap gap-1 mt-2", children: tx.transaction_types.map((type, idx) => /* @__PURE__ */ jsx147("span", { className: "text-xs bg-blue-100 text-blue-800 px-2 py-1 rounded-full", children: type.replace("_", " ") }, idx)) })
|
|
34660
34759
|
]
|
|
34661
34760
|
},
|
|
34662
34761
|
tx.hash
|
|
@@ -34670,7 +34769,7 @@ init_useSendTransaction();
|
|
|
34670
34769
|
|
|
34671
34770
|
// src/hooks/useUserOpStatus.ts
|
|
34672
34771
|
init_bundler();
|
|
34673
|
-
import * as
|
|
34772
|
+
import * as React39 from "react";
|
|
34674
34773
|
function useUserOpStatus(options = {}) {
|
|
34675
34774
|
const {
|
|
34676
34775
|
userOpHash,
|
|
@@ -34681,23 +34780,23 @@ function useUserOpStatus(options = {}) {
|
|
|
34681
34780
|
onReceipt,
|
|
34682
34781
|
onTxHash
|
|
34683
34782
|
} = options;
|
|
34684
|
-
const [state, setState] =
|
|
34685
|
-
const [receipt, setReceipt] =
|
|
34686
|
-
const [mempool, setMempool] =
|
|
34687
|
-
const [txHash, setTxHash] =
|
|
34688
|
-
const [error, setError] =
|
|
34689
|
-
const [isPolling, setIsPolling] =
|
|
34690
|
-
const intervalRef =
|
|
34691
|
-
const startTimeRef =
|
|
34692
|
-
const prevStateRef =
|
|
34693
|
-
const extractMempoolInfo =
|
|
34783
|
+
const [state, setState] = React39.useState("waiting");
|
|
34784
|
+
const [receipt, setReceipt] = React39.useState(null);
|
|
34785
|
+
const [mempool, setMempool] = React39.useState(null);
|
|
34786
|
+
const [txHash, setTxHash] = React39.useState(null);
|
|
34787
|
+
const [error, setError] = React39.useState(null);
|
|
34788
|
+
const [isPolling, setIsPolling] = React39.useState(false);
|
|
34789
|
+
const intervalRef = React39.useRef(null);
|
|
34790
|
+
const startTimeRef = React39.useRef(Date.now());
|
|
34791
|
+
const prevStateRef = React39.useRef("waiting");
|
|
34792
|
+
const extractMempoolInfo = React39.useCallback((m) => {
|
|
34694
34793
|
if (!m) return null;
|
|
34695
34794
|
const entryPoint = m.entryPoint || m?.userOperation?.entryPoint || null;
|
|
34696
34795
|
const sender = m.sender || m?.userOperation?.sender || null;
|
|
34697
34796
|
if (!entryPoint && !sender) return null;
|
|
34698
34797
|
return { entryPoint, sender };
|
|
34699
34798
|
}, []);
|
|
34700
|
-
const updateState =
|
|
34799
|
+
const updateState = React39.useCallback(
|
|
34701
34800
|
(newState) => {
|
|
34702
34801
|
setState(newState);
|
|
34703
34802
|
if (prevStateRef.current !== newState) {
|
|
@@ -34707,7 +34806,7 @@ function useUserOpStatus(options = {}) {
|
|
|
34707
34806
|
},
|
|
34708
34807
|
[onStateChange]
|
|
34709
34808
|
);
|
|
34710
|
-
const tick =
|
|
34809
|
+
const tick = React39.useCallback(async () => {
|
|
34711
34810
|
if (!userOpHash || !enabled) return;
|
|
34712
34811
|
if (receipt) {
|
|
34713
34812
|
console.log("[useUserOpStatus] Already have receipt, skipping tick");
|
|
@@ -34770,7 +34869,7 @@ function useUserOpStatus(options = {}) {
|
|
|
34770
34869
|
setIsPolling(false);
|
|
34771
34870
|
}
|
|
34772
34871
|
}, [userOpHash, enabled, receipt, maxPollTimeMs, extractMempoolInfo, updateState, onTxHash, onReceipt]);
|
|
34773
|
-
|
|
34872
|
+
React39.useEffect(() => {
|
|
34774
34873
|
if (!userOpHash || !enabled) return;
|
|
34775
34874
|
console.log("[useUserOpStatus] Initializing for UserOp hash:", userOpHash);
|
|
34776
34875
|
startTimeRef.current = Date.now();
|
|
@@ -34782,7 +34881,7 @@ function useUserOpStatus(options = {}) {
|
|
|
34782
34881
|
setError(null);
|
|
34783
34882
|
setIsPolling(false);
|
|
34784
34883
|
}, [userOpHash, enabled]);
|
|
34785
|
-
|
|
34884
|
+
React39.useEffect(() => {
|
|
34786
34885
|
if (!userOpHash || !enabled) {
|
|
34787
34886
|
console.log("[useUserOpStatus] Not starting polling - no hash or disabled");
|
|
34788
34887
|
return;
|
|
@@ -34818,7 +34917,7 @@ function useUserOpStatus(options = {}) {
|
|
|
34818
34917
|
}
|
|
34819
34918
|
};
|
|
34820
34919
|
}, [userOpHash, enabled, pollMs]);
|
|
34821
|
-
const refresh =
|
|
34920
|
+
const refresh = React39.useCallback(async () => {
|
|
34822
34921
|
await tick();
|
|
34823
34922
|
}, [tick]);
|
|
34824
34923
|
return {
|
|
@@ -35209,7 +35308,7 @@ function useTransactions() {
|
|
|
35209
35308
|
|
|
35210
35309
|
// src/modules/assets.ts
|
|
35211
35310
|
init_SessionContext();
|
|
35212
|
-
import
|
|
35311
|
+
import React40 from "react";
|
|
35213
35312
|
import { erc20Abi as erc20Abi5, formatUnits as formatUnits14 } from "viem";
|
|
35214
35313
|
import { useBalance as useBalance2, useReadContract as useReadContract2, useReadContracts } from "wagmi";
|
|
35215
35314
|
var COMMON_TOKENS = [
|
|
@@ -35364,7 +35463,7 @@ function useTokenBalance2(tokenAddress, userAddress) {
|
|
|
35364
35463
|
}
|
|
35365
35464
|
});
|
|
35366
35465
|
const { tokenInfo } = useTokenInfo(tokenAddress);
|
|
35367
|
-
const formattedBalance =
|
|
35466
|
+
const formattedBalance = React40.useMemo(() => {
|
|
35368
35467
|
if (!balance || !tokenInfo) return "0";
|
|
35369
35468
|
return formatUnits14(balance, tokenInfo.decimals);
|
|
35370
35469
|
}, [balance, tokenInfo]);
|