31 lines
2.0 KiB
TypeScript
31 lines
2.0 KiB
TypeScript
/* Metro module 13677; source: modules/guild_role_subscriptions/subscriptionUtils.tsx; dependencies: [44, 2] */
|
|
import Module00044 from '../../by-id/module-00044.js'; /* Metro dependency 44 */
|
|
import * as FileImportTrackerModule from '../../by-id/module-00002-FileImportTracker.js'; /* Metro dependency 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});
|
|
(FileImportTrackerModule).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
|
|
(Module00044)(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;
|
|
}
|
|
|
|
}
|
|
|
|
global.__d(_fun104487, 13677, [44, 2]) /* metro module 13677, dependencies: [44, 2] */;
|