decord/source/450_showActionSheetWithOptions.js

95 lines
3.7 KiB
JavaScript
Raw Normal View History

2026-07-29 08:29:29 +00:00
// Module ID: 450
// Function ID: 451
// Name: showActionSheetWithOptions
// Dependencies: [109, 38, 451, 50]
// Module 450 (showActionSheetWithOptions)
import _objectWithoutProperties from "_objectWithoutProperties";
const require = arg1;
let closure_3 = ["tintColor", "cancelButtonTintColor", "disabledButtonTintColor", "destructiveButtonIndex"];
export default {
2026-08-04 21:03:28 +00:00
showActionSheetWithOptions(obj, fn) {
2026-07-29 08:29:29 +00:00
let cancelButtonTintColor;
let disabledButtonTintColor;
let tintColor;
2026-08-04 21:03:28 +00:00
let tmp4 = typeof obj === "object";
if (typeof obj === "object") {
tmp4 = null !== obj;
2026-07-29 08:29:29 +00:00
}
require(38)(tmp4, "Options must be a valid object");
2026-08-04 21:03:28 +00:00
require(38)(typeof fn === "function", "Must provide a valid callback");
2026-07-29 08:29:29 +00:00
let tmpResult = tmp(38);
tmpResult(importDefault(451), "ActionSheetManager doesn't exist");
2026-08-04 21:03:28 +00:00
const destructiveButtonIndex = obj.destructiveButtonIndex;
({ tintColor, cancelButtonTintColor, disabledButtonTintColor } = obj);
2026-07-29 08:29:29 +00:00
const tmp3 = require(38);
const tmp8 = importDefault;
let tmp11 = destructiveButtonIndex;
if (!Array.isArray(destructiveButtonIndex)) {
tmp11 = null;
2026-08-04 21:03:28 +00:00
if (typeof destructiveButtonIndex === "number") {
2026-07-29 08:29:29 +00:00
const items = [destructiveButtonIndex];
tmp11 = items;
}
}
tmpResult = tmp(50);
const defaultResult = tmpResult.default(tintColor);
2026-08-04 21:03:28 +00:00
const tmp10 = callback(obj, closure_3);
2026-07-29 08:29:29 +00:00
const defaultResult1 = require(50) /* processColor */.default(cancelButtonTintColor);
const tmpResult1 = require(50) /* processColor */;
const defaultResult2 = require(50) /* processColor */.default(disabledButtonTintColor);
let tmp16 = null == defaultResult;
const tmpResult2 = require(50) /* processColor */;
if (!tmp16) {
2026-08-04 21:03:28 +00:00
tmp16 = typeof defaultResult === "number";
2026-07-29 08:29:29 +00:00
}
require(38)(tmp16, "Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor");
let tmp19 = null == defaultResult1;
const tmpResult3 = require(38);
if (!tmp19) {
2026-08-04 21:03:28 +00:00
tmp19 = typeof defaultResult1 === "number";
2026-07-29 08:29:29 +00:00
}
require(38)(tmp19, "Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor");
let tmp22 = null == defaultResult2;
const tmpResult4 = require(38);
if (!tmp22) {
2026-08-04 21:03:28 +00:00
tmp22 = typeof defaultResult2 === "number";
2026-07-29 08:29:29 +00:00
}
require(38)(tmp22, "Unexpected color given for ActionSheetIOS.showActionSheetWithOptions disabledButtonTintColor");
const tmpResult5 = require(38);
2026-08-04 21:03:28 +00:00
obj = {};
2026-07-29 08:29:29 +00:00
const merged = Object.assign(tmp10);
obj.tintColor = defaultResult;
obj.cancelButtonTintColor = defaultResult1;
obj.disabledButtonTintColor = defaultResult2;
obj.destructiveButtonIndices = tmp11;
2026-08-04 21:03:28 +00:00
const result = tmp8(451).showActionSheetWithOptions(obj, fn);
2026-07-29 08:29:29 +00:00
},
2026-08-04 21:03:28 +00:00
showShareActionSheetWithOptions(obj, fn, fn2) {
let tmp4 = typeof obj === "object";
if (typeof obj === "object") {
tmp4 = null !== obj;
2026-07-29 08:29:29 +00:00
}
require(38)(tmp4, "Options must be a valid object");
2026-08-04 21:03:28 +00:00
require(38)(typeof fn === "function", "Must provide a valid failureCallback");
require(38)(typeof fn2 === "function", "Must provide a valid successCallback");
2026-07-29 08:29:29 +00:00
let tmpResult = tmp(38);
tmpResult(importDefault(451), "ActionSheetManager doesn't exist");
2026-08-04 21:03:28 +00:00
obj = importDefault(451);
2026-07-29 08:29:29 +00:00
obj = {};
2026-08-04 21:03:28 +00:00
const merged = Object.assign(obj);
2026-07-29 08:29:29 +00:00
tmpResult = tmp(50);
2026-08-04 21:03:28 +00:00
obj.tintColor = tmpResult.default(obj.tintColor);
const result = obj.showShareActionSheetWithOptions(obj, fn, fn2);
2026-07-29 08:29:29 +00:00
},
dismissActionSheet() {
require(38)(importDefault(451), "ActionSheetManager doesn't exist");
2026-08-04 21:03:28 +00:00
if (typeof importDefault(451).dismissActionSheet === "function") {
2026-07-29 08:29:29 +00:00
importDefault(451).dismissActionSheet();
const tmp3Result = importDefault(451);
}
}
};