// Module ID: 8441 // Function ID: 8442 // Name: SolidCutout // Dependencies: [19, 17, 21, 8442, 8444, 4119, 2] // Exports: default // 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 */; require = arg1; function SolidCutout(arg0) { ({ backgroundColor, cutout } = arg0); const style = [closure_10.solidCutout]; if (cutout.shape === obj.Circle) { 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); style.push(obj); } else { 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); style.push(obj); if (null != cutout.rotationDegrees) { obj = { transform: null }; obj1 = { rotate: null }; const _HermesInternal = HermesInternal; obj1[0] = "" + cutout.rotationDegrees + "deg"; const items1 = [obj1]; obj[0] = items1; style.push(obj); } } return callback(closure_3, { style }); } function SolidCutoutOverlay(arg0) { ({ backgroundColor: require, cutouts } = arg0); 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)) }); } noopAll; ({ StyleSheet, View: c3 } = get_ActivityIndicator); ({ jsx: c4, jsxs: c5 } = jsxProd); let obj = { Circle: "circle", RoundedRect: "rounded-rect" }; let closure_7 = []; obj = { solidCutoutContainer: null, solidCutout: null }; obj = {}; let merged = Object.assign(StyleSheet.absoluteFillObject); obj[0] = obj; obj[1] = { position: "absolute" }; const styles = StyleSheet.create(obj); const animatedComponent = importDefaultResult.createAnimatedComponent(__INTERNAL_VIEW_CONFIGDefault); const result = require("set").fileFinishedImporting("design/components/Icon/native/ClipView.tsx"); export default function ClipView(cutouts) { cutouts = cutouts.cutouts; ({ children, style } = cutouts); const merged = Object.assign(cutouts, Object.create(null)); obj = useCutoutBackgroundColor; const cutoutBackgroundColor = obj.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) { obj = { backgroundColor: null, cutouts: null }; obj[0] = cutoutBackgroundColor; obj[1] = cutouts; tmp8 = callback(SolidCutoutOverlay, obj); } tmp4 = tmp8; tmp5 = closure_7; const tmp6 = closure_7; } obj = {}; const merged1 = Object.assign(merged); obj.cutouts = tmp5; obj.style = style; const items = [children, tmp4]; obj.children = items; return callback2(__INTERNAL_VIEW_CONFIGDefault, obj); }; export const ClipViewAnimated = animatedComponent; export const CutoutShape = obj;