@feedmepos/mf-brand-app-builder 0.5.45-dev.1 → 0.5.46-prod
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-fxWMiswF.js → App-DD3xAvwR.js} +4 -4
- package/dist/{AssetsSettings-DtZ6goQl.js → AssetsSettings-Do8rt2sU.js} +22 -22
- package/dist/{BrandkitView-CnsKm_nt.js → BrandkitView-nfDiG0HS.js} +1138 -1119
- package/dist/{BuilderView-DlAFI1gC.js → BuilderView-D6aesdSu.js} +7 -7
- package/dist/{CredentialSettings-3eVBw1x8.js → CredentialSettings-BB_Yroul.js} +1 -1
- package/dist/{ImageUpload-DxerDooG.js → ImageUpload-BZj85a8g.js} +8 -8
- package/dist/{LinkButton-De-YNclu.js → LinkButton-DNXBKGCn.js} +1 -1
- package/dist/{ListRepeater-DDEV4xLl.js → ListRepeater-tz5QcoGP.js} +1 -1
- package/dist/{ManagementSettings-CWAKkmbz.js → ManagementSettings-CjsGetkI.js} +6 -6
- package/dist/{ProjectView-DZ3qaw_E.js → ProjectView-Dc-furGA.js} +3 -3
- package/dist/{app-DqTMfqMo.js → app-MFB1wiue.js} +31 -10
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +2 -0
- package/dist/client/merchant/src/app.d.ts +21 -0
- package/dist/client/merchant/src/stores/business/index.d.ts +6 -0
- package/dist/{dayjs.min-B4vcU5Bc.js → dayjs.min-Ctmrwhx3.js} +1 -1
- package/dist/{image-D_Djf1PS.js → image-S7-2rbQS.js} +7 -7
- package/dist/{index-BA2J-Ffh.js → index-BpYD24Jn.js} +1 -1
- package/dist/{index-D0LOMBBD.js → index-C6_vWPi0.js} +27 -27
- package/dist/index-CP6_oC8N.js +134 -0
- package/dist/{index-Bk6TOZrx.js → index-CPs0rWCO.js} +15 -15
- package/dist/{main-DN4hx_tp.js → main-LDiBfnFA.js} +2 -2
- package/dist/package.json +1 -1
- package/dist/style.css +1 -1
- package/dist/{useBusinessFeatureFlag-BtLpiYy7.js → useBusinessFeatureFlag-Dw4hpcYo.js} +1 -1
- package/package.json +1 -1
- package/dist/index-CVVQJJYY.js +0 -134
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { defineComponent as it, resolveComponent as se, createElementBlock as P, openBlock as R, createElementVNode as
|
|
2
|
-
import { B as vr } from "./index-
|
|
1
|
+
import { defineComponent as it, resolveComponent as se, createElementBlock as P, openBlock as R, createElementVNode as d, createVNode as x, createCommentVNode as j, withCtx as Pe, unref as v, normalizeStyle as Nr, toDisplayString as k, ref as re, shallowRef as qn, onMounted as dn, onBeforeUnmount as Xn, withDirectives as Gr, normalizeClass as cn, vShow as $r, markRaw as da, nextTick as Yn, watch as vt, createBlock as Le, renderSlot as Zn, Fragment as We, renderList as bt, computed as ee, Teleport as Jn, Transition as pn, withKeys as Kn, createTextVNode as ca } from "vue";
|
|
2
|
+
import { B as vr } from "./index-CP6_oC8N.js";
|
|
3
3
|
import { B as Qn } from "./ColorPicker-RKWzhLBO.js";
|
|
4
|
-
import { u as eo } from "./index-
|
|
4
|
+
import { u as eo } from "./index-BpYD24Jn.js";
|
|
5
5
|
import { useCoreStore as Zr, useI18n as Jr, RestaurantSelector as to } from "@feedmepos/mf-common";
|
|
6
6
|
import { u as ro, b as q } from "./brandkit-Jwi77VnL.js";
|
|
7
7
|
import { useDialogChild as ao, useDialog as Kr, useSnackbar as Qr } from "@feedmepos/ui-library";
|
|
8
8
|
import { _ as ea } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
9
|
-
import { d as no } from "./dayjs.min-
|
|
10
|
-
import { I as pa, r as va } from "./image-
|
|
11
|
-
import { a as fa, b as ha } from "./useBusinessFeatureFlag-
|
|
12
|
-
import { v as
|
|
9
|
+
import { d as no } from "./dayjs.min-Ctmrwhx3.js";
|
|
10
|
+
import { I as pa, r as va } from "./image-S7-2rbQS.js";
|
|
11
|
+
import { a as fa, b as ha } from "./useBusinessFeatureFlag-Dw4hpcYo.js";
|
|
12
|
+
import { v as ma } from "./v4-CKwdnpQf.js";
|
|
13
13
|
const oo = { class: "fm-typo-en-body-md-400" }, so = { class: "flex gap-8 items-center" }, io = { class: "p-4 relative" }, lo = { class: "shadow-lg rounded-lg p-8" }, uo = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "absolute top-8 right-8"
|
|
@@ -29,11 +29,11 @@ const oo = { class: "fm-typo-en-body-md-400" }, so = { class: "flex gap-8 items-
|
|
|
29
29
|
return (o, n) => {
|
|
30
30
|
const s = se("FmButton"), l = se("FmPopover"), i = se("FmIcon");
|
|
31
31
|
return R(), P("div", oo, [
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
d("div", so, [
|
|
33
|
+
d("div", io, [
|
|
34
34
|
x(l, null, {
|
|
35
35
|
"popover-button": Pe(() => [
|
|
36
|
-
|
|
36
|
+
d("div", {
|
|
37
37
|
class: "aspect-square w-[60px] rounded-sm border border-fm-color-neutral-gray-200 cursor-pointer",
|
|
38
38
|
style: Nr({
|
|
39
39
|
backgroundColor: o.color
|
|
@@ -41,13 +41,13 @@ const oo = { class: "fm-typo-en-body-md-400" }, so = { class: "flex gap-8 items-
|
|
|
41
41
|
}, null, 4)
|
|
42
42
|
]),
|
|
43
43
|
default: Pe(() => [
|
|
44
|
-
|
|
44
|
+
d("div", lo, [
|
|
45
45
|
x(v(Qn), {
|
|
46
46
|
copy: r,
|
|
47
|
-
onColorCopy: n[0] || (n[0] = (
|
|
47
|
+
onColorCopy: n[0] || (n[0] = (c) => r(c.cssColor)),
|
|
48
48
|
"default-format": "hex",
|
|
49
49
|
color: o.color,
|
|
50
|
-
onColorChange: n[1] || (n[1] = (
|
|
50
|
+
onColorChange: n[1] || (n[1] = (c) => a("update", c.cssColor))
|
|
51
51
|
}, {
|
|
52
52
|
"copy-button": Pe(() => [
|
|
53
53
|
x(s, {
|
|
@@ -63,8 +63,8 @@ const oo = { class: "fm-typo-en-body-md-400" }, so = { class: "flex gap-8 items-
|
|
|
63
63
|
_: 1
|
|
64
64
|
}),
|
|
65
65
|
o.initialColor != o.color ? (R(), P("div", uo, [
|
|
66
|
-
|
|
67
|
-
onClick: n[2] || (n[2] = (
|
|
66
|
+
d("div", {
|
|
67
|
+
onClick: n[2] || (n[2] = (c) => a("remove")),
|
|
68
68
|
class: "h-16 w-16 rounded-full bg-fm-color-neutral-white flex items-center justify-center cursor-pointer"
|
|
69
69
|
}, [
|
|
70
70
|
x(i, {
|
|
@@ -74,12 +74,12 @@ const oo = { class: "fm-typo-en-body-md-400" }, so = { class: "flex gap-8 items-
|
|
|
74
74
|
])
|
|
75
75
|
])) : j("", !0)
|
|
76
76
|
]),
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
77
|
+
d("div", co, [
|
|
78
|
+
d("div", null, k(o.title), 1),
|
|
79
|
+
d("div", po, k(o.description), 1)
|
|
80
80
|
])
|
|
81
81
|
]),
|
|
82
|
-
|
|
82
|
+
d("div", vo, k(o.color), 1)
|
|
83
83
|
]);
|
|
84
84
|
};
|
|
85
85
|
}
|
|
@@ -114,8 +114,8 @@ String.prototype.codePointAt || function() {
|
|
|
114
114
|
function vn() {
|
|
115
115
|
this.table = new Uint16Array(16), this.trans = new Uint16Array(288);
|
|
116
116
|
}
|
|
117
|
-
var fo = new vn(), ho = new vn(), fn = new Uint8Array(30), hn = new Uint16Array(30),
|
|
118
|
-
function
|
|
117
|
+
var fo = new vn(), ho = new vn(), fn = new Uint8Array(30), hn = new Uint16Array(30), mo = new Uint8Array(30), go = new Uint16Array(30);
|
|
118
|
+
function mn(e, t, r, a) {
|
|
119
119
|
var o, n;
|
|
120
120
|
for (o = 0; o < r; ++o)
|
|
121
121
|
e[o] = 0;
|
|
@@ -142,8 +142,8 @@ function yo(e, t) {
|
|
|
142
142
|
t.trans[r] = r;
|
|
143
143
|
}
|
|
144
144
|
yo(fo, ho);
|
|
145
|
-
|
|
146
|
-
|
|
145
|
+
mn(fn, hn, 4, 3);
|
|
146
|
+
mn(mo, go, 2, 1);
|
|
147
147
|
fn[28] = 0;
|
|
148
148
|
hn[28] = 258;
|
|
149
149
|
function yt(e, t, r, a, o) {
|
|
@@ -165,29 +165,29 @@ lt.prototype.addY = function(e) {
|
|
|
165
165
|
this.addPoint(null, e);
|
|
166
166
|
};
|
|
167
167
|
lt.prototype.addBezier = function(e, t, r, a, o, n, s, l) {
|
|
168
|
-
var i = [e, t],
|
|
168
|
+
var i = [e, t], c = [r, a], p = [o, n], u = [s, l];
|
|
169
169
|
this.addPoint(e, t), this.addPoint(s, l);
|
|
170
170
|
for (var f = 0; f <= 1; f++) {
|
|
171
|
-
var
|
|
171
|
+
var m = 6 * i[f] - 12 * c[f] + 6 * p[f], C = -3 * i[f] + 9 * c[f] - 9 * p[f] + 3 * u[f], O = 3 * c[f] - 3 * i[f];
|
|
172
172
|
if (C === 0) {
|
|
173
|
-
if (
|
|
173
|
+
if (m === 0)
|
|
174
174
|
continue;
|
|
175
|
-
var T = -O /
|
|
176
|
-
0 < T && T < 1 && (f === 0 && this.addX(yt(i[f],
|
|
175
|
+
var T = -O / m;
|
|
176
|
+
0 < T && T < 1 && (f === 0 && this.addX(yt(i[f], c[f], p[f], u[f], T)), f === 1 && this.addY(yt(i[f], c[f], p[f], u[f], T)));
|
|
177
177
|
continue;
|
|
178
178
|
}
|
|
179
|
-
var _ = Math.pow(
|
|
179
|
+
var _ = Math.pow(m, 2) - 4 * O * C;
|
|
180
180
|
if (!(_ < 0)) {
|
|
181
|
-
var A = (-
|
|
182
|
-
0 < A && A < 1 && (f === 0 && this.addX(yt(i[f],
|
|
183
|
-
var U = (-
|
|
184
|
-
0 < U && U < 1 && (f === 0 && this.addX(yt(i[f],
|
|
181
|
+
var A = (-m + Math.sqrt(_)) / (2 * C);
|
|
182
|
+
0 < A && A < 1 && (f === 0 && this.addX(yt(i[f], c[f], p[f], u[f], A)), f === 1 && this.addY(yt(i[f], c[f], p[f], u[f], A)));
|
|
183
|
+
var U = (-m - Math.sqrt(_)) / (2 * C);
|
|
184
|
+
0 < U && U < 1 && (f === 0 && this.addX(yt(i[f], c[f], p[f], u[f], U)), f === 1 && this.addY(yt(i[f], c[f], p[f], u[f], U)));
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
lt.prototype.addQuad = function(e, t, r, a, o, n) {
|
|
189
|
-
var s = e + 0.6666666666666666 * (r - e), l = t + 2 / 3 * (a - t), i = s + 1 / 3 * (o - e),
|
|
190
|
-
this.addBezier(e, t, s, l, i,
|
|
189
|
+
var s = e + 0.6666666666666666 * (r - e), l = t + 2 / 3 * (a - t), i = s + 1 / 3 * (o - e), c = l + 1 / 3 * (n - t);
|
|
190
|
+
this.addBezier(e, t, s, l, i, c, o, n);
|
|
191
191
|
};
|
|
192
192
|
function be() {
|
|
193
193
|
this.commands = [], this.fill = "black", this.stroke = null, this.strokeWidth = 1;
|
|
@@ -281,8 +281,8 @@ be.prototype.toPathData = function(e) {
|
|
|
281
281
|
}
|
|
282
282
|
function r() {
|
|
283
283
|
for (var s = arguments, l = "", i = 0; i < arguments.length; i += 1) {
|
|
284
|
-
var
|
|
285
|
-
|
|
284
|
+
var c = s[i];
|
|
285
|
+
c >= 0 && i > 0 && (l += " "), l += t(c);
|
|
286
286
|
}
|
|
287
287
|
return l;
|
|
288
288
|
}
|
|
@@ -300,13 +300,13 @@ be.prototype.toDOMElement = function(e) {
|
|
|
300
300
|
var t = this.toPathData(e), r = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
301
301
|
return r.setAttribute("d", t), r;
|
|
302
302
|
};
|
|
303
|
-
function
|
|
303
|
+
function gn(e) {
|
|
304
304
|
throw new Error(e);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
307
|
-
e ||
|
|
306
|
+
function ga(e, t) {
|
|
307
|
+
e || gn(t);
|
|
308
308
|
}
|
|
309
|
-
var z = { fail:
|
|
309
|
+
var z = { fail: gn, argument: ga, assert: ga }, ya = 32768, ba = 2147483648, xt = {}, D = {}, V = {};
|
|
310
310
|
function Ae(e) {
|
|
311
311
|
return function() {
|
|
312
312
|
return e;
|
|
@@ -401,8 +401,8 @@ D.REAL = function(e) {
|
|
|
401
401
|
l === "e" ? o += t[++n] === "-" ? "c" : "b" : l === "." ? o += "a" : l === "-" ? o += "e" : o += l;
|
|
402
402
|
}
|
|
403
403
|
o += o.length & 1 ? "f" : "ff";
|
|
404
|
-
for (var i = [30],
|
|
405
|
-
i.push(parseInt(o.substr(
|
|
404
|
+
for (var i = [30], c = 0, p = o.length; c < p; c += 2)
|
|
405
|
+
i.push(parseInt(o.substr(c, 2), 16));
|
|
406
406
|
return i;
|
|
407
407
|
};
|
|
408
408
|
V.REAL = function(e) {
|
|
@@ -569,8 +569,8 @@ D.INDEX = function(e) {
|
|
|
569
569
|
}
|
|
570
570
|
if (a.length === 0)
|
|
571
571
|
return [0, 0];
|
|
572
|
-
for (var s = [], l = 1 + Math.floor(Math.log(t) / Math.log(2)) / 8 | 0, i = [void 0, D.BYTE, D.USHORT, D.UINT24, D.ULONG][l],
|
|
573
|
-
var p = i(r[
|
|
572
|
+
for (var s = [], l = 1 + Math.floor(Math.log(t) / Math.log(2)) / 8 | 0, i = [void 0, D.BYTE, D.USHORT, D.UINT24, D.ULONG][l], c = 0; c < r.length; c += 1) {
|
|
573
|
+
var p = i(r[c]);
|
|
574
574
|
Array.prototype.push.apply(s, p);
|
|
575
575
|
}
|
|
576
576
|
return Array.prototype.concat(
|
|
@@ -645,8 +645,8 @@ D.TABLE = function(e) {
|
|
|
645
645
|
z.argument(l !== void 0, "No encoding function for field type " + s.type + " (" + s.name + ")");
|
|
646
646
|
var i = e[s.name];
|
|
647
647
|
i === void 0 && (i = s.value);
|
|
648
|
-
var
|
|
649
|
-
s.type === "TABLE" ? (o.push(t.length), t = t.concat([0, 0]), a.push(
|
|
648
|
+
var c = l(i);
|
|
649
|
+
s.type === "TABLE" ? (o.push(t.length), t = t.concat([0, 0]), a.push(c)) : t = t.concat(c);
|
|
650
650
|
}
|
|
651
651
|
for (var p = 0; p < a.length; p += 1) {
|
|
652
652
|
var u = o[p], f = t.length;
|
|
@@ -711,7 +711,7 @@ function Nt(e, t, r) {
|
|
|
711
711
|
o = o.concat(r(t[n], n));
|
|
712
712
|
return o;
|
|
713
713
|
}
|
|
714
|
-
function
|
|
714
|
+
function mr(e) {
|
|
715
715
|
e.format === 1 ? ke.call(
|
|
716
716
|
this,
|
|
717
717
|
"coverageTable",
|
|
@@ -728,9 +728,9 @@ function gr(e) {
|
|
|
728
728
|
}))
|
|
729
729
|
) : z.assert(!1, "Coverage format must be 1 or 2.");
|
|
730
730
|
}
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
function
|
|
731
|
+
mr.prototype = Object.create(ke.prototype);
|
|
732
|
+
mr.prototype.constructor = mr;
|
|
733
|
+
function gr(e) {
|
|
734
734
|
ke.call(
|
|
735
735
|
this,
|
|
736
736
|
"scriptListTable",
|
|
@@ -757,8 +757,8 @@ function mr(e) {
|
|
|
757
757
|
})
|
|
758
758
|
);
|
|
759
759
|
}
|
|
760
|
-
|
|
761
|
-
|
|
760
|
+
gr.prototype = Object.create(ke.prototype);
|
|
761
|
+
gr.prototype.constructor = gr;
|
|
762
762
|
function yr(e) {
|
|
763
763
|
ke.call(
|
|
764
764
|
this,
|
|
@@ -787,11 +787,11 @@ function br(e, t) {
|
|
|
787
787
|
}
|
|
788
788
|
br.prototype = Object.create(ke.prototype);
|
|
789
789
|
br.prototype.constructor = br;
|
|
790
|
-
var
|
|
790
|
+
var B = {
|
|
791
791
|
Table: ke,
|
|
792
792
|
Record: ke,
|
|
793
|
-
Coverage:
|
|
794
|
-
ScriptList:
|
|
793
|
+
Coverage: mr,
|
|
794
|
+
ScriptList: gr,
|
|
795
795
|
FeatureList: yr,
|
|
796
796
|
LookupList: br,
|
|
797
797
|
ushortList: Mt,
|
|
@@ -994,8 +994,8 @@ b.prototype.parseListOfLists = function(e) {
|
|
|
994
994
|
continue;
|
|
995
995
|
}
|
|
996
996
|
if (this.relativeOffset = s, e) {
|
|
997
|
-
for (var l = this.parseOffset16List(), i = new Array(l.length),
|
|
998
|
-
this.relativeOffset = s + l[
|
|
997
|
+
for (var l = this.parseOffset16List(), i = new Array(l.length), c = 0; c < l.length; c++)
|
|
998
|
+
this.relativeOffset = s + l[c], i[c] = e.call(this);
|
|
999
999
|
o[n] = i;
|
|
1000
1000
|
} else
|
|
1001
1001
|
o[n] = this.parseUShortList();
|
|
@@ -1157,9 +1157,9 @@ function Ro(e, t, r, a, o) {
|
|
|
1157
1157
|
e.length = t.parseUShort(), e.language = t.parseUShort();
|
|
1158
1158
|
var n;
|
|
1159
1159
|
e.segCount = n = t.parseUShort() >> 1, t.skip("uShort", 3), e.glyphIndexMap = {};
|
|
1160
|
-
for (var s = new W.Parser(r, a + o + 14), l = new W.Parser(r, a + o + 16 + n * 2), i = new W.Parser(r, a + o + 16 + n * 4),
|
|
1161
|
-
for (var f = void 0,
|
|
1162
|
-
T !== 0 ? (p =
|
|
1160
|
+
for (var s = new W.Parser(r, a + o + 14), l = new W.Parser(r, a + o + 16 + n * 2), i = new W.Parser(r, a + o + 16 + n * 4), c = new W.Parser(r, a + o + 16 + n * 6), p = a + o + 16 + n * 8, u = 0; u < n - 1; u += 1)
|
|
1161
|
+
for (var f = void 0, m = s.parseUShort(), C = l.parseUShort(), O = i.parseShort(), T = c.parseUShort(), _ = C; _ <= m; _ += 1)
|
|
1162
|
+
T !== 0 ? (p = c.offset + c.relativeOffset - 2, p += T, p += (_ - C) * 2, f = W.getUShort(r, p), f !== 0 && (f = f + O & 65535)) : f = _ + O & 65535, e.glyphIndexMap[_] = f;
|
|
1163
1163
|
}
|
|
1164
1164
|
function Do(e, t) {
|
|
1165
1165
|
var r = {};
|
|
@@ -1232,7 +1232,7 @@ function Fo(e) {
|
|
|
1232
1232
|
{ name: "entrySelector", type: "USHORT", value: 0 },
|
|
1233
1233
|
{ name: "rangeShift", type: "USHORT", value: 0 }
|
|
1234
1234
|
]);
|
|
1235
|
-
var n = new
|
|
1235
|
+
var n = new B.Table("cmap", o);
|
|
1236
1236
|
for (n.segments = [], r = 0; r < e.length; r += 1) {
|
|
1237
1237
|
for (var s = e.get(r), l = 0; l < s.unicodes.length; l += 1)
|
|
1238
1238
|
Lo(n, s.unicodes[l], r);
|
|
@@ -1241,14 +1241,14 @@ function Fo(e) {
|
|
|
1241
1241
|
});
|
|
1242
1242
|
}
|
|
1243
1243
|
Po(n);
|
|
1244
|
-
var i = n.segments.length,
|
|
1244
|
+
var i = n.segments.length, c = 0, p = [], u = [], f = [], m = [], C = [], O = [];
|
|
1245
1245
|
for (r = 0; r < i; r += 1) {
|
|
1246
1246
|
var T = n.segments[r];
|
|
1247
|
-
T.end <= 65535 && T.start <= 65535 ? (p = p.concat({ name: "end_" + r, type: "USHORT", value: T.end }), u = u.concat({ name: "start_" + r, type: "USHORT", value: T.start }), f = f.concat({ name: "idDelta_" + r, type: "SHORT", value: T.delta }),
|
|
1247
|
+
T.end <= 65535 && T.start <= 65535 ? (p = p.concat({ name: "end_" + r, type: "USHORT", value: T.end }), u = u.concat({ name: "start_" + r, type: "USHORT", value: T.start }), f = f.concat({ name: "idDelta_" + r, type: "SHORT", value: T.delta }), m = m.concat({ name: "idRangeOffset_" + r, type: "USHORT", value: T.offset }), T.glyphId !== void 0 && (C = C.concat({ name: "glyph_" + r, type: "USHORT", value: T.glyphId }))) : c += 1, !t && T.glyphIndex !== void 0 && (O = O.concat({ name: "cmap12Start_" + r, type: "ULONG", value: T.start }), O = O.concat({ name: "cmap12End_" + r, type: "ULONG", value: T.end }), O = O.concat({ name: "cmap12Glyph_" + r, type: "ULONG", value: T.glyphIndex }));
|
|
1248
1248
|
}
|
|
1249
|
-
if (n.segCountX2 = (i -
|
|
1249
|
+
if (n.segCountX2 = (i - c) * 2, n.searchRange = Math.pow(2, Math.floor(Math.log(i - c) / Math.log(2))) * 2, n.entrySelector = Math.log(n.searchRange / 2) / Math.log(2), n.rangeShift = n.segCountX2 - n.searchRange, n.fields = n.fields.concat(p), n.fields.push({ name: "reservedPad", type: "USHORT", value: 0 }), n.fields = n.fields.concat(u), n.fields = n.fields.concat(f), n.fields = n.fields.concat(m), n.fields = n.fields.concat(C), n.cmap4Length = 14 + // Subtable header
|
|
1250
1250
|
p.length * 2 + 2 + // reservedPad
|
|
1251
|
-
u.length * 2 + f.length * 2 +
|
|
1251
|
+
u.length * 2 + f.length * 2 + m.length * 2 + C.length * 2, !t) {
|
|
1252
1252
|
var _ = 16 + // Subtable header
|
|
1253
1253
|
O.length * 4;
|
|
1254
1254
|
n.cmap12Offset = 12 + 2 * 2 + 4 + n.cmap4Length, n.fields = n.fields.concat([
|
|
@@ -2479,8 +2479,8 @@ Fe.prototype.getPath = function(e, t, r, a, o) {
|
|
|
2479
2479
|
n = o.hinting.getCommands(s), e = Math.round(e), t = Math.round(t), l = i = 1;
|
|
2480
2480
|
else {
|
|
2481
2481
|
n = this.path.commands;
|
|
2482
|
-
var
|
|
2483
|
-
l === void 0 && (l =
|
|
2482
|
+
var c = 1 / (this.path.unitsPerEm || 1e3) * r;
|
|
2483
|
+
l === void 0 && (l = c), i === void 0 && (i = c);
|
|
2484
2484
|
}
|
|
2485
2485
|
for (var p = new be(), u = 0; u < n.length; u += 1) {
|
|
2486
2486
|
var f = n[u];
|
|
@@ -2527,15 +2527,15 @@ Fe.prototype.draw = function(e, t, r, a, o) {
|
|
|
2527
2527
|
this.getPath(t, r, a, o).draw(e);
|
|
2528
2528
|
};
|
|
2529
2529
|
Fe.prototype.drawPoints = function(e, t, r, a) {
|
|
2530
|
-
function o(u, f,
|
|
2530
|
+
function o(u, f, m, C) {
|
|
2531
2531
|
e.beginPath();
|
|
2532
2532
|
for (var O = 0; O < u.length; O += 1)
|
|
2533
|
-
e.moveTo(f + u[O].x * C,
|
|
2533
|
+
e.moveTo(f + u[O].x * C, m + u[O].y * C), e.arc(f + u[O].x * C, m + u[O].y * C, 2, 0, Math.PI * 2, !1);
|
|
2534
2534
|
e.closePath(), e.fill();
|
|
2535
2535
|
}
|
|
2536
2536
|
t = t !== void 0 ? t : 0, r = r !== void 0 ? r : 0, a = a !== void 0 ? a : 24;
|
|
2537
|
-
for (var n = 1 / this.path.unitsPerEm * a, s = [], l = [], i = this.path,
|
|
2538
|
-
var p = i.commands[
|
|
2537
|
+
for (var n = 1 / this.path.unitsPerEm * a, s = [], l = [], i = this.path, c = 0; c < i.commands.length; c += 1) {
|
|
2538
|
+
var p = i.commands[c];
|
|
2539
2539
|
p.x !== void 0 && s.push({ x: p.x, y: -p.y }), p.x1 !== void 0 && l.push({ x: p.x1, y: -p.y1 }), p.x2 !== void 0 && l.push({ x: p.x2, y: -p.y2 });
|
|
2540
2540
|
}
|
|
2541
2541
|
e.fillStyle = "blue", o(s, t, r, n), e.fillStyle = "red", o(l, t, r, n);
|
|
@@ -2543,8 +2543,8 @@ Fe.prototype.drawPoints = function(e, t, r, a) {
|
|
|
2543
2543
|
Fe.prototype.drawMetrics = function(e, t, r, a) {
|
|
2544
2544
|
var o;
|
|
2545
2545
|
t = t !== void 0 ? t : 0, r = r !== void 0 ? r : 0, a = a !== void 0 ? a : 24, o = 1 / this.path.unitsPerEm * a, e.lineWidth = 1, e.strokeStyle = "black", ct.line(e, t, -1e4, t, 1e4), ct.line(e, -1e4, r, 1e4, r);
|
|
2546
|
-
var n = this.xMin || 0, s = this.yMin || 0, l = this.xMax || 0, i = this.yMax || 0,
|
|
2547
|
-
e.strokeStyle = "blue", ct.line(e, t + n * o, -1e4, t + n * o, 1e4), ct.line(e, t + l * o, -1e4, t + l * o, 1e4), ct.line(e, -1e4, r + -s * o, 1e4, r + -s * o), ct.line(e, -1e4, r + -i * o, 1e4, r + -i * o), e.strokeStyle = "green", ct.line(e, t +
|
|
2546
|
+
var n = this.xMin || 0, s = this.yMin || 0, l = this.xMax || 0, i = this.yMax || 0, c = this.advanceWidth || 0;
|
|
2547
|
+
e.strokeStyle = "blue", ct.line(e, t + n * o, -1e4, t + n * o, 1e4), ct.line(e, t + l * o, -1e4, t + l * o, 1e4), ct.line(e, -1e4, r + -s * o, 1e4, r + -s * o), ct.line(e, -1e4, r + -i * o, 1e4, r + -i * o), e.strokeStyle = "green", ct.line(e, t + c * o, -1e4, t + c * o, 1e4);
|
|
2548
2548
|
};
|
|
2549
2549
|
function sr(e, t, r) {
|
|
2550
2550
|
Object.defineProperty(e, t, {
|
|
@@ -2626,8 +2626,8 @@ function rt(e, t, r) {
|
|
|
2626
2626
|
if (n !== 0) {
|
|
2627
2627
|
var i = W.getByte(e, t + 2);
|
|
2628
2628
|
s = t + (n + 1) * i + 2;
|
|
2629
|
-
for (var
|
|
2630
|
-
a.push(W.getOffset(e,
|
|
2629
|
+
for (var c = t + 3, p = 0; p < n + 1; p += 1)
|
|
2630
|
+
a.push(W.getOffset(e, c, i)), c += i;
|
|
2631
2631
|
l = s + a[n];
|
|
2632
2632
|
} else
|
|
2633
2633
|
l = t + 2;
|
|
@@ -2775,11 +2775,11 @@ function Ta(e, t, r, a) {
|
|
|
2775
2775
|
for (var o = [], n = 0; n < r.length; n += 1) {
|
|
2776
2776
|
var s = new DataView(new Uint8Array(r[n]).buffer), l = Yo(s, a);
|
|
2777
2777
|
l._subrs = [], l._subrsBias = 0, l._defaultWidthX = 0, l._nominalWidthX = 0;
|
|
2778
|
-
var i = l.private[0],
|
|
2779
|
-
if (i !== 0 &&
|
|
2780
|
-
var p = On(e,
|
|
2778
|
+
var i = l.private[0], c = l.private[1];
|
|
2779
|
+
if (i !== 0 && c !== 0) {
|
|
2780
|
+
var p = On(e, c + t, i, a);
|
|
2781
2781
|
if (l._defaultWidthX = p.defaultWidthX, l._nominalWidthX = p.nominalWidthX, p.subrs !== 0) {
|
|
2782
|
-
var u =
|
|
2782
|
+
var u = c + p.subrs, f = rt(e, u + t);
|
|
2783
2783
|
l._subrs = f.objects, l._subrsBias = Wr(l._subrs);
|
|
2784
2784
|
}
|
|
2785
2785
|
l._privateDict = p;
|
|
@@ -2793,7 +2793,7 @@ function Zo(e, t, r, a) {
|
|
|
2793
2793
|
r -= 1;
|
|
2794
2794
|
var l = [".notdef"], i = s.parseCard8();
|
|
2795
2795
|
if (i === 0)
|
|
2796
|
-
for (var
|
|
2796
|
+
for (var c = 0; c < r; c += 1)
|
|
2797
2797
|
o = s.parseSID(), l.push(At(a, o));
|
|
2798
2798
|
else if (i === 1)
|
|
2799
2799
|
for (; l.length <= r; ) {
|
|
@@ -2817,17 +2817,17 @@ function Jo(e, t, r) {
|
|
|
2817
2817
|
for (var l = n.parseCard8(), i = 0; i < l; i += 1)
|
|
2818
2818
|
a = n.parseCard8(), o[a] = i;
|
|
2819
2819
|
else if (s === 1) {
|
|
2820
|
-
var
|
|
2820
|
+
var c = n.parseCard8();
|
|
2821
2821
|
a = 1;
|
|
2822
|
-
for (var p = 0; p <
|
|
2823
|
-
for (var u = n.parseCard8(), f = n.parseCard8(),
|
|
2824
|
-
o[
|
|
2822
|
+
for (var p = 0; p < c; p += 1)
|
|
2823
|
+
for (var u = n.parseCard8(), f = n.parseCard8(), m = u; m <= u + f; m += 1)
|
|
2824
|
+
o[m] = a, a += 1;
|
|
2825
2825
|
} else
|
|
2826
2826
|
throw new Error("Unknown encoding format " + s);
|
|
2827
2827
|
return new xr(o, r);
|
|
2828
2828
|
}
|
|
2829
2829
|
function wa(e, t, r) {
|
|
2830
|
-
var a, o, n, s, l = new be(), i = [],
|
|
2830
|
+
var a, o, n, s, l = new be(), i = [], c = 0, p = !1, u = !1, f = 0, m = 0, C, O, T, _;
|
|
2831
2831
|
if (e.isCIDFont) {
|
|
2832
2832
|
var A = e.tables.cff.topDict._fdSelect[t.index], U = e.tables.cff.topDict._fdArray[A];
|
|
2833
2833
|
C = U._subrs, O = U._subrsBias, T = U._defaultWidthX, _ = U._nominalWidthX;
|
|
@@ -2839,10 +2839,10 @@ function wa(e, t, r) {
|
|
|
2839
2839
|
}
|
|
2840
2840
|
function L() {
|
|
2841
2841
|
var G;
|
|
2842
|
-
G = i.length % 2 !== 0, G && !p && (Q = i.shift() + _),
|
|
2842
|
+
G = i.length % 2 !== 0, G && !p && (Q = i.shift() + _), c += i.length >> 1, i.length = 0, p = !0;
|
|
2843
2843
|
}
|
|
2844
2844
|
function N(G) {
|
|
2845
|
-
for (var J, $, te, ne, ue, de, ie,
|
|
2845
|
+
for (var J, $, te, ne, ue, de, ie, me, le, ge, ve, fe, ae = 0; ae < G.length; ) {
|
|
2846
2846
|
var X = G[ae];
|
|
2847
2847
|
switch (ae += 1, X) {
|
|
2848
2848
|
case 1:
|
|
@@ -2852,23 +2852,23 @@ function wa(e, t, r) {
|
|
|
2852
2852
|
L();
|
|
2853
2853
|
break;
|
|
2854
2854
|
case 4:
|
|
2855
|
-
i.length > 1 && !p && (Q = i.shift() + _, p = !0),
|
|
2855
|
+
i.length > 1 && !p && (Q = i.shift() + _, p = !0), m += i.pop(), E(f, m);
|
|
2856
2856
|
break;
|
|
2857
2857
|
case 5:
|
|
2858
2858
|
for (; i.length > 0; )
|
|
2859
|
-
f += i.shift(),
|
|
2859
|
+
f += i.shift(), m += i.shift(), l.lineTo(f, m);
|
|
2860
2860
|
break;
|
|
2861
2861
|
case 6:
|
|
2862
|
-
for (; i.length > 0 && (f += i.shift(), l.lineTo(f,
|
|
2863
|
-
|
|
2862
|
+
for (; i.length > 0 && (f += i.shift(), l.lineTo(f, m), i.length !== 0); )
|
|
2863
|
+
m += i.shift(), l.lineTo(f, m);
|
|
2864
2864
|
break;
|
|
2865
2865
|
case 7:
|
|
2866
|
-
for (; i.length > 0 && (
|
|
2867
|
-
f += i.shift(), l.lineTo(f,
|
|
2866
|
+
for (; i.length > 0 && (m += i.shift(), l.lineTo(f, m), i.length !== 0); )
|
|
2867
|
+
f += i.shift(), l.lineTo(f, m);
|
|
2868
2868
|
break;
|
|
2869
2869
|
case 8:
|
|
2870
2870
|
for (; i.length > 0; )
|
|
2871
|
-
a = f + i.shift(), o =
|
|
2871
|
+
a = f + i.shift(), o = m + i.shift(), n = a + i.shift(), s = o + i.shift(), f = n + i.shift(), m = s + i.shift(), l.curveTo(a, o, n, s, f, m);
|
|
2872
2872
|
break;
|
|
2873
2873
|
case 10:
|
|
2874
2874
|
ue = i.pop() + O, de = C[ue], de && N(de);
|
|
@@ -2878,16 +2878,16 @@ function wa(e, t, r) {
|
|
|
2878
2878
|
case 12:
|
|
2879
2879
|
switch (X = G[ae], ae += 1, X) {
|
|
2880
2880
|
case 35:
|
|
2881
|
-
a = f + i.shift(), o =
|
|
2881
|
+
a = f + i.shift(), o = m + i.shift(), n = a + i.shift(), s = o + i.shift(), ie = n + i.shift(), me = s + i.shift(), le = ie + i.shift(), ge = me + i.shift(), ve = le + i.shift(), fe = ge + i.shift(), f = ve + i.shift(), m = fe + i.shift(), i.shift(), l.curveTo(a, o, n, s, ie, me), l.curveTo(le, ge, ve, fe, f, m);
|
|
2882
2882
|
break;
|
|
2883
2883
|
case 34:
|
|
2884
|
-
a = f + i.shift(), o =
|
|
2884
|
+
a = f + i.shift(), o = m, n = a + i.shift(), s = o + i.shift(), ie = n + i.shift(), me = s, le = ie + i.shift(), ge = s, ve = le + i.shift(), fe = m, f = ve + i.shift(), l.curveTo(a, o, n, s, ie, me), l.curveTo(le, ge, ve, fe, f, m);
|
|
2885
2885
|
break;
|
|
2886
2886
|
case 36:
|
|
2887
|
-
a = f + i.shift(), o =
|
|
2887
|
+
a = f + i.shift(), o = m + i.shift(), n = a + i.shift(), s = o + i.shift(), ie = n + i.shift(), me = s, le = ie + i.shift(), ge = s, ve = le + i.shift(), fe = ge + i.shift(), f = ve + i.shift(), l.curveTo(a, o, n, s, ie, me), l.curveTo(le, ge, ve, fe, f, m);
|
|
2888
2888
|
break;
|
|
2889
2889
|
case 37:
|
|
2890
|
-
a = f + i.shift(), o =
|
|
2890
|
+
a = f + i.shift(), o = m + i.shift(), n = a + i.shift(), s = o + i.shift(), ie = n + i.shift(), me = s + i.shift(), le = ie + i.shift(), ge = me + i.shift(), ve = le + i.shift(), fe = ge + i.shift(), Math.abs(ve - f) > Math.abs(fe - m) ? f = ve + i.shift() : m = fe + i.shift(), l.curveTo(a, o, n, s, ie, me), l.curveTo(le, ge, ve, fe, f, m);
|
|
2891
2891
|
break;
|
|
2892
2892
|
default:
|
|
2893
2893
|
console.log("Glyph " + t.index + ": unknown operator 1200" + X), i.length = 0;
|
|
@@ -2901,34 +2901,34 @@ function wa(e, t, r) {
|
|
|
2901
2901
|
break;
|
|
2902
2902
|
case 19:
|
|
2903
2903
|
case 20:
|
|
2904
|
-
L(), ae +=
|
|
2904
|
+
L(), ae += c + 7 >> 3;
|
|
2905
2905
|
break;
|
|
2906
2906
|
case 21:
|
|
2907
|
-
i.length > 2 && !p && (Q = i.shift() + _, p = !0),
|
|
2907
|
+
i.length > 2 && !p && (Q = i.shift() + _, p = !0), m += i.pop(), f += i.pop(), E(f, m);
|
|
2908
2908
|
break;
|
|
2909
2909
|
case 22:
|
|
2910
|
-
i.length > 1 && !p && (Q = i.shift() + _, p = !0), f += i.pop(), E(f,
|
|
2910
|
+
i.length > 1 && !p && (Q = i.shift() + _, p = !0), f += i.pop(), E(f, m);
|
|
2911
2911
|
break;
|
|
2912
2912
|
case 23:
|
|
2913
2913
|
L();
|
|
2914
2914
|
break;
|
|
2915
2915
|
case 24:
|
|
2916
2916
|
for (; i.length > 2; )
|
|
2917
|
-
a = f + i.shift(), o =
|
|
2918
|
-
f += i.shift(),
|
|
2917
|
+
a = f + i.shift(), o = m + i.shift(), n = a + i.shift(), s = o + i.shift(), f = n + i.shift(), m = s + i.shift(), l.curveTo(a, o, n, s, f, m);
|
|
2918
|
+
f += i.shift(), m += i.shift(), l.lineTo(f, m);
|
|
2919
2919
|
break;
|
|
2920
2920
|
case 25:
|
|
2921
2921
|
for (; i.length > 6; )
|
|
2922
|
-
f += i.shift(),
|
|
2923
|
-
a = f + i.shift(), o =
|
|
2922
|
+
f += i.shift(), m += i.shift(), l.lineTo(f, m);
|
|
2923
|
+
a = f + i.shift(), o = m + i.shift(), n = a + i.shift(), s = o + i.shift(), f = n + i.shift(), m = s + i.shift(), l.curveTo(a, o, n, s, f, m);
|
|
2924
2924
|
break;
|
|
2925
2925
|
case 26:
|
|
2926
2926
|
for (i.length % 2 && (f += i.shift()); i.length > 0; )
|
|
2927
|
-
a = f, o =
|
|
2927
|
+
a = f, o = m + i.shift(), n = a + i.shift(), s = o + i.shift(), f = n, m = s + i.shift(), l.curveTo(a, o, n, s, f, m);
|
|
2928
2928
|
break;
|
|
2929
2929
|
case 27:
|
|
2930
|
-
for (i.length % 2 && (
|
|
2931
|
-
a = f + i.shift(), o =
|
|
2930
|
+
for (i.length % 2 && (m += i.shift()); i.length > 0; )
|
|
2931
|
+
a = f + i.shift(), o = m, n = a + i.shift(), s = o + i.shift(), f = n + i.shift(), m = s, l.curveTo(a, o, n, s, f, m);
|
|
2932
2932
|
break;
|
|
2933
2933
|
case 28:
|
|
2934
2934
|
J = G[ae], $ = G[ae + 1], i.push((J << 24 | $ << 16) >> 16), ae += 2;
|
|
@@ -2937,12 +2937,12 @@ function wa(e, t, r) {
|
|
|
2937
2937
|
ue = i.pop() + e.gsubrsBias, de = e.gsubrs[ue], de && N(de);
|
|
2938
2938
|
break;
|
|
2939
2939
|
case 30:
|
|
2940
|
-
for (; i.length > 0 && (a = f, o =
|
|
2941
|
-
a = f + i.shift(), o =
|
|
2940
|
+
for (; i.length > 0 && (a = f, o = m + i.shift(), n = a + i.shift(), s = o + i.shift(), f = n + i.shift(), m = s + (i.length === 1 ? i.shift() : 0), l.curveTo(a, o, n, s, f, m), i.length !== 0); )
|
|
2941
|
+
a = f + i.shift(), o = m, n = a + i.shift(), s = o + i.shift(), m = s + i.shift(), f = n + (i.length === 1 ? i.shift() : 0), l.curveTo(a, o, n, s, f, m);
|
|
2942
2942
|
break;
|
|
2943
2943
|
case 31:
|
|
2944
|
-
for (; i.length > 0 && (a = f + i.shift(), o =
|
|
2945
|
-
a = f, o =
|
|
2944
|
+
for (; i.length > 0 && (a = f + i.shift(), o = m, n = a + i.shift(), s = o + i.shift(), m = s + i.shift(), f = n + (i.length === 1 ? i.shift() : 0), l.curveTo(a, o, n, s, f, m), i.length !== 0); )
|
|
2945
|
+
a = f, o = m + i.shift(), n = a + i.shift(), s = o + i.shift(), f = n + i.shift(), m = s + (i.length === 1 ? i.shift() : 0), l.curveTo(a, o, n, s, f, m);
|
|
2946
2946
|
break;
|
|
2947
2947
|
default:
|
|
2948
2948
|
X < 32 ? console.log("Glyph " + t.index + ": unknown operator " + X) : X < 247 ? i.push(X - 139) : X < 251 ? (J = G[ae], ae += 1, i.push((X - 247) * 256 + J + 108)) : X < 255 ? (J = G[ae], ae += 1, i.push(-(X - 251) * 256 - J - 108)) : (J = G[ae], $ = G[ae + 1], te = G[ae + 2], ne = G[ae + 3], ae += 4, i.push((J << 24 | $ << 16 | te << 8 | ne) / 65536));
|
|
@@ -2960,10 +2960,10 @@ function Ko(e, t, r, a) {
|
|
|
2960
2960
|
o.push(n);
|
|
2961
2961
|
}
|
|
2962
2962
|
else if (l === 3) {
|
|
2963
|
-
var
|
|
2963
|
+
var c = s.parseCard16(), p = s.parseCard16();
|
|
2964
2964
|
if (p !== 0)
|
|
2965
2965
|
throw new Error("CFF Table CID Font FDSelect format 3 range has bad initial GID " + p);
|
|
2966
|
-
for (var u, f = 0; f <
|
|
2966
|
+
for (var u, f = 0; f < c; f++) {
|
|
2967
2967
|
if (n = s.parseCard8(), u = s.parseCard16(), n >= a)
|
|
2968
2968
|
throw new Error("CFF table CID Font FDSelect has bad FD index value " + n + " (FD count " + a + ")");
|
|
2969
2969
|
if (u > r)
|
|
@@ -2982,16 +2982,16 @@ function Qo(e, t, r, a) {
|
|
|
2982
2982
|
r.tables.cff = {};
|
|
2983
2983
|
var o = Xo(e, t), n = rt(e, o.endOffset, W.bytesToString), s = rt(e, n.endOffset), l = rt(e, s.endOffset, W.bytesToString), i = rt(e, l.endOffset);
|
|
2984
2984
|
r.gsubrs = i.objects, r.gsubrsBias = Wr(r.gsubrs);
|
|
2985
|
-
var
|
|
2986
|
-
if (
|
|
2987
|
-
throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " +
|
|
2988
|
-
var p =
|
|
2985
|
+
var c = Ta(e, t, s.objects, l.objects);
|
|
2986
|
+
if (c.length !== 1)
|
|
2987
|
+
throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " + c.length);
|
|
2988
|
+
var p = c[0];
|
|
2989
2989
|
if (r.tables.cff.topDict = p, p._privateDict && (r.defaultWidthX = p._privateDict.defaultWidthX, r.nominalWidthX = p._privateDict.nominalWidthX), p.ros[0] !== void 0 && p.ros[1] !== void 0 && (r.isCIDFont = !0), r.isCIDFont) {
|
|
2990
2990
|
var u = p.fdArray, f = p.fdSelect;
|
|
2991
2991
|
if (u === 0 || f === 0)
|
|
2992
2992
|
throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");
|
|
2993
2993
|
u += t;
|
|
2994
|
-
var
|
|
2994
|
+
var m = rt(e, u), C = Ta(e, t, m.objects, l.objects);
|
|
2995
2995
|
p._fdArray = C, f += t, p._fdSelect = Ko(e, f, r.numGlyphs, C.length);
|
|
2996
2996
|
}
|
|
2997
2997
|
var O = t + p.private[1], T = On(e, O, p.private[0], l.objects);
|
|
@@ -3019,7 +3019,7 @@ function Cn(e, t) {
|
|
|
3019
3019
|
return a >= 0 && (r = a), a = t.indexOf(e), a >= 0 ? r = a + fr.length : (r = fr.length + t.length, t.push(e)), r;
|
|
3020
3020
|
}
|
|
3021
3021
|
function es() {
|
|
3022
|
-
return new
|
|
3022
|
+
return new B.Record("Header", [
|
|
3023
3023
|
{ name: "major", type: "Card8", value: 1 },
|
|
3024
3024
|
{ name: "minor", type: "Card8", value: 0 },
|
|
3025
3025
|
{ name: "hdrSize", type: "Card8", value: 4 },
|
|
@@ -3027,7 +3027,7 @@ function es() {
|
|
|
3027
3027
|
]);
|
|
3028
3028
|
}
|
|
3029
3029
|
function ts(e) {
|
|
3030
|
-
var t = new
|
|
3030
|
+
var t = new B.Record("Name INDEX", [
|
|
3031
3031
|
{ name: "names", type: "INDEX", value: [] }
|
|
3032
3032
|
]);
|
|
3033
3033
|
t.names = [];
|
|
@@ -3043,19 +3043,19 @@ function _n(e, t, r) {
|
|
|
3043
3043
|
return a;
|
|
3044
3044
|
}
|
|
3045
3045
|
function Oa(e, t) {
|
|
3046
|
-
var r = new
|
|
3046
|
+
var r = new B.Record("Top DICT", [
|
|
3047
3047
|
{ name: "dict", type: "DICT", value: {} }
|
|
3048
3048
|
]);
|
|
3049
3049
|
return r.dict = _n(Tn, e, t), r;
|
|
3050
3050
|
}
|
|
3051
3051
|
function Ca(e) {
|
|
3052
|
-
var t = new
|
|
3052
|
+
var t = new B.Record("Top DICT INDEX", [
|
|
3053
3053
|
{ name: "topDicts", type: "INDEX", value: [] }
|
|
3054
3054
|
]);
|
|
3055
3055
|
return t.topDicts = [{ name: "topDict_0", type: "TABLE", value: e }], t;
|
|
3056
3056
|
}
|
|
3057
3057
|
function rs(e) {
|
|
3058
|
-
var t = new
|
|
3058
|
+
var t = new B.Record("String INDEX", [
|
|
3059
3059
|
{ name: "strings", type: "INDEX", value: [] }
|
|
3060
3060
|
]);
|
|
3061
3061
|
t.strings = [];
|
|
@@ -3064,12 +3064,12 @@ function rs(e) {
|
|
|
3064
3064
|
return t;
|
|
3065
3065
|
}
|
|
3066
3066
|
function as() {
|
|
3067
|
-
return new
|
|
3067
|
+
return new B.Record("Global Subr INDEX", [
|
|
3068
3068
|
{ name: "subrs", type: "INDEX", value: [] }
|
|
3069
3069
|
]);
|
|
3070
3070
|
}
|
|
3071
3071
|
function ns(e, t) {
|
|
3072
|
-
for (var r = new
|
|
3072
|
+
for (var r = new B.Record("Charsets", [
|
|
3073
3073
|
{ name: "format", type: "Card8", value: 0 }
|
|
3074
3074
|
]), a = 0; a < e.length; a += 1) {
|
|
3075
3075
|
var o = e[a], n = Cn(o, t);
|
|
@@ -3083,15 +3083,15 @@ function os(e) {
|
|
|
3083
3083
|
for (var a = 0, o = 0, n = 0; n < r.commands.length; n += 1) {
|
|
3084
3084
|
var s = void 0, l = void 0, i = r.commands[n];
|
|
3085
3085
|
if (i.type === "Q") {
|
|
3086
|
-
var
|
|
3086
|
+
var c = 0.3333333333333333, p = 2 / 3;
|
|
3087
3087
|
i = {
|
|
3088
3088
|
type: "C",
|
|
3089
3089
|
x: i.x,
|
|
3090
3090
|
y: i.y,
|
|
3091
|
-
x1: Math.round(
|
|
3092
|
-
y1: Math.round(
|
|
3093
|
-
x2: Math.round(
|
|
3094
|
-
y2: Math.round(
|
|
3091
|
+
x1: Math.round(c * a + p * i.x1),
|
|
3092
|
+
y1: Math.round(c * o + p * i.y1),
|
|
3093
|
+
x2: Math.round(c * i.x + p * i.x1),
|
|
3094
|
+
y2: Math.round(c * i.y + p * i.y1)
|
|
3095
3095
|
};
|
|
3096
3096
|
}
|
|
3097
3097
|
if (i.type === "M")
|
|
@@ -3099,14 +3099,14 @@ function os(e) {
|
|
|
3099
3099
|
else if (i.type === "L")
|
|
3100
3100
|
s = Math.round(i.x - a), l = Math.round(i.y - o), t.push({ name: "dx", type: "NUMBER", value: s }), t.push({ name: "dy", type: "NUMBER", value: l }), t.push({ name: "rlineto", type: "OP", value: 5 }), a = Math.round(i.x), o = Math.round(i.y);
|
|
3101
3101
|
else if (i.type === "C") {
|
|
3102
|
-
var u = Math.round(i.x1 - a), f = Math.round(i.y1 - o),
|
|
3103
|
-
s = Math.round(i.x - i.x2), l = Math.round(i.y - i.y2), t.push({ name: "dx1", type: "NUMBER", value: u }), t.push({ name: "dy1", type: "NUMBER", value: f }), t.push({ name: "dx2", type: "NUMBER", value:
|
|
3102
|
+
var u = Math.round(i.x1 - a), f = Math.round(i.y1 - o), m = Math.round(i.x2 - i.x1), C = Math.round(i.y2 - i.y1);
|
|
3103
|
+
s = Math.round(i.x - i.x2), l = Math.round(i.y - i.y2), t.push({ name: "dx1", type: "NUMBER", value: u }), t.push({ name: "dy1", type: "NUMBER", value: f }), t.push({ name: "dx2", type: "NUMBER", value: m }), t.push({ name: "dy2", type: "NUMBER", value: C }), t.push({ name: "dx", type: "NUMBER", value: s }), t.push({ name: "dy", type: "NUMBER", value: l }), t.push({ name: "rrcurveto", type: "OP", value: 8 }), a = Math.round(i.x), o = Math.round(i.y);
|
|
3104
3104
|
}
|
|
3105
3105
|
}
|
|
3106
3106
|
return t.push({ name: "endchar", type: "OP", value: 14 }), t;
|
|
3107
3107
|
}
|
|
3108
3108
|
function ss(e) {
|
|
3109
|
-
for (var t = new
|
|
3109
|
+
for (var t = new B.Record("CharStrings INDEX", [
|
|
3110
3110
|
{ name: "charStrings", type: "INDEX", value: [] }
|
|
3111
3111
|
]), r = 0; r < e.length; r += 1) {
|
|
3112
3112
|
var a = e.get(r), o = os(a);
|
|
@@ -3115,13 +3115,13 @@ function ss(e) {
|
|
|
3115
3115
|
return t;
|
|
3116
3116
|
}
|
|
3117
3117
|
function is(e, t) {
|
|
3118
|
-
var r = new
|
|
3118
|
+
var r = new B.Record("Private DICT", [
|
|
3119
3119
|
{ name: "dict", type: "DICT", value: {} }
|
|
3120
3120
|
]);
|
|
3121
3121
|
return r.dict = _n(wn, e, t), r;
|
|
3122
3122
|
}
|
|
3123
3123
|
function ls(e, t) {
|
|
3124
|
-
for (var r = new
|
|
3124
|
+
for (var r = new B.Table("CFF ", [
|
|
3125
3125
|
{ name: "header", type: "RECORD" },
|
|
3126
3126
|
{ name: "nameIndex", type: "RECORD" },
|
|
3127
3127
|
{ name: "topDictIndex", type: "RECORD" },
|
|
@@ -3143,12 +3143,12 @@ function ls(e, t) {
|
|
|
3143
3143
|
private: [0, 999]
|
|
3144
3144
|
}, n = {}, s = [], l, i = 1; i < e.length; i += 1)
|
|
3145
3145
|
l = e.get(i), s.push(l.name);
|
|
3146
|
-
var
|
|
3146
|
+
var c = [];
|
|
3147
3147
|
r.header = es(), r.nameIndex = ts([t.postScriptName]);
|
|
3148
|
-
var p = Oa(o,
|
|
3149
|
-
r.topDictIndex = Ca(p), r.globalSubrIndex = as(), r.charsets = ns(s,
|
|
3148
|
+
var p = Oa(o, c);
|
|
3149
|
+
r.topDictIndex = Ca(p), r.globalSubrIndex = as(), r.charsets = ns(s, c), r.charStringsIndex = ss(e), r.privateDict = is(n, c), r.stringIndex = rs(c);
|
|
3150
3150
|
var u = r.header.sizeOf() + r.nameIndex.sizeOf() + r.topDictIndex.sizeOf() + r.stringIndex.sizeOf() + r.globalSubrIndex.sizeOf();
|
|
3151
|
-
return o.charset = u, o.encoding = 0, o.charStrings = o.charset + r.charsets.sizeOf(), o.private[1] = o.charStrings + r.charStringsIndex.sizeOf(), p = Oa(o,
|
|
3151
|
+
return o.charset = u, o.encoding = 0, o.charStrings = o.charset + r.charsets.sizeOf(), o.private[1] = o.charStrings + r.charStringsIndex.sizeOf(), p = Oa(o, c), r.topDictIndex = Ca(p), r;
|
|
3152
3152
|
}
|
|
3153
3153
|
var us = { parse: Qo, make: ls };
|
|
3154
3154
|
function ds(e, t) {
|
|
@@ -3157,7 +3157,7 @@ function ds(e, t) {
|
|
|
3157
3157
|
}
|
|
3158
3158
|
function cs(e) {
|
|
3159
3159
|
var t = Math.round((/* @__PURE__ */ new Date()).getTime() / 1e3) + 2082844800, r = t;
|
|
3160
|
-
return e.createdTimestamp && (r = e.createdTimestamp + 2082844800), new
|
|
3160
|
+
return e.createdTimestamp && (r = e.createdTimestamp + 2082844800), new B.Table("head", [
|
|
3161
3161
|
{ name: "version", type: "FIXED", value: 65536 },
|
|
3162
3162
|
{ name: "fontRevision", type: "FIXED", value: 65536 },
|
|
3163
3163
|
{ name: "checkSumAdjustment", type: "ULONG", value: 0 },
|
|
@@ -3183,7 +3183,7 @@ function vs(e, t) {
|
|
|
3183
3183
|
return r.version = a.parseVersion(), r.ascender = a.parseShort(), r.descender = a.parseShort(), r.lineGap = a.parseShort(), r.advanceWidthMax = a.parseUShort(), r.minLeftSideBearing = a.parseShort(), r.minRightSideBearing = a.parseShort(), r.xMaxExtent = a.parseShort(), r.caretSlopeRise = a.parseShort(), r.caretSlopeRun = a.parseShort(), r.caretOffset = a.parseShort(), a.relativeOffset += 8, r.metricDataFormat = a.parseShort(), r.numberOfHMetrics = a.parseUShort(), r;
|
|
3184
3184
|
}
|
|
3185
3185
|
function fs(e) {
|
|
3186
|
-
return new
|
|
3186
|
+
return new B.Table("hhea", [
|
|
3187
3187
|
{ name: "version", type: "FIXED", value: 65536 },
|
|
3188
3188
|
{ name: "ascender", type: "FWORD", value: 0 },
|
|
3189
3189
|
{ name: "descender", type: "FWORD", value: 0 },
|
|
@@ -3204,14 +3204,14 @@ function fs(e) {
|
|
|
3204
3204
|
], e);
|
|
3205
3205
|
}
|
|
3206
3206
|
var hs = { parse: vs, make: fs };
|
|
3207
|
-
function
|
|
3207
|
+
function ms(e, t, r, a, o) {
|
|
3208
3208
|
for (var n, s, l = new W.Parser(e, t), i = 0; i < a; i += 1) {
|
|
3209
3209
|
i < r && (n = l.parseUShort(), s = l.parseShort());
|
|
3210
|
-
var
|
|
3211
|
-
|
|
3210
|
+
var c = o.get(i);
|
|
3211
|
+
c.advanceWidth = n, c.leftSideBearing = s;
|
|
3212
3212
|
}
|
|
3213
3213
|
}
|
|
3214
|
-
function
|
|
3214
|
+
function gs(e, t, r, a, o) {
|
|
3215
3215
|
e._hmtxTableData = {};
|
|
3216
3216
|
for (var n, s, l = new W.Parser(t, r), i = 0; i < o; i += 1)
|
|
3217
3217
|
i < a && (n = l.parseUShort(), s = l.parseShort()), e._hmtxTableData[i] = {
|
|
@@ -3220,10 +3220,10 @@ function ms(e, t, r, a, o) {
|
|
|
3220
3220
|
};
|
|
3221
3221
|
}
|
|
3222
3222
|
function ys(e, t, r, a, o, n, s) {
|
|
3223
|
-
s.lowMemory ?
|
|
3223
|
+
s.lowMemory ? gs(e, t, r, a, o) : ms(t, r, a, o, n);
|
|
3224
3224
|
}
|
|
3225
3225
|
function bs(e) {
|
|
3226
|
-
for (var t = new
|
|
3226
|
+
for (var t = new B.Table("hmtx", []), r = 0; r < e.length; r += 1) {
|
|
3227
3227
|
var a = e.get(r), o = a.advanceWidth || 0, n = a.leftSideBearing || 0;
|
|
3228
3228
|
t.fields.push({ name: "advanceWidth_" + r, type: "USHORT", value: o }), t.fields.push({ name: "leftSideBearing_" + r, type: "SHORT", value: n });
|
|
3229
3229
|
}
|
|
@@ -3231,7 +3231,7 @@ function bs(e) {
|
|
|
3231
3231
|
}
|
|
3232
3232
|
var ks = { parse: ys, make: bs };
|
|
3233
3233
|
function xs(e) {
|
|
3234
|
-
for (var t = new
|
|
3234
|
+
for (var t = new B.Table("ltag", [
|
|
3235
3235
|
{ name: "version", type: "ULONG", value: 1 },
|
|
3236
3236
|
{ name: "flags", type: "ULONG", value: 0 },
|
|
3237
3237
|
{ name: "numTags", type: "ULONG", value: e.length }
|
|
@@ -3245,7 +3245,7 @@ function Ss(e, t) {
|
|
|
3245
3245
|
var r = new W.Parser(e, t), a = r.parseULong();
|
|
3246
3246
|
z.argument(a === 1, "Unsupported ltag table version."), r.skip("uLong", 1);
|
|
3247
3247
|
for (var o = r.parseULong(), n = [], s = 0; s < o; s++) {
|
|
3248
|
-
for (var l = "", i = t + r.parseUShort(),
|
|
3248
|
+
for (var l = "", i = t + r.parseUShort(), c = r.parseUShort(), p = i; p < i + c; ++p)
|
|
3249
3249
|
l += String.fromCharCode(e.getInt8(p));
|
|
3250
3250
|
n.push(l);
|
|
3251
3251
|
}
|
|
@@ -3257,7 +3257,7 @@ function ws(e, t) {
|
|
|
3257
3257
|
return r.version = a.parseVersion(), r.numGlyphs = a.parseUShort(), r.version === 1 && (r.maxPoints = a.parseUShort(), r.maxContours = a.parseUShort(), r.maxCompositePoints = a.parseUShort(), r.maxCompositeContours = a.parseUShort(), r.maxZones = a.parseUShort(), r.maxTwilightPoints = a.parseUShort(), r.maxStorage = a.parseUShort(), r.maxFunctionDefs = a.parseUShort(), r.maxInstructionDefs = a.parseUShort(), r.maxStackElements = a.parseUShort(), r.maxSizeOfInstructions = a.parseUShort(), r.maxComponentElements = a.parseUShort(), r.maxComponentDepth = a.parseUShort()), r;
|
|
3258
3258
|
}
|
|
3259
3259
|
function Os(e) {
|
|
3260
|
-
return new
|
|
3260
|
+
return new B.Table("maxp", [
|
|
3261
3261
|
{ name: "version", type: "FIXED", value: 20480 },
|
|
3262
3262
|
{ name: "numGlyphs", type: "USHORT", value: e }
|
|
3263
3263
|
]);
|
|
@@ -4001,12 +4001,12 @@ function Dn(e, t, r) {
|
|
|
4001
4001
|
}
|
|
4002
4002
|
function Ds(e, t, r) {
|
|
4003
4003
|
for (var a = {}, o = new W.Parser(e, t), n = o.parseUShort(), s = o.parseUShort(), l = o.offset + o.parseUShort(), i = 0; i < s; i++) {
|
|
4004
|
-
var
|
|
4004
|
+
var c = o.parseUShort(), p = o.parseUShort(), u = o.parseUShort(), f = o.parseUShort(), m = Un[f] || f, C = o.parseUShort(), O = o.parseUShort(), T = Us(c, u, r), _ = Dn(c, p, u);
|
|
4005
4005
|
if (_ !== void 0 && T !== void 0) {
|
|
4006
4006
|
var A = void 0;
|
|
4007
4007
|
if (_ === jr ? A = xt.UTF16(e, l + O, C) : A = xt.MACSTRING(e, l + O, C, _), A) {
|
|
4008
|
-
var U = a[
|
|
4009
|
-
U === void 0 && (U = a[
|
|
4008
|
+
var U = a[m];
|
|
4009
|
+
U === void 0 && (U = a[m] = {}), U[T] = A;
|
|
4010
4010
|
}
|
|
4011
4011
|
}
|
|
4012
4012
|
}
|
|
@@ -4019,7 +4019,7 @@ function Er(e) {
|
|
|
4019
4019
|
return t;
|
|
4020
4020
|
}
|
|
4021
4021
|
function _a(e, t, r, a, o, n) {
|
|
4022
|
-
return new
|
|
4022
|
+
return new B.Record("NameRecord", [
|
|
4023
4023
|
{ name: "platformID", type: "USHORT", value: e },
|
|
4024
4024
|
{ name: "encodingID", type: "USHORT", value: t },
|
|
4025
4025
|
{ name: "languageID", type: "USHORT", value: r },
|
|
@@ -4057,11 +4057,11 @@ function Ps(e, t) {
|
|
|
4057
4057
|
throw new Error('Name table entry "' + s + '" does not exist, see nameTableNames for complete list.');
|
|
4058
4058
|
o[r] = e[s], a.push(r);
|
|
4059
4059
|
}
|
|
4060
|
-
for (var i = Er(En),
|
|
4060
|
+
for (var i = Er(En), c = Er(Rn), p = [], u = [], f = 0; f < a.length; f++) {
|
|
4061
4061
|
r = a[f];
|
|
4062
|
-
var
|
|
4063
|
-
for (var C in
|
|
4064
|
-
var O =
|
|
4062
|
+
var m = o[r];
|
|
4063
|
+
for (var C in m) {
|
|
4064
|
+
var O = m[C], T = 1, _ = i[C], A = _s[_], U = Dn(T, A, _), Q = D.MACSTRING(O, U);
|
|
4065
4065
|
Q === void 0 && (T = 0, _ = t.indexOf(C), _ < 0 && (_ = t.length, t.push(C)), A = 4, Q = D.UTF16(O));
|
|
4066
4066
|
var E = Ua(Q, u);
|
|
4067
4067
|
p.push(_a(
|
|
@@ -4072,7 +4072,7 @@ function Ps(e, t) {
|
|
|
4072
4072
|
Q.length,
|
|
4073
4073
|
E
|
|
4074
4074
|
));
|
|
4075
|
-
var L =
|
|
4075
|
+
var L = c[C];
|
|
4076
4076
|
if (L !== void 0) {
|
|
4077
4077
|
var N = D.UTF16(O), G = Ua(N, u);
|
|
4078
4078
|
p.push(_a(
|
|
@@ -4089,7 +4089,7 @@ function Ps(e, t) {
|
|
|
4089
4089
|
p.sort(function(te, ne) {
|
|
4090
4090
|
return te.platformID - ne.platformID || te.encodingID - ne.encodingID || te.languageID - ne.languageID || te.nameID - ne.nameID;
|
|
4091
4091
|
});
|
|
4092
|
-
for (var J = new
|
|
4092
|
+
for (var J = new B.Table("name", [
|
|
4093
4093
|
{ name: "format", type: "USHORT", value: 0 },
|
|
4094
4094
|
{ name: "count", type: "USHORT", value: p.length },
|
|
4095
4095
|
{ name: "stringOffset", type: "USHORT", value: 6 + p.length * 12 }
|
|
@@ -4361,7 +4361,7 @@ function Bs(e, t) {
|
|
|
4361
4361
|
return r.ulUnicodeRange1 = a.parseULong(), r.ulUnicodeRange2 = a.parseULong(), r.ulUnicodeRange3 = a.parseULong(), r.ulUnicodeRange4 = a.parseULong(), r.achVendID = String.fromCharCode(a.parseByte(), a.parseByte(), a.parseByte(), a.parseByte()), r.fsSelection = a.parseUShort(), r.usFirstCharIndex = a.parseUShort(), r.usLastCharIndex = a.parseUShort(), r.sTypoAscender = a.parseShort(), r.sTypoDescender = a.parseShort(), r.sTypoLineGap = a.parseShort(), r.usWinAscent = a.parseUShort(), r.usWinDescent = a.parseUShort(), r.version >= 1 && (r.ulCodePageRange1 = a.parseULong(), r.ulCodePageRange2 = a.parseULong()), r.version >= 2 && (r.sxHeight = a.parseShort(), r.sCapHeight = a.parseShort(), r.usDefaultChar = a.parseUShort(), r.usBreakChar = a.parseUShort(), r.usMaxContent = a.parseUShort()), r;
|
|
4362
4362
|
}
|
|
4363
4363
|
function As(e) {
|
|
4364
|
-
return new
|
|
4364
|
+
return new B.Table("OS/2", [
|
|
4365
4365
|
{ name: "version", type: "USHORT", value: 3 },
|
|
4366
4366
|
{ name: "xAvgCharWidth", type: "SHORT", value: 0 },
|
|
4367
4367
|
{ name: "usWeightClass", type: "USHORT", value: 0 },
|
|
@@ -4437,7 +4437,7 @@ function Ms(e, t) {
|
|
|
4437
4437
|
return r;
|
|
4438
4438
|
}
|
|
4439
4439
|
function Ns() {
|
|
4440
|
-
return new
|
|
4440
|
+
return new B.Table("post", [
|
|
4441
4441
|
{ name: "version", type: "FIXED", value: 196608 },
|
|
4442
4442
|
{ name: "italicAngle", type: "FIXED", value: 0 },
|
|
4443
4443
|
{ name: "underlinePosition", type: "FWORD", value: 0 },
|
|
@@ -4615,55 +4615,55 @@ function $s(e, t) {
|
|
|
4615
4615
|
}
|
|
4616
4616
|
var St = new Array(9);
|
|
4617
4617
|
St[1] = function(t) {
|
|
4618
|
-
return t.substFormat === 1 ? new
|
|
4618
|
+
return t.substFormat === 1 ? new B.Table("substitutionTable", [
|
|
4619
4619
|
{ name: "substFormat", type: "USHORT", value: 1 },
|
|
4620
|
-
{ name: "coverage", type: "TABLE", value: new
|
|
4620
|
+
{ name: "coverage", type: "TABLE", value: new B.Coverage(t.coverage) },
|
|
4621
4621
|
{ name: "deltaGlyphID", type: "USHORT", value: t.deltaGlyphId }
|
|
4622
|
-
]) : new
|
|
4622
|
+
]) : new B.Table("substitutionTable", [
|
|
4623
4623
|
{ name: "substFormat", type: "USHORT", value: 2 },
|
|
4624
|
-
{ name: "coverage", type: "TABLE", value: new
|
|
4625
|
-
].concat(
|
|
4624
|
+
{ name: "coverage", type: "TABLE", value: new B.Coverage(t.coverage) }
|
|
4625
|
+
].concat(B.ushortList("substitute", t.substitute)));
|
|
4626
4626
|
};
|
|
4627
4627
|
St[2] = function(t) {
|
|
4628
|
-
return z.assert(t.substFormat === 1, "Lookup type 2 substFormat must be 1."), new
|
|
4628
|
+
return z.assert(t.substFormat === 1, "Lookup type 2 substFormat must be 1."), new B.Table("substitutionTable", [
|
|
4629
4629
|
{ name: "substFormat", type: "USHORT", value: 1 },
|
|
4630
|
-
{ name: "coverage", type: "TABLE", value: new
|
|
4631
|
-
].concat(
|
|
4632
|
-
return new
|
|
4630
|
+
{ name: "coverage", type: "TABLE", value: new B.Coverage(t.coverage) }
|
|
4631
|
+
].concat(B.tableList("seqSet", t.sequences, function(r) {
|
|
4632
|
+
return new B.Table("sequenceSetTable", B.ushortList("sequence", r));
|
|
4633
4633
|
})));
|
|
4634
4634
|
};
|
|
4635
4635
|
St[3] = function(t) {
|
|
4636
|
-
return z.assert(t.substFormat === 1, "Lookup type 3 substFormat must be 1."), new
|
|
4636
|
+
return z.assert(t.substFormat === 1, "Lookup type 3 substFormat must be 1."), new B.Table("substitutionTable", [
|
|
4637
4637
|
{ name: "substFormat", type: "USHORT", value: 1 },
|
|
4638
|
-
{ name: "coverage", type: "TABLE", value: new
|
|
4639
|
-
].concat(
|
|
4640
|
-
return new
|
|
4638
|
+
{ name: "coverage", type: "TABLE", value: new B.Coverage(t.coverage) }
|
|
4639
|
+
].concat(B.tableList("altSet", t.alternateSets, function(r) {
|
|
4640
|
+
return new B.Table("alternateSetTable", B.ushortList("alternate", r));
|
|
4641
4641
|
})));
|
|
4642
4642
|
};
|
|
4643
4643
|
St[4] = function(t) {
|
|
4644
|
-
return z.assert(t.substFormat === 1, "Lookup type 4 substFormat must be 1."), new
|
|
4644
|
+
return z.assert(t.substFormat === 1, "Lookup type 4 substFormat must be 1."), new B.Table("substitutionTable", [
|
|
4645
4645
|
{ name: "substFormat", type: "USHORT", value: 1 },
|
|
4646
|
-
{ name: "coverage", type: "TABLE", value: new
|
|
4647
|
-
].concat(
|
|
4648
|
-
return new
|
|
4649
|
-
return new
|
|
4646
|
+
{ name: "coverage", type: "TABLE", value: new B.Coverage(t.coverage) }
|
|
4647
|
+
].concat(B.tableList("ligSet", t.ligatureSets, function(r) {
|
|
4648
|
+
return new B.Table("ligatureSetTable", B.tableList("ligature", r, function(a) {
|
|
4649
|
+
return new B.Table(
|
|
4650
4650
|
"ligatureTable",
|
|
4651
|
-
[{ name: "ligGlyph", type: "USHORT", value: a.ligGlyph }].concat(
|
|
4651
|
+
[{ name: "ligGlyph", type: "USHORT", value: a.ligGlyph }].concat(B.ushortList("component", a.components, a.components.length + 1))
|
|
4652
4652
|
);
|
|
4653
4653
|
}));
|
|
4654
4654
|
})));
|
|
4655
4655
|
};
|
|
4656
4656
|
St[6] = function(t) {
|
|
4657
4657
|
if (t.substFormat === 1) {
|
|
4658
|
-
var r = new
|
|
4658
|
+
var r = new B.Table("chainContextTable", [
|
|
4659
4659
|
{ name: "substFormat", type: "USHORT", value: t.substFormat },
|
|
4660
|
-
{ name: "coverage", type: "TABLE", value: new
|
|
4661
|
-
].concat(
|
|
4662
|
-
return new
|
|
4663
|
-
var l =
|
|
4664
|
-
return s.lookupRecords.forEach(function(i,
|
|
4665
|
-
l = l.concat({ name: "sequenceIndex" +
|
|
4666
|
-
}), new
|
|
4660
|
+
{ name: "coverage", type: "TABLE", value: new B.Coverage(t.coverage) }
|
|
4661
|
+
].concat(B.tableList("chainRuleSet", t.chainRuleSets, function(n) {
|
|
4662
|
+
return new B.Table("chainRuleSetTable", B.tableList("chainRule", n, function(s) {
|
|
4663
|
+
var l = B.ushortList("backtrackGlyph", s.backtrack, s.backtrack.length).concat(B.ushortList("inputGlyph", s.input, s.input.length + 1)).concat(B.ushortList("lookaheadGlyph", s.lookahead, s.lookahead.length)).concat(B.ushortList("substitution", [], s.lookupRecords.length));
|
|
4664
|
+
return s.lookupRecords.forEach(function(i, c) {
|
|
4665
|
+
l = l.concat({ name: "sequenceIndex" + c, type: "USHORT", value: i.sequenceIndex }).concat({ name: "lookupListIndex" + c, type: "USHORT", value: i.lookupListIndex });
|
|
4666
|
+
}), new B.Table("chainRuleTable", l);
|
|
4667
4667
|
}));
|
|
4668
4668
|
})));
|
|
4669
4669
|
return r;
|
|
@@ -4674,25 +4674,25 @@ St[6] = function(t) {
|
|
|
4674
4674
|
{ name: "substFormat", type: "USHORT", value: t.substFormat }
|
|
4675
4675
|
];
|
|
4676
4676
|
a.push({ name: "backtrackGlyphCount", type: "USHORT", value: t.backtrackCoverage.length }), t.backtrackCoverage.forEach(function(n, s) {
|
|
4677
|
-
a.push({ name: "backtrackCoverage" + s, type: "TABLE", value: new
|
|
4677
|
+
a.push({ name: "backtrackCoverage" + s, type: "TABLE", value: new B.Coverage(n) });
|
|
4678
4678
|
}), a.push({ name: "inputGlyphCount", type: "USHORT", value: t.inputCoverage.length }), t.inputCoverage.forEach(function(n, s) {
|
|
4679
|
-
a.push({ name: "inputCoverage" + s, type: "TABLE", value: new
|
|
4679
|
+
a.push({ name: "inputCoverage" + s, type: "TABLE", value: new B.Coverage(n) });
|
|
4680
4680
|
}), a.push({ name: "lookaheadGlyphCount", type: "USHORT", value: t.lookaheadCoverage.length }), t.lookaheadCoverage.forEach(function(n, s) {
|
|
4681
|
-
a.push({ name: "lookaheadCoverage" + s, type: "TABLE", value: new
|
|
4681
|
+
a.push({ name: "lookaheadCoverage" + s, type: "TABLE", value: new B.Coverage(n) });
|
|
4682
4682
|
}), a.push({ name: "substitutionCount", type: "USHORT", value: t.lookupRecords.length }), t.lookupRecords.forEach(function(n, s) {
|
|
4683
4683
|
a = a.concat({ name: "sequenceIndex" + s, type: "USHORT", value: n.sequenceIndex }).concat({ name: "lookupListIndex" + s, type: "USHORT", value: n.lookupListIndex });
|
|
4684
4684
|
});
|
|
4685
|
-
var o = new
|
|
4685
|
+
var o = new B.Table("chainContextTable", a);
|
|
4686
4686
|
return o;
|
|
4687
4687
|
}
|
|
4688
4688
|
z.assert(!1, "lookup type 6 format must be 1, 2 or 3.");
|
|
4689
4689
|
};
|
|
4690
4690
|
function Hs(e) {
|
|
4691
|
-
return new
|
|
4691
|
+
return new B.Table("GSUB", [
|
|
4692
4692
|
{ name: "version", type: "ULONG", value: 65536 },
|
|
4693
|
-
{ name: "scripts", type: "TABLE", value: new
|
|
4694
|
-
{ name: "features", type: "TABLE", value: new
|
|
4695
|
-
{ name: "lookups", type: "TABLE", value: new
|
|
4693
|
+
{ name: "scripts", type: "TABLE", value: new B.ScriptList(e.scripts) },
|
|
4694
|
+
{ name: "features", type: "TABLE", value: new B.FeatureList(e.features) },
|
|
4695
|
+
{ name: "lookups", type: "TABLE", value: new B.LookupList(e.lookups, St) }
|
|
4696
4696
|
]);
|
|
4697
4697
|
}
|
|
4698
4698
|
var Vs = { parse: $s, make: Hs };
|
|
@@ -4700,13 +4700,13 @@ function zs(e, t) {
|
|
|
4700
4700
|
var r = new W.Parser(e, t), a = r.parseULong();
|
|
4701
4701
|
z.argument(a === 1, "Unsupported META table version."), r.parseULong(), r.parseULong();
|
|
4702
4702
|
for (var o = r.parseULong(), n = {}, s = 0; s < o; s++) {
|
|
4703
|
-
var l = r.parseTag(), i = r.parseULong(),
|
|
4703
|
+
var l = r.parseTag(), i = r.parseULong(), c = r.parseULong(), p = xt.UTF8(e, t + i, c);
|
|
4704
4704
|
n[l] = p;
|
|
4705
4705
|
}
|
|
4706
4706
|
return n;
|
|
4707
4707
|
}
|
|
4708
4708
|
function Ws(e) {
|
|
4709
|
-
var t = Object.keys(e).length, r = "", a = 16 + t * 12, o = new
|
|
4709
|
+
var t = Object.keys(e).length, r = "", a = 16 + t * 12, o = new B.Table("meta", [
|
|
4710
4710
|
{ name: "version", type: "ULONG", value: 1 },
|
|
4711
4711
|
{ name: "flags", type: "ULONG", value: 0 },
|
|
4712
4712
|
{ name: "offset", type: "ULONG", value: a },
|
|
@@ -4730,7 +4730,7 @@ function aa(e) {
|
|
|
4730
4730
|
return t %= Math.pow(2, 32), t;
|
|
4731
4731
|
}
|
|
4732
4732
|
function Da(e, t, r, a) {
|
|
4733
|
-
return new
|
|
4733
|
+
return new B.Record("Table Record", [
|
|
4734
4734
|
{ name: "tag", type: "TAG", value: e !== void 0 ? e : "" },
|
|
4735
4735
|
{ name: "checkSum", type: "ULONG", value: t !== void 0 ? t : 0 },
|
|
4736
4736
|
{ name: "offset", type: "ULONG", value: r !== void 0 ? r : 0 },
|
|
@@ -4738,7 +4738,7 @@ function Da(e, t, r, a) {
|
|
|
4738
4738
|
]);
|
|
4739
4739
|
}
|
|
4740
4740
|
function Ln(e) {
|
|
4741
|
-
var t = new
|
|
4741
|
+
var t = new B.Table("sfnt", [
|
|
4742
4742
|
{ name: "version", type: "TAG", value: "OTTO" },
|
|
4743
4743
|
{ name: "numTables", type: "USHORT", value: 0 },
|
|
4744
4744
|
{ name: "searchRange", type: "USHORT", value: 0 },
|
|
@@ -4753,8 +4753,8 @@ function Ln(e) {
|
|
|
4753
4753
|
for (var s = 0; s < e.length; s += 1) {
|
|
4754
4754
|
var l = e[s];
|
|
4755
4755
|
z.argument(l.tableName.length === 4, "Table name" + l.tableName + " is invalid.");
|
|
4756
|
-
var i = l.sizeOf(),
|
|
4757
|
-
for (a.push({ name:
|
|
4756
|
+
var i = l.sizeOf(), c = Da(l.tableName, aa(l.encode()), n, i);
|
|
4757
|
+
for (a.push({ name: c.tag + " Table Record", type: "RECORD", value: c }), o.push({ name: l.tableName + " table", type: "RECORD", value: l }), n += i, z.argument(!isNaN(n), "Something went wrong calculating the offset."); n % 4 !== 0; )
|
|
4758
4758
|
n += 1, o.push({ name: "padding", type: "BYTE", value: 0 });
|
|
4759
4759
|
}
|
|
4760
4760
|
return a.sort(function(p, u) {
|
|
@@ -4777,11 +4777,11 @@ function qs(e) {
|
|
|
4777
4777
|
return t / e.length;
|
|
4778
4778
|
}
|
|
4779
4779
|
function Xs(e) {
|
|
4780
|
-
for (var t = [], r = [], a = [], o = [], n = [], s = [], l = [], i,
|
|
4780
|
+
for (var t = [], r = [], a = [], o = [], n = [], s = [], l = [], i, c = 0, p = 0, u = 0, f = 0, m = 0, C = 0; C < e.glyphs.length; C += 1) {
|
|
4781
4781
|
var O = e.glyphs.get(C), T = O.unicode | 0;
|
|
4782
4782
|
if (isNaN(O.advanceWidth))
|
|
4783
4783
|
throw new Error("Glyph " + O.name + " (" + C + "): advanceWidth is not a number.");
|
|
4784
|
-
(i > T || i === void 0) && T > 0 && (i = T),
|
|
4784
|
+
(i > T || i === void 0) && T > 0 && (i = T), c < T && (c = T);
|
|
4785
4785
|
var _ = Ea.getUnicodeRange(T);
|
|
4786
4786
|
if (_ < 32)
|
|
4787
4787
|
p |= 1 << _;
|
|
@@ -4790,7 +4790,7 @@ function Xs(e) {
|
|
|
4790
4790
|
else if (_ < 96)
|
|
4791
4791
|
f |= 1 << _ - 64;
|
|
4792
4792
|
else if (_ < 123)
|
|
4793
|
-
|
|
4793
|
+
m |= 1 << _ - 96;
|
|
4794
4794
|
else
|
|
4795
4795
|
throw new Error("Unicode ranges bits > 123 are reserved for internal usage");
|
|
4796
4796
|
if (O.name !== ".notdef") {
|
|
@@ -4831,11 +4831,11 @@ function Xs(e) {
|
|
|
4831
4831
|
}), L = Cs.make(e.glyphs.length), N = Ea.make(Object.assign({
|
|
4832
4832
|
xAvgCharWidth: Math.round(U.advanceWidthAvg),
|
|
4833
4833
|
usFirstCharIndex: i,
|
|
4834
|
-
usLastCharIndex:
|
|
4834
|
+
usLastCharIndex: c,
|
|
4835
4835
|
ulUnicodeRange1: p,
|
|
4836
4836
|
ulUnicodeRange2: u,
|
|
4837
4837
|
ulUnicodeRange3: f,
|
|
4838
|
-
ulUnicodeRange4:
|
|
4838
|
+
ulUnicodeRange4: m,
|
|
4839
4839
|
// See http://typophile.com/node/13081 for more info on vertical metrics.
|
|
4840
4840
|
// We get metrics for typical characters (such as "x" for xHeight).
|
|
4841
4841
|
// We provide some fallback characters if characters are unavailable: their
|
|
@@ -4859,7 +4859,7 @@ function Xs(e) {
|
|
|
4859
4859
|
for (var ie in e.names)
|
|
4860
4860
|
de[ie] = e.names[ie];
|
|
4861
4861
|
de.uniqueID || (de.uniqueID = { en: e.getEnglishName("manufacturer") + ":" + ne }), de.postScriptName || (de.postScriptName = { en: ue }), de.preferredFamily || (de.preferredFamily = e.names.fontFamily), de.preferredSubfamily || (de.preferredSubfamily = e.names.fontSubfamily);
|
|
4862
|
-
var
|
|
4862
|
+
var me = [], le = Fs.make(de, me), ge = me.length > 0 ? Ts.make(me) : void 0, ve = Gs.make(), fe = us.make(e.glyphs, {
|
|
4863
4863
|
version: e.getEnglishName("version"),
|
|
4864
4864
|
fullName: ne,
|
|
4865
4865
|
familyName: $,
|
|
@@ -4868,7 +4868,7 @@ function Xs(e) {
|
|
|
4868
4868
|
unitsPerEm: e.unitsPerEm,
|
|
4869
4869
|
fontBBox: [0, U.yMin, U.ascender, U.advanceWidthMax]
|
|
4870
4870
|
}), ae = e.metas && Object.keys(e.metas).length > 0 ? js.make(e.metas) : void 0, X = [Q, E, L, N, le, J, ve, fe, G];
|
|
4871
|
-
|
|
4871
|
+
ge && X.push(ge), e.tables.gsub && X.push(Vs.make(e.tables.gsub)), ae && X.push(ae);
|
|
4872
4872
|
for (var Ye = Ln(X), Ze = Ye.encode(), _e = aa(Ze), Ne = Ye.fields, De = !1, we = 0; we < Ne.length; we += 1)
|
|
4873
4873
|
if (Ne[we].name === "head table") {
|
|
4874
4874
|
Ne[we].value.checkSumAdjustment = 2981146554 - _e, De = !0;
|
|
@@ -5039,11 +5039,11 @@ Ht.prototype = {
|
|
|
5039
5039
|
if (n = l[s[i]], n.tag === r)
|
|
5040
5040
|
return n.feature;
|
|
5041
5041
|
if (a) {
|
|
5042
|
-
var
|
|
5043
|
-
return z.assert(
|
|
5042
|
+
var c = l.length;
|
|
5043
|
+
return z.assert(c === 0 || r >= l[c - 1].tag, "Features must be added in alphabetical order."), n = {
|
|
5044
5044
|
tag: r,
|
|
5045
5045
|
feature: { params: 0, lookupListIndexes: [] }
|
|
5046
|
-
}, l.push(n), s.push(
|
|
5046
|
+
}, l.push(n), s.push(c), n.feature;
|
|
5047
5047
|
}
|
|
5048
5048
|
}
|
|
5049
5049
|
},
|
|
@@ -5060,8 +5060,8 @@ Ht.prototype = {
|
|
|
5060
5060
|
getLookupTables: function(e, t, r, a, o) {
|
|
5061
5061
|
var n = this.getFeatureTable(e, t, r, o), s = [];
|
|
5062
5062
|
if (n) {
|
|
5063
|
-
for (var l, i = n.lookupListIndexes,
|
|
5064
|
-
l =
|
|
5063
|
+
for (var l, i = n.lookupListIndexes, c = this.font.tables[this.tableName].lookups, p = 0; p < i.length; p++)
|
|
5064
|
+
l = c[i[p]], l.lookupType === a && s.push(l);
|
|
5065
5065
|
if (s.length === 0 && o) {
|
|
5066
5066
|
l = {
|
|
5067
5067
|
lookupType: a,
|
|
@@ -5069,8 +5069,8 @@ Ht.prototype = {
|
|
|
5069
5069
|
subtables: [],
|
|
5070
5070
|
markFilteringSet: void 0
|
|
5071
5071
|
};
|
|
5072
|
-
var u =
|
|
5073
|
-
return
|
|
5072
|
+
var u = c.length;
|
|
5073
|
+
return c.push(l), i.push(u), [l];
|
|
5074
5074
|
}
|
|
5075
5075
|
}
|
|
5076
5076
|
return s;
|
|
@@ -5140,15 +5140,15 @@ Vt.prototype.getKerningValue = function(e, t, r) {
|
|
|
5140
5140
|
if (!(l < 0))
|
|
5141
5141
|
switch (s.posFormat) {
|
|
5142
5142
|
case 1:
|
|
5143
|
-
for (var i = s.pairSets[l],
|
|
5144
|
-
var p = i[
|
|
5143
|
+
for (var i = s.pairSets[l], c = 0; c < i.length; c++) {
|
|
5144
|
+
var p = i[c];
|
|
5145
5145
|
if (p.secondGlyph === r)
|
|
5146
5146
|
return p.value1 && p.value1.xAdvance || 0;
|
|
5147
5147
|
}
|
|
5148
5148
|
break;
|
|
5149
5149
|
case 2:
|
|
5150
|
-
var u = this.getGlyphClass(s.classDef1, t), f = this.getGlyphClass(s.classDef2, r),
|
|
5151
|
-
return
|
|
5150
|
+
var u = this.getGlyphClass(s.classDef1, t), f = this.getGlyphClass(s.classDef2, r), m = s.classRecords[u][f];
|
|
5151
|
+
return m.value1 && m.value1.xAdvance || 0;
|
|
5152
5152
|
}
|
|
5153
5153
|
}
|
|
5154
5154
|
return 0;
|
|
@@ -5196,17 +5196,17 @@ Ee.prototype.createDefaultTable = function() {
|
|
|
5196
5196
|
Ee.prototype.getSingle = function(e, t, r) {
|
|
5197
5197
|
for (var a = [], o = this.getLookupTables(t, r, e, 1), n = 0; n < o.length; n++)
|
|
5198
5198
|
for (var s = o[n].subtables, l = 0; l < s.length; l++) {
|
|
5199
|
-
var i = s[l],
|
|
5199
|
+
var i = s[l], c = this.expandCoverage(i.coverage), p = void 0;
|
|
5200
5200
|
if (i.substFormat === 1) {
|
|
5201
5201
|
var u = i.deltaGlyphId;
|
|
5202
|
-
for (p = 0; p <
|
|
5203
|
-
var f =
|
|
5202
|
+
for (p = 0; p < c.length; p++) {
|
|
5203
|
+
var f = c[p];
|
|
5204
5204
|
a.push({ sub: f, by: f + u });
|
|
5205
5205
|
}
|
|
5206
5206
|
} else {
|
|
5207
|
-
var
|
|
5208
|
-
for (p = 0; p <
|
|
5209
|
-
a.push({ sub:
|
|
5207
|
+
var m = i.substitute;
|
|
5208
|
+
for (p = 0; p < c.length; p++)
|
|
5209
|
+
a.push({ sub: c[p], by: m[p] });
|
|
5210
5210
|
}
|
|
5211
5211
|
}
|
|
5212
5212
|
return a;
|
|
@@ -5214,9 +5214,9 @@ Ee.prototype.getSingle = function(e, t, r) {
|
|
|
5214
5214
|
Ee.prototype.getMultiple = function(e, t, r) {
|
|
5215
5215
|
for (var a = [], o = this.getLookupTables(t, r, e, 2), n = 0; n < o.length; n++)
|
|
5216
5216
|
for (var s = o[n].subtables, l = 0; l < s.length; l++) {
|
|
5217
|
-
var i = s[l],
|
|
5218
|
-
for (p = 0; p <
|
|
5219
|
-
var u =
|
|
5217
|
+
var i = s[l], c = this.expandCoverage(i.coverage), p = void 0;
|
|
5218
|
+
for (p = 0; p < c.length; p++) {
|
|
5219
|
+
var u = c[p], f = i.sequences[p];
|
|
5220
5220
|
a.push({ sub: u, by: f });
|
|
5221
5221
|
}
|
|
5222
5222
|
}
|
|
@@ -5225,16 +5225,16 @@ Ee.prototype.getMultiple = function(e, t, r) {
|
|
|
5225
5225
|
Ee.prototype.getAlternates = function(e, t, r) {
|
|
5226
5226
|
for (var a = [], o = this.getLookupTables(t, r, e, 3), n = 0; n < o.length; n++)
|
|
5227
5227
|
for (var s = o[n].subtables, l = 0; l < s.length; l++)
|
|
5228
|
-
for (var i = s[l],
|
|
5229
|
-
a.push({ sub:
|
|
5228
|
+
for (var i = s[l], c = this.expandCoverage(i.coverage), p = i.alternateSets, u = 0; u < c.length; u++)
|
|
5229
|
+
a.push({ sub: c[u], by: p[u] });
|
|
5230
5230
|
return a;
|
|
5231
5231
|
};
|
|
5232
5232
|
Ee.prototype.getLigatures = function(e, t, r) {
|
|
5233
5233
|
for (var a = [], o = this.getLookupTables(t, r, e, 4), n = 0; n < o.length; n++)
|
|
5234
5234
|
for (var s = o[n].subtables, l = 0; l < s.length; l++)
|
|
5235
|
-
for (var i = s[l],
|
|
5236
|
-
for (var f =
|
|
5237
|
-
var O =
|
|
5235
|
+
for (var i = s[l], c = this.expandCoverage(i.coverage), p = i.ligatureSets, u = 0; u < c.length; u++)
|
|
5236
|
+
for (var f = c[u], m = p[u], C = 0; C < m.length; C++) {
|
|
5237
|
+
var O = m[C];
|
|
5238
5238
|
a.push({
|
|
5239
5239
|
sub: [f].concat(O.components),
|
|
5240
5240
|
by: O.ligGlyph
|
|
@@ -5287,14 +5287,14 @@ Ee.prototype.addLigature = function(e, t, r, a) {
|
|
|
5287
5287
|
var s = t.sub[0], l = t.sub.slice(1), i = {
|
|
5288
5288
|
ligGlyph: t.by,
|
|
5289
5289
|
components: l
|
|
5290
|
-
},
|
|
5291
|
-
if (
|
|
5292
|
-
for (var p = n.ligatureSets[
|
|
5290
|
+
}, c = this.binSearch(n.coverage.glyphs, s);
|
|
5291
|
+
if (c >= 0) {
|
|
5292
|
+
for (var p = n.ligatureSets[c], u = 0; u < p.length; u++)
|
|
5293
5293
|
if (Zs(p[u].components, l))
|
|
5294
5294
|
return;
|
|
5295
5295
|
p.push(i);
|
|
5296
5296
|
} else
|
|
5297
|
-
|
|
5297
|
+
c = -1 - c, n.coverage.glyphs.splice(c, 0, s), n.ligatureSets.splice(c, 0, [i]);
|
|
5298
5298
|
};
|
|
5299
5299
|
Ee.prototype.getFeature = function(e, t, r) {
|
|
5300
5300
|
if (/ss\d\d/.test(e))
|
|
@@ -5354,23 +5354,23 @@ function Pn(e, t, r) {
|
|
|
5354
5354
|
e.instructionLength = a.parseUShort(), e.instructions = [];
|
|
5355
5355
|
for (var i = 0; i < e.instructionLength; i += 1)
|
|
5356
5356
|
e.instructions.push(a.parseByte());
|
|
5357
|
-
var
|
|
5357
|
+
var c = s[s.length - 1] + 1;
|
|
5358
5358
|
o = [];
|
|
5359
|
-
for (var p = 0; p <
|
|
5359
|
+
for (var p = 0; p < c; p += 1)
|
|
5360
5360
|
if (n = a.parseByte(), o.push(n), (n & 8) > 0)
|
|
5361
5361
|
for (var u = a.parseByte(), f = 0; f < u; f += 1)
|
|
5362
5362
|
o.push(n), p += 1;
|
|
5363
|
-
if (z.argument(o.length ===
|
|
5364
|
-
var
|
|
5365
|
-
if (
|
|
5366
|
-
for (var O = 0; O <
|
|
5367
|
-
n = o[O], C = {}, C.onCurve = !!(n & 1), C.lastPointOfContour = s.indexOf(O) >= 0,
|
|
5368
|
-
for (var T = 0, _ = 0; _ <
|
|
5369
|
-
n = o[_], C =
|
|
5370
|
-
for (var A = 0, U = 0; U <
|
|
5371
|
-
n = o[U], C =
|
|
5363
|
+
if (z.argument(o.length === c, "Bad flags."), s.length > 0) {
|
|
5364
|
+
var m = [], C;
|
|
5365
|
+
if (c > 0) {
|
|
5366
|
+
for (var O = 0; O < c; O += 1)
|
|
5367
|
+
n = o[O], C = {}, C.onCurve = !!(n & 1), C.lastPointOfContour = s.indexOf(O) >= 0, m.push(C);
|
|
5368
|
+
for (var T = 0, _ = 0; _ < c; _ += 1)
|
|
5369
|
+
n = o[_], C = m[_], C.x = Ia(a, n, T, 2, 16), T = C.x;
|
|
5370
|
+
for (var A = 0, U = 0; U < c; U += 1)
|
|
5371
|
+
n = o[U], C = m[U], C.y = Ia(a, n, A, 4, 32), A = C.y;
|
|
5372
5372
|
}
|
|
5373
|
-
e.points =
|
|
5373
|
+
e.points = m;
|
|
5374
5374
|
} else
|
|
5375
5375
|
e.points = [];
|
|
5376
5376
|
} else if (e.numberOfContours === 0)
|
|
@@ -5430,8 +5430,8 @@ function Fn(e) {
|
|
|
5430
5430
|
var i = { x: (s.x + l.x) * 0.5, y: (s.y + l.y) * 0.5 };
|
|
5431
5431
|
t.moveTo(i.x, i.y);
|
|
5432
5432
|
}
|
|
5433
|
-
for (var
|
|
5434
|
-
if (n = s, s = l, l = o[(
|
|
5433
|
+
for (var c = 0; c < o.length; ++c)
|
|
5434
|
+
if (n = s, s = l, l = o[(c + 1) % o.length], s.onCurve)
|
|
5435
5435
|
t.lineTo(s.x, s.y);
|
|
5436
5436
|
else {
|
|
5437
5437
|
var p = l;
|
|
@@ -5526,20 +5526,20 @@ var Gn = function(e) {
|
|
|
5526
5526
|
//
|
|
5527
5527
|
// See APPENDIX on INTERPOLATE at the bottom of this file.
|
|
5528
5528
|
interpolate: function(e, t, r, a) {
|
|
5529
|
-
var o, n, s, l, i,
|
|
5529
|
+
var o, n, s, l, i, c, p;
|
|
5530
5530
|
if (!a || a === this) {
|
|
5531
|
-
if (o = e.xo - t.xo, n = e.xo - r.xo, i = t.x - t.xo,
|
|
5532
|
-
e.x = e.xo + (i +
|
|
5531
|
+
if (o = e.xo - t.xo, n = e.xo - r.xo, i = t.x - t.xo, c = r.x - r.xo, s = Math.abs(o), l = Math.abs(n), p = s + l, p === 0) {
|
|
5532
|
+
e.x = e.xo + (i + c) / 2;
|
|
5533
5533
|
return;
|
|
5534
5534
|
}
|
|
5535
|
-
e.x = e.xo + (i * l +
|
|
5535
|
+
e.x = e.xo + (i * l + c * s) / p;
|
|
5536
5536
|
return;
|
|
5537
5537
|
}
|
|
5538
|
-
if (o = a.distance(e, t, !0, !0), n = a.distance(e, r, !0, !0), i = a.distance(t, t, !1, !0),
|
|
5539
|
-
$e.setRelative(e, e, (i +
|
|
5538
|
+
if (o = a.distance(e, t, !0, !0), n = a.distance(e, r, !0, !0), i = a.distance(t, t, !1, !0), c = a.distance(r, r, !1, !0), s = Math.abs(o), l = Math.abs(n), p = s + l, p === 0) {
|
|
5539
|
+
$e.setRelative(e, e, (i + c) / 2, a, !0);
|
|
5540
5540
|
return;
|
|
5541
5541
|
}
|
|
5542
|
-
$e.setRelative(e, e, (i * l +
|
|
5542
|
+
$e.setRelative(e, e, (i * l + c * s) / p, a, !0);
|
|
5543
5543
|
},
|
|
5544
5544
|
// Slope of line normal to this
|
|
5545
5545
|
normalSlope: Number.NEGATIVE_INFINITY,
|
|
@@ -5590,20 +5590,20 @@ var Gn = function(e) {
|
|
|
5590
5590
|
//
|
|
5591
5591
|
// See APPENDIX on INTERPOLATE at the bottom of this file.
|
|
5592
5592
|
interpolate: function(e, t, r, a) {
|
|
5593
|
-
var o, n, s, l, i,
|
|
5593
|
+
var o, n, s, l, i, c, p;
|
|
5594
5594
|
if (!a || a === this) {
|
|
5595
|
-
if (o = e.yo - t.yo, n = e.yo - r.yo, i = t.y - t.yo,
|
|
5596
|
-
e.y = e.yo + (i +
|
|
5595
|
+
if (o = e.yo - t.yo, n = e.yo - r.yo, i = t.y - t.yo, c = r.y - r.yo, s = Math.abs(o), l = Math.abs(n), p = s + l, p === 0) {
|
|
5596
|
+
e.y = e.yo + (i + c) / 2;
|
|
5597
5597
|
return;
|
|
5598
5598
|
}
|
|
5599
|
-
e.y = e.yo + (i * l +
|
|
5599
|
+
e.y = e.yo + (i * l + c * s) / p;
|
|
5600
5600
|
return;
|
|
5601
5601
|
}
|
|
5602
|
-
if (o = a.distance(e, t, !0, !0), n = a.distance(e, r, !0, !0), i = a.distance(t, t, !1, !0),
|
|
5603
|
-
je.setRelative(e, e, (i +
|
|
5602
|
+
if (o = a.distance(e, t, !0, !0), n = a.distance(e, r, !0, !0), i = a.distance(t, t, !1, !0), c = a.distance(r, r, !1, !0), s = Math.abs(o), l = Math.abs(n), p = s + l, p === 0) {
|
|
5603
|
+
je.setRelative(e, e, (i + c) / 2, a, !0);
|
|
5604
5604
|
return;
|
|
5605
5605
|
}
|
|
5606
|
-
je.setRelative(e, e, (i * l +
|
|
5606
|
+
je.setRelative(e, e, (i * l + c * s) / p, a, !0);
|
|
5607
5607
|
},
|
|
5608
5608
|
// Slope of line normal to this.
|
|
5609
5609
|
normalSlope: 0,
|
|
@@ -5649,17 +5649,17 @@ zt.prototype.distance = function(e, t, r, a) {
|
|
|
5649
5649
|
return this.x * $e.distance(e, t, r, a) + this.y * je.distance(e, t, r, a);
|
|
5650
5650
|
};
|
|
5651
5651
|
zt.prototype.interpolate = function(e, t, r, a) {
|
|
5652
|
-
var o, n, s, l, i,
|
|
5653
|
-
if (s = a.distance(e, t, !0, !0), l = a.distance(e, r, !0, !0), o = a.distance(t, t, !1, !0), n = a.distance(r, r, !1, !0), i = Math.abs(s),
|
|
5652
|
+
var o, n, s, l, i, c, p;
|
|
5653
|
+
if (s = a.distance(e, t, !0, !0), l = a.distance(e, r, !0, !0), o = a.distance(t, t, !1, !0), n = a.distance(r, r, !1, !0), i = Math.abs(s), c = Math.abs(l), p = i + c, p === 0) {
|
|
5654
5654
|
this.setRelative(e, e, (o + n) / 2, a, !0);
|
|
5655
5655
|
return;
|
|
5656
5656
|
}
|
|
5657
|
-
this.setRelative(e, e, (o *
|
|
5657
|
+
this.setRelative(e, e, (o * c + n * i) / p, a, !0);
|
|
5658
5658
|
};
|
|
5659
5659
|
zt.prototype.setRelative = function(e, t, r, a, o) {
|
|
5660
5660
|
a = a || this;
|
|
5661
|
-
var n = o ? t.xo : t.x, s = o ? t.yo : t.y, l = n + r * a.x, i = s + r * a.y,
|
|
5662
|
-
e.x = (p * u -
|
|
5661
|
+
var n = o ? t.xo : t.x, s = o ? t.yo : t.y, l = n + r * a.x, i = s + r * a.y, c = a.normalSlope, p = this.slope, u = e.x, f = e.y;
|
|
5662
|
+
e.x = (p * u - c * l + i - f) / (p - c), e.y = p * (e.x - u) + f;
|
|
5663
5663
|
};
|
|
5664
5664
|
zt.prototype.touch = function(e) {
|
|
5665
5665
|
e.xTouched = !0, e.yTouched = !0;
|
|
@@ -5711,8 +5711,8 @@ Mn.prototype.exec = function(e, t) {
|
|
|
5711
5711
|
at.prototype = ui, o = this._fpgmState = new at("fpgm", r.tables.fpgm), o.funcs = [], o.font = r, exports.DEBUG && (console.log("---EXEC FPGM---"), o.step = -1);
|
|
5712
5712
|
try {
|
|
5713
5713
|
ft(o);
|
|
5714
|
-
} catch (
|
|
5715
|
-
console.log("Hinting error in FPGM:" +
|
|
5714
|
+
} catch (c) {
|
|
5715
|
+
console.log("Hinting error in FPGM:" + c), this._errorState = 3;
|
|
5716
5716
|
return;
|
|
5717
5717
|
}
|
|
5718
5718
|
}
|
|
@@ -5726,15 +5726,15 @@ Mn.prototype.exec = function(e, t) {
|
|
|
5726
5726
|
exports.DEBUG && (console.log("---EXEC PREP---"), a.step = -1);
|
|
5727
5727
|
try {
|
|
5728
5728
|
ft(a);
|
|
5729
|
-
} catch (
|
|
5730
|
-
this._errorState < 2 && console.log("Hinting error in PREP:" +
|
|
5729
|
+
} catch (c) {
|
|
5730
|
+
this._errorState < 2 && console.log("Hinting error in PREP:" + c), this._errorState = 2;
|
|
5731
5731
|
}
|
|
5732
5732
|
}
|
|
5733
5733
|
if (!(this._errorState > 1))
|
|
5734
5734
|
try {
|
|
5735
5735
|
return An(e, a);
|
|
5736
|
-
} catch (
|
|
5737
|
-
this._errorState < 1 && (console.log("Hinting error:" +
|
|
5736
|
+
} catch (c) {
|
|
5737
|
+
this._errorState < 1 && (console.log("Hinting error:" + c), console.log("Note: further hinting errors are silenced")), this._errorState = 1;
|
|
5738
5738
|
return;
|
|
5739
5739
|
}
|
|
5740
5740
|
}
|
|
@@ -5746,12 +5746,12 @@ An = function(e, t) {
|
|
|
5746
5746
|
else {
|
|
5747
5747
|
var i = t.font;
|
|
5748
5748
|
s = [], n = [];
|
|
5749
|
-
for (var
|
|
5750
|
-
var p = o[
|
|
5751
|
-
l = new at("glyf", u.instructions), exports.DEBUG && (console.log("---EXEC COMP " +
|
|
5752
|
-
for (var f = Math.round(p.dx * r),
|
|
5749
|
+
for (var c = 0; c < o.length; c++) {
|
|
5750
|
+
var p = o[c], u = i.glyphs.get(p.glyphIndex);
|
|
5751
|
+
l = new at("glyf", u.instructions), exports.DEBUG && (console.log("---EXEC COMP " + c + "---"), l.step = -1), Xr(u, l, r, a);
|
|
5752
|
+
for (var f = Math.round(p.dx * r), m = Math.round(p.dy * a), C = l.gZone, O = l.contours, T = 0; T < C.length; T++) {
|
|
5753
5753
|
var _ = C[T];
|
|
5754
|
-
_.xTouched = _.yTouched = !1, _.xo = _.x = _.x + f, _.yo = _.y = _.y +
|
|
5754
|
+
_.xTouched = _.yTouched = !1, _.xo = _.x = _.x + f, _.yo = _.y = _.y + m;
|
|
5755
5755
|
}
|
|
5756
5756
|
var A = s.length;
|
|
5757
5757
|
s.push.apply(s, C);
|
|
@@ -5766,8 +5766,8 @@ An = function(e, t) {
|
|
|
5766
5766
|
return s;
|
|
5767
5767
|
};
|
|
5768
5768
|
Xr = function(e, t, r, a) {
|
|
5769
|
-
for (var o = e.points || [], n = o.length, s = t.gZone = t.z0 = t.z1 = t.z2 = [], l = t.contours = [], i,
|
|
5770
|
-
i = o[
|
|
5769
|
+
for (var o = e.points || [], n = o.length, s = t.gZone = t.z0 = t.z1 = t.z2 = [], l = t.contours = [], i, c = 0; c < n; c++)
|
|
5770
|
+
i = o[c], s[c] = new qe(
|
|
5771
5771
|
i.x * r,
|
|
5772
5772
|
i.y * a,
|
|
5773
5773
|
i.lastPointOfContour,
|
|
@@ -5778,8 +5778,8 @@ Xr = function(e, t, r, a) {
|
|
|
5778
5778
|
if (!t.inhibitGridFit) {
|
|
5779
5779
|
if (exports.DEBUG) {
|
|
5780
5780
|
console.log("PROCESSING GLYPH", t.stack);
|
|
5781
|
-
for (var
|
|
5782
|
-
console.log(
|
|
5781
|
+
for (var m = 0; m < n; m++)
|
|
5782
|
+
console.log(m, s[m].x, s[m].y);
|
|
5783
5783
|
}
|
|
5784
5784
|
if (s.push(
|
|
5785
5785
|
new qe(0, 0),
|
|
@@ -5869,15 +5869,15 @@ function fi(e) {
|
|
|
5869
5869
|
e.fv = e.pv, exports.DEBUG && console.log(e.step, "SFVTPV[]");
|
|
5870
5870
|
}
|
|
5871
5871
|
function hi(e) {
|
|
5872
|
-
var t = e.stack, r = t.pop(), a = t.pop(), o = t.pop(), n = t.pop(), s = t.pop(), l = e.z0, i = e.z1,
|
|
5872
|
+
var t = e.stack, r = t.pop(), a = t.pop(), o = t.pop(), n = t.pop(), s = t.pop(), l = e.z0, i = e.z1, c = l[r], p = l[a], u = i[o], f = i[n], m = e.z2[s];
|
|
5873
5873
|
exports.DEBUG && console.log("ISECT[], ", r, a, o, n, s);
|
|
5874
|
-
var C =
|
|
5875
|
-
|
|
5874
|
+
var C = c.x, O = c.y, T = p.x, _ = p.y, A = u.x, U = u.y, Q = f.x, E = f.y, L = (C - T) * (U - E) - (O - _) * (A - Q), N = C * _ - O * T, G = A * E - U * Q;
|
|
5875
|
+
m.x = (N * (A - Q) - G * (C - T)) / L, m.y = (N * (U - E) - G * (O - _)) / L;
|
|
5876
5876
|
}
|
|
5877
|
-
function
|
|
5877
|
+
function mi(e) {
|
|
5878
5878
|
e.rp0 = e.stack.pop(), exports.DEBUG && console.log(e.step, "SRP0[]", e.rp0);
|
|
5879
5879
|
}
|
|
5880
|
-
function
|
|
5880
|
+
function gi(e) {
|
|
5881
5881
|
e.rp1 = e.stack.pop(), exports.DEBUG && console.log(e.step, "SRP1[]", e.rp1);
|
|
5882
5882
|
}
|
|
5883
5883
|
function yi(e) {
|
|
@@ -6026,22 +6026,22 @@ function Ha(e, t) {
|
|
|
6026
6026
|
}
|
|
6027
6027
|
function Va(e, t) {
|
|
6028
6028
|
for (var r = t.stack, a = e ? t.rp1 : t.rp2, o = (e ? t.z0 : t.z1)[a], n = t.fv, s = t.pv, l = t.loop, i = t.z2; l--; ) {
|
|
6029
|
-
var
|
|
6029
|
+
var c = r.pop(), p = i[c], u = s.distance(o, o, !1, !0);
|
|
6030
6030
|
n.setRelative(p, p, u, s), n.touch(p), exports.DEBUG && console.log(
|
|
6031
6031
|
t.step,
|
|
6032
6032
|
(t.loop > 1 ? "loop " + (t.loop - l) + ": " : "") + "SHP[" + (e ? "rp1" : "rp2") + "]",
|
|
6033
|
-
|
|
6033
|
+
c
|
|
6034
6034
|
);
|
|
6035
6035
|
}
|
|
6036
6036
|
t.loop = 1;
|
|
6037
6037
|
}
|
|
6038
6038
|
function za(e, t) {
|
|
6039
|
-
var r = t.stack, a = e ? t.rp1 : t.rp2, o = (e ? t.z0 : t.z1)[a], n = t.fv, s = t.pv, l = r.pop(), i = t.z2[t.contours[l]],
|
|
6039
|
+
var r = t.stack, a = e ? t.rp1 : t.rp2, o = (e ? t.z0 : t.z1)[a], n = t.fv, s = t.pv, l = r.pop(), i = t.z2[t.contours[l]], c = i;
|
|
6040
6040
|
exports.DEBUG && console.log(t.step, "SHC[" + e + "]", l);
|
|
6041
6041
|
var p = s.distance(o, o, !1, !0);
|
|
6042
6042
|
do
|
|
6043
|
-
|
|
6044
|
-
while (
|
|
6043
|
+
c !== o && n.setRelative(c, c, p, s), c = c.nextPointOnContour;
|
|
6044
|
+
while (c !== i);
|
|
6045
6045
|
}
|
|
6046
6046
|
function Wa(e, t) {
|
|
6047
6047
|
var r = t.stack, a = e ? t.rp1 : t.rp2, o = (e ? t.z0 : t.z1)[a], n = t.fv, s = t.pv, l = r.pop();
|
|
@@ -6057,8 +6057,8 @@ function Wa(e, t) {
|
|
|
6057
6057
|
default:
|
|
6058
6058
|
throw new Error("Invalid zone");
|
|
6059
6059
|
}
|
|
6060
|
-
for (var
|
|
6061
|
-
|
|
6060
|
+
for (var c, p = s.distance(o, o, !1, !0), u = i.length - 2, f = 0; f < u; f++)
|
|
6061
|
+
c = i[f], n.setRelative(c, c, p, s);
|
|
6062
6062
|
}
|
|
6063
6063
|
function Ni(e) {
|
|
6064
6064
|
for (var t = e.stack, r = e.loop, a = e.fv, o = t.pop() / 64, n = e.z2; r--; ) {
|
|
@@ -6073,8 +6073,8 @@ function Ni(e) {
|
|
|
6073
6073
|
e.loop = 1;
|
|
6074
6074
|
}
|
|
6075
6075
|
function Gi(e) {
|
|
6076
|
-
for (var t = e.stack, r = e.rp1, a = e.rp2, o = e.loop, n = e.z0[r], s = e.z1[a], l = e.fv, i = e.dpv,
|
|
6077
|
-
var p = t.pop(), u =
|
|
6076
|
+
for (var t = e.stack, r = e.rp1, a = e.rp2, o = e.loop, n = e.z0[r], s = e.z1[a], l = e.fv, i = e.dpv, c = e.z2; o--; ) {
|
|
6077
|
+
var p = t.pop(), u = c[p];
|
|
6078
6078
|
exports.DEBUG && console.log(
|
|
6079
6079
|
e.step,
|
|
6080
6080
|
(e.loop > 1 ? "loop " + (e.loop - o) + ": " : "") + "IP[]",
|
|
@@ -6092,12 +6092,12 @@ function ja(e, t) {
|
|
|
6092
6092
|
}
|
|
6093
6093
|
function $i(e) {
|
|
6094
6094
|
for (var t = e.stack, r = e.rp0, a = e.z0[r], o = e.loop, n = e.fv, s = e.pv, l = e.z1; o--; ) {
|
|
6095
|
-
var i = t.pop(),
|
|
6095
|
+
var i = t.pop(), c = l[i];
|
|
6096
6096
|
exports.DEBUG && console.log(
|
|
6097
6097
|
e.step,
|
|
6098
6098
|
(e.loop > 1 ? "loop " + (e.loop - o) + ": " : "") + "ALIGNRP[]",
|
|
6099
6099
|
i
|
|
6100
|
-
), n.setRelative(
|
|
6100
|
+
), n.setRelative(c, a, 0, s), n.touch(c);
|
|
6101
6101
|
}
|
|
6102
6102
|
e.loop = 1;
|
|
6103
6103
|
}
|
|
@@ -6115,8 +6115,8 @@ function qa(e, t) {
|
|
|
6115
6115
|
")",
|
|
6116
6116
|
o
|
|
6117
6117
|
);
|
|
6118
|
-
var
|
|
6119
|
-
e && (Math.abs(
|
|
6118
|
+
var c = l.distance(n, Gt);
|
|
6119
|
+
e && (Math.abs(c - i) < t.cvCutIn && (c = i), c = t.round(c)), s.setRelative(n, Gt, c, l), t.zp0 === 0 && (n.xo = n.x, n.yo = n.y), s.touch(n), t.rp0 = t.rp1 = o;
|
|
6120
6120
|
}
|
|
6121
6121
|
function Vi(e) {
|
|
6122
6122
|
var t = e.prog, r = e.ip, a = e.stack, o = t[++r];
|
|
@@ -6220,14 +6220,14 @@ function ul(e) {
|
|
|
6220
6220
|
exports.DEBUG && console.log(e.step, "NOT[]", r), t.push(r ? 0 : 1);
|
|
6221
6221
|
}
|
|
6222
6222
|
function Pr(e, t) {
|
|
6223
|
-
var r = t.stack, a = r.pop(), o = t.fv, n = t.pv, s = t.ppem, l = t.deltaBase + (e - 1) * 16, i = t.deltaShift,
|
|
6223
|
+
var r = t.stack, a = r.pop(), o = t.fv, n = t.pv, s = t.ppem, l = t.deltaBase + (e - 1) * 16, i = t.deltaShift, c = t.z0;
|
|
6224
6224
|
exports.DEBUG && console.log(t.step, "DELTAP[" + e + "]", a, r);
|
|
6225
6225
|
for (var p = 0; p < a; p++) {
|
|
6226
|
-
var u = r.pop(), f = r.pop(),
|
|
6227
|
-
if (
|
|
6226
|
+
var u = r.pop(), f = r.pop(), m = l + ((f & 240) >> 4);
|
|
6227
|
+
if (m === s) {
|
|
6228
6228
|
var C = (f & 15) - 8;
|
|
6229
6229
|
C >= 0 && C++, exports.DEBUG && console.log(t.step, "DELTAPFIX", u, "by", C * i);
|
|
6230
|
-
var O =
|
|
6230
|
+
var O = c[u];
|
|
6231
6231
|
o.setRelative(O, O, C * i, n);
|
|
6232
6232
|
}
|
|
6233
6233
|
}
|
|
@@ -6256,11 +6256,11 @@ function hl(e) {
|
|
|
6256
6256
|
var t = e.stack, r = t.pop(), a = t.pop();
|
|
6257
6257
|
exports.DEBUG && console.log(e.step, "MUL[]", r, a), t.push(a * r / 64);
|
|
6258
6258
|
}
|
|
6259
|
-
function
|
|
6259
|
+
function ml(e) {
|
|
6260
6260
|
var t = e.stack, r = t.pop();
|
|
6261
6261
|
exports.DEBUG && console.log(e.step, "ABS[]", r), t.push(Math.abs(r));
|
|
6262
6262
|
}
|
|
6263
|
-
function
|
|
6263
|
+
function gl(e) {
|
|
6264
6264
|
var t = e.stack, r = t.pop();
|
|
6265
6265
|
exports.DEBUG && console.log(e.step, "NEG[]", r), t.push(-r);
|
|
6266
6266
|
}
|
|
@@ -6284,9 +6284,9 @@ function Fr(e, t) {
|
|
|
6284
6284
|
var r = t.stack, a = r.pop(), o = t.ppem, n = t.deltaBase + (e - 1) * 16, s = t.deltaShift;
|
|
6285
6285
|
exports.DEBUG && console.log(t.step, "DELTAC[" + e + "]", a, r);
|
|
6286
6286
|
for (var l = 0; l < a; l++) {
|
|
6287
|
-
var i = r.pop(),
|
|
6287
|
+
var i = r.pop(), c = r.pop(), p = n + ((c & 240) >> 4);
|
|
6288
6288
|
if (p === o) {
|
|
6289
|
-
var u = (
|
|
6289
|
+
var u = (c & 15) - 8;
|
|
6290
6290
|
u >= 0 && u++;
|
|
6291
6291
|
var f = u * s;
|
|
6292
6292
|
exports.DEBUG && console.log(t.step, "DELTACFIX", i, "by", f), t.cvt[i] += f;
|
|
@@ -6431,9 +6431,9 @@ function tt(e, t) {
|
|
|
6431
6431
|
}
|
|
6432
6432
|
t.ip = r;
|
|
6433
6433
|
}
|
|
6434
|
-
function
|
|
6435
|
-
var s = n.stack, l = e && s.pop(), i = s.pop(),
|
|
6436
|
-
T = O = C.distance(u, p, !0, !0), _ = T >= 0 ? 1 : -1, T = Math.abs(T), e && (A = n.cvt[l], a && Math.abs(T - A) < n.cvCutIn && (T = A)), r && T < f && (T = f), a && (T = n.round(T)),
|
|
6434
|
+
function I(e, t, r, a, o, n) {
|
|
6435
|
+
var s = n.stack, l = e && s.pop(), i = s.pop(), c = n.rp0, p = n.z0[c], u = n.z1[i], f = n.minDis, m = n.fv, C = n.dpv, O, T, _, A;
|
|
6436
|
+
T = O = C.distance(u, p, !0, !0), _ = T >= 0 ? 1 : -1, T = Math.abs(T), e && (A = n.cvt[l], a && Math.abs(T - A) < n.cvCutIn && (T = A)), r && T < f && (T = f), a && (T = n.round(T)), m.setRelative(u, p, _ * T, C), m.touch(u), exports.DEBUG && console.log(
|
|
6437
6437
|
n.step,
|
|
6438
6438
|
(e ? "MIRP[" : "MDRP[") + (t ? "M" : "m") + (r ? ">" : "_") + (a ? "R" : "_") + (o === 0 ? "Gr" : o === 1 ? "Bl" : o === 2 ? "Wh" : "") + "]",
|
|
6439
6439
|
e ? l + "(" + n.cvt[l] + "," + A + ")" : "",
|
|
@@ -6479,9 +6479,9 @@ Bn = [
|
|
|
6479
6479
|
/* 0x0F */
|
|
6480
6480
|
hi,
|
|
6481
6481
|
/* 0x10 */
|
|
6482
|
-
gi,
|
|
6483
|
-
/* 0x11 */
|
|
6484
6482
|
mi,
|
|
6483
|
+
/* 0x11 */
|
|
6484
|
+
gi,
|
|
6485
6485
|
/* 0x12 */
|
|
6486
6486
|
yi,
|
|
6487
6487
|
/* 0x13 */
|
|
@@ -6656,9 +6656,9 @@ Bn = [
|
|
|
6656
6656
|
/* 0x63 */
|
|
6657
6657
|
hl,
|
|
6658
6658
|
/* 0x64 */
|
|
6659
|
-
gl,
|
|
6660
|
-
/* 0x65 */
|
|
6661
6659
|
ml,
|
|
6660
|
+
/* 0x65 */
|
|
6661
|
+
gl,
|
|
6662
6662
|
/* 0x66 */
|
|
6663
6663
|
yl,
|
|
6664
6664
|
/* 0x67 */
|
|
@@ -6852,133 +6852,133 @@ Bn = [
|
|
|
6852
6852
|
/* 0xBF */
|
|
6853
6853
|
tt.bind(void 0, 8),
|
|
6854
6854
|
/* 0xC0 */
|
|
6855
|
-
|
|
6855
|
+
I.bind(void 0, 0, 0, 0, 0, 0),
|
|
6856
6856
|
/* 0xC1 */
|
|
6857
|
-
|
|
6857
|
+
I.bind(void 0, 0, 0, 0, 0, 1),
|
|
6858
6858
|
/* 0xC2 */
|
|
6859
|
-
|
|
6859
|
+
I.bind(void 0, 0, 0, 0, 0, 2),
|
|
6860
6860
|
/* 0xC3 */
|
|
6861
|
-
|
|
6861
|
+
I.bind(void 0, 0, 0, 0, 0, 3),
|
|
6862
6862
|
/* 0xC4 */
|
|
6863
|
-
|
|
6863
|
+
I.bind(void 0, 0, 0, 0, 1, 0),
|
|
6864
6864
|
/* 0xC5 */
|
|
6865
|
-
|
|
6865
|
+
I.bind(void 0, 0, 0, 0, 1, 1),
|
|
6866
6866
|
/* 0xC6 */
|
|
6867
|
-
|
|
6867
|
+
I.bind(void 0, 0, 0, 0, 1, 2),
|
|
6868
6868
|
/* 0xC7 */
|
|
6869
|
-
|
|
6869
|
+
I.bind(void 0, 0, 0, 0, 1, 3),
|
|
6870
6870
|
/* 0xC8 */
|
|
6871
|
-
|
|
6871
|
+
I.bind(void 0, 0, 0, 1, 0, 0),
|
|
6872
6872
|
/* 0xC9 */
|
|
6873
|
-
|
|
6873
|
+
I.bind(void 0, 0, 0, 1, 0, 1),
|
|
6874
6874
|
/* 0xCA */
|
|
6875
|
-
|
|
6875
|
+
I.bind(void 0, 0, 0, 1, 0, 2),
|
|
6876
6876
|
/* 0xCB */
|
|
6877
|
-
|
|
6877
|
+
I.bind(void 0, 0, 0, 1, 0, 3),
|
|
6878
6878
|
/* 0xCC */
|
|
6879
|
-
|
|
6879
|
+
I.bind(void 0, 0, 0, 1, 1, 0),
|
|
6880
6880
|
/* 0xCD */
|
|
6881
|
-
|
|
6881
|
+
I.bind(void 0, 0, 0, 1, 1, 1),
|
|
6882
6882
|
/* 0xCE */
|
|
6883
|
-
|
|
6883
|
+
I.bind(void 0, 0, 0, 1, 1, 2),
|
|
6884
6884
|
/* 0xCF */
|
|
6885
|
-
|
|
6885
|
+
I.bind(void 0, 0, 0, 1, 1, 3),
|
|
6886
6886
|
/* 0xD0 */
|
|
6887
|
-
|
|
6887
|
+
I.bind(void 0, 0, 1, 0, 0, 0),
|
|
6888
6888
|
/* 0xD1 */
|
|
6889
|
-
|
|
6889
|
+
I.bind(void 0, 0, 1, 0, 0, 1),
|
|
6890
6890
|
/* 0xD2 */
|
|
6891
|
-
|
|
6891
|
+
I.bind(void 0, 0, 1, 0, 0, 2),
|
|
6892
6892
|
/* 0xD3 */
|
|
6893
|
-
|
|
6893
|
+
I.bind(void 0, 0, 1, 0, 0, 3),
|
|
6894
6894
|
/* 0xD4 */
|
|
6895
|
-
|
|
6895
|
+
I.bind(void 0, 0, 1, 0, 1, 0),
|
|
6896
6896
|
/* 0xD5 */
|
|
6897
|
-
|
|
6897
|
+
I.bind(void 0, 0, 1, 0, 1, 1),
|
|
6898
6898
|
/* 0xD6 */
|
|
6899
|
-
|
|
6899
|
+
I.bind(void 0, 0, 1, 0, 1, 2),
|
|
6900
6900
|
/* 0xD7 */
|
|
6901
|
-
|
|
6901
|
+
I.bind(void 0, 0, 1, 0, 1, 3),
|
|
6902
6902
|
/* 0xD8 */
|
|
6903
|
-
|
|
6903
|
+
I.bind(void 0, 0, 1, 1, 0, 0),
|
|
6904
6904
|
/* 0xD9 */
|
|
6905
|
-
|
|
6905
|
+
I.bind(void 0, 0, 1, 1, 0, 1),
|
|
6906
6906
|
/* 0xDA */
|
|
6907
|
-
|
|
6907
|
+
I.bind(void 0, 0, 1, 1, 0, 2),
|
|
6908
6908
|
/* 0xDB */
|
|
6909
|
-
|
|
6909
|
+
I.bind(void 0, 0, 1, 1, 0, 3),
|
|
6910
6910
|
/* 0xDC */
|
|
6911
|
-
|
|
6911
|
+
I.bind(void 0, 0, 1, 1, 1, 0),
|
|
6912
6912
|
/* 0xDD */
|
|
6913
|
-
|
|
6913
|
+
I.bind(void 0, 0, 1, 1, 1, 1),
|
|
6914
6914
|
/* 0xDE */
|
|
6915
|
-
|
|
6915
|
+
I.bind(void 0, 0, 1, 1, 1, 2),
|
|
6916
6916
|
/* 0xDF */
|
|
6917
|
-
|
|
6917
|
+
I.bind(void 0, 0, 1, 1, 1, 3),
|
|
6918
6918
|
/* 0xE0 */
|
|
6919
|
-
|
|
6919
|
+
I.bind(void 0, 1, 0, 0, 0, 0),
|
|
6920
6920
|
/* 0xE1 */
|
|
6921
|
-
|
|
6921
|
+
I.bind(void 0, 1, 0, 0, 0, 1),
|
|
6922
6922
|
/* 0xE2 */
|
|
6923
|
-
|
|
6923
|
+
I.bind(void 0, 1, 0, 0, 0, 2),
|
|
6924
6924
|
/* 0xE3 */
|
|
6925
|
-
|
|
6925
|
+
I.bind(void 0, 1, 0, 0, 0, 3),
|
|
6926
6926
|
/* 0xE4 */
|
|
6927
|
-
|
|
6927
|
+
I.bind(void 0, 1, 0, 0, 1, 0),
|
|
6928
6928
|
/* 0xE5 */
|
|
6929
|
-
|
|
6929
|
+
I.bind(void 0, 1, 0, 0, 1, 1),
|
|
6930
6930
|
/* 0xE6 */
|
|
6931
|
-
|
|
6931
|
+
I.bind(void 0, 1, 0, 0, 1, 2),
|
|
6932
6932
|
/* 0xE7 */
|
|
6933
|
-
|
|
6933
|
+
I.bind(void 0, 1, 0, 0, 1, 3),
|
|
6934
6934
|
/* 0xE8 */
|
|
6935
|
-
|
|
6935
|
+
I.bind(void 0, 1, 0, 1, 0, 0),
|
|
6936
6936
|
/* 0xE9 */
|
|
6937
|
-
|
|
6937
|
+
I.bind(void 0, 1, 0, 1, 0, 1),
|
|
6938
6938
|
/* 0xEA */
|
|
6939
|
-
|
|
6939
|
+
I.bind(void 0, 1, 0, 1, 0, 2),
|
|
6940
6940
|
/* 0xEB */
|
|
6941
|
-
|
|
6941
|
+
I.bind(void 0, 1, 0, 1, 0, 3),
|
|
6942
6942
|
/* 0xEC */
|
|
6943
|
-
|
|
6943
|
+
I.bind(void 0, 1, 0, 1, 1, 0),
|
|
6944
6944
|
/* 0xED */
|
|
6945
|
-
|
|
6945
|
+
I.bind(void 0, 1, 0, 1, 1, 1),
|
|
6946
6946
|
/* 0xEE */
|
|
6947
|
-
|
|
6947
|
+
I.bind(void 0, 1, 0, 1, 1, 2),
|
|
6948
6948
|
/* 0xEF */
|
|
6949
|
-
|
|
6949
|
+
I.bind(void 0, 1, 0, 1, 1, 3),
|
|
6950
6950
|
/* 0xF0 */
|
|
6951
|
-
|
|
6951
|
+
I.bind(void 0, 1, 1, 0, 0, 0),
|
|
6952
6952
|
/* 0xF1 */
|
|
6953
|
-
|
|
6953
|
+
I.bind(void 0, 1, 1, 0, 0, 1),
|
|
6954
6954
|
/* 0xF2 */
|
|
6955
|
-
|
|
6955
|
+
I.bind(void 0, 1, 1, 0, 0, 2),
|
|
6956
6956
|
/* 0xF3 */
|
|
6957
|
-
|
|
6957
|
+
I.bind(void 0, 1, 1, 0, 0, 3),
|
|
6958
6958
|
/* 0xF4 */
|
|
6959
|
-
|
|
6959
|
+
I.bind(void 0, 1, 1, 0, 1, 0),
|
|
6960
6960
|
/* 0xF5 */
|
|
6961
|
-
|
|
6961
|
+
I.bind(void 0, 1, 1, 0, 1, 1),
|
|
6962
6962
|
/* 0xF6 */
|
|
6963
|
-
|
|
6963
|
+
I.bind(void 0, 1, 1, 0, 1, 2),
|
|
6964
6964
|
/* 0xF7 */
|
|
6965
|
-
|
|
6965
|
+
I.bind(void 0, 1, 1, 0, 1, 3),
|
|
6966
6966
|
/* 0xF8 */
|
|
6967
|
-
|
|
6967
|
+
I.bind(void 0, 1, 1, 1, 0, 0),
|
|
6968
6968
|
/* 0xF9 */
|
|
6969
|
-
|
|
6969
|
+
I.bind(void 0, 1, 1, 1, 0, 1),
|
|
6970
6970
|
/* 0xFA */
|
|
6971
|
-
|
|
6971
|
+
I.bind(void 0, 1, 1, 1, 0, 2),
|
|
6972
6972
|
/* 0xFB */
|
|
6973
|
-
|
|
6973
|
+
I.bind(void 0, 1, 1, 1, 0, 3),
|
|
6974
6974
|
/* 0xFC */
|
|
6975
|
-
|
|
6975
|
+
I.bind(void 0, 1, 1, 1, 1, 0),
|
|
6976
6976
|
/* 0xFD */
|
|
6977
|
-
|
|
6977
|
+
I.bind(void 0, 1, 1, 1, 1, 1),
|
|
6978
6978
|
/* 0xFE */
|
|
6979
|
-
|
|
6979
|
+
I.bind(void 0, 1, 1, 1, 1, 2),
|
|
6980
6980
|
/* 0xFF */
|
|
6981
|
-
|
|
6981
|
+
I.bind(void 0, 1, 1, 1, 1, 3)
|
|
6982
6982
|
];
|
|
6983
6983
|
function Tt(e) {
|
|
6984
6984
|
this.char = e, this.state = {}, this.activeState = null;
|
|
@@ -7314,13 +7314,13 @@ function Ml(e, t) {
|
|
|
7314
7314
|
i.shift();
|
|
7315
7315
|
if (i.length < t.backtrackCoverage.length)
|
|
7316
7316
|
return [];
|
|
7317
|
-
var
|
|
7317
|
+
var c = new Be(i, 0), p = Ir(
|
|
7318
7318
|
t.backtrackCoverage,
|
|
7319
|
-
|
|
7319
|
+
c
|
|
7320
7320
|
), u = a.length === t.inputCoverage.length && l.length === t.lookaheadCoverage.length && p.length === t.backtrackCoverage.length, f = [];
|
|
7321
7321
|
if (u)
|
|
7322
|
-
for (var
|
|
7323
|
-
for (var C = t.lookupRecords[
|
|
7322
|
+
for (var m = 0; m < t.lookupRecords.length; m++)
|
|
7323
|
+
for (var C = t.lookupRecords[m], O = C.lookupListIndex, T = this.getLookupByIndex(O), _ = 0; _ < T.subtables.length; _++) {
|
|
7324
7324
|
var A = T.subtables[_], U = this.getLookupMethod(T, A), Q = this.getSubstitutionType(T, A);
|
|
7325
7325
|
if (Q === "12")
|
|
7326
7326
|
for (var E = 0; E < a.length; E++) {
|
|
@@ -7337,8 +7337,8 @@ function Nl(e, t) {
|
|
|
7337
7337
|
for (var o, n = t.ligatureSets[a], s = 0; s < n.length; s++) {
|
|
7338
7338
|
o = n[s];
|
|
7339
7339
|
for (var l = 0; l < o.components.length; l++) {
|
|
7340
|
-
var i = e.lookahead[l],
|
|
7341
|
-
if (i !==
|
|
7340
|
+
var i = e.lookahead[l], c = o.components[l];
|
|
7341
|
+
if (i !== c)
|
|
7342
7342
|
break;
|
|
7343
7343
|
if (l === o.components.length - 1)
|
|
7344
7344
|
return o;
|
|
@@ -7457,46 +7457,46 @@ Re.prototype.lookupFeature = function(e) {
|
|
|
7457
7457
|
"font '" + this.font.names.fullName.en + "' doesn't support feature '" + e.tag + "' for script '" + e.script + "'."
|
|
7458
7458
|
);
|
|
7459
7459
|
for (var o = this.getFeatureLookups(a), n = [].concat(t.context), s = 0; s < o.length; s++)
|
|
7460
|
-
for (var l = o[s], i = this.getLookupSubtables(l),
|
|
7461
|
-
var p = i[
|
|
7460
|
+
for (var l = o[s], i = this.getLookupSubtables(l), c = 0; c < i.length; c++) {
|
|
7461
|
+
var p = i[c], u = this.getSubstitutionType(l, p), f = this.getLookupMethod(l, p), m = void 0;
|
|
7462
7462
|
switch (u) {
|
|
7463
7463
|
case "11":
|
|
7464
|
-
|
|
7464
|
+
m = f(t.current), m && n.splice(r, 1, new pt({
|
|
7465
7465
|
id: 11,
|
|
7466
7466
|
tag: e.tag,
|
|
7467
|
-
substitution:
|
|
7467
|
+
substitution: m
|
|
7468
7468
|
}));
|
|
7469
7469
|
break;
|
|
7470
7470
|
case "12":
|
|
7471
|
-
|
|
7471
|
+
m = f(t.current), m && n.splice(r, 1, new pt({
|
|
7472
7472
|
id: 12,
|
|
7473
7473
|
tag: e.tag,
|
|
7474
|
-
substitution:
|
|
7474
|
+
substitution: m
|
|
7475
7475
|
}));
|
|
7476
7476
|
break;
|
|
7477
7477
|
case "63":
|
|
7478
|
-
|
|
7478
|
+
m = f(t), Array.isArray(m) && m.length && n.splice(r, 1, new pt({
|
|
7479
7479
|
id: 63,
|
|
7480
7480
|
tag: e.tag,
|
|
7481
|
-
substitution:
|
|
7481
|
+
substitution: m
|
|
7482
7482
|
}));
|
|
7483
7483
|
break;
|
|
7484
7484
|
case "41":
|
|
7485
|
-
|
|
7485
|
+
m = f(t), m && n.splice(r, 1, new pt({
|
|
7486
7486
|
id: 41,
|
|
7487
7487
|
tag: e.tag,
|
|
7488
|
-
substitution:
|
|
7488
|
+
substitution: m
|
|
7489
7489
|
}));
|
|
7490
7490
|
break;
|
|
7491
7491
|
case "21":
|
|
7492
|
-
|
|
7492
|
+
m = f(t.current), m && n.splice(r, 1, new pt({
|
|
7493
7493
|
id: 21,
|
|
7494
7494
|
tag: e.tag,
|
|
7495
|
-
substitution:
|
|
7495
|
+
substitution: m
|
|
7496
7496
|
}));
|
|
7497
7497
|
break;
|
|
7498
7498
|
}
|
|
7499
|
-
t = new Be(n, r), !(Array.isArray(
|
|
7499
|
+
t = new Be(n, r), !(Array.isArray(m) && !m.length) && (m = null);
|
|
7500
7500
|
}
|
|
7501
7501
|
return n.length ? n : null;
|
|
7502
7502
|
};
|
|
@@ -7651,10 +7651,10 @@ function Ql(e) {
|
|
|
7651
7651
|
o.forEach(function(l, i) {
|
|
7652
7652
|
if (!st(l.char)) {
|
|
7653
7653
|
n.setCurrentIndex(i), s.setCurrentIndex(i);
|
|
7654
|
-
var
|
|
7655
|
-
Jl(s) && (
|
|
7654
|
+
var c = 0;
|
|
7655
|
+
Jl(s) && (c |= 1), Kl(s) && (c |= 2);
|
|
7656
7656
|
var p;
|
|
7657
|
-
switch (
|
|
7657
|
+
switch (c) {
|
|
7658
7658
|
case 1:
|
|
7659
7659
|
p = "fina";
|
|
7660
7660
|
break;
|
|
@@ -7673,8 +7673,8 @@ function Ql(e) {
|
|
|
7673
7673
|
});
|
|
7674
7674
|
if (u instanceof Error)
|
|
7675
7675
|
return console.info(u.message);
|
|
7676
|
-
u.forEach(function(f,
|
|
7677
|
-
f instanceof pt && (sa(f, o,
|
|
7676
|
+
u.forEach(function(f, m) {
|
|
7677
|
+
f instanceof pt && (sa(f, o, m), n.context[m] = f.substitution);
|
|
7678
7678
|
});
|
|
7679
7679
|
}
|
|
7680
7680
|
}
|
|
@@ -7924,8 +7924,8 @@ oe.prototype.stringToGlyphs = function(e, t) {
|
|
|
7924
7924
|
a.registerModifier("glyphIndex", null, o);
|
|
7925
7925
|
var n = t ? this.updateFeatures(t.features) : this.defaultRenderOptions.features;
|
|
7926
7926
|
a.applyFeatures(this, n);
|
|
7927
|
-
for (var s = a.getTextGlyphs(e), l = s.length, i = new Array(l),
|
|
7928
|
-
i[p] = this.glyphs.get(s[p]) ||
|
|
7927
|
+
for (var s = a.getTextGlyphs(e), l = s.length, i = new Array(l), c = this.glyphs.get(0), p = 0; p < l; p += 1)
|
|
7928
|
+
i[p] = this.glyphs.get(s[p]) || c;
|
|
7929
7929
|
return i;
|
|
7930
7930
|
};
|
|
7931
7931
|
oe.prototype.nameToGlyphIndex = function(e) {
|
|
@@ -7958,8 +7958,8 @@ oe.prototype.forEachGlyph = function(e, t, r, a, o, n) {
|
|
|
7958
7958
|
t = t !== void 0 ? t : 0, r = r !== void 0 ? r : 0, a = a !== void 0 ? a : 72, o = Object.assign({}, this.defaultRenderOptions, o);
|
|
7959
7959
|
var s = 1 / this.unitsPerEm * a, l = this.stringToGlyphs(e, o), i;
|
|
7960
7960
|
if (o.kerning) {
|
|
7961
|
-
var
|
|
7962
|
-
i = this.position.getKerningTables(
|
|
7961
|
+
var c = o.script || this.position.getDefaultScriptName();
|
|
7962
|
+
i = this.position.getKerningTables(c, o.language);
|
|
7963
7963
|
}
|
|
7964
7964
|
for (var p = 0; p < l.length; p += 1) {
|
|
7965
7965
|
var u = l[p];
|
|
@@ -7973,15 +7973,15 @@ oe.prototype.forEachGlyph = function(e, t, r, a, o, n) {
|
|
|
7973
7973
|
};
|
|
7974
7974
|
oe.prototype.getPath = function(e, t, r, a, o) {
|
|
7975
7975
|
var n = new be();
|
|
7976
|
-
return this.forEachGlyph(e, t, r, a, o, function(s, l, i,
|
|
7977
|
-
var p = s.getPath(l, i,
|
|
7976
|
+
return this.forEachGlyph(e, t, r, a, o, function(s, l, i, c) {
|
|
7977
|
+
var p = s.getPath(l, i, c, o, this);
|
|
7978
7978
|
n.extend(p);
|
|
7979
7979
|
}), n;
|
|
7980
7980
|
};
|
|
7981
7981
|
oe.prototype.getPaths = function(e, t, r, a, o) {
|
|
7982
7982
|
var n = [];
|
|
7983
|
-
return this.forEachGlyph(e, t, r, a, o, function(s, l, i,
|
|
7984
|
-
var p = s.getPath(l, i,
|
|
7983
|
+
return this.forEachGlyph(e, t, r, a, o, function(s, l, i, c) {
|
|
7984
|
+
var p = s.getPath(l, i, c, o, this);
|
|
7985
7985
|
n.push(p);
|
|
7986
7986
|
}), n;
|
|
7987
7987
|
};
|
|
@@ -7993,13 +7993,13 @@ oe.prototype.draw = function(e, t, r, a, o, n) {
|
|
|
7993
7993
|
this.getPath(t, r, a, o, n).draw(e);
|
|
7994
7994
|
};
|
|
7995
7995
|
oe.prototype.drawPoints = function(e, t, r, a, o, n) {
|
|
7996
|
-
this.forEachGlyph(t, r, a, o, n, function(s, l, i,
|
|
7997
|
-
s.drawPoints(e, l, i,
|
|
7996
|
+
this.forEachGlyph(t, r, a, o, n, function(s, l, i, c) {
|
|
7997
|
+
s.drawPoints(e, l, i, c);
|
|
7998
7998
|
});
|
|
7999
7999
|
};
|
|
8000
8000
|
oe.prototype.drawMetrics = function(e, t, r, a, o, n) {
|
|
8001
|
-
this.forEachGlyph(t, r, a, o, n, function(s, l, i,
|
|
8002
|
-
s.drawMetrics(e, l, i,
|
|
8001
|
+
this.forEachGlyph(t, r, a, o, n, function(s, l, i, c) {
|
|
8002
|
+
s.drawMetrics(e, l, i, c);
|
|
8003
8003
|
});
|
|
8004
8004
|
};
|
|
8005
8005
|
oe.prototype.getEnglishName = function(e) {
|
|
@@ -8041,8 +8041,8 @@ oe.prototype.download = function(e) {
|
|
|
8041
8041
|
} else
|
|
8042
8042
|
console.warn("Font file could not be downloaded. Try using a different browser.");
|
|
8043
8043
|
else {
|
|
8044
|
-
var i = require("fs"),
|
|
8045
|
-
i.writeFileSync(e,
|
|
8044
|
+
var i = require("fs"), c = Ks(a);
|
|
8045
|
+
i.writeFileSync(e, c);
|
|
8046
8046
|
}
|
|
8047
8047
|
};
|
|
8048
8048
|
oe.prototype.fsSelectionValues = {
|
|
@@ -8126,7 +8126,7 @@ Xe[2] = function() {
|
|
|
8126
8126
|
})))
|
|
8127
8127
|
};
|
|
8128
8128
|
if (r === 2) {
|
|
8129
|
-
var s = this.parsePointer(b.classDef), l = this.parsePointer(b.classDef), i = this.parseUShort(),
|
|
8129
|
+
var s = this.parsePointer(b.classDef), l = this.parsePointer(b.classDef), i = this.parseUShort(), c = this.parseUShort();
|
|
8130
8130
|
return {
|
|
8131
8131
|
// Class Pair Adjustment
|
|
8132
8132
|
posFormat: r,
|
|
@@ -8136,8 +8136,8 @@ Xe[2] = function() {
|
|
|
8136
8136
|
classDef1: s,
|
|
8137
8137
|
classDef2: l,
|
|
8138
8138
|
class1Count: i,
|
|
8139
|
-
class2Count:
|
|
8140
|
-
classRecords: this.parseList(i, b.list(
|
|
8139
|
+
class2Count: c,
|
|
8140
|
+
classRecords: this.parseList(i, b.list(c, function() {
|
|
8141
8141
|
return {
|
|
8142
8142
|
value1: this.parseValueRecord(o),
|
|
8143
8143
|
value2: this.parseValueRecord(n)
|
|
@@ -8187,16 +8187,16 @@ function cu(e, t, r) {
|
|
|
8187
8187
|
function pu(e, t) {
|
|
8188
8188
|
var r = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
8189
8189
|
if (r != null) {
|
|
8190
|
-
var a, o, n, s, l = [], i = !0,
|
|
8190
|
+
var a, o, n, s, l = [], i = !0, c = !1;
|
|
8191
8191
|
try {
|
|
8192
8192
|
if (n = (r = r.call(e)).next, t !== 0) for (; !(i = (a = n.call(r)).done) && (l.push(a.value), l.length !== t); i = !0) ;
|
|
8193
8193
|
} catch (p) {
|
|
8194
|
-
|
|
8194
|
+
c = !0, o = p;
|
|
8195
8195
|
} finally {
|
|
8196
8196
|
try {
|
|
8197
8197
|
if (!i && r.return != null && (s = r.return(), Object(s) !== s)) return;
|
|
8198
8198
|
} finally {
|
|
8199
|
-
if (
|
|
8199
|
+
if (c) throw o;
|
|
8200
8200
|
}
|
|
8201
8201
|
}
|
|
8202
8202
|
return l;
|
|
@@ -8245,10 +8245,10 @@ function hu(e, t) {
|
|
|
8245
8245
|
}
|
|
8246
8246
|
return r;
|
|
8247
8247
|
}
|
|
8248
|
-
function
|
|
8248
|
+
function mu(e, t) {
|
|
8249
8249
|
return du(e) || pu(e, t) || bu(e, t) || vu();
|
|
8250
8250
|
}
|
|
8251
|
-
function
|
|
8251
|
+
function gu(e, t) {
|
|
8252
8252
|
if (typeof e != "object" || !e) return e;
|
|
8253
8253
|
var r = e[Symbol.toPrimitive];
|
|
8254
8254
|
if (r !== void 0) {
|
|
@@ -8259,7 +8259,7 @@ function mu(e, t) {
|
|
|
8259
8259
|
return (t === "string" ? String : Number)(e);
|
|
8260
8260
|
}
|
|
8261
8261
|
function yu(e) {
|
|
8262
|
-
var t =
|
|
8262
|
+
var t = gu(e, "string");
|
|
8263
8263
|
return typeof t == "symbol" ? t : t + "";
|
|
8264
8264
|
}
|
|
8265
8265
|
function bu(e, t) {
|
|
@@ -8372,13 +8372,13 @@ function Ru(e) {
|
|
|
8372
8372
|
current: e
|
|
8373
8373
|
}, a = Bt(Pu)(r, t), o = Bt(Lu)(r), n = Bt(lr.changes)(e), s = Bt(Du)(r);
|
|
8374
8374
|
function l() {
|
|
8375
|
-
var
|
|
8375
|
+
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(p) {
|
|
8376
8376
|
return p;
|
|
8377
8377
|
};
|
|
8378
|
-
return lr.selector(
|
|
8378
|
+
return lr.selector(c), c(r.current);
|
|
8379
8379
|
}
|
|
8380
|
-
function i(
|
|
8381
|
-
xu(a, o, n, s)(
|
|
8380
|
+
function i(c) {
|
|
8381
|
+
xu(a, o, n, s)(c);
|
|
8382
8382
|
}
|
|
8383
8383
|
return [l, i];
|
|
8384
8384
|
}
|
|
@@ -8478,7 +8478,7 @@ var zu = ["monaco"], Wu = Fu.create({
|
|
|
8478
8478
|
resolve: null,
|
|
8479
8479
|
reject: null,
|
|
8480
8480
|
monaco: null
|
|
8481
|
-
}), Wn =
|
|
8481
|
+
}), Wn = mu(Wu, 2), qt = Wn[0], Or = Wn[1];
|
|
8482
8482
|
function ju(e) {
|
|
8483
8483
|
var t = $u.config(e), r = t.monaco, a = fu(t, zu);
|
|
8484
8484
|
Or(function(o) {
|
|
@@ -8574,7 +8574,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8574
8574
|
},
|
|
8575
8575
|
emits: ["update", "error"],
|
|
8576
8576
|
setup(e, { emit: t }) {
|
|
8577
|
-
const r = e, a = t, { emitData: o } = ao(), n = re(), s = qn(null), l = re(!0), i = re(""),
|
|
8577
|
+
const r = e, a = t, { emitData: o } = ao(), n = re(), s = qn(null), l = re(!0), i = re(""), c = re(!0), p = r.template ? JSON.stringify(r.template, null, 2) : "{}", u = async () => {
|
|
8578
8578
|
if (n.value)
|
|
8579
8579
|
try {
|
|
8580
8580
|
sn.config({
|
|
@@ -8606,12 +8606,12 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8606
8606
|
}
|
|
8607
8607
|
})), s.value.onDidChangeModelContent(() => {
|
|
8608
8608
|
if (!s.value) return;
|
|
8609
|
-
const
|
|
8610
|
-
|
|
8611
|
-
}),
|
|
8609
|
+
const m = s.value.getValue();
|
|
8610
|
+
m && o(m);
|
|
8611
|
+
}), c.value = !1;
|
|
8612
8612
|
} catch (f) {
|
|
8613
|
-
const
|
|
8614
|
-
console.error(
|
|
8613
|
+
const m = f instanceof Error ? f.message : "Failed to initialize Monaco Editor";
|
|
8614
|
+
console.error(m, f), i.value = m, c.value = !1, a("error", m);
|
|
8615
8615
|
}
|
|
8616
8616
|
};
|
|
8617
8617
|
return dn(async () => {
|
|
@@ -8622,32 +8622,32 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8622
8622
|
var f;
|
|
8623
8623
|
if (s.value)
|
|
8624
8624
|
try {
|
|
8625
|
-
const
|
|
8625
|
+
const m = setTimeout(() => {
|
|
8626
8626
|
s.value = null;
|
|
8627
8627
|
}, 1e3);
|
|
8628
|
-
(f = s.value.getModel()) == null || f.dispose(), clearTimeout(
|
|
8629
|
-
} catch (
|
|
8630
|
-
console.warn("Error disposing editor:",
|
|
8628
|
+
(f = s.value.getModel()) == null || f.dispose(), clearTimeout(m), s.value = null;
|
|
8629
|
+
} catch (m) {
|
|
8630
|
+
console.warn("Error disposing editor:", m), s.value = null;
|
|
8631
8631
|
}
|
|
8632
|
-
}), (f,
|
|
8633
|
-
!l.value && i.value && !
|
|
8632
|
+
}), (f, m) => (R(), P("div", Qu, [
|
|
8633
|
+
!l.value && i.value && !c.value ? (R(), P("div", {
|
|
8634
8634
|
key: 0,
|
|
8635
8635
|
class: "error-banner",
|
|
8636
8636
|
title: i.value
|
|
8637
8637
|
}, [
|
|
8638
|
-
|
|
8639
|
-
|
|
8638
|
+
m[0] || (m[0] = d("span", { class: "error-icon" }, "⚠", -1)),
|
|
8639
|
+
d("span", td, k(i.value), 1)
|
|
8640
8640
|
], 8, ed)) : j("", !0),
|
|
8641
|
-
|
|
8642
|
-
|
|
8643
|
-
|
|
8641
|
+
c.value ? (R(), P("div", rd, m[1] || (m[1] = [
|
|
8642
|
+
d("div", { class: "loading-spinner" }, null, -1),
|
|
8643
|
+
d("span", { class: "loading-text" }, "Loading JSON Editor...", -1)
|
|
8644
8644
|
]))) : j("", !0),
|
|
8645
|
-
Gr(
|
|
8645
|
+
Gr(d("div", {
|
|
8646
8646
|
ref_key: "editorContainer",
|
|
8647
8647
|
ref: n,
|
|
8648
8648
|
class: cn(["editor-container", { "has-error": !l.value }])
|
|
8649
8649
|
}, null, 2), [
|
|
8650
|
-
[$r, !
|
|
8650
|
+
[$r, !c.value]
|
|
8651
8651
|
])
|
|
8652
8652
|
]));
|
|
8653
8653
|
}
|
|
@@ -8662,12 +8662,12 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8662
8662
|
const r = e, a = t, o = Kr(), n = Qr(), s = re(!!r.template);
|
|
8663
8663
|
vt(
|
|
8664
8664
|
() => r.template,
|
|
8665
|
-
(
|
|
8666
|
-
|
|
8665
|
+
(c) => {
|
|
8666
|
+
c ? s.value || (s.value = !0) : s.value = !1;
|
|
8667
8667
|
}
|
|
8668
8668
|
);
|
|
8669
|
-
function l(
|
|
8670
|
-
s.value =
|
|
8669
|
+
function l(c) {
|
|
8670
|
+
s.value = c, c || a("update", void 0);
|
|
8671
8671
|
}
|
|
8672
8672
|
function i() {
|
|
8673
8673
|
s.value && o.open({
|
|
@@ -8685,10 +8685,10 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8685
8685
|
close: !0
|
|
8686
8686
|
},
|
|
8687
8687
|
minWidth: "800px"
|
|
8688
|
-
}).onPrimary((
|
|
8689
|
-
if (
|
|
8688
|
+
}).onPrimary((c) => {
|
|
8689
|
+
if (c)
|
|
8690
8690
|
try {
|
|
8691
|
-
const p = JSON.parse(
|
|
8691
|
+
const p = JSON.parse(c);
|
|
8692
8692
|
a("update", p), o.close();
|
|
8693
8693
|
} catch {
|
|
8694
8694
|
n.open({
|
|
@@ -8698,14 +8698,14 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8698
8698
|
}
|
|
8699
8699
|
});
|
|
8700
8700
|
}
|
|
8701
|
-
return (
|
|
8701
|
+
return (c, p) => {
|
|
8702
8702
|
const u = se("FmSwitch"), f = se("FmButton");
|
|
8703
8703
|
return R(), P("div", nd, [
|
|
8704
|
-
|
|
8704
|
+
d("div", od, [
|
|
8705
8705
|
x(u, {
|
|
8706
8706
|
"model-value": s.value,
|
|
8707
8707
|
"onUpdate:modelValue": l,
|
|
8708
|
-
label:
|
|
8708
|
+
label: c.switchLabel || "Custom Template"
|
|
8709
8709
|
}, null, 8, ["model-value", "label"])
|
|
8710
8710
|
]),
|
|
8711
8711
|
x(f, {
|
|
@@ -8729,8 +8729,8 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8729
8729
|
return (r, a) => {
|
|
8730
8730
|
const o = se("FmSnackbar");
|
|
8731
8731
|
return R(), P("div", sd, [
|
|
8732
|
-
|
|
8733
|
-
|
|
8732
|
+
d("div", id, k(t.title), 1),
|
|
8733
|
+
d("div", ld, k(t.description), 1),
|
|
8734
8734
|
t.warning ? (R(), Le(o, {
|
|
8735
8735
|
key: 0,
|
|
8736
8736
|
variant: "warning",
|
|
@@ -8749,7 +8749,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8749
8749
|
}, hd = {
|
|
8750
8750
|
key: 2,
|
|
8751
8751
|
class: "space-y-8 max-h-[200px] overflow-y-auto"
|
|
8752
|
-
},
|
|
8752
|
+
}, md = { class: "flex-1" }, gd = { class: "flex items-center gap-8" }, yd = { class: "fm-typo-en-body-sm-600" }, bd = { class: "fm-typo-en-body-xs-400 text-fm-color-typo-tertiary" }, kd = {
|
|
8753
8753
|
key: 0,
|
|
8754
8754
|
class: "fm-typo-en-body-xs-400 text-fm-color-typo-secondary mt-4"
|
|
8755
8755
|
}, xd = { class: "flex items-center gap-8" }, un = /* @__PURE__ */ it({
|
|
@@ -8759,7 +8759,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8759
8759
|
},
|
|
8760
8760
|
emits: ["restored"],
|
|
8761
8761
|
setup(e, { expose: t, emit: r }) {
|
|
8762
|
-
const a = e, o = r, n = Zr(), s = Kr(), l = Qr(), i = re(!1),
|
|
8762
|
+
const a = e, o = r, n = Zr(), s = Kr(), l = Qr(), i = re(!1), c = re(0), p = re([]);
|
|
8763
8763
|
async function u() {
|
|
8764
8764
|
var O;
|
|
8765
8765
|
if ((O = n.currentBusiness.value) != null && O._id) {
|
|
@@ -8769,7 +8769,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8769
8769
|
n.currentBusiness.value._id,
|
|
8770
8770
|
a.target
|
|
8771
8771
|
);
|
|
8772
|
-
|
|
8772
|
+
c.value = T.currentVersion, p.value = T.templateHistory.sort(
|
|
8773
8773
|
(_, A) => A.version - _.version
|
|
8774
8774
|
);
|
|
8775
8775
|
} catch (T) {
|
|
@@ -8811,7 +8811,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8811
8811
|
}
|
|
8812
8812
|
});
|
|
8813
8813
|
}
|
|
8814
|
-
function
|
|
8814
|
+
function m(O) {
|
|
8815
8815
|
var T;
|
|
8816
8816
|
s.open({
|
|
8817
8817
|
title: `Version ${O.version} - Preview`,
|
|
@@ -8864,39 +8864,39 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8864
8864
|
}), (O, T) => {
|
|
8865
8865
|
const _ = se("FmButton"), A = se("FmSpinner");
|
|
8866
8866
|
return R(), P("div", ud, [
|
|
8867
|
-
|
|
8868
|
-
T[0] || (T[0] =
|
|
8869
|
-
|
|
8867
|
+
d("div", dd, [
|
|
8868
|
+
T[0] || (T[0] = d("div", { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary" }, " Version History ", -1)),
|
|
8869
|
+
d("div", cd, [
|
|
8870
8870
|
p.value.length > 0 ? (R(), Le(_, {
|
|
8871
8871
|
key: 0,
|
|
8872
8872
|
variant: "plain",
|
|
8873
8873
|
label: "Clear",
|
|
8874
8874
|
onClick: C
|
|
8875
8875
|
})) : j("", !0),
|
|
8876
|
-
|
|
8876
|
+
d("div", pd, " Current: v" + k(c.value), 1)
|
|
8877
8877
|
])
|
|
8878
8878
|
]),
|
|
8879
8879
|
i.value ? (R(), P("div", vd, [
|
|
8880
8880
|
x(A, { size: "sm" })
|
|
8881
8881
|
])) : p.value.length === 0 ? (R(), P("div", fd, T[1] || (T[1] = [
|
|
8882
|
-
|
|
8882
|
+
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, " No previous versions available ", -1)
|
|
8883
8883
|
]))) : (R(), P("div", hd, [
|
|
8884
8884
|
(R(!0), P(We, null, bt(p.value, (U) => (R(), P("div", {
|
|
8885
8885
|
key: U.version,
|
|
8886
8886
|
class: "flex items-center justify-between p-12 rounded-lg border border-fm-color-neutral-gray-100 hover:bg-fm-color-neutral-gray-50 transition-colors"
|
|
8887
8887
|
}, [
|
|
8888
|
-
|
|
8889
|
-
|
|
8890
|
-
|
|
8891
|
-
|
|
8888
|
+
d("div", md, [
|
|
8889
|
+
d("div", gd, [
|
|
8890
|
+
d("span", yd, "v" + k(U.version), 1),
|
|
8891
|
+
d("span", bd, k(v(no)(U.createdAt).format("MMM D, YYYY h:mm A")), 1)
|
|
8892
8892
|
]),
|
|
8893
8893
|
U.description ? (R(), P("div", kd, k(U.description), 1)) : j("", !0)
|
|
8894
8894
|
]),
|
|
8895
|
-
|
|
8895
|
+
d("div", xd, [
|
|
8896
8896
|
x(_, {
|
|
8897
8897
|
variant: "plain",
|
|
8898
8898
|
label: "Preview",
|
|
8899
|
-
onClick: (Q) =>
|
|
8899
|
+
onClick: (Q) => m(U)
|
|
8900
8900
|
}, null, 8, ["onClick"]),
|
|
8901
8901
|
x(_, {
|
|
8902
8902
|
variant: "secondary",
|
|
@@ -8939,7 +8939,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8939
8939
|
},
|
|
8940
8940
|
{ deep: !0 }
|
|
8941
8941
|
);
|
|
8942
|
-
const
|
|
8942
|
+
const c = (E, L) => L.split(".").reduce((N, G) => N && typeof N == "object" ? N[G] : void 0, E), p = (E) => {
|
|
8943
8943
|
if (Array.isArray(E)) {
|
|
8944
8944
|
const L = E.map(p).filter((N) => N !== void 0);
|
|
8945
8945
|
return L.length ? L : void 0;
|
|
@@ -8972,12 +8972,12 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8972
8972
|
const { parent: ne, key: ue } = G[te];
|
|
8973
8973
|
ne[ue] && typeof ne[ue] == "object" && !Object.keys(ne[ue]).length && delete ne[ue];
|
|
8974
8974
|
}
|
|
8975
|
-
},
|
|
8976
|
-
const L =
|
|
8975
|
+
}, m = (E) => {
|
|
8976
|
+
const L = c(r.baseBrandkit, E);
|
|
8977
8977
|
return typeof L == "string" ? L : "#000000";
|
|
8978
8978
|
}, C = (E) => {
|
|
8979
|
-
const L =
|
|
8980
|
-
return typeof L == "string" ? L :
|
|
8979
|
+
const L = c(s.value, E);
|
|
8980
|
+
return typeof L == "string" ? L : m(E);
|
|
8981
8981
|
}, O = (E, L) => {
|
|
8982
8982
|
if (!L) {
|
|
8983
8983
|
f(s.value, E);
|
|
@@ -8985,17 +8985,17 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
8985
8985
|
s.value = N ?? {};
|
|
8986
8986
|
return;
|
|
8987
8987
|
}
|
|
8988
|
-
u(s.value, E,
|
|
8988
|
+
u(s.value, E, m(E));
|
|
8989
8989
|
}, T = (E) => {
|
|
8990
|
-
u(s.value, E,
|
|
8990
|
+
u(s.value, E, m(E));
|
|
8991
8991
|
}, _ = (E, L) => {
|
|
8992
8992
|
u(s.value, E, L);
|
|
8993
|
-
}, A = (E) =>
|
|
8993
|
+
}, A = (E) => c(s.value, E) !== void 0, U = () => {
|
|
8994
8994
|
i(), a("cancel"), n.value = !1;
|
|
8995
8995
|
}, Q = () => {
|
|
8996
8996
|
const E = {};
|
|
8997
8997
|
for (const N of r.colorFields) {
|
|
8998
|
-
const G =
|
|
8998
|
+
const G = c(s.value, N.key);
|
|
8999
8999
|
G !== void 0 && u(E, N.key, G);
|
|
9000
9000
|
}
|
|
9001
9001
|
const L = p(E);
|
|
@@ -9009,10 +9009,10 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9009
9009
|
"max-width": 720
|
|
9010
9010
|
}, {
|
|
9011
9011
|
"dialog-header": Pe(() => [
|
|
9012
|
-
|
|
9012
|
+
d("div", Sd, k(E.title), 1)
|
|
9013
9013
|
]),
|
|
9014
9014
|
"dialog-footer": Pe(() => [
|
|
9015
|
-
|
|
9015
|
+
d("div", Ud, [
|
|
9016
9016
|
x(G, {
|
|
9017
9017
|
variant: "secondary",
|
|
9018
9018
|
label: v(o)("brand.brandkit.ordering.colorOverride.close"),
|
|
@@ -9025,28 +9025,28 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9025
9025
|
])
|
|
9026
9026
|
]),
|
|
9027
9027
|
default: Pe(() => [
|
|
9028
|
-
|
|
9028
|
+
d("div", Td, [
|
|
9029
9029
|
(R(!0), P(We, null, bt(E.colorFields, ($) => (R(), P("div", {
|
|
9030
9030
|
key: $.key,
|
|
9031
9031
|
class: "border border-fm-color-neutral-gray-100 rounded-lg overflow-hidden"
|
|
9032
9032
|
}, [
|
|
9033
|
-
|
|
9034
|
-
|
|
9035
|
-
|
|
9036
|
-
|
|
9033
|
+
d("div", wd, [
|
|
9034
|
+
d("div", Od, [
|
|
9035
|
+
d("div", Cd, k($.title), 1),
|
|
9036
|
+
d("div", _d, k($.description), 1)
|
|
9037
9037
|
]),
|
|
9038
9038
|
x(N, {
|
|
9039
9039
|
"model-value": A($.key),
|
|
9040
9040
|
"onUpdate:modelValue": (te) => O($.key, te)
|
|
9041
9041
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
9042
9042
|
]),
|
|
9043
|
-
|
|
9043
|
+
d("div", {
|
|
9044
9044
|
class: cn(["px-16 py-12", {
|
|
9045
9045
|
"opacity-50 pointer-events-none": !A($.key)
|
|
9046
9046
|
}])
|
|
9047
9047
|
}, [
|
|
9048
9048
|
x(Ue, {
|
|
9049
|
-
"initial-color":
|
|
9049
|
+
"initial-color": m($.key),
|
|
9050
9050
|
color: C($.key),
|
|
9051
9051
|
onUpdate: (te) => _($.key, te),
|
|
9052
9052
|
onRemove: (te) => T($.key),
|
|
@@ -9070,73 +9070,73 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9070
9070
|
}, Gd = { class: "grid grid-cols-1 lg:grid-cols-2 gap-24 items-start" }, $d = { class: "space-y-24" }, Hd = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, Vd = { class: "py-16 px-24 bg-fm-color-neutral-gray-50 border-b border-fm-color-neutral-gray-100" }, zd = { class: "flex items-center gap-12 mb-8" }, Wd = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-neutral-gray-100 rounded-full" }, jd = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, qd = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xd = { class: "px-24 py-12" }, Yd = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Zd = {
|
|
9071
9071
|
key: 0,
|
|
9072
9072
|
class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100"
|
|
9073
|
-
}, Jd = { class: "py-16 px-24 bg-fm-color-secondary-50 border-b border-fm-color-neutral-gray-100" }, Kd = { class: "flex items-center gap-12 mb-8" }, Qd = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-secondary-100 rounded-full" }, ec = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, tc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, rc = { class: "px-24 py-12" }, ac = { class: "flex items-center justify-end gap-8" }, nc = { class: "px-24 py-12" }, oc = { class: "space-y-12" }, sc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, ic = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, lc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, uc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, dc = { class: "px-24 py-12" }, cc = { class: "space-y-12" }, pc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, vc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, fc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, hc = { class: "px-24 py-12" },
|
|
9073
|
+
}, Jd = { class: "py-16 px-24 bg-fm-color-secondary-50 border-b border-fm-color-neutral-gray-100" }, Kd = { class: "flex items-center gap-12 mb-8" }, Qd = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-secondary-100 rounded-full" }, ec = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, tc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, rc = { class: "px-24 py-12" }, ac = { class: "flex items-center justify-end gap-8" }, nc = { class: "px-24 py-12" }, oc = { class: "space-y-12" }, sc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, ic = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, lc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, uc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, dc = { class: "px-24 py-12" }, cc = { class: "space-y-12" }, pc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, vc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, fc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, hc = { class: "px-24 py-12" }, mc = { class: "space-y-12" }, gc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, yc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, bc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, kc = { class: "px-24 py-12" }, xc = { class: "space-y-12" }, Sc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Tc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, wc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Oc = {
|
|
9074
9074
|
key: 0,
|
|
9075
9075
|
class: "px-24 py-12"
|
|
9076
|
-
},
|
|
9076
|
+
}, Cc = { class: "space-y-12" }, _c = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Uc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ec = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Rc = {
|
|
9077
9077
|
key: 1,
|
|
9078
9078
|
class: "px-24 py-12"
|
|
9079
|
-
},
|
|
9079
|
+
}, Dc = { class: "space-y-12" }, Lc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Pc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Fc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Ic = {
|
|
9080
9080
|
key: 2,
|
|
9081
9081
|
class: "px-24 py-12"
|
|
9082
|
-
},
|
|
9082
|
+
}, Bc = { class: "space-y-12" }, Ac = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Mc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Nc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Gc = {
|
|
9083
9083
|
key: 3,
|
|
9084
9084
|
class: "px-24 py-12"
|
|
9085
|
-
},
|
|
9085
|
+
}, $c = { class: "space-y-12" }, Hc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Vc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, zc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Wc = {
|
|
9086
9086
|
key: 4,
|
|
9087
9087
|
class: "px-24 py-12"
|
|
9088
|
-
},
|
|
9088
|
+
}, jc = { class: "space-y-12" }, qc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Xc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Yc = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Zc = {
|
|
9089
9089
|
key: 5,
|
|
9090
9090
|
class: "px-24 py-12"
|
|
9091
|
-
},
|
|
9091
|
+
}, Jc = { class: "space-y-12" }, Kc = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Qc = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ep = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, tp = {
|
|
9092
9092
|
key: 6,
|
|
9093
9093
|
class: "px-24 py-12"
|
|
9094
|
-
},
|
|
9094
|
+
}, rp = { class: "space-y-12" }, ap = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, np = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, op = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, sp = {
|
|
9095
9095
|
key: 7,
|
|
9096
9096
|
class: "px-24 py-12"
|
|
9097
|
-
},
|
|
9097
|
+
}, ip = { class: "space-y-12" }, lp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, up = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, dp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, cp = {
|
|
9098
9098
|
key: 8,
|
|
9099
9099
|
class: "px-24 py-12"
|
|
9100
|
-
},
|
|
9100
|
+
}, pp = { class: "space-y-12" }, vp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, fp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, hp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, mp = {
|
|
9101
9101
|
key: 1,
|
|
9102
9102
|
class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100"
|
|
9103
|
-
},
|
|
9103
|
+
}, gp = { class: "py-16 px-24 bg-fm-color-primary-50 border-b border-fm-color-neutral-gray-100" }, yp = { class: "flex items-center gap-12 mb-8" }, bp = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-primary-100 rounded-full" }, kp = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, xp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Sp = { class: "px-24 py-12" }, Tp = { class: "flex items-center justify-end gap-8" }, wp = { class: "px-24 py-12" }, Op = { class: "space-y-12" }, Cp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, _p = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Up = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 space-y-12" }, Ep = { class: "flex flex-wrap gap-12" }, Rp = {
|
|
9104
9104
|
key: 0,
|
|
9105
9105
|
class: "relative"
|
|
9106
|
-
},
|
|
9106
|
+
}, Dp = { class: "w-full h-[120px] border border-fm-color-neutral-gray-200 rounded-lg overflow-hidden bg-fm-color-neutral-white" }, Lp = ["src"], Pp = {
|
|
9107
9107
|
key: 0,
|
|
9108
9108
|
class: "mt-8 flex items-center gap-8"
|
|
9109
|
-
},
|
|
9109
|
+
}, Fp = {
|
|
9110
9110
|
key: 2,
|
|
9111
9111
|
class: "text-center"
|
|
9112
|
-
},
|
|
9112
|
+
}, Ip = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Bp = {
|
|
9113
9113
|
key: 3,
|
|
9114
9114
|
class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 bg-white px-16 py-16"
|
|
9115
|
-
},
|
|
9115
|
+
}, Ap = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Mp = { class: "px-24 py-12" }, Np = { class: "space-y-12" }, Gp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, $p = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Hp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 space-y-12" }, Vp = { class: "flex flex-wrap gap-12" }, zp = {
|
|
9116
9116
|
key: 0,
|
|
9117
9117
|
class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 bg-white px-16 py-16"
|
|
9118
|
-
},
|
|
9118
|
+
}, Wp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, jp = {
|
|
9119
9119
|
key: 0,
|
|
9120
9120
|
class: "relative"
|
|
9121
|
-
},
|
|
9121
|
+
}, qp = { class: "w-full h-[120px] border border-fm-color-neutral-gray-200 rounded-lg overflow-hidden bg-fm-color-neutral-white" }, Xp = ["src"], Yp = {
|
|
9122
9122
|
key: 0,
|
|
9123
9123
|
class: "mt-8 flex items-center gap-8"
|
|
9124
|
-
},
|
|
9124
|
+
}, Zp = {
|
|
9125
9125
|
key: 2,
|
|
9126
9126
|
class: "text-center"
|
|
9127
|
-
},
|
|
9127
|
+
}, Jp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Kp = {
|
|
9128
9128
|
key: 3,
|
|
9129
9129
|
class: "grid grid-cols-1 lg:grid-cols-2 gap-12"
|
|
9130
|
-
},
|
|
9130
|
+
}, Qp = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary mb-4" }, ev = { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary mb-4" }, tv = { class: "px-24 py-12" }, rv = { class: "space-y-12" }, av = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, nv = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ov = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, sv = {
|
|
9131
9131
|
key: 0,
|
|
9132
9132
|
class: "px-24 py-12"
|
|
9133
|
-
},
|
|
9133
|
+
}, iv = { class: "space-y-12" }, lv = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, uv = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, dv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, cv = {
|
|
9134
9134
|
key: 1,
|
|
9135
9135
|
class: "px-24 py-12"
|
|
9136
|
-
},
|
|
9136
|
+
}, pv = { class: "space-y-12" }, vv = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, fv = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, hv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, mv = { class: "min-w-0 lg:sticky lg:top-24" }, gv = { class: "overflow-hidden rounded-lg border border-fm-color-neutral-gray-100 bg-white" }, yv = { class: "border-b border-fm-color-neutral-gray-100 bg-fm-color-neutral-gray-50 px-24 py-16" }, bv = { class: "flex flex-col gap-12 lg:flex-row lg:items-start lg:justify-between" }, kv = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, xv = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Sv = { class: "flex flex-wrap items-center gap-8" }, Tv = { class: "bg-fm-color-neutral-gray-50 p-16" }, wv = ["src"], Ov = {
|
|
9137
9137
|
key: 1,
|
|
9138
9138
|
class: "flex h-[200px] items-center justify-center rounded-[16px] border border-dashed border-fm-color-neutral-gray-200 bg-white px-24 text-center"
|
|
9139
|
-
},
|
|
9139
|
+
}, Cv = { class: "space-y-8" }, _v = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, Ft = "/images/feedme-bg.png", dr = "/images/feedme-bg-left-image.png", It = "/images/feedme-side.png", cr = 1920, pr = 1080, Uv = /* @__PURE__ */ it({
|
|
9140
9140
|
__name: "OdsConfigEditorDialog",
|
|
9141
9141
|
props: {
|
|
9142
9142
|
modelValue: { type: Boolean },
|
|
@@ -9150,8 +9150,8 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9150
9150
|
setup(e, { emit: t }) {
|
|
9151
9151
|
const r = e, a = t, o = Zr(), { t: n } = Jr(), s = ee(() => {
|
|
9152
9152
|
var M;
|
|
9153
|
-
const
|
|
9154
|
-
return !!(typeof
|
|
9153
|
+
const g = (M = o.sessionUser.value) == null ? void 0 : M.role, y = typeof g == "string" ? g : (g == null ? void 0 : g.name) ?? (g == null ? void 0 : g.type) ?? (g == null ? void 0 : g.key);
|
|
9154
|
+
return !!(typeof g == "object" && (g != null && g.isAdmin || g != null && g.isStaff || g != null && g.isAgent) || ["admin", "staff", "agent"].includes(String(y).toLowerCase()));
|
|
9155
9155
|
}), { value: l } = fa(
|
|
9156
9156
|
"order_ods_advanced_customization",
|
|
9157
9157
|
!1,
|
|
@@ -9160,29 +9160,29 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9160
9160
|
"order_ods_template_settings",
|
|
9161
9161
|
!1,
|
|
9162
9162
|
ha
|
|
9163
|
-
),
|
|
9163
|
+
), c = ee(
|
|
9164
9164
|
() => s.value || i.value
|
|
9165
9165
|
), p = ee({
|
|
9166
9166
|
get: () => r.modelValue,
|
|
9167
|
-
set: (
|
|
9168
|
-
}), u = re({ isDefault: !1 }), f = () => JSON.parse(JSON.stringify(r.entry)),
|
|
9169
|
-
const
|
|
9170
|
-
|
|
9167
|
+
set: (g) => a("update:modelValue", g)
|
|
9168
|
+
}), u = re({ isDefault: !1 }), f = () => JSON.parse(JSON.stringify(r.entry)), m = () => {
|
|
9169
|
+
const g = f();
|
|
9170
|
+
g.display || (g.display = A()), g.layout || (g.layout = JSON.parse(JSON.stringify(ie[0].layout))), u.value = g;
|
|
9171
9171
|
};
|
|
9172
9172
|
vt(
|
|
9173
9173
|
() => r.modelValue,
|
|
9174
|
-
(
|
|
9175
|
-
|
|
9174
|
+
(g) => {
|
|
9175
|
+
g && m();
|
|
9176
9176
|
}
|
|
9177
9177
|
);
|
|
9178
9178
|
const C = ee(
|
|
9179
9179
|
() => r.allEntries.some(
|
|
9180
|
-
(
|
|
9180
|
+
(g, y) => g.isDefault && y !== r.editingIndex
|
|
9181
9181
|
)
|
|
9182
9182
|
), O = ee({
|
|
9183
9183
|
get: () => u.value.restaurantIds ?? [],
|
|
9184
|
-
set: (
|
|
9185
|
-
u.value.restaurantIds =
|
|
9184
|
+
set: (g) => {
|
|
9185
|
+
u.value.restaurantIds = g ?? [];
|
|
9186
9186
|
}
|
|
9187
9187
|
}), T = {
|
|
9188
9188
|
enabled: !0
|
|
@@ -9197,6 +9197,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9197
9197
|
showOrderTypeTabs: !1,
|
|
9198
9198
|
showOrderCount: !1,
|
|
9199
9199
|
showEstimatedTime: !1,
|
|
9200
|
+
hideCompletedOrders: !1,
|
|
9200
9201
|
statusTemplate: "default"
|
|
9201
9202
|
}, A = () => ({
|
|
9202
9203
|
..._,
|
|
@@ -9213,37 +9214,37 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9213
9214
|
footerMode: "feedme"
|
|
9214
9215
|
}, Q = () => {
|
|
9215
9216
|
u.value.display || (u.value.display = A());
|
|
9216
|
-
}, E = (
|
|
9217
|
+
}, E = (g) => ({
|
|
9217
9218
|
...A(),
|
|
9218
|
-
...
|
|
9219
|
+
...g,
|
|
9219
9220
|
currentOrder: {
|
|
9220
9221
|
...T,
|
|
9221
|
-
...
|
|
9222
|
+
...g == null ? void 0 : g.currentOrder
|
|
9222
9223
|
}
|
|
9223
9224
|
}), L = ee(
|
|
9224
9225
|
() => E(u.value.display)
|
|
9225
|
-
), N = (
|
|
9226
|
-
|
|
9227
|
-
}, G = (
|
|
9228
|
-
|
|
9226
|
+
), N = (g, y) => {
|
|
9227
|
+
c.value && (Q(), u.value.display[g] = y);
|
|
9228
|
+
}, G = (g) => {
|
|
9229
|
+
c.value && (Q(), u.value.display.currentOrder = {
|
|
9229
9230
|
...u.value.display.currentOrder ?? {},
|
|
9230
|
-
enabled:
|
|
9231
|
+
enabled: g
|
|
9231
9232
|
});
|
|
9232
9233
|
}, J = () => {
|
|
9233
|
-
|
|
9234
|
+
c.value && (u.value.display = A());
|
|
9234
9235
|
}, $ = () => {
|
|
9235
9236
|
u.value.layout || (u.value.layout = {});
|
|
9236
|
-
}, te = (
|
|
9237
|
+
}, te = (g) => g ? {
|
|
9237
9238
|
...U,
|
|
9238
|
-
...
|
|
9239
|
-
background:
|
|
9240
|
-
sidePanel:
|
|
9239
|
+
...g,
|
|
9240
|
+
background: g.background === void 0 ? U.background : g.background,
|
|
9241
|
+
sidePanel: g.sidePanel === void 0 ? U.sidePanel : g.sidePanel
|
|
9241
9242
|
} : U, ne = ee(
|
|
9242
9243
|
() => te(u.value.layout)
|
|
9243
|
-
), ue = (
|
|
9244
|
-
|
|
9244
|
+
), ue = (g, y) => {
|
|
9245
|
+
c.value && ($(), u.value.layout[g] = y);
|
|
9245
9246
|
}, de = () => {
|
|
9246
|
-
|
|
9247
|
+
c.value && (u.value.layout = void 0, Ze(), wt());
|
|
9247
9248
|
}, ie = [
|
|
9248
9249
|
{
|
|
9249
9250
|
key: "preset1",
|
|
@@ -9268,6 +9269,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9268
9269
|
showOrderTypeTabs: !1,
|
|
9269
9270
|
showOrderCount: !1,
|
|
9270
9271
|
showEstimatedTime: !1,
|
|
9272
|
+
hideCompletedOrders: !1,
|
|
9271
9273
|
statusTemplate: "default",
|
|
9272
9274
|
currentOrder: {
|
|
9273
9275
|
enabled: !0
|
|
@@ -9297,44 +9299,45 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9297
9299
|
showOrderTypeTabs: !1,
|
|
9298
9300
|
showOrderCount: !1,
|
|
9299
9301
|
showEstimatedTime: !1,
|
|
9302
|
+
hideCompletedOrders: !1,
|
|
9300
9303
|
statusTemplate: "default",
|
|
9301
9304
|
currentOrder: {
|
|
9302
9305
|
enabled: !0
|
|
9303
9306
|
}
|
|
9304
9307
|
}
|
|
9305
9308
|
}
|
|
9306
|
-
],
|
|
9307
|
-
() => ie.map((
|
|
9308
|
-
label: n(
|
|
9309
|
-
value:
|
|
9309
|
+
], me = ee(
|
|
9310
|
+
() => ie.map((g) => ({
|
|
9311
|
+
label: n(g.labelKey),
|
|
9312
|
+
value: g.key
|
|
9310
9313
|
}))
|
|
9311
|
-
), le = (
|
|
9312
|
-
(y) => `${JSON.stringify(y)}:${le(
|
|
9313
|
-
).join(",")}}` : JSON.stringify(
|
|
9314
|
+
), le = (g) => Array.isArray(g) ? `[${g.map((y) => le(y)).join(",")}]` : g && typeof g == "object" ? `{${Object.keys(g).sort().map(
|
|
9315
|
+
(y) => `${JSON.stringify(y)}:${le(g[y])}`
|
|
9316
|
+
).join(",")}}` : JSON.stringify(g) ?? "undefined", ge = ee(
|
|
9314
9317
|
() => {
|
|
9315
|
-
var
|
|
9316
|
-
return ((
|
|
9318
|
+
var g;
|
|
9319
|
+
return ((g = ie.find(
|
|
9317
9320
|
(y) => le(E(y.display)) === le(L.value) && le(te(y.layout)) === le(ne.value)
|
|
9318
|
-
)) == null ? void 0 :
|
|
9321
|
+
)) == null ? void 0 : g.key) ?? null;
|
|
9319
9322
|
}
|
|
9320
|
-
), ve = (
|
|
9321
|
-
const y = ie.find((M) => M.key ===
|
|
9323
|
+
), ve = (g) => {
|
|
9324
|
+
const y = ie.find((M) => M.key === g);
|
|
9322
9325
|
y && (u.value.layout = JSON.parse(JSON.stringify(y.layout)), u.value.display = JSON.parse(JSON.stringify(y.display)), Ze(), wt());
|
|
9323
|
-
}, fe = re(null), ae = re(!1), X = re("default"), Ye = (
|
|
9324
|
-
url:
|
|
9326
|
+
}, fe = re(null), ae = re(!1), X = re("default"), Ye = (g = Ft) => ({
|
|
9327
|
+
url: g,
|
|
9325
9328
|
size: "cover",
|
|
9326
9329
|
position: "center"
|
|
9327
9330
|
}), Ze = () => {
|
|
9328
9331
|
var y;
|
|
9329
|
-
const
|
|
9330
|
-
|
|
9331
|
-
}, _e = (
|
|
9332
|
-
if (!
|
|
9333
|
-
if ($(),
|
|
9332
|
+
const g = (y = u.value.layout) == null ? void 0 : y.background;
|
|
9333
|
+
g === null ? X.value = "disable" : !g || g.url === Ft ? X.value = "default" : g.url === dr ? X.value = "left" : X.value = "custom";
|
|
9334
|
+
}, _e = (g) => {
|
|
9335
|
+
if (!c.value) return;
|
|
9336
|
+
if ($(), g === "disable") {
|
|
9334
9337
|
u.value.layout.background = null, X.value = "disable";
|
|
9335
9338
|
return;
|
|
9336
9339
|
}
|
|
9337
|
-
if (
|
|
9340
|
+
if (g === "custom") {
|
|
9338
9341
|
const K = u.value.layout.background;
|
|
9339
9342
|
K && K !== null && K.url !== Ft && K.url !== dr ? u.value.layout.background = K : u.value.layout.background = {
|
|
9340
9343
|
url: "",
|
|
@@ -9343,26 +9346,26 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9343
9346
|
}, X.value = "custom";
|
|
9344
9347
|
return;
|
|
9345
9348
|
}
|
|
9346
|
-
const y =
|
|
9349
|
+
const y = g === "left" ? dr : Ft, M = u.value.layout.background;
|
|
9347
9350
|
u.value.layout.background = {
|
|
9348
9351
|
...M && M !== null ? M : Ye(y),
|
|
9349
9352
|
url: y
|
|
9350
|
-
}, X.value =
|
|
9353
|
+
}, X.value = g;
|
|
9351
9354
|
}, Ne = ee(() => {
|
|
9352
9355
|
var y, M;
|
|
9353
|
-
const
|
|
9354
|
-
return !!
|
|
9355
|
-
}), De = async (
|
|
9356
|
+
const g = (M = (y = u.value.layout) == null ? void 0 : y.background) == null ? void 0 : M.url;
|
|
9357
|
+
return !!g && g !== Ft && g !== dr;
|
|
9358
|
+
}), De = async (g) => {
|
|
9356
9359
|
var y, M;
|
|
9357
|
-
if (
|
|
9360
|
+
if (c.value) {
|
|
9358
9361
|
ae.value = !0;
|
|
9359
9362
|
try {
|
|
9360
|
-
const K = `ods/background/${
|
|
9363
|
+
const K = `ods/background/${ma()}.${g.name.split(".").pop()}`, he = await pa.uploadImage(
|
|
9361
9364
|
o.currentBusiness.value._id,
|
|
9362
9365
|
K,
|
|
9363
|
-
|
|
9366
|
+
g
|
|
9364
9367
|
), Te = va(
|
|
9365
|
-
`https://image.
|
|
9368
|
+
`https://image.feedme.cc/business/${o.currentBusiness.value._id}/${he.imagePath}`
|
|
9366
9369
|
);
|
|
9367
9370
|
$(), u.value.layout.background = {
|
|
9368
9371
|
url: Te,
|
|
@@ -9379,15 +9382,15 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9379
9382
|
widthPercent: 33
|
|
9380
9383
|
}), wt = () => {
|
|
9381
9384
|
var y;
|
|
9382
|
-
const
|
|
9383
|
-
|
|
9384
|
-
}, Ot = (
|
|
9385
|
-
if (!
|
|
9386
|
-
if ($(),
|
|
9385
|
+
const g = (y = u.value.layout) == null ? void 0 : y.sidePanel;
|
|
9386
|
+
g ? g.url === It ? xe.value = "default" : xe.value = "custom" : xe.value = "disable";
|
|
9387
|
+
}, Ot = (g) => {
|
|
9388
|
+
if (!c.value) return;
|
|
9389
|
+
if ($(), g === "disable") {
|
|
9387
9390
|
u.value.layout.sidePanel = null, xe.value = "disable";
|
|
9388
9391
|
return;
|
|
9389
9392
|
}
|
|
9390
|
-
if (
|
|
9393
|
+
if (g === "default") {
|
|
9391
9394
|
const M = u.value.layout.sidePanel;
|
|
9392
9395
|
u.value.layout.sidePanel = {
|
|
9393
9396
|
...M && M !== null ? M : Cr(),
|
|
@@ -9403,19 +9406,19 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9403
9406
|
}, xe.value = "custom";
|
|
9404
9407
|
}, Xt = ee(() => {
|
|
9405
9408
|
var y, M;
|
|
9406
|
-
const
|
|
9407
|
-
return !!
|
|
9408
|
-
}), Yt = async (
|
|
9409
|
+
const g = (M = (y = u.value.layout) == null ? void 0 : y.sidePanel) == null ? void 0 : M.url;
|
|
9410
|
+
return !!g && g !== It;
|
|
9411
|
+
}), Yt = async (g) => {
|
|
9409
9412
|
var y, M, K;
|
|
9410
|
-
if (
|
|
9413
|
+
if (c.value) {
|
|
9411
9414
|
Ve.value = !0;
|
|
9412
9415
|
try {
|
|
9413
|
-
const
|
|
9416
|
+
const he = `ods/sidepanel/${ma()}.${g.name.split(".").pop()}`, Te = await pa.uploadImage(
|
|
9414
9417
|
o.currentBusiness.value._id,
|
|
9415
|
-
|
|
9416
|
-
|
|
9418
|
+
he,
|
|
9419
|
+
g
|
|
9417
9420
|
), Oe = va(
|
|
9418
|
-
`https://image.
|
|
9421
|
+
`https://image.feedme.cc/business/${o.currentBusiness.value._id}/${Te.imagePath}`
|
|
9419
9422
|
);
|
|
9420
9423
|
$(), u.value.layout.sidePanel = {
|
|
9421
9424
|
url: Oe,
|
|
@@ -9429,32 +9432,32 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9429
9432
|
}
|
|
9430
9433
|
}, Ct = re(!1), ht = ee(
|
|
9431
9434
|
() => ({ colors: r.brandkit.colors })
|
|
9432
|
-
),
|
|
9435
|
+
), mt = (g, y) => y.split(".").reduce(
|
|
9433
9436
|
(M, K) => M && typeof M == "object" ? M[K] : void 0,
|
|
9434
|
-
|
|
9435
|
-
), Zt = (
|
|
9437
|
+
g
|
|
9438
|
+
), Zt = (g, y, M) => {
|
|
9436
9439
|
const K = y.split(".");
|
|
9437
|
-
let
|
|
9440
|
+
let he = g;
|
|
9438
9441
|
K.forEach((Te, Oe) => {
|
|
9439
9442
|
if (Oe === K.length - 1) {
|
|
9440
|
-
|
|
9443
|
+
he[Te] = M;
|
|
9441
9444
|
return;
|
|
9442
9445
|
}
|
|
9443
|
-
|
|
9446
|
+
he[Te] = he[Te] ?? {}, he = he[Te];
|
|
9444
9447
|
});
|
|
9445
|
-
}, Jt = (
|
|
9446
|
-
if (!
|
|
9448
|
+
}, Jt = (g) => {
|
|
9449
|
+
if (!g) return;
|
|
9447
9450
|
const y = {};
|
|
9448
9451
|
return r.colorFields.forEach((M) => {
|
|
9449
|
-
const K =
|
|
9452
|
+
const K = mt(g, M.key);
|
|
9450
9453
|
K !== void 0 && Zt(y, M.key, K);
|
|
9451
9454
|
}), Object.keys(y).length ? y : void 0;
|
|
9452
9455
|
}, _r = ee(() => {
|
|
9453
|
-
const
|
|
9454
|
-
return r.colorFields.reduce((y, M) => y + (
|
|
9455
|
-
}), Ur = (
|
|
9456
|
-
if (!
|
|
9457
|
-
const y = Jt(
|
|
9456
|
+
const g = u.value.brandkitOverride ?? {};
|
|
9457
|
+
return r.colorFields.reduce((y, M) => y + (mt(g, M.key) !== void 0 ? 1 : 0), 0);
|
|
9458
|
+
}), Ur = (g) => {
|
|
9459
|
+
if (!c.value) return;
|
|
9460
|
+
const y = Jt(g);
|
|
9458
9461
|
y ? u.value.brandkitOverride = y : delete u.value.brandkitOverride;
|
|
9459
9462
|
}, S = ee(() => [
|
|
9460
9463
|
{ label: n("brand.brandkit.ods.groupByStatus"), value: "status" },
|
|
@@ -9481,30 +9484,30 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9481
9484
|
]), ze = ee(() => [
|
|
9482
9485
|
{ label: n("brand.brandkit.ods.footerModeFeedme"), value: "feedme" },
|
|
9483
9486
|
{ label: n("brand.brandkit.ods.footerModeSettingsIcon"), value: "settingsIcon" }
|
|
9484
|
-
]),
|
|
9487
|
+
]), gt = re(null), Ke = re(1);
|
|
9485
9488
|
let Se = null;
|
|
9486
9489
|
const ut = ee(
|
|
9487
9490
|
() => "https://v2-dev.feedme-ods.pages.dev/".trim() ?? ""
|
|
9488
|
-
), _t = (
|
|
9489
|
-
if (!
|
|
9491
|
+
), _t = (g) => {
|
|
9492
|
+
if (!g.startsWith("/") || !ut.value) return g;
|
|
9490
9493
|
try {
|
|
9491
|
-
return new URL(
|
|
9494
|
+
return new URL(g, ut.value).toString();
|
|
9492
9495
|
} catch {
|
|
9493
|
-
return
|
|
9496
|
+
return g;
|
|
9494
9497
|
}
|
|
9495
|
-
}, Kt = (
|
|
9496
|
-
const y = new TextEncoder().encode(
|
|
9498
|
+
}, Kt = (g) => {
|
|
9499
|
+
const y = new TextEncoder().encode(g), M = Array.from(
|
|
9497
9500
|
y,
|
|
9498
9501
|
(K) => String.fromCharCode(K)
|
|
9499
9502
|
).join("");
|
|
9500
9503
|
return window.btoa(M).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "");
|
|
9501
9504
|
}, Qt = ee(() => {
|
|
9502
|
-
const
|
|
9503
|
-
if (!
|
|
9505
|
+
const g = u.value.brandkitOverride;
|
|
9506
|
+
if (!g) return;
|
|
9504
9507
|
const y = {};
|
|
9505
9508
|
return r.colorFields.forEach((M) => {
|
|
9506
|
-
const K =
|
|
9507
|
-
K !== void 0 && K !==
|
|
9509
|
+
const K = mt(g, M.key);
|
|
9510
|
+
K !== void 0 && K !== mt(r.brandkit, M.key) && Zt(y, M.key, K);
|
|
9508
9511
|
}), Object.keys(y).length ? y : void 0;
|
|
9509
9512
|
}), er = ee(() => ({
|
|
9510
9513
|
...r.brandkit,
|
|
@@ -9519,48 +9522,48 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9519
9522
|
})), Qe = ee(() => {
|
|
9520
9523
|
if (!ut.value) return "";
|
|
9521
9524
|
try {
|
|
9522
|
-
const
|
|
9523
|
-
return
|
|
9525
|
+
const g = new URL(ut.value, window.location.origin);
|
|
9526
|
+
return g.searchParams.set("preview", "1"), g.searchParams.set(
|
|
9524
9527
|
"brandKit",
|
|
9525
9528
|
Kt(JSON.stringify(er.value))
|
|
9526
|
-
),
|
|
9529
|
+
), g.toString();
|
|
9527
9530
|
} catch {
|
|
9528
9531
|
return "";
|
|
9529
9532
|
}
|
|
9530
9533
|
}), tr = () => {
|
|
9531
9534
|
Qe.value && window.open(Qe.value, "_blank", "noopener,noreferrer");
|
|
9532
9535
|
}, Ut = () => {
|
|
9533
|
-
const
|
|
9534
|
-
if (!
|
|
9536
|
+
const g = gt.value;
|
|
9537
|
+
if (!g) {
|
|
9535
9538
|
Ke.value = 1;
|
|
9536
9539
|
return;
|
|
9537
9540
|
}
|
|
9538
|
-
const y =
|
|
9541
|
+
const y = g.clientWidth / cr, M = g.clientHeight / pr;
|
|
9539
9542
|
Ke.value = Math.min(y, M, 1);
|
|
9540
9543
|
};
|
|
9541
9544
|
vt(
|
|
9542
|
-
|
|
9543
|
-
(
|
|
9544
|
-
Se == null || Se.disconnect(), Se = null,
|
|
9545
|
+
gt,
|
|
9546
|
+
(g) => {
|
|
9547
|
+
Se == null || Se.disconnect(), Se = null, g && (Se = new ResizeObserver(() => Ut()), Se.observe(g), Ut());
|
|
9545
9548
|
},
|
|
9546
9549
|
{ flush: "post" }
|
|
9547
9550
|
), vt(
|
|
9548
9551
|
() => r.modelValue,
|
|
9549
|
-
(
|
|
9550
|
-
|
|
9552
|
+
(g) => {
|
|
9553
|
+
g && (Ze(), wt());
|
|
9551
9554
|
}
|
|
9552
9555
|
);
|
|
9553
9556
|
const Et = () => {
|
|
9554
9557
|
Se == null || Se.disconnect(), Se = null, a("cancel"), p.value = !1;
|
|
9555
9558
|
}, rr = () => {
|
|
9556
9559
|
Se == null || Se.disconnect(), Se = null;
|
|
9557
|
-
const
|
|
9558
|
-
|
|
9559
|
-
const y = Jt(
|
|
9560
|
-
y ?
|
|
9560
|
+
const g = JSON.parse(JSON.stringify(u.value));
|
|
9561
|
+
g.display || (g.display = A()), g.layout || (g.layout = JSON.parse(JSON.stringify(ie[0].layout)));
|
|
9562
|
+
const y = Jt(g.brandkitOverride);
|
|
9563
|
+
y ? g.brandkitOverride = y : delete g.brandkitOverride, a("save", g), p.value = !1;
|
|
9561
9564
|
};
|
|
9562
|
-
return (
|
|
9563
|
-
const M = se("FmButton"), K = se("FmTextField"),
|
|
9565
|
+
return (g, y) => {
|
|
9566
|
+
const M = se("FmButton"), K = se("FmTextField"), he = se("FmSwitch"), Te = se("FmIcon"), Oe = se("FmButtonGroup"), Rt = se("FmStepperField"), Ge = se("FmRadio"), Dt = se("FmDropField");
|
|
9564
9567
|
return R(), P(We, null, [
|
|
9565
9568
|
(R(), Le(Jn, { to: "body" }, [
|
|
9566
9569
|
x(pn, { name: "fade" }, {
|
|
@@ -9574,8 +9577,8 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9574
9577
|
tabindex: "-1",
|
|
9575
9578
|
onKeyup: Kn(Et, ["esc"])
|
|
9576
9579
|
}, [
|
|
9577
|
-
|
|
9578
|
-
|
|
9580
|
+
d("div", Ed, [
|
|
9581
|
+
d("p", Rd, k(v(n)("brand.brandkit.ods.odsConfiguration")) + k(u.value.label ? ` - ${u.value.label}` : ""), 1),
|
|
9579
9582
|
x(M, {
|
|
9580
9583
|
label: v(n)("brand.common.cancel"),
|
|
9581
9584
|
variant: "tertiary",
|
|
@@ -9587,20 +9590,20 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9587
9590
|
onClick: rr
|
|
9588
9591
|
}, null, 8, ["label"])
|
|
9589
9592
|
]),
|
|
9590
|
-
|
|
9591
|
-
|
|
9592
|
-
|
|
9593
|
-
|
|
9593
|
+
d("div", Dd, [
|
|
9594
|
+
d("div", Ld, [
|
|
9595
|
+
d("div", Pd, [
|
|
9596
|
+
d("div", Fd, [
|
|
9594
9597
|
x(K, {
|
|
9595
9598
|
modelValue: u.value.label,
|
|
9596
|
-
"onUpdate:modelValue": y[0] || (y[0] = (
|
|
9599
|
+
"onUpdate:modelValue": y[0] || (y[0] = (F) => u.value.label = F),
|
|
9597
9600
|
label: v(n)("brand.brandkit.ods.label"),
|
|
9598
9601
|
placeholder: "e.g. Default, Flagship, Express"
|
|
9599
9602
|
}, null, 8, ["modelValue", "label"]),
|
|
9600
|
-
|
|
9601
|
-
x(
|
|
9603
|
+
d("div", Id, [
|
|
9604
|
+
x(he, {
|
|
9602
9605
|
modelValue: u.value.isDefault,
|
|
9603
|
-
"onUpdate:modelValue": y[1] || (y[1] = (
|
|
9606
|
+
"onUpdate:modelValue": y[1] || (y[1] = (F) => u.value.isDefault = F),
|
|
9604
9607
|
label: v(n)("brand.brandkit.ods.defaultConfiguration")
|
|
9605
9608
|
}, null, 8, ["modelValue", "label"])
|
|
9606
9609
|
])
|
|
@@ -9611,23 +9614,23 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9611
9614
|
size: "sm",
|
|
9612
9615
|
class: "text-fm-color-warning-500 flex-shrink-0 mt-2"
|
|
9613
9616
|
}),
|
|
9614
|
-
|
|
9617
|
+
d("span", Ad, k(v(n)("brand.brandkit.ods.defaultWarning")), 1)
|
|
9615
9618
|
])) : j("", !0),
|
|
9616
9619
|
u.value.isDefault ? (R(), P("div", Nd, k(v(n)("brand.brandkit.ods.restaurantInfo")), 1)) : (R(), P("div", Md, [
|
|
9617
9620
|
x(v(to), {
|
|
9618
9621
|
modelValue: O.value,
|
|
9619
|
-
"onUpdate:modelValue": y[2] || (y[2] = (
|
|
9622
|
+
"onUpdate:modelValue": y[2] || (y[2] = (F) => O.value = F),
|
|
9620
9623
|
multiple: "",
|
|
9621
9624
|
"managable-only": !1
|
|
9622
9625
|
}, null, 8, ["modelValue"])
|
|
9623
9626
|
]))
|
|
9624
9627
|
]),
|
|
9625
|
-
|
|
9626
|
-
|
|
9627
|
-
|
|
9628
|
-
|
|
9629
|
-
|
|
9630
|
-
|
|
9628
|
+
d("div", Gd, [
|
|
9629
|
+
d("div", $d, [
|
|
9630
|
+
d("div", Hd, [
|
|
9631
|
+
d("div", Vd, [
|
|
9632
|
+
d("div", zd, [
|
|
9633
|
+
d("div", Wd, [
|
|
9631
9634
|
x(Te, {
|
|
9632
9635
|
name: "dashboard_customize",
|
|
9633
9636
|
class: "text-fm-color-typo-secondary",
|
|
@@ -9635,24 +9638,24 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9635
9638
|
outline: ""
|
|
9636
9639
|
})
|
|
9637
9640
|
]),
|
|
9638
|
-
|
|
9641
|
+
d("div", jd, k(v(n)("brand.brandkit.ods.selectPreset")), 1)
|
|
9639
9642
|
]),
|
|
9640
|
-
|
|
9643
|
+
d("div", qd, k(v(n)("brand.brandkit.ods.selectPresetDescription")), 1)
|
|
9641
9644
|
]),
|
|
9642
|
-
|
|
9643
|
-
|
|
9645
|
+
d("div", Xd, [
|
|
9646
|
+
d("div", Yd, [
|
|
9644
9647
|
x(Oe, {
|
|
9645
|
-
items:
|
|
9646
|
-
"model-value":
|
|
9647
|
-
"onUpdate:modelValue": y[3] || (y[3] = (
|
|
9648
|
+
items: me.value,
|
|
9649
|
+
"model-value": me.value.find((F) => F.value === ge.value) ?? null,
|
|
9650
|
+
"onUpdate:modelValue": y[3] || (y[3] = (F) => ve(F.value))
|
|
9648
9651
|
}, null, 8, ["items", "model-value"])
|
|
9649
9652
|
])
|
|
9650
9653
|
])
|
|
9651
9654
|
]),
|
|
9652
|
-
|
|
9653
|
-
|
|
9654
|
-
|
|
9655
|
-
|
|
9655
|
+
c.value ? (R(), P("div", Zd, [
|
|
9656
|
+
d("div", Jd, [
|
|
9657
|
+
d("div", Kd, [
|
|
9658
|
+
d("div", Qd, [
|
|
9656
9659
|
x(Te, {
|
|
9657
9660
|
name: "monitor",
|
|
9658
9661
|
class: "text-fm-color-secondary-500",
|
|
@@ -9660,225 +9663,241 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9660
9663
|
outline: ""
|
|
9661
9664
|
})
|
|
9662
9665
|
]),
|
|
9663
|
-
|
|
9666
|
+
d("div", ec, k(v(n)("brand.brandkit.ods.displaySettings")), 1)
|
|
9664
9667
|
]),
|
|
9665
|
-
|
|
9668
|
+
d("div", tc, k(v(n)("brand.brandkit.ods.displaySettingsDescription")), 1)
|
|
9666
9669
|
]),
|
|
9667
|
-
|
|
9668
|
-
|
|
9670
|
+
d("div", rc, [
|
|
9671
|
+
d("div", ac, [
|
|
9669
9672
|
x(M, {
|
|
9670
9673
|
icon: "autorenew",
|
|
9671
9674
|
label: v(n)("brand.common.resetToDefault"),
|
|
9672
9675
|
variant: "plain",
|
|
9673
|
-
disabled: !
|
|
9676
|
+
disabled: !c.value,
|
|
9674
9677
|
onClick: J
|
|
9675
9678
|
}, null, 8, ["label", "disabled"])
|
|
9676
9679
|
])
|
|
9677
9680
|
]),
|
|
9678
|
-
|
|
9679
|
-
|
|
9680
|
-
|
|
9681
|
-
|
|
9682
|
-
|
|
9681
|
+
d("div", nc, [
|
|
9682
|
+
d("div", oc, [
|
|
9683
|
+
d("div", null, [
|
|
9684
|
+
d("div", sc, k(v(n)("brand.brandkit.ods.colorOverride")), 1),
|
|
9685
|
+
d("div", ic, k(v(n)("brand.brandkit.ods.colorOverrideConfigDescription")), 1)
|
|
9683
9686
|
]),
|
|
9684
|
-
|
|
9685
|
-
|
|
9687
|
+
d("div", lc, [
|
|
9688
|
+
d("div", uc, k(v(n)("brand.brandkit.ods.colorsOverridden", { count: _r.value })), 1),
|
|
9686
9689
|
x(M, {
|
|
9687
9690
|
variant: "secondary",
|
|
9688
9691
|
icon: "palette",
|
|
9689
9692
|
label: v(n)("brand.brandkit.ods.configure"),
|
|
9690
|
-
disabled: !
|
|
9691
|
-
onClick: y[4] || (y[4] = (
|
|
9693
|
+
disabled: !c.value,
|
|
9694
|
+
onClick: y[4] || (y[4] = (F) => c.value && (Ct.value = !0))
|
|
9692
9695
|
}, null, 8, ["label", "disabled"])
|
|
9693
9696
|
])
|
|
9694
9697
|
])
|
|
9695
9698
|
]),
|
|
9696
|
-
|
|
9697
|
-
|
|
9698
|
-
|
|
9699
|
-
|
|
9700
|
-
|
|
9699
|
+
d("div", dc, [
|
|
9700
|
+
d("div", cc, [
|
|
9701
|
+
d("div", null, [
|
|
9702
|
+
d("div", pc, k(v(n)("brand.brandkit.ods.groupOrdersBy")), 1),
|
|
9703
|
+
d("div", vc, k(v(n)("brand.brandkit.ods.groupOrdersByDescription")), 1)
|
|
9701
9704
|
]),
|
|
9702
|
-
|
|
9705
|
+
d("div", fc, [
|
|
9703
9706
|
x(Oe, {
|
|
9704
9707
|
items: S.value,
|
|
9705
|
-
"model-value": S.value.find((
|
|
9706
|
-
disabled: !
|
|
9707
|
-
"onUpdate:modelValue": y[5] || (y[5] = (
|
|
9708
|
+
"model-value": S.value.find((F) => F.value === L.value.groupBy) ?? S.value[0],
|
|
9709
|
+
disabled: !c.value,
|
|
9710
|
+
"onUpdate:modelValue": y[5] || (y[5] = (F) => N("groupBy", F.value))
|
|
9708
9711
|
}, null, 8, ["items", "model-value", "disabled"])
|
|
9709
9712
|
])
|
|
9710
9713
|
])
|
|
9711
9714
|
]),
|
|
9712
|
-
|
|
9713
|
-
|
|
9714
|
-
|
|
9715
|
-
|
|
9716
|
-
|
|
9715
|
+
d("div", hc, [
|
|
9716
|
+
d("div", mc, [
|
|
9717
|
+
d("div", null, [
|
|
9718
|
+
d("div", gc, k(v(n)("brand.brandkit.ods.showCurrentOrder")), 1),
|
|
9719
|
+
d("div", yc, k(v(n)("brand.brandkit.ods.showCurrentOrderDescription")), 1)
|
|
9717
9720
|
]),
|
|
9718
|
-
|
|
9719
|
-
x(
|
|
9721
|
+
d("div", bc, [
|
|
9722
|
+
x(he, {
|
|
9720
9723
|
label: v(n)("brand.brandkit.ods.showCurrentOrder"),
|
|
9721
9724
|
"model-value": ((dt = L.value.currentOrder) == null ? void 0 : dt.enabled) ?? !0,
|
|
9722
|
-
disabled: !
|
|
9723
|
-
"onUpdate:modelValue": y[6] || (y[6] = (
|
|
9725
|
+
disabled: !c.value,
|
|
9726
|
+
"onUpdate:modelValue": y[6] || (y[6] = (F) => G(F))
|
|
9727
|
+
}, null, 8, ["label", "model-value", "disabled"])
|
|
9728
|
+
])
|
|
9729
|
+
])
|
|
9730
|
+
]),
|
|
9731
|
+
d("div", kc, [
|
|
9732
|
+
d("div", xc, [
|
|
9733
|
+
d("div", null, [
|
|
9734
|
+
d("div", Sc, k(v(n)("brand.brandkit.ods.hideCollectedOrders")), 1),
|
|
9735
|
+
d("div", Tc, k(v(n)("brand.brandkit.ods.hideCollectedOrdersDescription")), 1)
|
|
9736
|
+
]),
|
|
9737
|
+
d("div", wc, [
|
|
9738
|
+
x(he, {
|
|
9739
|
+
label: v(n)("brand.brandkit.ods.hideCollectedOrders"),
|
|
9740
|
+
"model-value": L.value.hideCompletedOrders ?? !1,
|
|
9741
|
+
disabled: !c.value,
|
|
9742
|
+
"onUpdate:modelValue": y[7] || (y[7] = (F) => N("hideCompletedOrders", F))
|
|
9724
9743
|
}, null, 8, ["label", "model-value", "disabled"])
|
|
9725
9744
|
])
|
|
9726
9745
|
])
|
|
9727
9746
|
]),
|
|
9728
|
-
L.value.groupBy === "status" ? (R(), P("div",
|
|
9729
|
-
|
|
9730
|
-
|
|
9731
|
-
|
|
9732
|
-
|
|
9747
|
+
L.value.groupBy === "status" ? (R(), P("div", Oc, [
|
|
9748
|
+
d("div", Cc, [
|
|
9749
|
+
d("div", null, [
|
|
9750
|
+
d("div", _c, k(v(n)("brand.brandkit.ods.statusBoardLayout")), 1),
|
|
9751
|
+
d("div", Uc, k(v(n)("brand.brandkit.ods.statusBoardLayoutDescription")), 1)
|
|
9733
9752
|
]),
|
|
9734
|
-
|
|
9753
|
+
d("div", Ec, [
|
|
9735
9754
|
x(Oe, {
|
|
9736
9755
|
items: h.value,
|
|
9737
|
-
"model-value": h.value.find((
|
|
9738
|
-
disabled: !
|
|
9739
|
-
"onUpdate:modelValue": y[
|
|
9756
|
+
"model-value": h.value.find((F) => F.value === L.value.statusLayout) ?? h.value[0],
|
|
9757
|
+
disabled: !c.value,
|
|
9758
|
+
"onUpdate:modelValue": y[8] || (y[8] = (F) => N("statusLayout", F.value))
|
|
9740
9759
|
}, null, 8, ["items", "model-value", "disabled"])
|
|
9741
9760
|
])
|
|
9742
9761
|
])
|
|
9743
9762
|
])) : j("", !0),
|
|
9744
|
-
L.value.groupBy === "status" && L.value.statusLayout !== "vertical" ? (R(), P("div",
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9763
|
+
L.value.groupBy === "status" && L.value.statusLayout !== "vertical" ? (R(), P("div", Rc, [
|
|
9764
|
+
d("div", Dc, [
|
|
9765
|
+
d("div", null, [
|
|
9766
|
+
d("div", Lc, k(v(n)("brand.brandkit.ods.statusColumnCount")), 1),
|
|
9767
|
+
d("div", Pc, k(v(n)("brand.brandkit.ods.statusColumnCountDescription")), 1)
|
|
9749
9768
|
]),
|
|
9750
|
-
|
|
9769
|
+
d("div", Fc, [
|
|
9751
9770
|
x(Oe, {
|
|
9752
9771
|
items: H,
|
|
9753
|
-
"model-value": H.find((
|
|
9754
|
-
disabled: !
|
|
9755
|
-
"onUpdate:modelValue": y[
|
|
9772
|
+
"model-value": H.find((F) => F.value === L.value.statusColumnCount) ?? H[1],
|
|
9773
|
+
disabled: !c.value,
|
|
9774
|
+
"onUpdate:modelValue": y[9] || (y[9] = (F) => N("statusColumnCount", F.value))
|
|
9756
9775
|
}, null, 8, ["model-value", "disabled"])
|
|
9757
9776
|
])
|
|
9758
9777
|
])
|
|
9759
9778
|
])) : j("", !0),
|
|
9760
|
-
L.value.groupBy === "status" ? (R(), P("div",
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9779
|
+
L.value.groupBy === "status" ? (R(), P("div", Ic, [
|
|
9780
|
+
d("div", Bc, [
|
|
9781
|
+
d("div", null, [
|
|
9782
|
+
d("div", Ac, k(v(n)("brand.brandkit.ods.slidingInterval")), 1),
|
|
9783
|
+
d("div", Mc, k(v(n)("brand.brandkit.ods.slidingIntervalDescription")), 1)
|
|
9765
9784
|
]),
|
|
9766
|
-
|
|
9785
|
+
d("div", Nc, [
|
|
9767
9786
|
x(Rt, {
|
|
9768
9787
|
"model-value": L.value.statusSlidingPeriod / 1e3,
|
|
9769
9788
|
label: "Sliding interval (seconds)",
|
|
9770
|
-
disabled: !
|
|
9789
|
+
disabled: !c.value,
|
|
9771
9790
|
min: 1,
|
|
9772
9791
|
max: 60,
|
|
9773
9792
|
step: 1,
|
|
9774
9793
|
"append-text": "s",
|
|
9775
9794
|
"max-fraction-digits": 0,
|
|
9776
|
-
"onUpdate:modelValue": y[
|
|
9795
|
+
"onUpdate:modelValue": y[10] || (y[10] = (F) => N("statusSlidingPeriod", Math.max(1e3, Math.min(6e4, (Number(F) || 10) * 1e3))))
|
|
9777
9796
|
}, null, 8, ["model-value", "disabled"])
|
|
9778
9797
|
])
|
|
9779
9798
|
])
|
|
9780
9799
|
])) : j("", !0),
|
|
9781
|
-
L.value.groupBy === "status" ? (R(), P("div",
|
|
9782
|
-
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9800
|
+
L.value.groupBy === "status" ? (R(), P("div", Gc, [
|
|
9801
|
+
d("div", $c, [
|
|
9802
|
+
d("div", null, [
|
|
9803
|
+
d("div", Hc, k(v(n)("brand.brandkit.ods.showDeliveryIcons")), 1),
|
|
9804
|
+
d("div", Vc, k(v(n)("brand.brandkit.ods.showDeliveryIconsDescription")), 1)
|
|
9786
9805
|
]),
|
|
9787
|
-
|
|
9788
|
-
x(
|
|
9806
|
+
d("div", zc, [
|
|
9807
|
+
x(he, {
|
|
9789
9808
|
label: v(n)("brand.brandkit.ods.showDeliveryIcons"),
|
|
9790
9809
|
"model-value": L.value.showDeliveryIcons,
|
|
9791
|
-
disabled: !
|
|
9792
|
-
"onUpdate:modelValue": y[
|
|
9810
|
+
disabled: !c.value,
|
|
9811
|
+
"onUpdate:modelValue": y[11] || (y[11] = (F) => N("showDeliveryIcons", F))
|
|
9793
9812
|
}, null, 8, ["label", "model-value", "disabled"])
|
|
9794
9813
|
])
|
|
9795
9814
|
])
|
|
9796
9815
|
])) : j("", !0),
|
|
9797
|
-
L.value.groupBy === "status" ? (R(), P("div",
|
|
9798
|
-
|
|
9799
|
-
|
|
9800
|
-
|
|
9801
|
-
|
|
9816
|
+
L.value.groupBy === "status" ? (R(), P("div", Wc, [
|
|
9817
|
+
d("div", jc, [
|
|
9818
|
+
d("div", null, [
|
|
9819
|
+
d("div", qc, k(v(n)("brand.brandkit.ods.showOrderCount")), 1),
|
|
9820
|
+
d("div", Xc, k(v(n)("brand.brandkit.ods.showOrderCountDescription")), 1)
|
|
9802
9821
|
]),
|
|
9803
|
-
|
|
9804
|
-
x(
|
|
9822
|
+
d("div", Yc, [
|
|
9823
|
+
x(he, {
|
|
9805
9824
|
label: v(n)("brand.brandkit.ods.showOrderCount"),
|
|
9806
9825
|
"model-value": L.value.showOrderCount,
|
|
9807
|
-
disabled: !
|
|
9808
|
-
"onUpdate:modelValue": y[
|
|
9826
|
+
disabled: !c.value,
|
|
9827
|
+
"onUpdate:modelValue": y[12] || (y[12] = (F) => N("showOrderCount", F))
|
|
9809
9828
|
}, null, 8, ["label", "model-value", "disabled"])
|
|
9810
9829
|
])
|
|
9811
9830
|
])
|
|
9812
9831
|
])) : j("", !0),
|
|
9813
|
-
L.value.groupBy === "status" ? (R(), P("div",
|
|
9814
|
-
|
|
9815
|
-
|
|
9816
|
-
|
|
9817
|
-
|
|
9832
|
+
L.value.groupBy === "status" ? (R(), P("div", Zc, [
|
|
9833
|
+
d("div", Jc, [
|
|
9834
|
+
d("div", null, [
|
|
9835
|
+
d("div", Kc, k(v(n)("brand.brandkit.ods.showEstimatedTime")), 1),
|
|
9836
|
+
d("div", Qc, k(v(n)("brand.brandkit.ods.showEstimatedTimeDescription")), 1)
|
|
9818
9837
|
]),
|
|
9819
|
-
|
|
9820
|
-
x(
|
|
9838
|
+
d("div", ep, [
|
|
9839
|
+
x(he, {
|
|
9821
9840
|
label: v(n)("brand.brandkit.ods.showEstimatedTime"),
|
|
9822
9841
|
"model-value": L.value.showEstimatedTime,
|
|
9823
|
-
disabled: !
|
|
9824
|
-
"onUpdate:modelValue": y[
|
|
9842
|
+
disabled: !c.value,
|
|
9843
|
+
"onUpdate:modelValue": y[13] || (y[13] = (F) => N("showEstimatedTime", F))
|
|
9825
9844
|
}, null, 8, ["label", "model-value", "disabled"])
|
|
9826
9845
|
])
|
|
9827
9846
|
])
|
|
9828
9847
|
])) : j("", !0),
|
|
9829
|
-
L.value.groupBy === "type" ? (R(), P("div",
|
|
9830
|
-
|
|
9831
|
-
|
|
9832
|
-
|
|
9833
|
-
|
|
9848
|
+
L.value.groupBy === "type" ? (R(), P("div", tp, [
|
|
9849
|
+
d("div", rp, [
|
|
9850
|
+
d("div", null, [
|
|
9851
|
+
d("div", ap, k(v(n)("brand.brandkit.ods.showOrderTypeTabs")), 1),
|
|
9852
|
+
d("div", np, k(v(n)("brand.brandkit.ods.showOrderTypeTabsDescription")), 1)
|
|
9834
9853
|
]),
|
|
9835
|
-
|
|
9836
|
-
x(
|
|
9854
|
+
d("div", op, [
|
|
9855
|
+
x(he, {
|
|
9837
9856
|
label: v(n)("brand.brandkit.ods.showOrderTypeTabs"),
|
|
9838
9857
|
"model-value": L.value.showOrderTypeTabs,
|
|
9839
|
-
disabled: !
|
|
9840
|
-
"onUpdate:modelValue": y[
|
|
9858
|
+
disabled: !c.value,
|
|
9859
|
+
"onUpdate:modelValue": y[14] || (y[14] = (F) => N("showOrderTypeTabs", F))
|
|
9841
9860
|
}, null, 8, ["label", "model-value", "disabled"])
|
|
9842
9861
|
])
|
|
9843
9862
|
])
|
|
9844
9863
|
])) : j("", !0),
|
|
9845
|
-
L.value.groupBy !== "status" ? (R(), P("div",
|
|
9846
|
-
|
|
9847
|
-
|
|
9848
|
-
|
|
9849
|
-
|
|
9864
|
+
L.value.groupBy !== "status" ? (R(), P("div", sp, [
|
|
9865
|
+
d("div", ip, [
|
|
9866
|
+
d("div", null, [
|
|
9867
|
+
d("div", lp, k(v(n)("brand.brandkit.ods.showProgressBar")), 1),
|
|
9868
|
+
d("div", up, k(v(n)("brand.brandkit.ods.showProgressBarDescription")), 1)
|
|
9850
9869
|
]),
|
|
9851
|
-
|
|
9852
|
-
x(
|
|
9870
|
+
d("div", dp, [
|
|
9871
|
+
x(he, {
|
|
9853
9872
|
label: v(n)("brand.brandkit.ods.showProgressBar"),
|
|
9854
9873
|
"model-value": L.value.showProgressBar,
|
|
9855
|
-
disabled: !
|
|
9856
|
-
"onUpdate:modelValue": y[
|
|
9874
|
+
disabled: !c.value,
|
|
9875
|
+
"onUpdate:modelValue": y[15] || (y[15] = (F) => N("showProgressBar", F))
|
|
9857
9876
|
}, null, 8, ["label", "model-value", "disabled"])
|
|
9858
9877
|
])
|
|
9859
9878
|
])
|
|
9860
9879
|
])) : j("", !0),
|
|
9861
|
-
v(l) && L.value.groupBy === "status" && L.value.statusLayout === "horizontal" ? (R(), P("div",
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
|
|
9880
|
+
v(l) && L.value.groupBy === "status" && L.value.statusLayout === "horizontal" ? (R(), P("div", cp, [
|
|
9881
|
+
d("div", pp, [
|
|
9882
|
+
d("div", null, [
|
|
9883
|
+
d("div", vp, k(v(n)("brand.brandkit.ods.statusTemplate")), 1),
|
|
9884
|
+
d("div", fp, k(v(n)("brand.brandkit.ods.statusTemplateDescription")), 1)
|
|
9866
9885
|
]),
|
|
9867
|
-
|
|
9886
|
+
d("div", hp, [
|
|
9868
9887
|
x(Oe, {
|
|
9869
9888
|
items: Je.value,
|
|
9870
|
-
"model-value": Je.value.find((
|
|
9871
|
-
disabled: !
|
|
9872
|
-
"onUpdate:modelValue": y[
|
|
9889
|
+
"model-value": Je.value.find((F) => F.value === (L.value.statusTemplate ?? "default")) ?? null,
|
|
9890
|
+
disabled: !c.value,
|
|
9891
|
+
"onUpdate:modelValue": y[16] || (y[16] = (F) => N("statusTemplate", F.value))
|
|
9873
9892
|
}, null, 8, ["items", "model-value", "disabled"])
|
|
9874
9893
|
])
|
|
9875
9894
|
])
|
|
9876
9895
|
])) : j("", !0)
|
|
9877
9896
|
])) : j("", !0),
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9897
|
+
c.value ? (R(), P("div", mp, [
|
|
9898
|
+
d("div", gp, [
|
|
9899
|
+
d("div", yp, [
|
|
9900
|
+
d("div", bp, [
|
|
9882
9901
|
x(Te, {
|
|
9883
9902
|
name: "dashboard",
|
|
9884
9903
|
class: "text-fm-color-primary-500",
|
|
@@ -9886,79 +9905,79 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9886
9905
|
outline: ""
|
|
9887
9906
|
})
|
|
9888
9907
|
]),
|
|
9889
|
-
|
|
9908
|
+
d("div", kp, k(v(n)("brand.brandkit.ods.layoutSettings")), 1)
|
|
9890
9909
|
]),
|
|
9891
|
-
|
|
9910
|
+
d("div", xp, k(v(n)("brand.brandkit.ods.layoutSettingsDescription")), 1)
|
|
9892
9911
|
]),
|
|
9893
|
-
|
|
9894
|
-
|
|
9912
|
+
d("div", Sp, [
|
|
9913
|
+
d("div", Tp, [
|
|
9895
9914
|
x(M, {
|
|
9896
9915
|
icon: "autorenew",
|
|
9897
9916
|
label: v(n)("brand.common.resetToDefault"),
|
|
9898
9917
|
variant: "plain",
|
|
9899
|
-
disabled: !
|
|
9918
|
+
disabled: !c.value,
|
|
9900
9919
|
onClick: de
|
|
9901
9920
|
}, null, 8, ["label", "disabled"])
|
|
9902
9921
|
])
|
|
9903
9922
|
]),
|
|
9904
|
-
|
|
9905
|
-
|
|
9906
|
-
|
|
9907
|
-
|
|
9908
|
-
|
|
9923
|
+
d("div", wp, [
|
|
9924
|
+
d("div", Op, [
|
|
9925
|
+
d("div", null, [
|
|
9926
|
+
d("div", Cp, k(v(n)("brand.brandkit.ods.backgroundImage")), 1),
|
|
9927
|
+
d("div", _p, k(v(n)("brand.brandkit.ods.backgroundImageDescription")), 1)
|
|
9909
9928
|
]),
|
|
9910
|
-
|
|
9911
|
-
|
|
9929
|
+
d("div", Up, [
|
|
9930
|
+
d("div", Ep, [
|
|
9912
9931
|
x(Ge, {
|
|
9913
9932
|
"model-value": X.value,
|
|
9914
9933
|
rules: () => [],
|
|
9915
9934
|
label: v(n)("brand.brandkit.ods.disable"),
|
|
9916
9935
|
value: "disable",
|
|
9917
|
-
disabled: !
|
|
9918
|
-
"onUpdate:modelValue": y[
|
|
9936
|
+
disabled: !c.value,
|
|
9937
|
+
"onUpdate:modelValue": y[17] || (y[17] = () => _e("disable"))
|
|
9919
9938
|
}, null, 8, ["model-value", "label", "disabled"]),
|
|
9920
9939
|
x(Ge, {
|
|
9921
9940
|
"model-value": X.value,
|
|
9922
9941
|
rules: () => [],
|
|
9923
9942
|
label: v(n)("brand.brandkit.ods.defaultImage1"),
|
|
9924
9943
|
value: "default",
|
|
9925
|
-
disabled: !
|
|
9926
|
-
"onUpdate:modelValue": y[
|
|
9944
|
+
disabled: !c.value,
|
|
9945
|
+
"onUpdate:modelValue": y[18] || (y[18] = () => _e("default"))
|
|
9927
9946
|
}, null, 8, ["model-value", "label", "disabled"]),
|
|
9928
9947
|
x(Ge, {
|
|
9929
9948
|
"model-value": X.value,
|
|
9930
9949
|
rules: () => [],
|
|
9931
9950
|
label: v(n)("brand.brandkit.ods.defaultImage2"),
|
|
9932
9951
|
value: "left",
|
|
9933
|
-
disabled: !
|
|
9934
|
-
"onUpdate:modelValue": y[
|
|
9952
|
+
disabled: !c.value,
|
|
9953
|
+
"onUpdate:modelValue": y[19] || (y[19] = () => _e("left"))
|
|
9935
9954
|
}, null, 8, ["model-value", "label", "disabled"]),
|
|
9936
9955
|
x(Ge, {
|
|
9937
9956
|
"model-value": X.value,
|
|
9938
9957
|
rules: () => [],
|
|
9939
9958
|
label: v(n)("brand.brandkit.ods.custom"),
|
|
9940
9959
|
value: "custom",
|
|
9941
|
-
disabled: !
|
|
9942
|
-
"onUpdate:modelValue": y[
|
|
9960
|
+
disabled: !c.value,
|
|
9961
|
+
"onUpdate:modelValue": y[20] || (y[20] = () => _e("custom"))
|
|
9943
9962
|
}, null, 8, ["model-value", "label", "disabled"])
|
|
9944
9963
|
]),
|
|
9945
|
-
X.value !== "disable" && (X.value !== "custom" || Ne.value) ? (R(), P("div",
|
|
9946
|
-
|
|
9947
|
-
|
|
9964
|
+
X.value !== "disable" && (X.value !== "custom" || Ne.value) ? (R(), P("div", Rp, [
|
|
9965
|
+
d("div", Dp, [
|
|
9966
|
+
d("img", {
|
|
9948
9967
|
src: _t(((w = ne.value.background) == null ? void 0 : w.url) ?? ""),
|
|
9949
9968
|
class: "w-full h-full object-contain"
|
|
9950
|
-
}, null, 8,
|
|
9969
|
+
}, null, 8, Lp)
|
|
9951
9970
|
]),
|
|
9952
|
-
X.value === "custom" ? (R(), P("div",
|
|
9953
|
-
|
|
9971
|
+
X.value === "custom" ? (R(), P("div", Pp, [
|
|
9972
|
+
d("input", {
|
|
9954
9973
|
ref_key: "backgroundFileInput",
|
|
9955
9974
|
ref: fe,
|
|
9956
9975
|
type: "file",
|
|
9957
9976
|
accept: "image/*",
|
|
9958
9977
|
class: "hidden",
|
|
9959
|
-
onChange: y[
|
|
9978
|
+
onChange: y[21] || (y[21] = (F) => {
|
|
9960
9979
|
var Lt;
|
|
9961
|
-
const Ce = (Lt =
|
|
9980
|
+
const Ce = (Lt = F.target.files) == null ? void 0 : Lt[0];
|
|
9962
9981
|
Ce && De(Ce), fe.value && (fe.value.value = "");
|
|
9963
9982
|
})
|
|
9964
9983
|
}, null, 544),
|
|
@@ -9966,10 +9985,10 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9966
9985
|
variant: "secondary",
|
|
9967
9986
|
icon: "upload",
|
|
9968
9987
|
label: v(n)("brand.brandkit.ods.changeImage"),
|
|
9969
|
-
disabled: ae.value || !
|
|
9970
|
-
onClick: y[
|
|
9988
|
+
disabled: ae.value || !c.value,
|
|
9989
|
+
onClick: y[22] || (y[22] = (F) => {
|
|
9971
9990
|
var Ce;
|
|
9972
|
-
return
|
|
9991
|
+
return c.value && ((Ce = fe.value) == null ? void 0 : Ce.click());
|
|
9973
9992
|
})
|
|
9974
9993
|
}, null, 8, ["label", "disabled"])
|
|
9975
9994
|
])) : j("", !0)
|
|
@@ -9979,71 +9998,71 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
9979
9998
|
class: "h-[120px] w-full",
|
|
9980
9999
|
label: "Upload custom background image",
|
|
9981
10000
|
accept: "image/*",
|
|
9982
|
-
disabled: ae.value || !
|
|
10001
|
+
disabled: ae.value || !c.value,
|
|
9983
10002
|
onFileUpload: De
|
|
9984
10003
|
}, null, 8, ["disabled"])) : j("", !0),
|
|
9985
|
-
ae.value ? (R(), P("div",
|
|
9986
|
-
|
|
10004
|
+
ae.value ? (R(), P("div", Fp, [
|
|
10005
|
+
d("div", Ip, k(v(n)("brand.brandkit.ods.uploading")), 1)
|
|
9987
10006
|
])) : j("", !0),
|
|
9988
|
-
X.value === "disable" ? (R(), P("div",
|
|
9989
|
-
|
|
10007
|
+
X.value === "disable" ? (R(), P("div", Bp, [
|
|
10008
|
+
d("div", Ap, k(v(n)("brand.brandkit.ods.backgroundDisabled")), 1)
|
|
9990
10009
|
])) : j("", !0)
|
|
9991
10010
|
])
|
|
9992
10011
|
])
|
|
9993
10012
|
]),
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
10013
|
+
d("div", Mp, [
|
|
10014
|
+
d("div", Np, [
|
|
10015
|
+
d("div", null, [
|
|
10016
|
+
d("div", Gp, k(v(n)("brand.brandkit.ods.sidePanelImage")), 1),
|
|
10017
|
+
d("div", $p, k(v(n)("brand.brandkit.ods.sidePanelImageDescription")), 1)
|
|
9999
10018
|
]),
|
|
10000
|
-
|
|
10001
|
-
|
|
10019
|
+
d("div", Hp, [
|
|
10020
|
+
d("div", Vp, [
|
|
10002
10021
|
x(Ge, {
|
|
10003
10022
|
"model-value": xe.value,
|
|
10004
10023
|
rules: () => [],
|
|
10005
10024
|
label: v(n)("brand.brandkit.ods.disable"),
|
|
10006
10025
|
value: "disable",
|
|
10007
|
-
disabled: !
|
|
10008
|
-
"onUpdate:modelValue": y[
|
|
10026
|
+
disabled: !c.value,
|
|
10027
|
+
"onUpdate:modelValue": y[23] || (y[23] = () => Ot("disable"))
|
|
10009
10028
|
}, null, 8, ["model-value", "label", "disabled"]),
|
|
10010
10029
|
x(Ge, {
|
|
10011
10030
|
"model-value": xe.value,
|
|
10012
10031
|
rules: () => [],
|
|
10013
10032
|
label: v(n)("brand.brandkit.ods.defaultImage"),
|
|
10014
10033
|
value: "default",
|
|
10015
|
-
disabled: !
|
|
10016
|
-
"onUpdate:modelValue": y[
|
|
10034
|
+
disabled: !c.value,
|
|
10035
|
+
"onUpdate:modelValue": y[24] || (y[24] = () => Ot("default"))
|
|
10017
10036
|
}, null, 8, ["model-value", "label", "disabled"]),
|
|
10018
10037
|
x(Ge, {
|
|
10019
10038
|
"model-value": xe.value,
|
|
10020
10039
|
rules: () => [],
|
|
10021
10040
|
label: v(n)("brand.brandkit.ods.customImage"),
|
|
10022
10041
|
value: "custom",
|
|
10023
|
-
disabled: !
|
|
10024
|
-
"onUpdate:modelValue": y[
|
|
10042
|
+
disabled: !c.value,
|
|
10043
|
+
"onUpdate:modelValue": y[25] || (y[25] = () => Ot("custom"))
|
|
10025
10044
|
}, null, 8, ["model-value", "label", "disabled"])
|
|
10026
10045
|
]),
|
|
10027
|
-
xe.value === "disable" ? (R(), P("div",
|
|
10028
|
-
|
|
10046
|
+
xe.value === "disable" ? (R(), P("div", zp, [
|
|
10047
|
+
d("div", Wp, k(v(n)("brand.brandkit.ods.sidePanelDisabled")), 1)
|
|
10029
10048
|
])) : (R(), P(We, { key: 1 }, [
|
|
10030
|
-
xe.value !== "custom" || Xt.value ? (R(), P("div",
|
|
10031
|
-
|
|
10032
|
-
|
|
10049
|
+
xe.value !== "custom" || Xt.value ? (R(), P("div", jp, [
|
|
10050
|
+
d("div", qp, [
|
|
10051
|
+
d("img", {
|
|
10033
10052
|
src: _t(((Z = ne.value.sidePanel) == null ? void 0 : Z.url) ?? ""),
|
|
10034
10053
|
class: "w-full h-full object-contain"
|
|
10035
|
-
}, null, 8,
|
|
10054
|
+
}, null, 8, Xp)
|
|
10036
10055
|
]),
|
|
10037
|
-
xe.value === "custom" ? (R(), P("div",
|
|
10038
|
-
|
|
10056
|
+
xe.value === "custom" ? (R(), P("div", Yp, [
|
|
10057
|
+
d("input", {
|
|
10039
10058
|
ref_key: "sidePanelFileInput",
|
|
10040
10059
|
ref: we,
|
|
10041
10060
|
type: "file",
|
|
10042
10061
|
accept: "image/*",
|
|
10043
10062
|
class: "hidden",
|
|
10044
|
-
onChange: y[
|
|
10063
|
+
onChange: y[26] || (y[26] = (F) => {
|
|
10045
10064
|
var Lt;
|
|
10046
|
-
const Ce = (Lt =
|
|
10065
|
+
const Ce = (Lt = F.target.files) == null ? void 0 : Lt[0];
|
|
10047
10066
|
Ce && Yt(Ce), we.value && (we.value.value = "");
|
|
10048
10067
|
})
|
|
10049
10068
|
}, null, 544),
|
|
@@ -10051,10 +10070,10 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10051
10070
|
variant: "secondary",
|
|
10052
10071
|
icon: "upload",
|
|
10053
10072
|
label: v(n)("brand.brandkit.ods.changeImage"),
|
|
10054
|
-
disabled: Ve.value || !
|
|
10055
|
-
onClick: y[
|
|
10073
|
+
disabled: Ve.value || !c.value,
|
|
10074
|
+
onClick: y[27] || (y[27] = (F) => {
|
|
10056
10075
|
var Ce;
|
|
10057
|
-
return
|
|
10076
|
+
return c.value && ((Ce = we.value) == null ? void 0 : Ce.click());
|
|
10058
10077
|
})
|
|
10059
10078
|
}, null, 8, ["label", "disabled"])
|
|
10060
10079
|
])) : j("", !0)
|
|
@@ -10064,36 +10083,36 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10064
10083
|
class: "h-[120px] w-full",
|
|
10065
10084
|
label: "Upload custom side panel image",
|
|
10066
10085
|
accept: "image/*",
|
|
10067
|
-
disabled: Ve.value || !
|
|
10086
|
+
disabled: Ve.value || !c.value,
|
|
10068
10087
|
onFileUpload: Yt
|
|
10069
10088
|
}, null, 8, ["disabled"])) : j("", !0),
|
|
10070
|
-
Ve.value ? (R(), P("div",
|
|
10071
|
-
|
|
10089
|
+
Ve.value ? (R(), P("div", Zp, [
|
|
10090
|
+
d("div", Jp, k(v(n)("brand.brandkit.ods.uploading")), 1)
|
|
10072
10091
|
])) : j("", !0),
|
|
10073
|
-
(ce = u.value.layout) != null && ce.sidePanel ? (R(), P("div",
|
|
10074
|
-
|
|
10075
|
-
|
|
10092
|
+
(ce = u.value.layout) != null && ce.sidePanel ? (R(), P("div", Kp, [
|
|
10093
|
+
d("div", null, [
|
|
10094
|
+
d("div", Qp, k(v(n)("brand.brandkit.ods.position")), 1),
|
|
10076
10095
|
x(Oe, {
|
|
10077
10096
|
items: ye.value,
|
|
10078
|
-
"model-value": ye.value.find((
|
|
10097
|
+
"model-value": ye.value.find((F) => {
|
|
10079
10098
|
var Ce;
|
|
10080
|
-
return
|
|
10099
|
+
return F.value === ((Ce = ne.value.sidePanel) == null ? void 0 : Ce.position);
|
|
10081
10100
|
}) ?? ye.value[0],
|
|
10082
|
-
disabled: !
|
|
10083
|
-
"onUpdate:modelValue": y[
|
|
10084
|
-
|
|
10101
|
+
disabled: !c.value,
|
|
10102
|
+
"onUpdate:modelValue": y[28] || (y[28] = (F) => {
|
|
10103
|
+
c.value && ($(), u.value.layout.sidePanel && (u.value.layout.sidePanel.position = F.value));
|
|
10085
10104
|
})
|
|
10086
10105
|
}, null, 8, ["items", "model-value", "disabled"])
|
|
10087
10106
|
]),
|
|
10088
|
-
|
|
10089
|
-
|
|
10107
|
+
d("div", null, [
|
|
10108
|
+
d("div", ev, k(v(n)("brand.brandkit.ods.widthPercent")), 1),
|
|
10090
10109
|
x(K, {
|
|
10091
10110
|
type: "number",
|
|
10092
10111
|
"model-value": String(((ua = ne.value.sidePanel) == null ? void 0 : ua.widthPercent) ?? 30),
|
|
10093
10112
|
placeholder: "30",
|
|
10094
|
-
disabled: !
|
|
10095
|
-
"onUpdate:modelValue": y[
|
|
10096
|
-
|
|
10113
|
+
disabled: !c.value,
|
|
10114
|
+
"onUpdate:modelValue": y[29] || (y[29] = (F) => {
|
|
10115
|
+
c.value && ($(), u.value.layout.sidePanel && (u.value.layout.sidePanel.widthPercent = Math.max(1, Math.min(80, Number(F) || 30))));
|
|
10097
10116
|
})
|
|
10098
10117
|
}, null, 8, ["model-value", "disabled"])
|
|
10099
10118
|
])
|
|
@@ -10102,70 +10121,70 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10102
10121
|
])
|
|
10103
10122
|
])
|
|
10104
10123
|
]),
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10124
|
+
d("div", tv, [
|
|
10125
|
+
d("div", rv, [
|
|
10126
|
+
d("div", null, [
|
|
10127
|
+
d("div", av, k(v(n)("brand.brandkit.ods.boardWidth")), 1),
|
|
10128
|
+
d("div", nv, k(v(n)("brand.brandkit.ods.boardWidthDescription")), 1)
|
|
10110
10129
|
]),
|
|
10111
|
-
|
|
10130
|
+
d("div", ov, [
|
|
10112
10131
|
x(Rt, {
|
|
10113
10132
|
"model-value": ne.value.boardWidthPercent ?? 100,
|
|
10114
10133
|
label: "Board width percent",
|
|
10115
|
-
disabled: !
|
|
10134
|
+
disabled: !c.value,
|
|
10116
10135
|
min: 10,
|
|
10117
10136
|
max: 100,
|
|
10118
10137
|
step: 5,
|
|
10119
10138
|
"append-text": "%",
|
|
10120
10139
|
"max-fraction-digits": 0,
|
|
10121
|
-
"onUpdate:modelValue": y[
|
|
10140
|
+
"onUpdate:modelValue": y[30] || (y[30] = (F) => ue("boardWidthPercent", Math.max(10, Math.min(100, Number(F) || 100))))
|
|
10122
10141
|
}, null, 8, ["model-value", "disabled"])
|
|
10123
10142
|
])
|
|
10124
10143
|
])
|
|
10125
10144
|
]),
|
|
10126
|
-
(ne.value.boardWidthPercent ?? 100) < 100 ? (R(), P("div",
|
|
10127
|
-
|
|
10128
|
-
|
|
10129
|
-
|
|
10130
|
-
|
|
10145
|
+
(ne.value.boardWidthPercent ?? 100) < 100 ? (R(), P("div", sv, [
|
|
10146
|
+
d("div", iv, [
|
|
10147
|
+
d("div", null, [
|
|
10148
|
+
d("div", lv, k(v(n)("brand.brandkit.ods.boardAlignment")), 1),
|
|
10149
|
+
d("div", uv, k(v(n)("brand.brandkit.ods.boardAlignmentDescription")), 1)
|
|
10131
10150
|
]),
|
|
10132
|
-
|
|
10151
|
+
d("div", dv, [
|
|
10133
10152
|
x(Oe, {
|
|
10134
10153
|
items: Y.value,
|
|
10135
|
-
"model-value": Y.value.find((
|
|
10136
|
-
disabled: !
|
|
10137
|
-
"onUpdate:modelValue": y[
|
|
10154
|
+
"model-value": Y.value.find((F) => F.value === (ne.value.boardAlign ?? "left")) ?? Y.value[0],
|
|
10155
|
+
disabled: !c.value,
|
|
10156
|
+
"onUpdate:modelValue": y[31] || (y[31] = (F) => ue("boardAlign", F.value))
|
|
10138
10157
|
}, null, 8, ["items", "model-value", "disabled"])
|
|
10139
10158
|
])
|
|
10140
10159
|
])
|
|
10141
10160
|
])) : j("", !0),
|
|
10142
|
-
v(l) ? (R(), P("div",
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10146
|
-
|
|
10161
|
+
v(l) ? (R(), P("div", cv, [
|
|
10162
|
+
d("div", pv, [
|
|
10163
|
+
d("div", null, [
|
|
10164
|
+
d("div", vv, k(v(n)("brand.brandkit.ods.footerMode")), 1),
|
|
10165
|
+
d("div", fv, k(v(n)("brand.brandkit.ods.footerModeDescription")), 1)
|
|
10147
10166
|
]),
|
|
10148
|
-
|
|
10167
|
+
d("div", hv, [
|
|
10149
10168
|
x(Oe, {
|
|
10150
10169
|
items: ze.value,
|
|
10151
|
-
"model-value": ze.value.find((
|
|
10152
|
-
disabled: !
|
|
10153
|
-
"onUpdate:modelValue": y[
|
|
10170
|
+
"model-value": ze.value.find((F) => F.value === (ne.value.footerMode ?? "feedme")) ?? ze.value[0],
|
|
10171
|
+
disabled: !c.value,
|
|
10172
|
+
"onUpdate:modelValue": y[32] || (y[32] = (F) => ue("footerMode", F.value))
|
|
10154
10173
|
}, null, 8, ["items", "model-value", "disabled"])
|
|
10155
10174
|
])
|
|
10156
10175
|
])
|
|
10157
10176
|
])) : j("", !0)
|
|
10158
10177
|
])) : j("", !0)
|
|
10159
10178
|
]),
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10163
|
-
|
|
10164
|
-
|
|
10165
|
-
|
|
10166
|
-
|
|
10179
|
+
d("div", mv, [
|
|
10180
|
+
d("div", gv, [
|
|
10181
|
+
d("div", yv, [
|
|
10182
|
+
d("div", bv, [
|
|
10183
|
+
d("div", null, [
|
|
10184
|
+
d("div", kv, k(v(n)("brand.brandkit.ods.odsPreview")), 1),
|
|
10185
|
+
d("div", xv, k(v(n)("brand.brandkit.ods.previewDescription")), 1)
|
|
10167
10186
|
]),
|
|
10168
|
-
|
|
10187
|
+
d("div", Sv, [
|
|
10169
10188
|
x(M, {
|
|
10170
10189
|
variant: "secondary",
|
|
10171
10190
|
label: v(n)("brand.brandkit.ods.openInNewTab"),
|
|
@@ -10175,21 +10194,21 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10175
10194
|
])
|
|
10176
10195
|
])
|
|
10177
10196
|
]),
|
|
10178
|
-
|
|
10197
|
+
d("div", Tv, [
|
|
10179
10198
|
Qe.value ? (R(), P("div", {
|
|
10180
10199
|
key: 0,
|
|
10181
10200
|
ref_key: "previewViewportRef",
|
|
10182
|
-
ref:
|
|
10201
|
+
ref: gt,
|
|
10183
10202
|
class: "flex h-[300px] w-full items-center justify-center overflow-auto md:h-[400px] lg:h-[480px]"
|
|
10184
10203
|
}, [
|
|
10185
|
-
|
|
10204
|
+
d("div", {
|
|
10186
10205
|
class: "relative flex-shrink-0 overflow-hidden rounded-[12px] border border-black/10 bg-white shadow-[0_8px_24px_rgba(15,23,42,0.16)]",
|
|
10187
10206
|
style: Nr({
|
|
10188
10207
|
width: `${cr * Ke.value}px`,
|
|
10189
10208
|
height: `${pr * Ke.value}px`
|
|
10190
10209
|
})
|
|
10191
10210
|
}, [
|
|
10192
|
-
|
|
10211
|
+
d("div", {
|
|
10193
10212
|
style: Nr({
|
|
10194
10213
|
width: `${cr}px`,
|
|
10195
10214
|
height: `${pr}px`,
|
|
@@ -10197,21 +10216,21 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10197
10216
|
transformOrigin: "top left"
|
|
10198
10217
|
})
|
|
10199
10218
|
}, [
|
|
10200
|
-
|
|
10219
|
+
d("iframe", {
|
|
10201
10220
|
src: Qe.value,
|
|
10202
10221
|
title: "ODS Preview",
|
|
10203
10222
|
width: cr,
|
|
10204
10223
|
height: pr,
|
|
10205
10224
|
class: "block border-0"
|
|
10206
|
-
}, null, 8,
|
|
10225
|
+
}, null, 8, wv)
|
|
10207
10226
|
], 4)
|
|
10208
10227
|
], 4)
|
|
10209
|
-
], 512)) : (R(), P("div",
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
y[
|
|
10228
|
+
], 512)) : (R(), P("div", Ov, [
|
|
10229
|
+
d("div", Cv, [
|
|
10230
|
+
d("div", _v, k(v(n)("brand.brandkit.ods.previewUnavailable")), 1),
|
|
10231
|
+
y[34] || (y[34] = d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, [
|
|
10213
10232
|
ca(" Set a valid "),
|
|
10214
|
-
|
|
10233
|
+
d("code", null, "VITE_ODS_PREVIEW_URL"),
|
|
10215
10234
|
ca(" to enable the embedded ODS preview. ")
|
|
10216
10235
|
], -1))
|
|
10217
10236
|
])
|
|
@@ -10230,10 +10249,10 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10230
10249
|
])),
|
|
10231
10250
|
x(Yr, {
|
|
10232
10251
|
modelValue: Ct.value,
|
|
10233
|
-
"onUpdate:modelValue": y[
|
|
10252
|
+
"onUpdate:modelValue": y[33] || (y[33] = (dt) => Ct.value = dt),
|
|
10234
10253
|
title: v(n)("brand.brandkit.ods.colorOverrideTitle"),
|
|
10235
10254
|
description: v(n)("brand.brandkit.ods.colorOverrideDescription"),
|
|
10236
|
-
"color-fields":
|
|
10255
|
+
"color-fields": g.colorFields,
|
|
10237
10256
|
"base-brandkit": ht.value,
|
|
10238
10257
|
value: u.value.brandkitOverride,
|
|
10239
10258
|
onSave: Ur
|
|
@@ -10241,37 +10260,37 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10241
10260
|
], 64);
|
|
10242
10261
|
};
|
|
10243
10262
|
}
|
|
10244
|
-
}),
|
|
10263
|
+
}), Ev = /* @__PURE__ */ ea(Uv, [["__scopeId", "data-v-3f3c34b4"]]), Rv = { class: "h-full w-full flex flex-col bg-fm-color-neutral-white overflow-scroll" }, Dv = { class: "sticky top-0 z-10 flex items-center justify-between bg-fm-color-neutral-white px-24 pt-24 pb-16 border-b border-fm-color-neutral-gray-100" }, Lv = { class: "fm-typo-en-title-md-600" }, Pv = { class: "flex items-center gap-8" }, Fv = { class: "px-24 pb-24" }, Iv = { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, Bv = { class: "overflow-hidden" }, Av = { class: "w-full mt-12" }, Mv = { class: "flex items-center justify-end gap-8" }, Nv = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Gv = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, $v = { class: "fm-typo-en-body-lg-600" }, Hv = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Vv = { class: "py-12 px-24 flex flex-col gap-12" }, zv = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Wv = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, jv = { class: "fm-typo-en-body-lg-600" }, qv = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Xv = { class: "py-12 px-24 flex flex-col gap-12" }, Yv = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Zv = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, Jv = { class: "fm-typo-en-body-lg-600" }, Kv = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qv = { class: "py-12 px-24 flex flex-col gap-12" }, ef = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, tf = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, rf = { class: "fm-typo-en-body-lg-600" }, af = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, nf = { class: "py-12 px-24 flex flex-col gap-12" }, of = { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, sf = { class: "overflow-hidden" }, lf = { class: "w-full mt-12" }, uf = { class: "flex items-center justify-end gap-8" }, df = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, cf = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, pf = { class: "fm-typo-en-body-lg-600" }, vf = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ff = { class: "py-12 px-24 space-y-16" }, hf = { class: "flex items-end gap-12 flex-col lg:flex-row" }, mf = { class: "w-full flex-1" }, gf = {
|
|
10245
10264
|
key: 0,
|
|
10246
10265
|
class: "flex flex-col gap-12"
|
|
10247
|
-
},
|
|
10266
|
+
}, yf = { class: "w-full flex-1" }, bf = {
|
|
10248
10267
|
key: 1,
|
|
10249
10268
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
10250
|
-
},
|
|
10269
|
+
}, kf = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, xf = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, Sf = { class: "fm-typo-en-body-lg-600" }, Tf = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wf = { class: "py-12 px-24 space-y-16" }, Of = { class: "flex items-center justify-end gap-8" }, Cf = { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, _f = { class: "overflow-hidden" }, Uf = { class: "w-full mt-12" }, Ef = { class: "flex items-center justify-end gap-8" }, Rf = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Df = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, Lf = { class: "fm-typo-en-body-lg-600" }, Pf = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ff = { class: "grid grid-cols-1 lg:grid-cols-2 gap-24 mt-12" }, If = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, Bf = { class: "py-16 px-24 bg-fm-color-secondary-50 border-b border-fm-color-neutral-gray-100" }, Af = { class: "flex items-center gap-12 mb-8" }, Mf = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-secondary-100 rounded-full" }, Nf = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Gf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, $f = { class: "px-24 py-24" }, Hf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Vf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, zf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Wf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, jf = { class: "px-24 py-12" }, qf = { class: "space-y-12" }, Xf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Yf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Zf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Jf = { class: "px-24 py-12" }, Kf = { class: "space-y-12" }, Qf = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, eh = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, th = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, rh = { class: "px-24 py-12" }, ah = { class: "space-y-12" }, nh = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, oh = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, sh = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, ih = { class: "py-12 px-24" }, lh = { class: "py-12 px-24" }, uh = {
|
|
10251
10270
|
key: 0,
|
|
10252
10271
|
class: "space-y-12"
|
|
10253
|
-
},
|
|
10272
|
+
}, dh = { class: "flex items-start gap-12 flex-col lg:flex-row" }, ch = { class: "w-full flex-1" }, ph = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex flex-col gap-8" }, vh = { class: "flex items-center justify-between gap-8 flex-col lg:flex-row" }, fh = { class: "fm-typo-en-body-md-600" }, hh = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, mh = { class: "bg-white border border-fm-color-neutral-gray-100 rounded p-12 text-xs whitespace-pre-wrap break-words" }, gh = {
|
|
10254
10273
|
key: 1,
|
|
10255
10274
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary border border-dashed border-fm-color-neutral-gray-100 rounded-lg p-12"
|
|
10256
|
-
},
|
|
10275
|
+
}, yh = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, bh = { class: "py-16 px-24 bg-fm-color-primary-50 border-b border-fm-color-neutral-gray-100" }, kh = { class: "flex items-center gap-12 mb-8" }, xh = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-primary-100 rounded-full" }, Sh = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, Th = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, wh = { class: "px-24 py-24" }, Oh = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Ch = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _h = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Uh = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Eh = { class: "py-12 px-24" }, Rh = { class: "space-y-12" }, Dh = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Lh = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ph = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Fh = { class: "py-12 px-24" }, Ih = { class: "space-y-12" }, Bh = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Ah = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Mh = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Nh = { class: "py-12 px-24" }, Gh = { class: "py-12 px-24" }, $h = {
|
|
10257
10276
|
key: 0,
|
|
10258
10277
|
class: "space-y-12"
|
|
10259
|
-
},
|
|
10278
|
+
}, Hh = { class: "flex items-start gap-12 flex-col lg:flex-row" }, Vh = { class: "w-full flex-1" }, zh = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex flex-col gap-8" }, Wh = { class: "flex items-center justify-between gap-8 flex-col lg:flex-row" }, jh = { class: "fm-typo-en-body-md-600" }, qh = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xh = { class: "bg-white border border-fm-color-neutral-gray-100 rounded p-12 text-xs whitespace-pre-wrap break-words" }, Yh = {
|
|
10260
10279
|
key: 1,
|
|
10261
10280
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary border border-dashed border-fm-color-neutral-gray-100 rounded-lg p-12"
|
|
10262
|
-
},
|
|
10281
|
+
}, Zh = { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, Jh = { class: "mt-12" }, Kh = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100 mb-16" }, Qh = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, em = { class: "fm-typo-en-body-lg-600" }, tm = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, rm = {
|
|
10263
10282
|
key: 0,
|
|
10264
10283
|
class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 bg-white px-24 py-40 text-center"
|
|
10265
|
-
},
|
|
10284
|
+
}, am = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-8" }, nm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary mb-16" }, om = {
|
|
10266
10285
|
key: 1,
|
|
10267
10286
|
class: "space-y-12"
|
|
10268
|
-
},
|
|
10287
|
+
}, sm = { class: "flex items-center justify-between px-24 py-16" }, im = { class: "min-w-0 flex-1" }, lm = { class: "flex items-center gap-8 mb-4" }, um = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary truncate" }, dm = {
|
|
10269
10288
|
key: 0,
|
|
10270
10289
|
class: "inline-flex items-center px-8 py-2 rounded-full fm-typo-en-body-xs-600 bg-fm-color-primary-100 text-fm-color-primary-700"
|
|
10271
|
-
},
|
|
10290
|
+
}, cm = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary truncate" }, pm = { class: "flex items-center gap-8 flex-shrink-0 ml-16" }, vm = /* @__PURE__ */ it({
|
|
10272
10291
|
__name: "BrandkitView",
|
|
10273
10292
|
setup(e) {
|
|
10274
|
-
const { t } = Jr(), r = re(null), a = re(null), o = Zr(), n = eo(), s = ro(), l = Kr(), i = Qr(),
|
|
10293
|
+
const { t } = Jr(), r = re(null), a = re(null), o = Zr(), n = eo(), s = ro(), l = Kr(), i = Qr(), c = ee(() => ({
|
|
10275
10294
|
category: [
|
|
10276
10295
|
{
|
|
10277
10296
|
label: t("brand.brandkit.ordering.vertical"),
|
|
@@ -10363,7 +10382,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10363
10382
|
title: t("brand.brandkit.backgroundColors.elevated.title"),
|
|
10364
10383
|
description: t("brand.brandkit.backgroundColors.elevated.description")
|
|
10365
10384
|
}
|
|
10366
|
-
]), u = re(n.state.brandkit), f = re(JSON.stringify(n.state.brandkit)),
|
|
10385
|
+
]), u = re(n.state.brandkit), f = re(JSON.stringify(n.state.brandkit)), m = ee(() => JSON.stringify(u.value) !== f.value), C = ee(() => ({ colors: u.value.colors })), O = re({
|
|
10367
10386
|
colors: !0,
|
|
10368
10387
|
snackbar: !0
|
|
10369
10388
|
}), T = re(""), _ = ee(
|
|
@@ -10411,7 +10430,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10411
10430
|
}, ie = (S, h, H) => {
|
|
10412
10431
|
var Y;
|
|
10413
10432
|
ue(S), (Y = u.value.layout[S].plugins) != null && Y[h] && (u.value.layout[S].plugins[h].url = H);
|
|
10414
|
-
},
|
|
10433
|
+
}, me = (S, h) => {
|
|
10415
10434
|
ue(S), u.value.layout[S].plugins.splice(h, 1);
|
|
10416
10435
|
}, le = (S, h) => {
|
|
10417
10436
|
var Y;
|
|
@@ -10444,7 +10463,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10444
10463
|
});
|
|
10445
10464
|
}
|
|
10446
10465
|
});
|
|
10447
|
-
},
|
|
10466
|
+
}, ge = (S) => {
|
|
10448
10467
|
const h = JSON.stringify(S ?? {}, null, 2);
|
|
10449
10468
|
return h.length <= 160 ? h : `${h.slice(0, 160)}...`;
|
|
10450
10469
|
}, ve = (S) => {
|
|
@@ -10535,7 +10554,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10535
10554
|
}
|
|
10536
10555
|
};
|
|
10537
10556
|
}
|
|
10538
|
-
const
|
|
10557
|
+
const mt = (S) => ht("app", S), Zt = (S) => ht("kiosk", S), Jt = (S) => {
|
|
10539
10558
|
S.mainView && ht("app", S.mainView);
|
|
10540
10559
|
}, _r = (S) => {
|
|
10541
10560
|
S.mainView && ht("kiosk", S.mainView);
|
|
@@ -10569,15 +10588,15 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10569
10588
|
immediate: !0
|
|
10570
10589
|
}
|
|
10571
10590
|
), (S, h) => {
|
|
10572
|
-
var
|
|
10591
|
+
var gt, Ke, Se, ut, _t, Kt, Qt, er, Qe, tr, Ut, Et, rr, g, y, M, K, he, Te, Oe, Rt, Ge, Dt, dt;
|
|
10573
10592
|
const H = se("FmSnackbar"), Y = se("FmButton");
|
|
10574
10593
|
se("FmDropField");
|
|
10575
10594
|
const ye = se("FmTextField"), Je = se("FmIcon"), ze = se("FmButtonGroup");
|
|
10576
|
-
return R(), P("div",
|
|
10577
|
-
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10595
|
+
return R(), P("div", Rv, [
|
|
10596
|
+
d("div", Dv, [
|
|
10597
|
+
d("div", Lv, k(v(t)("brand.brandkit.title")), 1),
|
|
10598
|
+
d("div", Pv, [
|
|
10599
|
+
m.value ? (R(), Le(H, {
|
|
10581
10600
|
key: 0,
|
|
10582
10601
|
class: "!max-w-none !z-[1]",
|
|
10583
10602
|
variant: "warning",
|
|
@@ -10589,7 +10608,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10589
10608
|
}, null, 8, ["label"])
|
|
10590
10609
|
])
|
|
10591
10610
|
]),
|
|
10592
|
-
|
|
10611
|
+
d("div", Fv, [
|
|
10593
10612
|
Gr(x(H, {
|
|
10594
10613
|
class: "w-full !max-w-none my-[20px] !z-[1]",
|
|
10595
10614
|
dismissable: "",
|
|
@@ -10602,15 +10621,15 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10602
10621
|
u.value ? (R(), P(We, { key: 0 }, [
|
|
10603
10622
|
j("", !0),
|
|
10604
10623
|
j("", !0),
|
|
10605
|
-
|
|
10606
|
-
|
|
10607
|
-
|
|
10624
|
+
d("div", null, [
|
|
10625
|
+
d("div", Iv, [
|
|
10626
|
+
d("div", null, k(v(t)("brand.brandkit.color._")), 1)
|
|
10608
10627
|
]),
|
|
10609
10628
|
x(pn, { name: "collapse" }, {
|
|
10610
10629
|
default: Pe(() => [
|
|
10611
|
-
Gr(
|
|
10612
|
-
|
|
10613
|
-
|
|
10630
|
+
Gr(d("div", Bv, [
|
|
10631
|
+
d("div", Av, [
|
|
10632
|
+
d("div", Mv, [
|
|
10614
10633
|
x(Y, {
|
|
10615
10634
|
disabled: JSON.stringify(u.value.colors) == JSON.stringify(v(q).colors),
|
|
10616
10635
|
icon: "autorenew",
|
|
@@ -10620,13 +10639,13 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10620
10639
|
}, null, 8, ["disabled", "label"])
|
|
10621
10640
|
])
|
|
10622
10641
|
]),
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10642
|
+
d("div", Nv, [
|
|
10643
|
+
d("div", null, [
|
|
10644
|
+
d("div", Gv, [
|
|
10645
|
+
d("div", $v, k(v(t)("brand.brandkit.color.title")), 1),
|
|
10646
|
+
d("div", Hv, k(v(t)("brand.brandkit.color.description")), 1)
|
|
10628
10647
|
]),
|
|
10629
|
-
|
|
10648
|
+
d("div", Vv, [
|
|
10630
10649
|
x(Ue, {
|
|
10631
10650
|
"initial-color": v(q).colors.primary,
|
|
10632
10651
|
color: u.value.colors.primary,
|
|
@@ -10654,13 +10673,13 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10654
10673
|
])
|
|
10655
10674
|
])
|
|
10656
10675
|
]),
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10676
|
+
d("div", zv, [
|
|
10677
|
+
d("div", null, [
|
|
10678
|
+
d("div", Wv, [
|
|
10679
|
+
d("div", jv, k(v(t)("brand.brandkit.typography._")), 1),
|
|
10680
|
+
d("div", qv, k(v(t)("brand.brandkit.typography.description")), 1)
|
|
10662
10681
|
]),
|
|
10663
|
-
|
|
10682
|
+
d("div", Xv, [
|
|
10664
10683
|
x(Ue, {
|
|
10665
10684
|
"initial-color": v(q).colors.text.onPrimary,
|
|
10666
10685
|
color: u.value.colors.text.onPrimary,
|
|
@@ -10696,13 +10715,13 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10696
10715
|
])
|
|
10697
10716
|
])
|
|
10698
10717
|
]),
|
|
10699
|
-
|
|
10700
|
-
|
|
10701
|
-
|
|
10702
|
-
|
|
10703
|
-
|
|
10718
|
+
d("div", Yv, [
|
|
10719
|
+
d("div", null, [
|
|
10720
|
+
d("div", Zv, [
|
|
10721
|
+
d("div", Jv, k(v(t)("brand.brandkit.neutralColors._")), 1),
|
|
10722
|
+
d("div", Kv, k(v(t)("brand.brandkit.neutralColors.description")), 1)
|
|
10704
10723
|
]),
|
|
10705
|
-
|
|
10724
|
+
d("div", Qv, [
|
|
10706
10725
|
x(Ue, {
|
|
10707
10726
|
"initial-color": v(q).colors.neutral.light,
|
|
10708
10727
|
color: u.value.colors.neutral.light,
|
|
@@ -10730,13 +10749,13 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10730
10749
|
])
|
|
10731
10750
|
])
|
|
10732
10751
|
]),
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10752
|
+
d("div", ef, [
|
|
10753
|
+
d("div", null, [
|
|
10754
|
+
d("div", tf, [
|
|
10755
|
+
d("div", rf, k(v(t)("brand.brandkit.backgroundColors._")), 1),
|
|
10756
|
+
d("div", af, k(v(t)("brand.brandkit.backgroundColors.description")), 1)
|
|
10738
10757
|
]),
|
|
10739
|
-
|
|
10758
|
+
d("div", nf, [
|
|
10740
10759
|
x(Ue, {
|
|
10741
10760
|
"initial-color": v(q).colors.background.base,
|
|
10742
10761
|
color: u.value.colors.background.base,
|
|
@@ -10763,14 +10782,14 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10763
10782
|
_: 1
|
|
10764
10783
|
})
|
|
10765
10784
|
]),
|
|
10766
|
-
h[48] || (h[48] =
|
|
10767
|
-
|
|
10768
|
-
|
|
10769
|
-
|
|
10785
|
+
h[48] || (h[48] = d("div", { class: "h-[1px] bg-fm-color-neutral-gray-100 w-full my-40 flex-shrink-0" }, null, -1)),
|
|
10786
|
+
d("div", null, [
|
|
10787
|
+
d("div", of, [
|
|
10788
|
+
d("div", null, k(v(t)("brand.brandkit.fonts._")), 1)
|
|
10770
10789
|
]),
|
|
10771
|
-
|
|
10772
|
-
|
|
10773
|
-
|
|
10790
|
+
d("div", sf, [
|
|
10791
|
+
d("div", lf, [
|
|
10792
|
+
d("div", uf, [
|
|
10774
10793
|
x(Y, {
|
|
10775
10794
|
disabled: !_.value.length,
|
|
10776
10795
|
icon: "autorenew",
|
|
@@ -10780,14 +10799,14 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10780
10799
|
}, null, 8, ["disabled", "label"])
|
|
10781
10800
|
])
|
|
10782
10801
|
]),
|
|
10783
|
-
|
|
10784
|
-
|
|
10785
|
-
|
|
10786
|
-
|
|
10802
|
+
d("div", df, [
|
|
10803
|
+
d("div", cf, [
|
|
10804
|
+
d("div", pf, k(v(t)("brand.brandkit.fontStylesheets.title")), 1),
|
|
10805
|
+
d("div", vf, k(v(t)("brand.brandkit.fontStylesheets.description")), 1)
|
|
10787
10806
|
]),
|
|
10788
|
-
|
|
10789
|
-
|
|
10790
|
-
|
|
10807
|
+
d("div", ff, [
|
|
10808
|
+
d("div", hf, [
|
|
10809
|
+
d("div", mf, [
|
|
10791
10810
|
x(ye, {
|
|
10792
10811
|
modelValue: T.value,
|
|
10793
10812
|
"onUpdate:modelValue": h[28] || (h[28] = (w) => T.value = w),
|
|
@@ -10803,12 +10822,12 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10803
10822
|
onClick: U
|
|
10804
10823
|
}, null, 8, ["disabled", "label"])
|
|
10805
10824
|
]),
|
|
10806
|
-
_.value.length ? (R(), P("div",
|
|
10825
|
+
_.value.length ? (R(), P("div", gf, [
|
|
10807
10826
|
(R(!0), P(We, null, bt(_.value, (w, Z) => (R(), P("div", {
|
|
10808
10827
|
key: w.stylesheet + Z,
|
|
10809
10828
|
class: "flex items-start gap-12 flex-col lg:flex-row"
|
|
10810
10829
|
}, [
|
|
10811
|
-
|
|
10830
|
+
d("div", yf, [
|
|
10812
10831
|
x(ye, {
|
|
10813
10832
|
"model-value": w.stylesheet,
|
|
10814
10833
|
label: v(t)("brand.brandkit.fontStylesheets.stylesheetUrl"),
|
|
@@ -10823,16 +10842,16 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10823
10842
|
onClick: (ce) => E(Z)
|
|
10824
10843
|
}, null, 8, ["onClick"])
|
|
10825
10844
|
]))), 128))
|
|
10826
|
-
])) : (R(), P("div",
|
|
10845
|
+
])) : (R(), P("div", bf, k(v(t)("brand.brandkit.fontStylesheets.noStylesheetsYet")), 1))
|
|
10827
10846
|
])
|
|
10828
10847
|
]),
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10848
|
+
d("div", kf, [
|
|
10849
|
+
d("div", xf, [
|
|
10850
|
+
d("div", Sf, k(v(t)("brand.brandkit.fontAssignment.title")), 1),
|
|
10851
|
+
d("div", Tf, k(v(t)("brand.brandkit.fontAssignment.description")), 1)
|
|
10833
10852
|
]),
|
|
10834
|
-
|
|
10835
|
-
|
|
10853
|
+
d("div", wf, [
|
|
10854
|
+
d("div", Of, [
|
|
10836
10855
|
x(Y, {
|
|
10837
10856
|
disabled: JSON.stringify(u.value.fonts) === JSON.stringify(v(q).fonts),
|
|
10838
10857
|
icon: "autorenew",
|
|
@@ -10841,7 +10860,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10841
10860
|
onClick: N
|
|
10842
10861
|
}, null, 8, ["disabled", "label"])
|
|
10843
10862
|
]),
|
|
10844
|
-
|
|
10863
|
+
d("div", null, [
|
|
10845
10864
|
x(ye, {
|
|
10846
10865
|
"model-value": u.value.fonts.brand,
|
|
10847
10866
|
"onUpdate:modelValue": h[29] || (h[29] = (w) => u.value.fonts.brand = w),
|
|
@@ -10850,7 +10869,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10850
10869
|
placeholder: "'Inter', sans-serif"
|
|
10851
10870
|
}, null, 8, ["model-value", "label", "helper-text"])
|
|
10852
10871
|
]),
|
|
10853
|
-
|
|
10872
|
+
d("div", null, [
|
|
10854
10873
|
x(ye, {
|
|
10855
10874
|
"model-value": u.value.fonts.heading ?? "",
|
|
10856
10875
|
"onUpdate:modelValue": h[30] || (h[30] = (w) => u.value.fonts.heading = w || void 0),
|
|
@@ -10859,7 +10878,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10859
10878
|
placeholder: "'Inter', sans-serif"
|
|
10860
10879
|
}, null, 8, ["model-value", "label", "helper-text"])
|
|
10861
10880
|
]),
|
|
10862
|
-
|
|
10881
|
+
d("div", null, [
|
|
10863
10882
|
x(ye, {
|
|
10864
10883
|
"model-value": u.value.fonts.body ?? "",
|
|
10865
10884
|
"onUpdate:modelValue": h[31] || (h[31] = (w) => u.value.fonts.body = w || void 0),
|
|
@@ -10872,18 +10891,18 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10872
10891
|
])
|
|
10873
10892
|
])
|
|
10874
10893
|
]),
|
|
10875
|
-
h[49] || (h[49] =
|
|
10876
|
-
|
|
10877
|
-
|
|
10878
|
-
|
|
10894
|
+
h[49] || (h[49] = d("div", { class: "h-[1px] bg-fm-color-neutral-gray-100 w-full my-40 flex-shrink-0" }, null, -1)),
|
|
10895
|
+
d("div", null, [
|
|
10896
|
+
d("div", Cf, [
|
|
10897
|
+
d("div", null, k(v(t)("brand.brandkit.ordering._")), 1)
|
|
10879
10898
|
]),
|
|
10880
|
-
|
|
10881
|
-
|
|
10882
|
-
|
|
10899
|
+
d("div", _f, [
|
|
10900
|
+
d("div", Uf, [
|
|
10901
|
+
d("div", Ef, [
|
|
10883
10902
|
x(Y, {
|
|
10884
10903
|
disabled: JSON.stringify({
|
|
10885
10904
|
app: {
|
|
10886
|
-
category: (Ke = (
|
|
10905
|
+
category: (Ke = (gt = u.value.ordering) == null ? void 0 : gt.app) == null ? void 0 : Ke.category,
|
|
10887
10906
|
items: (ut = (Se = u.value.ordering) == null ? void 0 : Se.app) == null ? void 0 : ut.items,
|
|
10888
10907
|
singleCategory: (Kt = (_t = u.value.ordering) == null ? void 0 : _t.app) == null ? void 0 : Kt.singleCategory
|
|
10889
10908
|
},
|
|
@@ -10903,17 +10922,17 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10903
10922
|
}, null, 8, ["disabled", "label"])
|
|
10904
10923
|
])
|
|
10905
10924
|
]),
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
10925
|
+
d("div", Rf, [
|
|
10926
|
+
d("div", Df, [
|
|
10927
|
+
d("div", Lf, k(v(t)("brand.brandkit.ordering.title")), 1),
|
|
10928
|
+
d("div", Pf, k(v(t)("brand.brandkit.ordering.description")), 1)
|
|
10910
10929
|
])
|
|
10911
10930
|
]),
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10931
|
+
d("div", Ff, [
|
|
10932
|
+
d("div", If, [
|
|
10933
|
+
d("div", Bf, [
|
|
10934
|
+
d("div", Af, [
|
|
10935
|
+
d("div", Mf, [
|
|
10917
10936
|
x(Je, {
|
|
10918
10937
|
name: "phone_android",
|
|
10919
10938
|
class: "text-fm-color-secondary-500",
|
|
@@ -10921,17 +10940,17 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10921
10940
|
outline: ""
|
|
10922
10941
|
})
|
|
10923
10942
|
]),
|
|
10924
|
-
|
|
10943
|
+
d("div", Nf, k(v(t)("brand.brandkit.ordering.orderAppSettings")), 1)
|
|
10925
10944
|
]),
|
|
10926
|
-
|
|
10945
|
+
d("div", Gf, k(v(t)("brand.brandkit.ordering.orderAppDescription")), 1)
|
|
10927
10946
|
]),
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10947
|
+
d("div", $f, [
|
|
10948
|
+
d("div", null, [
|
|
10949
|
+
d("div", Hf, k(v(t)("brand.brandkit.ordering.colorOverride.title")), 1),
|
|
10950
|
+
d("div", Vf, k(v(t)("brand.brandkit.ordering.colorOverride.descriptionApp")), 1)
|
|
10932
10951
|
]),
|
|
10933
|
-
|
|
10934
|
-
|
|
10952
|
+
d("div", zf, [
|
|
10953
|
+
d("div", Wf, k(v(t)("brand.brandkit.ordering.colorOverride.count", {
|
|
10935
10954
|
count: X("app")
|
|
10936
10955
|
})), 1),
|
|
10937
10956
|
x(Y, {
|
|
@@ -10942,67 +10961,67 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
10942
10961
|
}, null, 8, ["label"])
|
|
10943
10962
|
])
|
|
10944
10963
|
]),
|
|
10945
|
-
|
|
10946
|
-
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10964
|
+
d("div", jf, [
|
|
10965
|
+
d("div", qf, [
|
|
10966
|
+
d("div", null, [
|
|
10967
|
+
d("div", Xf, k(v(t)("brand.brandkit.ordering.categoryLayout")), 1),
|
|
10968
|
+
d("div", Yf, k(v(t)("brand.brandkit.ordering.categoryLayoutDescription")), 1)
|
|
10950
10969
|
]),
|
|
10951
|
-
|
|
10970
|
+
d("div", Zf, [
|
|
10952
10971
|
x(ze, {
|
|
10953
|
-
items:
|
|
10954
|
-
"model-value": ((Ut = u.value.ordering) == null ? void 0 : Ut.app.category) === "HORIZONTAL" ?
|
|
10972
|
+
items: c.value.category,
|
|
10973
|
+
"model-value": ((Ut = u.value.ordering) == null ? void 0 : Ut.app.category) === "HORIZONTAL" ? c.value.category[1] : c.value.category[0],
|
|
10955
10974
|
"onUpdate:modelValue": h[34] || (h[34] = (w) => {
|
|
10956
10975
|
u.value.ordering || (u.value.ordering = { ...v(q).ordering }), u.value.ordering.app || (u.value.ordering.app = {
|
|
10957
10976
|
...v(q).ordering.app
|
|
10958
|
-
}), w ===
|
|
10977
|
+
}), w === c.value.category[0] ? u.value.ordering.app.category = "VERTICAL" : u.value.ordering.app.category = "HORIZONTAL";
|
|
10959
10978
|
})
|
|
10960
10979
|
}, null, 8, ["items", "model-value"])
|
|
10961
10980
|
])
|
|
10962
10981
|
])
|
|
10963
10982
|
]),
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10983
|
+
d("div", Jf, [
|
|
10984
|
+
d("div", Kf, [
|
|
10985
|
+
d("div", null, [
|
|
10986
|
+
d("div", Qf, k(v(t)("brand.brandkit.ordering.menuLayout")), 1),
|
|
10987
|
+
d("div", eh, k(v(t)("brand.brandkit.ordering.menuLayoutDescription")), 1)
|
|
10969
10988
|
]),
|
|
10970
|
-
|
|
10989
|
+
d("div", th, [
|
|
10971
10990
|
x(ze, {
|
|
10972
|
-
items:
|
|
10973
|
-
"model-value": ((Et = u.value.ordering) == null ? void 0 : Et.app.items) === "LIST" ?
|
|
10991
|
+
items: c.value.items,
|
|
10992
|
+
"model-value": ((Et = u.value.ordering) == null ? void 0 : Et.app.items) === "LIST" ? c.value.items[0] : c.value.items[1],
|
|
10974
10993
|
"onUpdate:modelValue": h[35] || (h[35] = (w) => {
|
|
10975
10994
|
var Z;
|
|
10976
10995
|
(Z = u.value.ordering) != null && Z.app || (u.value.ordering = {
|
|
10977
10996
|
...v(q).ordering
|
|
10978
|
-
}), w ===
|
|
10997
|
+
}), w === c.value.items[0] ? u.value.ordering.app.items = "LIST" : u.value.ordering.app.items = "GRID";
|
|
10979
10998
|
})
|
|
10980
10999
|
}, null, 8, ["items", "model-value"])
|
|
10981
11000
|
])
|
|
10982
11001
|
])
|
|
10983
11002
|
]),
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
11003
|
+
d("div", rh, [
|
|
11004
|
+
d("div", ah, [
|
|
11005
|
+
d("div", null, [
|
|
11006
|
+
d("div", nh, k(v(t)("brand.brandkit.ordering.categoryDisplay")), 1),
|
|
11007
|
+
d("div", oh, k(v(t)("brand.brandkit.ordering.categoryDisplayDescription")), 1)
|
|
10989
11008
|
]),
|
|
10990
|
-
|
|
11009
|
+
d("div", sh, [
|
|
10991
11010
|
x(ze, {
|
|
10992
|
-
items:
|
|
10993
|
-
"model-value": (rr = u.value.ordering) != null && rr.app.singleCategory ?
|
|
11011
|
+
items: c.value.singleCategory,
|
|
11012
|
+
"model-value": (rr = u.value.ordering) != null && rr.app.singleCategory ? c.value.singleCategory[1] : c.value.singleCategory[0],
|
|
10994
11013
|
"onUpdate:modelValue": h[36] || (h[36] = (w) => {
|
|
10995
11014
|
var Z;
|
|
10996
11015
|
(Z = u.value.ordering) != null && Z.app || (u.value.ordering = {
|
|
10997
11016
|
...v(q).ordering
|
|
10998
|
-
}), w ===
|
|
11017
|
+
}), w === c.value.singleCategory[0] ? u.value.ordering.app.singleCategory = !1 : u.value.ordering.app.singleCategory = !0;
|
|
10999
11018
|
})
|
|
11000
11019
|
}, null, 8, ["items", "model-value"])
|
|
11001
11020
|
])
|
|
11002
11021
|
])
|
|
11003
11022
|
]),
|
|
11004
|
-
|
|
11005
|
-
(
|
|
11023
|
+
d("div", ih, [
|
|
11024
|
+
(g = v(o).sessionUser.value) != null && g.role.isAdmin ? (R(), Le(ur, {
|
|
11006
11025
|
key: 0,
|
|
11007
11026
|
title: v(t)("brand.brandkit.plugins.customLayout"),
|
|
11008
11027
|
description: v(t)("brand.brandkit.plugins.customLayoutDescription")
|
|
@@ -11013,7 +11032,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11013
11032
|
x(ln, {
|
|
11014
11033
|
"switch-label": "Menu view",
|
|
11015
11034
|
template: (ce = (Z = (w = u.value.layout) == null ? void 0 : w.app) == null ? void 0 : Z.template) == null ? void 0 : ce.mainView,
|
|
11016
|
-
onUpdate:
|
|
11035
|
+
onUpdate: mt
|
|
11017
11036
|
}, null, 8, ["template"]),
|
|
11018
11037
|
x(un, {
|
|
11019
11038
|
ref_key: "appTemplateHistoryRef",
|
|
@@ -11026,7 +11045,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11026
11045
|
_: 1
|
|
11027
11046
|
}, 8, ["title", "description"])) : j("", !0)
|
|
11028
11047
|
]),
|
|
11029
|
-
|
|
11048
|
+
d("div", lh, [
|
|
11030
11049
|
(y = v(o).sessionUser.value) != null && y.role.isAdmin ? (R(), Le(ur, {
|
|
11031
11050
|
key: 0,
|
|
11032
11051
|
title: v(t)("brand.brandkit.plugins.appPlugins"),
|
|
@@ -11039,13 +11058,13 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11039
11058
|
label: v(t)("brand.brandkit.plugins.addPlugin"),
|
|
11040
11059
|
onClick: h[37] || (h[37] = (w) => de("app"))
|
|
11041
11060
|
}, null, 8, ["label"]),
|
|
11042
|
-
te.value.length ? (R(), P("div",
|
|
11061
|
+
te.value.length ? (R(), P("div", uh, [
|
|
11043
11062
|
(R(!0), P(We, null, bt(te.value, (w, Z) => (R(), P("div", {
|
|
11044
11063
|
key: Z,
|
|
11045
11064
|
class: "border border-fm-color-neutral-gray-100 rounded-lg p-12 space-y-12"
|
|
11046
11065
|
}, [
|
|
11047
|
-
|
|
11048
|
-
|
|
11066
|
+
d("div", dh, [
|
|
11067
|
+
d("div", ch, [
|
|
11049
11068
|
x(ye, {
|
|
11050
11069
|
"model-value": w.url,
|
|
11051
11070
|
label: v(t)("brand.brandkit.plugins.pluginUrl"),
|
|
@@ -11057,14 +11076,14 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11057
11076
|
class: "self-start",
|
|
11058
11077
|
icon: "delete",
|
|
11059
11078
|
variant: "plain",
|
|
11060
|
-
onClick: (ce) =>
|
|
11079
|
+
onClick: (ce) => me("app", Z)
|
|
11061
11080
|
}, null, 8, ["onClick"])
|
|
11062
11081
|
]),
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11082
|
+
d("div", ph, [
|
|
11083
|
+
d("div", vh, [
|
|
11084
|
+
d("div", null, [
|
|
11085
|
+
d("div", fh, k(v(t)("brand.brandkit.plugins.pluginParams")), 1),
|
|
11086
|
+
d("div", hh, k(v(t)("brand.brandkit.plugins.editJsonDescription")), 1)
|
|
11068
11087
|
]),
|
|
11069
11088
|
x(Y, {
|
|
11070
11089
|
variant: "secondary",
|
|
@@ -11072,19 +11091,19 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11072
11091
|
onClick: (ce) => le("app", Z)
|
|
11073
11092
|
}, null, 8, ["label", "onClick"])
|
|
11074
11093
|
]),
|
|
11075
|
-
|
|
11094
|
+
d("pre", mh, k(ge(w.pluginParams)), 1)
|
|
11076
11095
|
])
|
|
11077
11096
|
]))), 128))
|
|
11078
|
-
])) : (R(), P("div",
|
|
11097
|
+
])) : (R(), P("div", gh, k(v(t)("brand.brandkit.plugins.noPluginsYet")), 1))
|
|
11079
11098
|
]),
|
|
11080
11099
|
_: 1
|
|
11081
11100
|
}, 8, ["title", "description"])) : j("", !0)
|
|
11082
11101
|
])
|
|
11083
11102
|
]),
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11103
|
+
d("div", yh, [
|
|
11104
|
+
d("div", bh, [
|
|
11105
|
+
d("div", kh, [
|
|
11106
|
+
d("div", xh, [
|
|
11088
11107
|
x(Je, {
|
|
11089
11108
|
name: "desktop_mac",
|
|
11090
11109
|
class: "text-fm-color-primary-500",
|
|
@@ -11092,17 +11111,17 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11092
11111
|
outline: ""
|
|
11093
11112
|
})
|
|
11094
11113
|
]),
|
|
11095
|
-
|
|
11114
|
+
d("div", Sh, k(v(t)("brand.brandkit.ordering.kioskSettings")), 1)
|
|
11096
11115
|
]),
|
|
11097
|
-
|
|
11116
|
+
d("div", Th, k(v(t)("brand.brandkit.ordering.kioskSettingsDescription")), 1)
|
|
11098
11117
|
]),
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11118
|
+
d("div", wh, [
|
|
11119
|
+
d("div", null, [
|
|
11120
|
+
d("div", Oh, k(v(t)("brand.brandkit.ordering.colorOverride.title")), 1),
|
|
11121
|
+
d("div", Ch, k(v(t)("brand.brandkit.ordering.colorOverride.descriptionKiosk")), 1)
|
|
11103
11122
|
]),
|
|
11104
|
-
|
|
11105
|
-
|
|
11123
|
+
d("div", _h, [
|
|
11124
|
+
d("div", Uh, k(v(t)("brand.brandkit.ordering.colorOverride.count", {
|
|
11106
11125
|
count: X("kiosk")
|
|
11107
11126
|
})), 1),
|
|
11108
11127
|
x(Y, {
|
|
@@ -11113,46 +11132,46 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11113
11132
|
}, null, 8, ["label"])
|
|
11114
11133
|
])
|
|
11115
11134
|
]),
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11135
|
+
d("div", Eh, [
|
|
11136
|
+
d("div", Rh, [
|
|
11137
|
+
d("div", null, [
|
|
11138
|
+
d("div", Dh, k(v(t)("brand.brandkit.ordering.categoryLayout")), 1),
|
|
11139
|
+
d("div", Lh, k(v(t)("brand.brandkit.ordering.categoryLayoutDescription")), 1)
|
|
11121
11140
|
]),
|
|
11122
|
-
|
|
11141
|
+
d("div", Ph, [
|
|
11123
11142
|
x(ze, {
|
|
11124
|
-
items:
|
|
11125
|
-
"model-value": ((M = u.value.ordering) == null ? void 0 : M.kiosk.category) === "HORIZONTAL" ?
|
|
11143
|
+
items: c.value.category,
|
|
11144
|
+
"model-value": ((M = u.value.ordering) == null ? void 0 : M.kiosk.category) === "HORIZONTAL" ? c.value.category[1] : c.value.category[0],
|
|
11126
11145
|
"onUpdate:modelValue": h[39] || (h[39] = (w) => {
|
|
11127
11146
|
var Z;
|
|
11128
11147
|
u.value.ordering || (u.value.ordering = {
|
|
11129
11148
|
...v(q).ordering
|
|
11130
11149
|
}), (Z = u.value.ordering) != null && Z.kiosk || (u.value.ordering = {
|
|
11131
11150
|
...v(q).ordering
|
|
11132
|
-
}), w ===
|
|
11151
|
+
}), w === c.value.category[0] ? u.value.ordering.kiosk.category = "VERTICAL" : u.value.ordering.kiosk.category = "HORIZONTAL";
|
|
11133
11152
|
})
|
|
11134
11153
|
}, null, 8, ["items", "model-value"])
|
|
11135
11154
|
])
|
|
11136
11155
|
])
|
|
11137
11156
|
]),
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
-
|
|
11141
|
-
|
|
11142
|
-
|
|
11157
|
+
d("div", Fh, [
|
|
11158
|
+
d("div", Ih, [
|
|
11159
|
+
d("div", null, [
|
|
11160
|
+
d("div", Bh, k(v(t)("brand.brandkit.ordering.categoryDisplay")), 1),
|
|
11161
|
+
d("div", Ah, k(v(t)("brand.brandkit.ordering.categoryDisplayDescription")), 1)
|
|
11143
11162
|
]),
|
|
11144
|
-
|
|
11163
|
+
d("div", Mh, [
|
|
11145
11164
|
x(ze, {
|
|
11146
|
-
items:
|
|
11147
|
-
"model-value": (
|
|
11165
|
+
items: c.value.singleCategory,
|
|
11166
|
+
"model-value": (he = (K = u.value.ordering) == null ? void 0 : K.kiosk) != null && he.singleCategory ? c.value.singleCategory[1] : c.value.singleCategory[0],
|
|
11148
11167
|
"onUpdate:modelValue": h[40] || (h[40] = (w) => {
|
|
11149
|
-
ve("kiosk"), w ===
|
|
11168
|
+
ve("kiosk"), w === c.value.singleCategory[0] ? u.value.ordering.kiosk.singleCategory = !1 : u.value.ordering.kiosk.singleCategory = !0;
|
|
11150
11169
|
})
|
|
11151
11170
|
}, null, 8, ["items", "model-value"])
|
|
11152
11171
|
])
|
|
11153
11172
|
])
|
|
11154
11173
|
]),
|
|
11155
|
-
|
|
11174
|
+
d("div", Nh, [
|
|
11156
11175
|
(Te = v(o).sessionUser.value) != null && Te.role.isAdmin ? (R(), Le(ur, {
|
|
11157
11176
|
key: 0,
|
|
11158
11177
|
title: v(t)("brand.brandkit.plugins.customLayout"),
|
|
@@ -11177,7 +11196,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11177
11196
|
_: 1
|
|
11178
11197
|
}, 8, ["title", "description"])) : j("", !0)
|
|
11179
11198
|
]),
|
|
11180
|
-
|
|
11199
|
+
d("div", Gh, [
|
|
11181
11200
|
(Oe = v(o).sessionUser.value) != null && Oe.role.isAdmin ? (R(), Le(ur, {
|
|
11182
11201
|
key: 0,
|
|
11183
11202
|
title: v(t)("brand.brandkit.plugins.kioskPlugins"),
|
|
@@ -11190,13 +11209,13 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11190
11209
|
label: v(t)("brand.brandkit.plugins.addPlugin"),
|
|
11191
11210
|
onClick: h[41] || (h[41] = (w) => de("kiosk"))
|
|
11192
11211
|
}, null, 8, ["label"]),
|
|
11193
|
-
$.value.length ? (R(), P("div",
|
|
11212
|
+
$.value.length ? (R(), P("div", $h, [
|
|
11194
11213
|
(R(!0), P(We, null, bt($.value, (w, Z) => (R(), P("div", {
|
|
11195
11214
|
key: Z,
|
|
11196
11215
|
class: "border border-fm-color-neutral-gray-100 rounded-lg p-12 space-y-12"
|
|
11197
11216
|
}, [
|
|
11198
|
-
|
|
11199
|
-
|
|
11217
|
+
d("div", Hh, [
|
|
11218
|
+
d("div", Vh, [
|
|
11200
11219
|
x(ye, {
|
|
11201
11220
|
"model-value": w.url,
|
|
11202
11221
|
label: v(t)("brand.brandkit.plugins.pluginUrl"),
|
|
@@ -11208,14 +11227,14 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11208
11227
|
class: "self-start",
|
|
11209
11228
|
icon: "delete",
|
|
11210
11229
|
variant: "plain",
|
|
11211
|
-
onClick: (ce) =>
|
|
11230
|
+
onClick: (ce) => me("kiosk", Z)
|
|
11212
11231
|
}, null, 8, ["onClick"])
|
|
11213
11232
|
]),
|
|
11214
|
-
|
|
11215
|
-
|
|
11216
|
-
|
|
11217
|
-
|
|
11218
|
-
|
|
11233
|
+
d("div", zh, [
|
|
11234
|
+
d("div", Wh, [
|
|
11235
|
+
d("div", null, [
|
|
11236
|
+
d("div", jh, k(v(t)("brand.brandkit.plugins.pluginParams")), 1),
|
|
11237
|
+
d("div", qh, k(v(t)("brand.brandkit.plugins.editJsonDescription")), 1)
|
|
11219
11238
|
]),
|
|
11220
11239
|
x(Y, {
|
|
11221
11240
|
variant: "secondary",
|
|
@@ -11223,10 +11242,10 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11223
11242
|
onClick: (ce) => le("kiosk", Z)
|
|
11224
11243
|
}, null, 8, ["label", "onClick"])
|
|
11225
11244
|
]),
|
|
11226
|
-
|
|
11245
|
+
d("pre", Xh, k(ge(w.pluginParams)), 1)
|
|
11227
11246
|
])
|
|
11228
11247
|
]))), 128))
|
|
11229
|
-
])) : (R(), P("div",
|
|
11248
|
+
])) : (R(), P("div", Yh, k(v(t)("brand.brandkit.plugins.noPluginsYet")), 1))
|
|
11230
11249
|
]),
|
|
11231
11250
|
_: 1
|
|
11232
11251
|
}, 8, ["title", "description"])) : j("", !0)
|
|
@@ -11235,10 +11254,10 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11235
11254
|
])
|
|
11236
11255
|
])
|
|
11237
11256
|
]),
|
|
11238
|
-
h[50] || (h[50] =
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11257
|
+
h[50] || (h[50] = d("div", { class: "h-[1px] bg-fm-color-neutral-gray-100 w-full my-40 flex-shrink-0" }, null, -1)),
|
|
11258
|
+
d("div", null, [
|
|
11259
|
+
d("div", Zh, [
|
|
11260
|
+
d("div", null, k(v(t)("brand.brandkit.ods.settings")), 1),
|
|
11242
11261
|
x(Y, {
|
|
11243
11262
|
icon: "add",
|
|
11244
11263
|
label: v(t)("brand.brandkit.ods.addConfiguration"),
|
|
@@ -11246,27 +11265,27 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11246
11265
|
onClick: xe
|
|
11247
11266
|
}, null, 8, ["label"])
|
|
11248
11267
|
]),
|
|
11249
|
-
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
|
|
11253
|
-
|
|
11268
|
+
d("div", Jh, [
|
|
11269
|
+
d("div", Kh, [
|
|
11270
|
+
d("div", Qh, [
|
|
11271
|
+
d("div", em, k(v(t)("brand.brandkit.ods.orderDisplaySystem")), 1),
|
|
11272
|
+
d("div", tm, k(v(t)("brand.brandkit.ods.description")), 1)
|
|
11254
11273
|
])
|
|
11255
11274
|
]),
|
|
11256
|
-
_e.value.length ? (R(), P("div",
|
|
11275
|
+
_e.value.length ? (R(), P("div", om, [
|
|
11257
11276
|
(R(!0), P(We, null, bt(_e.value, (w, Z) => (R(), P("div", {
|
|
11258
11277
|
key: Z,
|
|
11259
11278
|
class: "rounded-lg border border-fm-color-neutral-gray-100 bg-white overflow-hidden"
|
|
11260
11279
|
}, [
|
|
11261
|
-
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
w.isDefault ? (R(), P("span",
|
|
11280
|
+
d("div", sm, [
|
|
11281
|
+
d("div", im, [
|
|
11282
|
+
d("div", lm, [
|
|
11283
|
+
d("div", um, k(w.label || (w.isDefault ? v(t)("brand.brandkit.ods.default") : v(t)("brand.brandkit.ods.configNumber", { index: Z + 1 }))), 1),
|
|
11284
|
+
w.isDefault ? (R(), P("span", dm, k(v(t)("brand.brandkit.ods.default")), 1)) : j("", !0)
|
|
11266
11285
|
]),
|
|
11267
|
-
|
|
11286
|
+
d("div", cm, k(Ct(w)), 1)
|
|
11268
11287
|
]),
|
|
11269
|
-
|
|
11288
|
+
d("div", pm, [
|
|
11270
11289
|
x(Y, {
|
|
11271
11290
|
icon: "edit",
|
|
11272
11291
|
label: v(t)("brand.common.edit"),
|
|
@@ -11289,9 +11308,9 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11289
11308
|
])
|
|
11290
11309
|
])
|
|
11291
11310
|
]))), 128))
|
|
11292
|
-
])) : (R(), P("div",
|
|
11293
|
-
|
|
11294
|
-
|
|
11311
|
+
])) : (R(), P("div", rm, [
|
|
11312
|
+
d("div", am, k(v(t)("brand.brandkit.ods.noConfigsYet")), 1),
|
|
11313
|
+
d("div", nm, k(v(t)("brand.brandkit.ods.noConfigsDescription")), 1),
|
|
11295
11314
|
x(Y, {
|
|
11296
11315
|
icon: "add",
|
|
11297
11316
|
label: v(t)("brand.brandkit.ods.addConfiguration"),
|
|
@@ -11322,7 +11341,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11322
11341
|
value: (dt = (Dt = u.value.ordering) == null ? void 0 : Dt.kiosk) == null ? void 0 : dt.brandkitOverride,
|
|
11323
11342
|
onSave: h[45] || (h[45] = (w) => Ye("kiosk", w))
|
|
11324
11343
|
}, null, 8, ["modelValue", "title", "description", "color-fields", "base-brandkit", "value"]),
|
|
11325
|
-
x(
|
|
11344
|
+
x(Ev, {
|
|
11326
11345
|
modelValue: De.value,
|
|
11327
11346
|
"onUpdate:modelValue": h[46] || (h[46] = (w) => De.value = w),
|
|
11328
11347
|
entry: Ve.value,
|
|
@@ -11337,7 +11356,7 @@ const Qu = { class: "json-editor" }, ed = ["title"], td = { class: "error-text"
|
|
|
11337
11356
|
]);
|
|
11338
11357
|
};
|
|
11339
11358
|
}
|
|
11340
|
-
}),
|
|
11359
|
+
}), Cm = /* @__PURE__ */ ea(vm, [["__scopeId", "data-v-2195ed7a"]]);
|
|
11341
11360
|
export {
|
|
11342
|
-
|
|
11361
|
+
Cm as default
|
|
11343
11362
|
};
|