Initial commit
This commit is contained in:
commit
af3b49f756
16065 files changed
+2938410
No files matched your search
@@ -0,0 +1,415 @@
|
||||
/* Metro module 4231; source: /stripe.js; dependencies: [] */
|
||||
function _fun34918(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#34918, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:6, offset: 0x01065e3b, size: 218 bytes, params: 8, frame: 16
|
||||
const _typeof_34919 = function(a0) {
|
||||
var r2;
|
||||
r2 = typeof global.Symbol !== 'function' ? _fun34921 : typeof global.Symbol.iterator === 'symbol' ? _fun34920 : _fun34921;
|
||||
env0_12 = r2;
|
||||
return r2(a0);
|
||||
};
|
||||
const Object = global.Object;
|
||||
Object.defineProperty(exports, '__esModule', {value: true});
|
||||
const env0_1 = ''.concat('https://js.stripe.com', '/').concat('basil', '/stripe.js');
|
||||
const env0_2 = RegExp('^https:\\/\\/js\\.stripe\\.com\\/v3\\/?(\\?.*)?$', '');
|
||||
const env0_3 = RegExp('^https:\\/\\/js\\.stripe\\.com\\/(v3|[a-z]+)\\/stripe\\.js(\\?.*)?$', '');
|
||||
const closure = loadStripe;
|
||||
closure.setLoadParameters = setLoadParameters;
|
||||
exports.loadStripe = closure;
|
||||
}
|
||||
|
||||
function _typeof_34919(a0) { // fn#34919, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:44, offset: 0x01065f15, size: 74 bytes, params: 2, frame: 12
|
||||
const Symbol = global.Symbol;
|
||||
return (typeof Symbol !== 'function' ? function(a0) {
|
||||
return a0 ? typeof global.Symbol !== 'function' || a0.constructor !== global.Symbol ? typeof a0 : a0 !== global.Symbol.prototype ? 'symbol' : typeof a0 : typeof a0;
|
||||
} : typeof global.Symbol.iterator === 'symbol' ? _typeof_34919_typeof : _typeof_34919_typeof_34921)(a0);
|
||||
}
|
||||
|
||||
function isStripeJSURL(a0) { // fn#34922, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:702, offset: 0x01065f5f, size: 39 bytes, params: 2, frame: 12
|
||||
return env0_2.test(a0) || env0_3.test(a0);
|
||||
}
|
||||
|
||||
function injectScript(a0) { // fn#34923, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:759, offset: 0x01065f86, size: 163 bytes, params: 2, frame: 14
|
||||
let value = '';
|
||||
const r4 = a0 ? a0.advancedFraudSignals ? value : '?advancedFraudSignals=false' : value;
|
||||
const element = global.document.createElement('script');
|
||||
value = value.concat(env0_1);
|
||||
element.src = value.concat(r4);
|
||||
const r2 = global.document.head || global.document.body;
|
||||
if (r2) {
|
||||
r2.appendChild(element);
|
||||
return element;
|
||||
}
|
||||
const Error = global.Error;
|
||||
throw new Error('Expected document.body not to be null. Stripe.js requires a <body> element.');
|
||||
}
|
||||
|
||||
function loadScript(a0) { // fn#34924, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1100, offset: 0x01066029, size: 83 bytes, params: 2, frame: 13
|
||||
var r0;
|
||||
var Promise;
|
||||
var value2;
|
||||
var promise;
|
||||
const env0_0 = a0;
|
||||
if (env0_6 !== null) {
|
||||
r0 = env0_6;
|
||||
} else {
|
||||
Promise = global.Promise;
|
||||
value2 = Object.create(Promise.prototype, {constructor: {value: Promise}});
|
||||
promise = new Promise(_fun34925);
|
||||
r0 = (promise instanceof Object ? promise : value2).catch(function(a0) {
|
||||
env1_6 = null;
|
||||
var Promise = global.Promise;
|
||||
return Promise.reject(a0);
|
||||
});
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function validateLoadParams(a0) { // fn#34931, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2052, offset: 0x01066385, size: 180 bytes, params: 2, frame: 15
|
||||
const concat = 'invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n '.concat;
|
||||
const JSON = global.JSON;
|
||||
let value = JSON.stringify(a0);
|
||||
value = Reflect.apply(concat,
|
||||
'invalid load parameters; expected object of shape\n\n {advancedFraudSignals: boolean}\n\nbut received\n\n ',
|
||||
[value, '\n']);
|
||||
if (a0 === null) {
|
||||
throw new global.Error(value);
|
||||
}
|
||||
if (_typeof_34919(a0) !== 'object') {
|
||||
throw new global.Error(value);
|
||||
}
|
||||
const Object = global.Object;
|
||||
if (Object.keys(a0).length !== 1) {
|
||||
throw new global.Error(value);
|
||||
}
|
||||
if (typeof a0.advancedFraudSignals === 'boolean') {
|
||||
return a0;
|
||||
}
|
||||
const Error = global.Error;
|
||||
const value4 = Object.create(Error.prototype, {constructor: {value: Error}});
|
||||
const error = new Error(value);
|
||||
throw error instanceof Object ? error : value4;
|
||||
}
|
||||
|
||||
function loadStripe() { // fn#34932, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2396, offset: 0x01066439, size: 126 bytes, params: 1, frame: 16
|
||||
var r1;
|
||||
var value5;
|
||||
const length = arguments.length;
|
||||
const Array = global.Array;
|
||||
const array = new Array(length);
|
||||
const env0_0 = array;
|
||||
const value4 = 0;
|
||||
if (value4 < length) {
|
||||
for (r1 = value4; true; r1 = value5) {
|
||||
array[r1] = arguments[r1];
|
||||
value5 = typeof r1 === 'bigint' ? r1 + 1n : +r1 + 1;
|
||||
if (!(value5 < length)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
const Date = global.Date;
|
||||
const env0_1 = Date.now();
|
||||
return loadScript(env0_0).then(_fun34933);
|
||||
}
|
||||
|
||||
function setLoadParameters(a0) { // fn#34935, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:3162, offset: 0x010665c1, size: 139 bytes, params: 2, frame: 16
|
||||
var value2;
|
||||
let env0_0 = a0;
|
||||
if (env0_11) {
|
||||
if (env0_0) {
|
||||
validateLoadParams(a0);
|
||||
value2 = global.Object.keys(a0);
|
||||
if (value2.reduce(_fun34936, true)) {
|
||||
return undefined;
|
||||
}
|
||||
if (env0_11) {
|
||||
throw new global.Error('You cannot change load parameters after calling loadStripe');
|
||||
}
|
||||
validateLoadParams(a0);
|
||||
env0_0 = a0;
|
||||
return undefined;
|
||||
}
|
||||
if (env0_11) {
|
||||
throw new global.Error('You cannot change load parameters after calling loadStripe');
|
||||
}
|
||||
validateLoadParams(a0);
|
||||
env0_0 = a0;
|
||||
} else {
|
||||
if (env0_11) {
|
||||
throw new global.Error('You cannot change load parameters after calling loadStripe');
|
||||
}
|
||||
validateLoadParams(a0);
|
||||
env0_0 = a0;
|
||||
}
|
||||
}
|
||||
|
||||
function _fun34925(a0, a1) { // fn#34925, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1157, offset: 0x0106607c, size: 550 bytes, params: 3, frame: 24
|
||||
var environment;
|
||||
var r4;
|
||||
var r11;
|
||||
var r8;
|
||||
var r82;
|
||||
var r5;
|
||||
var Stripe;
|
||||
var value;
|
||||
var binding;
|
||||
var console;
|
||||
var querySelectorAll;
|
||||
var length;
|
||||
var value2;
|
||||
var value3;
|
||||
var value4;
|
||||
var value5;
|
||||
var property;
|
||||
var isStripeJSURLBinding;
|
||||
var src;
|
||||
var isStripeJSURL2;
|
||||
var value6;
|
||||
var value7;
|
||||
var injectScriptBinding;
|
||||
var removeEventListener;
|
||||
var parentNode;
|
||||
var closure;
|
||||
var addEventListener;
|
||||
var error;
|
||||
let window = global.window;
|
||||
if (typeof window !== 'undefined') {
|
||||
var document = global.document;
|
||||
if (typeof document !== 'undefined') {
|
||||
window = global.window;
|
||||
Stripe = window.Stripe;
|
||||
if (Stripe) {
|
||||
value = environment;
|
||||
binding = env0_0;
|
||||
r4 = binding;
|
||||
} else {
|
||||
r4 = Stripe;
|
||||
}
|
||||
if (r4) {
|
||||
console = global.console;
|
||||
console.warn('loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used');
|
||||
}
|
||||
window = global.window;
|
||||
Stripe = window.Stripe;
|
||||
if (Stripe) {
|
||||
a0(global.window.Stripe);
|
||||
return undefined;
|
||||
}
|
||||
try {
|
||||
document = global.document;
|
||||
querySelectorAll = document.querySelectorAll;
|
||||
value = 'script[src^="'.concat('https://js.stripe.com', '"]');
|
||||
value = Reflect.apply(querySelectorAll, document, [value]);
|
||||
length = value.length;
|
||||
value2 = 0;
|
||||
value3 = value2 < length;
|
||||
value4 = null;
|
||||
value5 = environment.__proto__;
|
||||
if (value3) {
|
||||
r11 = value2;
|
||||
while (true) {
|
||||
property = value[r11];
|
||||
isStripeJSURLBinding = isStripeJSURL;
|
||||
src = property.src;
|
||||
isStripeJSURL2 = isStripeJSURLBinding(src);
|
||||
if (isStripeJSURL2) {
|
||||
r8 = property;
|
||||
break;
|
||||
}
|
||||
value6 = typeof r11 === 'bigint' ? r11 + 1n : +r11 + 1;
|
||||
length = value.length;
|
||||
value7 = value6 < length;
|
||||
if (value7) {
|
||||
r11 = value6;
|
||||
continue;
|
||||
}
|
||||
r8 = value4;
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
r8 = value4;
|
||||
}
|
||||
if (r8) {
|
||||
value = environment;
|
||||
binding = env0_0;
|
||||
if (binding) {
|
||||
console = global.console;
|
||||
console.warn('loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used');
|
||||
r5 = r8;
|
||||
} else if (r8) {
|
||||
if (r8) {
|
||||
binding = env1_8;
|
||||
value = value4 === binding;
|
||||
if (value) {
|
||||
r5 = r8;
|
||||
} else {
|
||||
binding = env1_7;
|
||||
value = value4 === binding;
|
||||
if (value) {
|
||||
r5 = r8;
|
||||
} else {
|
||||
removeEventListener = r8.removeEventListener;
|
||||
binding = env1_8;
|
||||
Reflect.apply(removeEventListener, r8, ['load', binding]);
|
||||
removeEventListener = r8.removeEventListener;
|
||||
binding = env1_7;
|
||||
Reflect.apply(removeEventListener, r8, ['error', binding]);
|
||||
parentNode = r8.parentNode;
|
||||
value = value4 === parentNode;
|
||||
r82 = value || parentNode === undefined;
|
||||
if (!r82) {
|
||||
parentNode.removeChild(r8);
|
||||
}
|
||||
injectScriptBinding = injectScript;
|
||||
value = environment;
|
||||
binding = env0_0;
|
||||
value = injectScriptBinding(binding);
|
||||
r5 = value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r5 = r8;
|
||||
}
|
||||
} else {
|
||||
injectScriptBinding = injectScript;
|
||||
value = environment;
|
||||
value = injectScriptBinding(env0_0);
|
||||
r5 = value;
|
||||
}
|
||||
} else if (r8) {
|
||||
if (r8) {
|
||||
binding = env1_8;
|
||||
value = value4 === binding;
|
||||
if (value) {
|
||||
r5 = r8;
|
||||
} else {
|
||||
binding = env1_7;
|
||||
value = value4 === binding;
|
||||
if (value) {
|
||||
r5 = r8;
|
||||
} else {
|
||||
removeEventListener = r8.removeEventListener;
|
||||
binding = env1_8;
|
||||
Reflect.apply(removeEventListener, r8, ['load', binding]);
|
||||
removeEventListener = r8.removeEventListener;
|
||||
binding = env1_7;
|
||||
Reflect.apply(removeEventListener, r8, ['error', binding]);
|
||||
parentNode = r8.parentNode;
|
||||
value = value4 === parentNode;
|
||||
r82 = value || parentNode === undefined;
|
||||
if (!r82) {
|
||||
parentNode.removeChild(r8);
|
||||
}
|
||||
injectScriptBinding = injectScript;
|
||||
value = environment;
|
||||
binding = env0_0;
|
||||
value = injectScriptBinding(binding);
|
||||
r5 = value;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
r5 = r8;
|
||||
}
|
||||
} else {
|
||||
injectScriptBinding = injectScript;
|
||||
value = environment;
|
||||
value = injectScriptBinding(env0_0);
|
||||
r5 = value;
|
||||
}
|
||||
closure = function(a0, a1) {
|
||||
var env0_0 = a0;
|
||||
var env0_1 = a1;
|
||||
return _fun34927;
|
||||
};
|
||||
value = closure(a0, a1);
|
||||
env1_8 = value;
|
||||
closure = onError_34928;
|
||||
value = closure(a1);
|
||||
env1_7 = value;
|
||||
addEventListener = r5.addEventListener;
|
||||
binding = env1_8;
|
||||
Reflect.apply(addEventListener, r5, ['load', binding]);
|
||||
addEventListener = r5.addEventListener;
|
||||
binding = env1_7;
|
||||
Reflect.apply(addEventListener, r5, ['error', binding]);
|
||||
} catch (error) {
|
||||
a1(error);
|
||||
return undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
}
|
||||
a0(null);
|
||||
}
|
||||
|
||||
function _fun34933(a0) { // fn#34933, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2530, offset: 0x010664b7, size: 32 bytes, params: 2, frame: 15
|
||||
return initStripe(a0, env0_0, env0_1);
|
||||
}
|
||||
|
||||
function _fun34936(a0, a1) { // fn#34936, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:3220, offset: 0x0106664c, size: 51 bytes, params: 3, frame: 7
|
||||
var r0;
|
||||
var property;
|
||||
var binding;
|
||||
let value = a0;
|
||||
if (value) {
|
||||
property = env0_0[a1];
|
||||
value = environment.__proto__;
|
||||
binding = env1_0;
|
||||
value = undefined;
|
||||
value = property === (binding === null || value === binding ? value : binding[a1]);
|
||||
r0 = value;
|
||||
} else {
|
||||
r0 = value;
|
||||
}
|
||||
return r0;
|
||||
}
|
||||
|
||||
function onLoad_34926(a0, a1) { // fn#34926, offset: 0x010662a2, size: 23 bytes, params: 3, frame: 2
|
||||
const env0_0 = a0;
|
||||
const env0_1 = a1;
|
||||
return _fun34927;
|
||||
}
|
||||
|
||||
function onError_34928(a0) { // fn#34928, offset: 0x01066315, size: 16 bytes, params: 2, frame: 2
|
||||
const env0_0 = a0;
|
||||
return _fun34929;
|
||||
}
|
||||
|
||||
function initStripe(a0, a1, a2) { // fn#34934, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:2549, offset: 0x010664d7, size: 234 bytes, params: 4, frame: 18
|
||||
var console;
|
||||
var warn;
|
||||
if (a0 === null) {
|
||||
return null;
|
||||
}
|
||||
let value = a1[0].match(RegExp('^pk_test', ''));
|
||||
const version = a0.version;
|
||||
const r8 = version === 3 ? 'v3' : version;
|
||||
if (value && r8 !== 'basil') {
|
||||
console = global.console;
|
||||
warn = console.warn;
|
||||
value = 'Stripe.js@'.concat(r8, ' was loaded on the page, but @stripe/stripe-js@');
|
||||
value = value.concat('7.3.1', ' expected Stripe.js@');
|
||||
Reflect.apply(warn, console, [value.concat('basil',
|
||||
'. This may result in unexpected behavior. For more information, see https://docs.stripe.com/sdks/stripejs-versioning')]);
|
||||
}
|
||||
value = a0.apply(undefined, a1);
|
||||
if (value && value._registerWrapper) {
|
||||
value._registerWrapper({'name': 'stripe-js', 'version': '7.3.1', startTime: a2});
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function _fun34927() { // fn#34927, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1707, offset: 0x010662b9, size: 92 bytes, params: 1, frame: 14
|
||||
const Stripe = global.window.Stripe;
|
||||
if (Stripe) {
|
||||
env0_0(global.window.Stripe);
|
||||
} else {
|
||||
require(new global.Error('Stripe.js not available'));
|
||||
}
|
||||
}
|
||||
|
||||
function _fun34929(a0) { // fn#34929, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:4402:1825, offset: 0x01066325, size: 63 bytes, params: 2, frame: 14
|
||||
const binding = env0_0;
|
||||
const Error = global.Error;
|
||||
binding(new Error('Failed to load Stripe.js', {cause: a0}));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user