@chili-publish/studio-sdk 1.41.0 → 1.43.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 (36) hide show
  1. package/_bundles/main.es.js +453 -426
  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/ActionController.d.ts +7 -0
  8. package/lib/src/controllers/ActionController.js +10 -0
  9. package/lib/src/controllers/ActionController.js.map +1 -1
  10. package/lib/src/controllers/ComponentController.d.ts +3 -2
  11. package/lib/src/controllers/ComponentController.js +4 -3
  12. package/lib/src/controllers/ComponentController.js.map +1 -1
  13. package/lib/src/controllers/VariableController.d.ts +10 -2
  14. package/lib/src/controllers/VariableController.js +47 -2
  15. package/lib/src/controllers/VariableController.js.map +1 -1
  16. package/lib/src/tests/__mocks__/Brandkit.js +10 -0
  17. package/lib/src/tests/__mocks__/Brandkit.js.map +1 -1
  18. package/lib/src/tests/controllers/ActionController.test.js +6 -0
  19. package/lib/src/tests/controllers/ActionController.test.js.map +1 -1
  20. package/lib/src/tests/controllers/VariableController.test.js +44 -1
  21. package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
  22. package/lib/src/types/CharacterStyleTypes.d.ts +10 -2
  23. package/lib/src/types/ConnectorTypes.d.ts +1 -1
  24. package/lib/src/types/FrameTypes.d.ts +6 -1
  25. package/lib/src/types/FrameTypes.js.map +1 -1
  26. package/lib/src/types/ParagraphStyleTypes.d.ts +8 -0
  27. package/lib/src/types/ParagraphStyleTypes.js.map +1 -1
  28. package/lib/src/types/ShapeTypes.d.ts +11 -5
  29. package/lib/src/types/ShapeTypes.js.map +1 -1
  30. package/lib/src/types/TextStyleTypes.d.ts +6 -0
  31. package/lib/src/types/TextStyleTypes.js +2 -0
  32. package/lib/src/types/TextStyleTypes.js.map +1 -1
  33. package/lib/src/utils/VariableHelper.d.ts +4 -0
  34. package/lib/src/utils/VariableHelper.js +12 -0
  35. package/lib/src/utils/VariableHelper.js.map +1 -0
  36. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
