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.
@@ -126868,7 +126868,7 @@ const ActivityFormChatSummaryCard = ({ summary, confirmLabel = "Criar atividade"
126868
126868
  React__default.createElement(SummaryRow$4, { icon: React__default.createElement(default_1$X, { fontSize: "small" }), label: "Hor\u00E1rio", value: summary.isAllDay
126869
126869
  ? "Dia inteiro"
126870
126870
  : `${formatTime$2(summary.startTime)} – ${formatTime$2(summary.endTime)}` }))) : null,
126871
- summary.checkinStartWindowMinutes !== undefined ? (React__default.createElement(SummaryRow$4, { icon: React__default.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,
126871
+ summary.qrCheckinEnabled === false ? (React__default.createElement(SummaryRow$4, { icon: React__default.createElement(default_1$X, { fontSize: "small" }), label: "Check-in", value: "Desativado" })) : summary.checkinStartWindowMinutes !== undefined ? (React__default.createElement(SummaryRow$4, { icon: React__default.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,
126872
126872
  React__default.createElement(SummaryRow$4, { icon: React__default.createElement(default_1$Z, { fontSize: "small" }), label: "Participantes", value: members }),
126873
126873
  summary.minConfirmedMembers !== undefined ? (React__default.createElement(SummaryRow$4, { icon: React__default.createElement(default_1$Z, { fontSize: "small" }), label: "Qu\u00F3rum m\u00EDnimo", value: String(summary.minConfirmedMembers) })) : null,
126874
126874
  React__default.createElement(SummaryRow$4, { icon: React__default.createElement(default_1$Y, { fontSize: "small" }), label: "Materiais", value: insumos })),
@@ -127016,7 +127016,7 @@ const EventFormChatSummaryCard = ({ summary, confirmLabel = "Criar evento", edit
127016
127016
  React__default.createElement(SummaryRow$3, { icon: React__default.createElement(default_1$X, { fontSize: "small" }), label: "Hor\u00E1rio", value: summary.isAllDay
127017
127017
  ? "Dia inteiro"
127018
127018
  : `${formatTime$1(summary.startTime)} – ${formatTime$1(summary.endTime)}` }))) : null,
127019
- summary.checkinStartWindowMinutes !== undefined ? (React__default.createElement(SummaryRow$3, { icon: React__default.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,
127019
+ summary.qrCheckinEnabled === false ? (React__default.createElement(SummaryRow$3, { icon: React__default.createElement(default_1$X, { fontSize: "small" }), label: "Check-in", value: "Desativado" })) : summary.checkinStartWindowMinutes !== undefined ? (React__default.createElement(SummaryRow$3, { icon: React__default.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,
127020
127020
  React__default.createElement(SummaryRow$3, { icon: React__default.createElement(default_1$14, { fontSize: "small" }), label: "Local", value: formatLocation(summary) }),
127021
127021
  React__default.createElement(SummaryRow$3, { icon: React__default.createElement(default_1$W, { fontSize: "small" }), label: "Atividades", value: activities }),
127022
127022
  React__default.createElement(SummaryRow$3, { icon: React__default.createElement(default_1$Z, { fontSize: "small" }), label: "Participantes", value: members }),
@@ -133232,27 +133232,31 @@ const ActivityCheckinWindowStep = ({ formState, validationErrors, onChange, setF
133232
133232
  });
133233
133233
  }
133234
133234
  }, [setFieldValue, onChange]);
133235
+ const checkinEnabled = formState.qrCheckinEnabled !== false;
133235
133236
  return (React__default.createElement(Box$1, { sx: { p: { xs: 0.5, sm: 1 } } },
133236
- React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mb: { xs: 2, sm: 3 } } },
133237
- "Configure o intervalo de tempo permitido para check-in. O check-in estar\u00E1 dispon\u00EDvel a partir de X minutos ",
133238
- React__default.createElement("strong", null, "antes"),
133239
- " da atividade at\u00E9 Y minutos",
133240
- React__default.createElement("strong", null, " ap\u00F3s"),
133241
- " o in\u00EDcio."),
133242
- React__default.createElement(Alert$1, { severity: "info", icon: React__default.createElement(Info$1, null), sx: { mb: { xs: 2, sm: 3 } } },
133243
- React__default.createElement(Typography$1, { variant: "body2" },
133244
- React__default.createElement("strong", null, "Exemplo:"),
133245
- " 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.")),
133246
- React__default.createElement(Box$1, { sx: { mb: { xs: 2, sm: 3 } } },
133247
- React__default.createElement(LabeledMinuteInput, { name: "checkinStartWindowMinutes", label: "Abrir check-in (minutos antes)", value: formState.checkinStartWindowMinutes, onChange: (value) => updateField("checkinStartWindowMinutes", value), error: validationErrors.checkinStartWindowMinutes, helperText: validationErrors.checkinStartWindowMinutes ||
133248
- "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" })),
133249
- React__default.createElement(Box$1, { sx: { mb: { xs: 2, sm: 3 } } },
133250
- React__default.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 ||
133251
- "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" })),
133252
- React__default.createElement(Box$1, { sx: { p: { xs: 1.5, sm: 2 }, bgcolor: "action.hover", borderRadius: RADIUS.default } },
133253
- React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary" },
133254
- React__default.createElement("strong", null, "Dica:"),
133255
- " 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."))));
133237
+ React__default.createElement(FormControlLabel$1, { control: React__default.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 } }),
133238
+ !checkinEnabled ? (React__default.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,
133239
+ checkinEnabled ? (React__default.createElement(React__default.Fragment, null,
133240
+ React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mb: { xs: 2, sm: 3 } } },
133241
+ "Configure o intervalo de tempo permitido para check-in. O check-in estar\u00E1 dispon\u00EDvel a partir de X minutos ",
133242
+ React__default.createElement("strong", null, "antes"),
133243
+ " da atividade at\u00E9 Y minutos",
133244
+ React__default.createElement("strong", null, " ap\u00F3s"),
133245
+ " o in\u00EDcio."),
133246
+ React__default.createElement(Alert$1, { severity: "info", icon: React__default.createElement(Info$1, null), sx: { mb: { xs: 2, sm: 3 } } },
133247
+ React__default.createElement(Typography$1, { variant: "body2" },
133248
+ React__default.createElement("strong", null, "Exemplo:"),
133249
+ " 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.")),
133250
+ React__default.createElement(Box$1, { sx: { mb: { xs: 2, sm: 3 } } },
133251
+ React__default.createElement(LabeledMinuteInput, { name: "checkinStartWindowMinutes", label: "Abrir check-in (minutos antes)", value: formState.checkinStartWindowMinutes, onChange: (value) => updateField("checkinStartWindowMinutes", value), error: validationErrors.checkinStartWindowMinutes, helperText: validationErrors.checkinStartWindowMinutes ||
133252
+ "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" })),
133253
+ React__default.createElement(Box$1, { sx: { mb: { xs: 2, sm: 3 } } },
133254
+ React__default.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 ||
133255
+ "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" })),
133256
+ React__default.createElement(Box$1, { sx: { p: { xs: 1.5, sm: 2 }, bgcolor: "action.hover", borderRadius: RADIUS.default } },
133257
+ React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary" },
133258
+ React__default.createElement("strong", null, "Dica:"),
133259
+ " 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));
133256
133260
  };
