@feedmepos/mf-brand-app-builder 0.5.14-alpha.12 → 0.5.14-alpha.13
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-DlJ8d5SZ.js → App-dnGYM5SW.js} +1 -1
- package/dist/{BuilderView-BuxIn26s.js → BuilderView-DnDoC2sO.js} +143 -143
- package/dist/{ListRepeater-dMqxAolL.js → ListRepeater-D9MrLjvV.js} +1 -1
- package/dist/{app-CvStn-hu.js → app-CvGPo64A.js} +3 -3
- package/dist/app.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
|
@@ -61,7 +61,7 @@ const $ = { class: "shrink-0 w-64 h-full bg-fm-color-neutral-white border-r bord
|
|
|
61
61
|
}
|
|
62
62
|
return x(async () => {
|
|
63
63
|
console.log(
|
|
64
|
-
`Running v0.5.14-alpha.
|
|
64
|
+
`Running v0.5.14-alpha.13 on ${e.namespace.value}`
|
|
65
65
|
), e.hideSidebar.value = !0;
|
|
66
66
|
}), y(() => {
|
|
67
67
|
e.hideSidebar.value = !1;
|
|
@@ -13,7 +13,7 @@ import { useRouter as Ya } from "vue-router";
|
|
|
13
13
|
import { u as ca } from "./index-DzaJbB6y.js";
|
|
14
14
|
import { u as da } from "./index-BtpEVtDw.js";
|
|
15
15
|
import { K as io, V as ro } from "./vue-sonner-CBFYmm8_.js";
|
|
16
|
-
import { F as lo, a as so } from "./app-
|
|
16
|
+
import { F as lo, a as so } from "./app-CvGPo64A.js";
|
|
17
17
|
/**!
|
|
18
18
|
* Sortable 1.14.0
|
|
19
19
|
* @author RubaXa <trash@rubaxa.org>
|
|
@@ -185,8 +185,8 @@ function z(t, e, a, n, o) {
|
|
|
185
185
|
}
|
|
186
186
|
while (o = o.parentNode);
|
|
187
187
|
if (n && t !== window) {
|
|
188
|
-
var
|
|
189
|
-
|
|
188
|
+
var p = Me(o || t), h = p && p.a, g = p && p.d;
|
|
189
|
+
p && (r /= g, s /= h, u /= h, d /= g, l = r + d, c = s + u);
|
|
190
190
|
}
|
|
191
191
|
return {
|
|
192
192
|
top: r,
|
|
@@ -332,9 +332,9 @@ function vo() {
|
|
|
332
332
|
}
|
|
333
333
|
var i = !1, r = 0;
|
|
334
334
|
t.forEach(function(s) {
|
|
335
|
-
var l = 0, c = s.target, d = c.fromRect, u = z(c), m = c.prevFromRect,
|
|
335
|
+
var l = 0, c = s.target, d = c.fromRect, u = z(c), m = c.prevFromRect, p = c.prevToRect, h = s.rect, g = Me(c, !0);
|
|
336
336
|
g && (u.top -= g.f, u.left -= g.e), c.toRect = u, c.thisAnimationDuration && kt(m, u) && !kt(d, u) && // Make sure animatingRect is on line between toRect & fromRect
|
|
337
|
-
(h.top - u.top) / (h.left - u.left) === (d.top - u.top) / (d.left - u.left) && (l = _o(h, m,
|
|
337
|
+
(h.top - u.top) / (h.left - u.left) === (d.top - u.top) / (d.left - u.left) && (l = _o(h, m, p, o.options)), kt(u, d) || (c.prevFromRect = d, c.prevToRect = u, l || (l = o.options.animation), o.animate(c, h, u, l)), l && (i = !0, r = Math.max(r, l), clearTimeout(c.animationResetTimer), c.animationResetTimer = setTimeout(function() {
|
|
338
338
|
c.animationTime = 0, c.prevFromRect = null, c.fromRect = null, c.prevToRect = null, c.thisAnimationDuration = null;
|
|
339
339
|
}, l), c.thisAnimationDuration = l);
|
|
340
340
|
}), clearTimeout(e), i ? e = setTimeout(function() {
|
|
@@ -411,13 +411,13 @@ var Pe = [], Rt = {
|
|
|
411
411
|
}
|
|
412
412
|
};
|
|
413
413
|
function xo(t) {
|
|
414
|
-
var e = t.sortable, a = t.rootEl, n = t.name, o = t.targetEl, i = t.cloneEl, r = t.toEl, s = t.fromEl, l = t.oldIndex, c = t.newIndex, d = t.oldDraggableIndex, u = t.newDraggableIndex, m = t.originalEvent,
|
|
414
|
+
var e = t.sortable, a = t.rootEl, n = t.name, o = t.targetEl, i = t.cloneEl, r = t.toEl, s = t.fromEl, l = t.oldIndex, c = t.newIndex, d = t.oldDraggableIndex, u = t.newDraggableIndex, m = t.originalEvent, p = t.putSortable, h = t.extraEventProperties;
|
|
415
415
|
if (e = e || a && a[oe], !!e) {
|
|
416
416
|
var g, T = e.options, v = "on" + n.charAt(0).toUpperCase() + n.substr(1);
|
|
417
417
|
window.CustomEvent && !ve && !ot ? g = new CustomEvent(n, {
|
|
418
418
|
bubbles: !0,
|
|
419
419
|
cancelable: !0
|
|
420
|
-
}) : (g = document.createEvent("Event"), g.initEvent(n, !0, !0)), g.to = r || a, g.from = s || a, g.item = o || a, g.clone = i, g.oldIndex = l, g.newIndex = c, g.oldDraggableIndex = d, g.newDraggableIndex = u, g.originalEvent = m, g.pullMode =
|
|
420
|
+
}) : (g = document.createEvent("Event"), g.initEvent(n, !0, !0)), g.to = r || a, g.from = s || a, g.item = o || a, g.clone = i, g.oldIndex = l, g.newIndex = c, g.oldDraggableIndex = d, g.newDraggableIndex = u, g.originalEvent = m, g.pullMode = p ? p.lastPutMode : void 0;
|
|
421
421
|
var _ = be(be({}, h), it.getEventProperties(n, e));
|
|
422
422
|
for (var b in _)
|
|
423
423
|
g[b] = _[b];
|
|
@@ -791,13 +791,13 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
791
791
|
},
|
|
792
792
|
// Returns true - if no further action is needed (either inserted or another condition)
|
|
793
793
|
_onDragOver: function(e) {
|
|
794
|
-
var a = this.el, n = e.target, o, i, r, s = this.options, l = s.group, c = S.active, d = dt === l, u = s.sort, m = X || c,
|
|
794
|
+
var a = this.el, n = e.target, o, i, r, s = this.options, l = s.group, c = S.active, d = dt === l, u = s.sort, m = X || c, p, h = this, g = !1;
|
|
795
795
|
if (Qt) return;
|
|
796
796
|
function T(je, On) {
|
|
797
797
|
ee(je, h, be({
|
|
798
798
|
evt: e,
|
|
799
799
|
isOwner: d,
|
|
800
|
-
axis:
|
|
800
|
+
axis: p ? "vertical" : "horizontal",
|
|
801
801
|
revert: r,
|
|
802
802
|
dragRect: o,
|
|
803
803
|
targetRect: i,
|
|
@@ -835,16 +835,16 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
835
835
|
if (y.contains(e.target) || n.animated && n.animatingX && n.animatingY || h._ignoreWhileAnimating === n)
|
|
836
836
|
return _(!1);
|
|
837
837
|
if (xt = !1, c && !s.disabled && (d ? u || (r = Z !== L) : X === this || (this.lastPutMode = dt.checkPull(this, c, y, e)) && l.checkPut(this, c, y, e))) {
|
|
838
|
-
if (
|
|
838
|
+
if (p = this._getDirection(e, n) === "vertical", o = z(y), T("dragOverValid"), S.eventCanceled) return g;
|
|
839
839
|
if (r)
|
|
840
840
|
return Z = L, v(), this._hideClone(), T("revert"), S.eventCanceled || (Fe ? L.insertBefore(y, Fe) : L.appendChild(y)), _(!0);
|
|
841
|
-
var
|
|
842
|
-
if (!
|
|
843
|
-
if (
|
|
841
|
+
var f = ua(a, s.draggable);
|
|
842
|
+
if (!f || Fo(e, p, this) && !f.animated) {
|
|
843
|
+
if (f === y)
|
|
844
844
|
return _(!1);
|
|
845
|
-
if (
|
|
845
|
+
if (f && a === e.target && (n = f), n && (i = z(n)), ft(L, a, y, o, n, i, e, !!n) !== !1)
|
|
846
846
|
return v(), a.appendChild(y), Z = a, b(), _(!0);
|
|
847
|
-
} else if (
|
|
847
|
+
} else if (f && Do(e, p, this)) {
|
|
848
848
|
var x = Ze(a, 0, s, !0);
|
|
849
849
|
if (x === y)
|
|
850
850
|
return _(!1);
|
|
@@ -852,8 +852,8 @@ S.prototype = /** @lends Sortable.prototype */
|
|
|
852
852
|
return v(), a.insertBefore(y, x), Z = a, b(), _(!0);
|
|
853
853
|
} else if (n.parentNode === a) {
|
|
854
854
|
i = z(n);
|
|
855
|
-
var C = 0, w, H = y.parentNode !== a, R = !Io(y.animated && y.toRect || o, n.animated && n.toRect || i,
|
|
856
|
-
ke !== n && (w = i[j], et = !1, ut = !R && s.invertSwap || H), C = No(e, n, i,
|
|
855
|
+
var C = 0, w, H = y.parentNode !== a, R = !Io(y.animated && y.toRect || o, n.animated && n.toRect || i, p), j = p ? "top" : "left", D = Sa(n, "top", "top") || Sa(y, "top", "top"), Q = D ? D.scrollTop : void 0;
|
|
856
|
+
ke !== n && (w = i[j], et = !1, ut = !R && s.invertSwap || H), C = No(e, n, i, p, R ? 1 : s.swapThreshold, s.invertedSwapThreshold == null ? s.swapThreshold : s.invertedSwapThreshold, ut, ke === n);
|
|
857
857
|
var $;
|
|
858
858
|
if (C !== 0) {
|
|
859
859
|
var ce = se(y);
|
|
@@ -1198,13 +1198,13 @@ var Yt = Wa(function(t, e, a, n) {
|
|
|
1198
1198
|
ta !== a && (ta = a, Tt(), Xe = e.scroll, d = e.scrollFn, Xe === !0 && (Xe = Ce(a, !0)));
|
|
1199
1199
|
var u = 0, m = Xe;
|
|
1200
1200
|
do {
|
|
1201
|
-
var
|
|
1202
|
-
|
|
1203
|
-
var Q = x && (Math.abs(_ - o) <= r && j + b < w) - (Math.abs(v - o) <= r && !!j), $ = C && (Math.abs(T - i) <= r && D +
|
|
1201
|
+
var p = m, h = z(p), g = h.top, T = h.bottom, v = h.left, _ = h.right, b = h.width, f = h.height, x = void 0, C = void 0, w = p.scrollWidth, H = p.scrollHeight, R = E(p), j = p.scrollLeft, D = p.scrollTop;
|
|
1202
|
+
p === l ? (x = b < w && (R.overflowX === "auto" || R.overflowX === "scroll" || R.overflowX === "visible"), C = f < H && (R.overflowY === "auto" || R.overflowY === "scroll" || R.overflowY === "visible")) : (x = b < w && (R.overflowX === "auto" || R.overflowX === "scroll"), C = f < H && (R.overflowY === "auto" || R.overflowY === "scroll"));
|
|
1203
|
+
var Q = x && (Math.abs(_ - o) <= r && j + b < w) - (Math.abs(v - o) <= r && !!j), $ = C && (Math.abs(T - i) <= r && D + f < H) - (Math.abs(g - i) <= r && !!D);
|
|
1204
1204
|
if (!V[u])
|
|
1205
1205
|
for (var ce = 0; ce <= u; ce++)
|
|
1206
1206
|
V[ce] || (V[ce] = {});
|
|
1207
|
-
(V[u].vx != Q || V[u].vy != $ || V[u].el !==
|
|
1207
|
+
(V[u].vx != Q || V[u].vy != $ || V[u].el !== p) && (V[u].el = p, V[u].vx = Q, V[u].vy = $, clearInterval(V[u].pid), (Q != 0 || $ != 0) && (c = !0, V[u].pid = setInterval((function() {
|
|
1208
1208
|
n && this.layer === 0 && S.active._onTouchMove(It);
|
|
1209
1209
|
var ze = V[this.layer].vy ? V[this.layer].vy * s : 0, Te = V[this.layer].vx ? V[this.layer].vx * s : 0;
|
|
1210
1210
|
typeof d == "function" && d.call(S.dragged.parentNode[oe], Te, ze, t, It, V[this.layer].el) !== "continue" || Xa(V[this.layer].el, Te, ze);
|
|
@@ -5278,13 +5278,13 @@ const Se = Gn("editor", () => {
|
|
|
5278
5278
|
u && (a(u[0]), o(u[0]));
|
|
5279
5279
|
}).catch(async (u) => {
|
|
5280
5280
|
var h;
|
|
5281
|
-
const m = rt(),
|
|
5281
|
+
const m = rt(), p = Oe();
|
|
5282
5282
|
if (u instanceof qn && ((h = u.response) == null ? void 0 : h.data) == "Template not found") {
|
|
5283
5283
|
const g = Kn.find(
|
|
5284
5284
|
(T) => T.templateId == d
|
|
5285
5285
|
);
|
|
5286
5286
|
if (g) {
|
|
5287
|
-
|
|
5287
|
+
p.addNewTemplate({
|
|
5288
5288
|
group: g.group,
|
|
5289
5289
|
id: g.templateId,
|
|
5290
5290
|
name: g.templateAlias,
|
|
@@ -5295,7 +5295,7 @@ const Se = Gn("editor", () => {
|
|
|
5295
5295
|
{},
|
|
5296
5296
|
ma[g.type]
|
|
5297
5297
|
);
|
|
5298
|
-
a(T), o(T), await
|
|
5298
|
+
a(T), o(T), await p.saveTemplate(c, [T]);
|
|
5299
5299
|
return;
|
|
5300
5300
|
}
|
|
5301
5301
|
}
|
|
@@ -5481,21 +5481,21 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5481
5481
|
const e = q(!1), a = q(""), n = q(""), o = Ne(), i = Oe(), r = Se(), s = rt(), l = Ya(), c = ao(), d = ca(), u = te(
|
|
5482
5482
|
() => i.state.allTemplates.filter(
|
|
5483
5483
|
(b) => {
|
|
5484
|
-
var
|
|
5485
|
-
return ((
|
|
5484
|
+
var f;
|
|
5485
|
+
return ((f = i.state.selectedTemplate) == null ? void 0 : f.templateId) !== b.templateId && (a.value ? b.templateAlias.toLocaleLowerCase().includes(a.value.toLocaleLowerCase()) : !0);
|
|
5486
5486
|
}
|
|
5487
5487
|
)
|
|
5488
5488
|
), m = async (b) => {
|
|
5489
5489
|
d.promise(
|
|
5490
5490
|
async () => {
|
|
5491
5491
|
i.addNewTemplate(b == "member" ? { group: "member" } : {});
|
|
5492
|
-
const
|
|
5492
|
+
const f = s.buildNewNode(
|
|
5493
5493
|
"Homepage",
|
|
5494
5494
|
{},
|
|
5495
5495
|
b == "member" ? { hideCountrySwitcher: !0, showNavigationBar: !0 } : {}
|
|
5496
5496
|
);
|
|
5497
|
-
r.setRootNode(
|
|
5498
|
-
|
|
5497
|
+
r.setRootNode(f), r.setCurrentNode(f), await i.saveTemplate(o.currentBusiness.value._id, [
|
|
5498
|
+
f
|
|
5499
5499
|
]);
|
|
5500
5500
|
},
|
|
5501
5501
|
{
|
|
@@ -5505,12 +5505,12 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5505
5505
|
}
|
|
5506
5506
|
);
|
|
5507
5507
|
};
|
|
5508
|
-
function
|
|
5508
|
+
function p(b) {
|
|
5509
5509
|
e.value = !1;
|
|
5510
|
-
const
|
|
5510
|
+
const f = q(!1), x = async () => {
|
|
5511
5511
|
d.promise(
|
|
5512
5512
|
async () => {
|
|
5513
|
-
|
|
5513
|
+
f.value = !0, i.saveTemplate(
|
|
5514
5514
|
o.currentBusiness.value._id,
|
|
5515
5515
|
r.state.node
|
|
5516
5516
|
);
|
|
@@ -5524,7 +5524,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5524
5524
|
error: () => "Error saving template, please try again"
|
|
5525
5525
|
}
|
|
5526
5526
|
).then(() => {
|
|
5527
|
-
|
|
5527
|
+
f.value = !1;
|
|
5528
5528
|
});
|
|
5529
5529
|
};
|
|
5530
5530
|
r.isSaved() ? m(b) : c.open({
|
|
@@ -5533,17 +5533,17 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5533
5533
|
primaryActions: {
|
|
5534
5534
|
text: "Save",
|
|
5535
5535
|
close: !1,
|
|
5536
|
-
isLoading:
|
|
5536
|
+
isLoading: f
|
|
5537
5537
|
},
|
|
5538
5538
|
secondaryActions: {
|
|
5539
5539
|
text: "Cancel",
|
|
5540
5540
|
close: !0,
|
|
5541
|
-
disabled:
|
|
5541
|
+
disabled: f
|
|
5542
5542
|
},
|
|
5543
5543
|
tertiaryActions: {
|
|
5544
5544
|
text: "Discard",
|
|
5545
5545
|
close: !0,
|
|
5546
|
-
disabled:
|
|
5546
|
+
disabled: f,
|
|
5547
5547
|
variant: "destructive"
|
|
5548
5548
|
}
|
|
5549
5549
|
}).onPrimary(async () => {
|
|
@@ -5581,8 +5581,8 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5581
5581
|
}
|
|
5582
5582
|
function v(b) {
|
|
5583
5583
|
e.value = !1;
|
|
5584
|
-
const
|
|
5585
|
-
() =>
|
|
5584
|
+
const f = q(b.templateAlias), x = q(!1), C = te(
|
|
5585
|
+
() => f.value === b.templateAlias
|
|
5586
5586
|
);
|
|
5587
5587
|
c.open({
|
|
5588
5588
|
title: "Rename template",
|
|
@@ -5594,8 +5594,8 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5594
5594
|
},
|
|
5595
5595
|
secondaryActions: { text: "Cancel", close: !0 },
|
|
5596
5596
|
contentComponent: Kt(no.FmTextField, {
|
|
5597
|
-
modelValue:
|
|
5598
|
-
"onUpdate:modelValue": (w) =>
|
|
5597
|
+
modelValue: f,
|
|
5598
|
+
"onUpdate:modelValue": (w) => f.value = w
|
|
5599
5599
|
})
|
|
5600
5600
|
}).onPrimary(async () => {
|
|
5601
5601
|
x.value = !0, d.promise(
|
|
@@ -5603,12 +5603,12 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5603
5603
|
await i.renameTemplate(
|
|
5604
5604
|
o.currentBusiness.value._id,
|
|
5605
5605
|
b.templateId,
|
|
5606
|
-
|
|
5606
|
+
f.value
|
|
5607
5607
|
), x.value = !1, c.close();
|
|
5608
5608
|
},
|
|
5609
5609
|
{
|
|
5610
5610
|
loading: "Renaming template...",
|
|
5611
|
-
success: () => `Template renamed to '${
|
|
5611
|
+
success: () => `Template renamed to '${f.value}'`,
|
|
5612
5612
|
error: () => "Error renaming template, please try again"
|
|
5613
5613
|
}
|
|
5614
5614
|
);
|
|
@@ -5616,20 +5616,20 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5616
5616
|
}
|
|
5617
5617
|
function _(b) {
|
|
5618
5618
|
e.value = !1;
|
|
5619
|
-
const
|
|
5619
|
+
const f = q(!1);
|
|
5620
5620
|
c.open({
|
|
5621
5621
|
title: "Delete template",
|
|
5622
5622
|
message: `Are you sure you want to delete ${b.templateAlias}? This action cannot be undone.`,
|
|
5623
5623
|
primaryActions: {
|
|
5624
5624
|
text: "Delete",
|
|
5625
5625
|
close: !1,
|
|
5626
|
-
isLoading:
|
|
5626
|
+
isLoading: f,
|
|
5627
5627
|
variant: "destructive"
|
|
5628
5628
|
},
|
|
5629
5629
|
secondaryActions: { text: "Cancel", close: !0 }
|
|
5630
5630
|
}).onPrimary(async () => {
|
|
5631
5631
|
var x;
|
|
5632
|
-
|
|
5632
|
+
f.value = !0, await d.promise(
|
|
5633
5633
|
i.deleteTemplate(
|
|
5634
5634
|
o.currentBusiness.value._id,
|
|
5635
5635
|
b.templateId
|
|
@@ -5639,7 +5639,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5639
5639
|
success: () => "Template deleted",
|
|
5640
5640
|
error: () => "Error deleting template, please try again"
|
|
5641
5641
|
}
|
|
5642
|
-
),
|
|
5642
|
+
), f.value = !1, c.close(), (!i.state.selectedTemplate || ((x = i.state.selectedTemplate) == null ? void 0 : x.templateId) === b.templateId) && l.push({
|
|
5643
5643
|
name: "builder",
|
|
5644
5644
|
params: {
|
|
5645
5645
|
templateId: void 0
|
|
@@ -5656,12 +5656,12 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5656
5656
|
() => i.state.allTemplates.length,
|
|
5657
5657
|
() => {
|
|
5658
5658
|
}
|
|
5659
|
-
), (b,
|
|
5659
|
+
), (b, f) => {
|
|
5660
5660
|
const x = Y("FmIcon"), C = Y("FmChip"), w = Y("FmMenuDivider"), H = Y("FmSearch"), R = Y("FmMenuItem"), j = Y("FmPopover");
|
|
5661
5661
|
return F(), J(j, {
|
|
5662
5662
|
width: 300,
|
|
5663
5663
|
"max-height": 400,
|
|
5664
|
-
onPopoverChanged:
|
|
5664
|
+
onPopoverChanged: f[4] || (f[4] = (D) => e.value = D),
|
|
5665
5665
|
"show-popover": e.value
|
|
5666
5666
|
}, {
|
|
5667
5667
|
"popover-button": k(() => {
|
|
@@ -5765,13 +5765,13 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5765
5765
|
name: "edit",
|
|
5766
5766
|
outline: "",
|
|
5767
5767
|
class: "text-fm-color-neutral-black cursor-pointer",
|
|
5768
|
-
onClick:
|
|
5768
|
+
onClick: f[0] || (f[0] = (D) => v(A(i).state.selectedTemplate))
|
|
5769
5769
|
}),
|
|
5770
5770
|
I(x, {
|
|
5771
5771
|
outline: "",
|
|
5772
5772
|
name: "delete",
|
|
5773
5773
|
class: "text-fm-color-system-error-300 cursor-pointer",
|
|
5774
|
-
onClick:
|
|
5774
|
+
onClick: f[1] || (f[1] = (D) => _(A(i).state.selectedTemplate))
|
|
5775
5775
|
})
|
|
5776
5776
|
])
|
|
5777
5777
|
]),
|
|
@@ -5779,7 +5779,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5779
5779
|
], 64)) : W("", !0),
|
|
5780
5780
|
I(H, {
|
|
5781
5781
|
"model-value": a.value,
|
|
5782
|
-
"onUpdate:modelValue":
|
|
5782
|
+
"onUpdate:modelValue": f[2] || (f[2] = (D) => a.value = D),
|
|
5783
5783
|
class: "p-4",
|
|
5784
5784
|
placeholder: "Search"
|
|
5785
5785
|
}, null, 8, ["model-value"]),
|
|
@@ -5877,20 +5877,20 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5877
5877
|
[Pt, u.value.length === 0]
|
|
5878
5878
|
]),
|
|
5879
5879
|
I(w, { inset: "" }),
|
|
5880
|
-
I(R, { onClick:
|
|
5880
|
+
I(R, { onClick: p }, {
|
|
5881
5881
|
prepend: k(() => [
|
|
5882
5882
|
I(x, {
|
|
5883
5883
|
name: "add",
|
|
5884
5884
|
class: "text-fm-color-primary"
|
|
5885
5885
|
})
|
|
5886
5886
|
]),
|
|
5887
|
-
label: k(() =>
|
|
5887
|
+
label: k(() => f[5] || (f[5] = [
|
|
5888
5888
|
N("div", { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, " Add new template ", -1)
|
|
5889
5889
|
])),
|
|
5890
5890
|
_: 1
|
|
5891
5891
|
}),
|
|
5892
5892
|
I(R, {
|
|
5893
|
-
onClick:
|
|
5893
|
+
onClick: f[3] || (f[3] = (D) => p("member"))
|
|
5894
5894
|
}, {
|
|
5895
5895
|
prepend: k(() => [
|
|
5896
5896
|
I(x, {
|
|
@@ -5898,7 +5898,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5898
5898
|
class: "text-fm-color-primary"
|
|
5899
5899
|
})
|
|
5900
5900
|
]),
|
|
5901
|
-
label: k(() =>
|
|
5901
|
+
label: k(() => f[6] || (f[6] = [
|
|
5902
5902
|
N("div", { class: "fm-typo-en-body-md-400 text-fm-color-primary" }, " Add member template ", -1)
|
|
5903
5903
|
])),
|
|
5904
5904
|
_: 1
|
|
@@ -5956,7 +5956,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5956
5956
|
return T.isPublished ? o.state.activeMemberTemplateId === T.templateId ? "This template has been set as member homepage" : "" : "Template is not published yet";
|
|
5957
5957
|
}
|
|
5958
5958
|
const m = te(() => {
|
|
5959
|
-
var T, v, _, b,
|
|
5959
|
+
var T, v, _, b, f, x, C, w;
|
|
5960
5960
|
return [
|
|
5961
5961
|
{
|
|
5962
5962
|
label: "Save and publish",
|
|
@@ -5987,7 +5987,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5987
5987
|
sublabelClass: (T = o.state.selectedTemplate) != null && T.isPublished ? o.state.activeTemplateId === ((v = o.state.selectedTemplate) == null ? void 0 : v.templateId) ? "text-fm-color-typo-warning" : "" : "text-fm-color-typo-warning",
|
|
5988
5988
|
icon: "home",
|
|
5989
5989
|
action: () => {
|
|
5990
|
-
|
|
5990
|
+
p();
|
|
5991
5991
|
},
|
|
5992
5992
|
disabled: !d(o.state.selectedTemplate, "home")
|
|
5993
5993
|
},
|
|
@@ -5997,13 +5997,13 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
5997
5997
|
sublabelClass: (_ = o.state.selectedTemplate) != null && _.isPublished ? o.state.activeMemberTemplateId === ((b = o.state.selectedTemplate) == null ? void 0 : b.templateId) ? "text-fm-color-typo-warning" : "" : "text-fm-color-typo-warning",
|
|
5998
5998
|
icon: "account_circle",
|
|
5999
5999
|
action: () => {
|
|
6000
|
-
|
|
6000
|
+
p("member");
|
|
6001
6001
|
},
|
|
6002
6002
|
disabled: !d(o.state.selectedTemplate, "member")
|
|
6003
6003
|
},
|
|
6004
6004
|
{
|
|
6005
6005
|
label: "Copy public link view",
|
|
6006
|
-
sublabel: (
|
|
6006
|
+
sublabel: (f = o.state.selectedTemplate) != null && f.templateId.startsWith("member-") || (x = o.state.selectedTemplate) != null && x.isPublished ? "" : "Template is not published yet",
|
|
6007
6007
|
sublabelClass: "text-fm-color-typo-warning",
|
|
6008
6008
|
icon: "link",
|
|
6009
6009
|
action: () => {
|
|
@@ -6013,7 +6013,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
6013
6013
|
}
|
|
6014
6014
|
];
|
|
6015
6015
|
});
|
|
6016
|
-
async function
|
|
6016
|
+
async function p(T) {
|
|
6017
6017
|
r.promise(
|
|
6018
6018
|
o.setMainPageTemplate(i.currentBusiness.value._id, T),
|
|
6019
6019
|
{
|
|
@@ -6053,7 +6053,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
6053
6053
|
});
|
|
6054
6054
|
}
|
|
6055
6055
|
return (T, v) => {
|
|
6056
|
-
const _ = Y("FmButton"), b = Y("FmMenuDivider"),
|
|
6056
|
+
const _ = Y("FmButton"), b = Y("FmMenuDivider"), f = Y("FmMenuItem"), x = Y("FmMenu");
|
|
6057
6057
|
return F(), J(x, {
|
|
6058
6058
|
placement: "bottom-end",
|
|
6059
6059
|
onMenuChanged: v[0] || (v[0] = (C) => e.value = C)
|
|
@@ -6075,7 +6075,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
6075
6075
|
inset: "",
|
|
6076
6076
|
class: "!mx-4 hidden [&:nth-last-child(2)]:block"
|
|
6077
6077
|
}),
|
|
6078
|
-
I(
|
|
6078
|
+
I(f, {
|
|
6079
6079
|
label: w.label,
|
|
6080
6080
|
sublabel: w.sublabel,
|
|
6081
6081
|
icon: w.icon,
|
|
@@ -6110,7 +6110,7 @@ const Ei = { class: "flex flex-col gap-24 h-full flex-shrink-0 w-[320px] bg-fm-c
|
|
|
6110
6110
|
inset: "",
|
|
6111
6111
|
class: "!mx-4"
|
|
6112
6112
|
}),
|
|
6113
|
-
I(
|
|
6113
|
+
I(f, {
|
|
6114
6114
|
disabled: !((C = A(o).state.selectedTemplate) != null && C.isPublished),
|
|
6115
6115
|
onClick: g
|
|
6116
6116
|
}, {
|
|
@@ -6342,8 +6342,8 @@ var vn = {};
|
|
|
6342
6342
|
for (let u = 0; u < i; u++) {
|
|
6343
6343
|
s = l = 0, c = d = null;
|
|
6344
6344
|
for (let m = 0; m < i; m++) {
|
|
6345
|
-
let
|
|
6346
|
-
|
|
6345
|
+
let p = o.get(u, m);
|
|
6346
|
+
p === c ? s++ : (s >= 5 && (r += e.N1 + (s - 5)), c = p, s = 1), p = o.get(m, u), p === d ? l++ : (l >= 5 && (r += e.N1 + (l - 5)), d = p, l = 1);
|
|
6347
6347
|
}
|
|
6348
6348
|
s >= 5 && (r += e.N1 + (s - 5)), l >= 5 && (r += e.N1 + (l - 5));
|
|
6349
6349
|
}
|
|
@@ -6914,35 +6914,35 @@ ge.testAlphanumeric = function(e) {
|
|
|
6914
6914
|
})(Ae);
|
|
6915
6915
|
(function(t) {
|
|
6916
6916
|
const e = re, a = Dt, n = Bt, o = Ae, i = ha, r = 7973, s = e.getBCHDigit(r);
|
|
6917
|
-
function l(m,
|
|
6917
|
+
function l(m, p, h) {
|
|
6918
6918
|
for (let g = 1; g <= 40; g++)
|
|
6919
|
-
if (
|
|
6919
|
+
if (p <= t.getCapacity(g, h, m))
|
|
6920
6920
|
return g;
|
|
6921
6921
|
}
|
|
6922
|
-
function c(m,
|
|
6923
|
-
return o.getCharCountIndicator(m,
|
|
6922
|
+
function c(m, p) {
|
|
6923
|
+
return o.getCharCountIndicator(m, p) + 4;
|
|
6924
6924
|
}
|
|
6925
|
-
function d(m,
|
|
6925
|
+
function d(m, p) {
|
|
6926
6926
|
let h = 0;
|
|
6927
6927
|
return m.forEach(function(g) {
|
|
6928
|
-
const T = c(g.mode,
|
|
6928
|
+
const T = c(g.mode, p);
|
|
6929
6929
|
h += T + g.getBitsLength();
|
|
6930
6930
|
}), h;
|
|
6931
6931
|
}
|
|
6932
|
-
function u(m,
|
|
6932
|
+
function u(m, p) {
|
|
6933
6933
|
for (let h = 1; h <= 40; h++)
|
|
6934
|
-
if (d(m, h) <= t.getCapacity(h,
|
|
6934
|
+
if (d(m, h) <= t.getCapacity(h, p, o.MIXED))
|
|
6935
6935
|
return h;
|
|
6936
6936
|
}
|
|
6937
|
-
t.from = function(
|
|
6938
|
-
return i.isValid(
|
|
6939
|
-
}, t.getCapacity = function(
|
|
6940
|
-
if (!i.isValid(
|
|
6937
|
+
t.from = function(p, h) {
|
|
6938
|
+
return i.isValid(p) ? parseInt(p, 10) : h;
|
|
6939
|
+
}, t.getCapacity = function(p, h, g) {
|
|
6940
|
+
if (!i.isValid(p))
|
|
6941
6941
|
throw new Error("Invalid QR Code version");
|
|
6942
6942
|
typeof g > "u" && (g = o.BYTE);
|
|
6943
|
-
const T = e.getSymbolTotalCodewords(
|
|
6943
|
+
const T = e.getSymbolTotalCodewords(p), v = a.getTotalCodewordsCount(p, h), _ = (T - v) * 8;
|
|
6944
6944
|
if (g === o.MIXED) return _;
|
|
6945
|
-
const b = _ - c(g,
|
|
6945
|
+
const b = _ - c(g, p);
|
|
6946
6946
|
switch (g) {
|
|
6947
6947
|
case o.NUMERIC:
|
|
6948
6948
|
return Math.floor(b / 10 * 3);
|
|
@@ -6954,25 +6954,25 @@ ge.testAlphanumeric = function(e) {
|
|
|
6954
6954
|
default:
|
|
6955
6955
|
return Math.floor(b / 8);
|
|
6956
6956
|
}
|
|
6957
|
-
}, t.getBestVersionForData = function(
|
|
6957
|
+
}, t.getBestVersionForData = function(p, h) {
|
|
6958
6958
|
let g;
|
|
6959
6959
|
const T = n.from(h, n.M);
|
|
6960
|
-
if (Array.isArray(
|
|
6961
|
-
if (
|
|
6962
|
-
return u(
|
|
6963
|
-
if (
|
|
6960
|
+
if (Array.isArray(p)) {
|
|
6961
|
+
if (p.length > 1)
|
|
6962
|
+
return u(p, T);
|
|
6963
|
+
if (p.length === 0)
|
|
6964
6964
|
return 1;
|
|
6965
|
-
g =
|
|
6965
|
+
g = p[0];
|
|
6966
6966
|
} else
|
|
6967
|
-
g =
|
|
6967
|
+
g = p;
|
|
6968
6968
|
return l(g.mode, g.getLength(), T);
|
|
6969
|
-
}, t.getEncodedBits = function(
|
|
6970
|
-
if (!i.isValid(
|
|
6969
|
+
}, t.getEncodedBits = function(p) {
|
|
6970
|
+
if (!i.isValid(p) || p < 7)
|
|
6971
6971
|
throw new Error("Invalid QR Code version");
|
|
6972
|
-
let h =
|
|
6972
|
+
let h = p << 12;
|
|
6973
6973
|
for (; e.getBCHDigit(h) - s >= 0; )
|
|
6974
6974
|
h ^= r << e.getBCHDigit(h) - s;
|
|
6975
|
-
return
|
|
6975
|
+
return p << 12 | h;
|
|
6976
6976
|
};
|
|
6977
6977
|
})(xn);
|
|
6978
6978
|
var wn = {};
|
|
@@ -7129,10 +7129,10 @@ var ur = He, Sn = { exports: {} };
|
|
|
7129
7129
|
r[n] = 0;
|
|
7130
7130
|
var s = e.PriorityQueue.make();
|
|
7131
7131
|
s.push(n, 0);
|
|
7132
|
-
for (var l, c, d, u, m,
|
|
7132
|
+
for (var l, c, d, u, m, p, h, g, T; !s.empty(); ) {
|
|
7133
7133
|
l = s.pop(), c = l.value, u = l.cost, m = a[c] || {};
|
|
7134
7134
|
for (d in m)
|
|
7135
|
-
m.hasOwnProperty(d) && (
|
|
7135
|
+
m.hasOwnProperty(d) && (p = m[d], h = u + p, g = r[d], T = typeof r[d] > "u", (T || g > h) && (r[d] = h, s.push(d, h), i[d] = c));
|
|
7136
7136
|
}
|
|
7137
7137
|
if (typeof o < "u" && typeof r[o] > "u") {
|
|
7138
7138
|
var v = ["Could not find a path from ", n, " to ", o, "."].join("");
|
|
@@ -7194,21 +7194,21 @@ var pr = Sn.exports;
|
|
|
7194
7194
|
return unescape(encodeURIComponent(v)).length;
|
|
7195
7195
|
}
|
|
7196
7196
|
function d(v, _, b) {
|
|
7197
|
-
const
|
|
7197
|
+
const f = [];
|
|
7198
7198
|
let x;
|
|
7199
7199
|
for (; (x = v.exec(b)) !== null; )
|
|
7200
|
-
|
|
7200
|
+
f.push({
|
|
7201
7201
|
data: x[0],
|
|
7202
7202
|
index: x.index,
|
|
7203
7203
|
mode: _,
|
|
7204
7204
|
length: x[0].length
|
|
7205
7205
|
});
|
|
7206
|
-
return
|
|
7206
|
+
return f;
|
|
7207
7207
|
}
|
|
7208
7208
|
function u(v) {
|
|
7209
7209
|
const _ = d(r.NUMERIC, e.NUMERIC, v), b = d(r.ALPHANUMERIC, e.ALPHANUMERIC, v);
|
|
7210
|
-
let
|
|
7211
|
-
return s.isKanjiModeEnabled() ? (
|
|
7210
|
+
let f, x;
|
|
7211
|
+
return s.isKanjiModeEnabled() ? (f = d(r.BYTE, e.BYTE, v), x = d(r.KANJI, e.KANJI, v)) : (f = d(r.BYTE_KANJI, e.BYTE, v), x = []), _.concat(b, f, x).sort(function(w, H) {
|
|
7212
7212
|
return w.index - H.index;
|
|
7213
7213
|
}).map(function(w) {
|
|
7214
7214
|
return {
|
|
@@ -7230,69 +7230,69 @@ var pr = Sn.exports;
|
|
|
7230
7230
|
return o.getBitsLength(v);
|
|
7231
7231
|
}
|
|
7232
7232
|
}
|
|
7233
|
-
function
|
|
7233
|
+
function p(v) {
|
|
7234
7234
|
return v.reduce(function(_, b) {
|
|
7235
|
-
const
|
|
7236
|
-
return
|
|
7235
|
+
const f = _.length - 1 >= 0 ? _[_.length - 1] : null;
|
|
7236
|
+
return f && f.mode === b.mode ? (_[_.length - 1].data += b.data, _) : (_.push(b), _);
|
|
7237
7237
|
}, []);
|
|
7238
7238
|
}
|
|
7239
7239
|
function h(v) {
|
|
7240
7240
|
const _ = [];
|
|
7241
7241
|
for (let b = 0; b < v.length; b++) {
|
|
7242
|
-
const
|
|
7243
|
-
switch (
|
|
7242
|
+
const f = v[b];
|
|
7243
|
+
switch (f.mode) {
|
|
7244
7244
|
case e.NUMERIC:
|
|
7245
7245
|
_.push([
|
|
7246
|
-
|
|
7247
|
-
{ data:
|
|
7248
|
-
{ data:
|
|
7246
|
+
f,
|
|
7247
|
+
{ data: f.data, mode: e.ALPHANUMERIC, length: f.length },
|
|
7248
|
+
{ data: f.data, mode: e.BYTE, length: f.length }
|
|
7249
7249
|
]);
|
|
7250
7250
|
break;
|
|
7251
7251
|
case e.ALPHANUMERIC:
|
|
7252
7252
|
_.push([
|
|
7253
|
-
|
|
7254
|
-
{ data:
|
|
7253
|
+
f,
|
|
7254
|
+
{ data: f.data, mode: e.BYTE, length: f.length }
|
|
7255
7255
|
]);
|
|
7256
7256
|
break;
|
|
7257
7257
|
case e.KANJI:
|
|
7258
7258
|
_.push([
|
|
7259
|
-
|
|
7260
|
-
{ data:
|
|
7259
|
+
f,
|
|
7260
|
+
{ data: f.data, mode: e.BYTE, length: c(f.data) }
|
|
7261
7261
|
]);
|
|
7262
7262
|
break;
|
|
7263
7263
|
case e.BYTE:
|
|
7264
7264
|
_.push([
|
|
7265
|
-
{ data:
|
|
7265
|
+
{ data: f.data, mode: e.BYTE, length: c(f.data) }
|
|
7266
7266
|
]);
|
|
7267
7267
|
}
|
|
7268
7268
|
}
|
|
7269
7269
|
return _;
|
|
7270
7270
|
}
|
|
7271
7271
|
function g(v, _) {
|
|
7272
|
-
const b = {},
|
|
7272
|
+
const b = {}, f = { start: {} };
|
|
7273
7273
|
let x = ["start"];
|
|
7274
7274
|
for (let C = 0; C < v.length; C++) {
|
|
7275
7275
|
const w = v[C], H = [];
|
|
7276
7276
|
for (let R = 0; R < w.length; R++) {
|
|
7277
7277
|
const j = w[R], D = "" + C + R;
|
|
7278
|
-
H.push(D), b[D] = { node: j, lastCount: 0 },
|
|
7278
|
+
H.push(D), b[D] = { node: j, lastCount: 0 }, f[D] = {};
|
|
7279
7279
|
for (let Q = 0; Q < x.length; Q++) {
|
|
7280
7280
|
const $ = x[Q];
|
|
7281
|
-
b[$] && b[$].node.mode === j.mode ? (
|
|
7281
|
+
b[$] && b[$].node.mode === j.mode ? (f[$][D] = m(b[$].lastCount + j.length, j.mode) - m(b[$].lastCount, j.mode), b[$].lastCount += j.length) : (b[$] && (b[$].lastCount = j.length), f[$][D] = m(j.length, j.mode) + 4 + e.getCharCountIndicator(j.mode, _));
|
|
7282
7282
|
}
|
|
7283
7283
|
}
|
|
7284
7284
|
x = H;
|
|
7285
7285
|
}
|
|
7286
7286
|
for (let C = 0; C < x.length; C++)
|
|
7287
|
-
|
|
7288
|
-
return { map:
|
|
7287
|
+
f[x[C]].end = 0;
|
|
7288
|
+
return { map: f, table: b };
|
|
7289
7289
|
}
|
|
7290
7290
|
function T(v, _) {
|
|
7291
7291
|
let b;
|
|
7292
|
-
const
|
|
7293
|
-
if (b = e.from(_,
|
|
7292
|
+
const f = e.getBestModeForData(v);
|
|
7293
|
+
if (b = e.from(_, f), b !== e.BYTE && b.bit < f.bit)
|
|
7294
7294
|
throw new Error('"' + v + '" cannot be encoded with mode ' + e.toString(b) + `.
|
|
7295
|
-
Suggested mode is: ` + e.toString(
|
|
7295
|
+
Suggested mode is: ` + e.toString(f));
|
|
7296
7296
|
switch (b === e.KANJI && !s.isKanjiModeEnabled() && (b = e.BYTE), b) {
|
|
7297
7297
|
case e.NUMERIC:
|
|
7298
7298
|
return new a(v);
|
|
@@ -7305,14 +7305,14 @@ var pr = Sn.exports;
|
|
|
7305
7305
|
}
|
|
7306
7306
|
}
|
|
7307
7307
|
t.fromArray = function(_) {
|
|
7308
|
-
return _.reduce(function(b,
|
|
7309
|
-
return typeof
|
|
7308
|
+
return _.reduce(function(b, f) {
|
|
7309
|
+
return typeof f == "string" ? b.push(T(f, null)) : f.data && b.push(T(f.data, f.mode)), b;
|
|
7310
7310
|
}, []);
|
|
7311
7311
|
}, t.fromString = function(_, b) {
|
|
7312
|
-
const
|
|
7312
|
+
const f = u(_, s.isKanjiModeEnabled()), x = h(f), C = g(x, b), w = l.find_path(C.map, "start", "end"), H = [];
|
|
7313
7313
|
for (let R = 1; R < w.length - 1; R++)
|
|
7314
7314
|
H.push(C.table[w[R]].node);
|
|
7315
|
-
return t.fromArray(
|
|
7315
|
+
return t.fromArray(p(H));
|
|
7316
7316
|
}, t.rawSplit = function(_) {
|
|
7317
7317
|
return t.fromArray(
|
|
7318
7318
|
u(_, s.isKanjiModeEnabled())
|
|
@@ -7389,23 +7389,23 @@ function Ir(t, e, a) {
|
|
|
7389
7389
|
return Er(n, t, e);
|
|
7390
7390
|
}
|
|
7391
7391
|
function Er(t, e, a) {
|
|
7392
|
-
const n = Nt.getSymbolTotalCodewords(e), o = ra.getTotalCodewordsCount(e, a), i = n - o, r = ra.getBlocksCount(e, a), s = n % r, l = r - s, c = Math.floor(n / r), d = Math.floor(i / r), u = d + 1, m = c - d,
|
|
7392
|
+
const n = Nt.getSymbolTotalCodewords(e), o = ra.getTotalCodewordsCount(e, a), i = n - o, r = ra.getBlocksCount(e, a), s = n % r, l = r - s, c = Math.floor(n / r), d = Math.floor(i / r), u = d + 1, m = c - d, p = new hr(m);
|
|
7393
7393
|
let h = 0;
|
|
7394
7394
|
const g = new Array(r), T = new Array(r);
|
|
7395
7395
|
let v = 0;
|
|
7396
7396
|
const _ = new Uint8Array(t.buffer);
|
|
7397
7397
|
for (let w = 0; w < r; w++) {
|
|
7398
7398
|
const H = w < l ? d : u;
|
|
7399
|
-
g[w] = _.slice(h, h + H), T[w] =
|
|
7399
|
+
g[w] = _.slice(h, h + H), T[w] = p.encode(g[w]), h += H, v = Math.max(v, H);
|
|
7400
7400
|
}
|
|
7401
7401
|
const b = new Uint8Array(n);
|
|
7402
|
-
let
|
|
7402
|
+
let f = 0, x, C;
|
|
7403
7403
|
for (x = 0; x < v; x++)
|
|
7404
7404
|
for (C = 0; C < r; C++)
|
|
7405
|
-
x < g[C].length && (b[
|
|
7405
|
+
x < g[C].length && (b[f++] = g[C][x]);
|
|
7406
7406
|
for (x = 0; x < m; x++)
|
|
7407
7407
|
for (C = 0; C < r; C++)
|
|
7408
|
-
b[
|
|
7408
|
+
b[f++] = T[C][x];
|
|
7409
7409
|
return b;
|
|
7410
7410
|
}
|
|
7411
7411
|
function Sr(t, e, a, n) {
|
|
@@ -7493,10 +7493,10 @@ var An = {}, ya = {};
|
|
|
7493
7493
|
}, t.qrToImageData = function(n, o, i) {
|
|
7494
7494
|
const r = o.modules.size, s = o.modules.data, l = t.getScale(r, i), c = Math.floor((r + i.margin * 2) * l), d = i.margin * l, u = [i.color.light, i.color.dark];
|
|
7495
7495
|
for (let m = 0; m < c; m++)
|
|
7496
|
-
for (let
|
|
7497
|
-
let h = (m * c +
|
|
7498
|
-
if (m >= d &&
|
|
7499
|
-
const T = Math.floor((m - d) / l), v = Math.floor((
|
|
7496
|
+
for (let p = 0; p < c; p++) {
|
|
7497
|
+
let h = (m * c + p) * 4, g = i.color.light;
|
|
7498
|
+
if (m >= d && p >= d && m < c - d && p < c - d) {
|
|
7499
|
+
const T = Math.floor((m - d) / l), v = Math.floor((p - d) / l);
|
|
7500
7500
|
g = u[s[T * r + v] ? 1 : 0];
|
|
7501
7501
|
}
|
|
7502
7502
|
n[h++] = g.r, n[h++] = g.g, n[h++] = g.b, n[h] = g.a;
|
|
@@ -7788,7 +7788,7 @@ const $r = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
7788
7788
|
I(Lr),
|
|
7789
7789
|
N("div", {
|
|
7790
7790
|
class: "h-full w-full px-24 py-48 flex overflow-y-auto",
|
|
7791
|
-
onClick: c[2] || (c[2] = (
|
|
7791
|
+
onClick: c[2] || (c[2] = (p) => s(i.value))
|
|
7792
7792
|
}, [
|
|
7793
7793
|
N("div", {
|
|
7794
7794
|
class: ue(["w-[375px] border border-fm-color-neutral-gray-200 m-auto pb-24", {
|
|
@@ -7801,12 +7801,12 @@ const $r = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
7801
7801
|
...ma[i.value.type],
|
|
7802
7802
|
...i.value.props
|
|
7803
7803
|
}, {
|
|
7804
|
-
onClick: c[1] || (c[1] = (
|
|
7804
|
+
onClick: c[1] || (c[1] = (p) => s(i.value))
|
|
7805
7805
|
}), {
|
|
7806
7806
|
default: k(() => {
|
|
7807
|
-
var
|
|
7807
|
+
var p, h;
|
|
7808
7808
|
return [
|
|
7809
|
-
i.value.type == "Homepage" && ((
|
|
7809
|
+
i.value.type == "Homepage" && ((p = i.value.props) == null ? void 0 : p.hideCountrySwitcher) !== !0 ? (F(), M("div", Zr, [
|
|
7810
7810
|
I(eo, { data: { selectedCountry: "MY" } }),
|
|
7811
7811
|
N("div", Ur, [
|
|
7812
7812
|
I(d, {
|
|
@@ -9321,14 +9321,14 @@ const $r = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9321
9321
|
var u, m;
|
|
9322
9322
|
const d = e.currentBusiness.value._id;
|
|
9323
9323
|
if (n.state.allTemplates.length > 0) {
|
|
9324
|
-
const
|
|
9325
|
-
(v) =>
|
|
9326
|
-
), g = (u = [...n.state.allTemplates].shift()) == null ? void 0 : u.templateId, T = (h == null ? void 0 : h.templateId) ||
|
|
9324
|
+
const p = typeof i.currentRoute.value.params.templateId == "object" ? i.currentRoute.value.params.templateId[0] : i.currentRoute.value.params.templateId, h = n.state.allTemplates.find(
|
|
9325
|
+
(v) => p == v.templateId
|
|
9326
|
+
), g = (u = [...n.state.allTemplates].shift()) == null ? void 0 : u.templateId, T = (h == null ? void 0 : h.templateId) || (p != null && p.startsWith("member-") ? p : void 0) || g;
|
|
9327
9327
|
await a.setFromTemplate(d, T), n.setSelectedTemplate(T), await n.getMainTemplateId(d);
|
|
9328
9328
|
} else {
|
|
9329
9329
|
console.log("No templates found, creating a new one"), n.addNewTemplate();
|
|
9330
|
-
const
|
|
9331
|
-
a.setRootNode(
|
|
9330
|
+
const p = r.buildNewNode("Homepage", {});
|
|
9331
|
+
a.setRootNode(p), a.setCurrentNode(p), await n.saveTemplate(d, a.state.node), n.setSelectedTemplate(
|
|
9332
9332
|
n.state.allTemplates[0].templateId
|
|
9333
9333
|
);
|
|
9334
9334
|
}
|
|
@@ -9345,11 +9345,11 @@ const $r = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9345
9345
|
{ immediate: !0 }
|
|
9346
9346
|
), $e(
|
|
9347
9347
|
() => i.currentRoute.value.params.templateId,
|
|
9348
|
-
() => {
|
|
9348
|
+
async () => {
|
|
9349
9349
|
c();
|
|
9350
9350
|
}
|
|
9351
9351
|
), (d, u) => {
|
|
9352
|
-
const m = Y("FmCircularProgress"),
|
|
9352
|
+
const m = Y("FmCircularProgress"), p = Y("FmOverlay");
|
|
9353
9353
|
return F(), M("div", Tl, [
|
|
9354
9354
|
I(A(ro), {
|
|
9355
9355
|
position: "top-right",
|
|
@@ -9357,7 +9357,7 @@ const $r = { class: "relative h-full min-w-[500px] flex-1 bg-fm-color-neutral-gr
|
|
|
9357
9357
|
"close-button": "",
|
|
9358
9358
|
duration: 3e3
|
|
9359
9359
|
}),
|
|
9360
|
-
s.value ? (F(), J(
|
|
9360
|
+
s.value ? (F(), J(p, {
|
|
9361
9361
|
key: 0,
|
|
9362
9362
|
"dismiss-away": !1,
|
|
9363
9363
|
"prevent-backdrop-event": !1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as b, resolveComponent as y, createBlock as s, openBlock as c, unref as u, withCtx as i, createElementBlock as m, Fragment as x, renderList as g, createElementVNode as p, createVNode as n, resolveDynamicComponent as F } from "vue";
|
|
2
|
-
import { F as f } from "./app-
|
|
2
|
+
import { F as f } from "./app-CvGPo64A.js";
|
|
3
3
|
const h = { class: "flex justify-end gap-4 items-center w-full py-16 px-12 border-b" }, z = { class: "flex flex-col gap-4 w-full p-12" }, I = /* @__PURE__ */ b({
|
|
4
4
|
__name: "ListRepeater",
|
|
5
5
|
props: {
|
|
@@ -18,7 +18,7 @@ const vo = [
|
|
|
18
18
|
path: ":templateId(.*)*",
|
|
19
19
|
name: "builder",
|
|
20
20
|
component: L(
|
|
21
|
-
() => import("./BuilderView-
|
|
21
|
+
() => import("./BuilderView-DnDoC2sO.js")
|
|
22
22
|
)
|
|
23
23
|
}
|
|
24
24
|
]
|
|
@@ -4706,7 +4706,7 @@ const go = (e) => {
|
|
|
4706
4706
|
),
|
|
4707
4707
|
BaListRepeater: U(
|
|
4708
4708
|
L(
|
|
4709
|
-
() => import("./ListRepeater-
|
|
4709
|
+
() => import("./ListRepeater-D9MrLjvV.js")
|
|
4710
4710
|
)
|
|
4711
4711
|
),
|
|
4712
4712
|
BaTextStyleList: U(
|
|
@@ -4747,7 +4747,7 @@ const go = (e) => {
|
|
|
4747
4747
|
}
|
|
4748
4748
|
})
|
|
4749
4749
|
);
|
|
4750
|
-
}, ho = L(() => import("./App-
|
|
4750
|
+
}, ho = L(() => import("./App-dnGYM5SW.js"));
|
|
4751
4751
|
export {
|
|
4752
4752
|
dn as F,
|
|
4753
4753
|
pn as a,
|
package/dist/app.js
CHANGED
package/dist/package.json
CHANGED