// Module ID: 9315 // Function ID: 9316 // Name: QRCode // Dependencies: [9316, 9320, 9325, 19, 9328] // Module 9315 (QRCode) import QRCode from "QRCode" /* 9316 */; import module_9320 from "module_9320" /* 9320 */; import emptyFunction from "emptyFunction" /* 9325 */; import noop from "noop" /* 19 */; import QRCodeSvg from "QRCodeSvg" /* 9328 */; 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 (!QRCode) { let obj = { default: null }; obj[0] = QRCode; let tmp3 = obj; } else { tmp3 = QRCode; } QRCode = tmp3; if (!module_9320) { obj = { default: null }; obj[0] = module_9320; let tmp5 = obj; } else { tmp5 = module_9320; } module_9320 = tmp5; if (!emptyFunction) { obj = { default: null }; obj[0] = emptyFunction; let tmp7 = obj; } else { tmp7 = emptyFunction; } if (!noop) { const obj1 = { default: null }; obj1[0] = noop; let tmp8 = obj1; } else { tmp8 = noop; } noop = tmp8; if (!QRCodeSvg) { const obj2 = { default: null }; obj2[0] = QRCodeSvg; let tmp10 = obj2; } else { tmp10 = QRCodeSvg; } QRCodeSvg = tmp10; let items = [tmp7.default.object, tmp7.default.string]; const items1 = [tmp7.default.object, tmp7.default.string]; const forwardRefResult = noop.forwardRef((obj) => { const items = ["bgColor", "fgColor", "level", "size", "value"]; obj = {}; ({ bgColor, fgColor, level, size, value } = obj); for (const key10012 in arg0) { let tmp4 = key10012; if (items.indexOf(key10012) >= 0) { continue; } else { let _Object = Object; let call = hasOwnProperty.call; if (typeof call === "unknown") { let hasOwnPropertyResult = hasOwnProperty(key10012); } else { hasOwnPropertyResult = call(arg0, key10012); } if (!hasOwnPropertyResult) { continue; } else { obj[key10012] = arg0[key10012]; continue; } continue; } continue; } let _default = new QRCode.default(-1, module_9320.default[level]); _default.addData(value); _default.make(); const modules = _default.modules; _default = noop.default; obj = { bgColor, bgD: null, fgColor: null, fgD: null, ref: null, size: null, viewBoxSize: null }; let mapped = modules.map((arr) => { closure_0 = arg1; const mapped = arr.map((arg0, arg1) => { let str = ""; if (!arg0) { str = `${"M " + arg1 + " " + closure_0} l 1 0 0 1 -1 0 Z`; } return str; }); return mapped.join(" "); }); obj[1] = mapped.join(" "); obj[2] = fgColor; const mapped1 = modules.map((arr) => { closure_0 = arg1; const mapped = arr.map((arg0, arg1) => { let str = ""; if (arg0) { str = `${"M " + arg1 + " " + closure_0} l 1 0 0 1 -1 0 Z`; } return str; }); return mapped.join(" "); }); obj[3] = mapped1.join(" "); obj[4] = arg1; obj[5] = size; obj[6] = modules.length; return ; }); forwardRefResult.displayName = "QRCode"; forwardRefResult.propTypes = { bgColor: _default.oneOfType(items), fgColor: _default2.oneOfType(items1), level: tmp7.default.string, size: tmp7.default.number, value: tmp7.default.string.isRequired }; forwardRefResult.defaultProps = { bgColor: "#FFFFFF", fgColor: "#000000", level: "L", size: 256 }; export default forwardRefResult;