/* BitAddy printable QR cards for Pro pages: business cards (8 a sheet), 4 big cards, or a table card that folds in half. baCards.open({name, title, coins, color}) shows the print view; "Print" uses the browser's own print (which can also save a PDF). Sizes are in millimetres and fit both A4 and US Letter. Made entirely in the browser; nothing is sent to BitAddy. Needs qrcode.js. */ (function () { "use strict"; var LAYOUTS = { cards: { label: "Business cards · 8 a sheet (85 × 55 mm)", n: 8, cls: "bc" }, big: { label: "Big cards · 4 a sheet (stickers, flyers)", n: 4, cls: "big" }, tent: { label: "Table card · folds in half to stand up", n: 1, cls: "tent" } }; var CSS = "#ba-print{display:none}" + "@media print{@page{margin:10mm}html,body{background:#fff!important}body>*:not(#ba-print){display:none!important}#ba-print{display:block!important}}" + "#ba-print,#ba-print *{box-sizing:border-box;font-family:system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;color:#14102b}" + ".bp-sheet{display:grid;gap:4mm;justify-content:center;align-content:start}" + ".bp-sheet.bc{grid-template-columns:repeat(2,85mm);grid-auto-rows:55mm}" + ".bp-sheet.big{grid-template-columns:repeat(2,92mm);grid-auto-rows:125mm}" + ".bp-sheet.tent{grid-template-columns:180mm;grid-auto-rows:240mm}" + ".bp-card{border:0.3mm dashed #b9b6c8;border-radius:3mm;overflow:hidden;display:flex;position:relative;background:#fff}" + ".bp-card .bar{position:absolute;left:0;top:0;bottom:0;width:2.2mm;background:var(--c)}" + ".bc .bp-card{flex-direction:row;align-items:center;gap:3mm;padding:3mm 3mm 3mm 5.5mm}" + ".bc .bp-card svg{width:42mm;height:42mm;flex:none}.bc .t{font-size:4.2mm;font-weight:800;line-height:1.15;margin:0 0 1.2mm}" + ".bc .l{font-size:3.1mm;margin:0 0 2mm}.bc .u{font-size:2.9mm;font-weight:700;color:var(--c);word-break:break-all}.bc .k{font-size:2.4mm;color:#5b5872;margin-top:1.5mm}" + ".big .bp-card{flex-direction:column;align-items:center;text-align:center;padding:6mm 6mm 5mm 8mm}" + ".bp-card svg{flex:none;display:block}.big .bp-card svg{width:66mm;height:66mm}.big .t{font-size:6.5mm;font-weight:800;margin:0 0 1.5mm}.big .l{font-size:4.6mm;margin:0 0 3mm}" + ".big .u{font-size:4.2mm;font-weight:700;color:var(--c);margin-top:2mm;word-break:break-all}.big .k{font-size:3.2mm;color:#5b5872;margin-top:1.5mm}" + ".tent .bp-card{flex-direction:column}.tent .half{height:50%;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:6mm}" + ".tent .half.up{transform:rotate(180deg);border-top:0.3mm dashed #b9b6c8}.tent svg{width:56mm;height:56mm}" + ".tent .t{font-size:8mm;font-weight:800;margin:3mm 0 1.5mm;line-height:1.1}.tent .l{font-size:5mm;margin:0 0 2mm}.tent .u{font-size:4.6mm;font-weight:700;color:var(--c);margin-top:2mm}" + ".tent .k{font-size:3.6mm;color:#5b5872;margin-top:1.5mm}" + ".bp-mark{font-size:2.4mm;color:#8a879c;margin-top:1mm}.big .bp-mark,.tent .bp-mark{font-size:3.2mm}"; function svgQr(text) { var q = qrcode(0, "M"); q.addData(text); q.make(); return q.createSvgTag({ cellSize: 4, margin: 0, scalable: true }).replace("