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

98 lines
3.2 KiB
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 7909
2026-07-27 11:26:19 +00:00
// Function ID: 63000
2026-07-20 16:05:17 +00:00
// Name: SolidCutout
2026-07-25 08:10:48 +00:00
// Dependencies: [31, 27, 33, 7910, 7912, 3992, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 7909 (SolidCutout)
import "result";
2026-07-23 10:11:24 +00:00
import get_ActivityIndicator from "get ActivityIndicator";
import jsxProd from "jsxProd";
import animatedComponent from "__INTERNAL_VIEW_CONFIG";
2026-07-25 08:10:48 +00:00
import importDefaultResult from "module_3992";
2026-07-23 10:11:24 +00:00
2026-07-20 16:05:17 +00:00
let StyleSheet;
2026-07-25 08:10:48 +00:00
let closure_3;
2026-07-23 10:11:24 +00:00
let closure_4;
let closure_5;
const require = arg1;
2026-07-20 16:05:17 +00:00
function SolidCutout(arg0) {
let backgroundColor;
let cutout;
({ backgroundColor, cutout } = arg0);
2026-07-25 08:10:48 +00:00
const style = [closure_8.solidCutout];
2026-07-20 16:05:17 +00:00
if (cutout.shape === obj.Circle) {
2026-07-23 10:11:24 +00:00
obj = { backgroundColor, borderRadius: cutout.size / 2 };
2026-07-20 16:05:17 +00:00
({ size: obj.height, size: obj.width, x: obj.left, y: obj.top } = cutout);
style.push(obj);
} else {
obj = { backgroundColor };
({ cornerRadius: obj2.borderRadius, height: obj2.height, width: obj2.width, x: obj2.left, y: obj2.top } = cutout);
style.push(obj);
if (null != cutout.rotationDegrees) {
obj = {};
const obj1 = {};
const _HermesInternal = HermesInternal;
obj1.rotate = "" + cutout.rotationDegrees + "deg";
const items1 = [obj1];
obj.transform = items1;
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) {
let cutouts;
2026-07-23 10:11:24 +00:00
let require;
({ backgroundColor: require, cutouts } = arg0);
2026-07-25 08:10:48 +00:00
return callback(closure_3, { pointerEvents: "none", style: closure_8.solidCutoutContainer, children: cutouts.map((cutout) => outer1_4(outer1_9, { backgroundColor: closure_0, cutout }, arg1)) });
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
({ StyleSheet, View: closure_3 } = get_ActivityIndicator);
({ jsx: closure_4, jsxs: closure_5 } = 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-23 10:11:24 +00:00
obj = {};
obj = {};
let merged = Object.assign(StyleSheet.absoluteFillObject);
obj.solidCutoutContainer = obj;
2026-07-20 16:05:17 +00:00
obj.solidCutout = { position: "absolute" };
const styles = StyleSheet.create(obj);
2026-07-23 10:11:24 +00:00
const result = require("jsxProd").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) {
let children;
2026-07-20 16:05:17 +00:00
let style;
2026-07-23 10:11:24 +00:00
cutouts = cutouts.cutouts;
let obj = { children: 0, cutouts: 0, style: 0 };
({ children, style } = cutouts);
2026-07-20 16:05:17 +00:00
Object.setPrototypeOf(null);
2026-07-23 10:11:24 +00:00
const merged = Object.assign(cutouts, obj);
2026-07-25 08:10:48 +00:00
const cutoutBackgroundColor = require(7910) /* useCutoutBackgroundColor */.useCutoutBackgroundColor();
2026-07-23 10:11:24 +00:00
let tmp4 = cutouts;
let tmp5 = null;
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) {
obj = { backgroundColor: cutoutBackgroundColor, cutouts };
tmp8 = callback(SolidCutoutOverlay, obj);
2026-07-20 16:05:17 +00:00
}
2026-07-25 08:10:48 +00:00
tmp5 = tmp8;
tmp4 = closure_7;
const tmp6 = closure_7;
2026-07-20 16:05:17 +00:00
}
2026-07-23 10:11:24 +00:00
obj = {};
2026-07-25 08:10:48 +00:00
const obj2 = require(7910) /* useCutoutBackgroundColor */;
2026-07-20 16:05:17 +00:00
const merged1 = Object.assign(merged);
2026-07-23 10:11:24 +00:00
obj["cutouts"] = tmp4;
obj["style"] = style;
const items = [children, tmp5];
obj["children"] = items;
2026-07-25 08:10:48 +00:00
return callback2(importDefault(7912), obj);
2026-07-20 16:05:17 +00:00
};
export const ClipViewAnimated = animatedComponent;
export const CutoutShape = obj;