133257
133261
 
133258
133262
  const MembersSelectionStep = ({ formState, validationErrors, onChange, availableMembers = [], }) => {
@@ -134054,6 +134058,7 @@ const TemplateSchema = objectType({
134054
134058
  isTemplate: booleanType(),
134055
134059
  });
134056
134060
  const ActivityCheckinWindowSchema = objectType({
134061
+ qrCheckinEnabled: booleanType().optional(),
134057
134062
  checkinStartWindowMinutes: numberType()
134058
134063
  .int()
134059
134064
  .min(0, "Deve ser 0 ou maior")
@@ -134081,6 +134086,7 @@ objectType({
134081
134086
  .int("Quórum mínimo deve ser um número inteiro")
134082
134087
  .min(1, "Quórum mínimo deve ser pelo menos 1")
134083
134088
  .optional(),
134089
+ qrCheckinEnabled: booleanType().optional(),
134084
134090
  checkinStartWindowMinutes: numberType()
134085
134091
  .int()
134086
134092
  .min(0)
@@ -134173,13 +134179,18 @@ const DEFAULT_FORM_STATE$4 = {
134173
134179
  insumos: [],
134174
134180
  isTemplate: false,
134175
134181
  minConfirmedMembers: undefined,
134182
+ qrCheckinEnabled: true,
134176
134183
  };
134177
134184
  const useActivityOnboarding = (props) => {
134178
134185
  const [isLoading, setIsLoading] = useState(false);
134179
134186
  const [error, setError] = useState();
134180
134187
  const formState = useMemo(() => {
134181
- return props.initialData || DEFAULT_FORM_STATE$4;
134182
- }, [props.initialData]);
134188
+ const base = props.initialData || DEFAULT_FORM_STATE$4;
134189
+ if (props.isPersonalProfile) {
134190
+ return Object.assign(Object.assign({}, base), { qrCheckinEnabled: false });
134191
+ }
134192
+ return base;
134193
+ }, [props.initialData, props.isPersonalProfile]);
134183
134194
  const steps = useMemo(() => {
134184
134195
  return [
134185
134196
  {
@@ -134212,7 +134223,7 @@ const useActivityOnboarding = (props) => {
134212
134223
  id: "checkin-window",
134213
134224
  label: "Check-in",
134214
134225
  title: "Configurar Check-in",
134215
- description: "Defina o período permitido para que os participantes façam check-in",
134226
+ description: "Escolha se haverá check-in e, se houver, o período permitido",
134216
134227
  component: ActivityCheckinWindowStep,
134217
134228
  },
134218
134229
  ]),
@@ -134953,6 +134964,8 @@ const formatMinutesToHHMM$3 = (totalMinutes) => {
134953
134964
  };
134954
134965
  const getConfiguredCheckinWindow$1 = (activity) => {
134955
134966
  var _a, _b, _c, _d;
134967
+ if (activity.qrCheckinEnabled === false)
134968
+ return null;
134956
134969
  const startTime = (_b = (_a = activity.occurrences) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.startTime;
134957
134970
  const startMinutes = parseTimeToMinutes$3(startTime);
134958
134971
  if (startMinutes === null)
@@ -135257,26 +135270,27 @@ const ActivityDateTime = ({ activity, checkinWindow, formatDate, formatTime, the
135257
135270
  ? formatTime(occurrence.endTime)
135258
135271
  : "Não definido"))))))) : (React__default.createElement(Box$1, { sx: { textAlign: "center", py: 2 } },
135259
135272
  React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary" }, "Nenhuma data definida"))),
135260
- React__default.createElement(Box$1, { sx: { display: "flex", alignItems: "center", mt: 1 } },
135261
- React__default.createElement(AccessTime, { sx: { mr: 1.5, color: "text.secondary" } }),
135262
- React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mr: 1 } },
135263
- "Check-in v\u00E1lido: ",
135264
- getCheckinSummary()),
135265
- checkinWindow ? (React__default.createElement(Box$1, { component: "span" },
135266
- React__default.createElement(Typography$1, { component: "span", variant: "caption", sx: {
135267
- px: 1,
135268
- py: 0.25,
135269
- borderRadius: RADIUS.default,
135270
- border: `1px solid ${theme.palette.divider}`,
135271
- color: checkinWindow.state === "active"
135272
- ? theme.palette.success.main
135273
- : checkinWindow.state === "scheduled"
135274
- ? theme.palette.warning.main
135275
- : checkinWindow.state === "closed"
135276
- ? theme.palette.error.main
135277
- : theme.palette.text.secondary,
135278
- } }, stateLabel[checkinWindow.state]))) : null),
135279
- getCheckinExplanation() ? (React__default.createElement(Typography$1, { variant: "caption", color: "text.secondary", sx: { mt: 0.5 } }, getCheckinExplanation())) : null)));
135273
+ activity.qrCheckinEnabled !== false ? (React__default.createElement(React__default.Fragment, null,
135274
+ React__default.createElement(Box$1, { sx: { display: "flex", alignItems: "center", mt: 1 } },
135275
+ React__default.createElement(AccessTime, { sx: { mr: 1.5, color: "text.secondary" } }),
135276
+ React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mr: 1 } },
135277
+ "Check-in v\u00E1lido: ",
135278
+ getCheckinSummary()),
135279
+ checkinWindow ? (React__default.createElement(Box$1, { component: "span" },
135280
+ React__default.createElement(Typography$1, { component: "span", variant: "caption", sx: {
135281
+ px: 1,
135282
+ py: 0.25,
135283
+ borderRadius: RADIUS.default,
135284
+ border: `1px solid ${theme.palette.divider}`,
135285
+ color: checkinWindow.state === "active"
135286
+ ? theme.palette.success.main
135287
+ : checkinWindow.state === "scheduled"
135288
+ ? theme.palette.warning.main
135289
+ : checkinWindow.state === "closed"
135290
+ ? theme.palette.error.main
135291
+ : theme.palette.text.secondary,
135292
+ } }, stateLabel[checkinWindow.state]))) : null),
135293
+ getCheckinExplanation() ? (React__default.createElement(Typography$1, { variant: "caption", color: "text.secondary", sx: { mt: 0.5 } }, getCheckinExplanation())) : null)) : null)));
135280
135294
  };
