decord/source/modules/billing/native/GenericIAPStore.tsx

55 lines
1.7 KiB
TypeScript
Raw Normal View History

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