gsintegrations 0.0.486 → 0.0.487
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 -96
- package/dist/bundle.cjs.js.map +2 -2
- package/dist/bundle.esm.js +138 -96
- package/dist/bundle.esm.js.map +2 -2
- package/dist/index.d.ts +51 -0
- package/dist/types/components/FormChatAssistant/FormChatAssistant.types.d.ts +2 -0
- package/dist/types/pages/ActivityDetailPage/ActivityDetailPage.d.ts +1 -0
- package/dist/types/pages/ActivityDetailPage/ActivityDetailPage.types.d.ts +8 -0
- package/dist/types/pages/ActivityDetailPage/useActivityDetailPage.d.ts +1 -0
- package/dist/types/pages/ActivityListPage/ActivityListPage.types.d.ts +8 -0
- package/dist/types/pages/ActivityListPage/useActivityListPage.d.ts +1 -0
- package/dist/types/pages/ActivityOnboardingPage/ActivityOnboarding.types.d.ts +8 -0
- package/dist/types/pages/EventDetailPage/EventDetailPage.d.ts +2 -0
- package/dist/types/pages/EventDetailPage/EventDetailPage.types.d.ts +27 -0
- package/dist/types/pages/EventDetailPage/useEventDetailPage.d.ts +2 -0
- package/dist/types/pages/EventOnboardingPage/EventOnboarding.types.d.ts +22 -0
- package/dist/types/pages/EventOnboardingPage/components/EventActivitySelectionStep.d.ts +1 -0
- package/dist/types/pages/EventsPage/EventsPage.types.d.ts +8 -0
- package/dist/types/pages/EventsPage/useEventsPage.d.ts +1 -0
- package/dist/types/pages/HomePage/HomePage.types.d.ts +12 -0
- package/package.json +1 -1
package/dist/bundle.cjs.js
CHANGED
|
@@ -126888,7 +126888,7 @@ const ActivityFormChatSummaryCard = ({ summary, confirmLabel = "Criar atividade"
|
|
|
126888
126888
|
React$1.createElement(SummaryRow$4, { icon: React$1.createElement(default_1$X, { fontSize: "small" }), label: "Hor\u00E1rio", value: summary.isAllDay
|
|
126889
126889
|
? "Dia inteiro"
|
|
126890
126890
|
: `${formatTime$2(summary.startTime)} – ${formatTime$2(summary.endTime)}` }))) : null,
|
|
126891
|
-
summary.checkinStartWindowMinutes !== undefined ? (React$1.createElement(SummaryRow$4, { icon: React$1.createElement(default_1$X, { fontSize: "small" }), label: "Check-in", value: `${summary.checkinStartWindowMinutes} min antes / ${(_e = summary.checkinEndWindowMinutes) !== null && _e !== void 0 ? _e : 15} min depois` })) : null,
|
|
126891
|
+
summary.qrCheckinEnabled === false ? (React$1.createElement(SummaryRow$4, { icon: React$1.createElement(default_1$X, { fontSize: "small" }), label: "Check-in", value: "Desativado" })) : summary.checkinStartWindowMinutes !== undefined ? (React$1.createElement(SummaryRow$4, { icon: React$1.createElement(default_1$X, { fontSize: "small" }), label: "Check-in", value: `${summary.checkinStartWindowMinutes} min antes / ${(_e = summary.checkinEndWindowMinutes) !== null && _e !== void 0 ? _e : 15} min depois` })) : null,
|
|
126892
126892
|
React$1.createElement(SummaryRow$4, { icon: React$1.createElement(default_1$Z, { fontSize: "small" }), label: "Participantes", value: members }),
|
|
126893
126893
|
summary.minConfirmedMembers !== undefined ? (React$1.createElement(SummaryRow$4, { icon: React$1.createElement(default_1$Z, { fontSize: "small" }), label: "Qu\u00F3rum m\u00EDnimo", value: String(summary.minConfirmedMembers) })) : null,
|
|
126894
126894
|
React$1.createElement(SummaryRow$4, { icon: React$1.createElement(default_1$Y, { fontSize: "small" }), label: "Materiais", value: insumos })),
|
|
@@ -127036,7 +127036,7 @@ const EventFormChatSummaryCard = ({ summary, confirmLabel = "Criar evento", edit
|
|
|
127036
127036
|
React$1.createElement(SummaryRow$3, { icon: React$1.createElement(default_1$X, { fontSize: "small" }), label: "Hor\u00E1rio", value: summary.isAllDay
|
|
127037
127037
|
? "Dia inteiro"
|
|
127038
127038
|
: `${formatTime$1(summary.startTime)} – ${formatTime$1(summary.endTime)}` }))) : null,
|
|
127039
|
-
summary.checkinStartWindowMinutes !== undefined ? (React$1.createElement(SummaryRow$3, { icon: React$1.createElement(default_1$X, { fontSize: "small" }), label: "Check-in", value: `${summary.checkinStartWindowMinutes} min antes / ${(_g = summary.checkinEndWindowMinutes) !== null && _g !== void 0 ? _g : 15} min depois` })) : null,
|
|
127039
|
+
summary.qrCheckinEnabled === false ? (React$1.createElement(SummaryRow$3, { icon: React$1.createElement(default_1$X, { fontSize: "small" }), label: "Check-in", value: "Desativado" })) : summary.checkinStartWindowMinutes !== undefined ? (React$1.createElement(SummaryRow$3, { icon: React$1.createElement(default_1$X, { fontSize: "small" }), label: "Check-in", value: `${summary.checkinStartWindowMinutes} min antes / ${(_g = summary.checkinEndWindowMinutes) !== null && _g !== void 0 ? _g : 15} min depois` })) : null,
|
|
127040
127040
|
React$1.createElement(SummaryRow$3, { icon: React$1.createElement(default_1$14, { fontSize: "small" }), label: "Local", value: formatLocation(summary) }),
|
|
127041
127041
|
React$1.createElement(SummaryRow$3, { icon: React$1.createElement(default_1$W, { fontSize: "small" }), label: "Atividades", value: activities }),
|
|
127042
127042
|
React$1.createElement(SummaryRow$3, { icon: React$1.createElement(default_1$Z, { fontSize: "small" }), label: "Participantes", value: members }),
|
|
@@ -133252,27 +133252,31 @@ const ActivityCheckinWindowStep = ({ formState, validationErrors, onChange, setF
|
|
|
133252
133252
|
});
|
|
133253
133253
|
}
|
|
133254
133254
|
}, [setFieldValue, onChange]);
|
|
133255
|
+
const checkinEnabled = formState.qrCheckinEnabled !== false;
|
|
133255
133256
|
return (React$1.createElement(Box$1, { sx: { p: { xs: 0.5, sm: 1 } } },
|
|
133256
|
-
React$1.createElement(
|
|
133257
|
-
|
|
133258
|
-
|
|
133259
|
-
|
|
133260
|
-
|
|
133261
|
-
|
|
133262
|
-
|
|
133263
|
-
|
|
133264
|
-
|
|
133265
|
-
|
|
133266
|
-
|
|
133267
|
-
|
|
133268
|
-
"
|
|
133269
|
-
|
|
133270
|
-
|
|
133271
|
-
|
|
133272
|
-
|
|
133273
|
-
|
|
133274
|
-
|
|
133275
|
-
|
|
133257
|
+
React$1.createElement(FormControlLabel$1, { control: React$1.createElement(Switch$1, { checked: checkinEnabled, onChange: (_, checked) => updateField("qrCheckinEnabled", checked), inputProps: { "aria-label": "Habilitar check-in" }, "data-testid": "activity-checkin-enabled-switch" }), label: "Habilitar check-in", sx: { mb: 2, ml: 0 } }),
|
|
133258
|
+
!checkinEnabled ? (React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary" }, "Esta atividade n\u00E3o ter\u00E1 check-in na porta. A janela e o QR ficam ocultos.")) : null,
|
|
133259
|
+
checkinEnabled ? (React$1.createElement(React$1.Fragment, null,
|
|
133260
|
+
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mb: { xs: 2, sm: 3 } } },
|
|
133261
|
+
"Configure o intervalo de tempo permitido para check-in. O check-in estar\u00E1 dispon\u00EDvel a partir de X minutos ",
|
|
133262
|
+
React$1.createElement("strong", null, "antes"),
|
|
133263
|
+
" da atividade at\u00E9 Y minutos",
|
|
133264
|
+
React$1.createElement("strong", null, " ap\u00F3s"),
|
|
133265
|
+
" o in\u00EDcio."),
|
|
133266
|
+
React$1.createElement(Alert$1, { severity: "info", icon: React$1.createElement(Info$1, null), sx: { mb: { xs: 2, sm: 3 } } },
|
|
133267
|
+
React$1.createElement(Typography$1, { variant: "body2" },
|
|
133268
|
+
React$1.createElement("strong", null, "Exemplo:"),
|
|
133269
|
+
" Com os valores padr\u00E3o (10 e 15), se a atividade come\u00E7a \u00E0s 19h, o check-in abrir\u00E1 \u00E0s 18h50 e fechar\u00E1 \u00E0s 19h15.")),
|
|
133270
|
+
React$1.createElement(Box$1, { sx: { mb: { xs: 2, sm: 3 } } },
|
|
133271
|
+
React$1.createElement(LabeledMinuteInput, { name: "checkinStartWindowMinutes", label: "Abrir check-in (minutos antes)", value: formState.checkinStartWindowMinutes, onChange: (value) => updateField("checkinStartWindowMinutes", value), error: validationErrors.checkinStartWindowMinutes, helperText: validationErrors.checkinStartWindowMinutes ||
|
|
133272
|
+
"Quantos minutos antes da atividade checar entrada (0-120)", fallbackValue: 10, presets: [10, 20, 30], min: 0, max: 120, "data-testid": "activity-checkin-start-window-input" })),
|
|
133273
|
+
React$1.createElement(Box$1, { sx: { mb: { xs: 2, sm: 3 } } },
|
|
133274
|
+
React$1.createElement(LabeledMinuteInput, { name: "checkinEndWindowMinutes", label: "Fechar check-in (minutos ap\u00F3s)", value: formState.checkinEndWindowMinutes, onChange: (value) => updateField("checkinEndWindowMinutes", value), error: validationErrors.checkinEndWindowMinutes, helperText: validationErrors.checkinEndWindowMinutes ||
|
|
133275
|
+
"Quantos minutos após o início da atividade checar entrada (0-120)", fallbackValue: 15, presets: [10, 20, 30], min: 0, max: 120, "data-testid": "activity-checkin-end-window-input" })),
|
|
133276
|
+
React$1.createElement(Box$1, { sx: { p: { xs: 1.5, sm: 2 }, bgcolor: "action.hover", borderRadius: RADIUS.default } },
|
|
133277
|
+
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary" },
|
|
133278
|
+
React$1.createElement("strong", null, "Dica:"),
|
|
133279
|
+
" Para atividades ritualisticas, manter a precis\u00E3o \u00E9 importante. Use 10 minutos de abertura e 15 minutos de fechamento como padr\u00E3o para manter a disciplina energ\u00E9tica.")))) : null));
|
|
133276
133280
|
};
|
|
133277
133281
|
|
|
133278
133282
|
const MembersSelectionStep = ({ formState, validationErrors, onChange, availableMembers = [], }) => {
|
|
@@ -134074,6 +134078,7 @@ const TemplateSchema = objectType({
|
|
|
134074
134078
|
isTemplate: booleanType(),
|
|
134075
134079
|
});
|
|
134076
134080
|
const ActivityCheckinWindowSchema = objectType({
|
|
134081
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
134077
134082
|
checkinStartWindowMinutes: numberType()
|
|
134078
134083
|
.int()
|
|
134079
134084
|
.min(0, "Deve ser 0 ou maior")
|
|
@@ -134101,6 +134106,7 @@ objectType({
|
|
|
134101
134106
|
.int("Quórum mínimo deve ser um número inteiro")
|
|
134102
134107
|
.min(1, "Quórum mínimo deve ser pelo menos 1")
|
|
134103
134108
|
.optional(),
|
|
134109
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
134104
134110
|
checkinStartWindowMinutes: numberType()
|
|
134105
134111
|
.int()
|
|
134106
134112
|
.min(0)
|
|
@@ -134193,13 +134199,18 @@ const DEFAULT_FORM_STATE$4 = {
|
|
|
134193
134199
|
insumos: [],
|
|
134194
134200
|
isTemplate: false,
|
|
134195
134201
|
minConfirmedMembers: undefined,
|
|
134202
|
+
qrCheckinEnabled: true,
|
|
134196
134203
|
};
|
|
134197
134204
|
const useActivityOnboarding = (props) => {
|
|
134198
134205
|
const [isLoading, setIsLoading] = React$1.useState(false);
|
|
134199
134206
|
const [error, setError] = React$1.useState();
|
|
134200
134207
|
const formState = React$1.useMemo(() => {
|
|
134201
|
-
|
|
134202
|
-
|
|
134208
|
+
const base = props.initialData || DEFAULT_FORM_STATE$4;
|
|
134209
|
+
if (props.isPersonalProfile) {
|
|
134210
|
+
return Object.assign(Object.assign({}, base), { qrCheckinEnabled: false });
|
|
134211
|
+
}
|
|
134212
|
+
return base;
|
|
134213
|
+
}, [props.initialData, props.isPersonalProfile]);
|
|
134203
134214
|
const steps = React$1.useMemo(() => {
|
|
134204
134215
|
return [
|
|
134205
134216
|
{
|
|
@@ -134232,7 +134243,7 @@ const useActivityOnboarding = (props) => {
|
|
|
134232
134243
|
id: "checkin-window",
|
|
134233
134244
|
label: "Check-in",
|
|
134234
134245
|
title: "Configurar Check-in",
|
|
134235
|
-
description: "
|
|
134246
|
+
description: "Escolha se haverá check-in e, se houver, o período permitido",
|
|
134236
134247
|
component: ActivityCheckinWindowStep,
|
|
134237
134248
|
},
|
|
134238
134249
|
]),
|
|
@@ -134973,6 +134984,8 @@ const formatMinutesToHHMM$3 = (totalMinutes) => {
|
|
|
134973
134984
|
};
|
|
134974
134985
|
const getConfiguredCheckinWindow$1 = (activity) => {
|
|
134975
134986
|
var _a, _b, _c, _d;
|
|
134987
|
+
if (activity.qrCheckinEnabled === false)
|
|
134988
|
+
return null;
|
|
134976
134989
|
const startTime = (_b = (_a = activity.occurrences) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.startTime;
|
|
134977
134990
|
const startMinutes = parseTimeToMinutes$3(startTime);
|
|
134978
134991
|
if (startMinutes === null)
|
|
@@ -135277,26 +135290,27 @@ const ActivityDateTime = ({ activity, checkinWindow, formatDate, formatTime, the
|
|
|
135277
135290
|
? formatTime(occurrence.endTime)
|
|
135278
135291
|
: "Não definido"))))))) : (React$1.createElement(Box$1, { sx: { textAlign: "center", py: 2 } },
|
|
135279
135292
|
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary" }, "Nenhuma data definida"))),
|
|
135280
|
-
React$1.createElement(
|
|
135281
|
-
React$1.createElement(
|
|
135282
|
-
|
|
135283
|
-
"
|
|
135284
|
-
|
|
135285
|
-
|
|
135286
|
-
React$1.createElement(
|
|
135287
|
-
|
|
135288
|
-
|
|
135289
|
-
|
|
135290
|
-
|
|
135291
|
-
|
|
135292
|
-
|
|
135293
|
-
|
|
135294
|
-
|
|
135295
|
-
|
|
135296
|
-
|
|
135297
|
-
|
|
135298
|
-
|
|
135299
|
-
|
|
135293
|
+
activity.qrCheckinEnabled !== false ? (React$1.createElement(React$1.Fragment, null,
|
|
135294
|
+
React$1.createElement(Box$1, { sx: { display: "flex", alignItems: "center", mt: 1 } },
|
|
135295
|
+
React$1.createElement(AccessTime, { sx: { mr: 1.5, color: "text.secondary" } }),
|
|
135296
|
+
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mr: 1 } },
|
|
135297
|
+
"Check-in v\u00E1lido: ",
|
|
135298
|
+
getCheckinSummary()),
|
|
135299
|
+
checkinWindow ? (React$1.createElement(Box$1, { component: "span" },
|
|
135300
|
+
React$1.createElement(Typography$1, { component: "span", variant: "caption", sx: {
|
|
135301
|
+
px: 1,
|
|
135302
|
+
py: 0.25,
|
|
135303
|
+
borderRadius: RADIUS.default,
|
|
135304
|
+
border: `1px solid ${theme.palette.divider}`,
|
|
135305
|
+
color: checkinWindow.state === "active"
|
|
135306
|
+
? theme.palette.success.main
|
|
135307
|
+
: checkinWindow.state === "scheduled"
|
|
135308
|
+
? theme.palette.warning.main
|
|
135309
|
+
: checkinWindow.state === "closed"
|
|
135310
|
+
? theme.palette.error.main
|
|
135311
|
+
: theme.palette.text.secondary,
|
|
135312
|
+
} }, stateLabel[checkinWindow.state]))) : null),
|
|
135313
|
+
getCheckinExplanation() ? (React$1.createElement(Typography$1, { variant: "caption", color: "text.secondary", sx: { mt: 0.5 } }, getCheckinExplanation())) : null)) : null)));
|
|
135300
135314
|
};
|
|
135301
135315
|
var ActivityDateTime$1 = React$1.memo(ActivityDateTime);
|
|
135302
135316
|
|
|
@@ -135882,6 +135896,7 @@ const ActivitySchema$3 = objectType({
|
|
|
135882
135896
|
title: stringType(),
|
|
135883
135897
|
description: stringType(),
|
|
135884
135898
|
isTemplate: booleanType(),
|
|
135899
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
135885
135900
|
qrReleaseOffsetMinutes: numberType().nullable().optional(),
|
|
135886
135901
|
qrCheckinGraceMinutes: numberType().nullable().optional(),
|
|
135887
135902
|
checkinStartWindowMinutes: numberType().nullable().optional(),
|
|
@@ -135997,6 +136012,7 @@ const ActivityDetailSchema = objectType({
|
|
|
135997
136012
|
title: stringType(),
|
|
135998
136013
|
description: stringType(),
|
|
135999
136014
|
isTemplate: booleanType(),
|
|
136015
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
136000
136016
|
qrReleaseOffsetMinutes: numberType().nullable().optional(),
|
|
136001
136017
|
qrCheckinGraceMinutes: numberType().nullable().optional(),
|
|
136002
136018
|
checkinStartWindowMinutes: numberType().nullable().optional(),
|
|
@@ -136405,7 +136421,9 @@ const ActivityDetailPage = (props) => {
|
|
|
136405
136421
|
const bTime = b.confirmedAt ? new Date(b.confirmedAt).getTime() : 0;
|
|
136406
136422
|
return bTime - aTime;
|
|
136407
136423
|
});
|
|
136408
|
-
const
|
|
136424
|
+
const checkinEnabled = data.activity.qrCheckinEnabled !== false;
|
|
136425
|
+
const canShowCheckinCta = checkinEnabled &&
|
|
136426
|
+
props.canScanCheckin &&
|
|
136409
136427
|
((_a = props.checkinWindow) === null || _a === void 0 ? void 0 : _a.state) === "active" &&
|
|
136410
136428
|
!(currentMember === null || currentMember === void 0 ? void 0 : currentMember.confirmedAt) &&
|
|
136411
136429
|
!props.isPersonalProfile;
|
|
@@ -136430,7 +136448,7 @@ const ActivityDetailPage = (props) => {
|
|
|
136430
136448
|
React$1.createElement(Stack$1, { spacing: LIST_GAP },
|
|
136431
136449
|
React$1.createElement(ActivityInfo$1, { activity: data.activity, canChangeStatus: props.canChangeStatus || false, canUseModel: props.canUseModel || false, statusOptions: statusOptions, onStatusChange: fns.handleChangeStatus, onUseModel: fns.handleUseModel, theme: theme }),
|
|
136432
136450
|
React$1.createElement(ActivityDateTime$1, { activity: data.activity, checkinWindow: props.checkinWindow, formatDate: data.formatDate, formatTime: data.formatTime, theme: theme }),
|
|
136433
|
-
props.canManageQr && !props.isPersonalProfile && (React$1.createElement(ActivityAttendanceQr, { attendanceQr: props.attendanceQr, onRefreshQrState: props.onRefreshQrState })),
|
|
136451
|
+
checkinEnabled && props.canManageQr && !props.isPersonalProfile && (React$1.createElement(ActivityAttendanceQr, { attendanceQr: props.attendanceQr, onRefreshQrState: props.onRefreshQrState })),
|
|
136434
136452
|
React$1.createElement(ActivityMediums$1, { activity: data.activity, onAddMedium: fns.handleAddMedium, isAdmin: data.isAdmin, theme: theme, currentMemberId: data.currentMemberId, onConfirmParticipation: fns.handleConfirmParticipation, onDeclineParticipation: fns.handleDeclineParticipation }),
|
|
136435
136453
|
attendanceMembers.length > 0 && (React$1.createElement(ConfirmedAttendanceCard$3, { attendanceMembers: attendanceMembers, theme: theme, formatConfirmedAt: formatConfirmedAt })),
|
|
136436
136454
|
React$1.createElement(ActivitySupplies$1, { activity: data.activity, onAddSupply: fns.handleAddSupply, theme: theme })))),
|
|
@@ -137279,6 +137297,7 @@ const EventSchema = objectType({
|
|
|
137279
137297
|
name: stringType().optional(),
|
|
137280
137298
|
description: stringType().optional(),
|
|
137281
137299
|
isTemplate: booleanType().optional(),
|
|
137300
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
137282
137301
|
qrReleaseOffsetMinutes: numberType().nullable().optional(),
|
|
137283
137302
|
qrCheckinGraceMinutes: numberType().nullable().optional(),
|
|
137284
137303
|
checkinStartWindowMinutes: numberType().nullable().optional(),
|
|
@@ -137527,27 +137546,31 @@ const EventCheckinWindowStep = ({ formState, validationErrors, onChange, setFiel
|
|
|
137527
137546
|
onChange(createFieldEvent(name, value));
|
|
137528
137547
|
}
|
|
137529
137548
|
}, [setFieldValue, onChange]);
|
|
137549
|
+
const checkinEnabled = formState.qrCheckinEnabled !== false;
|
|
137530
137550
|
return (React$1.createElement(Box$1, { sx: { p: { xs: 0.5, sm: 1 } } },
|
|
137531
|
-
React$1.createElement(
|
|
137532
|
-
|
|
137533
|
-
|
|
137534
|
-
|
|
137535
|
-
|
|
137536
|
-
|
|
137537
|
-
|
|
137538
|
-
|
|
137539
|
-
|
|
137540
|
-
|
|
137541
|
-
|
|
137542
|
-
|
|
137543
|
-
"
|
|
137544
|
-
|
|
137545
|
-
|
|
137546
|
-
|
|
137547
|
-
|
|
137548
|
-
|
|
137549
|
-
|
|
137550
|
-
|
|
137551
|
+
React$1.createElement(FormControlLabel$1, { control: React$1.createElement(Switch$1, { checked: checkinEnabled, onChange: (_, checked) => updateField("qrCheckinEnabled", checked), inputProps: { "aria-label": "Habilitar check-in" }, "data-testid": "event-checkin-enabled-switch" }), label: "Habilitar check-in", sx: { mb: 2, ml: 0 } }),
|
|
137552
|
+
!checkinEnabled ? (React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary" }, "Este evento n\u00E3o ter\u00E1 check-in na porta. A janela e o QR ficam ocultos.")) : null,
|
|
137553
|
+
checkinEnabled ? (React$1.createElement(React$1.Fragment, null,
|
|
137554
|
+
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mb: 2.5 } },
|
|
137555
|
+
"Configure o intervalo de tempo permitido para check-in. O check-in estar\u00E1 dispon\u00EDvel a partir de X minutos ",
|
|
137556
|
+
React$1.createElement("strong", null, "antes"),
|
|
137557
|
+
" do evento at\u00E9 Y minutos",
|
|
137558
|
+
React$1.createElement("strong", null, " ap\u00F3s"),
|
|
137559
|
+
" o in\u00EDcio."),
|
|
137560
|
+
React$1.createElement(Alert$1, { severity: "info", icon: React$1.createElement(Info$1, null), sx: { mb: 2.5 } },
|
|
137561
|
+
React$1.createElement(Typography$1, { variant: "body2" },
|
|
137562
|
+
React$1.createElement("strong", null, "Exemplo:"),
|
|
137563
|
+
" Com os valores padr\u00E3o (10 e 15), se o evento come\u00E7a \u00E0s 19h, o check-in abrir\u00E1 \u00E0s 18h50 e fechar\u00E1 \u00E0s 19h15.")),
|
|
137564
|
+
React$1.createElement(Box$1, { sx: { mb: 2.5 } },
|
|
137565
|
+
React$1.createElement(LabeledMinuteInput, { name: "checkinStartWindowMinutes", label: "Abrir check-in (minutos antes)", value: formState.checkinStartWindowMinutes, onChange: (value) => updateField("checkinStartWindowMinutes", value), error: validationErrors.checkinStartWindowMinutes, helperText: validationErrors.checkinStartWindowMinutes ||
|
|
137566
|
+
"Quantos minutos antes do evento checar entrada (0-120)", fallbackValue: 10, min: 0, max: 120, "data-testid": "event-checkin-start-window-input" })),
|
|
137567
|
+
React$1.createElement(Box$1, { sx: { mb: 2.5 } },
|
|
137568
|
+
React$1.createElement(LabeledMinuteInput, { name: "checkinEndWindowMinutes", label: "Fechar check-in (minutos ap\u00F3s)", value: formState.checkinEndWindowMinutes, onChange: (value) => updateField("checkinEndWindowMinutes", value), error: validationErrors.checkinEndWindowMinutes, helperText: validationErrors.checkinEndWindowMinutes ||
|
|
137569
|
+
"Quantos minutos após o início do evento checar entrada (0-120)", fallbackValue: 15, min: 0, max: 120, "data-testid": "event-checkin-end-window-input" })),
|
|
137570
|
+
React$1.createElement(Box$1, { sx: { p: { xs: 1.5, sm: 2 }, bgcolor: "action.hover", borderRadius: RADIUS.default } },
|
|
137571
|
+
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary" },
|
|
137572
|
+
React$1.createElement("strong", null, "Dica:"),
|
|
137573
|
+
" Para eventos grandes, aumentar o intervalo de abertura (e.g. 20 minutos antes) permite que mais pessoas cheguem a tempo. Para eventos pequenos, 10 e 15 minutos geralmente \u00E9 o ideal.")))) : null));
|
|
137551
137574
|
};
|
|
137552
137575
|
|
|
137553
137576
|
let googleMapsScriptPromise = null;
|
|
@@ -138592,7 +138615,7 @@ const EventReviewStep = ({ formState, availableActivities, }) => {
|
|
|
138592
138615
|
React$1.createElement(Typography$1, { variant: "h6", sx: { mb: 2, display: "flex", alignItems: "center" } },
|
|
138593
138616
|
React$1.createElement(AccessTime, { sx: { mr: 1 } }),
|
|
138594
138617
|
" Janela de Check-in"),
|
|
138595
|
-
!formState.isAllDay ? (React$1.createElement(React$1.Fragment, null,
|
|
138618
|
+
formState.qrCheckinEnabled === false ? (React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary" }, "Check-in desativado para este evento.")) : !formState.isAllDay ? (React$1.createElement(React$1.Fragment, null,
|
|
138596
138619
|
React$1.createElement(Typography$1, { variant: "body2", sx: { mb: 1 } },
|
|
138597
138620
|
React$1.createElement("strong", null, "Evento:"),
|
|
138598
138621
|
" ",
|
|
@@ -139451,7 +139474,7 @@ const EventActivitySelectionStep = ({ formState, validationErrors, onChange, ava
|
|
|
139451
139474
|
"):"),
|
|
139452
139475
|
React$1.createElement(Button$1, { variant: "text", size: "small", startIcon: React$1.createElement(Clear$1, null), onClick: handleClear, sx: { alignSelf: { xs: "stretch", sm: "flex-start" } } }, "Limpar todas")),
|
|
139453
139476
|
selectedActivities.map((activity) => {
|
|
139454
|
-
var _a, _b, _c, _d, _e, _f;
|
|
139477
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
139455
139478
|
return (React$1.createElement(Box$1, { key: activity.id, sx: {
|
|
139456
139479
|
mb: 1.5,
|
|
139457
139480
|
p: { xs: 1.25, sm: 1.5 },
|
|
@@ -139495,8 +139518,9 @@ const EventActivitySelectionStep = ({ formState, validationErrors, onChange, ava
|
|
|
139495
139518
|
} },
|
|
139496
139519
|
React$1.createElement(LabeledTimePicker, { label: "In\u00EDcio", value: activity.startTime || "", error: (_a = activityTimeValidation.errorsByActivityId[String(activity.id)]) === null || _a === void 0 ? void 0 : _a.startTime, helperText: ((_b = activityTimeValidation.errorsByActivityId[String(activity.id)]) === null || _b === void 0 ? void 0 : _b.startTime) || " ", onChange: (value) => handleActivityTimeChange(activity.id, "startTime", value), "data-testid": `event-activity-start-time-${activity.id}` }),
|
|
139497
139520
|
React$1.createElement(LabeledTimePicker, { label: "T\u00E9rmino", value: activity.endTime || "", error: (_c = activityTimeValidation.errorsByActivityId[String(activity.id)]) === null || _c === void 0 ? void 0 : _c.endTime, helperText: ((_d = activityTimeValidation.errorsByActivityId[String(activity.id)]) === null || _d === void 0 ? void 0 : _d.endTime) || " ", onChange: (value) => handleActivityTimeChange(activity.id, "endTime", value), "data-testid": `event-activity-end-time-${activity.id}` }),
|
|
139498
|
-
|
|
139499
|
-
|
|
139521
|
+
((_e = availableActivities.find((item) => String(item.id) === String(activity.id))) === null || _e === void 0 ? void 0 : _e.qrCheckinEnabled) !== false ? (React$1.createElement(React$1.Fragment, null,
|
|
139522
|
+
React$1.createElement(TextField$1, { fullWidth: true, label: checkinOpenLabel, type: "number", size: "small", value: (_f = activity.checkinStartWindowMinutes) !== null && _f !== void 0 ? _f : 10, onChange: (e) => handleActivityCheckinWindowChange(activity.id, "checkinStartWindowMinutes", e.target.value), InputLabelProps: { shrink: true }, inputProps: { min: 0, max: 120 }, helperText: isMobile ? "Antes do início" : "Minutos antes do início" }),
|
|
139523
|
+
React$1.createElement(TextField$1, { fullWidth: true, label: checkinCloseLabel, type: "number", size: "small", value: (_g = activity.checkinEndWindowMinutes) !== null && _g !== void 0 ? _g : 15, onChange: (e) => handleActivityCheckinWindowChange(activity.id, "checkinEndWindowMinutes", e.target.value), InputLabelProps: { shrink: true }, inputProps: { min: 0, max: 120 }, helperText: isMobile ? "Após o início" : "Minutos após o início" }))) : null),
|
|
139500
139524
|
React$1.createElement(Box$1, { sx: {
|
|
139501
139525
|
display: "flex",
|
|
139502
139526
|
alignItems: { xs: "flex-start", sm: "center" },
|
|
@@ -139736,6 +139760,7 @@ const EventLocationSchema = objectType({
|
|
|
139736
139760
|
}
|
|
139737
139761
|
});
|
|
139738
139762
|
const EventCheckinWindowSchema = objectType({
|
|
139763
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
139739
139764
|
checkinStartWindowMinutes: numberType()
|
|
139740
139765
|
.int()
|
|
139741
139766
|
.min(0, "Deve ser 0 ou maior")
|
|
@@ -139788,6 +139813,7 @@ const ActivitySchema$1 = objectType({
|
|
|
139788
139813
|
durationMinutes: numberType().optional(),
|
|
139789
139814
|
startTime: stringType().optional(), // HH:MM — per-activity start time for the event
|
|
139790
139815
|
endTime: stringType().optional(), // HH:MM — per-activity end time for the event
|
|
139816
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
139791
139817
|
checkinStartWindowMinutes: numberType().int().min(0).max(120).optional(),
|
|
139792
139818
|
checkinEndWindowMinutes: numberType().int().min(0).max(120).optional(),
|
|
139793
139819
|
qrReleaseOffsetMinutes: numberType().int().min(0).max(180).optional(),
|
|
@@ -139847,6 +139873,7 @@ const EventFormValuesSchema = objectType({
|
|
|
139847
139873
|
insumos: arrayType(anyType()).optional(),
|
|
139848
139874
|
activities: arrayType(ActivitySchema$1).optional(), // Changed from activity to activities
|
|
139849
139875
|
requiredActivityIds: arrayType(stringType()).optional(),
|
|
139876
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
139850
139877
|
checkinStartWindowMinutes: numberType()
|
|
139851
139878
|
.int()
|
|
139852
139879
|
.min(0)
|
|
@@ -139964,6 +139991,7 @@ const DEFAULT_FORM_STATE$3 = {
|
|
|
139964
139991
|
isAllDay: false,
|
|
139965
139992
|
startTime: "",
|
|
139966
139993
|
endTime: "",
|
|
139994
|
+
qrCheckinEnabled: true,
|
|
139967
139995
|
checkinStartWindowMinutes: 10,
|
|
139968
139996
|
checkinEndWindowMinutes: 15,
|
|
139969
139997
|
location: {
|
|
@@ -140004,24 +140032,26 @@ const EMPTY_SCHEMA = objectType({});
|
|
|
140004
140032
|
* Computes the initial form state from props, applying terreiro address
|
|
140005
140033
|
* defaults when the location type is "in terreiro".
|
|
140006
140034
|
*/
|
|
140007
|
-
const buildInitialFormState = (initialData, isTerreiroAddressEmpty, knownLocations) => {
|
|
140035
|
+
const buildInitialFormState = (initialData, isTerreiroAddressEmpty, knownLocations, isPersonalProfile = false) => {
|
|
140008
140036
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
140009
140037
|
const baseState = initialData !== null && initialData !== void 0 ? initialData : DEFAULT_FORM_STATE$3;
|
|
140010
|
-
const
|
|
140038
|
+
const withCheckin = isPersonalProfile
|
|
140039
|
+
? Object.assign(Object.assign({}, baseState), { qrCheckinEnabled: false }) : baseState;
|
|
140040
|
+
const isCreateFlow = !withCheckin.id;
|
|
140011
140041
|
if (isCreateFlow) {
|
|
140012
140042
|
const fallback = (knownLocations && knownLocations[0]) || "Endereço do Terreiro";
|
|
140013
|
-
const existingKnownLocation = ((_c = (_b = (_a =
|
|
140014
|
-
return Object.assign(Object.assign({},
|
|
140043
|
+
const existingKnownLocation = ((_c = (_b = (_a = withCheckin.location) === null || _a === void 0 ? void 0 : _a.knownLocation) === null || _b === void 0 ? void 0 : _b.trim) === null || _c === void 0 ? void 0 : _c.call(_b)) || "";
|
|
140044
|
+
return Object.assign(Object.assign({}, withCheckin), { location: Object.assign(Object.assign({}, withCheckin.location), { isInTerreiro: !isTerreiroAddressEmpty, knownLocation: !isTerreiroAddressEmpty
|
|
140015
140045
|
? existingKnownLocation || fallback
|
|
140016
|
-
: (_e = (_d =
|
|
140046
|
+
: (_e = (_d = withCheckin.location) === null || _d === void 0 ? void 0 : _d.knownLocation) !== null && _e !== void 0 ? _e : "" }) });
|
|
140017
140047
|
}
|
|
140018
|
-
const shouldDefaultToTerreiro = (_g = (_f =
|
|
140048
|
+
const shouldDefaultToTerreiro = (_g = (_f = withCheckin.location) === null || _f === void 0 ? void 0 : _f.isInTerreiro) !== null && _g !== void 0 ? _g : true;
|
|
140019
140049
|
if (shouldDefaultToTerreiro && !isTerreiroAddressEmpty) {
|
|
140020
|
-
const existing = ((_k = (_j = (_h =
|
|
140050
|
+
const existing = ((_k = (_j = (_h = withCheckin.location) === null || _h === void 0 ? void 0 : _h.knownLocation) === null || _j === void 0 ? void 0 : _j.trim) === null || _k === void 0 ? void 0 : _k.call(_j)) || "";
|
|
140021
140051
|
const fallback = (knownLocations && knownLocations[0]) || "Endereço do Terreiro";
|
|
140022
|
-
return Object.assign(Object.assign({},
|
|
140052
|
+
return Object.assign(Object.assign({}, withCheckin), { location: Object.assign(Object.assign({}, withCheckin.location), { isInTerreiro: true, knownLocation: existing || fallback }) });
|
|
140023
140053
|
}
|
|
140024
|
-
return
|
|
140054
|
+
return withCheckin;
|
|
140025
140055
|
};
|
|
140026
140056
|
// ---------------------------------------------------------------------------
|
|
140027
140057
|
// Hook
|
|
@@ -140031,7 +140061,7 @@ const useEventOnboarding = (props) => {
|
|
|
140031
140061
|
const { initialData, isTerreiroAddressEmpty, knownLocations, createFromModel, availableActivities, canAddActivities = true, activityQuotaMessage, canCreateTemplates = true, templateQuotaMessage, availableMembers, availableInsumos, onComplete, onCancel, onStepChange: onStepChangeProp, onRequestAISuggestions, isAISuggestionsLoading = false, isPersonalProfile = false, enableGoogleAddress = false, googleMapsApiKey, googleCountryCode = "br", googleLanguage = "pt-BR", } = props;
|
|
140032
140062
|
const [isLoading, setIsLoading] = React$1.useState(false);
|
|
140033
140063
|
const [error, setError] = React$1.useState();
|
|
140034
|
-
const initialFormState = React$1.useMemo(() => buildInitialFormState(initialData, isTerreiroAddressEmpty, knownLocations), [initialData, isTerreiroAddressEmpty, knownLocations]);
|
|
140064
|
+
const initialFormState = React$1.useMemo(() => buildInitialFormState(initialData, isTerreiroAddressEmpty, knownLocations, isPersonalProfile), [initialData, isTerreiroAddressEmpty, knownLocations, isPersonalProfile]);
|
|
140035
140065
|
// -----------------------------------------------------------------------
|
|
140036
140066
|
// Step definitions — pure data, no inline wrapper components
|
|
140037
140067
|
// -----------------------------------------------------------------------
|
|
@@ -140074,7 +140104,7 @@ const useEventOnboarding = (props) => {
|
|
|
140074
140104
|
id: "checkin-window",
|
|
140075
140105
|
label: "Check-in",
|
|
140076
140106
|
title: "Configurar Check-in",
|
|
140077
|
-
description: "
|
|
140107
|
+
description: "Escolha se haverá check-in e, se houver, o período permitido",
|
|
140078
140108
|
component: EventCheckinWindowStep,
|
|
140079
140109
|
},
|
|
140080
140110
|
]),
|
|
@@ -140391,17 +140421,18 @@ const EventDateTime = ({ event, checkinWindow, formatDate, formatTime, theme, })
|
|
|
140391
140421
|
? formatTime(firstOccurrence.endTime)
|
|
140392
140422
|
: "Não definido"))),
|
|
140393
140423
|
isAllDay && (React$1.createElement(Chip$1, { label: "Dia inteiro", size: "small", color: "primary", variant: "outlined", sx: { mb: 1.5 } })),
|
|
140394
|
-
React$1.createElement(
|
|
140395
|
-
React$1.createElement(
|
|
140396
|
-
|
|
140397
|
-
|
|
140398
|
-
|
|
140399
|
-
|
|
140400
|
-
|
|
140401
|
-
"
|
|
140402
|
-
|
|
140403
|
-
|
|
140404
|
-
|
|
140424
|
+
event.qrCheckinEnabled !== false ? (React$1.createElement(React$1.Fragment, null,
|
|
140425
|
+
React$1.createElement(Box$1, { sx: { display: "flex", alignItems: "center", mb: 0.75 } },
|
|
140426
|
+
React$1.createElement(AccessTime, { sx: {
|
|
140427
|
+
mr: 1.5,
|
|
140428
|
+
color: "text.secondary",
|
|
140429
|
+
fontSize: { xs: 18, sm: 20 },
|
|
140430
|
+
} }),
|
|
140431
|
+
React$1.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mr: 1 } },
|
|
140432
|
+
"Check-in v\u00E1lido: ",
|
|
140433
|
+
getCheckinSummary()),
|
|
140434
|
+
checkinWindow ? (React$1.createElement(Chip$1, { label: stateLabel[checkinWindow.state], size: "small", color: stateColor[checkinWindow.state], variant: "outlined" })) : null),
|
|
140435
|
+
getCheckinExplanation() ? (React$1.createElement(Typography$1, { variant: "caption", color: "text.secondary" }, getCheckinExplanation())) : null)) : null)));
|
|
140405
140436
|
};
|
|
140406
140437
|
var EventDateTime$1 = React$1.memo(EventDateTime);
|
|
140407
140438
|
|
|
@@ -140932,7 +140963,9 @@ const EventActivities = ({ event, theme, formatDate, formatTime, canChangeActivi
|
|
|
140932
140963
|
} },
|
|
140933
140964
|
React$1.createElement(Typography$1, { variant: "h6", fontWeight: "medium" }, activity.title),
|
|
140934
140965
|
React$1.createElement(Box$1, { sx: { display: "flex", gap: 1, alignItems: "flex-start" } },
|
|
140935
|
-
!isModelEvent &&
|
|
140966
|
+
!isModelEvent &&
|
|
140967
|
+
onActivityQrOpen &&
|
|
140968
|
+
activity.qrCheckinEnabled !== false && (React$1.createElement(Box$1, { sx: {
|
|
140936
140969
|
display: "flex",
|
|
140937
140970
|
flexDirection: "column",
|
|
140938
140971
|
alignItems: "flex-end",
|
|
@@ -140989,6 +141022,7 @@ const EventActivities = ({ event, theme, formatDate, formatTime, canChangeActivi
|
|
|
140989
141022
|
? formatTime(activity.occurrences[0].endTime)
|
|
140990
141023
|
: "Não definido")))),
|
|
140991
141024
|
!isModelEvent &&
|
|
141025
|
+
activity.qrCheckinEnabled !== false &&
|
|
140992
141026
|
(() => {
|
|
140993
141027
|
var _a, _b, _c, _d;
|
|
140994
141028
|
const startMinutes = parseTimeToMinutes$2((_b = (_a = activity.occurrences) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.startTime);
|
|
@@ -141465,6 +141499,7 @@ const TerreiroSchema = objectType({
|
|
|
141465
141499
|
const ActivitySchema = objectType({
|
|
141466
141500
|
id: stringType(),
|
|
141467
141501
|
requiredForConfirmation: booleanType().optional(),
|
|
141502
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
141468
141503
|
qrReleaseOffsetMinutes: numberType().nullable().optional(),
|
|
141469
141504
|
qrCheckinGraceMinutes: numberType().nullable().optional(),
|
|
141470
141505
|
checkinStartWindowMinutes: numberType().nullable().optional(),
|
|
@@ -141491,6 +141526,7 @@ const EventDetailSchema = objectType({
|
|
|
141491
141526
|
name: stringType().optional(),
|
|
141492
141527
|
description: stringType().optional(),
|
|
141493
141528
|
isTemplate: booleanType().optional(),
|
|
141529
|
+
qrCheckinEnabled: booleanType().optional(),
|
|
141494
141530
|
qrReleaseOffsetMinutes: numberType().nullable().optional(),
|
|
141495
141531
|
qrCheckinGraceMinutes: numberType().nullable().optional(),
|
|
141496
141532
|
checkinStartWindowMinutes: numberType().nullable().optional(),
|
|
@@ -142018,7 +142054,9 @@ const EventDetailPage = (props) => {
|
|
|
142018
142054
|
}
|
|
142019
142055
|
const statusOptions = data.getStatusMenuOptions(data.event);
|
|
142020
142056
|
const currentMember = (_c = data.event.members) === null || _c === void 0 ? void 0 : _c.list.find((m) => m.id === data.currentMemberId);
|
|
142021
|
-
const
|
|
142057
|
+
const checkinEnabled = data.event.qrCheckinEnabled !== false;
|
|
142058
|
+
const canShowCheckinCta = checkinEnabled &&
|
|
142059
|
+
props.canScanCheckin &&
|
|
142022
142060
|
((_d = props.checkinWindow) === null || _d === void 0 ? void 0 : _d.state) === "active" &&
|
|
142023
142061
|
!(currentMember === null || currentMember === void 0 ? void 0 : currentMember.confirmedAt) &&
|
|
142024
142062
|
!props.isPersonalProfile;
|
|
@@ -142053,7 +142091,7 @@ const EventDetailPage = (props) => {
|
|
|
142053
142091
|
React$1.createElement(Stack$1, { spacing: LIST_GAP },
|
|
142054
142092
|
React$1.createElement(EventInfo$1, { event: data.event, canChangeStatus: props.canChangeStatus || false, canUseModel: props.canUseModel || false, statusOptions: statusOptions, onStatusChange: (status) => fns.handleChangeStatus(status), onUseModel: fns.handleUseModel, theme: theme }),
|
|
142055
142093
|
React$1.createElement(EventDateTime$1, { event: data.event, checkinWindow: props.checkinWindow, formatDate: data.formatDate, formatTime: data.formatTime, theme: theme }),
|
|
142056
|
-
props.canManageQr && (React$1.createElement(EventAttendanceQr, { attendanceQr: props.attendanceQr, onRefreshQrState: props.onRefreshQrState, onCopyCode: fns.handleCopyCode })),
|
|
142094
|
+
props.canManageQr && checkinEnabled && (React$1.createElement(EventAttendanceQr, { attendanceQr: props.attendanceQr, onRefreshQrState: props.onRefreshQrState, onCopyCode: fns.handleCopyCode })),
|
|
142057
142095
|
props.canManageTickets && (React$1.createElement(EventPublicTickets$1, { onManageTickets: props.onManageTickets, theme: theme })),
|
|
142058
142096
|
data.event.address && (React$1.createElement(EventAddress$1, { event: data.event, theme: theme })),
|
|
142059
142097
|
data.event.activities && data.event.activities.count > 0 && (React$1.createElement(EventActivities$1, { event: data.event, theme: theme, formatDate: data.formatDate, formatTime: data.formatTime, activityAttendanceQrById: props.activityAttendanceQrById, canChangeActivityStatus: props.canChangeActivityStatus || false, getStatusMenuOptions: data.getActivityStatusMenuOptions, onChangeActivityStatus: fns.handleChangeActivityStatus, onBulkChangeActivityStatus: fns.handleBulkChangeActivityStatus, onActivityQrOpen: props.canManageQr ? setSelectedActivityQrId : undefined })),
|
|
@@ -143073,6 +143111,8 @@ const formatMinutesToHHMM$1 = (totalMinutes) => {
|
|
|
143073
143111
|
};
|
|
143074
143112
|
const getConfiguredCheckinWindow = (event) => {
|
|
143075
143113
|
var _a, _b, _c, _d, _e;
|
|
143114
|
+
if (event.qrCheckinEnabled === false)
|
|
143115
|
+
return null;
|
|
143076
143116
|
const startTime = (_c = (_b = (_a = event.occurrences) === null || _a === void 0 ? void 0 : _a.list) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.startTime;
|
|
143077
143117
|
const startMinutes = parseTimeToMinutes$1(startTime);
|
|
143078
143118
|
if (startMinutes === null)
|
|
@@ -153269,6 +153309,8 @@ const formatMinutesToHHMM = (totalMinutes) => {
|
|
|
153269
153309
|
};
|
|
153270
153310
|
const getCheckinWindowRange = (event) => {
|
|
153271
153311
|
var _a, _b;
|
|
153312
|
+
if (event.qrCheckinEnabled === false)
|
|
153313
|
+
return null;
|
|
153272
153314
|
const startMinutes = parseTimeToMinutes(event.time);
|
|
153273
153315
|
if (startMinutes === null)
|
|
153274
153316
|
return null;
|
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: 59264172 bytes
|
|
4
|
+
sha256: 90ab4e03d24f6e435a0e091fd7bbd9bbe048f0faa84308292180cc0e1cd958f3
|