@chili-publish/studio-sdk 1.32.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.
Files changed (34) hide show
  1. package/_bundles/main.es.js +615 -577
  2. package/_bundles/main.es.js.map +1 -1
  3. package/_bundles/main.js +2 -2
  4. package/_bundles/main.js.map +1 -1
  5. package/lib/editor-engine.json +1 -1
  6. package/lib/package.json +1 -1
  7. package/lib/src/controllers/FrameController.d.ts +61 -5
  8. package/lib/src/controllers/FrameController.js +99 -1
  9. package/lib/src/controllers/FrameController.js.map +1 -1
  10. package/lib/src/controllers/LayoutController.d.ts +10 -2
  11. package/lib/src/controllers/LayoutController.js +18 -2
  12. package/lib/src/controllers/LayoutController.js.map +1 -1
  13. package/lib/src/index.d.ts +3 -2
  14. package/lib/src/index.js +1 -0
  15. package/lib/src/index.js.map +1 -1
  16. package/lib/src/tests/controllers/FrameConstraintController.test.js +167 -0
  17. package/lib/src/tests/controllers/FrameConstraintController.test.js.map +1 -0
  18. package/lib/src/tests/controllers/FrameController.test.js +7 -0
  19. package/lib/src/tests/controllers/FrameController.test.js.map +1 -1
  20. package/lib/src/tests/controllers/LayoutController.test.js +14 -4
  21. package/lib/src/tests/controllers/LayoutController.test.js.map +1 -1
  22. package/lib/src/types/ConfigurationTypes.d.ts +17 -0
  23. package/lib/src/types/ConfigurationTypes.js +14 -0
  24. package/lib/src/types/ConfigurationTypes.js.map +1 -1
  25. package/lib/src/types/FrameTypes.d.ts +37 -0
  26. package/lib/src/types/FrameTypes.js.map +1 -1
  27. package/lib/src/types/LayoutTypes.d.ts +8 -0
  28. package/lib/src/types/ParagraphStyleTypes.d.ts +43 -0
  29. package/lib/src/types/ParagraphStyleTypes.js +16 -1
  30. package/lib/src/types/ParagraphStyleTypes.js.map +1 -1
  31. package/lib/src/utils/Enums.d.ts +5 -1
  32. package/lib/src/utils/Enums.js +4 -0
  33. package/lib/src/utils/Enums.js.map +1 -1
  34. package/package.json +1 -1
