@micha.bigler/ui-core-micha 4.8.1 → 4.10.0
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/CHANGELOG.md +24 -0
- package/dist/billing/SubscriptionSection.js +23 -7
- package/dist/billing/TokenOriginTable.js +58 -0
- package/dist/billing/WithdrawalSection.js +16 -4
- package/dist/billing/wire.js +1 -0
- package/dist/i18n/billingTranslations.js +93 -80
- package/dist/theme/kitSxRegistry.js +5 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.10.0 - UCM-BILL-6
|
|
4
|
+
|
|
5
|
+
The account section matches the Maana prototype in three places, against `django-core-micha` >= 3.13.0 (DCM-BILL-6).
|
|
6
|
+
The token balance is broken down by origin in a small table "Herkunft / verbleibend / gültig": one row per grant
|
|
7
|
+
(Kontingent, Paket, Gutschrift, Test-Guthaben, by `tokens.grants[].origin`) and the team pool (`tokens.pool`, "Team-Pool"),
|
|
8
|
+
each with the remaining amount, "verfällt am {Datum}" or "verfällt nicht" and a thin bar of the remaining share (on a
|
|
9
|
+
phone the validity moves under the row). A seat holder sees "Platz im Team-Paket von {Name}" (`seat.payer_name`) under
|
|
10
|
+
"Team-Platz bis {Datum}". The section "Käufe" lists every purchase of the withdrawal list: eligible ones with "Vertrag
|
|
11
|
+
hier widerrufen" and "bis {Datum}", withdrawn ones with "Widerrufen am {Datum}", ones past the period with
|
|
12
|
+
"Widerrufsfrist abgelaufen", other reasons without an action. With an older dcm (no `origin`, `pool` or `payer_name`)
|
|
13
|
+
the section shows today's display. New keys `Billing.ORIGIN_*`, `EXPIRES_ON`, `NEVER_EXPIRES`, `ORIGIN_LINE`,
|
|
14
|
+
`SEAT_PAYER`, `PURCHASES`, `WITHDRAWN_ON`, `WITHDRAWAL_PERIOD_OVER` (de, de_informal, en, fr, sw).
|
|
15
|
+
|
|
16
|
+
## 4.9.0 - UCM-BILL-5
|
|
17
|
+
|
|
18
|
+
Informal German for the whole billing surface: every `Billing.*` key now has a `de_informal` value (the "du" form where
|
|
19
|
+
the text addresses the person, identical to `de` otherwise), selected through the kit's existing German variant
|
|
20
|
+
mechanism. In German the seat is a "Platz" everywhere ("Sitzplatz" is gone: `Billing.SEATS_ADD` "Platz vergeben",
|
|
21
|
+
`Billing.TEAM_SEATS` "Plaetze im Team-Paket", `Billing.ERROR_SEAT_LIMIT` "Alle Plaetze sind belegt.", the seat counts).
|
|
22
|
+
New optional prop `seatCandidates` on `SubscriptionSection`: an array of `{ id, name, email? }` from the app. With it the
|
|
23
|
+
seat assignment is a select "Teammitglied waehlen" plus the button "Platz vergeben" (people who already hold a seat are
|
|
24
|
+
not offered; the chosen id goes to the existing `api.addSeat({ userId })`), and a team without a free seat shows only
|
|
25
|
+
"Alle Plaetze sind belegt." Without the prop the free text field stays exactly as before. New key `Billing.SEAT_PICK`.
|
|
26
|
+
|
|
3
27
|
## 4.8.1 - UCM-RCPT-2
|
|
4
28
|
|
|
5
29
|
`ReceiptReviewDialog` matches its prototype again. Each recognised field is one row with the columns label, value and action and a divider between rows (the label above the value on phones); the "uncertain" chip is a soft warning tint beside the action (under the value on phones); the sheet on phones is as high as its content up to the available height, with full-width actions stacked as "Alle uebernehmen", "Nur leere Felder", "Schliessen"; the wide dialog is 640 px wide with a 640 px maximum height; the currency is shown with the amount (a receipt that has a currency but no amount keeps a currency row) and applying the amount hands over amount and currency; the date has a four-digit year in the active language (the picker follows). The review no longer prints line items of the form through string conversion: both the recognised and the current items are lists, blank rows count as empty. "Only empty fields" never overwrites a filled currency. Props and the `onApply` contract are unchanged.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useEffect, useRef, useState } from 'react';
|
|
3
|
-
import { Alert, Button, CircularProgress, Stack, TextField, Typography } from '@mui/material';
|
|
3
|
+
import { Alert, Button, CircularProgress, MenuItem, Stack, TextField, Typography } from '@mui/material';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
5
|
import { defaultBillingApi } from './api';
|
|
6
6
|
import { DEFAULT_PAYMENT_HOSTS, isTrustedPaymentUrl } from './safeUrl';
|
|
@@ -10,13 +10,18 @@ import { PlanPicker } from './PlanPicker';
|
|
|
10
10
|
import { TokenBalanceBadge } from './TokenBalanceBadge';
|
|
11
11
|
import { AccessEndedBanner } from './AccessEndedBanner';
|
|
12
12
|
import { WithdrawalSection } from './WithdrawalSection';
|
|
13
|
+
import { TokenOriginTable } from './TokenOriginTable';
|
|
13
14
|
export const SUBSCRIPTION_SECTION_ALERT_SX = { width: '100%' };
|
|
15
|
+
export const SUBSCRIPTION_SECTION_SEAT_SELECT_SX = { flex: '1 1 auto', minWidth: 0 };
|
|
16
|
+
// The seat button keeps its width and its single line next to a shrinking select (375 px).
|
|
17
|
+
export const SUBSCRIPTION_SECTION_SEAT_ADD_SX = { flexShrink: 0, whiteSpace: 'nowrap' };
|
|
14
18
|
function isStatus(error, status) { var _a; return ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.status) === status; }
|
|
15
19
|
function activeUntil(access, t, language) {
|
|
16
20
|
const date = formatDate(access === null || access === void 0 ? void 0 : access.ends_at, language);
|
|
17
21
|
return date ? t('Billing.ACTIVE_UNTIL', { date }) : null;
|
|
18
22
|
}
|
|
19
|
-
export function SubscriptionSection({ api = defaultBillingApi, redirect = (url) => window.location.assign(url), allowedHosts = DEFAULT_PAYMENT_HOSTS, onRenew, describePlan, withdrawal = true, sx }) {
|
|
23
|
+
export function SubscriptionSection({ api = defaultBillingApi, redirect = (url) => window.location.assign(url), allowedHosts = DEFAULT_PAYMENT_HOSTS, onRenew, describePlan, withdrawal = true, seatCandidates, sx }) {
|
|
24
|
+
var _a, _b, _c;
|
|
20
25
|
const { t, i18n } = useTranslation();
|
|
21
26
|
const { state, me, reload } = useBilling(api);
|
|
22
27
|
const [withdrawnPurchases, setWithdrawnPurchases] = useState({});
|
|
@@ -86,17 +91,28 @@ export function SubscriptionSection({ api = defaultBillingApi, redirect = (url)
|
|
|
86
91
|
const dateLine = activeUntil(access, t, i18n.language);
|
|
87
92
|
const packagePlans = (Array.isArray(me.plans) ? me.plans : []).filter((plan) => (plan === null || plan === void 0 ? void 0 : plan.kind) === 'token_package');
|
|
88
93
|
const sourceLine = access.source === 'subscription' ? t('Billing.SOURCE_SUBSCRIPTION') : access.source === 'team' ? t('Billing.SOURCE_TEAM') : access.source === 'free' ? t('Billing.SOURCE_FREE') : null;
|
|
94
|
+
// With a candidate list the app has a team concept, so a full team shows only the message; without one the free text path stays as it always was (the server answers 409 for a full team).
|
|
95
|
+
const hasSeatLimit = Array.isArray(seatCandidates) && Number.isInteger((_a = me.team) === null || _a === void 0 ? void 0 : _a.seats_used) && Number.isInteger((_b = me.team) === null || _b === void 0 ? void 0 : _b.seats_total) && me.team.seats_used >= me.team.seats_total;
|
|
96
|
+
const occupiedIds = new Set([
|
|
97
|
+
...(Array.isArray(seats) ? seats.map((seat) => seat === null || seat === void 0 ? void 0 : seat.user_id) : []),
|
|
98
|
+
...(Array.isArray((_c = me.team) === null || _c === void 0 ? void 0 : _c.seat_holders) ? me.team.seat_holders.map((holder) => holder === null || holder === void 0 ? void 0 : holder.user_id) : []),
|
|
99
|
+
].filter((id) => id != null).map(String));
|
|
100
|
+
const eligibleSeatCandidates = Array.isArray(seatCandidates)
|
|
101
|
+
? seatCandidates.filter((candidate) => (candidate === null || candidate === void 0 ? void 0 : candidate.id) != null && !occupiedIds.has(String(candidate.id)))
|
|
102
|
+
: [];
|
|
103
|
+
const selectedSeatCandidate = eligibleSeatCandidates.find((candidate) => String(candidate.id) === seatInput);
|
|
89
104
|
if (!sourceLine && access.status === 'active')
|
|
90
105
|
return _jsx(Alert, { severity: "error", sx: SUBSCRIPTION_SECTION_ALERT_SX, children: t('Billing.ERROR_LOAD') });
|
|
91
106
|
return _jsxs(Stack, { sx: sx, spacing: 2, children: [access.status === 'read_only' ? _jsxs(_Fragment, { children: [_jsx(AccessEndedBanner, { endedAt: access.ends_at, onRenew: onRenew || (() => {
|
|
92
107
|
var _a, _b, _c, _d;
|
|
93
108
|
(_b = (_a = renewalPickerRef.current) === null || _a === void 0 ? void 0 : _a.scrollIntoView) === null || _b === void 0 ? void 0 : _b.call(_a, { behavior: 'smooth', block: 'start' });
|
|
94
109
|
(_d = (_c = renewalPickerRef.current) === null || _c === void 0 ? void 0 : _c.querySelector('input[type="radio"]')) === null || _d === void 0 ? void 0 : _d.focus();
|
|
95
|
-
}) }), _jsx("div", { ref: renewalPickerRef, children: _jsx(PlanPicker, { plans: me.plans || [], api: api, redirect: redirect, allowedHosts: allowedHosts, describePlan: describePlan }) })] }) : _jsxs(_Fragment, { children: [_jsx(Typography, { variant: "h5", children: t('Billing.HEADING') }), _jsx(Typography, { children: sourceLine }), access.source !== 'free' && dateLine && _jsx(Typography, { children: dateLine }), me.subscription && typeof me.subscription === 'object' && typeof me.subscription.plan_key === 'string' && typeof me.subscription.renews === 'boolean' && formatDate(me.subscription.current_period_end, i18n.language) && _jsxs(Stack, { spacing: 0.5, children: [_jsx(Typography, { children: t('Billing.OP_PLAN', { plan: me.subscription.plan_name || me.subscription.plan_key }) }), formatDate(me.subscription.current_period_end, i18n.language) && _jsx(Typography, { children: formatDate(me.subscription.current_period_start, i18n.language) ? `${formatDate(me.subscription.current_period_start, i18n.language)} – ${formatDate(me.subscription.current_period_end, i18n.language)}` : t('Billing.OP_UNTIL', { date: formatDate(me.subscription.current_period_end, i18n.language) }) }), typeof me.subscription.renews === 'boolean' && _jsx(Typography, { children: t(me.subscription.renews ? 'Billing.OP_RENEWS' : 'Billing.OP_ENDS') })] }), access.source === 'subscription' && _jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [_jsx(Button, { disabled: busy, onClick: () => safeRedirect(() => api.openPortal(), 'Billing.ERROR_PORTAL'), children: t('Billing.MANAGE') }), _jsx(Typography, { children: t('Billing.MANAGE_DETAILS') })] }), access.source === 'team' && seatError && !seats && _jsx(Alert, { severity: "error", sx: SUBSCRIPTION_SECTION_ALERT_SX, children: t('Billing.ERROR_LOAD') }), me.team && Number.isInteger(me.team.seats_used) && Number.isInteger(me.team.seats_total) && _jsxs(Stack, { spacing: 0.5, children: [_jsx(Typography, { children: t('Billing.OP_SEATS_USED', { n: formatTokens(me.team.seats_used, i18n.language), m: formatTokens(me.team.seats_total, i18n.language) }) }), (Array.isArray(me.team.seat_holders) ? me.team.seat_holders : []).map((holder) => _jsxs(Stack, { children: [_jsx(Typography, { children: holder.name || holder.email }), holder.name && _jsx(Typography, { color: "text.secondary", children: holder.email })] }, holder.user_id))] }), access.source === 'team' && seats && _jsxs(Stack, { spacing: 1, children: [_jsx(Typography, { children: t('Billing.TEAM_SEATS') }), seats.map((seat) => _jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [(() => { var _a; const holder = (((_a = me.team) === null || _a === void 0 ? void 0 : _a.seat_holders) || []).find((entry) => String(entry.user_id) === String(seat.user_id)); return _jsxs(Stack, { children: [_jsx(Typography, { children: (holder === null || holder === void 0 ? void 0 : holder.name) || (holder === null || holder === void 0 ? void 0 : holder.email) || String(seat.user_id) }), (holder === null || holder === void 0 ? void 0 : holder.name) && _jsx(Typography, { color: "text.secondary", children: holder.email })] }); })(), _jsx(Button, { disabled: busy, onClick: () => updateSeat(() => api.removeSeat({ userId: seat.user_id })), children: t('Billing.SEAT_REMOVE') })] }, seat.user_id)),
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
110
|
+
}) }), _jsx("div", { ref: renewalPickerRef, children: _jsx(PlanPicker, { plans: me.plans || [], api: api, redirect: redirect, allowedHosts: allowedHosts, describePlan: describePlan }) })] }) : _jsxs(_Fragment, { children: [_jsx(Typography, { variant: "h5", children: t('Billing.HEADING') }), _jsx(Typography, { children: sourceLine }), access.source !== 'free' && dateLine && _jsx(Typography, { children: dateLine }), me.subscription && typeof me.subscription === 'object' && typeof me.subscription.plan_key === 'string' && typeof me.subscription.renews === 'boolean' && formatDate(me.subscription.current_period_end, i18n.language) && _jsxs(Stack, { spacing: 0.5, children: [_jsx(Typography, { children: t('Billing.OP_PLAN', { plan: me.subscription.plan_name || me.subscription.plan_key }) }), formatDate(me.subscription.current_period_end, i18n.language) && _jsx(Typography, { children: formatDate(me.subscription.current_period_start, i18n.language) ? `${formatDate(me.subscription.current_period_start, i18n.language)} – ${formatDate(me.subscription.current_period_end, i18n.language)}` : t('Billing.OP_UNTIL', { date: formatDate(me.subscription.current_period_end, i18n.language) }) }), typeof me.subscription.renews === 'boolean' && _jsx(Typography, { children: t(me.subscription.renews ? 'Billing.OP_RENEWS' : 'Billing.OP_ENDS') })] }), access.source === 'subscription' && _jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [_jsx(Button, { disabled: busy, onClick: () => safeRedirect(() => api.openPortal(), 'Billing.ERROR_PORTAL'), children: t('Billing.MANAGE') }), _jsx(Typography, { children: t('Billing.MANAGE_DETAILS') })] }), access.source === 'team' && seatError && !seats && _jsx(Alert, { severity: "error", sx: SUBSCRIPTION_SECTION_ALERT_SX, children: t('Billing.ERROR_LOAD') }), me.team && Number.isInteger(me.team.seats_used) && Number.isInteger(me.team.seats_total) && _jsxs(Stack, { spacing: 0.5, children: [_jsx(Typography, { children: t('Billing.OP_SEATS_USED', { n: formatTokens(me.team.seats_used, i18n.language), m: formatTokens(me.team.seats_total, i18n.language) }) }), (Array.isArray(me.team.seat_holders) ? me.team.seat_holders : []).map((holder) => _jsxs(Stack, { children: [_jsx(Typography, { children: holder.name || holder.email }), holder.name && _jsx(Typography, { color: "text.secondary", children: holder.email })] }, holder.user_id))] }), access.source === 'team' && seats && _jsxs(Stack, { spacing: 1, children: [_jsx(Typography, { children: t('Billing.TEAM_SEATS') }), seats.map((seat) => _jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [(() => { var _a; const holder = (((_a = me.team) === null || _a === void 0 ? void 0 : _a.seat_holders) || []).find((entry) => String(entry.user_id) === String(seat.user_id)); return _jsxs(Stack, { children: [_jsx(Typography, { children: (holder === null || holder === void 0 ? void 0 : holder.name) || (holder === null || holder === void 0 ? void 0 : holder.email) || String(seat.user_id) }), (holder === null || holder === void 0 ? void 0 : holder.name) && _jsx(Typography, { color: "text.secondary", children: holder.email })] }); })(), _jsx(Button, { disabled: busy, onClick: () => updateSeat(() => api.removeSeat({ userId: seat.user_id })), children: t('Billing.SEAT_REMOVE') })] }, seat.user_id)), hasSeatLimit ? _jsx(Typography, { color: "text.secondary", children: t('Billing.ERROR_SEAT_LIMIT') }) : _jsxs(Stack, { direction: "row", spacing: 1, children: [Array.isArray(seatCandidates) ? _jsxs(TextField, { select: true, SelectProps: { displayEmpty: true, SelectDisplayProps: { 'aria-label': t('Billing.SEAT_PICK'), 'aria-labelledby': undefined } }, size: "small", value: seatInput, onChange: (event) => setSeatInput(event.target.value), sx: SUBSCRIPTION_SECTION_SEAT_SELECT_SX, children: [_jsx(MenuItem, { value: "", children: t('Billing.SEAT_PICK') }), eligibleSeatCandidates.map((candidate) => _jsx(MenuItem, { value: String(candidate.id), children: _jsxs(Stack, { children: [_jsx(Typography, { children: candidate.name }), candidate.email && _jsx(Typography, { variant: "body2", color: "text.secondary", children: candidate.email })] }) }, String(candidate.id)))] }) : _jsx(TextField, { size: "small", label: t('Billing.SEAT_USER'), value: seatInput, onChange: (event) => setSeatInput(event.target.value) }), _jsx(Button, { sx: SUBSCRIPTION_SECTION_SEAT_ADD_SX, disabled: busy || (Array.isArray(seatCandidates) ? !selectedSeatCandidate : !seatInput.trim()), onClick: () => updateSeat(() => {
|
|
111
|
+
if (Array.isArray(seatCandidates)) {
|
|
112
|
+
return selectedSeatCandidate ? api.addSeat({ userId: selectedSeatCandidate.id }) : undefined;
|
|
113
|
+
}
|
|
114
|
+
return seatInput.includes('@') ? api.addSeat({ email: seatInput.trim() }) : api.addSeat({ userId: seatInput.trim() });
|
|
115
|
+
}), children: t('Billing.SEATS_ADD') })] }), seatError && _jsx(Alert, { severity: "error", sx: SUBSCRIPTION_SECTION_ALERT_SX, children: typeof seatError === 'string' ? t(seatError) : t('Billing.ERROR_LOAD') })] }), actionError && _jsx(Alert, { severity: "error", sx: SUBSCRIPTION_SECTION_ALERT_SX, children: t(actionError) }), me.seat && typeof me.seat === 'object' && formatDate(me.seat.ends_at, i18n.language) && _jsxs(Stack, { spacing: 0.25, children: [_jsx(Typography, { children: t('Billing.OP_SEAT_UNTIL', { date: formatDate(me.seat.ends_at, i18n.language) }) }), typeof me.seat.payer_name === 'string' && me.seat.payer_name.trim() && _jsx(Typography, { color: "text.secondary", children: t('Billing.SEAT_PAYER', { name: me.seat.payer_name }) })] })] }), _jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [_jsx(Typography, { children: t('Billing.BALANCE_LABEL') }), _jsx(TokenBalanceBadge, { balance: tokens.balance })] }), _jsx(Typography, { children: t('Billing.BALANCE', { tokens: formatTokens(tokens.balance, i18n.language) }) }), _jsx(TokenOriginTable, { tokens: tokens }), packagePlans.length > 0 && _jsxs(Stack, { spacing: 1, children: [_jsx(Typography, { variant: "h6", children: t('Billing.BUY_PACKAGE') }), packagePlans.map((plan) => _jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", children: [_jsxs(Typography, { children: [formatPrice(plan.amount_cents, i18n.language), " \u00B7 ", t('Billing.PACKAGE_TOKENS', { tokens: formatTokens(plan.tokens, i18n.language) })] }), _jsx(Button, { disabled: busy, onClick: () => safeRedirect(() => api.startCheckout(plan.key), 'Billing.ERROR_CHECKOUT'), children: t('Billing.PACKAGE_BUY') })] }, plan.key))] }), withdrawal && _jsx(WithdrawalSection, { api: api, plans: me.plans, sessionWithdrawals: withdrawnPurchases, onWithdrawn: (result, purchase) => {
|
|
100
116
|
if ((purchase === null || purchase === void 0 ? void 0 : purchase.id) != null)
|
|
101
117
|
setWithdrawnPurchases((current) => (Object.assign(Object.assign({}, current), { [purchase.id]: { result, purchase } })));
|
|
102
118
|
reload();
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Box, Typography } from '@mui/material';
|
|
4
|
+
import { useTranslation } from 'react-i18next';
|
|
5
|
+
import { formatDate, formatTokens } from './format';
|
|
6
|
+
import { BILLING_TOKEN_ORIGINS } from './wire';
|
|
7
|
+
const ORIGIN_KEYS = {
|
|
8
|
+
plan: 'Billing.OP_GRANT_PLAN',
|
|
9
|
+
package: 'Billing.OP_GRANT_PACKAGE',
|
|
10
|
+
credit: 'Billing.ORIGIN_credit',
|
|
11
|
+
trial: 'Billing.ORIGIN_trial',
|
|
12
|
+
};
|
|
13
|
+
const nonNegativeInteger = (value) => Number.isInteger(value) && value >= 0;
|
|
14
|
+
function validPool(pool) {
|
|
15
|
+
return pool && typeof pool === 'object'
|
|
16
|
+
&& typeof pool.plan_key === 'string' && typeof pool.plan_name === 'string'
|
|
17
|
+
&& (pool.expires_at == null || typeof pool.expires_at === 'string')
|
|
18
|
+
&& nonNegativeInteger(pool.amount) && nonNegativeInteger(pool.remaining);
|
|
19
|
+
}
|
|
20
|
+
function OriginGrid({ rows, t, language }) {
|
|
21
|
+
return _jsxs(Box, { role: "table", "aria-label": t('Billing.ORIGIN_HEADER'), sx: { display: 'grid', gridTemplateColumns: { xs: 'minmax(0, 1fr) auto', sm: 'minmax(0, 1fr) auto auto' }, columnGap: 2, rowGap: 0.5, alignItems: 'baseline', fontSize: '0.8125rem' }, children: [_jsxs(Box, { role: "row", sx: { display: 'contents' }, children: [_jsx(Typography, { role: "columnheader", variant: "caption", children: t('Billing.ORIGIN_HEADER') }), _jsx(Box, { role: "columnheader", component: "span", sx: { textAlign: 'right', color: 'text.secondary', fontSize: '0.75rem' }, children: t('Billing.OP_REMAINING') }), _jsx(Box, { role: "columnheader", component: "span", sx: { display: { xs: 'none', sm: 'block' }, textAlign: 'right', color: 'text.secondary', fontSize: '0.75rem' }, children: t('Billing.VALID_HEADER') })] }), rows.map((row) => {
|
|
22
|
+
const share = row.amount === 0 ? 0 : Math.max(0, Math.min(1, row.remaining / row.amount));
|
|
23
|
+
const expiry = formatDate(row.expires_at, language);
|
|
24
|
+
return _jsxs(Box, { role: "row", sx: { display: 'contents' }, children: [_jsx(Typography, { role: "cell", children: t(row.nameKey, row.nameValues) }), _jsx(Box, { role: "cell", component: "span", sx: { textAlign: 'right', fontVariantNumeric: 'tabular-nums' }, children: formatTokens(row.remaining, language) }), _jsx(Box, { role: "cell", component: "span", sx: { gridColumn: { xs: '1 / -1', sm: 'auto' }, color: 'text.secondary', textAlign: { xs: 'left', sm: 'right' }, mt: { xs: -0.5, sm: 0 } }, children: row.expires_at == null ? t('Billing.NEVER_EXPIRES') : expiry ? t('Billing.EXPIRES_ON', { date: expiry }) : '' }), row.amount > 0 && _jsx(Box, { role: "cell", sx: { gridColumn: '1 / -1' }, children: _jsx(Box, { role: "img", "aria-label": `${formatTokens(row.remaining, language)} / ${formatTokens(row.amount, language)}`, sx: { gridColumn: '1 / -1', height: 6, borderRadius: 3, bgcolor: (theme) => theme.palette.action.hover, overflow: 'hidden', mb: 0.75 }, children: _jsx(Box, { style: { width: `${share * 100}%`, height: '100%' }, sx: { bgcolor: 'primary.main' } }) }) })] }, row.key);
|
|
25
|
+
})] });
|
|
26
|
+
}
|
|
27
|
+
export function TokenOriginTable({ tokens, sx }) {
|
|
28
|
+
var _a;
|
|
29
|
+
const { t, i18n } = useTranslation();
|
|
30
|
+
const grants = Array.isArray(tokens === null || tokens === void 0 ? void 0 : tokens.grants) ? tokens.grants : [];
|
|
31
|
+
const hasLegacyGrant = grants.some((grant) => !BILLING_TOKEN_ORIGINS.includes(grant === null || grant === void 0 ? void 0 : grant.origin));
|
|
32
|
+
if (hasLegacyGrant)
|
|
33
|
+
return grants.length > 0 ? _jsx(Box, { sx: sx, children: grants.map((grant, index) => {
|
|
34
|
+
if (!['plan', 'package'].includes(grant === null || grant === void 0 ? void 0 : grant.source) || !nonNegativeInteger(grant.amount) || !nonNegativeInteger(grant.remaining))
|
|
35
|
+
return null;
|
|
36
|
+
return _jsxs(Box, { sx: { mb: 0.5 }, children: [_jsxs(Typography, { children: [t(grant.source === 'plan' ? 'Billing.OP_GRANT_PLAN' : 'Billing.OP_GRANT_PACKAGE'), ": ", formatTokens(grant.amount, i18n.language)] }), _jsxs(Typography, { children: [formatTokens(grant.remaining, i18n.language), " ", t('Billing.OP_REMAINING')] }), formatDate(grant.expires_at, i18n.language) && _jsx(Typography, { children: t('Billing.OP_VALID_UNTIL', { date: formatDate(grant.expires_at, i18n.language) }) })] }, `${grant.source}-${grant.expires_at || 'never'}-${index}`);
|
|
37
|
+
}) }) : null;
|
|
38
|
+
const rows = grants.filter((grant) => nonNegativeInteger(grant === null || grant === void 0 ? void 0 : grant.amount) && nonNegativeInteger(grant === null || grant === void 0 ? void 0 : grant.remaining))
|
|
39
|
+
.map((grant, index) => { var _a; return ({
|
|
40
|
+
key: `grant-${index}`,
|
|
41
|
+
amount: grant.amount,
|
|
42
|
+
remaining: grant.remaining,
|
|
43
|
+
expires_at: (_a = grant.expires_at) !== null && _a !== void 0 ? _a : null,
|
|
44
|
+
nameKey: 'Billing.ORIGIN_LINE',
|
|
45
|
+
nameValues: { name: t(ORIGIN_KEYS[grant.origin]), amount: formatTokens(grant.amount, i18n.language) },
|
|
46
|
+
}); });
|
|
47
|
+
if (validPool(tokens === null || tokens === void 0 ? void 0 : tokens.pool))
|
|
48
|
+
rows.push({
|
|
49
|
+
key: 'pool', amount: tokens.pool.amount, remaining: tokens.pool.remaining,
|
|
50
|
+
expires_at: (_a = tokens.pool.expires_at) !== null && _a !== void 0 ? _a : null,
|
|
51
|
+
nameKey: 'Billing.ORIGIN_LINE',
|
|
52
|
+
nameValues: { name: t('Billing.ORIGIN_pool'), amount: formatTokens(tokens.pool.amount, i18n.language) },
|
|
53
|
+
});
|
|
54
|
+
if (!rows.length)
|
|
55
|
+
return null;
|
|
56
|
+
return _jsx(OriginGrid, { rows: rows, t: t, language: i18n.language });
|
|
57
|
+
}
|
|
58
|
+
export default TokenOriginTable;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useEffect, useState } from 'react';
|
|
3
3
|
import { Alert, Button, Stack, Typography } from '@mui/material';
|
|
4
4
|
import { useTranslation } from 'react-i18next';
|
|
5
|
-
import { formatDate, formatDateTime } from './format';
|
|
5
|
+
import { formatDate, formatDateTime, formatPrice } from './format';
|
|
6
6
|
import { WithdrawalDialog } from './WithdrawalDialog';
|
|
7
7
|
export const WITHDRAWAL_SECTION_ALERT_SX = { width: '100%' };
|
|
8
8
|
const is404 = (error) => { var _a; return ((_a = error === null || error === void 0 ? void 0 : error.response) === null || _a === void 0 ? void 0 : _a.status) === 404; };
|
|
@@ -48,12 +48,24 @@ export function WithdrawalSection({ api, plans = [], onWithdrawn, sessionWithdra
|
|
|
48
48
|
setReload((count) => count + 1);
|
|
49
49
|
};
|
|
50
50
|
const successful = Object.assign(Object.assign({}, sessionWithdrawals), withdrawn);
|
|
51
|
-
const eligible = purchases.filter((item) => (item === null || item === void 0 ? void 0 : item.eligible) === true && item.withdrawn_at == null && !successful[item.id]);
|
|
52
51
|
if (loadError)
|
|
53
52
|
return _jsxs(Stack, { sx: sx, spacing: 1, children: [_jsx(Alert, { severity: "error", sx: WITHDRAWAL_SECTION_ALERT_SX, children: t('Billing.WITHDRAWAL_LOAD_ERROR') }), _jsx(Button, { onClick: () => setReload((count) => count + 1), children: t('Billing.RETRY') }), Object.entries(successful).map(([id, entry]) => { var _a; return _jsxs(Stack, { spacing: 0.5, role: "status", children: [_jsx(Typography, { children: t('Billing.WITHDRAWAL_DONE') }), _jsx(Typography, { children: t('Billing.WITHDRAWAL_DONE_DETAIL', { date: formatDateTime((_a = ((entry === null || entry === void 0 ? void 0 : entry.result) || entry)) === null || _a === void 0 ? void 0 : _a.withdrawn_at, i18n.language) }) })] }, id); })] });
|
|
54
|
-
if (!
|
|
53
|
+
if (!purchases.length && !Object.keys(successful).length)
|
|
55
54
|
return null;
|
|
56
55
|
const findPlan = (key) => { var _a; return ((_a = plans.find((plan) => (plan === null || plan === void 0 ? void 0 : plan.key) === key)) === null || _a === void 0 ? void 0 : _a.name) || key; };
|
|
57
|
-
return _jsxs(Stack, { sx: sx, spacing: 1, children: [
|
|
56
|
+
return _jsxs(Stack, { sx: sx, spacing: 1, children: [_jsx(Typography, { variant: "h6", children: t('Billing.PURCHASES') }), purchases.map((purchase) => {
|
|
57
|
+
var _a;
|
|
58
|
+
const success = successful[purchase.id];
|
|
59
|
+
const withdrawnAt = purchase.withdrawn_at || (success && ((_a = ((success === null || success === void 0 ? void 0 : success.result) || success)) === null || _a === void 0 ? void 0 : _a.withdrawn_at));
|
|
60
|
+
const deadlineText = formatDate(deadline(purchase), i18n.language);
|
|
61
|
+
let status = null;
|
|
62
|
+
if (withdrawnAt)
|
|
63
|
+
status = _jsx(Typography, { color: "text.secondary", children: t('Billing.WITHDRAWN_ON', { date: formatDate(withdrawnAt, i18n.language) }) });
|
|
64
|
+
else if (purchase.eligible === true)
|
|
65
|
+
status = _jsxs(Stack, { direction: "row", spacing: 1, alignItems: "center", flexWrap: "wrap", children: [_jsx(Button, { onClick: () => setSelected(purchase), children: t('Billing.WITHDRAWAL_BUTTON') }), deadlineText && _jsx(Typography, { color: "text.secondary", children: t('Billing.WITHDRAWAL_UNTIL', { date: deadlineText }) })] });
|
|
66
|
+
else if (purchase.reason === 'period_over')
|
|
67
|
+
status = _jsx(Typography, { color: "text.secondary", children: t('Billing.WITHDRAWAL_PERIOD_OVER') });
|
|
68
|
+
return _jsxs(Stack, { direction: "row", spacing: 1, justifyContent: "space-between", alignItems: "center", flexWrap: "wrap", sx: { borderBottom: '1px solid', borderColor: 'divider', py: 1 }, children: [_jsxs(Stack, { sx: { minWidth: 0, flex: '1 1 auto' }, children: [_jsx(Typography, { children: findPlan(purchase.plan_key) }), _jsxs(Typography, { variant: "body2", color: "text.secondary", children: [formatDate(purchase.purchased_at, i18n.language), " \u00B7 ", formatPrice(purchase.amount_paid_cents, i18n.language, purchase.currency)] })] }), status] }, purchase.id);
|
|
69
|
+
}), Object.entries(successful).map(([id, entry]) => { var _a; return _jsxs(Stack, { spacing: 0.5, role: "status", children: [_jsx(Typography, { children: t('Billing.WITHDRAWAL_DONE') }), _jsx(Typography, { children: t('Billing.WITHDRAWAL_DONE_DETAIL', { date: formatDateTime((_a = ((entry === null || entry === void 0 ? void 0 : entry.result) || entry)) === null || _a === void 0 ? void 0 : _a.withdrawn_at, i18n.language) }) })] }, id); }), _jsx(WithdrawalDialog, { open: Boolean(selected), purchase: selected, api: api, onClose: () => setSelected(null), onWithdrawn: (result) => selected && handleWithdrawn(selected.id, result) })] });
|
|
58
70
|
}
|
|
59
71
|
export default WithdrawalSection;
|
package/dist/billing/wire.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export const BILLING_STATUSES = { ACTIVE: 'active', READ_ONLY: 'read_only' };
|
|
2
2
|
export const BILLING_SOURCES = { SUBSCRIPTION: 'subscription', TEAM: 'team', FREE: 'free', NONE: null };
|
|
3
3
|
export const BILLING_KINDS = { SUBSCRIPTION: 'subscription', TEAM_PACKAGE: 'team_package', TOKEN_PACKAGE: 'token_package' };
|
|
4
|
+
export const BILLING_TOKEN_ORIGINS = ['plan', 'package', 'trial', 'credit'];
|
|
4
5
|
export const BILLING_ERROR_CODES = ['unknown_plan', 'checkout_unavailable', 'no_customer', 'portal_unavailable', 'no_active_team', 'invalid_user', 'seat_limit'];
|
|
5
6
|
export const BILLING_OPERATOR_ERROR_CODES = ['authentication_required', 'forbidden', 'invalid_month', 'invalid_page', 'invalid_query', 'reason_required', 'user_not_found'];
|
|
6
7
|
export const billingApiUrls = (base = '/api/billing/') => {
|
|
@@ -1,45 +1,58 @@
|
|
|
1
1
|
export const billingTranslations = {
|
|
2
|
-
'Billing.BALANCE': { de: 'Guthaben {{tokens}} Token', en: 'Balance {{tokens}} tokens', fr: 'Solde {{tokens}} jetons', sw: 'Salio {{tokens}} tokeni' },
|
|
3
|
-
'Billing.
|
|
4
|
-
'Billing.
|
|
5
|
-
'Billing.
|
|
6
|
-
'Billing.
|
|
7
|
-
'Billing.
|
|
8
|
-
'Billing.
|
|
9
|
-
'Billing.
|
|
10
|
-
'Billing.
|
|
11
|
-
'Billing.
|
|
12
|
-
'Billing.
|
|
13
|
-
'Billing.
|
|
14
|
-
'Billing.
|
|
15
|
-
'Billing.
|
|
16
|
-
'Billing.
|
|
17
|
-
'Billing.
|
|
18
|
-
'Billing.
|
|
19
|
-
'Billing.
|
|
20
|
-
'Billing.
|
|
21
|
-
'Billing.
|
|
22
|
-
'Billing.
|
|
23
|
-
'Billing.
|
|
24
|
-
'Billing.
|
|
25
|
-
'Billing.
|
|
26
|
-
'Billing.
|
|
27
|
-
'Billing.
|
|
28
|
-
'Billing.
|
|
29
|
-
'Billing.
|
|
30
|
-
'Billing.
|
|
31
|
-
'Billing.
|
|
32
|
-
'Billing.
|
|
33
|
-
'Billing.
|
|
34
|
-
'Billing.
|
|
35
|
-
'Billing.
|
|
36
|
-
'Billing.
|
|
37
|
-
'Billing.
|
|
38
|
-
'Billing.
|
|
39
|
-
'Billing.
|
|
40
|
-
'Billing.
|
|
41
|
-
'Billing.
|
|
42
|
-
'Billing.
|
|
2
|
+
'Billing.BALANCE': { de: 'Guthaben {{tokens}} Token', de_informal: 'Guthaben {{tokens}} Token', en: 'Balance {{tokens}} tokens', fr: 'Solde {{tokens}} jetons', sw: 'Salio {{tokens}} tokeni' },
|
|
3
|
+
'Billing.ORIGIN_HEADER': { de: 'Herkunft', de_informal: 'Herkunft', en: 'Origin', fr: 'Origine', sw: 'Chanzo' },
|
|
4
|
+
'Billing.VALID_HEADER': { de: 'gültig', de_informal: 'gültig', en: 'validity', fr: 'validité', sw: 'uhalali' },
|
|
5
|
+
'Billing.ORIGIN_credit': { de: 'Gutschrift', de_informal: 'Gutschrift', en: 'Credit', fr: 'Crédit', sw: 'Salio la ziada' },
|
|
6
|
+
'Billing.ORIGIN_trial': { de: 'Test-Guthaben', de_informal: 'Test-Guthaben', en: 'Trial balance', fr: 'Solde d’essai', sw: 'Salio la majaribio' },
|
|
7
|
+
'Billing.ORIGIN_pool': { de: 'Team-Pool', de_informal: 'Team-Pool', en: 'Team pool', fr: 'Pool d’équipe', sw: 'Hazina ya timu' },
|
|
8
|
+
'Billing.EXPIRES_ON': { de: 'verfällt am {{date}}', de_informal: 'verfällt am {{date}}', en: 'expires on {{date}}', fr: 'expire le {{date}}', sw: 'inaisha tarehe {{date}}' },
|
|
9
|
+
'Billing.NEVER_EXPIRES': { de: 'verfällt nicht', de_informal: 'verfällt nicht', en: 'does not expire', fr: 'n’expire pas', sw: 'haiishi muda wake' },
|
|
10
|
+
'Billing.ORIGIN_LINE': { de: '{{name}} · {{amount}} Token', de_informal: '{{name}} · {{amount}} Token', en: '{{name}} · {{amount}} tokens', fr: '{{name}} · {{amount}} jetons', sw: '{{name}} · tokeni {{amount}}' },
|
|
11
|
+
'Billing.SEAT_PAYER': { de: 'Platz im Team-Paket von {{name}}', de_informal: 'Platz im Team-Paket von {{name}}', en: 'Seat in {{name}}’s team package', fr: 'Place dans le forfait d’équipe de {{name}}', sw: 'Nafasi katika kifurushi cha timu cha {{name}}' },
|
|
12
|
+
'Billing.PURCHASES': { de: 'Käufe', de_informal: 'Käufe', en: 'Purchases', fr: 'Achats', sw: 'Ununuzi' },
|
|
13
|
+
'Billing.WITHDRAWN_ON': { de: 'Widerrufen am {{date}}', de_informal: 'Widerrufen am {{date}}', en: 'Withdrawn on {{date}}', fr: 'Révoqué le {{date}}', sw: 'Iliondolewa tarehe {{date}}' },
|
|
14
|
+
'Billing.WITHDRAWAL_PERIOD_OVER': { de: 'Widerrufsfrist abgelaufen', de_informal: 'Widerrufsfrist abgelaufen', en: 'Withdrawal period expired', fr: 'Délai de rétractation expiré', sw: 'Kipindi cha kujiondoa kimeisha' },
|
|
15
|
+
'Billing.COST': { de: '{{tokens}} Token', de_informal: '{{tokens}} Token', en: '{{tokens}} tokens', fr: '{{tokens}} jetons', sw: 'Tokeni {{tokens}}' },
|
|
16
|
+
'Billing.NOT_ENOUGH': { de: 'Guthaben reicht nicht aus', de_informal: 'Guthaben reicht nicht aus', en: 'Insufficient balance', fr: 'Solde insuffisant', sw: 'Salio halitoshi' },
|
|
17
|
+
'Billing.ENDED_TITLE': { de: 'Abo beendet – Projekte sind schreibgeschützt. Export bleibt möglich.', de_informal: 'Abo beendet – Projekte sind schreibgeschützt. Export bleibt möglich.', en: 'Subscription ended — projects are read-only. You can still export.', fr: 'Abonnement terminé — les projets sont en lecture seule. L’export reste possible.', sw: 'Usajili umeisha — miradi inaweza kusomwa tu. Bado unaweza kuhamisha data.' },
|
|
18
|
+
'Billing.ENDED_ON': { de: 'Beendet am {{date}}', de_informal: 'Beendet am {{date}}', en: 'Ended on {{date}}', fr: 'Terminé le {{date}}', sw: 'Uliisha tarehe {{date}}' },
|
|
19
|
+
'Billing.DELETION_ON': { de: 'Löschung am {{date}}', de_informal: 'Löschung am {{date}}', en: 'Deletion on {{date}}', fr: 'Suppression le {{date}}', sw: 'Kufutwa tarehe {{date}}' },
|
|
20
|
+
'Billing.RENEW': { de: 'Abo erneuern', de_informal: 'Abo erneuern', en: 'Renew subscription', fr: 'Renouveler l’abonnement', sw: 'Fanya upya usajili' },
|
|
21
|
+
'Billing.MONTHLY': { de: 'Monatlich', de_informal: 'Monatlich', en: 'Monthly', fr: 'Mensuel', sw: 'Kila mwezi' },
|
|
22
|
+
'Billing.YEARLY': { de: 'Jährlich', de_informal: 'Jährlich', en: 'Yearly', fr: 'Annuel', sw: 'Kila mwaka' },
|
|
23
|
+
'Billing.PER_MONTH': { de: '/ Monat', de_informal: '/ Monat', en: '/ month', fr: '/ mois', sw: '/ mwezi' },
|
|
24
|
+
'Billing.PER_YEAR': { de: '/ Jahr', de_informal: '/ Jahr', en: '/ year', fr: '/ an', sw: '/ mwaka' },
|
|
25
|
+
'Billing.TOKENS_INCLUDED': { de: '{{tokens}} Token inklusive', de_informal: '{{tokens}} Token inklusive', en: '{{tokens}} tokens included', fr: '{{tokens}} jetons inclus', sw: 'Tokeni {{tokens}} zimejumuishwa' },
|
|
26
|
+
'Billing.CONTINUE_TO_PAYMENT': { de: 'Weiter zur Bezahlung', de_informal: 'Weiter zur Bezahlung', en: 'Continue to payment', fr: 'Continuer vers le paiement', sw: 'Endelea kulipa' },
|
|
27
|
+
'Billing.ERROR_CHECKOUT': { de: 'Die Bezahlung konnte nicht gestartet werden. Bitte versuchen Sie es erneut.', de_informal: 'Die Bezahlung konnte nicht gestartet werden. Bitte versuche es erneut.', en: 'Checkout could not be started. Please try again.', fr: 'Le paiement n’a pas pu démarrer. Veuillez réessayer.', sw: 'Malipo hayakuweza kuanzishwa. Tafadhali jaribu tena.' },
|
|
28
|
+
'Billing.ERROR_LOAD': { de: 'Abodaten konnten nicht geladen werden.', de_informal: 'Abodaten konnten nicht geladen werden.', en: 'Subscription details could not be loaded.', fr: 'Impossible de charger les informations de l’abonnement.', sw: 'Maelezo ya usajili hayakuweza kupakiwa.' },
|
|
29
|
+
'Billing.RETRY': { de: 'Erneut versuchen', de_informal: 'Erneut versuchen', en: 'Try again', fr: 'Réessayer', sw: 'Jaribu tena' },
|
|
30
|
+
'Billing.SOURCE_SUBSCRIPTION': { de: 'Persönliches Abo', de_informal: 'Persönliches Abo', en: 'Personal subscription', fr: 'Abonnement personnel', sw: 'Usajili binafsi' },
|
|
31
|
+
'Billing.SOURCE_TEAM': { de: 'Platz in einem Team-Paket', de_informal: 'Platz in einem Team-Paket', en: 'Seat in a team package', fr: 'Place dans un forfait d’équipe', sw: 'Nafasi katika kifurushi cha timu' },
|
|
32
|
+
'Billing.SOURCE_FREE': { de: 'Ohne Abo freigeschaltet', de_informal: 'Ohne Abo freigeschaltet', en: 'Access enabled without a subscription', fr: 'Accès activé sans abonnement', sw: 'Ufikiaji umewezeshwa bila usajili' },
|
|
33
|
+
'Billing.ACTIVE_UNTIL': { de: 'Aktiv bis {{date}}', de_informal: 'Aktiv bis {{date}}', en: 'Active until {{date}}', fr: 'Actif jusqu’au {{date}}', sw: 'Inatumika hadi {{date}}' },
|
|
34
|
+
'Billing.MANAGE': { de: 'Abo verwalten', de_informal: 'Abo verwalten', en: 'Manage subscription', fr: 'Gérer l’abonnement', sw: 'Dhibiti usajili' },
|
|
35
|
+
'Billing.MANAGE_DETAILS': { de: 'Kündigung, Zahlungsmethode und Belege', de_informal: 'Kündigung, Zahlungsmethode und Belege', en: 'Cancellation, payment method, and receipts', fr: 'Résiliation, moyen de paiement et reçus', sw: 'Kughairi, njia ya malipo na risiti' },
|
|
36
|
+
'Billing.ERROR_PORTAL': { de: 'Das Abo-Portal ist derzeit nicht verfügbar.', de_informal: 'Das Abo-Portal ist derzeit nicht verfügbar.', en: 'The subscription portal is unavailable right now.', fr: 'Le portail d’abonnement est indisponible pour le moment.', sw: 'Tovuti ya usajili haipatikani kwa sasa.' },
|
|
37
|
+
'Billing.BALANCE_LABEL': { de: 'Token-Guthaben', de_informal: 'Token-Guthaben', en: 'Token balance', fr: 'Solde de jetons', sw: 'Salio la tokeni' },
|
|
38
|
+
'Billing.BUY_PACKAGE': { de: 'Token-Paket kaufen', de_informal: 'Token-Paket kaufen', en: 'Buy a token package', fr: 'Acheter un forfait de jetons', sw: 'Nunua kifurushi cha tokeni' },
|
|
39
|
+
'Billing.PACKAGE_BUY': { de: 'Paket kaufen', de_informal: 'Paket kaufen', en: 'Buy package', fr: 'Acheter le forfait', sw: 'Nunua kifurushi' },
|
|
40
|
+
'Billing.SEATS_one': { de: '{{count}} Platz', de_informal: '{{count}} Platz', en: '{{count}} seat', fr: '{{count}} place', sw: 'Nafasi {{count}}' },
|
|
41
|
+
'Billing.SEATS_other': { de: '{{count}} Plätze', de_informal: '{{count}} Plätze', en: '{{count}} seats', fr: '{{count}} places', sw: 'Nafasi {{count}}' },
|
|
42
|
+
'Billing.TERM_MONTHS_one': { de: '{{count}} Monat', de_informal: '{{count}} Monat', en: '{{count}} month', fr: '{{count}} mois', sw: 'Mwezi {{count}}' },
|
|
43
|
+
'Billing.TERM_MONTHS_other': { de: '{{count}} Monate', de_informal: '{{count}} Monate', en: '{{count}} months', fr: '{{count}} mois', sw: 'Miezi {{count}}' },
|
|
44
|
+
'Billing.SEATS_ADD': { de: 'Platz vergeben', de_informal: 'Platz vergeben', en: 'Add seat', fr: 'Ajouter une place', sw: 'Ongeza nafasi' },
|
|
45
|
+
'Billing.SEAT_USER': { de: 'E-Mail-Adresse oder Benutzer-ID', de_informal: 'E-Mail-Adresse oder Benutzer-ID', en: 'Email address or user ID', fr: 'Adresse e-mail ou identifiant utilisateur', sw: 'Barua pepe au kitambulisho cha mtumiaji' },
|
|
46
|
+
'Billing.SEAT_PICK': { de: 'Teammitglied wählen', de_informal: 'Teammitglied wählen', en: 'Choose a team member', fr: 'Choisir un membre de l’équipe', sw: 'Chagua mwanatimu' },
|
|
47
|
+
'Billing.SEAT_REMOVE': { de: 'Entfernen', de_informal: 'Entfernen', en: 'Remove', fr: 'Retirer', sw: 'Ondoa' },
|
|
48
|
+
'Billing.ERROR_SEAT_LIMIT': { de: 'Alle Plätze sind belegt.', de_informal: 'Alle Plätze sind belegt.', en: 'All seats are occupied.', fr: 'Toutes les places sont occupées.', sw: 'Nafasi zote zimejazwa.' },
|
|
49
|
+
'Billing.ERROR_SEAT_USER': { de: 'Diese Person kann nicht hinzugefügt werden.', de_informal: 'Diese Person kann nicht hinzugefügt werden.', en: 'This person could not be added.', fr: 'Cette personne ne peut pas être ajoutée.', sw: 'Mtu huyu hakuweza kuongezwa.' },
|
|
50
|
+
'Billing.PLAN_INTERVAL': { de: 'Abrechnungszeitraum', de_informal: 'Abrechnungszeitraum', en: 'Billing interval', fr: 'Période de facturation', sw: 'Kipindi cha malipo' },
|
|
51
|
+
'Billing.LOADING': { de: 'Abodaten werden geladen …', de_informal: 'Abodaten werden geladen …', en: 'Loading subscription details …', fr: 'Chargement de l’abonnement …', sw: 'Inapakia maelezo ya usajili …' },
|
|
52
|
+
'Billing.HEADING': { de: 'Abo', de_informal: 'Abo', en: 'Subscription', fr: 'Abonnement', sw: 'Usajili' },
|
|
53
|
+
'Billing.TEAM_SEATS': { de: 'Plätze im Team-Paket', de_informal: 'Plätze im Team-Paket', en: 'Seats in the team package', fr: 'Places dans le forfait d’équipe', sw: 'Nafasi katika kifurushi cha timu' },
|
|
54
|
+
'Billing.PACKAGE_TOKENS': { de: '{{tokens}} Token', de_informal: '{{tokens}} Token', en: '{{tokens}} tokens', fr: '{{tokens}} jetons', sw: 'Tokeni {{tokens}}' },
|
|
55
|
+
'Billing.PLANS': { de: 'Pläne', de_informal: 'Pläne', en: 'Plans', fr: 'Offres', sw: 'Mipango' },
|
|
43
56
|
'Billing.WITHDRAWAL_BUTTON': { de: 'Vertrag hier widerrufen', de_informal: 'Vertrag hier widerrufen', en: 'Withdraw this contract', fr: 'Révoquer ce contrat ici', sw: 'Ondoa mkataba huu hapa' },
|
|
44
57
|
'Billing.WITHDRAWAL_UNTIL': { de: 'bis {{date}}', de_informal: 'bis {{date}}', en: 'until {{date}}', fr: 'jusqu’au {{date}}', sw: 'hadi {{date}}' },
|
|
45
58
|
'Billing.WITHDRAWAL_TITLE': { de: 'Vertrag widerrufen?', de_informal: 'Vertrag widerrufen?', en: 'Withdraw this contract?', fr: 'Révoquer ce contrat ?', sw: 'Uondoe mkataba huu?' },
|
|
@@ -61,43 +74,43 @@ export const billingTranslations = {
|
|
|
61
74
|
'Billing.WITHDRAWAL_TOKEN_SHARE': { de: 'Tokenanteil: {{amount}}', de_informal: 'Tokenanteil: {{amount}}', en: 'Token share: {{amount}}', fr: 'Part des jetons : {{amount}}', sw: 'Sehemu ya tokeni: {{amount}}' },
|
|
62
75
|
'Billing.WITHDRAWAL_USED': { de: 'Genutzt: {{amount}}', de_informal: 'Genutzt: {{amount}}', en: 'Used: {{amount}}', fr: 'Utilisé : {{amount}}', sw: 'Imetumika: {{amount}}' },
|
|
63
76
|
'Billing.WITHDRAWAL_CLOSE': { de: 'Schließen', de_informal: 'Schließen', en: 'Close', fr: 'Fermer', sw: 'Funga' },
|
|
64
|
-
'Billing.OP_OVERVIEW_TITLE': { de: 'Übersicht Abos', en: 'Subscription overview', fr: 'Aperçu des abonnements', sw: 'Muhtasari wa usajili' },
|
|
65
|
-
'Billing.OP_ACTIVE_ACCOUNTS': { de: 'Aktive Konten', en: 'Active accounts', fr: 'Comptes actifs', sw: 'Akaunti zinazotumika' },
|
|
66
|
-
'Billing.OP_PLAN': { de: 'Abo {{plan}}', en: 'Subscription {{plan}}', fr: 'Abonnement {{plan}}', sw: 'Usajili {{plan}}' },
|
|
67
|
-
'Billing.OP_TEAM_SEAT': { de: 'Team-Platz', en: 'Team seat', fr: 'Place d’équipe', sw: 'Nafasi ya timu' },
|
|
68
|
-
'Billing.OP_FREE_ACCESS': { de: 'Ohne Abo freigeschaltet', en: 'Access enabled without a subscription', fr: 'Accès activé sans abonnement', sw: 'Ufikiaji umewezeshwa bila usajili' },
|
|
69
|
-
'Billing.OP_READ_ONLY': { de: 'Schreibgeschützt', en: 'Read-only', fr: 'Lecture seule', sw: 'Kusoma pekee' },
|
|
70
|
-
'Billing.OP_NEW_SUBSCRIPTIONS': { de: 'Neue Abos', en: 'New subscriptions', fr: 'Nouveaux abonnements', sw: 'Usajili mpya' },
|
|
71
|
-
'Billing.OP_ENDED_SUBSCRIPTIONS': { de: 'Beendete Abos', en: 'Ended subscriptions', fr: 'Abonnements terminés', sw: 'Usajili uliomalizika' },
|
|
72
|
-
'Billing.OP_PACKAGES_SOLD': { de: 'Verkaufte Pakete', en: 'Packages sold', fr: 'Forfaits vendus', sw: 'Vifurushi vilivyouzwa' },
|
|
73
|
-
'Billing.OP_TOKENS_GRANTED': { de: 'Token gewährt', en: 'Tokens granted', fr: 'Jetons accordés', sw: 'Tokeni zilizotolewa' },
|
|
74
|
-
'Billing.OP_TOKENS_USED': { de: 'Token verbraucht', en: 'Tokens used', fr: 'Jetons utilisés', sw: 'Tokeni zilizotumika' },
|
|
75
|
-
'Billing.OP_TOKENS_EXPIRED': { de: 'Token verfallen', en: 'Tokens expired', fr: 'Jetons expirés', sw: 'Tokeni zilizoisha muda' },
|
|
76
|
-
'Billing.OP_AI_COST': { de: 'KI-Kosten', en: 'AI costs', fr: 'Coûts de l’IA', sw: 'Gharama za AI' },
|
|
77
|
-
'Billing.OP_COST_PER_TOKEN': { de: 'Kosten pro Token', en: 'Cost per token', fr: 'Coût par jeton', sw: 'Gharama kwa tokeni' },
|
|
78
|
-
'Billing.OP_ACCESS': { de: 'Zugang', en: 'Access', fr: 'Accès', sw: 'Ufikiaji' },
|
|
79
|
-
'Billing.OP_REASON': { de: 'Grund', en: 'Reason', fr: 'Motif', sw: 'Sababu' },
|
|
80
|
-
'Billing.OP_REVOKE_TITLE': { de: 'Freischaltung aufheben?', en: 'Revoke access?', fr: 'Retirer l’accès ?', sw: 'Uondoe ruhusa ya ufikiaji?' },
|
|
81
|
-
'Billing.OP_REVOKE_BODY': { de: 'Die Daten bleiben erhalten; ohne anderen Zugang sind sie danach schreibgeschützt.', en: 'The data will remain; without another access source, it will become read-only.', fr: 'Les données sont conservées ; sans autre accès, elles seront ensuite en lecture seule.', sw: 'Data zitabaki; bila chanzo kingine cha ufikiaji, zitasomeka pekee.' },
|
|
82
|
-
'Billing.OP_UNTIL': { de: 'bis {{date}}', en: 'until {{date}}', fr: 'jusqu’au {{date}}', sw: 'hadi {{date}}' },
|
|
83
|
-
'Billing.OP_RENEWS': { de: 'verlängert sich', en: 'renews', fr: 'se renouvelle', sw: 'inasasishwa' },
|
|
84
|
-
'Billing.OP_ENDS': { de: 'endet', en: 'ends', fr: 'se termine', sw: 'inaisha' },
|
|
85
|
-
'Billing.OP_GRANT_PLAN': { de: 'Kontingent', en: 'Allowance', fr: 'Allocation', sw: 'Kiwango kilichotengwa' },
|
|
86
|
-
'Billing.OP_GRANT_PACKAGE': { de: 'Paket', en: 'Package', fr: 'Forfait', sw: 'Kifurushi' },
|
|
87
|
-
'Billing.OP_REMAINING': { de: 'verbleibend', en: 'remaining', fr: 'restants', sw: 'zilizobaki' },
|
|
88
|
-
'Billing.OP_VALID_UNTIL': { de: 'gültig bis {{date}}', en: 'valid until {{date}}', fr: 'valable jusqu’au {{date}}', sw: 'halali hadi {{date}}' },
|
|
89
|
-
'Billing.OP_SEATS_USED': { de: '{{n}} von {{m}} Plätzen belegt', en: '{{n}} of {{m}} seats occupied', fr: '{{n}} places occupées sur {{m}}', sw: 'Nafasi {{n}} kati ya {{m}} zimejazwa' },
|
|
90
|
-
'Billing.OP_MONTH': { de: 'Monat', en: 'Month', fr: 'Mois', sw: 'Mwezi' },
|
|
91
|
-
'Billing.OP_PROVIDER': { de: 'Anbieter', en: 'Provider', fr: 'Fournisseur', sw: 'Mtoa huduma' },
|
|
92
|
-
'Billing.OP_MODEL': { de: 'Modell', en: 'Model', fr: 'Modèle', sw: 'Muundo' },
|
|
93
|
-
'Billing.OP_CALLS': { de: 'Aufrufe', en: 'Calls', fr: 'Appels', sw: 'Miito' },
|
|
94
|
-
'Billing.OP_COST_USD': { de: 'Kosten (USD)', en: 'Cost (USD)', fr: 'Coût (USD)', sw: 'Gharama (USD)' },
|
|
95
|
-
'Billing.OP_CANCEL': { de: 'Abbrechen', en: 'Cancel', fr: 'Annuler', sw: 'Ghairi' },
|
|
96
|
-
'Billing.OP_GRANT': { de: 'Freischalten', en: 'Grant access', fr: 'Autoriser l’accès', sw: 'Ruhusu ufikiaji' },
|
|
97
|
-
'Billing.OP_REVOKE': { de: 'Aufheben', en: 'Revoke', fr: 'Retirer', sw: 'Ondoa' },
|
|
98
|
-
'Billing.OP_SEAT_UNTIL': { de: 'Team-Platz bis {{date}}', en: 'Team seat until {{date}}', fr: 'Place d’équipe jusqu’au {{date}}', sw: 'Nafasi ya timu hadi {{date}}' },
|
|
99
|
-
'Billing.OP_LOAD_ERROR': { de: 'Die Übersicht konnte nicht geladen werden.', en: 'The overview could not be loaded.', fr: 'Impossible de charger l’aperçu.', sw: 'Muhtasari haukuweza kupakiwa.' },
|
|
100
|
-
'Billing.OP_SAVE_ERROR': { de: 'Die Änderung konnte nicht gespeichert werden.', en: 'The change could not be saved.', fr: 'Impossible d’enregistrer la modification.', sw: 'Mabadiliko hayakuweza kuhifadhiwa.' },
|
|
101
|
-
'Billing.OP_FORBIDDEN': { de: 'Dafür fehlt die Berechtigung.', en: 'You do not have permission for this action.', fr: 'Vous n’avez pas l’autorisation pour cette action.', sw: 'Huna ruhusa ya kufanya kitendo hiki.' },
|
|
102
|
-
'Billing.OP_NO_AI_COST': { de: 'In diesem Monat gab es keine KI-Aufrufe.', en: 'There were no AI calls this month.', fr: 'Aucun appel à l’IA ce mois-ci.', sw: 'Hakukuwa na miito ya AI mwezi huu.' },
|
|
77
|
+
'Billing.OP_OVERVIEW_TITLE': { de: 'Übersicht Abos', de_informal: 'Übersicht Abos', en: 'Subscription overview', fr: 'Aperçu des abonnements', sw: 'Muhtasari wa usajili' },
|
|
78
|
+
'Billing.OP_ACTIVE_ACCOUNTS': { de: 'Aktive Konten', de_informal: 'Aktive Konten', en: 'Active accounts', fr: 'Comptes actifs', sw: 'Akaunti zinazotumika' },
|
|
79
|
+
'Billing.OP_PLAN': { de: 'Abo {{plan}}', de_informal: 'Abo {{plan}}', en: 'Subscription {{plan}}', fr: 'Abonnement {{plan}}', sw: 'Usajili {{plan}}' },
|
|
80
|
+
'Billing.OP_TEAM_SEAT': { de: 'Team-Platz', de_informal: 'Team-Platz', en: 'Team seat', fr: 'Place d’équipe', sw: 'Nafasi ya timu' },
|
|
81
|
+
'Billing.OP_FREE_ACCESS': { de: 'Ohne Abo freigeschaltet', de_informal: 'Ohne Abo freigeschaltet', en: 'Access enabled without a subscription', fr: 'Accès activé sans abonnement', sw: 'Ufikiaji umewezeshwa bila usajili' },
|
|
82
|
+
'Billing.OP_READ_ONLY': { de: 'Schreibgeschützt', de_informal: 'Schreibgeschützt', en: 'Read-only', fr: 'Lecture seule', sw: 'Kusoma pekee' },
|
|
83
|
+
'Billing.OP_NEW_SUBSCRIPTIONS': { de: 'Neue Abos', de_informal: 'Neue Abos', en: 'New subscriptions', fr: 'Nouveaux abonnements', sw: 'Usajili mpya' },
|
|
84
|
+
'Billing.OP_ENDED_SUBSCRIPTIONS': { de: 'Beendete Abos', de_informal: 'Beendete Abos', en: 'Ended subscriptions', fr: 'Abonnements terminés', sw: 'Usajili uliomalizika' },
|
|
85
|
+
'Billing.OP_PACKAGES_SOLD': { de: 'Verkaufte Pakete', de_informal: 'Verkaufte Pakete', en: 'Packages sold', fr: 'Forfaits vendus', sw: 'Vifurushi vilivyouzwa' },
|
|
86
|
+
'Billing.OP_TOKENS_GRANTED': { de: 'Token gewährt', de_informal: 'Token gewährt', en: 'Tokens granted', fr: 'Jetons accordés', sw: 'Tokeni zilizotolewa' },
|
|
87
|
+
'Billing.OP_TOKENS_USED': { de: 'Token verbraucht', de_informal: 'Token verbraucht', en: 'Tokens used', fr: 'Jetons utilisés', sw: 'Tokeni zilizotumika' },
|
|
88
|
+
'Billing.OP_TOKENS_EXPIRED': { de: 'Token verfallen', de_informal: 'Token verfallen', en: 'Tokens expired', fr: 'Jetons expirés', sw: 'Tokeni zilizoisha muda' },
|
|
89
|
+
'Billing.OP_AI_COST': { de: 'KI-Kosten', de_informal: 'KI-Kosten', en: 'AI costs', fr: 'Coûts de l’IA', sw: 'Gharama za AI' },
|
|
90
|
+
'Billing.OP_COST_PER_TOKEN': { de: 'Kosten pro Token', de_informal: 'Kosten pro Token', en: 'Cost per token', fr: 'Coût par jeton', sw: 'Gharama kwa tokeni' },
|
|
91
|
+
'Billing.OP_ACCESS': { de: 'Zugang', de_informal: 'Zugang', en: 'Access', fr: 'Accès', sw: 'Ufikiaji' },
|
|
92
|
+
'Billing.OP_REASON': { de: 'Grund', de_informal: 'Grund', en: 'Reason', fr: 'Motif', sw: 'Sababu' },
|
|
93
|
+
'Billing.OP_REVOKE_TITLE': { de: 'Freischaltung aufheben?', de_informal: 'Freischaltung aufheben?', en: 'Revoke access?', fr: 'Retirer l’accès ?', sw: 'Uondoe ruhusa ya ufikiaji?' },
|
|
94
|
+
'Billing.OP_REVOKE_BODY': { de: 'Die Daten bleiben erhalten; ohne anderen Zugang sind sie danach schreibgeschützt.', de_informal: 'Die Daten bleiben erhalten; ohne anderen Zugang sind sie danach schreibgeschützt.', en: 'The data will remain; without another access source, it will become read-only.', fr: 'Les données sont conservées ; sans autre accès, elles seront ensuite en lecture seule.', sw: 'Data zitabaki; bila chanzo kingine cha ufikiaji, zitasomeka pekee.' },
|
|
95
|
+
'Billing.OP_UNTIL': { de: 'bis {{date}}', de_informal: 'bis {{date}}', en: 'until {{date}}', fr: 'jusqu’au {{date}}', sw: 'hadi {{date}}' },
|
|
96
|
+
'Billing.OP_RENEWS': { de: 'verlängert sich', de_informal: 'verlängert sich', en: 'renews', fr: 'se renouvelle', sw: 'inasasishwa' },
|
|
97
|
+
'Billing.OP_ENDS': { de: 'endet', de_informal: 'endet', en: 'ends', fr: 'se termine', sw: 'inaisha' },
|
|
98
|
+
'Billing.OP_GRANT_PLAN': { de: 'Kontingent', de_informal: 'Kontingent', en: 'Allowance', fr: 'Allocation', sw: 'Kiwango kilichotengwa' },
|
|
99
|
+
'Billing.OP_GRANT_PACKAGE': { de: 'Paket', de_informal: 'Paket', en: 'Package', fr: 'Forfait', sw: 'Kifurushi' },
|
|
100
|
+
'Billing.OP_REMAINING': { de: 'verbleibend', de_informal: 'verbleibend', en: 'remaining', fr: 'restants', sw: 'zilizobaki' },
|
|
101
|
+
'Billing.OP_VALID_UNTIL': { de: 'gültig bis {{date}}', de_informal: 'gültig bis {{date}}', en: 'valid until {{date}}', fr: 'valable jusqu’au {{date}}', sw: 'halali hadi {{date}}' },
|
|
102
|
+
'Billing.OP_SEATS_USED': { de: '{{n}} von {{m}} Plätzen belegt', de_informal: '{{n}} von {{m}} Plätzen belegt', en: '{{n}} of {{m}} seats occupied', fr: '{{n}} places occupées sur {{m}}', sw: 'Nafasi {{n}} kati ya {{m}} zimejazwa' },
|
|
103
|
+
'Billing.OP_MONTH': { de: 'Monat', de_informal: 'Monat', en: 'Month', fr: 'Mois', sw: 'Mwezi' },
|
|
104
|
+
'Billing.OP_PROVIDER': { de: 'Anbieter', de_informal: 'Anbieter', en: 'Provider', fr: 'Fournisseur', sw: 'Mtoa huduma' },
|
|
105
|
+
'Billing.OP_MODEL': { de: 'Modell', de_informal: 'Modell', en: 'Model', fr: 'Modèle', sw: 'Muundo' },
|
|
106
|
+
'Billing.OP_CALLS': { de: 'Aufrufe', de_informal: 'Aufrufe', en: 'Calls', fr: 'Appels', sw: 'Miito' },
|
|
107
|
+
'Billing.OP_COST_USD': { de: 'Kosten (USD)', de_informal: 'Kosten (USD)', en: 'Cost (USD)', fr: 'Coût (USD)', sw: 'Gharama (USD)' },
|
|
108
|
+
'Billing.OP_CANCEL': { de: 'Abbrechen', de_informal: 'Abbrechen', en: 'Cancel', fr: 'Annuler', sw: 'Ghairi' },
|
|
109
|
+
'Billing.OP_GRANT': { de: 'Freischalten', de_informal: 'Freischalten', en: 'Grant access', fr: 'Autoriser l’accès', sw: 'Ruhusu ufikiaji' },
|
|
110
|
+
'Billing.OP_REVOKE': { de: 'Aufheben', de_informal: 'Aufheben', en: 'Revoke', fr: 'Retirer', sw: 'Ondoa' },
|
|
111
|
+
'Billing.OP_SEAT_UNTIL': { de: 'Team-Platz bis {{date}}', de_informal: 'Team-Platz bis {{date}}', en: 'Team seat until {{date}}', fr: 'Place d’équipe jusqu’au {{date}}', sw: 'Nafasi ya timu hadi {{date}}' },
|
|
112
|
+
'Billing.OP_LOAD_ERROR': { de: 'Die Übersicht konnte nicht geladen werden.', de_informal: 'Die Übersicht konnte nicht geladen werden.', en: 'The overview could not be loaded.', fr: 'Impossible de charger l’aperçu.', sw: 'Muhtasari haukuweza kupakiwa.' },
|
|
113
|
+
'Billing.OP_SAVE_ERROR': { de: 'Die Änderung konnte nicht gespeichert werden.', de_informal: 'Die Änderung konnte nicht gespeichert werden.', en: 'The change could not be saved.', fr: 'Impossible d’enregistrer la modification.', sw: 'Mabadiliko hayakuweza kuhifadhiwa.' },
|
|
114
|
+
'Billing.OP_FORBIDDEN': { de: 'Dafür fehlt die Berechtigung.', de_informal: 'Dafür fehlt die Berechtigung.', en: 'You do not have permission for this action.', fr: 'Vous n’avez pas l’autorisation pour cette action.', sw: 'Huna ruhusa ya kufanya kitendo hiki.' },
|
|
115
|
+
'Billing.OP_NO_AI_COST': { de: 'In diesem Monat gab es keine KI-Aufrufe.', de_informal: 'In diesem Monat gab es keine KI-Aufrufe.', en: 'There were no AI calls this month.', fr: 'Aucun appel à l’IA ce mois-ci.', sw: 'Hakukuwa na miito ya AI mwezi huu.' },
|
|
103
116
|
};
|
|
@@ -36,7 +36,7 @@ import { createKitSxEntry } from './kitSxEntry';
|
|
|
36
36
|
import { ACCESS_ENDED_BANNER_ALERT_SX } from '../billing/AccessEndedBanner';
|
|
37
37
|
import { TOKEN_BALANCE_BADGE_SX } from '../billing/TokenBalanceBadge';
|
|
38
38
|
import { PLAN_PICKER_ALERT_SX, PLAN_PICKER_CARD_SX, PLAN_PICKER_LABEL_SX, PLAN_PICKER_SELECTED_CARD_SX } from '../billing/PlanPicker';
|
|
39
|
-
import { SUBSCRIPTION_SECTION_ALERT_SX } from '../billing/SubscriptionSection';
|
|
39
|
+
import { SUBSCRIPTION_SECTION_ALERT_SX, SUBSCRIPTION_SECTION_SEAT_ADD_SX, SUBSCRIPTION_SECTION_SEAT_SELECT_SX } from '../billing/SubscriptionSection';
|
|
40
40
|
import { WITHDRAWAL_DIALOG_ALERT_SX } from '../billing/WithdrawalDialog';
|
|
41
41
|
import { WITHDRAWAL_SECTION_ALERT_SX } from '../billing/WithdrawalSection';
|
|
42
42
|
import { FREE_ACCESS_SWITCH_ALERT_SX } from '../billing/FreeAccessSwitch';
|
|
@@ -122,6 +122,8 @@ const SX_EXPORTS = {
|
|
|
122
122
|
PLAN_PICKER_LABEL_SX,
|
|
123
123
|
PLAN_PICKER_SELECTED_CARD_SX,
|
|
124
124
|
SUBSCRIPTION_SECTION_ALERT_SX,
|
|
125
|
+
SUBSCRIPTION_SECTION_SEAT_SELECT_SX,
|
|
126
|
+
SUBSCRIPTION_SECTION_SEAT_ADD_SX,
|
|
125
127
|
WITHDRAWAL_DIALOG_ALERT_SX,
|
|
126
128
|
WITHDRAWAL_SECTION_ALERT_SX,
|
|
127
129
|
RECEIPT_CONSENT_ALERT_SX,
|
|
@@ -242,6 +244,8 @@ export const KIT_COMPONENT_SX_REGISTRY = [
|
|
|
242
244
|
entry('PlanPicker.label', 'MuiFormControlLabel', PLAN_PICKER_LABEL_SX),
|
|
243
245
|
entry('PlanPicker.alert', 'MuiAlert', PLAN_PICKER_ALERT_SX),
|
|
244
246
|
entry('SubscriptionSection.alert', 'MuiAlert', SUBSCRIPTION_SECTION_ALERT_SX),
|
|
247
|
+
entry('SubscriptionSection.seatSelect', 'MuiTextField', SUBSCRIPTION_SECTION_SEAT_SELECT_SX),
|
|
248
|
+
entry('SubscriptionSection.seatAdd', 'MuiButton', SUBSCRIPTION_SECTION_SEAT_ADD_SX),
|
|
245
249
|
entry('FreeAccessSwitch.alert', 'MuiAlert', FREE_ACCESS_SWITCH_ALERT_SX),
|
|
246
250
|
entry('OperatorOverview.alert', 'MuiAlert', OPERATOR_OVERVIEW_ALERT_SX),
|
|
247
251
|
entry('WithdrawalDialog.alert', 'MuiAlert', WITHDRAWAL_DIALOG_ALERT_SX),
|