@feedmepos/mf-brand-app-builder 0.5.14 → 0.5.15
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/{App-DZzvEb1n.js → App-2Pgm17e1.js} +1 -1
- package/dist/{BuilderView-CdxiU_5V.js → BuilderView-Dtmy06e_.js} +314 -312
- package/dist/{ImageUpload-Cpkzp4iS.js → ImageUpload-CCUXmhHb.js} +1 -1
- package/dist/{ListRepeater-B_aON8eJ.js → ListRepeater-Gq-91jcm.js} +1 -1
- package/dist/{app-BSofsfPH.js → app-C-LBEIV5.js} +4 -4
- package/dist/app.js +1 -1
- package/dist/components/src/components/OrderMethod.vue.d.ts +3 -0
- package/dist/{main-BnnUrWK-.js → main-D5VZjpda.js} +73 -63
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { resolveComponent as Y, TransitionGroup as
|
|
2
|
-
import { T as
|
|
3
|
-
import { defineStore as
|
|
1
|
+
import { resolveComponent as Y, TransitionGroup as Fo, defineComponent as ie, nextTick as On, h as Qt, isRef as Po, isReactive as $o, isProxy as Ao, toRaw as Mo, ref as q, createElementBlock as O, openBlock as D, Fragment as Te, renderList as ot, unref as $, createElementVNode as k, createVNode as S, createBlock as te, createCommentVNode as ne, toDisplayString as Fe, withCtx as M, computed as re, withDirectives as $t, withModifiers as Zt, vShow as At, normalizeClass as Ke, watch as en, createTextVNode as Lo, onMounted as Un, normalizeProps as Cn, mergeProps as Ro, resolveDynamicComponent as Oo, guardReactiveProps as Uo, normalizeStyle as Vo, renderSlot as dn, provide as Ho, inject as zo, markRaw as Yo } from "vue";
|
|
2
|
+
import { T as jo, B as Vn, u as rt } from "./index-CJXFGv-u.js";
|
|
3
|
+
import { defineStore as Go, storeToRefs as Wo } from "pinia";
|
|
4
4
|
import { v as _n } from "./v4-CKwdnpQf.js";
|
|
5
5
|
import { _ as ke } from "./Icon.vue_vue_type_style_index_0_lang-BcRjQndc.js";
|
|
6
|
-
import { _ as
|
|
7
|
-
import { useCoreStore as
|
|
8
|
-
import { K as se, V as
|
|
9
|
-
import { useDialog as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
6
|
+
import { _ as Xo, a as Ko, C as Jo } from "./main-D5VZjpda.js";
|
|
7
|
+
import { useCoreStore as Re } from "@feedmepos/mf-common";
|
|
8
|
+
import { K as se, V as qo } from "./index-CAfpg2Eg.js";
|
|
9
|
+
import { useDialog as Qo, components as Zo } from "@feedmepos/ui-library";
|
|
10
|
+
import { u as Hn } from "./index-BZ63ygCw.js";
|
|
11
|
+
import { F as er, a as tr } from "./app-C-LBEIV5.js";
|
|
12
12
|
/**!
|
|
13
13
|
* Sortable 1.14.0
|
|
14
14
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -84,15 +84,15 @@ function me(t) {
|
|
|
84
84
|
if (typeof window < "u" && window.navigator)
|
|
85
85
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
86
86
|
}
|
|
87
|
-
var ge = me(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), it = me(/Edge/i), xn = me(/firefox/i), Je = me(/safari/i) && !me(/chrome/i) && !me(/android/i),
|
|
87
|
+
var ge = me(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), it = me(/Edge/i), xn = me(/firefox/i), Je = me(/safari/i) && !me(/chrome/i) && !me(/android/i), zn = me(/iP(ad|od|hone)/i), ar = me(/chrome/i) && me(/android/i), Yn = {
|
|
88
88
|
capture: !1,
|
|
89
89
|
passive: !1
|
|
90
90
|
};
|
|
91
91
|
function F(t, e, n) {
|
|
92
|
-
t.addEventListener(e, n, !ge &&
|
|
92
|
+
t.addEventListener(e, n, !ge && Yn);
|
|
93
93
|
}
|
|
94
94
|
function N(t, e, n) {
|
|
95
|
-
t.removeEventListener(e, n, !ge &&
|
|
95
|
+
t.removeEventListener(e, n, !ge && Yn);
|
|
96
96
|
}
|
|
97
97
|
function Ct(t, e) {
|
|
98
98
|
if (e) {
|
|
@@ -142,7 +142,7 @@ function T(t, e, n) {
|
|
|
142
142
|
!(e in o) && e.indexOf("webkit") === -1 && (e = "-webkit-" + e), o[e] = n + (typeof n == "string" ? "" : "px");
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function Le(t, e) {
|
|
146
146
|
var n = "";
|
|
147
147
|
if (typeof t == "string")
|
|
148
148
|
n = t;
|
|
@@ -154,7 +154,7 @@ function Re(t, e) {
|
|
|
154
154
|
var r = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
155
155
|
return r && new r(n);
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function jn(t, e, n) {
|
|
158
158
|
if (t) {
|
|
159
159
|
var o = t.getElementsByTagName(e), r = 0, i = o.length;
|
|
160
160
|
if (n)
|
|
@@ -180,8 +180,8 @@ function z(t, e, n, o, r) {
|
|
|
180
180
|
}
|
|
181
181
|
while (r = r.parentNode);
|
|
182
182
|
if (o && t !== window) {
|
|
183
|
-
var
|
|
184
|
-
|
|
183
|
+
var h = Le(r || t), b = h && h.a, g = h && h.d;
|
|
184
|
+
h && (a /= g, s /= b, d /= b, u /= g, l = a + u, c = s + d);
|
|
185
185
|
}
|
|
186
186
|
return {
|
|
187
187
|
top: a,
|
|
@@ -230,7 +230,7 @@ function In(t) {
|
|
|
230
230
|
var e = 0, n = 0, o = de();
|
|
231
231
|
if (t)
|
|
232
232
|
do {
|
|
233
|
-
var r =
|
|
233
|
+
var r = Le(t), i = r.a, a = r.d;
|
|
234
234
|
e += t.scrollLeft * i, n += t.scrollTop * a;
|
|
235
235
|
} while (t !== o && (t = t.parentNode));
|
|
236
236
|
return [e, n];
|
|
@@ -268,7 +268,7 @@ function Mt(t, e) {
|
|
|
268
268
|
return Math.round(t.top) === Math.round(e.top) && Math.round(t.left) === Math.round(e.left) && Math.round(t.height) === Math.round(e.height) && Math.round(t.width) === Math.round(e.width);
|
|
269
269
|
}
|
|
270
270
|
var qe;
|
|
271
|
-
function
|
|
271
|
+
function Gn(t, e) {
|
|
272
272
|
return function() {
|
|
273
273
|
if (!qe) {
|
|
274
274
|
var n = arguments, o = this;
|
|
@@ -281,10 +281,10 @@ function jn(t, e) {
|
|
|
281
281
|
function ur() {
|
|
282
282
|
clearTimeout(qe), qe = void 0;
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Wn(t, e, n) {
|
|
285
285
|
t.scrollLeft += e, t.scrollTop += n;
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Xn(t) {
|
|
288
288
|
var e = window.Polymer, n = window.jQuery || window.Zepto;
|
|
289
289
|
return e && e.dom ? e.dom(t).cloneNode(!0) : n ? n(t).clone(!0)[0] : t.cloneNode(!0);
|
|
290
290
|
}
|
|
@@ -303,7 +303,7 @@ function dr() {
|
|
|
303
303
|
});
|
|
304
304
|
var i = fe({}, t[t.length - 1].rect);
|
|
305
305
|
if (r.thisAnimationDuration) {
|
|
306
|
-
var a =
|
|
306
|
+
var a = Le(r, !0);
|
|
307
307
|
a && (i.top -= a.f, i.left -= a.e);
|
|
308
308
|
}
|
|
309
309
|
r.fromRect = i;
|
|
@@ -327,9 +327,9 @@ function dr() {
|
|
|
327
327
|
}
|
|
328
328
|
var i = !1, a = 0;
|
|
329
329
|
t.forEach(function(s) {
|
|
330
|
-
var l = 0, c = s.target, u = c.fromRect, d = z(c), p = c.prevFromRect,
|
|
331
|
-
|
|
332
|
-
(b.top - d.top) / (b.left - d.left) === (u.top - d.top) / (u.left - d.left) && (l = pr(b, p,
|
|
330
|
+
var l = 0, c = s.target, u = c.fromRect, d = z(c), p = c.prevFromRect, h = c.prevToRect, b = s.rect, g = Le(c, !0);
|
|
331
|
+
g && (d.top -= g.f, d.left -= g.e), c.toRect = d, c.thisAnimationDuration && Mt(p, d) && !Mt(u, d) && // Make sure animatingRect is on line between toRect & fromRect
|
|
332
|
+
(b.top - d.top) / (b.left - d.left) === (u.top - d.top) / (u.left - d.left) && (l = pr(b, p, h, r.options)), Mt(d, u) || (c.prevFromRect = u, c.prevToRect = d, l || (l = r.options.animation), r.animate(c, b, d, l)), l && (i = !0, a = Math.max(a, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
333
333
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
334
334
|
}, l), c.thisAnimationDuration = l);
|
|
335
335
|
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
@@ -339,7 +339,7 @@ function dr() {
|
|
|
339
339
|
animate: function(o, r, i, a) {
|
|
340
340
|
if (a) {
|
|
341
341
|
T(o, "transition", ""), T(o, "transform", "");
|
|
342
|
-
var s =
|
|
342
|
+
var s = Le(this.el), l = s && s.a, c = s && s.d, u = (r.left - i.left) / (l || 1), d = (r.top - i.top) / (c || 1);
|
|
343
343
|
o.animatingX = !!u, o.animatingY = !!d, T(o, "transform", "translate3d(" + u + "px," + d + "px,0)"), this.forRepaintDummy = fr(o), T(o, "transition", "transform " + a + "ms" + (this.options.easing ? " " + this.options.easing : "")), T(o, "transform", "translate3d(0,0,0)"), typeof o.animated == "number" && clearTimeout(o.animated), o.animated = setTimeout(function() {
|
|
344
344
|
T(o, "transition", ""), T(o, "transform", ""), o.animated = !1, o.animatingX = !1, o.animatingY = !1;
|
|
345
345
|
}, a);
|
|
@@ -353,16 +353,16 @@ function fr(t) {
|
|
|
353
353
|
function pr(t, e, n, o) {
|
|
354
354
|
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - n.top, 2) + Math.pow(e.left - n.left, 2)) * o.animation;
|
|
355
355
|
}
|
|
356
|
-
var
|
|
356
|
+
var Pe = [], Lt = {
|
|
357
357
|
initializeByDefault: !0
|
|
358
358
|
}, at = {
|
|
359
359
|
mount: function(e) {
|
|
360
360
|
for (var n in Lt)
|
|
361
361
|
Lt.hasOwnProperty(n) && !(n in e) && (e[n] = Lt[n]);
|
|
362
|
-
|
|
362
|
+
Pe.forEach(function(o) {
|
|
363
363
|
if (o.pluginName === e.pluginName)
|
|
364
364
|
throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
|
|
365
|
-
}),
|
|
365
|
+
}), Pe.push(e);
|
|
366
366
|
},
|
|
367
367
|
pluginEvent: function(e, n, o) {
|
|
368
368
|
var r = this;
|
|
@@ -370,7 +370,7 @@ var $e = [], Lt = {
|
|
|
370
370
|
r.eventCanceled = !0;
|
|
371
371
|
};
|
|
372
372
|
var i = e + "Global";
|
|
373
|
-
|
|
373
|
+
Pe.forEach(function(a) {
|
|
374
374
|
n[a.pluginName] && (n[a.pluginName][i] && n[a.pluginName][i](fe({
|
|
375
375
|
sortable: n
|
|
376
376
|
}, o)), n.options[a.pluginName] && n[a.pluginName][e] && n[a.pluginName][e](fe({
|
|
@@ -379,7 +379,7 @@ var $e = [], Lt = {
|
|
|
379
379
|
});
|
|
380
380
|
},
|
|
381
381
|
initializePlugins: function(e, n, o, r) {
|
|
382
|
-
|
|
382
|
+
Pe.forEach(function(s) {
|
|
383
383
|
var l = s.pluginName;
|
|
384
384
|
if (!(!e.options[l] && !s.initializeByDefault)) {
|
|
385
385
|
var c = new s(e, n, e.options);
|
|
@@ -394,35 +394,35 @@ var $e = [], Lt = {
|
|
|
394
394
|
},
|
|
395
395
|
getEventProperties: function(e, n) {
|
|
396
396
|
var o = {};
|
|
397
|
-
return
|
|
397
|
+
return Pe.forEach(function(r) {
|
|
398
398
|
typeof r.eventProperties == "function" && he(o, r.eventProperties.call(n[r.pluginName], e));
|
|
399
399
|
}), o;
|
|
400
400
|
},
|
|
401
401
|
modifyOption: function(e, n, o) {
|
|
402
402
|
var r;
|
|
403
|
-
return
|
|
403
|
+
return Pe.forEach(function(i) {
|
|
404
404
|
e[i.pluginName] && i.optionListeners && typeof i.optionListeners[n] == "function" && (r = i.optionListeners[n].call(e[i.pluginName], o));
|
|
405
405
|
}), r;
|
|
406
406
|
}
|
|
407
407
|
};
|
|
408
408
|
function mr(t) {
|
|
409
|
-
var e = t.sortable, n = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, a = t.toEl, s = t.fromEl, l = t.oldIndex, c = t.newIndex, u = t.oldDraggableIndex, d = t.newDraggableIndex, p = t.originalEvent,
|
|
409
|
+
var e = t.sortable, n = t.rootEl, o = t.name, r = t.targetEl, i = t.cloneEl, a = t.toEl, s = t.fromEl, l = t.oldIndex, c = t.newIndex, u = t.oldDraggableIndex, d = t.newDraggableIndex, p = t.originalEvent, h = t.putSortable, b = t.extraEventProperties;
|
|
410
410
|
if (e = e || n && n[oe], !!e) {
|
|
411
|
-
var
|
|
412
|
-
window.CustomEvent && !ge && !it ?
|
|
411
|
+
var g, w = e.options, f = "on" + o.charAt(0).toUpperCase() + o.substr(1);
|
|
412
|
+
window.CustomEvent && !ge && !it ? g = new CustomEvent(o, {
|
|
413
413
|
bubbles: !0,
|
|
414
414
|
cancelable: !0
|
|
415
|
-
}) : (
|
|
415
|
+
}) : (g = document.createEvent("Event"), g.initEvent(o, !0, !0)), g.to = a || n, g.from = s || n, g.item = r || n, g.clone = i, g.oldIndex = l, g.newIndex = c, g.oldDraggableIndex = u, g.newDraggableIndex = d, g.originalEvent = p, g.pullMode = h ? h.lastPutMode : void 0;
|
|
416
416
|
var v = fe(fe({}, b), at.getEventProperties(o, e));
|
|
417
417
|
for (var y in v)
|
|
418
|
-
|
|
419
|
-
n && n.dispatchEvent(
|
|
418
|
+
g[y] = v[y];
|
|
419
|
+
n && n.dispatchEvent(g), w[f] && w[f].call(e, g);
|
|
420
420
|
}
|
|
421
421
|
}
|
|
422
422
|
var hr = ["evt"], J = function(e, n) {
|
|
423
423
|
var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, r = o.evt, i = rr(o, hr);
|
|
424
424
|
at.pluginEvent.bind(x)(e, n, fe({
|
|
425
|
-
dragEl:
|
|
425
|
+
dragEl: m,
|
|
426
426
|
parentEl: L,
|
|
427
427
|
ghostEl: B,
|
|
428
428
|
rootEl: A,
|
|
@@ -434,12 +434,12 @@ var hr = ["evt"], J = function(e, n) {
|
|
|
434
434
|
putSortable: W,
|
|
435
435
|
activeSortable: x.active,
|
|
436
436
|
originalEvent: r,
|
|
437
|
-
oldIndex:
|
|
437
|
+
oldIndex: Me,
|
|
438
438
|
oldDraggableIndex: Qe,
|
|
439
439
|
newIndex: ee,
|
|
440
440
|
newDraggableIndex: ye,
|
|
441
|
-
hideGhostForTarget:
|
|
442
|
-
unhideGhostForTarget:
|
|
441
|
+
hideGhostForTarget: Qn,
|
|
442
|
+
unhideGhostForTarget: Zn,
|
|
443
443
|
cloneNowHidden: function() {
|
|
444
444
|
we = !0;
|
|
445
445
|
},
|
|
@@ -459,22 +459,22 @@ function K(t) {
|
|
|
459
459
|
mr(fe({
|
|
460
460
|
putSortable: W,
|
|
461
461
|
cloneEl: R,
|
|
462
|
-
targetEl:
|
|
462
|
+
targetEl: m,
|
|
463
463
|
rootEl: A,
|
|
464
|
-
oldIndex:
|
|
464
|
+
oldIndex: Me,
|
|
465
465
|
oldDraggableIndex: Qe,
|
|
466
466
|
newIndex: ee,
|
|
467
467
|
newDraggableIndex: ye
|
|
468
468
|
}, t));
|
|
469
469
|
}
|
|
470
|
-
var
|
|
470
|
+
var m, L, B, A, Ne, bt, R, we, Me, ee, Qe, ye, ut, W, Ae = !1, _t = !1, Tt = [], Be, ce, Rt, Ot, Bn, Dn, Ge, $e, Ze, et = !1, dt = !1, vt, X, Ut = [], tn = !1, xt = [], Bt = typeof document < "u", ft = zn, Nn = it || ge ? "cssFloat" : "float", gr = Bt && !ar && !zn && "draggable" in document.createElement("div"), Kn = function() {
|
|
471
471
|
if (Bt) {
|
|
472
472
|
if (ge)
|
|
473
473
|
return !1;
|
|
474
474
|
var t = document.createElement("x");
|
|
475
475
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
476
476
|
}
|
|
477
|
-
}(),
|
|
477
|
+
}(), Jn = function(e, n) {
|
|
478
478
|
var o = T(e), r = parseInt(o.width) - parseInt(o.paddingLeft) - parseInt(o.paddingRight) - parseInt(o.borderLeftWidth) - parseInt(o.borderRightWidth), i = Oe(e, 0, n), a = Oe(e, 1, n), s = i && T(i), l = a && T(a), c = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + z(i).width, u = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + z(a).width;
|
|
479
479
|
if (o.display === "flex")
|
|
480
480
|
return o.flexDirection === "column" || o.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -498,7 +498,7 @@ var h, L, B, A, Ne, bt, R, we, Le, ee, Qe, ye, ut, W, Me = !1, _t = !1, Tt = [],
|
|
|
498
498
|
return o = r;
|
|
499
499
|
}
|
|
500
500
|
}), o;
|
|
501
|
-
},
|
|
501
|
+
}, qn = function(e) {
|
|
502
502
|
function n(i, a) {
|
|
503
503
|
return function(s, l, c, u) {
|
|
504
504
|
var d = s.options.group.name && l.options.group.name && s.options.group.name === l.options.group.name;
|
|
@@ -518,17 +518,17 @@ var h, L, B, A, Ne, bt, R, we, Le, ee, Qe, ye, ut, W, Me = !1, _t = !1, Tt = [],
|
|
|
518
518
|
(!r || gt(r) != "object") && (r = {
|
|
519
519
|
name: r
|
|
520
520
|
}), o.name = r.name, o.checkPull = n(r.pull, !0), o.checkPut = n(r.put), o.revertClone = r.revertClone, e.group = o;
|
|
521
|
-
}, qn = function() {
|
|
522
|
-
!Xn && B && T(B, "display", "none");
|
|
523
521
|
}, Qn = function() {
|
|
524
|
-
!
|
|
522
|
+
!Kn && B && T(B, "display", "none");
|
|
523
|
+
}, Zn = function() {
|
|
524
|
+
!Kn && B && T(B, "display", "");
|
|
525
525
|
};
|
|
526
526
|
Bt && document.addEventListener("click", function(t) {
|
|
527
527
|
if (_t)
|
|
528
528
|
return t.preventDefault(), t.stopPropagation && t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), _t = !1, !1;
|
|
529
529
|
}, !0);
|
|
530
530
|
var De = function(e) {
|
|
531
|
-
if (
|
|
531
|
+
if (m) {
|
|
532
532
|
e = e.touches ? e.touches[0] : e;
|
|
533
533
|
var n = vr(e.clientX, e.clientY);
|
|
534
534
|
if (n) {
|
|
@@ -539,7 +539,7 @@ var De = function(e) {
|
|
|
539
539
|
}
|
|
540
540
|
}
|
|
541
541
|
}, yr = function(e) {
|
|
542
|
-
|
|
542
|
+
m && m.parentNode[oe]._isOutsideThisEl(e.target);
|
|
543
543
|
};
|
|
544
544
|
function x(t, e) {
|
|
545
545
|
if (!(t && t.nodeType && t.nodeType === 1))
|
|
@@ -560,7 +560,7 @@ function x(t, e) {
|
|
|
560
560
|
// will be set to same as swapThreshold if default
|
|
561
561
|
removeCloneOnHide: !0,
|
|
562
562
|
direction: function() {
|
|
563
|
-
return
|
|
563
|
+
return Jn(t, this.options);
|
|
564
564
|
},
|
|
565
565
|
ghostClass: "sortable-ghost",
|
|
566
566
|
chosenClass: "sortable-chosen",
|
|
@@ -593,7 +593,7 @@ function x(t, e) {
|
|
|
593
593
|
at.initializePlugins(this, t, n);
|
|
594
594
|
for (var o in n)
|
|
595
595
|
!(o in e) && (e[o] = n[o]);
|
|
596
|
-
|
|
596
|
+
qn(e);
|
|
597
597
|
for (var r in this)
|
|
598
598
|
r.charAt(0) === "_" && typeof this[r] == "function" && (this[r] = this[r].bind(this));
|
|
599
599
|
this.nativeDraggable = e.forceFallback ? !1 : gr, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? F(t, "pointerdown", this._onTapStart) : (F(t, "mousedown", this._onTapStart), F(t, "touchstart", this._onTapStart)), this.nativeDraggable && (F(t, "dragover", this), F(t, "dragenter", this)), Tt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), he(this, dr());
|
|
@@ -602,16 +602,16 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
602
602
|
{
|
|
603
603
|
constructor: x,
|
|
604
604
|
_isOutsideThisEl: function(e) {
|
|
605
|
-
!this.el.contains(e) && e !== this.el && (
|
|
605
|
+
!this.el.contains(e) && e !== this.el && ($e = null);
|
|
606
606
|
},
|
|
607
607
|
_getDirection: function(e, n) {
|
|
608
|
-
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n,
|
|
608
|
+
return typeof this.options.direction == "function" ? this.options.direction.call(this, e, n, m) : this.options.direction;
|
|
609
609
|
},
|
|
610
610
|
_onTapStart: function(e) {
|
|
611
611
|
if (e.cancelable) {
|
|
612
612
|
var n = this, o = this.el, r = this.options, i = r.preventOnFilter, a = e.type, s = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, l = (s || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || l, u = r.filter;
|
|
613
|
-
if (Ir(o), !
|
|
614
|
-
if (
|
|
613
|
+
if (Ir(o), !m && !(/mousedown|pointerdown/.test(a) && e.button !== 0 || r.disabled) && !c.isContentEditable && !(!this.nativeDraggable && Je && l && l.tagName.toUpperCase() === "SELECT") && (l = ue(l, r.draggable, o, !1), !(l && l.animated) && bt !== l)) {
|
|
614
|
+
if (Me = le(l), Qe = le(l, r.draggable), typeof u == "function") {
|
|
615
615
|
if (u.call(this, e, l, this)) {
|
|
616
616
|
K({
|
|
617
617
|
sortable: n,
|
|
@@ -647,27 +647,27 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
647
647
|
},
|
|
648
648
|
_prepareDragStart: function(e, n, o) {
|
|
649
649
|
var r = this, i = r.el, a = r.options, s = i.ownerDocument, l;
|
|
650
|
-
if (o && !
|
|
650
|
+
if (o && !m && o.parentNode === i) {
|
|
651
651
|
var c = z(o);
|
|
652
|
-
if (A = i,
|
|
653
|
-
target:
|
|
652
|
+
if (A = i, m = o, L = m.parentNode, Ne = m.nextSibling, bt = o, ut = a.group, x.dragged = m, Be = {
|
|
653
|
+
target: m,
|
|
654
654
|
clientX: (n || e).clientX,
|
|
655
655
|
clientY: (n || e).clientY
|
|
656
|
-
}, Bn = Be.clientX - c.left, Dn = Be.clientY - c.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY,
|
|
656
|
+
}, Bn = Be.clientX - c.left, Dn = Be.clientY - c.top, this._lastX = (n || e).clientX, this._lastY = (n || e).clientY, m.style["will-change"] = "all", l = function() {
|
|
657
657
|
if (J("delayEnded", r, {
|
|
658
658
|
evt: e
|
|
659
659
|
}), x.eventCanceled) {
|
|
660
660
|
r._onDrop();
|
|
661
661
|
return;
|
|
662
662
|
}
|
|
663
|
-
r._disableDelayedDragEvents(), !xn && r.nativeDraggable && (
|
|
663
|
+
r._disableDelayedDragEvents(), !xn && r.nativeDraggable && (m.draggable = !0), r._triggerDragStart(e, n), K({
|
|
664
664
|
sortable: r,
|
|
665
665
|
name: "choose",
|
|
666
666
|
originalEvent: e
|
|
667
|
-
}), Z(
|
|
667
|
+
}), Z(m, a.chosenClass, !0);
|
|
668
668
|
}, a.ignore.split(",").forEach(function(u) {
|
|
669
|
-
|
|
670
|
-
}), F(s, "dragover", De), F(s, "mousemove", De), F(s, "touchmove", De), F(s, "mouseup", r._onDrop), F(s, "touchend", r._onDrop), F(s, "touchcancel", r._onDrop), xn && this.nativeDraggable && (this.options.touchStartThreshold = 4,
|
|
669
|
+
jn(m, u.trim(), Vt);
|
|
670
|
+
}), F(s, "dragover", De), F(s, "mousemove", De), F(s, "touchmove", De), F(s, "mouseup", r._onDrop), F(s, "touchend", r._onDrop), F(s, "touchcancel", r._onDrop), xn && this.nativeDraggable && (this.options.touchStartThreshold = 4, m.draggable = !0), J("delayStart", this, {
|
|
671
671
|
evt: e
|
|
672
672
|
}), a.delay && (!a.delayOnTouchOnly || n) && (!this.nativeDraggable || !(it || ge))) {
|
|
673
673
|
if (x.eventCanceled) {
|
|
@@ -684,14 +684,14 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
684
684
|
Math.max(Math.abs(n.clientX - this._lastX), Math.abs(n.clientY - this._lastY)) >= Math.floor(this.options.touchStartThreshold / (this.nativeDraggable && window.devicePixelRatio || 1)) && this._disableDelayedDrag();
|
|
685
685
|
},
|
|
686
686
|
_disableDelayedDrag: function() {
|
|
687
|
-
|
|
687
|
+
m && Vt(m), clearTimeout(this._dragStartTimer), this._disableDelayedDragEvents();
|
|
688
688
|
},
|
|
689
689
|
_disableDelayedDragEvents: function() {
|
|
690
690
|
var e = this.el.ownerDocument;
|
|
691
691
|
N(e, "mouseup", this._disableDelayedDrag), N(e, "touchend", this._disableDelayedDrag), N(e, "touchcancel", this._disableDelayedDrag), N(e, "mousemove", this._delayedDragTouchMoveHandler), N(e, "touchmove", this._delayedDragTouchMoveHandler), N(e, "pointermove", this._delayedDragTouchMoveHandler);
|
|
692
692
|
},
|
|
693
693
|
_triggerDragStart: function(e, n) {
|
|
694
|
-
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? F(document, "pointermove", this._onTouchMove) : n ? F(document, "touchmove", this._onTouchMove) : F(document, "mousemove", this._onTouchMove) : (F(
|
|
694
|
+
n = n || e.pointerType == "touch" && e, !this.nativeDraggable || n ? this.options.supportPointer ? F(document, "pointermove", this._onTouchMove) : n ? F(document, "touchmove", this._onTouchMove) : F(document, "mousemove", this._onTouchMove) : (F(m, "dragend", this), F(A, "dragstart", this._onDragStart));
|
|
695
695
|
try {
|
|
696
696
|
document.selection ? yt(function() {
|
|
697
697
|
document.selection.empty();
|
|
@@ -700,12 +700,12 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
700
700
|
}
|
|
701
701
|
},
|
|
702
702
|
_dragStarted: function(e, n) {
|
|
703
|
-
if (
|
|
703
|
+
if (Ae = !1, A && m) {
|
|
704
704
|
J("dragStarted", this, {
|
|
705
705
|
evt: n
|
|
706
706
|
}), this.nativeDraggable && F(document, "dragover", yr);
|
|
707
707
|
var o = this.options;
|
|
708
|
-
!e && Z(
|
|
708
|
+
!e && Z(m, o.dragClass, !1), Z(m, o.ghostClass, !0), x.active = this, e && this._appendGhost(), K({
|
|
709
709
|
sortable: this,
|
|
710
710
|
name: "start",
|
|
711
711
|
originalEvent: n
|
|
@@ -715,10 +715,10 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
715
715
|
},
|
|
716
716
|
_emulateDragOver: function() {
|
|
717
717
|
if (ce) {
|
|
718
|
-
this._lastX = ce.clientX, this._lastY = ce.clientY,
|
|
718
|
+
this._lastX = ce.clientX, this._lastY = ce.clientY, Qn();
|
|
719
719
|
for (var e = document.elementFromPoint(ce.clientX, ce.clientY), n = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ce.clientX, ce.clientY), e !== n); )
|
|
720
720
|
n = e;
|
|
721
|
-
if (
|
|
721
|
+
if (m.parentNode[oe]._isOutsideThisEl(e), n)
|
|
722
722
|
do {
|
|
723
723
|
if (n[oe]) {
|
|
724
724
|
var o = void 0;
|
|
@@ -732,13 +732,13 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
732
732
|
}
|
|
733
733
|
e = n;
|
|
734
734
|
} while (n = n.parentNode);
|
|
735
|
-
|
|
735
|
+
Zn();
|
|
736
736
|
}
|
|
737
737
|
},
|
|
738
738
|
_onTouchMove: function(e) {
|
|
739
739
|
if (Be) {
|
|
740
|
-
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = e.touches ? e.touches[0] : e, a = B &&
|
|
741
|
-
if (!x.active && !
|
|
740
|
+
var n = this.options, o = n.fallbackTolerance, r = n.fallbackOffset, i = e.touches ? e.touches[0] : e, a = B && Le(B, !0), s = B && a && a.a, l = B && a && a.d, c = ft && X && In(X), u = (i.clientX - Be.clientX + r.x) / (s || 1) + (c ? c[0] - Ut[0] : 0) / (s || 1), d = (i.clientY - Be.clientY + r.y) / (l || 1) + (c ? c[1] - Ut[1] : 0) / (l || 1);
|
|
741
|
+
if (!x.active && !Ae) {
|
|
742
742
|
if (o && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < o)
|
|
743
743
|
return;
|
|
744
744
|
this._onDragStart(e, !0);
|
|
@@ -760,13 +760,13 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
760
760
|
},
|
|
761
761
|
_appendGhost: function() {
|
|
762
762
|
if (!B) {
|
|
763
|
-
var e = this.options.fallbackOnBody ? document.body : A, n = z(
|
|
763
|
+
var e = this.options.fallbackOnBody ? document.body : A, n = z(m, !0, ft, !0, e), o = this.options;
|
|
764
764
|
if (ft) {
|
|
765
765
|
for (X = e; T(X, "position") === "static" && T(X, "transform") === "none" && X !== document; )
|
|
766
766
|
X = X.parentNode;
|
|
767
767
|
X !== document.body && X !== document.documentElement ? (X === document && (X = de()), n.top += X.scrollTop, n.left += X.scrollLeft) : X = de(), Ut = In(X);
|
|
768
768
|
}
|
|
769
|
-
B =
|
|
769
|
+
B = m.cloneNode(!0), Z(B, o.ghostClass, !1), Z(B, o.fallbackClass, !0), Z(B, o.dragClass, !0), T(B, "transition", ""), T(B, "transform", ""), T(B, "box-sizing", "border-box"), T(B, "margin", 0), T(B, "top", n.top), T(B, "left", n.left), T(B, "width", n.width), T(B, "height", n.height), T(B, "opacity", "0.8"), T(B, "position", ft ? "absolute" : "fixed"), T(B, "zIndex", "100000"), T(B, "pointerEvents", "none"), x.ghost = B, e.appendChild(B), T(B, "transform-origin", Bn / parseInt(B.style.width) * 100 + "% " + Dn / parseInt(B.style.height) * 100 + "%");
|
|
770
770
|
}
|
|
771
771
|
},
|
|
772
772
|
_onDragStart: function(e, n) {
|
|
@@ -777,22 +777,22 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
777
777
|
this._onDrop();
|
|
778
778
|
return;
|
|
779
779
|
}
|
|
780
|
-
J("setupClone", this), x.eventCanceled || (R =
|
|
781
|
-
J("clone", o), !x.eventCanceled && (o.options.removeCloneOnHide || A.insertBefore(R,
|
|
780
|
+
J("setupClone", this), x.eventCanceled || (R = Xn(m), R.draggable = !1, R.style["will-change"] = "", this._hideClone(), Z(R, this.options.chosenClass, !1), x.clone = R), o.cloneId = yt(function() {
|
|
781
|
+
J("clone", o), !x.eventCanceled && (o.options.removeCloneOnHide || A.insertBefore(R, m), o._hideClone(), K({
|
|
782
782
|
sortable: o,
|
|
783
783
|
name: "clone"
|
|
784
784
|
}));
|
|
785
|
-
}), !n && Z(
|
|
785
|
+
}), !n && Z(m, i.dragClass, !0), n ? (_t = !0, o._loopId = setInterval(o._emulateDragOver, 50)) : (N(document, "mouseup", o._onDrop), N(document, "touchend", o._onDrop), N(document, "touchcancel", o._onDrop), r && (r.effectAllowed = "move", i.setData && i.setData.call(o, r, m)), F(document, "drop", o), T(m, "transform", "translateZ(0)")), Ae = !0, o._dragStartId = yt(o._dragStarted.bind(o, n, e)), F(document, "selectstart", o), Ge = !0, Je && T(document.body, "user-select", "none");
|
|
786
786
|
},
|
|
787
787
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
788
788
|
_onDragOver: function(e) {
|
|
789
|
-
var n = this.el, o = e.target, r, i, a, s = this.options, l = s.group, c = x.active, u = ut === l, d = s.sort, p = W || c,
|
|
789
|
+
var n = this.el, o = e.target, r, i, a, s = this.options, l = s.group, c = x.active, u = ut === l, d = s.sort, p = W || c, h, b = this, g = !1;
|
|
790
790
|
if (tn) return;
|
|
791
|
-
function w(je,
|
|
791
|
+
function w(je, No) {
|
|
792
792
|
J(je, b, fe({
|
|
793
793
|
evt: e,
|
|
794
794
|
isOwner: u,
|
|
795
|
-
axis:
|
|
795
|
+
axis: h ? "vertical" : "horizontal",
|
|
796
796
|
revert: a,
|
|
797
797
|
dragRect: r,
|
|
798
798
|
targetRect: i,
|
|
@@ -800,11 +800,11 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
800
800
|
fromSortable: p,
|
|
801
801
|
target: o,
|
|
802
802
|
completed: v,
|
|
803
|
-
onMove: function(wn,
|
|
804
|
-
return pt(A, n,
|
|
803
|
+
onMove: function(wn, ko) {
|
|
804
|
+
return pt(A, n, m, r, wn, z(wn), e, ko);
|
|
805
805
|
},
|
|
806
806
|
changed: y
|
|
807
|
-
},
|
|
807
|
+
}, No));
|
|
808
808
|
}
|
|
809
809
|
function f() {
|
|
810
810
|
w("dragOverAnimationCapture"), b.captureAnimationState(), b !== p && p.captureAnimationState();
|
|
@@ -812,12 +812,12 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
812
812
|
function v(je) {
|
|
813
813
|
return w("dragOverCompleted", {
|
|
814
814
|
insertion: je
|
|
815
|
-
}), je && (u ? c._hideClone() : c._showClone(b), b !== p && (Z(
|
|
815
|
+
}), je && (u ? c._hideClone() : c._showClone(b), b !== p && (Z(m, W ? W.options.ghostClass : c.options.ghostClass, !1), Z(m, s.ghostClass, !0)), W !== b && b !== x.active ? W = b : b === x.active && W && (W = null), p === b && (b._ignoreWhileAnimating = o), b.animateAll(function() {
|
|
816
816
|
w("dragOverAnimationComplete"), b._ignoreWhileAnimating = null;
|
|
817
|
-
}), b !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (o ===
|
|
817
|
+
}), b !== p && (p.animateAll(), p._ignoreWhileAnimating = null)), (o === m && !m.animated || o === n && !o.animated) && ($e = null), !s.dragoverBubble && !e.rootEl && o !== document && (m.parentNode[oe]._isOutsideThisEl(e.target), !je && De(e)), !s.dragoverBubble && e.stopPropagation && e.stopPropagation(), g = !0;
|
|
818
818
|
}
|
|
819
819
|
function y() {
|
|
820
|
-
ee = le(
|
|
820
|
+
ee = le(m), ye = le(m, s.draggable), K({
|
|
821
821
|
sortable: b,
|
|
822
822
|
name: "change",
|
|
823
823
|
toEl: n,
|
|
@@ -826,46 +826,46 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
826
826
|
originalEvent: e
|
|
827
827
|
});
|
|
828
828
|
}
|
|
829
|
-
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = ue(o, s.draggable, n, !0), w("dragOver"), x.eventCanceled) return
|
|
830
|
-
if (
|
|
829
|
+
if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), o = ue(o, s.draggable, n, !0), w("dragOver"), x.eventCanceled) return g;
|
|
830
|
+
if (m.contains(e.target) || o.animated && o.animatingX && o.animatingY || b._ignoreWhileAnimating === o)
|
|
831
831
|
return v(!1);
|
|
832
|
-
if (_t = !1, c && !s.disabled && (u ? d || (a = L !== A) : W === this || (this.lastPutMode = ut.checkPull(this, c,
|
|
833
|
-
if (
|
|
832
|
+
if (_t = !1, c && !s.disabled && (u ? d || (a = L !== A) : W === this || (this.lastPutMode = ut.checkPull(this, c, m, e)) && l.checkPut(this, c, m, e))) {
|
|
833
|
+
if (h = this._getDirection(e, o) === "vertical", r = z(m), w("dragOverValid"), x.eventCanceled) return g;
|
|
834
834
|
if (a)
|
|
835
|
-
return L = A, f(), this._hideClone(), w("revert"), x.eventCanceled || (Ne ? A.insertBefore(
|
|
835
|
+
return L = A, f(), this._hideClone(), w("revert"), x.eventCanceled || (Ne ? A.insertBefore(m, Ne) : A.appendChild(m)), v(!0);
|
|
836
836
|
var C = fn(n, s.draggable);
|
|
837
|
-
if (!C || Tr(e,
|
|
838
|
-
if (C ===
|
|
837
|
+
if (!C || Tr(e, h, this) && !C.animated) {
|
|
838
|
+
if (C === m)
|
|
839
839
|
return v(!1);
|
|
840
|
-
if (C && n === e.target && (o = C), o && (i = z(o)), pt(A, n,
|
|
841
|
-
return f(), n.appendChild(
|
|
842
|
-
} else if (C && _r(e,
|
|
840
|
+
if (C && n === e.target && (o = C), o && (i = z(o)), pt(A, n, m, r, o, i, e, !!o) !== !1)
|
|
841
|
+
return f(), n.appendChild(m), L = n, y(), v(!0);
|
|
842
|
+
} else if (C && _r(e, h, this)) {
|
|
843
843
|
var E = Oe(n, 0, s, !0);
|
|
844
|
-
if (E ===
|
|
844
|
+
if (E === m)
|
|
845
845
|
return v(!1);
|
|
846
|
-
if (o = E, i = z(o), pt(A, n,
|
|
847
|
-
return f(), n.insertBefore(
|
|
846
|
+
if (o = E, i = z(o), pt(A, n, m, r, o, i, e, !1) !== !1)
|
|
847
|
+
return f(), n.insertBefore(m, E), L = n, y(), v(!0);
|
|
848
848
|
} else if (o.parentNode === n) {
|
|
849
849
|
i = z(o);
|
|
850
|
-
var _ = 0, P, V =
|
|
851
|
-
|
|
850
|
+
var _ = 0, P, V = m.parentNode !== n, I = !br(m.animated && m.toRect || r, o.animated && o.toRect || i, h), j = h ? "top" : "left", G = Sn(o, "top", "top") || Sn(m, "top", "top"), Q = G ? G.scrollTop : void 0;
|
|
851
|
+
$e !== o && (P = i[j], et = !1, dt = !I && s.invertSwap || V), _ = xr(e, o, i, h, I ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, dt, $e === o);
|
|
852
852
|
var H;
|
|
853
853
|
if (_ !== 0) {
|
|
854
|
-
var Ie = le(
|
|
854
|
+
var Ie = le(m);
|
|
855
855
|
do
|
|
856
856
|
Ie -= _, H = L.children[Ie];
|
|
857
857
|
while (H && (T(H, "display") === "none" || H === B));
|
|
858
858
|
}
|
|
859
859
|
if (_ === 0 || H === o)
|
|
860
860
|
return v(!1);
|
|
861
|
-
|
|
861
|
+
$e = o, Ze = _;
|
|
862
862
|
var Ye = o.nextElementSibling, ve = !1;
|
|
863
863
|
ve = _ === 1;
|
|
864
|
-
var ct = pt(A, n,
|
|
864
|
+
var ct = pt(A, n, m, r, o, i, e, ve);
|
|
865
865
|
if (ct !== !1)
|
|
866
|
-
return (ct === 1 || ct === -1) && (ve = ct === 1), tn = !0, setTimeout(Cr, 30), f(), ve && !Ye ? n.appendChild(
|
|
866
|
+
return (ct === 1 || ct === -1) && (ve = ct === 1), tn = !0, setTimeout(Cr, 30), f(), ve && !Ye ? n.appendChild(m) : o.parentNode.insertBefore(m, ve ? Ye : o), G && Wn(G, 0, Q - G.scrollTop), L = m.parentNode, P !== void 0 && !dt && (vt = Math.abs(P - z(o)[j])), y(), v(!0);
|
|
867
867
|
}
|
|
868
|
-
if (n.contains(
|
|
868
|
+
if (n.contains(m))
|
|
869
869
|
return v(!1);
|
|
870
870
|
}
|
|
871
871
|
return !1;
|
|
@@ -880,13 +880,13 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
880
880
|
},
|
|
881
881
|
_onDrop: function(e) {
|
|
882
882
|
var n = this.el, o = this.options;
|
|
883
|
-
if (ee = le(
|
|
883
|
+
if (ee = le(m), ye = le(m, o.draggable), J("drop", this, {
|
|
884
884
|
evt: e
|
|
885
|
-
}), L =
|
|
885
|
+
}), L = m && m.parentNode, ee = le(m), ye = le(m, o.draggable), x.eventCanceled) {
|
|
886
886
|
this._nulling();
|
|
887
887
|
return;
|
|
888
888
|
}
|
|
889
|
-
|
|
889
|
+
Ae = !1, dt = !1, et = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), nn(this.cloneId), nn(this._dragStartId), this.nativeDraggable && (N(document, "drop", this), N(n, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Je && T(document.body, "user-select", ""), T(m, "transform", ""), e && (Ge && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), B && B.parentNode && B.parentNode.removeChild(B), (A === L || W && W.lastPutMode !== "clone") && R && R.parentNode && R.parentNode.removeChild(R), m && (this.nativeDraggable && N(m, "dragend", this), Vt(m), m.style["will-change"] = "", Ge && !Ae && Z(m, W ? W.options.ghostClass : this.options.ghostClass, !1), Z(m, this.options.chosenClass, !1), K({
|
|
890
890
|
sortable: this,
|
|
891
891
|
name: "unchoose",
|
|
892
892
|
toEl: L,
|
|
@@ -915,7 +915,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
915
915
|
name: "sort",
|
|
916
916
|
toEl: L,
|
|
917
917
|
originalEvent: e
|
|
918
|
-
})), W && W.save()) : ee !==
|
|
918
|
+
})), W && W.save()) : ee !== Me && ee >= 0 && (K({
|
|
919
919
|
sortable: this,
|
|
920
920
|
name: "update",
|
|
921
921
|
toEl: L,
|
|
@@ -925,7 +925,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
925
925
|
name: "sort",
|
|
926
926
|
toEl: L,
|
|
927
927
|
originalEvent: e
|
|
928
|
-
})), x.active && ((ee == null || ee === -1) && (ee =
|
|
928
|
+
})), x.active && ((ee == null || ee === -1) && (ee = Me, ye = Qe), K({
|
|
929
929
|
sortable: this,
|
|
930
930
|
name: "end",
|
|
931
931
|
toEl: L,
|
|
@@ -933,7 +933,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
933
933
|
}), this.save()))), this._nulling();
|
|
934
934
|
},
|
|
935
935
|
_nulling: function() {
|
|
936
|
-
J("nulling", this), A =
|
|
936
|
+
J("nulling", this), A = m = L = B = Ne = R = bt = we = Be = ce = Ge = ee = ye = Me = Qe = $e = Ze = W = ut = x.dragged = x.ghost = x.clone = x.active = null, xt.forEach(function(e) {
|
|
937
937
|
e.checked = !0;
|
|
938
938
|
}), xt.length = Rt = Ot = 0;
|
|
939
939
|
},
|
|
@@ -945,7 +945,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
945
945
|
break;
|
|
946
946
|
case "dragenter":
|
|
947
947
|
case "dragover":
|
|
948
|
-
|
|
948
|
+
m && (this._onDragOver(e), wr(e));
|
|
949
949
|
break;
|
|
950
950
|
case "selectstart":
|
|
951
951
|
e.preventDefault();
|
|
@@ -1001,7 +1001,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1001
1001
|
if (n === void 0)
|
|
1002
1002
|
return o[e];
|
|
1003
1003
|
var r = at.modifyOption(this, e, n);
|
|
1004
|
-
typeof r < "u" ? o[e] = r : o[e] = n, e === "group" &&
|
|
1004
|
+
typeof r < "u" ? o[e] = r : o[e] = n, e === "group" && qn(o);
|
|
1005
1005
|
},
|
|
1006
1006
|
/**
|
|
1007
1007
|
* Destroy
|
|
@@ -1026,7 +1026,7 @@ x.prototype = /** @lends Sortable.prototype */
|
|
|
1026
1026
|
}
|
|
1027
1027
|
if (we) {
|
|
1028
1028
|
if (J("showClone", this), x.eventCanceled) return;
|
|
1029
|
-
|
|
1029
|
+
m.parentNode == A && !this.options.group.revertClone ? A.insertBefore(R, m) : Ne ? A.insertBefore(R, Ne) : A.appendChild(R), this.options.group.revertClone && this.animate(m, R), T(R, "display", ""), we = !1;
|
|
1030
1030
|
}
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
@@ -1068,7 +1068,7 @@ function xr(t, e, n, o, r, i, a, s) {
|
|
|
1068
1068
|
return p = p || a, p && (l < u + c * i / 2 || l > d - c * i / 2) ? l > u + c / 2 ? 1 : -1 : 0;
|
|
1069
1069
|
}
|
|
1070
1070
|
function Er(t) {
|
|
1071
|
-
return le(
|
|
1071
|
+
return le(m) < le(t) ? 1 : -1;
|
|
1072
1072
|
}
|
|
1073
1073
|
function Sr(t) {
|
|
1074
1074
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, n = e.length, o = 0; n--; )
|
|
@@ -1089,25 +1089,25 @@ function nn(t) {
|
|
|
1089
1089
|
return clearTimeout(t);
|
|
1090
1090
|
}
|
|
1091
1091
|
Bt && F(document, "touchmove", function(t) {
|
|
1092
|
-
(x.active ||
|
|
1092
|
+
(x.active || Ae) && t.cancelable && t.preventDefault();
|
|
1093
1093
|
});
|
|
1094
1094
|
x.utils = {
|
|
1095
1095
|
on: F,
|
|
1096
1096
|
off: N,
|
|
1097
1097
|
css: T,
|
|
1098
|
-
find:
|
|
1098
|
+
find: jn,
|
|
1099
1099
|
is: function(e, n) {
|
|
1100
1100
|
return !!ue(e, n, e, !1);
|
|
1101
1101
|
},
|
|
1102
1102
|
extend: cr,
|
|
1103
|
-
throttle:
|
|
1103
|
+
throttle: Gn,
|
|
1104
1104
|
closest: ue,
|
|
1105
1105
|
toggleClass: Z,
|
|
1106
|
-
clone:
|
|
1106
|
+
clone: Xn,
|
|
1107
1107
|
index: le,
|
|
1108
1108
|
nextTick: yt,
|
|
1109
1109
|
cancelNextTick: nn,
|
|
1110
|
-
detectDirection:
|
|
1110
|
+
detectDirection: Jn,
|
|
1111
1111
|
getChild: Oe
|
|
1112
1112
|
};
|
|
1113
1113
|
x.get = function(t) {
|
|
@@ -1187,29 +1187,29 @@ function wt() {
|
|
|
1187
1187
|
function kn() {
|
|
1188
1188
|
clearInterval(Xe);
|
|
1189
1189
|
}
|
|
1190
|
-
var Yt =
|
|
1190
|
+
var Yt = Gn(function(t, e, n, o) {
|
|
1191
1191
|
if (e.scroll) {
|
|
1192
1192
|
var r = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, a = e.scrollSensitivity, s = e.scrollSpeed, l = de(), c = !1, u;
|
|
1193
1193
|
on !== n && (on = n, wt(), We = e.scroll, u = e.scrollFn, We === !0 && (We = Ce(n, !0)));
|
|
1194
1194
|
var d = 0, p = We;
|
|
1195
1195
|
do {
|
|
1196
|
-
var
|
|
1197
|
-
|
|
1198
|
-
var Q = E && (Math.abs(v - r) <= a && j + y < P) - (Math.abs(f - r) <= a && !!j), H = _ && (Math.abs(w - i) <= a && G + C < V) - (Math.abs(
|
|
1196
|
+
var h = p, b = z(h), g = b.top, w = b.bottom, f = b.left, v = b.right, y = b.width, C = b.height, E = void 0, _ = void 0, P = h.scrollWidth, V = h.scrollHeight, I = T(h), j = h.scrollLeft, G = h.scrollTop;
|
|
1197
|
+
h === l ? (E = y < P && (I.overflowX === "auto" || I.overflowX === "scroll" || I.overflowX === "visible"), _ = C < V && (I.overflowY === "auto" || I.overflowY === "scroll" || I.overflowY === "visible")) : (E = y < P && (I.overflowX === "auto" || I.overflowX === "scroll"), _ = C < V && (I.overflowY === "auto" || I.overflowY === "scroll"));
|
|
1198
|
+
var Q = E && (Math.abs(v - r) <= a && j + y < P) - (Math.abs(f - r) <= a && !!j), H = _ && (Math.abs(w - i) <= a && G + C < V) - (Math.abs(g - i) <= a && !!G);
|
|
1199
1199
|
if (!U[d])
|
|
1200
1200
|
for (var Ie = 0; Ie <= d; Ie++)
|
|
1201
1201
|
U[Ie] || (U[Ie] = {});
|
|
1202
|
-
(U[d].vx != Q || U[d].vy != H || U[d].el !==
|
|
1202
|
+
(U[d].vx != Q || U[d].vy != H || U[d].el !== h) && (U[d].el = h, U[d].vx = Q, U[d].vy = H, clearInterval(U[d].pid), (Q != 0 || H != 0) && (c = !0, U[d].pid = setInterval((function() {
|
|
1203
1203
|
o && this.layer === 0 && x.active._onTouchMove(Et);
|
|
1204
1204
|
var Ye = U[this.layer].vy ? U[this.layer].vy * s : 0, ve = U[this.layer].vx ? U[this.layer].vx * s : 0;
|
|
1205
|
-
typeof u == "function" && u.call(x.dragged.parentNode[oe], ve, Ye, t, Et, U[this.layer].el) !== "continue" ||
|
|
1205
|
+
typeof u == "function" && u.call(x.dragged.parentNode[oe], ve, Ye, t, Et, U[this.layer].el) !== "continue" || Wn(U[this.layer].el, ve, Ye);
|
|
1206
1206
|
}).bind({
|
|
1207
1207
|
layer: d
|
|
1208
1208
|
}), 24))), d++;
|
|
1209
1209
|
} while (e.bubbleScroll && p !== l && (p = Ce(p, !1)));
|
|
1210
1210
|
rn = c;
|
|
1211
1211
|
}
|
|
1212
|
-
}, 30),
|
|
1212
|
+
}, 30), eo = function(e) {
|
|
1213
1213
|
var n = e.originalEvent, o = e.putSortable, r = e.dragEl, i = e.activeSortable, a = e.dispatchSortableEvent, s = e.hideGhostForTarget, l = e.unhideGhostForTarget;
|
|
1214
1214
|
if (n) {
|
|
1215
1215
|
var c = o || i;
|
|
@@ -1235,7 +1235,7 @@ pn.prototype = {
|
|
|
1235
1235
|
var r = Oe(this.sortable.el, this.startIndex, this.options);
|
|
1236
1236
|
r ? this.sortable.el.insertBefore(n, r) : this.sortable.el.appendChild(n), this.sortable.animateAll(), o && o.animateAll();
|
|
1237
1237
|
},
|
|
1238
|
-
drop:
|
|
1238
|
+
drop: eo
|
|
1239
1239
|
};
|
|
1240
1240
|
he(pn, {
|
|
1241
1241
|
pluginName: "revertOnSpill"
|
|
@@ -1247,7 +1247,7 @@ mn.prototype = {
|
|
|
1247
1247
|
var n = e.dragEl, o = e.putSortable, r = o || this.sortable;
|
|
1248
1248
|
r.captureAnimationState(), n.parentNode && n.parentNode.removeChild(n), r.animateAll();
|
|
1249
1249
|
},
|
|
1250
|
-
drop:
|
|
1250
|
+
drop: eo
|
|
1251
1251
|
};
|
|
1252
1252
|
he(mn, {
|
|
1253
1253
|
pluginName: "removeOnSpill"
|
|
@@ -1271,10 +1271,10 @@ function kr(t) {
|
|
|
1271
1271
|
return e[o] || (e[o] = t(o));
|
|
1272
1272
|
};
|
|
1273
1273
|
}
|
|
1274
|
-
const Fr = /-(\w)/g, Pr = kr((t) => t.replace(Fr, (e, n) => n.toUpperCase())),
|
|
1275
|
-
manage:
|
|
1276
|
-
manageAndEmit:
|
|
1277
|
-
emit:
|
|
1274
|
+
const Fr = /-(\w)/g, Pr = kr((t) => t.replace(Fr, (e, n) => n.toUpperCase())), to = ["Start", "Add", "Remove", "Update", "End"], no = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], oo = ["Move"], $r = [oo, to, no].flatMap((t) => t).map((t) => `on${t}`), an = {
|
|
1275
|
+
manage: oo,
|
|
1276
|
+
manageAndEmit: to,
|
|
1277
|
+
emit: no
|
|
1278
1278
|
};
|
|
1279
1279
|
function Ar(t) {
|
|
1280
1280
|
return $r.indexOf(t) !== -1;
|
|
@@ -1404,22 +1404,22 @@ function Lr(t) {
|
|
|
1404
1404
|
function Rr(t) {
|
|
1405
1405
|
return ["transition-group", "TransitionGroup"].includes(t);
|
|
1406
1406
|
}
|
|
1407
|
-
function
|
|
1407
|
+
function ro(t) {
|
|
1408
1408
|
return ["id", "class", "role", "style"].includes(t) || t.startsWith("data-") || t.startsWith("aria-") || t.startsWith("on");
|
|
1409
1409
|
}
|
|
1410
|
-
function
|
|
1410
|
+
function io(t) {
|
|
1411
1411
|
return t.reduce((e, [n, o]) => (e[n] = o, e), {});
|
|
1412
1412
|
}
|
|
1413
1413
|
function Or({ $attrs: t, componentData: e = {} }) {
|
|
1414
1414
|
return {
|
|
1415
|
-
...
|
|
1416
|
-
Object.entries(t).filter(([o, r]) =>
|
|
1415
|
+
...io(
|
|
1416
|
+
Object.entries(t).filter(([o, r]) => ro(o))
|
|
1417
1417
|
),
|
|
1418
1418
|
...e
|
|
1419
1419
|
};
|
|
1420
1420
|
}
|
|
1421
1421
|
function Ur({ $attrs: t, callBackBuilder: e }) {
|
|
1422
|
-
const n =
|
|
1422
|
+
const n = io(ao(t));
|
|
1423
1423
|
Object.entries(e).forEach(([r, i]) => {
|
|
1424
1424
|
an[r].forEach((a) => {
|
|
1425
1425
|
n[`on${a}`] = i(a);
|
|
@@ -1431,8 +1431,8 @@ function Ur({ $attrs: t, callBackBuilder: e }) {
|
|
|
1431
1431
|
draggable: o
|
|
1432
1432
|
};
|
|
1433
1433
|
}
|
|
1434
|
-
function
|
|
1435
|
-
return Object.entries(t).filter(([e, n]) => !
|
|
1434
|
+
function ao(t) {
|
|
1435
|
+
return Object.entries(t).filter(([e, n]) => !ro(e)).map(([e, n]) => [Pr(e), n]).filter(([e, n]) => !Ar(e));
|
|
1436
1436
|
}
|
|
1437
1437
|
const Pn = ({ el: t }) => t, Vr = (t, e) => t.__draggable_context = e, $n = (t) => t.__draggable_context;
|
|
1438
1438
|
class Hr {
|
|
@@ -1503,26 +1503,26 @@ function jr(t) {
|
|
|
1503
1503
|
return {
|
|
1504
1504
|
transition: e,
|
|
1505
1505
|
externalComponent: n,
|
|
1506
|
-
tag: n ? Y(t) : e ?
|
|
1506
|
+
tag: n ? Y(t) : e ? Fo : t
|
|
1507
1507
|
};
|
|
1508
1508
|
}
|
|
1509
1509
|
function Gr({ $slots: t, tag: e, realList: n, getKey: o }) {
|
|
1510
1510
|
const r = Yr({ $slots: t, realList: n, getKey: o }), i = jr(e);
|
|
1511
1511
|
return new Hr({ nodes: r, root: i, realList: n });
|
|
1512
1512
|
}
|
|
1513
|
-
function
|
|
1513
|
+
function lo(t, e) {
|
|
1514
1514
|
On(() => this.$emit(t.toLowerCase(), e));
|
|
1515
1515
|
}
|
|
1516
|
-
function
|
|
1516
|
+
function so(t) {
|
|
1517
1517
|
return (e, n) => {
|
|
1518
1518
|
if (this.realList !== null)
|
|
1519
1519
|
return this[`onDrag${t}`](e, n);
|
|
1520
1520
|
};
|
|
1521
1521
|
}
|
|
1522
1522
|
function Wr(t) {
|
|
1523
|
-
const e =
|
|
1523
|
+
const e = so.call(this, t);
|
|
1524
1524
|
return (n, o) => {
|
|
1525
|
-
e.call(this, n, o),
|
|
1525
|
+
e.call(this, n, o), lo.call(this, t, n);
|
|
1526
1526
|
};
|
|
1527
1527
|
}
|
|
1528
1528
|
let Gt = null;
|
|
@@ -1562,7 +1562,7 @@ const Xr = {
|
|
|
1562
1562
|
"update:modelValue",
|
|
1563
1563
|
"change",
|
|
1564
1564
|
...[...an.manageAndEmit, ...an.emit].map((t) => t.toLowerCase())
|
|
1565
|
-
],
|
|
1565
|
+
], co = ie({
|
|
1566
1566
|
name: "draggable",
|
|
1567
1567
|
inheritAttrs: !1,
|
|
1568
1568
|
props: Xr,
|
|
@@ -1602,8 +1602,8 @@ const Xr = {
|
|
|
1602
1602
|
$attrs: t,
|
|
1603
1603
|
callBackBuilder: {
|
|
1604
1604
|
manageAndEmit: (i) => Wr.call(this, i),
|
|
1605
|
-
emit: (i) =>
|
|
1606
|
-
manage: (i) =>
|
|
1605
|
+
emit: (i) => lo.bind(this, i),
|
|
1606
|
+
manage: (i) => so.call(this, i)
|
|
1607
1607
|
}
|
|
1608
1608
|
}), r = e.nodeType === 1 ? e : e.parentElement;
|
|
1609
1609
|
this._sortable = new x(r, o), this.targetDomElement = r, r.__draggable_component__ = this;
|
|
@@ -1628,7 +1628,7 @@ const Xr = {
|
|
|
1628
1628
|
$attrs: {
|
|
1629
1629
|
handler(t) {
|
|
1630
1630
|
const { _sortable: e } = this;
|
|
1631
|
-
e &&
|
|
1631
|
+
e && ao(t).forEach(([n, o]) => {
|
|
1632
1632
|
e.option(n, o);
|
|
1633
1633
|
});
|
|
1634
1634
|
},
|
|
@@ -1930,7 +1930,7 @@ const Xr = {
|
|
|
1930
1930
|
autoRotation: !0,
|
|
1931
1931
|
rotationInterval: "3s",
|
|
1932
1932
|
objectFit: "cover"
|
|
1933
|
-
},
|
|
1933
|
+
}, uo = {
|
|
1934
1934
|
memberImage: "",
|
|
1935
1935
|
memberName: "Member",
|
|
1936
1936
|
memberTierName: "Tier 1",
|
|
@@ -1950,7 +1950,7 @@ const Xr = {
|
|
|
1950
1950
|
borderRadius: "12px",
|
|
1951
1951
|
boxShadow: "0px 4px 8px 0px rgba(199, 199, 204, 0.24), 0px 4px 8px 0px color(display-p3 0.7804 0.7804 0.8 / 0.24)"
|
|
1952
1952
|
}),
|
|
1953
|
-
data:
|
|
1953
|
+
data: uo,
|
|
1954
1954
|
showCredit: !0,
|
|
1955
1955
|
showPoints: !0,
|
|
1956
1956
|
showTier: !0,
|
|
@@ -1997,7 +1997,7 @@ const Xr = {
|
|
|
1997
1997
|
iconColor: "#FF7823",
|
|
1998
1998
|
labelColor: "#1C1C1E",
|
|
1999
1999
|
sublabelColor: "#6B6B6B"
|
|
2000
|
-
},
|
|
2000
|
+
}, fo = [
|
|
2001
2001
|
{
|
|
2002
2002
|
thumbnailPhoto: "",
|
|
2003
2003
|
restaurantName: "Coffee Restaurant",
|
|
@@ -2027,7 +2027,7 @@ const Xr = {
|
|
|
2027
2027
|
borderRadius: "12px",
|
|
2028
2028
|
boxShadow: "0px 4px 8px 0px rgba(199, 199, 204, 0.24), 0px 4px 8px 0px color(display-p3 0.7804 0.7804 0.8 / 0.24)"
|
|
2029
2029
|
}),
|
|
2030
|
-
data:
|
|
2030
|
+
data: fo,
|
|
2031
2031
|
signedIn: !0
|
|
2032
2032
|
}, ai = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2033
2033
|
__proto__: null,
|
|
@@ -2043,10 +2043,10 @@ const Xr = {
|
|
|
2043
2043
|
TextDisplay: Qr
|
|
2044
2044
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2045
2045
|
function li(t) {
|
|
2046
|
-
const e = (n) => Array.isArray(n) ? n.map((o) => e(o)) :
|
|
2046
|
+
const e = (n) => Array.isArray(n) ? n.map((o) => e(o)) : Po(n) || $o(n) || Ao(n) ? e(Mo(n)) : n && typeof n == "object" ? Object.keys(n).reduce((o, r) => (o[r] = e(n[r]), o), {}) : n;
|
|
2047
2047
|
return e(t);
|
|
2048
2048
|
}
|
|
2049
|
-
const Ee =
|
|
2049
|
+
const Ee = Go("editor", () => {
|
|
2050
2050
|
const t = q({
|
|
2051
2051
|
node: [],
|
|
2052
2052
|
selectedNode: null,
|
|
@@ -2060,7 +2060,7 @@ const Ee = jo("editor", () => {
|
|
|
2060
2060
|
t.value.firstFetchedData = JSON.stringify(c), t.value.node = [c];
|
|
2061
2061
|
}
|
|
2062
2062
|
async function o(c, u) {
|
|
2063
|
-
const d = await
|
|
2063
|
+
const d = await jo.getTemplateById(
|
|
2064
2064
|
c,
|
|
2065
2065
|
"drafts",
|
|
2066
2066
|
u
|
|
@@ -2149,8 +2149,8 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2149
2149
|
}
|
|
2150
2150
|
return (o, r) => (D(), O("div", si, [
|
|
2151
2151
|
(D(!0), O(Te, null, ot($(An), (i, a) => (D(), O("section", ci, [
|
|
2152
|
-
k("div", ui,
|
|
2153
|
-
S($(
|
|
2152
|
+
k("div", ui, Fe(i.title), 1),
|
|
2153
|
+
S($(co), {
|
|
2154
2154
|
list: i.children,
|
|
2155
2155
|
group: { name: "components", pull: "clone", put: !1 },
|
|
2156
2156
|
sort: !1,
|
|
@@ -2164,7 +2164,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2164
2164
|
class: "text-[24px] text-fm-color-typo-secondary",
|
|
2165
2165
|
name: s.icon
|
|
2166
2166
|
}, null, 8, ["name"]),
|
|
2167
|
-
k("div", fi,
|
|
2167
|
+
k("div", fi, Fe(s.title), 1)
|
|
2168
2168
|
])
|
|
2169
2169
|
]),
|
|
2170
2170
|
_: 2
|
|
@@ -2179,7 +2179,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2179
2179
|
}), mi = { class: "absolute z-10 flex items-center gap-8 bottom-24 left-1/2 transform -translate-x-1/2 bg-fm-color-neutral-white border border-fm-color-neutral-gray-100 rounded-lg p-8 shadow-light-600" }, hi = /* @__PURE__ */ ie({
|
|
2180
2180
|
__name: "EditorFloatingToobar",
|
|
2181
2181
|
setup(t) {
|
|
2182
|
-
const e = Ee(), { state: n } =
|
|
2182
|
+
const e = Ee(), { state: n } = Wo(e), o = Dt(), r = re(
|
|
2183
2183
|
() => n.value.selectedNode && n.value.node.length > 0
|
|
2184
2184
|
), i = [
|
|
2185
2185
|
// {
|
|
@@ -2236,7 +2236,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2236
2236
|
}), gi = { class: "w-[300px]" }, bi = { class: "py-8 px-12 w-full flex items-center justify-between gap-8" }, vi = { class: "flex items-center gap-8" }, yi = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, wi = { class: "flex items-center gap-8" }, Ci = { class: "overflow-y-auto max-h-[226px]" }, _i = { class: "flex items-center gap-8" }, Ti = /* @__PURE__ */ ie({
|
|
2237
2237
|
__name: "TemplatePicker",
|
|
2238
2238
|
setup(t) {
|
|
2239
|
-
const e = q(!1), n = q(""), o = q(""), r =
|
|
2239
|
+
const e = q(!1), n = q(""), o = q(""), r = Re(), i = rt(), a = Ee(), s = Dt(), l = Qo(), c = re(
|
|
2240
2240
|
() => i.state.allTemplates.filter(
|
|
2241
2241
|
(w) => {
|
|
2242
2242
|
var f;
|
|
@@ -2316,7 +2316,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2316
2316
|
function p(w) {
|
|
2317
2317
|
o.value = w;
|
|
2318
2318
|
}
|
|
2319
|
-
function
|
|
2319
|
+
function h() {
|
|
2320
2320
|
o.value = "";
|
|
2321
2321
|
}
|
|
2322
2322
|
function b(w) {
|
|
@@ -2332,7 +2332,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2332
2332
|
isLoading: v
|
|
2333
2333
|
},
|
|
2334
2334
|
secondaryActions: { text: "Cancel", close: !0 },
|
|
2335
|
-
contentComponent: Qt(
|
|
2335
|
+
contentComponent: Qt(Zo.FmTextField, {
|
|
2336
2336
|
modelValue: f,
|
|
2337
2337
|
"onUpdate:modelValue": (C) => f.value = C
|
|
2338
2338
|
})
|
|
@@ -2344,7 +2344,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2344
2344
|
), v.value = !1, se.success("Your template has been renamed"), l.close();
|
|
2345
2345
|
});
|
|
2346
2346
|
}
|
|
2347
|
-
function
|
|
2347
|
+
function g(w) {
|
|
2348
2348
|
const f = q(!1);
|
|
2349
2349
|
l.open({
|
|
2350
2350
|
title: "Delete template",
|
|
@@ -2426,7 +2426,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2426
2426
|
]),
|
|
2427
2427
|
_: 1
|
|
2428
2428
|
})) : ne("", !0),
|
|
2429
|
-
k("span", yi,
|
|
2429
|
+
k("span", yi, Fe($(i).state.selectedTemplate.templateAlias), 1)
|
|
2430
2430
|
]),
|
|
2431
2431
|
k("div", wi, [
|
|
2432
2432
|
S(ke, {
|
|
@@ -2437,7 +2437,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2437
2437
|
S(ke, {
|
|
2438
2438
|
name: "delete",
|
|
2439
2439
|
class: "text-fm-color-system-error-300 cursor-pointer",
|
|
2440
|
-
onClick: f[1] || (f[1] = (I) =>
|
|
2440
|
+
onClick: f[1] || (f[1] = (I) => g($(i).state.selectedTemplate))
|
|
2441
2441
|
})
|
|
2442
2442
|
])
|
|
2443
2443
|
]),
|
|
@@ -2458,7 +2458,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2458
2458
|
"model-value": I.templateId === ((G = $(i).state.selectedTemplate) == null ? void 0 : G.templateId),
|
|
2459
2459
|
onClick: (Q) => d(I),
|
|
2460
2460
|
onMouseover: (Q) => p(I.templateId),
|
|
2461
|
-
onMouseout:
|
|
2461
|
+
onMouseout: h,
|
|
2462
2462
|
class: "[&>div]:h-40"
|
|
2463
2463
|
}, {
|
|
2464
2464
|
prepend: M(() => [
|
|
@@ -2502,7 +2502,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2502
2502
|
$t(S(ke, {
|
|
2503
2503
|
name: "delete",
|
|
2504
2504
|
class: "text-fm-color-system-error-300",
|
|
2505
|
-
onClick: Zt((Q) =>
|
|
2505
|
+
onClick: Zt((Q) => g(I), ["stop"])
|
|
2506
2506
|
}, null, 8, ["onClick"]), [
|
|
2507
2507
|
[
|
|
2508
2508
|
At,
|
|
@@ -2550,7 +2550,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2550
2550
|
}), xi = { class: "w-[280px]" }, Ei = /* @__PURE__ */ ie({
|
|
2551
2551
|
__name: "TemplateShareMenu",
|
|
2552
2552
|
setup(t) {
|
|
2553
|
-
const e = q(!1), n = Ee(), o =
|
|
2553
|
+
const e = q(!1), n = Ee(), o = Hn(), r = rt(), i = Re(), { namespace: a } = Re(), s = [
|
|
2554
2554
|
"6620bdb2823d92001b3a966f",
|
|
2555
2555
|
"5dc8df2eb3de6a0021295d8f",
|
|
2556
2556
|
"5d9b00862cb0c4002146e69a",
|
|
@@ -2582,11 +2582,8 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2582
2582
|
"677e8a019e937f001c0e79fe",
|
|
2583
2583
|
"678f134f13a27b001c72b1e7",
|
|
2584
2584
|
"5f76a6ffcd6730001b320816"
|
|
2585
|
-
], l = re(() => {
|
|
2586
|
-
var
|
|
2587
|
-
return i.value === "prod" && !s.includes(((m = a.value) == null ? void 0 : m._id) ?? "");
|
|
2588
|
-
}), c = re(() => {
|
|
2589
|
-
var m, w, f, v, y, C, E, _;
|
|
2585
|
+
], l = re(() => a.value === "dev" || o.state.isPremium || s.includes(i.currentBusiness.value._id)), c = re(() => {
|
|
2586
|
+
var g, w, f, v, y, C, E, _;
|
|
2590
2587
|
return [
|
|
2591
2588
|
{
|
|
2592
2589
|
label: "Save and publish",
|
|
@@ -2594,33 +2591,33 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2594
2591
|
action: async () => {
|
|
2595
2592
|
await u(), await d();
|
|
2596
2593
|
},
|
|
2597
|
-
disabled: l.value
|
|
2594
|
+
disabled: !l.value
|
|
2598
2595
|
},
|
|
2599
2596
|
{
|
|
2600
2597
|
label: "Publish as main homepage",
|
|
2601
|
-
sublabel: (
|
|
2602
|
-
sublabelClass: (f =
|
|
2598
|
+
sublabel: (g = r.state.selectedTemplate) != null && g.isPublished ? r.state.activeTemplateId === ((w = r.state.selectedTemplate) == null ? void 0 : w.templateId) ? "This template has been set as homepage" : "This action will set current template as your landing page" : "Template is not published yet",
|
|
2599
|
+
sublabelClass: (f = r.state.selectedTemplate) != null && f.isPublished ? r.state.activeTemplateId === ((v = r.state.selectedTemplate) == null ? void 0 : v.templateId) ? "text-fm-color-typo-warning" : "" : "text-fm-color-typo-warning",
|
|
2603
2600
|
icon: "home",
|
|
2604
2601
|
action: () => {
|
|
2605
2602
|
p();
|
|
2606
2603
|
},
|
|
2607
|
-
disabled: l.value ||
|
|
2604
|
+
disabled: !l.value || r.state.activeTemplateId === ((y = r.state.selectedTemplate) == null ? void 0 : y.templateId) || !((C = r.state.selectedTemplate) != null && C.isPublished)
|
|
2608
2605
|
},
|
|
2609
2606
|
{
|
|
2610
2607
|
label: "Copy public link view",
|
|
2611
|
-
sublabel: (E =
|
|
2608
|
+
sublabel: (E = r.state.selectedTemplate) != null && E.isPublished ? "" : "Template is not published yet",
|
|
2612
2609
|
sublabelClass: "text-fm-color-typo-warning",
|
|
2613
2610
|
icon: "link",
|
|
2614
2611
|
action: () => {
|
|
2615
|
-
|
|
2612
|
+
h();
|
|
2616
2613
|
},
|
|
2617
|
-
disabled: !((_ =
|
|
2614
|
+
disabled: !((_ = r.state.selectedTemplate) != null && _.isPublished)
|
|
2618
2615
|
}
|
|
2619
2616
|
];
|
|
2620
2617
|
});
|
|
2621
2618
|
async function u() {
|
|
2622
2619
|
se.promise(
|
|
2623
|
-
|
|
2620
|
+
r.saveTemplate(i.currentBusiness.value._id, n.state.node),
|
|
2624
2621
|
{
|
|
2625
2622
|
loading: "Saving...",
|
|
2626
2623
|
success: () => "Template saved",
|
|
@@ -2630,8 +2627,8 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2630
2627
|
}
|
|
2631
2628
|
async function d() {
|
|
2632
2629
|
se.promise(
|
|
2633
|
-
|
|
2634
|
-
|
|
2630
|
+
r.publishTemplate(
|
|
2631
|
+
i.currentBusiness.value._id,
|
|
2635
2632
|
n.state.node
|
|
2636
2633
|
),
|
|
2637
2634
|
{
|
|
@@ -2642,21 +2639,21 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2642
2639
|
);
|
|
2643
2640
|
}
|
|
2644
2641
|
async function p() {
|
|
2645
|
-
se.promise(
|
|
2642
|
+
se.promise(r.setMainPageTemplate(i.currentBusiness.value._id), {
|
|
2646
2643
|
loading: "Setting your main homepage...",
|
|
2647
2644
|
success: () => "Template set as main homepage",
|
|
2648
2645
|
error: () => "Error setting main homepage, please try again"
|
|
2649
2646
|
});
|
|
2650
2647
|
}
|
|
2651
|
-
async function
|
|
2648
|
+
async function h() {
|
|
2652
2649
|
var w;
|
|
2653
|
-
const
|
|
2650
|
+
const g = `${"https://{slug}.feedme.vip".replace("{slug}", `${i.currentBusiness.value.url ?? ((w = i.currentBusiness.value) == null ? void 0 : w.id)}`)}`;
|
|
2654
2651
|
se.promise(
|
|
2655
2652
|
async () => {
|
|
2656
2653
|
var v;
|
|
2657
|
-
const f = `${
|
|
2654
|
+
const f = `${g}/${r.state.selectedTemplate.templateId}`;
|
|
2658
2655
|
navigator.clipboard.writeText(
|
|
2659
|
-
|
|
2656
|
+
r.state.activeTemplateId === ((v = r.state.selectedTemplate) == null ? void 0 : v.templateId) ? g : f
|
|
2660
2657
|
);
|
|
2661
2658
|
},
|
|
2662
2659
|
{
|
|
@@ -2667,17 +2664,17 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2667
2664
|
);
|
|
2668
2665
|
}
|
|
2669
2666
|
async function b() {
|
|
2670
|
-
var
|
|
2671
|
-
(
|
|
2672
|
-
loading: `Unpublishing ${(w =
|
|
2667
|
+
var g, w;
|
|
2668
|
+
(g = r.state.selectedTemplate) != null && g.isPublished && se.promise(r.unpublishTemplate(i.currentBusiness.value._id), {
|
|
2669
|
+
loading: `Unpublishing ${(w = r.state.selectedTemplate) == null ? void 0 : w.templateAlias}`,
|
|
2673
2670
|
success: () => {
|
|
2674
2671
|
var f;
|
|
2675
|
-
return `${(f =
|
|
2672
|
+
return `${(f = r.state.selectedTemplate) == null ? void 0 : f.templateAlias} unpublished`;
|
|
2676
2673
|
},
|
|
2677
2674
|
error: () => "Error unpublishing template, please try again"
|
|
2678
2675
|
});
|
|
2679
2676
|
}
|
|
2680
|
-
return (
|
|
2677
|
+
return (g, w) => {
|
|
2681
2678
|
const f = Y("FmButton"), v = Y("FmMenuDivider"), y = Y("FmMenuItem"), C = Y("FmMenu");
|
|
2682
2679
|
return D(), te(C, {
|
|
2683
2680
|
placement: "bottom-end",
|
|
@@ -2714,7 +2711,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2714
2711
|
"fm-typo-en-body-md-400 max-w-[240px]",
|
|
2715
2712
|
_.disabled ? "text-fm-color-typo-disabled" : "text-fm-color-typo-primary"
|
|
2716
2713
|
])
|
|
2717
|
-
},
|
|
2714
|
+
}, Fe(_.label), 3),
|
|
2718
2715
|
_.sublabel ? (D(), O("div", {
|
|
2719
2716
|
key: 0,
|
|
2720
2717
|
class: Ke([
|
|
@@ -2725,7 +2722,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2725
2722
|
},
|
|
2726
2723
|
_.sublabelClass
|
|
2727
2724
|
])
|
|
2728
|
-
},
|
|
2725
|
+
}, Fe(_.sublabel), 3)) : ne("", !0)
|
|
2729
2726
|
])
|
|
2730
2727
|
]),
|
|
2731
2728
|
_: 2
|
|
@@ -2736,7 +2733,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2736
2733
|
class: "!mx-4"
|
|
2737
2734
|
}),
|
|
2738
2735
|
S(y, {
|
|
2739
|
-
disabled: !((E = $(
|
|
2736
|
+
disabled: !((E = $(r).state.selectedTemplate) != null && E.isPublished),
|
|
2740
2737
|
onClick: b
|
|
2741
2738
|
}, {
|
|
2742
2739
|
label: M(() => {
|
|
@@ -2745,7 +2742,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2745
2742
|
k("div", {
|
|
2746
2743
|
class: Ke([
|
|
2747
2744
|
"fm-typo-en-body-md-400 max-w-[240px]",
|
|
2748
|
-
(_ = $(
|
|
2745
|
+
(_ = $(r).state.selectedTemplate) != null && _.isPublished ? "text-fm-color-typo-error" : "text-fm-color-typo-disabled"
|
|
2749
2746
|
])
|
|
2750
2747
|
}, " Unpublish ", 2)
|
|
2751
2748
|
];
|
|
@@ -2762,7 +2759,7 @@ const si = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
2762
2759
|
});
|
|
2763
2760
|
var lt = {}, Si = function() {
|
|
2764
2761
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
2765
|
-
},
|
|
2762
|
+
}, po = {}, ae = {};
|
|
2766
2763
|
let hn;
|
|
2767
2764
|
const Ii = [
|
|
2768
2765
|
0,
|
|
@@ -2868,10 +2865,10 @@ var Nt = {};
|
|
|
2868
2865
|
}
|
|
2869
2866
|
};
|
|
2870
2867
|
})(Nt);
|
|
2871
|
-
function
|
|
2868
|
+
function mo() {
|
|
2872
2869
|
this.buffer = [], this.length = 0;
|
|
2873
2870
|
}
|
|
2874
|
-
|
|
2871
|
+
mo.prototype = {
|
|
2875
2872
|
get: function(t) {
|
|
2876
2873
|
const e = Math.floor(t / 8);
|
|
2877
2874
|
return (this.buffer[e] >>> 7 - t % 8 & 1) === 1;
|
|
@@ -2888,7 +2885,7 @@ po.prototype = {
|
|
|
2888
2885
|
this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
|
|
2889
2886
|
}
|
|
2890
2887
|
};
|
|
2891
|
-
var Bi =
|
|
2888
|
+
var Bi = mo;
|
|
2892
2889
|
function st(t) {
|
|
2893
2890
|
if (!t || t < 1)
|
|
2894
2891
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -2907,7 +2904,7 @@ st.prototype.xor = function(t, e, n) {
|
|
|
2907
2904
|
st.prototype.isReserved = function(t, e) {
|
|
2908
2905
|
return this.reservedBit[t * this.size + e];
|
|
2909
2906
|
};
|
|
2910
|
-
var Di = st,
|
|
2907
|
+
var Di = st, ho = {};
|
|
2911
2908
|
(function(t) {
|
|
2912
2909
|
const e = ae.getSymbolSize;
|
|
2913
2910
|
t.getRowColCoords = function(o) {
|
|
@@ -2925,10 +2922,10 @@ var Di = st, mo = {};
|
|
|
2925
2922
|
s === a - 1 && l === 0 || r.push([i[s], i[l]]);
|
|
2926
2923
|
return r;
|
|
2927
2924
|
};
|
|
2928
|
-
})(
|
|
2929
|
-
var
|
|
2925
|
+
})(ho);
|
|
2926
|
+
var go = {};
|
|
2930
2927
|
const Ni = ae.getSymbolSize, Mn = 7;
|
|
2931
|
-
|
|
2928
|
+
go.getPositions = function(e) {
|
|
2932
2929
|
const n = Ni(e);
|
|
2933
2930
|
return [
|
|
2934
2931
|
// top-left
|
|
@@ -2939,7 +2936,7 @@ ho.getPositions = function(e) {
|
|
|
2939
2936
|
[0, n - Mn]
|
|
2940
2937
|
];
|
|
2941
2938
|
};
|
|
2942
|
-
var
|
|
2939
|
+
var bo = {};
|
|
2943
2940
|
(function(t) {
|
|
2944
2941
|
t.Patterns = {
|
|
2945
2942
|
PATTERN000: 0,
|
|
@@ -2967,8 +2964,8 @@ var go = {};
|
|
|
2967
2964
|
for (let d = 0; d < i; d++) {
|
|
2968
2965
|
s = l = 0, c = u = null;
|
|
2969
2966
|
for (let p = 0; p < i; p++) {
|
|
2970
|
-
let
|
|
2971
|
-
|
|
2967
|
+
let h = r.get(d, p);
|
|
2968
|
+
h === c ? s++ : (s >= 5 && (a += e.N1 + (s - 5)), c = h, s = 1), h = r.get(p, d), h === u ? l++ : (l >= 5 && (a += e.N1 + (l - 5)), u = h, l = 1);
|
|
2972
2969
|
}
|
|
2973
2970
|
s >= 5 && (a += e.N1 + (s - 5)), l >= 5 && (a += e.N1 + (l - 5));
|
|
2974
2971
|
}
|
|
@@ -3034,7 +3031,7 @@ var go = {};
|
|
|
3034
3031
|
}
|
|
3035
3032
|
return s;
|
|
3036
3033
|
};
|
|
3037
|
-
})(
|
|
3034
|
+
})(bo);
|
|
3038
3035
|
var kt = {};
|
|
3039
3036
|
const _e = Nt, mt = [
|
|
3040
3037
|
// L M Q H
|
|
@@ -3389,7 +3386,7 @@ kt.getTotalCodewordsCount = function(e, n) {
|
|
|
3389
3386
|
return;
|
|
3390
3387
|
}
|
|
3391
3388
|
};
|
|
3392
|
-
var
|
|
3389
|
+
var vo = {}, Ft = {};
|
|
3393
3390
|
const tt = new Uint8Array(512), St = new Uint8Array(256);
|
|
3394
3391
|
(function() {
|
|
3395
3392
|
let e = 1;
|
|
@@ -3433,32 +3430,32 @@ Ft.mul = function(e, n) {
|
|
|
3433
3430
|
r = t.mul(r, new Uint8Array([1, e.exp(i)]));
|
|
3434
3431
|
return r;
|
|
3435
3432
|
};
|
|
3436
|
-
})(
|
|
3437
|
-
const
|
|
3433
|
+
})(vo);
|
|
3434
|
+
const yo = vo;
|
|
3438
3435
|
function gn(t) {
|
|
3439
3436
|
this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
|
|
3440
3437
|
}
|
|
3441
3438
|
gn.prototype.initialize = function(e) {
|
|
3442
|
-
this.degree = e, this.genPoly =
|
|
3439
|
+
this.degree = e, this.genPoly = yo.generateECPolynomial(this.degree);
|
|
3443
3440
|
};
|
|
3444
3441
|
gn.prototype.encode = function(e) {
|
|
3445
3442
|
if (!this.genPoly)
|
|
3446
3443
|
throw new Error("Encoder not initialized");
|
|
3447
3444
|
const n = new Uint8Array(e.length + this.degree);
|
|
3448
3445
|
n.set(e);
|
|
3449
|
-
const o =
|
|
3446
|
+
const o = yo.mod(n, this.genPoly), r = this.degree - o.length;
|
|
3450
3447
|
if (r > 0) {
|
|
3451
3448
|
const i = new Uint8Array(this.degree);
|
|
3452
3449
|
return i.set(o, r), i;
|
|
3453
3450
|
}
|
|
3454
3451
|
return o;
|
|
3455
3452
|
};
|
|
3456
|
-
var ki = gn,
|
|
3453
|
+
var ki = gn, wo = {}, Se = {}, bn = {};
|
|
3457
3454
|
bn.isValid = function(e) {
|
|
3458
3455
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
3459
3456
|
};
|
|
3460
3457
|
var pe = {};
|
|
3461
|
-
const
|
|
3458
|
+
const Co = "[0-9]+", Fi = "[A-Z $%*+\\-./:]+";
|
|
3462
3459
|
let nt = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
3463
3460
|
nt = nt.replace(/u/g, "\\u");
|
|
3464
3461
|
const Pi = "(?:(?![A-Z0-9 $%*+\\-./:]|" + nt + `)(?:.|[\r
|
|
@@ -3466,9 +3463,9 @@ const Pi = "(?:(?![A-Z0-9 $%*+\\-./:]|" + nt + `)(?:.|[\r
|
|
|
3466
3463
|
pe.KANJI = new RegExp(nt, "g");
|
|
3467
3464
|
pe.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
3468
3465
|
pe.BYTE = new RegExp(Pi, "g");
|
|
3469
|
-
pe.NUMERIC = new RegExp(
|
|
3466
|
+
pe.NUMERIC = new RegExp(Co, "g");
|
|
3470
3467
|
pe.ALPHANUMERIC = new RegExp(Fi, "g");
|
|
3471
|
-
const $i = new RegExp("^" + nt + "$"), Ai = new RegExp("^" +
|
|
3468
|
+
const $i = new RegExp("^" + nt + "$"), Ai = new RegExp("^" + Co + "$"), Mi = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
3472
3469
|
pe.testKanji = function(e) {
|
|
3473
3470
|
return $i.test(e);
|
|
3474
3471
|
};
|
|
@@ -3539,36 +3536,36 @@ pe.testAlphanumeric = function(e) {
|
|
|
3539
3536
|
})(Se);
|
|
3540
3537
|
(function(t) {
|
|
3541
3538
|
const e = ae, n = kt, o = Nt, r = Se, i = bn, a = 7973, s = e.getBCHDigit(a);
|
|
3542
|
-
function l(p,
|
|
3543
|
-
for (let
|
|
3544
|
-
if (
|
|
3545
|
-
return
|
|
3539
|
+
function l(p, h, b) {
|
|
3540
|
+
for (let g = 1; g <= 40; g++)
|
|
3541
|
+
if (h <= t.getCapacity(g, b, p))
|
|
3542
|
+
return g;
|
|
3546
3543
|
}
|
|
3547
|
-
function c(p,
|
|
3548
|
-
return r.getCharCountIndicator(p,
|
|
3544
|
+
function c(p, h) {
|
|
3545
|
+
return r.getCharCountIndicator(p, h) + 4;
|
|
3549
3546
|
}
|
|
3550
|
-
function u(p,
|
|
3547
|
+
function u(p, h) {
|
|
3551
3548
|
let b = 0;
|
|
3552
|
-
return p.forEach(function(
|
|
3553
|
-
const w = c(
|
|
3554
|
-
b += w +
|
|
3549
|
+
return p.forEach(function(g) {
|
|
3550
|
+
const w = c(g.mode, h);
|
|
3551
|
+
b += w + g.getBitsLength();
|
|
3555
3552
|
}), b;
|
|
3556
3553
|
}
|
|
3557
|
-
function d(p,
|
|
3554
|
+
function d(p, h) {
|
|
3558
3555
|
for (let b = 1; b <= 40; b++)
|
|
3559
|
-
if (u(p, b) <= t.getCapacity(b,
|
|
3556
|
+
if (u(p, b) <= t.getCapacity(b, h, r.MIXED))
|
|
3560
3557
|
return b;
|
|
3561
3558
|
}
|
|
3562
|
-
t.from = function(
|
|
3563
|
-
return i.isValid(
|
|
3564
|
-
}, t.getCapacity = function(
|
|
3565
|
-
if (!i.isValid(
|
|
3559
|
+
t.from = function(h, b) {
|
|
3560
|
+
return i.isValid(h) ? parseInt(h, 10) : b;
|
|
3561
|
+
}, t.getCapacity = function(h, b, g) {
|
|
3562
|
+
if (!i.isValid(h))
|
|
3566
3563
|
throw new Error("Invalid QR Code version");
|
|
3567
|
-
typeof
|
|
3568
|
-
const w = e.getSymbolTotalCodewords(
|
|
3569
|
-
if (
|
|
3570
|
-
const y = v - c(
|
|
3571
|
-
switch (
|
|
3564
|
+
typeof g > "u" && (g = r.BYTE);
|
|
3565
|
+
const w = e.getSymbolTotalCodewords(h), f = n.getTotalCodewordsCount(h, b), v = (w - f) * 8;
|
|
3566
|
+
if (g === r.MIXED) return v;
|
|
3567
|
+
const y = v - c(g, h);
|
|
3568
|
+
switch (g) {
|
|
3572
3569
|
case r.NUMERIC:
|
|
3573
3570
|
return Math.floor(y / 10 * 3);
|
|
3574
3571
|
case r.ALPHANUMERIC:
|
|
@@ -3579,37 +3576,37 @@ pe.testAlphanumeric = function(e) {
|
|
|
3579
3576
|
default:
|
|
3580
3577
|
return Math.floor(y / 8);
|
|
3581
3578
|
}
|
|
3582
|
-
}, t.getBestVersionForData = function(
|
|
3583
|
-
let
|
|
3579
|
+
}, t.getBestVersionForData = function(h, b) {
|
|
3580
|
+
let g;
|
|
3584
3581
|
const w = o.from(b, o.M);
|
|
3585
|
-
if (Array.isArray(
|
|
3586
|
-
if (
|
|
3587
|
-
return d(
|
|
3588
|
-
if (
|
|
3582
|
+
if (Array.isArray(h)) {
|
|
3583
|
+
if (h.length > 1)
|
|
3584
|
+
return d(h, w);
|
|
3585
|
+
if (h.length === 0)
|
|
3589
3586
|
return 1;
|
|
3590
|
-
|
|
3587
|
+
g = h[0];
|
|
3591
3588
|
} else
|
|
3592
|
-
|
|
3593
|
-
return l(
|
|
3594
|
-
}, t.getEncodedBits = function(
|
|
3595
|
-
if (!i.isValid(
|
|
3589
|
+
g = h;
|
|
3590
|
+
return l(g.mode, g.getLength(), w);
|
|
3591
|
+
}, t.getEncodedBits = function(h) {
|
|
3592
|
+
if (!i.isValid(h) || h < 7)
|
|
3596
3593
|
throw new Error("Invalid QR Code version");
|
|
3597
|
-
let b =
|
|
3594
|
+
let b = h << 12;
|
|
3598
3595
|
for (; e.getBCHDigit(b) - s >= 0; )
|
|
3599
3596
|
b ^= a << e.getBCHDigit(b) - s;
|
|
3600
|
-
return
|
|
3597
|
+
return h << 12 | b;
|
|
3601
3598
|
};
|
|
3602
|
-
})(
|
|
3603
|
-
var
|
|
3604
|
-
const ln = ae,
|
|
3605
|
-
|
|
3599
|
+
})(wo);
|
|
3600
|
+
var _o = {};
|
|
3601
|
+
const ln = ae, To = 1335, Li = 21522, Ln = ln.getBCHDigit(To);
|
|
3602
|
+
_o.getEncodedBits = function(e, n) {
|
|
3606
3603
|
const o = e.bit << 3 | n;
|
|
3607
3604
|
let r = o << 10;
|
|
3608
3605
|
for (; ln.getBCHDigit(r) - Ln >= 0; )
|
|
3609
|
-
r ^=
|
|
3606
|
+
r ^= To << ln.getBCHDigit(r) - Ln;
|
|
3610
3607
|
return (o << 10 | r) ^ Li;
|
|
3611
3608
|
};
|
|
3612
|
-
var
|
|
3609
|
+
var xo = {};
|
|
3613
3610
|
const Ri = Se;
|
|
3614
3611
|
function Ue(t) {
|
|
3615
3612
|
this.mode = Ri.NUMERIC, this.data = t.toString();
|
|
@@ -3746,7 +3743,7 @@ Make sure your charset is UTF-8`
|
|
|
3746
3743
|
n = (n >>> 8 & 255) * 192 + (n & 255), t.put(n, 13);
|
|
3747
3744
|
}
|
|
3748
3745
|
};
|
|
3749
|
-
var Gi = ze,
|
|
3746
|
+
var Gi = ze, Eo = { exports: {} };
|
|
3750
3747
|
(function(t) {
|
|
3751
3748
|
var e = {
|
|
3752
3749
|
single_source_shortest_paths: function(n, o, r) {
|
|
@@ -3754,10 +3751,10 @@ var Gi = ze, xo = { exports: {} };
|
|
|
3754
3751
|
a[o] = 0;
|
|
3755
3752
|
var s = e.PriorityQueue.make();
|
|
3756
3753
|
s.push(o, 0);
|
|
3757
|
-
for (var l, c, u, d, p,
|
|
3754
|
+
for (var l, c, u, d, p, h, b, g, w; !s.empty(); ) {
|
|
3758
3755
|
l = s.pop(), c = l.value, d = l.cost, p = n[c] || {};
|
|
3759
3756
|
for (u in p)
|
|
3760
|
-
p.hasOwnProperty(u) && (
|
|
3757
|
+
p.hasOwnProperty(u) && (h = p[u], b = d + h, g = a[u], w = typeof a[u] > "u", (w || g > b) && (a[u] = b, s.push(u, b), i[u] = c));
|
|
3761
3758
|
}
|
|
3762
3759
|
if (typeof r < "u" && typeof a[r] > "u") {
|
|
3763
3760
|
var f = ["Could not find a path from ", o, " to ", r, "."].join("");
|
|
@@ -3811,8 +3808,8 @@ var Gi = ze, xo = { exports: {} };
|
|
|
3811
3808
|
}
|
|
3812
3809
|
};
|
|
3813
3810
|
t.exports = e;
|
|
3814
|
-
})(
|
|
3815
|
-
var Wi =
|
|
3811
|
+
})(Eo);
|
|
3812
|
+
var Wi = Eo.exports;
|
|
3816
3813
|
(function(t) {
|
|
3817
3814
|
const e = Se, n = Oi, o = Vi, r = zi, i = Gi, a = pe, s = ae, l = Wi;
|
|
3818
3815
|
function c(f) {
|
|
@@ -3855,7 +3852,7 @@ var Wi = xo.exports;
|
|
|
3855
3852
|
return r.getBitsLength(f);
|
|
3856
3853
|
}
|
|
3857
3854
|
}
|
|
3858
|
-
function
|
|
3855
|
+
function h(f) {
|
|
3859
3856
|
return f.reduce(function(v, y) {
|
|
3860
3857
|
const C = v.length - 1 >= 0 ? v[v.length - 1] : null;
|
|
3861
3858
|
return C && C.mode === y.mode ? (v[v.length - 1].data += y.data, v) : (v.push(y), v);
|
|
@@ -3893,7 +3890,7 @@ var Wi = xo.exports;
|
|
|
3893
3890
|
}
|
|
3894
3891
|
return v;
|
|
3895
3892
|
}
|
|
3896
|
-
function
|
|
3893
|
+
function g(f, v) {
|
|
3897
3894
|
const y = {}, C = { start: {} };
|
|
3898
3895
|
let E = ["start"];
|
|
3899
3896
|
for (let _ = 0; _ < f.length; _++) {
|
|
@@ -3934,17 +3931,17 @@ var Wi = xo.exports;
|
|
|
3934
3931
|
return typeof C == "string" ? y.push(w(C, null)) : C.data && y.push(w(C.data, C.mode)), y;
|
|
3935
3932
|
}, []);
|
|
3936
3933
|
}, t.fromString = function(v, y) {
|
|
3937
|
-
const C = d(v, s.isKanjiModeEnabled()), E = b(C), _ =
|
|
3934
|
+
const C = d(v, s.isKanjiModeEnabled()), E = b(C), _ = g(E, y), P = l.find_path(_.map, "start", "end"), V = [];
|
|
3938
3935
|
for (let I = 1; I < P.length - 1; I++)
|
|
3939
3936
|
V.push(_.table[P[I]].node);
|
|
3940
|
-
return t.fromArray(
|
|
3937
|
+
return t.fromArray(h(V));
|
|
3941
3938
|
}, t.rawSplit = function(v) {
|
|
3942
3939
|
return t.fromArray(
|
|
3943
3940
|
d(v, s.isKanjiModeEnabled())
|
|
3944
3941
|
);
|
|
3945
3942
|
};
|
|
3946
|
-
})(
|
|
3947
|
-
const Pt = ae, Xt = Nt, Xi = Bi, Ki = Di, Ji =
|
|
3943
|
+
})(xo);
|
|
3944
|
+
const Pt = ae, Xt = Nt, Xi = Bi, Ki = Di, Ji = ho, qi = go, sn = bo, cn = kt, Qi = ki, It = wo, Zi = _o, ea = Se, Kt = xo;
|
|
3948
3945
|
function ta(t, e) {
|
|
3949
3946
|
const n = t.size, o = qi.getPositions(e);
|
|
3950
3947
|
for (let r = 0; r < o.length; r++) {
|
|
@@ -4014,20 +4011,20 @@ function aa(t, e, n) {
|
|
|
4014
4011
|
return la(o, t, e);
|
|
4015
4012
|
}
|
|
4016
4013
|
function la(t, e, n) {
|
|
4017
|
-
const o = Pt.getSymbolTotalCodewords(e), r = cn.getTotalCodewordsCount(e, n), i = o - r, a = cn.getBlocksCount(e, n), s = o % a, l = a - s, c = Math.floor(o / a), u = Math.floor(i / a), d = u + 1, p = c - u,
|
|
4014
|
+
const o = Pt.getSymbolTotalCodewords(e), r = cn.getTotalCodewordsCount(e, n), i = o - r, a = cn.getBlocksCount(e, n), s = o % a, l = a - s, c = Math.floor(o / a), u = Math.floor(i / a), d = u + 1, p = c - u, h = new Qi(p);
|
|
4018
4015
|
let b = 0;
|
|
4019
|
-
const
|
|
4016
|
+
const g = new Array(a), w = new Array(a);
|
|
4020
4017
|
let f = 0;
|
|
4021
4018
|
const v = new Uint8Array(t.buffer);
|
|
4022
4019
|
for (let P = 0; P < a; P++) {
|
|
4023
4020
|
const V = P < l ? u : d;
|
|
4024
|
-
|
|
4021
|
+
g[P] = v.slice(b, b + V), w[P] = h.encode(g[P]), b += V, f = Math.max(f, V);
|
|
4025
4022
|
}
|
|
4026
4023
|
const y = new Uint8Array(o);
|
|
4027
4024
|
let C = 0, E, _;
|
|
4028
4025
|
for (E = 0; E < f; E++)
|
|
4029
4026
|
for (_ = 0; _ < a; _++)
|
|
4030
|
-
E <
|
|
4027
|
+
E < g[_].length && (y[C++] = g[_][E]);
|
|
4031
4028
|
for (E = 0; E < p; E++)
|
|
4032
4029
|
for (_ = 0; _ < a; _++)
|
|
4033
4030
|
y[C++] = w[_][E];
|
|
@@ -4070,13 +4067,13 @@ Minimum version required to store current data is: ` + i + `.
|
|
|
4070
4067
|
segments: r
|
|
4071
4068
|
};
|
|
4072
4069
|
}
|
|
4073
|
-
|
|
4070
|
+
po.create = function(e, n) {
|
|
4074
4071
|
if (typeof e > "u" || e === "")
|
|
4075
4072
|
throw new Error("No input text");
|
|
4076
4073
|
let o = Xt.M, r, i;
|
|
4077
4074
|
return typeof n < "u" && (o = Xt.from(n.errorCorrectionLevel, Xt.M), r = It.from(n.version), i = sn.from(n.maskPattern), n.toSJISFunc && Pt.setToSJISFunction(n.toSJISFunc)), sa(e, r, o, i);
|
|
4078
4075
|
};
|
|
4079
|
-
var
|
|
4076
|
+
var So = {}, vn = {};
|
|
4080
4077
|
(function(t) {
|
|
4081
4078
|
function e(n) {
|
|
4082
4079
|
if (typeof n == "number" && (n = n.toString()), typeof n != "string")
|
|
@@ -4118,13 +4115,13 @@ var Eo = {}, vn = {};
|
|
|
4118
4115
|
}, t.qrToImageData = function(o, r, i) {
|
|
4119
4116
|
const a = r.modules.size, s = r.modules.data, l = t.getScale(a, i), c = Math.floor((a + i.margin * 2) * l), u = i.margin * l, d = [i.color.light, i.color.dark];
|
|
4120
4117
|
for (let p = 0; p < c; p++)
|
|
4121
|
-
for (let
|
|
4122
|
-
let b = (p * c +
|
|
4123
|
-
if (p >= u &&
|
|
4124
|
-
const w = Math.floor((p - u) / l), f = Math.floor((
|
|
4125
|
-
|
|
4118
|
+
for (let h = 0; h < c; h++) {
|
|
4119
|
+
let b = (p * c + h) * 4, g = i.color.light;
|
|
4120
|
+
if (p >= u && h >= u && p < c - u && h < c - u) {
|
|
4121
|
+
const w = Math.floor((p - u) / l), f = Math.floor((h - u) / l);
|
|
4122
|
+
g = d[s[w * a + f] ? 1 : 0];
|
|
4126
4123
|
}
|
|
4127
|
-
o[b++] =
|
|
4124
|
+
o[b++] = g.r, o[b++] = g.g, o[b++] = g.b, o[b] = g.a;
|
|
4128
4125
|
}
|
|
4129
4126
|
};
|
|
4130
4127
|
})(vn);
|
|
@@ -4151,8 +4148,8 @@ var Eo = {}, vn = {};
|
|
|
4151
4148
|
const c = t.render(i, a, l), u = l.type || "image/png", d = l.rendererOpts || {};
|
|
4152
4149
|
return c.toDataURL(u, d.quality);
|
|
4153
4150
|
};
|
|
4154
|
-
})(
|
|
4155
|
-
var
|
|
4151
|
+
})(So);
|
|
4152
|
+
var Io = {};
|
|
4156
4153
|
const ca = vn;
|
|
4157
4154
|
function Rn(t, e) {
|
|
4158
4155
|
const n = t.a / 255, o = e + '="' + t.hex + '"';
|
|
@@ -4170,12 +4167,12 @@ function ua(t, e, n) {
|
|
|
4170
4167
|
}
|
|
4171
4168
|
return o;
|
|
4172
4169
|
}
|
|
4173
|
-
|
|
4170
|
+
Io.render = function(e, n, o) {
|
|
4174
4171
|
const r = ca.getOptions(n), i = e.modules.size, a = e.modules.data, s = i + r.margin * 2, l = r.color.light.a ? "<path " + Rn(r.color.light, "fill") + ' d="M0 0h' + s + "v" + s + 'H0z"/>' : "", c = "<path " + Rn(r.color.dark, "stroke") + ' d="' + ua(a, i, r.margin) + '"/>', u = 'viewBox="0 0 ' + s + " " + s + '"', p = '<svg xmlns="http://www.w3.org/2000/svg" ' + (r.width ? 'width="' + r.width + '" height="' + r.width + '" ' : "") + u + ' shape-rendering="crispEdges">' + l + c + `</svg>
|
|
4175
4172
|
`;
|
|
4176
4173
|
return typeof o == "function" && o(null, p), p;
|
|
4177
4174
|
};
|
|
4178
|
-
const da = Si, un =
|
|
4175
|
+
const da = Si, un = po, Bo = So, fa = Io;
|
|
4179
4176
|
function yn(t, e, n, o, r) {
|
|
4180
4177
|
const i = [].slice.call(arguments, 1), a = i.length, s = typeof i[a - 1] == "function";
|
|
4181
4178
|
if (!s && !da())
|
|
@@ -4204,15 +4201,15 @@ function yn(t, e, n, o, r) {
|
|
|
4204
4201
|
}
|
|
4205
4202
|
}
|
|
4206
4203
|
lt.create = un.create;
|
|
4207
|
-
lt.toCanvas = yn.bind(null,
|
|
4208
|
-
lt.toDataURL = yn.bind(null,
|
|
4204
|
+
lt.toCanvas = yn.bind(null, Bo.render);
|
|
4205
|
+
lt.toDataURL = yn.bind(null, Bo.renderToDataURL);
|
|
4209
4206
|
lt.toString = yn.bind(null, function(t, e, n) {
|
|
4210
4207
|
return fa.render(t, n);
|
|
4211
4208
|
});
|
|
4212
4209
|
const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full flex gap-8 justify-end items-center" }, ha = /* @__PURE__ */ ie({
|
|
4213
4210
|
__name: "PreviewQrCode",
|
|
4214
4211
|
setup(t) {
|
|
4215
|
-
const e = q(), n =
|
|
4212
|
+
const e = q(), n = Re(), o = rt(), r = q(!1), i = re(() => `${`${"https://{slug}.feedme.vip".replace("{slug}", `${n.currentBusiness.value.url ?? n.currentBusiness.value._id}`)}`}/preview/${o.state.selectedTemplate.templateId}`);
|
|
4216
4213
|
function a() {
|
|
4217
4214
|
se.promise(navigator.clipboard.writeText(i.value), {
|
|
4218
4215
|
loading: "Copying...",
|
|
@@ -4249,7 +4246,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
4249
4246
|
})
|
|
4250
4247
|
]),
|
|
4251
4248
|
"dialog-header": M(() => l[2] || (l[2] = [
|
|
4252
|
-
|
|
4249
|
+
Lo(" Preview your template ")
|
|
4253
4250
|
])),
|
|
4254
4251
|
default: M(() => [
|
|
4255
4252
|
k("div", pa, [
|
|
@@ -4279,7 +4276,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
4279
4276
|
}), ga = { class: "p-8 flex gap-8 items-center justify-between border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-white" }, ba = { class: "flex gap-8 items-center" }, va = /* @__PURE__ */ ie({
|
|
4280
4277
|
__name: "EditorToolbar",
|
|
4281
4278
|
setup(t) {
|
|
4282
|
-
const e = Ee(), n = rt(), o =
|
|
4279
|
+
const e = Ee(), n = rt(), o = Re();
|
|
4283
4280
|
function r() {
|
|
4284
4281
|
se.promise(
|
|
4285
4282
|
n.saveTemplate(
|
|
@@ -4338,10 +4335,10 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
4338
4335
|
onClick: s[1] || (s[1] = (l) => i(o.value))
|
|
4339
4336
|
}, [
|
|
4340
4337
|
k("div", wa, [
|
|
4341
|
-
o.value ? (D(), te(
|
|
4338
|
+
o.value ? (D(), te(Xo, Cn(Ro({ key: 0 }, { data: o.value.data, ...o.value.props })), {
|
|
4342
4339
|
default: M(() => [
|
|
4343
4340
|
k("div", Ca, [
|
|
4344
|
-
S(
|
|
4341
|
+
S(Ko, { data: { selectedCountry: "MY" } }),
|
|
4345
4342
|
k("button", _a, [
|
|
4346
4343
|
k("div", Ta, [
|
|
4347
4344
|
S(ke, {
|
|
@@ -4351,7 +4348,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
4351
4348
|
])
|
|
4352
4349
|
])
|
|
4353
4350
|
]),
|
|
4354
|
-
S($(
|
|
4351
|
+
S($(co), {
|
|
4355
4352
|
class: "w-full h-full flex flex-col gap-16 min-h-[600px]",
|
|
4356
4353
|
modelValue: n.value,
|
|
4357
4354
|
"onUpdate:modelValue": s[0] || (s[0] = (l) => n.value = l),
|
|
@@ -4366,13 +4363,13 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
4366
4363
|
class: "relative cursor-grab",
|
|
4367
4364
|
onClickCapture: Zt((d) => i(l), ["prevent", "stop"])
|
|
4368
4365
|
}, [
|
|
4369
|
-
(D(), te(
|
|
4366
|
+
(D(), te(Oo(Jo[l.type]), Cn(Uo({ data: l.data, ...l.props })), null, 16)),
|
|
4370
4367
|
l._id === ((c = r.value) == null ? void 0 : c._id) ? (D(), O("div", {
|
|
4371
4368
|
key: 0,
|
|
4372
4369
|
class: Ke({
|
|
4373
4370
|
"w-full h-full absolute top-0 left-0 z-10": l._id === ((u = r.value) == null ? void 0 : u._id)
|
|
4374
4371
|
}),
|
|
4375
|
-
style:
|
|
4372
|
+
style: Vo({
|
|
4376
4373
|
paddingLeft: l.props.marginLeft,
|
|
4377
4374
|
paddingRight: l.props.marginRight
|
|
4378
4375
|
})
|
|
@@ -5001,7 +4998,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5001
4998
|
groupItems: [
|
|
5002
4999
|
{
|
|
5003
5000
|
label: "Is member",
|
|
5004
|
-
value:
|
|
5001
|
+
value: uo
|
|
5005
5002
|
},
|
|
5006
5003
|
{
|
|
5007
5004
|
label: "Not member",
|
|
@@ -5111,6 +5108,11 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5111
5108
|
$formkit: "BaSwitch",
|
|
5112
5109
|
label: "Delivery",
|
|
5113
5110
|
name: "showDelivery"
|
|
5111
|
+
},
|
|
5112
|
+
{
|
|
5113
|
+
$formkit: "BaSwitch",
|
|
5114
|
+
label: "Queue",
|
|
5115
|
+
name: "showQueue"
|
|
5114
5116
|
}
|
|
5115
5117
|
]
|
|
5116
5118
|
},
|
|
@@ -5269,7 +5271,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5269
5271
|
groupItems: [
|
|
5270
5272
|
{
|
|
5271
5273
|
label: "With orders",
|
|
5272
|
-
value:
|
|
5274
|
+
value: fo
|
|
5273
5275
|
},
|
|
5274
5276
|
{
|
|
5275
5277
|
label: "Without orders",
|
|
@@ -5314,20 +5316,20 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5314
5316
|
},
|
|
5315
5317
|
setup(t) {
|
|
5316
5318
|
return (e, n) => (D(), O("div", null, [
|
|
5317
|
-
e.label ? (D(), O("div", Ma,
|
|
5319
|
+
e.label ? (D(), O("div", Ma, Fe(e.label), 1)) : ne("", !0),
|
|
5318
5320
|
k("div", La, [
|
|
5319
5321
|
dn(e.$slots, "default")
|
|
5320
5322
|
])
|
|
5321
5323
|
]));
|
|
5322
5324
|
}
|
|
5323
|
-
}),
|
|
5325
|
+
}), Do = Symbol.for("ba:config-tab"), Oa = { class: "p-16 w-full fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Ua = { class: "flex items-center w-full border-b border-fm-color-neutral-gray-100" }, Va = /* @__PURE__ */ ie({
|
|
5324
5326
|
__name: "ConfigTab",
|
|
5325
5327
|
props: {
|
|
5326
5328
|
title: {}
|
|
5327
5329
|
},
|
|
5328
5330
|
setup(t) {
|
|
5329
5331
|
const e = q([]), n = q("");
|
|
5330
|
-
|
|
5332
|
+
Ho(Do, {
|
|
5331
5333
|
register(r) {
|
|
5332
5334
|
e.value = [...e.value, r], e.value.length === 1 && (n.value = r.value);
|
|
5333
5335
|
},
|
|
@@ -5339,7 +5341,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5339
5341
|
return (r, i) => {
|
|
5340
5342
|
const a = Y("FmTab");
|
|
5341
5343
|
return D(), O("div", null, [
|
|
5342
|
-
k("div", Oa,
|
|
5344
|
+
k("div", Oa, Fe(r.title), 1),
|
|
5343
5345
|
S(Vn),
|
|
5344
5346
|
k("div", Ua, [
|
|
5345
5347
|
(D(!0), O(Te, null, ot(e.value, (s) => (D(), te(a, {
|
|
@@ -5360,7 +5362,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5360
5362
|
value: {}
|
|
5361
5363
|
},
|
|
5362
5364
|
setup(t) {
|
|
5363
|
-
const e = t, n =
|
|
5365
|
+
const e = t, n = zo(Do, null);
|
|
5364
5366
|
return Un(() => {
|
|
5365
5367
|
n ? n.register(e) : console.warn("ConfigTabItem is to be used with ConfigTab as parent");
|
|
5366
5368
|
}), (o, r) => {
|
|
@@ -5382,7 +5384,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5382
5384
|
}), r = re(() => {
|
|
5383
5385
|
var l;
|
|
5384
5386
|
return (l = n.value) == null ? void 0 : l.props;
|
|
5385
|
-
}), i =
|
|
5387
|
+
}), i = Yo({
|
|
5386
5388
|
ConfigTab: Va,
|
|
5387
5389
|
ConfigTabItem: Ya,
|
|
5388
5390
|
ConfigSection: Ra
|
|
@@ -5417,7 +5419,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5417
5419
|
}
|
|
5418
5420
|
}
|
|
5419
5421
|
return (l, c) => (D(), O("div", ja, [
|
|
5420
|
-
n.value ? (D(), te($(
|
|
5422
|
+
n.value ? (D(), te($(er), {
|
|
5421
5423
|
config: { rootClasses: s },
|
|
5422
5424
|
type: "form",
|
|
5423
5425
|
actions: !1,
|
|
@@ -5427,7 +5429,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5427
5429
|
preserve: ""
|
|
5428
5430
|
}, {
|
|
5429
5431
|
default: M(() => [
|
|
5430
|
-
S($(
|
|
5432
|
+
S($(tr), {
|
|
5431
5433
|
schema: o.value,
|
|
5432
5434
|
library: $(i)
|
|
5433
5435
|
}, null, 8, ["schema", "library"])
|
|
@@ -5439,7 +5441,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5439
5441
|
}), Wa = { class: "relative h-full w-screen flex flex-col overflow-y-hidden" }, Xa = { class: "flex h-full" }, ll = /* @__PURE__ */ ie({
|
|
5440
5442
|
__name: "BuilderView",
|
|
5441
5443
|
setup(t) {
|
|
5442
|
-
const e =
|
|
5444
|
+
const e = Re(), n = Ee(), o = rt(), r = Hn(), i = Dt(), a = q(!0);
|
|
5443
5445
|
async function s() {
|
|
5444
5446
|
var c, u;
|
|
5445
5447
|
a.value = !0, e.currentBusiness.value && ((c = e.currentBusiness.value) != null && c._id && await o.getAllTemplates(e.currentBusiness.value._id), (u = e.currentBusiness.value) != null && u.url && await r.getGlobalSlug(e.currentBusiness.value.url), l());
|
|
@@ -5466,7 +5468,7 @@ const pa = { class: "flex items-center justify-center" }, ma = { class: "w-full
|
|
|
5466
5468
|
), (c, u) => {
|
|
5467
5469
|
const d = Y("FmCircularProgress"), p = Y("FmOverlay");
|
|
5468
5470
|
return D(), O("div", Wa, [
|
|
5469
|
-
S($(
|
|
5471
|
+
S($(qo), {
|
|
5470
5472
|
position: "top-right",
|
|
5471
5473
|
"rich-colors": "",
|
|
5472
5474
|
"close-button": "",
|