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