decord/source/450_showActionSheetWithOptions.js
2026-08-04 21:03:28 +00:00

94 lines
3.7 KiB
JavaScript

// 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 {
showActionSheetWithOptions(obj, fn) {
let cancelButtonTintColor;
let disabledButtonTintColor;
let tintColor;
let tmp4 = typeof obj === "object";
if (typeof obj === "object") {
tmp4 = null !== obj;
}
require(38)(tmp4, "Options must be a valid object");
require(38)(typeof fn === "function", "Must provide a valid callback");
let tmpResult = tmp(38);
tmpResult(importDefault(451), "ActionSheetManager doesn't exist");
const destructiveButtonIndex = obj.destructiveButtonIndex;
({ tintColor, cancelButtonTintColor, disabledButtonTintColor } = obj);
const tmp3 = require(38);
const tmp8 = importDefault;
let tmp11 = destructiveButtonIndex;
if (!Array.isArray(destructiveButtonIndex)) {
tmp11 = null;
if (typeof destructiveButtonIndex === "number") {
const items = [destructiveButtonIndex];
tmp11 = items;
}
}
tmpResult = tmp(50);
const defaultResult = tmpResult.default(tintColor);
const tmp10 = callback(obj, closure_3);
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) {
tmp16 = typeof defaultResult === "number";
}
require(38)(tmp16, "Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor");
let tmp19 = null == defaultResult1;
const tmpResult3 = require(38);
if (!tmp19) {
tmp19 = typeof defaultResult1 === "number";
}
require(38)(tmp19, "Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor");
let tmp22 = null == defaultResult2;
const tmpResult4 = require(38);
if (!tmp22) {
tmp22 = typeof defaultResult2 === "number";
}
require(38)(tmp22, "Unexpected color given for ActionSheetIOS.showActionSheetWithOptions disabledButtonTintColor");
const tmpResult5 = require(38);
obj = {};
const merged = Object.assign(tmp10);
obj.tintColor = defaultResult;
obj.cancelButtonTintColor = defaultResult1;
obj.disabledButtonTintColor = defaultResult2;
obj.destructiveButtonIndices = tmp11;
const result = tmp8(451).showActionSheetWithOptions(obj, fn);
},
showShareActionSheetWithOptions(obj, fn, fn2) {
let tmp4 = typeof obj === "object";
if (typeof obj === "object") {
tmp4 = null !== obj;
}
require(38)(tmp4, "Options must be a valid object");
require(38)(typeof fn === "function", "Must provide a valid failureCallback");
require(38)(typeof fn2 === "function", "Must provide a valid successCallback");
let tmpResult = tmp(38);
tmpResult(importDefault(451), "ActionSheetManager doesn't exist");
obj = importDefault(451);
obj = {};
const merged = Object.assign(obj);
tmpResult = tmp(50);
obj.tintColor = tmpResult.default(obj.tintColor);
const result = obj.showShareActionSheetWithOptions(obj, fn, fn2);
},
dismissActionSheet() {
require(38)(importDefault(451), "ActionSheetManager doesn't exist");
if (typeof importDefault(451).dismissActionSheet === "function") {
importDefault(451).dismissActionSheet();
const tmp3Result = importDefault(451);
}
}
};