sixseconds-modules 1.6.163 → 1.6.164
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/components/buttons/button.d.ts +2 -1
- package/dist/components/elements/logo.d.ts +1 -1
- package/dist/components/inputFields/labeledInput.d.ts +3 -1
- package/dist/index.cjs.js +315 -276
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +315 -276
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -11,18 +11,18 @@
|
|
|
11
11
|
}
|
|
12
12
|
})();
|
|
13
13
|
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
14
|
-
import { Box, Typography, Dialog, Stack as Stack$1, Button as Button$1, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Container, Badge, FormLabel, TextField, InputAdornment, styled as styled$1 } from "@mui/material";
|
|
15
14
|
import * as React from "react";
|
|
16
15
|
import React__default, { useRef, useEffect, useState, useCallback, useMemo, useLayoutEffect, createContext, forwardRef, createElement, useContext, Component } from "react";
|
|
17
16
|
import axios from "axios";
|
|
18
17
|
import Cookies from "js-cookie";
|
|
19
18
|
import MenuIcon from "@mui/icons-material/Menu";
|
|
19
|
+
import { Box, Typography, Dialog, Stack as Stack$1, Button as Button$1, IconButton, Grid, Avatar, Chip, Link, Divider, ClickAwayListener, useMediaQuery, MenuItem, AppBar, Container, Badge, FormLabel, TextField, InputAdornment, styled as styled$1 } from "@mui/material";
|
|
20
|
+
import CloseIcon from "@mui/icons-material/Close";
|
|
20
21
|
import toast from "react-hot-toast";
|
|
21
22
|
import { styled } from "@mui/material/styles";
|
|
22
23
|
import VisibilityOffIcon from "@mui/icons-material/VisibilityOff";
|
|
23
24
|
import CheckIcon from "@mui/icons-material/Check";
|
|
24
25
|
import ExitToAppTwoToneIcon from "@mui/icons-material/ExitToAppTwoTone";
|
|
25
|
-
import CloseIcon from "@mui/icons-material/Close";
|
|
26
26
|
import ContentCopyIcon from "@mui/icons-material/ContentCopy";
|
|
27
27
|
import LinkedIn from "@mui/icons-material/LinkedIn";
|
|
28
28
|
import PublicIcon from "@mui/icons-material/Public";
|
|
@@ -12876,7 +12876,7 @@ const DangerDialog = ({
|
|
|
12876
12876
|
fullWidth: false,
|
|
12877
12877
|
PaperProps: {
|
|
12878
12878
|
sx: {
|
|
12879
|
-
|
|
12879
|
+
minWidth: "400px",
|
|
12880
12880
|
borderRadius: "12px",
|
|
12881
12881
|
boxShadow: "0px 4px 20px rgba(0, 0, 0, 0.1)"
|
|
12882
12882
|
}
|
|
@@ -12885,7 +12885,7 @@ const DangerDialog = ({
|
|
|
12885
12885
|
open,
|
|
12886
12886
|
"aria-labelledby": "draggable-dialog-title",
|
|
12887
12887
|
children: /* @__PURE__ */ jsxs(Box, { sx: { p: 3 }, children: [
|
|
12888
|
-
/* @__PURE__ */ jsxs(Stack$1, { direction: "column", spacing: 2, alignItems: "
|
|
12888
|
+
/* @__PURE__ */ jsxs(Stack$1, { direction: "column", spacing: 2, alignItems: "flex-start", sx: { textAlign: "start", mb: 2 }, children: [
|
|
12889
12889
|
/* @__PURE__ */ jsx(ExitToAppTwoToneIcon, { sx: { color: "#d32f2f", fontSize: "48px" } }),
|
|
12890
12890
|
/* @__PURE__ */ jsx(
|
|
12891
12891
|
Typography,
|
|
@@ -12935,6 +12935,7 @@ const DangerDialog = ({
|
|
|
12935
12935
|
sx: {
|
|
12936
12936
|
background: "#d32f2f",
|
|
12937
12937
|
color: "#fff",
|
|
12938
|
+
width: "100%",
|
|
12938
12939
|
textTransform: "capitalize",
|
|
12939
12940
|
borderRadius: "8px",
|
|
12940
12941
|
fontSize: "14px",
|
|
@@ -13307,7 +13308,7 @@ const ProfileStyled = styled("div")(() => ({
|
|
|
13307
13308
|
fontSize: "16px",
|
|
13308
13309
|
color: "#5f6368",
|
|
13309
13310
|
fontWeight: "400",
|
|
13310
|
-
margin: "3px 3px",
|
|
13311
|
+
// margin: "3px 3px",
|
|
13311
13312
|
fontFamily: "'IBM Plex Sans', sans-serif"
|
|
13312
13313
|
},
|
|
13313
13314
|
"& .recant": {
|
|
@@ -13342,184 +13343,215 @@ const ProfileStyled = styled("div")(() => ({
|
|
|
13342
13343
|
}
|
|
13343
13344
|
}));
|
|
13344
13345
|
function ViewProfileDialog({ userData, setInitialState, isOpen }) {
|
|
13345
|
-
return /* @__PURE__ */
|
|
13346
|
+
return /* @__PURE__ */ jsx(
|
|
13346
13347
|
Dialog,
|
|
13347
13348
|
{
|
|
13348
|
-
fullWidth:
|
|
13349
|
-
|
|
13349
|
+
fullWidth: true,
|
|
13350
|
+
maxWidth: "md",
|
|
13351
|
+
PaperProps: {
|
|
13352
|
+
sx: {
|
|
13353
|
+
borderRadius: "16px",
|
|
13354
|
+
boxShadow: "0px 12px 32px rgba(0,0,0,0.12)"
|
|
13355
|
+
}
|
|
13356
|
+
},
|
|
13350
13357
|
onClose: () => handleCloseUtil(setInitialState),
|
|
13351
13358
|
open: isOpen,
|
|
13352
|
-
|
|
13353
|
-
|
|
13354
|
-
|
|
13355
|
-
|
|
13356
|
-
|
|
13357
|
-
{
|
|
13358
|
-
|
|
13359
|
-
|
|
13360
|
-
|
|
13361
|
-
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
|
|
13365
|
-
|
|
13366
|
-
|
|
13367
|
-
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
|
|
13371
|
-
|
|
13372
|
-
|
|
13373
|
-
|
|
13374
|
-
|
|
13375
|
-
|
|
13376
|
-
|
|
13377
|
-
border: "4px solid #0073b1",
|
|
13378
|
-
boxShadow: "0px 4px 12px rgba(0,0,0,0.1)",
|
|
13379
|
-
display: "inline-flex"
|
|
13380
|
-
}
|
|
13359
|
+
children: /* @__PURE__ */ jsxs(ProfileStyled, { children: [
|
|
13360
|
+
/* @__PURE__ */ jsx(Box, { sx: { display: "flex", justifyContent: "flex-end", p: 1.5 }, children: /* @__PURE__ */ jsx(
|
|
13361
|
+
IconButton,
|
|
13362
|
+
{
|
|
13363
|
+
onClick: () => setInitialState((p) => ({ ...p, toggles: { ...p.toggles, viewProfile: false } })),
|
|
13364
|
+
sx: {
|
|
13365
|
+
background: "#f5f5f5",
|
|
13366
|
+
color: "#5f6368",
|
|
13367
|
+
"&:hover": { background: "#eee", color: "#111" }
|
|
13368
|
+
},
|
|
13369
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { fontSize: "small" })
|
|
13370
|
+
}
|
|
13371
|
+
) }),
|
|
13372
|
+
/* @__PURE__ */ jsx(Box, { sx: { px: { xs: 3, sm: 5, md: 6 }, pb: { xs: 5, sm: 6 }, mt: 3 }, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: { xs: 4, md: 6 }, children: [
|
|
13373
|
+
/* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, md: 5, lg: 4, children: [
|
|
13374
|
+
/* @__PURE__ */ jsx(Box, { sx: { textAlign: "center", mb: 4 }, children: /* @__PURE__ */ jsx(
|
|
13375
|
+
Avatar,
|
|
13376
|
+
{
|
|
13377
|
+
src: userData?.userprofile,
|
|
13378
|
+
sx: {
|
|
13379
|
+
width: { xs: 130, sm: 150, md: 170 },
|
|
13380
|
+
height: { xs: 130, sm: 150, md: 170 },
|
|
13381
|
+
border: "4px solid #0073b1",
|
|
13382
|
+
boxShadow: "0px 8px 24px rgba(0, 115, 177, 0.15)",
|
|
13383
|
+
display: "inline-flex"
|
|
13381
13384
|
}
|
|
13382
|
-
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
|
|
13386
|
-
|
|
13387
|
-
|
|
13388
|
-
|
|
13389
|
-
|
|
13390
|
-
|
|
13391
|
-
|
|
13392
|
-
|
|
13393
|
-
|
|
13394
|
-
|
|
13395
|
-
|
|
13396
|
-
|
|
13397
|
-
|
|
13398
|
-
|
|
13399
|
-
|
|
13400
|
-
|
|
13385
|
+
}
|
|
13386
|
+
) }),
|
|
13387
|
+
/* @__PURE__ */ jsxs(Stack$1, { spacing: 3.5, sx: { ml: 2 }, children: [
|
|
13388
|
+
/* @__PURE__ */ jsxs(Stack$1, { spacing: 2.5, children: [
|
|
13389
|
+
Boolean(userData?.certification?.length) && /* @__PURE__ */ jsxs(Box, { children: [
|
|
13390
|
+
/* @__PURE__ */ jsx(
|
|
13391
|
+
Typography,
|
|
13392
|
+
{
|
|
13393
|
+
sx: {
|
|
13394
|
+
fontWeight: 700,
|
|
13395
|
+
color: "#1a1c1e",
|
|
13396
|
+
mb: 1.5,
|
|
13397
|
+
fontSize: "14px",
|
|
13398
|
+
textTransform: "uppercase",
|
|
13399
|
+
letterSpacing: "0.5px"
|
|
13400
|
+
},
|
|
13401
|
+
children: "Certifications"
|
|
13402
|
+
}
|
|
13403
|
+
),
|
|
13404
|
+
/* @__PURE__ */ jsx(Box, { sx: { display: "flex", flexWrap: "wrap", gap: 1 }, children: userData?.certification?.map((itm, idx) => /* @__PURE__ */ jsx(
|
|
13405
|
+
Chip,
|
|
13406
|
+
{
|
|
13407
|
+
variant: "outlined",
|
|
13408
|
+
sx: { borderRadius: "6px", height: "30px", fontWeight: 500, borderColor: "#e0e0e0" },
|
|
13409
|
+
label: itm
|
|
13410
|
+
},
|
|
13411
|
+
idx
|
|
13412
|
+
)) })
|
|
13401
13413
|
] }),
|
|
13402
|
-
/* @__PURE__ */ jsxs(
|
|
13414
|
+
Boolean(userData?.country) && /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 1 }, children: [
|
|
13403
13415
|
/* @__PURE__ */ jsx(
|
|
13404
|
-
|
|
13416
|
+
Typography,
|
|
13405
13417
|
{
|
|
13406
|
-
href: `https://cert.6seconds.org/cert-directory?id=${userData?.certId}`,
|
|
13407
|
-
LinkComponent: Link,
|
|
13408
|
-
target: "_blank",
|
|
13409
|
-
variant: "contained",
|
|
13410
|
-
disableElevation: true,
|
|
13411
13418
|
sx: {
|
|
13412
|
-
|
|
13413
|
-
|
|
13414
|
-
|
|
13415
|
-
|
|
13416
|
-
"
|
|
13417
|
-
backgroundColor: "#005a8b"
|
|
13418
|
-
}
|
|
13419
|
+
fontWeight: 700,
|
|
13420
|
+
color: "#1a1c1e",
|
|
13421
|
+
fontSize: "14px",
|
|
13422
|
+
textTransform: "uppercase",
|
|
13423
|
+
letterSpacing: "0.5px"
|
|
13419
13424
|
},
|
|
13420
|
-
children:
|
|
13425
|
+
children: "Location"
|
|
13421
13426
|
}
|
|
13422
13427
|
),
|
|
13428
|
+
/* @__PURE__ */ jsx(Typography, { sx: { color: "#5f6368", fontSize: "15px" }, children: userData?.country })
|
|
13429
|
+
] }),
|
|
13430
|
+
Boolean(userData?.languages?.length) && /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 1 }, children: [
|
|
13423
13431
|
/* @__PURE__ */ jsx(
|
|
13424
|
-
|
|
13432
|
+
Typography,
|
|
13425
13433
|
{
|
|
13426
|
-
variant: "contained",
|
|
13427
13434
|
sx: {
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
"
|
|
13433
|
-
|
|
13434
|
-
}
|
|
13435
|
+
fontWeight: 700,
|
|
13436
|
+
color: "#1a1c1e",
|
|
13437
|
+
mb: 1,
|
|
13438
|
+
fontSize: "14px",
|
|
13439
|
+
textTransform: "uppercase",
|
|
13440
|
+
letterSpacing: "0.5px"
|
|
13435
13441
|
},
|
|
13436
|
-
|
|
13437
|
-
LinkComponent: Link,
|
|
13438
|
-
href: userData?.linkedInUrl || "#",
|
|
13439
|
-
target: "_blank",
|
|
13440
|
-
children: /* @__PURE__ */ jsx(LinkedIn, { fontSize: "small" })
|
|
13442
|
+
children: "Languages"
|
|
13441
13443
|
}
|
|
13442
13444
|
),
|
|
13445
|
+
/* @__PURE__ */ jsx(Box, { sx: { display: "flex", flexWrap: "wrap", gap: 1 }, children: userData?.languages?.map((itm, idx) => /* @__PURE__ */ jsx(Chip, { size: "small", variant: "outlined", sx: { borderRadius: "4px" }, label: itm }, idx)) })
|
|
13446
|
+
] }),
|
|
13447
|
+
Boolean(userData?.areaOfWork?.length) && /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", justifyContent: "center", gap: 1 }, children: [
|
|
13443
13448
|
/* @__PURE__ */ jsx(
|
|
13444
|
-
|
|
13449
|
+
Typography,
|
|
13445
13450
|
{
|
|
13446
|
-
variant: "contained",
|
|
13447
|
-
disableElevation: true,
|
|
13448
|
-
href: `https://${userData?.certProfileUrl}`,
|
|
13449
|
-
LinkComponent: Link,
|
|
13450
|
-
target: "_blank",
|
|
13451
13451
|
sx: {
|
|
13452
|
-
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
|
|
13456
|
-
"
|
|
13457
|
-
|
|
13458
|
-
}
|
|
13452
|
+
fontWeight: 700,
|
|
13453
|
+
color: "#1a1c1e",
|
|
13454
|
+
mb: 1,
|
|
13455
|
+
fontSize: "14px",
|
|
13456
|
+
textTransform: "uppercase",
|
|
13457
|
+
letterSpacing: "0.5px"
|
|
13459
13458
|
},
|
|
13460
|
-
children:
|
|
13459
|
+
children: "Areas Of Work"
|
|
13461
13460
|
}
|
|
13462
|
-
)
|
|
13461
|
+
),
|
|
13462
|
+
/* @__PURE__ */ jsx(Box, { sx: { display: "flex", flexWrap: "wrap", gap: 1 }, children: userData?.areaOfWork?.map((itm, idx) => /* @__PURE__ */ jsx(Chip, { size: "small", variant: "outlined", sx: { borderRadius: "4px" }, label: itm }, idx)) })
|
|
13463
13463
|
] })
|
|
13464
|
-
] })
|
|
13464
|
+
] }),
|
|
13465
|
+
/* @__PURE__ */ jsx(Stack$1, { direction: "row", spacing: 1.5, justifyContent: { xs: "center", md: "center" }, children: [
|
|
13466
|
+
{
|
|
13467
|
+
icon: /* @__PURE__ */ jsx(ContentCopyIcon, { sx: { fontSize: "18px" } }),
|
|
13468
|
+
href: `https://cert.6seconds.org/cert-directory?id=${userData?.certId}`
|
|
13469
|
+
},
|
|
13470
|
+
{ icon: /* @__PURE__ */ jsx(LinkedIn, { sx: { fontSize: "20px" } }), href: userData?.linkedInUrl },
|
|
13471
|
+
{ icon: /* @__PURE__ */ jsx(PublicIcon, { sx: { fontSize: "18px" } }), href: `https://${userData?.certProfileUrl}` }
|
|
13472
|
+
].map((btn, i) => /* @__PURE__ */ jsx(
|
|
13473
|
+
Button$1,
|
|
13474
|
+
{
|
|
13475
|
+
href: btn.href || "#",
|
|
13476
|
+
LinkComponent: Link,
|
|
13477
|
+
target: "_blank",
|
|
13478
|
+
variant: "contained",
|
|
13479
|
+
disableElevation: true,
|
|
13480
|
+
sx: {
|
|
13481
|
+
minWidth: "42px",
|
|
13482
|
+
width: "42px",
|
|
13483
|
+
height: "42px",
|
|
13484
|
+
display: "flex",
|
|
13485
|
+
alignItems: "center",
|
|
13486
|
+
justifyContent: "center",
|
|
13487
|
+
background: "#0073b1",
|
|
13488
|
+
borderRadius: "10px",
|
|
13489
|
+
transition: "all 0.2s ease",
|
|
13490
|
+
"&:hover": { background: "#005a8b", transform: "translateY(-2px)" }
|
|
13491
|
+
},
|
|
13492
|
+
children: btn.icon
|
|
13493
|
+
},
|
|
13494
|
+
i
|
|
13495
|
+
)) })
|
|
13496
|
+
] })
|
|
13497
|
+
] }),
|
|
13498
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, md: 7, lg: 8, children: /* @__PURE__ */ jsxs(Stack$1, { spacing: 4, children: [
|
|
13499
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
13500
|
+
/* @__PURE__ */ jsx(
|
|
13501
|
+
Typography,
|
|
13502
|
+
{
|
|
13503
|
+
variant: "h3",
|
|
13504
|
+
sx: {
|
|
13505
|
+
fontSize: { xs: "28px", sm: "36px" },
|
|
13506
|
+
fontWeight: "800",
|
|
13507
|
+
color: "#1a1c1e",
|
|
13508
|
+
mb: 2,
|
|
13509
|
+
fontFamily: "'IBM Plex Sans', sans-serif"
|
|
13510
|
+
},
|
|
13511
|
+
children: userData?.fullName
|
|
13512
|
+
}
|
|
13513
|
+
),
|
|
13514
|
+
/* @__PURE__ */ jsx(Typography, { sx: { color: "#555", fontSize: "16px", lineHeight: "1.8", textAlign: "justify" }, children: userData?.bio })
|
|
13465
13515
|
] }),
|
|
13466
|
-
/* @__PURE__ */
|
|
13467
|
-
|
|
13468
|
-
|
|
13469
|
-
|
|
13470
|
-
|
|
13471
|
-
|
|
13472
|
-
|
|
13473
|
-
|
|
13474
|
-
|
|
13475
|
-
|
|
13476
|
-
|
|
13477
|
-
|
|
13478
|
-
|
|
13479
|
-
}
|
|
13480
|
-
),
|
|
13481
|
-
/* @__PURE__ */ jsx(Typography, { sx: { fontSize: "15px" }, children: userData?.bio }),
|
|
13482
|
-
/* @__PURE__ */ jsxs(Box, { children: [
|
|
13483
|
-
Boolean(userData?.title) && /* @__PURE__ */ jsxs(Box, { sx: { mb: 1 }, children: [
|
|
13484
|
-
/* @__PURE__ */ jsxs(Typography, { component: "span", sx: { fontWeight: 600, color: "#1a1c1e" }, children: [
|
|
13485
|
-
"Title:",
|
|
13486
|
-
" "
|
|
13487
|
-
] }),
|
|
13488
|
-
userData?.title
|
|
13489
|
-
] }),
|
|
13490
|
-
Boolean(userData?.company) && /* @__PURE__ */ jsxs(Box, { sx: { mb: 1 }, children: [
|
|
13491
|
-
/* @__PURE__ */ jsxs(Typography, { component: "span", sx: { fontWeight: 600, color: "#1a1c1e" }, children: [
|
|
13492
|
-
"Company:",
|
|
13493
|
-
" "
|
|
13494
|
-
] }),
|
|
13495
|
-
userData?.company
|
|
13516
|
+
/* @__PURE__ */ jsx(
|
|
13517
|
+
Stack$1,
|
|
13518
|
+
{
|
|
13519
|
+
spacing: 1.5,
|
|
13520
|
+
sx: { p: 2.5, background: "#f9fafb", borderRadius: "12px", border: "1px solid #f1f3f4" },
|
|
13521
|
+
children: [
|
|
13522
|
+
{ label: "Title", value: userData?.title },
|
|
13523
|
+
{ label: "Company", value: userData?.company },
|
|
13524
|
+
{ label: "Email", value: userData?.email }
|
|
13525
|
+
].filter((item) => Boolean(item.value)).map((item, i) => /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", gap: 1.5 }, children: [
|
|
13526
|
+
/* @__PURE__ */ jsxs(Typography, { sx: { fontWeight: 600, color: "#1a1c1e", minWidth: "80px", fontSize: "15px" }, children: [
|
|
13527
|
+
item.label,
|
|
13528
|
+
":"
|
|
13496
13529
|
] }),
|
|
13497
|
-
|
|
13498
|
-
|
|
13499
|
-
|
|
13500
|
-
|
|
13501
|
-
|
|
13502
|
-
|
|
13503
|
-
|
|
13504
|
-
|
|
13505
|
-
|
|
13506
|
-
|
|
13507
|
-
|
|
13508
|
-
|
|
13509
|
-
|
|
13510
|
-
|
|
13511
|
-
|
|
13512
|
-
|
|
13513
|
-
|
|
13514
|
-
|
|
13515
|
-
|
|
13516
|
-
|
|
13517
|
-
/* @__PURE__ */ jsx(
|
|
13530
|
+
/* @__PURE__ */ jsx(Typography, { sx: { color: "#5f6368", fontSize: "15px" }, children: item.value })
|
|
13531
|
+
] }, i))
|
|
13532
|
+
}
|
|
13533
|
+
),
|
|
13534
|
+
userData?.certBio && /* @__PURE__ */ jsx(
|
|
13535
|
+
Box,
|
|
13536
|
+
{
|
|
13537
|
+
sx: {
|
|
13538
|
+
color: "#555",
|
|
13539
|
+
fontSize: "15.5px",
|
|
13540
|
+
lineHeight: "1.8",
|
|
13541
|
+
textAlign: "justify",
|
|
13542
|
+
"& p": { m: 0, mb: 2 }
|
|
13543
|
+
},
|
|
13544
|
+
dangerouslySetInnerHTML: { __html: userData.certBio }
|
|
13545
|
+
}
|
|
13546
|
+
),
|
|
13547
|
+
/* @__PURE__ */ jsx(Divider, { sx: { my: 1 } }),
|
|
13548
|
+
/* @__PURE__ */ jsxs(Box, { children: [
|
|
13549
|
+
/* @__PURE__ */ jsx(Typography, { variant: "h6", sx: { fontSize: "18px", fontWeight: "700", mb: 1.5, color: "#1a1c1e" }, children: "Description" }),
|
|
13550
|
+
/* @__PURE__ */ jsx(Typography, { sx: { color: "#5f6368", fontSize: "15.5px", lineHeight: "1.7" }, children: userData?.certOfferToHelp })
|
|
13518
13551
|
] })
|
|
13519
13552
|
] }) })
|
|
13520
|
-
] })
|
|
13521
|
-
|
|
13522
|
-
]
|
|
13553
|
+
] }) })
|
|
13554
|
+
] })
|
|
13523
13555
|
}
|
|
13524
13556
|
);
|
|
13525
13557
|
}
|
|
@@ -13555,65 +13587,103 @@ function ChangePasswordDialog({ isOpen, email, t: t2, setInitialState }) {
|
|
|
13555
13587
|
return /* @__PURE__ */ jsx(
|
|
13556
13588
|
Dialog,
|
|
13557
13589
|
{
|
|
13558
|
-
fullWidth:
|
|
13559
|
-
|
|
13590
|
+
fullWidth: true,
|
|
13591
|
+
maxWidth: "sm",
|
|
13592
|
+
PaperProps: {
|
|
13593
|
+
sx: {
|
|
13594
|
+
borderRadius: "16px",
|
|
13595
|
+
boxShadow: "0px 12px 32px rgba(0,0,0,0.12)"
|
|
13596
|
+
}
|
|
13597
|
+
},
|
|
13560
13598
|
onClose: () => handleCloseUtil(setInitialState),
|
|
13561
13599
|
open: isOpen,
|
|
13562
|
-
|
|
13563
|
-
|
|
13564
|
-
|
|
13565
|
-
/* @__PURE__ */ jsx(
|
|
13566
|
-
Box,
|
|
13600
|
+
children: /* @__PURE__ */ jsx("form", { onSubmit: formik.handleSubmit, children: /* @__PURE__ */ jsxs(ChangePasswordStyled, { children: [
|
|
13601
|
+
/* @__PURE__ */ jsx(Box, { sx: { display: "flex", justifyContent: "flex-end", p: 1.5 }, children: /* @__PURE__ */ jsx(
|
|
13602
|
+
IconButton,
|
|
13567
13603
|
{
|
|
13604
|
+
onClick: () => handleCloseUtil(setInitialState),
|
|
13568
13605
|
sx: {
|
|
13569
|
-
|
|
13570
|
-
|
|
13571
|
-
|
|
13572
|
-
mt: 2,
|
|
13573
|
-
boxShadow: "0px 2px 4px rgba(0,0,0,0.05)"
|
|
13606
|
+
background: "#f5f5f5",
|
|
13607
|
+
color: "#5f6368",
|
|
13608
|
+
"&:hover": { background: "#eee", color: "#111" }
|
|
13574
13609
|
},
|
|
13575
|
-
children: /* @__PURE__ */
|
|
13576
|
-
|
|
13577
|
-
|
|
13578
|
-
|
|
13579
|
-
|
|
13580
|
-
|
|
13581
|
-
|
|
13582
|
-
|
|
13583
|
-
|
|
13584
|
-
|
|
13585
|
-
|
|
13586
|
-
|
|
13587
|
-
|
|
13588
|
-
|
|
13589
|
-
|
|
13590
|
-
|
|
13591
|
-
|
|
13610
|
+
children: /* @__PURE__ */ jsx(CloseIcon, { fontSize: "small" })
|
|
13611
|
+
}
|
|
13612
|
+
) }),
|
|
13613
|
+
/* @__PURE__ */ jsxs(Box, { sx: { px: { xs: 3, sm: 5 }, pb: { xs: 4, sm: 5 } }, children: [
|
|
13614
|
+
/* @__PURE__ */ jsx(
|
|
13615
|
+
Typography,
|
|
13616
|
+
{
|
|
13617
|
+
variant: "h5",
|
|
13618
|
+
sx: {
|
|
13619
|
+
fontWeight: 700,
|
|
13620
|
+
color: "#1a1c1e",
|
|
13621
|
+
mb: 3,
|
|
13622
|
+
fontFamily: "'IBM Plex Sans', sans-serif",
|
|
13623
|
+
textAlign: "start"
|
|
13624
|
+
},
|
|
13625
|
+
children: t2("Change Password")
|
|
13626
|
+
}
|
|
13627
|
+
),
|
|
13628
|
+
/* @__PURE__ */ jsx(
|
|
13629
|
+
Box,
|
|
13630
|
+
{
|
|
13631
|
+
sx: {
|
|
13632
|
+
p: { xs: 2.5, sm: 4 },
|
|
13633
|
+
background: "#fff",
|
|
13634
|
+
border: "1px solid #f1f3f4",
|
|
13635
|
+
borderRadius: "12px",
|
|
13636
|
+
boxShadow: "0px 4px 12px rgba(0,0,0,0.03)"
|
|
13637
|
+
},
|
|
13638
|
+
children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 3, children: [
|
|
13639
|
+
/* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, children: [
|
|
13640
|
+
/* @__PURE__ */ jsx(
|
|
13641
|
+
LabeledInput,
|
|
13642
|
+
{
|
|
13643
|
+
type: "password",
|
|
13644
|
+
label: t2("New password"),
|
|
13645
|
+
fullWidth: true,
|
|
13646
|
+
...formik.getFieldProps("newPassword")
|
|
13647
|
+
}
|
|
13648
|
+
),
|
|
13649
|
+
/* @__PURE__ */ jsx(ErrorMessage, { formik, fieldName: "newPassword" })
|
|
13650
|
+
] }),
|
|
13651
|
+
/* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, children: [
|
|
13652
|
+
/* @__PURE__ */ jsx(
|
|
13653
|
+
LabeledInput,
|
|
13654
|
+
{
|
|
13655
|
+
type: "password",
|
|
13656
|
+
fullWidth: true,
|
|
13657
|
+
label: t2("Confirm new password"),
|
|
13658
|
+
...formik.getFieldProps("passwordConfirmation")
|
|
13659
|
+
}
|
|
13660
|
+
),
|
|
13661
|
+
/* @__PURE__ */ jsx(ErrorMessage, { formik, fieldName: "passwordConfirmation" })
|
|
13662
|
+
] }),
|
|
13663
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, mt: 2, children: /* @__PURE__ */ jsx(
|
|
13664
|
+
Button,
|
|
13592
13665
|
{
|
|
13593
|
-
|
|
13594
|
-
label: t2("Confirm new password"),
|
|
13666
|
+
isLoading: formik.isSubmitting,
|
|
13595
13667
|
fullWidth: true,
|
|
13596
|
-
|
|
13597
|
-
|
|
13668
|
+
type: "submit",
|
|
13669
|
+
disabled: formik.isSubmitting,
|
|
13670
|
+
btnTitle: t2("Update Password"),
|
|
13671
|
+
sx: {
|
|
13672
|
+
py: 1.5,
|
|
13673
|
+
fontSize: "16px",
|
|
13674
|
+
fontWeight: 600,
|
|
13675
|
+
borderRadius: "8px",
|
|
13676
|
+
background: "#0073b1",
|
|
13677
|
+
color: "white",
|
|
13678
|
+
"&:hover": { background: "#005a8b" }
|
|
13679
|
+
}
|
|
13598
13680
|
}
|
|
13599
|
-
)
|
|
13600
|
-
|
|
13601
|
-
|
|
13602
|
-
|
|
13603
|
-
|
|
13604
|
-
|
|
13605
|
-
isLoading: formik.isSubmitting,
|
|
13606
|
-
className: "invite",
|
|
13607
|
-
sx: { width: "auto !important" },
|
|
13608
|
-
type: "submit",
|
|
13609
|
-
disabled: formik.isSubmitting,
|
|
13610
|
-
btnTitle: t2("Change Password")
|
|
13611
|
-
}
|
|
13612
|
-
) })
|
|
13613
|
-
] })
|
|
13614
|
-
}
|
|
13615
|
-
)
|
|
13616
|
-
] }) }) })
|
|
13681
|
+
) })
|
|
13682
|
+
] })
|
|
13683
|
+
}
|
|
13684
|
+
)
|
|
13685
|
+
] })
|
|
13686
|
+
] }) })
|
|
13617
13687
|
}
|
|
13618
13688
|
);
|
|
13619
13689
|
}
|
|
@@ -14346,7 +14416,7 @@ const SubHeaderStyled = styled(AppBar)(() => ({
|
|
|
14346
14416
|
padding: "8px 0",
|
|
14347
14417
|
listStyle: "none",
|
|
14348
14418
|
"& li": {
|
|
14349
|
-
padding: "
|
|
14419
|
+
padding: "2px 16px",
|
|
14350
14420
|
borderBottom: "1px solid #f1f3f4",
|
|
14351
14421
|
cursor: "pointer",
|
|
14352
14422
|
transition: "background 0.2s ease",
|
|
@@ -14423,8 +14493,8 @@ const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions, route
|
|
|
14423
14493
|
{
|
|
14424
14494
|
src: userData?.userprofile,
|
|
14425
14495
|
sx: {
|
|
14426
|
-
width: "
|
|
14427
|
-
height: "
|
|
14496
|
+
width: "65px",
|
|
14497
|
+
height: "65px",
|
|
14428
14498
|
border: "2px solid #fff",
|
|
14429
14499
|
boxShadow: "0px 2px 4px rgba(0,0,0,0.1)"
|
|
14430
14500
|
},
|
|
@@ -14462,16 +14532,16 @@ const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions, route
|
|
|
14462
14532
|
extraMenuOptions.isViewProfile && /* @__PURE__ */ jsx(
|
|
14463
14533
|
Box,
|
|
14464
14534
|
{
|
|
14465
|
-
component: "li",
|
|
14466
|
-
onClick: () => setInitialState((p) => ({ ...p, toggles: { ...p.toggles, viewProfile: true } })),
|
|
14467
14535
|
sx: {
|
|
14468
14536
|
px: 2,
|
|
14469
14537
|
py: 1.5,
|
|
14470
14538
|
cursor: "pointer",
|
|
14471
14539
|
"&:hover": { background: "#f8f9fa", color: "#0073b1" }
|
|
14472
14540
|
},
|
|
14541
|
+
component: "li",
|
|
14542
|
+
onClick: () => setInitialState((p) => ({ ...p, toggles: { ...p.toggles, viewProfile: true } })),
|
|
14473
14543
|
children: /* @__PURE__ */ jsxs(Stack$1, { direction: "row", gap: 1.5, alignItems: "center", children: [
|
|
14474
|
-
/* @__PURE__ */ jsx(SVG.CheckedPerson, { style: { width: "
|
|
14544
|
+
/* @__PURE__ */ jsx(SVG.CheckedPerson, { style: { width: "25px", height: "25px", color: "inherit" } }),
|
|
14475
14545
|
/* @__PURE__ */ jsx(Typography, { sx: { fontSize: "14px", fontWeight: "400", m: 0 }, children: t2("View Profile") })
|
|
14476
14546
|
] })
|
|
14477
14547
|
}
|
|
@@ -14488,7 +14558,7 @@ const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions, route
|
|
|
14488
14558
|
"&:hover": { background: "#f8f9fa", color: "#0073b1" }
|
|
14489
14559
|
},
|
|
14490
14560
|
children: /* @__PURE__ */ jsxs(Stack$1, { direction: "row", gap: 1.5, alignItems: "center", children: [
|
|
14491
|
-
/* @__PURE__ */ jsx(SVG.UserEdit, { style: { width: "
|
|
14561
|
+
/* @__PURE__ */ jsx(SVG.UserEdit, { style: { width: "25px", height: "25px", color: "inherit" } }),
|
|
14492
14562
|
/* @__PURE__ */ jsx(Typography, { sx: { fontSize: "14px", fontWeight: "400", m: 0 }, children: t2("Edit Profile") })
|
|
14493
14563
|
] })
|
|
14494
14564
|
}
|
|
@@ -14505,7 +14575,7 @@ const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions, route
|
|
|
14505
14575
|
"&:hover": { background: "#f8f9fa", color: "#0073b1" }
|
|
14506
14576
|
},
|
|
14507
14577
|
children: /* @__PURE__ */ jsxs(Stack$1, { direction: "row", gap: 1.5, alignItems: "center", children: [
|
|
14508
|
-
/* @__PURE__ */ jsx(SVG.CheckedPerson, { style: { width: "
|
|
14578
|
+
/* @__PURE__ */ jsx(SVG.CheckedPerson, { style: { width: "25px", height: "25px", color: "inherit" } }),
|
|
14509
14579
|
/* @__PURE__ */ jsx(Typography, { sx: { fontSize: "14px", fontWeight: "400", m: 0 }, children: t2("Change Password") })
|
|
14510
14580
|
] })
|
|
14511
14581
|
}
|
|
@@ -14526,7 +14596,7 @@ const UserProfile = ({ t: t2, userData, setInitialState, extraMenuOptions, route
|
|
|
14526
14596
|
borderTop: "1px solid #f1f3f4"
|
|
14527
14597
|
},
|
|
14528
14598
|
children: /* @__PURE__ */ jsxs(Stack$1, { direction: "row", gap: 1.5, alignItems: "center", children: [
|
|
14529
|
-
/* @__PURE__ */ jsx(SVG.Logout, { style: { width: "
|
|
14599
|
+
/* @__PURE__ */ jsx(SVG.Logout, { style: { width: "25px", height: "25px", color: "inherit" } }),
|
|
14530
14600
|
/* @__PURE__ */ jsx(Typography, { sx: { fontSize: "14px", fontWeight: "400", m: 0 }, children: t2("Logout") })
|
|
14531
14601
|
] })
|
|
14532
14602
|
}
|
|
@@ -14858,13 +14928,13 @@ function LabeledInput({
|
|
|
14858
14928
|
className: "textInput",
|
|
14859
14929
|
sx: {
|
|
14860
14930
|
"& .MuiInputBase-root": {
|
|
14861
|
-
borderRadius: "
|
|
14931
|
+
borderRadius: "20px",
|
|
14862
14932
|
height: "36px"
|
|
14863
14933
|
},
|
|
14864
14934
|
"& input:disabled": {
|
|
14865
14935
|
borderRadius: "20px"
|
|
14866
14936
|
},
|
|
14867
|
-
borderRadius: "
|
|
14937
|
+
borderRadius: "20px",
|
|
14868
14938
|
fontFamily: "Inter, sans-serif",
|
|
14869
14939
|
"& input:-webkit-autofill": {
|
|
14870
14940
|
WebkitBoxShadow: "0 0 0 100px white inset",
|
|
@@ -15183,9 +15253,21 @@ const App = () => {
|
|
|
15183
15253
|
appName: APP_NAMES.sso,
|
|
15184
15254
|
appAccess: [
|
|
15185
15255
|
{
|
|
15186
|
-
name: "
|
|
15187
|
-
icon: "",
|
|
15188
|
-
link: "https://
|
|
15256
|
+
name: "Cards sdf dfsfwk",
|
|
15257
|
+
icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/cardshome.svg",
|
|
15258
|
+
link: "https://cards.6seconds.org",
|
|
15259
|
+
type: "app"
|
|
15260
|
+
},
|
|
15261
|
+
{
|
|
15262
|
+
name: "ASDfwoj vds Home",
|
|
15263
|
+
icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/cardshome.svg",
|
|
15264
|
+
link: "https://cards.6seconds.org",
|
|
15265
|
+
type: "app"
|
|
15266
|
+
},
|
|
15267
|
+
{
|
|
15268
|
+
name: "Cards Homeasdf",
|
|
15269
|
+
icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/cardshome.svg",
|
|
15270
|
+
link: "https://cards.6seconds.org",
|
|
15189
15271
|
type: "app"
|
|
15190
15272
|
},
|
|
15191
15273
|
{
|
|
@@ -15195,15 +15277,21 @@ const App = () => {
|
|
|
15195
15277
|
type: "app"
|
|
15196
15278
|
},
|
|
15197
15279
|
{
|
|
15198
|
-
name: "
|
|
15199
|
-
icon: "
|
|
15200
|
-
link: "
|
|
15280
|
+
name: "Cards ",
|
|
15281
|
+
icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/cardshome.svg",
|
|
15282
|
+
link: "https://cards.6seconds.org",
|
|
15201
15283
|
type: "app"
|
|
15202
15284
|
},
|
|
15203
15285
|
{
|
|
15204
|
-
name: "
|
|
15205
|
-
icon: "/
|
|
15206
|
-
link: "
|
|
15286
|
+
name: "Cards Home",
|
|
15287
|
+
icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/cardshome.svg",
|
|
15288
|
+
link: "https://cards.6seconds.org",
|
|
15289
|
+
type: "app"
|
|
15290
|
+
},
|
|
15291
|
+
{
|
|
15292
|
+
name: "Cards Home",
|
|
15293
|
+
icon: "https://cert-6seconds.s3.us-west-2.amazonaws.com/uploads/dashboard/cardshome.svg",
|
|
15294
|
+
link: "https://cards.6seconds.org",
|
|
15207
15295
|
type: "app"
|
|
15208
15296
|
}
|
|
15209
15297
|
],
|
|
@@ -15244,56 +15332,7 @@ const App = () => {
|
|
|
15244
15332
|
isNotification: true,
|
|
15245
15333
|
totallyEndCustomComponent: "asdfsdf",
|
|
15246
15334
|
extraMenuOptions: {
|
|
15247
|
-
components: /* @__PURE__ */
|
|
15248
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Stack$1, { direction: "row", spacing: 1, alignItems: "center", sx: { cursor: "pointer" }, children: [
|
|
15249
|
-
/* @__PURE__ */ jsx(SVG.CheckedPerson, {}),
|
|
15250
|
-
/* @__PURE__ */ jsx(Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
15251
|
-
Typography,
|
|
15252
|
-
{
|
|
15253
|
-
variant: "h4",
|
|
15254
|
-
sx: {
|
|
15255
|
-
color: "#1A1919",
|
|
15256
|
-
fontSize: "16px",
|
|
15257
|
-
fontWeight: "400",
|
|
15258
|
-
m: 0
|
|
15259
|
-
},
|
|
15260
|
-
children: "extraMenuOptions"
|
|
15261
|
-
}
|
|
15262
|
-
) })
|
|
15263
|
-
] }) }),
|
|
15264
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Stack$1, { direction: "row", spacing: 1, alignItems: "center", sx: { cursor: "pointer" }, children: [
|
|
15265
|
-
/* @__PURE__ */ jsx(SVG.CheckedPerson, {}),
|
|
15266
|
-
/* @__PURE__ */ jsx(Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
15267
|
-
Typography,
|
|
15268
|
-
{
|
|
15269
|
-
variant: "h4",
|
|
15270
|
-
sx: {
|
|
15271
|
-
color: "#1A1919",
|
|
15272
|
-
fontSize: "16px",
|
|
15273
|
-
fontWeight: "400",
|
|
15274
|
-
m: 0
|
|
15275
|
-
},
|
|
15276
|
-
children: "extraMenuOptions"
|
|
15277
|
-
}
|
|
15278
|
-
) })
|
|
15279
|
-
] }) }),
|
|
15280
|
-
/* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsxs(Stack$1, { direction: "row", spacing: 1, alignItems: "center", sx: { cursor: "pointer" }, children: [
|
|
15281
|
-
/* @__PURE__ */ jsx(SVG.CheckedPerson, {}),
|
|
15282
|
-
/* @__PURE__ */ jsx(Box, { sx: { flex: 1 }, children: /* @__PURE__ */ jsx(
|
|
15283
|
-
Typography,
|
|
15284
|
-
{
|
|
15285
|
-
variant: "h4",
|
|
15286
|
-
sx: {
|
|
15287
|
-
color: "#1A1919",
|
|
15288
|
-
fontSize: "16px",
|
|
15289
|
-
fontWeight: "400",
|
|
15290
|
-
m: 0
|
|
15291
|
-
},
|
|
15292
|
-
children: "extraMenuOptions"
|
|
15293
|
-
}
|
|
15294
|
-
) })
|
|
15295
|
-
] }) })
|
|
15296
|
-
] }),
|
|
15335
|
+
components: /* @__PURE__ */ jsx(Fragment, {}),
|
|
15297
15336
|
isViewProfile: true,
|
|
15298
15337
|
isChangePassword: true,
|
|
15299
15338
|
isEditProfile: true
|