@skip-go/widget 3.14.7 → 3.14.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/{add-rGvXB0a_.js → add-9BoAgbne.js} +1 -1
- package/build/{all-wallets-CWfjangq.js → all-wallets-B6uDAmWk.js} +1 -1
- package/build/{app-store-BJS96QLx.js → app-store-DBvGDsY-.js} +1 -1
- package/build/{apple-CG7qw4Vt.js → apple-B6_Sjepp.js} +1 -1
- package/build/{arrow-bottom-TkM_KpJ3.js → arrow-bottom-BtZhhIFE.js} +1 -1
- package/build/{arrow-bottom-circle-DhQ2lph6.js → arrow-bottom-circle-MXqKtuKa.js} +1 -1
- package/build/{arrow-left-DTU7rdA_.js → arrow-left-BaS4W4R1.js} +1 -1
- package/build/{arrow-right-_LxcbgXW.js → arrow-right-QhE7KiqT.js} +1 -1
- package/build/{arrow-top-CewUhs6w.js → arrow-top-CxuOo1lg.js} +1 -1
- package/build/{bank-CdFxK5l5.js → bank-BAwILtMj.js} +1 -1
- package/build/{basic-XLgqbizR.js → basic-DGqJnVy0.js} +2 -2
- package/build/{browser-CkZk2GnR.js → browser-B9UGKrci.js} +1 -1
- package/build/{card-pLevsL2G.js → card-DfwQR5Gn.js} +1 -1
- package/build/{checkmark-DAtrTc8P.js → checkmark-Cnox2L9h.js} +1 -1
- package/build/{checkmark-bold-Bi3rgU7w.js → checkmark-bold-CWl8jgro.js} +1 -1
- package/build/{chevron-bottom-BkembWRL.js → chevron-bottom-B1hpOlGc.js} +1 -1
- package/build/{chevron-left-DRMFhLyd.js → chevron-left-Bf2kS004.js} +1 -1
- package/build/{chevron-right-BtFOTd4y.js → chevron-right-Dw7d4hTz.js} +1 -1
- package/build/{chevron-top-DdLbvIvu.js → chevron-top-BY5GX-dY.js} +1 -1
- package/build/{chrome-store-C7d9sDLo.js → chrome-store-DboFz-jG.js} +1 -1
- package/build/{clock-DfB-EQTa.js → clock-JNyHGpc4.js} +1 -1
- package/build/{close-DLGkg8mZ.js → close-yD4gI3_l.js} +1 -1
- package/build/{coinPlaceholder-DJFYibZ3.js → coinPlaceholder-DI2EFRyd.js} +1 -1
- package/build/{compass-D1m9U-wA.js → compass-CnG5vf6H.js} +1 -1
- package/build/{copy-RKqS6nJw.js → copy-DOJ-F-4A.js} +1 -1
- package/build/{core-BcGQTQjl.js → core-Cisk5LjX.js} +4 -4
- package/build/{cursor-BPRTqnSk.js → cursor-8gHPh-ZA.js} +1 -1
- package/build/{cursor-transparent-DZJcnsHR.js → cursor-transparent-g6nLBy-2.js} +1 -1
- package/build/{desktop-U_ut_R1_.js → desktop-NSl5ajKp.js} +1 -1
- package/build/{disconnect-BLxJzmPk.js → disconnect-DUowvISo.js} +1 -1
- package/build/{discord-BRXQmgsq.js → discord-CNsX4MFI.js} +1 -1
- package/build/{etherscan-DF8J6SkW.js → etherscan--YL_PySd.js} +1 -1
- package/build/{exclamation-triangle-12HSlabF.js → exclamation-triangle-Ch7F00AV.js} +1 -1
- package/build/{extension-Cnwa6fYX.js → extension-ChtGJonG.js} +1 -1
- package/build/{external-link-B9spbel6.js → external-link-CfI4I-3I.js} +1 -1
- package/build/{facebook-DjRft_8z.js → facebook-BuYEDnno.js} +1 -1
- package/build/{farcaster-CkLpx8At.js → farcaster-xf0Tseyt.js} +1 -1
- package/build/{filters-DY4QDKHN.js → filters-DboSKrC_.js} +1 -1
- package/build/{github-CZdlC-wN.js → github-C_UBHpgE.js} +1 -1
- package/build/{google-D9Lzj79L.js → google-De6vgwSo.js} +1 -1
- package/build/{help-circle-PO0tFIt1.js → help-circle-CyzvA87X.js} +1 -1
- package/build/{id-IXFr7XrU.js → id-CnDogp90.js} +1 -1
- package/build/{image-DhQTQpsu.js → image-Bncrn7zf.js} +1 -1
- package/build/{index-CEt55LHy.js → index-D5OJJ42b.js} +78 -78
- package/build/{index-BHKyIHpf.js → index-gj7tSkKX.js} +259 -92
- package/build/{index.es-BEfNQQ0w.js → index.es-C978Pj_n.js} +2 -2
- package/build/index.js +1 -1
- package/build/{info-haQI3Tm4.js → info-BqTtWTe7.js} +1 -1
- package/build/{info-circle-x1NpOaXo.js → info-circle-BakL4rwQ.js} +1 -1
- package/build/{lightbulb-DCcwNe6E.js → lightbulb-D-f595pd.js} +1 -1
- package/build/{mail-CkG38q06.js → mail-DZcj7Qu5.js} +1 -1
- package/build/{mobile-C80JT3V4.js → mobile-CnBwLsjS.js} +1 -1
- package/build/{more-scVObeFY.js → more-PhxmkdTR.js} +1 -1
- package/build/{network-placeholder-svESjcy_.js → network-placeholder-8gEwN1i5.js} +1 -1
- package/build/{nftPlaceholder-CbQZJobY.js → nftPlaceholder-68ltsf8P.js} +1 -1
- package/build/{off-PfTUVodh.js → off-Bg3kAiDn.js} +1 -1
- package/build/{play-store-DRQmjgiM.js → play-store-BG4_cqT7.js} +1 -1
- package/build/{plus-C1DmTfd3.js → plus-CAftwAC8.js} +1 -1
- package/build/{qr-code-B5WGRKQe.js → qr-code-DePv3PXC.js} +1 -1
- package/build/{recycle-horizontal-BAuZtDWX.js → recycle-horizontal-C9aGlcsd.js} +1 -1
- package/build/{refresh-CanVb6Ad.js → refresh-BpkBgZlL.js} +1 -1
- package/build/{reown-logo-jvSXbGrb.js → reown-logo-B0zdH2BK.js} +1 -1
- package/build/{search-glMpSx1Z.js → search-I_hTJ3XF.js} +1 -1
- package/build/{send-CfLvfeV4.js → send-CmiKObQz.js} +1 -1
- package/build/{swapHorizontal-CRs8lOVr.js → swapHorizontal-agKQyz3m.js} +1 -1
- package/build/{swapHorizontalBold-Cfmpnhnx.js → swapHorizontalBold-BPyeO_5K.js} +1 -1
- package/build/{swapHorizontalMedium-D2vaUWbv.js → swapHorizontalMedium-BtOq567p.js} +1 -1
- package/build/{swapHorizontalRoundedBold-Bj2j3s1b.js → swapHorizontalRoundedBold-ByubcmKj.js} +1 -1
- package/build/{swapVertical-CJ5he7_U.js → swapVertical-D_OSPt0a.js} +1 -1
- package/build/{telegram-BysprQtd.js → telegram-CI3dfcvA.js} +1 -1
- package/build/{three-dots-GO7wLffL.js → three-dots--kMgzLJU.js} +1 -1
- package/build/{twitch-Dwms_wur.js → twitch-C4hwSKe5.js} +1 -1
- package/build/{twitterIcon-DBEF184y.js → twitterIcon-379yecNh.js} +1 -1
- package/build/{verify-BL4Vv6LN.js → verify-CzZURcyM.js} +1 -1
- package/build/{verify-filled-CpLJCzPX.js → verify-filled-CRdrO4eE.js} +1 -1
- package/build/{w3m-modal-BqlnaZWK.js → w3m-modal-CqAfOzOG.js} +2 -2
- package/build/{wallet-B3wK2waU.js → wallet-BXCQBItA.js} +1 -1
- package/build/{wallet-placeholder-D5Wf3BaU.js → wallet-placeholder-CEaPYIvv.js} +1 -1
- package/build/{walletconnect-B-RrGXlD.js → walletconnect-B5Pf26ME.js} +1 -1
- package/build/{warning-circle-DhtIeAMb.js → warning-circle-CI9HefFf.js} +1 -1
- package/build/{x-Cs4WOw3P.js → x-DaySrgVm.js} +1 -1
- package/package.json +2 -2
|
@@ -3,7 +3,7 @@ import o, { useState, useMemo, useEffect, useContext, useDebugValue, createEleme
|
|
|
3
3
|
import { Scope } from "react-shadow-scope";
|
|
4
4
|
import { atom as atom$1, useAtomValue, useAtom, useSetAtom, createStore, Provider } from "jotai";
|
|
5
5
|
import NiceModal, { useModal } from "@ebay/nice-modal-react";
|
|
6
|
-
import { assets,
|
|
6
|
+
import { chains, assets, venues, bridges, ChainType, getSigningStargateClient, route, balances, getRouteWithGasOnReceive, executeMultipleRoutes, executeRoute, BridgeType, FeeType, subscribeToRouteStatus, setClientOptions } from "@skip-go/client";
|
|
7
7
|
import { atomWithQuery, atomWithMutation } from "jotai-tanstack-query";
|
|
8
8
|
import pluralize from "pluralize";
|
|
9
9
|
import { track, init, add, setUserId } from "@amplitude/analytics-browser";
|
|
@@ -2185,7 +2185,7 @@ const textProps = lt`
|
|
|
2185
2185
|
${({ textWrap }) => textWrap && `text-wrap: ${textWrap}`};
|
|
2186
2186
|
${({ monospace: monospace2 }) => monospace2 && "font-family: 'ABCDiatype-mono', monospace; letter-spacing: 0"};
|
|
2187
2187
|
${({ mainButtonColor, theme }) => mainButtonColor && `color: ${theme.brandTextColor}`};
|
|
2188
|
-
${({ capitalize }) =>
|
|
2188
|
+
${({ capitalize: capitalize2 }) => capitalize2 && lt`
|
|
2189
2189
|
&::first-letter {
|
|
2190
2190
|
text-transform: capitalize;
|
|
2191
2191
|
}
|
|
@@ -2540,6 +2540,148 @@ const endpointOptions = {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
};
|
|
2542
2542
|
const prodApiUrl = `${appUrl}/api/skip`;
|
|
2543
|
+
function atomWithStorageNoCrossTabSync(storageKey, initialValue) {
|
|
2544
|
+
const defaultStorage2 = {
|
|
2545
|
+
getItem: (key) => {
|
|
2546
|
+
if (typeof window === "undefined") return;
|
|
2547
|
+
const storedValue = localStorage.getItem(key);
|
|
2548
|
+
if (!storedValue) return initialValue;
|
|
2549
|
+
try {
|
|
2550
|
+
return JSON.parse(storedValue);
|
|
2551
|
+
} catch (_error) {
|
|
2552
|
+
return initialValue;
|
|
2553
|
+
}
|
|
2554
|
+
},
|
|
2555
|
+
setItem: (key, newValue) => {
|
|
2556
|
+
if (typeof window === "undefined") return;
|
|
2557
|
+
localStorage.setItem(key, JSON.stringify(newValue));
|
|
2558
|
+
},
|
|
2559
|
+
removeItem: (key) => {
|
|
2560
|
+
if (typeof window === "undefined") return;
|
|
2561
|
+
localStorage.removeItem(key);
|
|
2562
|
+
}
|
|
2563
|
+
};
|
|
2564
|
+
return atomWithStorage(storageKey, initialValue, defaultStorage2, { getOnInit: true });
|
|
2565
|
+
}
|
|
2566
|
+
async function getIndexedDB(dbName, storeName) {
|
|
2567
|
+
return new Promise((resolve, reject) => {
|
|
2568
|
+
if (typeof window === "undefined") {
|
|
2569
|
+
reject(new Error("IndexedDB not available"));
|
|
2570
|
+
return;
|
|
2571
|
+
}
|
|
2572
|
+
const checkRequest = indexedDB.open(dbName);
|
|
2573
|
+
checkRequest.onerror = () => reject(checkRequest.error);
|
|
2574
|
+
checkRequest.onsuccess = () => {
|
|
2575
|
+
const existingDb = checkRequest.result;
|
|
2576
|
+
const existingStores = Array.from(existingDb.objectStoreNames);
|
|
2577
|
+
if (existingStores.includes(storeName)) {
|
|
2578
|
+
resolve(existingDb);
|
|
2579
|
+
return;
|
|
2580
|
+
}
|
|
2581
|
+
existingDb.close();
|
|
2582
|
+
const currentVersion = existingDb.version;
|
|
2583
|
+
const upgradeRequest = indexedDB.open(dbName, currentVersion + 1);
|
|
2584
|
+
upgradeRequest.onerror = () => reject(upgradeRequest.error);
|
|
2585
|
+
upgradeRequest.onsuccess = () => resolve(upgradeRequest.result);
|
|
2586
|
+
upgradeRequest.onupgradeneeded = (event) => {
|
|
2587
|
+
const db = event.target.result;
|
|
2588
|
+
if (!db.objectStoreNames.contains(storeName)) {
|
|
2589
|
+
db.createObjectStore(storeName, { keyPath: "key" });
|
|
2590
|
+
}
|
|
2591
|
+
};
|
|
2592
|
+
};
|
|
2593
|
+
checkRequest.onupgradeneeded = (event) => {
|
|
2594
|
+
const db = event.target.result;
|
|
2595
|
+
if (!db.objectStoreNames.contains(storeName)) {
|
|
2596
|
+
db.createObjectStore(storeName, { keyPath: "key" });
|
|
2597
|
+
}
|
|
2598
|
+
};
|
|
2599
|
+
});
|
|
2600
|
+
}
|
|
2601
|
+
async function getIndexedDBItem(key, options) {
|
|
2602
|
+
try {
|
|
2603
|
+
const dbName = options.dbName;
|
|
2604
|
+
const storeName = options.storeName;
|
|
2605
|
+
const db = await getIndexedDB(dbName, storeName);
|
|
2606
|
+
return new Promise((resolve, reject) => {
|
|
2607
|
+
const transaction = db.transaction([storeName], "readonly");
|
|
2608
|
+
const store = transaction.objectStore(storeName);
|
|
2609
|
+
const request = store.get(key);
|
|
2610
|
+
request.onerror = () => reject(request.error);
|
|
2611
|
+
request.onsuccess = () => {
|
|
2612
|
+
const result = request.result;
|
|
2613
|
+
if (!result) {
|
|
2614
|
+
resolve(null);
|
|
2615
|
+
return;
|
|
2616
|
+
}
|
|
2617
|
+
resolve(result.data);
|
|
2618
|
+
};
|
|
2619
|
+
});
|
|
2620
|
+
} catch (error) {
|
|
2621
|
+
console.warn("IndexedDB getItem failed:", error);
|
|
2622
|
+
return null;
|
|
2623
|
+
}
|
|
2624
|
+
}
|
|
2625
|
+
async function setIndexedDBItem(key, value, options) {
|
|
2626
|
+
try {
|
|
2627
|
+
const dbName = options.dbName;
|
|
2628
|
+
const storeName = options.storeName;
|
|
2629
|
+
const db = await getIndexedDB(dbName, storeName);
|
|
2630
|
+
return new Promise((resolve, reject) => {
|
|
2631
|
+
const transaction = db.transaction([storeName], "readwrite");
|
|
2632
|
+
const store = transaction.objectStore(storeName);
|
|
2633
|
+
const cachedData = {
|
|
2634
|
+
data: value,
|
|
2635
|
+
timestamp: Date.now()
|
|
2636
|
+
};
|
|
2637
|
+
const request = store.put({ key, ...cachedData });
|
|
2638
|
+
request.onerror = () => reject(request.error);
|
|
2639
|
+
request.onsuccess = () => resolve();
|
|
2640
|
+
});
|
|
2641
|
+
} catch (error) {
|
|
2642
|
+
console.warn("IndexedDB setItem failed:", error);
|
|
2643
|
+
}
|
|
2644
|
+
}
|
|
2645
|
+
async function removeIndexedDBItem(key, options) {
|
|
2646
|
+
try {
|
|
2647
|
+
const dbName = options.dbName;
|
|
2648
|
+
const storeName = options.storeName;
|
|
2649
|
+
const db = await getIndexedDB(dbName, storeName);
|
|
2650
|
+
return new Promise((resolve, reject) => {
|
|
2651
|
+
const transaction = db.transaction([storeName], "readwrite");
|
|
2652
|
+
const store = transaction.objectStore(storeName);
|
|
2653
|
+
const request = store.delete(key);
|
|
2654
|
+
request.onerror = () => reject(request.error);
|
|
2655
|
+
request.onsuccess = () => resolve();
|
|
2656
|
+
});
|
|
2657
|
+
} catch (error) {
|
|
2658
|
+
console.warn("IndexedDB removeItem failed:", error);
|
|
2659
|
+
}
|
|
2660
|
+
}
|
|
2661
|
+
async function clearIndexedDB(options) {
|
|
2662
|
+
try {
|
|
2663
|
+
const dbName = options.dbName;
|
|
2664
|
+
const storeName = options.storeName;
|
|
2665
|
+
const db = await getIndexedDB(dbName, storeName);
|
|
2666
|
+
return new Promise((resolve, reject) => {
|
|
2667
|
+
const transaction = db.transaction([storeName], "readwrite");
|
|
2668
|
+
const store = transaction.objectStore(storeName);
|
|
2669
|
+
const request = store.clear();
|
|
2670
|
+
request.onerror = () => reject(request.error);
|
|
2671
|
+
request.onsuccess = () => resolve();
|
|
2672
|
+
});
|
|
2673
|
+
} catch (error) {
|
|
2674
|
+
console.warn("IndexedDB clear failed:", error);
|
|
2675
|
+
}
|
|
2676
|
+
}
|
|
2677
|
+
function createIndexedDBStorage(options) {
|
|
2678
|
+
return {
|
|
2679
|
+
getItem: (key) => getIndexedDBItem(key, options),
|
|
2680
|
+
setItem: (key, value) => setIndexedDBItem(key, value, options),
|
|
2681
|
+
removeItem: (key) => removeIndexedDBItem(key, options),
|
|
2682
|
+
clear: () => clearIndexedDB(options)
|
|
2683
|
+
};
|
|
2684
|
+
}
|
|
2543
2685
|
const defaultSkipClientConfig = {
|
|
2544
2686
|
apiUrl: prodApiUrl,
|
|
2545
2687
|
endpointOptions
|
|
@@ -2565,30 +2707,39 @@ const flattenData = (data, chains2) => {
|
|
|
2565
2707
|
return flattenedData;
|
|
2566
2708
|
};
|
|
2567
2709
|
const onlyTestnetsAtom = atom$1(void 0);
|
|
2568
|
-
const
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2710
|
+
const { getItem, setItem } = createIndexedDBStorage({
|
|
2711
|
+
dbName: "skip-go-widget",
|
|
2712
|
+
storeName: "data-cache"
|
|
2713
|
+
});
|
|
2714
|
+
const getCachedDataWhileQuerying = ({
|
|
2715
|
+
queryKey,
|
|
2716
|
+
cacheKey,
|
|
2717
|
+
queryFn,
|
|
2718
|
+
options = {}
|
|
2719
|
+
}) => {
|
|
2572
2720
|
return {
|
|
2573
|
-
queryKey
|
|
2721
|
+
queryKey,
|
|
2574
2722
|
queryFn: async () => {
|
|
2575
|
-
const
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
}
|
|
2582
|
-
|
|
2723
|
+
const cachedData = await getItem(cacheKey);
|
|
2724
|
+
if (cachedData !== null) {
|
|
2725
|
+
queryFn().then(async (newData2) => {
|
|
2726
|
+
await setItem(cacheKey, newData2);
|
|
2727
|
+
});
|
|
2728
|
+
return cachedData;
|
|
2729
|
+
}
|
|
2730
|
+
const newData = await queryFn();
|
|
2731
|
+
await setItem(cacheKey, newData);
|
|
2732
|
+
return newData;
|
|
2583
2733
|
},
|
|
2584
|
-
enabled:
|
|
2734
|
+
enabled: (options == null ? void 0 : options.enabled) ?? true
|
|
2585
2735
|
};
|
|
2586
|
-
}
|
|
2736
|
+
};
|
|
2587
2737
|
const skipChainsAtom = atomWithQuery((get) => {
|
|
2588
2738
|
const { apiUrl, apiKey, cacheDurationMs } = get(skipClientConfigAtom);
|
|
2589
2739
|
const onlyTestnets = get(onlyTestnetsAtom);
|
|
2590
|
-
return {
|
|
2740
|
+
return getCachedDataWhileQuerying({
|
|
2591
2741
|
queryKey: ["skipChains", { onlyTestnets, apiUrl, apiKey, cacheDurationMs }],
|
|
2742
|
+
cacheKey: `skip-chains-${onlyTestnets ? "testnet" : "mainnet"}`,
|
|
2592
2743
|
queryFn: async () => {
|
|
2593
2744
|
const response = await chains({
|
|
2594
2745
|
includeEvm: true,
|
|
@@ -2598,24 +2749,52 @@ const skipChainsAtom = atomWithQuery((get) => {
|
|
|
2598
2749
|
});
|
|
2599
2750
|
return response;
|
|
2600
2751
|
},
|
|
2601
|
-
enabled: onlyTestnets !== void 0 && apiUrl !== void 0
|
|
2602
|
-
};
|
|
2752
|
+
options: { enabled: onlyTestnets !== void 0 && apiUrl !== void 0 }
|
|
2753
|
+
});
|
|
2754
|
+
});
|
|
2755
|
+
const skipAssetsAtom = atomWithQuery((get) => {
|
|
2756
|
+
const { apiUrl, apiKey, cacheDurationMs } = get(skipClientConfigAtom);
|
|
2757
|
+
const chains2 = get(skipChainsAtom);
|
|
2758
|
+
const onlyTestnets = get(onlyTestnetsAtom);
|
|
2759
|
+
return getCachedDataWhileQuerying({
|
|
2760
|
+
queryKey: ["skipAssets", onlyTestnets, { onlyTestnets, apiUrl, apiKey, cacheDurationMs }],
|
|
2761
|
+
cacheKey: `skip-assets-${onlyTestnets ? "testnet" : "mainnet"}`,
|
|
2762
|
+
queryFn: async () => {
|
|
2763
|
+
const response = await assets({
|
|
2764
|
+
includeEvmAssets: true,
|
|
2765
|
+
includeCw20Assets: true,
|
|
2766
|
+
includeSvmAssets: true,
|
|
2767
|
+
onlyTestnets,
|
|
2768
|
+
abortDuplicateRequests: true
|
|
2769
|
+
});
|
|
2770
|
+
return flattenData(response, chains2.data);
|
|
2771
|
+
},
|
|
2772
|
+
options: { enabled: onlyTestnets !== void 0 && apiUrl !== void 0 }
|
|
2773
|
+
});
|
|
2603
2774
|
});
|
|
2604
2775
|
const skipBridgesAtom = atomWithQuery((get) => {
|
|
2605
2776
|
const { apiUrl, apiKey, cacheDurationMs } = get(skipClientConfigAtom);
|
|
2606
|
-
return {
|
|
2777
|
+
return getCachedDataWhileQuerying({
|
|
2607
2778
|
queryKey: ["skipBridges", { apiUrl, apiKey, cacheDurationMs }],
|
|
2608
|
-
|
|
2609
|
-
|
|
2779
|
+
cacheKey: "skip-bridges",
|
|
2780
|
+
queryFn: async () => {
|
|
2781
|
+
return await bridges();
|
|
2782
|
+
}
|
|
2783
|
+
});
|
|
2610
2784
|
});
|
|
2611
2785
|
const skipSwapVenuesAtom = atomWithQuery((get) => {
|
|
2612
2786
|
const { apiUrl, apiKey, cacheDurationMs } = get(skipClientConfigAtom);
|
|
2613
2787
|
const onlyTestnets = get(onlyTestnetsAtom);
|
|
2614
|
-
return {
|
|
2615
|
-
queryKey: ["
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2788
|
+
return getCachedDataWhileQuerying({
|
|
2789
|
+
queryKey: ["skipSwapVenues", onlyTestnets, { onlyTestnets, apiUrl, apiKey, cacheDurationMs }],
|
|
2790
|
+
cacheKey: `skip-swap-venues-${onlyTestnets ? "testnet" : "mainnet"}`,
|
|
2791
|
+
queryFn: async () => {
|
|
2792
|
+
return await venues({
|
|
2793
|
+
onlyTestnets
|
|
2794
|
+
});
|
|
2795
|
+
},
|
|
2796
|
+
options: { enabled: onlyTestnets !== void 0 && apiUrl !== void 0 }
|
|
2797
|
+
});
|
|
2619
2798
|
});
|
|
2620
2799
|
var RoutePreference = /* @__PURE__ */ ((RoutePreference2) => {
|
|
2621
2800
|
RoutePreference2["FASTEST"] = "Fastest";
|
|
@@ -4186,6 +4365,7 @@ const formatDisplayAmount = (input, options = {}) => {
|
|
|
4186
4365
|
num = input;
|
|
4187
4366
|
}
|
|
4188
4367
|
const abs2 = Math.abs(num);
|
|
4368
|
+
const absRounded = Math.abs(Number(num.toFixed(decimals)));
|
|
4189
4369
|
const THRESHOLD = 10 ** -decimals;
|
|
4190
4370
|
if (abs2 > 0 && abs2 < THRESHOLD) {
|
|
4191
4371
|
const thresholdStr = THRESHOLD.toFixed(decimals);
|
|
@@ -4196,10 +4376,17 @@ const formatDisplayAmount = (input, options = {}) => {
|
|
|
4196
4376
|
{ value: 1e6, symbol: "M" },
|
|
4197
4377
|
{ value: 1e3, symbol: "K" }
|
|
4198
4378
|
];
|
|
4199
|
-
for (
|
|
4200
|
-
|
|
4201
|
-
|
|
4202
|
-
|
|
4379
|
+
for (let i = 0; i < scales.length; i++) {
|
|
4380
|
+
const { value, symbol } = scales[i];
|
|
4381
|
+
if (absRounded >= value) {
|
|
4382
|
+
const scaled = num / value;
|
|
4383
|
+
let formattedNumber = Number(scaled.toFixed(2));
|
|
4384
|
+
if (formattedNumber >= 1e3) {
|
|
4385
|
+
const next2 = scales[i - 1];
|
|
4386
|
+
formattedNumber = Number((num / next2.value).toFixed(2));
|
|
4387
|
+
return `${formattedNumber.toString().replace(/\.?0+$/, "")}${next2.symbol}`;
|
|
4388
|
+
}
|
|
4389
|
+
return `${formattedNumber.toString().replace(/\.?0+$/, "")}${symbol}`;
|
|
4203
4390
|
}
|
|
4204
4391
|
}
|
|
4205
4392
|
}
|
|
@@ -4740,29 +4927,6 @@ function atomWithDebounce(delayMilliseconds = 250) {
|
|
|
4740
4927
|
};
|
|
4741
4928
|
}
|
|
4742
4929
|
const callbacksAtom = atom$1();
|
|
4743
|
-
function atomWithStorageNoCrossTabSync(storageKey, initialValue) {
|
|
4744
|
-
const defaultStorage2 = {
|
|
4745
|
-
getItem: (key) => {
|
|
4746
|
-
if (typeof window === "undefined") return;
|
|
4747
|
-
const storedValue = localStorage.getItem(key);
|
|
4748
|
-
if (!storedValue) return initialValue;
|
|
4749
|
-
try {
|
|
4750
|
-
return JSON.parse(storedValue);
|
|
4751
|
-
} catch (_error) {
|
|
4752
|
-
return initialValue;
|
|
4753
|
-
}
|
|
4754
|
-
},
|
|
4755
|
-
setItem: (key, newValue) => {
|
|
4756
|
-
if (typeof window === "undefined") return;
|
|
4757
|
-
localStorage.setItem(key, JSON.stringify(newValue));
|
|
4758
|
-
},
|
|
4759
|
-
removeItem: (key) => {
|
|
4760
|
-
if (typeof window === "undefined") return;
|
|
4761
|
-
localStorage.removeItem(key);
|
|
4762
|
-
}
|
|
4763
|
-
};
|
|
4764
|
-
return atomWithStorage(storageKey, initialValue, defaultStorage2, { getOnInit: true });
|
|
4765
|
-
}
|
|
4766
4930
|
const walletConnectAtom = atom$1({
|
|
4767
4931
|
options: {
|
|
4768
4932
|
projectId: "ff1b9e9bd6329cfb07642bd7f4d11a8c",
|
|
@@ -47763,7 +47927,7 @@ function walletConnect(parameters) {
|
|
|
47763
47927
|
const optionalChains = config2.chains.map((x2) => x2.id);
|
|
47764
47928
|
if (!optionalChains.length)
|
|
47765
47929
|
return;
|
|
47766
|
-
const { EthereumProvider } = await import("./index.es-
|
|
47930
|
+
const { EthereumProvider } = await import("./index.es-C978Pj_n.js").then((n) => n.i);
|
|
47767
47931
|
return await EthereumProvider.init({
|
|
47768
47932
|
...parameters,
|
|
47769
47933
|
disableProviderPing: true,
|
|
@@ -49071,6 +49235,9 @@ const Modal = ({
|
|
|
49071
49235
|
const [wasVisible, setWasVisible] = useState();
|
|
49072
49236
|
const disableShadowDom = useAtomValue(disableShadowDomAtom);
|
|
49073
49237
|
const rootId = useAtomValue(rootIdAtom);
|
|
49238
|
+
const handleModalWheel = (event) => {
|
|
49239
|
+
event.stopPropagation();
|
|
49240
|
+
};
|
|
49074
49241
|
useEffect(() => {
|
|
49075
49242
|
if (wasVisible && !modal.visible) {
|
|
49076
49243
|
onOpenChange == null ? void 0 : onOpenChange(false);
|
|
@@ -49117,6 +49284,7 @@ const Modal = ({
|
|
|
49117
49284
|
open: modal.visible,
|
|
49118
49285
|
"data-root-id": rootId,
|
|
49119
49286
|
blurBackground,
|
|
49287
|
+
onWheel: handleModalWheel,
|
|
49120
49288
|
onAnimationEnd: () => {
|
|
49121
49289
|
if (!modal.visible) {
|
|
49122
49290
|
if (modalRef.current) {
|
|
@@ -52406,16 +52574,30 @@ const AssetAndChainSelectorModal = createModal(
|
|
|
52406
52574
|
selectedAsset,
|
|
52407
52575
|
selectChain,
|
|
52408
52576
|
context,
|
|
52409
|
-
|
|
52577
|
+
onlySelectChain
|
|
52410
52578
|
} = modalProps;
|
|
52411
|
-
const {
|
|
52579
|
+
const {
|
|
52580
|
+
data: assets2,
|
|
52581
|
+
isFetching: isFetchingAssets,
|
|
52582
|
+
isPending: isPendingAssets
|
|
52583
|
+
} = useAtomValue(skipAssetsAtom);
|
|
52412
52584
|
const ibcEurekaHighlightedAssets = useAtomValue(ibcEurekaHighlightedAssetsAtom);
|
|
52413
|
-
const {
|
|
52414
|
-
const isLoading =
|
|
52585
|
+
const { isFetching: isFetchingChains, isPending: isPendingChains } = useAtomValue(skipChainsAtom);
|
|
52586
|
+
const isLoading = isFetchingAssets && isPendingAssets || isFetchingChains && isPendingChains;
|
|
52415
52587
|
const [showSkeleton, setShowSkeleton] = useState(true);
|
|
52416
52588
|
const [searchQuery, setSearchQuery] = useState("");
|
|
52417
52589
|
const [groupedAssetSelected, setGroupedAssetSelected] = useState(null);
|
|
52418
52590
|
const listHeight = useListHeight(ITEM_HEIGHT);
|
|
52591
|
+
const uniqueAssetsBySymbol = useMemo(() => {
|
|
52592
|
+
const seen = /* @__PURE__ */ new Map();
|
|
52593
|
+
assets2 == null ? void 0 : assets2.forEach((asset) => {
|
|
52594
|
+
const chainId = asset.chainId;
|
|
52595
|
+
if (chainId && !seen.has(chainId)) {
|
|
52596
|
+
seen.set(chainId, asset);
|
|
52597
|
+
}
|
|
52598
|
+
});
|
|
52599
|
+
return Array.from(seen.values());
|
|
52600
|
+
}, [assets2]);
|
|
52419
52601
|
const resetInput = () => {
|
|
52420
52602
|
setSearchQuery("");
|
|
52421
52603
|
};
|
|
@@ -52438,14 +52620,18 @@ const AssetAndChainSelectorModal = createModal(
|
|
|
52438
52620
|
);
|
|
52439
52621
|
const groupedAssetsByRecommendedSymbol = useGroupedAssetByRecommendedSymbol({ context });
|
|
52440
52622
|
const selectedGroup = useMemo(() => {
|
|
52441
|
-
if (
|
|
52623
|
+
if (onlySelectChain)
|
|
52624
|
+
return {
|
|
52625
|
+
assets: uniqueAssetsBySymbol
|
|
52626
|
+
};
|
|
52442
52627
|
const asset = (groupedAssetSelected == null ? void 0 : groupedAssetSelected.assets[0]) || selectedAsset;
|
|
52443
52628
|
if (!asset) return;
|
|
52444
52629
|
return groupedAssetsByRecommendedSymbol == null ? void 0 : groupedAssetsByRecommendedSymbol.find(
|
|
52445
52630
|
(group) => group.id === asset.recommendedSymbol
|
|
52446
52631
|
);
|
|
52447
52632
|
}, [
|
|
52448
|
-
|
|
52633
|
+
onlySelectChain,
|
|
52634
|
+
uniqueAssetsBySymbol,
|
|
52449
52635
|
groupedAssetSelected == null ? void 0 : groupedAssetSelected.assets,
|
|
52450
52636
|
selectedAsset,
|
|
52451
52637
|
groupedAssetsByRecommendedSymbol
|
|
@@ -52457,14 +52643,14 @@ const AssetAndChainSelectorModal = createModal(
|
|
|
52457
52643
|
context
|
|
52458
52644
|
});
|
|
52459
52645
|
useEffect(() => {
|
|
52460
|
-
if (!isLoading
|
|
52646
|
+
if (!isLoading) {
|
|
52461
52647
|
setShowSkeleton(false);
|
|
52462
52648
|
}
|
|
52463
52649
|
}, [isLoading, assets2]);
|
|
52464
52650
|
useEffect(() => {
|
|
52465
52651
|
setSearchQuery("");
|
|
52466
52652
|
}, [modal.visible]);
|
|
52467
|
-
const componentName = `${context} ${selectChain ? "chain" : "asset"} modal`;
|
|
52653
|
+
const componentName = `${context} ${selectChain || onlySelectChain ? "chain" : "asset"} modal`;
|
|
52468
52654
|
const handleSearch = (term) => {
|
|
52469
52655
|
track(`${componentName}: search input - changed`, { term });
|
|
52470
52656
|
setSearchQuery(term);
|
|
@@ -52530,7 +52716,7 @@ const AssetAndChainSelectorModal = createModal(
|
|
|
52530
52716
|
searchTerm: searchQuery,
|
|
52531
52717
|
setSearchTerm: setSearchQuery,
|
|
52532
52718
|
onKeyDown,
|
|
52533
|
-
overrideSelectedGroup:
|
|
52719
|
+
overrideSelectedGroup: onlySelectChain
|
|
52534
52720
|
}
|
|
52535
52721
|
),
|
|
52536
52722
|
showSkeleton || !filteredAssets && !filteredChains ? /* @__PURE__ */ jsx(StyledColumn, { height: listHeight, children: Array.from({ length: 8 }, (_2, index) => /* @__PURE__ */ jsx(Skeleton, {}, index)) }) : /* @__PURE__ */ jsx(
|
|
@@ -53622,18 +53808,8 @@ const SwapExecutionSwapIcon = ({
|
|
|
53622
53808
|
)
|
|
53623
53809
|
}
|
|
53624
53810
|
);
|
|
53625
|
-
const
|
|
53626
|
-
|
|
53627
|
-
const { data: chains2 } = useAtomValue(skipChainsAtom);
|
|
53628
|
-
const isGasStationTx = useMemo(() => {
|
|
53629
|
-
if (!chains2 || !route2) return false;
|
|
53630
|
-
const sourceChain = chains2.find((chain) => chain.chainId === route2.sourceAssetChainId);
|
|
53631
|
-
const destChain = chains2.find((chain) => chain.chainId === route2.destAssetChainId);
|
|
53632
|
-
if (!sourceChain || !destChain) return false;
|
|
53633
|
-
const isAxelarTransfer = route2.operations.some((op) => OperationType.axelarTransfer in op);
|
|
53634
|
-
return (sourceChain == null ? void 0 : sourceChain.chainType) === ChainType.Evm && !isAxelarTransfer && GAS_STATION_CHAIN_IDS.includes(destChain == null ? void 0 : destChain.chainId);
|
|
53635
|
-
}, [chains2, route2]);
|
|
53636
|
-
return isGasStationTx;
|
|
53811
|
+
const capitalize = (s) => {
|
|
53812
|
+
return s.charAt(0).toUpperCase() + s.slice(1);
|
|
53637
53813
|
};
|
|
53638
53814
|
const operationTypeToIcon = {
|
|
53639
53815
|
// swap icon
|
|
@@ -53679,7 +53855,6 @@ const SwapExecutionPageRouteDetailed = ({
|
|
|
53679
53855
|
const { data: swapVenues } = useAtomValue(skipSwapVenuesAtom);
|
|
53680
53856
|
const { data: bridges2 } = useAtomValue(skipBridgesAtom);
|
|
53681
53857
|
const { originalRoute } = useAtomValue(swapExecutionStateAtom);
|
|
53682
|
-
const isGasStationTx = useIsGasStationTx();
|
|
53683
53858
|
const status = statusData == null ? void 0 : statusData.transferEvents;
|
|
53684
53859
|
const getBridgeSwapVenue = useCallback(
|
|
53685
53860
|
(operation) => {
|
|
@@ -53690,8 +53865,9 @@ const SwapExecutionPageRouteDetailed = ({
|
|
|
53690
53865
|
const swapVenue = swapVenues == null ? void 0 : swapVenues.find((swapVenue2) => swapVenue2.chainId === swapVenueId);
|
|
53691
53866
|
const imageUrl = (bridge == null ? void 0 : bridge.logoUri) ?? (swapVenue == null ? void 0 : swapVenue.logoUri);
|
|
53692
53867
|
const isSvg = imageUrl == null ? void 0 : imageUrl.endsWith(".svg");
|
|
53868
|
+
const fallbackName = (operation == null ? void 0 : operation.type) ? capitalize(operation.type) : "";
|
|
53693
53869
|
const bridgeOrSwapVenue = {
|
|
53694
|
-
name: (bridge == null ? void 0 : bridge.name) ?? (swapVenue == null ? void 0 : swapVenue.name),
|
|
53870
|
+
name: (bridge == null ? void 0 : bridge.name) ?? (swapVenue == null ? void 0 : swapVenue.name) ?? fallbackName,
|
|
53695
53871
|
image: imageUrl,
|
|
53696
53872
|
isSvg
|
|
53697
53873
|
};
|
|
@@ -53721,14 +53897,13 @@ const SwapExecutionPageRouteDetailed = ({
|
|
|
53721
53897
|
(operation) => {
|
|
53722
53898
|
const simpleOperationType = operationTypeToSimpleOperationType[operation.type];
|
|
53723
53899
|
const bridgeOrSwapVenue = getBridgeSwapVenue(operation);
|
|
53724
|
-
const
|
|
53725
|
-
const tooltipText = isBankSend ? `${simpleOperationType} with BankSend` : `${simpleOperationType} with ${bridgeOrSwapVenue.name}`;
|
|
53900
|
+
const tooltipText = `${simpleOperationType} with ${bridgeOrSwapVenue.name}`;
|
|
53726
53901
|
return /* @__PURE__ */ jsx(StyledOperationTypeAndTooltipContainer, { align: "center", children: /* @__PURE__ */ jsx(
|
|
53727
53902
|
Tooltip,
|
|
53728
53903
|
{
|
|
53729
53904
|
content: /* @__PURE__ */ jsxs(SmallText, { normalTextColor: true, textWrap: "nowrap", children: [
|
|
53730
53905
|
tooltipText,
|
|
53731
|
-
|
|
53906
|
+
bridgeOrSwapVenue.isSvg ? /* @__PURE__ */ jsx(StyledSwapVenueOrBridgeSvg, { svg: bridgeOrSwapVenue.image }) : bridgeOrSwapVenue.image ? /* @__PURE__ */ jsx(
|
|
53732
53907
|
StyledSwapVenueOrBridgeImage,
|
|
53733
53908
|
{
|
|
53734
53909
|
width: "10",
|
|
@@ -53799,8 +53974,7 @@ const SwapExecutionPageRouteDetailed = ({
|
|
|
53799
53974
|
index: 0
|
|
53800
53975
|
}
|
|
53801
53976
|
),
|
|
53802
|
-
renderOperations
|
|
53803
|
-
isGasStationTx && /* @__PURE__ */ jsx(StyledGasStationTxText, { children: "Transactions from EVM to Babylon have gas provided automatically if no gas tokens are found." })
|
|
53977
|
+
renderOperations
|
|
53804
53978
|
] }),
|
|
53805
53979
|
bottomContent
|
|
53806
53980
|
] });
|
|
@@ -53837,13 +54011,6 @@ const StyledOperationTypeAndTooltipContainer = dt(Row)`
|
|
|
53837
54011
|
position: relative;
|
|
53838
54012
|
height: 25px;
|
|
53839
54013
|
`;
|
|
53840
|
-
const StyledGasStationTxText = dt(SmallText)`
|
|
53841
|
-
margin-top: 10px;
|
|
53842
|
-
color: ${({ theme }) => theme.success.text};
|
|
53843
|
-
background: ${({ theme }) => theme.secondary.background.transparent};
|
|
53844
|
-
padding: 12px;
|
|
53845
|
-
border-radius: 6px;
|
|
53846
|
-
`;
|
|
53847
54014
|
const SwapExecutionPageRouteContainer = ({
|
|
53848
54015
|
showDetailed,
|
|
53849
54016
|
...routeProps
|
|
@@ -55783,7 +55950,7 @@ const useConnectToMissingCosmosChain = () => {
|
|
|
55783
55950
|
}, [sourceAsset, wallets, extraChainIdsToConnect, addExtraChainIdsToConnectForWalletType]);
|
|
55784
55951
|
return { isAskingToApproveConnection };
|
|
55785
55952
|
};
|
|
55786
|
-
const version = "3.14.
|
|
55953
|
+
const version = "3.14.8";
|
|
55787
55954
|
const packageJson = {
|
|
55788
55955
|
version
|
|
55789
55956
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace, c as commonjsGlobal, p as process$1, B as Buffer } from "./index-
|
|
1
|
+
import { g as getDefaultExportFromCjs, a as getAugmentedNamespace, c as commonjsGlobal, p as process$1, B as Buffer } from "./index-gj7tSkKX.js";
|
|
2
2
|
import "viem";
|
|
3
3
|
import $t$2 from "@walletconnect/sign-client";
|
|
4
4
|
var events = { exports: {} };
|
|
@@ -6673,7 +6673,7 @@ let B$1 = class B2 {
|
|
|
6673
6673
|
};
|
|
6674
6674
|
const es = B$1;
|
|
6675
6675
|
const $ = "wc", k = "ethereum_provider", q = `${$}@2:${k}:`, U = "https://rpc.walletconnect.org/v1/", f2 = ["eth_sendTransaction", "personal_sign"], A = ["eth_accounts", "eth_requestAccounts", "eth_sendRawTransaction", "eth_sign", "eth_signTransaction", "eth_signTypedData", "eth_signTypedData_v3", "eth_signTypedData_v4", "eth_sendTransaction", "personal_sign", "wallet_switchEthereumChain", "wallet_addEthereumChain", "wallet_getPermissions", "wallet_requestPermissions", "wallet_registerOnboarding", "wallet_watchAsset", "wallet_scanQRCode", "wallet_sendCalls", "wallet_getCapabilities", "wallet_getCallsStatus", "wallet_showCallsStatus"], C = ["chainChanged", "accountsChanged"], P = ["chainChanged", "accountsChanged", "message", "disconnect", "connect"], D = async () => {
|
|
6676
|
-
const { createAppKit: s } = await import("./core-
|
|
6676
|
+
const { createAppKit: s } = await import("./core-Cisk5LjX.js").then((n2) => n2.G);
|
|
6677
6677
|
return s;
|
|
6678
6678
|
};
|
|
6679
6679
|
var z = Object.defineProperty, L2 = Object.defineProperties, K = Object.getOwnPropertyDescriptors, M = Object.getOwnPropertySymbols, Q = Object.prototype.hasOwnProperty, V = Object.prototype.propertyIsEnumerable, _ = (s, t, e2) => t in s ? z(s, t, { enumerable: true, configurable: true, writable: true, value: e2 }) : s[t] = e2, v = (s, t) => {
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as b } from "./core-
|
|
1
|
+
import { m as b } from "./core-Cisk5LjX.js";
|
|
2
2
|
const infoSvg = b`<svg width="22" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path d="M9.125 6.875C9.125 6.57833 9.21298 6.28832 9.3778 6.04165C9.54262 5.79497 9.77689 5.60271 10.051 5.48918C10.3251 5.37565 10.6267 5.34594 10.9176 5.40382C11.2086 5.4617 11.4759 5.60456 11.6857 5.81434C11.8954 6.02412 12.0383 6.29139 12.0962 6.58236C12.1541 6.87334 12.1244 7.17494 12.0108 7.44903C11.8973 7.72311 11.705 7.95738 11.4584 8.1222C11.2117 8.28703 10.9217 8.375 10.625 8.375C10.2272 8.375 9.84565 8.21696 9.56434 7.93566C9.28304 7.65436 9.125 7.27282 9.125 6.875ZM21.125 11C21.125 13.0025 20.5312 14.9601 19.4186 16.6251C18.3061 18.2902 16.7248 19.5879 14.8747 20.3543C13.0246 21.1206 10.9888 21.3211 9.02471 20.9305C7.06066 20.5398 5.25656 19.5755 3.84055 18.1595C2.42454 16.7435 1.46023 14.9393 1.06955 12.9753C0.678878 11.0112 0.879387 8.97543 1.64572 7.12533C2.41206 5.27523 3.70981 3.69392 5.37486 2.58137C7.0399 1.46882 8.99747 0.875 11 0.875C13.6844 0.877978 16.258 1.94567 18.1562 3.84383C20.0543 5.74199 21.122 8.3156 21.125 11ZM18.875 11C18.875 9.44247 18.4131 7.91992 17.5478 6.62488C16.6825 5.32985 15.4526 4.32049 14.0136 3.72445C12.5747 3.12841 10.9913 2.97246 9.46367 3.27632C7.93607 3.58017 6.53288 4.3302 5.43154 5.43153C4.3302 6.53287 3.58018 7.93606 3.27632 9.46366C2.97246 10.9913 3.12841 12.5747 3.72445 14.0136C4.32049 15.4526 5.32985 16.6825 6.62489 17.5478C7.91993 18.4131 9.44248 18.875 11 18.875C13.0879 18.8728 15.0896 18.0424 16.566 16.566C18.0424 15.0896 18.8728 13.0879 18.875 11ZM12.125 14.4387V11.375C12.125 10.8777 11.9275 10.4008 11.5758 10.0492C11.2242 9.69754 10.7473 9.5 10.25 9.5C9.98433 9.4996 9.72708 9.59325 9.52383 9.76435C9.32058 9.93544 9.18444 10.173 9.13952 10.4348C9.09461 10.6967 9.14381 10.966 9.27843 11.195C9.41304 11.4241 9.62438 11.5981 9.875 11.6863V14.75C9.875 15.2473 10.0725 15.7242 10.4242 16.0758C10.7758 16.4275 11.2527 16.625 11.75 16.625C12.0157 16.6254 12.2729 16.5318 12.4762 16.3607C12.6794 16.1896 12.8156 15.952 12.8605 15.6902C12.9054 15.4283 12.8562 15.159 12.7216 14.93C12.587 14.7009 12.3756 14.5269 12.125 14.4387Z" fill="currentColor"/>
|
|
4
4
|
</svg>`;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { m as b } from "./core-
|
|
1
|
+
import { m as b } from "./core-Cisk5LjX.js";
|
|
2
2
|
const lightbulbSvg = b`<svg width="10" height="10" viewBox="0 0 10 10" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
3
3
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.00177 1.78569C3.8179 1.78569 2.85819 2.74508 2.85819 3.92855C2.85819 4.52287 3.09928 5.05956 3.49077 5.4485L3.5005 5.45817C3.64381 5.60054 3.76515 5.72108 3.85631 5.81845C3.93747 5.90512 4.05255 6.03218 4.12889 6.1805C4.16999 6.26034 4.19 6.30843 4.21768 6.39385C4.22145 6.40546 4.22499 6.41703 4.22833 6.42855H5.77521C5.77854 6.41703 5.78208 6.40547 5.78585 6.39385C5.81353 6.30843 5.83354 6.26034 5.87464 6.1805C5.95098 6.03218 6.06606 5.90512 6.14722 5.81845C6.23839 5.72108 6.35973 5.60053 6.50304 5.45816L6.51276 5.4485C6.90425 5.05956 7.14534 4.52287 7.14534 3.92855C7.14534 2.74508 6.18563 1.78569 5.00177 1.78569ZM5.71629 7.85712H4.28724C4.28724 8.21403 4.28876 8.40985 4.30703 8.54571C4.30727 8.54748 4.30751 8.54921 4.30774 8.55091C4.30944 8.55115 4.31118 8.55138 4.31295 8.55162C4.44884 8.56989 4.64474 8.5714 5.00177 8.5714C5.3588 8.5714 5.55469 8.56989 5.69059 8.55162C5.69236 8.55138 5.69409 8.55115 5.69579 8.55091C5.69603 8.54921 5.69627 8.54748 5.6965 8.54571C5.71477 8.40985 5.71629 8.21403 5.71629 7.85712ZM2.85819 7.14283C2.85819 6.9948 2.85796 6.91114 2.8548 6.85032C2.85461 6.84656 2.85441 6.84309 2.85421 6.83988C2.84393 6.8282 2.83047 6.81334 2.81301 6.79469C2.74172 6.71856 2.63908 6.61643 2.48342 6.46178C1.83307 5.81566 1.42914 4.91859 1.42914 3.92855C1.42914 1.9561 3.02866 0.357117 5.00177 0.357117C6.97487 0.357117 8.57439 1.9561 8.57439 3.92855C8.57439 4.91859 8.17047 5.81566 7.52012 6.46178C7.36445 6.61643 7.26182 6.71856 7.19053 6.79469C7.17306 6.81334 7.1596 6.8282 7.14932 6.83988C7.14912 6.84309 7.14892 6.84656 7.14873 6.85032C7.14557 6.91114 7.14534 6.9948 7.14534 7.14283V7.85712C7.14534 7.87009 7.14535 7.88304 7.14535 7.89598C7.14541 8.19889 7.14547 8.49326 7.11281 8.73606C7.076 9.00978 6.98631 9.32212 6.72678 9.58156C6.46726 9.841 6.15481 9.93065 5.881 9.96745C5.63813 10.0001 5.34365 10 5.04064 9.99998C5.0277 9.99998 5.01474 9.99998 5.00177 9.99998C4.98879 9.99998 4.97583 9.99998 4.96289 9.99998C4.65988 10 4.36541 10.0001 4.12253 9.96745C3.84872 9.93065 3.53628 9.841 3.27675 9.58156C3.01722 9.32212 2.92753 9.00978 2.89072 8.73606C2.85807 8.49326 2.85812 8.19889 2.85818 7.89598C2.85819 7.88304 2.85819 7.87008 2.85819 7.85712V7.14283ZM7.1243 6.86977C7.12366 6.87069 7.1233 6.87116 7.12327 6.87119C7.12323 6.87123 7.12356 6.87076 7.1243 6.86977ZM2.88027 6.8712C2.88025 6.87119 2.87988 6.8707 2.87921 6.86975C2.87995 6.87072 2.88028 6.8712 2.88027 6.8712Z" fill="#949E9E"/>
|
|
4
4
|
</svg>`;
|