@nice2dev/ui-printing 1.0.28 → 1.0.29
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/dist/index.mjs
CHANGED
|
@@ -1,148 +1,148 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsx as e, jsxs as s, Fragment as Y } from "react/jsx-runtime";
|
|
2
2
|
import We, { useReducer as je, useState as M, useCallback as $, useMemo as oe, useEffect as ye, useRef as Fe } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import { createPortal as
|
|
5
|
-
const
|
|
6
|
-
root:
|
|
7
|
-
dark:
|
|
8
|
-
toolbar:
|
|
9
|
-
toolbarGroup:
|
|
10
|
-
toolbarBtn:
|
|
11
|
-
toolbarBtnActive:
|
|
12
|
-
toolbarBtnDanger:
|
|
13
|
-
toolbarSelect:
|
|
14
|
-
toolbarSep:
|
|
15
|
-
insertWrapper:
|
|
16
|
-
insertBtn:
|
|
17
|
-
insertDropdown:
|
|
18
|
-
insertCategory:
|
|
19
|
-
insertItem:
|
|
20
|
-
insertIcon:
|
|
21
|
-
zoomSelect:
|
|
22
|
-
saveBtn:
|
|
23
|
-
editorBody:
|
|
24
|
-
leftPanel:
|
|
25
|
-
leftTabs:
|
|
26
|
-
leftTab:
|
|
27
|
-
leftTabActive:
|
|
28
|
-
leftTabIcon:
|
|
29
|
-
leftTabLabel:
|
|
30
|
-
leftContent:
|
|
31
|
-
panelHeader:
|
|
32
|
-
panelHeaderIcon:
|
|
33
|
-
panelHeaderName:
|
|
34
|
-
searchBox:
|
|
35
|
-
searchInput:
|
|
36
|
-
fieldList:
|
|
37
|
-
fieldItem:
|
|
38
|
-
fieldItemIcon:
|
|
39
|
-
fieldItemInfo:
|
|
40
|
-
fieldItemLabel:
|
|
41
|
-
fieldItemPath:
|
|
42
|
-
fieldItemType:
|
|
43
|
-
layerList:
|
|
44
|
-
layerItem:
|
|
45
|
-
layerItemSelected:
|
|
46
|
-
layerIcon:
|
|
47
|
-
layerName:
|
|
48
|
-
layerActions:
|
|
49
|
-
layerBtn:
|
|
50
|
-
wmList:
|
|
51
|
-
wmItem:
|
|
52
|
-
wmRow:
|
|
53
|
-
wmLabel:
|
|
54
|
-
wmInput:
|
|
55
|
-
wmInputNum:
|
|
56
|
-
wmSelect:
|
|
57
|
-
wmSlider:
|
|
58
|
-
wmValue:
|
|
59
|
-
wmUnit:
|
|
60
|
-
wmDelete:
|
|
61
|
-
addBtn:
|
|
62
|
-
settingsForm:
|
|
63
|
-
settingsRow:
|
|
64
|
-
settingsLabel:
|
|
65
|
-
settingsInput:
|
|
66
|
-
settingsInputNum:
|
|
67
|
-
settingsTextarea:
|
|
68
|
-
settingsDivider:
|
|
69
|
-
settingsUnit:
|
|
70
|
-
emptyMsg:
|
|
71
|
-
canvasArea:
|
|
72
|
-
testDataBar:
|
|
73
|
-
testDataLabel:
|
|
74
|
-
testDataSelect:
|
|
75
|
-
rulerWrapper:
|
|
76
|
-
rulerCorner:
|
|
77
|
-
ruler:
|
|
78
|
-
ruler_h:
|
|
79
|
-
ruler_v:
|
|
80
|
-
rulerTick:
|
|
81
|
-
rulerTickMajor:
|
|
82
|
-
rulerLabel:
|
|
83
|
-
paperScroll:
|
|
84
|
-
paperShadow:
|
|
85
|
-
marginGuide:
|
|
86
|
-
watermark:
|
|
87
|
-
sectionCanvas:
|
|
88
|
-
sectionCanvasOver:
|
|
89
|
-
sectionTypeChip:
|
|
90
|
-
sectionResizeBar:
|
|
91
|
-
sectionResizeGrip:
|
|
92
|
-
fieldImagePlaceholder:
|
|
93
|
-
fieldBarcodePlaceholder:
|
|
94
|
-
fieldSignaturePlaceholder:
|
|
95
|
-
resizeHandle:
|
|
96
|
-
handle_n:
|
|
97
|
-
handle_s:
|
|
98
|
-
handle_e:
|
|
99
|
-
handle_w:
|
|
100
|
-
handle_ne:
|
|
101
|
-
handle_nw:
|
|
102
|
-
handle_se:
|
|
103
|
-
handle_sw:
|
|
104
|
-
rightPanel:
|
|
105
|
-
rightTabs:
|
|
106
|
-
rightTab:
|
|
107
|
-
rightTabActive:
|
|
108
|
-
propsBody:
|
|
109
|
-
propsEmpty:
|
|
110
|
-
propsEmptyIcon:
|
|
111
|
-
propsEmptyText:
|
|
112
|
-
posGrid:
|
|
113
|
-
posCell:
|
|
114
|
-
posLabel:
|
|
115
|
-
posInput:
|
|
116
|
-
posUnit:
|
|
117
|
-
snapSection:
|
|
118
|
-
snapTitle:
|
|
119
|
-
snapRow:
|
|
120
|
-
snapBtn:
|
|
121
|
-
styleGroup:
|
|
122
|
-
styleGroupTitle:
|
|
123
|
-
styleRow:
|
|
124
|
-
styleLabel:
|
|
125
|
-
styleSelect:
|
|
126
|
-
styleSelectFull:
|
|
127
|
-
styleSelectSm:
|
|
128
|
-
styleSelectXs:
|
|
129
|
-
styleInput:
|
|
130
|
-
styleInputFull:
|
|
131
|
-
styleUnit:
|
|
132
|
-
styleValue:
|
|
133
|
-
toggleGroup:
|
|
134
|
-
toggleBtn:
|
|
135
|
-
toggleBtnActive:
|
|
136
|
-
colorPicker:
|
|
137
|
-
colorHex:
|
|
138
|
-
clearBtn:
|
|
139
|
-
sliderInput:
|
|
140
|
-
conditionalHint:
|
|
141
|
-
clearConditionalBtn:
|
|
142
|
-
shortcutGrid:
|
|
143
|
-
shortcutChip:
|
|
144
|
-
shortcutKeys:
|
|
145
|
-
shortcutLabel:
|
|
3
|
+
import { NiceAppShell as Oe, useNiceTranslation as Ue } from "@nice2dev/ui";
|
|
4
|
+
import { createPortal as Ye } from "react-dom";
|
|
5
|
+
const qe = "_root_552wg_3", Ke = "_dark_552wg_27", Ve = "_toolbar_552wg_39", Ze = "_toolbarGroup_552wg_75", Xe = "_toolbarBtn_552wg_107", Je = "_toolbarBtnActive_552wg_167", Qe = "_toolbarBtnDanger_552wg_191", et = "_toolbarSelect_552wg_203", tt = "_toolbarSep_552wg_233", at = "_insertWrapper_552wg_259", nt = "_insertBtn_552wg_267", st = "_insertDropdown_552wg_289", rt = "_insertCategory_552wg_329", lt = "_insertItem_552wg_347", it = "_insertIcon_552wg_391", ot = "_zoomSelect_552wg_405", ct = "_saveBtn_552wg_437", dt = "_editorBody_552wg_473", pt = "_leftPanel_552wg_489", mt = "_leftTabs_552wg_519", ut = "_leftTab_552wg_519", ht = "_leftTabActive_552wg_591", _t = "_leftTabIcon_552wg_611", gt = "_leftTabLabel_552wg_619", yt = "_leftContent_552wg_629", bt = "_panelHeader_552wg_643", wt = "_panelHeaderIcon_552wg_667", vt = "_panelHeaderName_552wg_675", Nt = "_searchBox_552wg_689", ft = "_searchInput_552wg_697", kt = "_fieldList_552wg_743", St = "_fieldItem_552wg_753", Bt = "_fieldItemIcon_552wg_797", Ct = "_fieldItemInfo_552wg_811", It = "_fieldItemLabel_552wg_821", Lt = "_fieldItemPath_552wg_837", xt = "_fieldItemType_552wg_853", zt = "_layerList_552wg_873", Dt = "_layerItem_552wg_885", Tt = "_layerItemSelected_552wg_919", $t = "_layerIcon_552wg_937", Rt = "_layerName_552wg_949", At = "_layerActions_552wg_965", Pt = "_layerBtn_552wg_987", Mt = "_wmList_552wg_1019", Et = "_wmItem_552wg_1027", Gt = "_wmRow_552wg_1053", Ht = "_wmLabel_552wg_1067", Wt = "_wmInput_552wg_1079", jt = "_wmInputNum_552wg_1111", Ft = "_wmSelect_552wg_1131", Ot = "_wmSlider_552wg_1163", Ut = "_wmValue_552wg_1173", Yt = "_wmUnit_552wg_1187", qt = "_wmDelete_552wg_1197", Kt = "_addBtn_552wg_1229", Vt = "_settingsForm_552wg_1265", Zt = "_settingsRow_552wg_1273", Xt = "_settingsLabel_552wg_1287", Jt = "_settingsInput_552wg_1299", Qt = "_settingsInputNum_552wg_1331", ea = "_settingsTextarea_552wg_1363", ta = "_settingsDivider_552wg_1397", aa = "_settingsUnit_552wg_1417", na = "_emptyMsg_552wg_1429", sa = "_canvasArea_552wg_1447", ra = "_testDataBar_552wg_1473", la = "_testDataLabel_552wg_1505", ia = "_testDataSelect_552wg_1515", oa = "_rulerWrapper_552wg_1535", ca = "_rulerCorner_552wg_1551", da = "_ruler_552wg_1535", pa = "_ruler_h_552wg_1609", ma = "_ruler_v_552wg_1619", ua = "_rulerTick_552wg_1639", ha = "_rulerTickMajor_552wg_1679", _a = "_rulerLabel_552wg_1699", ga = "_paperScroll_552wg_1737", ya = "_paperShadow_552wg_1755", ba = "_marginGuide_552wg_1779", wa = "_watermark_552wg_1795", va = "_sectionCanvas_552wg_1821", Na = "_sectionCanvasOver_552wg_1835", fa = "_sectionTypeChip_552wg_1843", ka = "_sectionResizeBar_552wg_1875", Sa = "_sectionResizeGrip_552wg_1909", Ba = "_fieldImagePlaceholder_552wg_1925", Ca = "_fieldBarcodePlaceholder_552wg_1947", Ia = "_fieldSignaturePlaceholder_552wg_1975", La = "_resizeHandle_552wg_2001", xa = "_handle_n_552wg_2021", za = "_handle_s_552wg_2023", Da = "_handle_e_552wg_2025", Ta = "_handle_w_552wg_2027", $a = "_handle_ne_552wg_2029", Ra = "_handle_nw_552wg_2031", Aa = "_handle_se_552wg_2033", Pa = "_handle_sw_552wg_2035", Ma = "_rightPanel_552wg_2041", Ea = "_rightTabs_552wg_2071", Ga = "_rightTab_552wg_2071", Ha = "_rightTabActive_552wg_2135", Wa = "_propsBody_552wg_2147", ja = "_propsEmpty_552wg_2159", Fa = "_propsEmptyIcon_552wg_2181", Oa = "_propsEmptyText_552wg_2191", Ua = "_posGrid_552wg_2203", Ya = "_posCell_552wg_2217", qa = "_posLabel_552wg_2229", Ka = "_posInput_552wg_2241", Va = "_posUnit_552wg_2283", Za = "_snapSection_552wg_2295", Xa = "_snapTitle_552wg_2303", Ja = "_snapRow_552wg_2321", Qa = "_snapBtn_552wg_2331", en = "_styleGroup_552wg_2365", tn = "_styleGroupTitle_552wg_2373", an = "_styleRow_552wg_2403", nn = "_styleLabel_552wg_2417", sn = "_styleSelect_552wg_2431", rn = "_styleSelectFull_552wg_2461", ln = "_styleSelectSm_552wg_2493", on = "_styleSelectXs_552wg_2513", cn = "_styleInput_552wg_2545", dn = "_styleInputFull_552wg_2577", pn = "_styleUnit_552wg_2609", mn = "_styleValue_552wg_2621", un = "_toggleGroup_552wg_2635", hn = "_toggleBtn_552wg_2645", _n = "_toggleBtnActive_552wg_2675", gn = "_colorPicker_552wg_2689", yn = "_colorHex_552wg_2707", bn = "_clearBtn_552wg_2741", wn = "_sliderInput_552wg_2773", vn = "_conditionalHint_552wg_2785", Nn = "_clearConditionalBtn_552wg_2817", fn = "_shortcutGrid_552wg_2849", kn = "_shortcutChip_552wg_2863", Sn = "_shortcutKeys_552wg_2895", Bn = "_shortcutLabel_552wg_2915", t = {
|
|
6
|
+
root: qe,
|
|
7
|
+
dark: Ke,
|
|
8
|
+
toolbar: Ve,
|
|
9
|
+
toolbarGroup: Ze,
|
|
10
|
+
toolbarBtn: Xe,
|
|
11
|
+
toolbarBtnActive: Je,
|
|
12
|
+
toolbarBtnDanger: Qe,
|
|
13
|
+
toolbarSelect: et,
|
|
14
|
+
toolbarSep: tt,
|
|
15
|
+
insertWrapper: at,
|
|
16
|
+
insertBtn: nt,
|
|
17
|
+
insertDropdown: st,
|
|
18
|
+
insertCategory: rt,
|
|
19
|
+
insertItem: lt,
|
|
20
|
+
insertIcon: it,
|
|
21
|
+
zoomSelect: ot,
|
|
22
|
+
saveBtn: ct,
|
|
23
|
+
editorBody: dt,
|
|
24
|
+
leftPanel: pt,
|
|
25
|
+
leftTabs: mt,
|
|
26
|
+
leftTab: ut,
|
|
27
|
+
leftTabActive: ht,
|
|
28
|
+
leftTabIcon: _t,
|
|
29
|
+
leftTabLabel: gt,
|
|
30
|
+
leftContent: yt,
|
|
31
|
+
panelHeader: bt,
|
|
32
|
+
panelHeaderIcon: wt,
|
|
33
|
+
panelHeaderName: vt,
|
|
34
|
+
searchBox: Nt,
|
|
35
|
+
searchInput: ft,
|
|
36
|
+
fieldList: kt,
|
|
37
|
+
fieldItem: St,
|
|
38
|
+
fieldItemIcon: Bt,
|
|
39
|
+
fieldItemInfo: Ct,
|
|
40
|
+
fieldItemLabel: It,
|
|
41
|
+
fieldItemPath: Lt,
|
|
42
|
+
fieldItemType: xt,
|
|
43
|
+
layerList: zt,
|
|
44
|
+
layerItem: Dt,
|
|
45
|
+
layerItemSelected: Tt,
|
|
46
|
+
layerIcon: $t,
|
|
47
|
+
layerName: Rt,
|
|
48
|
+
layerActions: At,
|
|
49
|
+
layerBtn: Pt,
|
|
50
|
+
wmList: Mt,
|
|
51
|
+
wmItem: Et,
|
|
52
|
+
wmRow: Gt,
|
|
53
|
+
wmLabel: Ht,
|
|
54
|
+
wmInput: Wt,
|
|
55
|
+
wmInputNum: jt,
|
|
56
|
+
wmSelect: Ft,
|
|
57
|
+
wmSlider: Ot,
|
|
58
|
+
wmValue: Ut,
|
|
59
|
+
wmUnit: Yt,
|
|
60
|
+
wmDelete: qt,
|
|
61
|
+
addBtn: Kt,
|
|
62
|
+
settingsForm: Vt,
|
|
63
|
+
settingsRow: Zt,
|
|
64
|
+
settingsLabel: Xt,
|
|
65
|
+
settingsInput: Jt,
|
|
66
|
+
settingsInputNum: Qt,
|
|
67
|
+
settingsTextarea: ea,
|
|
68
|
+
settingsDivider: ta,
|
|
69
|
+
settingsUnit: aa,
|
|
70
|
+
emptyMsg: na,
|
|
71
|
+
canvasArea: sa,
|
|
72
|
+
testDataBar: ra,
|
|
73
|
+
testDataLabel: la,
|
|
74
|
+
testDataSelect: ia,
|
|
75
|
+
rulerWrapper: oa,
|
|
76
|
+
rulerCorner: ca,
|
|
77
|
+
ruler: da,
|
|
78
|
+
ruler_h: pa,
|
|
79
|
+
ruler_v: ma,
|
|
80
|
+
rulerTick: ua,
|
|
81
|
+
rulerTickMajor: ha,
|
|
82
|
+
rulerLabel: _a,
|
|
83
|
+
paperScroll: ga,
|
|
84
|
+
paperShadow: ya,
|
|
85
|
+
marginGuide: ba,
|
|
86
|
+
watermark: wa,
|
|
87
|
+
sectionCanvas: va,
|
|
88
|
+
sectionCanvasOver: Na,
|
|
89
|
+
sectionTypeChip: fa,
|
|
90
|
+
sectionResizeBar: ka,
|
|
91
|
+
sectionResizeGrip: Sa,
|
|
92
|
+
fieldImagePlaceholder: Ba,
|
|
93
|
+
fieldBarcodePlaceholder: Ca,
|
|
94
|
+
fieldSignaturePlaceholder: Ia,
|
|
95
|
+
resizeHandle: La,
|
|
96
|
+
handle_n: xa,
|
|
97
|
+
handle_s: za,
|
|
98
|
+
handle_e: Da,
|
|
99
|
+
handle_w: Ta,
|
|
100
|
+
handle_ne: $a,
|
|
101
|
+
handle_nw: Ra,
|
|
102
|
+
handle_se: Aa,
|
|
103
|
+
handle_sw: Pa,
|
|
104
|
+
rightPanel: Ma,
|
|
105
|
+
rightTabs: Ea,
|
|
106
|
+
rightTab: Ga,
|
|
107
|
+
rightTabActive: Ha,
|
|
108
|
+
propsBody: Wa,
|
|
109
|
+
propsEmpty: ja,
|
|
110
|
+
propsEmptyIcon: Fa,
|
|
111
|
+
propsEmptyText: Oa,
|
|
112
|
+
posGrid: Ua,
|
|
113
|
+
posCell: Ya,
|
|
114
|
+
posLabel: qa,
|
|
115
|
+
posInput: Ka,
|
|
116
|
+
posUnit: Va,
|
|
117
|
+
snapSection: Za,
|
|
118
|
+
snapTitle: Xa,
|
|
119
|
+
snapRow: Ja,
|
|
120
|
+
snapBtn: Qa,
|
|
121
|
+
styleGroup: en,
|
|
122
|
+
styleGroupTitle: tn,
|
|
123
|
+
styleRow: an,
|
|
124
|
+
styleLabel: nn,
|
|
125
|
+
styleSelect: sn,
|
|
126
|
+
styleSelectFull: rn,
|
|
127
|
+
styleSelectSm: ln,
|
|
128
|
+
styleSelectXs: on,
|
|
129
|
+
styleInput: cn,
|
|
130
|
+
styleInputFull: dn,
|
|
131
|
+
styleUnit: pn,
|
|
132
|
+
styleValue: mn,
|
|
133
|
+
toggleGroup: un,
|
|
134
|
+
toggleBtn: hn,
|
|
135
|
+
toggleBtnActive: _n,
|
|
136
|
+
colorPicker: gn,
|
|
137
|
+
colorHex: yn,
|
|
138
|
+
clearBtn: bn,
|
|
139
|
+
sliderInput: wn,
|
|
140
|
+
conditionalHint: vn,
|
|
141
|
+
clearConditionalBtn: Nn,
|
|
142
|
+
shortcutGrid: fn,
|
|
143
|
+
shortcutChip: kn,
|
|
144
|
+
shortcutKeys: Sn,
|
|
145
|
+
shortcutLabel: Bn
|
|
146
146
|
}, F = 3.78, Ne = {
|
|
147
147
|
A3: [297, 420],
|
|
148
148
|
A4: [210, 297],
|
|
@@ -152,7 +152,7 @@ const Ye = "_root_552wg_3", qe = "_dark_552wg_27", Ke = "_toolbar_552wg_39", Ve
|
|
|
152
152
|
Legal: [216, 356],
|
|
153
153
|
Tabloid: [279, 432],
|
|
154
154
|
custom: [210, 297]
|
|
155
|
-
},
|
|
155
|
+
}, Cn = [
|
|
156
156
|
"sans-serif",
|
|
157
157
|
"serif",
|
|
158
158
|
"monospace",
|
|
@@ -199,7 +199,7 @@ const Ye = "_root_552wg_3", qe = "_dark_552wg_27", Ke = "_toolbar_552wg_39", Ve
|
|
|
199
199
|
total_pages: "Liczba stron",
|
|
200
200
|
print_date: "Data wydruku"
|
|
201
201
|
};
|
|
202
|
-
function
|
|
202
|
+
function In(a, i) {
|
|
203
203
|
switch (i.type) {
|
|
204
204
|
case "UPDATE":
|
|
205
205
|
return {
|
|
@@ -243,7 +243,12 @@ function ke(a, i) {
|
|
|
243
243
|
},
|
|
244
244
|
style: { fontSize: 10, color: "var(--nice-text, #000000)", fontFamily: "sans-serif" }
|
|
245
245
|
};
|
|
246
|
-
return a === "rect" && (p.style.backgroundColor = "var(--nice-bg-secondary, #f1f5f9)"), a === "line" && (p.style = {
|
|
246
|
+
return a === "rect" && (p.style.backgroundColor = "var(--nice-bg-secondary, #f1f5f9)"), a === "line" && (p.style = {
|
|
247
|
+
...p.style,
|
|
248
|
+
borderWidth: 0.5,
|
|
249
|
+
borderColor: "var(--nice-text, #000000)",
|
|
250
|
+
borderStyle: "solid"
|
|
251
|
+
}), p;
|
|
247
252
|
}
|
|
248
253
|
const Se = ({
|
|
249
254
|
lengthMm: a,
|
|
@@ -266,7 +271,7 @@ const Se = ({
|
|
|
266
271
|
);
|
|
267
272
|
}
|
|
268
273
|
return /* @__PURE__ */ e("div", { className: `${t.ruler} ${t[`ruler_${p}`]}`, children: l });
|
|
269
|
-
},
|
|
274
|
+
}, Ln = ["n", "s", "e", "w", "ne", "nw", "se", "sw"], xn = ({ onResizeStart: a }) => /* @__PURE__ */ e(Y, { children: Ln.map((i) => /* @__PURE__ */ e(
|
|
270
275
|
"div",
|
|
271
276
|
{
|
|
272
277
|
className: `${t.resizeHandle} ${t[`handle_${i}`]}`,
|
|
@@ -276,7 +281,7 @@ const Se = ({
|
|
|
276
281
|
},
|
|
277
282
|
i
|
|
278
283
|
)) });
|
|
279
|
-
function
|
|
284
|
+
function zn(a, i) {
|
|
280
285
|
if (a.type === "static_text")
|
|
281
286
|
return a.fallback ?? "Tekst";
|
|
282
287
|
if (a.type === "page_number")
|
|
@@ -295,7 +300,7 @@ function xn(a, i) {
|
|
|
295
300
|
}
|
|
296
301
|
return a.label ? `{${a.label}}` : `{${a.dataPath}}`;
|
|
297
302
|
}
|
|
298
|
-
const
|
|
303
|
+
const Dn = ({
|
|
299
304
|
field: a,
|
|
300
305
|
zoom: i,
|
|
301
306
|
selected: p,
|
|
@@ -348,10 +353,10 @@ const zn = ({
|
|
|
348
353
|
) : N ? null : r ? /* @__PURE__ */ e("div", { className: t.fieldImagePlaceholder, children: "🖼" }) : n ? /* @__PURE__ */ e("div", { className: t.fieldBarcodePlaceholder, children: a.type === "qr" ? "⬛ QR" : "▮▌▮ Barcode" }) : a.type === "signature" ? /* @__PURE__ */ s("div", { className: t.fieldSignaturePlaceholder, children: [
|
|
349
354
|
"✍ ",
|
|
350
355
|
a.label
|
|
351
|
-
] }) : /* @__PURE__ */ e("span", { style: { display: "block", width: "100%" }, children:
|
|
352
|
-
p && !b && /* @__PURE__ */ e(
|
|
356
|
+
] }) : /* @__PURE__ */ e("span", { style: { display: "block", width: "100%" }, children: zn(a, l) }),
|
|
357
|
+
p && !b && /* @__PURE__ */ e(xn, { onResizeStart: S })
|
|
353
358
|
] });
|
|
354
|
-
},
|
|
359
|
+
}, Tn = ({
|
|
355
360
|
section: a,
|
|
356
361
|
zoom: i,
|
|
357
362
|
paperWidthMm: p,
|
|
@@ -398,7 +403,7 @@ const zn = ({
|
|
|
398
403
|
children: [
|
|
399
404
|
/* @__PURE__ */ e("div", { className: t.sectionTypeChip, children: a.type }),
|
|
400
405
|
a.fields.map((f) => /* @__PURE__ */ e(
|
|
401
|
-
|
|
406
|
+
Dn,
|
|
402
407
|
{
|
|
403
408
|
field: f,
|
|
404
409
|
zoom: i,
|
|
@@ -434,18 +439,18 @@ const zn = ({
|
|
|
434
439
|
}, ne = ({ keys: a, label: i }) => /* @__PURE__ */ s("div", { className: t.shortcutChip, children: [
|
|
435
440
|
/* @__PURE__ */ e("span", { className: t.shortcutKeys, children: a }),
|
|
436
441
|
/* @__PURE__ */ e("span", { className: t.shortcutLabel, children: i })
|
|
437
|
-
] }),
|
|
442
|
+
] }), $n = [
|
|
438
443
|
{ id: "fields", icon: "📝", label: "Pola" },
|
|
439
444
|
{ id: "layers", icon: "◧", label: "Warstwy" },
|
|
440
445
|
{ id: "watermarks", icon: "💧", label: "Znaki" },
|
|
441
446
|
{ id: "signatures", icon: "✍", label: "Podpisy" },
|
|
442
447
|
{ id: "settings", icon: "⚙", label: "Ustawienia" }
|
|
443
|
-
],
|
|
448
|
+
], Rn = [
|
|
444
449
|
{ id: "position", label: "Pozycja" },
|
|
445
450
|
{ id: "style", label: "Styl" },
|
|
446
451
|
{ id: "data", label: "Dane" },
|
|
447
452
|
{ id: "conditional", label: "Warunki" }
|
|
448
|
-
],
|
|
453
|
+
], An = ({
|
|
449
454
|
tpl: a,
|
|
450
455
|
zoom: i,
|
|
451
456
|
canUndo: p,
|
|
@@ -684,7 +689,7 @@ const zn = ({
|
|
|
684
689
|
] }),
|
|
685
690
|
!S && I && /* @__PURE__ */ e("button", { className: t.saveBtn, onClick: I, children: "💾 Zapisz" })
|
|
686
691
|
] });
|
|
687
|
-
},
|
|
692
|
+
}, Pn = ({
|
|
688
693
|
activeTab: a,
|
|
689
694
|
onTabChange: i,
|
|
690
695
|
schema: p,
|
|
@@ -700,7 +705,7 @@ const zn = ({
|
|
|
700
705
|
(r) => r.label.toLowerCase().includes(c.toLowerCase()) || r.path.toLowerCase().includes(c.toLowerCase())
|
|
701
706
|
);
|
|
702
707
|
return /* @__PURE__ */ s("div", { className: t.leftPanel, children: [
|
|
703
|
-
/* @__PURE__ */ e("div", { className: t.leftTabs, children:
|
|
708
|
+
/* @__PURE__ */ e("div", { className: t.leftTabs, children: $n.map((r) => /* @__PURE__ */ s(
|
|
704
709
|
"button",
|
|
705
710
|
{
|
|
706
711
|
className: `${t.leftTab} ${a === r.id ? t.leftTabActive : ""}`,
|
|
@@ -1134,7 +1139,7 @@ const zn = ({
|
|
|
1134
1139
|
] })
|
|
1135
1140
|
] })
|
|
1136
1141
|
] });
|
|
1137
|
-
},
|
|
1142
|
+
}, Mn = ({
|
|
1138
1143
|
field: a,
|
|
1139
1144
|
activeTab: i,
|
|
1140
1145
|
onTabChange: p,
|
|
@@ -1182,7 +1187,7 @@ const zn = ({
|
|
|
1182
1187
|
/* @__PURE__ */ e("span", { className: t.panelHeaderIcon, children: ce[a.type] }),
|
|
1183
1188
|
/* @__PURE__ */ e("span", { className: t.panelHeaderName, children: a.name })
|
|
1184
1189
|
] }),
|
|
1185
|
-
/* @__PURE__ */ e("div", { className: t.rightTabs, children:
|
|
1190
|
+
/* @__PURE__ */ e("div", { className: t.rightTabs, children: Rn.map((n) => n.id === "data" && !v ? null : /* @__PURE__ */ e(
|
|
1186
1191
|
"button",
|
|
1187
1192
|
{
|
|
1188
1193
|
className: `${t.rightTab} ${i === n.id ? t.rightTabActive : ""}`,
|
|
@@ -1278,7 +1283,7 @@ const zn = ({
|
|
|
1278
1283
|
className: t.styleSelectFull,
|
|
1279
1284
|
value: a.style.fontFamily ?? "sans-serif",
|
|
1280
1285
|
onChange: (n) => b({ fontFamily: n.target.value }),
|
|
1281
|
-
children:
|
|
1286
|
+
children: Cn.map((n) => /* @__PURE__ */ e("option", { value: n, children: n }, n))
|
|
1282
1287
|
}
|
|
1283
1288
|
)
|
|
1284
1289
|
] }),
|
|
@@ -1654,7 +1659,7 @@ const zn = ({
|
|
|
1654
1659
|
] })
|
|
1655
1660
|
] });
|
|
1656
1661
|
};
|
|
1657
|
-
function
|
|
1662
|
+
function En() {
|
|
1658
1663
|
return {
|
|
1659
1664
|
id: `tpl-${Date.now()}`,
|
|
1660
1665
|
name: "Nowy szablon",
|
|
@@ -1671,7 +1676,7 @@ function Mn() {
|
|
|
1671
1676
|
signatures: []
|
|
1672
1677
|
};
|
|
1673
1678
|
}
|
|
1674
|
-
const
|
|
1679
|
+
const el = ({
|
|
1675
1680
|
template: a,
|
|
1676
1681
|
dataSchema: i,
|
|
1677
1682
|
sampleData: p = [],
|
|
@@ -1682,9 +1687,9 @@ const Qr = ({
|
|
|
1682
1687
|
style: b,
|
|
1683
1688
|
theme: g = "light"
|
|
1684
1689
|
}) => {
|
|
1685
|
-
const [{ past: v, present: c, future: T }, N] = je(
|
|
1690
|
+
const [{ past: v, present: c, future: T }, N] = je(In, {
|
|
1686
1691
|
past: [],
|
|
1687
|
-
present: a ??
|
|
1692
|
+
present: a ?? En(),
|
|
1688
1693
|
future: []
|
|
1689
1694
|
}), [r, n] = M(/* @__PURE__ */ new Set()), [u, m] = M("sec-body"), [f, D] = M(1), [y, x] = M(0), [I, E] = M("fields"), [W, P] = M("position"), [_, q] = M(!1), [pe, Ce] = M(!0), R = $(
|
|
1690
1695
|
(o) => {
|
|
@@ -1973,170 +1978,166 @@ const Qr = ({
|
|
|
1973
1978
|
const o = Array.isArray(p) ? p[y] : p;
|
|
1974
1979
|
return o ? "data" in o ? o.data : o : {};
|
|
1975
1980
|
}, [p, y]), Ee = Z * f * F, Ge = me * f * F;
|
|
1976
|
-
return /* @__PURE__ */
|
|
1977
|
-
|
|
1981
|
+
return /* @__PURE__ */ e(
|
|
1982
|
+
Oe,
|
|
1978
1983
|
{
|
|
1984
|
+
flush: !0,
|
|
1979
1985
|
className: `${t.root} ${g === "dark" ? t.dark : ""} ${S ?? ""}`,
|
|
1980
1986
|
style: b,
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
|
|
2007
|
-
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
1987
|
+
toolbar: /* @__PURE__ */ e(
|
|
1988
|
+
An,
|
|
1989
|
+
{
|
|
1990
|
+
tpl: c,
|
|
1991
|
+
zoom: f,
|
|
1992
|
+
canUndo: v.length > 0,
|
|
1993
|
+
canRedo: T.length > 0,
|
|
1994
|
+
showGrid: _,
|
|
1995
|
+
showRulers: pe,
|
|
1996
|
+
readOnly: h,
|
|
1997
|
+
selectedCount: r.size,
|
|
1998
|
+
onPaperChange: (o, d) => R({ paperSize: o, orientation: d }),
|
|
1999
|
+
onZoom: D,
|
|
2000
|
+
onUndo: () => N({ type: "UNDO" }),
|
|
2001
|
+
onRedo: () => N({ type: "REDO" }),
|
|
2002
|
+
onToggleGrid: () => q((o) => !o),
|
|
2003
|
+
onToggleRulers: () => Ce((o) => !o),
|
|
2004
|
+
onInsert: be,
|
|
2005
|
+
onDelete: he,
|
|
2006
|
+
onDuplicate: _e,
|
|
2007
|
+
onAlignH: De,
|
|
2008
|
+
onAlignV: Te,
|
|
2009
|
+
onBringForward: $e,
|
|
2010
|
+
onSendBackward: Re,
|
|
2011
|
+
onSave: k ? () => k(c) : void 0
|
|
2012
|
+
}
|
|
2013
|
+
),
|
|
2014
|
+
sidebar: /* @__PURE__ */ e(
|
|
2015
|
+
Pn,
|
|
2016
|
+
{
|
|
2017
|
+
activeTab: I,
|
|
2018
|
+
onTabChange: E,
|
|
2019
|
+
schema: i,
|
|
2020
|
+
tpl: c,
|
|
2021
|
+
allFields: X,
|
|
2022
|
+
selectedIds: r,
|
|
2023
|
+
onInsertSchemaField: (o) => be(o.type, o),
|
|
2024
|
+
onSelectField: (o) => n(/* @__PURE__ */ new Set([o])),
|
|
2025
|
+
onUpdateTpl: (o) => R(o),
|
|
2026
|
+
onReorderField: Ae
|
|
2027
|
+
}
|
|
2028
|
+
),
|
|
2029
|
+
rightSidebar: /* @__PURE__ */ e(
|
|
2030
|
+
Mn,
|
|
2031
|
+
{
|
|
2032
|
+
field: G,
|
|
2033
|
+
activeTab: W,
|
|
2034
|
+
onTabChange: P,
|
|
2035
|
+
onChange: (o) => G && ue(G.id, o),
|
|
2036
|
+
paperWidthMm: Z,
|
|
2037
|
+
paperHeightMm: me
|
|
2038
|
+
}
|
|
2039
|
+
),
|
|
2040
|
+
children: /* @__PURE__ */ s("div", { className: t.canvasArea, onClick: () => n(/* @__PURE__ */ new Set()), children: [
|
|
2041
|
+
Array.isArray(p) && p.length > 0 && /* @__PURE__ */ s("div", { className: t.testDataBar, children: [
|
|
2042
|
+
/* @__PURE__ */ e("span", { className: t.testDataLabel, children: "Dane testowe:" }),
|
|
2011
2043
|
/* @__PURE__ */ e(
|
|
2012
|
-
|
|
2044
|
+
"select",
|
|
2013
2045
|
{
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
onSelectField: (o) => n(/* @__PURE__ */ new Set([o])),
|
|
2022
|
-
onUpdateTpl: (o) => R(o),
|
|
2023
|
-
onReorderField: Ae
|
|
2046
|
+
className: t.testDataSelect,
|
|
2047
|
+
value: y,
|
|
2048
|
+
onChange: (o) => x(+o.target.value),
|
|
2049
|
+
children: p.map((o, d) => /* @__PURE__ */ s("option", { value: d, children: [
|
|
2050
|
+
"Rekord ",
|
|
2051
|
+
d + 1
|
|
2052
|
+
] }, d))
|
|
2024
2053
|
}
|
|
2025
|
-
)
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
value: y,
|
|
2034
|
-
onChange: (o) => x(+o.target.value),
|
|
2035
|
-
children: p.map((o, d) => /* @__PURE__ */ s("option", { value: d, children: [
|
|
2036
|
-
"Rekord ",
|
|
2037
|
-
d + 1
|
|
2038
|
-
] }, d))
|
|
2039
|
-
}
|
|
2040
|
-
)
|
|
2041
|
-
] }),
|
|
2042
|
-
pe && /* @__PURE__ */ s("div", { className: t.rulerWrapper, children: [
|
|
2043
|
-
/* @__PURE__ */ e("div", { className: t.rulerCorner }),
|
|
2044
|
-
/* @__PURE__ */ e(Se, { lengthMm: Z, zoom: f, orientation: "h" }),
|
|
2045
|
-
/* @__PURE__ */ e(Se, { lengthMm: me, zoom: f, orientation: "v" })
|
|
2046
|
-
] }),
|
|
2047
|
-
/* @__PURE__ */ e("div", { className: t.paperScroll, onClick: (o) => o.stopPropagation(), children: /* @__PURE__ */ s("div", { className: t.paperShadow, style: { width: Ee, minHeight: Ge }, children: [
|
|
2048
|
-
/* @__PURE__ */ e(
|
|
2049
|
-
"div",
|
|
2050
|
-
{
|
|
2051
|
-
className: t.marginGuide,
|
|
2052
|
-
style: {
|
|
2053
|
-
top: c.margins.top * f * F,
|
|
2054
|
-
right: c.margins.right * f * F,
|
|
2055
|
-
bottom: c.margins.bottom * f * F,
|
|
2056
|
-
left: c.margins.left * f * F
|
|
2057
|
-
}
|
|
2058
|
-
}
|
|
2059
|
-
),
|
|
2060
|
-
(c.watermarks ?? []).map((o) => /* @__PURE__ */ e(
|
|
2061
|
-
"div",
|
|
2062
|
-
{
|
|
2063
|
-
className: t.watermark,
|
|
2064
|
-
style: {
|
|
2065
|
-
fontSize: (o.fontSize ?? 60) * f,
|
|
2066
|
-
color: o.color ?? "var(--nice-text-muted, #94a3b8)",
|
|
2067
|
-
opacity: o.opacity,
|
|
2068
|
-
transform: `translate(-50%, -50%) rotate(${o.angle}deg)`
|
|
2069
|
-
},
|
|
2070
|
-
children: o.type === "text" ? o.text : "??"
|
|
2071
|
-
},
|
|
2072
|
-
o.id
|
|
2073
|
-
)),
|
|
2074
|
-
c.sections.map((o) => /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
2075
|
-
Dn,
|
|
2076
|
-
{
|
|
2077
|
-
section: o,
|
|
2078
|
-
zoom: f,
|
|
2079
|
-
paperWidthMm: Z,
|
|
2080
|
-
selectedIds: r,
|
|
2081
|
-
sampleData: Me,
|
|
2082
|
-
readOnly: h,
|
|
2083
|
-
showGrid: _,
|
|
2084
|
-
onFieldClick: Le,
|
|
2085
|
-
onFieldDragStart: xe,
|
|
2086
|
-
onResizeStart: ze,
|
|
2087
|
-
onSectionHeightChange: Pe,
|
|
2088
|
-
onDropField: Ie
|
|
2089
|
-
}
|
|
2090
|
-
) }, o.id))
|
|
2091
|
-
] }) })
|
|
2092
|
-
] }),
|
|
2054
|
+
)
|
|
2055
|
+
] }),
|
|
2056
|
+
pe && /* @__PURE__ */ s("div", { className: t.rulerWrapper, children: [
|
|
2057
|
+
/* @__PURE__ */ e("div", { className: t.rulerCorner }),
|
|
2058
|
+
/* @__PURE__ */ e(Se, { lengthMm: Z, zoom: f, orientation: "h" }),
|
|
2059
|
+
/* @__PURE__ */ e(Se, { lengthMm: me, zoom: f, orientation: "v" })
|
|
2060
|
+
] }),
|
|
2061
|
+
/* @__PURE__ */ e("div", { className: t.paperScroll, onClick: (o) => o.stopPropagation(), children: /* @__PURE__ */ s("div", { className: t.paperShadow, style: { width: Ee, minHeight: Ge }, children: [
|
|
2093
2062
|
/* @__PURE__ */ e(
|
|
2094
|
-
|
|
2063
|
+
"div",
|
|
2064
|
+
{
|
|
2065
|
+
className: t.marginGuide,
|
|
2066
|
+
style: {
|
|
2067
|
+
top: c.margins.top * f * F,
|
|
2068
|
+
right: c.margins.right * f * F,
|
|
2069
|
+
bottom: c.margins.bottom * f * F,
|
|
2070
|
+
left: c.margins.left * f * F
|
|
2071
|
+
}
|
|
2072
|
+
}
|
|
2073
|
+
),
|
|
2074
|
+
(c.watermarks ?? []).map((o) => /* @__PURE__ */ e(
|
|
2075
|
+
"div",
|
|
2076
|
+
{
|
|
2077
|
+
className: t.watermark,
|
|
2078
|
+
style: {
|
|
2079
|
+
fontSize: (o.fontSize ?? 60) * f,
|
|
2080
|
+
color: o.color ?? "var(--nice-text-muted, #94a3b8)",
|
|
2081
|
+
opacity: o.opacity,
|
|
2082
|
+
transform: `translate(-50%, -50%) rotate(${o.angle}deg)`
|
|
2083
|
+
},
|
|
2084
|
+
children: o.type === "text" ? o.text : "??"
|
|
2085
|
+
},
|
|
2086
|
+
o.id
|
|
2087
|
+
)),
|
|
2088
|
+
c.sections.map((o) => /* @__PURE__ */ e("div", { children: /* @__PURE__ */ e(
|
|
2089
|
+
Tn,
|
|
2095
2090
|
{
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
onTabChange: P,
|
|
2099
|
-
onChange: (o) => G && ue(G.id, o),
|
|
2091
|
+
section: o,
|
|
2092
|
+
zoom: f,
|
|
2100
2093
|
paperWidthMm: Z,
|
|
2101
|
-
|
|
2094
|
+
selectedIds: r,
|
|
2095
|
+
sampleData: Me,
|
|
2096
|
+
readOnly: h,
|
|
2097
|
+
showGrid: _,
|
|
2098
|
+
onFieldClick: Le,
|
|
2099
|
+
onFieldDragStart: xe,
|
|
2100
|
+
onResizeStart: ze,
|
|
2101
|
+
onSectionHeightChange: Pe,
|
|
2102
|
+
onDropField: Ie
|
|
2102
2103
|
}
|
|
2103
|
-
)
|
|
2104
|
-
] })
|
|
2105
|
-
]
|
|
2104
|
+
) }, o.id))
|
|
2105
|
+
] }) })
|
|
2106
|
+
] })
|
|
2106
2107
|
}
|
|
2107
2108
|
);
|
|
2108
|
-
},
|
|
2109
|
-
root:
|
|
2110
|
-
dark:
|
|
2111
|
-
topBar:
|
|
2112
|
-
searchInput:
|
|
2113
|
-
actionBtn:
|
|
2114
|
-
categoryRow:
|
|
2115
|
-
catChip:
|
|
2116
|
-
catChipActive:
|
|
2117
|
-
grid:
|
|
2118
|
-
card:
|
|
2119
|
-
cardSelected:
|
|
2120
|
-
thumbnail:
|
|
2121
|
-
thumbnailImg:
|
|
2122
|
-
thumbnailPlaceholder:
|
|
2123
|
-
paperMini:
|
|
2124
|
-
paperLine:
|
|
2125
|
-
cardOverlay:
|
|
2126
|
-
overlayBtn:
|
|
2127
|
-
overlayBtnDanger:
|
|
2128
|
-
cardBody:
|
|
2129
|
-
cardName:
|
|
2130
|
-
cardDesc:
|
|
2131
|
-
cardMeta:
|
|
2132
|
-
cardSize:
|
|
2133
|
-
cardCat:
|
|
2134
|
-
cardTags:
|
|
2135
|
-
cardTag:
|
|
2136
|
-
emptyState:
|
|
2137
|
-
emptyIcon:
|
|
2138
|
-
},
|
|
2139
|
-
function
|
|
2109
|
+
}, Gn = "_root_6hwvk_1", Hn = "_dark_6hwvk_25", Wn = "_topBar_6hwvk_31", jn = "_searchInput_6hwvk_55", Fn = "_actionBtn_6hwvk_83", On = "_categoryRow_6hwvk_117", Un = "_catChip_6hwvk_141", Yn = "_catChipActive_6hwvk_167", qn = "_grid_6hwvk_181", Kn = "_card_6hwvk_203", Vn = "_cardSelected_6hwvk_235", Zn = "_thumbnail_6hwvk_251", Xn = "_thumbnailImg_6hwvk_265", Jn = "_thumbnailPlaceholder_6hwvk_277", Qn = "_paperMini_6hwvk_291", es = "_paperLine_6hwvk_315", ts = "_cardOverlay_6hwvk_329", as = "_overlayBtn_6hwvk_349", ns = "_overlayBtnDanger_6hwvk_381", ss = "_cardBody_6hwvk_411", rs = "_cardName_6hwvk_415", ls = "_cardDesc_6hwvk_439", is = "_cardMeta_6hwvk_461", os = "_cardSize_6hwvk_475", cs = "_cardCat_6hwvk_491", ds = "_cardTags_6hwvk_507", ps = "_cardTag_6hwvk_507", ms = "_emptyState_6hwvk_531", us = "_emptyIcon_6hwvk_553", L = {
|
|
2110
|
+
root: Gn,
|
|
2111
|
+
dark: Hn,
|
|
2112
|
+
topBar: Wn,
|
|
2113
|
+
searchInput: jn,
|
|
2114
|
+
actionBtn: Fn,
|
|
2115
|
+
categoryRow: On,
|
|
2116
|
+
catChip: Un,
|
|
2117
|
+
catChipActive: Yn,
|
|
2118
|
+
grid: qn,
|
|
2119
|
+
card: Kn,
|
|
2120
|
+
cardSelected: Vn,
|
|
2121
|
+
thumbnail: Zn,
|
|
2122
|
+
thumbnailImg: Xn,
|
|
2123
|
+
thumbnailPlaceholder: Jn,
|
|
2124
|
+
paperMini: Qn,
|
|
2125
|
+
paperLine: es,
|
|
2126
|
+
cardOverlay: ts,
|
|
2127
|
+
overlayBtn: as,
|
|
2128
|
+
overlayBtnDanger: ns,
|
|
2129
|
+
cardBody: ss,
|
|
2130
|
+
cardName: rs,
|
|
2131
|
+
cardDesc: ls,
|
|
2132
|
+
cardMeta: is,
|
|
2133
|
+
cardSize: os,
|
|
2134
|
+
cardCat: cs,
|
|
2135
|
+
cardTags: ds,
|
|
2136
|
+
cardTag: ps,
|
|
2137
|
+
emptyState: ms,
|
|
2138
|
+
emptyIcon: us
|
|
2139
|
+
}, hs = ["Faktury", "Raporty", "Etykiety", "Listy", "Umowy", "Inne"];
|
|
2140
|
+
function _s(a) {
|
|
2140
2141
|
return new Promise((i, p) => {
|
|
2141
2142
|
const l = new FileReader();
|
|
2142
2143
|
l.onload = (k) => {
|
|
@@ -2149,11 +2150,11 @@ function hs(a) {
|
|
|
2149
2150
|
}, l.readAsText(a);
|
|
2150
2151
|
});
|
|
2151
2152
|
}
|
|
2152
|
-
function
|
|
2153
|
+
function gs(a) {
|
|
2153
2154
|
const i = new Blob([JSON.stringify(a, null, 2)], { type: "application/json" }), p = URL.createObjectURL(i), l = document.createElement("a");
|
|
2154
2155
|
l.href = p, l.download = `${a.name.replace(/\s+/g, "_")}.json`, l.click(), URL.revokeObjectURL(p);
|
|
2155
2156
|
}
|
|
2156
|
-
const
|
|
2157
|
+
const tl = ({
|
|
2157
2158
|
templates: a,
|
|
2158
2159
|
selectedId: i,
|
|
2159
2160
|
onSelect: p,
|
|
@@ -2170,7 +2171,7 @@ const el = ({
|
|
|
2170
2171
|
const x = (I = y.target.files) == null ? void 0 : I[0];
|
|
2171
2172
|
if (x) {
|
|
2172
2173
|
try {
|
|
2173
|
-
const E = await
|
|
2174
|
+
const E = await _s(x);
|
|
2174
2175
|
l == null || l(E);
|
|
2175
2176
|
} catch {
|
|
2176
2177
|
}
|
|
@@ -2221,7 +2222,7 @@ const el = ({
|
|
|
2221
2222
|
children: "Wszystkie"
|
|
2222
2223
|
}
|
|
2223
2224
|
),
|
|
2224
|
-
|
|
2225
|
+
hs.map((y) => /* @__PURE__ */ e(
|
|
2225
2226
|
"button",
|
|
2226
2227
|
{
|
|
2227
2228
|
className: `${L.catChip} ${N === y ? L.catChipActive : ""}`,
|
|
@@ -2277,7 +2278,7 @@ const el = ({
|
|
|
2277
2278
|
{
|
|
2278
2279
|
className: L.overlayBtn,
|
|
2279
2280
|
onClick: (x) => {
|
|
2280
|
-
x.stopPropagation(), k == null || k(y),
|
|
2281
|
+
x.stopPropagation(), k == null || k(y), gs(y);
|
|
2281
2282
|
},
|
|
2282
2283
|
title: "Eksportuj",
|
|
2283
2284
|
children: "⬇"
|
|
@@ -2321,22 +2322,22 @@ const el = ({
|
|
|
2321
2322
|
]
|
|
2322
2323
|
}
|
|
2323
2324
|
);
|
|
2324
|
-
},
|
|
2325
|
-
root:
|
|
2326
|
-
dark:
|
|
2327
|
-
headerBar:
|
|
2328
|
-
entityNav:
|
|
2329
|
-
navBtn:
|
|
2330
|
-
navLabel:
|
|
2331
|
-
sampleBadge:
|
|
2332
|
-
zoomBar:
|
|
2333
|
-
zoomBtn:
|
|
2334
|
-
zoomLabel:
|
|
2335
|
-
printBtn:
|
|
2336
|
-
canvas:
|
|
2337
|
-
page:
|
|
2338
|
-
watermark:
|
|
2339
|
-
footerBar:
|
|
2325
|
+
}, ys = "_root_1grye_1", bs = "_dark_1grye_19", ws = "_headerBar_1grye_25", vs = "_entityNav_1grye_47", Ns = "_navBtn_1grye_49", fs = "_navLabel_1grye_73", ks = "_sampleBadge_1grye_77", Ss = "_zoomBar_1grye_95", Bs = "_zoomBtn_1grye_97", Cs = "_zoomLabel_1grye_119", Is = "_printBtn_1grye_123", Ls = "_canvas_1grye_149", xs = "_page_1grye_169", zs = "_watermark_1grye_191", Ds = "_footerBar_1grye_221", j = {
|
|
2326
|
+
root: ys,
|
|
2327
|
+
dark: bs,
|
|
2328
|
+
headerBar: ws,
|
|
2329
|
+
entityNav: vs,
|
|
2330
|
+
navBtn: Ns,
|
|
2331
|
+
navLabel: fs,
|
|
2332
|
+
sampleBadge: ks,
|
|
2333
|
+
zoomBar: Ss,
|
|
2334
|
+
zoomBtn: Bs,
|
|
2335
|
+
zoomLabel: Cs,
|
|
2336
|
+
printBtn: Is,
|
|
2337
|
+
canvas: Ls,
|
|
2338
|
+
page: xs,
|
|
2339
|
+
watermark: zs,
|
|
2340
|
+
footerBar: Ds
|
|
2340
2341
|
}, V = 3.78, Be = {
|
|
2341
2342
|
A3: [297, 420],
|
|
2342
2343
|
A4: [210, 297],
|
|
@@ -2346,14 +2347,14 @@ const el = ({
|
|
|
2346
2347
|
Legal: [216, 356],
|
|
2347
2348
|
Tabloid: [279, 432]
|
|
2348
2349
|
};
|
|
2349
|
-
function
|
|
2350
|
+
function Ts(a, i) {
|
|
2350
2351
|
try {
|
|
2351
2352
|
return a.split(".").reduce((p, l) => p && typeof p == "object" ? p[l] : null, i);
|
|
2352
2353
|
} catch {
|
|
2353
2354
|
return null;
|
|
2354
2355
|
}
|
|
2355
2356
|
}
|
|
2356
|
-
function
|
|
2357
|
+
function $s(a, i, p) {
|
|
2357
2358
|
if (a == null)
|
|
2358
2359
|
return "";
|
|
2359
2360
|
if (i === "date" && p)
|
|
@@ -2374,8 +2375,8 @@ function Ts(a, i, p) {
|
|
|
2374
2375
|
}
|
|
2375
2376
|
return i === "number" && typeof a == "number" ? a.toLocaleString("pl-PL") : String(a);
|
|
2376
2377
|
}
|
|
2377
|
-
const
|
|
2378
|
-
const l = a.dataPath ?
|
|
2378
|
+
const Rs = ({ field: a, data: i, zoom: p }) => {
|
|
2379
|
+
const l = a.dataPath ? Ts(a.dataPath, i) : null, k = l != null ? $s(l, a.type, a.format) : a.fallback ?? "", h = (b) => b * p * V, S = {
|
|
2379
2380
|
position: "absolute",
|
|
2380
2381
|
left: h(a.position.x),
|
|
2381
2382
|
top: h(a.position.y),
|
|
@@ -2443,7 +2444,7 @@ const $s = ({ field: a, data: i, zoom: p }) => {
|
|
|
2443
2444
|
}
|
|
2444
2445
|
}
|
|
2445
2446
|
) : /* @__PURE__ */ e("div", { style: S, children: k });
|
|
2446
|
-
},
|
|
2447
|
+
}, As = ({ template: a, data: i, zoom: p }) => {
|
|
2447
2448
|
var b;
|
|
2448
2449
|
const [l, k] = (() => {
|
|
2449
2450
|
const [g, v] = Be[a.paperSize] ?? Be.A4;
|
|
@@ -2460,7 +2461,7 @@ const $s = ({ field: a, data: i, zoom: p }) => {
|
|
|
2460
2461
|
right: h.right * p * V,
|
|
2461
2462
|
bottom: h.bottom * p * V
|
|
2462
2463
|
},
|
|
2463
|
-
children: S.map((g) => /* @__PURE__ */ e(
|
|
2464
|
+
children: S.map((g) => /* @__PURE__ */ e(Rs, { field: g, data: i, zoom: p }, g.id))
|
|
2464
2465
|
}
|
|
2465
2466
|
),
|
|
2466
2467
|
(b = a.watermarks) == null ? void 0 : b.map((g) => /* @__PURE__ */ e(
|
|
@@ -2484,7 +2485,7 @@ const $s = ({ field: a, data: i, zoom: p }) => {
|
|
|
2484
2485
|
g.id
|
|
2485
2486
|
))
|
|
2486
2487
|
] });
|
|
2487
|
-
},
|
|
2488
|
+
}, al = ({
|
|
2488
2489
|
template: a,
|
|
2489
2490
|
entities: i = [],
|
|
2490
2491
|
sampleData: p,
|
|
@@ -2496,7 +2497,7 @@ const $s = ({ field: a, data: i, zoom: p }) => {
|
|
|
2496
2497
|
open: g,
|
|
2497
2498
|
onClose: v
|
|
2498
2499
|
}) => {
|
|
2499
|
-
const { t: c } =
|
|
2500
|
+
const { t: c } = Ue(), [T, N] = M(0), [r, n] = M(0.8), [u, m] = M(!0), f = g !== void 0, D = f ? g : u, y = () => {
|
|
2500
2501
|
f || m(!1), v == null || v();
|
|
2501
2502
|
};
|
|
2502
2503
|
ye(() => {
|
|
@@ -2578,7 +2579,7 @@ const $s = ({ field: a, data: i, zoom: p }) => {
|
|
|
2578
2579
|
)
|
|
2579
2580
|
] })
|
|
2580
2581
|
] }),
|
|
2581
|
-
/* @__PURE__ */ e("div", { className: j.canvas, children: /* @__PURE__ */ e(
|
|
2582
|
+
/* @__PURE__ */ e("div", { className: j.canvas, children: /* @__PURE__ */ e(As, { template: a, data: I, zoom: r }) }),
|
|
2582
2583
|
/* @__PURE__ */ s("div", { className: j.footerBar, children: [
|
|
2583
2584
|
/* @__PURE__ */ e("span", { children: a.name }),
|
|
2584
2585
|
/* @__PURE__ */ s("span", { children: [
|
|
@@ -2592,7 +2593,7 @@ const $s = ({ field: a, data: i, zoom: p }) => {
|
|
|
2592
2593
|
]
|
|
2593
2594
|
}
|
|
2594
2595
|
);
|
|
2595
|
-
return b ?
|
|
2596
|
+
return b ? Ye(/* @__PURE__ */ e(
|
|
2596
2597
|
"div",
|
|
2597
2598
|
{
|
|
2598
2599
|
style: {
|
|
@@ -2627,54 +2628,54 @@ const $s = ({ field: a, data: i, zoom: p }) => {
|
|
|
2627
2628
|
)
|
|
2628
2629
|
}
|
|
2629
2630
|
), document.body) : E;
|
|
2630
|
-
},
|
|
2631
|
-
root:
|
|
2632
|
-
dark:
|
|
2633
|
-
statsBar:
|
|
2634
|
-
stat:
|
|
2635
|
-
dot:
|
|
2636
|
-
statPrinting:
|
|
2637
|
-
statQueued:
|
|
2638
|
-
statDone:
|
|
2639
|
-
statError:
|
|
2640
|
-
toolbar:
|
|
2641
|
-
filterTabs:
|
|
2642
|
-
filterTab:
|
|
2643
|
-
filterTabActive:
|
|
2644
|
-
filterCount:
|
|
2645
|
-
bulkActions:
|
|
2646
|
-
bulkCount:
|
|
2647
|
-
bulkBtn:
|
|
2648
|
-
bulkBtnRemove:
|
|
2649
|
-
jobList:
|
|
2650
|
-
listHeader:
|
|
2651
|
-
headerLabel:
|
|
2652
|
-
jobRow:
|
|
2653
|
-
jobRowSelected:
|
|
2654
|
-
jobCheckbox:
|
|
2655
|
-
statusBadge:
|
|
2631
|
+
}, Ps = "_root_18ftw_1", Ms = "_dark_18ftw_23", Es = "_statsBar_18ftw_29", Gs = "_stat_18ftw_29", Hs = "_dot_18ftw_51", Ws = "_statPrinting_18ftw_53", js = "_statQueued_18ftw_55", Fs = "_statDone_18ftw_57", Os = "_statError_18ftw_59", Us = "_toolbar_18ftw_65", Ys = "_filterTabs_18ftw_85", qs = "_filterTab_18ftw_85", Ks = "_filterTabActive_18ftw_109", Vs = "_filterCount_18ftw_111", Zs = "_bulkActions_18ftw_123", Xs = "_bulkCount_18ftw_125", Js = "_bulkBtn_18ftw_127", Qs = "_bulkBtnRemove_18ftw_147", er = "_jobList_18ftw_155", tr = "_listHeader_18ftw_159", ar = "_headerLabel_18ftw_187", nr = "_jobRow_18ftw_193", sr = "_jobRowSelected_18ftw_217", rr = "_jobCheckbox_18ftw_223", lr = "_statusBadge_18ftw_229", ir = "_pulse_18ftw_1", or = "_jobInfo_18ftw_267", cr = "_jobName_18ftw_269", dr = "_jobMeta_18ftw_271", pr = "_jobTime_18ftw_281", mr = "_jobDuration_18ftw_283", ur = "_jobError_18ftw_285", hr = "_progressBar_18ftw_291", _r = "_progressFill_18ftw_305", gr = "_copiesEditor_18ftw_321", yr = "_copiesBtn_18ftw_333", br = "_copiesValue_18ftw_357", wr = "_jobActions_18ftw_363", vr = "_actionBtn_18ftw_365", Nr = "_removeBtn_18ftw_387", fr = "_emptyState_18ftw_395", w = {
|
|
2632
|
+
root: Ps,
|
|
2633
|
+
dark: Ms,
|
|
2634
|
+
statsBar: Es,
|
|
2635
|
+
stat: Gs,
|
|
2636
|
+
dot: Hs,
|
|
2637
|
+
statPrinting: Ws,
|
|
2638
|
+
statQueued: js,
|
|
2639
|
+
statDone: Fs,
|
|
2640
|
+
statError: Os,
|
|
2641
|
+
toolbar: Us,
|
|
2642
|
+
filterTabs: Ys,
|
|
2643
|
+
filterTab: qs,
|
|
2644
|
+
filterTabActive: Ks,
|
|
2645
|
+
filterCount: Vs,
|
|
2646
|
+
bulkActions: Zs,
|
|
2647
|
+
bulkCount: Xs,
|
|
2648
|
+
bulkBtn: Js,
|
|
2649
|
+
bulkBtnRemove: Qs,
|
|
2650
|
+
jobList: er,
|
|
2651
|
+
listHeader: tr,
|
|
2652
|
+
headerLabel: ar,
|
|
2653
|
+
jobRow: nr,
|
|
2654
|
+
jobRowSelected: sr,
|
|
2655
|
+
jobCheckbox: rr,
|
|
2656
|
+
statusBadge: lr,
|
|
2656
2657
|
"badge-queued": "_badge-queued_18ftw_247",
|
|
2657
2658
|
"badge-printing": "_badge-printing_18ftw_249",
|
|
2658
|
-
pulse:
|
|
2659
|
+
pulse: ir,
|
|
2659
2660
|
"badge-done": "_badge-done_18ftw_251",
|
|
2660
2661
|
"badge-error": "_badge-error_18ftw_253",
|
|
2661
2662
|
"badge-paused": "_badge-paused_18ftw_255",
|
|
2662
2663
|
"badge-cancelled": "_badge-cancelled_18ftw_257",
|
|
2663
|
-
jobInfo:
|
|
2664
|
-
jobName:
|
|
2665
|
-
jobMeta:
|
|
2666
|
-
jobTime:
|
|
2667
|
-
jobDuration:
|
|
2668
|
-
jobError:
|
|
2669
|
-
progressBar:
|
|
2670
|
-
progressFill:
|
|
2671
|
-
copiesEditor:
|
|
2672
|
-
copiesBtn:
|
|
2673
|
-
copiesValue:
|
|
2674
|
-
jobActions:
|
|
2675
|
-
actionBtn:
|
|
2676
|
-
removeBtn:
|
|
2677
|
-
emptyState:
|
|
2664
|
+
jobInfo: or,
|
|
2665
|
+
jobName: cr,
|
|
2666
|
+
jobMeta: dr,
|
|
2667
|
+
jobTime: pr,
|
|
2668
|
+
jobDuration: mr,
|
|
2669
|
+
jobError: ur,
|
|
2670
|
+
progressBar: hr,
|
|
2671
|
+
progressFill: _r,
|
|
2672
|
+
copiesEditor: gr,
|
|
2673
|
+
copiesBtn: yr,
|
|
2674
|
+
copiesValue: br,
|
|
2675
|
+
jobActions: wr,
|
|
2676
|
+
actionBtn: vr,
|
|
2677
|
+
removeBtn: Nr,
|
|
2678
|
+
emptyState: fr
|
|
2678
2679
|
}, ge = {
|
|
2679
2680
|
queued: "Kolejka",
|
|
2680
2681
|
printing: "Drukowanie",
|
|
@@ -2683,18 +2684,18 @@ const $s = ({ field: a, data: i, zoom: p }) => {
|
|
|
2683
2684
|
paused: "Wstrzymano",
|
|
2684
2685
|
cancelled: "Anulowano"
|
|
2685
2686
|
};
|
|
2686
|
-
function
|
|
2687
|
+
function kr(a) {
|
|
2687
2688
|
try {
|
|
2688
2689
|
return new Date(a).toLocaleTimeString("pl-PL", { hour: "2-digit", minute: "2-digit" });
|
|
2689
2690
|
} catch {
|
|
2690
2691
|
return a;
|
|
2691
2692
|
}
|
|
2692
2693
|
}
|
|
2693
|
-
function
|
|
2694
|
+
function Sr(a) {
|
|
2694
2695
|
const i = Date.now() - new Date(a).getTime(), p = Math.floor(i / 1e3);
|
|
2695
2696
|
return p < 60 ? `${p}s` : `${Math.floor(p / 60)}m ${p % 60}s`;
|
|
2696
2697
|
}
|
|
2697
|
-
const
|
|
2698
|
+
const Br = ({ jobs: a }) => {
|
|
2698
2699
|
const i = a.filter((h) => h.status === "printing").length, p = a.filter((h) => h.status === "queued").length, l = a.filter((h) => h.status === "done").length, k = a.filter((h) => h.status === "error").length;
|
|
2699
2700
|
return /* @__PURE__ */ s("div", { className: w.statsBar, children: [
|
|
2700
2701
|
/* @__PURE__ */ s("span", { className: `${w.stat} ${w.statPrinting}`, children: [
|
|
@@ -2718,7 +2719,7 @@ const Sr = ({ jobs: a }) => {
|
|
|
2718
2719
|
/* @__PURE__ */ e("strong", { children: k })
|
|
2719
2720
|
] })
|
|
2720
2721
|
] });
|
|
2721
|
-
},
|
|
2722
|
+
}, Cr = ({
|
|
2722
2723
|
job: a,
|
|
2723
2724
|
index: i,
|
|
2724
2725
|
total: p,
|
|
@@ -2758,8 +2759,8 @@ const Sr = ({ jobs: a }) => {
|
|
|
2758
2759
|
"×",
|
|
2759
2760
|
a.options.copies
|
|
2760
2761
|
] }),
|
|
2761
|
-
a.createdAt && /* @__PURE__ */ e("span", { className: w.jobTime, children:
|
|
2762
|
-
a.startedAt && a.status !== "done" && /* @__PURE__ */ e("span", { className: w.jobDuration, children:
|
|
2762
|
+
a.createdAt && /* @__PURE__ */ e("span", { className: w.jobTime, children: kr(a.createdAt) }),
|
|
2763
|
+
a.startedAt && a.status !== "done" && /* @__PURE__ */ e("span", { className: w.jobDuration, children: Sr(a.startedAt) })
|
|
2763
2764
|
] }),
|
|
2764
2765
|
a.status === "printing" && a.progress != null && /* @__PURE__ */ e("div", { className: w.progressBar, children: /* @__PURE__ */ e("div", { className: w.progressFill, style: { width: `${a.progress}%` } }) }),
|
|
2765
2766
|
a.status === "error" && a.errorMessage && /* @__PURE__ */ e("div", { className: w.jobError, children: a.errorMessage })
|
|
@@ -2835,7 +2836,7 @@ const Sr = ({ jobs: a }) => {
|
|
|
2835
2836
|
]
|
|
2836
2837
|
}
|
|
2837
2838
|
);
|
|
2838
|
-
},
|
|
2839
|
+
}, nl = ({
|
|
2839
2840
|
jobs: a,
|
|
2840
2841
|
printers: i = [],
|
|
2841
2842
|
onJobUpdate: p,
|
|
@@ -2867,7 +2868,7 @@ const Sr = ({ jobs: a }) => {
|
|
|
2867
2868
|
className: `${w.root} ${T === "dark" ? w.dark : ""} ${v ?? ""}`,
|
|
2868
2869
|
style: c,
|
|
2869
2870
|
children: [
|
|
2870
|
-
/* @__PURE__ */ e(
|
|
2871
|
+
/* @__PURE__ */ e(Br, { jobs: a }),
|
|
2871
2872
|
/* @__PURE__ */ s("div", { className: w.toolbar, children: [
|
|
2872
2873
|
/* @__PURE__ */ e("div", { className: w.filterTabs, children: ["all", "queued", "printing", "done", "error"].map((I) => /* @__PURE__ */ s(
|
|
2873
2874
|
"button",
|
|
@@ -2905,7 +2906,7 @@ const Sr = ({ jobs: a }) => {
|
|
|
2905
2906
|
/* @__PURE__ */ e("span", { className: w.headerLabel, children: "Akcje" })
|
|
2906
2907
|
] }),
|
|
2907
2908
|
m.map((I, E) => /* @__PURE__ */ e(
|
|
2908
|
-
|
|
2909
|
+
Cr,
|
|
2909
2910
|
{
|
|
2910
2911
|
job: I,
|
|
2911
2912
|
index: a.indexOf(I),
|
|
@@ -2924,41 +2925,41 @@ const Sr = ({ jobs: a }) => {
|
|
|
2924
2925
|
]
|
|
2925
2926
|
}
|
|
2926
2927
|
);
|
|
2927
|
-
},
|
|
2928
|
-
container:
|
|
2929
|
-
buttonGroup:
|
|
2930
|
-
trigger:
|
|
2931
|
-
triggerDisabled:
|
|
2928
|
+
}, Ir = "_container_yzbyh_1", Lr = "_buttonGroup_yzbyh_19", xr = "_trigger_yzbyh_31", zr = "_triggerDisabled_yzbyh_53", Dr = "_mainAction_yzbyh_85", Tr = "_dropdownToggle_yzbyh_95", $r = "_chevron_yzbyh_109", Rr = "_chevronUp_yzbyh_111", Ar = "_dropdown_yzbyh_95", Pr = "_dark_yzbyh_141", Mr = "_section_yzbyh_145", Er = "_sectionLabel_yzbyh_147", Gr = "_divider_yzbyh_167", Hr = "_copiesRow_yzbyh_175", Wr = "_copiesBtn_yzbyh_185", jr = "_copiesValue_yzbyh_209", Fr = "_printerSelect_yzbyh_229", Or = "_printerStatus_yzbyh_255", Ur = "_printerDot_yzbyh_269", Yr = "_printerStatusLabel_yzbyh_279", qr = "_submitBtn_yzbyh_285", Kr = "_spinner_yzbyh_317", Vr = "_spin_yzbyh_317", z = {
|
|
2929
|
+
container: Ir,
|
|
2930
|
+
buttonGroup: Lr,
|
|
2931
|
+
trigger: xr,
|
|
2932
|
+
triggerDisabled: zr,
|
|
2932
2933
|
"variant-primary": "_variant-primary_yzbyh_59",
|
|
2933
2934
|
"variant-secondary": "_variant-secondary_yzbyh_63",
|
|
2934
2935
|
"variant-ghost": "_variant-ghost_yzbyh_67",
|
|
2935
2936
|
"size-sm": "_size-sm_yzbyh_75",
|
|
2936
2937
|
"size-md": "_size-md_yzbyh_77",
|
|
2937
2938
|
"size-lg": "_size-lg_yzbyh_79",
|
|
2938
|
-
mainAction:
|
|
2939
|
-
dropdownToggle:
|
|
2940
|
-
chevron:
|
|
2941
|
-
chevronUp:
|
|
2942
|
-
dropdown:
|
|
2943
|
-
dark:
|
|
2944
|
-
section:
|
|
2945
|
-
sectionLabel:
|
|
2946
|
-
divider:
|
|
2947
|
-
copiesRow:
|
|
2948
|
-
copiesBtn:
|
|
2949
|
-
copiesValue:
|
|
2950
|
-
printerSelect:
|
|
2951
|
-
printerStatus:
|
|
2952
|
-
printerDot:
|
|
2939
|
+
mainAction: Dr,
|
|
2940
|
+
dropdownToggle: Tr,
|
|
2941
|
+
chevron: $r,
|
|
2942
|
+
chevronUp: Rr,
|
|
2943
|
+
dropdown: Ar,
|
|
2944
|
+
dark: Pr,
|
|
2945
|
+
section: Mr,
|
|
2946
|
+
sectionLabel: Er,
|
|
2947
|
+
divider: Gr,
|
|
2948
|
+
copiesRow: Hr,
|
|
2949
|
+
copiesBtn: Wr,
|
|
2950
|
+
copiesValue: jr,
|
|
2951
|
+
printerSelect: Fr,
|
|
2952
|
+
printerStatus: Or,
|
|
2953
|
+
printerDot: Ur,
|
|
2953
2954
|
"dot-ready": "_dot-ready_yzbyh_271",
|
|
2954
2955
|
"dot-busy": "_dot-busy_yzbyh_273",
|
|
2955
2956
|
"dot-offline": "_dot-offline_yzbyh_275",
|
|
2956
2957
|
"dot-error": "_dot-error_yzbyh_277",
|
|
2957
|
-
printerStatusLabel:
|
|
2958
|
-
submitBtn:
|
|
2959
|
-
spinner:
|
|
2960
|
-
spin:
|
|
2961
|
-
},
|
|
2958
|
+
printerStatusLabel: Yr,
|
|
2959
|
+
submitBtn: qr,
|
|
2960
|
+
spinner: Kr,
|
|
2961
|
+
spin: Vr
|
|
2962
|
+
}, sl = ({
|
|
2962
2963
|
onPrint: a,
|
|
2963
2964
|
printers: i = [],
|
|
2964
2965
|
defaultPrinterId: p,
|
|
@@ -3077,9 +3078,9 @@ const Sr = ({ jobs: a }) => {
|
|
|
3077
3078
|
] });
|
|
3078
3079
|
};
|
|
3079
3080
|
export {
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3081
|
+
sl as NicePrintButton,
|
|
3082
|
+
al as NicePrintPreview,
|
|
3083
|
+
nl as NicePrintQueue,
|
|
3084
|
+
tl as NiceTemplateBrowser,
|
|
3085
|
+
el as NiceTemplateEditor
|
|
3085
3086
|
};
|