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

84 lines
2 KiB
TypeScript
Raw Normal View History

2026-07-30 10:14:41 +00:00
// Module ID: 6013
// Function ID: 6014
2026-07-29 08:29:29 +00:00
// Name: adUser
// Dependencies: [589, 709, 2]
2026-07-23 10:11:24 +00:00
2026-07-30 10:14:41 +00:00
// Module 6013 (adUser)
2026-07-29 08:29:29 +00:00
import { Store } from "initialize";
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 c4 = null;
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 c4;
},
set: undefined
});
Object.defineProperty(prototype, "hasFetchedRecently", {
get: function hasFetchedRecently() {
let tmp = null != c4;
if (tmp) {
const _Date = Date;
tmp = Date.now() - c4 < 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) {
let closure_3 = arg0;
};
AdUserStore.displayName = "AdUserStore";
const adUserStore = new AdUserStore(require("dispatcher"), {
2026-07-20 16:05:17 +00:00
POST_CONNECTION_OPEN: function handlePostConnectionOpen() {
},
FETCH_AD_USER_START: function handleFetchAdUserStart() {
2026-07-29 08:29:29 +00:00
let c1 = true;
let closure_4 = Date.now();
2026-07-20 16:05:17 +00:00
},
FETCH_AD_USER_SUCCESS: function handleFetchAdUserSuccess(advertisingId) {
2026-07-29 08:29:29 +00:00
let c1 = false;
let c3 = null;
let closure_0 = { advertisingId: advertisingId.advertisingId, isLimitAdTrackingEnabled: advertisingId.isLimitAdTrackingEnabled };
let c2 = false;
2026-07-20 16:05:17 +00:00
},
FETCH_AD_USER_FAILURE: function handleFetchAdUserFailure() {
2026-07-29 08:29:29 +00:00
let c1 = false;
let c2 = true;
let c3 = null;
2026-07-20 16:05:17 +00:00
}
});
2026-07-29 08:29:29 +00:00
const result = require("set").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;