135281
135295
  var ActivityDateTime$1 = React__default.memo(ActivityDateTime);
135282
135296
 
@@ -135862,6 +135876,7 @@ const ActivitySchema$3 = objectType({
135862
135876
  title: stringType(),
135863
135877
  description: stringType(),
135864
135878
  isTemplate: booleanType(),
135879
+ qrCheckinEnabled: booleanType().optional(),
135865
135880
  qrReleaseOffsetMinutes: numberType().nullable().optional(),
135866
135881
  qrCheckinGraceMinutes: numberType().nullable().optional(),
135867
135882
  checkinStartWindowMinutes: numberType().nullable().optional(),
@@ -135977,6 +135992,7 @@ const ActivityDetailSchema = objectType({
135977
135992
  title: stringType(),
135978
135993
  description: stringType(),
135979
135994
  isTemplate: booleanType(),
135995
+ qrCheckinEnabled: booleanType().optional(),
135980
135996
  qrReleaseOffsetMinutes: numberType().nullable().optional(),
135981
135997
  qrCheckinGraceMinutes: numberType().nullable().optional(),
135982
135998
  checkinStartWindowMinutes: numberType().nullable().optional(),
@@ -136385,7 +136401,9 @@ const ActivityDetailPage = (props) => {
136385
136401
  const bTime = b.confirmedAt ? new Date(b.confirmedAt).getTime() : 0;
136386
136402
  return bTime - aTime;
136387
136403
  });
136388
- const canShowCheckinCta = props.canScanCheckin &&
136404
+ const checkinEnabled = data.activity.qrCheckinEnabled !== false;
136405
+ const canShowCheckinCta = checkinEnabled &&
136406
+ props.canScanCheckin &&
136389
136407
  ((_a = props.checkinWindow) === null || _a === void 0 ? void 0 : _a.state) === "active" &&
136390
136408
  !(currentMember === null || currentMember === void 0 ? void 0 : currentMember.confirmedAt) &&
136391
136409
  !props.isPersonalProfile;
@@ -136410,7 +136428,7 @@ const ActivityDetailPage = (props) => {
136410
136428
  React__default.createElement(Stack$1, { spacing: LIST_GAP },
136411
136429
  React__default.createElement(ActivityInfo$1, { activity: data.activity, canChangeStatus: props.canChangeStatus || false, canUseModel: props.canUseModel || false, statusOptions: statusOptions, onStatusChange: fns.handleChangeStatus, onUseModel: fns.handleUseModel, theme: theme }),
136412
136430
  React__default.createElement(ActivityDateTime$1, { activity: data.activity, checkinWindow: props.checkinWindow, formatDate: data.formatDate, formatTime: data.formatTime, theme: theme }),
136413
- props.canManageQr && !props.isPersonalProfile && (React__default.createElement(ActivityAttendanceQr, { attendanceQr: props.attendanceQr, onRefreshQrState: props.onRefreshQrState })),
136431
+ checkinEnabled && props.canManageQr && !props.isPersonalProfile && (React__default.createElement(ActivityAttendanceQr, { attendanceQr: props.attendanceQr, onRefreshQrState: props.onRefreshQrState })),
136414
136432
  React__default.createElement(ActivityMediums$1, { activity: data.activity, onAddMedium: fns.handleAddMedium, isAdmin: data.isAdmin, theme: theme, currentMemberId: data.currentMemberId, onConfirmParticipation: fns.handleConfirmParticipation, onDeclineParticipation: fns.handleDeclineParticipation }),
136415
136433
  attendanceMembers.length > 0 && (React__default.createElement(ConfirmedAttendanceCard$3, { attendanceMembers: attendanceMembers, theme: theme, formatConfirmedAt: formatConfirmedAt })),
136416
136434
  React__default.createElement(ActivitySupplies$1, { activity: data.activity, onAddSupply: fns.handleAddSupply, theme: theme })))),
@@ -137259,6 +137277,7 @@ const EventSchema = objectType({
137259
137277
  name: stringType().optional(),
137260
137278
  description: stringType().optional(),
137261
137279
  isTemplate: booleanType().optional(),
137280
+ qrCheckinEnabled: booleanType().optional(),
137262
137281
  qrReleaseOffsetMinutes: numberType().nullable().optional(),
137263
137282
  qrCheckinGraceMinutes: numberType().nullable().optional(),
137264
137283
  checkinStartWindowMinutes: numberType().nullable().optional(),
@@ -137507,27 +137526,31 @@ const EventCheckinWindowStep = ({ formState, validationErrors, onChange, setFiel
137507
137526
  onChange(createFieldEvent(name, value));
137508
137527
  }
137509
137528
  }, [setFieldValue, onChange]);
137529
+ const checkinEnabled = formState.qrCheckinEnabled !== false;
137510
137530
  return (React__default.createElement(Box$1, { sx: { p: { xs: 0.5, sm: 1 } } },
137511
- React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mb: 2.5 } },
137512
- "Configure o intervalo de tempo permitido para check-in. O check-in estar\u00E1 dispon\u00EDvel a partir de X minutos ",
137513
- React__default.createElement("strong", null, "antes"),
137514
- " do evento at\u00E9 Y minutos",
137515
- React__default.createElement("strong", null, " ap\u00F3s"),
137516
- " o in\u00EDcio."),
137517
- React__default.createElement(Alert$1, { severity: "info", icon: React__default.createElement(Info$1, null), sx: { mb: 2.5 } },
137518
- React__default.createElement(Typography$1, { variant: "body2" },
137519
- React__default.createElement("strong", null, "Exemplo:"),
137520
- " 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.")),
137521
- React__default.createElement(Box$1, { sx: { mb: 2.5 } },
137522
- React__default.createElement(LabeledMinuteInput, { name: "checkinStartWindowMinutes", label: "Abrir check-in (minutos antes)", value: formState.checkinStartWindowMinutes, onChange: (value) => updateField("checkinStartWindowMinutes", value), error: validationErrors.checkinStartWindowMinutes, helperText: validationErrors.checkinStartWindowMinutes ||
137523
- "Quantos minutos antes do evento checar entrada (0-120)", fallbackValue: 10, min: 0, max: 120, "data-testid": "event-checkin-start-window-input" })),
137524
- React__default.createElement(Box$1, { sx: { mb: 2.5 } },
137525
- React__default.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 ||
137526
- "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" })),
137527
- React__default.createElement(Box$1, { sx: { p: { xs: 1.5, sm: 2 }, bgcolor: "action.hover", borderRadius: RADIUS.default } },
137528
- React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary" },
137529
- React__default.createElement("strong", null, "Dica:"),
137530
- " 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."))));
137531
+ React__default.createElement(FormControlLabel$1, { control: React__default.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 } }),
137532
+ !checkinEnabled ? (React__default.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,
137533
+ checkinEnabled ? (React__default.createElement(React__default.Fragment, null,
137534
+ React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mb: 2.5 } },
137535
+ "Configure o intervalo de tempo permitido para check-in. O check-in estar\u00E1 dispon\u00EDvel a partir de X minutos ",
137536
+ React__default.createElement("strong", null, "antes"),
137537
+ " do evento at\u00E9 Y minutos",
137538
+ React__default.createElement("strong", null, " ap\u00F3s"),
137539
+ " o in\u00EDcio."),
137540
+ React__default.createElement(Alert$1, { severity: "info", icon: React__default.createElement(Info$1, null), sx: { mb: 2.5 } },
137541
+ React__default.createElement(Typography$1, { variant: "body2" },
137542
+ React__default.createElement("strong", null, "Exemplo:"),
137543
+ " 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.")),
137544
+ React__default.createElement(Box$1, { sx: { mb: 2.5 } },
137545
+ React__default.createElement(LabeledMinuteInput, { name: "checkinStartWindowMinutes", label: "Abrir check-in (minutos antes)", value: formState.checkinStartWindowMinutes, onChange: (value) => updateField("checkinStartWindowMinutes", value), error: validationErrors.checkinStartWindowMinutes, helperText: validationErrors.checkinStartWindowMinutes ||
137546
+ "Quantos minutos antes do evento checar entrada (0-120)", fallbackValue: 10, min: 0, max: 120, "data-testid": "event-checkin-start-window-input" })),
137547
+ React__default.createElement(Box$1, { sx: { mb: 2.5 } },
137548
+ React__default.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 ||
137549
+ "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" })),
137550
+ React__default.createElement(Box$1, { sx: { p: { xs: 1.5, sm: 2 }, bgcolor: "action.hover", borderRadius: RADIUS.default } },
137551
+ React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary" },
137552
+ React__default.createElement("strong", null, "Dica:"),
137553
+ " 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));
137531
137554
  };
