@borurio-print/print-designer 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -2
- package/dist-lib/{index-CWXXAPGm.js → index-B7uQiXj_.js} +735 -721
- package/dist-lib/index.d.ts +14 -2
- package/dist-lib/{index.es-D9S6l8PM.js → index.es-BwhKze_p.js} +2 -2
- package/dist-lib/index.js +1 -1
- package/dist-lib/{pdfGenerator-CjZCu1Cq.js → pdfGenerator-cShpHBr8.js} +1 -1
- package/dist-lib/style.css +1 -1
- package/dist-lib/views/print-designer/components/PrintDialog.vue.d.ts +3 -6
- package/dist-lib/views/print-designer/components/TemplateInfoDialog.vue.d.ts +3 -6
- package/package.json +7 -9
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as V, computed as q, onMounted as
|
|
2
|
-
import { ElMessageBox as
|
|
1
|
+
import { defineComponent as V, computed as q, onMounted as Jr, openBlock as I, createElementBlock as $, mergeProps as yi, toDisplayString as F, createCommentVNode as me, createElementVNode as D, unref as z, Fragment as ue, renderList as ye, createBlock as W, withCtx as L, createVNode as B, normalizeClass as Re, withModifiers as X, createTextVNode as te, resolveDynamicComponent as wi, ref as Y, watchEffect as bi, nextTick as Ct, watch as Ei, reactive as sn, onBeforeUnmount as Mi, normalizeStyle as Ve } from "vue";
|
|
2
|
+
import { ElMessageBox as xi, ElMessage as _n } from "element-plus";
|
|
3
3
|
import { useI18n as de } from "vue-i18n";
|
|
4
|
-
import { ElButton as Ie, ElFormItem as ne, ElInput as
|
|
4
|
+
import { ElButton as Ie, ElFormItem as ne, ElInput as Qr, ElInputNumber as pe, ElRadioGroup as Zr, ElRadio as ei, ElCheckbox as ti, ElDatePicker as Oi, ElSlider as Si, ElForm as dn, ElEmpty as Pi, ElDialog as ni, ElDivider as Ri } from "element-plus/es";
|
|
5
5
|
import "element-plus/es/components/base/style/css";
|
|
6
6
|
import "element-plus/es/components/button/style/css";
|
|
7
7
|
import "element-plus/es/components/empty/style/css";
|
|
@@ -17,7 +17,7 @@ import "element-plus/es/components/slider/style/css";
|
|
|
17
17
|
import "element-plus/es/components/dialog/style/css";
|
|
18
18
|
import "element-plus/es/components/divider/style/css";
|
|
19
19
|
import "element-plus/es/components/message-box/style/css";
|
|
20
|
-
const
|
|
20
|
+
const ri = [
|
|
21
21
|
{
|
|
22
22
|
field: "text",
|
|
23
23
|
icon: "icon-wenzi",
|
|
@@ -263,36 +263,36 @@ const oi = [
|
|
|
263
263
|
]
|
|
264
264
|
}
|
|
265
265
|
];
|
|
266
|
-
function
|
|
267
|
-
return
|
|
266
|
+
function hn(o) {
|
|
267
|
+
return ri.find((f) => f.field === o);
|
|
268
268
|
}
|
|
269
269
|
function Tt(o, f) {
|
|
270
|
-
return
|
|
270
|
+
return hn(o)?.properties.find(
|
|
271
271
|
(l) => l.key === f
|
|
272
272
|
);
|
|
273
273
|
}
|
|
274
|
-
function
|
|
274
|
+
function ke(o) {
|
|
275
275
|
return String(o).padStart(2, "0");
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function kt(o, f = !1) {
|
|
278
278
|
const l = [
|
|
279
279
|
o.getFullYear(),
|
|
280
|
-
|
|
281
|
-
|
|
280
|
+
ke(o.getMonth() + 1),
|
|
281
|
+
ke(o.getDate())
|
|
282
282
|
].join("-");
|
|
283
283
|
return f ? `${l} ${[
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
284
|
+
ke(o.getHours()),
|
|
285
|
+
ke(o.getMinutes()),
|
|
286
|
+
ke(o.getSeconds())
|
|
287
287
|
].join(":")}` : l;
|
|
288
288
|
}
|
|
289
|
-
function
|
|
290
|
-
return
|
|
289
|
+
function _l(o) {
|
|
290
|
+
return kt(o, !0);
|
|
291
291
|
}
|
|
292
292
|
function ae(o) {
|
|
293
293
|
return o.type === "text" || o.type === "serialNumber" || o.type === "pageNumber" || o.type === "time";
|
|
294
294
|
}
|
|
295
|
-
function
|
|
295
|
+
function ii(o, f) {
|
|
296
296
|
switch (o.type) {
|
|
297
297
|
case "text":
|
|
298
298
|
return o.content;
|
|
@@ -301,14 +301,14 @@ function ai(o, f) {
|
|
|
301
301
|
case "pageNumber":
|
|
302
302
|
return `${f.index + 1}/${f.total}`;
|
|
303
303
|
case "time":
|
|
304
|
-
return o.timeMode === "fixed" ? o.fixedTime :
|
|
304
|
+
return o.timeMode === "fixed" ? o.fixedTime : kt(f.printTime, o.includeTime);
|
|
305
305
|
}
|
|
306
306
|
}
|
|
307
|
-
const
|
|
307
|
+
const Ii = ["viewBox", "aria-hidden", "aria-label", "role"], Ti = { key: 0 }, Ci = {
|
|
308
308
|
key: 1,
|
|
309
309
|
d: "M192 64h480l160 160v736H192V64z m64 64v768h512V256H640V128H256z m384 72v-64l64 64h-64zM320 384h384v64H320v-64z m0 160h384v64H320v-64z m0 160h256v64H320v-64z",
|
|
310
310
|
fill: "#888888"
|
|
311
|
-
},
|
|
311
|
+
}, ki = ["href"], Ai = /* @__PURE__ */ V({
|
|
312
312
|
// 显式组件名便于 Vue DevTools 和错误堆栈定位。
|
|
313
313
|
name: "IconFont",
|
|
314
314
|
// $attrs 会手动绑定到 svg,避免 Vue 自动处理时产生不明确的落点。
|
|
@@ -323,9 +323,9 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
323
323
|
const f = o, l = q(() => f.name.replace(/^#/, "")), u = q(
|
|
324
324
|
() => typeof f.size == "number" ? `${f.size}px` : f.size
|
|
325
325
|
);
|
|
326
|
-
return
|
|
326
|
+
return Jr(() => {
|
|
327
327
|
import("./iconfont-BnrPP-u4.js");
|
|
328
|
-
}), (a, c) => (I(), $("svg",
|
|
328
|
+
}), (a, c) => (I(), $("svg", yi(a.$attrs, {
|
|
329
329
|
class: "icon-font",
|
|
330
330
|
style: { width: u.value, height: u.value },
|
|
331
331
|
viewBox: l.value === "icon-yema" ? "0 0 1024 1024" : void 0,
|
|
@@ -334,26 +334,26 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
334
334
|
role: o.title ? "img" : void 0,
|
|
335
335
|
focusable: "false"
|
|
336
336
|
}), [
|
|
337
|
-
o.title ? (I(), $("title",
|
|
338
|
-
l.value === "icon-yema" ? (I(), $("path",
|
|
337
|
+
o.title ? (I(), $("title", Ti, F(o.title), 1)) : me("", !0),
|
|
338
|
+
l.value === "icon-yema" ? (I(), $("path", Ci)) : (I(), $("use", {
|
|
339
339
|
key: 2,
|
|
340
340
|
href: `#${l.value}`
|
|
341
|
-
}, null, 8,
|
|
342
|
-
], 16,
|
|
341
|
+
}, null, 8, ki))
|
|
342
|
+
], 16, Ii));
|
|
343
343
|
}
|
|
344
344
|
}), H = (o, f) => {
|
|
345
345
|
const l = o.__vccOpts || o;
|
|
346
346
|
for (const [u, a] of f)
|
|
347
347
|
l[u] = a;
|
|
348
348
|
return l;
|
|
349
|
-
},
|
|
349
|
+
}, Te = /* @__PURE__ */ H(Ai, [["__scopeId", "data-v-9347cfbe"]]), Di = { class: "component-panel" }, Bi = { class: "component-panel__title" }, Ni = { class: "component-panel__list" }, zi = /* @__PURE__ */ V({
|
|
350
350
|
__name: "ComponentPanel",
|
|
351
351
|
emits: ["add"],
|
|
352
352
|
setup(o, { emit: f }) {
|
|
353
353
|
const l = f, { t: u } = de(), a = q(
|
|
354
354
|
() => (
|
|
355
355
|
// 能力配置保存在 componentRegistry,computed 只负责将 i18n key 转成当前语言。
|
|
356
|
-
|
|
356
|
+
ri.map((h) => ({
|
|
357
357
|
...h,
|
|
358
358
|
title: u(h.titleKey)
|
|
359
359
|
}))
|
|
@@ -364,9 +364,9 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
364
364
|
}
|
|
365
365
|
return (h, s) => {
|
|
366
366
|
const i = Ie;
|
|
367
|
-
return I(), $("section",
|
|
368
|
-
D("h2",
|
|
369
|
-
D("div",
|
|
367
|
+
return I(), $("section", Di, [
|
|
368
|
+
D("h2", Bi, F(z(u)("printDesigner.components.title")), 1),
|
|
369
|
+
D("div", Ni, [
|
|
370
370
|
(I(!0), $(ue, null, ye(a.value, (e) => (I(), W(i, {
|
|
371
371
|
key: e.field,
|
|
372
372
|
class: "component-panel__item",
|
|
@@ -376,7 +376,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
376
376
|
onClick: (t) => c(e)
|
|
377
377
|
}, {
|
|
378
378
|
default: L(() => [
|
|
379
|
-
B(
|
|
379
|
+
B(Te, {
|
|
380
380
|
name: e.icon,
|
|
381
381
|
size: 18
|
|
382
382
|
}, null, 8, ["name"])
|
|
@@ -387,7 +387,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
387
387
|
]);
|
|
388
388
|
};
|
|
389
389
|
}
|
|
390
|
-
}),
|
|
390
|
+
}), $i = /* @__PURE__ */ H(zi, [["__scopeId", "data-v-5c913949"]]), Li = ["aria-label"], qi = { class: "element-list-panel__items" }, Vi = ["aria-pressed", "title", "onClick"], Fi = { class: "element-list-panel__item-label" }, Ui = ["title", "aria-label", "onClick"], ji = /* @__PURE__ */ V({
|
|
391
391
|
__name: "ElementListPanel",
|
|
392
392
|
props: {
|
|
393
393
|
elements: {},
|
|
@@ -400,7 +400,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
400
400
|
return [...l.elements].sort(
|
|
401
401
|
(e, t) => e.zIndex - t.zIndex
|
|
402
402
|
).forEach((e) => {
|
|
403
|
-
const t = (h.get(e.type) ?? 0) + 1, r =
|
|
403
|
+
const t = (h.get(e.type) ?? 0) + 1, r = hn(e.type), n = r ? a(r.titleKey) : e.type;
|
|
404
404
|
h.set(e.type, t), s.set(e.id, `${n} ${t}`);
|
|
405
405
|
}), [...l.elements].sort((e, t) => t.zIndex - e.zIndex).map((e) => ({
|
|
406
406
|
element: e,
|
|
@@ -411,7 +411,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
411
411
|
class: "element-list-panel",
|
|
412
412
|
"aria-label": z(a)("printDesigner.elementList.title")
|
|
413
413
|
}, [
|
|
414
|
-
D("div",
|
|
414
|
+
D("div", qi, [
|
|
415
415
|
(I(!0), $(ue, null, ye(c.value, (i) => (I(), $("div", {
|
|
416
416
|
key: i.element.id,
|
|
417
417
|
class: Re(["element-list-panel__item", {
|
|
@@ -425,8 +425,8 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
425
425
|
title: i.label,
|
|
426
426
|
onClick: (e) => u("select", i.element.id)
|
|
427
427
|
}, [
|
|
428
|
-
D("span",
|
|
429
|
-
], 8,
|
|
428
|
+
D("span", Fi, F(i.label), 1)
|
|
429
|
+
], 8, Vi),
|
|
430
430
|
i.element.id === o.selectedElementId ? (I(), $("button", {
|
|
431
431
|
key: 0,
|
|
432
432
|
type: "button",
|
|
@@ -435,16 +435,16 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
435
435
|
"aria-label": z(a)("printDesigner.elementList.delete"),
|
|
436
436
|
onClick: X((e) => u("delete", i.element.id), ["stop"])
|
|
437
437
|
}, [
|
|
438
|
-
B(
|
|
438
|
+
B(Te, {
|
|
439
439
|
name: "icon-shanchu",
|
|
440
440
|
size: 14
|
|
441
441
|
})
|
|
442
|
-
], 8,
|
|
442
|
+
], 8, Ui)) : me("", !0)
|
|
443
443
|
], 2))), 128))
|
|
444
444
|
])
|
|
445
|
-
], 8,
|
|
445
|
+
], 8, Li));
|
|
446
446
|
}
|
|
447
|
-
}),
|
|
447
|
+
}), Gi = /* @__PURE__ */ H(ji, [["__scopeId", "data-v-bdd2af6b"]]), Hi = /* @__PURE__ */ V({
|
|
448
448
|
__name: "ContentProperty",
|
|
449
449
|
props: {
|
|
450
450
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -457,7 +457,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
457
457
|
u("update:modelValue", c);
|
|
458
458
|
}
|
|
459
459
|
return (c, h) => {
|
|
460
|
-
const s =
|
|
460
|
+
const s = Qr, i = ne;
|
|
461
461
|
return I(), W(i, {
|
|
462
462
|
label: c.$t("printDesigner.properties.content")
|
|
463
463
|
}, {
|
|
@@ -474,7 +474,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
474
474
|
}, 8, ["label"]);
|
|
475
475
|
};
|
|
476
476
|
}
|
|
477
|
-
}),
|
|
477
|
+
}), Wi = /* @__PURE__ */ V({
|
|
478
478
|
__name: "FontSizeProperty",
|
|
479
479
|
props: {
|
|
480
480
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -507,7 +507,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
507
507
|
}, 8, ["label"]);
|
|
508
508
|
};
|
|
509
509
|
}
|
|
510
|
-
}),
|
|
510
|
+
}), Xi = /* @__PURE__ */ H(Wi, [["__scopeId", "data-v-d55e9e10"]]), Yi = /* @__PURE__ */ V({
|
|
511
511
|
__name: "FontWeightProperty",
|
|
512
512
|
props: {
|
|
513
513
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -520,7 +520,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
520
520
|
u("update:modelValue", Number(c) === 700 ? 700 : 400);
|
|
521
521
|
}
|
|
522
522
|
return (c, h) => {
|
|
523
|
-
const s =
|
|
523
|
+
const s = ei, i = Zr, e = ne;
|
|
524
524
|
return I(), W(e, {
|
|
525
525
|
label: c.$t("printDesigner.properties.fontWeight")
|
|
526
526
|
}, {
|
|
@@ -530,13 +530,19 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
530
530
|
"onUpdate:modelValue": a
|
|
531
531
|
}, {
|
|
532
532
|
default: L(() => [
|
|
533
|
-
B(s, {
|
|
533
|
+
B(s, {
|
|
534
|
+
label: 400,
|
|
535
|
+
value: 400
|
|
536
|
+
}, {
|
|
534
537
|
default: L(() => [
|
|
535
538
|
te(F(c.$t("printDesigner.properties.regular")), 1)
|
|
536
539
|
]),
|
|
537
540
|
_: 1
|
|
538
541
|
}),
|
|
539
|
-
B(s, {
|
|
542
|
+
B(s, {
|
|
543
|
+
label: 700,
|
|
544
|
+
value: 700
|
|
545
|
+
}, {
|
|
540
546
|
default: L(() => [
|
|
541
547
|
te(F(c.$t("printDesigner.properties.bold")), 1)
|
|
542
548
|
]),
|
|
@@ -550,7 +556,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
550
556
|
}, 8, ["label"]);
|
|
551
557
|
};
|
|
552
558
|
}
|
|
553
|
-
}),
|
|
559
|
+
}), Ki = /* @__PURE__ */ V({
|
|
554
560
|
__name: "HeightProperty",
|
|
555
561
|
props: {
|
|
556
562
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -583,7 +589,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
583
589
|
}, 8, ["label"]);
|
|
584
590
|
};
|
|
585
591
|
}
|
|
586
|
-
}),
|
|
592
|
+
}), Ji = /* @__PURE__ */ H(Ki, [["__scopeId", "data-v-d4b8a7d9"]]), Qi = /* @__PURE__ */ V({
|
|
587
593
|
__name: "IncludeTimeProperty",
|
|
588
594
|
props: {
|
|
589
595
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -596,7 +602,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
596
602
|
l("update:modelValue", a === !0);
|
|
597
603
|
}
|
|
598
604
|
return (a, c) => {
|
|
599
|
-
const h =
|
|
605
|
+
const h = ti, s = ne;
|
|
600
606
|
return I(), W(s, null, {
|
|
601
607
|
default: L(() => [
|
|
602
608
|
B(h, {
|
|
@@ -613,7 +619,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
613
619
|
});
|
|
614
620
|
};
|
|
615
621
|
}
|
|
616
|
-
}),
|
|
622
|
+
}), Zi = /* @__PURE__ */ V({
|
|
617
623
|
__name: "FixedTimeProperty",
|
|
618
624
|
props: {
|
|
619
625
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -626,7 +632,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
626
632
|
a("update:modelValue", h ?? "");
|
|
627
633
|
}
|
|
628
634
|
return (h, s) => {
|
|
629
|
-
const i =
|
|
635
|
+
const i = Oi, e = ne;
|
|
630
636
|
return I(), W(e, {
|
|
631
637
|
label: h.$t("printDesigner.properties.fixedTime")
|
|
632
638
|
}, {
|
|
@@ -648,7 +654,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
648
654
|
}, 8, ["label"]);
|
|
649
655
|
};
|
|
650
656
|
}
|
|
651
|
-
}),
|
|
657
|
+
}), eo = /* @__PURE__ */ H(Zi, [["__scopeId", "data-v-424e1f20"]]), to = { class: "rotation-property" }, no = /* @__PURE__ */ V({
|
|
652
658
|
__name: "RotationProperty",
|
|
653
659
|
props: {
|
|
654
660
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -665,12 +671,12 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
665
671
|
);
|
|
666
672
|
}
|
|
667
673
|
return (c, h) => {
|
|
668
|
-
const s =
|
|
674
|
+
const s = Si, i = pe, e = ne;
|
|
669
675
|
return I(), W(e, {
|
|
670
676
|
label: c.$t("printDesigner.properties.rotation")
|
|
671
677
|
}, {
|
|
672
678
|
default: L(() => [
|
|
673
|
-
D("div",
|
|
679
|
+
D("div", to, [
|
|
674
680
|
B(s, {
|
|
675
681
|
class: "rotation-property__slider",
|
|
676
682
|
"model-value": Number(l.modelValue),
|
|
@@ -696,7 +702,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
696
702
|
}, 8, ["label"]);
|
|
697
703
|
};
|
|
698
704
|
}
|
|
699
|
-
}),
|
|
705
|
+
}), ro = /* @__PURE__ */ H(no, [["__scopeId", "data-v-5be7f44c"]]), io = /* @__PURE__ */ V({
|
|
700
706
|
__name: "StrokeWidthProperty",
|
|
701
707
|
props: {
|
|
702
708
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -729,7 +735,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
729
735
|
}, 8, ["label"]);
|
|
730
736
|
};
|
|
731
737
|
}
|
|
732
|
-
}),
|
|
738
|
+
}), oo = /* @__PURE__ */ H(io, [["__scopeId", "data-v-ded95458"]]), ao = /* @__PURE__ */ V({
|
|
733
739
|
__name: "TimeModeProperty",
|
|
734
740
|
props: {
|
|
735
741
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -742,7 +748,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
742
748
|
l("update:modelValue", a === "fixed" ? "fixed" : "realtime");
|
|
743
749
|
}
|
|
744
750
|
return (a, c) => {
|
|
745
|
-
const h =
|
|
751
|
+
const h = ei, s = Zr, i = ne;
|
|
746
752
|
return I(), W(i, {
|
|
747
753
|
label: a.$t("printDesigner.properties.timeMode")
|
|
748
754
|
}, {
|
|
@@ -752,13 +758,19 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
752
758
|
"onUpdate:modelValue": u
|
|
753
759
|
}, {
|
|
754
760
|
default: L(() => [
|
|
755
|
-
B(h, {
|
|
761
|
+
B(h, {
|
|
762
|
+
label: "realtime",
|
|
763
|
+
value: "realtime"
|
|
764
|
+
}, {
|
|
756
765
|
default: L(() => [
|
|
757
766
|
te(F(a.$t("printDesigner.properties.realtime")), 1)
|
|
758
767
|
]),
|
|
759
768
|
_: 1
|
|
760
769
|
}),
|
|
761
|
-
B(h, {
|
|
770
|
+
B(h, {
|
|
771
|
+
label: "fixed",
|
|
772
|
+
value: "fixed"
|
|
773
|
+
}, {
|
|
762
774
|
default: L(() => [
|
|
763
775
|
te(F(a.$t("printDesigner.properties.fixed")), 1)
|
|
764
776
|
]),
|
|
@@ -772,7 +784,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
772
784
|
}, 8, ["label"]);
|
|
773
785
|
};
|
|
774
786
|
}
|
|
775
|
-
}),
|
|
787
|
+
}), uo = /* @__PURE__ */ V({
|
|
776
788
|
__name: "WidthProperty",
|
|
777
789
|
props: {
|
|
778
790
|
modelValue: { type: [String, Number, Boolean] },
|
|
@@ -805,7 +817,7 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
805
817
|
}, 8, ["label"]);
|
|
806
818
|
};
|
|
807
819
|
}
|
|
808
|
-
}),
|
|
820
|
+
}), lo = /* @__PURE__ */ H(uo, [["__scopeId", "data-v-2b2f266a"]]), co = { class: "element-properties-panel" }, fo = { class: "element-properties-panel__title" }, so = /* @__PURE__ */ V({
|
|
809
821
|
__name: "ElementPropertiesPanel",
|
|
810
822
|
props: {
|
|
811
823
|
element: {},
|
|
@@ -814,16 +826,16 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
814
826
|
emits: ["update-property"],
|
|
815
827
|
setup(o, { emit: f }) {
|
|
816
828
|
const l = o, u = f, { t: a } = de(), c = {
|
|
817
|
-
content:
|
|
818
|
-
width:
|
|
819
|
-
height:
|
|
820
|
-
fontSize:
|
|
821
|
-
fontWeight:
|
|
822
|
-
strokeWidth:
|
|
823
|
-
rotation:
|
|
824
|
-
timeMode:
|
|
825
|
-
includeTime:
|
|
826
|
-
fixedTime:
|
|
829
|
+
content: Hi,
|
|
830
|
+
width: lo,
|
|
831
|
+
height: Ji,
|
|
832
|
+
fontSize: Xi,
|
|
833
|
+
fontWeight: Yi,
|
|
834
|
+
strokeWidth: oo,
|
|
835
|
+
rotation: ro,
|
|
836
|
+
timeMode: ao,
|
|
837
|
+
includeTime: Qi,
|
|
838
|
+
fixedTime: eo
|
|
827
839
|
}, h = q(() => l.element ? l.properties.filter(
|
|
828
840
|
(i) => i.visibleWhen?.(l.element) ?? !0
|
|
829
841
|
) : []);
|
|
@@ -855,16 +867,16 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
855
867
|
}
|
|
856
868
|
}
|
|
857
869
|
return (i, e) => {
|
|
858
|
-
const t =
|
|
859
|
-
return I(), $("section",
|
|
860
|
-
D("h2",
|
|
870
|
+
const t = dn, r = Pi;
|
|
871
|
+
return I(), $("section", co, [
|
|
872
|
+
D("h2", fo, F(z(a)("printDesigner.properties.title")), 1),
|
|
861
873
|
o.element ? (I(), W(t, {
|
|
862
874
|
key: 0,
|
|
863
875
|
class: "element-properties-panel__form",
|
|
864
876
|
"label-position": "top"
|
|
865
877
|
}, {
|
|
866
878
|
default: L(() => [
|
|
867
|
-
(I(!0), $(ue, null, ye(h.value, (n) => (I(), W(
|
|
879
|
+
(I(!0), $(ue, null, ye(h.value, (n) => (I(), W(wi(c[n.key]), {
|
|
868
880
|
key: n.key,
|
|
869
881
|
"model-value": s(n.key),
|
|
870
882
|
config: n,
|
|
@@ -881,15 +893,15 @@ const Ci = ["viewBox", "aria-hidden", "aria-label", "role"], ki = { key: 0 }, Ai
|
|
|
881
893
|
]);
|
|
882
894
|
};
|
|
883
895
|
}
|
|
884
|
-
}),
|
|
885
|
-
var
|
|
886
|
-
function
|
|
896
|
+
}), ho = /* @__PURE__ */ H(so, [["__scopeId", "data-v-4f590571"]]);
|
|
897
|
+
var vl = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
898
|
+
function oi(o) {
|
|
887
899
|
return o && o.__esModule && Object.prototype.hasOwnProperty.call(o, "default") ? o.default : o;
|
|
888
900
|
}
|
|
889
|
-
var He = {},
|
|
901
|
+
var He = {}, Ae = {}, We = {}, vn;
|
|
890
902
|
function Z() {
|
|
891
|
-
if (
|
|
892
|
-
|
|
903
|
+
if (vn) return We;
|
|
904
|
+
vn = 1, Object.defineProperty(We, "__esModule", {
|
|
893
905
|
value: !0
|
|
894
906
|
});
|
|
895
907
|
function o(l, u) {
|
|
@@ -901,12 +913,12 @@ function Z() {
|
|
|
901
913
|
};
|
|
902
914
|
return We.default = f, We;
|
|
903
915
|
}
|
|
904
|
-
var
|
|
905
|
-
function
|
|
906
|
-
if (
|
|
907
|
-
|
|
916
|
+
var yn;
|
|
917
|
+
function mo() {
|
|
918
|
+
if (yn) return Ae;
|
|
919
|
+
yn = 1, Object.defineProperty(Ae, "__esModule", {
|
|
908
920
|
value: !0
|
|
909
|
-
}),
|
|
921
|
+
}), Ae.CODE39 = void 0;
|
|
910
922
|
var o = /* @__PURE__ */ (function() {
|
|
911
923
|
function p(_, g) {
|
|
912
924
|
for (var v = 0; v < g.length; v++) {
|
|
@@ -974,12 +986,12 @@ function go() {
|
|
|
974
986
|
_ += d(p[g]);
|
|
975
987
|
return _ = _ % 43, _;
|
|
976
988
|
}
|
|
977
|
-
return
|
|
989
|
+
return Ae.CODE39 = s, Ae;
|
|
978
990
|
}
|
|
979
|
-
var re = {}, Xe = {}, Ye = {}, G = {},
|
|
991
|
+
var re = {}, Xe = {}, Ye = {}, G = {}, wn;
|
|
980
992
|
function Fe() {
|
|
981
|
-
if (
|
|
982
|
-
|
|
993
|
+
if (wn) return G;
|
|
994
|
+
wn = 1, Object.defineProperty(G, "__esModule", {
|
|
983
995
|
value: !0
|
|
984
996
|
});
|
|
985
997
|
var o;
|
|
@@ -995,10 +1007,10 @@ function Fe() {
|
|
|
995
1007
|
99: a
|
|
996
1008
|
}, G.A_START_CHAR = "Ð", G.B_START_CHAR = "Ñ", G.C_START_CHAR = "Ò", G.A_CHARS = "[\0-_È-Ï]", G.B_CHARS = "[ -È-Ï]", G.C_CHARS = "(Ï*[0-9]{2}Ï*)", G.BARS = [11011001100, 11001101100, 11001100110, 10010011e3, 10010001100, 10001001100, 10011001e3, 10011000100, 10001100100, 11001001e3, 11001000100, 11000100100, 10110011100, 10011011100, 10011001110, 10111001100, 10011101100, 10011100110, 11001110010, 11001011100, 11001001110, 11011100100, 11001110100, 11101101110, 11101001100, 11100101100, 11100100110, 11101100100, 11100110100, 11100110010, 11011011e3, 11011000110, 11000110110, 10100011e3, 10001011e3, 10001000110, 10110001e3, 10001101e3, 10001100010, 11010001e3, 11000101e3, 11000100010, 10110111e3, 10110001110, 10001101110, 10111011e3, 10111000110, 10001110110, 11101110110, 11010001110, 11000101110, 11011101e3, 11011100010, 11011101110, 11101011e3, 11101000110, 11100010110, 11101101e3, 11101100010, 11100011010, 11101111010, 11001000010, 11110001010, 1010011e4, 10100001100, 1001011e4, 10010000110, 10000101100, 10000100110, 1011001e4, 10110000100, 1001101e4, 10011000010, 10000110100, 10000110010, 11000010010, 1100101e4, 11110111010, 11000010100, 10001111010, 10100111100, 10010111100, 10010011110, 10111100100, 10011110100, 10011110010, 11110100100, 11110010100, 11110010010, 11011011110, 11011110110, 11110110110, 10101111e3, 10100011110, 10001011110, 10111101e3, 10111100010, 11110101e3, 11110100010, 10111011110, 10111101110, 11101011110, 11110101110, 11010000100, 1101001e4, 11010011100, 1100011101011], G;
|
|
997
1009
|
}
|
|
998
|
-
var
|
|
999
|
-
function
|
|
1000
|
-
if (
|
|
1001
|
-
|
|
1010
|
+
var bn;
|
|
1011
|
+
function At() {
|
|
1012
|
+
if (bn) return Ye;
|
|
1013
|
+
bn = 1, Object.defineProperty(Ye, "__esModule", {
|
|
1002
1014
|
value: !0
|
|
1003
1015
|
});
|
|
1004
1016
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1108,7 +1120,7 @@ function Dt() {
|
|
|
1108
1120
|
return Ye.default = i, Ye;
|
|
1109
1121
|
}
|
|
1110
1122
|
var Ke = {}, En;
|
|
1111
|
-
function
|
|
1123
|
+
function po() {
|
|
1112
1124
|
if (En) return Ke;
|
|
1113
1125
|
En = 1, Object.defineProperty(Ke, "__esModule", {
|
|
1114
1126
|
value: !0
|
|
@@ -1152,13 +1164,13 @@ function _o() {
|
|
|
1152
1164
|
);
|
|
1153
1165
|
}, Ke;
|
|
1154
1166
|
}
|
|
1155
|
-
var
|
|
1156
|
-
function
|
|
1157
|
-
if (
|
|
1158
|
-
|
|
1167
|
+
var Mn;
|
|
1168
|
+
function go() {
|
|
1169
|
+
if (Mn) return Xe;
|
|
1170
|
+
Mn = 1, Object.defineProperty(Xe, "__esModule", {
|
|
1159
1171
|
value: !0
|
|
1160
1172
|
});
|
|
1161
|
-
var o =
|
|
1173
|
+
var o = At(), f = a(o), l = po(), u = a(l);
|
|
1162
1174
|
function a(e) {
|
|
1163
1175
|
return e && e.__esModule ? e : { default: e };
|
|
1164
1176
|
}
|
|
@@ -1189,10 +1201,10 @@ function vo() {
|
|
|
1189
1201
|
})(f.default);
|
|
1190
1202
|
return Xe.default = i, Xe;
|
|
1191
1203
|
}
|
|
1192
|
-
var Je = {},
|
|
1193
|
-
function
|
|
1194
|
-
if (
|
|
1195
|
-
|
|
1204
|
+
var Je = {}, xn;
|
|
1205
|
+
function _o() {
|
|
1206
|
+
if (xn) return Je;
|
|
1207
|
+
xn = 1, Object.defineProperty(Je, "__esModule", {
|
|
1196
1208
|
value: !0
|
|
1197
1209
|
});
|
|
1198
1210
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1205,7 +1217,7 @@ function yo() {
|
|
|
1205
1217
|
return function(t, r, n) {
|
|
1206
1218
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
1207
1219
|
};
|
|
1208
|
-
})(), f =
|
|
1220
|
+
})(), f = At(), l = a(f), u = Fe();
|
|
1209
1221
|
function a(e) {
|
|
1210
1222
|
return e && e.__esModule ? e : { default: e };
|
|
1211
1223
|
}
|
|
@@ -1237,10 +1249,10 @@ function yo() {
|
|
|
1237
1249
|
})(l.default);
|
|
1238
1250
|
return Je.default = i, Je;
|
|
1239
1251
|
}
|
|
1240
|
-
var Qe = {},
|
|
1241
|
-
function
|
|
1242
|
-
if (
|
|
1243
|
-
|
|
1252
|
+
var Qe = {}, On;
|
|
1253
|
+
function vo() {
|
|
1254
|
+
if (On) return Qe;
|
|
1255
|
+
On = 1, Object.defineProperty(Qe, "__esModule", {
|
|
1244
1256
|
value: !0
|
|
1245
1257
|
});
|
|
1246
1258
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1253,7 +1265,7 @@ function wo() {
|
|
|
1253
1265
|
return function(t, r, n) {
|
|
1254
1266
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
1255
1267
|
};
|
|
1256
|
-
})(), f =
|
|
1268
|
+
})(), f = At(), l = a(f), u = Fe();
|
|
1257
1269
|
function a(e) {
|
|
1258
1270
|
return e && e.__esModule ? e : { default: e };
|
|
1259
1271
|
}
|
|
@@ -1285,10 +1297,10 @@ function wo() {
|
|
|
1285
1297
|
})(l.default);
|
|
1286
1298
|
return Qe.default = i, Qe;
|
|
1287
1299
|
}
|
|
1288
|
-
var Ze = {},
|
|
1289
|
-
function
|
|
1290
|
-
if (
|
|
1291
|
-
|
|
1300
|
+
var Ze = {}, Sn;
|
|
1301
|
+
function yo() {
|
|
1302
|
+
if (Sn) return Ze;
|
|
1303
|
+
Sn = 1, Object.defineProperty(Ze, "__esModule", {
|
|
1292
1304
|
value: !0
|
|
1293
1305
|
});
|
|
1294
1306
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1301,7 +1313,7 @@ function bo() {
|
|
|
1301
1313
|
return function(t, r, n) {
|
|
1302
1314
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
1303
1315
|
};
|
|
1304
|
-
})(), f =
|
|
1316
|
+
})(), f = At(), l = a(f), u = Fe();
|
|
1305
1317
|
function a(e) {
|
|
1306
1318
|
return e && e.__esModule ? e : { default: e };
|
|
1307
1319
|
}
|
|
@@ -1333,21 +1345,21 @@ function bo() {
|
|
|
1333
1345
|
})(l.default);
|
|
1334
1346
|
return Ze.default = i, Ze;
|
|
1335
1347
|
}
|
|
1336
|
-
var
|
|
1337
|
-
function
|
|
1338
|
-
if (
|
|
1339
|
-
|
|
1348
|
+
var Pn;
|
|
1349
|
+
function wo() {
|
|
1350
|
+
if (Pn) return re;
|
|
1351
|
+
Pn = 1, Object.defineProperty(re, "__esModule", {
|
|
1340
1352
|
value: !0
|
|
1341
1353
|
}), re.CODE128C = re.CODE128B = re.CODE128A = re.CODE128 = void 0;
|
|
1342
|
-
var o =
|
|
1354
|
+
var o = go(), f = i(o), l = _o(), u = i(l), a = vo(), c = i(a), h = yo(), s = i(h);
|
|
1343
1355
|
function i(e) {
|
|
1344
1356
|
return e && e.__esModule ? e : { default: e };
|
|
1345
1357
|
}
|
|
1346
1358
|
return re.CODE128 = f.default, re.CODE128A = u.default, re.CODE128B = c.default, re.CODE128C = s.default, re;
|
|
1347
1359
|
}
|
|
1348
|
-
var K = {}, et = {}, se = {},
|
|
1360
|
+
var K = {}, et = {}, se = {}, Rn;
|
|
1349
1361
|
function Ue() {
|
|
1350
|
-
return
|
|
1362
|
+
return Rn || (Rn = 1, Object.defineProperty(se, "__esModule", {
|
|
1351
1363
|
value: !0
|
|
1352
1364
|
}), se.SIDE_BIN = "101", se.MIDDLE_BIN = "01010", se.BINARIES = {
|
|
1353
1365
|
L: [
|
|
@@ -1417,10 +1429,10 @@ function Ue() {
|
|
|
1417
1429
|
]
|
|
1418
1430
|
}, se.EAN2_STRUCTURE = ["LL", "LG", "GL", "GG"], se.EAN5_STRUCTURE = ["GGLLL", "GLGLL", "GLLGL", "GLLLG", "LGGLL", "LLGGL", "LLLGG", "LGLGL", "LGLLG", "LLGLG"], se.EAN13_STRUCTURE = ["LLLLLL", "LLGLGG", "LLGGLG", "LLGGGL", "LGLLGG", "LGGLLG", "LGGGLL", "LGLGLG", "LGLGGL", "LGGLGL"]), se;
|
|
1419
1431
|
}
|
|
1420
|
-
var tt = {}, nt = {},
|
|
1432
|
+
var tt = {}, nt = {}, In;
|
|
1421
1433
|
function je() {
|
|
1422
|
-
if (
|
|
1423
|
-
|
|
1434
|
+
if (In) return nt;
|
|
1435
|
+
In = 1, Object.defineProperty(nt, "__esModule", {
|
|
1424
1436
|
value: !0
|
|
1425
1437
|
});
|
|
1426
1438
|
var o = Ue(), f = function(u, a, c) {
|
|
@@ -1439,10 +1451,10 @@ function je() {
|
|
|
1439
1451
|
};
|
|
1440
1452
|
return nt.default = f, nt;
|
|
1441
1453
|
}
|
|
1442
|
-
var
|
|
1443
|
-
function
|
|
1444
|
-
if (
|
|
1445
|
-
|
|
1454
|
+
var Tn;
|
|
1455
|
+
function ai() {
|
|
1456
|
+
if (Tn) return tt;
|
|
1457
|
+
Tn = 1, Object.defineProperty(tt, "__esModule", {
|
|
1446
1458
|
value: !0
|
|
1447
1459
|
});
|
|
1448
1460
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1524,10 +1536,10 @@ function li() {
|
|
|
1524
1536
|
})(c.default);
|
|
1525
1537
|
return tt.default = t, tt;
|
|
1526
1538
|
}
|
|
1527
|
-
var
|
|
1528
|
-
function
|
|
1529
|
-
if (
|
|
1530
|
-
|
|
1539
|
+
var Cn;
|
|
1540
|
+
function bo() {
|
|
1541
|
+
if (Cn) return et;
|
|
1542
|
+
Cn = 1, Object.defineProperty(et, "__esModule", {
|
|
1531
1543
|
value: !0
|
|
1532
1544
|
});
|
|
1533
1545
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1552,7 +1564,7 @@ function Eo() {
|
|
|
1552
1564
|
var g = p.get;
|
|
1553
1565
|
return g === void 0 ? void 0 : g.call(m);
|
|
1554
1566
|
}
|
|
1555
|
-
}, l = Ue(), u =
|
|
1567
|
+
}, l = Ue(), u = ai(), a = c(u);
|
|
1556
1568
|
function c(r) {
|
|
1557
1569
|
return r && r.__esModule ? r : { default: r };
|
|
1558
1570
|
}
|
|
@@ -1632,10 +1644,10 @@ function Eo() {
|
|
|
1632
1644
|
})(a.default);
|
|
1633
1645
|
return et.default = t, et;
|
|
1634
1646
|
}
|
|
1635
|
-
var rt = {},
|
|
1636
|
-
function
|
|
1637
|
-
if (
|
|
1638
|
-
|
|
1647
|
+
var rt = {}, kn;
|
|
1648
|
+
function Eo() {
|
|
1649
|
+
if (kn) return rt;
|
|
1650
|
+
kn = 1, Object.defineProperty(rt, "__esModule", {
|
|
1639
1651
|
value: !0
|
|
1640
1652
|
});
|
|
1641
1653
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1660,7 +1672,7 @@ function xo() {
|
|
|
1660
1672
|
var _ = m.get;
|
|
1661
1673
|
return _ === void 0 ? void 0 : _.call(d);
|
|
1662
1674
|
}
|
|
1663
|
-
}, l =
|
|
1675
|
+
}, l = ai(), u = a(l);
|
|
1664
1676
|
function a(t) {
|
|
1665
1677
|
return t && t.__esModule ? t : { default: t };
|
|
1666
1678
|
}
|
|
@@ -1721,10 +1733,10 @@ function xo() {
|
|
|
1721
1733
|
})(u.default);
|
|
1722
1734
|
return rt.default = e, rt;
|
|
1723
1735
|
}
|
|
1724
|
-
var it = {},
|
|
1725
|
-
function
|
|
1726
|
-
if (
|
|
1727
|
-
|
|
1736
|
+
var it = {}, An;
|
|
1737
|
+
function Mo() {
|
|
1738
|
+
if (An) return it;
|
|
1739
|
+
An = 1, Object.defineProperty(it, "__esModule", {
|
|
1728
1740
|
value: !0
|
|
1729
1741
|
});
|
|
1730
1742
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1785,10 +1797,10 @@ function Oo() {
|
|
|
1785
1797
|
})(c.default);
|
|
1786
1798
|
return it.default = r, it;
|
|
1787
1799
|
}
|
|
1788
|
-
var ot = {},
|
|
1789
|
-
function
|
|
1790
|
-
if (
|
|
1791
|
-
|
|
1800
|
+
var ot = {}, Dn;
|
|
1801
|
+
function xo() {
|
|
1802
|
+
if (Dn) return ot;
|
|
1803
|
+
Dn = 1, Object.defineProperty(ot, "__esModule", {
|
|
1792
1804
|
value: !0
|
|
1793
1805
|
});
|
|
1794
1806
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1843,10 +1855,10 @@ function So() {
|
|
|
1843
1855
|
})(c.default);
|
|
1844
1856
|
return ot.default = t, ot;
|
|
1845
1857
|
}
|
|
1846
|
-
var
|
|
1847
|
-
function
|
|
1848
|
-
if (
|
|
1849
|
-
|
|
1858
|
+
var De = {}, Bn;
|
|
1859
|
+
function ui() {
|
|
1860
|
+
if (Bn) return De;
|
|
1861
|
+
Bn = 1, Object.defineProperty(De, "__esModule", {
|
|
1850
1862
|
value: !0
|
|
1851
1863
|
});
|
|
1852
1864
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1860,7 +1872,7 @@ function ci() {
|
|
|
1860
1872
|
return d && r(n.prototype, d), m && r(n, m), n;
|
|
1861
1873
|
};
|
|
1862
1874
|
})();
|
|
1863
|
-
|
|
1875
|
+
De.checksum = t;
|
|
1864
1876
|
var f = je(), l = c(f), u = Z(), a = c(u);
|
|
1865
1877
|
function c(r) {
|
|
1866
1878
|
return r && r.__esModule ? r : { default: r };
|
|
@@ -1946,12 +1958,12 @@ function ci() {
|
|
|
1946
1958
|
n += parseInt(r[d]) * 3;
|
|
1947
1959
|
return (10 - n % 10) % 10;
|
|
1948
1960
|
}
|
|
1949
|
-
return
|
|
1961
|
+
return De.default = e, De;
|
|
1950
1962
|
}
|
|
1951
|
-
var at = {},
|
|
1952
|
-
function
|
|
1953
|
-
if (
|
|
1954
|
-
|
|
1963
|
+
var at = {}, Nn;
|
|
1964
|
+
function Oo() {
|
|
1965
|
+
if (Nn) return at;
|
|
1966
|
+
Nn = 1, Object.defineProperty(at, "__esModule", {
|
|
1955
1967
|
value: !0
|
|
1956
1968
|
});
|
|
1957
1969
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -1964,7 +1976,7 @@ function Po() {
|
|
|
1964
1976
|
return function(p, _, g) {
|
|
1965
1977
|
return _ && m(p.prototype, _), g && m(p, g), p;
|
|
1966
1978
|
};
|
|
1967
|
-
})(), f = je(), l = h(f), u = Z(), a = h(u), c =
|
|
1979
|
+
})(), f = je(), l = h(f), u = Z(), a = h(u), c = ui();
|
|
1968
1980
|
function h(m) {
|
|
1969
1981
|
return m && m.__esModule ? m : { default: m };
|
|
1970
1982
|
}
|
|
@@ -2058,28 +2070,28 @@ function Po() {
|
|
|
2058
2070
|
}
|
|
2059
2071
|
return at.default = n, at;
|
|
2060
2072
|
}
|
|
2061
|
-
var
|
|
2062
|
-
function
|
|
2063
|
-
if (
|
|
2064
|
-
|
|
2073
|
+
var zn;
|
|
2074
|
+
function So() {
|
|
2075
|
+
if (zn) return K;
|
|
2076
|
+
zn = 1, Object.defineProperty(K, "__esModule", {
|
|
2065
2077
|
value: !0
|
|
2066
2078
|
}), K.UPCE = K.UPC = K.EAN2 = K.EAN5 = K.EAN8 = K.EAN13 = void 0;
|
|
2067
|
-
var o =
|
|
2079
|
+
var o = bo(), f = n(o), l = Eo(), u = n(l), a = Mo(), c = n(a), h = xo(), s = n(h), i = ui(), e = n(i), t = Oo(), r = n(t);
|
|
2068
2080
|
function n(d) {
|
|
2069
2081
|
return d && d.__esModule ? d : { default: d };
|
|
2070
2082
|
}
|
|
2071
2083
|
return K.EAN13 = f.default, K.EAN8 = u.default, K.EAN5 = c.default, K.EAN2 = s.default, K.UPC = e.default, K.UPCE = r.default, K;
|
|
2072
2084
|
}
|
|
2073
|
-
var _e = {}, ut = {}, xe = {},
|
|
2074
|
-
function
|
|
2075
|
-
return
|
|
2085
|
+
var _e = {}, ut = {}, xe = {}, $n;
|
|
2086
|
+
function Po() {
|
|
2087
|
+
return $n || ($n = 1, Object.defineProperty(xe, "__esModule", {
|
|
2076
2088
|
value: !0
|
|
2077
2089
|
}), xe.START_BIN = "1010", xe.END_BIN = "11101", xe.BINARIES = ["00110", "10001", "01001", "11000", "00101", "10100", "01100", "00011", "10010", "01010"]), xe;
|
|
2078
2090
|
}
|
|
2079
|
-
var
|
|
2080
|
-
function
|
|
2081
|
-
if (
|
|
2082
|
-
|
|
2091
|
+
var Ln;
|
|
2092
|
+
function li() {
|
|
2093
|
+
if (Ln) return ut;
|
|
2094
|
+
Ln = 1, Object.defineProperty(ut, "__esModule", {
|
|
2083
2095
|
value: !0
|
|
2084
2096
|
});
|
|
2085
2097
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -2092,7 +2104,7 @@ function fi() {
|
|
|
2092
2104
|
return function(t, r, n) {
|
|
2093
2105
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
2094
2106
|
};
|
|
2095
|
-
})(), f =
|
|
2107
|
+
})(), f = Po(), l = Z(), u = a(l);
|
|
2096
2108
|
function a(e) {
|
|
2097
2109
|
return e && e.__esModule ? e : { default: e };
|
|
2098
2110
|
}
|
|
@@ -2144,10 +2156,10 @@ function fi() {
|
|
|
2144
2156
|
})(u.default);
|
|
2145
2157
|
return ut.default = i, ut;
|
|
2146
2158
|
}
|
|
2147
|
-
var lt = {},
|
|
2148
|
-
function
|
|
2149
|
-
if (
|
|
2150
|
-
|
|
2159
|
+
var lt = {}, qn;
|
|
2160
|
+
function Ro() {
|
|
2161
|
+
if (qn) return lt;
|
|
2162
|
+
qn = 1, Object.defineProperty(lt, "__esModule", {
|
|
2151
2163
|
value: !0
|
|
2152
2164
|
});
|
|
2153
2165
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -2160,7 +2172,7 @@ function To() {
|
|
|
2160
2172
|
return function(t, r, n) {
|
|
2161
2173
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
2162
2174
|
};
|
|
2163
|
-
})(), f =
|
|
2175
|
+
})(), f = li(), l = u(f);
|
|
2164
2176
|
function u(e) {
|
|
2165
2177
|
return e && e.__esModule ? e : { default: e };
|
|
2166
2178
|
}
|
|
@@ -2199,22 +2211,22 @@ function To() {
|
|
|
2199
2211
|
})(l.default);
|
|
2200
2212
|
return lt.default = i, lt;
|
|
2201
2213
|
}
|
|
2202
|
-
var
|
|
2203
|
-
function
|
|
2204
|
-
if (
|
|
2205
|
-
|
|
2214
|
+
var Vn;
|
|
2215
|
+
function Io() {
|
|
2216
|
+
if (Vn) return _e;
|
|
2217
|
+
Vn = 1, Object.defineProperty(_e, "__esModule", {
|
|
2206
2218
|
value: !0
|
|
2207
2219
|
}), _e.ITF14 = _e.ITF = void 0;
|
|
2208
|
-
var o =
|
|
2220
|
+
var o = li(), f = a(o), l = Ro(), u = a(l);
|
|
2209
2221
|
function a(c) {
|
|
2210
2222
|
return c && c.__esModule ? c : { default: c };
|
|
2211
2223
|
}
|
|
2212
2224
|
return _e.ITF = f.default, _e.ITF14 = u.default, _e;
|
|
2213
2225
|
}
|
|
2214
|
-
var J = {}, ct = {},
|
|
2226
|
+
var J = {}, ct = {}, Fn;
|
|
2215
2227
|
function Ge() {
|
|
2216
|
-
if (
|
|
2217
|
-
|
|
2228
|
+
if (Fn) return ct;
|
|
2229
|
+
Fn = 1, Object.defineProperty(ct, "__esModule", {
|
|
2218
2230
|
value: !0
|
|
2219
2231
|
});
|
|
2220
2232
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -2278,12 +2290,12 @@ function Ge() {
|
|
|
2278
2290
|
}
|
|
2279
2291
|
return ct.default = s, ct;
|
|
2280
2292
|
}
|
|
2281
|
-
var ft = {},
|
|
2282
|
-
function
|
|
2283
|
-
if (
|
|
2284
|
-
|
|
2293
|
+
var ft = {}, Be = {}, Un;
|
|
2294
|
+
function Dt() {
|
|
2295
|
+
if (Un) return Be;
|
|
2296
|
+
Un = 1, Object.defineProperty(Be, "__esModule", {
|
|
2285
2297
|
value: !0
|
|
2286
|
-
}),
|
|
2298
|
+
}), Be.mod10 = o, Be.mod11 = f;
|
|
2287
2299
|
function o(l) {
|
|
2288
2300
|
for (var u = 0, a = 0; a < l.length; a++) {
|
|
2289
2301
|
var c = parseInt(l[a]);
|
|
@@ -2298,15 +2310,15 @@ function Bt() {
|
|
|
2298
2310
|
}
|
|
2299
2311
|
return (11 - u % 11) % 11;
|
|
2300
2312
|
}
|
|
2301
|
-
return
|
|
2313
|
+
return Be;
|
|
2302
2314
|
}
|
|
2303
|
-
var
|
|
2304
|
-
function
|
|
2305
|
-
if (
|
|
2306
|
-
|
|
2315
|
+
var jn;
|
|
2316
|
+
function To() {
|
|
2317
|
+
if (jn) return ft;
|
|
2318
|
+
jn = 1, Object.defineProperty(ft, "__esModule", {
|
|
2307
2319
|
value: !0
|
|
2308
2320
|
});
|
|
2309
|
-
var o = Ge(), f = u(o), l =
|
|
2321
|
+
var o = Ge(), f = u(o), l = Dt();
|
|
2310
2322
|
function u(i) {
|
|
2311
2323
|
return i && i.__esModule ? i : { default: i };
|
|
2312
2324
|
}
|
|
@@ -2333,13 +2345,13 @@ function ko() {
|
|
|
2333
2345
|
})(f.default);
|
|
2334
2346
|
return ft.default = s, ft;
|
|
2335
2347
|
}
|
|
2336
|
-
var st = {},
|
|
2337
|
-
function
|
|
2338
|
-
if (
|
|
2339
|
-
|
|
2348
|
+
var st = {}, Gn;
|
|
2349
|
+
function Co() {
|
|
2350
|
+
if (Gn) return st;
|
|
2351
|
+
Gn = 1, Object.defineProperty(st, "__esModule", {
|
|
2340
2352
|
value: !0
|
|
2341
2353
|
});
|
|
2342
|
-
var o = Ge(), f = u(o), l =
|
|
2354
|
+
var o = Ge(), f = u(o), l = Dt();
|
|
2343
2355
|
function u(i) {
|
|
2344
2356
|
return i && i.__esModule ? i : { default: i };
|
|
2345
2357
|
}
|
|
@@ -2366,13 +2378,13 @@ function Ao() {
|
|
|
2366
2378
|
})(f.default);
|
|
2367
2379
|
return st.default = s, st;
|
|
2368
2380
|
}
|
|
2369
|
-
var dt = {},
|
|
2370
|
-
function
|
|
2371
|
-
if (
|
|
2372
|
-
|
|
2381
|
+
var dt = {}, Hn;
|
|
2382
|
+
function ko() {
|
|
2383
|
+
if (Hn) return dt;
|
|
2384
|
+
Hn = 1, Object.defineProperty(dt, "__esModule", {
|
|
2373
2385
|
value: !0
|
|
2374
2386
|
});
|
|
2375
|
-
var o = Ge(), f = u(o), l =
|
|
2387
|
+
var o = Ge(), f = u(o), l = Dt();
|
|
2376
2388
|
function u(i) {
|
|
2377
2389
|
return i && i.__esModule ? i : { default: i };
|
|
2378
2390
|
}
|
|
@@ -2399,13 +2411,13 @@ function Do() {
|
|
|
2399
2411
|
})(f.default);
|
|
2400
2412
|
return dt.default = s, dt;
|
|
2401
2413
|
}
|
|
2402
|
-
var ht = {},
|
|
2403
|
-
function
|
|
2404
|
-
if (
|
|
2405
|
-
|
|
2414
|
+
var ht = {}, Wn;
|
|
2415
|
+
function Ao() {
|
|
2416
|
+
if (Wn) return ht;
|
|
2417
|
+
Wn = 1, Object.defineProperty(ht, "__esModule", {
|
|
2406
2418
|
value: !0
|
|
2407
2419
|
});
|
|
2408
|
-
var o = Ge(), f = u(o), l =
|
|
2420
|
+
var o = Ge(), f = u(o), l = Dt();
|
|
2409
2421
|
function u(i) {
|
|
2410
2422
|
return i && i.__esModule ? i : { default: i };
|
|
2411
2423
|
}
|
|
@@ -2432,24 +2444,24 @@ function Bo() {
|
|
|
2432
2444
|
})(f.default);
|
|
2433
2445
|
return ht.default = s, ht;
|
|
2434
2446
|
}
|
|
2435
|
-
var
|
|
2436
|
-
function
|
|
2437
|
-
if (
|
|
2438
|
-
|
|
2447
|
+
var Xn;
|
|
2448
|
+
function Do() {
|
|
2449
|
+
if (Xn) return J;
|
|
2450
|
+
Xn = 1, Object.defineProperty(J, "__esModule", {
|
|
2439
2451
|
value: !0
|
|
2440
2452
|
}), J.MSI1110 = J.MSI1010 = J.MSI11 = J.MSI10 = J.MSI = void 0;
|
|
2441
|
-
var o = Ge(), f = t(o), l =
|
|
2453
|
+
var o = Ge(), f = t(o), l = To(), u = t(l), a = Co(), c = t(a), h = ko(), s = t(h), i = Ao(), e = t(i);
|
|
2442
2454
|
function t(r) {
|
|
2443
2455
|
return r && r.__esModule ? r : { default: r };
|
|
2444
2456
|
}
|
|
2445
2457
|
return J.MSI = f.default, J.MSI10 = u.default, J.MSI11 = c.default, J.MSI1010 = s.default, J.MSI1110 = e.default, J;
|
|
2446
2458
|
}
|
|
2447
|
-
var
|
|
2448
|
-
function
|
|
2449
|
-
if (
|
|
2450
|
-
|
|
2459
|
+
var Ne = {}, Yn;
|
|
2460
|
+
function Bo() {
|
|
2461
|
+
if (Yn) return Ne;
|
|
2462
|
+
Yn = 1, Object.defineProperty(Ne, "__esModule", {
|
|
2451
2463
|
value: !0
|
|
2452
|
-
}),
|
|
2464
|
+
}), Ne.pharmacode = void 0;
|
|
2453
2465
|
var o = /* @__PURE__ */ (function() {
|
|
2454
2466
|
function i(e, t) {
|
|
2455
2467
|
for (var r = 0; r < t.length; r++) {
|
|
@@ -2502,14 +2514,14 @@ function zo() {
|
|
|
2502
2514
|
}
|
|
2503
2515
|
}]), e;
|
|
2504
2516
|
})(l.default);
|
|
2505
|
-
return
|
|
2517
|
+
return Ne.pharmacode = s, Ne;
|
|
2506
2518
|
}
|
|
2507
|
-
var
|
|
2508
|
-
function
|
|
2509
|
-
if (
|
|
2510
|
-
|
|
2519
|
+
var ze = {}, Kn;
|
|
2520
|
+
function No() {
|
|
2521
|
+
if (Kn) return ze;
|
|
2522
|
+
Kn = 1, Object.defineProperty(ze, "__esModule", {
|
|
2511
2523
|
value: !0
|
|
2512
|
-
}),
|
|
2524
|
+
}), ze.codabar = void 0;
|
|
2513
2525
|
var o = /* @__PURE__ */ (function() {
|
|
2514
2526
|
function i(e, t) {
|
|
2515
2527
|
for (var r = 0; r < t.length; r++) {
|
|
@@ -2588,11 +2600,11 @@ function $o() {
|
|
|
2588
2600
|
}
|
|
2589
2601
|
}]), e;
|
|
2590
2602
|
})(l.default);
|
|
2591
|
-
return
|
|
2603
|
+
return ze.codabar = s, ze;
|
|
2592
2604
|
}
|
|
2593
|
-
var ve = {}, mt = {}, Oe = {},
|
|
2594
|
-
function
|
|
2595
|
-
return
|
|
2605
|
+
var ve = {}, mt = {}, Oe = {}, Jn;
|
|
2606
|
+
function zo() {
|
|
2607
|
+
return Jn || (Jn = 1, Object.defineProperty(Oe, "__esModule", {
|
|
2596
2608
|
value: !0
|
|
2597
2609
|
}), Oe.SYMBOLS = [
|
|
2598
2610
|
"0",
|
|
@@ -2733,10 +2745,10 @@ function Lo() {
|
|
|
2733
2745
|
"": ["(%)", "T"]
|
|
2734
2746
|
}), Oe;
|
|
2735
2747
|
}
|
|
2736
|
-
var
|
|
2737
|
-
function
|
|
2738
|
-
if (
|
|
2739
|
-
|
|
2748
|
+
var Qn;
|
|
2749
|
+
function ci() {
|
|
2750
|
+
if (Qn) return mt;
|
|
2751
|
+
Qn = 1, Object.defineProperty(mt, "__esModule", {
|
|
2740
2752
|
value: !0
|
|
2741
2753
|
});
|
|
2742
2754
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -2749,7 +2761,7 @@ function si() {
|
|
|
2749
2761
|
return function(t, r, n) {
|
|
2750
2762
|
return r && e(t.prototype, r), n && e(t, n), t;
|
|
2751
2763
|
};
|
|
2752
|
-
})(), f =
|
|
2764
|
+
})(), f = zo(), l = Z(), u = a(l);
|
|
2753
2765
|
function a(e) {
|
|
2754
2766
|
return e && e.__esModule ? e : { default: e };
|
|
2755
2767
|
}
|
|
@@ -2829,10 +2841,10 @@ function si() {
|
|
|
2829
2841
|
})(u.default);
|
|
2830
2842
|
return mt.default = i, mt;
|
|
2831
2843
|
}
|
|
2832
|
-
var pt = {},
|
|
2833
|
-
function
|
|
2834
|
-
if (
|
|
2835
|
-
|
|
2844
|
+
var pt = {}, Zn;
|
|
2845
|
+
function $o() {
|
|
2846
|
+
if (Zn) return pt;
|
|
2847
|
+
Zn = 1, Object.defineProperty(pt, "__esModule", {
|
|
2836
2848
|
value: !0
|
|
2837
2849
|
});
|
|
2838
2850
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -2845,7 +2857,7 @@ function qo() {
|
|
|
2845
2857
|
return function(e, t, r) {
|
|
2846
2858
|
return t && i(e.prototype, t), r && i(e, r), e;
|
|
2847
2859
|
};
|
|
2848
|
-
})(), f =
|
|
2860
|
+
})(), f = ci(), l = u(f);
|
|
2849
2861
|
function u(i) {
|
|
2850
2862
|
return i && i.__esModule ? i : { default: i };
|
|
2851
2863
|
}
|
|
@@ -2877,24 +2889,24 @@ function qo() {
|
|
|
2877
2889
|
})(l.default);
|
|
2878
2890
|
return pt.default = s, pt;
|
|
2879
2891
|
}
|
|
2880
|
-
var
|
|
2881
|
-
function
|
|
2882
|
-
if (
|
|
2883
|
-
|
|
2892
|
+
var er;
|
|
2893
|
+
function Lo() {
|
|
2894
|
+
if (er) return ve;
|
|
2895
|
+
er = 1, Object.defineProperty(ve, "__esModule", {
|
|
2884
2896
|
value: !0
|
|
2885
2897
|
}), ve.CODE93FullASCII = ve.CODE93 = void 0;
|
|
2886
|
-
var o =
|
|
2898
|
+
var o = ci(), f = a(o), l = $o(), u = a(l);
|
|
2887
2899
|
function a(c) {
|
|
2888
2900
|
return c && c.__esModule ? c : { default: c };
|
|
2889
2901
|
}
|
|
2890
2902
|
return ve.CODE93 = f.default, ve.CODE93FullASCII = u.default, ve;
|
|
2891
2903
|
}
|
|
2892
|
-
var
|
|
2893
|
-
function
|
|
2894
|
-
if (
|
|
2895
|
-
|
|
2904
|
+
var $e = {}, tr;
|
|
2905
|
+
function qo() {
|
|
2906
|
+
if (tr) return $e;
|
|
2907
|
+
tr = 1, Object.defineProperty($e, "__esModule", {
|
|
2896
2908
|
value: !0
|
|
2897
|
-
}),
|
|
2909
|
+
}), $e.GenericBarcode = void 0;
|
|
2898
2910
|
var o = /* @__PURE__ */ (function() {
|
|
2899
2911
|
function i(e, t) {
|
|
2900
2912
|
for (var r = 0; r < t.length; r++) {
|
|
@@ -2944,15 +2956,15 @@ function Fo() {
|
|
|
2944
2956
|
}
|
|
2945
2957
|
}]), e;
|
|
2946
2958
|
})(l.default);
|
|
2947
|
-
return
|
|
2959
|
+
return $e.GenericBarcode = s, $e;
|
|
2948
2960
|
}
|
|
2949
|
-
var
|
|
2950
|
-
function
|
|
2951
|
-
if (
|
|
2952
|
-
|
|
2961
|
+
var nr;
|
|
2962
|
+
function Vo() {
|
|
2963
|
+
if (nr) return He;
|
|
2964
|
+
nr = 1, Object.defineProperty(He, "__esModule", {
|
|
2953
2965
|
value: !0
|
|
2954
2966
|
});
|
|
2955
|
-
var o =
|
|
2967
|
+
var o = mo(), f = wo(), l = So(), u = Io(), a = Do(), c = Bo(), h = No(), s = Lo(), i = qo();
|
|
2956
2968
|
return He.default = {
|
|
2957
2969
|
CODE39: o.CODE39,
|
|
2958
2970
|
CODE128: f.CODE128,
|
|
@@ -2979,10 +2991,10 @@ function Uo() {
|
|
|
2979
2991
|
GenericBarcode: i.GenericBarcode
|
|
2980
2992
|
}, He;
|
|
2981
2993
|
}
|
|
2982
|
-
var gt = {},
|
|
2983
|
-
function
|
|
2984
|
-
if (
|
|
2985
|
-
|
|
2994
|
+
var gt = {}, rr;
|
|
2995
|
+
function Bt() {
|
|
2996
|
+
if (rr) return gt;
|
|
2997
|
+
rr = 1, Object.defineProperty(gt, "__esModule", {
|
|
2986
2998
|
value: !0
|
|
2987
2999
|
});
|
|
2988
3000
|
var o = Object.assign || function(f) {
|
|
@@ -2997,10 +3009,10 @@ function Nt() {
|
|
|
2997
3009
|
return o({}, f, l);
|
|
2998
3010
|
}, gt;
|
|
2999
3011
|
}
|
|
3000
|
-
var _t = {},
|
|
3001
|
-
function
|
|
3002
|
-
if (
|
|
3003
|
-
|
|
3012
|
+
var _t = {}, ir;
|
|
3013
|
+
function Fo() {
|
|
3014
|
+
if (ir) return _t;
|
|
3015
|
+
ir = 1, Object.defineProperty(_t, "__esModule", {
|
|
3004
3016
|
value: !0
|
|
3005
3017
|
}), _t.default = o;
|
|
3006
3018
|
function o(f) {
|
|
@@ -3016,10 +3028,10 @@ function jo() {
|
|
|
3016
3028
|
}
|
|
3017
3029
|
return _t;
|
|
3018
3030
|
}
|
|
3019
|
-
var vt = {},
|
|
3020
|
-
function
|
|
3021
|
-
if (
|
|
3022
|
-
|
|
3031
|
+
var vt = {}, or;
|
|
3032
|
+
function Uo() {
|
|
3033
|
+
if (or) return vt;
|
|
3034
|
+
or = 1, Object.defineProperty(vt, "__esModule", {
|
|
3023
3035
|
value: !0
|
|
3024
3036
|
}), vt.default = o;
|
|
3025
3037
|
function o(f) {
|
|
@@ -3027,10 +3039,10 @@ function Go() {
|
|
|
3027
3039
|
}
|
|
3028
3040
|
return vt;
|
|
3029
3041
|
}
|
|
3030
|
-
var yt = {}, wt = {}, bt = {},
|
|
3031
|
-
function
|
|
3032
|
-
if (
|
|
3033
|
-
|
|
3042
|
+
var yt = {}, wt = {}, bt = {}, ar;
|
|
3043
|
+
function fi() {
|
|
3044
|
+
if (ar) return bt;
|
|
3045
|
+
ar = 1, Object.defineProperty(bt, "__esModule", {
|
|
3034
3046
|
value: !0
|
|
3035
3047
|
}), bt.default = o;
|
|
3036
3048
|
function o(f) {
|
|
@@ -3041,10 +3053,10 @@ function di() {
|
|
|
3041
3053
|
}
|
|
3042
3054
|
return bt;
|
|
3043
3055
|
}
|
|
3044
|
-
var
|
|
3045
|
-
function
|
|
3046
|
-
if (
|
|
3047
|
-
|
|
3056
|
+
var Et = {}, ur;
|
|
3057
|
+
function si() {
|
|
3058
|
+
if (ur) return Et;
|
|
3059
|
+
ur = 1, Object.defineProperty(Et, "__esModule", {
|
|
3048
3060
|
value: !0
|
|
3049
3061
|
});
|
|
3050
3062
|
var o = {
|
|
@@ -3069,15 +3081,15 @@ function hi() {
|
|
|
3069
3081
|
valid: function() {
|
|
3070
3082
|
}
|
|
3071
3083
|
};
|
|
3072
|
-
return
|
|
3084
|
+
return Et.default = o, Et;
|
|
3073
3085
|
}
|
|
3074
|
-
var
|
|
3075
|
-
function
|
|
3076
|
-
if (
|
|
3077
|
-
|
|
3086
|
+
var lr;
|
|
3087
|
+
function jo() {
|
|
3088
|
+
if (lr) return wt;
|
|
3089
|
+
lr = 1, Object.defineProperty(wt, "__esModule", {
|
|
3078
3090
|
value: !0
|
|
3079
3091
|
});
|
|
3080
|
-
var o =
|
|
3092
|
+
var o = fi(), f = a(o), l = si(), u = a(l);
|
|
3081
3093
|
function a(h) {
|
|
3082
3094
|
return h && h.__esModule ? h : { default: h };
|
|
3083
3095
|
}
|
|
@@ -3089,13 +3101,13 @@ function Ho() {
|
|
|
3089
3101
|
}
|
|
3090
3102
|
return wt.default = c, wt;
|
|
3091
3103
|
}
|
|
3092
|
-
var
|
|
3093
|
-
function
|
|
3094
|
-
if (
|
|
3095
|
-
|
|
3104
|
+
var Mt = {}, xt = {}, Q = {}, cr;
|
|
3105
|
+
function di() {
|
|
3106
|
+
if (cr) return Q;
|
|
3107
|
+
cr = 1, Object.defineProperty(Q, "__esModule", {
|
|
3096
3108
|
value: !0
|
|
3097
3109
|
}), Q.getTotalWidthOfEncodings = Q.calculateEncodingAttributes = Q.getBarcodePadding = Q.getEncodingHeight = Q.getMaximumHeightOfEncodings = void 0;
|
|
3098
|
-
var o =
|
|
3110
|
+
var o = Bt(), f = l(o);
|
|
3099
3111
|
function l(e) {
|
|
3100
3112
|
return e && e.__esModule ? e : { default: e };
|
|
3101
3113
|
}
|
|
@@ -3148,10 +3160,10 @@ function mi() {
|
|
|
3148
3160
|
}
|
|
3149
3161
|
return Q.getMaximumHeightOfEncodings = s, Q.getEncodingHeight = u, Q.getBarcodePadding = a, Q.calculateEncodingAttributes = c, Q.getTotalWidthOfEncodings = h, Q;
|
|
3150
3162
|
}
|
|
3151
|
-
var
|
|
3152
|
-
function
|
|
3153
|
-
if (
|
|
3154
|
-
|
|
3163
|
+
var fr;
|
|
3164
|
+
function Go() {
|
|
3165
|
+
if (fr) return xt;
|
|
3166
|
+
fr = 1, Object.defineProperty(xt, "__esModule", {
|
|
3155
3167
|
value: !0
|
|
3156
3168
|
});
|
|
3157
3169
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -3164,7 +3176,7 @@ function Wo() {
|
|
|
3164
3176
|
return function(i, e, t) {
|
|
3165
3177
|
return e && s(i.prototype, e), t && s(i, t), i;
|
|
3166
3178
|
};
|
|
3167
|
-
})(), f =
|
|
3179
|
+
})(), f = Bt(), l = a(f), u = di();
|
|
3168
3180
|
function a(s) {
|
|
3169
3181
|
return s && s.__esModule ? s : { default: s };
|
|
3170
3182
|
}
|
|
@@ -3231,10 +3243,10 @@ function Wo() {
|
|
|
3231
3243
|
})();
|
|
3232
3244
|
return xt.default = h, xt;
|
|
3233
3245
|
}
|
|
3234
|
-
var Ot = {},
|
|
3235
|
-
function
|
|
3236
|
-
if (
|
|
3237
|
-
|
|
3246
|
+
var Ot = {}, sr;
|
|
3247
|
+
function Ho() {
|
|
3248
|
+
if (sr) return Ot;
|
|
3249
|
+
sr = 1, Object.defineProperty(Ot, "__esModule", {
|
|
3238
3250
|
value: !0
|
|
3239
3251
|
});
|
|
3240
3252
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -3247,7 +3259,7 @@ function Xo() {
|
|
|
3247
3259
|
return function(e, t, r) {
|
|
3248
3260
|
return t && i(e.prototype, t), r && i(e, r), e;
|
|
3249
3261
|
};
|
|
3250
|
-
})(), f =
|
|
3262
|
+
})(), f = Bt(), l = a(f), u = di();
|
|
3251
3263
|
function a(i) {
|
|
3252
3264
|
return i && i.__esModule ? i : { default: i };
|
|
3253
3265
|
}
|
|
@@ -3323,10 +3335,10 @@ function Xo() {
|
|
|
3323
3335
|
})();
|
|
3324
3336
|
return Ot.default = s, Ot;
|
|
3325
3337
|
}
|
|
3326
|
-
var St = {},
|
|
3327
|
-
function
|
|
3328
|
-
if (
|
|
3329
|
-
|
|
3338
|
+
var St = {}, dr;
|
|
3339
|
+
function Wo() {
|
|
3340
|
+
if (dr) return St;
|
|
3341
|
+
dr = 1, Object.defineProperty(St, "__esModule", {
|
|
3330
3342
|
value: !0
|
|
3331
3343
|
});
|
|
3332
3344
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -3357,22 +3369,22 @@ function Yo() {
|
|
|
3357
3369
|
})();
|
|
3358
3370
|
return St.default = l, St;
|
|
3359
3371
|
}
|
|
3360
|
-
var
|
|
3361
|
-
function
|
|
3362
|
-
if (
|
|
3363
|
-
|
|
3372
|
+
var hr;
|
|
3373
|
+
function Xo() {
|
|
3374
|
+
if (hr) return Mt;
|
|
3375
|
+
hr = 1, Object.defineProperty(Mt, "__esModule", {
|
|
3364
3376
|
value: !0
|
|
3365
3377
|
});
|
|
3366
|
-
var o =
|
|
3378
|
+
var o = Go(), f = h(o), l = Ho(), u = h(l), a = Wo(), c = h(a);
|
|
3367
3379
|
function h(s) {
|
|
3368
3380
|
return s && s.__esModule ? s : { default: s };
|
|
3369
3381
|
}
|
|
3370
|
-
return
|
|
3382
|
+
return Mt.default = { CanvasRenderer: f.default, SVGRenderer: u.default, ObjectRenderer: c.default }, Mt;
|
|
3371
3383
|
}
|
|
3372
|
-
var Se = {},
|
|
3373
|
-
function
|
|
3374
|
-
if (
|
|
3375
|
-
|
|
3384
|
+
var Se = {}, mr;
|
|
3385
|
+
function hi() {
|
|
3386
|
+
if (mr) return Se;
|
|
3387
|
+
mr = 1, Object.defineProperty(Se, "__esModule", {
|
|
3376
3388
|
value: !0
|
|
3377
3389
|
});
|
|
3378
3390
|
function o(h, s) {
|
|
@@ -3416,17 +3428,17 @@ function pi() {
|
|
|
3416
3428
|
})(Error);
|
|
3417
3429
|
return Se.InvalidInputException = u, Se.InvalidElementException = a, Se.NoElementException = c, Se;
|
|
3418
3430
|
}
|
|
3419
|
-
var
|
|
3420
|
-
function
|
|
3421
|
-
if (
|
|
3422
|
-
|
|
3431
|
+
var pr;
|
|
3432
|
+
function Yo() {
|
|
3433
|
+
if (pr) return yt;
|
|
3434
|
+
pr = 1, Object.defineProperty(yt, "__esModule", {
|
|
3423
3435
|
value: !0
|
|
3424
3436
|
});
|
|
3425
3437
|
var o = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
|
|
3426
3438
|
return typeof t;
|
|
3427
3439
|
} : function(t) {
|
|
3428
3440
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
3429
|
-
}, f =
|
|
3441
|
+
}, f = jo(), l = h(f), u = Xo(), a = h(u), c = hi();
|
|
3430
3442
|
function h(t) {
|
|
3431
3443
|
return t && t.__esModule ? t : { default: t };
|
|
3432
3444
|
}
|
|
@@ -3486,10 +3498,10 @@ function Jo() {
|
|
|
3486
3498
|
}
|
|
3487
3499
|
return yt.default = s, yt;
|
|
3488
3500
|
}
|
|
3489
|
-
var Pt = {},
|
|
3490
|
-
function
|
|
3491
|
-
if (
|
|
3492
|
-
|
|
3501
|
+
var Pt = {}, gr;
|
|
3502
|
+
function Ko() {
|
|
3503
|
+
if (gr) return Pt;
|
|
3504
|
+
gr = 1, Object.defineProperty(Pt, "__esModule", {
|
|
3493
3505
|
value: !0
|
|
3494
3506
|
});
|
|
3495
3507
|
var o = /* @__PURE__ */ (function() {
|
|
@@ -3538,20 +3550,20 @@ function Qo() {
|
|
|
3538
3550
|
})();
|
|
3539
3551
|
return Pt.default = l, Pt;
|
|
3540
3552
|
}
|
|
3541
|
-
var
|
|
3542
|
-
function
|
|
3543
|
-
if (
|
|
3544
|
-
|
|
3545
|
-
var o =
|
|
3553
|
+
var zt, _r;
|
|
3554
|
+
function Jo() {
|
|
3555
|
+
if (_r) return zt;
|
|
3556
|
+
_r = 1;
|
|
3557
|
+
var o = Vo(), f = g(o), l = Bt(), u = g(l), a = Fo(), c = g(a), h = Uo(), s = g(h), i = Yo(), e = g(i), t = fi(), r = g(t), n = Ko(), d = g(n), m = hi(), p = si(), _ = g(p);
|
|
3546
3558
|
function g(y) {
|
|
3547
3559
|
return y && y.__esModule ? y : { default: y };
|
|
3548
3560
|
}
|
|
3549
3561
|
var v = function() {
|
|
3550
|
-
}, b = function(O, x,
|
|
3551
|
-
var
|
|
3562
|
+
}, b = function(O, x, M) {
|
|
3563
|
+
var E = new v();
|
|
3552
3564
|
if (typeof O > "u")
|
|
3553
3565
|
throw Error("No element to render on was provided.");
|
|
3554
|
-
return
|
|
3566
|
+
return E._renderProperties = (0, e.default)(O), E._encodings = [], E._options = _.default, E._errorHandler = new d.default(E), typeof x < "u" && (M = M || {}, M.format || (M.format = C()), E.options(M)[M.format](x, M).render()), E;
|
|
3555
3567
|
};
|
|
3556
3568
|
b.getModule = function(y) {
|
|
3557
3569
|
return f.default[y];
|
|
@@ -3559,27 +3571,27 @@ function Zo() {
|
|
|
3559
3571
|
for (var S in f.default)
|
|
3560
3572
|
f.default.hasOwnProperty(S) && N(f.default, S);
|
|
3561
3573
|
function N(y, O) {
|
|
3562
|
-
v.prototype[O] = v.prototype[O.toUpperCase()] = v.prototype[O.toLowerCase()] = function(x,
|
|
3563
|
-
var
|
|
3564
|
-
return
|
|
3565
|
-
|
|
3566
|
-
var T = (0, u.default)(
|
|
3574
|
+
v.prototype[O] = v.prototype[O.toUpperCase()] = v.prototype[O.toLowerCase()] = function(x, M) {
|
|
3575
|
+
var E = this;
|
|
3576
|
+
return E._errorHandler.wrapBarcodeCall(function() {
|
|
3577
|
+
M.text = typeof M.text > "u" ? void 0 : "" + M.text;
|
|
3578
|
+
var T = (0, u.default)(E._options, M);
|
|
3567
3579
|
T = (0, r.default)(T);
|
|
3568
3580
|
var j = y[O], ee = R(x, j, T);
|
|
3569
|
-
return
|
|
3581
|
+
return E._encodings.push(ee), E;
|
|
3570
3582
|
});
|
|
3571
3583
|
};
|
|
3572
3584
|
}
|
|
3573
3585
|
function R(y, O, x) {
|
|
3574
3586
|
y = "" + y;
|
|
3575
|
-
var
|
|
3576
|
-
if (!
|
|
3577
|
-
throw new m.InvalidInputException(
|
|
3578
|
-
var
|
|
3579
|
-
|
|
3580
|
-
for (var T = 0; T <
|
|
3581
|
-
|
|
3582
|
-
return
|
|
3587
|
+
var M = new O(y, x);
|
|
3588
|
+
if (!M.valid())
|
|
3589
|
+
throw new m.InvalidInputException(M.constructor.name, y);
|
|
3590
|
+
var E = M.encode();
|
|
3591
|
+
E = (0, c.default)(E);
|
|
3592
|
+
for (var T = 0; T < E.length; T++)
|
|
3593
|
+
E[T].options = (0, u.default)(x, E[T].options);
|
|
3594
|
+
return E;
|
|
3583
3595
|
}
|
|
3584
3596
|
function C() {
|
|
3585
3597
|
return f.default.CODE128 ? "CODE128" : Object.keys(f.default)[0];
|
|
@@ -3597,7 +3609,7 @@ function Zo() {
|
|
|
3597
3609
|
y = this._renderProperties[O];
|
|
3598
3610
|
var x = (0, u.default)(this._options, y.options);
|
|
3599
3611
|
x.format == "auto" && (x.format = C()), this._errorHandler.wrapBarcodeCall(function() {
|
|
3600
|
-
var
|
|
3612
|
+
var M = x.value, E = f.default[x.format.toUpperCase()], T = R(M, E, x);
|
|
3601
3613
|
k(y, T, x);
|
|
3602
3614
|
});
|
|
3603
3615
|
}
|
|
@@ -3614,10 +3626,10 @@ function Zo() {
|
|
|
3614
3626
|
}, v.prototype._defaults = _.default;
|
|
3615
3627
|
function k(y, O, x) {
|
|
3616
3628
|
O = (0, c.default)(O);
|
|
3617
|
-
for (var
|
|
3618
|
-
O[
|
|
3629
|
+
for (var M = 0; M < O.length; M++)
|
|
3630
|
+
O[M].options = (0, u.default)(x, O[M].options), (0, s.default)(O[M].options);
|
|
3619
3631
|
(0, s.default)(x);
|
|
3620
|
-
var
|
|
3632
|
+
var E = y.renderer, T = new E(y.element, O, x);
|
|
3621
3633
|
T.render(), y.afterRender && y.afterRender();
|
|
3622
3634
|
}
|
|
3623
3635
|
return typeof window < "u" && (window.JsBarcode = b), typeof jQuery < "u" && (jQuery.fn.JsBarcode = function(y, O) {
|
|
@@ -3625,20 +3637,20 @@ function Zo() {
|
|
|
3625
3637
|
return jQuery(this).each(function() {
|
|
3626
3638
|
x.push(this);
|
|
3627
3639
|
}), b(x, y, O);
|
|
3628
|
-
}),
|
|
3640
|
+
}), zt = b, zt;
|
|
3629
3641
|
}
|
|
3630
|
-
var
|
|
3631
|
-
const
|
|
3642
|
+
var Qo = Jo();
|
|
3643
|
+
const Zo = /* @__PURE__ */ oi(Qo), ea = ["transform"], ta = ["x", "y", "width", "height"], na = {
|
|
3632
3644
|
key: 0,
|
|
3633
3645
|
class: "barcode-svg-element__invalid"
|
|
3634
|
-
},
|
|
3646
|
+
}, ra = ["x", "y", "width", "height"], ia = ["x1", "y1", "x2", "y2"], vr = 2, oa = 10, aa = /* @__PURE__ */ V({
|
|
3635
3647
|
__name: "BarcodeSvgElement",
|
|
3636
3648
|
props: {
|
|
3637
3649
|
element: {}
|
|
3638
3650
|
},
|
|
3639
3651
|
emits: ["select"],
|
|
3640
3652
|
setup(o, { emit: f }) {
|
|
3641
|
-
const l = o, u = f, a =
|
|
3653
|
+
const l = o, u = f, a = vr * oa, c = Y(), h = Y(!1), s = q(() => {
|
|
3642
3654
|
const t = l.element.xMm + l.element.widthMm / 2, r = l.element.yMm + l.element.heightMm / 2;
|
|
3643
3655
|
return `rotate(${l.element.rotation} ${t} ${r})`;
|
|
3644
3656
|
});
|
|
@@ -3653,11 +3665,11 @@ const ta = /* @__PURE__ */ ui(ea), na = ["transform"], ra = ["x", "y", "width",
|
|
|
3653
3665
|
return;
|
|
3654
3666
|
}
|
|
3655
3667
|
try {
|
|
3656
|
-
|
|
3668
|
+
Zo(t, l.element.content, {
|
|
3657
3669
|
format: "CODE128",
|
|
3658
3670
|
displayValue: !1,
|
|
3659
3671
|
// 显式固定窄条宽度,让静区始终可以按模块数量稳定计算。
|
|
3660
|
-
width:
|
|
3672
|
+
width: vr,
|
|
3661
3673
|
margin: 0,
|
|
3662
3674
|
marginLeft: a,
|
|
3663
3675
|
marginRight: a,
|
|
@@ -3673,7 +3685,7 @@ const ta = /* @__PURE__ */ ui(ea), na = ["transform"], ra = ["x", "y", "width",
|
|
|
3673
3685
|
}
|
|
3674
3686
|
}
|
|
3675
3687
|
}
|
|
3676
|
-
return
|
|
3688
|
+
return bi(() => {
|
|
3677
3689
|
l.element.content, l.element.widthMm, l.element.heightMm, Ct(e);
|
|
3678
3690
|
}), (t, r) => (I(), $("g", {
|
|
3679
3691
|
class: "barcode-svg-element",
|
|
@@ -3688,34 +3700,34 @@ const ta = /* @__PURE__ */ ui(ea), na = ["transform"], ra = ["x", "y", "width",
|
|
|
3688
3700
|
width: o.element.widthMm,
|
|
3689
3701
|
height: o.element.heightMm,
|
|
3690
3702
|
overflow: "hidden"
|
|
3691
|
-
}, null, 8,
|
|
3692
|
-
h.value ? (I(), $("g",
|
|
3703
|
+
}, null, 8, ta)),
|
|
3704
|
+
h.value ? (I(), $("g", na, [
|
|
3693
3705
|
D("rect", {
|
|
3694
3706
|
x: o.element.xMm,
|
|
3695
3707
|
y: o.element.yMm,
|
|
3696
3708
|
width: o.element.widthMm,
|
|
3697
3709
|
height: o.element.heightMm
|
|
3698
|
-
}, null, 8,
|
|
3710
|
+
}, null, 8, ra),
|
|
3699
3711
|
D("line", {
|
|
3700
3712
|
x1: o.element.xMm,
|
|
3701
3713
|
y1: o.element.yMm,
|
|
3702
3714
|
x2: o.element.xMm + o.element.widthMm,
|
|
3703
3715
|
y2: o.element.yMm + o.element.heightMm
|
|
3704
|
-
}, null, 8,
|
|
3716
|
+
}, null, 8, ia)
|
|
3705
3717
|
])) : me("", !0)
|
|
3706
|
-
], 8,
|
|
3718
|
+
], 8, ea));
|
|
3707
3719
|
}
|
|
3708
|
-
}),
|
|
3709
|
-
var Pe = {},
|
|
3710
|
-
function
|
|
3711
|
-
return
|
|
3720
|
+
}), ua = /* @__PURE__ */ H(aa, [["__scopeId", "data-v-59e75fef"]]);
|
|
3721
|
+
var Pe = {}, $t, yr;
|
|
3722
|
+
function la() {
|
|
3723
|
+
return yr || (yr = 1, $t = function() {
|
|
3712
3724
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
3713
|
-
}),
|
|
3725
|
+
}), $t;
|
|
3714
3726
|
}
|
|
3715
|
-
var
|
|
3727
|
+
var Lt = {}, he = {}, wr;
|
|
3716
3728
|
function we() {
|
|
3717
|
-
if (
|
|
3718
|
-
|
|
3729
|
+
if (wr) return he;
|
|
3730
|
+
wr = 1;
|
|
3719
3731
|
let o;
|
|
3720
3732
|
const f = [
|
|
3721
3733
|
0,
|
|
@@ -3782,9 +3794,9 @@ function we() {
|
|
|
3782
3794
|
return o(u);
|
|
3783
3795
|
}, he;
|
|
3784
3796
|
}
|
|
3785
|
-
var
|
|
3786
|
-
function
|
|
3787
|
-
return
|
|
3797
|
+
var qt = {}, br;
|
|
3798
|
+
function mn() {
|
|
3799
|
+
return br || (br = 1, (function(o) {
|
|
3788
3800
|
o.L = { bit: 1 }, o.M = { bit: 0 }, o.Q = { bit: 3 }, o.H = { bit: 2 };
|
|
3789
3801
|
function f(l) {
|
|
3790
3802
|
if (typeof l != "string")
|
|
@@ -3817,11 +3829,11 @@ function pn() {
|
|
|
3817
3829
|
return a;
|
|
3818
3830
|
}
|
|
3819
3831
|
};
|
|
3820
|
-
})(
|
|
3832
|
+
})(qt)), qt;
|
|
3821
3833
|
}
|
|
3822
|
-
var
|
|
3823
|
-
function
|
|
3824
|
-
if (Er) return
|
|
3834
|
+
var Vt, Er;
|
|
3835
|
+
function ca() {
|
|
3836
|
+
if (Er) return Vt;
|
|
3825
3837
|
Er = 1;
|
|
3826
3838
|
function o() {
|
|
3827
3839
|
this.buffer = [], this.length = 0;
|
|
@@ -3842,12 +3854,12 @@ function sa() {
|
|
|
3842
3854
|
const l = Math.floor(this.length / 8);
|
|
3843
3855
|
this.buffer.length <= l && this.buffer.push(0), f && (this.buffer[l] |= 128 >>> this.length % 8), this.length++;
|
|
3844
3856
|
}
|
|
3845
|
-
},
|
|
3857
|
+
}, Vt = o, Vt;
|
|
3846
3858
|
}
|
|
3847
|
-
var
|
|
3848
|
-
function
|
|
3849
|
-
if (
|
|
3850
|
-
|
|
3859
|
+
var Ft, Mr;
|
|
3860
|
+
function fa() {
|
|
3861
|
+
if (Mr) return Ft;
|
|
3862
|
+
Mr = 1;
|
|
3851
3863
|
function o(f) {
|
|
3852
3864
|
if (!f || f < 1)
|
|
3853
3865
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -3862,11 +3874,11 @@ function da() {
|
|
|
3862
3874
|
this.data[f * this.size + l] ^= u;
|
|
3863
3875
|
}, o.prototype.isReserved = function(f, l) {
|
|
3864
3876
|
return this.reservedBit[f * this.size + l];
|
|
3865
|
-
},
|
|
3877
|
+
}, Ft = o, Ft;
|
|
3866
3878
|
}
|
|
3867
|
-
var
|
|
3868
|
-
function
|
|
3869
|
-
return
|
|
3879
|
+
var Ut = {}, xr;
|
|
3880
|
+
function sa() {
|
|
3881
|
+
return xr || (xr = 1, (function(o) {
|
|
3870
3882
|
const f = we().getSymbolSize;
|
|
3871
3883
|
o.getRowColCoords = function(u) {
|
|
3872
3884
|
if (u === 1) return [];
|
|
@@ -3883,14 +3895,14 @@ function ha() {
|
|
|
3883
3895
|
s === h - 1 && i === 0 || a.push([c[s], c[i]]);
|
|
3884
3896
|
return a;
|
|
3885
3897
|
};
|
|
3886
|
-
})(
|
|
3898
|
+
})(Ut)), Ut;
|
|
3887
3899
|
}
|
|
3888
|
-
var
|
|
3889
|
-
function
|
|
3890
|
-
if (
|
|
3891
|
-
|
|
3900
|
+
var jt = {}, Or;
|
|
3901
|
+
function da() {
|
|
3902
|
+
if (Or) return jt;
|
|
3903
|
+
Or = 1;
|
|
3892
3904
|
const o = we().getSymbolSize, f = 7;
|
|
3893
|
-
return
|
|
3905
|
+
return jt.getPositions = function(u) {
|
|
3894
3906
|
const a = o(u);
|
|
3895
3907
|
return [
|
|
3896
3908
|
// top-left
|
|
@@ -3900,11 +3912,11 @@ function ma() {
|
|
|
3900
3912
|
// bottom-left
|
|
3901
3913
|
[0, a - f]
|
|
3902
3914
|
];
|
|
3903
|
-
},
|
|
3915
|
+
}, jt;
|
|
3904
3916
|
}
|
|
3905
|
-
var
|
|
3906
|
-
function
|
|
3907
|
-
return
|
|
3917
|
+
var Gt = {}, Sr;
|
|
3918
|
+
function ha() {
|
|
3919
|
+
return Sr || (Sr = 1, (function(o) {
|
|
3908
3920
|
o.Patterns = {
|
|
3909
3921
|
PATTERN000: 0,
|
|
3910
3922
|
PATTERN001: 1,
|
|
@@ -3998,13 +4010,13 @@ function pa() {
|
|
|
3998
4010
|
}
|
|
3999
4011
|
return s;
|
|
4000
4012
|
};
|
|
4001
|
-
})(
|
|
4013
|
+
})(Gt)), Gt;
|
|
4002
4014
|
}
|
|
4003
|
-
var Rt = {},
|
|
4004
|
-
function
|
|
4005
|
-
if (
|
|
4006
|
-
|
|
4007
|
-
const o =
|
|
4015
|
+
var Rt = {}, Pr;
|
|
4016
|
+
function mi() {
|
|
4017
|
+
if (Pr) return Rt;
|
|
4018
|
+
Pr = 1;
|
|
4019
|
+
const o = mn(), f = [
|
|
4008
4020
|
// L M Q H
|
|
4009
4021
|
1,
|
|
4010
4022
|
1,
|
|
@@ -4357,10 +4369,10 @@ function gi() {
|
|
|
4357
4369
|
}
|
|
4358
4370
|
}, Rt;
|
|
4359
4371
|
}
|
|
4360
|
-
var
|
|
4361
|
-
function
|
|
4362
|
-
if (
|
|
4363
|
-
|
|
4372
|
+
var Ht = {}, Le = {}, Rr;
|
|
4373
|
+
function ma() {
|
|
4374
|
+
if (Rr) return Le;
|
|
4375
|
+
Rr = 1;
|
|
4364
4376
|
const o = new Uint8Array(512), f = new Uint8Array(256);
|
|
4365
4377
|
return (function() {
|
|
4366
4378
|
let u = 1;
|
|
@@ -4368,19 +4380,19 @@ function ga() {
|
|
|
4368
4380
|
o[a] = u, f[u] = a, u <<= 1, u & 256 && (u ^= 285);
|
|
4369
4381
|
for (let a = 255; a < 512; a++)
|
|
4370
4382
|
o[a] = o[a - 255];
|
|
4371
|
-
})(),
|
|
4383
|
+
})(), Le.log = function(u) {
|
|
4372
4384
|
if (u < 1) throw new Error("log(" + u + ")");
|
|
4373
4385
|
return f[u];
|
|
4374
|
-
},
|
|
4386
|
+
}, Le.exp = function(u) {
|
|
4375
4387
|
return o[u];
|
|
4376
|
-
},
|
|
4388
|
+
}, Le.mul = function(u, a) {
|
|
4377
4389
|
return u === 0 || a === 0 ? 0 : o[f[u] + f[a]];
|
|
4378
|
-
},
|
|
4390
|
+
}, Le;
|
|
4379
4391
|
}
|
|
4380
|
-
var
|
|
4381
|
-
function
|
|
4382
|
-
return
|
|
4383
|
-
const f =
|
|
4392
|
+
var Ir;
|
|
4393
|
+
function pa() {
|
|
4394
|
+
return Ir || (Ir = 1, (function(o) {
|
|
4395
|
+
const f = ma();
|
|
4384
4396
|
o.mul = function(u, a) {
|
|
4385
4397
|
const c = new Uint8Array(u.length + a.length - 1);
|
|
4386
4398
|
for (let h = 0; h < u.length; h++)
|
|
@@ -4404,13 +4416,13 @@ function _a() {
|
|
|
4404
4416
|
a = o.mul(a, new Uint8Array([1, f.exp(c)]));
|
|
4405
4417
|
return a;
|
|
4406
4418
|
};
|
|
4407
|
-
})(
|
|
4419
|
+
})(Ht)), Ht;
|
|
4408
4420
|
}
|
|
4409
|
-
var
|
|
4410
|
-
function
|
|
4411
|
-
if (
|
|
4412
|
-
|
|
4413
|
-
const o =
|
|
4421
|
+
var Wt, Tr;
|
|
4422
|
+
function ga() {
|
|
4423
|
+
if (Tr) return Wt;
|
|
4424
|
+
Tr = 1;
|
|
4425
|
+
const o = pa();
|
|
4414
4426
|
function f(l) {
|
|
4415
4427
|
this.genPoly = void 0, this.degree = l, this.degree && this.initialize(this.degree);
|
|
4416
4428
|
}
|
|
@@ -4427,18 +4439,18 @@ function va() {
|
|
|
4427
4439
|
return s.set(c, h), s;
|
|
4428
4440
|
}
|
|
4429
4441
|
return c;
|
|
4430
|
-
},
|
|
4442
|
+
}, Wt = f, Wt;
|
|
4431
4443
|
}
|
|
4432
|
-
var
|
|
4433
|
-
function
|
|
4434
|
-
return
|
|
4444
|
+
var Xt = {}, Yt = {}, Kt = {}, Cr;
|
|
4445
|
+
function pi() {
|
|
4446
|
+
return Cr || (Cr = 1, Kt.isValid = function(f) {
|
|
4435
4447
|
return !isNaN(f) && f >= 1 && f <= 40;
|
|
4436
|
-
}),
|
|
4448
|
+
}), Kt;
|
|
4437
4449
|
}
|
|
4438
|
-
var oe = {},
|
|
4439
|
-
function
|
|
4440
|
-
if (
|
|
4441
|
-
|
|
4450
|
+
var oe = {}, kr;
|
|
4451
|
+
function gi() {
|
|
4452
|
+
if (kr) return oe;
|
|
4453
|
+
kr = 1;
|
|
4442
4454
|
const o = "[0-9]+", f = "[A-Z $%*+\\-./:]+";
|
|
4443
4455
|
let l = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
4444
4456
|
l = l.replace(/u/g, "\\u");
|
|
@@ -4454,10 +4466,10 @@ function vi() {
|
|
|
4454
4466
|
return h.test(i);
|
|
4455
4467
|
}, oe;
|
|
4456
4468
|
}
|
|
4457
|
-
var
|
|
4469
|
+
var Ar;
|
|
4458
4470
|
function be() {
|
|
4459
|
-
return
|
|
4460
|
-
const f =
|
|
4471
|
+
return Ar || (Ar = 1, (function(o) {
|
|
4472
|
+
const f = pi(), l = gi();
|
|
4461
4473
|
o.NUMERIC = {
|
|
4462
4474
|
id: "Numeric",
|
|
4463
4475
|
bit: 1,
|
|
@@ -4514,12 +4526,12 @@ function be() {
|
|
|
4514
4526
|
return h;
|
|
4515
4527
|
}
|
|
4516
4528
|
};
|
|
4517
|
-
})(
|
|
4529
|
+
})(Yt)), Yt;
|
|
4518
4530
|
}
|
|
4519
|
-
var
|
|
4520
|
-
function
|
|
4521
|
-
return
|
|
4522
|
-
const f = we(), l =
|
|
4531
|
+
var Dr;
|
|
4532
|
+
function _a() {
|
|
4533
|
+
return Dr || (Dr = 1, (function(o) {
|
|
4534
|
+
const f = we(), l = mi(), u = mn(), a = be(), c = pi(), h = 7973, s = f.getBCHDigit(h);
|
|
4523
4535
|
function i(n, d, m) {
|
|
4524
4536
|
for (let p = 1; p <= 40; p++)
|
|
4525
4537
|
if (d <= o.getCapacity(p, m, n))
|
|
@@ -4580,25 +4592,25 @@ function ya() {
|
|
|
4580
4592
|
m ^= h << f.getBCHDigit(m) - s;
|
|
4581
4593
|
return d << 12 | m;
|
|
4582
4594
|
};
|
|
4583
|
-
})(
|
|
4595
|
+
})(Xt)), Xt;
|
|
4584
4596
|
}
|
|
4585
|
-
var
|
|
4586
|
-
function
|
|
4587
|
-
if (
|
|
4588
|
-
|
|
4597
|
+
var Jt = {}, Br;
|
|
4598
|
+
function va() {
|
|
4599
|
+
if (Br) return Jt;
|
|
4600
|
+
Br = 1;
|
|
4589
4601
|
const o = we(), f = 1335, l = 21522, u = o.getBCHDigit(f);
|
|
4590
|
-
return
|
|
4602
|
+
return Jt.getEncodedBits = function(c, h) {
|
|
4591
4603
|
const s = c.bit << 3 | h;
|
|
4592
4604
|
let i = s << 10;
|
|
4593
4605
|
for (; o.getBCHDigit(i) - u >= 0; )
|
|
4594
4606
|
i ^= f << o.getBCHDigit(i) - u;
|
|
4595
4607
|
return (s << 10 | i) ^ l;
|
|
4596
|
-
},
|
|
4608
|
+
}, Jt;
|
|
4597
4609
|
}
|
|
4598
|
-
var
|
|
4599
|
-
function
|
|
4600
|
-
if (
|
|
4601
|
-
|
|
4610
|
+
var Qt = {}, Zt, Nr;
|
|
4611
|
+
function ya() {
|
|
4612
|
+
if (Nr) return Zt;
|
|
4613
|
+
Nr = 1;
|
|
4602
4614
|
const o = be();
|
|
4603
4615
|
function f(l) {
|
|
4604
4616
|
this.mode = o.NUMERIC, this.data = l.toString();
|
|
@@ -4615,12 +4627,12 @@ function ba() {
|
|
|
4615
4627
|
c = this.data.substr(a, 3), h = parseInt(c, 10), u.put(h, 10);
|
|
4616
4628
|
const s = this.data.length - a;
|
|
4617
4629
|
s > 0 && (c = this.data.substr(a), h = parseInt(c, 10), u.put(h, s * 3 + 1));
|
|
4618
|
-
},
|
|
4630
|
+
}, Zt = f, Zt;
|
|
4619
4631
|
}
|
|
4620
|
-
var
|
|
4621
|
-
function
|
|
4622
|
-
if (
|
|
4623
|
-
|
|
4632
|
+
var en, zr;
|
|
4633
|
+
function wa() {
|
|
4634
|
+
if (zr) return en;
|
|
4635
|
+
zr = 1;
|
|
4624
4636
|
const o = be(), f = [
|
|
4625
4637
|
"0",
|
|
4626
4638
|
"1",
|
|
@@ -4684,12 +4696,12 @@ function Ma() {
|
|
|
4684
4696
|
h += f.indexOf(this.data[c + 1]), a.put(h, 11);
|
|
4685
4697
|
}
|
|
4686
4698
|
this.data.length % 2 && a.put(f.indexOf(this.data[c]), 6);
|
|
4687
|
-
},
|
|
4699
|
+
}, en = l, en;
|
|
4688
4700
|
}
|
|
4689
|
-
var
|
|
4690
|
-
function
|
|
4691
|
-
if (
|
|
4692
|
-
|
|
4701
|
+
var tn, $r;
|
|
4702
|
+
function ba() {
|
|
4703
|
+
if ($r) return tn;
|
|
4704
|
+
$r = 1;
|
|
4693
4705
|
const o = be();
|
|
4694
4706
|
function f(l) {
|
|
4695
4707
|
this.mode = o.BYTE, typeof l == "string" ? this.data = new TextEncoder().encode(l) : this.data = new Uint8Array(l);
|
|
@@ -4703,12 +4715,12 @@ function Ea() {
|
|
|
4703
4715
|
}, f.prototype.write = function(l) {
|
|
4704
4716
|
for (let u = 0, a = this.data.length; u < a; u++)
|
|
4705
4717
|
l.put(this.data[u], 8);
|
|
4706
|
-
},
|
|
4718
|
+
}, tn = f, tn;
|
|
4707
4719
|
}
|
|
4708
|
-
var
|
|
4709
|
-
function
|
|
4710
|
-
if (
|
|
4711
|
-
|
|
4720
|
+
var nn, Lr;
|
|
4721
|
+
function Ea() {
|
|
4722
|
+
if (Lr) return nn;
|
|
4723
|
+
Lr = 1;
|
|
4712
4724
|
const o = be(), f = we();
|
|
4713
4725
|
function l(u) {
|
|
4714
4726
|
this.mode = o.KANJI, this.data = u;
|
|
@@ -4734,11 +4746,11 @@ Make sure your charset is UTF-8`
|
|
|
4734
4746
|
);
|
|
4735
4747
|
c = (c >>> 8 & 255) * 192 + (c & 255), u.put(c, 13);
|
|
4736
4748
|
}
|
|
4737
|
-
},
|
|
4749
|
+
}, nn = l, nn;
|
|
4738
4750
|
}
|
|
4739
|
-
var
|
|
4740
|
-
function
|
|
4741
|
-
return
|
|
4751
|
+
var rn = { exports: {} }, qr;
|
|
4752
|
+
function Ma() {
|
|
4753
|
+
return qr || (qr = 1, (function(o) {
|
|
4742
4754
|
var f = {
|
|
4743
4755
|
single_source_shortest_paths: function(l, u, a) {
|
|
4744
4756
|
var c = {}, h = {};
|
|
@@ -4802,12 +4814,12 @@ function Oa() {
|
|
|
4802
4814
|
}
|
|
4803
4815
|
};
|
|
4804
4816
|
o.exports = f;
|
|
4805
|
-
})(
|
|
4817
|
+
})(rn)), rn.exports;
|
|
4806
4818
|
}
|
|
4807
|
-
var
|
|
4808
|
-
function
|
|
4809
|
-
return
|
|
4810
|
-
const f = be(), l =
|
|
4819
|
+
var Vr;
|
|
4820
|
+
function xa() {
|
|
4821
|
+
return Vr || (Vr = 1, (function(o) {
|
|
4822
|
+
const f = be(), l = ya(), u = wa(), a = ba(), c = Ea(), h = gi(), s = we(), i = Ma();
|
|
4811
4823
|
function e(g) {
|
|
4812
4824
|
return unescape(encodeURIComponent(g)).length;
|
|
4813
4825
|
}
|
|
@@ -4894,9 +4906,9 @@ function Sa() {
|
|
|
4894
4906
|
for (let y = 0; y < C.length; y++) {
|
|
4895
4907
|
const O = C[y], x = "" + R + y;
|
|
4896
4908
|
k.push(x), b[x] = { node: O, lastCount: 0 }, S[x] = {};
|
|
4897
|
-
for (let
|
|
4898
|
-
const
|
|
4899
|
-
b[
|
|
4909
|
+
for (let M = 0; M < N.length; M++) {
|
|
4910
|
+
const E = N[M];
|
|
4911
|
+
b[E] && b[E].node.mode === O.mode ? (S[E][x] = n(b[E].lastCount + O.length, O.mode) - n(b[E].lastCount, O.mode), b[E].lastCount += O.length) : (b[E] && (b[E].lastCount = O.length), S[E][x] = n(O.length, O.mode) + 4 + f.getCharCountIndicator(O.mode, v));
|
|
4900
4912
|
}
|
|
4901
4913
|
}
|
|
4902
4914
|
N = k;
|
|
@@ -4936,21 +4948,21 @@ function Sa() {
|
|
|
4936
4948
|
r(v, s.isKanjiModeEnabled())
|
|
4937
4949
|
);
|
|
4938
4950
|
};
|
|
4939
|
-
})(
|
|
4951
|
+
})(Qt)), Qt;
|
|
4940
4952
|
}
|
|
4941
|
-
var
|
|
4942
|
-
function
|
|
4943
|
-
if (
|
|
4944
|
-
|
|
4945
|
-
const o = we(), f =
|
|
4953
|
+
var Fr;
|
|
4954
|
+
function Oa() {
|
|
4955
|
+
if (Fr) return Lt;
|
|
4956
|
+
Fr = 1;
|
|
4957
|
+
const o = we(), f = mn(), l = ca(), u = fa(), a = sa(), c = da(), h = ha(), s = mi(), i = ga(), e = _a(), t = va(), r = be(), n = xa();
|
|
4946
4958
|
function d(R, C) {
|
|
4947
4959
|
const k = R.size, y = c.getPositions(C);
|
|
4948
4960
|
for (let O = 0; O < y.length; O++) {
|
|
4949
|
-
const x = y[O][0],
|
|
4950
|
-
for (let
|
|
4951
|
-
if (!(x +
|
|
4961
|
+
const x = y[O][0], M = y[O][1];
|
|
4962
|
+
for (let E = -1; E <= 7; E++)
|
|
4963
|
+
if (!(x + E <= -1 || k <= x + E))
|
|
4952
4964
|
for (let T = -1; T <= 7; T++)
|
|
4953
|
-
|
|
4965
|
+
M + T <= -1 || k <= M + T || (E >= 0 && E <= 6 && (T === 0 || T === 6) || T >= 0 && T <= 6 && (E === 0 || E === 6) || E >= 2 && E <= 4 && T >= 2 && T <= 4 ? R.set(x + E, M + T, !0, !0) : R.set(x + E, M + T, !1, !0));
|
|
4954
4966
|
}
|
|
4955
4967
|
}
|
|
4956
4968
|
function m(R) {
|
|
@@ -4964,33 +4976,33 @@ function Pa() {
|
|
|
4964
4976
|
const k = a.getPositions(C);
|
|
4965
4977
|
for (let y = 0; y < k.length; y++) {
|
|
4966
4978
|
const O = k[y][0], x = k[y][1];
|
|
4967
|
-
for (let
|
|
4968
|
-
for (let
|
|
4969
|
-
|
|
4979
|
+
for (let M = -2; M <= 2; M++)
|
|
4980
|
+
for (let E = -2; E <= 2; E++)
|
|
4981
|
+
M === -2 || M === 2 || E === -2 || E === 2 || M === 0 && E === 0 ? R.set(O + M, x + E, !0, !0) : R.set(O + M, x + E, !1, !0);
|
|
4970
4982
|
}
|
|
4971
4983
|
}
|
|
4972
4984
|
function _(R, C) {
|
|
4973
4985
|
const k = R.size, y = e.getEncodedBits(C);
|
|
4974
|
-
let O, x,
|
|
4975
|
-
for (let
|
|
4976
|
-
O = Math.floor(
|
|
4986
|
+
let O, x, M;
|
|
4987
|
+
for (let E = 0; E < 18; E++)
|
|
4988
|
+
O = Math.floor(E / 3), x = E % 3 + k - 8 - 3, M = (y >> E & 1) === 1, R.set(O, x, M, !0), R.set(x, O, M, !0);
|
|
4977
4989
|
}
|
|
4978
4990
|
function g(R, C, k) {
|
|
4979
4991
|
const y = R.size, O = t.getEncodedBits(C, k);
|
|
4980
|
-
let x,
|
|
4992
|
+
let x, M;
|
|
4981
4993
|
for (x = 0; x < 15; x++)
|
|
4982
|
-
|
|
4994
|
+
M = (O >> x & 1) === 1, x < 6 ? R.set(x, 8, M, !0) : x < 8 ? R.set(x + 1, 8, M, !0) : R.set(y - 15 + x, 8, M, !0), x < 8 ? R.set(8, y - x - 1, M, !0) : x < 9 ? R.set(8, 15 - x - 1 + 1, M, !0) : R.set(8, 15 - x - 1, M, !0);
|
|
4983
4995
|
R.set(y - 8, 8, 1, !0);
|
|
4984
4996
|
}
|
|
4985
4997
|
function v(R, C) {
|
|
4986
4998
|
const k = R.size;
|
|
4987
|
-
let y = -1, O = k - 1, x = 7,
|
|
4988
|
-
for (let
|
|
4989
|
-
for (
|
|
4999
|
+
let y = -1, O = k - 1, x = 7, M = 0;
|
|
5000
|
+
for (let E = k - 1; E > 0; E -= 2)
|
|
5001
|
+
for (E === 6 && E--; ; ) {
|
|
4990
5002
|
for (let T = 0; T < 2; T++)
|
|
4991
|
-
if (!R.isReserved(O,
|
|
5003
|
+
if (!R.isReserved(O, E - T)) {
|
|
4992
5004
|
let j = !1;
|
|
4993
|
-
|
|
5005
|
+
M < C.length && (j = (C[M] >>> x & 1) === 1), R.set(O, E - T, j), x--, x === -1 && (M++, x = 7);
|
|
4994
5006
|
}
|
|
4995
5007
|
if (O += y, O < 0 || k <= O) {
|
|
4996
5008
|
O -= y, y = -y;
|
|
@@ -5003,32 +5015,32 @@ function Pa() {
|
|
|
5003
5015
|
k.forEach(function(T) {
|
|
5004
5016
|
y.put(T.mode.bit, 4), y.put(T.getLength(), r.getCharCountIndicator(T.mode, R)), T.write(y);
|
|
5005
5017
|
});
|
|
5006
|
-
const O = o.getSymbolTotalCodewords(R), x = s.getTotalCodewordsCount(R, C),
|
|
5007
|
-
for (y.getLengthInBits() + 4 <=
|
|
5018
|
+
const O = o.getSymbolTotalCodewords(R), x = s.getTotalCodewordsCount(R, C), M = (O - x) * 8;
|
|
5019
|
+
for (y.getLengthInBits() + 4 <= M && y.put(0, 4); y.getLengthInBits() % 8 !== 0; )
|
|
5008
5020
|
y.putBit(0);
|
|
5009
|
-
const
|
|
5010
|
-
for (let T = 0; T <
|
|
5021
|
+
const E = (M - y.getLengthInBits()) / 8;
|
|
5022
|
+
for (let T = 0; T < E; T++)
|
|
5011
5023
|
y.put(T % 2 ? 17 : 236, 8);
|
|
5012
5024
|
return S(y, R, C);
|
|
5013
5025
|
}
|
|
5014
5026
|
function S(R, C, k) {
|
|
5015
|
-
const y = o.getSymbolTotalCodewords(C), O = s.getTotalCodewordsCount(C, k), x = y - O,
|
|
5027
|
+
const y = o.getSymbolTotalCodewords(C), O = s.getTotalCodewordsCount(C, k), x = y - O, M = s.getBlocksCount(C, k), E = y % M, T = M - E, j = Math.floor(y / M), ee = Math.floor(x / M), Ce = ee + 1, ge = j - ee, P = new i(ge);
|
|
5016
5028
|
let A = 0;
|
|
5017
|
-
const w = new Array(
|
|
5029
|
+
const w = new Array(M), U = new Array(M);
|
|
5018
5030
|
let ie = 0;
|
|
5019
|
-
const
|
|
5020
|
-
for (let
|
|
5021
|
-
const
|
|
5022
|
-
w[
|
|
5031
|
+
const Ee = new Uint8Array(R.buffer);
|
|
5032
|
+
for (let Me = 0; Me < M; Me++) {
|
|
5033
|
+
const Nt = Me < T ? ee : Ce;
|
|
5034
|
+
w[Me] = Ee.slice(A, A + Nt), U[Me] = P.encode(w[Me]), A += Nt, ie = Math.max(ie, Nt);
|
|
5023
5035
|
}
|
|
5024
5036
|
const le = new Uint8Array(y);
|
|
5025
|
-
let
|
|
5037
|
+
let gn = 0, ce, fe;
|
|
5026
5038
|
for (ce = 0; ce < ie; ce++)
|
|
5027
|
-
for (fe = 0; fe <
|
|
5028
|
-
ce < w[fe].length && (le[
|
|
5039
|
+
for (fe = 0; fe < M; fe++)
|
|
5040
|
+
ce < w[fe].length && (le[gn++] = w[fe][ce]);
|
|
5029
5041
|
for (ce = 0; ce < ge; ce++)
|
|
5030
|
-
for (fe = 0; fe <
|
|
5031
|
-
le[
|
|
5042
|
+
for (fe = 0; fe < M; fe++)
|
|
5043
|
+
le[gn++] = U[fe][ce];
|
|
5032
5044
|
return le;
|
|
5033
5045
|
}
|
|
5034
5046
|
function N(R, C, k, y) {
|
|
@@ -5056,8 +5068,8 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
5056
5068
|
Minimum version required to store current data is: ` + x + `.
|
|
5057
5069
|
`
|
|
5058
5070
|
);
|
|
5059
|
-
const
|
|
5060
|
-
return d(T, C), m(T), p(T, C), g(T, k, 0), C >= 7 && _(T, C), v(T,
|
|
5071
|
+
const M = b(C, k, O), E = o.getSymbolSize(C), T = new u(E);
|
|
5072
|
+
return d(T, C), m(T), p(T, C), g(T, k, 0), C >= 7 && _(T, C), v(T, M), isNaN(y) && (y = h.getBestMask(
|
|
5061
5073
|
T,
|
|
5062
5074
|
g.bind(null, T, k)
|
|
5063
5075
|
)), h.applyMask(y, T), g(T, k, y), {
|
|
@@ -5068,16 +5080,16 @@ Minimum version required to store current data is: ` + x + `.
|
|
|
5068
5080
|
segments: O
|
|
5069
5081
|
};
|
|
5070
5082
|
}
|
|
5071
|
-
return
|
|
5083
|
+
return Lt.create = function(C, k) {
|
|
5072
5084
|
if (typeof C > "u" || C === "")
|
|
5073
5085
|
throw new Error("No input text");
|
|
5074
5086
|
let y = f.M, O, x;
|
|
5075
5087
|
return typeof k < "u" && (y = f.from(k.errorCorrectionLevel, f.M), O = e.from(k.version), x = h.from(k.maskPattern), k.toSJISFunc && o.setToSJISFunction(k.toSJISFunc)), N(C, O, y, x);
|
|
5076
|
-
},
|
|
5088
|
+
}, Lt;
|
|
5077
5089
|
}
|
|
5078
|
-
var
|
|
5079
|
-
function
|
|
5080
|
-
return
|
|
5090
|
+
var on = {}, an = {}, Ur;
|
|
5091
|
+
function _i() {
|
|
5092
|
+
return Ur || (Ur = 1, (function(o) {
|
|
5081
5093
|
function f(l) {
|
|
5082
5094
|
if (typeof l == "number" && (l = l.toString()), typeof l != "string")
|
|
5083
5095
|
throw new Error("Color should be defined as hex string");
|
|
@@ -5127,12 +5139,12 @@ function yi() {
|
|
|
5127
5139
|
u[m++] = p.r, u[m++] = p.g, u[m++] = p.b, u[m] = p.a;
|
|
5128
5140
|
}
|
|
5129
5141
|
};
|
|
5130
|
-
})(
|
|
5142
|
+
})(an)), an;
|
|
5131
5143
|
}
|
|
5132
|
-
var
|
|
5133
|
-
function
|
|
5134
|
-
return
|
|
5135
|
-
const f =
|
|
5144
|
+
var jr;
|
|
5145
|
+
function Sa() {
|
|
5146
|
+
return jr || (jr = 1, (function(o) {
|
|
5147
|
+
const f = _i();
|
|
5136
5148
|
function l(a, c, h) {
|
|
5137
5149
|
a.clearRect(0, 0, c.width, c.height), c.style || (c.style = {}), c.height = h, c.width = h, c.style.height = h + "px", c.style.width = h + "px";
|
|
5138
5150
|
}
|
|
@@ -5154,13 +5166,13 @@ function Ra() {
|
|
|
5154
5166
|
const e = o.render(c, h, i), t = i.type || "image/png", r = i.rendererOpts || {};
|
|
5155
5167
|
return e.toDataURL(t, r.quality);
|
|
5156
5168
|
};
|
|
5157
|
-
})(
|
|
5169
|
+
})(on)), on;
|
|
5158
5170
|
}
|
|
5159
|
-
var
|
|
5160
|
-
function
|
|
5161
|
-
if (
|
|
5162
|
-
|
|
5163
|
-
const o =
|
|
5171
|
+
var un = {}, Gr;
|
|
5172
|
+
function Pa() {
|
|
5173
|
+
if (Gr) return un;
|
|
5174
|
+
Gr = 1;
|
|
5175
|
+
const o = _i();
|
|
5164
5176
|
function f(a, c) {
|
|
5165
5177
|
const h = a.a / 255, s = c + '="' + a.hex + '"';
|
|
5166
5178
|
return h < 1 ? s + " " + c + '-opacity="' + h.toFixed(2).slice(1) + '"' : s;
|
|
@@ -5177,17 +5189,17 @@ function Ia() {
|
|
|
5177
5189
|
}
|
|
5178
5190
|
return s;
|
|
5179
5191
|
}
|
|
5180
|
-
return
|
|
5192
|
+
return un.render = function(c, h, s) {
|
|
5181
5193
|
const i = o.getOptions(h), e = c.modules.size, t = c.modules.data, r = e + i.margin * 2, n = i.color.light.a ? "<path " + f(i.color.light, "fill") + ' d="M0 0h' + r + "v" + r + 'H0z"/>' : "", d = "<path " + f(i.color.dark, "stroke") + ' d="' + u(t, e, i.margin) + '"/>', m = 'viewBox="0 0 ' + r + " " + r + '"', _ = '<svg xmlns="http://www.w3.org/2000/svg" ' + (i.width ? 'width="' + i.width + '" height="' + i.width + '" ' : "") + m + ' shape-rendering="crispEdges">' + n + d + `</svg>
|
|
5182
5194
|
`;
|
|
5183
5195
|
return typeof s == "function" && s(null, _), _;
|
|
5184
|
-
},
|
|
5196
|
+
}, un;
|
|
5185
5197
|
}
|
|
5186
|
-
var
|
|
5187
|
-
function
|
|
5188
|
-
if (
|
|
5189
|
-
|
|
5190
|
-
const o =
|
|
5198
|
+
var Hr;
|
|
5199
|
+
function Ra() {
|
|
5200
|
+
if (Hr) return Pe;
|
|
5201
|
+
Hr = 1;
|
|
5202
|
+
const o = la(), f = Oa(), l = Sa(), u = Pa();
|
|
5191
5203
|
function a(c, h, s, i, e) {
|
|
5192
5204
|
const t = [].slice.call(arguments, 1), r = t.length, n = typeof t[r - 1] == "function";
|
|
5193
5205
|
if (!n && !o())
|
|
@@ -5219,8 +5231,8 @@ function Ta() {
|
|
|
5219
5231
|
return u.render(c, s);
|
|
5220
5232
|
}), Pe;
|
|
5221
5233
|
}
|
|
5222
|
-
var
|
|
5223
|
-
const
|
|
5234
|
+
var Ia = Ra();
|
|
5235
|
+
const Ta = /* @__PURE__ */ oi(Ia), Ca = ["transform"], ka = ["x", "y", "width", "height", "viewBox"], Aa = ["d"], ln = 2, Da = /* @__PURE__ */ V({
|
|
5224
5236
|
__name: "QrcodeSvgElement",
|
|
5225
5237
|
props: {
|
|
5226
5238
|
element: {}
|
|
@@ -5234,14 +5246,14 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5234
5246
|
if (!l.element.content)
|
|
5235
5247
|
return null;
|
|
5236
5248
|
try {
|
|
5237
|
-
return
|
|
5249
|
+
return Ta.create(l.element.content, {
|
|
5238
5250
|
errorCorrectionLevel: "M"
|
|
5239
5251
|
});
|
|
5240
5252
|
} catch {
|
|
5241
5253
|
return null;
|
|
5242
5254
|
}
|
|
5243
5255
|
}), h = q(
|
|
5244
|
-
() => (c.value?.modules.size ?? 1) +
|
|
5256
|
+
() => (c.value?.modules.size ?? 1) + ln * 2
|
|
5245
5257
|
), s = q(() => {
|
|
5246
5258
|
const i = c.value?.modules;
|
|
5247
5259
|
if (!i)
|
|
@@ -5250,7 +5262,7 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5250
5262
|
for (let t = 0; t < i.size; t += 1)
|
|
5251
5263
|
for (let r = 0; r < i.size; r += 1)
|
|
5252
5264
|
if (i.get(t, r)) {
|
|
5253
|
-
const n = r +
|
|
5265
|
+
const n = r + ln, d = t + ln;
|
|
5254
5266
|
e.push(`M${n} ${d}h1v1h-1z`);
|
|
5255
5267
|
}
|
|
5256
5268
|
return e.join("");
|
|
@@ -5278,11 +5290,11 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5278
5290
|
key: 0,
|
|
5279
5291
|
d: s.value,
|
|
5280
5292
|
fill: "#000000"
|
|
5281
|
-
}, null, 8,
|
|
5282
|
-
], 8,
|
|
5283
|
-
], 8,
|
|
5293
|
+
}, null, 8, Aa)) : me("", !0)
|
|
5294
|
+
], 8, ka))
|
|
5295
|
+
], 8, Ca));
|
|
5284
5296
|
}
|
|
5285
|
-
}),
|
|
5297
|
+
}), Ba = /* @__PURE__ */ H(Da, [["__scopeId", "data-v-5395d4f9"]]), Na = ["transform", "onClick", "onPointerdown"], za = ["x", "y", "font-size", "font-weight"], $a = ["x", "y"], La = ["transform", "onClick", "onPointerdown"], qa = ["x", "y", "width", "height", "stroke-width"], Va = ["transform", "onClick", "onPointerdown"], Fa = ["x1", "y1", "x2", "y2", "stroke-width"], Ua = ["transform", "onClick", "onPointerdown"], ja = ["x1", "y1", "x2", "y2", "stroke-width"], Ga = 25.4 / 72, Ha = /* @__PURE__ */ V({
|
|
5286
5298
|
__name: "SvgElementsRenderer",
|
|
5287
5299
|
props: {
|
|
5288
5300
|
elements: {},
|
|
@@ -5305,14 +5317,14 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5305
5317
|
return `rotate(${n.rotation} ${d} ${m})`;
|
|
5306
5318
|
}
|
|
5307
5319
|
function h(n) {
|
|
5308
|
-
return ae(n) ?
|
|
5320
|
+
return ae(n) ? ii(n, {
|
|
5309
5321
|
index: l.dataIndex,
|
|
5310
5322
|
total: l.dataTotal,
|
|
5311
5323
|
printTime: l.printTime
|
|
5312
5324
|
}).split(/\r?\n/) : [];
|
|
5313
5325
|
}
|
|
5314
5326
|
function s(n) {
|
|
5315
|
-
return ae(n) ? n.fontSizePt *
|
|
5327
|
+
return ae(n) ? n.fontSizePt * Ga : 0;
|
|
5316
5328
|
}
|
|
5317
5329
|
function i(n, d) {
|
|
5318
5330
|
if (!ae(n))
|
|
@@ -5359,9 +5371,9 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5359
5371
|
key: _,
|
|
5360
5372
|
x: e(m, p),
|
|
5361
5373
|
y: m.yMm + _ * s(m) * 1.2
|
|
5362
|
-
}, F(p || " "), 9,
|
|
5363
|
-
], 8,
|
|
5364
|
-
], 42,
|
|
5374
|
+
}, F(p || " "), 9, $a))), 128))
|
|
5375
|
+
], 8, za)
|
|
5376
|
+
], 42, Na)) : m.type === "rectangle" ? (I(), $("g", {
|
|
5365
5377
|
key: 1,
|
|
5366
5378
|
class: Re(["template-canvas__shape-element svg-elements-renderer__element", {
|
|
5367
5379
|
"svg-elements-renderer__element--interactive": o.interactive
|
|
@@ -5378,8 +5390,8 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5378
5390
|
fill: "none",
|
|
5379
5391
|
stroke: "#000000",
|
|
5380
5392
|
"stroke-width": m.strokeWidthMm
|
|
5381
|
-
}, null, 8,
|
|
5382
|
-
], 42,
|
|
5393
|
+
}, null, 8, qa)
|
|
5394
|
+
], 42, La)) : m.type === "horizontalLine" ? (I(), $("g", {
|
|
5383
5395
|
key: 2,
|
|
5384
5396
|
class: Re(["template-canvas__shape-element svg-elements-renderer__element", {
|
|
5385
5397
|
"svg-elements-renderer__element--interactive": o.interactive
|
|
@@ -5395,8 +5407,8 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5395
5407
|
y2: m.yMm + m.heightMm / 2,
|
|
5396
5408
|
stroke: "#000000",
|
|
5397
5409
|
"stroke-width": m.strokeWidthMm
|
|
5398
|
-
}, null, 8,
|
|
5399
|
-
], 42,
|
|
5410
|
+
}, null, 8, Fa)
|
|
5411
|
+
], 42, Va)) : m.type === "verticalLine" ? (I(), $("g", {
|
|
5400
5412
|
key: 3,
|
|
5401
5413
|
class: Re(["template-canvas__shape-element svg-elements-renderer__element", {
|
|
5402
5414
|
"svg-elements-renderer__element--interactive": o.interactive
|
|
@@ -5412,13 +5424,13 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5412
5424
|
y2: m.yMm + m.heightMm,
|
|
5413
5425
|
stroke: "#000000",
|
|
5414
5426
|
"stroke-width": m.strokeWidthMm
|
|
5415
|
-
}, null, 8,
|
|
5416
|
-
], 42,
|
|
5427
|
+
}, null, 8, ja)
|
|
5428
|
+
], 42, Ua)) : m.type === "qrcode" ? (I(), W(Ba, {
|
|
5417
5429
|
key: 4,
|
|
5418
5430
|
element: m,
|
|
5419
5431
|
onSelect: d[0] || (d[0] = (p) => o.interactive && u("select", p)),
|
|
5420
5432
|
onPointerdown: X((p) => r(p, m), ["stop", "prevent"])
|
|
5421
|
-
}, null, 8, ["element", "onPointerdown"])) : m.type === "barcode" ? (I(), W(
|
|
5433
|
+
}, null, 8, ["element", "onPointerdown"])) : m.type === "barcode" ? (I(), W(ua, {
|
|
5422
5434
|
key: 5,
|
|
5423
5435
|
element: m,
|
|
5424
5436
|
onSelect: d[1] || (d[1] = (p) => o.interactive && u("select", p)),
|
|
@@ -5426,7 +5438,7 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5426
5438
|
}, null, 8, ["element", "onPointerdown"])) : me("", !0)
|
|
5427
5439
|
], 64))), 128));
|
|
5428
5440
|
}
|
|
5429
|
-
}),
|
|
5441
|
+
}), pn = /* @__PURE__ */ H(Ha, [["__scopeId", "data-v-0fcbf6a7"]]), Wa = ["data-page-index", "viewBox", "width", "height"], Xa = ["width", "height"], Ya = /* @__PURE__ */ V({
|
|
5430
5442
|
__name: "PdfPagesRenderer",
|
|
5431
5443
|
props: {
|
|
5432
5444
|
widthMm: {},
|
|
@@ -5467,8 +5479,8 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5467
5479
|
width: o.widthMm,
|
|
5468
5480
|
height: o.heightMm,
|
|
5469
5481
|
fill: "#ffffff"
|
|
5470
|
-
}, null, 8,
|
|
5471
|
-
B(
|
|
5482
|
+
}, null, 8, Xa),
|
|
5483
|
+
B(pn, {
|
|
5472
5484
|
elements: o.elements,
|
|
5473
5485
|
interactive: !1,
|
|
5474
5486
|
"canvas-width-mm": o.widthMm,
|
|
@@ -5476,45 +5488,46 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5476
5488
|
"data-total": o.pageCount,
|
|
5477
5489
|
"print-time": o.printTime
|
|
5478
5490
|
}, null, 8, ["elements", "canvas-width-mm", "data-index", "data-total", "print-time"])
|
|
5479
|
-
], 8,
|
|
5491
|
+
], 8, Wa))), 128))
|
|
5480
5492
|
], 512));
|
|
5481
5493
|
}
|
|
5482
|
-
}),
|
|
5494
|
+
}), Ka = /* @__PURE__ */ H(Ya, [["__scopeId", "data-v-97c5fc68"]]), Ja = /* @__PURE__ */ V({
|
|
5483
5495
|
__name: "PrintDialog",
|
|
5484
|
-
props:
|
|
5496
|
+
props: {
|
|
5497
|
+
modelValue: { type: Boolean },
|
|
5485
5498
|
loading: { type: Boolean }
|
|
5486
|
-
},
|
|
5487
|
-
|
|
5488
|
-
modelModifiers: {}
|
|
5489
|
-
}),
|
|
5490
|
-
emits: /* @__PURE__ */ kt(["confirm"], ["update:modelValue"]),
|
|
5499
|
+
},
|
|
5500
|
+
emits: ["update:modelValue", "confirm"],
|
|
5491
5501
|
setup(o, { emit: f }) {
|
|
5492
|
-
const l =
|
|
5502
|
+
const l = o, u = f, a = q({
|
|
5503
|
+
get: () => l.modelValue,
|
|
5504
|
+
set: (t) => u("update:modelValue", t)
|
|
5505
|
+
}), { t: c } = de(), h = Y(1);
|
|
5493
5506
|
function s() {
|
|
5494
5507
|
h.value = 1;
|
|
5495
5508
|
}
|
|
5496
5509
|
function i() {
|
|
5497
|
-
|
|
5510
|
+
l.loading || (a.value = !1);
|
|
5498
5511
|
}
|
|
5499
5512
|
function e() {
|
|
5500
|
-
if (
|
|
5513
|
+
if (l.loading)
|
|
5501
5514
|
return;
|
|
5502
5515
|
const t = Math.min(
|
|
5503
5516
|
1e3,
|
|
5504
5517
|
Math.max(1, Math.trunc(h.value || 1))
|
|
5505
5518
|
);
|
|
5506
|
-
|
|
5519
|
+
u("confirm", t);
|
|
5507
5520
|
}
|
|
5508
|
-
return
|
|
5509
|
-
() =>
|
|
5521
|
+
return Ei(
|
|
5522
|
+
() => l.loading,
|
|
5510
5523
|
(t, r) => {
|
|
5511
|
-
r && !t && (
|
|
5524
|
+
r && !t && (a.value = !1);
|
|
5512
5525
|
}
|
|
5513
5526
|
), (t, r) => {
|
|
5514
|
-
const n = pe, d = ne, m =
|
|
5527
|
+
const n = pe, d = ne, m = dn, p = Ie, _ = ni;
|
|
5515
5528
|
return I(), W(_, {
|
|
5516
|
-
modelValue:
|
|
5517
|
-
"onUpdate:modelValue": r[1] || (r[1] = (g) =>
|
|
5529
|
+
modelValue: a.value,
|
|
5530
|
+
"onUpdate:modelValue": r[1] || (r[1] = (g) => a.value = g),
|
|
5518
5531
|
title: z(c)("printDesigner.print.dialogTitle"),
|
|
5519
5532
|
width: "400px",
|
|
5520
5533
|
"close-on-click-modal": !1,
|
|
@@ -5575,7 +5588,7 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5575
5588
|
}, 8, ["modelValue", "title", "close-on-press-escape"]);
|
|
5576
5589
|
};
|
|
5577
5590
|
}
|
|
5578
|
-
}),
|
|
5591
|
+
}), Qa = /* @__PURE__ */ H(Ja, [["__scopeId", "data-v-102046cc"]]), Za = { class: "preview-panel" }, eu = { class: "preview-panel__header" }, tu = { class: "preview-panel__title" }, nu = ["viewBox", "aria-label"], ru = ["width", "height"], Wr = 16, iu = /* @__PURE__ */ V({
|
|
5579
5592
|
__name: "PreviewPanel",
|
|
5580
5593
|
props: {
|
|
5581
5594
|
widthMm: {},
|
|
@@ -5585,15 +5598,15 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5585
5598
|
},
|
|
5586
5599
|
emits: ["print"],
|
|
5587
5600
|
setup(o, { emit: f }) {
|
|
5588
|
-
const l = o, u = f, { t: a } = de(), c = q(() => `0 0 ${l.widthMm} ${l.heightMm}`), h = Y(!1), s = Y(null), i =
|
|
5601
|
+
const l = o, u = f, { t: a } = de(), c = q(() => `0 0 ${l.widthMm} ${l.heightMm}`), h = Y(!1), s = Y(null), i = sn({ width: 0, height: 0 });
|
|
5589
5602
|
let e = null;
|
|
5590
5603
|
const t = q(() => {
|
|
5591
5604
|
const n = Math.max(
|
|
5592
5605
|
0,
|
|
5593
|
-
i.width -
|
|
5606
|
+
i.width - Wr
|
|
5594
5607
|
), d = Math.max(
|
|
5595
5608
|
0,
|
|
5596
|
-
i.height -
|
|
5609
|
+
i.height - Wr
|
|
5597
5610
|
);
|
|
5598
5611
|
if (n === 0 || d === 0 || l.widthMm <= 0 || l.heightMm <= 0)
|
|
5599
5612
|
return { width: "0px", height: "0px" };
|
|
@@ -5609,15 +5622,15 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5609
5622
|
function r() {
|
|
5610
5623
|
s.value && (i.width = s.value.clientWidth, i.height = s.value.clientHeight);
|
|
5611
5624
|
}
|
|
5612
|
-
return
|
|
5625
|
+
return Jr(() => {
|
|
5613
5626
|
r(), typeof ResizeObserver < "u" && s.value && (e = new ResizeObserver(r), e.observe(s.value));
|
|
5614
|
-
}),
|
|
5627
|
+
}), Mi(() => {
|
|
5615
5628
|
e?.disconnect();
|
|
5616
5629
|
}), (n, d) => {
|
|
5617
5630
|
const m = Ie;
|
|
5618
|
-
return I(), $("section",
|
|
5619
|
-
D("div",
|
|
5620
|
-
D("h2",
|
|
5631
|
+
return I(), $("section", Za, [
|
|
5632
|
+
D("div", eu, [
|
|
5633
|
+
D("h2", tu, F(z(a)("printDesigner.preview.title")), 1),
|
|
5621
5634
|
B(m, {
|
|
5622
5635
|
link: "",
|
|
5623
5636
|
type: "primary",
|
|
@@ -5627,7 +5640,7 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5627
5640
|
onClick: d[0] || (d[0] = (p) => h.value = !0)
|
|
5628
5641
|
}, {
|
|
5629
5642
|
default: L(() => [
|
|
5630
|
-
B(
|
|
5643
|
+
B(Te, {
|
|
5631
5644
|
name: "icon-dayin",
|
|
5632
5645
|
size: 16
|
|
5633
5646
|
})
|
|
@@ -5643,7 +5656,7 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5643
5656
|
(I(), $("svg", {
|
|
5644
5657
|
class: "preview-panel__canvas",
|
|
5645
5658
|
viewBox: c.value,
|
|
5646
|
-
style:
|
|
5659
|
+
style: Ve(t.value),
|
|
5647
5660
|
preserveAspectRatio: "xMidYMid meet",
|
|
5648
5661
|
"aria-label": z(a)("printDesigner.preview.title")
|
|
5649
5662
|
}, [
|
|
@@ -5655,15 +5668,15 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5655
5668
|
fill: "#ffffff",
|
|
5656
5669
|
stroke: "#9ca3af",
|
|
5657
5670
|
"stroke-width": "0.15"
|
|
5658
|
-
}, null, 8,
|
|
5659
|
-
B(
|
|
5671
|
+
}, null, 8, ru),
|
|
5672
|
+
B(pn, {
|
|
5660
5673
|
elements: o.elements,
|
|
5661
5674
|
interactive: !1,
|
|
5662
5675
|
"canvas-width-mm": o.widthMm
|
|
5663
5676
|
}, null, 8, ["elements", "canvas-width-mm"])
|
|
5664
|
-
], 12,
|
|
5677
|
+
], 12, nu))
|
|
5665
5678
|
], 512),
|
|
5666
|
-
B(
|
|
5679
|
+
B(Qa, {
|
|
5667
5680
|
modelValue: h.value,
|
|
5668
5681
|
"onUpdate:modelValue": d[1] || (d[1] = (p) => h.value = p),
|
|
5669
5682
|
loading: o.printing,
|
|
@@ -5672,8 +5685,8 @@ const ka = /* @__PURE__ */ ui(Ca), Aa = ["transform"], Da = ["x", "y", "width",
|
|
|
5672
5685
|
]);
|
|
5673
5686
|
};
|
|
5674
5687
|
}
|
|
5675
|
-
}),
|
|
5676
|
-
function
|
|
5688
|
+
}), ou = /* @__PURE__ */ H(iu, [["__scopeId", "data-v-478bdf88"]]), Xr = 0.5, au = 6, uu = 200;
|
|
5689
|
+
function Yr(o) {
|
|
5677
5690
|
const f = {
|
|
5678
5691
|
xMm: o.xMm,
|
|
5679
5692
|
yMm: o.yMm,
|
|
@@ -5683,7 +5696,7 @@ function Kr(o) {
|
|
|
5683
5696
|
};
|
|
5684
5697
|
return ae(o) && (f.fontSizePt = o.fontSizePt), f;
|
|
5685
5698
|
}
|
|
5686
|
-
function
|
|
5699
|
+
function cn(o, f, l) {
|
|
5687
5700
|
const u = o.getScreenCTM();
|
|
5688
5701
|
if (!u)
|
|
5689
5702
|
return null;
|
|
@@ -5695,7 +5708,7 @@ function fn(o, f, l) {
|
|
|
5695
5708
|
y: c.y
|
|
5696
5709
|
};
|
|
5697
5710
|
}
|
|
5698
|
-
function
|
|
5711
|
+
function vi(o) {
|
|
5699
5712
|
const f = o.xMm + o.widthMm / 2, l = o.yMm + o.heightMm / 2, u = o.rotation * Math.PI / 180, a = Math.cos(u), c = Math.sin(u), h = [
|
|
5700
5713
|
{ x: o.xMm, y: o.yMm },
|
|
5701
5714
|
{ x: o.xMm + o.widthMm, y: o.yMm },
|
|
@@ -5718,8 +5731,8 @@ function wi(o) {
|
|
|
5718
5731
|
bottom: Math.max(...h.map((s) => s.y))
|
|
5719
5732
|
};
|
|
5720
5733
|
}
|
|
5721
|
-
function
|
|
5722
|
-
const c =
|
|
5734
|
+
function lu(o, f, l, u, a) {
|
|
5735
|
+
const c = vi(o), h = l.x - f.x, s = l.y - f.y, i = Math.min(
|
|
5723
5736
|
u - c.right,
|
|
5724
5737
|
Math.max(-c.left, h)
|
|
5725
5738
|
), e = Math.min(
|
|
@@ -5733,22 +5746,22 @@ function fu(o, f, l, u, a) {
|
|
|
5733
5746
|
heightMm: o.heightMm
|
|
5734
5747
|
};
|
|
5735
5748
|
}
|
|
5736
|
-
function
|
|
5749
|
+
function cu(o) {
|
|
5737
5750
|
const f = o.includes("Left") || o === "left" ? -1 : o.includes("Right") || o === "right" ? 1 : 0, l = o.startsWith("top") ? -1 : o.startsWith("bottom") ? 1 : 0;
|
|
5738
5751
|
return { horizontal: f, vertical: l };
|
|
5739
5752
|
}
|
|
5740
|
-
function
|
|
5741
|
-
const u =
|
|
5753
|
+
function fu(o, f, l) {
|
|
5754
|
+
const u = vi(o), a = 1e-4;
|
|
5742
5755
|
return u.left >= -a && u.top >= -a && u.right <= f + a && u.bottom <= l + a;
|
|
5743
5756
|
}
|
|
5744
|
-
function
|
|
5745
|
-
const { horizontal: s, vertical: i } =
|
|
5757
|
+
function su(o, f, l, u, a, c, h) {
|
|
5758
|
+
const { horizontal: s, vertical: i } = cu(l), e = f.rotation * Math.PI / 180, t = Math.cos(e), r = Math.sin(e), n = a.x - u.x, d = a.y - u.y, m = n * t + d * r, p = -n * r + d * t, _ = Tt(
|
|
5746
5759
|
o.type,
|
|
5747
5760
|
"width"
|
|
5748
|
-
)?.min ??
|
|
5761
|
+
)?.min ?? Xr, g = Tt(
|
|
5749
5762
|
o.type,
|
|
5750
5763
|
"height"
|
|
5751
|
-
)?.min ??
|
|
5764
|
+
)?.min ?? Xr;
|
|
5752
5765
|
let v = s === 0 ? f.widthMm : Math.max(
|
|
5753
5766
|
_,
|
|
5754
5767
|
f.widthMm + s * m
|
|
@@ -5761,30 +5774,30 @@ function hu(o, f, l, u, a, c, h) {
|
|
|
5761
5774
|
v = j, b = j;
|
|
5762
5775
|
}
|
|
5763
5776
|
if (ae(o) && f.fontSizePt !== void 0) {
|
|
5764
|
-
const j = v / f.widthMm, ee = b / f.heightMm,
|
|
5777
|
+
const j = v / f.widthMm, ee = b / f.heightMm, Ce = s !== 0 && i !== 0 ? (j + ee) / 2 : s !== 0 ? j : ee, ge = Tt(o.type, "fontSize"), P = ge?.min ?? au, A = ge?.max ?? uu, w = Math.min(
|
|
5765
5778
|
A / f.fontSizePt,
|
|
5766
|
-
Math.max(P / f.fontSizePt,
|
|
5779
|
+
Math.max(P / f.fontSizePt, Ce)
|
|
5767
5780
|
);
|
|
5768
5781
|
v = f.widthMm * w, b = f.heightMm * w, S = f.fontSizePt * w;
|
|
5769
5782
|
}
|
|
5770
|
-
const N = v - f.widthMm, R = b - f.heightMm, C = s * N / 2, k = i * R / 2, y = f.xMm + f.widthMm / 2, O = f.yMm + f.heightMm / 2, x = y + C * t - k * r,
|
|
5783
|
+
const N = v - f.widthMm, R = b - f.heightMm, C = s * N / 2, k = i * R / 2, y = f.xMm + f.widthMm / 2, O = f.yMm + f.heightMm / 2, x = y + C * t - k * r, M = O + C * r + k * t, E = {
|
|
5771
5784
|
xMm: x - v / 2,
|
|
5772
|
-
yMm:
|
|
5785
|
+
yMm: M - b / 2,
|
|
5773
5786
|
widthMm: v,
|
|
5774
5787
|
heightMm: b,
|
|
5775
5788
|
rotation: f.rotation
|
|
5776
5789
|
};
|
|
5777
|
-
if (S !== void 0 && (
|
|
5790
|
+
if (S !== void 0 && (E.fontSizePt = S), !fu(E, c, h))
|
|
5778
5791
|
return null;
|
|
5779
5792
|
const T = {
|
|
5780
|
-
xMm:
|
|
5781
|
-
yMm:
|
|
5782
|
-
widthMm:
|
|
5783
|
-
heightMm:
|
|
5793
|
+
xMm: E.xMm,
|
|
5794
|
+
yMm: E.yMm,
|
|
5795
|
+
widthMm: E.widthMm,
|
|
5796
|
+
heightMm: E.heightMm
|
|
5784
5797
|
};
|
|
5785
5798
|
return S !== void 0 && (T.fontSizePt = S), T;
|
|
5786
5799
|
}
|
|
5787
|
-
const
|
|
5800
|
+
const du = ["transform"], hu = ["x", "y", "width", "height"], mu = ["cx", "cy", "onPointerdown"], pu = 0.45, gu = /* @__PURE__ */ V({
|
|
5788
5801
|
__name: "SvgSelectionBox",
|
|
5789
5802
|
props: {
|
|
5790
5803
|
element: {}
|
|
@@ -5831,21 +5844,21 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
5831
5844
|
y: o.element.yMm,
|
|
5832
5845
|
width: o.element.widthMm,
|
|
5833
5846
|
height: o.element.heightMm
|
|
5834
|
-
}, null, 8,
|
|
5847
|
+
}, null, 8, hu),
|
|
5835
5848
|
(I(!0), $(ue, null, ye(c.value, (i, e) => (I(), $("circle", {
|
|
5836
5849
|
key: e,
|
|
5837
5850
|
class: "svg-selection-box__handle",
|
|
5838
5851
|
cx: i.x,
|
|
5839
5852
|
cy: i.y,
|
|
5840
|
-
r:
|
|
5841
|
-
style:
|
|
5853
|
+
r: pu,
|
|
5854
|
+
style: Ve({ cursor: i.cursor }),
|
|
5842
5855
|
onPointerdown: X((t) => u("resize-start", t, i.handle), ["stop", "prevent"]),
|
|
5843
5856
|
onClick: s[0] || (s[0] = X(() => {
|
|
5844
5857
|
}, ["stop"]))
|
|
5845
|
-
}, null, 44,
|
|
5846
|
-
], 8,
|
|
5858
|
+
}, null, 44, mu))), 128))
|
|
5859
|
+
], 8, du));
|
|
5847
5860
|
}
|
|
5848
|
-
}),
|
|
5861
|
+
}), _u = /* @__PURE__ */ H(gu, [["__scopeId", "data-v-d47e6575"]]), vu = ["viewBox", "data-width-mm", "data-height-mm"], Kr = 96 / 25.4, yu = /* @__PURE__ */ V({
|
|
5849
5862
|
__name: "TemplateCanvas",
|
|
5850
5863
|
props: {
|
|
5851
5864
|
widthMm: {},
|
|
@@ -5861,8 +5874,8 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
5861
5874
|
const l = o, u = f, a = Y(), c = Y(null);
|
|
5862
5875
|
let h = !1;
|
|
5863
5876
|
const s = q(() => ({
|
|
5864
|
-
width: `${l.widthMm *
|
|
5865
|
-
height: `${l.heightMm *
|
|
5877
|
+
width: `${l.widthMm * Kr * l.zoomPercent / 100}px`,
|
|
5878
|
+
height: `${l.heightMm * Kr * l.zoomPercent / 100}px`
|
|
5866
5879
|
})), i = q(
|
|
5867
5880
|
// 以毫米作为内部坐标系,未来保存元素位置时无需反复换算像素。
|
|
5868
5881
|
() => `0 0 ${l.widthMm} ${l.heightMm}`
|
|
@@ -5877,7 +5890,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
5877
5890
|
function r(g, v) {
|
|
5878
5891
|
if (g.button !== 0 || !a.value)
|
|
5879
5892
|
return;
|
|
5880
|
-
const b =
|
|
5893
|
+
const b = cn(
|
|
5881
5894
|
a.value,
|
|
5882
5895
|
g.clientX,
|
|
5883
5896
|
g.clientY
|
|
@@ -5887,13 +5900,13 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
5887
5900
|
pointerId: g.pointerId,
|
|
5888
5901
|
elementId: v.id,
|
|
5889
5902
|
startPointer: b,
|
|
5890
|
-
startGeometry:
|
|
5903
|
+
startGeometry: Yr(v)
|
|
5891
5904
|
}, a.value.setPointerCapture(g.pointerId));
|
|
5892
5905
|
}
|
|
5893
5906
|
function n(g, v, b) {
|
|
5894
5907
|
if (g.button !== 0 || !a.value)
|
|
5895
5908
|
return;
|
|
5896
|
-
const S =
|
|
5909
|
+
const S = cn(
|
|
5897
5910
|
a.value,
|
|
5898
5911
|
g.clientX,
|
|
5899
5912
|
g.clientY
|
|
@@ -5903,7 +5916,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
5903
5916
|
pointerId: g.pointerId,
|
|
5904
5917
|
elementId: v.id,
|
|
5905
5918
|
startPointer: S,
|
|
5906
|
-
startGeometry:
|
|
5919
|
+
startGeometry: Yr(v),
|
|
5907
5920
|
handle: b
|
|
5908
5921
|
}, a.value.setPointerCapture(g.pointerId));
|
|
5909
5922
|
}
|
|
@@ -5914,7 +5927,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
5914
5927
|
const v = c.value, b = a.value;
|
|
5915
5928
|
if (!v || v.pointerId !== g.pointerId || !b)
|
|
5916
5929
|
return;
|
|
5917
|
-
const S =
|
|
5930
|
+
const S = cn(
|
|
5918
5931
|
b,
|
|
5919
5932
|
g.clientX,
|
|
5920
5933
|
g.clientY
|
|
@@ -5923,13 +5936,13 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
5923
5936
|
);
|
|
5924
5937
|
if (!S || !N)
|
|
5925
5938
|
return;
|
|
5926
|
-
const R = v.type === "move" ?
|
|
5939
|
+
const R = v.type === "move" ? lu(
|
|
5927
5940
|
v.startGeometry,
|
|
5928
5941
|
v.startPointer,
|
|
5929
5942
|
S,
|
|
5930
5943
|
l.widthMm,
|
|
5931
5944
|
l.heightMm
|
|
5932
|
-
) :
|
|
5945
|
+
) : su(
|
|
5933
5946
|
N,
|
|
5934
5947
|
v.startGeometry,
|
|
5935
5948
|
v.handle,
|
|
@@ -5954,13 +5967,13 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
5954
5967
|
}
|
|
5955
5968
|
return (g, v) => (I(), $("div", {
|
|
5956
5969
|
class: Re(["template-canvas-stage", { "template-canvas-stage--grid": o.showGrid }]),
|
|
5957
|
-
style:
|
|
5970
|
+
style: Ve(e.value)
|
|
5958
5971
|
}, [
|
|
5959
5972
|
(I(), $("svg", {
|
|
5960
5973
|
ref_key: "svgRef",
|
|
5961
5974
|
ref: a,
|
|
5962
5975
|
class: "template-canvas",
|
|
5963
|
-
style:
|
|
5976
|
+
style: Ve(s.value),
|
|
5964
5977
|
viewBox: i.value,
|
|
5965
5978
|
"data-width-mm": o.widthMm,
|
|
5966
5979
|
"data-height-mm": o.heightMm,
|
|
@@ -5969,36 +5982,37 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
5969
5982
|
onPointerup: p,
|
|
5970
5983
|
onPointercancel: p
|
|
5971
5984
|
}, [
|
|
5972
|
-
B(
|
|
5985
|
+
B(pn, {
|
|
5973
5986
|
elements: o.elements,
|
|
5974
5987
|
"canvas-width-mm": o.widthMm,
|
|
5975
5988
|
onSelect: v[0] || (v[0] = (b) => u("select", b)),
|
|
5976
5989
|
onMoveStart: r
|
|
5977
5990
|
}, null, 8, ["elements", "canvas-width-mm"]),
|
|
5978
|
-
t.value ? (I(), W(
|
|
5991
|
+
t.value ? (I(), W(_u, {
|
|
5979
5992
|
key: 0,
|
|
5980
5993
|
element: t.value,
|
|
5981
5994
|
onResizeStart: v[1] || (v[1] = (b, S) => d(b, S))
|
|
5982
5995
|
}, null, 8, ["element"])) : me("", !0)
|
|
5983
|
-
], 44,
|
|
5996
|
+
], 44, vu)),
|
|
5984
5997
|
D("div", {
|
|
5985
5998
|
class: "template-canvas-outline",
|
|
5986
|
-
style:
|
|
5999
|
+
style: Ve(s.value),
|
|
5987
6000
|
"aria-hidden": "true"
|
|
5988
6001
|
}, null, 4)
|
|
5989
6002
|
], 6));
|
|
5990
6003
|
}
|
|
5991
|
-
}),
|
|
6004
|
+
}), wu = /* @__PURE__ */ H(yu, [["__scopeId", "data-v-1cb1d648"]]), bu = { class: "template-info-dialog__size-field" }, Eu = /* @__PURE__ */ V({
|
|
5992
6005
|
__name: "TemplateInfoDialog",
|
|
5993
|
-
props:
|
|
6006
|
+
props: {
|
|
6007
|
+
modelValue: { type: Boolean },
|
|
5994
6008
|
templateInfo: {}
|
|
5995
|
-
},
|
|
5996
|
-
|
|
5997
|
-
modelModifiers: {}
|
|
5998
|
-
}),
|
|
5999
|
-
emits: /* @__PURE__ */ kt(["confirm"], ["update:modelValue"]),
|
|
6009
|
+
},
|
|
6010
|
+
emits: ["update:modelValue", "confirm"],
|
|
6000
6011
|
setup(o, { emit: f }) {
|
|
6001
|
-
const l = o, u = f, a =
|
|
6012
|
+
const l = o, u = f, a = q({
|
|
6013
|
+
get: () => l.modelValue,
|
|
6014
|
+
set: (d) => u("update:modelValue", d)
|
|
6015
|
+
}), { t: c } = de(), h = Y(), s = sn({
|
|
6002
6016
|
// 初始值只是安全默认值,每次打开弹框都会由 props 重新覆盖。
|
|
6003
6017
|
name: "",
|
|
6004
6018
|
size: {
|
|
@@ -6052,7 +6066,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6052
6066
|
}), r());
|
|
6053
6067
|
}
|
|
6054
6068
|
return (d, m) => {
|
|
6055
|
-
const p =
|
|
6069
|
+
const p = Qr, _ = ne, g = pe, v = dn, b = Ie, S = ni;
|
|
6056
6070
|
return I(), W(S, {
|
|
6057
6071
|
modelValue: a.value,
|
|
6058
6072
|
"onUpdate:modelValue": m[3] || (m[3] = (N) => a.value = N),
|
|
@@ -6108,7 +6122,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6108
6122
|
prop: "size"
|
|
6109
6123
|
}, {
|
|
6110
6124
|
default: L(() => [
|
|
6111
|
-
D("div",
|
|
6125
|
+
D("div", bu, [
|
|
6112
6126
|
B(g, {
|
|
6113
6127
|
modelValue: s.size.widthMm,
|
|
6114
6128
|
"onUpdate:modelValue": m[1] || (m[1] = (N) => s.size.widthMm = N),
|
|
@@ -6146,7 +6160,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6146
6160
|
}, 8, ["modelValue", "title"]);
|
|
6147
6161
|
};
|
|
6148
6162
|
}
|
|
6149
|
-
}),
|
|
6163
|
+
}), Mu = /* @__PURE__ */ H(Eu, [["__scopeId", "data-v-422c0ea1"]]), xu = { class: "template-info" }, Ou = { class: "template-info__header" }, Su = { class: "template-info__title" }, Pu = { class: "template-info__details" }, Ru = { class: "template-info__row" }, Iu = ["title"], Tu = { class: "template-info__row" }, Cu = /* @__PURE__ */ V({
|
|
6150
6164
|
__name: "TemplateInfoPanel",
|
|
6151
6165
|
props: {
|
|
6152
6166
|
templateName: {},
|
|
@@ -6169,16 +6183,16 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6169
6183
|
return (e, t) => {
|
|
6170
6184
|
const r = Ie;
|
|
6171
6185
|
return I(), $(ue, null, [
|
|
6172
|
-
D("section",
|
|
6173
|
-
D("header",
|
|
6174
|
-
D("h2",
|
|
6186
|
+
D("section", xu, [
|
|
6187
|
+
D("header", Ou, [
|
|
6188
|
+
D("h2", Su, F(z(a)("printDesigner.templateInfo.title")), 1),
|
|
6175
6189
|
B(r, {
|
|
6176
6190
|
link: "",
|
|
6177
6191
|
type: "primary",
|
|
6178
6192
|
onClick: s
|
|
6179
6193
|
}, {
|
|
6180
6194
|
default: L(() => [
|
|
6181
|
-
B(
|
|
6195
|
+
B(Te, {
|
|
6182
6196
|
name: "icon-bianji",
|
|
6183
6197
|
size: 16
|
|
6184
6198
|
})
|
|
@@ -6186,18 +6200,18 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6186
6200
|
_: 1
|
|
6187
6201
|
})
|
|
6188
6202
|
]),
|
|
6189
|
-
D("dl",
|
|
6190
|
-
D("div",
|
|
6203
|
+
D("dl", Pu, [
|
|
6204
|
+
D("div", Ru, [
|
|
6191
6205
|
D("dt", null, F(z(a)("printDesigner.templateInfo.name")), 1),
|
|
6192
|
-
D("dd", { title: o.templateName }, F(o.templateName), 9,
|
|
6206
|
+
D("dd", { title: o.templateName }, F(o.templateName), 9, Iu)
|
|
6193
6207
|
]),
|
|
6194
|
-
D("div",
|
|
6208
|
+
D("div", Tu, [
|
|
6195
6209
|
D("dt", null, F(z(a)("printDesigner.templateInfo.size")), 1),
|
|
6196
6210
|
D("dd", null, F(o.widthMm) + " × " + F(o.heightMm) + " mm", 1)
|
|
6197
6211
|
])
|
|
6198
6212
|
])
|
|
6199
6213
|
]),
|
|
6200
|
-
B(
|
|
6214
|
+
B(Mu, {
|
|
6201
6215
|
modelValue: c.value,
|
|
6202
6216
|
"onUpdate:modelValue": t[0] || (t[0] = (n) => c.value = n),
|
|
6203
6217
|
"template-info": h.value,
|
|
@@ -6206,7 +6220,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6206
6220
|
], 64);
|
|
6207
6221
|
};
|
|
6208
6222
|
}
|
|
6209
|
-
}),
|
|
6223
|
+
}), ku = /* @__PURE__ */ H(Cu, [["__scopeId", "data-v-db031899"]]), Au = { class: "workspace-toolbar" }, Du = { class: "workspace-toolbar__grid-spacing" }, Bu = { class: "workspace-toolbar__zoom" }, Nu = { class: "workspace-toolbar__zoom-label" }, zu = { class: "workspace-toolbar__zoom-value" }, qe = 20, It = 500, fn = 10, $u = 1, Lu = 200, qu = /* @__PURE__ */ V({
|
|
6210
6224
|
__name: "WorkspaceToolbar",
|
|
6211
6225
|
props: {
|
|
6212
6226
|
showGrid: { type: Boolean },
|
|
@@ -6226,24 +6240,24 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6226
6240
|
r !== void 0 && u(
|
|
6227
6241
|
"update:zoomPercent",
|
|
6228
6242
|
// 手动输入最终规范为整数,并限制在工具栏支持的缩放范围内。
|
|
6229
|
-
Math.min(It, Math.max(
|
|
6243
|
+
Math.min(It, Math.max(qe, Math.round(r)))
|
|
6230
6244
|
);
|
|
6231
6245
|
}
|
|
6232
6246
|
function i() {
|
|
6233
6247
|
u(
|
|
6234
6248
|
"update:zoomPercent",
|
|
6235
|
-
Math.max(
|
|
6249
|
+
Math.max(qe, l.zoomPercent - fn)
|
|
6236
6250
|
);
|
|
6237
6251
|
}
|
|
6238
6252
|
function e() {
|
|
6239
6253
|
u(
|
|
6240
6254
|
"update:zoomPercent",
|
|
6241
|
-
Math.min(It, l.zoomPercent +
|
|
6255
|
+
Math.min(It, l.zoomPercent + fn)
|
|
6242
6256
|
);
|
|
6243
6257
|
}
|
|
6244
6258
|
async function t() {
|
|
6245
6259
|
try {
|
|
6246
|
-
await
|
|
6260
|
+
await xi.confirm(
|
|
6247
6261
|
a("printDesigner.toolbar.resetConfirm"),
|
|
6248
6262
|
a("printDesigner.toolbar.resetTitle"),
|
|
6249
6263
|
{
|
|
@@ -6261,8 +6275,8 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6261
6275
|
}
|
|
6262
6276
|
}
|
|
6263
6277
|
return (r, n) => {
|
|
6264
|
-
const d =
|
|
6265
|
-
return I(), $("div",
|
|
6278
|
+
const d = ti, m = pe, p = Ri, _ = Ie;
|
|
6279
|
+
return I(), $("div", Au, [
|
|
6266
6280
|
B(d, {
|
|
6267
6281
|
"model-value": o.showGrid,
|
|
6268
6282
|
onChange: c
|
|
@@ -6272,13 +6286,13 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6272
6286
|
]),
|
|
6273
6287
|
_: 1
|
|
6274
6288
|
}, 8, ["model-value"]),
|
|
6275
|
-
D("div",
|
|
6289
|
+
D("div", Du, [
|
|
6276
6290
|
D("span", null, F(z(a)("printDesigner.toolbar.gridSpacing")), 1),
|
|
6277
6291
|
B(m, {
|
|
6278
6292
|
class: "workspace-toolbar__grid-spacing-input",
|
|
6279
6293
|
"model-value": o.gridSpacing,
|
|
6280
|
-
min:
|
|
6281
|
-
max:
|
|
6294
|
+
min: $u,
|
|
6295
|
+
max: Lu,
|
|
6282
6296
|
step: 1,
|
|
6283
6297
|
precision: 0,
|
|
6284
6298
|
disabled: !o.showGrid,
|
|
@@ -6291,11 +6305,11 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6291
6305
|
class: "workspace-toolbar__divider",
|
|
6292
6306
|
direction: "vertical"
|
|
6293
6307
|
}),
|
|
6294
|
-
D("div",
|
|
6295
|
-
D("span",
|
|
6308
|
+
D("div", Bu, [
|
|
6309
|
+
D("span", Nu, F(z(a)("printDesigner.toolbar.zoom")), 1),
|
|
6296
6310
|
B(_, {
|
|
6297
6311
|
class: "workspace-toolbar__zoom-button",
|
|
6298
|
-
disabled: o.zoomPercent <=
|
|
6312
|
+
disabled: o.zoomPercent <= qe,
|
|
6299
6313
|
title: z(a)("printDesigner.toolbar.zoomOut"),
|
|
6300
6314
|
"aria-label": z(a)("printDesigner.toolbar.zoomOut"),
|
|
6301
6315
|
onClick: i
|
|
@@ -6305,16 +6319,16 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6305
6319
|
])]),
|
|
6306
6320
|
_: 1
|
|
6307
6321
|
}, 8, ["disabled", "title", "aria-label"]),
|
|
6308
|
-
D("div",
|
|
6322
|
+
D("div", zu, [
|
|
6309
6323
|
B(m, {
|
|
6310
6324
|
class: "workspace-toolbar__zoom-input",
|
|
6311
6325
|
"model-value": o.zoomPercent,
|
|
6312
|
-
min:
|
|
6326
|
+
min: qe,
|
|
6313
6327
|
max: It,
|
|
6314
|
-
step:
|
|
6328
|
+
step: fn,
|
|
6315
6329
|
precision: 0,
|
|
6316
6330
|
controls: !1,
|
|
6317
|
-
"value-on-clear":
|
|
6331
|
+
"value-on-clear": qe,
|
|
6318
6332
|
"aria-label": z(a)("printDesigner.toolbar.zoom"),
|
|
6319
6333
|
onChange: s
|
|
6320
6334
|
}, null, 8, ["model-value", "aria-label"]),
|
|
@@ -6342,7 +6356,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6342
6356
|
onClick: t
|
|
6343
6357
|
}, {
|
|
6344
6358
|
default: L(() => [
|
|
6345
|
-
B(
|
|
6359
|
+
B(Te, {
|
|
6346
6360
|
name: "icon-zhongzhi",
|
|
6347
6361
|
size: 16
|
|
6348
6362
|
})
|
|
@@ -6352,12 +6366,12 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6352
6366
|
]);
|
|
6353
6367
|
};
|
|
6354
6368
|
}
|
|
6355
|
-
}),
|
|
6369
|
+
}), Vu = /* @__PURE__ */ H(qu, [["__scopeId", "data-v-8bf3559b"]]), Fu = { class: "print-designer-layout" }, Uu = { class: "print-designer-layout__left" }, ju = { class: "print-designer-layout__workspace" }, Gu = { class: "print-designer-layout__workspace-viewport" }, Hu = { class: "print-designer-layout__element-list-anchor" }, Wu = { class: "print-designer-layout__right" }, Xu = { class: "print-designer-layout__properties" }, Yu = 25.4 / 72, Ku = /* @__PURE__ */ V({
|
|
6356
6370
|
__name: "PrintDesigner",
|
|
6357
6371
|
setup(o) {
|
|
6358
6372
|
const { t: f } = de();
|
|
6359
6373
|
let l = 0;
|
|
6360
|
-
const u =
|
|
6374
|
+
const u = sn({
|
|
6361
6375
|
// 新建模板的默认值;尺寸单位始终是毫米。
|
|
6362
6376
|
name: f("printDesigner.templateInfo.defaultName"),
|
|
6363
6377
|
widthMm: 50,
|
|
@@ -6367,7 +6381,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6367
6381
|
(P) => P.id === i.value
|
|
6368
6382
|
) ?? null
|
|
6369
6383
|
), n = q(
|
|
6370
|
-
() => r.value ?
|
|
6384
|
+
() => r.value ? hn(r.value.type)?.properties ?? [] : []
|
|
6371
6385
|
);
|
|
6372
6386
|
function d(P) {
|
|
6373
6387
|
Object.assign(u, P);
|
|
@@ -6379,19 +6393,19 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6379
6393
|
return P.xMm = Math.max(0, (u.widthMm - P.widthMm) / 2), P.yMm = Math.max(0, (u.heightMm - P.heightMm) / 2), P;
|
|
6380
6394
|
}
|
|
6381
6395
|
function _(P) {
|
|
6382
|
-
return
|
|
6396
|
+
return ii(P, {
|
|
6383
6397
|
index: 0,
|
|
6384
6398
|
total: 1,
|
|
6385
6399
|
printTime: /* @__PURE__ */ new Date()
|
|
6386
6400
|
});
|
|
6387
6401
|
}
|
|
6388
6402
|
function g(P) {
|
|
6389
|
-
const A = _(P).split(/\r?\n/), w = P.fontSizePt *
|
|
6403
|
+
const A = _(P).split(/\r?\n/), w = P.fontSizePt * Yu;
|
|
6390
6404
|
let U = 0;
|
|
6391
6405
|
if (typeof document < "u") {
|
|
6392
|
-
const
|
|
6393
|
-
|
|
6394
|
-
...A.map((le) =>
|
|
6406
|
+
const Ee = document.createElement("canvas").getContext("2d");
|
|
6407
|
+
Ee && (Ee.font = `${P.fontWeight} ${P.fontSizePt}pt sans-serif`, U = Math.max(
|
|
6408
|
+
...A.map((le) => Ee.measureText(le || " ").width)
|
|
6395
6409
|
) / (96 / 25.4));
|
|
6396
6410
|
}
|
|
6397
6411
|
U === 0 && (U = Math.max(
|
|
@@ -6456,7 +6470,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6456
6470
|
type: "time",
|
|
6457
6471
|
timeMode: "realtime",
|
|
6458
6472
|
includeTime: !1,
|
|
6459
|
-
fixedTime:
|
|
6473
|
+
fixedTime: kt(/* @__PURE__ */ new Date()),
|
|
6460
6474
|
xMm: 0,
|
|
6461
6475
|
yMm: 0,
|
|
6462
6476
|
widthMm: 1,
|
|
@@ -6567,10 +6581,10 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6567
6581
|
}
|
|
6568
6582
|
A && (s.value.push(A), i.value = A.id);
|
|
6569
6583
|
}
|
|
6570
|
-
function
|
|
6584
|
+
function M(P) {
|
|
6571
6585
|
s.value = s.value.filter((A) => A.id !== P), i.value === P && (i.value = null);
|
|
6572
6586
|
}
|
|
6573
|
-
function
|
|
6587
|
+
function E() {
|
|
6574
6588
|
s.value = [], i.value = null;
|
|
6575
6589
|
}
|
|
6576
6590
|
async function T(P) {
|
|
@@ -6584,18 +6598,18 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6584
6598
|
await Ct(), await Ct(), await new Promise((le) => {
|
|
6585
6599
|
window.requestAnimationFrame(() => le());
|
|
6586
6600
|
});
|
|
6587
|
-
const A = t.value?.getPageSvgs() ?? [], { generateTemplatePdf: w } = await import("./pdfGenerator-
|
|
6601
|
+
const A = t.value?.getPageSvgs() ?? [], { generateTemplatePdf: w } = await import("./pdfGenerator-cShpHBr8.js").then((le) => le.p), U = await w(
|
|
6588
6602
|
A,
|
|
6589
6603
|
u.widthMm,
|
|
6590
6604
|
u.heightMm
|
|
6591
6605
|
), ie = URL.createObjectURL(U);
|
|
6592
6606
|
if (!window.open(ie, "_blank")) {
|
|
6593
|
-
URL.revokeObjectURL(ie),
|
|
6607
|
+
URL.revokeObjectURL(ie), _n.error(f("printDesigner.print.popupBlocked"));
|
|
6594
6608
|
return;
|
|
6595
6609
|
}
|
|
6596
6610
|
window.setTimeout(() => URL.revokeObjectURL(ie), 3e5);
|
|
6597
6611
|
} catch {
|
|
6598
|
-
|
|
6612
|
+
_n.error(f("printDesigner.print.generateFailed"));
|
|
6599
6613
|
} finally {
|
|
6600
6614
|
e.value = null;
|
|
6601
6615
|
}
|
|
@@ -6617,7 +6631,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6617
6631
|
Math.max(0, u.heightMm - P.heightMm)
|
|
6618
6632
|
);
|
|
6619
6633
|
}
|
|
6620
|
-
function
|
|
6634
|
+
function Ce(P, A) {
|
|
6621
6635
|
const w = r.value;
|
|
6622
6636
|
if (w) {
|
|
6623
6637
|
switch (P) {
|
|
@@ -6661,7 +6675,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6661
6675
|
case "includeTime":
|
|
6662
6676
|
if (w.type === "time") {
|
|
6663
6677
|
w.includeTime = !!A;
|
|
6664
|
-
const U = w.fixedTime.split(" ")[0] ||
|
|
6678
|
+
const U = w.fixedTime.split(" ")[0] || kt(/* @__PURE__ */ new Date());
|
|
6665
6679
|
w.fixedTime = w.includeTime ? `${U} 00:00:00` : U, g(w);
|
|
6666
6680
|
}
|
|
6667
6681
|
break;
|
|
@@ -6699,38 +6713,38 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6699
6713
|
)), ae(w) && A.fontSizePt !== void 0 && (w.fontSizePt = A.fontSizePt));
|
|
6700
6714
|
}
|
|
6701
6715
|
return (P, A) => (I(), $(ue, null, [
|
|
6702
|
-
D("div",
|
|
6703
|
-
D("aside",
|
|
6704
|
-
B(
|
|
6716
|
+
D("div", Fu, [
|
|
6717
|
+
D("aside", Uu, [
|
|
6718
|
+
B(ku, {
|
|
6705
6719
|
"template-name": u.name,
|
|
6706
6720
|
"width-mm": u.widthMm,
|
|
6707
6721
|
"height-mm": u.heightMm,
|
|
6708
6722
|
onSave: d
|
|
6709
6723
|
}, null, 8, ["template-name", "width-mm", "height-mm"]),
|
|
6710
|
-
B(
|
|
6724
|
+
B($i, { onAdd: x })
|
|
6711
6725
|
]),
|
|
6712
|
-
D("main",
|
|
6713
|
-
B(
|
|
6726
|
+
D("main", ju, [
|
|
6727
|
+
B(Vu, {
|
|
6714
6728
|
"show-grid": a.value,
|
|
6715
6729
|
"onUpdate:showGrid": A[0] || (A[0] = (w) => a.value = w),
|
|
6716
6730
|
"grid-spacing": c.value,
|
|
6717
6731
|
"onUpdate:gridSpacing": A[1] || (A[1] = (w) => c.value = w),
|
|
6718
6732
|
"zoom-percent": h.value,
|
|
6719
6733
|
"onUpdate:zoomPercent": A[2] || (A[2] = (w) => h.value = w),
|
|
6720
|
-
onReset:
|
|
6734
|
+
onReset: E
|
|
6721
6735
|
}, null, 8, ["show-grid", "grid-spacing", "zoom-percent"]),
|
|
6722
|
-
D("div",
|
|
6723
|
-
D("div",
|
|
6724
|
-
s.value.length > 0 ? (I(), W(
|
|
6736
|
+
D("div", Gu, [
|
|
6737
|
+
D("div", Hu, [
|
|
6738
|
+
s.value.length > 0 ? (I(), W(Gi, {
|
|
6725
6739
|
key: 0,
|
|
6726
6740
|
class: "print-designer-layout__element-list",
|
|
6727
6741
|
elements: s.value,
|
|
6728
6742
|
"selected-element-id": i.value,
|
|
6729
6743
|
onSelect: A[3] || (A[3] = (w) => i.value = w),
|
|
6730
|
-
onDelete:
|
|
6744
|
+
onDelete: M
|
|
6731
6745
|
}, null, 8, ["elements", "selected-element-id"])) : me("", !0)
|
|
6732
6746
|
]),
|
|
6733
|
-
B(
|
|
6747
|
+
B(wu, {
|
|
6734
6748
|
"width-mm": u.widthMm,
|
|
6735
6749
|
"height-mm": u.heightMm,
|
|
6736
6750
|
"show-grid": a.value,
|
|
@@ -6743,24 +6757,24 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6743
6757
|
}, null, 8, ["width-mm", "height-mm", "show-grid", "grid-spacing", "zoom-percent", "elements", "selected-element-id"])
|
|
6744
6758
|
])
|
|
6745
6759
|
]),
|
|
6746
|
-
D("aside",
|
|
6747
|
-
B(
|
|
6760
|
+
D("aside", Wu, [
|
|
6761
|
+
B(ou, {
|
|
6748
6762
|
"width-mm": u.widthMm,
|
|
6749
6763
|
"height-mm": u.heightMm,
|
|
6750
6764
|
elements: s.value,
|
|
6751
6765
|
printing: !!e.value,
|
|
6752
6766
|
onPrint: T
|
|
6753
6767
|
}, null, 8, ["width-mm", "height-mm", "elements", "printing"]),
|
|
6754
|
-
D("div",
|
|
6755
|
-
B(
|
|
6768
|
+
D("div", Xu, [
|
|
6769
|
+
B(ho, {
|
|
6756
6770
|
element: r.value,
|
|
6757
6771
|
properties: n.value,
|
|
6758
|
-
onUpdateProperty:
|
|
6772
|
+
onUpdateProperty: Ce
|
|
6759
6773
|
}, null, 8, ["element", "properties"])
|
|
6760
6774
|
])
|
|
6761
6775
|
])
|
|
6762
6776
|
]),
|
|
6763
|
-
e.value ? (I(), W(
|
|
6777
|
+
e.value ? (I(), W(Ka, {
|
|
6764
6778
|
key: 0,
|
|
6765
6779
|
ref_key: "pdfPagesRenderer",
|
|
6766
6780
|
ref: t,
|
|
@@ -6772,7 +6786,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6772
6786
|
}, null, 8, ["width-mm", "height-mm", "elements", "page-count", "print-time"])) : me("", !0)
|
|
6773
6787
|
], 64));
|
|
6774
6788
|
}
|
|
6775
|
-
}),
|
|
6789
|
+
}), Ju = /* @__PURE__ */ H(Ku, [["__scopeId", "data-v-631b789d"]]), yl = {
|
|
6776
6790
|
printDesigner: {
|
|
6777
6791
|
templateInfo: {
|
|
6778
6792
|
title: "Template information",
|
|
@@ -6857,7 +6871,7 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6857
6871
|
generateFailed: "Failed to generate the PDF. Please try again."
|
|
6858
6872
|
}
|
|
6859
6873
|
}
|
|
6860
|
-
},
|
|
6874
|
+
}, wl = {
|
|
6861
6875
|
printDesigner: {
|
|
6862
6876
|
templateInfo: {
|
|
6863
6877
|
title: "模板信息",
|
|
@@ -6942,16 +6956,16 @@ const mu = ["transform"], pu = ["x", "y", "width", "height"], gu = ["cx", "cy",
|
|
|
6942
6956
|
generateFailed: "PDF 生成失败,请稍后重试"
|
|
6943
6957
|
}
|
|
6944
6958
|
}
|
|
6945
|
-
};
|
|
6959
|
+
}, bl = Ju, El = Te;
|
|
6946
6960
|
export {
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6961
|
+
El as I,
|
|
6962
|
+
bl as P,
|
|
6963
|
+
_l as a,
|
|
6964
|
+
vl as c,
|
|
6965
|
+
yl as e,
|
|
6966
|
+
kt as f,
|
|
6967
|
+
oi as g,
|
|
6954
6968
|
ae as i,
|
|
6955
|
-
|
|
6956
|
-
|
|
6969
|
+
ii as r,
|
|
6970
|
+
wl as z
|
|
6957
6971
|
};
|