decord/source/design/components/Icon/native/ClipView.tsx

94 lines
3.4 KiB
TypeScript
Raw Normal View History

2026-08-24 06:08:38 +00:00
// Module ID: 8441
// Function ID: 8442
2026-07-20 16:05:17 +00:00
// Name: SolidCutout
2026-08-24 06:08:38 +00:00
// Dependencies: [19, 17, 21, 8442, 8444, 4119, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-24 06:08:38 +00:00
// Module 8441 (SolidCutout)
import noopAll from "noop" /* 19 */;
import useCutoutBackgroundColor from "useCutoutBackgroundColor" /* 8442 */;
import __INTERNAL_VIEW_CONFIGDefault from "__INTERNAL_VIEW_CONFIG" /* 8444 */;
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
import jsxProd from "jsxProd" /* 21 */;
import importDefaultResult from "module_4119" /* 4119 */;
2026-07-23 10:11:24 +00:00
2026-08-24 06:08:38 +00:00
require = arg1;
2026-07-20 16:05:17 +00:00
function SolidCutout(arg0) {
({ backgroundColor, cutout } = arg0);
2026-07-29 08:29:29 +00:00
const style = [closure_10.solidCutout];
2026-07-20 16:05:17 +00:00
if (cutout.shape === obj.Circle) {
2026-07-29 08:29:29 +00:00
obj = { backgroundColor: null, borderRadius: null, height: null, width: null, left: null, top: null };
obj[0] = backgroundColor;
obj[1] = cutout.size / 2;
({ size: obj[2], size: obj[3], x: obj[4], y: obj[5] } = cutout);
2026-07-20 16:05:17 +00:00
style.push(obj);
} else {
2026-07-29 08:29:29 +00:00
obj = { backgroundColor: null, borderRadius: null, height: null, width: null, left: null, top: null };
obj[0] = backgroundColor;
({ cornerRadius: obj2[1], height: obj2[2], width: obj2[3], x: obj2[4], y: obj2[5] } = cutout);
2026-07-20 16:05:17 +00:00
style.push(obj);
if (null != cutout.rotationDegrees) {
2026-07-29 08:29:29 +00:00
obj = { transform: null };
2026-08-24 06:08:38 +00:00
obj1 = { rotate: null };
2026-07-20 16:05:17 +00:00
const _HermesInternal = HermesInternal;
2026-07-29 08:29:29 +00:00
obj1[0] = "" + cutout.rotationDegrees + "deg";
2026-07-20 16:05:17 +00:00
const items1 = [obj1];
2026-07-29 08:29:29 +00:00
obj[0] = items1;
2026-07-20 16:05:17 +00:00
style.push(obj);
}
}
2026-07-25 08:10:48 +00:00
return callback(closure_3, { style });
2026-07-20 16:05:17 +00:00
}
function SolidCutoutOverlay(arg0) {
2026-07-23 10:11:24 +00:00
({ backgroundColor: require, cutouts } = arg0);
2026-08-24 06:08:38 +00:00
return callback(closure_3, { pointerEvents: "none", style: closure_10.solidCutoutContainer, children: cutouts.map((cutout) => closure_1_4(closure_1_8, { backgroundColor: closure_0, cutout }, arg1)) });
2026-07-20 16:05:17 +00:00
}
2026-08-24 06:08:38 +00:00
noopAll;
2026-07-29 08:29:29 +00:00
({ StyleSheet, View: c3 } = get_ActivityIndicator);
({ jsx: c4, jsxs: c5 } = jsxProd);
2026-07-23 10:11:24 +00:00
let obj = { Circle: "circle", RoundedRect: "rounded-rect" };
2026-07-25 08:10:48 +00:00
let closure_7 = [];
2026-07-29 08:29:29 +00:00
obj = { solidCutoutContainer: null, solidCutout: null };
2026-07-23 10:11:24 +00:00
obj = {};
let merged = Object.assign(StyleSheet.absoluteFillObject);
2026-07-29 08:29:29 +00:00
obj[0] = obj;
obj[1] = { position: "absolute" };
2026-07-20 16:05:17 +00:00
const styles = StyleSheet.create(obj);
2026-08-24 06:08:38 +00:00
const animatedComponent = importDefaultResult.createAnimatedComponent(__INTERNAL_VIEW_CONFIGDefault);
const result = require("set").fileFinishedImporting("design/components/Icon/native/ClipView.tsx");
2026-07-20 16:05:17 +00:00
2026-07-23 10:11:24 +00:00
export default function ClipView(cutouts) {
cutouts = cutouts.cutouts;
({ children, style } = cutouts);
2026-07-29 08:29:29 +00:00
const merged = Object.assign(cutouts, Object.create(null));
2026-08-24 06:08:38 +00:00
obj = useCutoutBackgroundColor;
2026-07-29 08:29:29 +00:00
const cutoutBackgroundColor = obj.useCutoutBackgroundColor();
let tmp4 = null;
let tmp5 = cutouts;
2026-07-25 08:10:48 +00:00
if (null != cutoutBackgroundColor) {
2026-07-23 10:11:24 +00:00
let tmp7 = null != cutouts;
if (tmp7) {
tmp7 = cutouts.length > 0;
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
let tmp8 = null;
if (tmp7) {
2026-07-29 08:29:29 +00:00
obj = { backgroundColor: null, cutouts: null };
obj[0] = cutoutBackgroundColor;
obj[1] = cutouts;
2026-07-25 08:10:48 +00:00
tmp8 = callback(SolidCutoutOverlay, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-29 08:29:29 +00:00
tmp4 = tmp8;
tmp5 = closure_7;
2026-07-25 08:10:48 +00:00
const tmp6 = closure_7;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj = {};
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
2026-07-29 08:29:29 +00:00
obj.cutouts = tmp5;
obj.style = style;
const items = [children, tmp4];
obj.children = items;
2026-08-24 06:08:38 +00:00
return callback2(__INTERNAL_VIEW_CONFIGDefault, obj);
2026-07-20 16:05:17 +00:00
};
export const ClipViewAnimated = animatedComponent;
export const CutoutShape = obj;