@splpi/estore-shared-components 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/index.d.mts +9 -4
- package/dist/index.d.ts +9 -4
- package/dist/index.js +473 -272
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +464 -252
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3167,7 +3167,7 @@ var LifePlanApplicationStepWrapper = () => {
|
|
|
3167
3167
|
};
|
|
3168
3168
|
var LifePlanApplicationStepWrapper_default = LifePlanApplicationStepWrapper;
|
|
3169
3169
|
|
|
3170
|
-
// src/
|
|
3170
|
+
// src/Generic/BottomQuickActions.tsx
|
|
3171
3171
|
import React6 from "react";
|
|
3172
3172
|
import {
|
|
3173
3173
|
Box as Box15,
|
|
@@ -3211,7 +3211,7 @@ var BRAND_COLORS = {
|
|
|
3211
3211
|
paleGold: "#FFF48E"
|
|
3212
3212
|
};
|
|
3213
3213
|
|
|
3214
|
-
// src/
|
|
3214
|
+
// src/Generic/BottomQuickActions.tsx
|
|
3215
3215
|
import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3216
3216
|
var SHEET_BG = BRAND_COLORS.white;
|
|
3217
3217
|
var DRAG_COLOR = BRAND_COLORS.neutralBorder;
|
|
@@ -3494,22 +3494,233 @@ var BottomQuickActions = ({
|
|
|
3494
3494
|
};
|
|
3495
3495
|
var BottomQuickActions_default = BottomQuickActions;
|
|
3496
3496
|
|
|
3497
|
+
// src/Generic/NotifyInstall.tsx
|
|
3498
|
+
import { useEffect as useEffect8, useState as useState13 } from "react";
|
|
3499
|
+
import {
|
|
3500
|
+
Dialog as Dialog3,
|
|
3501
|
+
Button as Button3,
|
|
3502
|
+
Text as Text9,
|
|
3503
|
+
VStack as VStack8,
|
|
3504
|
+
HStack as HStack5,
|
|
3505
|
+
Box as Box16,
|
|
3506
|
+
Flex as Flex9,
|
|
3507
|
+
Heading,
|
|
3508
|
+
Icon as Icon5,
|
|
3509
|
+
Portal as Portal5,
|
|
3510
|
+
CloseButton as CloseButton4
|
|
3511
|
+
} from "@chakra-ui/react";
|
|
3512
|
+
import { FiDownload, FiPlusSquare, FiShare } from "react-icons/fi";
|
|
3513
|
+
|
|
3514
|
+
// src/hooks/useNotifyInstall.ts
|
|
3515
|
+
import { useEffect as useEffect7, useState as useState12 } from "react";
|
|
3516
|
+
function useNotifyInstall() {
|
|
3517
|
+
const [isInstalled, setIsInstalled] = useState12(false);
|
|
3518
|
+
const [isMobile, setIsMobile] = useState12(false);
|
|
3519
|
+
const [installPrompt, setInstallPrompt] = useState12(null);
|
|
3520
|
+
useEffect7(() => {
|
|
3521
|
+
const mobile = /Android|iPhone|iPad|iPod/i.test(navigator.userAgent);
|
|
3522
|
+
setIsMobile(mobile);
|
|
3523
|
+
const installed = window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === true;
|
|
3524
|
+
setIsInstalled(installed);
|
|
3525
|
+
const handler = (event) => {
|
|
3526
|
+
event.preventDefault();
|
|
3527
|
+
setInstallPrompt(event);
|
|
3528
|
+
};
|
|
3529
|
+
window.addEventListener("beforeinstallprompt", handler);
|
|
3530
|
+
return () => {
|
|
3531
|
+
window.removeEventListener("beforeinstallprompt", handler);
|
|
3532
|
+
};
|
|
3533
|
+
}, []);
|
|
3534
|
+
const install = async () => {
|
|
3535
|
+
if (!installPrompt) return;
|
|
3536
|
+
installPrompt.prompt();
|
|
3537
|
+
const result = await installPrompt.userChoice;
|
|
3538
|
+
if (result.outcome === "accepted") {
|
|
3539
|
+
setIsInstalled(true);
|
|
3540
|
+
}
|
|
3541
|
+
setInstallPrompt(null);
|
|
3542
|
+
};
|
|
3543
|
+
return {
|
|
3544
|
+
isInstalled,
|
|
3545
|
+
isMobile,
|
|
3546
|
+
canInstall: !!installPrompt,
|
|
3547
|
+
install
|
|
3548
|
+
};
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3551
|
+
// src/Generic/NotifyInstall.tsx
|
|
3552
|
+
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3553
|
+
var STEPS = [
|
|
3554
|
+
{
|
|
3555
|
+
icon: FiShare,
|
|
3556
|
+
label: "Tap the browser menu or Share button"
|
|
3557
|
+
},
|
|
3558
|
+
{
|
|
3559
|
+
icon: FiPlusSquare,
|
|
3560
|
+
label: 'Choose "Add to Home Screen"'
|
|
3561
|
+
}
|
|
3562
|
+
];
|
|
3563
|
+
var INSTALL_DIALOG_DISMISSED_KEY = "estore-install-dialog-dismissed";
|
|
3564
|
+
function NotifyInstall({
|
|
3565
|
+
children
|
|
3566
|
+
}) {
|
|
3567
|
+
const { isInstalled, isMobile, canInstall, install } = useNotifyInstall();
|
|
3568
|
+
const [isDismissed, setIsDismissed] = useState13(false);
|
|
3569
|
+
useEffect8(() => {
|
|
3570
|
+
const wasDismissed = localStorage.getItem(INSTALL_DIALOG_DISMISSED_KEY);
|
|
3571
|
+
setIsDismissed(wasDismissed === "true");
|
|
3572
|
+
}, []);
|
|
3573
|
+
const handleClose = () => {
|
|
3574
|
+
localStorage.setItem(INSTALL_DIALOG_DISMISSED_KEY, "true");
|
|
3575
|
+
setIsDismissed(true);
|
|
3576
|
+
};
|
|
3577
|
+
const isOpen = !isInstalled && isMobile && !isDismissed;
|
|
3578
|
+
if (!isOpen) {
|
|
3579
|
+
return children;
|
|
3580
|
+
}
|
|
3581
|
+
return /* @__PURE__ */ jsxs16(Fragment3, { children: [
|
|
3582
|
+
children,
|
|
3583
|
+
/* @__PURE__ */ jsx19(
|
|
3584
|
+
Dialog3.Root,
|
|
3585
|
+
{
|
|
3586
|
+
open: isOpen,
|
|
3587
|
+
onOpenChange: (details) => {
|
|
3588
|
+
if (!details.open) {
|
|
3589
|
+
handleClose();
|
|
3590
|
+
}
|
|
3591
|
+
},
|
|
3592
|
+
placement: "center",
|
|
3593
|
+
motionPreset: "slide-in-bottom",
|
|
3594
|
+
children: /* @__PURE__ */ jsxs16(Portal5, { children: [
|
|
3595
|
+
/* @__PURE__ */ jsx19(Dialog3.Backdrop, { bg: "blackAlpha.600", backdropFilter: "blur(2px)" }),
|
|
3596
|
+
/* @__PURE__ */ jsx19(
|
|
3597
|
+
Dialog3.Positioner,
|
|
3598
|
+
{
|
|
3599
|
+
p: { base: 0, sm: 4 },
|
|
3600
|
+
alignItems: { base: "flex-end", sm: "center" },
|
|
3601
|
+
children: /* @__PURE__ */ jsxs16(
|
|
3602
|
+
Dialog3.Content,
|
|
3603
|
+
{
|
|
3604
|
+
w: "xl",
|
|
3605
|
+
maxW: { base: "full", sm: "sm" },
|
|
3606
|
+
borderRadius: { base: "2xl 2xl 0 0", sm: "2xl" },
|
|
3607
|
+
overflow: "hidden",
|
|
3608
|
+
boxShadow: "2xl",
|
|
3609
|
+
m: 0,
|
|
3610
|
+
children: [
|
|
3611
|
+
/* @__PURE__ */ jsx19(Dialog3.Body, { px: { base: 6, sm: 8 }, py: { base: 8, sm: 10 }, children: /* @__PURE__ */ jsxs16(VStack8, { gap: 6, textAlign: "center", children: [
|
|
3612
|
+
/* @__PURE__ */ jsx19(
|
|
3613
|
+
Flex9,
|
|
3614
|
+
{
|
|
3615
|
+
boxSize: { base: 16, sm: 20 },
|
|
3616
|
+
align: "center",
|
|
3617
|
+
justify: "center",
|
|
3618
|
+
rounded: "2xl",
|
|
3619
|
+
bg: "green.50",
|
|
3620
|
+
color: "green.600",
|
|
3621
|
+
shadow: "sm",
|
|
3622
|
+
children: /* @__PURE__ */ jsx19(Icon5, { as: FiDownload, boxSize: { base: 8, sm: 9 } })
|
|
3623
|
+
}
|
|
3624
|
+
),
|
|
3625
|
+
/* @__PURE__ */ jsxs16(VStack8, { gap: 2, children: [
|
|
3626
|
+
/* @__PURE__ */ jsx19(
|
|
3627
|
+
Heading,
|
|
3628
|
+
{
|
|
3629
|
+
fontSize: { base: "lg", sm: "xl" },
|
|
3630
|
+
fontWeight: "bold",
|
|
3631
|
+
color: "gray.900",
|
|
3632
|
+
children: "Install St. Peter eStore"
|
|
3633
|
+
}
|
|
3634
|
+
),
|
|
3635
|
+
/* @__PURE__ */ jsx19(
|
|
3636
|
+
Text9,
|
|
3637
|
+
{
|
|
3638
|
+
fontSize: { base: "sm", sm: "md" },
|
|
3639
|
+
color: "gray.600",
|
|
3640
|
+
lineHeight: "tall",
|
|
3641
|
+
children: "Add the app to your home screen for a faster, app-like experience before continuing."
|
|
3642
|
+
}
|
|
3643
|
+
)
|
|
3644
|
+
] }),
|
|
3645
|
+
canInstall ? /* @__PURE__ */ jsxs16(
|
|
3646
|
+
Button3,
|
|
3647
|
+
{
|
|
3648
|
+
onClick: install,
|
|
3649
|
+
colorPalette: "green",
|
|
3650
|
+
size: "lg",
|
|
3651
|
+
w: "full",
|
|
3652
|
+
rounded: "xl",
|
|
3653
|
+
children: [
|
|
3654
|
+
/* @__PURE__ */ jsx19(Icon5, { as: FiDownload }),
|
|
3655
|
+
"Add to Home Screen"
|
|
3656
|
+
]
|
|
3657
|
+
}
|
|
3658
|
+
) : /* @__PURE__ */ jsx19(
|
|
3659
|
+
Box16,
|
|
3660
|
+
{
|
|
3661
|
+
w: "full",
|
|
3662
|
+
bg: "gray.50",
|
|
3663
|
+
borderWidth: "1px",
|
|
3664
|
+
borderColor: "gray.100",
|
|
3665
|
+
rounded: "xl",
|
|
3666
|
+
p: 4,
|
|
3667
|
+
children: /* @__PURE__ */ jsx19(VStack8, { gap: 4, align: "stretch", children: STEPS.map((step, index) => /* @__PURE__ */ jsxs16(HStack5, { gap: 3, align: "center", children: [
|
|
3668
|
+
/* @__PURE__ */ jsx19(
|
|
3669
|
+
Flex9,
|
|
3670
|
+
{
|
|
3671
|
+
boxSize: 9,
|
|
3672
|
+
flexShrink: 0,
|
|
3673
|
+
align: "center",
|
|
3674
|
+
justify: "center",
|
|
3675
|
+
rounded: "lg",
|
|
3676
|
+
bg: "white",
|
|
3677
|
+
borderWidth: "1px",
|
|
3678
|
+
borderColor: "gray.200",
|
|
3679
|
+
color: "green.600",
|
|
3680
|
+
children: /* @__PURE__ */ jsx19(Icon5, { as: step.icon, boxSize: 4 })
|
|
3681
|
+
}
|
|
3682
|
+
),
|
|
3683
|
+
/* @__PURE__ */ jsx19(
|
|
3684
|
+
Text9,
|
|
3685
|
+
{
|
|
3686
|
+
fontSize: "sm",
|
|
3687
|
+
color: "gray.700",
|
|
3688
|
+
textAlign: "left",
|
|
3689
|
+
children: step.label
|
|
3690
|
+
}
|
|
3691
|
+
)
|
|
3692
|
+
] }, index)) })
|
|
3693
|
+
}
|
|
3694
|
+
)
|
|
3695
|
+
] }) }),
|
|
3696
|
+
/* @__PURE__ */ jsx19(Dialog3.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx19(CloseButton4, { size: "sm", onClick: handleClose }) })
|
|
3697
|
+
]
|
|
3698
|
+
}
|
|
3699
|
+
)
|
|
3700
|
+
}
|
|
3701
|
+
)
|
|
3702
|
+
] })
|
|
3703
|
+
}
|
|
3704
|
+
)
|
|
3705
|
+
] });
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3497
3708
|
// src/UserProfile/UserProfile.tsx
|
|
3498
|
-
import { useEffect as
|
|
3709
|
+
import { useEffect as useEffect9, useMemo, useState as useState14 } from "react";
|
|
3499
3710
|
import {
|
|
3500
3711
|
Avatar,
|
|
3501
3712
|
Badge as Badge2,
|
|
3502
|
-
Box as
|
|
3503
|
-
Button as
|
|
3504
|
-
Flex as
|
|
3505
|
-
HStack as
|
|
3713
|
+
Box as Box17,
|
|
3714
|
+
Button as Button4,
|
|
3715
|
+
Flex as Flex10,
|
|
3716
|
+
HStack as HStack6,
|
|
3506
3717
|
IconButton as IconButton3,
|
|
3507
3718
|
Input as Input4,
|
|
3508
3719
|
InputGroup,
|
|
3509
3720
|
Separator as Separator4,
|
|
3510
|
-
Text as
|
|
3721
|
+
Text as Text10,
|
|
3511
3722
|
useBreakpointValue as useBreakpointValue2,
|
|
3512
|
-
VStack as
|
|
3723
|
+
VStack as VStack9
|
|
3513
3724
|
} from "@chakra-ui/react";
|
|
3514
3725
|
import {
|
|
3515
3726
|
RiDashboardFill,
|
|
@@ -3553,7 +3764,7 @@ import { LiaHandHoldingUsdSolid } from "react-icons/lia";
|
|
|
3553
3764
|
import { FaHandHoldingUsd } from "react-icons/fa";
|
|
3554
3765
|
import { MdManageAccounts, MdOutlineManageAccounts } from "react-icons/md";
|
|
3555
3766
|
import { IoLeaf, IoLeafOutline } from "react-icons/io5";
|
|
3556
|
-
import { Fragment as
|
|
3767
|
+
import { Fragment as Fragment4, jsx as jsx20, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3557
3768
|
var NAVBAR_STORAGE_KEY = "profile-navbar-quick-items";
|
|
3558
3769
|
var FONT_SIZE_STORAGE_KEY = "profile-font-size-pref";
|
|
3559
3770
|
var DEFAULT_NAV_HREFS = ["/", "/plans", "/pay-my-plan", "/claims"];
|
|
@@ -3851,28 +4062,28 @@ function ReusableProfile({
|
|
|
3851
4062
|
onTwoFactorChange,
|
|
3852
4063
|
onToast = noopToast
|
|
3853
4064
|
}) {
|
|
3854
|
-
const [profileView, setProfileView] =
|
|
3855
|
-
const [fallbackColorMode, setFallbackColorMode] =
|
|
4065
|
+
const [profileView, setProfileView] = useState14("main");
|
|
4066
|
+
const [fallbackColorMode, setFallbackColorMode] = useState14("light");
|
|
3856
4067
|
const colorMode = controlledColorMode ?? fallbackColorMode;
|
|
3857
|
-
const [fontSize, setFontSizeLocal] =
|
|
3858
|
-
const [quickNavHrefs, setQuickNavHrefs] =
|
|
3859
|
-
const [replacingIdx, setReplacingIdx] =
|
|
3860
|
-
const [editName, setEditName] =
|
|
3861
|
-
const [editLoading, setEditLoading] =
|
|
3862
|
-
const [currentPw, setCurrentPw] =
|
|
3863
|
-
const [newPw, setNewPw] =
|
|
3864
|
-
const [confirmPw, setConfirmPw] =
|
|
3865
|
-
const [showCurrentPw, setShowCurrentPw] =
|
|
3866
|
-
const [showNewPw, setShowNewPw] =
|
|
3867
|
-
const [showConfirmPw, setShowConfirmPw] =
|
|
3868
|
-
const [pwLoading, setPwLoading] =
|
|
3869
|
-
const [twoFactorEnabled, setTwoFactorEnabled] =
|
|
4068
|
+
const [fontSize, setFontSizeLocal] = useState14("md");
|
|
4069
|
+
const [quickNavHrefs, setQuickNavHrefs] = useState14(initialQuickNavHrefs);
|
|
4070
|
+
const [replacingIdx, setReplacingIdx] = useState14(null);
|
|
4071
|
+
const [editName, setEditName] = useState14(user.displayName);
|
|
4072
|
+
const [editLoading, setEditLoading] = useState14(false);
|
|
4073
|
+
const [currentPw, setCurrentPw] = useState14("");
|
|
4074
|
+
const [newPw, setNewPw] = useState14("");
|
|
4075
|
+
const [confirmPw, setConfirmPw] = useState14("");
|
|
4076
|
+
const [showCurrentPw, setShowCurrentPw] = useState14(false);
|
|
4077
|
+
const [showNewPw, setShowNewPw] = useState14(false);
|
|
4078
|
+
const [showConfirmPw, setShowConfirmPw] = useState14(false);
|
|
4079
|
+
const [pwLoading, setPwLoading] = useState14(false);
|
|
4080
|
+
const [twoFactorEnabled, setTwoFactorEnabled] = useState14(
|
|
3870
4081
|
initialTwoFactorEnabled
|
|
3871
4082
|
);
|
|
3872
|
-
const [isMounted, setIsMounted] =
|
|
4083
|
+
const [isMounted, setIsMounted] = useState14(false);
|
|
3873
4084
|
const isDesktopRaw = useBreakpointValue2({ base: false, md: true });
|
|
3874
4085
|
const isDesktop = isMounted ? isDesktopRaw ?? false : false;
|
|
3875
|
-
|
|
4086
|
+
useEffect9(() => {
|
|
3876
4087
|
setIsMounted(true);
|
|
3877
4088
|
if (!enableLocalStorage || typeof window === "undefined") return;
|
|
3878
4089
|
setFontSizeLocal(localStorage.getItem(FONT_SIZE_STORAGE_KEY) ?? "md");
|
|
@@ -3883,7 +4094,7 @@ function ReusableProfile({
|
|
|
3883
4094
|
setQuickNavHrefs(initialQuickNavHrefs);
|
|
3884
4095
|
}
|
|
3885
4096
|
}, [enableLocalStorage, initialQuickNavHrefs, storageKey]);
|
|
3886
|
-
|
|
4097
|
+
useEffect9(() => {
|
|
3887
4098
|
setEditName(user.displayName);
|
|
3888
4099
|
}, [user.displayName]);
|
|
3889
4100
|
const availableOptions = useMemo(
|
|
@@ -4014,9 +4225,9 @@ function ReusableProfile({
|
|
|
4014
4225
|
}
|
|
4015
4226
|
};
|
|
4016
4227
|
const roleLabel = user.role ? ROLE_LABELS[user.role] ?? user.role : "";
|
|
4017
|
-
const mainContent = /* @__PURE__ */
|
|
4018
|
-
/* @__PURE__ */
|
|
4019
|
-
|
|
4228
|
+
const mainContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
4229
|
+
/* @__PURE__ */ jsxs17(
|
|
4230
|
+
Box17,
|
|
4020
4231
|
{
|
|
4021
4232
|
bg: "var(--chakra-colors-primary)",
|
|
4022
4233
|
pt: 12,
|
|
@@ -4024,7 +4235,7 @@ function ReusableProfile({
|
|
|
4024
4235
|
px: 4,
|
|
4025
4236
|
textAlign: "center",
|
|
4026
4237
|
children: [
|
|
4027
|
-
/* @__PURE__ */
|
|
4238
|
+
/* @__PURE__ */ jsxs17(
|
|
4028
4239
|
Avatar.Root,
|
|
4029
4240
|
{
|
|
4030
4241
|
size: "2xl",
|
|
@@ -4032,13 +4243,13 @@ function ReusableProfile({
|
|
|
4032
4243
|
mb: 4,
|
|
4033
4244
|
colorPalette: pickPalette(user.displayName || "U"),
|
|
4034
4245
|
children: [
|
|
4035
|
-
user.avatarSrc && /* @__PURE__ */
|
|
4036
|
-
/* @__PURE__ */
|
|
4246
|
+
user.avatarSrc && /* @__PURE__ */ jsx20(Avatar.Image, { src: user.avatarSrc, alt: user.displayName }),
|
|
4247
|
+
/* @__PURE__ */ jsx20(Avatar.Fallback, { name: user.displayName })
|
|
4037
4248
|
]
|
|
4038
4249
|
}
|
|
4039
4250
|
),
|
|
4040
|
-
/* @__PURE__ */
|
|
4041
|
-
|
|
4251
|
+
/* @__PURE__ */ jsx20(
|
|
4252
|
+
Text10,
|
|
4042
4253
|
{
|
|
4043
4254
|
color: "white",
|
|
4044
4255
|
fontWeight: "bold",
|
|
@@ -4048,8 +4259,8 @@ function ReusableProfile({
|
|
|
4048
4259
|
children: user.displayName
|
|
4049
4260
|
}
|
|
4050
4261
|
),
|
|
4051
|
-
user.email && /* @__PURE__ */
|
|
4052
|
-
roleLabel && /* @__PURE__ */
|
|
4262
|
+
user.email && /* @__PURE__ */ jsx20(Text10, { color: "rgba(255,255,255,0.75)", fontSize: "sm", mb: 2, children: user.email }),
|
|
4263
|
+
roleLabel && /* @__PURE__ */ jsx20(Box17, { display: "inline-flex", children: /* @__PURE__ */ jsx20(
|
|
4053
4264
|
Badge2,
|
|
4054
4265
|
{
|
|
4055
4266
|
bg: "rgba(255,255,255,0.15)",
|
|
@@ -4066,9 +4277,9 @@ function ReusableProfile({
|
|
|
4066
4277
|
]
|
|
4067
4278
|
}
|
|
4068
4279
|
),
|
|
4069
|
-
/* @__PURE__ */
|
|
4070
|
-
/* @__PURE__ */
|
|
4071
|
-
|
|
4280
|
+
/* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 5, pb: 1, children: [
|
|
4281
|
+
/* @__PURE__ */ jsx20(
|
|
4282
|
+
Text10,
|
|
4072
4283
|
{
|
|
4073
4284
|
fontSize: "xs",
|
|
4074
4285
|
fontWeight: "bold",
|
|
@@ -4079,8 +4290,8 @@ function ReusableProfile({
|
|
|
4079
4290
|
children: "Account"
|
|
4080
4291
|
}
|
|
4081
4292
|
),
|
|
4082
|
-
/* @__PURE__ */
|
|
4083
|
-
|
|
4293
|
+
/* @__PURE__ */ jsx20(
|
|
4294
|
+
Box17,
|
|
4084
4295
|
{
|
|
4085
4296
|
as: "button",
|
|
4086
4297
|
w: "full",
|
|
@@ -4088,8 +4299,8 @@ function ReusableProfile({
|
|
|
4088
4299
|
_hover: { opacity: 0.7 },
|
|
4089
4300
|
transition: "opacity 0.15s",
|
|
4090
4301
|
onClick: () => setProfileView("edit-account"),
|
|
4091
|
-
children: /* @__PURE__ */
|
|
4092
|
-
|
|
4302
|
+
children: /* @__PURE__ */ jsxs17(
|
|
4303
|
+
Flex10,
|
|
4093
4304
|
{
|
|
4094
4305
|
justify: "space-between",
|
|
4095
4306
|
align: "center",
|
|
@@ -4098,9 +4309,9 @@ function ReusableProfile({
|
|
|
4098
4309
|
borderRadius: "lg",
|
|
4099
4310
|
bg: isDesktop && profileView === "edit-account" ? "gray.100" : void 0,
|
|
4100
4311
|
children: [
|
|
4101
|
-
/* @__PURE__ */
|
|
4102
|
-
/* @__PURE__ */
|
|
4103
|
-
|
|
4312
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4313
|
+
/* @__PURE__ */ jsx20(
|
|
4314
|
+
Box17,
|
|
4104
4315
|
{
|
|
4105
4316
|
w: "38px",
|
|
4106
4317
|
h: "38px",
|
|
@@ -4111,23 +4322,23 @@ function ReusableProfile({
|
|
|
4111
4322
|
justifyContent: "center",
|
|
4112
4323
|
color: "gray.600",
|
|
4113
4324
|
flexShrink: 0,
|
|
4114
|
-
children: /* @__PURE__ */
|
|
4325
|
+
children: /* @__PURE__ */ jsx20(LuUser, { size: 16 })
|
|
4115
4326
|
}
|
|
4116
4327
|
),
|
|
4117
|
-
/* @__PURE__ */
|
|
4118
|
-
/* @__PURE__ */
|
|
4119
|
-
/* @__PURE__ */
|
|
4328
|
+
/* @__PURE__ */ jsxs17(Box17, { children: [
|
|
4329
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Edit Account" }),
|
|
4330
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: "Update your display name and contact details" })
|
|
4120
4331
|
] })
|
|
4121
4332
|
] }),
|
|
4122
|
-
/* @__PURE__ */
|
|
4333
|
+
/* @__PURE__ */ jsx20(LuChevronRight3, { size: 16, color: "var(--chakra-colors-gray-400)" })
|
|
4123
4334
|
]
|
|
4124
4335
|
}
|
|
4125
4336
|
)
|
|
4126
4337
|
}
|
|
4127
4338
|
),
|
|
4128
|
-
/* @__PURE__ */
|
|
4129
|
-
/* @__PURE__ */
|
|
4130
|
-
|
|
4339
|
+
/* @__PURE__ */ jsx20(Separator4, {}),
|
|
4340
|
+
/* @__PURE__ */ jsx20(
|
|
4341
|
+
Box17,
|
|
4131
4342
|
{
|
|
4132
4343
|
as: "button",
|
|
4133
4344
|
w: "full",
|
|
@@ -4138,8 +4349,8 @@ function ReusableProfile({
|
|
|
4138
4349
|
resetPasswordForm();
|
|
4139
4350
|
setProfileView("change-password");
|
|
4140
4351
|
},
|
|
4141
|
-
children: /* @__PURE__ */
|
|
4142
|
-
|
|
4352
|
+
children: /* @__PURE__ */ jsxs17(
|
|
4353
|
+
Flex10,
|
|
4143
4354
|
{
|
|
4144
4355
|
justify: "space-between",
|
|
4145
4356
|
align: "center",
|
|
@@ -4148,9 +4359,9 @@ function ReusableProfile({
|
|
|
4148
4359
|
borderRadius: "lg",
|
|
4149
4360
|
bg: isDesktop && profileView === "change-password" ? "gray.100" : void 0,
|
|
4150
4361
|
children: [
|
|
4151
|
-
/* @__PURE__ */
|
|
4152
|
-
/* @__PURE__ */
|
|
4153
|
-
|
|
4362
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4363
|
+
/* @__PURE__ */ jsx20(
|
|
4364
|
+
Box17,
|
|
4154
4365
|
{
|
|
4155
4366
|
w: "38px",
|
|
4156
4367
|
h: "38px",
|
|
@@ -4161,25 +4372,25 @@ function ReusableProfile({
|
|
|
4161
4372
|
justifyContent: "center",
|
|
4162
4373
|
color: "gray.600",
|
|
4163
4374
|
flexShrink: 0,
|
|
4164
|
-
children: /* @__PURE__ */
|
|
4375
|
+
children: /* @__PURE__ */ jsx20(LuLock, { size: 16 })
|
|
4165
4376
|
}
|
|
4166
4377
|
),
|
|
4167
|
-
/* @__PURE__ */
|
|
4168
|
-
/* @__PURE__ */
|
|
4169
|
-
/* @__PURE__ */
|
|
4378
|
+
/* @__PURE__ */ jsxs17(Box17, { children: [
|
|
4379
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Change Password" }),
|
|
4380
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: "Test locally through the callback prop" })
|
|
4170
4381
|
] })
|
|
4171
4382
|
] }),
|
|
4172
|
-
/* @__PURE__ */
|
|
4383
|
+
/* @__PURE__ */ jsx20(LuChevronRight3, { size: 16, color: "var(--chakra-colors-gray-400)" })
|
|
4173
4384
|
]
|
|
4174
4385
|
}
|
|
4175
4386
|
)
|
|
4176
4387
|
}
|
|
4177
4388
|
),
|
|
4178
|
-
/* @__PURE__ */
|
|
4179
|
-
/* @__PURE__ */
|
|
4180
|
-
/* @__PURE__ */
|
|
4181
|
-
/* @__PURE__ */
|
|
4182
|
-
|
|
4389
|
+
/* @__PURE__ */ jsx20(Separator4, {}),
|
|
4390
|
+
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4391
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4392
|
+
/* @__PURE__ */ jsx20(
|
|
4393
|
+
Box17,
|
|
4183
4394
|
{
|
|
4184
4395
|
w: "38px",
|
|
4185
4396
|
h: "38px",
|
|
@@ -4190,16 +4401,16 @@ function ReusableProfile({
|
|
|
4190
4401
|
justifyContent: "center",
|
|
4191
4402
|
color: "gray.600",
|
|
4192
4403
|
flexShrink: 0,
|
|
4193
|
-
children: /* @__PURE__ */
|
|
4404
|
+
children: /* @__PURE__ */ jsx20(LuShield, { size: 16 })
|
|
4194
4405
|
}
|
|
4195
4406
|
),
|
|
4196
|
-
/* @__PURE__ */
|
|
4197
|
-
/* @__PURE__ */
|
|
4198
|
-
/* @__PURE__ */
|
|
4407
|
+
/* @__PURE__ */ jsxs17(Box17, { children: [
|
|
4408
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Two Factor Authentication" }),
|
|
4409
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: twoFactorEnabled ? "Enabled" : "Disabled" })
|
|
4199
4410
|
] })
|
|
4200
4411
|
] }),
|
|
4201
|
-
/* @__PURE__ */
|
|
4202
|
-
|
|
4412
|
+
/* @__PURE__ */ jsx20(
|
|
4413
|
+
Box17,
|
|
4203
4414
|
{
|
|
4204
4415
|
role: "switch",
|
|
4205
4416
|
"aria-checked": twoFactorEnabled,
|
|
@@ -4221,8 +4432,8 @@ function ReusableProfile({
|
|
|
4221
4432
|
cursor: "pointer",
|
|
4222
4433
|
flexShrink: 0,
|
|
4223
4434
|
outline: "none",
|
|
4224
|
-
children: /* @__PURE__ */
|
|
4225
|
-
|
|
4435
|
+
children: /* @__PURE__ */ jsx20(
|
|
4436
|
+
Box17,
|
|
4226
4437
|
{
|
|
4227
4438
|
position: "absolute",
|
|
4228
4439
|
top: "3px",
|
|
@@ -4239,9 +4450,9 @@ function ReusableProfile({
|
|
|
4239
4450
|
)
|
|
4240
4451
|
] })
|
|
4241
4452
|
] }),
|
|
4242
|
-
/* @__PURE__ */
|
|
4243
|
-
/* @__PURE__ */
|
|
4244
|
-
|
|
4453
|
+
/* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 4, pb: 2, children: [
|
|
4454
|
+
/* @__PURE__ */ jsx20(
|
|
4455
|
+
Text10,
|
|
4245
4456
|
{
|
|
4246
4457
|
fontSize: "xs",
|
|
4247
4458
|
fontWeight: "bold",
|
|
@@ -4252,10 +4463,10 @@ function ReusableProfile({
|
|
|
4252
4463
|
children: "Preferences"
|
|
4253
4464
|
}
|
|
4254
4465
|
),
|
|
4255
|
-
/* @__PURE__ */
|
|
4256
|
-
/* @__PURE__ */
|
|
4257
|
-
/* @__PURE__ */
|
|
4258
|
-
|
|
4466
|
+
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4467
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4468
|
+
/* @__PURE__ */ jsx20(
|
|
4469
|
+
Box17,
|
|
4259
4470
|
{
|
|
4260
4471
|
w: "38px",
|
|
4261
4472
|
h: "38px",
|
|
@@ -4266,18 +4477,18 @@ function ReusableProfile({
|
|
|
4266
4477
|
justifyContent: "center",
|
|
4267
4478
|
color: "gray.600",
|
|
4268
4479
|
flexShrink: 0,
|
|
4269
|
-
children: colorMode === "dark" ? /* @__PURE__ */
|
|
4480
|
+
children: colorMode === "dark" ? /* @__PURE__ */ jsx20(LuMoon, { size: 16 }) : /* @__PURE__ */ jsx20(LuSun, { size: 16 })
|
|
4270
4481
|
}
|
|
4271
4482
|
),
|
|
4272
|
-
/* @__PURE__ */
|
|
4273
|
-
/* @__PURE__ */
|
|
4274
|
-
/* @__PURE__ */
|
|
4483
|
+
/* @__PURE__ */ jsxs17(Box17, { children: [
|
|
4484
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Appearance" }),
|
|
4485
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: colorMode === "light" ? "Light mode" : "Dark mode" })
|
|
4275
4486
|
] })
|
|
4276
4487
|
] }),
|
|
4277
|
-
/* @__PURE__ */
|
|
4488
|
+
/* @__PURE__ */ jsx20(HStack6, { gap: 1.5, children: ["light", "dark"].map((mode) => {
|
|
4278
4489
|
const isActive = colorMode === mode;
|
|
4279
|
-
return /* @__PURE__ */
|
|
4280
|
-
|
|
4490
|
+
return /* @__PURE__ */ jsxs17(
|
|
4491
|
+
Button4,
|
|
4281
4492
|
{
|
|
4282
4493
|
size: "sm",
|
|
4283
4494
|
variant: "outline",
|
|
@@ -4292,9 +4503,9 @@ function ReusableProfile({
|
|
|
4292
4503
|
},
|
|
4293
4504
|
onClick: () => handleColorMode(mode),
|
|
4294
4505
|
children: [
|
|
4295
|
-
mode === "light" ? /* @__PURE__ */
|
|
4296
|
-
/* @__PURE__ */
|
|
4297
|
-
|
|
4506
|
+
mode === "light" ? /* @__PURE__ */ jsx20(LuSun, { size: 13 }) : /* @__PURE__ */ jsx20(LuMoon, { size: 13 }),
|
|
4507
|
+
/* @__PURE__ */ jsx20(
|
|
4508
|
+
Text10,
|
|
4298
4509
|
{
|
|
4299
4510
|
fontSize: "xs",
|
|
4300
4511
|
textTransform: "capitalize",
|
|
@@ -4308,11 +4519,11 @@ function ReusableProfile({
|
|
|
4308
4519
|
);
|
|
4309
4520
|
}) })
|
|
4310
4521
|
] }),
|
|
4311
|
-
/* @__PURE__ */
|
|
4312
|
-
/* @__PURE__ */
|
|
4313
|
-
/* @__PURE__ */
|
|
4314
|
-
/* @__PURE__ */
|
|
4315
|
-
|
|
4522
|
+
/* @__PURE__ */ jsx20(Separator4, {}),
|
|
4523
|
+
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4524
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4525
|
+
/* @__PURE__ */ jsx20(
|
|
4526
|
+
Box17,
|
|
4316
4527
|
{
|
|
4317
4528
|
w: "38px",
|
|
4318
4529
|
h: "38px",
|
|
@@ -4328,15 +4539,15 @@ function ReusableProfile({
|
|
|
4328
4539
|
children: "A"
|
|
4329
4540
|
}
|
|
4330
4541
|
),
|
|
4331
|
-
/* @__PURE__ */
|
|
4332
|
-
/* @__PURE__ */
|
|
4333
|
-
/* @__PURE__ */
|
|
4542
|
+
/* @__PURE__ */ jsxs17(Box17, { children: [
|
|
4543
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Text Size" }),
|
|
4544
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "gray.500", children: fontSizeLabel })
|
|
4334
4545
|
] })
|
|
4335
4546
|
] }),
|
|
4336
|
-
/* @__PURE__ */
|
|
4547
|
+
/* @__PURE__ */ jsx20(HStack6, { gap: 1, children: FONT_SIZES.map((option) => {
|
|
4337
4548
|
const isActive = fontSize === option.value;
|
|
4338
|
-
return /* @__PURE__ */
|
|
4339
|
-
|
|
4549
|
+
return /* @__PURE__ */ jsx20(
|
|
4550
|
+
Button4,
|
|
4340
4551
|
{
|
|
4341
4552
|
size: "sm",
|
|
4342
4553
|
variant: "outline",
|
|
@@ -4351,8 +4562,8 @@ function ReusableProfile({
|
|
|
4351
4562
|
},
|
|
4352
4563
|
onClick: () => handleFontSize(option.value),
|
|
4353
4564
|
title: option.title,
|
|
4354
|
-
children: /* @__PURE__ */
|
|
4355
|
-
|
|
4565
|
+
children: /* @__PURE__ */ jsx20(
|
|
4566
|
+
Text10,
|
|
4356
4567
|
{
|
|
4357
4568
|
fontWeight: isActive ? "bold" : "normal",
|
|
4358
4569
|
style: { fontSize: `${option.scale * 13}px` },
|
|
@@ -4364,9 +4575,9 @@ function ReusableProfile({
|
|
|
4364
4575
|
);
|
|
4365
4576
|
}) })
|
|
4366
4577
|
] }),
|
|
4367
|
-
/* @__PURE__ */
|
|
4368
|
-
/* @__PURE__ */
|
|
4369
|
-
|
|
4578
|
+
/* @__PURE__ */ jsx20(Separator4, {}),
|
|
4579
|
+
/* @__PURE__ */ jsx20(
|
|
4580
|
+
Box17,
|
|
4370
4581
|
{
|
|
4371
4582
|
as: "button",
|
|
4372
4583
|
w: "full",
|
|
@@ -4374,10 +4585,10 @@ function ReusableProfile({
|
|
|
4374
4585
|
_hover: { opacity: 0.7 },
|
|
4375
4586
|
transition: "opacity 0.15s",
|
|
4376
4587
|
onClick: () => setProfileView("navbar-customize"),
|
|
4377
|
-
children: /* @__PURE__ */
|
|
4378
|
-
/* @__PURE__ */
|
|
4379
|
-
/* @__PURE__ */
|
|
4380
|
-
|
|
4588
|
+
children: /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4589
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4590
|
+
/* @__PURE__ */ jsx20(
|
|
4591
|
+
Box17,
|
|
4381
4592
|
{
|
|
4382
4593
|
w: "38px",
|
|
4383
4594
|
h: "38px",
|
|
@@ -4388,12 +4599,12 @@ function ReusableProfile({
|
|
|
4388
4599
|
justifyContent: "center",
|
|
4389
4600
|
color: "gray.600",
|
|
4390
4601
|
flexShrink: 0,
|
|
4391
|
-
children: /* @__PURE__ */
|
|
4602
|
+
children: /* @__PURE__ */ jsx20(LuArrowLeftRight, { size: 16 })
|
|
4392
4603
|
}
|
|
4393
4604
|
),
|
|
4394
|
-
/* @__PURE__ */
|
|
4395
|
-
/* @__PURE__ */
|
|
4396
|
-
/* @__PURE__ */
|
|
4605
|
+
/* @__PURE__ */ jsxs17(Box17, { children: [
|
|
4606
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "semibold", children: "Quick Navigation" }),
|
|
4607
|
+
/* @__PURE__ */ jsxs17(Text10, { fontSize: "xs", color: "gray.500", children: [
|
|
4397
4608
|
quickNavHrefs.length,
|
|
4398
4609
|
" of ",
|
|
4399
4610
|
maxQuickNavItems,
|
|
@@ -4401,13 +4612,13 @@ function ReusableProfile({
|
|
|
4401
4612
|
] })
|
|
4402
4613
|
] })
|
|
4403
4614
|
] }),
|
|
4404
|
-
/* @__PURE__ */
|
|
4615
|
+
/* @__PURE__ */ jsx20(LuChevronRight3, { size: 16, color: "var(--chakra-colors-gray-400)" })
|
|
4405
4616
|
] })
|
|
4406
4617
|
}
|
|
4407
4618
|
)
|
|
4408
4619
|
] }),
|
|
4409
|
-
/* @__PURE__ */
|
|
4410
|
-
|
|
4620
|
+
/* @__PURE__ */ jsx20(Box17, { px: 4, pt: 4, pb: 10, children: /* @__PURE__ */ jsx20(VStack9, { gap: 2.5, children: /* @__PURE__ */ jsx20(
|
|
4621
|
+
Button4,
|
|
4411
4622
|
{
|
|
4412
4623
|
w: "full",
|
|
4413
4624
|
variant: "outline",
|
|
@@ -4419,9 +4630,9 @@ function ReusableProfile({
|
|
|
4419
4630
|
}
|
|
4420
4631
|
) }) })
|
|
4421
4632
|
] });
|
|
4422
|
-
const editAccountContent = /* @__PURE__ */
|
|
4423
|
-
/* @__PURE__ */
|
|
4424
|
-
/* @__PURE__ */
|
|
4633
|
+
const editAccountContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
4634
|
+
/* @__PURE__ */ jsx20(Box17, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
|
|
4635
|
+
/* @__PURE__ */ jsx20(
|
|
4425
4636
|
IconButton3,
|
|
4426
4637
|
{
|
|
4427
4638
|
size: "sm",
|
|
@@ -4429,19 +4640,19 @@ function ReusableProfile({
|
|
|
4429
4640
|
"aria-label": "Back",
|
|
4430
4641
|
color: "gray.600",
|
|
4431
4642
|
onClick: () => setProfileView("main"),
|
|
4432
|
-
children: /* @__PURE__ */
|
|
4643
|
+
children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
|
|
4433
4644
|
}
|
|
4434
4645
|
),
|
|
4435
|
-
/* @__PURE__ */
|
|
4646
|
+
/* @__PURE__ */ jsx20(Text10, { fontWeight: "bold", fontSize: "md", children: "Edit Account" })
|
|
4436
4647
|
] }) }),
|
|
4437
|
-
/* @__PURE__ */
|
|
4438
|
-
user.avatarSrc && /* @__PURE__ */
|
|
4439
|
-
/* @__PURE__ */
|
|
4648
|
+
/* @__PURE__ */ jsx20(Box17, { textAlign: "center", pt: 5, pb: 4, children: /* @__PURE__ */ jsxs17(Avatar.Root, { size: "xl", mx: "auto", mb: 1, children: [
|
|
4649
|
+
user.avatarSrc && /* @__PURE__ */ jsx20(Avatar.Image, { src: user.avatarSrc, alt: editName }),
|
|
4650
|
+
/* @__PURE__ */ jsx20(Avatar.Fallback, { name: editName })
|
|
4440
4651
|
] }) }),
|
|
4441
|
-
/* @__PURE__ */
|
|
4442
|
-
/* @__PURE__ */
|
|
4443
|
-
/* @__PURE__ */
|
|
4444
|
-
/* @__PURE__ */
|
|
4652
|
+
/* @__PURE__ */ jsxs17(VStack9, { gap: 4, px: 4, pb: 10, align: "stretch", children: [
|
|
4653
|
+
/* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
|
|
4654
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Display Name" }),
|
|
4655
|
+
/* @__PURE__ */ jsx20(
|
|
4445
4656
|
Input4,
|
|
4446
4657
|
{
|
|
4447
4658
|
value: editName,
|
|
@@ -4451,9 +4662,9 @@ function ReusableProfile({
|
|
|
4451
4662
|
}
|
|
4452
4663
|
)
|
|
4453
4664
|
] }),
|
|
4454
|
-
/* @__PURE__ */
|
|
4455
|
-
/* @__PURE__ */
|
|
4456
|
-
/* @__PURE__ */
|
|
4665
|
+
/* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
|
|
4666
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Email" }),
|
|
4667
|
+
/* @__PURE__ */ jsx20(
|
|
4457
4668
|
Input4,
|
|
4458
4669
|
{
|
|
4459
4670
|
value: user.email ?? "",
|
|
@@ -4464,9 +4675,9 @@ function ReusableProfile({
|
|
|
4464
4675
|
}
|
|
4465
4676
|
)
|
|
4466
4677
|
] }),
|
|
4467
|
-
/* @__PURE__ */
|
|
4468
|
-
/* @__PURE__ */
|
|
4469
|
-
/* @__PURE__ */
|
|
4678
|
+
/* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
|
|
4679
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Mobile Number" }),
|
|
4680
|
+
/* @__PURE__ */ jsx20(
|
|
4470
4681
|
Input4,
|
|
4471
4682
|
{
|
|
4472
4683
|
value: user.mobileNumber ?? "",
|
|
@@ -4477,8 +4688,8 @@ function ReusableProfile({
|
|
|
4477
4688
|
}
|
|
4478
4689
|
)
|
|
4479
4690
|
] }),
|
|
4480
|
-
/* @__PURE__ */
|
|
4481
|
-
|
|
4691
|
+
/* @__PURE__ */ jsx20(
|
|
4692
|
+
Button4,
|
|
4482
4693
|
{
|
|
4483
4694
|
w: "full",
|
|
4484
4695
|
mt: 2,
|
|
@@ -4492,9 +4703,9 @@ function ReusableProfile({
|
|
|
4492
4703
|
)
|
|
4493
4704
|
] })
|
|
4494
4705
|
] });
|
|
4495
|
-
const changePasswordContent = /* @__PURE__ */
|
|
4496
|
-
/* @__PURE__ */
|
|
4497
|
-
/* @__PURE__ */
|
|
4706
|
+
const changePasswordContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
4707
|
+
/* @__PURE__ */ jsx20(Box17, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
|
|
4708
|
+
/* @__PURE__ */ jsx20(
|
|
4498
4709
|
IconButton3,
|
|
4499
4710
|
{
|
|
4500
4711
|
size: "sm",
|
|
@@ -4502,18 +4713,18 @@ function ReusableProfile({
|
|
|
4502
4713
|
"aria-label": "Back",
|
|
4503
4714
|
color: "gray.600",
|
|
4504
4715
|
onClick: () => setProfileView("main"),
|
|
4505
|
-
children: /* @__PURE__ */
|
|
4716
|
+
children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
|
|
4506
4717
|
}
|
|
4507
4718
|
),
|
|
4508
|
-
/* @__PURE__ */
|
|
4719
|
+
/* @__PURE__ */ jsx20(Text10, { fontWeight: "bold", fontSize: "md", children: "Change Password" })
|
|
4509
4720
|
] }) }),
|
|
4510
|
-
/* @__PURE__ */
|
|
4511
|
-
/* @__PURE__ */
|
|
4512
|
-
/* @__PURE__ */
|
|
4513
|
-
/* @__PURE__ */
|
|
4721
|
+
/* @__PURE__ */ jsxs17(VStack9, { gap: 5, px: 4, pt: 6, pb: 10, children: [
|
|
4722
|
+
/* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
|
|
4723
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Current Password" }),
|
|
4724
|
+
/* @__PURE__ */ jsx20(
|
|
4514
4725
|
InputGroup,
|
|
4515
4726
|
{
|
|
4516
|
-
endElement: /* @__PURE__ */
|
|
4727
|
+
endElement: /* @__PURE__ */ jsx20(
|
|
4517
4728
|
IconButton3,
|
|
4518
4729
|
{
|
|
4519
4730
|
size: "xs",
|
|
@@ -4521,10 +4732,10 @@ function ReusableProfile({
|
|
|
4521
4732
|
color: "gray.500",
|
|
4522
4733
|
"aria-label": "Toggle current password visibility",
|
|
4523
4734
|
onClick: () => setShowCurrentPw(!showCurrentPw),
|
|
4524
|
-
children: showCurrentPw ? /* @__PURE__ */
|
|
4735
|
+
children: showCurrentPw ? /* @__PURE__ */ jsx20(LuEyeOff, { size: 15 }) : /* @__PURE__ */ jsx20(LuEye, { size: 15 })
|
|
4525
4736
|
}
|
|
4526
4737
|
),
|
|
4527
|
-
children: /* @__PURE__ */
|
|
4738
|
+
children: /* @__PURE__ */ jsx20(
|
|
4528
4739
|
Input4,
|
|
4529
4740
|
{
|
|
4530
4741
|
type: showCurrentPw ? "text" : "password",
|
|
@@ -4537,12 +4748,12 @@ function ReusableProfile({
|
|
|
4537
4748
|
}
|
|
4538
4749
|
)
|
|
4539
4750
|
] }),
|
|
4540
|
-
/* @__PURE__ */
|
|
4541
|
-
/* @__PURE__ */
|
|
4542
|
-
/* @__PURE__ */
|
|
4751
|
+
/* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
|
|
4752
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "New Password" }),
|
|
4753
|
+
/* @__PURE__ */ jsx20(
|
|
4543
4754
|
InputGroup,
|
|
4544
4755
|
{
|
|
4545
|
-
endElement: /* @__PURE__ */
|
|
4756
|
+
endElement: /* @__PURE__ */ jsx20(
|
|
4546
4757
|
IconButton3,
|
|
4547
4758
|
{
|
|
4548
4759
|
size: "xs",
|
|
@@ -4550,10 +4761,10 @@ function ReusableProfile({
|
|
|
4550
4761
|
color: "gray.500",
|
|
4551
4762
|
"aria-label": "Toggle new password visibility",
|
|
4552
4763
|
onClick: () => setShowNewPw(!showNewPw),
|
|
4553
|
-
children: showNewPw ? /* @__PURE__ */
|
|
4764
|
+
children: showNewPw ? /* @__PURE__ */ jsx20(LuEyeOff, { size: 15 }) : /* @__PURE__ */ jsx20(LuEye, { size: 15 })
|
|
4554
4765
|
}
|
|
4555
4766
|
),
|
|
4556
|
-
children: /* @__PURE__ */
|
|
4767
|
+
children: /* @__PURE__ */ jsx20(
|
|
4557
4768
|
Input4,
|
|
4558
4769
|
{
|
|
4559
4770
|
type: showNewPw ? "text" : "password",
|
|
@@ -4565,9 +4776,9 @@ function ReusableProfile({
|
|
|
4565
4776
|
)
|
|
4566
4777
|
}
|
|
4567
4778
|
),
|
|
4568
|
-
newPw && /* @__PURE__ */
|
|
4569
|
-
/* @__PURE__ */
|
|
4570
|
-
|
|
4779
|
+
newPw && /* @__PURE__ */ jsxs17(Box17, { mt: 2, children: [
|
|
4780
|
+
/* @__PURE__ */ jsx20(Flex10, { gap: 1, mb: 1, children: [1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx20(
|
|
4781
|
+
Box17,
|
|
4571
4782
|
{
|
|
4572
4783
|
flex: 1,
|
|
4573
4784
|
h: "3px",
|
|
@@ -4577,15 +4788,15 @@ function ReusableProfile({
|
|
|
4577
4788
|
},
|
|
4578
4789
|
i
|
|
4579
4790
|
)) }),
|
|
4580
|
-
/* @__PURE__ */
|
|
4791
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: pwMeta.color, fontWeight: "medium", children: pwMeta.label })
|
|
4581
4792
|
] })
|
|
4582
4793
|
] }),
|
|
4583
|
-
/* @__PURE__ */
|
|
4584
|
-
/* @__PURE__ */
|
|
4585
|
-
/* @__PURE__ */
|
|
4794
|
+
/* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
|
|
4795
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Confirm New Password" }),
|
|
4796
|
+
/* @__PURE__ */ jsx20(
|
|
4586
4797
|
InputGroup,
|
|
4587
4798
|
{
|
|
4588
|
-
endElement: /* @__PURE__ */
|
|
4799
|
+
endElement: /* @__PURE__ */ jsx20(
|
|
4589
4800
|
IconButton3,
|
|
4590
4801
|
{
|
|
4591
4802
|
size: "xs",
|
|
@@ -4593,10 +4804,10 @@ function ReusableProfile({
|
|
|
4593
4804
|
color: "gray.500",
|
|
4594
4805
|
"aria-label": "Toggle confirm password visibility",
|
|
4595
4806
|
onClick: () => setShowConfirmPw(!showConfirmPw),
|
|
4596
|
-
children: showConfirmPw ? /* @__PURE__ */
|
|
4807
|
+
children: showConfirmPw ? /* @__PURE__ */ jsx20(LuEyeOff, { size: 15 }) : /* @__PURE__ */ jsx20(LuEye, { size: 15 })
|
|
4597
4808
|
}
|
|
4598
4809
|
),
|
|
4599
|
-
children: /* @__PURE__ */
|
|
4810
|
+
children: /* @__PURE__ */ jsx20(
|
|
4600
4811
|
Input4,
|
|
4601
4812
|
{
|
|
4602
4813
|
type: showConfirmPw ? "text" : "password",
|
|
@@ -4608,10 +4819,10 @@ function ReusableProfile({
|
|
|
4608
4819
|
)
|
|
4609
4820
|
}
|
|
4610
4821
|
),
|
|
4611
|
-
confirmPw && confirmPw !== newPw && /* @__PURE__ */
|
|
4822
|
+
confirmPw && confirmPw !== newPw && /* @__PURE__ */ jsx20(Text10, { fontSize: "xs", color: "red.500", mt: 1, children: "Passwords do not match" })
|
|
4612
4823
|
] }),
|
|
4613
|
-
/* @__PURE__ */
|
|
4614
|
-
|
|
4824
|
+
/* @__PURE__ */ jsx20(
|
|
4825
|
+
Button4,
|
|
4615
4826
|
{
|
|
4616
4827
|
w: "full",
|
|
4617
4828
|
mt: 1,
|
|
@@ -4626,9 +4837,9 @@ function ReusableProfile({
|
|
|
4626
4837
|
)
|
|
4627
4838
|
] })
|
|
4628
4839
|
] });
|
|
4629
|
-
const navbarCustomizeContent = /* @__PURE__ */
|
|
4630
|
-
/* @__PURE__ */
|
|
4631
|
-
|
|
4840
|
+
const navbarCustomizeContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
4841
|
+
/* @__PURE__ */ jsx20(
|
|
4842
|
+
Box17,
|
|
4632
4843
|
{
|
|
4633
4844
|
px: 4,
|
|
4634
4845
|
pt: 4,
|
|
@@ -4639,8 +4850,8 @@ function ReusableProfile({
|
|
|
4639
4850
|
top: 0,
|
|
4640
4851
|
bg: "bg",
|
|
4641
4852
|
zIndex: 1,
|
|
4642
|
-
children: /* @__PURE__ */
|
|
4643
|
-
/* @__PURE__ */
|
|
4853
|
+
children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
|
|
4854
|
+
/* @__PURE__ */ jsx20(
|
|
4644
4855
|
IconButton3,
|
|
4645
4856
|
{
|
|
4646
4857
|
size: "sm",
|
|
@@ -4651,12 +4862,12 @@ function ReusableProfile({
|
|
|
4651
4862
|
setReplacingIdx(null);
|
|
4652
4863
|
setProfileView("main");
|
|
4653
4864
|
},
|
|
4654
|
-
children: /* @__PURE__ */
|
|
4865
|
+
children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
|
|
4655
4866
|
}
|
|
4656
4867
|
),
|
|
4657
|
-
/* @__PURE__ */
|
|
4658
|
-
/* @__PURE__ */
|
|
4659
|
-
/* @__PURE__ */
|
|
4868
|
+
/* @__PURE__ */ jsxs17(Box17, { children: [
|
|
4869
|
+
/* @__PURE__ */ jsx20(Text10, { fontWeight: "bold", fontSize: "md", children: "Quick Navigation" }),
|
|
4870
|
+
/* @__PURE__ */ jsxs17(Text10, { fontSize: "xs", color: "gray.500", children: [
|
|
4660
4871
|
"Choose up to ",
|
|
4661
4872
|
maxQuickNavItems,
|
|
4662
4873
|
" shortcuts for the bottom bar"
|
|
@@ -4665,10 +4876,10 @@ function ReusableProfile({
|
|
|
4665
4876
|
] })
|
|
4666
4877
|
}
|
|
4667
4878
|
),
|
|
4668
|
-
/* @__PURE__ */
|
|
4669
|
-
/* @__PURE__ */
|
|
4670
|
-
/* @__PURE__ */
|
|
4671
|
-
|
|
4879
|
+
/* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 5, pb: 2, children: [
|
|
4880
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
|
|
4881
|
+
/* @__PURE__ */ jsx20(
|
|
4882
|
+
Text10,
|
|
4672
4883
|
{
|
|
4673
4884
|
fontSize: "xs",
|
|
4674
4885
|
fontWeight: "bold",
|
|
@@ -4678,8 +4889,8 @@ function ReusableProfile({
|
|
|
4678
4889
|
children: "Pinned"
|
|
4679
4890
|
}
|
|
4680
4891
|
),
|
|
4681
|
-
/* @__PURE__ */
|
|
4682
|
-
|
|
4892
|
+
/* @__PURE__ */ jsxs17(
|
|
4893
|
+
Text10,
|
|
4683
4894
|
{
|
|
4684
4895
|
fontSize: "xs",
|
|
4685
4896
|
color: quickNavHrefs.length >= maxQuickNavItems ? "orange.500" : "gray.400",
|
|
@@ -4692,8 +4903,8 @@ function ReusableProfile({
|
|
|
4692
4903
|
}
|
|
4693
4904
|
)
|
|
4694
4905
|
] }),
|
|
4695
|
-
quickNavHrefs.length === 0 ? /* @__PURE__ */
|
|
4696
|
-
|
|
4906
|
+
quickNavHrefs.length === 0 ? /* @__PURE__ */ jsx20(
|
|
4907
|
+
Flex10,
|
|
4697
4908
|
{
|
|
4698
4909
|
align: "center",
|
|
4699
4910
|
justify: "center",
|
|
@@ -4702,18 +4913,18 @@ function ReusableProfile({
|
|
|
4702
4913
|
borderWidth: "1px",
|
|
4703
4914
|
borderStyle: "dashed",
|
|
4704
4915
|
borderColor: "gray.200",
|
|
4705
|
-
children: /* @__PURE__ */
|
|
4916
|
+
children: /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", color: "gray.400", children: "No items pinned \u2014 add from below" })
|
|
4706
4917
|
}
|
|
4707
|
-
) : /* @__PURE__ */
|
|
4918
|
+
) : /* @__PURE__ */ jsx20(VStack9, { gap: 0, children: quickNavHrefs.map((href, idx) => {
|
|
4708
4919
|
const option = availableOptions.find((item) => item.key === href);
|
|
4709
4920
|
if (!option) return null;
|
|
4710
4921
|
const ItemIcon = option.Icon;
|
|
4711
4922
|
const isFirst = idx === 0;
|
|
4712
4923
|
const isLast = idx === quickNavHrefs.length - 1;
|
|
4713
4924
|
const isReplacing = replacingIdx === idx;
|
|
4714
|
-
return /* @__PURE__ */
|
|
4715
|
-
/* @__PURE__ */
|
|
4716
|
-
|
|
4925
|
+
return /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
|
|
4926
|
+
/* @__PURE__ */ jsxs17(
|
|
4927
|
+
Flex10,
|
|
4717
4928
|
{
|
|
4718
4929
|
justify: "space-between",
|
|
4719
4930
|
align: "center",
|
|
@@ -4725,9 +4936,9 @@ function ReusableProfile({
|
|
|
4725
4936
|
borderColor: isReplacing ? "orange.200" : void 0,
|
|
4726
4937
|
transition: "all 0.15s",
|
|
4727
4938
|
children: [
|
|
4728
|
-
/* @__PURE__ */
|
|
4729
|
-
/* @__PURE__ */
|
|
4730
|
-
|
|
4939
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4940
|
+
/* @__PURE__ */ jsx20(
|
|
4941
|
+
Box17,
|
|
4731
4942
|
{
|
|
4732
4943
|
w: "36px",
|
|
4733
4944
|
h: "36px",
|
|
@@ -4738,13 +4949,13 @@ function ReusableProfile({
|
|
|
4738
4949
|
justifyContent: "center",
|
|
4739
4950
|
color: "white",
|
|
4740
4951
|
flexShrink: 0,
|
|
4741
|
-
children: /* @__PURE__ */
|
|
4952
|
+
children: /* @__PURE__ */ jsx20(ItemIcon, { size: 15 })
|
|
4742
4953
|
}
|
|
4743
4954
|
),
|
|
4744
|
-
/* @__PURE__ */
|
|
4745
|
-
/* @__PURE__ */
|
|
4746
|
-
isReplacing && /* @__PURE__ */
|
|
4747
|
-
|
|
4955
|
+
/* @__PURE__ */ jsxs17(Box17, { children: [
|
|
4956
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "sm", fontWeight: "medium", children: option.title }),
|
|
4957
|
+
isReplacing && /* @__PURE__ */ jsx20(
|
|
4958
|
+
Text10,
|
|
4748
4959
|
{
|
|
4749
4960
|
fontSize: "xs",
|
|
4750
4961
|
color: "orange.500",
|
|
@@ -4754,8 +4965,8 @@ function ReusableProfile({
|
|
|
4754
4965
|
)
|
|
4755
4966
|
] })
|
|
4756
4967
|
] }),
|
|
4757
|
-
/* @__PURE__ */
|
|
4758
|
-
/* @__PURE__ */
|
|
4968
|
+
/* @__PURE__ */ jsxs17(HStack6, { gap: 0.5, children: [
|
|
4969
|
+
/* @__PURE__ */ jsx20(
|
|
4759
4970
|
IconButton3,
|
|
4760
4971
|
{
|
|
4761
4972
|
size: "xs",
|
|
@@ -4764,10 +4975,10 @@ function ReusableProfile({
|
|
|
4764
4975
|
color: "gray.500",
|
|
4765
4976
|
disabled: isFirst || isReplacing,
|
|
4766
4977
|
onClick: () => moveNavItem(idx, -1),
|
|
4767
|
-
children: /* @__PURE__ */
|
|
4978
|
+
children: /* @__PURE__ */ jsx20(LuChevronUp3, { size: 14 })
|
|
4768
4979
|
}
|
|
4769
4980
|
),
|
|
4770
|
-
/* @__PURE__ */
|
|
4981
|
+
/* @__PURE__ */ jsx20(
|
|
4771
4982
|
IconButton3,
|
|
4772
4983
|
{
|
|
4773
4984
|
size: "xs",
|
|
@@ -4776,10 +4987,10 @@ function ReusableProfile({
|
|
|
4776
4987
|
color: "gray.500",
|
|
4777
4988
|
disabled: isLast || isReplacing,
|
|
4778
4989
|
onClick: () => moveNavItem(idx, 1),
|
|
4779
|
-
children: /* @__PURE__ */
|
|
4990
|
+
children: /* @__PURE__ */ jsx20(LuChevronDown3, { size: 14 })
|
|
4780
4991
|
}
|
|
4781
4992
|
),
|
|
4782
|
-
/* @__PURE__ */
|
|
4993
|
+
/* @__PURE__ */ jsx20(
|
|
4783
4994
|
IconButton3,
|
|
4784
4995
|
{
|
|
4785
4996
|
size: "xs",
|
|
@@ -4789,10 +5000,10 @@ function ReusableProfile({
|
|
|
4789
5000
|
color: isReplacing ? "white" : "gray.500",
|
|
4790
5001
|
_hover: { bg: isReplacing ? "orange.500" : "gray.100" },
|
|
4791
5002
|
onClick: () => setReplacingIdx(isReplacing ? null : idx),
|
|
4792
|
-
children: /* @__PURE__ */
|
|
5003
|
+
children: /* @__PURE__ */ jsx20(LuArrowLeftRight, { size: 13 })
|
|
4793
5004
|
}
|
|
4794
5005
|
),
|
|
4795
|
-
/* @__PURE__ */
|
|
5006
|
+
/* @__PURE__ */ jsx20(
|
|
4796
5007
|
IconButton3,
|
|
4797
5008
|
{
|
|
4798
5009
|
size: "xs",
|
|
@@ -4802,23 +5013,23 @@ function ReusableProfile({
|
|
|
4802
5013
|
_hover: { bg: "red.50" },
|
|
4803
5014
|
disabled: isReplacing,
|
|
4804
5015
|
onClick: () => removeNavItem(href),
|
|
4805
|
-
children: /* @__PURE__ */
|
|
5016
|
+
children: /* @__PURE__ */ jsx20(LuX, { size: 14 })
|
|
4806
5017
|
}
|
|
4807
5018
|
)
|
|
4808
5019
|
] })
|
|
4809
5020
|
]
|
|
4810
5021
|
}
|
|
4811
5022
|
),
|
|
4812
|
-
!isLast && /* @__PURE__ */
|
|
5023
|
+
!isLast && /* @__PURE__ */ jsx20(Separator4, {})
|
|
4813
5024
|
] }, href);
|
|
4814
5025
|
}) })
|
|
4815
5026
|
] }),
|
|
4816
|
-
/* @__PURE__ */
|
|
4817
|
-
/* @__PURE__ */
|
|
4818
|
-
/* @__PURE__ */
|
|
4819
|
-
replacingIdx !== null ? /* @__PURE__ */
|
|
4820
|
-
/* @__PURE__ */
|
|
4821
|
-
|
|
5027
|
+
/* @__PURE__ */ jsx20(Separator4, { mx: 4, my: 1 }),
|
|
5028
|
+
/* @__PURE__ */ jsxs17(Box17, { px: 4, pt: 4, pb: 10, children: [
|
|
5029
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
|
|
5030
|
+
replacingIdx !== null ? /* @__PURE__ */ jsxs17(Box17, { children: [
|
|
5031
|
+
/* @__PURE__ */ jsx20(
|
|
5032
|
+
Text10,
|
|
4822
5033
|
{
|
|
4823
5034
|
fontSize: "xs",
|
|
4824
5035
|
fontWeight: "bold",
|
|
@@ -4828,15 +5039,15 @@ function ReusableProfile({
|
|
|
4828
5039
|
children: "Select Replacement"
|
|
4829
5040
|
}
|
|
4830
5041
|
),
|
|
4831
|
-
/* @__PURE__ */
|
|
5042
|
+
/* @__PURE__ */ jsxs17(Text10, { fontSize: "xs", color: "gray.500", mt: 0.5, children: [
|
|
4832
5043
|
'for "',
|
|
4833
5044
|
availableOptions.find(
|
|
4834
5045
|
(item) => item.key === quickNavHrefs[replacingIdx]
|
|
4835
5046
|
)?.title,
|
|
4836
5047
|
'"'
|
|
4837
5048
|
] })
|
|
4838
|
-
] }) : /* @__PURE__ */
|
|
4839
|
-
|
|
5049
|
+
] }) : /* @__PURE__ */ jsx20(
|
|
5050
|
+
Text10,
|
|
4840
5051
|
{
|
|
4841
5052
|
fontSize: "xs",
|
|
4842
5053
|
fontWeight: "bold",
|
|
@@ -4846,8 +5057,8 @@ function ReusableProfile({
|
|
|
4846
5057
|
children: "Available"
|
|
4847
5058
|
}
|
|
4848
5059
|
),
|
|
4849
|
-
replacingIdx !== null && /* @__PURE__ */
|
|
4850
|
-
|
|
5060
|
+
replacingIdx !== null && /* @__PURE__ */ jsx20(
|
|
5061
|
+
Button4,
|
|
4851
5062
|
{
|
|
4852
5063
|
size: "xs",
|
|
4853
5064
|
variant: "ghost",
|
|
@@ -4857,17 +5068,17 @@ function ReusableProfile({
|
|
|
4857
5068
|
}
|
|
4858
5069
|
)
|
|
4859
5070
|
] }),
|
|
4860
|
-
unpinnedOptions.length === 0 ? /* @__PURE__ */
|
|
5071
|
+
unpinnedOptions.length === 0 ? /* @__PURE__ */ jsx20(Text10, { fontSize: "sm", color: "gray.400", py: 3, textAlign: "center", children: "All available items are pinned" }) : /* @__PURE__ */ jsx20(VStack9, { gap: 0, children: unpinnedOptions.map((option, idx) => {
|
|
4861
5072
|
const ItemIcon = option.Icon;
|
|
4862
5073
|
const isLast = idx === unpinnedOptions.length - 1;
|
|
4863
5074
|
const isReplacingMode = replacingIdx !== null;
|
|
4864
5075
|
const canAdd = quickNavHrefs.length < maxQuickNavItems;
|
|
4865
5076
|
const actionEnabled = isReplacingMode || canAdd;
|
|
4866
|
-
return /* @__PURE__ */
|
|
4867
|
-
/* @__PURE__ */
|
|
4868
|
-
/* @__PURE__ */
|
|
4869
|
-
/* @__PURE__ */
|
|
4870
|
-
|
|
5077
|
+
return /* @__PURE__ */ jsxs17(Box17, { w: "full", children: [
|
|
5078
|
+
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 2.5, children: [
|
|
5079
|
+
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
5080
|
+
/* @__PURE__ */ jsx20(
|
|
5081
|
+
Box17,
|
|
4871
5082
|
{
|
|
4872
5083
|
w: "36px",
|
|
4873
5084
|
h: "36px",
|
|
@@ -4878,11 +5089,11 @@ function ReusableProfile({
|
|
|
4878
5089
|
justifyContent: "center",
|
|
4879
5090
|
color: isReplacingMode ? "orange.500" : "gray.500",
|
|
4880
5091
|
flexShrink: 0,
|
|
4881
|
-
children: /* @__PURE__ */
|
|
5092
|
+
children: /* @__PURE__ */ jsx20(ItemIcon, { size: 15 })
|
|
4882
5093
|
}
|
|
4883
5094
|
),
|
|
4884
|
-
/* @__PURE__ */
|
|
4885
|
-
|
|
5095
|
+
/* @__PURE__ */ jsx20(
|
|
5096
|
+
Text10,
|
|
4886
5097
|
{
|
|
4887
5098
|
fontSize: "sm",
|
|
4888
5099
|
fontWeight: "medium",
|
|
@@ -4891,7 +5102,7 @@ function ReusableProfile({
|
|
|
4891
5102
|
}
|
|
4892
5103
|
)
|
|
4893
5104
|
] }),
|
|
4894
|
-
isReplacingMode ? /* @__PURE__ */
|
|
5105
|
+
isReplacingMode ? /* @__PURE__ */ jsx20(
|
|
4895
5106
|
IconButton3,
|
|
4896
5107
|
{
|
|
4897
5108
|
size: "xs",
|
|
@@ -4901,9 +5112,9 @@ function ReusableProfile({
|
|
|
4901
5112
|
color: "orange.500",
|
|
4902
5113
|
_hover: { bg: "orange.50" },
|
|
4903
5114
|
onClick: () => replaceNavItem(replacingIdx, option.key),
|
|
4904
|
-
children: /* @__PURE__ */
|
|
5115
|
+
children: /* @__PURE__ */ jsx20(LuArrowLeftRight, { size: 13 })
|
|
4905
5116
|
}
|
|
4906
|
-
) : /* @__PURE__ */
|
|
5117
|
+
) : /* @__PURE__ */ jsx20(
|
|
4907
5118
|
IconButton3,
|
|
4908
5119
|
{
|
|
4909
5120
|
size: "xs",
|
|
@@ -4914,19 +5125,19 @@ function ReusableProfile({
|
|
|
4914
5125
|
color: canAdd ? "var(--chakra-colors-primary)" : "gray.300",
|
|
4915
5126
|
_hover: { bg: canAdd ? "blue.50" : "transparent" },
|
|
4916
5127
|
onClick: () => addNavItem(option.key),
|
|
4917
|
-
children: /* @__PURE__ */
|
|
5128
|
+
children: /* @__PURE__ */ jsx20(LuPlus, { size: 13 })
|
|
4918
5129
|
}
|
|
4919
5130
|
)
|
|
4920
5131
|
] }),
|
|
4921
|
-
!isLast && /* @__PURE__ */
|
|
5132
|
+
!isLast && /* @__PURE__ */ jsx20(Separator4, {})
|
|
4922
5133
|
] }, option.key);
|
|
4923
5134
|
}) })
|
|
4924
5135
|
] })
|
|
4925
5136
|
] });
|
|
4926
5137
|
const subViewContent = profileView === "edit-account" ? editAccountContent : profileView === "change-password" ? changePasswordContent : profileView === "navbar-customize" ? navbarCustomizeContent : null;
|
|
4927
5138
|
if (isDesktop) {
|
|
4928
|
-
return /* @__PURE__ */
|
|
4929
|
-
|
|
5139
|
+
return /* @__PURE__ */ jsxs17(
|
|
5140
|
+
Flex10,
|
|
4930
5141
|
{
|
|
4931
5142
|
maxW: "6xl",
|
|
4932
5143
|
mx: "auto",
|
|
@@ -4936,8 +5147,8 @@ function ReusableProfile({
|
|
|
4936
5147
|
p: { md: 6, lg: 8 },
|
|
4937
5148
|
align: "start",
|
|
4938
5149
|
children: [
|
|
4939
|
-
/* @__PURE__ */
|
|
4940
|
-
|
|
5150
|
+
/* @__PURE__ */ jsx20(
|
|
5151
|
+
Box17,
|
|
4941
5152
|
{
|
|
4942
5153
|
w: { md: "300px", lg: "340px" },
|
|
4943
5154
|
flexShrink: 0,
|
|
@@ -4951,8 +5162,8 @@ function ReusableProfile({
|
|
|
4951
5162
|
children: mainContent
|
|
4952
5163
|
}
|
|
4953
5164
|
),
|
|
4954
|
-
/* @__PURE__ */
|
|
4955
|
-
|
|
5165
|
+
/* @__PURE__ */ jsx20(
|
|
5166
|
+
Box17,
|
|
4956
5167
|
{
|
|
4957
5168
|
flex: "1",
|
|
4958
5169
|
minW: 0,
|
|
@@ -4962,8 +5173,8 @@ function ReusableProfile({
|
|
|
4962
5173
|
overflow: "hidden",
|
|
4963
5174
|
bg: "bg",
|
|
4964
5175
|
minH: "540px",
|
|
4965
|
-
children: subViewContent ?? /* @__PURE__ */
|
|
4966
|
-
|
|
5176
|
+
children: subViewContent ?? /* @__PURE__ */ jsxs17(
|
|
5177
|
+
Flex10,
|
|
4967
5178
|
{
|
|
4968
5179
|
direction: "column",
|
|
4969
5180
|
align: "center",
|
|
@@ -4973,8 +5184,8 @@ function ReusableProfile({
|
|
|
4973
5184
|
textAlign: "center",
|
|
4974
5185
|
color: "gray.400",
|
|
4975
5186
|
children: [
|
|
4976
|
-
/* @__PURE__ */
|
|
4977
|
-
|
|
5187
|
+
/* @__PURE__ */ jsx20(
|
|
5188
|
+
Box17,
|
|
4978
5189
|
{
|
|
4979
5190
|
w: "56px",
|
|
4980
5191
|
h: "56px",
|
|
@@ -4984,10 +5195,10 @@ function ReusableProfile({
|
|
|
4984
5195
|
alignItems: "center",
|
|
4985
5196
|
justifyContent: "center",
|
|
4986
5197
|
mb: 4,
|
|
4987
|
-
children: /* @__PURE__ */
|
|
5198
|
+
children: /* @__PURE__ */ jsx20(LuUser, { size: 24 })
|
|
4988
5199
|
}
|
|
4989
5200
|
),
|
|
4990
|
-
/* @__PURE__ */
|
|
5201
|
+
/* @__PURE__ */ jsx20(Text10, { fontSize: "sm", mt: 1, maxW: "280px", children: "Choose Edit Account, Change Password, or Quick Navigation from the menu to update your details here." })
|
|
4991
5202
|
]
|
|
4992
5203
|
}
|
|
4993
5204
|
)
|
|
@@ -4997,7 +5208,7 @@ function ReusableProfile({
|
|
|
4997
5208
|
}
|
|
4998
5209
|
);
|
|
4999
5210
|
}
|
|
5000
|
-
return /* @__PURE__ */
|
|
5211
|
+
return /* @__PURE__ */ jsx20(Box17, { maxW: "480px", mx: "auto", w: "full", minH: "100%", bg: "bg", children: profileView === "main" ? mainContent : subViewContent });
|
|
5001
5212
|
}
|
|
5002
5213
|
var UserProfile_default = ReusableProfile;
|
|
5003
5214
|
export {
|
|
@@ -5010,6 +5221,7 @@ export {
|
|
|
5010
5221
|
LifePlanApplication3_default as LifePlanApplication3,
|
|
5011
5222
|
LifePlanApplicationFormWrapper_default as LifePlanApplicationFormWrapper,
|
|
5012
5223
|
LifePlanApplicationStepWrapper_default as LifePlanApplicationStepWrapper,
|
|
5224
|
+
NotifyInstall,
|
|
5013
5225
|
SharedLifePlanApplication_default as SharedLifePlanApplication,
|
|
5014
5226
|
UserProfile_default as UserProfile,
|
|
5015
5227
|
createEmptyApplicationData,
|