@feedmepos/mf-brand-app-builder 0.5.30-dev.2 → 0.5.30-dev.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-C5Xy8wLL.js → App-DVGTquur.js} +1 -1
- package/dist/{BrandkitView-DDF-dNWD.js → BrandkitView-DCuITcdH.js} +821 -799
- package/dist/{BuilderView-DT3QEcZD.js → BuilderView-D8JEitSm.js} +2 -2
- package/dist/{ImageUpload-hrFBu_Rh.js → ImageUpload-PRYbwvo4.js} +1 -1
- package/dist/{ListRepeater-Bm0uQATM.js → ListRepeater-Do82XZvF.js} +1 -1
- package/dist/{app-CTS97O7H.js → app-DHaGHzO5.js} +5 -5
- package/dist/app.js +1 -1
- package/dist/brand-core/src/entity.d.ts +2 -0
- package/dist/client/merchant/src/stores/business/index.d.ts +6 -0
- package/dist/{main-BEV37wq8.js → main-uZB4b0Mf.js} +2 -2
- package/dist/package.json +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { B as
|
|
3
|
-
import { I as
|
|
1
|
+
import { defineComponent as Qe, resolveComponent as oe, createElementBlock as F, openBlock as D, createElementVNode as d, createVNode as T, createCommentVNode as X, withCtx as Te, unref as b, normalizeStyle as Ct, toDisplayString as _, ref as Z, shallowRef as Pn, onMounted as Po, onBeforeUnmount as _o, withDirectives as Ut, normalizeClass as Fo, vShow as Et, markRaw as Fa, nextTick as Io, watch as mr, createBlock as Pe, renderSlot as _n, Fragment as Ze, renderList as hr, computed as me, Transition as Fn, createTextVNode as Ia } from "vue";
|
|
2
|
+
import { B as Wr } from "./index-C4vwWvn_.js";
|
|
3
|
+
import { I as Ba, r as Aa } from "./image-D_Djf1PS.js";
|
|
4
4
|
import { B as In } from "./ColorPicker-RKWzhLBO.js";
|
|
5
5
|
import { u as Bn } from "./index-C1rSMuKA.js";
|
|
6
|
-
import { useCoreStore as
|
|
6
|
+
import { useCoreStore as Bo, useI18n as Ao } from "@feedmepos/mf-common";
|
|
7
7
|
import { u as An, b as z } from "./brandkit-CyhkM7H0.js";
|
|
8
8
|
import { useDialogChild as Mn, useDialog as Bt, useSnackbar as At } from "@feedmepos/ui-library";
|
|
9
|
-
import { _ as
|
|
9
|
+
import { _ as Mo } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
10
10
|
import { d as Nn } from "./dayjs.min-DnbY0e60.js";
|
|
11
|
-
import { v as
|
|
11
|
+
import { v as Ma } from "./v4-CKwdnpQf.js";
|
|
12
12
|
const Gn = { class: "fm-typo-en-body-md-400" }, Hn = { class: "flex gap-8 items-center" }, Vn = { class: "p-4 relative" }, zn = { class: "shadow-lg rounded-lg p-8" }, Wn = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "absolute top-8 right-8"
|
|
15
|
-
}, jn = { class: "space-y-4" }, qn = { class: "text-fm-color-typo-secondary" }, Xn = { class: "text-fm-color-typo-secondary px-4" }, ye = /* @__PURE__ */
|
|
15
|
+
}, jn = { class: "space-y-4" }, qn = { class: "text-fm-color-typo-secondary" }, Xn = { class: "text-fm-color-typo-secondary px-4" }, ye = /* @__PURE__ */ Qe({
|
|
16
16
|
__name: "ColorSelection",
|
|
17
17
|
props: {
|
|
18
18
|
initialColor: {},
|
|
@@ -27,10 +27,10 @@ const Gn = { class: "fm-typo-en-body-md-400" }, Hn = { class: "flex gap-8 items-
|
|
|
27
27
|
}, a = r;
|
|
28
28
|
return (o, n) => {
|
|
29
29
|
const s = oe("FmButton"), l = oe("FmPopover"), i = oe("FmIcon");
|
|
30
|
-
return
|
|
30
|
+
return D(), F("div", Gn, [
|
|
31
31
|
d("div", Hn, [
|
|
32
32
|
d("div", Vn, [
|
|
33
|
-
|
|
33
|
+
T(l, null, {
|
|
34
34
|
"popover-button": Te(() => [
|
|
35
35
|
d("div", {
|
|
36
36
|
class: "aspect-square w-[60px] rounded-sm border border-fm-color-neutral-gray-200 cursor-pointer",
|
|
@@ -41,7 +41,7 @@ const Gn = { class: "fm-typo-en-body-md-400" }, Hn = { class: "flex gap-8 items-
|
|
|
41
41
|
]),
|
|
42
42
|
default: Te(() => [
|
|
43
43
|
d("div", zn, [
|
|
44
|
-
|
|
44
|
+
T(b(In), {
|
|
45
45
|
copy: t,
|
|
46
46
|
onColorCopy: n[0] || (n[0] = (c) => t(c.cssColor)),
|
|
47
47
|
"default-format": "hex",
|
|
@@ -49,7 +49,7 @@ const Gn = { class: "fm-typo-en-body-md-400" }, Hn = { class: "flex gap-8 items-
|
|
|
49
49
|
onColorChange: n[1] || (n[1] = (c) => a("update", c.cssColor))
|
|
50
50
|
}, {
|
|
51
51
|
"copy-button": Te(() => [
|
|
52
|
-
|
|
52
|
+
T(s, {
|
|
53
53
|
class: "w-full h-32",
|
|
54
54
|
variant: "secondary",
|
|
55
55
|
icon: "content_copy"
|
|
@@ -61,12 +61,12 @@ const Gn = { class: "fm-typo-en-body-md-400" }, Hn = { class: "flex gap-8 items-
|
|
|
61
61
|
]),
|
|
62
62
|
_: 1
|
|
63
63
|
}),
|
|
64
|
-
o.initialColor != o.color ? (
|
|
64
|
+
o.initialColor != o.color ? (D(), F("div", Wn, [
|
|
65
65
|
d("div", {
|
|
66
66
|
onClick: n[2] || (n[2] = (c) => a("remove")),
|
|
67
67
|
class: "h-16 w-16 rounded-full bg-fm-color-neutral-white flex items-center justify-center cursor-pointer"
|
|
68
68
|
}, [
|
|
69
|
-
|
|
69
|
+
T(i, {
|
|
70
70
|
name: "close_small",
|
|
71
71
|
class: "!text-[16px]"
|
|
72
72
|
})
|
|
@@ -110,11 +110,11 @@ String.prototype.codePointAt || function() {
|
|
|
110
110
|
writable: !0
|
|
111
111
|
}) : String.prototype.codePointAt = r;
|
|
112
112
|
}();
|
|
113
|
-
function
|
|
113
|
+
function No() {
|
|
114
114
|
this.table = new Uint16Array(16), this.trans = new Uint16Array(288);
|
|
115
115
|
}
|
|
116
|
-
var $n = new
|
|
117
|
-
function
|
|
116
|
+
var $n = new No(), Yn = new No(), Go = new Uint8Array(30), Ho = new Uint16Array(30), Zn = new Uint8Array(30), Kn = new Uint16Array(30);
|
|
117
|
+
function Vo(e, r, t, a) {
|
|
118
118
|
var o, n;
|
|
119
119
|
for (o = 0; o < t; ++o)
|
|
120
120
|
e[o] = 0;
|
|
@@ -141,10 +141,10 @@ function Jn(e, r) {
|
|
|
141
141
|
r.trans[t] = t;
|
|
142
142
|
}
|
|
143
143
|
Jn($n, Yn);
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
Vo(Go, Ho, 4, 3);
|
|
145
|
+
Vo(Zn, Kn, 2, 1);
|
|
146
|
+
Go[28] = 0;
|
|
147
|
+
Ho[28] = 258;
|
|
148
148
|
function ar(e, r, t, a, o) {
|
|
149
149
|
return Math.pow(1 - o, 3) * e + 3 * Math.pow(1 - o, 2) * o * r + 3 * (1 - o) * Math.pow(o, 2) * t + Math.pow(o, 3) * a;
|
|
150
150
|
}
|
|
@@ -175,11 +175,11 @@ je.prototype.addBezier = function(e, r, t, a, o, n, s, l) {
|
|
|
175
175
|
0 < k && k < 1 && (f === 0 && this.addX(ar(i[f], c[f], v[f], u[f], k)), f === 1 && this.addY(ar(i[f], c[f], v[f], u[f], k)));
|
|
176
176
|
continue;
|
|
177
177
|
}
|
|
178
|
-
var
|
|
179
|
-
if (!(
|
|
180
|
-
var
|
|
181
|
-
0 <
|
|
182
|
-
var C = (-h - Math.sqrt(
|
|
178
|
+
var w = Math.pow(h, 2) - 4 * S * x;
|
|
179
|
+
if (!(w < 0)) {
|
|
180
|
+
var P = (-h + Math.sqrt(w)) / (2 * x);
|
|
181
|
+
0 < P && P < 1 && (f === 0 && this.addX(ar(i[f], c[f], v[f], u[f], P)), f === 1 && this.addY(ar(i[f], c[f], v[f], u[f], P)));
|
|
182
|
+
var C = (-h - Math.sqrt(w)) / (2 * x);
|
|
183
183
|
0 < C && C < 1 && (f === 0 && this.addX(ar(i[f], c[f], v[f], u[f], C)), f === 1 && this.addY(ar(i[f], c[f], v[f], u[f], C)));
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -299,13 +299,13 @@ se.prototype.toDOMElement = function(e) {
|
|
|
299
299
|
var r = this.toPathData(e), t = document.createElementNS("http://www.w3.org/2000/svg", "path");
|
|
300
300
|
return t.setAttribute("d", r), t;
|
|
301
301
|
};
|
|
302
|
-
function
|
|
302
|
+
function zo(e) {
|
|
303
303
|
throw new Error(e);
|
|
304
304
|
}
|
|
305
|
-
function
|
|
306
|
-
e ||
|
|
305
|
+
function Na(e, r) {
|
|
306
|
+
e || zo(r);
|
|
307
307
|
}
|
|
308
|
-
var M = { fail:
|
|
308
|
+
var M = { fail: zo, argument: Na, assert: Na }, Ga = 32768, Ha = 2147483648, nr = {}, E = {}, B = {};
|
|
309
309
|
function Ce(e) {
|
|
310
310
|
return function() {
|
|
311
311
|
return e;
|
|
@@ -333,7 +333,7 @@ E.USHORT = function(e) {
|
|
|
333
333
|
};
|
|
334
334
|
B.USHORT = Ce(2);
|
|
335
335
|
E.SHORT = function(e) {
|
|
336
|
-
return e >=
|
|
336
|
+
return e >= Ga && (e = -(2 * Ga - e)), [e >> 8 & 255, e & 255];
|
|
337
337
|
};
|
|
338
338
|
B.SHORT = Ce(2);
|
|
339
339
|
E.UINT24 = function(e) {
|
|
@@ -345,7 +345,7 @@ E.ULONG = function(e) {
|
|
|
345
345
|
};
|
|
346
346
|
B.ULONG = Ce(4);
|
|
347
347
|
E.LONG = function(e) {
|
|
348
|
-
return e >=
|
|
348
|
+
return e >= Ha && (e = -(2 * Ha - e)), [e >> 24 & 255, e >> 16 & 255, e >> 8 & 255, e & 255];
|
|
349
349
|
};
|
|
350
350
|
B.LONG = Ce(4);
|
|
351
351
|
E.FIXED = E.ULONG;
|
|
@@ -483,16 +483,16 @@ nr.MACSTRING = function(e, r, t, a) {
|
|
|
483
483
|
return n;
|
|
484
484
|
}
|
|
485
485
|
};
|
|
486
|
-
var
|
|
487
|
-
if (!
|
|
488
|
-
|
|
486
|
+
var Fr = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap(), Ir, Qn = function(e) {
|
|
487
|
+
if (!Ir) {
|
|
488
|
+
Ir = {};
|
|
489
489
|
for (var r in Rt)
|
|
490
|
-
|
|
490
|
+
Ir[r] = new String(r);
|
|
491
491
|
}
|
|
492
|
-
var t =
|
|
492
|
+
var t = Ir[e];
|
|
493
493
|
if (t !== void 0) {
|
|
494
|
-
if (
|
|
495
|
-
var a =
|
|
494
|
+
if (Fr) {
|
|
495
|
+
var a = Fr.get(t);
|
|
496
496
|
if (a !== void 0)
|
|
497
497
|
return a;
|
|
498
498
|
}
|
|
@@ -500,7 +500,7 @@ var _r = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap(), Fr, Qn =
|
|
|
500
500
|
if (o !== void 0) {
|
|
501
501
|
for (var n = {}, s = 0; s < o.length; s++)
|
|
502
502
|
n[o.charCodeAt(s)] = s + 128;
|
|
503
|
-
return
|
|
503
|
+
return Fr && Fr.set(t, n), n;
|
|
504
504
|
}
|
|
505
505
|
}
|
|
506
506
|
};
|
|
@@ -614,10 +614,10 @@ E.OPERAND = function(e, r) {
|
|
|
614
614
|
};
|
|
615
615
|
E.OP = E.BYTE;
|
|
616
616
|
B.OP = B.BYTE;
|
|
617
|
-
var
|
|
617
|
+
var Br = typeof WeakMap == "function" && /* @__PURE__ */ new WeakMap();
|
|
618
618
|
E.CHARSTRING = function(e) {
|
|
619
|
-
if (
|
|
620
|
-
var r =
|
|
619
|
+
if (Br) {
|
|
620
|
+
var r = Br.get(e);
|
|
621
621
|
if (r !== void 0)
|
|
622
622
|
return r;
|
|
623
623
|
}
|
|
@@ -625,7 +625,7 @@ E.CHARSTRING = function(e) {
|
|
|
625
625
|
var n = e[o];
|
|
626
626
|
t = t.concat(E[n.type](n.value));
|
|
627
627
|
}
|
|
628
|
-
return
|
|
628
|
+
return Br && Br.set(e, t), t;
|
|
629
629
|
};
|
|
630
630
|
B.CHARSTRING = function(e) {
|
|
631
631
|
return E.CHARSTRING(e).length;
|
|
@@ -696,7 +696,7 @@ function yr(e, r, t) {
|
|
|
696
696
|
a[o + 1] = { name: e + o, type: "USHORT", value: r[o] };
|
|
697
697
|
return a;
|
|
698
698
|
}
|
|
699
|
-
function
|
|
699
|
+
function Dt(e, r, t) {
|
|
700
700
|
var a = r.length, o = new Array(a + 1);
|
|
701
701
|
o[0] = { name: e + "Count", type: "USHORT", value: a };
|
|
702
702
|
for (var n = 0; n < a; n++)
|
|
@@ -710,7 +710,7 @@ function br(e, r, t) {
|
|
|
710
710
|
o = o.concat(t(r[n], n));
|
|
711
711
|
return o;
|
|
712
712
|
}
|
|
713
|
-
function
|
|
713
|
+
function Xr(e) {
|
|
714
714
|
e.format === 1 ? le.call(
|
|
715
715
|
this,
|
|
716
716
|
"coverageTable",
|
|
@@ -727,9 +727,9 @@ function qr(e) {
|
|
|
727
727
|
}))
|
|
728
728
|
) : M.assert(!1, "Coverage format must be 1 or 2.");
|
|
729
729
|
}
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
function
|
|
730
|
+
Xr.prototype = Object.create(le.prototype);
|
|
731
|
+
Xr.prototype.constructor = Xr;
|
|
732
|
+
function $r(e) {
|
|
733
733
|
le.call(
|
|
734
734
|
this,
|
|
735
735
|
"scriptListTable",
|
|
@@ -756,9 +756,9 @@ function Xr(e) {
|
|
|
756
756
|
})
|
|
757
757
|
);
|
|
758
758
|
}
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
function
|
|
759
|
+
$r.prototype = Object.create(le.prototype);
|
|
760
|
+
$r.prototype.constructor = $r;
|
|
761
|
+
function Yr(e) {
|
|
762
762
|
le.call(
|
|
763
763
|
this,
|
|
764
764
|
"featureListTable",
|
|
@@ -773,34 +773,34 @@ function $r(e) {
|
|
|
773
773
|
})
|
|
774
774
|
);
|
|
775
775
|
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
function
|
|
779
|
-
le.call(this, "lookupListTable",
|
|
776
|
+
Yr.prototype = Object.create(le.prototype);
|
|
777
|
+
Yr.prototype.constructor = Yr;
|
|
778
|
+
function Zr(e, r) {
|
|
779
|
+
le.call(this, "lookupListTable", Dt("lookup", e, function(t) {
|
|
780
780
|
var a = r[t.lookupType];
|
|
781
781
|
return M.assert(!!a, "Unable to write GSUB lookup type " + t.lookupType + " tables."), new le("lookupTable", [
|
|
782
782
|
{ name: "lookupType", type: "USHORT", value: t.lookupType },
|
|
783
783
|
{ name: "lookupFlag", type: "USHORT", value: t.lookupFlag }
|
|
784
|
-
].concat(
|
|
784
|
+
].concat(Dt("subtable", t.subtables, a)));
|
|
785
785
|
}));
|
|
786
786
|
}
|
|
787
|
-
|
|
788
|
-
|
|
787
|
+
Zr.prototype = Object.create(le.prototype);
|
|
788
|
+
Zr.prototype.constructor = Zr;
|
|
789
789
|
var L = {
|
|
790
790
|
Table: le,
|
|
791
791
|
Record: le,
|
|
792
|
-
Coverage:
|
|
793
|
-
ScriptList:
|
|
794
|
-
FeatureList:
|
|
795
|
-
LookupList:
|
|
792
|
+
Coverage: Xr,
|
|
793
|
+
ScriptList: $r,
|
|
794
|
+
FeatureList: Yr,
|
|
795
|
+
LookupList: Zr,
|
|
796
796
|
ushortList: yr,
|
|
797
|
-
tableList:
|
|
797
|
+
tableList: Dt,
|
|
798
798
|
recordList: br
|
|
799
799
|
};
|
|
800
|
-
function
|
|
800
|
+
function Va(e, r) {
|
|
801
801
|
return e.getUint8(r);
|
|
802
802
|
}
|
|
803
|
-
function
|
|
803
|
+
function Kr(e, r) {
|
|
804
804
|
return e.getUint16(r, !1);
|
|
805
805
|
}
|
|
806
806
|
function as(e, r) {
|
|
@@ -809,7 +809,7 @@ function as(e, r) {
|
|
|
809
809
|
function Mt(e, r) {
|
|
810
810
|
return e.getUint32(r, !1);
|
|
811
811
|
}
|
|
812
|
-
function
|
|
812
|
+
function Wo(e, r) {
|
|
813
813
|
var t = e.getInt16(r, !1), a = e.getUint16(r + 2, !1);
|
|
814
814
|
return t + a / 65535;
|
|
815
815
|
}
|
|
@@ -875,7 +875,7 @@ m.prototype.parseULong = function() {
|
|
|
875
875
|
};
|
|
876
876
|
m.prototype.parseOffset32 = m.prototype.parseULong;
|
|
877
877
|
m.prototype.parseFixed = function() {
|
|
878
|
-
var e =
|
|
878
|
+
var e = Wo(this.data, this.offset + this.relativeOffset);
|
|
879
879
|
return this.relativeOffset += 4, e;
|
|
880
880
|
};
|
|
881
881
|
m.prototype.parseString = function(e) {
|
|
@@ -893,7 +893,7 @@ m.prototype.parseLongDateTime = function() {
|
|
|
893
893
|
return e -= 2082844800, this.relativeOffset += 8, e;
|
|
894
894
|
};
|
|
895
895
|
m.prototype.parseVersion = function(e) {
|
|
896
|
-
var r =
|
|
896
|
+
var r = Kr(this.data, this.offset + this.relativeOffset), t = Kr(this.data, this.offset + this.relativeOffset + 2);
|
|
897
897
|
return this.relativeOffset += 4, e === void 0 && (e = 4096), r + t / e / 10;
|
|
898
898
|
};
|
|
899
899
|
m.prototype.skip = function(e, r) {
|
|
@@ -1080,7 +1080,7 @@ m.uLongList = m.prototype.parseULongList;
|
|
|
1080
1080
|
m.struct = m.prototype.parseStruct;
|
|
1081
1081
|
m.coverage = m.prototype.parseCoverage;
|
|
1082
1082
|
m.classDef = m.prototype.parseClassDef;
|
|
1083
|
-
var
|
|
1083
|
+
var za = {
|
|
1084
1084
|
reserved: m.uShort,
|
|
1085
1085
|
reqFeatureIndex: m.uShort,
|
|
1086
1086
|
featureIndexes: m.uShortList
|
|
@@ -1089,10 +1089,10 @@ m.prototype.parseScriptList = function() {
|
|
|
1089
1089
|
return this.parsePointer(m.recordList({
|
|
1090
1090
|
tag: m.tag,
|
|
1091
1091
|
script: m.pointer({
|
|
1092
|
-
defaultLangSys: m.pointer(
|
|
1092
|
+
defaultLangSys: m.pointer(za),
|
|
1093
1093
|
langSysRecords: m.recordList({
|
|
1094
1094
|
tag: m.tag,
|
|
1095
|
-
langSys: m.pointer(
|
|
1095
|
+
langSys: m.pointer(za)
|
|
1096
1096
|
})
|
|
1097
1097
|
})
|
|
1098
1098
|
})) || [];
|
|
@@ -1131,13 +1131,13 @@ m.prototype.parseFeatureVariationsList = function() {
|
|
|
1131
1131
|
}) || [];
|
|
1132
1132
|
};
|
|
1133
1133
|
var G = {
|
|
1134
|
-
getByte:
|
|
1135
|
-
getCard8:
|
|
1136
|
-
getUShort:
|
|
1137
|
-
getCard16:
|
|
1134
|
+
getByte: Va,
|
|
1135
|
+
getCard8: Va,
|
|
1136
|
+
getUShort: Kr,
|
|
1137
|
+
getCard16: Kr,
|
|
1138
1138
|
getShort: as,
|
|
1139
1139
|
getULong: Mt,
|
|
1140
|
-
getFixed:
|
|
1140
|
+
getFixed: Wo,
|
|
1141
1141
|
getTag: os,
|
|
1142
1142
|
getOffset: ns,
|
|
1143
1143
|
getBytes: ss,
|
|
@@ -1157,8 +1157,8 @@ function cs(e, r, t, a, o) {
|
|
|
1157
1157
|
var n;
|
|
1158
1158
|
e.segCount = n = r.parseUShort() >> 1, r.skip("uShort", 3), e.glyphIndexMap = {};
|
|
1159
1159
|
for (var s = new G.Parser(t, a + o + 14), l = new G.Parser(t, a + o + 16 + n * 2), i = new G.Parser(t, a + o + 16 + n * 4), c = new G.Parser(t, a + o + 16 + n * 6), v = a + o + 16 + n * 8, u = 0; u < n - 1; u += 1)
|
|
1160
|
-
for (var f = void 0, h = s.parseUShort(), x = l.parseUShort(), S = i.parseShort(), k = c.parseUShort(),
|
|
1161
|
-
k !== 0 ? (v = c.offset + c.relativeOffset - 2, v += k, v += (
|
|
1160
|
+
for (var f = void 0, h = s.parseUShort(), x = l.parseUShort(), S = i.parseShort(), k = c.parseUShort(), w = x; w <= h; w += 1)
|
|
1161
|
+
k !== 0 ? (v = c.offset + c.relativeOffset - 2, v += k, v += (w - x) * 2, f = G.getUShort(t, v), f !== 0 && (f = f + S & 65535)) : f = w + S & 65535, e.glyphIndexMap[w] = f;
|
|
1162
1162
|
}
|
|
1163
1163
|
function ds(e, r) {
|
|
1164
1164
|
var t = {};
|
|
@@ -1235,8 +1235,8 @@ function fs(e) {
|
|
|
1235
1235
|
for (n.segments = [], t = 0; t < e.length; t += 1) {
|
|
1236
1236
|
for (var s = e.get(t), l = 0; l < s.unicodes.length; l += 1)
|
|
1237
1237
|
ps(n, s.unicodes[l], t);
|
|
1238
|
-
n.segments = n.segments.sort(function(
|
|
1239
|
-
return
|
|
1238
|
+
n.segments = n.segments.sort(function(P, C) {
|
|
1239
|
+
return P.start - C.start;
|
|
1240
1240
|
});
|
|
1241
1241
|
}
|
|
1242
1242
|
vs(n);
|
|
@@ -1248,19 +1248,19 @@ function fs(e) {
|
|
|
1248
1248
|
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(v), 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(h), n.fields = n.fields.concat(x), n.cmap4Length = 14 + // Subtable header
|
|
1249
1249
|
v.length * 2 + 2 + // reservedPad
|
|
1250
1250
|
u.length * 2 + f.length * 2 + h.length * 2 + x.length * 2, !r) {
|
|
1251
|
-
var
|
|
1251
|
+
var w = 16 + // Subtable header
|
|
1252
1252
|
S.length * 4;
|
|
1253
1253
|
n.cmap12Offset = 12 + 2 * 2 + 4 + n.cmap4Length, n.fields = n.fields.concat([
|
|
1254
1254
|
{ name: "cmap12Format", type: "USHORT", value: 12 },
|
|
1255
1255
|
{ name: "cmap12Reserved", type: "USHORT", value: 0 },
|
|
1256
|
-
{ name: "cmap12Length", type: "ULONG", value:
|
|
1256
|
+
{ name: "cmap12Length", type: "ULONG", value: w },
|
|
1257
1257
|
{ name: "cmap12Language", type: "ULONG", value: 0 },
|
|
1258
1258
|
{ name: "cmap12nGroups", type: "ULONG", value: S.length / 3 }
|
|
1259
1259
|
]), n.fields = n.fields.concat(S);
|
|
1260
1260
|
}
|
|
1261
1261
|
return n;
|
|
1262
1262
|
}
|
|
1263
|
-
var hs = { parse: ds, make: fs },
|
|
1263
|
+
var hs = { parse: ds, make: fs }, jr = [
|
|
1264
1264
|
".notdef",
|
|
1265
1265
|
"space",
|
|
1266
1266
|
"exclam",
|
|
@@ -2161,7 +2161,7 @@ var hs = { parse: ds, make: fs }, Wr = [
|
|
|
2161
2161
|
"Yacutesmall",
|
|
2162
2162
|
"Thornsmall",
|
|
2163
2163
|
"Ydieresissmall"
|
|
2164
|
-
],
|
|
2164
|
+
], Wa = [
|
|
2165
2165
|
".notdef",
|
|
2166
2166
|
".null",
|
|
2167
2167
|
"nonmarkingreturn",
|
|
@@ -2421,10 +2421,10 @@ var hs = { parse: ds, make: fs }, Wr = [
|
|
|
2421
2421
|
"ccaron",
|
|
2422
2422
|
"dcroat"
|
|
2423
2423
|
];
|
|
2424
|
-
function
|
|
2424
|
+
function jo(e) {
|
|
2425
2425
|
this.font = e;
|
|
2426
2426
|
}
|
|
2427
|
-
|
|
2427
|
+
jo.prototype.charToGlyphIndex = function(e) {
|
|
2428
2428
|
var r = e.codePointAt(0), t = this.font.glyphs;
|
|
2429
2429
|
if (t) {
|
|
2430
2430
|
for (var a = 0; a < t.length; a += 1)
|
|
@@ -2434,17 +2434,17 @@ Wo.prototype.charToGlyphIndex = function(e) {
|
|
|
2434
2434
|
}
|
|
2435
2435
|
return null;
|
|
2436
2436
|
};
|
|
2437
|
-
function
|
|
2437
|
+
function Jr(e, r) {
|
|
2438
2438
|
this.encoding = e, this.charset = r;
|
|
2439
2439
|
}
|
|
2440
|
-
|
|
2440
|
+
Jr.prototype.charToGlyphIndex = function(e) {
|
|
2441
2441
|
var r = e.codePointAt(0), t = this.encoding[r];
|
|
2442
2442
|
return this.charset.indexOf(t);
|
|
2443
2443
|
};
|
|
2444
2444
|
function ys(e, r, t, a, o) {
|
|
2445
2445
|
e.beginPath(), e.moveTo(r, t), e.lineTo(a, o), e.stroke();
|
|
2446
2446
|
}
|
|
2447
|
-
var
|
|
2447
|
+
var Ye = { line: ys };
|
|
2448
2448
|
function bs(e, r) {
|
|
2449
2449
|
var t = r || new se();
|
|
2450
2450
|
return {
|
|
@@ -2457,19 +2457,19 @@ function bs(e, r) {
|
|
|
2457
2457
|
}
|
|
2458
2458
|
};
|
|
2459
2459
|
}
|
|
2460
|
-
function
|
|
2460
|
+
function xe(e) {
|
|
2461
2461
|
this.bindConstructorValues(e);
|
|
2462
2462
|
}
|
|
2463
|
-
|
|
2463
|
+
xe.prototype.bindConstructorValues = function(e) {
|
|
2464
2464
|
this.index = e.index || 0, this.name = e.name || null, this.unicode = e.unicode || void 0, this.unicodes = e.unicodes || e.unicode !== void 0 ? [e.unicode] : [], "xMin" in e && (this.xMin = e.xMin), "yMin" in e && (this.yMin = e.yMin), "xMax" in e && (this.xMax = e.xMax), "yMax" in e && (this.yMax = e.yMax), "advanceWidth" in e && (this.advanceWidth = e.advanceWidth), Object.defineProperty(this, "path", bs(this, e.path));
|
|
2465
2465
|
};
|
|
2466
|
-
|
|
2466
|
+
xe.prototype.addUnicode = function(e) {
|
|
2467
2467
|
this.unicodes.length === 0 && (this.unicode = e), this.unicodes.push(e);
|
|
2468
2468
|
};
|
|
2469
|
-
|
|
2469
|
+
xe.prototype.getBoundingBox = function() {
|
|
2470
2470
|
return this.path.getBoundingBox();
|
|
2471
2471
|
};
|
|
2472
|
-
|
|
2472
|
+
xe.prototype.getPath = function(e, r, t, a, o) {
|
|
2473
2473
|
e = e !== void 0 ? e : 0, r = r !== void 0 ? r : 0, t = t !== void 0 ? t : 72;
|
|
2474
2474
|
var n, s;
|
|
2475
2475
|
a || (a = {});
|
|
@@ -2499,7 +2499,7 @@ Se.prototype.getPath = function(e, r, t, a, o) {
|
|
|
2499
2499
|
}
|
|
2500
2500
|
return v;
|
|
2501
2501
|
};
|
|
2502
|
-
|
|
2502
|
+
xe.prototype.getContours = function() {
|
|
2503
2503
|
if (this.points === void 0)
|
|
2504
2504
|
return [];
|
|
2505
2505
|
for (var e = [], r = [], t = 0; t < this.points.length; t += 1) {
|
|
@@ -2508,7 +2508,7 @@ Se.prototype.getContours = function() {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
return M.argument(r.length === 0, "There are still points left in the current contour."), e;
|
|
2510
2510
|
};
|
|
2511
|
-
|
|
2511
|
+
xe.prototype.getMetrics = function() {
|
|
2512
2512
|
for (var e = this.path.commands, r = [], t = [], a = 0; a < e.length; a += 1) {
|
|
2513
2513
|
var o = e[a];
|
|
2514
2514
|
o.type !== "Z" && (r.push(o.x), t.push(o.y)), (o.type === "Q" || o.type === "C") && (r.push(o.x1), t.push(o.y1)), o.type === "C" && (r.push(o.x2), t.push(o.y2));
|
|
@@ -2522,10 +2522,10 @@ Se.prototype.getMetrics = function() {
|
|
|
2522
2522
|
};
|
|
2523
2523
|
return isFinite(n.xMin) || (n.xMin = 0), isFinite(n.xMax) || (n.xMax = this.advanceWidth), isFinite(n.yMin) || (n.yMin = 0), isFinite(n.yMax) || (n.yMax = 0), n.rightSideBearing = this.advanceWidth - n.leftSideBearing - (n.xMax - n.xMin), n;
|
|
2524
2524
|
};
|
|
2525
|
-
|
|
2525
|
+
xe.prototype.draw = function(e, r, t, a, o) {
|
|
2526
2526
|
this.getPath(r, t, a, o).draw(e);
|
|
2527
2527
|
};
|
|
2528
|
-
|
|
2528
|
+
xe.prototype.drawPoints = function(e, r, t, a) {
|
|
2529
2529
|
function o(u, f, h, x) {
|
|
2530
2530
|
e.beginPath();
|
|
2531
2531
|
for (var S = 0; S < u.length; S += 1)
|
|
@@ -2539,13 +2539,13 @@ Se.prototype.drawPoints = function(e, r, t, a) {
|
|
|
2539
2539
|
}
|
|
2540
2540
|
e.fillStyle = "blue", o(s, r, t, n), e.fillStyle = "red", o(l, r, t, n);
|
|
2541
2541
|
};
|
|
2542
|
-
|
|
2542
|
+
xe.prototype.drawMetrics = function(e, r, t, a) {
|
|
2543
2543
|
var o;
|
|
2544
|
-
r = r !== void 0 ? r : 0, t = t !== void 0 ? t : 0, a = a !== void 0 ? a : 24, o = 1 / this.path.unitsPerEm * a, e.lineWidth = 1, e.strokeStyle = "black",
|
|
2544
|
+
r = r !== void 0 ? r : 0, t = t !== void 0 ? t : 0, a = a !== void 0 ? a : 24, o = 1 / this.path.unitsPerEm * a, e.lineWidth = 1, e.strokeStyle = "black", Ye.line(e, r, -1e4, r, 1e4), Ye.line(e, -1e4, t, 1e4, t);
|
|
2545
2545
|
var n = this.xMin || 0, s = this.yMin || 0, l = this.xMax || 0, i = this.yMax || 0, c = this.advanceWidth || 0;
|
|
2546
|
-
e.strokeStyle = "blue",
|
|
2546
|
+
e.strokeStyle = "blue", Ye.line(e, r + n * o, -1e4, r + n * o, 1e4), Ye.line(e, r + l * o, -1e4, r + l * o, 1e4), Ye.line(e, -1e4, t + -s * o, 1e4, t + -s * o), Ye.line(e, -1e4, t + -i * o, 1e4, t + -i * o), e.strokeStyle = "green", Ye.line(e, r + c * o, -1e4, r + c * o, 1e4);
|
|
2547
2547
|
};
|
|
2548
|
-
function
|
|
2548
|
+
function Ar(e, r, t) {
|
|
2549
2549
|
Object.defineProperty(e, r, {
|
|
2550
2550
|
get: function() {
|
|
2551
2551
|
return e.path, e[t];
|
|
@@ -2581,21 +2581,21 @@ Nt.prototype.push = function(e, r) {
|
|
|
2581
2581
|
this.glyphs[e] = r, this.length++;
|
|
2582
2582
|
};
|
|
2583
2583
|
function ks(e, r) {
|
|
2584
|
-
return new
|
|
2584
|
+
return new xe({ index: r, font: e });
|
|
2585
2585
|
}
|
|
2586
2586
|
function Ss(e, r, t, a, o, n) {
|
|
2587
2587
|
return function() {
|
|
2588
|
-
var s = new
|
|
2588
|
+
var s = new xe({ index: r, font: e });
|
|
2589
2589
|
return s.path = function() {
|
|
2590
2590
|
t(s, a, o);
|
|
2591
2591
|
var l = n(e.glyphs, s);
|
|
2592
2592
|
return l.unitsPerEm = e.unitsPerEm, l;
|
|
2593
|
-
},
|
|
2593
|
+
}, Ar(s, "xMin", "_xMin"), Ar(s, "xMax", "_xMax"), Ar(s, "yMin", "_yMin"), Ar(s, "yMax", "_yMax"), s;
|
|
2594
2594
|
};
|
|
2595
2595
|
}
|
|
2596
2596
|
function xs(e, r, t, a) {
|
|
2597
2597
|
return function() {
|
|
2598
|
-
var o = new
|
|
2598
|
+
var o = new xe({ index: r, font: e });
|
|
2599
2599
|
return o.path = function() {
|
|
2600
2600
|
var n = t(e, o, a);
|
|
2601
2601
|
return n.unitsPerEm = e.unitsPerEm, n;
|
|
@@ -2603,20 +2603,20 @@ function xs(e, r, t, a) {
|
|
|
2603
2603
|
};
|
|
2604
2604
|
}
|
|
2605
2605
|
var Le = { GlyphSet: Nt, glyphLoader: ks, ttfGlyphLoader: Ss, cffGlyphLoader: xs };
|
|
2606
|
-
function
|
|
2606
|
+
function qo(e, r) {
|
|
2607
2607
|
if (e === r)
|
|
2608
2608
|
return !0;
|
|
2609
2609
|
if (Array.isArray(e) && Array.isArray(r)) {
|
|
2610
2610
|
if (e.length !== r.length)
|
|
2611
2611
|
return !1;
|
|
2612
2612
|
for (var t = 0; t < e.length; t += 1)
|
|
2613
|
-
if (!
|
|
2613
|
+
if (!qo(e[t], r[t]))
|
|
2614
2614
|
return !1;
|
|
2615
2615
|
return !0;
|
|
2616
2616
|
} else
|
|
2617
2617
|
return !1;
|
|
2618
2618
|
}
|
|
2619
|
-
function
|
|
2619
|
+
function Pt(e) {
|
|
2620
2620
|
var r;
|
|
2621
2621
|
return e.length < 1240 ? r = 107 : e.length < 33900 ? r = 1131 : r = 32768, r;
|
|
2622
2622
|
}
|
|
@@ -2691,7 +2691,7 @@ function Us(e) {
|
|
|
2691
2691
|
}
|
|
2692
2692
|
return r;
|
|
2693
2693
|
}
|
|
2694
|
-
function
|
|
2694
|
+
function Xo(e, r, t) {
|
|
2695
2695
|
r = r !== void 0 ? r : 0;
|
|
2696
2696
|
var a = new G.Parser(e, r), o = [], n = [];
|
|
2697
2697
|
for (t = t !== void 0 ? t : e.length; a.relativeOffset < t; ) {
|
|
@@ -2701,9 +2701,9 @@ function qo(e, r, t) {
|
|
|
2701
2701
|
return Us(o);
|
|
2702
2702
|
}
|
|
2703
2703
|
function gr(e, r) {
|
|
2704
|
-
return r <= 390 ? r =
|
|
2704
|
+
return r <= 390 ? r = jr[r] : r = e[r - 391], r;
|
|
2705
2705
|
}
|
|
2706
|
-
function
|
|
2706
|
+
function $o(e, r, t) {
|
|
2707
2707
|
for (var a = {}, o, n = 0; n < r.length; n += 1) {
|
|
2708
2708
|
var s = r[n];
|
|
2709
2709
|
if (Array.isArray(s.type)) {
|
|
@@ -2721,7 +2721,7 @@ function Es(e, r) {
|
|
|
2721
2721
|
var t = {};
|
|
2722
2722
|
return t.formatMajor = G.getCard8(e, r), t.formatMinor = G.getCard8(e, r + 1), t.size = G.getCard8(e, r + 2), t.offsetSize = G.getCard8(e, r + 3), t.startOffset = r, t.endOffset = r + 4, t;
|
|
2723
2723
|
}
|
|
2724
|
-
var
|
|
2724
|
+
var Yo = [
|
|
2725
2725
|
{ name: "version", op: 0, type: "SID" },
|
|
2726
2726
|
{ name: "notice", op: 1, type: "SID" },
|
|
2727
2727
|
{ name: "copyright", op: 1200, type: "SID" },
|
|
@@ -2757,29 +2757,29 @@ var $o = [
|
|
|
2757
2757
|
{ name: "fdArray", op: 1236, type: "offset" },
|
|
2758
2758
|
{ name: "fdSelect", op: 1237, type: "offset" },
|
|
2759
2759
|
{ name: "fontName", op: 1238, type: "SID" }
|
|
2760
|
-
],
|
|
2760
|
+
], Zo = [
|
|
2761
2761
|
{ name: "subrs", op: 19, type: "offset", value: 0 },
|
|
2762
2762
|
{ name: "defaultWidthX", op: 20, type: "number", value: 0 },
|
|
2763
2763
|
{ name: "nominalWidthX", op: 21, type: "number", value: 0 }
|
|
2764
2764
|
];
|
|
2765
2765
|
function Rs(e, r) {
|
|
2766
|
-
var t =
|
|
2767
|
-
return
|
|
2766
|
+
var t = Xo(e, 0, e.byteLength);
|
|
2767
|
+
return $o(t, Yo, r);
|
|
2768
2768
|
}
|
|
2769
|
-
function
|
|
2770
|
-
var o =
|
|
2771
|
-
return
|
|
2769
|
+
function Ko(e, r, t, a) {
|
|
2770
|
+
var o = Xo(e, r, t);
|
|
2771
|
+
return $o(o, Zo, a);
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2773
|
+
function ja(e, r, t, a) {
|
|
2774
2774
|
for (var o = [], n = 0; n < t.length; n += 1) {
|
|
2775
2775
|
var s = new DataView(new Uint8Array(t[n]).buffer), l = Rs(s, a);
|
|
2776
2776
|
l._subrs = [], l._subrsBias = 0, l._defaultWidthX = 0, l._nominalWidthX = 0;
|
|
2777
2777
|
var i = l.private[0], c = l.private[1];
|
|
2778
2778
|
if (i !== 0 && c !== 0) {
|
|
2779
|
-
var v =
|
|
2779
|
+
var v = Ko(e, c + r, i, a);
|
|
2780
2780
|
if (l._defaultWidthX = v.defaultWidthX, l._nominalWidthX = v.nominalWidthX, v.subrs !== 0) {
|
|
2781
2781
|
var u = c + v.subrs, f = Ge(e, u + r);
|
|
2782
|
-
l._subrs = f.objects, l._subrsBias =
|
|
2782
|
+
l._subrs = f.objects, l._subrsBias = Pt(l._subrs);
|
|
2783
2783
|
}
|
|
2784
2784
|
l._privateDict = v;
|
|
2785
2785
|
}
|
|
@@ -2810,7 +2810,7 @@ function Ls(e, r, t, a) {
|
|
|
2810
2810
|
throw new Error("Unknown charset format " + i);
|
|
2811
2811
|
return l;
|
|
2812
2812
|
}
|
|
2813
|
-
function
|
|
2813
|
+
function Ds(e, r, t) {
|
|
2814
2814
|
var a, o = {}, n = new G.Parser(e, r), s = n.parseCard8();
|
|
2815
2815
|
if (s === 0)
|
|
2816
2816
|
for (var l = n.parseCard8(), i = 0; i < l; i += 1)
|
|
@@ -2823,22 +2823,22 @@ function Ps(e, r, t) {
|
|
|
2823
2823
|
o[h] = a, a += 1;
|
|
2824
2824
|
} else
|
|
2825
2825
|
throw new Error("Unknown encoding format " + s);
|
|
2826
|
-
return new
|
|
2826
|
+
return new Jr(o, t);
|
|
2827
2827
|
}
|
|
2828
|
-
function
|
|
2829
|
-
var a, o, n, s, l = new se(), i = [], c = 0, v = !1, u = !1, f = 0, h = 0, x, S, k,
|
|
2828
|
+
function qa(e, r, t) {
|
|
2829
|
+
var a, o, n, s, l = new se(), i = [], c = 0, v = !1, u = !1, f = 0, h = 0, x, S, k, w;
|
|
2830
2830
|
if (e.isCIDFont) {
|
|
2831
|
-
var
|
|
2832
|
-
x = C._subrs, S = C._subrsBias, k = C._defaultWidthX,
|
|
2831
|
+
var P = e.tables.cff.topDict._fdSelect[r.index], C = e.tables.cff.topDict._fdArray[P];
|
|
2832
|
+
x = C._subrs, S = C._subrsBias, k = C._defaultWidthX, w = C._nominalWidthX;
|
|
2833
2833
|
} else
|
|
2834
|
-
x = e.tables.cff.topDict._subrs, S = e.tables.cff.topDict._subrsBias, k = e.tables.cff.topDict._defaultWidthX,
|
|
2834
|
+
x = e.tables.cff.topDict._subrs, S = e.tables.cff.topDict._subrsBias, k = e.tables.cff.topDict._defaultWidthX, w = e.tables.cff.topDict._nominalWidthX;
|
|
2835
2835
|
var q = k;
|
|
2836
2836
|
function U(A, j) {
|
|
2837
2837
|
u && l.closePath(), l.moveTo(A, j), u = !0;
|
|
2838
2838
|
}
|
|
2839
2839
|
function I() {
|
|
2840
2840
|
var A;
|
|
2841
|
-
A = i.length % 2 !== 0, A && !v && (q = i.shift() +
|
|
2841
|
+
A = i.length % 2 !== 0, A && !v && (q = i.shift() + w), c += i.length >> 1, i.length = 0, v = !0;
|
|
2842
2842
|
}
|
|
2843
2843
|
function V(A) {
|
|
2844
2844
|
for (var j, H, $, ue, ne, ee, ie, ce, de, pe, re, fe, K = 0; K < A.length; ) {
|
|
@@ -2851,7 +2851,7 @@ function ja(e, r, t) {
|
|
|
2851
2851
|
I();
|
|
2852
2852
|
break;
|
|
2853
2853
|
case 4:
|
|
2854
|
-
i.length > 1 && !v && (q = i.shift() +
|
|
2854
|
+
i.length > 1 && !v && (q = i.shift() + w, v = !0), h += i.pop(), U(f, h);
|
|
2855
2855
|
break;
|
|
2856
2856
|
case 5:
|
|
2857
2857
|
for (; i.length > 0; )
|
|
@@ -2893,7 +2893,7 @@ function ja(e, r, t) {
|
|
|
2893
2893
|
}
|
|
2894
2894
|
break;
|
|
2895
2895
|
case 14:
|
|
2896
|
-
i.length > 0 && !v && (q = i.shift() +
|
|
2896
|
+
i.length > 0 && !v && (q = i.shift() + w, v = !0), u && (l.closePath(), u = !1);
|
|
2897
2897
|
break;
|
|
2898
2898
|
case 18:
|
|
2899
2899
|
I();
|
|
@@ -2903,10 +2903,10 @@ function ja(e, r, t) {
|
|
|
2903
2903
|
I(), K += c + 7 >> 3;
|
|
2904
2904
|
break;
|
|
2905
2905
|
case 21:
|
|
2906
|
-
i.length > 2 && !v && (q = i.shift() +
|
|
2906
|
+
i.length > 2 && !v && (q = i.shift() + w, v = !0), h += i.pop(), f += i.pop(), U(f, h);
|
|
2907
2907
|
break;
|
|
2908
2908
|
case 22:
|
|
2909
|
-
i.length > 1 && !v && (q = i.shift() +
|
|
2909
|
+
i.length > 1 && !v && (q = i.shift() + w, v = !0), f += i.pop(), U(f, h);
|
|
2910
2910
|
break;
|
|
2911
2911
|
case 23:
|
|
2912
2912
|
I();
|
|
@@ -2950,7 +2950,7 @@ function ja(e, r, t) {
|
|
|
2950
2950
|
}
|
|
2951
2951
|
return V(t), r.advanceWidth = q, l;
|
|
2952
2952
|
}
|
|
2953
|
-
function
|
|
2953
|
+
function Ps(e, r, t, a) {
|
|
2954
2954
|
var o = [], n, s = new G.Parser(e, r), l = s.parseCard8();
|
|
2955
2955
|
if (l === 0)
|
|
2956
2956
|
for (var i = 0; i < t; i++) {
|
|
@@ -2980,8 +2980,8 @@ function Ds(e, r, t, a) {
|
|
|
2980
2980
|
function _s(e, r, t, a) {
|
|
2981
2981
|
t.tables.cff = {};
|
|
2982
2982
|
var o = Es(e, r), n = Ge(e, o.endOffset, G.bytesToString), s = Ge(e, n.endOffset), l = Ge(e, s.endOffset, G.bytesToString), i = Ge(e, l.endOffset);
|
|
2983
|
-
t.gsubrs = i.objects, t.gsubrsBias =
|
|
2984
|
-
var c =
|
|
2983
|
+
t.gsubrs = i.objects, t.gsubrsBias = Pt(t.gsubrs);
|
|
2984
|
+
var c = ja(e, r, s.objects, l.objects);
|
|
2985
2985
|
if (c.length !== 1)
|
|
2986
2986
|
throw new Error("CFF table has too many fonts in 'FontSet' - count of fonts NameIndex.length = " + c.length);
|
|
2987
2987
|
var v = c[0];
|
|
@@ -2990,32 +2990,32 @@ function _s(e, r, t, a) {
|
|
|
2990
2990
|
if (u === 0 || f === 0)
|
|
2991
2991
|
throw new Error("Font is marked as a CID font, but FDArray and/or FDSelect information is missing");
|
|
2992
2992
|
u += r;
|
|
2993
|
-
var h = Ge(e, u), x =
|
|
2994
|
-
v._fdArray = x, f += r, v._fdSelect =
|
|
2993
|
+
var h = Ge(e, u), x = ja(e, r, h.objects, l.objects);
|
|
2994
|
+
v._fdArray = x, f += r, v._fdSelect = Ps(e, f, t.numGlyphs, x.length);
|
|
2995
2995
|
}
|
|
2996
|
-
var S = r + v.private[1], k =
|
|
2996
|
+
var S = r + v.private[1], k = Ko(e, S, v.private[0], l.objects);
|
|
2997
2997
|
if (t.defaultWidthX = k.defaultWidthX, t.nominalWidthX = k.nominalWidthX, k.subrs !== 0) {
|
|
2998
|
-
var
|
|
2999
|
-
t.subrs =
|
|
2998
|
+
var w = S + k.subrs, P = Ge(e, w);
|
|
2999
|
+
t.subrs = P.objects, t.subrsBias = Pt(t.subrs);
|
|
3000
3000
|
} else
|
|
3001
3001
|
t.subrs = [], t.subrsBias = 0;
|
|
3002
3002
|
var C;
|
|
3003
3003
|
a.lowMemory ? (C = Ts(e, r + v.charStrings), t.nGlyphs = C.offsets.length) : (C = Ge(e, r + v.charStrings), t.nGlyphs = C.objects.length);
|
|
3004
3004
|
var q = Ls(e, r + v.charset, t.nGlyphs, l.objects);
|
|
3005
|
-
if (v.encoding === 0 ? t.cffEncoding = new
|
|
3005
|
+
if (v.encoding === 0 ? t.cffEncoding = new Jr(gs, q) : v.encoding === 1 ? t.cffEncoding = new Jr(ms, q) : t.cffEncoding = Ds(e, r + v.encoding, q), t.encoding = t.encoding || t.cffEncoding, t.glyphs = new Le.GlyphSet(t), a.lowMemory)
|
|
3006
3006
|
t._push = function(V) {
|
|
3007
3007
|
var A = ws(V, C.offsets, e, r + v.charStrings);
|
|
3008
|
-
t.glyphs.push(V, Le.cffGlyphLoader(t, V,
|
|
3008
|
+
t.glyphs.push(V, Le.cffGlyphLoader(t, V, qa, A));
|
|
3009
3009
|
};
|
|
3010
3010
|
else
|
|
3011
3011
|
for (var U = 0; U < t.nGlyphs; U += 1) {
|
|
3012
3012
|
var I = C.objects[U];
|
|
3013
|
-
t.glyphs.push(U, Le.cffGlyphLoader(t, U,
|
|
3013
|
+
t.glyphs.push(U, Le.cffGlyphLoader(t, U, qa, I));
|
|
3014
3014
|
}
|
|
3015
3015
|
}
|
|
3016
|
-
function
|
|
3017
|
-
var t, a =
|
|
3018
|
-
return a >= 0 && (t = a), a = r.indexOf(e), a >= 0 ? t = a +
|
|
3016
|
+
function Jo(e, r) {
|
|
3017
|
+
var t, a = jr.indexOf(e);
|
|
3018
|
+
return a >= 0 && (t = a), a = r.indexOf(e), a >= 0 ? t = a + jr.length : (t = jr.length + r.length, r.push(e)), t;
|
|
3019
3019
|
}
|
|
3020
3020
|
function Fs() {
|
|
3021
3021
|
return new L.Record("Header", [
|
|
@@ -3034,20 +3034,20 @@ function Is(e) {
|
|
|
3034
3034
|
r.names.push({ name: "name_" + t, type: "NAME", value: e[t] });
|
|
3035
3035
|
return r;
|
|
3036
3036
|
}
|
|
3037
|
-
function
|
|
3037
|
+
function Qo(e, r, t) {
|
|
3038
3038
|
for (var a = {}, o = 0; o < e.length; o += 1) {
|
|
3039
3039
|
var n = e[o], s = r[n.name];
|
|
3040
|
-
s !== void 0 && !
|
|
3040
|
+
s !== void 0 && !qo(s, n.value) && (n.type === "SID" && (s = Jo(s, t)), a[n.op] = { name: n.name, type: n.type, value: s });
|
|
3041
3041
|
}
|
|
3042
3042
|
return a;
|
|
3043
3043
|
}
|
|
3044
|
-
function
|
|
3044
|
+
function Xa(e, r) {
|
|
3045
3045
|
var t = new L.Record("Top DICT", [
|
|
3046
3046
|
{ name: "dict", type: "DICT", value: {} }
|
|
3047
3047
|
]);
|
|
3048
|
-
return t.dict =
|
|
3048
|
+
return t.dict = Qo(Yo, e, r), t;
|
|
3049
3049
|
}
|
|
3050
|
-
function
|
|
3050
|
+
function $a(e) {
|
|
3051
3051
|
var r = new L.Record("Top DICT INDEX", [
|
|
3052
3052
|
{ name: "topDicts", type: "INDEX", value: [] }
|
|
3053
3053
|
]);
|
|
@@ -3071,7 +3071,7 @@ function Ms(e, r) {
|
|
|
3071
3071
|
for (var t = new L.Record("Charsets", [
|
|
3072
3072
|
{ name: "format", type: "Card8", value: 0 }
|
|
3073
3073
|
]), a = 0; a < e.length; a += 1) {
|
|
3074
|
-
var o = e[a], n =
|
|
3074
|
+
var o = e[a], n = Jo(o, r);
|
|
3075
3075
|
t.fields.push({ name: "glyph_" + a, type: "SID", value: n });
|
|
3076
3076
|
}
|
|
3077
3077
|
return t;
|
|
@@ -3117,7 +3117,7 @@ function Hs(e, r) {
|
|
|
3117
3117
|
var t = new L.Record("Private DICT", [
|
|
3118
3118
|
{ name: "dict", type: "DICT", value: {} }
|
|
3119
3119
|
]);
|
|
3120
|
-
return t.dict =
|
|
3120
|
+
return t.dict = Qo(Zo, e, r), t;
|
|
3121
3121
|
}
|
|
3122
3122
|
function Vs(e, r) {
|
|
3123
3123
|
for (var t = new L.Table("CFF ", [
|
|
@@ -3144,10 +3144,10 @@ function Vs(e, r) {
|
|
|
3144
3144
|
l = e.get(i), s.push(l.name);
|
|
3145
3145
|
var c = [];
|
|
3146
3146
|
t.header = Fs(), t.nameIndex = Is([r.postScriptName]);
|
|
3147
|
-
var v =
|
|
3148
|
-
t.topDictIndex =
|
|
3147
|
+
var v = Xa(o, c);
|
|
3148
|
+
t.topDictIndex = $a(v), t.globalSubrIndex = As(), t.charsets = Ms(s, c), t.charStringsIndex = Gs(e), t.privateDict = Hs(n, c), t.stringIndex = Bs(c);
|
|
3149
3149
|
var u = t.header.sizeOf() + t.nameIndex.sizeOf() + t.topDictIndex.sizeOf() + t.stringIndex.sizeOf() + t.globalSubrIndex.sizeOf();
|
|
3150
|
-
return o.charset = u, o.encoding = 0, o.charStrings = o.charset + t.charsets.sizeOf(), o.private[1] = o.charStrings + t.charStringsIndex.sizeOf(), v =
|
|
3150
|
+
return o.charset = u, o.encoding = 0, o.charStrings = o.charset + t.charsets.sizeOf(), o.private[1] = o.charStrings + t.charStringsIndex.sizeOf(), v = Xa(o, c), t.topDictIndex = $a(v), t;
|
|
3151
3151
|
}
|
|
3152
3152
|
var zs = { parse: _s, make: Vs };
|
|
3153
3153
|
function Ws(e, r) {
|
|
@@ -3261,7 +3261,7 @@ function ni(e) {
|
|
|
3261
3261
|
{ name: "numGlyphs", type: "USHORT", value: e }
|
|
3262
3262
|
]);
|
|
3263
3263
|
}
|
|
3264
|
-
var si = { parse: oi, make: ni },
|
|
3264
|
+
var si = { parse: oi, make: ni }, en = [
|
|
3265
3265
|
"copyright",
|
|
3266
3266
|
// 0
|
|
3267
3267
|
"fontFamily",
|
|
@@ -3308,7 +3308,7 @@ var si = { parse: oi, make: ni }, Qo = [
|
|
|
3308
3308
|
// 21
|
|
3309
3309
|
"wwsSubfamily"
|
|
3310
3310
|
// 22
|
|
3311
|
-
],
|
|
3311
|
+
], rn = {
|
|
3312
3312
|
0: "en",
|
|
3313
3313
|
1: "fr",
|
|
3314
3314
|
2: "de",
|
|
@@ -3667,7 +3667,7 @@ var si = { parse: oi, make: ni }, Qo = [
|
|
|
3667
3667
|
// langAzerbaijanRoman → smRoman
|
|
3668
3668
|
151: 0
|
|
3669
3669
|
// langNynorsk → smRoman
|
|
3670
|
-
},
|
|
3670
|
+
}, tn = {
|
|
3671
3671
|
1078: "af",
|
|
3672
3672
|
1052: "sq",
|
|
3673
3673
|
1156: "gsw",
|
|
@@ -3890,9 +3890,9 @@ function li(e, r, t) {
|
|
|
3890
3890
|
return t[r];
|
|
3891
3891
|
break;
|
|
3892
3892
|
case 1:
|
|
3893
|
-
return en[r];
|
|
3894
|
-
case 3:
|
|
3895
3893
|
return rn[r];
|
|
3894
|
+
case 3:
|
|
3895
|
+
return tn[r];
|
|
3896
3896
|
}
|
|
3897
3897
|
}
|
|
3898
3898
|
var _t = "utf-16", ui = {
|
|
@@ -3986,7 +3986,7 @@ var _t = "utf-16", ui = {
|
|
|
3986
3986
|
146: "x-mac-gaelic"
|
|
3987
3987
|
// langIrishGaelicScript
|
|
3988
3988
|
};
|
|
3989
|
-
function
|
|
3989
|
+
function an(e, r, t) {
|
|
3990
3990
|
switch (e) {
|
|
3991
3991
|
case 0:
|
|
3992
3992
|
return _t;
|
|
@@ -4000,12 +4000,12 @@ function tn(e, r, t) {
|
|
|
4000
4000
|
}
|
|
4001
4001
|
function di(e, r, t) {
|
|
4002
4002
|
for (var a = {}, o = new G.Parser(e, r), n = o.parseUShort(), s = o.parseUShort(), l = o.offset + o.parseUShort(), i = 0; i < s; i++) {
|
|
4003
|
-
var c = o.parseUShort(), v = o.parseUShort(), u = o.parseUShort(), f = o.parseUShort(), h =
|
|
4004
|
-
if (
|
|
4005
|
-
var
|
|
4006
|
-
if (
|
|
4003
|
+
var c = o.parseUShort(), v = o.parseUShort(), u = o.parseUShort(), f = o.parseUShort(), h = en[f] || f, x = o.parseUShort(), S = o.parseUShort(), k = li(c, u, t), w = an(c, v, u);
|
|
4004
|
+
if (w !== void 0 && k !== void 0) {
|
|
4005
|
+
var P = void 0;
|
|
4006
|
+
if (w === _t ? P = nr.UTF16(e, l + S, x) : P = nr.MACSTRING(e, l + S, x, w), P) {
|
|
4007
4007
|
var C = a[h];
|
|
4008
|
-
C === void 0 && (C = a[h] = {}), C[k] =
|
|
4008
|
+
C === void 0 && (C = a[h] = {}), C[k] = P;
|
|
4009
4009
|
}
|
|
4010
4010
|
}
|
|
4011
4011
|
}
|
|
@@ -4017,7 +4017,7 @@ function ft(e) {
|
|
|
4017
4017
|
r[e[t]] = parseInt(t);
|
|
4018
4018
|
return r;
|
|
4019
4019
|
}
|
|
4020
|
-
function
|
|
4020
|
+
function Ya(e, r, t, a, o, n) {
|
|
4021
4021
|
return new L.Record("NameRecord", [
|
|
4022
4022
|
{ name: "platformID", type: "USHORT", value: e },
|
|
4023
4023
|
{ name: "encodingID", type: "USHORT", value: r },
|
|
@@ -4039,7 +4039,7 @@ function pi(e, r) {
|
|
|
4039
4039
|
}
|
|
4040
4040
|
return -1;
|
|
4041
4041
|
}
|
|
4042
|
-
function
|
|
4042
|
+
function Za(e, r) {
|
|
4043
4043
|
var t = pi(e, r);
|
|
4044
4044
|
if (t < 0) {
|
|
4045
4045
|
t = r.length;
|
|
@@ -4049,32 +4049,32 @@ function Ya(e, r) {
|
|
|
4049
4049
|
return t;
|
|
4050
4050
|
}
|
|
4051
4051
|
function vi(e, r) {
|
|
4052
|
-
var t, a = [], o = {}, n = ft(
|
|
4052
|
+
var t, a = [], o = {}, n = ft(en);
|
|
4053
4053
|
for (var s in e) {
|
|
4054
4054
|
var l = n[s];
|
|
4055
4055
|
if (l === void 0 && (l = s), t = parseInt(l), isNaN(t))
|
|
4056
4056
|
throw new Error('Name table entry "' + s + '" does not exist, see nameTableNames for complete list.');
|
|
4057
4057
|
o[t] = e[s], a.push(t);
|
|
4058
4058
|
}
|
|
4059
|
-
for (var i = ft(
|
|
4059
|
+
for (var i = ft(rn), c = ft(tn), v = [], u = [], f = 0; f < a.length; f++) {
|
|
4060
4060
|
t = a[f];
|
|
4061
4061
|
var h = o[t];
|
|
4062
4062
|
for (var x in h) {
|
|
4063
|
-
var S = h[x], k = 1,
|
|
4064
|
-
q === void 0 && (k = 0,
|
|
4065
|
-
var U =
|
|
4066
|
-
v.push(
|
|
4063
|
+
var S = h[x], k = 1, w = i[x], P = ii[w], C = an(k, P, w), q = E.MACSTRING(S, C);
|
|
4064
|
+
q === void 0 && (k = 0, w = r.indexOf(x), w < 0 && (w = r.length, r.push(x)), P = 4, q = E.UTF16(S));
|
|
4065
|
+
var U = Za(q, u);
|
|
4066
|
+
v.push(Ya(
|
|
4067
4067
|
k,
|
|
4068
|
-
|
|
4069
|
-
|
|
4068
|
+
P,
|
|
4069
|
+
w,
|
|
4070
4070
|
t,
|
|
4071
4071
|
q.length,
|
|
4072
4072
|
U
|
|
4073
4073
|
));
|
|
4074
4074
|
var I = c[x];
|
|
4075
4075
|
if (I !== void 0) {
|
|
4076
|
-
var V = E.UTF16(S), A =
|
|
4077
|
-
v.push(
|
|
4076
|
+
var V = E.UTF16(S), A = Za(V, u);
|
|
4077
|
+
v.push(Ya(
|
|
4078
4078
|
3,
|
|
4079
4079
|
1,
|
|
4080
4080
|
I,
|
|
@@ -4409,12 +4409,12 @@ function mi(e) {
|
|
|
4409
4409
|
{ name: "usMaxContext", type: "USHORT", value: 0 }
|
|
4410
4410
|
], e);
|
|
4411
4411
|
}
|
|
4412
|
-
var
|
|
4412
|
+
var Ka = { parse: gi, make: mi, unicodeRanges: Ft, getUnicodeRange: hi };
|
|
4413
4413
|
function yi(e, r) {
|
|
4414
4414
|
var t = {}, a = new G.Parser(e, r);
|
|
4415
4415
|
switch (t.version = a.parseVersion(), t.italicAngle = a.parseFixed(), t.underlinePosition = a.parseShort(), t.underlineThickness = a.parseShort(), t.isFixedPitch = a.parseULong(), t.minMemType42 = a.parseULong(), t.maxMemType42 = a.parseULong(), t.minMemType1 = a.parseULong(), t.maxMemType1 = a.parseULong(), t.version) {
|
|
4416
4416
|
case 1:
|
|
4417
|
-
t.names =
|
|
4417
|
+
t.names = Wa.slice();
|
|
4418
4418
|
break;
|
|
4419
4419
|
case 2:
|
|
4420
4420
|
t.numberOfGlyphs = a.parseUShort(), t.glyphNameIndex = new Array(t.numberOfGlyphs);
|
|
@@ -4422,7 +4422,7 @@ function yi(e, r) {
|
|
|
4422
4422
|
t.glyphNameIndex[o] = a.parseUShort();
|
|
4423
4423
|
t.names = [];
|
|
4424
4424
|
for (var n = 0; n < t.numberOfGlyphs; n++)
|
|
4425
|
-
if (t.glyphNameIndex[n] >=
|
|
4425
|
+
if (t.glyphNameIndex[n] >= Wa.length) {
|
|
4426
4426
|
var s = a.parseChar();
|
|
4427
4427
|
t.names.push(a.parseString(s));
|
|
4428
4428
|
}
|
|
@@ -4718,7 +4718,7 @@ function Oi(e) {
|
|
|
4718
4718
|
return o.fields.push({ name: "stringPool", type: "CHARARRAY", value: t }), o;
|
|
4719
4719
|
}
|
|
4720
4720
|
var Ci = { parse: wi, make: Oi };
|
|
4721
|
-
function
|
|
4721
|
+
function Ja(e) {
|
|
4722
4722
|
return Math.log(e) / Math.log(2) | 0;
|
|
4723
4723
|
}
|
|
4724
4724
|
function Gt(e) {
|
|
@@ -4728,7 +4728,7 @@ function Gt(e) {
|
|
|
4728
4728
|
r += (e[t] << 24) + (e[t + 1] << 16) + (e[t + 2] << 8) + e[t + 3];
|
|
4729
4729
|
return r %= Math.pow(2, 32), r;
|
|
4730
4730
|
}
|
|
4731
|
-
function
|
|
4731
|
+
function Qa(e, r, t, a) {
|
|
4732
4732
|
return new L.Record("Table Record", [
|
|
4733
4733
|
{ name: "tag", type: "TAG", value: e !== void 0 ? e : "" },
|
|
4734
4734
|
{ name: "checkSum", type: "ULONG", value: r !== void 0 ? r : 0 },
|
|
@@ -4736,7 +4736,7 @@ function Ja(e, r, t, a) {
|
|
|
4736
4736
|
{ name: "length", type: "ULONG", value: a !== void 0 ? a : 0 }
|
|
4737
4737
|
]);
|
|
4738
4738
|
}
|
|
4739
|
-
function
|
|
4739
|
+
function on(e) {
|
|
4740
4740
|
var r = new L.Table("sfnt", [
|
|
4741
4741
|
{ name: "version", type: "TAG", value: "OTTO" },
|
|
4742
4742
|
{ name: "numTables", type: "USHORT", value: 0 },
|
|
@@ -4745,14 +4745,14 @@ function an(e) {
|
|
|
4745
4745
|
{ name: "rangeShift", type: "USHORT", value: 0 }
|
|
4746
4746
|
]);
|
|
4747
4747
|
r.tables = e, r.numTables = e.length;
|
|
4748
|
-
var t = Math.pow(2,
|
|
4749
|
-
r.searchRange = 16 * t, r.entrySelector =
|
|
4750
|
-
for (var a = [], o = [], n = r.sizeOf() +
|
|
4748
|
+
var t = Math.pow(2, Ja(r.numTables));
|
|
4749
|
+
r.searchRange = 16 * t, r.entrySelector = Ja(t), r.rangeShift = r.numTables * 16 - r.searchRange;
|
|
4750
|
+
for (var a = [], o = [], n = r.sizeOf() + Qa().sizeOf() * r.numTables; n % 4 !== 0; )
|
|
4751
4751
|
n += 1, o.push({ name: "padding", type: "BYTE", value: 0 });
|
|
4752
4752
|
for (var s = 0; s < e.length; s += 1) {
|
|
4753
4753
|
var l = e[s];
|
|
4754
4754
|
M.argument(l.tableName.length === 4, "Table name" + l.tableName + " is invalid.");
|
|
4755
|
-
var i = l.sizeOf(), c =
|
|
4755
|
+
var i = l.sizeOf(), c = Qa(l.tableName, Gt(l.encode()), n, i);
|
|
4756
4756
|
for (a.push({ name: c.tag + " Table Record", type: "RECORD", value: c }), o.push({ name: l.tableName + " table", type: "RECORD", value: l }), n += i, M.argument(!isNaN(n), "Something went wrong calculating the offset."); n % 4 !== 0; )
|
|
4757
4757
|
n += 1, o.push({ name: "padding", type: "BYTE", value: 0 });
|
|
4758
4758
|
}
|
|
@@ -4760,7 +4760,7 @@ function an(e) {
|
|
|
4760
4760
|
return v.value.tag > u.value.tag ? 1 : -1;
|
|
4761
4761
|
}), r.fields = r.fields.concat(a), r.fields = r.fields.concat(o), r;
|
|
4762
4762
|
}
|
|
4763
|
-
function
|
|
4763
|
+
function eo(e, r, t) {
|
|
4764
4764
|
for (var a = 0; a < r.length; a += 1) {
|
|
4765
4765
|
var o = e.charToGlyphIndex(r[a]);
|
|
4766
4766
|
if (o > 0) {
|
|
@@ -4781,20 +4781,20 @@ function Ei(e) {
|
|
|
4781
4781
|
if (isNaN(S.advanceWidth))
|
|
4782
4782
|
throw new Error("Glyph " + S.name + " (" + x + "): advanceWidth is not a number.");
|
|
4783
4783
|
(i > k || i === void 0) && k > 0 && (i = k), c < k && (c = k);
|
|
4784
|
-
var
|
|
4785
|
-
if (
|
|
4786
|
-
v |= 1 <<
|
|
4787
|
-
else if (
|
|
4788
|
-
u |= 1 <<
|
|
4789
|
-
else if (
|
|
4790
|
-
f |= 1 <<
|
|
4791
|
-
else if (
|
|
4792
|
-
h |= 1 <<
|
|
4784
|
+
var w = Ka.getUnicodeRange(k);
|
|
4785
|
+
if (w < 32)
|
|
4786
|
+
v |= 1 << w;
|
|
4787
|
+
else if (w < 64)
|
|
4788
|
+
u |= 1 << w - 32;
|
|
4789
|
+
else if (w < 96)
|
|
4790
|
+
f |= 1 << w - 64;
|
|
4791
|
+
else if (w < 123)
|
|
4792
|
+
h |= 1 << w - 96;
|
|
4793
4793
|
else
|
|
4794
4794
|
throw new Error("Unicode ranges bits > 123 are reserved for internal usage");
|
|
4795
4795
|
if (S.name !== ".notdef") {
|
|
4796
|
-
var
|
|
4797
|
-
r.push(
|
|
4796
|
+
var P = S.getMetrics();
|
|
4797
|
+
r.push(P.xMin), t.push(P.yMin), a.push(P.xMax), o.push(P.yMax), s.push(P.leftSideBearing), l.push(P.rightSideBearing), n.push(S.advanceWidth);
|
|
4798
4798
|
}
|
|
4799
4799
|
}
|
|
4800
4800
|
var C = {
|
|
@@ -4827,7 +4827,7 @@ function Ei(e) {
|
|
|
4827
4827
|
minRightSideBearing: C.minRightSideBearing,
|
|
4828
4828
|
xMaxExtent: C.maxLeftSideBearing + (C.xMax - C.xMin),
|
|
4829
4829
|
numberOfHMetrics: e.glyphs.length
|
|
4830
|
-
}), I = si.make(e.glyphs.length), V =
|
|
4830
|
+
}), I = si.make(e.glyphs.length), V = Ka.make(Object.assign({
|
|
4831
4831
|
xAvgCharWidth: Math.round(C.advanceWidthAvg),
|
|
4832
4832
|
usFirstCharIndex: i,
|
|
4833
4833
|
usLastCharIndex: c,
|
|
@@ -4846,8 +4846,8 @@ function Ei(e) {
|
|
|
4846
4846
|
usWinDescent: Math.abs(C.yMin),
|
|
4847
4847
|
ulCodePageRange1: 1,
|
|
4848
4848
|
// FIXME: hard-code Latin 1 support for now
|
|
4849
|
-
sxHeight:
|
|
4850
|
-
sCapHeight:
|
|
4849
|
+
sxHeight: eo(e, "xyvw", { yMax: Math.round(C.ascender / 2) }).yMax,
|
|
4850
|
+
sCapHeight: eo(e, "HIKLEFJMNTZBDPRAGOQSUVWXY", C).yMax,
|
|
4851
4851
|
usDefaultChar: e.hasChar(" ") ? 32 : 0,
|
|
4852
4852
|
// Use space as the default character, if available.
|
|
4853
4853
|
usBreakChar: e.hasChar(" ") ? 32 : 0
|
|
@@ -4868,16 +4868,16 @@ function Ei(e) {
|
|
|
4868
4868
|
fontBBox: [0, C.yMin, C.ascender, C.advanceWidthMax]
|
|
4869
4869
|
}), K = e.metas && Object.keys(e.metas).length > 0 ? Ci.make(e.metas) : void 0, te = [q, U, I, V, de, j, re, fe, A];
|
|
4870
4870
|
pe && te.push(pe), e.tables.gsub && te.push(Ti.make(e.tables.gsub)), K && te.push(K);
|
|
4871
|
-
for (var
|
|
4872
|
-
if (ur[
|
|
4873
|
-
ur[
|
|
4871
|
+
for (var er = on(te), lr = er.encode(), De = Gt(lr), ur = er.fields, Be = !1, rr = 0; rr < ur.length; rr += 1)
|
|
4872
|
+
if (ur[rr].name === "head table") {
|
|
4873
|
+
ur[rr].value.checkSumAdjustment = 2981146554 - De, Be = !0;
|
|
4874
4874
|
break;
|
|
4875
4875
|
}
|
|
4876
4876
|
if (!Be)
|
|
4877
4877
|
throw new Error("Could not find head table with checkSum to adjust.");
|
|
4878
|
-
return
|
|
4878
|
+
return er;
|
|
4879
4879
|
}
|
|
4880
|
-
var Ri = { make:
|
|
4880
|
+
var Ri = { make: on, fontToTable: Ei, computeCheckSum: Gt };
|
|
4881
4881
|
function ht(e, r) {
|
|
4882
4882
|
for (var t = 0, a = e.length - 1; t <= a; ) {
|
|
4883
4883
|
var o = t + a >>> 1, n = e[o].tag;
|
|
@@ -4887,7 +4887,7 @@ function ht(e, r) {
|
|
|
4887
4887
|
}
|
|
4888
4888
|
return -t - 1;
|
|
4889
4889
|
}
|
|
4890
|
-
function
|
|
4890
|
+
function ro(e, r) {
|
|
4891
4891
|
for (var t = 0, a = e.length - 1; t <= a; ) {
|
|
4892
4892
|
var o = t + a >>> 1, n = e[o];
|
|
4893
4893
|
if (n === r)
|
|
@@ -4896,7 +4896,7 @@ function eo(e, r) {
|
|
|
4896
4896
|
}
|
|
4897
4897
|
return -t - 1;
|
|
4898
4898
|
}
|
|
4899
|
-
function
|
|
4899
|
+
function to(e, r) {
|
|
4900
4900
|
for (var t, a = 0, o = e.length - 1; a <= o; ) {
|
|
4901
4901
|
var n = a + o >>> 1;
|
|
4902
4902
|
t = e[n];
|
|
@@ -4931,7 +4931,7 @@ xr.prototype = {
|
|
|
4931
4931
|
* @param {number} value
|
|
4932
4932
|
* @return {number}
|
|
4933
4933
|
*/
|
|
4934
|
-
binSearch:
|
|
4934
|
+
binSearch: ro,
|
|
4935
4935
|
/**
|
|
4936
4936
|
* Get or create the Layout table (GSUB, GPOS etc).
|
|
4937
4937
|
* @param {boolean} create - Whether to create a new one.
|
|
@@ -5086,7 +5086,7 @@ xr.prototype = {
|
|
|
5086
5086
|
case 1:
|
|
5087
5087
|
return e.startGlyph <= r && r < e.startGlyph + e.classes.length ? e.classes[r - e.startGlyph] : 0;
|
|
5088
5088
|
case 2:
|
|
5089
|
-
var t =
|
|
5089
|
+
var t = to(e.ranges, r);
|
|
5090
5090
|
return t ? t.classId : 0;
|
|
5091
5091
|
}
|
|
5092
5092
|
},
|
|
@@ -5100,10 +5100,10 @@ xr.prototype = {
|
|
|
5100
5100
|
getCoverageIndex: function(e, r) {
|
|
5101
5101
|
switch (e.format) {
|
|
5102
5102
|
case 1:
|
|
5103
|
-
var t =
|
|
5103
|
+
var t = ro(e.glyphs, r);
|
|
5104
5104
|
return t >= 0 ? t : -1;
|
|
5105
5105
|
case 2:
|
|
5106
|
-
var a =
|
|
5106
|
+
var a = to(e.ranges, r);
|
|
5107
5107
|
return a ? a.index + r - a.start : -1;
|
|
5108
5108
|
}
|
|
5109
5109
|
},
|
|
@@ -5327,10 +5327,10 @@ be.prototype.add = function(e, r, t, a) {
|
|
|
5327
5327
|
return r.by instanceof Array ? this.addMultiple(e, r, t, a) : this.addLigature(e, r, t, a);
|
|
5328
5328
|
}
|
|
5329
5329
|
};
|
|
5330
|
-
function
|
|
5330
|
+
function Di() {
|
|
5331
5331
|
return typeof window < "u";
|
|
5332
5332
|
}
|
|
5333
|
-
function
|
|
5333
|
+
function Pi(e) {
|
|
5334
5334
|
for (var r = new Buffer(e.byteLength), t = new Uint8Array(e), a = 0; a < r.length; ++a)
|
|
5335
5335
|
r[a] = t[a];
|
|
5336
5336
|
return r;
|
|
@@ -5339,11 +5339,11 @@ function vr(e, r) {
|
|
|
5339
5339
|
if (!e)
|
|
5340
5340
|
throw r;
|
|
5341
5341
|
}
|
|
5342
|
-
function
|
|
5342
|
+
function ao(e, r, t, a, o) {
|
|
5343
5343
|
var n;
|
|
5344
5344
|
return (r & a) > 0 ? (n = e.parseByte(), r & o || (n = -n), n = t + n) : (r & o) > 0 ? n = t : n = t + e.parseShort(), n;
|
|
5345
5345
|
}
|
|
5346
|
-
function
|
|
5346
|
+
function nn(e, r, t) {
|
|
5347
5347
|
var a = new G.Parser(r, t);
|
|
5348
5348
|
e.numberOfContours = a.parseShort(), e._xMin = a.parseShort(), e._yMin = a.parseShort(), e._xMax = a.parseShort(), e._yMax = a.parseShort();
|
|
5349
5349
|
var o, n;
|
|
@@ -5364,10 +5364,10 @@ function on(e, r, t) {
|
|
|
5364
5364
|
if (c > 0) {
|
|
5365
5365
|
for (var S = 0; S < c; S += 1)
|
|
5366
5366
|
n = o[S], x = {}, x.onCurve = !!(n & 1), x.lastPointOfContour = s.indexOf(S) >= 0, h.push(x);
|
|
5367
|
-
for (var k = 0,
|
|
5368
|
-
n = o[
|
|
5369
|
-
for (var
|
|
5370
|
-
n = o[C], x = h[C], x.y =
|
|
5367
|
+
for (var k = 0, w = 0; w < c; w += 1)
|
|
5368
|
+
n = o[w], x = h[w], x.x = ao(a, n, k, 2, 16), k = x.x;
|
|
5369
|
+
for (var P = 0, C = 0; C < c; C += 1)
|
|
5370
|
+
n = o[C], x = h[C], x.y = ao(a, n, P, 4, 32), P = x.y;
|
|
5371
5371
|
}
|
|
5372
5372
|
e.points = h;
|
|
5373
5373
|
} else
|
|
@@ -5415,7 +5415,7 @@ function _i(e) {
|
|
|
5415
5415
|
}
|
|
5416
5416
|
return M.argument(t.length === 0, "There are still points left in the current contour."), r;
|
|
5417
5417
|
}
|
|
5418
|
-
function
|
|
5418
|
+
function sn(e) {
|
|
5419
5419
|
var r = new se();
|
|
5420
5420
|
if (!e)
|
|
5421
5421
|
return r;
|
|
@@ -5440,7 +5440,7 @@ function nn(e) {
|
|
|
5440
5440
|
}
|
|
5441
5441
|
return r;
|
|
5442
5442
|
}
|
|
5443
|
-
function
|
|
5443
|
+
function ln(e, r) {
|
|
5444
5444
|
if (r.isComposite)
|
|
5445
5445
|
for (var t = 0; t < r.components.length; t += 1) {
|
|
5446
5446
|
var a = r.components[t], o = e.get(a.glyphIndex);
|
|
@@ -5464,12 +5464,12 @@ function sn(e, r) {
|
|
|
5464
5464
|
r.points = r.points.concat(n);
|
|
5465
5465
|
}
|
|
5466
5466
|
}
|
|
5467
|
-
return
|
|
5467
|
+
return sn(r.points);
|
|
5468
5468
|
}
|
|
5469
5469
|
function Fi(e, r, t, a) {
|
|
5470
5470
|
for (var o = new Le.GlyphSet(a), n = 0; n < t.length - 1; n += 1) {
|
|
5471
5471
|
var s = t[n], l = t[n + 1];
|
|
5472
|
-
s !== l ? o.push(n, Le.ttfGlyphLoader(a, n,
|
|
5472
|
+
s !== l ? o.push(n, Le.ttfGlyphLoader(a, n, nn, e, r + s, ln)) : o.push(n, Le.glyphLoader(a, n));
|
|
5473
5473
|
}
|
|
5474
5474
|
return o;
|
|
5475
5475
|
}
|
|
@@ -5477,14 +5477,14 @@ function Ii(e, r, t, a) {
|
|
|
5477
5477
|
var o = new Le.GlyphSet(a);
|
|
5478
5478
|
return a._push = function(n) {
|
|
5479
5479
|
var s = t[n], l = t[n + 1];
|
|
5480
|
-
s !== l ? o.push(n, Le.ttfGlyphLoader(a, n,
|
|
5480
|
+
s !== l ? o.push(n, Le.ttfGlyphLoader(a, n, nn, e, r + s, ln)) : o.push(n, Le.glyphLoader(a, n));
|
|
5481
5481
|
}, o;
|
|
5482
5482
|
}
|
|
5483
5483
|
function Bi(e, r, t, a, o) {
|
|
5484
5484
|
return o.lowMemory ? Ii(e, r, t, a) : Fi(e, r, t, a);
|
|
5485
5485
|
}
|
|
5486
|
-
var Ai = { getPath:
|
|
5487
|
-
function
|
|
5486
|
+
var Ai = { getPath: sn, parse: Bi }, un, Je, cn, It;
|
|
5487
|
+
function dn(e) {
|
|
5488
5488
|
this.font = e, this.getCommands = function(r) {
|
|
5489
5489
|
return Ai.getPath(r).commands;
|
|
5490
5490
|
}, this._fpgmState = this._prepState = void 0, this._errorState = 0;
|
|
@@ -5492,7 +5492,7 @@ function cn(e) {
|
|
|
5492
5492
|
function Mi(e) {
|
|
5493
5493
|
return e;
|
|
5494
5494
|
}
|
|
5495
|
-
function
|
|
5495
|
+
function pn(e) {
|
|
5496
5496
|
return Math.sign(e) * Math.round(Math.abs(e));
|
|
5497
5497
|
}
|
|
5498
5498
|
function Ni(e) {
|
|
@@ -5507,7 +5507,7 @@ function Hi(e) {
|
|
|
5507
5507
|
function Vi(e) {
|
|
5508
5508
|
return Math.sign(e) * Math.floor(Math.abs(e));
|
|
5509
5509
|
}
|
|
5510
|
-
var
|
|
5510
|
+
var vn = function(e) {
|
|
5511
5511
|
var r = this.srPeriod, t = this.srPhase, a = this.srThreshold, o = 1;
|
|
5512
5512
|
return e < 0 && (e = -e, o = -1), e += a - t, e = Math.trunc(e / r) * r, e += t, e < 0 ? t * o : e * o;
|
|
5513
5513
|
}, Re = {
|
|
@@ -5696,10 +5696,10 @@ function He(e, r) {
|
|
|
5696
5696
|
case "glyf":
|
|
5697
5697
|
this.zp0 = this.zp1 = this.zp2 = 1, this.rp0 = this.rp1 = this.rp2 = 0;
|
|
5698
5698
|
case "prep":
|
|
5699
|
-
this.fv = this.pv = this.dpv = Re, this.round =
|
|
5699
|
+
this.fv = this.pv = this.dpv = Re, this.round = pn;
|
|
5700
5700
|
}
|
|
5701
5701
|
}
|
|
5702
|
-
|
|
5702
|
+
dn.prototype.exec = function(e, r) {
|
|
5703
5703
|
if (typeof r != "number")
|
|
5704
5704
|
throw new Error("Point size is not a number!");
|
|
5705
5705
|
if (!(this._errorState > 2)) {
|
|
@@ -5709,7 +5709,7 @@ cn.prototype.exec = function(e, r) {
|
|
|
5709
5709
|
if (!o) {
|
|
5710
5710
|
He.prototype = zi, o = this._fpgmState = new He("fpgm", t.tables.fpgm), o.funcs = [], o.font = t, exports.DEBUG && (console.log("---EXEC FPGM---"), o.step = -1);
|
|
5711
5711
|
try {
|
|
5712
|
-
|
|
5712
|
+
Je(o);
|
|
5713
5713
|
} catch (c) {
|
|
5714
5714
|
console.log("Hinting error in FPGM:" + c), this._errorState = 3;
|
|
5715
5715
|
return;
|
|
@@ -5724,21 +5724,21 @@ cn.prototype.exec = function(e, r) {
|
|
|
5724
5724
|
a.cvt = [];
|
|
5725
5725
|
exports.DEBUG && (console.log("---EXEC PREP---"), a.step = -1);
|
|
5726
5726
|
try {
|
|
5727
|
-
|
|
5727
|
+
Je(a);
|
|
5728
5728
|
} catch (c) {
|
|
5729
5729
|
this._errorState < 2 && console.log("Hinting error in PREP:" + c), this._errorState = 2;
|
|
5730
5730
|
}
|
|
5731
5731
|
}
|
|
5732
5732
|
if (!(this._errorState > 1))
|
|
5733
5733
|
try {
|
|
5734
|
-
return
|
|
5734
|
+
return cn(e, a);
|
|
5735
5735
|
} catch (c) {
|
|
5736
5736
|
this._errorState < 1 && (console.log("Hinting error:" + c), console.log("Note: further hinting errors are silenced")), this._errorState = 1;
|
|
5737
5737
|
return;
|
|
5738
5738
|
}
|
|
5739
5739
|
}
|
|
5740
5740
|
};
|
|
5741
|
-
|
|
5741
|
+
cn = function(e, r) {
|
|
5742
5742
|
var t = r.ppem / r.font.unitsPerEm, a = t, o = e.components, n, s, l;
|
|
5743
5743
|
if (He.prototype = r, !o)
|
|
5744
5744
|
l = new He("glyf", e.instructions), exports.DEBUG && (console.log("---EXEC GLYPH---"), l.step = -1), It(e, l, t, a), s = l.gZone;
|
|
@@ -5749,18 +5749,18 @@ un = function(e, r) {
|
|
|
5749
5749
|
var v = o[c], u = i.glyphs.get(v.glyphIndex);
|
|
5750
5750
|
l = new He("glyf", u.instructions), exports.DEBUG && (console.log("---EXEC COMP " + c + "---"), l.step = -1), It(u, l, t, a);
|
|
5751
5751
|
for (var f = Math.round(v.dx * t), h = Math.round(v.dy * a), x = l.gZone, S = l.contours, k = 0; k < x.length; k++) {
|
|
5752
|
-
var
|
|
5753
|
-
|
|
5752
|
+
var w = x[k];
|
|
5753
|
+
w.xTouched = w.yTouched = !1, w.xo = w.x = w.x + f, w.yo = w.y = w.y + h;
|
|
5754
5754
|
}
|
|
5755
|
-
var
|
|
5755
|
+
var P = s.length;
|
|
5756
5756
|
s.push.apply(s, x);
|
|
5757
5757
|
for (var C = 0; C < S.length; C++)
|
|
5758
|
-
n.push(S[C] +
|
|
5758
|
+
n.push(S[C] + P);
|
|
5759
5759
|
}
|
|
5760
5760
|
e.instructions && !l.inhibitGridFit && (l = new He("glyf", e.instructions), l.gZone = l.z0 = l.z1 = l.z2 = s, l.contours = n, s.push(
|
|
5761
5761
|
new Fe(0, 0),
|
|
5762
5762
|
new Fe(Math.round(e.advanceWidth * t), 0)
|
|
5763
|
-
), exports.DEBUG && (console.log("---EXEC COMPOSITE---"), l.step = -1),
|
|
5763
|
+
), exports.DEBUG && (console.log("---EXEC COMPOSITE---"), l.step = -1), Je(l), s.length -= 2);
|
|
5764
5764
|
}
|
|
5765
5765
|
return s;
|
|
5766
5766
|
};
|
|
@@ -5783,19 +5783,19 @@ It = function(e, r, t, a) {
|
|
|
5783
5783
|
if (s.push(
|
|
5784
5784
|
new Fe(0, 0),
|
|
5785
5785
|
new Fe(Math.round(e.advanceWidth * t), 0)
|
|
5786
|
-
),
|
|
5786
|
+
), Je(r), s.length -= 2, exports.DEBUG) {
|
|
5787
5787
|
console.log("FINISHED GLYPH", r.stack);
|
|
5788
5788
|
for (var x = 0; x < n; x++)
|
|
5789
5789
|
console.log(x, s[x].x, s[x].y);
|
|
5790
5790
|
}
|
|
5791
5791
|
}
|
|
5792
5792
|
};
|
|
5793
|
-
|
|
5793
|
+
Je = function(e) {
|
|
5794
5794
|
var r = e.prog;
|
|
5795
5795
|
if (r) {
|
|
5796
5796
|
var t = r.length, a;
|
|
5797
5797
|
for (e.ip = 0; e.ip < t; e.ip++) {
|
|
5798
|
-
if (exports.DEBUG && e.step++, a =
|
|
5798
|
+
if (exports.DEBUG && e.step++, a = un[r[e.ip]], !a)
|
|
5799
5799
|
throw new Error(
|
|
5800
5800
|
"unknown instruction: 0x" + Number(r[e.ip]).toString(16)
|
|
5801
5801
|
);
|
|
@@ -5803,11 +5803,11 @@ Ke = function(e) {
|
|
|
5803
5803
|
}
|
|
5804
5804
|
}
|
|
5805
5805
|
};
|
|
5806
|
-
function
|
|
5806
|
+
function et(e) {
|
|
5807
5807
|
for (var r = e.tZone = new Array(e.gZone.length), t = 0; t < r.length; t++)
|
|
5808
5808
|
r[t] = new Fe(0, 0);
|
|
5809
5809
|
}
|
|
5810
|
-
function
|
|
5810
|
+
function fn(e, r) {
|
|
5811
5811
|
var t = e.prog, a = e.ip, o = 1, n;
|
|
5812
5812
|
do
|
|
5813
5813
|
if (n = t[++a], n === 88)
|
|
@@ -5827,22 +5827,22 @@ function vn(e, r) {
|
|
|
5827
5827
|
while (o > 0);
|
|
5828
5828
|
e.ip = a;
|
|
5829
5829
|
}
|
|
5830
|
-
function
|
|
5830
|
+
function oo(e, r) {
|
|
5831
5831
|
exports.DEBUG && console.log(r.step, "SVTCA[" + e.axis + "]"), r.fv = r.pv = r.dpv = e;
|
|
5832
5832
|
}
|
|
5833
|
-
function
|
|
5833
|
+
function no(e, r) {
|
|
5834
5834
|
exports.DEBUG && console.log(r.step, "SPVTCA[" + e.axis + "]"), r.pv = r.dpv = e;
|
|
5835
5835
|
}
|
|
5836
|
-
function
|
|
5836
|
+
function so(e, r) {
|
|
5837
5837
|
exports.DEBUG && console.log(r.step, "SFVTCA[" + e.axis + "]"), r.fv = e;
|
|
5838
5838
|
}
|
|
5839
|
-
function
|
|
5839
|
+
function io(e, r) {
|
|
5840
5840
|
var t = r.stack, a = t.pop(), o = t.pop(), n = r.z2[a], s = r.z1[o];
|
|
5841
5841
|
exports.DEBUG && console.log("SPVTL[" + e + "]", a, o);
|
|
5842
5842
|
var l, i;
|
|
5843
5843
|
e ? (l = n.y - s.y, i = s.x - n.x) : (l = s.x - n.x, i = s.y - n.y), r.pv = r.dpv = Or(l, i);
|
|
5844
5844
|
}
|
|
5845
|
-
function
|
|
5845
|
+
function lo(e, r) {
|
|
5846
5846
|
var t = r.stack, a = t.pop(), o = t.pop(), n = r.z2[a], s = r.z1[o];
|
|
5847
5847
|
exports.DEBUG && console.log("SFVTL[" + e + "]", a, o);
|
|
5848
5848
|
var l, i;
|
|
@@ -5870,8 +5870,8 @@ function $i(e) {
|
|
|
5870
5870
|
function Yi(e) {
|
|
5871
5871
|
var r = e.stack, t = r.pop(), a = r.pop(), o = r.pop(), n = r.pop(), s = r.pop(), l = e.z0, i = e.z1, c = l[t], v = l[a], u = i[o], f = i[n], h = e.z2[s];
|
|
5872
5872
|
exports.DEBUG && console.log("ISECT[], ", t, a, o, n, s);
|
|
5873
|
-
var x = c.x, S = c.y, k = v.x,
|
|
5874
|
-
h.x = (V * (
|
|
5873
|
+
var x = c.x, S = c.y, k = v.x, w = v.y, P = u.x, C = u.y, q = f.x, U = f.y, I = (x - k) * (C - U) - (S - w) * (P - q), V = x * w - S * k, A = P * U - C * q;
|
|
5874
|
+
h.x = (V * (P - q) - A * (x - k)) / I, h.y = (V * (C - U) - A * (S - w)) / I;
|
|
5875
5875
|
}
|
|
5876
5876
|
function Zi(e) {
|
|
5877
5877
|
e.rp0 = e.stack.pop(), exports.DEBUG && console.log(e.step, "SRP0[]", e.rp0);
|
|
@@ -5886,7 +5886,7 @@ function Qi(e) {
|
|
|
5886
5886
|
var r = e.stack.pop();
|
|
5887
5887
|
switch (exports.DEBUG && console.log(e.step, "SZP0[]", r), e.zp0 = r, r) {
|
|
5888
5888
|
case 0:
|
|
5889
|
-
e.tZone ||
|
|
5889
|
+
e.tZone || et(e), e.z0 = e.tZone;
|
|
5890
5890
|
break;
|
|
5891
5891
|
case 1:
|
|
5892
5892
|
e.z0 = e.gZone;
|
|
@@ -5899,7 +5899,7 @@ function el(e) {
|
|
|
5899
5899
|
var r = e.stack.pop();
|
|
5900
5900
|
switch (exports.DEBUG && console.log(e.step, "SZP1[]", r), e.zp1 = r, r) {
|
|
5901
5901
|
case 0:
|
|
5902
|
-
e.tZone ||
|
|
5902
|
+
e.tZone || et(e), e.z1 = e.tZone;
|
|
5903
5903
|
break;
|
|
5904
5904
|
case 1:
|
|
5905
5905
|
e.z1 = e.gZone;
|
|
@@ -5912,7 +5912,7 @@ function rl(e) {
|
|
|
5912
5912
|
var r = e.stack.pop();
|
|
5913
5913
|
switch (exports.DEBUG && console.log(e.step, "SZP2[]", r), e.zp2 = r, r) {
|
|
5914
5914
|
case 0:
|
|
5915
|
-
e.tZone ||
|
|
5915
|
+
e.tZone || et(e), e.z2 = e.tZone;
|
|
5916
5916
|
break;
|
|
5917
5917
|
case 1:
|
|
5918
5918
|
e.z2 = e.gZone;
|
|
@@ -5925,7 +5925,7 @@ function tl(e) {
|
|
|
5925
5925
|
var r = e.stack.pop();
|
|
5926
5926
|
switch (exports.DEBUG && console.log(e.step, "SZPS[]", r), e.zp0 = e.zp1 = e.zp2 = r, r) {
|
|
5927
5927
|
case 0:
|
|
5928
|
-
e.tZone ||
|
|
5928
|
+
e.tZone || et(e), e.z0 = e.z1 = e.z2 = e.tZone;
|
|
5929
5929
|
break;
|
|
5930
5930
|
case 1:
|
|
5931
5931
|
e.z0 = e.z1 = e.z2 = e.gZone;
|
|
@@ -5938,7 +5938,7 @@ function al(e) {
|
|
|
5938
5938
|
e.loop = e.stack.pop(), exports.DEBUG && console.log(e.step, "SLOOP[]", e.loop);
|
|
5939
5939
|
}
|
|
5940
5940
|
function ol(e) {
|
|
5941
|
-
exports.DEBUG && console.log(e.step, "RTG[]"), e.round =
|
|
5941
|
+
exports.DEBUG && console.log(e.step, "RTG[]"), e.round = pn;
|
|
5942
5942
|
}
|
|
5943
5943
|
function nl(e) {
|
|
5944
5944
|
exports.DEBUG && console.log(e.step, "RTHG[]"), e.round = Gi;
|
|
@@ -5948,7 +5948,7 @@ function sl(e) {
|
|
|
5948
5948
|
exports.DEBUG && console.log(e.step, "SMD[]", r), e.minDis = r / 64;
|
|
5949
5949
|
}
|
|
5950
5950
|
function il(e) {
|
|
5951
|
-
exports.DEBUG && console.log(e.step, "ELSE[]"),
|
|
5951
|
+
exports.DEBUG && console.log(e.step, "ELSE[]"), fn(e, !1);
|
|
5952
5952
|
}
|
|
5953
5953
|
function ll(e) {
|
|
5954
5954
|
var r = e.stack.pop();
|
|
@@ -5982,7 +5982,7 @@ function fl(e) {
|
|
|
5982
5982
|
var o = e.ip, n = e.prog;
|
|
5983
5983
|
e.prog = e.funcs[t];
|
|
5984
5984
|
for (var s = 0; s < a; s++)
|
|
5985
|
-
|
|
5985
|
+
Je(e), exports.DEBUG && console.log(
|
|
5986
5986
|
++e.step,
|
|
5987
5987
|
s + 1 < a ? "next loopcall" : "done loopcall",
|
|
5988
5988
|
s
|
|
@@ -5993,7 +5993,7 @@ function hl(e) {
|
|
|
5993
5993
|
var r = e.stack.pop();
|
|
5994
5994
|
exports.DEBUG && console.log(e.step, "CALL[]", r);
|
|
5995
5995
|
var t = e.ip, a = e.prog;
|
|
5996
|
-
e.prog = e.funcs[r],
|
|
5996
|
+
e.prog = e.funcs[r], Je(e), e.ip = t, e.prog = a, exports.DEBUG && console.log(++e.step, "returning from", r);
|
|
5997
5997
|
}
|
|
5998
5998
|
function gl(e) {
|
|
5999
5999
|
var r = e.stack, t = r.pop();
|
|
@@ -6011,19 +6011,19 @@ function yl(e) {
|
|
|
6011
6011
|
;
|
|
6012
6012
|
e.ip = a, e.funcs[o] = t.slice(n + 1, a);
|
|
6013
6013
|
}
|
|
6014
|
-
function
|
|
6014
|
+
function uo(e, r) {
|
|
6015
6015
|
var t = r.stack.pop(), a = r.z0[t], o = r.fv, n = r.pv;
|
|
6016
6016
|
exports.DEBUG && console.log(r.step, "MDAP[" + e + "]", t);
|
|
6017
6017
|
var s = n.distance(a, kr);
|
|
6018
6018
|
e && (s = r.round(s)), o.setRelative(a, kr, s, n), o.touch(a), r.rp0 = r.rp1 = t;
|
|
6019
6019
|
}
|
|
6020
|
-
function
|
|
6020
|
+
function co(e, r) {
|
|
6021
6021
|
var t = r.z2, a = t.length - 2, o, n, s;
|
|
6022
6022
|
exports.DEBUG && console.log(r.step, "IUP[" + e.axis + "]");
|
|
6023
6023
|
for (var l = 0; l < a; l++)
|
|
6024
6024
|
o = t[l], !e.touched(o) && (n = o.prevTouched(e), n !== o && (s = o.nextTouched(e), n === s && e.setRelative(o, o, e.distance(n, n, !1, !0), e, !0), e.interpolate(o, n, s, e)));
|
|
6025
6025
|
}
|
|
6026
|
-
function
|
|
6026
|
+
function po(e, r) {
|
|
6027
6027
|
for (var t = r.stack, a = e ? r.rp1 : r.rp2, o = (e ? r.z0 : r.z1)[a], n = r.fv, s = r.pv, l = r.loop, i = r.z2; l--; ) {
|
|
6028
6028
|
var c = t.pop(), v = i[c], u = s.distance(o, o, !1, !0);
|
|
6029
6029
|
n.setRelative(v, v, u, s), n.touch(v), exports.DEBUG && console.log(
|
|
@@ -6034,7 +6034,7 @@ function co(e, r) {
|
|
|
6034
6034
|
}
|
|
6035
6035
|
r.loop = 1;
|
|
6036
6036
|
}
|
|
6037
|
-
function
|
|
6037
|
+
function vo(e, r) {
|
|
6038
6038
|
var t = r.stack, a = e ? r.rp1 : r.rp2, o = (e ? r.z0 : r.z1)[a], n = r.fv, s = r.pv, l = t.pop(), i = r.z2[r.contours[l]], c = i;
|
|
6039
6039
|
exports.DEBUG && console.log(r.step, "SHC[" + e + "]", l);
|
|
6040
6040
|
var v = s.distance(o, o, !1, !0);
|
|
@@ -6042,7 +6042,7 @@ function po(e, r) {
|
|
|
6042
6042
|
c !== o && n.setRelative(c, c, v, s), c = c.nextPointOnContour;
|
|
6043
6043
|
while (c !== i);
|
|
6044
6044
|
}
|
|
6045
|
-
function
|
|
6045
|
+
function fo(e, r) {
|
|
6046
6046
|
var t = r.stack, a = e ? r.rp1 : r.rp2, o = (e ? r.z0 : r.z1)[a], n = r.fv, s = r.pv, l = t.pop();
|
|
6047
6047
|
exports.DEBUG && console.log(r.step, "SHZ[" + e + "]", l);
|
|
6048
6048
|
var i;
|
|
@@ -6085,7 +6085,7 @@ function kl(e) {
|
|
|
6085
6085
|
}
|
|
6086
6086
|
e.loop = 1;
|
|
6087
6087
|
}
|
|
6088
|
-
function
|
|
6088
|
+
function ho(e, r) {
|
|
6089
6089
|
var t = r.stack, a = t.pop() / 64, o = t.pop(), n = r.z1[o], s = r.z0[r.rp0], l = r.fv, i = r.pv;
|
|
6090
6090
|
l.setRelative(n, s, a, i), l.touch(n), exports.DEBUG && console.log(r.step, "MSIRP[" + e + "]", a, o), r.rp1 = r.rp0, r.rp2 = o, e && (r.rp0 = o);
|
|
6091
6091
|
}
|
|
@@ -6103,7 +6103,7 @@ function Sl(e) {
|
|
|
6103
6103
|
function xl(e) {
|
|
6104
6104
|
exports.DEBUG && console.log(e.step, "RTDG[]"), e.round = Ni;
|
|
6105
6105
|
}
|
|
6106
|
-
function
|
|
6106
|
+
function go(e, r) {
|
|
6107
6107
|
var t = r.stack, a = t.pop(), o = t.pop(), n = r.z0[o], s = r.fv, l = r.pv, i = r.cvt[a];
|
|
6108
6108
|
exports.DEBUG && console.log(
|
|
6109
6109
|
r.step,
|
|
@@ -6153,11 +6153,11 @@ function El(e) {
|
|
|
6153
6153
|
var r = e.stack, t = r.pop();
|
|
6154
6154
|
exports.DEBUG && console.log(e.step, "RCVT", t), r.push(e.cvt[t] * 64);
|
|
6155
6155
|
}
|
|
6156
|
-
function
|
|
6156
|
+
function mo(e, r) {
|
|
6157
6157
|
var t = r.stack, a = t.pop(), o = r.z2[a];
|
|
6158
6158
|
exports.DEBUG && console.log(r.step, "GC[" + e + "]", a), t.push(r.dpv.distance(o, kr, e, !1) * 64);
|
|
6159
6159
|
}
|
|
6160
|
-
function
|
|
6160
|
+
function yo(e, r) {
|
|
6161
6161
|
var t = r.stack, a = t.pop(), o = t.pop(), n = r.z1[a], s = r.z0[o], l = r.dpv.distance(s, n, e, e);
|
|
6162
6162
|
exports.DEBUG && console.log(r.step, "MD[" + e + "]", a, o, "->", l), r.stack.push(Math.round(l * 64));
|
|
6163
6163
|
}
|
|
@@ -6167,11 +6167,11 @@ function Rl(e) {
|
|
|
6167
6167
|
function Ll(e) {
|
|
6168
6168
|
exports.DEBUG && console.log(e.step, "FLIPON[]"), e.autoFlip = !0;
|
|
6169
6169
|
}
|
|
6170
|
-
function
|
|
6170
|
+
function Dl(e) {
|
|
6171
6171
|
var r = e.stack, t = r.pop(), a = r.pop();
|
|
6172
6172
|
exports.DEBUG && console.log(e.step, "LT[]", t, a), r.push(a < t ? 1 : 0);
|
|
6173
6173
|
}
|
|
6174
|
-
function
|
|
6174
|
+
function Pl(e) {
|
|
6175
6175
|
var r = e.stack, t = r.pop(), a = r.pop();
|
|
6176
6176
|
exports.DEBUG && console.log(e.step, "LTEQ[]", t, a), r.push(a <= t ? 1 : 0);
|
|
6177
6177
|
}
|
|
@@ -6201,7 +6201,7 @@ function Ml(e) {
|
|
|
6201
6201
|
}
|
|
6202
6202
|
function Nl(e) {
|
|
6203
6203
|
var r = e.stack.pop();
|
|
6204
|
-
exports.DEBUG && console.log(e.step, "IF[]", r), r || (
|
|
6204
|
+
exports.DEBUG && console.log(e.step, "IF[]", r), r || (fn(e, !0), exports.DEBUG && console.log(e.step, "EIF[]"));
|
|
6205
6205
|
}
|
|
6206
6206
|
function Gl(e) {
|
|
6207
6207
|
exports.DEBUG && console.log(e.step, "EIF[]");
|
|
@@ -6271,7 +6271,7 @@ function Ql(e) {
|
|
|
6271
6271
|
var r = e.stack, t = r.pop();
|
|
6272
6272
|
exports.DEBUG && console.log(e.step, "CEILING[]", t), r.push(Math.ceil(t / 64) * 64);
|
|
6273
6273
|
}
|
|
6274
|
-
function
|
|
6274
|
+
function Mr(e, r) {
|
|
6275
6275
|
var t = r.stack, a = t.pop();
|
|
6276
6276
|
exports.DEBUG && console.log(r.step, "ROUND[]"), t.push(r.round(a / 64) * 64);
|
|
6277
6277
|
}
|
|
@@ -6294,7 +6294,7 @@ function bt(e, r) {
|
|
|
6294
6294
|
}
|
|
6295
6295
|
function ru(e) {
|
|
6296
6296
|
var r = e.stack.pop();
|
|
6297
|
-
exports.DEBUG && console.log(e.step, "SROUND[]", r), e.round =
|
|
6297
|
+
exports.DEBUG && console.log(e.step, "SROUND[]", r), e.round = vn;
|
|
6298
6298
|
var t;
|
|
6299
6299
|
switch (r & 192) {
|
|
6300
6300
|
case 0:
|
|
@@ -6329,7 +6329,7 @@ function ru(e) {
|
|
|
6329
6329
|
}
|
|
6330
6330
|
function tu(e) {
|
|
6331
6331
|
var r = e.stack.pop();
|
|
6332
|
-
exports.DEBUG && console.log(e.step, "S45ROUND[]", r), e.round =
|
|
6332
|
+
exports.DEBUG && console.log(e.step, "S45ROUND[]", r), e.round = vn;
|
|
6333
6333
|
var t;
|
|
6334
6334
|
switch (r & 192) {
|
|
6335
6335
|
case 0:
|
|
@@ -6375,7 +6375,7 @@ function su(e) {
|
|
|
6375
6375
|
var r = e.stack.pop();
|
|
6376
6376
|
exports.DEBUG && console.log(e.step, "SCANCTRL[]", r);
|
|
6377
6377
|
}
|
|
6378
|
-
function
|
|
6378
|
+
function bo(e, r) {
|
|
6379
6379
|
var t = r.stack, a = t.pop(), o = t.pop(), n = r.z2[a], s = r.z1[o];
|
|
6380
6380
|
exports.DEBUG && console.log(r.step, "SDPVTL[" + e + "]", a, o);
|
|
6381
6381
|
var l, i;
|
|
@@ -6431,40 +6431,40 @@ function Ne(e, r) {
|
|
|
6431
6431
|
r.ip = t;
|
|
6432
6432
|
}
|
|
6433
6433
|
function R(e, r, t, a, o, n) {
|
|
6434
|
-
var s = n.stack, l = e && s.pop(), i = s.pop(), c = n.rp0, v = n.z0[c], u = n.z1[i], f = n.minDis, h = n.fv, x = n.dpv, S, k,
|
|
6435
|
-
k = S = x.distance(u, v, !0, !0),
|
|
6434
|
+
var s = n.stack, l = e && s.pop(), i = s.pop(), c = n.rp0, v = n.z0[c], u = n.z1[i], f = n.minDis, h = n.fv, x = n.dpv, S, k, w, P;
|
|
6435
|
+
k = S = x.distance(u, v, !0, !0), w = k >= 0 ? 1 : -1, k = Math.abs(k), e && (P = n.cvt[l], a && Math.abs(k - P) < n.cvCutIn && (k = P)), t && k < f && (k = f), a && (k = n.round(k)), h.setRelative(u, v, w * k, x), h.touch(u), exports.DEBUG && console.log(
|
|
6436
6436
|
n.step,
|
|
6437
6437
|
(e ? "MIRP[" : "MDRP[") + (r ? "M" : "m") + (t ? ">" : "_") + (a ? "R" : "_") + (o === 0 ? "Gr" : o === 1 ? "Bl" : o === 2 ? "Wh" : "") + "]",
|
|
6438
|
-
e ? l + "(" + n.cvt[l] + "," +
|
|
6438
|
+
e ? l + "(" + n.cvt[l] + "," + P + ")" : "",
|
|
6439
6439
|
i,
|
|
6440
6440
|
"(d =",
|
|
6441
6441
|
S,
|
|
6442
6442
|
"->",
|
|
6443
|
-
|
|
6443
|
+
w * k,
|
|
6444
6444
|
")"
|
|
6445
6445
|
), n.rp1 = n.rp0, n.rp2 = i, r && (n.rp0 = i);
|
|
6446
6446
|
}
|
|
6447
|
-
|
|
6447
|
+
un = [
|
|
6448
6448
|
/* 0x00 */
|
|
6449
|
-
|
|
6449
|
+
oo.bind(void 0, _e),
|
|
6450
6450
|
/* 0x01 */
|
|
6451
|
-
|
|
6451
|
+
oo.bind(void 0, Re),
|
|
6452
6452
|
/* 0x02 */
|
|
6453
|
-
|
|
6453
|
+
no.bind(void 0, _e),
|
|
6454
6454
|
/* 0x03 */
|
|
6455
|
-
|
|
6455
|
+
no.bind(void 0, Re),
|
|
6456
6456
|
/* 0x04 */
|
|
6457
|
-
|
|
6457
|
+
so.bind(void 0, _e),
|
|
6458
6458
|
/* 0x05 */
|
|
6459
|
-
|
|
6459
|
+
so.bind(void 0, Re),
|
|
6460
6460
|
/* 0x06 */
|
|
6461
|
-
|
|
6461
|
+
io.bind(void 0, 0),
|
|
6462
6462
|
/* 0x07 */
|
|
6463
|
-
|
|
6463
|
+
io.bind(void 0, 1),
|
|
6464
6464
|
/* 0x08 */
|
|
6465
|
-
|
|
6465
|
+
lo.bind(void 0, 0),
|
|
6466
6466
|
/* 0x09 */
|
|
6467
|
-
|
|
6467
|
+
lo.bind(void 0, 1),
|
|
6468
6468
|
/* 0x0A */
|
|
6469
6469
|
Wi,
|
|
6470
6470
|
/* 0x0B */
|
|
@@ -6543,41 +6543,41 @@ ln = [
|
|
|
6543
6543
|
void 0,
|
|
6544
6544
|
// ENDF (eaten by FDEF)
|
|
6545
6545
|
/* 0x2E */
|
|
6546
|
-
|
|
6546
|
+
uo.bind(void 0, 0),
|
|
6547
6547
|
/* 0x2F */
|
|
6548
|
-
|
|
6548
|
+
uo.bind(void 0, 1),
|
|
6549
6549
|
/* 0x30 */
|
|
6550
|
-
|
|
6550
|
+
co.bind(void 0, _e),
|
|
6551
6551
|
/* 0x31 */
|
|
6552
|
-
|
|
6552
|
+
co.bind(void 0, Re),
|
|
6553
6553
|
/* 0x32 */
|
|
6554
|
-
|
|
6554
|
+
po.bind(void 0, 0),
|
|
6555
6555
|
/* 0x33 */
|
|
6556
|
-
|
|
6556
|
+
po.bind(void 0, 1),
|
|
6557
6557
|
/* 0x34 */
|
|
6558
|
-
|
|
6558
|
+
vo.bind(void 0, 0),
|
|
6559
6559
|
/* 0x35 */
|
|
6560
|
-
|
|
6560
|
+
vo.bind(void 0, 1),
|
|
6561
6561
|
/* 0x36 */
|
|
6562
|
-
|
|
6562
|
+
fo.bind(void 0, 0),
|
|
6563
6563
|
/* 0x37 */
|
|
6564
|
-
|
|
6564
|
+
fo.bind(void 0, 1),
|
|
6565
6565
|
/* 0x38 */
|
|
6566
6566
|
bl,
|
|
6567
6567
|
/* 0x39 */
|
|
6568
6568
|
kl,
|
|
6569
6569
|
/* 0x3A */
|
|
6570
|
-
|
|
6570
|
+
ho.bind(void 0, 0),
|
|
6571
6571
|
/* 0x3B */
|
|
6572
|
-
|
|
6572
|
+
ho.bind(void 0, 1),
|
|
6573
6573
|
/* 0x3C */
|
|
6574
6574
|
Sl,
|
|
6575
6575
|
/* 0x3D */
|
|
6576
6576
|
xl,
|
|
6577
6577
|
/* 0x3E */
|
|
6578
|
-
|
|
6578
|
+
go.bind(void 0, 0),
|
|
6579
6579
|
/* 0x3F */
|
|
6580
|
-
|
|
6580
|
+
go.bind(void 0, 1),
|
|
6581
6581
|
/* 0x40 */
|
|
6582
6582
|
Tl,
|
|
6583
6583
|
/* 0x41 */
|
|
@@ -6591,16 +6591,16 @@ ln = [
|
|
|
6591
6591
|
/* 0x45 */
|
|
6592
6592
|
El,
|
|
6593
6593
|
/* 0x46 */
|
|
6594
|
-
|
|
6594
|
+
mo.bind(void 0, 0),
|
|
6595
6595
|
/* 0x47 */
|
|
6596
|
-
|
|
6596
|
+
mo.bind(void 0, 1),
|
|
6597
6597
|
/* 0x48 */
|
|
6598
6598
|
void 0,
|
|
6599
6599
|
// TODO SCFS
|
|
6600
6600
|
/* 0x49 */
|
|
6601
|
-
|
|
6601
|
+
yo.bind(void 0, 0),
|
|
6602
6602
|
/* 0x4A */
|
|
6603
|
-
|
|
6603
|
+
yo.bind(void 0, 1),
|
|
6604
6604
|
/* 0x4B */
|
|
6605
6605
|
Rl,
|
|
6606
6606
|
/* 0x4C */
|
|
@@ -6615,9 +6615,9 @@ ln = [
|
|
|
6615
6615
|
void 0,
|
|
6616
6616
|
// TODO DEBUG
|
|
6617
6617
|
/* 0x50 */
|
|
6618
|
-
Pl,
|
|
6619
|
-
/* 0x51 */
|
|
6620
6618
|
Dl,
|
|
6619
|
+
/* 0x51 */
|
|
6620
|
+
Pl,
|
|
6621
6621
|
/* 0x52 */
|
|
6622
6622
|
_l,
|
|
6623
6623
|
/* 0x53 */
|
|
@@ -6663,13 +6663,13 @@ ln = [
|
|
|
6663
6663
|
/* 0x67 */
|
|
6664
6664
|
Ql,
|
|
6665
6665
|
/* 0x68 */
|
|
6666
|
-
|
|
6666
|
+
Mr.bind(void 0, 0),
|
|
6667
6667
|
/* 0x69 */
|
|
6668
|
-
|
|
6668
|
+
Mr.bind(void 0, 1),
|
|
6669
6669
|
/* 0x6A */
|
|
6670
|
-
|
|
6670
|
+
Mr.bind(void 0, 2),
|
|
6671
6671
|
/* 0x6B */
|
|
6672
|
-
|
|
6672
|
+
Mr.bind(void 0, 3),
|
|
6673
6673
|
/* 0x6C */
|
|
6674
6674
|
void 0,
|
|
6675
6675
|
// TODO NROUND[ab]
|
|
@@ -6734,9 +6734,9 @@ ln = [
|
|
|
6734
6734
|
/* 0x85 */
|
|
6735
6735
|
su,
|
|
6736
6736
|
/* 0x86 */
|
|
6737
|
-
|
|
6737
|
+
bo.bind(void 0, 0),
|
|
6738
6738
|
/* 0x87 */
|
|
6739
|
-
|
|
6739
|
+
bo.bind(void 0, 1),
|
|
6740
6740
|
/* 0x88 */
|
|
6741
6741
|
iu,
|
|
6742
6742
|
/* 0x89 */
|
|
@@ -6991,7 +6991,7 @@ function vu(e, r, t) {
|
|
|
6991
6991
|
function Oe(e, r) {
|
|
6992
6992
|
this.context = e, this.index = r, this.length = e.length, this.current = e[r], this.backtrack = e.slice(0, r), this.lookahead = e.slice(r + 1);
|
|
6993
6993
|
}
|
|
6994
|
-
function
|
|
6994
|
+
function rt(e) {
|
|
6995
6995
|
this.eventId = e, this.subscribers = [];
|
|
6996
6996
|
}
|
|
6997
6997
|
function fu(e) {
|
|
@@ -7012,7 +7012,7 @@ function fu(e) {
|
|
|
7012
7012
|
];
|
|
7013
7013
|
t.forEach(function(o) {
|
|
7014
7014
|
Object.defineProperty(r.events, o, {
|
|
7015
|
-
value: new
|
|
7015
|
+
value: new rt(o)
|
|
7016
7016
|
});
|
|
7017
7017
|
}), e && t.forEach(function(o) {
|
|
7018
7018
|
var n = e[o];
|
|
@@ -7112,10 +7112,10 @@ Q.prototype.registerModifier = function(e, r, t) {
|
|
|
7112
7112
|
}
|
|
7113
7113
|
}), this.registeredModifiers.push(e);
|
|
7114
7114
|
};
|
|
7115
|
-
|
|
7115
|
+
rt.prototype.subscribe = function(e) {
|
|
7116
7116
|
return typeof e == "function" ? this.subscribers.push(e) - 1 : { FAIL: "invalid '" + this.eventId + "' event handler" };
|
|
7117
7117
|
};
|
|
7118
|
-
|
|
7118
|
+
rt.prototype.unsubscribe = function(e) {
|
|
7119
7119
|
this.subscribers.splice(e, 1);
|
|
7120
7120
|
};
|
|
7121
7121
|
Oe.prototype.setCurrentIndex = function(e) {
|
|
@@ -7154,7 +7154,7 @@ Q.prototype.on = function(e, r) {
|
|
|
7154
7154
|
};
|
|
7155
7155
|
Q.prototype.dispatch = function(e, r) {
|
|
7156
7156
|
var t = this, a = this.events[e];
|
|
7157
|
-
a instanceof
|
|
7157
|
+
a instanceof rt && a.subscribers.forEach(function(o) {
|
|
7158
7158
|
o.apply(t, r || []);
|
|
7159
7159
|
});
|
|
7160
7160
|
};
|
|
@@ -7235,13 +7235,13 @@ Q.prototype.tokenize = function(e) {
|
|
|
7235
7235
|
function Ve(e) {
|
|
7236
7236
|
return /[\u0600-\u065F\u066A-\u06D2\u06FA-\u06FF]/.test(e);
|
|
7237
7237
|
}
|
|
7238
|
-
function
|
|
7238
|
+
function hn(e) {
|
|
7239
7239
|
return /[\u0630\u0690\u0621\u0631\u0661\u0671\u0622\u0632\u0672\u0692\u06C2\u0623\u0673\u0693\u06C3\u0624\u0694\u06C4\u0625\u0675\u0695\u06C5\u06E5\u0676\u0696\u06C6\u0627\u0677\u0697\u06C7\u0648\u0688\u0698\u06C8\u0689\u0699\u06C9\u068A\u06CA\u066B\u068B\u06CB\u068C\u068D\u06CD\u06FD\u068E\u06EE\u06FE\u062F\u068F\u06CF\u06EF]/.test(e);
|
|
7240
7240
|
}
|
|
7241
7241
|
function We(e) {
|
|
7242
7242
|
return /[\u0600-\u0605\u060C-\u060E\u0610-\u061B\u061E\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED]/.test(e);
|
|
7243
7243
|
}
|
|
7244
|
-
function
|
|
7244
|
+
function qr(e) {
|
|
7245
7245
|
return /[A-z]/.test(e);
|
|
7246
7246
|
}
|
|
7247
7247
|
function hu(e) {
|
|
@@ -7250,7 +7250,7 @@ function hu(e) {
|
|
|
7250
7250
|
function ke(e) {
|
|
7251
7251
|
this.font = e, this.features = {};
|
|
7252
7252
|
}
|
|
7253
|
-
function
|
|
7253
|
+
function Ke(e) {
|
|
7254
7254
|
this.id = e.id, this.tag = e.tag, this.substitution = e.substitution;
|
|
7255
7255
|
}
|
|
7256
7256
|
function Cr(e, r) {
|
|
@@ -7319,8 +7319,8 @@ function yu(e, r) {
|
|
|
7319
7319
|
), u = a.length === r.inputCoverage.length && l.length === r.lookaheadCoverage.length && v.length === r.backtrackCoverage.length, f = [];
|
|
7320
7320
|
if (u)
|
|
7321
7321
|
for (var h = 0; h < r.lookupRecords.length; h++)
|
|
7322
|
-
for (var x = r.lookupRecords[h], S = x.lookupListIndex, k = this.getLookupByIndex(S),
|
|
7323
|
-
var
|
|
7322
|
+
for (var x = r.lookupRecords[h], S = x.lookupListIndex, k = this.getLookupByIndex(S), w = 0; w < k.subtables.length; w++) {
|
|
7323
|
+
var P = k.subtables[w], C = this.getLookupMethod(k, P), q = this.getSubstitutionType(k, P);
|
|
7324
7324
|
if (q === "12")
|
|
7325
7325
|
for (var U = 0; U < a.length; U++) {
|
|
7326
7326
|
var I = e.get(U), V = C(I);
|
|
@@ -7460,35 +7460,35 @@ ke.prototype.lookupFeature = function(e) {
|
|
|
7460
7460
|
var v = i[c], u = this.getSubstitutionType(l, v), f = this.getLookupMethod(l, v), h = void 0;
|
|
7461
7461
|
switch (u) {
|
|
7462
7462
|
case "11":
|
|
7463
|
-
h = f(r.current), h && n.splice(t, 1, new
|
|
7463
|
+
h = f(r.current), h && n.splice(t, 1, new Ke({
|
|
7464
7464
|
id: 11,
|
|
7465
7465
|
tag: e.tag,
|
|
7466
7466
|
substitution: h
|
|
7467
7467
|
}));
|
|
7468
7468
|
break;
|
|
7469
7469
|
case "12":
|
|
7470
|
-
h = f(r.current), h && n.splice(t, 1, new
|
|
7470
|
+
h = f(r.current), h && n.splice(t, 1, new Ke({
|
|
7471
7471
|
id: 12,
|
|
7472
7472
|
tag: e.tag,
|
|
7473
7473
|
substitution: h
|
|
7474
7474
|
}));
|
|
7475
7475
|
break;
|
|
7476
7476
|
case "63":
|
|
7477
|
-
h = f(r), Array.isArray(h) && h.length && n.splice(t, 1, new
|
|
7477
|
+
h = f(r), Array.isArray(h) && h.length && n.splice(t, 1, new Ke({
|
|
7478
7478
|
id: 63,
|
|
7479
7479
|
tag: e.tag,
|
|
7480
7480
|
substitution: h
|
|
7481
7481
|
}));
|
|
7482
7482
|
break;
|
|
7483
7483
|
case "41":
|
|
7484
|
-
h = f(r), h && n.splice(t, 1, new
|
|
7484
|
+
h = f(r), h && n.splice(t, 1, new Ke({
|
|
7485
7485
|
id: 41,
|
|
7486
7486
|
tag: e.tag,
|
|
7487
7487
|
substitution: h
|
|
7488
7488
|
}));
|
|
7489
7489
|
break;
|
|
7490
7490
|
case "21":
|
|
7491
|
-
h = f(r.current), h && n.splice(t, 1, new
|
|
7491
|
+
h = f(r.current), h && n.splice(t, 1, new Ke({
|
|
7492
7492
|
id: 21,
|
|
7493
7493
|
tag: e.tag,
|
|
7494
7494
|
substitution: h
|
|
@@ -7600,18 +7600,18 @@ function Lu(e, r, t) {
|
|
|
7600
7600
|
for (var o = e.substitution.components.length, n = 0; n < o; n++)
|
|
7601
7601
|
a = r[t + n + 1], a.setState("deleted", !0);
|
|
7602
7602
|
}
|
|
7603
|
-
var
|
|
7603
|
+
var ko = {
|
|
7604
7604
|
11: Uu,
|
|
7605
7605
|
12: Eu,
|
|
7606
7606
|
63: Ru,
|
|
7607
7607
|
41: Lu
|
|
7608
7608
|
};
|
|
7609
7609
|
function zt(e, r, t) {
|
|
7610
|
-
e instanceof
|
|
7610
|
+
e instanceof Ke && ko[e.id] && ko[e.id](e, r, t);
|
|
7611
7611
|
}
|
|
7612
|
-
function
|
|
7612
|
+
function Du(e) {
|
|
7613
7613
|
for (var r = [].concat(e.backtrack), t = r.length - 1; t >= 0; t--) {
|
|
7614
|
-
var a = r[t], o =
|
|
7614
|
+
var a = r[t], o = hn(a), n = We(a);
|
|
7615
7615
|
if (!o && !n)
|
|
7616
7616
|
return !0;
|
|
7617
7617
|
if (o)
|
|
@@ -7619,8 +7619,8 @@ function Pu(e) {
|
|
|
7619
7619
|
}
|
|
7620
7620
|
return !1;
|
|
7621
7621
|
}
|
|
7622
|
-
function
|
|
7623
|
-
if (
|
|
7622
|
+
function Pu(e) {
|
|
7623
|
+
if (hn(e.current))
|
|
7624
7624
|
return !1;
|
|
7625
7625
|
for (var r = 0; r < e.lookahead.length; r++) {
|
|
7626
7626
|
var t = e.lookahead[r], a = We(t);
|
|
@@ -7651,7 +7651,7 @@ function _u(e) {
|
|
|
7651
7651
|
if (!We(l.char)) {
|
|
7652
7652
|
n.setCurrentIndex(i), s.setCurrentIndex(i);
|
|
7653
7653
|
var c = 0;
|
|
7654
|
-
|
|
7654
|
+
Du(s) && (c |= 1), Pu(s) && (c |= 2);
|
|
7655
7655
|
var v;
|
|
7656
7656
|
switch (c) {
|
|
7657
7657
|
case 1:
|
|
@@ -7673,21 +7673,21 @@ function _u(e) {
|
|
|
7673
7673
|
if (u instanceof Error)
|
|
7674
7674
|
return console.info(u.message);
|
|
7675
7675
|
u.forEach(function(f, h) {
|
|
7676
|
-
f instanceof
|
|
7676
|
+
f instanceof Ke && (zt(f, o, h), n.context[h] = f.substitution);
|
|
7677
7677
|
});
|
|
7678
7678
|
}
|
|
7679
7679
|
}
|
|
7680
7680
|
});
|
|
7681
7681
|
}
|
|
7682
7682
|
}
|
|
7683
|
-
function
|
|
7683
|
+
function So(e, r) {
|
|
7684
7684
|
var t = e.map(function(a) {
|
|
7685
7685
|
return a.activeState.value;
|
|
7686
7686
|
});
|
|
7687
7687
|
return new Oe(t, 0);
|
|
7688
7688
|
}
|
|
7689
7689
|
function Fu(e) {
|
|
7690
|
-
var r = this, t = "arab", a = this.tokenizer.getRangeTokens(e), o =
|
|
7690
|
+
var r = this, t = "arab", a = this.tokenizer.getRangeTokens(e), o = So(a);
|
|
7691
7691
|
o.context.forEach(function(n, s) {
|
|
7692
7692
|
o.setCurrentIndex(s);
|
|
7693
7693
|
var l = r.query.lookupFeature({
|
|
@@ -7699,15 +7699,15 @@ function Fu(e) {
|
|
|
7699
7699
|
function(i) {
|
|
7700
7700
|
return zt(i, a, s);
|
|
7701
7701
|
}
|
|
7702
|
-
), o =
|
|
7702
|
+
), o = So(a));
|
|
7703
7703
|
});
|
|
7704
7704
|
}
|
|
7705
7705
|
function Iu(e) {
|
|
7706
7706
|
var r = e.current, t = e.get(-1);
|
|
7707
7707
|
return (
|
|
7708
7708
|
// ? latin first char
|
|
7709
|
-
t === null &&
|
|
7710
|
-
!
|
|
7709
|
+
t === null && qr(r) || // ? latin char preceded with a non latin char
|
|
7710
|
+
!qr(t) && qr(r)
|
|
7711
7711
|
);
|
|
7712
7712
|
}
|
|
7713
7713
|
function Bu(e) {
|
|
@@ -7715,21 +7715,21 @@ function Bu(e) {
|
|
|
7715
7715
|
return (
|
|
7716
7716
|
// ? last latin char
|
|
7717
7717
|
r === null || // ? next char is not latin
|
|
7718
|
-
!
|
|
7718
|
+
!qr(r)
|
|
7719
7719
|
);
|
|
7720
7720
|
}
|
|
7721
7721
|
var Au = {
|
|
7722
7722
|
startCheck: Iu,
|
|
7723
7723
|
endCheck: Bu
|
|
7724
7724
|
};
|
|
7725
|
-
function
|
|
7725
|
+
function xo(e, r) {
|
|
7726
7726
|
var t = e.map(function(a) {
|
|
7727
7727
|
return a.activeState.value;
|
|
7728
7728
|
});
|
|
7729
7729
|
return new Oe(t, 0);
|
|
7730
7730
|
}
|
|
7731
7731
|
function Mu(e) {
|
|
7732
|
-
var r = this, t = "latn", a = this.tokenizer.getRangeTokens(e), o =
|
|
7732
|
+
var r = this, t = "latn", a = this.tokenizer.getRangeTokens(e), o = xo(a);
|
|
7733
7733
|
o.context.forEach(function(n, s) {
|
|
7734
7734
|
o.setCurrentIndex(s);
|
|
7735
7735
|
var l = r.query.lookupFeature({
|
|
@@ -7741,7 +7741,7 @@ function Mu(e) {
|
|
|
7741
7741
|
function(i) {
|
|
7742
7742
|
return zt(i, a, s);
|
|
7743
7743
|
}
|
|
7744
|
-
), o =
|
|
7744
|
+
), o = xo(a));
|
|
7745
7745
|
});
|
|
7746
7746
|
}
|
|
7747
7747
|
function Ue(e) {
|
|
@@ -7887,12 +7887,12 @@ function Y(e) {
|
|
|
7887
7887
|
usWidthClass: e.widthClass || this.usWidthClasses.MEDIUM,
|
|
7888
7888
|
fsSelection: e.fsSelection || this.fsSelectionValues.REGULAR
|
|
7889
7889
|
}, e.tables.os2)
|
|
7890
|
-
})), this.supported = !0, this.glyphs = new Le.GlyphSet(this, e.glyphs || []), this.encoding = new
|
|
7890
|
+
})), this.supported = !0, this.glyphs = new Le.GlyphSet(this, e.glyphs || []), this.encoding = new jo(this), this.position = new Tr(this), this.substitution = new be(this), this.tables = this.tables || {}, this._push = null, this._hmtxTableData = {}, Object.defineProperty(this, "hinting", {
|
|
7891
7891
|
get: function() {
|
|
7892
7892
|
if (this._hinting)
|
|
7893
7893
|
return this._hinting;
|
|
7894
7894
|
if (this.outlinesFormat === "truetype")
|
|
7895
|
-
return this._hinting = new
|
|
7895
|
+
return this._hinting = new dn(this);
|
|
7896
7896
|
}
|
|
7897
7897
|
});
|
|
7898
7898
|
}
|
|
@@ -8031,7 +8031,7 @@ Y.prototype.download = function(e) {
|
|
|
8031
8031
|
var r = this.getEnglishName("fontFamily"), t = this.getEnglishName("fontSubfamily");
|
|
8032
8032
|
e = e || r.replace(/\s/g, "") + "-" + t + ".otf";
|
|
8033
8033
|
var a = this.toArrayBuffer();
|
|
8034
|
-
if (
|
|
8034
|
+
if (Di())
|
|
8035
8035
|
if (window.URL = window.URL || window.webkitURL, window.URL) {
|
|
8036
8036
|
var o = new DataView(a), n = new Blob([o], { type: "font/opentype" }), s = document.createElement("a");
|
|
8037
8037
|
s.href = window.URL.createObjectURL(n), s.download = e;
|
|
@@ -8040,7 +8040,7 @@ Y.prototype.download = function(e) {
|
|
|
8040
8040
|
} else
|
|
8041
8041
|
console.warn("Font file could not be downloaded. Try using a different browser.");
|
|
8042
8042
|
else {
|
|
8043
|
-
var i = require("fs"), c =
|
|
8043
|
+
var i = require("fs"), c = Pi(a);
|
|
8044
8044
|
i.writeFileSync(e, c);
|
|
8045
8045
|
}
|
|
8046
8046
|
};
|
|
@@ -8167,7 +8167,7 @@ Ie[9] = function() {
|
|
|
8167
8167
|
return { error: "GPOS Lookup 9 not supported" };
|
|
8168
8168
|
};
|
|
8169
8169
|
new Array(10);
|
|
8170
|
-
function
|
|
8170
|
+
function To(e, r) {
|
|
8171
8171
|
(r == null || r > e.length) && (r = e.length);
|
|
8172
8172
|
for (var t = 0, a = Array(r); t < r; t++) a[t] = e[t];
|
|
8173
8173
|
return a;
|
|
@@ -8205,7 +8205,7 @@ function Xu() {
|
|
|
8205
8205
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
8206
8206
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
8207
8207
|
}
|
|
8208
|
-
function
|
|
8208
|
+
function wo(e, r) {
|
|
8209
8209
|
var t = Object.keys(e);
|
|
8210
8210
|
if (Object.getOwnPropertySymbols) {
|
|
8211
8211
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -8215,12 +8215,12 @@ function To(e, r) {
|
|
|
8215
8215
|
}
|
|
8216
8216
|
return t;
|
|
8217
8217
|
}
|
|
8218
|
-
function
|
|
8218
|
+
function Oo(e) {
|
|
8219
8219
|
for (var r = 1; r < arguments.length; r++) {
|
|
8220
8220
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
8221
|
-
r % 2 ?
|
|
8221
|
+
r % 2 ? wo(Object(t), !0).forEach(function(a) {
|
|
8222
8222
|
ju(e, a, t[a]);
|
|
8223
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
8223
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : wo(Object(t)).forEach(function(a) {
|
|
8224
8224
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
8225
8225
|
});
|
|
8226
8226
|
}
|
|
@@ -8263,9 +8263,9 @@ function Ju(e) {
|
|
|
8263
8263
|
}
|
|
8264
8264
|
function Qu(e, r) {
|
|
8265
8265
|
if (e) {
|
|
8266
|
-
if (typeof e == "string") return
|
|
8266
|
+
if (typeof e == "string") return To(e, r);
|
|
8267
8267
|
var t = {}.toString.call(e).slice(8, -1);
|
|
8268
|
-
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ?
|
|
8268
|
+
return t === "Object" && e.constructor && (t = e.constructor.name), t === "Map" || t === "Set" ? Array.from(e) : t === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? To(e, r) : void 0;
|
|
8269
8269
|
}
|
|
8270
8270
|
}
|
|
8271
8271
|
function ec(e, r, t) {
|
|
@@ -8276,7 +8276,7 @@ function ec(e, r, t) {
|
|
|
8276
8276
|
writable: !0
|
|
8277
8277
|
}) : e[r] = t, e;
|
|
8278
8278
|
}
|
|
8279
|
-
function
|
|
8279
|
+
function Co(e, r) {
|
|
8280
8280
|
var t = Object.keys(e);
|
|
8281
8281
|
if (Object.getOwnPropertySymbols) {
|
|
8282
8282
|
var a = Object.getOwnPropertySymbols(e);
|
|
@@ -8286,12 +8286,12 @@ function Oo(e, r) {
|
|
|
8286
8286
|
}
|
|
8287
8287
|
return t;
|
|
8288
8288
|
}
|
|
8289
|
-
function
|
|
8289
|
+
function Uo(e) {
|
|
8290
8290
|
for (var r = 1; r < arguments.length; r++) {
|
|
8291
8291
|
var t = arguments[r] != null ? arguments[r] : {};
|
|
8292
|
-
r % 2 ?
|
|
8292
|
+
r % 2 ? Co(Object(t), !0).forEach(function(a) {
|
|
8293
8293
|
ec(e, a, t[a]);
|
|
8294
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) :
|
|
8294
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : Co(Object(t)).forEach(function(a) {
|
|
8295
8295
|
Object.defineProperty(e, a, Object.getOwnPropertyDescriptor(t, a));
|
|
8296
8296
|
});
|
|
8297
8297
|
}
|
|
@@ -8317,7 +8317,7 @@ function fr(e) {
|
|
|
8317
8317
|
};
|
|
8318
8318
|
};
|
|
8319
8319
|
}
|
|
8320
|
-
function
|
|
8320
|
+
function Qr(e) {
|
|
8321
8321
|
return {}.toString.call(e).includes("Object");
|
|
8322
8322
|
}
|
|
8323
8323
|
function tc(e) {
|
|
@@ -8330,7 +8330,7 @@ function ac(e, r) {
|
|
|
8330
8330
|
return Object.prototype.hasOwnProperty.call(e, r);
|
|
8331
8331
|
}
|
|
8332
8332
|
function oc(e, r) {
|
|
8333
|
-
return
|
|
8333
|
+
return Qr(r) || ze("changeType"), Object.keys(r).some(function(t) {
|
|
8334
8334
|
return !ac(e, t);
|
|
8335
8335
|
}) && ze("changeField"), r;
|
|
8336
8336
|
}
|
|
@@ -8338,12 +8338,12 @@ function nc(e) {
|
|
|
8338
8338
|
Sr(e) || ze("selectorType");
|
|
8339
8339
|
}
|
|
8340
8340
|
function sc(e) {
|
|
8341
|
-
Sr(e) ||
|
|
8341
|
+
Sr(e) || Qr(e) || ze("handlerType"), Qr(e) && Object.values(e).some(function(r) {
|
|
8342
8342
|
return !Sr(r);
|
|
8343
8343
|
}) && ze("handlersType");
|
|
8344
8344
|
}
|
|
8345
8345
|
function ic(e) {
|
|
8346
|
-
e || ze("initialIsRequired"),
|
|
8346
|
+
e || ze("initialIsRequired"), Qr(e) || ze("initialType"), tc(e) && ze("initialContent");
|
|
8347
8347
|
}
|
|
8348
8348
|
function lc(e, r) {
|
|
8349
8349
|
throw new Error(e[r] || e.default);
|
|
@@ -8358,7 +8358,7 @@ var uc = {
|
|
|
8358
8358
|
changeType: "provided value of changes should be an object",
|
|
8359
8359
|
changeField: 'it seams you want to change a field in the state which is not specified in the "initial" state',
|
|
8360
8360
|
default: "an unknown error accured in `state-local` package"
|
|
8361
|
-
}, ze = fr(lc)(uc),
|
|
8361
|
+
}, ze = fr(lc)(uc), Nr = {
|
|
8362
8362
|
changes: oc,
|
|
8363
8363
|
selector: nc,
|
|
8364
8364
|
handler: sc,
|
|
@@ -8366,15 +8366,15 @@ var uc = {
|
|
|
8366
8366
|
};
|
|
8367
8367
|
function cc(e) {
|
|
8368
8368
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
8369
|
-
|
|
8369
|
+
Nr.initial(e), Nr.handler(r);
|
|
8370
8370
|
var t = {
|
|
8371
8371
|
current: e
|
|
8372
|
-
}, a = fr(vc)(t, r), o = fr(pc)(t), n = fr(
|
|
8372
|
+
}, a = fr(vc)(t, r), o = fr(pc)(t), n = fr(Nr.changes)(e), s = fr(dc)(t);
|
|
8373
8373
|
function l() {
|
|
8374
8374
|
var c = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : function(v) {
|
|
8375
8375
|
return v;
|
|
8376
8376
|
};
|
|
8377
|
-
return
|
|
8377
|
+
return Nr.selector(c), c(t.current);
|
|
8378
8378
|
}
|
|
8379
8379
|
function i(c) {
|
|
8380
8380
|
rc(a, o, n, s)(c);
|
|
@@ -8385,7 +8385,7 @@ function dc(e, r) {
|
|
|
8385
8385
|
return Sr(r) ? r(e.current) : r;
|
|
8386
8386
|
}
|
|
8387
8387
|
function pc(e, r) {
|
|
8388
|
-
return e.current =
|
|
8388
|
+
return e.current = Uo(Uo({}, e.current), r), r;
|
|
8389
8389
|
}
|
|
8390
8390
|
function vc(e, r, t) {
|
|
8391
8391
|
return Sr(r) ? r(e.current) : Object.keys(t).forEach(function(a) {
|
|
@@ -8415,19 +8415,19 @@ function mc(e) {
|
|
|
8415
8415
|
return {}.toString.call(e).includes("Object");
|
|
8416
8416
|
}
|
|
8417
8417
|
function yc(e) {
|
|
8418
|
-
return e ||
|
|
8418
|
+
return e || Eo("configIsRequired"), mc(e) || Eo("configType"), e.urls ? (bc(), {
|
|
8419
8419
|
paths: {
|
|
8420
8420
|
vs: e.urls.monacoBase
|
|
8421
8421
|
}
|
|
8422
8422
|
}) : e;
|
|
8423
8423
|
}
|
|
8424
8424
|
function bc() {
|
|
8425
|
-
console.warn(
|
|
8425
|
+
console.warn(gn.deprecation);
|
|
8426
8426
|
}
|
|
8427
8427
|
function kc(e, r) {
|
|
8428
8428
|
throw new Error(e[r] || e.default);
|
|
8429
8429
|
}
|
|
8430
|
-
var
|
|
8430
|
+
var gn = {
|
|
8431
8431
|
configIsRequired: "the configuration object is required",
|
|
8432
8432
|
configType: "the configuration object should be an object",
|
|
8433
8433
|
default: "an unknown error accured in `@monaco-editor/loader` package",
|
|
@@ -8441,7 +8441,7 @@ var hn = {
|
|
|
8441
8441
|
|
|
8442
8442
|
For more please check the link https://github.com/suren-atoyan/monaco-loader#config
|
|
8443
8443
|
`
|
|
8444
|
-
},
|
|
8444
|
+
}, Eo = gc(kc)(gn), Sc = {
|
|
8445
8445
|
config: yc
|
|
8446
8446
|
}, xc = function() {
|
|
8447
8447
|
for (var r = arguments.length, t = new Array(r), a = 0; a < r; a++)
|
|
@@ -8452,10 +8452,10 @@ var hn = {
|
|
|
8452
8452
|
}, o);
|
|
8453
8453
|
};
|
|
8454
8454
|
};
|
|
8455
|
-
function
|
|
8455
|
+
function mn(e, r) {
|
|
8456
8456
|
return Object.keys(r).forEach(function(t) {
|
|
8457
|
-
r[t] instanceof Object && e[t] && Object.assign(r[t],
|
|
8458
|
-
}),
|
|
8457
|
+
r[t] instanceof Object && e[t] && Object.assign(r[t], mn(e[t], r[t]));
|
|
8458
|
+
}), Oo(Oo({}, e), r);
|
|
8459
8459
|
}
|
|
8460
8460
|
var Tc = {
|
|
8461
8461
|
type: "cancelation",
|
|
@@ -8477,12 +8477,12 @@ var wc = ["monaco"], Oc = fc.create({
|
|
|
8477
8477
|
resolve: null,
|
|
8478
8478
|
reject: null,
|
|
8479
8479
|
monaco: null
|
|
8480
|
-
}),
|
|
8480
|
+
}), yn = Zu(Oc, 2), Ur = yn[0], tt = yn[1];
|
|
8481
8481
|
function Cc(e) {
|
|
8482
8482
|
var r = Sc.config(e), t = r.monaco, a = $u(r, wc);
|
|
8483
|
-
|
|
8483
|
+
tt(function(o) {
|
|
8484
8484
|
return {
|
|
8485
|
-
config:
|
|
8485
|
+
config: mn(o.config, a),
|
|
8486
8486
|
monaco: t
|
|
8487
8487
|
};
|
|
8488
8488
|
});
|
|
@@ -8497,13 +8497,13 @@ function Uc() {
|
|
|
8497
8497
|
};
|
|
8498
8498
|
});
|
|
8499
8499
|
if (!e.isInitialized) {
|
|
8500
|
-
if (
|
|
8500
|
+
if (tt({
|
|
8501
8501
|
isInitialized: !0
|
|
8502
8502
|
}), e.monaco)
|
|
8503
8503
|
return e.resolve(e.monaco), xt(Tt);
|
|
8504
8504
|
if (window.monaco && window.monaco.editor)
|
|
8505
|
-
return
|
|
8506
|
-
xc(Ec, Lc)(
|
|
8505
|
+
return bn(window.monaco), e.resolve(window.monaco), xt(Tt);
|
|
8506
|
+
xc(Ec, Lc)(Dc);
|
|
8507
8507
|
}
|
|
8508
8508
|
return xt(Tt);
|
|
8509
8509
|
}
|
|
@@ -8526,7 +8526,7 @@ function Lc(e) {
|
|
|
8526
8526
|
return e();
|
|
8527
8527
|
}, t.onerror = r.reject, t;
|
|
8528
8528
|
}
|
|
8529
|
-
function
|
|
8529
|
+
function Dc() {
|
|
8530
8530
|
var e = Ur(function(t) {
|
|
8531
8531
|
var a = t.config, o = t.resolve, n = t.reject;
|
|
8532
8532
|
return {
|
|
@@ -8537,53 +8537,53 @@ function Pc() {
|
|
|
8537
8537
|
}), r = window.require;
|
|
8538
8538
|
r.config(e.config), r(["vs/editor/editor.main"], function(t) {
|
|
8539
8539
|
var a = t.m || t;
|
|
8540
|
-
|
|
8540
|
+
bn(a), e.resolve(a);
|
|
8541
8541
|
}, function(t) {
|
|
8542
8542
|
e.reject(t);
|
|
8543
8543
|
});
|
|
8544
8544
|
}
|
|
8545
|
-
function
|
|
8546
|
-
Ur().monaco ||
|
|
8545
|
+
function bn(e) {
|
|
8546
|
+
Ur().monaco || tt({
|
|
8547
8547
|
monaco: e
|
|
8548
8548
|
});
|
|
8549
8549
|
}
|
|
8550
|
-
function
|
|
8550
|
+
function Pc() {
|
|
8551
8551
|
return Ur(function(e) {
|
|
8552
8552
|
var r = e.monaco;
|
|
8553
8553
|
return r;
|
|
8554
8554
|
});
|
|
8555
8555
|
}
|
|
8556
8556
|
var Tt = new Promise(function(e, r) {
|
|
8557
|
-
return
|
|
8557
|
+
return tt({
|
|
8558
8558
|
resolve: e,
|
|
8559
8559
|
reject: r
|
|
8560
8560
|
});
|
|
8561
|
-
}),
|
|
8561
|
+
}), Ro = {
|
|
8562
8562
|
config: Cc,
|
|
8563
8563
|
init: Uc,
|
|
8564
|
-
__getMonacoInstance:
|
|
8564
|
+
__getMonacoInstance: Pc
|
|
8565
8565
|
};
|
|
8566
8566
|
const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text" }, Bc = {
|
|
8567
8567
|
key: 1,
|
|
8568
8568
|
class: "loading-container"
|
|
8569
|
-
}, Ac = /* @__PURE__ */
|
|
8569
|
+
}, Ac = /* @__PURE__ */ Qe({
|
|
8570
8570
|
__name: "OrderTemplateEditorForm",
|
|
8571
8571
|
props: {
|
|
8572
8572
|
template: {}
|
|
8573
8573
|
},
|
|
8574
8574
|
emits: ["update", "error"],
|
|
8575
8575
|
setup(e, { emit: r }) {
|
|
8576
|
-
const t = e, a = r, { emitData: o } = Mn(), n = Z(), s =
|
|
8576
|
+
const t = e, a = r, { emitData: o } = Mn(), n = Z(), s = Pn(null), l = Z(!0), i = Z(""), c = Z(!0), v = t.template ? JSON.stringify(t.template, null, 2) : "{}", u = async () => {
|
|
8577
8577
|
if (n.value)
|
|
8578
8578
|
try {
|
|
8579
|
-
|
|
8579
|
+
Ro.config({
|
|
8580
8580
|
paths: {
|
|
8581
8581
|
vs: "https://cdn.jsdelivr.net/npm/monaco-editor@0.52.2/min/vs"
|
|
8582
8582
|
}
|
|
8583
8583
|
});
|
|
8584
|
-
const f =
|
|
8585
|
-
if (await
|
|
8586
|
-
s.value =
|
|
8584
|
+
const f = Fa(await Ro.init());
|
|
8585
|
+
if (await Io(), !n.value) return;
|
|
8586
|
+
s.value = Fa(f.editor.create(n.value, {
|
|
8587
8587
|
value: v,
|
|
8588
8588
|
language: "json",
|
|
8589
8589
|
theme: "vs-light",
|
|
@@ -8617,7 +8617,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8617
8617
|
setTimeout(() => {
|
|
8618
8618
|
u();
|
|
8619
8619
|
}, 100), o(JSON.stringify(t.template || {}));
|
|
8620
|
-
}),
|
|
8620
|
+
}), _o(() => {
|
|
8621
8621
|
var f;
|
|
8622
8622
|
if (s.value)
|
|
8623
8623
|
try {
|
|
@@ -8628,8 +8628,8 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8628
8628
|
} catch (h) {
|
|
8629
8629
|
console.warn("Error disposing editor:", h), s.value = null;
|
|
8630
8630
|
}
|
|
8631
|
-
}), (f, h) => (
|
|
8632
|
-
!l.value && i.value && !c.value ? (
|
|
8631
|
+
}), (f, h) => (D(), F("div", _c, [
|
|
8632
|
+
!l.value && i.value && !c.value ? (D(), F("div", {
|
|
8633
8633
|
key: 0,
|
|
8634
8634
|
class: "error-banner",
|
|
8635
8635
|
title: i.value
|
|
@@ -8637,20 +8637,20 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8637
8637
|
h[0] || (h[0] = d("span", { class: "error-icon" }, "⚠", -1)),
|
|
8638
8638
|
d("span", Ic, _(i.value), 1)
|
|
8639
8639
|
], 8, Fc)) : X("", !0),
|
|
8640
|
-
c.value ? (
|
|
8640
|
+
c.value ? (D(), F("div", Bc, h[1] || (h[1] = [
|
|
8641
8641
|
d("div", { class: "loading-spinner" }, null, -1),
|
|
8642
8642
|
d("span", { class: "loading-text" }, "Loading JSON Editor...", -1)
|
|
8643
8643
|
]))) : X("", !0),
|
|
8644
8644
|
Ut(d("div", {
|
|
8645
8645
|
ref_key: "editorContainer",
|
|
8646
8646
|
ref: n,
|
|
8647
|
-
class:
|
|
8647
|
+
class: Fo(["editor-container", { "has-error": !l.value }])
|
|
8648
8648
|
}, null, 2), [
|
|
8649
8649
|
[Et, !c.value]
|
|
8650
8650
|
])
|
|
8651
8651
|
]));
|
|
8652
8652
|
}
|
|
8653
|
-
}), jt = /* @__PURE__ */
|
|
8653
|
+
}), jt = /* @__PURE__ */ Mo(Ac, [["__scopeId", "data-v-5f3f5512"]]), Mc = { class: "flex items-center gap-12" }, Nc = { class: "p-12 flex items-center gap-4" }, Lo = /* @__PURE__ */ Qe({
|
|
8654
8654
|
__name: "OrderTemplateEditorButton",
|
|
8655
8655
|
props: {
|
|
8656
8656
|
switchLabel: {},
|
|
@@ -8699,15 +8699,15 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8699
8699
|
}
|
|
8700
8700
|
return (c, v) => {
|
|
8701
8701
|
const u = oe("FmSwitch"), f = oe("FmButton");
|
|
8702
|
-
return
|
|
8702
|
+
return D(), F("div", Mc, [
|
|
8703
8703
|
d("div", Nc, [
|
|
8704
|
-
|
|
8704
|
+
T(u, {
|
|
8705
8705
|
"model-value": s.value,
|
|
8706
8706
|
"onUpdate:modelValue": l,
|
|
8707
8707
|
label: c.switchLabel || "Custom Template"
|
|
8708
8708
|
}, null, 8, ["model-value", "label"])
|
|
8709
8709
|
]),
|
|
8710
|
-
|
|
8710
|
+
T(f, {
|
|
8711
8711
|
variant: "secondary",
|
|
8712
8712
|
label: "Edit",
|
|
8713
8713
|
disabled: !s.value,
|
|
@@ -8716,7 +8716,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8716
8716
|
]);
|
|
8717
8717
|
};
|
|
8718
8718
|
}
|
|
8719
|
-
}), Gc = { 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" },
|
|
8719
|
+
}), Gc = { 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" }, Gr = /* @__PURE__ */ Qe({
|
|
8720
8720
|
__name: "LayoutTemplateSection",
|
|
8721
8721
|
props: {
|
|
8722
8722
|
title: {},
|
|
@@ -8727,10 +8727,10 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8727
8727
|
const r = e;
|
|
8728
8728
|
return (t, a) => {
|
|
8729
8729
|
const o = oe("FmSnackbar");
|
|
8730
|
-
return
|
|
8730
|
+
return D(), F("div", Gc, [
|
|
8731
8731
|
d("div", Hc, _(r.title), 1),
|
|
8732
8732
|
d("div", Vc, _(r.description), 1),
|
|
8733
|
-
r.warning ? (
|
|
8733
|
+
r.warning ? (D(), Pe(o, {
|
|
8734
8734
|
key: 0,
|
|
8735
8735
|
variant: "warning",
|
|
8736
8736
|
description: r.warning
|
|
@@ -8751,25 +8751,25 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8751
8751
|
}, Zc = { class: "flex-1" }, Kc = { class: "flex items-center gap-8" }, Jc = { class: "fm-typo-en-body-sm-600" }, Qc = { class: "fm-typo-en-body-xs-400 text-fm-color-typo-tertiary" }, ed = {
|
|
8752
8752
|
key: 0,
|
|
8753
8753
|
class: "fm-typo-en-body-xs-400 text-fm-color-typo-secondary mt-4"
|
|
8754
|
-
}, rd = { class: "flex items-center gap-8" },
|
|
8754
|
+
}, rd = { class: "flex items-center gap-8" }, Do = /* @__PURE__ */ Qe({
|
|
8755
8755
|
__name: "TemplateVersionHistory",
|
|
8756
8756
|
props: {
|
|
8757
8757
|
target: {}
|
|
8758
8758
|
},
|
|
8759
8759
|
emits: ["restored"],
|
|
8760
8760
|
setup(e, { expose: r, emit: t }) {
|
|
8761
|
-
const a = e, o = t, n =
|
|
8761
|
+
const a = e, o = t, n = Bo(), s = Bt(), l = At(), i = Z(!1), c = Z(0), v = Z([]);
|
|
8762
8762
|
async function u() {
|
|
8763
8763
|
var S;
|
|
8764
8764
|
if ((S = n.currentBusiness.value) != null && S._id) {
|
|
8765
8765
|
i.value = !0;
|
|
8766
8766
|
try {
|
|
8767
|
-
const k = await
|
|
8767
|
+
const k = await Wr.getTemplateHistory(
|
|
8768
8768
|
n.currentBusiness.value._id,
|
|
8769
8769
|
a.target
|
|
8770
8770
|
);
|
|
8771
8771
|
c.value = k.currentVersion, v.value = k.templateHistory.sort(
|
|
8772
|
-
(
|
|
8772
|
+
(w, P) => P.version - w.version
|
|
8773
8773
|
);
|
|
8774
8774
|
} catch (k) {
|
|
8775
8775
|
console.error("Failed to load template history:", k);
|
|
@@ -8793,7 +8793,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8793
8793
|
}
|
|
8794
8794
|
}).onPrimary(async () => {
|
|
8795
8795
|
try {
|
|
8796
|
-
const
|
|
8796
|
+
const w = await Wr.restoreTemplateVersion(
|
|
8797
8797
|
n.currentBusiness.value._id,
|
|
8798
8798
|
a.target,
|
|
8799
8799
|
S.version
|
|
@@ -8801,7 +8801,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8801
8801
|
l.open({
|
|
8802
8802
|
type: "success",
|
|
8803
8803
|
message: `Template restored to version ${S.version}`
|
|
8804
|
-
}), o("restored",
|
|
8804
|
+
}), o("restored", w.data.restoredTemplate), s.close(), await u();
|
|
8805
8805
|
} catch {
|
|
8806
8806
|
l.open({
|
|
8807
8807
|
type: "error",
|
|
@@ -8841,7 +8841,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8841
8841
|
}
|
|
8842
8842
|
}).onPrimary(async () => {
|
|
8843
8843
|
try {
|
|
8844
|
-
await
|
|
8844
|
+
await Wr.clearTemplateHistory(
|
|
8845
8845
|
n.currentBusiness.value._id,
|
|
8846
8846
|
a.target
|
|
8847
8847
|
), l.open({
|
|
@@ -8861,12 +8861,12 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8861
8861
|
}), r({
|
|
8862
8862
|
loadHistory: u
|
|
8863
8863
|
}), (S, k) => {
|
|
8864
|
-
const
|
|
8865
|
-
return
|
|
8864
|
+
const w = oe("FmButton"), P = oe("FmSpinner");
|
|
8865
|
+
return D(), F("div", zc, [
|
|
8866
8866
|
d("div", Wc, [
|
|
8867
8867
|
k[0] || (k[0] = d("div", { class: "fm-typo-en-body-sm-600 text-fm-color-typo-secondary" }, " Version History ", -1)),
|
|
8868
8868
|
d("div", jc, [
|
|
8869
|
-
v.value.length > 0 ? (
|
|
8869
|
+
v.value.length > 0 ? (D(), Pe(w, {
|
|
8870
8870
|
key: 0,
|
|
8871
8871
|
variant: "plain",
|
|
8872
8872
|
label: "Clear",
|
|
@@ -8875,12 +8875,12 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8875
8875
|
d("div", qc, " Current: v" + _(c.value), 1)
|
|
8876
8876
|
])
|
|
8877
8877
|
]),
|
|
8878
|
-
i.value ? (
|
|
8879
|
-
|
|
8880
|
-
])) : v.value.length === 0 ? (
|
|
8878
|
+
i.value ? (D(), F("div", Xc, [
|
|
8879
|
+
T(P, { size: "sm" })
|
|
8880
|
+
])) : v.value.length === 0 ? (D(), F("div", $c, k[1] || (k[1] = [
|
|
8881
8881
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-tertiary" }, " No previous versions available ", -1)
|
|
8882
|
-
]))) : (
|
|
8883
|
-
(
|
|
8882
|
+
]))) : (D(), F("div", Yc, [
|
|
8883
|
+
(D(!0), F(Ze, null, hr(v.value, (C) => (D(), F("div", {
|
|
8884
8884
|
key: C.version,
|
|
8885
8885
|
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"
|
|
8886
8886
|
}, [
|
|
@@ -8889,15 +8889,15 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8889
8889
|
d("span", Jc, "v" + _(C.version), 1),
|
|
8890
8890
|
d("span", Qc, _(b(Nn)(C.createdAt).format("MMM D, YYYY h:mm A")), 1)
|
|
8891
8891
|
]),
|
|
8892
|
-
C.description ? (
|
|
8892
|
+
C.description ? (D(), F("div", ed, _(C.description), 1)) : X("", !0)
|
|
8893
8893
|
]),
|
|
8894
8894
|
d("div", rd, [
|
|
8895
|
-
w
|
|
8895
|
+
T(w, {
|
|
8896
8896
|
variant: "plain",
|
|
8897
8897
|
label: "Preview",
|
|
8898
8898
|
onClick: (q) => h(C)
|
|
8899
8899
|
}, null, 8, ["onClick"]),
|
|
8900
|
-
w
|
|
8900
|
+
T(w, {
|
|
8901
8901
|
variant: "secondary",
|
|
8902
8902
|
label: "Restore",
|
|
8903
8903
|
onClick: (q) => f(C)
|
|
@@ -8908,7 +8908,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8908
8908
|
]);
|
|
8909
8909
|
};
|
|
8910
8910
|
}
|
|
8911
|
-
}), td = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ad = { class: "space-y-16 max-h-[70vh] overflow-y-auto" }, od = { class: "flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, nd = { class: "flex flex-col gap-4" }, sd = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, id = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ld = { class: "w-full flex justify-end gap-8" }, wt = /* @__PURE__ */
|
|
8911
|
+
}), td = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, ad = { class: "space-y-16 max-h-[70vh] overflow-y-auto" }, od = { class: "flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, nd = { class: "flex flex-col gap-4" }, sd = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, id = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ld = { class: "w-full flex justify-end gap-8" }, wt = /* @__PURE__ */ Qe({
|
|
8912
8912
|
__name: "ColorOverrideDialog",
|
|
8913
8913
|
props: {
|
|
8914
8914
|
modelValue: { type: Boolean },
|
|
@@ -8920,7 +8920,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8920
8920
|
},
|
|
8921
8921
|
emits: ["update:modelValue", "save", "cancel"],
|
|
8922
8922
|
setup(e, { emit: r }) {
|
|
8923
|
-
const t = e, a = r, { t: o } =
|
|
8923
|
+
const t = e, a = r, { t: o } = Ao(), n = me({
|
|
8924
8924
|
get: () => t.modelValue,
|
|
8925
8925
|
set: (U) => a("update:modelValue", U)
|
|
8926
8926
|
}), s = Z({}), l = () => JSON.parse(JSON.stringify(t.value ?? {})), i = () => {
|
|
@@ -8987,9 +8987,9 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8987
8987
|
u(s.value, U, h(U));
|
|
8988
8988
|
}, k = (U) => {
|
|
8989
8989
|
u(s.value, U, h(U));
|
|
8990
|
-
},
|
|
8990
|
+
}, w = (U, I) => {
|
|
8991
8991
|
u(s.value, U, I);
|
|
8992
|
-
},
|
|
8992
|
+
}, P = (U) => c(s.value, U) !== void 0, C = () => {
|
|
8993
8993
|
i(), a("cancel"), n.value = !1;
|
|
8994
8994
|
}, q = () => {
|
|
8995
8995
|
const U = v(s.value);
|
|
@@ -8997,7 +8997,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
8997
8997
|
};
|
|
8998
8998
|
return (U, I) => {
|
|
8999
8999
|
const V = oe("FmSwitch"), A = oe("FmButton"), j = oe("FmDialog");
|
|
9000
|
-
return
|
|
9000
|
+
return D(), Pe(j, {
|
|
9001
9001
|
modelValue: n.value,
|
|
9002
9002
|
"onUpdate:modelValue": I[0] || (I[0] = (H) => n.value = H),
|
|
9003
9003
|
"max-width": 720
|
|
@@ -9007,12 +9007,12 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9007
9007
|
]),
|
|
9008
9008
|
"dialog-footer": Te(() => [
|
|
9009
9009
|
d("div", ld, [
|
|
9010
|
-
|
|
9010
|
+
T(A, {
|
|
9011
9011
|
variant: "secondary",
|
|
9012
9012
|
label: b(o)("brand.brandkit.ordering.colorOverride.close"),
|
|
9013
9013
|
onClick: C
|
|
9014
9014
|
}, null, 8, ["label"]),
|
|
9015
|
-
|
|
9015
|
+
T(A, {
|
|
9016
9016
|
label: b(o)("brand.brandkit.ordering.colorOverride.save"),
|
|
9017
9017
|
onClick: q
|
|
9018
9018
|
}, null, 8, ["label"])
|
|
@@ -9020,7 +9020,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9020
9020
|
]),
|
|
9021
9021
|
default: Te(() => [
|
|
9022
9022
|
d("div", ad, [
|
|
9023
|
-
(
|
|
9023
|
+
(D(!0), F(Ze, null, hr(U.colorFields, (H) => (D(), F("div", {
|
|
9024
9024
|
key: H.key,
|
|
9025
9025
|
class: "border border-fm-color-neutral-gray-100 rounded-lg overflow-hidden"
|
|
9026
9026
|
}, [
|
|
@@ -9029,20 +9029,20 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9029
9029
|
d("div", sd, _(H.title), 1),
|
|
9030
9030
|
d("div", id, _(H.description), 1)
|
|
9031
9031
|
]),
|
|
9032
|
-
|
|
9033
|
-
"model-value":
|
|
9032
|
+
T(V, {
|
|
9033
|
+
"model-value": P(H.key),
|
|
9034
9034
|
"onUpdate:modelValue": ($) => S(H.key, $)
|
|
9035
9035
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
9036
9036
|
]),
|
|
9037
9037
|
d("div", {
|
|
9038
|
-
class:
|
|
9039
|
-
"opacity-50 pointer-events-none": !
|
|
9038
|
+
class: Fo(["px-16 py-12", {
|
|
9039
|
+
"opacity-50 pointer-events-none": !P(H.key)
|
|
9040
9040
|
}])
|
|
9041
9041
|
}, [
|
|
9042
|
-
|
|
9042
|
+
T(ye, {
|
|
9043
9043
|
"initial-color": h(H.key),
|
|
9044
9044
|
color: x(H.key),
|
|
9045
|
-
onUpdate: ($) =>
|
|
9045
|
+
onUpdate: ($) => w(H.key, $),
|
|
9046
9046
|
onRemove: ($) => k(H.key),
|
|
9047
9047
|
title: H.title,
|
|
9048
9048
|
description: H.description
|
|
@@ -9055,16 +9055,16 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9055
9055
|
}, 8, ["modelValue"]);
|
|
9056
9056
|
};
|
|
9057
9057
|
}
|
|
9058
|
-
}), ud = { class: "p-24 h-full w-full flex flex-col bg-fm-color-neutral-white overflow-scroll" }, cd = { class: "flex items-center justify-between mb-[20px]" }, dd = { class: "fm-typo-en-title-md-600" }, pd = { class: "flex items-center gap-8" }, vd = { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, fd = { class: "overflow-hidden" }, hd = { class: "w-full mt-12" }, gd = { class: "flex items-center justify-end gap-8" }, md = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, yd = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, bd = { class: "fm-typo-en-body-lg-600" }, kd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sd = { class: "py-12 px-24 flex flex-col gap-12" }, xd = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Td = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, wd = { class: "fm-typo-en-body-lg-600" }, Od = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Cd = { class: "py-12 px-24 flex flex-col gap-12" }, Ud = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Ed = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, Rd = { class: "fm-typo-en-body-lg-600" }, Ld = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
9058
|
+
}), ud = { class: "p-24 h-full w-full flex flex-col bg-fm-color-neutral-white overflow-scroll" }, cd = { class: "flex items-center justify-between mb-[20px]" }, dd = { class: "fm-typo-en-title-md-600" }, pd = { class: "flex items-center gap-8" }, vd = { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, fd = { class: "overflow-hidden" }, hd = { class: "w-full mt-12" }, gd = { class: "flex items-center justify-end gap-8" }, md = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, yd = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, bd = { class: "fm-typo-en-body-lg-600" }, kd = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Sd = { class: "py-12 px-24 flex flex-col gap-12" }, xd = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Td = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, wd = { class: "fm-typo-en-body-lg-600" }, Od = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Cd = { class: "py-12 px-24 flex flex-col gap-12" }, Ud = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Ed = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, Rd = { class: "fm-typo-en-body-lg-600" }, Ld = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Dd = { class: "py-12 px-24 flex flex-col gap-12" }, Pd = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, _d = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, Fd = { class: "fm-typo-en-body-lg-600" }, Id = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Bd = { class: "py-12 px-24 flex flex-col gap-12" }, Ad = { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, Md = { class: "overflow-hidden" }, Nd = { class: "w-full mt-12" }, Gd = { class: "flex items-center justify-end gap-8" }, Hd = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Vd = { class: "py-12 px-24 space-y-16" }, zd = { class: "flex items-end gap-12 flex-col lg:flex-row" }, Wd = { class: "w-full flex-1" }, jd = {
|
|
9059
9059
|
key: 0,
|
|
9060
9060
|
class: "flex flex-col gap-12"
|
|
9061
9061
|
}, qd = { class: "w-full flex-1" }, Xd = {
|
|
9062
9062
|
key: 1,
|
|
9063
9063
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
9064
|
-
}, $d = { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, Yd = { class: "overflow-hidden" }, Zd = { class: "w-full mt-12" }, Kd = { class: "flex items-center justify-end gap-8" }, Jd = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Qd = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, ep = { class: "fm-typo-en-body-lg-600" }, rp = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, tp = { class: "grid grid-cols-1 lg:grid-cols-2 gap-24 mt-12" }, ap = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, op = { class: "py-16 px-24 bg-fm-color-secondary-50 border-b border-fm-color-neutral-gray-100" }, np = { class: "flex items-center gap-12 mb-8" }, sp = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-secondary-100 rounded-full" }, ip = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, lp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, up = { class: "px-24 py-24" }, cp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, dp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, pp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, vp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, fp = { class: "px-24 py-12" }, hp = { class: "space-y-12" }, gp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, mp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, yp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, bp = { class: "px-24 py-12" }, kp = { class: "space-y-12" }, Sp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, xp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Tp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, 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" }, Up = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ep = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Rp = { class: "py-12 px-24" }, Lp = { class: "py-12 px-24" },
|
|
9064
|
+
}, $d = { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, Yd = { class: "overflow-hidden" }, Zd = { class: "w-full mt-12" }, Kd = { class: "flex items-center justify-end gap-8" }, Jd = { class: "rounded-lg overflow-hidden mt-12 border border-fm-color-neutral-gray-100" }, Qd = { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, ep = { class: "fm-typo-en-body-lg-600" }, rp = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, tp = { class: "grid grid-cols-1 lg:grid-cols-2 gap-24 mt-12" }, ap = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, op = { class: "py-16 px-24 bg-fm-color-secondary-50 border-b border-fm-color-neutral-gray-100" }, np = { class: "flex items-center gap-12 mb-8" }, sp = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-secondary-100 rounded-full" }, ip = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, lp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, up = { class: "px-24 py-24" }, cp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, dp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, pp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, vp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, fp = { class: "px-24 py-12" }, hp = { class: "space-y-12" }, gp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, mp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, yp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, bp = { class: "px-24 py-12" }, kp = { class: "space-y-12" }, Sp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, xp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Tp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, 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" }, Up = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ep = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Rp = { class: "py-12 px-24" }, Lp = { class: "py-12 px-24" }, Dp = {
|
|
9065
9065
|
key: 0,
|
|
9066
9066
|
class: "space-y-12"
|
|
9067
|
-
},
|
|
9067
|
+
}, Pp = { class: "flex items-start gap-12 flex-col lg:flex-row" }, _p = { class: "w-full flex-1" }, Fp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex flex-col gap-8" }, Ip = { class: "flex items-center justify-between gap-8 flex-col lg:flex-row" }, Bp = { class: "bg-white border border-fm-color-neutral-gray-100 rounded p-12 text-xs whitespace-pre-wrap break-words" }, Ap = {
|
|
9068
9068
|
key: 1,
|
|
9069
9069
|
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"
|
|
9070
9070
|
}, Mp = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, Np = { class: "py-16 px-24 bg-fm-color-primary-50 border-b border-fm-color-neutral-gray-100" }, Gp = { class: "flex items-center gap-12 mb-8" }, Hp = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-primary-100 rounded-full" }, Vp = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, zp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Wp = { class: "px-24 py-24" }, jp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, qp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Xp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, $p = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Yp = { class: "py-12 px-24" }, Zp = { class: "space-y-12" }, Kp = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, Jp = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Qp = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, ev = { class: "py-12 px-24" }, rv = { class: "space-y-12" }, tv = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, av = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ov = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, nv = { class: "py-12 px-24" }, sv = { class: "space-y-12" }, iv = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, lv = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, uv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, cv = { class: "py-12 px-24" }, dv = { class: "py-12 px-24" }, pv = {
|
|
@@ -9073,7 +9073,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9073
9073
|
}, vv = { class: "flex items-start gap-12 flex-col lg:flex-row" }, fv = { class: "w-full flex-1" }, hv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex flex-col gap-8" }, gv = { class: "flex items-center justify-between gap-8 flex-col lg:flex-row" }, mv = { class: "bg-white border border-fm-color-neutral-gray-100 rounded p-12 text-xs whitespace-pre-wrap break-words" }, yv = {
|
|
9074
9074
|
key: 1,
|
|
9075
9075
|
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"
|
|
9076
|
-
}, bv = { class: "mt-12 grid grid-cols-1 items-start gap-24 lg:grid-cols-2" }, kv = { class: "min-w-0 space-y-24" }, Sv = { class: "grid grid-cols-1 gap-24 2xl:grid-cols-2" }, xv = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, Tv = { class: "py-16 px-24 bg-fm-color-secondary-50 border-b border-fm-color-neutral-gray-100" }, wv = { class: "flex items-center gap-12 mb-8" }, Ov = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-secondary-100 rounded-full" }, Cv = { class: "px-24 py-12" }, Uv = { class: "flex items-center justify-end gap-8" }, Ev = { class: "px-24 py-12" }, Rv = { class: "space-y-12" }, Lv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" },
|
|
9076
|
+
}, bv = { class: "mt-12 grid grid-cols-1 items-start gap-24 lg:grid-cols-2" }, kv = { class: "min-w-0 space-y-24" }, Sv = { class: "grid grid-cols-1 gap-24 2xl:grid-cols-2" }, xv = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, Tv = { class: "py-16 px-24 bg-fm-color-secondary-50 border-b border-fm-color-neutral-gray-100" }, wv = { class: "flex items-center gap-12 mb-8" }, Ov = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-secondary-100 rounded-full" }, Cv = { class: "px-24 py-12" }, Uv = { class: "flex items-center justify-end gap-8" }, Ev = { class: "px-24 py-12" }, Rv = { class: "space-y-12" }, Lv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Dv = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Pv = { class: "px-24 py-12" }, _v = { class: "space-y-12" }, Fv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Iv = {
|
|
9077
9077
|
key: 0,
|
|
9078
9078
|
class: "px-24 py-12"
|
|
9079
9079
|
}, Bv = { class: "space-y-12" }, Av = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Mv = {
|
|
@@ -9088,49 +9088,52 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9088
9088
|
}, jv = { class: "space-y-12" }, qv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Xv = {
|
|
9089
9089
|
key: 4,
|
|
9090
9090
|
class: "px-24 py-12"
|
|
9091
|
-
}, $v = { class: "space-y-12" }, Yv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Zv = {
|
|
9091
|
+
}, $v = { class: "space-y-12" }, Yv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Zv = {
|
|
9092
|
+
key: 5,
|
|
9093
|
+
class: "px-24 py-12"
|
|
9094
|
+
}, Kv = { class: "space-y-12" }, Jv = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 flex items-center justify-between" }, Qv = { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, ef = { class: "py-16 px-24 bg-fm-color-primary-50 border-b border-fm-color-neutral-gray-100" }, rf = { class: "flex items-center gap-12 mb-8" }, tf = { class: "inline-flex items-center justify-center w-10 h-10 bg-fm-color-primary-100 rounded-full" }, af = { class: "px-24 py-12" }, of = { class: "flex items-center justify-end gap-8" }, nf = { class: "px-24 py-12" }, sf = { class: "space-y-12" }, lf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 space-y-12" }, uf = { class: "flex flex-wrap gap-12" }, cf = {
|
|
9092
9095
|
key: 0,
|
|
9093
9096
|
class: "relative"
|
|
9094
|
-
},
|
|
9097
|
+
}, df = { class: "w-full h-[160px] border border-fm-color-neutral-gray-200 rounded-lg overflow-hidden bg-fm-color-neutral-white" }, pf = ["src"], vf = {
|
|
9095
9098
|
key: 0,
|
|
9096
9099
|
class: "mt-8 flex items-center gap-8"
|
|
9097
|
-
},
|
|
9100
|
+
}, ff = {
|
|
9098
9101
|
key: 2,
|
|
9099
9102
|
class: "text-center"
|
|
9100
|
-
},
|
|
9103
|
+
}, hf = {
|
|
9101
9104
|
key: 3,
|
|
9102
9105
|
class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 bg-white px-16 py-16"
|
|
9103
|
-
},
|
|
9106
|
+
}, gf = {
|
|
9104
9107
|
key: 4,
|
|
9105
9108
|
class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 bg-white px-16 py-16"
|
|
9106
|
-
},
|
|
9109
|
+
}, mf = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, yf = { class: "px-24 py-12" }, bf = { class: "space-y-12" }, kf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12 space-y-12" }, Sf = { class: "flex flex-wrap gap-12" }, xf = {
|
|
9107
9110
|
key: 0,
|
|
9108
9111
|
class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 bg-white px-16 py-16"
|
|
9109
|
-
},
|
|
9112
|
+
}, Tf = {
|
|
9110
9113
|
key: 0,
|
|
9111
9114
|
class: "relative"
|
|
9112
|
-
},
|
|
9115
|
+
}, wf = { class: "w-full h-[160px] border border-fm-color-neutral-gray-200 rounded-lg overflow-hidden bg-fm-color-neutral-white" }, Of = ["src"], Cf = {
|
|
9113
9116
|
key: 0,
|
|
9114
9117
|
class: "mt-8 flex items-center gap-8"
|
|
9115
|
-
},
|
|
9118
|
+
}, Uf = {
|
|
9116
9119
|
key: 2,
|
|
9117
9120
|
class: "text-center"
|
|
9118
|
-
},
|
|
9121
|
+
}, Ef = {
|
|
9119
9122
|
key: 3,
|
|
9120
9123
|
class: "rounded-lg border border-dashed border-fm-color-neutral-gray-200 bg-white px-16 py-16"
|
|
9121
|
-
},
|
|
9124
|
+
}, Rf = {
|
|
9122
9125
|
key: 4,
|
|
9123
9126
|
class: "grid grid-cols-1 lg:grid-cols-2 gap-12"
|
|
9124
|
-
},
|
|
9127
|
+
}, Lf = { class: "px-24 py-12" }, Df = { class: "space-y-12" }, Pf = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, _f = {
|
|
9125
9128
|
key: 0,
|
|
9126
9129
|
class: "px-24 py-12"
|
|
9127
|
-
},
|
|
9130
|
+
}, Ff = { class: "space-y-12" }, If = { class: "bg-fm-color-neutral-gray-50 rounded-lg p-12" }, Bf = { class: "min-w-0 lg:sticky lg:top-24" }, Af = { class: "overflow-hidden rounded-lg border border-fm-color-neutral-gray-100 bg-white" }, Mf = { class: "border-b border-fm-color-neutral-gray-100 bg-fm-color-neutral-gray-50 px-24 py-16" }, Nf = { class: "flex flex-col gap-12 lg:flex-row lg:items-start lg:justify-between" }, Gf = { class: "flex flex-wrap items-center gap-8" }, Hf = { class: "bg-fm-color-neutral-gray-50 p-16" }, Vf = ["src"], zf = {
|
|
9128
9131
|
key: 1,
|
|
9129
9132
|
class: "flex h-[320px] items-center justify-center rounded-[16px] border border-dashed border-fm-color-neutral-gray-200 bg-white px-24 text-center"
|
|
9130
|
-
},
|
|
9133
|
+
}, Hr = 1920, Vr = 1080, zr = "/images/feedme-bg.png", Ot = "/images/feedme-bg-left-image.png", Wf = /* @__PURE__ */ Qe({
|
|
9131
9134
|
__name: "BrandkitView",
|
|
9132
9135
|
setup(e) {
|
|
9133
|
-
const { t: r } =
|
|
9136
|
+
const { t: r } = Ao(), t = Z(null), a = Z(null), o = Bo(), n = Bn(), s = An(), l = Bt(), i = At(), c = me(() => ({
|
|
9134
9137
|
category: [
|
|
9135
9138
|
{
|
|
9136
9139
|
label: r("brand.brandkit.ordering.vertical"),
|
|
@@ -9247,18 +9250,18 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9247
9250
|
snackbar: !0
|
|
9248
9251
|
}), x = Z(null), S = Z(1);
|
|
9249
9252
|
let k = null;
|
|
9250
|
-
const
|
|
9253
|
+
const w = Z(""), P = me(
|
|
9251
9254
|
() => u.value.fontFamilies ?? []
|
|
9252
9255
|
), C = () => {
|
|
9253
9256
|
u.value.fontFamilies || (u.value.fontFamilies = []);
|
|
9254
9257
|
}, q = () => {
|
|
9255
|
-
const g =
|
|
9258
|
+
const g = w.value.trim();
|
|
9256
9259
|
if (!g) return;
|
|
9257
9260
|
C();
|
|
9258
9261
|
const p = u.value.fontFamilies.findIndex(
|
|
9259
9262
|
(O) => O.stylesheet === g
|
|
9260
9263
|
);
|
|
9261
|
-
p !== -1 ? u.value.fontFamilies[p].stylesheet = g : u.value.fontFamilies.push({ stylesheet: g }),
|
|
9264
|
+
p !== -1 ? u.value.fontFamilies[p].stylesheet = g : u.value.fontFamilies.push({ stylesheet: g }), w.value = "";
|
|
9262
9265
|
}, U = (g, p) => {
|
|
9263
9266
|
var O;
|
|
9264
9267
|
C(), (O = u.value.fontFamilies) != null && O[g] && (u.value.fontFamilies[g].stylesheet = p);
|
|
@@ -9266,7 +9269,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9266
9269
|
var p;
|
|
9267
9270
|
(p = u.value.fontFamilies) == null || p.splice(g, 1);
|
|
9268
9271
|
}, V = () => {
|
|
9269
|
-
u.value.fontFamilies = [],
|
|
9272
|
+
u.value.fontFamilies = [], w.value = "";
|
|
9270
9273
|
}, A = Z(!1), j = Z(!1), H = me(
|
|
9271
9274
|
() => {
|
|
9272
9275
|
var g, p;
|
|
@@ -9314,8 +9317,8 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9314
9317
|
}).onPrimary((ve) => {
|
|
9315
9318
|
if (ve)
|
|
9316
9319
|
try {
|
|
9317
|
-
const
|
|
9318
|
-
u.value.layout[g].plugins[p].pluginParams =
|
|
9320
|
+
const Se = JSON.parse(ve);
|
|
9321
|
+
u.value.layout[g].plugins[p].pluginParams = Se, l.close();
|
|
9319
9322
|
} catch {
|
|
9320
9323
|
i.open({
|
|
9321
9324
|
type: "error",
|
|
@@ -9337,7 +9340,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9337
9340
|
var O;
|
|
9338
9341
|
const p = ((O = u.value.ordering) == null ? void 0 : O[g].brandkitOverride) ?? {};
|
|
9339
9342
|
return v.value.reduce((W, ve) => W + (K(p, ve.key) !== void 0 ? 1 : 0), 0);
|
|
9340
|
-
},
|
|
9343
|
+
}, er = (g, p) => {
|
|
9341
9344
|
var O;
|
|
9342
9345
|
re(g), p ? u.value.ordering[g].brandkitOverride = p : (O = u.value.ordering) != null && O[g] && delete u.value.ordering[g].brandkitOverride;
|
|
9343
9346
|
}, lr = {
|
|
@@ -9346,8 +9349,9 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9346
9349
|
statusSlidingPeriod: 1e4,
|
|
9347
9350
|
showProgressBar: !0,
|
|
9348
9351
|
statusColumnCount: 2,
|
|
9349
|
-
showDeliveryIcons: !0
|
|
9350
|
-
|
|
9352
|
+
showDeliveryIcons: !0,
|
|
9353
|
+
showOrderTypeTabs: !0
|
|
9354
|
+
}, De = {
|
|
9351
9355
|
background: {
|
|
9352
9356
|
url: "/images/feedme-bg.png",
|
|
9353
9357
|
size: "cover",
|
|
@@ -9359,17 +9363,17 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9359
9363
|
widthPercent: 33
|
|
9360
9364
|
}
|
|
9361
9365
|
}, ur = (g) => g ? {
|
|
9362
|
-
...
|
|
9366
|
+
...De,
|
|
9363
9367
|
...g,
|
|
9364
|
-
background: g.background === void 0 ?
|
|
9365
|
-
sidePanel: g.sidePanel === void 0 ?
|
|
9366
|
-
} :
|
|
9368
|
+
background: g.background === void 0 ? De.background : g.background,
|
|
9369
|
+
sidePanel: g.sidePanel === void 0 ? De.sidePanel : g.sidePanel
|
|
9370
|
+
} : De, Be = () => {
|
|
9367
9371
|
u.value.ods || (u.value.ods = {});
|
|
9368
|
-
},
|
|
9372
|
+
}, rr = () => {
|
|
9369
9373
|
Be(), u.value.ods.display || (u.value.ods.display = { ...lr });
|
|
9370
9374
|
}, qe = () => {
|
|
9371
9375
|
Be(), u.value.ods.layout || (u.value.ods.layout = {});
|
|
9372
|
-
},
|
|
9376
|
+
}, ge = me(() => {
|
|
9373
9377
|
var g;
|
|
9374
9378
|
return {
|
|
9375
9379
|
...lr,
|
|
@@ -9380,43 +9384,43 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9380
9384
|
var g;
|
|
9381
9385
|
return ur((g = u.value.ods) == null ? void 0 : g.layout);
|
|
9382
9386
|
}
|
|
9383
|
-
),
|
|
9387
|
+
), at = [
|
|
9384
9388
|
{ label: "Status", value: "status" },
|
|
9385
9389
|
{ label: "Type", value: "type" }
|
|
9386
|
-
],
|
|
9390
|
+
], ot = [
|
|
9387
9391
|
{ label: "Horizontal", value: "horizontal" },
|
|
9388
9392
|
{ label: "Vertical", value: "vertical" }
|
|
9389
|
-
],
|
|
9393
|
+
], nt = [
|
|
9390
9394
|
{ label: "1", value: 1 },
|
|
9391
9395
|
{ label: "2", value: 2 },
|
|
9392
9396
|
{ label: "3", value: 3 }
|
|
9393
|
-
],
|
|
9397
|
+
], st = [
|
|
9394
9398
|
{ label: "Left", value: "left" },
|
|
9395
9399
|
{ label: "Center", value: "center" },
|
|
9396
9400
|
{ label: "Right", value: "right" }
|
|
9397
|
-
],
|
|
9401
|
+
], it = [
|
|
9398
9402
|
{ label: "Left", value: "left" },
|
|
9399
9403
|
{ label: "Right", value: "right" }
|
|
9400
|
-
],
|
|
9401
|
-
|
|
9404
|
+
], Xe = (g, p) => {
|
|
9405
|
+
rr(), u.value.ods.display[g] = p;
|
|
9402
9406
|
}, qt = (g, p) => {
|
|
9403
9407
|
qe(), u.value.ods.layout[g] = p;
|
|
9404
|
-
}, bn = () => {
|
|
9405
|
-
Be(), u.value.ods.display = { ...lr };
|
|
9406
9408
|
}, kn = () => {
|
|
9407
|
-
Be(), u.value.ods.
|
|
9408
|
-
},
|
|
9409
|
+
Be(), u.value.ods.display = { ...lr };
|
|
9410
|
+
}, Sn = () => {
|
|
9411
|
+
Be(), u.value.ods.layout = void 0, lt(), ct();
|
|
9412
|
+
}, Er = Z(null), cr = Z(!1), ae = Z("default"), Xt = (g = zr) => ({
|
|
9409
9413
|
url: g,
|
|
9410
9414
|
size: "cover",
|
|
9411
9415
|
position: "center"
|
|
9412
|
-
}),
|
|
9416
|
+
}), lt = () => {
|
|
9413
9417
|
var p, O;
|
|
9414
9418
|
const g = (O = (p = u.value.ods) == null ? void 0 : p.layout) == null ? void 0 : O.background;
|
|
9415
9419
|
if (g === null) {
|
|
9416
9420
|
ae.value = "disable";
|
|
9417
9421
|
return;
|
|
9418
9422
|
}
|
|
9419
|
-
if (!g || g.url ===
|
|
9423
|
+
if (!g || g.url === zr) {
|
|
9420
9424
|
ae.value = "default";
|
|
9421
9425
|
return;
|
|
9422
9426
|
}
|
|
@@ -9435,7 +9439,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9435
9439
|
u.value.ods.layout.background = W && W !== null ? W : Xt(), ae.value = "custom";
|
|
9436
9440
|
return;
|
|
9437
9441
|
}
|
|
9438
|
-
const p = g === "left" ? Ot :
|
|
9442
|
+
const p = g === "left" ? Ot : zr, O = u.value.ods.layout.background;
|
|
9439
9443
|
u.value.ods.layout.background = {
|
|
9440
9444
|
...O && O !== null ? O : Xt(p),
|
|
9441
9445
|
url: p
|
|
@@ -9443,14 +9447,14 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9443
9447
|
}, $t = me(() => {
|
|
9444
9448
|
var p, O, W;
|
|
9445
9449
|
const g = (W = (O = (p = u.value.ods) == null ? void 0 : p.layout) == null ? void 0 : O.background) == null ? void 0 : W.url;
|
|
9446
|
-
return !!g && g !==
|
|
9450
|
+
return !!g && g !== zr && g !== Ot;
|
|
9447
9451
|
}), Yt = async (g) => {
|
|
9448
9452
|
var p, O;
|
|
9449
9453
|
cr.value = !0;
|
|
9450
9454
|
try {
|
|
9451
|
-
const W = `ods/background/${
|
|
9455
|
+
const W = `ods/background/${Ma()}.${g.name.split(".").pop()}`, ve = await Ba.uploadImage(o.currentBusiness.value._id, W, g), Se = Aa(`https://image.feedmedev.cc/business/${o.currentBusiness.value._id}/${ve.imagePath}`);
|
|
9452
9456
|
qe(), u.value.ods.layout.background = {
|
|
9453
|
-
url:
|
|
9457
|
+
url: Se,
|
|
9454
9458
|
size: ((p = u.value.ods.layout.background) == null ? void 0 : p.size) ?? "cover",
|
|
9455
9459
|
position: ((O = u.value.ods.layout.background) == null ? void 0 : O.position) ?? "center"
|
|
9456
9460
|
}, ae.value = "custom";
|
|
@@ -9461,7 +9465,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9461
9465
|
var p, O, W;
|
|
9462
9466
|
dr.value = !0;
|
|
9463
9467
|
try {
|
|
9464
|
-
const ve = `ods/sidepanel/${
|
|
9468
|
+
const ve = `ods/sidepanel/${Ma()}.${g.name.split(".").pop()}`, Se = await Ba.uploadImage(o.currentBusiness.value._id, ve, g), tr = Aa(`https://image.feedmedev.cc/business/${o.currentBusiness.value._id}/${Se.imagePath}`);
|
|
9465
9469
|
qe(), u.value.ods.layout.sidePanel = {
|
|
9466
9470
|
url: tr,
|
|
9467
9471
|
position: ((p = u.value.ods.layout.sidePanel) == null ? void 0 : p.position) ?? "left",
|
|
@@ -9471,25 +9475,25 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9471
9475
|
} finally {
|
|
9472
9476
|
dr.value = !1;
|
|
9473
9477
|
}
|
|
9474
|
-
}, he = Z("default"),
|
|
9475
|
-
...
|
|
9478
|
+
}, he = Z("default"), ut = () => ({
|
|
9479
|
+
...De.sidePanel ?? {
|
|
9476
9480
|
url: "/images/feedme-side.png",
|
|
9477
9481
|
position: "left",
|
|
9478
9482
|
widthPercent: 33
|
|
9479
9483
|
}
|
|
9480
|
-
}),
|
|
9484
|
+
}), ct = () => {
|
|
9481
9485
|
var p, O, W;
|
|
9482
9486
|
const g = (O = (p = u.value.ods) == null ? void 0 : p.layout) == null ? void 0 : O.sidePanel;
|
|
9483
9487
|
if (g === null) {
|
|
9484
9488
|
he.value = "disable";
|
|
9485
9489
|
return;
|
|
9486
9490
|
}
|
|
9487
|
-
if (!g || g.url === ((W =
|
|
9491
|
+
if (!g || g.url === ((W = De.sidePanel) == null ? void 0 : W.url)) {
|
|
9488
9492
|
he.value = "default";
|
|
9489
9493
|
return;
|
|
9490
9494
|
}
|
|
9491
9495
|
he.value = "custom";
|
|
9492
|
-
},
|
|
9496
|
+
}, dt = (g) => {
|
|
9493
9497
|
if (qe(), g === "disable") {
|
|
9494
9498
|
u.value.ods.layout.sidePanel = null, he.value = "disable";
|
|
9495
9499
|
return;
|
|
@@ -9497,42 +9501,42 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9497
9501
|
if (g === "default") {
|
|
9498
9502
|
const O = u.value.ods.layout.sidePanel;
|
|
9499
9503
|
u.value.ods.layout.sidePanel = {
|
|
9500
|
-
...O && O !== null ? O :
|
|
9501
|
-
url:
|
|
9504
|
+
...O && O !== null ? O : ut(),
|
|
9505
|
+
url: ut().url
|
|
9502
9506
|
}, he.value = "default";
|
|
9503
9507
|
return;
|
|
9504
9508
|
}
|
|
9505
9509
|
const p = u.value.ods.layout.sidePanel;
|
|
9506
|
-
u.value.ods.layout.sidePanel = p && p !== null ? p :
|
|
9510
|
+
u.value.ods.layout.sidePanel = p && p !== null ? p : ut(), he.value = "custom";
|
|
9507
9511
|
}, Kt = me(() => {
|
|
9508
9512
|
var p, O, W, ve;
|
|
9509
9513
|
const g = (W = (O = (p = u.value.ods) == null ? void 0 : p.layout) == null ? void 0 : O.sidePanel) == null ? void 0 : W.url;
|
|
9510
|
-
return !!g && g !== ((ve =
|
|
9511
|
-
}),
|
|
9514
|
+
return !!g && g !== ((ve = De.sidePanel) == null ? void 0 : ve.url);
|
|
9515
|
+
}), pt = Z(!1), Dr = me(
|
|
9512
9516
|
() => "https://v2-dev.feedme-ods.pages.dev/".trim() ?? ""
|
|
9513
9517
|
), Jt = (g) => {
|
|
9514
|
-
if (!g.startsWith("/") || !
|
|
9518
|
+
if (!g.startsWith("/") || !Dr.value)
|
|
9515
9519
|
return g;
|
|
9516
9520
|
try {
|
|
9517
|
-
return new URL(g,
|
|
9521
|
+
return new URL(g, Dr.value).toString();
|
|
9518
9522
|
} catch (p) {
|
|
9519
9523
|
return console.error("[Brand Kit] Failed to resolve ODS asset preview URL:", p), g;
|
|
9520
9524
|
}
|
|
9521
|
-
},
|
|
9525
|
+
}, xn = (g) => {
|
|
9522
9526
|
const p = new TextEncoder().encode(g), O = Array.from(p, (W) => String.fromCharCode(W)).join("");
|
|
9523
9527
|
return window.btoa(O).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/g, "");
|
|
9524
9528
|
}, pr = me(() => {
|
|
9525
|
-
if (!
|
|
9529
|
+
if (!Dr.value) return "";
|
|
9526
9530
|
try {
|
|
9527
|
-
const g = new URL(
|
|
9531
|
+
const g = new URL(Dr.value, window.location.origin);
|
|
9528
9532
|
return g.searchParams.set("preview", "1"), g.searchParams.set(
|
|
9529
9533
|
"brandKit",
|
|
9530
|
-
|
|
9534
|
+
xn(JSON.stringify(u.value))
|
|
9531
9535
|
), g.toString();
|
|
9532
9536
|
} catch (g) {
|
|
9533
9537
|
return console.error("[Brand Kit] Invalid ODS preview URL:", g), "";
|
|
9534
9538
|
}
|
|
9535
|
-
}),
|
|
9539
|
+
}), Tn = () => {
|
|
9536
9540
|
if (!pr.value) {
|
|
9537
9541
|
i.open({
|
|
9538
9542
|
type: "error",
|
|
@@ -9541,11 +9545,11 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9541
9545
|
return;
|
|
9542
9546
|
}
|
|
9543
9547
|
window.open(pr.value, "_blank", "noopener,noreferrer");
|
|
9544
|
-
},
|
|
9548
|
+
}, wn = () => {
|
|
9545
9549
|
var p;
|
|
9546
9550
|
const g = ((p = u.value.ods) == null ? void 0 : p.brandkitOverride) ?? {};
|
|
9547
9551
|
return v.value.reduce((O, W) => O + (K(g, W.key) !== void 0 ? 1 : 0), 0);
|
|
9548
|
-
},
|
|
9552
|
+
}, On = (g) => {
|
|
9549
9553
|
Be(), g ? u.value.ods.brandkitOverride = g : u.value.ods && delete u.value.ods.brandkitOverride;
|
|
9550
9554
|
}, Qt = () => {
|
|
9551
9555
|
const g = x.value;
|
|
@@ -9553,13 +9557,13 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9553
9557
|
S.value = 1;
|
|
9554
9558
|
return;
|
|
9555
9559
|
}
|
|
9556
|
-
const p = g.clientWidth /
|
|
9560
|
+
const p = g.clientWidth / Hr, O = g.clientHeight / Vr;
|
|
9557
9561
|
S.value = Math.min(p, O, 1);
|
|
9558
|
-
},
|
|
9562
|
+
}, vt = () => {
|
|
9559
9563
|
k == null || k.disconnect(), k = null;
|
|
9560
|
-
},
|
|
9564
|
+
}, Cn = () => {
|
|
9561
9565
|
const g = x.value;
|
|
9562
|
-
g && (
|
|
9566
|
+
g && (vt(), k = new ResizeObserver(() => {
|
|
9563
9567
|
Qt();
|
|
9564
9568
|
}), k.observe(g), Qt());
|
|
9565
9569
|
};
|
|
@@ -9567,14 +9571,14 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9567
9571
|
x,
|
|
9568
9572
|
async (g) => {
|
|
9569
9573
|
if (g) {
|
|
9570
|
-
await
|
|
9574
|
+
await Io(), Cn();
|
|
9571
9575
|
return;
|
|
9572
9576
|
}
|
|
9573
|
-
|
|
9577
|
+
vt();
|
|
9574
9578
|
},
|
|
9575
9579
|
{ flush: "post" }
|
|
9576
9580
|
);
|
|
9577
|
-
function
|
|
9581
|
+
function Pr(g, p) {
|
|
9578
9582
|
var O, W, ve;
|
|
9579
9583
|
u.value = {
|
|
9580
9584
|
...u.value,
|
|
@@ -9590,14 +9594,14 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9590
9594
|
}
|
|
9591
9595
|
};
|
|
9592
9596
|
}
|
|
9593
|
-
const
|
|
9594
|
-
g.mainView &&
|
|
9595
|
-
},
|
|
9596
|
-
g.mainView &&
|
|
9597
|
+
const Un = (g) => Pr("app", g), En = (g) => Pr("kiosk", g), Rn = (g) => {
|
|
9598
|
+
g.mainView && Pr("app", g.mainView);
|
|
9599
|
+
}, Ln = (g) => {
|
|
9600
|
+
g.mainView && Pr("kiosk", g.mainView);
|
|
9597
9601
|
};
|
|
9598
|
-
async function
|
|
9602
|
+
async function Dn() {
|
|
9599
9603
|
s.promise(
|
|
9600
|
-
|
|
9604
|
+
Wr.setBusinessBrandkit(
|
|
9601
9605
|
o.currentBusiness.value._id,
|
|
9602
9606
|
u.value
|
|
9603
9607
|
),
|
|
@@ -9610,7 +9614,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9610
9614
|
() => n.getBusinessBrandkit(o.currentBusiness.value._id).then(
|
|
9611
9615
|
(g) => {
|
|
9612
9616
|
var p, O;
|
|
9613
|
-
u.value = n.state.brandkit, (p = t.value) == null || p.loadHistory(), (O = a.value) == null || O.loadHistory(),
|
|
9617
|
+
u.value = n.state.brandkit, (p = t.value) == null || p.loadHistory(), (O = a.value) == null || O.loadHistory(), lt(), ct();
|
|
9614
9618
|
}
|
|
9615
9619
|
)
|
|
9616
9620
|
);
|
|
@@ -9618,27 +9622,27 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9618
9622
|
return mr(
|
|
9619
9623
|
() => o.currentBusiness.value,
|
|
9620
9624
|
async (g, p) => {
|
|
9621
|
-
g && g._id != (p == null ? void 0 : p._id) && (await n.getBusinessBrandkit(g._id), u.value = n.state.brandkit,
|
|
9625
|
+
g && g._id != (p == null ? void 0 : p._id) && (await n.getBusinessBrandkit(g._id), u.value = n.state.brandkit, lt(), ct());
|
|
9622
9626
|
},
|
|
9623
9627
|
{
|
|
9624
9628
|
immediate: !0
|
|
9625
9629
|
}
|
|
9626
|
-
),
|
|
9627
|
-
|
|
9630
|
+
), _o(() => {
|
|
9631
|
+
vt();
|
|
9628
9632
|
}), (g, p) => {
|
|
9629
|
-
var
|
|
9630
|
-
const O = oe("FmButton"), W = oe("FmSnackbar"), ve = oe("FmDropField"),
|
|
9631
|
-
return
|
|
9633
|
+
var ra, ta, aa, oa, na, sa, ia, la, ua, ca, da, pa, va, fa, ha, ga, ma, ya, ba, ka, Sa, xa, Ta, wa, Oa, Ca, Ua, Ea, Ra, La, Da, Pa, _a;
|
|
9634
|
+
const O = oe("FmButton"), W = oe("FmSnackbar"), ve = oe("FmDropField"), Se = oe("FmTextField"), tr = oe("FmIcon"), Ee = oe("FmButtonGroup"), _r = oe("FmSwitch"), ea = oe("FmStepperField"), $e = oe("FmRadio");
|
|
9635
|
+
return D(), F("div", ud, [
|
|
9632
9636
|
d("div", cd, [
|
|
9633
9637
|
d("div", dd, _(b(r)("brand.brandkit.title")), 1),
|
|
9634
9638
|
d("div", pd, [
|
|
9635
|
-
|
|
9639
|
+
T(O, {
|
|
9636
9640
|
label: b(r)("brand.brandkit.save"),
|
|
9637
|
-
onClick:
|
|
9641
|
+
onClick: Dn
|
|
9638
9642
|
}, null, 8, ["label"])
|
|
9639
9643
|
])
|
|
9640
9644
|
]),
|
|
9641
|
-
Ut(
|
|
9645
|
+
Ut(T(W, {
|
|
9642
9646
|
class: "w-full !max-w-none my-[20px] !z-[1]",
|
|
9643
9647
|
dismissable: "",
|
|
9644
9648
|
onOnDismiss: p[0] || (p[0] = (y) => h.value.snackbar = !1),
|
|
@@ -9647,19 +9651,19 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9647
9651
|
}, null, 8, ["description", "title"]), [
|
|
9648
9652
|
[Et, h.value.snackbar]
|
|
9649
9653
|
]),
|
|
9650
|
-
u.value ? (
|
|
9654
|
+
u.value ? (D(), F(Ze, { key: 0 }, [
|
|
9651
9655
|
X("", !0),
|
|
9652
9656
|
X("", !0),
|
|
9653
9657
|
d("div", null, [
|
|
9654
9658
|
d("div", vd, [
|
|
9655
9659
|
d("div", null, _(b(r)("brand.brandkit.color._")), 1)
|
|
9656
9660
|
]),
|
|
9657
|
-
|
|
9661
|
+
T(Fn, { name: "collapse" }, {
|
|
9658
9662
|
default: Te(() => [
|
|
9659
9663
|
Ut(d("div", fd, [
|
|
9660
9664
|
d("div", hd, [
|
|
9661
9665
|
d("div", gd, [
|
|
9662
|
-
|
|
9666
|
+
T(O, {
|
|
9663
9667
|
disabled: JSON.stringify(u.value.colors) == JSON.stringify(b(z).colors),
|
|
9664
9668
|
icon: "autorenew",
|
|
9665
9669
|
label: b(r)("brand.common.resetToDefault"),
|
|
@@ -9675,7 +9679,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9675
9679
|
d("div", kd, _(b(r)("brand.brandkit.color.description")), 1)
|
|
9676
9680
|
]),
|
|
9677
9681
|
d("div", Sd, [
|
|
9678
|
-
|
|
9682
|
+
T(ye, {
|
|
9679
9683
|
"initial-color": b(z).colors.primary,
|
|
9680
9684
|
color: u.value.colors.primary,
|
|
9681
9685
|
onRemove: p[4] || (p[4] = (y) => u.value.colors.primary = b(z).colors.primary),
|
|
@@ -9683,7 +9687,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9683
9687
|
title: b(r)("brand.brandkit.color.primary.title"),
|
|
9684
9688
|
description: b(r)("brand.brandkit.color.primary.description")
|
|
9685
9689
|
}, null, 8, ["initial-color", "color", "title", "description"]),
|
|
9686
|
-
|
|
9690
|
+
T(ye, {
|
|
9687
9691
|
"initial-color": b(z).colors.secondary,
|
|
9688
9692
|
color: u.value.colors.secondary,
|
|
9689
9693
|
onRemove: p[6] || (p[6] = (y) => u.value.colors.secondary = b(z).colors.secondary),
|
|
@@ -9691,7 +9695,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9691
9695
|
title: b(r)("brand.brandkit.color.secondary.title"),
|
|
9692
9696
|
description: b(r)("brand.brandkit.color.secondary.description")
|
|
9693
9697
|
}, null, 8, ["initial-color", "color", "title", "description"]),
|
|
9694
|
-
|
|
9698
|
+
T(ye, {
|
|
9695
9699
|
"initial-color": b(z).colors.accent,
|
|
9696
9700
|
color: u.value.colors.accent,
|
|
9697
9701
|
onRemove: p[8] || (p[8] = (y) => u.value.colors.accent = b(z).colors.accent),
|
|
@@ -9709,7 +9713,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9709
9713
|
d("div", Od, _(b(r)("brand.brandkit.typography.description")), 1)
|
|
9710
9714
|
]),
|
|
9711
9715
|
d("div", Cd, [
|
|
9712
|
-
|
|
9716
|
+
T(ye, {
|
|
9713
9717
|
"initial-color": b(z).colors.text.onPrimary,
|
|
9714
9718
|
color: u.value.colors.text.onPrimary,
|
|
9715
9719
|
onRemove: p[10] || (p[10] = (y) => u.value.colors.text.onPrimary = b(z).colors.text.onPrimary),
|
|
@@ -9717,7 +9721,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9717
9721
|
title: b(r)("brand.brandkit.typography.onPrimary.title"),
|
|
9718
9722
|
description: b(r)("brand.brandkit.typography.onPrimary.description")
|
|
9719
9723
|
}, null, 8, ["initial-color", "color", "title", "description"]),
|
|
9720
|
-
|
|
9724
|
+
T(ye, {
|
|
9721
9725
|
"initial-color": b(z).colors.text.primary,
|
|
9722
9726
|
color: u.value.colors.text.primary,
|
|
9723
9727
|
onRemove: p[12] || (p[12] = (y) => u.value.colors.text.primary = b(z).colors.text.primary),
|
|
@@ -9725,7 +9729,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9725
9729
|
title: b(r)("brand.brandkit.typography.primary.title"),
|
|
9726
9730
|
description: b(r)("brand.brandkit.typography.primary.description")
|
|
9727
9731
|
}, null, 8, ["initial-color", "color", "title", "description"]),
|
|
9728
|
-
|
|
9732
|
+
T(ye, {
|
|
9729
9733
|
"initial-color": b(z).colors.text.secondary,
|
|
9730
9734
|
color: u.value.colors.text.secondary,
|
|
9731
9735
|
onRemove: p[14] || (p[14] = (y) => u.value.colors.text.secondary = b(z).colors.text.secondary),
|
|
@@ -9733,7 +9737,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9733
9737
|
title: b(r)("brand.brandkit.typography.secondary.title"),
|
|
9734
9738
|
description: b(r)("brand.brandkit.typography.secondary.description")
|
|
9735
9739
|
}, null, 8, ["initial-color", "color", "title", "description"]),
|
|
9736
|
-
|
|
9740
|
+
T(ye, {
|
|
9737
9741
|
"initial-color": b(z).colors.text.tertiary,
|
|
9738
9742
|
color: u.value.colors.text.tertiary,
|
|
9739
9743
|
onRemove: p[16] || (p[16] = (y) => u.value.colors.text.tertiary = b(z).colors.text.tertiary),
|
|
@@ -9750,8 +9754,8 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9750
9754
|
d("div", Rd, _(b(r)("brand.brandkit.neutralColors._")), 1),
|
|
9751
9755
|
d("div", Ld, _(b(r)("brand.brandkit.neutralColors.description")), 1)
|
|
9752
9756
|
]),
|
|
9753
|
-
d("div",
|
|
9754
|
-
|
|
9757
|
+
d("div", Dd, [
|
|
9758
|
+
T(ye, {
|
|
9755
9759
|
"initial-color": b(z).colors.neutral.light,
|
|
9756
9760
|
color: u.value.colors.neutral.light,
|
|
9757
9761
|
onRemove: p[18] || (p[18] = (y) => u.value.colors.neutral.light = b(z).colors.neutral.light),
|
|
@@ -9759,7 +9763,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9759
9763
|
title: b(r)("brand.brandkit.neutralColors.light.title"),
|
|
9760
9764
|
description: b(r)("brand.brandkit.neutralColors.light.description")
|
|
9761
9765
|
}, null, 8, ["initial-color", "color", "title", "description"]),
|
|
9762
|
-
|
|
9766
|
+
T(ye, {
|
|
9763
9767
|
"initial-color": b(z).colors.neutral.mid,
|
|
9764
9768
|
color: u.value.colors.neutral.mid,
|
|
9765
9769
|
onRemove: p[20] || (p[20] = (y) => u.value.colors.neutral.mid = b(z).colors.neutral.mid),
|
|
@@ -9767,7 +9771,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9767
9771
|
title: b(r)("brand.brandkit.neutralColors.mid.title"),
|
|
9768
9772
|
description: b(r)("brand.brandkit.neutralColors.mid.description")
|
|
9769
9773
|
}, null, 8, ["initial-color", "color", "title", "description"]),
|
|
9770
|
-
|
|
9774
|
+
T(ye, {
|
|
9771
9775
|
"initial-color": b(z).colors.neutral.dark,
|
|
9772
9776
|
color: u.value.colors.neutral.dark,
|
|
9773
9777
|
onRemove: p[22] || (p[22] = (y) => u.value.colors.neutral.dark = b(z).colors.neutral.dark),
|
|
@@ -9778,14 +9782,14 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9778
9782
|
])
|
|
9779
9783
|
])
|
|
9780
9784
|
]),
|
|
9781
|
-
d("div",
|
|
9785
|
+
d("div", Pd, [
|
|
9782
9786
|
d("div", null, [
|
|
9783
9787
|
d("div", _d, [
|
|
9784
9788
|
d("div", Fd, _(b(r)("brand.brandkit.backgroundColors._")), 1),
|
|
9785
9789
|
d("div", Id, _(b(r)("brand.brandkit.backgroundColors.description")), 1)
|
|
9786
9790
|
]),
|
|
9787
9791
|
d("div", Bd, [
|
|
9788
|
-
|
|
9792
|
+
T(ye, {
|
|
9789
9793
|
"initial-color": b(z).colors.background.base,
|
|
9790
9794
|
color: u.value.colors.background.base,
|
|
9791
9795
|
onRemove: p[24] || (p[24] = (y) => u.value.colors.background.base = b(z).colors.neutral.light),
|
|
@@ -9793,7 +9797,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9793
9797
|
title: b(r)("brand.brandkit.backgroundColors.base.title"),
|
|
9794
9798
|
description: b(r)("brand.brandkit.backgroundColors.base.description")
|
|
9795
9799
|
}, null, 8, ["initial-color", "color", "title", "description"]),
|
|
9796
|
-
|
|
9800
|
+
T(ye, {
|
|
9797
9801
|
"initial-color": b(z).colors.background.elevated,
|
|
9798
9802
|
color: u.value.colors.background.elevated,
|
|
9799
9803
|
onRemove: p[26] || (p[26] = (y) => u.value.colors.background.elevated = b(z).colors.neutral.mid),
|
|
@@ -9811,7 +9815,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9811
9815
|
_: 1
|
|
9812
9816
|
})
|
|
9813
9817
|
]),
|
|
9814
|
-
p[
|
|
9818
|
+
p[98] || (p[98] = d("div", { class: "h-[1px] bg-fm-color-neutral-gray-100 w-full my-40 flex-shrink-0" }, null, -1)),
|
|
9815
9819
|
d("div", null, [
|
|
9816
9820
|
d("div", Ad, [
|
|
9817
9821
|
d("div", null, _(b(r)("brand.brandkit.fonts._")), 1)
|
|
@@ -9819,8 +9823,8 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9819
9823
|
d("div", Md, [
|
|
9820
9824
|
d("div", Nd, [
|
|
9821
9825
|
d("div", Gd, [
|
|
9822
|
-
|
|
9823
|
-
disabled: !
|
|
9826
|
+
T(O, {
|
|
9827
|
+
disabled: !P.value.length,
|
|
9824
9828
|
icon: "autorenew",
|
|
9825
9829
|
label: b(r)("brand.common.resetToDefault"),
|
|
9826
9830
|
variant: "plain",
|
|
@@ -9829,54 +9833,54 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9829
9833
|
])
|
|
9830
9834
|
]),
|
|
9831
9835
|
d("div", Hd, [
|
|
9832
|
-
p[
|
|
9836
|
+
p[68] || (p[68] = d("div", { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, [
|
|
9833
9837
|
d("div", { class: "fm-typo-en-body-lg-600" }, " Manage font stylesheets "),
|
|
9834
9838
|
d("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Add the stylesheet URLs (for example from Google Fonts) that should load with this brand kit. ")
|
|
9835
9839
|
], -1)),
|
|
9836
9840
|
d("div", Vd, [
|
|
9837
9841
|
d("div", zd, [
|
|
9838
9842
|
d("div", Wd, [
|
|
9839
|
-
|
|
9840
|
-
modelValue:
|
|
9841
|
-
"onUpdate:modelValue": p[28] || (p[28] = (y) =>
|
|
9843
|
+
T(Se, {
|
|
9844
|
+
modelValue: w.value,
|
|
9845
|
+
"onUpdate:modelValue": p[28] || (p[28] = (y) => w.value = y),
|
|
9842
9846
|
label: "Stylesheet URL",
|
|
9843
9847
|
placeholder: "https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"
|
|
9844
9848
|
}, null, 8, ["modelValue"])
|
|
9845
9849
|
]),
|
|
9846
|
-
|
|
9850
|
+
T(O, {
|
|
9847
9851
|
class: "self-start",
|
|
9848
9852
|
icon: "add",
|
|
9849
|
-
disabled: !
|
|
9853
|
+
disabled: !w.value.trim(),
|
|
9850
9854
|
label: "Add stylesheet",
|
|
9851
9855
|
onClick: q
|
|
9852
9856
|
}, null, 8, ["disabled"])
|
|
9853
9857
|
]),
|
|
9854
|
-
|
|
9855
|
-
(
|
|
9858
|
+
P.value.length ? (D(), F("div", jd, [
|
|
9859
|
+
(D(!0), F(Ze, null, hr(P.value, (y, N) => (D(), F("div", {
|
|
9856
9860
|
key: y.stylesheet + N,
|
|
9857
9861
|
class: "flex items-start gap-12 flex-col lg:flex-row"
|
|
9858
9862
|
}, [
|
|
9859
9863
|
d("div", qd, [
|
|
9860
|
-
|
|
9864
|
+
T(Se, {
|
|
9861
9865
|
"model-value": y.stylesheet,
|
|
9862
9866
|
label: "Stylesheet URL",
|
|
9863
9867
|
placeholder: "https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap",
|
|
9864
9868
|
"onUpdate:modelValue": (J) => U(N, J)
|
|
9865
9869
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
9866
9870
|
]),
|
|
9867
|
-
|
|
9871
|
+
T(O, {
|
|
9868
9872
|
class: "self-start",
|
|
9869
9873
|
icon: "delete",
|
|
9870
9874
|
variant: "plain",
|
|
9871
9875
|
onClick: (J) => I(N)
|
|
9872
9876
|
}, null, 8, ["onClick"])
|
|
9873
9877
|
]))), 128))
|
|
9874
|
-
])) : (
|
|
9878
|
+
])) : (D(), F("div", Xd, " No font stylesheets added yet. "))
|
|
9875
9879
|
])
|
|
9876
9880
|
])
|
|
9877
9881
|
])
|
|
9878
9882
|
]),
|
|
9879
|
-
p[
|
|
9883
|
+
p[99] || (p[99] = d("div", { class: "h-[1px] bg-fm-color-neutral-gray-100 w-full my-40 flex-shrink-0" }, null, -1)),
|
|
9880
9884
|
d("div", null, [
|
|
9881
9885
|
d("div", $d, [
|
|
9882
9886
|
d("div", null, _(b(r)("brand.brandkit.ordering._")), 1)
|
|
@@ -9884,17 +9888,17 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9884
9888
|
d("div", Yd, [
|
|
9885
9889
|
d("div", Zd, [
|
|
9886
9890
|
d("div", Kd, [
|
|
9887
|
-
|
|
9891
|
+
T(O, {
|
|
9888
9892
|
disabled: JSON.stringify({
|
|
9889
9893
|
app: {
|
|
9890
|
-
category: (
|
|
9891
|
-
items: (
|
|
9892
|
-
singleCategory: (
|
|
9894
|
+
category: (ta = (ra = u.value.ordering) == null ? void 0 : ra.app) == null ? void 0 : ta.category,
|
|
9895
|
+
items: (oa = (aa = u.value.ordering) == null ? void 0 : aa.app) == null ? void 0 : oa.items,
|
|
9896
|
+
singleCategory: (sa = (na = u.value.ordering) == null ? void 0 : na.app) == null ? void 0 : sa.singleCategory
|
|
9893
9897
|
},
|
|
9894
9898
|
kiosk: {
|
|
9895
|
-
category: (
|
|
9896
|
-
singleCategory: (
|
|
9897
|
-
showSubItemAsRadioIfPossible: (
|
|
9899
|
+
category: (la = (ia = u.value.ordering) == null ? void 0 : ia.kiosk) == null ? void 0 : la.category,
|
|
9900
|
+
singleCategory: (ca = (ua = u.value.ordering) == null ? void 0 : ua.kiosk) == null ? void 0 : ca.singleCategory,
|
|
9901
|
+
showSubItemAsRadioIfPossible: (pa = (da = u.value.ordering) == null ? void 0 : da.kiosk) == null ? void 0 : pa.showSubItemAsRadioIfPossible
|
|
9898
9902
|
}
|
|
9899
9903
|
}) == JSON.stringify(b(z).ordering),
|
|
9900
9904
|
icon: "autorenew",
|
|
@@ -9919,7 +9923,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9919
9923
|
d("div", op, [
|
|
9920
9924
|
d("div", np, [
|
|
9921
9925
|
d("div", sp, [
|
|
9922
|
-
|
|
9926
|
+
T(tr, {
|
|
9923
9927
|
name: "phone_android",
|
|
9924
9928
|
class: "text-fm-color-secondary-500",
|
|
9925
9929
|
size: "md",
|
|
@@ -9939,7 +9943,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9939
9943
|
d("div", vp, _(b(r)("brand.brandkit.ordering.colorOverride.count", {
|
|
9940
9944
|
count: te("app")
|
|
9941
9945
|
})), 1),
|
|
9942
|
-
|
|
9946
|
+
T(O, {
|
|
9943
9947
|
variant: "secondary",
|
|
9944
9948
|
icon: "palette",
|
|
9945
9949
|
label: b(r)("brand.brandkit.ordering.colorOverride.configure"),
|
|
@@ -9954,9 +9958,9 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9954
9958
|
d("div", mp, _(b(r)("brand.brandkit.ordering.categoryLayoutDescription")), 1)
|
|
9955
9959
|
]),
|
|
9956
9960
|
d("div", yp, [
|
|
9957
|
-
|
|
9961
|
+
T(Ee, {
|
|
9958
9962
|
items: c.value.category,
|
|
9959
|
-
"model-value": ((
|
|
9963
|
+
"model-value": ((va = u.value.ordering) == null ? void 0 : va.app.category) === "HORIZONTAL" ? c.value.category[1] : c.value.category[0],
|
|
9960
9964
|
"onUpdate:modelValue": p[31] || (p[31] = (y) => {
|
|
9961
9965
|
u.value.ordering || (u.value.ordering = { ...b(z).ordering }), u.value.ordering.app || (u.value.ordering.app = {
|
|
9962
9966
|
...b(z).ordering.app
|
|
@@ -9973,9 +9977,9 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9973
9977
|
d("div", xp, _(b(r)("brand.brandkit.ordering.menuLayoutDescription")), 1)
|
|
9974
9978
|
]),
|
|
9975
9979
|
d("div", Tp, [
|
|
9976
|
-
|
|
9980
|
+
T(Ee, {
|
|
9977
9981
|
items: c.value.items,
|
|
9978
|
-
"model-value": ((
|
|
9982
|
+
"model-value": ((fa = u.value.ordering) == null ? void 0 : fa.app.items) === "LIST" ? c.value.items[0] : c.value.items[1],
|
|
9979
9983
|
"onUpdate:modelValue": p[32] || (p[32] = (y) => {
|
|
9980
9984
|
var N;
|
|
9981
9985
|
(N = u.value.ordering) != null && N.app || (u.value.ordering = {
|
|
@@ -9993,9 +9997,9 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
9993
9997
|
d("div", Up, _(b(r)("brand.brandkit.ordering.categoryDisplayDescription")), 1)
|
|
9994
9998
|
]),
|
|
9995
9999
|
d("div", Ep, [
|
|
9996
|
-
|
|
10000
|
+
T(Ee, {
|
|
9997
10001
|
items: c.value.singleCategory,
|
|
9998
|
-
"model-value": (
|
|
10002
|
+
"model-value": (ha = u.value.ordering) != null && ha.app.singleCategory ? c.value.singleCategory[1] : c.value.singleCategory[0],
|
|
9999
10003
|
"onUpdate:modelValue": p[33] || (p[33] = (y) => {
|
|
10000
10004
|
var N;
|
|
10001
10005
|
(N = u.value.ordering) != null && N.app || (u.value.ordering = {
|
|
@@ -10007,7 +10011,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10007
10011
|
])
|
|
10008
10012
|
]),
|
|
10009
10013
|
d("div", Rp, [
|
|
10010
|
-
(
|
|
10014
|
+
(ga = b(o).sessionUser.value) != null && ga.role.isAdmin ? (D(), Pe(Gr, {
|
|
10011
10015
|
key: 0,
|
|
10012
10016
|
title: "Custom layout (Admin only)",
|
|
10013
10017
|
description: "Customize layout with advanced json syntax"
|
|
@@ -10015,16 +10019,16 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10015
10019
|
default: Te(() => {
|
|
10016
10020
|
var y, N, J;
|
|
10017
10021
|
return [
|
|
10018
|
-
|
|
10022
|
+
T(Lo, {
|
|
10019
10023
|
"switch-label": "Menu view",
|
|
10020
10024
|
template: (J = (N = (y = u.value.layout) == null ? void 0 : y.app) == null ? void 0 : N.template) == null ? void 0 : J.mainView,
|
|
10021
|
-
onUpdate:
|
|
10025
|
+
onUpdate: Un
|
|
10022
10026
|
}, null, 8, ["template"]),
|
|
10023
|
-
|
|
10027
|
+
T(Do, {
|
|
10024
10028
|
ref_key: "appTemplateHistoryRef",
|
|
10025
10029
|
ref: t,
|
|
10026
10030
|
target: "app",
|
|
10027
|
-
onRestored:
|
|
10031
|
+
onRestored: Rn
|
|
10028
10032
|
}, null, 512)
|
|
10029
10033
|
];
|
|
10030
10034
|
}),
|
|
@@ -10032,33 +10036,33 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10032
10036
|
})) : X("", !0)
|
|
10033
10037
|
]),
|
|
10034
10038
|
d("div", Lp, [
|
|
10035
|
-
(
|
|
10039
|
+
(ma = b(o).sessionUser.value) != null && ma.role.isAdmin ? (D(), Pe(Gr, {
|
|
10036
10040
|
key: 0,
|
|
10037
10041
|
title: "App plugins (Admin only)",
|
|
10038
10042
|
description: "Configure remote plugins and their params JSON."
|
|
10039
10043
|
}, {
|
|
10040
10044
|
default: Te(() => [
|
|
10041
|
-
|
|
10045
|
+
T(O, {
|
|
10042
10046
|
icon: "add",
|
|
10043
10047
|
variant: "secondary",
|
|
10044
10048
|
label: "Add plugin",
|
|
10045
10049
|
onClick: p[34] || (p[34] = (y) => ee("app"))
|
|
10046
10050
|
}),
|
|
10047
|
-
$.value.length ? (
|
|
10048
|
-
(
|
|
10051
|
+
$.value.length ? (D(), F("div", Dp, [
|
|
10052
|
+
(D(!0), F(Ze, null, hr($.value, (y, N) => (D(), F("div", {
|
|
10049
10053
|
key: N,
|
|
10050
10054
|
class: "border border-fm-color-neutral-gray-100 rounded-lg p-12 space-y-12"
|
|
10051
10055
|
}, [
|
|
10052
|
-
d("div",
|
|
10056
|
+
d("div", Pp, [
|
|
10053
10057
|
d("div", _p, [
|
|
10054
|
-
|
|
10058
|
+
T(Se, {
|
|
10055
10059
|
"model-value": y.url,
|
|
10056
10060
|
label: "Plugin URL",
|
|
10057
10061
|
placeholder: "https://example.com/plugin.js",
|
|
10058
10062
|
"onUpdate:modelValue": (J) => ie("app", N, J)
|
|
10059
10063
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
10060
10064
|
]),
|
|
10061
|
-
|
|
10065
|
+
T(O, {
|
|
10062
10066
|
class: "self-start",
|
|
10063
10067
|
icon: "delete",
|
|
10064
10068
|
variant: "plain",
|
|
@@ -10067,11 +10071,11 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10067
10071
|
]),
|
|
10068
10072
|
d("div", Fp, [
|
|
10069
10073
|
d("div", Ip, [
|
|
10070
|
-
p[
|
|
10074
|
+
p[69] || (p[69] = d("div", null, [
|
|
10071
10075
|
d("div", { class: "fm-typo-en-body-md-600" }, "Plugin params"),
|
|
10072
10076
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Edit JSON passed to the plugin. ")
|
|
10073
10077
|
], -1)),
|
|
10074
|
-
|
|
10078
|
+
T(O, {
|
|
10075
10079
|
variant: "secondary",
|
|
10076
10080
|
label: "Edit JSON",
|
|
10077
10081
|
onClick: (J) => de("app", N)
|
|
@@ -10080,7 +10084,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10080
10084
|
d("pre", Bp, _(pe(y.pluginParams)), 1)
|
|
10081
10085
|
])
|
|
10082
10086
|
]))), 128))
|
|
10083
|
-
])) : (
|
|
10087
|
+
])) : (D(), F("div", Ap, " No plugins configured yet. "))
|
|
10084
10088
|
]),
|
|
10085
10089
|
_: 1
|
|
10086
10090
|
})) : X("", !0)
|
|
@@ -10090,7 +10094,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10090
10094
|
d("div", Np, [
|
|
10091
10095
|
d("div", Gp, [
|
|
10092
10096
|
d("div", Hp, [
|
|
10093
|
-
|
|
10097
|
+
T(tr, {
|
|
10094
10098
|
name: "desktop_mac",
|
|
10095
10099
|
class: "text-fm-color-primary-500",
|
|
10096
10100
|
size: "md",
|
|
@@ -10110,7 +10114,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10110
10114
|
d("div", $p, _(b(r)("brand.brandkit.ordering.colorOverride.count", {
|
|
10111
10115
|
count: te("kiosk")
|
|
10112
10116
|
})), 1),
|
|
10113
|
-
|
|
10117
|
+
T(O, {
|
|
10114
10118
|
variant: "secondary",
|
|
10115
10119
|
icon: "palette",
|
|
10116
10120
|
label: b(r)("brand.brandkit.ordering.colorOverride.configure"),
|
|
@@ -10125,9 +10129,9 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10125
10129
|
d("div", Jp, _(b(r)("brand.brandkit.ordering.categoryLayoutDescription")), 1)
|
|
10126
10130
|
]),
|
|
10127
10131
|
d("div", Qp, [
|
|
10128
|
-
|
|
10132
|
+
T(Ee, {
|
|
10129
10133
|
items: c.value.category,
|
|
10130
|
-
"model-value": ((
|
|
10134
|
+
"model-value": ((ya = u.value.ordering) == null ? void 0 : ya.kiosk.category) === "HORIZONTAL" ? c.value.category[1] : c.value.category[0],
|
|
10131
10135
|
"onUpdate:modelValue": p[36] || (p[36] = (y) => {
|
|
10132
10136
|
var N;
|
|
10133
10137
|
u.value.ordering || (u.value.ordering = {
|
|
@@ -10147,9 +10151,9 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10147
10151
|
d("div", av, _(b(r)("brand.brandkit.ordering.categoryDisplayDescription")), 1)
|
|
10148
10152
|
]),
|
|
10149
10153
|
d("div", ov, [
|
|
10150
|
-
|
|
10154
|
+
T(Ee, {
|
|
10151
10155
|
items: c.value.singleCategory,
|
|
10152
|
-
"model-value": (
|
|
10156
|
+
"model-value": (ka = (ba = u.value.ordering) == null ? void 0 : ba.kiosk) != null && ka.singleCategory ? c.value.singleCategory[1] : c.value.singleCategory[0],
|
|
10153
10157
|
"onUpdate:modelValue": p[37] || (p[37] = (y) => {
|
|
10154
10158
|
re("kiosk"), y === c.value.singleCategory[0] ? u.value.ordering.kiosk.singleCategory = !1 : u.value.ordering.kiosk.singleCategory = !0;
|
|
10155
10159
|
})
|
|
@@ -10166,9 +10170,9 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10166
10170
|
)), 1)
|
|
10167
10171
|
]),
|
|
10168
10172
|
d("div", uv, [
|
|
10169
|
-
|
|
10173
|
+
T(_r, {
|
|
10170
10174
|
label: b(r)("brand.brandkit.ordering.showSubItemAsRadioIfPossible.title"),
|
|
10171
|
-
"model-value": ((
|
|
10175
|
+
"model-value": ((xa = (Sa = u.value.ordering) == null ? void 0 : Sa.kiosk) == null ? void 0 : xa.showSubItemAsRadioIfPossible) ?? !1,
|
|
10172
10176
|
"onUpdate:modelValue": p[38] || (p[38] = (y) => {
|
|
10173
10177
|
re("kiosk"), u.value.ordering.kiosk.showSubItemAsRadioIfPossible = y;
|
|
10174
10178
|
})
|
|
@@ -10177,7 +10181,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10177
10181
|
])
|
|
10178
10182
|
]),
|
|
10179
10183
|
d("div", cv, [
|
|
10180
|
-
(
|
|
10184
|
+
(Ta = b(o).sessionUser.value) != null && Ta.role.isAdmin ? (D(), Pe(Gr, {
|
|
10181
10185
|
key: 0,
|
|
10182
10186
|
title: "Custom layout (Admin only)",
|
|
10183
10187
|
description: "Customize layout with advanced json syntax"
|
|
@@ -10185,16 +10189,16 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10185
10189
|
default: Te(() => {
|
|
10186
10190
|
var y, N, J;
|
|
10187
10191
|
return [
|
|
10188
|
-
|
|
10192
|
+
T(Lo, {
|
|
10189
10193
|
"switch-label": "Menu view",
|
|
10190
10194
|
template: (J = (N = (y = u.value.layout) == null ? void 0 : y.kiosk) == null ? void 0 : N.template) == null ? void 0 : J.mainView,
|
|
10191
|
-
onUpdate:
|
|
10195
|
+
onUpdate: En
|
|
10192
10196
|
}, null, 8, ["template"]),
|
|
10193
|
-
|
|
10197
|
+
T(Do, {
|
|
10194
10198
|
ref_key: "kioskTemplateHistoryRef",
|
|
10195
10199
|
ref: a,
|
|
10196
10200
|
target: "kiosk",
|
|
10197
|
-
onRestored:
|
|
10201
|
+
onRestored: Ln
|
|
10198
10202
|
}, null, 512)
|
|
10199
10203
|
];
|
|
10200
10204
|
}),
|
|
@@ -10202,33 +10206,33 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10202
10206
|
})) : X("", !0)
|
|
10203
10207
|
]),
|
|
10204
10208
|
d("div", dv, [
|
|
10205
|
-
(
|
|
10209
|
+
(wa = b(o).sessionUser.value) != null && wa.role.isAdmin ? (D(), Pe(Gr, {
|
|
10206
10210
|
key: 0,
|
|
10207
10211
|
title: "Kiosk plugins (Admin only)",
|
|
10208
10212
|
description: "Configure remote plugins and their params JSON."
|
|
10209
10213
|
}, {
|
|
10210
10214
|
default: Te(() => [
|
|
10211
|
-
|
|
10215
|
+
T(O, {
|
|
10212
10216
|
icon: "add",
|
|
10213
10217
|
variant: "secondary",
|
|
10214
10218
|
label: "Add plugin",
|
|
10215
10219
|
onClick: p[39] || (p[39] = (y) => ee("kiosk"))
|
|
10216
10220
|
}),
|
|
10217
|
-
H.value.length ? (
|
|
10218
|
-
(
|
|
10221
|
+
H.value.length ? (D(), F("div", pv, [
|
|
10222
|
+
(D(!0), F(Ze, null, hr(H.value, (y, N) => (D(), F("div", {
|
|
10219
10223
|
key: N,
|
|
10220
10224
|
class: "border border-fm-color-neutral-gray-100 rounded-lg p-12 space-y-12"
|
|
10221
10225
|
}, [
|
|
10222
10226
|
d("div", vv, [
|
|
10223
10227
|
d("div", fv, [
|
|
10224
|
-
|
|
10228
|
+
T(Se, {
|
|
10225
10229
|
"model-value": y.url,
|
|
10226
10230
|
label: "Plugin URL",
|
|
10227
10231
|
placeholder: "https://example.com/plugin.js",
|
|
10228
10232
|
"onUpdate:modelValue": (J) => ie("kiosk", N, J)
|
|
10229
10233
|
}, null, 8, ["model-value", "onUpdate:modelValue"])
|
|
10230
10234
|
]),
|
|
10231
|
-
|
|
10235
|
+
T(O, {
|
|
10232
10236
|
class: "self-start",
|
|
10233
10237
|
icon: "delete",
|
|
10234
10238
|
variant: "plain",
|
|
@@ -10237,11 +10241,11 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10237
10241
|
]),
|
|
10238
10242
|
d("div", hv, [
|
|
10239
10243
|
d("div", gv, [
|
|
10240
|
-
p[
|
|
10244
|
+
p[70] || (p[70] = d("div", null, [
|
|
10241
10245
|
d("div", { class: "fm-typo-en-body-md-600" }, "Plugin params"),
|
|
10242
10246
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Edit JSON passed to the plugin. ")
|
|
10243
10247
|
], -1)),
|
|
10244
|
-
|
|
10248
|
+
T(O, {
|
|
10245
10249
|
variant: "secondary",
|
|
10246
10250
|
label: "Edit JSON",
|
|
10247
10251
|
onClick: (J) => de("kiosk", N)
|
|
@@ -10250,7 +10254,7 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10250
10254
|
d("pre", mv, _(pe(y.pluginParams)), 1)
|
|
10251
10255
|
])
|
|
10252
10256
|
]))), 128))
|
|
10253
|
-
])) : (
|
|
10257
|
+
])) : (D(), F("div", yv, " No plugins configured yet. "))
|
|
10254
10258
|
]),
|
|
10255
10259
|
_: 1
|
|
10256
10260
|
})) : X("", !0)
|
|
@@ -10259,14 +10263,14 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10259
10263
|
])
|
|
10260
10264
|
])
|
|
10261
10265
|
]),
|
|
10262
|
-
p[
|
|
10266
|
+
p[100] || (p[100] = d("div", { class: "h-[1px] bg-fm-color-neutral-gray-100 w-full my-40 flex-shrink-0" }, null, -1)),
|
|
10263
10267
|
d("div", null, [
|
|
10264
|
-
p[
|
|
10268
|
+
p[97] || (p[97] = d("div", { class: "fm-typo-en-title-sm-600 flex items-center justify-between bg-fm-color-neutral-gray-100 py-12 px-24" }, [
|
|
10265
10269
|
d("div", null, "ODS Settings")
|
|
10266
10270
|
], -1)),
|
|
10267
10271
|
d("div", bv, [
|
|
10268
10272
|
d("div", kv, [
|
|
10269
|
-
p[
|
|
10273
|
+
p[94] || (p[94] = d("div", { class: "rounded-lg overflow-hidden border border-fm-color-neutral-gray-100" }, [
|
|
10270
10274
|
d("div", { class: "py-12 px-24 bg-fm-color-neutral-gray-100" }, [
|
|
10271
10275
|
d("div", { class: "fm-typo-en-body-lg-600" }, " Order Display System "),
|
|
10272
10276
|
d("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Configure how orders are displayed on the ODS screen, including layout, images, and display preferences. ")
|
|
@@ -10277,232 +10281,250 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10277
10281
|
d("div", Tv, [
|
|
10278
10282
|
d("div", wv, [
|
|
10279
10283
|
d("div", Ov, [
|
|
10280
|
-
|
|
10284
|
+
T(tr, {
|
|
10281
10285
|
name: "monitor",
|
|
10282
10286
|
class: "text-fm-color-secondary-500",
|
|
10283
10287
|
size: "md",
|
|
10284
10288
|
outline: ""
|
|
10285
10289
|
})
|
|
10286
10290
|
]),
|
|
10287
|
-
p[
|
|
10291
|
+
p[71] || (p[71] = d("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, " Display Settings ", -1))
|
|
10288
10292
|
]),
|
|
10289
|
-
p[
|
|
10293
|
+
p[72] || (p[72] = d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Control how orders are grouped and displayed on the ODS board. ", -1))
|
|
10290
10294
|
]),
|
|
10291
10295
|
d("div", Cv, [
|
|
10292
10296
|
d("div", Uv, [
|
|
10293
|
-
|
|
10297
|
+
T(O, {
|
|
10294
10298
|
icon: "autorenew",
|
|
10295
10299
|
label: "Reset to default",
|
|
10296
10300
|
variant: "plain",
|
|
10297
|
-
onClick:
|
|
10301
|
+
onClick: kn
|
|
10298
10302
|
})
|
|
10299
10303
|
])
|
|
10300
10304
|
]),
|
|
10301
10305
|
d("div", Ev, [
|
|
10302
10306
|
d("div", Rv, [
|
|
10303
|
-
p[
|
|
10307
|
+
p[73] || (p[73] = d("div", null, [
|
|
10304
10308
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Color Override "),
|
|
10305
10309
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Override brand colors specifically for the ODS display. ")
|
|
10306
10310
|
], -1)),
|
|
10307
10311
|
d("div", Lv, [
|
|
10308
|
-
d("div",
|
|
10309
|
-
|
|
10312
|
+
d("div", Dv, _(wn()) + " color(s) overridden ", 1),
|
|
10313
|
+
T(O, {
|
|
10310
10314
|
variant: "secondary",
|
|
10311
10315
|
icon: "palette",
|
|
10312
10316
|
label: "Configure",
|
|
10313
|
-
onClick: p[40] || (p[40] = (y) =>
|
|
10317
|
+
onClick: p[40] || (p[40] = (y) => pt.value = !0)
|
|
10314
10318
|
})
|
|
10315
10319
|
])
|
|
10316
10320
|
])
|
|
10317
10321
|
]),
|
|
10318
|
-
d("div",
|
|
10322
|
+
d("div", Pv, [
|
|
10319
10323
|
d("div", _v, [
|
|
10320
|
-
p[
|
|
10324
|
+
p[74] || (p[74] = d("div", null, [
|
|
10321
10325
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Group Orders By "),
|
|
10322
10326
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, ' Choose how orders are grouped on the display. "Status" groups by preparing/ready, "Type" groups by delivery platform. ')
|
|
10323
10327
|
], -1)),
|
|
10324
10328
|
d("div", Fv, [
|
|
10325
|
-
|
|
10326
|
-
items:
|
|
10327
|
-
"model-value":
|
|
10328
|
-
"onUpdate:modelValue": p[41] || (p[41] = (y) =>
|
|
10329
|
+
T(Ee, {
|
|
10330
|
+
items: at,
|
|
10331
|
+
"model-value": at.find((y) => y.value === ge.value.groupBy) ?? at[0],
|
|
10332
|
+
"onUpdate:modelValue": p[41] || (p[41] = (y) => Xe("groupBy", y.value))
|
|
10329
10333
|
}, null, 8, ["model-value"])
|
|
10330
10334
|
])
|
|
10331
10335
|
])
|
|
10332
10336
|
]),
|
|
10333
|
-
|
|
10337
|
+
ge.value.groupBy === "status" ? (D(), F("div", Iv, [
|
|
10334
10338
|
d("div", Bv, [
|
|
10335
|
-
p[
|
|
10339
|
+
p[75] || (p[75] = d("div", null, [
|
|
10336
10340
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Status Board Layout "),
|
|
10337
10341
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Arrange the preparing and ready sections side-by-side (horizontal) or stacked (vertical). ")
|
|
10338
10342
|
], -1)),
|
|
10339
10343
|
d("div", Av, [
|
|
10340
|
-
|
|
10341
|
-
items:
|
|
10342
|
-
"model-value":
|
|
10343
|
-
"onUpdate:modelValue": p[42] || (p[42] = (y) =>
|
|
10344
|
+
T(Ee, {
|
|
10345
|
+
items: ot,
|
|
10346
|
+
"model-value": ot.find((y) => y.value === ge.value.statusLayout) ?? ot[0],
|
|
10347
|
+
"onUpdate:modelValue": p[42] || (p[42] = (y) => Xe("statusLayout", y.value))
|
|
10344
10348
|
}, null, 8, ["model-value"])
|
|
10345
10349
|
])
|
|
10346
10350
|
])
|
|
10347
10351
|
])) : X("", !0),
|
|
10348
|
-
|
|
10352
|
+
ge.value.groupBy === "status" && ge.value.statusLayout !== "vertical" ? (D(), F("div", Mv, [
|
|
10349
10353
|
d("div", Nv, [
|
|
10350
|
-
p[
|
|
10354
|
+
p[76] || (p[76] = d("div", null, [
|
|
10351
10355
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Status Column Count "),
|
|
10352
10356
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Number of columns within each status section (preparing / ready). ")
|
|
10353
10357
|
], -1)),
|
|
10354
10358
|
d("div", Gv, [
|
|
10355
|
-
|
|
10356
|
-
items:
|
|
10357
|
-
"model-value":
|
|
10358
|
-
"onUpdate:modelValue": p[43] || (p[43] = (y) =>
|
|
10359
|
+
T(Ee, {
|
|
10360
|
+
items: nt,
|
|
10361
|
+
"model-value": nt.find((y) => y.value === ge.value.statusColumnCount) ?? nt[1],
|
|
10362
|
+
"onUpdate:modelValue": p[43] || (p[43] = (y) => Xe("statusColumnCount", y.value))
|
|
10359
10363
|
}, null, 8, ["model-value"])
|
|
10360
10364
|
])
|
|
10361
10365
|
])
|
|
10362
10366
|
])) : X("", !0),
|
|
10363
|
-
|
|
10367
|
+
ge.value.groupBy === "status" ? (D(), F("div", Hv, [
|
|
10364
10368
|
d("div", Vv, [
|
|
10365
|
-
p[
|
|
10366
|
-
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Sliding
|
|
10367
|
-
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Auto-rotation interval for the status board in
|
|
10369
|
+
p[77] || (p[77] = d("div", null, [
|
|
10370
|
+
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Sliding Interval "),
|
|
10371
|
+
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Auto-rotation interval for the status board in seconds. ")
|
|
10368
10372
|
], -1)),
|
|
10369
10373
|
d("div", zv, [
|
|
10370
|
-
|
|
10371
|
-
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
|
|
10374
|
+
T(ea, {
|
|
10375
|
+
"model-value": ge.value.statusSlidingPeriod / 1e3,
|
|
10376
|
+
label: "Sliding interval (seconds)",
|
|
10377
|
+
min: 1,
|
|
10378
|
+
max: 60,
|
|
10379
|
+
step: 1,
|
|
10380
|
+
"append-text": "s",
|
|
10381
|
+
"max-fraction-digits": 0,
|
|
10382
|
+
"onUpdate:modelValue": p[44] || (p[44] = (y) => Xe("statusSlidingPeriod", Math.max(1e3, Math.min(6e4, (Number(y) || 10) * 1e3))))
|
|
10376
10383
|
}, null, 8, ["model-value"])
|
|
10377
10384
|
])
|
|
10378
10385
|
])
|
|
10379
10386
|
])) : X("", !0),
|
|
10380
|
-
|
|
10387
|
+
ge.value.groupBy === "status" ? (D(), F("div", Wv, [
|
|
10381
10388
|
d("div", jv, [
|
|
10382
|
-
p[
|
|
10389
|
+
p[78] || (p[78] = d("div", null, [
|
|
10383
10390
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Show Delivery Icons "),
|
|
10384
10391
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Display delivery platform icons next to order numbers in the status board. ")
|
|
10385
10392
|
], -1)),
|
|
10386
10393
|
d("div", qv, [
|
|
10387
|
-
|
|
10394
|
+
T(_r, {
|
|
10388
10395
|
label: "Show delivery icons",
|
|
10389
|
-
"model-value":
|
|
10390
|
-
"onUpdate:modelValue": p[45] || (p[45] = (y) =>
|
|
10396
|
+
"model-value": ge.value.showDeliveryIcons,
|
|
10397
|
+
"onUpdate:modelValue": p[45] || (p[45] = (y) => Xe("showDeliveryIcons", y))
|
|
10391
10398
|
}, null, 8, ["model-value"])
|
|
10392
10399
|
])
|
|
10393
10400
|
])
|
|
10394
10401
|
])) : X("", !0),
|
|
10395
|
-
|
|
10402
|
+
ge.value.groupBy === "type" ? (D(), F("div", Xv, [
|
|
10396
10403
|
d("div", $v, [
|
|
10397
|
-
p[
|
|
10404
|
+
p[79] || (p[79] = d("div", null, [
|
|
10405
|
+
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Show Order Type Tabs "),
|
|
10406
|
+
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Display the In Restaurant / Delivery tabs at the top of the order board. ")
|
|
10407
|
+
], -1)),
|
|
10408
|
+
d("div", Yv, [
|
|
10409
|
+
T(_r, {
|
|
10410
|
+
label: "Show order type tabs",
|
|
10411
|
+
"model-value": ge.value.showOrderTypeTabs,
|
|
10412
|
+
"onUpdate:modelValue": p[46] || (p[46] = (y) => Xe("showOrderTypeTabs", y))
|
|
10413
|
+
}, null, 8, ["model-value"])
|
|
10414
|
+
])
|
|
10415
|
+
])
|
|
10416
|
+
])) : X("", !0),
|
|
10417
|
+
ge.value.groupBy !== "status" ? (D(), F("div", Zv, [
|
|
10418
|
+
d("div", Kv, [
|
|
10419
|
+
p[80] || (p[80] = d("div", null, [
|
|
10398
10420
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Show Progress Bar "),
|
|
10399
10421
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Display a progress bar on the ODS board. ")
|
|
10400
10422
|
], -1)),
|
|
10401
|
-
d("div",
|
|
10402
|
-
|
|
10423
|
+
d("div", Jv, [
|
|
10424
|
+
T(_r, {
|
|
10403
10425
|
label: "Show progress bar",
|
|
10404
|
-
"model-value":
|
|
10405
|
-
"onUpdate:modelValue": p[
|
|
10426
|
+
"model-value": ge.value.showProgressBar,
|
|
10427
|
+
"onUpdate:modelValue": p[47] || (p[47] = (y) => Xe("showProgressBar", y))
|
|
10406
10428
|
}, null, 8, ["model-value"])
|
|
10407
10429
|
])
|
|
10408
10430
|
])
|
|
10409
10431
|
])) : X("", !0)
|
|
10410
10432
|
]),
|
|
10411
|
-
d("div",
|
|
10412
|
-
d("div",
|
|
10413
|
-
d("div",
|
|
10414
|
-
d("div",
|
|
10415
|
-
|
|
10433
|
+
d("div", Qv, [
|
|
10434
|
+
d("div", ef, [
|
|
10435
|
+
d("div", rf, [
|
|
10436
|
+
d("div", tf, [
|
|
10437
|
+
T(tr, {
|
|
10416
10438
|
name: "dashboard",
|
|
10417
10439
|
class: "text-fm-color-primary-500",
|
|
10418
10440
|
size: "md",
|
|
10419
10441
|
outline: ""
|
|
10420
10442
|
})
|
|
10421
10443
|
]),
|
|
10422
|
-
p[
|
|
10444
|
+
p[81] || (p[81] = d("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, " Layout Settings ", -1))
|
|
10423
10445
|
]),
|
|
10424
|
-
p[
|
|
10446
|
+
p[82] || (p[82] = d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Configure the visual layout of the ODS screen including background, side panel, and board sizing. ", -1))
|
|
10425
10447
|
]),
|
|
10426
|
-
d("div",
|
|
10427
|
-
d("div",
|
|
10428
|
-
|
|
10448
|
+
d("div", af, [
|
|
10449
|
+
d("div", of, [
|
|
10450
|
+
T(O, {
|
|
10429
10451
|
icon: "autorenew",
|
|
10430
10452
|
label: "Reset to default",
|
|
10431
10453
|
variant: "plain",
|
|
10432
|
-
onClick:
|
|
10454
|
+
onClick: Sn
|
|
10433
10455
|
})
|
|
10434
10456
|
])
|
|
10435
10457
|
]),
|
|
10436
|
-
d("div",
|
|
10437
|
-
d("div",
|
|
10438
|
-
p[
|
|
10458
|
+
d("div", nf, [
|
|
10459
|
+
d("div", sf, [
|
|
10460
|
+
p[85] || (p[85] = d("div", null, [
|
|
10439
10461
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Background Image "),
|
|
10440
10462
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Choose one of the built-in ODS backgrounds or upload a custom background image. ")
|
|
10441
10463
|
], -1)),
|
|
10442
|
-
d("div",
|
|
10443
|
-
d("div",
|
|
10444
|
-
|
|
10464
|
+
d("div", lf, [
|
|
10465
|
+
d("div", uf, [
|
|
10466
|
+
T($e, {
|
|
10445
10467
|
"model-value": ae.value,
|
|
10446
10468
|
rules: () => [],
|
|
10447
10469
|
label: "Disable",
|
|
10448
10470
|
value: "disable",
|
|
10449
|
-
"onUpdate:modelValue": p[
|
|
10471
|
+
"onUpdate:modelValue": p[48] || (p[48] = () => Rr("disable"))
|
|
10450
10472
|
}, null, 8, ["model-value"]),
|
|
10451
|
-
|
|
10473
|
+
T($e, {
|
|
10452
10474
|
"model-value": ae.value,
|
|
10453
10475
|
rules: () => [],
|
|
10454
10476
|
label: "Default image 1",
|
|
10455
10477
|
value: "default",
|
|
10456
|
-
"onUpdate:modelValue": p[
|
|
10478
|
+
"onUpdate:modelValue": p[49] || (p[49] = () => Rr("default"))
|
|
10457
10479
|
}, null, 8, ["model-value"]),
|
|
10458
|
-
|
|
10480
|
+
T($e, {
|
|
10459
10481
|
"model-value": ae.value,
|
|
10460
10482
|
rules: () => [],
|
|
10461
10483
|
label: "Default image 2",
|
|
10462
10484
|
value: "left",
|
|
10463
|
-
"onUpdate:modelValue": p[
|
|
10485
|
+
"onUpdate:modelValue": p[50] || (p[50] = () => Rr("left"))
|
|
10464
10486
|
}, null, 8, ["model-value"]),
|
|
10465
|
-
|
|
10487
|
+
T($e, {
|
|
10466
10488
|
"model-value": ae.value,
|
|
10467
10489
|
rules: () => [],
|
|
10468
10490
|
label: "Custom",
|
|
10469
10491
|
value: "custom",
|
|
10470
|
-
"onUpdate:modelValue": p[
|
|
10492
|
+
"onUpdate:modelValue": p[51] || (p[51] = () => Rr("custom"))
|
|
10471
10493
|
}, null, 8, ["model-value"])
|
|
10472
10494
|
]),
|
|
10473
|
-
ae.value !== "disable" && (ae.value !== "custom" || $t.value) ? (
|
|
10474
|
-
d("div",
|
|
10495
|
+
ae.value !== "disable" && (ae.value !== "custom" || $t.value) ? (D(), F("div", cf, [
|
|
10496
|
+
d("div", df, [
|
|
10475
10497
|
d("img", {
|
|
10476
|
-
src: Jt(((
|
|
10498
|
+
src: Jt(((Oa = Ae.value.background) == null ? void 0 : Oa.url) ?? ""),
|
|
10477
10499
|
class: "w-full h-full object-contain"
|
|
10478
|
-
}, null, 8,
|
|
10500
|
+
}, null, 8, pf)
|
|
10479
10501
|
]),
|
|
10480
|
-
ae.value === "custom" ? (
|
|
10502
|
+
ae.value === "custom" ? (D(), F("div", vf, [
|
|
10481
10503
|
d("input", {
|
|
10482
10504
|
ref_key: "odsBackgroundFileInput",
|
|
10483
10505
|
ref: Er,
|
|
10484
10506
|
type: "file",
|
|
10485
10507
|
accept: "image/*",
|
|
10486
10508
|
class: "hidden",
|
|
10487
|
-
onChange: p[
|
|
10509
|
+
onChange: p[52] || (p[52] = (y) => {
|
|
10488
10510
|
var J;
|
|
10489
10511
|
const N = (J = y.target.files) == null ? void 0 : J[0];
|
|
10490
10512
|
N && Yt(N), Er.value && (Er.value.value = "");
|
|
10491
10513
|
})
|
|
10492
10514
|
}, null, 544),
|
|
10493
|
-
|
|
10515
|
+
T(O, {
|
|
10494
10516
|
variant: "secondary",
|
|
10495
10517
|
icon: "upload",
|
|
10496
10518
|
label: "Change image",
|
|
10497
10519
|
disabled: cr.value,
|
|
10498
|
-
onClick: p[
|
|
10520
|
+
onClick: p[53] || (p[53] = (y) => {
|
|
10499
10521
|
var N;
|
|
10500
10522
|
return (N = Er.value) == null ? void 0 : N.click();
|
|
10501
10523
|
})
|
|
10502
10524
|
}, null, 8, ["disabled"])
|
|
10503
10525
|
])) : X("", !0)
|
|
10504
10526
|
])) : X("", !0),
|
|
10505
|
-
ae.value === "custom" && !$t.value ? (
|
|
10527
|
+
ae.value === "custom" && !$t.value ? (D(), Pe(ve, {
|
|
10506
10528
|
key: 1,
|
|
10507
10529
|
class: "h-[160px] w-full",
|
|
10508
10530
|
label: "Upload custom background image",
|
|
@@ -10510,84 +10532,84 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10510
10532
|
disabled: cr.value,
|
|
10511
10533
|
onFileUpload: Yt
|
|
10512
10534
|
}, null, 8, ["disabled"])) : X("", !0),
|
|
10513
|
-
cr.value ? (
|
|
10535
|
+
cr.value ? (D(), F("div", ff, p[83] || (p[83] = [
|
|
10514
10536
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, "Uploading...", -1)
|
|
10515
10537
|
]))) : X("", !0),
|
|
10516
|
-
ae.value === "disable" ? (
|
|
10538
|
+
ae.value === "disable" ? (D(), F("div", hf, p[84] || (p[84] = [
|
|
10517
10539
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Background image is disabled. ", -1)
|
|
10518
10540
|
]))) : X("", !0),
|
|
10519
|
-
ae.value !== "custom" && ae.value !== "disable" ? (
|
|
10520
|
-
d("div",
|
|
10541
|
+
ae.value !== "custom" && ae.value !== "disable" ? (D(), F("div", gf, [
|
|
10542
|
+
d("div", mf, _(ae.value === "left" ? "Using Default image 2." : "Using Default image 1."), 1)
|
|
10521
10543
|
])) : X("", !0)
|
|
10522
10544
|
])
|
|
10523
10545
|
])
|
|
10524
10546
|
]),
|
|
10525
|
-
d("div",
|
|
10526
|
-
d("div",
|
|
10527
|
-
p[
|
|
10547
|
+
d("div", yf, [
|
|
10548
|
+
d("div", bf, [
|
|
10549
|
+
p[91] || (p[91] = d("div", null, [
|
|
10528
10550
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Side Panel Image "),
|
|
10529
10551
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Decorative image panel beside the board. Reduces available board space by its width. ")
|
|
10530
10552
|
], -1)),
|
|
10531
|
-
d("div",
|
|
10532
|
-
d("div",
|
|
10533
|
-
|
|
10553
|
+
d("div", kf, [
|
|
10554
|
+
d("div", Sf, [
|
|
10555
|
+
T($e, {
|
|
10534
10556
|
"model-value": he.value,
|
|
10535
10557
|
rules: () => [],
|
|
10536
10558
|
label: "Disable",
|
|
10537
10559
|
value: "disable",
|
|
10538
|
-
"onUpdate:modelValue": p[
|
|
10560
|
+
"onUpdate:modelValue": p[54] || (p[54] = () => dt("disable"))
|
|
10539
10561
|
}, null, 8, ["model-value"]),
|
|
10540
|
-
|
|
10562
|
+
T($e, {
|
|
10541
10563
|
"model-value": he.value,
|
|
10542
10564
|
rules: () => [],
|
|
10543
10565
|
label: "Default image",
|
|
10544
10566
|
value: "default",
|
|
10545
|
-
"onUpdate:modelValue": p[
|
|
10567
|
+
"onUpdate:modelValue": p[55] || (p[55] = () => dt("default"))
|
|
10546
10568
|
}, null, 8, ["model-value"]),
|
|
10547
|
-
|
|
10569
|
+
T($e, {
|
|
10548
10570
|
"model-value": he.value,
|
|
10549
10571
|
rules: () => [],
|
|
10550
10572
|
label: "Custom image",
|
|
10551
10573
|
value: "custom",
|
|
10552
|
-
"onUpdate:modelValue": p[
|
|
10574
|
+
"onUpdate:modelValue": p[56] || (p[56] = () => dt("custom"))
|
|
10553
10575
|
}, null, 8, ["model-value"])
|
|
10554
10576
|
]),
|
|
10555
|
-
he.value === "disable" ? (
|
|
10577
|
+
he.value === "disable" ? (D(), F("div", xf, p[86] || (p[86] = [
|
|
10556
10578
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Side panel is disabled. The board will use background only. ", -1)
|
|
10557
|
-
]))) : (
|
|
10558
|
-
he.value !== "custom" || Kt.value ? (
|
|
10559
|
-
d("div",
|
|
10579
|
+
]))) : (D(), F(Ze, { key: 1 }, [
|
|
10580
|
+
he.value !== "custom" || Kt.value ? (D(), F("div", Tf, [
|
|
10581
|
+
d("div", wf, [
|
|
10560
10582
|
d("img", {
|
|
10561
|
-
src: Jt(((
|
|
10583
|
+
src: Jt(((Ca = Ae.value.sidePanel) == null ? void 0 : Ca.url) ?? ""),
|
|
10562
10584
|
class: "w-full h-full object-contain"
|
|
10563
|
-
}, null, 8,
|
|
10585
|
+
}, null, 8, Of)
|
|
10564
10586
|
]),
|
|
10565
|
-
he.value === "custom" ? (
|
|
10587
|
+
he.value === "custom" ? (D(), F("div", Cf, [
|
|
10566
10588
|
d("input", {
|
|
10567
10589
|
ref_key: "odsSidePanelFileInput",
|
|
10568
10590
|
ref: Lr,
|
|
10569
10591
|
type: "file",
|
|
10570
10592
|
accept: "image/*",
|
|
10571
10593
|
class: "hidden",
|
|
10572
|
-
onChange: p[
|
|
10594
|
+
onChange: p[57] || (p[57] = (y) => {
|
|
10573
10595
|
var J;
|
|
10574
10596
|
const N = (J = y.target.files) == null ? void 0 : J[0];
|
|
10575
10597
|
N && Zt(N), Lr.value && (Lr.value.value = "");
|
|
10576
10598
|
})
|
|
10577
10599
|
}, null, 544),
|
|
10578
|
-
|
|
10600
|
+
T(O, {
|
|
10579
10601
|
variant: "secondary",
|
|
10580
10602
|
icon: "upload",
|
|
10581
10603
|
label: "Change image",
|
|
10582
10604
|
disabled: dr.value,
|
|
10583
|
-
onClick: p[
|
|
10605
|
+
onClick: p[58] || (p[58] = (y) => {
|
|
10584
10606
|
var N;
|
|
10585
10607
|
return (N = Lr.value) == null ? void 0 : N.click();
|
|
10586
10608
|
})
|
|
10587
10609
|
}, null, 8, ["disabled"])
|
|
10588
10610
|
])) : X("", !0)
|
|
10589
10611
|
])) : X("", !0),
|
|
10590
|
-
he.value === "custom" && !Kt.value ? (
|
|
10612
|
+
he.value === "custom" && !Kt.value ? (D(), Pe(ve, {
|
|
10591
10613
|
key: 1,
|
|
10592
10614
|
class: "h-[160px] w-full",
|
|
10593
10615
|
label: "Upload custom side panel image",
|
|
@@ -10595,33 +10617,33 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10595
10617
|
disabled: dr.value,
|
|
10596
10618
|
onFileUpload: Zt
|
|
10597
10619
|
}, null, 8, ["disabled"])) : X("", !0),
|
|
10598
|
-
dr.value ? (
|
|
10620
|
+
dr.value ? (D(), F("div", Uf, p[87] || (p[87] = [
|
|
10599
10621
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, "Uploading...", -1)
|
|
10600
10622
|
]))) : X("", !0),
|
|
10601
|
-
he.value === "default" ? (
|
|
10623
|
+
he.value === "default" ? (D(), F("div", Ef, p[88] || (p[88] = [
|
|
10602
10624
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Using the built-in default side panel image. ", -1)
|
|
10603
10625
|
]))) : X("", !0),
|
|
10604
|
-
(
|
|
10626
|
+
(Ua = Ae.value.sidePanel) != null && Ua.url ? (D(), F("div", Rf, [
|
|
10605
10627
|
d("div", null, [
|
|
10606
|
-
p[
|
|
10607
|
-
|
|
10608
|
-
items:
|
|
10609
|
-
"model-value":
|
|
10628
|
+
p[89] || (p[89] = d("div", { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary mb-4" }, "Position", -1)),
|
|
10629
|
+
T(Ee, {
|
|
10630
|
+
items: it,
|
|
10631
|
+
"model-value": it.find((y) => {
|
|
10610
10632
|
var N;
|
|
10611
10633
|
return y.value === ((N = Ae.value.sidePanel) == null ? void 0 : N.position);
|
|
10612
|
-
}) ??
|
|
10613
|
-
"onUpdate:modelValue": p[
|
|
10634
|
+
}) ?? it[0],
|
|
10635
|
+
"onUpdate:modelValue": p[59] || (p[59] = (y) => {
|
|
10614
10636
|
qe(), u.value.ods.layout.sidePanel && (u.value.ods.layout.sidePanel.position = y.value);
|
|
10615
10637
|
})
|
|
10616
10638
|
}, null, 8, ["model-value"])
|
|
10617
10639
|
]),
|
|
10618
10640
|
d("div", null, [
|
|
10619
|
-
p[
|
|
10620
|
-
|
|
10641
|
+
p[90] || (p[90] = d("div", { class: "fm-typo-en-body-sm-600 text-fm-color-typo-primary mb-4" }, "Width (%)", -1)),
|
|
10642
|
+
T(Se, {
|
|
10621
10643
|
type: "number",
|
|
10622
|
-
"model-value": String(((
|
|
10644
|
+
"model-value": String(((Ea = Ae.value.sidePanel) == null ? void 0 : Ea.widthPercent) ?? 30),
|
|
10623
10645
|
placeholder: "30",
|
|
10624
|
-
"onUpdate:modelValue": p[
|
|
10646
|
+
"onUpdate:modelValue": p[60] || (p[60] = (y) => {
|
|
10625
10647
|
qe(), u.value.ods.layout.sidePanel && (u.value.ods.layout.sidePanel.widthPercent = Math.max(1, Math.min(80, Number(y) || 30)));
|
|
10626
10648
|
})
|
|
10627
10649
|
}, null, 8, ["model-value"])
|
|
@@ -10631,14 +10653,14 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10631
10653
|
])
|
|
10632
10654
|
])
|
|
10633
10655
|
]),
|
|
10634
|
-
d("div",
|
|
10635
|
-
d("div",
|
|
10636
|
-
p[
|
|
10656
|
+
d("div", Lf, [
|
|
10657
|
+
d("div", Df, [
|
|
10658
|
+
p[92] || (p[92] = d("div", null, [
|
|
10637
10659
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Board Width (%) "),
|
|
10638
10660
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Width of the order board as a percentage of the available space (after side panel). ")
|
|
10639
10661
|
], -1)),
|
|
10640
|
-
d("div",
|
|
10641
|
-
|
|
10662
|
+
d("div", Pf, [
|
|
10663
|
+
T(ea, {
|
|
10642
10664
|
"model-value": Ae.value.boardWidthPercent ?? 100,
|
|
10643
10665
|
label: "Board width percent",
|
|
10644
10666
|
min: 10,
|
|
@@ -10646,22 +10668,22 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10646
10668
|
step: 5,
|
|
10647
10669
|
"append-text": "%",
|
|
10648
10670
|
"max-fraction-digits": 0,
|
|
10649
|
-
"onUpdate:modelValue": p[
|
|
10671
|
+
"onUpdate:modelValue": p[61] || (p[61] = (y) => qt("boardWidthPercent", Math.max(10, Math.min(100, Number(y) || 100))))
|
|
10650
10672
|
}, null, 8, ["model-value"])
|
|
10651
10673
|
])
|
|
10652
10674
|
])
|
|
10653
10675
|
]),
|
|
10654
|
-
(Ae.value.boardWidthPercent ?? 100) < 100 ? (
|
|
10655
|
-
d("div",
|
|
10656
|
-
p[
|
|
10676
|
+
(Ae.value.boardWidthPercent ?? 100) < 100 ? (D(), F("div", _f, [
|
|
10677
|
+
d("div", Ff, [
|
|
10678
|
+
p[93] || (p[93] = d("div", null, [
|
|
10657
10679
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary mb-4" }, " Board Alignment "),
|
|
10658
10680
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Align the order board within the available space when width is less than 100%. ")
|
|
10659
10681
|
], -1)),
|
|
10660
|
-
d("div",
|
|
10661
|
-
|
|
10662
|
-
items:
|
|
10663
|
-
"model-value":
|
|
10664
|
-
"onUpdate:modelValue": p[
|
|
10682
|
+
d("div", If, [
|
|
10683
|
+
T(Ee, {
|
|
10684
|
+
items: st,
|
|
10685
|
+
"model-value": st.find((y) => y.value === (Ae.value.boardAlign ?? "left")) ?? st[0],
|
|
10686
|
+
"onUpdate:modelValue": p[62] || (p[62] = (y) => qt("boardAlign", y.value))
|
|
10665
10687
|
}, null, 8, ["model-value"])
|
|
10666
10688
|
])
|
|
10667
10689
|
])
|
|
@@ -10669,26 +10691,26 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10669
10691
|
])
|
|
10670
10692
|
])
|
|
10671
10693
|
]),
|
|
10672
|
-
d("div",
|
|
10673
|
-
d("div",
|
|
10674
|
-
d("div",
|
|
10675
|
-
d("div",
|
|
10676
|
-
p[
|
|
10694
|
+
d("div", Bf, [
|
|
10695
|
+
d("div", Af, [
|
|
10696
|
+
d("div", Mf, [
|
|
10697
|
+
d("div", Nf, [
|
|
10698
|
+
p[95] || (p[95] = d("div", null, [
|
|
10677
10699
|
d("div", { class: "fm-typo-en-body-lg-600 text-fm-color-typo-primary" }, " ODS Preview "),
|
|
10678
10700
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, " Previewing the current unsaved Brand Kit changes at 1920 x 1080. ")
|
|
10679
10701
|
], -1)),
|
|
10680
|
-
d("div",
|
|
10681
|
-
|
|
10702
|
+
d("div", Gf, [
|
|
10703
|
+
T(O, {
|
|
10682
10704
|
variant: "secondary",
|
|
10683
10705
|
label: "Open in new tab",
|
|
10684
10706
|
disabled: !pr.value,
|
|
10685
|
-
onClick:
|
|
10707
|
+
onClick: Tn
|
|
10686
10708
|
}, null, 8, ["disabled"])
|
|
10687
10709
|
])
|
|
10688
10710
|
])
|
|
10689
10711
|
]),
|
|
10690
|
-
d("div",
|
|
10691
|
-
pr.value ? (
|
|
10712
|
+
d("div", Hf, [
|
|
10713
|
+
pr.value ? (D(), F("div", {
|
|
10692
10714
|
key: 0,
|
|
10693
10715
|
ref_key: "odsPreviewViewportRef",
|
|
10694
10716
|
ref: x,
|
|
@@ -10697,14 +10719,14 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10697
10719
|
d("div", {
|
|
10698
10720
|
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)]",
|
|
10699
10721
|
style: Ct({
|
|
10700
|
-
width: `${
|
|
10701
|
-
height: `${
|
|
10722
|
+
width: `${Hr * S.value}px`,
|
|
10723
|
+
height: `${Vr * S.value}px`
|
|
10702
10724
|
})
|
|
10703
10725
|
}, [
|
|
10704
10726
|
d("div", {
|
|
10705
10727
|
style: Ct({
|
|
10706
|
-
width: `${
|
|
10707
|
-
height: `${
|
|
10728
|
+
width: `${Hr}px`,
|
|
10729
|
+
height: `${Vr}px`,
|
|
10708
10730
|
transform: `scale(${S.value})`,
|
|
10709
10731
|
transformOrigin: "top left"
|
|
10710
10732
|
})
|
|
@@ -10712,19 +10734,19 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10712
10734
|
d("iframe", {
|
|
10713
10735
|
src: pr.value,
|
|
10714
10736
|
title: "ODS Preview",
|
|
10715
|
-
width:
|
|
10716
|
-
height:
|
|
10737
|
+
width: Hr,
|
|
10738
|
+
height: Vr,
|
|
10717
10739
|
class: "block border-0"
|
|
10718
|
-
}, null, 8,
|
|
10740
|
+
}, null, 8, Vf)
|
|
10719
10741
|
], 4)
|
|
10720
10742
|
], 4)
|
|
10721
|
-
], 512)) : (
|
|
10743
|
+
], 512)) : (D(), F("div", zf, p[96] || (p[96] = [
|
|
10722
10744
|
d("div", { class: "space-y-8" }, [
|
|
10723
10745
|
d("div", { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, " Preview unavailable "),
|
|
10724
10746
|
d("div", { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, [
|
|
10725
|
-
|
|
10747
|
+
Ia(" Set a valid "),
|
|
10726
10748
|
d("code", null, "VITE_ODS_PREVIEW_URL"),
|
|
10727
|
-
|
|
10749
|
+
Ia(" to enable the embedded ODS preview. ")
|
|
10728
10750
|
])
|
|
10729
10751
|
], -1)
|
|
10730
10752
|
])))
|
|
@@ -10734,40 +10756,40 @@ const _c = { class: "json-editor" }, Fc = ["title"], Ic = { class: "error-text"
|
|
|
10734
10756
|
])
|
|
10735
10757
|
])
|
|
10736
10758
|
], 64)) : X("", !0),
|
|
10737
|
-
|
|
10759
|
+
T(wt, {
|
|
10738
10760
|
modelValue: A.value,
|
|
10739
|
-
"onUpdate:modelValue": p[
|
|
10761
|
+
"onUpdate:modelValue": p[63] || (p[63] = (y) => A.value = y),
|
|
10740
10762
|
title: b(r)("brand.brandkit.ordering.colorOverride.dialogTitleApp"),
|
|
10741
10763
|
description: b(r)("brand.brandkit.ordering.colorOverride.descriptionApp"),
|
|
10742
10764
|
"color-fields": v.value,
|
|
10743
10765
|
"base-brandkit": f.value,
|
|
10744
|
-
value: (
|
|
10745
|
-
onSave: p[
|
|
10766
|
+
value: (La = (Ra = u.value.ordering) == null ? void 0 : Ra.app) == null ? void 0 : La.brandkitOverride,
|
|
10767
|
+
onSave: p[64] || (p[64] = (y) => er("app", y))
|
|
10746
10768
|
}, null, 8, ["modelValue", "title", "description", "color-fields", "base-brandkit", "value"]),
|
|
10747
|
-
|
|
10769
|
+
T(wt, {
|
|
10748
10770
|
modelValue: j.value,
|
|
10749
|
-
"onUpdate:modelValue": p[
|
|
10771
|
+
"onUpdate:modelValue": p[65] || (p[65] = (y) => j.value = y),
|
|
10750
10772
|
title: b(r)("brand.brandkit.ordering.colorOverride.dialogTitleKiosk"),
|
|
10751
10773
|
description: b(r)("brand.brandkit.ordering.colorOverride.descriptionKiosk"),
|
|
10752
10774
|
"color-fields": v.value,
|
|
10753
10775
|
"base-brandkit": f.value,
|
|
10754
|
-
value: (Pa = (
|
|
10755
|
-
onSave: p[
|
|
10776
|
+
value: (Pa = (Da = u.value.ordering) == null ? void 0 : Da.kiosk) == null ? void 0 : Pa.brandkitOverride,
|
|
10777
|
+
onSave: p[66] || (p[66] = (y) => er("kiosk", y))
|
|
10756
10778
|
}, null, 8, ["modelValue", "title", "description", "color-fields", "base-brandkit", "value"]),
|
|
10757
|
-
|
|
10758
|
-
modelValue:
|
|
10759
|
-
"onUpdate:modelValue": p[
|
|
10779
|
+
T(wt, {
|
|
10780
|
+
modelValue: pt.value,
|
|
10781
|
+
"onUpdate:modelValue": p[67] || (p[67] = (y) => pt.value = y),
|
|
10760
10782
|
title: "ODS Color Override",
|
|
10761
10783
|
description: "Override brand colors specifically for the ODS display.",
|
|
10762
10784
|
"color-fields": v.value,
|
|
10763
10785
|
"base-brandkit": f.value,
|
|
10764
|
-
value: (
|
|
10765
|
-
onSave:
|
|
10786
|
+
value: (_a = u.value.ods) == null ? void 0 : _a.brandkitOverride,
|
|
10787
|
+
onSave: On
|
|
10766
10788
|
}, null, 8, ["modelValue", "color-fields", "base-brandkit", "value"])
|
|
10767
10789
|
]);
|
|
10768
10790
|
};
|
|
10769
10791
|
}
|
|
10770
|
-
}),
|
|
10792
|
+
}), th = /* @__PURE__ */ Mo(Wf, [["__scopeId", "data-v-6c624ccf"]]);
|
|
10771
10793
|
export {
|
|
10772
|
-
|
|
10794
|
+
th as default
|
|
10773
10795
|
};
|