'use client'
'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

require('@dynamic-labs-sdk/client/core');
require('@dynamic-labs/sdk-api-core');
require('../../../client/client.cjs');
require('react');
require('@dynamic-labs-sdk/client');
require('../../../config/ApiEndpoint.cjs');
require('@dynamic-labs/iconic');
require('@dynamic-labs/wallet-connector-core');
require('react/jsx-runtime');
require('../../../context/ViewContext/ViewContext.cjs');
require('../../../shared/logger.cjs');
require('@dynamic-labs/wallet-book');
require('@dynamic-labs/utils');
require('../../../utils/constants/colors.cjs');
require('../../../utils/constants/values.cjs');
require('../../../shared/consts/index.cjs');
require('../../../../../_virtual/_tslib.cjs');
require('@dynamic-labs/multi-wallet');
require('react-international-phone');
require('../nonce/nonce.cjs');
require('@dynamic-labs/locale');
require('../dynamicContextProps/dynamicContextProps.cjs');
require('../primaryWalletId/primaryWalletId.cjs');
require('../../../events/dynamicEvents.cjs');
var setUnverifiedWalletAccounts = require('../../../client/extension/unverifiedWalletAccounts/setUnverifiedWalletAccounts/setUnverifiedWalletAccounts.cjs');
var createStoreState = require('../../internalImplementation/utils/createStoreState/createStoreState.cjs');

const { getConnectedWalletsInfo, resetConnectedWalletsInfo: resetConnectedWalletsInfoStore, setConnectedWalletsInfo: setConnectedWalletsInfoStore, useConnectedWalletsInfo, } = createStoreState.createStoreState('connectedWalletsInfo');
// We need to sync the unverified wallet accounts with the connected wallets info
// for the JS SDK to know when there's an active "session" and not do things like refetch project settings, etc
const resetConnectedWalletsInfo = () => {
    setUnverifiedWalletAccounts.setUnverifiedWalletAccounts([]);
    resetConnectedWalletsInfoStore();
};
const setConnectedWalletsInfo = (value) => {
    setUnverifiedWalletAccounts.setUnverifiedWalletAccounts(value);
    setConnectedWalletsInfoStore(value);
};

exports.getConnectedWalletsInfo = getConnectedWalletsInfo;
exports.resetConnectedWalletsInfo = resetConnectedWalletsInfo;
exports.setConnectedWalletsInfo = setConnectedWalletsInfo;
exports.useConnectedWalletsInfo = useConnectedWalletsInfo;
