sixseconds-modules 1.6.85 → 1.6.87
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.cjs.js +147 -135
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +147 -135
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -10038,8 +10038,9 @@ function Language({
|
|
|
10038
10038
|
/* @__PURE__ */ jsxRuntime.jsx(
|
|
10039
10039
|
"img",
|
|
10040
10040
|
{
|
|
10041
|
-
|
|
10041
|
+
"data-cookiecategory": "essential",
|
|
10042
10042
|
"data-src": lang2?.flag || IMAGES.DefaultLang,
|
|
10043
|
+
src: lang2?.flag || IMAGES.DefaultLang,
|
|
10043
10044
|
alt: lang2?.label,
|
|
10044
10045
|
style: {
|
|
10045
10046
|
width: "40px !important",
|
|
@@ -10863,6 +10864,13 @@ const Header = ({
|
|
|
10863
10864
|
}, 5e3);
|
|
10864
10865
|
}
|
|
10865
10866
|
}, [isMenu, selectedInterFaceLang?.id, state.isLoading]);
|
|
10867
|
+
React.useEffect(() => {
|
|
10868
|
+
if (typeof window !== "undefined") {
|
|
10869
|
+
document.querySelectorAll('img[data-src][data-cookiecategory="essential"]').forEach((img) => {
|
|
10870
|
+
img.src = img.getAttribute("data-src");
|
|
10871
|
+
});
|
|
10872
|
+
}
|
|
10873
|
+
}, [typeof window !== "undefined"]);
|
|
10866
10874
|
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
10867
10875
|
/* @__PURE__ */ jsxRuntime.jsx(SubHeaderStyled, { sx, children: /* @__PURE__ */ jsxRuntime.jsxs(material.Container, { maxWidth: false, sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
|
|
10868
10876
|
/* @__PURE__ */ jsxRuntime.jsxs(material.Box, { sx: { display: "flex !important", alignItems: "center !important" }, children: [
|
|
@@ -10974,6 +10982,7 @@ const Header = ({
|
|
|
10974
10982
|
width: 40,
|
|
10975
10983
|
height: 30,
|
|
10976
10984
|
alt: "lang",
|
|
10985
|
+
"data-cookiecategory": "essential",
|
|
10977
10986
|
"data-src": selectedInterFaceLang?.flag || IMAGES.DefaultLang,
|
|
10978
10987
|
src: selectedInterFaceLang?.flag || IMAGES.DefaultLang
|
|
10979
10988
|
}
|
|
@@ -11360,13 +11369,13 @@ const PreviousLoginBanner = ({ t: t2, router, sx }) => {
|
|
|
11360
11369
|
height: "auto",
|
|
11361
11370
|
width: "100%",
|
|
11362
11371
|
backgroundColor: "#007FC0",
|
|
11363
|
-
p:
|
|
11372
|
+
p: 0.2,
|
|
11364
11373
|
color: "#fff",
|
|
11365
11374
|
mt: "70px",
|
|
11366
11375
|
textTransform: "capitalize",
|
|
11367
11376
|
...sx
|
|
11368
11377
|
},
|
|
11369
|
-
children: /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { variant: "h6", align: "center", children: [
|
|
11378
|
+
children: /* @__PURE__ */ jsxRuntime.jsxs(material.Typography, { variant: "h6", sx: { fontSize: "14px" }, align: "center", children: [
|
|
11370
11379
|
"Go back to",
|
|
11371
11380
|
" ",
|
|
11372
11381
|
/* @__PURE__ */ jsxRuntime.jsx("strong", { onClick: handleAutoLogin, style: { cursor: "pointer", textDecoration: "underline" }, children: previousLoginDetails.name || previousLoginDetails.email || previousLoginDetails.id }),
|
|
@@ -11377,154 +11386,157 @@ const PreviousLoginBanner = ({ t: t2, router, sx }) => {
|
|
|
11377
11386
|
);
|
|
11378
11387
|
};
|
|
11379
11388
|
const App = () => {
|
|
11380
|
-
return /* @__PURE__ */ jsxRuntime.
|
|
11381
|
-
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
|
|
11386
|
-
|
|
11387
|
-
notificationAccessApps: [
|
|
11388
|
-
{
|
|
11389
|
-
name: "all"
|
|
11389
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11390
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
11391
|
+
Header,
|
|
11392
|
+
{
|
|
11393
|
+
isAccessAppMenu: true,
|
|
11394
|
+
isMenu: true,
|
|
11395
|
+
updateInterfaceLang: () => {
|
|
11390
11396
|
},
|
|
11391
|
-
|
|
11392
|
-
name: "tools"
|
|
11393
|
-
}
|
|
11394
|
-
],
|
|
11395
|
-
userData: {
|
|
11396
|
-
userprofile: "",
|
|
11397
|
-
email: "sdf",
|
|
11398
|
-
role: "",
|
|
11399
|
-
fullName: "sadf",
|
|
11400
|
-
bio: "",
|
|
11401
|
-
title: "",
|
|
11402
|
-
certId: 1,
|
|
11403
|
-
certProfileUrl: "",
|
|
11404
|
-
company: "",
|
|
11405
|
-
certBio: "",
|
|
11406
|
-
certOfferToHelp: "",
|
|
11407
|
-
appName: APP_NAMES.sso,
|
|
11408
|
-
appAccess: [
|
|
11397
|
+
notificationAccessApps: [
|
|
11409
11398
|
{
|
|
11410
|
-
name: "
|
|
11411
|
-
icon: "",
|
|
11412
|
-
link: "https://tools.6seconds.org",
|
|
11413
|
-
type: "app"
|
|
11399
|
+
name: "all"
|
|
11414
11400
|
},
|
|
11415
11401
|
{
|
|
11416
|
-
name: "
|
|
11417
|
-
|
|
11418
|
-
|
|
11419
|
-
|
|
11402
|
+
name: "tools"
|
|
11403
|
+
}
|
|
11404
|
+
],
|
|
11405
|
+
userData: {
|
|
11406
|
+
userprofile: "",
|
|
11407
|
+
email: "sdf",
|
|
11408
|
+
role: "",
|
|
11409
|
+
fullName: "sadf",
|
|
11410
|
+
bio: "",
|
|
11411
|
+
title: "",
|
|
11412
|
+
certId: 1,
|
|
11413
|
+
certProfileUrl: "",
|
|
11414
|
+
company: "",
|
|
11415
|
+
certBio: "",
|
|
11416
|
+
certOfferToHelp: "",
|
|
11417
|
+
appName: APP_NAMES.sso,
|
|
11418
|
+
appAccess: [
|
|
11419
|
+
{
|
|
11420
|
+
name: "Tools",
|
|
11421
|
+
icon: "",
|
|
11422
|
+
link: "https://tools.6seconds.org",
|
|
11423
|
+
type: "app"
|
|
11424
|
+
},
|
|
11425
|
+
{
|
|
11426
|
+
name: "Cards Home",
|
|
11427
|
+
icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/cardshome.svg",
|
|
11428
|
+
link: "https://cards.6seconds.org",
|
|
11429
|
+
type: "app"
|
|
11430
|
+
},
|
|
11431
|
+
{
|
|
11432
|
+
name: "Settings",
|
|
11433
|
+
icon: "/app-icons/Settings.svg",
|
|
11434
|
+
link: "/settings.svg",
|
|
11435
|
+
type: "app"
|
|
11436
|
+
},
|
|
11437
|
+
{
|
|
11438
|
+
name: "Translations",
|
|
11439
|
+
icon: "/translate.svg",
|
|
11440
|
+
link: "/translations",
|
|
11441
|
+
type: "app"
|
|
11442
|
+
}
|
|
11443
|
+
],
|
|
11444
|
+
certification: [],
|
|
11445
|
+
country: "",
|
|
11446
|
+
languages: [],
|
|
11447
|
+
areaOfWork: [],
|
|
11448
|
+
linkedInUrl: "",
|
|
11449
|
+
notificationCount: 10
|
|
11450
|
+
},
|
|
11451
|
+
interFaceLangList: [
|
|
11452
|
+
{
|
|
11453
|
+
id: 1,
|
|
11454
|
+
label: "Chinese",
|
|
11455
|
+
value: "zh",
|
|
11456
|
+
flag: ""
|
|
11420
11457
|
},
|
|
11421
11458
|
{
|
|
11422
|
-
|
|
11423
|
-
|
|
11424
|
-
|
|
11425
|
-
|
|
11459
|
+
id: 1,
|
|
11460
|
+
label: "English (US)",
|
|
11461
|
+
value: "en",
|
|
11462
|
+
flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277288.png"
|
|
11426
11463
|
},
|
|
11427
11464
|
{
|
|
11428
|
-
|
|
11429
|
-
|
|
11430
|
-
|
|
11431
|
-
|
|
11465
|
+
id: 1,
|
|
11466
|
+
label: "Spanish",
|
|
11467
|
+
value: 3,
|
|
11468
|
+
flag: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/flags/1735277337.png"
|
|
11432
11469
|
}
|
|
11433
11470
|
],
|
|
11434
|
-
|
|
11435
|
-
country: "",
|
|
11436
|
-
languages: [],
|
|
11437
|
-
areaOfWork: [],
|
|
11438
|
-
linkedInUrl: "",
|
|
11439
|
-
notificationCount: 10
|
|
11440
|
-
},
|
|
11441
|
-
interFaceLangList: [
|
|
11442
|
-
{
|
|
11471
|
+
selectedInterFaceLang: {
|
|
11443
11472
|
id: 1,
|
|
11444
11473
|
label: "Chinese",
|
|
11445
11474
|
value: "zh",
|
|
11446
11475
|
flag: ""
|
|
11447
11476
|
},
|
|
11448
|
-
{
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11477
|
+
logo: /* @__PURE__ */ jsxRuntime.jsx(Logo, {}),
|
|
11478
|
+
isNotification: true,
|
|
11479
|
+
totallyEndCustomComponent: "asdfsdf",
|
|
11480
|
+
extraMenuOptions: {
|
|
11481
|
+
components: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11482
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", spacing: 1, alignItems: "center", sx: { cursor: "pointer" }, children: [
|
|
11483
|
+
/* @__PURE__ */ jsxRuntime.jsx(SVG.CheckedPerson, {}),
|
|
11484
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11485
|
+
material.Typography,
|
|
11486
|
+
{
|
|
11487
|
+
variant: "h4",
|
|
11488
|
+
sx: {
|
|
11489
|
+
color: "#1A1919",
|
|
11490
|
+
fontSize: "16px",
|
|
11491
|
+
fontWeight: "400",
|
|
11492
|
+
m: 0
|
|
11493
|
+
},
|
|
11494
|
+
children: "extraMenuOptions"
|
|
11495
|
+
}
|
|
11496
|
+
) })
|
|
11497
|
+
] }) }),
|
|
11498
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", spacing: 1, alignItems: "center", sx: { cursor: "pointer" }, children: [
|
|
11499
|
+
/* @__PURE__ */ jsxRuntime.jsx(SVG.CheckedPerson, {}),
|
|
11500
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11501
|
+
material.Typography,
|
|
11502
|
+
{
|
|
11503
|
+
variant: "h4",
|
|
11504
|
+
sx: {
|
|
11505
|
+
color: "#1A1919",
|
|
11506
|
+
fontSize: "16px",
|
|
11507
|
+
fontWeight: "400",
|
|
11508
|
+
m: 0
|
|
11509
|
+
},
|
|
11510
|
+
children: "extraMenuOptions"
|
|
11511
|
+
}
|
|
11512
|
+
) })
|
|
11513
|
+
] }) }),
|
|
11514
|
+
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", spacing: 1, alignItems: "center", sx: { cursor: "pointer" }, children: [
|
|
11515
|
+
/* @__PURE__ */ jsxRuntime.jsx(SVG.CheckedPerson, {}),
|
|
11516
|
+
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11517
|
+
material.Typography,
|
|
11518
|
+
{
|
|
11519
|
+
variant: "h4",
|
|
11520
|
+
sx: {
|
|
11521
|
+
color: "#1A1919",
|
|
11522
|
+
fontSize: "16px",
|
|
11523
|
+
fontWeight: "400",
|
|
11524
|
+
m: 0
|
|
11525
|
+
},
|
|
11526
|
+
children: "extraMenuOptions"
|
|
11527
|
+
}
|
|
11528
|
+
) })
|
|
11529
|
+
] }) })
|
|
11530
|
+
] }),
|
|
11531
|
+
isViewProfile: true,
|
|
11532
|
+
isChangePassword: true,
|
|
11533
|
+
isEditProfile: true
|
|
11453
11534
|
},
|
|
11454
|
-
|
|
11455
|
-
|
|
11456
|
-
|
|
11457
|
-
|
|
11458
|
-
|
|
11459
|
-
}
|
|
11460
|
-
],
|
|
11461
|
-
selectedInterFaceLang: {
|
|
11462
|
-
id: 1,
|
|
11463
|
-
label: "Chinese",
|
|
11464
|
-
value: "zh",
|
|
11465
|
-
flag: ""
|
|
11466
|
-
},
|
|
11467
|
-
logo: /* @__PURE__ */ jsxRuntime.jsx(Logo, {}),
|
|
11468
|
-
isNotification: true,
|
|
11469
|
-
totallyEndCustomComponent: "asdfsdf",
|
|
11470
|
-
extraMenuOptions: {
|
|
11471
|
-
components: /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
11472
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", spacing: 1, alignItems: "center", sx: { cursor: "pointer" }, children: [
|
|
11473
|
-
/* @__PURE__ */ jsxRuntime.jsx(SVG.CheckedPerson, {}),
|
|
11474
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11475
|
-
material.Typography,
|
|
11476
|
-
{
|
|
11477
|
-
variant: "h4",
|
|
11478
|
-
sx: {
|
|
11479
|
-
color: "#1A1919",
|
|
11480
|
-
fontSize: "16px",
|
|
11481
|
-
fontWeight: "400",
|
|
11482
|
-
m: 0
|
|
11483
|
-
},
|
|
11484
|
-
children: "extraMenuOptions"
|
|
11485
|
-
}
|
|
11486
|
-
) })
|
|
11487
|
-
] }) }),
|
|
11488
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", spacing: 1, alignItems: "center", sx: { cursor: "pointer" }, children: [
|
|
11489
|
-
/* @__PURE__ */ jsxRuntime.jsx(SVG.CheckedPerson, {}),
|
|
11490
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11491
|
-
material.Typography,
|
|
11492
|
-
{
|
|
11493
|
-
variant: "h4",
|
|
11494
|
-
sx: {
|
|
11495
|
-
color: "#1A1919",
|
|
11496
|
-
fontSize: "16px",
|
|
11497
|
-
fontWeight: "400",
|
|
11498
|
-
m: 0
|
|
11499
|
-
},
|
|
11500
|
-
children: "extraMenuOptions"
|
|
11501
|
-
}
|
|
11502
|
-
) })
|
|
11503
|
-
] }) }),
|
|
11504
|
-
/* @__PURE__ */ jsxRuntime.jsx("li", { children: /* @__PURE__ */ jsxRuntime.jsxs(material.Stack, { direction: "row", spacing: 1, alignItems: "center", sx: { cursor: "pointer" }, children: [
|
|
11505
|
-
/* @__PURE__ */ jsxRuntime.jsx(SVG.CheckedPerson, {}),
|
|
11506
|
-
/* @__PURE__ */ jsxRuntime.jsx(material.Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
11507
|
-
material.Typography,
|
|
11508
|
-
{
|
|
11509
|
-
variant: "h4",
|
|
11510
|
-
sx: {
|
|
11511
|
-
color: "#1A1919",
|
|
11512
|
-
fontSize: "16px",
|
|
11513
|
-
fontWeight: "400",
|
|
11514
|
-
m: 0
|
|
11515
|
-
},
|
|
11516
|
-
children: "extraMenuOptions"
|
|
11517
|
-
}
|
|
11518
|
-
) })
|
|
11519
|
-
] }) })
|
|
11520
|
-
] }),
|
|
11521
|
-
isViewProfile: true,
|
|
11522
|
-
isChangePassword: true,
|
|
11523
|
-
isEditProfile: true
|
|
11524
|
-
},
|
|
11525
|
-
t: (s) => s
|
|
11526
|
-
}
|
|
11527
|
-
) });
|
|
11535
|
+
t: (s) => s
|
|
11536
|
+
}
|
|
11537
|
+
),
|
|
11538
|
+
/* @__PURE__ */ jsxRuntime.jsx(PreviousLoginBanner, { t: (s) => s })
|
|
11539
|
+
] });
|
|
11528
11540
|
};
|
|
11529
11541
|
exports.CookiesUtil = CookiesUtil;
|
|
11530
11542
|
exports.DangerDialog = DangerDialog;
|