Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
54 lines
1.7 KiB
TypeScript
54 lines
1.7 KiB
TypeScript
// Module ID: 7349
|
|
// Function ID: 7350
|
|
// Name: GenericIAPStore
|
|
// Dependencies: [504, 12, 7350, 573, 2]
|
|
|
|
// Module 7349 (GenericIAPStore)
|
|
import _modDef12 from "module_12" /* 12 */;
|
|
import initializeDefault from "initialize" /* 504 */;
|
|
import DispatcherDefault from "Dispatcher" /* 573 */;
|
|
import ProductIds from "ProductIds" /* 7350 */;
|
|
|
|
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;
|