@splpi/estore-shared-components 0.0.4 → 0.0.6
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.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +623 -419
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +568 -383
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.mjs
CHANGED
|
@@ -2983,39 +2983,51 @@ var createLifePlanSteps = (confirmationProps) => [
|
|
|
2983
2983
|
];
|
|
2984
2984
|
|
|
2985
2985
|
// src/NewSaleForm/ui/horizontal-stepper.tsx
|
|
2986
|
-
import { useState as useState10 } from "react";
|
|
2987
|
-
import {
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
Flex as Flex7,
|
|
2991
|
-
IconButton as IconButton2,
|
|
2992
|
-
Separator as Separator3,
|
|
2993
|
-
Steps
|
|
2994
|
-
} from "@chakra-ui/react";
|
|
2995
|
-
import { NextButton, PrimaryMdButton as PrimaryMdButton2, SecondaryMdButton as SecondaryMdButton2 } from "st-peter-ui";
|
|
2996
|
-
import { LuChevronLeft, LuChevronRight } from "react-icons/lu";
|
|
2986
|
+
import { useRef, useState as useState10 } from "react";
|
|
2987
|
+
import { Box as Box13, ButtonGroup, Flex as Flex7, Steps, Text as Text8 } from "@chakra-ui/react";
|
|
2988
|
+
import { PrimaryMdButton as PrimaryMdButton2, SecondaryMdButton as SecondaryMdButton2 } from "st-peter-ui";
|
|
2989
|
+
import { LuChevronLeft, LuChevronRight, LuCheck as LuCheck2 } from "react-icons/lu";
|
|
2997
2990
|
import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
2991
|
+
var PRIMARY = "var(--chakra-colors-primary)";
|
|
2992
|
+
var PRIMARY_HOVER = "var(--chakra-colors-primary-hover)";
|
|
2993
|
+
var PRIMARY_DISABLED = "var(--chakra-colors-primary-disabled)";
|
|
2998
2994
|
var HorizontalStepper = ({
|
|
2999
2995
|
steps,
|
|
2996
|
+
title,
|
|
2997
|
+
description,
|
|
3000
2998
|
onStepChange,
|
|
3001
2999
|
onSubmit,
|
|
3002
3000
|
submitDisabled,
|
|
3003
3001
|
activeStep: controlledActiveStep,
|
|
3004
|
-
nextDisabled
|
|
3002
|
+
nextDisabled,
|
|
3003
|
+
submitButtonText = "Proceed To Payment"
|
|
3005
3004
|
}) => {
|
|
3006
3005
|
const [localActiveStep, setLocalActiveStep] = useState10(0);
|
|
3007
3006
|
const activeStep = controlledActiveStep !== void 0 ? controlledActiveStep : localActiveStep;
|
|
3007
|
+
const formTopRef = useRef(null);
|
|
3008
|
+
const isCompact = steps.length < 3;
|
|
3009
|
+
const isLastStep = activeStep === steps.length - 1;
|
|
3010
|
+
const nextStepTitle = steps[activeStep + 1]?.title;
|
|
3011
|
+
const scrollToTop = () => {
|
|
3012
|
+
requestAnimationFrame(() => {
|
|
3013
|
+
formTopRef.current?.scrollIntoView({
|
|
3014
|
+
behavior: "smooth",
|
|
3015
|
+
block: "start"
|
|
3016
|
+
});
|
|
3017
|
+
});
|
|
3018
|
+
};
|
|
3008
3019
|
const handleStepChange = (index) => {
|
|
3009
3020
|
if (controlledActiveStep === void 0) {
|
|
3010
3021
|
setLocalActiveStep(index);
|
|
3011
3022
|
}
|
|
3012
3023
|
onStepChange?.(index);
|
|
3024
|
+
scrollToTop();
|
|
3013
3025
|
};
|
|
3014
3026
|
const handleNext = () => {
|
|
3015
3027
|
if (nextDisabled) return;
|
|
3016
3028
|
handleStepChange(Math.min(activeStep + 1, steps.length - 1));
|
|
3017
3029
|
};
|
|
3018
|
-
return /* @__PURE__ */
|
|
3030
|
+
return /* @__PURE__ */ jsxs14(
|
|
3019
3031
|
Flex7,
|
|
3020
3032
|
{
|
|
3021
3033
|
direction: "column",
|
|
@@ -3024,108 +3036,284 @@ var HorizontalStepper = ({
|
|
|
3024
3036
|
w: "full",
|
|
3025
3037
|
overflow: "visible",
|
|
3026
3038
|
pb: { base: "12px", md: "0px" },
|
|
3027
|
-
children:
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3039
|
+
children: [
|
|
3040
|
+
(title || description) && /* @__PURE__ */ jsxs14(Box13, { mb: 4, ref: formTopRef, children: [
|
|
3041
|
+
title && /* @__PURE__ */ jsx15(
|
|
3042
|
+
Box13,
|
|
3043
|
+
{
|
|
3044
|
+
as: "h1",
|
|
3045
|
+
m: "0",
|
|
3046
|
+
fontFamily: "var(--font-dm-sans), system-ui, sans-serif",
|
|
3047
|
+
fontWeight: description ? 600 : 500,
|
|
3048
|
+
color: "gray.900",
|
|
3049
|
+
lineHeight: "1.1",
|
|
3050
|
+
letterSpacing: description ? "-0.025em" : "-0.015em",
|
|
3051
|
+
fontSize: {
|
|
3052
|
+
base: description ? "22px" : "24px",
|
|
3053
|
+
lg: description ? "28px" : "32px"
|
|
3054
|
+
},
|
|
3055
|
+
children: title
|
|
3056
|
+
}
|
|
3057
|
+
),
|
|
3058
|
+
description && /* @__PURE__ */ jsx15(Text8, { fontSize: "sm", color: "gray.500", mt: 1, children: description })
|
|
3059
|
+
] }),
|
|
3060
|
+
/* @__PURE__ */ jsx15(Box13, { w: "full", rounded: "2xl", children: /* @__PURE__ */ jsxs14(
|
|
3061
|
+
Steps.Root,
|
|
3062
|
+
{
|
|
3063
|
+
step: activeStep,
|
|
3064
|
+
onStepChange: (index) => handleStepChange(index.step),
|
|
3065
|
+
defaultStep: 0,
|
|
3066
|
+
count: steps.length,
|
|
3067
|
+
colorPalette: "green",
|
|
3068
|
+
children: [
|
|
3069
|
+
/* @__PURE__ */ jsxs14(
|
|
3070
|
+
Box13,
|
|
3071
|
+
{
|
|
3072
|
+
position: "sticky",
|
|
3073
|
+
top: 0,
|
|
3074
|
+
zIndex: 10,
|
|
3075
|
+
bg: "white",
|
|
3076
|
+
pt: 2,
|
|
3077
|
+
pb: 3,
|
|
3078
|
+
mx: -1,
|
|
3079
|
+
px: 1,
|
|
3080
|
+
borderBottomWidth: "1px",
|
|
3081
|
+
borderColor: "gray.100",
|
|
3082
|
+
boxShadow: "0 2px 8px -2px rgba(0,0,0,0.06)",
|
|
3083
|
+
children: [
|
|
3084
|
+
/* @__PURE__ */ jsx15(
|
|
3085
|
+
Steps.List,
|
|
3086
|
+
{
|
|
3087
|
+
py: 0,
|
|
3088
|
+
flexDirection: "row",
|
|
3089
|
+
alignItems: "center",
|
|
3090
|
+
w: "full",
|
|
3091
|
+
justifyContent: "space-evenly",
|
|
3092
|
+
children: steps.map((step, index) => {
|
|
3093
|
+
const isCompleted = index < activeStep;
|
|
3094
|
+
const isActive = index === activeStep;
|
|
3095
|
+
return /* @__PURE__ */ jsxs14(
|
|
3096
|
+
Steps.Item,
|
|
3097
|
+
{
|
|
3098
|
+
index,
|
|
3099
|
+
title: step.title,
|
|
3100
|
+
minW: { base: "0px", md: "auto" },
|
|
3101
|
+
flex: isCompact ? "0 0 auto" : "1",
|
|
3102
|
+
children: [
|
|
3103
|
+
/* @__PURE__ */ jsxs14(
|
|
3104
|
+
Steps.Trigger,
|
|
3105
|
+
{
|
|
3106
|
+
flexDirection: isCompact ? "row" : "column",
|
|
3107
|
+
alignItems: "center",
|
|
3108
|
+
gap: isCompact ? 2 : 1,
|
|
3109
|
+
px: isCompact ? 3 : 2,
|
|
3110
|
+
py: isCompact ? 2 : 1,
|
|
3111
|
+
borderRadius: "lg",
|
|
3112
|
+
transition: "background 0.2s",
|
|
3113
|
+
_hover: { bg: "gray.50" },
|
|
3114
|
+
children: [
|
|
3115
|
+
/* @__PURE__ */ jsx15(
|
|
3116
|
+
Steps.Indicator,
|
|
3117
|
+
{
|
|
3118
|
+
borderWidth: "2px",
|
|
3119
|
+
transition: "all 0.25s",
|
|
3120
|
+
style: {
|
|
3121
|
+
borderColor: isCompleted || isActive ? PRIMARY : void 0,
|
|
3122
|
+
background: isCompleted ? PRIMARY : void 0,
|
|
3123
|
+
color: isCompleted ? "white" : isActive ? PRIMARY : void 0,
|
|
3124
|
+
boxShadow: isActive ? `0 0 0 3px ${PRIMARY_DISABLED}` : "none"
|
|
3125
|
+
},
|
|
3126
|
+
children: isCompleted ? /* @__PURE__ */ jsx15(LuCheck2, { size: 14 }) : step.icon ? /* @__PURE__ */ jsx15(Box13, { as: step.icon, w: 4, h: 4 }) : null
|
|
3127
|
+
}
|
|
3128
|
+
),
|
|
3129
|
+
/* @__PURE__ */ jsx15(
|
|
3130
|
+
Steps.Title,
|
|
3131
|
+
{
|
|
3132
|
+
fontSize: { base: "xs", md: "sm" },
|
|
3133
|
+
textAlign: isCompact ? "left" : "center",
|
|
3134
|
+
whiteSpace: "normal",
|
|
3135
|
+
wordBreak: "break-word",
|
|
3136
|
+
fontWeight: isActive ? 600 : 400,
|
|
3137
|
+
color: isActive ? "gray.900" : isCompleted ? "gray.600" : "gray.400",
|
|
3138
|
+
transition: "color 0.2s",
|
|
3139
|
+
children: step.title
|
|
3140
|
+
}
|
|
3141
|
+
)
|
|
3142
|
+
]
|
|
3143
|
+
}
|
|
3144
|
+
),
|
|
3145
|
+
!isCompact && /* @__PURE__ */ jsx15(
|
|
3146
|
+
Steps.Separator,
|
|
3147
|
+
{
|
|
3148
|
+
display: { base: "none", md: "block" }
|
|
3149
|
+
}
|
|
3150
|
+
)
|
|
3151
|
+
]
|
|
3152
|
+
},
|
|
3153
|
+
index
|
|
3154
|
+
);
|
|
3155
|
+
})
|
|
3156
|
+
}
|
|
3157
|
+
),
|
|
3158
|
+
/* @__PURE__ */ jsx15(
|
|
3159
|
+
Box13,
|
|
3160
|
+
{
|
|
3161
|
+
w: "full",
|
|
3162
|
+
h: "3px",
|
|
3163
|
+
bg: "gray.100",
|
|
3164
|
+
borderRadius: "full",
|
|
3165
|
+
overflow: "hidden",
|
|
3166
|
+
mt: 1,
|
|
3167
|
+
children: /* @__PURE__ */ jsx15(
|
|
3168
|
+
Box13,
|
|
3169
|
+
{
|
|
3170
|
+
h: "full",
|
|
3171
|
+
bg: PRIMARY,
|
|
3172
|
+
transition: "width 0.4s ease",
|
|
3173
|
+
w: `${(activeStep + 1) / steps.length * 100}%`
|
|
3174
|
+
}
|
|
3175
|
+
)
|
|
3176
|
+
}
|
|
3177
|
+
)
|
|
3178
|
+
]
|
|
3179
|
+
}
|
|
3180
|
+
),
|
|
3181
|
+
steps.map((step, index) => /* @__PURE__ */ jsx15(Steps.Content, { index, children: step.component ?? step.description }, index)),
|
|
3182
|
+
/* @__PURE__ */ jsxs14(
|
|
3183
|
+
Flex7,
|
|
3184
|
+
{
|
|
3185
|
+
w: "full",
|
|
3186
|
+
justify: "space-between",
|
|
3187
|
+
align: "center",
|
|
3188
|
+
mt: 4,
|
|
3189
|
+
gap: 2,
|
|
3190
|
+
display: { base: "flex", md: "none" },
|
|
3191
|
+
children: [
|
|
3192
|
+
/* @__PURE__ */ jsx15(Steps.PrevTrigger, { asChild: true, children: /* @__PURE__ */ jsxs14(
|
|
3193
|
+
Box13,
|
|
3194
|
+
{
|
|
3195
|
+
as: "button",
|
|
3196
|
+
display: "flex",
|
|
3197
|
+
alignItems: "center",
|
|
3198
|
+
gap: 1,
|
|
3199
|
+
px: 3,
|
|
3200
|
+
py: 2,
|
|
3201
|
+
borderRadius: "lg",
|
|
3202
|
+
border: "1.5px solid",
|
|
3203
|
+
borderColor: "gray.200",
|
|
3204
|
+
bg: "white",
|
|
3205
|
+
color: "gray.700",
|
|
3206
|
+
fontSize: "sm",
|
|
3207
|
+
fontWeight: 500,
|
|
3208
|
+
cursor: "pointer",
|
|
3209
|
+
_hover: { bg: "gray.50" },
|
|
3210
|
+
_disabled: { opacity: 0.4, cursor: "not-allowed" },
|
|
3211
|
+
transition: "all 0.15s",
|
|
3212
|
+
children: [
|
|
3213
|
+
/* @__PURE__ */ jsx15(LuChevronLeft, { size: 14 }),
|
|
3214
|
+
"Back"
|
|
3215
|
+
]
|
|
3216
|
+
}
|
|
3217
|
+
) }),
|
|
3218
|
+
!isLastStep ? /* @__PURE__ */ jsxs14(
|
|
3219
|
+
Box13,
|
|
3220
|
+
{
|
|
3221
|
+
as: "button",
|
|
3222
|
+
display: "flex",
|
|
3223
|
+
alignItems: "center",
|
|
3224
|
+
gap: 1,
|
|
3225
|
+
px: 3,
|
|
3226
|
+
py: 2,
|
|
3227
|
+
borderRadius: "lg",
|
|
3228
|
+
color: "white",
|
|
3229
|
+
fontSize: "sm",
|
|
3230
|
+
fontWeight: 500,
|
|
3231
|
+
cursor: nextDisabled ? "not-allowed" : "pointer",
|
|
3232
|
+
opacity: nextDisabled ? 0.5 : 1,
|
|
3233
|
+
pointerEvents: nextDisabled ? "none" : "auto",
|
|
3234
|
+
transition: "all 0.15s",
|
|
3235
|
+
onClick: handleNext,
|
|
3236
|
+
bg: PRIMARY,
|
|
3237
|
+
_hover: { bg: PRIMARY_HOVER },
|
|
3238
|
+
children: [
|
|
3239
|
+
nextStepTitle ? `Next: ${nextStepTitle}` : "Next",
|
|
3240
|
+
/* @__PURE__ */ jsx15(LuChevronRight, { size: 14 })
|
|
3241
|
+
]
|
|
3242
|
+
}
|
|
3243
|
+
) : /* @__PURE__ */ jsxs14(
|
|
3244
|
+
Box13,
|
|
3245
|
+
{
|
|
3246
|
+
as: "button",
|
|
3247
|
+
display: "flex",
|
|
3248
|
+
alignItems: "center",
|
|
3249
|
+
gap: 1,
|
|
3250
|
+
px: 3,
|
|
3251
|
+
py: 2,
|
|
3252
|
+
borderRadius: "lg",
|
|
3253
|
+
color: "white",
|
|
3254
|
+
fontSize: "sm",
|
|
3255
|
+
fontWeight: 500,
|
|
3256
|
+
cursor: submitDisabled ? "not-allowed" : "pointer",
|
|
3257
|
+
opacity: submitDisabled ? 0.5 : 1,
|
|
3258
|
+
pointerEvents: submitDisabled ? "none" : "auto",
|
|
3259
|
+
transition: "all 0.15s",
|
|
3260
|
+
onClick: onSubmit,
|
|
3261
|
+
bg: PRIMARY,
|
|
3262
|
+
_hover: { bg: PRIMARY_HOVER },
|
|
3263
|
+
children: [
|
|
3264
|
+
submitButtonText,
|
|
3265
|
+
/* @__PURE__ */ jsx15(LuCheck2, { size: 14 })
|
|
3266
|
+
]
|
|
3267
|
+
}
|
|
3268
|
+
)
|
|
3269
|
+
]
|
|
3270
|
+
}
|
|
3271
|
+
),
|
|
3272
|
+
/* @__PURE__ */ jsx15(
|
|
3273
|
+
ButtonGroup,
|
|
3274
|
+
{
|
|
3275
|
+
size: "sm",
|
|
3276
|
+
variant: "outline",
|
|
3277
|
+
display: { base: "none", md: "flex" },
|
|
3278
|
+
children: /* @__PURE__ */ jsxs14(Flex7, { mt: 5, w: "full", align: "center", justify: "space-between", children: [
|
|
3279
|
+
/* @__PURE__ */ jsx15(Steps.PrevTrigger, { asChild: true, children: /* @__PURE__ */ jsxs14(SecondaryMdButton2, { children: [
|
|
3280
|
+
/* @__PURE__ */ jsx15(LuChevronLeft, {}),
|
|
3281
|
+
"Previous"
|
|
3282
|
+
] }) }),
|
|
3283
|
+
!isLastStep ? /* @__PURE__ */ jsxs14(
|
|
3284
|
+
Box13,
|
|
3285
|
+
{
|
|
3286
|
+
as: "button",
|
|
3287
|
+
display: "flex",
|
|
3288
|
+
alignItems: "center",
|
|
3289
|
+
gap: 1.5,
|
|
3290
|
+
px: 4,
|
|
3291
|
+
py: 2,
|
|
3292
|
+
borderRadius: "lg",
|
|
3293
|
+
color: "white",
|
|
3294
|
+
fontSize: "sm",
|
|
3295
|
+
fontWeight: 600,
|
|
3296
|
+
cursor: nextDisabled ? "not-allowed" : "pointer",
|
|
3297
|
+
opacity: nextDisabled ? 0.5 : 1,
|
|
3298
|
+
pointerEvents: nextDisabled ? "none" : "auto",
|
|
3299
|
+
transition: "all 0.15s",
|
|
3300
|
+
onClick: handleNext,
|
|
3301
|
+
boxShadow: "0 1px 3px 0 rgba(0,0,0,0.12)",
|
|
3302
|
+
bg: PRIMARY,
|
|
3303
|
+
_hover: { bg: PRIMARY_HOVER },
|
|
3304
|
+
children: [
|
|
3305
|
+
nextStepTitle ? `Next: ${nextStepTitle}` : "Next",
|
|
3306
|
+
/* @__PURE__ */ jsx15(LuChevronRight, { size: 15 })
|
|
3307
|
+
]
|
|
3308
|
+
}
|
|
3309
|
+
) : /* @__PURE__ */ jsx15(PrimaryMdButton2, { disabled: !!submitDisabled, onClick: onSubmit, children: submitButtonText })
|
|
3310
|
+
] })
|
|
3311
|
+
}
|
|
3312
|
+
)
|
|
3313
|
+
]
|
|
3314
|
+
}
|
|
3315
|
+
) })
|
|
3316
|
+
]
|
|
3129
3317
|
}
|
|
3130
3318
|
);
|
|
3131
3319
|
};
|
|
@@ -3192,7 +3380,7 @@ import {
|
|
|
3192
3380
|
Flex as Flex8,
|
|
3193
3381
|
Icon as Icon4,
|
|
3194
3382
|
CloseButton as CloseButton3,
|
|
3195
|
-
Text as
|
|
3383
|
+
Text as Text9
|
|
3196
3384
|
} from "@chakra-ui/react";
|
|
3197
3385
|
import { LuChevronRight as LuChevronRight2 } from "react-icons/lu";
|
|
3198
3386
|
import Link from "next/link";
|
|
@@ -3272,7 +3460,7 @@ var QuickActionsHeaderCard = React5.memo(
|
|
|
3272
3460
|
justify: "center",
|
|
3273
3461
|
flexShrink: 0,
|
|
3274
3462
|
children: /* @__PURE__ */ jsx18(
|
|
3275
|
-
|
|
3463
|
+
Text9,
|
|
3276
3464
|
{
|
|
3277
3465
|
fontSize: "14px",
|
|
3278
3466
|
fontWeight: "700",
|
|
@@ -3285,7 +3473,7 @@ var QuickActionsHeaderCard = React5.memo(
|
|
|
3285
3473
|
),
|
|
3286
3474
|
/* @__PURE__ */ jsxs15(Box15, { flex: "1", minW: 0, children: [
|
|
3287
3475
|
/* @__PURE__ */ jsx18(
|
|
3288
|
-
|
|
3476
|
+
Text9,
|
|
3289
3477
|
{
|
|
3290
3478
|
fontSize: "15px",
|
|
3291
3479
|
fontWeight: "700",
|
|
@@ -3298,7 +3486,7 @@ var QuickActionsHeaderCard = React5.memo(
|
|
|
3298
3486
|
}
|
|
3299
3487
|
),
|
|
3300
3488
|
meta && /* @__PURE__ */ jsx18(
|
|
3301
|
-
|
|
3489
|
+
Text9,
|
|
3302
3490
|
{
|
|
3303
3491
|
fontSize: "12px",
|
|
3304
3492
|
color: SUBTITLE_COLOR,
|
|
@@ -3360,7 +3548,7 @@ var ActionItem = React5.memo(({ action }) => {
|
|
|
3360
3548
|
),
|
|
3361
3549
|
/* @__PURE__ */ jsxs15(Box15, { flex: "1", minW: 0, children: [
|
|
3362
3550
|
/* @__PURE__ */ jsx18(
|
|
3363
|
-
|
|
3551
|
+
Text9,
|
|
3364
3552
|
{
|
|
3365
3553
|
fontSize: "15px",
|
|
3366
3554
|
fontWeight: "600",
|
|
@@ -3370,7 +3558,7 @@ var ActionItem = React5.memo(({ action }) => {
|
|
|
3370
3558
|
}
|
|
3371
3559
|
),
|
|
3372
3560
|
action.description && /* @__PURE__ */ jsx18(
|
|
3373
|
-
|
|
3561
|
+
Text9,
|
|
3374
3562
|
{
|
|
3375
3563
|
fontSize: "12px",
|
|
3376
3564
|
color: DESC_COLOR,
|
|
@@ -3464,7 +3652,7 @@ var BottomQuickActions = ({
|
|
|
3464
3652
|
}
|
|
3465
3653
|
),
|
|
3466
3654
|
subtitle && /* @__PURE__ */ jsx18(
|
|
3467
|
-
|
|
3655
|
+
Text9,
|
|
3468
3656
|
{
|
|
3469
3657
|
fontSize: "13px",
|
|
3470
3658
|
color: SUBTITLE_COLOR,
|
|
@@ -3510,20 +3698,9 @@ var BottomQuickActions_default = BottomQuickActions;
|
|
|
3510
3698
|
|
|
3511
3699
|
// src/Generic/NotifyInstall.tsx
|
|
3512
3700
|
import { useEffect as useEffect8, useState as useState13 } from "react";
|
|
3513
|
-
import {
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
Text as Text9,
|
|
3517
|
-
VStack as VStack8,
|
|
3518
|
-
HStack as HStack5,
|
|
3519
|
-
Box as Box16,
|
|
3520
|
-
Flex as Flex9,
|
|
3521
|
-
Heading,
|
|
3522
|
-
Icon as Icon5,
|
|
3523
|
-
Portal as Portal5,
|
|
3524
|
-
CloseButton as CloseButton4
|
|
3525
|
-
} from "@chakra-ui/react";
|
|
3526
|
-
import { FiDownload, FiPlusSquare, FiShare } from "react-icons/fi";
|
|
3701
|
+
import { Button as Button3, Flex as Flex9, HStack as HStack5, Icon as Icon5, Text as Text10, VStack as VStack8 } from "@chakra-ui/react";
|
|
3702
|
+
import { AnimatePresence, motion } from "motion/react";
|
|
3703
|
+
import { FiDownload, FiPlusSquare, FiShare, FiX } from "react-icons/fi";
|
|
3527
3704
|
|
|
3528
3705
|
// src/hooks/useNotifyInstall.ts
|
|
3529
3706
|
import { useEffect as useEffect7, useState as useState12 } from "react";
|
|
@@ -3565,161 +3742,169 @@ function useNotifyInstall() {
|
|
|
3565
3742
|
// src/Generic/NotifyInstall.tsx
|
|
3566
3743
|
import { Fragment as Fragment3, jsx as jsx19, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3567
3744
|
var STEPS = [
|
|
3568
|
-
{
|
|
3569
|
-
|
|
3570
|
-
label: "Tap the browser menu or Share button"
|
|
3571
|
-
},
|
|
3572
|
-
{
|
|
3573
|
-
icon: FiPlusSquare,
|
|
3574
|
-
label: 'Choose "Add to Home Screen"'
|
|
3575
|
-
}
|
|
3745
|
+
{ icon: FiShare, label: "Tap the browser menu or Share button" },
|
|
3746
|
+
{ icon: FiPlusSquare, label: 'Choose "Add to Home Screen"' }
|
|
3576
3747
|
];
|
|
3577
|
-
var
|
|
3748
|
+
var DISMISSED_KEY = "estore-install-dialog-dismissed";
|
|
3578
3749
|
function NotifyInstall({
|
|
3579
3750
|
children,
|
|
3580
3751
|
appName
|
|
3581
3752
|
}) {
|
|
3582
3753
|
const { isInstalled, isMobile, canInstall, install } = useNotifyInstall();
|
|
3583
|
-
const [isDismissed, setIsDismissed] = useState13(
|
|
3754
|
+
const [isDismissed, setIsDismissed] = useState13(true);
|
|
3584
3755
|
useEffect8(() => {
|
|
3585
|
-
|
|
3586
|
-
|
|
3756
|
+
if (localStorage.getItem(DISMISSED_KEY) !== "true") {
|
|
3757
|
+
setIsDismissed(false);
|
|
3758
|
+
}
|
|
3587
3759
|
}, []);
|
|
3588
|
-
const
|
|
3589
|
-
localStorage.setItem(
|
|
3760
|
+
const handleDismiss = () => {
|
|
3761
|
+
localStorage.setItem(DISMISSED_KEY, "true");
|
|
3590
3762
|
setIsDismissed(true);
|
|
3591
3763
|
};
|
|
3592
|
-
const
|
|
3593
|
-
if (!isOpen) {
|
|
3594
|
-
return children;
|
|
3595
|
-
}
|
|
3764
|
+
const showPrompt = isMobile && !isInstalled && !isDismissed;
|
|
3596
3765
|
return /* @__PURE__ */ jsxs16(Fragment3, { children: [
|
|
3597
3766
|
children,
|
|
3598
|
-
/* @__PURE__ */ jsx19(
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
3604
|
-
|
|
3767
|
+
/* @__PURE__ */ jsx19(AnimatePresence, { children: showPrompt && /* @__PURE__ */ jsxs16(Fragment3, { children: [
|
|
3768
|
+
/* @__PURE__ */ jsx19(
|
|
3769
|
+
motion.div,
|
|
3770
|
+
{
|
|
3771
|
+
initial: { opacity: 0 },
|
|
3772
|
+
animate: { opacity: 1 },
|
|
3773
|
+
exit: { opacity: 0 },
|
|
3774
|
+
transition: { duration: 0.2 },
|
|
3775
|
+
onClick: handleDismiss,
|
|
3776
|
+
style: {
|
|
3777
|
+
position: "fixed",
|
|
3778
|
+
inset: 0,
|
|
3779
|
+
zIndex: 1300,
|
|
3780
|
+
background: "rgba(0,0,0,0.55)",
|
|
3781
|
+
backdropFilter: "blur(3px)",
|
|
3782
|
+
WebkitBackdropFilter: "blur(3px)"
|
|
3605
3783
|
}
|
|
3606
3784
|
},
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3785
|
+
"install-backdrop"
|
|
3786
|
+
),
|
|
3787
|
+
/* @__PURE__ */ jsxs16(
|
|
3788
|
+
motion.div,
|
|
3789
|
+
{
|
|
3790
|
+
initial: { y: "100%" },
|
|
3791
|
+
animate: { y: 0 },
|
|
3792
|
+
exit: { y: "100%" },
|
|
3793
|
+
transition: { type: "spring", damping: 28, stiffness: 280 },
|
|
3794
|
+
style: {
|
|
3795
|
+
position: "fixed",
|
|
3796
|
+
bottom: 0,
|
|
3797
|
+
left: 0,
|
|
3798
|
+
right: 0,
|
|
3799
|
+
zIndex: 1400,
|
|
3800
|
+
background: "white",
|
|
3801
|
+
borderRadius: "24px 24px 0 0",
|
|
3802
|
+
boxShadow: "0 -8px 40px rgba(0,0,0,0.14)",
|
|
3803
|
+
paddingBottom: "env(safe-area-inset-bottom)"
|
|
3804
|
+
},
|
|
3805
|
+
children: [
|
|
3806
|
+
/* @__PURE__ */ jsx19(
|
|
3807
|
+
"button",
|
|
3808
|
+
{
|
|
3809
|
+
"aria-label": "Dismiss install prompt",
|
|
3810
|
+
onClick: handleDismiss,
|
|
3811
|
+
style: {
|
|
3812
|
+
position: "absolute",
|
|
3813
|
+
top: 12,
|
|
3814
|
+
right: 12,
|
|
3815
|
+
background: "none",
|
|
3816
|
+
border: "none",
|
|
3817
|
+
cursor: "pointer",
|
|
3818
|
+
padding: 8,
|
|
3819
|
+
borderRadius: "50%",
|
|
3820
|
+
display: "flex",
|
|
3821
|
+
alignItems: "center",
|
|
3822
|
+
justifyContent: "center",
|
|
3823
|
+
color: "#9ca3af"
|
|
3824
|
+
},
|
|
3825
|
+
children: /* @__PURE__ */ jsx19(FiX, { size: 18 })
|
|
3826
|
+
}
|
|
3827
|
+
),
|
|
3828
|
+
/* @__PURE__ */ jsxs16(VStack8, { gap: 6, textAlign: "center", px: 6, py: 8, children: [
|
|
3829
|
+
/* @__PURE__ */ jsx19(
|
|
3830
|
+
Flex9,
|
|
3831
|
+
{
|
|
3832
|
+
boxSize: 16,
|
|
3833
|
+
align: "center",
|
|
3834
|
+
justify: "center",
|
|
3835
|
+
rounded: "2xl",
|
|
3836
|
+
bg: "green.50",
|
|
3837
|
+
color: "green.600",
|
|
3838
|
+
shadow: "sm",
|
|
3839
|
+
children: /* @__PURE__ */ jsx19(Icon5, { as: FiDownload, boxSize: 8 })
|
|
3840
|
+
}
|
|
3841
|
+
),
|
|
3842
|
+
/* @__PURE__ */ jsxs16(VStack8, { gap: 2, children: [
|
|
3843
|
+
/* @__PURE__ */ jsxs16(
|
|
3844
|
+
Text10,
|
|
3845
|
+
{
|
|
3846
|
+
fontSize: "lg",
|
|
3847
|
+
fontWeight: "bold",
|
|
3848
|
+
color: "gray.900",
|
|
3849
|
+
lineHeight: "short",
|
|
3850
|
+
children: [
|
|
3851
|
+
"Install ",
|
|
3852
|
+
appName
|
|
3853
|
+
]
|
|
3854
|
+
}
|
|
3855
|
+
),
|
|
3856
|
+
/* @__PURE__ */ jsx19(Text10, { fontSize: "sm", color: "gray.500", lineHeight: "tall", children: "Add the app to your home screen for a faster, app-like experience before continuing." })
|
|
3857
|
+
] }),
|
|
3858
|
+
canInstall ? /* @__PURE__ */ jsxs16(
|
|
3859
|
+
Button3,
|
|
3618
3860
|
{
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
m: 0,
|
|
3861
|
+
onClick: install,
|
|
3862
|
+
colorPalette: "green",
|
|
3863
|
+
size: "lg",
|
|
3864
|
+
w: "full",
|
|
3865
|
+
rounded: "xl",
|
|
3625
3866
|
children: [
|
|
3626
|
-
/* @__PURE__ */ jsx19(
|
|
3627
|
-
|
|
3628
|
-
Flex9,
|
|
3629
|
-
{
|
|
3630
|
-
boxSize: { base: 16, sm: 20 },
|
|
3631
|
-
align: "center",
|
|
3632
|
-
justify: "center",
|
|
3633
|
-
rounded: "2xl",
|
|
3634
|
-
bg: "green.50",
|
|
3635
|
-
color: "green.600",
|
|
3636
|
-
shadow: "sm",
|
|
3637
|
-
children: /* @__PURE__ */ jsx19(Icon5, { as: FiDownload, boxSize: { base: 8, sm: 9 } })
|
|
3638
|
-
}
|
|
3639
|
-
),
|
|
3640
|
-
/* @__PURE__ */ jsxs16(VStack8, { gap: 2, children: [
|
|
3641
|
-
/* @__PURE__ */ jsxs16(
|
|
3642
|
-
Heading,
|
|
3643
|
-
{
|
|
3644
|
-
fontSize: { base: "lg", sm: "xl" },
|
|
3645
|
-
fontWeight: "bold",
|
|
3646
|
-
color: "gray.900",
|
|
3647
|
-
children: [
|
|
3648
|
-
"Install ",
|
|
3649
|
-
appName || "eStore"
|
|
3650
|
-
]
|
|
3651
|
-
}
|
|
3652
|
-
),
|
|
3653
|
-
/* @__PURE__ */ jsx19(
|
|
3654
|
-
Text9,
|
|
3655
|
-
{
|
|
3656
|
-
fontSize: { base: "sm", sm: "md" },
|
|
3657
|
-
color: "gray.600",
|
|
3658
|
-
lineHeight: "tall",
|
|
3659
|
-
children: "Add the app to your home screen for a faster, app-like experience before continuing."
|
|
3660
|
-
}
|
|
3661
|
-
)
|
|
3662
|
-
] }),
|
|
3663
|
-
canInstall ? /* @__PURE__ */ jsxs16(
|
|
3664
|
-
Button3,
|
|
3665
|
-
{
|
|
3666
|
-
onClick: install,
|
|
3667
|
-
colorPalette: "green",
|
|
3668
|
-
size: "lg",
|
|
3669
|
-
w: "full",
|
|
3670
|
-
rounded: "xl",
|
|
3671
|
-
children: [
|
|
3672
|
-
/* @__PURE__ */ jsx19(Icon5, { as: FiDownload }),
|
|
3673
|
-
"Add to Home Screen"
|
|
3674
|
-
]
|
|
3675
|
-
}
|
|
3676
|
-
) : /* @__PURE__ */ jsx19(
|
|
3677
|
-
Box16,
|
|
3678
|
-
{
|
|
3679
|
-
w: "full",
|
|
3680
|
-
bg: "gray.50",
|
|
3681
|
-
borderWidth: "1px",
|
|
3682
|
-
borderColor: "gray.100",
|
|
3683
|
-
rounded: "xl",
|
|
3684
|
-
p: 4,
|
|
3685
|
-
children: /* @__PURE__ */ jsx19(VStack8, { gap: 4, align: "stretch", children: STEPS.map((step, index) => /* @__PURE__ */ jsxs16(HStack5, { gap: 3, align: "center", children: [
|
|
3686
|
-
/* @__PURE__ */ jsx19(
|
|
3687
|
-
Flex9,
|
|
3688
|
-
{
|
|
3689
|
-
boxSize: 9,
|
|
3690
|
-
flexShrink: 0,
|
|
3691
|
-
align: "center",
|
|
3692
|
-
justify: "center",
|
|
3693
|
-
rounded: "lg",
|
|
3694
|
-
bg: "white",
|
|
3695
|
-
borderWidth: "1px",
|
|
3696
|
-
borderColor: "gray.200",
|
|
3697
|
-
color: "green.600",
|
|
3698
|
-
children: /* @__PURE__ */ jsx19(Icon5, { as: step.icon, boxSize: 4 })
|
|
3699
|
-
}
|
|
3700
|
-
),
|
|
3701
|
-
/* @__PURE__ */ jsx19(
|
|
3702
|
-
Text9,
|
|
3703
|
-
{
|
|
3704
|
-
fontSize: "sm",
|
|
3705
|
-
color: "gray.700",
|
|
3706
|
-
textAlign: "left",
|
|
3707
|
-
children: step.label
|
|
3708
|
-
}
|
|
3709
|
-
)
|
|
3710
|
-
] }, index)) })
|
|
3711
|
-
}
|
|
3712
|
-
)
|
|
3713
|
-
] }) }),
|
|
3714
|
-
/* @__PURE__ */ jsx19(Dialog3.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx19(CloseButton4, { size: "sm", onClick: handleClose }) })
|
|
3867
|
+
/* @__PURE__ */ jsx19(Icon5, { as: FiDownload }),
|
|
3868
|
+
"Add to Home Screen"
|
|
3715
3869
|
]
|
|
3716
3870
|
}
|
|
3871
|
+
) : /* @__PURE__ */ jsx19(
|
|
3872
|
+
VStack8,
|
|
3873
|
+
{
|
|
3874
|
+
w: "full",
|
|
3875
|
+
bg: "gray.50",
|
|
3876
|
+
borderWidth: "1px",
|
|
3877
|
+
borderColor: "gray.100",
|
|
3878
|
+
rounded: "xl",
|
|
3879
|
+
p: 4,
|
|
3880
|
+
gap: 4,
|
|
3881
|
+
align: "stretch",
|
|
3882
|
+
children: STEPS.map((step, i) => /* @__PURE__ */ jsxs16(HStack5, { gap: 3, align: "center", children: [
|
|
3883
|
+
/* @__PURE__ */ jsx19(
|
|
3884
|
+
Flex9,
|
|
3885
|
+
{
|
|
3886
|
+
boxSize: 9,
|
|
3887
|
+
flexShrink: 0,
|
|
3888
|
+
align: "center",
|
|
3889
|
+
justify: "center",
|
|
3890
|
+
rounded: "lg",
|
|
3891
|
+
bg: "white",
|
|
3892
|
+
borderWidth: "1px",
|
|
3893
|
+
borderColor: "gray.200",
|
|
3894
|
+
color: "green.600",
|
|
3895
|
+
children: /* @__PURE__ */ jsx19(Icon5, { as: step.icon, boxSize: 4 })
|
|
3896
|
+
}
|
|
3897
|
+
),
|
|
3898
|
+
/* @__PURE__ */ jsx19(Text10, { fontSize: "sm", color: "gray.700", textAlign: "left", children: step.label })
|
|
3899
|
+
] }, i))
|
|
3900
|
+
}
|
|
3717
3901
|
)
|
|
3718
|
-
}
|
|
3719
|
-
|
|
3720
|
-
|
|
3721
|
-
|
|
3722
|
-
|
|
3902
|
+
] })
|
|
3903
|
+
]
|
|
3904
|
+
},
|
|
3905
|
+
"install-sheet"
|
|
3906
|
+
)
|
|
3907
|
+
] }) })
|
|
3723
3908
|
] });
|
|
3724
3909
|
}
|
|
3725
3910
|
|
|
@@ -3728,15 +3913,15 @@ import { useEffect as useEffect9, useMemo, useState as useState14 } from "react"
|
|
|
3728
3913
|
import {
|
|
3729
3914
|
Avatar,
|
|
3730
3915
|
Badge as Badge2,
|
|
3731
|
-
Box as
|
|
3916
|
+
Box as Box16,
|
|
3732
3917
|
Button as Button4,
|
|
3733
3918
|
Flex as Flex10,
|
|
3734
3919
|
HStack as HStack6,
|
|
3735
|
-
IconButton as
|
|
3920
|
+
IconButton as IconButton2,
|
|
3736
3921
|
Input as Input4,
|
|
3737
3922
|
InputGroup,
|
|
3738
|
-
Separator as
|
|
3739
|
-
Text as
|
|
3923
|
+
Separator as Separator3,
|
|
3924
|
+
Text as Text11,
|
|
3740
3925
|
useBreakpointValue as useBreakpointValue2,
|
|
3741
3926
|
VStack as VStack9
|
|
3742
3927
|
} from "@chakra-ui/react";
|
|
@@ -4245,7 +4430,7 @@ function ReusableProfile({
|
|
|
4245
4430
|
const roleLabel = user.role ? ROLE_LABELS[user.role] ?? user.role : "";
|
|
4246
4431
|
const mainContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
4247
4432
|
/* @__PURE__ */ jsxs17(
|
|
4248
|
-
|
|
4433
|
+
Box16,
|
|
4249
4434
|
{
|
|
4250
4435
|
bg: "var(--chakra-colors-primary)",
|
|
4251
4436
|
pt: 12,
|
|
@@ -4267,7 +4452,7 @@ function ReusableProfile({
|
|
|
4267
4452
|
}
|
|
4268
4453
|
),
|
|
4269
4454
|
/* @__PURE__ */ jsx20(
|
|
4270
|
-
|
|
4455
|
+
Text11,
|
|
4271
4456
|
{
|
|
4272
4457
|
color: "white",
|
|
4273
4458
|
fontWeight: "bold",
|
|
@@ -4277,8 +4462,8 @@ function ReusableProfile({
|
|
|
4277
4462
|
children: user.displayName
|
|
4278
4463
|
}
|
|
4279
4464
|
),
|
|
4280
|
-
user.email && /* @__PURE__ */ jsx20(
|
|
4281
|
-
roleLabel && /* @__PURE__ */ jsx20(
|
|
4465
|
+
user.email && /* @__PURE__ */ jsx20(Text11, { color: "rgba(255,255,255,0.75)", fontSize: "sm", mb: 2, children: user.email }),
|
|
4466
|
+
roleLabel && /* @__PURE__ */ jsx20(Box16, { display: "inline-flex", children: /* @__PURE__ */ jsx20(
|
|
4282
4467
|
Badge2,
|
|
4283
4468
|
{
|
|
4284
4469
|
bg: "rgba(255,255,255,0.15)",
|
|
@@ -4295,9 +4480,9 @@ function ReusableProfile({
|
|
|
4295
4480
|
]
|
|
4296
4481
|
}
|
|
4297
4482
|
),
|
|
4298
|
-
/* @__PURE__ */ jsxs17(
|
|
4483
|
+
/* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 5, pb: 1, children: [
|
|
4299
4484
|
/* @__PURE__ */ jsx20(
|
|
4300
|
-
|
|
4485
|
+
Text11,
|
|
4301
4486
|
{
|
|
4302
4487
|
fontSize: "xs",
|
|
4303
4488
|
fontWeight: "bold",
|
|
@@ -4309,7 +4494,7 @@ function ReusableProfile({
|
|
|
4309
4494
|
}
|
|
4310
4495
|
),
|
|
4311
4496
|
/* @__PURE__ */ jsx20(
|
|
4312
|
-
|
|
4497
|
+
Box16,
|
|
4313
4498
|
{
|
|
4314
4499
|
as: "button",
|
|
4315
4500
|
w: "full",
|
|
@@ -4329,7 +4514,7 @@ function ReusableProfile({
|
|
|
4329
4514
|
children: [
|
|
4330
4515
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4331
4516
|
/* @__PURE__ */ jsx20(
|
|
4332
|
-
|
|
4517
|
+
Box16,
|
|
4333
4518
|
{
|
|
4334
4519
|
w: "38px",
|
|
4335
4520
|
h: "38px",
|
|
@@ -4343,9 +4528,9 @@ function ReusableProfile({
|
|
|
4343
4528
|
children: /* @__PURE__ */ jsx20(LuUser, { size: 16 })
|
|
4344
4529
|
}
|
|
4345
4530
|
),
|
|
4346
|
-
/* @__PURE__ */ jsxs17(
|
|
4347
|
-
/* @__PURE__ */ jsx20(
|
|
4348
|
-
/* @__PURE__ */ jsx20(
|
|
4531
|
+
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4532
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Edit Account" }),
|
|
4533
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: "Update your display name and contact details" })
|
|
4349
4534
|
] })
|
|
4350
4535
|
] }),
|
|
4351
4536
|
/* @__PURE__ */ jsx20(LuChevronRight3, { size: 16, color: "var(--chakra-colors-gray-400)" })
|
|
@@ -4354,9 +4539,9 @@ function ReusableProfile({
|
|
|
4354
4539
|
)
|
|
4355
4540
|
}
|
|
4356
4541
|
),
|
|
4357
|
-
/* @__PURE__ */ jsx20(
|
|
4542
|
+
/* @__PURE__ */ jsx20(Separator3, {}),
|
|
4358
4543
|
/* @__PURE__ */ jsx20(
|
|
4359
|
-
|
|
4544
|
+
Box16,
|
|
4360
4545
|
{
|
|
4361
4546
|
as: "button",
|
|
4362
4547
|
w: "full",
|
|
@@ -4379,7 +4564,7 @@ function ReusableProfile({
|
|
|
4379
4564
|
children: [
|
|
4380
4565
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4381
4566
|
/* @__PURE__ */ jsx20(
|
|
4382
|
-
|
|
4567
|
+
Box16,
|
|
4383
4568
|
{
|
|
4384
4569
|
w: "38px",
|
|
4385
4570
|
h: "38px",
|
|
@@ -4393,9 +4578,9 @@ function ReusableProfile({
|
|
|
4393
4578
|
children: /* @__PURE__ */ jsx20(LuLock, { size: 16 })
|
|
4394
4579
|
}
|
|
4395
4580
|
),
|
|
4396
|
-
/* @__PURE__ */ jsxs17(
|
|
4397
|
-
/* @__PURE__ */ jsx20(
|
|
4398
|
-
/* @__PURE__ */ jsx20(
|
|
4581
|
+
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4582
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Change Password" }),
|
|
4583
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: "Test locally through the callback prop" })
|
|
4399
4584
|
] })
|
|
4400
4585
|
] }),
|
|
4401
4586
|
/* @__PURE__ */ jsx20(LuChevronRight3, { size: 16, color: "var(--chakra-colors-gray-400)" })
|
|
@@ -4404,11 +4589,11 @@ function ReusableProfile({
|
|
|
4404
4589
|
)
|
|
4405
4590
|
}
|
|
4406
4591
|
),
|
|
4407
|
-
/* @__PURE__ */ jsx20(
|
|
4592
|
+
/* @__PURE__ */ jsx20(Separator3, {}),
|
|
4408
4593
|
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4409
4594
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4410
4595
|
/* @__PURE__ */ jsx20(
|
|
4411
|
-
|
|
4596
|
+
Box16,
|
|
4412
4597
|
{
|
|
4413
4598
|
w: "38px",
|
|
4414
4599
|
h: "38px",
|
|
@@ -4422,13 +4607,13 @@ function ReusableProfile({
|
|
|
4422
4607
|
children: /* @__PURE__ */ jsx20(LuShield, { size: 16 })
|
|
4423
4608
|
}
|
|
4424
4609
|
),
|
|
4425
|
-
/* @__PURE__ */ jsxs17(
|
|
4426
|
-
/* @__PURE__ */ jsx20(
|
|
4427
|
-
/* @__PURE__ */ jsx20(
|
|
4610
|
+
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4611
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Two Factor Authentication" }),
|
|
4612
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: twoFactorEnabled ? "Enabled" : "Disabled" })
|
|
4428
4613
|
] })
|
|
4429
4614
|
] }),
|
|
4430
4615
|
/* @__PURE__ */ jsx20(
|
|
4431
|
-
|
|
4616
|
+
Box16,
|
|
4432
4617
|
{
|
|
4433
4618
|
role: "switch",
|
|
4434
4619
|
"aria-checked": twoFactorEnabled,
|
|
@@ -4451,7 +4636,7 @@ function ReusableProfile({
|
|
|
4451
4636
|
flexShrink: 0,
|
|
4452
4637
|
outline: "none",
|
|
4453
4638
|
children: /* @__PURE__ */ jsx20(
|
|
4454
|
-
|
|
4639
|
+
Box16,
|
|
4455
4640
|
{
|
|
4456
4641
|
position: "absolute",
|
|
4457
4642
|
top: "3px",
|
|
@@ -4468,9 +4653,9 @@ function ReusableProfile({
|
|
|
4468
4653
|
)
|
|
4469
4654
|
] })
|
|
4470
4655
|
] }),
|
|
4471
|
-
/* @__PURE__ */ jsxs17(
|
|
4656
|
+
/* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 4, pb: 2, children: [
|
|
4472
4657
|
/* @__PURE__ */ jsx20(
|
|
4473
|
-
|
|
4658
|
+
Text11,
|
|
4474
4659
|
{
|
|
4475
4660
|
fontSize: "xs",
|
|
4476
4661
|
fontWeight: "bold",
|
|
@@ -4484,7 +4669,7 @@ function ReusableProfile({
|
|
|
4484
4669
|
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4485
4670
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4486
4671
|
/* @__PURE__ */ jsx20(
|
|
4487
|
-
|
|
4672
|
+
Box16,
|
|
4488
4673
|
{
|
|
4489
4674
|
w: "38px",
|
|
4490
4675
|
h: "38px",
|
|
@@ -4498,9 +4683,9 @@ function ReusableProfile({
|
|
|
4498
4683
|
children: colorMode === "dark" ? /* @__PURE__ */ jsx20(LuMoon, { size: 16 }) : /* @__PURE__ */ jsx20(LuSun, { size: 16 })
|
|
4499
4684
|
}
|
|
4500
4685
|
),
|
|
4501
|
-
/* @__PURE__ */ jsxs17(
|
|
4502
|
-
/* @__PURE__ */ jsx20(
|
|
4503
|
-
/* @__PURE__ */ jsx20(
|
|
4686
|
+
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4687
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Appearance" }),
|
|
4688
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: colorMode === "light" ? "Light mode" : "Dark mode" })
|
|
4504
4689
|
] })
|
|
4505
4690
|
] }),
|
|
4506
4691
|
/* @__PURE__ */ jsx20(HStack6, { gap: 1.5, children: ["light", "dark"].map((mode) => {
|
|
@@ -4523,7 +4708,7 @@ function ReusableProfile({
|
|
|
4523
4708
|
children: [
|
|
4524
4709
|
mode === "light" ? /* @__PURE__ */ jsx20(LuSun, { size: 13 }) : /* @__PURE__ */ jsx20(LuMoon, { size: 13 }),
|
|
4525
4710
|
/* @__PURE__ */ jsx20(
|
|
4526
|
-
|
|
4711
|
+
Text11,
|
|
4527
4712
|
{
|
|
4528
4713
|
fontSize: "xs",
|
|
4529
4714
|
textTransform: "capitalize",
|
|
@@ -4537,11 +4722,11 @@ function ReusableProfile({
|
|
|
4537
4722
|
);
|
|
4538
4723
|
}) })
|
|
4539
4724
|
] }),
|
|
4540
|
-
/* @__PURE__ */ jsx20(
|
|
4725
|
+
/* @__PURE__ */ jsx20(Separator3, {}),
|
|
4541
4726
|
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4542
4727
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4543
4728
|
/* @__PURE__ */ jsx20(
|
|
4544
|
-
|
|
4729
|
+
Box16,
|
|
4545
4730
|
{
|
|
4546
4731
|
w: "38px",
|
|
4547
4732
|
h: "38px",
|
|
@@ -4557,9 +4742,9 @@ function ReusableProfile({
|
|
|
4557
4742
|
children: "A"
|
|
4558
4743
|
}
|
|
4559
4744
|
),
|
|
4560
|
-
/* @__PURE__ */ jsxs17(
|
|
4561
|
-
/* @__PURE__ */ jsx20(
|
|
4562
|
-
/* @__PURE__ */ jsx20(
|
|
4745
|
+
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4746
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Text Size" }),
|
|
4747
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: fontSizeLabel })
|
|
4563
4748
|
] })
|
|
4564
4749
|
] }),
|
|
4565
4750
|
/* @__PURE__ */ jsx20(HStack6, { gap: 1, children: FONT_SIZES.map((option) => {
|
|
@@ -4581,7 +4766,7 @@ function ReusableProfile({
|
|
|
4581
4766
|
onClick: () => handleFontSize(option.value),
|
|
4582
4767
|
title: option.title,
|
|
4583
4768
|
children: /* @__PURE__ */ jsx20(
|
|
4584
|
-
|
|
4769
|
+
Text11,
|
|
4585
4770
|
{
|
|
4586
4771
|
fontWeight: isActive ? "bold" : "normal",
|
|
4587
4772
|
style: { fontSize: `${option.scale * 13}px` },
|
|
@@ -4593,9 +4778,9 @@ function ReusableProfile({
|
|
|
4593
4778
|
);
|
|
4594
4779
|
}) })
|
|
4595
4780
|
] }),
|
|
4596
|
-
/* @__PURE__ */ jsx20(
|
|
4781
|
+
/* @__PURE__ */ jsx20(Separator3, {}),
|
|
4597
4782
|
/* @__PURE__ */ jsx20(
|
|
4598
|
-
|
|
4783
|
+
Box16,
|
|
4599
4784
|
{
|
|
4600
4785
|
as: "button",
|
|
4601
4786
|
w: "full",
|
|
@@ -4606,7 +4791,7 @@ function ReusableProfile({
|
|
|
4606
4791
|
children: /* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4607
4792
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4608
4793
|
/* @__PURE__ */ jsx20(
|
|
4609
|
-
|
|
4794
|
+
Box16,
|
|
4610
4795
|
{
|
|
4611
4796
|
w: "38px",
|
|
4612
4797
|
h: "38px",
|
|
@@ -4620,9 +4805,9 @@ function ReusableProfile({
|
|
|
4620
4805
|
children: /* @__PURE__ */ jsx20(LuArrowLeftRight, { size: 16 })
|
|
4621
4806
|
}
|
|
4622
4807
|
),
|
|
4623
|
-
/* @__PURE__ */ jsxs17(
|
|
4624
|
-
/* @__PURE__ */ jsx20(
|
|
4625
|
-
/* @__PURE__ */ jsxs17(
|
|
4808
|
+
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4809
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Quick Navigation" }),
|
|
4810
|
+
/* @__PURE__ */ jsxs17(Text11, { fontSize: "xs", color: "gray.500", children: [
|
|
4626
4811
|
quickNavHrefs.length,
|
|
4627
4812
|
" of ",
|
|
4628
4813
|
maxQuickNavItems,
|
|
@@ -4635,7 +4820,7 @@ function ReusableProfile({
|
|
|
4635
4820
|
}
|
|
4636
4821
|
)
|
|
4637
4822
|
] }),
|
|
4638
|
-
/* @__PURE__ */ jsx20(
|
|
4823
|
+
/* @__PURE__ */ jsx20(Box16, { px: 4, pt: 4, pb: 10, children: /* @__PURE__ */ jsx20(VStack9, { gap: 2.5, children: /* @__PURE__ */ jsx20(
|
|
4639
4824
|
Button4,
|
|
4640
4825
|
{
|
|
4641
4826
|
w: "full",
|
|
@@ -4649,9 +4834,9 @@ function ReusableProfile({
|
|
|
4649
4834
|
) }) })
|
|
4650
4835
|
] });
|
|
4651
4836
|
const editAccountContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
4652
|
-
/* @__PURE__ */ jsx20(
|
|
4837
|
+
/* @__PURE__ */ jsx20(Box16, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
|
|
4653
4838
|
/* @__PURE__ */ jsx20(
|
|
4654
|
-
|
|
4839
|
+
IconButton2,
|
|
4655
4840
|
{
|
|
4656
4841
|
size: "sm",
|
|
4657
4842
|
variant: "ghost",
|
|
@@ -4661,15 +4846,15 @@ function ReusableProfile({
|
|
|
4661
4846
|
children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
|
|
4662
4847
|
}
|
|
4663
4848
|
),
|
|
4664
|
-
/* @__PURE__ */ jsx20(
|
|
4849
|
+
/* @__PURE__ */ jsx20(Text11, { fontWeight: "bold", fontSize: "md", children: "Edit Account" })
|
|
4665
4850
|
] }) }),
|
|
4666
|
-
/* @__PURE__ */ jsx20(
|
|
4851
|
+
/* @__PURE__ */ jsx20(Box16, { textAlign: "center", pt: 5, pb: 4, children: /* @__PURE__ */ jsxs17(Avatar.Root, { size: "xl", mx: "auto", mb: 1, children: [
|
|
4667
4852
|
user.avatarSrc && /* @__PURE__ */ jsx20(Avatar.Image, { src: user.avatarSrc, alt: editName }),
|
|
4668
4853
|
/* @__PURE__ */ jsx20(Avatar.Fallback, { name: editName })
|
|
4669
4854
|
] }) }),
|
|
4670
4855
|
/* @__PURE__ */ jsxs17(VStack9, { gap: 4, px: 4, pb: 10, align: "stretch", children: [
|
|
4671
|
-
/* @__PURE__ */ jsxs17(
|
|
4672
|
-
/* @__PURE__ */ jsx20(
|
|
4856
|
+
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4857
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Display Name" }),
|
|
4673
4858
|
/* @__PURE__ */ jsx20(
|
|
4674
4859
|
Input4,
|
|
4675
4860
|
{
|
|
@@ -4680,8 +4865,8 @@ function ReusableProfile({
|
|
|
4680
4865
|
}
|
|
4681
4866
|
)
|
|
4682
4867
|
] }),
|
|
4683
|
-
/* @__PURE__ */ jsxs17(
|
|
4684
|
-
/* @__PURE__ */ jsx20(
|
|
4868
|
+
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4869
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Email" }),
|
|
4685
4870
|
/* @__PURE__ */ jsx20(
|
|
4686
4871
|
Input4,
|
|
4687
4872
|
{
|
|
@@ -4693,8 +4878,8 @@ function ReusableProfile({
|
|
|
4693
4878
|
}
|
|
4694
4879
|
)
|
|
4695
4880
|
] }),
|
|
4696
|
-
/* @__PURE__ */ jsxs17(
|
|
4697
|
-
/* @__PURE__ */ jsx20(
|
|
4881
|
+
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4882
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Mobile Number" }),
|
|
4698
4883
|
/* @__PURE__ */ jsx20(
|
|
4699
4884
|
Input4,
|
|
4700
4885
|
{
|
|
@@ -4722,9 +4907,9 @@ function ReusableProfile({
|
|
|
4722
4907
|
] })
|
|
4723
4908
|
] });
|
|
4724
4909
|
const changePasswordContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
4725
|
-
/* @__PURE__ */ jsx20(
|
|
4910
|
+
/* @__PURE__ */ jsx20(Box16, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
|
|
4726
4911
|
/* @__PURE__ */ jsx20(
|
|
4727
|
-
|
|
4912
|
+
IconButton2,
|
|
4728
4913
|
{
|
|
4729
4914
|
size: "sm",
|
|
4730
4915
|
variant: "ghost",
|
|
@@ -4734,16 +4919,16 @@ function ReusableProfile({
|
|
|
4734
4919
|
children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
|
|
4735
4920
|
}
|
|
4736
4921
|
),
|
|
4737
|
-
/* @__PURE__ */ jsx20(
|
|
4922
|
+
/* @__PURE__ */ jsx20(Text11, { fontWeight: "bold", fontSize: "md", children: "Change Password" })
|
|
4738
4923
|
] }) }),
|
|
4739
4924
|
/* @__PURE__ */ jsxs17(VStack9, { gap: 5, px: 4, pt: 6, pb: 10, children: [
|
|
4740
|
-
/* @__PURE__ */ jsxs17(
|
|
4741
|
-
/* @__PURE__ */ jsx20(
|
|
4925
|
+
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4926
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Current Password" }),
|
|
4742
4927
|
/* @__PURE__ */ jsx20(
|
|
4743
4928
|
InputGroup,
|
|
4744
4929
|
{
|
|
4745
4930
|
endElement: /* @__PURE__ */ jsx20(
|
|
4746
|
-
|
|
4931
|
+
IconButton2,
|
|
4747
4932
|
{
|
|
4748
4933
|
size: "xs",
|
|
4749
4934
|
variant: "ghost",
|
|
@@ -4766,13 +4951,13 @@ function ReusableProfile({
|
|
|
4766
4951
|
}
|
|
4767
4952
|
)
|
|
4768
4953
|
] }),
|
|
4769
|
-
/* @__PURE__ */ jsxs17(
|
|
4770
|
-
/* @__PURE__ */ jsx20(
|
|
4954
|
+
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4955
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "New Password" }),
|
|
4771
4956
|
/* @__PURE__ */ jsx20(
|
|
4772
4957
|
InputGroup,
|
|
4773
4958
|
{
|
|
4774
4959
|
endElement: /* @__PURE__ */ jsx20(
|
|
4775
|
-
|
|
4960
|
+
IconButton2,
|
|
4776
4961
|
{
|
|
4777
4962
|
size: "xs",
|
|
4778
4963
|
variant: "ghost",
|
|
@@ -4794,9 +4979,9 @@ function ReusableProfile({
|
|
|
4794
4979
|
)
|
|
4795
4980
|
}
|
|
4796
4981
|
),
|
|
4797
|
-
newPw && /* @__PURE__ */ jsxs17(
|
|
4982
|
+
newPw && /* @__PURE__ */ jsxs17(Box16, { mt: 2, children: [
|
|
4798
4983
|
/* @__PURE__ */ jsx20(Flex10, { gap: 1, mb: 1, children: [1, 2, 3, 4, 5].map((i) => /* @__PURE__ */ jsx20(
|
|
4799
|
-
|
|
4984
|
+
Box16,
|
|
4800
4985
|
{
|
|
4801
4986
|
flex: 1,
|
|
4802
4987
|
h: "3px",
|
|
@@ -4806,16 +4991,16 @@ function ReusableProfile({
|
|
|
4806
4991
|
},
|
|
4807
4992
|
i
|
|
4808
4993
|
)) }),
|
|
4809
|
-
/* @__PURE__ */ jsx20(
|
|
4994
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: pwMeta.color, fontWeight: "medium", children: pwMeta.label })
|
|
4810
4995
|
] })
|
|
4811
4996
|
] }),
|
|
4812
|
-
/* @__PURE__ */ jsxs17(
|
|
4813
|
-
/* @__PURE__ */ jsx20(
|
|
4997
|
+
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4998
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Confirm New Password" }),
|
|
4814
4999
|
/* @__PURE__ */ jsx20(
|
|
4815
5000
|
InputGroup,
|
|
4816
5001
|
{
|
|
4817
5002
|
endElement: /* @__PURE__ */ jsx20(
|
|
4818
|
-
|
|
5003
|
+
IconButton2,
|
|
4819
5004
|
{
|
|
4820
5005
|
size: "xs",
|
|
4821
5006
|
variant: "ghost",
|
|
@@ -4837,7 +5022,7 @@ function ReusableProfile({
|
|
|
4837
5022
|
)
|
|
4838
5023
|
}
|
|
4839
5024
|
),
|
|
4840
|
-
confirmPw && confirmPw !== newPw && /* @__PURE__ */ jsx20(
|
|
5025
|
+
confirmPw && confirmPw !== newPw && /* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "red.500", mt: 1, children: "Passwords do not match" })
|
|
4841
5026
|
] }),
|
|
4842
5027
|
/* @__PURE__ */ jsx20(
|
|
4843
5028
|
Button4,
|
|
@@ -4857,7 +5042,7 @@ function ReusableProfile({
|
|
|
4857
5042
|
] });
|
|
4858
5043
|
const navbarCustomizeContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
|
|
4859
5044
|
/* @__PURE__ */ jsx20(
|
|
4860
|
-
|
|
5045
|
+
Box16,
|
|
4861
5046
|
{
|
|
4862
5047
|
px: 4,
|
|
4863
5048
|
pt: 4,
|
|
@@ -4870,7 +5055,7 @@ function ReusableProfile({
|
|
|
4870
5055
|
zIndex: 1,
|
|
4871
5056
|
children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
|
|
4872
5057
|
/* @__PURE__ */ jsx20(
|
|
4873
|
-
|
|
5058
|
+
IconButton2,
|
|
4874
5059
|
{
|
|
4875
5060
|
size: "sm",
|
|
4876
5061
|
variant: "ghost",
|
|
@@ -4883,9 +5068,9 @@ function ReusableProfile({
|
|
|
4883
5068
|
children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
|
|
4884
5069
|
}
|
|
4885
5070
|
),
|
|
4886
|
-
/* @__PURE__ */ jsxs17(
|
|
4887
|
-
/* @__PURE__ */ jsx20(
|
|
4888
|
-
/* @__PURE__ */ jsxs17(
|
|
5071
|
+
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
5072
|
+
/* @__PURE__ */ jsx20(Text11, { fontWeight: "bold", fontSize: "md", children: "Quick Navigation" }),
|
|
5073
|
+
/* @__PURE__ */ jsxs17(Text11, { fontSize: "xs", color: "gray.500", children: [
|
|
4889
5074
|
"Choose up to ",
|
|
4890
5075
|
maxQuickNavItems,
|
|
4891
5076
|
" shortcuts for the bottom bar"
|
|
@@ -4894,10 +5079,10 @@ function ReusableProfile({
|
|
|
4894
5079
|
] })
|
|
4895
5080
|
}
|
|
4896
5081
|
),
|
|
4897
|
-
/* @__PURE__ */ jsxs17(
|
|
5082
|
+
/* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 5, pb: 2, children: [
|
|
4898
5083
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
|
|
4899
5084
|
/* @__PURE__ */ jsx20(
|
|
4900
|
-
|
|
5085
|
+
Text11,
|
|
4901
5086
|
{
|
|
4902
5087
|
fontSize: "xs",
|
|
4903
5088
|
fontWeight: "bold",
|
|
@@ -4908,7 +5093,7 @@ function ReusableProfile({
|
|
|
4908
5093
|
}
|
|
4909
5094
|
),
|
|
4910
5095
|
/* @__PURE__ */ jsxs17(
|
|
4911
|
-
|
|
5096
|
+
Text11,
|
|
4912
5097
|
{
|
|
4913
5098
|
fontSize: "xs",
|
|
4914
5099
|
color: quickNavHrefs.length >= maxQuickNavItems ? "orange.500" : "gray.400",
|
|
@@ -4931,7 +5116,7 @@ function ReusableProfile({
|
|
|
4931
5116
|
borderWidth: "1px",
|
|
4932
5117
|
borderStyle: "dashed",
|
|
4933
5118
|
borderColor: "gray.200",
|
|
4934
|
-
children: /* @__PURE__ */ jsx20(
|
|
5119
|
+
children: /* @__PURE__ */ jsx20(Text11, { fontSize: "sm", color: "gray.400", children: "No items pinned \u2014 add from below" })
|
|
4935
5120
|
}
|
|
4936
5121
|
) : /* @__PURE__ */ jsx20(VStack9, { gap: 0, children: quickNavHrefs.map((href, idx) => {
|
|
4937
5122
|
const option = availableOptions.find((item) => item.key === href);
|
|
@@ -4940,7 +5125,7 @@ function ReusableProfile({
|
|
|
4940
5125
|
const isFirst = idx === 0;
|
|
4941
5126
|
const isLast = idx === quickNavHrefs.length - 1;
|
|
4942
5127
|
const isReplacing = replacingIdx === idx;
|
|
4943
|
-
return /* @__PURE__ */ jsxs17(
|
|
5128
|
+
return /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4944
5129
|
/* @__PURE__ */ jsxs17(
|
|
4945
5130
|
Flex10,
|
|
4946
5131
|
{
|
|
@@ -4956,7 +5141,7 @@ function ReusableProfile({
|
|
|
4956
5141
|
children: [
|
|
4957
5142
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4958
5143
|
/* @__PURE__ */ jsx20(
|
|
4959
|
-
|
|
5144
|
+
Box16,
|
|
4960
5145
|
{
|
|
4961
5146
|
w: "36px",
|
|
4962
5147
|
h: "36px",
|
|
@@ -4970,10 +5155,10 @@ function ReusableProfile({
|
|
|
4970
5155
|
children: /* @__PURE__ */ jsx20(ItemIcon, { size: 15 })
|
|
4971
5156
|
}
|
|
4972
5157
|
),
|
|
4973
|
-
/* @__PURE__ */ jsxs17(
|
|
4974
|
-
/* @__PURE__ */ jsx20(
|
|
5158
|
+
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
5159
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "medium", children: option.title }),
|
|
4975
5160
|
isReplacing && /* @__PURE__ */ jsx20(
|
|
4976
|
-
|
|
5161
|
+
Text11,
|
|
4977
5162
|
{
|
|
4978
5163
|
fontSize: "xs",
|
|
4979
5164
|
color: "orange.500",
|
|
@@ -4985,7 +5170,7 @@ function ReusableProfile({
|
|
|
4985
5170
|
] }),
|
|
4986
5171
|
/* @__PURE__ */ jsxs17(HStack6, { gap: 0.5, children: [
|
|
4987
5172
|
/* @__PURE__ */ jsx20(
|
|
4988
|
-
|
|
5173
|
+
IconButton2,
|
|
4989
5174
|
{
|
|
4990
5175
|
size: "xs",
|
|
4991
5176
|
variant: "ghost",
|
|
@@ -4997,7 +5182,7 @@ function ReusableProfile({
|
|
|
4997
5182
|
}
|
|
4998
5183
|
),
|
|
4999
5184
|
/* @__PURE__ */ jsx20(
|
|
5000
|
-
|
|
5185
|
+
IconButton2,
|
|
5001
5186
|
{
|
|
5002
5187
|
size: "xs",
|
|
5003
5188
|
variant: "ghost",
|
|
@@ -5009,7 +5194,7 @@ function ReusableProfile({
|
|
|
5009
5194
|
}
|
|
5010
5195
|
),
|
|
5011
5196
|
/* @__PURE__ */ jsx20(
|
|
5012
|
-
|
|
5197
|
+
IconButton2,
|
|
5013
5198
|
{
|
|
5014
5199
|
size: "xs",
|
|
5015
5200
|
variant: isReplacing ? "solid" : "ghost",
|
|
@@ -5022,7 +5207,7 @@ function ReusableProfile({
|
|
|
5022
5207
|
}
|
|
5023
5208
|
),
|
|
5024
5209
|
/* @__PURE__ */ jsx20(
|
|
5025
|
-
|
|
5210
|
+
IconButton2,
|
|
5026
5211
|
{
|
|
5027
5212
|
size: "xs",
|
|
5028
5213
|
variant: "ghost",
|
|
@@ -5038,16 +5223,16 @@ function ReusableProfile({
|
|
|
5038
5223
|
]
|
|
5039
5224
|
}
|
|
5040
5225
|
),
|
|
5041
|
-
!isLast && /* @__PURE__ */ jsx20(
|
|
5226
|
+
!isLast && /* @__PURE__ */ jsx20(Separator3, {})
|
|
5042
5227
|
] }, href);
|
|
5043
5228
|
}) })
|
|
5044
5229
|
] }),
|
|
5045
|
-
/* @__PURE__ */ jsx20(
|
|
5046
|
-
/* @__PURE__ */ jsxs17(
|
|
5230
|
+
/* @__PURE__ */ jsx20(Separator3, { mx: 4, my: 1 }),
|
|
5231
|
+
/* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 4, pb: 10, children: [
|
|
5047
5232
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
|
|
5048
|
-
replacingIdx !== null ? /* @__PURE__ */ jsxs17(
|
|
5233
|
+
replacingIdx !== null ? /* @__PURE__ */ jsxs17(Box16, { children: [
|
|
5049
5234
|
/* @__PURE__ */ jsx20(
|
|
5050
|
-
|
|
5235
|
+
Text11,
|
|
5051
5236
|
{
|
|
5052
5237
|
fontSize: "xs",
|
|
5053
5238
|
fontWeight: "bold",
|
|
@@ -5057,7 +5242,7 @@ function ReusableProfile({
|
|
|
5057
5242
|
children: "Select Replacement"
|
|
5058
5243
|
}
|
|
5059
5244
|
),
|
|
5060
|
-
/* @__PURE__ */ jsxs17(
|
|
5245
|
+
/* @__PURE__ */ jsxs17(Text11, { fontSize: "xs", color: "gray.500", mt: 0.5, children: [
|
|
5061
5246
|
'for "',
|
|
5062
5247
|
availableOptions.find(
|
|
5063
5248
|
(item) => item.key === quickNavHrefs[replacingIdx]
|
|
@@ -5065,7 +5250,7 @@ function ReusableProfile({
|
|
|
5065
5250
|
'"'
|
|
5066
5251
|
] })
|
|
5067
5252
|
] }) : /* @__PURE__ */ jsx20(
|
|
5068
|
-
|
|
5253
|
+
Text11,
|
|
5069
5254
|
{
|
|
5070
5255
|
fontSize: "xs",
|
|
5071
5256
|
fontWeight: "bold",
|
|
@@ -5086,17 +5271,17 @@ function ReusableProfile({
|
|
|
5086
5271
|
}
|
|
5087
5272
|
)
|
|
5088
5273
|
] }),
|
|
5089
|
-
unpinnedOptions.length === 0 ? /* @__PURE__ */ jsx20(
|
|
5274
|
+
unpinnedOptions.length === 0 ? /* @__PURE__ */ jsx20(Text11, { 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) => {
|
|
5090
5275
|
const ItemIcon = option.Icon;
|
|
5091
5276
|
const isLast = idx === unpinnedOptions.length - 1;
|
|
5092
5277
|
const isReplacingMode = replacingIdx !== null;
|
|
5093
5278
|
const canAdd = quickNavHrefs.length < maxQuickNavItems;
|
|
5094
5279
|
const actionEnabled = isReplacingMode || canAdd;
|
|
5095
|
-
return /* @__PURE__ */ jsxs17(
|
|
5280
|
+
return /* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
5096
5281
|
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 2.5, children: [
|
|
5097
5282
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
5098
5283
|
/* @__PURE__ */ jsx20(
|
|
5099
|
-
|
|
5284
|
+
Box16,
|
|
5100
5285
|
{
|
|
5101
5286
|
w: "36px",
|
|
5102
5287
|
h: "36px",
|
|
@@ -5111,7 +5296,7 @@ function ReusableProfile({
|
|
|
5111
5296
|
}
|
|
5112
5297
|
),
|
|
5113
5298
|
/* @__PURE__ */ jsx20(
|
|
5114
|
-
|
|
5299
|
+
Text11,
|
|
5115
5300
|
{
|
|
5116
5301
|
fontSize: "sm",
|
|
5117
5302
|
fontWeight: "medium",
|
|
@@ -5121,7 +5306,7 @@ function ReusableProfile({
|
|
|
5121
5306
|
)
|
|
5122
5307
|
] }),
|
|
5123
5308
|
isReplacingMode ? /* @__PURE__ */ jsx20(
|
|
5124
|
-
|
|
5309
|
+
IconButton2,
|
|
5125
5310
|
{
|
|
5126
5311
|
size: "xs",
|
|
5127
5312
|
variant: "outline",
|
|
@@ -5133,7 +5318,7 @@ function ReusableProfile({
|
|
|
5133
5318
|
children: /* @__PURE__ */ jsx20(LuArrowLeftRight, { size: 13 })
|
|
5134
5319
|
}
|
|
5135
5320
|
) : /* @__PURE__ */ jsx20(
|
|
5136
|
-
|
|
5321
|
+
IconButton2,
|
|
5137
5322
|
{
|
|
5138
5323
|
size: "xs",
|
|
5139
5324
|
variant: "outline",
|
|
@@ -5147,7 +5332,7 @@ function ReusableProfile({
|
|
|
5147
5332
|
}
|
|
5148
5333
|
)
|
|
5149
5334
|
] }),
|
|
5150
|
-
!isLast && /* @__PURE__ */ jsx20(
|
|
5335
|
+
!isLast && /* @__PURE__ */ jsx20(Separator3, {})
|
|
5151
5336
|
] }, option.key);
|
|
5152
5337
|
}) })
|
|
5153
5338
|
] })
|
|
@@ -5166,7 +5351,7 @@ function ReusableProfile({
|
|
|
5166
5351
|
align: "start",
|
|
5167
5352
|
children: [
|
|
5168
5353
|
/* @__PURE__ */ jsx20(
|
|
5169
|
-
|
|
5354
|
+
Box16,
|
|
5170
5355
|
{
|
|
5171
5356
|
w: { md: "300px", lg: "340px" },
|
|
5172
5357
|
flexShrink: 0,
|
|
@@ -5181,7 +5366,7 @@ function ReusableProfile({
|
|
|
5181
5366
|
}
|
|
5182
5367
|
),
|
|
5183
5368
|
/* @__PURE__ */ jsx20(
|
|
5184
|
-
|
|
5369
|
+
Box16,
|
|
5185
5370
|
{
|
|
5186
5371
|
flex: "1",
|
|
5187
5372
|
minW: 0,
|
|
@@ -5203,7 +5388,7 @@ function ReusableProfile({
|
|
|
5203
5388
|
color: "gray.400",
|
|
5204
5389
|
children: [
|
|
5205
5390
|
/* @__PURE__ */ jsx20(
|
|
5206
|
-
|
|
5391
|
+
Box16,
|
|
5207
5392
|
{
|
|
5208
5393
|
w: "56px",
|
|
5209
5394
|
h: "56px",
|
|
@@ -5216,7 +5401,7 @@ function ReusableProfile({
|
|
|
5216
5401
|
children: /* @__PURE__ */ jsx20(LuUser, { size: 24 })
|
|
5217
5402
|
}
|
|
5218
5403
|
),
|
|
5219
|
-
/* @__PURE__ */ jsx20(
|
|
5404
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", mt: 1, maxW: "280px", children: "Choose Edit Account, Change Password, or Quick Navigation from the menu to update your details here." })
|
|
5220
5405
|
]
|
|
5221
5406
|
}
|
|
5222
5407
|
)
|
|
@@ -5226,7 +5411,7 @@ function ReusableProfile({
|
|
|
5226
5411
|
}
|
|
5227
5412
|
);
|
|
5228
5413
|
}
|
|
5229
|
-
return /* @__PURE__ */ jsx20(
|
|
5414
|
+
return /* @__PURE__ */ jsx20(Box16, { maxW: "480px", mx: "auto", w: "full", minH: "100%", bg: "bg", children: profileView === "main" ? mainContent : subViewContent });
|
|
5230
5415
|
}
|
|
5231
5416
|
var UserProfile_default = ReusableProfile;
|
|
5232
5417
|
export {
|