@@ -1,34 +1,34 @@
1
- var Fe = (s) => {
1
+ var Ee = (s) => {
2
2
  throw TypeError(s);
3
3
  };
4
- var Ee = (s, o, t) => o.has(s) || Fe("Cannot " + t);
5
- var a = (s, o, t) => (Ee(s, o, "read from private field"), t ? t.call(s) : o.get(s)), u = (s, o, t) => o.has(s) ? Fe("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(s) : o.set(s, t), g = (s, o, t, e) => (Ee(s, o, "write to private field"), e ? e.call(s, t) : o.set(s, t), t);
6
- const Ps = "2.15.latest", us = {
7
- current: Ps
8
- }, Fs = "1.32.0", gs = {
9
- version: Fs
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 dt;
14
+ })(z || (z = {}));
15
+ var ut;
16
16
  (function(s) {
17
17
  s.Fulfilled = "fulfilled", s.Rejected = "rejected";
18
- })(dt || (dt = {}));
19
- var Rt;
18
+ })(ut || (ut = {}));
19
+ var Vt;
20
20
  (function(s) {
21
21
  s.ConnectionDestroyed = "ConnectionDestroyed", s.ConnectionTimeout = "ConnectionTimeout", s.NoIframeSrc = "NoIframeSrc";
22
- })(Rt || (Rt = {}));
23
- var Xt;
22
+ })(Vt || (Vt = {}));
23
+ var te;
24
24
  (function(s) {
25
25
  s.DataCloneError = "DataCloneError";
26
- })(Xt || (Xt = {}));
27
- var lt;
26
+ })(te || (te = {}));
27
+ var dt;
28
28
  (function(s) {
29
29
  s.Message = "message";
30
- })(lt || (lt = {}));
31
- const Es = (s, o) => {
30
+ })(dt || (dt = {}));
31
+ const Os = (s, o) => {
32
32
  const t = [];
33
33
  let e = !1;
34
34
  return {
@@ -46,10 +46,10 @@ const Es = (s, o) => {
46
46
  }, Ls = {
47
47
  "http:": "80",
48
48
  "https:": "443"
49
- }, Os = /^(https?:)?\/\/([^/:]+)?(:(\d+))?/, Ns = ["file:", "data:"], Ms = (s) => {
50
- if (s && Ns.find((d) => s.startsWith(d)))
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 = Os.exec(s);
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
55
  const c = n && n !== Ls[e] ? `:${n}` : "";
@@ -58,116 +58,116 @@ const Es = (s, o) => {
58
58
  name: s,
59
59
  message: o,
60
60
  stack: t
61
- }), xs = (s) => {
61
+ }), Rs = (s) => {
62
62
  const o = new Error();
63
63
  return Object.keys(s).forEach((t) => o[t] = s[t]), o;
64
- }, Rs = (s, o, t) => {
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 !== $.Call)
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 I = y.data, { methodName: S, args: b, id: A } = I;
74
+ const v = y.data, { methodName: S, args: b, id: A } = v;
75
75
  t(`${e}: Received ${S}() call`);
76
- const v = (f) => (M) => {
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: $.Reply,
82
+ penpal: z.Reply,
83
83
  id: A,
84
84
  resolution: f,
85
85
  returnValue: M
86
86
  };
87
- f === dt.Rejected && M instanceof Error && (E.returnValue = De(M), E.returnValueIsError = !0);
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 === Xt.DataCloneError) {
92
- const z = {
93
- penpal: $.Reply,
91
+ if (P.name === te.DataCloneError) {
92
+ const W = {
93
+ penpal: z.Reply,
94
94
  id: A,
95
- resolution: dt.Rejected,
95
+ resolution: ut.Rejected,
96
96
  returnValue: De(P),
97
97
  returnValueIsError: !0
98
98
  };
99
- n.postMessage(z, c);
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(v(dt.Fulfilled), v(dt.Rejected));
104
+ new Promise((f) => f(o[S].apply(o, b))).then(I(ut.Fulfilled), I(ut.Rejected));
105
105
  };
106
- return r.addEventListener(lt.Message, p), () => {
107
- h = !0, r.removeEventListener(lt.Message, p);
106
+ return r.addEventListener(dt.Message, p), () => {
107
+ h = !0, r.removeEventListener(dt.Message, p);
108
108
  };
109
109
  };
110
- let Vs = 0;
111
- const Gs = () => ++Vs, ys = ".", ps = (s) => s ? s.split(ys) : [], Bs = (s) => s.join(ys), Js = (s, o) => {
112
- const t = ps(o || "");
113
- return t.push(s), Bs(t);
114
- }, ks = (s, o, t) => {
115
- const e = ps(o);
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
- }, Cs = (s, o) => {
117
+ }, ms = (s, o) => {
118
118
  const t = {};
119
119
  return Object.keys(s).forEach((e) => {
120
- const r = s[e], n = Js(e, o);
121
- typeof r == "object" && Object.assign(t, Cs(r, n)), typeof r == "function" && (t[n] = r);
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
- }, Us = (s) => {
123
+ }, _s = (s) => {
124
124
  const o = {};
125
125
  for (const t in s)
126
- ks(o, t, s[t]);
126
+ Us(o, t, s[t]);
127
127
  return o;
128
- }, _s = (s, o, t, e, r) => {
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 I = (b) => (...A) => {
132
+ const v = (b) => (...A) => {
133
133
  r(`${n}: Sending ${b}() call`);
134
- let v;
134
+ let I;
135
135
  try {
136
- d.closed && (v = !0);
136
+ d.closed && (I = !0);
137
137
  } catch {
138
- v = !0;
138
+ I = !0;
139
139
  }
140
- if (v && e(), y) {
140
+ if (I && e(), y) {
141
141
  const f = new Error(`Unable to send ${b}() call due to destroyed connection`);
142
- throw f.code = Rt.ConnectionDestroyed, f;
142
+ throw f.code = Vt.ConnectionDestroyed, f;
143
143
  }
144
144
  return new Promise((f, M) => {
145
- const E = Gs(), P = (W) => {
146
- if (W.source !== d || W.data.penpal !== $.Reply || W.data.id !== E)
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 (W.origin !== p) {
149
- r(`${n} received message from origin ${W.origin} which did not match expected origin ${p}`);
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 wt = W.data;
153
- r(`${n}: Received ${b}() reply`), c.removeEventListener(lt.Message, P);
154
- let ft = wt.returnValue;
155
- wt.returnValueIsError && (ft = xs(ft)), (wt.resolution === dt.Fulfilled ? f : M)(ft);
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(lt.Message, P);
158
- const z = {
159
- penpal: $.Call,
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(z, h);
164
+ d.postMessage(W, h);
165
165
  });
166
- }, S = t.reduce((b, A) => (b[A] = I(A), b), {});
167
- return Object.assign(s, Us(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
- }, Hs = (s, o, t, e, r) => {
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 I = {
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 = Rs(I, s, r), c(d), h && h.forEach((b) => {
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 = _s(p, I, h, n, r);
190
+ const S = Hs(p, v, h, n, r);
191
191
  return c(S), p;
192
192
  };
193
- }, Ts = (s, o, t, e) => (r) => {
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: $.SynAck,
200
+ penpal: z.SynAck,
201
201
  methodNames: Object.keys(o)
202
202
  };
203
203
  r.source.postMessage(n, e);
204
- }, Ks = 6e4, $s = (s, o) => {
204
+ }, $s = 6e4, zs = (s, o) => {
205
205
  const { destroy: t, onDestroy: e } = o, r = setInterval(() => {
206
206
  s.isConnected || (clearInterval(r), t());
207
- }, Ks);
207
+ }, $s);
208
208
  e(() => {
209
209
  clearInterval(r);
210
210
  });
211
- }, zs = (s, o) => {
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 = Rt.ConnectionTimeout, o(e);
215
+ e.code = Vt.ConnectionTimeout, o(e);
216
216
  }, s)), () => {
217
217
  clearTimeout(t);
218
218
  };
219
- }, Ws = (s) => {
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 = Rt.NoIframeSrc, o;
222
+ throw o.code = Vt.NoIframeSrc, o;
223
223
  }
224
- }, js = (s) => {
224
+ }, qs = (s) => {
225
225
  let { iframe: o, methods: t = {}, childOrigin: e, timeout: r, debug: n = !1 } = s;
226
- const c = Ds(n), d = Es("Parent", c), { onDestroy: h, destroy: p } = d;
227
- e || (Ws(o), e = Ms(o.src));
228
- const y = e === "null" ? "*" : e, I = Cs(t), S = Ts(c, I, e, y), b = Hs(I, e, y, d, c);
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((v, f) => {
231
- const M = zs(r, p), E = (P) => {
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 === $.Syn) {
233
+ if (P.data.penpal === z.Syn) {
234
234
  S(P);
235
235
  return;
236
236
  }
237
- if (P.data.penpal === $.Ack) {
238
- const z = b(P);
239
- z && (M(), v(z));
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(lt.Message, E), c("Parent: Awaiting handshake"), $s(o, d), h((P) => {
245
- window.removeEventListener(lt.Message, E), P && f(P);
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
- }, qs = (s) => {
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
- }, Ys = (s, o, t) => {
257
- const e = qs(o), n = `<html>
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
- }, Zs = (s, o, t, e = "chili-editor", r) => {
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), Ys(c, s, r));
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
- js({
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 X = /* @__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))(X || {});
340
- const Qs = {
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 Xs = /* @__PURE__ */ ((s) => (s.overflow = "overflow", s.fontLoading = "fontLoading", s.actionRegister = "actionRegister", s.actionExecution = "actionExecution", s.actionCircular = "actionCircular", s))(Xs || {}), ms = /* @__PURE__ */ ((s) => (s.project = "project", s.template = "template", s.component = "component", s))(ms || {});
356
- const tr = 404075;
357
- function ws(s) {
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 === tr) {
366
+ if (s.status === er) {
365
367
  const r = JSON.parse(s.data).statusCode;
366
- throw new er(r, o, t);
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 || ws(s);
374
+ s.success || fs(s);
373
375
  const t = s.data && o;
374
376
  return {
375
377
  ...s,
@@ -379,7 +381,7 @@ function i(s, o = !0) {
379
381
  throw console.error(t), t;
380
382
  }
381
383
  }
382
- class er extends Error {
384
+ class sr extends Error {
383
385
  constructor(o, t, e) {
384
386
  super(t, e), this.statusCode = o;
385
387
  }
@@ -398,8 +400,8 @@ class Le {
398
400
  }
399
401
  }
400
402
  N = new WeakMap();
401
- var L;
402
- class Oe {
403
+ var D;
404
+ class Ne {
403
405
  /**
404
406
  * @ignore
405
407
  */
@@ -407,15 +409,15 @@ class Oe {
407
409
  /**
408
410
  * @ignore
409
411
  */
410
- u(this, L);
411
- this.getAllOnSelectedLayout = async () => (await a(this, L)).getAnimationsOnSelectedLayout().then((e) => i(e)), this.getByFrameId = async (t, e) => (await a(this, L)).getAnimationByFrameId(t, e).then((n) => i(n)), this.getByLayoutId = async (t) => (await a(this, L)).getAnimationsByLayoutId(t).then((r) => i(r)), this.setFrameAnimation = async (t) => (await a(this, L)).setFrameAnimation(JSON.stringify(t)).then(
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, L)).playAnimation().then((e) => i(e)), this.pause = async () => (await a(this, L)).pauseAnimation().then((e) => i(e)), this.setScrubberPosition = async (t) => (await a(this, L)).setScrubberPosition(t).then((r) => i(r)), this.setDuration = async (t) => (await a(this, L)).setAnimationDuration(t).then((r) => i(r)), this.resetFrameAnimation = async (t) => (await a(this, L)).resetFrameAnimation(t).then((r) => i(r)), this.reset = async () => (await a(this, L)).resetAnimation().then((e) => i(e)), g(this, L, o);
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
- L = new WeakMap();
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 || {}), Nt = /* @__PURE__ */ ((s) => (s.low = "low", s.medium = "medium", s.quartile = "quartile", s.high = "high", s))(Nt || {}), St = /* @__PURE__ */ ((s) => (s.utf8 = "utf8", s.iso8859_1 = "iso8859_1", s.code128a = "code128a", s.code128b = "code128b", s.code128c = "code128c", s))(St || {}), sr = /* @__PURE__ */ ((s) => (s.success = "success", s.empty = "empty", s.invalidLength = "invalidLength", s.invalidCharacters = "invalidCharacters", s.invalidChecksum = "invalidChecksum", s.invalidUPCE = "invalidUPCE", s.otherError = "otherError", s))(sr || {}), Q = /* @__PURE__ */ ((s) => (s.top = "top", s.right = "right", s.bottom = "bottom", s.left = "left", s))(Q || {}), rr = /* @__PURE__ */ ((s) => (s.top = "top", s.child = "child", s))(rr || {}), nr = /* @__PURE__ */ ((s) => (s.px = "px", s.mm = "mm", s.cm = "cm", s.inch = "inch", s.pt = "pt", s))(nr || {}), ar = /* @__PURE__ */ ((s) => (s.print = "print", s.digitalStatic = "digitalStatic", s.digitalAnimated = "digitalAnimated", s))(ar || {}), ir = /* @__PURE__ */ ((s) => (s.locked = "locked", s.range = "range", s.none = "none", s))(ir || {}), U;
418
- class Ne {
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 === Q.left ? e : void 0,
451
- top: r === Q.top ? e : void 0,
452
- right: r === Q.right ? e : void 0,
453
- bottom: r === Q.bottom ? e : void 0
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 = [St.iso8859_1, St.utf8], d = [
470
- Nt.low,
471
- Nt.medium,
472
- Nt.quartile,
473
- Nt.high
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
- St.code128a,
491
- St.code128b,
492
- St.code128c
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 || {}), j = /* @__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))(j || {}), te = /* @__PURE__ */ ((s) => (s.local = "local", s.brandKit = "brandKit", s.stylekit = "brandKit", s))(te || {});
515
- const Me = (s) => s.type === H.hex, ee = (s) => s.type === H.spotHex, or = (s) => s.type === H.spotRgb, cr = (s) => s.type === H.spotCmyk, hr = (s) => or(s) || cr(s) || ee(s), lr = (s) => {
516
- const o = dr(s.type);
517
- return hr(s) ? {
518
- ...ee(s) && { value: s.displayValue },
519
- ...!ee(s) && { ...s.displayValue },
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
- ...Me(s) && { value: s.value },
524
- ...!Me(s) && { ...s.value },
525
+ ...xe(s) && { value: s.value },
526
+ ...!xe(s) && { ...s.value },
525
527
  type: o
526
528
  };
527
- }, xe = (s, o, t, e) => {
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: te.brandKit,
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: te.brandKit,
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
- }, dr = (s) => {
571
+ }, ur = (s) => {
570
572
  switch (s) {
571
573
  case H.rgb:
572
- return j.rgb;
574
+ return q.rgb;
573
575
  case H.cmyk:
574
- return j.cmyk;
576
+ return q.cmyk;
575
577
  case H.hex:
576
- return j.hex;
578
+ return q.hex;
577
579
  case H.spotRgb:
578
- return j.spotRGB;
580
+ return q.spotRGB;
579
581
  case H.spotCmyk:
580
- return j.spotCMYK;
582
+ return q.spotCMYK;
581
583
  case H.spotHex:
582
- return j.spotHEX;
584
+ return q.spotHEX;
583
585
  }
584
- }, jt = (s, o) => {
586
+ }, qt = (s, o) => {
585
587
  if (!(s === null || o === void 0))
586
588
  return (s || []).find((t) => t.id === o);
587
- }, Re = (s, o, t) => {
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 O;
593
- class Ve {
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, O);
602
- this.getId = async () => (await a(this, O)).getBrandKitId().then((r) => i(r)), this.getVersion = async () => (await a(this, O)).getBrandKitVersion().then((r) => i(r)), this.getName = async () => (await a(this, O)).getBrandKitName().then((r) => i(r)), this.rename = async (e) => (await a(this, O)).renameBrandKit(e).then((n) => i(n)), this.updateIdAndVersion = async (e, r) => (await a(this, O)).updateBrandKitIdAndVersion(e, r).then((c) => i(c)), this.get = async () => {
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(), I = this.getAllMedia(), [S, b, A, v, f, M] = await Promise.all([
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
- I
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: v.parsedData,
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, O)).getAllBrandKitMedia().then((r) => i(r)), this.addMedia = async (e, r, n) => (await a(this, O)).addBrandKitMedia(e, r, n).then((d) => i(d)), this.updateMedia = async (e, r, n) => (await a(this, O)).updateBrandKitMedia(e, r, n).then((d) => i(d)), this.renameMedia = async (e, r) => (await a(this, O)).renameBrandKitMedia(e, r).then((c) => i(c)), this.removeMedia = async (e) => (await a(this, O)).removeBrandKitMedia(e).then((n) => i(n)), this.remove = async () => {
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 (v) => {
634
+ await this.undoManagerController.record("brandKit.remove", async (I) => {
633
635
  for (const f of r)
634
- await v.colorStyle.remove(f.id);
636
+ await I.colorStyle.remove(f.id);
635
637
  for (const f of c)
636
- await v.gradientStyle.remove(f.id);
638
+ await I.gradientStyle.remove(f.id);
637
639
  for (const f of h)
638
- await v.paragraphStyle.remove(f.id);
640
+ await I.paragraphStyle.remove(f.id);
639
641
  for (const f of y)
640
- await v.characterStyle.remove(f.id);
642
+ await I.characterStyle.remove(f.id);
641
643
  for (const f of S)
642
- await v.font.removeFontFamily(f.id);
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: I } = await n.paragraphStyle.getAll(), { parsedData: S } = await n.characterStyle.getAll(), { parsedData: b } = await this.getAllMedia();
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: I || [],
690
+ paragraphStyles: v || [],
689
691
  characterStyles: S || [],
690
692
  media: b || []
691
693
  }
692
694
  };
693
695
  }), r;
694
- }, g(this, O, 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;
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 = lr(r);
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), I = d.get(h.brandKitFontFamilyGuid), S = Re(n, I, h.fontStyleId);
728
- if (!I || !S)
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 = jt(r, p), A = jt(r, y);
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: v } = await t.paragraphStyle.create(), f = xe(
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(v, h.name), await t.paragraphStyle.update(v, f);
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, I = h.brandKitFontFamilyGuid ? d.get(h.brandKitFontFamilyGuid) : void 0, S = jt(r, p), b = jt(r, y), A = Re(n, I, h.fontStyleId), { parsedData: v } = await t.characterStyle.create(), f = xe(
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(v, h.name), await t.characterStyle.update(v, f);
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
- O = new WeakMap();
759
- var et;
760
- class se {
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, et);
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, et)).zoomToPage(e, r, n, c).then((h) => i(h))), this.getZoomPercentage = async () => (await a(this, et)).getZoomPercentage().then((e) => i(e)), this.setZoomPercentage = async (t) => (await a(this, et)).setZoomPercentage(t).then((r) => i(r)), this.setViewMode = async (t) => (await a(this, et)).setViewMode(t).then((r) => i(r)), g(this, et, o);
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
- et = new WeakMap();
774
+ st = new WeakMap();
773
775
  var R;
774
- class Ge {
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 st;
788
- class Be {
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, st);
798
+ u(this, rt);
797
799
  this.copyFrames = async (t) => {
798
- const r = await (await a(this, st)).copyFrames(t);
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, st)).cutFrames(t);
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, st), e = await navigator.clipboard.readText(), r = await t.pasteFrames(e);
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, st), e = await navigator.clipboard.readText(), r = await t.getClipboardContentType(e);
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, st, o);
811
+ }, g(this, rt, o);
810
812
  }
811
813
  }
812
- st = new WeakMap();
813
- var Jt;
814
- class Je {
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, Jt);
823
- this.convertToRgb = async (t) => (await a(this, Jt)).colorToRgb(JSON.stringify(t)).then((r) => i(r)), g(this, Jt, o);
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
- Jt = new WeakMap();
828
+ kt = new WeakMap();
827
829
  var V;
828
- class ke {
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 === j.spot && (n.type = j.spotCMYK), r.updateColor(t, JSON.stringify(n)).then((c) => i(c));
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 Vt = /* @__PURE__ */ ((s) => (s[s.file = 0] = "file", s[s.collection = 1] = "collection", s))(Vt || {}), re = /* @__PURE__ */ ((s) => (s.LowResolutionWeb = "lowresWeb", s.HighResolutionWeb = "highresWeb", s))(re || {}), Gt = /* @__PURE__ */ ((s) => (s.file = "file", s.collection = "collection", s))(Gt || {}), ur = /* @__PURE__ */ ((s) => (s.media = "media", s.fonts = "fonts", s.data = "data", s))(ur || {}), gr = /* @__PURE__ */ ((s) => (s.name = "name", s.path = "relativePath", s.id = "id", s))(gr || {}), yr = /* @__PURE__ */ ((s) => (s.ascending = "asc", s.descending = "desc", s))(yr || {}), pr = /* @__PURE__ */ ((s) => (s.text = "text", s.boolean = "boolean", s))(pr || {}), Cr = /* @__PURE__ */ ((s) => (s.query = "query", s.upload = "upload", s))(Cr || {}), Mt = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Mt || {});
845
- class Ln {
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 mr = /* @__PURE__ */ ((s) => (s.variable = "var", s.value = "value", s))(mr || {}), wr = /* @__PURE__ */ ((s) => (s.engineToConnector = "engineToConnector", s.connectorToEngine = "connectorToEngine", s))(wr || {}), ne = /* @__PURE__ */ ((s) => (s.loading = "loading", s.loaded = "loaded", s.running = "running", s.ready = "ready", s.error = "error", s))(ne || {}), fr = /* @__PURE__ */ ((s) => (s.stateChanged = "stateChanged", s.authChanged = "authChanged", s.reloadRequired = "reloadRequired", s.unloaded = "unloaded", s))(fr || {});
851
- const On = {
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 Nn {
858
+ class Vn {
857
859
  constructor(o) {
858
860
  this.type = "grafxToken", this.token = o;
859
861
  }
860
862
  }
861
- class Mn {
863
+ class Jn {
862
864
  constructor() {
863
865
  this.type = "refreshed";
864
866
  }
865
867
  }
866
- var Sr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.refreshed = "refreshed", s))(Sr || {}), br = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.any = "any", s))(br || {}), fs = /* @__PURE__ */ ((s) => (s.minDimension = "minDimension", s))(fs || {});
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 ce {
874
+ class he {
873
875
  constructor() {
874
876
  this.makeConnectorSourceForwardsCompatible = (o) => {
875
- if (o.source != Mt.grafx || this.isSourceMigrated(o))
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: Mt.grafx };
882
- }, this.makeMultipleConnectorsBackwardsCompatible = (o, t) => o.map((e) => this.makeSingleConnectorBackwardsCompatible(e, t)), this.makeSingleConnectorBackwardsCompatible = (o, t) => o.source.source != Mt.grafx ? o : {
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: Mt.grafx
895
+ source: xt.grafx
894
896
  };
895
897
  }, this.isSourceMigrated = (o) => "id" in o;
896
898
  }
897
899
  }
898
- var G, bt, ut, hs;
899
- let Ue = (hs = class {
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, G);
908
- u(this, bt);
909
- u(this, ut);
910
- this.getById = async (e) => (await a(this, G)).getConnectorById(e).then((n) => i(n)).then((n) => {
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, ut).makeSingleConnectorBackwardsCompatible(
914
+ return n.parsedData && (c.parsedData = a(this, gt).makeSingleConnectorBackwardsCompatible(
913
915
  n.parsedData,
914
- a(this, bt).get(X.GraFxStudioEnvironmentApiUrl)
916
+ a(this, vt).get(tt.GraFxStudioEnvironmentApiUrl)
915
917
  )), c;
916
- }), this.getAllByType = async (e) => (await a(this, G)).getConnectors(e).then((n) => i(n)).then((n) => {
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, ut).makeMultipleConnectorsBackwardsCompatible(
920
+ return n.parsedData && (c.parsedData = a(this, gt).makeMultipleConnectorsBackwardsCompatible(
919
921
  n.parsedData,
920
- a(this, bt).get(X.GraFxStudioEnvironmentApiUrl)
922
+ a(this, vt).get(tt.GraFxStudioEnvironmentApiUrl)
921
923
  )), c;
922
924
  }), this.register = async (e) => {
923
- const r = await a(this, G), n = a(this, ut).makeConnectorSourceForwardsCompatible(e);
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, G)).unregisterConnector(e).then((n) => i(n)), this.configure = async (e, r) => {
926
- const n = await a(this, G);
927
- return await this.waitToBeReady(e), await r(new vr(e, n)), n.updateConnectorConfiguration(e).then((c) => i(c));
928
- }, this.getState = async (e) => (await a(this, G)).getConnectorState(e).then((n) => i(n)), this.getOptions = async (e) => (await a(this, G)).getConnectorOptions(e).then((n) => i(n)), this.waitToBeReady = async (e, r = 2e3) => {
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 === ne.running || h.parsedData.type === ne.ready))
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
- (I) => I.name === y.name && I.direction === y.direction
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, G, o), g(this, bt, t), g(this, ut, new ce());
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, G)).getConnectorMappings(o).then((r) => i(r)).then(
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
- }, G = new WeakMap(), bt = new WeakMap(), ut = new WeakMap(), hs);
986
- var gt, yt;
987
- class vr {
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
- this.setOptions = async (e) => a(this, yt).setConnectorOptions(a(this, gt), JSON.stringify(e)).then((r) => i(r)), this.setMappings = async (e) => {
998
- const r = await a(this, yt).setConnectorMappings(
999
- a(this, gt),
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, yt).connectorAuthenticationSetHttpHeader(a(this, gt), e, r).then((n) => i(n)), g(this, gt, o), g(this, yt, t);
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
- gt = new WeakMap(), yt = new WeakMap();
1009
- var rt, kt;
1010
- class _e {
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, rt);
1019
- u(this, kt);
1020
- this.getPage = async (e, r, n = {}) => (await a(this, rt)).dataConnectorGetPage(e, JSON.stringify(r), JSON.stringify(n)).then((d) => i(d)).then((d) => {
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, kt).mapEngineToDataItem(p)
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, rt)).dataConnectorGetModel(e, JSON.stringify(r)).then((c) => i(c)), this.getConfigurationOptions = async (e) => (await a(this, rt)).dataConnectorGetConfigurationOptions(e).then((n) => i(n)), this.getCapabilities = async (e) => (await a(this, rt)).dataConnectorGetCapabilities(e).then((n) => i(n)), g(this, rt, o), g(this, kt, t);
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
- rt = new WeakMap(), kt = new WeakMap();
1032
- var nt, Ut;
1033
- class He {
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, nt);
1042
- u(this, Ut);
1043
- this.setDataSource = async (e) => (await a(this, nt)).setDataSource(e).then((n) => i(n)), this.getDataSource = async () => (await a(this, nt)).getDataSource().then((r) => i(r)), this.removeDataSource = async () => (await a(this, nt)).removeDataSource().then((r) => i(r)), this.setDataRow = async (e) => {
1044
- const r = await a(this, nt), n = a(this, Ut).mapDataItemToEngine(e);
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, nt, o), g(this, Ut, t);
1048
+ }, g(this, at, o), g(this, _t, t);
1047
1049
  }
1048
1050
  }
1049
- nt = new WeakMap(), Ut = new WeakMap();
1050
- var at;
1051
- class Te {
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, at);
1060
- this.getAllLogs = async () => (await a(this, at)).getLogs().then((e) => i(e)), this.toggleDebugPanel = async () => (await a(this, at)).toggleDebugPanel().then((e) => i(e)), this.enableDebug = async () => (await a(this, at)).enableDebug().then((e) => i(e)), this.disableDebug = async () => (await a(this, at)).disableDebug().then((e) => i(e)), g(this, at, o);
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
- at = new WeakMap();
1064
- var pt;
1065
- class Ke {
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, pt);
1074
- this.getCurrentState = async () => (await a(this, pt)).getCurrentDocumentState().then((e) => i(e)), this.load = async (t, e = { keepConnectors: !1 }) => {
1075
- const r = await a(this, pt), n = typeof t != "string" ? JSON.stringify(t) : t;
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, pt), r = JSON.stringify(t);
1080
+ const e = await a(this, Ct), r = JSON.stringify(t);
1079
1081
  return e.createAndLoadDocument(r).then((n) => i(n));
1080
- }, g(this, pt, o);
1082
+ }, g(this, Ct, o);
1081
1083
  }
1082
1084
  }
1083
- pt = new WeakMap();
1084
- var Ar = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Ar || {}), qt = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(qt || {}), Pr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s))(Pr || {}), Fr = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Fr || {}), Er = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Er || {}), 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 || {}), Or = /* @__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))(Or || {}), Nr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(Nr || {}), Mr = /* @__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))(Mr || {}), xr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(xr || {}), Rr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(Rr || {}), Vr = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))(Vr || {}), Gr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Gr || {});
1085
- class Rn {
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 Vn {
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 Ss = /* @__PURE__ */ ((s) => (s.frameCrop = "frameCrop", s.assetCrop = "assetCrop", s))(Ss || {}), B;
1096
- class $e {
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: qt.variable };
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 it, It;
1113
- class ze {
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, it);
1123
+ u(this, ot);
1122
1124
  u(this, It);
1123
- this.query = async (t, e, r = {}) => (await a(this, it)).fontConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((c) => i(c)), this.detail = async (t, e, r = {}) => (await a(this, it)).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, it)).fontConnectorGetConfigurationOptions(t).then((r) => i(r)), this.getCapabilities = async (t) => (await a(this, it)).fontConnectorGetCapabilities(t).then((r) => i(r)), this.parseDeprecatedFontType = (t) => {
1124
- if (t === Vt.file) return Gt.file;
1125
- if (t === Vt.collection) return Gt.collection;
1126
- }, g(this, it, o), g(this, It, o);
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
- it = new WeakMap(), It = new WeakMap();
1131
+ ot = new WeakMap(), It = new WeakMap();
1130
1132
  var F;
1131
- class We {
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 vt;
1145
- class ae {
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, vt);
1154
- this.setShapeProperties = async (t, e) => (await a(this, vt)).setShapeProperties(t, JSON.stringify(e)).then((n) => i(n)), this.setEnableFill = async (t, e) => {
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, vt)).setShapeCorners(t, JSON.stringify(e)).then((n) => i(n)), this.setRadiusAll = async (t, e) => {
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, vt, o);
1189
+ }, g(this, At, o);
1188
1190
  }
1189
1191
  }
1190
- vt = new WeakMap();
1192
+ At = new WeakMap();
1191
1193
  var l;
1192
- class je {
1194
+ class qe {
1193
1195
  /**
1194
1196
  * @ignore
1195
1197
  */
@@ -1198,25 +1200,25 @@ class je {
1198
1200
  * @ignore
1199
1201
  */
1200
1202
  u(this, l);
1201
- this.getAll = async () => (await a(this, l)).getFrames().then((e) => i(e)), this.getSelected = async () => (await a(this, l)).getSelectedFrames().then((e) => i(e)), this.getAllByPageId = async (t) => (await a(this, l)).getFramesByPageId(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, l)).getFrameByName(t).then((r) => i(r)), this.getById = async (t) => (await a(this, l)).getFrameById(t).then((r) => i(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, l)).getFramePropertiesOnSelectedLayout().then((e) => i(e)), this.getLayoutProperties = async (t, e) => (await a(this, l)).getFramePropertiesByFrameId(t, e).then((n) => i(n)), this.getAllLayoutProperties = async (t) => (await a(this, l)).getFramesProperties(t).then((r) => i(r)), this.resetTransformation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetSize = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.select = async (t) => (await a(this, l)).selectFrames([t]).then((r) => i(r)), this.selectMultiple = async (t) => (await a(this, l)).selectFrames(t).then((r) => i(r)), this.deselectAll = async () => (await a(this, l)).deselectFrames().then((e) => i(e)), this.reorderFrames = async (t, e) => (await a(this, l)).reorderFrames(t, e).then((n) => i(n)), this.setZIndex = async (t, e) => (await a(this, l)).setFrameZIndex(t, e).then((n) => i(n)), this.setHeight = async (t, e) => (await a(this, l)).setFrameHeight(t, e).then((n) => i(n)), this.setRotation = async (t, e) => (await a(this, l)).setFrameRotation(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, l)).setFrameWidth(t, e).then((n) => i(n)), this.setX = async (t, e) => (await a(this, l)).setFrameX(t, e).then((n) => i(n)), this.setY = async (t, e) => (await a(this, l)).setFrameY(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, l)).renameFrame(t, e).then((n) => i(n)), this.reset = async (t) => (await a(this, l)).resetFrame(t).then((r) => i(r)), this.resetX = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetY = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetRotation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetHeight = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetImageFrameFitMode = async (t) => (await a(this, l)).resetImageFrameFitMode(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.setIsVisible = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, l)).removeFrames([t]).then((r) => i(r)), this.removeFrames = async (t) => (await a(this, l)).removeFrames(t).then((r) => i(r)), this.create = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((h) => i(h)), this.createShapeFrame = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((h) => i(h)), this.createBarcodeFrame = async (t, e) => (await a(this, l)).addBarcodeFrame(t, e == null ? void 0 : e.x, e == null ? void 0 : e.y).then((n) => i(n)), this.duplicateFrames = async (t) => (await a(this, l)).duplicateFrames(t).then((r) => i(r)), this.updateImageSource = async (t, e) => {
1203
+ this.getAll = async () => (await a(this, l)).getFrames().then((e) => i(e)), this.getSelected = async () => (await a(this, l)).getSelectedFrames().then((e) => i(e)), this.getAllByPageId = async (t) => (await a(this, l)).getFramesByPageId(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, l)).getFrameByName(t).then((r) => i(r)), this.getById = async (t) => (await a(this, l)).getFrameById(t).then((r) => i(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, l)).getFramePropertiesOnSelectedLayout().then((e) => i(e)), this.getLayoutProperties = async (t, e) => (await a(this, l)).getFramePropertiesByFrameId(t, e).then((n) => i(n)), this.getAllLayoutProperties = async (t) => (await a(this, l)).getFramesProperties(t).then((r) => i(r)), this.resetTransformation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetSize = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.select = async (t) => (await a(this, l)).selectFrames([t]).then((r) => i(r)), this.selectMultiple = async (t) => (await a(this, l)).selectFrames(t).then((r) => i(r)), this.deselectAll = async () => (await a(this, l)).deselectFrames().then((e) => i(e)), this.reorderFrames = async (t, e) => (await a(this, l)).reorderFrames(t, e).then((n) => i(n)), this.setZIndex = async (t, e) => (await a(this, l)).setFrameZIndex(t, e).then((n) => i(n)), this.setHeight = async (t, e) => (await a(this, l)).setFrameHeight(t, e).then((n) => i(n)), this.setRotation = async (t, e) => (await a(this, l)).setFrameRotation(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, l)).setFrameWidth(t, e).then((n) => i(n)), this.setX = async (t, e) => (await a(this, l)).setFrameX(t, e).then((n) => i(n)), this.setY = async (t, e) => (await a(this, l)).setFrameY(t, e).then((n) => i(n)), this.setOpacity = async (t, e) => (await a(this, l)).setFrameOpacity(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, l)).renameFrame(t, e).then((n) => i(n)), this.reset = async (t) => (await a(this, l)).resetFrame(t).then((r) => i(r)), this.resetX = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetY = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetRotation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetHeight = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetImageFrameFitMode = async (t) => (await a(this, l)).resetImageFrameFitMode(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.setIsVisible = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, l)).removeFrames([t]).then((r) => i(r)), this.removeFrames = async (t) => (await a(this, l)).removeFrames(t).then((r) => i(r)), this.create = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((h) => i(h)), this.createShapeFrame = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((h) => i(h)), this.createBarcodeFrame = async (t, e) => (await a(this, l)).addBarcodeFrame(t, e == null ? void 0 : e.x, e == null ? void 0 : e.y).then((n) => i(n)), this.duplicateFrames = async (t) => (await a(this, l)).duplicateFrames(t).then((r) => i(r)), this.updateImageSource = async (t, e) => {
1202
1204
  const r = await a(this, l), n = e !== null ? JSON.stringify(e) : null;
1203
1205
  return r.setImageSource(t, n).then((c) => i(c));
1204
1206
  }, this.removeImageSource = async (t) => this.updateImageSource(t, null), this.setImageFromConnector = async (t, e, r) => {
1205
1207
  const n = {
1206
1208
  id: e,
1207
1209
  assetId: r,
1208
- type: qt.connector
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: qt.url };
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 = Ss.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({
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 ae(a(this, l));
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
- class qe {
1314
- constructor() {
1315
- this.currentEngineVersion = us.current, this.currentSDKVersion = gs.version;
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
- var w, _t;
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,27 +1356,32 @@ class Ye {
1325
1356
  * @ignore
1326
1357
  */
1327
1358
  u(this, w);
1328
- u(this, _t);
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));
1332
- }, this.rename = async (t, e) => (await a(this, w)).renameLayout(t, e).then((n) => i(n)), this.select = async (t) => (await a(this, w)).selectLayout(t).then((r) => i(r)), 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, _t)).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) => {
1363
+ }, this.rename = async (t, e) => (await a(this, w)).renameLayout(t, e).then((n) => i(n)), this.select = async (t) => (await a(this, w)).selectLayoutWithOptions(t, null).then((r) => i(r)), this.selectWithPageSize = async (t, e) => {
1364
+ const r = await a(this, w), n = {
1365
+ pageSize: e
1366
+ };
1367
+ return r.selectLayoutWithOptions(t, JSON.stringify(n)).then((c) => i(c));
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) => {
1333
1369
  const n = r ? {
1334
- left: r === Q.left ? e : void 0,
1335
- top: r === Q.top ? e : void 0,
1336
- right: r === Q.right ? e : void 0,
1337
- bottom: r === Q.bottom ? e : void 0
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
1338
1374
  } : { left: e, top: e, right: e, bottom: e };
1339
1375
  return (await a(this, w)).updateLayoutBleed(t, JSON.stringify(n)).then((d) => i(d));
1340
1376
  }, this.setAreBleedValuesCombined = async (t, e) => {
1341
1377
  const r = { areBleedValuesCombined: e };
1342
1378
  return (await a(this, w)).updateLayoutBleed(t, JSON.stringify(r)).then((c) => i(c));
1343
- }, 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, _t, o);
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);
1344
1380
  }
1345
1381
  }
1346
- w = new WeakMap(), _t = new WeakMap();
1347
- var ie = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.mediumres = "mediumres", s.highres = "highres", s.original = "original", s))(ie || {}), bs = /* @__PURE__ */ ((s) => (s.web = "web", s.print = "print", s.animation = "animation", s))(bs || {}), q, Ht;
1348
- class Ze {
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 {
1349
1385
  /**
1350
1386
  * @ignore
1351
1387
  */
@@ -1353,27 +1389,27 @@ class Ze {
1353
1389
  /**
1354
1390
  * @ignore
1355
1391
  */
1356
- u(this, q);
1357
- u(this, Ht);
1358
- this.query = async (t, e, r = {}) => (await a(this, q)).mediaConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((c) => i(c)), this.detail = async (t, e, r = {}) => (await a(this, q)).mediaConnectorDetail(t, e, JSON.stringify(r)).then((c) => i(c)), this.download = async (t, e, r, n = {}) => {
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 = {}) => {
1359
1395
  const c = this.parseDeprecatedMediaDownloadType(
1360
1396
  r
1361
1397
  );
1362
- return (await a(this, Ht)).mediaConnectorDownload(
1398
+ return (await a(this, Tt)).mediaConnectorDownload(
1363
1399
  t,
1364
1400
  e,
1365
1401
  c,
1366
- bs.web,
1402
+ vs.web,
1367
1403
  JSON.stringify(n)
1368
1404
  ).then((h) => {
1369
1405
  if (h instanceof Uint8Array)
1370
1406
  return h;
1371
- throw typeof h == "object" && h !== null && "success" in h && !h.success && ws(h), new Error(`Unexpected response type: ${typeof h}.`);
1407
+ throw typeof h == "object" && h !== null && "success" in h && !h.success && fs(h), new Error(`Unexpected response type: ${typeof h}.`);
1372
1408
  });
1373
- }, this.getConfigurationOptions = async (t) => (await a(this, q)).mediaConnectorGetConfigurationOptions(t).then((r) => i(r)), this.getCapabilities = async (t) => (await a(this, q)).mediaConnectorGetCapabilities(t).then((r) => i(r)), this.parseDeprecatedMediaType = (t) => {
1374
- if (t === Vt.file) return Gt.file;
1375
- if (t === Vt.collection) return Gt.collection;
1376
- }, this.upload = async (t, e, r = {}) => (await a(this, q)).mediaConnectorUpload(t, JSON.stringify(e), JSON.stringify(r)).then((c) => i(c)), g(this, q, o), g(this, Ht, o);
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);
1377
1413
  }
1378
1414
  /**
1379
1415
  * This method will parse the deprecatedMediaDownloadType to the new media download type.
@@ -1383,18 +1419,18 @@ class Ze {
1383
1419
  */
1384
1420
  parseDeprecatedMediaDownloadType(o) {
1385
1421
  switch (o) {
1386
- case re.HighResolutionWeb:
1387
- return ie.highres;
1388
- case re.LowResolutionWeb:
1389
- return ie.thumbnail;
1422
+ case ne.HighResolutionWeb:
1423
+ return oe.highres;
1424
+ case ne.LowResolutionWeb:
1425
+ return oe.thumbnail;
1390
1426
  default:
1391
1427
  return o;
1392
1428
  }
1393
1429
  }
1394
1430
  }
1395
- q = new WeakMap(), Ht = new WeakMap();
1396
- var D, Tt, ls;
1397
- let Qe = (ls = class {
1431
+ Y = new WeakMap(), Tt = new WeakMap();
1432
+ var O, Kt, ds;
1433
+ let Xe = (ds = class {
1398
1434
  /**
1399
1435
  * @ignore
1400
1436
  */
@@ -1402,16 +1438,16 @@ let Qe = (ls = class {
1402
1438
  /**
1403
1439
  * @ignore
1404
1440
  */
1405
- u(this, D);
1441
+ u(this, O);
1406
1442
  /**
1407
1443
  * @ignore
1408
1444
  */
1409
- u(this, Tt);
1410
- this.add = async () => (await a(this, D)).addPage().then((e) => i(e)), this.remove = async (t) => (await a(this, D)).removePage(t).then((r) => i(r)), this.select = async (t) => (await a(this, D)).selectPage(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, D)).setPageIsVisible(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, D)).duplicatePage(t).then((r) => i(r)), this.getAll = async () => (await a(this, D)).getPages().then((e) => i(e)), this.getById = async (t) => (await a(this, D)).getPageById(t).then((r) => i(r)), this.getSnapshot = async (t, e) => (await a(this, Tt)).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, D)).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, D)).setPageHeight(e).then((n) => i(n))), this.setSize = async (t, e) => (await a(this, D)).setPageSize(t, e).then((n) => i(n)), this.move = async (t, e) => (await a(this, D)).reorderPages(t, e).then((n) => i(n)), g(this, D, o), g(this, Tt, o);
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);
1411
1447
  }
1412
- }, D = new WeakMap(), Tt = new WeakMap(), ls);
1413
- var J;
1414
- class Xe {
1448
+ }, O = new WeakMap(), Kt = new WeakMap(), ds);
1449
+ var G;
1450
+ class ts {
1415
1451
  /**
1416
1452
  * @ignore
1417
1453
  */
@@ -1419,24 +1455,24 @@ class Xe {
1419
1455
  /**
1420
1456
  * @ignore
1421
1457
  */
1422
- u(this, J);
1423
- this.getAll = async () => (await a(this, J)).getParagraphStyles().then((e) => i(e)), this.getById = async (t) => (await a(this, J)).getParagraphStyleById(t).then((r) => i(r)), this.create = async () => (await a(this, J)).createParagraphStyle().then((e) => i(e)), this.duplicate = async (t) => (await a(this, J)).duplicateParagraphStyle(t).then((r) => i(r)), this.update = async (t, e) => (await a(this, J)).updateParagraphStyle(t, JSON.stringify(e)).then((n) => i(n)), this.rename = async (t, e) => (await a(this, J)).renameParagraphStyle(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, J)).removeParagraphStyle(t).then((r) => i(r)), this.move = async (t, e) => (await a(this, J)).moveParagraphStyles(t, e).then((n) => i(n)), g(this, J, o);
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);
1424
1460
  }
1425
1461
  }
1426
- J = new WeakMap();
1427
- 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 || {}), Bt = /* @__PURE__ */ ((s) => (s.throw = "throw", s.log = "log", s))(Bt || {});
1428
- class Br {
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 {
1429
1465
  constructor(o, t, e, r) {
1430
1466
  this.type = "action", this.message = o, this.id = t, this.event = e, this.eventChain = r;
1431
1467
  }
1432
1468
  }
1433
- class Jr {
1469
+ class Ur {
1434
1470
  constructor(o, t, e) {
1435
1471
  this.type = "dataRow", this.count = o, this.message = t, this.exceptions = e;
1436
1472
  }
1437
1473
  }
1438
- var he = /* @__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))(he || {}), kr = /* @__PURE__ */ ((s) => (s.Monday = "monday", s.Tuesday = "tuesday", s.Wednesday = "wednesday", s.Thursday = "thursday", s.Friday = "friday", s.Saturday = "saturday", s.Sunday = "sunday", s))(kr || {}), Ur = /* @__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))(Ur || {}), xt = /* @__PURE__ */ ((s) => (s.visible = "visible", s.invisible = "invisible", s.conditional = "conditional", s))(xt || {}), _r = /* @__PURE__ */ ((s) => (s.boolean = "boolean", s.text = "text", s.number = "number", s))(_r || {}), Hr = /* @__PURE__ */ ((s) => (s.equals = "=", s.notEquals = "!=", s.greaterThan = ">", s.greaterThanOrEquals = ">=", s.lessThan = "<", s.lessThanOrEquals = "<=", s))(Hr || {});
1439
- let Tr = class {
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 {
1440
1476
  /**
1441
1477
  * @ignore
1442
1478
  */
@@ -1480,7 +1516,7 @@ let Tr = class {
1480
1516
  const n = JSON.parse(e).map(
1481
1517
  (c) => {
1482
1518
  var d;
1483
- return c.type === he.list ? {
1519
+ return c.type === le.list ? {
1484
1520
  ...c,
1485
1521
  items: c.items.map(
1486
1522
  (h) => h.value
@@ -1517,9 +1553,9 @@ let Tr = class {
1517
1553
  }, this.onConnectorEvent = (e) => {
1518
1554
  this.config.events.onConnectorEvent.trigger(JSON.parse(e));
1519
1555
  }, this.onConnectorsChanged = (e) => {
1520
- const n = new ce().makeMultipleConnectorsBackwardsCompatible(
1556
+ const n = new he().makeMultipleConnectorsBackwardsCompatible(
1521
1557
  JSON.parse(e),
1522
- this.localConfig.get(X.GraFxStudioEnvironmentApiUrl)
1558
+ this.localConfig.get(tt.GraFxStudioEnvironmentApiUrl)
1523
1559
  );
1524
1560
  this.config.events.onConnectorsChanged.trigger(n);
1525
1561
  }, this.onSelectedPageIdChanged = (e) => {
@@ -1537,14 +1573,14 @@ let Tr = class {
1537
1573
  }, this.onAsyncError = (e) => {
1538
1574
  const r = JSON.parse(e);
1539
1575
  if ((r == null ? void 0 : r.type) === "dataRow") {
1540
- const n = new Jr(
1576
+ const n = new Ur(
1541
1577
  r.count,
1542
1578
  r.message,
1543
1579
  r.exceptions
1544
1580
  );
1545
1581
  this.config.events.onAsyncError.trigger(n);
1546
1582
  } else if ((r == null ? void 0 : r.type) === "action") {
1547
- const n = new Br(
1583
+ const n = new kr(
1548
1584
  r.message,
1549
1585
  r.id,
1550
1586
  r.event,
@@ -1568,8 +1604,8 @@ let Tr = class {
1568
1604
  }, this.config = o, this.localConfig = t;
1569
1605
  }
1570
1606
  };
1571
- var Ct;
1572
- class ts {
1607
+ var mt;
1608
+ class es {
1573
1609
  /**
1574
1610
  * @ignore
1575
1611
  */
@@ -1577,13 +1613,13 @@ class ts {
1577
1613
  /**
1578
1614
  * @ignore
1579
1615
  */
1580
- u(this, Ct);
1581
- this.set = async (t) => (await a(this, Ct)).selectedTextStyleDeltaUpdate(JSON.stringify(t)).then((r) => i(r)), this.removeSelected = async () => (await a(this, Ct)).selectedTextStyleClean().then((e) => i(e)), this.getSelected = async () => (await a(this, Ct)).getSelectedTextStyle().then((e) => i(e)), g(this, Ct, o);
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);
1582
1618
  }
1583
1619
  }
1584
- Ct = new WeakMap();
1585
- var Kr = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(Kr || {}), $r = /* @__PURE__ */ ((s) => (s.LAYOUT_HEIGHT = "layoutHeight", s.LAYOUT_WIDTH = "layoutWidth", s.BLEED_TOP = "bleedTop", s.BLEED_BOTTOM = "bleedBottom", s.BLEED_LEFT = "bleedLeft", s.BLEED_RIGHT = "bleedRight", s.BLEED_VALUES_COMBINED = "areBleedValuesCombined", s))($r || {}), 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 || {}), zr = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s))(zr || {}), oe = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(oe || {}), At;
1586
- class es {
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 {
1587
1623
  /**
1588
1624
  * @ignore
1589
1625
  */
@@ -1591,13 +1627,13 @@ class es {
1591
1627
  /**
1592
1628
  * @ignore
1593
1629
  */
1594
- u(this, At);
1595
- this.setTool = async (t) => (await a(this, At)).setTool(t).then((r) => i(r)), this.getSelected = async () => (await a(this, At)).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, At, o);
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);
1596
1632
  }
1597
1633
  }
1598
- At = new WeakMap();
1599
- var Y, _, Kt;
1600
- class ss {
1634
+ Pt = new WeakMap();
1635
+ var Z, _, $t;
1636
+ class rs {
1601
1637
  /**
1602
1638
  * @ignore
1603
1639
  */
@@ -1605,16 +1641,16 @@ class ss {
1605
1641
  /**
1606
1642
  * @ignore
1607
1643
  */
1608
- u(this, Y);
1644
+ u(this, Z);
1609
1645
  u(this, _);
1610
- u(this, Kt);
1611
- this.undo = async () => (await a(this, Y)).undo().then((r) => i(r)), this.redo = async () => (await a(this, Y)).redo().then((r) => i(r)), this.addCustomData = async (e, r) => (await a(this, Y)).setCustomUndoData(e, r, !1).then((c) => i(c)), this.record = async (e, r) => {
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) => {
1612
1648
  try {
1613
- await a(this, _).beginIfNoneActive(e), await r(a(this, Kt)), await a(this, _).end();
1649
+ await a(this, _).beginIfNoneActive(e), await r(a(this, $t)), await a(this, _).end();
1614
1650
  } catch (n) {
1615
1651
  throw await a(this, _).abort(), n;
1616
1652
  }
1617
- }, this.pause = async () => (await a(this, Y)).pause().then((r) => i(r)), this.resume = async () => (await a(this, Y)).resume().then((r) => i(r)), this.advanced = {
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 = {
1618
1654
  /**
1619
1655
  * This will start a new undo operation.
1620
1656
  * This will throw an exception when there is already an undo operation recording.
@@ -1643,12 +1679,12 @@ class ss {
1643
1679
  * @returns
1644
1680
  */
1645
1681
  abort: async () => a(this, _).abort()
1646
- }, g(this, Y, o), g(this, Kt, t), g(this, _, new Wr(o));
1682
+ }, g(this, Z, o), g(this, $t, t), g(this, _, new qr(o));
1647
1683
  }
1648
1684
  }
1649
- Y = new WeakMap(), _ = new WeakMap(), Kt = new WeakMap();
1650
- var ot;
1651
- class Wr {
1685
+ Z = new WeakMap(), _ = new WeakMap(), $t = new WeakMap();
1686
+ var ct;
1687
+ class qr {
1652
1688
  /**
1653
1689
  * @ignore
1654
1690
  */
@@ -1656,17 +1692,17 @@ class Wr {
1656
1692
  /**
1657
1693
  * @ignore
1658
1694
  */
1659
- u(this, ot);
1660
- this.begin = async (t) => (await a(this, ot)).begin(t).then((r) => i(r)), this.beginIfNoneActive = async (t) => (await a(this, ot)).beginIfNoneActive(t).then((r) => i(r)), this.end = async () => (await a(this, ot)).end().then((e) => i(e)), this.abort = async () => (await a(this, ot)).abort().then((e) => i(e)), g(this, ot, o);
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);
1661
1697
  }
1662
1698
  }
1663
- ot = new WeakMap();
1664
- const jr = (s, o = 2) => {
1699
+ ct = new WeakMap();
1700
+ const Yr = (s, o = 2) => {
1665
1701
  const t = Math.pow(10, o);
1666
1702
  return Math.round(s * t) / t;
1667
1703
  };
1668
- var $t, Pt;
1669
- class rs {
1704
+ var zt, Ft;
1705
+ class ns {
1670
1706
  /**
1671
1707
  * @ignore
1672
1708
  */
@@ -1674,21 +1710,21 @@ class rs {
1674
1710
  /**
1675
1711
  * @ignore
1676
1712
  */
1677
- u(this, $t);
1678
- u(this, Pt);
1713
+ u(this, zt);
1714
+ u(this, Ft);
1679
1715
  this.round = (e, r) => i({
1680
- data: String(jr(e, r)),
1716
+ data: String(Yr(e, r)),
1681
1717
  success: !0,
1682
1718
  status: 200,
1683
1719
  parsedData: null
1684
1720
  }), this.createEnvironmentBaseURL = (e) => {
1685
- const { type: r = oe.SANDBOX, environment: n = "ft-nostress", version: c = "1" } = e, d = r == oe.SANDBOX ? "chili-publish-sandbox" : "chili-publish";
1721
+ const { type: r = ce.SANDBOX, environment: n = "ft-nostress", version: c = "1" } = e, d = r == ce.SANDBOX ? "chili-publish-sandbox" : "chili-publish";
1686
1722
  return `https://${n}.${d}.online/grafx/api/v${c}/environment/${n}`;
1687
1723
  }, this.stageFiles = async (e, r, n) => {
1688
- const c = a(this, Pt).get(X.GraFxStudioEnvironmentApiUrl);
1724
+ const c = a(this, Ft).get(tt.GraFxStudioEnvironmentApiUrl);
1689
1725
  if (!c)
1690
1726
  throw new Error("GraFx Studio Environment API URL is not set");
1691
- const d = `${c}connectors/${r}/stage`, h = a(this, Pt).get(X.GraFxStudioAuthToken);
1727
+ const d = `${c}connectors/${r}/stage`, h = a(this, Ft).get(tt.GraFxStudioAuthToken);
1692
1728
  if (!h)
1693
1729
  throw new Error("GraFx Studio Auth Token is not set");
1694
1730
  const p = new FormData();
@@ -1714,19 +1750,19 @@ class rs {
1714
1750
  });
1715
1751
  if (y.status === 422) {
1716
1752
  const S = await y.json();
1717
- throw new Ir(S.message, fs.minDimension);
1753
+ throw new Ir(S.message, Ss.minDimension);
1718
1754
  }
1719
1755
  if (!y.ok)
1720
1756
  throw new Error("Failed to stage files");
1721
1757
  return await y.json();
1722
- }, this.unitEvaluate = async (e, r) => (await a(this, $t)).unitEvaluate(e, r).then((c) => i(c)), g(this, $t, o), g(this, Pt, t);
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);
1723
1759
  }
1724
1760
  }
1725
- $t = new WeakMap(), Pt = new WeakMap();
1726
- var zt;
1727
- class qr {
1761
+ zt = new WeakMap(), Ft = new WeakMap();
1762
+ var Wt;
1763
+ class Zr {
1728
1764
  constructor(o) {
1729
- u(this, zt);
1765
+ u(this, Wt);
1730
1766
  this.setMinimum = async (t, e) => {
1731
1767
  const r = { minValue: { value: e } };
1732
1768
  return this.applyPropertiesUpdate(t, r);
@@ -1751,18 +1787,18 @@ class qr {
1751
1787
  }, this.setNumberOfDecimals = async (t, e) => {
1752
1788
  const r = { numberOfDecimals: { value: e } };
1753
1789
  return this.applyPropertiesUpdate(t, r);
1754
- }, g(this, zt, o);
1790
+ }, g(this, Wt, o);
1755
1791
  }
1756
1792
  async applyPropertiesUpdate(o, t) {
1757
- const r = await (await a(this, zt)).updateNumberVariableProperties(o, JSON.stringify(t));
1793
+ const r = await (await a(this, Wt)).updateNumberVariableProperties(o, JSON.stringify(t));
1758
1794
  return i(r);
1759
1795
  }
1760
1796
  }
1761
- zt = new WeakMap();
1762
- var Wt;
1763
- class Yr {
1797
+ Wt = new WeakMap();
1798
+ var jt;
1799
+ class Qr {
1764
1800
  constructor(o) {
1765
- u(this, Wt);
1801
+ u(this, jt);
1766
1802
  this.setDisplayFormat = async (t, e) => {
1767
1803
  const r = { displayFormat: { value: e } };
1768
1804
  return this.applyPropertiesUpdate(t, r);
@@ -1778,16 +1814,16 @@ class Yr {
1778
1814
  }, this.setExcludedDays = async (t, e) => {
1779
1815
  const r = { excludedDays: { value: e } };
1780
1816
  return this.applyPropertiesUpdate(t, r);
1781
- }, g(this, Wt, o);
1817
+ }, g(this, jt, o);
1782
1818
  }
1783
1819
  async applyPropertiesUpdate(o, t) {
1784
- const r = await (await a(this, Wt)).updateDateVariableProperties(o, JSON.stringify(t));
1820
+ const r = await (await a(this, jt)).updateDateVariableProperties(o, JSON.stringify(t));
1785
1821
  return i(r);
1786
1822
  }
1787
1823
  }
1788
- Wt = new WeakMap();
1789
- var m, Ft, Et, ds;
1790
- let ns = (ds = class {
1824
+ jt = new WeakMap();
1825
+ var m, Et, Ot, us;
1826
+ let as = (us = class {
1791
1827
  /**
1792
1828
  * @ignore
1793
1829
  */
@@ -1796,8 +1832,8 @@ let ns = (ds = class {
1796
1832
  * @ignore
1797
1833
  */
1798
1834
  u(this, m);
1799
- u(this, Ft);
1800
1835
  u(this, Et);
1836
+ u(this, Ot);
1801
1837
  this.getAll = async () => (await a(this, m)).getVariables().then((e) => i(e)).then((e) => {
1802
1838
  const r = e;
1803
1839
  return r.parsedData && (r.parsedData = this.makeVariablesBackwardsCompatible(r.parsedData)), r;
@@ -1807,17 +1843,17 @@ let ns = (ds = class {
1807
1843
  }), this.getByName = async (t) => (await a(this, m)).getVariableByName(t).then((r) => i(r)).then((r) => {
1808
1844
  const n = r;
1809
1845
  return n.parsedData && (n.parsedData = this.makeVariableBackwardsCompatible(n.parsedData)), n;
1810
- }), 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, Ft, async (t, e) => (await a(this, m)).setVariablePlaceholder(t, e).then((n) => i(n))), this.setPlaceholder = async (t, e) => a(this, Ft).call(this, t, e), this.resetPlaceholder = async (t) => a(this, Ft).call(this, t, null), g(this, Et, async (t, e) => (await a(this, m)).setVariableHelpText(t, e).then((n) => i(n))), this.setHelpText = async (t, e) => a(this, Et).call(this, t, e), this.resetHelpText = async (t) => a(this, Et).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(
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(
1811
1847
  t,
1812
1848
  e.map((n) => JSON.stringify({ value: n }))
1813
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) => {
1814
- const r = e ? { type: xt.visible } : { type: xt.invisible };
1850
+ const r = e ? { type: Rt.visible } : { type: Rt.invisible };
1815
1851
  return this.setVariableVisibility(t, r);
1816
1852
  }, this.setIsHidden = async (t, e) => {
1817
- const r = e ? { type: xt.invisible } : { type: xt.visible };
1853
+ const r = e ? { type: Rt.invisible } : { type: Rt.visible };
1818
1854
  return this.setVariableVisibility(t, r);
1819
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) => {
1820
- const r = await a(this, m), c = new ce().makeConnectorSourceForwardsCompatible(e);
1856
+ const r = await a(this, m), c = new he().makeConnectorSourceForwardsCompatible(e);
1821
1857
  return r.setImageVariableConnector(t, JSON.stringify(c)).then((d) => i(d));
1822
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) => {
1823
1859
  const r = { prefix: { value: e } };
@@ -1831,13 +1867,13 @@ let ns = (ds = class {
1831
1867
  }, this.setSuffixCharacterStyle = async (t, e) => {
1832
1868
  const r = { suffixCharacterStyleId: { value: e } };
1833
1869
  return this.applyPrefixSuffixDeltaUpdate(t, r);
1834
- }, 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 qr(a(this, m)), this.date = new Yr(a(this, m));
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));
1835
1871
  }
1836
1872
  makeVariablesBackwardsCompatible(o) {
1837
1873
  return o.map((t) => this.makeVariableBackwardsCompatible(t));
1838
1874
  }
1839
1875
  makeVariableBackwardsCompatible(o) {
1840
- return o.type !== he.list ? o : this.makeListVariableBackwardsCompatible(o);
1876
+ return o.type !== le.list ? o : this.makeListVariableBackwardsCompatible(o);
1841
1877
  }
1842
1878
  makeListVariableBackwardsCompatible(o) {
1843
1879
  const t = o, e = o.items, r = o.selected, n = e.map((c) => c.value);
@@ -1847,8 +1883,8 @@ let ns = (ds = class {
1847
1883
  const r = await (await a(this, m)).updateVariablePrefixSuffixProperties(o, JSON.stringify(t));
1848
1884
  return i(r);
1849
1885
  }
1850
- }, m = new WeakMap(), Ft = new WeakMap(), Et = new WeakMap(), ds);
1851
- class Zr {
1886
+ }, m = new WeakMap(), Et = new WeakMap(), Ot = new WeakMap(), us);
1887
+ class Xr {
1852
1888
  /**
1853
1889
  * @ignore
1854
1890
  */
@@ -1864,8 +1900,8 @@ class Zr {
1864
1900
  }, this.config = o;
1865
1901
  }
1866
1902
  }
1867
- var ct;
1868
- class Qr {
1903
+ var ht;
1904
+ class tn {
1869
1905
  /**
1870
1906
  * @ignore
1871
1907
  */
@@ -1873,24 +1909,24 @@ class Qr {
1873
1909
  /**
1874
1910
  * @ignore
1875
1911
  */
1876
- u(this, ct);
1877
- this.getAll = async () => (await a(this, ct)).getVariables().then((e) => i(e)), this.getById = async (t) => (await a(this, ct)).getVariableById(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, ct)).getVariableByName(t).then((r) => i(r)), this.setListVariable = async (t, e) => (await a(this, ct)).setListVariableItems(
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(
1878
1914
  t,
1879
1915
  e.map((n) => JSON.stringify(n))
1880
- ).then((n) => i(n)), g(this, ct, o), this.image = new Xr(o);
1916
+ ).then((n) => i(n)), g(this, ht, o), this.image = new en(o);
1881
1917
  }
1882
1918
  }
1883
- ct = new WeakMap();
1884
- var Z;
1885
- class Xr {
1919
+ ht = new WeakMap();
1920
+ var Q;
1921
+ class en {
1886
1922
  constructor(o) {
1887
- u(this, Z);
1888
- this.setAllowQuery = async (t, e) => (await a(this, Z)).setImageVariableAllowQuery(t, e).then((n) => i(n)), this.setAllowUpload = async (t, e) => (await a(this, Z)).setImageVariableAllowUpload(t, e).then((n) => i(n)), this.setMinUploadSize = async (t, e, r) => (await a(this, Z)).setImageVariableUploadMinSize(t, e, r).then((c) => i(c)), this.setConnector = async (t, e) => (await a(this, Z)).setImageVariableConnector(t, JSON.stringify(e)).then((n) => i(n)), this.setConnectorContext = async (t, e) => (await a(this, Z)).setImageVariableConnectorContext(t, JSON.stringify(e)).then((n) => i(n)), g(this, Z, o);
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);
1889
1925
  }
1890
1926
  }
1891
- Z = new WeakMap();
1892
- var mt;
1893
- class tn {
1927
+ Q = new WeakMap();
1928
+ var wt;
1929
+ class sn {
1894
1930
  /**
1895
1931
  * @ignore
1896
1932
  */
@@ -1898,13 +1934,13 @@ class tn {
1898
1934
  /**
1899
1935
  * @ignore
1900
1936
  */
1901
- u(this, mt);
1902
- this.register = async (t) => (await a(this, mt)).registerConnector(JSON.stringify(t)).then((r) => i(r)), this.getById = async (t) => (await a(this, mt)).getConnectorById(t).then((r) => i(r)), this.getAllByType = async (t) => (await a(this, mt)).getConnectors(t).then((r) => i(r)), g(this, mt, o);
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);
1903
1939
  }
1904
1940
  }
1905
- mt = new WeakMap();
1906
- var Dt, Yt;
1907
- class en {
1941
+ wt = new WeakMap();
1942
+ var Dt, Zt;
1943
+ class rn {
1908
1944
  /**
1909
1945
  * @ignore
1910
1946
  */
@@ -1916,22 +1952,22 @@ class en {
1916
1952
  /**
1917
1953
  * @ignore
1918
1954
  */
1919
- u(this, Yt);
1920
- 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, Yt, o);
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);
1921
1957
  }
1922
1958
  }
1923
- Dt = new WeakMap(), Yt = new WeakMap();
1924
- class as {
1959
+ Dt = new WeakMap(), Zt = new WeakMap();
1960
+ class is {
1925
1961
  /**
1926
1962
  * The next initiator is a split off on SDK level to tag next features
1927
1963
  * The SDK should be configured clientside and it exposes all controllers to work with in other applications
1928
1964
  * @param config The configuration object where the SDK and editor can get configured
1929
1965
  */
1930
1966
  constructor(o, t, e) {
1931
- this.config = o, this.connection = t, this.editorAPI = e, this.subscriber = new Zr(o), this.variable = new Qr(this.editorAPI), this.connector = new tn(this.editorAPI), this.page = new en(this.editorAPI), this.canvas = new se(this.editorAPI);
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);
1932
1968
  }
1933
1969
  }
1934
- class vs {
1970
+ class As {
1935
1971
  constructor(o) {
1936
1972
  this.logger = o;
1937
1973
  }
@@ -1947,13 +1983,13 @@ class vs {
1947
1983
  }
1948
1984
  handleError(o, t, e) {
1949
1985
  var r;
1950
- if (t === Bt.log)
1986
+ if (t === Gt.log)
1951
1987
  (r = this.logger) == null || r.call(this, x.error, Is.event, `Error in callback ${e}: ${o}`);
1952
1988
  else
1953
1989
  throw o;
1954
1990
  }
1955
1991
  }
1956
- class is extends vs {
1992
+ class os extends As {
1957
1993
  constructor(o, t) {
1958
1994
  super(t), this.handler = o;
1959
1995
  }
@@ -1966,10 +2002,10 @@ class is extends vs {
1966
2002
  trigger(...o) {
1967
2003
  const t = this.handler();
1968
2004
  if (t)
1969
- return this.createEventHandlerFn(t, Bt.throw)(...o);
2005
+ return this.createEventHandlerFn(t, Gt.throw)(...o);
1970
2006
  }
1971
2007
  }
1972
- class C extends vs {
2008
+ class C extends As {
1973
2009
  constructor(o, t) {
1974
2010
  super(t), this.legacyHandler = o, this.subscriptions = /* @__PURE__ */ new Set();
1975
2011
  }
@@ -1981,7 +2017,7 @@ class C extends vs {
1981
2017
  */
1982
2018
  trigger(...o) {
1983
2019
  const t = this.legacyHandler();
1984
- t && this.createEventHandlerFn(t, Bt.log)(...o);
2020
+ t && this.createEventHandlerFn(t, Gt.log)(...o);
1985
2021
  for (const e of this.subscriptions)
1986
2022
  e(...o);
1987
2023
  }
@@ -1995,14 +2031,14 @@ class C extends vs {
1995
2031
  * - "throw": Throws an error. Keep in mind that throwing of error in one of the callback will prevent calling of others
1996
2032
  * @returns A function to unsubscribe the callback, preventing it from being invoked in the future.
1997
2033
  */
1998
- registerCallback(o, t = Bt.log) {
2034
+ registerCallback(o, t = Gt.log) {
1999
2035
  const e = this.createEventHandlerFn(o, t);
2000
2036
  return this.subscriptions.add(e), () => {
2001
2037
  this.subscriptions.delete(e);
2002
2038
  };
2003
2039
  }
2004
2040
  }
2005
- class le {
2041
+ class de {
2006
2042
  /**
2007
2043
  * Creates a runtime configuration object from the provided configuration object.
2008
2044
  *
@@ -2010,27 +2046,27 @@ class le {
2010
2046
  * @returns The runtime configuration object.
2011
2047
  */
2012
2048
  static createRuntimeConfig(o) {
2013
- var e, r, n, c, d, h, p, y, I, S, b, A, v, f, M, E, P, z, W, wt, ft, de, ue, ge, ye, pe, Ce, me, we, fe, Se, be, Ie, ve, Ae;
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;
2014
2050
  const t = { ...o };
2015
2051
  return t.logging = {
2016
2052
  logLevel: ((e = o.logging) == null ? void 0 : e.logLevel) || x.error,
2017
- logger: ((r = o.logging) == null ? void 0 : r.logger) || ((Ot, Zt, Qt) => {
2018
- var Pe;
2019
- if (le.isLoggingEnabled(Ot, ((Pe = t.logging) == null ? void 0 : Pe.logLevel) ?? x.error))
2020
- switch (Ot) {
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) {
2021
2057
  case x.error:
2022
- console.error(`[${Zt}] [${Ot}] ${Qt}`);
2058
+ console.error(`[${Qt}] [${Nt}] ${Xt}`);
2023
2059
  break;
2024
2060
  case x.warn:
2025
- console.warn(`[${Zt}] [${Ot}] ${Qt}`);
2061
+ console.warn(`[${Qt}] [${Nt}] ${Xt}`);
2026
2062
  break;
2027
2063
  default:
2028
- console.log(`[${Zt}] [${Ot}] ${Qt}`);
2064
+ console.log(`[${Qt}] [${Nt}] ${Xt}`);
2029
2065
  }
2030
2066
  })
2031
2067
  }, t.handlers = {
2032
- onAuthExpired: new is(() => t.onAuthExpired, (n = t.logging) == null ? void 0 : n.logger),
2033
- onViewportRequested: new is(
2068
+ onAuthExpired: new os(() => t.onAuthExpired, (n = t.logging) == null ? void 0 : n.logger),
2069
+ onViewportRequested: new os(
2034
2070
  () => t.onViewportRequested,
2035
2071
  (c = t.logging) == null ? void 0 : c.logger
2036
2072
  )
@@ -2053,7 +2089,7 @@ class le {
2053
2089
  ),
2054
2090
  onFramesLayoutChanged: new C(
2055
2091
  () => t.onFramesLayoutChanged,
2056
- (I = t.logging) == null ? void 0 : I.logger
2092
+ (v = t.logging) == null ? void 0 : v.logger
2057
2093
  ),
2058
2094
  onSelectedFramesContentChanged: new C(
2059
2095
  () => t.onSelectedFramesContentChanged,
@@ -2069,7 +2105,7 @@ class le {
2069
2105
  ),
2070
2106
  onSelectedLayoutUnitChanged: new C(
2071
2107
  () => t.onSelectedLayoutUnitChanged,
2072
- (v = t.logging) == null ? void 0 : v.logger
2108
+ (I = t.logging) == null ? void 0 : I.logger
2073
2109
  ),
2074
2110
  onScrubberPositionChanged: new C(
2075
2111
  () => t.onScrubberPositionChanged,
@@ -2089,51 +2125,51 @@ class le {
2089
2125
  ),
2090
2126
  onUndoStackStateChanged: new C(
2091
2127
  () => t.onUndoStackStateChanged,
2092
- (z = t.logging) == null ? void 0 : z.logger
2128
+ (W = t.logging) == null ? void 0 : W.logger
2093
2129
  ),
2094
2130
  onSelectedLayoutFramesChanged: new C(
2095
2131
  () => t.onSelectedLayoutFramesChanged,
2096
- (W = t.logging) == null ? void 0 : W.logger
2132
+ (j = t.logging) == null ? void 0 : j.logger
2097
2133
  ),
2098
2134
  onSelectedTextStyleChanged: new C(
2099
2135
  () => t.onSelectedTextStyleChanged,
2100
- (wt = t.logging) == null ? void 0 : wt.logger
2136
+ (ft = t.logging) == null ? void 0 : ft.logger
2101
2137
  ),
2102
2138
  onColorsChanged: new C(
2103
2139
  () => t.onColorsChanged,
2104
- (ft = t.logging) == null ? void 0 : ft.logger
2140
+ (St = t.logging) == null ? void 0 : St.logger
2105
2141
  ),
2106
2142
  onParagraphStylesChanged: new C(
2107
2143
  () => t.onParagraphStylesChanged,
2108
- (de = t.logging) == null ? void 0 : de.logger
2144
+ (ue = t.logging) == null ? void 0 : ue.logger
2109
2145
  ),
2110
2146
  onCharacterStylesChanged: new C(
2111
2147
  () => t.onCharacterStylesChanged,
2112
- (ue = t.logging) == null ? void 0 : ue.logger
2148
+ (ge = t.logging) == null ? void 0 : ge.logger
2113
2149
  ),
2114
2150
  onFontFamiliesChanged: new C(
2115
2151
  () => t.onFontFamiliesChanged,
2116
- (ge = t.logging) == null ? void 0 : ge.logger
2152
+ (ye = t.logging) == null ? void 0 : ye.logger
2117
2153
  ),
2118
2154
  onSelectedLayoutIdChanged: new C(
2119
2155
  () => t.onSelectedLayoutIdChanged,
2120
- (ye = t.logging) == null ? void 0 : ye.logger
2156
+ (pe = t.logging) == null ? void 0 : pe.logger
2121
2157
  ),
2122
2158
  onLayoutsChanged: new C(
2123
2159
  () => t.onLayoutsChanged,
2124
- (pe = t.logging) == null ? void 0 : pe.logger
2160
+ (Ce = t.logging) == null ? void 0 : Ce.logger
2125
2161
  ),
2126
2162
  onConnectorEvent: new C(
2127
2163
  () => t.onConnectorEvent,
2128
- (Ce = t.logging) == null ? void 0 : Ce.logger
2164
+ (me = t.logging) == null ? void 0 : me.logger
2129
2165
  ),
2130
2166
  onConnectorsChanged: new C(
2131
2167
  () => t.onConnectorsChanged,
2132
- (me = t.logging) == null ? void 0 : me.logger
2168
+ (we = t.logging) == null ? void 0 : we.logger
2133
2169
  ),
2134
2170
  onZoomChanged: new C(
2135
2171
  () => t.onZoomChanged,
2136
- (we = t.logging) == null ? void 0 : we.logger
2172
+ (fe = t.logging) == null ? void 0 : fe.logger
2137
2173
  ),
2138
2174
  onSelectedPageIdChanged: new C(
2139
2175
  () => t.onSelectedPageIdChanged,
@@ -2149,15 +2185,15 @@ class le {
2149
2185
  ),
2150
2186
  onPageSizeChanged: new C(
2151
2187
  () => t.onPageSizeChanged,
2152
- (fe = t.logging) == null ? void 0 : fe.logger
2188
+ (Se = t.logging) == null ? void 0 : Se.logger
2153
2189
  ),
2154
2190
  onShapeCornerRadiusChanged: new C(
2155
2191
  () => t.onShapeCornerRadiusChanged,
2156
- (Se = t.logging) == null ? void 0 : Se.logger
2192
+ (be = t.logging) == null ? void 0 : be.logger
2157
2193
  ),
2158
2194
  onCropActiveFrameIdChanged: new C(
2159
2195
  () => t.onCropActiveFrameIdChanged,
2160
- (be = t.logging) == null ? void 0 : be.logger
2196
+ (ve = t.logging) == null ? void 0 : ve.logger
2161
2197
  ),
2162
2198
  onAsyncError: new C(
2163
2199
  () => t.onAsyncError,
@@ -2165,9 +2201,9 @@ class le {
2165
2201
  ),
2166
2202
  onViewModeChanged: new C(
2167
2203
  () => t.onViewModeChanged,
2168
- (ve = t.logging) == null ? void 0 : ve.logger
2204
+ (Ae = t.logging) == null ? void 0 : Ae.logger
2169
2205
  ),
2170
- onBarcodeValidationChanged: new C(() => t.onBarcodeValidationChanged, (Ae = t.logging) == null ? void 0 : Ae.logger),
2206
+ onBarcodeValidationChanged: new C(() => t.onBarcodeValidationChanged, (Pe = t.logging) == null ? void 0 : Pe.logger),
2171
2207
  onDataSourceIdChanged: new C(
2172
2208
  () => t.onDataSourceIdChanged,
2173
2209
  t.logging.logger
@@ -2194,7 +2230,7 @@ class le {
2194
2230
  return t == x.info || t == x.warn && (o == x.warn || o == x.error) ? !0 : t == x.error && o == x.error;
2195
2231
  }
2196
2232
  }
2197
- class sn {
2233
+ class nn {
2198
2234
  /**
2199
2235
  * Checks if the given value is a `DatePropertyWrapper`.
2200
2236
  *
@@ -2244,8 +2280,8 @@ class sn {
2244
2280
  }), t;
2245
2281
  }
2246
2282
  }
2247
- var ht;
2248
- class rn {
2283
+ var lt;
2284
+ class an {
2249
2285
  /**
2250
2286
  * @ignore
2251
2287
  */
@@ -2253,8 +2289,8 @@ class rn {
2253
2289
  /**
2254
2290
  * @ignore
2255
2291
  */
2256
- u(this, ht);
2257
- g(this, ht, o);
2292
+ u(this, lt);
2293
+ g(this, lt, o);
2258
2294
  }
2259
2295
  /**
2260
2296
  * This method returns the value for a given configuration key. If a value was not found in the configuration store
@@ -2262,7 +2298,7 @@ class rn {
2262
2298
  * @returns value for a given configuration key
2263
2299
  */
2264
2300
  async getValue(o) {
2265
- return (await a(this, ht)).getConfigValue(o).then((e) => i(e));
2301
+ return (await a(this, lt)).getConfigValue(o).then((e) => i(e));
2266
2302
  }
2267
2303
  /**
2268
2304
  * This method sets, or overrides the value for a given key. Null values are not allowed for both key and value,
@@ -2270,26 +2306,26 @@ class rn {
2270
2306
  * @returns
2271
2307
  */
2272
2308
  async setValue(o, t) {
2273
- return (await a(this, ht)).setConfigValue(o, t).then((r) => i(r));
2309
+ return (await a(this, lt)).setConfigValue(o, t).then((r) => i(r));
2274
2310
  }
2275
2311
  /**
2276
2312
  * This method updates the studio options. Only defined options are updated, null values are ignored.
2277
2313
  * @returns
2278
2314
  */
2279
2315
  async updateStudioOptions(o) {
2280
- return (await a(this, ht)).updateStudioOptions(JSON.stringify(o)).then((e) => i(e));
2316
+ return (await a(this, lt)).updateStudioOptions(JSON.stringify(o)).then((e) => i(e));
2281
2317
  }
2282
2318
  /**
2283
2319
  * This method returns the engine session id. This id is unique for this engine session
2284
2320
  * @returns the engine session id
2285
2321
  */
2286
2322
  async getEngineSessionId() {
2287
- return (await a(this, ht)).getEngineSessionId().then((t) => i(t));
2323
+ return (await a(this, lt)).getEngineSessionId().then((t) => i(t));
2288
2324
  }
2289
2325
  }
2290
- ht = new WeakMap();
2326
+ lt = new WeakMap();
2291
2327
  var Lt;
2292
- class os extends rn {
2328
+ class cs extends an {
2293
2329
  /**
2294
2330
  * @ignore
2295
2331
  */
@@ -2331,7 +2367,7 @@ class os extends rn {
2331
2367
  }
2332
2368
  Lt = new WeakMap();
2333
2369
  var k;
2334
- class cs {
2370
+ class hs {
2335
2371
  /**
2336
2372
  * @ignore
2337
2373
  */
@@ -2347,18 +2383,18 @@ class cs {
2347
2383
  }
2348
2384
  }
2349
2385
  k = new WeakMap();
2350
- const nn = "studio-cdn.chiligrafx.com", an = `https://${nn}/editor/${us.current}/web`;
2351
- let tt;
2352
- class kn {
2386
+ const on = "studio-cdn.chiligrafx.com", cn = `https://${on}/editor/${gs.current}/web`;
2387
+ let et;
2388
+ class Tn {
2353
2389
  /**
2354
2390
  * The SDK should be configured clientside and it exposes all controllers to work with in other applications
2355
2391
  * @param config The configuration object where the SDK and editor can get configured
2356
2392
  */
2357
2393
  constructor(o) {
2358
- this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new sn(), this.loadEditor = () => {
2394
+ this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new nn(), this.loadEditor = () => {
2359
2395
  var t;
2360
- Zs(
2361
- this.config.editorLink || an,
2396
+ Qs(
2397
+ this.config.editorLink || cn,
2362
2398
  {
2363
2399
  onActionsChanged: this.subscriber.onActionsChanged,
2364
2400
  onStateChanged: this.subscriber.onStateChanged,
@@ -2414,114 +2450,116 @@ class kn {
2414
2450
  this.setConnection,
2415
2451
  this.config.editorId,
2416
2452
  this.config.studioStyling
2417
- ), this.editorAPI = tt == null ? void 0 : tt.promise.then((e) => e), this.action = new Le(this.editorAPI), this.layout = new Ye(this.editorAPI), this.frame = new je(this.editorAPI), this.barcode = new Ne(this.editorAPI), this.animation = new Oe(this.editorAPI), this.document = new Ke(this.editorAPI), this.configuration = new os(this.editorAPI, this.localConfig), this.utils = new rs(this.editorAPI, this.localConfig), this.tool = new es(this.editorAPI), this.page = new Qe(this.editorAPI), this.debug = new Te(this.editorAPI), this.undoManager = new ss(this.editorAPI, this), this.textSelection = new ts(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.gradientStyle = new cs(this.editorAPI), this.paragraphStyle = new Xe(this.editorAPI), this.characterStyle = new Ge(this.editorAPI), this.mediaConnector = new Ze(this.editorAPI), this.fontConnector = new ze(this.editorAPI), this.dataConnector = new _e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new He(this.editorAPI, this.dataItemMappingTools), this.connector = new Ue(this.editorAPI, this.localConfig), this.variable = new ns(this.editorAPI), this.font = new We(this.editorAPI), this.experiment = new $e(this.editorAPI), this.canvas = new se(this.editorAPI), this.shape = new ae(this.editorAPI), this.colorConversion = new Je(this.editorAPI), this.info = new qe(), this.clipboard = new Be(this.editorAPI), this.brandKit = new Ve(this.editorAPI, this), this.next = new as(this.config, this.connection, this.editorAPI), this.configuration.setValue(X.GraFxStudioSdkVersion, gs.version), this.configuration.setValue(
2418
- X.GraFxStudioDocumentType,
2419
- this.config.documentType || ms.template
2420
- ), this.configuration.updateStudioOptions(this.config.studioOptions || Qs), this.configuration.setValue(
2421
- X.QueryCallCacheEnabled,
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,
2422
2458
  ((t = this.config.enableQueryCallCache) == null ? void 0 : t.toString()) || "false"
2423
2459
  );
2424
2460
  }, this.setConnection = (t) => {
2425
- tt = t;
2426
- }, this.config = le.createRuntimeConfig(o), this.connection = tt, this.editorAPI = tt == null ? void 0 : tt.promise.then((t) => t), this.action = new Le(this.editorAPI), this.layout = new Ye(this.editorAPI), this.frame = new je(this.editorAPI), this.shape = new ae(this.editorAPI), this.barcode = new Ne(this.editorAPI), this.undoManager = new ss(this.editorAPI, this), this.connector = new Ue(this.editorAPI, this.localConfig), this.mediaConnector = new Ze(this.editorAPI), this.fontConnector = new ze(this.editorAPI), this.dataConnector = new _e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new He(this.editorAPI, this.dataItemMappingTools), this.animation = new Oe(this.editorAPI), this.document = new Ke(this.editorAPI), this.configuration = new os(this.editorAPI, this.localConfig), this.variable = new ns(this.editorAPI), this.utils = new rs(this.editorAPI, this.localConfig), this.subscriber = new Tr(this.config, this.localConfig), this.tool = new es(this.editorAPI), this.page = new Qe(this.editorAPI), this.debug = new Te(this.editorAPI), this.textSelection = new ts(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.gradientStyle = new cs(this.editorAPI), this.paragraphStyle = new Xe(this.editorAPI), this.characterStyle = new Ge(this.editorAPI), this.font = new We(this.editorAPI), this.experiment = new $e(this.editorAPI), this.canvas = new se(this.editorAPI), this.colorConversion = new Je(this.editorAPI), this.info = new qe(), this.clipboard = new Be(this.editorAPI), this.next = new as(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new Ve(this.editorAPI, this);
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);
2427
2463
  }
2428
2464
  }
2429
- var on = /* @__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))(on || {}), cn = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(cn || {}), hn = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(hn || {}), ln = /* @__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))(ln || {}), dn = /* @__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))(dn || {}), un = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(un || {}), gn = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(gn || {}), yn = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(yn || {}), pn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(pn || {}), Cn = /* @__PURE__ */ ((s) => (s.BOLD = "Bold", s.ITALIC = "Italic", s.REGULAR = "Regular", s))(Cn || {}), mn = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(mn || {}), wn = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(wn || {}), fn = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(fn || {}), Sn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(Sn || {}), bn = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(bn || {}), In = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(In || {}), vn = /* @__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))(vn || {}), An = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(An || {}), Pn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Pn || {}), Fn = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(Fn || {}), En = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(En || {}), As = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(As || {});
2430
- const Un = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
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({
2431
2467
  __proto__: null,
2432
- ConnectorRegistrationSource: As
2468
+ ConnectorRegistrationSource: Ps
2433
2469
  }, Symbol.toStringTag, { value: "Module" }));
2434
2470
  export {
2435
- Br as ActionAsyncError,
2436
- An as ActionEditorEvent,
2437
- mn as Alignment,
2438
- Gr as AnchorTargetEdgeType,
2439
- Vr as AnchorTargetType,
2440
- Sr as AuthCredentialsTypeEnum,
2441
- br as AuthRefreshTypeEnum,
2442
- Ar as AutoGrowDirection,
2443
- St as BarcodeCharacterSet,
2444
- Nt as BarcodeErrorCorrectionLevel,
2445
- Fr as BarcodeSourceTypeEnum,
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,
2446
2482
  T as BarcodeType,
2447
- sr as BarcodeValidationResult,
2448
- dn as BasicAnimationsEmphasisStyles,
2449
- Or as BlendMode,
2450
- fn as Case,
2451
- j as ColorType,
2452
- te as ColorUsageType,
2453
- Cr as ConnectorConfigContextType,
2454
- pr as ConnectorConfigValueType,
2455
- fr as ConnectorEventType,
2456
- er as ConnectorHttpError,
2457
- Ln as ConnectorMapping,
2458
- wr as ConnectorMappingDirection,
2459
- mr as ConnectorMappingSource,
2460
- Mt as ConnectorRegistrationSource,
2461
- ne as ConnectorStateType,
2462
- ur as ConnectorType,
2463
- ir as ConstraintMode,
2464
- Fn as CornerRadiusType,
2465
- Ss as CropType,
2466
- Jr as DataRowAsyncError,
2467
- kr as Day,
2468
- re as DeprecatedMediaConnectorDownloadType,
2469
- Vt as DeprecatedMediaType,
2470
- Xs as DocumentIssueTypeEnum,
2471
- ms as DocumentType,
2472
- zr as DownloadFormats,
2473
- hn as EaseTypes,
2474
- En as EngineEditModeType,
2475
- oe as EnvironmentType,
2476
- Nr as FitMode,
2477
- Mr as FitModePosition,
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,
2478
2514
  Dr as FlowDirection,
2479
- pn as FontPreviewFormat,
2480
- Cn as FontWeights,
2481
- Vn as FrameAnchorTarget,
2482
- Rr as FrameAnchorType,
2483
- Kr as FramePropertyNames,
2484
- Pr as FrameTypeEnum,
2485
- gn as GradientType,
2486
- yn as GradientUsageType,
2487
- Nn as GrafxTokenAuthCredentials,
2488
- qt as ImageSourceTypeEnum,
2489
- ar as LayoutIntent,
2490
- $r as LayoutPropertyNames,
2491
- rr as LayoutType,
2492
- Ur as Locale,
2493
- bn as MarkedListType,
2494
- nr as MeasurementUnit,
2495
- bs as MediaDownloadIntent,
2496
- ie as MediaDownloadType,
2497
- Gt as MediaType,
2498
- Un as Next,
2499
- Rn as PageAnchorTarget,
2500
- Q as PositionEnum,
2501
- Mn as RefreshedAuthCredendentials,
2502
- Sn as Scripting,
2503
- In as SelectedTextStyleSections,
2504
- vn as SelectedTextStyles,
2505
- cn as ShakeDirections,
2506
- Pn as ShapeType,
2507
- on as SlideDirections,
2508
- gr as SortBy,
2509
- yr as SortOrder,
2510
- Er as TextDirection,
2511
- wn as TextPosition,
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,
2512
2550
  K as ToolType,
2513
- ln as TweenTypes,
2514
- xr as UpdateZIndexMethod,
2551
+ un as TweenTypes,
2552
+ Rr as UpdateZIndexMethod,
2515
2553
  Ir as UploadAssetValidationError,
2516
- fs as UploadAssetValidationErrorType,
2517
- he as VariableType,
2518
- Hr as VariableVisibilityOperator,
2519
- _r as VariableVisibilityTargetType,
2520
- xt as VariableVisibilityType,
2554
+ Ss as UploadAssetValidationErrorType,
2555
+ le as VariableType,
2556
+ Kr as VariableVisibilityOperator,
2557
+ Tr as VariableVisibilityTargetType,
2558
+ Rt as VariableVisibilityType,
2521
2559
  Lr as VerticalAlign,
2522
- un as ViewMode,
2523
- X as WellKnownConfigurationKeys,
2524
- kn as default,
2525
- On as grafxMediaConnectorRegistration
2560
+ yn as ViewMode,
2561
+ tt as WellKnownConfigurationKeys,
2562
+ Tn as default,
2563
+ Rn as grafxMediaConnectorRegistration
2526
2564
  };
2527
2565
  //# sourceMappingURL=main.es.js.map