// Metro module 7716 (f7717). import { SeparatorAction } from "../RowGeneratorConstants"; import { UNSAFE_Colors } from "../../../../../_bundle/Module505"; import { memoize } from "../../../../../_bundle/Module12"; import { isThemeDark } from "../../../../../design/shared"; import Module712 from "../../../../../_bundle/Module712"; import { hexWithOpacity } from "../../../../../utils/ColorUtils"; import { processColorOrThrow } from "../RowGeneratorStyleSheet"; let c4849_5 = memoize((a0) => { const r9 = isThemeDark(a0) ? Module712.unsafe_rawColors.PRIMARY_700 : "#DBE0E4"; const r8 = isThemeDark(a0) ? Module712.unsafe_rawColors.PRIMARY_630 : "#FAFAFA"; const r30 = isThemeDark(a0) ? hexWithOpacity(Module712.unsafe_rawColors.PRIMARY_300, 0.6) : UNSAFE_Colors.GREY1; return { borderColor: processColorOrThrow(r9), backgroundColor: processColorOrThrow(r8), color: processColorOrThrow(r30) }; }); export function generateBlockedGroupRowData(a0, a1, c15997_0) { const { changeType, message, content, text, revealed } = a0; let context = a0.context; const rowType = a0.rowType; const canUncollapse = !("canUncollapse" in a0) || a0.canUncollapse; const r18 = { ...c4849_5(a1), type: rowType, content: content.map((item) => c15997_0.generate(item)) }; if (context == null) { context = message.id; } r18.button = { action: { type: SeparatorAction.TOGGLE_BLOCKED_MESSAGES, context } }; r18.changeType = changeType; r18.text = text; r18.revealed = revealed; r18.canUncollapse = canUncollapse; return r18; }