decord/alpha/source/modules/premium/UserTrialActionCreators.android.tsx

110 lines
3.4 KiB
TypeScript
Raw Normal View History

2026-10-09 10:00:15 +00:00
// Module ID: 13567
// Function ID: 13568
// Name: UserTrialActionCreators
2026-10-09 10:00:15 +00:00
// Dependencies: [5, 7170, 1085, 1295, 584, 2]
2026-07-20 16:05:17 +00:00
2026-10-09 10:00:15 +00:00
// Module 13567 (UserTrialActionCreators)
2026-10-03 08:58:59 +00:00
import _asyncToGenerator from "_asyncToGenerator" /* 5 */;
2026-10-09 10:00:15 +00:00
import UserTrialOfferRecord from "UserTrialOfferRecord" /* 7170 */;
2026-10-03 08:58:59 +00:00
import Constants from "Constants" /* 1085 */;
import size from "module_2" /* 2 */;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let c4, c5;
2026-07-23 10:11:24 +00:00
2026-10-03 08:58:59 +00:00
let hasOwnProperty;
let metroRequire;
({ Endpoints: hasOwnProperty, PaymentGateways: metroRequire } = Constants);
let obj = {
acknowledgeUserTrialOffer(userTrialOffer) {
return (async (arg0, value) => {
2026-10-03 08:58:59 +00:00
let closure_0;
let closure_1;
let obj4;
let obj5;
let status;
2026-08-15 05:55:55 +00:00
if (c5 === 2) {
c5 = 3;
throw new TypeError("Generator functions may not be called on executing generators");
2026-10-03 08:58:59 +00:00
} else if (tmp3 === 3) {
2026-07-29 08:29:29 +00:00
if (arg0 === 1) {
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
const obj2 = { value, done: true };
return obj2;
2026-07-29 08:29:29 +00:00
} else {
2026-10-05 08:00:40 +00:00
return { value: "IconComponent", done: null };
2026-07-29 08:29:29 +00:00
}
} else {
2026-10-03 08:58:59 +00:00
let c3;
2026-07-29 08:29:29 +00:00
try {
2026-10-03 08:58:59 +00:00
let body;
2026-08-15 05:55:55 +00:00
c5 = 2;
2026-07-29 08:29:29 +00:00
if (0 === c4) {
if (arg0 === 1) {
2026-08-15 05:55:55 +00:00
c5 = 3;
throw value;
2026-07-29 08:29:29 +00:00
} else if (arg0 === 2) {
2026-08-15 05:55:55 +00:00
c5 = 3;
const obj3 = { value, done: true };
return obj3;
2026-07-29 08:29:29 +00:00
} else {
2026-10-03 08:58:59 +00:00
userTrialOffer = tmp4;
body = undefined;
if (!userTrialOffer.hasAcknowledged) {
2026-08-24 06:08:38 +00:00
c3 = 1;
2026-10-03 08:58:59 +00:00
const HTTP = userTrialOffer(status[3]).HTTP;
const request = { url: c5.USER_TRIAL_OFFER_ACKNOWLEDGED(tmp35.id), body: obj4, rejectWithError: obj5.rejectWithMigratedError() };
const post = HTTP.post;
obj4 = { payment_gateway: constants.GOOGLE };
obj5 = userTrialOffer(status[3]);
2026-07-29 08:29:29 +00:00
c4 = 2;
2026-08-15 05:55:55 +00:00
c5 = 1;
2026-10-03 08:58:59 +00:00
const obj6 = { value: post(request), done: false };
return obj6;
2026-07-29 08:29:29 +00:00
}
}
2026-10-03 08:58:59 +00:00
} else if (1 === c4) {
c3 = 0;
if (404 === status.status) {
const obj9 = tmp(status[4]);
obj9.dispatch({ type: "BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS", userTrialOffer: null });
2026-07-29 08:29:29 +00:00
}
2026-10-03 08:58:59 +00:00
} else if (arg0 === 1) {
c5 = 3;
throw value;
} else if (arg0 === 2) {
2026-07-29 08:29:29 +00:00
c3 = 0;
2026-08-15 05:55:55 +00:00
c5 = 3;
2026-10-03 08:58:59 +00:00
const obj7 = { value, done: true };
return obj7;
} else {
body = value.body;
let fromServer = null;
const dispatch = tmp(status[4]).dispatch;
const tmp9 = tmp(status[4]);
if (null != body) {
fromServer = c4.createFromServer(body);
}
const obj = { type: "BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS", userTrialOffer: fromServer };
dispatch(obj);
c3 = 0;
2026-07-29 08:29:29 +00:00
}
2026-08-15 05:55:55 +00:00
c5 = 3;
2026-10-05 08:00:40 +00:00
return { value: "IconComponent", done: null };
2026-10-03 08:58:59 +00:00
} catch (tmp24) {
status = tmp24;
if (0 === c3) {
c5 = 3;
throw tmp24;
2026-07-29 08:29:29 +00:00
} else {
2026-10-03 08:58:59 +00:00
c4 = 1;
2026-07-29 08:29:29 +00:00
}
}
2026-07-20 16:05:17 +00:00
}
})();
}
};
2026-10-03 08:58:59 +00:00
const result = size.fileFinishedImporting("modules/premium/UserTrialActionCreators.android.tsx");
export default obj;