decord/source/modules/stickers/native/premium/openStickersPremiumUpsellAlert.tsx

114 lines
3.6 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 10276
// Function ID: 10277
2026-07-20 16:05:17 +00:00
// Name: _openStickersPremiumUpsellAlert
2026-08-24 06:08:38 +00:00
// Dependencies: [5, 19, 676, 21, 698, 7261, 4470, 4662, 10277, 2008, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 10276 (_openStickersPremiumUpsellAlert)
import noopAll from "noop" /* 19 */;
import closure_3 from "asyncGeneratorStep" /* 5 */;
import ME from "ME" /* 676 */;
import { jsx } from "jsxProd" /* 21 */;
2026-07-23 10:11:24 +00:00
const require = arg1;
2026-07-20 16:05:17 +00:00
function _openStickersPremiumUpsellAlert() {
2026-07-29 08:29:29 +00:00
const self = this;
const tmp = callback((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0;
c3 = 0;
c4 = 0;
2026-07-29 08:29:29 +00:00
return (function*(arg0) {
if (constants === 2) {
constants = 3;
HermesBuiltin.throwTypeError();
} else if (tmp4 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
try {
constants = 2;
if (0 === c3) {
if (arg0 === 1) {
constants = 3;
throw arg1;
} else if (arg0 === 2) {
constants = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
const table = tmp2;
const callback2 = tmp5;
2026-08-24 06:08:38 +00:00
obj1 = { type: null, location: null };
obj1[0] = closure_1_5.STICKER_PREMIUM_TIER_2_UPSELL_MODAL;
2026-07-29 08:29:29 +00:00
obj1[1] = callback;
2026-08-24 06:08:38 +00:00
closure_1_1(closure_1_2[4]).track(constants.OPEN_MODAL, obj1);
const obj7 = closure_1_1(closure_1_2[4]);
const items = [callback(closure_1_2[5]).fetchPremiumSubscriptionPlans(), ];
const obj9 = callback(closure_1_2[5]);
items[1] = callback(closure_1_2[6]).fetchPaymentSources();
2026-07-29 08:29:29 +00:00
c3 = 1;
constants = 1;
const obj2 = { value: null, done: false };
obj2[0] = Promise.all(items);
return obj2;
}
} else if (arg0 === 1) {
constants = 3;
throw arg1;
} else if (arg0 === 2) {
constants = 3;
const obj3 = { value: null, done: true };
obj3[0] = arg1;
return obj3;
} else {
obj = callback2(table[7]);
const obj4 = { importer: null };
obj4[0] = function importer() {
return callback(tmp2[9])(tmp2[8], tmp2.paths).then((arg0) => {
2026-08-24 06:08:38 +00:00
closure_0 = arg0.default;
2026-07-29 08:29:29 +00:00
return () => { ... };
});
};
obj.openLazy(obj4);
constants = 3;
2026-08-24 06:08:38 +00:00
return { value: "HermesInternal", done: null };
2026-07-29 08:29:29 +00:00
}
} catch (tmp11) {
constants = tmp;
throw tmp11;
}
}
})();
});
2026-08-24 06:08:38 +00:00
closure_7 = tmp;
2026-07-29 08:29:29 +00:00
const apply = tmp.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ AnalyticEvents: c4, AnalyticsSections: c5 } = ME);
2026-08-24 06:08:38 +00:00
const result = require("set").fileFinishedImporting("modules/stickers/native/premium/openStickersPremiumUpsellAlert.tsx");
2026-07-20 16:05:17 +00:00
export default function openStickersPremiumUpsellAlert() {
2026-07-29 08:29:29 +00:00
const self = this;
const apply = _openStickersPremiumUpsellAlert.apply;
if (typeof apply === "unknown") {
let applyArgumentsResult = HermesBuiltin.applyArguments(self);
} else {
applyArgumentsResult = apply(self, arguments);
}
return applyArgumentsResult;
2026-07-20 16:05:17 +00:00
};