- var xe = (s) => {
1
+ var Re = (s) => {
2
2
  throw TypeError(s);
3
3
  };
4
- var Me = (s, o, e) => o.has(s) || xe("Cannot " + e);
5
- var a = (s, o, e) => (Me(s, o, "read from private field"), e ? e.call(s) : o.get(s)), u = (s, o, e) => o.has(s) ? xe("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(s) : o.set(s, e), g = (s, o, e, t) => (Me(s, o, "write to private field"), t ? t.call(s, e) : o.set(s, e), e);
6
- const Ls = "2.24.latest", ms = {
7
- current: Ls
8
- }, Ns = "1.41.0", fs = {
9
- version: Ns
4
+ var xe = (s, o, e) => o.has(s) || Re("Cannot " + e);
5
+ var a = (s, o, e) => (xe(s, o, "read from private field"), e ? e.call(s) : o.get(s)), u = (s, o, e) => o.has(s) ? Re("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(s) : o.set(s, e), g = (s, o, e, t) => (xe(s, o, "write to private field"), t ? t.call(s, e) : o.set(s, e), e);
6
+ const Ns = "2.26.latest", ms = {
7
+ current: Ns
8
+ }, Rs = "1.43.0", fs = {
9
+ version: Rs
10
10
  };
11
11
  var j;
12
12
  (function(s) {
@@ -16,14 +16,14 @@ var lt;
16
16
  (function(s) {
17
17
  s.Fulfilled = "fulfilled", s.Rejected = "rejected";
18
18
  })(lt || (lt = {}));
19
- var kt;
19
+ var Gt;
20
20
  (function(s) {
21
21
  s.ConnectionDestroyed = "ConnectionDestroyed", s.ConnectionTimeout = "ConnectionTimeout", s.NoIframeSrc = "NoIframeSrc";
22
- })(kt || (kt = {}));
23
- var oe;
22
+ })(Gt || (Gt = {}));
23
+ var ce;
24
24
  (function(s) {
25
25
  s.DataCloneError = "DataCloneError";
26
- })(oe || (oe = {}));
26
+ })(ce || (ce = {}));
27
27
  var dt;
28
28
  (function(s) {
29
29
  s.Message = "message";
@@ -43,25 +43,25 @@ const xs = (s, o) => {
43
43
  };
44
44
  }, Ms = (s) => (...o) => {
45
45
  s && console.log("[Penpal]", ...o);
46
- }, Rs = {
46
+ }, Vs = {
47
47
  "http:": "80",
48
48
  "https:": "443"
49
- }, Vs = /^(https?:)?\/\/([^/:]+)?(:(\d+))?/, Js = ["file:", "data:"], Bs = (s) => {
49
+ }, Bs = /^(https?:)?\/\/([^/:]+)?(:(\d+))?/, Js = ["file:", "data:"], Us = (s) => {
50
50
  if (s && Js.find((h) => s.startsWith(h)))
51
51
  return "null";
52
- const o = document.location, e = Vs.exec(s);
52
+ const o = document.location, e = Bs.exec(s);
53
53
  let t, r, n;
54
54
  e ? (t = e[1] ? e[1] : o.protocol, r = e[2], n = e[4]) : (t = o.protocol, r = o.hostname, n = o.port);
55
- const c = n && n !== Rs[t] ? `:${n}` : "";
55
+ const c = n && n !== Vs[t] ? `:${n}` : "";
56
56
  return `${t}//${r}${c}`;
57
- }, Re = ({ name: s, message: o, stack: e }) => ({
57
+ }, Me = ({ name: s, message: o, stack: e }) => ({
58
58
  name: s,
59
59
  message: o,
60
60
  stack: e
61
- }), Us = (s) => {
61
+ }), ks = (s) => {
62
62
  const o = new Error();
63
63
  return Object.keys(s).forEach((e) => o[e] = s[e]), o;
64
- }, ks = (s, o, e) => {
64
+ }, Gs = (s, o, e) => {
65
65
  const { localName: t, local: r, remote: n, originForSending: c, originForReceiving: h } = s;
66
66
  let l = !1;
67
67
  const p = (y) => {
@@ -78,22 +78,22 @@ const xs = (s, o) => {
78
78
  e(`${t}: Unable to send ${S}() reply due to destroyed connection`);
79
79
  return;
80
80
  }
81
- const M = {
81
+ const x = {
82
82
  penpal: j.Reply,
83
83
  id: E,
84
84
  resolution: f,
85
85
  returnValue: H
86
86
  };
87
- f === lt.Rejected && H instanceof Error && (M.returnValue = Re(H), M.returnValueIsError = !0);
87
+ f === lt.Rejected && H instanceof Error && (x.returnValue = Me(H), x.returnValueIsError = !0);
88
88
  try {
89
- n.postMessage(M, c);
89
+ n.postMessage(x, c);
90
90
  } catch (I) {
91
- if (I.name === oe.DataCloneError) {
91
+ if (I.name === ce.DataCloneError) {
92
92
  const W = {
93
93
  penpal: j.Reply,
94
94
  id: E,
95
95
  resolution: lt.Rejected,
96
- returnValue: Re(I),
96
+ returnValue: Me(I),
97
97
  returnValueIsError: !0
98
98
  };
99
99
  n.postMessage(W, c);
@@ -107,25 +107,25 @@ const xs = (s, o) => {
107
107
  l = !0, r.removeEventListener(dt.Message, p);
108
108
  };
109
109
  };
110
- let Gs = 0;
111
- const Ts = () => ++Gs, Ss = ".", bs = (s) => s ? s.split(Ss) : [], _s = (s) => s.join(Ss), Hs = (s, o) => {
110
+ let Ts = 0;
111
+ const _s = () => ++Ts, Ss = ".", bs = (s) => s ? s.split(Ss) : [], Hs = (s) => s.join(Ss), $s = (s, o) => {
112
112
  const e = bs(o || "");
113
- return e.push(s), _s(e);
114
- }, $s = (s, o, e) => {
113
+ return e.push(s), Hs(e);
114
+ }, zs = (s, o, e) => {
115
115
  const t = bs(o);
116
116
  return t.reduce((r, n, c) => (typeof r[n] > "u" && (r[n] = {}), c === t.length - 1 && (r[n] = e), r[n]), s), s;
117
117
  }, vs = (s, o) => {
118
118
  const e = {};
119
119
  return Object.keys(s).forEach((t) => {
120
- const r = s[t], n = Hs(t, o);
120
+ const r = s[t], n = $s(t, o);
121
121
  typeof r == "object" && Object.assign(e, vs(r, n)), typeof r == "function" && (e[n] = r);
122
122
  }), e;
123
- }, zs = (s) => {
123
+ }, Ks = (s) => {
124
124
  const o = {};
125
125
  for (const e in s)
126
- $s(o, e, s[e]);
126
+ zs(o, e, s[e]);
127
127
  return o;
128
- }, Ks = (s, o, e, t, r) => {
128
+ }, js = (s, o, e, t, r) => {
129
129
  const { localName: n, local: c, remote: h, originForSending: l, originForReceiving: p } = o;
130
130
  let y = !1;
131
131
  r(`${n}: Connecting call sender`);
@@ -139,35 +139,35 @@ const Ts = () => ++Gs, Ss = ".", bs = (s) => s ? s.split(Ss) : [], _s = (s) => s
139
139
  }
140
140
  if (O && t(), y) {
141
141
  const f = new Error(`Unable to send ${v}() call due to destroyed connection`);
142
- throw f.code = kt.ConnectionDestroyed, f;
142
+ throw f.code = Gt.ConnectionDestroyed, f;
143
143
  }
144
144
  return new Promise((f, H) => {
145
- const M = Ts(), I = (q) => {
146
- if (q.source !== h || q.data.penpal !== j.Reply || q.data.id !== M)
145
+ const x = _s(), I = (q) => {
146
+ if (q.source !== h || q.data.penpal !== j.Reply || q.data.id !== x)
147
147
  return;
148
148
  if (q.origin !== p) {
149
149
  r(`${n} received message from origin ${q.origin} which did not match expected origin ${p}`);
150
150
  return;
151
151
  }
152
- const St = q.data;
152
+ const bt = q.data;
153
153
  r(`${n}: Received ${v}() reply`), c.removeEventListener(dt.Message, I);
154
- let bt = St.returnValue;
155
- St.returnValueIsError && (bt = Us(bt)), (St.resolution === lt.Fulfilled ? f : H)(bt);
154
+ let vt = bt.returnValue;
155
+ bt.returnValueIsError && (vt = ks(vt)), (bt.resolution === lt.Fulfilled ? f : H)(vt);
156
156
  };
157
157
  c.addEventListener(dt.Message, I);
158
158
  const W = {
159
159
  penpal: j.Call,
160
- id: M,
160
+ id: x,
161
161
  methodName: v,
162
162
  args: E
163
163
  };
164
164
  h.postMessage(W, l);
165
165
  });
166
166
  }, S = e.reduce((v, E) => (v[E] = b(E), v), {});
167
- return Object.assign(s, zs(S)), () => {
167
+ return Object.assign(s, Ks(S)), () => {
168
168
  y = !0;
169
169
  };
170
- }, js = (s, o, e, t, r) => {
170
+ }, Ws = (s, o, e, t, r) => {
171
171
  const { destroy: n, onDestroy: c } = t;
172
172
  let h, l;
173
173
  const p = {};
@@ -184,13 +184,13 @@ const Ts = () => ++Gs, Ss = ".", bs = (s) => s ? s.split(Ss) : [], _s = (s) => s
184
184
  originForSending: e,
185
185
  originForReceiving: o
186
186
  };
187
- h && h(), h = ks(b, s, r), c(h), l && l.forEach((v) => {
187
+ h && h(), h = Gs(b, s, r), c(h), l && l.forEach((v) => {
188
188
  delete p[v];
189
189
  }), l = y.data.methodNames;
190
- const S = Ks(p, b, l, n, r);
190
+ const S = js(p, b, l, n, r);
191
191
  return c(S), p;
192
192
  };
193
- }, Ws = (s, o, e, t) => (r) => {
193
+ }, qs = (s, o, e, t) => (r) => {
194
194
  if (r.origin !== e) {
195
195
  s(`Parent: Handshake - Received SYN message from origin ${r.origin} which did not match expected origin ${e}`);
196
196
  return;
@@ -201,34 +201,34 @@ const Ts = () => ++Gs, Ss = ".", bs = (s) => s ? s.split(Ss) : [], _s = (s) => s
201
201
  methodNames: Object.keys(o)
202
202
  };
203
203
  r.source.postMessage(n, t);
204
- }, qs = 6e4, Ys = (s, o) => {
204
+ }, Ys = 6e4, Zs = (s, o) => {
205
205
  const { destroy: e, onDestroy: t } = o, r = setInterval(() => {
206
206
  s.isConnected || (clearInterval(r), e());
207
- }, qs);
207
+ }, Ys);
208
208
  t(() => {
209
209
  clearInterval(r);
210
210
  });
211
- }, Zs = (s, o) => {
211
+ }, Qs = (s, o) => {
212
212
  let e;
213
213
  return s !== void 0 && (e = window.setTimeout(() => {
214
214
  const t = new Error(`Connection timed out after ${s}ms`);
215
- t.code = kt.ConnectionTimeout, o(t);
215
+ t.code = Gt.ConnectionTimeout, o(t);
216
216
  }, s)), () => {
217
217
  clearTimeout(e);
218
218
  };
219
- }, Qs = (s) => {
219
+ }, Xs = (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 = kt.NoIframeSrc, o;
222
+ throw o.code = Gt.NoIframeSrc, o;
223
223
  }
224
- }, Xs = (s) => {
224
+ }, tr = (s) => {
225
225
  let { iframe: o, methods: e = {}, childOrigin: t, timeout: r, debug: n = !1 } = s;
226
226
  const c = Ms(n), h = xs("Parent", c), { onDestroy: l, destroy: p } = h;
227
- t || (Qs(o), t = Bs(o.src));
228
- const y = t === "null" ? "*" : t, b = vs(e), S = Ws(c, b, t, y), v = js(b, t, y, h, c);
227
+ t || (Xs(o), t = Us(o.src));
228
+ const y = t === "null" ? "*" : t, b = vs(e), S = qs(c, b, t, y), v = Ws(b, t, y, h, c);
229
229
  return {
230
230
  promise: new Promise((O, f) => {
231
- const H = Zs(r, p), M = (I) => {
231
+ const H = Qs(r, p), x = (I) => {
232
232
  if (!(I.source !== o.contentWindow || !I.data)) {
233
233
  if (I.data.penpal === j.Syn) {
234
234
  S(I);
@@ -241,20 +241,20 @@ const Ts = () => ++Gs, Ss = ".", bs = (s) => s ? s.split(Ss) : [], _s = (s) => s
241
241
  }
242
242
  }
243
243
  };
244
- window.addEventListener(dt.Message, M), c("Parent: Awaiting handshake"), Ys(o, h), l((I) => {
245
- window.removeEventListener(dt.Message, M), I && f(I);
244
+ window.addEventListener(dt.Message, x), c("Parent: Awaiting handshake"), Zs(o, h), l((I) => {
245
+ window.removeEventListener(dt.Message, x), I && f(I);
246
246
  });
247
247
  }),
248
248
  destroy() {
249
249
  p();
250
250
  }
251
251
  };
252
- }, tr = (s) => {
252
+ }, er = (s) => {
253
253
  const o = new RegExp(/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w]+\/$/);
254
254
  let e = "";
255
255
  return o.test(s) ? e = s : s.indexOf("/index.html") > -1 ? e = s.replace("/index.html", "/") : s.charAt(-1) !== "/" && (e = `${s}/`), e;
256
- }, er = (s, o, e) => {
257
- const t = tr(o), n = `<html>
256
+ }, sr = (s, o, e) => {
257
+ const t = er(o), n = `<html>
258
258
  <head>
259
259
  <base href="/" />
260
260
  <meta charset="UTF-8"/>
@@ -325,7 +325,7 @@ const Ts = () => ++Gs, Ss = ".", bs = (s) => s ? s.split(Ss) : [], _s = (s) => s
325
325
  s.srcdoc = n;
326
326
  };
327
327
  let ee = null;
328
- const sr = (s, o, e, t = "chili-editor", r, n) => {
328
+ const rr = (s, o, e, t = "chili-editor", r, n) => {
329
329
  ee && window.removeEventListener("message", ee);
330
330
  const c = `#${t}`, h = document.createElement("iframe");
331
331
  h.setAttribute("srcdoc", " "), h.setAttribute("title", "Chili-Editor"), h.setAttribute("style", "width: 100%; height: 100%;"), h.setAttribute("frameBorder", "0"), h.setAttribute("referrerpolicy", "origin");
@@ -341,7 +341,7 @@ const sr = (s, o, e, t = "chili-editor", r, n) => {
341
341
  { capture: !0, once: !0 }
342
342
  );
343
343
  try {
344
- er(h, s, r);
344
+ sr(h, s, r);
345
345
  } catch (y) {
346
346
  y instanceof Error ? n == null || n(y) : n == null || n(new Error(`Failed to setup frame: ${y}`));
347
347
  }
@@ -356,7 +356,7 @@ const sr = (s, o, e, t = "chili-editor", r, n) => {
356
356
  n == null || n(S);
357
357
  }
358
358
  }, window.addEventListener("message", ee), e(
359
- Xs({
359
+ tr({
360
360
  // The iframe to which a connection should be made
361
361
  iframe: h,
362
362
  // All the methods that we want to expose to the child should be inside the methods object
@@ -407,8 +407,8 @@ const sr = (s, o, e, t = "chili-editor", r, n) => {
407
407
  })
408
408
  );
409
409
  };
410
- 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 || {}), rr = /* @__PURE__ */ ((s) => (s.full = "full", s.followConstraints = "followConstraints", s))(rr || {});
411
- const nr = {
410
+ 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 || {}), nr = /* @__PURE__ */ ((s) => (s.full = "full", s.followConstraints = "followConstraints", s))(nr || {});
411
+ const ar = {
412
412
  shortcutOptions: {
413
413
  debugPanel: { enabled: !1 },
414
414
  ellipse: { enabled: !1 },
@@ -426,42 +426,42 @@ const nr = {
426
426
  frameEditingMode: "full"
427
427
  /* full */
428
428
  };
429
- var ar = /* @__PURE__ */ ((s) => (s.overflow = "overflow", s.fontLoading = "fontLoading", s.actionRegister = "actionRegister", s.actionExecution = "actionExecution", s.actionCircular = "actionCircular", s))(ar || {}), Is = /* @__PURE__ */ ((s) => (s.project = "project", s.template = "template", s.component = "component", s))(Is || {});
430
- class ir {
429
+ var ir = /* @__PURE__ */ ((s) => (s.overflow = "overflow", s.fontLoading = "fontLoading", s.actionRegister = "actionRegister", s.actionExecution = "actionExecution", s.actionCircular = "actionCircular", s))(ir || {}), Is = /* @__PURE__ */ ((s) => (s.project = "project", s.template = "template", s.component = "component", s))(Is || {});
430
+ class or {
431
431
  constructor(o, e, t, r) {
432
432
  this.type = "action", this.message = o, this.id = e, this.event = t, this.eventChain = r;
433
433
  }
434
434
  }
435
- class or {
435
+ class cr {
436
436
  constructor(o, e, t) {
437
437
  this.type = "dataRow", this.count = o, this.message = e, this.exceptions = t;
438
438
  }
439
439
  }
440
- class cr extends Error {
440
+ class hr extends Error {
441
441
  constructor(o, e, t) {
442
442
  super(e, t), this.statusCode = o;
443
443
  }
444
444
  }
445
- class hr extends Error {
445
+ class dr extends Error {
446
446
  constructor(o, e, t) {
447
447
  super(e, t), this.context = o;
448
448
  }
449
449
  }
450
- const dr = 404075, lr = 403032;
451
- function te(s) {
450
+ const lr = 404075, ur = 403032;
451
+ function St(s) {
452
452
  const o = s.error ?? "Yikes, something went wrong", e = {
453
453
  cause: {
454
454
  name: String(s.status),
455
455
  message: s.error ?? "Yikes, something went wrong"
456
456
  }
457
457
  };
458
- if (s.status === dr) {
458
+ if (s.status === lr) {
459
459
  const r = JSON.parse(s.data).statusCode;
460
- throw new cr(r, o, e);
460
+ throw new hr(r, o, e);
461
461
  } else
462
462
  throw new Error(o, e);
463
463
  }
464
- function ur(s) {
464
+ function gr(s) {
465
465
  const o = [
466
466
  /DateVariable '([^']+)' should not be part of excludedDays, ".*" was given/,
467
467
  /DateVariable '([^']+)' expects \$date to be > startDate:.*$/,
@@ -474,23 +474,23 @@ function ur(s) {
474
474
  return { valid: !0 };
475
475
  return { valid: !1 };
476
476
  }
477
- function gr(s, o) {
478
- if (s.status === lr && s.error) {
477
+ function yr(s, o) {
478
+ if (s.status === ur && s.error) {
479
479
  const e = s.error;
480
- if (ur(e).valid)
481
- throw new hr(o, e, {
480
+ if (gr(e).valid)
481
+ throw new dr(o, e, {
482
482
  cause: { name: String(s.status), message: e }
483
483
  });
484
484
  }
485
485
  }
486
- function yr(s) {
487
- te(s);
486
+ function pr(s) {
487
+ St(s);
488
488
  }
489
489
  function i(s, o) {
490
- let e = !0, t = !1, r = yr;
490
+ let e = !0, t = !1, r = pr;
491
491
  typeof o == "function" ? (t = !0, r = o) : typeof o == "boolean" && (e = o);
492
492
  try {
493
- s.success || (r(s), t && te(s));
493
+ s.success || (r(s), t && St(s));
494
494
  const n = s.data && e;
495
495
  return {
496
496
  ...s,
@@ -500,7 +500,7 @@ function i(s, o) {
500
500
  throw console.error(n), n;
501
501
  }
502
502
  }
503
- var N;
503
+ var L;
504
504
  class Ve {
505
505
  /**
506
506
  * @ignore
@@ -509,13 +509,13 @@ class Ve {
509
509
  /**
510
510
  * @ignore
511
511
  */
512
- u(this, N);
513
- this.getAll = async () => (await a(this, N)).getActions().then((t) => i(t)), this.getById = async (e) => (await a(this, N)).getActionById(e).then((r) => i(r)), this.create = async () => (await a(this, N)).createAction().then((t) => i(t)), this.duplicate = async (e) => (await a(this, N)).duplicateAction(e).then((r) => i(r)), this.remove = async (e) => (await a(this, N)).removeAction(e).then((r) => i(r)), this.update = async (e, t) => (await a(this, N)).updateAction(e, JSON.stringify(t)).then((n) => i(n)), this.rename = async (e, t) => this.update(e, { name: t }), this.updateScript = async (e, t) => this.update(e, { script: t }), this.updateTriggers = async (e, t) => this.update(e, { triggers: t }), this.move = async (e, t) => (await a(this, N)).moveActions(e, t).then((n) => i(n)), this.setTypeError = async (e, t) => this.update(e, { hasTypeError: t }), this.disable = async () => (await a(this, N)).disableActions().then((t) => i(t)), this.enable = async () => (await a(this, N)).enableActions().then((t) => i(t)), g(this, N, o);
512
+ u(this, L);
513
+ this.getAll = async () => (await a(this, L)).getActions().then((t) => i(t)), this.getById = async (e) => (await a(this, L)).getActionById(e).then((r) => i(r)), this.create = async () => (await a(this, L)).createAction().then((t) => i(t)), this.duplicate = async (e) => (await a(this, L)).duplicateAction(e).then((r) => i(r)), this.remove = async (e) => (await a(this, L)).removeAction(e).then((r) => i(r)), this.update = async (e, t) => (await a(this, L)).updateAction(e, JSON.stringify(t)).then((n) => i(n)), this.rename = async (e, t) => this.update(e, { name: t }), this.updateScript = async (e, t) => this.update(e, { script: t }), this.updateTriggers = async (e, t) => this.update(e, { triggers: t }), this.move = async (e, t) => (await a(this, L)).moveActions(e, t).then((n) => i(n)), this.setTypeError = async (e, t) => this.update(e, { hasTypeError: t }), this.disable = async () => (await a(this, L)).disableActions().then((t) => i(t)), this.enable = async () => (await a(this, L)).enableActions().then((t) => i(t)), this.enableForComponents = async (e) => (await a(this, L)).enableComponentActions(e).then((r) => i(r)), g(this, L, o);
514
514
  }
515
515
  }
516
- N = new WeakMap();
517
- var L;
518
- class Je {
516
+ L = new WeakMap();
517
+ var N;
518
+ class Be {
519
519
  /**
520
520
  * @ignore
521
521
  */
@@ -523,15 +523,15 @@ class Je {
523
523
  /**
524
524
  * @ignore
525
525
  */
526
- u(this, L);
527
- this.getAllOnSelectedLayout = async () => (await a(this, L)).getAnimationsOnSelectedLayout().then((t) => i(t)), this.getByFrameId = async (e, t) => (await a(this, L)).getAnimationByFrameId(e, t).then((n) => i(n)), this.getByLayoutId = async (e) => (await a(this, L)).getAnimationsByLayoutId(e).then((r) => i(r)), this.setFrameAnimation = async (e) => (await a(this, L)).setFrameAnimation(JSON.stringify(e)).then(
526
+ u(this, N);
527
+ this.getAllOnSelectedLayout = async () => (await a(this, N)).getAnimationsOnSelectedLayout().then((t) => i(t)), this.getByFrameId = async (e, t) => (await a(this, N)).getAnimationByFrameId(e, t).then((n) => i(n)), this.getByLayoutId = async (e) => (await a(this, N)).getAnimationsByLayoutId(e).then((r) => i(r)), this.setFrameAnimation = async (e) => (await a(this, N)).setFrameAnimation(JSON.stringify(e)).then(
528
528
  (r) => i({ ...r, data: JSON.stringify(e) })
529
- ), this.play = async () => (await a(this, L)).playAnimation().then((t) => i(t)), this.pause = async () => (await a(this, L)).pauseAnimation().then((t) => i(t)), this.setScrubberPosition = async (e) => (await a(this, L)).setScrubberPosition(e).then((r) => i(r)), this.setDuration = async (e) => (await a(this, L)).setAnimationDuration(e).then((r) => i(r)), this.resetFrameAnimation = async (e) => (await a(this, L)).resetFrameAnimation(e).then((r) => i(r)), this.reset = async () => (await a(this, L)).resetAnimation().then((t) => i(t)), g(this, L, o);
529
+ ), this.play = async () => (await a(this, N)).playAnimation().then((t) => i(t)), this.pause = async () => (await a(this, N)).pauseAnimation().then((t) => i(t)), this.setScrubberPosition = async (e) => (await a(this, N)).setScrubberPosition(e).then((r) => i(r)), this.setDuration = async (e) => (await a(this, N)).setAnimationDuration(e).then((r) => i(r)), this.resetFrameAnimation = async (e) => (await a(this, N)).resetFrameAnimation(e).then((r) => i(r)), this.reset = async () => (await a(this, N)).resetAnimation().then((t) => i(t)), g(this, N, o);
530
530
  }
531
531
  }
532
- L = new WeakMap();
533
- var $ = /* @__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))($ || {}), Jt = /* @__PURE__ */ ((s) => (s.low = "low", s.medium = "medium", s.quartile = "quartile", s.high = "high", s))(Jt || {}), vt = /* @__PURE__ */ ((s) => (s.utf8 = "utf8", s.iso8859_1 = "iso8859_1", s.code128a = "code128a", s.code128b = "code128b", s.code128c = "code128c", s))(vt || {}), pr = /* @__PURE__ */ ((s) => (s.success = "success", s.empty = "empty", s.invalidLength = "invalidLength", s.invalidCharacters = "invalidCharacters", s.invalidChecksum = "invalidChecksum", s.invalidUPCE = "invalidUPCE", s.otherError = "otherError", s))(pr || {}), wr = /* @__PURE__ */ ((s) => (s.px = "px", s.mm = "mm", s.cm = "cm", s.inch = "inch", s.pt = "pt", s))(wr || {}), X = /* @__PURE__ */ ((s) => (s.top = "top", s.right = "right", s.bottom = "bottom", s.left = "left", s))(X || {}), Cr = /* @__PURE__ */ ((s) => (s.top = "top", s.child = "child", s))(Cr || {}), mr = /* @__PURE__ */ ((s) => (s.print = "print", s.digitalStatic = "digitalStatic", s.digitalAnimated = "digitalAnimated", s))(mr || {}), fr = /* @__PURE__ */ ((s) => (s.locked = "locked", s.range = "range", s.none = "none", s))(fr || {}), G;
534
- class Be {
532
+ N = new WeakMap();
533
+ var $ = /* @__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))($ || {}), Jt = /* @__PURE__ */ ((s) => (s.low = "low", s.medium = "medium", s.quartile = "quartile", s.high = "high", s))(Jt || {}), It = /* @__PURE__ */ ((s) => (s.utf8 = "utf8", s.iso8859_1 = "iso8859_1", s.code128a = "code128a", s.code128b = "code128b", s.code128c = "code128c", s))(It || {}), wr = /* @__PURE__ */ ((s) => (s.success = "success", s.empty = "empty", s.invalidLength = "invalidLength", s.invalidCharacters = "invalidCharacters", s.invalidChecksum = "invalidChecksum", s.invalidUPCE = "invalidUPCE", s.otherError = "otherError", s))(wr || {}), Cr = /* @__PURE__ */ ((s) => (s.px = "px", s.mm = "mm", s.cm = "cm", s.inch = "inch", s.pt = "pt", s))(Cr || {}), X = /* @__PURE__ */ ((s) => (s.top = "top", s.right = "right", s.bottom = "bottom", s.left = "left", s))(X || {}), mr = /* @__PURE__ */ ((s) => (s.top = "top", s.child = "child", s))(mr || {}), fr = /* @__PURE__ */ ((s) => (s.print = "print", s.digitalStatic = "digitalStatic", s.digitalAnimated = "digitalAnimated", s))(fr || {}), Sr = /* @__PURE__ */ ((s) => (s.locked = "locked", s.range = "range", s.none = "none", s))(Sr || {}), T;
534
+ class Je {
535
535
  /**
536
536
  * @ignore
537
537
  */
@@ -539,8 +539,8 @@ class Be {
539
539
  /**
540
540
  * @ignore
541
541
  */
542
- u(this, G);
543
- this.setBarcodeProperties = async (e, t) => (await a(this, G)).setBarcodeProperties(e, JSON.stringify(t)).then((n) => i(n)), this.setEnableBackground = async (e, t) => {
542
+ u(this, T);
543
+ this.setBarcodeProperties = async (e, t) => (await a(this, T)).setBarcodeProperties(e, JSON.stringify(t)).then((n) => i(n)), this.setEnableBackground = async (e, t) => {
544
544
  const r = { enableBackground: t };
545
545
  return this.setBarcodeProperties(e, r);
546
546
  }, this.setBackgroundColor = async (e, t) => {
@@ -552,7 +552,7 @@ class Be {
552
552
  }, this.setBarColor = async (e, t) => {
553
553
  const r = { barColor: t };
554
554
  return this.setBarcodeProperties(e, r);
555
- }, this.setBarcodeSource = async (e, t) => (await a(this, G)).setBarcodeSource(e, JSON.stringify(t)).then((n) => i(n)), this.removeBarcodeSource = async (e) => (await a(this, G)).setBarcodeSource(e, null).then((r) => i(r)), this.setEnableText = async (e, t) => {
555
+ }, this.setBarcodeSource = async (e, t) => (await a(this, T)).setBarcodeSource(e, JSON.stringify(t)).then((n) => i(n)), this.removeBarcodeSource = async (e) => (await a(this, T)).setBarcodeSource(e, null).then((r) => i(r)), this.setEnableText = async (e, t) => {
556
556
  const r = { enableText: t };
557
557
  return this.setBarcodeProperties(e, r);
558
558
  }, this.setBarHeight = async (e, t) => {
@@ -568,11 +568,11 @@ class Be {
568
568
  right: r === X.right ? t : void 0,
569
569
  bottom: r === X.bottom ? t : void 0
570
570
  } : { left: t, top: t, right: t, bottom: t };
571
- return (await a(this, G)).setBarcodeProperties(e, JSON.stringify({ quietZone: n })).then((h) => i(h));
571
+ return (await a(this, T)).setBarcodeProperties(e, JSON.stringify({ quietZone: n })).then((h) => i(h));
572
572
  }, this.setAreQuietZoneValuesCombined = async (e, t) => {
573
573
  const r = { areQuietZoneValuesCombined: t };
574
- return (await a(this, G)).setBarcodeProperties(e, JSON.stringify({ quietZone: r })).then((c) => i(c));
575
- }, this.setErrorCorrectionLevel = async (e, t) => (await a(this, G)).setBarcodeProperties(e, JSON.stringify({ errorCorrectionLevel: t })).then((n) => i(n)), this.setCharacterSet = async (e, t) => (await a(this, G)).setBarcodeProperties(e, JSON.stringify({ characterSet: t })).then((n) => i(n)), this.setDrawLightMarginIndicator = async (e, t) => {
574
+ return (await a(this, T)).setBarcodeProperties(e, JSON.stringify({ quietZone: r })).then((c) => i(c));
575
+ }, this.setErrorCorrectionLevel = async (e, t) => (await a(this, T)).setBarcodeProperties(e, JSON.stringify({ errorCorrectionLevel: t })).then((n) => i(n)), this.setCharacterSet = async (e, t) => (await a(this, T)).setBarcodeProperties(e, JSON.stringify({ characterSet: t })).then((n) => i(n)), this.setDrawLightMarginIndicator = async (e, t) => {
576
576
  const r = { drawStartStopChars: t };
577
577
  return this.setBarcodeProperties(e, r);
578
578
  }, this.setDrawStartStopChars = async (e, t) => {
@@ -582,7 +582,7 @@ class Be {
582
582
  let t = !0, r = !0, n = !0, c, h, l = !1, p = !1, y = !1;
583
583
  switch (e) {
584
584
  case $.qr:
585
- c = [vt.iso8859_1, vt.utf8], h = [
585
+ c = [It.iso8859_1, It.utf8], h = [
586
586
  Jt.low,
587
587
  Jt.medium,
588
588
  Jt.quartile,
@@ -603,9 +603,9 @@ class Be {
603
603
  case $.code128:
604
604
  case $.gs1128:
605
605
  c = [
606
- vt.code128a,
607
- vt.code128b,
608
- vt.code128c
606
+ It.code128a,
607
+ It.code128b,
608
+ It.code128c
609
609
  ];
610
610
  break;
611
611
  case $.code39:
@@ -623,11 +623,11 @@ class Be {
623
623
  allowToggleLightMarginIndicator: p,
624
624
  allowToggleDrawStartAndEndChar: y
625
625
  };
626
- }, g(this, G, o);
626
+ }, g(this, T, o);
627
627
  }
628
628
  }
629
- G = new WeakMap();
630
- function Sr(s) {
629
+ T = new WeakMap();
630
+ function br(s) {
631
631
  const o = s.fontFamilies.length > 0 ? String(s.fontFamilies[0].connectorId) : "", e = {
632
632
  id: s.id ?? "",
633
633
  name: s.name ?? "",
@@ -649,7 +649,7 @@ function Sr(s) {
649
649
  brandKit: e
650
650
  };
651
651
  }
652
- function br(s) {
652
+ function vr(s) {
653
653
  return {
654
654
  id: s.id ?? "",
655
655
  version: s.version ?? "",
@@ -679,7 +679,7 @@ let Ue = (ys = class {
679
679
  throw new Error("Brand kit response has no data");
680
680
  return {
681
681
  ...n,
682
- parsedData: Sr(c)
682
+ parsedData: br(c)
683
683
  };
684
684
  }, this.getAllMedia = async () => (await a(this, A)).getAllBrandKitMedia().then((r) => i(r)), this.addMedia = async (t, r, n) => (await a(this, A)).addBrandKitMedia(t, r, n).then((h) => i(h)), this.updateMedia = async (t, r, n) => (await a(this, A)).updateBrandKitMedia(t, r, n).then((h) => i(h)), this.renameMedia = async (t, r) => (await a(this, A)).renameBrandKitMedia(t, r).then((c) => i(c)), this.removeMedia = async (t) => (await a(this, A)).removeBrandKitMedia(t).then((n) => i(n)), this.remove = async () => {
685
685
  const r = (await this.colorStyleController.getAll()).parsedData || [], c = (await this.gradientStyleController.getAll()).parsedData || [], l = (await this.paragraphStyleController.getAll()).parsedData || [], y = (await this.characterStyleController.getAll()).parsedData || [], S = (await this.fontController.getFontFamilies()).parsedData || [], E = (await this.getAllMedia()).parsedData || [];
@@ -703,13 +703,13 @@ let Ue = (ys = class {
703
703
  throw new Error("Brand kit set response has no data");
704
704
  return {
705
705
  ...c,
706
- parsedData: br(h)
706
+ parsedData: vr(h)
707
707
  };
708
708
  }, this.isAutoSync = async () => (await a(this, A)).isBrandKitAutoSync().then((r) => i(r)), this.enableAutoSync = async (t) => (await a(this, A)).enableBrandKitAutoSync(t).then((n) => i(n)), g(this, A, o), this.colorStyleController = e.colorStyle, this.gradientStyleController = e.gradientStyle, this.fontController = e.font, this.mediaController = e.mediaConnector, this.paragraphStyleController = e.paragraphStyle, this.characterStyleController = e.characterStyle, this.undoManagerController = e.undoManager;
709
709
  }
710
710
  }, A = new WeakMap(), ys);
711
711
  var st;
712
- class ce {
712
+ class he {
713
713
  /**
714
714
  * @ignore
715
715
  */
@@ -762,7 +762,7 @@ class Ge {
762
762
  }
763
763
  }
764
764
  rt = new WeakMap();
765
- var Ht;
765
+ var $t;
766
766
  class Te {
767
767
  /**
768
768
  * @ignore
@@ -771,12 +771,12 @@ class Te {
771
771
  /**
772
772
  * @ignore
773
773
  */
774
- u(this, Ht);
775
- this.convertToRgb = async (e) => (await a(this, Ht)).colorToRgb(JSON.stringify(e)).then((r) => i(r)), g(this, Ht, o);
774
+ u(this, $t);
775
+ this.convertToRgb = async (e) => (await a(this, $t)).colorToRgb(JSON.stringify(e)).then((r) => i(r)), g(this, $t, o);
776
776
  }
777
777
  }
778
- Ht = new WeakMap();
779
- var he = /* @__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))(he || {}), vr = /* @__PURE__ */ ((s) => (s.local = "local", s.brandKit = "brandKit", s.stylekit = "brandKit", s))(vr || {}), J;
778
+ $t = new WeakMap();
779
+ var de = /* @__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))(de || {}), Ir = /* @__PURE__ */ ((s) => (s.local = "local", s.brandKit = "brandKit", s.stylekit = "brandKit", s))(Ir || {}), B;
780
780
  class _e {
781
781
  /**
782
782
  * @ignore
@@ -785,54 +785,54 @@ class _e {
785
785
  /**
786
786
  * @ignore
787
787
  */
788
- u(this, J);
789
- this.getAll = async () => (await a(this, J)).getColors().then((t) => i(t)), this.getById = async (e) => (await a(this, J)).getColorById(e).then((r) => i(r)), this.create = async () => (await a(this, J)).createColor().then((t) => i(t)), this.duplicate = async (e) => (await a(this, J)).duplicateColor(e).then((r) => i(r)), this.move = async (e, t) => (await a(this, J)).moveColors(e, t).then((n) => i(n)), this.rename = async (e, t) => (await a(this, J)).renameColor(e, t).then((n) => i(n)), this.update = async (e, t) => {
790
- const r = await a(this, J), n = t;
791
- return n.type === he.spot && (n.type = he.spotCMYK), r.updateColor(e, JSON.stringify(n)).then((c) => i(c));
792
- }, this.remove = async (e) => (await a(this, J)).removeColor(e).then((r) => i(r)), g(this, J, o);
788
+ u(this, B);
789
+ this.getAll = async () => (await a(this, B)).getColors().then((t) => i(t)), this.getById = async (e) => (await a(this, B)).getColorById(e).then((r) => i(r)), this.create = async () => (await a(this, B)).createColor().then((t) => i(t)), this.duplicate = async (e) => (await a(this, B)).duplicateColor(e).then((r) => i(r)), this.move = async (e, t) => (await a(this, B)).moveColors(e, t).then((n) => i(n)), this.rename = async (e, t) => (await a(this, B)).renameColor(e, t).then((n) => i(n)), this.update = async (e, t) => {
790
+ const r = await a(this, B), n = t;
791
+ return n.type === de.spot && (n.type = de.spotCMYK), r.updateColor(e, JSON.stringify(n)).then((c) => i(c));
792
+ }, this.remove = async (e) => (await a(this, B)).removeColor(e).then((r) => i(r)), g(this, B, o);
793
793
  }
794
794
  }
795
- J = new WeakMap();
796
- var Gt = /* @__PURE__ */ ((s) => (s[s.file = 0] = "file", s[s.collection = 1] = "collection", s))(Gt || {}), de = /* @__PURE__ */ ((s) => (s.LowResolutionWeb = "lowresWeb", s.HighResolutionWeb = "highresWeb", s))(de || {}), Tt = /* @__PURE__ */ ((s) => (s.file = "file", s.collection = "collection", s))(Tt || {}), Ir = /* @__PURE__ */ ((s) => (s.media = "media", s.fonts = "fonts", s.data = "data", s.components = "components", s))(Ir || {}), Ar = /* @__PURE__ */ ((s) => (s.name = "name", s.path = "relativePath", s.id = "id", s))(Ar || {}), Pr = /* @__PURE__ */ ((s) => (s.ascending = "asc", s.descending = "desc", s))(Pr || {}), Or = /* @__PURE__ */ ((s) => (s.text = "text", s.boolean = "boolean", s))(Or || {}), Fr = /* @__PURE__ */ ((s) => (s.query = "query", s.upload = "upload", s))(Fr || {}), Bt = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Bt || {});
797
- class Zn {
795
+ B = new WeakMap();
796
+ var Tt = /* @__PURE__ */ ((s) => (s[s.file = 0] = "file", s[s.collection = 1] = "collection", s))(Tt || {}), le = /* @__PURE__ */ ((s) => (s.LowResolutionWeb = "lowresWeb", s.HighResolutionWeb = "highresWeb", s))(le || {}), _t = /* @__PURE__ */ ((s) => (s.file = "file", s.collection = "collection", s))(_t || {}), Ar = /* @__PURE__ */ ((s) => (s.media = "media", s.fonts = "fonts", s.data = "data", s.components = "components", s))(Ar || {}), Pr = /* @__PURE__ */ ((s) => (s.name = "name", s.path = "relativePath", s.id = "id", s))(Pr || {}), Or = /* @__PURE__ */ ((s) => (s.ascending = "asc", s.descending = "desc", s))(Or || {}), Fr = /* @__PURE__ */ ((s) => (s.text = "text", s.boolean = "boolean", s))(Fr || {}), Er = /* @__PURE__ */ ((s) => (s.query = "query", s.upload = "upload", s))(Er || {}), Ut = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Ut || {});
797
+ class Xn {
798
798
  constructor(o, e, t, r = "engineToConnector") {
799
799
  this.direction = "engineToConnector", this.name = o, this.direction = r, e === "var" ? this.value = `${e}.${t}` : this.value = t;
800
800
  }
801
801
  }
802
- var Er = /* @__PURE__ */ ((s) => (s.variable = "var", s.value = "value", s))(Er || {}), Dr = /* @__PURE__ */ ((s) => (s.engineToConnector = "engineToConnector", s.connectorToEngine = "connectorToEngine", s))(Dr || {}), le = /* @__PURE__ */ ((s) => (s.loading = "loading", s.loaded = "loaded", s.running = "running", s.ready = "ready", s.error = "error", s))(le || {}), Lr = /* @__PURE__ */ ((s) => (s.stateChanged = "stateChanged", s.authChanged = "authChanged", s.reloadRequired = "reloadRequired", s.unloaded = "unloaded", s))(Lr || {});
803
- const Qn = {
802
+ var Dr = /* @__PURE__ */ ((s) => (s.variable = "var", s.value = "value", s))(Dr || {}), Lr = /* @__PURE__ */ ((s) => (s.engineToConnector = "engineToConnector", s.connectorToEngine = "connectorToEngine", s))(Lr || {}), ue = /* @__PURE__ */ ((s) => (s.loading = "loading", s.loaded = "loaded", s.running = "running", s.ready = "ready", s.error = "error", s))(ue || {}), Nr = /* @__PURE__ */ ((s) => (s.stateChanged = "stateChanged", s.authChanged = "authChanged", s.reloadRequired = "reloadRequired", s.unloaded = "unloaded", s))(Nr || {});
803
+ const ta = {
804
804
  url: "grafx-media.json",
805
805
  source: "local"
806
806
  /* local */
807
807
  };
808
- class Xn {
808
+ class ea {
809
809
  constructor(o, e) {
810
810
  this.type = "grafxToken", this.token = o, this.headers = e;
811
811
  }
812
812
  }
813
- class ta {
813
+ class sa {
814
814
  constructor(o) {
815
815
  this.type = "refreshed", this.headers = o;
816
816
  }
817
817
  }
818
- var Nr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.refreshed = "refreshed", s))(Nr || {}), xr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.any = "any", s))(xr || {}), As = /* @__PURE__ */ ((s) => (s.minDimension = "minDimension", s))(As || {});
818
+ var Rr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.refreshed = "refreshed", s))(Rr || {}), xr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.any = "any", s))(xr || {}), As = /* @__PURE__ */ ((s) => (s.minDimension = "minDimension", s))(As || {});
819
819
  class Mr extends Error {
820
820
  constructor(o, e) {
821
821
  super(o), this.type = e;
822
822
  }
823
823
  }
824
- var Rr = /* @__PURE__ */ ((s) => (s.StaticKey = "staticKey", s.OAuth2ClientCredentials = "oAuth2ClientCredentials", s.OAuth2AuthorizationCode = "oAuth2AuthorizationCode", s.OAuth2ResourceOwnerPassword = "oAuth2ResourceOwnerPassword", s.OAuth2JwtBearer = "oAuth2JwtBearer", s.None = "none", s))(Rr || {});
824
+ var Vr = /* @__PURE__ */ ((s) => (s.StaticKey = "staticKey", s.OAuth2ClientCredentials = "oAuth2ClientCredentials", s.OAuth2AuthorizationCode = "oAuth2AuthorizationCode", s.OAuth2ResourceOwnerPassword = "oAuth2ResourceOwnerPassword", s.OAuth2JwtBearer = "oAuth2JwtBearer", s.None = "none", s))(Vr || {});
825
825
  class ne {
826
826
  constructor() {
827
827
  this.makeConnectorSourceForwardsCompatible = (o) => {
828
- if (o.source != Bt.grafx || this.isSourceMigrated(o))
828
+ if (o.source != Ut.grafx || this.isSourceMigrated(o))
829
829
  return o;
830
830
  let e = o.url;
831
831
  for (; e.endsWith("/"); )
832
832
  e = e.substring(0, e.length - 1);
833
833
  const t = e.split("/");
834
- return { id: t[t.length - 1], source: Bt.grafx };
835
- }, this.makeMultipleConnectorsBackwardsCompatible = (o, e) => o.map((t) => this.makeSingleConnectorBackwardsCompatible(t, e)), this.makeSingleConnectorBackwardsCompatible = (o, e) => o.source.source != Bt.grafx ? o : {
834
+ return { id: t[t.length - 1], source: Ut.grafx };
835
+ }, this.makeMultipleConnectorsBackwardsCompatible = (o, e) => o.map((t) => this.makeSingleConnectorBackwardsCompatible(t, e)), this.makeSingleConnectorBackwardsCompatible = (o, e) => o.source.source != Ut.grafx ? o : {
836
836
  id: o.id,
837
837
  name: o.name,
838
838
  iconUrl: o.iconUrl,
@@ -843,12 +843,12 @@ class ne {
843
843
  t = t.substring(0, t.length - 1);
844
844
  return {
845
845
  url: `${t}/connectors/${o.id}`,
846
- source: Bt.grafx
846
+ source: Ut.grafx
847
847
  };
848
848
  }, this.isSourceMigrated = (o) => "id" in o;
849
849
  }
850
850
  }
851
- var x, It, ut, ps;
851
+ var R, At, ut, ps;
852
852
  let He = (ps = class {
853
853
  /**
854
854
  * @ignore
@@ -857,28 +857,28 @@ let He = (ps = class {
857
857
  /**
858
858
  * @ignore
859
859
  */
860
- u(this, x);
861
- u(this, It);
860
+ u(this, R);
861
+ u(this, At);
862
862
  u(this, ut);
863
- this.getById = async (t) => (await a(this, x)).getConnectorById(t).then((n) => i(n)).then((n) => {
863
+ this.getById = async (t) => (await a(this, R)).getConnectorById(t).then((n) => i(n)).then((n) => {
864
864
  const c = { ...n, parsedData: null };
865
865
  return n.parsedData && (c.parsedData = a(this, ut).makeSingleConnectorBackwardsCompatible(
866
866
  n.parsedData,
867
- a(this, It).get(tt.GraFxStudioEnvironmentApiUrl)
867
+ a(this, At).get(tt.GraFxStudioEnvironmentApiUrl)
868
868
  )), c;
869
- }), this.getAllByType = async (t) => (await a(this, x)).getConnectors(t).then((n) => i(n)).then((n) => {
869
+ }), this.getAllByType = async (t) => (await a(this, R)).getConnectors(t).then((n) => i(n)).then((n) => {
870
870
  const c = { ...n, parsedData: null };
871
871
  return n.parsedData && (c.parsedData = a(this, ut).makeMultipleConnectorsBackwardsCompatible(
872
872
  n.parsedData,
873
- a(this, It).get(tt.GraFxStudioEnvironmentApiUrl)
873
+ a(this, At).get(tt.GraFxStudioEnvironmentApiUrl)
874
874
  )), c;
875
875
  }), this.register = async (t) => {
876
- const r = await a(this, x), n = a(this, ut).makeConnectorSourceForwardsCompatible(t);
876
+ const r = await a(this, R), n = a(this, ut).makeConnectorSourceForwardsCompatible(t);
877
877
  return r.registerConnector(JSON.stringify(n)).then((c) => i(c));
878
- }, this.unregister = async (t) => (await a(this, x)).unregisterConnector(t).then((n) => i(n)), this.configure = async (t, r) => {
879
- const n = await a(this, x);
880
- return await this.waitToBeReady(t), await r(new Vr(t, n)), n.updateConnectorConfiguration(t).then((c) => i(c));
881
- }, this.getState = async (t) => (await a(this, x)).getConnectorState(t).then((n) => i(n)), this.getOptions = async (t) => (await a(this, x)).getConnectorOptions(t).then((n) => i(n)), this.waitToBeReady = async (t, r = 2e3) => {
878
+ }, this.unregister = async (t) => (await a(this, R)).unregisterConnector(t).then((n) => i(n)), this.configure = async (t, r) => {
879
+ const n = await a(this, R);
880
+ return await this.waitToBeReady(t), await r(new Br(t, n)), n.updateConnectorConfiguration(t).then((c) => i(c));
881
+ }, this.getState = async (t) => (await a(this, R)).getConnectorState(t).then((n) => i(n)), this.getOptions = async (t) => (await a(this, R)).getConnectorOptions(t).then((n) => i(n)), this.waitToBeReady = async (t, r = 2e3) => {
882
882
  let n = Math.max(r, 500);
883
883
  n = Math.min(n, 5e3);
884
884
  const c = 100;
@@ -886,7 +886,7 @@ let He = (ps = class {
886
886
  try {
887
887
  for (; h * c < n; ) {
888
888
  const l = await this.getState(t);
889
- if (l.success && l.parsedData && (l.parsedData.type === le.running || l.parsedData.type === le.ready))
889
+ if (l.success && l.parsedData && (l.parsedData.type === ue.running || l.parsedData.type === ue.ready))
890
890
  return i(
891
891
  { data: null, success: !0, error: void 0, status: 0, parsedData: void 0 },
892
892
  !1
@@ -925,10 +925,10 @@ let He = (ps = class {
925
925
  }), this.applyMappings = async (t, r) => await this.configure(t, async (n) => {
926
926
  const c = r.filter((h) => h.name !== "" && h.value !== "");
927
927
  await n.setMappings(c);
928
- }), this.setHttpHeaders = async (t, r) => (await a(this, x)).remoteConnectorAuthenticationSetHttpHeaders(t, JSON.stringify(r)).then((c) => i(c)), g(this, x, o), g(this, It, e), g(this, ut, new ne());
928
+ }), this.setHttpHeaders = async (t, r) => (await a(this, R)).remoteConnectorAuthenticationSetHttpHeaders(t, JSON.stringify(r)).then((c) => i(c)), g(this, R, o), g(this, At, e), g(this, ut, new ne());
929
929
  }
930
930
  async getMappings(o, e) {
931
- return (await a(this, x)).getConnectorMappings(o).then((r) => i(r)).then(
931
+ return (await a(this, R)).getConnectorMappings(o).then((r) => i(r)).then(
932
932
  (r) => {
933
933
  var n;
934
934
  return e ? {
@@ -938,9 +938,9 @@ let He = (ps = class {
938
938
  }
939
939
  );
940
940
  }
941
- }, x = new WeakMap(), It = new WeakMap(), ut = new WeakMap(), ps);
941
+ }, R = new WeakMap(), At = new WeakMap(), ut = new WeakMap(), ps);
942
942
  var gt, yt;
943
- class Vr {
943
+ class Br {
944
944
  /**
945
945
  * @ignore
946
946
  */
@@ -962,7 +962,7 @@ class Vr {
962
962
  }
963
963
  }
964
964
  gt = new WeakMap(), yt = new WeakMap();
965
- var Y, At;
965
+ var Y, Pt;
966
966
  class $e {
967
967
  /**
968
968
  * @ignore
@@ -972,7 +972,7 @@ class $e {
972
972
  * @ignore
973
973
  */
974
974
  u(this, Y);
975
- u(this, At);
975
+ u(this, Pt);
976
976
  this.getPageItemById = async (t, r, n, c = {}) => {
977
977
  const l = await (await a(this, Y)).dataConnectorGetPageItemById(
978
978
  t,
@@ -982,9 +982,9 @@ class $e {
982
982
  ), p = i(l), y = { ...p, parsedData: null };
983
983
  return p.parsedData && (y.parsedData = {
984
984
  ...p.parsedData,
985
- data: a(this, At).mapEngineToDataItem(p.parsedData.data)
985
+ data: a(this, Pt).mapEngineToDataItem(p.parsedData.data)
986
986
  }), y;
987
- }, this.getConfigurationOptions = async (t) => (await a(this, Y)).dataConnectorGetConfigurationOptions(t).then((n) => i(n)), this.getCapabilities = async (t) => (await a(this, Y)).dataConnectorGetCapabilities(t).then((n) => i(n)), g(this, Y, o), g(this, At, e);
987
+ }, this.getConfigurationOptions = async (t) => (await a(this, Y)).dataConnectorGetConfigurationOptions(t).then((n) => i(n)), this.getCapabilities = async (t) => (await a(this, Y)).dataConnectorGetCapabilities(t).then((n) => i(n)), g(this, Y, o), g(this, Pt, e);
988
988
  }
989
989
  async getPage(o, e, t = {}) {
990
990
  const { previousPageToken: r, continuationToken: n } = e;
@@ -998,7 +998,7 @@ class $e {
998
998
  return l.parsedData && (p.parsedData = {
999
999
  ...l.parsedData,
1000
1000
  data: l.parsedData.data.map(
1001
- (y) => a(this, At).mapEngineToDataItem(y)
1001
+ (y) => a(this, Pt).mapEngineToDataItem(y)
1002
1002
  )
1003
1003
  }), p;
1004
1004
  }
@@ -1012,8 +1012,8 @@ class $e {
1012
1012
  return (await a(this, Y)).dataConnectorGetModel(o, JSON.stringify(e)).then((r) => i(r));
1013
1013
  }
1014
1014
  }
1015
- Y = new WeakMap(), At = new WeakMap();
1016
- var nt, $t;
1015
+ Y = new WeakMap(), Pt = new WeakMap();
1016
+ var nt, zt;
1017
1017
  class ze {
1018
1018
  /**
1019
1019
  * @ignore
@@ -1023,14 +1023,14 @@ class ze {
1023
1023
  * @ignore
1024
1024
  */
1025
1025
  u(this, nt);
1026
- u(this, $t);
1026
+ u(this, zt);
1027
1027
  this.setDataSource = async (t) => (await a(this, nt)).setDataSource(t).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 (t) => {
1028
- const r = await a(this, nt), n = a(this, $t).mapDataItemToEngine(t);
1028
+ const r = await a(this, nt), n = a(this, zt).mapDataItemToEngine(t);
1029
1029
  return r.setDataRow(JSON.stringify(n)).then((c) => i(c));
1030
- }, g(this, nt, o), g(this, $t, e);
1030
+ }, g(this, nt, o), g(this, zt, e);
1031
1031
  }
1032
1032
  }
1033
- nt = new WeakMap(), $t = new WeakMap();
1033
+ nt = new WeakMap(), zt = new WeakMap();
1034
1034
  var at;
1035
1035
  class Ke {
1036
1036
  /**
@@ -1065,18 +1065,18 @@ class je {
1065
1065
  }
1066
1066
  }
1067
1067
  pt = new WeakMap();
1068
- var Jr = /* @__PURE__ */ ((s) => (s.resize = "resize", s.scale = "scale", s.scaleAndResize = "scaleAndResize", s))(Jr || {}), Br = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Br || {}), se = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(se || {}), Ur = /* @__PURE__ */ ((s) => (s.connector = "connector", s))(Ur || {}), kr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s.component = "component", s))(kr || {}), Gr = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Gr || {}), Tr = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Tr || {}), _r = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(_r || {}), Hr = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))(Hr || {}), $r = /* @__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))($r || {}), zr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(zr || {}), Kr = /* @__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))(Kr || {}), jr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(jr || {}), Wr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(Wr || {}), qr = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))(qr || {}), Yr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Yr || {});
1069
- class sa {
1068
+ var Jr = /* @__PURE__ */ ((s) => (s.resize = "resize", s.scale = "scale", s.scaleAndResize = "scaleAndResize", s))(Jr || {}), Ur = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Ur || {}), se = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(se || {}), kr = /* @__PURE__ */ ((s) => (s.connector = "connector", s))(kr || {}), Gr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s.component = "component", s))(Gr || {}), Tr = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Tr || {}), _r = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(_r || {}), Hr = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(Hr || {}), $r = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))($r || {}), zr = /* @__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))(zr || {}), Kr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(Kr || {}), jr = /* @__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))(jr || {}), Wr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(Wr || {}), qr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(qr || {}), Yr = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))(Yr || {}), Zr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Zr || {});
1069
+ class na {
1070
1070
  constructor() {
1071
1071
  this.type = "page";
1072
1072
  }
1073
1073
  }
1074
- class ra {
1074
+ class aa {
1075
1075
  constructor(o, e) {
1076
1076
  this.type = "frame", this.frameId = o, this.edge = e;
1077
1077
  }
1078
1078
  }
1079
- var Ps = /* @__PURE__ */ ((s) => (s.frameCrop = "frameCrop", s.assetCrop = "assetCrop", s))(Ps || {}), B;
1079
+ var Ps = /* @__PURE__ */ ((s) => (s.frameCrop = "frameCrop", s.assetCrop = "assetCrop", s))(Ps || {}), J;
1080
1080
  class We {
1081
1081
  /**
1082
1082
  * @ignore
@@ -1085,15 +1085,15 @@ class We {
1085
1085
  /**
1086
1086
  * @ignore
1087
1087
  */
1088
- u(this, B);
1088
+ u(this, J);
1089
1089
  this.insertImageVariableToFrame = async (e, t) => {
1090
- const r = await a(this, B), n = { id: t, type: se.variable };
1090
+ const r = await a(this, J), n = { id: t, type: se.variable };
1091
1091
  return r.setImageSource(e, JSON.stringify(n)).then((c) => i(c));
1092
- }, this.insertTextVariable = async (e) => (await a(this, B)).insertTextVariable(e).then((r) => i(r)), this.enterTextEditMode = async (e) => (await a(this, B)).enterTextEditMode(e).then((r) => i(r)), this.exitTextEditMode = async () => (await a(this, B)).exitTextEditMode().then((t) => i(t)), this.getText = async (e, t) => (await a(this, B)).getTextByFrameId(e, t).then((n) => i(n)), this.setText = async (e, t) => (await a(this, B)).setTextByFrameId(e, t).then((n) => i(n)), this.selectText = async (e, t, r) => (await a(this, B)).selectTextById(e, t, r).then((c) => i(c)), this.addCustomUndoData = async (e, t, r) => (await a(this, B)).setCustomUndoData(e, t, r ?? !1).then((c) => i(c)), g(this, B, o);
1092
+ }, this.insertTextVariable = async (e) => (await a(this, J)).insertTextVariable(e).then((r) => i(r)), this.enterTextEditMode = async (e) => (await a(this, J)).enterTextEditMode(e).then((r) => i(r)), this.exitTextEditMode = async () => (await a(this, J)).exitTextEditMode().then((t) => i(t)), this.getText = async (e, t) => (await a(this, J)).getTextByFrameId(e, t).then((n) => i(n)), this.setText = async (e, t) => (await a(this, J)).setTextByFrameId(e, t).then((n) => i(n)), this.selectText = async (e, t, r) => (await a(this, J)).selectTextById(e, t, r).then((c) => i(c)), this.addCustomUndoData = async (e, t, r) => (await a(this, J)).setCustomUndoData(e, t, r ?? !1).then((c) => i(c)), g(this, J, o);
1093
1093
  }
1094
1094
  }
1095
- B = new WeakMap();
1096
- var it, Pt;
1095
+ J = new WeakMap();
1096
+ var it, Ot;
1097
1097
  class qe {
1098
1098
  /**
1099
1099
  * @ignore
@@ -1103,14 +1103,14 @@ class qe {
1103
1103
  * @ignore
1104
1104
  */
1105
1105
  u(this, it);
1106
- u(this, Pt);
1107
- this.query = async (e, t, r = {}) => (await a(this, it)).fontConnectorQuery(e, JSON.stringify(t), JSON.stringify(r)).then((c) => i(c)), this.detail = async (e, t, r = {}) => (await a(this, it)).fontConnectorDetail(e, t, JSON.stringify(r)).then((c) => i(c)), this.download = async (e, t, r = {}) => (await a(this, Pt)).fontConnectorDownload(e, t, JSON.stringify(r)).then((c) => c ?? c), this.preview = async (e, t, r, n = {}) => (await a(this, Pt)).fontConnectorPreview(e, t, r, JSON.stringify(n)).then((h) => h ?? h), this.getConfigurationOptions = async (e) => (await a(this, it)).fontConnectorGetConfigurationOptions(e).then((r) => i(r)), this.getCapabilities = async (e) => (await a(this, it)).fontConnectorGetCapabilities(e).then((r) => i(r)), this.parseDeprecatedFontType = (e) => {
1108
- if (e === Gt.file) return Tt.file;
1109
- if (e === Gt.collection) return Tt.collection;
1110
- }, g(this, it, o), g(this, Pt, o);
1106
+ u(this, Ot);
1107
+ this.query = async (e, t, r = {}) => (await a(this, it)).fontConnectorQuery(e, JSON.stringify(t), JSON.stringify(r)).then((c) => i(c)), this.detail = async (e, t, r = {}) => (await a(this, it)).fontConnectorDetail(e, t, JSON.stringify(r)).then((c) => i(c)), this.download = async (e, t, r = {}) => (await a(this, Ot)).fontConnectorDownload(e, t, JSON.stringify(r)).then((c) => c ?? c), this.preview = async (e, t, r, n = {}) => (await a(this, Ot)).fontConnectorPreview(e, t, r, JSON.stringify(n)).then((h) => h ?? h), this.getConfigurationOptions = async (e) => (await a(this, it)).fontConnectorGetConfigurationOptions(e).then((r) => i(r)), this.getCapabilities = async (e) => (await a(this, it)).fontConnectorGetCapabilities(e).then((r) => i(r)), this.parseDeprecatedFontType = (e) => {
1108
+ if (e === Tt.file) return _t.file;
1109
+ if (e === Tt.collection) return _t.collection;
1110
+ }, g(this, it, o), g(this, Ot, o);
1111
1111
  }
1112
1112
  }
1113
- it = new WeakMap(), Pt = new WeakMap();
1113
+ it = new WeakMap(), Ot = new WeakMap();
1114
1114
  var P;
1115
1115
  class Ye {
1116
1116
  /**
@@ -1125,8 +1125,8 @@ class Ye {
1125
1125
  }
1126
1126
  }
1127
1127
  P = new WeakMap();
1128
- var Ot;
1129
- class ue {
1128
+ var Ft;
1129
+ class ge {
1130
1130
  /**
1131
1131
  * @ignore
1132
1132
  */
@@ -1134,8 +1134,8 @@ class ue {
1134
1134
  /**
1135
1135
  * @ignore
1136
1136
  */
1137
- u(this, Ot);
1138
- this.setShapeProperties = async (e, t) => (await a(this, Ot)).setShapeProperties(e, JSON.stringify(t)).then((n) => i(n)), this.setEnableFill = async (e, t) => {
1137
+ u(this, Ft);
1138
+ this.setShapeProperties = async (e, t) => (await a(this, Ft)).setShapeProperties(e, JSON.stringify(t)).then((n) => i(n)), this.setEnableFill = async (e, t) => {
1139
1139
  const r = { enableFill: t };
1140
1140
  return this.setShapeProperties(e, r);
1141
1141
  }, this.setFillColor = async (e, t) => {
@@ -1153,7 +1153,7 @@ class ue {
1153
1153
  }, this.setFlagAllCornersSame = async (e, t) => {
1154
1154
  const r = { allCornersSame: t };
1155
1155
  return this.setShapeProperties(e, r);
1156
- }, this.setShapeCorners = async (e, t) => (await a(this, Ot)).setShapeCorners(e, JSON.stringify(t)).then((n) => i(n)), this.setRadiusAll = async (e, t) => {
1156
+ }, this.setShapeCorners = async (e, t) => (await a(this, Ft)).setShapeCorners(e, JSON.stringify(t)).then((n) => i(n)), this.setRadiusAll = async (e, t) => {
1157
1157
  const r = { radiusAll: t };
1158
1158
  return this.setShapeCorners(e, r);
1159
1159
  }, this.setRadiusTopLeft = async (e, t) => {
@@ -1168,10 +1168,10 @@ class ue {
1168
1168
  }, this.setRadiusBottomRight = async (e, t) => {
1169
1169
  const r = { bottomRight: t };
1170
1170
  return this.setShapeCorners(e, r);
1171
- }, g(this, Ot, o);
1171
+ }, g(this, Ft, o);
1172
1172
  }
1173
1173
  }
1174
- Ot = new WeakMap();
1174
+ Ft = new WeakMap();
1175
1175
  var d;
1176
1176
  class Ze {
1177
1177
  /**
@@ -1290,12 +1290,12 @@ class Ze {
1290
1290
  }, this.setBrandKitGradient = async (e, t) => {
1291
1291
  const r = { id: t };
1292
1292
  return (await a(this, d)).updateFrameGradientSettings(e, JSON.stringify(r)).then((c) => i(c));
1293
- }, this.setSmartCropSubjectId = async (e, t) => (await a(this, d)).setSmartCropSubjectId(e, t).then((n) => i(n)), g(this, d, o), this.shapeController = new ue(a(this, d)), this.constraints = new Zr(a(this, d));
1293
+ }, this.setSmartCropSubjectId = async (e, t) => (await a(this, d)).setSmartCropSubjectId(e, t).then((n) => i(n)), g(this, d, o), this.shapeController = new ge(a(this, d)), this.constraints = new Qr(a(this, d));
1294
1294
  }
1295
1295
  }
1296
1296
  d = new WeakMap();
1297
1297
  var F;
1298
- class Zr {
1298
+ class Qr {
1299
1299
  /**
1300
1300
  * @ignore
1301
1301
  */
@@ -1349,7 +1349,7 @@ class Qe {
1349
1349
  this.currentEngineVersion = ms.current, this.currentSDKVersion = fs.version;
1350
1350
  }
1351
1351
  }
1352
- var m, zt;
1352
+ var m, Kt;
1353
1353
  class Xe {
1354
1354
  /**
1355
1355
  * @ignore
@@ -1359,7 +1359,7 @@ class Xe {
1359
1359
  * @ignore
1360
1360
  */
1361
1361
  u(this, m);
1362
- u(this, zt);
1362
+ u(this, Kt);
1363
1363
  this.getAll = async () => (await a(this, m)).getLayouts().then((t) => i(t)), this.getById = async (e) => (await a(this, m)).getLayoutById(e).then((r) => i(r)), this.getByName = async (e) => (await a(this, m)).getLayoutByName(e).then((r) => i(r)), this.getSelected = async () => (await a(this, m)).getSelectedLayout().then((t) => i(t)), this.remove = async (e) => (await a(this, m)).removeLayout(e).then((r) => i(r)), this.create = async (e, t) => {
1364
1364
  const r = await a(this, m);
1365
1365
  return t != null && t.length ? r.addLayouts(e, JSON.stringify(t)).then((n) => i(n)) : r.addLayout(e).then((n) => i(n));
@@ -1368,7 +1368,7 @@ class Xe {
1368
1368
  pageSize: t
1369
1369
  };
1370
1370
  return r.selectLayoutWithOptions(e, JSON.stringify(n)).then((c) => i(c));
1371
- }, this.duplicate = async (e) => (await a(this, m)).duplicateLayout(e).then((r) => i(r)), this.reset = async (e) => (await a(this, m)).resetLayout(e).then((r) => i(r)), this.setHeight = async (e, t) => (await a(this, m)).setLayoutHeight(e, t).then((n) => i(n)), this.setWidth = async (e, t) => (await a(this, m)).setLayoutWidth(e, t).then((n) => i(n)), this.setUnit = async (e, t) => (await a(this, m)).setLayoutUnit(e, t).then((n) => i(n)), this.resetHeight = async (e) => (await a(this, m)).resetLayoutHeight(e).then((r) => i(r)), this.resetWidth = async (e) => (await a(this, m)).resetLayoutWidth(e).then((r) => i(r)), this.resetUnit = async (e) => (await a(this, m)).resetLayoutUnit(e).then((r) => i(r)), this.getSelectedSnapshot = async () => (await a(this, zt)).getPageSnapshot().then((t) => t ?? t), this.setIntent = async (e, t) => (await a(this, m)).setLayoutIntent(e, t).then((n) => i(n)), this.resetIntent = async (e) => (await a(this, m)).resetLayoutIntent(e).then((r) => i(r)), this.setFillColor = async (e, t) => (await a(this, m)).setLayoutFillColor(e, JSON.stringify(t)).then((n) => i(n)), this.setFillColorEnabled = async (e, t) => (await a(this, m)).setLayoutFillColorEnabled(e, t).then((n) => i(n)), this.resetFillColor = async (e) => (await a(this, m)).resetLayoutFillColor(e).then((r) => i(r)), this.setBleedValue = async (e, t, r) => {
1371
+ }, this.duplicate = async (e) => (await a(this, m)).duplicateLayout(e).then((r) => i(r)), this.reset = async (e) => (await a(this, m)).resetLayout(e).then((r) => i(r)), this.setHeight = async (e, t) => (await a(this, m)).setLayoutHeight(e, t).then((n) => i(n)), this.setWidth = async (e, t) => (await a(this, m)).setLayoutWidth(e, t).then((n) => i(n)), this.setUnit = async (e, t) => (await a(this, m)).setLayoutUnit(e, t).then((n) => i(n)), this.resetHeight = async (e) => (await a(this, m)).resetLayoutHeight(e).then((r) => i(r)), this.resetWidth = async (e) => (await a(this, m)).resetLayoutWidth(e).then((r) => i(r)), this.resetUnit = async (e) => (await a(this, m)).resetLayoutUnit(e).then((r) => i(r)), this.getSelectedSnapshot = async () => (await a(this, Kt)).getPageSnapshot().then((t) => t ?? t), this.setIntent = async (e, t) => (await a(this, m)).setLayoutIntent(e, t).then((n) => i(n)), this.resetIntent = async (e) => (await a(this, m)).resetLayoutIntent(e).then((r) => i(r)), this.setFillColor = async (e, t) => (await a(this, m)).setLayoutFillColor(e, JSON.stringify(t)).then((n) => i(n)), this.setFillColorEnabled = async (e, t) => (await a(this, m)).setLayoutFillColorEnabled(e, t).then((n) => i(n)), this.resetFillColor = async (e) => (await a(this, m)).resetLayoutFillColor(e).then((r) => i(r)), this.setBleedValue = async (e, t, r) => {
1372
1372
  const n = r ? {
1373
1373
  left: r === X.left ? t : void 0,
1374
1374
  top: r === X.top ? t : void 0,
@@ -1379,11 +1379,11 @@ class Xe {
1379
1379
  }, this.setAreBleedValuesCombined = async (e, t) => {
1380
1380
  const r = { areBleedValuesCombined: t };
1381
1381
  return (await a(this, m)).updateLayoutBleed(e, JSON.stringify(r)).then((c) => i(c));
1382
- }, this.resetBleedValues = async (e) => (await a(this, m)).updateLayoutBleed(e, null).then((r) => i(r)), this.setPrivateData = async (e, t) => (await a(this, m)).setLayoutPrivateData(e, JSON.stringify(t)).then((n) => i(n)), this.getPrivateData = async (e) => (await a(this, m)).getLayoutPrivateData(e).then((r) => i(r)), this.setDisplayName = async (e, t) => (await a(this, m)).setLayoutDisplayName(e, t).then((n) => i(n)), this.getDisplayName = async (e) => (await a(this, m)).getLayoutDisplayName(e).then((r) => i(r)), this.resetDisplayName = async (e) => (await a(this, m)).setLayoutDisplayName(e, null).then((r) => i(r)), this.setAvailableForUser = async (e, t) => (await a(this, m)).setLayoutAvailableForUser(e, t).then((n) => i(n)), this.setSelectedByUser = async (e, t) => (await a(this, m)).setLayoutSelectedByUser(e, t).then((n) => i(n)), this.setResizableByUser = async (e, t) => (await a(this, m)).setLayoutResizableByUser(e, JSON.stringify(t)).then((n) => i(n)), g(this, m, o), g(this, zt, o);
1382
+ }, this.resetBleedValues = async (e) => (await a(this, m)).updateLayoutBleed(e, null).then((r) => i(r)), this.setPrivateData = async (e, t) => (await a(this, m)).setLayoutPrivateData(e, JSON.stringify(t)).then((n) => i(n)), this.getPrivateData = async (e) => (await a(this, m)).getLayoutPrivateData(e).then((r) => i(r)), this.setDisplayName = async (e, t) => (await a(this, m)).setLayoutDisplayName(e, t).then((n) => i(n)), this.getDisplayName = async (e) => (await a(this, m)).getLayoutDisplayName(e).then((r) => i(r)), this.resetDisplayName = async (e) => (await a(this, m)).setLayoutDisplayName(e, null).then((r) => i(r)), this.setAvailableForUser = async (e, t) => (await a(this, m)).setLayoutAvailableForUser(e, t).then((n) => i(n)), this.setSelectedByUser = async (e, t) => (await a(this, m)).setLayoutSelectedByUser(e, t).then((n) => i(n)), this.setResizableByUser = async (e, t) => (await a(this, m)).setLayoutResizableByUser(e, JSON.stringify(t)).then((n) => i(n)), g(this, m, o), g(this, Kt, o);
1383
1383
  }
1384
1384
  }
1385
- m = new WeakMap(), zt = new WeakMap();
1386
- var ge = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.mediumres = "mediumres", s.highres = "highres", s.original = "original", s))(ge || {}), Os = /* @__PURE__ */ ((s) => (s.web = "web", s.print = "print", s.animation = "animation", s))(Os || {}), Z, Kt;
1385
+ m = new WeakMap(), Kt = new WeakMap();
1386
+ var ye = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.mediumres = "mediumres", s.highres = "highres", s.original = "original", s))(ye || {}), Os = /* @__PURE__ */ ((s) => (s.web = "web", s.print = "print", s.animation = "animation", s))(Os || {}), Z, jt;
1387
1387
  class ts {
1388
1388
  /**
1389
1389
  * @ignore
@@ -1393,12 +1393,12 @@ class ts {
1393
1393
  * @ignore
1394
1394
  */
1395
1395
  u(this, Z);
1396
- u(this, Kt);
1396
+ u(this, jt);
1397
1397
  this.query = async (e, t, r = {}) => (await a(this, Z)).mediaConnectorQuery(e, JSON.stringify(t), JSON.stringify(r)).then((c) => i(c)), this.detail = async (e, t, r = {}) => (await a(this, Z)).mediaConnectorDetail(e, t, JSON.stringify(r)).then((c) => i(c)), this.download = async (e, t, r, n = {}) => {
1398
1398
  const c = this.parseDeprecatedMediaDownloadType(
1399
1399
  r
1400
1400
  );
1401
- return (await a(this, Kt)).mediaConnectorDownload(
1401
+ return (await a(this, jt)).mediaConnectorDownload(
1402
1402
  e,
1403
1403
  t,
1404
1404
  c,
@@ -1407,12 +1407,12 @@ class ts {
1407
1407
  ).then((l) => {
1408
1408
  if (l instanceof Uint8Array)
1409
1409
  return l;
1410
- throw typeof l == "object" && l !== null && "success" in l && !l.success && te(l), new Error(`Unexpected response type: ${typeof l}.`);
1410
+ throw typeof l == "object" && l !== null && "success" in l && !l.success && St(l), new Error(`Unexpected response type: ${typeof l}.`);
1411
1411
  });
1412
1412
  }, this.getConfigurationOptions = async (e) => (await a(this, Z)).mediaConnectorGetConfigurationOptions(e).then((r) => i(r)), this.getCapabilities = async (e) => (await a(this, Z)).mediaConnectorGetCapabilities(e).then((r) => i(r)), this.parseDeprecatedMediaType = (e) => {
1413
- if (e === Gt.file) return Tt.file;
1414
- if (e === Gt.collection) return Tt.collection;
1415
- }, this.upload = async (e, t, r = {}) => (await a(this, Z)).mediaConnectorUpload(e, JSON.stringify(t), JSON.stringify(r)).then((c) => i(c)), g(this, Z, o), g(this, Kt, o);
1413
+ if (e === Tt.file) return _t.file;
1414
+ if (e === Tt.collection) return _t.collection;
1415
+ }, this.upload = async (e, t, r = {}) => (await a(this, Z)).mediaConnectorUpload(e, JSON.stringify(t), JSON.stringify(r)).then((c) => i(c)), g(this, Z, o), g(this, jt, o);
1416
1416
  }
1417
1417
  /**
1418
1418
  * This method will parse the deprecatedMediaDownloadType to the new media download type.
@@ -1422,17 +1422,17 @@ class ts {
1422
1422
  */
1423
1423
  parseDeprecatedMediaDownloadType(o) {
1424
1424
  switch (o) {
1425
- case de.HighResolutionWeb:
1426
- return ge.highres;
1427
- case de.LowResolutionWeb:
1428
- return ge.thumbnail;
1425
+ case le.HighResolutionWeb:
1426
+ return ye.highres;
1427
+ case le.LowResolutionWeb:
1428
+ return ye.thumbnail;
1429
1429
  default:
1430
1430
  return o;
1431
1431
  }
1432
1432
  }
1433
1433
  }
1434
- Z = new WeakMap(), Kt = new WeakMap();
1435
- var D, jt, ws;
1434
+ Z = new WeakMap(), jt = new WeakMap();
1435
+ var D, Wt, ws;
1436
1436
  let es = (ws = class {
1437
1437
  /**
1438
1438
  * @ignore
@@ -1445,14 +1445,14 @@ let es = (ws = class {
1445
1445
  /**
1446
1446
  * @ignore
1447
1447
  */
1448
- u(this, jt);
1449
- this.add = async () => (await a(this, D)).addPage().then((t) => i(t)), this.remove = async (e) => (await a(this, D)).removePage(e).then((r) => i(r)), this.select = async (e) => (await a(this, D)).selectPage(e).then((r) => i(r)), this.setVisibility = async (e, t) => (await a(this, D)).setPageIsVisible(e, t).then((n) => i(n)), this.duplicate = async (e) => (await a(this, D)).duplicatePage(e).then((r) => i(r)), this.getAll = async () => (await a(this, D)).getPages().then((t) => i(t)), this.getById = async (e) => (await a(this, D)).getPageById(e).then((r) => i(r)), this.getSnapshot = async (e, t) => (await a(this, jt)).getPageSnapshotWithSettings(e, t == null ? null : JSON.stringify(t)).then((n) => {
1448
+ u(this, Wt);
1449
+ this.add = async () => (await a(this, D)).addPage().then((t) => i(t)), this.remove = async (e) => (await a(this, D)).removePage(e).then((r) => i(r)), this.select = async (e) => (await a(this, D)).selectPage(e).then((r) => i(r)), this.setVisibility = async (e, t) => (await a(this, D)).setPageIsVisible(e, t).then((n) => i(n)), this.duplicate = async (e) => (await a(this, D)).duplicatePage(e).then((r) => i(r)), this.getAll = async () => (await a(this, D)).getPages().then((t) => i(t)), this.getById = async (e) => (await a(this, D)).getPageById(e).then((r) => i(r)), this.getSnapshot = async (e, t) => (await a(this, Wt)).getPageSnapshotWithSettings(e, t == null ? null : JSON.stringify(t)).then((n) => {
1450
1450
  if (n instanceof Uint8Array)
1451
1451
  return n;
1452
- throw typeof n == "object" && n !== null && "success" in n && !n.success && te(n), new Error(`Unexpected response type: ${typeof n}.`);
1453
- }), this.setWidth = async (e, t) => (e !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, D)).setPageWidth(t).then((n) => i(n))), this.setHeight = async (e, t) => (e !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, D)).setPageHeight(t).then((n) => i(n))), this.setSize = async (e, t) => (await a(this, D)).setPageSize(e, t).then((n) => i(n)), this.move = async (e, t) => (await a(this, D)).reorderPages(e, t).then((n) => i(n)), g(this, D, o), g(this, jt, o);
1452
+ throw typeof n == "object" && n !== null && "success" in n && !n.success && St(n), new Error(`Unexpected response type: ${typeof n}.`);
1453
+ }), this.setWidth = async (e, t) => (e !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, D)).setPageWidth(t).then((n) => i(n))), this.setHeight = async (e, t) => (e !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, D)).setPageHeight(t).then((n) => i(n))), this.setSize = async (e, t) => (await a(this, D)).setPageSize(e, t).then((n) => i(n)), this.move = async (e, t) => (await a(this, D)).reorderPages(e, t).then((n) => i(n)), g(this, D, o), g(this, Wt, o);
1454
1454
  }
1455
- }, D = new WeakMap(), jt = new WeakMap(), ws);
1455
+ }, D = new WeakMap(), Wt = new WeakMap(), ws);
1456
1456
  var U;
1457
1457
  class ss {
1458
1458
  /**
@@ -1467,7 +1467,7 @@ class ss {
1467
1467
  }
1468
1468
  }
1469
1469
  U = new WeakMap();
1470
- var pe = /* @__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.dataSource = "dataSource", s))(pe || {}), Qr = /* @__PURE__ */ ((s) => (s.Monday = "monday", s.Tuesday = "tuesday", s.Wednesday = "wednesday", s.Thursday = "thursday", s.Friday = "friday", s.Saturday = "saturday", s.Sunday = "sunday", s))(Qr || {}), Xr = /* @__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))(Xr || {}), Ut = /* @__PURE__ */ ((s) => (s.visible = "visible", s.invisible = "invisible", s.conditional = "conditional", s))(Ut || {}), tn = /* @__PURE__ */ ((s) => (s.boolean = "boolean", s.text = "text", s.number = "number", s))(tn || {}), en = /* @__PURE__ */ ((s) => (s.equals = "=", s.notEquals = "!=", s.greaterThan = ">", s.greaterThanOrEquals = ">=", s.lessThan = "<", s.lessThanOrEquals = "<=", s))(en || {}), sn = /* @__PURE__ */ ((s) => (s.injected = "injected", s.connector = "connector", s))(sn || {}), rn = /* @__PURE__ */ ((s) => (s.table = "table", s.list = "list", s))(rn || {});
1470
+ var ae = /* @__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.dataSource = "dataSource", s))(ae || {}), Xr = /* @__PURE__ */ ((s) => (s.Monday = "monday", s.Tuesday = "tuesday", s.Wednesday = "wednesday", s.Thursday = "thursday", s.Friday = "friday", s.Saturday = "saturday", s.Sunday = "sunday", s))(Xr || {}), tn = /* @__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))(tn || {}), kt = /* @__PURE__ */ ((s) => (s.visible = "visible", s.invisible = "invisible", s.conditional = "conditional", s))(kt || {}), en = /* @__PURE__ */ ((s) => (s.boolean = "boolean", s.text = "text", s.number = "number", s))(en || {}), sn = /* @__PURE__ */ ((s) => (s.equals = "=", s.notEquals = "!=", s.greaterThan = ">", s.greaterThanOrEquals = ">=", s.lessThan = "<", s.lessThanOrEquals = "<=", s))(sn || {}), Fs = /* @__PURE__ */ ((s) => (s.injected = "injected", s.connector = "connector", s))(Fs || {}), rn = /* @__PURE__ */ ((s) => (s.table = "table", s.list = "list", s))(rn || {});
1471
1471
  let nn = class {
1472
1472
  /**
1473
1473
  * @ignore
@@ -1512,7 +1512,7 @@ let nn = class {
1512
1512
  const n = JSON.parse(t).map(
1513
1513
  (c) => {
1514
1514
  var h;
1515
- return c.type === pe.list ? {
1515
+ return c.type === ae.list ? {
1516
1516
  ...c,
1517
1517
  items: c.items.map(
1518
1518
  (l) => l.value
@@ -1569,14 +1569,14 @@ let nn = class {
1569
1569
  }, this.onAsyncError = (t) => {
1570
1570
  const r = JSON.parse(t);
1571
1571
  if ((r == null ? void 0 : r.type) === "dataRow") {
1572
- const n = new or(
1572
+ const n = new cr(
1573
1573
  r.count,
1574
1574
  r.message,
1575
1575
  r.exceptions
1576
1576
  );
1577
1577
  this.config.events.onAsyncError.trigger(n);
1578
1578
  } else if ((r == null ? void 0 : r.type) === "action") {
1579
- const n = new ir(
1579
+ const n = new or(
1580
1580
  r.message,
1581
1581
  r.id,
1582
1582
  r.event,
@@ -1614,7 +1614,7 @@ class rs {
1614
1614
  }
1615
1615
  }
1616
1616
  wt = new WeakMap();
1617
- var an = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(an || {}), on = /* @__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))(on || {}), z = /* @__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))(z || {}), cn = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s.HTML = "html", s))(cn || {}), ye = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(ye || {}), Ft;
1617
+ var an = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(an || {}), on = /* @__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))(on || {}), z = /* @__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))(z || {}), cn = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s.HTML = "html", s))(cn || {}), pe = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(pe || {}), Et;
1618
1618
  class ns {
1619
1619
  /**
1620
1620
  * @ignore
@@ -1623,12 +1623,12 @@ class ns {
1623
1623
  /**
1624
1624
  * @ignore
1625
1625
  */
1626
- u(this, Ft);
1627
- this.setTool = async (e) => (await a(this, Ft)).setTool(e).then((r) => i(r)), this.getSelected = async () => (await a(this, Ft)).getSelectedTool().then((t) => i(t)), this.setPointer = async () => this.setTool(z.SELECT), this.setSelect = async () => this.setTool(z.SELECT), this.setHand = async () => this.setTool(z.HAND), this.setZoom = async () => this.setTool(z.ZOOM), this.setTextFrame = async () => this.setTool(z.TEXT_FRAME), this.setImageFrame = async () => this.setTool(z.IMAGE_FRAME), this.setShapeRect = async () => this.setTool(z.SHAPE_RECT), this.setShapeEllipse = async () => this.setTool(z.SHAPE_ELLIPSE), this.setShapePolygon = async () => this.setTool(z.SHAPE_POLYGON), g(this, Ft, o);
1626
+ u(this, Et);
1627
+ this.setTool = async (e) => (await a(this, Et)).setTool(e).then((r) => i(r)), this.getSelected = async () => (await a(this, Et)).getSelectedTool().then((t) => i(t)), this.setPointer = async () => this.setTool(z.SELECT), this.setSelect = async () => this.setTool(z.SELECT), this.setHand = async () => this.setTool(z.HAND), this.setZoom = async () => this.setTool(z.ZOOM), this.setTextFrame = async () => this.setTool(z.TEXT_FRAME), this.setImageFrame = async () => this.setTool(z.IMAGE_FRAME), this.setShapeRect = async () => this.setTool(z.SHAPE_RECT), this.setShapeEllipse = async () => this.setTool(z.SHAPE_ELLIPSE), this.setShapePolygon = async () => this.setTool(z.SHAPE_POLYGON), g(this, Et, o);
1628
1628
  }
1629
1629
  }
1630
- Ft = new WeakMap();
1631
- var K, T, Wt;
1630
+ Et = new WeakMap();
1631
+ var K, _, qt;
1632
1632
  class as {
1633
1633
  /**
1634
1634
  * @ignore
@@ -1638,13 +1638,13 @@ class as {
1638
1638
  * @ignore
1639
1639
  */
1640
1640
  u(this, K);
1641
- u(this, T);
1642
- u(this, Wt);
1641
+ u(this, _);
1642
+ u(this, qt);
1643
1643
  this.undo = async () => (await a(this, K)).undo().then((r) => i(r)), this.redo = async () => (await a(this, K)).redo().then((r) => i(r)), this.addCustomData = async (t, r) => (await a(this, K)).setCustomUndoData(t, r, !1).then((c) => i(c)), this.record = async (t, r) => {
1644
1644
  try {
1645
- await a(this, T).beginIfNoneActive(t), await r(a(this, Wt)), await a(this, T).end();
1645
+ await a(this, _).beginIfNoneActive(t), await r(a(this, qt)), await a(this, _).end();
1646
1646
  } catch (n) {
1647
- throw await a(this, T).abort(), n;
1647
+ throw await a(this, _).abort(), n;
1648
1648
  }
1649
1649
  }, this.pause = async () => (await a(this, K)).pause().then((r) => i(r)), this.resume = async () => (await a(this, K)).resume().then((r) => i(r)), this.clear = async () => (await a(this, K)).clear().then((r) => i(r)), this.advanced = {
1650
1650
  /**
@@ -1653,32 +1653,32 @@ class as {
1653
1653
  * @experimental This method is experimental and may change in future versions.
1654
1654
  * @returns
1655
1655
  */
1656
- begin: async (t) => a(this, T).begin(t),
1656
+ begin: async (t) => a(this, _).begin(t),
1657
1657
  /**
1658
1658
  * This will start a new undo operation if there is no other undo operation recording.
1659
1659
  * This does not throw.
1660
1660
  * @experimental This method is experimental and may change in future versions.
1661
1661
  * @returns
1662
1662
  */
1663
- beginIfNoneActive: async (t) => a(this, T).beginIfNoneActive(t),
1663
+ beginIfNoneActive: async (t) => a(this, _).beginIfNoneActive(t),
1664
1664
  /**
1665
1665
  * Ends the currently active recording operation.
1666
1666
  * If there is no recording operation currently running this will throw an exception.
1667
1667
  * @experimental This method is experimental and may change in future versions.
1668
1668
  * @returns
1669
1669
  */
1670
- end: async () => a(this, T).end(),
1670
+ end: async () => a(this, _).end(),
1671
1671
  /**
1672
1672
  * Aborts the currently active recording operation.
1673
1673
  * If there is no recording operation currently running this will throw an exception.
1674
1674
  * @experimental This method is experimental and may change in future versions.
1675
1675
  * @returns
1676
1676
  */
1677
- abort: async () => a(this, T).abort()
1678
- }, g(this, K, o), g(this, Wt, e), g(this, T, new hn(o));
1677
+ abort: async () => a(this, _).abort()
1678
+ }, g(this, K, o), g(this, qt, e), g(this, _, new hn(o));
1679
1679
  }
1680
1680
  }
1681
- K = new WeakMap(), T = new WeakMap(), Wt = new WeakMap();
1681
+ K = new WeakMap(), _ = new WeakMap(), qt = new WeakMap();
1682
1682
  var ot;
1683
1683
  class hn {
1684
1684
  /**
@@ -1697,7 +1697,7 @@ const dn = (s, o = 2) => {
1697
1697
  const e = Math.pow(10, o);
1698
1698
  return Math.round(s * e) / e;
1699
1699
  };
1700
- var qt, Et;
1700
+ var Yt, Dt;
1701
1701
  class is {
1702
1702
  /**
1703
1703
  * @ignore
@@ -1706,21 +1706,21 @@ class is {
1706
1706
  /**
1707
1707
  * @ignore
1708
1708
  */
1709
- u(this, qt);
1710
- u(this, Et);
1709
+ u(this, Yt);
1710
+ u(this, Dt);
1711
1711
  this.round = (t, r) => i({
1712
1712
  data: String(dn(t, r)),
1713
1713
  success: !0,
1714
1714
  status: 200,
1715
1715
  parsedData: null
1716
1716
  }), this.createEnvironmentBaseURL = (t) => {
1717
- const { type: r = ye.SANDBOX, environment: n = "ft-nostress", version: c = "1" } = t, h = r == ye.SANDBOX ? "chili-publish-sandbox" : "chili-publish";
1717
+ const { type: r = pe.SANDBOX, environment: n = "ft-nostress", version: c = "1" } = t, h = r == pe.SANDBOX ? "chili-publish-sandbox" : "chili-publish";
1718
1718
  return `https://${n}.${h}.online/grafx/api/v${c}/environment/${n}`;
1719
1719
  }, this.stageFiles = async (t, r, n) => {
1720
- const c = a(this, Et).get(tt.GraFxStudioEnvironmentApiUrl);
1720
+ const c = a(this, Dt).get(tt.GraFxStudioEnvironmentApiUrl);
1721
1721
  if (!c)
1722
1722
  throw new Error("GraFx Studio Environment API URL is not set");
1723
- const h = `${c}connectors/${r}/stage`, l = a(this, Et).get(tt.GraFxStudioAuthToken);
1723
+ const h = `${c}connectors/${r}/stage`, l = a(this, Dt).get(tt.GraFxStudioAuthToken);
1724
1724
  if (!l)
1725
1725
  throw new Error("GraFx Studio Auth Token is not set");
1726
1726
  const p = new FormData();
@@ -1751,14 +1751,18 @@ class is {
1751
1751
  if (!y.ok)
1752
1752
  throw new Error("Failed to stage files");
1753
1753
  return await y.json();
1754
- }, this.unitEvaluate = async (t, r) => (await a(this, qt)).unitEvaluate(t, r).then((c) => i(c)), g(this, qt, o), g(this, Et, e);
1754
+ }, this.unitEvaluate = async (t, r) => (await a(this, Yt)).unitEvaluate(t, r).then((c) => i(c)), g(this, Yt, o), g(this, Dt, e);
1755
1755
  }
1756
1756
  }
1757
- qt = new WeakMap(), Et = new WeakMap();
1758
- var Yt;
1759
- class ln {
1757
+ Yt = new WeakMap(), Dt = new WeakMap();
1758
+ const ln = (s) => s.type === ae.dataSource, un = (s) => {
1759
+ var o;
1760
+ return s ? ln(s) && ((o = s == null ? void 0 : s.value) == null ? void 0 : o.type) === Fs.injected : !1;
1761
+ };
1762
+ var Zt;
1763
+ class gn {
1760
1764
  constructor(o) {
1761
- u(this, Yt);
1765
+ u(this, Zt);
1762
1766
  this.setMinimum = async (e, t) => {
1763
1767
  const r = { minValue: { value: t } };
1764
1768
  return this.applyPropertiesUpdate(e, r);
@@ -1783,18 +1787,18 @@ class ln {
1783
1787
  }, this.setNumberOfDecimals = async (e, t) => {
1784
1788
  const r = { numberOfDecimals: { value: t } };
1785
1789
  return this.applyPropertiesUpdate(e, r);
1786
- }, g(this, Yt, o);
1790
+ }, g(this, Zt, o);
1787
1791
  }
1788
1792
  async applyPropertiesUpdate(o, e) {
1789
- const r = await (await a(this, Yt)).updateNumberVariableProperties(o, JSON.stringify(e));
1793
+ const r = await (await a(this, Zt)).updateNumberVariableProperties(o, JSON.stringify(e));
1790
1794
  return i(r);
1791
1795
  }
1792
1796
  }
1793
- Yt = new WeakMap();
1794
- var Zt;
1795
- class un {
1797
+ Zt = new WeakMap();
1798
+ var Qt;
1799
+ class yn {
1796
1800
  constructor(o) {
1797
- u(this, Zt);
1801
+ u(this, Qt);
1798
1802
  this.setDisplayFormat = async (e, t) => {
1799
1803
  const r = { displayFormat: { value: t } };
1800
1804
  return this.applyPropertiesUpdate(e, r);
@@ -1810,45 +1814,70 @@ class un {
1810
1814
  }, this.setExcludedDays = async (e, t) => {
1811
1815
  const r = { excludedDays: { value: t } };
1812
1816
  return this.applyPropertiesUpdate(e, r);
1813
- }, g(this, Zt, o);
1817
+ }, g(this, Qt, o);
1814
1818
  }
1815
1819
  async applyPropertiesUpdate(o, e) {
1816
- const r = await (await a(this, Zt)).updateDateVariableProperties(o, JSON.stringify(e));
1820
+ const r = await (await a(this, Qt)).updateDateVariableProperties(o, JSON.stringify(e));
1817
1821
  return i(r);
1818
1822
  }
1819
1823
  }
1820
- Zt = new WeakMap();
1821
- var _, Dt;
1822
- class gn {
1824
+ Qt = new WeakMap();
1825
+ var k, Lt;
1826
+ class pn {
1823
1827
  constructor(o, e) {
1824
- u(this, _);
1825
- u(this, Dt);
1828
+ u(this, k);
1829
+ u(this, Lt);
1826
1830
  this.setValue = async (t, r) => {
1827
- const n = await a(this, _);
1831
+ const n = await a(this, k);
1828
1832
  let c;
1829
- return Array.isArray(r) ? c = r.map((h) => a(this, Dt).mapDataItemToEngine(h)) : c = r, n.setVariableValue(t, c).then((h) => i(h));
1830
- }, this.getInjectedData = async (t) => (await a(this, _)).getInjectedDataSourceVariableData(t).then((n) => i(n)).then((n) => {
1833
+ return Array.isArray(r) ? c = r.map((h) => a(this, Lt).mapDataItemToEngine(h)) : c = r, n.setVariableValue(t, c).then((h) => i(h));
1834
+ }, this.getInjectedData = async (t) => (await a(this, k)).getInjectedDataSourceVariableData(t).then((n) => i(n)).then((n) => {
1831
1835
  const c = { ...n, parsedData: null };
1832
1836
  return n.parsedData && (c.parsedData = {
1833
1837
  ...n.parsedData,
1834
1838
  data: n.parsedData.data.map(
1835
- (h) => a(this, Dt).mapEngineToDataItem(h)
1839
+ (h) => a(this, Lt).mapEngineToDataItem(h)
1836
1840
  )
1837
1841
  }), c;
1838
- }), this.setInjectedModel = async (t, r) => {
1842
+ }), this.getInjectedItemById = async (t, r) => {
1843
+ var y;
1844
+ const c = await (await a(this, k)).getVariableById(t).then((b) => i(b));
1845
+ un(c.parsedData) || St({
1846
+ status: 400,
1847
+ error: "Variable is not an injected data source variable"
1848
+ });
1849
+ const h = c.parsedData.value.itemIdPropertyName, p = (y = (await this.getInjectedData(t)).parsedData) == null ? void 0 : y.data.find(
1850
+ (b) => {
1851
+ var S;
1852
+ return ((S = b[h]) == null ? void 0 : S.toString()) === r.toString();
1853
+ }
1854
+ );
1855
+ return p || St({
1856
+ status: 404,
1857
+ error: `Item not found in injected data for variable ${t}`
1858
+ }), {
1859
+ success: !0,
1860
+ status: 200,
1861
+ parsedData: {
1862
+ data: p,
1863
+ continuationToken: null,
1864
+ previousPageToken: null
1865
+ }
1866
+ };
1867
+ }, this.setInjectedModel = async (t, r) => {
1839
1868
  const n = r.properties, c = r.itemIdPropertyName;
1840
- return (await a(this, _)).setInjectedDataSourceVariableModel(t, JSON.stringify(n), c).then((l) => i(l));
1841
- }, this.setSourceType = async (t, r) => (await a(this, _)).setDataSourceVariableSourceType(t, r).then((c) => i(c)), this.setConnector = async (t, r) => {
1842
- const n = await a(this, _), h = new ne().makeConnectorSourceForwardsCompatible(r);
1869
+ return (await a(this, k)).setInjectedDataSourceVariableModel(t, JSON.stringify(n), c).then((l) => i(l));
1870
+ }, this.setSourceType = async (t, r) => (await a(this, k)).setDataSourceVariableSourceType(t, r).then((c) => i(c)), this.setConnector = async (t, r) => {
1871
+ const n = await a(this, k), h = new ne().makeConnectorSourceForwardsCompatible(r);
1843
1872
  return n.setDataSourceVariableConnector(t, JSON.stringify(h)).then((l) => i(l));
1844
- }, this.removeConnector = async (t) => (await a(this, _)).setDataSourceVariableConnector(t, null).then((n) => i(n)), g(this, _, o), g(this, Dt, e);
1873
+ }, this.removeConnector = async (t) => (await a(this, k)).setDataSourceVariableConnector(t, null).then((n) => i(n)), g(this, k, o), g(this, Lt, e);
1845
1874
  }
1846
1875
  async setDisplayOptions(o, e, t) {
1847
- return (await a(this, _)).setDataSourceVariableDisplayOptions(o, e, t ?? void 0).then((n) => i(n));
1876
+ return (await a(this, k)).setDataSourceVariableDisplayOptions(o, e, t ?? void 0).then((n) => i(n));
1848
1877
  }
1849
1878
  }
1850
- _ = new WeakMap(), Dt = new WeakMap();
1851
- var w, Lt, Nt, Cs;
1879
+ k = new WeakMap(), Lt = new WeakMap();
1880
+ var w, Nt, Rt, Cs;
1852
1881
  let os = (Cs = class {
1853
1882
  /**
1854
1883
  * @ignore
@@ -1858,8 +1887,8 @@ let os = (Cs = class {
1858
1887
  * @ignore
1859
1888
  */
1860
1889
  u(this, w);
1861
- u(this, Lt);
1862
1890
  u(this, Nt);
1891
+ u(this, Rt);
1863
1892
  this.getAll = async () => (await a(this, w)).getVariables().then((r) => i(r)).then((r) => {
1864
1893
  const n = r;
1865
1894
  return n.parsedData && (n.parsedData = this.makeVariablesBackwardsCompatible(n.parsedData)), n;
@@ -1869,16 +1898,14 @@ let os = (Cs = class {
1869
1898
  }), this.getByName = async (t) => (await a(this, w)).getVariableByName(t).then((n) => i(n)).then((n) => {
1870
1899
  const c = n;
1871
1900
  return c.parsedData && (c.parsedData = this.makeVariableBackwardsCompatible(c.parsedData)), c;
1872
- }), this.create = async (t, r) => (await a(this, w)).addVariable(t, r).then((c) => i(c)), this.remove = async (t) => (await a(this, w)).removeVariables(t).then((n) => i(n)), this.rename = async (t, r) => (await a(this, w)).setVariableName(t, r).then((c) => i(c)), this.setLabel = async (t, r) => (await a(this, w)).setVariableLabel(t, r).then((c) => i(c)), g(this, Lt, async (t, r) => (await a(this, w)).setVariablePlaceholder(t, r).then((c) => i(c))), this.setPlaceholder = async (t, r) => a(this, Lt).call(this, t, r), this.resetPlaceholder = async (t) => a(this, Lt).call(this, t, null), g(this, Nt, async (t, r) => (await a(this, w)).setVariableHelpText(t, r).then((c) => i(c))), this.setHelpText = async (t, r) => a(this, Nt).call(this, t, r), this.resetHelpText = async (t) => a(this, Nt).call(this, t, null), this.setType = async (t, r) => (await a(this, w)).setVariableType(t, r).then((c) => i(c)), this.setListVariable = async (t, r) => (await a(this, w)).setListVariableItems(
1901
+ }), this.create = async (t, r) => (await a(this, w)).addVariable(t, r).then((c) => i(c)), this.remove = async (t) => (await a(this, w)).removeVariables(t).then((n) => i(n)), this.rename = async (t, r) => (await a(this, w)).setVariableName(t, r).then((c) => i(c)), this.setLabel = async (t, r) => (await a(this, w)).setVariableLabel(t, r).then((c) => i(c)), g(this, Nt, async (t, r) => (await a(this, w)).setVariablePlaceholder(t, r).then((c) => i(c))), this.setPlaceholder = async (t, r) => a(this, Nt).call(this, t, r), this.resetPlaceholder = async (t) => a(this, Nt).call(this, t, null), g(this, Rt, async (t, r) => (await a(this, w)).setVariableHelpText(t, r).then((c) => i(c))), this.setHelpText = async (t, r) => a(this, Rt).call(this, t, r), this.resetHelpText = async (t) => a(this, Rt).call(this, t, null), this.setType = async (t, r) => (await a(this, w)).setVariableType(t, r).then((c) => i(c)), this.setListVariable = async (t, r) => (await a(this, w)).setListVariableItems(
1873
1902
  t,
1874
1903
  r.map((c) => JSON.stringify({ value: c }))
1875
- ).then((c) => i(c)), this.setValue = async (t, r) => (await a(this, w)).setVariableValue(t, r).then(
1876
- (c) => i(c, (h) => gr(h, { id: t }))
1877
- ), this.duplicate = async (t) => (await a(this, w)).duplicateVariable(t).then((n) => i(n)), this.groupVariables = async (t, r) => (await a(this, w)).groupVariables(t, r).then((c) => i(c)), this.ungroupVariables = async (t) => (await a(this, w)).ungroupVariable(t).then((n) => i(n)), this.move = async (t, r, n) => (await a(this, w)).moveVariable(r, n, t).then((h) => i(h)), this.moveVariables = async (t, r, n) => (await a(this, w)).moveVariables(r, n, t).then((h) => i(h)), this.setIsVisible = async (t, r) => {
1878
- const n = r ? { type: Ut.visible } : { type: Ut.invisible };
1904
+ ).then((c) => i(c)), this.setValue = async (t, r) => (await a(this, w)).setVariableValue(t, r).then((c) => i(c, (h) => yr(h, { id: t }))), this.duplicate = async (t) => (await a(this, w)).duplicateVariable(t).then((n) => i(n)), this.groupVariables = async (t, r) => (await a(this, w)).groupVariables(t, r).then((c) => i(c)), this.ungroupVariables = async (t) => (await a(this, w)).ungroupVariable(t).then((n) => i(n)), this.move = async (t, r, n) => (await a(this, w)).moveVariable(r, n, t).then((h) => i(h)), this.moveVariables = async (t, r, n) => (await a(this, w)).moveVariables(r, n, t).then((h) => i(h)), this.setIsVisible = async (t, r) => {
1905
+ const n = r ? { type: kt.visible } : { type: kt.invisible };
1879
1906
  return this.setVariableVisibility(t, n);
1880
1907
  }, this.setIsHidden = async (t, r) => {
1881
- const n = r ? { type: Ut.invisible } : { type: Ut.visible };
1908
+ const n = r ? { type: kt.invisible } : { type: kt.visible };
1882
1909
  return this.setVariableVisibility(t, n);
1883
1910
  }, this.setVariableVisibility = async (t, r) => (await a(this, w)).setVariableVisibility(t, JSON.stringify(r)).then((c) => i(c)), this.setLayoutsForVariableVisibility = async (t) => (await a(this, w)).setLayoutsForVariableVisibility(t ? JSON.stringify(t) : null).then((n) => i(n)), this.setIsRequired = async (t, r) => (await a(this, w)).setVariableIsRequired(t, r).then((c) => i(c)), this.setRemoveParagraphIfEmpty = async (t, r) => (await a(this, w)).setVariableRemoveParagraphIfEmpty(t, r).then((c) => i(c)), this.setVariableCharacterLimit = async (t, r) => (await a(this, w)).setVariableCharacterLimit(t, r).then((c) => i(c)), this.setIsReadonly = async (t, r) => (await a(this, w)).setVariableIsReadonly(t, r).then((c) => i(c)), this.getImageVariableConnectorId = async (t) => (await a(this, w)).getImageVariableConnectorId(t).then((n) => i(n)), this.setImageVariableConnector = async (t, r) => {
1884
1911
  const n = await a(this, w), h = new ne().makeConnectorSourceForwardsCompatible(r);
@@ -1895,13 +1922,13 @@ let os = (Cs = class {
1895
1922
  }, this.setSuffixCharacterStyle = async (t, r) => {
1896
1923
  const n = { suffixCharacterStyleId: { value: r } };
1897
1924
  return this.applyPrefixSuffixDeltaUpdate(t, n);
1898
- }, this.setPrivateData = async (t, r) => (await a(this, w)).setVariablePrivateData(t, JSON.stringify(r)).then((c) => i(c)), this.getPrivateData = async (t) => (await a(this, w)).getVariablePrivateData(t).then((n) => i(n)), this.setAllowImageQuery = async (t, r) => (await a(this, w)).setImageVariableAllowQuery(t, r).then((c) => i(c)), this.setAllowImageUpload = async (t, r) => (await a(this, w)).setImageVariableAllowUpload(t, r).then((c) => i(c)), this.setMinImageUploadSize = async (t, r, n) => (await a(this, w)).setImageVariableUploadMinSize(t, r, n).then((h) => i(h)), this.setIsDontBreak = async (t, r) => (await a(this, w)).setVariableIsDontBreak(t, r).then((c) => i(c)), this.highlightUsages = async (t) => (await a(this, w)).highlightVariableUsages(t).then((n) => i(n)), g(this, w, o), this.number = new ln(a(this, w)), this.date = new un(a(this, w)), this.dataSource = new gn(a(this, w), e);
1925
+ }, this.setPrivateData = async (t, r) => (await a(this, w)).setVariablePrivateData(t, JSON.stringify(r)).then((c) => i(c)), this.getPrivateData = async (t) => (await a(this, w)).getVariablePrivateData(t).then((n) => i(n)), this.setAllowImageQuery = async (t, r) => (await a(this, w)).setImageVariableAllowQuery(t, r).then((c) => i(c)), this.setAllowImageUpload = async (t, r) => (await a(this, w)).setImageVariableAllowUpload(t, r).then((c) => i(c)), this.setMinImageUploadSize = async (t, r, n) => (await a(this, w)).setImageVariableUploadMinSize(t, r, n).then((h) => i(h)), this.setIsDontBreak = async (t, r) => (await a(this, w)).setVariableIsDontBreak(t, r).then((c) => i(c)), this.highlightUsages = async (t) => (await a(this, w)).highlightVariableUsages(t).then((n) => i(n)), g(this, w, o), this.number = new gn(a(this, w)), this.date = new yn(a(this, w)), this.dataSource = new pn(a(this, w), e);
1899
1926
  }
1900
1927
  makeVariablesBackwardsCompatible(o) {
1901
1928
  return o.map((e) => this.makeVariableBackwardsCompatible(e));
1902
1929
  }
1903
1930
  makeVariableBackwardsCompatible(o) {
1904
- return o.type !== pe.list ? o : this.makeListVariableBackwardsCompatible(o);
1931
+ return o.type !== ae.list ? o : this.makeListVariableBackwardsCompatible(o);
1905
1932
  }
1906
1933
  makeListVariableBackwardsCompatible(o) {
1907
1934
  const e = o, t = o.items, r = o.selected, n = t.map((c) => c.value);
@@ -1911,9 +1938,9 @@ let os = (Cs = class {
1911
1938
  const r = await (await a(this, w)).updateVariablePrefixSuffixProperties(o, JSON.stringify(e));
1912
1939
  return i(r);
1913
1940
  }
1914
- }, w = new WeakMap(), Lt = new WeakMap(), Nt = new WeakMap(), Cs);
1941
+ }, w = new WeakMap(), Nt = new WeakMap(), Rt = new WeakMap(), Cs);
1915
1942
  var xt;
1916
- class yn {
1943
+ class wn {
1917
1944
  /**
1918
1945
  * @ignore
1919
1946
  */
@@ -1926,7 +1953,7 @@ class yn {
1926
1953
  }
1927
1954
  }
1928
1955
  xt = new WeakMap();
1929
- class pn {
1956
+ class Cn {
1930
1957
  /**
1931
1958
  * @ignore
1932
1959
  */
@@ -1943,7 +1970,7 @@ class pn {
1943
1970
  }
1944
1971
  }
1945
1972
  var ct;
1946
- class wn {
1973
+ class mn {
1947
1974
  /**
1948
1975
  * @ignore
1949
1976
  */
@@ -1955,28 +1982,28 @@ class wn {
1955
1982
  this.getAll = async () => (await a(this, ct)).getVariables().then((t) => i(t)), this.getById = async (e) => (await a(this, ct)).getVariableById(e).then((r) => i(r)), this.getByName = async (e) => (await a(this, ct)).getVariableByName(e).then((r) => i(r)), this.setListVariable = async (e, t) => (await a(this, ct)).setListVariableItems(
1956
1983
  e,
1957
1984
  t.map((n) => JSON.stringify(n))
1958
- ).then((n) => i(n)), g(this, ct, o), this.image = new Cn(o), this.dataSource = new mn(o);
1985
+ ).then((n) => i(n)), g(this, ct, o), this.image = new fn(o), this.dataSource = new Sn(o);
1959
1986
  }
1960
1987
  }
1961
1988
  ct = new WeakMap();
1962
1989
  var Q;
1963
- class Cn {
1990
+ class fn {
1964
1991
  constructor(o) {
1965
1992
  u(this, Q);
1966
1993
  this.setAllowQuery = async (e, t) => (await a(this, Q)).setImageVariableAllowQuery(e, t).then((n) => i(n)), this.setAllowUpload = async (e, t) => (await a(this, Q)).setImageVariableAllowUpload(e, t).then((n) => i(n)), this.setMinUploadSize = async (e, t, r) => (await a(this, Q)).setImageVariableUploadMinSize(e, t, r).then((c) => i(c)), this.setConnector = async (e, t) => (await a(this, Q)).setImageVariableConnector(e, JSON.stringify(t)).then((n) => i(n)), this.setConnectorContext = async (e, t) => (await a(this, Q)).setImageVariableConnectorContext(e, JSON.stringify(t)).then((n) => i(n)), g(this, Q, o);
1967
1994
  }
1968
1995
  }
1969
1996
  Q = new WeakMap();
1970
- var Qt;
1971
- class mn {
1997
+ var Xt;
1998
+ class Sn {
1972
1999
  constructor(o) {
1973
- u(this, Qt);
1974
- this.setConnector = async (e, t) => (await a(this, Qt)).setDataSourceVariableConnector(e, JSON.stringify(t)).then((n) => i(n)), g(this, Qt, o);
2000
+ u(this, Xt);
2001
+ this.setConnector = async (e, t) => (await a(this, Xt)).setDataSourceVariableConnector(e, JSON.stringify(t)).then((n) => i(n)), g(this, Xt, o);
1975
2002
  }
1976
2003
  }
1977
- Qt = new WeakMap();
2004
+ Xt = new WeakMap();
1978
2005
  var Ct;
1979
- class fn {
2006
+ class bn {
1980
2007
  /**
1981
2008
  * @ignore
1982
2009
  */
@@ -1990,7 +2017,7 @@ class fn {
1990
2017
  }
1991
2018
  Ct = new WeakMap();
1992
2019
  var Mt, re;
1993
- class Sn {
2020
+ class vn {
1994
2021
  /**
1995
2022
  * @ignore
1996
2023
  */
@@ -2014,11 +2041,11 @@ class cs {
2014
2041
  * @param config The configuration object where the SDK and editor can get configured
2015
2042
  */
2016
2043
  constructor(o, e, t) {
2017
- this.config = o, this.connection = e, this.editorAPI = t, this.subscriber = new pn(o), this.variable = new wn(this.editorAPI), this.connector = new fn(this.editorAPI), this.page = new Sn(this.editorAPI), this.canvas = new ce(this.editorAPI), this.brandKit = new yn(this.editorAPI);
2044
+ this.config = o, this.connection = e, this.editorAPI = t, this.subscriber = new Cn(o), this.variable = new mn(this.editorAPI), this.connector = new bn(this.editorAPI), this.page = new vn(this.editorAPI), this.canvas = new he(this.editorAPI), this.brandKit = new wn(this.editorAPI);
2018
2045
  }
2019
2046
  }
2020
- var R = /* @__PURE__ */ ((s) => (s.info = "info", s.warn = "warn", s.error = "error", s))(R || {}), Fs = /* @__PURE__ */ ((s) => (s.general = "general", s.connector = "connector", s.event = "event", s.engine = "engine", s))(Fs || {}), _t = /* @__PURE__ */ ((s) => (s.throw = "throw", s.log = "log", s))(_t || {});
2021
- class Es {
2047
+ var M = /* @__PURE__ */ ((s) => (s.info = "info", s.warn = "warn", s.error = "error", s))(M || {}), Es = /* @__PURE__ */ ((s) => (s.general = "general", s.connector = "connector", s.event = "event", s.engine = "engine", s))(Es || {}), Ht = /* @__PURE__ */ ((s) => (s.throw = "throw", s.log = "log", s))(Ht || {});
2048
+ class Ds {
2022
2049
  constructor(o) {
2023
2050
  this.logger = o;
2024
2051
  }
@@ -2034,13 +2061,13 @@ class Es {
2034
2061
  }
2035
2062
  handleError(o, e, t) {
2036
2063
  var r;
2037
- if (e === _t.log)
2038
- (r = this.logger) == null || r.call(this, R.error, Fs.event, `Error in callback ${t}: ${o}`);
2064
+ if (e === Ht.log)
2065
+ (r = this.logger) == null || r.call(this, M.error, Es.event, `Error in callback ${t}: ${o}`);
2039
2066
  else
2040
2067
  throw o;
2041
2068
  }
2042
2069
  }
2043
- class hs extends Es {
2070
+ class hs extends Ds {
2044
2071
  constructor(o, e) {
2045
2072
  super(e), this.handler = o;
2046
2073
  }
@@ -2053,10 +2080,10 @@ class hs extends Es {
2053
2080
  trigger(...o) {
2054
2081
  const e = this.handler();
2055
2082
  if (e)
2056
- return this.createEventHandlerFn(e, _t.throw)(...o);
2083
+ return this.createEventHandlerFn(e, Ht.throw)(...o);
2057
2084
  }
2058
2085
  }
2059
- class C extends Es {
2086
+ class C extends Ds {
2060
2087
  constructor(o, e) {
2061
2088
  super(e), this.legacyHandler = o, this.subscriptions = /* @__PURE__ */ new Set();
2062
2089
  }
@@ -2068,7 +2095,7 @@ class C extends Es {
2068
2095
  */
2069
2096
  trigger(...o) {
2070
2097
  const e = this.legacyHandler();
2071
- e && this.createEventHandlerFn(e, _t.log)(...o);
2098
+ e && this.createEventHandlerFn(e, Ht.log)(...o);
2072
2099
  for (const t of this.subscriptions)
2073
2100
  t(...o);
2074
2101
  }
@@ -2082,7 +2109,7 @@ class C extends Es {
2082
2109
  * - "throw": Throws an error. Keep in mind that throwing of error in one of the callback will prevent calling of others
2083
2110
  * @returns A function to unsubscribe the callback, preventing it from being invoked in the future.
2084
2111
  */
2085
- registerCallback(o, e = _t.log) {
2112
+ registerCallback(o, e = Ht.log) {
2086
2113
  const t = this.createEventHandlerFn(o, e);
2087
2114
  return this.subscriptions.add(t), () => {
2088
2115
  this.subscriptions.delete(t);
@@ -2097,22 +2124,22 @@ class we {
2097
2124
  * @returns The runtime configuration object.
2098
2125
  */
2099
2126
  static createRuntimeConfig(o) {
2100
- var t, r, n, c, h, l, p, y, b, S, v, E, O, f, H, M, I, W, q, St, bt, Ce, me, fe, Se, be, ve, Ie, Ae, Pe, Oe, Fe, Ee, De, Le;
2127
+ var t, r, n, c, h, l, p, y, b, S, v, E, O, f, H, x, I, W, q, bt, vt, Ce, me, fe, Se, be, ve, Ie, Ae, Pe, Oe, Fe, Ee, De, Le;
2101
2128
  const e = { ...o };
2102
2129
  return e.logging = {
2103
- logLevel: ((t = o.logging) == null ? void 0 : t.logLevel) || R.error,
2104
- logger: ((r = o.logging) == null ? void 0 : r.logger) || ((Vt, ae, ie) => {
2130
+ logLevel: ((t = o.logging) == null ? void 0 : t.logLevel) || M.error,
2131
+ logger: ((r = o.logging) == null ? void 0 : r.logger) || ((Bt, ie, oe) => {
2105
2132
  var Ne;
2106
- if (we.isLoggingEnabled(Vt, ((Ne = e.logging) == null ? void 0 : Ne.logLevel) ?? R.error))
2107
- switch (Vt) {
2108
- case R.error:
2109
- console.error(`[${ae}] [${Vt}] ${ie}`);
2133
+ if (we.isLoggingEnabled(Bt, ((Ne = e.logging) == null ? void 0 : Ne.logLevel) ?? M.error))
2134
+ switch (Bt) {
2135
+ case M.error:
2136
+ console.error(`[${ie}] [${Bt}] ${oe}`);
2110
2137
  break;
2111
- case R.warn:
2112
- console.warn(`[${ae}] [${Vt}] ${ie}`);
2138
+ case M.warn:
2139
+ console.warn(`[${ie}] [${Bt}] ${oe}`);
2113
2140
  break;
2114
2141
  default:
2115
- console.log(`[${ae}] [${Vt}] ${ie}`);
2142
+ console.log(`[${ie}] [${Bt}] ${oe}`);
2116
2143
  }
2117
2144
  })
2118
2145
  }, e.handlers = {
@@ -2168,7 +2195,7 @@ class we {
2168
2195
  ),
2169
2196
  onVariableListChanged: new C(
2170
2197
  () => e.onVariableListChanged,
2171
- (M = e.logging) == null ? void 0 : M.logger
2198
+ (x = e.logging) == null ? void 0 : x.logger
2172
2199
  ),
2173
2200
  onSelectedToolChanged: new C(
2174
2201
  () => e.onSelectedToolChanged,
@@ -2184,11 +2211,11 @@ class we {
2184
2211
  ),
2185
2212
  onSelectedTextStyleChanged: new C(
2186
2213
  () => e.onSelectedTextStyleChanged,
2187
- (St = e.logging) == null ? void 0 : St.logger
2214
+ (bt = e.logging) == null ? void 0 : bt.logger
2188
2215
  ),
2189
2216
  onColorsChanged: new C(
2190
2217
  () => e.onColorsChanged,
2191
- (bt = e.logging) == null ? void 0 : bt.logger
2218
+ (vt = e.logging) == null ? void 0 : vt.logger
2192
2219
  ),
2193
2220
  onParagraphStylesChanged: new C(
2194
2221
  () => e.onParagraphStylesChanged,
@@ -2278,10 +2305,10 @@ class we {
2278
2305
  }, e;
2279
2306
  }
2280
2307
  static isLoggingEnabled(o, e) {
2281
- return e == R.info || e == R.warn && (o == R.warn || o == R.error) ? !0 : e == R.error && o == R.error;
2308
+ return e == M.info || e == M.warn && (o == M.warn || o == M.error) ? !0 : e == M.error && o == M.error;
2282
2309
  }
2283
2310
  }
2284
- class bn {
2311
+ class In {
2285
2312
  /**
2286
2313
  * Checks if the given value is a `DatePropertyWrapper`.
2287
2314
  *
@@ -2332,7 +2359,7 @@ class bn {
2332
2359
  }
2333
2360
  }
2334
2361
  var ht;
2335
- class vn {
2362
+ class An {
2336
2363
  /**
2337
2364
  * @ignore
2338
2365
  */
@@ -2375,8 +2402,8 @@ class vn {
2375
2402
  }
2376
2403
  }
2377
2404
  ht = new WeakMap();
2378
- var Rt;
2379
- class ds extends vn {
2405
+ var Vt;
2406
+ class ds extends An {
2380
2407
  /**
2381
2408
  * @ignore
2382
2409
  */
@@ -2385,8 +2412,8 @@ class ds extends vn {
2385
2412
  /**
2386
2413
  * @ignore
2387
2414
  */
2388
- u(this, Rt);
2389
- g(this, Rt, t);
2415
+ u(this, Vt);
2416
+ g(this, Vt, t);
2390
2417
  }
2391
2418
  /**
2392
2419
  * This method returns the value for a given configuration key. If a value was not found in the configuration store,
@@ -2394,7 +2421,7 @@ class ds extends vn {
2394
2421
  * @returns value for a given configuration key
2395
2422
  */
2396
2423
  async getValue(e) {
2397
- const t = a(this, Rt).get(e);
2424
+ const t = a(this, Vt).get(e);
2398
2425
  return t != null ? i(
2399
2426
  {
2400
2427
  status: 200,
@@ -2413,11 +2440,11 @@ class ds extends vn {
2413
2440
  */
2414
2441
  async setValue(e, t) {
2415
2442
  const r = super.setValue(e, t);
2416
- return a(this, Rt).set(e, t), r;
2443
+ return a(this, Vt).set(e, t), r;
2417
2444
  }
2418
2445
  }
2419
- Rt = new WeakMap();
2420
- var k;
2446
+ Vt = new WeakMap();
2447
+ var G;
2421
2448
  class ls {
2422
2449
  /**
2423
2450
  * @ignore
@@ -2426,15 +2453,15 @@ class ls {
2426
2453
  /**
2427
2454
  * @ignore
2428
2455
  */
2429
- u(this, k);
2430
- this.getAll = async () => (await a(this, k)).getGradients().then((t) => i(t)), this.getById = async (e) => (await a(this, k)).getGradientById(e).then((r) => i(r)), this.create = async () => (await a(this, k)).createGradient().then((t) => i(t)), this.duplicate = async (e) => (await a(this, k)).duplicateGradient(e).then((r) => i(r)), this.move = async (e, t) => (await a(this, k)).moveGradients(e, t).then((n) => i(n)), this.rename = async (e, t) => (await a(this, k)).renameGradient(e, t).then((n) => i(n)), this.update = async (e, t) => {
2431
- const r = await a(this, k), n = t;
2456
+ u(this, G);
2457
+ this.getAll = async () => (await a(this, G)).getGradients().then((t) => i(t)), this.getById = async (e) => (await a(this, G)).getGradientById(e).then((r) => i(r)), this.create = async () => (await a(this, G)).createGradient().then((t) => i(t)), this.duplicate = async (e) => (await a(this, G)).duplicateGradient(e).then((r) => i(r)), this.move = async (e, t) => (await a(this, G)).moveGradients(e, t).then((n) => i(n)), this.rename = async (e, t) => (await a(this, G)).renameGradient(e, t).then((n) => i(n)), this.update = async (e, t) => {
2458
+ const r = await a(this, G), n = t;
2432
2459
  return r.updateGradient(e, JSON.stringify(n)).then((c) => i(c));
2433
- }, this.remove = async (e) => (await a(this, k)).removeGradient(e).then((r) => i(r)), g(this, k, o);
2460
+ }, this.remove = async (e) => (await a(this, G)).removeGradient(e).then((r) => i(r)), g(this, G, o);
2434
2461
  }
2435
2462
  }
2436
- k = new WeakMap();
2437
- var mt, Xt;
2463
+ G = new WeakMap();
2464
+ var mt, te;
2438
2465
  class us {
2439
2466
  /**
2440
2467
  * @ignore
@@ -2444,15 +2471,15 @@ class us {
2444
2471
  * @ignore
2445
2472
  */
2446
2473
  u(this, mt);
2447
- u(this, Xt);
2448
- this.query = async (e, t, r = {}) => (await a(this, mt)).componentConnectorQuery(e, JSON.stringify(t), JSON.stringify(r)).then((c) => i(c)), this.preview = async (e, t, r, n = {}) => (await a(this, Xt)).componentConnectorPreview(e, t, r, JSON.stringify(n)).then((h) => {
2474
+ u(this, te);
2475
+ this.query = async (e, t, r = {}) => (await a(this, mt)).componentConnectorQuery(e, JSON.stringify(t), JSON.stringify(r)).then((c) => i(c)), this.preview = async (e, t, r, n = {}) => (await a(this, te)).componentConnectorPreview(e, t, r, JSON.stringify(n)).then((h) => {
2449
2476
  if (h instanceof Uint8Array)
2450
2477
  return h;
2451
- throw typeof h == "object" && h !== null && "success" in h && !h.success && te(h), new Error(`Unexpected response type: ${typeof h}.`);
2452
- }), this.getConfigurationOptions = async (e) => (await a(this, mt)).componentConnectorGetConfigurationOptions(e).then((r) => i(r)), this.getCapabilities = async (e) => (await a(this, mt)).componentConnectorGetCapabilities(e).then((r) => i(r)), g(this, mt, o), g(this, Xt, o);
2478
+ throw typeof h == "object" && h !== null && "success" in h && !h.success && St(h), new Error(`Unexpected response type: ${typeof h}.`);
2479
+ }), this.getConfigurationOptions = async (e) => (await a(this, mt)).componentConnectorGetConfigurationOptions(e).then((r) => i(r)), this.getCapabilities = async (e) => (await a(this, mt)).componentConnectorGetCapabilities(e).then((r) => i(r)), g(this, mt, o), g(this, te, o);
2453
2480
  }
2454
2481
  }
2455
- mt = new WeakMap(), Xt = new WeakMap();
2482
+ mt = new WeakMap(), te = new WeakMap();
2456
2483
  var ft;
2457
2484
  class gs {
2458
2485
  /**
@@ -2463,22 +2490,22 @@ class gs {
2463
2490
  * @ignore
2464
2491
  */
2465
2492
  u(this, ft);
2466
- this.linkVariable = async (e, t, r) => (await a(this, ft)).linkComponentVariable(e, t, r, null).then((c) => i(c)), this.getComponentVariables = async (e) => (await a(this, ft)).getComponentVariables(e).then((r) => i(r)), this.setFitMode = async (e, t) => (await a(this, ft)).setComponentLayoutFit(e, t).then((n) => i(n)), g(this, ft, o);
2493
+ this.linkVariable = async (e, t, r, n) => (await a(this, ft)).linkComponentVariable(e, t, r, n ?? null).then((h) => i(h)), this.getComponentVariables = async (e) => (await a(this, ft)).getComponentVariables(e).then((r) => i(r)), this.setFitMode = async (e, t) => (await a(this, ft)).setComponentLayoutFit(e, t).then((n) => i(n)), g(this, ft, o);
2467
2494
  }
2468
2495
  }
2469
2496
  ft = new WeakMap();
2470
- const In = "studio-cdn.chiligrafx.com", An = `https://${In}/editor/${ms.current}/web`;
2497
+ const Pn = "studio-cdn.chiligrafx.com", On = `https://${Pn}/editor/${ms.current}/web`;
2471
2498
  let et;
2472
- class oa {
2499
+ class ha {
2473
2500
  /**
2474
2501
  * The SDK should be configured clientside and it exposes all controllers to work with in other applications
2475
2502
  * @param config The configuration object where the SDK and editor can get configured
2476
2503
  */
2477
2504
  constructor(o) {
2478
- this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new bn(), this.loadEditor = () => {
2505
+ this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new In(), this.loadEditor = () => {
2479
2506
  var e;
2480
- sr(
2481
- this.config.editorLink || An,
2507
+ rr(
2508
+ this.config.editorLink || On,
2482
2509
  {
2483
2510
  onActionsChanged: this.subscriber.onActionsChanged,
2484
2511
  onStateChanged: this.subscriber.onStateChanged,
@@ -2538,124 +2565,124 @@ class oa {
2538
2565
  var r, n;
2539
2566
  (n = (r = this.config).onConnectionError) == null || n.call(r, t);
2540
2567
  }
2541
- ), this.editorAPI = et == null ? void 0 : et.promise.then((t) => t), this.action = new Ve(this.editorAPI), this.layout = new Xe(this.editorAPI), this.frame = new Ze(this.editorAPI), this.barcode = new Be(this.editorAPI), this.component = new gs(this.editorAPI), this.animation = new Je(this.editorAPI), this.document = new je(this.editorAPI), this.configuration = new ds(this.editorAPI, this.localConfig), this.utils = new is(this.editorAPI, this.localConfig), this.tool = new ns(this.editorAPI), this.page = new es(this.editorAPI), this.debug = new Ke(this.editorAPI), this.undoManager = new as(this.editorAPI, this), this.textSelection = new rs(this.editorAPI), this.colorStyle = new _e(this.editorAPI), this.gradientStyle = new ls(this.editorAPI), this.paragraphStyle = new ss(this.editorAPI), this.characterStyle = new ke(this.editorAPI), this.mediaConnector = new ts(this.editorAPI), this.fontConnector = new qe(this.editorAPI), this.componentConnector = new us(this.editorAPI), this.dataConnector = new $e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new ze(this.editorAPI, this.dataItemMappingTools), this.connector = new He(this.editorAPI, this.localConfig), this.variable = new os(this.editorAPI, this.dataItemMappingTools), this.font = new Ye(this.editorAPI), this.experiment = new We(this.editorAPI), this.canvas = new ce(this.editorAPI), this.shape = new ue(this.editorAPI), this.colorConversion = new Te(this.editorAPI), this.info = new Qe(), this.clipboard = new Ge(this.editorAPI), this.brandKit = new Ue(this.editorAPI, this), this.next = new cs(this.config, this.connection, this.editorAPI), this.configuration.setValue(tt.GraFxStudioSdkVersion, fs.version), this.configuration.setValue(
2568
+ ), this.editorAPI = et == null ? void 0 : et.promise.then((t) => t), this.action = new Ve(this.editorAPI), this.layout = new Xe(this.editorAPI), this.frame = new Ze(this.editorAPI), this.barcode = new Je(this.editorAPI), this.component = new gs(this.editorAPI), this.animation = new Be(this.editorAPI), this.document = new je(this.editorAPI), this.configuration = new ds(this.editorAPI, this.localConfig), this.utils = new is(this.editorAPI, this.localConfig), this.tool = new ns(this.editorAPI), this.page = new es(this.editorAPI), this.debug = new Ke(this.editorAPI), this.undoManager = new as(this.editorAPI, this), this.textSelection = new rs(this.editorAPI), this.colorStyle = new _e(this.editorAPI), this.gradientStyle = new ls(this.editorAPI), this.paragraphStyle = new ss(this.editorAPI), this.characterStyle = new ke(this.editorAPI), this.mediaConnector = new ts(this.editorAPI), this.fontConnector = new qe(this.editorAPI), this.componentConnector = new us(this.editorAPI), this.dataConnector = new $e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new ze(this.editorAPI, this.dataItemMappingTools), this.connector = new He(this.editorAPI, this.localConfig), this.variable = new os(this.editorAPI, this.dataItemMappingTools), this.font = new Ye(this.editorAPI), this.experiment = new We(this.editorAPI), this.canvas = new he(this.editorAPI), this.shape = new ge(this.editorAPI), this.colorConversion = new Te(this.editorAPI), this.info = new Qe(), this.clipboard = new Ge(this.editorAPI), this.brandKit = new Ue(this.editorAPI, this), this.next = new cs(this.config, this.connection, this.editorAPI), this.configuration.setValue(tt.GraFxStudioSdkVersion, fs.version), this.configuration.setValue(
2542
2569
  tt.GraFxStudioDocumentType,
2543
2570
  this.config.documentType || Is.template
2544
- ), this.configuration.updateStudioOptions(this.config.studioOptions || nr), this.configuration.setValue(
2571
+ ), this.configuration.updateStudioOptions(this.config.studioOptions || ar), this.configuration.setValue(
2545
2572
  tt.QueryCallCacheEnabled,
2546
2573
  ((e = this.config.enableQueryCallCache) == null ? void 0 : e.toString()) || "false"
2547
2574
  );
2548
2575
  }, this.setConnection = (e) => {
2549
2576
  et = e;
2550
- }, this.config = we.createRuntimeConfig(o), this.connection = et, this.editorAPI = et == null ? void 0 : et.promise.then((e) => e), this.action = new Ve(this.editorAPI), this.layout = new Xe(this.editorAPI), this.frame = new Ze(this.editorAPI), this.shape = new ue(this.editorAPI), this.barcode = new Be(this.editorAPI), this.component = new gs(this.editorAPI), this.undoManager = new as(this.editorAPI, this), this.connector = new He(this.editorAPI, this.localConfig), this.mediaConnector = new ts(this.editorAPI), this.fontConnector = new qe(this.editorAPI), this.componentConnector = new us(this.editorAPI), this.dataConnector = new $e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new ze(this.editorAPI, this.dataItemMappingTools), this.animation = new Je(this.editorAPI), this.document = new je(this.editorAPI), this.configuration = new ds(this.editorAPI, this.localConfig), this.variable = new os(this.editorAPI, this.dataItemMappingTools), this.utils = new is(this.editorAPI, this.localConfig), this.subscriber = new nn(this.config, this.localConfig), this.tool = new ns(this.editorAPI), this.page = new es(this.editorAPI), this.debug = new Ke(this.editorAPI), this.textSelection = new rs(this.editorAPI), this.colorStyle = new _e(this.editorAPI), this.gradientStyle = new ls(this.editorAPI), this.paragraphStyle = new ss(this.editorAPI), this.characterStyle = new ke(this.editorAPI), this.font = new Ye(this.editorAPI), this.experiment = new We(this.editorAPI), this.canvas = new ce(this.editorAPI), this.colorConversion = new Te(this.editorAPI), this.info = new Qe(), this.clipboard = new Ge(this.editorAPI), this.next = new cs(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new Ue(this.editorAPI, this);
2577
+ }, this.config = we.createRuntimeConfig(o), this.connection = et, this.editorAPI = et == null ? void 0 : et.promise.then((e) => e), this.action = new Ve(this.editorAPI), this.layout = new Xe(this.editorAPI), this.frame = new Ze(this.editorAPI), this.shape = new ge(this.editorAPI), this.barcode = new Je(this.editorAPI), this.component = new gs(this.editorAPI), this.undoManager = new as(this.editorAPI, this), this.connector = new He(this.editorAPI, this.localConfig), this.mediaConnector = new ts(this.editorAPI), this.fontConnector = new qe(this.editorAPI), this.componentConnector = new us(this.editorAPI), this.dataConnector = new $e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new ze(this.editorAPI, this.dataItemMappingTools), this.animation = new Be(this.editorAPI), this.document = new je(this.editorAPI), this.configuration = new ds(this.editorAPI, this.localConfig), this.variable = new os(this.editorAPI, this.dataItemMappingTools), this.utils = new is(this.editorAPI, this.localConfig), this.subscriber = new nn(this.config, this.localConfig), this.tool = new ns(this.editorAPI), this.page = new es(this.editorAPI), this.debug = new Ke(this.editorAPI), this.textSelection = new rs(this.editorAPI), this.colorStyle = new _e(this.editorAPI), this.gradientStyle = new ls(this.editorAPI), this.paragraphStyle = new ss(this.editorAPI), this.characterStyle = new ke(this.editorAPI), this.font = new Ye(this.editorAPI), this.experiment = new We(this.editorAPI), this.canvas = new he(this.editorAPI), this.colorConversion = new Te(this.editorAPI), this.info = new Qe(), this.clipboard = new Ge(this.editorAPI), this.next = new cs(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new Ue(this.editorAPI, this);
2551
2578
  }
2552
2579
  }
2553
- var Pn = /* @__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))(Pn || {}), On = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(On || {}), Fn = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(Fn || {}), En = /* @__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))(En || {}), 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 || {}), Ln = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(Ln || {}), Nn = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(Nn || {}), xn = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(xn || {}), Mn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(Mn || {}), Rn = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.highest = "highest", s.medium = "medium", s))(Rn || {}), Vn = /* @__PURE__ */ ((s) => (s.BOLD = "Bold", s.ITALIC = "Italic", s.REGULAR = "Regular", s))(Vn || {}), Jn = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(Jn || {}), Bn = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(Bn || {}), Un = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(Un || {}), kn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(kn || {}), Gn = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(Gn || {}), Tn = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(Tn || {}), _n = /* @__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))(_n || {}), Hn = /* @__PURE__ */ ((s) => (s.arabic = "arabic", s.romanUpperCase = "romanUpperCase", s.romanLowerCase = "romanLowerCase", s.latinUpperCase = "latinUpperCase", s.latinLowerCase = "latinLowerCase", s))(Hn || {}), $n = /* @__PURE__ */ ((s) => (s.none = "none", s.dash = "dash", s.dot = "dot", s.colon = "colon", s.roundBracket = "roundBracket", s))($n || {}), zn = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(zn || {}), Kn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Kn || {}), jn = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(jn || {}), Wn = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(Wn || {}), Ds = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Ds || {});
2554
- const ca = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2580
+ var Fn = /* @__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))(Fn || {}), En = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(En || {}), Dn = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(Dn || {}), 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 || {}), Nn = /* @__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))(Nn || {}), Rn = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(Rn || {}), xn = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(xn || {}), Mn = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(Mn || {}), Vn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(Vn || {}), Bn = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.highest = "highest", s.medium = "medium", s))(Bn || {}), Jn = /* @__PURE__ */ ((s) => (s.BOLD = "Bold", s.ITALIC = "Italic", s.REGULAR = "Regular", s))(Jn || {}), Un = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(Un || {}), kn = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(kn || {}), Gn = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(Gn || {}), Tn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(Tn || {}), _n = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(_n || {}), Hn = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(Hn || {}), $n = /* @__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.BACKGROUND_COLOR = "backgroundColor", s.BACKGROUND_COLOR_APPLIED = "backgroundColorApplied", 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))($n || {}), zn = /* @__PURE__ */ ((s) => (s.arabic = "arabic", s.romanUpperCase = "romanUpperCase", s.romanLowerCase = "romanLowerCase", s.latinUpperCase = "latinUpperCase", s.latinLowerCase = "latinLowerCase", s))(zn || {}), Kn = /* @__PURE__ */ ((s) => (s.none = "none", s.dash = "dash", s.dot = "dot", s.colon = "colon", s.roundBracket = "roundBracket", s))(Kn || {}), jn = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(jn || {}), Wn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Wn || {}), qn = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(qn || {}), Yn = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(Yn || {}), Ls = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Ls || {});
2581
+ const da = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2555
2582
  __proto__: null,
2556
- ConnectorRegistrationSource: Ds
2583
+ ConnectorRegistrationSource: Ls
2557
2584
  }, Symbol.toStringTag, { value: "Module" }));
2558
2585
  export {
2559
- ir as ActionAsyncError,
2560
- zn as ActionEditorEvent,
2561
- Jn as Alignment,
2562
- Yr as AnchorTargetEdgeType,
2563
- qr as AnchorTargetType,
2564
- Nr as AuthCredentialsTypeEnum,
2586
+ or as ActionAsyncError,
2587
+ jn as ActionEditorEvent,
2588
+ Un as Alignment,
2589
+ Zr as AnchorTargetEdgeType,
2590
+ Yr as AnchorTargetType,
2591
+ Rr as AuthCredentialsTypeEnum,
2565
2592
  xr as AuthRefreshTypeEnum,
2566
- Br as AutoGrowDirection,
2567
- vt as BarcodeCharacterSet,
2593
+ Ur as AutoGrowDirection,
2594
+ It as BarcodeCharacterSet,
2568
2595
  Jt as BarcodeErrorCorrectionLevel,
2569
- Gr as BarcodeSourceTypeEnum,
2596
+ Tr as BarcodeSourceTypeEnum,
2570
2597
  $ as BarcodeType,
2571
- pr as BarcodeValidationResult,
2572
- Dn as BasicAnimationsEmphasisStyles,
2573
- $r as BlendMode,
2574
- Un as Case,
2575
- he as ColorType,
2576
- vr as ColorUsageType,
2598
+ wr as BarcodeValidationResult,
2599
+ Nn as BasicAnimationsEmphasisStyles,
2600
+ zr as BlendMode,
2601
+ Gn as Case,
2602
+ de as ColorType,
2603
+ Ir as ColorUsageType,
2577
2604
  Jr as ComponentFitEnum,
2578
- Rn as ComponentPreviewType,
2579
- Ur as ComponentSourceTypeEnum,
2580
- Fr as ConnectorConfigContextType,
2581
- Or as ConnectorConfigValueType,
2582
- Lr as ConnectorEventType,
2583
- cr as ConnectorHttpError,
2584
- Zn as ConnectorMapping,
2585
- Dr as ConnectorMappingDirection,
2586
- Er as ConnectorMappingSource,
2587
- Bt as ConnectorRegistrationSource,
2588
- le as ConnectorStateType,
2589
- Rr as ConnectorSupportedAuth,
2590
- Ir as ConnectorType,
2591
- fr as ConstraintMode,
2592
- jn as CornerRadiusType,
2605
+ Bn as ComponentPreviewType,
2606
+ kr as ComponentSourceTypeEnum,
2607
+ Er as ConnectorConfigContextType,
2608
+ Fr as ConnectorConfigValueType,
2609
+ Nr as ConnectorEventType,
2610
+ hr as ConnectorHttpError,
2611
+ Xn as ConnectorMapping,
2612
+ Lr as ConnectorMappingDirection,
2613
+ Dr as ConnectorMappingSource,
2614
+ Ut as ConnectorRegistrationSource,
2615
+ ue as ConnectorStateType,
2616
+ Vr as ConnectorSupportedAuth,
2617
+ Ar as ConnectorType,
2618
+ Sr as ConstraintMode,
2619
+ qn as CornerRadiusType,
2593
2620
  Ps as CropType,
2594
- or as DataRowAsyncError,
2621
+ cr as DataRowAsyncError,
2595
2622
  rn as DataSourceVariableDisplayOptionsType,
2596
- sn as DataSourceVariableSourceType,
2597
- Qr as Day,
2598
- de as DeprecatedMediaConnectorDownloadType,
2599
- Gt as DeprecatedMediaType,
2600
- ar as DocumentIssueTypeEnum,
2623
+ Fs as DataSourceVariableSourceType,
2624
+ Xr as Day,
2625
+ le as DeprecatedMediaConnectorDownloadType,
2626
+ Tt as DeprecatedMediaType,
2627
+ ir as DocumentIssueTypeEnum,
2601
2628
  Is as DocumentType,
2602
2629
  cn as DownloadFormats,
2603
- Fn as EaseTypes,
2604
- Wn as EngineEditModeType,
2605
- ye as EnvironmentType,
2606
- zr as FitMode,
2607
- Kr as FitModePosition,
2608
- _r as FlowDirection,
2609
- Mn as FontPreviewFormat,
2610
- Vn as FontWeights,
2611
- ra as FrameAnchorTarget,
2612
- Wr as FrameAnchorType,
2613
- rr as FrameEditingMode,
2630
+ Dn as EaseTypes,
2631
+ Yn as EngineEditModeType,
2632
+ pe as EnvironmentType,
2633
+ Kr as FitMode,
2634
+ jr as FitModePosition,
2635
+ Hr as FlowDirection,
2636
+ Vn as FontPreviewFormat,
2637
+ Jn as FontWeights,
2638
+ aa as FrameAnchorTarget,
2639
+ qr as FrameAnchorType,
2640
+ nr as FrameEditingMode,
2614
2641
  an as FramePropertyNames,
2615
- kr as FrameTypeEnum,
2616
- Nn as GradientType,
2617
- xn as GradientUsageType,
2618
- Xn as GrafxTokenAuthCredentials,
2642
+ Gr as FrameTypeEnum,
2643
+ xn as GradientType,
2644
+ Mn as GradientUsageType,
2645
+ ea as GrafxTokenAuthCredentials,
2619
2646
  se as ImageSourceTypeEnum,
2620
- mr as LayoutIntent,
2647
+ fr as LayoutIntent,
2621
2648
  on as LayoutPropertyNames,
2622
- Cr as LayoutType,
2623
- Xr as Locale,
2624
- Gn as MarkedListType,
2625
- wr as MeasurementUnit,
2649
+ mr as LayoutType,
2650
+ tn as Locale,
2651
+ _n as MarkedListType,
2652
+ Cr as MeasurementUnit,
2626
2653
  Os as MediaDownloadIntent,
2627
- ge as MediaDownloadType,
2628
- Tt as MediaType,
2629
- ca as Next,
2630
- Hn as NumberListFormat,
2631
- $n as NumberListSeparatorSymbol,
2632
- sa as PageAnchorTarget,
2654
+ ye as MediaDownloadType,
2655
+ _t as MediaType,
2656
+ da as Next,
2657
+ zn as NumberListFormat,
2658
+ Kn as NumberListSeparatorSymbol,
2659
+ na as PageAnchorTarget,
2633
2660
  X as PositionEnum,
2634
- ta as RefreshedAuthCredendentials,
2635
- kn as Scripting,
2636
- Tn as SelectedTextStyleSections,
2637
- _n as SelectedTextStyles,
2638
- On as ShakeDirections,
2639
- Kn as ShapeType,
2640
- Pn as SlideDirections,
2641
- Ar as SortBy,
2642
- Pr as SortOrder,
2643
- Tr as TextDirection,
2644
- Bn as TextPosition,
2661
+ sa as RefreshedAuthCredendentials,
2662
+ Tn as Scripting,
2663
+ Hn as SelectedTextStyleSections,
2664
+ $n as SelectedTextStyles,
2665
+ En as ShakeDirections,
2666
+ Wn as ShapeType,
2667
+ Fn as SlideDirections,
2668
+ Pr as SortBy,
2669
+ Or as SortOrder,
2670
+ _r as TextDirection,
2671
+ kn as TextPosition,
2645
2672
  z as ToolType,
2646
- En as TweenTypes,
2647
- jr as UpdateZIndexMethod,
2673
+ Ln as TweenTypes,
2674
+ Wr as UpdateZIndexMethod,
2648
2675
  Mr as UploadAssetValidationError,
2649
2676
  As as UploadAssetValidationErrorType,
2650
- pe as VariableType,
2651
- hr as VariableValueConstrainsViolationError,
2652
- en as VariableVisibilityOperator,
2653
- tn as VariableVisibilityTargetType,
2654
- Ut as VariableVisibilityType,
2655
- Hr as VerticalAlign,
2656
- Ln as ViewMode,
2677
+ ae as VariableType,
2678
+ dr as VariableValueConstrainsViolationError,
2679
+ sn as VariableVisibilityOperator,
2680
+ en as VariableVisibilityTargetType,
2681
+ kt as VariableVisibilityType,
2682
+ $r as VerticalAlign,
2683
+ Rn as ViewMode,
2657
2684
  tt as WellKnownConfigurationKeys,
2658
- oa as default,
2659
- Qn as grafxMediaConnectorRegistration
2685
+ ha as default,
2686
+ ta as grafxMediaConnectorRegistration
2660
2687
  };
2661
2688
  //# sourceMappingURL=main.es.js.map