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

61 lines
1.9 KiB
TypeScript
Raw Normal View History

2026-09-01 10:26:29 +00:00
// Module ID: 6086
// Function ID: 6087
2026-07-29 08:29:29 +00:00
// Name: isGenericIapConnected
2026-09-01 10:26:29 +00:00
// Dependencies: [589, 12, 6087, 709, 2]
2026-07-20 16:05:17 +00:00
2026-09-01 10:26:29 +00:00
// Module 6086 (isGenericIapConnected)
2026-08-24 06:08:38 +00:00
import applyDefault from "apply" /* 12 */;
import initializeDefault from "initialize" /* 589 */;
import dispatcherDefault from "dispatcher" /* 709 */;
2026-09-01 10:26:29 +00:00
import SubscriptionPlans from "SubscriptionPlans" /* 6087 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-29 08:29:29 +00:00
let c3 = null;
let c4 = false;
let c5 = 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["isGenericIapConnected"] = function isGenericIapConnected() {
return c4;
};
prototype["genericProductsLoaded"] = function genericProductsLoaded() {
let tmp = null != c3;
if (tmp) {
2026-08-24 06:08:38 +00:00
tmp = applyDefault.filter(c3, (identifier) => {
2026-07-29 08:29:29 +00:00
const GenericProductIds = callback(table[2]).GenericProductIds;
return GenericProductIds.includes(identifier.identifier);
2026-08-24 06:08:38 +00:00
}).length === SubscriptionPlans.GenericProductIds.length;
const arr = applyDefault;
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 c5;
};
GenericIAPStore.displayName = "GenericIAPStore";
2026-08-24 06:08:38 +00:00
const genericIAPStore = new GenericIAPStore(dispatcherDefault, {
2026-07-20 16:05:17 +00:00
IAP_LOAD_GENERIC_PRODUCTS: function initGenericProducts(arg0) {
2026-07-29 08:29:29 +00:00
({ products: c3, storeFront: c5 } = arg0);
2026-07-20 16:05:17 +00:00
},
GENERIC_IAP_INIT_CONNECTION: function genericIapInitConnection(connected) {
connected = connected.connected;
},
GENERIC_IAP_INIT_CONNECTION_FAILED: function genericIapInitConnectionFailed() {
2026-08-24 06:08:38 +00:00
c4 = false;
2026-07-20 16:05:17 +00:00
},
GENERIC_IAP_END_CONNECTION: function genericIapEndConnection() {
2026-08-24 06:08:38 +00:00
c4 = false;
2026-07-20 16:05:17 +00:00
},
GENERIC_IAP_SET_STORE_FRONT: function setStoreFront(storeFront) {
storeFront = storeFront.storeFront;
}
});
2026-08-24 06:08:38 +00:00
const result = require("set").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;