This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

@@ -0,0 +1,43 @@
// 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;
}
@@ -0,0 +1,27 @@
// Metro module 12394 (f12395).
import { LoadingType, RowType, SeparatorAction } from "../RowGeneratorConstants";
import { createNativeStyleProperties } from "../../../../../design/components/Styles/native/createStyles";
import Module712 from "../../../../../_bundle/Module712";
const nativeStyleProperties = createNativeStyleProperties({
loadButtonBackgroundColor: Module712.colors.CONTROL_SECONDARY_BACKGROUND_DEFAULT,
loadButtonColor: Module712.colors.CONTROL_SECONDARY_TEXT_DEFAULT,
loadingColor: Module712.colors.ICON_SUBTLE
});
export function generateLoadingRowData({ rowType, changeType, text, isLoading }, a1) {
const r10 = nativeStyleProperties(a1);
return {
type: RowType.LOADING,
id: rowType,
button: {
action: {
type: rowType === LoadingType.LOAD_BEFORE ? SeparatorAction.LOAD_MORE_BEFORE : SeparatorAction.LOAD_MORE_AFTER
},
backgroundColor: r10.loadButtonBackgroundColor,
cornerRadius: 4,
text
},
color: isLoading ? r10.loadingColor : r10.loadButtonColor,
changeType,
isLoading
};
}
@@ -0,0 +1,49 @@
// Metro module 12393 (f12394).
import { RowType, SeparatorType } from "../RowGeneratorConstants";
import { createNativeStyleProperties } from "../../../../../design/components/Styles/native/createStyles";
import Module712 from "../../../../../_bundle/Module712";
import { isMobileVisualRefreshEnabled } from "../../../../themes/experiments/MobileVisualRefreshExperiment";
import { assertNever } from "../../../../../utils/GlobalUtils";
const nativeStyleProperties = createNativeStyleProperties({
dayColor: Module712.colors.TEXT_MUTED,
unreadTextColor: Module712.colors.MOBILE_CHAT_NEW_MESSAGE_TEXT,
unreadBorderColor: Module712.colors.MOBILE_CHAT_NEW_MESSAGE_BORDER,
summaryColor: Module712.colors.TEXT_BRAND
});
export function generateSeparatorRowData(a0, a1) {
const { rowType, changeType } = a0;
const r11 = nativeStyleProperties(a1);
if (SeparatorType.DAY === rowType) {
return {
type: RowType.SEPARATOR,
id: rowType,
color: r11.dayColor,
text: a0.text,
changeType
};
}
if (SeparatorType.UNREAD === rowType) {
const text = a0.text;
return {
type: RowType.SEPARATOR,
id: rowType,
color: r11.unreadTextColor,
borderColor: isMobileVisualRefreshEnabled("Separator") ? r11.unreadBorderColor : void 0,
changeType,
text
};
}
if (SeparatorType.SUMMARY === rowType) {
const summary = a0.summary;
return {
type: RowType.SEPARATOR,
id: rowType,
color: r11.summaryColor,
text: summary.topic,
summary,
isBeforeContent: a0.isBeforeContent,
changeType
};
}
assertNever(rowType);
}