decord/source/modules/links/native/showLongPressURLActionSheet.tsx
2026-07-25 08:10:48 +00:00

95 lines
3.1 KiB
TypeScript

// Module ID: 9482
// Function ID: 73918
// Name: showLongPressURLActionSheet
// Dependencies: [4100, 1212, 3831, 5490, 3828, 8134, 9483, 5495, 2]
// Exports: default
// Module 9482 (showLongPressURLActionSheet)
let result = require("presentAddedFriendToast").fileFinishedImporting("modules/links/native/showLongPressURLActionSheet.tsx");
export default function showLongPressURLActionSheet(urlString) {
let channelId;
let closure_3;
let disableHapticFeedback;
let importDefault;
const str = urlString.urlString;
({ guildId: importDefault, channelId } = urlString);
({ messageId: closure_3, disableHapticFeedback } = urlString);
if (disableHapticFeedback === undefined) {
disableHapticFeedback = false;
}
let match;
if (!disableHapticFeedback) {
let obj = str(channelId[0]);
const result = obj.triggerHapticFeedback(str(channelId[0]).HapticFeedbackTypes.IMPACT_LIGHT);
}
const items = [];
match = str.match(/^(tel|sms|mailto):([^?;]+)/);
if (null != match) {
obj = {};
const intl7 = str(channelId[1]).intl;
if ("mailto" === match[1]) {
} else {
}
obj.label = intl7.string(_3zozoR);
obj.onPress = function onPress() {
str(channelId[2]).presentLinkCopied();
const obj = str(channelId[2]);
str(channelId[3]).copy(match[2]);
};
items.push(obj);
if ("tel" === match[1]) {
obj = {};
const intl = str(channelId[1]).intl;
obj.label = intl.string(str(channelId[1]).t["+wbjMW"]);
obj.onPress = function onPress() {
outer1_1(channelId[4]).openURL(str.replace("tel:", "sms:"));
};
items.push(obj);
}
}
const obj1 = {};
const intl2 = str(channelId[1]).intl;
obj1.label = intl2.string(str(channelId[1]).t.wuRE8M);
obj1.onPress = function onPress() {
outer1_1(channelId[4]).openURL(str);
};
const items1 = [obj1, , ];
const obj2 = {};
const intl3 = str(channelId[1]).intl;
obj2.label = intl3.string(str(channelId[1]).t.WqhZss);
obj2.onPress = function onPress() {
str(channelId[2]).presentLinkCopied();
const obj = str(channelId[2]);
str(channelId[3]).copy(str);
};
items1[1] = obj2;
const obj3 = {};
const intl4 = str(channelId[1]).intl;
obj3.label = intl4.string(str(channelId[1]).t.Ej3B3Y);
obj3.onPress = function onPress() {
let obj = str(channelId[5]);
obj = { url: str };
obj.showShareActionSheet(obj, "Share Link");
};
items1[HermesBuiltin.arraySpread(items, 2)] = obj3;
if (null != channelId) {
const obj4 = {};
const intl5 = str(channelId[1]).intl;
obj4.label = intl5.string(str(channelId[1]).t.aW2YlJ);
obj4.onPress = function onPress() {
outer1_1(channelId[6])({ guildId: closure_1, channelId, messageId: closure_3, navigationSettings: { navigationReplace: true, safe: true } });
};
items1.unshift(obj4);
}
let obj6 = str(channelId[7]);
const obj5 = { key: "LongPressUrl" };
obj6 = {};
const intl6 = str(channelId[1]).intl;
obj6.title = intl6.string(str(channelId[1]).t["5oIOLX"]);
obj6.subtitle = str;
obj5.header = obj6;
obj5.options = items1;
obj5.hasIcons = false;
const result1 = obj6.showSimpleActionSheet(obj5);
};