From 2c0680cef941262ad5f85f8058f14b5f10eceb55 Mon Sep 17 00:00:00 2001 From: neodk2004 Date: Fri, 2 Oct 2026 19:30:22 +0200 Subject: [PATCH] =?UTF-8?q?feat:=207-Tage-Ansicht=20der=20eigenen=20Storys?= =?UTF-8?q?=20f=C3=BCr=20den=20Ersteller=20(Web=20+=20App)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - stories.listActive: der Owner bekommt seine Storys der letzten 7 Tage mit isExpired, alle anderen weiterhin nur die aktiven 24 Stunden - stories.hasActiveStory: optional includeOwnRecent → grauer Ring (expiredOnly) nur in der Story-Leiste, nicht an Profilbildern im Feed - Viewer: Hinweis "Abgelaufen – nur für dich sichtbar", Kommentare bei abgelaufenen Storys nur lesbar, Pfote nur als Zähler; Löschen und Zuschauerliste bleiben Co-Authored-By: Claude Opus 5.5 --- messages/de.json | 7 ++- messages/en.json | 7 ++- mobile/app/(app)/story-viewer.tsx | 46 +++++++++++++--- mobile/found.md | 3 +- mobile/src/components/PawRing.tsx | 10 +++- mobile/src/components/StoryTray.tsx | 4 +- .../components/stories/StoryCommentsSheet.tsx | 9 ++- mobile/src/i18n/locales/de.json | 6 +- mobile/src/i18n/locales/en.json | 6 +- src/__tests__/stories.test.ts | 55 +++++++++++++++++++ src/components/stories/PawRing.tsx | 5 +- .../stories/StoryCommentsOverlay.tsx | 7 +++ src/components/stories/StoryTray.tsx | 3 +- src/components/stories/StoryViewer.tsx | 35 +++++++++--- src/trpc/routers/stories.ts | 49 ++++++++++++++--- 15 files changed, 215 insertions(+), 37 deletions(-) diff --git a/messages/de.json b/messages/de.json index f8d1d8d..36dbf5e 100644 --- a/messages/de.json +++ b/messages/de.json @@ -260,7 +260,8 @@ "postError": "Kommentar konnte nicht gepostet werden. Bitte versuche es erneut.", "deleteError": "Kommentar konnte nicht gelöscht werden. Bitte versuche es erneut.", "countSingular": "1 Kommentar", - "countPlural": "{count} Kommentare" + "countPlural": "{count} Kommentare", + "readOnlyExpired": "Die Story ist abgelaufen. Kommentare kannst du noch lesen, aber nicht mehr schreiben." }, "RelativeTime": { "justNow": "gerade eben", @@ -588,7 +589,9 @@ "deleteStoryCancel": "Abbrechen", "deleteStoryConfirm": "Löschen", "storyDeleted": "Story gelöscht", - "storyDeleteError": "Die Story konnte nicht gelöscht werden. Bitte versuch es noch einmal." + "storyDeleteError": "Die Story konnte nicht gelöscht werden. Bitte versuch es noch einmal.", + "expiredOwnerOnly": "Abgelaufen – nur für dich sichtbar", + "pawCount": "{count, plural, one {# Pfote} other {# Pfoten}}" }, "StoryTray": { "storiesAriaLabel": "Storys", diff --git a/messages/en.json b/messages/en.json index ac03e9e..fbe049a 100644 --- a/messages/en.json +++ b/messages/en.json @@ -260,7 +260,8 @@ "postError": "Couldn't post comment. Please try again.", "deleteError": "Couldn't delete comment. Please try again.", "countSingular": "1 comment", - "countPlural": "{count} comments" + "countPlural": "{count} comments", + "readOnlyExpired": "This story has expired. You can still read comments but not add new ones." }, "RelativeTime": { "justNow": "now", @@ -588,7 +589,9 @@ "deleteStoryCancel": "Cancel", "deleteStoryConfirm": "Delete", "storyDeleted": "Story deleted", - "storyDeleteError": "The story could not be deleted. Please try again." + "storyDeleteError": "The story could not be deleted. Please try again.", + "expiredOwnerOnly": "Expired – only visible to you", + "pawCount": "{count, plural, one {# paw} other {# paws}}" }, "StoryTray": { "storiesAriaLabel": "Stories", diff --git a/mobile/app/(app)/story-viewer.tsx b/mobile/app/(app)/story-viewer.tsx index 5f452bd..34b47a0 100644 --- a/mobile/app/(app)/story-viewer.tsx +++ b/mobile/app/(app)/story-viewer.tsx @@ -5,7 +5,7 @@ import { useLocalSearchParams, useRouter } from "expo-router"; import { useTranslation } from "react-i18next"; import { useQuery, useMutation, useQueryClient } from "@tanstack/react-query"; import { Image } from "expo-image"; -import { Eye, MessageCircle, Trash2, X } from "lucide-react-native"; +import { Clock, Eye, MessageCircle, PawPrint, Trash2, X } from "lucide-react-native"; import { useTRPC } from "../../src/api/trpc"; import { useActivePet } from "../../src/context/ActivePetContext"; import { PetAvatar } from "../../src/components/PetAvatar"; @@ -185,6 +185,15 @@ export default function StoryViewerScreen() { {petName} + {currentStory.isExpired && ( + + + + {t("storyViewer.expiredOwnerOnly")} + + + )} + {isOwnStory && ( - + {currentStory.isExpired ? ( + + + + + {currentStory.reactionCount > 0 && {currentStory.reactionCount}} + + ) : ( + + )} setOpenSheet("comments")} accessibilityRole="button" @@ -245,6 +263,7 @@ export default function StoryViewerScreen() { onClose={() => setOpenSheet(null)} onChanged={refreshStories} onPressPet={openPet} + readOnly={currentStory.isExpired} /> )} {isOwnStory && ( @@ -281,6 +300,17 @@ const styles = StyleSheet.create({ actionWrap: { alignItems: "center", gap: 2 }, actionCircle: { width: 44, height: 44, borderRadius: 22, backgroundColor: "rgba(0,0,0,0.4)", alignItems: "center", justifyContent: "center" }, actionCount: { color: colors.pureWhite, fontSize: 12, fontWeight: "600", textShadowColor: "rgba(0,0,0,0.6)", textShadowRadius: 3 }, + expiredRow: { position: "absolute", left: 0, right: 0, alignItems: "center", zIndex: 2 }, + expiredBadge: { + flexDirection: "row", + alignItems: "center", + gap: 6, + paddingHorizontal: 12, + paddingVertical: 6, + borderRadius: 999, + backgroundColor: "rgba(0,0,0,0.6)", + }, + expiredText: { color: colors.pureWhite, fontSize: 12, fontWeight: "600" }, ownerActions: { position: "absolute", left: 16, flexDirection: "row", alignItems: "center", gap: 8, zIndex: 2 }, deleteButton: { width: 36, height: 36, borderRadius: 18, backgroundColor: "rgba(0,0,0,0.4)", alignItems: "center", justifyContent: "center" }, viewerCount: { diff --git a/mobile/found.md b/mobile/found.md index 932119d..28c89f5 100644 --- a/mobile/found.md +++ b/mobile/found.md @@ -158,7 +158,8 @@ Neu 7: - [x] Nutzerfeedback - Story löschbar ? wie kann man die story löschen, falls man mal was falsches in die story geladen hat ? → Gab es bisher nirgends. Neu: Server `stories.delete` (nur Owner; löscht Aufrufe — `StoryView` hat bewusst kein Cascade —, dann die Story, Pfoten/Kommentare per Cascade; danach Bild in Supabase Storage bzw. Mux-Asset best-effort). Web: Papierkorb neben der Zuschauerzahl in der eigenen Story + Rückfrage (`AlertDialog`), Bild-Timer pausiert während der Rückfrage, gelöscht wird die beim Antippen gemerkte Story-ID. App: gleicher Papierkorb + native Rückfrage, Timer pausiert. Nach dem Löschen springt der Viewer zur nächsten Story bzw. schließt, wenn keine mehr da ist. 5 neue Tests in `src/__tests__/stories.test.ts`. Nicht auf einem Gerät getestet. Commit `81d9c6d`, live (Web + OTA Runtime 1.0.6: Android `49757586-c443-4952-a679-c66a4225ef82`, iOS `48d22b11-abc9-4c75-be52-a122b0130c5e`). -- [ ] Storys nur für Ersteller länger einsehbar wegen den Kommentaren (7Tage) +- [x] Storys nur für Ersteller länger einsehbar wegen den Kommentaren (7Tage) + → **Umgesetzt (02.10.):** Der Ersteller sieht seine Storys 7 Tage lang (danach löscht der Aufräum-Job sie), alle anderen weiterhin nur 24 Stunden. Server: `stories.listActive` liefert dem Owner die Storys der letzten 7 Tage mit `isExpired`; `stories.hasActiveStory` meldet mit `includeOwnRecent` (nur die Story-Leiste setzt das) einen grauen Ring `expiredOnly`, damit Profilbilder im Feed nicht ebenfalls grau umrandet werden. Web + App: grauer Ring „Deine Story“, Hinweis „Abgelaufen – nur für dich sichtbar“ im Viewer, Kommentare bei abgelaufenen Storys nur lesbar, Pfote nur als Zähler; Zuschauerliste und Löschen bleiben. Keine Schemaänderung. 4 neue Tests. Nicht auf einem Gerät getestet. → Noch offen. Befund: abgelaufene Storys werden nie gelöscht (Einträge, Bilder, Mux-Videos bleiben liegen) — Vorschlag: grauer Ring "Deine Story" 7 Tage für den Ersteller, danach Aufräum-Cron (braucht einen Auslöser auf dem NAS, die bestehenden Cron-Routen haben keinen) + Satz unter "Speicherdauer" in der Datenschutzerklärung. **Teil erledigt (02.10.):** Aufräum-Job gebaut — `/api/cron/cleanup-stories` löscht Storys älter als 7 Tage komplett (Aufrufe, Pfoten, Kommentare, Bild, Mux-Video; gemeinsame Funktion `src/lib/story-cleanup.ts`, auch von „Story löschen“ genutzt), täglich 04:30 über die bestehende NAS-Crontab (`docker/run-cron.sh`, Log in `docker/cron.log`); Datenschutzerklärung Abschnitt 6 ergänzt. Offen bleibt nur die 7-Tage-Ansicht für den Ersteller. diff --git a/mobile/src/components/PawRing.tsx b/mobile/src/components/PawRing.tsx index 15040a2..dbd77c5 100644 --- a/mobile/src/components/PawRing.tsx +++ b/mobile/src/components/PawRing.tsx @@ -10,6 +10,8 @@ type Props = { /** Avatar size in px — used to scale the paw outline (default: 32) */ size?: number; onPress?: () => void; + /** Nur Story-Leiste: eigene abgelaufene Storys (≤ 7 Tage) als grauer Ring. */ + includeOwnRecent?: boolean; }; const RING_PAD = 8; @@ -35,12 +37,16 @@ export function getPawRingBox(size: number) { * instead of inline SVG markup. Orange = unseen stories, gray = all seen, * no ring = no active story (STORY-02). */ -export function PawRing({ petId, children, size = 32, onPress }: Props) { +export function PawRing({ petId, children, size = 32, onPress, includeOwnRecent }: Props) { const trpc = useTRPC(); const { activePetId } = useActivePet(); const { data = { hasStory: false, allSeen: false } } = useQuery( - trpc.stories.hasActiveStory.queryOptions({ petId, viewerPetId: activePetId ?? undefined }) + trpc.stories.hasActiveStory.queryOptions({ + petId, + viewerPetId: activePetId ?? undefined, + ...(includeOwnRecent ? { includeOwnRecent: true } : {}), + }) ); const { hasStory, allSeen } = data; const ringColor = allSeen ? SEEN_COLOR : UNSEEN_COLOR; diff --git a/mobile/src/components/StoryTray.tsx b/mobile/src/components/StoryTray.tsx index 9e31e4e..fdcab74 100644 --- a/mobile/src/components/StoryTray.tsx +++ b/mobile/src/components/StoryTray.tsx @@ -32,7 +32,7 @@ export function StoryTray() { const styles = useMemo(() => makeStyles(colors), [colors]); const { data: ownStory } = useQuery({ - ...trpc.stories.hasActiveStory.queryOptions({ petId: activePetId ?? "" }), + ...trpc.stories.hasActiveStory.queryOptions({ petId: activePetId ?? "", includeOwnRecent: true }), enabled: !!activePetId, }); const activePet = pets.find((pet) => pet.id === activePetId) ?? null; @@ -63,7 +63,7 @@ export function StoryTray() { {ownStory?.hasStory && activePet && ( openViewer(activePet)}> - + diff --git a/mobile/src/components/stories/StoryCommentsSheet.tsx b/mobile/src/components/stories/StoryCommentsSheet.tsx index 0605093..7f254cf 100644 --- a/mobile/src/components/stories/StoryCommentsSheet.tsx +++ b/mobile/src/components/stories/StoryCommentsSheet.tsx @@ -29,6 +29,8 @@ type Props = { /** Wird nach Hinzufügen/Löschen aufgerufen, damit der Viewer den Zähler neu lädt. */ onChanged: () => void; onPressPet: (petId: string) => void; + /** Abgelaufene Story in der 7-Tage-Ansicht des Erstellers: nur lesen. */ + readOnly?: boolean; }; /** @@ -37,7 +39,7 @@ type Props = { * verdeckt die Tastatur sonst die laufende Story und sie springt weiter, * während man noch tippt). */ -export function StoryCommentsSheet({ storyId, activePetId, visible, onClose, onChanged, onPressPet }: Props) { +export function StoryCommentsSheet({ storyId, activePetId, visible, onClose, onChanged, onPressPet, readOnly = false }: Props) { const { t } = useTranslation(); const { colors } = useTheme(); const insets = useSafeAreaInsets(); @@ -116,6 +118,9 @@ export function StoryCommentsSheet({ storyId, activePetId, visible, onClose, onC /> )} + {readOnly ? ( + {t("storyViewer.readOnlyExpired")} + ) : ( : } + )} {add.isError && {t("storyViewer.commentError")}} @@ -169,6 +175,7 @@ function makeStyles(colors: ColorTokens, insetBottom: number) { input: { flex: 1 }, send: { width: 48, height: 48, borderRadius: radii.lg, backgroundColor: colors.marigoldOrange, alignItems: "center", justifyContent: "center" }, sendDisabled: { opacity: 0.5 }, + readOnly: { ...typography.body, fontSize: 13, color: colors.quietGray, paddingHorizontal: 16, paddingTop: 10 }, error: { ...typography.body, fontSize: 12, color: colors.alertRed, paddingHorizontal: 12, paddingTop: 6 }, }); } diff --git a/mobile/src/i18n/locales/de.json b/mobile/src/i18n/locales/de.json index 55fb7c6..58d2b61 100644 --- a/mobile/src/i18n/locales/de.json +++ b/mobile/src/i18n/locales/de.json @@ -416,6 +416,10 @@ "deleteTitle": "Story löschen?", "deleteDescription": "Die Story wird mit allen Aufrufen, Pfoten und Kommentaren endgültig gelöscht.", "deleteConfirm": "Löschen", - "deleteError": "Die Story konnte nicht gelöscht werden. Bitte versuch es noch einmal." + "deleteError": "Die Story konnte nicht gelöscht werden. Bitte versuch es noch einmal.", + "expiredOwnerOnly": "Abgelaufen – nur für dich sichtbar", + "readOnlyExpired": "Die Story ist abgelaufen. Kommentare kannst du noch lesen, aber nicht mehr schreiben.", + "pawCount_one": "{{count}} Pfote", + "pawCount_other": "{{count}} Pfoten" } } diff --git a/mobile/src/i18n/locales/en.json b/mobile/src/i18n/locales/en.json index b270f98..d764229 100644 --- a/mobile/src/i18n/locales/en.json +++ b/mobile/src/i18n/locales/en.json @@ -416,6 +416,10 @@ "deleteTitle": "Delete story?", "deleteDescription": "The story and all its views, paws and comments will be deleted permanently.", "deleteConfirm": "Delete", - "deleteError": "The story could not be deleted. Please try again." + "deleteError": "The story could not be deleted. Please try again.", + "expiredOwnerOnly": "Expired – only visible to you", + "readOnlyExpired": "This story has expired. You can still read comments but not add new ones.", + "pawCount_one": "{{count}} paw", + "pawCount_other": "{{count}} paws" } } diff --git a/src/__tests__/stories.test.ts b/src/__tests__/stories.test.ts index c949bbe..b2bb223 100644 --- a/src/__tests__/stories.test.ts +++ b/src/__tests__/stories.test.ts @@ -240,6 +240,61 @@ describe("stories.listActive", () => { }); }); +describe("stories — 7-Tage-Ansicht für den Ersteller", () => { + beforeEach(() => vi.clearAllMocks()); + + it("listActive shows the owner their stories of the last 7 days, marked as expired", async () => { + const { caller, mockPrisma } = createCaller(); + mockPrisma.pet.findUnique.mockResolvedValue({ ownerId: "owner-1" }); + mockPrisma.story.findMany.mockResolvedValue([ + { id: "old", expiresAt: new Date(Date.now() - 60_000), reactionCount: 1 }, + { id: "new", expiresAt: new Date(Date.now() + 60_000), reactionCount: 0 }, + ]); + + const result = await caller.listActive({ petId: "pet-1" }); + + expect(result.map((s) => s.isExpired)).toEqual([true, false]); + const where = mockPrisma.story.findMany.mock.calls[0][0].where; + expect(where.createdAt.gte).toBeInstanceOf(Date); + expect(where.expiresAt).toBeUndefined(); + }); + + it("listActive still shows other viewers only the active 24 hours", async () => { + const { caller, mockPrisma } = createCaller(); + mockPrisma.pet.findUnique.mockResolvedValue({ ownerId: "owner-2" }); + mockPrisma.story.findMany.mockResolvedValue([]); + + await caller.listActive({ petId: "pet-2" }); + + const where = mockPrisma.story.findMany.mock.calls[0][0].where; + expect(where.expiresAt.gt).toBeInstanceOf(Date); + expect(where.createdAt).toBeUndefined(); + }); + + it("hasActiveStory reports a gray ring for the owner's expired stories only with includeOwnRecent", async () => { + const { caller, mockPrisma } = createCaller(); + mockPrisma.story.findMany.mockResolvedValue([]); // nichts aktiv + mockPrisma.pet.findUnique.mockResolvedValue({ ownerId: "owner-1" }); + mockPrisma.story.count.mockResolvedValue(2); + + expect(await caller.hasActiveStory({ petId: "pet-1", includeOwnRecent: true })).toEqual({ + hasStory: true, + allSeen: true, + expiredOnly: true, + }); + expect(await caller.hasActiveStory({ petId: "pet-1" })).toEqual({ hasStory: false, allSeen: false, expiredOnly: false }); + }); + + it("hasActiveStory never shows someone else's expired stories", async () => { + const { caller, mockPrisma } = createCaller(); + mockPrisma.story.findMany.mockResolvedValue([]); + mockPrisma.pet.findUnique.mockResolvedValue({ ownerId: "owner-2" }); + mockPrisma.story.count.mockResolvedValue(3); + + expect(await caller.hasActiveStory({ petId: "pet-2", includeOwnRecent: true })).toMatchObject({ hasStory: false }); + }); +}); + describe("stories.hasActiveStory", () => { beforeEach(() => vi.clearAllMocks()); diff --git a/src/components/stories/PawRing.tsx b/src/components/stories/PawRing.tsx index 59560a1..313671c 100644 --- a/src/components/stories/PawRing.tsx +++ b/src/components/stories/PawRing.tsx @@ -12,6 +12,8 @@ interface PawRingProps { size?: number; /** Optional tap handler — rendered as + {/* 7-Tage-Ansicht: abgelaufene eigene Story kennzeichnen */} + {currentStory.isExpired && ( +
+
+ )} + {/* Viewer count + delete — top left (owner only) */} {isOwnPet && (
@@ -460,13 +469,22 @@ export function StoryViewer({ {/* Gitea #29 — paw + comment buttons, bottom right */} {activePetId && (
- + {currentStory.isExpired ? ( + + + + {currentStory.reactionCount > 0 && {currentStory.reactionCount}} + + ) : ( + + )}
, diff --git a/src/trpc/routers/stories.ts b/src/trpc/routers/stories.ts index d6292d9..f16a61d 100644 --- a/src/trpc/routers/stories.ts +++ b/src/trpc/routers/stories.ts @@ -8,7 +8,15 @@ import { ALLOWED_CONTENT_TYPES, MAX_FILE_SIZE, } from "@/lib/supabase-storage"; -import { deleteStoryWithMedia } from "@/lib/story-cleanup"; +import { STORY_RETENTION_DAYS, deleteStoryWithMedia } from "@/lib/story-cleanup"; + +const DAY_MS = 24 * 60 * 60 * 1000; + +/** Besitzt der aufrufende Owner dieses Tier? Für die 7-Tage-Ansicht des Erstellers. */ +async function isOwnPet(prisma: PrismaClient, petId: string, userId: string): Promise { + const pet = await prisma.pet.findUnique({ where: { id: petId }, select: { ownerId: true } }); + return pet?.ownerId === userId; +} import { randomUUID } from "crypto"; import { petIdentitySelect } from "@/repositories/pet-repository"; import { assertPetOwnership } from "@/lib/assert-pet-ownership"; @@ -220,12 +228,20 @@ export const storiesRouter = router({ * With the optional viewerPetId, each story also carries reactedByViewer so * the paw button can start filled — optional so older app builds that only * send { petId } keep working unchanged (reactedByViewer is then false). + * + * 7-Tage-Ansicht: Der Owner des Tiers bekommt zusätzlich seine abgelaufenen + * Storys der letzten STORY_RETENTION_DAYS (isExpired: true) — alle anderen + * sehen weiterhin nur die aktiven 24 Stunden. */ listActive: protectedProcedure .input(z.object({ petId: z.string().min(1), viewerPetId: z.string().min(1).optional() })) .query(async ({ ctx, input }) => { + const now = new Date(); + const ownerView = await isOwnPet(ctx.prisma, input.petId, ctx.userId); const stories = await ctx.prisma.story.findMany({ - where: { petId: input.petId, expiresAt: { gt: new Date() } }, + where: ownerView + ? { petId: input.petId, createdAt: { gte: new Date(now.getTime() - STORY_RETENTION_DAYS * DAY_MS) } } + : { petId: input.petId, expiresAt: { gt: now } }, include: { musicTrack: true, ...(input.viewerPetId @@ -238,6 +254,7 @@ export const storiesRouter = router({ return stories.map(({ reactions, ...story }: (typeof stories)[number] & { reactions?: { petId: string }[] }) => ({ ...story, reactedByViewer: (reactions?.length ?? 0) > 0, + isExpired: story.expiresAt <= now, })); }), @@ -249,16 +266,34 @@ export const storiesRouter = router({ * viewerPetId is optional — without it allSeen is always false. */ hasActiveStory: protectedProcedure - .input(z.object({ petId: z.string().min(1), viewerPetId: z.string().optional() })) + .input( + z.object({ + petId: z.string().min(1), + viewerPetId: z.string().optional(), + // Nur die Story-Leiste setzt das: eigene, schon abgelaufene Storys der + // letzten 7 Tage ergeben einen grauen Ring (expiredOnly). Überall sonst + // (Profilbilder im Feed usw.) bleibt es beim 24-Stunden-Verhalten. + includeOwnRecent: z.boolean().optional(), + }) + ) .query(async ({ ctx, input }) => { + const now = new Date(); const activeStories = await ctx.prisma.story.findMany({ - where: { petId: input.petId, expiresAt: { gt: new Date() } }, + where: { petId: input.petId, expiresAt: { gt: now } }, select: { id: true }, }); - if (activeStories.length === 0) return { hasStory: false, allSeen: false }; + if (activeStories.length === 0) { + if (input.includeOwnRecent && (await isOwnPet(ctx.prisma, input.petId, ctx.userId))) { + const recent = await ctx.prisma.story.count({ + where: { petId: input.petId, createdAt: { gte: new Date(now.getTime() - STORY_RETENTION_DAYS * DAY_MS) } }, + }); + if (recent > 0) return { hasStory: true, allSeen: true, expiredOnly: true }; + } + return { hasStory: false, allSeen: false, expiredOnly: false }; + } - if (!input.viewerPetId) return { hasStory: true, allSeen: false }; + if (!input.viewerPetId) return { hasStory: true, allSeen: false, expiredOnly: false }; const viewedCount = await ctx.prisma.storyView.count({ where: { @@ -267,7 +302,7 @@ export const storiesRouter = router({ }, }); - return { hasStory: true, allSeen: viewedCount >= activeStories.length }; + return { hasStory: true, allSeen: viewedCount >= activeStories.length, expiredOnly: false }; }), /**