This commit is contained in:
janisslsm committed 2026-11-01 12:12:55 +02:00
1 parent 1781d25a15
commit 732c0ad767
33051 files changed
+2591613 -3019689

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
// Metro module 4089 (f4090).
import { Links } from "../Constants";
import { V8APIError } from "../_bundle/sendRequest";
import { intl, t } from "../intl/index.native";
class APIErrorWithDefaultMessage extends V8APIError {
constructor(a0, a1) {
const r24 = a1 != null ? intl.formatToPlainString(t.aKRa0Q, {
statusPageURL: Links.STATUS,
details: `${a1}`
}) : intl.formatToPlainString(t.aTVNes, {
statusPageURL: Links.STATUS
});
super(a0, a1, r24);
}
}
export default APIErrorWithDefaultMessage;
+21
View File
@@ -0,0 +1,21 @@
// Metro module 4093 (f4094).
import V6OrEarlierAPIError from "./V6OrEarlierAPIError";
import { unitsAsStrings, diffAsUnits } from "../utils/DateUtils";
import Durations from "../utils/Durations";
import { t } from "../intl/index.native";
class AppliedGuildBoostError extends V6OrEarlierAPIError {
constructor(a0, a1) {
super(a0, a1);
if (this.status === 429) {
this.message = this._getMessageFromRateLimit(a0);
}
}
_getMessageFromRateLimit(a0) {
return unitsAsStrings(diffAsUnits(0, a0.body.retry_after * Durations.Millis.SECOND), {
days: t["iXc/Ib"],
hours: t.WW9P57,
minutes: t.I7rYev
});
}
}
export default AppliedGuildBoostError;
+241
View File
@@ -0,0 +1,241 @@
// Metro module 3857 (f3858).
import { INVALID_FORM_BODY_ERROR_CODE, convertSkemaError } from "../_bundle/sendRequest";
import V6OrEarlierAPIError from "./V6OrEarlierAPIError";
import { intl, t } from "../intl/index.native";
const r20 = {
UNKNOWN: 0,
0: "UNKNOWN",
UNKNOWN_BILLING_PROFILE: 100001
};
r20[100001] = "UNKNOWN_BILLING_PROFILE";
r20.UNKNOWN_PAYMENT_SOURCE = 100002;
r20[100002] = "UNKNOWN_PAYMENT_SOURCE";
r20.UNKNOWN_SUBSCRIPTION = 100003;
r20[100003] = "UNKNOWN_SUBSCRIPTION";
r20.ALREADY_SUBSCRIBED = 100004;
r20[100004] = "ALREADY_SUBSCRIBED";
r20.INVALID_PLAN = 100005;
r20[100005] = "INVALID_PLAN";
r20.PAYMENT_SOURCE_REQUIRED = 100006;
r20[100006] = "PAYMENT_SOURCE_REQUIRED";
r20.ALREADY_CANCELED = 100007;
r20[100007] = "ALREADY_CANCELED";
r20.INVALID_PAYMENT = 100008;
r20[100008] = "INVALID_PAYMENT";
r20.ALREADY_REFUNDED = 100009;
r20[100009] = "ALREADY_REFUNDED";
r20.INVALID_BILLING_ADDRESS = 100010;
r20[100010] = "INVALID_BILLING_ADDRESS";
r20.ALREADY_PURCHASED = 100011;
r20[100011] = "ALREADY_PURCHASED";
r20.DUPLICATE_PURCHASE_ATTEMPT = 100012;
r20[100012] = "DUPLICATE_PURCHASE_ATTEMPT";
r20.BILLING_PURCHASE_REQUEST_INVALID = 100017;
r20[100017] = "BILLING_PURCHASE_REQUEST_INVALID";
r20.NEGATIVE_INVOICE_AMOUNT = 100027;
r20[100027] = "NEGATIVE_INVOICE_AMOUNT";
r20.AUTHENTICATION_REQUIRED = 100029;
r20[100029] = "AUTHENTICATION_REQUIRED";
r20.SUBSCRIPTION_RENEWAL_IN_PROGRESS = 100042;
r20[100042] = "SUBSCRIPTION_RENEWAL_IN_PROGRESS";
r20.CONFIRMATION_REQUIRED = 100047;
r20[100047] = "CONFIRMATION_REQUIRED";
r20.CARD_DECLINED = 100054;
r20[100054] = "CARD_DECLINED";
r20.INVALID_GIFT_REDEMPTION_FRAUD_REJECTED = 50097;
r20[50097] = "INVALID_GIFT_REDEMPTION_FRAUD_REJECTED";
r20.PURCHASE_TOKEN_AUTHORIZATION_REQUIRED = 100056;
r20[100056] = "PURCHASE_TOKEN_AUTHORIZATION_REQUIRED";
r20.INVALID_PAYMENT_SOURCE = 50048;
r20[50048] = "INVALID_PAYMENT_SOURCE";
r20.INVALID_CURRENCY_FOR_PAYMENT_SOURCE = 100051;
r20[100051] = "INVALID_CURRENCY_FOR_PAYMENT_SOURCE";
r20.BILLING_APPLE_SERVER_API_ERROR = 100070;
r20[100070] = "BILLING_APPLE_SERVER_API_ERROR";
r20.BILLING_TRIAL_REDEMPTION_DISABLED = 100078;
r20[100078] = "BILLING_TRIAL_REDEMPTION_DISABLED";
r20.BILLING_PAUSE_DISABLED = 100079;
r20[100079] = "BILLING_PAUSE_DISABLED";
r20.BILLING_PAUSE_PENDING_ALREADY_SET = 100080;
r20[100080] = "BILLING_PAUSE_PENDING_ALREADY_SET";
r20.BILLING_PAUSE_NOT_ELIGIBLE = 100081;
r20[100081] = "BILLING_PAUSE_NOT_ELIGIBLE";
r20.BILLING_PAUSE_INVALID_INTERVAL = 100082;
r20[100082] = "BILLING_PAUSE_INVALID_INTERVAL";
r20.BILLING_ALREADY_PAUSED = 100083;
r20[100083] = "BILLING_ALREADY_PAUSED";
r20.BILLING_CANNOT_CHARGE_ZERO_AMOUNT = 100084;
r20[100084] = "BILLING_CANNOT_CHARGE_ZERO_AMOUNT";
r20.BILLING_PAUSE_INVALID_UPDATE = 100094;
r20[100094] = "BILLING_PAUSE_INVALID_UPDATE";
r20.BILLING_BUNDLE_ALREADY_PURCHASED = 100096;
r20[100096] = "BILLING_BUNDLE_ALREADY_PURCHASED";
r20.BILLING_BUNDLE_PARTIALLY_OWNED = 100097;
r20[100097] = "BILLING_BUNDLE_PARTIALLY_OWNED";
r20.BILLING_INSUFFICIENT_FUNDS = 100107;
r20[100107] = "BILLING_INSUFFICIENT_FUNDS";
r20.BILLING_OUTDATED_REQUEST_PARAMETERS = 100111;
r20[100111] = "BILLING_OUTDATED_REQUEST_PARAMETERS";
r20.BILLING_CURRENCY_NOT_ALLOWED_FOR_COUNTRY = 100144;
r20[100144] = "BILLING_CURRENCY_NOT_ALLOWED_FOR_COUNTRY";
r20.BILLING_SPENDING_LIMIT_WILL_EXCEED = 100150;
r20[100150] = "BILLING_SPENDING_LIMIT_WILL_EXCEED";
r20.BILLING_SPENDING_LIMIT_REACHED = 100151;
r20[100151] = "BILLING_SPENDING_LIMIT_REACHED";
r20.BILLING_ORDER_NOT_SIGNABLE = 100152;
r20[100152] = "BILLING_ORDER_NOT_SIGNABLE";
r20.BILLING_APPLE_STORE_COUNTRY_MISMATCH = 100153;
r20[100153] = "BILLING_APPLE_STORE_COUNTRY_MISMATCH";
r20.BILLING_CLAIM_IN_GAME_BEFORE_REPURCHASE = 100155;
r20[100155] = "BILLING_CLAIM_IN_GAME_BEFORE_REPURCHASE";
r20.VIRTUAL_CURRENCY_INSUFFICIENT_BALANCE = 590001;
r20[590001] = "VIRTUAL_CURRENCY_INSUFFICIENT_BALANCE";
let c2189_2 = r20;
const r11 = {
CARD_NUMBER: "cardNumber",
CARD_CVC: "cvc",
CARD_EXPIRATION_DATE: "expirationDate",
CARD_NAME: "name",
ADDRESS_NAME: "name",
ADDRESS_LINE_1: "line1",
ADDRESS_LINE_2: "line2",
ADDRESS_CITY: "city",
ADDRESS_STATE: "state",
ADDRESS_POSTAL_CODE: "postalCode",
ADDRESS_COUNTRY: "country"
};
const r12 = {
ADDRESS_LINE_1: "address_line1",
ADDRESS_LINE_2: "address_line2",
ADDRESS_CITY: "address_city",
ADDRESS_STATE: "address_state",
ADDRESS_ZIP: "address_zip",
ADDRESS_COUNTRY: "address_country",
CARD_NUMBER: "number",
CARD_EXPIRATION_DATE: "exp",
CARD_EXPIRATION_MONTH: "exp_month",
CARD_EXPIRATION_YEAR: "exp_year"
};
const r126 = Object;
const r128 = {};
r128[r12.ADDRESS_LINE_1] = r11.ADDRESS_LINE_1;
r128[r12.ADDRESS_LINE_2] = r11.ADDRESS_LINE_2;
r128[r12.ADDRESS_CITY] = r11.ADDRESS_CITY;
r128[r12.ADDRESS_STATE] = r11.ADDRESS_STATE;
r128[r12.ADDRESS_ZIP] = r11.ADDRESS_POSTAL_CODE;
r128[r12.ADDRESS_COUNTRY] = r11.ADDRESS_COUNTRY;
r128[r12.CARD_NUMBER] = r11.CARD_NUMBER;
r128[r12.CARD_EXPIRATION_DATE] = r11.CARD_EXPIRATION_DATE;
r128[r12.CARD_EXPIRATION_MONTH] = r11.CARD_EXPIRATION_DATE;
r128[r12.CARD_EXPIRATION_YEAR] = r11.CARD_EXPIRATION_DATE;
let c2189_3 = r126.freeze(r128);
let c2189_4 = Object.freeze({
line_1: r11.ADDRESS_LINE_1,
line_2: r11.ADDRESS_LINE_2,
postal_code: r11.ADDRESS_POSTAL_CODE
});
const r155 = {
CARD: "card",
ADDRESS: "address"
};
let c2189_5 = new Set([r11.CARD_NUMBER, r11.CARD_CVC, r11.CARD_EXPIRATION_DATE, r11.CARD_NAME]);
let c2189_6 = new Set([r11.ADDRESS_NAME, r11.ADDRESS_LINE_1, r11.ADDRESS_LINE_2, r11.ADDRESS_CITY, r11.ADDRESS_STATE, r11.ADDRESS_POSTAL_CODE, r11.ADDRESS_COUNTRY]);
class BillingError extends V6OrEarlierAPIError {
static ErrorCodes = c2189_2;
static Fields = r11;
static Sections = r155;
static CARD_ERRORS = c2189_5;
static ADDRESS_ERRORS = c2189_6;
paymentId = null;
constructor(a0, a1) {
super(a0, a1);
if (this.code === c2189_2.NEGATIVE_INVOICE_AMOUNT) {
this.message = intl.string(t["+4Empk"]);
} else if (this.code === c2189_2.INVALID_PAYMENT_SOURCE) {
this.message = intl.string(t.DtFqEI);
} else if (this.code === c2189_2.UNKNOWN_PAYMENT_SOURCE) {
this.message = intl.string(t.yNYvK1);
} else if (this.code === c2189_2.SUBSCRIPTION_RENEWAL_IN_PROGRESS) {
this.message = intl.string(t["3jprCb"]);
} else if (this.code === c2189_2.BILLING_TRIAL_REDEMPTION_DISABLED) {
this.message = intl.string(t.MHlpoJ);
} else if (this.code === c2189_2.BILLING_BUNDLE_ALREADY_PURCHASED) {
this.message = intl.string(t.Hiwqua);
} else if (this.code === c2189_2.BILLING_BUNDLE_PARTIALLY_OWNED) {
this.message = intl.string(t.c5zDr3);
} else if (this.code === c2189_2.BILLING_INSUFFICIENT_FUNDS) {
this.message = intl.string(t.yX8s2v);
} else if (this.code === c2189_2.CARD_DECLINED) {
this.message = intl.string(t.p0UBvU);
} else if (this.code === c2189_2.BILLING_OUTDATED_REQUEST_PARAMETERS) {
this.message = intl.string(t.uhPY5p);
} else if (this.code === c2189_2.BILLING_CURRENCY_NOT_ALLOWED_FOR_COUNTRY) {
this.message = intl.string(t.ckFebQ);
} else if (this.code === c2189_2.ALREADY_PURCHASED) {
this.message = intl.string(t["3RT0Iu"]);
} else if (this.code === c2189_2.BILLING_CLAIM_IN_GAME_BEFORE_REPURCHASE) {
this.message = intl.string(t.Zr0Z4K);
} else if (this.status === 429) {
this.message = intl.string(t.sUWxgR);
} else if (this.code === c2189_2.UNKNOWN) {
this.message = intl.string(t["5mlOCW"]);
} else if (this.status === 400 && this.fields.captcha_key != null) {
this.message = intl.string(t["3s/vDN"]);
}
const fields = this.fields;
for (const key in fields) {
const r13 = c2189_3[key] || c2189_4[key];
if (r13 != null) {
const r12 = this.fields[key];
delete this.fields[key];
this.fields[r13] = r12;
}
}
if (a0.body != null && typeof a0.body.payment_id === "string") {
this.paymentId = a0.body.payment_id;
}
}
_isInFieldSet(a0) {
const fields = this.fields;
for (const key in fields) {
if (a0.has(key)) {
return true;
}
}
}
hasCardError() {
return this._isInFieldSet(c2189_5);
}
hasAddressError() {
return this._isInFieldSet(c2189_6);
}
}
export default BillingError;
export { c2189_2 as ErrorCodes };
export function parseV8BillingAddressSkemaErrorToBillingError(a0) {
if (typeof a0 !== "string") {
if ((a0 == null ? void 0 : a0.body?.code) === INVALID_FORM_BODY_ERROR_CODE) {
if (!Array.isArray(a0 == null ? void 0 : a0.body?.errors)) {
const r27 = a0 == null;
let r28 = void 0;
if (!r27) {
const body = a0.body;
r28 = body == null ? void 0 : body.errors?.billing_address;
}
if (r28 != null) {
const billing_address = a0.body.errors.billing_address;
for (const key in billing_address) {
const r11 = a0.body.errors.billing_address[key];
delete a0.body.errors.billing_address[key];
a0.body.errors[key] = r11;
}
delete a0.body.errors["billing_address"];
}
}
if (a0.body?.errors != null) {
a0.body = convertSkemaError(a0.body.errors);
}
}
}
return new BillingError(a0);
}
+6
View File
@@ -0,0 +1,6 @@
// Metro module 4094 (f4095).
import { AbortCodes } from "../Constants";
class ClientOutdatedAcceptGiftError extends Error {
code = AbortCodes.INVALID_GIFT_REDEMPTION_CLIENT_UPDATE_REQUIRED;
}
export default ClientOutdatedAcceptGiftError;
+89
View File
@@ -0,0 +1,89 @@
// Metro module 4091 (f4092).
import { DispatchErrorCodes } from "../modules/rpc/Constants";
import { intl, t } from "../intl/index.native";
import { formatSize } from "../utils/FileSizeUtils";
class NativeDispatchError {
constructor(a0) {
this.raw = a0;
if (a0.code != null) {
this.code = a0.code;
}
if (a0.uuid != null) {
this.uuid = a0.uuid;
}
if (a0.application_id != null) {
this.applicationId = a0.application_id;
}
if (a0.branch_id != null) {
this.branchId = a0.branch_id;
}
if (a0.context != null) {
this.context = a0.context;
} else {
this.context = {};
}
}
get displayMessage() {
if (this.code == null) {
return intl.string(t["5NMPSS"]);
}
const path = this.context.path;
const code = this.code;
if (DispatchErrorCodes.DISK_LOW === code) {
const context = this.context;
const { available, required } = context;
const available2 = formatSize(available, {
useKibibytes: true
});
return intl.formatToPlainString(t["2DR5dl"], {
required: formatSize(required, {
useKibibytes: true
}),
available: available2
});
}
if (DispatchErrorCodes.POST_INSTALL_FAILED === code) {
return intl.formatToPlainString(t.hP0B3A, {
name: this.context.name
});
}
if (DispatchErrorCodes.FILE_NAME_TOO_LONG === code) {
return intl.string(t["FWht5+"]);
}
if (DispatchErrorCodes.POST_INSTALL_CANCELLED === code) {
return intl.string(t["9CNxFJ"]);
}
if (DispatchErrorCodes.IO_PERMISSION_DENIED === code) {
return intl.string(t["PJx5+Z"]);
}
if (DispatchErrorCodes.NO_MANIFESTS === code) {
return intl.string(t.gLM395);
}
if (DispatchErrorCodes.NOT_ENTITLED === code) {
return intl.string(t.TLCR43);
}
if (DispatchErrorCodes.NOT_DIRECTORY !== code && DispatchErrorCodes.DISK_PERMISSION_DENIED !== code) {
if (DispatchErrorCodes.INVALID_DRIVE === code) {
return intl.formatToPlainString(t["08L2TG"], {
path
});
}
if (DispatchErrorCodes.APPLICATION_LOCK_FAILED === code) {
return intl.string(t.RDYCUV);
}
if (DispatchErrorCodes.DISK_FULL === code) {
return intl.string(t.mojtDJ);
}
if (DispatchErrorCodes.API_ERROR !== code && DispatchErrorCodes.MAX_REQUEST_RETRIES_EXCEEDED !== code) {
return intl.formatToPlainString(t.r477WB, {
code: `${this.code}`
});
}
return intl.string(t.OXD41D);
}
return intl.formatToPlainString(t.EjWbO6, {
path
});
}
}
export default NativeDispatchError;
+29
View File
@@ -0,0 +1,29 @@
// Metro module 4090 (f4091).
import BillingError from "./BillingError";
import { $callWithNewTarget } from "../_hermes/prelude";
class StripeError extends BillingError {
constructor({ error }) {
let r14;
if (error.param != null) {
const r16 = new.target;
const prototypeOf2 = Object.getPrototypeOf(StripeError);
const body = {};
body[error.param] = [error.message];
const r21 = {
body
};
const r22 = Object.create(r16.prototype);
const r25 = $callWithNewTarget(prototypeOf2, r22, r16, r21);
r14 = r25 instanceof Object ? r25 : r22;
} else {
const r5 = new.target;
const prototypeOf = Object.getPrototypeOf(StripeError);
const message = error.message;
const r3 = Object.create(r5.prototype);
const r13 = $callWithNewTarget(prototypeOf, r3, r5, message);
r14 = r13 instanceof Object ? r13 : r3;
}
return r14;
}
}
export default StripeError;
+38
View File
@@ -0,0 +1,38 @@
// Metro module 4095 (f4096).
import { intl, t } from "../intl/index.native";
let c2358_2 = {
GENERAL: 0,
0: "GENERAL",
NO_FILE: 1,
1: "NO_FILE",
PROGRESS: 2,
2: "PROGRESS",
UPLOAD: 3,
3: "UPLOAD",
READ: 4,
4: "READ"
};
class UploadVoiceDebugLogsError {
constructor(a0) {
this.code = a0;
}
get displayMessage() {
const code = this.code;
if (c2358_2.NO_FILE === code) {
return intl.string(t.dDMp2Z);
}
if (c2358_2.PROGRESS === code) {
return intl.string(t.XBxyvo);
}
if (c2358_2.UPLOAD === code) {
return intl.string(t["6b6rwk"]);
}
if (c2358_2.READ === code) {
return intl.string(t.VUc3ti);
}
c2358_2.GENERAL;
return intl.string(t.VzHcSm);
}
}
export default UploadVoiceDebugLogsError;
export { c2358_2 as UploadErrorCodes };
+16
View File
@@ -0,0 +1,16 @@
// Metro module 3858 (f3859).
import { Links } from "../Constants";
import { V6OrEarlierAPIError } from "../_bundle/sendRequest";
import { intl, t } from "../intl/index.native";
class APIErrorWithDefaultMessage extends V6OrEarlierAPIError {
constructor(a0, a1) {
const r24 = a1 != null ? intl.formatToPlainString(t.aKRa0Q, {
statusPageURL: Links.STATUS,
details: `${a1}`
}) : intl.formatToPlainString(t.aTVNes, {
statusPageURL: Links.STATUS
});
super(a0, a1, r24);
}
}
export default APIErrorWithDefaultMessage;
+19
View File
@@ -0,0 +1,19 @@
// Metro module 4088 (f4089).
import V6OrEarlierAPIError from "./V6OrEarlierAPIError";
import APIError from "./APIError";
import BillingError from "./BillingError";
import StripeError from "./StripeError";
import NativeDispatchError from "./NativeDispatchError";
import AppliedGuildBoostError from "./AppliedGuildBoostError";
import ClientOutdatedAcceptGiftError from "./ClientOutdatedAcceptGiftError";
import * as _UploadVoiceDebugLogsError from "./UploadVoiceDebugLogsError";
import UploadVoiceDebugLogsError from "./UploadVoiceDebugLogsError";
exports.V6OrEarlierAPIError = V6OrEarlierAPIError;
exports.APIError = APIError;
exports.BillingError = BillingError;
exports.StripeError = StripeError;
exports.NativeDispatchError = NativeDispatchError;
exports.AppliedGuildBoostError = AppliedGuildBoostError;
exports.ClientOutdatedAcceptGiftError = ClientOutdatedAcceptGiftError;
exports.UploadVoiceDebugLogsError = UploadVoiceDebugLogsError;
export const UploadErrorCodes = _UploadVoiceDebugLogsError.UploadErrorCodes;