@splpi/estore-shared-components 0.0.6 → 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.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
- const [month, day, year] = ocrData.birthDate.split("/").map((part) => part.trim());
362
- const formattedBirthDate = `${year}-${month.padStart(2, "0")}-${day.padStart(2, "0")}`;
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
- var row_item_default = RowItem;
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(row_item_default, { label: row.label, value: row.value }, row.label)) });
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: "lg" },
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, { mx: { base: 3, md: 0 }, children: [
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: 3,
2114
+ gap: STANDARD_SPACING.sm,
1973
2115
  align: "center",
1974
2116
  p: "8px",
1975
- borderRadius: "md",
2117
+ borderRadius: STANDARD_RADIUS.md,
1976
2118
  bg: "#ebf4fb",
1977
2119
  borderWidth: "1px",
1978
2120
  borderColor: "#1976d2",
1979
- color: "#0b3d2e",
2121
+ color: BRAND_COLORS.darkGreen,
1980
2122
  children: [
1981
- /* @__PURE__ */ jsx8(Box7, { as: icon, boxSize: "20px", color: "#1976d2", flexShrink: 0 }),
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(info_card_default, { children: "Sections below are expandable and collapsible. Use them to focus only on relevant details." }),
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 Body3, Small } from "st-peter-ui";
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(Body3, { 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." }),
2298
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "CHANGES TO THIS TERMS AND USE" }),
2299
- /* @__PURE__ */ jsx11(Body3, { 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." }),
2300
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "TRADEMARKS" }),
2301
- /* @__PURE__ */ jsx11(Body3, { children: "The trademarks, logos, and service marks displayed on this Website are the properties of the St. Peter Group. You are not permitted to use these items without prior written consent." }),
2302
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "INTELLECTUAL PROPERTY RIGHTS" }),
2303
- /* @__PURE__ */ jsx11(Body3, { children: "The St. Peter Group owns the intellectual property rights in the content made available on this Website, or has obtained permission from the proper owners to make such content available." }),
2304
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "LINKS TO OTHER SITES" }),
2305
- /* @__PURE__ */ jsx11(Body3, { children: "This website contains links to other websites for convenience only. St. Peter Group is not responsible for the content or availability of linked websites." }),
2306
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "RULES OF CONDUCT" }),
2307
- /* @__PURE__ */ jsx11(Body3, { 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." }),
2308
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "DISCLAIMER" }),
2309
- /* @__PURE__ */ jsx11(Body3, { children: "The Website is provided as is. St. Peter Group makes no warranties and is not liable for any damages, including loss of data, viruses, errors, or reliance on content." }),
2310
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "PRIVACY POLICY" }),
2311
- /* @__PURE__ */ jsx11(Body3, { children: "Please read our Privacy Policy." }),
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(Body3, { fontWeight: "semibold", mt: 4, children: "HOW TO CONTACT US" }),
2314
- /* @__PURE__ */ jsx11(Body3, { children: "If you have any concern regarding these Terms of Use, contact us:" }),
2315
- /* @__PURE__ */ jsx11(Body3, { mt: 2, fontWeight: "semibold", children: "For website concerns: ronagl@stpeter.com.ph" }),
2316
- /* @__PURE__ */ jsx11(Body3, { mt: 2, fontWeight: "semibold", children: "For data privacy concerns: joycemb@stpeter.com.ph" }),
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(Body3, { fontWeight: "semibold", mt: 4, children: "ARTICLE I. DEFINITION OF TERMS" }),
2325
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "ST. PETER" }),
2326
- /* @__PURE__ */ jsx11(Body3, { children: "ST. PETER LIFE PLAN, INC." }),
2327
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "PLANHOLDER" }),
2328
- /* @__PURE__ */ jsx11(Body3, { 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." }),
2329
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Contract" }),
2330
- /* @__PURE__ */ jsx11(Body3, { children: "Refers to the Life Plan Contract between ST. PETER and the PLANHOLDER providing the terms and conditions thereof." }),
2331
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Contract Price" }),
2332
- /* @__PURE__ */ jsx11(Body3, { 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." }),
2333
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Gross Contract Price" }),
2334
- /* @__PURE__ */ jsx11(Body3, { children: "Refers to the stipulated price of the Life Plan which includes handling fees and other charges." }),
2335
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Plan Installment" }),
2336
- /* @__PURE__ */ jsx11(Body3, { children: "Refers to the monthly, quarterly, semi-annual or annual installment amounts paid by the PLANHOLDER." }),
2337
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Paying Period" }),
2338
- /* @__PURE__ */ jsx11(Body3, { 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." }),
2339
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Due Date" }),
2340
- /* @__PURE__ */ jsx11(Body3, { children: "Refers to the date when the PLANHOLDER installment should be paid." }),
2341
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Beneficiary" }),
2342
- /* @__PURE__ */ jsx11(Body3, { children: "Refers to the person designated by the PLANHOLDER, in accordance with law, to receive the plan insurance proceeds and/or pre-need benefits in case of unrendered service." }),
2343
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Grace Period" }),
2344
- /* @__PURE__ */ jsx11(Body3, { 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." }),
2345
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Lapsed Plan" }),
2346
- /* @__PURE__ */ jsx11(Body3, { children: "Refers to a delinquent plan which has remained unpaid beyond the grace period. A Lapsed Plan has no force and effect." }),
2347
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Reinstatement" }),
2348
- /* @__PURE__ */ jsx11(Body3, { children: "Refers to the process of reactivating a lapsed plan." }),
2349
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Certificate of Full Payment" }),
2350
- /* @__PURE__ */ jsx11(Body3, { children: "Refers to ST. PETER duly signed certification stating that a plan has been fully paid." })
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(Body3, { 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." }),
2358
- /* @__PURE__ */ jsx11(Body3, { fontWeight: "semibold", mt: 4, children: "Our customer service charter reflects our commitment to:" }),
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(Body3, { mt: 4, fontWeight: "semibold", children: "OUR CUSTOMER SERVICE STANDARDS AND COMMITMENTS" })
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(row_item_default, { label: row.label, value: row.value }, row.label)) });
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
- return /* @__PURE__ */ jsx13(Box12, { minH: "100vh", children: /* @__PURE__ */ jsx13(Box12, { px: { base: 0, md: 8 }, pb: { base: 4, md: 8 }, children: /* @__PURE__ */ jsxs13(VStack6, { align: "stretch", gap: 3, children: [
2591
- /* @__PURE__ */ jsx13(
2592
- InfoCardAccordion,
2593
- {
2594
- icon: /* @__PURE__ */ jsx13(Icon3, { as: IoIosInformationCircleOutline2, boxSize: "18px" }),
2595
- title: "Order Summary",
2596
- subtitle: modeLabel(selectedPlan?.mode),
2597
- defaultOpen: true,
2598
- children: /* @__PURE__ */ jsx13(
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
- )
2617
- }
2618
- ),
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 }),
2619
2882
  /* @__PURE__ */ jsx13(
2620
- ApplicationAccordion,
2883
+ ReviewRows2,
2621
2884
  {
2622
- onEdit: onEdit ?? (() => {
2623
- }),
2624
- items: [
2625
- {
2626
- icon: FaRegUser2,
2627
- label: "Personal Info",
2628
- subtitle: "Identification and full name",
2629
- value: "personal",
2630
- page: /* @__PURE__ */ jsx13(
2631
- ReviewRows2,
2632
- {
2633
- rows: [
2634
- {
2635
- label: "Uploaded ID",
2636
- value: lifePlanApplication?.personalInfo.idType
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
- )
2759
- }
2885
+ rows: [
2886
+ { label: "Relationship", value: beneficiary.relationship },
2887
+ { label: "Date of Birth", value: beneficiary.dob },
2888
+ { label: "Address", value: beneficiary.address }
2760
2889
  ]
2761
2890
  }
2762
- ),
2763
- /* @__PURE__ */ jsx13(
2764
- InfoCardAccordion,
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,
2765
2897
  {
2766
- icon: /* @__PURE__ */ jsx13(Icon3, { as: FaRegUser2, boxSize: "18px" }),
2767
- title: "Beneficiaries",
2768
- subtitle: `${beneficiaries.length} listed`,
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 }),
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);
2915
+ }
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
- ReviewRows2,
2926
+ Badge,
2773
2927
  {
2774
- rows: [
2775
- {
2776
- label: "Relationship",
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
- ] }, `${beneficiary.name}-${index}`)) })
2791
- }
2792
- ),
2793
- /* @__PURE__ */ jsx13(
2794
- InfoCardAccordion,
2795
- {
2796
- icon: /* @__PURE__ */ jsx13(Icon3, { as: IoIosInformationCircleOutline2, boxSize: "18px" }),
2797
- title: "Agreements",
2798
- subtitle: `${acceptedCount}/${checkboxList.length} accepted`,
2799
- children: /* @__PURE__ */ jsx13(VStack6, { align: "stretch", gap: 3, children: checkboxList.map((item, index) => {
2800
- const isAccepted = acceptedAgreements[index];
2801
- return /* @__PURE__ */ jsx13(
2802
- Box12,
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
- role: "button",
2805
- tabIndex: 0,
2806
- p: 4,
2807
- borderWidth: "1px",
2808
- rounded: "xl",
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
- index
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
- Dialog2.Header,
2875
- {
2876
- px: { base: 4, md: 6 },
2877
- pt: { base: 5, md: 6 },
2878
- children: [
2879
- /* @__PURE__ */ jsx13(H3, { children: pendingCheck !== null ? pendingAgreement?.title || "Agreement" : "Agreement" }),
2880
- /* @__PURE__ */ jsx13(Text7, { fontSize: "sm", color: "gray.600", mt: 2, children: "Please read carefully. Confirm to accept this agreement." })
2881
- ]
2882
- }
2883
- ),
2884
- /* @__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(
2885
- Text7,
2886
- {
2887
- whiteSpace: "pre-wrap",
2888
- fontSize: "sm",
2889
- color: "gray.800",
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
 
@@ -3037,7 +3189,8 @@ var HorizontalStepper = ({
3037
3189
  overflow: "visible",
3038
3190
  pb: { base: "12px", md: "0px" },
3039
3191
  children: [
3040
- (title || description) && /* @__PURE__ */ jsxs14(Box13, { mb: 4, ref: formTopRef, 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: [
3041
3194
  title && /* @__PURE__ */ jsx15(
3042
3195
  Box13,
3043
3196
  {
@@ -3384,36 +3537,6 @@ import {
3384
3537
  } from "@chakra-ui/react";
3385
3538
  import { LuChevronRight as LuChevronRight2 } from "react-icons/lu";
3386
3539
  import Link from "next/link";
3387
-
3388
- // src/lib/theme/brand-colors.ts
3389
- var BRAND_COLORS = {
3390
- primaryGreen: "#109448",
3391
- darkGreen: "#006838",
3392
- softGreen: "#92DDBF",
3393
- pastelPeaGreen: "#ACD6A6",
3394
- seafoamGreen: "#92DDBF",
3395
- lightCyan: "#D3EDEE",
3396
- successBg: "#F0FDF4",
3397
- warningBg: "#FFF7ED",
3398
- warningText: "#F1592B",
3399
- warningBorder: "#F4845F",
3400
- errorBg: "#FEF2F2",
3401
- destructiveRed: "#BF1F2F",
3402
- errorRed: "#EF4444",
3403
- neutralText: "#22223B",
3404
- neutralBorder: "#E5E7EB",
3405
- mutedBg: "#F3F4F6",
3406
- subtleBg: "#F9FAFB",
3407
- white: "#FFFFFF",
3408
- black: "#000000",
3409
- grey: "#808080",
3410
- ashWhite: "#ECECEC",
3411
- gold: "#CBA135",
3412
- brightGold: "#FFD026",
3413
- paleGold: "#FFF48E"
3414
- };
3415
-
3416
- // src/Generic/BottomQuickActions.tsx
3417
3540
  import { jsx as jsx18, jsxs as jsxs15 } from "react/jsx-runtime";
3418
3541
  var SHEET_BG = BRAND_COLORS.white;
3419
3542
  var DRAG_COLOR = BRAND_COLORS.neutralBorder;
@@ -3917,7 +4040,7 @@ import {
3917
4040
  Button as Button4,
3918
4041
  Flex as Flex10,
3919
4042
  HStack as HStack6,
3920
- IconButton as IconButton2,
4043
+ IconButton as IconButton3,
3921
4044
  Input as Input4,
3922
4045
  InputGroup,
3923
4046
  Separator as Separator3,
@@ -4836,7 +4959,7 @@ function ReusableProfile({
4836
4959
  const editAccountContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4837
4960
  /* @__PURE__ */ jsx20(Box16, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
4838
4961
  /* @__PURE__ */ jsx20(
4839
- IconButton2,
4962
+ IconButton3,
4840
4963
  {
4841
4964
  size: "sm",
4842
4965
  variant: "ghost",
@@ -4909,7 +5032,7 @@ function ReusableProfile({
4909
5032
  const changePasswordContent = /* @__PURE__ */ jsxs17(Fragment4, { children: [
4910
5033
  /* @__PURE__ */ jsx20(Box16, { px: 4, pt: 4, pb: 3, borderBottomWidth: "1px", borderColor: "gray.200", children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
4911
5034
  /* @__PURE__ */ jsx20(
4912
- IconButton2,
5035
+ IconButton3,
4913
5036
  {
4914
5037
  size: "sm",
4915
5038
  variant: "ghost",
@@ -4928,7 +5051,7 @@ function ReusableProfile({
4928
5051
  InputGroup,
4929
5052
  {
4930
5053
  endElement: /* @__PURE__ */ jsx20(
4931
- IconButton2,
5054
+ IconButton3,
4932
5055
  {
4933
5056
  size: "xs",
4934
5057
  variant: "ghost",
@@ -4957,7 +5080,7 @@ function ReusableProfile({
4957
5080
  InputGroup,
4958
5081
  {
4959
5082
  endElement: /* @__PURE__ */ jsx20(
4960
- IconButton2,
5083
+ IconButton3,
4961
5084
  {
4962
5085
  size: "xs",
4963
5086
  variant: "ghost",
@@ -5000,7 +5123,7 @@ function ReusableProfile({
5000
5123
  InputGroup,
5001
5124
  {
5002
5125
  endElement: /* @__PURE__ */ jsx20(
5003
- IconButton2,
5126
+ IconButton3,
5004
5127
  {
5005
5128
  size: "xs",
5006
5129
  variant: "ghost",
@@ -5055,7 +5178,7 @@ function ReusableProfile({
5055
5178
  zIndex: 1,
5056
5179
  children: /* @__PURE__ */ jsxs17(Flex10, { align: "center", gap: 2, pr: 10, children: [
5057
5180
  /* @__PURE__ */ jsx20(
5058
- IconButton2,
5181
+ IconButton3,
5059
5182
  {
5060
5183
  size: "sm",
5061
5184
  variant: "ghost",
@@ -5170,7 +5293,7 @@ function ReusableProfile({
5170
5293
  ] }),
5171
5294
  /* @__PURE__ */ jsxs17(HStack6, { gap: 0.5, children: [
5172
5295
  /* @__PURE__ */ jsx20(
5173
- IconButton2,
5296
+ IconButton3,
5174
5297
  {
5175
5298
  size: "xs",
5176
5299
  variant: "ghost",
@@ -5182,7 +5305,7 @@ function ReusableProfile({
5182
5305
  }
5183
5306
  ),
5184
5307
  /* @__PURE__ */ jsx20(
5185
- IconButton2,
5308
+ IconButton3,
5186
5309
  {
5187
5310
  size: "xs",
5188
5311
  variant: "ghost",
@@ -5194,7 +5317,7 @@ function ReusableProfile({
5194
5317
  }
5195
5318
  ),
5196
5319
  /* @__PURE__ */ jsx20(
5197
- IconButton2,
5320
+ IconButton3,
5198
5321
  {
5199
5322
  size: "xs",
5200
5323
  variant: isReplacing ? "solid" : "ghost",
@@ -5207,7 +5330,7 @@ function ReusableProfile({
5207
5330
  }
5208
5331
  ),
5209
5332
  /* @__PURE__ */ jsx20(
5210
- IconButton2,
5333
+ IconButton3,
5211
5334
  {
5212
5335
  size: "xs",
5213
5336
  variant: "ghost",
@@ -5306,7 +5429,7 @@ function ReusableProfile({
5306
5429
  )
5307
5430
  ] }),
5308
5431
  isReplacingMode ? /* @__PURE__ */ jsx20(
5309
- IconButton2,
5432
+ IconButton3,
5310
5433
  {
5311
5434
  size: "xs",
5312
5435
  variant: "outline",
@@ -5318,7 +5441,7 @@ function ReusableProfile({
5318
5441
  children: /* @__PURE__ */ jsx20(LuArrowLeftRight, { size: 13 })
5319
5442
  }
5320
5443
  ) : /* @__PURE__ */ jsx20(
5321
- IconButton2,
5444
+ IconButton3,
5322
5445
  {
5323
5446
  size: "xs",
5324
5447
  variant: "outline",