@openmrs/esm-billing-app 1.0.2-pre.74 → 1.0.2-pre.749
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/README.md +55 -9
- package/__mocks__/bills.mock.ts +12 -0
- package/__mocks__/react-i18next.js +6 -5
- package/dist/1119.js +1 -1
- package/dist/1146.js +1 -2
- package/dist/1146.js.map +1 -1
- package/dist/1197.js +1 -1
- package/dist/1856.js +1 -0
- package/dist/1856.js.map +1 -0
- package/dist/2146.js +1 -1
- package/dist/2177.js +2 -0
- package/dist/2177.js.LICENSE.txt +9 -0
- package/dist/2177.js.map +1 -0
- package/dist/2524.js +1 -0
- package/dist/2524.js.map +1 -0
- package/dist/2690.js +1 -1
- package/dist/3041.js +1 -0
- package/dist/3041.js.map +1 -0
- package/dist/3099.js +1 -1
- package/dist/3584.js +1 -1
- package/dist/4055.js +1 -1
- package/dist/4132.js +1 -1
- package/dist/4225.js +1 -0
- package/dist/4225.js.map +1 -0
- package/dist/4300.js +1 -1
- package/dist/4335.js +1 -1
- package/dist/4618.js +1 -1
- package/dist/4652.js +1 -1
- package/dist/4724.js +1 -0
- package/dist/4724.js.map +1 -0
- package/dist/4739.js +1 -1
- package/dist/4739.js.map +1 -1
- package/dist/4944.js +1 -1
- package/dist/5173.js +1 -1
- package/dist/5241.js +1 -1
- package/dist/5422.js +1 -0
- package/dist/5422.js.map +1 -0
- package/dist/5442.js +1 -1
- package/dist/5661.js +1 -1
- package/dist/6022.js +1 -1
- package/dist/6468.js +1 -1
- package/dist/6540.js +1 -1
- package/dist/6540.js.map +1 -1
- package/dist/6606.js +1 -0
- package/dist/6606.js.map +1 -0
- package/dist/6679.js +1 -1
- package/dist/6840.js +1 -1
- package/dist/6859.js +1 -1
- package/dist/7097.js +1 -1
- package/dist/7159.js +1 -1
- package/dist/723.js +1 -1
- package/dist/7452.js +2 -0
- package/dist/7452.js.map +1 -0
- package/dist/7617.js +1 -1
- package/dist/795.js +1 -0
- package/dist/8163.js +1 -1
- package/dist/8349.js +1 -1
- package/dist/8618.js +1 -1
- package/dist/890.js +1 -1
- package/dist/8930.js +2 -0
- package/dist/{6525.js.LICENSE.txt → 8930.js.LICENSE.txt} +16 -4
- package/dist/8930.js.map +1 -0
- package/dist/9214.js +1 -1
- package/dist/942.js +1 -0
- package/dist/942.js.map +1 -0
- package/dist/9538.js +1 -1
- package/dist/9569.js +1 -0
- package/dist/961.js +1 -1
- package/dist/961.js.map +1 -1
- package/dist/986.js +1 -1
- package/dist/9879.js +1 -1
- package/dist/9895.js +1 -1
- package/dist/9900.js +1 -1
- package/dist/9913.js +1 -1
- package/dist/main.js +1 -1
- package/dist/main.js.map +1 -1
- package/dist/openmrs-esm-billing-app.js +1 -1
- package/dist/openmrs-esm-billing-app.js.buildmanifest.json +381 -231
- package/dist/openmrs-esm-billing-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/e2e/README.md +19 -18
- package/e2e/specs/sample-test.spec.ts +0 -1
- package/package.json +10 -10
- package/src/bill-history/bill-history.component.tsx +17 -25
- package/src/bill-history/bill-history.scss +4 -94
- package/src/bill-history/bill-history.test.tsx +37 -78
- package/src/bill-item-actions/bill-item-actions.scss +0 -4
- package/src/bill-item-actions/{edit-bill-item.component.tsx → edit-bill-item.modal.tsx} +58 -56
- package/src/bill-item-actions/edit-bill-item.test.tsx +22 -24
- package/src/billable-services/bill-waiver/bill-selection.component.tsx +2 -2
- package/src/billable-services/bill-waiver/patient-bills.component.tsx +3 -3
- package/src/billable-services/billable-service.resource.ts +4 -3
- package/src/billable-services/billable-services-home.component.tsx +1 -1
- package/src/billable-services/billable-services.component.tsx +115 -132
- package/src/billable-services/billable-services.scss +3 -0
- package/src/billable-services/billable-services.test.tsx +2 -45
- package/src/billable-services/cash-point/add-cash-point.modal.tsx +168 -0
- package/src/billable-services/cash-point/cash-point-configuration.component.tsx +17 -192
- package/src/billable-services/cash-point/cash-point-configuration.scss +1 -5
- package/src/billable-services/create-edit/add-billable-service.component.tsx +28 -24
- package/src/billable-services/create-edit/add-billable-service.scss +2 -5
- package/src/billable-services/create-edit/add-billable-service.test.tsx +6 -6
- package/src/billable-services/create-edit/edit-billable-service.modal.tsx +50 -0
- package/src/billable-services/payment-modes/add-payment-mode.modal.tsx +121 -0
- package/src/billable-services/payment-modes/delete-payment-mode.modal.tsx +72 -0
- package/src/billable-services/payment-modes/payment-modes-config.component.tsx +125 -0
- package/src/billable-services/{payyment-modes → payment-modes}/payment-modes-config.scss +5 -1
- package/src/billing-form/billing-checkin-form.component.tsx +2 -3
- package/src/billing-form/billing-checkin-form.test.tsx +0 -2
- package/src/billing-form/billing-form.component.tsx +210 -268
- package/src/billing-form/billing-form.scss +143 -0
- package/src/billing.resource.ts +16 -19
- package/src/bills-table/bills-table.test.tsx +97 -53
- package/src/config-schema.ts +52 -18
- package/src/dashboard.meta.ts +4 -2
- package/src/helpers/functions.ts +5 -4
- package/src/index.ts +17 -6
- package/src/invoice/invoice-table.component.tsx +24 -54
- package/src/invoice/invoice-table.scss +1 -5
- package/src/invoice/invoice-table.test.tsx +21 -47
- package/src/invoice/invoice.component.tsx +36 -29
- package/src/invoice/invoice.scss +7 -4
- package/src/invoice/invoice.test.tsx +22 -48
- package/src/invoice/payments/payment-form/payment-form.component.tsx +2 -9
- package/src/invoice/payments/payment-form/payment-form.test.tsx +14 -46
- package/src/invoice/payments/payment-history/payment-history.component.tsx +6 -4
- package/src/invoice/payments/payment-history/payment-history.test.tsx +9 -14
- package/src/invoice/payments/payments.component.tsx +16 -27
- package/src/invoice/payments/{payments.component.test.tsx → payments.test.tsx} +24 -10
- package/src/invoice/payments/utils.ts +4 -22
- package/src/invoice/printable-invoice/print-receipt.component.tsx +3 -2
- package/src/invoice/printable-invoice/print-receipt.test.tsx +14 -25
- package/src/invoice/printable-invoice/printable-footer.component.tsx +2 -2
- package/src/invoice/printable-invoice/printable-footer.test.tsx +4 -13
- package/src/invoice/printable-invoice/printable-invoice-header.component.tsx +12 -11
- package/src/invoice/printable-invoice/printable-invoice-header.test.tsx +16 -14
- package/src/invoice/printable-invoice/printable-invoice.component.tsx +19 -33
- package/src/metrics-cards/metrics-cards.test.tsx +18 -5
- package/src/modal/require-payment-modal.test.tsx +25 -20
- package/src/modal/{require-payment-modal.component.tsx → require-payment.modal.tsx} +17 -18
- package/src/routes.json +22 -2
- package/src/types/index.ts +13 -12
- package/translations/am.json +33 -16
- package/translations/ar.json +33 -16
- package/translations/ar_SY.json +33 -16
- package/translations/bn.json +38 -21
- package/translations/de.json +33 -16
- package/translations/en.json +33 -16
- package/translations/en_US.json +187 -0
- package/translations/es.json +48 -31
- package/translations/es_MX.json +33 -16
- package/translations/fr.json +47 -30
- package/translations/he.json +33 -16
- package/translations/hi.json +33 -16
- package/translations/hi_IN.json +33 -16
- package/translations/id.json +180 -163
- package/translations/it.json +70 -53
- package/translations/ka.json +187 -0
- package/translations/km.json +33 -16
- package/translations/ku.json +33 -16
- package/translations/ky.json +33 -16
- package/translations/lg.json +33 -16
- package/translations/ne.json +33 -16
- package/translations/pl.json +33 -16
- package/translations/pt.json +33 -16
- package/translations/pt_BR.json +33 -16
- package/translations/qu.json +33 -16
- package/translations/ro_RO.json +182 -165
- package/translations/ru_RU.json +33 -16
- package/translations/si.json +33 -16
- package/translations/sw.json +33 -16
- package/translations/sw_KE.json +33 -16
- package/translations/tr.json +33 -16
- package/translations/tr_TR.json +33 -16
- package/translations/uk.json +33 -16
- package/translations/uz.json +33 -16
- package/translations/uz@Latn.json +33 -16
- package/translations/uz_UZ.json +33 -16
- package/translations/vi.json +33 -16
- package/translations/zh.json +33 -16
- package/translations/zh_CN.json +91 -74
- package/dist/1146.js.LICENSE.txt +0 -21
- package/dist/2352.js +0 -1
- package/dist/2352.js.map +0 -1
- package/dist/246.js +0 -1
- package/dist/246.js.map +0 -1
- package/dist/6525.js +0 -2
- package/dist/6525.js.map +0 -1
- package/dist/8556.js +0 -2
- package/dist/8556.js.map +0 -1
- package/dist/8638.js +0 -1
- package/dist/8638.js.map +0 -1
- package/dist/9968.js +0 -1
- package/dist/9968.js.map +0 -1
- package/src/billable-services/payyment-modes/payment-modes-config.component.tsx +0 -280
- /package/dist/{8556.js.LICENSE.txt → 7452.js.LICENSE.txt} +0 -0
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect, useCallback } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
Button,
|
|
4
|
-
DataTable,
|
|
5
|
-
TableContainer,
|
|
6
|
-
Table,
|
|
7
|
-
TableHead,
|
|
8
|
-
TableRow,
|
|
9
|
-
TableHeader,
|
|
10
|
-
TableBody,
|
|
11
|
-
TableCell,
|
|
12
|
-
Modal,
|
|
13
|
-
TextInput,
|
|
14
|
-
OverflowMenu,
|
|
15
|
-
OverflowMenuItem,
|
|
16
|
-
} from '@carbon/react';
|
|
17
|
-
import { Add } from '@carbon/react/icons';
|
|
18
|
-
import { useTranslation } from 'react-i18next';
|
|
19
|
-
import { useForm, Controller } from 'react-hook-form';
|
|
20
|
-
import { z } from 'zod';
|
|
21
|
-
import { zodResolver } from '@hookform/resolvers/zod';
|
|
22
|
-
import { showSnackbar, openmrsFetch, restBaseUrl } from '@openmrs/esm-framework';
|
|
23
|
-
import { CardHeader } from '@openmrs/esm-patient-common-lib';
|
|
24
|
-
import styles from './payment-modes-config.scss';
|
|
25
|
-
|
|
26
|
-
// Validation schema
|
|
27
|
-
const paymentModeSchema = z.object({
|
|
28
|
-
name: z.string().min(1, 'Payment Mode Name is required'),
|
|
29
|
-
description: z.string().optional(),
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
type PaymentModeFormValues = z.infer<typeof paymentModeSchema>;
|
|
33
|
-
|
|
34
|
-
const PaymentModesConfig: React.FC = () => {
|
|
35
|
-
const { t } = useTranslation();
|
|
36
|
-
const [paymentModes, setPaymentModes] = useState([]);
|
|
37
|
-
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
38
|
-
const [isDeleteModalOpen, setIsDeleteModalOpen] = useState(false);
|
|
39
|
-
const [selectedPaymentMode, setSelectedPaymentMode] = useState(null);
|
|
40
|
-
|
|
41
|
-
const {
|
|
42
|
-
control,
|
|
43
|
-
handleSubmit,
|
|
44
|
-
reset,
|
|
45
|
-
formState: { errors, isSubmitting },
|
|
46
|
-
} = useForm<PaymentModeFormValues>({
|
|
47
|
-
resolver: zodResolver(paymentModeSchema),
|
|
48
|
-
defaultValues: {
|
|
49
|
-
name: '',
|
|
50
|
-
description: '',
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
|
|
54
|
-
const fetchPaymentModes = useCallback(async () => {
|
|
55
|
-
try {
|
|
56
|
-
const response = await openmrsFetch(`${restBaseUrl}/billing/paymentMode?v=full`);
|
|
57
|
-
setPaymentModes(response.data.results || []);
|
|
58
|
-
} catch (err) {
|
|
59
|
-
showSnackbar({
|
|
60
|
-
title: t('error', 'Error'),
|
|
61
|
-
subtitle: t('errorFetchingPaymentModes', 'An error occurred while fetching payment modes.'),
|
|
62
|
-
kind: 'error',
|
|
63
|
-
isLowContrast: false,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}, [t]);
|
|
67
|
-
|
|
68
|
-
useEffect(() => {
|
|
69
|
-
fetchPaymentModes();
|
|
70
|
-
}, [fetchPaymentModes]);
|
|
71
|
-
|
|
72
|
-
const onSubmit = async (data: PaymentModeFormValues) => {
|
|
73
|
-
// Check for duplicate payment mode name
|
|
74
|
-
const isDuplicate = paymentModes.some((mode) => mode.name.toLowerCase() === data.name.toLowerCase());
|
|
75
|
-
|
|
76
|
-
if (isDuplicate) {
|
|
77
|
-
showSnackbar({
|
|
78
|
-
title: t('error', 'Error'),
|
|
79
|
-
subtitle: t(
|
|
80
|
-
'duplicatePaymentModeError',
|
|
81
|
-
'A payment mode with the same name already exists. Please create another payment mode',
|
|
82
|
-
),
|
|
83
|
-
kind: 'error',
|
|
84
|
-
isLowContrast: false,
|
|
85
|
-
});
|
|
86
|
-
return;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
try {
|
|
90
|
-
const response = await openmrsFetch(`${restBaseUrl}/billing/paymentMode`, {
|
|
91
|
-
method: 'POST',
|
|
92
|
-
headers: {
|
|
93
|
-
'Content-Type': 'application/json',
|
|
94
|
-
},
|
|
95
|
-
body: JSON.stringify({
|
|
96
|
-
name: data.name,
|
|
97
|
-
description: data.description,
|
|
98
|
-
}),
|
|
99
|
-
});
|
|
100
|
-
|
|
101
|
-
if (response.ok) {
|
|
102
|
-
showSnackbar({
|
|
103
|
-
title: t('success', 'Success'),
|
|
104
|
-
subtitle: t('paymentModeSaved', 'Payment mode was successfully saved.'),
|
|
105
|
-
kind: 'success',
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
setIsModalOpen(false);
|
|
109
|
-
reset({ name: '', description: '' });
|
|
110
|
-
fetchPaymentModes();
|
|
111
|
-
} else {
|
|
112
|
-
const errorData = response.data || {};
|
|
113
|
-
showSnackbar({
|
|
114
|
-
title: t('error', 'Error'),
|
|
115
|
-
subtitle:
|
|
116
|
-
errorData.message || t('errorSavingPaymentMode', 'An error occurred while saving the payment mode.'),
|
|
117
|
-
kind: 'error',
|
|
118
|
-
isLowContrast: false,
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
} catch (err) {
|
|
122
|
-
showSnackbar({
|
|
123
|
-
title: t('error', 'Error'),
|
|
124
|
-
subtitle: t('errorSavingPaymentMode', 'An error occurred while saving the payment mode.'),
|
|
125
|
-
kind: 'error',
|
|
126
|
-
isLowContrast: false,
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
|
|
131
|
-
const handleDelete = async () => {
|
|
132
|
-
if (!selectedPaymentMode) return;
|
|
133
|
-
|
|
134
|
-
try {
|
|
135
|
-
await openmrsFetch(`${restBaseUrl}/billing/paymentMode/${selectedPaymentMode.uuid}`, {
|
|
136
|
-
method: 'DELETE',
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
showSnackbar({
|
|
140
|
-
title: t('success', 'Success'),
|
|
141
|
-
subtitle: t('paymentModeDeleted', 'Payment mode was successfully deleted.'),
|
|
142
|
-
kind: 'success',
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
setIsDeleteModalOpen(false);
|
|
146
|
-
setSelectedPaymentMode(null);
|
|
147
|
-
fetchPaymentModes();
|
|
148
|
-
} catch (err) {
|
|
149
|
-
showSnackbar({
|
|
150
|
-
title: t('error', 'Error'),
|
|
151
|
-
subtitle: t('errorDeletingPaymentMode', 'An error occurred while deleting the payment mode.'),
|
|
152
|
-
kind: 'error',
|
|
153
|
-
isLowContrast: false,
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
const rowData = paymentModes.map((mode) => ({
|
|
159
|
-
id: mode.uuid,
|
|
160
|
-
name: mode.name,
|
|
161
|
-
description: mode.description || '--',
|
|
162
|
-
}));
|
|
163
|
-
|
|
164
|
-
const headerData = [
|
|
165
|
-
{ key: 'name', header: t('name', 'Name') },
|
|
166
|
-
{ key: 'description', header: t('description', 'Description') },
|
|
167
|
-
{ key: 'actions', header: t('actions', 'Actions') },
|
|
168
|
-
];
|
|
169
|
-
|
|
170
|
-
return (
|
|
171
|
-
<div className={styles.container}>
|
|
172
|
-
<div className={styles.card}>
|
|
173
|
-
<CardHeader title={t('paymentModeHistory', 'Payment Mode History')}>
|
|
174
|
-
<Button renderIcon={Add} onClick={() => setIsModalOpen(true)} kind="ghost">
|
|
175
|
-
{t('addPaymentMode', 'Add New Payment Mode')}
|
|
176
|
-
</Button>
|
|
177
|
-
</CardHeader>
|
|
178
|
-
<div className={styles.historyContainer}>
|
|
179
|
-
<DataTable rows={rowData} headers={headerData} isSortable size="lg">
|
|
180
|
-
{({ rows, headers, getTableProps, getHeaderProps, getRowProps }) => (
|
|
181
|
-
<TableContainer>
|
|
182
|
-
<Table className={styles.table} {...getTableProps()}>
|
|
183
|
-
<TableHead>
|
|
184
|
-
<TableRow>
|
|
185
|
-
{headers.map((header) => (
|
|
186
|
-
<TableHeader key={header.key} {...getHeaderProps({ header })}>
|
|
187
|
-
{header.header}
|
|
188
|
-
</TableHeader>
|
|
189
|
-
))}
|
|
190
|
-
</TableRow>
|
|
191
|
-
</TableHead>
|
|
192
|
-
<TableBody>
|
|
193
|
-
{rows.map((row) => (
|
|
194
|
-
<TableRow key={row.id} {...getRowProps({ row })}>
|
|
195
|
-
{row.cells.map((cell) =>
|
|
196
|
-
cell.info.header !== 'actions' ? (
|
|
197
|
-
<TableCell key={cell.id}>{cell.value}</TableCell>
|
|
198
|
-
) : (
|
|
199
|
-
<TableCell key={cell.id}>
|
|
200
|
-
<OverflowMenu>
|
|
201
|
-
<OverflowMenuItem
|
|
202
|
-
itemText={t('delete', 'Delete')}
|
|
203
|
-
onClick={() => {
|
|
204
|
-
const selected = paymentModes.find((p) => p.uuid === row.id);
|
|
205
|
-
setSelectedPaymentMode(selected);
|
|
206
|
-
setIsDeleteModalOpen(true);
|
|
207
|
-
}}
|
|
208
|
-
/>
|
|
209
|
-
</OverflowMenu>
|
|
210
|
-
</TableCell>
|
|
211
|
-
),
|
|
212
|
-
)}
|
|
213
|
-
</TableRow>
|
|
214
|
-
))}
|
|
215
|
-
</TableBody>
|
|
216
|
-
</Table>
|
|
217
|
-
</TableContainer>
|
|
218
|
-
)}
|
|
219
|
-
</DataTable>
|
|
220
|
-
</div>
|
|
221
|
-
</div>
|
|
222
|
-
|
|
223
|
-
{/* Modal for Adding New Payment Mode */}
|
|
224
|
-
<Modal
|
|
225
|
-
open={isModalOpen}
|
|
226
|
-
modalHeading={t('addPaymentMode', 'Add Payment Mode')}
|
|
227
|
-
onRequestClose={() => setIsModalOpen(false)}
|
|
228
|
-
onRequestSubmit={handleSubmit(onSubmit)}
|
|
229
|
-
primaryButtonText={t('save', 'Save')}
|
|
230
|
-
secondaryButtonText={t('cancel', 'Cancel')}
|
|
231
|
-
isPrimaryButtonDisabled={isSubmitting}>
|
|
232
|
-
<form>
|
|
233
|
-
<Controller
|
|
234
|
-
name="name"
|
|
235
|
-
control={control}
|
|
236
|
-
render={({ field }) => (
|
|
237
|
-
<TextInput
|
|
238
|
-
id="payment-mode-name"
|
|
239
|
-
labelText={t('paymentModeName', 'Payment Mode Name')}
|
|
240
|
-
placeholder={t('paymentModeNamePlaceholder', 'e.g., Cash, Credit Card')}
|
|
241
|
-
invalid={!!errors.name}
|
|
242
|
-
invalidText={errors.name?.message}
|
|
243
|
-
{...field}
|
|
244
|
-
/>
|
|
245
|
-
)}
|
|
246
|
-
/>
|
|
247
|
-
<Controller
|
|
248
|
-
name="description"
|
|
249
|
-
control={control}
|
|
250
|
-
render={({ field }) => (
|
|
251
|
-
<TextInput
|
|
252
|
-
id="payment-mode-description"
|
|
253
|
-
labelText={t('description', 'Description')}
|
|
254
|
-
placeholder={t('descriptionPlaceholder', 'e.g., Used for all cash transactions')}
|
|
255
|
-
invalid={!!errors.description}
|
|
256
|
-
invalidText={errors.description?.message}
|
|
257
|
-
{...field}
|
|
258
|
-
/>
|
|
259
|
-
)}
|
|
260
|
-
/>
|
|
261
|
-
</form>
|
|
262
|
-
</Modal>
|
|
263
|
-
|
|
264
|
-
{/* Modal for Deleting Payment Mode */}
|
|
265
|
-
<Modal
|
|
266
|
-
open={isDeleteModalOpen}
|
|
267
|
-
modalHeading={t('deletePaymentMode', 'Delete Payment Mode')}
|
|
268
|
-
onRequestClose={() => setIsDeleteModalOpen(false)}
|
|
269
|
-
onRequestSubmit={handleDelete}
|
|
270
|
-
primaryButtonText={t('delete', 'Delete')}
|
|
271
|
-
secondaryButtonText={t('cancel', 'Cancel')}
|
|
272
|
-
primaryButtonDanger
|
|
273
|
-
danger>
|
|
274
|
-
<p>{t('confirmDeleteMessage', 'Are you sure you want to delete this payment mode? Proceed cautiously.')}</p>
|
|
275
|
-
</Modal>
|
|
276
|
-
</div>
|
|
277
|
-
);
|
|
278
|
-
};
|
|
279
|
-
|
|
280
|
-
export default PaymentModesConfig;
|
|
File without changes
|