@chili-publish/studio-sdk 1.29.1 → 1.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_bundles/main.es.js +758 -675
- package/_bundles/main.es.js.map +1 -1
- package/_bundles/main.js +2 -2
- package/_bundles/main.js.map +1 -1
- package/connector-types/src/Connector.Shared.d.ts +1 -0
- package/lib/editor-engine.json +1 -1
- package/lib/package.json +1 -1
- package/lib/src/controllers/BrandKitController.js +8 -2
- package/lib/src/controllers/BrandKitController.js.map +1 -1
- package/lib/src/controllers/FrameController.d.ts +35 -0
- package/lib/src/controllers/FrameController.js +65 -0
- package/lib/src/controllers/FrameController.js.map +1 -1
- package/lib/src/controllers/MediaConnectorController.d.ts +1 -1
- package/lib/src/controllers/MediaConnectorController.js +13 -2
- package/lib/src/controllers/MediaConnectorController.js.map +1 -1
- package/lib/src/controllers/UndoManagerController.d.ts +37 -0
- package/lib/src/controllers/UndoManagerController.js +45 -0
- package/lib/src/controllers/UndoManagerController.js.map +1 -1
- package/lib/src/controllers/UtilsController.d.ts +24 -2
- package/lib/src/controllers/UtilsController.js +34 -3
- package/lib/src/controllers/UtilsController.js.map +1 -1
- package/lib/src/index.d.ts +3 -3
- package/lib/src/index.js +1 -1
- package/lib/src/index.js.map +1 -1
- package/lib/src/next/controllers/VariableController.js.map +1 -1
- package/lib/src/next/tests/controllers/VariableController.test.js.map +1 -1
- package/lib/src/sdk.js +2 -2
- package/lib/src/sdk.js.map +1 -1
- package/lib/src/tests/__mocks__/Brandkit.js +3 -0
- package/lib/src/tests/__mocks__/Brandkit.js.map +1 -1
- package/lib/src/tests/controllers/BrandKitController.test.js +12 -0
- package/lib/src/tests/controllers/BrandKitController.test.js.map +1 -1
- package/lib/src/tests/controllers/FrameController.test.js +43 -4
- package/lib/src/tests/controllers/FrameController.test.js.map +1 -1
- package/lib/src/tests/controllers/LayoutController.test.js +8 -1
- package/lib/src/tests/controllers/LayoutController.test.js.map +1 -1
- package/lib/src/tests/controllers/MediaConnectorController.test.js +15 -1
- package/lib/src/tests/controllers/MediaConnectorController.test.js.map +1 -1
- package/lib/src/tests/controllers/UndoManagerController.test.js +26 -2
- package/lib/src/tests/controllers/UndoManagerController.test.js.map +1 -1
- package/lib/src/tests/controllers/UtilsController.test.js +14 -1
- package/lib/src/tests/controllers/UtilsController.test.js.map +1 -1
- package/lib/src/types/BrandKitTypes.d.ts +6 -0
- package/lib/src/types/FrameTypes.d.ts +28 -0
- package/lib/src/types/FrameTypes.js.map +1 -1
- package/lib/src/types/LayoutTypes.d.ts +21 -0
- package/lib/src/types/LayoutTypes.js +6 -0
- package/lib/src/types/LayoutTypes.js.map +1 -1
- package/lib/src/utils/BrandKitHelper.d.ts +1 -1
- package/lib/src/utils/BrandKitHelper.js +20 -4
- package/lib/src/utils/BrandKitHelper.js.map +1 -1
- package/lib/src/utils/EditorResponseData.d.ts +1 -0
- package/lib/src/utils/EditorResponseData.js +19 -16
- package/lib/src/utils/EditorResponseData.js.map +1 -1
- package/package.json +1 -1
package/_bundles/main.es.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Pe = (s) => {
|
|
2
2
|
throw TypeError(s);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var a = (s, i, t) => (
|
|
6
|
-
const
|
|
7
|
-
current:
|
|
8
|
-
},
|
|
9
|
-
version:
|
|
4
|
+
var Fe = (s, i, t) => i.has(s) || Pe("Cannot " + t);
|
|
5
|
+
var a = (s, i, t) => (Fe(s, i, "read from private field"), t ? t.call(s) : i.get(s)), u = (s, i, t) => i.has(s) ? Pe("Cannot add the same private member more than once") : i instanceof WeakSet ? i.add(s) : i.set(s, t), g = (s, i, t, e) => (Fe(s, i, "write to private field"), e ? e.call(s, t) : i.set(s, t), t);
|
|
6
|
+
const vs = "2.14.latest", ls = {
|
|
7
|
+
current: vs
|
|
8
|
+
}, As = "1.31.0", ds = {
|
|
9
|
+
version: As
|
|
10
10
|
};
|
|
11
|
-
var
|
|
11
|
+
var $;
|
|
12
12
|
(function(s) {
|
|
13
13
|
s.Call = "call", s.Reply = "reply", s.Syn = "syn", s.SynAck = "synAck", s.Ack = "ack";
|
|
14
|
-
})(
|
|
15
|
-
var
|
|
14
|
+
})($ || ($ = {}));
|
|
15
|
+
var lt;
|
|
16
16
|
(function(s) {
|
|
17
17
|
s.Fulfilled = "fulfilled", s.Rejected = "rejected";
|
|
18
|
-
})(
|
|
19
|
-
var
|
|
18
|
+
})(lt || (lt = {}));
|
|
19
|
+
var Mt;
|
|
20
20
|
(function(s) {
|
|
21
21
|
s.ConnectionDestroyed = "ConnectionDestroyed", s.ConnectionTimeout = "ConnectionTimeout", s.NoIframeSrc = "NoIframeSrc";
|
|
22
|
-
})(
|
|
23
|
-
var
|
|
22
|
+
})(Mt || (Mt = {}));
|
|
23
|
+
var Qt;
|
|
24
24
|
(function(s) {
|
|
25
25
|
s.DataCloneError = "DataCloneError";
|
|
26
|
-
})(
|
|
27
|
-
var
|
|
26
|
+
})(Qt || (Qt = {}));
|
|
27
|
+
var ht;
|
|
28
28
|
(function(s) {
|
|
29
29
|
s.Message = "message";
|
|
30
|
-
})(
|
|
31
|
-
const
|
|
30
|
+
})(ht || (ht = {}));
|
|
31
|
+
const Ps = (s, i) => {
|
|
32
32
|
const t = [];
|
|
33
33
|
let e = !1;
|
|
34
34
|
return {
|
|
@@ -41,135 +41,135 @@ const vs = (s, i) => {
|
|
|
41
41
|
e ? r() : t.push(r);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
},
|
|
44
|
+
}, Fs = (s) => (...i) => {
|
|
45
45
|
s && console.log("[Penpal]", ...i);
|
|
46
|
-
},
|
|
46
|
+
}, Es = {
|
|
47
47
|
"http:": "80",
|
|
48
48
|
"https:": "443"
|
|
49
|
-
},
|
|
50
|
-
if (s &&
|
|
49
|
+
}, Ds = /^(https?:)?\/\/([^/:]+)?(:(\d+))?/, Ls = ["file:", "data:"], Os = (s) => {
|
|
50
|
+
if (s && Ls.find((l) => s.startsWith(l)))
|
|
51
51
|
return "null";
|
|
52
|
-
const i = document.location, t =
|
|
52
|
+
const i = document.location, t = Ds.exec(s);
|
|
53
53
|
let e, r, n;
|
|
54
54
|
t ? (e = t[1] ? t[1] : i.protocol, r = t[2], n = t[4]) : (e = i.protocol, r = i.hostname, n = i.port);
|
|
55
|
-
const c = n && n !==
|
|
55
|
+
const c = n && n !== Es[e] ? `:${n}` : "";
|
|
56
56
|
return `${e}//${r}${c}`;
|
|
57
|
-
},
|
|
57
|
+
}, Ee = ({ name: s, message: i, stack: t }) => ({
|
|
58
58
|
name: s,
|
|
59
59
|
message: i,
|
|
60
60
|
stack: t
|
|
61
|
-
}),
|
|
61
|
+
}), Ns = (s) => {
|
|
62
62
|
const i = new Error();
|
|
63
63
|
return Object.keys(s).forEach((t) => i[t] = s[t]), i;
|
|
64
|
-
},
|
|
65
|
-
const { localName: e, local: r, remote: n, originForSending: c, originForReceiving:
|
|
66
|
-
let
|
|
64
|
+
}, xs = (s, i, t) => {
|
|
65
|
+
const { localName: e, local: r, remote: n, originForSending: c, originForReceiving: l } = s;
|
|
66
|
+
let h = !1;
|
|
67
67
|
const y = (p) => {
|
|
68
|
-
if (p.source !== n || p.data.penpal !==
|
|
68
|
+
if (p.source !== n || p.data.penpal !== $.Call)
|
|
69
69
|
return;
|
|
70
|
-
if (p.origin !==
|
|
71
|
-
t(`${e} received message from origin ${p.origin} which did not match expected origin ${
|
|
70
|
+
if (p.origin !== l) {
|
|
71
|
+
t(`${e} received message from origin ${p.origin} which did not match expected origin ${l}`);
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
75
|
-
t(`${e}: Received ${
|
|
76
|
-
const
|
|
77
|
-
if (t(`${e}: Sending ${
|
|
78
|
-
t(`${e}: Unable to send ${
|
|
74
|
+
const I = p.data, { methodName: S, args: f, id: b } = I;
|
|
75
|
+
t(`${e}: Received ${S}() call`);
|
|
76
|
+
const A = (v) => (N) => {
|
|
77
|
+
if (t(`${e}: Sending ${S}() reply`), h) {
|
|
78
|
+
t(`${e}: Unable to send ${S}() reply due to destroyed connection`);
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
|
-
const
|
|
82
|
-
penpal:
|
|
81
|
+
const x = {
|
|
82
|
+
penpal: $.Reply,
|
|
83
83
|
id: b,
|
|
84
|
-
resolution:
|
|
84
|
+
resolution: v,
|
|
85
85
|
returnValue: N
|
|
86
86
|
};
|
|
87
|
-
|
|
87
|
+
v === lt.Rejected && N instanceof Error && (x.returnValue = Ee(N), x.returnValueIsError = !0);
|
|
88
88
|
try {
|
|
89
|
-
n.postMessage(
|
|
90
|
-
} catch (
|
|
91
|
-
if (
|
|
92
|
-
const
|
|
93
|
-
penpal:
|
|
89
|
+
n.postMessage(x, c);
|
|
90
|
+
} catch (P) {
|
|
91
|
+
if (P.name === Qt.DataCloneError) {
|
|
92
|
+
const K = {
|
|
93
|
+
penpal: $.Reply,
|
|
94
94
|
id: b,
|
|
95
|
-
resolution:
|
|
96
|
-
returnValue:
|
|
95
|
+
resolution: lt.Rejected,
|
|
96
|
+
returnValue: Ee(P),
|
|
97
97
|
returnValueIsError: !0
|
|
98
98
|
};
|
|
99
|
-
n.postMessage(
|
|
99
|
+
n.postMessage(K, c);
|
|
100
100
|
}
|
|
101
|
-
throw
|
|
101
|
+
throw P;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
new Promise((
|
|
104
|
+
new Promise((v) => v(i[S].apply(i, f))).then(A(lt.Fulfilled), A(lt.Rejected));
|
|
105
105
|
};
|
|
106
|
-
return r.addEventListener(
|
|
107
|
-
|
|
106
|
+
return r.addEventListener(ht.Message, y), () => {
|
|
107
|
+
h = !0, r.removeEventListener(ht.Message, y);
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
let
|
|
111
|
-
const
|
|
112
|
-
const t =
|
|
113
|
-
return t.push(s),
|
|
114
|
-
},
|
|
115
|
-
const e =
|
|
110
|
+
let Ms = 0;
|
|
111
|
+
const Rs = () => ++Ms, us = ".", gs = (s) => s ? s.split(us) : [], Vs = (s) => s.join(us), Bs = (s, i) => {
|
|
112
|
+
const t = gs(i || "");
|
|
113
|
+
return t.push(s), Vs(t);
|
|
114
|
+
}, Js = (s, i, t) => {
|
|
115
|
+
const e = gs(i);
|
|
116
116
|
return e.reduce((r, n, c) => (typeof r[n] > "u" && (r[n] = {}), c === e.length - 1 && (r[n] = t), r[n]), s), s;
|
|
117
|
-
},
|
|
117
|
+
}, ys = (s, i) => {
|
|
118
118
|
const t = {};
|
|
119
119
|
return Object.keys(s).forEach((e) => {
|
|
120
|
-
const r = s[e], n =
|
|
121
|
-
typeof r == "object" && Object.assign(t,
|
|
120
|
+
const r = s[e], n = Bs(e, i);
|
|
121
|
+
typeof r == "object" && Object.assign(t, ys(r, n)), typeof r == "function" && (t[n] = r);
|
|
122
122
|
}), t;
|
|
123
|
-
},
|
|
123
|
+
}, ks = (s) => {
|
|
124
124
|
const i = {};
|
|
125
125
|
for (const t in s)
|
|
126
|
-
|
|
126
|
+
Js(i, t, s[t]);
|
|
127
127
|
return i;
|
|
128
|
-
},
|
|
129
|
-
const { localName: n, local: c, remote:
|
|
128
|
+
}, Us = (s, i, t, e, r) => {
|
|
129
|
+
const { localName: n, local: c, remote: l, originForSending: h, originForReceiving: y } = i;
|
|
130
130
|
let p = !1;
|
|
131
131
|
r(`${n}: Connecting call sender`);
|
|
132
|
-
const
|
|
133
|
-
r(`${n}: Sending ${
|
|
134
|
-
let
|
|
132
|
+
const I = (f) => (...b) => {
|
|
133
|
+
r(`${n}: Sending ${f}() call`);
|
|
134
|
+
let A;
|
|
135
135
|
try {
|
|
136
|
-
|
|
136
|
+
l.closed && (A = !0);
|
|
137
137
|
} catch {
|
|
138
|
-
|
|
138
|
+
A = !0;
|
|
139
139
|
}
|
|
140
|
-
if (
|
|
141
|
-
const
|
|
142
|
-
throw
|
|
140
|
+
if (A && e(), p) {
|
|
141
|
+
const v = new Error(`Unable to send ${f}() call due to destroyed connection`);
|
|
142
|
+
throw v.code = Mt.ConnectionDestroyed, v;
|
|
143
143
|
}
|
|
144
|
-
return new Promise((
|
|
145
|
-
const
|
|
146
|
-
if (
|
|
144
|
+
return new Promise((v, N) => {
|
|
145
|
+
const x = Rs(), P = (z) => {
|
|
146
|
+
if (z.source !== l || z.data.penpal !== $.Reply || z.data.id !== x)
|
|
147
147
|
return;
|
|
148
|
-
if (
|
|
149
|
-
r(`${n} received message from origin ${
|
|
148
|
+
if (z.origin !== y) {
|
|
149
|
+
r(`${n} received message from origin ${z.origin} which did not match expected origin ${y}`);
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
|
-
const mt =
|
|
153
|
-
r(`${n}: Received ${
|
|
152
|
+
const mt = z.data;
|
|
153
|
+
r(`${n}: Received ${f}() reply`), c.removeEventListener(ht.Message, P);
|
|
154
154
|
let wt = mt.returnValue;
|
|
155
|
-
mt.returnValueIsError && (wt =
|
|
155
|
+
mt.returnValueIsError && (wt = Ns(wt)), (mt.resolution === lt.Fulfilled ? v : N)(wt);
|
|
156
156
|
};
|
|
157
|
-
c.addEventListener(
|
|
158
|
-
const
|
|
159
|
-
penpal:
|
|
160
|
-
id:
|
|
161
|
-
methodName:
|
|
157
|
+
c.addEventListener(ht.Message, P);
|
|
158
|
+
const K = {
|
|
159
|
+
penpal: $.Call,
|
|
160
|
+
id: x,
|
|
161
|
+
methodName: f,
|
|
162
162
|
args: b
|
|
163
163
|
};
|
|
164
|
-
|
|
164
|
+
l.postMessage(K, h);
|
|
165
165
|
});
|
|
166
|
-
},
|
|
167
|
-
return Object.assign(s,
|
|
166
|
+
}, S = t.reduce((f, b) => (f[b] = I(b), f), {});
|
|
167
|
+
return Object.assign(s, ks(S)), () => {
|
|
168
168
|
p = !0;
|
|
169
169
|
};
|
|
170
|
-
},
|
|
170
|
+
}, Gs = (s, i, t, e, r) => {
|
|
171
171
|
const { destroy: n, onDestroy: c } = e;
|
|
172
|
-
let
|
|
172
|
+
let l, h;
|
|
173
173
|
const y = {};
|
|
174
174
|
return (p) => {
|
|
175
175
|
if (p.origin !== i) {
|
|
@@ -177,84 +177,84 @@ const Ms = () => ++Ns, ls = ".", ds = (s) => s ? s.split(ls) : [], xs = (s) => s
|
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
179
|
r("Parent: Handshake - Received ACK");
|
|
180
|
-
const
|
|
180
|
+
const I = {
|
|
181
181
|
localName: "Parent",
|
|
182
182
|
local: window,
|
|
183
183
|
remote: p.source,
|
|
184
184
|
originForSending: t,
|
|
185
185
|
originForReceiving: i
|
|
186
186
|
};
|
|
187
|
-
|
|
188
|
-
delete y[
|
|
189
|
-
}),
|
|
190
|
-
const
|
|
191
|
-
return c(
|
|
187
|
+
l && l(), l = xs(I, s, r), c(l), h && h.forEach((f) => {
|
|
188
|
+
delete y[f];
|
|
189
|
+
}), h = p.data.methodNames;
|
|
190
|
+
const S = Us(y, I, h, n, r);
|
|
191
|
+
return c(S), y;
|
|
192
192
|
};
|
|
193
|
-
},
|
|
193
|
+
}, Ts = (s, i, t, e) => (r) => {
|
|
194
194
|
if (r.origin !== t) {
|
|
195
195
|
s(`Parent: Handshake - Received SYN message from origin ${r.origin} which did not match expected origin ${t}`);
|
|
196
196
|
return;
|
|
197
197
|
}
|
|
198
198
|
s("Parent: Handshake - Received SYN, responding with SYN-ACK");
|
|
199
199
|
const n = {
|
|
200
|
-
penpal:
|
|
200
|
+
penpal: $.SynAck,
|
|
201
201
|
methodNames: Object.keys(i)
|
|
202
202
|
};
|
|
203
203
|
r.source.postMessage(n, e);
|
|
204
|
-
},
|
|
204
|
+
}, Hs = 6e4, _s = (s, i) => {
|
|
205
205
|
const { destroy: t, onDestroy: e } = i, r = setInterval(() => {
|
|
206
206
|
s.isConnected || (clearInterval(r), t());
|
|
207
|
-
},
|
|
207
|
+
}, Hs);
|
|
208
208
|
e(() => {
|
|
209
209
|
clearInterval(r);
|
|
210
210
|
});
|
|
211
|
-
},
|
|
211
|
+
}, $s = (s, i) => {
|
|
212
212
|
let t;
|
|
213
213
|
return s !== void 0 && (t = window.setTimeout(() => {
|
|
214
214
|
const e = new Error(`Connection timed out after ${s}ms`);
|
|
215
|
-
e.code =
|
|
215
|
+
e.code = Mt.ConnectionTimeout, i(e);
|
|
216
216
|
}, s)), () => {
|
|
217
217
|
clearTimeout(t);
|
|
218
218
|
};
|
|
219
|
-
},
|
|
219
|
+
}, Ks = (s) => {
|
|
220
220
|
if (!s.src && !s.srcdoc) {
|
|
221
221
|
const i = new Error("Iframe must have src or srcdoc property defined.");
|
|
222
|
-
throw i.code =
|
|
222
|
+
throw i.code = Mt.NoIframeSrc, i;
|
|
223
223
|
}
|
|
224
|
-
},
|
|
224
|
+
}, zs = (s) => {
|
|
225
225
|
let { iframe: i, methods: t = {}, childOrigin: e, timeout: r, debug: n = !1 } = s;
|
|
226
|
-
const c =
|
|
227
|
-
e || (
|
|
228
|
-
const p = e === "null" ? "*" : e,
|
|
226
|
+
const c = Fs(n), l = Ps("Parent", c), { onDestroy: h, destroy: y } = l;
|
|
227
|
+
e || (Ks(i), e = Os(i.src));
|
|
228
|
+
const p = e === "null" ? "*" : e, I = ys(t), S = Ts(c, I, e, p), f = Gs(I, e, p, l, c);
|
|
229
229
|
return {
|
|
230
|
-
promise: new Promise((
|
|
231
|
-
const N =
|
|
232
|
-
if (!(
|
|
233
|
-
if (
|
|
234
|
-
|
|
230
|
+
promise: new Promise((A, v) => {
|
|
231
|
+
const N = $s(r, y), x = (P) => {
|
|
232
|
+
if (!(P.source !== i.contentWindow || !P.data)) {
|
|
233
|
+
if (P.data.penpal === $.Syn) {
|
|
234
|
+
S(P);
|
|
235
235
|
return;
|
|
236
236
|
}
|
|
237
|
-
if (
|
|
238
|
-
const
|
|
239
|
-
|
|
237
|
+
if (P.data.penpal === $.Ack) {
|
|
238
|
+
const K = f(P);
|
|
239
|
+
K && (N(), A(K));
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
|
-
window.addEventListener(
|
|
245
|
-
window.removeEventListener(
|
|
244
|
+
window.addEventListener(ht.Message, x), c("Parent: Awaiting handshake"), _s(i, l), h((P) => {
|
|
245
|
+
window.removeEventListener(ht.Message, x), P && v(P);
|
|
246
246
|
});
|
|
247
247
|
}),
|
|
248
248
|
destroy() {
|
|
249
249
|
y();
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
|
-
},
|
|
252
|
+
}, Ws = (s) => {
|
|
253
253
|
const i = new RegExp(/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w]+\/$/);
|
|
254
254
|
let t = "";
|
|
255
255
|
return i.test(s) ? t = s : s.indexOf("/index.html") > -1 ? t = s.replace("/index.html", "/") : s.charAt(-1) !== "/" && (t = `${s}/`), t;
|
|
256
|
-
},
|
|
257
|
-
const e =
|
|
256
|
+
}, js = (s, i, t) => {
|
|
257
|
+
const e = Ws(i), n = `<html>
|
|
258
258
|
<head>
|
|
259
259
|
<base href="/" />
|
|
260
260
|
<meta charset="UTF-8"/>
|
|
@@ -275,17 +275,17 @@ const Ms = () => ++Ns, ls = ".", ds = (s) => s ? s.split(ls) : [], xs = (s) => s
|
|
|
275
275
|
</html>
|
|
276
276
|
`;
|
|
277
277
|
s.srcdoc = n;
|
|
278
|
-
},
|
|
278
|
+
}, qs = (s, i, t, e = "chili-editor", r) => {
|
|
279
279
|
const n = `#${e}`, c = document.createElement("iframe");
|
|
280
280
|
c.setAttribute("srcdoc", " "), c.setAttribute("title", "Chili-Editor"), c.setAttribute("style", "width: 100%; height: 100%;"), c.setAttribute("frameBorder", "0"), c.setAttribute("referrerpolicy", "origin");
|
|
281
|
-
const
|
|
282
|
-
const
|
|
283
|
-
|
|
281
|
+
const l = () => {
|
|
282
|
+
const h = document.querySelector(n);
|
|
283
|
+
h && (h == null || h.appendChild(c), js(c, s, r));
|
|
284
284
|
};
|
|
285
|
-
document.readyState === "complete" || document.readyState === "interactive" ?
|
|
286
|
-
|
|
285
|
+
document.readyState === "complete" || document.readyState === "interactive" ? l() : document.addEventListener("DOMContentLoaded", () => {
|
|
286
|
+
l();
|
|
287
287
|
}), t(
|
|
288
|
-
|
|
288
|
+
zs({
|
|
289
289
|
// The iframe to which a connection should be made
|
|
290
290
|
iframe: c,
|
|
291
291
|
// All the methods that we want to expose to the child should be inside the methods object
|
|
@@ -336,8 +336,8 @@ const Ms = () => ++Ns, ls = ".", ds = (s) => s ? s.split(ls) : [], xs = (s) => s
|
|
|
336
336
|
})
|
|
337
337
|
);
|
|
338
338
|
};
|
|
339
|
-
var
|
|
340
|
-
const
|
|
339
|
+
var Q = /* @__PURE__ */ ((s) => (s.GraFxStudioEnvironmentApiUrl = "ENVIRONMENT_API", s.GraFxStudioSdkVersion = "SDK_VERSION", s.GraFxStudioDocumentType = "DOCUMENT_TYPE", s.GraFxStudioTemplateId = "TEMPLATE_ID", s.GraFxStudioAuthToken = "GRAFX_AUTH_TOKEN", s.QueryCallCacheEnabled = "ENABLE_QUERY_CALL_CACHE", s))(Q || {});
|
|
340
|
+
const Ys = {
|
|
341
341
|
shortcutOptions: {
|
|
342
342
|
debugPanel: { enabled: !1 },
|
|
343
343
|
ellipse: { enabled: !1 },
|
|
@@ -352,23 +352,24 @@ const qs = {
|
|
|
352
352
|
viewMode: { enabled: !1 }
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
|
-
var
|
|
356
|
-
const
|
|
355
|
+
var Zs = /* @__PURE__ */ ((s) => (s.overflow = "overflow", s.fontLoading = "fontLoading", s.actionRegister = "actionRegister", s.actionExecution = "actionExecution", s.actionCircular = "actionCircular", s))(Zs || {}), ps = /* @__PURE__ */ ((s) => (s.project = "project", s.template = "template", s))(ps || {});
|
|
356
|
+
const Qs = 404075;
|
|
357
|
+
function Cs(s) {
|
|
358
|
+
const i = s.error ?? "Yikes, something went wrong", t = {
|
|
359
|
+
cause: {
|
|
360
|
+
name: String(s.status),
|
|
361
|
+
message: s.error ?? "Yikes, something went wrong"
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
if (s.status === Qs) {
|
|
365
|
+
const r = JSON.parse(s.data).statusCode;
|
|
366
|
+
throw new Xs(r, i, t);
|
|
367
|
+
} else
|
|
368
|
+
throw new Error(i, t);
|
|
369
|
+
}
|
|
357
370
|
function o(s, i = !0) {
|
|
358
371
|
try {
|
|
359
|
-
|
|
360
|
-
const e = s.error ?? "Yikes, something went wrong", r = {
|
|
361
|
-
cause: {
|
|
362
|
-
name: String(s.status),
|
|
363
|
-
message: s.error ?? "Yikes, something went wrong"
|
|
364
|
-
}
|
|
365
|
-
};
|
|
366
|
-
if (s.status === Ys) {
|
|
367
|
-
const c = JSON.parse(s.data).statusCode;
|
|
368
|
-
throw new Zs(c, e, r);
|
|
369
|
-
} else
|
|
370
|
-
throw new Error(e, r);
|
|
371
|
-
}
|
|
372
|
+
s.success || Cs(s);
|
|
372
373
|
const t = s.data && i;
|
|
373
374
|
return {
|
|
374
375
|
...s,
|
|
@@ -378,13 +379,13 @@ function o(s, i = !0) {
|
|
|
378
379
|
throw console.error(t), t;
|
|
379
380
|
}
|
|
380
381
|
}
|
|
381
|
-
class
|
|
382
|
+
class Xs extends Error {
|
|
382
383
|
constructor(i, t, e) {
|
|
383
384
|
super(t, e), this.statusCode = i;
|
|
384
385
|
}
|
|
385
386
|
}
|
|
386
387
|
var O;
|
|
387
|
-
class
|
|
388
|
+
class De {
|
|
388
389
|
/**
|
|
389
390
|
* @ignore
|
|
390
391
|
*/
|
|
@@ -397,8 +398,8 @@ class Ae {
|
|
|
397
398
|
}
|
|
398
399
|
}
|
|
399
400
|
O = new WeakMap();
|
|
400
|
-
var
|
|
401
|
-
class
|
|
401
|
+
var D;
|
|
402
|
+
class Le {
|
|
402
403
|
/**
|
|
403
404
|
* @ignore
|
|
404
405
|
*/
|
|
@@ -406,15 +407,15 @@ class Fe {
|
|
|
406
407
|
/**
|
|
407
408
|
* @ignore
|
|
408
409
|
*/
|
|
409
|
-
u(this,
|
|
410
|
-
this.getAllOnSelectedLayout = async () => (await a(this,
|
|
410
|
+
u(this, D);
|
|
411
|
+
this.getAllOnSelectedLayout = async () => (await a(this, D)).getAnimationsOnSelectedLayout().then((e) => o(e)), this.getByFrameId = async (t, e) => (await a(this, D)).getAnimationByFrameId(t, e).then((n) => o(n)), this.getByLayoutId = async (t) => (await a(this, D)).getAnimationsByLayoutId(t).then((r) => o(r)), this.setFrameAnimation = async (t) => (await a(this, D)).setFrameAnimation(JSON.stringify(t)).then(
|
|
411
412
|
(r) => o({ ...r, data: JSON.stringify(t) })
|
|
412
|
-
), this.play = async () => (await a(this,
|
|
413
|
+
), this.play = async () => (await a(this, D)).playAnimation().then((e) => o(e)), this.pause = async () => (await a(this, D)).pauseAnimation().then((e) => o(e)), this.setScrubberPosition = async (t) => (await a(this, D)).setScrubberPosition(t).then((r) => o(r)), this.setDuration = async (t) => (await a(this, D)).setAnimationDuration(t).then((r) => o(r)), this.resetFrameAnimation = async (t) => (await a(this, D)).resetFrameAnimation(t).then((r) => o(r)), this.reset = async () => (await a(this, D)).resetAnimation().then((e) => o(e)), g(this, D, i);
|
|
413
414
|
}
|
|
414
415
|
}
|
|
415
|
-
|
|
416
|
-
var
|
|
417
|
-
class
|
|
416
|
+
D = new WeakMap();
|
|
417
|
+
var H = /* @__PURE__ */ ((s) => (s.code39 = "code39", s.code93 = "code93", s.code128 = "code128", s.dataMatrix = "dataMatrix", s.ean13 = "ean13", s.ean8 = "ean8", s.qr = "qr", s.upca = "upca", s.upce = "upce", s.gs1128 = "gs1128", s))(H || {}), Ot = /* @__PURE__ */ ((s) => (s.low = "low", s.medium = "medium", s.quartile = "quartile", s.high = "high", s))(Ot || {}), ft = /* @__PURE__ */ ((s) => (s.utf8 = "utf8", s.iso8859_1 = "iso8859_1", s.code128a = "code128a", s.code128b = "code128b", s.code128c = "code128c", s))(ft || {}), tr = /* @__PURE__ */ ((s) => (s.success = "success", s.empty = "empty", s.invalidLength = "invalidLength", s.invalidCharacters = "invalidCharacters", s.invalidChecksum = "invalidChecksum", s.invalidUPCE = "invalidUPCE", s.otherError = "otherError", s))(tr || {}), Z = /* @__PURE__ */ ((s) => (s.top = "top", s.right = "right", s.bottom = "bottom", s.left = "left", s))(Z || {}), er = /* @__PURE__ */ ((s) => (s.top = "top", s.child = "child", s))(er || {}), sr = /* @__PURE__ */ ((s) => (s.px = "px", s.mm = "mm", s.cm = "cm", s.inch = "inch", s.pt = "pt", s))(sr || {}), rr = /* @__PURE__ */ ((s) => (s.print = "print", s.digitalStatic = "digitalStatic", s.digitalAnimated = "digitalAnimated", s))(rr || {}), nr = /* @__PURE__ */ ((s) => (s.locked = "locked", s.range = "range", s.none = "none", s))(nr || {}), U;
|
|
418
|
+
class Oe {
|
|
418
419
|
/**
|
|
419
420
|
* @ignore
|
|
420
421
|
*/
|
|
@@ -422,8 +423,8 @@ class Ee {
|
|
|
422
423
|
/**
|
|
423
424
|
* @ignore
|
|
424
425
|
*/
|
|
425
|
-
u(this,
|
|
426
|
-
this.setBarcodeProperties = async (t, e) => (await a(this,
|
|
426
|
+
u(this, U);
|
|
427
|
+
this.setBarcodeProperties = async (t, e) => (await a(this, U)).setBarcodeProperties(t, JSON.stringify(e)).then((n) => o(n)), this.setEnableBackground = async (t, e) => {
|
|
427
428
|
const r = { enableBackground: e };
|
|
428
429
|
return this.setBarcodeProperties(t, r);
|
|
429
430
|
}, this.setBackgroundColor = async (t, e) => {
|
|
@@ -435,7 +436,7 @@ class Ee {
|
|
|
435
436
|
}, this.setBarColor = async (t, e) => {
|
|
436
437
|
const r = { barColor: e };
|
|
437
438
|
return this.setBarcodeProperties(t, r);
|
|
438
|
-
}, this.setBarcodeSource = async (t, e) => (await a(this,
|
|
439
|
+
}, this.setBarcodeSource = async (t, e) => (await a(this, U)).setBarcodeSource(t, JSON.stringify(e)).then((n) => o(n)), this.removeBarcodeSource = async (t) => (await a(this, U)).setBarcodeSource(t, null).then((r) => o(r)), this.setEnableText = async (t, e) => {
|
|
439
440
|
const r = { enableText: e };
|
|
440
441
|
return this.setBarcodeProperties(t, r);
|
|
441
442
|
}, this.setBarHeight = async (t, e) => {
|
|
@@ -446,52 +447,52 @@ class Ee {
|
|
|
446
447
|
return this.setBarcodeProperties(t, r);
|
|
447
448
|
}, this.setQuietZoneValue = async (t, e, r) => {
|
|
448
449
|
const n = r ? {
|
|
449
|
-
left: r ===
|
|
450
|
-
top: r ===
|
|
451
|
-
right: r ===
|
|
452
|
-
bottom: r ===
|
|
450
|
+
left: r === Z.left ? e : void 0,
|
|
451
|
+
top: r === Z.top ? e : void 0,
|
|
452
|
+
right: r === Z.right ? e : void 0,
|
|
453
|
+
bottom: r === Z.bottom ? e : void 0
|
|
453
454
|
} : { left: e, top: e, right: e, bottom: e };
|
|
454
|
-
return (await a(this,
|
|
455
|
+
return (await a(this, U)).setBarcodeProperties(t, JSON.stringify({ quietZone: n })).then((l) => o(l));
|
|
455
456
|
}, this.setAreQuietZoneValuesCombined = async (t, e) => {
|
|
456
457
|
const r = { areQuietZoneValuesCombined: e };
|
|
457
|
-
return (await a(this,
|
|
458
|
-
}, this.setErrorCorrectionLevel = async (t, e) => (await a(this,
|
|
458
|
+
return (await a(this, U)).setBarcodeProperties(t, JSON.stringify({ quietZone: r })).then((c) => o(c));
|
|
459
|
+
}, this.setErrorCorrectionLevel = async (t, e) => (await a(this, U)).setBarcodeProperties(t, JSON.stringify({ errorCorrectionLevel: e })).then((n) => o(n)), this.setCharacterSet = async (t, e) => (await a(this, U)).setBarcodeProperties(t, JSON.stringify({ characterSet: e })).then((n) => o(n)), this.setDrawLightMarginIndicator = async (t, e) => {
|
|
459
460
|
const r = { drawStartStopChars: e };
|
|
460
461
|
return this.setBarcodeProperties(t, r);
|
|
461
462
|
}, this.setDrawStartStopChars = async (t, e) => {
|
|
462
463
|
const r = { drawStartStopChars: e };
|
|
463
464
|
return this.setBarcodeProperties(t, r);
|
|
464
465
|
}, this.getBarcodeConfigationOptions = (t) => {
|
|
465
|
-
let e = !0, r = !0, n = !0, c,
|
|
466
|
+
let e = !0, r = !0, n = !0, c, l, h = !1, y = !1, p = !1;
|
|
466
467
|
switch (t) {
|
|
467
|
-
case
|
|
468
|
-
c = [ft.iso8859_1, ft.utf8],
|
|
468
|
+
case H.qr:
|
|
469
|
+
c = [ft.iso8859_1, ft.utf8], l = [
|
|
469
470
|
Ot.low,
|
|
470
471
|
Ot.medium,
|
|
471
472
|
Ot.quartile,
|
|
472
473
|
Ot.high
|
|
473
474
|
];
|
|
474
|
-
case
|
|
475
|
-
e = !1, r = !1, n = !1,
|
|
475
|
+
case H.dataMatrix:
|
|
476
|
+
e = !1, r = !1, n = !1, h = !0;
|
|
476
477
|
break;
|
|
477
|
-
case
|
|
478
|
+
case H.ean13:
|
|
478
479
|
e = !1, y = !0;
|
|
479
480
|
break;
|
|
480
|
-
case
|
|
481
|
+
case H.ean8:
|
|
481
482
|
y = !0;
|
|
482
|
-
case
|
|
483
|
-
case
|
|
483
|
+
case H.upca:
|
|
484
|
+
case H.upce:
|
|
484
485
|
e = !1;
|
|
485
486
|
break;
|
|
486
|
-
case
|
|
487
|
-
case
|
|
487
|
+
case H.code128:
|
|
488
|
+
case H.gs1128:
|
|
488
489
|
c = [
|
|
489
490
|
ft.code128a,
|
|
490
491
|
ft.code128b,
|
|
491
492
|
ft.code128c
|
|
492
493
|
];
|
|
493
494
|
break;
|
|
494
|
-
case
|
|
495
|
+
case H.code39:
|
|
495
496
|
p = !0;
|
|
496
497
|
break;
|
|
497
498
|
}
|
|
@@ -500,72 +501,96 @@ class Ee {
|
|
|
500
501
|
allowBarHeight: r,
|
|
501
502
|
allowQuietZone: !0,
|
|
502
503
|
allowedCharacterSets: c,
|
|
503
|
-
allowedErrorCorrectionLevels:
|
|
504
|
+
allowedErrorCorrectionLevels: l,
|
|
504
505
|
allowToggleText: e,
|
|
505
|
-
quietZoneAlwaysCombined:
|
|
506
|
+
quietZoneAlwaysCombined: h,
|
|
506
507
|
allowToggleLightMarginIndicator: y,
|
|
507
508
|
allowToggleDrawStartAndEndChar: p
|
|
508
509
|
};
|
|
509
|
-
}, g(this,
|
|
510
|
+
}, g(this, U, i);
|
|
510
511
|
}
|
|
511
512
|
}
|
|
512
|
-
|
|
513
|
-
var T = /* @__PURE__ */ ((s) => (s.rgb = "rgb", s.hex = "hex", s.cmyk = "cmyk", s.spotCmyk = "spotCmyk", s.spotRgb = "spotRgb", s.spotHex = "spotHex", s))(T || {}),
|
|
514
|
-
const
|
|
515
|
-
const i =
|
|
516
|
-
return
|
|
517
|
-
...
|
|
518
|
-
...!
|
|
513
|
+
U = new WeakMap();
|
|
514
|
+
var T = /* @__PURE__ */ ((s) => (s.rgb = "rgb", s.hex = "hex", s.cmyk = "cmyk", s.spotCmyk = "spotCmyk", s.spotRgb = "spotRgb", s.spotHex = "spotHex", s))(T || {}), W = /* @__PURE__ */ ((s) => (s.rgb = "rgb", s.hex = "hex", s.cmyk = "cmyk", s.gray = "gray", s.hsl = "hsl", s.spot = "spot", s.spotCMYK = "spotCMYK", s.spotRGB = "spotRGB", s.spotHEX = "spotHEX", s))(W || {}), Xt = /* @__PURE__ */ ((s) => (s.local = "local", s.brandKit = "brandKit", s.stylekit = "brandKit", s))(Xt || {});
|
|
515
|
+
const Ne = (s) => s.type === T.hex, te = (s) => s.type === T.spotHex, ar = (s) => s.type === T.spotRgb, ir = (s) => s.type === T.spotCmyk, or = (s) => ar(s) || ir(s) || te(s), cr = (s) => {
|
|
516
|
+
const i = hr(s.type);
|
|
517
|
+
return or(s) ? {
|
|
518
|
+
...te(s) && { value: s.displayValue },
|
|
519
|
+
...!te(s) && { ...s.displayValue },
|
|
519
520
|
spotName: s.value,
|
|
520
521
|
type: i
|
|
521
522
|
} : {
|
|
522
|
-
...
|
|
523
|
-
...!
|
|
523
|
+
...Ne(s) && { value: s.value },
|
|
524
|
+
...!Ne(s) && { ...s.value },
|
|
524
525
|
type: i
|
|
525
526
|
};
|
|
526
|
-
},
|
|
527
|
-
const {
|
|
527
|
+
}, xe = (s, i, t, e) => {
|
|
528
|
+
const {
|
|
529
|
+
brandKitColorGuid: r,
|
|
530
|
+
brandKitFontFamilyGuid: n,
|
|
531
|
+
fontStyleId: c,
|
|
532
|
+
textStrokeColorGuid: l,
|
|
533
|
+
textStrokeColorApplied: h,
|
|
534
|
+
textStrokeWidth: y,
|
|
535
|
+
...p
|
|
536
|
+
} = s;
|
|
528
537
|
return {
|
|
529
|
-
...Object.keys(
|
|
538
|
+
...Object.keys(p).reduce((S, f) => ({ ...S, [f]: { value: s[f] } }), {}),
|
|
530
539
|
...i && {
|
|
531
540
|
color: {
|
|
532
541
|
value: {
|
|
533
542
|
id: i.id,
|
|
534
543
|
color: i.color,
|
|
535
|
-
type:
|
|
536
|
-
isApplied:
|
|
544
|
+
type: Xt.brandKit,
|
|
545
|
+
isApplied: p.fillColorApplied
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
...t && {
|
|
550
|
+
strokeColor: {
|
|
551
|
+
value: {
|
|
552
|
+
id: t.id,
|
|
553
|
+
color: t.color,
|
|
554
|
+
type: Xt.brandKit,
|
|
555
|
+
isApplied: h || !1
|
|
537
556
|
}
|
|
557
|
+
},
|
|
558
|
+
strokeColorApplied: {
|
|
559
|
+
value: h || !1
|
|
560
|
+
},
|
|
561
|
+
strokeWidth: {
|
|
562
|
+
value: y != null ? y.toString() : y
|
|
538
563
|
}
|
|
539
564
|
},
|
|
540
565
|
fontKey: {
|
|
541
|
-
value:
|
|
566
|
+
value: e ?? null
|
|
542
567
|
}
|
|
543
568
|
};
|
|
544
|
-
},
|
|
569
|
+
}, hr = (s) => {
|
|
545
570
|
switch (s) {
|
|
546
571
|
case T.rgb:
|
|
547
|
-
return
|
|
572
|
+
return W.rgb;
|
|
548
573
|
case T.cmyk:
|
|
549
|
-
return
|
|
574
|
+
return W.cmyk;
|
|
550
575
|
case T.hex:
|
|
551
|
-
return
|
|
576
|
+
return W.hex;
|
|
552
577
|
case T.spotRgb:
|
|
553
|
-
return
|
|
578
|
+
return W.spotRGB;
|
|
554
579
|
case T.spotCmyk:
|
|
555
|
-
return
|
|
580
|
+
return W.spotCMYK;
|
|
556
581
|
case T.spotHex:
|
|
557
|
-
return
|
|
582
|
+
return W.spotHEX;
|
|
558
583
|
}
|
|
559
|
-
},
|
|
584
|
+
}, Wt = (s, i) => {
|
|
560
585
|
if (!(s === null || i === void 0))
|
|
561
586
|
return (s || []).find((t) => t.id === i);
|
|
562
|
-
},
|
|
587
|
+
}, Me = (s, i, t) => {
|
|
563
588
|
var e, r;
|
|
564
589
|
if (!(s === null || i === void 0 || t === void 0))
|
|
565
590
|
return (r = (e = (s || []).find((n) => n.id === i)) == null ? void 0 : e.fontStyles.find((n) => n.fontStyleId === t)) == null ? void 0 : r.id;
|
|
566
591
|
};
|
|
567
|
-
var
|
|
568
|
-
class
|
|
592
|
+
var L;
|
|
593
|
+
class Re {
|
|
569
594
|
/**
|
|
570
595
|
* @ignore
|
|
571
596
|
*/
|
|
@@ -573,45 +598,45 @@ class Me {
|
|
|
573
598
|
/**
|
|
574
599
|
* @ignore
|
|
575
600
|
*/
|
|
576
|
-
u(this,
|
|
577
|
-
this.getId = async () => (await a(this,
|
|
578
|
-
const e = await this.getId(), r = await this.getVersion(), n = await this.getName(), c = this.colorStyleController.getAll(),
|
|
601
|
+
u(this, L);
|
|
602
|
+
this.getId = async () => (await a(this, L)).getBrandKitId().then((r) => o(r)), this.getVersion = async () => (await a(this, L)).getBrandKitVersion().then((r) => o(r)), this.getName = async () => (await a(this, L)).getBrandKitName().then((r) => o(r)), this.rename = async (e) => (await a(this, L)).renameBrandKit(e).then((n) => o(n)), this.updateIdAndVersion = async (e, r) => (await a(this, L)).updateBrandKitIdAndVersion(e, r).then((c) => o(c)), this.get = async () => {
|
|
603
|
+
const e = await this.getId(), r = await this.getVersion(), n = await this.getName(), c = this.colorStyleController.getAll(), l = this.fontController.getFontFamilies(), h = this.characterStyleController.getAll(), y = this.paragraphStyleController.getAll(), p = this.getAllMedia(), [I, S, f, b, A] = await Promise.all([
|
|
579
604
|
c,
|
|
580
|
-
h,
|
|
581
|
-
y,
|
|
582
605
|
l,
|
|
606
|
+
y,
|
|
607
|
+
h,
|
|
583
608
|
p
|
|
584
|
-
]),
|
|
609
|
+
]), v = {
|
|
585
610
|
id: e.parsedData,
|
|
586
611
|
brandKit: {
|
|
587
612
|
id: e.parsedData,
|
|
588
613
|
name: n.parsedData,
|
|
589
614
|
lastModifiedDate: r.parsedData,
|
|
590
|
-
colors:
|
|
591
|
-
fonts:
|
|
592
|
-
paragraphStyles:
|
|
615
|
+
colors: I.parsedData,
|
|
616
|
+
fonts: S.parsedData,
|
|
617
|
+
paragraphStyles: f.parsedData,
|
|
593
618
|
characterStyles: b.parsedData,
|
|
594
|
-
media:
|
|
619
|
+
media: A.parsedData
|
|
595
620
|
}
|
|
596
621
|
}, N = {
|
|
597
622
|
success: !0,
|
|
598
|
-
data: JSON.stringify(
|
|
599
|
-
parsedData:
|
|
623
|
+
data: JSON.stringify(v),
|
|
624
|
+
parsedData: v,
|
|
600
625
|
status: 200
|
|
601
626
|
};
|
|
602
627
|
return o(N);
|
|
603
|
-
}, this.getAllMedia = async () => (await a(this,
|
|
604
|
-
const r = (await this.colorStyleController.getAll()).parsedData || [], c = (await this.paragraphStyleController.getAll()).parsedData || [],
|
|
605
|
-
await this.undoManagerController.record("brandKit.remove", async (
|
|
628
|
+
}, this.getAllMedia = async () => (await a(this, L)).getAllBrandKitMedia().then((r) => o(r)), this.addMedia = async (e, r, n) => (await a(this, L)).addBrandKitMedia(e, r, n).then((l) => o(l)), this.updateMedia = async (e, r, n) => (await a(this, L)).updateBrandKitMedia(e, r, n).then((l) => o(l)), this.renameMedia = async (e, r) => (await a(this, L)).renameBrandKitMedia(e, r).then((c) => o(c)), this.removeMedia = async (e) => (await a(this, L)).removeBrandKitMedia(e).then((n) => o(n)), this.remove = async () => {
|
|
629
|
+
const r = (await this.colorStyleController.getAll()).parsedData || [], c = (await this.paragraphStyleController.getAll()).parsedData || [], h = (await this.characterStyleController.getAll()).parsedData || [], p = (await this.fontController.getFontFamilies()).parsedData || [], S = (await this.getAllMedia()).parsedData || [];
|
|
630
|
+
await this.undoManagerController.record("brandKit.remove", async (f) => {
|
|
606
631
|
for (const b of r)
|
|
607
|
-
await
|
|
632
|
+
await f.colorStyle.remove(b.id);
|
|
608
633
|
for (const b of c)
|
|
609
|
-
await
|
|
610
|
-
for (const b of
|
|
611
|
-
await
|
|
634
|
+
await f.paragraphStyle.remove(b.id);
|
|
635
|
+
for (const b of h)
|
|
636
|
+
await f.characterStyle.remove(b.id);
|
|
612
637
|
for (const b of p)
|
|
613
|
-
await
|
|
614
|
-
for (const b of
|
|
638
|
+
await f.font.removeFontFamily(b.id);
|
|
639
|
+
for (const b of S)
|
|
615
640
|
await this.removeMedia(b.name);
|
|
616
641
|
});
|
|
617
642
|
}, this.set = async (e) => {
|
|
@@ -630,19 +655,19 @@ class Me {
|
|
|
630
655
|
}
|
|
631
656
|
};
|
|
632
657
|
return await this.undoManagerController.record("brandKit.set", async (n) => {
|
|
633
|
-
const c = await this.setColors(e, n),
|
|
658
|
+
const c = await this.setColors(e, n), l = await this.setFonts(e, n), { parsedData: h = [] } = await n.colorStyle.getAll(), { parsedData: y } = await n.font.getFontFamilies();
|
|
634
659
|
await this.setParagraphStyles(e, n, {
|
|
635
|
-
localColors:
|
|
660
|
+
localColors: h,
|
|
636
661
|
localFonts: y,
|
|
637
662
|
localColorGuidMap: c,
|
|
638
|
-
localFontGuidMap:
|
|
663
|
+
localFontGuidMap: l
|
|
639
664
|
}), await this.setCharacterStyles(e, n, {
|
|
640
|
-
localColors:
|
|
665
|
+
localColors: h,
|
|
641
666
|
localFonts: y,
|
|
642
667
|
localColorGuidMap: c,
|
|
643
|
-
localFontGuidMap:
|
|
668
|
+
localFontGuidMap: l
|
|
644
669
|
}), await this.setMedia(e);
|
|
645
|
-
const { parsedData: p } = await n.paragraphStyle.getAll(), { parsedData:
|
|
670
|
+
const { parsedData: p } = await n.paragraphStyle.getAll(), { parsedData: I } = await n.characterStyle.getAll(), { parsedData: S } = await this.getAllMedia();
|
|
646
671
|
await n.brandKit.updateIdAndVersion(e.id, e.brandKit.lastModifiedDate), await n.brandKit.rename(e.brandKit.name), r = {
|
|
647
672
|
success: !0,
|
|
648
673
|
status: 200,
|
|
@@ -650,15 +675,15 @@ class Me {
|
|
|
650
675
|
id: e.id,
|
|
651
676
|
version: e.brandKit.lastModifiedDate,
|
|
652
677
|
name: e.brandKit.name,
|
|
653
|
-
colors:
|
|
678
|
+
colors: h || [],
|
|
654
679
|
fonts: y || [],
|
|
655
680
|
paragraphStyles: p || [],
|
|
656
|
-
characterStyles:
|
|
657
|
-
media:
|
|
681
|
+
characterStyles: I || [],
|
|
682
|
+
media: S || []
|
|
658
683
|
}
|
|
659
684
|
};
|
|
660
685
|
}), r;
|
|
661
|
-
}, g(this,
|
|
686
|
+
}, g(this, L, i), this.colorStyleController = t.colorStyle, this.fontController = t.font, this.mediaController = t.mediaConnector, this.paragraphStyleController = t.paragraphStyle, this.characterStyleController = t.characterStyle, this.undoManagerController = t.undoManager;
|
|
662
687
|
}
|
|
663
688
|
async setColors(i, t) {
|
|
664
689
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -666,7 +691,7 @@ class Me {
|
|
|
666
691
|
const { parsedData: n } = await t.colorStyle.create();
|
|
667
692
|
if (!n) continue;
|
|
668
693
|
e.set(r.guid, n);
|
|
669
|
-
const c =
|
|
694
|
+
const c = cr(r);
|
|
670
695
|
await t.colorStyle.rename(n, r.name), await t.colorStyle.update(n, c);
|
|
671
696
|
}
|
|
672
697
|
return e;
|
|
@@ -676,39 +701,41 @@ class Me {
|
|
|
676
701
|
for (const n of i.brandKit.fonts || []) {
|
|
677
702
|
const { parsedData: c = [] } = await t.fontConnector.detail(e, n.fontFamilyId);
|
|
678
703
|
if (!(c != null && c[0])) throw new Error(`No font styles for family ID: ${n.fontFamilyId}`);
|
|
679
|
-
const { parsedData:
|
|
704
|
+
const { parsedData: l } = await t.font.addFontFamily(e, {
|
|
680
705
|
name: c[0].familyName,
|
|
681
706
|
fontFamilyId: n.fontFamilyId
|
|
682
707
|
});
|
|
683
|
-
|
|
708
|
+
l && r.set(n.fontFamilyBrandKitGuid, l);
|
|
684
709
|
}
|
|
685
710
|
return r;
|
|
686
711
|
}
|
|
687
712
|
async setParagraphStyles(i, t, e) {
|
|
688
|
-
const { localColors: r, localFonts: n, localColorGuidMap: c, localFontGuidMap:
|
|
689
|
-
for (const
|
|
690
|
-
const y = c.get(
|
|
691
|
-
if (!
|
|
692
|
-
throw new Error(`Paragraph style could not be created with an empty font family: ${
|
|
693
|
-
const
|
|
694
|
-
if (!
|
|
695
|
-
const { parsedData:
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
713
|
+
const { localColors: r, localFonts: n, localColorGuidMap: c, localFontGuidMap: l } = e;
|
|
714
|
+
for (const h of i.brandKit.paragraphStyles || []) {
|
|
715
|
+
const y = c.get(h.brandKitColorGuid), p = c.get(h.textStrokeColorGuid), I = l.get(h.brandKitFontFamilyGuid), S = Me(n, I, h.fontStyleId);
|
|
716
|
+
if (!I || !S)
|
|
717
|
+
throw new Error(`Paragraph style could not be created with an empty font family: ${h.name}`);
|
|
718
|
+
const f = Wt(r, y), b = Wt(r, p);
|
|
719
|
+
if (!f) throw new Error(`Paragraph style could not be created with an empty color: ${h.name}`);
|
|
720
|
+
const { parsedData: A } = await t.paragraphStyle.create(), v = xe(
|
|
721
|
+
h,
|
|
722
|
+
f,
|
|
723
|
+
b,
|
|
724
|
+
`${S}`
|
|
699
725
|
);
|
|
700
|
-
await t.paragraphStyle.rename(
|
|
726
|
+
await t.paragraphStyle.rename(A, h.name), await t.paragraphStyle.update(A, v);
|
|
701
727
|
}
|
|
702
728
|
}
|
|
703
729
|
async setCharacterStyles(i, t, e) {
|
|
704
|
-
const { localColors: r, localFonts: n, localColorGuidMap: c, localFontGuidMap:
|
|
705
|
-
for (const
|
|
706
|
-
const y =
|
|
707
|
-
|
|
730
|
+
const { localColors: r, localFonts: n, localColorGuidMap: c, localFontGuidMap: l } = e;
|
|
731
|
+
for (const h of i.brandKit.characterStyles || []) {
|
|
732
|
+
const y = h.brandKitColorGuid ? c.get(h.brandKitColorGuid) : void 0, p = h.textStrokeColorGuid ? c.get(h.textStrokeColorGuid) : void 0, I = h.brandKitFontFamilyGuid ? l.get(h.brandKitFontFamilyGuid) : void 0, S = Wt(r, y), f = Wt(r, p), b = Me(n, I, h.fontStyleId), { parsedData: A } = await t.characterStyle.create(), v = xe(
|
|
733
|
+
h,
|
|
734
|
+
S,
|
|
708
735
|
f,
|
|
709
|
-
|
|
736
|
+
b
|
|
710
737
|
);
|
|
711
|
-
await t.characterStyle.rename(
|
|
738
|
+
await t.characterStyle.rename(A, h.name), await t.characterStyle.update(A, v);
|
|
712
739
|
}
|
|
713
740
|
}
|
|
714
741
|
async setMedia(i) {
|
|
@@ -716,9 +743,9 @@ class Me {
|
|
|
716
743
|
await this.addMedia(t.name, t.mediaConnectorId, t.mediaId);
|
|
717
744
|
}
|
|
718
745
|
}
|
|
719
|
-
|
|
720
|
-
var
|
|
721
|
-
class
|
|
746
|
+
L = new WeakMap();
|
|
747
|
+
var tt;
|
|
748
|
+
class ee {
|
|
722
749
|
/**
|
|
723
750
|
* @ignore
|
|
724
751
|
*/
|
|
@@ -726,13 +753,13 @@ class Qt {
|
|
|
726
753
|
/**
|
|
727
754
|
* @ignore
|
|
728
755
|
*/
|
|
729
|
-
u(this,
|
|
730
|
-
this.zoomToPage = async (t, e, r, n, c) => (t !== void 0 && console.warn("id has no effect and will be deprecated in the future"), (await a(this,
|
|
756
|
+
u(this, tt);
|
|
757
|
+
this.zoomToPage = async (t, e, r, n, c) => (t !== void 0 && console.warn("id has no effect and will be deprecated in the future"), (await a(this, tt)).zoomToPage(e, r, n, c).then((h) => o(h))), this.getZoomPercentage = async () => (await a(this, tt)).getZoomPercentage().then((e) => o(e)), this.setZoomPercentage = async (t) => (await a(this, tt)).setZoomPercentage(t).then((r) => o(r)), this.setViewMode = async (t) => (await a(this, tt)).setViewMode(t).then((r) => o(r)), g(this, tt, i);
|
|
731
758
|
}
|
|
732
759
|
}
|
|
733
|
-
|
|
760
|
+
tt = new WeakMap();
|
|
734
761
|
var R;
|
|
735
|
-
class
|
|
762
|
+
class Ve {
|
|
736
763
|
/**
|
|
737
764
|
* @ignore
|
|
738
765
|
*/
|
|
@@ -745,8 +772,8 @@ class xe {
|
|
|
745
772
|
}
|
|
746
773
|
}
|
|
747
774
|
R = new WeakMap();
|
|
748
|
-
var
|
|
749
|
-
class
|
|
775
|
+
var et;
|
|
776
|
+
class Be {
|
|
750
777
|
/**
|
|
751
778
|
* @ignore
|
|
752
779
|
*/
|
|
@@ -754,25 +781,25 @@ class Re {
|
|
|
754
781
|
/**
|
|
755
782
|
* @ignore
|
|
756
783
|
*/
|
|
757
|
-
u(this,
|
|
784
|
+
u(this, et);
|
|
758
785
|
this.copyFrames = async (t) => {
|
|
759
|
-
const r = await (await a(this,
|
|
786
|
+
const r = await (await a(this, et)).copyFrames(t);
|
|
760
787
|
return r.data && await navigator.clipboard.writeText(r.data), o(r);
|
|
761
788
|
}, this.cutFrames = async (t) => {
|
|
762
|
-
const r = await (await a(this,
|
|
789
|
+
const r = await (await a(this, et)).cutFrames(t);
|
|
763
790
|
return r.data && await navigator.clipboard.writeText(r.data), o(r);
|
|
764
791
|
}, this.pasteFrames = async () => {
|
|
765
|
-
const t = await a(this,
|
|
792
|
+
const t = await a(this, et), e = await navigator.clipboard.readText(), r = await t.pasteFrames(e);
|
|
766
793
|
return o(r);
|
|
767
794
|
}, this.getContentType = async () => {
|
|
768
|
-
const t = await a(this,
|
|
795
|
+
const t = await a(this, et), e = await navigator.clipboard.readText(), r = await t.getClipboardContentType(e);
|
|
769
796
|
return o(r);
|
|
770
|
-
}, g(this,
|
|
797
|
+
}, g(this, et, i);
|
|
771
798
|
}
|
|
772
799
|
}
|
|
773
|
-
|
|
800
|
+
et = new WeakMap();
|
|
774
801
|
var Jt;
|
|
775
|
-
class
|
|
802
|
+
class Je {
|
|
776
803
|
/**
|
|
777
804
|
* @ignore
|
|
778
805
|
*/
|
|
@@ -786,7 +813,7 @@ class Ve {
|
|
|
786
813
|
}
|
|
787
814
|
Jt = new WeakMap();
|
|
788
815
|
var V;
|
|
789
|
-
class
|
|
816
|
+
class ke {
|
|
790
817
|
/**
|
|
791
818
|
* @ignore
|
|
792
819
|
*/
|
|
@@ -797,40 +824,40 @@ class Be {
|
|
|
797
824
|
u(this, V);
|
|
798
825
|
this.getAll = async () => (await a(this, V)).getColors().then((e) => o(e)), this.getById = async (t) => (await a(this, V)).getColorById(t).then((r) => o(r)), this.create = async () => (await a(this, V)).createColor().then((e) => o(e)), this.duplicate = async (t) => (await a(this, V)).duplicateColor(t).then((r) => o(r)), this.move = async (t, e) => (await a(this, V)).moveColors(t, e).then((n) => o(n)), this.rename = async (t, e) => (await a(this, V)).renameColor(t, e).then((n) => o(n)), this.update = async (t, e) => {
|
|
799
826
|
const r = await a(this, V), n = e;
|
|
800
|
-
return n.type ===
|
|
827
|
+
return n.type === W.spot && (n.type = W.spotCMYK), r.updateColor(t, JSON.stringify(n)).then((c) => o(c));
|
|
801
828
|
}, this.remove = async (t) => (await a(this, V)).removeColor(t).then((r) => o(r)), g(this, V, i);
|
|
802
829
|
}
|
|
803
830
|
}
|
|
804
831
|
V = new WeakMap();
|
|
805
|
-
var Rt = /* @__PURE__ */ ((s) => (s[s.file = 0] = "file", s[s.collection = 1] = "collection", s))(Rt || {}),
|
|
806
|
-
class
|
|
832
|
+
var Rt = /* @__PURE__ */ ((s) => (s[s.file = 0] = "file", s[s.collection = 1] = "collection", s))(Rt || {}), se = /* @__PURE__ */ ((s) => (s.LowResolutionWeb = "lowresWeb", s.HighResolutionWeb = "highresWeb", s))(se || {}), Vt = /* @__PURE__ */ ((s) => (s.file = "file", s.collection = "collection", s))(Vt || {}), lr = /* @__PURE__ */ ((s) => (s.media = "media", s.fonts = "fonts", s.data = "data", s))(lr || {}), dr = /* @__PURE__ */ ((s) => (s.name = "name", s.path = "relativePath", s.id = "id", s))(dr || {}), ur = /* @__PURE__ */ ((s) => (s.ascending = "asc", s.descending = "desc", s))(ur || {}), gr = /* @__PURE__ */ ((s) => (s.text = "text", s.boolean = "boolean", s))(gr || {}), yr = /* @__PURE__ */ ((s) => (s.query = "query", s.upload = "upload", s))(yr || {}), Nt = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Nt || {});
|
|
833
|
+
class An {
|
|
807
834
|
constructor(i, t, e, r = "engineToConnector") {
|
|
808
835
|
this.direction = "engineToConnector", this.name = i, this.direction = r, t === "var" ? this.value = `${t}.${e}` : this.value = e;
|
|
809
836
|
}
|
|
810
837
|
}
|
|
811
|
-
var
|
|
812
|
-
const
|
|
838
|
+
var pr = /* @__PURE__ */ ((s) => (s.variable = "var", s.value = "value", s))(pr || {}), Cr = /* @__PURE__ */ ((s) => (s.engineToConnector = "engineToConnector", s.connectorToEngine = "connectorToEngine", s))(Cr || {}), re = /* @__PURE__ */ ((s) => (s.loading = "loading", s.loaded = "loaded", s.running = "running", s.ready = "ready", s.error = "error", s))(re || {}), mr = /* @__PURE__ */ ((s) => (s.stateChanged = "stateChanged", s.authChanged = "authChanged", s.reloadRequired = "reloadRequired", s.unloaded = "unloaded", s))(mr || {});
|
|
839
|
+
const Pn = {
|
|
813
840
|
url: "grafx-media.json",
|
|
814
841
|
source: "local"
|
|
815
842
|
/* local */
|
|
816
843
|
};
|
|
817
|
-
class
|
|
844
|
+
class Fn {
|
|
818
845
|
constructor(i) {
|
|
819
846
|
this.type = "grafxToken", this.token = i;
|
|
820
847
|
}
|
|
821
848
|
}
|
|
822
|
-
class
|
|
849
|
+
class En {
|
|
823
850
|
constructor() {
|
|
824
851
|
this.type = "refreshed";
|
|
825
852
|
}
|
|
826
853
|
}
|
|
827
|
-
var
|
|
828
|
-
class
|
|
854
|
+
var wr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.refreshed = "refreshed", s))(wr || {}), fr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.any = "any", s))(fr || {}), ms = /* @__PURE__ */ ((s) => (s.minDimension = "minDimension", s))(ms || {});
|
|
855
|
+
class Sr extends Error {
|
|
829
856
|
constructor(i, t) {
|
|
830
857
|
super(i), this.type = t;
|
|
831
858
|
}
|
|
832
859
|
}
|
|
833
|
-
class
|
|
860
|
+
class oe {
|
|
834
861
|
constructor() {
|
|
835
862
|
this.makeConnectorSourceForwardsCompatible = (i) => {
|
|
836
863
|
if (i.source != Nt.grafx || this.isSourceMigrated(i))
|
|
@@ -856,8 +883,8 @@ class ne {
|
|
|
856
883
|
}, this.isSourceMigrated = (i) => "id" in i;
|
|
857
884
|
}
|
|
858
885
|
}
|
|
859
|
-
var B, St,
|
|
860
|
-
let
|
|
886
|
+
var B, St, dt, os;
|
|
887
|
+
let Ue = (os = class {
|
|
861
888
|
/**
|
|
862
889
|
* @ignore
|
|
863
890
|
*/
|
|
@@ -867,46 +894,46 @@ let Je = (as = class {
|
|
|
867
894
|
*/
|
|
868
895
|
u(this, B);
|
|
869
896
|
u(this, St);
|
|
870
|
-
u(this,
|
|
897
|
+
u(this, dt);
|
|
871
898
|
this.getById = async (e) => (await a(this, B)).getConnectorById(e).then((n) => o(n)).then((n) => {
|
|
872
899
|
const c = { ...n, parsedData: null };
|
|
873
|
-
return n.parsedData && (c.parsedData = a(this,
|
|
900
|
+
return n.parsedData && (c.parsedData = a(this, dt).makeSingleConnectorBackwardsCompatible(
|
|
874
901
|
n.parsedData,
|
|
875
|
-
a(this, St).get(
|
|
902
|
+
a(this, St).get(Q.GraFxStudioEnvironmentApiUrl)
|
|
876
903
|
)), c;
|
|
877
904
|
}), this.getAllByType = async (e) => (await a(this, B)).getConnectors(e).then((n) => o(n)).then((n) => {
|
|
878
905
|
const c = { ...n, parsedData: null };
|
|
879
|
-
return n.parsedData && (c.parsedData = a(this,
|
|
906
|
+
return n.parsedData && (c.parsedData = a(this, dt).makeMultipleConnectorsBackwardsCompatible(
|
|
880
907
|
n.parsedData,
|
|
881
|
-
a(this, St).get(
|
|
908
|
+
a(this, St).get(Q.GraFxStudioEnvironmentApiUrl)
|
|
882
909
|
)), c;
|
|
883
910
|
}), this.register = async (e) => {
|
|
884
|
-
const r = await a(this, B), n = a(this,
|
|
911
|
+
const r = await a(this, B), n = a(this, dt).makeConnectorSourceForwardsCompatible(e);
|
|
885
912
|
return r.registerConnector(JSON.stringify(n)).then((c) => o(c));
|
|
886
913
|
}, this.unregister = async (e) => (await a(this, B)).unregisterConnector(e).then((n) => o(n)), this.configure = async (e, r) => {
|
|
887
914
|
const n = await a(this, B);
|
|
888
|
-
return await this.waitToBeReady(e), await r(new
|
|
915
|
+
return await this.waitToBeReady(e), await r(new br(e, n)), n.updateConnectorConfiguration(e).then((c) => o(c));
|
|
889
916
|
}, this.getState = async (e) => (await a(this, B)).getConnectorState(e).then((n) => o(n)), this.getOptions = async (e) => (await a(this, B)).getConnectorOptions(e).then((n) => o(n)), this.waitToBeReady = async (e, r = 2e3) => {
|
|
890
917
|
let n = Math.max(r, 500);
|
|
891
918
|
n = Math.min(n, 5e3);
|
|
892
919
|
const c = 100;
|
|
893
|
-
let
|
|
920
|
+
let l = 0;
|
|
894
921
|
try {
|
|
895
|
-
for (;
|
|
896
|
-
const
|
|
897
|
-
if (
|
|
922
|
+
for (; l * c < n; ) {
|
|
923
|
+
const h = await this.getState(e);
|
|
924
|
+
if (h.success && h.parsedData && (h.parsedData.type === re.running || h.parsedData.type === re.ready))
|
|
898
925
|
return o(
|
|
899
926
|
{ data: null, success: !0, error: void 0, status: 0, parsedData: void 0 },
|
|
900
927
|
!1
|
|
901
928
|
);
|
|
902
|
-
await new Promise((y) => setTimeout(y, c)),
|
|
929
|
+
await new Promise((y) => setTimeout(y, c)), l++;
|
|
903
930
|
}
|
|
904
|
-
} catch (
|
|
931
|
+
} catch (h) {
|
|
905
932
|
return o(
|
|
906
933
|
{
|
|
907
934
|
data: null,
|
|
908
935
|
success: !1,
|
|
909
|
-
error: `Error while getting connector state ${
|
|
936
|
+
error: `Error while getting connector state ${h}`,
|
|
910
937
|
status: 5e4,
|
|
911
938
|
parsedData: void 0
|
|
912
939
|
},
|
|
@@ -924,13 +951,13 @@ let Je = (as = class {
|
|
|
924
951
|
!1
|
|
925
952
|
);
|
|
926
953
|
}, this.updateMappings = async (e, r) => await this.configure(e, async (n) => {
|
|
927
|
-
const { parsedData: c } = await this.getMappings(e),
|
|
954
|
+
const { parsedData: c } = await this.getMappings(e), l = (c == null ? void 0 : c.filter(
|
|
928
955
|
(p) => !r.some(
|
|
929
|
-
(
|
|
956
|
+
(I) => I.name === p.name && I.direction === p.direction
|
|
930
957
|
)
|
|
931
|
-
)) ?? [],
|
|
958
|
+
)) ?? [], h = r.filter((p) => p.name !== "" && p.value !== ""), y = [...l, ...h];
|
|
932
959
|
await n.setMappings(y);
|
|
933
|
-
}), g(this, B, i), g(this, St, t), g(this,
|
|
960
|
+
}), g(this, B, i), g(this, St, t), g(this, dt, new oe());
|
|
934
961
|
}
|
|
935
962
|
async getMappings(i, t) {
|
|
936
963
|
return (await a(this, B)).getConnectorMappings(i).then((r) => o(r)).then(
|
|
@@ -943,9 +970,9 @@ let Je = (as = class {
|
|
|
943
970
|
}
|
|
944
971
|
);
|
|
945
972
|
}
|
|
946
|
-
}, B = new WeakMap(), St = new WeakMap(),
|
|
947
|
-
var
|
|
948
|
-
class
|
|
973
|
+
}, B = new WeakMap(), St = new WeakMap(), dt = new WeakMap(), os);
|
|
974
|
+
var ut, gt;
|
|
975
|
+
class br {
|
|
949
976
|
/**
|
|
950
977
|
* @ignore
|
|
951
978
|
*/
|
|
@@ -953,22 +980,22 @@ class wr {
|
|
|
953
980
|
/**
|
|
954
981
|
* @ignore
|
|
955
982
|
*/
|
|
956
|
-
u(this, dt);
|
|
957
983
|
u(this, ut);
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
984
|
+
u(this, gt);
|
|
985
|
+
this.setOptions = async (e) => a(this, gt).setConnectorOptions(a(this, ut), JSON.stringify(e)).then((r) => o(r)), this.setMappings = async (e) => {
|
|
986
|
+
const r = await a(this, gt).setConnectorMappings(
|
|
987
|
+
a(this, ut),
|
|
961
988
|
e.map(function(n) {
|
|
962
989
|
return JSON.stringify(n);
|
|
963
990
|
})
|
|
964
991
|
);
|
|
965
992
|
return o(r);
|
|
966
|
-
}, this.setHttpHeader = async (e, r) => a(this,
|
|
993
|
+
}, this.setHttpHeader = async (e, r) => a(this, gt).connectorAuthenticationSetHttpHeader(a(this, ut), e, r).then((n) => o(n)), g(this, ut, i), g(this, gt, t);
|
|
967
994
|
}
|
|
968
995
|
}
|
|
969
|
-
|
|
970
|
-
var
|
|
971
|
-
class
|
|
996
|
+
ut = new WeakMap(), gt = new WeakMap();
|
|
997
|
+
var st, kt;
|
|
998
|
+
class Ge {
|
|
972
999
|
/**
|
|
973
1000
|
* @ignore
|
|
974
1001
|
*/
|
|
@@ -976,22 +1003,22 @@ class Ue {
|
|
|
976
1003
|
/**
|
|
977
1004
|
* @ignore
|
|
978
1005
|
*/
|
|
979
|
-
u(this,
|
|
980
|
-
u(this,
|
|
981
|
-
this.getPage = async (e, r, n = {}) => (await a(this,
|
|
982
|
-
const
|
|
983
|
-
return
|
|
984
|
-
data:
|
|
985
|
-
(y) => a(this,
|
|
1006
|
+
u(this, st);
|
|
1007
|
+
u(this, kt);
|
|
1008
|
+
this.getPage = async (e, r, n = {}) => (await a(this, st)).dataConnectorGetPage(e, JSON.stringify(r), JSON.stringify(n)).then((l) => o(l)).then((l) => {
|
|
1009
|
+
const h = { ...l, parsedData: null };
|
|
1010
|
+
return l.parsedData && (h.parsedData = {
|
|
1011
|
+
data: l.parsedData.data.map(
|
|
1012
|
+
(y) => a(this, kt).mapEngineToDataItem(y)
|
|
986
1013
|
),
|
|
987
|
-
continuationToken:
|
|
988
|
-
}),
|
|
989
|
-
}), this.getModel = async (e, r = {}) => (await a(this,
|
|
1014
|
+
continuationToken: l.parsedData.continuationToken
|
|
1015
|
+
}), h;
|
|
1016
|
+
}), this.getModel = async (e, r = {}) => (await a(this, st)).dataConnectorGetModel(e, JSON.stringify(r)).then((c) => o(c)), this.getConfigurationOptions = async (e) => (await a(this, st)).dataConnectorGetConfigurationOptions(e).then((n) => o(n)), this.getCapabilities = async (e) => (await a(this, st)).dataConnectorGetCapabilities(e).then((n) => o(n)), g(this, st, i), g(this, kt, t);
|
|
990
1017
|
}
|
|
991
1018
|
}
|
|
992
|
-
|
|
993
|
-
var
|
|
994
|
-
class
|
|
1019
|
+
st = new WeakMap(), kt = new WeakMap();
|
|
1020
|
+
var rt, Ut;
|
|
1021
|
+
class Te {
|
|
995
1022
|
/**
|
|
996
1023
|
* @ignore
|
|
997
1024
|
*/
|
|
@@ -999,17 +1026,17 @@ class ke {
|
|
|
999
1026
|
/**
|
|
1000
1027
|
* @ignore
|
|
1001
1028
|
*/
|
|
1002
|
-
u(this,
|
|
1003
|
-
u(this,
|
|
1004
|
-
this.setDataSource = async (e) => (await a(this,
|
|
1005
|
-
const r = await a(this,
|
|
1029
|
+
u(this, rt);
|
|
1030
|
+
u(this, Ut);
|
|
1031
|
+
this.setDataSource = async (e) => (await a(this, rt)).setDataSource(e).then((n) => o(n)), this.getDataSource = async () => (await a(this, rt)).getDataSource().then((r) => o(r)), this.removeDataSource = async () => (await a(this, rt)).removeDataSource().then((r) => o(r)), this.setDataRow = async (e) => {
|
|
1032
|
+
const r = await a(this, rt), n = a(this, Ut).mapDataItemToEngine(e);
|
|
1006
1033
|
return r.setDataRow(JSON.stringify(n)).then((c) => o(c));
|
|
1007
|
-
}, g(this,
|
|
1034
|
+
}, g(this, rt, i), g(this, Ut, t);
|
|
1008
1035
|
}
|
|
1009
1036
|
}
|
|
1010
|
-
|
|
1011
|
-
var
|
|
1012
|
-
class
|
|
1037
|
+
rt = new WeakMap(), Ut = new WeakMap();
|
|
1038
|
+
var nt;
|
|
1039
|
+
class He {
|
|
1013
1040
|
/**
|
|
1014
1041
|
* @ignore
|
|
1015
1042
|
*/
|
|
@@ -1017,13 +1044,13 @@ class Te {
|
|
|
1017
1044
|
/**
|
|
1018
1045
|
* @ignore
|
|
1019
1046
|
*/
|
|
1020
|
-
u(this,
|
|
1021
|
-
this.getAllLogs = async () => (await a(this,
|
|
1047
|
+
u(this, nt);
|
|
1048
|
+
this.getAllLogs = async () => (await a(this, nt)).getLogs().then((e) => o(e)), this.toggleDebugPanel = async () => (await a(this, nt)).toggleDebugPanel().then((e) => o(e)), this.enableDebug = async () => (await a(this, nt)).enableDebug().then((e) => o(e)), this.disableDebug = async () => (await a(this, nt)).disableDebug().then((e) => o(e)), g(this, nt, i);
|
|
1022
1049
|
}
|
|
1023
1050
|
}
|
|
1024
|
-
|
|
1025
|
-
var
|
|
1026
|
-
class
|
|
1051
|
+
nt = new WeakMap();
|
|
1052
|
+
var yt;
|
|
1053
|
+
class _e {
|
|
1027
1054
|
/**
|
|
1028
1055
|
* @ignore
|
|
1029
1056
|
*/
|
|
@@ -1031,30 +1058,30 @@ class Ge {
|
|
|
1031
1058
|
/**
|
|
1032
1059
|
* @ignore
|
|
1033
1060
|
*/
|
|
1034
|
-
u(this,
|
|
1035
|
-
this.getCurrentState = async () => (await a(this,
|
|
1036
|
-
const r = await a(this,
|
|
1061
|
+
u(this, yt);
|
|
1062
|
+
this.getCurrentState = async () => (await a(this, yt)).getCurrentDocumentState().then((e) => o(e)), this.load = async (t, e = { keepConnectors: !1 }) => {
|
|
1063
|
+
const r = await a(this, yt), n = typeof t != "string" ? JSON.stringify(t) : t;
|
|
1037
1064
|
return r.loadDocument(n, JSON.stringify(e)).then((c) => o(c));
|
|
1038
1065
|
}, this.createAndLoad = async (t) => {
|
|
1039
|
-
const e = await a(this,
|
|
1066
|
+
const e = await a(this, yt), r = JSON.stringify(t);
|
|
1040
1067
|
return e.createAndLoadDocument(r).then((n) => o(n));
|
|
1041
|
-
}, g(this,
|
|
1068
|
+
}, g(this, yt, i);
|
|
1042
1069
|
}
|
|
1043
1070
|
}
|
|
1044
|
-
|
|
1045
|
-
var
|
|
1046
|
-
class
|
|
1071
|
+
yt = new WeakMap();
|
|
1072
|
+
var Ir = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Ir || {}), jt = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(jt || {}), vr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s))(vr || {}), Ar = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Ar || {}), Pr = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Pr || {}), Fr = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(Fr || {}), Er = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))(Er || {}), Dr = /* @__PURE__ */ ((s) => (s.normal = "normal", s.screen = "screen", s.overlay = "overlay", s.darken = "darken", s.lighten = "lighten", s.colorDodge = "colorDodge", s.colorBurn = "colorBurn", s.hardLight = "hardLight", s.softLight = "softLight", s.difference = "difference", s.exclusion = "exclusion", s.multiply = "multiply", s.hue = "hue", s.saturation = "saturation", s.color = "color", s.luminosity = "luminosity", s))(Dr || {}), Lr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(Lr || {}), Or = /* @__PURE__ */ ((s) => (s.topLeft = "topLeft", s.topCenter = "topCenter", s.topRight = "topRight", s.centerLeft = "centerLeft", s.center = "center", s.centerRight = "centerRight", s.bottomLeft = "bottomLeft", s.bottomCenter = "bottomCenter", s.bottomRight = "bottomRight", s))(Or || {}), Nr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(Nr || {}), xr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(xr || {}), Mr = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))(Mr || {}), Rr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Rr || {});
|
|
1073
|
+
class Ln {
|
|
1047
1074
|
constructor() {
|
|
1048
1075
|
this.type = "page";
|
|
1049
1076
|
}
|
|
1050
1077
|
}
|
|
1051
|
-
class
|
|
1078
|
+
class On {
|
|
1052
1079
|
constructor(i, t) {
|
|
1053
1080
|
this.type = "frame", this.frameId = i, this.edge = t;
|
|
1054
1081
|
}
|
|
1055
1082
|
}
|
|
1056
|
-
var
|
|
1057
|
-
class
|
|
1083
|
+
var ws = /* @__PURE__ */ ((s) => (s.frameCrop = "frameCrop", s.assetCrop = "assetCrop", s))(ws || {}), J;
|
|
1084
|
+
class $e {
|
|
1058
1085
|
/**
|
|
1059
1086
|
* @ignore
|
|
1060
1087
|
*/
|
|
@@ -1064,14 +1091,14 @@ class He {
|
|
|
1064
1091
|
*/
|
|
1065
1092
|
u(this, J);
|
|
1066
1093
|
this.insertImageVariableToFrame = async (t, e) => {
|
|
1067
|
-
const r = await a(this, J), n = { id: e, type:
|
|
1094
|
+
const r = await a(this, J), n = { id: e, type: jt.variable };
|
|
1068
1095
|
return r.setImageSource(t, JSON.stringify(n)).then((c) => o(c));
|
|
1069
1096
|
}, this.insertTextVariable = async (t) => (await a(this, J)).insertTextVariable(t).then((r) => o(r)), this.enterTextEditMode = async (t) => (await a(this, J)).enterTextEditMode(t).then((r) => o(r)), this.exitTextEditMode = async () => (await a(this, J)).exitTextEditMode().then((e) => o(e)), this.getText = async (t, e) => (await a(this, J)).getTextByFrameId(t, e).then((n) => o(n)), this.setText = async (t, e) => (await a(this, J)).setTextByFrameId(t, e).then((n) => o(n)), this.selectText = async (t, e, r) => (await a(this, J)).selectTextById(t, e, r).then((c) => o(c)), this.addCustomUndoData = async (t, e, r) => (await a(this, J)).setCustomUndoData(t, e, r ?? !1).then((c) => o(c)), g(this, J, i);
|
|
1070
1097
|
}
|
|
1071
1098
|
}
|
|
1072
1099
|
J = new WeakMap();
|
|
1073
|
-
var
|
|
1074
|
-
class
|
|
1100
|
+
var at, bt;
|
|
1101
|
+
class Ke {
|
|
1075
1102
|
/**
|
|
1076
1103
|
* @ignore
|
|
1077
1104
|
*/
|
|
@@ -1079,17 +1106,17 @@ class _e {
|
|
|
1079
1106
|
/**
|
|
1080
1107
|
* @ignore
|
|
1081
1108
|
*/
|
|
1082
|
-
u(this,
|
|
1109
|
+
u(this, at);
|
|
1083
1110
|
u(this, bt);
|
|
1084
|
-
this.query = async (t, e, r = {}) => (await a(this,
|
|
1111
|
+
this.query = async (t, e, r = {}) => (await a(this, at)).fontConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((c) => o(c)), this.detail = async (t, e, r = {}) => (await a(this, at)).fontConnectorDetail(t, e, JSON.stringify(r)).then((c) => o(c)), this.download = async (t, e, r = {}) => (await a(this, bt)).fontConnectorDownload(t, e, JSON.stringify(r)).then((c) => c ?? c), this.preview = async (t, e, r, n = {}) => (await a(this, bt)).fontConnectorPreview(t, e, r, JSON.stringify(n)).then((l) => l ?? l), this.getConfigurationOptions = async (t) => (await a(this, at)).fontConnectorGetConfigurationOptions(t).then((r) => o(r)), this.getCapabilities = async (t) => (await a(this, at)).fontConnectorGetCapabilities(t).then((r) => o(r)), this.parseDeprecatedFontType = (t) => {
|
|
1085
1112
|
if (t === Rt.file) return Vt.file;
|
|
1086
1113
|
if (t === Rt.collection) return Vt.collection;
|
|
1087
|
-
}, g(this,
|
|
1114
|
+
}, g(this, at, i), g(this, bt, i);
|
|
1088
1115
|
}
|
|
1089
1116
|
}
|
|
1090
|
-
|
|
1091
|
-
var
|
|
1092
|
-
class
|
|
1117
|
+
at = new WeakMap(), bt = new WeakMap();
|
|
1118
|
+
var F;
|
|
1119
|
+
class ze {
|
|
1093
1120
|
/**
|
|
1094
1121
|
* @ignore
|
|
1095
1122
|
*/
|
|
@@ -1097,13 +1124,13 @@ class $e {
|
|
|
1097
1124
|
/**
|
|
1098
1125
|
* @ignore
|
|
1099
1126
|
*/
|
|
1100
|
-
u(this,
|
|
1101
|
-
this.addFontFamily = async (t, e) => (await a(this,
|
|
1127
|
+
u(this, F);
|
|
1128
|
+
this.addFontFamily = async (t, e) => (await a(this, F)).addFontFamily(t, JSON.stringify(e)).then((n) => o(n)), this.removeFontFamily = async (t) => (await a(this, F)).removeFontFamily(t).then((r) => o(r)), this.addFontStyle = async (t, e) => (await a(this, F)).addFontStyle(t, JSON.stringify(e)).then((n) => o(n)), this.removeFontStyle = async (t) => (await a(this, F)).removeFontStyle(t).then((r) => o(r)), this.getFontFamilies = async () => (await a(this, F)).getFontFamilies().then((e) => o(e)), this.getFontStyles = async (t) => (await a(this, F)).getFontStyles(t).then((r) => o(r)), this.getFontFamilyById = async (t) => (await a(this, F)).getFontFamilyById(t).then((r) => o(r)), this.getFontStyleById = async (t) => (await a(this, F)).getFontStyleById(t).then((r) => o(r)), this.getDefaultFontStyle = async () => (await a(this, F)).getDefaultFontStyle().then((e) => o(e)), this.getDefaultFontFamily = async () => (await a(this, F)).getDefaultFontFamily().then((e) => o(e)), this.isFontFamilyUsed = async (t) => (await a(this, F)).isFontFamilyUsed(t).then((r) => o(r)), this.isFontStyleUsed = async (t) => (await a(this, F)).isFontStyleUsed(t).then((r) => o(r)), this.moveFontFamilies = async (t, e) => (await a(this, F)).moveFontFamilies(t, e).then((n) => o(n)), g(this, F, i);
|
|
1102
1129
|
}
|
|
1103
1130
|
}
|
|
1104
|
-
|
|
1131
|
+
F = new WeakMap();
|
|
1105
1132
|
var It;
|
|
1106
|
-
class
|
|
1133
|
+
class ne {
|
|
1107
1134
|
/**
|
|
1108
1135
|
* @ignore
|
|
1109
1136
|
*/
|
|
@@ -1150,7 +1177,7 @@ class ee {
|
|
|
1150
1177
|
}
|
|
1151
1178
|
It = new WeakMap();
|
|
1152
1179
|
var d;
|
|
1153
|
-
class
|
|
1180
|
+
class We {
|
|
1154
1181
|
/**
|
|
1155
1182
|
* @ignore
|
|
1156
1183
|
*/
|
|
@@ -1159,25 +1186,25 @@ class Ke {
|
|
|
1159
1186
|
* @ignore
|
|
1160
1187
|
*/
|
|
1161
1188
|
u(this, d);
|
|
1162
|
-
this.getAll = async () => (await a(this, d)).getFrames().then((e) => o(e)), this.getSelected = async () => (await a(this, d)).getSelectedFrames().then((e) => o(e)), this.getAllByPageId = async (t) => (await a(this, d)).getFramesByPageId(t).then((r) => o(r)), this.getByName = async (t) => (await a(this, d)).getFrameByName(t).then((r) => o(r)), this.getById = async (t) => (await a(this, d)).getFrameById(t).then((r) => o(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, d)).getFramePropertiesOnSelectedLayout().then((e) => o(e)), this.getLayoutProperties = async (t, e) => (await a(this, d)).getFramePropertiesByFrameId(t, e).then((n) => o(n)), this.getAllLayoutProperties = async (t) => (await a(this, d)).getFramesProperties(t).then((r) => o(r)), this.resetTransformation = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetSize = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.select = async (t) => (await a(this, d)).selectFrames([t]).then((r) => o(r)), this.selectMultiple = async (t) => (await a(this, d)).selectFrames(t).then((r) => o(r)), this.deselectAll = async () => (await a(this, d)).deselectFrames().then((e) => o(e)), this.reorderFrames = async (t, e) => (await a(this, d)).reorderFrames(t, e).then((n) => o(n)), this.setZIndex = async (t, e) => (await a(this, d)).setFrameZIndex(t, e).then((n) => o(n)), this.setHeight = async (t, e) => (await a(this, d)).setFrameHeight(t, e).then((n) => o(n)), this.setRotation = async (t, e) => (await a(this, d)).setFrameRotation(t, e).then((n) => o(n)), this.setWidth = async (t, e) => (await a(this, d)).setFrameWidth(t, e).then((n) => o(n)), this.setX = async (t, e) => (await a(this, d)).setFrameX(t, e).then((n) => o(n)), this.setY = async (t, e) => (await a(this, d)).setFrameY(t, e).then((n) => o(n)), this.rename = async (t, e) => (await a(this, d)).renameFrame(t, e).then((n) => o(n)), this.reset = async (t) => (await a(this, d)).resetFrame(t).then((r) => o(r)), this.resetX = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetY = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetRotation = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetWidth = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetHeight = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetImageFrameFitMode = async (t) => (await a(this, d)).resetImageFrameFitMode(t).then((r) => o(r)), this.setVisibility = async (t, e) => (await a(this, d)).setFrameIsVisible(t, e).then((n) => o(n)), this.setIsVisible = async (t, e) => (await a(this, d)).setFrameIsVisible(t, e).then((n) => o(n)), this.remove = async (t) => (await a(this, d)).removeFrames([t]).then((r) => o(r)), this.removeFrames = async (t) => (await a(this, d)).removeFrames(t).then((r) => o(r)), this.create = async (t, e, r, n, c) => (await a(this, d)).addFrame(t, e, r, n, c).then((
|
|
1189
|
+
this.getAll = async () => (await a(this, d)).getFrames().then((e) => o(e)), this.getSelected = async () => (await a(this, d)).getSelectedFrames().then((e) => o(e)), this.getAllByPageId = async (t) => (await a(this, d)).getFramesByPageId(t).then((r) => o(r)), this.getByName = async (t) => (await a(this, d)).getFrameByName(t).then((r) => o(r)), this.getById = async (t) => (await a(this, d)).getFrameById(t).then((r) => o(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, d)).getFramePropertiesOnSelectedLayout().then((e) => o(e)), this.getLayoutProperties = async (t, e) => (await a(this, d)).getFramePropertiesByFrameId(t, e).then((n) => o(n)), this.getAllLayoutProperties = async (t) => (await a(this, d)).getFramesProperties(t).then((r) => o(r)), this.resetTransformation = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetSize = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.select = async (t) => (await a(this, d)).selectFrames([t]).then((r) => o(r)), this.selectMultiple = async (t) => (await a(this, d)).selectFrames(t).then((r) => o(r)), this.deselectAll = async () => (await a(this, d)).deselectFrames().then((e) => o(e)), this.reorderFrames = async (t, e) => (await a(this, d)).reorderFrames(t, e).then((n) => o(n)), this.setZIndex = async (t, e) => (await a(this, d)).setFrameZIndex(t, e).then((n) => o(n)), this.setHeight = async (t, e) => (await a(this, d)).setFrameHeight(t, e).then((n) => o(n)), this.setRotation = async (t, e) => (await a(this, d)).setFrameRotation(t, e).then((n) => o(n)), this.setWidth = async (t, e) => (await a(this, d)).setFrameWidth(t, e).then((n) => o(n)), this.setX = async (t, e) => (await a(this, d)).setFrameX(t, e).then((n) => o(n)), this.setY = async (t, e) => (await a(this, d)).setFrameY(t, e).then((n) => o(n)), this.rename = async (t, e) => (await a(this, d)).renameFrame(t, e).then((n) => o(n)), this.reset = async (t) => (await a(this, d)).resetFrame(t).then((r) => o(r)), this.resetX = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetY = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetRotation = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetWidth = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetHeight = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetImageFrameFitMode = async (t) => (await a(this, d)).resetImageFrameFitMode(t).then((r) => o(r)), this.setVisibility = async (t, e) => (await a(this, d)).setFrameIsVisible(t, e).then((n) => o(n)), this.setIsVisible = async (t, e) => (await a(this, d)).setFrameIsVisible(t, e).then((n) => o(n)), this.remove = async (t) => (await a(this, d)).removeFrames([t]).then((r) => o(r)), this.removeFrames = async (t) => (await a(this, d)).removeFrames(t).then((r) => o(r)), this.create = async (t, e, r, n, c) => (await a(this, d)).addFrame(t, e, r, n, c).then((h) => o(h)), this.createShapeFrame = async (t, e, r, n, c) => (await a(this, d)).addFrame(t, e, r, n, c).then((h) => o(h)), this.createBarcodeFrame = async (t, e) => (await a(this, d)).addBarcodeFrame(t, e == null ? void 0 : e.x, e == null ? void 0 : e.y).then((n) => o(n)), this.duplicateFrames = async (t) => (await a(this, d)).duplicateFrames(t).then((r) => o(r)), this.updateImageSource = async (t, e) => {
|
|
1163
1190
|
const r = await a(this, d), n = e !== null ? JSON.stringify(e) : null;
|
|
1164
1191
|
return r.setImageSource(t, n).then((c) => o(c));
|
|
1165
1192
|
}, this.removeImageSource = async (t) => this.updateImageSource(t, null), this.setImageFromConnector = async (t, e, r) => {
|
|
1166
1193
|
const n = {
|
|
1167
1194
|
id: e,
|
|
1168
1195
|
assetId: r,
|
|
1169
|
-
type:
|
|
1196
|
+
type: jt.connector
|
|
1170
1197
|
};
|
|
1171
1198
|
return this.updateImageSource(t, n);
|
|
1172
1199
|
}, this.setImageFromUrl = async (t, e) => {
|
|
1173
|
-
const r = { url: e, type:
|
|
1200
|
+
const r = { url: e, type: jt.url };
|
|
1174
1201
|
return this.updateImageSource(t, r);
|
|
1175
1202
|
}, this.setImageFrameFitMode = async (t, e) => (await a(this, d)).setImageFrameFitMode(t, e).then((n) => o(n)), this.setImageFrameFitModePosition = async (t, e) => (await a(this, d)).setImageFrameFitModePosition(t, e).then((n) => o(n)), this.setFrameConstrainProportions = async (t, e) => (console.error("setFrameConstrainProportions is not supported anymore"), o({
|
|
1176
1203
|
success: !1,
|
|
1177
1204
|
status: 0,
|
|
1178
1205
|
error: "setFrameConstrainProportions is not supported anymore",
|
|
1179
1206
|
parsedData: null
|
|
1180
|
-
})), this.setVerticalAlign = async (t, e) => (await a(this, d)).setVerticalAlignment(t, e).then((n) => o(n)), this.setMinCopyfitting = async (t, e) => (await a(this, d)).setMinCopyfitting(t, e).then((n) => o(n)), this.setMaxCopyfitting = async (t, e) => (await a(this, d)).setMaxCopyfitting(t, e).then((n) => o(n)), this.setEnableCopyfitting = async (t, e) => (await a(this, d)).setEnableCopyfitting(t, e).then((n) => o(n)), this.resetMinCopyfitting = async (t) => (await a(this, d)).resetMinCopyfitting(t).then((r) => o(r)), this.resetMaxCopyfitting = async (t) => (await a(this, d)).resetMaxCopyfitting(t).then((r) => o(r)), this.resetEnableCopyfitting = async (t) => (await a(this, d)).resetEnableCopyfitting(t).then((r) => o(r)), this.setShapeFrameEnableFill = async (t, e) => this.shapeController.setEnableFill(t, e), this.setShapeFrameFillColor = async (t, e) => this.shapeController.setFillColor(t, e), this.setShapeFrameEnableStroke = async (t, e) => this.shapeController.setEnableStroke(t, e), this.setShapeFrameStrokeColor = async (t, e) => this.shapeController.setStrokeColor(t, e), this.setShapeFrameStrokeWeight = async (t, e) => this.shapeController.setStrokeWeight(t, e), this.setBlendMode = async (t, e) => (await a(this, d)).setFrameBlendMode(t, e).then((n) => o(n)), this.enterCropMode = async (t, e =
|
|
1207
|
+
})), this.setVerticalAlign = async (t, e) => (await a(this, d)).setVerticalAlignment(t, e).then((n) => o(n)), this.setMinCopyfitting = async (t, e) => (await a(this, d)).setMinCopyfitting(t, e).then((n) => o(n)), this.setMaxCopyfitting = async (t, e) => (await a(this, d)).setMaxCopyfitting(t, e).then((n) => o(n)), this.setEnableCopyfitting = async (t, e) => (await a(this, d)).setEnableCopyfitting(t, e).then((n) => o(n)), this.resetMinCopyfitting = async (t) => (await a(this, d)).resetMinCopyfitting(t).then((r) => o(r)), this.resetMaxCopyfitting = async (t) => (await a(this, d)).resetMaxCopyfitting(t).then((r) => o(r)), this.resetEnableCopyfitting = async (t) => (await a(this, d)).resetEnableCopyfitting(t).then((r) => o(r)), this.setShapeFrameEnableFill = async (t, e) => this.shapeController.setEnableFill(t, e), this.setShapeFrameFillColor = async (t, e) => this.shapeController.setFillColor(t, e), this.setShapeFrameEnableStroke = async (t, e) => this.shapeController.setEnableStroke(t, e), this.setShapeFrameStrokeColor = async (t, e) => this.shapeController.setStrokeColor(t, e), this.setShapeFrameStrokeWeight = async (t, e) => this.shapeController.setStrokeWeight(t, e), this.setBlendMode = async (t, e) => (await a(this, d)).setFrameBlendMode(t, e).then((n) => o(n)), this.enterCropMode = async (t, e = ws.frameCrop) => (await a(this, d)).enterCropMode(t, e).then((n) => o(n)), this.applyCropMode = async () => (await a(this, d)).applyCropMode().then((e) => o(e)), this.exitCropMode = async () => (await a(this, d)).cancelCropMode().then((e) => o(e)), this.enterSubjectMode = async (t) => (await a(this, d)).enterSubjectMode(t).then((r) => o(r)), this.applySubjectMode = async () => (await a(this, d)).applySubjectMode().then((e) => o(e)), this.exitSubjectMode = async () => (await a(this, d)).cancelSubjectMode().then((e) => o(e)), this.resetCropMode = async (t) => (console.error("resetCropMode is not supported anymore"), o({
|
|
1181
1208
|
success: !1,
|
|
1182
1209
|
status: 0,
|
|
1183
1210
|
error: "resetCropMode is not supported anymore",
|
|
@@ -1235,25 +1262,40 @@ class Ke {
|
|
|
1235
1262
|
status: 0,
|
|
1236
1263
|
error: "resetAutoGrow is not supported anymore",
|
|
1237
1264
|
parsedData: null
|
|
1238
|
-
})), this.
|
|
1239
|
-
const
|
|
1265
|
+
})), this.setShadowEnabled = async (t, e) => {
|
|
1266
|
+
const r = { enabled: { value: e } };
|
|
1267
|
+
return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => o(c));
|
|
1268
|
+
}, this.setShadowDistance = async (t, e) => {
|
|
1269
|
+
const r = { distance: { value: e } };
|
|
1270
|
+
return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => o(c));
|
|
1271
|
+
}, this.setShadowAngleDegrees = async (t, e) => {
|
|
1272
|
+
const r = { angleDegrees: { value: e } };
|
|
1273
|
+
return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => o(c));
|
|
1274
|
+
}, this.setShadowBlurRadius = async (t, e) => {
|
|
1275
|
+
const r = { blurRadius: { value: e } };
|
|
1276
|
+
return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => o(c));
|
|
1277
|
+
}, this.setShadowColor = async (t, e) => {
|
|
1278
|
+
const r = { color: { value: e } };
|
|
1279
|
+
return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => o(c));
|
|
1280
|
+
}, this.setAnchor = async (t, e, r, n, c) => {
|
|
1281
|
+
const l = {
|
|
1240
1282
|
horizontal: e,
|
|
1241
1283
|
type: r,
|
|
1242
1284
|
target: n,
|
|
1243
1285
|
endTarget: c
|
|
1244
1286
|
};
|
|
1245
|
-
return (await a(this, d)).setAnchorProperties(t, JSON.stringify(
|
|
1246
|
-
}, this.setVerticalAnchor = async (t, e, r, n) => this.setAnchor(t, !1, e, r, n), this.setHorizontalAnchor = async (t, e, r, n) => this.setAnchor(t, !0, e, r, n), this.resetAnchoring = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetVisibility = async (t) => (await a(this, d)).setFrameIsVisible(t, null).then((r) => o(r)), this.getConfiguration = async (t) => (await a(this, d)).getFrameConfiguration(t).then((r) => o(r)), this.resetAssetCropOverride = async (t) => (await a(this, d)).resetAssetCropOverride(t).then((r) => o(r)), this.resetAllAssetCropOverrides = async (t) => (await a(this, d)).resetAllAssetCropOverrides(t).then((r) => o(r)), g(this, d, i), this.shapeController = new
|
|
1287
|
+
return (await a(this, d)).setAnchorProperties(t, JSON.stringify(l)).then((y) => o(y));
|
|
1288
|
+
}, this.setVerticalAnchor = async (t, e, r, n) => this.setAnchor(t, !1, e, r, n), this.setHorizontalAnchor = async (t, e, r, n) => this.setAnchor(t, !0, e, r, n), this.resetAnchoring = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => o(r)), this.resetVisibility = async (t) => (await a(this, d)).setFrameIsVisible(t, null).then((r) => o(r)), this.getConfiguration = async (t) => (await a(this, d)).getFrameConfiguration(t).then((r) => o(r)), this.resetAssetCropOverride = async (t) => (await a(this, d)).resetAssetCropOverride(t).then((r) => o(r)), this.resetAllAssetCropOverrides = async (t) => (await a(this, d)).resetAllAssetCropOverrides(t).then((r) => o(r)), g(this, d, i), this.shapeController = new ne(a(this, d));
|
|
1247
1289
|
}
|
|
1248
1290
|
}
|
|
1249
1291
|
d = new WeakMap();
|
|
1250
|
-
class
|
|
1292
|
+
class je {
|
|
1251
1293
|
constructor() {
|
|
1252
|
-
this.currentEngineVersion =
|
|
1294
|
+
this.currentEngineVersion = ls.current, this.currentSDKVersion = ds.version;
|
|
1253
1295
|
}
|
|
1254
1296
|
}
|
|
1255
|
-
var w,
|
|
1256
|
-
class
|
|
1297
|
+
var w, Gt;
|
|
1298
|
+
class qe {
|
|
1257
1299
|
/**
|
|
1258
1300
|
* @ignore
|
|
1259
1301
|
*/
|
|
@@ -1262,27 +1304,27 @@ class We {
|
|
|
1262
1304
|
* @ignore
|
|
1263
1305
|
*/
|
|
1264
1306
|
u(this, w);
|
|
1265
|
-
u(this,
|
|
1307
|
+
u(this, Gt);
|
|
1266
1308
|
this.getAll = async () => (await a(this, w)).getLayouts().then((e) => o(e)), this.getById = async (t) => (await a(this, w)).getLayoutById(t).then((r) => o(r)), this.getByName = async (t) => (await a(this, w)).getLayoutByName(t).then((r) => o(r)), this.getSelected = async () => (await a(this, w)).getSelectedLayout().then((e) => o(e)), this.remove = async (t) => (await a(this, w)).removeLayout(t).then((r) => o(r)), this.create = async (t, e) => {
|
|
1267
1309
|
const r = await a(this, w);
|
|
1268
1310
|
return e != null && e.length ? r.addLayouts(t, JSON.stringify(e)).then((n) => o(n)) : r.addLayout(t).then((n) => o(n));
|
|
1269
|
-
}, this.rename = async (t, e) => (await a(this, w)).renameLayout(t, e).then((n) => o(n)), this.select = async (t) => (await a(this, w)).selectLayout(t).then((r) => o(r)), this.duplicate = async (t) => (await a(this, w)).duplicateLayout(t).then((r) => o(r)), this.reset = async (t) => (await a(this, w)).resetLayout(t).then((r) => o(r)), this.setHeight = async (t, e) => (await a(this, w)).setLayoutHeight(t, e).then((n) => o(n)), this.setWidth = async (t, e) => (await a(this, w)).setLayoutWidth(t, e).then((n) => o(n)), this.setUnit = async (t, e) => (await a(this, w)).setLayoutUnit(t, e).then((n) => o(n)), this.resetHeight = async (t) => (await a(this, w)).resetLayoutHeight(t).then((r) => o(r)), this.resetWidth = async (t) => (await a(this, w)).resetLayoutWidth(t).then((r) => o(r)), this.resetUnit = async (t) => (await a(this, w)).resetLayoutUnit(t).then((r) => o(r)), this.getSelectedSnapshot = async () => (await a(this,
|
|
1311
|
+
}, this.rename = async (t, e) => (await a(this, w)).renameLayout(t, e).then((n) => o(n)), this.select = async (t) => (await a(this, w)).selectLayout(t).then((r) => o(r)), this.duplicate = async (t) => (await a(this, w)).duplicateLayout(t).then((r) => o(r)), this.reset = async (t) => (await a(this, w)).resetLayout(t).then((r) => o(r)), this.setHeight = async (t, e) => (await a(this, w)).setLayoutHeight(t, e).then((n) => o(n)), this.setWidth = async (t, e) => (await a(this, w)).setLayoutWidth(t, e).then((n) => o(n)), this.setUnit = async (t, e) => (await a(this, w)).setLayoutUnit(t, e).then((n) => o(n)), this.resetHeight = async (t) => (await a(this, w)).resetLayoutHeight(t).then((r) => o(r)), this.resetWidth = async (t) => (await a(this, w)).resetLayoutWidth(t).then((r) => o(r)), this.resetUnit = async (t) => (await a(this, w)).resetLayoutUnit(t).then((r) => o(r)), this.getSelectedSnapshot = async () => (await a(this, Gt)).getPageSnapshot().then((e) => e ?? e), this.setIntent = async (t, e) => (await a(this, w)).setLayoutIntent(t, e).then((n) => o(n)), this.resetIntent = async (t) => (await a(this, w)).resetLayoutIntent(t).then((r) => o(r)), this.setFillColor = async (t, e) => (await a(this, w)).setLayoutFillColor(t, JSON.stringify(e)).then((n) => o(n)), this.setFillColorEnabled = async (t, e) => (await a(this, w)).setLayoutFillColorEnabled(t, e).then((n) => o(n)), this.resetFillColor = async (t) => (await a(this, w)).resetLayoutFillColor(t).then((r) => o(r)), this.setBleedValue = async (t, e, r) => {
|
|
1270
1312
|
const n = r ? {
|
|
1271
|
-
left: r ===
|
|
1272
|
-
top: r ===
|
|
1273
|
-
right: r ===
|
|
1274
|
-
bottom: r ===
|
|
1313
|
+
left: r === Z.left ? e : void 0,
|
|
1314
|
+
top: r === Z.top ? e : void 0,
|
|
1315
|
+
right: r === Z.right ? e : void 0,
|
|
1316
|
+
bottom: r === Z.bottom ? e : void 0
|
|
1275
1317
|
} : { left: e, top: e, right: e, bottom: e };
|
|
1276
|
-
return (await a(this, w)).updateLayoutBleed(t, JSON.stringify(n)).then((
|
|
1318
|
+
return (await a(this, w)).updateLayoutBleed(t, JSON.stringify(n)).then((l) => o(l));
|
|
1277
1319
|
}, this.setAreBleedValuesCombined = async (t, e) => {
|
|
1278
1320
|
const r = { areBleedValuesCombined: e };
|
|
1279
1321
|
return (await a(this, w)).updateLayoutBleed(t, JSON.stringify(r)).then((c) => o(c));
|
|
1280
|
-
}, this.resetBleedValues = async (t) => (await a(this, w)).updateLayoutBleed(t, null).then((r) => o(r)), this.setPrivateData = async (t, e) => (await a(this, w)).setLayoutPrivateData(t, JSON.stringify(e)).then((n) => o(n)), this.getPrivateData = async (t) => (await a(this, w)).getLayoutPrivateData(t).then((r) => o(r)), this.setDisplayName = async (t, e) => (await a(this, w)).setLayoutDisplayName(t, e).then((n) => o(n)), this.getDisplayName = async (t) => (await a(this, w)).getLayoutDisplayName(t).then((r) => o(r)), this.resetDisplayName = async (t) => (await a(this, w)).setLayoutDisplayName(t, null).then((r) => o(r)), this.setAvailableForUser = async (t, e) => (await a(this, w)).setLayoutAvailableForUser(t, e).then((n) => o(n)), this.setSelectedByUser = async (t, e) => (await a(this, w)).setLayoutSelectedByUser(t, e).then((n) => o(n)), this.setResizableByUser = async (t, e) => (await a(this, w)).setLayoutResizableByUser(t, JSON.stringify(e)).then((n) => o(n)), g(this, w, i), g(this,
|
|
1322
|
+
}, this.resetBleedValues = async (t) => (await a(this, w)).updateLayoutBleed(t, null).then((r) => o(r)), this.setPrivateData = async (t, e) => (await a(this, w)).setLayoutPrivateData(t, JSON.stringify(e)).then((n) => o(n)), this.getPrivateData = async (t) => (await a(this, w)).getLayoutPrivateData(t).then((r) => o(r)), this.setDisplayName = async (t, e) => (await a(this, w)).setLayoutDisplayName(t, e).then((n) => o(n)), this.getDisplayName = async (t) => (await a(this, w)).getLayoutDisplayName(t).then((r) => o(r)), this.resetDisplayName = async (t) => (await a(this, w)).setLayoutDisplayName(t, null).then((r) => o(r)), this.setAvailableForUser = async (t, e) => (await a(this, w)).setLayoutAvailableForUser(t, e).then((n) => o(n)), this.setSelectedByUser = async (t, e) => (await a(this, w)).setLayoutSelectedByUser(t, e).then((n) => o(n)), this.setResizableByUser = async (t, e) => (await a(this, w)).setLayoutResizableByUser(t, JSON.stringify(e)).then((n) => o(n)), g(this, w, i), g(this, Gt, i);
|
|
1281
1323
|
}
|
|
1282
1324
|
}
|
|
1283
|
-
w = new WeakMap(),
|
|
1284
|
-
var
|
|
1285
|
-
class
|
|
1325
|
+
w = new WeakMap(), Gt = new WeakMap();
|
|
1326
|
+
var ae = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.mediumres = "mediumres", s.highres = "highres", s.original = "original", s))(ae || {}), fs = /* @__PURE__ */ ((s) => (s.web = "web", s.print = "print", s.animation = "animation", s))(fs || {}), j, Tt;
|
|
1327
|
+
class Ye {
|
|
1286
1328
|
/**
|
|
1287
1329
|
* @ignore
|
|
1288
1330
|
*/
|
|
@@ -1290,23 +1332,27 @@ class qe {
|
|
|
1290
1332
|
/**
|
|
1291
1333
|
* @ignore
|
|
1292
1334
|
*/
|
|
1293
|
-
u(this,
|
|
1294
|
-
u(this,
|
|
1295
|
-
this.query = async (t, e, r = {}) => (await a(this,
|
|
1335
|
+
u(this, j);
|
|
1336
|
+
u(this, Tt);
|
|
1337
|
+
this.query = async (t, e, r = {}) => (await a(this, j)).mediaConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((c) => o(c)), this.detail = async (t, e, r = {}) => (await a(this, j)).mediaConnectorDetail(t, e, JSON.stringify(r)).then((c) => o(c)), this.download = async (t, e, r, n = {}) => {
|
|
1296
1338
|
const c = this.parseDeprecatedMediaDownloadType(
|
|
1297
1339
|
r
|
|
1298
1340
|
);
|
|
1299
|
-
return (await a(this,
|
|
1341
|
+
return (await a(this, Tt)).mediaConnectorDownload(
|
|
1300
1342
|
t,
|
|
1301
1343
|
e,
|
|
1302
1344
|
c,
|
|
1303
|
-
|
|
1345
|
+
fs.web,
|
|
1304
1346
|
JSON.stringify(n)
|
|
1305
|
-
).then((
|
|
1306
|
-
|
|
1347
|
+
).then((h) => {
|
|
1348
|
+
if (h instanceof Uint8Array)
|
|
1349
|
+
return h;
|
|
1350
|
+
throw typeof h == "object" && h !== null && "success" in h && !h.success && Cs(h), new Error(`Unexpected response type: ${typeof h}.`);
|
|
1351
|
+
});
|
|
1352
|
+
}, this.getConfigurationOptions = async (t) => (await a(this, j)).mediaConnectorGetConfigurationOptions(t).then((r) => o(r)), this.getCapabilities = async (t) => (await a(this, j)).mediaConnectorGetCapabilities(t).then((r) => o(r)), this.parseDeprecatedMediaType = (t) => {
|
|
1307
1353
|
if (t === Rt.file) return Vt.file;
|
|
1308
1354
|
if (t === Rt.collection) return Vt.collection;
|
|
1309
|
-
}, this.upload = async (t, e, r = {}) => (await a(this,
|
|
1355
|
+
}, this.upload = async (t, e, r = {}) => (await a(this, j)).mediaConnectorUpload(t, JSON.stringify(e), JSON.stringify(r)).then((c) => o(c)), g(this, j, i), g(this, Tt, i);
|
|
1310
1356
|
}
|
|
1311
1357
|
/**
|
|
1312
1358
|
* This method will parse the deprecatedMediaDownloadType to the new media download type.
|
|
@@ -1316,18 +1362,18 @@ class qe {
|
|
|
1316
1362
|
*/
|
|
1317
1363
|
parseDeprecatedMediaDownloadType(i) {
|
|
1318
1364
|
switch (i) {
|
|
1319
|
-
case
|
|
1320
|
-
return
|
|
1321
|
-
case
|
|
1322
|
-
return
|
|
1365
|
+
case se.HighResolutionWeb:
|
|
1366
|
+
return ae.highres;
|
|
1367
|
+
case se.LowResolutionWeb:
|
|
1368
|
+
return ae.thumbnail;
|
|
1323
1369
|
default:
|
|
1324
1370
|
return i;
|
|
1325
1371
|
}
|
|
1326
1372
|
}
|
|
1327
1373
|
}
|
|
1328
|
-
|
|
1329
|
-
var
|
|
1330
|
-
let
|
|
1374
|
+
j = new WeakMap(), Tt = new WeakMap();
|
|
1375
|
+
var E, Ht, cs;
|
|
1376
|
+
let Ze = (cs = class {
|
|
1331
1377
|
/**
|
|
1332
1378
|
* @ignore
|
|
1333
1379
|
*/
|
|
@@ -1335,16 +1381,16 @@ let je = (is = class {
|
|
|
1335
1381
|
/**
|
|
1336
1382
|
* @ignore
|
|
1337
1383
|
*/
|
|
1338
|
-
u(this,
|
|
1384
|
+
u(this, E);
|
|
1339
1385
|
/**
|
|
1340
1386
|
* @ignore
|
|
1341
1387
|
*/
|
|
1342
1388
|
u(this, Ht);
|
|
1343
|
-
this.add = async () => (await a(this,
|
|
1389
|
+
this.add = async () => (await a(this, E)).addPage().then((e) => o(e)), this.remove = async (t) => (await a(this, E)).removePage(t).then((r) => o(r)), this.select = async (t) => (await a(this, E)).selectPage(t).then((r) => o(r)), this.setVisibility = async (t, e) => (await a(this, E)).setPageIsVisible(t, e).then((n) => o(n)), this.duplicate = async (t) => (await a(this, E)).duplicatePage(t).then((r) => o(r)), this.getAll = async () => (await a(this, E)).getPages().then((e) => o(e)), this.getById = async (t) => (await a(this, E)).getPageById(t).then((r) => o(r)), this.getSnapshot = async (t, e) => (await a(this, Ht)).getPageSnapshotWithSettings(t, e == null ? null : JSON.stringify(e)).then((n) => n ?? n), this.setWidth = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, E)).setPageWidth(e).then((n) => o(n))), this.setHeight = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, E)).setPageHeight(e).then((n) => o(n))), this.setSize = async (t, e) => (await a(this, E)).setPageSize(t, e).then((n) => o(n)), this.move = async (t, e) => (await a(this, E)).reorderPages(t, e).then((n) => o(n)), g(this, E, i), g(this, Ht, i);
|
|
1344
1390
|
}
|
|
1345
|
-
},
|
|
1346
|
-
var
|
|
1347
|
-
class
|
|
1391
|
+
}, E = new WeakMap(), Ht = new WeakMap(), cs);
|
|
1392
|
+
var k;
|
|
1393
|
+
class Qe {
|
|
1348
1394
|
/**
|
|
1349
1395
|
* @ignore
|
|
1350
1396
|
*/
|
|
@@ -1352,24 +1398,24 @@ class Ye {
|
|
|
1352
1398
|
/**
|
|
1353
1399
|
* @ignore
|
|
1354
1400
|
*/
|
|
1355
|
-
u(this,
|
|
1356
|
-
this.getAll = async () => (await a(this,
|
|
1401
|
+
u(this, k);
|
|
1402
|
+
this.getAll = async () => (await a(this, k)).getParagraphStyles().then((e) => o(e)), this.getById = async (t) => (await a(this, k)).getParagraphStyleById(t).then((r) => o(r)), this.create = async () => (await a(this, k)).createParagraphStyle().then((e) => o(e)), this.duplicate = async (t) => (await a(this, k)).duplicateParagraphStyle(t).then((r) => o(r)), this.update = async (t, e) => (await a(this, k)).updateParagraphStyle(t, JSON.stringify(e)).then((n) => o(n)), this.rename = async (t, e) => (await a(this, k)).renameParagraphStyle(t, e).then((n) => o(n)), this.remove = async (t) => (await a(this, k)).removeParagraphStyle(t).then((r) => o(r)), this.move = async (t, e) => (await a(this, k)).moveParagraphStyles(t, e).then((n) => o(n)), g(this, k, i);
|
|
1357
1403
|
}
|
|
1358
1404
|
}
|
|
1359
|
-
|
|
1360
|
-
var
|
|
1361
|
-
class
|
|
1405
|
+
k = new WeakMap();
|
|
1406
|
+
var M = /* @__PURE__ */ ((s) => (s.info = "info", s.warn = "warn", s.error = "error", s))(M || {}), Ss = /* @__PURE__ */ ((s) => (s.general = "general", s.connector = "connector", s.event = "event", s.engine = "engine", s))(Ss || {}), Bt = /* @__PURE__ */ ((s) => (s.throw = "throw", s.log = "log", s))(Bt || {});
|
|
1407
|
+
class Vr {
|
|
1362
1408
|
constructor(i, t, e, r) {
|
|
1363
1409
|
this.type = "action", this.message = i, this.id = t, this.event = e, this.eventChain = r;
|
|
1364
1410
|
}
|
|
1365
1411
|
}
|
|
1366
|
-
class
|
|
1412
|
+
class Br {
|
|
1367
1413
|
constructor(i, t, e) {
|
|
1368
1414
|
this.type = "dataRow", this.count = i, this.message = t, this.exceptions = e;
|
|
1369
1415
|
}
|
|
1370
1416
|
}
|
|
1371
|
-
var
|
|
1372
|
-
let
|
|
1417
|
+
var ce = /* @__PURE__ */ ((s) => (s.shortText = "shortText", s.longText = "longText", s.image = "image", s.list = "list", s.boolean = "boolean", s.group = "group", s.number = "number", s.date = "date", s))(ce || {}), Jr = /* @__PURE__ */ ((s) => (s.Monday = "monday", s.Tuesday = "tuesday", s.Wednesday = "wednesday", s.Thursday = "thursday", s.Friday = "friday", s.Saturday = "saturday", s.Sunday = "sunday", s))(Jr || {}), kr = /* @__PURE__ */ ((s) => (s.en_US = "en_US", s.cs = "cs", s.da = "da", s.nl = "nl", s.fi = "fi", s.fr = "fr", s.de = "de", s.it = "it", s.no = "no", s.pl = "pl", s.pt_PT = "pt_PT", s.es_ES = "es_ES", s.sv = "sv", s))(kr || {}), xt = /* @__PURE__ */ ((s) => (s.visible = "visible", s.invisible = "invisible", s.conditional = "conditional", s))(xt || {}), Ur = /* @__PURE__ */ ((s) => (s.boolean = "boolean", s.text = "text", s.number = "number", s))(Ur || {}), Gr = /* @__PURE__ */ ((s) => (s.equals = "=", s.notEquals = "!=", s.greaterThan = ">", s.greaterThanOrEquals = ">=", s.lessThan = "<", s.lessThanOrEquals = "<=", s))(Gr || {});
|
|
1418
|
+
let Tr = class {
|
|
1373
1419
|
/**
|
|
1374
1420
|
* @ignore
|
|
1375
1421
|
*/
|
|
@@ -1412,13 +1458,13 @@ let Ur = class {
|
|
|
1412
1458
|
}, this.onVariableListChanged = (e) => {
|
|
1413
1459
|
const n = JSON.parse(e).map(
|
|
1414
1460
|
(c) => {
|
|
1415
|
-
var
|
|
1416
|
-
return c.type ===
|
|
1461
|
+
var l;
|
|
1462
|
+
return c.type === ce.list ? {
|
|
1417
1463
|
...c,
|
|
1418
1464
|
items: c.items.map(
|
|
1419
|
-
(
|
|
1465
|
+
(h) => h.value
|
|
1420
1466
|
),
|
|
1421
|
-
selected: (
|
|
1467
|
+
selected: (l = c.selected) == null ? void 0 : l.value
|
|
1422
1468
|
} : c;
|
|
1423
1469
|
}
|
|
1424
1470
|
);
|
|
@@ -1450,9 +1496,9 @@ let Ur = class {
|
|
|
1450
1496
|
}, this.onConnectorEvent = (e) => {
|
|
1451
1497
|
this.config.events.onConnectorEvent.trigger(JSON.parse(e));
|
|
1452
1498
|
}, this.onConnectorsChanged = (e) => {
|
|
1453
|
-
const n = new
|
|
1499
|
+
const n = new oe().makeMultipleConnectorsBackwardsCompatible(
|
|
1454
1500
|
JSON.parse(e),
|
|
1455
|
-
this.localConfig.get(
|
|
1501
|
+
this.localConfig.get(Q.GraFxStudioEnvironmentApiUrl)
|
|
1456
1502
|
);
|
|
1457
1503
|
this.config.events.onConnectorsChanged.trigger(n);
|
|
1458
1504
|
}, this.onSelectedPageIdChanged = (e) => {
|
|
@@ -1470,14 +1516,14 @@ let Ur = class {
|
|
|
1470
1516
|
}, this.onAsyncError = (e) => {
|
|
1471
1517
|
const r = JSON.parse(e);
|
|
1472
1518
|
if ((r == null ? void 0 : r.type) === "dataRow") {
|
|
1473
|
-
const n = new
|
|
1519
|
+
const n = new Br(
|
|
1474
1520
|
r.count,
|
|
1475
1521
|
r.message,
|
|
1476
1522
|
r.exceptions
|
|
1477
1523
|
);
|
|
1478
1524
|
this.config.events.onAsyncError.trigger(n);
|
|
1479
1525
|
} else if ((r == null ? void 0 : r.type) === "action") {
|
|
1480
|
-
const n = new
|
|
1526
|
+
const n = new Vr(
|
|
1481
1527
|
r.message,
|
|
1482
1528
|
r.id,
|
|
1483
1529
|
r.event,
|
|
@@ -1501,8 +1547,8 @@ let Ur = class {
|
|
|
1501
1547
|
}, this.config = i, this.localConfig = t;
|
|
1502
1548
|
}
|
|
1503
1549
|
};
|
|
1504
|
-
var
|
|
1505
|
-
class
|
|
1550
|
+
var pt;
|
|
1551
|
+
class Xe {
|
|
1506
1552
|
/**
|
|
1507
1553
|
* @ignore
|
|
1508
1554
|
*/
|
|
@@ -1510,13 +1556,13 @@ class Ze {
|
|
|
1510
1556
|
/**
|
|
1511
1557
|
* @ignore
|
|
1512
1558
|
*/
|
|
1513
|
-
u(this,
|
|
1514
|
-
this.set = async (t) => (await a(this,
|
|
1559
|
+
u(this, pt);
|
|
1560
|
+
this.set = async (t) => (await a(this, pt)).selectedTextStyleDeltaUpdate(JSON.stringify(t)).then((r) => o(r)), this.removeSelected = async () => (await a(this, pt)).selectedTextStyleClean().then((e) => o(e)), this.getSelected = async () => (await a(this, pt)).getSelectedTextStyle().then((e) => o(e)), g(this, pt, i);
|
|
1515
1561
|
}
|
|
1516
1562
|
}
|
|
1517
|
-
|
|
1518
|
-
var
|
|
1519
|
-
class
|
|
1563
|
+
pt = new WeakMap();
|
|
1564
|
+
var Hr = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(Hr || {}), _r = /* @__PURE__ */ ((s) => (s.LAYOUT_HEIGHT = "layoutHeight", s.LAYOUT_WIDTH = "layoutWidth", s.BLEED_TOP = "bleedTop", s.BLEED_BOTTOM = "bleedBottom", s.BLEED_LEFT = "bleedLeft", s.BLEED_RIGHT = "bleedRight", s.BLEED_VALUES_COMBINED = "areBleedValuesCombined", s))(_r || {}), _ = /* @__PURE__ */ ((s) => (s.SELECT = "select", s.ZOOM = "zoom", s.HAND = "hand", s.IMAGE_FRAME = "imageFrame", s.TEXT_FRAME = "textFrame", s.SHAPE_RECT = "rect", s.SHAPE_ELLIPSE = "ellipse", s.SHAPE_POLYGON = "polygon", s))(_ || {}), $r = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s))($r || {}), ie = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(ie || {}), vt;
|
|
1565
|
+
class ts {
|
|
1520
1566
|
/**
|
|
1521
1567
|
* @ignore
|
|
1522
1568
|
*/
|
|
@@ -1525,12 +1571,12 @@ class Qe {
|
|
|
1525
1571
|
* @ignore
|
|
1526
1572
|
*/
|
|
1527
1573
|
u(this, vt);
|
|
1528
|
-
this.setTool = async (t) => (await a(this, vt)).setTool(t).then((r) => o(r)), this.getSelected = async () => (await a(this, vt)).getSelectedTool().then((e) => o(e)), this.setPointer = async () => this.setTool(
|
|
1574
|
+
this.setTool = async (t) => (await a(this, vt)).setTool(t).then((r) => o(r)), this.getSelected = async () => (await a(this, vt)).getSelectedTool().then((e) => o(e)), this.setPointer = async () => this.setTool(_.SELECT), this.setSelect = async () => this.setTool(_.SELECT), this.setHand = async () => this.setTool(_.HAND), this.setZoom = async () => this.setTool(_.ZOOM), this.setTextFrame = async () => this.setTool(_.TEXT_FRAME), this.setImageFrame = async () => this.setTool(_.IMAGE_FRAME), this.setShapeRect = async () => this.setTool(_.SHAPE_RECT), this.setShapeEllipse = async () => this.setTool(_.SHAPE_ELLIPSE), this.setShapePolygon = async () => this.setTool(_.SHAPE_POLYGON), g(this, vt, i);
|
|
1529
1575
|
}
|
|
1530
1576
|
}
|
|
1531
1577
|
vt = new WeakMap();
|
|
1532
|
-
var q,
|
|
1533
|
-
class
|
|
1578
|
+
var q, G, _t;
|
|
1579
|
+
class es {
|
|
1534
1580
|
/**
|
|
1535
1581
|
* @ignore
|
|
1536
1582
|
*/
|
|
@@ -1539,20 +1585,49 @@ class Xe {
|
|
|
1539
1585
|
* @ignore
|
|
1540
1586
|
*/
|
|
1541
1587
|
u(this, q);
|
|
1542
|
-
u(this,
|
|
1588
|
+
u(this, G);
|
|
1543
1589
|
u(this, _t);
|
|
1544
1590
|
this.undo = async () => (await a(this, q)).undo().then((r) => o(r)), this.redo = async () => (await a(this, q)).redo().then((r) => o(r)), this.addCustomData = async (e, r) => (await a(this, q)).setCustomUndoData(e, r, !1).then((c) => o(c)), this.record = async (e, r) => {
|
|
1545
1591
|
try {
|
|
1546
|
-
await a(this,
|
|
1592
|
+
await a(this, G).beginIfNoneActive(e), await r(a(this, _t)), await a(this, G).end();
|
|
1547
1593
|
} catch (n) {
|
|
1548
|
-
throw await a(this,
|
|
1594
|
+
throw await a(this, G).abort(), n;
|
|
1549
1595
|
}
|
|
1550
|
-
}, this.pause = async () => (await a(this, q)).pause().then((r) => o(r)), this.resume = async () => (await a(this, q)).resume().then((r) => o(r)),
|
|
1596
|
+
}, this.pause = async () => (await a(this, q)).pause().then((r) => o(r)), this.resume = async () => (await a(this, q)).resume().then((r) => o(r)), this.advanced = {
|
|
1597
|
+
/**
|
|
1598
|
+
* This will start a new undo operation.
|
|
1599
|
+
* This will throw an exception when there is already an undo operation recording.
|
|
1600
|
+
* @experimental This method is experimental and may change in future versions.
|
|
1601
|
+
* @returns
|
|
1602
|
+
*/
|
|
1603
|
+
begin: async (e) => a(this, G).begin(e),
|
|
1604
|
+
/**
|
|
1605
|
+
* This will start a new undo operation if there is no other undo operation recording.
|
|
1606
|
+
* This does not throw.
|
|
1607
|
+
* @experimental This method is experimental and may change in future versions.
|
|
1608
|
+
* @returns
|
|
1609
|
+
*/
|
|
1610
|
+
beginIfNoneActive: async (e) => a(this, G).beginIfNoneActive(e),
|
|
1611
|
+
/**
|
|
1612
|
+
* Ends the currently active recording operation.
|
|
1613
|
+
* If there is no recording operation currently running this will throw an exception.
|
|
1614
|
+
* @experimental This method is experimental and may change in future versions.
|
|
1615
|
+
* @returns
|
|
1616
|
+
*/
|
|
1617
|
+
end: async () => a(this, G).end(),
|
|
1618
|
+
/**
|
|
1619
|
+
* Aborts the currently active recording operation.
|
|
1620
|
+
* If there is no recording operation currently running this will throw an exception.
|
|
1621
|
+
* @experimental This method is experimental and may change in future versions.
|
|
1622
|
+
* @returns
|
|
1623
|
+
*/
|
|
1624
|
+
abort: async () => a(this, G).abort()
|
|
1625
|
+
}, g(this, q, i), g(this, _t, t), g(this, G, new Kr(i));
|
|
1551
1626
|
}
|
|
1552
1627
|
}
|
|
1553
|
-
q = new WeakMap(),
|
|
1554
|
-
var
|
|
1555
|
-
class
|
|
1628
|
+
q = new WeakMap(), G = new WeakMap(), _t = new WeakMap();
|
|
1629
|
+
var it;
|
|
1630
|
+
class Kr {
|
|
1556
1631
|
/**
|
|
1557
1632
|
* @ignore
|
|
1558
1633
|
*/
|
|
@@ -1560,70 +1635,77 @@ class Hr {
|
|
|
1560
1635
|
/**
|
|
1561
1636
|
* @ignore
|
|
1562
1637
|
*/
|
|
1563
|
-
u(this,
|
|
1564
|
-
this.begin = async (t) => (await a(this,
|
|
1638
|
+
u(this, it);
|
|
1639
|
+
this.begin = async (t) => (await a(this, it)).begin(t).then((r) => o(r)), this.beginIfNoneActive = async (t) => (await a(this, it)).beginIfNoneActive(t).then((r) => o(r)), this.end = async () => (await a(this, it)).end().then((e) => o(e)), this.abort = async () => (await a(this, it)).abort().then((e) => o(e)), g(this, it, i);
|
|
1565
1640
|
}
|
|
1566
1641
|
}
|
|
1567
|
-
|
|
1568
|
-
const
|
|
1642
|
+
it = new WeakMap();
|
|
1643
|
+
const zr = (s, i = 2) => {
|
|
1569
1644
|
const t = Math.pow(10, i);
|
|
1570
1645
|
return Math.round(s * t) / t;
|
|
1571
1646
|
};
|
|
1572
|
-
var
|
|
1573
|
-
class
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1647
|
+
var $t, At;
|
|
1648
|
+
class ss {
|
|
1649
|
+
/**
|
|
1650
|
+
* @ignore
|
|
1651
|
+
*/
|
|
1652
|
+
constructor(i, t) {
|
|
1653
|
+
/**
|
|
1654
|
+
* @ignore
|
|
1655
|
+
*/
|
|
1656
|
+
u(this, $t);
|
|
1657
|
+
u(this, At);
|
|
1658
|
+
this.round = (e, r) => o({
|
|
1659
|
+
data: String(zr(e, r)),
|
|
1578
1660
|
success: !0,
|
|
1579
1661
|
status: 200,
|
|
1580
1662
|
parsedData: null
|
|
1581
|
-
}), this.createEnvironmentBaseURL = (
|
|
1582
|
-
const { type:
|
|
1583
|
-
return `https://${
|
|
1584
|
-
}, this.stageFiles = async (
|
|
1585
|
-
const
|
|
1586
|
-
if (!
|
|
1663
|
+
}), this.createEnvironmentBaseURL = (e) => {
|
|
1664
|
+
const { type: r = ie.SANDBOX, environment: n = "ft-nostress", version: c = "1" } = e, l = r == ie.SANDBOX ? "chili-publish-sandbox" : "chili-publish";
|
|
1665
|
+
return `https://${n}.${l}.online/grafx/api/v${c}/environment/${n}`;
|
|
1666
|
+
}, this.stageFiles = async (e, r, n) => {
|
|
1667
|
+
const c = a(this, At).get(Q.GraFxStudioEnvironmentApiUrl);
|
|
1668
|
+
if (!c)
|
|
1587
1669
|
throw new Error("GraFx Studio Environment API URL is not set");
|
|
1588
|
-
const
|
|
1670
|
+
const l = `${c}connectors/${r}/stage`, h = a(this, At).get(Q.GraFxStudioAuthToken);
|
|
1589
1671
|
if (!h)
|
|
1590
1672
|
throw new Error("GraFx Studio Auth Token is not set");
|
|
1591
|
-
const
|
|
1592
|
-
|
|
1593
|
-
const
|
|
1594
|
-
|
|
1595
|
-
}),
|
|
1673
|
+
const y = new FormData();
|
|
1674
|
+
e.forEach((S, f) => {
|
|
1675
|
+
const b = S instanceof File ? S.name : `blob-${f}`;
|
|
1676
|
+
y.append("files", S, b);
|
|
1677
|
+
}), n && y.append(
|
|
1596
1678
|
"validationJson",
|
|
1597
1679
|
JSON.stringify({
|
|
1598
|
-
allowedMimeTypes:
|
|
1680
|
+
allowedMimeTypes: n.mimeTypes,
|
|
1599
1681
|
minDimensions: {
|
|
1600
|
-
width:
|
|
1601
|
-
height:
|
|
1682
|
+
width: n.minWidthPixels,
|
|
1683
|
+
height: n.minHeightPixels
|
|
1602
1684
|
}
|
|
1603
1685
|
})
|
|
1604
1686
|
);
|
|
1605
|
-
const
|
|
1687
|
+
const p = await fetch(l, {
|
|
1606
1688
|
method: "POST",
|
|
1607
|
-
body:
|
|
1689
|
+
body: y,
|
|
1608
1690
|
headers: {
|
|
1609
1691
|
Authorization: `Bearer ${h}`
|
|
1610
1692
|
}
|
|
1611
1693
|
});
|
|
1612
|
-
if (
|
|
1613
|
-
const
|
|
1614
|
-
throw new
|
|
1694
|
+
if (p.status === 422) {
|
|
1695
|
+
const S = await p.json();
|
|
1696
|
+
throw new Sr(S.message, ms.minDimension);
|
|
1615
1697
|
}
|
|
1616
|
-
if (!
|
|
1698
|
+
if (!p.ok)
|
|
1617
1699
|
throw new Error("Failed to stage files");
|
|
1618
|
-
return await
|
|
1619
|
-
}, g(this,
|
|
1700
|
+
return await p.json();
|
|
1701
|
+
}, this.unitEvaluate = async (e, r) => (await a(this, $t)).unitEvaluate(e, r).then((c) => o(c)), g(this, $t, i), g(this, At, t);
|
|
1620
1702
|
}
|
|
1621
1703
|
}
|
|
1622
|
-
|
|
1623
|
-
var
|
|
1624
|
-
class
|
|
1704
|
+
$t = new WeakMap(), At = new WeakMap();
|
|
1705
|
+
var Kt;
|
|
1706
|
+
class Wr {
|
|
1625
1707
|
constructor(i) {
|
|
1626
|
-
u(this,
|
|
1708
|
+
u(this, Kt);
|
|
1627
1709
|
this.setMinimum = async (t, e) => {
|
|
1628
1710
|
const r = { minValue: { value: e } };
|
|
1629
1711
|
return this.applyPropertiesUpdate(t, r);
|
|
@@ -1648,18 +1730,18 @@ class $r {
|
|
|
1648
1730
|
}, this.setNumberOfDecimals = async (t, e) => {
|
|
1649
1731
|
const r = { numberOfDecimals: { value: e } };
|
|
1650
1732
|
return this.applyPropertiesUpdate(t, r);
|
|
1651
|
-
}, g(this,
|
|
1733
|
+
}, g(this, Kt, i);
|
|
1652
1734
|
}
|
|
1653
1735
|
async applyPropertiesUpdate(i, t) {
|
|
1654
|
-
const r = await (await a(this,
|
|
1736
|
+
const r = await (await a(this, Kt)).updateNumberVariableProperties(i, JSON.stringify(t));
|
|
1655
1737
|
return o(r);
|
|
1656
1738
|
}
|
|
1657
1739
|
}
|
|
1658
|
-
|
|
1659
|
-
var
|
|
1660
|
-
class
|
|
1740
|
+
Kt = new WeakMap();
|
|
1741
|
+
var zt;
|
|
1742
|
+
class jr {
|
|
1661
1743
|
constructor(i) {
|
|
1662
|
-
u(this,
|
|
1744
|
+
u(this, zt);
|
|
1663
1745
|
this.setDisplayFormat = async (t, e) => {
|
|
1664
1746
|
const r = { displayFormat: { value: e } };
|
|
1665
1747
|
return this.applyPropertiesUpdate(t, r);
|
|
@@ -1675,16 +1757,16 @@ class Kr {
|
|
|
1675
1757
|
}, this.setExcludedDays = async (t, e) => {
|
|
1676
1758
|
const r = { excludedDays: { value: e } };
|
|
1677
1759
|
return this.applyPropertiesUpdate(t, r);
|
|
1678
|
-
}, g(this,
|
|
1760
|
+
}, g(this, zt, i);
|
|
1679
1761
|
}
|
|
1680
1762
|
async applyPropertiesUpdate(i, t) {
|
|
1681
|
-
const r = await (await a(this,
|
|
1763
|
+
const r = await (await a(this, zt)).updateDateVariableProperties(i, JSON.stringify(t));
|
|
1682
1764
|
return o(r);
|
|
1683
1765
|
}
|
|
1684
1766
|
}
|
|
1685
|
-
|
|
1686
|
-
var m,
|
|
1687
|
-
let
|
|
1767
|
+
zt = new WeakMap();
|
|
1768
|
+
var m, Pt, Ft, hs;
|
|
1769
|
+
let rs = (hs = class {
|
|
1688
1770
|
/**
|
|
1689
1771
|
* @ignore
|
|
1690
1772
|
*/
|
|
@@ -1693,7 +1775,7 @@ let es = (os = class {
|
|
|
1693
1775
|
* @ignore
|
|
1694
1776
|
*/
|
|
1695
1777
|
u(this, m);
|
|
1696
|
-
u(this,
|
|
1778
|
+
u(this, Pt);
|
|
1697
1779
|
u(this, Ft);
|
|
1698
1780
|
this.getAll = async () => (await a(this, m)).getVariables().then((e) => o(e)).then((e) => {
|
|
1699
1781
|
const r = e;
|
|
@@ -1704,18 +1786,18 @@ let es = (os = class {
|
|
|
1704
1786
|
}), this.getByName = async (t) => (await a(this, m)).getVariableByName(t).then((r) => o(r)).then((r) => {
|
|
1705
1787
|
const n = r;
|
|
1706
1788
|
return n.parsedData && (n.parsedData = this.makeVariableBackwardsCompatible(n.parsedData)), n;
|
|
1707
|
-
}), this.create = async (t, e) => (await a(this, m)).addVariable(t, e).then((n) => o(n)), this.remove = async (t) => (await a(this, m)).removeVariables(t).then((r) => o(r)), this.rename = async (t, e) => (await a(this, m)).setVariableName(t, e).then((n) => o(n)), this.setLabel = async (t, e) => (await a(this, m)).setVariableLabel(t, e).then((n) => o(n)), g(this,
|
|
1789
|
+
}), this.create = async (t, e) => (await a(this, m)).addVariable(t, e).then((n) => o(n)), this.remove = async (t) => (await a(this, m)).removeVariables(t).then((r) => o(r)), this.rename = async (t, e) => (await a(this, m)).setVariableName(t, e).then((n) => o(n)), this.setLabel = async (t, e) => (await a(this, m)).setVariableLabel(t, e).then((n) => o(n)), g(this, Pt, async (t, e) => (await a(this, m)).setVariablePlaceholder(t, e).then((n) => o(n))), this.setPlaceholder = async (t, e) => a(this, Pt).call(this, t, e), this.resetPlaceholder = async (t) => a(this, Pt).call(this, t, null), g(this, Ft, async (t, e) => (await a(this, m)).setVariableHelpText(t, e).then((n) => o(n))), this.setHelpText = async (t, e) => a(this, Ft).call(this, t, e), this.resetHelpText = async (t) => a(this, Ft).call(this, t, null), this.setType = async (t, e) => (await a(this, m)).setVariableType(t, e).then((n) => o(n)), this.setListVariable = async (t, e) => (await a(this, m)).setListVariableItems(
|
|
1708
1790
|
t,
|
|
1709
1791
|
e.map((n) => JSON.stringify({ value: n }))
|
|
1710
1792
|
).then((n) => o(n)), this.setValue = async (t, e) => (await a(this, m)).setVariableValue(t, e).then((n) => o(n)), this.duplicate = async (t) => (await a(this, m)).duplicateVariable(t).then((r) => o(r)), this.groupVariables = async (t, e) => (await a(this, m)).groupVariables(t, e).then((n) => o(n)), this.ungroupVariables = async (t) => (await a(this, m)).ungroupVariable(t).then((r) => o(r)), this.move = async (t, e, r) => (await a(this, m)).moveVariable(e, r, t).then((c) => o(c)), this.moveVariables = async (t, e, r) => (await a(this, m)).moveVariables(e, r, t).then((c) => o(c)), this.setIsVisible = async (t, e) => {
|
|
1711
|
-
const r = e ? { type:
|
|
1793
|
+
const r = e ? { type: xt.visible } : { type: xt.invisible };
|
|
1712
1794
|
return this.setVariableVisibility(t, r);
|
|
1713
1795
|
}, this.setIsHidden = async (t, e) => {
|
|
1714
|
-
const r = e ? { type:
|
|
1796
|
+
const r = e ? { type: xt.invisible } : { type: xt.visible };
|
|
1715
1797
|
return this.setVariableVisibility(t, r);
|
|
1716
1798
|
}, this.setVariableVisibility = async (t, e) => (await a(this, m)).setVariableVisibility(t, JSON.stringify(e)).then((n) => o(n)), this.setLayoutsForVariableVisibility = async (t) => (await a(this, m)).setLayoutsForVariableVisibility(t ? JSON.stringify(t) : null).then((r) => o(r)), this.setIsRequired = async (t, e) => (await a(this, m)).setVariableIsRequired(t, e).then((n) => o(n)), this.setRemoveParagraphIfEmpty = async (t, e) => (await a(this, m)).setVariableRemoveParagraphIfEmpty(t, e).then((n) => o(n)), this.setIsReadonly = async (t, e) => (await a(this, m)).setVariableIsReadonly(t, e).then((n) => o(n)), this.getImageVariableConnectorId = async (t) => (await a(this, m)).getImageVariableConnectorId(t).then((r) => o(r)), this.setImageVariableConnector = async (t, e) => {
|
|
1717
|
-
const r = await a(this, m), c = new
|
|
1718
|
-
return r.setImageVariableConnector(t, JSON.stringify(c)).then((
|
|
1799
|
+
const r = await a(this, m), c = new oe().makeConnectorSourceForwardsCompatible(e);
|
|
1800
|
+
return r.setImageVariableConnector(t, JSON.stringify(c)).then((l) => o(l));
|
|
1719
1801
|
}, this.setImageVariableValueWithContext = async (t, e, r) => (await a(this, m)).setImageVariableValueWithContext(t, e, JSON.stringify(r)).then((c) => o(c)), this.removeSource = async (t) => this.setValue(t, null), this.setPrefix = async (t, e) => {
|
|
1720
1802
|
const r = { prefix: { value: e } };
|
|
1721
1803
|
return this.applyPrefixSuffixDeltaUpdate(t, r);
|
|
@@ -1728,13 +1810,13 @@ let es = (os = class {
|
|
|
1728
1810
|
}, this.setSuffixCharacterStyle = async (t, e) => {
|
|
1729
1811
|
const r = { suffixCharacterStyleId: { value: e } };
|
|
1730
1812
|
return this.applyPrefixSuffixDeltaUpdate(t, r);
|
|
1731
|
-
}, this.setPrivateData = async (t, e) => (await a(this, m)).setVariablePrivateData(t, JSON.stringify(e)).then((n) => o(n)), this.getPrivateData = async (t) => (await a(this, m)).getVariablePrivateData(t).then((r) => o(r)), this.setAllowImageQuery = async (t, e) => (await a(this, m)).setImageVariableAllowQuery(t, e).then((n) => o(n)), this.setAllowImageUpload = async (t, e) => (await a(this, m)).setImageVariableAllowUpload(t, e).then((n) => o(n)), this.setMinImageUploadSize = async (t, e, r) => (await a(this, m)).setImageVariableUploadMinSize(t, e, r).then((c) => o(c)), g(this, m, i), this.number = new
|
|
1813
|
+
}, this.setPrivateData = async (t, e) => (await a(this, m)).setVariablePrivateData(t, JSON.stringify(e)).then((n) => o(n)), this.getPrivateData = async (t) => (await a(this, m)).getVariablePrivateData(t).then((r) => o(r)), this.setAllowImageQuery = async (t, e) => (await a(this, m)).setImageVariableAllowQuery(t, e).then((n) => o(n)), this.setAllowImageUpload = async (t, e) => (await a(this, m)).setImageVariableAllowUpload(t, e).then((n) => o(n)), this.setMinImageUploadSize = async (t, e, r) => (await a(this, m)).setImageVariableUploadMinSize(t, e, r).then((c) => o(c)), g(this, m, i), this.number = new Wr(a(this, m)), this.date = new jr(a(this, m));
|
|
1732
1814
|
}
|
|
1733
1815
|
makeVariablesBackwardsCompatible(i) {
|
|
1734
1816
|
return i.map((t) => this.makeVariableBackwardsCompatible(t));
|
|
1735
1817
|
}
|
|
1736
1818
|
makeVariableBackwardsCompatible(i) {
|
|
1737
|
-
return i.type !==
|
|
1819
|
+
return i.type !== ce.list ? i : this.makeListVariableBackwardsCompatible(i);
|
|
1738
1820
|
}
|
|
1739
1821
|
makeListVariableBackwardsCompatible(i) {
|
|
1740
1822
|
const t = i, e = i.items, r = i.selected, n = e.map((c) => c.value);
|
|
@@ -1744,8 +1826,8 @@ let es = (os = class {
|
|
|
1744
1826
|
const r = await (await a(this, m)).updateVariablePrefixSuffixProperties(i, JSON.stringify(t));
|
|
1745
1827
|
return o(r);
|
|
1746
1828
|
}
|
|
1747
|
-
}, m = new WeakMap(),
|
|
1748
|
-
class
|
|
1829
|
+
}, m = new WeakMap(), Pt = new WeakMap(), Ft = new WeakMap(), hs);
|
|
1830
|
+
class qr {
|
|
1749
1831
|
/**
|
|
1750
1832
|
* @ignore
|
|
1751
1833
|
*/
|
|
@@ -1761,8 +1843,8 @@ class zr {
|
|
|
1761
1843
|
}, this.config = i;
|
|
1762
1844
|
}
|
|
1763
1845
|
}
|
|
1764
|
-
var
|
|
1765
|
-
class
|
|
1846
|
+
var ot;
|
|
1847
|
+
class Yr {
|
|
1766
1848
|
/**
|
|
1767
1849
|
* @ignore
|
|
1768
1850
|
*/
|
|
@@ -1770,24 +1852,24 @@ class Wr {
|
|
|
1770
1852
|
/**
|
|
1771
1853
|
* @ignore
|
|
1772
1854
|
*/
|
|
1773
|
-
u(this,
|
|
1774
|
-
this.getAll = async () => (await a(this,
|
|
1855
|
+
u(this, ot);
|
|
1856
|
+
this.getAll = async () => (await a(this, ot)).getVariables().then((e) => o(e)), this.getById = async (t) => (await a(this, ot)).getVariableById(t).then((r) => o(r)), this.getByName = async (t) => (await a(this, ot)).getVariableByName(t).then((r) => o(r)), this.setListVariable = async (t, e) => (await a(this, ot)).setListVariableItems(
|
|
1775
1857
|
t,
|
|
1776
1858
|
e.map((n) => JSON.stringify(n))
|
|
1777
|
-
).then((n) => o(n)), g(this,
|
|
1859
|
+
).then((n) => o(n)), g(this, ot, i), this.image = new Zr(i);
|
|
1778
1860
|
}
|
|
1779
1861
|
}
|
|
1780
|
-
|
|
1781
|
-
var
|
|
1782
|
-
class
|
|
1862
|
+
ot = new WeakMap();
|
|
1863
|
+
var Y;
|
|
1864
|
+
class Zr {
|
|
1783
1865
|
constructor(i) {
|
|
1784
|
-
u(this,
|
|
1785
|
-
this.setAllowQuery = async (t, e) => (await a(this,
|
|
1866
|
+
u(this, Y);
|
|
1867
|
+
this.setAllowQuery = async (t, e) => (await a(this, Y)).setImageVariableAllowQuery(t, e).then((n) => o(n)), this.setAllowUpload = async (t, e) => (await a(this, Y)).setImageVariableAllowUpload(t, e).then((n) => o(n)), this.setMinUploadSize = async (t, e, r) => (await a(this, Y)).setImageVariableUploadMinSize(t, e, r).then((c) => o(c)), this.setConnector = async (t, e) => (await a(this, Y)).setImageVariableConnector(t, JSON.stringify(e)).then((n) => o(n)), this.setConnectorContext = async (t, e) => (await a(this, Y)).setImageVariableConnectorContext(t, JSON.stringify(e)).then((n) => o(n)), g(this, Y, i);
|
|
1786
1868
|
}
|
|
1787
1869
|
}
|
|
1788
|
-
|
|
1870
|
+
Y = new WeakMap();
|
|
1789
1871
|
var Ct;
|
|
1790
|
-
class
|
|
1872
|
+
class Qr {
|
|
1791
1873
|
/**
|
|
1792
1874
|
* @ignore
|
|
1793
1875
|
*/
|
|
@@ -1800,8 +1882,8 @@ class jr {
|
|
|
1800
1882
|
}
|
|
1801
1883
|
}
|
|
1802
1884
|
Ct = new WeakMap();
|
|
1803
|
-
var Et,
|
|
1804
|
-
class
|
|
1885
|
+
var Et, qt;
|
|
1886
|
+
class Xr {
|
|
1805
1887
|
/**
|
|
1806
1888
|
* @ignore
|
|
1807
1889
|
*/
|
|
@@ -1813,22 +1895,22 @@ class Yr {
|
|
|
1813
1895
|
/**
|
|
1814
1896
|
* @ignore
|
|
1815
1897
|
*/
|
|
1816
|
-
u(this,
|
|
1817
|
-
this.setWidth = async (t) => (await a(this, Et)).setPageWidth(t).then((r) => o(r)), this.setHeight = async (t) => (await a(this, Et)).setPageHeight(t).then((r) => o(r)), g(this, Et, i), g(this,
|
|
1898
|
+
u(this, qt);
|
|
1899
|
+
this.setWidth = async (t) => (await a(this, Et)).setPageWidth(t).then((r) => o(r)), this.setHeight = async (t) => (await a(this, Et)).setPageHeight(t).then((r) => o(r)), g(this, Et, i), g(this, qt, i);
|
|
1818
1900
|
}
|
|
1819
1901
|
}
|
|
1820
|
-
Et = new WeakMap(),
|
|
1821
|
-
class
|
|
1902
|
+
Et = new WeakMap(), qt = new WeakMap();
|
|
1903
|
+
class ns {
|
|
1822
1904
|
/**
|
|
1823
1905
|
* The next initiator is a split off on SDK level to tag next features
|
|
1824
1906
|
* The SDK should be configured clientside and it exposes all controllers to work with in other applications
|
|
1825
1907
|
* @param config The configuration object where the SDK and editor can get configured
|
|
1826
1908
|
*/
|
|
1827
1909
|
constructor(i, t, e) {
|
|
1828
|
-
this.config = i, this.connection = t, this.editorAPI = e, this.subscriber = new
|
|
1910
|
+
this.config = i, this.connection = t, this.editorAPI = e, this.subscriber = new qr(i), this.variable = new Yr(this.editorAPI), this.connector = new Qr(this.editorAPI), this.page = new Xr(this.editorAPI), this.canvas = new ee(this.editorAPI);
|
|
1829
1911
|
}
|
|
1830
1912
|
}
|
|
1831
|
-
class
|
|
1913
|
+
class bs {
|
|
1832
1914
|
constructor(i) {
|
|
1833
1915
|
this.logger = i;
|
|
1834
1916
|
}
|
|
@@ -1845,12 +1927,12 @@ class fs {
|
|
|
1845
1927
|
handleError(i, t, e) {
|
|
1846
1928
|
var r;
|
|
1847
1929
|
if (t === Bt.log)
|
|
1848
|
-
(r = this.logger) == null || r.call(this,
|
|
1930
|
+
(r = this.logger) == null || r.call(this, M.error, Ss.event, `Error in callback ${e}: ${i}`);
|
|
1849
1931
|
else
|
|
1850
1932
|
throw i;
|
|
1851
1933
|
}
|
|
1852
1934
|
}
|
|
1853
|
-
class
|
|
1935
|
+
class as extends bs {
|
|
1854
1936
|
constructor(i, t) {
|
|
1855
1937
|
super(t), this.handler = i;
|
|
1856
1938
|
}
|
|
@@ -1866,7 +1948,7 @@ class rs extends fs {
|
|
|
1866
1948
|
return this.createEventHandlerFn(t, Bt.throw)(...i);
|
|
1867
1949
|
}
|
|
1868
1950
|
}
|
|
1869
|
-
class C extends
|
|
1951
|
+
class C extends bs {
|
|
1870
1952
|
constructor(i, t) {
|
|
1871
1953
|
super(t), this.legacyHandler = i, this.subscriptions = /* @__PURE__ */ new Set();
|
|
1872
1954
|
}
|
|
@@ -1899,7 +1981,7 @@ class C extends fs {
|
|
|
1899
1981
|
};
|
|
1900
1982
|
}
|
|
1901
1983
|
}
|
|
1902
|
-
class
|
|
1984
|
+
class he {
|
|
1903
1985
|
/**
|
|
1904
1986
|
* Creates a runtime configuration object from the provided configuration object.
|
|
1905
1987
|
*
|
|
@@ -1907,38 +1989,38 @@ class ie {
|
|
|
1907
1989
|
* @returns The runtime configuration object.
|
|
1908
1990
|
*/
|
|
1909
1991
|
static createRuntimeConfig(i) {
|
|
1910
|
-
var e, r, n, c,
|
|
1992
|
+
var e, r, n, c, l, h, y, p, I, S, f, b, A, v, N, x, P, K, z, mt, wt, le, de, ue, ge, ye, pe, Ce, me, we, fe, Se, be, Ie, ve;
|
|
1911
1993
|
const t = { ...i };
|
|
1912
1994
|
return t.logging = {
|
|
1913
|
-
logLevel: ((e = i.logging) == null ? void 0 : e.logLevel) ||
|
|
1914
|
-
logger: ((r = i.logging) == null ? void 0 : r.logger) || ((Lt,
|
|
1915
|
-
var
|
|
1916
|
-
if (
|
|
1995
|
+
logLevel: ((e = i.logging) == null ? void 0 : e.logLevel) || M.error,
|
|
1996
|
+
logger: ((r = i.logging) == null ? void 0 : r.logger) || ((Lt, Yt, Zt) => {
|
|
1997
|
+
var Ae;
|
|
1998
|
+
if (he.isLoggingEnabled(Lt, ((Ae = t.logging) == null ? void 0 : Ae.logLevel) ?? M.error))
|
|
1917
1999
|
switch (Lt) {
|
|
1918
|
-
case
|
|
1919
|
-
console.error(`[${
|
|
2000
|
+
case M.error:
|
|
2001
|
+
console.error(`[${Yt}] [${Lt}] ${Zt}`);
|
|
1920
2002
|
break;
|
|
1921
|
-
case
|
|
1922
|
-
console.warn(`[${
|
|
2003
|
+
case M.warn:
|
|
2004
|
+
console.warn(`[${Yt}] [${Lt}] ${Zt}`);
|
|
1923
2005
|
break;
|
|
1924
2006
|
default:
|
|
1925
|
-
console.log(`[${
|
|
2007
|
+
console.log(`[${Yt}] [${Lt}] ${Zt}`);
|
|
1926
2008
|
}
|
|
1927
2009
|
})
|
|
1928
2010
|
}, t.handlers = {
|
|
1929
|
-
onAuthExpired: new
|
|
1930
|
-
onViewportRequested: new
|
|
2011
|
+
onAuthExpired: new as(() => t.onAuthExpired, (n = t.logging) == null ? void 0 : n.logger),
|
|
2012
|
+
onViewportRequested: new as(
|
|
1931
2013
|
() => t.onViewportRequested,
|
|
1932
2014
|
(c = t.logging) == null ? void 0 : c.logger
|
|
1933
2015
|
)
|
|
1934
2016
|
}, t.events = {
|
|
1935
2017
|
onActionsChanged: new C(
|
|
1936
2018
|
() => t.onActionsChanged,
|
|
1937
|
-
(
|
|
2019
|
+
(l = t.logging) == null ? void 0 : l.logger
|
|
1938
2020
|
),
|
|
1939
2021
|
onStateChanged: new C(
|
|
1940
2022
|
() => t.onStateChanged,
|
|
1941
|
-
(
|
|
2023
|
+
(h = t.logging) == null ? void 0 : h.logger
|
|
1942
2024
|
),
|
|
1943
2025
|
onDocumentLoaded: new C(
|
|
1944
2026
|
() => t.onDocumentLoaded,
|
|
@@ -1950,15 +2032,15 @@ class ie {
|
|
|
1950
2032
|
),
|
|
1951
2033
|
onFramesLayoutChanged: new C(
|
|
1952
2034
|
() => t.onFramesLayoutChanged,
|
|
1953
|
-
(
|
|
2035
|
+
(I = t.logging) == null ? void 0 : I.logger
|
|
1954
2036
|
),
|
|
1955
2037
|
onSelectedFramesContentChanged: new C(
|
|
1956
2038
|
() => t.onSelectedFramesContentChanged,
|
|
1957
|
-
(
|
|
2039
|
+
(S = t.logging) == null ? void 0 : S.logger
|
|
1958
2040
|
),
|
|
1959
2041
|
onPageSelectionChanged: new C(
|
|
1960
2042
|
() => t.onPageSelectionChanged,
|
|
1961
|
-
(
|
|
2043
|
+
(f = t.logging) == null ? void 0 : f.logger
|
|
1962
2044
|
),
|
|
1963
2045
|
onSelectedLayoutPropertiesChanged: new C(
|
|
1964
2046
|
() => t.onSelectedLayoutPropertiesChanged,
|
|
@@ -1966,11 +2048,11 @@ class ie {
|
|
|
1966
2048
|
),
|
|
1967
2049
|
onSelectedLayoutUnitChanged: new C(
|
|
1968
2050
|
() => t.onSelectedLayoutUnitChanged,
|
|
1969
|
-
(
|
|
2051
|
+
(A = t.logging) == null ? void 0 : A.logger
|
|
1970
2052
|
),
|
|
1971
2053
|
onScrubberPositionChanged: new C(
|
|
1972
2054
|
() => t.onScrubberPositionChanged,
|
|
1973
|
-
(
|
|
2055
|
+
(v = t.logging) == null ? void 0 : v.logger
|
|
1974
2056
|
),
|
|
1975
2057
|
onFrameAnimationsChanged: new C(
|
|
1976
2058
|
() => t.onFrameAnimationsChanged,
|
|
@@ -1978,19 +2060,19 @@ class ie {
|
|
|
1978
2060
|
),
|
|
1979
2061
|
onVariableListChanged: new C(
|
|
1980
2062
|
() => t.onVariableListChanged,
|
|
1981
|
-
(
|
|
2063
|
+
(x = t.logging) == null ? void 0 : x.logger
|
|
1982
2064
|
),
|
|
1983
2065
|
onSelectedToolChanged: new C(
|
|
1984
2066
|
() => t.onSelectedToolChanged,
|
|
1985
|
-
(
|
|
2067
|
+
(P = t.logging) == null ? void 0 : P.logger
|
|
1986
2068
|
),
|
|
1987
2069
|
onUndoStackStateChanged: new C(
|
|
1988
2070
|
() => t.onUndoStackStateChanged,
|
|
1989
|
-
(
|
|
2071
|
+
(K = t.logging) == null ? void 0 : K.logger
|
|
1990
2072
|
),
|
|
1991
2073
|
onSelectedLayoutFramesChanged: new C(
|
|
1992
2074
|
() => t.onSelectedLayoutFramesChanged,
|
|
1993
|
-
(
|
|
2075
|
+
(z = t.logging) == null ? void 0 : z.logger
|
|
1994
2076
|
),
|
|
1995
2077
|
onSelectedTextStyleChanged: new C(
|
|
1996
2078
|
() => t.onSelectedTextStyleChanged,
|
|
@@ -2002,35 +2084,35 @@ class ie {
|
|
|
2002
2084
|
),
|
|
2003
2085
|
onParagraphStylesChanged: new C(
|
|
2004
2086
|
() => t.onParagraphStylesChanged,
|
|
2005
|
-
(
|
|
2087
|
+
(le = t.logging) == null ? void 0 : le.logger
|
|
2006
2088
|
),
|
|
2007
2089
|
onCharacterStylesChanged: new C(
|
|
2008
2090
|
() => t.onCharacterStylesChanged,
|
|
2009
|
-
(
|
|
2091
|
+
(de = t.logging) == null ? void 0 : de.logger
|
|
2010
2092
|
),
|
|
2011
2093
|
onFontFamiliesChanged: new C(
|
|
2012
2094
|
() => t.onFontFamiliesChanged,
|
|
2013
|
-
(
|
|
2095
|
+
(ue = t.logging) == null ? void 0 : ue.logger
|
|
2014
2096
|
),
|
|
2015
2097
|
onSelectedLayoutIdChanged: new C(
|
|
2016
2098
|
() => t.onSelectedLayoutIdChanged,
|
|
2017
|
-
(
|
|
2099
|
+
(ge = t.logging) == null ? void 0 : ge.logger
|
|
2018
2100
|
),
|
|
2019
2101
|
onLayoutsChanged: new C(
|
|
2020
2102
|
() => t.onLayoutsChanged,
|
|
2021
|
-
(
|
|
2103
|
+
(ye = t.logging) == null ? void 0 : ye.logger
|
|
2022
2104
|
),
|
|
2023
2105
|
onConnectorEvent: new C(
|
|
2024
2106
|
() => t.onConnectorEvent,
|
|
2025
|
-
(
|
|
2107
|
+
(pe = t.logging) == null ? void 0 : pe.logger
|
|
2026
2108
|
),
|
|
2027
2109
|
onConnectorsChanged: new C(
|
|
2028
2110
|
() => t.onConnectorsChanged,
|
|
2029
|
-
(
|
|
2111
|
+
(Ce = t.logging) == null ? void 0 : Ce.logger
|
|
2030
2112
|
),
|
|
2031
2113
|
onZoomChanged: new C(
|
|
2032
2114
|
() => t.onZoomChanged,
|
|
2033
|
-
(
|
|
2115
|
+
(me = t.logging) == null ? void 0 : me.logger
|
|
2034
2116
|
),
|
|
2035
2117
|
onSelectedPageIdChanged: new C(
|
|
2036
2118
|
() => t.onSelectedPageIdChanged,
|
|
@@ -2046,25 +2128,25 @@ class ie {
|
|
|
2046
2128
|
),
|
|
2047
2129
|
onPageSizeChanged: new C(
|
|
2048
2130
|
() => t.onPageSizeChanged,
|
|
2049
|
-
(
|
|
2131
|
+
(we = t.logging) == null ? void 0 : we.logger
|
|
2050
2132
|
),
|
|
2051
2133
|
onShapeCornerRadiusChanged: new C(
|
|
2052
2134
|
() => t.onShapeCornerRadiusChanged,
|
|
2053
|
-
(
|
|
2135
|
+
(fe = t.logging) == null ? void 0 : fe.logger
|
|
2054
2136
|
),
|
|
2055
2137
|
onCropActiveFrameIdChanged: new C(
|
|
2056
2138
|
() => t.onCropActiveFrameIdChanged,
|
|
2057
|
-
(
|
|
2139
|
+
(Se = t.logging) == null ? void 0 : Se.logger
|
|
2058
2140
|
),
|
|
2059
2141
|
onAsyncError: new C(
|
|
2060
2142
|
() => t.onAsyncError,
|
|
2061
|
-
(
|
|
2143
|
+
(be = t.logging) == null ? void 0 : be.logger
|
|
2062
2144
|
),
|
|
2063
2145
|
onViewModeChanged: new C(
|
|
2064
2146
|
() => t.onViewModeChanged,
|
|
2065
|
-
(
|
|
2147
|
+
(Ie = t.logging) == null ? void 0 : Ie.logger
|
|
2066
2148
|
),
|
|
2067
|
-
onBarcodeValidationChanged: new C(() => t.onBarcodeValidationChanged, (
|
|
2149
|
+
onBarcodeValidationChanged: new C(() => t.onBarcodeValidationChanged, (ve = t.logging) == null ? void 0 : ve.logger),
|
|
2068
2150
|
onDataSourceIdChanged: new C(
|
|
2069
2151
|
() => t.onDataSourceIdChanged,
|
|
2070
2152
|
t.logging.logger
|
|
@@ -2088,10 +2170,10 @@ class ie {
|
|
|
2088
2170
|
}, t;
|
|
2089
2171
|
}
|
|
2090
2172
|
static isLoggingEnabled(i, t) {
|
|
2091
|
-
return t ==
|
|
2173
|
+
return t == M.info || t == M.warn && (i == M.warn || i == M.error) ? !0 : t == M.error && i == M.error;
|
|
2092
2174
|
}
|
|
2093
2175
|
}
|
|
2094
|
-
class
|
|
2176
|
+
class tn {
|
|
2095
2177
|
/**
|
|
2096
2178
|
* Checks if the given value is a `DatePropertyWrapper`.
|
|
2097
2179
|
*
|
|
@@ -2141,8 +2223,8 @@ class Zr {
|
|
|
2141
2223
|
}), t;
|
|
2142
2224
|
}
|
|
2143
2225
|
}
|
|
2144
|
-
var
|
|
2145
|
-
class
|
|
2226
|
+
var ct;
|
|
2227
|
+
class en {
|
|
2146
2228
|
/**
|
|
2147
2229
|
* @ignore
|
|
2148
2230
|
*/
|
|
@@ -2150,8 +2232,8 @@ class Qr {
|
|
|
2150
2232
|
/**
|
|
2151
2233
|
* @ignore
|
|
2152
2234
|
*/
|
|
2153
|
-
u(this,
|
|
2154
|
-
g(this,
|
|
2235
|
+
u(this, ct);
|
|
2236
|
+
g(this, ct, i);
|
|
2155
2237
|
}
|
|
2156
2238
|
/**
|
|
2157
2239
|
* This method returns the value for a given configuration key. If a value was not found in the configuration store
|
|
@@ -2159,7 +2241,7 @@ class Qr {
|
|
|
2159
2241
|
* @returns value for a given configuration key
|
|
2160
2242
|
*/
|
|
2161
2243
|
async getValue(i) {
|
|
2162
|
-
return (await a(this,
|
|
2244
|
+
return (await a(this, ct)).getConfigValue(i).then((e) => o(e));
|
|
2163
2245
|
}
|
|
2164
2246
|
/**
|
|
2165
2247
|
* This method sets, or overrides the value for a given key. Null values are not allowed for both key and value,
|
|
@@ -2167,26 +2249,26 @@ class Qr {
|
|
|
2167
2249
|
* @returns
|
|
2168
2250
|
*/
|
|
2169
2251
|
async setValue(i, t) {
|
|
2170
|
-
return (await a(this,
|
|
2252
|
+
return (await a(this, ct)).setConfigValue(i, t).then((r) => o(r));
|
|
2171
2253
|
}
|
|
2172
2254
|
/**
|
|
2173
2255
|
* This method updates the studio options. Only defined options are updated, null values are ignored.
|
|
2174
2256
|
* @returns
|
|
2175
2257
|
*/
|
|
2176
2258
|
async updateStudioOptions(i) {
|
|
2177
|
-
return (await a(this,
|
|
2259
|
+
return (await a(this, ct)).updateStudioOptions(JSON.stringify(i)).then((e) => o(e));
|
|
2178
2260
|
}
|
|
2179
2261
|
/**
|
|
2180
2262
|
* This method returns the engine session id. This id is unique for this engine session
|
|
2181
2263
|
* @returns the engine session id
|
|
2182
2264
|
*/
|
|
2183
2265
|
async getEngineSessionId() {
|
|
2184
|
-
return (await a(this,
|
|
2266
|
+
return (await a(this, ct)).getEngineSessionId().then((t) => o(t));
|
|
2185
2267
|
}
|
|
2186
2268
|
}
|
|
2187
|
-
|
|
2269
|
+
ct = new WeakMap();
|
|
2188
2270
|
var Dt;
|
|
2189
|
-
class
|
|
2271
|
+
class is extends en {
|
|
2190
2272
|
/**
|
|
2191
2273
|
* @ignore
|
|
2192
2274
|
*/
|
|
@@ -2227,18 +2309,18 @@ class ns extends Qr {
|
|
|
2227
2309
|
}
|
|
2228
2310
|
}
|
|
2229
2311
|
Dt = new WeakMap();
|
|
2230
|
-
const
|
|
2231
|
-
let
|
|
2232
|
-
class
|
|
2312
|
+
const sn = "studio-cdn.chiligrafx.com", rn = `https://${sn}/editor/${ls.current}/web`;
|
|
2313
|
+
let X;
|
|
2314
|
+
class Rn {
|
|
2233
2315
|
/**
|
|
2234
2316
|
* The SDK should be configured clientside and it exposes all controllers to work with in other applications
|
|
2235
2317
|
* @param config The configuration object where the SDK and editor can get configured
|
|
2236
2318
|
*/
|
|
2237
2319
|
constructor(i) {
|
|
2238
|
-
this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new
|
|
2320
|
+
this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new tn(), this.loadEditor = () => {
|
|
2239
2321
|
var t;
|
|
2240
|
-
|
|
2241
|
-
this.config.editorLink ||
|
|
2322
|
+
qs(
|
|
2323
|
+
this.config.editorLink || rn,
|
|
2242
2324
|
{
|
|
2243
2325
|
onActionsChanged: this.subscriber.onActionsChanged,
|
|
2244
2326
|
onStateChanged: this.subscriber.onStateChanged,
|
|
@@ -2294,110 +2376,111 @@ class Nn {
|
|
|
2294
2376
|
this.setConnection,
|
|
2295
2377
|
this.config.editorId,
|
|
2296
2378
|
this.config.studioStyling
|
|
2297
|
-
), this.editorAPI =
|
|
2298
|
-
|
|
2299
|
-
this.config.documentType ||
|
|
2300
|
-
), this.configuration.updateStudioOptions(this.config.studioOptions ||
|
|
2301
|
-
|
|
2379
|
+
), this.editorAPI = X == null ? void 0 : X.promise.then((e) => e), this.action = new De(this.editorAPI), this.layout = new qe(this.editorAPI), this.frame = new We(this.editorAPI), this.barcode = new Oe(this.editorAPI), this.animation = new Le(this.editorAPI), this.document = new _e(this.editorAPI), this.configuration = new is(this.editorAPI, this.localConfig), this.utils = new ss(this.editorAPI, this.localConfig), this.tool = new ts(this.editorAPI), this.page = new Ze(this.editorAPI), this.debug = new He(this.editorAPI), this.undoManager = new es(this.editorAPI, this), this.textSelection = new Xe(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.paragraphStyle = new Qe(this.editorAPI), this.characterStyle = new Ve(this.editorAPI), this.mediaConnector = new Ye(this.editorAPI), this.fontConnector = new Ke(this.editorAPI), this.dataConnector = new Ge(this.editorAPI, this.dataItemMappingTools), this.dataSource = new Te(this.editorAPI, this.dataItemMappingTools), this.connector = new Ue(this.editorAPI, this.localConfig), this.variable = new rs(this.editorAPI), this.font = new ze(this.editorAPI), this.experiment = new $e(this.editorAPI), this.canvas = new ee(this.editorAPI), this.shape = new ne(this.editorAPI), this.colorConversion = new Je(this.editorAPI), this.info = new je(), this.clipboard = new Be(this.editorAPI), this.brandKit = new Re(this.editorAPI, this), this.next = new ns(this.config, this.connection, this.editorAPI), this.configuration.setValue(Q.GraFxStudioSdkVersion, ds.version), this.configuration.setValue(
|
|
2380
|
+
Q.GraFxStudioDocumentType,
|
|
2381
|
+
this.config.documentType || ps.template
|
|
2382
|
+
), this.configuration.updateStudioOptions(this.config.studioOptions || Ys), this.configuration.setValue(
|
|
2383
|
+
Q.QueryCallCacheEnabled,
|
|
2302
2384
|
((t = this.config.enableQueryCallCache) == null ? void 0 : t.toString()) || "false"
|
|
2303
2385
|
);
|
|
2304
2386
|
}, this.setConnection = (t) => {
|
|
2305
|
-
|
|
2306
|
-
}, this.config =
|
|
2387
|
+
X = t;
|
|
2388
|
+
}, this.config = he.createRuntimeConfig(i), this.connection = X, this.editorAPI = X == null ? void 0 : X.promise.then((t) => t), this.action = new De(this.editorAPI), this.layout = new qe(this.editorAPI), this.frame = new We(this.editorAPI), this.shape = new ne(this.editorAPI), this.barcode = new Oe(this.editorAPI), this.undoManager = new es(this.editorAPI, this), this.connector = new Ue(this.editorAPI, this.localConfig), this.mediaConnector = new Ye(this.editorAPI), this.fontConnector = new Ke(this.editorAPI), this.dataConnector = new Ge(this.editorAPI, this.dataItemMappingTools), this.dataSource = new Te(this.editorAPI, this.dataItemMappingTools), this.animation = new Le(this.editorAPI), this.document = new _e(this.editorAPI), this.configuration = new is(this.editorAPI, this.localConfig), this.variable = new rs(this.editorAPI), this.utils = new ss(this.editorAPI, this.localConfig), this.subscriber = new Tr(this.config, this.localConfig), this.tool = new ts(this.editorAPI), this.page = new Ze(this.editorAPI), this.debug = new He(this.editorAPI), this.textSelection = new Xe(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.paragraphStyle = new Qe(this.editorAPI), this.characterStyle = new Ve(this.editorAPI), this.font = new ze(this.editorAPI), this.experiment = new $e(this.editorAPI), this.canvas = new ee(this.editorAPI), this.colorConversion = new Je(this.editorAPI), this.info = new je(), this.clipboard = new Be(this.editorAPI), this.next = new ns(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new Re(this.editorAPI, this);
|
|
2307
2389
|
}
|
|
2308
2390
|
}
|
|
2309
|
-
var
|
|
2310
|
-
const
|
|
2391
|
+
var nn = /* @__PURE__ */ ((s) => (s.top = "top", s.left = "left", s.right = "right", s.bottom = "bottom", s.topLeft = "topLeft", s.topRight = "topRight", s.bottomLeft = "bottomLeft", s.bottomRight = "bottomRight", s))(nn || {}), an = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(an || {}), on = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(on || {}), cn = /* @__PURE__ */ ((s) => (s.quadratic = "Quadratic", s.cubic = "Cubic", s.quartic = "Quartic", s.quintic = "Quintic", s.sine = "Sine", s.exponential = "Exponential", s.circular = "Circular", s.elastic = "Elastic", s.bounce = "Bounce", s.back = "Back", s))(cn || {}), hn = /* @__PURE__ */ ((s) => (s.bounce = "bounce", s.flash = "flash", s.headshake = "headShake", s.heartbeat = "heartbeat", s.pulse = "pulse", s.rubberBand = "rubberBand", s.vertical = "vertical", s.horizontal = "horizontal", s.swing = "swing", s.tada = "tada", s))(hn || {}), ln = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(ln || {}), dn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(dn || {}), un = /* @__PURE__ */ ((s) => (s.BOLD = "Bold", s.ITALIC = "Italic", s.REGULAR = "Regular", s))(un || {}), gn = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(gn || {}), yn = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(yn || {}), pn = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(pn || {}), Cn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(Cn || {}), mn = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(mn || {}), wn = /* @__PURE__ */ ((s) => (s.PARAGRAPH = "paragraphStyleId", s.CHARACTER = "characterStyleId", s.FONT_FAMILY = "fontKey", s.FONT_STYLE = "fontStyle", s.FONT_SIZE = "fontSize", s.LETTER_SPACING = "letterSpacing", s.LINE_HEIGHT = "lineHeight", s.TEXT_ALIGN = "textAlign", s.VERTICAL_ALIGN = "verticalAlign", s.TYPOGRAPHIC_CASE = "typographicCase", s.SUB_SUPER_SCRIPT = "subSuperScript", s.UNDERLINE = "underline", s.LINE_THROUGH = "lineThrough", s.FILL_COLOR = "fillColor", s.COLOR = "color", s.FILL_COLOR_APPLIED = "fillColorApplied", s.STROKE_COLOR = "strokeColor", s.STROKE_COLOR_APPLIED = "strokeColorApplied", s.DROP_SHADOW_COLOR = "dropShadowColor", s.BLEND_MODE = "blendMode", s.OPACITY = "opacity", s.TRACKING_RIGHT = "trackingRight", s.BASELINE_SHIFT = "baselineShiftValue", s.STROKE_WIDTH = "strokeWidth", s))(wn || {}), fn = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(fn || {}), Sn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Sn || {}), bn = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(bn || {}), In = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s))(In || {}), Is = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Is || {});
|
|
2392
|
+
const Vn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2311
2393
|
__proto__: null,
|
|
2312
|
-
ConnectorRegistrationSource:
|
|
2394
|
+
ConnectorRegistrationSource: Is
|
|
2313
2395
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2314
2396
|
export {
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2397
|
+
Vr as ActionAsyncError,
|
|
2398
|
+
fn as ActionEditorEvent,
|
|
2399
|
+
gn as Alignment,
|
|
2400
|
+
Rr as AnchorTargetEdgeType,
|
|
2401
|
+
Mr as AnchorTargetType,
|
|
2402
|
+
wr as AuthCredentialsTypeEnum,
|
|
2403
|
+
fr as AuthRefreshTypeEnum,
|
|
2404
|
+
Ir as AutoGrowDirection,
|
|
2323
2405
|
ft as BarcodeCharacterSet,
|
|
2324
2406
|
Ot as BarcodeErrorCorrectionLevel,
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2407
|
+
Ar as BarcodeSourceTypeEnum,
|
|
2408
|
+
H as BarcodeType,
|
|
2409
|
+
tr as BarcodeValidationResult,
|
|
2410
|
+
hn as BasicAnimationsEmphasisStyles,
|
|
2411
|
+
Dr as BlendMode,
|
|
2412
|
+
pn as Case,
|
|
2413
|
+
W as ColorType,
|
|
2414
|
+
Xt as ColorUsageType,
|
|
2415
|
+
yr as ConnectorConfigContextType,
|
|
2416
|
+
gr as ConnectorConfigValueType,
|
|
2417
|
+
mr as ConnectorEventType,
|
|
2418
|
+
Xs as ConnectorHttpError,
|
|
2419
|
+
An as ConnectorMapping,
|
|
2420
|
+
Cr as ConnectorMappingDirection,
|
|
2421
|
+
pr as ConnectorMappingSource,
|
|
2340
2422
|
Nt as ConnectorRegistrationSource,
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2423
|
+
re as ConnectorStateType,
|
|
2424
|
+
lr as ConnectorType,
|
|
2425
|
+
nr as ConstraintMode,
|
|
2426
|
+
bn as CornerRadiusType,
|
|
2427
|
+
ws as CropType,
|
|
2428
|
+
Br as DataRowAsyncError,
|
|
2429
|
+
Jr as Day,
|
|
2430
|
+
se as DeprecatedMediaConnectorDownloadType,
|
|
2348
2431
|
Rt as DeprecatedMediaType,
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2432
|
+
Zs as DocumentIssueTypeEnum,
|
|
2433
|
+
ps as DocumentType,
|
|
2434
|
+
$r as DownloadFormats,
|
|
2435
|
+
on as EaseTypes,
|
|
2436
|
+
In as EngineEditModeType,
|
|
2437
|
+
ie as EnvironmentType,
|
|
2438
|
+
Lr as FitMode,
|
|
2439
|
+
Or as FitModePosition,
|
|
2440
|
+
Fr as FlowDirection,
|
|
2441
|
+
dn as FontPreviewFormat,
|
|
2442
|
+
un as FontWeights,
|
|
2443
|
+
On as FrameAnchorTarget,
|
|
2444
|
+
xr as FrameAnchorType,
|
|
2445
|
+
Hr as FramePropertyNames,
|
|
2446
|
+
vr as FrameTypeEnum,
|
|
2447
|
+
Fn as GrafxTokenAuthCredentials,
|
|
2448
|
+
jt as ImageSourceTypeEnum,
|
|
2449
|
+
rr as LayoutIntent,
|
|
2450
|
+
_r as LayoutPropertyNames,
|
|
2451
|
+
er as LayoutType,
|
|
2452
|
+
kr as Locale,
|
|
2453
|
+
sr as MeasurementUnit,
|
|
2454
|
+
fs as MediaDownloadIntent,
|
|
2455
|
+
ae as MediaDownloadType,
|
|
2373
2456
|
Vt as MediaType,
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2457
|
+
Vn as Next,
|
|
2458
|
+
Ln as PageAnchorTarget,
|
|
2459
|
+
Z as PositionEnum,
|
|
2460
|
+
En as RefreshedAuthCredendentials,
|
|
2461
|
+
Cn as Scripting,
|
|
2462
|
+
mn as SelectedTextStyleSections,
|
|
2463
|
+
wn as SelectedTextStyles,
|
|
2464
|
+
an as ShakeDirections,
|
|
2465
|
+
Sn as ShapeType,
|
|
2466
|
+
nn as SlideDirections,
|
|
2467
|
+
dr as SortBy,
|
|
2468
|
+
ur as SortOrder,
|
|
2469
|
+
Pr as TextDirection,
|
|
2470
|
+
yn as TextPosition,
|
|
2471
|
+
_ as ToolType,
|
|
2472
|
+
cn as TweenTypes,
|
|
2473
|
+
Nr as UpdateZIndexMethod,
|
|
2474
|
+
Sr as UploadAssetValidationError,
|
|
2475
|
+
ms as UploadAssetValidationErrorType,
|
|
2476
|
+
ce as VariableType,
|
|
2477
|
+
Gr as VariableVisibilityOperator,
|
|
2478
|
+
Ur as VariableVisibilityTargetType,
|
|
2479
|
+
xt as VariableVisibilityType,
|
|
2480
|
+
Er as VerticalAlign,
|
|
2481
|
+
ln as ViewMode,
|
|
2482
|
+
Q as WellKnownConfigurationKeys,
|
|
2483
|
+
Rn as default,
|
|
2484
|
+
Pn as grafxMediaConnectorRegistration
|
|
2402
2485
|
};
|
|
2403
2486
|
//# sourceMappingURL=main.es.js.map
|