decord/source/modules/billing/native/GenericIAPStore.tsx
github-actions da5b5e5efe chore: update source for alpha 346.6
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-12 13:45:10 +00:00

54 lines
1.7 KiB
TypeScript

// Module ID: 7342
// Function ID: 7343
// Name: GenericIAPStore
// Dependencies: [504, 12, 7343, 573, 2]
// Module 7342 (GenericIAPStore)
import _modDef12 from "module_12" /* 12 */;
import initializeDefault from "initialize" /* 504 */;
import DispatcherDefault from "Dispatcher" /* 573 */;
import ProductIds from "ProductIds" /* 7343 */;
require = fn;
let c3 = null;
let canMakePayments = false;
let storeFront = null;
const Store = initializeDefault.Store;
class GenericIAPStore extends Store {
}
const prototype = GenericIAPStore.prototype;
prototype["canMakePurchase"] = function canMakePurchase() {
return canMakePayments;
};
prototype["genericProductsLoaded"] = function genericProductsLoaded() {
let tmp = null != c3;
if (tmp) {
tmp = _modDef12.filter(c3, (identifier) => {
const GenericProductIds = ProductIds.GenericProductIds;
return GenericProductIds.includes(identifier.identifier);
}).length === ProductIds.GenericProductIds.length;
}
return tmp;
};
prototype["getProducts"] = function getProducts() {
return c3;
};
prototype["getStoreFront"] = function getStoreFront() {
return storeFront;
};
GenericIAPStore.displayName = "GenericIAPStore";
const genericIAPStore = new GenericIAPStore(DispatcherDefault, {
IAP_LOAD_GENERIC_PRODUCTS: function initGenericProducts(arg0) {
({ products: c3, storeFront } = arg0);
},
GENERIC_IAP_INIT_CONNECTION: function genericIapInitConnection(canMakePayments) {
canMakePayments = canMakePayments.canMakePayments;
},
GENERIC_IAP_SET_STORE_FRONT: function setStoreFront(storeFront) {
storeFront = storeFront.storeFront;
}
});
const size = fn(2);
const result = size.fileFinishedImporting("modules/billing/native/GenericIAPStore.tsx");
export default genericIAPStore;