@feedmepos/mf-kitchen 1.0.2 → 1.0.3
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/{AdvanceModeView-e386f866.js → AdvanceModeView-4fbb592c.js} +1138 -1132
- package/dist/{NormalModeView-5ae53fb1.js → NormalModeView-9c657951.js} +81 -75
- package/dist/ReceiptTemplate-9d2103ec.js +111 -0
- package/dist/{restaurant-a106b257.js → TemplateHeader-88f309d9.js} +26906 -27006
- package/dist/app-57cd590d.js +686 -0
- package/dist/app.js +5 -703
- package/dist/components/Preview.vue.d.ts +1 -1
- package/dist/style.css +1 -1
- package/dist/tsconfig.app.tsbuildinfo +1 -1
- package/dist/views/receipt-template/AdvanceModeView.vue.d.ts +165 -2
- package/dist/views/receipt-template/NormalModeView.vue.d.ts +165 -2
- package/package.json +4 -3
- package/dist/ReceiptTemplate-ad04045a.js +0 -18
- package/dist/components/Navigator.vue.d.ts +0 -2
- package/dist/stores/restaurant.d.ts +0 -454
|
@@ -1,95 +1,95 @@
|
|
|
1
|
-
import { defineComponent as ee, computed as L, toRefs as
|
|
2
|
-
import { e as R, t as
|
|
3
|
-
import { useI18n as me, useCoreStore as
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import "
|
|
6
|
-
var
|
|
1
|
+
import { defineComponent as ee, computed as L, toRefs as Go, unref as y, ref as j, reactive as Ho, h as jo, getCurrentInstance as Gt, watch as Ye, onUnmounted as Ko, onMounted as bo, nextTick as yo, isRef as It, openBlock as x, createElementBlock as W, normalizeStyle as ge, createElementVNode as V, toDisplayString as H, resolveComponent as J, createBlock as ye, resolveDynamicComponent as _o, markRaw as qo, mergeProps as Jo, createVNode as w, withCtx as be, Fragment as we, renderList as Se, normalizeClass as qt, createCommentVNode as Me, createTextVNode as Zo, onBeforeUnmount as Qo } from "vue";
|
|
2
|
+
import { e as R, t as en, w as it, b as at, c as tn, d as on, Z as nn, F as pe, W as Pe, f as ln, K as lt, I as an, i as rn, g as Co, h as sn, j as dn, k as un, l as cn, u as mn, _ as pn, P as fn, r as Jt, m as Zt, a as gn, T as vn, n as Qt } from "./TemplateHeader-88f309d9.js";
|
|
3
|
+
import { useI18n as me, useCoreStore as hn } from "@feedmepos/mf-common";
|
|
4
|
+
import { useSnackbar as Eo } from "@feedmepos/ui-library";
|
|
5
|
+
import { _ as St } from "./app-57cd590d.js";
|
|
6
|
+
var bn = Object.defineProperty, yt = Object.getOwnPropertySymbols, To = Object.prototype.hasOwnProperty, wo = Object.prototype.propertyIsEnumerable, eo = (e, o, t) => o in e ? bn(e, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[o] = t, Ue = (e, o) => {
|
|
7
7
|
for (var t in o || (o = {}))
|
|
8
|
-
|
|
9
|
-
if (
|
|
10
|
-
for (var t of
|
|
11
|
-
|
|
8
|
+
To.call(o, t) && eo(e, t, o[t]);
|
|
9
|
+
if (yt)
|
|
10
|
+
for (var t of yt(o))
|
|
11
|
+
wo.call(o, t) && eo(e, t, o[t]);
|
|
12
12
|
return e;
|
|
13
|
-
},
|
|
13
|
+
}, So = (e, o) => {
|
|
14
14
|
var t = {};
|
|
15
15
|
for (var n in e)
|
|
16
|
-
|
|
17
|
-
if (e != null &&
|
|
18
|
-
for (var n of
|
|
19
|
-
o.indexOf(n) < 0 &&
|
|
16
|
+
To.call(e, n) && o.indexOf(n) < 0 && (t[n] = e[n]);
|
|
17
|
+
if (e != null && yt)
|
|
18
|
+
for (var n of yt(e))
|
|
19
|
+
o.indexOf(n) < 0 && wo.call(e, n) && (t[n] = e[n]);
|
|
20
20
|
return t;
|
|
21
21
|
};
|
|
22
|
-
const
|
|
23
|
-
function
|
|
24
|
-
console.warn(
|
|
22
|
+
const Vo = "[vue-draggable-plus]: ";
|
|
23
|
+
function yn(e) {
|
|
24
|
+
console.warn(Vo + e);
|
|
25
25
|
}
|
|
26
|
-
function
|
|
27
|
-
console.error(
|
|
26
|
+
function _n(e) {
|
|
27
|
+
console.error(Vo + e);
|
|
28
28
|
}
|
|
29
|
-
function
|
|
29
|
+
function to(e, o, t) {
|
|
30
30
|
return t >= 0 && t < e.length && e.splice(t, 0, e.splice(o, 1)[0]), e;
|
|
31
31
|
}
|
|
32
|
-
function
|
|
32
|
+
function Cn(e) {
|
|
33
33
|
return e.replace(/-(\w)/g, (o, t) => t ? t.toUpperCase() : "");
|
|
34
34
|
}
|
|
35
|
-
function
|
|
36
|
-
return Object.keys(e).reduce((o, t) => (typeof e[t] < "u" && (o[
|
|
35
|
+
function En(e) {
|
|
36
|
+
return Object.keys(e).reduce((o, t) => (typeof e[t] < "u" && (o[Cn(t)] = e[t]), o), {});
|
|
37
37
|
}
|
|
38
|
-
function
|
|
38
|
+
function oo(e, o) {
|
|
39
39
|
return Array.isArray(e) && e.splice(o, 1), e;
|
|
40
40
|
}
|
|
41
|
-
function
|
|
41
|
+
function no(e, o, t) {
|
|
42
42
|
return Array.isArray(e) && e.splice(o, 0, t), e;
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function Tn(e) {
|
|
45
45
|
return typeof e > "u";
|
|
46
46
|
}
|
|
47
|
-
function
|
|
47
|
+
function wn(e) {
|
|
48
48
|
return typeof e == "string";
|
|
49
49
|
}
|
|
50
|
-
function
|
|
50
|
+
function lo(e, o, t) {
|
|
51
51
|
const n = e.children[t];
|
|
52
52
|
e.insertBefore(o, n);
|
|
53
53
|
}
|
|
54
|
-
function
|
|
54
|
+
function Ft(e) {
|
|
55
55
|
e.parentNode && e.parentNode.removeChild(e);
|
|
56
56
|
}
|
|
57
|
-
function
|
|
57
|
+
function Sn(e, o = document) {
|
|
58
58
|
var t;
|
|
59
59
|
let n = null;
|
|
60
|
-
return typeof (o == null ? void 0 : o.querySelector) == "function" ? n = (t = o == null ? void 0 : o.querySelector) == null ? void 0 : t.call(o, e) : n = document.querySelector(e), n ||
|
|
60
|
+
return typeof (o == null ? void 0 : o.querySelector) == "function" ? n = (t = o == null ? void 0 : o.querySelector) == null ? void 0 : t.call(o, e) : n = document.querySelector(e), n || yn(`Element not found: ${e}`), n;
|
|
61
61
|
}
|
|
62
|
-
function
|
|
62
|
+
function Vn(e, o, t = null) {
|
|
63
63
|
return function(...n) {
|
|
64
64
|
return e.apply(t, n), o.apply(t, n);
|
|
65
65
|
};
|
|
66
66
|
}
|
|
67
|
-
function
|
|
68
|
-
const t =
|
|
67
|
+
function kn(e, o) {
|
|
68
|
+
const t = Ue({}, e);
|
|
69
69
|
return Object.keys(o).forEach((n) => {
|
|
70
|
-
t[n] ? t[n] =
|
|
70
|
+
t[n] ? t[n] = Vn(e[n], o[n]) : t[n] = o[n];
|
|
71
71
|
}), t;
|
|
72
72
|
}
|
|
73
|
-
function
|
|
73
|
+
function xn(e) {
|
|
74
74
|
return e instanceof HTMLElement;
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function io(e, o) {
|
|
77
77
|
Object.keys(e).forEach((t) => {
|
|
78
78
|
o(t, e[t]);
|
|
79
79
|
});
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function Dn(e) {
|
|
82
82
|
return e.charCodeAt(0) === 111 && e.charCodeAt(1) === 110 && // uppercase letter
|
|
83
83
|
(e.charCodeAt(2) > 122 || e.charCodeAt(2) < 97);
|
|
84
84
|
}
|
|
85
|
-
const
|
|
85
|
+
const In = Object.assign;
|
|
86
86
|
/**!
|
|
87
87
|
* Sortable 1.15.2
|
|
88
88
|
* @author RubaXa <trash@rubaxa.org>
|
|
89
89
|
* @author owenm <owen23355@gmail.com>
|
|
90
90
|
* @license MIT
|
|
91
91
|
*/
|
|
92
|
-
function
|
|
92
|
+
function ao(e, o) {
|
|
93
93
|
var t = Object.keys(e);
|
|
94
94
|
if (Object.getOwnPropertySymbols) {
|
|
95
95
|
var n = Object.getOwnPropertySymbols(e);
|
|
@@ -99,26 +99,26 @@ function so(e, o) {
|
|
|
99
99
|
}
|
|
100
100
|
return t;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Ce(e) {
|
|
103
103
|
for (var o = 1; o < arguments.length; o++) {
|
|
104
104
|
var t = arguments[o] != null ? arguments[o] : {};
|
|
105
|
-
o % 2 ?
|
|
106
|
-
|
|
107
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
105
|
+
o % 2 ? ao(Object(t), !0).forEach(function(n) {
|
|
106
|
+
Fn(e, n, t[n]);
|
|
107
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ao(Object(t)).forEach(function(n) {
|
|
108
108
|
Object.defineProperty(e, n, Object.getOwnPropertyDescriptor(t, n));
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
return e;
|
|
112
112
|
}
|
|
113
|
-
function
|
|
113
|
+
function ft(e) {
|
|
114
114
|
"@babel/helpers - typeof";
|
|
115
|
-
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ?
|
|
115
|
+
return typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? ft = function(o) {
|
|
116
116
|
return typeof o;
|
|
117
|
-
} :
|
|
117
|
+
} : ft = function(o) {
|
|
118
118
|
return o && typeof Symbol == "function" && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
119
|
-
},
|
|
119
|
+
}, ft(e);
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function Fn(e, o, t) {
|
|
122
122
|
return o in e ? Object.defineProperty(e, o, {
|
|
123
123
|
value: t,
|
|
124
124
|
enumerable: !0,
|
|
@@ -136,41 +136,41 @@ function ke() {
|
|
|
136
136
|
return e;
|
|
137
137
|
}, ke.apply(this, arguments);
|
|
138
138
|
}
|
|
139
|
-
function
|
|
139
|
+
function On(e, o) {
|
|
140
140
|
if (e == null)
|
|
141
141
|
return {};
|
|
142
|
-
var t = {}, n = Object.keys(e), l,
|
|
143
|
-
for (
|
|
144
|
-
l = n[
|
|
142
|
+
var t = {}, n = Object.keys(e), l, a;
|
|
143
|
+
for (a = 0; a < n.length; a++)
|
|
144
|
+
l = n[a], !(o.indexOf(l) >= 0) && (t[l] = e[l]);
|
|
145
145
|
return t;
|
|
146
146
|
}
|
|
147
|
-
function
|
|
147
|
+
function Rn(e, o) {
|
|
148
148
|
if (e == null)
|
|
149
149
|
return {};
|
|
150
|
-
var t =
|
|
150
|
+
var t = On(e, o), n, l;
|
|
151
151
|
if (Object.getOwnPropertySymbols) {
|
|
152
|
-
var
|
|
153
|
-
for (l = 0; l <
|
|
154
|
-
n =
|
|
152
|
+
var a = Object.getOwnPropertySymbols(e);
|
|
153
|
+
for (l = 0; l < a.length; l++)
|
|
154
|
+
n = a[l], !(o.indexOf(n) >= 0) && Object.prototype.propertyIsEnumerable.call(e, n) && (t[n] = e[n]);
|
|
155
155
|
}
|
|
156
156
|
return t;
|
|
157
157
|
}
|
|
158
|
-
var
|
|
158
|
+
var An = "1.15.2";
|
|
159
159
|
function Ve(e) {
|
|
160
160
|
if (typeof window < "u" && window.navigator)
|
|
161
161
|
return !!/* @__PURE__ */ navigator.userAgent.match(e);
|
|
162
162
|
}
|
|
163
|
-
var xe = Ve(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),
|
|
163
|
+
var xe = Ve(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), rt = Ve(/Edge/i), ro = Ve(/firefox/i), Ze = Ve(/safari/i) && !Ve(/chrome/i) && !Ve(/android/i), ko = Ve(/iP(ad|od|hone)/i), xo = Ve(/chrome/i) && Ve(/android/i), Do = {
|
|
164
164
|
capture: !1,
|
|
165
165
|
passive: !1
|
|
166
166
|
};
|
|
167
167
|
function z(e, o, t) {
|
|
168
|
-
e.addEventListener(o, t, !xe &&
|
|
168
|
+
e.addEventListener(o, t, !xe && Do);
|
|
169
169
|
}
|
|
170
|
-
function
|
|
171
|
-
e.removeEventListener(o, t, !xe &&
|
|
170
|
+
function X(e, o, t) {
|
|
171
|
+
e.removeEventListener(o, t, !xe && Do);
|
|
172
172
|
}
|
|
173
|
-
function
|
|
173
|
+
function _t(e, o) {
|
|
174
174
|
if (o) {
|
|
175
175
|
if (o[0] === ">" && (o = o.substring(1)), e)
|
|
176
176
|
try {
|
|
@@ -186,32 +186,32 @@ function Ct(e, o) {
|
|
|
186
186
|
return !1;
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
function
|
|
189
|
+
function Wn(e) {
|
|
190
190
|
return e.host && e !== document && e.host.nodeType ? e.host : e.parentNode;
|
|
191
191
|
}
|
|
192
192
|
function he(e, o, t, n) {
|
|
193
193
|
if (e) {
|
|
194
194
|
t = t || document;
|
|
195
195
|
do {
|
|
196
|
-
if (o != null && (o[0] === ">" ? e.parentNode === t &&
|
|
196
|
+
if (o != null && (o[0] === ">" ? e.parentNode === t && _t(e, o) : _t(e, o)) || n && e === t)
|
|
197
197
|
return e;
|
|
198
198
|
if (e === t)
|
|
199
199
|
break;
|
|
200
|
-
} while (e =
|
|
200
|
+
} while (e = Wn(e));
|
|
201
201
|
}
|
|
202
202
|
return null;
|
|
203
203
|
}
|
|
204
|
-
var
|
|
204
|
+
var so = /\s+/g;
|
|
205
205
|
function de(e, o, t) {
|
|
206
206
|
if (e && o)
|
|
207
207
|
if (e.classList)
|
|
208
208
|
e.classList[t ? "add" : "remove"](o);
|
|
209
209
|
else {
|
|
210
|
-
var n = (" " + e.className + " ").replace(
|
|
211
|
-
e.className = (n + (t ? " " + o : "")).replace(
|
|
210
|
+
var n = (" " + e.className + " ").replace(so, " ").replace(" " + o + " ", " ");
|
|
211
|
+
e.className = (n + (t ? " " + o : "")).replace(so, " ");
|
|
212
212
|
}
|
|
213
213
|
}
|
|
214
|
-
function
|
|
214
|
+
function F(e, o, t) {
|
|
215
215
|
var n = e && e.style;
|
|
216
216
|
if (n) {
|
|
217
217
|
if (t === void 0)
|
|
@@ -219,81 +219,81 @@ function I(e, o, t) {
|
|
|
219
219
|
!(o in n) && o.indexOf("webkit") === -1 && (o = "-webkit-" + o), n[o] = t + (typeof t == "string" ? "" : "px");
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function ze(e, o) {
|
|
223
223
|
var t = "";
|
|
224
224
|
if (typeof e == "string")
|
|
225
225
|
t = e;
|
|
226
226
|
else
|
|
227
227
|
do {
|
|
228
|
-
var n =
|
|
228
|
+
var n = F(e, "transform");
|
|
229
229
|
n && n !== "none" && (t = n + " " + t);
|
|
230
230
|
} while (!o && (e = e.parentNode));
|
|
231
231
|
var l = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
232
232
|
return l && new l(t);
|
|
233
233
|
}
|
|
234
|
-
function
|
|
234
|
+
function Io(e, o, t) {
|
|
235
235
|
if (e) {
|
|
236
|
-
var n = e.getElementsByTagName(o), l = 0,
|
|
236
|
+
var n = e.getElementsByTagName(o), l = 0, a = n.length;
|
|
237
237
|
if (t)
|
|
238
|
-
for (; l <
|
|
238
|
+
for (; l < a; l++)
|
|
239
239
|
t(n[l], l);
|
|
240
240
|
return n;
|
|
241
241
|
}
|
|
242
242
|
return [];
|
|
243
243
|
}
|
|
244
|
-
function
|
|
244
|
+
function _e() {
|
|
245
245
|
var e = document.scrollingElement;
|
|
246
246
|
return e || document.documentElement;
|
|
247
247
|
}
|
|
248
248
|
function oe(e, o, t, n, l) {
|
|
249
249
|
if (!(!e.getBoundingClientRect && e !== window)) {
|
|
250
|
-
var
|
|
251
|
-
if (e !== window && e.parentNode && e !==
|
|
250
|
+
var a, i, s, r, d, u, c;
|
|
251
|
+
if (e !== window && e.parentNode && e !== _e() ? (a = e.getBoundingClientRect(), i = a.top, s = a.left, r = a.bottom, d = a.right, u = a.height, c = a.width) : (i = 0, s = 0, r = window.innerHeight, d = window.innerWidth, u = window.innerHeight, c = window.innerWidth), (o || t) && e !== window && (l = l || e.parentNode, !xe))
|
|
252
252
|
do
|
|
253
|
-
if (l && l.getBoundingClientRect && (
|
|
254
|
-
var
|
|
255
|
-
|
|
253
|
+
if (l && l.getBoundingClientRect && (F(l, "transform") !== "none" || t && F(l, "position") !== "static")) {
|
|
254
|
+
var p = l.getBoundingClientRect();
|
|
255
|
+
i -= p.top + parseInt(F(l, "border-top-width")), s -= p.left + parseInt(F(l, "border-left-width")), r = i + a.height, d = s + a.width;
|
|
256
256
|
break;
|
|
257
257
|
}
|
|
258
258
|
while (l = l.parentNode);
|
|
259
259
|
if (n && e !== window) {
|
|
260
|
-
var
|
|
261
|
-
|
|
260
|
+
var f = ze(l || e), E = f && f.a, S = f && f.d;
|
|
261
|
+
f && (i /= S, s /= E, c /= E, u /= S, r = i + u, d = s + c);
|
|
262
262
|
}
|
|
263
263
|
return {
|
|
264
|
-
top:
|
|
264
|
+
top: i,
|
|
265
265
|
left: s,
|
|
266
266
|
bottom: r,
|
|
267
267
|
right: d,
|
|
268
|
-
width:
|
|
268
|
+
width: c,
|
|
269
269
|
height: u
|
|
270
270
|
};
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function uo(e, o, t) {
|
|
274
274
|
for (var n = Oe(e, !0), l = oe(e)[o]; n; ) {
|
|
275
|
-
var
|
|
276
|
-
if (
|
|
275
|
+
var a = oe(n)[t], i = void 0;
|
|
276
|
+
if (i = l >= a, !i)
|
|
277
277
|
return n;
|
|
278
|
-
if (n ===
|
|
278
|
+
if (n === _e())
|
|
279
279
|
break;
|
|
280
280
|
n = Oe(n, !1);
|
|
281
281
|
}
|
|
282
282
|
return !1;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
for (var l = 0,
|
|
286
|
-
if (a
|
|
284
|
+
function Ge(e, o, t, n) {
|
|
285
|
+
for (var l = 0, a = 0, i = e.children; a < i.length; ) {
|
|
286
|
+
if (i[a].style.display !== "none" && i[a] !== O.ghost && (n || i[a] !== O.dragged) && he(i[a], t.draggable, e, !1)) {
|
|
287
287
|
if (l === o)
|
|
288
|
-
return a
|
|
288
|
+
return i[a];
|
|
289
289
|
l++;
|
|
290
290
|
}
|
|
291
|
-
|
|
291
|
+
a++;
|
|
292
292
|
}
|
|
293
293
|
return null;
|
|
294
294
|
}
|
|
295
|
-
function
|
|
296
|
-
for (var t = e.lastElementChild; t && (t ===
|
|
295
|
+
function Ht(e, o) {
|
|
296
|
+
for (var t = e.lastElementChild; t && (t === O.ghost || F(t, "display") === "none" || o && !_t(t, o)); )
|
|
297
297
|
t = t.previousElementSibling;
|
|
298
298
|
return t || null;
|
|
299
299
|
}
|
|
@@ -302,19 +302,19 @@ function fe(e, o) {
|
|
|
302
302
|
if (!e || !e.parentNode)
|
|
303
303
|
return -1;
|
|
304
304
|
for (; e = e.previousElementSibling; )
|
|
305
|
-
e.nodeName.toUpperCase() !== "TEMPLATE" && e !==
|
|
305
|
+
e.nodeName.toUpperCase() !== "TEMPLATE" && e !== O.clone && (!o || _t(e, o)) && t++;
|
|
306
306
|
return t;
|
|
307
307
|
}
|
|
308
|
-
function
|
|
309
|
-
var o = 0, t = 0, n =
|
|
308
|
+
function co(e) {
|
|
309
|
+
var o = 0, t = 0, n = _e();
|
|
310
310
|
if (e)
|
|
311
311
|
do {
|
|
312
|
-
var l =
|
|
313
|
-
o += e.scrollLeft *
|
|
312
|
+
var l = ze(e), a = l.a, i = l.d;
|
|
313
|
+
o += e.scrollLeft * a, t += e.scrollTop * i;
|
|
314
314
|
} while (e !== n && (e = e.parentNode));
|
|
315
315
|
return [o, t];
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function Nn(e, o) {
|
|
318
318
|
for (var t in e)
|
|
319
319
|
if (e.hasOwnProperty(t)) {
|
|
320
320
|
for (var n in o)
|
|
@@ -325,79 +325,79 @@ function $n(e, o) {
|
|
|
325
325
|
}
|
|
326
326
|
function Oe(e, o) {
|
|
327
327
|
if (!e || !e.getBoundingClientRect)
|
|
328
|
-
return
|
|
328
|
+
return _e();
|
|
329
329
|
var t = e, n = !1;
|
|
330
330
|
do
|
|
331
331
|
if (t.clientWidth < t.scrollWidth || t.clientHeight < t.scrollHeight) {
|
|
332
|
-
var l =
|
|
332
|
+
var l = F(t);
|
|
333
333
|
if (t.clientWidth < t.scrollWidth && (l.overflowX == "auto" || l.overflowX == "scroll") || t.clientHeight < t.scrollHeight && (l.overflowY == "auto" || l.overflowY == "scroll")) {
|
|
334
334
|
if (!t.getBoundingClientRect || t === document.body)
|
|
335
|
-
return
|
|
335
|
+
return _e();
|
|
336
336
|
if (n || o)
|
|
337
337
|
return t;
|
|
338
338
|
n = !0;
|
|
339
339
|
}
|
|
340
340
|
}
|
|
341
341
|
while (t = t.parentNode);
|
|
342
|
-
return
|
|
342
|
+
return _e();
|
|
343
343
|
}
|
|
344
|
-
function
|
|
344
|
+
function Pn(e, o) {
|
|
345
345
|
if (e && o)
|
|
346
346
|
for (var t in o)
|
|
347
347
|
o.hasOwnProperty(t) && (e[t] = o[t]);
|
|
348
348
|
return e;
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Ot(e, o) {
|
|
351
351
|
return Math.round(e.top) === Math.round(o.top) && Math.round(e.left) === Math.round(o.left) && Math.round(e.height) === Math.round(o.height) && Math.round(e.width) === Math.round(o.width);
|
|
352
352
|
}
|
|
353
|
-
var
|
|
354
|
-
function
|
|
353
|
+
var Qe;
|
|
354
|
+
function Fo(e, o) {
|
|
355
355
|
return function() {
|
|
356
|
-
if (!
|
|
356
|
+
if (!Qe) {
|
|
357
357
|
var t = arguments, n = this;
|
|
358
|
-
t.length === 1 ? e.call(n, t[0]) : e.apply(n, t),
|
|
359
|
-
|
|
358
|
+
t.length === 1 ? e.call(n, t[0]) : e.apply(n, t), Qe = setTimeout(function() {
|
|
359
|
+
Qe = void 0;
|
|
360
360
|
}, o);
|
|
361
361
|
}
|
|
362
362
|
};
|
|
363
363
|
}
|
|
364
|
-
function
|
|
365
|
-
clearTimeout(
|
|
364
|
+
function Ln() {
|
|
365
|
+
clearTimeout(Qe), Qe = void 0;
|
|
366
366
|
}
|
|
367
|
-
function
|
|
367
|
+
function Oo(e, o, t) {
|
|
368
368
|
e.scrollLeft += o, e.scrollTop += t;
|
|
369
369
|
}
|
|
370
|
-
function
|
|
370
|
+
function Ro(e) {
|
|
371
371
|
var o = window.Polymer, t = window.jQuery || window.Zepto;
|
|
372
372
|
return o && o.dom ? o.dom(e).cloneNode(!0) : t ? t(e).clone(!0)[0] : e.cloneNode(!0);
|
|
373
373
|
}
|
|
374
|
-
function
|
|
374
|
+
function Ao(e, o, t) {
|
|
375
375
|
var n = {};
|
|
376
376
|
return Array.from(e.children).forEach(function(l) {
|
|
377
|
-
var
|
|
377
|
+
var a, i, s, r;
|
|
378
378
|
if (!(!he(l, o.draggable, e, !1) || l.animated || l === t)) {
|
|
379
379
|
var d = oe(l);
|
|
380
|
-
n.left = Math.min((
|
|
380
|
+
n.left = Math.min((a = n.left) !== null && a !== void 0 ? a : 1 / 0, d.left), n.top = Math.min((i = n.top) !== null && i !== void 0 ? i : 1 / 0, d.top), n.right = Math.max((s = n.right) !== null && s !== void 0 ? s : -1 / 0, d.right), n.bottom = Math.max((r = n.bottom) !== null && r !== void 0 ? r : -1 / 0, d.bottom);
|
|
381
381
|
}
|
|
382
382
|
}), n.width = n.right - n.left, n.height = n.bottom - n.top, n.x = n.left, n.y = n.top, n;
|
|
383
383
|
}
|
|
384
384
|
var ce = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
385
|
-
function
|
|
385
|
+
function $n() {
|
|
386
386
|
var e = [], o;
|
|
387
387
|
return {
|
|
388
388
|
captureAnimationState: function() {
|
|
389
389
|
if (e = [], !!this.options.animation) {
|
|
390
390
|
var t = [].slice.call(this.el.children);
|
|
391
391
|
t.forEach(function(n) {
|
|
392
|
-
if (!(
|
|
392
|
+
if (!(F(n, "display") === "none" || n === O.ghost)) {
|
|
393
393
|
e.push({
|
|
394
394
|
target: n,
|
|
395
395
|
rect: oe(n)
|
|
396
396
|
});
|
|
397
|
-
var l =
|
|
397
|
+
var l = Ce({}, e[e.length - 1].rect);
|
|
398
398
|
if (n.thisAnimationDuration) {
|
|
399
|
-
var
|
|
400
|
-
|
|
399
|
+
var a = ze(n, !0);
|
|
400
|
+
a && (l.top -= a.f, l.left -= a.e);
|
|
401
401
|
}
|
|
402
402
|
n.fromRect = l;
|
|
403
403
|
}
|
|
@@ -408,7 +408,7 @@ function Un() {
|
|
|
408
408
|
e.push(t);
|
|
409
409
|
},
|
|
410
410
|
removeAnimationState: function(t) {
|
|
411
|
-
e.splice(
|
|
411
|
+
e.splice(Nn(e, {
|
|
412
412
|
target: t
|
|
413
413
|
}), 1);
|
|
414
414
|
},
|
|
@@ -418,44 +418,44 @@ function Un() {
|
|
|
418
418
|
clearTimeout(o), typeof t == "function" && t();
|
|
419
419
|
return;
|
|
420
420
|
}
|
|
421
|
-
var l = !1,
|
|
422
|
-
e.forEach(function(
|
|
423
|
-
var s = 0, r =
|
|
424
|
-
E && (u.top -= E.f, u.left -= E.e), r.toRect = u, r.thisAnimationDuration &&
|
|
425
|
-
(
|
|
421
|
+
var l = !1, a = 0;
|
|
422
|
+
e.forEach(function(i) {
|
|
423
|
+
var s = 0, r = i.target, d = r.fromRect, u = oe(r), c = r.prevFromRect, p = r.prevToRect, f = i.rect, E = ze(r, !0);
|
|
424
|
+
E && (u.top -= E.f, u.left -= E.e), r.toRect = u, r.thisAnimationDuration && Ot(c, u) && !Ot(d, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
425
|
+
(f.top - u.top) / (f.left - u.left) === (d.top - u.top) / (d.left - u.left) && (s = Mn(f, c, p, n.options)), Ot(u, d) || (r.prevFromRect = d, r.prevToRect = u, s || (s = n.options.animation), n.animate(r, f, u, s)), s && (l = !0, a = Math.max(a, s), clearTimeout(r.animationResetTimer), r.animationResetTimer = setTimeout(function() {
|
|
426
426
|
r.animationTime = 0, r.prevFromRect = null, r.fromRect = null, r.prevToRect = null, r.thisAnimationDuration = null;
|
|
427
427
|
}, s), r.thisAnimationDuration = s);
|
|
428
428
|
}), clearTimeout(o), l ? o = setTimeout(function() {
|
|
429
429
|
typeof t == "function" && t();
|
|
430
|
-
},
|
|
430
|
+
}, a) : typeof t == "function" && t(), e = [];
|
|
431
431
|
},
|
|
432
|
-
animate: function(t, n, l,
|
|
433
|
-
if (
|
|
434
|
-
|
|
435
|
-
var
|
|
436
|
-
t.animatingX = !!d, t.animatingY = !!u,
|
|
437
|
-
|
|
438
|
-
},
|
|
432
|
+
animate: function(t, n, l, a) {
|
|
433
|
+
if (a) {
|
|
434
|
+
F(t, "transition", ""), F(t, "transform", "");
|
|
435
|
+
var i = ze(this.el), s = i && i.a, r = i && i.d, d = (n.left - l.left) / (s || 1), u = (n.top - l.top) / (r || 1);
|
|
436
|
+
t.animatingX = !!d, t.animatingY = !!u, F(t, "transform", "translate3d(" + d + "px," + u + "px,0)"), this.forRepaintDummy = Bn(t), F(t, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), F(t, "transform", "translate3d(0,0,0)"), typeof t.animated == "number" && clearTimeout(t.animated), t.animated = setTimeout(function() {
|
|
437
|
+
F(t, "transition", ""), F(t, "transform", ""), t.animated = !1, t.animatingX = !1, t.animatingY = !1;
|
|
438
|
+
}, a);
|
|
439
439
|
}
|
|
440
440
|
}
|
|
441
441
|
};
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function Bn(e) {
|
|
444
444
|
return e.offsetWidth;
|
|
445
445
|
}
|
|
446
|
-
function
|
|
446
|
+
function Mn(e, o, t, n) {
|
|
447
447
|
return Math.sqrt(Math.pow(o.top - e.top, 2) + Math.pow(o.left - e.left, 2)) / Math.sqrt(Math.pow(o.top - t.top, 2) + Math.pow(o.left - t.left, 2)) * n.animation;
|
|
448
448
|
}
|
|
449
|
-
var
|
|
449
|
+
var Le = [], Rt = {
|
|
450
450
|
initializeByDefault: !0
|
|
451
|
-
},
|
|
451
|
+
}, st = {
|
|
452
452
|
mount: function(e) {
|
|
453
|
-
for (var o in
|
|
454
|
-
|
|
455
|
-
|
|
453
|
+
for (var o in Rt)
|
|
454
|
+
Rt.hasOwnProperty(o) && !(o in e) && (e[o] = Rt[o]);
|
|
455
|
+
Le.forEach(function(t) {
|
|
456
456
|
if (t.pluginName === e.pluginName)
|
|
457
457
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
458
|
-
}),
|
|
458
|
+
}), Le.push(e);
|
|
459
459
|
},
|
|
460
460
|
pluginEvent: function(e, o, t) {
|
|
461
461
|
var n = this;
|
|
@@ -463,167 +463,167 @@ var $e = [], Wt = {
|
|
|
463
463
|
n.eventCanceled = !0;
|
|
464
464
|
};
|
|
465
465
|
var l = e + "Global";
|
|
466
|
-
|
|
467
|
-
o[
|
|
466
|
+
Le.forEach(function(a) {
|
|
467
|
+
o[a.pluginName] && (o[a.pluginName][l] && o[a.pluginName][l](Ce({
|
|
468
468
|
sortable: o
|
|
469
|
-
}, t)), o.options[
|
|
469
|
+
}, t)), o.options[a.pluginName] && o[a.pluginName][e] && o[a.pluginName][e](Ce({
|
|
470
470
|
sortable: o
|
|
471
471
|
}, t)));
|
|
472
472
|
});
|
|
473
473
|
},
|
|
474
474
|
initializePlugins: function(e, o, t, n) {
|
|
475
|
-
|
|
476
|
-
var s =
|
|
477
|
-
if (!(!e.options[s] && !
|
|
478
|
-
var r = new
|
|
475
|
+
Le.forEach(function(i) {
|
|
476
|
+
var s = i.pluginName;
|
|
477
|
+
if (!(!e.options[s] && !i.initializeByDefault)) {
|
|
478
|
+
var r = new i(e, o, e.options);
|
|
479
479
|
r.sortable = e, r.options = e.options, e[s] = r, ke(t, r.defaults);
|
|
480
480
|
}
|
|
481
481
|
});
|
|
482
482
|
for (var l in e.options)
|
|
483
483
|
if (e.options.hasOwnProperty(l)) {
|
|
484
|
-
var
|
|
485
|
-
typeof
|
|
484
|
+
var a = this.modifyOption(e, l, e.options[l]);
|
|
485
|
+
typeof a < "u" && (e.options[l] = a);
|
|
486
486
|
}
|
|
487
487
|
},
|
|
488
488
|
getEventProperties: function(e, o) {
|
|
489
489
|
var t = {};
|
|
490
|
-
return
|
|
490
|
+
return Le.forEach(function(n) {
|
|
491
491
|
typeof n.eventProperties == "function" && ke(t, n.eventProperties.call(o[n.pluginName], e));
|
|
492
492
|
}), t;
|
|
493
493
|
},
|
|
494
494
|
modifyOption: function(e, o, t) {
|
|
495
495
|
var n;
|
|
496
|
-
return
|
|
496
|
+
return Le.forEach(function(l) {
|
|
497
497
|
e[l.pluginName] && l.optionListeners && typeof l.optionListeners[o] == "function" && (n = l.optionListeners[o].call(e[l.pluginName], t));
|
|
498
498
|
}), n;
|
|
499
499
|
}
|
|
500
500
|
};
|
|
501
|
-
function
|
|
502
|
-
var o = e.sortable, t = e.rootEl, n = e.name, l = e.targetEl,
|
|
501
|
+
function Un(e) {
|
|
502
|
+
var o = e.sortable, t = e.rootEl, n = e.name, l = e.targetEl, a = e.cloneEl, i = e.toEl, s = e.fromEl, r = e.oldIndex, d = e.newIndex, u = e.oldDraggableIndex, c = e.newDraggableIndex, p = e.originalEvent, f = e.putSortable, E = e.extraEventProperties;
|
|
503
503
|
if (o = o || t && t[ce], !!o) {
|
|
504
|
-
var
|
|
505
|
-
window.CustomEvent && !xe && !
|
|
504
|
+
var S, I = o.options, M = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
505
|
+
window.CustomEvent && !xe && !rt ? S = new CustomEvent(n, {
|
|
506
506
|
bubbles: !0,
|
|
507
507
|
cancelable: !0
|
|
508
|
-
}) : (
|
|
509
|
-
var K =
|
|
510
|
-
for (var
|
|
511
|
-
|
|
512
|
-
t && t.dispatchEvent(
|
|
508
|
+
}) : (S = document.createEvent("Event"), S.initEvent(n, !0, !0)), S.to = i || t, S.from = s || t, S.item = l || t, S.clone = a, S.oldIndex = r, S.newIndex = d, S.oldDraggableIndex = u, S.newDraggableIndex = c, S.originalEvent = p, S.pullMode = f ? f.lastPutMode : void 0;
|
|
509
|
+
var K = Ce(Ce({}, E), st.getEventProperties(n, o));
|
|
510
|
+
for (var B in K)
|
|
511
|
+
S[B] = K[B];
|
|
512
|
+
t && t.dispatchEvent(S), I[M] && I[M].call(o, S);
|
|
513
513
|
}
|
|
514
514
|
}
|
|
515
|
-
var
|
|
516
|
-
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = t.evt, l =
|
|
517
|
-
|
|
515
|
+
var Xn = ["evt"], se = function(e, o) {
|
|
516
|
+
var t = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = t.evt, l = Rn(t, Xn);
|
|
517
|
+
st.pluginEvent.bind(O)(e, o, Ce({
|
|
518
518
|
dragEl: g,
|
|
519
519
|
parentEl: Q,
|
|
520
520
|
ghostEl: A,
|
|
521
521
|
rootEl: q,
|
|
522
|
-
nextEl:
|
|
523
|
-
lastDownEl:
|
|
522
|
+
nextEl: We,
|
|
523
|
+
lastDownEl: gt,
|
|
524
524
|
cloneEl: Z,
|
|
525
525
|
cloneHidden: Fe,
|
|
526
|
-
dragStarted:
|
|
526
|
+
dragStarted: Ke,
|
|
527
527
|
putSortable: ne,
|
|
528
|
-
activeSortable:
|
|
528
|
+
activeSortable: O.active,
|
|
529
529
|
originalEvent: n,
|
|
530
|
-
oldIndex:
|
|
531
|
-
oldDraggableIndex:
|
|
530
|
+
oldIndex: Xe,
|
|
531
|
+
oldDraggableIndex: et,
|
|
532
532
|
newIndex: ue,
|
|
533
533
|
newDraggableIndex: Ie,
|
|
534
|
-
hideGhostForTarget:
|
|
535
|
-
unhideGhostForTarget:
|
|
534
|
+
hideGhostForTarget: Lo,
|
|
535
|
+
unhideGhostForTarget: $o,
|
|
536
536
|
cloneNowHidden: function() {
|
|
537
537
|
Fe = !0;
|
|
538
538
|
},
|
|
539
539
|
cloneNowShown: function() {
|
|
540
540
|
Fe = !1;
|
|
541
541
|
},
|
|
542
|
-
dispatchSortableEvent: function(
|
|
542
|
+
dispatchSortableEvent: function(a) {
|
|
543
543
|
re({
|
|
544
544
|
sortable: o,
|
|
545
|
-
name:
|
|
545
|
+
name: a,
|
|
546
546
|
originalEvent: n
|
|
547
547
|
});
|
|
548
548
|
}
|
|
549
549
|
}, l));
|
|
550
550
|
};
|
|
551
551
|
function re(e) {
|
|
552
|
-
|
|
552
|
+
Un(Ce({
|
|
553
553
|
putSortable: ne,
|
|
554
554
|
cloneEl: Z,
|
|
555
555
|
targetEl: g,
|
|
556
556
|
rootEl: q,
|
|
557
|
-
oldIndex:
|
|
558
|
-
oldDraggableIndex:
|
|
557
|
+
oldIndex: Xe,
|
|
558
|
+
oldDraggableIndex: et,
|
|
559
559
|
newIndex: ue,
|
|
560
560
|
newDraggableIndex: Ie
|
|
561
561
|
}, e));
|
|
562
562
|
}
|
|
563
|
-
var g, Q, A, q,
|
|
564
|
-
if (
|
|
563
|
+
var g, Q, A, q, We, gt, Z, Fe, Xe, ue, et, Ie, ut, ne, Be = !1, Ct = !1, Et = [], Re, ve, At, Wt, mo, po, Ke, $e, tt, ot = !1, ct = !1, vt, ie, Nt = [], Mt = !1, Tt = [], Vt = typeof document < "u", mt = ko, fo = rt || xe ? "cssFloat" : "float", zn = Vt && !xo && !ko && "draggable" in document.createElement("div"), Wo = function() {
|
|
564
|
+
if (Vt) {
|
|
565
565
|
if (xe)
|
|
566
566
|
return !1;
|
|
567
567
|
var e = document.createElement("x");
|
|
568
568
|
return e.style.cssText = "pointer-events:auto", e.style.pointerEvents === "auto";
|
|
569
569
|
}
|
|
570
|
-
}(),
|
|
571
|
-
var t =
|
|
570
|
+
}(), No = function(e, o) {
|
|
571
|
+
var t = F(e), n = parseInt(t.width) - parseInt(t.paddingLeft) - parseInt(t.paddingRight) - parseInt(t.borderLeftWidth) - parseInt(t.borderRightWidth), l = Ge(e, 0, o), a = Ge(e, 1, o), i = l && F(l), s = a && F(a), r = i && parseInt(i.marginLeft) + parseInt(i.marginRight) + oe(l).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + oe(a).width;
|
|
572
572
|
if (t.display === "flex")
|
|
573
573
|
return t.flexDirection === "column" || t.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
574
574
|
if (t.display === "grid")
|
|
575
575
|
return t.gridTemplateColumns.split(" ").length <= 1 ? "vertical" : "horizontal";
|
|
576
|
-
if (l &&
|
|
577
|
-
var u =
|
|
578
|
-
return
|
|
576
|
+
if (l && i.float && i.float !== "none") {
|
|
577
|
+
var u = i.float === "left" ? "left" : "right";
|
|
578
|
+
return a && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
579
579
|
}
|
|
580
|
-
return l && (
|
|
581
|
-
},
|
|
582
|
-
var n = t ? e.left : e.top, l = t ? e.right : e.bottom,
|
|
583
|
-
return n ===
|
|
584
|
-
},
|
|
580
|
+
return l && (i.display === "block" || i.display === "flex" || i.display === "table" || i.display === "grid" || r >= n && t[fo] === "none" || a && t[fo] === "none" && r + d > n) ? "vertical" : "horizontal";
|
|
581
|
+
}, Yn = function(e, o, t) {
|
|
582
|
+
var n = t ? e.left : e.top, l = t ? e.right : e.bottom, a = t ? e.width : e.height, i = t ? o.left : o.top, s = t ? o.right : o.bottom, r = t ? o.width : o.height;
|
|
583
|
+
return n === i || l === s || n + a / 2 === i + r / 2;
|
|
584
|
+
}, Gn = function(e, o) {
|
|
585
585
|
var t;
|
|
586
|
-
return
|
|
586
|
+
return Et.some(function(n) {
|
|
587
587
|
var l = n[ce].options.emptyInsertThreshold;
|
|
588
|
-
if (!(!l ||
|
|
589
|
-
var
|
|
590
|
-
if (
|
|
588
|
+
if (!(!l || Ht(n))) {
|
|
589
|
+
var a = oe(n), i = e >= a.left - l && e <= a.right + l, s = o >= a.top - l && o <= a.bottom + l;
|
|
590
|
+
if (i && s)
|
|
591
591
|
return t = n;
|
|
592
592
|
}
|
|
593
593
|
}), t;
|
|
594
|
-
},
|
|
595
|
-
function o(l,
|
|
596
|
-
return function(
|
|
597
|
-
var u =
|
|
598
|
-
if (l == null && (
|
|
594
|
+
}, Po = function(e) {
|
|
595
|
+
function o(l, a) {
|
|
596
|
+
return function(i, s, r, d) {
|
|
597
|
+
var u = i.options.group.name && s.options.group.name && i.options.group.name === s.options.group.name;
|
|
598
|
+
if (l == null && (a || u))
|
|
599
599
|
return !0;
|
|
600
600
|
if (l == null || l === !1)
|
|
601
601
|
return !1;
|
|
602
|
-
if (
|
|
602
|
+
if (a && l === "clone")
|
|
603
603
|
return l;
|
|
604
604
|
if (typeof l == "function")
|
|
605
|
-
return o(l(
|
|
606
|
-
var
|
|
607
|
-
return l === !0 || typeof l == "string" && l ===
|
|
605
|
+
return o(l(i, s, r, d), a)(i, s, r, d);
|
|
606
|
+
var c = (a ? i : s).options.group.name;
|
|
607
|
+
return l === !0 || typeof l == "string" && l === c || l.join && l.indexOf(c) > -1;
|
|
608
608
|
};
|
|
609
609
|
}
|
|
610
610
|
var t = {}, n = e.group;
|
|
611
|
-
(!n ||
|
|
611
|
+
(!n || ft(n) != "object") && (n = {
|
|
612
612
|
name: n
|
|
613
613
|
}), t.name = n.name, t.checkPull = o(n.pull, !0), t.checkPut = o(n.put), t.revertClone = n.revertClone, e.group = t;
|
|
614
|
-
},
|
|
615
|
-
!
|
|
616
|
-
},
|
|
617
|
-
!
|
|
614
|
+
}, Lo = function() {
|
|
615
|
+
!Wo && A && F(A, "display", "none");
|
|
616
|
+
}, $o = function() {
|
|
617
|
+
!Wo && A && F(A, "display", "");
|
|
618
618
|
};
|
|
619
|
-
|
|
620
|
-
if (
|
|
621
|
-
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(),
|
|
619
|
+
Vt && !xo && document.addEventListener("click", function(e) {
|
|
620
|
+
if (Ct)
|
|
621
|
+
return e.preventDefault(), e.stopPropagation && e.stopPropagation(), e.stopImmediatePropagation && e.stopImmediatePropagation(), Ct = !1, !1;
|
|
622
622
|
}, !0);
|
|
623
|
-
var
|
|
623
|
+
var Ae = function(e) {
|
|
624
624
|
if (g) {
|
|
625
625
|
e = e.touches ? e.touches[0] : e;
|
|
626
|
-
var o =
|
|
626
|
+
var o = Gn(e.clientX, e.clientY);
|
|
627
627
|
if (o) {
|
|
628
628
|
var t = {};
|
|
629
629
|
for (var n in e)
|
|
@@ -631,10 +631,10 @@ var We = function(e) {
|
|
|
631
631
|
t.target = t.rootEl = o, t.preventDefault = void 0, t.stopPropagation = void 0, o[ce]._onDragOver(t);
|
|
632
632
|
}
|
|
633
633
|
}
|
|
634
|
-
},
|
|
634
|
+
}, Hn = function(e) {
|
|
635
635
|
g && g.parentNode[ce]._isOutsideThisEl(e.target);
|
|
636
636
|
};
|
|
637
|
-
function
|
|
637
|
+
function O(e, o) {
|
|
638
638
|
if (!(e && e.nodeType && e.nodeType === 1))
|
|
639
639
|
throw "Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));
|
|
640
640
|
this.el = e, this.options = o = ke({}, o), e[ce] = this;
|
|
@@ -653,7 +653,7 @@ function F(e, o) {
|
|
|
653
653
|
// will be set to same as swapThreshold if default
|
|
654
654
|
removeCloneOnHide: !0,
|
|
655
655
|
direction: function() {
|
|
656
|
-
return
|
|
656
|
+
return No(e, this.options);
|
|
657
657
|
},
|
|
658
658
|
ghostClass: "sortable-ghost",
|
|
659
659
|
chosenClass: "sortable-chosen",
|
|
@@ -663,8 +663,8 @@ function F(e, o) {
|
|
|
663
663
|
preventOnFilter: !0,
|
|
664
664
|
animation: 0,
|
|
665
665
|
easing: null,
|
|
666
|
-
setData: function(
|
|
667
|
-
|
|
666
|
+
setData: function(a, i) {
|
|
667
|
+
a.setData("Text", i.textContent);
|
|
668
668
|
},
|
|
669
669
|
dropBubble: !1,
|
|
670
670
|
dragoverBubble: !1,
|
|
@@ -680,31 +680,31 @@ function F(e, o) {
|
|
|
680
680
|
x: 0,
|
|
681
681
|
y: 0
|
|
682
682
|
},
|
|
683
|
-
supportPointer:
|
|
683
|
+
supportPointer: O.supportPointer !== !1 && "PointerEvent" in window && !Ze,
|
|
684
684
|
emptyInsertThreshold: 5
|
|
685
685
|
};
|
|
686
|
-
|
|
686
|
+
st.initializePlugins(this, e, t);
|
|
687
687
|
for (var n in t)
|
|
688
688
|
!(n in o) && (o[n] = t[n]);
|
|
689
|
-
|
|
689
|
+
Po(o);
|
|
690
690
|
for (var l in this)
|
|
691
691
|
l.charAt(0) === "_" && typeof this[l] == "function" && (this[l] = this[l].bind(this));
|
|
692
|
-
this.nativeDraggable = o.forceFallback ? !1 :
|
|
692
|
+
this.nativeDraggable = o.forceFallback ? !1 : zn, this.nativeDraggable && (this.options.touchStartThreshold = 1), o.supportPointer ? z(e, "pointerdown", this._onTapStart) : (z(e, "mousedown", this._onTapStart), z(e, "touchstart", this._onTapStart)), this.nativeDraggable && (z(e, "dragover", this), z(e, "dragenter", this)), Et.push(this.el), o.store && o.store.get && this.sort(o.store.get(this) || []), ke(this, $n());
|
|
693
693
|
}
|
|
694
|
-
|
|
694
|
+
O.prototype = /** @lends Sortable.prototype */
|
|
695
695
|
{
|
|
696
|
-
constructor:
|
|
696
|
+
constructor: O,
|
|
697
697
|
_isOutsideThisEl: function(e) {
|
|
698
|
-
!this.el.contains(e) && e !== this.el && (
|
|
698
|
+
!this.el.contains(e) && e !== this.el && ($e = null);
|
|
699
699
|
},
|
|
700
700
|
_getDirection: function(e, o) {
|
|
701
701
|
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, o, g) : this.options.direction;
|
|
702
702
|
},
|
|
703
703
|
_onTapStart: function(e) {
|
|
704
704
|
if (e.cancelable) {
|
|
705
|
-
var o = this, t = this.el, n = this.options, l = n.preventOnFilter,
|
|
706
|
-
if (
|
|
707
|
-
if (
|
|
705
|
+
var o = this, t = this.el, n = this.options, l = n.preventOnFilter, a = e.type, i = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (i || e).target, r = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, d = n.filter;
|
|
706
|
+
if (tl(t), !g && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || n.disabled) && !r.isContentEditable && !(!this.nativeDraggable && Ze && s && s.tagName.toUpperCase() === "SELECT") && (s = he(s, n.draggable, t, !1), !(s && s.animated) && gt !== s)) {
|
|
707
|
+
if (Xe = fe(s), et = fe(s, n.draggable), typeof d == "function") {
|
|
708
708
|
if (d.call(this, e, s, this)) {
|
|
709
709
|
re({
|
|
710
710
|
sortable: o,
|
|
@@ -734,40 +734,40 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
734
734
|
l && e.cancelable && e.preventDefault();
|
|
735
735
|
return;
|
|
736
736
|
}
|
|
737
|
-
n.handle && !he(r, n.handle, t, !1) || this._prepareDragStart(e,
|
|
737
|
+
n.handle && !he(r, n.handle, t, !1) || this._prepareDragStart(e, i, s);
|
|
738
738
|
}
|
|
739
739
|
}
|
|
740
740
|
},
|
|
741
741
|
_prepareDragStart: function(e, o, t) {
|
|
742
|
-
var n = this, l = n.el,
|
|
742
|
+
var n = this, l = n.el, a = n.options, i = l.ownerDocument, s;
|
|
743
743
|
if (t && !g && t.parentNode === l) {
|
|
744
744
|
var r = oe(t);
|
|
745
|
-
if (q = l, g = t, Q = g.parentNode,
|
|
745
|
+
if (q = l, g = t, Q = g.parentNode, We = g.nextSibling, gt = t, ut = a.group, O.dragged = g, Re = {
|
|
746
746
|
target: g,
|
|
747
747
|
clientX: (o || e).clientX,
|
|
748
748
|
clientY: (o || e).clientY
|
|
749
|
-
},
|
|
749
|
+
}, mo = Re.clientX - r.left, po = Re.clientY - r.top, this._lastX = (o || e).clientX, this._lastY = (o || e).clientY, g.style["will-change"] = "all", s = function() {
|
|
750
750
|
if (se("delayEnded", n, {
|
|
751
751
|
evt: e
|
|
752
|
-
}),
|
|
752
|
+
}), O.eventCanceled) {
|
|
753
753
|
n._onDrop();
|
|
754
754
|
return;
|
|
755
755
|
}
|
|
756
|
-
n._disableDelayedDragEvents(), !
|
|
756
|
+
n._disableDelayedDragEvents(), !ro && n.nativeDraggable && (g.draggable = !0), n._triggerDragStart(e, o), re({
|
|
757
757
|
sortable: n,
|
|
758
758
|
name: "choose",
|
|
759
759
|
originalEvent: e
|
|
760
|
-
}), de(g,
|
|
761
|
-
},
|
|
762
|
-
|
|
763
|
-
}), z(
|
|
760
|
+
}), de(g, a.chosenClass, !0);
|
|
761
|
+
}, a.ignore.split(",").forEach(function(d) {
|
|
762
|
+
Io(g, d.trim(), Pt);
|
|
763
|
+
}), z(i, "dragover", Ae), z(i, "mousemove", Ae), z(i, "touchmove", Ae), z(i, "mouseup", n._onDrop), z(i, "touchend", n._onDrop), z(i, "touchcancel", n._onDrop), ro && this.nativeDraggable && (this.options.touchStartThreshold = 4, g.draggable = !0), se("delayStart", this, {
|
|
764
764
|
evt: e
|
|
765
|
-
}),
|
|
766
|
-
if (
|
|
765
|
+
}), a.delay && (!a.delayOnTouchOnly || o) && (!this.nativeDraggable || !(rt || xe))) {
|
|
766
|
+
if (O.eventCanceled) {
|
|
767
767
|
this._onDrop();
|
|
768
768
|
return;
|
|
769
769
|
}
|
|
770
|
-
z(
|
|
770
|
+
z(i, "mouseup", n._disableDelayedDrag), z(i, "touchend", n._disableDelayedDrag), z(i, "touchcancel", n._disableDelayedDrag), z(i, "mousemove", n._delayedDragTouchMoveHandler), z(i, "touchmove", n._delayedDragTouchMoveHandler), a.supportPointer && z(i, "pointermove", n._delayedDragTouchMoveHandler), n._dragStartTimer = setTimeout(s, a.delay);
|
|
771
771
|
} else
|
|
772
772
|
s();
|
|
773
773
|
}
|
|
@@ -777,28 +777,28 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
777
777
|
Math.max(Math.abs(o.clientX - this._lastX), Math.abs(o.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
778
778
|
},
|
|
779
779
|
_disableDelayedDrag: function() {
|
|
780
|
-
g &&
|
|
780
|
+
g && Pt(g), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
781
781
|
},
|
|
782
782
|
_disableDelayedDragEvents: function() {
|
|
783
783
|
var e = this.el.ownerDocument;
|
|
784
|
-
|
|
784
|
+
X(e, "mouseup", this._disableDelayedDrag), X(e, "touchend", this._disableDelayedDrag), X(e, "touchcancel", this._disableDelayedDrag), X(e, "mousemove", this._delayedDragTouchMoveHandler), X(e, "touchmove", this._delayedDragTouchMoveHandler), X(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
785
785
|
},
|
|
786
786
|
_triggerDragStart: function(e, o) {
|
|
787
787
|
o = o || e.pointerType == "touch" && e, !this.nativeDraggable || o ? this.options.supportPointer ? z(document, "pointermove", this._onTouchMove) : o ? z(document, "touchmove", this._onTouchMove) : z(document, "mousemove", this._onTouchMove) : (z(g, "dragend", this), z(q, "dragstart", this._onDragStart));
|
|
788
788
|
try {
|
|
789
|
-
document.selection ?
|
|
789
|
+
document.selection ? ht(function() {
|
|
790
790
|
document.selection.empty();
|
|
791
791
|
}) : window.getSelection().removeAllRanges();
|
|
792
792
|
} catch {
|
|
793
793
|
}
|
|
794
794
|
},
|
|
795
795
|
_dragStarted: function(e, o) {
|
|
796
|
-
if (
|
|
796
|
+
if (Be = !1, q && g) {
|
|
797
797
|
se("dragStarted", this, {
|
|
798
798
|
evt: o
|
|
799
|
-
}), this.nativeDraggable && z(document, "dragover",
|
|
799
|
+
}), this.nativeDraggable && z(document, "dragover", Hn);
|
|
800
800
|
var t = this.options;
|
|
801
|
-
!e && de(g, t.dragClass, !1), de(g, t.ghostClass, !0),
|
|
801
|
+
!e && de(g, t.dragClass, !1), de(g, t.ghostClass, !0), O.active = this, e && this._appendGhost(), re({
|
|
802
802
|
sortable: this,
|
|
803
803
|
name: "start",
|
|
804
804
|
originalEvent: o
|
|
@@ -808,7 +808,7 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
808
808
|
},
|
|
809
809
|
_emulateDragOver: function() {
|
|
810
810
|
if (ve) {
|
|
811
|
-
this._lastX = ve.clientX, this._lastY = ve.clientY,
|
|
811
|
+
this._lastX = ve.clientX, this._lastY = ve.clientY, Lo();
|
|
812
812
|
for (var e = document.elementFromPoint(ve.clientX, ve.clientY), o = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ve.clientX, ve.clientY), e !== o); )
|
|
813
813
|
o = e;
|
|
814
814
|
if (g.parentNode[ce]._isOutsideThisEl(e), o)
|
|
@@ -825,19 +825,19 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
825
825
|
}
|
|
826
826
|
e = o;
|
|
827
827
|
} while (o = o.parentNode);
|
|
828
|
-
|
|
828
|
+
$o();
|
|
829
829
|
}
|
|
830
830
|
},
|
|
831
831
|
_onTouchMove: function(e) {
|
|
832
|
-
if (
|
|
833
|
-
var o = this.options, t = o.fallbackTolerance, n = o.fallbackOffset, l = e.touches ? e.touches[0] : e,
|
|
834
|
-
if (!
|
|
832
|
+
if (Re) {
|
|
833
|
+
var o = this.options, t = o.fallbackTolerance, n = o.fallbackOffset, l = e.touches ? e.touches[0] : e, a = A && ze(A, !0), i = A && a && a.a, s = A && a && a.d, r = mt && ie && co(ie), d = (l.clientX - Re.clientX + n.x) / (i || 1) + (r ? r[0] - Nt[0] : 0) / (i || 1), u = (l.clientY - Re.clientY + n.y) / (s || 1) + (r ? r[1] - Nt[1] : 0) / (s || 1);
|
|
834
|
+
if (!O.active && !Be) {
|
|
835
835
|
if (t && Math.max(Math.abs(l.clientX - this._lastX), Math.abs(l.clientY - this._lastY)) < t)
|
|
836
836
|
return;
|
|
837
837
|
this._onDragStart(e, !0);
|
|
838
838
|
}
|
|
839
839
|
if (A) {
|
|
840
|
-
|
|
840
|
+
a ? (a.e += d - (At || 0), a.f += u - (Wt || 0)) : a = {
|
|
841
841
|
a: 1,
|
|
842
842
|
b: 0,
|
|
843
843
|
c: 0,
|
|
@@ -845,74 +845,74 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
845
845
|
e: d,
|
|
846
846
|
f: u
|
|
847
847
|
};
|
|
848
|
-
var
|
|
849
|
-
|
|
848
|
+
var c = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
|
|
849
|
+
F(A, "webkitTransform", c), F(A, "mozTransform", c), F(A, "msTransform", c), F(A, "transform", c), At = d, Wt = u, ve = l;
|
|
850
850
|
}
|
|
851
851
|
e.cancelable && e.preventDefault();
|
|
852
852
|
}
|
|
853
853
|
},
|
|
854
854
|
_appendGhost: function() {
|
|
855
855
|
if (!A) {
|
|
856
|
-
var e = this.options.fallbackOnBody ? document.body : q, o = oe(g, !0,
|
|
857
|
-
if (
|
|
858
|
-
for (ie = e;
|
|
856
|
+
var e = this.options.fallbackOnBody ? document.body : q, o = oe(g, !0, mt, !0, e), t = this.options;
|
|
857
|
+
if (mt) {
|
|
858
|
+
for (ie = e; F(ie, "position") === "static" && F(ie, "transform") === "none" && ie !== document; )
|
|
859
859
|
ie = ie.parentNode;
|
|
860
|
-
ie !== document.body && ie !== document.documentElement ? (ie === document && (ie =
|
|
860
|
+
ie !== document.body && ie !== document.documentElement ? (ie === document && (ie = _e()), o.top += ie.scrollTop, o.left += ie.scrollLeft) : ie = _e(), Nt = co(ie);
|
|
861
861
|
}
|
|
862
|
-
A = g.cloneNode(!0), de(A, t.ghostClass, !1), de(A, t.fallbackClass, !0), de(A, t.dragClass, !0),
|
|
862
|
+
A = g.cloneNode(!0), de(A, t.ghostClass, !1), de(A, t.fallbackClass, !0), de(A, t.dragClass, !0), F(A, "transition", ""), F(A, "transform", ""), F(A, "box-sizing", "border-box"), F(A, "margin", 0), F(A, "top", o.top), F(A, "left", o.left), F(A, "width", o.width), F(A, "height", o.height), F(A, "opacity", "0.8"), F(A, "position", mt ? "absolute" : "fixed"), F(A, "zIndex", "100000"), F(A, "pointerEvents", "none"), O.ghost = A, e.appendChild(A), F(A, "transform-origin", mo / parseInt(A.style.width) * 100 + "% " + po / parseInt(A.style.height) * 100 + "%");
|
|
863
863
|
}
|
|
864
864
|
},
|
|
865
865
|
_onDragStart: function(e, o) {
|
|
866
866
|
var t = this, n = e.dataTransfer, l = t.options;
|
|
867
867
|
if (se("dragStart", this, {
|
|
868
868
|
evt: e
|
|
869
|
-
}),
|
|
869
|
+
}), O.eventCanceled) {
|
|
870
870
|
this._onDrop();
|
|
871
871
|
return;
|
|
872
872
|
}
|
|
873
|
-
se("setupClone", this),
|
|
874
|
-
se("clone", t), !
|
|
873
|
+
se("setupClone", this), O.eventCanceled || (Z = Ro(g), Z.removeAttribute("id"), Z.draggable = !1, Z.style["will-change"] = "", this._hideClone(), de(Z, this.options.chosenClass, !1), O.clone = Z), t.cloneId = ht(function() {
|
|
874
|
+
se("clone", t), !O.eventCanceled && (t.options.removeCloneOnHide || q.insertBefore(Z, g), t._hideClone(), re({
|
|
875
875
|
sortable: t,
|
|
876
876
|
name: "clone"
|
|
877
877
|
}));
|
|
878
|
-
}), !o && de(g, l.dragClass, !0), o ? (
|
|
878
|
+
}), !o && de(g, l.dragClass, !0), o ? (Ct = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (X(document, "mouseup", t._onDrop), X(document, "touchend", t._onDrop), X(document, "touchcancel", t._onDrop), n && (n.effectAllowed = "move", l.setData && l.setData.call(t, n, g)), z(document, "drop", t), F(g, "transform", "translateZ(0)")), Be = !0, t._dragStartId = ht(t._dragStarted.bind(t, o, e)), z(document, "selectstart", t), Ke = !0, Ze && F(document.body, "user-select", "none");
|
|
879
879
|
},
|
|
880
880
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
881
881
|
_onDragOver: function(e) {
|
|
882
|
-
var o = this.el, t = e.target, n, l,
|
|
883
|
-
if (
|
|
882
|
+
var o = this.el, t = e.target, n, l, a, i = this.options, s = i.group, r = O.active, d = ut === s, u = i.sort, c = ne || r, p, f = this, E = !1;
|
|
883
|
+
if (Mt)
|
|
884
884
|
return;
|
|
885
|
-
function
|
|
886
|
-
se(le,
|
|
885
|
+
function S(le, Ee) {
|
|
886
|
+
se(le, f, Ce({
|
|
887
887
|
evt: e,
|
|
888
888
|
isOwner: d,
|
|
889
|
-
axis:
|
|
890
|
-
revert:
|
|
889
|
+
axis: p ? "vertical" : "horizontal",
|
|
890
|
+
revert: a,
|
|
891
891
|
dragRect: n,
|
|
892
892
|
targetRect: l,
|
|
893
893
|
canSort: u,
|
|
894
|
-
fromSortable:
|
|
894
|
+
fromSortable: c,
|
|
895
895
|
target: t,
|
|
896
896
|
completed: M,
|
|
897
|
-
onMove: function(
|
|
898
|
-
return
|
|
897
|
+
onMove: function(D, U) {
|
|
898
|
+
return pt(q, o, g, n, D, oe(D), e, U);
|
|
899
899
|
},
|
|
900
900
|
changed: K
|
|
901
|
-
},
|
|
901
|
+
}, Ee));
|
|
902
902
|
}
|
|
903
|
-
function
|
|
904
|
-
|
|
903
|
+
function I() {
|
|
904
|
+
S("dragOverAnimationCapture"), f.captureAnimationState(), f !== c && c.captureAnimationState();
|
|
905
905
|
}
|
|
906
906
|
function M(le) {
|
|
907
|
-
return
|
|
907
|
+
return S("dragOverCompleted", {
|
|
908
908
|
insertion: le
|
|
909
|
-
}), le && (d ? r._hideClone() : r._showClone(
|
|
910
|
-
|
|
911
|
-
}),
|
|
909
|
+
}), le && (d ? r._hideClone() : r._showClone(f), f !== c && (de(g, ne ? ne.options.ghostClass : r.options.ghostClass, !1), de(g, i.ghostClass, !0)), ne !== f && f !== O.active ? ne = f : f === O.active && ne && (ne = null), c === f && (f._ignoreWhileAnimating = t), f.animateAll(function() {
|
|
910
|
+
S("dragOverAnimationComplete"), f._ignoreWhileAnimating = null;
|
|
911
|
+
}), f !== c && (c.animateAll(), c._ignoreWhileAnimating = null)), (t === g && !g.animated || t === o && !t.animated) && ($e = null), !i.dragoverBubble && !e.rootEl && t !== document && (g.parentNode[ce]._isOutsideThisEl(e.target), !le && Ae(e)), !i.dragoverBubble && e.stopPropagation && e.stopPropagation(), E = !0;
|
|
912
912
|
}
|
|
913
913
|
function K() {
|
|
914
|
-
ue = fe(g), Ie = fe(g,
|
|
915
|
-
sortable:
|
|
914
|
+
ue = fe(g), Ie = fe(g, i.draggable), re({
|
|
915
|
+
sortable: f,
|
|
916
916
|
name: "change",
|
|
917
917
|
toEl: o,
|
|
918
918
|
newIndex: ue,
|
|
@@ -920,46 +920,46 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
920
920
|
originalEvent: e
|
|
921
921
|
});
|
|
922
922
|
}
|
|
923
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = he(t,
|
|
923
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = he(t, i.draggable, o, !0), S("dragOver"), O.eventCanceled)
|
|
924
924
|
return E;
|
|
925
|
-
if (g.contains(e.target) || t.animated && t.animatingX && t.animatingY ||
|
|
925
|
+
if (g.contains(e.target) || t.animated && t.animatingX && t.animatingY || f._ignoreWhileAnimating === t)
|
|
926
926
|
return M(!1);
|
|
927
|
-
if (
|
|
928
|
-
if (
|
|
927
|
+
if (Ct = !1, r && !i.disabled && (d ? u || (a = Q !== q) : ne === this || (this.lastPutMode = ut.checkPull(this, r, g, e)) && s.checkPut(this, r, g, e))) {
|
|
928
|
+
if (p = this._getDirection(e, t) === "vertical", n = oe(g), S("dragOverValid"), O.eventCanceled)
|
|
929
929
|
return E;
|
|
930
|
-
if (
|
|
931
|
-
return Q = q,
|
|
932
|
-
var
|
|
933
|
-
if (
|
|
934
|
-
if (
|
|
930
|
+
if (a)
|
|
931
|
+
return Q = q, I(), this._hideClone(), S("revert"), O.eventCanceled || (We ? q.insertBefore(g, We) : q.appendChild(g)), M(!0);
|
|
932
|
+
var B = Ht(o, i.draggable);
|
|
933
|
+
if (!B || Jn(e, p, this) && !B.animated) {
|
|
934
|
+
if (B === g)
|
|
935
935
|
return M(!1);
|
|
936
|
-
if (
|
|
937
|
-
return
|
|
938
|
-
} else if (
|
|
939
|
-
var N =
|
|
936
|
+
if (B && o === e.target && (t = B), t && (l = oe(t)), pt(q, o, g, n, t, l, e, !!t) !== !1)
|
|
937
|
+
return I(), B && B.nextSibling ? o.insertBefore(g, B.nextSibling) : o.appendChild(g), Q = o, K(), M(!0);
|
|
938
|
+
} else if (B && qn(e, p, this)) {
|
|
939
|
+
var N = Ge(o, 0, i, !0);
|
|
940
940
|
if (N === g)
|
|
941
941
|
return M(!1);
|
|
942
|
-
if (t = N, l = oe(t),
|
|
943
|
-
return
|
|
942
|
+
if (t = N, l = oe(t), pt(q, o, g, n, t, l, e, !1) !== !1)
|
|
943
|
+
return I(), o.insertBefore(g, N), Q = o, K(), M(!0);
|
|
944
944
|
} else if (t.parentNode === o) {
|
|
945
945
|
l = oe(t);
|
|
946
|
-
var Y = 0,
|
|
947
|
-
|
|
946
|
+
var Y = 0, $, h = g.parentNode !== o, v = !Yn(g.animated && g.toRect || n, t.animated && t.toRect || l, p), _ = p ? "top" : "left", m = uo(t, "top", "top") || uo(g, "top", "top"), k = m ? m.scrollTop : void 0;
|
|
947
|
+
$e !== t && ($ = l[_], ot = !1, ct = !v && i.invertSwap || h), Y = Zn(e, t, l, p, v ? 1 : i.swapThreshold, i.invertedSwapThreshold == null ? i.swapThreshold : i.invertedSwapThreshold, ct, $e === t);
|
|
948
948
|
var C;
|
|
949
949
|
if (Y !== 0) {
|
|
950
|
-
var
|
|
950
|
+
var T = fe(g);
|
|
951
951
|
do
|
|
952
|
-
|
|
953
|
-
while (C && (
|
|
952
|
+
T -= Y, C = Q.children[T];
|
|
953
|
+
while (C && (F(C, "display") === "none" || C === A));
|
|
954
954
|
}
|
|
955
955
|
if (Y === 0 || C === t)
|
|
956
956
|
return M(!1);
|
|
957
|
-
|
|
957
|
+
$e = t, tt = Y;
|
|
958
958
|
var b = t.nextElementSibling, P = !1;
|
|
959
959
|
P = Y === 1;
|
|
960
|
-
var G =
|
|
960
|
+
var G = pt(q, o, g, n, t, l, e, P);
|
|
961
961
|
if (G !== !1)
|
|
962
|
-
return (G === 1 || G === -1) && (P = G === 1),
|
|
962
|
+
return (G === 1 || G === -1) && (P = G === 1), Mt = !0, setTimeout(Kn, 30), I(), P && !b ? o.appendChild(g) : t.parentNode.insertBefore(g, P ? b : t), m && Oo(m, 0, k - m.scrollTop), Q = g.parentNode, $ !== void 0 && !ct && (vt = Math.abs($ - oe(t)[_])), K(), M(!0);
|
|
963
963
|
}
|
|
964
964
|
if (o.contains(g))
|
|
965
965
|
return M(!1);
|
|
@@ -968,21 +968,21 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
968
968
|
},
|
|
969
969
|
_ignoreWhileAnimating: null,
|
|
970
970
|
_offMoveEvents: function() {
|
|
971
|
-
|
|
971
|
+
X(document, "mousemove", this._onTouchMove), X(document, "touchmove", this._onTouchMove), X(document, "pointermove", this._onTouchMove), X(document, "dragover", Ae), X(document, "mousemove", Ae), X(document, "touchmove", Ae);
|
|
972
972
|
},
|
|
973
973
|
_offUpEvents: function() {
|
|
974
974
|
var e = this.el.ownerDocument;
|
|
975
|
-
|
|
975
|
+
X(e, "mouseup", this._onDrop), X(e, "touchend", this._onDrop), X(e, "pointerup", this._onDrop), X(e, "touchcancel", this._onDrop), X(document, "selectstart", this);
|
|
976
976
|
},
|
|
977
977
|
_onDrop: function(e) {
|
|
978
978
|
var o = this.el, t = this.options;
|
|
979
979
|
if (ue = fe(g), Ie = fe(g, t.draggable), se("drop", this, {
|
|
980
980
|
evt: e
|
|
981
|
-
}), Q = g && g.parentNode, ue = fe(g), Ie = fe(g, t.draggable),
|
|
981
|
+
}), Q = g && g.parentNode, ue = fe(g), Ie = fe(g, t.draggable), O.eventCanceled) {
|
|
982
982
|
this._nulling();
|
|
983
983
|
return;
|
|
984
984
|
}
|
|
985
|
-
|
|
985
|
+
Be = !1, ct = !1, ot = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), Ut(this.cloneId), Ut(this._dragStartId), this.nativeDraggable && (X(document, "drop", this), X(o, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Ze && F(document.body, "user-select", ""), F(g, "transform", ""), e && (Ke && (e.cancelable && e.preventDefault(), !t.dropBubble && e.stopPropagation()), A && A.parentNode && A.parentNode.removeChild(A), (q === Q || ne && ne.lastPutMode !== "clone") && Z && Z.parentNode && Z.parentNode.removeChild(Z), g && (this.nativeDraggable && X(g, "dragend", this), Pt(g), g.style["will-change"] = "", Ke && !Be && de(g, ne ? ne.options.ghostClass : this.options.ghostClass, !1), de(g, this.options.chosenClass, !1), re({
|
|
986
986
|
sortable: this,
|
|
987
987
|
name: "unchoose",
|
|
988
988
|
toEl: Q,
|
|
@@ -1011,7 +1011,7 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
1011
1011
|
name: "sort",
|
|
1012
1012
|
toEl: Q,
|
|
1013
1013
|
originalEvent: e
|
|
1014
|
-
})), ne && ne.save()) : ue !==
|
|
1014
|
+
})), ne && ne.save()) : ue !== Xe && ue >= 0 && (re({
|
|
1015
1015
|
sortable: this,
|
|
1016
1016
|
name: "update",
|
|
1017
1017
|
toEl: Q,
|
|
@@ -1021,7 +1021,7 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
1021
1021
|
name: "sort",
|
|
1022
1022
|
toEl: Q,
|
|
1023
1023
|
originalEvent: e
|
|
1024
|
-
})),
|
|
1024
|
+
})), O.active && ((ue == null || ue === -1) && (ue = Xe, Ie = et), re({
|
|
1025
1025
|
sortable: this,
|
|
1026
1026
|
name: "end",
|
|
1027
1027
|
toEl: Q,
|
|
@@ -1029,9 +1029,9 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
1029
1029
|
}), this.save()))), this._nulling();
|
|
1030
1030
|
},
|
|
1031
1031
|
_nulling: function() {
|
|
1032
|
-
se("nulling", this), q = g = Q = A =
|
|
1032
|
+
se("nulling", this), q = g = Q = A = We = Z = gt = Fe = Re = ve = Ke = ue = Ie = Xe = et = $e = tt = ne = ut = O.dragged = O.ghost = O.clone = O.active = null, Tt.forEach(function(e) {
|
|
1033
1033
|
e.checked = !0;
|
|
1034
|
-
}),
|
|
1034
|
+
}), Tt.length = At = Wt = 0;
|
|
1035
1035
|
},
|
|
1036
1036
|
handleEvent: function(e) {
|
|
1037
1037
|
switch (e.type) {
|
|
@@ -1041,7 +1041,7 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
1041
1041
|
break;
|
|
1042
1042
|
case "dragenter":
|
|
1043
1043
|
case "dragover":
|
|
1044
|
-
g && (this._onDragOver(e),
|
|
1044
|
+
g && (this._onDragOver(e), jn(e));
|
|
1045
1045
|
break;
|
|
1046
1046
|
case "selectstart":
|
|
1047
1047
|
e.preventDefault();
|
|
@@ -1053,8 +1053,8 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
1053
1053
|
* @returns {String[]}
|
|
1054
1054
|
*/
|
|
1055
1055
|
toArray: function() {
|
|
1056
|
-
for (var e = [], o, t = this.el.children, n = 0, l = t.length,
|
|
1057
|
-
o = t[n], he(o,
|
|
1056
|
+
for (var e = [], o, t = this.el.children, n = 0, l = t.length, a = this.options; n < l; n++)
|
|
1057
|
+
o = t[n], he(o, a.draggable, this.el, !1) && e.push(o.getAttribute(a.dataIdAttr) || el(o));
|
|
1058
1058
|
return e;
|
|
1059
1059
|
},
|
|
1060
1060
|
/**
|
|
@@ -1063,9 +1063,9 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
1063
1063
|
*/
|
|
1064
1064
|
sort: function(e, o) {
|
|
1065
1065
|
var t = {}, n = this.el;
|
|
1066
|
-
this.toArray().forEach(function(l,
|
|
1067
|
-
var
|
|
1068
|
-
he(
|
|
1066
|
+
this.toArray().forEach(function(l, a) {
|
|
1067
|
+
var i = n.children[a];
|
|
1068
|
+
he(i, this.options.draggable, n, !1) && (t[l] = i);
|
|
1069
1069
|
}, this), o && this.captureAnimationState(), e.forEach(function(l) {
|
|
1070
1070
|
t[l] && (n.removeChild(t[l]), n.appendChild(t[l]));
|
|
1071
1071
|
}), o && this.animateAll();
|
|
@@ -1096,8 +1096,8 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
1096
1096
|
var t = this.options;
|
|
1097
1097
|
if (o === void 0)
|
|
1098
1098
|
return t[e];
|
|
1099
|
-
var n =
|
|
1100
|
-
typeof n < "u" ? t[e] = n : t[e] = o, e === "group" &&
|
|
1099
|
+
var n = st.modifyOption(this, e, o);
|
|
1100
|
+
typeof n < "u" ? t[e] = n : t[e] = o, e === "group" && Po(t);
|
|
1101
1101
|
},
|
|
1102
1102
|
/**
|
|
1103
1103
|
* Destroy
|
|
@@ -1105,15 +1105,15 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
1105
1105
|
destroy: function() {
|
|
1106
1106
|
se("destroy", this);
|
|
1107
1107
|
var e = this.el;
|
|
1108
|
-
e[ce] = null,
|
|
1108
|
+
e[ce] = null, X(e, "mousedown", this._onTapStart), X(e, "touchstart", this._onTapStart), X(e, "pointerdown", this._onTapStart), this.nativeDraggable && (X(e, "dragover", this), X(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(o) {
|
|
1109
1109
|
o.removeAttribute("draggable");
|
|
1110
|
-
}), this._onDrop(), this._disableDelayedDragEvents(),
|
|
1110
|
+
}), this._onDrop(), this._disableDelayedDragEvents(), Et.splice(Et.indexOf(this.el), 1), this.el = e = null;
|
|
1111
1111
|
},
|
|
1112
1112
|
_hideClone: function() {
|
|
1113
1113
|
if (!Fe) {
|
|
1114
|
-
if (se("hideClone", this),
|
|
1114
|
+
if (se("hideClone", this), O.eventCanceled)
|
|
1115
1115
|
return;
|
|
1116
|
-
|
|
1116
|
+
F(Z, "display", "none"), this.options.removeCloneOnHide && Z.parentNode && Z.parentNode.removeChild(Z), Fe = !0;
|
|
1117
1117
|
}
|
|
1118
1118
|
},
|
|
1119
1119
|
_showClone: function(e) {
|
|
@@ -1122,110 +1122,110 @@ F.prototype = /** @lends Sortable.prototype */
|
|
|
1122
1122
|
return;
|
|
1123
1123
|
}
|
|
1124
1124
|
if (Fe) {
|
|
1125
|
-
if (se("showClone", this),
|
|
1125
|
+
if (se("showClone", this), O.eventCanceled)
|
|
1126
1126
|
return;
|
|
1127
|
-
g.parentNode == q && !this.options.group.revertClone ? q.insertBefore(Z, g) :
|
|
1127
|
+
g.parentNode == q && !this.options.group.revertClone ? q.insertBefore(Z, g) : We ? q.insertBefore(Z, We) : q.appendChild(Z), this.options.group.revertClone && this.animate(g, Z), F(Z, "display", ""), Fe = !1;
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
};
|
|
1131
|
-
function
|
|
1131
|
+
function jn(e) {
|
|
1132
1132
|
e.dataTransfer && (e.dataTransfer.dropEffect = "move"), e.cancelable && e.preventDefault();
|
|
1133
1133
|
}
|
|
1134
|
-
function
|
|
1135
|
-
var r, d = e[ce], u = d.options.onMove,
|
|
1136
|
-
return window.CustomEvent && !xe && !
|
|
1134
|
+
function pt(e, o, t, n, l, a, i, s) {
|
|
1135
|
+
var r, d = e[ce], u = d.options.onMove, c;
|
|
1136
|
+
return window.CustomEvent && !xe && !rt ? r = new CustomEvent("move", {
|
|
1137
1137
|
bubbles: !0,
|
|
1138
1138
|
cancelable: !0
|
|
1139
|
-
}) : (r = document.createEvent("Event"), r.initEvent("move", !0, !0)), r.to = o, r.from = e, r.dragged = t, r.draggedRect = n, r.related = l || o, r.relatedRect =
|
|
1139
|
+
}) : (r = document.createEvent("Event"), r.initEvent("move", !0, !0)), r.to = o, r.from = e, r.dragged = t, r.draggedRect = n, r.related = l || o, r.relatedRect = a || oe(o), r.willInsertAfter = s, r.originalEvent = i, e.dispatchEvent(r), u && (c = u.call(d, r, i)), c;
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1141
|
+
function Pt(e) {
|
|
1142
1142
|
e.draggable = !1;
|
|
1143
1143
|
}
|
|
1144
|
-
function
|
|
1145
|
-
|
|
1146
|
-
}
|
|
1147
|
-
function
|
|
1148
|
-
var n = oe(
|
|
1149
|
-
return o ? e.clientX < l.left -
|
|
1150
|
-
}
|
|
1151
|
-
function
|
|
1152
|
-
var n = oe(
|
|
1153
|
-
return o ? e.clientX > l.right +
|
|
1154
|
-
}
|
|
1155
|
-
function
|
|
1156
|
-
var r = n ? e.clientY : e.clientX, d = n ? t.height : t.width, u = n ? t.top : t.left,
|
|
1157
|
-
if (!
|
|
1158
|
-
if (s &&
|
|
1159
|
-
if (!
|
|
1160
|
-
|
|
1161
|
-
else if (
|
|
1162
|
-
return -
|
|
1163
|
-
} else if (r > u + d * (1 - l) / 2 && r <
|
|
1164
|
-
return
|
|
1144
|
+
function Kn() {
|
|
1145
|
+
Mt = !1;
|
|
1146
|
+
}
|
|
1147
|
+
function qn(e, o, t) {
|
|
1148
|
+
var n = oe(Ge(t.el, 0, t.options, !0)), l = Ao(t.el, t.options, A), a = 10;
|
|
1149
|
+
return o ? e.clientX < l.left - a || e.clientY < n.top && e.clientX < n.right : e.clientY < l.top - a || e.clientY < n.bottom && e.clientX < n.left;
|
|
1150
|
+
}
|
|
1151
|
+
function Jn(e, o, t) {
|
|
1152
|
+
var n = oe(Ht(t.el, t.options.draggable)), l = Ao(t.el, t.options, A), a = 10;
|
|
1153
|
+
return o ? e.clientX > l.right + a || e.clientY > n.bottom && e.clientX > n.left : e.clientY > l.bottom + a || e.clientX > n.right && e.clientY > n.top;
|
|
1154
|
+
}
|
|
1155
|
+
function Zn(e, o, t, n, l, a, i, s) {
|
|
1156
|
+
var r = n ? e.clientY : e.clientX, d = n ? t.height : t.width, u = n ? t.top : t.left, c = n ? t.bottom : t.right, p = !1;
|
|
1157
|
+
if (!i) {
|
|
1158
|
+
if (s && vt < d * l) {
|
|
1159
|
+
if (!ot && (tt === 1 ? r > u + d * a / 2 : r < c - d * a / 2) && (ot = !0), ot)
|
|
1160
|
+
p = !0;
|
|
1161
|
+
else if (tt === 1 ? r < u + vt : r > c - vt)
|
|
1162
|
+
return -tt;
|
|
1163
|
+
} else if (r > u + d * (1 - l) / 2 && r < c - d * (1 - l) / 2)
|
|
1164
|
+
return Qn(o);
|
|
1165
1165
|
}
|
|
1166
|
-
return
|
|
1166
|
+
return p = p || i, p && (r < u + d * a / 2 || r > c - d * a / 2) ? r > u + d / 2 ? 1 : -1 : 0;
|
|
1167
1167
|
}
|
|
1168
|
-
function
|
|
1168
|
+
function Qn(e) {
|
|
1169
1169
|
return fe(g) < fe(e) ? 1 : -1;
|
|
1170
1170
|
}
|
|
1171
|
-
function
|
|
1171
|
+
function el(e) {
|
|
1172
1172
|
for (var o = e.tagName + e.className + e.src + e.href + e.textContent, t = o.length, n = 0; t--; )
|
|
1173
1173
|
n += o.charCodeAt(t);
|
|
1174
1174
|
return n.toString(36);
|
|
1175
1175
|
}
|
|
1176
|
-
function
|
|
1177
|
-
|
|
1176
|
+
function tl(e) {
|
|
1177
|
+
Tt.length = 0;
|
|
1178
1178
|
for (var o = e.getElementsByTagName("input"), t = o.length; t--; ) {
|
|
1179
1179
|
var n = o[t];
|
|
1180
|
-
n.checked &&
|
|
1180
|
+
n.checked && Tt.push(n);
|
|
1181
1181
|
}
|
|
1182
1182
|
}
|
|
1183
|
-
function
|
|
1183
|
+
function ht(e) {
|
|
1184
1184
|
return setTimeout(e, 0);
|
|
1185
1185
|
}
|
|
1186
|
-
function
|
|
1186
|
+
function Ut(e) {
|
|
1187
1187
|
return clearTimeout(e);
|
|
1188
1188
|
}
|
|
1189
|
-
|
|
1190
|
-
(
|
|
1189
|
+
Vt && z(document, "touchmove", function(e) {
|
|
1190
|
+
(O.active || Be) && e.cancelable && e.preventDefault();
|
|
1191
1191
|
});
|
|
1192
|
-
|
|
1192
|
+
O.utils = {
|
|
1193
1193
|
on: z,
|
|
1194
|
-
off:
|
|
1195
|
-
css:
|
|
1196
|
-
find:
|
|
1194
|
+
off: X,
|
|
1195
|
+
css: F,
|
|
1196
|
+
find: Io,
|
|
1197
1197
|
is: function(e, o) {
|
|
1198
1198
|
return !!he(e, o, e, !1);
|
|
1199
1199
|
},
|
|
1200
|
-
extend:
|
|
1201
|
-
throttle:
|
|
1200
|
+
extend: Pn,
|
|
1201
|
+
throttle: Fo,
|
|
1202
1202
|
closest: he,
|
|
1203
1203
|
toggleClass: de,
|
|
1204
|
-
clone:
|
|
1204
|
+
clone: Ro,
|
|
1205
1205
|
index: fe,
|
|
1206
|
-
nextTick:
|
|
1207
|
-
cancelNextTick:
|
|
1208
|
-
detectDirection:
|
|
1209
|
-
getChild:
|
|
1206
|
+
nextTick: ht,
|
|
1207
|
+
cancelNextTick: Ut,
|
|
1208
|
+
detectDirection: No,
|
|
1209
|
+
getChild: Ge
|
|
1210
1210
|
};
|
|
1211
|
-
|
|
1211
|
+
O.get = function(e) {
|
|
1212
1212
|
return e[ce];
|
|
1213
1213
|
};
|
|
1214
|
-
|
|
1214
|
+
O.mount = function() {
|
|
1215
1215
|
for (var e = arguments.length, o = new Array(e), t = 0; t < e; t++)
|
|
1216
1216
|
o[t] = arguments[t];
|
|
1217
1217
|
o[0].constructor === Array && (o = o[0]), o.forEach(function(n) {
|
|
1218
1218
|
if (!n.prototype || !n.prototype.constructor)
|
|
1219
1219
|
throw "Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(n));
|
|
1220
|
-
n.utils && (
|
|
1220
|
+
n.utils && (O.utils = Ce(Ce({}, O.utils), n.utils)), st.mount(n);
|
|
1221
1221
|
});
|
|
1222
1222
|
};
|
|
1223
|
-
|
|
1224
|
-
return new
|
|
1223
|
+
O.create = function(e, o) {
|
|
1224
|
+
return new O(e, o);
|
|
1225
1225
|
};
|
|
1226
|
-
|
|
1227
|
-
var te = [],
|
|
1228
|
-
function
|
|
1226
|
+
O.version = An;
|
|
1227
|
+
var te = [], qe, Xt, zt = !1, Lt, $t, wt, Je;
|
|
1228
|
+
function ol() {
|
|
1229
1229
|
function e() {
|
|
1230
1230
|
this.defaults = {
|
|
1231
1231
|
scroll: !0,
|
|
@@ -1247,29 +1247,29 @@ function il() {
|
|
|
1247
1247
|
!this.options.dragOverBubble && !t.rootEl && this._handleAutoScroll(t);
|
|
1248
1248
|
},
|
|
1249
1249
|
drop: function() {
|
|
1250
|
-
this.sortable.nativeDraggable ?
|
|
1250
|
+
this.sortable.nativeDraggable ? X(document, "dragover", this._handleAutoScroll) : (X(document, "pointermove", this._handleFallbackAutoScroll), X(document, "touchmove", this._handleFallbackAutoScroll), X(document, "mousemove", this._handleFallbackAutoScroll)), go(), bt(), Ln();
|
|
1251
1251
|
},
|
|
1252
1252
|
nulling: function() {
|
|
1253
|
-
|
|
1253
|
+
wt = Xt = qe = zt = Je = Lt = $t = null, te.length = 0;
|
|
1254
1254
|
},
|
|
1255
1255
|
_handleFallbackAutoScroll: function(o) {
|
|
1256
1256
|
this._handleAutoScroll(o, !0);
|
|
1257
1257
|
},
|
|
1258
1258
|
_handleAutoScroll: function(o, t) {
|
|
1259
|
-
var n = this, l = (o.touches ? o.touches[0] : o).clientX,
|
|
1260
|
-
if (
|
|
1261
|
-
|
|
1262
|
-
var s = Oe(
|
|
1263
|
-
|
|
1264
|
-
var r = Oe(document.elementFromPoint(l,
|
|
1265
|
-
r !== s && (s = r,
|
|
1266
|
-
}, 10),
|
|
1259
|
+
var n = this, l = (o.touches ? o.touches[0] : o).clientX, a = (o.touches ? o.touches[0] : o).clientY, i = document.elementFromPoint(l, a);
|
|
1260
|
+
if (wt = o, t || this.options.forceAutoScrollFallback || rt || xe || Ze) {
|
|
1261
|
+
Bt(o, this.options, i, t);
|
|
1262
|
+
var s = Oe(i, !0);
|
|
1263
|
+
zt && (!Je || l !== Lt || a !== $t) && (Je && go(), Je = setInterval(function() {
|
|
1264
|
+
var r = Oe(document.elementFromPoint(l, a), !0);
|
|
1265
|
+
r !== s && (s = r, bt()), Bt(o, n.options, r, t);
|
|
1266
|
+
}, 10), Lt = l, $t = a);
|
|
1267
1267
|
} else {
|
|
1268
|
-
if (!this.options.bubbleScroll || Oe(
|
|
1269
|
-
|
|
1268
|
+
if (!this.options.bubbleScroll || Oe(i, !0) === _e()) {
|
|
1269
|
+
bt();
|
|
1270
1270
|
return;
|
|
1271
1271
|
}
|
|
1272
|
-
|
|
1272
|
+
Bt(o, this.options, Oe(i, !1), !1);
|
|
1273
1273
|
}
|
|
1274
1274
|
}
|
|
1275
1275
|
}, ke(e, {
|
|
@@ -1277,51 +1277,51 @@ function il() {
|
|
|
1277
1277
|
initializeByDefault: !0
|
|
1278
1278
|
});
|
|
1279
1279
|
}
|
|
1280
|
-
function
|
|
1280
|
+
function bt() {
|
|
1281
1281
|
te.forEach(function(e) {
|
|
1282
1282
|
clearInterval(e.pid);
|
|
1283
1283
|
}), te = [];
|
|
1284
1284
|
}
|
|
1285
|
-
function
|
|
1286
|
-
clearInterval(
|
|
1285
|
+
function go() {
|
|
1286
|
+
clearInterval(Je);
|
|
1287
1287
|
}
|
|
1288
|
-
var
|
|
1288
|
+
var Bt = Fo(function(e, o, t, n) {
|
|
1289
1289
|
if (o.scroll) {
|
|
1290
|
-
var l = (e.touches ? e.touches[0] : e).clientX,
|
|
1291
|
-
|
|
1292
|
-
var
|
|
1290
|
+
var l = (e.touches ? e.touches[0] : e).clientX, a = (e.touches ? e.touches[0] : e).clientY, i = o.scrollSensitivity, s = o.scrollSpeed, r = _e(), d = !1, u;
|
|
1291
|
+
Xt !== t && (Xt = t, bt(), qe = o.scroll, u = o.scrollFn, qe === !0 && (qe = Oe(t, !0)));
|
|
1292
|
+
var c = 0, p = qe;
|
|
1293
1293
|
do {
|
|
1294
|
-
var
|
|
1295
|
-
|
|
1296
|
-
var C = Y && (Math.abs(K - l) <=
|
|
1297
|
-
if (!te[
|
|
1298
|
-
for (var b = 0; b <=
|
|
1294
|
+
var f = p, E = oe(f), S = E.top, I = E.bottom, M = E.left, K = E.right, B = E.width, N = E.height, Y = void 0, $ = void 0, h = f.scrollWidth, v = f.scrollHeight, _ = F(f), m = f.scrollLeft, k = f.scrollTop;
|
|
1295
|
+
f === r ? (Y = B < h && (_.overflowX === "auto" || _.overflowX === "scroll" || _.overflowX === "visible"), $ = N < v && (_.overflowY === "auto" || _.overflowY === "scroll" || _.overflowY === "visible")) : (Y = B < h && (_.overflowX === "auto" || _.overflowX === "scroll"), $ = N < v && (_.overflowY === "auto" || _.overflowY === "scroll"));
|
|
1296
|
+
var C = Y && (Math.abs(K - l) <= i && m + B < h) - (Math.abs(M - l) <= i && !!m), T = $ && (Math.abs(I - a) <= i && k + N < v) - (Math.abs(S - a) <= i && !!k);
|
|
1297
|
+
if (!te[c])
|
|
1298
|
+
for (var b = 0; b <= c; b++)
|
|
1299
1299
|
te[b] || (te[b] = {});
|
|
1300
|
-
(te[
|
|
1301
|
-
n && this.layer === 0 &&
|
|
1300
|
+
(te[c].vx != C || te[c].vy != T || te[c].el !== f) && (te[c].el = f, te[c].vx = C, te[c].vy = T, clearInterval(te[c].pid), (C != 0 || T != 0) && (d = !0, te[c].pid = setInterval((function() {
|
|
1301
|
+
n && this.layer === 0 && O.active._onTouchMove(wt);
|
|
1302
1302
|
var P = te[this.layer].vy ? te[this.layer].vy * s : 0, G = te[this.layer].vx ? te[this.layer].vx * s : 0;
|
|
1303
|
-
typeof u == "function" && u.call(
|
|
1303
|
+
typeof u == "function" && u.call(O.dragged.parentNode[ce], G, P, e, wt, te[this.layer].el) !== "continue" || Oo(te[this.layer].el, G, P);
|
|
1304
1304
|
}).bind({
|
|
1305
|
-
layer:
|
|
1306
|
-
}), 24))),
|
|
1307
|
-
} while (o.bubbleScroll &&
|
|
1308
|
-
|
|
1305
|
+
layer: c
|
|
1306
|
+
}), 24))), c++;
|
|
1307
|
+
} while (o.bubbleScroll && p !== r && (p = Oe(p, !1)));
|
|
1308
|
+
zt = d;
|
|
1309
1309
|
}
|
|
1310
|
-
}, 30),
|
|
1311
|
-
var o = e.originalEvent, t = e.putSortable, n = e.dragEl, l = e.activeSortable,
|
|
1310
|
+
}, 30), Bo = function(e) {
|
|
1311
|
+
var o = e.originalEvent, t = e.putSortable, n = e.dragEl, l = e.activeSortable, a = e.dispatchSortableEvent, i = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1312
1312
|
if (o) {
|
|
1313
1313
|
var r = t || l;
|
|
1314
|
-
|
|
1314
|
+
i();
|
|
1315
1315
|
var d = o.changedTouches && o.changedTouches.length ? o.changedTouches[0] : o, u = document.elementFromPoint(d.clientX, d.clientY);
|
|
1316
|
-
s(), r && !r.el.contains(u) && (
|
|
1316
|
+
s(), r && !r.el.contains(u) && (a("spill"), this.onSpill({
|
|
1317
1317
|
dragEl: n,
|
|
1318
1318
|
putSortable: t
|
|
1319
1319
|
}));
|
|
1320
1320
|
}
|
|
1321
1321
|
};
|
|
1322
|
-
function
|
|
1322
|
+
function jt() {
|
|
1323
1323
|
}
|
|
1324
|
-
|
|
1324
|
+
jt.prototype = {
|
|
1325
1325
|
startIndex: null,
|
|
1326
1326
|
dragStart: function(e) {
|
|
1327
1327
|
var o = e.oldDraggableIndex;
|
|
@@ -1330,164 +1330,164 @@ qt.prototype = {
|
|
|
1330
1330
|
onSpill: function(e) {
|
|
1331
1331
|
var o = e.dragEl, t = e.putSortable;
|
|
1332
1332
|
this.sortable.captureAnimationState(), t && t.captureAnimationState();
|
|
1333
|
-
var n =
|
|
1333
|
+
var n = Ge(this.sortable.el, this.startIndex, this.options);
|
|
1334
1334
|
n ? this.sortable.el.insertBefore(o, n) : this.sortable.el.appendChild(o), this.sortable.animateAll(), t && t.animateAll();
|
|
1335
1335
|
},
|
|
1336
|
-
drop:
|
|
1336
|
+
drop: Bo
|
|
1337
1337
|
};
|
|
1338
|
-
ke(
|
|
1338
|
+
ke(jt, {
|
|
1339
1339
|
pluginName: "revertOnSpill"
|
|
1340
1340
|
});
|
|
1341
|
-
function
|
|
1341
|
+
function Kt() {
|
|
1342
1342
|
}
|
|
1343
|
-
|
|
1343
|
+
Kt.prototype = {
|
|
1344
1344
|
onSpill: function(e) {
|
|
1345
1345
|
var o = e.dragEl, t = e.putSortable, n = t || this.sortable;
|
|
1346
1346
|
n.captureAnimationState(), o.parentNode && o.parentNode.removeChild(o), n.animateAll();
|
|
1347
1347
|
},
|
|
1348
|
-
drop:
|
|
1348
|
+
drop: Bo
|
|
1349
1349
|
};
|
|
1350
|
-
ke(
|
|
1350
|
+
ke(Kt, {
|
|
1351
1351
|
pluginName: "removeOnSpill"
|
|
1352
1352
|
});
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
function
|
|
1353
|
+
O.mount(new ol());
|
|
1354
|
+
O.mount(Kt, jt);
|
|
1355
|
+
function nl(e) {
|
|
1356
1356
|
return e == null ? e : JSON.parse(JSON.stringify(e));
|
|
1357
1357
|
}
|
|
1358
|
-
function
|
|
1359
|
-
|
|
1358
|
+
function ll(e) {
|
|
1359
|
+
Gt() && Ko(e);
|
|
1360
1360
|
}
|
|
1361
|
-
function
|
|
1362
|
-
|
|
1361
|
+
function il(e) {
|
|
1362
|
+
Gt() ? bo(e) : yo(e);
|
|
1363
1363
|
}
|
|
1364
|
-
let
|
|
1365
|
-
function
|
|
1366
|
-
|
|
1364
|
+
let Mo = null, Uo = null;
|
|
1365
|
+
function vo(e = null, o = null) {
|
|
1366
|
+
Mo = e, Uo = o;
|
|
1367
1367
|
}
|
|
1368
|
-
function
|
|
1368
|
+
function al() {
|
|
1369
1369
|
return {
|
|
1370
|
-
data:
|
|
1371
|
-
clonedData:
|
|
1370
|
+
data: Mo,
|
|
1371
|
+
clonedData: Uo
|
|
1372
1372
|
};
|
|
1373
1373
|
}
|
|
1374
|
-
const
|
|
1375
|
-
function
|
|
1374
|
+
const ho = Symbol("cloneElement");
|
|
1375
|
+
function rl(...e) {
|
|
1376
1376
|
var o, t;
|
|
1377
|
-
const n = (o =
|
|
1377
|
+
const n = (o = Gt()) == null ? void 0 : o.proxy;
|
|
1378
1378
|
let l = null;
|
|
1379
|
-
const
|
|
1380
|
-
let [,
|
|
1381
|
-
Array.isArray(y(
|
|
1379
|
+
const a = e[0];
|
|
1380
|
+
let [, i, s] = e;
|
|
1381
|
+
Array.isArray(y(i)) || (s = i, i = null);
|
|
1382
1382
|
let r = null;
|
|
1383
1383
|
const {
|
|
1384
1384
|
immediate: d = !0,
|
|
1385
|
-
clone: u =
|
|
1386
|
-
customUpdate:
|
|
1385
|
+
clone: u = nl,
|
|
1386
|
+
customUpdate: c
|
|
1387
1387
|
} = (t = y(s)) != null ? t : {};
|
|
1388
|
-
function
|
|
1388
|
+
function p(v) {
|
|
1389
1389
|
var _;
|
|
1390
|
-
const { from:
|
|
1391
|
-
l = Array.from(
|
|
1392
|
-
const
|
|
1393
|
-
|
|
1390
|
+
const { from: m, oldIndex: k, item: C } = v;
|
|
1391
|
+
l = Array.from(m.childNodes);
|
|
1392
|
+
const T = y((_ = y(i)) == null ? void 0 : _[k]), b = u(T);
|
|
1393
|
+
vo(T, b), C[ho] = b;
|
|
1394
1394
|
}
|
|
1395
|
-
function
|
|
1396
|
-
const _ = v.item[
|
|
1397
|
-
if (!
|
|
1398
|
-
if (
|
|
1399
|
-
const
|
|
1400
|
-
|
|
1395
|
+
function f(v) {
|
|
1396
|
+
const _ = v.item[ho];
|
|
1397
|
+
if (!Tn(_)) {
|
|
1398
|
+
if (Ft(v.item), It(i)) {
|
|
1399
|
+
const m = [...y(i)];
|
|
1400
|
+
i.value = no(m, v.newDraggableIndex, _);
|
|
1401
1401
|
return;
|
|
1402
1402
|
}
|
|
1403
|
-
|
|
1403
|
+
no(y(i), v.newDraggableIndex, _);
|
|
1404
1404
|
}
|
|
1405
1405
|
}
|
|
1406
1406
|
function E(v) {
|
|
1407
|
-
const { from: _, item:
|
|
1408
|
-
if (
|
|
1409
|
-
|
|
1407
|
+
const { from: _, item: m, oldIndex: k, oldDraggableIndex: C, pullMode: T, clone: b } = v;
|
|
1408
|
+
if (lo(_, m, k), T === "clone") {
|
|
1409
|
+
Ft(b);
|
|
1410
1410
|
return;
|
|
1411
1411
|
}
|
|
1412
|
-
if (
|
|
1413
|
-
const P = [...y(
|
|
1414
|
-
|
|
1412
|
+
if (It(i)) {
|
|
1413
|
+
const P = [...y(i)];
|
|
1414
|
+
i.value = oo(P, C);
|
|
1415
1415
|
return;
|
|
1416
1416
|
}
|
|
1417
|
-
|
|
1417
|
+
oo(y(i), C);
|
|
1418
1418
|
}
|
|
1419
|
-
function
|
|
1420
|
-
if (
|
|
1421
|
-
|
|
1419
|
+
function S(v) {
|
|
1420
|
+
if (c) {
|
|
1421
|
+
c(v);
|
|
1422
1422
|
return;
|
|
1423
1423
|
}
|
|
1424
|
-
const { from: _, item:
|
|
1425
|
-
if (
|
|
1426
|
-
const b = [...y(
|
|
1427
|
-
|
|
1424
|
+
const { from: _, item: m, oldIndex: k, oldDraggableIndex: C, newDraggableIndex: T } = v;
|
|
1425
|
+
if (Ft(m), lo(_, m, k), It(i)) {
|
|
1426
|
+
const b = [...y(i)];
|
|
1427
|
+
i.value = to(
|
|
1428
1428
|
b,
|
|
1429
1429
|
C,
|
|
1430
|
-
|
|
1430
|
+
T
|
|
1431
1431
|
);
|
|
1432
1432
|
return;
|
|
1433
1433
|
}
|
|
1434
|
-
|
|
1434
|
+
to(y(i), C, T);
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1437
|
-
const { newIndex: _, oldIndex:
|
|
1438
|
-
let
|
|
1439
|
-
const b = _ ===
|
|
1436
|
+
function I(v) {
|
|
1437
|
+
const { newIndex: _, oldIndex: m, from: k, to: C } = v;
|
|
1438
|
+
let T = null;
|
|
1439
|
+
const b = _ === m && k === C;
|
|
1440
1440
|
try {
|
|
1441
1441
|
if (b) {
|
|
1442
1442
|
let P = null;
|
|
1443
1443
|
l == null || l.some((G, le) => {
|
|
1444
1444
|
if (P && (l == null ? void 0 : l.length) !== C.childNodes.length)
|
|
1445
1445
|
return k.insertBefore(P, G.nextSibling), !0;
|
|
1446
|
-
const
|
|
1447
|
-
P = C == null ? void 0 : C.replaceChild(G,
|
|
1446
|
+
const Ee = C.childNodes[le];
|
|
1447
|
+
P = C == null ? void 0 : C.replaceChild(G, Ee);
|
|
1448
1448
|
});
|
|
1449
1449
|
}
|
|
1450
1450
|
} catch (P) {
|
|
1451
|
-
|
|
1451
|
+
T = P;
|
|
1452
1452
|
} finally {
|
|
1453
1453
|
l = null;
|
|
1454
1454
|
}
|
|
1455
|
-
|
|
1456
|
-
if (
|
|
1457
|
-
throw
|
|
1455
|
+
yo(() => {
|
|
1456
|
+
if (vo(), T)
|
|
1457
|
+
throw T;
|
|
1458
1458
|
});
|
|
1459
1459
|
}
|
|
1460
1460
|
const M = {
|
|
1461
|
-
onUpdate:
|
|
1462
|
-
onStart:
|
|
1463
|
-
onAdd:
|
|
1461
|
+
onUpdate: S,
|
|
1462
|
+
onStart: p,
|
|
1463
|
+
onAdd: f,
|
|
1464
1464
|
onRemove: E,
|
|
1465
|
-
onEnd:
|
|
1465
|
+
onEnd: I
|
|
1466
1466
|
};
|
|
1467
1467
|
function K(v) {
|
|
1468
|
-
const _ = y(
|
|
1469
|
-
return v || (v =
|
|
1468
|
+
const _ = y(a);
|
|
1469
|
+
return v || (v = wn(_) ? Sn(_, n == null ? void 0 : n.$el) : _), v && !xn(v) && (v = v.$el), v || _n("Root element not found"), v;
|
|
1470
1470
|
}
|
|
1471
|
-
function
|
|
1471
|
+
function B() {
|
|
1472
1472
|
var v;
|
|
1473
|
-
const _ = (v = y(s)) != null ? v : {},
|
|
1474
|
-
return
|
|
1475
|
-
|
|
1476
|
-
const P =
|
|
1477
|
-
return
|
|
1473
|
+
const _ = (v = y(s)) != null ? v : {}, m = So(_, ["immediate", "clone"]);
|
|
1474
|
+
return io(m, (k, C) => {
|
|
1475
|
+
Dn(k) && (m[k] = (T, ...b) => {
|
|
1476
|
+
const P = al();
|
|
1477
|
+
return In(T, P), C(T, ...b);
|
|
1478
1478
|
});
|
|
1479
|
-
}),
|
|
1480
|
-
|
|
1481
|
-
|
|
1479
|
+
}), kn(
|
|
1480
|
+
i === null ? {} : M,
|
|
1481
|
+
m
|
|
1482
1482
|
);
|
|
1483
1483
|
}
|
|
1484
1484
|
const N = (v) => {
|
|
1485
|
-
v = K(v), r && Y.destroy(), r = new
|
|
1485
|
+
v = K(v), r && Y.destroy(), r = new O(v, B());
|
|
1486
1486
|
};
|
|
1487
|
-
|
|
1487
|
+
Ye(
|
|
1488
1488
|
() => s,
|
|
1489
1489
|
() => {
|
|
1490
|
-
r &&
|
|
1490
|
+
r && io(B(), (v, _) => {
|
|
1491
1491
|
r == null || r.option(v, _);
|
|
1492
1492
|
});
|
|
1493
1493
|
},
|
|
@@ -1501,12 +1501,12 @@ function ul(...e) {
|
|
|
1501
1501
|
save: () => r == null ? void 0 : r.save(),
|
|
1502
1502
|
toArray: () => r == null ? void 0 : r.toArray(),
|
|
1503
1503
|
closest: (...v) => r == null ? void 0 : r.closest(...v)
|
|
1504
|
-
},
|
|
1505
|
-
return
|
|
1504
|
+
}, $ = () => Y == null ? void 0 : Y.option("disabled", !0), h = () => Y == null ? void 0 : Y.option("disabled", !1);
|
|
1505
|
+
return il(() => {
|
|
1506
1506
|
d && N();
|
|
1507
|
-
}),
|
|
1507
|
+
}), ll(Y.destroy), Ue({ start: N, pause: $, resume: h }, Y);
|
|
1508
1508
|
}
|
|
1509
|
-
const
|
|
1509
|
+
const Yt = [
|
|
1510
1510
|
"update",
|
|
1511
1511
|
"start",
|
|
1512
1512
|
"add",
|
|
@@ -1519,7 +1519,7 @@ const Ht = [
|
|
|
1519
1519
|
"clone",
|
|
1520
1520
|
"move",
|
|
1521
1521
|
"change"
|
|
1522
|
-
],
|
|
1522
|
+
], sl = [
|
|
1523
1523
|
"clone",
|
|
1524
1524
|
"animation",
|
|
1525
1525
|
"ghostClass",
|
|
@@ -1563,43 +1563,43 @@ const Ht = [
|
|
|
1563
1563
|
"tag",
|
|
1564
1564
|
"target",
|
|
1565
1565
|
"customUpdate",
|
|
1566
|
-
...
|
|
1567
|
-
],
|
|
1566
|
+
...Yt.map((e) => `on${e.replace(/^\S/, (o) => o.toUpperCase())}`)
|
|
1567
|
+
], nt = ee({
|
|
1568
1568
|
name: "VueDraggable",
|
|
1569
1569
|
model: {
|
|
1570
1570
|
prop: "modelValue",
|
|
1571
1571
|
event: "update:modelValue"
|
|
1572
1572
|
},
|
|
1573
|
-
props:
|
|
1574
|
-
emits: ["update:modelValue", ...
|
|
1573
|
+
props: sl,
|
|
1574
|
+
emits: ["update:modelValue", ...Yt],
|
|
1575
1575
|
setup(e, { slots: o, emit: t, expose: n, attrs: l }) {
|
|
1576
|
-
const
|
|
1577
|
-
const
|
|
1578
|
-
return u[
|
|
1579
|
-
}, {}),
|
|
1580
|
-
const u =
|
|
1581
|
-
const
|
|
1582
|
-
return
|
|
1576
|
+
const a = Yt.reduce((u, c) => {
|
|
1577
|
+
const p = `on${c.replace(/^\S/, (f) => f.toUpperCase())}`;
|
|
1578
|
+
return u[p] = (...f) => t(c, ...f), u;
|
|
1579
|
+
}, {}), i = L(() => {
|
|
1580
|
+
const u = Go(e), c = So(u, ["modelValue"]), p = Object.entries(c).reduce((f, [E, S]) => {
|
|
1581
|
+
const I = y(S);
|
|
1582
|
+
return I !== void 0 && (f[E] = I), f;
|
|
1583
1583
|
}, {});
|
|
1584
|
-
return
|
|
1584
|
+
return Ue(Ue({}, a), En(Ue(Ue({}, l), p)));
|
|
1585
1585
|
}), s = L({
|
|
1586
1586
|
get: () => e.modelValue,
|
|
1587
1587
|
set: (u) => t("update:modelValue", u)
|
|
1588
|
-
}), r = j(), d =
|
|
1589
|
-
|
|
1588
|
+
}), r = j(), d = Ho(
|
|
1589
|
+
rl(e.target || r, s, i)
|
|
1590
1590
|
);
|
|
1591
1591
|
return n(d), () => {
|
|
1592
1592
|
var u;
|
|
1593
|
-
return
|
|
1593
|
+
return jo(e.tag || "div", { ref: r }, (u = o == null ? void 0 : o.default) == null ? void 0 : u.call(o, d));
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
|
-
}),
|
|
1596
|
+
}), Ne = {
|
|
1597
1597
|
BLACK: "#000000",
|
|
1598
1598
|
WHITE: "#FFFFFF",
|
|
1599
1599
|
RED: "#FF0000",
|
|
1600
1600
|
NEUTRAL_GRAY_200_HEX: "#BCC1C3",
|
|
1601
1601
|
NEUTRAL_GRAY_200: "var(--fm-color-neutral-gray-200)"
|
|
1602
|
-
},
|
|
1602
|
+
}, dl = /* @__PURE__ */ ee({
|
|
1603
1603
|
__name: "TextWidget",
|
|
1604
1604
|
props: {
|
|
1605
1605
|
modelValue: {},
|
|
@@ -1608,9 +1608,9 @@ const Ht = [
|
|
|
1608
1608
|
},
|
|
1609
1609
|
setup(e) {
|
|
1610
1610
|
const o = e, t = L(() => {
|
|
1611
|
-
const
|
|
1611
|
+
const a = (o.modelValue.color ?? R.F_PRINT_COLOR.Enum.BLACK) === R.F_PRINT_COLOR.Enum.BLACK, i = o.modelValue.isInvert, s = o.disabled ? Ne.NEUTRAL_GRAY_200 : i ? "white" : a ? "black" : "red", r = i ? a ? "black" : "red" : "transparent";
|
|
1612
1612
|
return {
|
|
1613
|
-
textAlign:
|
|
1613
|
+
textAlign: en(o.modelValue.textAlign),
|
|
1614
1614
|
fontSize: `${o.fontSize * o.modelValue.factor}px`,
|
|
1615
1615
|
fontWeight: o.modelValue.isBold ? "bold" : "normal",
|
|
1616
1616
|
fontStyle: o.modelValue.isItalic ? "italic" : "normal",
|
|
@@ -1621,7 +1621,7 @@ const Ht = [
|
|
|
1621
1621
|
}), n = L(() => ({
|
|
1622
1622
|
height: o.modelValue.height === null ? "auto" : `${o.modelValue.height}px`
|
|
1623
1623
|
}));
|
|
1624
|
-
return (l,
|
|
1624
|
+
return (l, a) => (x(), W("div", {
|
|
1625
1625
|
style: ge(n.value)
|
|
1626
1626
|
}, [
|
|
1627
1627
|
V("div", {
|
|
@@ -1630,7 +1630,7 @@ const Ht = [
|
|
|
1630
1630
|
}, H(o.modelValue.value.length ? o.modelValue.value : "Enter value here"), 5)
|
|
1631
1631
|
], 4));
|
|
1632
1632
|
}
|
|
1633
|
-
}),
|
|
1633
|
+
}), ul = /* @__PURE__ */ ee({
|
|
1634
1634
|
__name: "CheckboxWidget",
|
|
1635
1635
|
props: {
|
|
1636
1636
|
modelValue: {},
|
|
@@ -1638,21 +1638,21 @@ const Ht = [
|
|
|
1638
1638
|
},
|
|
1639
1639
|
setup(e) {
|
|
1640
1640
|
const o = e, t = L(() => o.modelValue.height == null ? o.modelValue.size : Math.min(o.modelValue.height, o.modelValue.size)), n = L(() => {
|
|
1641
|
-
const
|
|
1641
|
+
const i = (o.modelValue.color ?? R.F_PRINT_COLOR.Enum.BLACK) === R.F_PRINT_COLOR.Enum.BLACK;
|
|
1642
1642
|
return {
|
|
1643
1643
|
width: `${o.modelValue.size}px`,
|
|
1644
1644
|
height: `${t.value}px`,
|
|
1645
|
-
borderColor: o.disabled ?
|
|
1645
|
+
borderColor: o.disabled ? Ne.NEUTRAL_GRAY_200 : i ? "black" : "red"
|
|
1646
1646
|
};
|
|
1647
1647
|
}), l = L(() => {
|
|
1648
|
-
const
|
|
1648
|
+
const a = it(o.modelValue.alignment), i = at(o.modelValue.alignment);
|
|
1649
1649
|
return {
|
|
1650
1650
|
display: "flex",
|
|
1651
|
-
justifyContent:
|
|
1652
|
-
alignItems:
|
|
1651
|
+
justifyContent: a,
|
|
1652
|
+
alignItems: i
|
|
1653
1653
|
};
|
|
1654
1654
|
});
|
|
1655
|
-
return (
|
|
1655
|
+
return (a, i) => (x(), W("div", {
|
|
1656
1656
|
style: ge(l.value)
|
|
1657
1657
|
}, [
|
|
1658
1658
|
V("div", {
|
|
@@ -1661,7 +1661,7 @@ const Ht = [
|
|
|
1661
1661
|
}, null, 4)
|
|
1662
1662
|
], 4));
|
|
1663
1663
|
}
|
|
1664
|
-
}),
|
|
1664
|
+
}), cl = { class: "flex flex-col gap-2" }, ml = /* @__PURE__ */ ee({
|
|
1665
1665
|
__name: "SpacerWidget",
|
|
1666
1666
|
props: {
|
|
1667
1667
|
modelValue: {}
|
|
@@ -1670,32 +1670,32 @@ const Ht = [
|
|
|
1670
1670
|
const o = e, t = L(() => ({
|
|
1671
1671
|
height: `${o.modelValue.height}px`
|
|
1672
1672
|
}));
|
|
1673
|
-
return (n, l) => (x(), W("div",
|
|
1673
|
+
return (n, l) => (x(), W("div", cl, [
|
|
1674
1674
|
V("div", {
|
|
1675
1675
|
class: "w-full",
|
|
1676
1676
|
style: ge(t.value)
|
|
1677
1677
|
}, null, 4)
|
|
1678
1678
|
]));
|
|
1679
1679
|
}
|
|
1680
|
-
}),
|
|
1680
|
+
}), pl = ["src"], fl = /* @__PURE__ */ ee({
|
|
1681
1681
|
__name: "ImageWidget",
|
|
1682
1682
|
props: {
|
|
1683
1683
|
modelValue: {}
|
|
1684
1684
|
},
|
|
1685
1685
|
setup(e) {
|
|
1686
|
-
const o = e, t = L(() =>
|
|
1686
|
+
const o = e, t = L(() => tn(o.modelValue.imgData).value), n = L(() => ({
|
|
1687
1687
|
height: o.modelValue.height ? `${o.modelValue.height}px` : "auto",
|
|
1688
1688
|
width: o.modelValue.width ? `${o.modelValue.width}px` : "auto",
|
|
1689
1689
|
maxWidth: "100%"
|
|
1690
1690
|
})), l = L(() => {
|
|
1691
|
-
const
|
|
1691
|
+
const a = it(o.modelValue.alignment), i = at(o.modelValue.alignment);
|
|
1692
1692
|
return {
|
|
1693
1693
|
display: "flex",
|
|
1694
|
-
justifyContent:
|
|
1695
|
-
alignItems:
|
|
1694
|
+
justifyContent: a,
|
|
1695
|
+
alignItems: i
|
|
1696
1696
|
};
|
|
1697
1697
|
});
|
|
1698
|
-
return (
|
|
1698
|
+
return (a, i) => {
|
|
1699
1699
|
const s = J("FmIcon");
|
|
1700
1700
|
return x(), W("div", {
|
|
1701
1701
|
style: ge(l.value)
|
|
@@ -1705,7 +1705,7 @@ const Ht = [
|
|
|
1705
1705
|
src: t.value,
|
|
1706
1706
|
alt: "Image Widget",
|
|
1707
1707
|
style: ge(n.value)
|
|
1708
|
-
}, null, 12,
|
|
1708
|
+
}, null, 12, pl)) : (x(), ye(s, {
|
|
1709
1709
|
key: 1,
|
|
1710
1710
|
name: "image",
|
|
1711
1711
|
size: "md"
|
|
@@ -1713,21 +1713,21 @@ const Ht = [
|
|
|
1713
1713
|
], 4);
|
|
1714
1714
|
};
|
|
1715
1715
|
}
|
|
1716
|
-
}),
|
|
1716
|
+
}), gl = ["src"], vl = /* @__PURE__ */ ee({
|
|
1717
1717
|
__name: "QrCodeWidget",
|
|
1718
1718
|
props: {
|
|
1719
1719
|
modelValue: {},
|
|
1720
1720
|
disabled: { type: Boolean }
|
|
1721
1721
|
},
|
|
1722
1722
|
setup(e) {
|
|
1723
|
-
const o = e, t = j(""), { t: n } = me(), l =
|
|
1723
|
+
const o = e, t = j(""), { t: n } = me(), l = Eo(), a = async (s, r) => {
|
|
1724
1724
|
try {
|
|
1725
1725
|
const u = (r ?? R.F_PRINT_COLOR.Enum.BLACK) === R.F_PRINT_COLOR.Enum.BLACK;
|
|
1726
|
-
t.value = await
|
|
1726
|
+
t.value = await on.toDataURL(s, {
|
|
1727
1727
|
width: o.modelValue.size,
|
|
1728
1728
|
color: {
|
|
1729
|
-
dark: o.disabled ?
|
|
1730
|
-
light:
|
|
1729
|
+
dark: o.disabled ? Ne.NEUTRAL_GRAY_200_HEX : u ? Ne.BLACK : Ne.RED,
|
|
1730
|
+
light: Ne.WHITE
|
|
1731
1731
|
},
|
|
1732
1732
|
margin: 0
|
|
1733
1733
|
});
|
|
@@ -1741,8 +1741,8 @@ const Ht = [
|
|
|
1741
1741
|
3e3
|
|
1742
1742
|
);
|
|
1743
1743
|
}
|
|
1744
|
-
},
|
|
1745
|
-
const s =
|
|
1744
|
+
}, i = L(() => {
|
|
1745
|
+
const s = it(o.modelValue.alignment), r = at(o.modelValue.alignment);
|
|
1746
1746
|
return {
|
|
1747
1747
|
display: "flex",
|
|
1748
1748
|
justifyContent: s,
|
|
@@ -1750,22 +1750,22 @@ const Ht = [
|
|
|
1750
1750
|
height: `${o.modelValue.height}px`
|
|
1751
1751
|
};
|
|
1752
1752
|
});
|
|
1753
|
-
return
|
|
1753
|
+
return Ye(
|
|
1754
1754
|
() => [o.modelValue.link, o.modelValue.color, o.disabled],
|
|
1755
1755
|
([s, r]) => {
|
|
1756
|
-
s ?
|
|
1756
|
+
s ? a(s, r) : t.value = "";
|
|
1757
1757
|
},
|
|
1758
1758
|
{ immediate: !0 }
|
|
1759
1759
|
), (s, r) => {
|
|
1760
1760
|
const d = J("FmIcon");
|
|
1761
1761
|
return x(), W("div", {
|
|
1762
|
-
style: ge(
|
|
1762
|
+
style: ge(i.value)
|
|
1763
1763
|
}, [
|
|
1764
1764
|
t.value ? (x(), W("img", {
|
|
1765
1765
|
key: 0,
|
|
1766
1766
|
src: t.value,
|
|
1767
1767
|
alt: "QR Code"
|
|
1768
|
-
}, null, 8,
|
|
1768
|
+
}, null, 8, gl)) : (x(), ye(d, {
|
|
1769
1769
|
key: 1,
|
|
1770
1770
|
name: "qr_code_scanner",
|
|
1771
1771
|
size: "md"
|
|
@@ -1773,7 +1773,7 @@ const Ht = [
|
|
|
1773
1773
|
], 4);
|
|
1774
1774
|
};
|
|
1775
1775
|
}
|
|
1776
|
-
}),
|
|
1776
|
+
}), hl = /* @__PURE__ */ ee({
|
|
1777
1777
|
__name: "DividerWidget",
|
|
1778
1778
|
props: {
|
|
1779
1779
|
modelValue: {},
|
|
@@ -1785,7 +1785,7 @@ const Ht = [
|
|
|
1785
1785
|
return {
|
|
1786
1786
|
borderTop: `${o.modelValue.thickness}px solid black`,
|
|
1787
1787
|
width: "100%",
|
|
1788
|
-
borderColor: o.disabled ?
|
|
1788
|
+
borderColor: o.disabled ? Ne.NEUTRAL_GRAY_200 : l ? "black" : "red"
|
|
1789
1789
|
};
|
|
1790
1790
|
});
|
|
1791
1791
|
return (n, l) => (x(), W("div", {
|
|
@@ -1796,7 +1796,7 @@ const Ht = [
|
|
|
1796
1796
|
}, null, 4)
|
|
1797
1797
|
], 4));
|
|
1798
1798
|
}
|
|
1799
|
-
}),
|
|
1799
|
+
}), bl = /* @__PURE__ */ ee({
|
|
1800
1800
|
__name: "WidgetView",
|
|
1801
1801
|
props: {
|
|
1802
1802
|
modelValue: {
|
|
@@ -1817,7 +1817,7 @@ const Ht = [
|
|
|
1817
1817
|
switch (o.modelValue.data.type) {
|
|
1818
1818
|
case R.F_WIDGET_TEMPLATE_TYPE.enum.TEXT:
|
|
1819
1819
|
return {
|
|
1820
|
-
component:
|
|
1820
|
+
component: dl,
|
|
1821
1821
|
properties: {
|
|
1822
1822
|
modelValue: o.modelValue.data,
|
|
1823
1823
|
fontSize: o.fontSize,
|
|
@@ -1826,58 +1826,58 @@ const Ht = [
|
|
|
1826
1826
|
};
|
|
1827
1827
|
case R.F_WIDGET_TEMPLATE_TYPE.enum.CHECKBOX:
|
|
1828
1828
|
return {
|
|
1829
|
-
component:
|
|
1829
|
+
component: ul,
|
|
1830
1830
|
properties: { modelValue: o.modelValue.data, disabled: o.disabled }
|
|
1831
1831
|
};
|
|
1832
1832
|
case R.F_WIDGET_TEMPLATE_TYPE.enum.IMAGE:
|
|
1833
1833
|
return {
|
|
1834
|
-
component:
|
|
1834
|
+
component: fl,
|
|
1835
1835
|
properties: { modelValue: o.modelValue.data }
|
|
1836
1836
|
};
|
|
1837
1837
|
case R.F_WIDGET_TEMPLATE_TYPE.enum.QR:
|
|
1838
1838
|
return {
|
|
1839
|
-
component:
|
|
1839
|
+
component: vl,
|
|
1840
1840
|
properties: { modelValue: o.modelValue.data, disabled: o.disabled }
|
|
1841
1841
|
};
|
|
1842
1842
|
case R.F_WIDGET_TEMPLATE_TYPE.enum.DIVIDER:
|
|
1843
1843
|
return {
|
|
1844
|
-
component:
|
|
1844
|
+
component: hl,
|
|
1845
1845
|
properties: { modelValue: o.modelValue.data, disabled: o.disabled }
|
|
1846
1846
|
};
|
|
1847
1847
|
case R.F_WIDGET_TEMPLATE_TYPE.enum.EMPTY:
|
|
1848
1848
|
default:
|
|
1849
1849
|
return {
|
|
1850
|
-
component:
|
|
1850
|
+
component: ml,
|
|
1851
1851
|
properties: { modelValue: o.modelValue.data }
|
|
1852
1852
|
};
|
|
1853
1853
|
}
|
|
1854
1854
|
}), n = L(() => {
|
|
1855
|
-
const
|
|
1855
|
+
const a = it(o.modelValue.data.alignment), i = at(o.modelValue.data.alignment);
|
|
1856
1856
|
return {
|
|
1857
1857
|
display: "flex",
|
|
1858
|
-
justifyContent:
|
|
1859
|
-
alignItems:
|
|
1858
|
+
justifyContent: a,
|
|
1859
|
+
alignItems: i
|
|
1860
1860
|
};
|
|
1861
1861
|
}), l = L(() => {
|
|
1862
|
-
const { top:
|
|
1862
|
+
const { top: a, right: i, bottom: s, left: r } = o.modelValue.data.padding;
|
|
1863
1863
|
return {
|
|
1864
|
-
padding: `${
|
|
1864
|
+
padding: `${a}px ${i}px ${s}px ${r}px`,
|
|
1865
1865
|
overflow: "hidden"
|
|
1866
1866
|
};
|
|
1867
1867
|
});
|
|
1868
|
-
return (
|
|
1868
|
+
return (a, i) => {
|
|
1869
1869
|
var s, r;
|
|
1870
1870
|
return x(), W("div", {
|
|
1871
1871
|
style: ge(l.value)
|
|
1872
1872
|
}, [
|
|
1873
|
-
(x(), ye(
|
|
1873
|
+
(x(), ye(_o(qo((s = t.value) == null ? void 0 : s.component)), Jo({
|
|
1874
1874
|
class: "widget",
|
|
1875
1875
|
style: n.value
|
|
1876
1876
|
}, (r = t.value) == null ? void 0 : r.properties), null, 16, ["style"]))
|
|
1877
1877
|
], 4);
|
|
1878
1878
|
};
|
|
1879
1879
|
}
|
|
1880
|
-
}),
|
|
1880
|
+
}), yl = { class: "flex h-fit w-[375px] bg-fm-color-neutral-white" }, _l = { class: "rows-zone" }, Cl = ["onClick"], El = /* @__PURE__ */ ee({
|
|
1881
1881
|
__name: "ReceiptEditor",
|
|
1882
1882
|
props: {
|
|
1883
1883
|
modelValue: {},
|
|
@@ -1888,48 +1888,48 @@ const Ht = [
|
|
|
1888
1888
|
},
|
|
1889
1889
|
emits: ["selectWidget", "update:model-value"],
|
|
1890
1890
|
setup(e, { emit: o }) {
|
|
1891
|
-
const t = e, n = o, l = j(t.modelValue),
|
|
1892
|
-
function
|
|
1893
|
-
|
|
1891
|
+
const t = e, n = o, l = j(t.modelValue), a = j(null), i = j(null), s = j(null), r = j(null), d = j(null), u = j(null);
|
|
1892
|
+
function c(m, k, C, T) {
|
|
1893
|
+
i.value = m, s.value = k, r.value = C, N({ config: m, position: { row: k, col: C, cell: T } });
|
|
1894
1894
|
}
|
|
1895
|
-
function
|
|
1896
|
-
return
|
|
1895
|
+
function p(m) {
|
|
1896
|
+
return m.newIndex;
|
|
1897
1897
|
}
|
|
1898
|
-
function m
|
|
1899
|
-
var le,
|
|
1900
|
-
const b =
|
|
1898
|
+
function f(m, k, C, T) {
|
|
1899
|
+
var le, Ee, D;
|
|
1900
|
+
const b = p(m);
|
|
1901
1901
|
if (b == null)
|
|
1902
1902
|
return;
|
|
1903
1903
|
const P = {
|
|
1904
1904
|
row: k ?? b,
|
|
1905
1905
|
col: C ?? b,
|
|
1906
|
-
cell:
|
|
1907
|
-
}, G = (
|
|
1906
|
+
cell: T ?? b
|
|
1907
|
+
}, G = (D = (Ee = (le = l.value) == null ? void 0 : le[P.row].columns) == null ? void 0 : Ee[P.col]) == null ? void 0 : D.cells[P.cell];
|
|
1908
1908
|
G != null && N({ config: G, position: P });
|
|
1909
1909
|
}
|
|
1910
|
-
function E(
|
|
1911
|
-
m
|
|
1910
|
+
function E(m) {
|
|
1911
|
+
f(m, void 0, 0, 0);
|
|
1912
1912
|
}
|
|
1913
|
-
function
|
|
1914
|
-
m
|
|
1913
|
+
function S(m, k) {
|
|
1914
|
+
f(m, k, void 0, 0);
|
|
1915
1915
|
}
|
|
1916
|
-
function
|
|
1917
|
-
m
|
|
1916
|
+
function I(m, k, C) {
|
|
1917
|
+
f(m, k, C, void 0);
|
|
1918
1918
|
}
|
|
1919
1919
|
function M() {
|
|
1920
|
-
const
|
|
1920
|
+
const m = l.value.map((k) => ({
|
|
1921
1921
|
...k,
|
|
1922
1922
|
columns: k.columns.filter((C) => C.cells && C.cells.length > 0)
|
|
1923
1923
|
})).filter((k) => k.columns.length > 0);
|
|
1924
|
-
l.value =
|
|
1924
|
+
l.value = m, n("update:model-value", m);
|
|
1925
1925
|
}
|
|
1926
|
-
function K(
|
|
1927
|
-
const k =
|
|
1926
|
+
function K(m) {
|
|
1927
|
+
const k = m.map((C, T) => {
|
|
1928
1928
|
var P;
|
|
1929
1929
|
if (C.columns)
|
|
1930
1930
|
return C;
|
|
1931
1931
|
let b;
|
|
1932
|
-
return s.value != null ? b =
|
|
1932
|
+
return s.value != null ? b = m[s.value].sectionType ?? u.value : b = C.sectionType ? C.sectionType : T > 0 && ((P = m[T - 1]) != null && P.sectionType) ? m[T - 1].sectionType : u.value, {
|
|
1933
1933
|
columns: [
|
|
1934
1934
|
{
|
|
1935
1935
|
width: {
|
|
@@ -1944,54 +1944,54 @@ const Ht = [
|
|
|
1944
1944
|
});
|
|
1945
1945
|
l.value = k, n("update:model-value", k);
|
|
1946
1946
|
}
|
|
1947
|
-
function
|
|
1948
|
-
const C =
|
|
1947
|
+
function B(m, k) {
|
|
1948
|
+
const C = m.map((b) => b.cells ? b : {
|
|
1949
1949
|
cells: [{ ...b }]
|
|
1950
|
-
}),
|
|
1950
|
+
}), T = l.value.map(
|
|
1951
1951
|
(b, P) => P === k ? { ...b, columns: C } : b
|
|
1952
1952
|
);
|
|
1953
|
-
l.value =
|
|
1953
|
+
l.value = T, n("update:model-value", T);
|
|
1954
1954
|
}
|
|
1955
|
-
function N(
|
|
1956
|
-
|
|
1955
|
+
function N(m) {
|
|
1956
|
+
a.value = m.position, d.value = m.position.row, n("selectWidget", m);
|
|
1957
1957
|
}
|
|
1958
|
-
const Y = (
|
|
1958
|
+
const Y = (m, k, C) => {
|
|
1959
1959
|
if (t.selectedWidget != null) {
|
|
1960
|
-
const
|
|
1961
|
-
return (
|
|
1960
|
+
const T = a.value;
|
|
1961
|
+
return (T == null ? void 0 : T.row) === m && (T == null ? void 0 : T.col) === k && (T == null ? void 0 : T.cell) === C;
|
|
1962
1962
|
}
|
|
1963
1963
|
};
|
|
1964
|
-
function
|
|
1965
|
-
return
|
|
1966
|
-
flex:
|
|
1967
|
-
} :
|
|
1968
|
-
width: `${
|
|
1964
|
+
function $(m) {
|
|
1965
|
+
return m == null ? {} : m.type === R.F_CELL_WIDTH_TYPE.Enum.FLEX ? {
|
|
1966
|
+
flex: m.value
|
|
1967
|
+
} : m.type === R.F_CELL_WIDTH_TYPE.Enum.FIXED ? {
|
|
1968
|
+
width: `${m.value}px`,
|
|
1969
1969
|
flex: "none"
|
|
1970
1970
|
} : {};
|
|
1971
1971
|
}
|
|
1972
|
-
function h(
|
|
1973
|
-
d.value = k, u.value =
|
|
1972
|
+
function h(m, k) {
|
|
1973
|
+
d.value = k, u.value = m;
|
|
1974
1974
|
}
|
|
1975
|
-
function v(
|
|
1976
|
-
return
|
|
1975
|
+
function v(m) {
|
|
1976
|
+
return m === d.value;
|
|
1977
1977
|
}
|
|
1978
|
-
function _(
|
|
1979
|
-
return t.selectedWidgetSectionType ?
|
|
1978
|
+
function _(m) {
|
|
1979
|
+
return t.selectedWidgetSectionType ? m !== t.selectedWidgetSectionType : !1;
|
|
1980
1980
|
}
|
|
1981
|
-
return
|
|
1981
|
+
return Ye(
|
|
1982
1982
|
() => t.modelValue,
|
|
1983
|
-
(
|
|
1984
|
-
l.value =
|
|
1983
|
+
(m) => {
|
|
1984
|
+
l.value = m;
|
|
1985
1985
|
},
|
|
1986
1986
|
{ deep: !0 }
|
|
1987
|
-
),
|
|
1987
|
+
), Ye(
|
|
1988
1988
|
() => t.selectedWidget,
|
|
1989
|
-
(
|
|
1990
|
-
|
|
1989
|
+
(m) => {
|
|
1990
|
+
m === null && (d.value = null);
|
|
1991
1991
|
}
|
|
1992
|
-
), (
|
|
1993
|
-
V("div",
|
|
1994
|
-
|
|
1992
|
+
), (m, k) => (x(), W("div", yl, [
|
|
1993
|
+
V("div", _l, [
|
|
1994
|
+
w(y(nt), {
|
|
1995
1995
|
modelValue: l.value,
|
|
1996
1996
|
"onUpdate:modelValue": [
|
|
1997
1997
|
k[0] || (k[0] = (C) => l.value = C),
|
|
@@ -2003,21 +2003,21 @@ const Ht = [
|
|
|
2003
2003
|
class: "row-container"
|
|
2004
2004
|
}, {
|
|
2005
2005
|
default: be(() => [
|
|
2006
|
-
(x(!0), W(we, null, Se(l.value, (C,
|
|
2006
|
+
(x(!0), W(we, null, Se(l.value, (C, T) => (x(), W("div", { key: T }, [
|
|
2007
2007
|
V("div", {
|
|
2008
|
-
class:
|
|
2009
|
-
rowBorder: v(
|
|
2008
|
+
class: qt(["row", {
|
|
2009
|
+
rowBorder: v(T)
|
|
2010
2010
|
}])
|
|
2011
2011
|
}, [
|
|
2012
|
-
|
|
2012
|
+
w(y(nt), {
|
|
2013
2013
|
modelValue: C.columns,
|
|
2014
|
-
"onUpdate:modelValue": [(b) => C.columns = b, (b) =>
|
|
2014
|
+
"onUpdate:modelValue": [(b) => C.columns = b, (b) => B(b, T)],
|
|
2015
2015
|
"item-key": "index",
|
|
2016
2016
|
group: "widgets",
|
|
2017
|
-
"row-index":
|
|
2017
|
+
"row-index": T,
|
|
2018
2018
|
disabled: _(C.sectionType),
|
|
2019
|
-
onAdd: (b) =>
|
|
2020
|
-
onDragover: (b) => h(C.sectionType,
|
|
2019
|
+
onAdd: (b) => S(b, T),
|
|
2020
|
+
onDragover: (b) => h(C.sectionType, T),
|
|
2021
2021
|
class: "column-container"
|
|
2022
2022
|
}, {
|
|
2023
2023
|
default: be(() => [
|
|
@@ -2027,22 +2027,22 @@ const Ht = [
|
|
|
2027
2027
|
}, [
|
|
2028
2028
|
V("div", {
|
|
2029
2029
|
class: "column",
|
|
2030
|
-
style: ge(
|
|
2030
|
+
style: ge($(b.width ?? void 0))
|
|
2031
2031
|
}, [
|
|
2032
|
-
|
|
2032
|
+
w(y(nt), {
|
|
2033
2033
|
modelValue: b.cells,
|
|
2034
2034
|
"onUpdate:modelValue": (G) => b.cells = G,
|
|
2035
2035
|
"item-key": "index",
|
|
2036
2036
|
group: "widgets",
|
|
2037
|
-
"row-index":
|
|
2037
|
+
"row-index": T,
|
|
2038
2038
|
"col-index": P,
|
|
2039
2039
|
disabled: _(C.sectionType),
|
|
2040
|
-
onAdd: (G) =>
|
|
2041
|
-
onUpdate: (G) =>
|
|
2040
|
+
onAdd: (G) => I(G, T, P),
|
|
2041
|
+
onUpdate: (G) => I(G, T, P),
|
|
2042
2042
|
onStart: (G) => {
|
|
2043
|
-
|
|
2043
|
+
c(
|
|
2044
2044
|
b.cells[G.oldIndex],
|
|
2045
|
-
|
|
2045
|
+
T,
|
|
2046
2046
|
P,
|
|
2047
2047
|
G.oldIndex
|
|
2048
2048
|
);
|
|
@@ -2053,20 +2053,20 @@ const Ht = [
|
|
|
2053
2053
|
default: be(() => [
|
|
2054
2054
|
(x(!0), W(we, null, Se(b.cells, (G, le) => (x(), W("div", { key: le }, [
|
|
2055
2055
|
V("div", {
|
|
2056
|
-
class:
|
|
2057
|
-
"selected-widget": Y(
|
|
2056
|
+
class: qt(["cell", {
|
|
2057
|
+
"selected-widget": Y(T, P, le)
|
|
2058
2058
|
}]),
|
|
2059
|
-
onClick: (
|
|
2059
|
+
onClick: (Ee) => N({
|
|
2060
2060
|
config: G,
|
|
2061
|
-
position: { row:
|
|
2061
|
+
position: { row: T, col: P, cell: le }
|
|
2062
2062
|
})
|
|
2063
2063
|
}, [
|
|
2064
|
-
|
|
2064
|
+
w(bl, {
|
|
2065
2065
|
"model-value": G,
|
|
2066
|
-
"font-size":
|
|
2066
|
+
"font-size": m.fontSize,
|
|
2067
2067
|
disabled: _(C.sectionType)
|
|
2068
2068
|
}, null, 8, ["model-value", "font-size", "disabled"])
|
|
2069
|
-
], 10,
|
|
2069
|
+
], 10, Cl)
|
|
2070
2070
|
]))), 128))
|
|
2071
2071
|
]),
|
|
2072
2072
|
_: 2
|
|
@@ -2081,15 +2081,15 @@ const Ht = [
|
|
|
2081
2081
|
]),
|
|
2082
2082
|
_: 1
|
|
2083
2083
|
}, 8, ["modelValue"]),
|
|
2084
|
-
|
|
2084
|
+
w(nn)
|
|
2085
2085
|
])
|
|
2086
2086
|
]));
|
|
2087
2087
|
}
|
|
2088
2088
|
});
|
|
2089
|
-
const
|
|
2089
|
+
const Tl = /* @__PURE__ */ St(El, [["__scopeId", "data-v-4bfaa477"]]), wl = { class: "gap" }, Sl = { class: "block fm-typo-en-body-md-600" }, Vl = {
|
|
2090
2090
|
key: 1,
|
|
2091
2091
|
class: "flex items-center fm-typo-en-body-md-600 h-9 my-8"
|
|
2092
|
-
},
|
|
2092
|
+
}, kl = { class: "gap" }, xl = { class: "block fm-typo-en-body-md-600" }, Dl = { class: "grid grid-cols-2 gap-2" }, Il = { class: "gap" }, Fl = { class: "fm-typo-en-body-lg-600" }, Ol = { class: "flex flex-row justify-between" }, Rl = { class: "alignButtonGap" }, Al = { class: "alignButtonGap" }, Wl = /* @__PURE__ */ ee({
|
|
2093
2093
|
__name: "CommonWidgetEditor",
|
|
2094
2094
|
props: {
|
|
2095
2095
|
modelValue: {},
|
|
@@ -2097,7 +2097,7 @@ const Vl = /* @__PURE__ */ Vt(Sl, [["__scopeId", "data-v-4bfaa477"]]), kl = { cl
|
|
|
2097
2097
|
},
|
|
2098
2098
|
emits: ["update:model-value", "update:selected-widget-column"],
|
|
2099
2099
|
setup(e, { emit: o }) {
|
|
2100
|
-
const t = e, n = o, { t: l } = me(),
|
|
2100
|
+
const t = e, n = o, { t: l } = me(), a = j(it(t.modelValue.alignment)), i = j(at(t.modelValue.alignment)), s = [
|
|
2101
2101
|
pe.FLEX_START,
|
|
2102
2102
|
pe.CENTER,
|
|
2103
2103
|
pe.FLEX_END
|
|
@@ -2123,36 +2123,36 @@ const Vl = /* @__PURE__ */ Vt(Sl, [["__scopeId", "data-v-4bfaa477"]]), kl = { cl
|
|
|
2123
2123
|
case pe.FLEX_END:
|
|
2124
2124
|
return "vertical_align_bottom";
|
|
2125
2125
|
}
|
|
2126
|
-
},
|
|
2126
|
+
}, c = (h) => {
|
|
2127
2127
|
var _;
|
|
2128
2128
|
const v = (_ = t.selectedWidgetColumn.width) == null ? void 0 : _.value;
|
|
2129
2129
|
switch (h) {
|
|
2130
|
-
case
|
|
2130
|
+
case Pe.AUTO:
|
|
2131
2131
|
return null;
|
|
2132
|
-
case
|
|
2132
|
+
case Pe.PERCENTAGE:
|
|
2133
2133
|
return {
|
|
2134
2134
|
type: R.F_CELL_WIDTH_TYPE.Enum.FLEX,
|
|
2135
2135
|
value: v ?? 100
|
|
2136
2136
|
};
|
|
2137
|
-
case
|
|
2137
|
+
case Pe.PX:
|
|
2138
2138
|
return {
|
|
2139
2139
|
type: R.F_CELL_WIDTH_TYPE.Enum.FIXED,
|
|
2140
2140
|
value: v ?? 10
|
|
2141
2141
|
};
|
|
2142
2142
|
}
|
|
2143
|
-
},
|
|
2144
|
-
{ label:
|
|
2145
|
-
{ label:
|
|
2146
|
-
{ label:
|
|
2147
|
-
],
|
|
2143
|
+
}, p = [
|
|
2144
|
+
{ label: Pe.AUTO },
|
|
2145
|
+
{ label: Pe.PX },
|
|
2146
|
+
{ label: Pe.PERCENTAGE }
|
|
2147
|
+
], f = L(() => {
|
|
2148
2148
|
var v;
|
|
2149
2149
|
switch ((v = t.selectedWidgetColumn.width) == null ? void 0 : v.type) {
|
|
2150
2150
|
case R.F_CELL_WIDTH_TYPE.Enum.FIXED:
|
|
2151
|
-
return
|
|
2151
|
+
return p[1];
|
|
2152
2152
|
case R.F_CELL_WIDTH_TYPE.Enum.FLEX:
|
|
2153
|
-
return
|
|
2153
|
+
return p[2];
|
|
2154
2154
|
default:
|
|
2155
|
-
return
|
|
2155
|
+
return p[0];
|
|
2156
2156
|
}
|
|
2157
2157
|
});
|
|
2158
2158
|
function E(h) {
|
|
@@ -2166,8 +2166,8 @@ const Vl = /* @__PURE__ */ Vt(Sl, [["__scopeId", "data-v-4bfaa477"]]), kl = { cl
|
|
|
2166
2166
|
}
|
|
2167
2167
|
});
|
|
2168
2168
|
}
|
|
2169
|
-
function
|
|
2170
|
-
const v =
|
|
2169
|
+
function S(h) {
|
|
2170
|
+
const v = c(h.label);
|
|
2171
2171
|
v == null ? n("update:selected-widget-column", {
|
|
2172
2172
|
...t.selectedWidgetColumn,
|
|
2173
2173
|
width: null
|
|
@@ -2179,7 +2179,7 @@ const Vl = /* @__PURE__ */ Vt(Sl, [["__scopeId", "data-v-4bfaa477"]]), kl = { cl
|
|
|
2179
2179
|
}
|
|
2180
2180
|
});
|
|
2181
2181
|
}
|
|
2182
|
-
function
|
|
2182
|
+
function I(h, v) {
|
|
2183
2183
|
let _ = v;
|
|
2184
2184
|
h === "height" && v === 0 && (_ = null), n("update:model-value", {
|
|
2185
2185
|
...t.modelValue,
|
|
@@ -2187,72 +2187,72 @@ const Vl = /* @__PURE__ */ Vt(Sl, [["__scopeId", "data-v-4bfaa477"]]), kl = { cl
|
|
|
2187
2187
|
});
|
|
2188
2188
|
}
|
|
2189
2189
|
function M(h, v) {
|
|
2190
|
-
|
|
2190
|
+
I("padding", { ...t.modelValue.padding, [h]: v });
|
|
2191
2191
|
}
|
|
2192
2192
|
function K(h) {
|
|
2193
|
-
i.value = h, N();
|
|
2194
|
-
}
|
|
2195
|
-
function $(h) {
|
|
2196
2193
|
a.value = h, N();
|
|
2197
2194
|
}
|
|
2195
|
+
function B(h) {
|
|
2196
|
+
i.value = h, N();
|
|
2197
|
+
}
|
|
2198
2198
|
function N() {
|
|
2199
|
-
|
|
2199
|
+
I(
|
|
2200
2200
|
"alignment",
|
|
2201
|
-
|
|
2201
|
+
ln({ justify: a.value, align: i.value })
|
|
2202
2202
|
);
|
|
2203
2203
|
}
|
|
2204
2204
|
function Y(h) {
|
|
2205
2205
|
return h ? "neutral-gray-400" : "neutral-gray-300";
|
|
2206
2206
|
}
|
|
2207
|
-
function
|
|
2207
|
+
function $(h) {
|
|
2208
2208
|
return h ? "neutral-gray-100" : "";
|
|
2209
2209
|
}
|
|
2210
2210
|
return (h, v) => {
|
|
2211
|
-
var C,
|
|
2212
|
-
const _ = J("FmStepperField"),
|
|
2213
|
-
return x(), W("div",
|
|
2211
|
+
var C, T;
|
|
2212
|
+
const _ = J("FmStepperField"), m = J("FmButtonGroup"), k = J("FmButton");
|
|
2213
|
+
return x(), W("div", wl, [
|
|
2214
2214
|
V("div", null, [
|
|
2215
|
-
V("label",
|
|
2215
|
+
V("label", Sl, H(y(l)("mf-kitchen.editor.columnWidth")), 1),
|
|
2216
2216
|
(C = t.selectedWidgetColumn.width) != null && C.type ? (x(), ye(_, {
|
|
2217
2217
|
key: 0,
|
|
2218
|
-
"model-value": ((
|
|
2218
|
+
"model-value": ((T = t.selectedWidgetColumn.width) == null ? void 0 : T.value) ?? null,
|
|
2219
2219
|
max: 720,
|
|
2220
2220
|
min: 1,
|
|
2221
2221
|
step: 1,
|
|
2222
2222
|
rules: [(b) => b <= 720 || y(l)("mf-kitchen.editor.validation.columnWidthMax")],
|
|
2223
2223
|
"onUpdate:modelValue": E
|
|
2224
|
-
}, null, 8, ["model-value", "rules"])) : (x(), W("label",
|
|
2225
|
-
|
|
2226
|
-
"model-value":
|
|
2227
|
-
items:
|
|
2228
|
-
"onUpdate:modelValue":
|
|
2224
|
+
}, null, 8, ["model-value", "rules"])) : (x(), W("label", Vl, H(y(l)("mf-kitchen.editor.autoWidth")), 1)),
|
|
2225
|
+
w(m, {
|
|
2226
|
+
"model-value": f.value,
|
|
2227
|
+
items: p,
|
|
2228
|
+
"onUpdate:modelValue": S
|
|
2229
2229
|
}, null, 8, ["model-value"])
|
|
2230
2230
|
]),
|
|
2231
|
-
V("div",
|
|
2232
|
-
V("label",
|
|
2233
|
-
V("div",
|
|
2234
|
-
|
|
2231
|
+
V("div", kl, [
|
|
2232
|
+
V("label", xl, H(y(l)("mf-kitchen.editor.spacing")), 1),
|
|
2233
|
+
V("div", Dl, [
|
|
2234
|
+
w(_, {
|
|
2235
2235
|
"model-value": h.modelValue.padding.top,
|
|
2236
2236
|
min: 0,
|
|
2237
2237
|
step: 1,
|
|
2238
2238
|
label: y(l)("mf-kitchen.editor.alignmentTop"),
|
|
2239
2239
|
"onUpdate:modelValue": v[0] || (v[0] = (b) => M("top", b))
|
|
2240
2240
|
}, null, 8, ["model-value", "label"]),
|
|
2241
|
-
|
|
2241
|
+
w(_, {
|
|
2242
2242
|
"model-value": h.modelValue.padding.bottom,
|
|
2243
2243
|
min: 0,
|
|
2244
2244
|
step: 1,
|
|
2245
2245
|
label: y(l)("mf-kitchen.editor.alignmentBottom"),
|
|
2246
2246
|
"onUpdate:modelValue": v[1] || (v[1] = (b) => M("bottom", b))
|
|
2247
2247
|
}, null, 8, ["model-value", "label"]),
|
|
2248
|
-
|
|
2248
|
+
w(_, {
|
|
2249
2249
|
"model-value": h.modelValue.padding.left,
|
|
2250
2250
|
min: 0,
|
|
2251
2251
|
step: 1,
|
|
2252
2252
|
label: y(l)("mf-kitchen.editor.alignmentLeft"),
|
|
2253
2253
|
"onUpdate:modelValue": v[2] || (v[2] = (b) => M("left", b))
|
|
2254
2254
|
}, null, 8, ["model-value", "label"]),
|
|
2255
|
-
|
|
2255
|
+
w(_, {
|
|
2256
2256
|
"model-value": h.modelValue.padding.right,
|
|
2257
2257
|
min: 0,
|
|
2258
2258
|
step: 1,
|
|
@@ -2261,38 +2261,38 @@ const Vl = /* @__PURE__ */ Vt(Sl, [["__scopeId", "data-v-4bfaa477"]]), kl = { cl
|
|
|
2261
2261
|
}, null, 8, ["model-value", "label"])
|
|
2262
2262
|
])
|
|
2263
2263
|
]),
|
|
2264
|
-
|
|
2264
|
+
w(_, {
|
|
2265
2265
|
"model-value": h.modelValue.height ?? 0,
|
|
2266
2266
|
min: 0,
|
|
2267
2267
|
step: 1,
|
|
2268
2268
|
label: y(l)("mf-kitchen.editor.size"),
|
|
2269
|
-
"onUpdate:modelValue": v[4] || (v[4] = (b) =>
|
|
2269
|
+
"onUpdate:modelValue": v[4] || (v[4] = (b) => I("height", b))
|
|
2270
2270
|
}, null, 8, ["model-value", "label"]),
|
|
2271
|
-
V("div",
|
|
2272
|
-
V("label",
|
|
2273
|
-
V("div",
|
|
2274
|
-
V("div",
|
|
2271
|
+
V("div", Il, [
|
|
2272
|
+
V("label", Fl, H(y(l)("mf-kitchen.editor.alignment")), 1),
|
|
2273
|
+
V("div", Ol, [
|
|
2274
|
+
V("div", Rl, [
|
|
2275
2275
|
(x(), W(we, null, Se(r, (b) => V("div", { key: b }, [
|
|
2276
|
-
|
|
2276
|
+
w(k, {
|
|
2277
2277
|
variant: "tertiary",
|
|
2278
2278
|
size: "md",
|
|
2279
2279
|
class: "alignButtonBorder",
|
|
2280
2280
|
icon: u(b),
|
|
2281
|
-
iconColor: Y(
|
|
2282
|
-
bgColor:
|
|
2283
|
-
onClick: (P) =>
|
|
2281
|
+
iconColor: Y(i.value === b),
|
|
2282
|
+
bgColor: $(i.value === b),
|
|
2283
|
+
onClick: (P) => B(b)
|
|
2284
2284
|
}, null, 8, ["icon", "iconColor", "bgColor", "onClick"])
|
|
2285
2285
|
])), 64))
|
|
2286
2286
|
]),
|
|
2287
|
-
V("div",
|
|
2287
|
+
V("div", Al, [
|
|
2288
2288
|
(x(), W(we, null, Se(s, (b) => V("div", { key: b }, [
|
|
2289
|
-
|
|
2289
|
+
w(k, {
|
|
2290
2290
|
variant: "tertiary",
|
|
2291
2291
|
size: "md",
|
|
2292
2292
|
class: "alignButtonBorder",
|
|
2293
2293
|
icon: d(b),
|
|
2294
|
-
iconColor: Y(
|
|
2295
|
-
bgColor:
|
|
2294
|
+
iconColor: Y(a.value === b),
|
|
2295
|
+
bgColor: $(a.value === b),
|
|
2296
2296
|
onClick: (P) => K(b)
|
|
2297
2297
|
}, null, 8, ["icon", "iconColor", "bgColor", "onClick"])
|
|
2298
2298
|
])), 64))
|
|
@@ -2303,7 +2303,7 @@ const Vl = /* @__PURE__ */ Vt(Sl, [["__scopeId", "data-v-4bfaa477"]]), kl = { cl
|
|
|
2303
2303
|
};
|
|
2304
2304
|
}
|
|
2305
2305
|
});
|
|
2306
|
-
const
|
|
2306
|
+
const He = /* @__PURE__ */ St(Wl, [["__scopeId", "data-v-4c013ae2"]]), Nl = /* @__PURE__ */ ee({
|
|
2307
2307
|
__name: "FormatColorButton",
|
|
2308
2308
|
props: {
|
|
2309
2309
|
isFormatColor: { type: Boolean },
|
|
@@ -2315,10 +2315,10 @@ const je = /* @__PURE__ */ Vt(Ll, [["__scopeId", "data-v-4c013ae2"]]), $l = /* @
|
|
|
2315
2315
|
function l(s) {
|
|
2316
2316
|
return s ? "neutral-gray-400" : "neutral-gray-300";
|
|
2317
2317
|
}
|
|
2318
|
-
function
|
|
2318
|
+
function a(s) {
|
|
2319
2319
|
return s ? "neutral-gray-100" : "";
|
|
2320
2320
|
}
|
|
2321
|
-
function
|
|
2321
|
+
function i(s) {
|
|
2322
2322
|
const r = s === R.F_PRINT_COLOR.Enum.COLORED ? R.F_PRINT_COLOR.Enum.BLACK : R.F_PRINT_COLOR.Enum.COLORED;
|
|
2323
2323
|
n("update:model-value", r);
|
|
2324
2324
|
}
|
|
@@ -2330,13 +2330,13 @@ const je = /* @__PURE__ */ Vt(Ll, [["__scopeId", "data-v-4c013ae2"]]), $l = /* @
|
|
|
2330
2330
|
class: "buttonBorder",
|
|
2331
2331
|
icon: "palette",
|
|
2332
2332
|
iconColor: l(t.isFormatColor),
|
|
2333
|
-
bgColor:
|
|
2334
|
-
onClick: r[0] || (r[0] = (u) =>
|
|
2333
|
+
bgColor: a(t.isFormatColor),
|
|
2334
|
+
onClick: r[0] || (r[0] = (u) => i(t.selectedFormatColor))
|
|
2335
2335
|
}, null, 8, ["iconColor", "bgColor"]);
|
|
2336
2336
|
};
|
|
2337
2337
|
}
|
|
2338
2338
|
});
|
|
2339
|
-
const
|
|
2339
|
+
const kt = /* @__PURE__ */ St(Nl, [["__scopeId", "data-v-bee8f17f"]]), Pl = { class: "gap" }, Ll = { class: "fm-typo--body-lg-600 mb-2" }, $l = { class: "fm-typo-en-body-md-600" }, Bl = { class: "flex flex-wrap gap-[8px]" }, Ml = { class: "fm-typo-en-body-lg-600" }, Ul = { class: "flex flex-row gap-2" }, Xl = { class: "fm-typo-en-body-lg-600" }, zl = { class: "flex flex-row gap-2" }, Yl = /* @__PURE__ */ ee({
|
|
2340
2340
|
__name: "TextWidgetEditor",
|
|
2341
2341
|
props: {
|
|
2342
2342
|
modelValue: {},
|
|
@@ -2345,22 +2345,22 @@ const xt = /* @__PURE__ */ Vt($l, [["__scopeId", "data-v-bee8f17f"]]), Bl = { cl
|
|
|
2345
2345
|
},
|
|
2346
2346
|
emits: ["update:model-value", "update:selected-widget-column"],
|
|
2347
2347
|
setup(e, { emit: o }) {
|
|
2348
|
-
const t = e, n = o, l = L(() => t.modelValue.textAlign == R.F_TEXT_ALIGN.Enum.LEFT),
|
|
2349
|
-
function
|
|
2348
|
+
const t = e, n = o, l = L(() => t.modelValue.textAlign == R.F_TEXT_ALIGN.Enum.LEFT), a = L(() => t.modelValue.textAlign == R.F_TEXT_ALIGN.Enum.CENTER), i = L(() => t.modelValue.textAlign == R.F_TEXT_ALIGN.Enum.RIGHT), s = L(() => t.modelValue.isBold), r = L(() => t.modelValue.isItalic), d = L(() => t.modelValue.isUnderline), u = L(() => t.modelValue.isInvert ?? !1), c = L(() => t.modelValue.color ?? R.F_PRINT_COLOR.Enum.BLACK), p = L(() => c.value == R.F_PRINT_COLOR.Enum.COLORED), f = j(lt.receipt.schema()), { t: E, locale: S } = me();
|
|
2349
|
+
function I($, h) {
|
|
2350
2350
|
n("update:model-value", {
|
|
2351
2351
|
...t.modelValue,
|
|
2352
|
-
[
|
|
2352
|
+
[$]: h
|
|
2353
2353
|
});
|
|
2354
2354
|
}
|
|
2355
|
-
function M(
|
|
2355
|
+
function M($) {
|
|
2356
2356
|
n("update:selected-widget-column", {
|
|
2357
2357
|
...t.selectedWidgetColumn,
|
|
2358
|
-
|
|
2358
|
+
...$
|
|
2359
2359
|
});
|
|
2360
2360
|
}
|
|
2361
|
-
function K(
|
|
2361
|
+
function K($) {
|
|
2362
2362
|
let h = R.F_WIDGET_ALIGNMENT.Enum.CENTER;
|
|
2363
|
-
switch (
|
|
2363
|
+
switch ($) {
|
|
2364
2364
|
case R.F_TEXT_ALIGN.Enum.LEFT:
|
|
2365
2365
|
h = R.F_WIDGET_ALIGNMENT.Enum.CENTER_LEFT;
|
|
2366
2366
|
break;
|
|
@@ -2374,143 +2374,143 @@ const xt = /* @__PURE__ */ Vt($l, [["__scopeId", "data-v-bee8f17f"]]), Bl = { cl
|
|
|
2374
2374
|
n("update:model-value", {
|
|
2375
2375
|
...t.modelValue,
|
|
2376
2376
|
alignment: h,
|
|
2377
|
-
textAlign:
|
|
2377
|
+
textAlign: $
|
|
2378
2378
|
});
|
|
2379
2379
|
}
|
|
2380
|
-
function $
|
|
2381
|
-
return
|
|
2380
|
+
function B($) {
|
|
2381
|
+
return $ ? "neutral-gray-400" : "neutral-gray-300";
|
|
2382
2382
|
}
|
|
2383
|
-
function N(
|
|
2384
|
-
return
|
|
2383
|
+
function N($) {
|
|
2384
|
+
return $ ? "neutral-gray-100" : "";
|
|
2385
2385
|
}
|
|
2386
|
-
function Y(
|
|
2387
|
-
const h = (t.modelValue.value || "") + `${
|
|
2388
|
-
|
|
2386
|
+
function Y($) {
|
|
2387
|
+
const h = (t.modelValue.value || "") + `${$}`;
|
|
2388
|
+
I("value", h);
|
|
2389
2389
|
}
|
|
2390
|
-
return
|
|
2391
|
-
() =>
|
|
2390
|
+
return Ye(
|
|
2391
|
+
() => S.value,
|
|
2392
2392
|
() => {
|
|
2393
|
-
|
|
2393
|
+
f.value = lt.receipt.schema();
|
|
2394
2394
|
}
|
|
2395
|
-
), (
|
|
2395
|
+
), ($, h) => {
|
|
2396
2396
|
const v = J("FmTextField"), _ = J("FmButton");
|
|
2397
|
-
return x(), W("div",
|
|
2398
|
-
V("label",
|
|
2399
|
-
|
|
2400
|
-
"model-value":
|
|
2401
|
-
"selected-widget-column":
|
|
2402
|
-
"onUpdate:modelValue": h[0] || (h[0] = (
|
|
2403
|
-
|
|
2404
|
-
...
|
|
2397
|
+
return x(), W("div", Pl, [
|
|
2398
|
+
V("label", Ll, H(y(E)("mf-kitchen.editor.textWidget")), 1),
|
|
2399
|
+
w(He, {
|
|
2400
|
+
"model-value": $.modelValue,
|
|
2401
|
+
"selected-widget-column": $.selectedWidgetColumn,
|
|
2402
|
+
"onUpdate:modelValue": h[0] || (h[0] = (m) => n("update:model-value", {
|
|
2403
|
+
...$.modelValue,
|
|
2404
|
+
...m
|
|
2405
2405
|
})),
|
|
2406
|
-
"onUpdate:selectedWidgetColumn": h[1] || (h[1] = (
|
|
2406
|
+
"onUpdate:selectedWidgetColumn": h[1] || (h[1] = (m) => M(m))
|
|
2407
2407
|
}, null, 8, ["model-value", "selected-widget-column"]),
|
|
2408
|
-
V("label",
|
|
2409
|
-
|
|
2410
|
-
"model-value":
|
|
2408
|
+
V("label", $l, H(y(E)("mf-kitchen.editor.editor")), 1),
|
|
2409
|
+
w(v, {
|
|
2410
|
+
"model-value": $.modelValue.value,
|
|
2411
2411
|
label: y(E)("mf-kitchen.editor.text"),
|
|
2412
|
-
"onUpdate:modelValue": h[2] || (h[2] = (
|
|
2412
|
+
"onUpdate:modelValue": h[2] || (h[2] = (m) => I("value", m))
|
|
2413
2413
|
}, null, 8, ["model-value", "label"]),
|
|
2414
|
-
V("div",
|
|
2415
|
-
(x(!0), W(we, null, Se(
|
|
2416
|
-
|
|
2414
|
+
V("div", Bl, [
|
|
2415
|
+
(x(!0), W(we, null, Se(f.value[$.sectionType], (m, k) => (x(), W("div", { key: k }, [
|
|
2416
|
+
w(_, {
|
|
2417
2417
|
variant: "tertiary",
|
|
2418
2418
|
size: "md",
|
|
2419
|
-
label:
|
|
2419
|
+
label: m.label,
|
|
2420
2420
|
bgColor: "neutral-gray-100",
|
|
2421
|
-
onClick: (C) => Y(
|
|
2421
|
+
onClick: (C) => Y(m.variable)
|
|
2422
2422
|
}, null, 8, ["label", "onClick"])
|
|
2423
2423
|
]))), 128))
|
|
2424
2424
|
]),
|
|
2425
|
-
|
|
2426
|
-
"model-value":
|
|
2425
|
+
w(v, {
|
|
2426
|
+
"model-value": $.modelValue.factor,
|
|
2427
2427
|
label: y(E)("mf-kitchen.editor.scale"),
|
|
2428
2428
|
type: "number",
|
|
2429
|
-
rules: [(
|
|
2430
|
-
"onUpdate:modelValue": h[3] || (h[3] = (
|
|
2431
|
-
const k = Math.max(0.1, Number(
|
|
2432
|
-
|
|
2429
|
+
rules: [(m) => m >= 0.1 || y(E)("mf-kitchen.editor.validation.scale")],
|
|
2430
|
+
"onUpdate:modelValue": h[3] || (h[3] = (m) => {
|
|
2431
|
+
const k = Math.max(0.1, Number(m));
|
|
2432
|
+
I("factor", k);
|
|
2433
2433
|
})
|
|
2434
2434
|
}, null, 8, ["model-value", "label", "rules"]),
|
|
2435
|
-
V("label",
|
|
2436
|
-
V("div",
|
|
2437
|
-
|
|
2435
|
+
V("label", Ml, H(y(E)("mf-kitchen.editor.textAlignment")), 1),
|
|
2436
|
+
V("div", Ul, [
|
|
2437
|
+
w(_, {
|
|
2438
2438
|
variant: "tertiary",
|
|
2439
2439
|
size: "md",
|
|
2440
2440
|
class: "buttonBorder",
|
|
2441
2441
|
icon: "format_align_left",
|
|
2442
|
-
iconColor:
|
|
2442
|
+
iconColor: B(l.value),
|
|
2443
2443
|
bgColor: N(l.value),
|
|
2444
|
-
onClick: h[4] || (h[4] = (
|
|
2444
|
+
onClick: h[4] || (h[4] = (m) => K(y(R.F_TEXT_ALIGN).Enum.LEFT))
|
|
2445
2445
|
}, null, 8, ["iconColor", "bgColor"]),
|
|
2446
|
-
|
|
2446
|
+
w(_, {
|
|
2447
2447
|
variant: "tertiary",
|
|
2448
2448
|
size: "md",
|
|
2449
2449
|
class: "buttonBorder",
|
|
2450
2450
|
icon: "format_align_center",
|
|
2451
|
-
iconColor:
|
|
2452
|
-
bgColor: N(
|
|
2453
|
-
onClick: h[5] || (h[5] = (
|
|
2451
|
+
iconColor: B(a.value),
|
|
2452
|
+
bgColor: N(a.value),
|
|
2453
|
+
onClick: h[5] || (h[5] = (m) => K(y(R.F_TEXT_ALIGN).Enum.CENTER))
|
|
2454
2454
|
}, null, 8, ["iconColor", "bgColor"]),
|
|
2455
|
-
|
|
2455
|
+
w(_, {
|
|
2456
2456
|
variant: "tertiary",
|
|
2457
2457
|
size: "md",
|
|
2458
2458
|
class: "buttonBorder",
|
|
2459
2459
|
icon: "format_align_right",
|
|
2460
|
-
iconColor:
|
|
2461
|
-
bgColor: N(
|
|
2462
|
-
onClick: h[6] || (h[6] = (
|
|
2460
|
+
iconColor: B(i.value),
|
|
2461
|
+
bgColor: N(i.value),
|
|
2462
|
+
onClick: h[6] || (h[6] = (m) => K(y(R.F_TEXT_ALIGN).Enum.RIGHT))
|
|
2463
2463
|
}, null, 8, ["iconColor", "bgColor"])
|
|
2464
2464
|
]),
|
|
2465
|
-
V("label",
|
|
2466
|
-
V("div",
|
|
2467
|
-
|
|
2465
|
+
V("label", Xl, H(y(E)("mf-kitchen.editor.textStyle")), 1),
|
|
2466
|
+
V("div", zl, [
|
|
2467
|
+
w(_, {
|
|
2468
2468
|
variant: "tertiary",
|
|
2469
2469
|
size: "md",
|
|
2470
2470
|
class: "buttonBorder",
|
|
2471
2471
|
icon: "format_bold",
|
|
2472
|
-
iconColor:
|
|
2472
|
+
iconColor: B(s.value),
|
|
2473
2473
|
bgColor: N(s.value),
|
|
2474
|
-
onClick: h[7] || (h[7] = (
|
|
2474
|
+
onClick: h[7] || (h[7] = (m) => I("isBold", !t.modelValue.isBold))
|
|
2475
2475
|
}, null, 8, ["iconColor", "bgColor"]),
|
|
2476
|
-
|
|
2476
|
+
w(_, {
|
|
2477
2477
|
variant: "tertiary",
|
|
2478
2478
|
size: "md",
|
|
2479
2479
|
class: "buttonBorder",
|
|
2480
2480
|
icon: "format_italic",
|
|
2481
|
-
iconColor:
|
|
2481
|
+
iconColor: B(r.value),
|
|
2482
2482
|
bgColor: N(r.value),
|
|
2483
|
-
onClick: h[8] || (h[8] = (
|
|
2483
|
+
onClick: h[8] || (h[8] = (m) => I("isItalic", !t.modelValue.isItalic))
|
|
2484
2484
|
}, null, 8, ["iconColor", "bgColor"]),
|
|
2485
|
-
|
|
2485
|
+
w(_, {
|
|
2486
2486
|
variant: "tertiary",
|
|
2487
2487
|
size: "md",
|
|
2488
2488
|
class: "buttonBorder",
|
|
2489
2489
|
icon: "format_underlined",
|
|
2490
|
-
iconColor:
|
|
2490
|
+
iconColor: B(d.value),
|
|
2491
2491
|
bgColor: N(d.value),
|
|
2492
|
-
onClick: h[9] || (h[9] = (
|
|
2492
|
+
onClick: h[9] || (h[9] = (m) => I("isUnderline", !t.modelValue.isUnderline))
|
|
2493
2493
|
}, null, 8, ["iconColor", "bgColor"]),
|
|
2494
|
-
|
|
2494
|
+
w(_, {
|
|
2495
2495
|
variant: "tertiary",
|
|
2496
2496
|
size: "md",
|
|
2497
2497
|
class: "buttonBorder",
|
|
2498
2498
|
icon: "ink_highlighter",
|
|
2499
|
-
iconColor:
|
|
2499
|
+
iconColor: B(u.value),
|
|
2500
2500
|
bgColor: N(u.value),
|
|
2501
|
-
onClick: h[10] || (h[10] = (
|
|
2501
|
+
onClick: h[10] || (h[10] = (m) => I("isInvert", !t.modelValue.isInvert))
|
|
2502
2502
|
}, null, 8, ["iconColor", "bgColor"]),
|
|
2503
|
-
|
|
2504
|
-
"is-format-color":
|
|
2505
|
-
"selected-format-color":
|
|
2506
|
-
"onUpdate:modelValue": h[11] || (h[11] = (
|
|
2503
|
+
w(kt, {
|
|
2504
|
+
"is-format-color": p.value,
|
|
2505
|
+
"selected-format-color": c.value,
|
|
2506
|
+
"onUpdate:modelValue": h[11] || (h[11] = (m) => I("color", m))
|
|
2507
2507
|
}, null, 8, ["is-format-color", "selected-format-color"])
|
|
2508
2508
|
])
|
|
2509
2509
|
]);
|
|
2510
2510
|
};
|
|
2511
2511
|
}
|
|
2512
2512
|
});
|
|
2513
|
-
const
|
|
2513
|
+
const Gl = /* @__PURE__ */ St(Yl, [["__scopeId", "data-v-3d715f0b"]]), Hl = { class: "gap" }, jl = { class: "fm-typo--body-lg-600 mb-2" }, Kl = { class: "fm-typo-en-body-md-600" }, ql = { class: "fm-typo-en-body-lg-600" }, Jl = /* @__PURE__ */ ee({
|
|
2514
2514
|
__name: "CheckboxWidgetEditor",
|
|
2515
2515
|
props: {
|
|
2516
2516
|
modelValue: {},
|
|
@@ -2518,7 +2518,7 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2518
2518
|
},
|
|
2519
2519
|
emits: ["update:model-value", "update:selected-widget-column"],
|
|
2520
2520
|
setup(e, { emit: o }) {
|
|
2521
|
-
const t = e, n = o, { t: l } = me(),
|
|
2521
|
+
const t = e, n = o, { t: l } = me(), a = L(() => t.modelValue.color ?? R.F_PRINT_COLOR.Enum.BLACK), i = L(() => a.value == R.F_PRINT_COLOR.Enum.COLORED);
|
|
2522
2522
|
function s(d) {
|
|
2523
2523
|
n("update:selected-widget-column", {
|
|
2524
2524
|
...t.selectedWidgetColumn,
|
|
@@ -2532,10 +2532,10 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2532
2532
|
});
|
|
2533
2533
|
}
|
|
2534
2534
|
return (d, u) => {
|
|
2535
|
-
const
|
|
2536
|
-
return x(), W("div",
|
|
2537
|
-
V("label",
|
|
2538
|
-
|
|
2535
|
+
const c = J("FmTextField");
|
|
2536
|
+
return x(), W("div", Hl, [
|
|
2537
|
+
V("label", jl, H(y(l)("mf-kitchen.editor.checkboxWidget")), 1),
|
|
2538
|
+
w(He, {
|
|
2539
2539
|
"model-value": {
|
|
2540
2540
|
padding: d.modelValue.padding,
|
|
2541
2541
|
alignment: d.modelValue.alignment,
|
|
@@ -2543,31 +2543,31 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2543
2543
|
type: d.modelValue.type
|
|
2544
2544
|
},
|
|
2545
2545
|
"selected-widget-column": d.selectedWidgetColumn,
|
|
2546
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2547
|
-
"onUpdate:selectedWidgetColumn": u[1] || (u[1] = (
|
|
2546
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => n("update:model-value", { ...d.modelValue, ...p })),
|
|
2547
|
+
"onUpdate:selectedWidgetColumn": u[1] || (u[1] = (p) => s(p))
|
|
2548
2548
|
}, null, 8, ["model-value", "selected-widget-column"]),
|
|
2549
|
-
V("label",
|
|
2550
|
-
|
|
2549
|
+
V("label", Kl, H(y(l)("mf-kitchen.editor.editor")), 1),
|
|
2550
|
+
w(c, {
|
|
2551
2551
|
"model-value": d.modelValue.size,
|
|
2552
2552
|
label: y(l)("mf-kitchen.editor.size"),
|
|
2553
2553
|
type: "number",
|
|
2554
|
-
rules: [(
|
|
2555
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
2556
|
-
const
|
|
2557
|
-
r(
|
|
2554
|
+
rules: [(p) => p >= 1 || y(l)("mf-kitchen.editor.validation.minOne")],
|
|
2555
|
+
"onUpdate:modelValue": u[2] || (u[2] = (p) => {
|
|
2556
|
+
const f = Math.max(1, Number(p));
|
|
2557
|
+
r(f);
|
|
2558
2558
|
})
|
|
2559
2559
|
}, null, 8, ["model-value", "label", "rules"]),
|
|
2560
|
-
V("label",
|
|
2561
|
-
|
|
2560
|
+
V("label", ql, H(y(l)("mf-kitchen.editor.textStyle")), 1),
|
|
2561
|
+
w(kt, {
|
|
2562
2562
|
class: "w-fit",
|
|
2563
|
-
"is-format-color":
|
|
2564
|
-
"selected-format-color":
|
|
2565
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
2563
|
+
"is-format-color": i.value,
|
|
2564
|
+
"selected-format-color": a.value,
|
|
2565
|
+
"onUpdate:modelValue": u[3] || (u[3] = (p) => n("update:model-value", { ...d.modelValue, color: p }))
|
|
2566
2566
|
}, null, 8, ["is-format-color", "selected-format-color"])
|
|
2567
2567
|
]);
|
|
2568
2568
|
};
|
|
2569
2569
|
}
|
|
2570
|
-
}),
|
|
2570
|
+
}), Zl = { class: "gap" }, Ql = { class: "fm-typo--body-lg-600 mb-2" }, ei = /* @__PURE__ */ ee({
|
|
2571
2571
|
__name: "SpacerWidgetEditor",
|
|
2572
2572
|
props: {
|
|
2573
2573
|
modelValue: {},
|
|
@@ -2576,28 +2576,28 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2576
2576
|
emits: ["update:model-value", "update:selected-widget-column"],
|
|
2577
2577
|
setup(e, { emit: o }) {
|
|
2578
2578
|
const t = e, n = o, { t: l } = me();
|
|
2579
|
-
function i
|
|
2579
|
+
function a(i) {
|
|
2580
2580
|
n("update:selected-widget-column", {
|
|
2581
2581
|
...t.selectedWidgetColumn,
|
|
2582
|
-
...
|
|
2582
|
+
...i
|
|
2583
2583
|
});
|
|
2584
2584
|
}
|
|
2585
|
-
return (
|
|
2586
|
-
V("label",
|
|
2587
|
-
|
|
2585
|
+
return (i, s) => (x(), W("div", Zl, [
|
|
2586
|
+
V("label", Ql, H(y(l)("mf-kitchen.editor.spacerWidget")), 1),
|
|
2587
|
+
w(He, {
|
|
2588
2588
|
"model-value": {
|
|
2589
|
-
padding:
|
|
2590
|
-
alignment:
|
|
2591
|
-
height:
|
|
2592
|
-
type:
|
|
2589
|
+
padding: i.modelValue.padding,
|
|
2590
|
+
alignment: i.modelValue.alignment,
|
|
2591
|
+
height: i.modelValue.height,
|
|
2592
|
+
type: i.modelValue.type
|
|
2593
2593
|
},
|
|
2594
|
-
"selected-widget-column":
|
|
2595
|
-
"onUpdate:modelValue": s[0] || (s[0] = (r) => n("update:model-value", { ...
|
|
2596
|
-
"onUpdate:selectedWidgetColumn": s[1] || (s[1] = (r) =>
|
|
2594
|
+
"selected-widget-column": i.selectedWidgetColumn,
|
|
2595
|
+
"onUpdate:modelValue": s[0] || (s[0] = (r) => n("update:model-value", { ...i.modelValue, ...r })),
|
|
2596
|
+
"onUpdate:selectedWidgetColumn": s[1] || (s[1] = (r) => a(r))
|
|
2597
2597
|
}, null, 8, ["model-value", "selected-widget-column"])
|
|
2598
2598
|
]));
|
|
2599
2599
|
}
|
|
2600
|
-
}),
|
|
2600
|
+
}), ti = { class: "gap" }, oi = { class: "fm-typo-en-body-lg-600 mb-2" }, ni = { class: "fm-typo-en-body-md-600" }, li = { class: "flex flex-row gap-[24px]" }, ii = /* @__PURE__ */ ee({
|
|
2601
2601
|
__name: "ImageWidgetEditor",
|
|
2602
2602
|
props: {
|
|
2603
2603
|
modelValue: {},
|
|
@@ -2606,10 +2606,10 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2606
2606
|
emits: ["update:model-value", "update:selected-widget-column"],
|
|
2607
2607
|
setup(e, { emit: o }) {
|
|
2608
2608
|
const t = e, n = o, { t: l } = me();
|
|
2609
|
-
function
|
|
2609
|
+
function a(r) {
|
|
2610
2610
|
n("update:model-value", r(t.modelValue));
|
|
2611
2611
|
}
|
|
2612
|
-
function
|
|
2612
|
+
function i(r, d) {
|
|
2613
2613
|
n("update:model-value", { ...t.modelValue, [r]: d });
|
|
2614
2614
|
}
|
|
2615
2615
|
function s(r) {
|
|
@@ -2620,9 +2620,9 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2620
2620
|
}
|
|
2621
2621
|
return (r, d) => {
|
|
2622
2622
|
const u = J("FmTextField");
|
|
2623
|
-
return x(), W("div",
|
|
2624
|
-
V("label",
|
|
2625
|
-
|
|
2623
|
+
return x(), W("div", ti, [
|
|
2624
|
+
V("label", oi, H(y(l)("mf-kitchen.editor.imageWidget")), 1),
|
|
2625
|
+
w(He, {
|
|
2626
2626
|
"model-value": {
|
|
2627
2627
|
padding: r.modelValue.padding,
|
|
2628
2628
|
alignment: r.modelValue.alignment,
|
|
@@ -2630,41 +2630,41 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2630
2630
|
type: r.modelValue.type
|
|
2631
2631
|
},
|
|
2632
2632
|
"selected-widget-column": r.selectedWidgetColumn,
|
|
2633
|
-
"onUpdate:modelValue": d[0] || (d[0] = (
|
|
2634
|
-
"onUpdate:selectedWidgetColumn": d[1] || (d[1] = (
|
|
2633
|
+
"onUpdate:modelValue": d[0] || (d[0] = (c) => n("update:model-value", { ...r.modelValue, ...c })),
|
|
2634
|
+
"onUpdate:selectedWidgetColumn": d[1] || (d[1] = (c) => s(c))
|
|
2635
2635
|
}, null, 8, ["model-value", "selected-widget-column"]),
|
|
2636
|
-
V("label",
|
|
2637
|
-
|
|
2636
|
+
V("label", ni, H(y(l)("mf-kitchen.editor.editor")), 1),
|
|
2637
|
+
w(an, {
|
|
2638
2638
|
"model-value": r.modelValue.imgData,
|
|
2639
|
-
"onUpdate:modelValue": d[2] || (d[2] = (
|
|
2639
|
+
"onUpdate:modelValue": d[2] || (d[2] = (c) => a((p) => ({ ...p, imgData: c }))),
|
|
2640
2640
|
title: y(l)("mf-kitchen.editor.image")
|
|
2641
2641
|
}, null, 8, ["model-value", "title"]),
|
|
2642
|
-
V("div",
|
|
2643
|
-
|
|
2642
|
+
V("div", li, [
|
|
2643
|
+
w(u, {
|
|
2644
2644
|
"model-value": r.modelValue.height,
|
|
2645
2645
|
label: y(l)("mf-kitchen.editor.height"),
|
|
2646
2646
|
type: "number",
|
|
2647
|
-
rules: [(
|
|
2648
|
-
"onUpdate:modelValue": d[3] || (d[3] = (
|
|
2649
|
-
const
|
|
2650
|
-
|
|
2647
|
+
rules: [(c) => c >= 1 || y(l)("mf-kitchen.editor.validation.minOne")],
|
|
2648
|
+
"onUpdate:modelValue": d[3] || (d[3] = (c) => {
|
|
2649
|
+
const p = Math.max(1, Number(c));
|
|
2650
|
+
i("height", p);
|
|
2651
2651
|
})
|
|
2652
2652
|
}, null, 8, ["model-value", "label", "rules"]),
|
|
2653
|
-
|
|
2653
|
+
w(u, {
|
|
2654
2654
|
"model-value": r.modelValue.width,
|
|
2655
2655
|
label: y(l)("mf-kitchen.editor.width"),
|
|
2656
2656
|
type: "number",
|
|
2657
|
-
rules: [(
|
|
2658
|
-
"onUpdate:modelValue": d[4] || (d[4] = (
|
|
2659
|
-
const
|
|
2660
|
-
|
|
2657
|
+
rules: [(c) => c >= 1 || y(l)("mf-kitchen.editor.validation.minOne")],
|
|
2658
|
+
"onUpdate:modelValue": d[4] || (d[4] = (c) => {
|
|
2659
|
+
const p = Math.max(1, Number(c));
|
|
2660
|
+
i("width", p);
|
|
2661
2661
|
})
|
|
2662
2662
|
}, null, 8, ["model-value", "label", "rules"])
|
|
2663
2663
|
])
|
|
2664
2664
|
]);
|
|
2665
2665
|
};
|
|
2666
2666
|
}
|
|
2667
|
-
}),
|
|
2667
|
+
}), ai = { class: "gap" }, ri = { class: "fm-typo--body-lg-600 mb-2" }, si = { class: "fm-typo-en-body-md-600" }, di = { class: "flex flex-wrap gap-[8px]" }, ui = { class: "fm-typo-en-body-lg-600" }, ci = /* @__PURE__ */ ee({
|
|
2668
2668
|
__name: "QrCodeWidgetEditor",
|
|
2669
2669
|
props: {
|
|
2670
2670
|
modelValue: {},
|
|
@@ -2673,74 +2673,74 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2673
2673
|
},
|
|
2674
2674
|
emits: ["update:model-value", "update:selected-widget-column"],
|
|
2675
2675
|
setup(e, { emit: o }) {
|
|
2676
|
-
const t = e, n = o, l = L(() => t.modelValue.color ?? R.F_PRINT_COLOR.Enum.BLACK),
|
|
2677
|
-
function r(
|
|
2678
|
-
n("update:model-value", { ...t.modelValue, link:
|
|
2676
|
+
const t = e, n = o, l = L(() => t.modelValue.color ?? R.F_PRINT_COLOR.Enum.BLACK), a = L(() => l.value == R.F_PRINT_COLOR.Enum.COLORED), i = lt.receipt.schema(), { t: s } = me();
|
|
2677
|
+
function r(p) {
|
|
2678
|
+
n("update:model-value", { ...t.modelValue, link: p });
|
|
2679
2679
|
}
|
|
2680
|
-
function d(
|
|
2680
|
+
function d(p) {
|
|
2681
2681
|
n("update:selected-widget-column", {
|
|
2682
2682
|
...t.selectedWidgetColumn,
|
|
2683
|
-
...
|
|
2683
|
+
...p
|
|
2684
2684
|
});
|
|
2685
2685
|
}
|
|
2686
|
-
function u(
|
|
2687
|
-
const
|
|
2688
|
-
r(
|
|
2686
|
+
function u(p) {
|
|
2687
|
+
const f = (t.modelValue.link || "") + `${p}`;
|
|
2688
|
+
r(f);
|
|
2689
2689
|
}
|
|
2690
|
-
function
|
|
2691
|
-
const
|
|
2690
|
+
function c(p) {
|
|
2691
|
+
const f = {
|
|
2692
2692
|
...t.modelValue,
|
|
2693
|
-
...
|
|
2693
|
+
...p
|
|
2694
2694
|
};
|
|
2695
|
-
if ("height" in
|
|
2696
|
-
const E =
|
|
2697
|
-
|
|
2695
|
+
if ("height" in p) {
|
|
2696
|
+
const E = p.height === null ? 160 : p.height;
|
|
2697
|
+
f.height = E, f.size = E;
|
|
2698
2698
|
}
|
|
2699
|
-
n("update:model-value",
|
|
2699
|
+
n("update:model-value", f);
|
|
2700
2700
|
}
|
|
2701
|
-
return (
|
|
2702
|
-
const E = J("FmTextField"),
|
|
2703
|
-
return x(), W("div",
|
|
2704
|
-
V("label",
|
|
2705
|
-
|
|
2701
|
+
return (p, f) => {
|
|
2702
|
+
const E = J("FmTextField"), S = J("FmButton");
|
|
2703
|
+
return x(), W("div", ai, [
|
|
2704
|
+
V("label", ri, H(y(s)("mf-kitchen.editor.qrCodeWidget")), 1),
|
|
2705
|
+
w(He, {
|
|
2706
2706
|
"model-value": {
|
|
2707
|
-
padding:
|
|
2708
|
-
alignment:
|
|
2709
|
-
height:
|
|
2710
|
-
type:
|
|
2707
|
+
padding: p.modelValue.padding,
|
|
2708
|
+
alignment: p.modelValue.alignment,
|
|
2709
|
+
height: p.modelValue.height,
|
|
2710
|
+
type: p.modelValue.type
|
|
2711
2711
|
},
|
|
2712
|
-
"selected-widget-column":
|
|
2713
|
-
"onUpdate:modelValue":
|
|
2714
|
-
"onUpdate:selectedWidgetColumn":
|
|
2712
|
+
"selected-widget-column": p.selectedWidgetColumn,
|
|
2713
|
+
"onUpdate:modelValue": f[0] || (f[0] = (I) => c(I)),
|
|
2714
|
+
"onUpdate:selectedWidgetColumn": f[1] || (f[1] = (I) => d(I))
|
|
2715
2715
|
}, null, 8, ["model-value", "selected-widget-column"]),
|
|
2716
|
-
V("label",
|
|
2717
|
-
|
|
2718
|
-
"model-value":
|
|
2716
|
+
V("label", si, H(y(s)("mf-kitchen.editor.editor")), 1),
|
|
2717
|
+
w(E, {
|
|
2718
|
+
"model-value": p.modelValue.link,
|
|
2719
2719
|
label: y(s)("mf-kitchen.editor.text"),
|
|
2720
|
-
"onUpdate:modelValue":
|
|
2720
|
+
"onUpdate:modelValue": f[2] || (f[2] = (I) => r(I))
|
|
2721
2721
|
}, null, 8, ["model-value", "label"]),
|
|
2722
|
-
V("div",
|
|
2723
|
-
(x(!0), W(we, null, Se(y(
|
|
2724
|
-
S
|
|
2722
|
+
V("div", di, [
|
|
2723
|
+
(x(!0), W(we, null, Se(y(i)[p.sectionType], (I, M) => (x(), W("div", { key: M }, [
|
|
2724
|
+
w(S, {
|
|
2725
2725
|
variant: "tertiary",
|
|
2726
2726
|
size: "md",
|
|
2727
|
-
label: y(s)(`${
|
|
2727
|
+
label: y(s)(`${I.label}`),
|
|
2728
2728
|
bgColor: "neutral-gray-100",
|
|
2729
|
-
onClick: (K) => u(
|
|
2729
|
+
onClick: (K) => u(I.variable)
|
|
2730
2730
|
}, null, 8, ["label", "onClick"])
|
|
2731
2731
|
]))), 128))
|
|
2732
2732
|
]),
|
|
2733
|
-
V("label",
|
|
2734
|
-
|
|
2733
|
+
V("label", ui, H(y(s)("mf-kitchen.editor.textStyle")), 1),
|
|
2734
|
+
w(kt, {
|
|
2735
2735
|
class: "w-fit",
|
|
2736
|
-
"is-format-color":
|
|
2736
|
+
"is-format-color": a.value,
|
|
2737
2737
|
"selected-format-color": l.value,
|
|
2738
|
-
"onUpdate:modelValue":
|
|
2738
|
+
"onUpdate:modelValue": f[3] || (f[3] = (I) => n("update:model-value", { ...p.modelValue, color: I }))
|
|
2739
2739
|
}, null, 8, ["is-format-color", "selected-format-color"])
|
|
2740
2740
|
]);
|
|
2741
2741
|
};
|
|
2742
2742
|
}
|
|
2743
|
-
}),
|
|
2743
|
+
}), mi = { class: "gap" }, pi = { class: "fm-typo--body-lg-600 mb-2" }, fi = { class: "fm-typo-en-body-md-600" }, gi = { class: "fm-typo-en-body-lg-600" }, vi = /* @__PURE__ */ ee({
|
|
2744
2744
|
__name: "DividerWidgetEditor",
|
|
2745
2745
|
props: {
|
|
2746
2746
|
modelValue: {},
|
|
@@ -2748,7 +2748,7 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2748
2748
|
},
|
|
2749
2749
|
emits: ["update:model-value", "update:selected-widget-column"],
|
|
2750
2750
|
setup(e, { emit: o }) {
|
|
2751
|
-
const t = e, n = o, { t: l } = me(),
|
|
2751
|
+
const t = e, n = o, { t: l } = me(), a = L(() => t.modelValue.color ?? R.F_PRINT_COLOR.Enum.BLACK), i = L(() => a.value == R.F_PRINT_COLOR.Enum.COLORED);
|
|
2752
2752
|
function s(d) {
|
|
2753
2753
|
n("update:selected-widget-column", {
|
|
2754
2754
|
...t.selectedWidgetColumn,
|
|
@@ -2762,10 +2762,10 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2762
2762
|
});
|
|
2763
2763
|
}
|
|
2764
2764
|
return (d, u) => {
|
|
2765
|
-
const
|
|
2766
|
-
return x(), W("div",
|
|
2767
|
-
V("label",
|
|
2768
|
-
|
|
2765
|
+
const c = J("FmTextField");
|
|
2766
|
+
return x(), W("div", mi, [
|
|
2767
|
+
V("label", pi, H(y(l)("mf-kitchen.editor.dividerWidget")), 1),
|
|
2768
|
+
w(He, {
|
|
2769
2769
|
"model-value": {
|
|
2770
2770
|
padding: d.modelValue.padding,
|
|
2771
2771
|
alignment: d.modelValue.alignment,
|
|
@@ -2773,31 +2773,31 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2773
2773
|
type: d.modelValue.type
|
|
2774
2774
|
},
|
|
2775
2775
|
"selected-widget-column": d.selectedWidgetColumn,
|
|
2776
|
-
"onUpdate:modelValue": u[0] || (u[0] = (
|
|
2777
|
-
"onUpdate:selectedWidgetColumn": u[1] || (u[1] = (
|
|
2776
|
+
"onUpdate:modelValue": u[0] || (u[0] = (p) => n("update:model-value", { ...d.modelValue, ...p })),
|
|
2777
|
+
"onUpdate:selectedWidgetColumn": u[1] || (u[1] = (p) => s(p))
|
|
2778
2778
|
}, null, 8, ["model-value", "selected-widget-column"]),
|
|
2779
|
-
V("label",
|
|
2780
|
-
|
|
2779
|
+
V("label", fi, H(y(l)("mf-kitchen.editor.editor")), 1),
|
|
2780
|
+
w(c, {
|
|
2781
2781
|
"model-value": d.modelValue.thickness,
|
|
2782
2782
|
label: y(l)("mf-kitchen.editor.thickness"),
|
|
2783
2783
|
type: "number",
|
|
2784
|
-
rules: [(
|
|
2785
|
-
"onUpdate:modelValue": u[2] || (u[2] = (
|
|
2786
|
-
const
|
|
2787
|
-
r(
|
|
2784
|
+
rules: [(p) => p >= 1 || y(l)("mf-kitchen.editor.validation.minOne")],
|
|
2785
|
+
"onUpdate:modelValue": u[2] || (u[2] = (p) => {
|
|
2786
|
+
const f = Math.max(1, Number(p));
|
|
2787
|
+
r(f);
|
|
2788
2788
|
})
|
|
2789
2789
|
}, null, 8, ["model-value", "label", "rules"]),
|
|
2790
|
-
V("label",
|
|
2791
|
-
|
|
2790
|
+
V("label", gi, H(y(l)("mf-kitchen.editor.textStyle")), 1),
|
|
2791
|
+
w(kt, {
|
|
2792
2792
|
class: "w-fit",
|
|
2793
|
-
"is-format-color":
|
|
2794
|
-
"selected-format-color":
|
|
2795
|
-
"onUpdate:modelValue": u[3] || (u[3] = (
|
|
2793
|
+
"is-format-color": i.value,
|
|
2794
|
+
"selected-format-color": a.value,
|
|
2795
|
+
"onUpdate:modelValue": u[3] || (u[3] = (p) => n("update:model-value", { ...d.modelValue, color: p }))
|
|
2796
2796
|
}, null, 8, ["is-format-color", "selected-format-color"])
|
|
2797
2797
|
]);
|
|
2798
2798
|
};
|
|
2799
2799
|
}
|
|
2800
|
-
}),
|
|
2800
|
+
}), hi = { class: "px-[24px] py-[16px] overflow-y-auto" }, bi = { key: 0 }, yi = { key: 1 }, _i = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-3" }, Ci = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ei = /* @__PURE__ */ ee({
|
|
2801
2801
|
__name: "EditingPanel",
|
|
2802
2802
|
props: {
|
|
2803
2803
|
selectedWidget: {},
|
|
@@ -2806,14 +2806,14 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2806
2806
|
},
|
|
2807
2807
|
emits: ["update:widget", "update:selected-widget-column"],
|
|
2808
2808
|
setup(e, { emit: o }) {
|
|
2809
|
-
const t = e, n = o, { t: l } = me(),
|
|
2810
|
-
TEXT:
|
|
2811
|
-
CHECKBOX:
|
|
2812
|
-
EMPTY:
|
|
2813
|
-
IMAGE:
|
|
2814
|
-
QR:
|
|
2815
|
-
DIVIDER:
|
|
2816
|
-
},
|
|
2809
|
+
const t = e, n = o, { t: l } = me(), a = {
|
|
2810
|
+
TEXT: Gl,
|
|
2811
|
+
CHECKBOX: Jl,
|
|
2812
|
+
EMPTY: ei,
|
|
2813
|
+
IMAGE: ii,
|
|
2814
|
+
QR: ci,
|
|
2815
|
+
DIVIDER: vi
|
|
2816
|
+
}, i = L(() => t.selectedWidget ? a[t.selectedWidget.config.data.type] : null);
|
|
2817
2817
|
function s(d) {
|
|
2818
2818
|
if (t.selectedWidget) {
|
|
2819
2819
|
const u = { ...t.selectedWidget };
|
|
@@ -2829,70 +2829,70 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2829
2829
|
function r(d) {
|
|
2830
2830
|
n("update:selected-widget-column", d);
|
|
2831
2831
|
}
|
|
2832
|
-
return (d, u) => (x(), W("div",
|
|
2833
|
-
d.selectedWidget ? (x(), W("div",
|
|
2834
|
-
|
|
2832
|
+
return (d, u) => (x(), W("div", hi, [
|
|
2833
|
+
d.selectedWidget ? (x(), W("div", bi, [
|
|
2834
|
+
i.value ? (x(), ye(_o(i.value), {
|
|
2835
2835
|
key: 0,
|
|
2836
2836
|
"model-value": d.selectedWidget.config.data,
|
|
2837
2837
|
"section-type": d.selectedWidgetSectionType,
|
|
2838
2838
|
"selected-widget-column": d.selectedWidgetColumn,
|
|
2839
2839
|
"onUpdate:modelValue": s,
|
|
2840
2840
|
"onUpdate:selectedWidgetColumn": r
|
|
2841
|
-
}, null, 40, ["model-value", "section-type", "selected-widget-column"])) :
|
|
2842
|
-
])) : (x(), W("div",
|
|
2843
|
-
V("h2",
|
|
2844
|
-
V("p",
|
|
2841
|
+
}, null, 40, ["model-value", "section-type", "selected-widget-column"])) : Me("", !0)
|
|
2842
|
+
])) : (x(), W("div", yi, [
|
|
2843
|
+
V("h2", _i, H(y(l)("mf-kitchen.designPanel")), 1),
|
|
2844
|
+
V("p", Ci, H(y(l)("mf-kitchen.editorDescription")), 1)
|
|
2845
2845
|
]))
|
|
2846
2846
|
]));
|
|
2847
2847
|
}
|
|
2848
|
-
}),
|
|
2848
|
+
}), Ti = { class: "gap" }, wi = { class: "fm-typo-en-body-lg-600" }, Si = /* @__PURE__ */ ee({
|
|
2849
2849
|
__name: "WidgetsComponent",
|
|
2850
2850
|
emits: ["removeSelectedWidget"],
|
|
2851
2851
|
setup(e, { emit: o }) {
|
|
2852
2852
|
const t = o, { t: n } = me(), l = L(() => [
|
|
2853
|
-
{ data:
|
|
2854
|
-
{ data:
|
|
2855
|
-
{ data:
|
|
2856
|
-
{ data:
|
|
2857
|
-
{ data:
|
|
2858
|
-
{ data:
|
|
2859
|
-
]),
|
|
2860
|
-
function
|
|
2853
|
+
{ data: rn(), name: n("mf-kitchen.editor.spacer"), icon: "add" },
|
|
2854
|
+
{ data: Co(), name: n("mf-kitchen.editor.text"), icon: "title" },
|
|
2855
|
+
{ data: sn(), name: n("mf-kitchen.editor.checkbox"), icon: "check_box" },
|
|
2856
|
+
{ data: dn(), name: n("mf-kitchen.editor.divider"), icon: "horizontal_rule" },
|
|
2857
|
+
{ data: un(), name: n("mf-kitchen.editor.image"), icon: "image" },
|
|
2858
|
+
{ data: cn(), name: n("mf-kitchen.editor.qrCode"), icon: "qr_code_scanner" }
|
|
2859
|
+
]), a = (s) => ({ ...s });
|
|
2860
|
+
function i() {
|
|
2861
2861
|
t("removeSelectedWidget", !0);
|
|
2862
2862
|
}
|
|
2863
2863
|
return (s, r) => {
|
|
2864
|
-
const d = J("FmIcon"), u = J("FmCardSection"),
|
|
2865
|
-
return x(), W("div",
|
|
2866
|
-
V("label",
|
|
2867
|
-
|
|
2864
|
+
const d = J("FmIcon"), u = J("FmCardSection"), c = J("FmCard"), p = J("v-list");
|
|
2865
|
+
return x(), W("div", Ti, [
|
|
2866
|
+
V("label", wi, H(y(n)("mf-kitchen.editor.widget_plural")), 1),
|
|
2867
|
+
w(p, null, {
|
|
2868
2868
|
default: be(() => [
|
|
2869
|
-
|
|
2869
|
+
w(y(nt), {
|
|
2870
2870
|
modelValue: l.value,
|
|
2871
|
-
"onUpdate:modelValue": r[0] || (r[0] = (
|
|
2871
|
+
"onUpdate:modelValue": r[0] || (r[0] = (f) => l.value = f),
|
|
2872
2872
|
"item-key": "id",
|
|
2873
2873
|
group: { name: "widgets", pull: "clone", put: !1 },
|
|
2874
2874
|
sort: !1,
|
|
2875
|
-
clone:
|
|
2876
|
-
onStart:
|
|
2875
|
+
clone: a,
|
|
2876
|
+
onStart: i,
|
|
2877
2877
|
class: "grid grid-cols-2 gap-x-[24px] gap-y-[15px] cursor-grab"
|
|
2878
2878
|
}, {
|
|
2879
2879
|
default: be(() => [
|
|
2880
|
-
(x(!0), W(we, null, Se(l.value, (
|
|
2881
|
-
key:
|
|
2880
|
+
(x(!0), W(we, null, Se(l.value, (f) => (x(), W("div", {
|
|
2881
|
+
key: f.name
|
|
2882
2882
|
}, [
|
|
2883
|
-
|
|
2883
|
+
w(c, {
|
|
2884
2884
|
variant: "outlined",
|
|
2885
2885
|
class: "flex flex-col justify-center items-center p-[16px]"
|
|
2886
2886
|
}, {
|
|
2887
2887
|
default: be(() => [
|
|
2888
|
-
|
|
2889
|
-
name:
|
|
2888
|
+
w(d, {
|
|
2889
|
+
name: f.icon,
|
|
2890
2890
|
size: "md",
|
|
2891
2891
|
class: "mb-[5px] text-fm-color-neutral-gray-400"
|
|
2892
2892
|
}, null, 8, ["name"]),
|
|
2893
|
-
|
|
2893
|
+
w(u, { class: "p-0" }, {
|
|
2894
2894
|
default: be(() => [
|
|
2895
|
-
|
|
2895
|
+
Zo(H(f.name), 1)
|
|
2896
2896
|
]),
|
|
2897
2897
|
_: 2
|
|
2898
2898
|
}, 1024)
|
|
@@ -2909,7 +2909,7 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2909
2909
|
]);
|
|
2910
2910
|
};
|
|
2911
2911
|
}
|
|
2912
|
-
}),
|
|
2912
|
+
}), Vi = { class: "flex flex-col justify-between w-[420px]" }, ki = { class: "flex flex-col px-[24px] py-[16px] overflow-y-auto gap-24" }, xi = { class: "flex flex-col gap-2" }, Di = { class: "fm-typo-en-body-lg-600" }, Ii = { class: "fm-typo-en-body-lg-600" }, Fi = { class: "p-[16px] fm-shadow-light-300" }, Oi = /* @__PURE__ */ ee({
|
|
2913
2913
|
__name: "AdvanceModeLeftPanel",
|
|
2914
2914
|
props: {
|
|
2915
2915
|
receiptInfo: {},
|
|
@@ -2918,19 +2918,19 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2918
2918
|
},
|
|
2919
2919
|
emits: ["updateReceiptInfo", "updateReceiptTemplate", "reset", "removeSelectedWidget", "variableSectionType"],
|
|
2920
2920
|
setup(e, { emit: o }) {
|
|
2921
|
-
const t = e, n = o, l =
|
|
2921
|
+
const t = e, n = o, l = mn(() => {
|
|
2922
2922
|
n("reset");
|
|
2923
|
-
}), { t:
|
|
2923
|
+
}), { t: a, locale: i } = me(), s = j(lt.receipt.schema()), r = L(
|
|
2924
2924
|
() => Object.entries(s.value).flatMap(
|
|
2925
|
-
([E,
|
|
2926
|
-
...
|
|
2925
|
+
([E, S]) => S.map((I) => ({
|
|
2926
|
+
...I,
|
|
2927
2927
|
sectionType: E
|
|
2928
2928
|
}))
|
|
2929
2929
|
)
|
|
2930
2930
|
), d = L(
|
|
2931
2931
|
() => r.value.map((E) => ({
|
|
2932
2932
|
data: {
|
|
2933
|
-
...
|
|
2933
|
+
...Co(),
|
|
2934
2934
|
value: E.variable
|
|
2935
2935
|
},
|
|
2936
2936
|
name: E.label,
|
|
@@ -2939,61 +2939,61 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
2939
2939
|
), u = L(
|
|
2940
2940
|
() => t.selectedWidgetSectionType ? d.value.filter((E) => E.sectionType === t.selectedWidgetSectionType) : d.value
|
|
2941
2941
|
);
|
|
2942
|
-
function
|
|
2942
|
+
function c(E) {
|
|
2943
2943
|
return JSON.parse(JSON.stringify(E));
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2945
|
+
function p(E) {
|
|
2946
2946
|
n("updateReceiptTemplate", E(t.template));
|
|
2947
2947
|
}
|
|
2948
|
-
function
|
|
2949
|
-
const
|
|
2950
|
-
n("variableSectionType",
|
|
2948
|
+
function f(E) {
|
|
2949
|
+
const S = u.value[E.oldIndex];
|
|
2950
|
+
n("variableSectionType", S.sectionType);
|
|
2951
2951
|
}
|
|
2952
|
-
return
|
|
2953
|
-
() =>
|
|
2952
|
+
return Ye(
|
|
2953
|
+
() => i.value,
|
|
2954
2954
|
() => {
|
|
2955
|
-
s.value =
|
|
2955
|
+
s.value = lt.receipt.schema();
|
|
2956
2956
|
}
|
|
2957
|
-
), (E,
|
|
2958
|
-
var
|
|
2959
|
-
const
|
|
2960
|
-
return x(), W("div",
|
|
2961
|
-
V("div",
|
|
2962
|
-
V("div",
|
|
2963
|
-
V("label",
|
|
2964
|
-
E.receiptInfo ? (x(), ye(
|
|
2957
|
+
), (E, S) => {
|
|
2958
|
+
var B;
|
|
2959
|
+
const I = J("FmStepperField"), M = J("FmButton"), K = J("v-list");
|
|
2960
|
+
return x(), W("div", Vi, [
|
|
2961
|
+
V("div", ki, [
|
|
2962
|
+
V("div", xi, [
|
|
2963
|
+
V("label", Di, H(y(a)("mf-kitchen.receiptSetting")), 1),
|
|
2964
|
+
E.receiptInfo ? (x(), ye(pn, {
|
|
2965
2965
|
key: 0,
|
|
2966
2966
|
"model-value": E.receiptInfo,
|
|
2967
|
-
"onUpdate:modelValue":
|
|
2968
|
-
}, null, 8, ["model-value"])) :
|
|
2967
|
+
"onUpdate:modelValue": S[0] || (S[0] = (N) => n("updateReceiptInfo", N))
|
|
2968
|
+
}, null, 8, ["model-value"])) : Me("", !0)
|
|
2969
2969
|
]),
|
|
2970
|
-
|
|
2971
|
-
"model-value": ((
|
|
2970
|
+
w(I, {
|
|
2971
|
+
"model-value": ((B = t.template) == null ? void 0 : B.fontSize) ?? 12,
|
|
2972
2972
|
max: 40,
|
|
2973
2973
|
min: 1,
|
|
2974
2974
|
step: 1,
|
|
2975
|
-
label: y(
|
|
2975
|
+
label: y(a)("mf-kitchen.editor.overallFontSize"),
|
|
2976
2976
|
rules: [(N) => N <= 40 || "More than 40"],
|
|
2977
|
-
"onUpdate:modelValue":
|
|
2977
|
+
"onUpdate:modelValue": S[1] || (S[1] = (N) => {
|
|
2978
2978
|
const Y = Math.min(N, 40);
|
|
2979
|
-
|
|
2979
|
+
p(($) => ({ ...$, fontSize: Y }));
|
|
2980
2980
|
})
|
|
2981
2981
|
}, null, 8, ["model-value", "label", "rules"]),
|
|
2982
|
-
|
|
2983
|
-
onRemoveSelectedWidget:
|
|
2982
|
+
w(Si, {
|
|
2983
|
+
onRemoveSelectedWidget: S[2] || (S[2] = (N) => n("removeSelectedWidget", N))
|
|
2984
2984
|
}),
|
|
2985
|
-
V("label",
|
|
2986
|
-
|
|
2985
|
+
V("label", Ii, H(y(a)("mf-kitchen.editor.variable_plural")), 1),
|
|
2986
|
+
w(K, null, {
|
|
2987
2987
|
default: be(() => [
|
|
2988
|
-
|
|
2988
|
+
w(y(nt), {
|
|
2989
2989
|
modelValue: u.value,
|
|
2990
|
-
"onUpdate:modelValue":
|
|
2990
|
+
"onUpdate:modelValue": S[3] || (S[3] = (N) => u.value = N),
|
|
2991
2991
|
"item-key": "name",
|
|
2992
2992
|
group: { name: "widgets", pull: "clone", put: !1 },
|
|
2993
2993
|
sort: !1,
|
|
2994
|
-
clone:
|
|
2995
|
-
onStart:
|
|
2996
|
-
|
|
2994
|
+
clone: c,
|
|
2995
|
+
onStart: S[4] || (S[4] = (N) => {
|
|
2996
|
+
f(N), n("removeSelectedWidget", !0);
|
|
2997
2997
|
}),
|
|
2998
2998
|
class: "flex flex-wrap gap-[8px] cursor-grab"
|
|
2999
2999
|
}, {
|
|
@@ -3001,7 +3001,7 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
3001
3001
|
(x(!0), W(we, null, Se(u.value, (N) => (x(), W("div", {
|
|
3002
3002
|
key: N.name
|
|
3003
3003
|
}, [
|
|
3004
|
-
|
|
3004
|
+
w(M, {
|
|
3005
3005
|
variant: "secondary",
|
|
3006
3006
|
size: "md",
|
|
3007
3007
|
label: N.name
|
|
@@ -3014,11 +3014,11 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
3014
3014
|
_: 1
|
|
3015
3015
|
})
|
|
3016
3016
|
]),
|
|
3017
|
-
V("div",
|
|
3018
|
-
|
|
3017
|
+
V("div", Fi, [
|
|
3018
|
+
w(M, {
|
|
3019
3019
|
class: "w-full",
|
|
3020
3020
|
variant: "secondary",
|
|
3021
|
-
label: y(
|
|
3021
|
+
label: y(a)("mf-kitchen.resetToDefault"),
|
|
3022
3022
|
size: "md",
|
|
3023
3023
|
onClick: y(l)
|
|
3024
3024
|
}, null, 8, ["label", "onClick"])
|
|
@@ -3026,7 +3026,7 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
3026
3026
|
]);
|
|
3027
3027
|
};
|
|
3028
3028
|
}
|
|
3029
|
-
}),
|
|
3029
|
+
}), Ri = /* @__PURE__ */ ee({
|
|
3030
3030
|
__name: "PreviewDialog",
|
|
3031
3031
|
props: {
|
|
3032
3032
|
receiptInfo: {},
|
|
@@ -3035,22 +3035,22 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
3035
3035
|
},
|
|
3036
3036
|
setup(e) {
|
|
3037
3037
|
const o = e, t = j(!1), { t: n } = me();
|
|
3038
|
-
return (l,
|
|
3039
|
-
const
|
|
3038
|
+
return (l, a) => {
|
|
3039
|
+
const i = J("FmButton"), s = J("FmDialog");
|
|
3040
3040
|
return x(), ye(s, {
|
|
3041
3041
|
modelValue: t.value,
|
|
3042
|
-
"onUpdate:modelValue":
|
|
3042
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => t.value = r),
|
|
3043
3043
|
overlay: !0
|
|
3044
3044
|
}, {
|
|
3045
3045
|
"dialog-button": be(() => [
|
|
3046
|
-
|
|
3046
|
+
w(i, {
|
|
3047
3047
|
variant: "primary",
|
|
3048
3048
|
label: y(n)("mf-kitchen.preview")
|
|
3049
3049
|
}, null, 8, ["label"])
|
|
3050
3050
|
]),
|
|
3051
3051
|
default: be(() => [
|
|
3052
3052
|
V("div", null, [
|
|
3053
|
-
|
|
3053
|
+
w(fn, {
|
|
3054
3054
|
"receipt-info": o.receiptInfo,
|
|
3055
3055
|
profile: o.profile,
|
|
3056
3056
|
"receipt-template": o.receiptTemplate
|
|
@@ -3061,98 +3061,104 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
3061
3061
|
}, 8, ["modelValue"]);
|
|
3062
3062
|
};
|
|
3063
3063
|
}
|
|
3064
|
-
}),
|
|
3064
|
+
}), Ai = { class: "h-full flex flex-col" }, Wi = { class: "flex flex-row min-h-0" }, Ni = { class: "flex flex-col flex-1" }, Pi = { class: "templateBuilderHeader" }, Li = { class: "fm-typo-en-body-lg-600" }, $i = { class: "flex flex-row gap-2" }, Bi = {
|
|
3065
3065
|
key: 0,
|
|
3066
3066
|
class: "h-full flex justify-center items-center"
|
|
3067
|
-
},
|
|
3067
|
+
}, Mi = { class: "flex flex-col justify-between w-[420px]" }, Ui = {
|
|
3068
3068
|
key: 0,
|
|
3069
3069
|
class: "p-[16px] fm-shadow-light-300"
|
|
3070
|
-
},
|
|
3070
|
+
}, ji = /* @__PURE__ */ ee({
|
|
3071
3071
|
__name: "AdvanceModeView",
|
|
3072
|
+
props: {
|
|
3073
|
+
profile: {
|
|
3074
|
+
type: Object,
|
|
3075
|
+
required: !0
|
|
3076
|
+
}
|
|
3077
|
+
},
|
|
3072
3078
|
emits: ["change-mode"],
|
|
3073
3079
|
setup(e, { emit: o }) {
|
|
3074
|
-
const t =
|
|
3075
|
-
var
|
|
3076
|
-
if (
|
|
3077
|
-
return
|
|
3078
|
-
if (
|
|
3080
|
+
const t = Eo(), { t: n } = me(), l = hn(), a = j(), i = j(), s = j(), r = j(), d = j([]), u = j([]), c = j(null), p = L(() => {
|
|
3081
|
+
var U;
|
|
3082
|
+
if (E.value !== null)
|
|
3083
|
+
return E.value;
|
|
3084
|
+
if (c.value == null)
|
|
3079
3085
|
return null;
|
|
3080
|
-
const
|
|
3081
|
-
return (
|
|
3082
|
-
}),
|
|
3083
|
-
var
|
|
3084
|
-
return ((
|
|
3086
|
+
const D = (U = u.value) == null ? void 0 : U[c.value.position.row];
|
|
3087
|
+
return (D == null ? void 0 : D.sectionType) ?? null;
|
|
3088
|
+
}), f = j(null), E = j(null), S = j(null), I = j(null), M = j(!1), K = L(() => {
|
|
3089
|
+
var D;
|
|
3090
|
+
return ((D = r.value) == null ? void 0 : D.fontSize) ?? 12;
|
|
3085
3091
|
});
|
|
3086
|
-
function
|
|
3087
|
-
|
|
3088
|
-
const
|
|
3089
|
-
|
|
3090
|
-
}
|
|
3091
|
-
function
|
|
3092
|
-
const { row:
|
|
3093
|
-
|
|
3094
|
-
if (
|
|
3095
|
-
const
|
|
3096
|
-
if (
|
|
3097
|
-
const
|
|
3098
|
-
...
|
|
3092
|
+
function B(D) {
|
|
3093
|
+
c.value = D;
|
|
3094
|
+
const U = u.value[D.position.row];
|
|
3095
|
+
f.value = (U == null ? void 0 : U.columns[D.position.col]) ?? null, E.value = null;
|
|
3096
|
+
}
|
|
3097
|
+
function N(D) {
|
|
3098
|
+
const { row: U, col: ae, cell: Te } = D.position;
|
|
3099
|
+
u.value = u.value.map((De, xt) => {
|
|
3100
|
+
if (xt === U) {
|
|
3101
|
+
const dt = De.columns.map((je, Xo) => {
|
|
3102
|
+
if (Xo === ae) {
|
|
3103
|
+
const zo = je.cells.map((Dt, Yo) => Yo === Te ? {
|
|
3104
|
+
...Dt,
|
|
3099
3105
|
data: {
|
|
3100
|
-
...
|
|
3101
|
-
...
|
|
3106
|
+
...Dt.data,
|
|
3107
|
+
...D.config.data
|
|
3102
3108
|
}
|
|
3103
|
-
} :
|
|
3109
|
+
} : Dt);
|
|
3104
3110
|
return {
|
|
3105
|
-
...
|
|
3106
|
-
cells:
|
|
3111
|
+
...je,
|
|
3112
|
+
cells: zo
|
|
3107
3113
|
};
|
|
3108
3114
|
}
|
|
3109
|
-
return
|
|
3115
|
+
return je;
|
|
3110
3116
|
});
|
|
3111
3117
|
return {
|
|
3112
3118
|
...De,
|
|
3113
|
-
columns:
|
|
3119
|
+
columns: dt
|
|
3114
3120
|
};
|
|
3115
3121
|
}
|
|
3116
3122
|
return De;
|
|
3117
|
-
}),
|
|
3118
|
-
...
|
|
3119
|
-
...
|
|
3123
|
+
}), c.value && (c.value.config.data = {
|
|
3124
|
+
...c.value.config.data,
|
|
3125
|
+
...D.config.data
|
|
3120
3126
|
});
|
|
3121
3127
|
}
|
|
3122
|
-
function
|
|
3123
|
-
if (!
|
|
3128
|
+
function Y(D) {
|
|
3129
|
+
if (!c.value)
|
|
3124
3130
|
return;
|
|
3125
|
-
const { row:
|
|
3126
|
-
|
|
3127
|
-
if (De !==
|
|
3131
|
+
const { row: U, col: ae } = c.value.position;
|
|
3132
|
+
u.value = u.value.map((Te, De) => {
|
|
3133
|
+
if (De !== U)
|
|
3128
3134
|
return Te;
|
|
3129
|
-
const
|
|
3130
|
-
...
|
|
3131
|
-
...
|
|
3135
|
+
const xt = Te.columns.map((dt, je) => je !== ae ? dt : {
|
|
3136
|
+
...dt,
|
|
3137
|
+
...D
|
|
3132
3138
|
});
|
|
3133
3139
|
return {
|
|
3134
3140
|
...Te,
|
|
3135
|
-
columns:
|
|
3141
|
+
columns: xt
|
|
3136
3142
|
};
|
|
3137
|
-
}),
|
|
3143
|
+
}), f.value = D;
|
|
3138
3144
|
}
|
|
3139
|
-
function
|
|
3140
|
-
const { row:
|
|
3141
|
-
|
|
3145
|
+
function $(D) {
|
|
3146
|
+
const { row: U, col: ae, cell: Te } = D.position;
|
|
3147
|
+
u.value[U].columns[ae].cells.splice(Te, 1), u.value[U].columns[ae].cells.length === 0 && u.value[U].columns.splice(ae, 1), u.value[U].columns.length === 0 && u.value.splice(U, 1), c.value = null;
|
|
3142
3148
|
}
|
|
3143
|
-
const
|
|
3144
|
-
function
|
|
3145
|
-
|
|
3149
|
+
const h = o;
|
|
3150
|
+
function v() {
|
|
3151
|
+
h("change-mode", "normal");
|
|
3146
3152
|
}
|
|
3147
|
-
async function
|
|
3153
|
+
async function _() {
|
|
3148
3154
|
try {
|
|
3149
|
-
if (
|
|
3155
|
+
if (M.value = !0, !r.value || !i.value)
|
|
3150
3156
|
return;
|
|
3151
|
-
|
|
3152
|
-
const
|
|
3153
|
-
|
|
3154
|
-
const
|
|
3155
|
-
|
|
3157
|
+
r.value.template = Qt(u.value);
|
|
3158
|
+
const D = await Zt.updateTemplate(r.value);
|
|
3159
|
+
b(D);
|
|
3160
|
+
const U = await Jt.updateInfo(i.value);
|
|
3161
|
+
T(U), c.value = null, M.value = !1, t.open(
|
|
3156
3162
|
{
|
|
3157
3163
|
title: n("mf-kitchen.template.save.success", { file: n("mf-kitchen.receiptTemplate") }),
|
|
3158
3164
|
type: "success"
|
|
@@ -3169,138 +3175,138 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
3169
3175
|
);
|
|
3170
3176
|
}
|
|
3171
3177
|
}
|
|
3172
|
-
function
|
|
3173
|
-
|
|
3178
|
+
function m(D) {
|
|
3179
|
+
s.value = D, r.value = D;
|
|
3174
3180
|
}
|
|
3175
|
-
function
|
|
3176
|
-
|
|
3181
|
+
function k(D) {
|
|
3182
|
+
i.value = D;
|
|
3177
3183
|
}
|
|
3178
|
-
function
|
|
3179
|
-
|
|
3184
|
+
function C(D) {
|
|
3185
|
+
r.value = D;
|
|
3180
3186
|
}
|
|
3181
|
-
function
|
|
3182
|
-
|
|
3187
|
+
function T(D) {
|
|
3188
|
+
a.value = D, i.value = D;
|
|
3183
3189
|
}
|
|
3184
|
-
function
|
|
3185
|
-
|
|
3186
|
-
(
|
|
3187
|
-
),
|
|
3190
|
+
function b(D) {
|
|
3191
|
+
u.value = D.template.flatMap(
|
|
3192
|
+
(U) => U.group.rows.map((ae) => ({ ...ae, sectionType: U.type }))
|
|
3193
|
+
), d.value = JSON.parse(JSON.stringify(u.value));
|
|
3188
3194
|
}
|
|
3189
|
-
function
|
|
3190
|
-
|
|
3195
|
+
function P() {
|
|
3196
|
+
i.value = a.value, r.value = s.value, u.value = JSON.parse(JSON.stringify(d.value)), c.value = null, f.value = null;
|
|
3191
3197
|
}
|
|
3192
|
-
function
|
|
3193
|
-
const
|
|
3194
|
-
!
|
|
3198
|
+
function G(D) {
|
|
3199
|
+
const U = S.value, ae = I.value;
|
|
3200
|
+
!U || !ae || U.contains(D.target) && !ae.contains(D.target) && (c.value = null);
|
|
3195
3201
|
}
|
|
3196
|
-
function
|
|
3197
|
-
|
|
3202
|
+
function le(D) {
|
|
3203
|
+
D && (c.value = null);
|
|
3198
3204
|
}
|
|
3199
|
-
function
|
|
3200
|
-
|
|
3205
|
+
function Ee(D) {
|
|
3206
|
+
E.value = D;
|
|
3201
3207
|
}
|
|
3202
|
-
return
|
|
3208
|
+
return bo(async () => {
|
|
3203
3209
|
try {
|
|
3204
3210
|
await l.readRestaurants();
|
|
3205
|
-
const
|
|
3206
|
-
|
|
3207
|
-
const
|
|
3208
|
-
|
|
3209
|
-
} catch (
|
|
3211
|
+
const D = await Jt.readInfo();
|
|
3212
|
+
T(D);
|
|
3213
|
+
const U = await Zt.readTemplate();
|
|
3214
|
+
m(U), b(U), document.addEventListener("click", G);
|
|
3215
|
+
} catch (D) {
|
|
3210
3216
|
t.open(
|
|
3211
3217
|
{
|
|
3212
3218
|
title: n("mf-kitchen.template.load.fail", { file: n("mf-kitchen.receiptTemplate") }),
|
|
3213
|
-
message: `${
|
|
3219
|
+
message: `${D}`,
|
|
3214
3220
|
type: "error"
|
|
3215
3221
|
},
|
|
3216
3222
|
3e3
|
|
3217
3223
|
);
|
|
3218
3224
|
}
|
|
3219
|
-
}),
|
|
3220
|
-
document.removeEventListener("click",
|
|
3221
|
-
}), (
|
|
3225
|
+
}), Qo(() => {
|
|
3226
|
+
document.removeEventListener("click", G);
|
|
3227
|
+
}), (D, U) => {
|
|
3222
3228
|
const ae = J("FmButton"), Te = J("FmCircularProgress");
|
|
3223
|
-
return x(), W("div",
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
V("div",
|
|
3227
|
-
|
|
3229
|
+
return x(), W("div", Ai, [
|
|
3230
|
+
w(gn),
|
|
3231
|
+
w(vn, { onUpdateTemplate: _ }),
|
|
3232
|
+
V("div", Wi, [
|
|
3233
|
+
i.value && r.value ? (x(), ye(Oi, {
|
|
3228
3234
|
key: 0,
|
|
3229
|
-
"receipt-info":
|
|
3230
|
-
template:
|
|
3231
|
-
selectedWidgetSectionType:
|
|
3232
|
-
onUpdateReceiptInfo:
|
|
3233
|
-
onUpdateReceiptTemplate:
|
|
3234
|
-
onReset:
|
|
3235
|
-
onRemoveSelectedWidget:
|
|
3236
|
-
onVariableSectionType:
|
|
3237
|
-
}, null, 8, ["receipt-info", "template", "selectedWidgetSectionType"])) :
|
|
3238
|
-
V("div",
|
|
3239
|
-
V("div",
|
|
3240
|
-
V("label",
|
|
3241
|
-
V("div",
|
|
3242
|
-
|
|
3235
|
+
"receipt-info": i.value,
|
|
3236
|
+
template: r.value,
|
|
3237
|
+
selectedWidgetSectionType: p.value,
|
|
3238
|
+
onUpdateReceiptInfo: k,
|
|
3239
|
+
onUpdateReceiptTemplate: C,
|
|
3240
|
+
onReset: P,
|
|
3241
|
+
onRemoveSelectedWidget: le,
|
|
3242
|
+
onVariableSectionType: Ee
|
|
3243
|
+
}, null, 8, ["receipt-info", "template", "selectedWidgetSectionType"])) : Me("", !0),
|
|
3244
|
+
V("div", Ni, [
|
|
3245
|
+
V("div", Pi, [
|
|
3246
|
+
V("label", Li, H(y(n)("mf-kitchen.advanceTemplateBuilder")), 1),
|
|
3247
|
+
V("div", $i, [
|
|
3248
|
+
i.value && e.profile && r.value ? (x(), ye(Ri, {
|
|
3243
3249
|
key: 0,
|
|
3244
|
-
"receipt-info":
|
|
3245
|
-
profile:
|
|
3250
|
+
"receipt-info": i.value,
|
|
3251
|
+
profile: e.profile,
|
|
3246
3252
|
"receipt-template": {
|
|
3247
|
-
...
|
|
3248
|
-
template: y(
|
|
3253
|
+
...r.value,
|
|
3254
|
+
template: y(Qt)(u.value)
|
|
3249
3255
|
}
|
|
3250
|
-
}, null, 8, ["receipt-info", "profile", "receipt-template"])) :
|
|
3251
|
-
|
|
3256
|
+
}, null, 8, ["receipt-info", "profile", "receipt-template"])) : Me("", !0),
|
|
3257
|
+
w(ae, {
|
|
3252
3258
|
variant: "secondary",
|
|
3253
3259
|
label: y(n)("mf-kitchen.returnToBasicMode"),
|
|
3254
3260
|
"text-color": "primary",
|
|
3255
3261
|
bgColor: "typo-white",
|
|
3256
3262
|
"border-color": "primary",
|
|
3257
|
-
onClick:
|
|
3263
|
+
onClick: v
|
|
3258
3264
|
}, null, 8, ["label"])
|
|
3259
3265
|
])
|
|
3260
3266
|
]),
|
|
3261
3267
|
V("div", {
|
|
3262
3268
|
class: "h-full flex justify-center py-10 overflow-y-auto bg-fm-color-neutral-gray-100",
|
|
3263
3269
|
ref_key: "receiptEditorRef",
|
|
3264
|
-
ref:
|
|
3270
|
+
ref: S
|
|
3265
3271
|
}, [
|
|
3266
|
-
|
|
3267
|
-
|
|
3272
|
+
M.value ? (x(), W("div", Bi, [
|
|
3273
|
+
w(Te, { size: "xxl" })
|
|
3268
3274
|
])) : (x(), W("div", {
|
|
3269
3275
|
key: 1,
|
|
3270
3276
|
ref_key: "receiptEditorContentRef",
|
|
3271
|
-
ref:
|
|
3277
|
+
ref: I
|
|
3272
3278
|
}, [
|
|
3273
|
-
|
|
3279
|
+
i.value ? (x(), ye(Tl, {
|
|
3274
3280
|
key: 0,
|
|
3275
|
-
modelValue:
|
|
3276
|
-
"onUpdate:modelValue":
|
|
3277
|
-
onSelectWidget:
|
|
3278
|
-
"font-size":
|
|
3279
|
-
"selected-widget":
|
|
3280
|
-
"selected-widget-section-type":
|
|
3281
|
-
}, null, 8, ["modelValue", "font-size", "selected-widget", "selected-widget-section-type"])) :
|
|
3281
|
+
modelValue: u.value,
|
|
3282
|
+
"onUpdate:modelValue": U[0] || (U[0] = (De) => u.value = De),
|
|
3283
|
+
onSelectWidget: B,
|
|
3284
|
+
"font-size": K.value,
|
|
3285
|
+
"selected-widget": c.value,
|
|
3286
|
+
"selected-widget-section-type": p.value
|
|
3287
|
+
}, null, 8, ["modelValue", "font-size", "selected-widget", "selected-widget-section-type"])) : Me("", !0)
|
|
3282
3288
|
], 512))
|
|
3283
3289
|
], 512)
|
|
3284
3290
|
]),
|
|
3285
|
-
V("div",
|
|
3286
|
-
|
|
3287
|
-
"selected-widget":
|
|
3288
|
-
"selected-widget-section-type":
|
|
3289
|
-
"selected-widget-column":
|
|
3290
|
-
"onUpdate:widget":
|
|
3291
|
-
"onUpdate:selectedWidgetColumn":
|
|
3291
|
+
V("div", Mi, [
|
|
3292
|
+
w(Ei, {
|
|
3293
|
+
"selected-widget": c.value,
|
|
3294
|
+
"selected-widget-section-type": p.value,
|
|
3295
|
+
"selected-widget-column": f.value,
|
|
3296
|
+
"onUpdate:widget": N,
|
|
3297
|
+
"onUpdate:selectedWidgetColumn": Y
|
|
3292
3298
|
}, null, 8, ["selected-widget", "selected-widget-section-type", "selected-widget-column"]),
|
|
3293
|
-
|
|
3294
|
-
|
|
3299
|
+
c.value ? (x(), W("div", Ui, [
|
|
3300
|
+
w(ae, {
|
|
3295
3301
|
class: "w-full",
|
|
3296
3302
|
variant: "secondary",
|
|
3297
3303
|
label: "Remove widget",
|
|
3298
3304
|
size: "md",
|
|
3299
3305
|
"border-color": "system-error-300",
|
|
3300
3306
|
"text-color": "system-error-300",
|
|
3301
|
-
onClick:
|
|
3307
|
+
onClick: U[1] || (U[1] = (De) => $(c.value))
|
|
3302
3308
|
})
|
|
3303
|
-
])) :
|
|
3309
|
+
])) : Me("", !0)
|
|
3304
3310
|
])
|
|
3305
3311
|
])
|
|
3306
3312
|
]);
|
|
@@ -3308,5 +3314,5 @@ const Kl = /* @__PURE__ */ Vt(jl, [["__scopeId", "data-v-3d715f0b"]]), ql = { cl
|
|
|
3308
3314
|
}
|
|
3309
3315
|
});
|
|
3310
3316
|
export {
|
|
3311
|
-
|
|
3317
|
+
ji as default
|
|
3312
3318
|
};
|