@nice2dev/ui-printing 1.0.28 → 1.1.5

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 { jsxs as s, jsx as e, Fragment as Y } from "react/jsx-runtime";
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 { useNiceTranslation as Oe } from "@nice2dev/ui";
4
- import { createPortal as Ue } from "react-dom";
5
- const Ye = "_root_552wg_3", qe = "_dark_552wg_27", Ke = "_toolbar_552wg_39", Ve = "_toolbarGroup_552wg_75", Ze = "_toolbarBtn_552wg_107", Xe = "_toolbarBtnActive_552wg_167", Je = "_toolbarBtnDanger_552wg_191", Qe = "_toolbarSelect_552wg_203", et = "_toolbarSep_552wg_233", tt = "_insertWrapper_552wg_259", at = "_insertBtn_552wg_267", nt = "_insertDropdown_552wg_289", st = "_insertCategory_552wg_329", rt = "_insertItem_552wg_347", lt = "_insertIcon_552wg_391", it = "_zoomSelect_552wg_405", ot = "_saveBtn_552wg_437", ct = "_editorBody_552wg_473", dt = "_leftPanel_552wg_489", pt = "_leftTabs_552wg_519", mt = "_leftTab_552wg_519", ut = "_leftTabActive_552wg_591", ht = "_leftTabIcon_552wg_611", _t = "_leftTabLabel_552wg_619", gt = "_leftContent_552wg_629", yt = "_panelHeader_552wg_643", bt = "_panelHeaderIcon_552wg_667", wt = "_panelHeaderName_552wg_675", vt = "_searchBox_552wg_689", Nt = "_searchInput_552wg_697", ft = "_fieldList_552wg_743", kt = "_fieldItem_552wg_753", St = "_fieldItemIcon_552wg_797", Bt = "_fieldItemInfo_552wg_811", Ct = "_fieldItemLabel_552wg_821", It = "_fieldItemPath_552wg_837", Lt = "_fieldItemType_552wg_853", xt = "_layerList_552wg_873", zt = "_layerItem_552wg_885", Dt = "_layerItemSelected_552wg_919", Tt = "_layerIcon_552wg_937", $t = "_layerName_552wg_949", Rt = "_layerActions_552wg_965", At = "_layerBtn_552wg_987", Pt = "_wmList_552wg_1019", Mt = "_wmItem_552wg_1027", Et = "_wmRow_552wg_1053", Gt = "_wmLabel_552wg_1067", Ht = "_wmInput_552wg_1079", Wt = "_wmInputNum_552wg_1111", jt = "_wmSelect_552wg_1131", Ft = "_wmSlider_552wg_1163", Ot = "_wmValue_552wg_1173", Ut = "_wmUnit_552wg_1187", Yt = "_wmDelete_552wg_1197", qt = "_addBtn_552wg_1229", Kt = "_settingsForm_552wg_1265", Vt = "_settingsRow_552wg_1273", Zt = "_settingsLabel_552wg_1287", Xt = "_settingsInput_552wg_1299", Jt = "_settingsInputNum_552wg_1331", Qt = "_settingsTextarea_552wg_1363", ea = "_settingsDivider_552wg_1397", ta = "_settingsUnit_552wg_1417", aa = "_emptyMsg_552wg_1429", na = "_canvasArea_552wg_1447", sa = "_testDataBar_552wg_1473", ra = "_testDataLabel_552wg_1505", la = "_testDataSelect_552wg_1515", ia = "_rulerWrapper_552wg_1535", oa = "_rulerCorner_552wg_1551", ca = "_ruler_552wg_1535", da = "_ruler_h_552wg_1609", pa = "_ruler_v_552wg_1619", ma = "_rulerTick_552wg_1639", ua = "_rulerTickMajor_552wg_1679", ha = "_rulerLabel_552wg_1699", _a = "_paperScroll_552wg_1737", ga = "_paperShadow_552wg_1755", ya = "_marginGuide_552wg_1779", ba = "_watermark_552wg_1795", wa = "_sectionCanvas_552wg_1821", va = "_sectionCanvasOver_552wg_1835", Na = "_sectionTypeChip_552wg_1843", fa = "_sectionResizeBar_552wg_1875", ka = "_sectionResizeGrip_552wg_1909", Sa = "_fieldImagePlaceholder_552wg_1925", Ba = "_fieldBarcodePlaceholder_552wg_1947", Ca = "_fieldSignaturePlaceholder_552wg_1975", Ia = "_resizeHandle_552wg_2001", La = "_handle_n_552wg_2021", xa = "_handle_s_552wg_2023", za = "_handle_e_552wg_2025", Da = "_handle_w_552wg_2027", Ta = "_handle_ne_552wg_2029", $a = "_handle_nw_552wg_2031", Ra = "_handle_se_552wg_2033", Aa = "_handle_sw_552wg_2035", Pa = "_rightPanel_552wg_2041", Ma = "_rightTabs_552wg_2071", Ea = "_rightTab_552wg_2071", Ga = "_rightTabActive_552wg_2135", Ha = "_propsBody_552wg_2147", Wa = "_propsEmpty_552wg_2159", ja = "_propsEmptyIcon_552wg_2181", Fa = "_propsEmptyText_552wg_2191", Oa = "_posGrid_552wg_2203", Ua = "_posCell_552wg_2217", Ya = "_posLabel_552wg_2229", qa = "_posInput_552wg_2241", Ka = "_posUnit_552wg_2283", Va = "_snapSection_552wg_2295", Za = "_snapTitle_552wg_2303", Xa = "_snapRow_552wg_2321", Ja = "_snapBtn_552wg_2331", Qa = "_styleGroup_552wg_2365", en = "_styleGroupTitle_552wg_2373", tn = "_styleRow_552wg_2403", an = "_styleLabel_552wg_2417", nn = "_styleSelect_552wg_2431", sn = "_styleSelectFull_552wg_2461", rn = "_styleSelectSm_552wg_2493", ln = "_styleSelectXs_552wg_2513", on = "_styleInput_552wg_2545", cn = "_styleInputFull_552wg_2577", dn = "_styleUnit_552wg_2609", pn = "_styleValue_552wg_2621", mn = "_toggleGroup_552wg_2635", un = "_toggleBtn_552wg_2645", hn = "_toggleBtnActive_552wg_2675", _n = "_colorPicker_552wg_2689", gn = "_colorHex_552wg_2707", yn = "_clearBtn_552wg_2741", bn = "_sliderInput_552wg_2773", wn = "_conditionalHint_552wg_2785", vn = "_clearConditionalBtn_552wg_2817", Nn = "_shortcutGrid_552wg_2849", fn = "_shortcutChip_552wg_2863", kn = "_shortcutKeys_552wg_2895", Sn = "_shortcutLabel_552wg_2915", t = {
6
- root: Ye,
7
- dark: qe,
8
- toolbar: Ke,
9
- toolbarGroup: Ve,
10
- toolbarBtn: Ze,
11
- toolbarBtnActive: Xe,
12
- toolbarBtnDanger: Je,
13
- toolbarSelect: Qe,
14
- toolbarSep: et,
15
- insertWrapper: tt,
16
- insertBtn: at,
17
- insertDropdown: nt,
18
- insertCategory: st,
19
- insertItem: rt,
20
- insertIcon: lt,
21
- zoomSelect: it,
22
- saveBtn: ot,
23
- editorBody: ct,
24
- leftPanel: dt,
25
- leftTabs: pt,
26
- leftTab: mt,
27
- leftTabActive: ut,
28
- leftTabIcon: ht,
29
- leftTabLabel: _t,
30
- leftContent: gt,
31
- panelHeader: yt,
32
- panelHeaderIcon: bt,
33
- panelHeaderName: wt,
34
- searchBox: vt,
35
- searchInput: Nt,
36
- fieldList: ft,
37
- fieldItem: kt,
38
- fieldItemIcon: St,
39
- fieldItemInfo: Bt,
40
- fieldItemLabel: Ct,
41
- fieldItemPath: It,
42
- fieldItemType: Lt,
43
- layerList: xt,
44
- layerItem: zt,
45
- layerItemSelected: Dt,
46
- layerIcon: Tt,
47
- layerName: $t,
48
- layerActions: Rt,
49
- layerBtn: At,
50
- wmList: Pt,
51
- wmItem: Mt,
52
- wmRow: Et,
53
- wmLabel: Gt,
54
- wmInput: Ht,
55
- wmInputNum: Wt,
56
- wmSelect: jt,
57
- wmSlider: Ft,
58
- wmValue: Ot,
59
- wmUnit: Ut,
60
- wmDelete: Yt,
61
- addBtn: qt,
62
- settingsForm: Kt,
63
- settingsRow: Vt,
64
- settingsLabel: Zt,
65
- settingsInput: Xt,
66
- settingsInputNum: Jt,
67
- settingsTextarea: Qt,
68
- settingsDivider: ea,
69
- settingsUnit: ta,
70
- emptyMsg: aa,
71
- canvasArea: na,
72
- testDataBar: sa,
73
- testDataLabel: ra,
74
- testDataSelect: la,
75
- rulerWrapper: ia,
76
- rulerCorner: oa,
77
- ruler: ca,
78
- ruler_h: da,
79
- ruler_v: pa,
80
- rulerTick: ma,
81
- rulerTickMajor: ua,
82
- rulerLabel: ha,
83
- paperScroll: _a,
84
- paperShadow: ga,
85
- marginGuide: ya,
86
- watermark: ba,
87
- sectionCanvas: wa,
88
- sectionCanvasOver: va,
89
- sectionTypeChip: Na,
90
- sectionResizeBar: fa,
91
- sectionResizeGrip: ka,
92
- fieldImagePlaceholder: Sa,
93
- fieldBarcodePlaceholder: Ba,
94
- fieldSignaturePlaceholder: Ca,
95
- resizeHandle: Ia,
96
- handle_n: La,
97
- handle_s: xa,
98
- handle_e: za,
99
- handle_w: Da,
100
- handle_ne: Ta,
101
- handle_nw: $a,
102
- handle_se: Ra,
103
- handle_sw: Aa,
104
- rightPanel: Pa,
105
- rightTabs: Ma,
106
- rightTab: Ea,
107
- rightTabActive: Ga,
108
- propsBody: Ha,
109
- propsEmpty: Wa,
110
- propsEmptyIcon: ja,
111
- propsEmptyText: Fa,
112
- posGrid: Oa,
113
- posCell: Ua,
114
- posLabel: Ya,
115
- posInput: qa,
116
- posUnit: Ka,
117
- snapSection: Va,
118
- snapTitle: Za,
119
- snapRow: Xa,
120
- snapBtn: Ja,
121
- styleGroup: Qa,
122
- styleGroupTitle: en,
123
- styleRow: tn,
124
- styleLabel: an,
125
- styleSelect: nn,
126
- styleSelectFull: sn,
127
- styleSelectSm: rn,
128
- styleSelectXs: ln,
129
- styleInput: on,
130
- styleInputFull: cn,
131
- styleUnit: dn,
132
- styleValue: pn,
133
- toggleGroup: mn,
134
- toggleBtn: un,
135
- toggleBtnActive: hn,
136
- colorPicker: _n,
137
- colorHex: gn,
138
- clearBtn: yn,
139
- sliderInput: bn,
140
- conditionalHint: wn,
141
- clearConditionalBtn: vn,
142
- shortcutGrid: Nn,
143
- shortcutChip: fn,
144
- shortcutKeys: kn,
145
- shortcutLabel: Sn
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
- }, Bn = [
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 Cn(a, i) {
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 = { ...p.style, borderWidth: 0.5, borderColor: "var(--nice-text, #000000)", borderStyle: "solid" }), p;
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
- }, In = ["n", "s", "e", "w", "ne", "nw", "se", "sw"], Ln = ({ onResizeStart: a }) => /* @__PURE__ */ e(Y, { children: In.map((i) => /* @__PURE__ */ e(
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 xn(a, i) {
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 zn = ({
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: xn(a, l) }),
352
- p && !b && /* @__PURE__ */ e(Ln, { onResizeStart: S })
356
+ ] }) : /* @__PURE__ */ e("span", { style: { display: "block", width: "100%" }, children: zn(a, l) }),
357
+ p && !b && /* @__PURE__ */ e(xn, { onResizeStart: S })
353
358
  ] });
