2026-07-25 08:10:48 +00:00
// Module ID: 7794
2026-07-27 11:26:19 +00:00
// Function ID: 61871
2026-07-20 16:05:17 +00:00
// Name: _isNativeReflectConstruct
2026-07-25 08:10:48 +00:00
// Dependencies: [6, 7, 15, 17, 18, 4045, 1188, 5892, 1316, 5590, 3768, 653, 7795, 3804, 7796, 22, 566, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 7794 (_isNativeReflectConstruct)
2026-07-23 10:11:24 +00:00
import _isNativeReflectConstruct from "_isNativeReflectConstruct" ;
import closure_4 from "_isNativeReflectConstruct" ;
import apply from "apply" ;
import dispatcher from "dispatcher" ;
import closure_7 from "set" ;
import closure_8 from "_isNativeReflectConstruct" ;
import closure_9 from "_isNativeReflectConstruct" ;
import closure_10 from "_isNativeReflectConstruct" ;
import closure_11 from "_isNativeReflectConstruct" ;
import closure_12 from "_isNativeReflectConstruct" ;
import closure_13 from "_isNativeReflectConstruct" ;
import { Consents } from "ME" ;
import set from "_possibleConstructorReturn" ;
const require = arg1 ;
2026-07-20 16:05:17 +00:00
function _isNativeReflectConstruct() {
let closure_0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
} ) ) ;
function _isNativeReflectConstruct() {
return closure_0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
2026-07-23 10:11:24 +00:00
function _createForOfIteratorHelperLoose ( iterable ) {
let closure_0 = iterable ;
iterable = "undefined" !== typeof Symbol ;
if ( iterable ) {
2026-07-20 16:05:17 +00:00
const _Symbol = Symbol ;
2026-07-23 10:11:24 +00:00
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( ! iterable ) {
iterable = iterable [ Symbol . iterator ] ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
if ( iterable ) {
const iter = iterable . call ( iterable ) ;
2026-07-20 16:05:17 +00:00
const next = iter . next ;
return next . bind ( iter ) ;
} else {
const _Array = Array ;
2026-07-23 10:11:24 +00:00
let tmp = iterable ;
if ( ! Array . isArray ( iterable ) ) {
2026-07-20 16:05:17 +00:00
let tmp2 ;
2026-07-23 10:11:24 +00:00
if ( iterable ) {
if ( "string" === typeof iterable ) {
tmp2 = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
const toString = { } . toString ;
2026-07-23 10:11:24 +00:00
const substr = toString . call ( iterable ) . slice ( 8 , - 1 ) ;
2026-07-20 16:05:17 +00:00
let name = substr ;
if ( tmp3 ) {
2026-07-23 10:11:24 +00:00
name = iterable . constructor . name ;
2026-07-20 16:05:17 +00:00
}
if ( "Map" !== name ) {
if ( "Set" !== name ) {
if ( "Arguments" === name ) {
2026-07-23 10:11:24 +00:00
let arr = _arrayLikeToArray ( iterable , undefined ) ;
2026-07-20 16:05:17 +00:00
} else {
2026-07-23 10:11:24 +00:00
let obj = /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/ ;
2026-07-20 16:05:17 +00:00
}
}
tmp2 = arr ;
}
const _Array2 = Array ;
2026-07-23 10:11:24 +00:00
arr = Array . from ( iterable ) ;
const callResult = toString . call ( iterable ) ;
tmp3 = "Object" === substr && iterable . constructor ;
2026-07-20 16:05:17 +00:00
}
}
tmp = tmp2 ;
if ( ! tmp2 ) {
const _TypeError = TypeError ;
const typeError = new TypeError ( "Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." ) ;
throw typeError ;
}
}
if ( tmp ) {
2026-07-23 10:11:24 +00:00
closure_0 = tmp ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
let c1 = 0 ;
2026-07-20 16:05:17 +00:00
return ( ) = > {
2026-07-23 10:11:24 +00:00
if ( closure_1 >= length . length ) {
2026-07-20 16:05:17 +00:00
let obj = { done : true } ;
} else {
obj = { done : false } ;
closure_1 = tmp3 + 1 ;
2026-07-23 10:11:24 +00:00
obj . value = length [ + closure_1 ] ;
2026-07-20 16:05:17 +00:00
}
return obj ;
} ;
}
}
function _arrayLikeToArray ( arg0 , arg1 ) {
let length ;
if ( tmp ) {
length = arg0 . length ;
}
const ArrayResult = Array ( length ) ;
for ( let num = 0 ; num < length ; num = num + 1 ) {
ArrayResult [ num ] = arg0 [ num ] ;
}
return ArrayResult ;
}
function getCurrentTime() {
2026-07-23 10:11:24 +00:00
if ( null != c22 ) {
let timestamp = c22 ;
2026-07-20 16:05:17 +00:00
} else {
const _Date = Date ;
timestamp = Date . now ( ) ;
}
return timestamp ;
}
function categorizeTopAffinityFriendAnniversaries ( flag ) {
2026-07-23 10:11:24 +00:00
let set ;
let set1 ;
2026-07-20 16:05:17 +00:00
if ( flag === undefined ) {
flag = false ;
}
2026-07-25 08:10:48 +00:00
const result = require ( 7795 ) /* _createForOfIteratorHelperLoose */ . categorizeFriendAnniversariesByAffinity ( closure_16 , ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
const userAffinity = outer1_10 . getUserAffinity ( arg0 ) ;
2026-07-20 16:05:17 +00:00
let dmProbability ;
if ( null != userAffinity ) {
dmProbability = userAffinity . dmProbability ;
}
return dmProbability ;
} , flag ) ;
2026-07-23 10:11:24 +00:00
( { highestAffinity : set , highAffinity : set1 } = result ) ;
2026-07-20 16:05:17 +00:00
}
function updateFriendAnniversaries() {
2026-07-23 10:11:24 +00:00
let arr ;
2026-07-20 16:05:17 +00:00
let iter3 ;
2026-07-23 10:11:24 +00:00
if ( null == c20 ) {
2026-07-20 16:05:17 +00:00
resetFriendAnniversaries ( ) ;
if ( closure_12 . hasConsented ( Consents . PERSONALIZATION ) ) {
2026-07-25 08:10:48 +00:00
const EnableFriendAnniversaryNotifications = require ( 3804 ) /* explicitContentFromProto */ . EnableFriendAnniversaryNotifications ;
2026-07-20 16:05:17 +00:00
if ( EnableFriendAnniversaryNotifications . getSetting ( ) ) {
const tmp12 = _createForOfIteratorHelperLoose ( store . getFriendIDs ( ) ) ;
const iter = tmp12 ( ) ;
let iter2 = iter ;
if ( ! iter . done ) {
do {
let value = iter2 . value ;
2026-07-23 10:11:24 +00:00
let tmp15 = store ;
let since = store . getSince ( value ) ;
let tmp17 = userAffinity ;
userAffinity = userAffinity . getUserAffinity ( value ) ;
let tmp19 = store ;
2026-07-20 16:05:17 +00:00
let tmp20 = tmp14 ;
2026-07-23 10:11:24 +00:00
if ( store . isFriend ( value ) ) {
2026-07-20 16:05:17 +00:00
tmp20 = tmp14 ;
if ( null != userAffinity ) {
tmp20 = tmp14 ;
if ( userAffinity . dmProbability > 0 ) {
tmp20 = tmp14 ;
if ( null != since ) {
let _Date = Date ;
let tmp21 = new . target ;
let tmp22 = new . target ;
let tmp23 = since ;
let date = new Date ( since ) ;
let tmp25 = date ;
2026-07-23 10:11:24 +00:00
let tmp26 = require ;
let tmp27 = dependencyMap ;
2026-07-25 08:10:48 +00:00
let obj = require ( 7795 ) /* _createForOfIteratorHelperLoose */ ;
2026-07-20 16:05:17 +00:00
tmp20 = date ;
if ( obj . isFriendAnniversary ( date ) ) {
2026-07-23 10:11:24 +00:00
let tmp28 = arr ;
arr = arr . push ( value ) ;
2026-07-20 16:05:17 +00:00
let tmp30 = closure_19 ;
obj = { friendsSince : date } ;
closure_19 [ value ] = obj ;
tmp20 = date ;
}
}
}
}
}
iter3 = tmp12 ( ) ;
2026-07-23 10:11:24 +00:00
tmp14 = tmp20 ;
2026-07-20 16:05:17 +00:00
iter2 = iter3 ;
} while ( ! iter3 . done ) ;
}
2026-07-23 10:11:24 +00:00
if ( 0 !== arr . length ) {
2026-07-20 16:05:17 +00:00
obj = { location : "PremiumGiftingIntentStore updateFriendAnniversaries" } ;
if ( obj3 . getFriendAnniversaryGateConfig ( obj ) . enabled ) {
2026-07-23 10:11:24 +00:00
const sorted = arr . sort ( ( arg0 , arg1 ) = > outer1_10 . compareByDmProbability ( arg0 , arg1 ) ) ;
2026-07-20 16:05:17 +00:00
categorizeTopAffinityFriendAnniversaries ( ) ;
} else {
resetFriendAnniversaries ( ) ;
}
2026-07-25 08:10:48 +00:00
obj3 = require ( 7796 ) /* getFriendAnniversaryGateConfig */ ;
2026-07-20 16:05:17 +00:00
}
}
}
} else {
2026-07-23 10:11:24 +00:00
generateFriendAnniversaries ( c20 ) ;
2026-07-20 16:05:17 +00:00
}
}
function resetFriendAnniversaries() {
closure_16 . length = 0 ;
const set = new Set ( ) ;
const set1 = new Set ( ) ;
let closure_19 = { } ;
}
function maybeUpdateMessageGiftIntentLastShownMap ( recipientUserId ) {
if ( null == closure_15 . messageGiftIntentLastShownMap [ recipientUserId ] ) {
closure_15 . messageGiftIntentLastShownMap [ recipientUserId ] = getCurrentTime ( ) ;
}
}
2026-07-23 10:11:24 +00:00
function generateFriendAnniversaries ( c20 ) {
2026-07-20 16:05:17 +00:00
resetFriendAnniversaries ( ) ;
if ( obj . getFriendAnniversaryGateConfig ( { location : "PremiumGiftingIntentStore generateFriendAnniversaries" } ) . enabled ) {
2026-07-25 08:10:48 +00:00
const EnableFriendAnniversaryNotifications = set ( 3804 ) . EnableFriendAnniversaryNotifications ;
2026-07-20 16:05:17 +00:00
if ( EnableFriendAnniversaryNotifications . getSetting ( ) ) {
2026-07-23 10:11:24 +00:00
let closure_20 = c20 ;
2026-07-20 16:05:17 +00:00
const friendIDs = store . getFriendIDs ( ) ;
2026-07-23 10:11:24 +00:00
const found = friendIDs . filter ( ( arg0 ) = > ! outer1_13 . isIgnored ( arg0 ) ) ;
2026-07-20 16:05:17 +00:00
const _Set = Set ;
2026-07-23 10:11:24 +00:00
set = new Set ( found ) ;
2026-07-20 16:05:17 +00:00
if ( null != _null ) {
2026-07-23 10:11:24 +00:00
if ( _null . length === c20 ) {
_null = sampleSizeResult ;
2026-07-20 16:05:17 +00:00
const item = sampleSizeResult . forEach ( ( arg0 ) = > {
2026-07-23 10:11:24 +00:00
const since = outer1_13 . getSince ( arg0 ) ;
2026-07-20 16:05:17 +00:00
if ( null != since ) {
const _Date = Date ;
const date = new Date ( since ) ;
2026-07-23 10:11:24 +00:00
outer1_16 . push ( arg0 ) ;
2026-07-20 16:05:17 +00:00
const obj = { friendsSince : date } ;
2026-07-23 10:11:24 +00:00
outer1_19 [ arg0 ] = obj ;
2026-07-20 16:05:17 +00:00
}
} ) ;
2026-07-23 10:11:24 +00:00
const sorted = arr . sort ( ( arg0 , arg1 ) = > outer1_10 . compareByDmProbability ( arg0 , arg1 ) ) ;
2026-07-20 16:05:17 +00:00
categorizeTopAffinityFriendAnniversaries ( true ) ;
}
2026-07-23 10:11:24 +00:00
sampleSizeResult = _null ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
sampleSizeResult = importDefault ( 22 ) . sampleSize ( found , c20 ) ;
const obj2 = importDefault ( 22 ) ;
2026-07-20 16:05:17 +00:00
}
}
}
let closure_15 = { messageGiftIntentLastShownMap : { } , lastShownFriendsListGiftIntents : [ ] , friendsTabBadgeLastDismissedTime : null , lastKnownGiftIntentDismissedAtMs : 0 } ;
let closure_16 = [ ] ;
2026-07-23 10:11:24 +00:00
let set = new Set ( ) ;
let set1 = new Set ( ) ;
2026-07-20 16:05:17 +00:00
let closure_19 = { } ;
2026-07-23 10:11:24 +00:00
let c20 = null ;
let c21 = null ;
let c22 = null ;
let tmp4 = ( ( PersistedStore ) = > {
2026-07-20 16:05:17 +00:00
class PremiumGiftingIntentStore {
constructor ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1_3 ( this , PremiumGiftingIntentStore ) ;
obj = outer1_6 ( PremiumGiftingIntentStore ) ;
tmp2 = outer1_5 ;
if ( outer1_23 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_6 ;
2026-07-20 16:05:17 +00:00
tmp8 = arguments ;
2026-07-23 10:11:24 +00:00
constructResult = Reflect . construct ( obj , arguments , outer1_6 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
callback2 ( PremiumGiftingIntentStore , PersistedStore ) ;
let obj = {
key : "initialize" ,
value ( friendsTabBadgeLastDismissedTime ) {
const self = this ;
2026-07-23 10:11:24 +00:00
const outer1_15 = { messageGiftIntentLastShownMap : { } , lastShownFriendsListGiftIntents : [ ] , friendsTabBadgeLastDismissedTime : null , lastKnownGiftIntentDismissedAtMs : 0 } ;
2026-07-20 16:05:17 +00:00
if ( null != friendsTabBadgeLastDismissedTime ) {
2026-07-23 10:11:24 +00:00
outer1_15 . friendsTabBadgeLastDismissedTime = friendsTabBadgeLastDismissedTime . friendsTabBadgeLastDismissedTime ;
2026-07-20 16:05:17 +00:00
const _Array = Array ;
2026-07-23 10:11:24 +00:00
outer1_15 . lastShownFriendsListGiftIntents = Array . from ( friendsTabBadgeLastDismissedTime . lastShownFriendsListGiftIntents ) ;
2026-07-20 16:05:17 +00:00
const obj = { } ;
const merged = Object . assign ( friendsTabBadgeLastDismissedTime . messageGiftIntentLastShownMap ) ;
2026-07-23 10:11:24 +00:00
outer1_15 . messageGiftIntentLastShownMap = obj ;
2026-07-20 16:05:17 +00:00
const lastKnownGiftIntentDismissedAtMs = friendsTabBadgeLastDismissedTime . lastKnownGiftIntentDismissedAtMs ;
let num = 0 ;
if ( null != lastKnownGiftIntentDismissedAtMs ) {
num = lastKnownGiftIntentDismissedAtMs ;
}
2026-07-23 10:11:24 +00:00
outer1_15 . lastKnownGiftIntentDismissedAtMs = num ;
const tmp7 = outer1_15 ;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
const items = [ outer1_13 , outer1_10 , outer1_12 , outer1_8 , outer1_9 , outer1_11 ] ;
self . syncWith ( items , outer1_28 ) ;
outer1_15 . messageGiftIntentLastShownMap = PremiumGiftingIntentStore ( outer1_2 [ 12 ] ) . pruneTimestampMap ( outer1_15 . messageGiftIntentLastShownMap , outer1_26 ( ) , 1209600000 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
2026-07-23 10:11:24 +00:00
let items = [ obj , , , , , , , , , , , ] ;
2026-07-20 16:05:17 +00:00
obj = {
key : "getState" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_15 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 1 ] = obj ;
obj = {
key : "getFriendAnniversaries" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_16 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "canShowFriendsTabBadge" ,
value() {
2026-07-23 10:11:24 +00:00
return ( function hasNewHighAffinityFriendAnniversaries() {
return Array . from ( outer2_18 ) . some ( ( arg0 ) = > {
const lastShownFriendsListGiftIntents = outer3_15 . lastShownFriendsListGiftIntents ;
2026-07-20 16:05:17 +00:00
return ! lastShownFriendsListGiftIntents . includes ( arg0 ) ;
} ) ;
2026-07-23 10:11:24 +00:00
} ) ( ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 4 ] = {
key : "getFriendAnniversaryYears" ,
value ( arg0 ) {
let num = 0 ;
2026-07-23 10:11:24 +00:00
if ( null != outer1_19 [ arg0 ] ) {
num = PremiumGiftingIntentStore ( outer1_2 [ 12 ] ) . yearsSince ( tmp . friendsSince ) ;
const obj = PremiumGiftingIntentStore ( outer1_2 [ 12 ] ) ;
2026-07-20 16:05:17 +00:00
}
return num ;
}
} ;
items [ 5 ] = {
key : "isGiftIntentMessageInCooldown" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return null != outer1_15 . messageGiftIntentLastShownMap [ arg0 ] ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 6 ] = {
key : "getDevToolTotalFriendAnniversaries" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_20 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 7 ] = {
key : "getDevToolCurrentDate" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_22 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 8 ] = {
key : "getHighestAffinityFriendAnniversaries" ,
value() {
2026-07-23 10:11:24 +00:00
return Array . from ( outer1_17 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 9 ] = {
key : "getHighAffinityFriendAnniversaries" ,
value() {
2026-07-23 10:11:24 +00:00
return Array . from ( outer1_18 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 10 ] = {
key : "getMessageGiftIntentLastShownMap" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_15 . messageGiftIntentLastShownMap ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 11 ] = {
key : "getLastKnownGiftIntentDismissedAtMs" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_15 . lastKnownGiftIntentDismissedAtMs ;
2026-07-20 16:05:17 +00:00
}
} ;
return callback ( PremiumGiftingIntentStore , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . PersistedStore ) ;
2026-07-20 16:05:17 +00:00
tmp4 . displayName = "PremiumGiftingIntentStore" ;
tmp4 . persistKey = "PremiumGiftingIntentStore" ;
2026-07-23 10:11:24 +00:00
let items = [
2026-07-20 16:05:17 +00:00
( friendsTabBadgeLastDismissedTime ) = > {
let tmp = friendsTabBadgeLastDismissedTime ;
if ( null != friendsTabBadgeLastDismissedTime ) {
const obj = { } ;
friendsTabBadgeLastDismissedTime = friendsTabBadgeLastDismissedTime . friendsTabBadgeLastDismissedTime ;
let tmp2 = null ;
if ( null != friendsTabBadgeLastDismissedTime ) {
tmp2 = friendsTabBadgeLastDismissedTime ;
}
obj . friendsTabBadgeLastDismissedTime = tmp2 ;
let prop = friendsTabBadgeLastDismissedTime . lastShownFriendsListGiftIntents ;
if ( null == prop ) {
prop = [ ] ;
}
obj . lastShownFriendsListGiftIntents = prop ;
obj . messageGiftIntentLastShownMap = { } ;
tmp = obj ;
}
return tmp ;
} ,
( lastShownFriendsListGiftIntents ) = > {
let tmp = lastShownFriendsListGiftIntents ;
if ( null != lastShownFriendsListGiftIntents ) {
const obj = { friendsTabBadgeLastDismissedTime : null } ;
let prop = lastShownFriendsListGiftIntents . lastShownFriendsListGiftIntents ;
if ( null == prop ) {
prop = [ ] ;
}
obj . lastShownFriendsListGiftIntents = prop ;
let prop1 = lastShownFriendsListGiftIntents . messageGiftIntentLastShownMap ;
if ( null == prop1 ) {
prop1 = { } ;
}
obj . messageGiftIntentLastShownMap = prop1 ;
obj . giftUnreadNotificationLastDismissedTimes = [ ] ;
tmp = obj ;
}
return tmp ;
} ,
( lastShownFriendsListGiftIntents ) = > {
let tmp = lastShownFriendsListGiftIntents ;
if ( null != lastShownFriendsListGiftIntents ) {
const obj = { friendsTabBadgeLastDismissedTime : null } ;
let prop = lastShownFriendsListGiftIntents . lastShownFriendsListGiftIntents ;
if ( null == prop ) {
prop = [ ] ;
}
obj . lastShownFriendsListGiftIntents = prop ;
let prop1 = lastShownFriendsListGiftIntents . messageGiftIntentLastShownMap ;
if ( null == prop1 ) {
prop1 = { } ;
}
obj . messageGiftIntentLastShownMap = prop1 ;
let prop2 = lastShownFriendsListGiftIntents . giftUnreadNotificationLastDismissedTimes ;
if ( null == prop2 ) {
prop2 = [ ] ;
}
obj . giftUnreadNotificationLastDismissedTimes = prop2 ;
obj . profilePopoutGiftIntentsDismissMap = { } ;
tmp = obj ;
}
return tmp ;
} ,
( lastKnownGiftIntentDismissedAtMs ) = > {
let tmp = lastKnownGiftIntentDismissedAtMs ;
if ( null != lastKnownGiftIntentDismissedAtMs ) {
const obj = { } ;
const merged = Object . assign ( lastKnownGiftIntentDismissedAtMs ) ;
lastKnownGiftIntentDismissedAtMs = lastKnownGiftIntentDismissedAtMs . lastKnownGiftIntentDismissedAtMs ;
let num = 0 ;
if ( null != lastKnownGiftIntentDismissedAtMs ) {
num = lastKnownGiftIntentDismissedAtMs ;
}
obj [ "lastKnownGiftIntentDismissedAtMs" ] = num ;
tmp = obj ;
}
return tmp ;
} ,
( arg0 ) = > {
if ( null != arg0 ) {
2026-07-23 10:11:24 +00:00
delete tmp . profilePopoutGiftIntentsDismissMap ;
2026-07-20 16:05:17 +00:00
}
return arg0 ;
} ,
( arg0 ) = > {
if ( null == arg0 ) {
return arg0 ;
} else {
const obj = { } ;
const merged = Object . assign ( arg0 ) ;
2026-07-23 10:11:24 +00:00
delete tmp . giftUnreadNotificationLastDismissedTimes ;
2026-07-20 16:05:17 +00:00
return obj ;
}
}
] ;
tmp4 . migrations = items ;
2026-07-23 10:11:24 +00:00
tmp4 = new tmp4 ( require ( "dispatcher" ) , {
2026-07-20 16:05:17 +00:00
CONNECTION_OPEN : function handleConnectionOpen() {
resetFriendAnniversaries ( ) ;
} ,
LOGOUT : function handleLogout() {
let closure_15 = { messageGiftIntentLastShownMap : { } , lastShownFriendsListGiftIntents : [ ] , friendsTabBadgeLastDismissedTime : null , lastKnownGiftIntentDismissedAtMs : 0 } ;
resetFriendAnniversaries ( ) ;
} ,
MESSAGE_GIFT_INTENT_SHOWN : function handleMessageGiftIntentShown ( recipientUserId ) {
maybeUpdateMessageGiftIntentLastShownMap ( recipientUserId . recipientUserId ) ;
} ,
FRIENDS_LIST_GIFT_INTENTS_SHOWN : function handleFriendsListGiftIntentsShown() {
closure_15 . lastShownFriendsListGiftIntents = Array . from ( closure_16 ) ;
} ,
GIFT_INTENT_FLOW_PURCHASED_GIFT : function handleGiftIntentFlowPurchasedGift ( recipientUserId ) {
maybeUpdateMessageGiftIntentLastShownMap ( recipientUserId . recipientUserId ) ;
} ,
GIFT_INTENT_DISMISSALS_FETCH_SUCCESS : function handleGiftIntentDismissalsFetchSuccess ( arg0 ) {
let dismissals ;
let dismissedAtMs ;
let iter2 ;
let settingsTimestampMs ;
let targetId ;
const obj = { } ;
( { dismissals , settingsTimestampMs } = arg0 ) ;
const merged = Object . assign ( closure_15 . messageGiftIntentLastShownMap ) ;
const tmp2 = _createForOfIteratorHelperLoose ( dismissals ) ;
let iter = tmp2 ( ) ;
if ( ! iter . done ) {
do {
( { targetId , dismissedAtMs } = iter . value ) ;
let tmp3 = obj [ targetId ] ;
let bound = dismissedAtMs ;
if ( null != tmp3 ) {
let _Math = Math ;
bound = Math . max ( tmp3 , dismissedAtMs ) ;
}
obj [ targetId ] = bound ;
iter2 = tmp2 ( ) ;
iter = iter2 ;
} while ( ! iter2 . done ) ;
}
2026-07-25 08:10:48 +00:00
closure_15 . messageGiftIntentLastShownMap = require ( 7795 ) /* _createForOfIteratorHelperLoose */ . pruneTimestampMap ( obj , getCurrentTime ( ) , 1296000000 ) ;
2026-07-20 16:05:17 +00:00
closure_15 . lastKnownGiftIntentDismissedAtMs = settingsTimestampMs ;
} ,
DEV_TOOLS_FRIENDS_LIST_GIFT_INTENTS_SHOWN_RESET : function handleDevToolResetFriendsListGiftIntentsShown() {
closure_15 . lastShownFriendsListGiftIntents = [ ] ;
} ,
DEV_TOOLS_GIFT_MESSAGE_COOLDOWN_RESET : function handleDevToolResetGiftMessageCooldown() {
closure_15 . messageGiftIntentLastShownMap = { } ;
} ,
DEV_TOOLS_SET_FRIEND_ANNIVERSARY_COUNT : function handleDevToolSetFriendAnniversaryCount ( total ) {
total = total . total ;
if ( null == total ) {
2026-07-23 10:11:24 +00:00
let c20 = null ;
let c21 = null ;
2026-07-20 16:05:17 +00:00
updateFriendAnniversaries ( ) ;
} else {
generateFriendAnniversaries ( total ) ;
}
} ,
DEV_TOOLS_RESAMPLE_FRIEND_ANNIVERSARIES : function handleDevToolResampleFriendAnniversaries() {
2026-07-23 10:11:24 +00:00
let flag = null != c20 ;
2026-07-20 16:05:17 +00:00
if ( flag ) {
2026-07-23 10:11:24 +00:00
let c21 = null ;
generateFriendAnniversaries ( c20 ) ;
2026-07-20 16:05:17 +00:00
flag = true ;
}
return flag ;
} ,
DEV_TOOLS_SET_CURRENT_DATE : function handleDevToolSetCurrentDate ( date ) {
} ,
DEV_TOOLS_RESET_CURRENT_DATE : function handleDevToolResetCurrentDate() {
2026-07-23 10:11:24 +00:00
let c22 = null ;
2026-07-20 16:05:17 +00:00
}
} ) ;
2026-07-23 10:11:24 +00:00
let result = set . fileFinishedImporting ( "modules/premium/gifting/PremiumGiftingIntentStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp4 ;
export const FRIENDS_LIST_ANNIVERSARY_DISPLAY_LIMIT = 5 ;
export const FRIENDS_TAB_BADGE_COOLDOWN_MS = 604800000 ;