{"release_id":"01a2309f-d47d-0000-29bc-a17a97e31fa5","chunk_id":"01a2309f-d5d6-7c82-add1-50e8c1cab488","file":"Dpl37no9.mjs","mappings":"wVAQO,MAAMA,EAAcC,EAAkC,CAAA,CAAE,EAExD,SAASC,EAAeC,EAAgBC,EAAoB,CAClEJ,EAAY,OAAQK,GAAOA,EAAEF,CAAM,IAAMC,EAAYC,EAAI,CAAE,GAAGA,EAAG,CAACF,CAAM,EAAGC,EAAY,CACxF","names":["followState","writable","setFollowState","userId","following","s"],"sources":["../../../../../../src/lib/stores/followState.ts"],"sourcesContent":["import { writable } from 'svelte/store';\n\n/**\n * Follow state changed in this tab, by user id. Every FollowButton writes the\n * server's answer here and reads it back, so following someone on one feed\n * card (or in the reels viewer) flips every other button for that person too.\n * Written only from click handlers, i.e. in the browser — never during SSR.\n */\nexport const followState = writable<Record<string, boolean>>({});\n\nexport function setFollowState(userId: string, following: boolean) {\n\tfollowState.update((s) => (s[userId] === following ? s : { ...s, [userId]: following }));\n}\n"],"version":3}