137532
137555
 
137533
137556
  let googleMapsScriptPromise = null;
@@ -138572,7 +138595,7 @@ const EventReviewStep = ({ formState, availableActivities, }) => {
138572
138595
  React__default.createElement(Typography$1, { variant: "h6", sx: { mb: 2, display: "flex", alignItems: "center" } },
138573
138596
  React__default.createElement(AccessTime, { sx: { mr: 1 } }),
138574
138597
  " Janela de Check-in"),
138575
- !formState.isAllDay ? (React__default.createElement(React__default.Fragment, null,
138598
+ formState.qrCheckinEnabled === false ? (React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary" }, "Check-in desativado para este evento.")) : !formState.isAllDay ? (React__default.createElement(React__default.Fragment, null,
138576
138599
  React__default.createElement(Typography$1, { variant: "body2", sx: { mb: 1 } },
138577
138600
  React__default.createElement("strong", null, "Evento:"),
138578
138601
  " ",
@@ -139431,7 +139454,7 @@ const EventActivitySelectionStep = ({ formState, validationErrors, onChange, ava
139431
139454
  "):"),
139432
139455
  React__default.createElement(Button$1, { variant: "text", size: "small", startIcon: React__default.createElement(Clear$1, null), onClick: handleClear, sx: { alignSelf: { xs: "stretch", sm: "flex-start" } } }, "Limpar todas")),
139433
139456
  selectedActivities.map((activity) => {
139434
- var _a, _b, _c, _d, _e, _f;
139457
+ var _a, _b, _c, _d, _e, _f, _g;
139435
139458
  return (React__default.createElement(Box$1, { key: activity.id, sx: {
139436
139459
  mb: 1.5,
139437
139460
  p: { xs: 1.25, sm: 1.5 },
@@ -139475,8 +139498,9 @@ const EventActivitySelectionStep = ({ formState, validationErrors, onChange, ava
139475
139498
  } },
139476
139499
  React__default.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}` }),
139477
139500
  React__default.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}` }),
139478
- React__default.createElement(TextField$1, { fullWidth: true, label: checkinOpenLabel, type: "number", size: "small", value: (_e = activity.checkinStartWindowMinutes) !== null && _e !== void 0 ? _e : 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" }),
139479
- React__default.createElement(TextField$1, { fullWidth: true, label: checkinCloseLabel, type: "number", size: "small", value: (_f = activity.checkinEndWindowMinutes) !== null && _f !== void 0 ? _f : 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" })),
139501
+ ((_e = availableActivities.find((item) => String(item.id) === String(activity.id))) === null || _e === void 0 ? void 0 : _e.qrCheckinEnabled) !== false ? (React__default.createElement(React__default.Fragment, null,
139502
+ React__default.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" }),
139503
+ React__default.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),
139480
139504
  React__default.createElement(Box$1, { sx: {
139481
139505
  display: "flex",
139482
139506
  alignItems: { xs: "flex-start", sm: "center" },
@@ -139716,6 +139740,7 @@ const EventLocationSchema = objectType({
139716
139740
  }
139717
139741
  });
139718
139742
  const EventCheckinWindowSchema = objectType({
139743
+ qrCheckinEnabled: booleanType().optional(),
139719
139744
  checkinStartWindowMinutes: numberType()
139720
139745
  .int()
139721
139746
  .min(0, "Deve ser 0 ou maior")
@@ -139768,6 +139793,7 @@ const ActivitySchema$1 = objectType({
139768
139793
  durationMinutes: numberType().optional(),
139769
139794
  startTime: stringType().optional(), // HH:MM — per-activity start time for the event
139770
139795
  endTime: stringType().optional(), // HH:MM — per-activity end time for the event
139796
+ qrCheckinEnabled: booleanType().optional(),
139771
139797
  checkinStartWindowMinutes: numberType().int().min(0).max(120).optional(),
139772
139798
  checkinEndWindowMinutes: numberType().int().min(0).max(120).optional(),
139773
139799
  qrReleaseOffsetMinutes: numberType().int().min(0).max(180).optional(),
@@ -139827,6 +139853,7 @@ const EventFormValuesSchema = objectType({
139827
139853
  insumos: arrayType(anyType()).optional(),
139828
139854
  activities: arrayType(ActivitySchema$1).optional(), // Changed from activity to activities
139829
139855
  requiredActivityIds: arrayType(stringType()).optional(),
139856
+ qrCheckinEnabled: booleanType().optional(),
139830
139857
  checkinStartWindowMinutes: numberType()
139831
139858
  .int()
139832
139859
  .min(0)
@@ -139944,6 +139971,7 @@ const DEFAULT_FORM_STATE$3 = {
139944
139971
  isAllDay: false,
139945
139972
  startTime: "",
139946
139973
  endTime: "",
139974
+ qrCheckinEnabled: true,
139947
139975
  checkinStartWindowMinutes: 10,
139948
139976
  checkinEndWindowMinutes: 15,
139949
139977
  location: {
@@ -139984,24 +140012,26 @@ const EMPTY_SCHEMA = objectType({});
139984
140012
  * Computes the initial form state from props, applying terreiro address
139985
140013
  * defaults when the location type is "in terreiro".
139986
140014
  */
139987
- const buildInitialFormState = (initialData, isTerreiroAddressEmpty, knownLocations) => {
140015
+ const buildInitialFormState = (initialData, isTerreiroAddressEmpty, knownLocations, isPersonalProfile = false) => {
139988
140016
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
139989
140017
  const baseState = initialData !== null && initialData !== void 0 ? initialData : DEFAULT_FORM_STATE$3;
139990
- const isCreateFlow = !baseState.id;
140018
+ const withCheckin = isPersonalProfile
140019
+ ? Object.assign(Object.assign({}, baseState), { qrCheckinEnabled: false }) : baseState;
140020
+ const isCreateFlow = !withCheckin.id;
139991
140021
  if (isCreateFlow) {
139992
140022
  const fallback = (knownLocations && knownLocations[0]) || "Endereço do Terreiro";
139993
- const existingKnownLocation = ((_c = (_b = (_a = baseState.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)) || "";
139994
- return Object.assign(Object.assign({}, baseState), { location: Object.assign(Object.assign({}, baseState.location), { isInTerreiro: !isTerreiroAddressEmpty, knownLocation: !isTerreiroAddressEmpty
140023
+ 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)) || "";
140024
+ return Object.assign(Object.assign({}, withCheckin), { location: Object.assign(Object.assign({}, withCheckin.location), { isInTerreiro: !isTerreiroAddressEmpty, knownLocation: !isTerreiroAddressEmpty
139995
140025
  ? existingKnownLocation || fallback
139996
- : (_e = (_d = baseState.location) === null || _d === void 0 ? void 0 : _d.knownLocation) !== null && _e !== void 0 ? _e : "" }) });
140026
+ : (_e = (_d = withCheckin.location) === null || _d === void 0 ? void 0 : _d.knownLocation) !== null && _e !== void 0 ? _e : "" }) });
139997
140027
  }
139998
- const shouldDefaultToTerreiro = (_g = (_f = baseState.location) === null || _f === void 0 ? void 0 : _f.isInTerreiro) !== null && _g !== void 0 ? _g : true;
140028
+ const shouldDefaultToTerreiro = (_g = (_f = withCheckin.location) === null || _f === void 0 ? void 0 : _f.isInTerreiro) !== null && _g !== void 0 ? _g : true;
139999
140029
  if (shouldDefaultToTerreiro && !isTerreiroAddressEmpty) {
140000
- const existing = ((_k = (_j = (_h = baseState.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)) || "";
140030
+ 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)) || "";
140001
140031
  const fallback = (knownLocations && knownLocations[0]) || "Endereço do Terreiro";
140002
- return Object.assign(Object.assign({}, baseState), { location: Object.assign(Object.assign({}, baseState.location), { isInTerreiro: true, knownLocation: existing || fallback }) });
140032
+ return Object.assign(Object.assign({}, withCheckin), { location: Object.assign(Object.assign({}, withCheckin.location), { isInTerreiro: true, knownLocation: existing || fallback }) });
140003
140033
  }
140004
- return baseState;
140034
+ return withCheckin;
140005
140035
  };
140006
140036
  // ---------------------------------------------------------------------------
140007
140037
  // Hook
@@ -140011,7 +140041,7 @@ const useEventOnboarding = (props) => {
140011
140041
  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;
140012
140042
  const [isLoading, setIsLoading] = useState(false);
140013
140043
  const [error, setError] = useState();
140014
- const initialFormState = useMemo(() => buildInitialFormState(initialData, isTerreiroAddressEmpty, knownLocations), [initialData, isTerreiroAddressEmpty, knownLocations]);
140044
+ const initialFormState = useMemo(() => buildInitialFormState(initialData, isTerreiroAddressEmpty, knownLocations, isPersonalProfile), [initialData, isTerreiroAddressEmpty, knownLocations, isPersonalProfile]);
140015
140045
  // -----------------------------------------------------------------------
140016
140046
  // Step definitions — pure data, no inline wrapper components
140017
140047
  // -----------------------------------------------------------------------
@@ -140054,7 +140084,7 @@ const useEventOnboarding = (props) => {
140054
140084
  id: "checkin-window",
140055
140085
  label: "Check-in",
140056
140086
  title: "Configurar Check-in",
140057
- description: "Defina o período permitido para que os participantes façam check-in",
140087
+ description: "Escolha se haverá check-in e, se houver, o período permitido",
140058
140088
  component: EventCheckinWindowStep,
140059
140089
  },
140060
140090
  ]),
@@ -140371,17 +140401,18 @@ const EventDateTime = ({ event, checkinWindow, formatDate, formatTime, theme, })
140371
140401
  ? formatTime(firstOccurrence.endTime)
140372
140402
  : "Não definido"))),
140373
140403
  isAllDay && (React__default.createElement(Chip$1, { label: "Dia inteiro", size: "small", color: "primary", variant: "outlined", sx: { mb: 1.5 } })),
140374
- React__default.createElement(Box$1, { sx: { display: "flex", alignItems: "center", mb: 0.75 } },
140375
- React__default.createElement(AccessTime, { sx: {
140376
- mr: 1.5,
140377
- color: "text.secondary",
140378
- fontSize: { xs: 18, sm: 20 },
140379
- } }),
140380
- React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mr: 1 } },
140381
- "Check-in v\u00E1lido: ",
140382
- getCheckinSummary()),
140383
- checkinWindow ? (React__default.createElement(Chip$1, { label: stateLabel[checkinWindow.state], size: "small", color: stateColor[checkinWindow.state], variant: "outlined" })) : null),
140384
- getCheckinExplanation() ? (React__default.createElement(Typography$1, { variant: "caption", color: "text.secondary" }, getCheckinExplanation())) : null)));
140404
+ event.qrCheckinEnabled !== false ? (React__default.createElement(React__default.Fragment, null,
140405
+ React__default.createElement(Box$1, { sx: { display: "flex", alignItems: "center", mb: 0.75 } },
140406
+ React__default.createElement(AccessTime, { sx: {
140407
+ mr: 1.5,
140408
+ color: "text.secondary",
140409
+ fontSize: { xs: 18, sm: 20 },
140410
+ } }),
140411
+ React__default.createElement(Typography$1, { variant: "body2", color: "text.secondary", sx: { mr: 1 } },
140412
+ "Check-in v\u00E1lido: ",
140413
+ getCheckinSummary()),
140414
+ checkinWindow ? (React__default.createElement(Chip$1, { label: stateLabel[checkinWindow.state], size: "small", color: stateColor[checkinWindow.state], variant: "outlined" })) : null),
140415
+ getCheckinExplanation() ? (React__default.createElement(Typography$1, { variant: "caption", color: "text.secondary" }, getCheckinExplanation())) : null)) : null)));
140385
140416
  };
140386
140417
  var EventDateTime$1 = React__default.memo(EventDateTime);
140387
140418
 
@@ -140912,7 +140943,9 @@ const EventActivities = ({ event, theme, formatDate, formatTime, canChangeActivi
140912
140943
  } },
140913
140944
  React__default.createElement(Typography$1, { variant: "h6", fontWeight: "medium" }, activity.title),
140914
140945
  React__default.createElement(Box$1, { sx: { display: "flex", gap: 1, alignItems: "flex-start" } },
140915
- !isModelEvent && onActivityQrOpen && (React__default.createElement(Box$1, { sx: {
140946
+ !isModelEvent &&
140947
+ onActivityQrOpen &&
140948
+ activity.qrCheckinEnabled !== false && (React__default.createElement(Box$1, { sx: {
140916
140949
  display: "flex",
140917
140950
  flexDirection: "column",
140918
140951
  alignItems: "flex-end",
@@ -140969,6 +141002,7 @@ const EventActivities = ({ event, theme, formatDate, formatTime, canChangeActivi
140969
141002
  ? formatTime(activity.occurrences[0].endTime)
140970
141003
  : "Não definido")))),
140971
141004
  !isModelEvent &&
141005
+ activity.qrCheckinEnabled !== false &&
140972
141006
  (() => {
140973
141007
  var _a, _b, _c, _d;
140974
141008
  const startMinutes = parseTimeToMinutes$2((_b = (_a = activity.occurrences) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.startTime);
@@ -141445,6 +141479,7 @@ const TerreiroSchema = objectType({
141445
141479
  const ActivitySchema = objectType({
141446
141480
  id: stringType(),
141447
141481
  requiredForConfirmation: booleanType().optional(),
141482
+ qrCheckinEnabled: booleanType().optional(),
141448
141483
  qrReleaseOffsetMinutes: numberType().nullable().optional(),
141449
141484
  qrCheckinGraceMinutes: numberType().nullable().optional(),
141450
141485
  checkinStartWindowMinutes: numberType().nullable().optional(),
@@ -141471,6 +141506,7 @@ const EventDetailSchema = objectType({
141471
141506
  name: stringType().optional(),
141472
141507
  description: stringType().optional(),
141473
141508
  isTemplate: booleanType().optional(),
141509
+ qrCheckinEnabled: booleanType().optional(),
141474
141510
  qrReleaseOffsetMinutes: numberType().nullable().optional(),
141475
141511
  qrCheckinGraceMinutes: numberType().nullable().optional(),
141476
141512
  checkinStartWindowMinutes: numberType().nullable().optional(),
@@ -141998,7 +142034,9 @@ const EventDetailPage = (props) => {
141998
142034
  }
141999
142035
  const statusOptions = data.getStatusMenuOptions(data.event);
142000
142036
  const currentMember = (_c = data.event.members) === null || _c === void 0 ? void 0 : _c.list.find((m) => m.id === data.currentMemberId);
142001
- const canShowCheckinCta = props.canScanCheckin &&
142037
+ const checkinEnabled = data.event.qrCheckinEnabled !== false;
142038
+ const canShowCheckinCta = checkinEnabled &&
142039
+ props.canScanCheckin &&
142002
142040
  ((_d = props.checkinWindow) === null || _d === void 0 ? void 0 : _d.state) === "active" &&
142003
142041
  !(currentMember === null || currentMember === void 0 ? void 0 : currentMember.confirmedAt) &&
142004
142042
  !props.isPersonalProfile;
@@ -142033,7 +142071,7 @@ const EventDetailPage = (props) => {
142033
142071
  React__default.createElement(Stack$1, { spacing: LIST_GAP },
142034
142072
  React__default.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 }),
142035
142073
  React__default.createElement(EventDateTime$1, { event: data.event, checkinWindow: props.checkinWindow, formatDate: data.formatDate, formatTime: data.formatTime, theme: theme }),
142036
- props.canManageQr && (React__default.createElement(EventAttendanceQr, { attendanceQr: props.attendanceQr, onRefreshQrState: props.onRefreshQrState, onCopyCode: fns.handleCopyCode })),
142074
+ props.canManageQr && checkinEnabled && (React__default.createElement(EventAttendanceQr, { attendanceQr: props.attendanceQr, onRefreshQrState: props.onRefreshQrState, onCopyCode: fns.handleCopyCode })),
142037
142075
  props.canManageTickets && (React__default.createElement(EventPublicTickets$1, { onManageTickets: props.onManageTickets, theme: theme })),
142038
142076
  data.event.address && (React__default.createElement(EventAddress$1, { event: data.event, theme: theme })),
142039
142077
  data.event.activities && data.event.activities.count > 0 && (React__default.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 })),
@@ -143053,6 +143091,8 @@ const formatMinutesToHHMM$1 = (totalMinutes) => {
143053
143091
  };
143054
143092
  const getConfiguredCheckinWindow = (event) => {
143055
143093
  var _a, _b, _c, _d, _e;
143094
+ if (event.qrCheckinEnabled === false)
143095
+ return null;
143056
143096
  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;
143057
143097
  const startMinutes = parseTimeToMinutes$1(startTime);
143058
143098
  if (startMinutes === null)
@@ -153249,6 +153289,8 @@ const formatMinutesToHHMM = (totalMinutes) => {
153249
153289
  };
153250
153290
  const getCheckinWindowRange = (event) => {
153251
153291
  var _a, _b;
153292
+ if (event.qrCheckinEnabled === false)
153293
+ return null;
153252
153294
  const startMinutes = parseTimeToMinutes(event.time);
153253
153295
  if (startMinutes === null)
153254
153296
  return null;
@@ -1,4 +1,4 @@
1
1
  [diffend] Oversized file quarantined before diffing.
2
2
  name: package/dist/bundle.esm.js.map
3
- size: 59331758 bytes
4
- sha256: f053bfb010042529fe5104ff2b321f2d55914e1bc72fe5544f1be3e786735e41
3
+ size: 59350078 bytes
4
+ sha256: 40b4f97d7ae760bdb64cfdea041e73a2a5836e86442f6256d8657e1c6bc20f3a