decord/source/modules/premium/UserTrialActionCreators.android.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

105 lines
3.3 KiB
TypeScript

// Module ID: 13306
// Function ID: 13307
// Dependencies: [5, 7454, 1074, 1272, 573, 2]
// Module 13306
import closure_3 from "asyncGeneratorStep" /* 5 */;
import closure_4 from "createFromServer" /* 7454 */;
import ME from "ME" /* 1074 */;
const require = arg1;
({ Endpoints: c5, PaymentGateways: closure_6 } = ME);
const result = require("set").fileFinishedImporting("modules/premium/UserTrialActionCreators.android.tsx");
export default {
acknowledgeUserTrialOffer(arg0) {
closure_0 = arg0;
return callback(function*() {
if (c5 === 2) {
c5 = 3;
HermesBuiltin.throwTypeError();
} else if (tmp6 === 3) {
if (arg0 === 1) {
throw arg1;
} else if (arg0 === 2) {
let obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
return { value: "HermesInternal", done: null };
}
} else {
try {
c5 = 2;
if (0 === c4) {
if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 === 2) {
c5 = 3;
obj = { value: null, done: true };
obj[0] = arg1;
return obj;
} else {
closure_1 = tmp3;
let body = tmp7;
body = undefined;
if (!closure_1_0.hasAcknowledged) {
c3 = 1;
const HTTP = closure_1_0(closure_1_2[3]).HTTP;
obj1 = { url: null, body: null, rejectWithError: null };
obj1[0] = c5.USER_TRIAL_OFFER_ACKNOWLEDGED(tmp39.id);
const obj2 = { payment_gateway: null };
obj2[0] = closure_1_6.GOOGLE;
obj1[1] = obj2;
let obj5 = closure_1_0(closure_1_2[3]);
obj1[2] = obj5.rejectWithMigratedError();
c4 = 2;
c5 = 1;
const obj3 = { value: null, done: false };
obj3[0] = HTTP.post(obj1);
return obj3;
}
}
} else {
if (1 === tmp7) {
c3 = 0;
if (404 === status.status) {
closure_1_1(closure_1_2[4]).dispatch({ type: "BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS", userTrialOffer: null });
const obj10 = closure_1_1(closure_1_2[4]);
}
} else if (arg0 === 1) {
c5 = 3;
throw arg1;
} else if (arg0 !== 2) {
body = arg1.body;
obj = closure_1_1(closure_1_2[4]);
let fromServer = null;
if (null != body) {
fromServer = c4.createFromServer(body);
}
const obj4 = { type: "BILLING_USER_TRIAL_OFFER_ACKNOWLEDGED_SUCCESS", userTrialOffer: null };
obj4[1] = fromServer;
obj.dispatch(obj4);
c3 = 0;
}
c3 = 0;
c5 = 3;
obj5 = { value: null, done: true };
obj5[0] = arg1;
return obj5;
}
c5 = 3;
} catch (tmp26) {
status = tmp26;
if (tmp4 === c3) {
c5 = tmp2;
throw tmp26;
} else {
c4 = tmp;
}
}
}
})();
}
};