// Module ID: 9870 // Function ID: 9871 // Name: components_native/QRCode // Dependencies: [109, 19, 17, 21, 4560, 576, 4271, 9871, 4965, 9885, 8246, 2] // Module 9870 (components_native/QRCode) import nativeDefault from "native" /* 576 */; import VisualEffectViewThemedDefault from "VisualEffectViewThemed" /* 8246 */; import QRCodeDefault from "QRCode" /* 9871 */; import _mod9885 from "module_9885" /* 9885 */; import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */; import noop from "module_19" /* 19 */; const VisualEffectViewDefault = tmp7(4965); require = fn; let closure_3 = ["style", "text", "blur", "accessibilityLabel"]; get_ActivityIndicator = fn(17); ({ View: hasOwnProperty, Image: metroRequire, StyleSheet: closure_7 } = get_ActivityIndicator); const jsxProd = fn(21); ({ jsx: closure_8, jsxs: closure_9 } = jsxProd); const createStyles = fn(4560); let obj2 = { qrCode: { display: "flex", alignSelf: "flex-start", padding: nativeDefault.space.PX_8, borderRadius: nativeDefault.radii.xs }, qrCodeContainer: { display: "flex", alignSelf: "flex-start", alignItems: "center", justifyContent: "center", position: "relative" }, qrCodeOverlay: { display: "flex", alignItems: "center", justifyContent: "center" }, "size-40": { width: 40, height: 40 }, "size-60": { width: 60, height: 60 } }; let closure_10 = createStyles.createLegacyClassComponentStyles(obj2); let obj4 = { SIZE_40: "SIZE_40", SIZE_60: "SIZE_60" }; const frozen = Object.freeze({ [obj4.SIZE_40]: "size-40", [obj4.SIZE_60]: "size-60" }); const PureComponent = noop.PureComponent; class QRCode extends PureComponent { } QRCode.prototype["render"] = function render() { const props = this.props; const accessibilityLabel = props.accessibilityLabel; ({ style, text, blur } = props); const tmp2 = _objectWithoutProperties(props, closure_3); const obj = { accessible: null != accessibilityLabel, accessibilityRole: "image", accessibilityLabel, style: null, children: null }; let tmp3Result = null; const items = [closure_10(this.context).qrCode, { backgroundColor: tmp2.bgColor }, style]; obj.style = items; const obj2 = { style: { position: "relative", width: tmp2.size, height: tmp2.size }, children: null }; const obj3 = { value: text, level: "M" }; const tmp = closure_10(this.context); const tmp6 = React7; const merged = Object.assign(tmp2); const items1 = [React6(QRCodeDefault, obj3), ]; if (blur) { obj4 = { style: React5.absoluteFill, blurTheme: "dark" }; tmp3Result = tmp3(VisualEffectViewDefault, obj4); } items1[1] = tmp3Result; obj2.children = items1; obj.children = tmp6(hasOwnProperty, obj2); return React6(hasOwnProperty, obj); }; QRCode.contextType = fn(4271).ThemeContext; QRCode.defaultProps = { size: 128, bgColor: "#ffffff", fgColor: "#000000" }; const PureComponent2 = noop.PureComponent; class QRCodeWithOverlay extends PureComponent2 { } QRCodeWithOverlay.prototype["render"] = function render() { const tmp = closure_10(this.context); const props = this.props; let SIZE_40 = props.overlaySize; if (SIZE_40 == null) { SIZE_40 = obj4.SIZE_40; } const obj = { style: tmp.qrCodeContainer, children: null }; const obj2 = {}; const merged = Object.assign(this.props); obj2.blur = false; const items = [React6(QRCode, obj2), , ]; const obj3 = { style: null, children: null }; const items1 = [tmp.qrCodeOverlay, React5.absoluteFill]; obj3.style = items1; obj4 = { style: tmp[frozen[SIZE_40]], source: _mod9885 }; obj3.children = React6(timestampProducer, obj4); items[1] = React6(hasOwnProperty, obj3); let tmp6Result = null; if (props.blur) { const obj5 = { style: React5.absoluteFill }; tmp6Result = React6(VisualEffectViewThemedDefault, obj5); } items[2] = tmp6Result; obj.children = items; return React7(hasOwnProperty, obj); }; QRCodeWithOverlay.contextType = fn(4271).ThemeContext; QRCodeWithOverlay.defaultProps = { size: 144, bgColor: "#ffffff", fgColor: "#000000" }; const size = fn(2); const result = size.fileFinishedImporting("components_native/QRCode.tsx"); export default QRCode; export const QRCodeOverlaySizes = obj4; export const QR_CODE_OVERLAY_SIZE_MAP = frozen; export { QRCodeWithOverlay };