sixseconds-modules 1.6.86 → 1.6.88

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