354
- }, Dn = ({
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
- zn,
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
- ] }), Tn = [
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
- ], $n = [
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
- ], Rn = ({
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
- }, An = ({
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: Tn.map((r) => /* @__PURE__ */ s(
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
- }, Pn = ({
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: $n.map((n) => n.id === "data" && !v ? null : /* @__PURE__ */ e(
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: Bn.map((n) => /* @__PURE__ */ e("option", { value: n, children: n }, n))
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 Mn() {
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 Qr = ({
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(Cn, {
1690
+ const [{ past: v, present: c, future: T }, N] = je(In, {
1686
1691
  past: [],
1687
- present: a ?? Mn(),
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__ */ s(
1977
- "div",
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
- onClick: () => n(/* @__PURE__ */ new Set()),
1982
- children: [
1983
- /* @__PURE__ */ e(
1984
- Rn,
1985
- {
1986
- tpl: c,
1987
- zoom: f,
1988
- canUndo: v.length > 0,
1989
- canRedo: T.length > 0,
1990
- showGrid: _,
1991
- showRulers: pe,
1992
- readOnly: h,
1993
- selectedCount: r.size,
1994
- onPaperChange: (o, d) => R({ paperSize: o, orientation: d }),
1995
- onZoom: D,
1996
- onUndo: () => N({ type: "UNDO" }),
1997
- onRedo: () => N({ type: "REDO" }),
1998
- onToggleGrid: () => q((o) => !o),
1999
- onToggleRulers: () => Ce((o) => !o),
2000
- onInsert: be,
2001
- onDelete: he,
2002
- onDuplicate: _e,
2003
- onAlignH: De,
2004
- onAlignV: Te,
2005
- onBringForward: $e,
2006
- onSendBackward: Re,
2007
- onSave: k ? () => k(c) : void 0
2008
- }
2009
- ),
2010
- /* @__PURE__ */ s("div", { className: t.editorBody, children: [
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
- An,
2044
+ "select",
2013
2045
  {
2014
- activeTab: I,
2015
- onTabChange: E,
2016
- schema: i,
2017
- tpl: c,
2018
- allFields: X,
2019
- selectedIds: r,
2020
- onInsertSchemaField: (o) => be(o.type, o),
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
- /* @__PURE__ */ s("div", { className: t.canvasArea, children: [
2027
- Array.isArray(p) && p.length > 0 && /* @__PURE__ */ s("div", { className: t.testDataBar, children: [
2028
- /* @__PURE__ */ e("span", { className: t.testDataLabel, children: "Dane testowe:" }),
2029
- /* @__PURE__ */ e(
2030
- "select",
2031
- {
2032
- className: t.testDataSelect,
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
- Pn,
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
- field: G,
2097
- activeTab: W,
2098
- onTabChange: P,
2099
- onChange: (o) => G && ue(G.id, o),
2091
+ section: o,
2092
+ zoom: f,
2100
2093
  paperWidthMm: Z,
2101
- paperHeightMm: me
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
- }, En = "_root_6hwvk_1", Gn = "_dark_6hwvk_25", Hn = "_topBar_6hwvk_31", Wn = "_searchInput_6hwvk_55", jn = "_actionBtn_6hwvk_83", Fn = "_categoryRow_6hwvk_117", On = "_catChip_6hwvk_141", Un = "_catChipActive_6hwvk_167", Yn = "_grid_6hwvk_181", qn = "_card_6hwvk_203", Kn = "_cardSelected_6hwvk_235", Vn = "_thumbnail_6hwvk_251", Zn = "_thumbnailImg_6hwvk_265", Xn = "_thumbnailPlaceholder_6hwvk_277", Jn = "_paperMini_6hwvk_291", Qn = "_paperLine_6hwvk_315", es = "_cardOverlay_6hwvk_329", ts = "_overlayBtn_6hwvk_349", as = "_overlayBtnDanger_6hwvk_381", ns = "_cardBody_6hwvk_411", ss = "_cardName_6hwvk_415", rs = "_cardDesc_6hwvk_439", ls = "_cardMeta_6hwvk_461", is = "_cardSize_6hwvk_475", os = "_cardCat_6hwvk_491", cs = "_cardTags_6hwvk_507", ds = "_cardTag_6hwvk_507", ps = "_emptyState_6hwvk_531", ms = "_emptyIcon_6hwvk_553", L = {
2109
- root: En,
2110
- dark: Gn,
2111
- topBar: Hn,
2112
- searchInput: Wn,
2113
- actionBtn: jn,
2114
- categoryRow: Fn,
2115
- catChip: On,
2116
- catChipActive: Un,
2117
- grid: Yn,
2118
- card: qn,
2119
- cardSelected: Kn,
2120
- thumbnail: Vn,
2121
- thumbnailImg: Zn,
2122
- thumbnailPlaceholder: Xn,
2123
- paperMini: Jn,
2124
- paperLine: Qn,
2125
- cardOverlay: es,
2126
- overlayBtn: ts,
2127
- overlayBtnDanger: as,
2128
- cardBody: ns,
2129
- cardName: ss,
2130
- cardDesc: rs,
2131
- cardMeta: ls,
2132
- cardSize: is,
2133
- cardCat: os,
2134
- cardTags: cs,
2135
- cardTag: ds,
2136
- emptyState: ps,
2137
- emptyIcon: ms
2138
- }, us = ["Faktury", "Raporty", "Etykiety", "Listy", "Umowy", "Inne"];
2139
- function hs(a) {
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 _s(a) {
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 el = ({
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 hs(x);
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
- us.map((y) => /* @__PURE__ */ e(
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), _s(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
- }, gs = "_root_1grye_1", ys = "_dark_1grye_19", bs = "_headerBar_1grye_25", ws = "_entityNav_1grye_47", vs = "_navBtn_1grye_49", Ns = "_navLabel_1grye_73", fs = "_sampleBadge_1grye_77", ks = "_zoomBar_1grye_95", Ss = "_zoomBtn_1grye_97", Bs = "_zoomLabel_1grye_119", Cs = "_printBtn_1grye_123", Is = "_canvas_1grye_149", Ls = "_page_1grye_169", xs = "_watermark_1grye_191", zs = "_footerBar_1grye_221", j = {
2325
- root: gs,
2326
- dark: ys,
2327
- headerBar: bs,
2328
- entityNav: ws,
2329
- navBtn: vs,
2330
- navLabel: Ns,
2331
- sampleBadge: fs,
2332
- zoomBar: ks,
2333
- zoomBtn: Ss,
2334
- zoomLabel: Bs,
2335
- printBtn: Cs,
2336
- canvas: Is,
2337
- page: Ls,
2338
- watermark: xs,
2339
- footerBar: zs
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 Ds(a, i) {
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 Ts(a, i, p) {
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 $s = ({ field: a, data: i, zoom: p }) => {
2378
- const l = a.dataPath ? Ds(a.dataPath, i) : null, k = l != null ? Ts(l, a.type, a.format) : a.fallback ?? "", h = (b) => b * p * V, S = {
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
- }, Rs = ({ template: a, data: i, zoom: p }) => {
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($s, { field: g, data: i, zoom: p }, g.id))
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
- }, tl = ({
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 } = Oe(), [T, N] = M(0), [r, n] = M(0.8), [u, m] = M(!0), f = g !== void 0, D = f ? g : u, y = () => {
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(Rs, { template: a, data: I, zoom: r }) }),
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 ? Ue(/* @__PURE__ */ e(
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
- }, As = "_root_18ftw_1", Ps = "_dark_18ftw_23", Ms = "_statsBar_18ftw_29", Es = "_stat_18ftw_29", Gs = "_dot_18ftw_51", Hs = "_statPrinting_18ftw_53", Ws = "_statQueued_18ftw_55", js = "_statDone_18ftw_57", Fs = "_statError_18ftw_59", Os = "_toolbar_18ftw_65", Us = "_filterTabs_18ftw_85", Ys = "_filterTab_18ftw_85", qs = "_filterTabActive_18ftw_109", Ks = "_filterCount_18ftw_111", Vs = "_bulkActions_18ftw_123", Zs = "_bulkCount_18ftw_125", Xs = "_bulkBtn_18ftw_127", Js = "_bulkBtnRemove_18ftw_147", Qs = "_jobList_18ftw_155", er = "_listHeader_18ftw_159", tr = "_headerLabel_18ftw_187", ar = "_jobRow_18ftw_193", nr = "_jobRowSelected_18ftw_217", sr = "_jobCheckbox_18ftw_223", rr = "_statusBadge_18ftw_229", lr = "_pulse_18ftw_1", ir = "_jobInfo_18ftw_267", or = "_jobName_18ftw_269", cr = "_jobMeta_18ftw_271", dr = "_jobTime_18ftw_281", pr = "_jobDuration_18ftw_283", mr = "_jobError_18ftw_285", ur = "_progressBar_18ftw_291", hr = "_progressFill_18ftw_305", _r = "_copiesEditor_18ftw_321", gr = "_copiesBtn_18ftw_333", yr = "_copiesValue_18ftw_357", br = "_jobActions_18ftw_363", wr = "_actionBtn_18ftw_365", vr = "_removeBtn_18ftw_387", Nr = "_emptyState_18ftw_395", w = {
2631
- root: As,
2632
- dark: Ps,
2633
- statsBar: Ms,
2634
- stat: Es,
2635
- dot: Gs,
2636
- statPrinting: Hs,
2637
- statQueued: Ws,
2638
- statDone: js,
2639
- statError: Fs,
2640
- toolbar: Os,
2641
- filterTabs: Us,
2642
- filterTab: Ys,
2643
- filterTabActive: qs,
2644
- filterCount: Ks,
2645
- bulkActions: Vs,
2646
- bulkCount: Zs,
2647
- bulkBtn: Xs,
2648
- bulkBtnRemove: Js,
2649
- jobList: Qs,
2650
- listHeader: er,
2651
- headerLabel: tr,
2652
- jobRow: ar,
2653
- jobRowSelected: nr,
2654
- jobCheckbox: sr,
2655
- statusBadge: rr,
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: lr,
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: ir,
2664
- jobName: or,
2665
- jobMeta: cr,
2666
- jobTime: dr,
2667
- jobDuration: pr,
2668
- jobError: mr,
2669
- progressBar: ur,
2670
- progressFill: hr,
2671
- copiesEditor: _r,
2672
- copiesBtn: gr,
2673
- copiesValue: yr,
2674
- jobActions: br,
2675
- actionBtn: wr,
2676
- removeBtn: vr,
2677
- emptyState: Nr
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 fr(a) {
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 kr(a) {
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 Sr = ({ jobs: a }) => {
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
- }, Br = ({
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: fr(a.createdAt) }),
2762
- a.startedAt && a.status !== "done" && /* @__PURE__ */ e("span", { className: w.jobDuration, children: kr(a.startedAt) })
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
- }, al = ({
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(Sr, { jobs: a }),
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
- Br,
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
- }, Cr = "_container_yzbyh_1", Ir = "_buttonGroup_yzbyh_19", Lr = "_trigger_yzbyh_31", xr = "_triggerDisabled_yzbyh_53", zr = "_mainAction_yzbyh_85", Dr = "_dropdownToggle_yzbyh_95", Tr = "_chevron_yzbyh_109", $r = "_chevronUp_yzbyh_111", Rr = "_dropdown_yzbyh_95", Ar = "_dark_yzbyh_141", Pr = "_section_yzbyh_145", Mr = "_sectionLabel_yzbyh_147", Er = "_divider_yzbyh_167", Gr = "_copiesRow_yzbyh_175", Hr = "_copiesBtn_yzbyh_185", Wr = "_copiesValue_yzbyh_209", jr = "_printerSelect_yzbyh_229", Fr = "_printerStatus_yzbyh_255", Or = "_printerDot_yzbyh_269", Ur = "_printerStatusLabel_yzbyh_279", Yr = "_submitBtn_yzbyh_285", qr = "_spinner_yzbyh_317", Kr = "_spin_yzbyh_317", z = {
2928
- container: Cr,
2929
- buttonGroup: Ir,
2930
- trigger: Lr,
2931
- triggerDisabled: xr,
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: zr,
2939
- dropdownToggle: Dr,
2940
- chevron: Tr,
2941
- chevronUp: $r,
2942
- dropdown: Rr,
2943
- dark: Ar,
2944
- section: Pr,
2945
- sectionLabel: Mr,
2946
- divider: Er,
2947
- copiesRow: Gr,
2948
- copiesBtn: Hr,
2949
- copiesValue: Wr,
2950
- printerSelect: jr,
2951
- printerStatus: Fr,
2952
- printerDot: Or,
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: Ur,
2958
- submitBtn: Yr,
2959
- spinner: qr,
2960
- spin: Kr
2961
- }, nl = ({
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
- nl as NicePrintButton,
3081
- tl as NicePrintPreview,
3082
- al as NicePrintQueue,
3083
- el as NiceTemplateBrowser,
3084
- Qr as NiceTemplateEditor
3081
+ sl as NicePrintButton,
3082
+ al as NicePrintPreview,
3083
+ nl as NicePrintQueue,
3084
+ tl as NiceTemplateBrowser,
3085
+ el as NiceTemplateEditor
3085
3086
  };