andoncloud-sdk 1.7.25 → 1.7.27
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.js +1080 -720
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
package/dist/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import toast, { Toaster, default as toast$1 } from "react-hot-toast";
|
|
2
2
|
import * as Sentry from "@sentry/react";
|
|
3
3
|
import { captureException, captureException as captureException$1 } from "@sentry/react";
|
|
4
|
-
import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
4
|
+
import React, { Fragment, createContext, createElement, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
5
5
|
import { I18nextProvider, initReactI18next, useTranslation } from "react-i18next";
|
|
6
6
|
import HourglassEmptyIcon from "@mui/icons-material/HourglassEmpty";
|
|
7
7
|
import LockIcon from "@mui/icons-material/Lock";
|
|
8
8
|
import ShoppingCartIcon from "@mui/icons-material/ShoppingCart";
|
|
9
9
|
import { Alert, Box, Button, Card, CardContent, Checkbox as Checkbox$1, Collapse, Container as Container$1, Dialog, DialogContent, DialogTitle, Drawer, FormControl, IconButton, Link, List, ListItem, ListItemButton, ListItemIcon, ListItemText, Radio as Radio$1, RadioGroup as RadioGroup$1, Stack, Step, StepLabel, Stepper, TextField, Tooltip, Typography, styled, useScrollTrigger } from "@mui/material";
|
|
10
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
10
11
|
import { action, computed, flow, makeAutoObservable, makeObservable, observable, reaction, toJS } from "mobx";
|
|
11
12
|
import TagManager from "react-gtm-module";
|
|
12
13
|
import { BrowserRouter, Link as Link$1, Navigate, Route, Routes, createRoutesFromChildren, matchRoutes, useLocation, useNavigate, useNavigationType, useSearchParams } from "react-router-dom";
|
|
@@ -168,43 +169,60 @@ const AccessRequestModal = ({ open, requestType, onSubmitRequest, onClose }) =>
|
|
|
168
169
|
const { translationKey, steps, showDisclaimer } = REQUEST_TYPE_CONFIG[requestType] || REQUEST_TYPE_CONFIG.feature_access;
|
|
169
170
|
const renderStepper = () => {
|
|
170
171
|
if (steps.length === 0) return null;
|
|
171
|
-
return /* @__PURE__ */
|
|
172
|
+
return /* @__PURE__ */ jsx(Stepper, {
|
|
172
173
|
orientation: "vertical",
|
|
173
|
-
sx: styles$1.stepper
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
sx: styles$1.stepper,
|
|
175
|
+
children: steps.map((step) => /* @__PURE__ */ jsx(Step, {
|
|
176
|
+
active: true,
|
|
177
|
+
children: /* @__PURE__ */ jsx(StepLabel, { children: t(`access.modal.${translationKey}.${step}`) })
|
|
178
|
+
}, step))
|
|
179
|
+
});
|
|
178
180
|
};
|
|
179
181
|
const renderContent = () => {
|
|
180
|
-
if (requestType === "start_trial") return /* @__PURE__ */
|
|
182
|
+
if (requestType === "start_trial") return /* @__PURE__ */ jsx(Typography, {
|
|
181
183
|
variant: "body1",
|
|
182
|
-
sx: styles$1.content
|
|
183
|
-
|
|
184
|
+
sx: styles$1.content,
|
|
185
|
+
children: t("access.modal.startTrial.content")
|
|
186
|
+
});
|
|
184
187
|
return renderStepper();
|
|
185
188
|
};
|
|
186
|
-
return /* @__PURE__ */
|
|
189
|
+
return /* @__PURE__ */ jsxs(Dialog, {
|
|
187
190
|
open,
|
|
188
191
|
onClose,
|
|
189
192
|
sx: styles$1.dialog,
|
|
190
|
-
"data-testid": "sdk.access-modal"
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
193
|
+
"data-testid": "sdk.access-modal",
|
|
194
|
+
children: [/* @__PURE__ */ jsx(DialogTitle, { children: t(`access.modal.${translationKey}.header`) }), /* @__PURE__ */ jsx(DialogContent, {
|
|
195
|
+
sx: styles$1.dialogContent,
|
|
196
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
197
|
+
sx: styles$1.container,
|
|
198
|
+
children: [
|
|
199
|
+
renderContent(),
|
|
200
|
+
showDisclaimer && /* @__PURE__ */ jsx(Alert, {
|
|
201
|
+
severity: "warning",
|
|
202
|
+
variant: "outlined",
|
|
203
|
+
sx: styles$1.disclaimer,
|
|
204
|
+
children: t("access.modal.disclaimer")
|
|
205
|
+
}),
|
|
206
|
+
/* @__PURE__ */ jsxs(Stack, {
|
|
207
|
+
direction: "row",
|
|
208
|
+
spacing: 2,
|
|
209
|
+
sx: styles$1.actions,
|
|
210
|
+
children: [/* @__PURE__ */ jsx(Button, {
|
|
211
|
+
variant: "contained",
|
|
212
|
+
onClick: onSubmitRequest,
|
|
213
|
+
"data-testid": "sdk.access-modal.action",
|
|
214
|
+
children: t(`access.modal.${translationKey}.button`)
|
|
215
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
216
|
+
variant: "outlined",
|
|
217
|
+
onClick: onClose,
|
|
218
|
+
"data-testid": "sdk.access-modal.cancel",
|
|
219
|
+
children: t("access.modal.cancel")
|
|
220
|
+
})]
|
|
221
|
+
})
|
|
222
|
+
]
|
|
223
|
+
})
|
|
224
|
+
})]
|
|
225
|
+
});
|
|
208
226
|
};
|
|
209
227
|
//#endregion
|
|
210
228
|
//#region src/components/access/CooldownModal.styles.js
|
|
@@ -233,18 +251,30 @@ const styles = {
|
|
|
233
251
|
//#region src/components/access/CooldownModal.js
|
|
234
252
|
const CooldownModal = ({ open, daysRemaining, onClose }) => {
|
|
235
253
|
const { t } = useTranslation();
|
|
236
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */ jsxs(Dialog, {
|
|
237
255
|
open,
|
|
238
256
|
onClose,
|
|
239
|
-
sx: styles.dialog
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
257
|
+
sx: styles.dialog,
|
|
258
|
+
children: [/* @__PURE__ */ jsx(DialogTitle, { children: t("access.cooldown.header") }), /* @__PURE__ */ jsx(DialogContent, {
|
|
259
|
+
sx: styles.dialogContent,
|
|
260
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
261
|
+
sx: styles.container,
|
|
262
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
263
|
+
variant: "body1",
|
|
264
|
+
sx: styles.content,
|
|
265
|
+
children: t("access.cooldown.message", { days: daysRemaining })
|
|
266
|
+
}), /* @__PURE__ */ jsx(Box, {
|
|
267
|
+
sx: styles.actions,
|
|
268
|
+
children: /* @__PURE__ */ jsx(Button, {
|
|
269
|
+
variant: "contained",
|
|
270
|
+
onClick: onClose,
|
|
271
|
+
"data-testid": "sdk.access-cooldown.button",
|
|
272
|
+
children: t("access.cooldown.button")
|
|
273
|
+
})
|
|
274
|
+
})]
|
|
275
|
+
})
|
|
276
|
+
})]
|
|
277
|
+
});
|
|
248
278
|
};
|
|
249
279
|
//#endregion
|
|
250
280
|
//#region src/components/access/AccessBlocker.js
|
|
@@ -328,41 +358,62 @@ const AccessBlocker = ({ accessState, buttons = [], daysSinceExpiry, featureKey,
|
|
|
328
358
|
};
|
|
329
359
|
const renderButton = (button) => {
|
|
330
360
|
const label = getButtonLabel(button.action);
|
|
331
|
-
if (button.variant === "link") return /* @__PURE__ */
|
|
332
|
-
key: button.action,
|
|
361
|
+
if (button.variant === "link") return /* @__PURE__ */ jsx(Link, {
|
|
333
362
|
component: "button",
|
|
334
363
|
variant: "body2",
|
|
335
364
|
sx: styles.linkButton,
|
|
336
365
|
onClick: () => handleOpenModal(button),
|
|
337
|
-
"data-testid": `sdk.access-blocker.${button.action}
|
|
338
|
-
|
|
366
|
+
"data-testid": `sdk.access-blocker.${button.action}`,
|
|
367
|
+
children: label
|
|
368
|
+
}, button.action);
|
|
339
369
|
const isContained = button.variant === "primary";
|
|
340
|
-
return /* @__PURE__ */
|
|
341
|
-
key: button.action,
|
|
370
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
342
371
|
variant: isContained ? "contained" : "outlined",
|
|
343
372
|
sx: isContained ? styles.primaryButton : styles.secondaryButton,
|
|
344
373
|
onClick: () => handleOpenModal(button),
|
|
345
|
-
"data-testid": `sdk.access-blocker.${button.action}
|
|
346
|
-
|
|
374
|
+
"data-testid": `sdk.access-blocker.${button.action}`,
|
|
375
|
+
children: label
|
|
376
|
+
}, button.action);
|
|
347
377
|
};
|
|
348
378
|
const renderButtons = () => {
|
|
349
379
|
if (buttons.length === 0) return null;
|
|
350
|
-
return /* @__PURE__ */
|
|
380
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
381
|
+
sx: styles.buttonsContainer,
|
|
382
|
+
children: buttons.map(renderButton)
|
|
383
|
+
});
|
|
351
384
|
};
|
|
352
|
-
return /* @__PURE__ */
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
385
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
386
|
+
/* @__PURE__ */ jsxs(Box, {
|
|
387
|
+
sx: styles.container,
|
|
388
|
+
children: [
|
|
389
|
+
backgroundImage && /* @__PURE__ */ jsx(Box, {
|
|
390
|
+
sx: styles.backgroundImage,
|
|
391
|
+
style: { backgroundImage: `url(${backgroundImage})` },
|
|
392
|
+
"data-testid": "sdk.access-blocker.background-image"
|
|
393
|
+
}),
|
|
394
|
+
/* @__PURE__ */ jsx(Tooltip, {
|
|
395
|
+
title: getTooltipText(),
|
|
396
|
+
children: /* @__PURE__ */ jsx(Icon, { sx: styles.icon })
|
|
397
|
+
}),
|
|
398
|
+
/* @__PURE__ */ jsx(Typography, {
|
|
399
|
+
variant: "body1",
|
|
400
|
+
children: getMessage()
|
|
401
|
+
}),
|
|
402
|
+
renderButtons()
|
|
403
|
+
]
|
|
404
|
+
}),
|
|
405
|
+
/* @__PURE__ */ jsx(AccessRequestModal, {
|
|
406
|
+
open: modalOpen,
|
|
407
|
+
requestType: pendingAction?.action === "start_trial" ? "start_trial" : pendingAction?.requestType,
|
|
408
|
+
onSubmitRequest: handleSubmitRequest,
|
|
409
|
+
onClose: handleCloseModal
|
|
410
|
+
}),
|
|
411
|
+
/* @__PURE__ */ jsx(CooldownModal, {
|
|
412
|
+
open: cooldownModalOpen,
|
|
413
|
+
daysRemaining: cooldownDays,
|
|
414
|
+
onClose: handleCloseCooldownModal
|
|
415
|
+
})
|
|
416
|
+
] });
|
|
366
417
|
};
|
|
367
418
|
//#endregion
|
|
368
419
|
//#region src/utils/stores.ts
|
|
@@ -706,13 +757,11 @@ const AccessGuard = ({ features: featuresProp = [], extraPermissions = [], workp
|
|
|
706
757
|
});
|
|
707
758
|
if (hasAccess) return children;
|
|
708
759
|
const mostRestrictiveFeature = features.find((feat) => feat.accessState === accessState);
|
|
709
|
-
|
|
710
|
-
const featureKey = mostRestrictiveFeature?.featureKey || featuresProp[0];
|
|
711
|
-
return /* @__PURE__ */ React.createElement(AccessBlocker, {
|
|
760
|
+
return /* @__PURE__ */ jsx(AccessBlocker, {
|
|
712
761
|
accessState,
|
|
713
762
|
buttons,
|
|
714
|
-
daysSinceExpiry,
|
|
715
|
-
featureKey,
|
|
763
|
+
daysSinceExpiry: mostRestrictiveFeature?.daysSinceExpiry || null,
|
|
764
|
+
featureKey: mostRestrictiveFeature?.featureKey || featuresProp[0],
|
|
716
765
|
workplaceId,
|
|
717
766
|
cooldownInfo,
|
|
718
767
|
onTrialRequest,
|
|
@@ -734,13 +783,13 @@ const withAccessGuard = (featuresProp = [], options = {}) => {
|
|
|
734
783
|
const mostRestrictiveFeature = features.find((feat) => feat.accessState === accessState);
|
|
735
784
|
const daysSinceExpiry = mostRestrictiveFeature?.daysSinceExpiry || null;
|
|
736
785
|
const featureKey = mostRestrictiveFeature?.featureKey || featuresProp[0];
|
|
737
|
-
if (hasAccess) return /* @__PURE__ */
|
|
786
|
+
if (hasAccess) return /* @__PURE__ */ jsx(WrappedComponent, {
|
|
738
787
|
...restProps,
|
|
739
788
|
accessState,
|
|
740
789
|
hasAccess,
|
|
741
790
|
missingPermissions
|
|
742
791
|
});
|
|
743
|
-
return /* @__PURE__ */
|
|
792
|
+
return /* @__PURE__ */ jsx(AccessBlocker, {
|
|
744
793
|
accessState,
|
|
745
794
|
buttons,
|
|
746
795
|
daysSinceExpiry,
|
|
@@ -1355,15 +1404,17 @@ const ModalProvider = ({ children }) => {
|
|
|
1355
1404
|
showModal,
|
|
1356
1405
|
modalsConfig
|
|
1357
1406
|
]);
|
|
1358
|
-
return /* @__PURE__ */
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1407
|
+
return /* @__PURE__ */ jsxs(ModalContext.Provider, {
|
|
1408
|
+
value: contextValue,
|
|
1409
|
+
children: [children, Object.keys(modalsConfig).map((modalKey) => {
|
|
1410
|
+
const { component: Component, isOpen, data } = modalsConfig[modalKey];
|
|
1411
|
+
return isOpen && /* @__PURE__ */ jsx(Component, {
|
|
1412
|
+
onClose: () => hideModal(modalKey),
|
|
1413
|
+
isOpen,
|
|
1414
|
+
...data
|
|
1415
|
+
}, modalKey);
|
|
1416
|
+
})]
|
|
1417
|
+
});
|
|
1367
1418
|
};
|
|
1368
1419
|
//#endregion
|
|
1369
1420
|
//#region src/hooks/useModalHook/useModal.js
|
|
@@ -1739,55 +1790,80 @@ const Footer = ({ appVersion, apiVersion }) => {
|
|
|
1739
1790
|
const renderAppVersion = () => {
|
|
1740
1791
|
if (appVersion) {
|
|
1741
1792
|
const versionText = appVersion.startsWith("v") ? appVersion : `v${appVersion}`;
|
|
1742
|
-
return /* @__PURE__ */
|
|
1793
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
1794
|
+
/* @__PURE__ */ jsx("span", { children: t("Version") }),
|
|
1795
|
+
" ",
|
|
1796
|
+
versionText
|
|
1797
|
+
] });
|
|
1743
1798
|
}
|
|
1744
1799
|
};
|
|
1745
1800
|
const renderApiVersion = () => {
|
|
1746
1801
|
if (apiVersion) {
|
|
1747
1802
|
const versionText = apiVersion.startsWith("v") ? apiVersion : `v${apiVersion}`;
|
|
1748
|
-
return /* @__PURE__ */
|
|
1803
|
+
return /* @__PURE__ */ jsxs(React.Fragment, { children: [
|
|
1804
|
+
/* @__PURE__ */ jsx("span", { children: "API" }),
|
|
1805
|
+
" ",
|
|
1806
|
+
versionText
|
|
1807
|
+
] });
|
|
1749
1808
|
}
|
|
1750
1809
|
};
|
|
1751
|
-
return /* @__PURE__ */
|
|
1810
|
+
return /* @__PURE__ */ jsxs(Overlay, { children: [renderAppVersion(), renderApiVersion()] });
|
|
1752
1811
|
};
|
|
1753
1812
|
//#endregion
|
|
1754
1813
|
//#region src/pages/ErrorPage.js
|
|
1755
1814
|
const ErrorPage = ({ error, appVersion, apiVersion }) => {
|
|
1756
1815
|
const { t } = useTranslation();
|
|
1757
1816
|
const containerStyles = makeStyles({ isEmbeddedMode: getDisplayMode() === "iframe" });
|
|
1758
|
-
return /* @__PURE__ */
|
|
1817
|
+
return /* @__PURE__ */ jsxs(Container$1, {
|
|
1759
1818
|
maxWidth: false,
|
|
1760
1819
|
disableGutters: true,
|
|
1761
|
-
sx: containerStyles.root
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1820
|
+
sx: containerStyles.root,
|
|
1821
|
+
children: [
|
|
1822
|
+
/* @__PURE__ */ jsx(Card, {
|
|
1823
|
+
style: {
|
|
1824
|
+
background: "linear-gradient(180deg, #393939 0%, #4A4A4A 100%)",
|
|
1825
|
+
maxWidth: "650px",
|
|
1826
|
+
margin: "200px auto",
|
|
1827
|
+
borderRadius: "20px"
|
|
1828
|
+
},
|
|
1829
|
+
children: /* @__PURE__ */ jsx(CardContent, {
|
|
1830
|
+
style: { minHeight: "unset" },
|
|
1831
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
1832
|
+
display: "flex",
|
|
1833
|
+
flexDirection: "column",
|
|
1834
|
+
alignItems: "center",
|
|
1835
|
+
justifyContent: "center",
|
|
1836
|
+
m: "125px 80px",
|
|
1837
|
+
children: [/* @__PURE__ */ jsxs(Typography, {
|
|
1838
|
+
variant: "h4",
|
|
1839
|
+
sx: {
|
|
1840
|
+
display: "flex",
|
|
1841
|
+
alignItems: "center",
|
|
1842
|
+
marginBottom: "40px",
|
|
1843
|
+
color: "rgba(255, 255, 255, 0.6)"
|
|
1844
|
+
},
|
|
1845
|
+
children: [t("somethingWentWrongMessage"), /* @__PURE__ */ jsx(Tooltip, {
|
|
1846
|
+
title: error.toString(),
|
|
1847
|
+
arrow: true,
|
|
1848
|
+
children: /* @__PURE__ */ jsx(HelpOutlineIcon, { sx: {
|
|
1849
|
+
marginLeft: "1em",
|
|
1850
|
+
fontSize: "inherit"
|
|
1851
|
+
} })
|
|
1852
|
+
})]
|
|
1853
|
+
}), /* @__PURE__ */ jsx(Button, {
|
|
1854
|
+
onClick: () => window.location.reload(),
|
|
1855
|
+
children: t("networkErrorButtonText")
|
|
1856
|
+
})]
|
|
1857
|
+
})
|
|
1858
|
+
})
|
|
1859
|
+
}),
|
|
1860
|
+
/* @__PURE__ */ jsx(Box, { sx: containerStyles.overlay }),
|
|
1861
|
+
/* @__PURE__ */ jsx(Footer, {
|
|
1862
|
+
appVersion,
|
|
1863
|
+
apiVersion
|
|
1864
|
+
})
|
|
1865
|
+
]
|
|
1866
|
+
});
|
|
1791
1867
|
};
|
|
1792
1868
|
ErrorPage.propTypes = {
|
|
1793
1869
|
error: PropTypes.any,
|
|
@@ -1800,18 +1876,19 @@ var loader_default = "data:image/svg+xml,<?xml version=\"1.0\" encoding=\"utf-8\
|
|
|
1800
1876
|
//#endregion
|
|
1801
1877
|
//#region src/components/loader.js
|
|
1802
1878
|
const Loader = ({ width, "data-testid": dataTestId }) => {
|
|
1803
|
-
return /* @__PURE__ */
|
|
1879
|
+
return /* @__PURE__ */ jsx(Box, {
|
|
1804
1880
|
display: "flex",
|
|
1805
1881
|
alignItems: "center",
|
|
1806
1882
|
justifyContent: "center",
|
|
1807
1883
|
width: "100%",
|
|
1808
|
-
height: "100%"
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1884
|
+
height: "100%",
|
|
1885
|
+
children: /* @__PURE__ */ jsx("img", {
|
|
1886
|
+
"data-testid": dataTestId,
|
|
1887
|
+
alt: "loader",
|
|
1888
|
+
width,
|
|
1889
|
+
src: loader_default
|
|
1890
|
+
})
|
|
1891
|
+
});
|
|
1815
1892
|
};
|
|
1816
1893
|
//#endregion
|
|
1817
1894
|
//#region src/providers/display.js
|
|
@@ -1820,14 +1897,17 @@ const DisplayProvider = ({ children }) => {
|
|
|
1820
1897
|
const [iframeMounted, setIframeMounted] = useState(false);
|
|
1821
1898
|
const [iframeNavigationItems, setIframeNavigationItems] = useState([]);
|
|
1822
1899
|
const mode = getDisplayMode();
|
|
1823
|
-
return /* @__PURE__ */
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1900
|
+
return /* @__PURE__ */ jsx(DisplayContext.Provider, {
|
|
1901
|
+
value: {
|
|
1902
|
+
mode,
|
|
1903
|
+
isEmbeddedMode: mode === "iframe",
|
|
1904
|
+
iframeMounted,
|
|
1905
|
+
setIframeMounted,
|
|
1906
|
+
iframeNavigationItems,
|
|
1907
|
+
setIframeNavigationItems
|
|
1908
|
+
},
|
|
1909
|
+
children
|
|
1910
|
+
});
|
|
1831
1911
|
};
|
|
1832
1912
|
const useDisplay = () => {
|
|
1833
1913
|
return useContext(DisplayContext);
|
|
@@ -1837,14 +1917,15 @@ const useDisplay = () => {
|
|
|
1837
1917
|
const LoaderPage = () => {
|
|
1838
1918
|
const { isEmbeddedMode } = useDisplay();
|
|
1839
1919
|
const containerStyles = makeStyles({ isEmbeddedMode });
|
|
1840
|
-
return /* @__PURE__ */
|
|
1920
|
+
return /* @__PURE__ */ jsxs(Container$1, {
|
|
1841
1921
|
maxWidth: false,
|
|
1842
1922
|
disableGutters: true,
|
|
1843
|
-
sx: containerStyles.root
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1923
|
+
sx: containerStyles.root,
|
|
1924
|
+
children: [/* @__PURE__ */ jsx(Loader, {
|
|
1925
|
+
"data-testid": "sdk.app-loading",
|
|
1926
|
+
width: "500px"
|
|
1927
|
+
}), /* @__PURE__ */ jsx(Box, { sx: containerStyles.overlay })]
|
|
1928
|
+
});
|
|
1848
1929
|
};
|
|
1849
1930
|
LoaderPage.propTypes = {};
|
|
1850
1931
|
LoaderPage.defaultProps = {};
|
|
@@ -1852,7 +1933,10 @@ LoaderPage.defaultProps = {};
|
|
|
1852
1933
|
//#region src/providers/authConfig.js
|
|
1853
1934
|
const AuthConfigContext = createContext();
|
|
1854
1935
|
const AuthConfigProvider = ({ children, config }) => {
|
|
1855
|
-
return /* @__PURE__ */
|
|
1936
|
+
return /* @__PURE__ */ jsx(AuthConfigContext.Provider, {
|
|
1937
|
+
value: config,
|
|
1938
|
+
children
|
|
1939
|
+
});
|
|
1856
1940
|
};
|
|
1857
1941
|
const useAuthConfig = () => {
|
|
1858
1942
|
return useContext(AuthConfigContext);
|
|
@@ -1861,7 +1945,10 @@ const useAuthConfig = () => {
|
|
|
1861
1945
|
//#region src/providers/metaInfo.js
|
|
1862
1946
|
const MetaInfoContext = createContext();
|
|
1863
1947
|
const MetaInfoProvider = ({ children, info }) => {
|
|
1864
|
-
return /* @__PURE__ */
|
|
1948
|
+
return /* @__PURE__ */ jsx(MetaInfoContext.Provider, {
|
|
1949
|
+
value: info,
|
|
1950
|
+
children
|
|
1951
|
+
});
|
|
1865
1952
|
};
|
|
1866
1953
|
const useMetaInfo = () => {
|
|
1867
1954
|
return useContext(MetaInfoContext);
|
|
@@ -1871,7 +1958,10 @@ const useMetaInfo = () => {
|
|
|
1871
1958
|
const rootStore = { sessionStore };
|
|
1872
1959
|
const StoreContext = createContext(rootStore);
|
|
1873
1960
|
const StoreProvider = observer(({ children }) => {
|
|
1874
|
-
return /* @__PURE__ */
|
|
1961
|
+
return /* @__PURE__ */ jsx(StoreContext.Provider, {
|
|
1962
|
+
value: rootStore,
|
|
1963
|
+
children
|
|
1964
|
+
});
|
|
1875
1965
|
});
|
|
1876
1966
|
const useStore = () => {
|
|
1877
1967
|
return useContext(StoreContext);
|
|
@@ -2191,35 +2281,58 @@ const NetworkError = ({ error }) => {
|
|
|
2191
2281
|
const { isEmbeddedMode } = useDisplay();
|
|
2192
2282
|
const { t } = useTranslation();
|
|
2193
2283
|
const containerStyles = makeStyles({ isEmbeddedMode });
|
|
2194
|
-
return /* @__PURE__ */
|
|
2284
|
+
return /* @__PURE__ */ jsxs(Container$1, {
|
|
2195
2285
|
maxWidth: false,
|
|
2196
2286
|
disableGutters: true,
|
|
2197
|
-
sx: containerStyles.root
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2287
|
+
sx: containerStyles.root,
|
|
2288
|
+
children: [/* @__PURE__ */ jsx(Card, {
|
|
2289
|
+
style: {
|
|
2290
|
+
background: "linear-gradient(180deg, #393939 0%, #4A4A4A 100%)",
|
|
2291
|
+
maxWidth: "600px",
|
|
2292
|
+
margin: "200px auto",
|
|
2293
|
+
borderRadius: "20px"
|
|
2294
|
+
},
|
|
2295
|
+
children: /* @__PURE__ */ jsx(CardContent, {
|
|
2296
|
+
style: { minHeight: "unset" },
|
|
2297
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
2298
|
+
display: "flex",
|
|
2299
|
+
flexDirection: "column",
|
|
2300
|
+
alignItems: "center",
|
|
2301
|
+
justifyContent: "center",
|
|
2302
|
+
m: "125px 80px",
|
|
2303
|
+
children: [
|
|
2304
|
+
/* @__PURE__ */ jsx("h1", {
|
|
2305
|
+
style: {
|
|
2306
|
+
textAlign: "center",
|
|
2307
|
+
color: "rgba(255, 255, 255, 0.6)"
|
|
2308
|
+
},
|
|
2309
|
+
children: t("networkErrorHeader")
|
|
2310
|
+
}),
|
|
2311
|
+
/* @__PURE__ */ jsxs("p", {
|
|
2312
|
+
style: {
|
|
2313
|
+
display: "inline-flex",
|
|
2314
|
+
textAlign: "center",
|
|
2315
|
+
color: "rgba(255, 255, 255, 0.6)"
|
|
2316
|
+
},
|
|
2317
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
2318
|
+
mr: 2,
|
|
2319
|
+
children: error.title
|
|
2320
|
+
}), /* @__PURE__ */ jsx(Tooltip, {
|
|
2321
|
+
title: error.details,
|
|
2322
|
+
arrow: true,
|
|
2323
|
+
children: /* @__PURE__ */ jsx(HelpOutlineIcon, {})
|
|
2324
|
+
})]
|
|
2325
|
+
}),
|
|
2326
|
+
/* @__PURE__ */ jsx(Button, {
|
|
2327
|
+
onClick: () => window.location.reload(),
|
|
2328
|
+
"data-testid": "sdk.network-error.reload",
|
|
2329
|
+
children: t("networkErrorButtonText")
|
|
2330
|
+
})
|
|
2331
|
+
]
|
|
2332
|
+
})
|
|
2333
|
+
})
|
|
2334
|
+
}), /* @__PURE__ */ jsx(Box, { sx: containerStyles.overlay })]
|
|
2335
|
+
});
|
|
2223
2336
|
};
|
|
2224
2337
|
//#endregion
|
|
2225
2338
|
//#region src/hooks/useQueryParams.js
|
|
@@ -2257,7 +2370,7 @@ const AuthRedirect = () => {
|
|
|
2257
2370
|
sessionStore.authorize({ code });
|
|
2258
2371
|
}
|
|
2259
2372
|
}, [queryParams]);
|
|
2260
|
-
if (sessionStore.isLoggedIn) return /* @__PURE__ */
|
|
2373
|
+
if (sessionStore.isLoggedIn) return /* @__PURE__ */ jsx(Navigate, { to: nextPath });
|
|
2261
2374
|
return null;
|
|
2262
2375
|
};
|
|
2263
2376
|
//#endregion
|
|
@@ -2369,98 +2482,144 @@ const LoginForm = ({ scope, redirectPath, onSuccess, onFailure, onCancel, storeS
|
|
|
2369
2482
|
setPassword(event.target.value);
|
|
2370
2483
|
if (passwordError) setPasswordError(null);
|
|
2371
2484
|
};
|
|
2372
|
-
return /* @__PURE__ */
|
|
2485
|
+
return /* @__PURE__ */ jsx("form", {
|
|
2373
2486
|
onSubmit: handleSubmit,
|
|
2374
|
-
"data-testid": dataTestID || "sdk.login-form"
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2487
|
+
"data-testid": dataTestID || "sdk.login-form",
|
|
2488
|
+
children: /* @__PURE__ */ jsxs(Box, {
|
|
2489
|
+
m: "0 80px",
|
|
2490
|
+
children: [
|
|
2491
|
+
/* @__PURE__ */ jsxs(Box, {
|
|
2492
|
+
display: "flex",
|
|
2493
|
+
flexDirection: "column",
|
|
2494
|
+
alignItems: "center",
|
|
2495
|
+
justifyContent: "center",
|
|
2496
|
+
gap: 2,
|
|
2497
|
+
m: "100px 0",
|
|
2498
|
+
children: [/* @__PURE__ */ jsx(AcLogoSVG, {}), releaseVersion && /* @__PURE__ */ jsxs(Link, {
|
|
2499
|
+
href: releasePageLink,
|
|
2500
|
+
target: "_blank",
|
|
2501
|
+
fontSize: "14px",
|
|
2502
|
+
sx: {
|
|
2503
|
+
display: "flex",
|
|
2504
|
+
alignItems: "center",
|
|
2505
|
+
gap: .5,
|
|
2506
|
+
textDecoration: "none",
|
|
2507
|
+
"&:hover": {
|
|
2508
|
+
cursor: "pointer",
|
|
2509
|
+
opacity: .8
|
|
2510
|
+
}
|
|
2511
|
+
},
|
|
2512
|
+
children: [
|
|
2513
|
+
/* @__PURE__ */ jsx("img", {
|
|
2514
|
+
src: info_icon_default,
|
|
2515
|
+
alt: "info",
|
|
2516
|
+
width: "14px",
|
|
2517
|
+
height: "14px"
|
|
2518
|
+
}),
|
|
2519
|
+
t("release"),
|
|
2520
|
+
" ",
|
|
2521
|
+
releaseVersion
|
|
2522
|
+
]
|
|
2523
|
+
})]
|
|
2524
|
+
}),
|
|
2525
|
+
/* @__PURE__ */ jsx(Box, {
|
|
2526
|
+
m: "0 0 30px 0",
|
|
2527
|
+
color: "rgba(255, 255, 255, 0.6)",
|
|
2528
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
2529
|
+
align: "center",
|
|
2530
|
+
color: "inherit",
|
|
2531
|
+
children: title
|
|
2532
|
+
})
|
|
2533
|
+
}),
|
|
2534
|
+
/* @__PURE__ */ jsxs(Box, {
|
|
2535
|
+
m: "0",
|
|
2536
|
+
display: "grid",
|
|
2537
|
+
sx: { gridGap: "18px" },
|
|
2538
|
+
gridTemplateColumns: "1fr",
|
|
2539
|
+
children: [
|
|
2540
|
+
/* @__PURE__ */ jsx(FormControl, {
|
|
2541
|
+
fullWidth: true,
|
|
2542
|
+
children: /* @__PURE__ */ jsx(TextField, {
|
|
2543
|
+
autoFocus: true,
|
|
2544
|
+
fullWidth: true,
|
|
2545
|
+
variant: "outlined",
|
|
2546
|
+
label: t("loginCardUsernameHint"),
|
|
2547
|
+
onChange: handleChangeForUsername,
|
|
2548
|
+
value: username,
|
|
2549
|
+
error: Boolean(usernameError),
|
|
2550
|
+
helperText: usernameError,
|
|
2551
|
+
id: "login-input",
|
|
2552
|
+
inputProps: { "data-testid": "sdk.login-form-username-input" }
|
|
2553
|
+
})
|
|
2554
|
+
}),
|
|
2555
|
+
/* @__PURE__ */ jsx(FormControl, {
|
|
2556
|
+
fullWidth: true,
|
|
2557
|
+
children: /* @__PURE__ */ jsx(TextField, {
|
|
2558
|
+
fullWidth: true,
|
|
2559
|
+
variant: "outlined",
|
|
2560
|
+
label: t("loginCardPasswordHint"),
|
|
2561
|
+
onChange: handleChangeForPassword,
|
|
2562
|
+
value: password,
|
|
2563
|
+
error: Boolean(passwordError),
|
|
2564
|
+
helperText: passwordError,
|
|
2565
|
+
type: "password",
|
|
2566
|
+
id: "password-input",
|
|
2567
|
+
inputProps: { "data-testid": "sdk.login-form-password-input" }
|
|
2568
|
+
})
|
|
2569
|
+
}),
|
|
2570
|
+
/* @__PURE__ */ jsx(LoadingButton, {
|
|
2571
|
+
id: "login-button",
|
|
2572
|
+
type: "submit",
|
|
2573
|
+
variant: "contained",
|
|
2574
|
+
size: "large",
|
|
2575
|
+
color: "primary",
|
|
2576
|
+
onClick: handleSubmit,
|
|
2577
|
+
loading: sessionStore.loading,
|
|
2578
|
+
"data-testid": "sdk.login-form-submit-button",
|
|
2579
|
+
children: t("loginCardSubmitButton")
|
|
2580
|
+
}),
|
|
2581
|
+
/* @__PURE__ */ jsx(Button, {
|
|
2582
|
+
id: "cancel-button",
|
|
2583
|
+
type: "button",
|
|
2584
|
+
variant: "outlined",
|
|
2585
|
+
size: "large",
|
|
2586
|
+
color: "secondary",
|
|
2587
|
+
onClick: handleCancel,
|
|
2588
|
+
"data-testid": "sdk.login-form-cancel-button",
|
|
2589
|
+
children: t("loginCardCancelButton")
|
|
2590
|
+
})
|
|
2591
|
+
]
|
|
2592
|
+
}),
|
|
2593
|
+
/* @__PURE__ */ jsx(Box, {
|
|
2594
|
+
m: "30px 0 40px 0",
|
|
2595
|
+
color: "rgba(255, 255, 255, 0.6)",
|
|
2596
|
+
children: /* @__PURE__ */ jsx(Typography, {
|
|
2597
|
+
align: "center",
|
|
2598
|
+
color: "inherit",
|
|
2599
|
+
children: "or scan"
|
|
2600
|
+
})
|
|
2601
|
+
}),
|
|
2602
|
+
/* @__PURE__ */ jsxs(Box, {
|
|
2603
|
+
display: "grid",
|
|
2604
|
+
gridTemplateColumns: "1fr 1fr 1fr",
|
|
2605
|
+
alignItems: "center",
|
|
2606
|
+
justifyItems: "center",
|
|
2607
|
+
marginBottom: "30px",
|
|
2608
|
+
children: [
|
|
2609
|
+
/* @__PURE__ */ jsx(Box, {
|
|
2610
|
+
style: { filter: "brightness(0.5)" },
|
|
2611
|
+
children: /* @__PURE__ */ jsx(QRCodeSVG, {})
|
|
2612
|
+
}),
|
|
2613
|
+
/* @__PURE__ */ jsx(BarcodeSVG, {}),
|
|
2614
|
+
/* @__PURE__ */ jsx(Box, {
|
|
2615
|
+
style: { filter: "brightness(0.5)" },
|
|
2616
|
+
children: /* @__PURE__ */ jsx(RFIDCardSVG, {})
|
|
2617
|
+
})
|
|
2618
|
+
]
|
|
2619
|
+
})
|
|
2620
|
+
]
|
|
2621
|
+
})
|
|
2622
|
+
});
|
|
2464
2623
|
};
|
|
2465
2624
|
LoginForm.propTypes = {
|
|
2466
2625
|
scope: PropTypes.string,
|
|
@@ -2476,269 +2635,361 @@ LoginForm.defaultProps = {
|
|
|
2476
2635
|
};
|
|
2477
2636
|
var loginForm_default = observer(LoginForm);
|
|
2478
2637
|
const QRCodeSVG = () => {
|
|
2479
|
-
return /* @__PURE__ */
|
|
2638
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
2480
2639
|
width: "51",
|
|
2481
2640
|
height: "53",
|
|
2482
2641
|
viewBox: "0 0 51 53",
|
|
2483
2642
|
fill: "none",
|
|
2484
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2643
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2644
|
+
children: [
|
|
2645
|
+
/* @__PURE__ */ jsx("path", {
|
|
2646
|
+
d: "M8.66868 45.6365C8.66868 42.8453 6.99822 41.1535 4.7397 41.1535C2.47266 41.1535 0.806463 42.8453 0.806463 45.6365C0.806463 48.4234 2.47266 50.1194 4.7397 50.1194C5.3022 50.1194 5.82635 50.0172 6.2951 49.8169L7.04084 50.7842H8.38743L7.21129 49.2501C8.1147 48.4873 8.66868 47.243 8.66868 45.6365ZM4.29652 47.1706L5.53658 48.7984C5.28942 48.8794 5.02095 48.9177 4.7397 48.9177C3.23544 48.9177 2.1147 47.7629 2.1147 45.6365C2.1147 43.5101 3.23544 42.3552 4.7397 42.3552C6.2397 42.3552 7.3647 43.5101 7.3647 45.6365C7.3647 46.8297 7.01101 47.7203 6.43146 48.2657L5.59197 47.1706H4.29652ZM10.3104 50.0001H11.6271V46.6976H13.4169C13.4467 46.6976 13.4723 46.6976 13.5021 46.6976L15.2749 50.0001H16.7749L14.8402 46.4675C15.9098 46.0711 16.4425 45.1805 16.4425 44.0086C16.4425 42.4021 15.4453 41.2728 13.4212 41.2728H10.3104V50.0001ZM11.6271 45.564V42.4021H13.2805C14.5803 42.4021 15.1172 43.02 15.1172 44.0086C15.1172 44.993 14.5803 45.564 13.2976 45.564H11.6271ZM28.4691 44.1109C28.1708 42.2444 26.7092 41.1535 24.864 41.1535C22.6055 41.1535 20.9393 42.8453 20.9393 45.6365C20.9393 48.4277 22.5969 50.1194 24.864 50.1194C26.7816 50.1194 28.1836 48.9177 28.4691 47.1919L27.1396 47.1876C26.9137 48.3041 25.9762 48.9177 24.8725 48.9177C23.3768 48.9177 22.2475 47.7714 22.2475 45.6365C22.2475 43.5186 23.3725 42.3552 24.8768 42.3552C25.989 42.3552 26.9222 42.9817 27.1396 44.1109H28.4691ZM32.6996 50.1322C34.5447 50.1322 35.7507 48.7814 35.7507 46.7572C35.7507 44.7203 34.5447 43.3694 32.6996 43.3694C30.8544 43.3694 29.6484 44.7203 29.6484 46.7572C29.6484 48.7814 30.8544 50.1322 32.6996 50.1322ZM32.7038 49.0626C31.4979 49.0626 30.9354 48.0101 30.9354 46.753C30.9354 45.5001 31.4979 44.4348 32.7038 44.4348C33.9013 44.4348 34.4638 45.5001 34.4638 46.753C34.4638 48.0101 33.9013 49.0626 32.7038 49.0626ZM39.6232 50.128C40.8164 50.128 41.2852 49.3993 41.5153 48.9817H41.6218V50.0001H42.8661V41.2728H41.592V44.5157H41.5153C41.2852 44.1109 40.8505 43.3694 39.6317 43.3694C38.0508 43.3694 36.8874 44.618 36.8874 46.7402C36.8874 48.8581 38.0337 50.128 39.6232 50.128ZM39.9045 49.0413C38.7667 49.0413 38.1744 48.0399 38.1744 46.7274C38.1744 45.4277 38.7539 44.4518 39.9045 44.4518C41.0167 44.4518 41.6133 45.3595 41.6133 46.7274C41.6133 48.1038 41.0039 49.0413 39.9045 49.0413ZM47.5057 50.1322C48.9332 50.1322 49.9432 49.4291 50.233 48.3638L49.027 48.1464C48.7969 48.7643 48.2429 49.0797 47.5185 49.0797C46.4276 49.0797 45.6946 48.3723 45.6605 47.1109H50.3139V46.6592C50.3139 44.2942 48.8991 43.3694 47.4162 43.3694C45.5923 43.3694 44.3906 44.7586 44.3906 46.77C44.3906 48.8027 45.5753 50.1322 47.5057 50.1322ZM45.6648 46.1564C45.7159 45.2274 46.3892 44.422 47.4247 44.422C48.4134 44.422 49.0611 45.155 49.0653 46.1564H45.6648Z",
|
|
2647
|
+
fill: "white",
|
|
2648
|
+
fillOpacity: "0.35"
|
|
2649
|
+
}),
|
|
2650
|
+
/* @__PURE__ */ jsxs("g", {
|
|
2651
|
+
clipPath: "url(#clip0_2183_35009)",
|
|
2652
|
+
children: [
|
|
2653
|
+
/* @__PURE__ */ jsx("path", {
|
|
2654
|
+
d: "M22.3002 3.27948H14.25V11.3318H22.3002V3.27948ZM20.6609 9.66275H15.9186V4.91923H20.6609V9.66275Z",
|
|
2655
|
+
fill: "white",
|
|
2656
|
+
fillOpacity: "0.35"
|
|
2657
|
+
}),
|
|
2658
|
+
/* @__PURE__ */ jsx("path", {
|
|
2659
|
+
d: "M19.1081 6.47128H17.4688V8.11102H19.1081V6.47128Z",
|
|
2660
|
+
fill: "white",
|
|
2661
|
+
fillOpacity: "0.35"
|
|
2662
|
+
}),
|
|
2663
|
+
/* @__PURE__ */ jsx("path", {
|
|
2664
|
+
d: "M14.2773 24.7206H22.3275V16.7122H14.2773V24.7206ZM15.9166 18.3373H20.6589V23.0809H15.9166V18.3373Z",
|
|
2665
|
+
fill: "white",
|
|
2666
|
+
fillOpacity: "0.35"
|
|
2667
|
+
}),
|
|
2668
|
+
/* @__PURE__ */ jsx("path", {
|
|
2669
|
+
d: "M35.7147 17.5176H34.0754V23.081H32.4653V21.8366H30.826V23.0591H28.8281V24.6988H35.7147V17.5176Z",
|
|
2670
|
+
fill: "white",
|
|
2671
|
+
fillOpacity: "0.35"
|
|
2672
|
+
}),
|
|
2673
|
+
/* @__PURE__ */ jsx("path", {
|
|
2674
|
+
d: "M19.1081 19.8893H17.4688V21.529H19.1081V19.8893Z",
|
|
2675
|
+
fill: "white",
|
|
2676
|
+
fillOpacity: "0.35"
|
|
2677
|
+
}),
|
|
2678
|
+
/* @__PURE__ */ jsx("path", {
|
|
2679
|
+
d: "M35.7142 3.27948H27.6641V11.3318H35.7142V3.27948ZM34.0749 9.66275H29.318V4.91923H34.0603L34.0749 9.66275Z",
|
|
2680
|
+
fill: "white",
|
|
2681
|
+
fillOpacity: "0.35"
|
|
2682
|
+
}),
|
|
2683
|
+
/* @__PURE__ */ jsx("path", {
|
|
2684
|
+
d: "M32.5221 6.47128H30.8828V8.11102H32.5221V6.47128Z",
|
|
2685
|
+
fill: "white",
|
|
2686
|
+
fillOpacity: "0.35"
|
|
2687
|
+
}),
|
|
2688
|
+
/* @__PURE__ */ jsx("path", {
|
|
2689
|
+
d: "M22.3014 13.184H17.5664V14.8237H22.3014V13.184Z",
|
|
2690
|
+
fill: "white",
|
|
2691
|
+
fillOpacity: "0.35"
|
|
2692
|
+
}),
|
|
2693
|
+
/* @__PURE__ */ jsx("path", {
|
|
2694
|
+
d: "M15.9167 13.184H14.2773V14.8237H15.9167V13.184Z",
|
|
2695
|
+
fill: "white",
|
|
2696
|
+
fillOpacity: "0.35"
|
|
2697
|
+
}),
|
|
2698
|
+
/* @__PURE__ */ jsx("path", {
|
|
2699
|
+
d: "M30.041 13.184H23.9375V14.8237H30.041V13.184Z",
|
|
2700
|
+
fill: "white",
|
|
2701
|
+
fillOpacity: "0.35"
|
|
2702
|
+
}),
|
|
2703
|
+
/* @__PURE__ */ jsx("path", {
|
|
2704
|
+
d: "M35.7121 15.8778V13.1766H31.6797V14.8237H34.0728V15.8778H35.7121Z",
|
|
2705
|
+
fill: "white",
|
|
2706
|
+
fillOpacity: "0.35"
|
|
2707
|
+
}),
|
|
2708
|
+
/* @__PURE__ */ jsx("path", {
|
|
2709
|
+
d: "M25.819 6.56622H24.1797V11.3024H25.819V6.56622Z",
|
|
2710
|
+
fill: "white",
|
|
2711
|
+
fillOpacity: "0.35"
|
|
2712
|
+
}),
|
|
2713
|
+
/* @__PURE__ */ jsx("path", {
|
|
2714
|
+
d: "M25.819 3.27948H24.1797V4.91922H25.819V3.27948Z",
|
|
2715
|
+
fill: "white",
|
|
2716
|
+
fillOpacity: "0.35"
|
|
2717
|
+
}),
|
|
2718
|
+
/* @__PURE__ */ jsx("path", {
|
|
2719
|
+
d: "M25.82 21.4338H27.0348V19.7941H25.82V16.7122H24.1953V24.7645H27.1958V23.0809H25.8346L25.82 21.4338Z",
|
|
2720
|
+
fill: "white",
|
|
2721
|
+
fillOpacity: "0.35"
|
|
2722
|
+
}),
|
|
2723
|
+
/* @__PURE__ */ jsx("path", {
|
|
2724
|
+
d: "M29.1874 19.5598H30.8267V18.3373H32.1587V16.7122H27.8555V18.352H29.1874V19.5598Z",
|
|
2725
|
+
fill: "white",
|
|
2726
|
+
fillOpacity: "0.35"
|
|
2727
|
+
}),
|
|
2728
|
+
/* @__PURE__ */ jsx("path", {
|
|
2729
|
+
d: "M33.2539 6.42268e-05V1.6398H37.3668V5.73182H39.0061V-0.00726318L33.2539 6.42268e-05Z",
|
|
2730
|
+
fill: "white",
|
|
2731
|
+
fillOpacity: "0.35"
|
|
2732
|
+
}),
|
|
2733
|
+
/* @__PURE__ */ jsx("path", {
|
|
2734
|
+
d: "M12.6408 1.63985H16.7391V0.00012207H11.0234V5.73188H12.6627L12.6408 1.63985Z",
|
|
2735
|
+
fill: "white",
|
|
2736
|
+
fillOpacity: "0.35"
|
|
2737
|
+
}),
|
|
2738
|
+
/* @__PURE__ */ jsx("path", {
|
|
2739
|
+
d: "M37.3678 26.3603H33.2695V28.0001H39.0071V22.261H37.3678V26.3603Z",
|
|
2740
|
+
fill: "white",
|
|
2741
|
+
fillOpacity: "0.35"
|
|
2742
|
+
}),
|
|
2743
|
+
/* @__PURE__ */ jsx("path", {
|
|
2744
|
+
d: "M12.6408 22.261H11.0234V28.0001H16.761V26.3603H12.6627L12.6408 22.261Z",
|
|
2745
|
+
fill: "white",
|
|
2746
|
+
fillOpacity: "0.35"
|
|
2747
|
+
})
|
|
2748
|
+
]
|
|
2749
|
+
}),
|
|
2750
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
|
|
2751
|
+
id: "clip0_2183_35009",
|
|
2752
|
+
children: /* @__PURE__ */ jsx("rect", {
|
|
2753
|
+
width: "28",
|
|
2754
|
+
height: "28",
|
|
2755
|
+
fill: "white",
|
|
2756
|
+
transform: "translate(11 0.00012207)"
|
|
2757
|
+
})
|
|
2758
|
+
}) })
|
|
2759
|
+
]
|
|
2760
|
+
});
|
|
2571
2761
|
};
|
|
2572
2762
|
const BarcodeSVG = () => {
|
|
2573
|
-
return /* @__PURE__ */
|
|
2763
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
2574
2764
|
width: "52",
|
|
2575
2765
|
height: "49",
|
|
2576
2766
|
viewBox: "0 0 52 49",
|
|
2577
2767
|
fill: "none",
|
|
2578
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2768
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2769
|
+
children: [
|
|
2770
|
+
/* @__PURE__ */ jsx("path", {
|
|
2771
|
+
d: "M1.42951 46.0001H4.77468C6.80309 46.0001 7.71928 44.9902 7.71928 43.6521C7.71928 42.3013 6.77326 41.5385 5.9082 41.4916V41.4064C6.70934 41.2018 7.37837 40.6564 7.37837 39.5655C7.37837 38.2743 6.48349 37.2728 4.62553 37.2728H1.42951V46.0001ZM2.74627 44.8709V42.0754H4.69371C5.75053 42.0754 6.41104 42.7572 6.41104 43.5882C6.41104 44.3211 5.91246 44.8709 4.64684 44.8709H2.74627ZM2.74627 41.0484V38.3936H4.54457C5.5886 38.3936 6.08718 38.9433 6.08718 39.6677C6.08718 40.5115 5.39684 41.0484 4.51048 41.0484H2.74627ZM11.0836 46.145C12.166 46.145 12.7754 45.5953 13.0183 45.1052H13.0694V46.0001H14.3137V41.6535C14.3137 39.7487 12.8137 39.3694 11.774 39.3694C10.5893 39.3694 9.4984 39.8467 9.07227 41.0399L10.2697 41.3126C10.4572 40.8481 10.9345 40.4007 11.791 40.4007C12.6135 40.4007 13.0353 40.8311 13.0353 41.5726V41.6024C13.0353 42.0669 12.5581 42.0584 11.3819 42.1947C10.1419 42.3396 8.87198 42.6635 8.87198 44.1507C8.87198 45.4376 9.83931 46.145 11.0836 46.145ZM11.3606 45.1223C10.6404 45.1223 10.1206 44.7984 10.1206 44.1677C10.1206 43.4859 10.7257 43.243 11.4629 43.145C11.8762 43.0896 12.8564 42.9788 13.0396 42.7956V43.6393C13.0396 44.4149 12.4217 45.1223 11.3606 45.1223ZM16.0108 46.0001H17.285V42.003C17.285 41.1464 17.9455 40.5285 18.8489 40.5285C19.1131 40.5285 19.4114 40.5754 19.5137 40.6052V39.3865C19.3858 39.3694 19.1344 39.3567 18.9725 39.3567C18.2054 39.3567 17.5492 39.7913 17.3105 40.4944H17.2424V39.4547H16.0108V46.0001ZM26.5492 46.1322C28.0961 46.1322 29.0975 45.2032 29.2381 43.9291H27.998C27.8361 44.6365 27.2864 45.0541 26.5577 45.0541C25.4796 45.0541 24.785 44.155 24.785 42.7274C24.785 41.3254 25.4924 40.4433 26.5577 40.4433C27.3674 40.4433 27.8617 40.9547 27.998 41.5683H29.2381C29.1017 40.2473 28.0236 39.3694 26.5364 39.3694C24.6912 39.3694 23.498 40.7586 23.498 42.7572C23.498 44.7302 24.6486 46.1322 26.5492 46.1322ZM33.3578 46.1322C35.2029 46.1322 36.4089 44.7814 36.4089 42.7572C36.4089 40.7203 35.2029 39.3694 33.3578 39.3694C31.5126 39.3694 30.3066 40.7203 30.3066 42.7572C30.3066 44.7814 31.5126 46.1322 33.3578 46.1322ZM33.362 45.0626C32.1561 45.0626 31.5936 44.0101 31.5936 42.753C31.5936 41.5001 32.1561 40.4348 33.362 40.4348C34.5595 40.4348 35.122 41.5001 35.122 42.753C35.122 44.0101 34.5595 45.0626 33.362 45.0626ZM40.2814 46.128C41.4746 46.128 41.9434 45.3993 42.1735 44.9817H42.28V46.0001H43.5243V37.2728H42.2502V40.5157H42.1735C41.9434 40.1109 41.5087 39.3694 40.29 39.3694C38.709 39.3694 37.5456 40.618 37.5456 42.7402C37.5456 44.8581 38.6919 46.128 40.2814 46.128ZM40.5627 45.0413C39.4249 45.0413 38.8326 44.0399 38.8326 42.7274C38.8326 41.4277 39.4121 40.4518 40.5627 40.4518C41.6749 40.4518 42.2715 41.3595 42.2715 42.7274C42.2715 44.1038 41.6621 45.0413 40.5627 45.0413ZM48.1639 46.1322C49.5914 46.1322 50.6014 45.4291 50.8912 44.3638L49.6852 44.1464C49.4551 44.7643 48.9011 45.0797 48.1767 45.0797C47.0858 45.0797 46.3528 44.3723 46.3187 43.1109H50.9721V42.6592C50.9721 40.2942 49.5574 39.3694 48.0744 39.3694C46.2505 39.3694 45.0488 40.7586 45.0488 42.77C45.0488 44.8027 46.2335 46.1322 48.1639 46.1322ZM46.323 42.1564C46.3741 41.2274 47.0474 40.422 48.0829 40.422C49.0716 40.422 49.7193 41.155 49.7235 42.1564H46.323Z",
|
|
2772
|
+
fill: "white",
|
|
2773
|
+
fillOpacity: "0.35"
|
|
2774
|
+
}),
|
|
2775
|
+
/* @__PURE__ */ jsxs("g", {
|
|
2776
|
+
clipPath: "url(#clip0_2183_35008)",
|
|
2777
|
+
children: [
|
|
2778
|
+
/* @__PURE__ */ jsx("path", {
|
|
2779
|
+
d: "M47 9.00012H7V10.0001H47V9.00012Z",
|
|
2780
|
+
fill: "white",
|
|
2781
|
+
fillOpacity: "0.35"
|
|
2782
|
+
}),
|
|
2783
|
+
/* @__PURE__ */ jsx("path", {
|
|
2784
|
+
d: "M43 0.00012207H42V7.00012H43V0.00012207Z",
|
|
2785
|
+
fill: "white",
|
|
2786
|
+
fillOpacity: "0.35"
|
|
2787
|
+
}),
|
|
2788
|
+
/* @__PURE__ */ jsx("path", {
|
|
2789
|
+
d: "M43 12.0001H42V19.0001H43V12.0001Z",
|
|
2790
|
+
fill: "white",
|
|
2791
|
+
fillOpacity: "0.35"
|
|
2792
|
+
}),
|
|
2793
|
+
/* @__PURE__ */ jsx("path", {
|
|
2794
|
+
d: "M41 12.0001H39V19.0001H41V12.0001Z",
|
|
2795
|
+
fill: "white",
|
|
2796
|
+
fillOpacity: "0.35"
|
|
2797
|
+
}),
|
|
2798
|
+
/* @__PURE__ */ jsx("path", {
|
|
2799
|
+
d: "M41 0.00012207H39V7.00012H41V0.00012207Z",
|
|
2800
|
+
fill: "white",
|
|
2801
|
+
fillOpacity: "0.35"
|
|
2802
|
+
}),
|
|
2803
|
+
/* @__PURE__ */ jsx("path", {
|
|
2804
|
+
d: "M38 0.00012207H35V7.00012H38V0.00012207Z",
|
|
2805
|
+
fill: "white",
|
|
2806
|
+
fillOpacity: "0.35"
|
|
2807
|
+
}),
|
|
2808
|
+
/* @__PURE__ */ jsx("path", {
|
|
2809
|
+
d: "M38 12.0001H35V19.0001H38V12.0001Z",
|
|
2810
|
+
fill: "white",
|
|
2811
|
+
fillOpacity: "0.35"
|
|
2812
|
+
}),
|
|
2813
|
+
/* @__PURE__ */ jsx("path", {
|
|
2814
|
+
d: "M33 12.0001H31V19.0001H33V12.0001Z",
|
|
2815
|
+
fill: "white",
|
|
2816
|
+
fillOpacity: "0.35"
|
|
2817
|
+
}),
|
|
2818
|
+
/* @__PURE__ */ jsx("path", {
|
|
2819
|
+
d: "M33 0.00012207H31V7.00012H33V0.00012207Z",
|
|
2820
|
+
fill: "white",
|
|
2821
|
+
fillOpacity: "0.35"
|
|
2822
|
+
}),
|
|
2823
|
+
/* @__PURE__ */ jsx("path", {
|
|
2824
|
+
d: "M30 0.00012207H28V7.00012H30V0.00012207Z",
|
|
2825
|
+
fill: "white",
|
|
2826
|
+
fillOpacity: "0.35"
|
|
2827
|
+
}),
|
|
2828
|
+
/* @__PURE__ */ jsx("path", {
|
|
2829
|
+
d: "M30 12.0001H28V19.0001H30V12.0001Z",
|
|
2830
|
+
fill: "white",
|
|
2831
|
+
fillOpacity: "0.35"
|
|
2832
|
+
}),
|
|
2833
|
+
/* @__PURE__ */ jsx("path", {
|
|
2834
|
+
d: "M27 0.00012207H26V7.00012H27V0.00012207Z",
|
|
2835
|
+
fill: "white",
|
|
2836
|
+
fillOpacity: "0.35"
|
|
2837
|
+
}),
|
|
2838
|
+
/* @__PURE__ */ jsx("path", {
|
|
2839
|
+
d: "M27 12.0001H26V19.0001H27V12.0001Z",
|
|
2840
|
+
fill: "white",
|
|
2841
|
+
fillOpacity: "0.35"
|
|
2842
|
+
}),
|
|
2843
|
+
/* @__PURE__ */ jsx("path", {
|
|
2844
|
+
d: "M25 0.00012207H24V7.00012H25V0.00012207Z",
|
|
2845
|
+
fill: "white",
|
|
2846
|
+
fillOpacity: "0.35"
|
|
2847
|
+
}),
|
|
2848
|
+
/* @__PURE__ */ jsx("path", {
|
|
2849
|
+
d: "M25 12.0001H24V19.0001H25V12.0001Z",
|
|
2850
|
+
fill: "white",
|
|
2851
|
+
fillOpacity: "0.35"
|
|
2852
|
+
}),
|
|
2853
|
+
/* @__PURE__ */ jsx("path", {
|
|
2854
|
+
d: "M23 0.00012207H20V7.00012H23V0.00012207Z",
|
|
2855
|
+
fill: "white",
|
|
2856
|
+
fillOpacity: "0.35"
|
|
2857
|
+
}),
|
|
2858
|
+
/* @__PURE__ */ jsx("path", {
|
|
2859
|
+
d: "M23 12.0001H20V19.0001H23V12.0001Z",
|
|
2860
|
+
fill: "white",
|
|
2861
|
+
fillOpacity: "0.35"
|
|
2862
|
+
}),
|
|
2863
|
+
/* @__PURE__ */ jsx("path", {
|
|
2864
|
+
d: "M18 0.00012207H16V7.00012H18V0.00012207Z",
|
|
2865
|
+
fill: "white",
|
|
2866
|
+
fillOpacity: "0.35"
|
|
2867
|
+
}),
|
|
2868
|
+
/* @__PURE__ */ jsx("path", {
|
|
2869
|
+
d: "M18 12.0001H16V19.0001H18V12.0001Z",
|
|
2870
|
+
fill: "white",
|
|
2871
|
+
fillOpacity: "0.35"
|
|
2872
|
+
}),
|
|
2873
|
+
/* @__PURE__ */ jsx("path", {
|
|
2874
|
+
d: "M15 12.0001H14V19.0001H15V12.0001Z",
|
|
2875
|
+
fill: "white",
|
|
2876
|
+
fillOpacity: "0.35"
|
|
2877
|
+
}),
|
|
2878
|
+
/* @__PURE__ */ jsx("path", {
|
|
2879
|
+
d: "M15 0.00012207H14V7.00012H15V0.00012207Z",
|
|
2880
|
+
fill: "white",
|
|
2881
|
+
fillOpacity: "0.35"
|
|
2882
|
+
}),
|
|
2883
|
+
/* @__PURE__ */ jsx("path", {
|
|
2884
|
+
d: "M13 0.00012207H10V7.00012H13V0.00012207Z",
|
|
2885
|
+
fill: "white",
|
|
2886
|
+
fillOpacity: "0.35"
|
|
2887
|
+
}),
|
|
2888
|
+
/* @__PURE__ */ jsx("path", {
|
|
2889
|
+
d: "M13 12.0001H10V19.0001H13V12.0001Z",
|
|
2890
|
+
fill: "white",
|
|
2891
|
+
fillOpacity: "0.35"
|
|
2892
|
+
})
|
|
2893
|
+
]
|
|
2894
|
+
}),
|
|
2895
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
|
|
2896
|
+
id: "clip0_2183_35008",
|
|
2897
|
+
children: /* @__PURE__ */ jsx("rect", {
|
|
2898
|
+
width: "40",
|
|
2899
|
+
height: "20",
|
|
2900
|
+
fill: "white",
|
|
2901
|
+
transform: "translate(7 0.00012207)"
|
|
2902
|
+
})
|
|
2903
|
+
}) })
|
|
2904
|
+
]
|
|
2905
|
+
});
|
|
2681
2906
|
};
|
|
2682
2907
|
const RFIDCardSVG = () => {
|
|
2683
|
-
return /* @__PURE__ */
|
|
2908
|
+
return /* @__PURE__ */ jsxs("svg", {
|
|
2684
2909
|
width: "58",
|
|
2685
2910
|
height: "49",
|
|
2686
2911
|
viewBox: "0 0 58 49",
|
|
2687
2912
|
fill: "none",
|
|
2688
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
|
|
2913
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2914
|
+
children: [
|
|
2915
|
+
/* @__PURE__ */ jsx("path", {
|
|
2916
|
+
d: "M1.27131 46.0001H2.58807V42.6976H4.37784C4.40767 42.6976 4.43324 42.6976 4.46307 42.6976L6.2358 46.0001H7.7358L5.80114 42.4675C6.87074 42.0711 7.40341 41.1805 7.40341 40.0086C7.40341 38.4021 6.40625 37.2728 4.3821 37.2728H1.27131V46.0001ZM2.58807 41.564V38.4021H4.24148C5.54119 38.4021 6.07812 39.02 6.07812 40.0086C6.07812 40.993 5.54119 41.564 4.25852 41.564H2.58807ZM10.3224 37.2728H9.00568V46.0001H10.3224V37.2728ZM12.2401 46.0001H13.5568V42.1947H17.2642V41.0655H13.5568V38.4064H17.652V37.2728H12.2401V46.0001ZM22.0966 46.0001C24.7557 46.0001 26.294 44.351 26.294 41.6237C26.294 38.9092 24.7557 37.2728 22.1861 37.2728H19.2713V46.0001H22.0966ZM20.5881 44.8496V38.4234H22.1051C24.0142 38.4234 24.9986 39.5655 24.9986 41.6237C24.9986 43.6905 24.0142 44.8496 22.0241 44.8496H20.5881ZM38.3558 40.1109C38.0575 38.2444 36.5959 37.1535 34.7507 37.1535C32.4922 37.1535 30.826 38.8453 30.826 41.6365C30.826 44.4277 32.4837 46.1194 34.7507 46.1194C36.6683 46.1194 38.0703 44.9177 38.3558 43.1919L37.0263 43.1876C36.8004 44.3041 35.8629 44.9177 34.7592 44.9177C33.2635 44.9177 32.1342 43.7714 32.1342 41.6365C32.1342 39.5186 33.2592 38.3552 34.7635 38.3552C35.8757 38.3552 36.8089 38.9817 37.0263 40.1109H38.3558ZM41.734 46.145C42.8164 46.145 43.4258 45.5953 43.6687 45.1052H43.7198V46.0001H44.9641V41.6535C44.9641 39.7487 43.4641 39.3694 42.4244 39.3694C41.2397 39.3694 40.1488 39.8467 39.7227 41.0399L40.9201 41.3126C41.1076 40.8481 41.5849 40.4007 42.4414 40.4007C43.2638 40.4007 43.6857 40.8311 43.6857 41.5726V41.6024C43.6857 42.0669 43.2085 42.0584 42.0323 42.1947C40.7923 42.3396 39.5224 42.6635 39.5224 44.1507C39.5224 45.4376 40.4897 46.145 41.734 46.145ZM42.011 45.1223C41.2908 45.1223 40.771 44.7984 40.771 44.1677C40.771 43.4859 41.3761 43.243 42.1133 43.145C42.5266 43.0896 43.5067 42.9788 43.69 42.7956V43.6393C43.69 44.4149 43.0721 45.1223 42.011 45.1223ZM46.6612 46.0001H47.9354V42.003C47.9354 41.1464 48.5959 40.5285 49.4993 40.5285C49.7635 40.5285 50.0618 40.5754 50.1641 40.6052V39.3865C50.0362 39.3694 49.7848 39.3567 49.6229 39.3567C48.8558 39.3567 48.1996 39.7913 47.9609 40.4944H47.8928V39.4547H46.6612V46.0001ZM53.4826 46.128C54.6758 46.128 55.1445 45.3993 55.3746 44.9817H55.4812V46.0001H56.7255V37.2728H55.4513V40.5157H55.3746C55.1445 40.1109 54.7099 39.3694 53.4911 39.3694C51.9102 39.3694 50.7468 40.618 50.7468 42.7402C50.7468 44.8581 51.8931 46.128 53.4826 46.128ZM53.7638 45.0413C52.6261 45.0413 52.0337 44.0399 52.0337 42.7274C52.0337 41.4277 52.6133 40.4518 53.7638 40.4518C54.8761 40.4518 55.4727 41.3595 55.4727 42.7274C55.4727 44.1038 54.8633 45.0413 53.7638 45.0413Z",
|
|
2917
|
+
fill: "white",
|
|
2918
|
+
fillOpacity: "0.35"
|
|
2919
|
+
}),
|
|
2920
|
+
/* @__PURE__ */ jsx("g", {
|
|
2921
|
+
clipPath: "url(#clip0_2183_35036)",
|
|
2922
|
+
children: /* @__PURE__ */ jsx("path", {
|
|
2923
|
+
d: "M19.5998 19.9927H38.3927C40.7673 19.9927 41.9924 18.8037 41.9924 16.5215V3.47133C41.9924 1.1892 40.7673 0.00012207 38.3927 0.00012207H19.5998C17.2251 0.00012207 16 1.17443 16 3.47133V16.5215C16 18.8037 17.2251 19.9927 19.5998 19.9927ZM19.7283 17.8953C19.5129 17.9222 19.294 17.9003 19.0886 17.8313C18.8832 17.7623 18.6969 17.648 18.544 17.4973C18.3911 17.3466 18.2759 17.1635 18.2072 16.9623C18.1385 16.761 18.1181 16.547 18.1478 16.3369V3.64857C18.1197 3.43872 18.1411 3.22539 18.2104 3.02486C18.2796 2.82432 18.3949 2.6419 18.5474 2.49154C18.6999 2.34118 18.8856 2.22684 19.0903 2.15729C19.295 2.08774 19.5132 2.06481 19.7283 2.09024H38.2641C38.4792 2.06481 38.6975 2.08774 38.9022 2.15729C39.1068 2.22684 39.2925 2.34118 39.445 2.49154C39.5975 2.6419 39.7128 2.82432 39.7821 3.02486C39.8513 3.22539 39.8728 3.43872 39.8447 3.64857V16.3369C39.8728 16.5468 39.8513 16.7601 39.7821 16.9606C39.7128 17.1612 39.5975 17.3436 39.445 17.494C39.2925 17.6443 39.1068 17.7586 38.9022 17.8282C38.6975 17.8977 38.4792 17.9207 38.2641 17.8953H19.7283ZM24.5759 9.93366C24.9027 9.92527 25.2245 9.85291 25.5221 9.72085C25.8197 9.58879 26.0872 9.39974 26.3086 9.16488C26.5301 8.93003 26.701 8.65415 26.8112 8.3536C26.9215 8.05305 26.9689 7.73395 26.9505 7.41519C26.9123 6.96482 26.7407 6.53505 26.4565 6.1784C26.1723 5.82175 25.7879 5.55367 25.3502 5.40689C24.9125 5.26012 24.4405 5.24101 23.9919 5.3519C23.5433 5.46279 23.1375 5.69889 22.8241 6.03133C22.5106 6.36378 22.3031 6.77819 22.2269 7.22393C22.1506 7.66967 22.2089 8.12746 22.3947 8.54135C22.5805 8.95524 22.8858 9.3073 23.2731 9.55456C23.6605 9.80182 24.1132 9.93355 24.5759 9.93366ZM31.6091 6.54371H37.3112C37.4038 6.54577 37.4958 6.52936 37.5817 6.49548C37.6676 6.46159 37.7455 6.41095 37.8106 6.34665C37.8757 6.28235 37.9268 6.20575 37.9605 6.12153C37.9943 6.03731 38.0101 5.94725 38.007 5.85686C38.008 5.76802 37.9907 5.67989 37.9559 5.5978C37.9211 5.51571 37.8697 5.44134 37.8047 5.37922C37.7396 5.31709 37.6624 5.2685 37.5776 5.23634C37.4927 5.20419 37.4021 5.18914 37.3112 5.19214H31.6469C31.556 5.18914 31.4654 5.20419 31.3806 5.23634C31.2958 5.2685 31.2185 5.31709 31.1535 5.37922C31.0885 5.44134 31.037 5.51571 31.0022 5.5978C30.9674 5.67989 30.9501 5.76802 30.9511 5.85686C30.948 5.94725 30.9638 6.03731 30.9976 6.12153C31.0313 6.20575 31.0824 6.28235 31.1475 6.34665C31.2126 6.41095 31.2905 6.46159 31.3764 6.49548C31.4623 6.52936 31.5543 6.54577 31.6469 6.54371H31.6091ZM31.6091 10.6796H37.3112C37.4957 10.6796 37.6727 10.608 37.8032 10.4806C37.9337 10.3532 38.007 10.1803 38.007 10.0001C38.007 9.81992 37.9337 9.64709 37.8032 9.51967C37.6727 9.39224 37.4957 9.32065 37.3112 9.32065H31.6469C31.4624 9.32065 31.2854 9.39224 31.1549 9.51967C31.0245 9.64709 30.9511 9.81992 30.9511 10.0001C30.9511 10.1803 31.0245 10.3532 31.1549 10.4806C31.2854 10.608 31.4624 10.6796 31.6469 10.6796H31.6091ZM20.4392 14.8081H28.7126C28.796 14.8129 28.8794 14.7998 28.9571 14.7699C29.0347 14.74 29.1048 14.6939 29.1624 14.6349C29.22 14.5758 29.2637 14.5052 29.2905 14.428C29.3173 14.3508 29.3265 14.2688 29.3176 14.1877C29.3176 13.1907 27.8051 10.6501 24.5759 10.6501C21.3467 10.6501 19.8494 13.1907 19.8494 14.1877C19.8394 14.2678 19.8473 14.3489 19.8728 14.4256C19.8983 14.5023 19.9406 14.5726 19.9967 14.6317C20.0529 14.6908 20.1216 14.7372 20.198 14.7677C20.2745 14.7981 20.3567 14.8119 20.4392 14.8081ZM31.6091 14.8081H37.3112C37.4021 14.8111 37.4927 14.7961 37.5776 14.7639C37.6624 14.7318 37.7396 14.6832 37.8047 14.621C37.8697 14.5589 37.9211 14.4846 37.9559 14.4025C37.9907 14.3204 38.008 14.2322 38.007 14.1434C38.009 14.0529 37.9925 13.963 37.9584 13.8789C37.9243 13.7947 37.8734 13.718 37.8086 13.6534C37.7438 13.5887 37.6664 13.5373 37.581 13.5023C37.4956 13.4672 37.4039 13.4492 37.3112 13.4492H31.6469C31.5542 13.4492 31.4625 13.4672 31.3771 13.5023C31.2917 13.5373 31.2143 13.5887 31.1495 13.6534C31.0847 13.718 31.0338 13.7947 30.9997 13.8789C30.9656 13.963 30.9491 14.0529 30.9511 14.1434C30.9501 14.2322 30.9674 14.3204 31.0022 14.4025C31.037 14.4846 31.0885 14.5589 31.1535 14.621C31.2185 14.6832 31.2958 14.7318 31.3806 14.7639C31.4654 14.7961 31.556 14.8111 31.6469 14.8081H31.6091Z",
|
|
2924
|
+
fill: "white",
|
|
2925
|
+
fillOpacity: "0.35"
|
|
2926
|
+
})
|
|
2927
|
+
}),
|
|
2928
|
+
/* @__PURE__ */ jsx("defs", { children: /* @__PURE__ */ jsx("clipPath", {
|
|
2929
|
+
id: "clip0_2183_35036",
|
|
2930
|
+
children: /* @__PURE__ */ jsx("rect", {
|
|
2931
|
+
width: "26",
|
|
2932
|
+
height: "20",
|
|
2933
|
+
fill: "white",
|
|
2934
|
+
transform: "translate(16 0.00012207)"
|
|
2935
|
+
})
|
|
2936
|
+
}) })
|
|
2937
|
+
]
|
|
2938
|
+
});
|
|
2703
2939
|
};
|
|
2704
2940
|
const AcLogoSVG = () => {
|
|
2705
|
-
return /* @__PURE__ */
|
|
2941
|
+
return /* @__PURE__ */ jsx("svg", {
|
|
2706
2942
|
width: "98",
|
|
2707
2943
|
height: "50",
|
|
2708
2944
|
viewBox: "0 0 98 50",
|
|
2709
2945
|
fill: "none",
|
|
2710
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
|
|
2740
|
-
|
|
2741
|
-
|
|
2946
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2947
|
+
children: /* @__PURE__ */ jsxs("g", {
|
|
2948
|
+
opacity: "0.25",
|
|
2949
|
+
children: [
|
|
2950
|
+
/* @__PURE__ */ jsx("path", {
|
|
2951
|
+
d: "M66.8428 0.85791C66.2106 2.00303 65.7681 3.21177 65.3888 4.48413C64.883 4.54775 64.4405 4.61136 63.998 4.67498C63.5555 4.80222 63.0497 4.92945 62.6072 5.05669C61.8486 4.0388 61.0267 3.08453 60.0784 2.19388C59.4463 2.51197 58.8141 2.83006 58.1819 3.27539C58.3716 4.54774 58.6876 5.8201 59.1302 7.09246C58.7509 7.41055 58.4348 7.72864 58.1187 8.11034C57.8026 8.49205 57.4865 8.81014 57.2336 9.25547C56.0325 8.87376 54.7681 8.55567 53.5038 8.42843C53.1245 9.06461 52.8716 9.76441 52.6187 10.4006C53.5038 11.3549 54.5153 12.1819 55.59 12.8817C55.3371 13.8359 55.2107 14.7902 55.2739 15.7445C54.0727 16.1262 52.8716 16.6351 51.7969 17.2713C51.8601 17.9711 51.9865 18.7345 52.2394 19.4343C53.5038 19.6888 54.8313 19.7524 56.0957 19.6888C56.2854 20.1341 56.475 20.5794 56.7279 20.9611C56.9808 21.4065 57.2336 21.7882 57.4865 22.1699C56.7279 23.1878 56.0957 24.3329 55.5267 25.478C56.0325 25.987 56.5382 26.4959 57.1072 26.9412C58.2451 26.3687 59.383 25.6689 60.3945 24.8418C60.7738 25.0963 61.2164 25.3508 61.6589 25.5416C62.1014 25.7325 62.544 25.9233 62.9865 26.0506C62.9865 27.3229 63.1129 28.5953 63.3658 29.8676C64.0612 29.9949 64.8198 30.1221 65.5152 30.1221C66.1474 28.977 66.5899 27.7683 66.9692 26.4959C67.475 26.4323 67.9175 26.3687 68.36 26.305C68.8026 26.1778 69.3083 26.0506 69.7508 25.9233C70.5094 26.9412 71.3313 27.8955 72.2796 28.7861C72.9117 28.4681 73.5439 28.15 74.1761 27.7046C73.9864 26.4323 73.6704 25.1599 73.2278 23.8876C73.6071 23.5695 73.9232 23.2514 74.2393 22.8697C74.5554 22.488 74.8715 22.1699 75.1244 21.7246C76.3255 22.1063 77.5899 22.4244 78.8543 22.5516C79.2336 21.9154 79.4864 21.2156 79.7393 20.5794C78.8542 19.6252 77.8428 18.7981 76.7681 18.0983C77.0209 17.1441 77.1474 16.1898 77.0841 15.2355C78.2853 14.8538 79.4864 14.3449 80.5611 13.7087C80.4979 13.0089 80.3715 12.2455 80.1186 11.5457C78.8543 11.2912 77.5267 11.2276 76.2623 11.2912C76.0727 10.8459 75.883 10.4006 75.6301 10.0189C75.3773 9.57355 75.1244 9.19185 74.8715 8.81014C75.6301 7.79225 76.2623 6.64713 76.8313 5.50201C76.3255 4.99307 75.8198 4.48413 75.2508 4.0388C74.1129 4.61136 72.975 5.31116 71.9635 6.13819C71.5842 5.88372 71.1416 5.62925 70.6991 5.4384C70.2566 5.24754 69.8141 5.05669 69.3715 4.92945C69.3715 3.6571 69.2451 2.38474 68.9922 1.11238C68.2336 0.985147 67.5382 0.85791 66.8428 0.85791ZM68.929 9.25547C72.3428 10.8459 73.7968 14.8538 72.2796 18.2256C71.3945 20.1977 69.6244 21.5973 67.5382 22.0427C66.1474 22.2971 64.6934 22.1699 63.429 21.5973C60.0152 20.0069 58.5612 15.999 60.0784 12.6272C60.9635 10.6551 62.7336 9.25546 64.8198 8.81014C66.2106 8.49205 67.6646 8.6829 68.929 9.25547Z",
|
|
2952
|
+
fill: "white"
|
|
2953
|
+
}),
|
|
2954
|
+
/* @__PURE__ */ jsx("path", {
|
|
2955
|
+
d: "M6.03298 22.8689L5.02149 29.2307H0.722656L5.4008 1.55695H11.0904L15.7054 29.2307H11.3433L10.395 22.8689H6.03298ZM8.1824 7.85511L6.66517 18.7974H9.76286L8.1824 7.85511Z",
|
|
2956
|
+
fill: "white"
|
|
2957
|
+
}),
|
|
2958
|
+
/* @__PURE__ */ jsx("path", {
|
|
2959
|
+
d: "M23.861 1.49487L29.361 20.0713V1.49487H33.5334V29.1686H29.1081L23.4185 11.4193V29.1686H19.2461V1.49487H23.861Z",
|
|
2960
|
+
fill: "white"
|
|
2961
|
+
}),
|
|
2962
|
+
/* @__PURE__ */ jsx("path", {
|
|
2963
|
+
d: "M50.2261 22.5524C50.2261 24.3337 49.5307 25.9878 48.3295 27.1965C47.1284 28.4688 45.4847 29.1686 43.7146 29.1686H37.2031V1.49487H43.7146C45.4847 1.49487 47.1284 2.19467 48.3295 3.46703C49.5939 4.67577 50.2261 6.39345 50.2261 8.11113V22.5524ZM41.3123 25.0971H43.7778C44.41 25.0971 45.0422 24.8426 45.4215 24.3973C45.864 23.952 46.1169 23.3158 46.1169 22.6796V8.17475C46.1169 7.53857 45.864 6.90239 45.4215 6.45707C44.979 6.01174 44.41 5.75727 43.7778 5.75727H41.3123V25.0971Z",
|
|
2964
|
+
fill: "white"
|
|
2965
|
+
}),
|
|
2966
|
+
/* @__PURE__ */ jsx("path", {
|
|
2967
|
+
d: "M4.83183 49.0815C2.55598 49.0815 0.722656 47.2366 0.722656 45.01C0.722656 45.01 0.722656 45.01 0.722656 44.9464V35.5309C0.722656 33.2407 2.49276 31.3958 4.76862 31.3322C7.04447 31.2685 8.8778 33.1135 8.94101 35.4037C8.94101 35.4673 8.94101 35.4673 8.94101 35.5309V37.5031H6.28585V35.4673C6.28585 34.6403 5.59045 33.9405 4.76862 33.9405C4.38931 33.9405 4.01 34.0677 3.69391 34.3858C3.44104 34.6403 3.25138 35.022 3.25138 35.4673V44.9464C3.25138 45.7734 3.88356 46.4096 4.7054 46.4096C5.08471 46.4096 5.46402 46.2824 5.78011 45.9643C6.0962 45.7098 6.22263 45.3281 6.22263 44.8828V42.5289H8.94101V44.9464C8.94101 47.2366 7.10769 49.0815 4.83183 49.0815Z",
|
|
2968
|
+
fill: "white"
|
|
2969
|
+
}),
|
|
2970
|
+
/* @__PURE__ */ jsx("path", {
|
|
2971
|
+
d: "M30.1227 48.8867H23.1055V31.6463H25.6974V46.342H30.1859L30.1227 48.8867Z",
|
|
2972
|
+
fill: "white"
|
|
2973
|
+
}),
|
|
2974
|
+
/* @__PURE__ */ jsx("path", {
|
|
2975
|
+
d: "M48.0115 31.4559C50.2874 31.4559 52.1207 33.3009 52.1207 35.5911V45.0065C52.1207 47.2968 50.2874 49.1417 48.0115 49.1417C46.9368 49.1417 45.8621 48.6964 45.1035 47.933C44.3449 47.1696 43.9023 46.088 43.9023 45.0065V35.5911C43.9023 33.3009 45.7357 31.4559 48.0115 31.4559ZM49.4023 35.5275C49.4023 34.7004 48.7701 34.0643 47.9483 34.0643C47.569 34.0643 47.1897 34.1915 46.8736 34.5096C46.5575 34.7641 46.4311 35.1458 46.4311 35.5911V45.0065C46.4311 45.3883 46.5575 45.77 46.8736 46.0244C47.1265 46.2789 47.5058 46.4698 47.9483 46.4698C48.7701 46.4698 49.4023 45.8336 49.4023 45.0065V35.5275Z",
|
|
2976
|
+
fill: "white"
|
|
2977
|
+
}),
|
|
2978
|
+
/* @__PURE__ */ jsx("path", {
|
|
2979
|
+
d: "M70.4451 49.0776C68.2325 49.0776 66.3992 47.2963 66.3359 45.0061V31.6463H68.8647V45.0061C68.8647 45.3878 68.9911 45.7695 69.3072 46.0876C69.5601 46.342 69.9394 46.5329 70.3819 46.5329C71.2037 46.5329 71.8359 45.8967 71.8359 45.0697V31.7099H74.5543V45.0697C74.5543 46.1512 74.1118 47.2327 73.3531 47.9961C72.5945 48.6959 71.583 49.1412 70.4451 49.0776Z",
|
|
2980
|
+
fill: "white"
|
|
2981
|
+
}),
|
|
2982
|
+
/* @__PURE__ */ jsx("path", {
|
|
2983
|
+
d: "M97.0021 44.7516C97.0021 45.8331 96.5595 46.9146 95.8009 47.678C95.0423 48.4414 94.0308 48.8867 92.9561 48.8867H88.9102V31.6463H92.9561C94.0308 31.6463 95.1055 32.0916 95.8009 32.855C96.5595 33.6185 97.0021 34.7 97.0021 35.7815V44.7516ZM91.5021 46.342H93.0826C93.4619 46.342 93.8412 46.2148 94.094 45.8967C94.3469 45.6422 94.5366 45.2605 94.5366 44.8152V35.7815C94.5366 35.3998 94.4101 35.018 94.094 34.7C93.8412 34.4455 93.4619 34.2546 93.0826 34.2546H91.5021V46.342Z",
|
|
2984
|
+
fill: "white"
|
|
2985
|
+
}),
|
|
2986
|
+
/* @__PURE__ */ jsx("path", {
|
|
2987
|
+
d: "M87.2555 1.49487L92.7555 20.0713V1.49487H96.9279V29.1686H92.5027L86.813 11.4193V29.1686H82.6406V1.49487H87.2555Z",
|
|
2988
|
+
fill: "white"
|
|
2989
|
+
})
|
|
2990
|
+
]
|
|
2991
|
+
})
|
|
2992
|
+
});
|
|
2742
2993
|
};
|
|
2743
2994
|
//#endregion
|
|
2744
2995
|
//#region src/components/loginModal.tsx
|
|
@@ -2747,22 +2998,23 @@ const LoginModal$1 = ({ open, subtitle, scope, redirectPath = "/", onSuccess, on
|
|
|
2747
2998
|
const getTitle = () => {
|
|
2748
2999
|
return subtitle !== void 0 ? subtitle : t("loginFormText");
|
|
2749
3000
|
};
|
|
2750
|
-
return /* @__PURE__ */
|
|
3001
|
+
return /* @__PURE__ */ jsx(Dialog$1, {
|
|
2751
3002
|
open,
|
|
2752
3003
|
onClose: onCancel,
|
|
2753
3004
|
disableEscapeKeyDown: true,
|
|
2754
3005
|
sx: { ".MuiPaper-root": { borderRadius: "20px" } },
|
|
2755
|
-
"data-testid": dataTestID || "sdk.login-modal"
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
3006
|
+
"data-testid": dataTestID || "sdk.login-modal",
|
|
3007
|
+
children: /* @__PURE__ */ jsx(DialogContent$1, { children: /* @__PURE__ */ jsx(loginForm_default, {
|
|
3008
|
+
title: getTitle(),
|
|
3009
|
+
scope,
|
|
3010
|
+
redirectPath,
|
|
3011
|
+
onSuccess,
|
|
3012
|
+
onFailure,
|
|
3013
|
+
onCancel,
|
|
3014
|
+
storeSession,
|
|
3015
|
+
"data-testid": dataTestID || "sdk.login-form"
|
|
3016
|
+
}) })
|
|
3017
|
+
});
|
|
2766
3018
|
};
|
|
2767
3019
|
var loginModal_default = observer(LoginModal$1);
|
|
2768
3020
|
//#endregion
|
|
@@ -2780,7 +3032,7 @@ const LoginModal = ({ isOpen, title, subtitle, scope, redirectPath, onSuccess, o
|
|
|
2780
3032
|
if (onCancel && typeof onCancel === "function") onCancel();
|
|
2781
3033
|
setOpen(false);
|
|
2782
3034
|
};
|
|
2783
|
-
return /* @__PURE__ */
|
|
3035
|
+
return /* @__PURE__ */ jsx(loginModal_default, {
|
|
2784
3036
|
open,
|
|
2785
3037
|
title,
|
|
2786
3038
|
subtitle,
|
|
@@ -2825,7 +3077,7 @@ const ExternalContent = ({ src }) => {
|
|
|
2825
3077
|
setIframeMounted(true);
|
|
2826
3078
|
return () => setIframeMounted(false);
|
|
2827
3079
|
}, [setIframeMounted]);
|
|
2828
|
-
return /* @__PURE__ */
|
|
3080
|
+
return /* @__PURE__ */ jsx(Iframe, {
|
|
2829
3081
|
id: "external-content-iframe",
|
|
2830
3082
|
src,
|
|
2831
3083
|
width: "100%",
|
|
@@ -3051,9 +3303,8 @@ const Header = observer(({ position, scrolled, showAcLogo, leadingText, title, t
|
|
|
3051
3303
|
handleMenuClose();
|
|
3052
3304
|
};
|
|
3053
3305
|
const renderUserCompanyLogo = () => {
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
src: logoUrl,
|
|
3306
|
+
return /* @__PURE__ */ jsx("img", {
|
|
3307
|
+
src: companyLogoUrl(),
|
|
3057
3308
|
alt: ""
|
|
3058
3309
|
});
|
|
3059
3310
|
};
|
|
@@ -3068,68 +3319,91 @@ const Header = observer(({ position, scrolled, showAcLogo, leadingText, title, t
|
|
|
3068
3319
|
};
|
|
3069
3320
|
const renderUserAvatar = () => {
|
|
3070
3321
|
const currentUser = userStore_default.currentUser;
|
|
3071
|
-
return /* @__PURE__ */
|
|
3322
|
+
return /* @__PURE__ */ jsx(Box$2, {
|
|
3072
3323
|
display: "inline-block",
|
|
3073
|
-
sx: headerStyles.userInfo
|
|
3074
|
-
|
|
3324
|
+
sx: headerStyles.userInfo,
|
|
3325
|
+
children: currentUser && `(${currentUser.name})`
|
|
3326
|
+
});
|
|
3075
3327
|
};
|
|
3076
3328
|
const renderContent = () => {
|
|
3077
3329
|
if (iframeContent && contentComponents) {
|
|
3078
3330
|
const Component = contentComponents[iframeContent.component];
|
|
3079
|
-
if (Component) return /* @__PURE__ */
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3331
|
+
if (Component) return /* @__PURE__ */ jsx(Box$2, {
|
|
3332
|
+
sx: headerStyles.content,
|
|
3333
|
+
children: /* @__PURE__ */ jsx(Component, {
|
|
3334
|
+
...iframeContent.props,
|
|
3335
|
+
onContentEvent
|
|
3336
|
+
})
|
|
3337
|
+
});
|
|
3083
3338
|
}
|
|
3084
|
-
if (content) return /* @__PURE__ */
|
|
3085
|
-
|
|
3339
|
+
if (content) return /* @__PURE__ */ jsx(Box$2, {
|
|
3340
|
+
sx: headerStyles.content,
|
|
3341
|
+
children: content
|
|
3342
|
+
});
|
|
3343
|
+
return /* @__PURE__ */ jsx(Typography$1, {
|
|
3086
3344
|
variant: "subtitle1",
|
|
3087
3345
|
align: "center",
|
|
3088
|
-
sx: headerStyles.title
|
|
3089
|
-
|
|
3346
|
+
sx: headerStyles.title,
|
|
3347
|
+
children: headerTitle
|
|
3348
|
+
});
|
|
3090
3349
|
};
|
|
3091
3350
|
const renderNav = () => {
|
|
3092
|
-
return navItems && /* @__PURE__ */
|
|
3351
|
+
return navItems && /* @__PURE__ */ jsx(Box$2, {
|
|
3093
3352
|
display: "flex",
|
|
3094
|
-
sx: headerStyles.nav
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3353
|
+
sx: headerStyles.nav,
|
|
3354
|
+
children: navItems.map((item) => /* @__PURE__ */ jsx(Button$1, {
|
|
3355
|
+
onClick: () => handleItemClick(item),
|
|
3356
|
+
endIcon: item.icon,
|
|
3357
|
+
sx: headerStyles.button,
|
|
3358
|
+
children: item.label
|
|
3359
|
+
}, item.label))
|
|
3360
|
+
});
|
|
3101
3361
|
};
|
|
3102
3362
|
const renderUser = () => {
|
|
3103
3363
|
const currentUser = userStore_default.getCurrentUserJS;
|
|
3104
|
-
return /* @__PURE__ */
|
|
3364
|
+
return /* @__PURE__ */ jsx(Box$2, {
|
|
3105
3365
|
display: "flex",
|
|
3106
|
-
sx: headerStyles.user
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3366
|
+
sx: headerStyles.user,
|
|
3367
|
+
children: currentUser ? /* @__PURE__ */ jsxs(Button$1, {
|
|
3368
|
+
id: "logout-button",
|
|
3369
|
+
onClick: handleLogout,
|
|
3370
|
+
sx: {
|
|
3371
|
+
...headerStyles.button,
|
|
3372
|
+
...headerStyles.logoutButton
|
|
3373
|
+
},
|
|
3374
|
+
"data-testid": "sdk.header-logout-button",
|
|
3375
|
+
children: [
|
|
3376
|
+
t("headerLogoutButton"),
|
|
3377
|
+
showCompanyLogo && renderUserCompanyLogo(),
|
|
3378
|
+
renderUserAvatar()
|
|
3379
|
+
]
|
|
3380
|
+
}) : /* @__PURE__ */ jsx(Button$1, {
|
|
3381
|
+
id: "login-button",
|
|
3382
|
+
onClick: () => navigate("/login"),
|
|
3383
|
+
sx: {
|
|
3384
|
+
...headerStyles.button,
|
|
3385
|
+
...headerStyles.loginButton
|
|
3386
|
+
},
|
|
3387
|
+
"data-testid": "sdk.header-login-button",
|
|
3388
|
+
children: t("headerLoginButton")
|
|
3389
|
+
})
|
|
3390
|
+
});
|
|
3124
3391
|
};
|
|
3125
3392
|
const renderAuthMenuItem = () => {
|
|
3126
|
-
if (!matchesMD) return userStore_default.getCurrentUserJS ? /* @__PURE__ */
|
|
3393
|
+
if (!matchesMD) return userStore_default.getCurrentUserJS ? /* @__PURE__ */ jsx(MenuItem, {
|
|
3394
|
+
onClick: handleLogout,
|
|
3395
|
+
children: t("headerLogoutButton")
|
|
3396
|
+
}) : /* @__PURE__ */ jsx(MenuItem, {
|
|
3397
|
+
onClick: () => navigate("/login"),
|
|
3398
|
+
children: t("headerLoginButton")
|
|
3399
|
+
});
|
|
3127
3400
|
};
|
|
3128
3401
|
const renderMenu = () => {
|
|
3129
|
-
return menuItems && /* @__PURE__ */
|
|
3402
|
+
return menuItems && /* @__PURE__ */ jsxs(Box$2, { children: [/* @__PURE__ */ jsx(IconButton$1, {
|
|
3130
3403
|
onClick: handleMenuOpen,
|
|
3131
|
-
"data-testid": "sdk.header.menu-toggle"
|
|
3132
|
-
|
|
3404
|
+
"data-testid": "sdk.header.menu-toggle",
|
|
3405
|
+
children: /* @__PURE__ */ jsx(MenuIcon, { style: menuButtonColor ? { color: menuButtonColor } : {} })
|
|
3406
|
+
}), /* @__PURE__ */ jsxs(Menu, {
|
|
3133
3407
|
id: "menu-appbar",
|
|
3134
3408
|
marginThreshold: 0,
|
|
3135
3409
|
anchorEl: menuAnchorEl,
|
|
@@ -3144,14 +3418,15 @@ const Header = observer(({ position, scrolled, showAcLogo, leadingText, title, t
|
|
|
3144
3418
|
},
|
|
3145
3419
|
open: Boolean(menuAnchorEl),
|
|
3146
3420
|
onClose: handleMenuClose,
|
|
3147
|
-
sx: headerStyles.menu
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3421
|
+
sx: headerStyles.menu,
|
|
3422
|
+
children: [menuItems.map((item) => /* @__PURE__ */ jsx(MenuItem, {
|
|
3423
|
+
onClick: () => handleItemClick(item),
|
|
3424
|
+
children: item.label
|
|
3425
|
+
}, item.label)), renderAuthMenuItem()]
|
|
3426
|
+
})] });
|
|
3152
3427
|
};
|
|
3153
3428
|
const scrolledBackground = typeof styles?.background === "string" ? styles.background : typeof headerStylesOverrides.root?.background === "string" ? headerStylesOverrides.root.background : "#1B2027";
|
|
3154
|
-
return /* @__PURE__ */
|
|
3429
|
+
return /* @__PURE__ */ jsx(AppBar, {
|
|
3155
3430
|
position,
|
|
3156
3431
|
elevation: 0,
|
|
3157
3432
|
sx: {
|
|
@@ -3159,43 +3434,61 @@ const Header = observer(({ position, scrolled, showAcLogo, leadingText, title, t
|
|
|
3159
3434
|
...position === "static" ? { marginTop: "-70px" } : {},
|
|
3160
3435
|
...scrolled || sidebarOpen ? { background: scrolledBackground } : {}
|
|
3161
3436
|
},
|
|
3162
|
-
"data-testid": dataTestID || "sdk.header"
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3437
|
+
"data-testid": dataTestID || "sdk.header",
|
|
3438
|
+
children: /* @__PURE__ */ jsxs(Toolbar, {
|
|
3439
|
+
variant: "dense",
|
|
3440
|
+
children: [
|
|
3441
|
+
sidebarEnabled && /* @__PURE__ */ jsx(IconButton$1, {
|
|
3442
|
+
size: "large",
|
|
3443
|
+
sx: {
|
|
3444
|
+
color: "rgba(255,255,255,0.85)",
|
|
3445
|
+
borderRight: "1px solid rgba(255,255,255,0.5)",
|
|
3446
|
+
...sidebarOpen && {
|
|
3447
|
+
color: "rgba(255,255,255,0.5)",
|
|
3448
|
+
borderTop: "1px solid rgba(255,255,255,0.5)",
|
|
3449
|
+
borderRightColor: "transparent"
|
|
3450
|
+
},
|
|
3451
|
+
"> svg": { transform: "rotate(180deg)" }
|
|
3452
|
+
},
|
|
3453
|
+
onClick: onSidebarToggle,
|
|
3454
|
+
"data-testid": "sdk.header.sidebar-toggle",
|
|
3455
|
+
children: /* @__PURE__ */ jsx(ViewSidebarRounded, {})
|
|
3456
|
+
}),
|
|
3457
|
+
showAcLogo && /* @__PURE__ */ jsx(Link$1, {
|
|
3458
|
+
to: "/",
|
|
3459
|
+
"data-testid": "sdk.header.logo",
|
|
3460
|
+
children: /* @__PURE__ */ jsx("img", {
|
|
3461
|
+
src: logo_default,
|
|
3462
|
+
alt: "AndonCloud",
|
|
3463
|
+
style: {
|
|
3464
|
+
display: "block",
|
|
3465
|
+
height: "50px",
|
|
3466
|
+
margin: "0 8px"
|
|
3467
|
+
}
|
|
3468
|
+
})
|
|
3469
|
+
}),
|
|
3470
|
+
headerLeadingText && /* @__PURE__ */ jsx(Typography$1, {
|
|
3471
|
+
variant: "subtitle1",
|
|
3472
|
+
sx: headerStyles.leadingText,
|
|
3473
|
+
children: headerLeadingText
|
|
3474
|
+
}),
|
|
3475
|
+
renderContent(),
|
|
3476
|
+
renderNav(),
|
|
3477
|
+
showUserSection && matchesMD && renderUser(),
|
|
3478
|
+
/* @__PURE__ */ jsx(AccessTimeIcon, {}),
|
|
3479
|
+
/* @__PURE__ */ jsx(Typography$1, {
|
|
3480
|
+
variant: "body1",
|
|
3481
|
+
align: "center",
|
|
3482
|
+
style: {
|
|
3483
|
+
width: "5rem",
|
|
3484
|
+
padding: "0 5px"
|
|
3485
|
+
},
|
|
3486
|
+
children: currentTime.toLocaleTimeString()
|
|
3487
|
+
}),
|
|
3488
|
+
renderMenu()
|
|
3489
|
+
]
|
|
3490
|
+
})
|
|
3491
|
+
});
|
|
3199
3492
|
});
|
|
3200
3493
|
//#endregion
|
|
3201
3494
|
//#region src/components/sidebarMenu.styles.js
|
|
@@ -3251,52 +3544,71 @@ const SidebarMenu = ({ open, items, width, styles, listStyles, itemStyles, subit
|
|
|
3251
3544
|
else window.location.href = url;
|
|
3252
3545
|
};
|
|
3253
3546
|
const renderSubitems = (items) => {
|
|
3254
|
-
return /* @__PURE__ */
|
|
3547
|
+
return /* @__PURE__ */ jsx(List, {
|
|
3255
3548
|
component: "div",
|
|
3256
3549
|
disablePadding: true,
|
|
3257
|
-
sx: sidebarMenuStyles.subList
|
|
3258
|
-
|
|
3259
|
-
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3550
|
+
sx: sidebarMenuStyles.subList,
|
|
3551
|
+
children: items.map(({ action, url, redirect, icon, label }) => /* @__PURE__ */ jsx(ListItem, {
|
|
3552
|
+
sx: sidebarMenuStyles.subitem,
|
|
3553
|
+
disablePadding: true,
|
|
3554
|
+
children: /* @__PURE__ */ jsxs(ListItemButton, {
|
|
3555
|
+
sx: sidebarMenuStyles.subitemButton,
|
|
3556
|
+
onClick: () => handleItemClick(action, url, redirect),
|
|
3557
|
+
"data-testid": `sdk.sidebar.subitem-${label}`,
|
|
3558
|
+
children: [icon && /* @__PURE__ */ jsx(ListItemIcon, {
|
|
3559
|
+
sx: sidebarMenuStyles.itemIcon,
|
|
3560
|
+
children: icon
|
|
3561
|
+
}), /* @__PURE__ */ jsx(ListItemText, {
|
|
3562
|
+
primary: label,
|
|
3563
|
+
sx: sidebarMenuStyles.subitemText
|
|
3564
|
+
})]
|
|
3565
|
+
})
|
|
3566
|
+
}, label))
|
|
3567
|
+
});
|
|
3270
3568
|
};
|
|
3271
3569
|
const renderItems = () => {
|
|
3272
|
-
return items.map(({ action, url, redirect, icon, label, items }, i) => /* @__PURE__ */
|
|
3570
|
+
return items.map(({ action, url, redirect, icon, label, items }, i) => /* @__PURE__ */ jsxs(React.Fragment, { children: [/* @__PURE__ */ jsx(ListItem, {
|
|
3273
3571
|
sx: sidebarMenuStyles.item,
|
|
3274
|
-
disablePadding: true
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3572
|
+
disablePadding: true,
|
|
3573
|
+
children: /* @__PURE__ */ jsxs(ListItemButton, {
|
|
3574
|
+
onClick: () => {
|
|
3575
|
+
if (items?.length) setOpenedItems((current) => {
|
|
3576
|
+
current[i] = !current[i];
|
|
3577
|
+
return { ...current };
|
|
3578
|
+
});
|
|
3579
|
+
else handleItemClick(action, url, redirect);
|
|
3580
|
+
},
|
|
3581
|
+
"data-testid": `sdk.sidebar.item-${label}`,
|
|
3582
|
+
children: [
|
|
3583
|
+
icon && /* @__PURE__ */ jsx(ListItemIcon, {
|
|
3584
|
+
sx: sidebarMenuStyles.itemIcon,
|
|
3585
|
+
children: icon
|
|
3586
|
+
}),
|
|
3587
|
+
/* @__PURE__ */ jsx(ListItemText, {
|
|
3588
|
+
primary: label,
|
|
3589
|
+
sx: sidebarMenuStyles.itemText
|
|
3590
|
+
}),
|
|
3591
|
+
!!items?.length && (openedItems[i] ? /* @__PURE__ */ jsx(ExpandLess, {}) : /* @__PURE__ */ jsx(ExpandMore, {}))
|
|
3592
|
+
]
|
|
3593
|
+
})
|
|
3594
|
+
}), !!items?.length && /* @__PURE__ */ jsx(Collapse, {
|
|
3288
3595
|
in: openedItems[i],
|
|
3289
3596
|
timeout: "auto",
|
|
3290
|
-
unmountOnExit: true
|
|
3291
|
-
|
|
3597
|
+
unmountOnExit: true,
|
|
3598
|
+
children: renderSubitems(items)
|
|
3599
|
+
})] }, label));
|
|
3292
3600
|
};
|
|
3293
|
-
return /* @__PURE__ */
|
|
3601
|
+
return /* @__PURE__ */ jsx(Drawer, {
|
|
3294
3602
|
sx: sidebarMenuStyles.root,
|
|
3295
3603
|
variant: "persistent",
|
|
3296
3604
|
anchor: "left",
|
|
3297
3605
|
open,
|
|
3298
|
-
"data-testid": "sdk.sidebar.drawer"
|
|
3299
|
-
|
|
3606
|
+
"data-testid": "sdk.sidebar.drawer",
|
|
3607
|
+
children: /* @__PURE__ */ jsx(List, {
|
|
3608
|
+
sx: sidebarMenuStyles.list,
|
|
3609
|
+
children: renderItems()
|
|
3610
|
+
})
|
|
3611
|
+
});
|
|
3300
3612
|
};
|
|
3301
3613
|
SidebarMenu.propTypes = {
|
|
3302
3614
|
open: PropTypes.bool,
|
|
@@ -3375,25 +3687,38 @@ const SidePanel = ({ open, onClose, title, mainContent, asideContent, width, mai
|
|
|
3375
3687
|
mainContentStyles,
|
|
3376
3688
|
asideContentStyles
|
|
3377
3689
|
});
|
|
3378
|
-
return /* @__PURE__ */
|
|
3690
|
+
return /* @__PURE__ */ jsxs(Drawer, {
|
|
3379
3691
|
sx: sidePanelStyles.root,
|
|
3380
3692
|
variant: "persistent",
|
|
3381
3693
|
anchor: "right",
|
|
3382
3694
|
open,
|
|
3383
|
-
"data-testid": "sdk.side-panel"
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3695
|
+
"data-testid": "sdk.side-panel",
|
|
3696
|
+
children: [/* @__PURE__ */ jsxs(Stack, {
|
|
3697
|
+
direction: "row",
|
|
3698
|
+
justifyContent: "space-between",
|
|
3699
|
+
alignItems: "center",
|
|
3700
|
+
sx: sidePanelStyles.header,
|
|
3701
|
+
children: [/* @__PURE__ */ jsx(Typography, {
|
|
3702
|
+
variant: "h6",
|
|
3703
|
+
fontSize: 18,
|
|
3704
|
+
children: title
|
|
3705
|
+
}), /* @__PURE__ */ jsx(IconButton, {
|
|
3706
|
+
color: "secondary",
|
|
3707
|
+
onClick: onClose,
|
|
3708
|
+
"data-testid": "sdk.side-panel.close",
|
|
3709
|
+
children: /* @__PURE__ */ jsx(CloseIcon, {})
|
|
3710
|
+
})]
|
|
3711
|
+
}), /* @__PURE__ */ jsxs(Box, {
|
|
3712
|
+
sx: sidePanelStyles.contentWrapper,
|
|
3713
|
+
children: [/* @__PURE__ */ jsx(Box, {
|
|
3714
|
+
sx: sidePanelStyles.mainContent,
|
|
3715
|
+
children: mainContent
|
|
3716
|
+
}), asideContent && /* @__PURE__ */ jsx(Box, {
|
|
3717
|
+
sx: sidePanelStyles.asideContent,
|
|
3718
|
+
children: asideContent
|
|
3719
|
+
})]
|
|
3720
|
+
})]
|
|
3721
|
+
});
|
|
3397
3722
|
};
|
|
3398
3723
|
SidePanel.propTypes = {
|
|
3399
3724
|
enabled: PropTypes.bool,
|
|
@@ -3481,7 +3806,7 @@ const Container = ({ children, headerProps, sidebarMenuProps, sidePanelProps, st
|
|
|
3481
3806
|
sidebarMenuProps?.enabled,
|
|
3482
3807
|
sidebarOpen
|
|
3483
3808
|
]);
|
|
3484
|
-
return /* @__PURE__ */
|
|
3809
|
+
return /* @__PURE__ */ jsxs(BaseContainer, {
|
|
3485
3810
|
ref: (node) => {
|
|
3486
3811
|
if (node) setScrollTarget(node);
|
|
3487
3812
|
},
|
|
@@ -3491,27 +3816,34 @@ const Container = ({ children, headerProps, sidebarMenuProps, sidePanelProps, st
|
|
|
3491
3816
|
...baseStyles.root,
|
|
3492
3817
|
...styles
|
|
3493
3818
|
},
|
|
3494
|
-
"data-testid": dataTestID || "sdk.container"
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3819
|
+
"data-testid": dataTestID || "sdk.container",
|
|
3820
|
+
children: [
|
|
3821
|
+
!isEmbeddedMode && /* @__PURE__ */ jsxs(React.Fragment, { children: [/* @__PURE__ */ jsx(Header, {
|
|
3822
|
+
scrolled,
|
|
3823
|
+
showAcLogo: true,
|
|
3824
|
+
sidebarEnabled: sidebarMenuProps?.enabled,
|
|
3825
|
+
sidebarOpen,
|
|
3826
|
+
onSidebarToggle: () => setSidebarOpen((current) => !current),
|
|
3827
|
+
...headerProps
|
|
3828
|
+
}), sidebarMenuProps?.enabled && /* @__PURE__ */ jsx(SidebarMenu, {
|
|
3829
|
+
open: sidebarOpen,
|
|
3830
|
+
items: sidebarMenuProps.items,
|
|
3831
|
+
width: sidebarWidth
|
|
3832
|
+
})] }),
|
|
3833
|
+
/* @__PURE__ */ jsx(Main, {
|
|
3834
|
+
open: sidebarOpen,
|
|
3835
|
+
sidebarWidth,
|
|
3836
|
+
children: externalUrl ? /* @__PURE__ */ jsx(ExternalContent, { src: externalUrl }) : children
|
|
3837
|
+
}),
|
|
3838
|
+
sidePanelProps?.enabled && /* @__PURE__ */ jsx(SidePanel, {
|
|
3839
|
+
...sidePanelProps,
|
|
3840
|
+
width: sidePanelWidth,
|
|
3841
|
+
mainContentWidth: sidePanelMainContentWidth,
|
|
3842
|
+
asideContentWidth: sidePanelAsideContentWidth
|
|
3843
|
+
}),
|
|
3844
|
+
!isEmbeddedMode && /* @__PURE__ */ jsx(Box, { sx: baseStyles.overlay })
|
|
3845
|
+
]
|
|
3846
|
+
});
|
|
3515
3847
|
};
|
|
3516
3848
|
Container.propTypes = {
|
|
3517
3849
|
children: PropTypes.any,
|
|
@@ -3578,7 +3910,7 @@ const LoginPage = ({ redirectPath }) => {
|
|
|
3578
3910
|
const toggleLocale = () => {
|
|
3579
3911
|
i18n.changeLanguage(i18n.language === "pl" ? "en" : "pl");
|
|
3580
3912
|
};
|
|
3581
|
-
return /* @__PURE__ */
|
|
3913
|
+
return /* @__PURE__ */ jsx(Container, {
|
|
3582
3914
|
headerProps: {
|
|
3583
3915
|
position: "fixed",
|
|
3584
3916
|
leadingText: "AndonCloud Software",
|
|
@@ -3591,16 +3923,21 @@ const LoginPage = ({ redirectPath }) => {
|
|
|
3591
3923
|
buttonColor: "white"
|
|
3592
3924
|
}
|
|
3593
3925
|
},
|
|
3594
|
-
styles: { overflowY: "auto" }
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3926
|
+
styles: { overflowY: "auto" },
|
|
3927
|
+
children: /* @__PURE__ */ jsx(Box$2, {
|
|
3928
|
+
display: "flex",
|
|
3929
|
+
height: "100%",
|
|
3930
|
+
alignItems: "center",
|
|
3931
|
+
justifyContent: "center",
|
|
3932
|
+
children: /* @__PURE__ */ jsx(Card$1, {
|
|
3933
|
+
sx: { borderRadius: "20px" },
|
|
3934
|
+
children: /* @__PURE__ */ jsx(CardContent$1, { children: /* @__PURE__ */ jsx(loginForm_default, {
|
|
3935
|
+
title: t("loginFormText"),
|
|
3936
|
+
redirectPath
|
|
3937
|
+
}) })
|
|
3938
|
+
})
|
|
3939
|
+
})
|
|
3940
|
+
});
|
|
3604
3941
|
};
|
|
3605
3942
|
LoginPage.propTypes = { redirectPath: PropTypes.string };
|
|
3606
3943
|
LoginPage.defaultProps = { redirectPath: "/" };
|
|
@@ -3611,7 +3948,7 @@ const LoginRedirect = () => {
|
|
|
3611
3948
|
const { grantType, redirectPath } = useAuthConfig();
|
|
3612
3949
|
const login = useLogin("read write");
|
|
3613
3950
|
const navigate = useNavigate();
|
|
3614
|
-
if (grantType === "password") return /* @__PURE__ */
|
|
3951
|
+
if (grantType === "password") return /* @__PURE__ */ jsx(LoginPage_default, { redirectPath });
|
|
3615
3952
|
navigate("/");
|
|
3616
3953
|
login();
|
|
3617
3954
|
return null;
|
|
@@ -3620,14 +3957,18 @@ const LoginRedirect = () => {
|
|
|
3620
3957
|
//#region src/components/router.js
|
|
3621
3958
|
const SentryRoutes = Sentry.withSentryReactRouterV6Routing(Routes);
|
|
3622
3959
|
const Router = ({ children }) => {
|
|
3623
|
-
return /* @__PURE__ */
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3960
|
+
return /* @__PURE__ */ jsxs(BrowserRouter, { children: [/* @__PURE__ */ jsx(IframeNavigation, {}), /* @__PURE__ */ jsxs(SentryRoutes, { children: [
|
|
3961
|
+
children,
|
|
3962
|
+
/* @__PURE__ */ jsx(Route, {
|
|
3963
|
+
exact: true,
|
|
3964
|
+
path: "/login",
|
|
3965
|
+
element: /* @__PURE__ */ jsx(LoginRedirect, {})
|
|
3966
|
+
}),
|
|
3967
|
+
/* @__PURE__ */ jsx(Route, {
|
|
3968
|
+
path: "/oauth2/redirect",
|
|
3969
|
+
element: /* @__PURE__ */ jsx(AuthRedirect, {})
|
|
3970
|
+
})
|
|
3971
|
+
] })] });
|
|
3631
3972
|
};
|
|
3632
3973
|
//#endregion
|
|
3633
3974
|
//#region src/components/app.js
|
|
@@ -3680,27 +4021,46 @@ const App = observer(({ children, baseUrl, authProps, gtmProps, i18nProps, sentr
|
|
|
3680
4021
|
useEffect(() => {
|
|
3681
4022
|
if (authEnabled && status !== "unknown") appStore_default.setAppReady();
|
|
3682
4023
|
}, [authEnabled, status]);
|
|
3683
|
-
return /* @__PURE__ */
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
4024
|
+
return /* @__PURE__ */ jsxs(ThemeProvider, {
|
|
4025
|
+
theme: muiTheme,
|
|
4026
|
+
children: [
|
|
4027
|
+
/* @__PURE__ */ jsx(CssBaseline, {}),
|
|
4028
|
+
/* @__PURE__ */ jsx(GlobalStyles, { styles: {
|
|
4029
|
+
"::-webkit-scrollbar": { width: "6px" },
|
|
4030
|
+
"::-webkit-scrollbar-track": { backgroundColor: "transparent" },
|
|
4031
|
+
"::-webkit-scrollbar-thumb": {
|
|
4032
|
+
borderRadius: "3px",
|
|
4033
|
+
backgroundColor: "rgba(255, 255, 255, 0.25)"
|
|
4034
|
+
}
|
|
4035
|
+
} }),
|
|
4036
|
+
/* @__PURE__ */ jsxs(Sentry.ErrorBoundary, {
|
|
4037
|
+
fallback: (props) => /* @__PURE__ */ jsx(ErrorPage, {
|
|
4038
|
+
appVersion: metaProps.appVersion,
|
|
4039
|
+
apiVersion: metaProps.apiVersion,
|
|
4040
|
+
...props
|
|
4041
|
+
}),
|
|
4042
|
+
children: [/* @__PURE__ */ jsx(Toaster, {}), /* @__PURE__ */ jsx(AuthConfigProvider, {
|
|
4043
|
+
config: {
|
|
4044
|
+
baseUrl,
|
|
4045
|
+
...authProps
|
|
4046
|
+
},
|
|
4047
|
+
children: /* @__PURE__ */ jsx(StoreProvider, { children: /* @__PURE__ */ jsx(I18nextProvider, {
|
|
4048
|
+
i18n: i18n_default,
|
|
4049
|
+
children: /* @__PURE__ */ jsx(MetaInfoProvider, {
|
|
4050
|
+
info: metaProps,
|
|
4051
|
+
children: /* @__PURE__ */ jsxs(DisplayProvider, { children: [sessionStore.networkError ? /* @__PURE__ */ jsx(NetworkError, { error: sessionStore.networkError }) : appStore_default.appReady ? /* @__PURE__ */ jsx(React.Fragment, { children: /* @__PURE__ */ jsx(Router, { children: /* @__PURE__ */ jsx(Route, {
|
|
4052
|
+
path: "*",
|
|
4053
|
+
element: /* @__PURE__ */ jsx(ModalProvider, { children })
|
|
4054
|
+
}) }) }) : /* @__PURE__ */ jsx(LoaderPage, {}), /* @__PURE__ */ jsx(Footer, {
|
|
4055
|
+
appVersion: metaProps.appVersion,
|
|
4056
|
+
apiVersion: metaProps.apiVersion
|
|
4057
|
+
})] })
|
|
4058
|
+
})
|
|
4059
|
+
}) })
|
|
4060
|
+
})]
|
|
4061
|
+
})
|
|
4062
|
+
]
|
|
4063
|
+
});
|
|
3704
4064
|
});
|
|
3705
4065
|
App.propTypes = {
|
|
3706
4066
|
children: PropTypes.any.isRequired,
|
|
@@ -3772,9 +4132,9 @@ const StyledCheckbox = styled$1(Checkbox$1)(({ theme }) => ({
|
|
|
3772
4132
|
//#endregion
|
|
3773
4133
|
//#region src/core/ui/Checkbox/Checkbox.tsx
|
|
3774
4134
|
const Checkbox = (props) => {
|
|
3775
|
-
return /* @__PURE__ */
|
|
3776
|
-
icon: /* @__PURE__ */
|
|
3777
|
-
checkedIcon: /* @__PURE__ */
|
|
4135
|
+
return /* @__PURE__ */ jsx(StyledCheckbox, {
|
|
4136
|
+
icon: /* @__PURE__ */ jsx(UncheckedIcon$1, {}),
|
|
4137
|
+
checkedIcon: /* @__PURE__ */ jsx(CheckedIcon$1, {}),
|
|
3778
4138
|
...props
|
|
3779
4139
|
});
|
|
3780
4140
|
};
|
|
@@ -3810,9 +4170,9 @@ const StyledRadio = styled$1(Radio$1)(({ theme }) => ({
|
|
|
3810
4170
|
//#endregion
|
|
3811
4171
|
//#region src/core/ui/Radio/Radio.tsx
|
|
3812
4172
|
const Radio = (props) => {
|
|
3813
|
-
return /* @__PURE__ */
|
|
3814
|
-
icon: /* @__PURE__ */
|
|
3815
|
-
checkedIcon: /* @__PURE__ */
|
|
4173
|
+
return /* @__PURE__ */ jsx(StyledRadio, {
|
|
4174
|
+
icon: /* @__PURE__ */ jsx(UncheckedIcon, {}),
|
|
4175
|
+
checkedIcon: /* @__PURE__ */ jsx(CheckedIcon, {}),
|
|
3816
4176
|
...props
|
|
3817
4177
|
});
|
|
3818
4178
|
};
|
|
@@ -3830,7 +4190,7 @@ const StyledRadioGroup = styled$1(RadioGroup$1)(({ theme }) => ({
|
|
|
3830
4190
|
//#endregion
|
|
3831
4191
|
//#region src/core/ui/RadioGroup/RadioGroup.tsx
|
|
3832
4192
|
const RadioGroup = (props) => {
|
|
3833
|
-
return /* @__PURE__ */
|
|
4193
|
+
return /* @__PURE__ */ jsx(StyledRadioGroup, { ...props });
|
|
3834
4194
|
};
|
|
3835
4195
|
//#endregion
|
|
3836
4196
|
//#region src/hooks/useHeaderContentEvent.ts
|
|
@@ -3886,10 +4246,10 @@ async function authFetch(url, options = {}) {
|
|
|
3886
4246
|
toast$1.error(i18n_default.t("forbiddenErrorMessage"));
|
|
3887
4247
|
break;
|
|
3888
4248
|
case 500:
|
|
3889
|
-
toast$1.error(
|
|
4249
|
+
toast$1.error(createElement(Fragment, null, createElement(Typography, { mr: textResponse ? 2 : 0 }, i18n_default.t("somethingWentWrongMessage")), textResponse && createElement(Tooltip, {
|
|
3890
4250
|
title: textResponse,
|
|
3891
4251
|
arrow: true,
|
|
3892
|
-
children:
|
|
4252
|
+
children: createElement(HelpOutlineIcon)
|
|
3893
4253
|
})));
|
|
3894
4254
|
break;
|
|
3895
4255
|
default: break;
|