decord/source/6367_ButtonLink.js

90 lines
3 KiB
JavaScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 6367
// Function ID: 6368
2026-08-06 08:05:19 +00:00
// Name: ButtonLink
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 1501, 6359, 6368, 6369]
2026-08-06 08:05:19 +00:00
// Exports: Button
2026-08-24 06:08:38 +00:00
// Module 6367 (ButtonLink)
import noopAll from "noop" /* 19 */;
import createStandardNavigationFactories from "createStandardNavigationFactories" /* 1501 */;
import ColorDefault from "Color" /* 6359 */;
import Animated from "Animated" /* 6368 */;
import Text from "Text" /* 6369 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import { jsx } from "jsxProd" /* 21 */;
2026-08-06 08:05:19 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-08-06 08:05:19 +00:00
function ButtonLink(arg0) {
({ screen, params, action, href } = arg0);
const merged = Object.assign(arg0, Object.create(null));
2026-08-24 06:08:38 +00:00
let obj = createStandardNavigationFactories;
2026-08-06 08:05:19 +00:00
const linkProps = obj.useLinkProps({ screen, params, action, href });
obj = {};
const merged1 = Object.assign(merged);
const merged2 = Object.assign(linkProps);
return <ButtonBase />;
}
function ButtonBase(variant) {
let str = variant.variant;
if (str === undefined) {
str = "tinted";
}
({ color, android_ripple } = variant);
({ style, children } = variant);
const merged = Object.assign(variant, Object.create(null));
2026-08-24 06:08:38 +00:00
let obj = createStandardNavigationFactories;
2026-08-06 08:05:19 +00:00
const theme = obj.useTheme();
if (color == null) {
color = theme.colors.primary;
}
if ("plain" === str) {
let str3 = "transparent";
let tmp5 = color;
} else if ("tinted" === str) {
2026-08-24 06:08:38 +00:00
const obj4 = ColorDefault(color);
str3 = ColorDefault(color).fade(0.85).string();
2026-08-06 08:05:19 +00:00
tmp5 = color;
2026-08-24 06:08:38 +00:00
const fadeResult = ColorDefault(color).fade(0.85);
2026-08-06 08:05:19 +00:00
} else if ("filled" === str) {
let str4 = "white";
if (!obj10.isDark()) {
2026-08-24 06:08:38 +00:00
const obj2 = tmp9(6359)(color);
str4 = tmp9(6359)(color).darken(0.71).string();
const darkenResult = tmp9(6359)(color).darken(0.71);
2026-08-06 08:05:19 +00:00
}
tmp5 = str4;
str3 = color;
2026-08-24 06:08:38 +00:00
obj10 = ColorDefault(color);
2026-08-06 08:05:19 +00:00
tmp9 = importDefault;
}
obj = {};
const merged1 = Object.assign(merged);
obj = { radius: 40, color: null };
2026-08-24 06:08:38 +00:00
const obj8 = ColorDefault(tmp5);
obj[1] = ColorDefault(tmp5).fade(0.85).string();
2026-08-06 08:05:19 +00:00
const merged2 = Object.assign(android_ripple);
obj.android_ripple = obj;
obj.pressOpacity = 1;
obj.hoverEffect = { color: tmp5 };
const items = [{ backgroundColor: str3 }, closure_6.button, style];
obj.style = items;
const items1 = [{ color: tmp5 }, theme.fonts.regular, closure_6.text];
2026-08-24 06:08:38 +00:00
obj.children = jsx(Text.Text, { style: items1, children });
return jsx(Animated.PlatformPressable, { radius: 40, color: null });
2026-08-06 08:05:19 +00:00
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-08-06 08:05:19 +00:00
({ Platform, StyleSheet } = get_ActivityIndicator);
const styles = StyleSheet.create({ button: { paddingHorizontal: 24, paddingVertical: 10, borderRadius: 40, borderCurve: "continuous" }, text: { fontSize: 14, lineHeight: 20, letterSpacing: 0.1, textAlign: "center" } });
export const Button = function Button(arg0) {
if (!("screen" in arg0)) {
if (!("action" in arg0)) {
let tmp2 = ButtonBase;
}
const obj = {};
const merged = Object.assign(arg0);
return tmp(tmp2, obj);
}
tmp2 = ButtonLink;
};