@splpi/estore-shared-components 0.0.5 → 7.0.1
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.js +1207 -892
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +942 -631
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,6 @@ import {
|
|
|
6
6
|
Select,
|
|
7
7
|
createListCollection
|
|
8
8
|
} from "@chakra-ui/react";
|
|
9
|
-
import { useState as useState2, useEffect } from "react";
|
|
10
9
|
|
|
11
10
|
// src/lib/theme/layout-tokens.ts
|
|
12
11
|
var RESPONSIVE_LAYOUT_TOKENS = {
|
|
@@ -227,6 +226,9 @@ var STANDARD_ICON_BUTTON_STYLES = {
|
|
|
227
226
|
}
|
|
228
227
|
};
|
|
229
228
|
|
|
229
|
+
// src/NewSaleForm/LifePlanApplication1.tsx
|
|
230
|
+
import { useEffect, useState as useState2 } from "react";
|
|
231
|
+
|
|
230
232
|
// src/NewSaleForm/ui/FloatingLabelInput.tsx
|
|
231
233
|
import {
|
|
232
234
|
Box,
|
|
@@ -358,8 +360,13 @@ var LifePlanApplication1 = ({
|
|
|
358
360
|
if (OCRValue != null) {
|
|
359
361
|
try {
|
|
360
362
|
const ocrData = JSON.parse(OCRValue);
|
|
361
|
-
|
|
362
|
-
|
|
363
|
+
let formattedBirthDate = "";
|
|
364
|
+
if (typeof ocrData?.birthDate === "string") {
|
|
365
|
+
const [month, day, year] = ocrData.birthDate.split("/").map((part) => part.trim());
|
|
366
|
+
if (month && day && year) {
|
|
367
|
+
formattedBirthDate = `${year}-${month.padStart(2, "0")}-${day.padStart(2, "0")}`;
|
|
368
|
+
}
|
|
369
|
+
}
|
|
363
370
|
let mappedIdType = "";
|
|
364
371
|
if (ocrData?.idType) {
|
|
365
372
|
const normalizedIdType = ocrData.idType.toLowerCase().replace(/\s+/g, "_").replace(/'/g, "");
|
|
@@ -618,7 +625,37 @@ import {
|
|
|
618
625
|
Portal,
|
|
619
626
|
Field as Field3
|
|
620
627
|
} from "@chakra-ui/react";
|
|
621
|
-
import { useState as useState3 } from "react";
|
|
628
|
+
import { useEffect as useEffect2, useState as useState3 } from "react";
|
|
629
|
+
|
|
630
|
+
// src/lib/theme/brand-colors.ts
|
|
631
|
+
var BRAND_COLORS = {
|
|
632
|
+
primaryGreen: "#109448",
|
|
633
|
+
darkGreen: "#006838",
|
|
634
|
+
softGreen: "#92DDBF",
|
|
635
|
+
pastelPeaGreen: "#ACD6A6",
|
|
636
|
+
seafoamGreen: "#92DDBF",
|
|
637
|
+
lightCyan: "#D3EDEE",
|
|
638
|
+
successBg: "#F0FDF4",
|
|
639
|
+
warningBg: "#FFF7ED",
|
|
640
|
+
warningText: "#F1592B",
|
|
641
|
+
warningBorder: "#F4845F",
|
|
642
|
+
errorBg: "#FEF2F2",
|
|
643
|
+
destructiveRed: "#BF1F2F",
|
|
644
|
+
errorRed: "#EF4444",
|
|
645
|
+
neutralText: "#22223B",
|
|
646
|
+
neutralBorder: "#E5E7EB",
|
|
647
|
+
mutedBg: "#F3F4F6",
|
|
648
|
+
subtleBg: "#F9FAFB",
|
|
649
|
+
white: "#FFFFFF",
|
|
650
|
+
black: "#000000",
|
|
651
|
+
grey: "#808080",
|
|
652
|
+
ashWhite: "#ECECEC",
|
|
653
|
+
gold: "#CBA135",
|
|
654
|
+
brightGold: "#FFD026",
|
|
655
|
+
paleGold: "#FFF48E"
|
|
656
|
+
};
|
|
657
|
+
|
|
658
|
+
// src/NewSaleForm/LifePlanApplication2.tsx
|
|
622
659
|
import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
623
660
|
var provinceOptions = [
|
|
624
661
|
"Abra",
|
|
@@ -828,6 +865,16 @@ var LifePlanApplication2 = ({
|
|
|
828
865
|
const [province, setProvince] = useState3("Metro Manila");
|
|
829
866
|
const [district, setDistrict] = useState3("Taguig");
|
|
830
867
|
const [barangay, setBarangay] = useState3("San Juan");
|
|
868
|
+
useEffect2(() => {
|
|
869
|
+
onAddressUpdate?.({
|
|
870
|
+
lot,
|
|
871
|
+
street,
|
|
872
|
+
barangay,
|
|
873
|
+
district,
|
|
874
|
+
city,
|
|
875
|
+
province
|
|
876
|
+
});
|
|
877
|
+
}, [lot, street, barangay, city, province, district]);
|
|
831
878
|
return /* @__PURE__ */ jsx3(
|
|
832
879
|
Box2,
|
|
833
880
|
{
|
|
@@ -1068,7 +1115,7 @@ import {
|
|
|
1068
1115
|
useBreakpointValue,
|
|
1069
1116
|
Button
|
|
1070
1117
|
} from "@chakra-ui/react";
|
|
1071
|
-
import { useState as useState4 } from "react";
|
|
1118
|
+
import { useEffect as useEffect3, useState as useState4 } from "react";
|
|
1072
1119
|
import { FaRegTrashAlt } from "react-icons/fa";
|
|
1073
1120
|
import { LuPencil } from "react-icons/lu";
|
|
1074
1121
|
import {
|
|
@@ -1099,7 +1146,66 @@ var RowItem = ({
|
|
|
1099
1146
|
),
|
|
1100
1147
|
/* @__PURE__ */ jsx5(Text3, { fontWeight: "medium", textAlign: "right", whiteSpace: "nowrap", children: value ?? "-" })
|
|
1101
1148
|
] });
|
|
1102
|
-
|
|
1149
|
+
|
|
1150
|
+
// src/lib/applicationData.ts
|
|
1151
|
+
var LIFE_PLAN_APPLICATION_KEY = "LifePlanApplication";
|
|
1152
|
+
var createEmptyApplicationData = () => ({
|
|
1153
|
+
personalInfo: {
|
|
1154
|
+
firstName: "",
|
|
1155
|
+
middleName: "",
|
|
1156
|
+
lastName: "",
|
|
1157
|
+
suffix: "",
|
|
1158
|
+
birthDate: "",
|
|
1159
|
+
idType: "",
|
|
1160
|
+
idNumber: "",
|
|
1161
|
+
height: 0,
|
|
1162
|
+
weight: 0,
|
|
1163
|
+
gender: "",
|
|
1164
|
+
civilStatus: "",
|
|
1165
|
+
nationality: "",
|
|
1166
|
+
mobileNumber: "",
|
|
1167
|
+
emailAddress: "",
|
|
1168
|
+
mailingAddress: "",
|
|
1169
|
+
landLineNumber: ""
|
|
1170
|
+
},
|
|
1171
|
+
address: {
|
|
1172
|
+
lot: "",
|
|
1173
|
+
street: "",
|
|
1174
|
+
barangay: "",
|
|
1175
|
+
district: "",
|
|
1176
|
+
city: "",
|
|
1177
|
+
province: ""
|
|
1178
|
+
},
|
|
1179
|
+
employment: {
|
|
1180
|
+
occupation: "",
|
|
1181
|
+
employerName: "",
|
|
1182
|
+
employmentStatus: "",
|
|
1183
|
+
officeAddress: "",
|
|
1184
|
+
TIN: "",
|
|
1185
|
+
SSS: "",
|
|
1186
|
+
sourceOfIncome: ""
|
|
1187
|
+
},
|
|
1188
|
+
beneficiaries: [],
|
|
1189
|
+
healthDeclaration: {
|
|
1190
|
+
healthDeclaration1: false,
|
|
1191
|
+
healthDeclaration2: false,
|
|
1192
|
+
healthDeclaration3: false,
|
|
1193
|
+
healthDeclaration4: false
|
|
1194
|
+
}
|
|
1195
|
+
});
|
|
1196
|
+
var loadApplicationDataFromLocalStorage = (storageKey = LIFE_PLAN_APPLICATION_KEY) => {
|
|
1197
|
+
if (typeof window === "undefined") return null;
|
|
1198
|
+
try {
|
|
1199
|
+
const stored = window.localStorage.getItem(storageKey);
|
|
1200
|
+
return stored ? JSON.parse(stored) : null;
|
|
1201
|
+
} catch {
|
|
1202
|
+
return null;
|
|
1203
|
+
}
|
|
1204
|
+
};
|
|
1205
|
+
var saveApplicationDataToLocalStorage = (data, storageKey = LIFE_PLAN_APPLICATION_KEY) => {
|
|
1206
|
+
if (typeof window === "undefined") return;
|
|
1207
|
+
window.localStorage.setItem(storageKey, JSON.stringify(data));
|
|
1208
|
+
};
|
|
1103
1209
|
|
|
1104
1210
|
// src/NewSaleForm/beneficiary.tsx
|
|
1105
1211
|
import { Fragment, jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
@@ -1120,7 +1226,7 @@ var relationshipTypes = createListCollection3({
|
|
|
1120
1226
|
});
|
|
1121
1227
|
var ReviewRows = ({
|
|
1122
1228
|
rows
|
|
1123
|
-
}) => /* @__PURE__ */ jsx6(VStack3, { align: "stretch", gap: 1, children: rows.map((row) => /* @__PURE__ */ jsx6(
|
|
1229
|
+
}) => /* @__PURE__ */ jsx6(VStack3, { align: "stretch", gap: 1, children: rows.map((row) => /* @__PURE__ */ jsx6(RowItem, { label: row.label, value: row.value }, row.label)) });
|
|
1124
1230
|
var Beneficiary = ({ onUpdate }) => {
|
|
1125
1231
|
const isMobile = useBreakpointValue({ base: true, md: false });
|
|
1126
1232
|
const [principalBeneficiaries, setPrincipalBeneficiaries] = useState4([]);
|
|
@@ -1146,6 +1252,65 @@ var Beneficiary = ({ onUpdate }) => {
|
|
|
1146
1252
|
relationship: "",
|
|
1147
1253
|
beneficiaryClass: "principal"
|
|
1148
1254
|
});
|
|
1255
|
+
const syncBeneficiaries = (principal, contingent) => {
|
|
1256
|
+
const allBeneficiaries = [...principal, ...contingent];
|
|
1257
|
+
onUpdate?.(
|
|
1258
|
+
principal.length > 0 ? principal[0] : void 0,
|
|
1259
|
+
contingent.length > 0 ? contingent[0] : void 0,
|
|
1260
|
+
allBeneficiaries
|
|
1261
|
+
);
|
|
1262
|
+
const currentData = loadApplicationDataFromLocalStorage() ?? createEmptyApplicationData();
|
|
1263
|
+
const {
|
|
1264
|
+
principalBeneficiary: _oldPrincipal,
|
|
1265
|
+
contingentBeneficiary: _oldContingent,
|
|
1266
|
+
...restData
|
|
1267
|
+
} = currentData;
|
|
1268
|
+
saveApplicationDataToLocalStorage({
|
|
1269
|
+
...restData,
|
|
1270
|
+
beneficiaries: allBeneficiaries,
|
|
1271
|
+
...principal[0] ? { principalBeneficiary: principal[0] } : {},
|
|
1272
|
+
...contingent[0] ? { contingentBeneficiary: contingent[0] } : {}
|
|
1273
|
+
});
|
|
1274
|
+
};
|
|
1275
|
+
useEffect3(() => {
|
|
1276
|
+
const timeoutId = window.setTimeout(() => {
|
|
1277
|
+
const currentData = loadApplicationDataFromLocalStorage();
|
|
1278
|
+
if (!currentData) return;
|
|
1279
|
+
const storedBeneficiaries = currentData.beneficiaries ?? [];
|
|
1280
|
+
let principalFromStorage = storedBeneficiaries.filter(
|
|
1281
|
+
(beneficiary) => beneficiary.beneficiaryClass === "principal"
|
|
1282
|
+
);
|
|
1283
|
+
let contingentFromStorage = storedBeneficiaries.filter(
|
|
1284
|
+
(beneficiary) => beneficiary.beneficiaryClass === "contingent"
|
|
1285
|
+
);
|
|
1286
|
+
if (storedBeneficiaries.length === 0) {
|
|
1287
|
+
if (currentData.principalBeneficiary) {
|
|
1288
|
+
principalFromStorage = [
|
|
1289
|
+
{
|
|
1290
|
+
...currentData.principalBeneficiary,
|
|
1291
|
+
beneficiaryClass: currentData.principalBeneficiary.beneficiaryClass || "principal"
|
|
1292
|
+
}
|
|
1293
|
+
];
|
|
1294
|
+
}
|
|
1295
|
+
if (currentData.contingentBeneficiary) {
|
|
1296
|
+
contingentFromStorage = [
|
|
1297
|
+
{
|
|
1298
|
+
...currentData.contingentBeneficiary,
|
|
1299
|
+
beneficiaryClass: currentData.contingentBeneficiary.beneficiaryClass || "contingent"
|
|
1300
|
+
}
|
|
1301
|
+
];
|
|
1302
|
+
}
|
|
1303
|
+
}
|
|
1304
|
+
setPrincipalBeneficiaries(principalFromStorage);
|
|
1305
|
+
setContingentBeneficiaries(contingentFromStorage);
|
|
1306
|
+
onUpdate?.(
|
|
1307
|
+
principalFromStorage.length > 0 ? principalFromStorage[0] : void 0,
|
|
1308
|
+
contingentFromStorage.length > 0 ? contingentFromStorage[0] : void 0,
|
|
1309
|
+
[...principalFromStorage, ...contingentFromStorage]
|
|
1310
|
+
);
|
|
1311
|
+
}, 0);
|
|
1312
|
+
return () => window.clearTimeout(timeoutId);
|
|
1313
|
+
}, [onUpdate]);
|
|
1149
1314
|
const handleSaveAddBeneficiary = () => {
|
|
1150
1315
|
if (!addFormBeneficiary.firstName || !addFormBeneficiary.lastName || !addFormBeneficiary.birthDate || !addFormBeneficiary.relationship || !addFormBeneficiary.address) {
|
|
1151
1316
|
alert("Please fill in all required fields");
|
|
@@ -1171,6 +1336,7 @@ var Beneficiary = ({ onUpdate }) => {
|
|
|
1171
1336
|
});
|
|
1172
1337
|
setAddDialogOpen(false);
|
|
1173
1338
|
console.log("Beneficiary added:", addFormBeneficiary);
|
|
1339
|
+
syncBeneficiaries(newPrincipal, newContingent);
|
|
1174
1340
|
};
|
|
1175
1341
|
const formatFullName = (beneficiary) => {
|
|
1176
1342
|
return [
|
|
@@ -1194,9 +1360,6 @@ var Beneficiary = ({ onUpdate }) => {
|
|
|
1194
1360
|
setFormBeneficiary({ ...beneficiary });
|
|
1195
1361
|
setEditDialogOpen(true);
|
|
1196
1362
|
};
|
|
1197
|
-
function handleDeleteBeneficiary(arg0, idx) {
|
|
1198
|
-
throw new Error("Function not implemented.");
|
|
1199
|
-
}
|
|
1200
1363
|
const handleSaveEdit = () => {
|
|
1201
1364
|
if (!selectedBeneficiary) return;
|
|
1202
1365
|
let updatedPrincipal = principalBeneficiaries;
|
|
@@ -1212,9 +1375,26 @@ var Beneficiary = ({ onUpdate }) => {
|
|
|
1212
1375
|
);
|
|
1213
1376
|
setContingentBeneficiaries(updatedContingent);
|
|
1214
1377
|
}
|
|
1378
|
+
syncBeneficiaries(updatedPrincipal, updatedContingent);
|
|
1215
1379
|
setEditDialogOpen(false);
|
|
1216
1380
|
setSelectedBeneficiary(null);
|
|
1217
1381
|
};
|
|
1382
|
+
const handleDeleteBeneficiary = (type, index) => {
|
|
1383
|
+
let updatedPrincipal = principalBeneficiaries;
|
|
1384
|
+
let updatedContingent = contingentBeneficiaries;
|
|
1385
|
+
if (type === "principal") {
|
|
1386
|
+
updatedPrincipal = principalBeneficiaries.filter(
|
|
1387
|
+
(_, beneficiaryIndex) => beneficiaryIndex !== index
|
|
1388
|
+
);
|
|
1389
|
+
setPrincipalBeneficiaries(updatedPrincipal);
|
|
1390
|
+
} else {
|
|
1391
|
+
updatedContingent = contingentBeneficiaries.filter(
|
|
1392
|
+
(_, beneficiaryIndex) => beneficiaryIndex !== index
|
|
1393
|
+
);
|
|
1394
|
+
setContingentBeneficiaries(updatedContingent);
|
|
1395
|
+
}
|
|
1396
|
+
syncBeneficiaries(updatedPrincipal, updatedContingent);
|
|
1397
|
+
};
|
|
1218
1398
|
return /* @__PURE__ */ jsxs6(Fragment, { children: [
|
|
1219
1399
|
/* @__PURE__ */ jsxs6(
|
|
1220
1400
|
Flex2,
|
|
@@ -1234,14 +1414,14 @@ var Beneficiary = ({ onUpdate }) => {
|
|
|
1234
1414
|
{
|
|
1235
1415
|
placement: "center",
|
|
1236
1416
|
motionPreset: "slide-in-bottom",
|
|
1237
|
-
size: { mdDown: "full", md: "
|
|
1417
|
+
size: { mdDown: "full", md: "xl" },
|
|
1238
1418
|
open: addDialogOpen,
|
|
1239
1419
|
onOpenChange: (details) => setAddDialogOpen(details.open),
|
|
1240
1420
|
children: [
|
|
1241
1421
|
/* @__PURE__ */ jsx6(Dialog.Trigger, { asChild: true, children: /* @__PURE__ */ jsx6(Button, { w: { base: "full", md: "auto" }, children: "Add Beneficiary" }) }),
|
|
1242
1422
|
/* @__PURE__ */ jsxs6(Portal2, { children: [
|
|
1243
1423
|
/* @__PURE__ */ jsx6(Dialog.Backdrop, {}),
|
|
1244
|
-
/* @__PURE__ */ jsx6(Dialog.Positioner, { children: /* @__PURE__ */ jsxs6(Dialog.Content, {
|
|
1424
|
+
/* @__PURE__ */ jsx6(Dialog.Positioner, { children: /* @__PURE__ */ jsxs6(Dialog.Content, { children: [
|
|
1245
1425
|
/* @__PURE__ */ jsx6(Dialog.Header, { children: /* @__PURE__ */ jsx6(Dialog.Title, { children: "Add Beneficiary" }) }),
|
|
1246
1426
|
/* @__PURE__ */ jsx6(Dialog.Body, { children: /* @__PURE__ */ jsxs6(VStack3, { gap: 5, w: "full", align: "stretch", children: [
|
|
1247
1427
|
/* @__PURE__ */ jsxs6(
|
|
@@ -1734,7 +1914,7 @@ var Beneficiary = ({ onUpdate }) => {
|
|
|
1734
1914
|
var beneficiary_default = Beneficiary;
|
|
1735
1915
|
|
|
1736
1916
|
// src/NewSaleForm/HealthDeclaration.tsx
|
|
1737
|
-
import { useState as useState5 } from "react";
|
|
1917
|
+
import { useState as useState5, useEffect as useEffect4 } from "react";
|
|
1738
1918
|
import {
|
|
1739
1919
|
VStack as VStack4,
|
|
1740
1920
|
Box as Box6,
|
|
@@ -1754,6 +1934,29 @@ var HealthDeclaration = () => {
|
|
|
1754
1934
|
healthDeclaration3: false,
|
|
1755
1935
|
healthDeclaration4: false
|
|
1756
1936
|
});
|
|
1937
|
+
useEffect4(() => {
|
|
1938
|
+
let appData = loadApplicationDataFromLocalStorage();
|
|
1939
|
+
if (!appData) {
|
|
1940
|
+
appData = createEmptyApplicationData();
|
|
1941
|
+
saveApplicationDataToLocalStorage(appData);
|
|
1942
|
+
}
|
|
1943
|
+
if (appData && appData.healthDeclaration) {
|
|
1944
|
+
setHealthDeclarationValues(appData.healthDeclaration);
|
|
1945
|
+
}
|
|
1946
|
+
}, []);
|
|
1947
|
+
useEffect4(() => {
|
|
1948
|
+
return () => {
|
|
1949
|
+
const appData = loadApplicationDataFromLocalStorage();
|
|
1950
|
+
if (appData) {
|
|
1951
|
+
appData.healthDeclaration = healthDeclarationValues;
|
|
1952
|
+
saveApplicationDataToLocalStorage(appData);
|
|
1953
|
+
console.log(
|
|
1954
|
+
"Health Declaration saved to localStorage",
|
|
1955
|
+
healthDeclarationValues
|
|
1956
|
+
);
|
|
1957
|
+
}
|
|
1958
|
+
};
|
|
1959
|
+
}, [healthDeclarationValues]);
|
|
1757
1960
|
const items = [
|
|
1758
1961
|
{
|
|
1759
1962
|
value: "first-item",
|
|
@@ -1895,71 +2098,10 @@ import { FaRegAddressCard, FaRegUser } from "react-icons/fa";
|
|
|
1895
2098
|
import { IoIosInformationCircleOutline } from "react-icons/io";
|
|
1896
2099
|
import { LuChevronsDown, LuChevronsUp } from "react-icons/lu";
|
|
1897
2100
|
import { useCallback, useEffect as useEffect5, useState as useState7 } from "react";
|
|
1898
|
-
import { TertiarySmButton } from "st-peter-ui";
|
|
1899
|
-
|
|
1900
|
-
// src/lib/applicationData.ts
|
|
1901
|
-
var LIFE_PLAN_APPLICATION_KEY = "LifePlanApplication";
|
|
1902
|
-
var createEmptyApplicationData = () => ({
|
|
1903
|
-
personalInfo: {
|
|
1904
|
-
firstName: "",
|
|
1905
|
-
middleName: "",
|
|
1906
|
-
lastName: "",
|
|
1907
|
-
suffix: "",
|
|
1908
|
-
birthDate: "",
|
|
1909
|
-
idType: "",
|
|
1910
|
-
idNumber: "",
|
|
1911
|
-
height: 0,
|
|
1912
|
-
weight: 0,
|
|
1913
|
-
gender: "",
|
|
1914
|
-
civilStatus: "",
|
|
1915
|
-
nationality: "",
|
|
1916
|
-
mobileNumber: "",
|
|
1917
|
-
emailAddress: "",
|
|
1918
|
-
mailingAddress: "",
|
|
1919
|
-
landLineNumber: ""
|
|
1920
|
-
},
|
|
1921
|
-
address: {
|
|
1922
|
-
lot: "",
|
|
1923
|
-
street: "",
|
|
1924
|
-
barangay: "",
|
|
1925
|
-
district: "",
|
|
1926
|
-
city: "",
|
|
1927
|
-
province: ""
|
|
1928
|
-
},
|
|
1929
|
-
employment: {
|
|
1930
|
-
occupation: "",
|
|
1931
|
-
employerName: "",
|
|
1932
|
-
employmentStatus: "",
|
|
1933
|
-
officeAddress: "",
|
|
1934
|
-
TIN: "",
|
|
1935
|
-
SSS: "",
|
|
1936
|
-
sourceOfIncome: ""
|
|
1937
|
-
},
|
|
1938
|
-
beneficiaries: [],
|
|
1939
|
-
healthDeclaration: {
|
|
1940
|
-
healthDeclaration1: false,
|
|
1941
|
-
healthDeclaration2: false,
|
|
1942
|
-
healthDeclaration3: false,
|
|
1943
|
-
healthDeclaration4: false
|
|
1944
|
-
}
|
|
1945
|
-
});
|
|
1946
|
-
var loadApplicationDataFromLocalStorage = (storageKey = LIFE_PLAN_APPLICATION_KEY) => {
|
|
1947
|
-
if (typeof window === "undefined") return null;
|
|
1948
|
-
try {
|
|
1949
|
-
const stored = window.localStorage.getItem(storageKey);
|
|
1950
|
-
return stored ? JSON.parse(stored) : null;
|
|
1951
|
-
} catch {
|
|
1952
|
-
return null;
|
|
1953
|
-
}
|
|
1954
|
-
};
|
|
1955
|
-
var saveApplicationDataToLocalStorage = (data, storageKey = LIFE_PLAN_APPLICATION_KEY) => {
|
|
1956
|
-
if (typeof window === "undefined") return;
|
|
1957
|
-
window.localStorage.setItem(storageKey, JSON.stringify(data));
|
|
1958
|
-
};
|
|
1959
2101
|
|
|
1960
2102
|
// src/NewSaleForm/ui/info-card.tsx
|
|
1961
|
-
import "react";
|
|
1962
2103
|
import { Box as Box7, HStack as HStack2, Text as Text4 } from "@chakra-ui/react";
|
|
2104
|
+
import "st-peter-ui";
|
|
1963
2105
|
import { HiInformationCircle } from "react-icons/hi";
|
|
1964
2106
|
import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1965
2107
|
var InfoCard = ({
|
|
@@ -1969,22 +2111,29 @@ var InfoCard = ({
|
|
|
1969
2111
|
return /* @__PURE__ */ jsxs8(
|
|
1970
2112
|
HStack2,
|
|
1971
2113
|
{
|
|
1972
|
-
gap:
|
|
2114
|
+
gap: STANDARD_SPACING.sm,
|
|
1973
2115
|
align: "center",
|
|
1974
2116
|
p: "8px",
|
|
1975
|
-
borderRadius:
|
|
2117
|
+
borderRadius: STANDARD_RADIUS.md,
|
|
1976
2118
|
bg: "#ebf4fb",
|
|
1977
2119
|
borderWidth: "1px",
|
|
1978
2120
|
borderColor: "#1976d2",
|
|
1979
|
-
color:
|
|
2121
|
+
color: BRAND_COLORS.darkGreen,
|
|
1980
2122
|
children: [
|
|
1981
|
-
/* @__PURE__ */ jsx8(
|
|
2123
|
+
/* @__PURE__ */ jsx8(
|
|
2124
|
+
Box7,
|
|
2125
|
+
{
|
|
2126
|
+
as: icon,
|
|
2127
|
+
boxSize: STANDARD_SIZES.iconButton.sm,
|
|
2128
|
+
color: "#1976d2",
|
|
2129
|
+
flexShrink: 0
|
|
2130
|
+
}
|
|
2131
|
+
),
|
|
1982
2132
|
/* @__PURE__ */ jsx8(Text4, { color: "#1976d2", fontSize: "xs", children })
|
|
1983
2133
|
]
|
|
1984
2134
|
}
|
|
1985
2135
|
);
|
|
1986
2136
|
};
|
|
1987
|
-
var info_card_default = InfoCard;
|
|
1988
2137
|
|
|
1989
2138
|
// src/NewSaleForm/ui/input-card-accordion.tsx
|
|
1990
2139
|
import { Box as Box8, Flex as Flex3, Text as Text5 } from "@chakra-ui/react";
|
|
@@ -2083,6 +2232,7 @@ function InputCardAccordion({
|
|
|
2083
2232
|
}
|
|
2084
2233
|
|
|
2085
2234
|
// src/NewSaleForm/LifePlanApplicationFormWrapper.tsx
|
|
2235
|
+
import { TertiarySmButton } from "st-peter-ui";
|
|
2086
2236
|
import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2087
2237
|
var hasText = (value) => String(value ?? "").trim() !== "";
|
|
2088
2238
|
var isPersonalComplete = (p) => !!p && [
|
|
@@ -2219,8 +2369,8 @@ var LifePlanApplicationFormWrapper = ({
|
|
|
2219
2369
|
justify: "space-between",
|
|
2220
2370
|
gap: STANDARD_SPACING.sm,
|
|
2221
2371
|
mb: STANDARD_SPACING.sm,
|
|
2222
|
-
children: /* @__PURE__ */ jsxs10(Flex4, { direction: "column", gap: STANDARD_SPACING.xs, children: [
|
|
2223
|
-
/* @__PURE__ */ jsx10(
|
|
2372
|
+
children: /* @__PURE__ */ jsxs10(Flex4, { direction: "column", gap: STANDARD_SPACING.xs, w: "full", children: [
|
|
2373
|
+
/* @__PURE__ */ jsx10(InfoCard, { children: "Sections below are expandable and collapsible. Use them to focus only on relevant details." }),
|
|
2224
2374
|
/* @__PURE__ */ jsxs10(Flex4, { gap: STANDARD_SPACING.xs, justify: "flex-end", children: [
|
|
2225
2375
|
/* @__PURE__ */ jsxs10(TertiarySmButton, { onClick: expandAll, children: [
|
|
2226
2376
|
/* @__PURE__ */ jsx10(LuChevronsDown, { size: 14 }),
|
|
@@ -2274,8 +2424,11 @@ import {
|
|
|
2274
2424
|
Dialog as Dialog2,
|
|
2275
2425
|
Flex as Flex6,
|
|
2276
2426
|
HStack as HStack3,
|
|
2427
|
+
Heading as Heading2,
|
|
2277
2428
|
Icon as Icon3,
|
|
2429
|
+
IconButton as IconButton2,
|
|
2278
2430
|
Portal as Portal3,
|
|
2431
|
+
SimpleGrid as SimpleGrid3,
|
|
2279
2432
|
Text as Text7,
|
|
2280
2433
|
VStack as VStack6
|
|
2281
2434
|
} from "@chakra-ui/react";
|
|
@@ -2283,37 +2436,50 @@ import { CancelButton, ConfirmButton, H3 } from "st-peter-ui";
|
|
|
2283
2436
|
import { FaRegAddressCard as FaRegAddressCard2 } from "react-icons/fa6";
|
|
2284
2437
|
import { FaRegUser as FaRegUser2 } from "react-icons/fa";
|
|
2285
2438
|
import { IoIosInformationCircleOutline as IoIosInformationCircleOutline2 } from "react-icons/io";
|
|
2439
|
+
import { FiEdit2 } from "react-icons/fi";
|
|
2286
2440
|
import { useEffect as useEffect6, useState as useState9 } from "react";
|
|
2287
2441
|
|
|
2288
2442
|
// src/NewSaleForm/data/checkBoxList.tsx
|
|
2289
2443
|
import { Box as Box10, Separator as Separator2 } from "@chakra-ui/react";
|
|
2290
|
-
import { Body as
|
|
2444
|
+
import { Body as Body4, Small } from "st-peter-ui";
|
|
2291
2445
|
import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
2292
2446
|
var checkboxList = [
|
|
2293
2447
|
{
|
|
2294
2448
|
title: "TERMS OF USE",
|
|
2295
2449
|
checkBoxTitle: "I hereby confirm that the information that I provided is correct and that I accept the TERMS AND CONDITIONS AND DATA PRIVACY AGREEMENT.",
|
|
2296
2450
|
description: /* @__PURE__ */ jsxs11(Box10, { children: [
|
|
2297
|
-
/* @__PURE__ */ jsx11(
|
|
2298
|
-
/* @__PURE__ */ jsx11(
|
|
2299
|
-
/* @__PURE__ */ jsx11(
|
|
2300
|
-
/* @__PURE__ */ jsx11(
|
|
2301
|
-
/* @__PURE__ */ jsx11(
|
|
2302
|
-
/* @__PURE__ */ jsx11(
|
|
2303
|
-
/* @__PURE__ */ jsx11(
|
|
2304
|
-
/* @__PURE__ */ jsx11(
|
|
2305
|
-
/* @__PURE__ */ jsx11(
|
|
2306
|
-
/* @__PURE__ */ jsx11(
|
|
2307
|
-
/* @__PURE__ */ jsx11(
|
|
2308
|
-
/* @__PURE__ */ jsx11(
|
|
2309
|
-
/* @__PURE__ */ jsx11(
|
|
2310
|
-
/* @__PURE__ */ jsx11(
|
|
2311
|
-
/* @__PURE__ */ jsx11(
|
|
2451
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Please read these Terms and Conditions of Use carefully before using this website. Using this website means you have read, understood, agreed to and accepted these Terms and Conditions of Use. If you do not accept these Terms and Conditions of Use, do not use this website." }),
|
|
2452
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "CHANGES TO THIS TERMS AND USE" }),
|
|
2453
|
+
/* @__PURE__ */ jsx11(Body4, { children: "St. Peter Group reserves the right to change these Terms and Conditions of Use from time to time, in whole or in part, without prior notice. Your continued use of this Website after changes to the Terms and Conditions of Use have been published constitutes your binding agreement and acceptance of the updated Terms and Conditions of Use. If at any time the Terms and Conditions of Use are not acceptable to you, you should immediately cease use of this website." }),
|
|
2454
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "TRADEMARKS" }),
|
|
2455
|
+
/* @__PURE__ */ jsx11(Body4, { children: "The trademarks, logos, and service marks displayed on this Website are the properties of the St. Peter Group or the St. Peter Group. You are not permitted to use these items without the prior written consent of St. Peter Group or the St. Peter Group." }),
|
|
2456
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "INTELLECTUAL PROPERTY RIGHTS" }),
|
|
2457
|
+
/* @__PURE__ */ jsx11(Body4, { children: "The St. Peter Group owns the intellectual property rights in the content that is made available on this Website, or has obtained the permission of the proper owner/s to make such content available. The St. Peter Group strictly prohibits the redistribution or copying of this Website, in whole or in part, without written permission." }),
|
|
2458
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "LINKS TO OTHER SITES" }),
|
|
2459
|
+
/* @__PURE__ */ jsx11(Body4, { children: "This website contains links to other websites and are provided for convenience only. St. Peter Group has not reviewed the linked websites and is not responsible for the content or availability of any linked websites. Inclusion of any link does not imply endorsement." }),
|
|
2460
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "SUBMISSION OF UNOFFICIAL IDEAS" }),
|
|
2461
|
+
/* @__PURE__ */ jsx11(Body4, { children: "St. Peter Group does not accept unsolicited unofficial ideas. Do not send original creative artwork, samples, demos, or other works. Any submissions will not be treated as confidential or proprietary." }),
|
|
2462
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "RULES OF CONDUCT" }),
|
|
2463
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Your use of this Website is subject to all applicable laws. Do not post threatening, abusive, defamatory, obscene, hateful, or illegal content. Do not upload harmful software or attempt to disrupt the Website." }),
|
|
2464
|
+
/* @__PURE__ */ jsx11(Body4, { mt: 2, children: "You may not post advertisements, political materials, chain letters, spam, or use robots or scraping tools. You may not harvest data without consent." }),
|
|
2465
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "GLOBAL AVAILABILITY" }),
|
|
2466
|
+
/* @__PURE__ */ jsx11(Body4, { children: "St. Peter Group manages this site from the Philippines. You are responsible for complying with local laws if used from other locations. Some products may not be available worldwide." }),
|
|
2467
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "ACCURACY, COMPLETENESS AND TIMELINESS OF INFORMATION" }),
|
|
2468
|
+
/* @__PURE__ */ jsx11(Body4, { children: "St. Peter Group is not responsible if information on this Website is inaccurate or incomplete for very specific needs. You are responsible for monitoring changes." }),
|
|
2469
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "DISCLAIMER" }),
|
|
2470
|
+
/* @__PURE__ */ jsx11(Body4, { children: "The Website is provided \u201Cas is\u201D. St. Peter Group makes no warranties and is not liable for any damages, including loss of data, viruses, errors, or reliance on content." }),
|
|
2471
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "LIMITATION OF LIABILITY" }),
|
|
2472
|
+
/* @__PURE__ */ jsx11(Body4, { children: "St. Peter Group is not liable for any direct, indirect, punitive, special, incidental, or consequential damages, including loss of business or data." }),
|
|
2473
|
+
/* @__PURE__ */ jsx11(Body4, { mt: 2, children: "Some jurisdictions may not allow the exclusion of certain damages." }),
|
|
2474
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "JURISDICTION" }),
|
|
2475
|
+
/* @__PURE__ */ jsx11(Body4, { children: "These Terms are governed by Philippine law. If any provision is held invalid, the remainder stays effective." }),
|
|
2476
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "PRIVACY POLICY" }),
|
|
2477
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Please read our Privacy Policy." }),
|
|
2312
2478
|
/* @__PURE__ */ jsx11(Separator2, { my: 8 }),
|
|
2313
|
-
/* @__PURE__ */ jsx11(
|
|
2314
|
-
/* @__PURE__ */ jsx11(
|
|
2315
|
-
/* @__PURE__ */ jsx11(
|
|
2316
|
-
/* @__PURE__ */ jsx11(
|
|
2479
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "HOW TO CONTACT US" }),
|
|
2480
|
+
/* @__PURE__ */ jsx11(Body4, { children: "If you have any concern regarding these Terms of Use, contact us:" }),
|
|
2481
|
+
/* @__PURE__ */ jsx11(Body4, { mt: 2, fontWeight: "semibold", children: "For website concerns: ronagl@stpeter.com.ph" }),
|
|
2482
|
+
/* @__PURE__ */ jsx11(Body4, { mt: 2, fontWeight: "semibold", children: "For data privacy concerns: joycemb@stpeter.com.ph" }),
|
|
2317
2483
|
/* @__PURE__ */ jsx11(Small, { textAlign: "center", mt: 8, children: "This Terms of Use was amended on August 30, 2018" })
|
|
2318
2484
|
] })
|
|
2319
2485
|
},
|
|
@@ -2321,41 +2487,47 @@ var checkboxList = [
|
|
|
2321
2487
|
title: "TERMS OF LIFE PLAN CONTRACT",
|
|
2322
2488
|
checkBoxTitle: "I hereby confirm that the information that I provided is correct and that I accept the TERMS OF LIFE PLAN CONTRACT.",
|
|
2323
2489
|
description: /* @__PURE__ */ jsxs11(Box10, { children: [
|
|
2324
|
-
/* @__PURE__ */ jsx11(
|
|
2325
|
-
/* @__PURE__ */ jsx11(
|
|
2326
|
-
/* @__PURE__ */ jsx11(
|
|
2327
|
-
/* @__PURE__ */ jsx11(
|
|
2328
|
-
/* @__PURE__ */ jsx11(
|
|
2329
|
-
/* @__PURE__ */ jsx11(
|
|
2330
|
-
/* @__PURE__ */ jsx11(
|
|
2331
|
-
/* @__PURE__ */ jsx11(
|
|
2332
|
-
/* @__PURE__ */ jsx11(
|
|
2333
|
-
/* @__PURE__ */ jsx11(
|
|
2334
|
-
/* @__PURE__ */ jsx11(
|
|
2335
|
-
/* @__PURE__ */ jsx11(
|
|
2336
|
-
/* @__PURE__ */ jsx11(
|
|
2337
|
-
/* @__PURE__ */ jsx11(
|
|
2338
|
-
/* @__PURE__ */ jsx11(
|
|
2339
|
-
/* @__PURE__ */ jsx11(
|
|
2340
|
-
/* @__PURE__ */ jsx11(
|
|
2341
|
-
/* @__PURE__ */ jsx11(
|
|
2342
|
-
/* @__PURE__ */ jsx11(
|
|
2343
|
-
/* @__PURE__ */ jsx11(
|
|
2344
|
-
/* @__PURE__ */ jsx11(
|
|
2345
|
-
/* @__PURE__ */ jsx11(
|
|
2346
|
-
/* @__PURE__ */ jsx11(
|
|
2347
|
-
/* @__PURE__ */ jsx11(
|
|
2348
|
-
/* @__PURE__ */ jsx11(
|
|
2349
|
-
/* @__PURE__ */ jsx11(
|
|
2350
|
-
/* @__PURE__ */ jsx11(
|
|
2490
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "ARTICLE I. DEFINITION OF TERMS" }),
|
|
2491
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "ST. PETER" }),
|
|
2492
|
+
/* @__PURE__ */ jsx11(Body4, { children: "ST. PETER LIFE PLAN, INC." }),
|
|
2493
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "PLANHOLDER" }),
|
|
2494
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the person who purchases and owns the plan for whom or for whose beneficiaries benefits are to be delivered, as stipulated and guaranteed by ST. PETER. The term includes the assignee, transferee, and any successor-in-interest of the PLANHOLDER." }),
|
|
2495
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Contract" }),
|
|
2496
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the Life Plan Contract between ST. PETER and the PLANHOLDER providing the terms and conditions thereof." }),
|
|
2497
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Contract Price" }),
|
|
2498
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the stipulated price of the Life Plan which may be paid either in lump sum or in installments, net of handling fees and other charges, if any." }),
|
|
2499
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Gross Contract Price" }),
|
|
2500
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the stipulated price of the Life Plan which includes handling fees and other charges." }),
|
|
2501
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Plan Installment" }),
|
|
2502
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the monthly, quarterly, semi-annual or annual installment amounts paid by the PLANHOLDER." }),
|
|
2503
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Paying Period" }),
|
|
2504
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the period of time within which the PLANHOLDER has to pay for the Gross Contract Price of the plan in monthly, quarterly, semi-annual, annual installments or lump sum." }),
|
|
2505
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Due Date" }),
|
|
2506
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the date when the PLANHOLDER\u2019s installment should be paid." }),
|
|
2507
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Beneficiary" }),
|
|
2508
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the person designated by the PLANHOLDER, in accordance with law, to receive the plan\u2019s insurance proceeds and/or pre-need benefits in case of unrendered service. The PLANHOLDER has the right to change the beneficiary/ies designated in the application subject to the submission of the standard form and approval." }),
|
|
2509
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Grace Period" }),
|
|
2510
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the sixty-day period given to the PLANHOLDER within which to pay accrued installments due, counted from the due date of the first unpaid installment in default, as stipulated in this Life Plan Contract." }),
|
|
2511
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Lapsed Plan" }),
|
|
2512
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to a delinquent plan which has remained unpaid beyond the grace period. A Lapsed Plan has no force and effect." }),
|
|
2513
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Reinstatement" }),
|
|
2514
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the process of reactivating a lapsed plan." }),
|
|
2515
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Certificate of Full Payment" }),
|
|
2516
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to ST. PETER\u2019s duly signed certification stating that a plan has been fully paid." }),
|
|
2517
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "In Force Plan or Active Plan" }),
|
|
2518
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to a pre-need plan for which ST. PETER has an outstanding obligation, either for (1) delivery of benefits or services or (2) payment of termination value." }),
|
|
2519
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Mortuary Tie-Up" }),
|
|
2520
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the memorial servicing tie-up or mortuary accredited with ST. PETER which renders the memorial services stipulated hereunder." }),
|
|
2521
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Effective Date" }),
|
|
2522
|
+
/* @__PURE__ */ jsx11(Body4, { children: "Refers to the date when the payment of at least one (1) modal installment has been accepted and the purchase has been approved by ST. PETER with the issuance of this Contract and as indicated herein." })
|
|
2351
2523
|
] })
|
|
2352
2524
|
},
|
|
2353
2525
|
{
|
|
2354
2526
|
title: "OUR CUSTOMER SERVICE CHARTER",
|
|
2355
2527
|
checkBoxTitle: "I have read and understood the CUSTOMER SERVICE CHARTER.",
|
|
2356
2528
|
description: /* @__PURE__ */ jsxs11(Box10, { children: [
|
|
2357
|
-
/* @__PURE__ */ jsx11(
|
|
2358
|
-
/* @__PURE__ */ jsx11(
|
|
2529
|
+
/* @__PURE__ */ jsx11(Body4, { children: "We at ST. PETER LIFE PLAN, INC. hold ourselves as DeathCare Experts who aspire to be the most trusted and reliable provider in your Pre-Need Life Plan needs. We also aim to deliver world-class DeathCare services to our planholders. At the core of our corporate values is customer satisfaction. We believe that every filipino family should have a St. Peter Life Plan. These are the pillars of our company\u2019s customer service commitment especially in our online facility and in social media." }),
|
|
2530
|
+
/* @__PURE__ */ jsx11(Body4, { fontWeight: "semibold", mt: 4, children: "Our customer service charter reflects our commitment to:" }),
|
|
2359
2531
|
/* @__PURE__ */ jsxs11(Box10, { as: "ul", listStyleType: "circle", listStylePosition: "inside", children: [
|
|
2360
2532
|
/* @__PURE__ */ jsx11("li", { children: "Safe and Secure Operations" }),
|
|
2361
2533
|
/* @__PURE__ */ jsx11("li", { children: "Maintenance of Customer Privacy" }),
|
|
@@ -2363,7 +2535,7 @@ var checkboxList = [
|
|
|
2363
2535
|
/* @__PURE__ */ jsx11("li", { children: "Transparent Product Information" }),
|
|
2364
2536
|
/* @__PURE__ */ jsx11("li", { children: "Prompt Response to Inquiries and Complaints" })
|
|
2365
2537
|
] }),
|
|
2366
|
-
/* @__PURE__ */ jsx11(
|
|
2538
|
+
/* @__PURE__ */ jsx11(Body4, { mt: 4, fontWeight: "semibold", children: "OUR CUSTOMER SERVICE STANDARDS AND COMMITMENTS" })
|
|
2367
2539
|
] })
|
|
2368
2540
|
}
|
|
2369
2541
|
];
|
|
@@ -2516,7 +2688,57 @@ var ApplicationAccordion = ({
|
|
|
2516
2688
|
};
|
|
2517
2689
|
var ReviewRows2 = ({
|
|
2518
2690
|
rows
|
|
2519
|
-
}) => /* @__PURE__ */ jsx13(VStack6, { align: "stretch", gap: 1, children: rows.map((row) => /* @__PURE__ */ jsx13(
|
|
2691
|
+
}) => /* @__PURE__ */ jsx13(VStack6, { align: "stretch", gap: 1, children: rows.map((row) => /* @__PURE__ */ jsx13(RowItem, { label: row.label, value: row.value }, row.label)) });
|
|
2692
|
+
var FieldGrid = ({
|
|
2693
|
+
rows
|
|
2694
|
+
}) => /* @__PURE__ */ jsx13(SimpleGrid3, { columns: { base: 1, sm: 2 }, columnGap: 6, rowGap: 5, children: rows.map((row) => /* @__PURE__ */ jsxs13(Box12, { minW: 0, children: [
|
|
2695
|
+
/* @__PURE__ */ jsx13(Text7, { fontSize: "xs", color: "gray.500", mb: 1, children: row.label }),
|
|
2696
|
+
/* @__PURE__ */ jsx13(
|
|
2697
|
+
Text7,
|
|
2698
|
+
{
|
|
2699
|
+
fontSize: "sm",
|
|
2700
|
+
fontWeight: "600",
|
|
2701
|
+
color: "gray.900",
|
|
2702
|
+
wordBreak: "break-word",
|
|
2703
|
+
children: row.value ?? "-"
|
|
2704
|
+
}
|
|
2705
|
+
)
|
|
2706
|
+
] }, row.label)) });
|
|
2707
|
+
var SectionCard = ({
|
|
2708
|
+
title,
|
|
2709
|
+
onEdit,
|
|
2710
|
+
children
|
|
2711
|
+
}) => /* @__PURE__ */ jsxs13(
|
|
2712
|
+
Box12,
|
|
2713
|
+
{
|
|
2714
|
+
css: { breakInside: "avoid" },
|
|
2715
|
+
mb: 6,
|
|
2716
|
+
bg: "white",
|
|
2717
|
+
borderWidth: "1px",
|
|
2718
|
+
borderColor: "gray.200",
|
|
2719
|
+
borderRadius: "xl",
|
|
2720
|
+
boxShadow: "sm",
|
|
2721
|
+
p: 6,
|
|
2722
|
+
children: [
|
|
2723
|
+
/* @__PURE__ */ jsxs13(Flex6, { justify: "space-between", align: "center", mb: 5, children: [
|
|
2724
|
+
/* @__PURE__ */ jsx13(Heading2, { as: "h3", fontSize: "lg", fontWeight: "bold", color: "gray.900", children: title }),
|
|
2725
|
+
onEdit ? /* @__PURE__ */ jsx13(
|
|
2726
|
+
IconButton2,
|
|
2727
|
+
{
|
|
2728
|
+
"aria-label": `Edit ${title}`,
|
|
2729
|
+
size: "sm",
|
|
2730
|
+
variant: "ghost",
|
|
2731
|
+
color: "gray.400",
|
|
2732
|
+
_hover: { color: "green.600", bg: "green.50" },
|
|
2733
|
+
onClick: onEdit,
|
|
2734
|
+
children: /* @__PURE__ */ jsx13(FiEdit2, {})
|
|
2735
|
+
}
|
|
2736
|
+
) : null
|
|
2737
|
+
] }),
|
|
2738
|
+
children
|
|
2739
|
+
]
|
|
2740
|
+
}
|
|
2741
|
+
);
|
|
2520
2742
|
var Confirmation = ({ onAllAcceptedChange, onEdit }) => {
|
|
2521
2743
|
const [cartItems, setCartItems] = useState9(null);
|
|
2522
2744
|
const [lifePlanApplication, setLifePlanApplication] = useState9(null);
|
|
@@ -2587,269 +2809,221 @@ var Confirmation = ({ onAllAcceptedChange, onEdit }) => {
|
|
|
2587
2809
|
setOpenDialog(false);
|
|
2588
2810
|
setPendingCheck(null);
|
|
2589
2811
|
};
|
|
2590
|
-
|
|
2812
|
+
const orderRows = [
|
|
2813
|
+
{ label: "Selected Plan", value: selectedPlan?.planDesc },
|
|
2814
|
+
{ label: "Quantity", value: selectedPlan?.quantity },
|
|
2815
|
+
{
|
|
2816
|
+
label: "Total Amount Payable",
|
|
2817
|
+
value: selectedPlan ? `\u20B1 ${selectedPlan.total}` : void 0
|
|
2818
|
+
}
|
|
2819
|
+
];
|
|
2820
|
+
const personalRows = [
|
|
2821
|
+
{ label: "Uploaded ID", value: lifePlanApplication?.personalInfo.idType },
|
|
2822
|
+
{ label: "Last Name", value: lifePlanApplication?.personalInfo.lastName },
|
|
2823
|
+
{ label: "First Name", value: lifePlanApplication?.personalInfo.firstName },
|
|
2824
|
+
{
|
|
2825
|
+
label: "Middle Name",
|
|
2826
|
+
value: lifePlanApplication?.personalInfo.middleName
|
|
2827
|
+
},
|
|
2828
|
+
{ label: "Suffix", value: lifePlanApplication?.personalInfo.suffix },
|
|
2829
|
+
{
|
|
2830
|
+
label: "Date of Birth",
|
|
2831
|
+
value: lifePlanApplication?.personalInfo.birthDate
|
|
2832
|
+
},
|
|
2833
|
+
{ label: "Gender", value: lifePlanApplication?.personalInfo.gender },
|
|
2834
|
+
{
|
|
2835
|
+
label: "Contact Number",
|
|
2836
|
+
value: lifePlanApplication?.personalInfo.mobileNumber
|
|
2837
|
+
},
|
|
2838
|
+
{ label: "Email", value: lifePlanApplication?.personalInfo.emailAddress },
|
|
2839
|
+
{
|
|
2840
|
+
label: "Landline Number",
|
|
2841
|
+
value: lifePlanApplication?.personalInfo.landLineNumber
|
|
2842
|
+
},
|
|
2843
|
+
{
|
|
2844
|
+
label: "Mailing Address",
|
|
2845
|
+
value: lifePlanApplication?.personalInfo.mailingAddress
|
|
2846
|
+
},
|
|
2847
|
+
{
|
|
2848
|
+
label: "Civil Status",
|
|
2849
|
+
value: lifePlanApplication?.personalInfo.civilStatus
|
|
2850
|
+
}
|
|
2851
|
+
];
|
|
2852
|
+
const addressRows = [
|
|
2853
|
+
{ label: "Lot #", value: lifePlanApplication?.address.lot },
|
|
2854
|
+
{ label: "Street", value: lifePlanApplication?.address.street },
|
|
2855
|
+
{ label: "Barangay", value: lifePlanApplication?.address.barangay },
|
|
2856
|
+
{ label: "City", value: lifePlanApplication?.address.city },
|
|
2857
|
+
{ label: "Province", value: lifePlanApplication?.address.province }
|
|
2858
|
+
];
|
|
2859
|
+
const employmentRows = [
|
|
2860
|
+
{ label: "Occupation", value: lifePlanApplication?.employment.occupation },
|
|
2861
|
+
{
|
|
2862
|
+
label: "Employer Name",
|
|
2863
|
+
value: lifePlanApplication?.employment.employerName
|
|
2864
|
+
},
|
|
2865
|
+
{
|
|
2866
|
+
label: "Employment Status",
|
|
2867
|
+
value: lifePlanApplication?.employment.employmentStatus
|
|
2868
|
+
},
|
|
2869
|
+
{
|
|
2870
|
+
label: "Office Address",
|
|
2871
|
+
value: lifePlanApplication?.employment.officeAddress
|
|
2872
|
+
},
|
|
2873
|
+
{ label: "TIN", value: lifePlanApplication?.employment.TIN },
|
|
2874
|
+
{ label: "SSS/GSIS", value: lifePlanApplication?.employment.SSS },
|
|
2875
|
+
{
|
|
2876
|
+
label: "Source of Income",
|
|
2877
|
+
value: lifePlanApplication?.employment.sourceOfIncome
|
|
2878
|
+
}
|
|
2879
|
+
];
|
|
2880
|
+
const beneficiaryItems = /* @__PURE__ */ jsx13(VStack6, { align: "stretch", gap: 4, children: beneficiaries.map((beneficiary, index) => /* @__PURE__ */ jsxs13(Box12, { children: [
|
|
2881
|
+
/* @__PURE__ */ jsx13(Text7, { fontWeight: "semibold", fontSize: "sm", mb: 1, children: beneficiary.name }),
|
|
2591
2882
|
/* @__PURE__ */ jsx13(
|
|
2592
|
-
|
|
2883
|
+
ReviewRows2,
|
|
2593
2884
|
{
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
ReviewRows2,
|
|
2600
|
-
{
|
|
2601
|
-
rows: [
|
|
2602
|
-
{
|
|
2603
|
-
label: "Selected Plan",
|
|
2604
|
-
value: selectedPlan?.planDesc
|
|
2605
|
-
},
|
|
2606
|
-
{
|
|
2607
|
-
label: "Quantity",
|
|
2608
|
-
value: selectedPlan?.quantity
|
|
2609
|
-
},
|
|
2610
|
-
{
|
|
2611
|
-
label: "Total Amount Payable",
|
|
2612
|
-
value: selectedPlan ? `\u20B1 ${selectedPlan.total}` : void 0
|
|
2613
|
-
}
|
|
2614
|
-
]
|
|
2615
|
-
}
|
|
2616
|
-
)
|
|
2885
|
+
rows: [
|
|
2886
|
+
{ label: "Relationship", value: beneficiary.relationship },
|
|
2887
|
+
{ label: "Date of Birth", value: beneficiary.dob },
|
|
2888
|
+
{ label: "Address", value: beneficiary.address }
|
|
2889
|
+
]
|
|
2617
2890
|
}
|
|
2618
|
-
)
|
|
2619
|
-
|
|
2620
|
-
|
|
2891
|
+
)
|
|
2892
|
+
] }, `${beneficiary.name}-${index}`)) });
|
|
2893
|
+
const agreementItems = /* @__PURE__ */ jsx13(VStack6, { align: "stretch", gap: 3, children: checkboxList.map((item, index) => {
|
|
2894
|
+
const isAccepted = acceptedAgreements[index];
|
|
2895
|
+
return /* @__PURE__ */ jsx13(
|
|
2896
|
+
Box12,
|
|
2621
2897
|
{
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
label: "Last Name",
|
|
2640
|
-
value: lifePlanApplication?.personalInfo.lastName
|
|
2641
|
-
},
|
|
2642
|
-
{
|
|
2643
|
-
label: "First Name",
|
|
2644
|
-
value: lifePlanApplication?.personalInfo.firstName
|
|
2645
|
-
},
|
|
2646
|
-
{
|
|
2647
|
-
label: "Middle Name",
|
|
2648
|
-
value: lifePlanApplication?.personalInfo.middleName
|
|
2649
|
-
},
|
|
2650
|
-
{
|
|
2651
|
-
label: "Suffix",
|
|
2652
|
-
value: lifePlanApplication?.personalInfo.suffix
|
|
2653
|
-
},
|
|
2654
|
-
{
|
|
2655
|
-
label: "Date of Birth",
|
|
2656
|
-
value: lifePlanApplication?.personalInfo.birthDate
|
|
2657
|
-
},
|
|
2658
|
-
{
|
|
2659
|
-
label: "Gender",
|
|
2660
|
-
value: lifePlanApplication?.personalInfo.gender
|
|
2661
|
-
},
|
|
2662
|
-
{
|
|
2663
|
-
label: "Contact Number",
|
|
2664
|
-
value: lifePlanApplication?.personalInfo.mobileNumber
|
|
2665
|
-
},
|
|
2666
|
-
{
|
|
2667
|
-
label: "Email",
|
|
2668
|
-
value: lifePlanApplication?.personalInfo.emailAddress
|
|
2669
|
-
},
|
|
2670
|
-
{
|
|
2671
|
-
label: "Landline Number",
|
|
2672
|
-
value: lifePlanApplication?.personalInfo.landLineNumber
|
|
2673
|
-
},
|
|
2674
|
-
{
|
|
2675
|
-
label: "Mailing Address",
|
|
2676
|
-
value: lifePlanApplication?.personalInfo.mailingAddress
|
|
2677
|
-
},
|
|
2678
|
-
{
|
|
2679
|
-
label: "Civil Status",
|
|
2680
|
-
value: lifePlanApplication?.personalInfo.civilStatus
|
|
2681
|
-
}
|
|
2682
|
-
]
|
|
2683
|
-
}
|
|
2684
|
-
)
|
|
2685
|
-
},
|
|
2686
|
-
{
|
|
2687
|
-
icon: FaRegAddressCard2,
|
|
2688
|
-
label: "Address",
|
|
2689
|
-
subtitle: "Where you currently live",
|
|
2690
|
-
value: "address",
|
|
2691
|
-
page: /* @__PURE__ */ jsx13(
|
|
2692
|
-
ReviewRows2,
|
|
2693
|
-
{
|
|
2694
|
-
rows: [
|
|
2695
|
-
{
|
|
2696
|
-
label: "Lot #",
|
|
2697
|
-
value: lifePlanApplication?.address.lot
|
|
2698
|
-
},
|
|
2699
|
-
{
|
|
2700
|
-
label: "Street",
|
|
2701
|
-
value: lifePlanApplication?.address.street
|
|
2702
|
-
},
|
|
2703
|
-
{
|
|
2704
|
-
label: "Barangay",
|
|
2705
|
-
value: lifePlanApplication?.address.barangay
|
|
2706
|
-
},
|
|
2707
|
-
{
|
|
2708
|
-
label: "City",
|
|
2709
|
-
value: lifePlanApplication?.address.city
|
|
2710
|
-
},
|
|
2711
|
-
{
|
|
2712
|
-
label: "Province",
|
|
2713
|
-
value: lifePlanApplication?.address.province
|
|
2714
|
-
}
|
|
2715
|
-
]
|
|
2716
|
-
}
|
|
2717
|
-
)
|
|
2718
|
-
},
|
|
2719
|
-
{
|
|
2720
|
-
icon: IoIosInformationCircleOutline2,
|
|
2721
|
-
label: "Employment",
|
|
2722
|
-
subtitle: "Work and income details",
|
|
2723
|
-
value: "employment",
|
|
2724
|
-
page: /* @__PURE__ */ jsx13(
|
|
2725
|
-
ReviewRows2,
|
|
2726
|
-
{
|
|
2727
|
-
rows: [
|
|
2728
|
-
{
|
|
2729
|
-
label: "Occupation",
|
|
2730
|
-
value: lifePlanApplication?.employment.occupation
|
|
2731
|
-
},
|
|
2732
|
-
{
|
|
2733
|
-
label: "Employer Name",
|
|
2734
|
-
value: lifePlanApplication?.employment.employerName
|
|
2735
|
-
},
|
|
2736
|
-
{
|
|
2737
|
-
label: "Employment Status",
|
|
2738
|
-
value: lifePlanApplication?.employment.employmentStatus
|
|
2739
|
-
},
|
|
2740
|
-
{
|
|
2741
|
-
label: "Office Address",
|
|
2742
|
-
value: lifePlanApplication?.employment.officeAddress
|
|
2743
|
-
},
|
|
2744
|
-
{
|
|
2745
|
-
label: "TIN",
|
|
2746
|
-
value: lifePlanApplication?.employment.TIN
|
|
2747
|
-
},
|
|
2748
|
-
{
|
|
2749
|
-
label: "SSS/GSIS",
|
|
2750
|
-
value: lifePlanApplication?.employment.SSS
|
|
2751
|
-
},
|
|
2752
|
-
{
|
|
2753
|
-
label: "Source of Income",
|
|
2754
|
-
value: lifePlanApplication?.employment.sourceOfIncome
|
|
2755
|
-
}
|
|
2756
|
-
]
|
|
2757
|
-
}
|
|
2758
|
-
)
|
|
2898
|
+
role: "button",
|
|
2899
|
+
tabIndex: 0,
|
|
2900
|
+
p: 4,
|
|
2901
|
+
borderWidth: "1px",
|
|
2902
|
+
rounded: "xl",
|
|
2903
|
+
bg: isAccepted ? "green.50" : "gray.50",
|
|
2904
|
+
transition: "all 0.15s ease",
|
|
2905
|
+
_hover: { bg: isAccepted ? "green.100" : "gray.100" },
|
|
2906
|
+
onClick: () => {
|
|
2907
|
+
setPendingCheck(index);
|
|
2908
|
+
setOpenDialog(true);
|
|
2909
|
+
},
|
|
2910
|
+
onKeyDown: (e) => {
|
|
2911
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
2912
|
+
e.preventDefault();
|
|
2913
|
+
setPendingCheck(index);
|
|
2914
|
+
setOpenDialog(true);
|
|
2759
2915
|
}
|
|
2760
|
-
|
|
2761
|
-
|
|
2762
|
-
|
|
2763
|
-
|
|
2764
|
-
|
|
2765
|
-
|
|
2766
|
-
|
|
2767
|
-
|
|
2768
|
-
|
|
2769
|
-
children: /* @__PURE__ */ jsx13(VStack6, { align: "stretch", gap: 4, children: beneficiaries.map((beneficiary, index) => /* @__PURE__ */ jsxs13(Box12, { children: [
|
|
2770
|
-
/* @__PURE__ */ jsx13(Text7, { fontWeight: "semibold", fontSize: "sm", mb: 1, children: beneficiary.name }),
|
|
2916
|
+
},
|
|
2917
|
+
children: /* @__PURE__ */ jsxs13(Flex6, { justify: "space-between", align: "start", gap: 4, children: [
|
|
2918
|
+
/* @__PURE__ */ jsxs13(Box12, { flex: "1", minW: 0, children: [
|
|
2919
|
+
/* @__PURE__ */ jsxs13(Text7, { fontWeight: "semibold", lineClamp: 2, children: [
|
|
2920
|
+
item.checkBoxTitle,
|
|
2921
|
+
"."
|
|
2922
|
+
] }),
|
|
2923
|
+
/* @__PURE__ */ jsx13(Text7, { fontSize: "sm", color: "gray.600", mt: 1, lineClamp: 1, children: "Tap to review details." })
|
|
2924
|
+
] }),
|
|
2771
2925
|
/* @__PURE__ */ jsx13(
|
|
2772
|
-
|
|
2926
|
+
Badge,
|
|
2773
2927
|
{
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
value: beneficiary.relationship
|
|
2778
|
-
},
|
|
2779
|
-
{
|
|
2780
|
-
label: "Date of Birth",
|
|
2781
|
-
value: beneficiary.dob
|
|
2782
|
-
},
|
|
2783
|
-
{
|
|
2784
|
-
label: "Address",
|
|
2785
|
-
value: beneficiary.address
|
|
2786
|
-
}
|
|
2787
|
-
]
|
|
2928
|
+
variant: "subtle",
|
|
2929
|
+
colorPalette: isAccepted ? "green" : "gray",
|
|
2930
|
+
children: isAccepted ? "Accepted" : "Review"
|
|
2788
2931
|
}
|
|
2789
2932
|
)
|
|
2790
|
-
] }
|
|
2791
|
-
}
|
|
2792
|
-
|
|
2793
|
-
|
|
2794
|
-
|
|
2795
|
-
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2933
|
+
] })
|
|
2934
|
+
},
|
|
2935
|
+
index
|
|
2936
|
+
);
|
|
2937
|
+
}) });
|
|
2938
|
+
return /* @__PURE__ */ jsx13(Box12, { minH: "100vh", children: /* @__PURE__ */ jsxs13(Box12, { px: { base: 0, md: 8 }, pb: { base: 4, md: 8 }, children: [
|
|
2939
|
+
/* @__PURE__ */ jsx13(Box12, { display: { base: "block", lg: "none" }, children: /* @__PURE__ */ jsxs13(VStack6, { align: "stretch", gap: 3, children: [
|
|
2940
|
+
/* @__PURE__ */ jsx13(
|
|
2941
|
+
InfoCardAccordion,
|
|
2942
|
+
{
|
|
2943
|
+
icon: /* @__PURE__ */ jsx13(Icon3, { as: IoIosInformationCircleOutline2, boxSize: "18px" }),
|
|
2944
|
+
title: "Order Summary",
|
|
2945
|
+
subtitle: modeLabel(selectedPlan?.mode),
|
|
2946
|
+
defaultOpen: true,
|
|
2947
|
+
children: /* @__PURE__ */ jsx13(ReviewRows2, { rows: orderRows })
|
|
2948
|
+
}
|
|
2949
|
+
),
|
|
2950
|
+
/* @__PURE__ */ jsx13(
|
|
2951
|
+
ApplicationAccordion,
|
|
2952
|
+
{
|
|
2953
|
+
onEdit: onEdit ?? (() => {
|
|
2954
|
+
}),
|
|
2955
|
+
items: [
|
|
2803
2956
|
{
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
bg: isAccepted ? "green.50" : "gray.50",
|
|
2810
|
-
transition: "all 0.15s ease",
|
|
2811
|
-
_hover: { bg: isAccepted ? "green.100" : "gray.100" },
|
|
2812
|
-
onClick: () => {
|
|
2813
|
-
setPendingCheck(index);
|
|
2814
|
-
setOpenDialog(true);
|
|
2815
|
-
},
|
|
2816
|
-
onKeyDown: (e) => {
|
|
2817
|
-
if (e.key === "Enter" || e.key === " ") {
|
|
2818
|
-
e.preventDefault();
|
|
2819
|
-
setPendingCheck(index);
|
|
2820
|
-
setOpenDialog(true);
|
|
2821
|
-
}
|
|
2822
|
-
},
|
|
2823
|
-
children: /* @__PURE__ */ jsxs13(Flex6, { justify: "space-between", align: "start", gap: 4, children: [
|
|
2824
|
-
/* @__PURE__ */ jsxs13(Box12, { flex: "1", minW: 0, children: [
|
|
2825
|
-
/* @__PURE__ */ jsxs13(Text7, { fontWeight: "semibold", lineClamp: 2, children: [
|
|
2826
|
-
item.checkBoxTitle,
|
|
2827
|
-
"."
|
|
2828
|
-
] }),
|
|
2829
|
-
/* @__PURE__ */ jsx13(
|
|
2830
|
-
Text7,
|
|
2831
|
-
{
|
|
2832
|
-
fontSize: "sm",
|
|
2833
|
-
color: "gray.600",
|
|
2834
|
-
mt: 1,
|
|
2835
|
-
lineClamp: 1,
|
|
2836
|
-
children: "Tap to review details."
|
|
2837
|
-
}
|
|
2838
|
-
)
|
|
2839
|
-
] }),
|
|
2840
|
-
/* @__PURE__ */ jsx13(
|
|
2841
|
-
Badge,
|
|
2842
|
-
{
|
|
2843
|
-
variant: "subtle",
|
|
2844
|
-
colorPalette: isAccepted ? "green" : "gray",
|
|
2845
|
-
children: isAccepted ? "Accepted" : "Review"
|
|
2846
|
-
}
|
|
2847
|
-
)
|
|
2848
|
-
] })
|
|
2957
|
+
icon: FaRegUser2,
|
|
2958
|
+
label: "Personal Info",
|
|
2959
|
+
subtitle: "Identification and full name",
|
|
2960
|
+
value: "personal",
|
|
2961
|
+
page: /* @__PURE__ */ jsx13(ReviewRows2, { rows: personalRows })
|
|
2849
2962
|
},
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2963
|
+
{
|
|
2964
|
+
icon: FaRegAddressCard2,
|
|
2965
|
+
label: "Address",
|
|
2966
|
+
subtitle: "Where you currently live",
|
|
2967
|
+
value: "address",
|
|
2968
|
+
page: /* @__PURE__ */ jsx13(ReviewRows2, { rows: addressRows })
|
|
2969
|
+
},
|
|
2970
|
+
{
|
|
2971
|
+
icon: IoIosInformationCircleOutline2,
|
|
2972
|
+
label: "Employment",
|
|
2973
|
+
subtitle: "Work and income details",
|
|
2974
|
+
value: "employment",
|
|
2975
|
+
page: /* @__PURE__ */ jsx13(ReviewRows2, { rows: employmentRows })
|
|
2976
|
+
}
|
|
2977
|
+
]
|
|
2978
|
+
}
|
|
2979
|
+
),
|
|
2980
|
+
/* @__PURE__ */ jsx13(
|
|
2981
|
+
InfoCardAccordion,
|
|
2982
|
+
{
|
|
2983
|
+
icon: /* @__PURE__ */ jsx13(Icon3, { as: FaRegUser2, boxSize: "18px" }),
|
|
2984
|
+
title: "Beneficiaries",
|
|
2985
|
+
subtitle: `${beneficiaries.length} listed`,
|
|
2986
|
+
children: beneficiaryItems
|
|
2987
|
+
}
|
|
2988
|
+
),
|
|
2989
|
+
/* @__PURE__ */ jsx13(
|
|
2990
|
+
InfoCardAccordion,
|
|
2991
|
+
{
|
|
2992
|
+
icon: /* @__PURE__ */ jsx13(Icon3, { as: IoIosInformationCircleOutline2, boxSize: "18px" }),
|
|
2993
|
+
title: "Agreements",
|
|
2994
|
+
subtitle: `${acceptedCount}/${checkboxList.length} accepted`,
|
|
2995
|
+
children: agreementItems
|
|
2996
|
+
}
|
|
2997
|
+
)
|
|
2998
|
+
] }) }),
|
|
2999
|
+
/* @__PURE__ */ jsxs13(
|
|
3000
|
+
Box12,
|
|
3001
|
+
{
|
|
3002
|
+
display: { base: "none", lg: "block" },
|
|
3003
|
+
css: { columnCount: 2, columnGap: "24px" },
|
|
3004
|
+
children: [
|
|
3005
|
+
/* @__PURE__ */ jsx13(
|
|
3006
|
+
SectionCard,
|
|
3007
|
+
{
|
|
3008
|
+
title: "Personal Information",
|
|
3009
|
+
onEdit: () => onEdit?.("personal"),
|
|
3010
|
+
children: /* @__PURE__ */ jsx13(FieldGrid, { rows: personalRows })
|
|
3011
|
+
}
|
|
3012
|
+
),
|
|
3013
|
+
/* @__PURE__ */ jsx13(SectionCard, { title: "Order Summary", children: /* @__PURE__ */ jsx13(FieldGrid, { rows: orderRows }) }),
|
|
3014
|
+
/* @__PURE__ */ jsx13(SectionCard, { title: "Address", onEdit: () => onEdit?.("address"), children: /* @__PURE__ */ jsx13(FieldGrid, { rows: addressRows }) }),
|
|
3015
|
+
/* @__PURE__ */ jsx13(SectionCard, { title: "Employment", onEdit: () => onEdit?.("employment"), children: /* @__PURE__ */ jsx13(FieldGrid, { rows: employmentRows }) }),
|
|
3016
|
+
/* @__PURE__ */ jsx13(SectionCard, { title: "Beneficiaries", children: beneficiaryItems }),
|
|
3017
|
+
/* @__PURE__ */ jsxs13(SectionCard, { title: "Agreements", children: [
|
|
3018
|
+
/* @__PURE__ */ jsxs13(Text7, { fontSize: "xs", color: "gray.500", mb: 4, children: [
|
|
3019
|
+
acceptedCount,
|
|
3020
|
+
"/",
|
|
3021
|
+
checkboxList.length,
|
|
3022
|
+
" accepted"
|
|
3023
|
+
] }),
|
|
3024
|
+
agreementItems
|
|
3025
|
+
] })
|
|
3026
|
+
]
|
|
2853
3027
|
}
|
|
2854
3028
|
),
|
|
2855
3029
|
/* @__PURE__ */ jsx13(
|
|
@@ -2870,52 +3044,30 @@ var Confirmation = ({ onAllAcceptedChange, onEdit }) => {
|
|
|
2870
3044
|
overflow: "hidden",
|
|
2871
3045
|
children: [
|
|
2872
3046
|
/* @__PURE__ */ jsx13(Dialog2.CloseTrigger, { asChild: true, children: /* @__PURE__ */ jsx13(CloseButton2, { position: "absolute", top: 3, right: 3 }) }),
|
|
2873
|
-
/* @__PURE__ */ jsxs13(
|
|
2874
|
-
|
|
2875
|
-
{
|
|
2876
|
-
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
children: pendingCheck !== null ? pendingAgreement?.description || "Please review and confirm before proceeding." : "Please review and confirm before proceeding."
|
|
2891
|
-
}
|
|
2892
|
-
) }) }),
|
|
2893
|
-
/* @__PURE__ */ jsx13(
|
|
2894
|
-
Dialog2.Footer,
|
|
2895
|
-
{
|
|
2896
|
-
px: { base: 4, md: 6 },
|
|
2897
|
-
pb: { base: 5, md: 6 },
|
|
2898
|
-
children: /* @__PURE__ */ jsxs13(HStack3, { justify: "flex-end", gap: 3, w: "full", children: [
|
|
2899
|
-
/* @__PURE__ */ jsx13(
|
|
2900
|
-
CancelButton,
|
|
2901
|
-
{
|
|
2902
|
-
onClick: () => {
|
|
2903
|
-
setOpenDialog(false);
|
|
2904
|
-
setPendingCheck(null);
|
|
2905
|
-
}
|
|
2906
|
-
}
|
|
2907
|
-
),
|
|
2908
|
-
/* @__PURE__ */ jsx13(ConfirmButton, { onClick: confirmAgreement })
|
|
2909
|
-
] })
|
|
2910
|
-
}
|
|
2911
|
-
)
|
|
3047
|
+
/* @__PURE__ */ jsxs13(Dialog2.Header, { px: { base: 4, md: 6 }, pt: { base: 5, md: 6 }, children: [
|
|
3048
|
+
/* @__PURE__ */ jsx13(H3, { children: pendingCheck !== null ? pendingAgreement?.title || "Agreement" : "Agreement" }),
|
|
3049
|
+
/* @__PURE__ */ jsx13(Text7, { fontSize: "sm", color: "gray.600", mt: 2, children: "Please read carefully. Confirm to accept this agreement." })
|
|
3050
|
+
] }),
|
|
3051
|
+
/* @__PURE__ */ jsx13(Dialog2.Body, { px: { base: 4, md: 6 }, pb: { base: 5, md: 6 }, children: /* @__PURE__ */ jsx13(Box12, { p: 4, borderWidth: "0px", rounded: "lg", bg: "gray.50", children: /* @__PURE__ */ jsx13(Text7, { whiteSpace: "pre-wrap", fontSize: "sm", color: "gray.800", children: pendingCheck !== null ? pendingAgreement?.description || "Please review and confirm before proceeding." : "Please review and confirm before proceeding." }) }) }),
|
|
3052
|
+
/* @__PURE__ */ jsx13(Dialog2.Footer, { px: { base: 4, md: 6 }, pb: { base: 5, md: 6 }, children: /* @__PURE__ */ jsxs13(HStack3, { justify: "flex-end", gap: 3, w: "full", children: [
|
|
3053
|
+
/* @__PURE__ */ jsx13(
|
|
3054
|
+
CancelButton,
|
|
3055
|
+
{
|
|
3056
|
+
onClick: () => {
|
|
3057
|
+
setOpenDialog(false);
|
|
3058
|
+
setPendingCheck(null);
|
|
3059
|
+
}
|
|
3060
|
+
}
|
|
3061
|
+
),
|
|
3062
|
+
/* @__PURE__ */ jsx13(ConfirmButton, { onClick: confirmAgreement })
|
|
3063
|
+
] }) })
|
|
2912
3064
|
]
|
|
2913
3065
|
}
|
|
2914
3066
|
) })
|
|
2915
3067
|
] })
|
|
2916
3068
|
}
|
|
2917
3069
|
)
|
|
2918
|
-
] }) })
|
|
3070
|
+
] }) });
|
|
2919
3071
|
};
|
|
2920
3072
|
var confirmation_default = Confirmation;
|
|
2921
3073
|
|
|
@@ -2983,39 +3135,51 @@ var createLifePlanSteps = (confirmationProps) => [
|
|
|
2983
3135
|
];
|
|
2984
3136
|
|
|
2985
3137
|
// 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";
|
|
3138
|
+
import { useRef, useState as useState10 } from "react";
|
|
3139
|
+
import { Box as Box13, ButtonGroup, Flex as Flex7, Steps, Text as Text8 } from "@chakra-ui/react";
|
|
3140
|
+
import { PrimaryMdButton as PrimaryMdButton2, SecondaryMdButton as SecondaryMdButton2 } from "st-peter-ui";
|
|
3141
|
+
import { LuChevronLeft, LuChevronRight, LuCheck as LuCheck2 } from "react-icons/lu";
|
|
2997
3142
|
import { jsx as jsx15, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
3143
|
+
var PRIMARY = "var(--chakra-colors-primary)";
|
|
3144
|
+
var PRIMARY_HOVER = "var(--chakra-colors-primary-hover)";
|
|
3145
|
+
var PRIMARY_DISABLED = "var(--chakra-colors-primary-disabled)";
|
|
2998
3146
|
var HorizontalStepper = ({
|
|
2999
3147
|
steps,
|
|
3148
|
+
title,
|
|
3149
|
+
description,
|
|
3000
3150
|
onStepChange,
|
|
3001
3151
|
onSubmit,
|
|
3002
3152
|
submitDisabled,
|
|
3003
3153
|
activeStep: controlledActiveStep,
|
|
3004
|
-
nextDisabled
|
|
3154
|
+
nextDisabled,
|
|
3155
|
+
submitButtonText = "Proceed To Payment"
|
|
3005
3156
|
}) => {
|
|
3006
3157
|
const [localActiveStep, setLocalActiveStep] = useState10(0);
|
|
3007
3158
|
const activeStep = controlledActiveStep !== void 0 ? controlledActiveStep : localActiveStep;
|
|
3159
|
+
const formTopRef = useRef(null);
|
|
3160
|
+
const isCompact = steps.length < 3;
|
|
3161
|
+
const isLastStep = activeStep === steps.length - 1;
|
|
3162
|
+
const nextStepTitle = steps[activeStep + 1]?.title;
|
|
3163
|
+
const scrollToTop = () => {
|
|
3164
|
+
requestAnimationFrame(() => {
|
|
3165
|
+
formTopRef.current?.scrollIntoView({
|
|
3166
|
+
behavior: "smooth",
|
|
3167
|
+
block: "start"
|
|
3168
|
+
});
|
|
3169
|
+
});
|
|
3170
|
+
};
|
|
3008
3171
|
const handleStepChange = (index) => {
|
|
3009
3172
|
if (controlledActiveStep === void 0) {
|
|
3010
3173
|
setLocalActiveStep(index);
|
|
3011
3174
|
}
|
|
3012
3175
|
onStepChange?.(index);
|
|
3176
|
+
scrollToTop();
|
|
3013
3177
|
};
|
|
3014
3178
|
const handleNext = () => {
|
|
3015
3179
|
if (nextDisabled) return;
|
|
3016
3180
|
handleStepChange(Math.min(activeStep + 1, steps.length - 1));
|
|
3017
3181
|
};
|
|
3018
|
-
return /* @__PURE__ */
|
|
3182
|
+
return /* @__PURE__ */ jsxs14(
|
|
3019
3183
|
Flex7,
|
|
3020
3184
|
{
|
|
3021
3185
|
direction: "column",
|
|
@@ -3024,108 +3188,285 @@ var HorizontalStepper = ({
|
|
|
3024
3188
|
w: "full",
|
|
3025
3189
|
overflow: "visible",
|
|
3026
3190
|
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
|
-
|
|
3191
|
+
children: [
|
|
3192
|
+
/* @__PURE__ */ jsx15(Box13, { ref: formTopRef, h: "0", w: "full", scrollMarginTop: { base: 4, md: 6 } }),
|
|
3193
|
+
(title || description) && /* @__PURE__ */ jsxs14(Box13, { mb: 4, children: [
|
|
3194
|
+
title && /* @__PURE__ */ jsx15(
|
|
3195
|
+
Box13,
|
|
3196
|
+
{
|
|
3197
|
+
as: "h1",
|
|
3198
|
+
m: "0",
|
|
3199
|
+
fontFamily: "var(--font-dm-sans), system-ui, sans-serif",
|
|
3200
|
+
fontWeight: description ? 600 : 500,
|
|
3201
|
+
color: "gray.900",
|
|
3202
|
+
lineHeight: "1.1",
|
|
3203
|
+
letterSpacing: description ? "-0.025em" : "-0.015em",
|
|
3204
|
+
fontSize: {
|
|
3205
|
+
base: description ? "22px" : "24px",
|
|
3206
|
+
lg: description ? "28px" : "32px"
|
|
3207
|
+
},
|
|
3208
|
+
children: title
|
|
3209
|
+
}
|
|
3210
|
+
),
|
|
3211
|
+
description && /* @__PURE__ */ jsx15(Text8, { fontSize: "sm", color: "gray.500", mt: 1, children: description })
|
|
3212
|
+
] }),
|
|
3213
|
+
/* @__PURE__ */ jsx15(Box13, { w: "full", rounded: "2xl", children: /* @__PURE__ */ jsxs14(
|
|
3214
|
+
Steps.Root,
|
|
3215
|
+
{
|
|
3216
|
+
step: activeStep,
|
|
3217
|
+
onStepChange: (index) => handleStepChange(index.step),
|
|
3218
|
+
defaultStep: 0,
|
|
3219
|
+
count: steps.length,
|
|
3220
|
+
colorPalette: "green",
|
|
3221
|
+
children: [
|
|
3222
|
+
/* @__PURE__ */ jsxs14(
|
|
3223
|
+
Box13,
|
|
3224
|
+
{
|
|
3225
|
+
position: "sticky",
|
|
3226
|
+
top: 0,
|
|
3227
|
+
zIndex: 10,
|
|
3228
|
+
bg: "white",
|
|
3229
|
+
pt: 2,
|
|
3230
|
+
pb: 3,
|
|
3231
|
+
mx: -1,
|
|
3232
|
+
px: 1,
|
|
3233
|
+
borderBottomWidth: "1px",
|
|
3234
|
+
borderColor: "gray.100",
|
|
3235
|
+
boxShadow: "0 2px 8px -2px rgba(0,0,0,0.06)",
|
|
3236
|
+
children: [
|
|
3237
|
+
/* @__PURE__ */ jsx15(
|
|
3238
|
+
Steps.List,
|
|
3239
|
+
{
|
|
3240
|
+
py: 0,
|
|
3241
|
+
flexDirection: "row",
|
|
3242
|
+
alignItems: "center",
|
|
3243
|
+
w: "full",
|
|
3244
|
+
justifyContent: "space-evenly",
|
|
3245
|
+
children: steps.map((step, index) => {
|
|
3246
|
+
const isCompleted = index < activeStep;
|
|
3247
|
+
const isActive = index === activeStep;
|
|
3248
|
+
return /* @__PURE__ */ jsxs14(
|
|
3249
|
+
Steps.Item,
|
|
3250
|
+
{
|
|
3251
|
+
index,
|
|
3252
|
+
title: step.title,
|
|
3253
|
+
minW: { base: "0px", md: "auto" },
|
|
3254
|
+
flex: isCompact ? "0 0 auto" : "1",
|
|
3255
|
+
children: [
|
|
3256
|
+
/* @__PURE__ */ jsxs14(
|
|
3257
|
+
Steps.Trigger,
|
|
3258
|
+
{
|
|
3259
|
+
flexDirection: isCompact ? "row" : "column",
|
|
3260
|
+
alignItems: "center",
|
|
3261
|
+
gap: isCompact ? 2 : 1,
|
|
3262
|
+
px: isCompact ? 3 : 2,
|
|
3263
|
+
py: isCompact ? 2 : 1,
|
|
3264
|
+
borderRadius: "lg",
|
|
3265
|
+
transition: "background 0.2s",
|
|
3266
|
+
_hover: { bg: "gray.50" },
|
|
3267
|
+
children: [
|
|
3268
|
+
/* @__PURE__ */ jsx15(
|
|
3269
|
+
Steps.Indicator,
|
|
3270
|
+
{
|
|
3271
|
+
borderWidth: "2px",
|
|
3272
|
+
transition: "all 0.25s",
|
|
3273
|
+
style: {
|
|
3274
|
+
borderColor: isCompleted || isActive ? PRIMARY : void 0,
|
|
3275
|
+
background: isCompleted ? PRIMARY : void 0,
|
|
3276
|
+
color: isCompleted ? "white" : isActive ? PRIMARY : void 0,
|
|
3277
|
+
boxShadow: isActive ? `0 0 0 3px ${PRIMARY_DISABLED}` : "none"
|
|
3278
|
+
},
|
|
3279
|
+
children: isCompleted ? /* @__PURE__ */ jsx15(LuCheck2, { size: 14 }) : step.icon ? /* @__PURE__ */ jsx15(Box13, { as: step.icon, w: 4, h: 4 }) : null
|
|
3280
|
+
}
|
|
3281
|
+
),
|
|
3282
|
+
/* @__PURE__ */ jsx15(
|
|
3283
|
+
Steps.Title,
|
|
3284
|
+
{
|
|
3285
|
+
fontSize: { base: "xs", md: "sm" },
|
|
3286
|
+
textAlign: isCompact ? "left" : "center",
|
|
3287
|
+
whiteSpace: "normal",
|
|
3288
|
+
wordBreak: "break-word",
|
|
3289
|
+
fontWeight: isActive ? 600 : 400,
|
|
3290
|
+
color: isActive ? "gray.900" : isCompleted ? "gray.600" : "gray.400",
|
|
3291
|
+
transition: "color 0.2s",
|
|
3292
|
+
children: step.title
|
|
3293
|
+
}
|
|
3294
|
+
)
|
|
3295
|
+
]
|
|
3296
|
+
}
|
|
3297
|
+
),
|
|
3298
|
+
!isCompact && /* @__PURE__ */ jsx15(
|
|
3299
|
+
Steps.Separator,
|
|
3300
|
+
{
|
|
3301
|
+
display: { base: "none", md: "block" }
|
|
3302
|
+
}
|
|
3303
|
+
)
|
|
3304
|
+
]
|
|
3305
|
+
},
|
|
3306
|
+
index
|
|
3307
|
+
);
|
|
3308
|
+
})
|
|
3309
|
+
}
|
|
3310
|
+
),
|
|
3311
|
+
/* @__PURE__ */ jsx15(
|
|
3312
|
+
Box13,
|
|
3313
|
+
{
|
|
3314
|
+
w: "full",
|
|
3315
|
+
h: "3px",
|
|
3316
|
+
bg: "gray.100",
|
|
3317
|
+
borderRadius: "full",
|
|
3318
|
+
overflow: "hidden",
|
|
3319
|
+
mt: 1,
|
|
3320
|
+
children: /* @__PURE__ */ jsx15(
|
|
3321
|
+
Box13,
|
|
3322
|
+
{
|
|
3323
|
+
h: "full",
|
|
3324
|
+
bg: PRIMARY,
|
|
3325
|
+
transition: "width 0.4s ease",
|
|
3326
|
+
w: `${(activeStep + 1) / steps.length * 100}%`
|
|
3327
|
+
}
|
|
3328
|
+
)
|
|
3329
|
+
}
|
|
3330
|
+
)
|
|
3331
|
+
]
|
|
3332
|
+
}
|
|
3333
|
+
),
|
|
3334
|
+
steps.map((step, index) => /* @__PURE__ */ jsx15(Steps.Content, { index, children: step.component ?? step.description }, index)),
|
|
3335
|
+
/* @__PURE__ */ jsxs14(
|
|
3336
|
+
Flex7,
|
|
3337
|
+
{
|
|
3338
|
+
w: "full",
|
|
3339
|
+
justify: "space-between",
|
|
3340
|
+
align: "center",
|
|
3341
|
+
mt: 4,
|
|
3342
|
+
gap: 2,
|
|
3343
|
+
display: { base: "flex", md: "none" },
|
|
3344
|
+
children: [
|
|
3345
|
+
/* @__PURE__ */ jsx15(Steps.PrevTrigger, { asChild: true, children: /* @__PURE__ */ jsxs14(
|
|
3346
|
+
Box13,
|
|
3347
|
+
{
|
|
3348
|
+
as: "button",
|
|
3349
|
+
display: "flex",
|
|
3350
|
+
alignItems: "center",
|
|
3351
|
+
gap: 1,
|
|
3352
|
+
px: 3,
|
|
3353
|
+
py: 2,
|
|
3354
|
+
borderRadius: "lg",
|
|
3355
|
+
border: "1.5px solid",
|
|
3356
|
+
borderColor: "gray.200",
|
|
3357
|
+
bg: "white",
|
|
3358
|
+
color: "gray.700",
|
|
3359
|
+
fontSize: "sm",
|
|
3360
|
+
fontWeight: 500,
|
|
3361
|
+
cursor: "pointer",
|
|
3362
|
+
_hover: { bg: "gray.50" },
|
|
3363
|
+
_disabled: { opacity: 0.4, cursor: "not-allowed" },
|
|
3364
|
+
transition: "all 0.15s",
|
|
3365
|
+
children: [
|
|
3366
|
+
/* @__PURE__ */ jsx15(LuChevronLeft, { size: 14 }),
|
|
3367
|
+
"Back"
|
|
3368
|
+
]
|
|
3369
|
+
}
|
|
3370
|
+
) }),
|
|
3371
|
+
!isLastStep ? /* @__PURE__ */ jsxs14(
|
|
3372
|
+
Box13,
|
|
3373
|
+
{
|
|
3374
|
+
as: "button",
|
|
3375
|
+
display: "flex",
|
|
3376
|
+
alignItems: "center",
|
|
3377
|
+
gap: 1,
|
|
3378
|
+
px: 3,
|
|
3379
|
+
py: 2,
|
|
3380
|
+
borderRadius: "lg",
|
|
3381
|
+
color: "white",
|
|
3382
|
+
fontSize: "sm",
|
|
3383
|
+
fontWeight: 500,
|
|
3384
|
+
cursor: nextDisabled ? "not-allowed" : "pointer",
|
|
3385
|
+
opacity: nextDisabled ? 0.5 : 1,
|
|
3386
|
+
pointerEvents: nextDisabled ? "none" : "auto",
|
|
3387
|
+
transition: "all 0.15s",
|
|
3388
|
+
onClick: handleNext,
|
|
3389
|
+
bg: PRIMARY,
|
|
3390
|
+
_hover: { bg: PRIMARY_HOVER },
|
|
3391
|
+
children: [
|
|
3392
|
+
nextStepTitle ? `Next: ${nextStepTitle}` : "Next",
|
|
3393
|
+
/* @__PURE__ */ jsx15(LuChevronRight, { size: 14 })
|
|
3394
|
+
]
|
|
3395
|
+
}
|
|
3396
|
+
) : /* @__PURE__ */ jsxs14(
|
|
3397
|
+
Box13,
|
|
3398
|
+
{
|
|
3399
|
+
as: "button",
|
|
3400
|
+
display: "flex",
|
|
3401
|
+
alignItems: "center",
|
|
3402
|
+
gap: 1,
|
|
3403
|
+
px: 3,
|
|
3404
|
+
py: 2,
|
|
3405
|
+
borderRadius: "lg",
|
|
3406
|
+
color: "white",
|
|
3407
|
+
fontSize: "sm",
|
|
3408
|
+
fontWeight: 500,
|
|
3409
|
+
cursor: submitDisabled ? "not-allowed" : "pointer",
|
|
3410
|
+
opacity: submitDisabled ? 0.5 : 1,
|
|
3411
|
+
pointerEvents: submitDisabled ? "none" : "auto",
|
|
3412
|
+
transition: "all 0.15s",
|
|
3413
|
+
onClick: onSubmit,
|
|
3414
|
+
bg: PRIMARY,
|
|
3415
|
+
_hover: { bg: PRIMARY_HOVER },
|
|
3416
|
+
children: [
|
|
3417
|
+
submitButtonText,
|
|
3418
|
+
/* @__PURE__ */ jsx15(LuCheck2, { size: 14 })
|
|
3419
|
+
]
|
|
3420
|
+
}
|
|
3421
|
+
)
|
|
3422
|
+
]
|
|
3423
|
+
}
|
|
3424
|
+
),
|
|
3425
|
+
/* @__PURE__ */ jsx15(
|
|
3426
|
+
ButtonGroup,
|
|
3427
|
+
{
|
|
3428
|
+
size: "sm",
|
|
3429
|
+
variant: "outline",
|
|
3430
|
+
display: { base: "none", md: "flex" },
|
|
3431
|
+
children: /* @__PURE__ */ jsxs14(Flex7, { mt: 5, w: "full", align: "center", justify: "space-between", children: [
|
|
3432
|
+
/* @__PURE__ */ jsx15(Steps.PrevTrigger, { asChild: true, children: /* @__PURE__ */ jsxs14(SecondaryMdButton2, { children: [
|
|
3433
|
+
/* @__PURE__ */ jsx15(LuChevronLeft, {}),
|
|
3434
|
+
"Previous"
|
|
3435
|
+
] }) }),
|
|
3436
|
+
!isLastStep ? /* @__PURE__ */ jsxs14(
|
|
3437
|
+
Box13,
|
|
3438
|
+
{
|
|
3439
|
+
as: "button",
|
|
3440
|
+
display: "flex",
|
|
3441
|
+
alignItems: "center",
|
|
3442
|
+
gap: 1.5,
|
|
3443
|
+
px: 4,
|
|
3444
|
+
py: 2,
|
|
3445
|
+
borderRadius: "lg",
|
|
3446
|
+
color: "white",
|
|
3447
|
+
fontSize: "sm",
|
|
3448
|
+
fontWeight: 600,
|
|
3449
|
+
cursor: nextDisabled ? "not-allowed" : "pointer",
|
|
3450
|
+
opacity: nextDisabled ? 0.5 : 1,
|
|
3451
|
+
pointerEvents: nextDisabled ? "none" : "auto",
|
|
3452
|
+
transition: "all 0.15s",
|
|
3453
|
+
onClick: handleNext,
|
|
3454
|
+
boxShadow: "0 1px 3px 0 rgba(0,0,0,0.12)",
|
|
3455
|
+
bg: PRIMARY,
|
|
3456
|
+
_hover: { bg: PRIMARY_HOVER },
|
|
3457
|
+
children: [
|
|
3458
|
+
nextStepTitle ? `Next: ${nextStepTitle}` : "Next",
|
|
3459
|
+
/* @__PURE__ */ jsx15(LuChevronRight, { size: 15 })
|
|
3460
|
+
]
|
|
3461
|
+
}
|
|
3462
|
+
) : /* @__PURE__ */ jsx15(PrimaryMdButton2, { disabled: !!submitDisabled, onClick: onSubmit, children: submitButtonText })
|
|
3463
|
+
] })
|
|
3464
|
+
}
|
|
3465
|
+
)
|
|
3466
|
+
]
|
|
3467
|
+
}
|
|
3468
|
+
) })
|
|
3469
|
+
]
|
|
3129
3470
|
}
|
|
3130
3471
|
);
|
|
3131
3472
|
};
|
|
@@ -3192,40 +3533,10 @@ import {
|
|
|
3192
3533
|
Flex as Flex8,
|
|
3193
3534
|
Icon as Icon4,
|
|
3194
3535
|
CloseButton as CloseButton3,
|
|
3195
|
-
Text as
|
|
3536
|
+
Text as Text9
|
|
3196
3537
|
} from "@chakra-ui/react";
|
|
3197
3538
|
import { LuChevronRight as LuChevronRight2 } from "react-icons/lu";
|
|
3198
3539
|
import Link from "next/link";
|
|
3199
|
-
|
|
3200
|
-
// src/lib/theme/brand-colors.ts
|
|
3201
|
-
var BRAND_COLORS = {
|
|
3202
|
-
primaryGreen: "#109448",
|
|
3203
|
-
darkGreen: "#006838",
|
|
3204
|
-
softGreen: "#92DDBF",
|
|
3205
|
-
pastelPeaGreen: "#ACD6A6",
|
|
3206
|
-
seafoamGreen: "#92DDBF",
|
|
3207
|
-
lightCyan: "#D3EDEE",
|
|
3208
|
-
successBg: "#F0FDF4",
|
|
3209
|
-
warningBg: "#FFF7ED",
|
|
3210
|
-
warningText: "#F1592B",
|
|
3211
|
-
warningBorder: "#F4845F",
|
|
3212
|
-
errorBg: "#FEF2F2",
|
|
3213
|
-
destructiveRed: "#BF1F2F",
|
|
3214
|
-
errorRed: "#EF4444",
|
|
3215
|
-
neutralText: "#22223B",
|
|
3216
|
-
neutralBorder: "#E5E7EB",
|
|
3217
|
-
mutedBg: "#F3F4F6",
|
|
3218
|
-
subtleBg: "#F9FAFB",
|
|
3219
|
-
white: "#FFFFFF",
|
|
3220
|
-
black: "#000000",
|
|
3221
|
-
grey: "#808080",
|
|
3222
|
-
ashWhite: "#ECECEC",
|
|
3223
|
-
gold: "#CBA135",
|
|
3224
|
-
brightGold: "#FFD026",
|
|
3225
|
-
paleGold: "#FFF48E"
|
|
3226
|
-
};
|
|
3227
|
-
|
|
3228
|
-
// src/Generic/BottomQuickActions.tsx
|
|
3229
3540
|
import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
3230
3541
|
var SHEET_BG = BRAND_COLORS.white;
|
|
3231
3542
|
var DRAG_COLOR = BRAND_COLORS.neutralBorder;
|
|
@@ -3272,7 +3583,7 @@ var QuickActionsHeaderCard = React5.memo(
|
|
|
3272
3583
|
justify: "center",
|
|
3273
3584
|
flexShrink: 0,
|
|
3274
3585
|
children: /* @__PURE__ */ jsx18(
|
|
3275
|
-
|
|
3586
|
+
Text9,
|
|
3276
3587
|
{
|
|
3277
3588
|
fontSize: "14px",
|
|
3278
3589
|
fontWeight: "700",
|
|
@@ -3285,7 +3596,7 @@ var QuickActionsHeaderCard = React5.memo(
|
|
|
3285
3596
|
),
|
|
3286
3597
|
/* @__PURE__ */ jsxs15(Box15, { flex: "1", minW: 0, children: [
|
|
3287
3598
|
/* @__PURE__ */ jsx18(
|
|
3288
|
-
|
|
3599
|
+
Text9,
|
|
3289
3600
|
{
|
|
3290
3601
|
fontSize: "15px",
|
|
3291
3602
|
fontWeight: "700",
|
|
@@ -3298,7 +3609,7 @@ var QuickActionsHeaderCard = React5.memo(
|
|
|
3298
3609
|
}
|
|
3299
3610
|
),
|
|
3300
3611
|
meta && /* @__PURE__ */ jsx18(
|
|
3301
|
-
|
|
3612
|
+
Text9,
|
|
3302
3613
|
{
|
|
3303
3614
|
fontSize: "12px",
|
|
3304
3615
|
color: SUBTITLE_COLOR,
|
|
@@ -3360,7 +3671,7 @@ var ActionItem = React5.memo(({ action }) => {
|
|
|
3360
3671
|
),
|
|
3361
3672
|
/* @__PURE__ */ jsxs15(Box15, { flex: "1", minW: 0, children: [
|
|
3362
3673
|
/* @__PURE__ */ jsx18(
|
|
3363
|
-
|
|
3674
|
+
Text9,
|
|
3364
3675
|
{
|
|
3365
3676
|
fontSize: "15px",
|
|
3366
3677
|
fontWeight: "600",
|
|
@@ -3370,7 +3681,7 @@ var ActionItem = React5.memo(({ action }) => {
|
|
|
3370
3681
|
}
|
|
3371
3682
|
),
|
|
3372
3683
|
action.description && /* @__PURE__ */ jsx18(
|
|
3373
|
-
|
|
3684
|
+
Text9,
|
|
3374
3685
|
{
|
|
3375
3686
|
fontSize: "12px",
|
|
3376
3687
|
color: DESC_COLOR,
|
|
@@ -3464,7 +3775,7 @@ var BottomQuickActions = ({
|
|
|
3464
3775
|
}
|
|
3465
3776
|
),
|
|
3466
3777
|
subtitle && /* @__PURE__ */ jsx18(
|
|
3467
|
-
|
|
3778
|
+
Text9,
|
|
3468
3779
|
{
|
|
3469
3780
|
fontSize: "13px",
|
|
3470
3781
|
color: SUBTITLE_COLOR,
|
|
@@ -3510,7 +3821,7 @@ var BottomQuickActions_default = BottomQuickActions;
|
|
|
3510
3821
|
|
|
3511
3822
|
// src/Generic/NotifyInstall.tsx
|
|
3512
3823
|
import { useEffect as useEffect8, useState as useState13 } from "react";
|
|
3513
|
-
import { Button as Button3, Flex as Flex9, HStack as HStack5, Icon as Icon5, Text as
|
|
3824
|
+
import { Button as Button3, Flex as Flex9, HStack as HStack5, Icon as Icon5, Text as Text10, VStack as VStack8 } from "@chakra-ui/react";
|
|
3514
3825
|
import { AnimatePresence, motion } from "motion/react";
|
|
3515
3826
|
import { FiDownload, FiPlusSquare, FiShare, FiX } from "react-icons/fi";
|
|
3516
3827
|
|
|
@@ -3653,7 +3964,7 @@ function NotifyInstall({
|
|
|
3653
3964
|
),
|
|
3654
3965
|
/* @__PURE__ */ jsxs16(VStack8, { gap: 2, children: [
|
|
3655
3966
|
/* @__PURE__ */ jsxs16(
|
|
3656
|
-
|
|
3967
|
+
Text10,
|
|
3657
3968
|
{
|
|
3658
3969
|
fontSize: "lg",
|
|
3659
3970
|
fontWeight: "bold",
|
|
@@ -3665,7 +3976,7 @@ function NotifyInstall({
|
|
|
3665
3976
|
]
|
|
3666
3977
|
}
|
|
3667
3978
|
),
|
|
3668
|
-
/* @__PURE__ */ jsx19(
|
|
3979
|
+
/* @__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." })
|
|
3669
3980
|
] }),
|
|
3670
3981
|
canInstall ? /* @__PURE__ */ jsxs16(
|
|
3671
3982
|
Button3,
|
|
@@ -3707,7 +4018,7 @@ function NotifyInstall({
|
|
|
3707
4018
|
children: /* @__PURE__ */ jsx19(Icon5, { as: step.icon, boxSize: 4 })
|
|
3708
4019
|
}
|
|
3709
4020
|
),
|
|
3710
|
-
/* @__PURE__ */ jsx19(
|
|
4021
|
+
/* @__PURE__ */ jsx19(Text10, { fontSize: "sm", color: "gray.700", textAlign: "left", children: step.label })
|
|
3711
4022
|
] }, i))
|
|
3712
4023
|
}
|
|
3713
4024
|
)
|
|
@@ -3732,8 +4043,8 @@ import {
|
|
|
3732
4043
|
IconButton as IconButton3,
|
|
3733
4044
|
Input as Input4,
|
|
3734
4045
|
InputGroup,
|
|
3735
|
-
Separator as
|
|
3736
|
-
Text as
|
|
4046
|
+
Separator as Separator3,
|
|
4047
|
+
Text as Text11,
|
|
3737
4048
|
useBreakpointValue as useBreakpointValue2,
|
|
3738
4049
|
VStack as VStack9
|
|
3739
4050
|
} from "@chakra-ui/react";
|
|
@@ -4264,7 +4575,7 @@ function ReusableProfile({
|
|
|
4264
4575
|
}
|
|
4265
4576
|
),
|
|
4266
4577
|
/* @__PURE__ */ jsx20(
|
|
4267
|
-
|
|
4578
|
+
Text11,
|
|
4268
4579
|
{
|
|
4269
4580
|
color: "white",
|
|
4270
4581
|
fontWeight: "bold",
|
|
@@ -4274,7 +4585,7 @@ function ReusableProfile({
|
|
|
4274
4585
|
children: user.displayName
|
|
4275
4586
|
}
|
|
4276
4587
|
),
|
|
4277
|
-
user.email && /* @__PURE__ */ jsx20(
|
|
4588
|
+
user.email && /* @__PURE__ */ jsx20(Text11, { color: "rgba(255,255,255,0.75)", fontSize: "sm", mb: 2, children: user.email }),
|
|
4278
4589
|
roleLabel && /* @__PURE__ */ jsx20(Box16, { display: "inline-flex", children: /* @__PURE__ */ jsx20(
|
|
4279
4590
|
Badge2,
|
|
4280
4591
|
{
|
|
@@ -4294,7 +4605,7 @@ function ReusableProfile({
|
|
|
4294
4605
|
),
|
|
4295
4606
|
/* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 5, pb: 1, children: [
|
|
4296
4607
|
/* @__PURE__ */ jsx20(
|
|
4297
|
-
|
|
4608
|
+
Text11,
|
|
4298
4609
|
{
|
|
4299
4610
|
fontSize: "xs",
|
|
4300
4611
|
fontWeight: "bold",
|
|
@@ -4341,8 +4652,8 @@ function ReusableProfile({
|
|
|
4341
4652
|
}
|
|
4342
4653
|
),
|
|
4343
4654
|
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4344
|
-
/* @__PURE__ */ jsx20(
|
|
4345
|
-
/* @__PURE__ */ jsx20(
|
|
4655
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Edit Account" }),
|
|
4656
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: "Update your display name and contact details" })
|
|
4346
4657
|
] })
|
|
4347
4658
|
] }),
|
|
4348
4659
|
/* @__PURE__ */ jsx20(LuChevronRight3, { size: 16, color: "var(--chakra-colors-gray-400)" })
|
|
@@ -4351,7 +4662,7 @@ function ReusableProfile({
|
|
|
4351
4662
|
)
|
|
4352
4663
|
}
|
|
4353
4664
|
),
|
|
4354
|
-
/* @__PURE__ */ jsx20(
|
|
4665
|
+
/* @__PURE__ */ jsx20(Separator3, {}),
|
|
4355
4666
|
/* @__PURE__ */ jsx20(
|
|
4356
4667
|
Box16,
|
|
4357
4668
|
{
|
|
@@ -4391,8 +4702,8 @@ function ReusableProfile({
|
|
|
4391
4702
|
}
|
|
4392
4703
|
),
|
|
4393
4704
|
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4394
|
-
/* @__PURE__ */ jsx20(
|
|
4395
|
-
/* @__PURE__ */ jsx20(
|
|
4705
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Change Password" }),
|
|
4706
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: "Test locally through the callback prop" })
|
|
4396
4707
|
] })
|
|
4397
4708
|
] }),
|
|
4398
4709
|
/* @__PURE__ */ jsx20(LuChevronRight3, { size: 16, color: "var(--chakra-colors-gray-400)" })
|
|
@@ -4401,7 +4712,7 @@ function ReusableProfile({
|
|
|
4401
4712
|
)
|
|
4402
4713
|
}
|
|
4403
4714
|
),
|
|
4404
|
-
/* @__PURE__ */ jsx20(
|
|
4715
|
+
/* @__PURE__ */ jsx20(Separator3, {}),
|
|
4405
4716
|
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4406
4717
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4407
4718
|
/* @__PURE__ */ jsx20(
|
|
@@ -4420,8 +4731,8 @@ function ReusableProfile({
|
|
|
4420
4731
|
}
|
|
4421
4732
|
),
|
|
4422
4733
|
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4423
|
-
/* @__PURE__ */ jsx20(
|
|
4424
|
-
/* @__PURE__ */ jsx20(
|
|
4734
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Two Factor Authentication" }),
|
|
4735
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: twoFactorEnabled ? "Enabled" : "Disabled" })
|
|
4425
4736
|
] })
|
|
4426
4737
|
] }),
|
|
4427
4738
|
/* @__PURE__ */ jsx20(
|
|
@@ -4467,7 +4778,7 @@ function ReusableProfile({
|
|
|
4467
4778
|
] }),
|
|
4468
4779
|
/* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 4, pb: 2, children: [
|
|
4469
4780
|
/* @__PURE__ */ jsx20(
|
|
4470
|
-
|
|
4781
|
+
Text11,
|
|
4471
4782
|
{
|
|
4472
4783
|
fontSize: "xs",
|
|
4473
4784
|
fontWeight: "bold",
|
|
@@ -4496,8 +4807,8 @@ function ReusableProfile({
|
|
|
4496
4807
|
}
|
|
4497
4808
|
),
|
|
4498
4809
|
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4499
|
-
/* @__PURE__ */ jsx20(
|
|
4500
|
-
/* @__PURE__ */ jsx20(
|
|
4810
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Appearance" }),
|
|
4811
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: colorMode === "light" ? "Light mode" : "Dark mode" })
|
|
4501
4812
|
] })
|
|
4502
4813
|
] }),
|
|
4503
4814
|
/* @__PURE__ */ jsx20(HStack6, { gap: 1.5, children: ["light", "dark"].map((mode) => {
|
|
@@ -4520,7 +4831,7 @@ function ReusableProfile({
|
|
|
4520
4831
|
children: [
|
|
4521
4832
|
mode === "light" ? /* @__PURE__ */ jsx20(LuSun, { size: 13 }) : /* @__PURE__ */ jsx20(LuMoon, { size: 13 }),
|
|
4522
4833
|
/* @__PURE__ */ jsx20(
|
|
4523
|
-
|
|
4834
|
+
Text11,
|
|
4524
4835
|
{
|
|
4525
4836
|
fontSize: "xs",
|
|
4526
4837
|
textTransform: "capitalize",
|
|
@@ -4534,7 +4845,7 @@ function ReusableProfile({
|
|
|
4534
4845
|
);
|
|
4535
4846
|
}) })
|
|
4536
4847
|
] }),
|
|
4537
|
-
/* @__PURE__ */ jsx20(
|
|
4848
|
+
/* @__PURE__ */ jsx20(Separator3, {}),
|
|
4538
4849
|
/* @__PURE__ */ jsxs17(Flex10, { justify: "space-between", align: "center", py: 3, children: [
|
|
4539
4850
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 3, children: [
|
|
4540
4851
|
/* @__PURE__ */ jsx20(
|
|
@@ -4555,8 +4866,8 @@ function ReusableProfile({
|
|
|
4555
4866
|
}
|
|
4556
4867
|
),
|
|
4557
4868
|
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4558
|
-
/* @__PURE__ */ jsx20(
|
|
4559
|
-
/* @__PURE__ */ jsx20(
|
|
4869
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Text Size" }),
|
|
4870
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "gray.500", children: fontSizeLabel })
|
|
4560
4871
|
] })
|
|
4561
4872
|
] }),
|
|
4562
4873
|
/* @__PURE__ */ jsx20(HStack6, { gap: 1, children: FONT_SIZES.map((option) => {
|
|
@@ -4578,7 +4889,7 @@ function ReusableProfile({
|
|
|
4578
4889
|
onClick: () => handleFontSize(option.value),
|
|
4579
4890
|
title: option.title,
|
|
4580
4891
|
children: /* @__PURE__ */ jsx20(
|
|
4581
|
-
|
|
4892
|
+
Text11,
|
|
4582
4893
|
{
|
|
4583
4894
|
fontWeight: isActive ? "bold" : "normal",
|
|
4584
4895
|
style: { fontSize: `${option.scale * 13}px` },
|
|
@@ -4590,7 +4901,7 @@ function ReusableProfile({
|
|
|
4590
4901
|
);
|
|
4591
4902
|
}) })
|
|
4592
4903
|
] }),
|
|
4593
|
-
/* @__PURE__ */ jsx20(
|
|
4904
|
+
/* @__PURE__ */ jsx20(Separator3, {}),
|
|
4594
4905
|
/* @__PURE__ */ jsx20(
|
|
4595
4906
|
Box16,
|
|
4596
4907
|
{
|
|
@@ -4618,8 +4929,8 @@ function ReusableProfile({
|
|
|
4618
4929
|
}
|
|
4619
4930
|
),
|
|
4620
4931
|
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4621
|
-
/* @__PURE__ */ jsx20(
|
|
4622
|
-
/* @__PURE__ */ jsxs17(
|
|
4932
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "semibold", children: "Quick Navigation" }),
|
|
4933
|
+
/* @__PURE__ */ jsxs17(Text11, { fontSize: "xs", color: "gray.500", children: [
|
|
4623
4934
|
quickNavHrefs.length,
|
|
4624
4935
|
" of ",
|
|
4625
4936
|
maxQuickNavItems,
|
|
@@ -4658,7 +4969,7 @@ function ReusableProfile({
|
|
|
4658
4969
|
children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
|
|
4659
4970
|
}
|
|
4660
4971
|
),
|
|
4661
|
-
/* @__PURE__ */ jsx20(
|
|
4972
|
+
/* @__PURE__ */ jsx20(Text11, { fontWeight: "bold", fontSize: "md", children: "Edit Account" })
|
|
4662
4973
|
] }) }),
|
|
4663
4974
|
/* @__PURE__ */ jsx20(Box16, { textAlign: "center", pt: 5, pb: 4, children: /* @__PURE__ */ jsxs17(Avatar.Root, { size: "xl", mx: "auto", mb: 1, children: [
|
|
4664
4975
|
user.avatarSrc && /* @__PURE__ */ jsx20(Avatar.Image, { src: user.avatarSrc, alt: editName }),
|
|
@@ -4666,7 +4977,7 @@ function ReusableProfile({
|
|
|
4666
4977
|
] }) }),
|
|
4667
4978
|
/* @__PURE__ */ jsxs17(VStack9, { gap: 4, px: 4, pb: 10, align: "stretch", children: [
|
|
4668
4979
|
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4669
|
-
/* @__PURE__ */ jsx20(
|
|
4980
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Display Name" }),
|
|
4670
4981
|
/* @__PURE__ */ jsx20(
|
|
4671
4982
|
Input4,
|
|
4672
4983
|
{
|
|
@@ -4678,7 +4989,7 @@ function ReusableProfile({
|
|
|
4678
4989
|
)
|
|
4679
4990
|
] }),
|
|
4680
4991
|
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4681
|
-
/* @__PURE__ */ jsx20(
|
|
4992
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Email" }),
|
|
4682
4993
|
/* @__PURE__ */ jsx20(
|
|
4683
4994
|
Input4,
|
|
4684
4995
|
{
|
|
@@ -4691,7 +5002,7 @@ function ReusableProfile({
|
|
|
4691
5002
|
)
|
|
4692
5003
|
] }),
|
|
4693
5004
|
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4694
|
-
/* @__PURE__ */ jsx20(
|
|
5005
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Mobile Number" }),
|
|
4695
5006
|
/* @__PURE__ */ jsx20(
|
|
4696
5007
|
Input4,
|
|
4697
5008
|
{
|
|
@@ -4731,11 +5042,11 @@ function ReusableProfile({
|
|
|
4731
5042
|
children: /* @__PURE__ */ jsx20(LuChevronLeft2, {})
|
|
4732
5043
|
}
|
|
4733
5044
|
),
|
|
4734
|
-
/* @__PURE__ */ jsx20(
|
|
5045
|
+
/* @__PURE__ */ jsx20(Text11, { fontWeight: "bold", fontSize: "md", children: "Change Password" })
|
|
4735
5046
|
] }) }),
|
|
4736
5047
|
/* @__PURE__ */ jsxs17(VStack9, { gap: 5, px: 4, pt: 6, pb: 10, children: [
|
|
4737
5048
|
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4738
|
-
/* @__PURE__ */ jsx20(
|
|
5049
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Current Password" }),
|
|
4739
5050
|
/* @__PURE__ */ jsx20(
|
|
4740
5051
|
InputGroup,
|
|
4741
5052
|
{
|
|
@@ -4764,7 +5075,7 @@ function ReusableProfile({
|
|
|
4764
5075
|
)
|
|
4765
5076
|
] }),
|
|
4766
5077
|
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4767
|
-
/* @__PURE__ */ jsx20(
|
|
5078
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "New Password" }),
|
|
4768
5079
|
/* @__PURE__ */ jsx20(
|
|
4769
5080
|
InputGroup,
|
|
4770
5081
|
{
|
|
@@ -4803,11 +5114,11 @@ function ReusableProfile({
|
|
|
4803
5114
|
},
|
|
4804
5115
|
i
|
|
4805
5116
|
)) }),
|
|
4806
|
-
/* @__PURE__ */ jsx20(
|
|
5117
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: pwMeta.color, fontWeight: "medium", children: pwMeta.label })
|
|
4807
5118
|
] })
|
|
4808
5119
|
] }),
|
|
4809
5120
|
/* @__PURE__ */ jsxs17(Box16, { w: "full", children: [
|
|
4810
|
-
/* @__PURE__ */ jsx20(
|
|
5121
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "xs", fontWeight: "semibold", color: "gray.500", mb: 1.5, children: "Confirm New Password" }),
|
|
4811
5122
|
/* @__PURE__ */ jsx20(
|
|
4812
5123
|
InputGroup,
|
|
4813
5124
|
{
|
|
@@ -4834,7 +5145,7 @@ function ReusableProfile({
|
|
|
4834
5145
|
)
|
|
4835
5146
|
}
|
|
4836
5147
|
),
|
|
4837
|
-
confirmPw && confirmPw !== newPw && /* @__PURE__ */ jsx20(
|
|
5148
|
+
confirmPw && confirmPw !== newPw && /* @__PURE__ */ jsx20(Text11, { fontSize: "xs", color: "red.500", mt: 1, children: "Passwords do not match" })
|
|
4838
5149
|
] }),
|
|
4839
5150
|
/* @__PURE__ */ jsx20(
|
|
4840
5151
|
Button4,
|
|
@@ -4881,8 +5192,8 @@ function ReusableProfile({
|
|
|
4881
5192
|
}
|
|
4882
5193
|
),
|
|
4883
5194
|
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4884
|
-
/* @__PURE__ */ jsx20(
|
|
4885
|
-
/* @__PURE__ */ jsxs17(
|
|
5195
|
+
/* @__PURE__ */ jsx20(Text11, { fontWeight: "bold", fontSize: "md", children: "Quick Navigation" }),
|
|
5196
|
+
/* @__PURE__ */ jsxs17(Text11, { fontSize: "xs", color: "gray.500", children: [
|
|
4886
5197
|
"Choose up to ",
|
|
4887
5198
|
maxQuickNavItems,
|
|
4888
5199
|
" shortcuts for the bottom bar"
|
|
@@ -4894,7 +5205,7 @@ function ReusableProfile({
|
|
|
4894
5205
|
/* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 5, pb: 2, children: [
|
|
4895
5206
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
|
|
4896
5207
|
/* @__PURE__ */ jsx20(
|
|
4897
|
-
|
|
5208
|
+
Text11,
|
|
4898
5209
|
{
|
|
4899
5210
|
fontSize: "xs",
|
|
4900
5211
|
fontWeight: "bold",
|
|
@@ -4905,7 +5216,7 @@ function ReusableProfile({
|
|
|
4905
5216
|
}
|
|
4906
5217
|
),
|
|
4907
5218
|
/* @__PURE__ */ jsxs17(
|
|
4908
|
-
|
|
5219
|
+
Text11,
|
|
4909
5220
|
{
|
|
4910
5221
|
fontSize: "xs",
|
|
4911
5222
|
color: quickNavHrefs.length >= maxQuickNavItems ? "orange.500" : "gray.400",
|
|
@@ -4928,7 +5239,7 @@ function ReusableProfile({
|
|
|
4928
5239
|
borderWidth: "1px",
|
|
4929
5240
|
borderStyle: "dashed",
|
|
4930
5241
|
borderColor: "gray.200",
|
|
4931
|
-
children: /* @__PURE__ */ jsx20(
|
|
5242
|
+
children: /* @__PURE__ */ jsx20(Text11, { fontSize: "sm", color: "gray.400", children: "No items pinned \u2014 add from below" })
|
|
4932
5243
|
}
|
|
4933
5244
|
) : /* @__PURE__ */ jsx20(VStack9, { gap: 0, children: quickNavHrefs.map((href, idx) => {
|
|
4934
5245
|
const option = availableOptions.find((item) => item.key === href);
|
|
@@ -4968,9 +5279,9 @@ function ReusableProfile({
|
|
|
4968
5279
|
}
|
|
4969
5280
|
),
|
|
4970
5281
|
/* @__PURE__ */ jsxs17(Box16, { children: [
|
|
4971
|
-
/* @__PURE__ */ jsx20(
|
|
5282
|
+
/* @__PURE__ */ jsx20(Text11, { fontSize: "sm", fontWeight: "medium", children: option.title }),
|
|
4972
5283
|
isReplacing && /* @__PURE__ */ jsx20(
|
|
4973
|
-
|
|
5284
|
+
Text11,
|
|
4974
5285
|
{
|
|
4975
5286
|
fontSize: "xs",
|
|
4976
5287
|
color: "orange.500",
|
|
@@ -5035,16 +5346,16 @@ function ReusableProfile({
|
|
|
5035
5346
|
]
|
|
5036
5347
|
}
|
|
5037
5348
|
),
|
|
5038
|
-
!isLast && /* @__PURE__ */ jsx20(
|
|
5349
|
+
!isLast && /* @__PURE__ */ jsx20(Separator3, {})
|
|
5039
5350
|
] }, href);
|
|
5040
5351
|
}) })
|
|
5041
5352
|
] }),
|
|
5042
|
-
/* @__PURE__ */ jsx20(
|
|
5353
|
+
/* @__PURE__ */ jsx20(Separator3, { mx: 4, my: 1 }),
|
|
5043
5354
|
/* @__PURE__ */ jsxs17(Box16, { px: 4, pt: 4, pb: 10, children: [
|
|
5044
5355
|
/* @__PURE__ */ jsxs17(Flex10, { align: "center", justify: "space-between", mb: 3, children: [
|
|
5045
5356
|
replacingIdx !== null ? /* @__PURE__ */ jsxs17(Box16, { children: [
|
|
5046
5357
|
/* @__PURE__ */ jsx20(
|
|
5047
|
-
|
|
5358
|
+
Text11,
|
|
5048
5359
|
{
|
|
5049
5360
|
fontSize: "xs",
|
|
5050
5361
|
fontWeight: "bold",
|
|
@@ -5054,7 +5365,7 @@ function ReusableProfile({
|
|
|
5054
5365
|
children: "Select Replacement"
|
|
5055
5366
|
}
|
|
5056
5367
|
),
|
|
5057
|
-
/* @__PURE__ */ jsxs17(
|
|
5368
|
+
/* @__PURE__ */ jsxs17(Text11, { fontSize: "xs", color: "gray.500", mt: 0.5, children: [
|
|
5058
5369
|
'for "',
|
|
5059
5370
|
availableOptions.find(
|
|
5060
5371
|
(item) => item.key === quickNavHrefs[replacingIdx]
|
|
@@ -5062,7 +5373,7 @@ function ReusableProfile({
|
|
|
5062
5373
|
'"'
|
|
5063
5374
|
] })
|
|
5064
5375
|
] }) : /* @__PURE__ */ jsx20(
|
|
5065
|
-
|
|
5376
|
+
Text11,
|
|
5066
5377
|
{
|
|
5067
5378
|
fontSize: "xs",
|
|
5068
5379
|
fontWeight: "bold",
|
|
@@ -5083,7 +5394,7 @@ function ReusableProfile({
|
|
|
5083
5394
|
}
|
|
5084
5395
|
)
|
|
5085
5396
|
] }),
|
|
5086
|
-
unpinnedOptions.length === 0 ? /* @__PURE__ */ jsx20(
|
|
5397
|
+
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) => {
|
|
5087
5398
|
const ItemIcon = option.Icon;
|
|
5088
5399
|
const isLast = idx === unpinnedOptions.length - 1;
|
|
5089
5400
|
const isReplacingMode = replacingIdx !== null;
|
|
@@ -5108,7 +5419,7 @@ function ReusableProfile({
|
|
|
5108
5419
|
}
|
|
5109
5420
|
),
|
|
5110
5421
|
/* @__PURE__ */ jsx20(
|
|
5111
|
-
|
|
5422
|
+
Text11,
|
|
5112
5423
|
{
|
|
5113
5424
|
fontSize: "sm",
|
|
5114
5425
|
fontWeight: "medium",
|
|
@@ -5144,7 +5455,7 @@ function ReusableProfile({
|
|
|
5144
5455
|
}
|
|
5145
5456
|
)
|
|
5146
5457
|
] }),
|
|
5147
|
-
!isLast && /* @__PURE__ */ jsx20(
|
|
5458
|
+
!isLast && /* @__PURE__ */ jsx20(Separator3, {})
|
|
5148
5459
|
] }, option.key);
|
|
5149
5460
|
}) })
|
|
5150
5461
|
] })
|
|
@@ -5213,7 +5524,7 @@ function ReusableProfile({
|
|
|
5213
5524
|
children: /* @__PURE__ */ jsx20(LuUser, { size: 24 })
|
|
5214
5525
|
}
|
|
5215
5526
|
),
|
|
5216
|
-
/* @__PURE__ */ jsx20(
|
|
5527
|
+
/* @__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." })
|
|
5217
5528
|
]
|
|
5218
5529
|
}
|
|
5219
5530
|
)
|