@wealthx/shadcn 1.5.31 → 1.5.33
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/.turbo/turbo-build.log +101 -101
- package/CHANGELOG.md +12 -0
- package/dist/{chunk-SYJ6LVJ6.mjs → chunk-3ZU5BH6X.mjs} +1 -1
- package/dist/{chunk-FTQ2AKZ2.mjs → chunk-4QTHK7ML.mjs} +1 -1
- package/dist/{chunk-T5HU4S4X.mjs → chunk-C7ZTZTEW.mjs} +1 -1
- package/dist/{chunk-KI57CBJR.mjs → chunk-DQNNP6I4.mjs} +33 -24
- package/dist/{chunk-AE4JKISB.mjs → chunk-EEI4FLEE.mjs} +1 -1
- package/dist/{chunk-IEQX4UVP.mjs → chunk-EY36WDCF.mjs} +1 -1
- package/dist/{chunk-HB5BKRMH.mjs → chunk-F3CU6KEI.mjs} +11 -1
- package/dist/chunk-H65NB7KI.mjs +182 -0
- package/dist/{chunk-TRM3KIHT.mjs → chunk-ICCPK3J2.mjs} +1 -1
- package/dist/{chunk-KGVVK6OS.mjs → chunk-ORMC3TV3.mjs} +3 -1
- package/dist/{chunk-HSXMTFIM.mjs → chunk-UD5UF5OC.mjs} +1 -1
- package/dist/{chunk-IW33VLL5.mjs → chunk-X3VEDQPO.mjs} +7 -3
- package/dist/{chunk-AAZSLTER.mjs → chunk-XGRSPFFC.mjs} +16 -7
- package/dist/components/ui/about-you-form.js +9 -6
- package/dist/components/ui/about-you-form.mjs +2 -2
- package/dist/components/ui/ai-conversations/index.js +4 -1
- package/dist/components/ui/ai-conversations/index.mjs +2 -2
- package/dist/components/ui/appointment-availability-settings.js +24 -12
- package/dist/components/ui/appointment-availability-settings.mjs +3 -3
- package/dist/components/ui/appointment-book-dialog.js +33 -24
- package/dist/components/ui/appointment-book-dialog.mjs +1 -1
- package/dist/components/ui/appointment-detail-sheet.js +3 -1
- package/dist/components/ui/appointment-detail-sheet.mjs +1 -1
- package/dist/components/ui/appointment-gmail-connect.js +127 -70
- package/dist/components/ui/appointment-gmail-connect.mjs +1 -1
- package/dist/components/ui/backoffice-signup-steps.js +23 -16
- package/dist/components/ui/backoffice-signup-steps.mjs +3 -3
- package/dist/components/ui/bank-statement-generate-dialog.js +12 -9
- package/dist/components/ui/bank-statement-generate-dialog.mjs +3 -3
- package/dist/components/ui/color-picker.js +21 -14
- package/dist/components/ui/color-picker.mjs +2 -2
- package/dist/components/ui/date-picker.js +6 -3
- package/dist/components/ui/date-picker.mjs +2 -2
- package/dist/components/ui/opportunity-edit-modals.js +45 -42
- package/dist/components/ui/opportunity-edit-modals.mjs +3 -3
- package/dist/components/ui/opportunity-summary-tab.js +48 -45
- package/dist/components/ui/opportunity-summary-tab.mjs +4 -4
- package/dist/components/ui/pipeline-dialogs.js +12 -9
- package/dist/components/ui/pipeline-dialogs.mjs +3 -3
- package/dist/components/ui/popover.js +22 -1
- package/dist/components/ui/popover.mjs +3 -1
- package/dist/components/ui/savings-goal-modal.js +11 -8
- package/dist/components/ui/savings-goal-modal.mjs +2 -2
- package/dist/index.js +349 -257
- package/dist/index.mjs +15 -13
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/index.tsx +4 -0
- package/src/components/ui/appointment-availability-settings.tsx +32 -19
- package/src/components/ui/appointment-book-dialog.tsx +52 -73
- package/src/components/ui/appointment-detail-sheet.tsx +3 -1
- package/src/components/ui/appointment-gmail-connect.tsx +89 -29
- package/src/components/ui/color-picker.tsx +12 -4
- package/src/components/ui/popover.tsx +33 -2
- package/src/styles/styles-css.ts +1 -1
- package/dist/chunk-7TMPOZDE.mjs +0 -122
|
@@ -67,7 +67,7 @@ __export(color_picker_exports, {
|
|
|
67
67
|
normalizeHex: () => normalizeHex
|
|
68
68
|
});
|
|
69
69
|
module.exports = __toCommonJS(color_picker_exports);
|
|
70
|
-
var
|
|
70
|
+
var React4 = __toESM(require("react"));
|
|
71
71
|
|
|
72
72
|
// src/lib/utils.ts
|
|
73
73
|
var import_clsx = require("clsx");
|
|
@@ -109,6 +109,7 @@ function cn(...inputs) {
|
|
|
109
109
|
}
|
|
110
110
|
|
|
111
111
|
// src/components/ui/popover.tsx
|
|
112
|
+
var React2 = __toESM(require("react"));
|
|
112
113
|
var import_popover = require("@base-ui/react/popover");
|
|
113
114
|
|
|
114
115
|
// src/lib/theme-provider.tsx
|
|
@@ -121,6 +122,7 @@ function useThemeVars() {
|
|
|
121
122
|
|
|
122
123
|
// src/components/ui/popover.tsx
|
|
123
124
|
var import_jsx_runtime2 = require("react/jsx-runtime");
|
|
125
|
+
var PopoverPortalContext = React2.createContext(void 0);
|
|
124
126
|
function Popover(_a) {
|
|
125
127
|
var props = __objRest(_a, []);
|
|
126
128
|
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
@@ -142,7 +144,8 @@ function PopoverContent(_a) {
|
|
|
142
144
|
"style"
|
|
143
145
|
]);
|
|
144
146
|
const themeVars = useThemeVars();
|
|
145
|
-
|
|
147
|
+
const portalContainer = React2.useContext(PopoverPortalContext);
|
|
148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_popover.Popover.Portal, { container: portalContainer != null ? portalContainer : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
|
|
146
149
|
import_popover.Popover.Positioner,
|
|
147
150
|
{
|
|
148
151
|
className: "z-[200]",
|
|
@@ -188,7 +191,7 @@ var import_class_variance_authority = require("class-variance-authority");
|
|
|
188
191
|
var import_lucide_react = require("lucide-react");
|
|
189
192
|
|
|
190
193
|
// src/lib/slot.tsx
|
|
191
|
-
var
|
|
194
|
+
var React3 = __toESM(require("react"));
|
|
192
195
|
function mergeRefs(...refs) {
|
|
193
196
|
return (value) => {
|
|
194
197
|
for (const ref of refs) {
|
|
@@ -198,11 +201,11 @@ function mergeRefs(...refs) {
|
|
|
198
201
|
}
|
|
199
202
|
};
|
|
200
203
|
}
|
|
201
|
-
var Slot =
|
|
204
|
+
var Slot = React3.forwardRef(
|
|
202
205
|
(_a, forwardedRef) => {
|
|
203
206
|
var _b = _a, { children } = _b, props = __objRest(_b, ["children"]);
|
|
204
|
-
const child =
|
|
205
|
-
if (!
|
|
207
|
+
const child = React3.Children.only(children);
|
|
208
|
+
if (!React3.isValidElement(child)) return null;
|
|
206
209
|
const childProps = child.props;
|
|
207
210
|
const merged = __spreadValues({}, props);
|
|
208
211
|
for (const key of Object.keys(childProps)) {
|
|
@@ -226,7 +229,7 @@ var Slot = React2.forwardRef(
|
|
|
226
229
|
}
|
|
227
230
|
const childRef = child.ref;
|
|
228
231
|
merged.ref = forwardedRef ? mergeRefs(forwardedRef, childRef) : childRef;
|
|
229
|
-
return
|
|
232
|
+
return React3.cloneElement(
|
|
230
233
|
child,
|
|
231
234
|
merged
|
|
232
235
|
);
|
|
@@ -386,15 +389,19 @@ function ColorPickerContent({
|
|
|
386
389
|
onChange,
|
|
387
390
|
presets = COLOR_PICKER_PRESETS
|
|
388
391
|
}) {
|
|
389
|
-
const [hexInput, setHexInput] =
|
|
390
|
-
|
|
391
|
-
|
|
392
|
+
const [hexInput, setHexInput] = React4.useState(value);
|
|
393
|
+
const hexInputRef = React4.useRef(hexInput);
|
|
394
|
+
hexInputRef.current = hexInput;
|
|
395
|
+
React4.useEffect(() => {
|
|
396
|
+
if (value !== hexInputRef.current) {
|
|
397
|
+
setHexInput(value);
|
|
398
|
+
}
|
|
392
399
|
}, [value]);
|
|
393
400
|
function handleHexInputChange(e) {
|
|
394
401
|
const raw = e.target.value;
|
|
395
402
|
setHexInput(raw);
|
|
396
403
|
const normalized = normalizeHex(raw);
|
|
397
|
-
if (
|
|
404
|
+
if (/^#[0-9A-Fa-f]{6}$/.test(normalized)) {
|
|
398
405
|
onChange(normalized);
|
|
399
406
|
}
|
|
400
407
|
}
|
|
@@ -474,10 +481,10 @@ function ColorPicker({
|
|
|
474
481
|
className
|
|
475
482
|
}) {
|
|
476
483
|
const isControlled = controlledValue !== void 0;
|
|
477
|
-
const [internalValue, setInternalValue] =
|
|
484
|
+
const [internalValue, setInternalValue] = React4.useState(defaultValue);
|
|
478
485
|
const color = isControlled ? controlledValue : internalValue;
|
|
479
|
-
const [open, setOpen] =
|
|
480
|
-
|
|
486
|
+
const [open, setOpen] = React4.useState(false);
|
|
487
|
+
React4.useEffect(() => {
|
|
481
488
|
if (disabled) setOpen(false);
|
|
482
489
|
}, [disabled]);
|
|
483
490
|
function handleChange(newColor) {
|
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
ColorSwatch,
|
|
6
6
|
isValidHex,
|
|
7
7
|
normalizeHex
|
|
8
|
-
} from "../../chunk-
|
|
9
|
-
import "../../chunk-
|
|
8
|
+
} from "../../chunk-X3VEDQPO.mjs";
|
|
9
|
+
import "../../chunk-F3CU6KEI.mjs";
|
|
10
10
|
import "../../chunk-LBTHZSBT.mjs";
|
|
11
11
|
import "../../chunk-XYSRRDBH.mjs";
|
|
12
12
|
import "../../chunk-FRCTOAKZ.mjs";
|
|
@@ -62,7 +62,7 @@ __export(date_picker_exports, {
|
|
|
62
62
|
DatePicker: () => DatePicker
|
|
63
63
|
});
|
|
64
64
|
module.exports = __toCommonJS(date_picker_exports);
|
|
65
|
-
var
|
|
65
|
+
var React5 = __toESM(require("react"));
|
|
66
66
|
var import_date_fns2 = require("date-fns");
|
|
67
67
|
var import_lucide_react3 = require("lucide-react");
|
|
68
68
|
|
|
@@ -467,6 +467,7 @@ function CalendarDayButton(_a) {
|
|
|
467
467
|
}
|
|
468
468
|
|
|
469
469
|
// src/components/ui/popover.tsx
|
|
470
|
+
var React4 = __toESM(require("react"));
|
|
470
471
|
var import_popover = require("@base-ui/react/popover");
|
|
471
472
|
|
|
472
473
|
// src/lib/theme-provider.tsx
|
|
@@ -479,6 +480,7 @@ function useThemeVars() {
|
|
|
479
480
|
|
|
480
481
|
// src/components/ui/popover.tsx
|
|
481
482
|
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
483
|
+
var PopoverPortalContext = React4.createContext(void 0);
|
|
482
484
|
function Popover(_a) {
|
|
483
485
|
var props = __objRest(_a, []);
|
|
484
486
|
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_popover.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
@@ -500,7 +502,8 @@ function PopoverContent(_a) {
|
|
|
500
502
|
"style"
|
|
501
503
|
]);
|
|
502
504
|
const themeVars = useThemeVars();
|
|
503
|
-
|
|
505
|
+
const portalContainer = React4.useContext(PopoverPortalContext);
|
|
506
|
+
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_popover.Popover.Portal, { container: portalContainer != null ? portalContainer : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
504
507
|
import_popover.Popover.Positioner,
|
|
505
508
|
{
|
|
506
509
|
className: "z-[200]",
|
|
@@ -532,7 +535,7 @@ function DatePicker({
|
|
|
532
535
|
className,
|
|
533
536
|
calendarProps
|
|
534
537
|
}) {
|
|
535
|
-
const [open, setOpen] =
|
|
538
|
+
const [open, setOpen] = React5.useState(false);
|
|
536
539
|
function handleDaySelect(day) {
|
|
537
540
|
if (!day) {
|
|
538
541
|
onChange == null ? void 0 : onChange(void 0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DatePicker
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
3
|
+
} from "../../chunk-ICCPK3J2.mjs";
|
|
4
|
+
import "../../chunk-F3CU6KEI.mjs";
|
|
5
5
|
import "../../chunk-FBNEIYSE.mjs";
|
|
6
6
|
import "../../chunk-LHWJQNLG.mjs";
|
|
7
7
|
import "../../chunk-LBTHZSBT.mjs";
|
|
@@ -67,7 +67,7 @@ __export(opportunity_edit_modals_exports, {
|
|
|
67
67
|
EditLoanScenarioModal: () => EditLoanScenarioModal
|
|
68
68
|
});
|
|
69
69
|
module.exports = __toCommonJS(opportunity_edit_modals_exports);
|
|
70
|
-
var
|
|
70
|
+
var React10 = __toESM(require("react"));
|
|
71
71
|
var import_lucide_react10 = require("lucide-react");
|
|
72
72
|
|
|
73
73
|
// src/lib/utils.ts
|
|
@@ -718,7 +718,7 @@ function Checkbox(_a) {
|
|
|
718
718
|
}
|
|
719
719
|
|
|
720
720
|
// src/components/ui/date-picker.tsx
|
|
721
|
-
var
|
|
721
|
+
var React6 = __toESM(require("react"));
|
|
722
722
|
var import_date_fns2 = require("date-fns");
|
|
723
723
|
var import_lucide_react7 = require("lucide-react");
|
|
724
724
|
|
|
@@ -939,8 +939,10 @@ function CalendarDayButton(_a) {
|
|
|
939
939
|
}
|
|
940
940
|
|
|
941
941
|
// src/components/ui/popover.tsx
|
|
942
|
+
var React5 = __toESM(require("react"));
|
|
942
943
|
var import_popover = require("@base-ui/react/popover");
|
|
943
944
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
945
|
+
var PopoverPortalContext = React5.createContext(void 0);
|
|
944
946
|
function Popover(_a) {
|
|
945
947
|
var props = __objRest(_a, []);
|
|
946
948
|
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_popover.Popover.Root, __spreadValues({ "data-slot": "popover" }, props));
|
|
@@ -962,7 +964,8 @@ function PopoverContent(_a) {
|
|
|
962
964
|
"style"
|
|
963
965
|
]);
|
|
964
966
|
const themeVars = useThemeVars();
|
|
965
|
-
|
|
967
|
+
const portalContainer = React5.useContext(PopoverPortalContext);
|
|
968
|
+
return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_popover.Popover.Portal, { container: portalContainer != null ? portalContainer : void 0, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
|
|
966
969
|
import_popover.Popover.Positioner,
|
|
967
970
|
{
|
|
968
971
|
className: "z-[200]",
|
|
@@ -994,7 +997,7 @@ function DatePicker({
|
|
|
994
997
|
className,
|
|
995
998
|
calendarProps
|
|
996
999
|
}) {
|
|
997
|
-
const [open, setOpen] =
|
|
1000
|
+
const [open, setOpen] = React6.useState(false);
|
|
998
1001
|
function handleDaySelect(day) {
|
|
999
1002
|
if (!day) {
|
|
1000
1003
|
onChange == null ? void 0 : onChange(void 0);
|
|
@@ -1083,10 +1086,10 @@ function DatePicker({
|
|
|
1083
1086
|
}
|
|
1084
1087
|
|
|
1085
1088
|
// src/components/ui/slider.tsx
|
|
1086
|
-
var
|
|
1089
|
+
var React7 = __toESM(require("react"));
|
|
1087
1090
|
var import_slider = require("@base-ui/react/slider");
|
|
1088
1091
|
var import_jsx_runtime13 = require("react/jsx-runtime");
|
|
1089
|
-
var Slider =
|
|
1092
|
+
var Slider = React7.forwardRef(
|
|
1090
1093
|
({
|
|
1091
1094
|
className,
|
|
1092
1095
|
value,
|
|
@@ -1209,11 +1212,11 @@ function RadioGroupItem(_a) {
|
|
|
1209
1212
|
}
|
|
1210
1213
|
|
|
1211
1214
|
// src/components/ui/form-primitives.tsx
|
|
1212
|
-
var
|
|
1215
|
+
var React9 = __toESM(require("react"));
|
|
1213
1216
|
var import_lucide_react9 = require("lucide-react");
|
|
1214
1217
|
|
|
1215
1218
|
// src/components/ui/toggle-group.tsx
|
|
1216
|
-
var
|
|
1219
|
+
var React8 = __toESM(require("react"));
|
|
1217
1220
|
var import_toggle_group = require("@base-ui/react/toggle-group");
|
|
1218
1221
|
var import_toggle2 = require("@base-ui/react/toggle");
|
|
1219
1222
|
|
|
@@ -1244,7 +1247,7 @@ var toggleVariants = (0, import_class_variance_authority2.cva)(
|
|
|
1244
1247
|
|
|
1245
1248
|
// src/components/ui/toggle-group.tsx
|
|
1246
1249
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
1247
|
-
var ToggleGroupContext =
|
|
1250
|
+
var ToggleGroupContext = React8.createContext({
|
|
1248
1251
|
size: "default",
|
|
1249
1252
|
variant: "default",
|
|
1250
1253
|
spacing: 0
|
|
@@ -1296,7 +1299,7 @@ function ToggleGroupItem(_a) {
|
|
|
1296
1299
|
"variant",
|
|
1297
1300
|
"size"
|
|
1298
1301
|
]);
|
|
1299
|
-
const context =
|
|
1302
|
+
const context = React8.useContext(ToggleGroupContext);
|
|
1300
1303
|
return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
|
|
1301
1304
|
import_toggle2.Toggle,
|
|
1302
1305
|
__spreadProps(__spreadValues({
|
|
@@ -1340,13 +1343,13 @@ function CurrencyInputWithSlider({
|
|
|
1340
1343
|
onValueChange,
|
|
1341
1344
|
className
|
|
1342
1345
|
}) {
|
|
1343
|
-
const [internalValue, setInternalValue] =
|
|
1346
|
+
const [internalValue, setInternalValue] = React9.useState(defaultValue);
|
|
1344
1347
|
const numericValue = controlledValue !== void 0 ? controlledValue : internalValue;
|
|
1345
|
-
const [inputText, setInputText] =
|
|
1348
|
+
const [inputText, setInputText] = React9.useState(
|
|
1346
1349
|
formatNumberToCurrency(numericValue)
|
|
1347
1350
|
);
|
|
1348
|
-
const [isFocused, setIsFocused] =
|
|
1349
|
-
|
|
1351
|
+
const [isFocused, setIsFocused] = React9.useState(false);
|
|
1352
|
+
React9.useEffect(() => {
|
|
1350
1353
|
if (!isFocused) {
|
|
1351
1354
|
setInputText(formatNumberToCurrency(numericValue));
|
|
1352
1355
|
}
|
|
@@ -1444,13 +1447,13 @@ function AddressAutocomplete({
|
|
|
1444
1447
|
onSelect,
|
|
1445
1448
|
className
|
|
1446
1449
|
}) {
|
|
1447
|
-
const [internalValue, setInternalValue] =
|
|
1450
|
+
const [internalValue, setInternalValue] = React9.useState("");
|
|
1448
1451
|
const inputValue = controlledValue !== void 0 ? controlledValue : internalValue;
|
|
1449
|
-
const [open, setOpen] =
|
|
1450
|
-
const [activeIndex, setActiveIndex] =
|
|
1451
|
-
const containerRef =
|
|
1452
|
-
const listRef =
|
|
1453
|
-
const filtered =
|
|
1452
|
+
const [open, setOpen] = React9.useState(false);
|
|
1453
|
+
const [activeIndex, setActiveIndex] = React9.useState(-1);
|
|
1454
|
+
const containerRef = React9.useRef(null);
|
|
1455
|
+
const listRef = React9.useRef(null);
|
|
1456
|
+
const filtered = React9.useMemo(() => {
|
|
1454
1457
|
if (!inputValue.trim()) return suggestions.slice(0, 5);
|
|
1455
1458
|
const q = inputValue.toLowerCase();
|
|
1456
1459
|
return suggestions.filter((s) => s.label.toLowerCase().includes(q)).slice(0, 5);
|
|
@@ -1480,7 +1483,7 @@ function AddressAutocomplete({
|
|
|
1480
1483
|
setOpen(false);
|
|
1481
1484
|
}
|
|
1482
1485
|
};
|
|
1483
|
-
|
|
1486
|
+
React9.useEffect(() => {
|
|
1484
1487
|
const handler = (e) => {
|
|
1485
1488
|
if (containerRef.current && !containerRef.current.contains(e.target)) {
|
|
1486
1489
|
setOpen(false);
|
|
@@ -1557,7 +1560,7 @@ function OwnershipSplit({
|
|
|
1557
1560
|
onOwnersChange,
|
|
1558
1561
|
className
|
|
1559
1562
|
}) {
|
|
1560
|
-
const [internalOwners, setInternalOwners] =
|
|
1563
|
+
const [internalOwners, setInternalOwners] = React9.useState(DEFAULT_OWNERS);
|
|
1561
1564
|
const owners = controlledOwners !== void 0 ? controlledOwners : internalOwners;
|
|
1562
1565
|
const setOwners = (updated) => {
|
|
1563
1566
|
if (controlledOwners === void 0) setInternalOwners(updated);
|
|
@@ -1962,9 +1965,9 @@ function EditLoanScenarioModal({
|
|
|
1962
1965
|
container,
|
|
1963
1966
|
className
|
|
1964
1967
|
}) {
|
|
1965
|
-
const [form, setForm] =
|
|
1966
|
-
const initialSnapshot =
|
|
1967
|
-
|
|
1968
|
+
const [form, setForm] = React10.useState(__spreadValues(__spreadValues({}, LOAN_SCENARIO_DEFAULTS), initialData));
|
|
1969
|
+
const initialSnapshot = React10.useRef("");
|
|
1970
|
+
React10.useEffect(() => {
|
|
1968
1971
|
if (open) {
|
|
1969
1972
|
const data = __spreadValues(__spreadValues({}, LOAN_SCENARIO_DEFAULTS), initialData);
|
|
1970
1973
|
setForm(data);
|
|
@@ -2224,11 +2227,11 @@ function EditAssetsModal({
|
|
|
2224
2227
|
container,
|
|
2225
2228
|
className
|
|
2226
2229
|
}) {
|
|
2227
|
-
const [items, setItems] =
|
|
2230
|
+
const [items, setItems] = React10.useState(
|
|
2228
2231
|
initialItems.length > 0 ? initialItems : [makeDefaultAssetItem()]
|
|
2229
2232
|
);
|
|
2230
|
-
const initialSnapshot =
|
|
2231
|
-
|
|
2233
|
+
const initialSnapshot = React10.useRef("");
|
|
2234
|
+
React10.useEffect(() => {
|
|
2232
2235
|
if (open) {
|
|
2233
2236
|
const data = initialItems.length > 0 ? initialItems : [makeDefaultAssetItem()];
|
|
2234
2237
|
setItems(data);
|
|
@@ -2521,11 +2524,11 @@ function EditDebtsModal({
|
|
|
2521
2524
|
container,
|
|
2522
2525
|
className
|
|
2523
2526
|
}) {
|
|
2524
|
-
const [items, setItems] =
|
|
2527
|
+
const [items, setItems] = React10.useState(
|
|
2525
2528
|
initialItems.length > 0 ? initialItems : [makeDefaultDebtItem()]
|
|
2526
2529
|
);
|
|
2527
|
-
const initialSnapshot =
|
|
2528
|
-
|
|
2530
|
+
const initialSnapshot = React10.useRef("");
|
|
2531
|
+
React10.useEffect(() => {
|
|
2529
2532
|
if (open) {
|
|
2530
2533
|
const data = initialItems.length > 0 ? initialItems : [makeDefaultDebtItem()];
|
|
2531
2534
|
setItems(data);
|
|
@@ -2847,9 +2850,9 @@ function EditAboutApplicantModal({
|
|
|
2847
2850
|
container,
|
|
2848
2851
|
className
|
|
2849
2852
|
}) {
|
|
2850
|
-
const [form, setForm] =
|
|
2851
|
-
const initialSnapshot =
|
|
2852
|
-
|
|
2853
|
+
const [form, setForm] = React10.useState(__spreadValues(__spreadValues({}, ABOUT_APPLICANT_DEFAULTS), initialData));
|
|
2854
|
+
const initialSnapshot = React10.useRef("");
|
|
2855
|
+
React10.useEffect(() => {
|
|
2853
2856
|
if (open) {
|
|
2854
2857
|
const data = __spreadValues(__spreadValues({}, ABOUT_APPLICANT_DEFAULTS), initialData);
|
|
2855
2858
|
setForm(data);
|
|
@@ -3121,7 +3124,7 @@ function EditIncomeModal({
|
|
|
3121
3124
|
container,
|
|
3122
3125
|
className
|
|
3123
3126
|
}) {
|
|
3124
|
-
const defaultItems =
|
|
3127
|
+
const defaultItems = React10.useMemo(
|
|
3125
3128
|
() => {
|
|
3126
3129
|
var _a;
|
|
3127
3130
|
return ((_a = initialData == null ? void 0 : initialData.items) == null ? void 0 : _a.length) ? initialData.items : [makeDefaultIncomeItem()];
|
|
@@ -3129,9 +3132,9 @@ function EditIncomeModal({
|
|
|
3129
3132
|
[]
|
|
3130
3133
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
3131
3134
|
);
|
|
3132
|
-
const [items, setItems] =
|
|
3133
|
-
const initialSnapshot =
|
|
3134
|
-
|
|
3135
|
+
const [items, setItems] = React10.useState(defaultItems);
|
|
3136
|
+
const initialSnapshot = React10.useRef("");
|
|
3137
|
+
React10.useEffect(() => {
|
|
3135
3138
|
var _a;
|
|
3136
3139
|
if (open) {
|
|
3137
3140
|
const data = ((_a = initialData == null ? void 0 : initialData.items) == null ? void 0 : _a.length) ? initialData.items : [makeDefaultIncomeItem()];
|
|
@@ -3348,7 +3351,7 @@ function EditExpensesModal({
|
|
|
3348
3351
|
container,
|
|
3349
3352
|
className
|
|
3350
3353
|
}) {
|
|
3351
|
-
const defaultItems =
|
|
3354
|
+
const defaultItems = React10.useMemo(
|
|
3352
3355
|
() => {
|
|
3353
3356
|
var _a;
|
|
3354
3357
|
return ((_a = initialData == null ? void 0 : initialData.items) == null ? void 0 : _a.length) ? initialData.items : [makeDefaultExpenseItem()];
|
|
@@ -3356,9 +3359,9 @@ function EditExpensesModal({
|
|
|
3356
3359
|
[]
|
|
3357
3360
|
// eslint-disable-line react-hooks/exhaustive-deps
|
|
3358
3361
|
);
|
|
3359
|
-
const [items, setItems] =
|
|
3360
|
-
const initialSnapshot =
|
|
3361
|
-
|
|
3362
|
+
const [items, setItems] = React10.useState(defaultItems);
|
|
3363
|
+
const initialSnapshot = React10.useRef("");
|
|
3364
|
+
React10.useEffect(() => {
|
|
3362
3365
|
var _a;
|
|
3363
3366
|
if (open) {
|
|
3364
3367
|
const data = ((_a = initialData == null ? void 0 : initialData.items) == null ? void 0 : _a.length) ? initialData.items : [makeDefaultExpenseItem()];
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
EditExpensesModal,
|
|
6
6
|
EditIncomeModal,
|
|
7
7
|
EditLoanScenarioModal
|
|
8
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-UD5UF5OC.mjs";
|
|
9
9
|
import "../../chunk-JTK6VJXY.mjs";
|
|
10
10
|
import "../../chunk-LDC6V6DJ.mjs";
|
|
11
11
|
import "../../chunk-ISUA7DSB.mjs";
|
|
@@ -13,8 +13,8 @@ import "../../chunk-IKXYTCSB.mjs";
|
|
|
13
13
|
import "../../chunk-K6VCC2MK.mjs";
|
|
14
14
|
import "../../chunk-T5FRVEJQ.mjs";
|
|
15
15
|
import "../../chunk-BS75ICOO.mjs";
|
|
16
|
-
import "../../chunk-
|
|
17
|
-
import "../../chunk-
|
|
16
|
+
import "../../chunk-ICCPK3J2.mjs";
|
|
17
|
+
import "../../chunk-F3CU6KEI.mjs";
|
|
18
18
|
import "../../chunk-OWFQSXVD.mjs";
|
|
19
19
|
import "../../chunk-6QAFGZC2.mjs";
|
|
20
20
|
import "../../chunk-FBNEIYSE.mjs";
|