2026-07-24 07:16:23 +00:00
|
|
|
// Module ID: 10319
|
|
|
|
|
// Function ID: 79671
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: NotificationSettingsMuteBanner
|
2026-07-23 10:11:24 +00:00
|
|
|
// Dependencies: [31, 27, 33, 4130, 689, 4126, 4543, 1212, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: NotificationSettingsMuteBanner, getMuteBannerSubtitleFromConfig
|
|
|
|
|
|
2026-07-24 07:16:23 +00:00
|
|
|
// Module 10319 (NotificationSettingsMuteBanner)
|
2026-07-23 10:11:24 +00:00
|
|
|
import "result";
|
|
|
|
|
import { View } from "get ActivityIndicator";
|
|
|
|
|
import jsxProd from "jsxProd";
|
|
|
|
|
import _createForOfIteratorHelperLoose from "_createForOfIteratorHelperLoose";
|
2026-07-20 16:05:17 +00:00
|
|
|
|
2026-07-23 10:11:24 +00:00
|
|
|
let closure_3;
|
|
|
|
|
let closure_4;
|
|
|
|
|
const require = arg1;
|
|
|
|
|
({ jsx: closure_3, jsxs: closure_4 } = jsxProd);
|
|
|
|
|
_createForOfIteratorHelperLoose = {};
|
|
|
|
|
_createForOfIteratorHelperLoose = { padding: 16, display: "flex", flexDirection: "row", alignItems: "center", justifyContent: "space-between", borderRadius: require("_createForOfIteratorHelperLoose").radii.lg + 8, backgroundColor: require("_createForOfIteratorHelperLoose").colors.BACKGROUND_BRAND };
|
|
|
|
|
_createForOfIteratorHelperLoose.card = _createForOfIteratorHelperLoose;
|
|
|
|
|
_createForOfIteratorHelperLoose = _createForOfIteratorHelperLoose.createStyles(_createForOfIteratorHelperLoose);
|
|
|
|
|
const result = require("jsxProd").fileFinishedImporting("modules/notifications/settings/native/NotificationSettingsMuteBanner.tsx");
|
|
|
|
|
|
|
|
|
|
export const NotificationSettingsMuteBanner = function NotificationSettingsMuteBanner(style) {
|
2026-07-20 16:05:17 +00:00
|
|
|
let obj = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
const items = [style.style, _createForOfIteratorHelperLoose().card];
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.style = items;
|
2026-07-23 10:11:24 +00:00
|
|
|
obj = { style: { flex: 1, marginRight: 8 } };
|
|
|
|
|
obj = { variant: "text-md/semibold", color: "text-overlay-light", children: style.title };
|
|
|
|
|
const items1 = [callback(require(4126) /* Text */.Text, obj), ];
|
|
|
|
|
const obj1 = { variant: "text-xs/medium", color: "text-overlay-light", children: style.subtitle };
|
|
|
|
|
items1[1] = callback(require(4126) /* Text */.Text, obj1);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items1;
|
|
|
|
|
const items2 = [callback2(View, obj), ];
|
|
|
|
|
const obj2 = {};
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
obj2.text = intl.string(require(1212) /* getSystemLocale */.t.YqAjXy);
|
|
|
|
|
obj2.onPress = style.onPressUnmute;
|
2026-07-20 16:05:17 +00:00
|
|
|
obj2.variant = "primary-overlay";
|
2026-07-23 10:11:24 +00:00
|
|
|
items2[1] = callback(require(4543) /* Button */.Button, obj2);
|
2026-07-20 16:05:17 +00:00
|
|
|
obj.children = items2;
|
|
|
|
|
return callback2(View, obj);
|
|
|
|
|
};
|
|
|
|
|
export const getMuteBannerSubtitleFromConfig = function getMuteBannerSubtitleFromConfig(config) {
|
|
|
|
|
let end_time;
|
|
|
|
|
if (null != config) {
|
|
|
|
|
end_time = config.end_time;
|
|
|
|
|
}
|
|
|
|
|
if (null == end_time) {
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl = require(1212) /* getSystemLocale */.intl;
|
|
|
|
|
let stringResult = intl.string(require(1212) /* getSystemLocale */.t["tFqP/P"]);
|
2026-07-20 16:05:17 +00:00
|
|
|
} else {
|
2026-07-23 10:11:24 +00:00
|
|
|
const intl2 = require(1212) /* getSystemLocale */.intl;
|
2026-07-20 16:05:17 +00:00
|
|
|
const obj = {};
|
|
|
|
|
const _Date = Date;
|
|
|
|
|
const date = new Date(config.end_time);
|
2026-07-23 10:11:24 +00:00
|
|
|
obj.endTime = date.toLocaleString(require(1212) /* getSystemLocale */.intl.currentLocale, { month: "numeric", day: "numeric", hour: "numeric", minute: "2-digit" });
|
|
|
|
|
stringResult = intl2.formatToPlainString(require(1212) /* getSystemLocale */.t.C7m4oh, obj);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
return stringResult;
|
|
|
|
|
};
|