2026-07-25 08:10:48 +00:00
// Module ID: 5931
2026-07-27 11:26:19 +00:00
// Function ID: 52677
2026-07-20 16:05:17 +00:00
// Name: _createForOfIteratorHelperLoose
2026-07-23 10:11:24 +00:00
// Dependencies: [6, 7, 15, 17, 18, 566, 686, 2]
2026-07-20 16:05:17 +00:00
2026-07-25 08:10:48 +00:00
// Module 5931 (_createForOfIteratorHelperLoose)
2026-07-23 10:11:24 +00:00
import dispatcher from "dispatcher" ;
import set from "set" ;
import _possibleConstructorReturn from "_possibleConstructorReturn" ;
import _getPrototypeOf from "_getPrototypeOf" ;
import _inherits from "_inherits" ;
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 ;
}
}
2026-07-23 10:11:24 +00:00
if ( tmp ) {
closure_0 = tmp ;
}
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 _isNativeReflectConstruct() {
let closure_0 = ! valueOf . call ( Reflect . construct ( Boolean , [ ] , ( ) = > {
} ) ) ;
function _isNativeReflectConstruct() {
return closure_0 ;
}
const result = _isNativeReflectConstruct ( ) ;
}
function initializeState() {
2026-07-23 10:11:24 +00:00
let c0 = false ;
2026-07-20 16:05:17 +00:00
let closure_1 = [ ] ;
const set = new Set ( ) ;
const set1 = new Set ( ) ;
const map = new Map ( ) ;
const map1 = new Map ( ) ;
}
initializeState ( ) ;
2026-07-23 10:11:24 +00:00
let tmp3 = ( ( Store ) = > {
2026-07-20 16:05:17 +00:00
class BountyStore {
constructor ( ) {
self = this ;
2026-07-23 10:11:24 +00:00
tmp = outer1_6 ( this , BountyStore ) ;
obj = outer1_9 ( BountyStore ) ;
tmp2 = outer1_8 ;
if ( outer1_13 ( ) ) {
2026-07-20 16:05:17 +00:00
tmp6 = globalThis ;
_Reflect = Reflect ;
2026-07-23 10:11:24 +00:00
tmp7 = outer1_9 ;
2026-07-20 16:05:17 +00:00
tmp8 = arguments ;
2026-07-23 10:11:24 +00:00
constructResult = Reflect . construct ( obj , arguments , outer1_9 ( self ) . constructor ) ;
2026-07-20 16:05:17 +00:00
} else {
tmp3 = arguments ;
tmp4 = arguments ;
constructResult = obj ( . . . arguments ) ;
}
return tmp2 ( self , constructResult ) ;
}
}
callback2 ( BountyStore , Store ) ;
let obj = {
key : "isFetchingQuestHomeBounties" ,
get ( ) {
return BountyStore ;
}
} ;
const items = [ obj , , , , , , , ] ;
obj = {
key : "questHomeBounties" ,
get ( ) {
2026-07-23 10:11:24 +00:00
return outer1_1 ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 1 ] = obj ;
obj = {
key : "isBountyCompleted" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return outer1_2 . has ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 2 ] = obj ;
items [ 3 ] = {
key : "getCompletedBountyCount" ,
value ( arg0 ) {
let iter3 ;
2026-07-23 10:11:24 +00:00
const tmp = outer1_11 ( arg0 ) ;
2026-07-20 16:05:17 +00:00
const iter = tmp ( ) ;
let iter2 = iter ;
let num = 0 ;
let num2 = 0 ;
if ( ! iter . done ) {
do {
2026-07-23 10:11:24 +00:00
let tmp2 = outer1_2 ;
2026-07-20 16:05:17 +00:00
let sum = num ;
2026-07-23 10:11:24 +00:00
if ( outer1_2 . has ( iter2 . value . id ) ) {
2026-07-20 16:05:17 +00:00
sum = num + 1 ;
}
iter3 = tmp ( ) ;
num = sum ;
iter2 = iter3 ;
num2 = sum ;
} while ( ! iter3 . done ) ;
}
return num2 ;
}
} ;
items [ 4 ] = {
key : "isClaimingBountyReward" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
return outer1_3 . has ( arg0 ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 5 ] = {
key : "areAllBountiesCompleted" ,
value() {
2026-07-23 10:11:24 +00:00
return outer1_1 . every ( ( id ) = > outer2_2 . has ( id . id ) ) ;
2026-07-20 16:05:17 +00:00
}
} ;
items [ 6 ] = {
key : "getAdDecisionByPlacementAndAdCreativeId" ,
value ( arg0 , arg1 ) {
2026-07-23 10:11:24 +00:00
let value = outer1_4 . get ( arg0 ) ;
2026-07-20 16:05:17 +00:00
value = undefined ;
if ( null != value ) {
value = value . get ( arg1 ) ;
}
let tmp3 = null ;
if ( null != value ) {
tmp3 = value ;
}
return tmp3 ;
}
} ;
items [ 7 ] = {
key : "getBountyVideoProgress" ,
value ( arg0 ) {
2026-07-23 10:11:24 +00:00
const value = outer1_5 . get ( arg0 ) ;
2026-07-20 16:05:17 +00:00
let tmp2 = null ;
if ( null != value ) {
tmp2 = value ;
}
return tmp2 ;
}
} ;
return callback ( BountyStore , items ) ;
2026-07-23 10:11:24 +00:00
} ) ( require ( "initialize" ) . Store ) ;
2026-07-20 16:05:17 +00:00
tmp3 . displayName = "BountyStore" ;
2026-07-23 10:11:24 +00:00
tmp3 = new tmp3 ( require ( "dispatcher" ) , {
2026-07-20 16:05:17 +00:00
LOGOUT : function handleLogout() {
initializeState ( ) ;
} ,
BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_BEGIN : function handleFetchQuestHomeBountiesBegin() {
2026-07-23 10:11:24 +00:00
let c0 = true ;
2026-07-20 16:05:17 +00:00
} ,
BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_SUCCESS : function handleFetchQuestHomeBountiesSuccess ( bounties ) {
let adDecisionsByAdCreativeId ;
let placement ;
2026-07-23 10:11:24 +00:00
let c0 = false ;
2026-07-20 16:05:17 +00:00
bounties = bounties . bounties ;
( { placement , adDecisionsByAdCreativeId } = bounties ) ;
const set = new Set ( ) ;
const map = new Map ( ) ;
2026-07-23 10:11:24 +00:00
map1 = new Map ( map1 ) ;
2026-07-20 16:05:17 +00:00
const result = map1 . set ( placement , adDecisionsByAdCreativeId ) ;
} ,
BOUNTIES_FETCH_QUEST_HOME_BOUNTIES_FAILURE : function handleFetchQuestHomeBountiesFailure ( placement ) {
2026-07-23 10:11:24 +00:00
let c0 = false ;
2026-07-20 16:05:17 +00:00
let closure_1 = [ ] ;
const set = new Set ( ) ;
2026-07-23 10:11:24 +00:00
map = new Map ( map ) ;
2026-07-20 16:05:17 +00:00
map . delete ( placement . placement ) ;
} ,
BOUNTIES_CLAIM_REWARD_BEGIN : function handleClaimBountyRewardBegin ( bountyId ) {
2026-07-23 10:11:24 +00:00
set = new Set ( set ) ;
2026-07-20 16:05:17 +00:00
set . add ( bountyId . bountyId ) ;
} ,
BOUNTIES_CLAIM_REWARD_SUCCESS : function handleClaimBountyRewardSuccess ( bountyId ) {
bountyId = bountyId . bountyId ;
2026-07-23 10:11:24 +00:00
set = new Set ( set ) ;
2026-07-20 16:05:17 +00:00
set . delete ( bountyId ) ;
2026-07-23 10:11:24 +00:00
set1 = new Set ( set1 ) ;
2026-07-20 16:05:17 +00:00
set1 . add ( bountyId ) ;
} ,
BOUNTIES_CLAIM_REWARD_FAILURE : function handleClaimBountyRewardFailure ( bountyId ) {
2026-07-23 10:11:24 +00:00
set = new Set ( set ) ;
2026-07-20 16:05:17 +00:00
set . delete ( bountyId . bountyId ) ;
} ,
BOUNTIES_VIDEO_PROGRESS_UPDATE : function handleBountyVideoProgressUpdate ( arg0 ) {
let bountyId ;
let duration ;
let maxTimestampSec ;
let timestampSec ;
( { bountyId , timestampSec , maxTimestampSec , duration } = arg0 ) ;
2026-07-23 10:11:24 +00:00
map = new Map ( map ) ;
2026-07-20 16:05:17 +00:00
const result = map . set ( bountyId , { timestampSec , maxTimestampSec , duration } ) ;
} ,
AD_SESSION_RESET : function handleAdSessionReset() {
const map = new Map ( ) ;
}
} ) ;
2026-07-23 10:11:24 +00:00
let result = require ( "_possibleConstructorReturn" ) . fileFinishedImporting ( "modules/quests/BountyStore.tsx" ) ;
2026-07-20 16:05:17 +00:00
export default tmp3 ;