98 lines
2.9 KiB
JavaScript
98 lines
2.9 KiB
JavaScript
// Module ID: 9162
|
|
// Function ID: 9163
|
|
// Name: QRCodeSvg
|
|
// Dependencies: [9159, 19, 7880]
|
|
|
|
// Module 9162 (QRCodeSvg)
|
|
import emptyFunction from "emptyFunction";
|
|
import noop from "noop";
|
|
|
|
let fn = Object.assign;
|
|
if (!fn) {
|
|
fn = (arg0) => {
|
|
for (let num = 1; num < arguments.length; num = num + 1) {
|
|
let tmp = arguments[num];
|
|
let tmp2 = tmp;
|
|
let tmp3 = num;
|
|
for (const key10012 in tmp) {
|
|
let tmp5 = key10012;
|
|
let _Object = Object;
|
|
let call = hasOwnProperty.call;
|
|
if (typeof call === "unknown") {
|
|
let hasOwnPropertyResult = hasOwnProperty(key10012);
|
|
} else {
|
|
hasOwnPropertyResult = call(tmp, key10012);
|
|
}
|
|
if (!hasOwnPropertyResult) {
|
|
continue;
|
|
} else {
|
|
arg0[key10012] = tmp[key10012];
|
|
continue;
|
|
}
|
|
continue;
|
|
}
|
|
}
|
|
return arg0;
|
|
};
|
|
}
|
|
if (!emptyFunction) {
|
|
let obj = { default: null };
|
|
obj[0] = emptyFunction;
|
|
let tmp3 = obj;
|
|
} else {
|
|
tmp3 = emptyFunction;
|
|
}
|
|
if (!noop) {
|
|
obj = { default: null };
|
|
obj[0] = noop;
|
|
let tmp4 = obj;
|
|
} else {
|
|
tmp4 = noop;
|
|
}
|
|
let c3 = tmp4;
|
|
obj = { bgColor: _default.oneOfType(items).isRequired, bgD: tmp3.default.string.isRequired, fgColor: _default2.oneOfType(items1).isRequired, fgD: tmp3.default.string.isRequired, size: tmp3.default.number.isRequired, viewBoxSize: tmp3.default.number.isRequired };
|
|
items = [tmp3.default.object, tmp3.default.string];
|
|
items1 = [tmp3.default.object, tmp3.default.string];
|
|
const forwardRefResult = noop.forwardRef((obj, ref) => {
|
|
let bgColor;
|
|
let bgD;
|
|
let fgColor;
|
|
let fgD;
|
|
let size;
|
|
let tmp4;
|
|
let viewBoxSize;
|
|
({ size, viewBoxSize } = obj);
|
|
const items = ["bgColor", "bgD", "fgD", "fgColor", "size", "viewBoxSize"];
|
|
obj = {};
|
|
({ bgColor, bgD, fgD, fgColor } = obj);
|
|
for (const key10013 in arg0) {
|
|
tmp4 = key10013;
|
|
if (items.indexOf(key10013) >= 0) {
|
|
continue;
|
|
} else {
|
|
let _Object = Object;
|
|
let call = hasOwnProperty.call;
|
|
if (typeof call === "unknown") {
|
|
let hasOwnPropertyResult = hasOwnProperty(key10013);
|
|
} else {
|
|
hasOwnPropertyResult = call(arg0, key10013);
|
|
}
|
|
if (!hasOwnPropertyResult) {
|
|
continue;
|
|
} else {
|
|
obj[key10013] = arg0[key10013];
|
|
continue;
|
|
}
|
|
continue;
|
|
}
|
|
continue;
|
|
}
|
|
obj = { height: size, ref, style: { height: size, width: size }, viewBox: `0 0 ${viewBoxSize} ${viewBoxSize}`, width: size };
|
|
const element = tmp4.default.createElement(require(7880) /* inlineStyles */.Path, { d: bgD, fill: bgColor });
|
|
return tmp4.default.createElement(require(7880) /* inlineStyles */.Svg, fn({}, obj, obj), element, tmp4.default.createElement(require(7880) /* inlineStyles */.Path, { d, fill }));
|
|
});
|
|
forwardRefResult.displayName = "QRCodeSvg";
|
|
forwardRefResult.propTypes = obj;
|
|
forwardRefResult.defaultProps = {};
|
|
|
|
export default forwardRefResult;
|