@streamoid/settings 0.27.0 → 0.27.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +21 -2
- package/dist/index.mjs +21 -2
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2998,6 +2998,12 @@ declare function autoTopUpCapNotice(view: Pick<AutoTopUpView, "enabled" | "lastA
|
|
|
2998
2998
|
* save a card to).
|
|
2999
2999
|
*/
|
|
3000
3000
|
declare function autoTopUpCardAction(view: Pick<AutoTopUpView, "paidPlan" | "paymentMethod">): "add" | "update" | null;
|
|
3001
|
+
/**
|
|
3002
|
+
* Stripe's `card.brand` as a person reads it ("visa" → "Visa", "amex" →
|
|
3003
|
+
* "American Express"); `null` when Stripe doesn't know it, so the card says
|
|
3004
|
+
* "card" instead.
|
|
3005
|
+
*/
|
|
3006
|
+
declare function formatCardBrand(brand: string | null | undefined): string | null;
|
|
3001
3007
|
declare const CARD_SETUP_PARAM = "card_setup";
|
|
3002
3008
|
declare const CARD_SETUP_SESSION_PARAM = "session_id";
|
|
3003
3009
|
/**
|
|
@@ -3470,4 +3476,4 @@ interface AppSettingsRowProps {
|
|
|
3470
3476
|
}
|
|
3471
3477
|
declare function AppSettingsRow({ title, description, summary, href, onClick, disabled, disabledReason, ariaLabel, trailing }: AppSettingsRowProps): react.JSX.Element;
|
|
3472
3478
|
|
|
3473
|
-
export { APP_KEYS, AUTO_TOPUP_DEFAULTS, type AddCreditPoolMemberInput, AdministrationOverview, type AdministrationOverviewProps, type AdministrativeNavigationOptions, type ApiToken, type AppKey, AppSettingsHeader, type AppSettingsHeaderProps, AppSettingsPage, type AppSettingsPageProps, AppSettingsRow, type AppSettingsRowProps, AppSettingsSection, type AppSettingsSectionProps, AutoTopUpCard, type AutoTopUpSettings, type AutoTopUpValidation, type AutoTopUpView, type AvailableCreditsResponse, BILLING_TABLE_FRAME_STYLE, BILLING_TABLE_MIN_HEIGHT, BILLING_TABLE_PAGER_STYLE, BillingContent, type BillingEntitlement, type BillingEventPayload, type BillingProduct, type BillingSubscription, BuyCreditsModal, type BuyCreditsPayload, type BuyCreditsResponse, CARD_SETUP_PARAM, CARD_SETUP_SESSION_PARAM, type CardSetupReturn, ConfirmDeleteModal, ConfirmLeaveModal, type ConnectedApp, ConnectedAppsContent, type CreatedToken, type CreditCycleUnit, type CreditLimitUnit, type CreditLimitValidation, type CreditPoolCandidate, type CreditPoolFormerMember, type CreditPoolMember, CreditPoolMemberModal, type CreditPoolMemberModalProps, type CreditPoolMemberStatus, type CreditPoolMode, type CreditPoolResponse, type CreditPoolSelfShare, type CreditUsageProduct, type CreditUsageService, type CreditUsageSummary, type CreditUsageSummaryQuery, type CreditUsageUser, type CreditsMeter, type CurrentPlanState, type CustomCreditInfo, type CustomCreditResponse, DEFAULT_PERMISSIONS, DEFAULT_USER_LANGUAGE, EMPTY_USAGE_LOGS_PAGE, ExportDateModal, type FetchUsageLogs, type FetchUsageLogsInRangeOptions, INITIAL_USAGE_LOGS_STATE, INVOICE_DOWNLOAD_FAILED_MESSAGE, INVOICE_NOT_AVAILABLE_MESSAGE, InviteUpdateModal, type InvoiceDownloadKind, type InvoicePdfResponse, type LoginMethodsMember, type LoginMethodsSettings, type LoginMethodsSwitchState, MAX_USAGE_RANGE_DAYS, MOCK_REFERRED_USERS, type MemberCreditLimit, MemberCreditLimitModal, type MemberCreditLimitRow, type MemberCreditLimitSource, type MemberCreditLimitsResponse, MemberListFrame, type MemberListFrameProps, type MemberListTab, MemberListToolbar, type MemberListToolbarProps, type MemberPermissionsPayload, OrganizationContent, type OrganizationData, type OrganizationDetails, OrganizationIntegrationsContent, type OrganizationInvite, type OrganizationJoinRequest, type OrganizationJoinableWorkspace, OrganizationLoginMethodsContent, type OrganizationMember, OrganizationMemberModal, type OrganizationMemberModalProps, type OrganizationMemberRole, OrganizationModal, OrganizationPicker, type OrganizationPickerItem, type OrganizationPickerProps, type OrganizationPickerType, type OrganizationView, type OrganizationWorkspaceItem, POOL_ERROR_CODES, POOL_EXPIRY_MAX_MONTHS, POOL_NOTE_MAX_LENGTH, PerUserLimitsView, type PoolEndsAtResult, type PoolErrorCode, type PoolExpiryChoice, type PoolValueValidation, type Price, type PriceMetadata, type ProductsResponse, ProfileAvatar, ProfileTab, REMOVE_REASON_MAX_LENGTH, ReferralHistoryView, type ReferralHistoryViewProps, ReferralTab, type ReferredUser, RemovePoolMemberModal, type RemovePoolMemberModalProps, RemoveSelfShareModal, type RemoveSelfShareModalProps, SCOPE_LABELS, ScopeHeader, type ScopeHeaderProps, type ServiceItem, type SetCreditPoolSelfShareInput, type SettingsAdapters, SettingsAdaptersProvider, type SettingsApiAdapter, type SettingsAuthAdapter, type SettingsAuthUser, SettingsContent, type SettingsContentProps, type SettingsImageUploadAdapter, type SettingsIntegrationsAdapter, type SettingsLoginMethodsAdapter, type SettingsNavigationAdapter, type SettingsOrganizationAdapter, type SettingsOrganizationCreateOptions, type SettingsOrganizationCurrent, type SettingsOrganizationJoinableItem, type SettingsOrganizationListItem, type SettingsOrganizationType, type SettingsOrganizationWorkspaceJoin, type SettingsScope, type SettingsTab, type SettingsToastAdapter, SettingsTooltip, type SettingsTooltipPlacement, type SettingsTooltipProps, type SettingsWorkspaceAdapter, type SettingsWorkspaceCurrent, type SettingsWorkspaceListItem, SharedCreditsView, type SharedPoolBalance, SiconKey, type SponsorShareBalance, type StoreItem, type SubscriptionPlan, type SubscriptionResponse, TAB_DESCRIPTIONS, TAB_LABELS, TAB_SCOPE, TAB_TO_URL, type TeamMember, TeamsContent, type TokenExpiry, TokensContent, URL_TO_TAB, USAGE_LOGS_EXPORT_BATCH_SIZE, USAGE_LOGS_EXPORT_EXTRA_REQUESTS, USAGE_LOGS_EXPORT_MAX_ROWS, USAGE_LOGS_PAGE_SIZE, USER_LANGUAGES, type UpdateCreditPoolMemberInput, type UpdateSubscriptionPayload, type UpdateSubscriptionResponse, UsageAnalyticsView, type UsageHistoryItem, type UsageHistoryPagination, type UsageHistoryResponse, type UsageLogsAction, type UsageLogsExportResult, type UsageLogsPage, UsageLogsPager, type UsageLogsQuery, type UsageLogsState, UsageLogsTable, type UsageRangePreset, type UsedByNamesLoader, type UserLanguage, type UserPermissions, WORKSPACE_CREDIT_LIMIT_REACHED, WORKSPACE_CREDIT_LIMIT_REACHED_MESSAGE, WORKSPACE_LIST_PAGE_SIZE, type WorkspaceCreditLimit, WorkspaceCreditLimitCard, type WorkspaceCreditLimitSummary, type WorkspaceData, WorkspaceGeneralTab, type WorkspaceGeneralTabProps, type WorkspaceInvite, type WorkspaceListOrganization, WorkspaceListTab, type WorkspaceMember, WorkspaceModal, type WorkspaceOrganization, type WorkspaceOrganizationRequest, WorkspacePicker, type WorkspacePickerGroup, type WorkspacePickerItem, type WorkspacePickerProps, WorkspaceTab, type WorkspaceUsageResponse, aboveTotalReason, autoTopUpBlockedReason, autoTopUpCapNotice, autoTopUpCardAction, autoTopUpCycleText, autoTopUpDisabledMessage, belowUsageReason, canManageOnlyWorkspaceCreditLimit, canShowSharedCredits, capMoney, cardSetupReturnUrls, checkPoolPercentTotal, cleanAutoTopUpInput, cleanCreditLimitInput, cleanPoolValueInput, countLabel, createUsedByNamesLoader, creditCycleUnit, creditsMeter, customRangeQuery, deriveWorkspaceInvitePermission, describeAllowance, describeDefaultLimit, describeMemberLimit, describeWorkspaceCreditLimit, entitlementFromBody, entitlementFromFailure, expiryChoiceFor, fetchUsageLogsInRange, findBillingError, findPoolError, formatAutoTopUpMoney, formatCreditLimit, formatCredits, formatPackOption, formatPoolEndsAt, formatPoolSplit, formatUsageCredits, formatUsageRange, formatUsageShare, groupWorkspaceList, hasPaidFeatures, inviteUpdate, invoiceDownloadKind, isLimitAboveTotal, isLimitBelowUsage, isPaidPlan, isSponsoredEntitlement, isUsageSummaryEmpty, isWorkspaceCreditLimitReached, joinMembersWithLimits, last30DaysQuery, lastUsedLabel, limitAboveTotalTotal, limitBelowUsageUsed, limitSourceLabel, loadCurrentPlan, loadWorkspaceOrganization, loginMethodsSwitchState, maximumCreditLimit, memberRoleUpdate, minPoolEndDate, minimumCreditLimit, ownCreditsFirstText, parseBillingEntitlement, parseInviteEmails, pausedOwnCreditsText, poolAllocatedPercent, poolAllocationText, poolEndsAtFrom, poolErrorMessage, poolRenewsAtCycleEnd, poolSharesCredits, poolUnallocatedPercent, poolWorkspaceName, productsForCountry, readCardSetupReturn, readSettingsCaller, referralCodeOf, referralCountLabel, referralLink, referralSignupDate, rememberSettingsCaller, resolveSettingsTabFromPath, roundCredits, settingsReturnTarget, sharedPoolBannerText, sharedPoolEndsText, sliceUsageLogsPage, sortReferredUsers, sponsorShareBannerText, sponsorShareDetailText, sponsorShareSpentText, sponsoredCreditsText, ssoLabel, toCsv, toLocalDateInput, topUsageServices, usageByProductCsvRows, usageByUserCsvRows, usageLogsCsvRows, usageLogsDateRange, usageLogsExportFileName, usageLogsPage, usageLogsReducer, usageLogsReloadPage, usageLogsShowWorkspace, usageLogsSpentByOthers, usageShare, usageSummaryFileName, usageUserLabel, useBillingEntitlement, useSettingsAdapters, useWorkspaceInvitePermission, useWorkspaceOrganization, usedByNamesFrom, usedByWorkspaceKey, userLanguageLabel, validateAutoTopUpInput, validateCreditLimitInput, validateDefaultCreditLimitInput, validatePoolText, validatePoolValue };
|
|
3479
|
+
export { APP_KEYS, AUTO_TOPUP_DEFAULTS, type AddCreditPoolMemberInput, AdministrationOverview, type AdministrationOverviewProps, type AdministrativeNavigationOptions, type ApiToken, type AppKey, AppSettingsHeader, type AppSettingsHeaderProps, AppSettingsPage, type AppSettingsPageProps, AppSettingsRow, type AppSettingsRowProps, AppSettingsSection, type AppSettingsSectionProps, AutoTopUpCard, type AutoTopUpSettings, type AutoTopUpValidation, type AutoTopUpView, type AvailableCreditsResponse, BILLING_TABLE_FRAME_STYLE, BILLING_TABLE_MIN_HEIGHT, BILLING_TABLE_PAGER_STYLE, BillingContent, type BillingEntitlement, type BillingEventPayload, type BillingProduct, type BillingSubscription, BuyCreditsModal, type BuyCreditsPayload, type BuyCreditsResponse, CARD_SETUP_PARAM, CARD_SETUP_SESSION_PARAM, type CardSetupReturn, ConfirmDeleteModal, ConfirmLeaveModal, type ConnectedApp, ConnectedAppsContent, type CreatedToken, type CreditCycleUnit, type CreditLimitUnit, type CreditLimitValidation, type CreditPoolCandidate, type CreditPoolFormerMember, type CreditPoolMember, CreditPoolMemberModal, type CreditPoolMemberModalProps, type CreditPoolMemberStatus, type CreditPoolMode, type CreditPoolResponse, type CreditPoolSelfShare, type CreditUsageProduct, type CreditUsageService, type CreditUsageSummary, type CreditUsageSummaryQuery, type CreditUsageUser, type CreditsMeter, type CurrentPlanState, type CustomCreditInfo, type CustomCreditResponse, DEFAULT_PERMISSIONS, DEFAULT_USER_LANGUAGE, EMPTY_USAGE_LOGS_PAGE, ExportDateModal, type FetchUsageLogs, type FetchUsageLogsInRangeOptions, INITIAL_USAGE_LOGS_STATE, INVOICE_DOWNLOAD_FAILED_MESSAGE, INVOICE_NOT_AVAILABLE_MESSAGE, InviteUpdateModal, type InvoiceDownloadKind, type InvoicePdfResponse, type LoginMethodsMember, type LoginMethodsSettings, type LoginMethodsSwitchState, MAX_USAGE_RANGE_DAYS, MOCK_REFERRED_USERS, type MemberCreditLimit, MemberCreditLimitModal, type MemberCreditLimitRow, type MemberCreditLimitSource, type MemberCreditLimitsResponse, MemberListFrame, type MemberListFrameProps, type MemberListTab, MemberListToolbar, type MemberListToolbarProps, type MemberPermissionsPayload, OrganizationContent, type OrganizationData, type OrganizationDetails, OrganizationIntegrationsContent, type OrganizationInvite, type OrganizationJoinRequest, type OrganizationJoinableWorkspace, OrganizationLoginMethodsContent, type OrganizationMember, OrganizationMemberModal, type OrganizationMemberModalProps, type OrganizationMemberRole, OrganizationModal, OrganizationPicker, type OrganizationPickerItem, type OrganizationPickerProps, type OrganizationPickerType, type OrganizationView, type OrganizationWorkspaceItem, POOL_ERROR_CODES, POOL_EXPIRY_MAX_MONTHS, POOL_NOTE_MAX_LENGTH, PerUserLimitsView, type PoolEndsAtResult, type PoolErrorCode, type PoolExpiryChoice, type PoolValueValidation, type Price, type PriceMetadata, type ProductsResponse, ProfileAvatar, ProfileTab, REMOVE_REASON_MAX_LENGTH, ReferralHistoryView, type ReferralHistoryViewProps, ReferralTab, type ReferredUser, RemovePoolMemberModal, type RemovePoolMemberModalProps, RemoveSelfShareModal, type RemoveSelfShareModalProps, SCOPE_LABELS, ScopeHeader, type ScopeHeaderProps, type ServiceItem, type SetCreditPoolSelfShareInput, type SettingsAdapters, SettingsAdaptersProvider, type SettingsApiAdapter, type SettingsAuthAdapter, type SettingsAuthUser, SettingsContent, type SettingsContentProps, type SettingsImageUploadAdapter, type SettingsIntegrationsAdapter, type SettingsLoginMethodsAdapter, type SettingsNavigationAdapter, type SettingsOrganizationAdapter, type SettingsOrganizationCreateOptions, type SettingsOrganizationCurrent, type SettingsOrganizationJoinableItem, type SettingsOrganizationListItem, type SettingsOrganizationType, type SettingsOrganizationWorkspaceJoin, type SettingsScope, type SettingsTab, type SettingsToastAdapter, SettingsTooltip, type SettingsTooltipPlacement, type SettingsTooltipProps, type SettingsWorkspaceAdapter, type SettingsWorkspaceCurrent, type SettingsWorkspaceListItem, SharedCreditsView, type SharedPoolBalance, SiconKey, type SponsorShareBalance, type StoreItem, type SubscriptionPlan, type SubscriptionResponse, TAB_DESCRIPTIONS, TAB_LABELS, TAB_SCOPE, TAB_TO_URL, type TeamMember, TeamsContent, type TokenExpiry, TokensContent, URL_TO_TAB, USAGE_LOGS_EXPORT_BATCH_SIZE, USAGE_LOGS_EXPORT_EXTRA_REQUESTS, USAGE_LOGS_EXPORT_MAX_ROWS, USAGE_LOGS_PAGE_SIZE, USER_LANGUAGES, type UpdateCreditPoolMemberInput, type UpdateSubscriptionPayload, type UpdateSubscriptionResponse, UsageAnalyticsView, type UsageHistoryItem, type UsageHistoryPagination, type UsageHistoryResponse, type UsageLogsAction, type UsageLogsExportResult, type UsageLogsPage, UsageLogsPager, type UsageLogsQuery, type UsageLogsState, UsageLogsTable, type UsageRangePreset, type UsedByNamesLoader, type UserLanguage, type UserPermissions, WORKSPACE_CREDIT_LIMIT_REACHED, WORKSPACE_CREDIT_LIMIT_REACHED_MESSAGE, WORKSPACE_LIST_PAGE_SIZE, type WorkspaceCreditLimit, WorkspaceCreditLimitCard, type WorkspaceCreditLimitSummary, type WorkspaceData, WorkspaceGeneralTab, type WorkspaceGeneralTabProps, type WorkspaceInvite, type WorkspaceListOrganization, WorkspaceListTab, type WorkspaceMember, WorkspaceModal, type WorkspaceOrganization, type WorkspaceOrganizationRequest, WorkspacePicker, type WorkspacePickerGroup, type WorkspacePickerItem, type WorkspacePickerProps, WorkspaceTab, type WorkspaceUsageResponse, aboveTotalReason, autoTopUpBlockedReason, autoTopUpCapNotice, autoTopUpCardAction, autoTopUpCycleText, autoTopUpDisabledMessage, belowUsageReason, canManageOnlyWorkspaceCreditLimit, canShowSharedCredits, capMoney, cardSetupReturnUrls, checkPoolPercentTotal, cleanAutoTopUpInput, cleanCreditLimitInput, cleanPoolValueInput, countLabel, createUsedByNamesLoader, creditCycleUnit, creditsMeter, customRangeQuery, deriveWorkspaceInvitePermission, describeAllowance, describeDefaultLimit, describeMemberLimit, describeWorkspaceCreditLimit, entitlementFromBody, entitlementFromFailure, expiryChoiceFor, fetchUsageLogsInRange, findBillingError, findPoolError, formatAutoTopUpMoney, formatCardBrand, formatCreditLimit, formatCredits, formatPackOption, formatPoolEndsAt, formatPoolSplit, formatUsageCredits, formatUsageRange, formatUsageShare, groupWorkspaceList, hasPaidFeatures, inviteUpdate, invoiceDownloadKind, isLimitAboveTotal, isLimitBelowUsage, isPaidPlan, isSponsoredEntitlement, isUsageSummaryEmpty, isWorkspaceCreditLimitReached, joinMembersWithLimits, last30DaysQuery, lastUsedLabel, limitAboveTotalTotal, limitBelowUsageUsed, limitSourceLabel, loadCurrentPlan, loadWorkspaceOrganization, loginMethodsSwitchState, maximumCreditLimit, memberRoleUpdate, minPoolEndDate, minimumCreditLimit, ownCreditsFirstText, parseBillingEntitlement, parseInviteEmails, pausedOwnCreditsText, poolAllocatedPercent, poolAllocationText, poolEndsAtFrom, poolErrorMessage, poolRenewsAtCycleEnd, poolSharesCredits, poolUnallocatedPercent, poolWorkspaceName, productsForCountry, readCardSetupReturn, readSettingsCaller, referralCodeOf, referralCountLabel, referralLink, referralSignupDate, rememberSettingsCaller, resolveSettingsTabFromPath, roundCredits, settingsReturnTarget, sharedPoolBannerText, sharedPoolEndsText, sliceUsageLogsPage, sortReferredUsers, sponsorShareBannerText, sponsorShareDetailText, sponsorShareSpentText, sponsoredCreditsText, ssoLabel, toCsv, toLocalDateInput, topUsageServices, usageByProductCsvRows, usageByUserCsvRows, usageLogsCsvRows, usageLogsDateRange, usageLogsExportFileName, usageLogsPage, usageLogsReducer, usageLogsReloadPage, usageLogsShowWorkspace, usageLogsSpentByOthers, usageShare, usageSummaryFileName, usageUserLabel, useBillingEntitlement, useSettingsAdapters, useWorkspaceInvitePermission, useWorkspaceOrganization, usedByNamesFrom, usedByWorkspaceKey, userLanguageLabel, validateAutoTopUpInput, validateCreditLimitInput, validateDefaultCreditLimitInput, validatePoolText, validatePoolValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -2998,6 +2998,12 @@ declare function autoTopUpCapNotice(view: Pick<AutoTopUpView, "enabled" | "lastA
|
|
|
2998
2998
|
* save a card to).
|
|
2999
2999
|
*/
|
|
3000
3000
|
declare function autoTopUpCardAction(view: Pick<AutoTopUpView, "paidPlan" | "paymentMethod">): "add" | "update" | null;
|
|
3001
|
+
/**
|
|
3002
|
+
* Stripe's `card.brand` as a person reads it ("visa" → "Visa", "amex" →
|
|
3003
|
+
* "American Express"); `null` when Stripe doesn't know it, so the card says
|
|
3004
|
+
* "card" instead.
|
|
3005
|
+
*/
|
|
3006
|
+
declare function formatCardBrand(brand: string | null | undefined): string | null;
|
|
3001
3007
|
declare const CARD_SETUP_PARAM = "card_setup";
|
|
3002
3008
|
declare const CARD_SETUP_SESSION_PARAM = "session_id";
|
|
3003
3009
|
/**
|
|
@@ -3470,4 +3476,4 @@ interface AppSettingsRowProps {
|
|
|
3470
3476
|
}
|
|
3471
3477
|
declare function AppSettingsRow({ title, description, summary, href, onClick, disabled, disabledReason, ariaLabel, trailing }: AppSettingsRowProps): react.JSX.Element;
|
|
3472
3478
|
|
|
3473
|
-
export { APP_KEYS, AUTO_TOPUP_DEFAULTS, type AddCreditPoolMemberInput, AdministrationOverview, type AdministrationOverviewProps, type AdministrativeNavigationOptions, type ApiToken, type AppKey, AppSettingsHeader, type AppSettingsHeaderProps, AppSettingsPage, type AppSettingsPageProps, AppSettingsRow, type AppSettingsRowProps, AppSettingsSection, type AppSettingsSectionProps, AutoTopUpCard, type AutoTopUpSettings, type AutoTopUpValidation, type AutoTopUpView, type AvailableCreditsResponse, BILLING_TABLE_FRAME_STYLE, BILLING_TABLE_MIN_HEIGHT, BILLING_TABLE_PAGER_STYLE, BillingContent, type BillingEntitlement, type BillingEventPayload, type BillingProduct, type BillingSubscription, BuyCreditsModal, type BuyCreditsPayload, type BuyCreditsResponse, CARD_SETUP_PARAM, CARD_SETUP_SESSION_PARAM, type CardSetupReturn, ConfirmDeleteModal, ConfirmLeaveModal, type ConnectedApp, ConnectedAppsContent, type CreatedToken, type CreditCycleUnit, type CreditLimitUnit, type CreditLimitValidation, type CreditPoolCandidate, type CreditPoolFormerMember, type CreditPoolMember, CreditPoolMemberModal, type CreditPoolMemberModalProps, type CreditPoolMemberStatus, type CreditPoolMode, type CreditPoolResponse, type CreditPoolSelfShare, type CreditUsageProduct, type CreditUsageService, type CreditUsageSummary, type CreditUsageSummaryQuery, type CreditUsageUser, type CreditsMeter, type CurrentPlanState, type CustomCreditInfo, type CustomCreditResponse, DEFAULT_PERMISSIONS, DEFAULT_USER_LANGUAGE, EMPTY_USAGE_LOGS_PAGE, ExportDateModal, type FetchUsageLogs, type FetchUsageLogsInRangeOptions, INITIAL_USAGE_LOGS_STATE, INVOICE_DOWNLOAD_FAILED_MESSAGE, INVOICE_NOT_AVAILABLE_MESSAGE, InviteUpdateModal, type InvoiceDownloadKind, type InvoicePdfResponse, type LoginMethodsMember, type LoginMethodsSettings, type LoginMethodsSwitchState, MAX_USAGE_RANGE_DAYS, MOCK_REFERRED_USERS, type MemberCreditLimit, MemberCreditLimitModal, type MemberCreditLimitRow, type MemberCreditLimitSource, type MemberCreditLimitsResponse, MemberListFrame, type MemberListFrameProps, type MemberListTab, MemberListToolbar, type MemberListToolbarProps, type MemberPermissionsPayload, OrganizationContent, type OrganizationData, type OrganizationDetails, OrganizationIntegrationsContent, type OrganizationInvite, type OrganizationJoinRequest, type OrganizationJoinableWorkspace, OrganizationLoginMethodsContent, type OrganizationMember, OrganizationMemberModal, type OrganizationMemberModalProps, type OrganizationMemberRole, OrganizationModal, OrganizationPicker, type OrganizationPickerItem, type OrganizationPickerProps, type OrganizationPickerType, type OrganizationView, type OrganizationWorkspaceItem, POOL_ERROR_CODES, POOL_EXPIRY_MAX_MONTHS, POOL_NOTE_MAX_LENGTH, PerUserLimitsView, type PoolEndsAtResult, type PoolErrorCode, type PoolExpiryChoice, type PoolValueValidation, type Price, type PriceMetadata, type ProductsResponse, ProfileAvatar, ProfileTab, REMOVE_REASON_MAX_LENGTH, ReferralHistoryView, type ReferralHistoryViewProps, ReferralTab, type ReferredUser, RemovePoolMemberModal, type RemovePoolMemberModalProps, RemoveSelfShareModal, type RemoveSelfShareModalProps, SCOPE_LABELS, ScopeHeader, type ScopeHeaderProps, type ServiceItem, type SetCreditPoolSelfShareInput, type SettingsAdapters, SettingsAdaptersProvider, type SettingsApiAdapter, type SettingsAuthAdapter, type SettingsAuthUser, SettingsContent, type SettingsContentProps, type SettingsImageUploadAdapter, type SettingsIntegrationsAdapter, type SettingsLoginMethodsAdapter, type SettingsNavigationAdapter, type SettingsOrganizationAdapter, type SettingsOrganizationCreateOptions, type SettingsOrganizationCurrent, type SettingsOrganizationJoinableItem, type SettingsOrganizationListItem, type SettingsOrganizationType, type SettingsOrganizationWorkspaceJoin, type SettingsScope, type SettingsTab, type SettingsToastAdapter, SettingsTooltip, type SettingsTooltipPlacement, type SettingsTooltipProps, type SettingsWorkspaceAdapter, type SettingsWorkspaceCurrent, type SettingsWorkspaceListItem, SharedCreditsView, type SharedPoolBalance, SiconKey, type SponsorShareBalance, type StoreItem, type SubscriptionPlan, type SubscriptionResponse, TAB_DESCRIPTIONS, TAB_LABELS, TAB_SCOPE, TAB_TO_URL, type TeamMember, TeamsContent, type TokenExpiry, TokensContent, URL_TO_TAB, USAGE_LOGS_EXPORT_BATCH_SIZE, USAGE_LOGS_EXPORT_EXTRA_REQUESTS, USAGE_LOGS_EXPORT_MAX_ROWS, USAGE_LOGS_PAGE_SIZE, USER_LANGUAGES, type UpdateCreditPoolMemberInput, type UpdateSubscriptionPayload, type UpdateSubscriptionResponse, UsageAnalyticsView, type UsageHistoryItem, type UsageHistoryPagination, type UsageHistoryResponse, type UsageLogsAction, type UsageLogsExportResult, type UsageLogsPage, UsageLogsPager, type UsageLogsQuery, type UsageLogsState, UsageLogsTable, type UsageRangePreset, type UsedByNamesLoader, type UserLanguage, type UserPermissions, WORKSPACE_CREDIT_LIMIT_REACHED, WORKSPACE_CREDIT_LIMIT_REACHED_MESSAGE, WORKSPACE_LIST_PAGE_SIZE, type WorkspaceCreditLimit, WorkspaceCreditLimitCard, type WorkspaceCreditLimitSummary, type WorkspaceData, WorkspaceGeneralTab, type WorkspaceGeneralTabProps, type WorkspaceInvite, type WorkspaceListOrganization, WorkspaceListTab, type WorkspaceMember, WorkspaceModal, type WorkspaceOrganization, type WorkspaceOrganizationRequest, WorkspacePicker, type WorkspacePickerGroup, type WorkspacePickerItem, type WorkspacePickerProps, WorkspaceTab, type WorkspaceUsageResponse, aboveTotalReason, autoTopUpBlockedReason, autoTopUpCapNotice, autoTopUpCardAction, autoTopUpCycleText, autoTopUpDisabledMessage, belowUsageReason, canManageOnlyWorkspaceCreditLimit, canShowSharedCredits, capMoney, cardSetupReturnUrls, checkPoolPercentTotal, cleanAutoTopUpInput, cleanCreditLimitInput, cleanPoolValueInput, countLabel, createUsedByNamesLoader, creditCycleUnit, creditsMeter, customRangeQuery, deriveWorkspaceInvitePermission, describeAllowance, describeDefaultLimit, describeMemberLimit, describeWorkspaceCreditLimit, entitlementFromBody, entitlementFromFailure, expiryChoiceFor, fetchUsageLogsInRange, findBillingError, findPoolError, formatAutoTopUpMoney, formatCreditLimit, formatCredits, formatPackOption, formatPoolEndsAt, formatPoolSplit, formatUsageCredits, formatUsageRange, formatUsageShare, groupWorkspaceList, hasPaidFeatures, inviteUpdate, invoiceDownloadKind, isLimitAboveTotal, isLimitBelowUsage, isPaidPlan, isSponsoredEntitlement, isUsageSummaryEmpty, isWorkspaceCreditLimitReached, joinMembersWithLimits, last30DaysQuery, lastUsedLabel, limitAboveTotalTotal, limitBelowUsageUsed, limitSourceLabel, loadCurrentPlan, loadWorkspaceOrganization, loginMethodsSwitchState, maximumCreditLimit, memberRoleUpdate, minPoolEndDate, minimumCreditLimit, ownCreditsFirstText, parseBillingEntitlement, parseInviteEmails, pausedOwnCreditsText, poolAllocatedPercent, poolAllocationText, poolEndsAtFrom, poolErrorMessage, poolRenewsAtCycleEnd, poolSharesCredits, poolUnallocatedPercent, poolWorkspaceName, productsForCountry, readCardSetupReturn, readSettingsCaller, referralCodeOf, referralCountLabel, referralLink, referralSignupDate, rememberSettingsCaller, resolveSettingsTabFromPath, roundCredits, settingsReturnTarget, sharedPoolBannerText, sharedPoolEndsText, sliceUsageLogsPage, sortReferredUsers, sponsorShareBannerText, sponsorShareDetailText, sponsorShareSpentText, sponsoredCreditsText, ssoLabel, toCsv, toLocalDateInput, topUsageServices, usageByProductCsvRows, usageByUserCsvRows, usageLogsCsvRows, usageLogsDateRange, usageLogsExportFileName, usageLogsPage, usageLogsReducer, usageLogsReloadPage, usageLogsShowWorkspace, usageLogsSpentByOthers, usageShare, usageSummaryFileName, usageUserLabel, useBillingEntitlement, useSettingsAdapters, useWorkspaceInvitePermission, useWorkspaceOrganization, usedByNamesFrom, usedByWorkspaceKey, userLanguageLabel, validateAutoTopUpInput, validateCreditLimitInput, validateDefaultCreditLimitInput, validatePoolText, validatePoolValue };
|
|
3479
|
+
export { APP_KEYS, AUTO_TOPUP_DEFAULTS, type AddCreditPoolMemberInput, AdministrationOverview, type AdministrationOverviewProps, type AdministrativeNavigationOptions, type ApiToken, type AppKey, AppSettingsHeader, type AppSettingsHeaderProps, AppSettingsPage, type AppSettingsPageProps, AppSettingsRow, type AppSettingsRowProps, AppSettingsSection, type AppSettingsSectionProps, AutoTopUpCard, type AutoTopUpSettings, type AutoTopUpValidation, type AutoTopUpView, type AvailableCreditsResponse, BILLING_TABLE_FRAME_STYLE, BILLING_TABLE_MIN_HEIGHT, BILLING_TABLE_PAGER_STYLE, BillingContent, type BillingEntitlement, type BillingEventPayload, type BillingProduct, type BillingSubscription, BuyCreditsModal, type BuyCreditsPayload, type BuyCreditsResponse, CARD_SETUP_PARAM, CARD_SETUP_SESSION_PARAM, type CardSetupReturn, ConfirmDeleteModal, ConfirmLeaveModal, type ConnectedApp, ConnectedAppsContent, type CreatedToken, type CreditCycleUnit, type CreditLimitUnit, type CreditLimitValidation, type CreditPoolCandidate, type CreditPoolFormerMember, type CreditPoolMember, CreditPoolMemberModal, type CreditPoolMemberModalProps, type CreditPoolMemberStatus, type CreditPoolMode, type CreditPoolResponse, type CreditPoolSelfShare, type CreditUsageProduct, type CreditUsageService, type CreditUsageSummary, type CreditUsageSummaryQuery, type CreditUsageUser, type CreditsMeter, type CurrentPlanState, type CustomCreditInfo, type CustomCreditResponse, DEFAULT_PERMISSIONS, DEFAULT_USER_LANGUAGE, EMPTY_USAGE_LOGS_PAGE, ExportDateModal, type FetchUsageLogs, type FetchUsageLogsInRangeOptions, INITIAL_USAGE_LOGS_STATE, INVOICE_DOWNLOAD_FAILED_MESSAGE, INVOICE_NOT_AVAILABLE_MESSAGE, InviteUpdateModal, type InvoiceDownloadKind, type InvoicePdfResponse, type LoginMethodsMember, type LoginMethodsSettings, type LoginMethodsSwitchState, MAX_USAGE_RANGE_DAYS, MOCK_REFERRED_USERS, type MemberCreditLimit, MemberCreditLimitModal, type MemberCreditLimitRow, type MemberCreditLimitSource, type MemberCreditLimitsResponse, MemberListFrame, type MemberListFrameProps, type MemberListTab, MemberListToolbar, type MemberListToolbarProps, type MemberPermissionsPayload, OrganizationContent, type OrganizationData, type OrganizationDetails, OrganizationIntegrationsContent, type OrganizationInvite, type OrganizationJoinRequest, type OrganizationJoinableWorkspace, OrganizationLoginMethodsContent, type OrganizationMember, OrganizationMemberModal, type OrganizationMemberModalProps, type OrganizationMemberRole, OrganizationModal, OrganizationPicker, type OrganizationPickerItem, type OrganizationPickerProps, type OrganizationPickerType, type OrganizationView, type OrganizationWorkspaceItem, POOL_ERROR_CODES, POOL_EXPIRY_MAX_MONTHS, POOL_NOTE_MAX_LENGTH, PerUserLimitsView, type PoolEndsAtResult, type PoolErrorCode, type PoolExpiryChoice, type PoolValueValidation, type Price, type PriceMetadata, type ProductsResponse, ProfileAvatar, ProfileTab, REMOVE_REASON_MAX_LENGTH, ReferralHistoryView, type ReferralHistoryViewProps, ReferralTab, type ReferredUser, RemovePoolMemberModal, type RemovePoolMemberModalProps, RemoveSelfShareModal, type RemoveSelfShareModalProps, SCOPE_LABELS, ScopeHeader, type ScopeHeaderProps, type ServiceItem, type SetCreditPoolSelfShareInput, type SettingsAdapters, SettingsAdaptersProvider, type SettingsApiAdapter, type SettingsAuthAdapter, type SettingsAuthUser, SettingsContent, type SettingsContentProps, type SettingsImageUploadAdapter, type SettingsIntegrationsAdapter, type SettingsLoginMethodsAdapter, type SettingsNavigationAdapter, type SettingsOrganizationAdapter, type SettingsOrganizationCreateOptions, type SettingsOrganizationCurrent, type SettingsOrganizationJoinableItem, type SettingsOrganizationListItem, type SettingsOrganizationType, type SettingsOrganizationWorkspaceJoin, type SettingsScope, type SettingsTab, type SettingsToastAdapter, SettingsTooltip, type SettingsTooltipPlacement, type SettingsTooltipProps, type SettingsWorkspaceAdapter, type SettingsWorkspaceCurrent, type SettingsWorkspaceListItem, SharedCreditsView, type SharedPoolBalance, SiconKey, type SponsorShareBalance, type StoreItem, type SubscriptionPlan, type SubscriptionResponse, TAB_DESCRIPTIONS, TAB_LABELS, TAB_SCOPE, TAB_TO_URL, type TeamMember, TeamsContent, type TokenExpiry, TokensContent, URL_TO_TAB, USAGE_LOGS_EXPORT_BATCH_SIZE, USAGE_LOGS_EXPORT_EXTRA_REQUESTS, USAGE_LOGS_EXPORT_MAX_ROWS, USAGE_LOGS_PAGE_SIZE, USER_LANGUAGES, type UpdateCreditPoolMemberInput, type UpdateSubscriptionPayload, type UpdateSubscriptionResponse, UsageAnalyticsView, type UsageHistoryItem, type UsageHistoryPagination, type UsageHistoryResponse, type UsageLogsAction, type UsageLogsExportResult, type UsageLogsPage, UsageLogsPager, type UsageLogsQuery, type UsageLogsState, UsageLogsTable, type UsageRangePreset, type UsedByNamesLoader, type UserLanguage, type UserPermissions, WORKSPACE_CREDIT_LIMIT_REACHED, WORKSPACE_CREDIT_LIMIT_REACHED_MESSAGE, WORKSPACE_LIST_PAGE_SIZE, type WorkspaceCreditLimit, WorkspaceCreditLimitCard, type WorkspaceCreditLimitSummary, type WorkspaceData, WorkspaceGeneralTab, type WorkspaceGeneralTabProps, type WorkspaceInvite, type WorkspaceListOrganization, WorkspaceListTab, type WorkspaceMember, WorkspaceModal, type WorkspaceOrganization, type WorkspaceOrganizationRequest, WorkspacePicker, type WorkspacePickerGroup, type WorkspacePickerItem, type WorkspacePickerProps, WorkspaceTab, type WorkspaceUsageResponse, aboveTotalReason, autoTopUpBlockedReason, autoTopUpCapNotice, autoTopUpCardAction, autoTopUpCycleText, autoTopUpDisabledMessage, belowUsageReason, canManageOnlyWorkspaceCreditLimit, canShowSharedCredits, capMoney, cardSetupReturnUrls, checkPoolPercentTotal, cleanAutoTopUpInput, cleanCreditLimitInput, cleanPoolValueInput, countLabel, createUsedByNamesLoader, creditCycleUnit, creditsMeter, customRangeQuery, deriveWorkspaceInvitePermission, describeAllowance, describeDefaultLimit, describeMemberLimit, describeWorkspaceCreditLimit, entitlementFromBody, entitlementFromFailure, expiryChoiceFor, fetchUsageLogsInRange, findBillingError, findPoolError, formatAutoTopUpMoney, formatCardBrand, formatCreditLimit, formatCredits, formatPackOption, formatPoolEndsAt, formatPoolSplit, formatUsageCredits, formatUsageRange, formatUsageShare, groupWorkspaceList, hasPaidFeatures, inviteUpdate, invoiceDownloadKind, isLimitAboveTotal, isLimitBelowUsage, isPaidPlan, isSponsoredEntitlement, isUsageSummaryEmpty, isWorkspaceCreditLimitReached, joinMembersWithLimits, last30DaysQuery, lastUsedLabel, limitAboveTotalTotal, limitBelowUsageUsed, limitSourceLabel, loadCurrentPlan, loadWorkspaceOrganization, loginMethodsSwitchState, maximumCreditLimit, memberRoleUpdate, minPoolEndDate, minimumCreditLimit, ownCreditsFirstText, parseBillingEntitlement, parseInviteEmails, pausedOwnCreditsText, poolAllocatedPercent, poolAllocationText, poolEndsAtFrom, poolErrorMessage, poolRenewsAtCycleEnd, poolSharesCredits, poolUnallocatedPercent, poolWorkspaceName, productsForCountry, readCardSetupReturn, readSettingsCaller, referralCodeOf, referralCountLabel, referralLink, referralSignupDate, rememberSettingsCaller, resolveSettingsTabFromPath, roundCredits, settingsReturnTarget, sharedPoolBannerText, sharedPoolEndsText, sliceUsageLogsPage, sortReferredUsers, sponsorShareBannerText, sponsorShareDetailText, sponsorShareSpentText, sponsoredCreditsText, ssoLabel, toCsv, toLocalDateInput, topUsageServices, usageByProductCsvRows, usageByUserCsvRows, usageLogsCsvRows, usageLogsDateRange, usageLogsExportFileName, usageLogsPage, usageLogsReducer, usageLogsReloadPage, usageLogsShowWorkspace, usageLogsSpentByOthers, usageShare, usageSummaryFileName, usageUserLabel, useBillingEntitlement, useSettingsAdapters, useWorkspaceInvitePermission, useWorkspaceOrganization, usedByNamesFrom, usedByWorkspaceKey, userLanguageLabel, validateAutoTopUpInput, validateCreditLimitInput, validateDefaultCreditLimitInput, validatePoolText, validatePoolValue };
|
package/dist/index.js
CHANGED
|
@@ -132,6 +132,7 @@ __export(index_exports, {
|
|
|
132
132
|
findBillingError: () => findBillingError,
|
|
133
133
|
findPoolError: () => findPoolError,
|
|
134
134
|
formatAutoTopUpMoney: () => formatAutoTopUpMoney,
|
|
135
|
+
formatCardBrand: () => formatCardBrand,
|
|
135
136
|
formatCreditLimit: () => formatCreditLimit,
|
|
136
137
|
formatCredits: () => formatCredits,
|
|
137
138
|
formatPackOption: () => formatPackOption,
|
|
@@ -11046,6 +11047,24 @@ function autoTopUpCardAction(view) {
|
|
|
11046
11047
|
if (!view.paidPlan) return null;
|
|
11047
11048
|
return view.paymentMethod ? "update" : "add";
|
|
11048
11049
|
}
|
|
11050
|
+
var CARD_BRANDS = {
|
|
11051
|
+
visa: "Visa",
|
|
11052
|
+
mastercard: "Mastercard",
|
|
11053
|
+
amex: "American Express",
|
|
11054
|
+
discover: "Discover",
|
|
11055
|
+
diners: "Diners Club",
|
|
11056
|
+
jcb: "JCB",
|
|
11057
|
+
unionpay: "UnionPay",
|
|
11058
|
+
cartes_bancaires: "Cartes Bancaires",
|
|
11059
|
+
eftpos_au: "eftpos",
|
|
11060
|
+
interac: "Interac",
|
|
11061
|
+
rupay: "RuPay"
|
|
11062
|
+
};
|
|
11063
|
+
function formatCardBrand(brand) {
|
|
11064
|
+
const key = brand?.trim().toLowerCase();
|
|
11065
|
+
if (!key || key === "unknown") return null;
|
|
11066
|
+
return CARD_BRANDS[key] ?? `${key.charAt(0).toUpperCase()}${key.slice(1)}`;
|
|
11067
|
+
}
|
|
11049
11068
|
var CARD_SETUP_PARAM = "card_setup";
|
|
11050
11069
|
var CARD_SETUP_SESSION_PARAM = "session_id";
|
|
11051
11070
|
var withoutCardSetupParams = (href) => {
|
|
@@ -11126,7 +11145,7 @@ var sameForm = (a, b) => a.enabled === b.enabled && a.threshold === b.threshold
|
|
|
11126
11145
|
var AUTO_TOPUP_FOLLOW_MS = 1500;
|
|
11127
11146
|
var AUTO_TOPUP_FOLLOW_LIMIT_MS = 3e4;
|
|
11128
11147
|
var cardLabel = (card2) => {
|
|
11129
|
-
const brand =
|
|
11148
|
+
const brand = formatCardBrand(card2.brand) ?? "Card";
|
|
11130
11149
|
return card2.last4 ? `${brand} ending ${card2.last4}` : `${brand} on file`;
|
|
11131
11150
|
};
|
|
11132
11151
|
var charging = (view) => view.pending || view.lastAttempt?.status === "pending";
|
|
@@ -11318,7 +11337,7 @@ function AutoTopUpCard({ onTopUpSettled } = {}) {
|
|
|
11318
11337
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex items-center justify-between", style: { gap: 12 }, children: [
|
|
11319
11338
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "flex flex-col min-w-0", style: { gap: 4 }, children: [
|
|
11320
11339
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { style: { ...cellText3, fontWeight: 500 }, children: "Auto top-up" }),
|
|
11321
|
-
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { style: { ...cellText3, color: T16.muted }, children: view?.paymentMethod ? `Buy credits automatically on ${view.paymentMethod.brand
|
|
11340
|
+
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { style: { ...cellText3, color: T16.muted }, children: view?.paymentMethod ? `Buy credits automatically on ${formatCardBrand(view.paymentMethod.brand) ?? "the card"} ${view.paymentMethod.last4 ? `ending ${view.paymentMethod.last4}` : "on file"} when the balance runs low.` : "Buy credits automatically on your saved card when the balance runs low." })
|
|
11322
11341
|
] }),
|
|
11323
11342
|
form && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
11324
11343
|
"span",
|
package/dist/index.mjs
CHANGED
|
@@ -10891,6 +10891,24 @@ function autoTopUpCardAction(view) {
|
|
|
10891
10891
|
if (!view.paidPlan) return null;
|
|
10892
10892
|
return view.paymentMethod ? "update" : "add";
|
|
10893
10893
|
}
|
|
10894
|
+
var CARD_BRANDS = {
|
|
10895
|
+
visa: "Visa",
|
|
10896
|
+
mastercard: "Mastercard",
|
|
10897
|
+
amex: "American Express",
|
|
10898
|
+
discover: "Discover",
|
|
10899
|
+
diners: "Diners Club",
|
|
10900
|
+
jcb: "JCB",
|
|
10901
|
+
unionpay: "UnionPay",
|
|
10902
|
+
cartes_bancaires: "Cartes Bancaires",
|
|
10903
|
+
eftpos_au: "eftpos",
|
|
10904
|
+
interac: "Interac",
|
|
10905
|
+
rupay: "RuPay"
|
|
10906
|
+
};
|
|
10907
|
+
function formatCardBrand(brand) {
|
|
10908
|
+
const key = brand?.trim().toLowerCase();
|
|
10909
|
+
if (!key || key === "unknown") return null;
|
|
10910
|
+
return CARD_BRANDS[key] ?? `${key.charAt(0).toUpperCase()}${key.slice(1)}`;
|
|
10911
|
+
}
|
|
10894
10912
|
var CARD_SETUP_PARAM = "card_setup";
|
|
10895
10913
|
var CARD_SETUP_SESSION_PARAM = "session_id";
|
|
10896
10914
|
var withoutCardSetupParams = (href) => {
|
|
@@ -10971,7 +10989,7 @@ var sameForm = (a, b) => a.enabled === b.enabled && a.threshold === b.threshold
|
|
|
10971
10989
|
var AUTO_TOPUP_FOLLOW_MS = 1500;
|
|
10972
10990
|
var AUTO_TOPUP_FOLLOW_LIMIT_MS = 3e4;
|
|
10973
10991
|
var cardLabel = (card2) => {
|
|
10974
|
-
const brand =
|
|
10992
|
+
const brand = formatCardBrand(card2.brand) ?? "Card";
|
|
10975
10993
|
return card2.last4 ? `${brand} ending ${card2.last4}` : `${brand} on file`;
|
|
10976
10994
|
};
|
|
10977
10995
|
var charging = (view) => view.pending || view.lastAttempt?.status === "pending";
|
|
@@ -11163,7 +11181,7 @@ function AutoTopUpCard({ onTopUpSettled } = {}) {
|
|
|
11163
11181
|
/* @__PURE__ */ jsxs24("div", { className: "flex items-center justify-between", style: { gap: 12 }, children: [
|
|
11164
11182
|
/* @__PURE__ */ jsxs24("div", { className: "flex flex-col min-w-0", style: { gap: 4 }, children: [
|
|
11165
11183
|
/* @__PURE__ */ jsx27("span", { style: { ...cellText3, fontWeight: 500 }, children: "Auto top-up" }),
|
|
11166
|
-
/* @__PURE__ */ jsx27("span", { style: { ...cellText3, color: T16.muted }, children: view?.paymentMethod ? `Buy credits automatically on ${view.paymentMethod.brand
|
|
11184
|
+
/* @__PURE__ */ jsx27("span", { style: { ...cellText3, color: T16.muted }, children: view?.paymentMethod ? `Buy credits automatically on ${formatCardBrand(view.paymentMethod.brand) ?? "the card"} ${view.paymentMethod.last4 ? `ending ${view.paymentMethod.last4}` : "on file"} when the balance runs low.` : "Buy credits automatically on your saved card when the balance runs low." })
|
|
11167
11185
|
] }),
|
|
11168
11186
|
form && /* @__PURE__ */ jsx27(
|
|
11169
11187
|
"span",
|
|
@@ -20023,6 +20041,7 @@ export {
|
|
|
20023
20041
|
findBillingError,
|
|
20024
20042
|
findPoolError,
|
|
20025
20043
|
formatAutoTopUpMoney,
|
|
20044
|
+
formatCardBrand,
|
|
20026
20045
|
formatCreditLimit,
|
|
20027
20046
|
formatCredits,
|
|
20028
20047
|
formatPackOption,
|