decord/source/modules/ads/native/AdUserStore.tsx

87 lines
2.1 KiB
TypeScript
Raw Normal View History

// Module ID: 7832
// Function ID: 7833
// Name: AdUserStore
// Dependencies: [504, 573, 2]
2026-07-23 10:11:24 +00:00
// Module 7832 (AdUserStore)
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
let c1 = false;
let c2 = false;
let c3 = null;
let closure_4 = null;
2026-08-24 06:08:38 +00:00
const Store = initializeDefault.Store;
2026-07-29 08:29:29 +00:00
class AdUserStore extends Store {
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
const prototype = AdUserStore.prototype;
Object.defineProperty(prototype, "adUser", {
get: function adUser() {
return closure_0;
},
set: undefined
});
Object.defineProperty(prototype, "isFetching", {
get: function isFetching() {
return c1;
},
set: undefined
});
Object.defineProperty(prototype, "hasFetchFailed", {
get: function hasFetchFailed() {
return c2;
},
set: undefined
});
Object.defineProperty(prototype, "fetchPromise", {
get: function fetchPromise() {
return c3;
},
set: undefined
});
Object.defineProperty(prototype, "lastFetchedAt", {
get: function lastFetchedAt() {
return closure_4;
2026-07-29 08:29:29 +00:00
},
set: undefined
});
Object.defineProperty(prototype, "hasFetchedRecently", {
get: function hasFetchedRecently() {
let tmp = null != closure_4;
2026-07-29 08:29:29 +00:00
if (tmp) {
const _Date = Date;
tmp = Date.now() - closure_4 < 21600000;
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
return tmp;
},
set: undefined
});
prototype["setFetchPromise"] = function setFetchPromise(arg0) {
c3 = arg0;
2026-07-29 08:29:29 +00:00
};
AdUserStore.displayName = "AdUserStore";
const adUserStore = new AdUserStore(DispatcherDefault, {
2026-07-20 16:05:17 +00:00
POST_CONNECTION_OPEN: function handlePostConnectionOpen() {
},
FETCH_AD_USER_START: function handleFetchAdUserStart() {
2026-08-24 06:08:38 +00:00
c1 = true;
closure_4 = Date.now();
2026-07-20 16:05:17 +00:00
},
FETCH_AD_USER_SUCCESS: function handleFetchAdUserSuccess(advertisingId) {
2026-08-24 06:08:38 +00:00
c1 = false;
c3 = null;
closure_0 = { advertisingId: advertisingId.advertisingId, isLimitAdTrackingEnabled: advertisingId.isLimitAdTrackingEnabled };
c2 = false;
2026-07-20 16:05:17 +00:00
},
FETCH_AD_USER_FAILURE: function handleFetchAdUserFailure() {
2026-08-24 06:08:38 +00:00
c1 = false;
c2 = true;
c3 = null;
2026-07-20 16:05:17 +00:00
}
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/ads/native/AdUserStore.tsx");
2026-07-20 16:05:17 +00:00
2026-07-29 08:29:29 +00:00
export default adUserStore;