@chili-publish/studio-sdk 1.33.0 → 1.34.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 +624 -591
- package/_bundles/main.es.js.map +1 -1
- package/_bundles/main.js +2 -2
- package/_bundles/main.js.map +1 -1
- package/lib/editor-engine.json +1 -1
- package/lib/package.json +1 -1
- package/lib/src/controllers/FrameController.d.ts +54 -5
- package/lib/src/controllers/FrameController.js +89 -1
- package/lib/src/controllers/FrameController.js.map +1 -1
- package/lib/src/controllers/LayoutController.js +1 -1
- package/lib/src/controllers/LayoutController.js.map +1 -1
- package/lib/src/index.d.ts +3 -2
- package/lib/src/index.js +1 -0
- package/lib/src/index.js.map +1 -1
- package/lib/src/tests/controllers/FrameConstraintController.test.js +167 -0
- package/lib/src/tests/controllers/FrameConstraintController.test.js.map +1 -0
- package/lib/src/types/ConfigurationTypes.d.ts +17 -0
- package/lib/src/types/ConfigurationTypes.js +14 -0
- package/lib/src/types/ConfigurationTypes.js.map +1 -1
- package/lib/src/types/FrameTypes.d.ts +32 -0
- package/lib/src/types/ParagraphStyleTypes.d.ts +43 -0
- package/lib/src/types/ParagraphStyleTypes.js +16 -1
- package/lib/src/types/ParagraphStyleTypes.js.map +1 -1
- package/package.json +1 -1
package/_bundles/main.es.js
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
var
|
|
1
|
+
var Ee = (s) => {
|
|
2
2
|
throw TypeError(s);
|
|
3
3
|
};
|
|
4
|
-
var
|
|
5
|
-
var a = (s, o, t) => (
|
|
6
|
-
const
|
|
7
|
-
current:
|
|
8
|
-
},
|
|
9
|
-
version:
|
|
4
|
+
var Oe = (s, o, t) => o.has(s) || Ee("Cannot " + t);
|
|
5
|
+
var a = (s, o, t) => (Oe(s, o, "read from private field"), t ? t.call(s) : o.get(s)), u = (s, o, t) => o.has(s) ? Ee("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(s) : o.set(s, t), g = (s, o, t, e) => (Oe(s, o, "write to private field"), e ? e.call(s, t) : o.set(s, t), t);
|
|
6
|
+
const Fs = "2.17.latest", gs = {
|
|
7
|
+
current: Fs
|
|
8
|
+
}, Es = "1.34.0", ys = {
|
|
9
|
+
version: Es
|
|
10
10
|
};
|
|
11
|
-
var
|
|
11
|
+
var z;
|
|
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
|
+
})(z || (z = {}));
|
|
15
|
+
var ut;
|
|
16
16
|
(function(s) {
|
|
17
17
|
s.Fulfilled = "fulfilled", s.Rejected = "rejected";
|
|
18
|
-
})(
|
|
19
|
-
var
|
|
18
|
+
})(ut || (ut = {}));
|
|
19
|
+
var Vt;
|
|
20
20
|
(function(s) {
|
|
21
21
|
s.ConnectionDestroyed = "ConnectionDestroyed", s.ConnectionTimeout = "ConnectionTimeout", s.NoIframeSrc = "NoIframeSrc";
|
|
22
|
-
})(
|
|
23
|
-
var
|
|
22
|
+
})(Vt || (Vt = {}));
|
|
23
|
+
var te;
|
|
24
24
|
(function(s) {
|
|
25
25
|
s.DataCloneError = "DataCloneError";
|
|
26
|
-
})(
|
|
27
|
-
var
|
|
26
|
+
})(te || (te = {}));
|
|
27
|
+
var dt;
|
|
28
28
|
(function(s) {
|
|
29
29
|
s.Message = "message";
|
|
30
|
-
})(
|
|
31
|
-
const
|
|
30
|
+
})(dt || (dt = {}));
|
|
31
|
+
const Os = (s, o) => {
|
|
32
32
|
const t = [];
|
|
33
33
|
let e = !1;
|
|
34
34
|
return {
|
|
@@ -41,133 +41,133 @@ const Es = (s, o) => {
|
|
|
41
41
|
e ? r() : t.push(r);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
|
-
},
|
|
44
|
+
}, Ds = (s) => (...o) => {
|
|
45
45
|
s && console.log("[Penpal]", ...o);
|
|
46
|
-
},
|
|
46
|
+
}, Ls = {
|
|
47
47
|
"http:": "80",
|
|
48
48
|
"https:": "443"
|
|
49
|
-
},
|
|
50
|
-
if (s &&
|
|
49
|
+
}, Ns = /^(https?:)?\/\/([^/:]+)?(:(\d+))?/, Ms = ["file:", "data:"], xs = (s) => {
|
|
50
|
+
if (s && Ms.find((d) => s.startsWith(d)))
|
|
51
51
|
return "null";
|
|
52
|
-
const o = document.location, t =
|
|
52
|
+
const o = document.location, t = Ns.exec(s);
|
|
53
53
|
let e, r, n;
|
|
54
54
|
t ? (e = t[1] ? t[1] : o.protocol, r = t[2], n = t[4]) : (e = o.protocol, r = o.hostname, n = o.port);
|
|
55
|
-
const c = n && n !==
|
|
55
|
+
const c = n && n !== Ls[e] ? `:${n}` : "";
|
|
56
56
|
return `${e}//${r}${c}`;
|
|
57
|
-
},
|
|
57
|
+
}, De = ({ name: s, message: o, stack: t }) => ({
|
|
58
58
|
name: s,
|
|
59
59
|
message: o,
|
|
60
60
|
stack: t
|
|
61
|
-
}),
|
|
61
|
+
}), Rs = (s) => {
|
|
62
62
|
const o = new Error();
|
|
63
63
|
return Object.keys(s).forEach((t) => o[t] = s[t]), o;
|
|
64
|
-
},
|
|
64
|
+
}, Vs = (s, o, t) => {
|
|
65
65
|
const { localName: e, local: r, remote: n, originForSending: c, originForReceiving: d } = s;
|
|
66
66
|
let h = !1;
|
|
67
67
|
const p = (y) => {
|
|
68
|
-
if (y.source !== n || y.data.penpal !==
|
|
68
|
+
if (y.source !== n || y.data.penpal !== z.Call)
|
|
69
69
|
return;
|
|
70
70
|
if (y.origin !== d) {
|
|
71
71
|
t(`${e} received message from origin ${y.origin} which did not match expected origin ${d}`);
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
74
|
-
const
|
|
74
|
+
const v = y.data, { methodName: S, args: b, id: A } = v;
|
|
75
75
|
t(`${e}: Received ${S}() call`);
|
|
76
|
-
const
|
|
76
|
+
const I = (f) => (M) => {
|
|
77
77
|
if (t(`${e}: Sending ${S}() reply`), h) {
|
|
78
78
|
t(`${e}: Unable to send ${S}() reply due to destroyed connection`);
|
|
79
79
|
return;
|
|
80
80
|
}
|
|
81
81
|
const E = {
|
|
82
|
-
penpal:
|
|
82
|
+
penpal: z.Reply,
|
|
83
83
|
id: A,
|
|
84
84
|
resolution: f,
|
|
85
85
|
returnValue: M
|
|
86
86
|
};
|
|
87
|
-
f ===
|
|
87
|
+
f === ut.Rejected && M instanceof Error && (E.returnValue = De(M), E.returnValueIsError = !0);
|
|
88
88
|
try {
|
|
89
89
|
n.postMessage(E, c);
|
|
90
90
|
} catch (P) {
|
|
91
|
-
if (P.name ===
|
|
92
|
-
const
|
|
93
|
-
penpal:
|
|
91
|
+
if (P.name === te.DataCloneError) {
|
|
92
|
+
const W = {
|
|
93
|
+
penpal: z.Reply,
|
|
94
94
|
id: A,
|
|
95
|
-
resolution:
|
|
96
|
-
returnValue:
|
|
95
|
+
resolution: ut.Rejected,
|
|
96
|
+
returnValue: De(P),
|
|
97
97
|
returnValueIsError: !0
|
|
98
98
|
};
|
|
99
|
-
n.postMessage(
|
|
99
|
+
n.postMessage(W, c);
|
|
100
100
|
}
|
|
101
101
|
throw P;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
|
-
new Promise((f) => f(o[S].apply(o, b))).then(
|
|
104
|
+
new Promise((f) => f(o[S].apply(o, b))).then(I(ut.Fulfilled), I(ut.Rejected));
|
|
105
105
|
};
|
|
106
|
-
return r.addEventListener(
|
|
107
|
-
h = !0, r.removeEventListener(
|
|
106
|
+
return r.addEventListener(dt.Message, p), () => {
|
|
107
|
+
h = !0, r.removeEventListener(dt.Message, p);
|
|
108
108
|
};
|
|
109
109
|
};
|
|
110
|
-
let
|
|
111
|
-
const
|
|
112
|
-
const t =
|
|
113
|
-
return t.push(s),
|
|
114
|
-
},
|
|
115
|
-
const e =
|
|
110
|
+
let Js = 0;
|
|
111
|
+
const Bs = () => ++Js, ps = ".", Cs = (s) => s ? s.split(ps) : [], Gs = (s) => s.join(ps), ks = (s, o) => {
|
|
112
|
+
const t = Cs(o || "");
|
|
113
|
+
return t.push(s), Gs(t);
|
|
114
|
+
}, Us = (s, o, t) => {
|
|
115
|
+
const e = Cs(o);
|
|
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
|
+
}, ms = (s, o) => {
|
|
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 = ks(e, o);
|
|
121
|
+
typeof r == "object" && Object.assign(t, ms(r, n)), typeof r == "function" && (t[n] = r);
|
|
122
122
|
}), t;
|
|
123
|
-
},
|
|
123
|
+
}, _s = (s) => {
|
|
124
124
|
const o = {};
|
|
125
125
|
for (const t in s)
|
|
126
|
-
|
|
126
|
+
Us(o, t, s[t]);
|
|
127
127
|
return o;
|
|
128
|
-
},
|
|
128
|
+
}, Hs = (s, o, t, e, r) => {
|
|
129
129
|
const { localName: n, local: c, remote: d, originForSending: h, originForReceiving: p } = o;
|
|
130
130
|
let y = !1;
|
|
131
131
|
r(`${n}: Connecting call sender`);
|
|
132
|
-
const
|
|
132
|
+
const v = (b) => (...A) => {
|
|
133
133
|
r(`${n}: Sending ${b}() call`);
|
|
134
|
-
let
|
|
134
|
+
let I;
|
|
135
135
|
try {
|
|
136
|
-
d.closed && (
|
|
136
|
+
d.closed && (I = !0);
|
|
137
137
|
} catch {
|
|
138
|
-
|
|
138
|
+
I = !0;
|
|
139
139
|
}
|
|
140
|
-
if (
|
|
140
|
+
if (I && e(), y) {
|
|
141
141
|
const f = new Error(`Unable to send ${b}() call due to destroyed connection`);
|
|
142
|
-
throw f.code =
|
|
142
|
+
throw f.code = Vt.ConnectionDestroyed, f;
|
|
143
143
|
}
|
|
144
144
|
return new Promise((f, M) => {
|
|
145
|
-
const E =
|
|
146
|
-
if (
|
|
145
|
+
const E = Bs(), P = (j) => {
|
|
146
|
+
if (j.source !== d || j.data.penpal !== z.Reply || j.data.id !== E)
|
|
147
147
|
return;
|
|
148
|
-
if (
|
|
149
|
-
r(`${n} received message from origin ${
|
|
148
|
+
if (j.origin !== p) {
|
|
149
|
+
r(`${n} received message from origin ${j.origin} which did not match expected origin ${p}`);
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
|
-
const
|
|
153
|
-
r(`${n}: Received ${b}() reply`), c.removeEventListener(
|
|
154
|
-
let
|
|
155
|
-
|
|
152
|
+
const ft = j.data;
|
|
153
|
+
r(`${n}: Received ${b}() reply`), c.removeEventListener(dt.Message, P);
|
|
154
|
+
let St = ft.returnValue;
|
|
155
|
+
ft.returnValueIsError && (St = Rs(St)), (ft.resolution === ut.Fulfilled ? f : M)(St);
|
|
156
156
|
};
|
|
157
|
-
c.addEventListener(
|
|
158
|
-
const
|
|
159
|
-
penpal:
|
|
157
|
+
c.addEventListener(dt.Message, P);
|
|
158
|
+
const W = {
|
|
159
|
+
penpal: z.Call,
|
|
160
160
|
id: E,
|
|
161
161
|
methodName: b,
|
|
162
162
|
args: A
|
|
163
163
|
};
|
|
164
|
-
d.postMessage(
|
|
164
|
+
d.postMessage(W, h);
|
|
165
165
|
});
|
|
166
|
-
}, S = t.reduce((b, A) => (b[A] =
|
|
167
|
-
return Object.assign(s,
|
|
166
|
+
}, S = t.reduce((b, A) => (b[A] = v(A), b), {});
|
|
167
|
+
return Object.assign(s, _s(S)), () => {
|
|
168
168
|
y = !0;
|
|
169
169
|
};
|
|
170
|
-
},
|
|
170
|
+
}, Ts = (s, o, t, e, r) => {
|
|
171
171
|
const { destroy: n, onDestroy: c } = e;
|
|
172
172
|
let d, h;
|
|
173
173
|
const p = {};
|
|
@@ -177,84 +177,84 @@ const Gs = () => ++Vs, ys = ".", ps = (s) => s ? s.split(ys) : [], Bs = (s) => s
|
|
|
177
177
|
return;
|
|
178
178
|
}
|
|
179
179
|
r("Parent: Handshake - Received ACK");
|
|
180
|
-
const
|
|
180
|
+
const v = {
|
|
181
181
|
localName: "Parent",
|
|
182
182
|
local: window,
|
|
183
183
|
remote: y.source,
|
|
184
184
|
originForSending: t,
|
|
185
185
|
originForReceiving: o
|
|
186
186
|
};
|
|
187
|
-
d && d(), d =
|
|
187
|
+
d && d(), d = Vs(v, s, r), c(d), h && h.forEach((b) => {
|
|
188
188
|
delete p[b];
|
|
189
189
|
}), h = y.data.methodNames;
|
|
190
|
-
const S =
|
|
190
|
+
const S = Hs(p, v, h, n, r);
|
|
191
191
|
return c(S), p;
|
|
192
192
|
};
|
|
193
|
-
},
|
|
193
|
+
}, Ks = (s, o, 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: z.SynAck,
|
|
201
201
|
methodNames: Object.keys(o)
|
|
202
202
|
};
|
|
203
203
|
r.source.postMessage(n, e);
|
|
204
|
-
},
|
|
204
|
+
}, $s = 6e4, zs = (s, o) => {
|
|
205
205
|
const { destroy: t, onDestroy: e } = o, r = setInterval(() => {
|
|
206
206
|
s.isConnected || (clearInterval(r), t());
|
|
207
|
-
},
|
|
207
|
+
}, $s);
|
|
208
208
|
e(() => {
|
|
209
209
|
clearInterval(r);
|
|
210
210
|
});
|
|
211
|
-
},
|
|
211
|
+
}, Ws = (s, o) => {
|
|
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 = Vt.ConnectionTimeout, o(e);
|
|
216
216
|
}, s)), () => {
|
|
217
217
|
clearTimeout(t);
|
|
218
218
|
};
|
|
219
|
-
},
|
|
219
|
+
}, js = (s) => {
|
|
220
220
|
if (!s.src && !s.srcdoc) {
|
|
221
221
|
const o = new Error("Iframe must have src or srcdoc property defined.");
|
|
222
|
-
throw o.code =
|
|
222
|
+
throw o.code = Vt.NoIframeSrc, o;
|
|
223
223
|
}
|
|
224
|
-
},
|
|
224
|
+
}, qs = (s) => {
|
|
225
225
|
let { iframe: o, methods: t = {}, childOrigin: e, timeout: r, debug: n = !1 } = s;
|
|
226
|
-
const c =
|
|
227
|
-
e || (
|
|
228
|
-
const y = e === "null" ? "*" : e,
|
|
226
|
+
const c = Ds(n), d = Os("Parent", c), { onDestroy: h, destroy: p } = d;
|
|
227
|
+
e || (js(o), e = xs(o.src));
|
|
228
|
+
const y = e === "null" ? "*" : e, v = ms(t), S = Ks(c, v, e, y), b = Ts(v, e, y, d, c);
|
|
229
229
|
return {
|
|
230
|
-
promise: new Promise((
|
|
231
|
-
const M =
|
|
230
|
+
promise: new Promise((I, f) => {
|
|
231
|
+
const M = Ws(r, p), E = (P) => {
|
|
232
232
|
if (!(P.source !== o.contentWindow || !P.data)) {
|
|
233
|
-
if (P.data.penpal ===
|
|
233
|
+
if (P.data.penpal === z.Syn) {
|
|
234
234
|
S(P);
|
|
235
235
|
return;
|
|
236
236
|
}
|
|
237
|
-
if (P.data.penpal ===
|
|
238
|
-
const
|
|
239
|
-
|
|
237
|
+
if (P.data.penpal === z.Ack) {
|
|
238
|
+
const W = b(P);
|
|
239
|
+
W && (M(), I(W));
|
|
240
240
|
return;
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
};
|
|
244
|
-
window.addEventListener(
|
|
245
|
-
window.removeEventListener(
|
|
244
|
+
window.addEventListener(dt.Message, E), c("Parent: Awaiting handshake"), zs(o, d), h((P) => {
|
|
245
|
+
window.removeEventListener(dt.Message, E), P && f(P);
|
|
246
246
|
});
|
|
247
247
|
}),
|
|
248
248
|
destroy() {
|
|
249
249
|
p();
|
|
250
250
|
}
|
|
251
251
|
};
|
|
252
|
-
},
|
|
252
|
+
}, Ys = (s) => {
|
|
253
253
|
const o = new RegExp(/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w]+\/$/);
|
|
254
254
|
let t = "";
|
|
255
255
|
return o.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
|
+
}, Zs = (s, o, t) => {
|
|
257
|
+
const e = Ys(o), n = `<html>
|
|
258
258
|
<head>
|
|
259
259
|
<base href="/" />
|
|
260
260
|
<meta charset="UTF-8"/>
|
|
@@ -275,17 +275,17 @@ const Gs = () => ++Vs, ys = ".", ps = (s) => s ? s.split(ys) : [], Bs = (s) => s
|
|
|
275
275
|
</html>
|
|
276
276
|
`;
|
|
277
277
|
s.srcdoc = n;
|
|
278
|
-
},
|
|
278
|
+
}, Qs = (s, o, 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
281
|
const d = () => {
|
|
282
282
|
const h = document.querySelector(n);
|
|
283
|
-
h && (h == null || h.appendChild(c),
|
|
283
|
+
h && (h == null || h.appendChild(c), Zs(c, s, r));
|
|
284
284
|
};
|
|
285
285
|
document.readyState === "complete" || document.readyState === "interactive" ? d() : document.addEventListener("DOMContentLoaded", () => {
|
|
286
286
|
d();
|
|
287
287
|
}), t(
|
|
288
|
-
|
|
288
|
+
qs({
|
|
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 Gs = () => ++Vs, ys = ".", ps = (s) => s ? s.split(ys) : [], Bs = (s) => s
|
|
|
336
336
|
})
|
|
337
337
|
);
|
|
338
338
|
};
|
|
339
|
-
var
|
|
340
|
-
const
|
|
339
|
+
var tt = /* @__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))(tt || {});
|
|
340
|
+
const Xs = {
|
|
341
341
|
shortcutOptions: {
|
|
342
342
|
debugPanel: { enabled: !1 },
|
|
343
343
|
ellipse: { enabled: !1 },
|
|
@@ -350,26 +350,28 @@ const Qs = {
|
|
|
350
350
|
zoom: { enabled: !1 },
|
|
351
351
|
copyPaste: { enabled: !1 },
|
|
352
352
|
viewMode: { enabled: !1 }
|
|
353
|
-
}
|
|
353
|
+
},
|
|
354
|
+
frameEditingMode: 0
|
|
355
|
+
/* full */
|
|
354
356
|
};
|
|
355
|
-
var
|
|
356
|
-
const
|
|
357
|
-
function
|
|
357
|
+
var tr = /* @__PURE__ */ ((s) => (s.overflow = "overflow", s.fontLoading = "fontLoading", s.actionRegister = "actionRegister", s.actionExecution = "actionExecution", s.actionCircular = "actionCircular", s))(tr || {}), ws = /* @__PURE__ */ ((s) => (s.project = "project", s.template = "template", s.component = "component", s))(ws || {});
|
|
358
|
+
const er = 404075;
|
|
359
|
+
function fs(s) {
|
|
358
360
|
const o = s.error ?? "Yikes, something went wrong", t = {
|
|
359
361
|
cause: {
|
|
360
362
|
name: String(s.status),
|
|
361
363
|
message: s.error ?? "Yikes, something went wrong"
|
|
362
364
|
}
|
|
363
365
|
};
|
|
364
|
-
if (s.status ===
|
|
366
|
+
if (s.status === er) {
|
|
365
367
|
const r = JSON.parse(s.data).statusCode;
|
|
366
|
-
throw new
|
|
368
|
+
throw new sr(r, o, t);
|
|
367
369
|
} else
|
|
368
370
|
throw new Error(o, t);
|
|
369
371
|
}
|
|
370
372
|
function i(s, o = !0) {
|
|
371
373
|
try {
|
|
372
|
-
s.success ||
|
|
374
|
+
s.success || fs(s);
|
|
373
375
|
const t = s.data && o;
|
|
374
376
|
return {
|
|
375
377
|
...s,
|
|
@@ -379,13 +381,13 @@ function i(s, o = !0) {
|
|
|
379
381
|
throw console.error(t), t;
|
|
380
382
|
}
|
|
381
383
|
}
|
|
382
|
-
class
|
|
384
|
+
class sr extends Error {
|
|
383
385
|
constructor(o, t, e) {
|
|
384
386
|
super(t, e), this.statusCode = o;
|
|
385
387
|
}
|
|
386
388
|
}
|
|
387
389
|
var N;
|
|
388
|
-
class
|
|
390
|
+
class Le {
|
|
389
391
|
/**
|
|
390
392
|
* @ignore
|
|
391
393
|
*/
|
|
@@ -398,8 +400,8 @@ class Oe {
|
|
|
398
400
|
}
|
|
399
401
|
}
|
|
400
402
|
N = new WeakMap();
|
|
401
|
-
var
|
|
402
|
-
class
|
|
403
|
+
var D;
|
|
404
|
+
class Ne {
|
|
403
405
|
/**
|
|
404
406
|
* @ignore
|
|
405
407
|
*/
|
|
@@ -407,15 +409,15 @@ class De {
|
|
|
407
409
|
/**
|
|
408
410
|
* @ignore
|
|
409
411
|
*/
|
|
410
|
-
u(this,
|
|
411
|
-
this.getAllOnSelectedLayout = async () => (await a(this,
|
|
412
|
+
u(this, D);
|
|
413
|
+
this.getAllOnSelectedLayout = async () => (await a(this, D)).getAnimationsOnSelectedLayout().then((e) => i(e)), this.getByFrameId = async (t, e) => (await a(this, D)).getAnimationByFrameId(t, e).then((n) => i(n)), this.getByLayoutId = async (t) => (await a(this, D)).getAnimationsByLayoutId(t).then((r) => i(r)), this.setFrameAnimation = async (t) => (await a(this, D)).setFrameAnimation(JSON.stringify(t)).then(
|
|
412
414
|
(r) => i({ ...r, data: JSON.stringify(t) })
|
|
413
|
-
), this.play = async () => (await a(this,
|
|
415
|
+
), this.play = async () => (await a(this, D)).playAnimation().then((e) => i(e)), this.pause = async () => (await a(this, D)).pauseAnimation().then((e) => i(e)), this.setScrubberPosition = async (t) => (await a(this, D)).setScrubberPosition(t).then((r) => i(r)), this.setDuration = async (t) => (await a(this, D)).setAnimationDuration(t).then((r) => i(r)), this.resetFrameAnimation = async (t) => (await a(this, D)).resetFrameAnimation(t).then((r) => i(r)), this.reset = async () => (await a(this, D)).resetAnimation().then((e) => i(e)), g(this, D, o);
|
|
414
416
|
}
|
|
415
417
|
}
|
|
416
|
-
|
|
417
|
-
var T = /* @__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))(T || {}),
|
|
418
|
-
class
|
|
418
|
+
D = new WeakMap();
|
|
419
|
+
var T = /* @__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))(T || {}), Mt = /* @__PURE__ */ ((s) => (s.low = "low", s.medium = "medium", s.quartile = "quartile", s.high = "high", s))(Mt || {}), bt = /* @__PURE__ */ ((s) => (s.utf8 = "utf8", s.iso8859_1 = "iso8859_1", s.code128a = "code128a", s.code128b = "code128b", s.code128c = "code128c", s))(bt || {}), rr = /* @__PURE__ */ ((s) => (s.success = "success", s.empty = "empty", s.invalidLength = "invalidLength", s.invalidCharacters = "invalidCharacters", s.invalidChecksum = "invalidChecksum", s.invalidUPCE = "invalidUPCE", s.otherError = "otherError", s))(rr || {}), X = /* @__PURE__ */ ((s) => (s.top = "top", s.right = "right", s.bottom = "bottom", s.left = "left", s))(X || {}), nr = /* @__PURE__ */ ((s) => (s.top = "top", s.child = "child", s))(nr || {}), ar = /* @__PURE__ */ ((s) => (s.px = "px", s.mm = "mm", s.cm = "cm", s.inch = "inch", s.pt = "pt", s))(ar || {}), ir = /* @__PURE__ */ ((s) => (s.print = "print", s.digitalStatic = "digitalStatic", s.digitalAnimated = "digitalAnimated", s))(ir || {}), or = /* @__PURE__ */ ((s) => (s.locked = "locked", s.range = "range", s.none = "none", s))(or || {}), U;
|
|
420
|
+
class Me {
|
|
419
421
|
/**
|
|
420
422
|
* @ignore
|
|
421
423
|
*/
|
|
@@ -447,10 +449,10 @@ class Ne {
|
|
|
447
449
|
return this.setBarcodeProperties(t, r);
|
|
448
450
|
}, this.setQuietZoneValue = async (t, e, r) => {
|
|
449
451
|
const n = r ? {
|
|
450
|
-
left: r ===
|
|
451
|
-
top: r ===
|
|
452
|
-
right: r ===
|
|
453
|
-
bottom: r ===
|
|
452
|
+
left: r === X.left ? e : void 0,
|
|
453
|
+
top: r === X.top ? e : void 0,
|
|
454
|
+
right: r === X.right ? e : void 0,
|
|
455
|
+
bottom: r === X.bottom ? e : void 0
|
|
454
456
|
} : { left: e, top: e, right: e, bottom: e };
|
|
455
457
|
return (await a(this, U)).setBarcodeProperties(t, JSON.stringify({ quietZone: n })).then((d) => i(d));
|
|
456
458
|
}, this.setAreQuietZoneValuesCombined = async (t, e) => {
|
|
@@ -466,11 +468,11 @@ class Ne {
|
|
|
466
468
|
let e = !0, r = !0, n = !0, c, d, h = !1, p = !1, y = !1;
|
|
467
469
|
switch (t) {
|
|
468
470
|
case T.qr:
|
|
469
|
-
c = [
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
471
|
+
c = [bt.iso8859_1, bt.utf8], d = [
|
|
472
|
+
Mt.low,
|
|
473
|
+
Mt.medium,
|
|
474
|
+
Mt.quartile,
|
|
475
|
+
Mt.high
|
|
474
476
|
];
|
|
475
477
|
case T.dataMatrix:
|
|
476
478
|
e = !1, r = !1, n = !1, h = !0;
|
|
@@ -487,9 +489,9 @@ class Ne {
|
|
|
487
489
|
case T.code128:
|
|
488
490
|
case T.gs1128:
|
|
489
491
|
c = [
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
492
|
+
bt.code128a,
|
|
493
|
+
bt.code128b,
|
|
494
|
+
bt.code128c
|
|
493
495
|
];
|
|
494
496
|
break;
|
|
495
497
|
case T.code39:
|
|
@@ -511,20 +513,20 @@ class Ne {
|
|
|
511
513
|
}
|
|
512
514
|
}
|
|
513
515
|
U = new WeakMap();
|
|
514
|
-
var H = /* @__PURE__ */ ((s) => (s.rgb = "rgb", s.hex = "hex", s.cmyk = "cmyk", s.spotCmyk = "spotCmyk", s.spotRgb = "spotRgb", s.spotHex = "spotHex", s))(H || {}),
|
|
515
|
-
const
|
|
516
|
-
const o =
|
|
517
|
-
return
|
|
518
|
-
...
|
|
519
|
-
...!
|
|
516
|
+
var H = /* @__PURE__ */ ((s) => (s.rgb = "rgb", s.hex = "hex", s.cmyk = "cmyk", s.spotCmyk = "spotCmyk", s.spotRgb = "spotRgb", s.spotHex = "spotHex", s))(H || {}), q = /* @__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))(q || {}), ee = /* @__PURE__ */ ((s) => (s.local = "local", s.brandKit = "brandKit", s.stylekit = "brandKit", s))(ee || {});
|
|
517
|
+
const xe = (s) => s.type === H.hex, se = (s) => s.type === H.spotHex, cr = (s) => s.type === H.spotRgb, hr = (s) => s.type === H.spotCmyk, lr = (s) => cr(s) || hr(s) || se(s), dr = (s) => {
|
|
518
|
+
const o = ur(s.type);
|
|
519
|
+
return lr(s) ? {
|
|
520
|
+
...se(s) && { value: s.displayValue },
|
|
521
|
+
...!se(s) && { ...s.displayValue },
|
|
520
522
|
spotName: s.value,
|
|
521
523
|
type: o
|
|
522
524
|
} : {
|
|
523
|
-
...
|
|
524
|
-
...!
|
|
525
|
+
...xe(s) && { value: s.value },
|
|
526
|
+
...!xe(s) && { ...s.value },
|
|
525
527
|
type: o
|
|
526
528
|
};
|
|
527
|
-
},
|
|
529
|
+
}, Re = (s, o, t, e) => {
|
|
528
530
|
const {
|
|
529
531
|
brandKitColorGuid: r,
|
|
530
532
|
brandKitFontFamilyGuid: n,
|
|
@@ -541,7 +543,7 @@ const Me = (s) => s.type === H.hex, ee = (s) => s.type === H.spotHex, or = (s) =
|
|
|
541
543
|
value: {
|
|
542
544
|
id: o.id,
|
|
543
545
|
color: o.color,
|
|
544
|
-
type:
|
|
546
|
+
type: ee.brandKit,
|
|
545
547
|
isApplied: y.fillColorApplied
|
|
546
548
|
}
|
|
547
549
|
}
|
|
@@ -551,7 +553,7 @@ const Me = (s) => s.type === H.hex, ee = (s) => s.type === H.spotHex, or = (s) =
|
|
|
551
553
|
value: {
|
|
552
554
|
id: t.id,
|
|
553
555
|
color: t.color,
|
|
554
|
-
type:
|
|
556
|
+
type: ee.brandKit,
|
|
555
557
|
isApplied: h || !1
|
|
556
558
|
}
|
|
557
559
|
},
|
|
@@ -566,31 +568,31 @@ const Me = (s) => s.type === H.hex, ee = (s) => s.type === H.spotHex, or = (s) =
|
|
|
566
568
|
value: e ?? null
|
|
567
569
|
}
|
|
568
570
|
};
|
|
569
|
-
},
|
|
571
|
+
}, ur = (s) => {
|
|
570
572
|
switch (s) {
|
|
571
573
|
case H.rgb:
|
|
572
|
-
return
|
|
574
|
+
return q.rgb;
|
|
573
575
|
case H.cmyk:
|
|
574
|
-
return
|
|
576
|
+
return q.cmyk;
|
|
575
577
|
case H.hex:
|
|
576
|
-
return
|
|
578
|
+
return q.hex;
|
|
577
579
|
case H.spotRgb:
|
|
578
|
-
return
|
|
580
|
+
return q.spotRGB;
|
|
579
581
|
case H.spotCmyk:
|
|
580
|
-
return
|
|
582
|
+
return q.spotCMYK;
|
|
581
583
|
case H.spotHex:
|
|
582
|
-
return
|
|
584
|
+
return q.spotHEX;
|
|
583
585
|
}
|
|
584
|
-
},
|
|
586
|
+
}, qt = (s, o) => {
|
|
585
587
|
if (!(s === null || o === void 0))
|
|
586
588
|
return (s || []).find((t) => t.id === o);
|
|
587
|
-
},
|
|
589
|
+
}, Ve = (s, o, t) => {
|
|
588
590
|
var e, r;
|
|
589
591
|
if (!(s === null || o === void 0 || t === void 0))
|
|
590
592
|
return (r = (e = (s || []).find((n) => n.id === o)) == null ? void 0 : e.fontStyles.find((n) => n.fontStyleId === t)) == null ? void 0 : r.id;
|
|
591
593
|
};
|
|
592
|
-
var
|
|
593
|
-
class
|
|
594
|
+
var L;
|
|
595
|
+
class Je {
|
|
594
596
|
/**
|
|
595
597
|
* @ignore
|
|
596
598
|
*/
|
|
@@ -598,15 +600,15 @@ class Ve {
|
|
|
598
600
|
/**
|
|
599
601
|
* @ignore
|
|
600
602
|
*/
|
|
601
|
-
u(this,
|
|
602
|
-
this.getId = async () => (await a(this,
|
|
603
|
-
const e = await this.getId(), r = await this.getVersion(), n = await this.getName(), c = this.colorStyleController.getAll(), d = this.gradientStyleController.getAll(), h = this.fontController.getFontFamilies(), p = this.characterStyleController.getAll(), y = this.paragraphStyleController.getAll(),
|
|
603
|
+
u(this, L);
|
|
604
|
+
this.getId = async () => (await a(this, L)).getBrandKitId().then((r) => i(r)), this.getVersion = async () => (await a(this, L)).getBrandKitVersion().then((r) => i(r)), this.getName = async () => (await a(this, L)).getBrandKitName().then((r) => i(r)), this.rename = async (e) => (await a(this, L)).renameBrandKit(e).then((n) => i(n)), this.updateIdAndVersion = async (e, r) => (await a(this, L)).updateBrandKitIdAndVersion(e, r).then((c) => i(c)), this.get = async () => {
|
|
605
|
+
const e = await this.getId(), r = await this.getVersion(), n = await this.getName(), c = this.colorStyleController.getAll(), d = this.gradientStyleController.getAll(), h = this.fontController.getFontFamilies(), p = this.characterStyleController.getAll(), y = this.paragraphStyleController.getAll(), v = this.getAllMedia(), [S, b, A, I, f, M] = await Promise.all([
|
|
604
606
|
c,
|
|
605
607
|
d,
|
|
606
608
|
h,
|
|
607
609
|
y,
|
|
608
610
|
p,
|
|
609
|
-
|
|
611
|
+
v
|
|
610
612
|
]), E = {
|
|
611
613
|
id: e.parsedData,
|
|
612
614
|
brandKit: {
|
|
@@ -616,7 +618,7 @@ class Ve {
|
|
|
616
618
|
colors: S.parsedData,
|
|
617
619
|
gradients: b.parsedData,
|
|
618
620
|
fonts: A.parsedData,
|
|
619
|
-
paragraphStyles:
|
|
621
|
+
paragraphStyles: I.parsedData,
|
|
620
622
|
characterStyles: f.parsedData,
|
|
621
623
|
media: M.parsedData
|
|
622
624
|
}
|
|
@@ -627,19 +629,19 @@ class Ve {
|
|
|
627
629
|
status: 200
|
|
628
630
|
};
|
|
629
631
|
return i(P);
|
|
630
|
-
}, this.getAllMedia = async () => (await a(this,
|
|
632
|
+
}, this.getAllMedia = async () => (await a(this, L)).getAllBrandKitMedia().then((r) => i(r)), this.addMedia = async (e, r, n) => (await a(this, L)).addBrandKitMedia(e, r, n).then((d) => i(d)), this.updateMedia = async (e, r, n) => (await a(this, L)).updateBrandKitMedia(e, r, n).then((d) => i(d)), this.renameMedia = async (e, r) => (await a(this, L)).renameBrandKitMedia(e, r).then((c) => i(c)), this.removeMedia = async (e) => (await a(this, L)).removeBrandKitMedia(e).then((n) => i(n)), this.remove = async () => {
|
|
631
633
|
const r = (await this.colorStyleController.getAll()).parsedData || [], c = (await this.gradientStyleController.getAll()).parsedData || [], h = (await this.paragraphStyleController.getAll()).parsedData || [], y = (await this.characterStyleController.getAll()).parsedData || [], S = (await this.fontController.getFontFamilies()).parsedData || [], A = (await this.getAllMedia()).parsedData || [];
|
|
632
|
-
await this.undoManagerController.record("brandKit.remove", async (
|
|
634
|
+
await this.undoManagerController.record("brandKit.remove", async (I) => {
|
|
633
635
|
for (const f of r)
|
|
634
|
-
await
|
|
636
|
+
await I.colorStyle.remove(f.id);
|
|
635
637
|
for (const f of c)
|
|
636
|
-
await
|
|
638
|
+
await I.gradientStyle.remove(f.id);
|
|
637
639
|
for (const f of h)
|
|
638
|
-
await
|
|
640
|
+
await I.paragraphStyle.remove(f.id);
|
|
639
641
|
for (const f of y)
|
|
640
|
-
await
|
|
642
|
+
await I.characterStyle.remove(f.id);
|
|
641
643
|
for (const f of S)
|
|
642
|
-
await
|
|
644
|
+
await I.font.removeFontFamily(f.id);
|
|
643
645
|
for (const f of A)
|
|
644
646
|
await this.removeMedia(f.name);
|
|
645
647
|
});
|
|
@@ -674,7 +676,7 @@ class Ve {
|
|
|
674
676
|
localColorGuidMap: c,
|
|
675
677
|
localFontGuidMap: d
|
|
676
678
|
}), await this.setMedia(e);
|
|
677
|
-
const { parsedData:
|
|
679
|
+
const { parsedData: v } = await n.paragraphStyle.getAll(), { parsedData: S } = await n.characterStyle.getAll(), { parsedData: b } = await this.getAllMedia();
|
|
678
680
|
await n.brandKit.updateIdAndVersion(e.id, e.brandKit.lastModifiedDate), await n.brandKit.rename(e.brandKit.name), r = {
|
|
679
681
|
success: !0,
|
|
680
682
|
status: 200,
|
|
@@ -685,13 +687,13 @@ class Ve {
|
|
|
685
687
|
colors: h || [],
|
|
686
688
|
gradients: p || [],
|
|
687
689
|
fonts: y || [],
|
|
688
|
-
paragraphStyles:
|
|
690
|
+
paragraphStyles: v || [],
|
|
689
691
|
characterStyles: S || [],
|
|
690
692
|
media: b || []
|
|
691
693
|
}
|
|
692
694
|
};
|
|
693
695
|
}), r;
|
|
694
|
-
}, g(this,
|
|
696
|
+
}, g(this, L, o), this.colorStyleController = t.colorStyle, this.gradientStyleController = t.gradientStyle, this.fontController = t.font, this.mediaController = t.mediaConnector, this.paragraphStyleController = t.paragraphStyle, this.characterStyleController = t.characterStyle, this.undoManagerController = t.undoManager;
|
|
695
697
|
}
|
|
696
698
|
async setColors(o, t) {
|
|
697
699
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -699,7 +701,7 @@ class Ve {
|
|
|
699
701
|
const { parsedData: n } = await t.colorStyle.create();
|
|
700
702
|
if (!n) continue;
|
|
701
703
|
e.set(r.guid, n);
|
|
702
|
-
const c =
|
|
704
|
+
const c = dr(r);
|
|
703
705
|
await t.colorStyle.rename(n, r.name), await t.colorStyle.update(n, c);
|
|
704
706
|
}
|
|
705
707
|
return e;
|
|
@@ -724,30 +726,30 @@ class Ve {
|
|
|
724
726
|
async setParagraphStyles(o, t, e) {
|
|
725
727
|
const { localColors: r, localFonts: n, localColorGuidMap: c, localFontGuidMap: d } = e;
|
|
726
728
|
for (const h of o.brandKit.paragraphStyles || []) {
|
|
727
|
-
const p = c.get(h.brandKitColorGuid), y = c.get(h.textStrokeColorGuid),
|
|
728
|
-
if (!
|
|
729
|
+
const p = c.get(h.brandKitColorGuid), y = c.get(h.textStrokeColorGuid), v = d.get(h.brandKitFontFamilyGuid), S = Ve(n, v, h.fontStyleId);
|
|
730
|
+
if (!v || !S)
|
|
729
731
|
throw new Error(`Paragraph style could not be created with an empty font family: ${h.name}`);
|
|
730
|
-
const b =
|
|
732
|
+
const b = qt(r, p), A = qt(r, y);
|
|
731
733
|
if (!b) throw new Error(`Paragraph style could not be created with an empty color: ${h.name}`);
|
|
732
|
-
const { parsedData:
|
|
734
|
+
const { parsedData: I } = await t.paragraphStyle.create(), f = Re(
|
|
733
735
|
h,
|
|
734
736
|
b,
|
|
735
737
|
A,
|
|
736
738
|
`${S}`
|
|
737
739
|
);
|
|
738
|
-
await t.paragraphStyle.rename(
|
|
740
|
+
await t.paragraphStyle.rename(I, h.name), await t.paragraphStyle.update(I, f);
|
|
739
741
|
}
|
|
740
742
|
}
|
|
741
743
|
async setCharacterStyles(o, t, e) {
|
|
742
744
|
const { localColors: r, localFonts: n, localColorGuidMap: c, localFontGuidMap: d } = e;
|
|
743
745
|
for (const h of o.brandKit.characterStyles || []) {
|
|
744
|
-
const p = h.brandKitColorGuid ? c.get(h.brandKitColorGuid) : void 0, y = h.textStrokeColorGuid ? c.get(h.textStrokeColorGuid) : void 0,
|
|
746
|
+
const p = h.brandKitColorGuid ? c.get(h.brandKitColorGuid) : void 0, y = h.textStrokeColorGuid ? c.get(h.textStrokeColorGuid) : void 0, v = h.brandKitFontFamilyGuid ? d.get(h.brandKitFontFamilyGuid) : void 0, S = qt(r, p), b = qt(r, y), A = Ve(n, v, h.fontStyleId), { parsedData: I } = await t.characterStyle.create(), f = Re(
|
|
745
747
|
h,
|
|
746
748
|
S,
|
|
747
749
|
b,
|
|
748
750
|
A
|
|
749
751
|
);
|
|
750
|
-
await t.characterStyle.rename(
|
|
752
|
+
await t.characterStyle.rename(I, h.name), await t.characterStyle.update(I, f);
|
|
751
753
|
}
|
|
752
754
|
}
|
|
753
755
|
async setMedia(o) {
|
|
@@ -755,9 +757,9 @@ class Ve {
|
|
|
755
757
|
await this.addMedia(t.name, t.mediaConnectorId, t.mediaId);
|
|
756
758
|
}
|
|
757
759
|
}
|
|
758
|
-
|
|
759
|
-
var
|
|
760
|
-
class
|
|
760
|
+
L = new WeakMap();
|
|
761
|
+
var st;
|
|
762
|
+
class re {
|
|
761
763
|
/**
|
|
762
764
|
* @ignore
|
|
763
765
|
*/
|
|
@@ -765,13 +767,13 @@ class se {
|
|
|
765
767
|
/**
|
|
766
768
|
* @ignore
|
|
767
769
|
*/
|
|
768
|
-
u(this,
|
|
769
|
-
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,
|
|
770
|
+
u(this, st);
|
|
771
|
+
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, st)).zoomToPage(e, r, n, c).then((h) => i(h))), this.getZoomPercentage = async () => (await a(this, st)).getZoomPercentage().then((e) => i(e)), this.setZoomPercentage = async (t) => (await a(this, st)).setZoomPercentage(t).then((r) => i(r)), this.setViewMode = async (t) => (await a(this, st)).setViewMode(t).then((r) => i(r)), g(this, st, o);
|
|
770
772
|
}
|
|
771
773
|
}
|
|
772
|
-
|
|
774
|
+
st = new WeakMap();
|
|
773
775
|
var R;
|
|
774
|
-
class
|
|
776
|
+
class Be {
|
|
775
777
|
/**
|
|
776
778
|
* @ignore
|
|
777
779
|
*/
|
|
@@ -784,8 +786,8 @@ class Ge {
|
|
|
784
786
|
}
|
|
785
787
|
}
|
|
786
788
|
R = new WeakMap();
|
|
787
|
-
var
|
|
788
|
-
class
|
|
789
|
+
var rt;
|
|
790
|
+
class Ge {
|
|
789
791
|
/**
|
|
790
792
|
* @ignore
|
|
791
793
|
*/
|
|
@@ -793,25 +795,25 @@ class Be {
|
|
|
793
795
|
/**
|
|
794
796
|
* @ignore
|
|
795
797
|
*/
|
|
796
|
-
u(this,
|
|
798
|
+
u(this, rt);
|
|
797
799
|
this.copyFrames = async (t) => {
|
|
798
|
-
const r = await (await a(this,
|
|
800
|
+
const r = await (await a(this, rt)).copyFrames(t);
|
|
799
801
|
return r.data && await navigator.clipboard.writeText(r.data), i(r);
|
|
800
802
|
}, this.cutFrames = async (t) => {
|
|
801
|
-
const r = await (await a(this,
|
|
803
|
+
const r = await (await a(this, rt)).cutFrames(t);
|
|
802
804
|
return r.data && await navigator.clipboard.writeText(r.data), i(r);
|
|
803
805
|
}, this.pasteFrames = async () => {
|
|
804
|
-
const t = await a(this,
|
|
806
|
+
const t = await a(this, rt), e = await navigator.clipboard.readText(), r = await t.pasteFrames(e);
|
|
805
807
|
return i(r);
|
|
806
808
|
}, this.getContentType = async () => {
|
|
807
|
-
const t = await a(this,
|
|
809
|
+
const t = await a(this, rt), e = await navigator.clipboard.readText(), r = await t.getClipboardContentType(e);
|
|
808
810
|
return i(r);
|
|
809
|
-
}, g(this,
|
|
811
|
+
}, g(this, rt, o);
|
|
810
812
|
}
|
|
811
813
|
}
|
|
812
|
-
|
|
813
|
-
var
|
|
814
|
-
class
|
|
814
|
+
rt = new WeakMap();
|
|
815
|
+
var kt;
|
|
816
|
+
class ke {
|
|
815
817
|
/**
|
|
816
818
|
* @ignore
|
|
817
819
|
*/
|
|
@@ -819,13 +821,13 @@ class Je {
|
|
|
819
821
|
/**
|
|
820
822
|
* @ignore
|
|
821
823
|
*/
|
|
822
|
-
u(this,
|
|
823
|
-
this.convertToRgb = async (t) => (await a(this,
|
|
824
|
+
u(this, kt);
|
|
825
|
+
this.convertToRgb = async (t) => (await a(this, kt)).colorToRgb(JSON.stringify(t)).then((r) => i(r)), g(this, kt, o);
|
|
824
826
|
}
|
|
825
827
|
}
|
|
826
|
-
|
|
828
|
+
kt = new WeakMap();
|
|
827
829
|
var V;
|
|
828
|
-
class
|
|
830
|
+
class Ue {
|
|
829
831
|
/**
|
|
830
832
|
* @ignore
|
|
831
833
|
*/
|
|
@@ -836,50 +838,50 @@ class ke {
|
|
|
836
838
|
u(this, V);
|
|
837
839
|
this.getAll = async () => (await a(this, V)).getColors().then((e) => i(e)), this.getById = async (t) => (await a(this, V)).getColorById(t).then((r) => i(r)), this.create = async () => (await a(this, V)).createColor().then((e) => i(e)), this.duplicate = async (t) => (await a(this, V)).duplicateColor(t).then((r) => i(r)), this.move = async (t, e) => (await a(this, V)).moveColors(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, V)).renameColor(t, e).then((n) => i(n)), this.update = async (t, e) => {
|
|
838
840
|
const r = await a(this, V), n = e;
|
|
839
|
-
return n.type ===
|
|
841
|
+
return n.type === q.spot && (n.type = q.spotCMYK), r.updateColor(t, JSON.stringify(n)).then((c) => i(c));
|
|
840
842
|
}, this.remove = async (t) => (await a(this, V)).removeColor(t).then((r) => i(r)), g(this, V, o);
|
|
841
843
|
}
|
|
842
844
|
}
|
|
843
845
|
V = new WeakMap();
|
|
844
|
-
var
|
|
845
|
-
class
|
|
846
|
+
var Jt = /* @__PURE__ */ ((s) => (s[s.file = 0] = "file", s[s.collection = 1] = "collection", s))(Jt || {}), ne = /* @__PURE__ */ ((s) => (s.LowResolutionWeb = "lowresWeb", s.HighResolutionWeb = "highresWeb", s))(ne || {}), Bt = /* @__PURE__ */ ((s) => (s.file = "file", s.collection = "collection", s))(Bt || {}), gr = /* @__PURE__ */ ((s) => (s.media = "media", s.fonts = "fonts", s.data = "data", s))(gr || {}), yr = /* @__PURE__ */ ((s) => (s.name = "name", s.path = "relativePath", s.id = "id", s))(yr || {}), pr = /* @__PURE__ */ ((s) => (s.ascending = "asc", s.descending = "desc", s))(pr || {}), Cr = /* @__PURE__ */ ((s) => (s.text = "text", s.boolean = "boolean", s))(Cr || {}), mr = /* @__PURE__ */ ((s) => (s.query = "query", s.upload = "upload", s))(mr || {}), xt = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(xt || {});
|
|
847
|
+
class xn {
|
|
846
848
|
constructor(o, t, e, r = "engineToConnector") {
|
|
847
849
|
this.direction = "engineToConnector", this.name = o, this.direction = r, t === "var" ? this.value = `${t}.${e}` : this.value = e;
|
|
848
850
|
}
|
|
849
851
|
}
|
|
850
|
-
var
|
|
851
|
-
const
|
|
852
|
+
var wr = /* @__PURE__ */ ((s) => (s.variable = "var", s.value = "value", s))(wr || {}), fr = /* @__PURE__ */ ((s) => (s.engineToConnector = "engineToConnector", s.connectorToEngine = "connectorToEngine", s))(fr || {}), ae = /* @__PURE__ */ ((s) => (s.loading = "loading", s.loaded = "loaded", s.running = "running", s.ready = "ready", s.error = "error", s))(ae || {}), Sr = /* @__PURE__ */ ((s) => (s.stateChanged = "stateChanged", s.authChanged = "authChanged", s.reloadRequired = "reloadRequired", s.unloaded = "unloaded", s))(Sr || {});
|
|
853
|
+
const Rn = {
|
|
852
854
|
url: "grafx-media.json",
|
|
853
855
|
source: "local"
|
|
854
856
|
/* local */
|
|
855
857
|
};
|
|
856
|
-
class
|
|
858
|
+
class Vn {
|
|
857
859
|
constructor(o) {
|
|
858
860
|
this.type = "grafxToken", this.token = o;
|
|
859
861
|
}
|
|
860
862
|
}
|
|
861
|
-
class
|
|
863
|
+
class Jn {
|
|
862
864
|
constructor() {
|
|
863
865
|
this.type = "refreshed";
|
|
864
866
|
}
|
|
865
867
|
}
|
|
866
|
-
var
|
|
868
|
+
var br = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.refreshed = "refreshed", s))(br || {}), vr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.any = "any", s))(vr || {}), Ss = /* @__PURE__ */ ((s) => (s.minDimension = "minDimension", s))(Ss || {});
|
|
867
869
|
class Ir extends Error {
|
|
868
870
|
constructor(o, t) {
|
|
869
871
|
super(o), this.type = t;
|
|
870
872
|
}
|
|
871
873
|
}
|
|
872
|
-
class
|
|
874
|
+
class he {
|
|
873
875
|
constructor() {
|
|
874
876
|
this.makeConnectorSourceForwardsCompatible = (o) => {
|
|
875
|
-
if (o.source !=
|
|
877
|
+
if (o.source != xt.grafx || this.isSourceMigrated(o))
|
|
876
878
|
return o;
|
|
877
879
|
let t = o.url;
|
|
878
880
|
for (; t.endsWith("/"); )
|
|
879
881
|
t = t.substring(0, t.length - 1);
|
|
880
882
|
const e = t.split("/");
|
|
881
|
-
return { id: e[e.length - 1], source:
|
|
882
|
-
}, this.makeMultipleConnectorsBackwardsCompatible = (o, t) => o.map((e) => this.makeSingleConnectorBackwardsCompatible(e, t)), this.makeSingleConnectorBackwardsCompatible = (o, t) => o.source.source !=
|
|
883
|
+
return { id: e[e.length - 1], source: xt.grafx };
|
|
884
|
+
}, this.makeMultipleConnectorsBackwardsCompatible = (o, t) => o.map((e) => this.makeSingleConnectorBackwardsCompatible(e, t)), this.makeSingleConnectorBackwardsCompatible = (o, t) => o.source.source != xt.grafx ? o : {
|
|
883
885
|
id: o.id,
|
|
884
886
|
name: o.name,
|
|
885
887
|
iconUrl: o.iconUrl,
|
|
@@ -890,13 +892,13 @@ class ce {
|
|
|
890
892
|
e = e.substring(0, e.length - 1);
|
|
891
893
|
return {
|
|
892
894
|
url: `${e}/connectors/${o.id}`,
|
|
893
|
-
source:
|
|
895
|
+
source: xt.grafx
|
|
894
896
|
};
|
|
895
897
|
}, this.isSourceMigrated = (o) => "id" in o;
|
|
896
898
|
}
|
|
897
899
|
}
|
|
898
|
-
var
|
|
899
|
-
let
|
|
900
|
+
var J, vt, gt, ls;
|
|
901
|
+
let _e = (ls = class {
|
|
900
902
|
/**
|
|
901
903
|
* @ignore
|
|
902
904
|
*/
|
|
@@ -904,28 +906,28 @@ let Ue = (hs = class {
|
|
|
904
906
|
/**
|
|
905
907
|
* @ignore
|
|
906
908
|
*/
|
|
907
|
-
u(this,
|
|
908
|
-
u(this,
|
|
909
|
-
u(this,
|
|
910
|
-
this.getById = async (e) => (await a(this,
|
|
909
|
+
u(this, J);
|
|
910
|
+
u(this, vt);
|
|
911
|
+
u(this, gt);
|
|
912
|
+
this.getById = async (e) => (await a(this, J)).getConnectorById(e).then((n) => i(n)).then((n) => {
|
|
911
913
|
const c = { ...n, parsedData: null };
|
|
912
|
-
return n.parsedData && (c.parsedData = a(this,
|
|
914
|
+
return n.parsedData && (c.parsedData = a(this, gt).makeSingleConnectorBackwardsCompatible(
|
|
913
915
|
n.parsedData,
|
|
914
|
-
a(this,
|
|
916
|
+
a(this, vt).get(tt.GraFxStudioEnvironmentApiUrl)
|
|
915
917
|
)), c;
|
|
916
|
-
}), this.getAllByType = async (e) => (await a(this,
|
|
918
|
+
}), this.getAllByType = async (e) => (await a(this, J)).getConnectors(e).then((n) => i(n)).then((n) => {
|
|
917
919
|
const c = { ...n, parsedData: null };
|
|
918
|
-
return n.parsedData && (c.parsedData = a(this,
|
|
920
|
+
return n.parsedData && (c.parsedData = a(this, gt).makeMultipleConnectorsBackwardsCompatible(
|
|
919
921
|
n.parsedData,
|
|
920
|
-
a(this,
|
|
922
|
+
a(this, vt).get(tt.GraFxStudioEnvironmentApiUrl)
|
|
921
923
|
)), c;
|
|
922
924
|
}), this.register = async (e) => {
|
|
923
|
-
const r = await a(this,
|
|
925
|
+
const r = await a(this, J), n = a(this, gt).makeConnectorSourceForwardsCompatible(e);
|
|
924
926
|
return r.registerConnector(JSON.stringify(n)).then((c) => i(c));
|
|
925
|
-
}, this.unregister = async (e) => (await a(this,
|
|
926
|
-
const n = await a(this,
|
|
927
|
-
return await this.waitToBeReady(e), await r(new
|
|
928
|
-
}, this.getState = async (e) => (await a(this,
|
|
927
|
+
}, this.unregister = async (e) => (await a(this, J)).unregisterConnector(e).then((n) => i(n)), this.configure = async (e, r) => {
|
|
928
|
+
const n = await a(this, J);
|
|
929
|
+
return await this.waitToBeReady(e), await r(new Ar(e, n)), n.updateConnectorConfiguration(e).then((c) => i(c));
|
|
930
|
+
}, this.getState = async (e) => (await a(this, J)).getConnectorState(e).then((n) => i(n)), this.getOptions = async (e) => (await a(this, J)).getConnectorOptions(e).then((n) => i(n)), this.waitToBeReady = async (e, r = 2e3) => {
|
|
929
931
|
let n = Math.max(r, 500);
|
|
930
932
|
n = Math.min(n, 5e3);
|
|
931
933
|
const c = 100;
|
|
@@ -933,7 +935,7 @@ let Ue = (hs = class {
|
|
|
933
935
|
try {
|
|
934
936
|
for (; d * c < n; ) {
|
|
935
937
|
const h = await this.getState(e);
|
|
936
|
-
if (h.success && h.parsedData && (h.parsedData.type ===
|
|
938
|
+
if (h.success && h.parsedData && (h.parsedData.type === ae.running || h.parsedData.type === ae.ready))
|
|
937
939
|
return i(
|
|
938
940
|
{ data: null, success: !0, error: void 0, status: 0, parsedData: void 0 },
|
|
939
941
|
!1
|
|
@@ -965,14 +967,14 @@ let Ue = (hs = class {
|
|
|
965
967
|
}, this.updateMappings = async (e, r) => await this.configure(e, async (n) => {
|
|
966
968
|
const { parsedData: c } = await this.getMappings(e), d = (c == null ? void 0 : c.filter(
|
|
967
969
|
(y) => !r.some(
|
|
968
|
-
(
|
|
970
|
+
(v) => v.name === y.name && v.direction === y.direction
|
|
969
971
|
)
|
|
970
972
|
)) ?? [], h = r.filter((y) => y.name !== "" && y.value !== ""), p = [...d, ...h];
|
|
971
973
|
await n.setMappings(p);
|
|
972
|
-
}), g(this,
|
|
974
|
+
}), g(this, J, o), g(this, vt, t), g(this, gt, new he());
|
|
973
975
|
}
|
|
974
976
|
async getMappings(o, t) {
|
|
975
|
-
return (await a(this,
|
|
977
|
+
return (await a(this, J)).getConnectorMappings(o).then((r) => i(r)).then(
|
|
976
978
|
(r) => {
|
|
977
979
|
var n;
|
|
978
980
|
return t ? {
|
|
@@ -982,9 +984,9 @@ let Ue = (hs = class {
|
|
|
982
984
|
}
|
|
983
985
|
);
|
|
984
986
|
}
|
|
985
|
-
},
|
|
986
|
-
var
|
|
987
|
-
class
|
|
987
|
+
}, J = new WeakMap(), vt = new WeakMap(), gt = new WeakMap(), ls);
|
|
988
|
+
var yt, pt;
|
|
989
|
+
class Ar {
|
|
988
990
|
/**
|
|
989
991
|
* @ignore
|
|
990
992
|
*/
|
|
@@ -992,22 +994,22 @@ class vr {
|
|
|
992
994
|
/**
|
|
993
995
|
* @ignore
|
|
994
996
|
*/
|
|
995
|
-
u(this, gt);
|
|
996
997
|
u(this, yt);
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
998
|
+
u(this, pt);
|
|
999
|
+
this.setOptions = async (e) => a(this, pt).setConnectorOptions(a(this, yt), JSON.stringify(e)).then((r) => i(r)), this.setMappings = async (e) => {
|
|
1000
|
+
const r = await a(this, pt).setConnectorMappings(
|
|
1001
|
+
a(this, yt),
|
|
1000
1002
|
e.map(function(n) {
|
|
1001
1003
|
return JSON.stringify(n);
|
|
1002
1004
|
})
|
|
1003
1005
|
);
|
|
1004
1006
|
return i(r);
|
|
1005
|
-
}, this.setHttpHeader = async (e, r) => a(this,
|
|
1007
|
+
}, this.setHttpHeader = async (e, r) => a(this, pt).connectorAuthenticationSetHttpHeader(a(this, yt), e, r).then((n) => i(n)), g(this, yt, o), g(this, pt, t);
|
|
1006
1008
|
}
|
|
1007
1009
|
}
|
|
1008
|
-
|
|
1009
|
-
var
|
|
1010
|
-
class
|
|
1010
|
+
yt = new WeakMap(), pt = new WeakMap();
|
|
1011
|
+
var nt, Ut;
|
|
1012
|
+
class He {
|
|
1011
1013
|
/**
|
|
1012
1014
|
* @ignore
|
|
1013
1015
|
*/
|
|
@@ -1015,22 +1017,22 @@ class _e {
|
|
|
1015
1017
|
/**
|
|
1016
1018
|
* @ignore
|
|
1017
1019
|
*/
|
|
1018
|
-
u(this,
|
|
1019
|
-
u(this,
|
|
1020
|
-
this.getPage = async (e, r, n = {}) => (await a(this,
|
|
1020
|
+
u(this, nt);
|
|
1021
|
+
u(this, Ut);
|
|
1022
|
+
this.getPage = async (e, r, n = {}) => (await a(this, nt)).dataConnectorGetPage(e, JSON.stringify(r), JSON.stringify(n)).then((d) => i(d)).then((d) => {
|
|
1021
1023
|
const h = { ...d, parsedData: null };
|
|
1022
1024
|
return d.parsedData && (h.parsedData = {
|
|
1023
1025
|
data: d.parsedData.data.map(
|
|
1024
|
-
(p) => a(this,
|
|
1026
|
+
(p) => a(this, Ut).mapEngineToDataItem(p)
|
|
1025
1027
|
),
|
|
1026
1028
|
continuationToken: d.parsedData.continuationToken
|
|
1027
1029
|
}), h;
|
|
1028
|
-
}), this.getModel = async (e, r = {}) => (await a(this,
|
|
1030
|
+
}), this.getModel = async (e, r = {}) => (await a(this, nt)).dataConnectorGetModel(e, JSON.stringify(r)).then((c) => i(c)), this.getConfigurationOptions = async (e) => (await a(this, nt)).dataConnectorGetConfigurationOptions(e).then((n) => i(n)), this.getCapabilities = async (e) => (await a(this, nt)).dataConnectorGetCapabilities(e).then((n) => i(n)), g(this, nt, o), g(this, Ut, t);
|
|
1029
1031
|
}
|
|
1030
1032
|
}
|
|
1031
|
-
|
|
1032
|
-
var
|
|
1033
|
-
class
|
|
1033
|
+
nt = new WeakMap(), Ut = new WeakMap();
|
|
1034
|
+
var at, _t;
|
|
1035
|
+
class Te {
|
|
1034
1036
|
/**
|
|
1035
1037
|
* @ignore
|
|
1036
1038
|
*/
|
|
@@ -1038,17 +1040,17 @@ class He {
|
|
|
1038
1040
|
/**
|
|
1039
1041
|
* @ignore
|
|
1040
1042
|
*/
|
|
1041
|
-
u(this,
|
|
1042
|
-
u(this,
|
|
1043
|
-
this.setDataSource = async (e) => (await a(this,
|
|
1044
|
-
const r = await a(this,
|
|
1043
|
+
u(this, at);
|
|
1044
|
+
u(this, _t);
|
|
1045
|
+
this.setDataSource = async (e) => (await a(this, at)).setDataSource(e).then((n) => i(n)), this.getDataSource = async () => (await a(this, at)).getDataSource().then((r) => i(r)), this.removeDataSource = async () => (await a(this, at)).removeDataSource().then((r) => i(r)), this.setDataRow = async (e) => {
|
|
1046
|
+
const r = await a(this, at), n = a(this, _t).mapDataItemToEngine(e);
|
|
1045
1047
|
return r.setDataRow(JSON.stringify(n)).then((c) => i(c));
|
|
1046
|
-
}, g(this,
|
|
1048
|
+
}, g(this, at, o), g(this, _t, t);
|
|
1047
1049
|
}
|
|
1048
1050
|
}
|
|
1049
|
-
|
|
1050
|
-
var
|
|
1051
|
-
class
|
|
1051
|
+
at = new WeakMap(), _t = new WeakMap();
|
|
1052
|
+
var it;
|
|
1053
|
+
class Ke {
|
|
1052
1054
|
/**
|
|
1053
1055
|
* @ignore
|
|
1054
1056
|
*/
|
|
@@ -1056,13 +1058,13 @@ class Te {
|
|
|
1056
1058
|
/**
|
|
1057
1059
|
* @ignore
|
|
1058
1060
|
*/
|
|
1059
|
-
u(this,
|
|
1060
|
-
this.getAllLogs = async () => (await a(this,
|
|
1061
|
+
u(this, it);
|
|
1062
|
+
this.getAllLogs = async () => (await a(this, it)).getLogs().then((e) => i(e)), this.toggleDebugPanel = async () => (await a(this, it)).toggleDebugPanel().then((e) => i(e)), this.enableDebug = async () => (await a(this, it)).enableDebug().then((e) => i(e)), this.disableDebug = async () => (await a(this, it)).disableDebug().then((e) => i(e)), g(this, it, o);
|
|
1061
1063
|
}
|
|
1062
1064
|
}
|
|
1063
|
-
|
|
1064
|
-
var
|
|
1065
|
-
class
|
|
1065
|
+
it = new WeakMap();
|
|
1066
|
+
var Ct;
|
|
1067
|
+
class $e {
|
|
1066
1068
|
/**
|
|
1067
1069
|
* @ignore
|
|
1068
1070
|
*/
|
|
@@ -1070,30 +1072,30 @@ class Ke {
|
|
|
1070
1072
|
/**
|
|
1071
1073
|
* @ignore
|
|
1072
1074
|
*/
|
|
1073
|
-
u(this,
|
|
1074
|
-
this.getCurrentState = async () => (await a(this,
|
|
1075
|
-
const r = await a(this,
|
|
1075
|
+
u(this, Ct);
|
|
1076
|
+
this.getCurrentState = async () => (await a(this, Ct)).getCurrentDocumentState().then((e) => i(e)), this.load = async (t, e = { keepConnectors: !1 }) => {
|
|
1077
|
+
const r = await a(this, Ct), n = typeof t != "string" ? JSON.stringify(t) : t;
|
|
1076
1078
|
return r.loadDocument(n, JSON.stringify(e)).then((c) => i(c));
|
|
1077
1079
|
}, this.createAndLoad = async (t) => {
|
|
1078
|
-
const e = await a(this,
|
|
1080
|
+
const e = await a(this, Ct), r = JSON.stringify(t);
|
|
1079
1081
|
return e.createAndLoadDocument(r).then((n) => i(n));
|
|
1080
|
-
}, g(this,
|
|
1082
|
+
}, g(this, Ct, o);
|
|
1081
1083
|
}
|
|
1082
1084
|
}
|
|
1083
|
-
|
|
1084
|
-
var
|
|
1085
|
-
class
|
|
1085
|
+
Ct = new WeakMap();
|
|
1086
|
+
var Pr = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Pr || {}), Yt = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(Yt || {}), Fr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s))(Fr || {}), Er = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Er || {}), Or = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Or || {}), Dr = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(Dr || {}), Lr = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))(Lr || {}), Nr = /* @__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))(Nr || {}), Mr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(Mr || {}), xr = /* @__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))(xr || {}), Rr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(Rr || {}), Vr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(Vr || {}), Jr = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))(Jr || {}), Br = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Br || {});
|
|
1087
|
+
class Gn {
|
|
1086
1088
|
constructor() {
|
|
1087
1089
|
this.type = "page";
|
|
1088
1090
|
}
|
|
1089
1091
|
}
|
|
1090
|
-
class
|
|
1092
|
+
class kn {
|
|
1091
1093
|
constructor(o, t) {
|
|
1092
1094
|
this.type = "frame", this.frameId = o, this.edge = t;
|
|
1093
1095
|
}
|
|
1094
1096
|
}
|
|
1095
|
-
var
|
|
1096
|
-
class
|
|
1097
|
+
var bs = /* @__PURE__ */ ((s) => (s.frameCrop = "frameCrop", s.assetCrop = "assetCrop", s))(bs || {}), B;
|
|
1098
|
+
class ze {
|
|
1097
1099
|
/**
|
|
1098
1100
|
* @ignore
|
|
1099
1101
|
*/
|
|
@@ -1103,14 +1105,14 @@ class $e {
|
|
|
1103
1105
|
*/
|
|
1104
1106
|
u(this, B);
|
|
1105
1107
|
this.insertImageVariableToFrame = async (t, e) => {
|
|
1106
|
-
const r = await a(this, B), n = { id: e, type:
|
|
1108
|
+
const r = await a(this, B), n = { id: e, type: Yt.variable };
|
|
1107
1109
|
return r.setImageSource(t, JSON.stringify(n)).then((c) => i(c));
|
|
1108
1110
|
}, this.insertTextVariable = async (t) => (await a(this, B)).insertTextVariable(t).then((r) => i(r)), this.enterTextEditMode = async (t) => (await a(this, B)).enterTextEditMode(t).then((r) => i(r)), this.exitTextEditMode = async () => (await a(this, B)).exitTextEditMode().then((e) => i(e)), this.getText = async (t, e) => (await a(this, B)).getTextByFrameId(t, e).then((n) => i(n)), this.setText = async (t, e) => (await a(this, B)).setTextByFrameId(t, e).then((n) => i(n)), this.selectText = async (t, e, r) => (await a(this, B)).selectTextById(t, e, r).then((c) => i(c)), this.addCustomUndoData = async (t, e, r) => (await a(this, B)).setCustomUndoData(t, e, r ?? !1).then((c) => i(c)), g(this, B, o);
|
|
1109
1111
|
}
|
|
1110
1112
|
}
|
|
1111
1113
|
B = new WeakMap();
|
|
1112
|
-
var
|
|
1113
|
-
class
|
|
1114
|
+
var ot, It;
|
|
1115
|
+
class We {
|
|
1114
1116
|
/**
|
|
1115
1117
|
* @ignore
|
|
1116
1118
|
*/
|
|
@@ -1118,17 +1120,17 @@ class ze {
|
|
|
1118
1120
|
/**
|
|
1119
1121
|
* @ignore
|
|
1120
1122
|
*/
|
|
1121
|
-
u(this,
|
|
1123
|
+
u(this, ot);
|
|
1122
1124
|
u(this, It);
|
|
1123
|
-
this.query = async (t, e, r = {}) => (await a(this,
|
|
1124
|
-
if (t ===
|
|
1125
|
-
if (t ===
|
|
1126
|
-
}, g(this,
|
|
1125
|
+
this.query = async (t, e, r = {}) => (await a(this, ot)).fontConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((c) => i(c)), this.detail = async (t, e, r = {}) => (await a(this, ot)).fontConnectorDetail(t, e, JSON.stringify(r)).then((c) => i(c)), this.download = async (t, e, r = {}) => (await a(this, It)).fontConnectorDownload(t, e, JSON.stringify(r)).then((c) => c ?? c), this.preview = async (t, e, r, n = {}) => (await a(this, It)).fontConnectorPreview(t, e, r, JSON.stringify(n)).then((d) => d ?? d), this.getConfigurationOptions = async (t) => (await a(this, ot)).fontConnectorGetConfigurationOptions(t).then((r) => i(r)), this.getCapabilities = async (t) => (await a(this, ot)).fontConnectorGetCapabilities(t).then((r) => i(r)), this.parseDeprecatedFontType = (t) => {
|
|
1126
|
+
if (t === Jt.file) return Bt.file;
|
|
1127
|
+
if (t === Jt.collection) return Bt.collection;
|
|
1128
|
+
}, g(this, ot, o), g(this, It, o);
|
|
1127
1129
|
}
|
|
1128
1130
|
}
|
|
1129
|
-
|
|
1131
|
+
ot = new WeakMap(), It = new WeakMap();
|
|
1130
1132
|
var F;
|
|
1131
|
-
class
|
|
1133
|
+
class je {
|
|
1132
1134
|
/**
|
|
1133
1135
|
* @ignore
|
|
1134
1136
|
*/
|
|
@@ -1141,8 +1143,8 @@ class We {
|
|
|
1141
1143
|
}
|
|
1142
1144
|
}
|
|
1143
1145
|
F = new WeakMap();
|
|
1144
|
-
var
|
|
1145
|
-
class
|
|
1146
|
+
var At;
|
|
1147
|
+
class ie {
|
|
1146
1148
|
/**
|
|
1147
1149
|
* @ignore
|
|
1148
1150
|
*/
|
|
@@ -1150,8 +1152,8 @@ class ae {
|
|
|
1150
1152
|
/**
|
|
1151
1153
|
* @ignore
|
|
1152
1154
|
*/
|
|
1153
|
-
u(this,
|
|
1154
|
-
this.setShapeProperties = async (t, e) => (await a(this,
|
|
1155
|
+
u(this, At);
|
|
1156
|
+
this.setShapeProperties = async (t, e) => (await a(this, At)).setShapeProperties(t, JSON.stringify(e)).then((n) => i(n)), this.setEnableFill = async (t, e) => {
|
|
1155
1157
|
const r = { enableFill: e };
|
|
1156
1158
|
return this.setShapeProperties(t, r);
|
|
1157
1159
|
}, this.setFillColor = async (t, e) => {
|
|
@@ -1169,7 +1171,7 @@ class ae {
|
|
|
1169
1171
|
}, this.setFlagAllCornersSame = async (t, e) => {
|
|
1170
1172
|
const r = { allCornersSame: e };
|
|
1171
1173
|
return this.setShapeProperties(t, r);
|
|
1172
|
-
}, this.setShapeCorners = async (t, e) => (await a(this,
|
|
1174
|
+
}, this.setShapeCorners = async (t, e) => (await a(this, At)).setShapeCorners(t, JSON.stringify(e)).then((n) => i(n)), this.setRadiusAll = async (t, e) => {
|
|
1173
1175
|
const r = { radiusAll: e };
|
|
1174
1176
|
return this.setShapeCorners(t, r);
|
|
1175
1177
|
}, this.setRadiusTopLeft = async (t, e) => {
|
|
@@ -1184,12 +1186,12 @@ class ae {
|
|
|
1184
1186
|
}, this.setRadiusBottomRight = async (t, e) => {
|
|
1185
1187
|
const r = { bottomRight: e };
|
|
1186
1188
|
return this.setShapeCorners(t, r);
|
|
1187
|
-
}, g(this,
|
|
1189
|
+
}, g(this, At, o);
|
|
1188
1190
|
}
|
|
1189
1191
|
}
|
|
1190
|
-
|
|
1192
|
+
At = new WeakMap();
|
|
1191
1193
|
var l;
|
|
1192
|
-
class
|
|
1194
|
+
class qe {
|
|
1193
1195
|
/**
|
|
1194
1196
|
* @ignore
|
|
1195
1197
|
*/
|
|
@@ -1205,18 +1207,18 @@ class je {
|
|
|
1205
1207
|
const n = {
|
|
1206
1208
|
id: e,
|
|
1207
1209
|
assetId: r,
|
|
1208
|
-
type:
|
|
1210
|
+
type: Yt.connector
|
|
1209
1211
|
};
|
|
1210
1212
|
return this.updateImageSource(t, n);
|
|
1211
1213
|
}, this.setImageFromUrl = async (t, e) => {
|
|
1212
|
-
const r = { url: e, type:
|
|
1214
|
+
const r = { url: e, type: Yt.url };
|
|
1213
1215
|
return this.updateImageSource(t, r);
|
|
1214
1216
|
}, this.setImageFrameFitMode = async (t, e) => (await a(this, l)).setImageFrameFitMode(t, e).then((n) => i(n)), this.setImageFrameFitModePosition = async (t, e) => (await a(this, l)).setImageFrameFitModePosition(t, e).then((n) => i(n)), this.setFrameConstrainProportions = async (t, e) => (console.error("setFrameConstrainProportions is not supported anymore"), i({
|
|
1215
1217
|
success: !1,
|
|
1216
1218
|
status: 0,
|
|
1217
1219
|
error: "setFrameConstrainProportions is not supported anymore",
|
|
1218
1220
|
parsedData: null
|
|
1219
|
-
})), this.setVerticalAlign = async (t, e) => (await a(this, l)).setVerticalAlignment(t, e).then((n) => i(n)), this.setMinCopyfitting = async (t, e) => (await a(this, l)).setMinCopyfitting(t, e).then((n) => i(n)), this.setMaxCopyfitting = async (t, e) => (await a(this, l)).setMaxCopyfitting(t, e).then((n) => i(n)), this.setEnableCopyfitting = async (t, e) => (await a(this, l)).setEnableCopyfitting(t, e).then((n) => i(n)), this.resetMinCopyfitting = async (t) => (await a(this, l)).resetMinCopyfitting(t).then((r) => i(r)), this.resetMaxCopyfitting = async (t) => (await a(this, l)).resetMaxCopyfitting(t).then((r) => i(r)), this.resetEnableCopyfitting = async (t) => (await a(this, l)).resetEnableCopyfitting(t).then((r) => i(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, l)).setFrameBlendMode(t, e).then((n) => i(n)), this.enterCropMode = async (t, e =
|
|
1221
|
+
})), this.setVerticalAlign = async (t, e) => (await a(this, l)).setVerticalAlignment(t, e).then((n) => i(n)), this.setMinCopyfitting = async (t, e) => (await a(this, l)).setMinCopyfitting(t, e).then((n) => i(n)), this.setMaxCopyfitting = async (t, e) => (await a(this, l)).setMaxCopyfitting(t, e).then((n) => i(n)), this.setEnableCopyfitting = async (t, e) => (await a(this, l)).setEnableCopyfitting(t, e).then((n) => i(n)), this.resetMinCopyfitting = async (t) => (await a(this, l)).resetMinCopyfitting(t).then((r) => i(r)), this.resetMaxCopyfitting = async (t) => (await a(this, l)).resetMaxCopyfitting(t).then((r) => i(r)), this.resetEnableCopyfitting = async (t) => (await a(this, l)).resetEnableCopyfitting(t).then((r) => i(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, l)).setFrameBlendMode(t, e).then((n) => i(n)), this.enterCropMode = async (t, e = bs.frameCrop) => (await a(this, l)).enterCropMode(t, e).then((n) => i(n)), this.applyCropMode = async () => (await a(this, l)).applyCropMode().then((e) => i(e)), this.exitCropMode = async () => (await a(this, l)).cancelCropMode().then((e) => i(e)), this.enterSubjectMode = async (t) => (await a(this, l)).enterSubjectMode(t).then((r) => i(r)), this.applySubjectMode = async () => (await a(this, l)).applySubjectMode().then((e) => i(e)), this.exitSubjectMode = async () => (await a(this, l)).cancelSubjectMode().then((e) => i(e)), this.enterGradientMode = async (t) => (await a(this, l)).enterGradientMode(t).then((r) => i(r)), this.applyGradientMode = async () => (await a(this, l)).applyGradientMode().then((e) => i(e)), this.cancelGradientMode = async () => (await a(this, l)).cancelGradientMode().then((e) => i(e)), this.resetCropMode = async (t) => (console.error("resetCropMode is not supported anymore"), i({
|
|
1220
1222
|
success: !1,
|
|
1221
1223
|
status: 0,
|
|
1222
1224
|
error: "resetCropMode is not supported anymore",
|
|
@@ -1306,17 +1308,46 @@ class je {
|
|
|
1306
1308
|
}, this.setBrandKitGradient = async (t, e) => {
|
|
1307
1309
|
const r = { id: e };
|
|
1308
1310
|
return (await a(this, l)).updateFrameGradientSettings(t, JSON.stringify(r)).then((c) => i(c));
|
|
1309
|
-
}, g(this, l, o), this.shapeController = new
|
|
1311
|
+
}, g(this, l, o), this.shapeController = new ie(a(this, l)), this.constraints = new Gr(a(this, l));
|
|
1310
1312
|
}
|
|
1311
1313
|
}
|
|
1312
1314
|
l = new WeakMap();
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1315
|
+
var $;
|
|
1316
|
+
class Gr {
|
|
1317
|
+
/**
|
|
1318
|
+
* @ignore
|
|
1319
|
+
*/
|
|
1320
|
+
constructor(o) {
|
|
1321
|
+
/**
|
|
1322
|
+
* @ignore
|
|
1323
|
+
*/
|
|
1324
|
+
u(this, $);
|
|
1325
|
+
this.get = async (t) => (await a(this, $)).getFrameConstraints(t).then((r) => i(r)), this.setSelectable = async (t, e) => {
|
|
1326
|
+
const r = { selectable: { value: e } };
|
|
1327
|
+
return (await a(this, $)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
|
|
1328
|
+
}, this.setHorizontalMovement = async (t, e) => {
|
|
1329
|
+
const r = { horizontalMovementAllowed: { value: e } };
|
|
1330
|
+
return (await a(this, $)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
|
|
1331
|
+
}, this.setVerticalMovement = async (t, e) => {
|
|
1332
|
+
const r = { verticalMovementAllowed: { value: e } };
|
|
1333
|
+
return (await a(this, $)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
|
|
1334
|
+
}, this.setRotation = async (t, e) => {
|
|
1335
|
+
const r = { rotationAllowed: { value: e } };
|
|
1336
|
+
return (await a(this, $)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
|
|
1337
|
+
}, this.setResize = async (t, e) => {
|
|
1338
|
+
const r = { resizeAllowed: { value: e } };
|
|
1339
|
+
return (await a(this, $)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
|
|
1340
|
+
}, g(this, $, o);
|
|
1316
1341
|
}
|
|
1317
1342
|
}
|
|
1318
|
-
|
|
1343
|
+
$ = new WeakMap();
|
|
1319
1344
|
class Ye {
|
|
1345
|
+
constructor() {
|
|
1346
|
+
this.currentEngineVersion = gs.current, this.currentSDKVersion = ys.version;
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
var w, Ht;
|
|
1350
|
+
class Ze {
|
|
1320
1351
|
/**
|
|
1321
1352
|
* @ignore
|
|
1322
1353
|
*/
|
|
@@ -1325,7 +1356,7 @@ class Ye {
|
|
|
1325
1356
|
* @ignore
|
|
1326
1357
|
*/
|
|
1327
1358
|
u(this, w);
|
|
1328
|
-
u(this,
|
|
1359
|
+
u(this, Ht);
|
|
1329
1360
|
this.getAll = async () => (await a(this, w)).getLayouts().then((e) => i(e)), this.getById = async (t) => (await a(this, w)).getLayoutById(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, w)).getLayoutByName(t).then((r) => i(r)), this.getSelected = async () => (await a(this, w)).getSelectedLayout().then((e) => i(e)), this.remove = async (t) => (await a(this, w)).removeLayout(t).then((r) => i(r)), this.create = async (t, e) => {
|
|
1330
1361
|
const r = await a(this, w);
|
|
1331
1362
|
return e != null && e.length ? r.addLayouts(t, JSON.stringify(e)).then((n) => i(n)) : r.addLayout(t).then((n) => i(n));
|
|
@@ -1334,23 +1365,23 @@ class Ye {
|
|
|
1334
1365
|
pageSize: e
|
|
1335
1366
|
};
|
|
1336
1367
|
return r.selectLayoutWithOptions(t, JSON.stringify(n)).then((c) => i(c));
|
|
1337
|
-
}, this.duplicate = async (t) => (await a(this, w)).duplicateLayout(t).then((r) => i(r)), this.reset = async (t) => (await a(this, w)).resetLayout(t).then((r) => i(r)), this.setHeight = async (t, e) => (await a(this, w)).setLayoutHeight(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, w)).setLayoutWidth(t, e).then((n) => i(n)), this.setUnit = async (t, e) => (await a(this, w)).setLayoutUnit(t, e).then((n) => i(n)), this.resetHeight = async (t) => (await a(this, w)).resetLayoutHeight(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, w)).resetLayoutWidth(t).then((r) => i(r)), this.resetUnit = async (t) => (await a(this, w)).resetLayoutUnit(t).then((r) => i(r)), this.getSelectedSnapshot = async () => (await a(this,
|
|
1368
|
+
}, this.duplicate = async (t) => (await a(this, w)).duplicateLayout(t).then((r) => i(r)), this.reset = async (t) => (await a(this, w)).resetLayout(t).then((r) => i(r)), this.setHeight = async (t, e) => (await a(this, w)).setLayoutHeight(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, w)).setLayoutWidth(t, e).then((n) => i(n)), this.setUnit = async (t, e) => (await a(this, w)).setLayoutUnit(t, e).then((n) => i(n)), this.resetHeight = async (t) => (await a(this, w)).resetLayoutHeight(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, w)).resetLayoutWidth(t).then((r) => i(r)), this.resetUnit = async (t) => (await a(this, w)).resetLayoutUnit(t).then((r) => i(r)), this.getSelectedSnapshot = async () => (await a(this, Ht)).getPageSnapshot().then((e) => e ?? e), this.setIntent = async (t, e) => (await a(this, w)).setLayoutIntent(t, e).then((n) => i(n)), this.resetIntent = async (t) => (await a(this, w)).resetLayoutIntent(t).then((r) => i(r)), this.setFillColor = async (t, e) => (await a(this, w)).setLayoutFillColor(t, JSON.stringify(e)).then((n) => i(n)), this.setFillColorEnabled = async (t, e) => (await a(this, w)).setLayoutFillColorEnabled(t, e).then((n) => i(n)), this.resetFillColor = async (t) => (await a(this, w)).resetLayoutFillColor(t).then((r) => i(r)), this.setBleedValue = async (t, e, r) => {
|
|
1338
1369
|
const n = r ? {
|
|
1339
|
-
left: r ===
|
|
1340
|
-
top: r ===
|
|
1341
|
-
right: r ===
|
|
1342
|
-
bottom: r ===
|
|
1370
|
+
left: r === X.left ? e : void 0,
|
|
1371
|
+
top: r === X.top ? e : void 0,
|
|
1372
|
+
right: r === X.right ? e : void 0,
|
|
1373
|
+
bottom: r === X.bottom ? e : void 0
|
|
1343
1374
|
} : { left: e, top: e, right: e, bottom: e };
|
|
1344
1375
|
return (await a(this, w)).updateLayoutBleed(t, JSON.stringify(n)).then((d) => i(d));
|
|
1345
1376
|
}, this.setAreBleedValuesCombined = async (t, e) => {
|
|
1346
1377
|
const r = { areBleedValuesCombined: e };
|
|
1347
1378
|
return (await a(this, w)).updateLayoutBleed(t, JSON.stringify(r)).then((c) => i(c));
|
|
1348
|
-
}, this.resetBleedValues = async (t) => (await a(this, w)).updateLayoutBleed(t, null).then((r) => i(r)), this.setPrivateData = async (t, e) => (await a(this, w)).setLayoutPrivateData(t, JSON.stringify(e)).then((n) => i(n)), this.getPrivateData = async (t) => (await a(this, w)).getLayoutPrivateData(t).then((r) => i(r)), this.setDisplayName = async (t, e) => (await a(this, w)).setLayoutDisplayName(t, e).then((n) => i(n)), this.getDisplayName = async (t) => (await a(this, w)).getLayoutDisplayName(t).then((r) => i(r)), this.resetDisplayName = async (t) => (await a(this, w)).setLayoutDisplayName(t, null).then((r) => i(r)), this.setAvailableForUser = async (t, e) => (await a(this, w)).setLayoutAvailableForUser(t, e).then((n) => i(n)), this.setSelectedByUser = async (t, e) => (await a(this, w)).setLayoutSelectedByUser(t, e).then((n) => i(n)), this.setResizableByUser = async (t, e) => (await a(this, w)).setLayoutResizableByUser(t, JSON.stringify(e)).then((n) => i(n)), g(this, w, o), g(this,
|
|
1379
|
+
}, this.resetBleedValues = async (t) => (await a(this, w)).updateLayoutBleed(t, null).then((r) => i(r)), this.setPrivateData = async (t, e) => (await a(this, w)).setLayoutPrivateData(t, JSON.stringify(e)).then((n) => i(n)), this.getPrivateData = async (t) => (await a(this, w)).getLayoutPrivateData(t).then((r) => i(r)), this.setDisplayName = async (t, e) => (await a(this, w)).setLayoutDisplayName(t, e).then((n) => i(n)), this.getDisplayName = async (t) => (await a(this, w)).getLayoutDisplayName(t).then((r) => i(r)), this.resetDisplayName = async (t) => (await a(this, w)).setLayoutDisplayName(t, null).then((r) => i(r)), this.setAvailableForUser = async (t, e) => (await a(this, w)).setLayoutAvailableForUser(t, e).then((n) => i(n)), this.setSelectedByUser = async (t, e) => (await a(this, w)).setLayoutSelectedByUser(t, e).then((n) => i(n)), this.setResizableByUser = async (t, e) => (await a(this, w)).setLayoutResizableByUser(t, JSON.stringify(e)).then((n) => i(n)), g(this, w, o), g(this, Ht, o);
|
|
1349
1380
|
}
|
|
1350
1381
|
}
|
|
1351
|
-
w = new WeakMap(),
|
|
1352
|
-
var
|
|
1353
|
-
class
|
|
1382
|
+
w = new WeakMap(), Ht = new WeakMap();
|
|
1383
|
+
var oe = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.mediumres = "mediumres", s.highres = "highres", s.original = "original", s))(oe || {}), vs = /* @__PURE__ */ ((s) => (s.web = "web", s.print = "print", s.animation = "animation", s))(vs || {}), Y, Tt;
|
|
1384
|
+
class Qe {
|
|
1354
1385
|
/**
|
|
1355
1386
|
* @ignore
|
|
1356
1387
|
*/
|
|
@@ -1358,27 +1389,27 @@ class Ze {
|
|
|
1358
1389
|
/**
|
|
1359
1390
|
* @ignore
|
|
1360
1391
|
*/
|
|
1361
|
-
u(this,
|
|
1362
|
-
u(this,
|
|
1363
|
-
this.query = async (t, e, r = {}) => (await a(this,
|
|
1392
|
+
u(this, Y);
|
|
1393
|
+
u(this, Tt);
|
|
1394
|
+
this.query = async (t, e, r = {}) => (await a(this, Y)).mediaConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((c) => i(c)), this.detail = async (t, e, r = {}) => (await a(this, Y)).mediaConnectorDetail(t, e, JSON.stringify(r)).then((c) => i(c)), this.download = async (t, e, r, n = {}) => {
|
|
1364
1395
|
const c = this.parseDeprecatedMediaDownloadType(
|
|
1365
1396
|
r
|
|
1366
1397
|
);
|
|
1367
|
-
return (await a(this,
|
|
1398
|
+
return (await a(this, Tt)).mediaConnectorDownload(
|
|
1368
1399
|
t,
|
|
1369
1400
|
e,
|
|
1370
1401
|
c,
|
|
1371
|
-
|
|
1402
|
+
vs.web,
|
|
1372
1403
|
JSON.stringify(n)
|
|
1373
1404
|
).then((h) => {
|
|
1374
1405
|
if (h instanceof Uint8Array)
|
|
1375
1406
|
return h;
|
|
1376
|
-
throw typeof h == "object" && h !== null && "success" in h && !h.success &&
|
|
1407
|
+
throw typeof h == "object" && h !== null && "success" in h && !h.success && fs(h), new Error(`Unexpected response type: ${typeof h}.`);
|
|
1377
1408
|
});
|
|
1378
|
-
}, this.getConfigurationOptions = async (t) => (await a(this,
|
|
1379
|
-
if (t ===
|
|
1380
|
-
if (t ===
|
|
1381
|
-
}, this.upload = async (t, e, r = {}) => (await a(this,
|
|
1409
|
+
}, this.getConfigurationOptions = async (t) => (await a(this, Y)).mediaConnectorGetConfigurationOptions(t).then((r) => i(r)), this.getCapabilities = async (t) => (await a(this, Y)).mediaConnectorGetCapabilities(t).then((r) => i(r)), this.parseDeprecatedMediaType = (t) => {
|
|
1410
|
+
if (t === Jt.file) return Bt.file;
|
|
1411
|
+
if (t === Jt.collection) return Bt.collection;
|
|
1412
|
+
}, this.upload = async (t, e, r = {}) => (await a(this, Y)).mediaConnectorUpload(t, JSON.stringify(e), JSON.stringify(r)).then((c) => i(c)), g(this, Y, o), g(this, Tt, o);
|
|
1382
1413
|
}
|
|
1383
1414
|
/**
|
|
1384
1415
|
* This method will parse the deprecatedMediaDownloadType to the new media download type.
|
|
@@ -1388,18 +1419,18 @@ class Ze {
|
|
|
1388
1419
|
*/
|
|
1389
1420
|
parseDeprecatedMediaDownloadType(o) {
|
|
1390
1421
|
switch (o) {
|
|
1391
|
-
case
|
|
1392
|
-
return
|
|
1393
|
-
case
|
|
1394
|
-
return
|
|
1422
|
+
case ne.HighResolutionWeb:
|
|
1423
|
+
return oe.highres;
|
|
1424
|
+
case ne.LowResolutionWeb:
|
|
1425
|
+
return oe.thumbnail;
|
|
1395
1426
|
default:
|
|
1396
1427
|
return o;
|
|
1397
1428
|
}
|
|
1398
1429
|
}
|
|
1399
1430
|
}
|
|
1400
|
-
|
|
1401
|
-
var
|
|
1402
|
-
let
|
|
1431
|
+
Y = new WeakMap(), Tt = new WeakMap();
|
|
1432
|
+
var O, Kt, ds;
|
|
1433
|
+
let Xe = (ds = class {
|
|
1403
1434
|
/**
|
|
1404
1435
|
* @ignore
|
|
1405
1436
|
*/
|
|
@@ -1407,16 +1438,16 @@ let Qe = (ls = class {
|
|
|
1407
1438
|
/**
|
|
1408
1439
|
* @ignore
|
|
1409
1440
|
*/
|
|
1410
|
-
u(this,
|
|
1441
|
+
u(this, O);
|
|
1411
1442
|
/**
|
|
1412
1443
|
* @ignore
|
|
1413
1444
|
*/
|
|
1414
|
-
u(this,
|
|
1415
|
-
this.add = async () => (await a(this,
|
|
1445
|
+
u(this, Kt);
|
|
1446
|
+
this.add = async () => (await a(this, O)).addPage().then((e) => i(e)), this.remove = async (t) => (await a(this, O)).removePage(t).then((r) => i(r)), this.select = async (t) => (await a(this, O)).selectPage(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, O)).setPageIsVisible(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, O)).duplicatePage(t).then((r) => i(r)), this.getAll = async () => (await a(this, O)).getPages().then((e) => i(e)), this.getById = async (t) => (await a(this, O)).getPageById(t).then((r) => i(r)), this.getSnapshot = async (t, e) => (await a(this, Kt)).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, O)).setPageWidth(e).then((n) => i(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, O)).setPageHeight(e).then((n) => i(n))), this.setSize = async (t, e) => (await a(this, O)).setPageSize(t, e).then((n) => i(n)), this.move = async (t, e) => (await a(this, O)).reorderPages(t, e).then((n) => i(n)), g(this, O, o), g(this, Kt, o);
|
|
1416
1447
|
}
|
|
1417
|
-
},
|
|
1418
|
-
var
|
|
1419
|
-
class
|
|
1448
|
+
}, O = new WeakMap(), Kt = new WeakMap(), ds);
|
|
1449
|
+
var G;
|
|
1450
|
+
class ts {
|
|
1420
1451
|
/**
|
|
1421
1452
|
* @ignore
|
|
1422
1453
|
*/
|
|
@@ -1424,24 +1455,24 @@ class Xe {
|
|
|
1424
1455
|
/**
|
|
1425
1456
|
* @ignore
|
|
1426
1457
|
*/
|
|
1427
|
-
u(this,
|
|
1428
|
-
this.getAll = async () => (await a(this,
|
|
1458
|
+
u(this, G);
|
|
1459
|
+
this.getAll = async () => (await a(this, G)).getParagraphStyles().then((e) => i(e)), this.getById = async (t) => (await a(this, G)).getParagraphStyleById(t).then((r) => i(r)), this.create = async () => (await a(this, G)).createParagraphStyle().then((e) => i(e)), this.duplicate = async (t) => (await a(this, G)).duplicateParagraphStyle(t).then((r) => i(r)), this.update = async (t, e) => (await a(this, G)).updateParagraphStyle(t, JSON.stringify(e)).then((n) => i(n)), this.rename = async (t, e) => (await a(this, G)).renameParagraphStyle(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, G)).removeParagraphStyle(t).then((r) => i(r)), this.move = async (t, e) => (await a(this, G)).moveParagraphStyles(t, e).then((n) => i(n)), g(this, G, o);
|
|
1429
1460
|
}
|
|
1430
1461
|
}
|
|
1431
|
-
|
|
1432
|
-
var x = /* @__PURE__ */ ((s) => (s.info = "info", s.warn = "warn", s.error = "error", s))(x || {}), Is = /* @__PURE__ */ ((s) => (s.general = "general", s.connector = "connector", s.event = "event", s.engine = "engine", s))(Is || {}),
|
|
1433
|
-
class
|
|
1462
|
+
G = new WeakMap();
|
|
1463
|
+
var x = /* @__PURE__ */ ((s) => (s.info = "info", s.warn = "warn", s.error = "error", s))(x || {}), Is = /* @__PURE__ */ ((s) => (s.general = "general", s.connector = "connector", s.event = "event", s.engine = "engine", s))(Is || {}), Gt = /* @__PURE__ */ ((s) => (s.throw = "throw", s.log = "log", s))(Gt || {});
|
|
1464
|
+
class kr {
|
|
1434
1465
|
constructor(o, t, e, r) {
|
|
1435
1466
|
this.type = "action", this.message = o, this.id = t, this.event = e, this.eventChain = r;
|
|
1436
1467
|
}
|
|
1437
1468
|
}
|
|
1438
|
-
class
|
|
1469
|
+
class Ur {
|
|
1439
1470
|
constructor(o, t, e) {
|
|
1440
1471
|
this.type = "dataRow", this.count = o, this.message = t, this.exceptions = e;
|
|
1441
1472
|
}
|
|
1442
1473
|
}
|
|
1443
|
-
var
|
|
1444
|
-
let
|
|
1474
|
+
var le = /* @__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))(le || {}), _r = /* @__PURE__ */ ((s) => (s.Monday = "monday", s.Tuesday = "tuesday", s.Wednesday = "wednesday", s.Thursday = "thursday", s.Friday = "friday", s.Saturday = "saturday", s.Sunday = "sunday", s))(_r || {}), Hr = /* @__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))(Hr || {}), Rt = /* @__PURE__ */ ((s) => (s.visible = "visible", s.invisible = "invisible", s.conditional = "conditional", s))(Rt || {}), Tr = /* @__PURE__ */ ((s) => (s.boolean = "boolean", s.text = "text", s.number = "number", s))(Tr || {}), Kr = /* @__PURE__ */ ((s) => (s.equals = "=", s.notEquals = "!=", s.greaterThan = ">", s.greaterThanOrEquals = ">=", s.lessThan = "<", s.lessThanOrEquals = "<=", s))(Kr || {});
|
|
1475
|
+
let $r = class {
|
|
1445
1476
|
/**
|
|
1446
1477
|
* @ignore
|
|
1447
1478
|
*/
|
|
@@ -1485,7 +1516,7 @@ let Tr = class {
|
|
|
1485
1516
|
const n = JSON.parse(e).map(
|
|
1486
1517
|
(c) => {
|
|
1487
1518
|
var d;
|
|
1488
|
-
return c.type ===
|
|
1519
|
+
return c.type === le.list ? {
|
|
1489
1520
|
...c,
|
|
1490
1521
|
items: c.items.map(
|
|
1491
1522
|
(h) => h.value
|
|
@@ -1522,9 +1553,9 @@ let Tr = class {
|
|
|
1522
1553
|
}, this.onConnectorEvent = (e) => {
|
|
1523
1554
|
this.config.events.onConnectorEvent.trigger(JSON.parse(e));
|
|
1524
1555
|
}, this.onConnectorsChanged = (e) => {
|
|
1525
|
-
const n = new
|
|
1556
|
+
const n = new he().makeMultipleConnectorsBackwardsCompatible(
|
|
1526
1557
|
JSON.parse(e),
|
|
1527
|
-
this.localConfig.get(
|
|
1558
|
+
this.localConfig.get(tt.GraFxStudioEnvironmentApiUrl)
|
|
1528
1559
|
);
|
|
1529
1560
|
this.config.events.onConnectorsChanged.trigger(n);
|
|
1530
1561
|
}, this.onSelectedPageIdChanged = (e) => {
|
|
@@ -1542,14 +1573,14 @@ let Tr = class {
|
|
|
1542
1573
|
}, this.onAsyncError = (e) => {
|
|
1543
1574
|
const r = JSON.parse(e);
|
|
1544
1575
|
if ((r == null ? void 0 : r.type) === "dataRow") {
|
|
1545
|
-
const n = new
|
|
1576
|
+
const n = new Ur(
|
|
1546
1577
|
r.count,
|
|
1547
1578
|
r.message,
|
|
1548
1579
|
r.exceptions
|
|
1549
1580
|
);
|
|
1550
1581
|
this.config.events.onAsyncError.trigger(n);
|
|
1551
1582
|
} else if ((r == null ? void 0 : r.type) === "action") {
|
|
1552
|
-
const n = new
|
|
1583
|
+
const n = new kr(
|
|
1553
1584
|
r.message,
|
|
1554
1585
|
r.id,
|
|
1555
1586
|
r.event,
|
|
@@ -1573,8 +1604,8 @@ let Tr = class {
|
|
|
1573
1604
|
}, this.config = o, this.localConfig = t;
|
|
1574
1605
|
}
|
|
1575
1606
|
};
|
|
1576
|
-
var
|
|
1577
|
-
class
|
|
1607
|
+
var mt;
|
|
1608
|
+
class es {
|
|
1578
1609
|
/**
|
|
1579
1610
|
* @ignore
|
|
1580
1611
|
*/
|
|
@@ -1582,13 +1613,13 @@ class ts {
|
|
|
1582
1613
|
/**
|
|
1583
1614
|
* @ignore
|
|
1584
1615
|
*/
|
|
1585
|
-
u(this,
|
|
1586
|
-
this.set = async (t) => (await a(this,
|
|
1616
|
+
u(this, mt);
|
|
1617
|
+
this.set = async (t) => (await a(this, mt)).selectedTextStyleDeltaUpdate(JSON.stringify(t)).then((r) => i(r)), this.removeSelected = async () => (await a(this, mt)).selectedTextStyleClean().then((e) => i(e)), this.getSelected = async () => (await a(this, mt)).getSelectedTextStyle().then((e) => i(e)), g(this, mt, o);
|
|
1587
1618
|
}
|
|
1588
1619
|
}
|
|
1589
|
-
|
|
1590
|
-
var
|
|
1591
|
-
class
|
|
1620
|
+
mt = new WeakMap();
|
|
1621
|
+
var zr = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(zr || {}), Wr = /* @__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))(Wr || {}), K = /* @__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))(K || {}), jr = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s.HTML = "html", s))(jr || {}), ce = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(ce || {}), Pt;
|
|
1622
|
+
class ss {
|
|
1592
1623
|
/**
|
|
1593
1624
|
* @ignore
|
|
1594
1625
|
*/
|
|
@@ -1596,13 +1627,13 @@ class es {
|
|
|
1596
1627
|
/**
|
|
1597
1628
|
* @ignore
|
|
1598
1629
|
*/
|
|
1599
|
-
u(this,
|
|
1600
|
-
this.setTool = async (t) => (await a(this,
|
|
1630
|
+
u(this, Pt);
|
|
1631
|
+
this.setTool = async (t) => (await a(this, Pt)).setTool(t).then((r) => i(r)), this.getSelected = async () => (await a(this, Pt)).getSelectedTool().then((e) => i(e)), this.setPointer = async () => this.setTool(K.SELECT), this.setSelect = async () => this.setTool(K.SELECT), this.setHand = async () => this.setTool(K.HAND), this.setZoom = async () => this.setTool(K.ZOOM), this.setTextFrame = async () => this.setTool(K.TEXT_FRAME), this.setImageFrame = async () => this.setTool(K.IMAGE_FRAME), this.setShapeRect = async () => this.setTool(K.SHAPE_RECT), this.setShapeEllipse = async () => this.setTool(K.SHAPE_ELLIPSE), this.setShapePolygon = async () => this.setTool(K.SHAPE_POLYGON), g(this, Pt, o);
|
|
1601
1632
|
}
|
|
1602
1633
|
}
|
|
1603
|
-
|
|
1604
|
-
var
|
|
1605
|
-
class
|
|
1634
|
+
Pt = new WeakMap();
|
|
1635
|
+
var Z, _, $t;
|
|
1636
|
+
class rs {
|
|
1606
1637
|
/**
|
|
1607
1638
|
* @ignore
|
|
1608
1639
|
*/
|
|
@@ -1610,16 +1641,16 @@ class ss {
|
|
|
1610
1641
|
/**
|
|
1611
1642
|
* @ignore
|
|
1612
1643
|
*/
|
|
1613
|
-
u(this,
|
|
1644
|
+
u(this, Z);
|
|
1614
1645
|
u(this, _);
|
|
1615
|
-
u(this,
|
|
1616
|
-
this.undo = async () => (await a(this,
|
|
1646
|
+
u(this, $t);
|
|
1647
|
+
this.undo = async () => (await a(this, Z)).undo().then((r) => i(r)), this.redo = async () => (await a(this, Z)).redo().then((r) => i(r)), this.addCustomData = async (e, r) => (await a(this, Z)).setCustomUndoData(e, r, !1).then((c) => i(c)), this.record = async (e, r) => {
|
|
1617
1648
|
try {
|
|
1618
|
-
await a(this, _).beginIfNoneActive(e), await r(a(this,
|
|
1649
|
+
await a(this, _).beginIfNoneActive(e), await r(a(this, $t)), await a(this, _).end();
|
|
1619
1650
|
} catch (n) {
|
|
1620
1651
|
throw await a(this, _).abort(), n;
|
|
1621
1652
|
}
|
|
1622
|
-
}, this.pause = async () => (await a(this,
|
|
1653
|
+
}, this.pause = async () => (await a(this, Z)).pause().then((r) => i(r)), this.resume = async () => (await a(this, Z)).resume().then((r) => i(r)), this.advanced = {
|
|
1623
1654
|
/**
|
|
1624
1655
|
* This will start a new undo operation.
|
|
1625
1656
|
* This will throw an exception when there is already an undo operation recording.
|
|
@@ -1648,12 +1679,12 @@ class ss {
|
|
|
1648
1679
|
* @returns
|
|
1649
1680
|
*/
|
|
1650
1681
|
abort: async () => a(this, _).abort()
|
|
1651
|
-
}, g(this,
|
|
1682
|
+
}, g(this, Z, o), g(this, $t, t), g(this, _, new qr(o));
|
|
1652
1683
|
}
|
|
1653
1684
|
}
|
|
1654
|
-
|
|
1655
|
-
var
|
|
1656
|
-
class
|
|
1685
|
+
Z = new WeakMap(), _ = new WeakMap(), $t = new WeakMap();
|
|
1686
|
+
var ct;
|
|
1687
|
+
class qr {
|
|
1657
1688
|
/**
|
|
1658
1689
|
* @ignore
|
|
1659
1690
|
*/
|
|
@@ -1661,17 +1692,17 @@ class Wr {
|
|
|
1661
1692
|
/**
|
|
1662
1693
|
* @ignore
|
|
1663
1694
|
*/
|
|
1664
|
-
u(this,
|
|
1665
|
-
this.begin = async (t) => (await a(this,
|
|
1695
|
+
u(this, ct);
|
|
1696
|
+
this.begin = async (t) => (await a(this, ct)).begin(t).then((r) => i(r)), this.beginIfNoneActive = async (t) => (await a(this, ct)).beginIfNoneActive(t).then((r) => i(r)), this.end = async () => (await a(this, ct)).end().then((e) => i(e)), this.abort = async () => (await a(this, ct)).abort().then((e) => i(e)), g(this, ct, o);
|
|
1666
1697
|
}
|
|
1667
1698
|
}
|
|
1668
|
-
|
|
1669
|
-
const
|
|
1699
|
+
ct = new WeakMap();
|
|
1700
|
+
const Yr = (s, o = 2) => {
|
|
1670
1701
|
const t = Math.pow(10, o);
|
|
1671
1702
|
return Math.round(s * t) / t;
|
|
1672
1703
|
};
|
|
1673
|
-
var
|
|
1674
|
-
class
|
|
1704
|
+
var zt, Ft;
|
|
1705
|
+
class ns {
|
|
1675
1706
|
/**
|
|
1676
1707
|
* @ignore
|
|
1677
1708
|
*/
|
|
@@ -1679,21 +1710,21 @@ class rs {
|
|
|
1679
1710
|
/**
|
|
1680
1711
|
* @ignore
|
|
1681
1712
|
*/
|
|
1682
|
-
u(this,
|
|
1683
|
-
u(this,
|
|
1713
|
+
u(this, zt);
|
|
1714
|
+
u(this, Ft);
|
|
1684
1715
|
this.round = (e, r) => i({
|
|
1685
|
-
data: String(
|
|
1716
|
+
data: String(Yr(e, r)),
|
|
1686
1717
|
success: !0,
|
|
1687
1718
|
status: 200,
|
|
1688
1719
|
parsedData: null
|
|
1689
1720
|
}), this.createEnvironmentBaseURL = (e) => {
|
|
1690
|
-
const { type: r =
|
|
1721
|
+
const { type: r = ce.SANDBOX, environment: n = "ft-nostress", version: c = "1" } = e, d = r == ce.SANDBOX ? "chili-publish-sandbox" : "chili-publish";
|
|
1691
1722
|
return `https://${n}.${d}.online/grafx/api/v${c}/environment/${n}`;
|
|
1692
1723
|
}, this.stageFiles = async (e, r, n) => {
|
|
1693
|
-
const c = a(this,
|
|
1724
|
+
const c = a(this, Ft).get(tt.GraFxStudioEnvironmentApiUrl);
|
|
1694
1725
|
if (!c)
|
|
1695
1726
|
throw new Error("GraFx Studio Environment API URL is not set");
|
|
1696
|
-
const d = `${c}connectors/${r}/stage`, h = a(this,
|
|
1727
|
+
const d = `${c}connectors/${r}/stage`, h = a(this, Ft).get(tt.GraFxStudioAuthToken);
|
|
1697
1728
|
if (!h)
|
|
1698
1729
|
throw new Error("GraFx Studio Auth Token is not set");
|
|
1699
1730
|
const p = new FormData();
|
|
@@ -1719,19 +1750,19 @@ class rs {
|
|
|
1719
1750
|
});
|
|
1720
1751
|
if (y.status === 422) {
|
|
1721
1752
|
const S = await y.json();
|
|
1722
|
-
throw new Ir(S.message,
|
|
1753
|
+
throw new Ir(S.message, Ss.minDimension);
|
|
1723
1754
|
}
|
|
1724
1755
|
if (!y.ok)
|
|
1725
1756
|
throw new Error("Failed to stage files");
|
|
1726
1757
|
return await y.json();
|
|
1727
|
-
}, this.unitEvaluate = async (e, r) => (await a(this,
|
|
1758
|
+
}, this.unitEvaluate = async (e, r) => (await a(this, zt)).unitEvaluate(e, r).then((c) => i(c)), g(this, zt, o), g(this, Ft, t);
|
|
1728
1759
|
}
|
|
1729
1760
|
}
|
|
1730
|
-
|
|
1731
|
-
var
|
|
1732
|
-
class
|
|
1761
|
+
zt = new WeakMap(), Ft = new WeakMap();
|
|
1762
|
+
var Wt;
|
|
1763
|
+
class Zr {
|
|
1733
1764
|
constructor(o) {
|
|
1734
|
-
u(this,
|
|
1765
|
+
u(this, Wt);
|
|
1735
1766
|
this.setMinimum = async (t, e) => {
|
|
1736
1767
|
const r = { minValue: { value: e } };
|
|
1737
1768
|
return this.applyPropertiesUpdate(t, r);
|
|
@@ -1756,18 +1787,18 @@ class qr {
|
|
|
1756
1787
|
}, this.setNumberOfDecimals = async (t, e) => {
|
|
1757
1788
|
const r = { numberOfDecimals: { value: e } };
|
|
1758
1789
|
return this.applyPropertiesUpdate(t, r);
|
|
1759
|
-
}, g(this,
|
|
1790
|
+
}, g(this, Wt, o);
|
|
1760
1791
|
}
|
|
1761
1792
|
async applyPropertiesUpdate(o, t) {
|
|
1762
|
-
const r = await (await a(this,
|
|
1793
|
+
const r = await (await a(this, Wt)).updateNumberVariableProperties(o, JSON.stringify(t));
|
|
1763
1794
|
return i(r);
|
|
1764
1795
|
}
|
|
1765
1796
|
}
|
|
1766
|
-
|
|
1767
|
-
var
|
|
1768
|
-
class
|
|
1797
|
+
Wt = new WeakMap();
|
|
1798
|
+
var jt;
|
|
1799
|
+
class Qr {
|
|
1769
1800
|
constructor(o) {
|
|
1770
|
-
u(this,
|
|
1801
|
+
u(this, jt);
|
|
1771
1802
|
this.setDisplayFormat = async (t, e) => {
|
|
1772
1803
|
const r = { displayFormat: { value: e } };
|
|
1773
1804
|
return this.applyPropertiesUpdate(t, r);
|
|
@@ -1783,16 +1814,16 @@ class Yr {
|
|
|
1783
1814
|
}, this.setExcludedDays = async (t, e) => {
|
|
1784
1815
|
const r = { excludedDays: { value: e } };
|
|
1785
1816
|
return this.applyPropertiesUpdate(t, r);
|
|
1786
|
-
}, g(this,
|
|
1817
|
+
}, g(this, jt, o);
|
|
1787
1818
|
}
|
|
1788
1819
|
async applyPropertiesUpdate(o, t) {
|
|
1789
|
-
const r = await (await a(this,
|
|
1820
|
+
const r = await (await a(this, jt)).updateDateVariableProperties(o, JSON.stringify(t));
|
|
1790
1821
|
return i(r);
|
|
1791
1822
|
}
|
|
1792
1823
|
}
|
|
1793
|
-
|
|
1794
|
-
var m,
|
|
1795
|
-
let
|
|
1824
|
+
jt = new WeakMap();
|
|
1825
|
+
var m, Et, Ot, us;
|
|
1826
|
+
let as = (us = class {
|
|
1796
1827
|
/**
|
|
1797
1828
|
* @ignore
|
|
1798
1829
|
*/
|
|
@@ -1801,8 +1832,8 @@ let ns = (ds = class {
|
|
|
1801
1832
|
* @ignore
|
|
1802
1833
|
*/
|
|
1803
1834
|
u(this, m);
|
|
1804
|
-
u(this, Ft);
|
|
1805
1835
|
u(this, Et);
|
|
1836
|
+
u(this, Ot);
|
|
1806
1837
|
this.getAll = async () => (await a(this, m)).getVariables().then((e) => i(e)).then((e) => {
|
|
1807
1838
|
const r = e;
|
|
1808
1839
|
return r.parsedData && (r.parsedData = this.makeVariablesBackwardsCompatible(r.parsedData)), r;
|
|
@@ -1812,17 +1843,17 @@ let ns = (ds = class {
|
|
|
1812
1843
|
}), this.getByName = async (t) => (await a(this, m)).getVariableByName(t).then((r) => i(r)).then((r) => {
|
|
1813
1844
|
const n = r;
|
|
1814
1845
|
return n.parsedData && (n.parsedData = this.makeVariableBackwardsCompatible(n.parsedData)), n;
|
|
1815
|
-
}), this.create = async (t, e) => (await a(this, m)).addVariable(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, m)).removeVariables(t).then((r) => i(r)), this.rename = async (t, e) => (await a(this, m)).setVariableName(t, e).then((n) => i(n)), this.setLabel = async (t, e) => (await a(this, m)).setVariableLabel(t, e).then((n) => i(n)), g(this,
|
|
1846
|
+
}), this.create = async (t, e) => (await a(this, m)).addVariable(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, m)).removeVariables(t).then((r) => i(r)), this.rename = async (t, e) => (await a(this, m)).setVariableName(t, e).then((n) => i(n)), this.setLabel = async (t, e) => (await a(this, m)).setVariableLabel(t, e).then((n) => i(n)), g(this, Et, async (t, e) => (await a(this, m)).setVariablePlaceholder(t, e).then((n) => i(n))), this.setPlaceholder = async (t, e) => a(this, Et).call(this, t, e), this.resetPlaceholder = async (t) => a(this, Et).call(this, t, null), g(this, Ot, async (t, e) => (await a(this, m)).setVariableHelpText(t, e).then((n) => i(n))), this.setHelpText = async (t, e) => a(this, Ot).call(this, t, e), this.resetHelpText = async (t) => a(this, Ot).call(this, t, null), this.setType = async (t, e) => (await a(this, m)).setVariableType(t, e).then((n) => i(n)), this.setListVariable = async (t, e) => (await a(this, m)).setListVariableItems(
|
|
1816
1847
|
t,
|
|
1817
1848
|
e.map((n) => JSON.stringify({ value: n }))
|
|
1818
1849
|
).then((n) => i(n)), this.setValue = async (t, e) => (await a(this, m)).setVariableValue(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, m)).duplicateVariable(t).then((r) => i(r)), this.groupVariables = async (t, e) => (await a(this, m)).groupVariables(t, e).then((n) => i(n)), this.ungroupVariables = async (t) => (await a(this, m)).ungroupVariable(t).then((r) => i(r)), this.move = async (t, e, r) => (await a(this, m)).moveVariable(e, r, t).then((c) => i(c)), this.moveVariables = async (t, e, r) => (await a(this, m)).moveVariables(e, r, t).then((c) => i(c)), this.setIsVisible = async (t, e) => {
|
|
1819
|
-
const r = e ? { type:
|
|
1850
|
+
const r = e ? { type: Rt.visible } : { type: Rt.invisible };
|
|
1820
1851
|
return this.setVariableVisibility(t, r);
|
|
1821
1852
|
}, this.setIsHidden = async (t, e) => {
|
|
1822
|
-
const r = e ? { type:
|
|
1853
|
+
const r = e ? { type: Rt.invisible } : { type: Rt.visible };
|
|
1823
1854
|
return this.setVariableVisibility(t, r);
|
|
1824
1855
|
}, this.setVariableVisibility = async (t, e) => (await a(this, m)).setVariableVisibility(t, JSON.stringify(e)).then((n) => i(n)), this.setLayoutsForVariableVisibility = async (t) => (await a(this, m)).setLayoutsForVariableVisibility(t ? JSON.stringify(t) : null).then((r) => i(r)), this.setIsRequired = async (t, e) => (await a(this, m)).setVariableIsRequired(t, e).then((n) => i(n)), this.setRemoveParagraphIfEmpty = async (t, e) => (await a(this, m)).setVariableRemoveParagraphIfEmpty(t, e).then((n) => i(n)), this.setIsReadonly = async (t, e) => (await a(this, m)).setVariableIsReadonly(t, e).then((n) => i(n)), this.getImageVariableConnectorId = async (t) => (await a(this, m)).getImageVariableConnectorId(t).then((r) => i(r)), this.setImageVariableConnector = async (t, e) => {
|
|
1825
|
-
const r = await a(this, m), c = new
|
|
1856
|
+
const r = await a(this, m), c = new he().makeConnectorSourceForwardsCompatible(e);
|
|
1826
1857
|
return r.setImageVariableConnector(t, JSON.stringify(c)).then((d) => i(d));
|
|
1827
1858
|
}, this.setImageVariableValueWithContext = async (t, e, r) => (await a(this, m)).setImageVariableValueWithContext(t, e, JSON.stringify(r)).then((c) => i(c)), this.removeSource = async (t) => this.setValue(t, null), this.setPrefix = async (t, e) => {
|
|
1828
1859
|
const r = { prefix: { value: e } };
|
|
@@ -1836,13 +1867,13 @@ let ns = (ds = class {
|
|
|
1836
1867
|
}, this.setSuffixCharacterStyle = async (t, e) => {
|
|
1837
1868
|
const r = { suffixCharacterStyleId: { value: e } };
|
|
1838
1869
|
return this.applyPrefixSuffixDeltaUpdate(t, r);
|
|
1839
|
-
}, this.setPrivateData = async (t, e) => (await a(this, m)).setVariablePrivateData(t, JSON.stringify(e)).then((n) => i(n)), this.getPrivateData = async (t) => (await a(this, m)).getVariablePrivateData(t).then((r) => i(r)), this.setAllowImageQuery = async (t, e) => (await a(this, m)).setImageVariableAllowQuery(t, e).then((n) => i(n)), this.setAllowImageUpload = async (t, e) => (await a(this, m)).setImageVariableAllowUpload(t, e).then((n) => i(n)), this.setMinImageUploadSize = async (t, e, r) => (await a(this, m)).setImageVariableUploadMinSize(t, e, r).then((c) => i(c)), this.setIsDontBreak = async (t, e) => (await a(this, m)).setVariableIsDontBreak(t, e).then((n) => i(n)), g(this, m, o), this.number = new
|
|
1870
|
+
}, this.setPrivateData = async (t, e) => (await a(this, m)).setVariablePrivateData(t, JSON.stringify(e)).then((n) => i(n)), this.getPrivateData = async (t) => (await a(this, m)).getVariablePrivateData(t).then((r) => i(r)), this.setAllowImageQuery = async (t, e) => (await a(this, m)).setImageVariableAllowQuery(t, e).then((n) => i(n)), this.setAllowImageUpload = async (t, e) => (await a(this, m)).setImageVariableAllowUpload(t, e).then((n) => i(n)), this.setMinImageUploadSize = async (t, e, r) => (await a(this, m)).setImageVariableUploadMinSize(t, e, r).then((c) => i(c)), this.setIsDontBreak = async (t, e) => (await a(this, m)).setVariableIsDontBreak(t, e).then((n) => i(n)), g(this, m, o), this.number = new Zr(a(this, m)), this.date = new Qr(a(this, m));
|
|
1840
1871
|
}
|
|
1841
1872
|
makeVariablesBackwardsCompatible(o) {
|
|
1842
1873
|
return o.map((t) => this.makeVariableBackwardsCompatible(t));
|
|
1843
1874
|
}
|
|
1844
1875
|
makeVariableBackwardsCompatible(o) {
|
|
1845
|
-
return o.type !==
|
|
1876
|
+
return o.type !== le.list ? o : this.makeListVariableBackwardsCompatible(o);
|
|
1846
1877
|
}
|
|
1847
1878
|
makeListVariableBackwardsCompatible(o) {
|
|
1848
1879
|
const t = o, e = o.items, r = o.selected, n = e.map((c) => c.value);
|
|
@@ -1852,8 +1883,8 @@ let ns = (ds = class {
|
|
|
1852
1883
|
const r = await (await a(this, m)).updateVariablePrefixSuffixProperties(o, JSON.stringify(t));
|
|
1853
1884
|
return i(r);
|
|
1854
1885
|
}
|
|
1855
|
-
}, m = new WeakMap(),
|
|
1856
|
-
class
|
|
1886
|
+
}, m = new WeakMap(), Et = new WeakMap(), Ot = new WeakMap(), us);
|
|
1887
|
+
class Xr {
|
|
1857
1888
|
/**
|
|
1858
1889
|
* @ignore
|
|
1859
1890
|
*/
|
|
@@ -1869,8 +1900,8 @@ class Zr {
|
|
|
1869
1900
|
}, this.config = o;
|
|
1870
1901
|
}
|
|
1871
1902
|
}
|
|
1872
|
-
var
|
|
1873
|
-
class
|
|
1903
|
+
var ht;
|
|
1904
|
+
class tn {
|
|
1874
1905
|
/**
|
|
1875
1906
|
* @ignore
|
|
1876
1907
|
*/
|
|
@@ -1878,24 +1909,24 @@ class Qr {
|
|
|
1878
1909
|
/**
|
|
1879
1910
|
* @ignore
|
|
1880
1911
|
*/
|
|
1881
|
-
u(this,
|
|
1882
|
-
this.getAll = async () => (await a(this,
|
|
1912
|
+
u(this, ht);
|
|
1913
|
+
this.getAll = async () => (await a(this, ht)).getVariables().then((e) => i(e)), this.getById = async (t) => (await a(this, ht)).getVariableById(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, ht)).getVariableByName(t).then((r) => i(r)), this.setListVariable = async (t, e) => (await a(this, ht)).setListVariableItems(
|
|
1883
1914
|
t,
|
|
1884
1915
|
e.map((n) => JSON.stringify(n))
|
|
1885
|
-
).then((n) => i(n)), g(this,
|
|
1916
|
+
).then((n) => i(n)), g(this, ht, o), this.image = new en(o);
|
|
1886
1917
|
}
|
|
1887
1918
|
}
|
|
1888
|
-
|
|
1889
|
-
var
|
|
1890
|
-
class
|
|
1919
|
+
ht = new WeakMap();
|
|
1920
|
+
var Q;
|
|
1921
|
+
class en {
|
|
1891
1922
|
constructor(o) {
|
|
1892
|
-
u(this,
|
|
1893
|
-
this.setAllowQuery = async (t, e) => (await a(this,
|
|
1923
|
+
u(this, Q);
|
|
1924
|
+
this.setAllowQuery = async (t, e) => (await a(this, Q)).setImageVariableAllowQuery(t, e).then((n) => i(n)), this.setAllowUpload = async (t, e) => (await a(this, Q)).setImageVariableAllowUpload(t, e).then((n) => i(n)), this.setMinUploadSize = async (t, e, r) => (await a(this, Q)).setImageVariableUploadMinSize(t, e, r).then((c) => i(c)), this.setConnector = async (t, e) => (await a(this, Q)).setImageVariableConnector(t, JSON.stringify(e)).then((n) => i(n)), this.setConnectorContext = async (t, e) => (await a(this, Q)).setImageVariableConnectorContext(t, JSON.stringify(e)).then((n) => i(n)), g(this, Q, o);
|
|
1894
1925
|
}
|
|
1895
1926
|
}
|
|
1896
|
-
|
|
1897
|
-
var
|
|
1898
|
-
class
|
|
1927
|
+
Q = new WeakMap();
|
|
1928
|
+
var wt;
|
|
1929
|
+
class sn {
|
|
1899
1930
|
/**
|
|
1900
1931
|
* @ignore
|
|
1901
1932
|
*/
|
|
@@ -1903,13 +1934,13 @@ class tn {
|
|
|
1903
1934
|
/**
|
|
1904
1935
|
* @ignore
|
|
1905
1936
|
*/
|
|
1906
|
-
u(this,
|
|
1907
|
-
this.register = async (t) => (await a(this,
|
|
1937
|
+
u(this, wt);
|
|
1938
|
+
this.register = async (t) => (await a(this, wt)).registerConnector(JSON.stringify(t)).then((r) => i(r)), this.getById = async (t) => (await a(this, wt)).getConnectorById(t).then((r) => i(r)), this.getAllByType = async (t) => (await a(this, wt)).getConnectors(t).then((r) => i(r)), g(this, wt, o);
|
|
1908
1939
|
}
|
|
1909
1940
|
}
|
|
1910
|
-
|
|
1911
|
-
var
|
|
1912
|
-
class
|
|
1941
|
+
wt = new WeakMap();
|
|
1942
|
+
var Dt, Zt;
|
|
1943
|
+
class rn {
|
|
1913
1944
|
/**
|
|
1914
1945
|
* @ignore
|
|
1915
1946
|
*/
|
|
@@ -1917,26 +1948,26 @@ class en {
|
|
|
1917
1948
|
/**
|
|
1918
1949
|
* @ignore
|
|
1919
1950
|
*/
|
|
1920
|
-
u(this,
|
|
1951
|
+
u(this, Dt);
|
|
1921
1952
|
/**
|
|
1922
1953
|
* @ignore
|
|
1923
1954
|
*/
|
|
1924
|
-
u(this,
|
|
1925
|
-
this.setWidth = async (t) => (await a(this,
|
|
1955
|
+
u(this, Zt);
|
|
1956
|
+
this.setWidth = async (t) => (await a(this, Dt)).setPageWidth(t).then((r) => i(r)), this.setHeight = async (t) => (await a(this, Dt)).setPageHeight(t).then((r) => i(r)), g(this, Dt, o), g(this, Zt, o);
|
|
1926
1957
|
}
|
|
1927
1958
|
}
|
|
1928
|
-
|
|
1929
|
-
class
|
|
1959
|
+
Dt = new WeakMap(), Zt = new WeakMap();
|
|
1960
|
+
class is {
|
|
1930
1961
|
/**
|
|
1931
1962
|
* The next initiator is a split off on SDK level to tag next features
|
|
1932
1963
|
* The SDK should be configured clientside and it exposes all controllers to work with in other applications
|
|
1933
1964
|
* @param config The configuration object where the SDK and editor can get configured
|
|
1934
1965
|
*/
|
|
1935
1966
|
constructor(o, t, e) {
|
|
1936
|
-
this.config = o, this.connection = t, this.editorAPI = e, this.subscriber = new
|
|
1967
|
+
this.config = o, this.connection = t, this.editorAPI = e, this.subscriber = new Xr(o), this.variable = new tn(this.editorAPI), this.connector = new sn(this.editorAPI), this.page = new rn(this.editorAPI), this.canvas = new re(this.editorAPI);
|
|
1937
1968
|
}
|
|
1938
1969
|
}
|
|
1939
|
-
class
|
|
1970
|
+
class As {
|
|
1940
1971
|
constructor(o) {
|
|
1941
1972
|
this.logger = o;
|
|
1942
1973
|
}
|
|
@@ -1952,13 +1983,13 @@ class vs {
|
|
|
1952
1983
|
}
|
|
1953
1984
|
handleError(o, t, e) {
|
|
1954
1985
|
var r;
|
|
1955
|
-
if (t ===
|
|
1986
|
+
if (t === Gt.log)
|
|
1956
1987
|
(r = this.logger) == null || r.call(this, x.error, Is.event, `Error in callback ${e}: ${o}`);
|
|
1957
1988
|
else
|
|
1958
1989
|
throw o;
|
|
1959
1990
|
}
|
|
1960
1991
|
}
|
|
1961
|
-
class
|
|
1992
|
+
class os extends As {
|
|
1962
1993
|
constructor(o, t) {
|
|
1963
1994
|
super(t), this.handler = o;
|
|
1964
1995
|
}
|
|
@@ -1971,10 +2002,10 @@ class is extends vs {
|
|
|
1971
2002
|
trigger(...o) {
|
|
1972
2003
|
const t = this.handler();
|
|
1973
2004
|
if (t)
|
|
1974
|
-
return this.createEventHandlerFn(t,
|
|
2005
|
+
return this.createEventHandlerFn(t, Gt.throw)(...o);
|
|
1975
2006
|
}
|
|
1976
2007
|
}
|
|
1977
|
-
class C extends
|
|
2008
|
+
class C extends As {
|
|
1978
2009
|
constructor(o, t) {
|
|
1979
2010
|
super(t), this.legacyHandler = o, this.subscriptions = /* @__PURE__ */ new Set();
|
|
1980
2011
|
}
|
|
@@ -1986,7 +2017,7 @@ class C extends vs {
|
|
|
1986
2017
|
*/
|
|
1987
2018
|
trigger(...o) {
|
|
1988
2019
|
const t = this.legacyHandler();
|
|
1989
|
-
t && this.createEventHandlerFn(t,
|
|
2020
|
+
t && this.createEventHandlerFn(t, Gt.log)(...o);
|
|
1990
2021
|
for (const e of this.subscriptions)
|
|
1991
2022
|
e(...o);
|
|
1992
2023
|
}
|
|
@@ -2000,14 +2031,14 @@ class C extends vs {
|
|
|
2000
2031
|
* - "throw": Throws an error. Keep in mind that throwing of error in one of the callback will prevent calling of others
|
|
2001
2032
|
* @returns A function to unsubscribe the callback, preventing it from being invoked in the future.
|
|
2002
2033
|
*/
|
|
2003
|
-
registerCallback(o, t =
|
|
2034
|
+
registerCallback(o, t = Gt.log) {
|
|
2004
2035
|
const e = this.createEventHandlerFn(o, t);
|
|
2005
2036
|
return this.subscriptions.add(e), () => {
|
|
2006
2037
|
this.subscriptions.delete(e);
|
|
2007
2038
|
};
|
|
2008
2039
|
}
|
|
2009
2040
|
}
|
|
2010
|
-
class
|
|
2041
|
+
class de {
|
|
2011
2042
|
/**
|
|
2012
2043
|
* Creates a runtime configuration object from the provided configuration object.
|
|
2013
2044
|
*
|
|
@@ -2015,27 +2046,27 @@ class le {
|
|
|
2015
2046
|
* @returns The runtime configuration object.
|
|
2016
2047
|
*/
|
|
2017
2048
|
static createRuntimeConfig(o) {
|
|
2018
|
-
var e, r, n, c, d, h, p, y,
|
|
2049
|
+
var e, r, n, c, d, h, p, y, v, S, b, A, I, f, M, E, P, W, j, ft, St, ue, ge, ye, pe, Ce, me, we, fe, Se, be, ve, Ie, Ae, Pe;
|
|
2019
2050
|
const t = { ...o };
|
|
2020
2051
|
return t.logging = {
|
|
2021
2052
|
logLevel: ((e = o.logging) == null ? void 0 : e.logLevel) || x.error,
|
|
2022
|
-
logger: ((r = o.logging) == null ? void 0 : r.logger) || ((
|
|
2023
|
-
var
|
|
2024
|
-
if (
|
|
2025
|
-
switch (
|
|
2053
|
+
logger: ((r = o.logging) == null ? void 0 : r.logger) || ((Nt, Qt, Xt) => {
|
|
2054
|
+
var Fe;
|
|
2055
|
+
if (de.isLoggingEnabled(Nt, ((Fe = t.logging) == null ? void 0 : Fe.logLevel) ?? x.error))
|
|
2056
|
+
switch (Nt) {
|
|
2026
2057
|
case x.error:
|
|
2027
|
-
console.error(`[${
|
|
2058
|
+
console.error(`[${Qt}] [${Nt}] ${Xt}`);
|
|
2028
2059
|
break;
|
|
2029
2060
|
case x.warn:
|
|
2030
|
-
console.warn(`[${
|
|
2061
|
+
console.warn(`[${Qt}] [${Nt}] ${Xt}`);
|
|
2031
2062
|
break;
|
|
2032
2063
|
default:
|
|
2033
|
-
console.log(`[${
|
|
2064
|
+
console.log(`[${Qt}] [${Nt}] ${Xt}`);
|
|
2034
2065
|
}
|
|
2035
2066
|
})
|
|
2036
2067
|
}, t.handlers = {
|
|
2037
|
-
onAuthExpired: new
|
|
2038
|
-
onViewportRequested: new
|
|
2068
|
+
onAuthExpired: new os(() => t.onAuthExpired, (n = t.logging) == null ? void 0 : n.logger),
|
|
2069
|
+
onViewportRequested: new os(
|
|
2039
2070
|
() => t.onViewportRequested,
|
|
2040
2071
|
(c = t.logging) == null ? void 0 : c.logger
|
|
2041
2072
|
)
|
|
@@ -2058,7 +2089,7 @@ class le {
|
|
|
2058
2089
|
),
|
|
2059
2090
|
onFramesLayoutChanged: new C(
|
|
2060
2091
|
() => t.onFramesLayoutChanged,
|
|
2061
|
-
(
|
|
2092
|
+
(v = t.logging) == null ? void 0 : v.logger
|
|
2062
2093
|
),
|
|
2063
2094
|
onSelectedFramesContentChanged: new C(
|
|
2064
2095
|
() => t.onSelectedFramesContentChanged,
|
|
@@ -2074,7 +2105,7 @@ class le {
|
|
|
2074
2105
|
),
|
|
2075
2106
|
onSelectedLayoutUnitChanged: new C(
|
|
2076
2107
|
() => t.onSelectedLayoutUnitChanged,
|
|
2077
|
-
(
|
|
2108
|
+
(I = t.logging) == null ? void 0 : I.logger
|
|
2078
2109
|
),
|
|
2079
2110
|
onScrubberPositionChanged: new C(
|
|
2080
2111
|
() => t.onScrubberPositionChanged,
|
|
@@ -2094,51 +2125,51 @@ class le {
|
|
|
2094
2125
|
),
|
|
2095
2126
|
onUndoStackStateChanged: new C(
|
|
2096
2127
|
() => t.onUndoStackStateChanged,
|
|
2097
|
-
(
|
|
2128
|
+
(W = t.logging) == null ? void 0 : W.logger
|
|
2098
2129
|
),
|
|
2099
2130
|
onSelectedLayoutFramesChanged: new C(
|
|
2100
2131
|
() => t.onSelectedLayoutFramesChanged,
|
|
2101
|
-
(
|
|
2132
|
+
(j = t.logging) == null ? void 0 : j.logger
|
|
2102
2133
|
),
|
|
2103
2134
|
onSelectedTextStyleChanged: new C(
|
|
2104
2135
|
() => t.onSelectedTextStyleChanged,
|
|
2105
|
-
(
|
|
2136
|
+
(ft = t.logging) == null ? void 0 : ft.logger
|
|
2106
2137
|
),
|
|
2107
2138
|
onColorsChanged: new C(
|
|
2108
2139
|
() => t.onColorsChanged,
|
|
2109
|
-
(
|
|
2140
|
+
(St = t.logging) == null ? void 0 : St.logger
|
|
2110
2141
|
),
|
|
2111
2142
|
onParagraphStylesChanged: new C(
|
|
2112
2143
|
() => t.onParagraphStylesChanged,
|
|
2113
|
-
(
|
|
2144
|
+
(ue = t.logging) == null ? void 0 : ue.logger
|
|
2114
2145
|
),
|
|
2115
2146
|
onCharacterStylesChanged: new C(
|
|
2116
2147
|
() => t.onCharacterStylesChanged,
|
|
2117
|
-
(
|
|
2148
|
+
(ge = t.logging) == null ? void 0 : ge.logger
|
|
2118
2149
|
),
|
|
2119
2150
|
onFontFamiliesChanged: new C(
|
|
2120
2151
|
() => t.onFontFamiliesChanged,
|
|
2121
|
-
(
|
|
2152
|
+
(ye = t.logging) == null ? void 0 : ye.logger
|
|
2122
2153
|
),
|
|
2123
2154
|
onSelectedLayoutIdChanged: new C(
|
|
2124
2155
|
() => t.onSelectedLayoutIdChanged,
|
|
2125
|
-
(
|
|
2156
|
+
(pe = t.logging) == null ? void 0 : pe.logger
|
|
2126
2157
|
),
|
|
2127
2158
|
onLayoutsChanged: new C(
|
|
2128
2159
|
() => t.onLayoutsChanged,
|
|
2129
|
-
(
|
|
2160
|
+
(Ce = t.logging) == null ? void 0 : Ce.logger
|
|
2130
2161
|
),
|
|
2131
2162
|
onConnectorEvent: new C(
|
|
2132
2163
|
() => t.onConnectorEvent,
|
|
2133
|
-
(
|
|
2164
|
+
(me = t.logging) == null ? void 0 : me.logger
|
|
2134
2165
|
),
|
|
2135
2166
|
onConnectorsChanged: new C(
|
|
2136
2167
|
() => t.onConnectorsChanged,
|
|
2137
|
-
(
|
|
2168
|
+
(we = t.logging) == null ? void 0 : we.logger
|
|
2138
2169
|
),
|
|
2139
2170
|
onZoomChanged: new C(
|
|
2140
2171
|
() => t.onZoomChanged,
|
|
2141
|
-
(
|
|
2172
|
+
(fe = t.logging) == null ? void 0 : fe.logger
|
|
2142
2173
|
),
|
|
2143
2174
|
onSelectedPageIdChanged: new C(
|
|
2144
2175
|
() => t.onSelectedPageIdChanged,
|
|
@@ -2154,15 +2185,15 @@ class le {
|
|
|
2154
2185
|
),
|
|
2155
2186
|
onPageSizeChanged: new C(
|
|
2156
2187
|
() => t.onPageSizeChanged,
|
|
2157
|
-
(
|
|
2188
|
+
(Se = t.logging) == null ? void 0 : Se.logger
|
|
2158
2189
|
),
|
|
2159
2190
|
onShapeCornerRadiusChanged: new C(
|
|
2160
2191
|
() => t.onShapeCornerRadiusChanged,
|
|
2161
|
-
(
|
|
2192
|
+
(be = t.logging) == null ? void 0 : be.logger
|
|
2162
2193
|
),
|
|
2163
2194
|
onCropActiveFrameIdChanged: new C(
|
|
2164
2195
|
() => t.onCropActiveFrameIdChanged,
|
|
2165
|
-
(
|
|
2196
|
+
(ve = t.logging) == null ? void 0 : ve.logger
|
|
2166
2197
|
),
|
|
2167
2198
|
onAsyncError: new C(
|
|
2168
2199
|
() => t.onAsyncError,
|
|
@@ -2170,9 +2201,9 @@ class le {
|
|
|
2170
2201
|
),
|
|
2171
2202
|
onViewModeChanged: new C(
|
|
2172
2203
|
() => t.onViewModeChanged,
|
|
2173
|
-
(
|
|
2204
|
+
(Ae = t.logging) == null ? void 0 : Ae.logger
|
|
2174
2205
|
),
|
|
2175
|
-
onBarcodeValidationChanged: new C(() => t.onBarcodeValidationChanged, (
|
|
2206
|
+
onBarcodeValidationChanged: new C(() => t.onBarcodeValidationChanged, (Pe = t.logging) == null ? void 0 : Pe.logger),
|
|
2176
2207
|
onDataSourceIdChanged: new C(
|
|
2177
2208
|
() => t.onDataSourceIdChanged,
|
|
2178
2209
|
t.logging.logger
|
|
@@ -2199,7 +2230,7 @@ class le {
|
|
|
2199
2230
|
return t == x.info || t == x.warn && (o == x.warn || o == x.error) ? !0 : t == x.error && o == x.error;
|
|
2200
2231
|
}
|
|
2201
2232
|
}
|
|
2202
|
-
class
|
|
2233
|
+
class nn {
|
|
2203
2234
|
/**
|
|
2204
2235
|
* Checks if the given value is a `DatePropertyWrapper`.
|
|
2205
2236
|
*
|
|
@@ -2249,8 +2280,8 @@ class sn {
|
|
|
2249
2280
|
}), t;
|
|
2250
2281
|
}
|
|
2251
2282
|
}
|
|
2252
|
-
var
|
|
2253
|
-
class
|
|
2283
|
+
var lt;
|
|
2284
|
+
class an {
|
|
2254
2285
|
/**
|
|
2255
2286
|
* @ignore
|
|
2256
2287
|
*/
|
|
@@ -2258,8 +2289,8 @@ class rn {
|
|
|
2258
2289
|
/**
|
|
2259
2290
|
* @ignore
|
|
2260
2291
|
*/
|
|
2261
|
-
u(this,
|
|
2262
|
-
g(this,
|
|
2292
|
+
u(this, lt);
|
|
2293
|
+
g(this, lt, o);
|
|
2263
2294
|
}
|
|
2264
2295
|
/**
|
|
2265
2296
|
* This method returns the value for a given configuration key. If a value was not found in the configuration store
|
|
@@ -2267,7 +2298,7 @@ class rn {
|
|
|
2267
2298
|
* @returns value for a given configuration key
|
|
2268
2299
|
*/
|
|
2269
2300
|
async getValue(o) {
|
|
2270
|
-
return (await a(this,
|
|
2301
|
+
return (await a(this, lt)).getConfigValue(o).then((e) => i(e));
|
|
2271
2302
|
}
|
|
2272
2303
|
/**
|
|
2273
2304
|
* This method sets, or overrides the value for a given key. Null values are not allowed for both key and value,
|
|
@@ -2275,26 +2306,26 @@ class rn {
|
|
|
2275
2306
|
* @returns
|
|
2276
2307
|
*/
|
|
2277
2308
|
async setValue(o, t) {
|
|
2278
|
-
return (await a(this,
|
|
2309
|
+
return (await a(this, lt)).setConfigValue(o, t).then((r) => i(r));
|
|
2279
2310
|
}
|
|
2280
2311
|
/**
|
|
2281
2312
|
* This method updates the studio options. Only defined options are updated, null values are ignored.
|
|
2282
2313
|
* @returns
|
|
2283
2314
|
*/
|
|
2284
2315
|
async updateStudioOptions(o) {
|
|
2285
|
-
return (await a(this,
|
|
2316
|
+
return (await a(this, lt)).updateStudioOptions(JSON.stringify(o)).then((e) => i(e));
|
|
2286
2317
|
}
|
|
2287
2318
|
/**
|
|
2288
2319
|
* This method returns the engine session id. This id is unique for this engine session
|
|
2289
2320
|
* @returns the engine session id
|
|
2290
2321
|
*/
|
|
2291
2322
|
async getEngineSessionId() {
|
|
2292
|
-
return (await a(this,
|
|
2323
|
+
return (await a(this, lt)).getEngineSessionId().then((t) => i(t));
|
|
2293
2324
|
}
|
|
2294
2325
|
}
|
|
2295
|
-
|
|
2296
|
-
var
|
|
2297
|
-
class
|
|
2326
|
+
lt = new WeakMap();
|
|
2327
|
+
var Lt;
|
|
2328
|
+
class cs extends an {
|
|
2298
2329
|
/**
|
|
2299
2330
|
* @ignore
|
|
2300
2331
|
*/
|
|
@@ -2303,8 +2334,8 @@ class os extends rn {
|
|
|
2303
2334
|
/**
|
|
2304
2335
|
* @ignore
|
|
2305
2336
|
*/
|
|
2306
|
-
u(this,
|
|
2307
|
-
g(this,
|
|
2337
|
+
u(this, Lt);
|
|
2338
|
+
g(this, Lt, e);
|
|
2308
2339
|
}
|
|
2309
2340
|
/**
|
|
2310
2341
|
* This method returns the value for a given configuration key. If a value was not found in the configuration store,
|
|
@@ -2312,7 +2343,7 @@ class os extends rn {
|
|
|
2312
2343
|
* @returns value for a given configuration key
|
|
2313
2344
|
*/
|
|
2314
2345
|
async getValue(t) {
|
|
2315
|
-
const e = a(this,
|
|
2346
|
+
const e = a(this, Lt).get(t);
|
|
2316
2347
|
return e != null ? i(
|
|
2317
2348
|
{
|
|
2318
2349
|
status: 200,
|
|
@@ -2331,12 +2362,12 @@ class os extends rn {
|
|
|
2331
2362
|
*/
|
|
2332
2363
|
async setValue(t, e) {
|
|
2333
2364
|
const r = super.setValue(t, e);
|
|
2334
|
-
return a(this,
|
|
2365
|
+
return a(this, Lt).set(t, e), r;
|
|
2335
2366
|
}
|
|
2336
2367
|
}
|
|
2337
|
-
|
|
2368
|
+
Lt = new WeakMap();
|
|
2338
2369
|
var k;
|
|
2339
|
-
class
|
|
2370
|
+
class hs {
|
|
2340
2371
|
/**
|
|
2341
2372
|
* @ignore
|
|
2342
2373
|
*/
|
|
@@ -2352,18 +2383,18 @@ class cs {
|
|
|
2352
2383
|
}
|
|
2353
2384
|
}
|
|
2354
2385
|
k = new WeakMap();
|
|
2355
|
-
const
|
|
2356
|
-
let
|
|
2357
|
-
class
|
|
2386
|
+
const on = "studio-cdn.chiligrafx.com", cn = `https://${on}/editor/${gs.current}/web`;
|
|
2387
|
+
let et;
|
|
2388
|
+
class Tn {
|
|
2358
2389
|
/**
|
|
2359
2390
|
* The SDK should be configured clientside and it exposes all controllers to work with in other applications
|
|
2360
2391
|
* @param config The configuration object where the SDK and editor can get configured
|
|
2361
2392
|
*/
|
|
2362
2393
|
constructor(o) {
|
|
2363
|
-
this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new
|
|
2394
|
+
this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new nn(), this.loadEditor = () => {
|
|
2364
2395
|
var t;
|
|
2365
|
-
|
|
2366
|
-
this.config.editorLink ||
|
|
2396
|
+
Qs(
|
|
2397
|
+
this.config.editorLink || cn,
|
|
2367
2398
|
{
|
|
2368
2399
|
onActionsChanged: this.subscriber.onActionsChanged,
|
|
2369
2400
|
onStateChanged: this.subscriber.onStateChanged,
|
|
@@ -2419,114 +2450,116 @@ class kn {
|
|
|
2419
2450
|
this.setConnection,
|
|
2420
2451
|
this.config.editorId,
|
|
2421
2452
|
this.config.studioStyling
|
|
2422
|
-
), this.editorAPI =
|
|
2423
|
-
|
|
2424
|
-
this.config.documentType ||
|
|
2425
|
-
), this.configuration.updateStudioOptions(this.config.studioOptions ||
|
|
2426
|
-
|
|
2453
|
+
), this.editorAPI = et == null ? void 0 : et.promise.then((e) => e), this.action = new Le(this.editorAPI), this.layout = new Ze(this.editorAPI), this.frame = new qe(this.editorAPI), this.barcode = new Me(this.editorAPI), this.animation = new Ne(this.editorAPI), this.document = new $e(this.editorAPI), this.configuration = new cs(this.editorAPI, this.localConfig), this.utils = new ns(this.editorAPI, this.localConfig), this.tool = new ss(this.editorAPI), this.page = new Xe(this.editorAPI), this.debug = new Ke(this.editorAPI), this.undoManager = new rs(this.editorAPI, this), this.textSelection = new es(this.editorAPI), this.colorStyle = new Ue(this.editorAPI), this.gradientStyle = new hs(this.editorAPI), this.paragraphStyle = new ts(this.editorAPI), this.characterStyle = new Be(this.editorAPI), this.mediaConnector = new Qe(this.editorAPI), this.fontConnector = new We(this.editorAPI), this.dataConnector = new He(this.editorAPI, this.dataItemMappingTools), this.dataSource = new Te(this.editorAPI, this.dataItemMappingTools), this.connector = new _e(this.editorAPI, this.localConfig), this.variable = new as(this.editorAPI), this.font = new je(this.editorAPI), this.experiment = new ze(this.editorAPI), this.canvas = new re(this.editorAPI), this.shape = new ie(this.editorAPI), this.colorConversion = new ke(this.editorAPI), this.info = new Ye(), this.clipboard = new Ge(this.editorAPI), this.brandKit = new Je(this.editorAPI, this), this.next = new is(this.config, this.connection, this.editorAPI), this.configuration.setValue(tt.GraFxStudioSdkVersion, ys.version), this.configuration.setValue(
|
|
2454
|
+
tt.GraFxStudioDocumentType,
|
|
2455
|
+
this.config.documentType || ws.template
|
|
2456
|
+
), this.configuration.updateStudioOptions(this.config.studioOptions || Xs), this.configuration.setValue(
|
|
2457
|
+
tt.QueryCallCacheEnabled,
|
|
2427
2458
|
((t = this.config.enableQueryCallCache) == null ? void 0 : t.toString()) || "false"
|
|
2428
2459
|
);
|
|
2429
2460
|
}, this.setConnection = (t) => {
|
|
2430
|
-
|
|
2431
|
-
}, this.config =
|
|
2461
|
+
et = t;
|
|
2462
|
+
}, this.config = de.createRuntimeConfig(o), this.connection = et, this.editorAPI = et == null ? void 0 : et.promise.then((t) => t), this.action = new Le(this.editorAPI), this.layout = new Ze(this.editorAPI), this.frame = new qe(this.editorAPI), this.shape = new ie(this.editorAPI), this.barcode = new Me(this.editorAPI), this.undoManager = new rs(this.editorAPI, this), this.connector = new _e(this.editorAPI, this.localConfig), this.mediaConnector = new Qe(this.editorAPI), this.fontConnector = new We(this.editorAPI), this.dataConnector = new He(this.editorAPI, this.dataItemMappingTools), this.dataSource = new Te(this.editorAPI, this.dataItemMappingTools), this.animation = new Ne(this.editorAPI), this.document = new $e(this.editorAPI), this.configuration = new cs(this.editorAPI, this.localConfig), this.variable = new as(this.editorAPI), this.utils = new ns(this.editorAPI, this.localConfig), this.subscriber = new $r(this.config, this.localConfig), this.tool = new ss(this.editorAPI), this.page = new Xe(this.editorAPI), this.debug = new Ke(this.editorAPI), this.textSelection = new es(this.editorAPI), this.colorStyle = new Ue(this.editorAPI), this.gradientStyle = new hs(this.editorAPI), this.paragraphStyle = new ts(this.editorAPI), this.characterStyle = new Be(this.editorAPI), this.font = new je(this.editorAPI), this.experiment = new ze(this.editorAPI), this.canvas = new re(this.editorAPI), this.colorConversion = new ke(this.editorAPI), this.info = new Ye(), this.clipboard = new Ge(this.editorAPI), this.next = new is(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new Je(this.editorAPI, this);
|
|
2432
2463
|
}
|
|
2433
2464
|
}
|
|
2434
|
-
var
|
|
2435
|
-
const
|
|
2465
|
+
var hn = /* @__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))(hn || {}), ln = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(ln || {}), dn = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(dn || {}), un = /* @__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))(un || {}), gn = /* @__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))(gn || {}), yn = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(yn || {}), pn = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(pn || {}), Cn = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(Cn || {}), mn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(mn || {}), wn = /* @__PURE__ */ ((s) => (s.BOLD = "Bold", s.ITALIC = "Italic", s.REGULAR = "Regular", s))(wn || {}), fn = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(fn || {}), Sn = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(Sn || {}), bn = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(bn || {}), vn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(vn || {}), In = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(In || {}), An = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(An || {}), Pn = /* @__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.MARKED_LIST_TYPE = "markedListType", s.MARKED_LIST_GROUP = "markedListGroup", s.MARKED_LIST_LEVEL = "markedListLevel", s))(Pn || {}), Fn = /* @__PURE__ */ ((s) => (s.arabic = "arabic", s.romanUpperCase = "romanUpperCase", s.romanLowerCase = "romanLowerCase", s.latinUpperCase = "latinUpperCase", s.latinLowerCase = "latinLowerCase", s))(Fn || {}), En = /* @__PURE__ */ ((s) => (s.none = "none", s.dash = "dash", s.dot = "dot", s.colon = "colon", s.roundBracket = "roundBracket", s))(En || {}), On = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(On || {}), Dn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Dn || {}), Ln = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(Ln || {}), Nn = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(Nn || {}), Ps = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Ps || {});
|
|
2466
|
+
const Kn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2436
2467
|
__proto__: null,
|
|
2437
|
-
ConnectorRegistrationSource:
|
|
2468
|
+
ConnectorRegistrationSource: Ps
|
|
2438
2469
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
2439
2470
|
export {
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2471
|
+
kr as ActionAsyncError,
|
|
2472
|
+
On as ActionEditorEvent,
|
|
2473
|
+
fn as Alignment,
|
|
2474
|
+
Br as AnchorTargetEdgeType,
|
|
2475
|
+
Jr as AnchorTargetType,
|
|
2476
|
+
br as AuthCredentialsTypeEnum,
|
|
2477
|
+
vr as AuthRefreshTypeEnum,
|
|
2478
|
+
Pr as AutoGrowDirection,
|
|
2479
|
+
bt as BarcodeCharacterSet,
|
|
2480
|
+
Mt as BarcodeErrorCorrectionLevel,
|
|
2481
|
+
Er as BarcodeSourceTypeEnum,
|
|
2451
2482
|
T as BarcodeType,
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
vn as
|
|
2510
|
-
|
|
2511
|
-
Pn as
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2483
|
+
rr as BarcodeValidationResult,
|
|
2484
|
+
gn as BasicAnimationsEmphasisStyles,
|
|
2485
|
+
Nr as BlendMode,
|
|
2486
|
+
bn as Case,
|
|
2487
|
+
q as ColorType,
|
|
2488
|
+
ee as ColorUsageType,
|
|
2489
|
+
mr as ConnectorConfigContextType,
|
|
2490
|
+
Cr as ConnectorConfigValueType,
|
|
2491
|
+
Sr as ConnectorEventType,
|
|
2492
|
+
sr as ConnectorHttpError,
|
|
2493
|
+
xn as ConnectorMapping,
|
|
2494
|
+
fr as ConnectorMappingDirection,
|
|
2495
|
+
wr as ConnectorMappingSource,
|
|
2496
|
+
xt as ConnectorRegistrationSource,
|
|
2497
|
+
ae as ConnectorStateType,
|
|
2498
|
+
gr as ConnectorType,
|
|
2499
|
+
or as ConstraintMode,
|
|
2500
|
+
Ln as CornerRadiusType,
|
|
2501
|
+
bs as CropType,
|
|
2502
|
+
Ur as DataRowAsyncError,
|
|
2503
|
+
_r as Day,
|
|
2504
|
+
ne as DeprecatedMediaConnectorDownloadType,
|
|
2505
|
+
Jt as DeprecatedMediaType,
|
|
2506
|
+
tr as DocumentIssueTypeEnum,
|
|
2507
|
+
ws as DocumentType,
|
|
2508
|
+
jr as DownloadFormats,
|
|
2509
|
+
dn as EaseTypes,
|
|
2510
|
+
Nn as EngineEditModeType,
|
|
2511
|
+
ce as EnvironmentType,
|
|
2512
|
+
Mr as FitMode,
|
|
2513
|
+
xr as FitModePosition,
|
|
2514
|
+
Dr as FlowDirection,
|
|
2515
|
+
mn as FontPreviewFormat,
|
|
2516
|
+
wn as FontWeights,
|
|
2517
|
+
kn as FrameAnchorTarget,
|
|
2518
|
+
Vr as FrameAnchorType,
|
|
2519
|
+
zr as FramePropertyNames,
|
|
2520
|
+
Fr as FrameTypeEnum,
|
|
2521
|
+
pn as GradientType,
|
|
2522
|
+
Cn as GradientUsageType,
|
|
2523
|
+
Vn as GrafxTokenAuthCredentials,
|
|
2524
|
+
Yt as ImageSourceTypeEnum,
|
|
2525
|
+
ir as LayoutIntent,
|
|
2526
|
+
Wr as LayoutPropertyNames,
|
|
2527
|
+
nr as LayoutType,
|
|
2528
|
+
Hr as Locale,
|
|
2529
|
+
In as MarkedListType,
|
|
2530
|
+
ar as MeasurementUnit,
|
|
2531
|
+
vs as MediaDownloadIntent,
|
|
2532
|
+
oe as MediaDownloadType,
|
|
2533
|
+
Bt as MediaType,
|
|
2534
|
+
Kn as Next,
|
|
2535
|
+
Fn as NumberListFormat,
|
|
2536
|
+
En as NumberListSeparatorSymbol,
|
|
2537
|
+
Gn as PageAnchorTarget,
|
|
2538
|
+
X as PositionEnum,
|
|
2539
|
+
Jn as RefreshedAuthCredendentials,
|
|
2540
|
+
vn as Scripting,
|
|
2541
|
+
An as SelectedTextStyleSections,
|
|
2542
|
+
Pn as SelectedTextStyles,
|
|
2543
|
+
ln as ShakeDirections,
|
|
2544
|
+
Dn as ShapeType,
|
|
2545
|
+
hn as SlideDirections,
|
|
2546
|
+
yr as SortBy,
|
|
2547
|
+
pr as SortOrder,
|
|
2548
|
+
Or as TextDirection,
|
|
2549
|
+
Sn as TextPosition,
|
|
2517
2550
|
K as ToolType,
|
|
2518
|
-
|
|
2519
|
-
|
|
2551
|
+
un as TweenTypes,
|
|
2552
|
+
Rr as UpdateZIndexMethod,
|
|
2520
2553
|
Ir as UploadAssetValidationError,
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2554
|
+
Ss as UploadAssetValidationErrorType,
|
|
2555
|
+
le as VariableType,
|
|
2556
|
+
Kr as VariableVisibilityOperator,
|
|
2557
|
+
Tr as VariableVisibilityTargetType,
|
|
2558
|
+
Rt as VariableVisibilityType,
|
|
2559
|
+
Lr as VerticalAlign,
|
|
2560
|
+
yn as ViewMode,
|
|
2561
|
+
tt as WellKnownConfigurationKeys,
|
|
2562
|
+
Tn as default,
|
|
2563
|
+
Rn as grafxMediaConnectorRegistration
|
|
2531
2564
|
};
|
|
2532
2565
|
//# sourceMappingURL=main.es.js.map
|