@barcode-bakery/barcode-react
Version:
Generates barcodes for React.
390 lines (389 loc) • 11.7 kB
JavaScript
import { BCGcodabar as I, BCGcode11 as m, BCGcode39 as y, BCGcode39extended as M, BCGcode93 as R, BCGcode128 as U, BCGean8 as j, BCGean13 as q, BCGi25 as w, BCGisbn as E, BCGmsi as z, BCGothercode as A, BCGs25 as H, BCGupca as J, BCGupce as K, BCGupcext2 as N, BCGupcext5 as P } from "@barcode-bakery/barcode-1d";
import { u as L } from "./canvas-hook-CiGCEF_R.js";
function _({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
I,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
function $({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
m,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
function x({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
checksum: G,
text: D
}) {
const { component: i } = L(
y,
(S) => {
v !== void 0 && S.setScale(v), t !== void 0 && S.setForegroundColor(t), s !== void 0 && S.setBackgroundColor(s), B !== void 0 && S.setOffsetX(B), f !== void 0 && S.setOffsetY(f), n !== void 0 && S.setThickness(n), O !== void 0 && S.setLabel(O), F !== void 0 && S.setFont(F), p !== void 0 && S.setDisplayChecksum(p), G !== void 0 && S.setChecksum(G), S.parse(D);
},
[v, n, s, t, F, O, p, B, f, G, D]
);
return i;
}
function r({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
checksum: G,
text: D
}) {
const { component: i } = L(
M,
(S) => {
v !== void 0 && S.setScale(v), t !== void 0 && S.setForegroundColor(t), s !== void 0 && S.setBackgroundColor(s), B !== void 0 && S.setOffsetX(B), f !== void 0 && S.setOffsetY(f), n !== void 0 && S.setThickness(n), O !== void 0 && S.setLabel(O), F !== void 0 && S.setFont(F), p !== void 0 && S.setDisplayChecksum(p), G !== void 0 && S.setChecksum(G), S.parse(D);
},
[v, n, s, t, F, O, p, B, f, G, D]
);
return i;
}
function u({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
R,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
function Q({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
start: G,
tilde: D,
text: i
}) {
const { component: S } = L(
U,
(T) => {
v !== void 0 && T.setScale(v), t !== void 0 && T.setForegroundColor(t), s !== void 0 && T.setBackgroundColor(s), B !== void 0 && T.setOffsetX(B), f !== void 0 && T.setOffsetY(f), n !== void 0 && T.setThickness(n), O !== void 0 && T.setLabel(O), F !== void 0 && T.setFont(F), p !== void 0 && T.setDisplayChecksum(p), G !== void 0 && T.setStart(G), D !== void 0 && T.setTilde(D), T.parse(i);
},
[v, n, s, t, F, O, p, B, f, G, D, i]
);
return S;
}
Q.Code = U.Code;
function X({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
j,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
function Y({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
q,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
function C({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
checksum: G,
ratio: D,
text: i
}) {
const { component: S } = L(
w,
(T) => {
v !== void 0 && T.setScale(v), t !== void 0 && T.setForegroundColor(t), s !== void 0 && T.setBackgroundColor(s), B !== void 0 && T.setOffsetX(B), f !== void 0 && T.setOffsetY(f), n !== void 0 && T.setThickness(n), O !== void 0 && T.setLabel(O), F !== void 0 && T.setFont(F), p !== void 0 && T.setDisplayChecksum(p), G !== void 0 && T.setChecksum(G), D !== void 0 && T.setRatio(D), T.parse(i);
},
[v, n, s, t, F, O, p, B, f, G, D, i]
);
return S;
}
function V({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
gs1: G,
text: D
}) {
const { component: i } = L(
E,
(S) => {
v !== void 0 && S.setScale(v), t !== void 0 && S.setForegroundColor(t), s !== void 0 && S.setBackgroundColor(s), B !== void 0 && S.setOffsetX(B), f !== void 0 && S.setOffsetY(f), n !== void 0 && S.setThickness(n), O !== void 0 && S.setLabel(O), F !== void 0 && S.setFont(F), p !== void 0 && S.setDisplayChecksum(p), G !== void 0 && S.setGS1(G), S.parse(D);
},
[v, n, s, t, F, O, p, B, f, G, D]
);
return i;
}
V.GS1 = E.GS1;
function a({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
checksum: G,
text: D
}) {
const { component: i } = L(
z,
(S) => {
v !== void 0 && S.setScale(v), t !== void 0 && S.setForegroundColor(t), s !== void 0 && S.setBackgroundColor(s), B !== void 0 && S.setOffsetX(B), f !== void 0 && S.setOffsetY(f), n !== void 0 && S.setThickness(n), O !== void 0 && S.setLabel(O), F !== void 0 && S.setFont(F), p !== void 0 && S.setDisplayChecksum(p), G !== void 0 && S.setChecksum(G), S.parse(D);
},
[v, n, s, t, F, O, p, B, f, G, D]
);
return i;
}
function g({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
A,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
function h({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
checksum: G,
text: D
}) {
const { component: i } = L(
H,
(S) => {
v !== void 0 && S.setScale(v), t !== void 0 && S.setForegroundColor(t), s !== void 0 && S.setBackgroundColor(s), B !== void 0 && S.setOffsetX(B), f !== void 0 && S.setOffsetY(f), n !== void 0 && S.setThickness(n), O !== void 0 && S.setLabel(O), F !== void 0 && S.setFont(F), p !== void 0 && S.setDisplayChecksum(p), S.parse(D);
},
[v, n, s, t, F, O, p, B, f, G, D]
);
return i;
}
function k({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
J,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
function e({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
K,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
function b({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
N,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
function d({
scale: v,
foregroundColor: t,
backgroundColor: s,
offsetX: B,
offsetY: f,
thickness: n,
label: O,
font: F,
displayChecksum: p,
text: G
}) {
const { component: D } = L(
P,
(i) => {
v !== void 0 && i.setScale(v), t !== void 0 && i.setForegroundColor(t), s !== void 0 && i.setBackgroundColor(s), B !== void 0 && i.setOffsetX(B), f !== void 0 && i.setOffsetY(f), n !== void 0 && i.setThickness(n), O !== void 0 && i.setLabel(O), F !== void 0 && i.setFont(F), p !== void 0 && i.setDisplayChecksum(p), i.parse(G);
},
[v, n, s, t, F, O, p, B, f, G]
);
return D;
}
export {
_ as BakeryCodabar,
$ as BakeryCode11,
Q as BakeryCode128,
x as BakeryCode39,
r as BakeryCode39Extended,
u as BakeryCode93,
Y as BakeryEan13,
X as BakeryEan8,
C as BakeryI25,
V as BakeryIsbn,
a as BakeryMsi,
g as BakeryOthercode,
h as BakeryS25,
k as BakeryUpca,
e as BakeryUpce,
b as BakeryUpcext2,
d as BakeryUpcext5
};