587 lines
23 KiB
TypeScript
587 lines
23 KiB
TypeScript
/* Metro module 10385; source: modules/payments/native/utils/createOrReuseGiftOrder.tsx; dependencies: [5, 31, 4095, 1880, 482, 3, 7299, 477, 3738, 3817, 2] */
|
|
function _fun80460(global, require, importDefault, importAll, module, exports, dependencyMap) { // fn#80460, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10571:6, offset: 0x01e7bead, size: 245 bytes, params: 8, frame: 19
|
|
const env0_0 = require;
|
|
const Object = global.Object;
|
|
Object.defineProperty(exports, '__esModule', {value: true});
|
|
const env0_3 = importDefault(5) /* metro dependency 5 */;
|
|
const env0_4 = importAll(31) /* metro dependency 31 */;
|
|
const env0_5 = (require(4095) /* metro dependency 4095: PaymentConstants */).ItemPurchaseType;
|
|
const env0_6 = (require(1880) /* metro dependency 1880: PremiumConstants */).SubscriptionPlanInfo;
|
|
const env0_7 = (require(482) /* metro dependency 482: Constants */).PaymentGateways;
|
|
let value = importDefault(3) /* metro dependency 3: Logger */;
|
|
value = new value('createOrReuseGiftOrder');
|
|
(require(2) /* metro dependency 2 */).fileFinishedImporting('modules/payments/native/utils/createOrReuseGiftOrder.tsx');
|
|
exports.useCreateOrReuseGiftOrder = useCreateOrReuseGiftOrder;
|
|
}
|
|
|
|
function useCreateOrReuseGiftOrder(a0) { // fn#80461, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10571:360, offset: 0x01e7bfa2, size: 50 bytes, params: 2, frame: 14
|
|
const env0_0 = a0;
|
|
return env0_4.useCallback(_fun80462(), [a0]);
|
|
}
|
|
|
|
function _fun80462() { // fn#80462, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10571:419, offset: 0x01e7bfd4, size: 36 bytes, params: 1, frame: 12
|
|
const env0_0 = env1_3(_fun80464);
|
|
return _fun80465;
|
|
}
|
|
|
|
async function _fun80464({planId, recipientUserId}) { // fn#80464, source: /ci/build/discord/discord/discord_android_rn/android/app/src/main/assets/index.android.bundle:10571:439, offset: 0x01e7c00c, size: 486 bytes, params: 2, frame: 23
|
|
var r10;
|
|
var binding;
|
|
var binding2;
|
|
var value4;
|
|
var getOrCreateOrder;
|
|
var object2;
|
|
var value5;
|
|
var isAndroid;
|
|
var isAndroid2;
|
|
var APPLE;
|
|
var GOOGLE;
|
|
var ONE_TIME;
|
|
var binding3;
|
|
var value6;
|
|
var value7;
|
|
var utc;
|
|
var value8;
|
|
var subtract;
|
|
var value9;
|
|
var DRAFT_ORDER_LOOKBACK_DAYS;
|
|
var value10;
|
|
var toISOString;
|
|
var value11;
|
|
var value12;
|
|
var value13;
|
|
var value14;
|
|
var error;
|
|
var error2;
|
|
var value15;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
await undefined;
|
|
if (false) {
|
|
return undefined;
|
|
}
|
|
value = environment.__proto__.__proto__.__proto__;
|
|
let property = env3_6[planId];
|
|
if (property == null) {
|
|
throw new global.Error('Invalid plan id: ' + planId);
|
|
}
|
|
const skuId = property.skuId;
|
|
try {
|
|
binding = env3_0;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding2 = env3_2;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[6];
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value4 = binding(property);
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
getOrCreateOrder = value4.getOrCreateOrder;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2 = {};
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.skuId = skuId;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding2[7];
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value5 = binding(property);
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
isAndroid = value5.isAndroid;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
isAndroid2 = Reflect.apply(isAndroid, value5, []);
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env3_7;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
if (isAndroid2) {
|
|
try {
|
|
GOOGLE = binding.GOOGLE;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
r10 = GOOGLE;
|
|
} else {
|
|
try {
|
|
APPLE = binding.APPLE;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
r10 = APPLE;
|
|
}
|
|
try {
|
|
object2.paymentGateway = r10;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.recipientUserId = recipientUserId;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env3_5;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
ONE_TIME = binding.ONE_TIME;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.purchaseType = ONE_TIME;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.isGift = true;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env3_1;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding3 = env3_2;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding3[8];
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value6 = binding(property);
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value7 = value6();
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
utc = value7.utc;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value8 = Reflect.apply(utc, value7, []);
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
subtract = value8.subtract;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
binding = env3_0;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
property = binding3[6];
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value9 = binding(property);
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
DRAFT_ORDER_LOOKBACK_DAYS = value9.DRAFT_ORDER_LOOKBACK_DAYS;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value10 = Reflect.apply(subtract, value8, [DRAFT_ORDER_LOOKBACK_DAYS, 'days']);
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
toISOString = value10.toISOString;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value11 = Reflect.apply(toISOString, value10, []);
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.createdAfter = value11;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
object2.subscriptionPlanId = planId;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
try {
|
|
value12 = Reflect.apply(getOrCreateOrder, value4, [object2]);
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
await value12;
|
|
try {
|
|
value13 = undefined;
|
|
value14 = false;
|
|
} catch (error) {
|
|
binding = env3_8;
|
|
error2 = binding.error;
|
|
value15 = environment.__proto__.__proto__;
|
|
Reflect.apply(error2, binding, ['Failed to create order for gift purchase', {error: error, skuId: skuId,
|
|
location: require}]);
|
|
binding = env3_0;
|
|
value = binding(env3_2[9]);
|
|
value.captureBillingException(error, {tags: {skuId: skuId, source: '' + require + '_createOrder'}});
|
|
throw error;
|
|
}
|
|
return value14 ? value13 : value13;
|
|
}
|
|
|