@feedmepos/mf-brand-app-builder 0.5.20-dev.2 → 0.5.21-dev.0
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-D_NPnwGw.js → App-CouqATvY.js} +3 -3
- package/dist/{AssetsSettings-DB3ZSX4R.js → AssetsSettings-VrTm7fqj.js} +3 -3
- package/dist/{BrandkitView-BwJ6165V.js → BrandkitView-BWayOWSf.js} +2257 -2982
- package/dist/{BuilderView-ClihS2Kl.js → BuilderView-BfGBA-IQ.js} +449 -449
- package/dist/{ImageUpload-8n04negz.js → ImageUpload-CFXqs0JU.js} +2 -2
- package/dist/{LinkButton-BZwfC-dz.js → LinkButton-DSq0KYll.js} +1 -1
- package/dist/{ListRepeater-Ckv1FcLA.js → ListRepeater-Cob4tslX.js} +1 -1
- package/dist/{ManagementSettings-B4wHfdq8.js → ManagementSettings-Dvz3GmOR.js} +2 -2
- package/dist/{ProjectView-CibQkkyX.js → ProjectView-BQGLwc0w.js} +1 -1
- package/dist/{app-Bc8YxeXK.js → app-lMq3BVlx.js} +3737 -1604
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +9 -0
- package/dist/client/components/src/i18n.d.ts +4 -0
- package/dist/client/merchant/src/app.d.ts +2120 -0
- package/dist/client/merchant/src/stores/business/index.d.ts +54 -0
- package/dist/{image-Dc0YO_lp.js → image-Dpri5FX2.js} +1 -1
- package/dist/{index-B9AmzX3X.js → index-B9eW8FKP.js} +1 -1
- package/dist/{index-VruJQbMQ.js → index-BveesOeC.js} +1 -1
- package/dist/{index-DO9dYU7p.js → index-CeGUgOHl.js} +1 -1
- package/dist/{index-Ba6vae-6.js → index-G68bUkCy.js} +1 -1
- package/dist/{main-DBrQC_KK.js → main-2c5dYrrl.js} +6589 -4150
- package/dist/package.json +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { resolveComponent as W, TransitionGroup as
|
|
2
|
-
import { T as
|
|
3
|
-
import { defineStore as
|
|
4
|
-
import { p as
|
|
5
|
-
import { a as
|
|
1
|
+
import { resolveComponent as W, TransitionGroup as Qn, defineComponent as ue, h as pa, nextTick as on, isRef as eo, isReactive as to, isProxy as ao, toRaw as no, ref as ne, computed as oe, openBlock as D, createElementBlock as Z, Fragment as Re, renderList as ht, createElementVNode as N, toDisplayString as de, unref as x, createVNode as w, withCtx as P, createBlock as ee, createCommentVNode as G, watch as Qe, normalizeClass as ye, withDirectives as Wt, withModifiers as ma, vShow as Xt, createTextVNode as oo, onMounted as rn, resolveDynamicComponent as Pa, mergeProps as io, normalizeProps as ro, guardReactiveProps as lo, normalizeStyle as so, renderSlot as xa, provide as co, inject as uo, markRaw as po } from "vue";
|
|
2
|
+
import { T as mo, u as ze } from "./index-G68bUkCy.js";
|
|
3
|
+
import { defineStore as bo, storeToRefs as fo } from "pinia";
|
|
4
|
+
import { p as go } from "./views-BDWw3w14.js";
|
|
5
|
+
import { a as ho } from "./index-B9eW8FKP.js";
|
|
6
6
|
import { v as Ma } from "./v4-ANoOI1Qw.js";
|
|
7
|
-
import { _ as
|
|
8
|
-
import { B as
|
|
7
|
+
import { _ as yo } from "./Icon.vue_vue_type_style_index_0_lang-CVCHCcWR.js";
|
|
8
|
+
import { B as ln } from "./BaDivider-DWZv3fqi.js";
|
|
9
9
|
import { useI18n as je, useCoreStore as Ye } from "@feedmepos/mf-common";
|
|
10
|
-
import { C as Ra, _ as
|
|
11
|
-
import { useDialog as
|
|
12
|
-
import { useRouter as
|
|
10
|
+
import { C as Ra, _ as To, a as vo } from "./main-2c5dYrrl.js";
|
|
11
|
+
import { useDialog as Co, components as _o, useSnackbar as xo } from "@feedmepos/ui-library";
|
|
12
|
+
import { useRouter as sn } from "vue-router";
|
|
13
13
|
import { u as wa } from "./index-DzaJbB6y.js";
|
|
14
|
-
import { u as Ia } from "./index-
|
|
15
|
-
import { K as
|
|
16
|
-
import { F as
|
|
14
|
+
import { u as Ia } from "./index-CeGUgOHl.js";
|
|
15
|
+
import { K as wo, V as Io } from "./vue-sonner-PX6Req0V.js";
|
|
16
|
+
import { F as Eo, a as Ao } from "./app-lMq3BVlx.js";
|
|
17
17
|
const {
|
|
18
|
-
Axios:
|
|
19
|
-
AxiosError:
|
|
20
|
-
CanceledError:
|
|
21
|
-
isCancel:
|
|
22
|
-
CancelToken:
|
|
23
|
-
VERSION:
|
|
24
|
-
all:
|
|
25
|
-
Cancel:
|
|
26
|
-
isAxiosError:
|
|
27
|
-
spread:
|
|
28
|
-
toFormData:
|
|
29
|
-
AxiosHeaders:
|
|
30
|
-
HttpStatusCode:
|
|
31
|
-
formToJSON:
|
|
32
|
-
getAdapter:
|
|
33
|
-
mergeConfig:
|
|
34
|
-
} =
|
|
18
|
+
Axios: ss,
|
|
19
|
+
AxiosError: So,
|
|
20
|
+
CanceledError: cs,
|
|
21
|
+
isCancel: ds,
|
|
22
|
+
CancelToken: us,
|
|
23
|
+
VERSION: ps,
|
|
24
|
+
all: ms,
|
|
25
|
+
Cancel: bs,
|
|
26
|
+
isAxiosError: fs,
|
|
27
|
+
spread: gs,
|
|
28
|
+
toFormData: hs,
|
|
29
|
+
AxiosHeaders: ys,
|
|
30
|
+
HttpStatusCode: Ts,
|
|
31
|
+
formToJSON: vs,
|
|
32
|
+
getAdapter: Cs,
|
|
33
|
+
mergeConfig: _s
|
|
34
|
+
} = ho;
|
|
35
35
|
/**!
|
|
36
36
|
* Sortable 1.14.0
|
|
37
37
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -52,7 +52,7 @@ function we(t) {
|
|
|
52
52
|
for (var e = 1; e < arguments.length; e++) {
|
|
53
53
|
var a = arguments[e] != null ? arguments[e] : {};
|
|
54
54
|
e % 2 ? $a(Object(a), !0).forEach(function(n) {
|
|
55
|
-
|
|
55
|
+
Bo(t, n, a[n]);
|
|
56
56
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(a)) : $a(Object(a)).forEach(function(n) {
|
|
57
57
|
Object.defineProperty(t, n, Object.getOwnPropertyDescriptor(a, n));
|
|
58
58
|
});
|
|
@@ -67,7 +67,7 @@ function Lt(t) {
|
|
|
67
67
|
return e && typeof Symbol == "function" && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e;
|
|
68
68
|
}, Lt(t);
|
|
69
69
|
}
|
|
70
|
-
function
|
|
70
|
+
function Bo(t, e, a) {
|
|
71
71
|
return e in t ? Object.defineProperty(t, e, {
|
|
72
72
|
value: a,
|
|
73
73
|
enumerable: !0,
|
|
@@ -85,16 +85,16 @@ function Le() {
|
|
|
85
85
|
return t;
|
|
86
86
|
}, Le.apply(this, arguments);
|
|
87
87
|
}
|
|
88
|
-
function
|
|
88
|
+
function Lo(t, e) {
|
|
89
89
|
if (t == null) return {};
|
|
90
90
|
var a = {}, n = Object.keys(t), o, i;
|
|
91
91
|
for (i = 0; i < n.length; i++)
|
|
92
92
|
o = n[i], !(e.indexOf(o) >= 0) && (a[o] = t[o]);
|
|
93
93
|
return a;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
95
|
+
function Do(t, e) {
|
|
96
96
|
if (t == null) return {};
|
|
97
|
-
var a =
|
|
97
|
+
var a = Lo(t, e), n, o;
|
|
98
98
|
if (Object.getOwnPropertySymbols) {
|
|
99
99
|
var i = Object.getOwnPropertySymbols(t);
|
|
100
100
|
for (o = 0; o < i.length; o++)
|
|
@@ -102,20 +102,20 @@ function Lo(t, e) {
|
|
|
102
102
|
}
|
|
103
103
|
return a;
|
|
104
104
|
}
|
|
105
|
-
var
|
|
105
|
+
var Fo = "1.14.0";
|
|
106
106
|
function Be(t) {
|
|
107
107
|
if (typeof window < "u" && window.navigator)
|
|
108
108
|
return !!/* @__PURE__ */ navigator.userAgent.match(t);
|
|
109
109
|
}
|
|
110
|
-
var De = Be(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), yt = Be(/Edge/i), Za = Be(/firefox/i), dt = Be(/safari/i) && !Be(/chrome/i) && !Be(/android/i),
|
|
110
|
+
var De = Be(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i), yt = Be(/Edge/i), Za = Be(/firefox/i), dt = Be(/safari/i) && !Be(/chrome/i) && !Be(/android/i), cn = Be(/iP(ad|od|hone)/i), No = Be(/chrome/i) && Be(/android/i), dn = {
|
|
111
111
|
capture: !1,
|
|
112
112
|
passive: !1
|
|
113
113
|
};
|
|
114
114
|
function O(t, e, a) {
|
|
115
|
-
t.addEventListener(e, a, !De &&
|
|
115
|
+
t.addEventListener(e, a, !De && dn);
|
|
116
116
|
}
|
|
117
117
|
function k(t, e, a) {
|
|
118
|
-
t.removeEventListener(e, a, !De &&
|
|
118
|
+
t.removeEventListener(e, a, !De && dn);
|
|
119
119
|
}
|
|
120
120
|
function Ot(t, e) {
|
|
121
121
|
if (e) {
|
|
@@ -133,7 +133,7 @@ function Ot(t, e) {
|
|
|
133
133
|
return !1;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
136
|
-
function
|
|
136
|
+
function ko(t) {
|
|
137
137
|
return t.host && t !== document && t.host.nodeType ? t.host : t.parentNode;
|
|
138
138
|
}
|
|
139
139
|
function Ce(t, e, a, n) {
|
|
@@ -143,7 +143,7 @@ function Ce(t, e, a, n) {
|
|
|
143
143
|
if (e != null && (e[0] === ">" ? t.parentNode === a && Ot(t, e) : Ot(t, e)) || n && t === a)
|
|
144
144
|
return t;
|
|
145
145
|
if (t === a) break;
|
|
146
|
-
} while (t =
|
|
146
|
+
} while (t = ko(t));
|
|
147
147
|
}
|
|
148
148
|
return null;
|
|
149
149
|
}
|
|
@@ -177,7 +177,7 @@ function qe(t, e) {
|
|
|
177
177
|
var o = window.DOMMatrix || window.WebKitCSSMatrix || window.CSSMatrix || window.MSCSSMatrix;
|
|
178
178
|
return o && new o(a);
|
|
179
179
|
}
|
|
180
|
-
function
|
|
180
|
+
function un(t, e, a) {
|
|
181
181
|
if (t) {
|
|
182
182
|
var n = t.getElementsByTagName(e), o = 0, i = n.length;
|
|
183
183
|
if (a)
|
|
@@ -258,7 +258,7 @@ function Ha(t) {
|
|
|
258
258
|
} while (t !== n && (t = t.parentNode));
|
|
259
259
|
return [e, a];
|
|
260
260
|
}
|
|
261
|
-
function
|
|
261
|
+
function Oo(t, e) {
|
|
262
262
|
for (var a in t)
|
|
263
263
|
if (t.hasOwnProperty(a)) {
|
|
264
264
|
for (var n in e)
|
|
@@ -281,7 +281,7 @@ function Pe(t, e) {
|
|
|
281
281
|
while (a = a.parentNode);
|
|
282
282
|
return xe();
|
|
283
283
|
}
|
|
284
|
-
function
|
|
284
|
+
function Po(t, e) {
|
|
285
285
|
if (t && e)
|
|
286
286
|
for (var a in e)
|
|
287
287
|
e.hasOwnProperty(a) && (t[a] = e[a]);
|
|
@@ -291,7 +291,7 @@ function Jt(t, e) {
|
|
|
291
291
|
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);
|
|
292
292
|
}
|
|
293
293
|
var ut;
|
|
294
|
-
function
|
|
294
|
+
function pn(t, e) {
|
|
295
295
|
return function() {
|
|
296
296
|
if (!ut) {
|
|
297
297
|
var a = arguments, n = this;
|
|
@@ -301,18 +301,18 @@ function un(t, e) {
|
|
|
301
301
|
}
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
|
-
function
|
|
304
|
+
function Mo() {
|
|
305
305
|
clearTimeout(ut), ut = void 0;
|
|
306
306
|
}
|
|
307
|
-
function
|
|
307
|
+
function mn(t, e, a) {
|
|
308
308
|
t.scrollLeft += e, t.scrollTop += a;
|
|
309
309
|
}
|
|
310
|
-
function
|
|
310
|
+
function bn(t) {
|
|
311
311
|
var e = window.Polymer, a = window.jQuery || window.Zepto;
|
|
312
312
|
return e && e.dom ? e.dom(t).cloneNode(!0) : a ? a(t).clone(!0)[0] : t.cloneNode(!0);
|
|
313
313
|
}
|
|
314
314
|
var ce = "Sortable" + (/* @__PURE__ */ new Date()).getTime();
|
|
315
|
-
function
|
|
315
|
+
function Ro() {
|
|
316
316
|
var t = [], e;
|
|
317
317
|
return {
|
|
318
318
|
captureAnimationState: function() {
|
|
@@ -338,7 +338,7 @@ function Mo() {
|
|
|
338
338
|
t.push(n);
|
|
339
339
|
},
|
|
340
340
|
removeAnimationState: function(n) {
|
|
341
|
-
t.splice(
|
|
341
|
+
t.splice(Oo(t, {
|
|
342
342
|
target: n
|
|
343
343
|
}), 1);
|
|
344
344
|
},
|
|
@@ -352,7 +352,7 @@ function Mo() {
|
|
|
352
352
|
t.forEach(function(l) {
|
|
353
353
|
var s = 0, c = l.target, d = c.fromRect, u = X(c), m = c.prevFromRect, p = c.prevToRect, g = l.rect, f = qe(c, !0);
|
|
354
354
|
f && (u.top -= f.f, u.left -= f.e), c.toRect = u, c.thisAnimationDuration && Jt(m, u) && !Jt(d, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
355
|
-
(g.top - u.top) / (g.left - u.left) === (d.top - u.top) / (d.left - u.left) && (s =
|
|
355
|
+
(g.top - u.top) / (g.left - u.left) === (d.top - u.top) / (d.left - u.left) && (s = Zo(g, m, p, o.options)), Jt(u, d) || (c.prevFromRect = d, c.prevToRect = u, s || (s = o.options.animation), o.animate(c, g, u, s)), s && (i = !0, r = Math.max(r, s), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
356
356
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
357
357
|
}, s), c.thisAnimationDuration = s);
|
|
358
358
|
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
@@ -363,17 +363,17 @@ function Mo() {
|
|
|
363
363
|
if (r) {
|
|
364
364
|
I(n, "transition", ""), I(n, "transform", "");
|
|
365
365
|
var l = qe(this.el), s = l && l.a, c = l && l.d, d = (o.left - i.left) / (s || 1), u = (o.top - i.top) / (c || 1);
|
|
366
|
-
n.animatingX = !!d, n.animatingY = !!u, I(n, "transform", "translate3d(" + d + "px," + u + "px,0)"), this.forRepaintDummy =
|
|
366
|
+
n.animatingX = !!d, n.animatingY = !!u, I(n, "transform", "translate3d(" + d + "px," + u + "px,0)"), this.forRepaintDummy = $o(n), I(n, "transition", "transform " + r + "ms" + (this.options.easing ? " " + this.options.easing : "")), I(n, "transform", "translate3d(0,0,0)"), typeof n.animated == "number" && clearTimeout(n.animated), n.animated = setTimeout(function() {
|
|
367
367
|
I(n, "transition", ""), I(n, "transform", ""), n.animated = !1, n.animatingX = !1, n.animatingY = !1;
|
|
368
368
|
}, r);
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
};
|
|
372
372
|
}
|
|
373
|
-
function
|
|
373
|
+
function $o(t) {
|
|
374
374
|
return t.offsetWidth;
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function Zo(t, e, a, n) {
|
|
377
377
|
return Math.sqrt(Math.pow(e.top - t.top, 2) + Math.pow(e.left - t.left, 2)) / Math.sqrt(Math.pow(e.top - a.top, 2) + Math.pow(e.left - a.left, 2)) * n.animation;
|
|
378
378
|
}
|
|
379
379
|
var We = [], Gt = {
|
|
@@ -428,7 +428,7 @@ var We = [], Gt = {
|
|
|
428
428
|
}), o;
|
|
429
429
|
}
|
|
430
430
|
};
|
|
431
|
-
function
|
|
431
|
+
function Uo(t) {
|
|
432
432
|
var e = t.sortable, a = t.rootEl, n = t.name, o = t.targetEl, i = t.cloneEl, r = t.toEl, l = t.fromEl, s = t.oldIndex, c = t.newIndex, d = t.oldDraggableIndex, u = t.newDraggableIndex, m = t.originalEvent, p = t.putSortable, g = t.extraEventProperties;
|
|
433
433
|
if (e = e || a && a[ce], !!e) {
|
|
434
434
|
var f, A = e.options, h = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
@@ -442,8 +442,8 @@ function Zo(t) {
|
|
|
442
442
|
a && a.dispatchEvent(f), A[h] && A[h].call(e, f);
|
|
443
443
|
}
|
|
444
444
|
}
|
|
445
|
-
var
|
|
446
|
-
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i =
|
|
445
|
+
var Vo = ["evt"], ie = function(e, a) {
|
|
446
|
+
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, o = n.evt, i = Do(n, Vo);
|
|
447
447
|
Tt.pluginEvent.bind(E)(e, a, we({
|
|
448
448
|
dragEl: y,
|
|
449
449
|
parentEl: U,
|
|
@@ -461,8 +461,8 @@ var Uo = ["evt"], ie = function(e, a) {
|
|
|
461
461
|
oldDraggableIndex: pt,
|
|
462
462
|
newIndex: se,
|
|
463
463
|
newDraggableIndex: ke,
|
|
464
|
-
hideGhostForTarget:
|
|
465
|
-
unhideGhostForTarget:
|
|
464
|
+
hideGhostForTarget: yn,
|
|
465
|
+
unhideGhostForTarget: Tn,
|
|
466
466
|
cloneNowHidden: function() {
|
|
467
467
|
Oe = !0;
|
|
468
468
|
},
|
|
@@ -479,7 +479,7 @@ var Uo = ["evt"], ie = function(e, a) {
|
|
|
479
479
|
}, i));
|
|
480
480
|
};
|
|
481
481
|
function ae(t) {
|
|
482
|
-
|
|
482
|
+
Uo(we({
|
|
483
483
|
putSortable: K,
|
|
484
484
|
cloneEl: V,
|
|
485
485
|
targetEl: y,
|
|
@@ -490,14 +490,14 @@ function ae(t) {
|
|
|
490
490
|
newDraggableIndex: ke
|
|
491
491
|
}, t));
|
|
492
492
|
}
|
|
493
|
-
var y, U, L, $, He, Dt, V, Oe, Ke, se, pt, ke, wt, K, Ge = !1, Pt = !1, Mt = [], Ue, ge, Kt, qt, Ya, za, lt, Xe, mt, bt = !1, It = !1, Ft, Q, Qt = [], ba = !1, Rt = [], Vt = typeof document < "u", Et =
|
|
493
|
+
var y, U, L, $, He, Dt, V, Oe, Ke, se, pt, ke, wt, K, Ge = !1, Pt = !1, Mt = [], Ue, ge, Kt, qt, Ya, za, lt, Xe, mt, bt = !1, It = !1, Ft, Q, Qt = [], ba = !1, Rt = [], Vt = typeof document < "u", Et = cn, ja = yt || De ? "cssFloat" : "float", Ho = Vt && !No && !cn && "draggable" in document.createElement("div"), fn = function() {
|
|
494
494
|
if (Vt) {
|
|
495
495
|
if (De)
|
|
496
496
|
return !1;
|
|
497
497
|
var t = document.createElement("x");
|
|
498
498
|
return t.style.cssText = "pointer-events:auto", t.style.pointerEvents === "auto";
|
|
499
499
|
}
|
|
500
|
-
}(),
|
|
500
|
+
}(), gn = function(e, a) {
|
|
501
501
|
var n = I(e), o = parseInt(n.width) - parseInt(n.paddingLeft) - parseInt(n.paddingRight) - parseInt(n.borderLeftWidth) - parseInt(n.borderRightWidth), i = et(e, 0, a), r = et(e, 1, a), l = i && I(i), s = r && I(r), c = l && parseInt(l.marginLeft) + parseInt(l.marginRight) + X(i).width, d = s && parseInt(s.marginLeft) + parseInt(s.marginRight) + X(r).width;
|
|
502
502
|
if (n.display === "flex")
|
|
503
503
|
return n.flexDirection === "column" || n.flexDirection === "column-reverse" ? "vertical" : "horizontal";
|
|
@@ -508,10 +508,10 @@ var y, U, L, $, He, Dt, V, Oe, Ke, se, pt, ke, wt, K, Ge = !1, Pt = !1, Mt = [],
|
|
|
508
508
|
return r && (s.clear === "both" || s.clear === u) ? "vertical" : "horizontal";
|
|
509
509
|
}
|
|
510
510
|
return i && (l.display === "block" || l.display === "flex" || l.display === "table" || l.display === "grid" || c >= o && n[ja] === "none" || r && n[ja] === "none" && c + d > o) ? "vertical" : "horizontal";
|
|
511
|
-
},
|
|
511
|
+
}, Yo = function(e, a, n) {
|
|
512
512
|
var o = n ? e.left : e.top, i = n ? e.right : e.bottom, r = n ? e.width : e.height, l = n ? a.left : a.top, s = n ? a.right : a.bottom, c = n ? a.width : a.height;
|
|
513
513
|
return o === l || i === s || o + r / 2 === l + c / 2;
|
|
514
|
-
},
|
|
514
|
+
}, zo = function(e, a) {
|
|
515
515
|
var n;
|
|
516
516
|
return Mt.some(function(o) {
|
|
517
517
|
var i = o[ce].options.emptyInsertThreshold;
|
|
@@ -521,7 +521,7 @@ var y, U, L, $, He, Dt, V, Oe, Ke, se, pt, ke, wt, K, Ge = !1, Pt = !1, Mt = [],
|
|
|
521
521
|
return n = o;
|
|
522
522
|
}
|
|
523
523
|
}), n;
|
|
524
|
-
},
|
|
524
|
+
}, hn = function(e) {
|
|
525
525
|
function a(i, r) {
|
|
526
526
|
return function(l, s, c, d) {
|
|
527
527
|
var u = l.options.group.name && s.options.group.name && l.options.group.name === s.options.group.name;
|
|
@@ -541,10 +541,10 @@ var y, U, L, $, He, Dt, V, Oe, Ke, se, pt, ke, wt, K, Ge = !1, Pt = !1, Mt = [],
|
|
|
541
541
|
(!o || Lt(o) != "object") && (o = {
|
|
542
542
|
name: o
|
|
543
543
|
}), n.name = o.name, n.checkPull = a(o.pull, !0), n.checkPut = a(o.put), n.revertClone = o.revertClone, e.group = n;
|
|
544
|
-
}, hn = function() {
|
|
545
|
-
!bn && L && I(L, "display", "none");
|
|
546
544
|
}, yn = function() {
|
|
547
|
-
!
|
|
545
|
+
!fn && L && I(L, "display", "none");
|
|
546
|
+
}, Tn = function() {
|
|
547
|
+
!fn && L && I(L, "display", "");
|
|
548
548
|
};
|
|
549
549
|
Vt && document.addEventListener("click", function(t) {
|
|
550
550
|
if (Pt)
|
|
@@ -553,7 +553,7 @@ Vt && document.addEventListener("click", function(t) {
|
|
|
553
553
|
var Ve = function(e) {
|
|
554
554
|
if (y) {
|
|
555
555
|
e = e.touches ? e.touches[0] : e;
|
|
556
|
-
var a =
|
|
556
|
+
var a = zo(e.clientX, e.clientY);
|
|
557
557
|
if (a) {
|
|
558
558
|
var n = {};
|
|
559
559
|
for (var o in e)
|
|
@@ -561,7 +561,7 @@ var Ve = function(e) {
|
|
|
561
561
|
n.target = n.rootEl = a, n.preventDefault = void 0, n.stopPropagation = void 0, a[ce]._onDragOver(n);
|
|
562
562
|
}
|
|
563
563
|
}
|
|
564
|
-
},
|
|
564
|
+
}, jo = function(e) {
|
|
565
565
|
y && y.parentNode[ce]._isOutsideThisEl(e.target);
|
|
566
566
|
};
|
|
567
567
|
function E(t, e) {
|
|
@@ -583,7 +583,7 @@ function E(t, e) {
|
|
|
583
583
|
// will be set to same as swapThreshold if default
|
|
584
584
|
removeCloneOnHide: !0,
|
|
585
585
|
direction: function() {
|
|
586
|
-
return
|
|
586
|
+
return gn(t, this.options);
|
|
587
587
|
},
|
|
588
588
|
ghostClass: "sortable-ghost",
|
|
589
589
|
chosenClass: "sortable-chosen",
|
|
@@ -616,10 +616,10 @@ function E(t, e) {
|
|
|
616
616
|
Tt.initializePlugins(this, t, a);
|
|
617
617
|
for (var n in a)
|
|
618
618
|
!(n in e) && (e[n] = a[n]);
|
|
619
|
-
|
|
619
|
+
hn(e);
|
|
620
620
|
for (var o in this)
|
|
621
621
|
o.charAt(0) === "_" && typeof this[o] == "function" && (this[o] = this[o].bind(this));
|
|
622
|
-
this.nativeDraggable = e.forceFallback ? !1 :
|
|
622
|
+
this.nativeDraggable = e.forceFallback ? !1 : Ho, this.nativeDraggable && (this.options.touchStartThreshold = 1), e.supportPointer ? O(t, "pointerdown", this._onTapStart) : (O(t, "mousedown", this._onTapStart), O(t, "touchstart", this._onTapStart)), this.nativeDraggable && (O(t, "dragover", this), O(t, "dragenter", this)), Mt.push(this.el), e.store && e.store.get && this.sort(e.store.get(this) || []), Le(this, Ro());
|
|
623
623
|
}
|
|
624
624
|
E.prototype = /** @lends Sortable.prototype */
|
|
625
625
|
{
|
|
@@ -633,7 +633,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
633
633
|
_onTapStart: function(e) {
|
|
634
634
|
if (e.cancelable) {
|
|
635
635
|
var a = this, n = this.el, o = this.options, i = o.preventOnFilter, r = e.type, l = e.touches && e.touches[0] || e.pointerType && e.pointerType === "touch" && e, s = (l || e).target, c = e.target.shadowRoot && (e.path && e.path[0] || e.composedPath && e.composedPath()[0]) || s, d = o.filter;
|
|
636
|
-
if (
|
|
636
|
+
if (ei(n), !y && !(/mousedown|pointerdown/.test(r) && e.button !== 0 || o.disabled) && !c.isContentEditable && !(!this.nativeDraggable && dt && s && s.tagName.toUpperCase() === "SELECT") && (s = Ce(s, o.draggable, n, !1), !(s && s.animated) && Dt !== s)) {
|
|
637
637
|
if (Ke = fe(s), pt = fe(s, o.draggable), typeof d == "function") {
|
|
638
638
|
if (d.call(this, e, s, this)) {
|
|
639
639
|
ae({
|
|
@@ -689,7 +689,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
689
689
|
originalEvent: e
|
|
690
690
|
}), le(y, r.chosenClass, !0);
|
|
691
691
|
}, r.ignore.split(",").forEach(function(d) {
|
|
692
|
-
|
|
692
|
+
un(y, d.trim(), ea);
|
|
693
693
|
}), O(l, "dragover", Ve), O(l, "mousemove", Ve), O(l, "touchmove", Ve), O(l, "mouseup", o._onDrop), O(l, "touchend", o._onDrop), O(l, "touchcancel", o._onDrop), Za && this.nativeDraggable && (this.options.touchStartThreshold = 4, y.draggable = !0), ie("delayStart", this, {
|
|
694
694
|
evt: e
|
|
695
695
|
}), r.delay && (!r.delayOnTouchOnly || a) && (!this.nativeDraggable || !(yt || De))) {
|
|
@@ -726,7 +726,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
726
726
|
if (Ge = !1, $ && y) {
|
|
727
727
|
ie("dragStarted", this, {
|
|
728
728
|
evt: a
|
|
729
|
-
}), this.nativeDraggable && O(document, "dragover",
|
|
729
|
+
}), this.nativeDraggable && O(document, "dragover", jo);
|
|
730
730
|
var n = this.options;
|
|
731
731
|
!e && le(y, n.dragClass, !1), le(y, n.ghostClass, !0), E.active = this, e && this._appendGhost(), ae({
|
|
732
732
|
sortable: this,
|
|
@@ -738,7 +738,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
738
738
|
},
|
|
739
739
|
_emulateDragOver: function() {
|
|
740
740
|
if (ge) {
|
|
741
|
-
this._lastX = ge.clientX, this._lastY = ge.clientY,
|
|
741
|
+
this._lastX = ge.clientX, this._lastY = ge.clientY, yn();
|
|
742
742
|
for (var e = document.elementFromPoint(ge.clientX, ge.clientY), a = e; e && e.shadowRoot && (e = e.shadowRoot.elementFromPoint(ge.clientX, ge.clientY), e !== a); )
|
|
743
743
|
a = e;
|
|
744
744
|
if (y.parentNode[ce]._isOutsideThisEl(e), a)
|
|
@@ -755,7 +755,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
755
755
|
}
|
|
756
756
|
e = a;
|
|
757
757
|
} while (a = a.parentNode);
|
|
758
|
-
|
|
758
|
+
Tn();
|
|
759
759
|
}
|
|
760
760
|
},
|
|
761
761
|
_onTouchMove: function(e) {
|
|
@@ -800,7 +800,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
800
800
|
this._onDrop();
|
|
801
801
|
return;
|
|
802
802
|
}
|
|
803
|
-
ie("setupClone", this), E.eventCanceled || (V =
|
|
803
|
+
ie("setupClone", this), E.eventCanceled || (V = bn(y), V.draggable = !1, V.style["will-change"] = "", this._hideClone(), le(V, this.options.chosenClass, !1), E.clone = V), n.cloneId = Nt(function() {
|
|
804
804
|
ie("clone", n), !E.eventCanceled && (n.options.removeCloneOnHide || $.insertBefore(V, y), n._hideClone(), ae({
|
|
805
805
|
sortable: n,
|
|
806
806
|
name: "clone"
|
|
@@ -811,7 +811,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
811
811
|
_onDragOver: function(e) {
|
|
812
812
|
var a = this.el, n = e.target, o, i, r, l = this.options, s = l.group, c = E.active, d = wt === s, u = l.sort, m = K || c, p, g = this, f = !1;
|
|
813
813
|
if (ba) return;
|
|
814
|
-
function A(it,
|
|
814
|
+
function A(it, Kn) {
|
|
815
815
|
ie(it, g, we({
|
|
816
816
|
evt: e,
|
|
817
817
|
isOwner: d,
|
|
@@ -823,11 +823,11 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
823
823
|
fromSortable: m,
|
|
824
824
|
target: n,
|
|
825
825
|
completed: v,
|
|
826
|
-
onMove: function(Oa,
|
|
827
|
-
return At($, a, y, o, Oa, X(Oa), e,
|
|
826
|
+
onMove: function(Oa, qn) {
|
|
827
|
+
return At($, a, y, o, Oa, X(Oa), e, qn);
|
|
828
828
|
},
|
|
829
829
|
changed: C
|
|
830
|
-
},
|
|
830
|
+
}, Kn));
|
|
831
831
|
}
|
|
832
832
|
function h() {
|
|
833
833
|
A("dragOverAnimationCapture"), g.captureAnimationState(), g !== m && m.captureAnimationState();
|
|
@@ -857,12 +857,12 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
857
857
|
if (r)
|
|
858
858
|
return U = $, h(), this._hideClone(), A("revert"), E.eventCanceled || (He ? $.insertBefore(y, He) : $.appendChild(y)), v(!0);
|
|
859
859
|
var b = Ea(a, l.draggable);
|
|
860
|
-
if (!b ||
|
|
860
|
+
if (!b || Go(e, p, this) && !b.animated) {
|
|
861
861
|
if (b === y)
|
|
862
862
|
return v(!1);
|
|
863
863
|
if (b && a === e.target && (n = b), n && (i = X(n)), At($, a, y, o, n, i, e, !!n) !== !1)
|
|
864
864
|
return h(), a.appendChild(y), U = a, C(), v(!0);
|
|
865
|
-
} else if (b &&
|
|
865
|
+
} else if (b && Jo(e, p, this)) {
|
|
866
866
|
var T = et(a, 0, l, !0);
|
|
867
867
|
if (T === y)
|
|
868
868
|
return v(!1);
|
|
@@ -870,8 +870,8 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
870
870
|
return h(), a.insertBefore(y, T), U = a, C(), v(!0);
|
|
871
871
|
} else if (n.parentNode === a) {
|
|
872
872
|
i = X(n);
|
|
873
|
-
var _ = 0, B, S = y.parentNode !== a, M = !
|
|
874
|
-
Xe !== n && (B = i[H], bt = !1, It = !M && l.invertSwap || S), _ =
|
|
873
|
+
var _ = 0, B, S = y.parentNode !== a, M = !Yo(y.animated && y.toRect || o, n.animated && n.toRect || i, p), H = p ? "top" : "left", q = Va(n, "top", "top") || Va(y, "top", "top"), F = q ? q.scrollTop : void 0;
|
|
874
|
+
Xe !== n && (B = i[H], bt = !1, It = !M && l.invertSwap || S), _ = Ko(e, n, i, p, M ? 1 : l.swapThreshold, l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold, It, Xe === n);
|
|
875
875
|
var R;
|
|
876
876
|
if (_ !== 0) {
|
|
877
877
|
var ve = fe(y);
|
|
@@ -886,7 +886,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
886
886
|
Fe = _ === 1;
|
|
887
887
|
var xt = At($, a, y, o, n, i, e, Fe);
|
|
888
888
|
if (xt !== !1)
|
|
889
|
-
return (xt === 1 || xt === -1) && (Fe = xt === 1), ba = !0, setTimeout(
|
|
889
|
+
return (xt === 1 || xt === -1) && (Fe = xt === 1), ba = !0, setTimeout(Xo, 30), h(), Fe && !Ee ? a.appendChild(y) : n.parentNode.insertBefore(y, Fe ? Ee : n), q && mn(q, 0, F - q.scrollTop), U = y.parentNode, B !== void 0 && !It && (Ft = Math.abs(B - X(n)[H])), C(), v(!0);
|
|
890
890
|
}
|
|
891
891
|
if (a.contains(y))
|
|
892
892
|
return v(!1);
|
|
@@ -968,7 +968,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
968
968
|
break;
|
|
969
969
|
case "dragenter":
|
|
970
970
|
case "dragover":
|
|
971
|
-
y && (this._onDragOver(e),
|
|
971
|
+
y && (this._onDragOver(e), Wo(e));
|
|
972
972
|
break;
|
|
973
973
|
case "selectstart":
|
|
974
974
|
e.preventDefault();
|
|
@@ -981,7 +981,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
981
981
|
*/
|
|
982
982
|
toArray: function() {
|
|
983
983
|
for (var e = [], a, n = this.el.children, o = 0, i = n.length, r = this.options; o < i; o++)
|
|
984
|
-
a = n[o], Ce(a, r.draggable, this.el, !1) && e.push(a.getAttribute(r.dataIdAttr) ||
|
|
984
|
+
a = n[o], Ce(a, r.draggable, this.el, !1) && e.push(a.getAttribute(r.dataIdAttr) || Qo(a));
|
|
985
985
|
return e;
|
|
986
986
|
},
|
|
987
987
|
/**
|
|
@@ -1024,7 +1024,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
1024
1024
|
if (a === void 0)
|
|
1025
1025
|
return n[e];
|
|
1026
1026
|
var o = Tt.modifyOption(this, e, a);
|
|
1027
|
-
typeof o < "u" ? n[e] = o : n[e] = a, e === "group" &&
|
|
1027
|
+
typeof o < "u" ? n[e] = o : n[e] = a, e === "group" && hn(n);
|
|
1028
1028
|
},
|
|
1029
1029
|
/**
|
|
1030
1030
|
* Destroy
|
|
@@ -1053,7 +1053,7 @@ E.prototype = /** @lends Sortable.prototype */
|
|
|
1053
1053
|
}
|
|
1054
1054
|
}
|
|
1055
1055
|
};
|
|
1056
|
-
function
|
|
1056
|
+
function Wo(t) {
|
|
1057
1057
|
t.dataTransfer && (t.dataTransfer.dropEffect = "move"), t.cancelable && t.preventDefault();
|
|
1058
1058
|
}
|
|
1059
1059
|
function At(t, e, a, n, o, i, r, l) {
|
|
@@ -1066,18 +1066,18 @@ function At(t, e, a, n, o, i, r, l) {
|
|
|
1066
1066
|
function ea(t) {
|
|
1067
1067
|
t.draggable = !1;
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function Xo() {
|
|
1070
1070
|
ba = !1;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1072
|
+
function Jo(t, e, a) {
|
|
1073
1073
|
var n = X(et(a.el, 0, a.options, !0)), o = 10;
|
|
1074
1074
|
return e ? t.clientX < n.left - o || t.clientY < n.top && t.clientX < n.right : t.clientY < n.top - o || t.clientY < n.bottom && t.clientX < n.left;
|
|
1075
1075
|
}
|
|
1076
|
-
function
|
|
1076
|
+
function Go(t, e, a) {
|
|
1077
1077
|
var n = X(Ea(a.el, a.options.draggable)), o = 10;
|
|
1078
1078
|
return e ? t.clientX > n.right + o || t.clientX <= n.right && t.clientY > n.bottom && t.clientX >= n.left : t.clientX > n.right && t.clientY > n.top || t.clientX <= n.right && t.clientY > n.bottom + o;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function Ko(t, e, a, n, o, i, r, l) {
|
|
1081
1081
|
var s = n ? t.clientY : t.clientX, c = n ? a.height : a.width, d = n ? a.top : a.left, u = n ? a.bottom : a.right, m = !1;
|
|
1082
1082
|
if (!r) {
|
|
1083
1083
|
if (l && Ft < c * o) {
|
|
@@ -1086,19 +1086,19 @@ function Go(t, e, a, n, o, i, r, l) {
|
|
|
1086
1086
|
else if (mt === 1 ? s < d + Ft : s > u - Ft)
|
|
1087
1087
|
return -mt;
|
|
1088
1088
|
} else if (s > d + c * (1 - o) / 2 && s < u - c * (1 - o) / 2)
|
|
1089
|
-
return
|
|
1089
|
+
return qo(e);
|
|
1090
1090
|
}
|
|
1091
1091
|
return m = m || r, m && (s < d + c * i / 2 || s > u - c * i / 2) ? s > d + c / 2 ? 1 : -1 : 0;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function qo(t) {
|
|
1094
1094
|
return fe(y) < fe(t) ? 1 : -1;
|
|
1095
1095
|
}
|
|
1096
|
-
function
|
|
1096
|
+
function Qo(t) {
|
|
1097
1097
|
for (var e = t.tagName + t.className + t.src + t.href + t.textContent, a = e.length, n = 0; a--; )
|
|
1098
1098
|
n += e.charCodeAt(a);
|
|
1099
1099
|
return n.toString(36);
|
|
1100
1100
|
}
|
|
1101
|
-
function
|
|
1101
|
+
function ei(t) {
|
|
1102
1102
|
Rt.length = 0;
|
|
1103
1103
|
for (var e = t.getElementsByTagName("input"), a = e.length; a--; ) {
|
|
1104
1104
|
var n = e[a];
|
|
@@ -1118,19 +1118,19 @@ E.utils = {
|
|
|
1118
1118
|
on: O,
|
|
1119
1119
|
off: k,
|
|
1120
1120
|
css: I,
|
|
1121
|
-
find:
|
|
1121
|
+
find: un,
|
|
1122
1122
|
is: function(e, a) {
|
|
1123
1123
|
return !!Ce(e, a, e, !1);
|
|
1124
1124
|
},
|
|
1125
|
-
extend:
|
|
1126
|
-
throttle:
|
|
1125
|
+
extend: Po,
|
|
1126
|
+
throttle: pn,
|
|
1127
1127
|
closest: Ce,
|
|
1128
1128
|
toggleClass: le,
|
|
1129
|
-
clone:
|
|
1129
|
+
clone: bn,
|
|
1130
1130
|
index: fe,
|
|
1131
1131
|
nextTick: Nt,
|
|
1132
1132
|
cancelNextTick: fa,
|
|
1133
|
-
detectDirection:
|
|
1133
|
+
detectDirection: gn,
|
|
1134
1134
|
getChild: et
|
|
1135
1135
|
};
|
|
1136
1136
|
E.get = function(t) {
|
|
@@ -1148,9 +1148,9 @@ E.mount = function() {
|
|
|
1148
1148
|
E.create = function(t, e) {
|
|
1149
1149
|
return new E(t, e);
|
|
1150
1150
|
};
|
|
1151
|
-
E.version =
|
|
1151
|
+
E.version = Fo;
|
|
1152
1152
|
var j = [], st, ga, ha = !1, ta, aa, $t, ct;
|
|
1153
|
-
function
|
|
1153
|
+
function ti() {
|
|
1154
1154
|
function t() {
|
|
1155
1155
|
this.defaults = {
|
|
1156
1156
|
scroll: !0,
|
|
@@ -1172,7 +1172,7 @@ function ei() {
|
|
|
1172
1172
|
!this.options.dragOverBubble && !n.rootEl && this._handleAutoScroll(n);
|
|
1173
1173
|
},
|
|
1174
1174
|
drop: function() {
|
|
1175
|
-
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), Wa(), kt(),
|
|
1175
|
+
this.sortable.nativeDraggable ? k(document, "dragover", this._handleAutoScroll) : (k(document, "pointermove", this._handleFallbackAutoScroll), k(document, "touchmove", this._handleFallbackAutoScroll), k(document, "mousemove", this._handleFallbackAutoScroll)), Wa(), kt(), Mo();
|
|
1176
1176
|
},
|
|
1177
1177
|
nulling: function() {
|
|
1178
1178
|
$t = ga = st = ha = ct = ta = aa = null, j.length = 0;
|
|
@@ -1210,7 +1210,7 @@ function kt() {
|
|
|
1210
1210
|
function Wa() {
|
|
1211
1211
|
clearInterval(ct);
|
|
1212
1212
|
}
|
|
1213
|
-
var na =
|
|
1213
|
+
var na = pn(function(t, e, a, n) {
|
|
1214
1214
|
if (e.scroll) {
|
|
1215
1215
|
var o = (t.touches ? t.touches[0] : t).clientX, i = (t.touches ? t.touches[0] : t).clientY, r = e.scrollSensitivity, l = e.scrollSpeed, s = xe(), c = !1, d;
|
|
1216
1216
|
ga !== a && (ga = a, kt(), st = e.scroll, d = e.scrollFn, st === !0 && (st = Pe(a, !0)));
|
|
@@ -1225,14 +1225,14 @@ var na = un(function(t, e, a, n) {
|
|
|
1225
1225
|
(j[u].vx != F || j[u].vy != R || j[u].el !== p) && (j[u].el = p, j[u].vx = F, j[u].vy = R, clearInterval(j[u].pid), (F != 0 || R != 0) && (c = !0, j[u].pid = setInterval((function() {
|
|
1226
1226
|
n && this.layer === 0 && E.active._onTouchMove($t);
|
|
1227
1227
|
var Ee = j[this.layer].vy ? j[this.layer].vy * l : 0, Fe = j[this.layer].vx ? j[this.layer].vx * l : 0;
|
|
1228
|
-
typeof d == "function" && d.call(E.dragged.parentNode[ce], Fe, Ee, t, $t, j[this.layer].el) !== "continue" ||
|
|
1228
|
+
typeof d == "function" && d.call(E.dragged.parentNode[ce], Fe, Ee, t, $t, j[this.layer].el) !== "continue" || mn(j[this.layer].el, Fe, Ee);
|
|
1229
1229
|
}).bind({
|
|
1230
1230
|
layer: u
|
|
1231
1231
|
}), 24))), u++;
|
|
1232
1232
|
} while (e.bubbleScroll && m !== s && (m = Pe(m, !1)));
|
|
1233
1233
|
ha = c;
|
|
1234
1234
|
}
|
|
1235
|
-
}, 30),
|
|
1235
|
+
}, 30), vn = function(e) {
|
|
1236
1236
|
var a = e.originalEvent, n = e.putSortable, o = e.dragEl, i = e.activeSortable, r = e.dispatchSortableEvent, l = e.hideGhostForTarget, s = e.unhideGhostForTarget;
|
|
1237
1237
|
if (a) {
|
|
1238
1238
|
var c = n || i;
|
|
@@ -1258,7 +1258,7 @@ Aa.prototype = {
|
|
|
1258
1258
|
var o = et(this.sortable.el, this.startIndex, this.options);
|
|
1259
1259
|
o ? this.sortable.el.insertBefore(a, o) : this.sortable.el.appendChild(a), this.sortable.animateAll(), n && n.animateAll();
|
|
1260
1260
|
},
|
|
1261
|
-
drop:
|
|
1261
|
+
drop: vn
|
|
1262
1262
|
};
|
|
1263
1263
|
Le(Aa, {
|
|
1264
1264
|
pluginName: "revertOnSpill"
|
|
@@ -1270,12 +1270,12 @@ Sa.prototype = {
|
|
|
1270
1270
|
var a = e.dragEl, n = e.putSortable, o = n || this.sortable;
|
|
1271
1271
|
o.captureAnimationState(), a.parentNode && a.parentNode.removeChild(a), o.animateAll();
|
|
1272
1272
|
},
|
|
1273
|
-
drop:
|
|
1273
|
+
drop: vn
|
|
1274
1274
|
};
|
|
1275
1275
|
Le(Sa, {
|
|
1276
1276
|
pluginName: "removeOnSpill"
|
|
1277
1277
|
});
|
|
1278
|
-
E.mount(new
|
|
1278
|
+
E.mount(new ti());
|
|
1279
1279
|
E.mount(Sa, Aa);
|
|
1280
1280
|
function oa(t) {
|
|
1281
1281
|
t.parentElement !== null && t.parentElement.removeChild(t);
|
|
@@ -1284,25 +1284,25 @@ function Xa(t, e, a) {
|
|
|
1284
1284
|
const n = a === 0 ? t.children[0] : t.children[a - 1].nextSibling;
|
|
1285
1285
|
t.insertBefore(e, n);
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function ai() {
|
|
1288
1288
|
return typeof window < "u" ? window.console : global.console;
|
|
1289
1289
|
}
|
|
1290
|
-
const
|
|
1291
|
-
function
|
|
1290
|
+
const ni = ai();
|
|
1291
|
+
function oi(t) {
|
|
1292
1292
|
const e = /* @__PURE__ */ Object.create(null);
|
|
1293
1293
|
return function(n) {
|
|
1294
1294
|
return e[n] || (e[n] = t(n));
|
|
1295
1295
|
};
|
|
1296
1296
|
}
|
|
1297
|
-
const
|
|
1298
|
-
manage:
|
|
1299
|
-
manageAndEmit:
|
|
1300
|
-
emit:
|
|
1297
|
+
const ii = /-(\w)/g, ri = oi((t) => t.replace(ii, (e, a) => a.toUpperCase())), Cn = ["Start", "Add", "Remove", "Update", "End"], _n = ["Choose", "Unchoose", "Sort", "Filter", "Clone"], xn = ["Move"], li = [xn, Cn, _n].flatMap((t) => t).map((t) => `on${t}`), ya = {
|
|
1298
|
+
manage: xn,
|
|
1299
|
+
manageAndEmit: Cn,
|
|
1300
|
+
emit: _n
|
|
1301
1301
|
};
|
|
1302
|
-
function
|
|
1303
|
-
return
|
|
1302
|
+
function si(t) {
|
|
1303
|
+
return li.indexOf(t) !== -1;
|
|
1304
1304
|
}
|
|
1305
|
-
const
|
|
1305
|
+
const ci = [
|
|
1306
1306
|
"a",
|
|
1307
1307
|
"abbr",
|
|
1308
1308
|
"address",
|
|
@@ -1421,28 +1421,28 @@ const si = [
|
|
|
1421
1421
|
"video",
|
|
1422
1422
|
"wbr"
|
|
1423
1423
|
];
|
|
1424
|
-
function ci(t) {
|
|
1425
|
-
return si.includes(t);
|
|
1426
|
-
}
|
|
1427
1424
|
function di(t) {
|
|
1425
|
+
return ci.includes(t);
|
|
1426
|
+
}
|
|
1427
|
+
function ui(t) {
|
|
1428
1428
|
return ["transition-group", "TransitionGroup"].includes(t);
|
|
1429
1429
|
}
|
|
1430
|
-
function
|
|
1430
|
+
function wn(t) {
|
|
1431
1431
|
return ["id", "class", "role", "style"].includes(t) || t.startsWith("data-") || t.startsWith("aria-") || t.startsWith("on");
|
|
1432
1432
|
}
|
|
1433
|
-
function
|
|
1433
|
+
function In(t) {
|
|
1434
1434
|
return t.reduce((e, [a, n]) => (e[a] = n, e), {});
|
|
1435
1435
|
}
|
|
1436
|
-
function
|
|
1436
|
+
function pi({ $attrs: t, componentData: e = {} }) {
|
|
1437
1437
|
return {
|
|
1438
|
-
...
|
|
1439
|
-
Object.entries(t).filter(([n, o]) =>
|
|
1438
|
+
...In(
|
|
1439
|
+
Object.entries(t).filter(([n, o]) => wn(n))
|
|
1440
1440
|
),
|
|
1441
1441
|
...e
|
|
1442
1442
|
};
|
|
1443
1443
|
}
|
|
1444
|
-
function
|
|
1445
|
-
const a =
|
|
1444
|
+
function mi({ $attrs: t, callBackBuilder: e }) {
|
|
1445
|
+
const a = In(En(t));
|
|
1446
1446
|
Object.entries(e).forEach(([o, i]) => {
|
|
1447
1447
|
ya[o].forEach((r) => {
|
|
1448
1448
|
a[`on${r}`] = i(r);
|
|
@@ -1454,11 +1454,11 @@ function pi({ $attrs: t, callBackBuilder: e }) {
|
|
|
1454
1454
|
draggable: n
|
|
1455
1455
|
};
|
|
1456
1456
|
}
|
|
1457
|
-
function
|
|
1458
|
-
return Object.entries(t).filter(([e, a]) => !
|
|
1457
|
+
function En(t) {
|
|
1458
|
+
return Object.entries(t).filter(([e, a]) => !wn(e)).map(([e, a]) => [ri(e), a]).filter(([e, a]) => !si(e));
|
|
1459
1459
|
}
|
|
1460
|
-
const Ja = ({ el: t }) => t,
|
|
1461
|
-
class
|
|
1460
|
+
const Ja = ({ el: t }) => t, bi = (t, e) => t.__draggable_context = e, Ga = (t) => t.__draggable_context;
|
|
1461
|
+
class fi {
|
|
1462
1462
|
constructor({
|
|
1463
1463
|
nodes: { header: e, default: a, footer: n },
|
|
1464
1464
|
root: o,
|
|
@@ -1476,7 +1476,7 @@ class bi {
|
|
|
1476
1476
|
updated() {
|
|
1477
1477
|
const { defaultNodes: e, realList: a } = this;
|
|
1478
1478
|
e.forEach((n, o) => {
|
|
1479
|
-
|
|
1479
|
+
bi(Ja(n), {
|
|
1480
1480
|
element: a[o],
|
|
1481
1481
|
index: o
|
|
1482
1482
|
});
|
|
@@ -1500,13 +1500,13 @@ class bi {
|
|
|
1500
1500
|
return e < c ? 0 : o;
|
|
1501
1501
|
}
|
|
1502
1502
|
}
|
|
1503
|
-
function
|
|
1503
|
+
function gi(t, e) {
|
|
1504
1504
|
const a = t[e];
|
|
1505
1505
|
return a ? a() : [];
|
|
1506
1506
|
}
|
|
1507
|
-
function
|
|
1507
|
+
function hi({ $slots: t, realList: e, getKey: a }) {
|
|
1508
1508
|
const n = e || [], [o, i] = ["header", "footer"].map(
|
|
1509
|
-
(s) =>
|
|
1509
|
+
(s) => gi(t, s)
|
|
1510
1510
|
), { item: r } = t;
|
|
1511
1511
|
if (!r)
|
|
1512
1512
|
throw new Error("draggable element must have an item slot");
|
|
@@ -1521,35 +1521,35 @@ function gi({ $slots: t, realList: e, getKey: a }) {
|
|
|
1521
1521
|
default: l
|
|
1522
1522
|
};
|
|
1523
1523
|
}
|
|
1524
|
-
function
|
|
1525
|
-
const e =
|
|
1524
|
+
function yi(t) {
|
|
1525
|
+
const e = ui(t), a = !di(t) && !e;
|
|
1526
1526
|
return {
|
|
1527
1527
|
transition: e,
|
|
1528
1528
|
externalComponent: a,
|
|
1529
|
-
tag: a ? W(t) : e ?
|
|
1529
|
+
tag: a ? W(t) : e ? Qn : t
|
|
1530
1530
|
};
|
|
1531
1531
|
}
|
|
1532
|
-
function
|
|
1533
|
-
const o =
|
|
1534
|
-
return new
|
|
1532
|
+
function Ti({ $slots: t, tag: e, realList: a, getKey: n }) {
|
|
1533
|
+
const o = hi({ $slots: t, realList: a, getKey: n }), i = yi(e);
|
|
1534
|
+
return new fi({ nodes: o, root: i, realList: a });
|
|
1535
1535
|
}
|
|
1536
|
-
function
|
|
1537
|
-
|
|
1536
|
+
function An(t, e) {
|
|
1537
|
+
on(() => this.$emit(t.toLowerCase(), e));
|
|
1538
1538
|
}
|
|
1539
|
-
function
|
|
1539
|
+
function Sn(t) {
|
|
1540
1540
|
return (e, a) => {
|
|
1541
1541
|
if (this.realList !== null)
|
|
1542
1542
|
return this[`onDrag${t}`](e, a);
|
|
1543
1543
|
};
|
|
1544
1544
|
}
|
|
1545
|
-
function
|
|
1546
|
-
const e =
|
|
1545
|
+
function vi(t) {
|
|
1546
|
+
const e = Sn.call(this, t);
|
|
1547
1547
|
return (a, n) => {
|
|
1548
|
-
e.call(this, a, n),
|
|
1548
|
+
e.call(this, a, n), An.call(this, t, a);
|
|
1549
1549
|
};
|
|
1550
1550
|
}
|
|
1551
1551
|
let ia = null;
|
|
1552
|
-
const
|
|
1552
|
+
const Ci = {
|
|
1553
1553
|
list: {
|
|
1554
1554
|
type: Array,
|
|
1555
1555
|
required: !1,
|
|
@@ -1581,15 +1581,15 @@ const vi = {
|
|
|
1581
1581
|
required: !1,
|
|
1582
1582
|
default: null
|
|
1583
1583
|
}
|
|
1584
|
-
},
|
|
1584
|
+
}, _i = [
|
|
1585
1585
|
"update:modelValue",
|
|
1586
1586
|
"change",
|
|
1587
1587
|
...[...ya.manageAndEmit, ...ya.emit].map((t) => t.toLowerCase())
|
|
1588
|
-
],
|
|
1588
|
+
], Bn = ue({
|
|
1589
1589
|
name: "draggable",
|
|
1590
1590
|
inheritAttrs: !1,
|
|
1591
|
-
props:
|
|
1592
|
-
emits:
|
|
1591
|
+
props: Ci,
|
|
1592
|
+
emits: _i,
|
|
1593
1593
|
data() {
|
|
1594
1594
|
return {
|
|
1595
1595
|
error: !1
|
|
@@ -1598,21 +1598,21 @@ const vi = {
|
|
|
1598
1598
|
render() {
|
|
1599
1599
|
try {
|
|
1600
1600
|
this.error = !1;
|
|
1601
|
-
const { $slots: t, $attrs: e, tag: a, componentData: n, realList: o, getKey: i } = this, r =
|
|
1601
|
+
const { $slots: t, $attrs: e, tag: a, componentData: n, realList: o, getKey: i } = this, r = Ti({
|
|
1602
1602
|
$slots: t,
|
|
1603
1603
|
tag: a,
|
|
1604
1604
|
realList: o,
|
|
1605
1605
|
getKey: i
|
|
1606
1606
|
});
|
|
1607
1607
|
this.componentStructure = r;
|
|
1608
|
-
const l =
|
|
1608
|
+
const l = pi({ $attrs: e, componentData: n });
|
|
1609
1609
|
return r.render(pa, l);
|
|
1610
1610
|
} catch (t) {
|
|
1611
1611
|
return this.error = !0, pa("pre", { style: { color: "red" } }, t.stack);
|
|
1612
1612
|
}
|
|
1613
1613
|
},
|
|
1614
1614
|
created() {
|
|
1615
|
-
this.list !== null && this.modelValue !== null &&
|
|
1615
|
+
this.list !== null && this.modelValue !== null && ni.error(
|
|
1616
1616
|
"modelValue and list props are mutually exclusive! Please set one or another."
|
|
1617
1617
|
);
|
|
1618
1618
|
},
|
|
@@ -1621,12 +1621,12 @@ const vi = {
|
|
|
1621
1621
|
return;
|
|
1622
1622
|
const { $attrs: t, $el: e, componentStructure: a } = this;
|
|
1623
1623
|
a.updated();
|
|
1624
|
-
const n =
|
|
1624
|
+
const n = mi({
|
|
1625
1625
|
$attrs: t,
|
|
1626
1626
|
callBackBuilder: {
|
|
1627
|
-
manageAndEmit: (i) =>
|
|
1628
|
-
emit: (i) =>
|
|
1629
|
-
manage: (i) =>
|
|
1627
|
+
manageAndEmit: (i) => vi.call(this, i),
|
|
1628
|
+
emit: (i) => An.bind(this, i),
|
|
1629
|
+
manage: (i) => Sn.call(this, i)
|
|
1630
1630
|
}
|
|
1631
1631
|
}), o = e.nodeType === 1 ? e : e.parentElement;
|
|
1632
1632
|
this._sortable = new E(o, n), this.targetDomElement = o, o.__draggable_component__ = this;
|
|
@@ -1651,7 +1651,7 @@ const vi = {
|
|
|
1651
1651
|
$attrs: {
|
|
1652
1652
|
handler(t) {
|
|
1653
1653
|
const { _sortable: e } = this;
|
|
1654
|
-
e &&
|
|
1654
|
+
e && En(t).forEach(([a, n]) => {
|
|
1655
1655
|
e.option(a, n);
|
|
1656
1656
|
});
|
|
1657
1657
|
},
|
|
@@ -1666,7 +1666,7 @@ const vi = {
|
|
|
1666
1666
|
return t.__draggable_component__;
|
|
1667
1667
|
},
|
|
1668
1668
|
emitChanges(t) {
|
|
1669
|
-
|
|
1669
|
+
on(() => this.$emit("change", t));
|
|
1670
1670
|
},
|
|
1671
1671
|
alterList(t) {
|
|
1672
1672
|
if (this.list) {
|
|
@@ -1835,13 +1835,13 @@ const vi = {
|
|
|
1835
1835
|
],
|
|
1836
1836
|
group: "member"
|
|
1837
1837
|
}
|
|
1838
|
-
],
|
|
1838
|
+
], xi = {
|
|
1839
1839
|
paddingTop: "0px",
|
|
1840
1840
|
paddingBottom: "0px",
|
|
1841
1841
|
paddingLeft: "0px",
|
|
1842
1842
|
paddingRight: "0px",
|
|
1843
1843
|
backgroundColor: "#FFFFFF"
|
|
1844
|
-
},
|
|
1844
|
+
}, wi = {
|
|
1845
1845
|
containerStyles: {
|
|
1846
1846
|
paddingTop: "0px",
|
|
1847
1847
|
paddingBottom: "0px",
|
|
@@ -1876,7 +1876,7 @@ const vi = {
|
|
|
1876
1876
|
height: t.height ?? "auto",
|
|
1877
1877
|
boxShadow: t.boxShadow ?? "none"
|
|
1878
1878
|
}
|
|
1879
|
-
}),
|
|
1879
|
+
}), Ii = {
|
|
1880
1880
|
...Te({
|
|
1881
1881
|
marginLeft: "12px",
|
|
1882
1882
|
marginRight: "12px",
|
|
@@ -1902,7 +1902,7 @@ const vi = {
|
|
|
1902
1902
|
// underline, line-through
|
|
1903
1903
|
}
|
|
1904
1904
|
}
|
|
1905
|
-
},
|
|
1905
|
+
}, Ei = {
|
|
1906
1906
|
...Te({
|
|
1907
1907
|
marginLeft: "12px",
|
|
1908
1908
|
marginRight: "12px",
|
|
@@ -1970,7 +1970,7 @@ const vi = {
|
|
|
1970
1970
|
itemsPerRow: 3,
|
|
1971
1971
|
iconColor: "#ff7823",
|
|
1972
1972
|
textColor: "#000000"
|
|
1973
|
-
},
|
|
1973
|
+
}, Ai = {
|
|
1974
1974
|
...Te({
|
|
1975
1975
|
marginLeft: "0px",
|
|
1976
1976
|
marginRight: "0px",
|
|
@@ -1988,7 +1988,7 @@ const vi = {
|
|
|
1988
1988
|
isExternal: !1
|
|
1989
1989
|
},
|
|
1990
1990
|
objectFit: "cover"
|
|
1991
|
-
},
|
|
1991
|
+
}, Si = {
|
|
1992
1992
|
...Te({
|
|
1993
1993
|
paddingTop: "0px",
|
|
1994
1994
|
paddingBottom: "0px",
|
|
@@ -2023,7 +2023,7 @@ const vi = {
|
|
|
2023
2023
|
autoRotation: !0,
|
|
2024
2024
|
rotationInterval: "3s",
|
|
2025
2025
|
objectFit: "cover"
|
|
2026
|
-
},
|
|
2026
|
+
}, Ln = {
|
|
2027
2027
|
memberImage: "",
|
|
2028
2028
|
memberName: "Member",
|
|
2029
2029
|
memberTierName: "Tier 1",
|
|
@@ -2032,7 +2032,7 @@ const vi = {
|
|
|
2032
2032
|
memberTitles: ["Title 1", "Title 2"],
|
|
2033
2033
|
memberCurrentTierTotal: 1050,
|
|
2034
2034
|
memberPointToNextTier: 50
|
|
2035
|
-
},
|
|
2035
|
+
}, Bi = {
|
|
2036
2036
|
...Te({
|
|
2037
2037
|
marginLeft: "12px",
|
|
2038
2038
|
marginRight: "12px",
|
|
@@ -2043,7 +2043,7 @@ const vi = {
|
|
|
2043
2043
|
borderRadius: "12px",
|
|
2044
2044
|
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)"
|
|
2045
2045
|
}),
|
|
2046
|
-
data:
|
|
2046
|
+
data: Ln,
|
|
2047
2047
|
showCredit: !0,
|
|
2048
2048
|
showPoints: !0,
|
|
2049
2049
|
showTier: !0,
|
|
@@ -2051,7 +2051,7 @@ const vi = {
|
|
|
2051
2051
|
signedIn: !0,
|
|
2052
2052
|
designStyle: 1,
|
|
2053
2053
|
showMemberQr: !0
|
|
2054
|
-
},
|
|
2054
|
+
}, Li = {
|
|
2055
2055
|
...Te({
|
|
2056
2056
|
marginLeft: "12px",
|
|
2057
2057
|
marginRight: "12px",
|
|
@@ -2074,7 +2074,7 @@ const vi = {
|
|
|
2074
2074
|
textColor: "#1C1C1E",
|
|
2075
2075
|
iconColor: "#FF7823"
|
|
2076
2076
|
}
|
|
2077
|
-
},
|
|
2077
|
+
}, qa = (t) => t, Di = {
|
|
2078
2078
|
...Te({
|
|
2079
2079
|
marginLeft: "12px",
|
|
2080
2080
|
marginRight: "12px",
|
|
@@ -2085,12 +2085,12 @@ const vi = {
|
|
|
2085
2085
|
borderRadius: "12px",
|
|
2086
2086
|
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)"
|
|
2087
2087
|
}),
|
|
2088
|
-
label: "
|
|
2089
|
-
sublabel: "
|
|
2088
|
+
label: qa("user.branches.ourOutlets"),
|
|
2089
|
+
sublabel: qa("user.branches.findStoreNearYou"),
|
|
2090
2090
|
iconColor: "#FF7823",
|
|
2091
2091
|
labelColor: "#1C1C1E",
|
|
2092
2092
|
sublabelColor: "#6B6B6B"
|
|
2093
|
-
},
|
|
2093
|
+
}, Dn = [
|
|
2094
2094
|
{
|
|
2095
2095
|
thumbnailPhoto: "",
|
|
2096
2096
|
restaurantName: "Coffee Restaurant",
|
|
@@ -2109,7 +2109,7 @@ const vi = {
|
|
|
2109
2109
|
orderDate: "2024-03-12T05:19:59.880Z",
|
|
2110
2110
|
orderType: "DELIVERY"
|
|
2111
2111
|
}
|
|
2112
|
-
],
|
|
2112
|
+
], Fi = {
|
|
2113
2113
|
...Te({
|
|
2114
2114
|
marginLeft: "0px",
|
|
2115
2115
|
marginRight: "0px",
|
|
@@ -2120,9 +2120,9 @@ const vi = {
|
|
|
2120
2120
|
borderRadius: "12px",
|
|
2121
2121
|
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)"
|
|
2122
2122
|
}),
|
|
2123
|
-
data:
|
|
2123
|
+
data: Dn,
|
|
2124
2124
|
signedIn: !0
|
|
2125
|
-
},
|
|
2125
|
+
}, Ni = {
|
|
2126
2126
|
memberImage: "",
|
|
2127
2127
|
memberName: "Member",
|
|
2128
2128
|
memberTierName: "Tier 1",
|
|
@@ -2136,7 +2136,7 @@ const vi = {
|
|
|
2136
2136
|
tiers: ["Tier 1", "Tier 2", "Tier 3", "Tier 4"],
|
|
2137
2137
|
titles: ["Title 1", "Title 2", "Title 3", "Title 4", "Title 5"]
|
|
2138
2138
|
}
|
|
2139
|
-
},
|
|
2139
|
+
}, ki = {
|
|
2140
2140
|
...Te({
|
|
2141
2141
|
marginLeft: "12px",
|
|
2142
2142
|
marginRight: "12px",
|
|
@@ -2147,16 +2147,16 @@ const vi = {
|
|
|
2147
2147
|
borderRadius: "12px",
|
|
2148
2148
|
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)"
|
|
2149
2149
|
}),
|
|
2150
|
-
data:
|
|
2150
|
+
data: Ni,
|
|
2151
2151
|
showTier: !0,
|
|
2152
2152
|
showTitle: !0,
|
|
2153
2153
|
tierColor: "#1F7735",
|
|
2154
2154
|
titleColor: "#FF7823",
|
|
2155
2155
|
buttonTextColor: "#6b6b6b",
|
|
2156
2156
|
buttonFillColor: "#f2f2f7"
|
|
2157
|
-
}, ki = {
|
|
2158
|
-
cards: []
|
|
2159
2157
|
}, Oi = {
|
|
2158
|
+
cards: []
|
|
2159
|
+
}, Pi = {
|
|
2160
2160
|
...Te({
|
|
2161
2161
|
marginLeft: "12px",
|
|
2162
2162
|
marginRight: "12px",
|
|
@@ -2167,10 +2167,10 @@ const vi = {
|
|
|
2167
2167
|
borderRadius: "12px",
|
|
2168
2168
|
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)"
|
|
2169
2169
|
}),
|
|
2170
|
-
data:
|
|
2170
|
+
data: Oi,
|
|
2171
2171
|
cardFillColor: "#F2F2F7",
|
|
2172
2172
|
cardTextColor: "#6B6B6B"
|
|
2173
|
-
},
|
|
2173
|
+
}, Mi = {
|
|
2174
2174
|
memberImage: "",
|
|
2175
2175
|
memberName: "Member",
|
|
2176
2176
|
memberPhone: "+60123456789",
|
|
@@ -2178,7 +2178,7 @@ const vi = {
|
|
|
2178
2178
|
memberPoints: 1e3,
|
|
2179
2179
|
memberCurrentTierTotal: 1050,
|
|
2180
2180
|
memberPointToNextTier: 50
|
|
2181
|
-
},
|
|
2181
|
+
}, Ri = {
|
|
2182
2182
|
...Te({
|
|
2183
2183
|
marginLeft: "12px",
|
|
2184
2184
|
marginRight: "12px",
|
|
@@ -2190,12 +2190,12 @@ const vi = {
|
|
|
2190
2190
|
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)",
|
|
2191
2191
|
backgroundColor: "#FFFFFF"
|
|
2192
2192
|
}),
|
|
2193
|
-
data:
|
|
2193
|
+
data: Mi,
|
|
2194
2194
|
thumbnailColorFillColor: "#FBE5CB",
|
|
2195
2195
|
thumbnailTextColor: "#FF7823",
|
|
2196
2196
|
textColor: "#1C1C1E",
|
|
2197
2197
|
qrCodeColor: "#1C1C1E"
|
|
2198
|
-
},
|
|
2198
|
+
}, Fn = {
|
|
2199
2199
|
member: {
|
|
2200
2200
|
_id: "666ada11ac413694cc0973b7",
|
|
2201
2201
|
name: "kaizhe",
|
|
@@ -4235,13 +4235,13 @@ const vi = {
|
|
|
4235
4235
|
amountExpiring: 402,
|
|
4236
4236
|
isLoading: !1,
|
|
4237
4237
|
isCompleted: !1
|
|
4238
|
-
}, Ri = {
|
|
4239
|
-
data: Dn,
|
|
4240
|
-
designStyle: 1
|
|
4241
4238
|
}, $i = {
|
|
4242
|
-
data:
|
|
4239
|
+
data: Fn,
|
|
4243
4240
|
designStyle: 1
|
|
4244
4241
|
}, Zi = {
|
|
4242
|
+
data: Fn,
|
|
4243
|
+
designStyle: 1
|
|
4244
|
+
}, Ui = {
|
|
4245
4245
|
memberState: {
|
|
4246
4246
|
member: {
|
|
4247
4247
|
_id: "666ada11ac413694cc0973b7",
|
|
@@ -5149,7 +5149,7 @@ const vi = {
|
|
|
5149
5149
|
}
|
|
5150
5150
|
}
|
|
5151
5151
|
}
|
|
5152
|
-
},
|
|
5152
|
+
}, Vi = {
|
|
5153
5153
|
data: {
|
|
5154
5154
|
tableData: [
|
|
5155
5155
|
["Invites", "Rewards"],
|
|
@@ -5164,7 +5164,7 @@ const vi = {
|
|
|
5164
5164
|
label: "Your friends has to sign up with your referral code or link and complete the criterias to progress"
|
|
5165
5165
|
}
|
|
5166
5166
|
]
|
|
5167
|
-
},
|
|
5167
|
+
}, Hi = {
|
|
5168
5168
|
data: {
|
|
5169
5169
|
member: {
|
|
5170
5170
|
referralCode: "h62yzbGh"
|
|
@@ -5279,30 +5279,30 @@ const vi = {
|
|
|
5279
5279
|
}
|
|
5280
5280
|
}, Ba = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5281
5281
|
__proto__: null,
|
|
5282
|
-
BranchList:
|
|
5283
|
-
ButtonList:
|
|
5284
|
-
Container:
|
|
5285
|
-
Homepage:
|
|
5286
|
-
ImageCarousel:
|
|
5287
|
-
ImageDisplay:
|
|
5288
|
-
MemberAchievements:
|
|
5289
|
-
MemberCard:
|
|
5290
|
-
MemberCards:
|
|
5291
|
-
MemberSummary:
|
|
5292
|
-
OrderHistoryCard:
|
|
5293
|
-
OrderMethod:
|
|
5294
|
-
TextDisplay:
|
|
5295
|
-
_Credit:
|
|
5296
|
-
_MemberProfile:
|
|
5297
|
-
_Point:
|
|
5298
|
-
_Referral:
|
|
5299
|
-
_ReferralTutorial:
|
|
5282
|
+
BranchList: Di,
|
|
5283
|
+
ButtonList: Ei,
|
|
5284
|
+
Container: wi,
|
|
5285
|
+
Homepage: xi,
|
|
5286
|
+
ImageCarousel: Si,
|
|
5287
|
+
ImageDisplay: Ai,
|
|
5288
|
+
MemberAchievements: ki,
|
|
5289
|
+
MemberCard: Bi,
|
|
5290
|
+
MemberCards: Pi,
|
|
5291
|
+
MemberSummary: Ri,
|
|
5292
|
+
OrderHistoryCard: Fi,
|
|
5293
|
+
OrderMethod: Li,
|
|
5294
|
+
TextDisplay: Ii,
|
|
5295
|
+
_Credit: $i,
|
|
5296
|
+
_MemberProfile: Ui,
|
|
5297
|
+
_Point: Zi,
|
|
5298
|
+
_Referral: Hi,
|
|
5299
|
+
_ReferralTutorial: Vi
|
|
5300
5300
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5301
|
-
function
|
|
5302
|
-
const e = (a) => Array.isArray(a) ? a.map((n) => e(n)) :
|
|
5301
|
+
function Yi(t) {
|
|
5302
|
+
const e = (a) => Array.isArray(a) ? a.map((n) => e(n)) : eo(a) || to(a) || ao(a) ? e(no(a)) : a && typeof a == "object" ? Object.keys(a).reduce((n, o) => (n[o] = e(a[o]), n), {}) : a;
|
|
5303
5303
|
return e(t);
|
|
5304
5304
|
}
|
|
5305
|
-
const $e =
|
|
5305
|
+
const $e = bo("editor", () => {
|
|
5306
5306
|
const t = ne({
|
|
5307
5307
|
node: [],
|
|
5308
5308
|
selectedNode: null,
|
|
@@ -5316,13 +5316,13 @@ const $e = mo("editor", () => {
|
|
|
5316
5316
|
t.value.firstFetchedData = JSON.stringify(c), t.value.node = [c];
|
|
5317
5317
|
}
|
|
5318
5318
|
async function n(c, d) {
|
|
5319
|
-
await
|
|
5319
|
+
await mo.getTemplateById(c, "drafts", d).then((u) => {
|
|
5320
5320
|
u && (a(u[0]), o(u[0]));
|
|
5321
5321
|
}).catch(async (u) => {
|
|
5322
5322
|
var g;
|
|
5323
5323
|
const m = vt(), p = ze();
|
|
5324
|
-
if (u instanceof
|
|
5325
|
-
const f =
|
|
5324
|
+
if (u instanceof So && ((g = u.response) == null ? void 0 : g.data) == "Template not found") {
|
|
5325
|
+
const f = go.find(
|
|
5326
5326
|
(A) => A.templateId == d
|
|
5327
5327
|
);
|
|
5328
5328
|
if (f) {
|
|
@@ -5396,7 +5396,7 @@ function vt() {
|
|
|
5396
5396
|
}
|
|
5397
5397
|
function o() {
|
|
5398
5398
|
if (t.state.copied) {
|
|
5399
|
-
const i = structuredClone(
|
|
5399
|
+
const i = structuredClone(Yi(t.state.copied));
|
|
5400
5400
|
i._id = Ma();
|
|
5401
5401
|
const r = t.state.node[0].children.findIndex(
|
|
5402
5402
|
(s) => {
|
|
@@ -5417,7 +5417,7 @@ function vt() {
|
|
|
5417
5417
|
pasteNode: o
|
|
5418
5418
|
};
|
|
5419
5419
|
}
|
|
5420
|
-
const
|
|
5420
|
+
const zi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-color-neutral-white py-16 px-24 border-r border-fm-color-neutral-gray-200 overflow-y-auto" }, ji = { class: "flex flex-col gap-12" }, Wi = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Xi = { class: "flex flex-col gap-8 justify-center items-center bg-fm-color-neutral-gray-100 py-12 px-16 cursor-grab rounded-md" }, Ji = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary text-center" }, Gi = /* @__PURE__ */ ue({
|
|
5421
5421
|
__name: "ElementSidebar",
|
|
5422
5422
|
setup(t) {
|
|
5423
5423
|
const e = vt(), a = ze(), { t: n } = je(), o = oe(
|
|
@@ -5432,10 +5432,10 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5432
5432
|
const r = oe(() => Ka.filter(
|
|
5433
5433
|
(l) => l.group == o.value || l.group == "all"
|
|
5434
5434
|
));
|
|
5435
|
-
return (l, s) => (D(), Z("div",
|
|
5436
|
-
(D(!0), Z(Re, null, ht(r.value, (c, d) => (D(), Z("section",
|
|
5437
|
-
N("div",
|
|
5438
|
-
w(x(
|
|
5435
|
+
return (l, s) => (D(), Z("div", zi, [
|
|
5436
|
+
(D(!0), Z(Re, null, ht(r.value, (c, d) => (D(), Z("section", ji, [
|
|
5437
|
+
N("div", Wi, de(x(n)(c.title)), 1),
|
|
5438
|
+
w(x(Bn), {
|
|
5439
5439
|
list: c.children,
|
|
5440
5440
|
group: { name: "components", pull: "clone", put: !1 },
|
|
5441
5441
|
sort: !1,
|
|
@@ -5444,27 +5444,27 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5444
5444
|
class: "grid grid-cols-2 gap-8"
|
|
5445
5445
|
}, {
|
|
5446
5446
|
item: P(({ element: u }) => [
|
|
5447
|
-
N("div",
|
|
5448
|
-
w(
|
|
5447
|
+
N("div", Xi, [
|
|
5448
|
+
w(yo, {
|
|
5449
5449
|
class: "text-[24px] text-fm-color-typo-secondary",
|
|
5450
5450
|
name: u.icon
|
|
5451
5451
|
}, null, 8, ["name"]),
|
|
5452
|
-
N("div",
|
|
5452
|
+
N("div", Ji, de(x(n)(u.title)), 1)
|
|
5453
5453
|
])
|
|
5454
5454
|
]),
|
|
5455
5455
|
_: 2
|
|
5456
5456
|
}, 1032, ["list"]),
|
|
5457
|
-
d !== x(Ka).length - 1 ? (D(), ee(
|
|
5457
|
+
d !== x(Ka).length - 1 ? (D(), ee(ln, {
|
|
5458
5458
|
key: 0,
|
|
5459
5459
|
class: "mt-12"
|
|
5460
5460
|
})) : G("", !0)
|
|
5461
5461
|
]))), 256))
|
|
5462
5462
|
]));
|
|
5463
5463
|
}
|
|
5464
|
-
}),
|
|
5464
|
+
}), Ki = { 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" }, qi = /* @__PURE__ */ ue({
|
|
5465
5465
|
__name: "EditorFloatingToobar",
|
|
5466
5466
|
setup(t) {
|
|
5467
|
-
const e = $e(), { state: a } =
|
|
5467
|
+
const e = $e(), { state: a } = fo(e), n = vt(), o = oe(
|
|
5468
5468
|
() => a.value.selectedNode && a.value.node.length > 0
|
|
5469
5469
|
), i = [
|
|
5470
5470
|
// {
|
|
@@ -5506,7 +5506,7 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5506
5506
|
];
|
|
5507
5507
|
return (r, l) => {
|
|
5508
5508
|
const s = W("FmButton");
|
|
5509
|
-
return D(), Z("div",
|
|
5509
|
+
return D(), Z("div", Ki, [
|
|
5510
5510
|
(D(), Z(Re, null, ht(i, (c) => w(s, {
|
|
5511
5511
|
size: "md",
|
|
5512
5512
|
"prepend-icon": c.icon,
|
|
@@ -5518,10 +5518,10 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5518
5518
|
]);
|
|
5519
5519
|
};
|
|
5520
5520
|
}
|
|
5521
|
-
}),
|
|
5521
|
+
}), Qi = { class: "flex items-center gap-8 select-none px-8 py-8 rounded-md active:bg-fm-color-opacity-md transition-all duration-500 cursor-pointer" }, er = { class: "bg-fm-color-neutral-white px-8 py-8 border border-fm-color-opacity-sm rounded-sm" }, tr = { class: "py-8 px-12 w-full flex items-center justify-between gap-8 transition-all duration-500" }, ar = { class: "flex items-center gap-8" }, nr = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, or = { class: "flex items-center gap-8" }, ir = { class: "overflow-y-auto" }, rr = { class: "flex items-center gap-8" }, lr = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, sr = { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, cr = /* @__PURE__ */ ue({
|
|
5522
5522
|
__name: "TemplatePicker",
|
|
5523
5523
|
setup(t) {
|
|
5524
|
-
const e = ne(!1), a = ne(""), n = ne(""), o = Ye(), i = ze(), r = $e(), l = vt(), s =
|
|
5524
|
+
const e = ne(!1), a = ne(""), n = ne(""), o = Ye(), i = ze(), r = $e(), l = vt(), s = sn(), c = Co(), d = wa(), { t: u } = je(), m = oe(
|
|
5525
5525
|
() => i.state.allTemplates.filter(
|
|
5526
5526
|
(b) => {
|
|
5527
5527
|
var T;
|
|
@@ -5633,7 +5633,7 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5633
5633
|
isLoading: _
|
|
5634
5634
|
},
|
|
5635
5635
|
secondaryActions: { text: u("brand.template.picker.cancel"), close: !0 },
|
|
5636
|
-
contentComponent: pa(
|
|
5636
|
+
contentComponent: pa(_o.FmTextField, {
|
|
5637
5637
|
modelValue: T,
|
|
5638
5638
|
"onUpdate:modelValue": (S) => T.value = S
|
|
5639
5639
|
})
|
|
@@ -5709,7 +5709,7 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5709
5709
|
"popover-button": P(() => {
|
|
5710
5710
|
var F, R;
|
|
5711
5711
|
return [
|
|
5712
|
-
N("div",
|
|
5712
|
+
N("div", Qi, [
|
|
5713
5713
|
(F = x(i).state.selectedTemplate) != null && F.isPublished && ![
|
|
5714
5714
|
x(i).state.activeTemplateId,
|
|
5715
5715
|
x(i).state.activeMemberTemplateId
|
|
@@ -5759,10 +5759,10 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5759
5759
|
];
|
|
5760
5760
|
}),
|
|
5761
5761
|
default: P(() => [
|
|
5762
|
-
N("div",
|
|
5762
|
+
N("div", er, [
|
|
5763
5763
|
x(i).state.selectedTemplate ? (D(), Z(Re, { key: 0 }, [
|
|
5764
|
-
N("div",
|
|
5765
|
-
N("div",
|
|
5764
|
+
N("div", tr, [
|
|
5765
|
+
N("div", ar, [
|
|
5766
5766
|
x(i).state.selectedTemplate.isPublished && ![
|
|
5767
5767
|
x(i).state.activeTemplateId,
|
|
5768
5768
|
x(i).state.activeMemberTemplateId
|
|
@@ -5800,9 +5800,9 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5800
5800
|
]),
|
|
5801
5801
|
_: 1
|
|
5802
5802
|
}, 8, ["class"])) : G("", !0),
|
|
5803
|
-
N("span",
|
|
5803
|
+
N("span", nr, de(x(i).state.selectedTemplate.templateAlias), 1)
|
|
5804
5804
|
]),
|
|
5805
|
-
N("div",
|
|
5805
|
+
N("div", or, [
|
|
5806
5806
|
w(_, {
|
|
5807
5807
|
name: "edit",
|
|
5808
5808
|
outline: "",
|
|
@@ -5825,7 +5825,7 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5825
5825
|
class: "p-4",
|
|
5826
5826
|
placeholder: x(u)("brand.template.picker.search")
|
|
5827
5827
|
}, null, 8, ["model-value", "placeholder"]),
|
|
5828
|
-
N("div",
|
|
5828
|
+
N("div", ir, [
|
|
5829
5829
|
(D(!0), Z(Re, null, ht(m.value, (F, R) => {
|
|
5830
5830
|
var ve;
|
|
5831
5831
|
return D(), Z(Re, {
|
|
@@ -5881,7 +5881,7 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5881
5881
|
}, 1032, ["class"])) : G("", !0)
|
|
5882
5882
|
]),
|
|
5883
5883
|
append: P(() => [
|
|
5884
|
-
Wt(N("div",
|
|
5884
|
+
Wt(N("div", rr, [
|
|
5885
5885
|
w(_, {
|
|
5886
5886
|
outline: "",
|
|
5887
5887
|
name: "edit",
|
|
@@ -5927,7 +5927,7 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5927
5927
|
})
|
|
5928
5928
|
]),
|
|
5929
5929
|
label: P(() => [
|
|
5930
|
-
N("div",
|
|
5930
|
+
N("div", lr, de(x(u)("brand.template.picker.addNewTemplate")), 1)
|
|
5931
5931
|
]),
|
|
5932
5932
|
_: 1
|
|
5933
5933
|
}),
|
|
@@ -5941,7 +5941,7 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5941
5941
|
})
|
|
5942
5942
|
]),
|
|
5943
5943
|
label: P(() => [
|
|
5944
|
-
N("div",
|
|
5944
|
+
N("div", sr, de(x(u)("brand.template.picker.addMemberTemplate")), 1)
|
|
5945
5945
|
]),
|
|
5946
5946
|
_: 1
|
|
5947
5947
|
})
|
|
@@ -5951,7 +5951,7 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5951
5951
|
}, 8, ["show-popover"]);
|
|
5952
5952
|
};
|
|
5953
5953
|
}
|
|
5954
|
-
}),
|
|
5954
|
+
}), dr = { class: "w-[280px]" }, ur = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary py-4 px-8" }, pr = /* @__PURE__ */ ue({
|
|
5955
5955
|
__name: "TemplateShareMenu",
|
|
5956
5956
|
setup(t) {
|
|
5957
5957
|
const e = ne(!1), a = $e(), n = Ia(), o = ze(), i = Ye(), r = wa(), { t: l } = je(), { namespace: s } = Ye(), c = [
|
|
@@ -6115,8 +6115,8 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
6115
6115
|
default: P(() => {
|
|
6116
6116
|
var B;
|
|
6117
6117
|
return [
|
|
6118
|
-
N("div",
|
|
6119
|
-
N("div",
|
|
6118
|
+
N("div", dr, [
|
|
6119
|
+
N("div", ur, de(x(l)("brand.template.shareMenu.publishThisTemplate")), 1),
|
|
6120
6120
|
(D(!0), Z(Re, null, ht(p.value, (S) => (D(), Z(Re, null, [
|
|
6121
6121
|
w(b, {
|
|
6122
6122
|
inset: "",
|
|
@@ -6182,11 +6182,11 @@ const Yi = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
6182
6182
|
};
|
|
6183
6183
|
}
|
|
6184
6184
|
});
|
|
6185
|
-
var Ct = {},
|
|
6185
|
+
var Ct = {}, mr = function() {
|
|
6186
6186
|
return typeof Promise == "function" && Promise.prototype && Promise.prototype.then;
|
|
6187
|
-
},
|
|
6187
|
+
}, Nn = {}, pe = {};
|
|
6188
6188
|
let La;
|
|
6189
|
-
const
|
|
6189
|
+
const br = [
|
|
6190
6190
|
0,
|
|
6191
6191
|
// Not used
|
|
6192
6192
|
26,
|
|
@@ -6236,7 +6236,7 @@ pe.getSymbolSize = function(e) {
|
|
|
6236
6236
|
return e * 4 + 17;
|
|
6237
6237
|
};
|
|
6238
6238
|
pe.getSymbolTotalCodewords = function(e) {
|
|
6239
|
-
return
|
|
6239
|
+
return br[e];
|
|
6240
6240
|
};
|
|
6241
6241
|
pe.getBCHDigit = function(t) {
|
|
6242
6242
|
let e = 0;
|
|
@@ -6290,10 +6290,10 @@ var Ht = {};
|
|
|
6290
6290
|
}
|
|
6291
6291
|
};
|
|
6292
6292
|
})(Ht);
|
|
6293
|
-
function
|
|
6293
|
+
function kn() {
|
|
6294
6294
|
this.buffer = [], this.length = 0;
|
|
6295
6295
|
}
|
|
6296
|
-
|
|
6296
|
+
kn.prototype = {
|
|
6297
6297
|
get: function(t) {
|
|
6298
6298
|
const e = Math.floor(t / 8);
|
|
6299
6299
|
return (this.buffer[e] >>> 7 - t % 8 & 1) === 1;
|
|
@@ -6310,7 +6310,7 @@ Nn.prototype = {
|
|
|
6310
6310
|
this.buffer.length <= e && this.buffer.push(0), t && (this.buffer[e] |= 128 >>> this.length % 8), this.length++;
|
|
6311
6311
|
}
|
|
6312
6312
|
};
|
|
6313
|
-
var
|
|
6313
|
+
var fr = kn;
|
|
6314
6314
|
function _t(t) {
|
|
6315
6315
|
if (!t || t < 1)
|
|
6316
6316
|
throw new Error("BitMatrix size must be defined and greater than 0");
|
|
@@ -6329,7 +6329,7 @@ _t.prototype.xor = function(t, e, a) {
|
|
|
6329
6329
|
_t.prototype.isReserved = function(t, e) {
|
|
6330
6330
|
return this.reservedBit[t * this.size + e];
|
|
6331
6331
|
};
|
|
6332
|
-
var
|
|
6332
|
+
var gr = _t, On = {};
|
|
6333
6333
|
(function(t) {
|
|
6334
6334
|
const e = pe.getSymbolSize;
|
|
6335
6335
|
t.getRowColCoords = function(n) {
|
|
@@ -6347,21 +6347,21 @@ var fr = _t, kn = {};
|
|
|
6347
6347
|
l === r - 1 && s === 0 || o.push([i[l], i[s]]);
|
|
6348
6348
|
return o;
|
|
6349
6349
|
};
|
|
6350
|
-
})(
|
|
6351
|
-
var
|
|
6352
|
-
const
|
|
6353
|
-
|
|
6354
|
-
const a =
|
|
6350
|
+
})(On);
|
|
6351
|
+
var Pn = {};
|
|
6352
|
+
const hr = pe.getSymbolSize, Qa = 7;
|
|
6353
|
+
Pn.getPositions = function(e) {
|
|
6354
|
+
const a = hr(e);
|
|
6355
6355
|
return [
|
|
6356
6356
|
// top-left
|
|
6357
6357
|
[0, 0],
|
|
6358
6358
|
// top-right
|
|
6359
|
-
[a -
|
|
6359
|
+
[a - Qa, 0],
|
|
6360
6360
|
// bottom-left
|
|
6361
|
-
[0, a -
|
|
6361
|
+
[0, a - Qa]
|
|
6362
6362
|
];
|
|
6363
6363
|
};
|
|
6364
|
-
var
|
|
6364
|
+
var Mn = {};
|
|
6365
6365
|
(function(t) {
|
|
6366
6366
|
t.Patterns = {
|
|
6367
6367
|
PATTERN000: 0,
|
|
@@ -6456,7 +6456,7 @@ var Pn = {};
|
|
|
6456
6456
|
}
|
|
6457
6457
|
return l;
|
|
6458
6458
|
};
|
|
6459
|
-
})(
|
|
6459
|
+
})(Mn);
|
|
6460
6460
|
var Yt = {};
|
|
6461
6461
|
const Me = Ht, St = [
|
|
6462
6462
|
// L M Q H
|
|
@@ -6811,7 +6811,7 @@ Yt.getTotalCodewordsCount = function(e, a) {
|
|
|
6811
6811
|
return;
|
|
6812
6812
|
}
|
|
6813
6813
|
};
|
|
6814
|
-
var
|
|
6814
|
+
var Rn = {}, zt = {};
|
|
6815
6815
|
const ft = new Uint8Array(512), Zt = new Uint8Array(256);
|
|
6816
6816
|
(function() {
|
|
6817
6817
|
let e = 1;
|
|
@@ -6855,50 +6855,50 @@ zt.mul = function(e, a) {
|
|
|
6855
6855
|
o = t.mul(o, new Uint8Array([1, e.exp(i)]));
|
|
6856
6856
|
return o;
|
|
6857
6857
|
};
|
|
6858
|
-
})(
|
|
6859
|
-
const
|
|
6858
|
+
})(Rn);
|
|
6859
|
+
const $n = Rn;
|
|
6860
6860
|
function Da(t) {
|
|
6861
6861
|
this.genPoly = void 0, this.degree = t, this.degree && this.initialize(this.degree);
|
|
6862
6862
|
}
|
|
6863
6863
|
Da.prototype.initialize = function(e) {
|
|
6864
|
-
this.degree = e, this.genPoly =
|
|
6864
|
+
this.degree = e, this.genPoly = $n.generateECPolynomial(this.degree);
|
|
6865
6865
|
};
|
|
6866
6866
|
Da.prototype.encode = function(e) {
|
|
6867
6867
|
if (!this.genPoly)
|
|
6868
6868
|
throw new Error("Encoder not initialized");
|
|
6869
6869
|
const a = new Uint8Array(e.length + this.degree);
|
|
6870
6870
|
a.set(e);
|
|
6871
|
-
const n =
|
|
6871
|
+
const n = $n.mod(a, this.genPoly), o = this.degree - n.length;
|
|
6872
6872
|
if (o > 0) {
|
|
6873
6873
|
const i = new Uint8Array(this.degree);
|
|
6874
6874
|
return i.set(n, o), i;
|
|
6875
6875
|
}
|
|
6876
6876
|
return n;
|
|
6877
6877
|
};
|
|
6878
|
-
var
|
|
6878
|
+
var yr = Da, Zn = {}, Ze = {}, Fa = {};
|
|
6879
6879
|
Fa.isValid = function(e) {
|
|
6880
6880
|
return !isNaN(e) && e >= 1 && e <= 40;
|
|
6881
6881
|
};
|
|
6882
6882
|
var Ie = {};
|
|
6883
|
-
const
|
|
6883
|
+
const Un = "[0-9]+", Tr = "[A-Z $%*+\\-./:]+";
|
|
6884
6884
|
let gt = "(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";
|
|
6885
6885
|
gt = gt.replace(/u/g, "\\u");
|
|
6886
|
-
const
|
|
6886
|
+
const vr = "(?:(?![A-Z0-9 $%*+\\-./:]|" + gt + `)(?:.|[\r
|
|
6887
6887
|
]))+`;
|
|
6888
6888
|
Ie.KANJI = new RegExp(gt, "g");
|
|
6889
6889
|
Ie.BYTE_KANJI = new RegExp("[^A-Z0-9 $%*+\\-./:]+", "g");
|
|
6890
|
-
Ie.BYTE = new RegExp(
|
|
6891
|
-
Ie.NUMERIC = new RegExp(
|
|
6892
|
-
Ie.ALPHANUMERIC = new RegExp(
|
|
6893
|
-
const
|
|
6890
|
+
Ie.BYTE = new RegExp(vr, "g");
|
|
6891
|
+
Ie.NUMERIC = new RegExp(Un, "g");
|
|
6892
|
+
Ie.ALPHANUMERIC = new RegExp(Tr, "g");
|
|
6893
|
+
const Cr = new RegExp("^" + gt + "$"), _r = new RegExp("^" + Un + "$"), xr = new RegExp("^[A-Z0-9 $%*+\\-./:]+$");
|
|
6894
6894
|
Ie.testKanji = function(e) {
|
|
6895
|
-
return
|
|
6895
|
+
return Cr.test(e);
|
|
6896
6896
|
};
|
|
6897
6897
|
Ie.testNumeric = function(e) {
|
|
6898
|
-
return
|
|
6898
|
+
return _r.test(e);
|
|
6899
6899
|
};
|
|
6900
6900
|
Ie.testAlphanumeric = function(e) {
|
|
6901
|
-
return
|
|
6901
|
+
return xr.test(e);
|
|
6902
6902
|
};
|
|
6903
6903
|
(function(t) {
|
|
6904
6904
|
const e = Fa, a = Ie;
|
|
@@ -7021,20 +7021,20 @@ Ie.testAlphanumeric = function(e) {
|
|
|
7021
7021
|
g ^= r << e.getBCHDigit(g) - l;
|
|
7022
7022
|
return p << 12 | g;
|
|
7023
7023
|
};
|
|
7024
|
-
})(
|
|
7025
|
-
var
|
|
7026
|
-
const Ta = pe,
|
|
7027
|
-
|
|
7024
|
+
})(Zn);
|
|
7025
|
+
var Vn = {};
|
|
7026
|
+
const Ta = pe, Hn = 1335, wr = 21522, en = Ta.getBCHDigit(Hn);
|
|
7027
|
+
Vn.getEncodedBits = function(e, a) {
|
|
7028
7028
|
const n = e.bit << 3 | a;
|
|
7029
7029
|
let o = n << 10;
|
|
7030
|
-
for (; Ta.getBCHDigit(o) -
|
|
7031
|
-
o ^=
|
|
7032
|
-
return (n << 10 | o) ^
|
|
7030
|
+
for (; Ta.getBCHDigit(o) - en >= 0; )
|
|
7031
|
+
o ^= Hn << Ta.getBCHDigit(o) - en;
|
|
7032
|
+
return (n << 10 | o) ^ wr;
|
|
7033
7033
|
};
|
|
7034
|
-
var
|
|
7035
|
-
const
|
|
7034
|
+
var Yn = {};
|
|
7035
|
+
const Ir = Ze;
|
|
7036
7036
|
function tt(t) {
|
|
7037
|
-
this.mode =
|
|
7037
|
+
this.mode = Ir.NUMERIC, this.data = t.toString();
|
|
7038
7038
|
}
|
|
7039
7039
|
tt.getBitsLength = function(e) {
|
|
7040
7040
|
return 10 * Math.floor(e / 3) + (e % 3 ? e % 3 * 3 + 1 : 0);
|
|
@@ -7052,8 +7052,8 @@ tt.prototype.write = function(e) {
|
|
|
7052
7052
|
const i = this.data.length - a;
|
|
7053
7053
|
i > 0 && (n = this.data.substr(a), o = parseInt(n, 10), e.put(o, i * 3 + 1));
|
|
7054
7054
|
};
|
|
7055
|
-
var
|
|
7056
|
-
const
|
|
7055
|
+
var Er = tt;
|
|
7056
|
+
const Ar = Ze, ra = [
|
|
7057
7057
|
"0",
|
|
7058
7058
|
"1",
|
|
7059
7059
|
"2",
|
|
@@ -7101,7 +7101,7 @@ const Er = Ze, ra = [
|
|
|
7101
7101
|
":"
|
|
7102
7102
|
];
|
|
7103
7103
|
function at(t) {
|
|
7104
|
-
this.mode =
|
|
7104
|
+
this.mode = Ar.ALPHANUMERIC, this.data = t;
|
|
7105
7105
|
}
|
|
7106
7106
|
at.getBitsLength = function(e) {
|
|
7107
7107
|
return 11 * Math.floor(e / 2) + 6 * (e % 2);
|
|
@@ -7120,10 +7120,10 @@ at.prototype.write = function(e) {
|
|
|
7120
7120
|
}
|
|
7121
7121
|
this.data.length % 2 && e.put(ra.indexOf(this.data[a]), 6);
|
|
7122
7122
|
};
|
|
7123
|
-
var
|
|
7124
|
-
const
|
|
7123
|
+
var Sr = at;
|
|
7124
|
+
const Br = Ze;
|
|
7125
7125
|
function nt(t) {
|
|
7126
|
-
this.mode =
|
|
7126
|
+
this.mode = Br.BYTE, typeof t == "string" ? this.data = new TextEncoder().encode(t) : this.data = new Uint8Array(t);
|
|
7127
7127
|
}
|
|
7128
7128
|
nt.getBitsLength = function(e) {
|
|
7129
7129
|
return e * 8;
|
|
@@ -7138,10 +7138,10 @@ nt.prototype.write = function(t) {
|
|
|
7138
7138
|
for (let e = 0, a = this.data.length; e < a; e++)
|
|
7139
7139
|
t.put(this.data[e], 8);
|
|
7140
7140
|
};
|
|
7141
|
-
var
|
|
7142
|
-
const
|
|
7141
|
+
var Lr = nt;
|
|
7142
|
+
const Dr = Ze, Fr = pe;
|
|
7143
7143
|
function ot(t) {
|
|
7144
|
-
this.mode =
|
|
7144
|
+
this.mode = Dr.KANJI, this.data = t;
|
|
7145
7145
|
}
|
|
7146
7146
|
ot.getBitsLength = function(e) {
|
|
7147
7147
|
return e * 13;
|
|
@@ -7155,7 +7155,7 @@ ot.prototype.getBitsLength = function() {
|
|
|
7155
7155
|
ot.prototype.write = function(t) {
|
|
7156
7156
|
let e;
|
|
7157
7157
|
for (e = 0; e < this.data.length; e++) {
|
|
7158
|
-
let a =
|
|
7158
|
+
let a = Fr.toSJIS(this.data[e]);
|
|
7159
7159
|
if (a >= 33088 && a <= 40956)
|
|
7160
7160
|
a -= 33088;
|
|
7161
7161
|
else if (a >= 57408 && a <= 60351)
|
|
@@ -7168,7 +7168,7 @@ Make sure your charset is UTF-8`
|
|
|
7168
7168
|
a = (a >>> 8 & 255) * 192 + (a & 255), t.put(a, 13);
|
|
7169
7169
|
}
|
|
7170
7170
|
};
|
|
7171
|
-
var
|
|
7171
|
+
var Nr = ot, zn = { exports: {} };
|
|
7172
7172
|
(function(t) {
|
|
7173
7173
|
var e = {
|
|
7174
7174
|
single_source_shortest_paths: function(a, n, o) {
|
|
@@ -7233,10 +7233,10 @@ var Fr = ot, Yn = { exports: {} };
|
|
|
7233
7233
|
}
|
|
7234
7234
|
};
|
|
7235
7235
|
t.exports = e;
|
|
7236
|
-
})(
|
|
7237
|
-
var
|
|
7236
|
+
})(zn);
|
|
7237
|
+
var kr = zn.exports;
|
|
7238
7238
|
(function(t) {
|
|
7239
|
-
const e = Ze, a =
|
|
7239
|
+
const e = Ze, a = Er, n = Sr, o = Lr, i = Nr, r = Ie, l = pe, s = kr;
|
|
7240
7240
|
function c(h) {
|
|
7241
7241
|
return unescape(encodeURIComponent(h)).length;
|
|
7242
7242
|
}
|
|
@@ -7365,10 +7365,10 @@ var Nr = Yn.exports;
|
|
|
7365
7365
|
u(v, l.isKanjiModeEnabled())
|
|
7366
7366
|
);
|
|
7367
7367
|
};
|
|
7368
|
-
})(
|
|
7369
|
-
const jt = pe, la = Ht,
|
|
7370
|
-
function
|
|
7371
|
-
const a = t.size, n =
|
|
7368
|
+
})(Yn);
|
|
7369
|
+
const jt = pe, la = Ht, Or = fr, Pr = gr, Mr = On, Rr = Pn, va = Mn, Ca = Yt, $r = yr, Ut = Zn, Zr = Vn, Ur = Ze, sa = Yn;
|
|
7370
|
+
function Vr(t, e) {
|
|
7371
|
+
const a = t.size, n = Rr.getPositions(e);
|
|
7372
7372
|
for (let o = 0; o < n.length; o++) {
|
|
7373
7373
|
const i = n[o][0], r = n[o][1];
|
|
7374
7374
|
for (let l = -1; l <= 7; l++)
|
|
@@ -7377,15 +7377,15 @@ function Ur(t, e) {
|
|
|
7377
7377
|
r + s <= -1 || a <= r + s || (l >= 0 && l <= 6 && (s === 0 || s === 6) || s >= 0 && s <= 6 && (l === 0 || l === 6) || l >= 2 && l <= 4 && s >= 2 && s <= 4 ? t.set(i + l, r + s, !0, !0) : t.set(i + l, r + s, !1, !0));
|
|
7378
7378
|
}
|
|
7379
7379
|
}
|
|
7380
|
-
function
|
|
7380
|
+
function Hr(t) {
|
|
7381
7381
|
const e = t.size;
|
|
7382
7382
|
for (let a = 8; a < e - 8; a++) {
|
|
7383
7383
|
const n = a % 2 === 0;
|
|
7384
7384
|
t.set(a, 6, n, !0), t.set(6, a, n, !0);
|
|
7385
7385
|
}
|
|
7386
7386
|
}
|
|
7387
|
-
function
|
|
7388
|
-
const a =
|
|
7387
|
+
function Yr(t, e) {
|
|
7388
|
+
const a = Mr.getPositions(e);
|
|
7389
7389
|
for (let n = 0; n < a.length; n++) {
|
|
7390
7390
|
const o = a[n][0], i = a[n][1];
|
|
7391
7391
|
for (let r = -2; r <= 2; r++)
|
|
@@ -7393,20 +7393,20 @@ function Hr(t, e) {
|
|
|
7393
7393
|
r === -2 || r === 2 || l === -2 || l === 2 || r === 0 && l === 0 ? t.set(o + r, i + l, !0, !0) : t.set(o + r, i + l, !1, !0);
|
|
7394
7394
|
}
|
|
7395
7395
|
}
|
|
7396
|
-
function
|
|
7396
|
+
function zr(t, e) {
|
|
7397
7397
|
const a = t.size, n = Ut.getEncodedBits(e);
|
|
7398
7398
|
let o, i, r;
|
|
7399
7399
|
for (let l = 0; l < 18; l++)
|
|
7400
7400
|
o = Math.floor(l / 3), i = l % 3 + a - 8 - 3, r = (n >> l & 1) === 1, t.set(o, i, r, !0), t.set(i, o, r, !0);
|
|
7401
7401
|
}
|
|
7402
7402
|
function ca(t, e, a) {
|
|
7403
|
-
const n = t.size, o =
|
|
7403
|
+
const n = t.size, o = Zr.getEncodedBits(e, a);
|
|
7404
7404
|
let i, r;
|
|
7405
7405
|
for (i = 0; i < 15; i++)
|
|
7406
7406
|
r = (o >> i & 1) === 1, i < 6 ? t.set(i, 8, r, !0) : i < 8 ? t.set(i + 1, 8, r, !0) : t.set(n - 15 + i, 8, r, !0), i < 8 ? t.set(8, n - i - 1, r, !0) : i < 9 ? t.set(8, 15 - i - 1 + 1, r, !0) : t.set(8, 15 - i - 1, r, !0);
|
|
7407
7407
|
t.set(n - 8, 8, 1, !0);
|
|
7408
7408
|
}
|
|
7409
|
-
function
|
|
7409
|
+
function jr(t, e) {
|
|
7410
7410
|
const a = t.size;
|
|
7411
7411
|
let n = -1, o = a - 1, i = 7, r = 0;
|
|
7412
7412
|
for (let l = a - 1; l > 0; l -= 2)
|
|
@@ -7422,10 +7422,10 @@ function zr(t, e) {
|
|
|
7422
7422
|
}
|
|
7423
7423
|
}
|
|
7424
7424
|
}
|
|
7425
|
-
function
|
|
7426
|
-
const n = new
|
|
7425
|
+
function Wr(t, e, a) {
|
|
7426
|
+
const n = new Or();
|
|
7427
7427
|
a.forEach(function(s) {
|
|
7428
|
-
n.put(s.mode.bit, 4), n.put(s.getLength(),
|
|
7428
|
+
n.put(s.mode.bit, 4), n.put(s.getLength(), Ur.getCharCountIndicator(s.mode, t)), s.write(n);
|
|
7429
7429
|
});
|
|
7430
7430
|
const o = jt.getSymbolTotalCodewords(t), i = Ca.getTotalCodewordsCount(t, e), r = (o - i) * 8;
|
|
7431
7431
|
for (n.getLengthInBits() + 4 <= r && n.put(0, 4); n.getLengthInBits() % 8 !== 0; )
|
|
@@ -7433,10 +7433,10 @@ function jr(t, e, a) {
|
|
|
7433
7433
|
const l = (r - n.getLengthInBits()) / 8;
|
|
7434
7434
|
for (let s = 0; s < l; s++)
|
|
7435
7435
|
n.put(s % 2 ? 17 : 236, 8);
|
|
7436
|
-
return
|
|
7436
|
+
return Xr(n, t, e);
|
|
7437
7437
|
}
|
|
7438
|
-
function
|
|
7439
|
-
const n = jt.getSymbolTotalCodewords(e), o = Ca.getTotalCodewordsCount(e, a), i = n - o, r = Ca.getBlocksCount(e, a), l = n % r, s = r - l, c = Math.floor(n / r), d = Math.floor(i / r), u = d + 1, m = c - d, p = new
|
|
7438
|
+
function Xr(t, e, a) {
|
|
7439
|
+
const n = jt.getSymbolTotalCodewords(e), o = Ca.getTotalCodewordsCount(e, a), i = n - o, r = Ca.getBlocksCount(e, a), l = n % r, s = r - l, c = Math.floor(n / r), d = Math.floor(i / r), u = d + 1, m = c - d, p = new $r(m);
|
|
7440
7440
|
let g = 0;
|
|
7441
7441
|
const f = new Array(r), A = new Array(r);
|
|
7442
7442
|
let h = 0;
|
|
@@ -7455,7 +7455,7 @@ function Wr(t, e, a) {
|
|
|
7455
7455
|
C[b++] = A[_][T];
|
|
7456
7456
|
return C;
|
|
7457
7457
|
}
|
|
7458
|
-
function
|
|
7458
|
+
function Jr(t, e, a, n) {
|
|
7459
7459
|
let o;
|
|
7460
7460
|
if (Array.isArray(t))
|
|
7461
7461
|
o = sa.fromArray(t);
|
|
@@ -7480,8 +7480,8 @@ The chosen QR Code version cannot contain this amount of data.
|
|
|
7480
7480
|
Minimum version required to store current data is: ` + i + `.
|
|
7481
7481
|
`
|
|
7482
7482
|
);
|
|
7483
|
-
const r =
|
|
7484
|
-
return
|
|
7483
|
+
const r = Wr(e, a, o), l = jt.getSymbolSize(e), s = new Pr(l);
|
|
7484
|
+
return Vr(s, e), Hr(s), Yr(s, e), ca(s, a, 0), e >= 7 && zr(s, e), jr(s, r), isNaN(n) && (n = va.getBestMask(
|
|
7485
7485
|
s,
|
|
7486
7486
|
ca.bind(null, s, a)
|
|
7487
7487
|
)), va.applyMask(n, s), ca(s, a, n), {
|
|
@@ -7492,13 +7492,13 @@ Minimum version required to store current data is: ` + i + `.
|
|
|
7492
7492
|
segments: o
|
|
7493
7493
|
};
|
|
7494
7494
|
}
|
|
7495
|
-
|
|
7495
|
+
Nn.create = function(e, a) {
|
|
7496
7496
|
if (typeof e > "u" || e === "")
|
|
7497
7497
|
throw new Error("No input text");
|
|
7498
7498
|
let n = la.M, o, i;
|
|
7499
|
-
return typeof a < "u" && (n = la.from(a.errorCorrectionLevel, la.M), o = Ut.from(a.version), i = va.from(a.maskPattern), a.toSJISFunc && jt.setToSJISFunction(a.toSJISFunc)),
|
|
7499
|
+
return typeof a < "u" && (n = la.from(a.errorCorrectionLevel, la.M), o = Ut.from(a.version), i = va.from(a.maskPattern), a.toSJISFunc && jt.setToSJISFunction(a.toSJISFunc)), Jr(e, o, n, i);
|
|
7500
7500
|
};
|
|
7501
|
-
var
|
|
7501
|
+
var jn = {}, Na = {};
|
|
7502
7502
|
(function(t) {
|
|
7503
7503
|
function e(a) {
|
|
7504
7504
|
if (typeof a == "number" && (a = a.toString()), typeof a != "string")
|
|
@@ -7573,10 +7573,10 @@ var zn = {}, Na = {};
|
|
|
7573
7573
|
const c = t.render(i, r, s), d = s.type || "image/png", u = s.rendererOpts || {};
|
|
7574
7574
|
return c.toDataURL(d, u.quality);
|
|
7575
7575
|
};
|
|
7576
|
-
})(
|
|
7577
|
-
var
|
|
7578
|
-
const
|
|
7579
|
-
function
|
|
7576
|
+
})(jn);
|
|
7577
|
+
var Wn = {};
|
|
7578
|
+
const Gr = Na;
|
|
7579
|
+
function tn(t, e) {
|
|
7580
7580
|
const a = t.a / 255, n = e + '="' + t.hex + '"';
|
|
7581
7581
|
return a < 1 ? n + " " + e + '-opacity="' + a.toFixed(2).slice(1) + '"' : n;
|
|
7582
7582
|
}
|
|
@@ -7584,7 +7584,7 @@ function da(t, e, a) {
|
|
|
7584
7584
|
let n = t + e;
|
|
7585
7585
|
return typeof a < "u" && (n += " " + a), n;
|
|
7586
7586
|
}
|
|
7587
|
-
function
|
|
7587
|
+
function Kr(t, e, a) {
|
|
7588
7588
|
let n = "", o = 0, i = !1, r = 0;
|
|
7589
7589
|
for (let l = 0; l < t.length; l++) {
|
|
7590
7590
|
const s = Math.floor(l % e), c = Math.floor(l / e);
|
|
@@ -7592,15 +7592,15 @@ function Gr(t, e, a) {
|
|
|
7592
7592
|
}
|
|
7593
7593
|
return n;
|
|
7594
7594
|
}
|
|
7595
|
-
|
|
7596
|
-
const o =
|
|
7595
|
+
Wn.render = function(e, a, n) {
|
|
7596
|
+
const o = Gr.getOptions(a), i = e.modules.size, r = e.modules.data, l = i + o.margin * 2, s = o.color.light.a ? "<path " + tn(o.color.light, "fill") + ' d="M0 0h' + l + "v" + l + 'H0z"/>' : "", c = "<path " + tn(o.color.dark, "stroke") + ' d="' + Kr(r, i, o.margin) + '"/>', d = 'viewBox="0 0 ' + l + " " + l + '"', m = '<svg xmlns="http://www.w3.org/2000/svg" ' + (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : "") + d + ' shape-rendering="crispEdges">' + s + c + `</svg>
|
|
7597
7597
|
`;
|
|
7598
7598
|
return typeof n == "function" && n(null, m), m;
|
|
7599
7599
|
};
|
|
7600
|
-
const
|
|
7600
|
+
const qr = mr, _a = Nn, Xn = jn, Qr = Wn;
|
|
7601
7601
|
function ka(t, e, a, n, o) {
|
|
7602
7602
|
const i = [].slice.call(arguments, 1), r = i.length, l = typeof i[r - 1] == "function";
|
|
7603
|
-
if (!l && !
|
|
7603
|
+
if (!l && !qr())
|
|
7604
7604
|
throw new Error("Callback required as last argument");
|
|
7605
7605
|
if (l) {
|
|
7606
7606
|
if (r < 2)
|
|
@@ -7626,17 +7626,17 @@ function ka(t, e, a, n, o) {
|
|
|
7626
7626
|
}
|
|
7627
7627
|
}
|
|
7628
7628
|
Ct.create = _a.create;
|
|
7629
|
-
Ct.toCanvas = ka.bind(null,
|
|
7630
|
-
Ct.toDataURL = ka.bind(null,
|
|
7629
|
+
Ct.toCanvas = ka.bind(null, Xn.render);
|
|
7630
|
+
Ct.toDataURL = ka.bind(null, Xn.renderToDataURL);
|
|
7631
7631
|
Ct.toString = ka.bind(null, function(t, e, a) {
|
|
7632
|
-
return
|
|
7632
|
+
return Qr.render(t, a);
|
|
7633
7633
|
});
|
|
7634
|
-
const
|
|
7634
|
+
const el = { class: "flex items-center justify-center" }, tl = { class: "w-full flex gap-8 justify-end items-center" }, al = /* @__PURE__ */ ue({
|
|
7635
7635
|
__name: "PreviewQrCode",
|
|
7636
7636
|
setup(t) {
|
|
7637
7637
|
const e = ne(), a = Ye(), n = ze(), { t: o } = je(), i = ne(!1), r = oe(() => `${`${"https://{slug}.feedmedev.vip".replace("{slug}", `${a.currentBusiness.value.url ?? a.currentBusiness.value._id}`)}`}/preview/${n.state.selectedTemplate.templateId}`);
|
|
7638
7638
|
function l() {
|
|
7639
|
-
|
|
7639
|
+
wo.promise(navigator.clipboard.writeText(r.value), {
|
|
7640
7640
|
loading: o("brand.template.shareMenu.copying"),
|
|
7641
7641
|
success: () => o("brand.template.shareMenu.linkCopied"),
|
|
7642
7642
|
error: () => o("brand.template.shareMenu.errorCopyingLink")
|
|
@@ -7680,10 +7680,10 @@ const Qr = { class: "flex items-center justify-center" }, el = { class: "w-full
|
|
|
7680
7680
|
}, 8, ["content"])
|
|
7681
7681
|
]),
|
|
7682
7682
|
"dialog-header": P(() => [
|
|
7683
|
-
|
|
7683
|
+
oo(de(x(o)("brand.template.shareMenu.share")), 1)
|
|
7684
7684
|
]),
|
|
7685
7685
|
default: P(() => [
|
|
7686
|
-
N("div",
|
|
7686
|
+
N("div", el, [
|
|
7687
7687
|
N("canvas", {
|
|
7688
7688
|
ref_key: "qrCodeContainer",
|
|
7689
7689
|
ref: e
|
|
@@ -7691,7 +7691,7 @@ const Qr = { class: "flex items-center justify-center" }, el = { class: "w-full
|
|
|
7691
7691
|
])
|
|
7692
7692
|
]),
|
|
7693
7693
|
"dialog-footer": P(() => [
|
|
7694
|
-
N("div",
|
|
7694
|
+
N("div", tl, [
|
|
7695
7695
|
w(d, {
|
|
7696
7696
|
variant: "secondary",
|
|
7697
7697
|
label: x(o)("brand.common.cancel"),
|
|
@@ -7707,10 +7707,10 @@ const Qr = { class: "flex items-center justify-center" }, el = { class: "w-full
|
|
|
7707
7707
|
}, 8, ["modelValue"]);
|
|
7708
7708
|
};
|
|
7709
7709
|
}
|
|
7710
|
-
}),
|
|
7710
|
+
}), nl = { class: "p-8 flex gap-8 items-center justify-between border-b border-fm-color-neutral-gray-200 bg-fm-color-neutral-white" }, ol = { class: "flex gap-8 items-center" }, il = /* @__PURE__ */ ue({
|
|
7711
7711
|
__name: "EditorToolbar",
|
|
7712
7712
|
setup(t) {
|
|
7713
|
-
const e = $e(), a = ze(), n = Ye(), o =
|
|
7713
|
+
const e = $e(), a = ze(), n = Ye(), o = xo(), i = wa(), { t: r } = je();
|
|
7714
7714
|
function l() {
|
|
7715
7715
|
if (!e.state.node) {
|
|
7716
7716
|
o.open(
|
|
@@ -7738,10 +7738,10 @@ const Qr = { class: "flex items-center justify-center" }, el = { class: "w-full
|
|
|
7738
7738
|
}
|
|
7739
7739
|
return (s, c) => {
|
|
7740
7740
|
const d = W("FmButton");
|
|
7741
|
-
return D(), Z("div",
|
|
7742
|
-
w(
|
|
7743
|
-
N("div",
|
|
7744
|
-
w(
|
|
7741
|
+
return D(), Z("div", nl, [
|
|
7742
|
+
w(cr),
|
|
7743
|
+
N("div", ol, [
|
|
7744
|
+
w(al),
|
|
7745
7745
|
w(d, {
|
|
7746
7746
|
class: "transition-all duration-500",
|
|
7747
7747
|
variant: "tertiary",
|
|
@@ -7749,12 +7749,12 @@ const Qr = { class: "flex items-center justify-center" }, el = { class: "w-full
|
|
|
7749
7749
|
onClick: l,
|
|
7750
7750
|
disabled: x(e).isSaved()
|
|
7751
7751
|
}, null, 8, ["disabled"]),
|
|
7752
|
-
w(
|
|
7752
|
+
w(pr)
|
|
7753
7753
|
])
|
|
7754
7754
|
]);
|
|
7755
7755
|
};
|
|
7756
7756
|
}
|
|
7757
|
-
}),
|
|
7757
|
+
}), Jn = {
|
|
7758
7758
|
colors: {
|
|
7759
7759
|
primary: "#ff7823",
|
|
7760
7760
|
secondary: "#fff3e6",
|
|
@@ -7788,19 +7788,19 @@ const Qr = { class: "flex items-center justify-center" }, el = { class: "w-full
|
|
|
7788
7788
|
body: "'Roboto', sans-serif"
|
|
7789
7789
|
}
|
|
7790
7790
|
};
|
|
7791
|
-
function
|
|
7791
|
+
function rl(t = Jn, e) {
|
|
7792
7792
|
const a = document.documentElement, n = (r, l) => {
|
|
7793
7793
|
l && a.style.setProperty(`--brand-${r}`, l);
|
|
7794
7794
|
}, { colors: o, fonts: i } = t;
|
|
7795
7795
|
n("color-primary", o.primary), n("color-secondary", o.secondary), n("color-accent", o.accent), n("color-background-base", o.background.base), n("color-background-elevated", o.background.elevated), n("color-neutral-light", o.neutral.light), n("color-neutral-mid", o.neutral.mid), n("color-neutral-dark", o.neutral.dark), n("color-typo-on-primary", o.text.onPrimary), n("color-typo-primary", o.text.primary), n("color-typo-secondary", o.text.secondary), n("color-typo-tertiary", o.text.tertiary), n("color-status-success", o.status.success), n("color-status-warning", o.status.warning), n("color-status-error", o.status.error), n("color-status-info", o.status.info), n("font-family-brand", i.brand), n("font-family-heading", i.heading ?? i.brand), n("font-family-body", i.body ?? i.brand);
|
|
7796
7796
|
}
|
|
7797
|
-
const
|
|
7797
|
+
const ll = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gray-100 flex flex-col" }, sl = {
|
|
7798
7798
|
key: 0,
|
|
7799
7799
|
class: "flex items-center justify-between pt-8 px-12"
|
|
7800
|
-
},
|
|
7800
|
+
}, cl = { class: "flex items-center justify-center cursor-pointer rounded-full text-fm-color-typo-secondary !h-32 !w-32 border-1 border-fm-color-neutral-gray-200" }, dl = ["onClickCapture"], ul = {
|
|
7801
7801
|
key: 0,
|
|
7802
7802
|
class: "w-full h-[100px] flex items-center justify-center text-fm-color-typo-secondary mt-24"
|
|
7803
|
-
},
|
|
7803
|
+
}, pl = /* @__PURE__ */ ue({
|
|
7804
7804
|
__name: "Editor",
|
|
7805
7805
|
setup(t) {
|
|
7806
7806
|
const e = $e(), a = Ye(), n = Ia(), o = oe({
|
|
@@ -7818,12 +7818,12 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
7818
7818
|
return Qe(
|
|
7819
7819
|
() => a.currentBusiness.value,
|
|
7820
7820
|
async (s, c) => {
|
|
7821
|
-
s && s.id != (c == null ? void 0 : c.id) && (await n.getBusinessBrandkit(s.id),
|
|
7821
|
+
s && s.id != (c == null ? void 0 : c.id) && (await n.getBusinessBrandkit(s.id), rl(n.state.brandkit ?? Jn));
|
|
7822
7822
|
},
|
|
7823
7823
|
{
|
|
7824
7824
|
immediate: !0
|
|
7825
7825
|
}
|
|
7826
|
-
),
|
|
7826
|
+
), rn(() => {
|
|
7827
7827
|
window.addEventListener("beforeunload", function(s) {
|
|
7828
7828
|
if (!e.isSaved())
|
|
7829
7829
|
return s.preventDefault(), "Changes you made may not be saved.";
|
|
@@ -7831,8 +7831,8 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
7831
7831
|
}), (s, c) => {
|
|
7832
7832
|
var u, m;
|
|
7833
7833
|
const d = W("FmIcon");
|
|
7834
|
-
return D(), Z("div",
|
|
7835
|
-
w(
|
|
7834
|
+
return D(), Z("div", ll, [
|
|
7835
|
+
w(il),
|
|
7836
7836
|
N("div", {
|
|
7837
7837
|
class: "h-full w-full px-24 py-48 flex overflow-y-auto",
|
|
7838
7838
|
onClick: c[2] || (c[2] = (p) => l(i.value))
|
|
@@ -7843,7 +7843,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
7843
7843
|
"bg-fm-color-neutral-white": ((m = i.value) == null ? void 0 : m.type) == "Homepage"
|
|
7844
7844
|
}])
|
|
7845
7845
|
}, [
|
|
7846
|
-
i.value ? (D(), ee(Pa(Ra[i.value.type]),
|
|
7846
|
+
i.value ? (D(), ee(Pa(Ra[i.value.type]), io({ key: 0 }, {
|
|
7847
7847
|
data: i.value.data,
|
|
7848
7848
|
...Ba[i.value.type],
|
|
7849
7849
|
...i.value.props
|
|
@@ -7853,9 +7853,9 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
7853
7853
|
default: P(() => {
|
|
7854
7854
|
var p, g;
|
|
7855
7855
|
return [
|
|
7856
|
-
i.value.type == "Homepage" && ((p = i.value.props) == null ? void 0 : p.hideCountrySwitcher) !== !0 ? (D(), Z("div",
|
|
7857
|
-
w(
|
|
7858
|
-
N("div",
|
|
7856
|
+
i.value.type == "Homepage" && ((p = i.value.props) == null ? void 0 : p.hideCountrySwitcher) !== !0 ? (D(), Z("div", sl, [
|
|
7857
|
+
w(To, { data: { selectedCountry: "MY" } }),
|
|
7858
|
+
N("div", cl, [
|
|
7859
7859
|
w(d, {
|
|
7860
7860
|
class: "rounded-full",
|
|
7861
7861
|
name: "account_circle",
|
|
@@ -7863,12 +7863,12 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
7863
7863
|
})
|
|
7864
7864
|
])
|
|
7865
7865
|
])) : G("", !0),
|
|
7866
|
-
i.value.type == "Homepage" && ((g = i.value.props) == null ? void 0 : g.showNavigationBar) == !0 ? (D(), ee(
|
|
7866
|
+
i.value.type == "Homepage" && ((g = i.value.props) == null ? void 0 : g.showNavigationBar) == !0 ? (D(), ee(vo, {
|
|
7867
7867
|
key: 1,
|
|
7868
7868
|
title: "Member",
|
|
7869
7869
|
className: "block"
|
|
7870
7870
|
})) : G("", !0),
|
|
7871
|
-
w(x(
|
|
7871
|
+
w(x(Bn), {
|
|
7872
7872
|
class: ye(["w-full h-full flex flex-col gap-16", { "min-h-[600px]": i.value.type == "Homepage" }]),
|
|
7873
7873
|
modelValue: o.value,
|
|
7874
7874
|
"onUpdate:modelValue": c[0] || (c[0] = (f) => o.value = f),
|
|
@@ -7883,24 +7883,24 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
7883
7883
|
class: "relative cursor-grab",
|
|
7884
7884
|
onClickCapture: ma((v) => l(f), ["prevent", "stop"])
|
|
7885
7885
|
}, [
|
|
7886
|
-
(D(), ee(Pa(Ra[f.type]),
|
|
7886
|
+
(D(), ee(Pa(Ra[f.type]), ro(lo({ data: f.data, ...f.props })), null, 16)),
|
|
7887
7887
|
f._id === ((A = r.value) == null ? void 0 : A._id) ? (D(), Z("div", {
|
|
7888
7888
|
key: 0,
|
|
7889
7889
|
class: ye({
|
|
7890
7890
|
"w-full h-full absolute top-0 left-0 z-10": f._id === ((h = r.value) == null ? void 0 : h._id)
|
|
7891
7891
|
}),
|
|
7892
|
-
style:
|
|
7892
|
+
style: so({
|
|
7893
7893
|
paddingLeft: f.props.marginLeft,
|
|
7894
7894
|
paddingRight: f.props.marginRight
|
|
7895
7895
|
})
|
|
7896
7896
|
}, c[3] || (c[3] = [
|
|
7897
7897
|
N("div", { class: "w-full h-full border-2 border-fm-color-system-info-200" }, null, -1)
|
|
7898
7898
|
]), 6)) : G("", !0)
|
|
7899
|
-
], 40,
|
|
7899
|
+
], 40, dl)
|
|
7900
7900
|
];
|
|
7901
7901
|
}),
|
|
7902
7902
|
footer: P(() => [
|
|
7903
|
-
o.value.length ? G("", !0) : (D(), Z("div",
|
|
7903
|
+
o.value.length ? G("", !0) : (D(), Z("div", ul, [
|
|
7904
7904
|
w(d, { name: "drag_indicator" }),
|
|
7905
7905
|
c[4] || (c[4] = N("div", { class: "fm-typo-en-body-sm-400" }, " Drag and drop components here ", -1))
|
|
7906
7906
|
]))
|
|
@@ -7913,11 +7913,11 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
7913
7913
|
}, 16)) : G("", !0)
|
|
7914
7914
|
], 2)
|
|
7915
7915
|
]),
|
|
7916
|
-
w(
|
|
7916
|
+
w(qi)
|
|
7917
7917
|
]);
|
|
7918
7918
|
};
|
|
7919
7919
|
}
|
|
7920
|
-
}), ua = (t) => t,
|
|
7920
|
+
}), ua = (t) => t, ml = [
|
|
7921
7921
|
{
|
|
7922
7922
|
$cmp: "ConfigTab",
|
|
7923
7923
|
props: { title: ua("brand.template.nodeConfig.pageSetting") },
|
|
@@ -8133,7 +8133,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
8133
8133
|
}
|
|
8134
8134
|
]
|
|
8135
8135
|
}
|
|
8136
|
-
], Y = (t) => t,
|
|
8136
|
+
], Y = (t) => t, bl = [
|
|
8137
8137
|
{
|
|
8138
8138
|
$cmp: "ConfigTab",
|
|
8139
8139
|
props: { title: Y("brand.template.nodeConfig.displayText.title") },
|
|
@@ -8296,7 +8296,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
8296
8296
|
}
|
|
8297
8297
|
]
|
|
8298
8298
|
}
|
|
8299
|
-
], z = (t) => t,
|
|
8299
|
+
], z = (t) => t, fl = [
|
|
8300
8300
|
{
|
|
8301
8301
|
$cmp: "ConfigTab",
|
|
8302
8302
|
props: { title: z("brand.template.nodeConfig.buttonList.title") },
|
|
@@ -8443,7 +8443,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
8443
8443
|
}
|
|
8444
8444
|
]
|
|
8445
8445
|
}
|
|
8446
|
-
], he = (t) => t,
|
|
8446
|
+
], he = (t) => t, gl = [
|
|
8447
8447
|
{
|
|
8448
8448
|
$cmp: "ConfigTab",
|
|
8449
8449
|
props: { title: he("brand.template.nodeConfig.displayImage.title") },
|
|
@@ -8541,7 +8541,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
8541
8541
|
}
|
|
8542
8542
|
]
|
|
8543
8543
|
}
|
|
8544
|
-
], re = (t) => t,
|
|
8544
|
+
], re = (t) => t, hl = [
|
|
8545
8545
|
{
|
|
8546
8546
|
$cmp: "ConfigTab",
|
|
8547
8547
|
props: { title: re("brand.template.nodeConfig.carousel.title") },
|
|
@@ -8661,7 +8661,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
8661
8661
|
}
|
|
8662
8662
|
]
|
|
8663
8663
|
}
|
|
8664
|
-
], J = (t) => t,
|
|
8664
|
+
], J = (t) => t, yl = [
|
|
8665
8665
|
{
|
|
8666
8666
|
$cmp: "ConfigTab",
|
|
8667
8667
|
props: { title: J("brand.template.nodeConfig.memberCard.title") },
|
|
@@ -8707,7 +8707,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
8707
8707
|
label: J(
|
|
8708
8708
|
"brand.template.nodeConfig.memberCard.isMemberLabel"
|
|
8709
8709
|
),
|
|
8710
|
-
value:
|
|
8710
|
+
value: Ln
|
|
8711
8711
|
},
|
|
8712
8712
|
{
|
|
8713
8713
|
label: J(
|
|
@@ -8797,7 +8797,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
8797
8797
|
}
|
|
8798
8798
|
]
|
|
8799
8799
|
}
|
|
8800
|
-
], te = (t) => t,
|
|
8800
|
+
], te = (t) => t, Tl = [
|
|
8801
8801
|
{
|
|
8802
8802
|
$cmp: "ConfigTab",
|
|
8803
8803
|
props: { title: te("brand.template.nodeConfig.orderMethod.title") },
|
|
@@ -8918,7 +8918,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
8918
8918
|
}
|
|
8919
8919
|
]
|
|
8920
8920
|
}
|
|
8921
|
-
], Ne = (t) => t,
|
|
8921
|
+
], Ne = (t) => t, vl = [
|
|
8922
8922
|
{
|
|
8923
8923
|
$cmp: "ConfigTab",
|
|
8924
8924
|
props: { title: Ne("brand.template.nodeConfig.branchList.title") },
|
|
@@ -8978,7 +8978,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
8978
8978
|
}
|
|
8979
8979
|
]
|
|
8980
8980
|
}
|
|
8981
|
-
], Se = (t) => t,
|
|
8981
|
+
], Se = (t) => t, Cl = [
|
|
8982
8982
|
{
|
|
8983
8983
|
$cmp: "ConfigTab",
|
|
8984
8984
|
props: {
|
|
@@ -9028,7 +9028,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9028
9028
|
label: Se(
|
|
9029
9029
|
"brand.template.nodeConfig.orderHistoryCard.withOrdersLabel"
|
|
9030
9030
|
),
|
|
9031
|
-
value:
|
|
9031
|
+
value: Dn
|
|
9032
9032
|
},
|
|
9033
9033
|
{
|
|
9034
9034
|
label: Se(
|
|
@@ -9053,22 +9053,22 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9053
9053
|
}
|
|
9054
9054
|
]
|
|
9055
9055
|
}
|
|
9056
|
-
],
|
|
9056
|
+
], an = (t) => t, _l = [
|
|
9057
9057
|
{
|
|
9058
9058
|
$cmp: "ConfigTab",
|
|
9059
|
-
props: { title:
|
|
9059
|
+
props: { title: an("brand.template.nodeConfig.memberSummary.title") },
|
|
9060
9060
|
children: [
|
|
9061
9061
|
{
|
|
9062
9062
|
$cmp: "ConfigTabItem",
|
|
9063
9063
|
props: {
|
|
9064
|
-
title:
|
|
9064
|
+
title: an("brand.template.nodeConfig.memberSummary.frameTitle"),
|
|
9065
9065
|
value: "frame"
|
|
9066
9066
|
},
|
|
9067
9067
|
children: [...me]
|
|
9068
9068
|
}
|
|
9069
9069
|
]
|
|
9070
9070
|
}
|
|
9071
|
-
], rt = (t) => t,
|
|
9071
|
+
], rt = (t) => t, xl = [
|
|
9072
9072
|
{
|
|
9073
9073
|
$cmp: "ConfigTab",
|
|
9074
9074
|
props: { title: rt("brand.template.nodeConfig.memberCards.title") },
|
|
@@ -9111,7 +9111,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9111
9111
|
}
|
|
9112
9112
|
]
|
|
9113
9113
|
}
|
|
9114
|
-
], be = (t) => t,
|
|
9114
|
+
], be = (t) => t, wl = [
|
|
9115
9115
|
{
|
|
9116
9116
|
$cmp: "ConfigTab",
|
|
9117
9117
|
props: { title: be("brand.template.nodeConfig.memberAchievements.title") },
|
|
@@ -9212,7 +9212,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9212
9212
|
}
|
|
9213
9213
|
]
|
|
9214
9214
|
}
|
|
9215
|
-
], _e = (t) => t,
|
|
9215
|
+
], _e = (t) => t, Il = [
|
|
9216
9216
|
{
|
|
9217
9217
|
$cmp: "ConfigTab",
|
|
9218
9218
|
props: { title: _e("brand.template.nodeConfig.creditHistory.title") },
|
|
@@ -9256,7 +9256,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9256
9256
|
}
|
|
9257
9257
|
]
|
|
9258
9258
|
}
|
|
9259
|
-
],
|
|
9259
|
+
], El = [
|
|
9260
9260
|
{
|
|
9261
9261
|
$cmp: "ConfigTab",
|
|
9262
9262
|
props: { title: _e("brand.template.nodeConfig.pointHistory.title") },
|
|
@@ -9298,10 +9298,10 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9298
9298
|
}
|
|
9299
9299
|
]
|
|
9300
9300
|
}
|
|
9301
|
-
],
|
|
9301
|
+
], Al = (t) => t, Sl = [
|
|
9302
9302
|
{
|
|
9303
9303
|
$cmp: "ConfigTab",
|
|
9304
|
-
props: { title:
|
|
9304
|
+
props: { title: Al("brand.template.nodeConfig.memberProfile.title") },
|
|
9305
9305
|
children: [
|
|
9306
9306
|
// {
|
|
9307
9307
|
// $cmp: 'ConfigTabItem',
|
|
@@ -9339,7 +9339,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9339
9339
|
// },
|
|
9340
9340
|
]
|
|
9341
9341
|
}
|
|
9342
|
-
], Je = (t) => t,
|
|
9342
|
+
], Je = (t) => t, Bl = [
|
|
9343
9343
|
{
|
|
9344
9344
|
$cmp: "ConfigTab",
|
|
9345
9345
|
props: {
|
|
@@ -9411,15 +9411,15 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9411
9411
|
}
|
|
9412
9412
|
]
|
|
9413
9413
|
}
|
|
9414
|
-
],
|
|
9414
|
+
], nn = (t) => t, Ll = [
|
|
9415
9415
|
{
|
|
9416
9416
|
$cmp: "ConfigTab",
|
|
9417
|
-
props: { title:
|
|
9417
|
+
props: { title: nn("brand.template.nodeConfig.referral.imageTitle") },
|
|
9418
9418
|
children: [
|
|
9419
9419
|
{
|
|
9420
9420
|
$cmp: "ConfigTabItem",
|
|
9421
9421
|
props: {
|
|
9422
|
-
title:
|
|
9422
|
+
title: nn("brand.template.nodeConfig.referral.contentTitle"),
|
|
9423
9423
|
value: "design"
|
|
9424
9424
|
},
|
|
9425
9425
|
children: [
|
|
@@ -9428,30 +9428,30 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9428
9428
|
}
|
|
9429
9429
|
]
|
|
9430
9430
|
}
|
|
9431
|
-
],
|
|
9431
|
+
], Dl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9432
9432
|
__proto__: null,
|
|
9433
|
-
BranchList:
|
|
9434
|
-
ButtonList:
|
|
9433
|
+
BranchList: vl,
|
|
9434
|
+
ButtonList: fl,
|
|
9435
9435
|
Container: me,
|
|
9436
|
-
Homepage:
|
|
9437
|
-
ImageCarousel:
|
|
9438
|
-
ImageDisplay:
|
|
9439
|
-
MemberAchievements:
|
|
9440
|
-
MemberCard:
|
|
9441
|
-
MemberCards:
|
|
9442
|
-
MemberSummary:
|
|
9443
|
-
OrderHistoryCard:
|
|
9444
|
-
OrderMethod:
|
|
9445
|
-
TextDisplay:
|
|
9446
|
-
_Credit:
|
|
9447
|
-
_MemberProfile:
|
|
9448
|
-
_Point:
|
|
9449
|
-
_Referral:
|
|
9450
|
-
_ReferralTutorial:
|
|
9451
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9436
|
+
Homepage: ml,
|
|
9437
|
+
ImageCarousel: hl,
|
|
9438
|
+
ImageDisplay: gl,
|
|
9439
|
+
MemberAchievements: wl,
|
|
9440
|
+
MemberCard: yl,
|
|
9441
|
+
MemberCards: xl,
|
|
9442
|
+
MemberSummary: _l,
|
|
9443
|
+
OrderHistoryCard: Cl,
|
|
9444
|
+
OrderMethod: Tl,
|
|
9445
|
+
TextDisplay: bl,
|
|
9446
|
+
_Credit: Il,
|
|
9447
|
+
_MemberProfile: Sl,
|
|
9448
|
+
_Point: El,
|
|
9449
|
+
_Referral: Ll,
|
|
9450
|
+
_ReferralTutorial: Bl
|
|
9451
|
+
}, Symbol.toStringTag, { value: "Module" })), Fl = {
|
|
9452
9452
|
key: 0,
|
|
9453
9453
|
class: "bg-fm-color-system-info-100 border-l-4 border-fm-color-system-info-300 mb-16 pl-8 pr-12 py-8 fm-typo-en-body-md-400 text-fm-color-typo-primary"
|
|
9454
|
-
},
|
|
9454
|
+
}, Nl = { class: "flex flex-col gap-16 px-12" }, kl = /* @__PURE__ */ ue({
|
|
9455
9455
|
__name: "ConfigSection",
|
|
9456
9456
|
props: {
|
|
9457
9457
|
label: {}
|
|
@@ -9459,20 +9459,20 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9459
9459
|
setup(t) {
|
|
9460
9460
|
const { t: e } = je();
|
|
9461
9461
|
return (a, n) => (D(), Z("div", null, [
|
|
9462
|
-
a.label ? (D(), Z("div",
|
|
9463
|
-
N("div",
|
|
9462
|
+
a.label ? (D(), Z("div", Fl, de(x(e)(a.label)), 1)) : G("", !0),
|
|
9463
|
+
N("div", Nl, [
|
|
9464
9464
|
xa(a.$slots, "default")
|
|
9465
9465
|
])
|
|
9466
9466
|
]));
|
|
9467
9467
|
}
|
|
9468
|
-
}),
|
|
9468
|
+
}), Gn = Symbol.for("ba:config-tab"), Ol = { class: "p-16 w-full fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Pl = { class: "flex items-center w-full border-b border-fm-color-neutral-gray-100" }, Ml = /* @__PURE__ */ ue({
|
|
9469
9469
|
__name: "ConfigTab",
|
|
9470
9470
|
props: {
|
|
9471
9471
|
title: {}
|
|
9472
9472
|
},
|
|
9473
9473
|
setup(t) {
|
|
9474
9474
|
const { t: e } = je(), a = ne([]), n = ne("");
|
|
9475
|
-
|
|
9475
|
+
co(Gn, {
|
|
9476
9476
|
register(i) {
|
|
9477
9477
|
a.value = [...a.value, i].map(
|
|
9478
9478
|
(r) => ({
|
|
@@ -9489,9 +9489,9 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9489
9489
|
return (i, r) => {
|
|
9490
9490
|
const l = W("FmTab");
|
|
9491
9491
|
return D(), Z("div", null, [
|
|
9492
|
-
N("div",
|
|
9493
|
-
w(
|
|
9494
|
-
N("div",
|
|
9492
|
+
N("div", Ol, de(x(e)(i.title)), 1),
|
|
9493
|
+
w(ln),
|
|
9494
|
+
N("div", Pl, [
|
|
9495
9495
|
(D(!0), Z(Re, null, ht(a.value, (s) => (D(), ee(l, {
|
|
9496
9496
|
"model-value": n.value,
|
|
9497
9497
|
"onUpdate:modelValue": r[0] || (r[0] = (c) => o(c)),
|
|
@@ -9503,39 +9503,39 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9503
9503
|
]);
|
|
9504
9504
|
};
|
|
9505
9505
|
}
|
|
9506
|
-
}),
|
|
9506
|
+
}), Rl = { key: 0 }, $l = { class: "flex flex-col gap-24 py-24" }, Zl = /* @__PURE__ */ ue({
|
|
9507
9507
|
__name: "ConfigTabItem",
|
|
9508
9508
|
props: {
|
|
9509
9509
|
title: {},
|
|
9510
9510
|
value: {}
|
|
9511
9511
|
},
|
|
9512
9512
|
setup(t) {
|
|
9513
|
-
const e = t, a =
|
|
9514
|
-
return
|
|
9513
|
+
const e = t, a = uo(Gn, null);
|
|
9514
|
+
return rn(() => {
|
|
9515
9515
|
a ? a.register(e) : console.warn("ConfigTabItem is to be used with ConfigTab as parent");
|
|
9516
9516
|
}), (n, o) => {
|
|
9517
9517
|
var i;
|
|
9518
|
-
return ((i = x(a)) == null ? void 0 : i.currentTab.value) === n.value ? (D(), Z("div",
|
|
9519
|
-
N("div",
|
|
9518
|
+
return ((i = x(a)) == null ? void 0 : i.currentTab.value) === n.value ? (D(), Z("div", Rl, [
|
|
9519
|
+
N("div", $l, [
|
|
9520
9520
|
xa(n.$slots, "default")
|
|
9521
9521
|
])
|
|
9522
9522
|
])) : G("", !0);
|
|
9523
9523
|
};
|
|
9524
9524
|
}
|
|
9525
|
-
}),
|
|
9525
|
+
}), Ul = { class: "h-full flex-shrink-0 w-[308px] bg-fm-color-neutral-white border-l border-fm-color-neutral-gray-200 overflow-y-auto" }, Vl = /* @__PURE__ */ ue({
|
|
9526
9526
|
__name: "Inspector",
|
|
9527
9527
|
setup(t) {
|
|
9528
9528
|
const e = $e(), a = oe(() => e.state.selectedNode), n = oe(() => {
|
|
9529
9529
|
var c;
|
|
9530
9530
|
const s = ((c = a.value) == null ? void 0 : c.type) ?? null;
|
|
9531
|
-
return s !== null ?
|
|
9531
|
+
return s !== null ? Dl[s] : [];
|
|
9532
9532
|
}), o = oe(() => {
|
|
9533
9533
|
var s;
|
|
9534
9534
|
return (s = a.value) == null ? void 0 : s.props;
|
|
9535
|
-
}), i =
|
|
9536
|
-
ConfigTab:
|
|
9537
|
-
ConfigTabItem:
|
|
9538
|
-
ConfigSection:
|
|
9535
|
+
}), i = po({
|
|
9536
|
+
ConfigTab: Ml,
|
|
9537
|
+
ConfigTabItem: Zl,
|
|
9538
|
+
ConfigSection: kl
|
|
9539
9539
|
});
|
|
9540
9540
|
function r(s) {
|
|
9541
9541
|
const c = a.value;
|
|
@@ -9566,8 +9566,8 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9566
9566
|
};
|
|
9567
9567
|
}
|
|
9568
9568
|
}
|
|
9569
|
-
return (s, c) => (D(), Z("div",
|
|
9570
|
-
a.value ? (D(), ee(x(
|
|
9569
|
+
return (s, c) => (D(), Z("div", Ul, [
|
|
9570
|
+
a.value ? (D(), ee(x(Eo), {
|
|
9571
9571
|
config: { rootClasses: l },
|
|
9572
9572
|
type: "form",
|
|
9573
9573
|
actions: !1,
|
|
@@ -9577,7 +9577,7 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9577
9577
|
preserve: ""
|
|
9578
9578
|
}, {
|
|
9579
9579
|
default: P(() => [
|
|
9580
|
-
w(x(
|
|
9580
|
+
w(x(Ao), {
|
|
9581
9581
|
schema: n.value,
|
|
9582
9582
|
library: x(i)
|
|
9583
9583
|
}, null, 8, ["schema", "library"])
|
|
@@ -9586,13 +9586,13 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9586
9586
|
}, 8, ["config", "model-value"])) : G("", !0)
|
|
9587
9587
|
]));
|
|
9588
9588
|
}
|
|
9589
|
-
}),
|
|
9589
|
+
}), Hl = { class: "relative h-full w-screen flex flex-col overflow-y-hidden" }, Yl = { class: "flex h-full" }, xs = /* @__PURE__ */ ue({
|
|
9590
9590
|
__name: "BuilderView",
|
|
9591
9591
|
props: {
|
|
9592
9592
|
templateId: {}
|
|
9593
9593
|
},
|
|
9594
9594
|
setup(t) {
|
|
9595
|
-
const e = Ye(), a = $e(), n = ze(), o = Ia(), i =
|
|
9595
|
+
const e = Ye(), a = $e(), n = ze(), o = Ia(), i = sn(), r = vt(), l = ne(!0);
|
|
9596
9596
|
async function s() {
|
|
9597
9597
|
var d, u;
|
|
9598
9598
|
l.value = !0, e.currentBusiness.value && ((d = e.currentBusiness.value) != null && d._id && await n.getAllTemplates(e.currentBusiness.value._id), (u = e.currentBusiness.value) != null && u.url && await o.getGlobalSlug(e.currentBusiness.value.url), c());
|
|
@@ -9631,8 +9631,8 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9631
9631
|
}
|
|
9632
9632
|
), (d, u) => {
|
|
9633
9633
|
const m = W("FmCircularProgress"), p = W("FmOverlay");
|
|
9634
|
-
return D(), Z("div",
|
|
9635
|
-
w(x(
|
|
9634
|
+
return D(), Z("div", Hl, [
|
|
9635
|
+
w(x(Io), {
|
|
9636
9636
|
position: "top-right",
|
|
9637
9637
|
"rich-colors": "",
|
|
9638
9638
|
"close-button": "",
|
|
@@ -9650,15 +9650,15 @@ const rl = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9650
9650
|
]),
|
|
9651
9651
|
_: 1
|
|
9652
9652
|
})) : G("", !0),
|
|
9653
|
-
N("div",
|
|
9654
|
-
w(
|
|
9655
|
-
w(
|
|
9656
|
-
w(
|
|
9653
|
+
N("div", Yl, [
|
|
9654
|
+
w(Gi),
|
|
9655
|
+
w(pl),
|
|
9656
|
+
w(Vl)
|
|
9657
9657
|
])
|
|
9658
9658
|
]);
|
|
9659
9659
|
};
|
|
9660
9660
|
}
|
|
9661
9661
|
});
|
|
9662
9662
|
export {
|
|
9663
|
-
|
|
9663
|
+
xs as default
|
|
9664
9664
|
};
|