Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4823.js (118.4 MB)
93 lines
4.1 KiB
TypeScript
93 lines
4.1 KiB
TypeScript
// Module ID: 10004
|
|
// Function ID: 10005
|
|
// Name: components_native/QRCode
|
|
// Dependencies: [109, 19, 17, 21, 4638, 576, 4348, 10005, 5048, 10019, 8373, 2]
|
|
|
|
// Module 10004 (components_native/QRCode)
|
|
import nativeDefault from "native" /* 576 */;
|
|
import VisualEffectViewThemedDefault from "VisualEffectViewThemed" /* 8373 */;
|
|
import QRCodeDefault from "QRCode" /* 10005 */;
|
|
import _mod10019 from "module_10019" /* 10019 */;
|
|
import _objectWithoutProperties from "_objectWithoutProperties" /* 109 */;
|
|
import noop from "module_19" /* 19 */;
|
|
|
|
const VisualEffectViewDefault = tmp7(5048);
|
|
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(4638);
|
|
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(4348).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: _mod10019 };
|
|
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(4348).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 };
|