gsintegrations 0.0.489 → 0.0.491
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/bundle.cjs.js +138 -156
- package/dist/bundle.cjs.js.map +2 -2
- package/dist/bundle.esm.js +138 -156
- package/dist/bundle.esm.js.map +2 -2
- package/dist/index.d.ts +4 -0
- package/dist/types/pages/FinancialAccountsList/FinancialAccountsList.d.ts +1 -0
- package/dist/types/pages/FinancialAccountsList/FinancialAccountsList.types.d.ts +3 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -90654,9 +90654,11 @@ const CompactListRow = ({ title, meta, leading, trailing, onClick, isLast = fals
|
|
|
90654
90654
|
px: 1.5,
|
|
90655
90655
|
minHeight: 64,
|
|
90656
90656
|
cursor: interactive ? "pointer" : "default",
|
|
90657
|
-
|
|
90658
|
-
|
|
90659
|
-
|
|
90657
|
+
borderTop: 0,
|
|
90658
|
+
borderRight: 0,
|
|
90659
|
+
borderLeft: 0,
|
|
90660
|
+
borderBottom: isLast ? 0 : 1,
|
|
90661
|
+
borderBottomColor: "divider",
|
|
90660
90662
|
bgcolor: "transparent",
|
|
90661
90663
|
"&:focus-visible": {
|
|
90662
90664
|
outline: (theme) => `2px solid ${theme.palette.primary.main}`,
|
|
@@ -135130,19 +135132,17 @@ const ActivityCard = ({ activity, isLast, isPersonalProfile = false, onSelect, o
|
|
|
135130
135132
|
const dateTime = formatActivityDateTime(activity);
|
|
135131
135133
|
const configuredCheckinWindow = getConfiguredCheckinWindow$1(activity);
|
|
135132
135134
|
// ...existing code...
|
|
135133
|
-
return (React$1.createElement(Card$1, { key: activity.id, sx: {
|
|
135135
|
+
return (React$1.createElement(Card$1, { key: activity.id, elevation: 0, sx: {
|
|
135134
135136
|
cursor: "pointer",
|
|
135135
|
-
borderRadius:
|
|
135136
|
-
boxShadow: "
|
|
135137
|
-
transition: theme.transitions.create(["box-shadow", "transform"], {
|
|
135138
|
-
duration: theme.transitions.duration.short,
|
|
135139
|
-
}),
|
|
135137
|
+
borderRadius: 0,
|
|
135138
|
+
boxShadow: "none",
|
|
135140
135139
|
"&:hover": {
|
|
135141
135140
|
backgroundColor: theme.palette.action.hover,
|
|
135142
|
-
boxShadow: "0 4px 12px rgba(0,0,0,0.15)",
|
|
135143
|
-
transform: "translateY(-2px)",
|
|
135144
135141
|
},
|
|
135145
135142
|
mb: 0,
|
|
135143
|
+
borderTop: "none",
|
|
135144
|
+
borderLeft: "none",
|
|
135145
|
+
borderRight: "none",
|
|
135146
135146
|
borderBottom: !isLast ? `1px solid ${theme.palette.divider}` : "none",
|
|
135147
135147
|
}, onClick: () => onSelect(activity.id) },
|
|
135148
135148
|
React$1.createElement(CardContent$1, { sx: LIST_CARD_CONTENT_SX },
|
|
@@ -135360,8 +135360,10 @@ const ActivityListPage = (props) => {
|
|
|
135360
135360
|
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mb: SECTION_GAP } }, "Toque no bot\u00E3o + para criar uma nova atividade"),
|
|
135361
135361
|
React$1.createElement(QuotaGuard, { feature: "activities", behavior: "disable" },
|
|
135362
135362
|
React$1.createElement(Button$1, { variant: "contained", startIcon: React$1.createElement(Add$1, null), onClick: fns.handleActivityAdd }, "Criar atividade")))))) : (isMobile ? (React$1.createElement(Box$1, { sx: {
|
|
135363
|
-
bgcolor: "
|
|
135364
|
-
borderRadius:
|
|
135363
|
+
bgcolor: "transparent",
|
|
135364
|
+
borderRadius: 0,
|
|
135365
|
+
border: "none",
|
|
135366
|
+
boxShadow: "none",
|
|
135365
135367
|
overflow: "hidden",
|
|
135366
135368
|
} }, data.activities.map((activity, index) => (React$1.createElement(ActivityCompactRow, { key: activity.id, activity: activity, isLast: index === data.activities.length - 1, isPersonalProfile: props.isPersonalProfile, onSelect: fns.handleActivitySelect, onEdit: props.onActivityEdit ? fns.handleActivityEdit : undefined }))))) : (React$1.createElement(Stack$1, { spacing: LIST_GAP }, data.activities.map((activity, index) => (React$1.createElement(ActivityCard, { key: activity.id, activity: activity, isLast: index === data.activities.length - 1, isPersonalProfile: props.isPersonalProfile, onSelect: fns.handleActivitySelect, onEdit: fns.handleActivityEdit, theme: theme, getStatusLabel: data.getStatusLabel }))))))),
|
|
135367
135369
|
React$1.createElement(Menu$2, { anchorEl: filterAnchorEl, open: Boolean(filterAnchorEl), onClose: handleFilterClose },
|
|
@@ -143290,19 +143292,17 @@ const EventCard = ({ event, isLast, onSelect, onEdit, getEventTypeLabel, theme }
|
|
|
143290
143292
|
const rawTitle = event.title || event.name || "Sem título";
|
|
143291
143293
|
const title = truncateWithEllipsis(rawTitle, 38);
|
|
143292
143294
|
const isTemplate = event.isTemplate || event.status === "MODEL";
|
|
143293
|
-
return (React$1.createElement(Card$1, { key: event.id, sx: {
|
|
143295
|
+
return (React$1.createElement(Card$1, { key: event.id, elevation: 0, sx: {
|
|
143294
143296
|
cursor: "pointer",
|
|
143295
|
-
borderRadius:
|
|
143296
|
-
boxShadow: "
|
|
143297
|
-
transition: theme.transitions.create(["box-shadow", "transform"], {
|
|
143298
|
-
duration: theme.transitions.duration.short,
|
|
143299
|
-
}),
|
|
143297
|
+
borderRadius: 0,
|
|
143298
|
+
boxShadow: "none",
|
|
143300
143299
|
"&:hover": {
|
|
143301
143300
|
backgroundColor: theme.palette.action.hover,
|
|
143302
|
-
boxShadow: "0 4px 12px rgba(0,0,0,0.15)",
|
|
143303
|
-
transform: "translateY(-2px)",
|
|
143304
143301
|
},
|
|
143305
143302
|
mb: 0,
|
|
143303
|
+
borderTop: "none",
|
|
143304
|
+
borderLeft: "none",
|
|
143305
|
+
borderRight: "none",
|
|
143306
143306
|
borderBottom: !isLast ? `1px solid ${theme.palette.divider}` : "none",
|
|
143307
143307
|
}, onClick: () => onSelect(event.id) },
|
|
143308
143308
|
React$1.createElement(CardContent$1, { sx: LIST_CARD_CONTENT_SX },
|
|
@@ -143508,8 +143508,10 @@ const EventsPage = (props) => {
|
|
|
143508
143508
|
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mb: SECTION_GAP } }, "Toque no bot\u00E3o + para criar um novo evento"),
|
|
143509
143509
|
React$1.createElement(QuotaGuard, { feature: "events", behavior: "disable" },
|
|
143510
143510
|
React$1.createElement(Button$1, { variant: "contained", startIcon: React$1.createElement(Add$1, null), onClick: fns.handleAddEvent }, "Criar evento")))))) : (isMobile ? (React$1.createElement(Box$1, { sx: {
|
|
143511
|
-
bgcolor: "
|
|
143512
|
-
borderRadius:
|
|
143511
|
+
bgcolor: "transparent",
|
|
143512
|
+
borderRadius: 0,
|
|
143513
|
+
border: "none",
|
|
143514
|
+
boxShadow: "none",
|
|
143513
143515
|
overflow: "hidden",
|
|
143514
143516
|
} }, data.events.map((event, index) => (React$1.createElement(EventCompactRow, { key: event.id, event: event, isLast: index === data.events.length - 1, onSelect: fns.handleEventSelect, onEdit: props.onEventEdit ? fns.handleEventEdit : undefined, getEventTypeLabel: data.getEventTypeLabel }))))) : (React$1.createElement(Stack$1, { spacing: LIST_GAP }, data.events.map((event, index) => (React$1.createElement(EventCard, { key: event.id, event: event, isLast: index === data.events.length - 1, onSelect: fns.handleEventSelect, onEdit: fns.handleEventEdit, getEventTypeLabel: data.getEventTypeLabel, getStatusLabel: data.getStatusLabel, theme: theme }))))))),
|
|
143515
143517
|
props.isAdmin && !props.hideAddFab && data.events.length > 0 && (React$1.createElement(QuotaGuard, { feature: "events", behavior: "hide" },
|
|
@@ -143946,7 +143948,9 @@ const MonthlyFeeCard = React$1.memo(({ formatCurrency, monthlyFee, dueDay, payme
|
|
|
143946
143948
|
};
|
|
143947
143949
|
return (React$1.createElement(Card$1, { "data-testid": "monthly-fee-action-card", sx: {
|
|
143948
143950
|
borderRadius: RADIUS.default,
|
|
143949
|
-
boxShadow:
|
|
143951
|
+
boxShadow: "none",
|
|
143952
|
+
border: 1,
|
|
143953
|
+
borderColor: "divider",
|
|
143950
143954
|
overflow: "hidden",
|
|
143951
143955
|
} },
|
|
143952
143956
|
React$1.createElement(CardHeader$1, { title: React$1.createElement(Stack$1, { direction: "row", alignItems: "center", justifyContent: "space-between", spacing: LIST_GAP },
|
|
@@ -143980,13 +143984,17 @@ const MonthlyFeeCard = React$1.memo(({ formatCurrency, monthlyFee, dueDay, payme
|
|
|
143980
143984
|
cursor: isSelectable ? "pointer" : "default",
|
|
143981
143985
|
borderRadius: RADIUS.default,
|
|
143982
143986
|
outline: "none",
|
|
143983
|
-
transition: "background-color 0.2s ease
|
|
143987
|
+
transition: "background-color 0.2s ease",
|
|
143984
143988
|
"&:hover": isSelectable
|
|
143985
143989
|
? {
|
|
143986
143990
|
bgcolor: theme.palette.action.hover,
|
|
143987
|
-
boxShadow: `inset 0 0 0 1px ${alpha(theme.palette.info.main, 0.24)}`,
|
|
143988
143991
|
}
|
|
143989
143992
|
: undefined,
|
|
143993
|
+
"&:focus-visible": {
|
|
143994
|
+
outline: "2px solid",
|
|
143995
|
+
outlineColor: theme.palette.primary.main,
|
|
143996
|
+
outlineOffset: 2,
|
|
143997
|
+
},
|
|
143990
143998
|
} },
|
|
143991
143999
|
React$1.createElement(Stack$1, { spacing: 0.5, sx: { mb: 1.5 } },
|
|
143992
144000
|
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { letterSpacing: 0.2 } }, "Valor da mensalidade"),
|
|
@@ -144054,7 +144062,7 @@ const MetricItem = React$1.memo(({ icon, label, value, color, isLoading, }) => {
|
|
|
144054
144062
|
});
|
|
144055
144063
|
MetricItem.displayName = "MetricItem";
|
|
144056
144064
|
// Member payments progress component
|
|
144057
|
-
const MemberPaymentsSection = React$1.memo(({ data, isLoading }) => {
|
|
144065
|
+
const MemberPaymentsSection = React$1.memo(({ data, isLoading, collectedLabel, expectedLabel, }) => {
|
|
144058
144066
|
const theme = useTheme$1();
|
|
144059
144067
|
if (isLoading) {
|
|
144060
144068
|
return (React$1.createElement(Box$1, { sx: {
|
|
@@ -144097,7 +144105,11 @@ const MemberPaymentsSection = React$1.memo(({ data, isLoading }) => {
|
|
|
144097
144105
|
bgcolor: progressColor,
|
|
144098
144106
|
borderRadius: RADIUS.default,
|
|
144099
144107
|
},
|
|
144100
|
-
} })
|
|
144108
|
+
} }),
|
|
144109
|
+
collectedLabel && expectedLabel ? (React$1.createElement(Typography$1, { variant: "caption", color: "text.secondary", sx: { mt: 0.75 } },
|
|
144110
|
+
collectedLabel,
|
|
144111
|
+
" recebidos de ",
|
|
144112
|
+
expectedLabel)) : null));
|
|
144101
144113
|
});
|
|
144102
144114
|
MemberPaymentsSection.displayName = "MemberPaymentsSection";
|
|
144103
144115
|
// Category breakdown list component
|
|
@@ -144146,7 +144158,7 @@ const CategoryBreakdownSection = React$1.memo(({ title, categories, color, isLoa
|
|
|
144146
144158
|
});
|
|
144147
144159
|
CategoryBreakdownSection.displayName = "CategoryBreakdownSection";
|
|
144148
144160
|
const FinancialOverviewCard = React$1.memo(({ data, isLoading = false, formatCurrency, onClick, defaultExpanded = false, showMemberPayments = true, }) => {
|
|
144149
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y
|
|
144161
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y;
|
|
144150
144162
|
const theme = useTheme$1();
|
|
144151
144163
|
const [isExpandedManually, setIsExpandedManually] = React$1.useState(defaultExpanded);
|
|
144152
144164
|
// Helper to format values
|
|
@@ -144160,66 +144172,47 @@ const FinancialOverviewCard = React$1.memo(({ data, isLoading = false, formatCur
|
|
|
144160
144172
|
currency: "BRL",
|
|
144161
144173
|
}).format(value);
|
|
144162
144174
|
};
|
|
144163
|
-
// Get the current month name in Portuguese
|
|
144164
|
-
const getCurrentMonthName = () => {
|
|
144165
|
-
var _a, _b;
|
|
144166
|
-
if ((_b = (_a = data === null || data === void 0 ? void 0 : data.overview) === null || _a === void 0 ? void 0 : _a.period) === null || _b === void 0 ? void 0 : _b.start) {
|
|
144167
|
-
const date = new Date(data.overview.period.start);
|
|
144168
|
-
// Use UTC methods to avoid timezone conversion issues
|
|
144169
|
-
const year = date.getUTCFullYear();
|
|
144170
|
-
const month = date.getUTCMonth();
|
|
144171
|
-
// Create a date in the local timezone with the correct year/month
|
|
144172
|
-
const localDate = new Date(year, month, 1);
|
|
144173
|
-
return localDate.toLocaleDateString("pt-BR", {
|
|
144174
|
-
month: "long",
|
|
144175
|
-
year: "numeric",
|
|
144176
|
-
});
|
|
144177
|
-
}
|
|
144178
|
-
return new Date().toLocaleDateString("pt-BR", {
|
|
144179
|
-
month: "long",
|
|
144180
|
-
year: "numeric",
|
|
144181
|
-
});
|
|
144182
|
-
};
|
|
144183
144175
|
// Determine if net flow is positive or negative
|
|
144184
|
-
const
|
|
144176
|
+
const balanceColor = ((_b = (_a = data === null || data === void 0 ? void 0 : data.overview) === null || _a === void 0 ? void 0 : _a.totalBalance) !== null && _b !== void 0 ? _b : 0) < 0
|
|
144177
|
+
? theme.palette.error.main
|
|
144178
|
+
: theme.palette.success.main;
|
|
144179
|
+
const netFlowColor = ((_d = (_c = data === null || data === void 0 ? void 0 : data.overview) === null || _c === void 0 ? void 0 : _c.netFlow) !== null && _d !== void 0 ? _d : 0) >= 0
|
|
144185
144180
|
? theme.palette.success.main
|
|
144186
144181
|
: theme.palette.error.main;
|
|
144187
|
-
const hasCorrections = ((
|
|
144182
|
+
const hasCorrections = ((_f = (_e = data === null || data === void 0 ? void 0 : data.corrections) === null || _e === void 0 ? void 0 : _e.totalCorrections) !== null && _f !== void 0 ? _f : 0) > 0;
|
|
144188
144183
|
const hasMemberPayments = showMemberPayments &&
|
|
144189
144184
|
(data === null || data === void 0 ? void 0 : data.memberPayments) &&
|
|
144190
144185
|
data.memberPayments.totalMembers > 0;
|
|
144191
144186
|
const hasCategories = ((data === null || data === void 0 ? void 0 : data.incomeByCategory) && data.incomeByCategory.length > 0) ||
|
|
144192
144187
|
((data === null || data === void 0 ? void 0 : data.outcomeByCategory) && data.outcomeByCategory.length > 0);
|
|
144193
|
-
const
|
|
144194
|
-
((_h = (_g = data === null || data === void 0 ? void 0 : data.outcomeByCategory) === null || _g === void 0 ? void 0 : _g.length) !== null && _h !== void 0 ? _h : 0) > 1;
|
|
144195
|
-
const expanded = hasMultipleCategories ? true : isExpandedManually;
|
|
144188
|
+
const expanded = isExpandedManually;
|
|
144196
144189
|
React$1.useEffect(() => {
|
|
144197
144190
|
setIsExpandedManually(defaultExpanded);
|
|
144198
144191
|
}, [defaultExpanded]);
|
|
144199
144192
|
const handleToggleExpand = (e) => {
|
|
144200
|
-
if (hasMultipleCategories)
|
|
144201
|
-
return;
|
|
144202
144193
|
e.stopPropagation();
|
|
144203
144194
|
setIsExpandedManually((current) => !current);
|
|
144204
144195
|
};
|
|
144205
144196
|
return (React$1.createElement(Card$1, { onClick: onClick, sx: {
|
|
144206
144197
|
borderRadius: RADIUS.default,
|
|
144207
|
-
boxShadow:
|
|
144198
|
+
boxShadow: "none",
|
|
144199
|
+
border: 1,
|
|
144200
|
+
borderColor: "divider",
|
|
144208
144201
|
overflow: "hidden",
|
|
144209
144202
|
cursor: onClick ? "pointer" : "default",
|
|
144210
|
-
"
|
|
144211
|
-
|
|
144203
|
+
outline: "none",
|
|
144204
|
+
"&:hover": onClick
|
|
144205
|
+
? { borderColor: "primary.main", boxShadow: "none" }
|
|
144206
|
+
: undefined,
|
|
144207
|
+
"&:focus-visible": {
|
|
144208
|
+
outline: "2px solid",
|
|
144209
|
+
outlineColor: "primary.main",
|
|
144210
|
+
outlineOffset: 2,
|
|
144211
|
+
},
|
|
144212
144212
|
} },
|
|
144213
144213
|
React$1.createElement(CardHeader$1, { title: React$1.createElement(Stack$1, { direction: "row", alignItems: "center", justifyContent: "space-between", spacing: LIST_GAP },
|
|
144214
|
-
React$1.createElement(
|
|
144215
|
-
|
|
144216
|
-
React$1.createElement(Chip$1, { size: "small", label: getCurrentMonthName(), color: "primary", variant: "outlined", sx: {
|
|
144217
|
-
bgcolor: alpha(theme.palette.primary.main, 0.08),
|
|
144218
|
-
borderColor: alpha(theme.palette.primary.main, 0.3),
|
|
144219
|
-
fontWeight: 500,
|
|
144220
|
-
textTransform: "capitalize",
|
|
144221
|
-
} })),
|
|
144222
|
-
hasCorrections && (React$1.createElement(Chip$1, { size: "small", icon: React$1.createElement(BuildIcon, { sx: { fontSize: 14 } }), label: `${(_j = data === null || data === void 0 ? void 0 : data.corrections) === null || _j === void 0 ? void 0 : _j.totalCorrections} correções`, color: "warning", variant: "outlined", sx: {
|
|
144214
|
+
React$1.createElement(Typography$1, { variant: "subtitle1", sx: { fontWeight: 700, color: "text.primary" } }, "Resumo Financeiro"),
|
|
144215
|
+
hasCorrections && (React$1.createElement(Chip$1, { size: "small", icon: React$1.createElement(BuildIcon, { sx: { fontSize: 14 } }), label: `${(_g = data === null || data === void 0 ? void 0 : data.corrections) === null || _g === void 0 ? void 0 : _g.totalCorrections} correções`, color: "warning", variant: "outlined", sx: {
|
|
144223
144216
|
bgcolor: alpha(theme.palette.warning.main, 0.08),
|
|
144224
144217
|
borderColor: alpha(theme.palette.warning.main, 0.3),
|
|
144225
144218
|
fontWeight: 500,
|
|
@@ -144233,28 +144226,18 @@ const FinancialOverviewCard = React$1.memo(({ data, isLoading = false, formatCur
|
|
|
144233
144226
|
React$1.createElement(Box$1, { sx: {
|
|
144234
144227
|
p: CARD_PADDING,
|
|
144235
144228
|
borderRadius: RADIUS.default,
|
|
144236
|
-
bgcolor: alpha(
|
|
144237
|
-
|
|
144238
|
-
: theme.palette.success.main, 0.04),
|
|
144239
|
-
border: `1px solid ${alpha(((_o = (_m = data === null || data === void 0 ? void 0 : data.overview) === null || _m === void 0 ? void 0 : _m.totalBalance) !== null && _o !== void 0 ? _o : 0) < 0
|
|
144240
|
-
? theme.palette.primary.main
|
|
144241
|
-
: theme.palette.success.main, 0.1)}`,
|
|
144229
|
+
bgcolor: alpha(balanceColor, 0.04),
|
|
144230
|
+
border: `1px solid ${alpha(balanceColor, 0.1)}`,
|
|
144242
144231
|
} },
|
|
144243
144232
|
React$1.createElement(MetricItem, { icon: React$1.createElement(AccountBalanceIcon, { fontSize: "small" }), label: "Saldo Total (todas as contas)", value: isLoading
|
|
144244
144233
|
? ""
|
|
144245
|
-
: format((
|
|
144246
|
-
? theme.palette.primary.main
|
|
144247
|
-
: theme.palette.success.main, isLoading: isLoading }))),
|
|
144234
|
+
: format((_j = (_h = data === null || data === void 0 ? void 0 : data.overview) === null || _h === void 0 ? void 0 : _h.totalBalance) !== null && _j !== void 0 ? _j : 0, (_k = data === null || data === void 0 ? void 0 : data.formatted) === null || _k === void 0 ? void 0 : _k.totalBalance), color: balanceColor, isLoading: isLoading }))),
|
|
144248
144235
|
(hasMemberPayments || isLoading) && (React$1.createElement(Grid$1, { item: true, xs: 12 },
|
|
144249
|
-
React$1.createElement(MemberPaymentsSection, { data: data === null || data === void 0 ? void 0 : data.memberPayments, isLoading: isLoading
|
|
144250
|
-
|
|
144251
|
-
|
|
144252
|
-
?
|
|
144253
|
-
: format((
|
|
144254
|
-
React$1.createElement(Grid$1, { item: true, xs: 6 },
|
|
144255
|
-
React$1.createElement(MetricItem, { icon: React$1.createElement(TrendingDownIcon, { fontSize: "small" }), label: "Sa\u00EDdas (m\u00EAs)", value: isLoading
|
|
144256
|
-
? ""
|
|
144257
|
-
: format((_y = (_x = data === null || data === void 0 ? void 0 : data.overview) === null || _x === void 0 ? void 0 : _x.totalOutcome) !== null && _y !== void 0 ? _y : 0, (_z = data === null || data === void 0 ? void 0 : data.formatted) === null || _z === void 0 ? void 0 : _z.totalOutcome), color: theme.palette.error.main, isLoading: isLoading })),
|
|
144236
|
+
React$1.createElement(MemberPaymentsSection, { data: data === null || data === void 0 ? void 0 : data.memberPayments, isLoading: isLoading, collectedLabel: isLoading
|
|
144237
|
+
? undefined
|
|
144238
|
+
: format((_m = (_l = data === null || data === void 0 ? void 0 : data.memberPayments) === null || _l === void 0 ? void 0 : _l.collectedAmount) !== null && _m !== void 0 ? _m : 0, (_o = data === null || data === void 0 ? void 0 : data.formatted) === null || _o === void 0 ? void 0 : _o.memberPaymentsCollected), expectedLabel: isLoading
|
|
144239
|
+
? undefined
|
|
144240
|
+
: format((_q = (_p = data === null || data === void 0 ? void 0 : data.memberPayments) === null || _p === void 0 ? void 0 : _p.expectedAmount) !== null && _q !== void 0 ? _q : 0, (_r = data === null || data === void 0 ? void 0 : data.formatted) === null || _r === void 0 ? void 0 : _r.memberPaymentsExpected) }))),
|
|
144258
144241
|
React$1.createElement(Grid$1, { item: true, xs: 12 },
|
|
144259
144242
|
React$1.createElement(Box$1, { sx: {
|
|
144260
144243
|
p: LIST_CARD_CONTENT_PADDING,
|
|
@@ -144270,37 +144253,39 @@ const FinancialOverviewCard = React$1.memo(({ data, isLoading = false, formatCur
|
|
|
144270
144253
|
fontWeight: 700,
|
|
144271
144254
|
color: netFlowColor,
|
|
144272
144255
|
} },
|
|
144273
|
-
((
|
|
144274
|
-
format((
|
|
144256
|
+
((_t = (_s = data === null || data === void 0 ? void 0 : data.overview) === null || _s === void 0 ? void 0 : _s.netFlow) !== null && _t !== void 0 ? _t : 0) >= 0 ? "+" : "",
|
|
144257
|
+
format((_v = (_u = data === null || data === void 0 ? void 0 : data.overview) === null || _u === void 0 ? void 0 : _u.netFlow) !== null && _v !== void 0 ? _v : 0, (_w = data === null || data === void 0 ? void 0 : data.formatted) === null || _w === void 0 ? void 0 : _w.netFlow))))),
|
|
144275
144258
|
(hasCategories || isLoading) && (React$1.createElement(Grid$1, { item: true, xs: 12 },
|
|
144276
|
-
React$1.createElement(Box$1, {
|
|
144277
|
-
|
|
144259
|
+
React$1.createElement(Box$1, { component: "button", type: "button", onClick: handleToggleExpand, sx: {
|
|
144260
|
+
width: "100%",
|
|
144261
|
+
cursor: "pointer",
|
|
144278
144262
|
display: "flex",
|
|
144279
144263
|
alignItems: "center",
|
|
144280
144264
|
justifyContent: "center",
|
|
144281
144265
|
py: 0.5,
|
|
144282
144266
|
color: theme.palette.text.secondary,
|
|
144267
|
+
background: "none",
|
|
144268
|
+
border: 0,
|
|
144283
144269
|
"&:hover": {
|
|
144284
|
-
color:
|
|
144285
|
-
|
|
144286
|
-
|
|
144270
|
+
color: theme.palette.primary.main,
|
|
144271
|
+
},
|
|
144272
|
+
"&:focus-visible": {
|
|
144273
|
+
outline: "2px solid",
|
|
144274
|
+
outlineColor: theme.palette.primary.main,
|
|
144275
|
+
outlineOffset: 2,
|
|
144287
144276
|
},
|
|
144288
144277
|
} },
|
|
144289
144278
|
React$1.createElement(CategoryIcon, { sx: { fontSize: 16, mr: 0.5 } }),
|
|
144290
|
-
React$1.createElement(Typography$1, { variant: "caption" },
|
|
144291
|
-
? "Categorias detalhadas"
|
|
144292
|
-
: expanded
|
|
144293
|
-
? "Ocultar categorias"
|
|
144294
|
-
: "Ver por categoria")),
|
|
144279
|
+
React$1.createElement(Typography$1, { variant: "caption", component: "span" }, expanded ? "Ocultar categorias" : "Ver por categoria")),
|
|
144295
144280
|
React$1.createElement(Collapse$1, { in: expanded },
|
|
144296
144281
|
React$1.createElement(Divider$1, { sx: { my: 1.5 } }),
|
|
144297
144282
|
React$1.createElement(Grid$1, { container: true, spacing: GRID_GAP },
|
|
144298
|
-
(((
|
|
144283
|
+
(((_x = data === null || data === void 0 ? void 0 : data.incomeByCategory) === null || _x === void 0 ? void 0 : _x.length) || isLoading) && (React$1.createElement(Grid$1, { item: true, xs: 12, sm: 6 },
|
|
144299
144284
|
React$1.createElement(CategoryBreakdownSection, { title: "Entradas por Categoria", categories: data === null || data === void 0 ? void 0 : data.incomeByCategory, color: theme.palette.success.main, isLoading: isLoading, icon: React$1.createElement(TrendingUp$1, { sx: {
|
|
144300
144285
|
fontSize: 16,
|
|
144301
144286
|
color: theme.palette.success.main,
|
|
144302
144287
|
} }) }))),
|
|
144303
|
-
(((
|
|
144288
|
+
(((_y = data === null || data === void 0 ? void 0 : data.outcomeByCategory) === null || _y === void 0 ? void 0 : _y.length) || isLoading) && (React$1.createElement(Grid$1, { item: true, xs: 12, sm: 6 },
|
|
144304
144289
|
React$1.createElement(CategoryBreakdownSection, { title: "Sa\u00EDdas por Categoria", categories: data === null || data === void 0 ? void 0 : data.outcomeByCategory, color: theme.palette.error.main, isLoading: isLoading, icon: React$1.createElement(TrendingDownIcon, { sx: {
|
|
144305
144290
|
fontSize: 16,
|
|
144306
144291
|
color: theme.palette.error.main,
|
|
@@ -144410,7 +144395,6 @@ const AccountListItem = React$1.memo(({ account, isLastItem, onSelect, formatCur
|
|
|
144410
144395
|
const theme = useTheme$1();
|
|
144411
144396
|
const isMobile = useMediaQuery(theme.breakpoints.down("sm"));
|
|
144412
144397
|
// Convert string balances to numbers for formatting
|
|
144413
|
-
const initialBalance = parseFloat(account.initialBalance);
|
|
144414
144398
|
const currentBalance = parseFloat(account.currentBalance);
|
|
144415
144399
|
return (React$1.createElement(ListItem$1, { "data-testid": `financial-account-list-item-${account.id}`, sx: {
|
|
144416
144400
|
width: "100%",
|
|
@@ -144443,9 +144427,6 @@ const AccountListItem = React$1.memo(({ account, isLastItem, onSelect, formatCur
|
|
|
144443
144427
|
account.agency,
|
|
144444
144428
|
" | Conta: ",
|
|
144445
144429
|
account.account)),
|
|
144446
|
-
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { fontSize: { xs: "0.75rem", sm: "0.875rem" } } },
|
|
144447
|
-
"Saldo inicial: ",
|
|
144448
|
-
formatCurrency(initialBalance)),
|
|
144449
144430
|
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { fontSize: { xs: "0.75rem", sm: "0.875rem" } } },
|
|
144450
144431
|
"Saldo atual: ",
|
|
144451
144432
|
formatCurrency(currentBalance)),
|
|
@@ -144493,8 +144474,7 @@ const EmptyState$2 = React$1.memo(({ onAddAccount, theme }) => {
|
|
|
144493
144474
|
});
|
|
144494
144475
|
EmptyState$2.displayName = "EmptyState";
|
|
144495
144476
|
// Income/Outcome card component
|
|
144496
|
-
const FinanceMetricCard = React$1.memo(({ title, value,
|
|
144497
|
-
const theme = useTheme$1();
|
|
144477
|
+
const FinanceMetricCard = React$1.memo(({ title, value, color, icon, formatCurrency, onClick, ctaLabel = "Ver lista", ariaLabel, testId, }) => {
|
|
144498
144478
|
const handleKeyDown = (e) => {
|
|
144499
144479
|
if (!onClick)
|
|
144500
144480
|
return;
|
|
@@ -144505,17 +144485,26 @@ const FinanceMetricCard = React$1.memo(({ title, value, month, year, color, icon
|
|
|
144505
144485
|
};
|
|
144506
144486
|
return (React$1.createElement(Card$1, { "data-testid": testId, onClick: onClick, onKeyDown: handleKeyDown, role: onClick ? "button" : undefined, tabIndex: onClick ? 0 : undefined, "aria-label": onClick ? ariaLabel : undefined, sx: {
|
|
144507
144487
|
borderRadius: RADIUS.default,
|
|
144508
|
-
boxShadow:
|
|
144488
|
+
boxShadow: "none",
|
|
144489
|
+
border: 1,
|
|
144490
|
+
borderColor: "divider",
|
|
144509
144491
|
height: "100%",
|
|
144510
144492
|
cursor: onClick ? "pointer" : "default",
|
|
144511
|
-
// subtle hover elevation when clickable
|
|
144512
|
-
"&:hover": onClick ? { boxShadow: theme.shadows[4] } : undefined,
|
|
144513
144493
|
outline: "none",
|
|
144494
|
+
"&:hover": onClick
|
|
144495
|
+
? { borderColor: "primary.main", boxShadow: "none" }
|
|
144496
|
+
: undefined,
|
|
144497
|
+
"&:focus-visible": {
|
|
144498
|
+
outline: "2px solid",
|
|
144499
|
+
outlineColor: "primary.main",
|
|
144500
|
+
outlineOffset: 2,
|
|
144501
|
+
},
|
|
144514
144502
|
} },
|
|
144515
144503
|
React$1.createElement(CardContent$1, { sx: LIST_CARD_CONTENT_SX },
|
|
144516
144504
|
React$1.createElement(Box$1, { sx: {
|
|
144517
144505
|
display: "flex",
|
|
144518
144506
|
justifyContent: "space-between",
|
|
144507
|
+
alignItems: "flex-start",
|
|
144519
144508
|
} },
|
|
144520
144509
|
React$1.createElement(Box$1, { sx: { display: "flex", alignItems: "center", mb: 1 } },
|
|
144521
144510
|
icon,
|
|
@@ -144523,24 +144512,13 @@ const FinanceMetricCard = React$1.memo(({ title, value, month, year, color, icon
|
|
|
144523
144512
|
fontWeight: 600,
|
|
144524
144513
|
ml: 1,
|
|
144525
144514
|
} }, title)),
|
|
144526
|
-
React$1.createElement(
|
|
144527
|
-
|
|
144528
|
-
ml: 1,
|
|
144529
|
-
} }, showAmount
|
|
144530
|
-
? `${month}/${year}`
|
|
144531
|
-
: ctaLabel || (onClick ? "Ver lista" : ""))),
|
|
144532
|
-
showAmount ? (React$1.createElement(Typography$1, { variant: "h6", sx: {
|
|
144515
|
+
onClick ? (React$1.createElement(ChevronRight$2, { sx: { color, fontSize: 20 }, "aria-hidden": "true" })) : null),
|
|
144516
|
+
React$1.createElement(Typography$1, { variant: "h6", sx: {
|
|
144533
144517
|
color: color,
|
|
144534
144518
|
fontWeight: 600,
|
|
144535
144519
|
fontSize: { xs: "1rem", sm: "1.25rem" },
|
|
144536
|
-
} }, formatCurrency(value))
|
|
144537
|
-
|
|
144538
|
-
justifyContent: "space-between",
|
|
144539
|
-
alignItems: "center",
|
|
144540
|
-
mt: 0.5,
|
|
144541
|
-
} },
|
|
144542
|
-
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { fontWeight: 500 } }, ctaDescription || "Abrir lista"),
|
|
144543
|
-
React$1.createElement(ChevronRight$2, { sx: { color: color, fontSize: 20 }, "aria-hidden": "true" }))))));
|
|
144520
|
+
} }, formatCurrency(value)),
|
|
144521
|
+
onClick ? (React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { fontWeight: 500, mt: 0.5 } }, ctaLabel)) : null)));
|
|
144544
144522
|
});
|
|
144545
144523
|
FinanceMetricCard.displayName = "FinanceMetricCard";
|
|
144546
144524
|
const FinancialAccountsList = (props) => {
|
|
@@ -144548,7 +144526,6 @@ const FinancialAccountsList = (props) => {
|
|
|
144548
144526
|
const theme = useTheme$1();
|
|
144549
144527
|
const { data, fns } = useFinancialAccountsList(props);
|
|
144550
144528
|
const isMobile = useMediaQuery(theme.breakpoints.down("sm"));
|
|
144551
|
-
const hasOverviewData = Boolean(props.financialOverview) && !props.isOverviewLoading;
|
|
144552
144529
|
const showPeriodFilter = (_a = props.showPeriodFilter) !== null && _a !== void 0 ? _a : Boolean(props.periodLabel ||
|
|
144553
144530
|
props.periodInputValue ||
|
|
144554
144531
|
props.onPeriodInputChange ||
|
|
@@ -144566,25 +144543,23 @@ const FinancialAccountsList = (props) => {
|
|
|
144566
144543
|
} },
|
|
144567
144544
|
React$1.createElement(PageHeader$2, { title: "Financeiro", onBack: props.onBack, onAdd: props.onAddAccount, addLabel: "Adicionar", showAddButton: true, hideAddButtonOnMobile: true }),
|
|
144568
144545
|
React$1.createElement(Container$1, { maxWidth: "md", sx: PAGE_LIST_CONTAINER_SPACING },
|
|
144569
|
-
showPeriodFilter && (React$1.createElement(Stack$1, {
|
|
144570
|
-
React$1.createElement(Stack$1, { spacing:
|
|
144571
|
-
React$1.createElement(Typography$1, { variant: "subtitle2", color: "text.secondary" }, "Compet\u00EAncia"),
|
|
144572
|
-
React$1.createElement(Typography$1, { variant: "body2", sx: { textTransform: "capitalize" } }, props.periodLabel || "-")),
|
|
144573
|
-
React$1.createElement(Stack$1, { direction: "row", spacing: 1, alignItems: "center" },
|
|
144546
|
+
showPeriodFilter && (React$1.createElement(Stack$1, { spacing: 1, sx: { pb: LIST_CONTROLS_MARGIN_BOTTOM } },
|
|
144547
|
+
React$1.createElement(Stack$1, { direction: "row", spacing: 1, alignItems: "center", flexWrap: "wrap" },
|
|
144574
144548
|
React$1.createElement(LabeledMonthPicker, { label: "Selecionar m\u00EAs", value: props.periodInputValue || "", onChange: (value) => { var _a; return (_a = props.onPeriodInputChange) === null || _a === void 0 ? void 0 : _a.call(props, value); }, minMonth: props.periodInputMin || "2000-01", maxMonth: props.periodInputMax || "2100-12", "data-testid": "financial-period-input" }),
|
|
144575
144549
|
React$1.createElement(Button$1, { variant: "text", onClick: props.onResetToCurrentPeriod, "data-testid": "financial-period-current-month-button" }, "M\u00EAs atual"),
|
|
144576
144550
|
props.canExportFinancialReport &&
|
|
144577
144551
|
props.onExportFinancialReport && (React$1.createElement(Button$1, { variant: "outlined", onClick: props.onExportFinancialReport, disabled: props.isExportingFinancialReport, "data-testid": "financial-report-export-button" }, props.isExportingFinancialReport
|
|
144578
144552
|
? "Exportando..."
|
|
144579
|
-
: "Exportar CSV")))
|
|
144553
|
+
: "Exportar CSV"))),
|
|
144554
|
+
props.financialReportExportError ? (React$1.createElement(Alert$1, { severity: "error", "data-testid": "financial-report-export-error" }, props.financialReportExportError)) : null)),
|
|
144580
144555
|
React$1.createElement(Box$1, { sx: { mb: SECTION_GAP } },
|
|
144581
144556
|
(props.financialOverview || props.isOverviewLoading) && (React$1.createElement(Box$1, { sx: { mb: LIST_CONTROLS_MARGIN_BOTTOM } },
|
|
144582
144557
|
React$1.createElement(FinancialOverviewCard, { data: props.financialOverview, isLoading: props.isOverviewLoading, formatCurrency: data.formatCurrency, defaultExpanded: props.financialOverviewExpanded, showMemberPayments: Boolean(props.isTerreiro) }))),
|
|
144583
144558
|
React$1.createElement(Grid$1, { container: true, spacing: GRID_GAP, sx: { mb: LIST_CONTROLS_MARGIN_BOTTOM } },
|
|
144584
144559
|
React$1.createElement(Grid$1, { item: true, xs: 6 },
|
|
144585
|
-
React$1.createElement(FinanceMetricCard, { title: "Entrada", value: data.income.totalAmount || 0,
|
|
144560
|
+
React$1.createElement(FinanceMetricCard, { title: "Entrada", value: data.income.totalAmount || 0, color: theme.palette.success.main, icon: React$1.createElement(TrendingUp$1, { sx: { color: theme.palette.success.main } }), formatCurrency: data.formatCurrency, onClick: props.onClickIncome, ctaLabel: "Ver lista", ariaLabel: "Ver lista de entradas", testId: "financial-income-metric-card" })),
|
|
144586
144561
|
React$1.createElement(Grid$1, { item: true, xs: 6 },
|
|
144587
|
-
React$1.createElement(FinanceMetricCard, { title: "Sa\u00EDda", value: data.outcome.totalAmount || 0,
|
|
144562
|
+
React$1.createElement(FinanceMetricCard, { title: "Sa\u00EDda", value: data.outcome.totalAmount || 0, color: theme.palette.error.main, icon: React$1.createElement(TrendingDownIcon, { sx: { color: theme.palette.error.main } }), formatCurrency: data.formatCurrency, onClick: props.onClickOutcome, ctaLabel: "Ver lista", ariaLabel: "Ver lista de sa\u00EDdas", testId: "financial-outcome-metric-card" }))),
|
|
144588
144563
|
props.isTerreiro && (React$1.createElement(MonthlyFeeCard, { formatCurrency: data.formatCurrency, monthlyFee: data.monthlyFee || 0, dueDay: data.monthlyFeeDueDay !== undefined
|
|
144589
144564
|
? String(data.monthlyFeeDueDay)
|
|
144590
144565
|
: "-", paymentMethod: data.monthlyFeePaymentMethod !== undefined
|
|
@@ -144599,9 +144574,10 @@ const FinancialAccountsList = (props) => {
|
|
|
144599
144574
|
} },
|
|
144600
144575
|
React$1.createElement(List$1, { "data-testid": "financial-accounts-list", sx: {
|
|
144601
144576
|
width: "100%",
|
|
144602
|
-
bgcolor: "
|
|
144603
|
-
borderRadius:
|
|
144604
|
-
boxShadow:
|
|
144577
|
+
bgcolor: "transparent",
|
|
144578
|
+
borderRadius: 0,
|
|
144579
|
+
boxShadow: "none",
|
|
144580
|
+
border: "none",
|
|
144605
144581
|
overflow: "hidden",
|
|
144606
144582
|
} },
|
|
144607
144583
|
isEmpty && (React$1.createElement(EmptyState$2, { onAddAccount: props.onAddAccount, theme: theme })),
|
|
@@ -146369,9 +146345,10 @@ const IncomeListPage = ({ onBack, onAdd, onSelect, periodLabel, periodInputValue
|
|
|
146369
146345
|
} },
|
|
146370
146346
|
React$1.createElement(EmptyState$1, { onAdd: onAdd, isMobile: isMobile }))) : (React$1.createElement(List$1, { sx: {
|
|
146371
146347
|
width: "100%",
|
|
146372
|
-
bgcolor: "
|
|
146373
|
-
borderRadius:
|
|
146374
|
-
boxShadow:
|
|
146348
|
+
bgcolor: "transparent",
|
|
146349
|
+
borderRadius: 0,
|
|
146350
|
+
boxShadow: "none",
|
|
146351
|
+
border: "none",
|
|
146375
146352
|
overflow: "hidden",
|
|
146376
146353
|
} }, incomes.map((inc, idx) => {
|
|
146377
146354
|
var _a, _b;
|
|
@@ -146980,9 +146957,10 @@ const OutcomeListPage = ({ onSelect, onBack, onAdd, periodLabel, periodInputValu
|
|
|
146980
146957
|
} },
|
|
146981
146958
|
React$1.createElement(EmptyState, { onAdd: onAdd, isMobile: isMobile }))) : (React$1.createElement(List$1, { "aria-label": "Lista de sa\u00EDdas", sx: {
|
|
146982
146959
|
width: "100%",
|
|
146983
|
-
bgcolor: "
|
|
146984
|
-
borderRadius:
|
|
146985
|
-
boxShadow:
|
|
146960
|
+
bgcolor: "transparent",
|
|
146961
|
+
borderRadius: 0,
|
|
146962
|
+
boxShadow: "none",
|
|
146963
|
+
border: "none",
|
|
146986
146964
|
overflow: "hidden",
|
|
146987
146965
|
} }, outcomes.map((out, idx) => {
|
|
146988
146966
|
var _a, _b;
|
|
@@ -158543,19 +158521,17 @@ const InventoryItemCard = ({ item, isLast, onSelect, onEdit }) => {
|
|
|
158543
158521
|
// Truncate item name and description for display
|
|
158544
158522
|
const truncatedName = truncateWithEllipsis(item.name, 38);
|
|
158545
158523
|
const truncatedDescription = truncateWithEllipsis((_a = item.description) !== null && _a !== void 0 ? _a : "", 70);
|
|
158546
|
-
return (React$1.createElement(Card$1, { key: item.id, sx: {
|
|
158524
|
+
return (React$1.createElement(Card$1, { key: item.id, elevation: 0, sx: {
|
|
158547
158525
|
cursor: "pointer",
|
|
158548
|
-
borderRadius:
|
|
158549
|
-
boxShadow: "
|
|
158550
|
-
transition: theme.transitions.create(["box-shadow", "transform"], {
|
|
158551
|
-
duration: theme.transitions.duration.short,
|
|
158552
|
-
}),
|
|
158526
|
+
borderRadius: 0,
|
|
158527
|
+
boxShadow: "none",
|
|
158553
158528
|
"&:hover": {
|
|
158554
158529
|
backgroundColor: theme.palette.action.hover,
|
|
158555
|
-
boxShadow: "0 4px 12px rgba(0,0,0,0.15)",
|
|
158556
|
-
transform: "translateY(-2px)",
|
|
158557
158530
|
},
|
|
158558
158531
|
mb: 0,
|
|
158532
|
+
borderTop: "none",
|
|
158533
|
+
borderLeft: "none",
|
|
158534
|
+
borderRight: "none",
|
|
158559
158535
|
borderBottom: !isLast ? `1px solid ${theme.palette.divider}` : "none",
|
|
158560
158536
|
}, onClick: () => onSelect(item.id), "data-testid": `inventory-item-${item.id}`, "data-cy": `inventory-item-${item.id}` },
|
|
158561
158537
|
React$1.createElement(CardContent$1, { sx: LIST_CARD_CONTENT_SX },
|
|
@@ -158712,8 +158688,10 @@ const InventoryListPage = (props) => {
|
|
|
158712
158688
|
}, "data-testid": "inventory-list-content", "data-cy": "inventory-list-content" }, data.items.length === 0 ? (React$1.createElement(InventoryEmptyState, { hasActiveFilters: data.hasActiveFilters, onClearFilters: data.hasActiveFilters ? fns.handleClearFilters : undefined, onAdd: data.canAdd && !data.hasActiveFilters
|
|
158713
158689
|
? fns.handleAddItem
|
|
158714
158690
|
: undefined })) : (React$1.createElement(Fade$1, { in: true }, isMobile ? (React$1.createElement(Box$1, { sx: {
|
|
158715
|
-
bgcolor: "
|
|
158716
|
-
borderRadius:
|
|
158691
|
+
bgcolor: "transparent",
|
|
158692
|
+
borderRadius: 0,
|
|
158693
|
+
border: "none",
|
|
158694
|
+
boxShadow: "none",
|
|
158717
158695
|
overflow: "hidden",
|
|
158718
158696
|
} }, data.items.map((item, index) => (React$1.createElement(InventoryCompactRow, { key: item.id, item: item, isLast: index === data.items.length - 1, onSelect: fns.handleItemSelect }))))) : (React$1.createElement(Stack$1, { spacing: LIST_GAP }, data.items.map((item, index) => (React$1.createElement(InventoryItemCard, { key: item.id, item: item, isLast: index === data.items.length - 1, onSelect: fns.handleItemSelect, onEdit: fns.handleItemEdit }))))))))),
|
|
158719
158697
|
React$1.createElement(FilterDrawer, { open: data.isFilterDrawerOpen, onClose: fns.handleCloseFilterDrawer, onOpen: fns.handleToggleFilterDrawer, value: drawerValue, emptyValue: {
|
|
@@ -162679,9 +162657,11 @@ const MediumListPage = (props) => {
|
|
|
162679
162657
|
React$1.createElement(Button$1, { variant: "contained", startIcon: React$1.createElement(Add$1, null), onClick: fns.handleAddMedium, "aria-label": "Adicionar M\u00E9dium", fullWidth: true, sx: { maxWidth: { xs: "100%", sm: 260 } } }, "Adicionar M\u00E9dium")))),
|
|
162680
162658
|
React$1.createElement(Fade$1, { in: data.filteredMediums.length > 0 },
|
|
162681
162659
|
React$1.createElement(Card$1, { elevation: 0, sx: {
|
|
162682
|
-
borderRadius:
|
|
162683
|
-
border:
|
|
162660
|
+
borderRadius: 0,
|
|
162661
|
+
border: "none",
|
|
162662
|
+
boxShadow: "none",
|
|
162684
162663
|
overflow: "hidden",
|
|
162664
|
+
bgcolor: "transparent",
|
|
162685
162665
|
} },
|
|
162686
162666
|
React$1.createElement(CardContent$1, { sx: { p: 0 } },
|
|
162687
162667
|
React$1.createElement(List$1, { sx: {
|
|
@@ -174091,8 +174071,10 @@ const RitualBathListPage = (props) => {
|
|
|
174091
174071
|
!data.isLoading && !data.error && data.ritualBaths.length > 0 && (React$1.createElement(Box$1, { sx: { pb: LIST_CONTENT_BOTTOM_PADDING } },
|
|
174092
174072
|
React$1.createElement(InfiniteScroll, { hasNextPage: data.hasNextPage, isFetchingNextPage: data.isFetchingNextPage, onLoadMore: fns.handleLoadMore, threshold: 200 },
|
|
174093
174073
|
isMobile ? (React$1.createElement(Box$1, { sx: {
|
|
174094
|
-
bgcolor: "
|
|
174095
|
-
borderRadius:
|
|
174074
|
+
bgcolor: "transparent",
|
|
174075
|
+
borderRadius: 0,
|
|
174076
|
+
border: "none",
|
|
174077
|
+
boxShadow: "none",
|
|
174096
174078
|
overflow: "hidden",
|
|
174097
174079
|
} }, data.ritualBaths.map((bath, index) => (React$1.createElement(RitualBathCompactRow, { key: bath.id, bath: bath, isLast: index === data.ritualBaths.length - 1, originLabel: fns.getOriginLabel(bath.origin), statusLabel: fns.getStatusLabel(bath.status), onSelect: fns.handleBathSelect, onSchedule: fns.handleScheduleBath }))))) : (React$1.createElement(Grid$1, { container: true, spacing: LIST_GAP }, data.ritualBaths.map((bath) => (React$1.createElement(Grid$1, { item: true, xs: 12, key: bath.id },
|
|
174098
174080
|
React$1.createElement(RitualCard, { ritual: transformToRitual(bath, fns.getOriginLabel(bath.origin), fns.getStatusLabel(bath.status)), onClick: () => fns.handleBathSelect(bath.id), onSchedule: fns.handleScheduleBath })))))),
|
package/dist/bundle.cjs.js.map
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
[diffend] Oversized file quarantined before diffing.
|
|
2
2
|
name: package/dist/bundle.cjs.js.map
|
|
3
|
-
size:
|
|
4
|
-
sha256:
|
|
3
|
+
size: 59316926 bytes
|
|
4
|
+
sha256: 731687a6c66ec4748f3039f6c725adb7eb36872b649d6e0baa3947107f84c117
|