decord/stable/source/components_native/QRCode.tsx
github-actions e2bc0408ee chore: update source for stable 346.13
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4821.js (118.4 MB)
2026-09-22 22:11:40 +00:00

93 lines
4.1 KiB
TypeScript

// Module ID: 9994
// Function ID: 9995
// Name: components_native/QRCode
// Dependencies: [109, 19, 17, 21, 4636, 576, 4347, 9995, 5046, 10009, 8361, 2]
// Module 9994 (components_native/QRCode)
import nativeDefault from "native" /* 576 */;
import VisualEffectViewThemedDefault from "VisualEffectViewThemed" /* 8361 */;
import QRCodeDefault from "QRCode" /* 9995 */;
import _mod10009 from "module_10009" /* 10009 */;
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
import noop from "module_19" /* 19 */;
const VisualEffectViewDefault = tmp7(5046);
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(4636);
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(4347).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: _mod10009 };
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(4347).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 };