27 lines
1.7 KiB
TypeScript
27 lines
1.7 KiB
TypeScript
/* Metro module 13677; source: modules/guild_role_subscriptions/subscriptionUtils.tsx; dependencies: [44, 2] */
|
|
function _fun104487(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#104487, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13874:6, offset: 0x02297084, size: 114 bytes, params: 8, frame: 17
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/guild_role_subscriptions/subscriptionUtils.tsx');
|
|
exports.getRoleSubscriptionPlanId = getRoleSubscriptionPlanId;
|
|
exports.getRoleSubscriptionMutationPlanId = getRoleSubscriptionMutationPlanId;
|
|
}
|
|
|
|
function getRoleSubscriptionPlanId({items}) { // fn#104488, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13874:208, offset: 0x022970f6, size: 69 bytes, params: 2, frame: 15
|
|
(importDefault(44) /* metro dependency 44 */)(items.length === 1,
|
|
'more than 1 subscription item for role subscription');
|
|
return items[0].planId;
|
|
}
|
|
|
|
function getRoleSubscriptionMutationPlanId(a0) { // fn#104489, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:13874:392, offset: 0x0229713b, size: 110 bytes, params: 2, frame: 16
|
|
const value = undefined;
|
|
const items = a0 == null || a0.renewalMutations == null ? value : a0.renewalMutations.items;
|
|
if (items != null) {
|
|
(importDefault(44) /* metro dependency 44 */)(items.length <= 1,
|
|
'more than 1 renewal mutation for role subscription');
|
|
return items == null ? value : items[0].planId;
|
|
}
|
|
return value;
|
|
}
|
|
|