decord/source/modules/billing/native/GenericIAPStore.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

60 lines
1.9 KiB
TypeScript

// Module ID: 7239
// Function ID: 7240
// Name: isGenericIapConnected
// Dependencies: [504, 12, 7240, 573, 2]
// Module 7239 (isGenericIapConnected)
import applyDefault from "apply" /* 12 */;
import initializeDefault from "initialize" /* 504 */;
import dispatcherDefault from "dispatcher" /* 573 */;
import SubscriptionPlans from "SubscriptionPlans" /* 7240 */;
require = arg1;
let c3 = null;
let c4 = false;
let c5 = null;
const Store = initializeDefault.Store;
class GenericIAPStore extends Store {
}
const prototype = GenericIAPStore.prototype;
prototype["isGenericIapConnected"] = function isGenericIapConnected() {
return c4;
};
prototype["genericProductsLoaded"] = function genericProductsLoaded() {
let tmp = null != c3;
if (tmp) {
tmp = applyDefault.filter(c3, (identifier) => {
const GenericProductIds = callback(table[2]).GenericProductIds;
return GenericProductIds.includes(identifier.identifier);
}).length === SubscriptionPlans.GenericProductIds.length;
const arr = applyDefault;
}
return tmp;
};
prototype["getProducts"] = function getProducts() {
return c3;
};
prototype["getStoreFront"] = function getStoreFront() {
return c5;
};
GenericIAPStore.displayName = "GenericIAPStore";
const genericIAPStore = new GenericIAPStore(dispatcherDefault, {
IAP_LOAD_GENERIC_PRODUCTS: function initGenericProducts(arg0) {
({ products: c3, storeFront: c5 } = arg0);
},
GENERIC_IAP_INIT_CONNECTION: function genericIapInitConnection(connected) {
connected = connected.connected;
},
GENERIC_IAP_INIT_CONNECTION_FAILED: function genericIapInitConnectionFailed() {
c4 = false;
},
GENERIC_IAP_END_CONNECTION: function genericIapEndConnection() {
c4 = false;
},
GENERIC_IAP_SET_STORE_FRONT: function setStoreFront(storeFront) {
storeFront = storeFront.storeFront;
}
});
const result = require("set").fileFinishedImporting("modules/billing/native/GenericIAPStore.tsx");
export default genericIAPStore;