// Module ID: 8940 // Function ID: 8941 // Name: ClipView // Dependencies: [19, 17, 21, 8941, 8943, 4373, 2] // Exports: default // Module 8940 (ClipView) import CutoutBackgroundContext from "CutoutBackgroundContext" /* 8941 */; import ClipViewNativeComponentDefault from "ClipViewNativeComponent" /* 8943 */; import noop from "module_19" /* 19 */; import ReanimatedRexport from "ReanimatedRexport" /* 4373 */; require = fn; function SolidCutout(arg0) { ({ backgroundColor, cutout } = arg0); const style = [closure_10.solidCutout]; if (cutout.shape === obj.Circle) { const size = { backgroundColor, borderRadius: cutout.size / 2, height: null, width: null, left: null, top: null }; ({ size: obj.height, size: obj.width, x: obj.left, y: obj.top } = cutout); style.push(size); } else { const size1 = { backgroundColor, borderRadius: null, height: null, width: null, left: null, top: null }; ({ cornerRadius: obj2.borderRadius, height: obj2.height, width: obj2.width, x: obj2.left, y: obj2.top } = cutout); style.push(size1); if (null != cutout.rotationDegrees) { const obj3 = { transform: null }; const obj4 = { rotate: null }; const _HermesInternal = HermesInternal; obj4.rotate = "" + cutout.rotationDegrees + "deg"; const items1 = [obj4]; obj3.transform = items1; style.push(obj3); } } return React4(React3, { style }); } function SolidCutoutOverlay(arg0) { ({ backgroundColor: require, cutouts } = arg0); return closure_4(closure_3, { pointerEvents: "none", style: closure_10.solidCutoutContainer, children: cutouts.map((cutout, index) => React4(SolidCutout, { backgroundColor, cutout }, index)) }); } get_ActivityIndicator = fn(17); ({ StyleSheet, View: c3 } = get_ActivityIndicator); const jsxProd = fn(21); ({ jsx: closure_4, jsxs: hasOwnProperty } = jsxProd); const CutoutShape = { Circle: "circle", RoundedRect: "rounded-rect" }; let closure_7 = []; let obj2 = { solidCutoutContainer: null, solidCutout: null }; let merged = Object.assign(StyleSheet.absoluteFillObject); obj2.solidCutoutContainer = {}; obj2.solidCutout = { position: "absolute" }; const styles = StyleSheet.create(obj2); const ClipViewNativeComponent = ReanimatedRexport.createAnimatedComponent(ClipViewNativeComponentDefault); let size = fn(2); const result = size.fileFinishedImporting("design/components/Icon/native/ClipView.tsx"); export default function ClipView(cutouts) { cutouts = cutouts.cutouts; ({ children, style } = cutouts); const merged = Object.assign(cutouts, Object.assign({ children: 0, cutouts: 0, style: 0 })); const cutoutBackgroundColor = CutoutBackgroundContext.useCutoutBackgroundColor(); let tmp4 = null; let tmp5 = cutouts; if (null != cutoutBackgroundColor) { let tmp7 = null != cutouts; if (tmp7) { tmp7 = cutouts.length > 0; } let tmp8 = null; if (tmp7) { const obj2 = { backgroundColor: cutoutBackgroundColor, cutouts }; tmp8 = React4(SolidCutoutOverlay, obj2); } tmp4 = tmp8; tmp5 = closure_7; } const obj3 = {}; const merged1 = Object.assign(merged); obj3.cutouts = tmp5; obj3.style = style; const items = [children, tmp4]; obj3.children = items; return hasOwnProperty(ClipViewNativeComponentDefault, obj3); }; export const ClipViewAnimated = ClipViewNativeComponent; export { CutoutShape };