@chili-publish/studio-sdk 1.40.0 → 1.42.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 (65) hide show
  1. package/_bundles/main.es.js +1336 -1257
  2. package/_bundles/main.es.js.map +1 -1
  3. package/_bundles/main.js +6 -6
  4. package/_bundles/main.js.map +1 -1
  5. package/connector-types/src/DataConnector.d.ts +1 -1
  6. package/lib/editor-engine.json +1 -1
  7. package/lib/package.json +1 -1
  8. package/lib/src/controllers/ActionController.d.ts +7 -0
  9. package/lib/src/controllers/ActionController.js +10 -0
  10. package/lib/src/controllers/ActionController.js.map +1 -1
  11. package/lib/src/controllers/ConnectorController.d.ts +8 -0
  12. package/lib/src/controllers/ConnectorController.js +13 -0
  13. package/lib/src/controllers/ConnectorController.js.map +1 -1
  14. package/lib/src/controllers/DataConnectorController.d.ts +2 -2
  15. package/lib/src/controllers/DataConnectorController.js +14 -12
  16. package/lib/src/controllers/DataConnectorController.js.map +1 -1
  17. package/lib/src/controllers/FrameController.d.ts +8 -1
  18. package/lib/src/controllers/FrameController.js +10 -0
  19. package/lib/src/controllers/FrameController.js.map +1 -1
  20. package/lib/src/controllers/VariableController.d.ts +81 -3
  21. package/lib/src/controllers/VariableController.js +163 -4
  22. package/lib/src/controllers/VariableController.js.map +1 -1
  23. package/lib/src/index.d.ts +2 -2
  24. package/lib/src/index.js +1 -1
  25. package/lib/src/index.js.map +1 -1
  26. package/lib/src/next/controllers/VariableController.d.ts +6 -0
  27. package/lib/src/next/controllers/VariableController.js +15 -1
  28. package/lib/src/next/controllers/VariableController.js.map +1 -1
  29. package/lib/src/next/tests/controllers/VariableController.test.js +22 -1
  30. package/lib/src/next/tests/controllers/VariableController.test.js.map +1 -1
  31. package/lib/src/sdk.js +2 -2
  32. package/lib/src/sdk.js.map +1 -1
  33. package/lib/src/tests/__mocks__/Brandkit.js +10 -0
  34. package/lib/src/tests/__mocks__/Brandkit.js.map +1 -1
  35. package/lib/src/tests/controllers/ActionController.test.js +6 -0
  36. package/lib/src/tests/controllers/ActionController.test.js.map +1 -1
  37. package/lib/src/tests/controllers/DataConnectorController.test.js +5 -0
  38. package/lib/src/tests/controllers/DataConnectorController.test.js.map +1 -1
  39. package/lib/src/tests/controllers/FrameController.test.js +12 -0
  40. package/lib/src/tests/controllers/FrameController.test.js.map +1 -1
  41. package/lib/src/tests/controllers/SubscriberContoller.test.js +9 -3
  42. package/lib/src/tests/controllers/SubscriberContoller.test.js.map +1 -1
  43. package/lib/src/tests/controllers/VariableController.test.js +103 -2
  44. package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
  45. package/lib/src/types/CharacterStyleTypes.d.ts +10 -2
  46. package/lib/src/types/ConnectorTypes.d.ts +3 -3
  47. package/lib/src/types/ConnectorTypes.js +9 -9
  48. package/lib/src/types/ConnectorTypes.js.map +1 -1
  49. package/lib/src/types/DataConnectorTypes.d.ts +1 -1
  50. package/lib/src/types/FrameTypes.d.ts +5 -1
  51. package/lib/src/types/FrameTypes.js.map +1 -1
  52. package/lib/src/types/ParagraphStyleTypes.d.ts +8 -0
  53. package/lib/src/types/ParagraphStyleTypes.js.map +1 -1
  54. package/lib/src/types/ShapeTypes.d.ts +20 -0
  55. package/lib/src/types/ShapeTypes.js.map +1 -1
  56. package/lib/src/types/TextStyleTypes.d.ts +6 -0
  57. package/lib/src/types/TextStyleTypes.js +2 -0
  58. package/lib/src/types/TextStyleTypes.js.map +1 -1
  59. package/lib/src/types/VariableTypes.d.ts +35 -2
  60. package/lib/src/types/VariableTypes.js +11 -0
  61. package/lib/src/types/VariableTypes.js.map +1 -1
  62. package/lib/src/utils/VariableHelper.d.ts +4 -0
  63. package/lib/src/utils/VariableHelper.js +12 -0
  64. package/lib/src/utils/VariableHelper.js.map +1 -0
  65. package/package.json +1 -1
@@ -1,175 +1,175 @@
1
- var Le = (s) => {
1
+ var Re = (s) => {
2
2
  throw TypeError(s);
3
3
  };
4
- var De = (s, o, t) => o.has(s) || Le("Cannot " + t);
5
- var a = (s, o, t) => (De(s, o, "read from private field"), t ? t.call(s) : o.get(s)), u = (s, o, t) => o.has(s) ? Le("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(s) : o.set(s, t), g = (s, o, t, e) => (De(s, o, "write to private field"), e ? e.call(s, t) : o.set(s, t), t);
6
- const Fs = "2.23.latest", ps = {
7
- current: Fs
8
- }, Es = "1.40.0", ws = {
9
- version: Es
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.25.latest", ms = {
7
+ current: Ns
8
+ }, Rs = "1.42.0", fs = {
9
+ version: Rs
10
10
  };
11
- var K;
11
+ var j;
12
12
  (function(s) {
13
13
  s.Call = "call", s.Reply = "reply", s.Syn = "syn", s.SynAck = "synAck", s.Ack = "ack";
14
- })(K || (K = {}));
15
- var dt;
14
+ })(j || (j = {}));
15
+ var lt;
16
16
  (function(s) {
17
17
  s.Fulfilled = "fulfilled", s.Rejected = "rejected";
18
- })(dt || (dt = {}));
19
- var Jt;
18
+ })(lt || (lt = {}));
19
+ var Gt;
20
20
  (function(s) {
21
21
  s.ConnectionDestroyed = "ConnectionDestroyed", s.ConnectionTimeout = "ConnectionTimeout", s.NoIframeSrc = "NoIframeSrc";
22
- })(Jt || (Jt = {}));
23
- var re;
22
+ })(Gt || (Gt = {}));
23
+ var ce;
24
24
  (function(s) {
25
25
  s.DataCloneError = "DataCloneError";
26
- })(re || (re = {}));
27
- var ct;
26
+ })(ce || (ce = {}));
27
+ var dt;
28
28
  (function(s) {
29
29
  s.Message = "message";
30
- })(ct || (ct = {}));
31
- const Ls = (s, o) => {
32
- const t = [];
33
- let e = !1;
30
+ })(dt || (dt = {}));
31
+ const xs = (s, o) => {
32
+ const e = [];
33
+ let t = !1;
34
34
  return {
35
35
  destroy(r) {
36
- e || (e = !0, o(`${s}: Destroying connection`), t.forEach((n) => {
36
+ t || (t = !0, o(`${s}: Destroying connection`), e.forEach((n) => {
37
37
  n(r);
38
38
  }));
39
39
  },
40
40
  onDestroy(r) {
41
- e ? r() : t.push(r);
41
+ t ? r() : e.push(r);
42
42
  }
43
43
  };
44
- }, Ds = (s) => (...o) => {
44
+ }, Ms = (s) => (...o) => {
45
45
  s && console.log("[Penpal]", ...o);
46
- }, Ns = {
46
+ }, Vs = {
47
47
  "http:": "80",
48
48
  "https:": "443"
49
- }, xs = /^(https?:)?\/\/([^/:]+)?(:(\d+))?/, Rs = ["file:", "data:"], Ms = (s) => {
50
- if (s && Rs.find((d) => s.startsWith(d)))
49
+ }, Bs = /^(https?:)?\/\/([^/:]+)?(:(\d+))?/, Js = ["file:", "data:"], Us = (s) => {
50
+ if (s && Js.find((h) => s.startsWith(h)))
51
51
  return "null";
52
- const o = document.location, t = xs.exec(s);
53
- let e, r, n;
54
- t ? (e = t[1] ? t[1] : o.protocol, r = t[2], n = t[4]) : (e = o.protocol, r = o.hostname, n = o.port);
55
- const h = n && n !== Ns[e] ? `:${n}` : "";
56
- return `${e}//${r}${h}`;
57
- }, Ne = ({ name: s, message: o, stack: t }) => ({
52
+ const o = document.location, e = Bs.exec(s);
53
+ let t, r, n;
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 !== Vs[t] ? `:${n}` : "";
56
+ return `${t}//${r}${c}`;
57
+ }, Me = ({ name: s, message: o, stack: e }) => ({
58
58
  name: s,
59
59
  message: o,
60
- stack: t
61
- }), Vs = (s) => {
60
+ stack: e
61
+ }), ks = (s) => {
62
62
  const o = new Error();
63
- return Object.keys(s).forEach((t) => o[t] = s[t]), o;
64
- }, Bs = (s, o, t) => {
65
- const { localName: e, local: r, remote: n, originForSending: h, originForReceiving: d } = s;
63
+ return Object.keys(s).forEach((e) => o[e] = s[e]), o;
64
+ }, Gs = (s, o, e) => {
65
+ const { localName: t, local: r, remote: n, originForSending: c, originForReceiving: h } = s;
66
66
  let l = !1;
67
67
  const p = (y) => {
68
- if (y.source !== n || y.data.penpal !== K.Call)
68
+ if (y.source !== n || y.data.penpal !== j.Call)
69
69
  return;
70
- if (y.origin !== d) {
71
- t(`${e} received message from origin ${y.origin} which did not match expected origin ${d}`);
70
+ if (y.origin !== h) {
71
+ e(`${t} received message from origin ${y.origin} which did not match expected origin ${h}`);
72
72
  return;
73
73
  }
74
74
  const b = y.data, { methodName: S, args: v, id: E } = b;
75
- t(`${e}: Received ${S}() call`);
76
- const O = (f) => (T) => {
77
- if (t(`${e}: Sending ${S}() reply`), l) {
78
- t(`${e}: Unable to send ${S}() reply due to destroyed connection`);
75
+ e(`${t}: Received ${S}() call`);
76
+ const O = (f) => (H) => {
77
+ if (e(`${t}: Sending ${S}() reply`), l) {
78
+ e(`${t}: Unable to send ${S}() reply due to destroyed connection`);
79
79
  return;
80
80
  }
81
- const R = {
82
- penpal: K.Reply,
81
+ const x = {
82
+ penpal: j.Reply,
83
83
  id: E,
84
84
  resolution: f,
85
- returnValue: T
85
+ returnValue: H
86
86
  };
87
- f === dt.Rejected && T instanceof Error && (R.returnValue = Ne(T), R.returnValueIsError = !0);
87
+ f === lt.Rejected && H instanceof Error && (x.returnValue = Me(H), x.returnValueIsError = !0);
88
88
  try {
89
- n.postMessage(R, h);
90
- } catch (A) {
91
- if (A.name === re.DataCloneError) {
89
+ n.postMessage(x, c);
90
+ } catch (I) {
91
+ if (I.name === ce.DataCloneError) {
92
92
  const W = {
93
- penpal: K.Reply,
93
+ penpal: j.Reply,
94
94
  id: E,
95
- resolution: dt.Rejected,
96
- returnValue: Ne(A),
95
+ resolution: lt.Rejected,
96
+ returnValue: Me(I),
97
97
  returnValueIsError: !0
98
98
  };
99
- n.postMessage(W, h);
99
+ n.postMessage(W, c);
100
100
  }
101
- throw A;
101
+ throw I;
102
102
  }
103
103
  };
104
- new Promise((f) => f(o[S].apply(o, v))).then(O(dt.Fulfilled), O(dt.Rejected));
104
+ new Promise((f) => f(o[S].apply(o, v))).then(O(lt.Fulfilled), O(lt.Rejected));
105
105
  };
106
- return r.addEventListener(ct.Message, p), () => {
107
- l = !0, r.removeEventListener(ct.Message, p);
106
+ return r.addEventListener(dt.Message, p), () => {
107
+ l = !0, r.removeEventListener(dt.Message, p);
108
108
  };
109
109
  };
110
- let Js = 0;
111
- const Us = () => ++Js, Cs = ".", ms = (s) => s ? s.split(Cs) : [], ks = (s) => s.join(Cs), Gs = (s, o) => {
112
- const t = ms(o || "");
113
- return t.push(s), ks(t);
114
- }, _s = (s, o, t) => {
115
- const e = ms(o);
116
- return e.reduce((r, n, h) => (typeof r[n] > "u" && (r[n] = {}), h === e.length - 1 && (r[n] = t), r[n]), s), s;
117
- }, fs = (s, o) => {
118
- const t = {};
119
- return Object.keys(s).forEach((e) => {
120
- const r = s[e], n = Gs(e, o);
121
- typeof r == "object" && Object.assign(t, fs(r, n)), typeof r == "function" && (t[n] = r);
122
- }), t;
123
- }, Ts = (s) => {
110
+ let Ts = 0;
111
+ const _s = () => ++Ts, Ss = ".", bs = (s) => s ? s.split(Ss) : [], Hs = (s) => s.join(Ss), $s = (s, o) => {
112
+ const e = bs(o || "");
113
+ return e.push(s), Hs(e);
114
+ }, zs = (s, o, e) => {
115
+ const t = bs(o);
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
+ }, vs = (s, o) => {
118
+ const e = {};
119
+ return Object.keys(s).forEach((t) => {
120
+ const r = s[t], n = $s(t, o);
121
+ typeof r == "object" && Object.assign(e, vs(r, n)), typeof r == "function" && (e[n] = r);
122
+ }), e;
123
+ }, Ks = (s) => {
124
124
  const o = {};
125
- for (const t in s)
126
- _s(o, t, s[t]);
125
+ for (const e in s)
126
+ zs(o, e, s[e]);
127
127
  return o;
128
- }, Hs = (s, o, t, e, r) => {
129
- const { localName: n, local: h, remote: d, originForSending: l, originForReceiving: p } = o;
128
+ }, js = (s, o, e, t, r) => {
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`);
132
132
  const b = (v) => (...E) => {
133
133
  r(`${n}: Sending ${v}() call`);
134
134
  let O;
135
135
  try {
136
- d.closed && (O = !0);
136
+ h.closed && (O = !0);
137
137
  } catch {
138
138
  O = !0;
139
139
  }
140
- if (O && e(), y) {
140
+ if (O && t(), y) {
141
141
  const f = new Error(`Unable to send ${v}() call due to destroyed connection`);
142
- throw f.code = Jt.ConnectionDestroyed, f;
142
+ throw f.code = Gt.ConnectionDestroyed, f;
143
143
  }
144
- return new Promise((f, T) => {
145
- const R = Us(), A = (j) => {
146
- if (j.source !== d || j.data.penpal !== K.Reply || j.data.id !== R)
144
+ return new Promise((f, H) => {
145
+ const x = _s(), I = (q) => {
146
+ if (q.source !== h || q.data.penpal !== j.Reply || q.data.id !== x)
147
147
  return;
148
- if (j.origin !== p) {
149
- r(`${n} received message from origin ${j.origin} which did not match expected origin ${p}`);
148
+ if (q.origin !== p) {
149
+ r(`${n} received message from origin ${q.origin} which did not match expected origin ${p}`);
150
150
  return;
151
151
  }
152
- const ft = j.data;
153
- r(`${n}: Received ${v}() reply`), h.removeEventListener(ct.Message, A);
154
- let St = ft.returnValue;
155
- ft.returnValueIsError && (St = Vs(St)), (ft.resolution === dt.Fulfilled ? f : T)(St);
152
+ const bt = q.data;
153
+ r(`${n}: Received ${v}() reply`), c.removeEventListener(dt.Message, I);
154
+ let vt = bt.returnValue;
155
+ bt.returnValueIsError && (vt = ks(vt)), (bt.resolution === lt.Fulfilled ? f : H)(vt);
156
156
  };
157
- h.addEventListener(ct.Message, A);
157
+ c.addEventListener(dt.Message, I);
158
158
  const W = {
159
- penpal: K.Call,
160
- id: R,
159
+ penpal: j.Call,
160
+ id: x,
161
161
  methodName: v,
162
162
  args: E
163
163
  };
164
- d.postMessage(W, l);
164
+ h.postMessage(W, l);
165
165
  });
166
- }, S = t.reduce((v, E) => (v[E] = b(E), v), {});
167
- return Object.assign(s, Ts(S)), () => {
166
+ }, S = e.reduce((v, E) => (v[E] = b(E), v), {});
167
+ return Object.assign(s, Ks(S)), () => {
168
168
  y = !0;
169
169
  };
170
- }, $s = (s, o, t, e, r) => {
171
- const { destroy: n, onDestroy: h } = e;
172
- let d, l;
170
+ }, Ws = (s, o, e, t, r) => {
171
+ const { destroy: n, onDestroy: c } = t;
172
+ let h, l;
173
173
  const p = {};
174
174
  return (y) => {
175
175
  if (y.origin !== o) {
@@ -181,85 +181,85 @@ const Us = () => ++Js, Cs = ".", ms = (s) => s ? s.split(Cs) : [], ks = (s) => s
181
181
  localName: "Parent",
182
182
  local: window,
183
183
  remote: y.source,
184
- originForSending: t,
184
+ originForSending: e,
185
185
  originForReceiving: o
186
186
  };
187
- d && d(), d = Bs(b, s, r), h(d), 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 = Hs(p, b, l, n, r);
191
- return h(S), p;
190
+ const S = js(p, b, l, n, r);
191
+ return c(S), p;
192
192
  };
193
- }, zs = (s, o, t, e) => (r) => {
194
- if (r.origin !== t) {
195
- s(`Parent: Handshake - Received SYN message from origin ${r.origin} which did not match expected origin ${t}`);
193
+ }, qs = (s, o, e, t) => (r) => {
194
+ if (r.origin !== e) {
195
+ s(`Parent: Handshake - Received SYN message from origin ${r.origin} which did not match expected origin ${e}`);
196
196
  return;
197
197
  }
198
198
  s("Parent: Handshake - Received SYN, responding with SYN-ACK");
199
199
  const n = {
200
- penpal: K.SynAck,
200
+ penpal: j.SynAck,
201
201
  methodNames: Object.keys(o)
202
202
  };
203
- r.source.postMessage(n, e);
204
- }, Ks = 6e4, Ws = (s, o) => {
205
- const { destroy: t, onDestroy: e } = o, r = setInterval(() => {
206
- s.isConnected || (clearInterval(r), t());
207
- }, Ks);
208
- e(() => {
203
+ r.source.postMessage(n, t);
204
+ }, Ys = 6e4, Zs = (s, o) => {
205
+ const { destroy: e, onDestroy: t } = o, r = setInterval(() => {
206
+ s.isConnected || (clearInterval(r), e());
207
+ }, Ys);
208
+ t(() => {
209
209
  clearInterval(r);
210
210
  });
211
- }, js = (s, o) => {
212
- let t;
213
- return s !== void 0 && (t = window.setTimeout(() => {
214
- const e = new Error(`Connection timed out after ${s}ms`);
215
- e.code = Jt.ConnectionTimeout, o(e);
211
+ }, Qs = (s, o) => {
212
+ let e;
213
+ return s !== void 0 && (e = window.setTimeout(() => {
214
+ const t = new Error(`Connection timed out after ${s}ms`);
215
+ t.code = Gt.ConnectionTimeout, o(t);
216
216
  }, s)), () => {
217
- clearTimeout(t);
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 = Jt.NoIframeSrc, o;
222
+ throw o.code = Gt.NoIframeSrc, o;
223
223
  }
224
- }, Ys = (s) => {
225
- let { iframe: o, methods: t = {}, childOrigin: e, timeout: r, debug: n = !1 } = s;
226
- const h = Ds(n), d = Ls("Parent", h), { onDestroy: l, destroy: p } = d;
227
- e || (qs(o), e = Ms(o.src));
228
- const y = e === "null" ? "*" : e, b = fs(t), S = zs(h, b, e, y), v = $s(b, e, y, d, h);
224
+ }, tr = (s) => {
225
+ let { iframe: o, methods: e = {}, childOrigin: t, timeout: r, debug: n = !1 } = s;
226
+ const c = Ms(n), h = xs("Parent", c), { onDestroy: l, destroy: p } = h;
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 T = js(r, p), R = (A) => {
232
- if (!(A.source !== o.contentWindow || !A.data)) {
233
- if (A.data.penpal === K.Syn) {
234
- S(A);
231
+ const H = Qs(r, p), x = (I) => {
232
+ if (!(I.source !== o.contentWindow || !I.data)) {
233
+ if (I.data.penpal === j.Syn) {
234
+ S(I);
235
235
  return;
236
236
  }
237
- if (A.data.penpal === K.Ack) {
238
- const W = v(A);
239
- W && (T(), O(W));
237
+ if (I.data.penpal === j.Ack) {
238
+ const W = v(I);
239
+ W && (H(), O(W));
240
240
  return;
241
241
  }
242
242
  }
243
243
  };
244
- window.addEventListener(ct.Message, R), h("Parent: Awaiting handshake"), Ws(o, d), l((A) => {
245
- window.removeEventListener(ct.Message, R), A && f(A);
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
- }, Zs = (s) => {
252
+ }, er = (s) => {
253
253
  const o = new RegExp(/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w]+\/$/);
254
- let t = "";
255
- return o.test(s) ? t = s : s.indexOf("/index.html") > -1 ? t = s.replace("/index.html", "/") : s.charAt(-1) !== "/" && (t = `${s}/`), t;
256
- }, Qs = (s, o, t) => {
257
- const e = Zs(o), n = `<html>
254
+ let e = "";
255
+ return o.test(s) ? e = s : s.indexOf("/index.html") > -1 ? e = s.replace("/index.html", "/") : s.charAt(-1) !== "/" && (e = `${s}/`), e;
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"/>
261
261
  <!-- use this property to pass the StudioStyling to the engine -->
262
- <meta name="studio-styling" content='${JSON.stringify(t || {})}'>
262
+ <meta name="studio-styling" content='${JSON.stringify(e || {})}'>
263
263
  </head>
264
264
  <body>
265
265
  <script>
@@ -294,15 +294,15 @@ const Us = () => ++Js, Cs = ".", ms = (s) => s ? s.split(Cs) : [], ks = (s) => s
294
294
  window.addEventListener('error', handleIframeError);
295
295
  window.addEventListener('unhandledrejection', handleUnhandledRejection);
296
296
  <\/script>
297
- <script src="${e}init.js" async><\/script>
298
- <script src="${e}flutter_bootstrap.js"><\/script>
297
+ <script src="${t}init.js" async><\/script>
298
+ <script src="${t}flutter_bootstrap.js"><\/script>
299
299
  <script>
300
300
  try {
301
301
  if(!window?.initializeStudioEngine){
302
302
  throw new Error('Failed to initialize studio engine: initializeStudioEngine not found');
303
303
  }
304
304
  initializeStudioEngine({
305
- assetBase: '${e}',
305
+ assetBase: '${t}',
306
306
  });
307
307
  } catch(error) {
308
308
  if (window.parent && window.parent !== window) {
@@ -324,15 +324,15 @@ const Us = () => ++Js, Cs = ".", ms = (s) => s ? s.split(Cs) : [], ks = (s) => s
324
324
  </html>`;
325
325
  s.srcdoc = n;
326
326
  };
327
- let Qt = null;
328
- const Xs = (s, o, t, e = "chili-editor", r, n) => {
329
- Qt && window.removeEventListener("message", Qt);
330
- const h = `#${e}`, d = document.createElement("iframe");
331
- d.setAttribute("srcdoc", " "), d.setAttribute("title", "Chili-Editor"), d.setAttribute("style", "width: 100%; height: 100%;"), d.setAttribute("frameBorder", "0"), d.setAttribute("referrerpolicy", "origin");
327
+ let ee = null;
328
+ const rr = (s, o, e, t = "chili-editor", r, n) => {
329
+ ee && window.removeEventListener("message", ee);
330
+ const c = `#${t}`, h = document.createElement("iframe");
331
+ h.setAttribute("srcdoc", " "), h.setAttribute("title", "Chili-Editor"), h.setAttribute("style", "width: 100%; height: 100%;"), h.setAttribute("frameBorder", "0"), h.setAttribute("referrerpolicy", "origin");
332
332
  const l = () => {
333
- const p = document.querySelector(h);
333
+ const p = document.querySelector(c);
334
334
  if (p) {
335
- p == null || p.appendChild(d), d.addEventListener(
335
+ p == null || p.appendChild(h), h.addEventListener(
336
336
  "error",
337
337
  () => {
338
338
  const y = new Error("Failed to setup frame: iframe failed to load");
@@ -341,7 +341,7 @@ const Xs = (s, o, t, e = "chili-editor", r, n) => {
341
341
  { capture: !0, once: !0 }
342
342
  );
343
343
  try {
344
- Qs(d, 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
  }
@@ -349,16 +349,16 @@ const Xs = (s, o, t, e = "chili-editor", r, n) => {
349
349
  };
350
350
  document.readyState === "complete" || document.readyState === "interactive" ? l() : document.addEventListener("DOMContentLoaded", () => {
351
351
  l();
352
- }), Qt = (p) => {
352
+ }), ee = (p) => {
353
353
  var y;
354
- if (p.source === d.contentWindow && ((y = p.data) == null ? void 0 : y.type) === "iframe-error") {
354
+ if (p.source === h.contentWindow && ((y = p.data) == null ? void 0 : y.type) === "iframe-error") {
355
355
  const b = p.data.error, S = new Error(b.message || "Failed to setup frame: error in iframe");
356
356
  n == null || n(S);
357
357
  }
358
- }, window.addEventListener("message", Qt), t(
359
- Ys({
358
+ }, window.addEventListener("message", ee), e(
359
+ tr({
360
360
  // The iframe to which a connection should be made
361
- iframe: d,
361
+ iframe: h,
362
362
  // All the methods that we want to expose to the child should be inside the methods object
363
363
  // f.e. stateChange(documentJson)
364
364
  methods: {
@@ -407,8 +407,8 @@ const Xs = (s, o, t, e = "chili-editor", r, n) => {
407
407
  })
408
408
  );
409
409
  };
410
- var X = /* @__PURE__ */ ((s) => (s.GraFxStudioEnvironmentApiUrl = "ENVIRONMENT_API", s.GraFxStudioSdkVersion = "SDK_VERSION", s.GraFxStudioDocumentType = "DOCUMENT_TYPE", s.GraFxStudioTemplateId = "TEMPLATE_ID", s.GraFxStudioAuthToken = "GRAFX_AUTH_TOKEN", s.QueryCallCacheEnabled = "ENABLE_QUERY_CALL_CACHE", s))(X || {}), tr = /* @__PURE__ */ ((s) => (s.full = "full", s.followConstraints = "followConstraints", s))(tr || {});
411
- const er = {
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 er = {
426
426
  frameEditingMode: "full"
427
427
  /* full */
428
428
  };
429
- var sr = /* @__PURE__ */ ((s) => (s.overflow = "overflow", s.fontLoading = "fontLoading", s.actionRegister = "actionRegister", s.actionExecution = "actionExecution", s.actionCircular = "actionCircular", s))(sr || {}), Ss = /* @__PURE__ */ ((s) => (s.project = "project", s.template = "template", s.component = "component", s))(Ss || {});
430
- class rr {
431
- constructor(o, t, e, r) {
432
- this.type = "action", this.message = o, this.id = t, this.event = e, this.eventChain = r;
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
+ constructor(o, e, t, r) {
432
+ this.type = "action", this.message = o, this.id = e, this.event = t, this.eventChain = r;
433
433
  }
434
434
  }
435
- class nr {
436
- constructor(o, t, e) {
437
- this.type = "dataRow", this.count = o, this.message = t, this.exceptions = e;
435
+ class cr {
436
+ constructor(o, e, t) {
437
+ this.type = "dataRow", this.count = o, this.message = e, this.exceptions = t;
438
438
  }
439
439
  }
440
- class ar extends Error {
441
- constructor(o, t, e) {
442
- super(t, e), this.statusCode = o;
440
+ class hr extends Error {
441
+ constructor(o, e, t) {
442
+ super(e, t), this.statusCode = o;
443
443
  }
444
444
  }
445
- class ir extends Error {
446
- constructor(o, t, e) {
447
- super(t, e), this.context = o;
445
+ class dr extends Error {
446
+ constructor(o, e, t) {
447
+ super(e, t), this.context = o;
448
448
  }
449
449
  }
450
- const or = 404075, hr = 403032;
451
- function Zt(s) {
452
- const o = s.error ?? "Yikes, something went wrong", t = {
450
+ const lr = 404075, ur = 403032;
451
+ function St(s) {
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 === or) {
458
+ if (s.status === lr) {
459
459
  const r = JSON.parse(s.data).statusCode;
460
- throw new ar(r, o, t);
460
+ throw new hr(r, o, e);
461
461
  } else
462
- throw new Error(o, t);
462
+ throw new Error(o, e);
463
463
  }
464
- function cr(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:.*$/,
@@ -469,29 +469,29 @@ function cr(s) {
469
469
  /NumberVariable '([^']+)' expects \$extractedValue to be >= .+$/,
470
470
  /NumberVariable '([^']+)' expects \$extractedValue to be <= .+$/
471
471
  ];
472
- for (const t of o)
473
- if (s.match(t))
472
+ for (const e of o)
473
+ if (s.match(e))
474
474
  return { valid: !0 };
475
475
  return { valid: !1 };
476
476
  }
477
- function dr(s, o) {
478
- if (s.status === hr && s.error) {
479
- const t = s.error;
480
- if (cr(t).valid)
481
- throw new ir(o, t, {
482
- cause: { name: String(s.status), message: t }
477
+ function yr(s, o) {
478
+ if (s.status === ur && s.error) {
479
+ const e = s.error;
480
+ if (gr(e).valid)
481
+ throw new dr(o, e, {
482
+ cause: { name: String(s.status), message: e }
483
483
  });
484
484
  }
485
485
  }
486
- function lr(s) {
487
- Zt(s);
486
+ function pr(s) {
487
+ St(s);
488
488
  }
489
489
  function i(s, o) {
490
- let t = !0, e = !1, r = lr;
491
- typeof o == "function" ? (e = !0, r = o) : typeof o == "boolean" && (t = o);
490
+ let e = !0, t = !1, r = pr;
491
+ typeof o == "function" ? (t = !0, r = o) : typeof o == "boolean" && (e = o);
492
492
  try {
493
- s.success || (r(s), e && Zt(s));
494
- const n = s.data && t;
493
+ s.success || (r(s), t && St(s));
494
+ const n = s.data && e;
495
495
  return {
496
496
  ...s,
497
497
  parsedData: n ? JSON.parse(s.data) : s.data
@@ -500,8 +500,8 @@ function i(s, o) {
500
500
  throw console.error(n), n;
501
501
  }
502
502
  }
503
- var N;
504
- class xe {
503
+ var L;
504
+ class Ve {
505
505
  /**
506
506
  * @ignore
507
507
  */
@@ -509,13 +509,13 @@ class xe {
509
509
  /**
510
510
  * @ignore
511
511
  */
512
- u(this, N);
513
- this.getAll = async () => (await a(this, N)).getActions().then((e) => i(e)), this.getById = async (t) => (await a(this, N)).getActionById(t).then((r) => i(r)), this.create = async () => (await a(this, N)).createAction().then((e) => i(e)), this.duplicate = async (t) => (await a(this, N)).duplicateAction(t).then((r) => i(r)), this.remove = async (t) => (await a(this, N)).removeAction(t).then((r) => i(r)), this.update = async (t, e) => (await a(this, N)).updateAction(t, JSON.stringify(e)).then((n) => i(n)), this.rename = async (t, e) => this.update(t, { name: e }), this.updateScript = async (t, e) => this.update(t, { script: e }), this.updateTriggers = async (t, e) => this.update(t, { triggers: e }), this.move = async (t, e) => (await a(this, N)).moveActions(t, e).then((n) => i(n)), this.setTypeError = async (t, e) => this.update(t, { hasTypeError: e }), this.disable = async () => (await a(this, N)).disableActions().then((e) => i(e)), this.enable = async () => (await a(this, N)).enableActions().then((e) => i(e)), 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 D;
518
- class Re {
516
+ L = new WeakMap();
517
+ var N;
518
+ class Be {
519
519
  /**
520
520
  * @ignore
521
521
  */
@@ -523,15 +523,15 @@ class Re {
523
523
  /**
524
524
  * @ignore
525
525
  */
526
- u(this, D);
527
- this.getAllOnSelectedLayout = async () => (await a(this, D)).getAnimationsOnSelectedLayout().then((e) => i(e)), this.getByFrameId = async (t, e) => (await a(this, D)).getAnimationByFrameId(t, e).then((n) => i(n)), this.getByLayoutId = async (t) => (await a(this, D)).getAnimationsByLayoutId(t).then((r) => i(r)), this.setFrameAnimation = async (t) => (await a(this, D)).setFrameAnimation(JSON.stringify(t)).then(
528
- (r) => i({ ...r, data: JSON.stringify(t) })
529
- ), this.play = async () => (await a(this, D)).playAnimation().then((e) => i(e)), this.pause = async () => (await a(this, D)).pauseAnimation().then((e) => i(e)), this.setScrubberPosition = async (t) => (await a(this, D)).setScrubberPosition(t).then((r) => i(r)), this.setDuration = async (t) => (await a(this, D)).setAnimationDuration(t).then((r) => i(r)), this.resetFrameAnimation = async (t) => (await a(this, D)).resetFrameAnimation(t).then((r) => i(r)), this.reset = async () => (await a(this, D)).resetAnimation().then((e) => i(e)), g(this, D, o);
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
+ (r) => i({ ...r, data: JSON.stringify(e) })
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
- D = new WeakMap();
533
- var H = /* @__PURE__ */ ((s) => (s.code39 = "code39", s.code93 = "code93", s.code128 = "code128", s.dataMatrix = "dataMatrix", s.ean13 = "ean13", s.ean8 = "ean8", s.qr = "qr", s.upca = "upca", s.upce = "upce", s.gs1128 = "gs1128", s))(H || {}), Mt = /* @__PURE__ */ ((s) => (s.low = "low", s.medium = "medium", s.quartile = "quartile", s.high = "high", s))(Mt || {}), bt = /* @__PURE__ */ ((s) => (s.utf8 = "utf8", s.iso8859_1 = "iso8859_1", s.code128a = "code128a", s.code128b = "code128b", s.code128c = "code128c", s))(bt || {}), ur = /* @__PURE__ */ ((s) => (s.success = "success", s.empty = "empty", s.invalidLength = "invalidLength", s.invalidCharacters = "invalidCharacters", s.invalidChecksum = "invalidChecksum", s.invalidUPCE = "invalidUPCE", s.otherError = "otherError", s))(ur || {}), gr = /* @__PURE__ */ ((s) => (s.px = "px", s.mm = "mm", s.cm = "cm", s.inch = "inch", s.pt = "pt", s))(gr || {}), Q = /* @__PURE__ */ ((s) => (s.top = "top", s.right = "right", s.bottom = "bottom", s.left = "left", s))(Q || {}), yr = /* @__PURE__ */ ((s) => (s.top = "top", s.child = "child", s))(yr || {}), pr = /* @__PURE__ */ ((s) => (s.print = "print", s.digitalStatic = "digitalStatic", s.digitalAnimated = "digitalAnimated", s))(pr || {}), wr = /* @__PURE__ */ ((s) => (s.locked = "locked", s.range = "range", s.none = "none", s))(wr || {}), G;
534
- class Me {
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,76 +539,76 @@ class Me {
539
539
  /**
540
540
  * @ignore
541
541
  */
542
- u(this, G);
543
- this.setBarcodeProperties = async (t, e) => (await a(this, G)).setBarcodeProperties(t, JSON.stringify(e)).then((n) => i(n)), this.setEnableBackground = async (t, e) => {
544
- const r = { enableBackground: e };
545
- return this.setBarcodeProperties(t, r);
546
- }, this.setBackgroundColor = async (t, e) => {
547
- const r = { backgroundColor: e };
548
- return this.setBarcodeProperties(t, r);
549
- }, this.setEnableBars = async (t, e) => {
550
- const r = { enableBars: e };
551
- return this.setBarcodeProperties(t, r);
552
- }, this.setBarColor = async (t, e) => {
553
- const r = { barColor: e };
554
- return this.setBarcodeProperties(t, r);
555
- }, this.setBarcodeSource = async (t, e) => (await a(this, G)).setBarcodeSource(t, JSON.stringify(e)).then((n) => i(n)), this.removeBarcodeSource = async (t) => (await a(this, G)).setBarcodeSource(t, null).then((r) => i(r)), this.setEnableText = async (t, e) => {
556
- const r = { enableText: e };
557
- return this.setBarcodeProperties(t, r);
558
- }, this.setBarHeight = async (t, e) => {
559
- const r = { barHeight: e };
560
- return this.setBarcodeProperties(t, r);
561
- }, this.setMagnification = async (t, e) => {
562
- const r = { magnification: e };
563
- return this.setBarcodeProperties(t, r);
564
- }, this.setQuietZoneValue = async (t, e, r) => {
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
+ const r = { enableBackground: t };
545
+ return this.setBarcodeProperties(e, r);
546
+ }, this.setBackgroundColor = async (e, t) => {
547
+ const r = { backgroundColor: t };
548
+ return this.setBarcodeProperties(e, r);
549
+ }, this.setEnableBars = async (e, t) => {
550
+ const r = { enableBars: t };
551
+ return this.setBarcodeProperties(e, r);
552
+ }, this.setBarColor = async (e, t) => {
553
+ const r = { barColor: t };
554
+ return this.setBarcodeProperties(e, r);
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
+ const r = { enableText: t };
557
+ return this.setBarcodeProperties(e, r);
558
+ }, this.setBarHeight = async (e, t) => {
559
+ const r = { barHeight: t };
560
+ return this.setBarcodeProperties(e, r);
561
+ }, this.setMagnification = async (e, t) => {
562
+ const r = { magnification: t };
563
+ return this.setBarcodeProperties(e, r);
564
+ }, this.setQuietZoneValue = async (e, t, r) => {
565
565
  const n = r ? {
566
- left: r === Q.left ? e : void 0,
567
- top: r === Q.top ? e : void 0,
568
- right: r === Q.right ? e : void 0,
569
- bottom: r === Q.bottom ? e : void 0
570
- } : { left: e, top: e, right: e, bottom: e };
571
- return (await a(this, G)).setBarcodeProperties(t, JSON.stringify({ quietZone: n })).then((d) => i(d));
572
- }, this.setAreQuietZoneValuesCombined = async (t, e) => {
573
- const r = { areQuietZoneValuesCombined: e };
574
- return (await a(this, G)).setBarcodeProperties(t, JSON.stringify({ quietZone: r })).then((h) => i(h));
575
- }, this.setErrorCorrectionLevel = async (t, e) => (await a(this, G)).setBarcodeProperties(t, JSON.stringify({ errorCorrectionLevel: e })).then((n) => i(n)), this.setCharacterSet = async (t, e) => (await a(this, G)).setBarcodeProperties(t, JSON.stringify({ characterSet: e })).then((n) => i(n)), this.setDrawLightMarginIndicator = async (t, e) => {
576
- const r = { drawStartStopChars: e };
577
- return this.setBarcodeProperties(t, r);
578
- }, this.setDrawStartStopChars = async (t, e) => {
579
- const r = { drawStartStopChars: e };
580
- return this.setBarcodeProperties(t, r);
581
- }, this.getBarcodeConfigationOptions = (t) => {
582
- let e = !0, r = !0, n = !0, h, d, l = !1, p = !1, y = !1;
583
- switch (t) {
584
- case H.qr:
585
- h = [bt.iso8859_1, bt.utf8], d = [
586
- Mt.low,
587
- Mt.medium,
588
- Mt.quartile,
589
- Mt.high
566
+ left: r === X.left ? t : void 0,
567
+ top: r === X.top ? t : void 0,
568
+ right: r === X.right ? t : void 0,
569
+ bottom: r === X.bottom ? t : void 0
570
+ } : { left: t, top: t, right: t, bottom: t };
571
+ return (await a(this, T)).setBarcodeProperties(e, JSON.stringify({ quietZone: n })).then((h) => i(h));
572
+ }, this.setAreQuietZoneValuesCombined = async (e, t) => {
573
+ const r = { areQuietZoneValuesCombined: 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
+ const r = { drawStartStopChars: t };
577
+ return this.setBarcodeProperties(e, r);
578
+ }, this.setDrawStartStopChars = async (e, t) => {
579
+ const r = { drawStartStopChars: t };
580
+ return this.setBarcodeProperties(e, r);
581
+ }, this.getBarcodeConfigationOptions = (e) => {
582
+ let t = !0, r = !0, n = !0, c, h, l = !1, p = !1, y = !1;
583
+ switch (e) {
584
+ case $.qr:
585
+ c = [It.iso8859_1, It.utf8], h = [
586
+ Jt.low,
587
+ Jt.medium,
588
+ Jt.quartile,
589
+ Jt.high
590
590
  ];
591
- case H.dataMatrix:
592
- e = !1, r = !1, n = !1, l = !0;
591
+ case $.dataMatrix:
592
+ t = !1, r = !1, n = !1, l = !0;
593
593
  break;
594
- case H.ean13:
595
- e = !1, p = !0;
594
+ case $.ean13:
595
+ t = !1, p = !0;
596
596
  break;
597
- case H.ean8:
597
+ case $.ean8:
598
598
  p = !0;
599
- case H.upca:
600
- case H.upce:
601
- e = !1;
599
+ case $.upca:
600
+ case $.upce:
601
+ t = !1;
602
602
  break;
603
- case H.code128:
604
- case H.gs1128:
605
- h = [
606
- bt.code128a,
607
- bt.code128b,
608
- bt.code128c
603
+ case $.code128:
604
+ case $.gs1128:
605
+ c = [
606
+ It.code128a,
607
+ It.code128b,
608
+ It.code128c
609
609
  ];
610
610
  break;
611
- case H.code39:
611
+ case $.code39:
612
612
  y = !0;
613
613
  break;
614
614
  }
@@ -616,19 +616,19 @@ class Me {
616
616
  allowEnableMagnification: n,
617
617
  allowBarHeight: r,
618
618
  allowQuietZone: !0,
619
- allowedCharacterSets: h,
620
- allowedErrorCorrectionLevels: d,
621
- allowToggleText: e,
619
+ allowedCharacterSets: c,
620
+ allowedErrorCorrectionLevels: h,
621
+ allowToggleText: t,
622
622
  quietZoneAlwaysCombined: l,
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 Cr(s) {
631
- const o = s.fontFamilies.length > 0 ? String(s.fontFamilies[0].connectorId) : "", t = {
629
+ T = new WeakMap();
630
+ function br(s) {
631
+ const o = s.fontFamilies.length > 0 ? String(s.fontFamilies[0].connectorId) : "", e = {
632
632
  id: s.id ?? "",
633
633
  name: s.name ?? "",
634
634
  dateCreated: "",
@@ -646,10 +646,10 @@ function Cr(s) {
646
646
  id: s.id ?? "",
647
647
  name: s.name ?? "",
648
648
  fontConnectorId: o,
649
- brandKit: t
649
+ brandKit: e
650
650
  };
651
651
  }
652
- function mr(s) {
652
+ function vr(s) {
653
653
  return {
654
654
  id: s.id ?? "",
655
655
  version: s.version ?? "",
@@ -663,30 +663,30 @@ function mr(s) {
663
663
  themes: s.themes
664
664
  };
665
665
  }
666
- var I, ls;
667
- let Ve = (ls = class {
666
+ var A, ys;
667
+ let Ue = (ys = class {
668
668
  /**
669
669
  * @ignore
670
670
  */
671
- constructor(o, t) {
671
+ constructor(o, e) {
672
672
  /**
673
673
  * @ignore
674
674
  */
675
- u(this, I);
676
- this.getId = async () => (await a(this, I)).getBrandKitId().then((r) => i(r)), this.getVersion = async () => (await a(this, I)).getBrandKitVersion().then((r) => i(r)), this.getName = async () => (await a(this, I)).getBrandKitName().then((r) => i(r)), this.rename = async (e) => (await a(this, I)).renameBrandKit(e).then((n) => i(n)), this.updateIdAndVersion = async (e, r) => (await a(this, I)).updateBrandKitIdAndVersion(e, r).then((h) => i(h)), this.get = async () => {
677
- const r = await (await a(this, I)).getBrandKit(), n = i(r), h = n.parsedData;
678
- if (h == null)
675
+ u(this, A);
676
+ this.getId = async () => (await a(this, A)).getBrandKitId().then((r) => i(r)), this.getVersion = async () => (await a(this, A)).getBrandKitVersion().then((r) => i(r)), this.getName = async () => (await a(this, A)).getBrandKitName().then((r) => i(r)), this.rename = async (t) => (await a(this, A)).renameBrandKit(t).then((n) => i(n)), this.updateIdAndVersion = async (t, r) => (await a(this, A)).updateBrandKitIdAndVersion(t, r).then((c) => i(c)), this.get = async () => {
677
+ const r = await (await a(this, A)).getBrandKit(), n = i(r), c = n.parsedData;
678
+ if (c == null)
679
679
  throw new Error("Brand kit response has no data");
680
680
  return {
681
681
  ...n,
682
- parsedData: Cr(h)
682
+ parsedData: br(c)
683
683
  };
684
- }, this.getAllMedia = async () => (await a(this, I)).getAllBrandKitMedia().then((r) => i(r)), this.addMedia = async (e, r, n) => (await a(this, I)).addBrandKitMedia(e, r, n).then((d) => i(d)), this.updateMedia = async (e, r, n) => (await a(this, I)).updateBrandKitMedia(e, r, n).then((d) => i(d)), this.renameMedia = async (e, r) => (await a(this, I)).renameBrandKitMedia(e, r).then((h) => i(h)), this.removeMedia = async (e) => (await a(this, I)).removeBrandKitMedia(e).then((n) => i(n)), this.remove = async () => {
685
- const r = (await this.colorStyleController.getAll()).parsedData || [], h = (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 || [];
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
+ 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 || [];
686
686
  await this.undoManagerController.record("brandKit.remove", async (O) => {
687
687
  for (const f of r)
688
688
  await O.colorStyle.remove(f.id);
689
- for (const f of h)
689
+ for (const f of c)
690
690
  await O.gradientStyle.remove(f.id);
691
691
  for (const f of l)
692
692
  await O.paragraphStyle.remove(f.id);
@@ -697,19 +697,19 @@ let Ve = (ls = class {
697
697
  for (const f of E)
698
698
  await this.removeMedia(f.name);
699
699
  });
700
- }, this.set = async (e) => {
701
- const n = await (await a(this, I)).setBrandKit(JSON.stringify(e.brandKit)), h = i(n), d = h.parsedData;
702
- if (d == null)
700
+ }, this.set = async (t) => {
701
+ const n = await (await a(this, A)).setBrandKit(JSON.stringify(t.brandKit)), c = i(n), h = c.parsedData;
702
+ if (h == null)
703
703
  throw new Error("Brand kit set response has no data");
704
704
  return {
705
- ...h,
706
- parsedData: mr(d)
705
+ ...c,
706
+ parsedData: vr(h)
707
707
  };
708
- }, this.isAutoSync = async () => (await a(this, I)).isBrandKitAutoSync().then((r) => i(r)), this.enableAutoSync = async (e) => (await a(this, I)).enableBrandKitAutoSync(e).then((n) => i(n)), g(this, I, o), this.colorStyleController = t.colorStyle, this.gradientStyleController = t.gradientStyle, this.fontController = t.font, this.mediaController = t.mediaConnector, this.paragraphStyleController = t.paragraphStyle, this.characterStyleController = t.characterStyle, this.undoManagerController = t.undoManager;
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
- }, I = new WeakMap(), ls);
711
- var et;
712
- class ne {
710
+ }, A = new WeakMap(), ys);
711
+ var st;
712
+ class he {
713
713
  /**
714
714
  * @ignore
715
715
  */
@@ -717,13 +717,13 @@ class ne {
717
717
  /**
718
718
  * @ignore
719
719
  */
720
- u(this, et);
721
- this.zoomToPage = async (t, e, r, n, h) => (t !== void 0 && console.warn("id has no effect and will be deprecated in the future"), (await a(this, et)).zoomToPage(e, r, n, h).then((l) => i(l))), this.getZoomPercentage = async () => (await a(this, et)).getZoomPercentage().then((e) => i(e)), this.setZoomPercentage = async (t) => (await a(this, et)).setZoomPercentage(t).then((r) => i(r)), this.setViewMode = async (t) => (await a(this, et)).setViewMode(t).then((r) => i(r)), g(this, et, o);
720
+ u(this, st);
721
+ this.zoomToPage = async (e, t, r, n, c) => (e !== void 0 && console.warn("id has no effect and will be deprecated in the future"), (await a(this, st)).zoomToPage(t, r, n, c).then((l) => i(l))), this.getZoomPercentage = async () => (await a(this, st)).getZoomPercentage().then((t) => i(t)), this.setZoomPercentage = async (e) => (await a(this, st)).setZoomPercentage(e).then((r) => i(r)), this.setViewMode = async (e) => (await a(this, st)).setViewMode(e).then((r) => i(r)), g(this, st, o);
722
722
  }
723
723
  }
724
- et = new WeakMap();
724
+ st = new WeakMap();
725
725
  var V;
726
- class Be {
726
+ class ke {
727
727
  /**
728
728
  * @ignore
729
729
  */
@@ -732,12 +732,12 @@ class Be {
732
732
  * @ignore
733
733
  */
734
734
  u(this, V);
735
- this.getAll = async () => (await a(this, V)).getCharacterStyles().then((e) => i(e)), this.getById = async (t) => (await a(this, V)).getCharacterStyleById(t).then((r) => i(r)), this.create = async () => (await a(this, V)).createCharacterStyle().then((e) => i(e)), this.update = async (t, e) => (await a(this, V)).updateCharacterStyle(t, JSON.stringify(e)).then((n) => i(n)), this.remove = async (t) => (await a(this, V)).removeCharacterStyle(t).then((r) => i(r)), this.duplicate = async (t) => (await a(this, V)).duplicateCharacterStyle(t).then((r) => i(r)), this.rename = async (t, e) => (await a(this, V)).renameCharacterStyle(t, e).then((n) => i(n)), this.move = async (t, e) => (await a(this, V)).moveCharacterStyles(t, e).then((n) => i(n)), g(this, V, o);
735
+ this.getAll = async () => (await a(this, V)).getCharacterStyles().then((t) => i(t)), this.getById = async (e) => (await a(this, V)).getCharacterStyleById(e).then((r) => i(r)), this.create = async () => (await a(this, V)).createCharacterStyle().then((t) => i(t)), this.update = async (e, t) => (await a(this, V)).updateCharacterStyle(e, JSON.stringify(t)).then((n) => i(n)), this.remove = async (e) => (await a(this, V)).removeCharacterStyle(e).then((r) => i(r)), this.duplicate = async (e) => (await a(this, V)).duplicateCharacterStyle(e).then((r) => i(r)), this.rename = async (e, t) => (await a(this, V)).renameCharacterStyle(e, t).then((n) => i(n)), this.move = async (e, t) => (await a(this, V)).moveCharacterStyles(e, t).then((n) => i(n)), g(this, V, o);
736
736
  }
737
737
  }
738
738
  V = new WeakMap();
739
- var st;
740
- class Je {
739
+ var rt;
740
+ class Ge {
741
741
  /**
742
742
  * @ignore
743
743
  */
@@ -745,25 +745,25 @@ class Je {
745
745
  /**
746
746
  * @ignore
747
747
  */
748
- u(this, st);
749
- this.copyFrames = async (t) => {
750
- const r = await (await a(this, st)).copyFrames(t);
748
+ u(this, rt);
749
+ this.copyFrames = async (e) => {
750
+ const r = await (await a(this, rt)).copyFrames(e);
751
751
  return r.data && await navigator.clipboard.writeText(r.data), i(r);
752
- }, this.cutFrames = async (t) => {
753
- const r = await (await a(this, st)).cutFrames(t);
752
+ }, this.cutFrames = async (e) => {
753
+ const r = await (await a(this, rt)).cutFrames(e);
754
754
  return r.data && await navigator.clipboard.writeText(r.data), i(r);
755
755
  }, this.pasteFrames = async () => {
756
- const t = await a(this, st), e = await navigator.clipboard.readText(), r = await t.pasteFrames(e);
756
+ const e = await a(this, rt), t = await navigator.clipboard.readText(), r = await e.pasteFrames(t);
757
757
  return i(r);
758
758
  }, this.getContentType = async () => {
759
- const t = await a(this, st), e = await navigator.clipboard.readText(), r = await t.getClipboardContentType(e);
759
+ const e = await a(this, rt), t = await navigator.clipboard.readText(), r = await e.getClipboardContentType(t);
760
760
  return i(r);
761
- }, g(this, st, o);
761
+ }, g(this, rt, o);
762
762
  }
763
763
  }
764
- st = new WeakMap();
765
- var _t;
766
- class Ue {
764
+ rt = new WeakMap();
765
+ var $t;
766
+ class Te {
767
767
  /**
768
768
  * @ignore
769
769
  */
@@ -771,13 +771,13 @@ class Ue {
771
771
  /**
772
772
  * @ignore
773
773
  */
774
- u(this, _t);
775
- this.convertToRgb = async (t) => (await a(this, _t)).colorToRgb(JSON.stringify(t)).then((r) => i(r)), g(this, _t, 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
- _t = new WeakMap();
779
- var ae = /* @__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))(ae || {}), fr = /* @__PURE__ */ ((s) => (s.local = "local", s.brandKit = "brandKit", s.stylekit = "brandKit", s))(fr || {}), B;
780
- class ke {
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
+ class _e {
781
781
  /**
782
782
  * @ignore
783
783
  */
@@ -786,112 +786,112 @@ class ke {
786
786
  * @ignore
787
787
  */
788
788
  u(this, B);
789
- this.getAll = async () => (await a(this, B)).getColors().then((e) => i(e)), this.getById = async (t) => (await a(this, B)).getColorById(t).then((r) => i(r)), this.create = async () => (await a(this, B)).createColor().then((e) => i(e)), this.duplicate = async (t) => (await a(this, B)).duplicateColor(t).then((r) => i(r)), this.move = async (t, e) => (await a(this, B)).moveColors(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, B)).renameColor(t, e).then((n) => i(n)), this.update = async (t, e) => {
790
- const r = await a(this, B), n = e;
791
- return n.type === ae.spot && (n.type = ae.spotCMYK), r.updateColor(t, JSON.stringify(n)).then((h) => i(h));
792
- }, this.remove = async (t) => (await a(this, B)).removeColor(t).then((r) => i(r)), g(this, B, o);
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
795
  B = new WeakMap();
796
- var Ut = /* @__PURE__ */ ((s) => (s[s.file = 0] = "file", s[s.collection = 1] = "collection", s))(Ut || {}), ie = /* @__PURE__ */ ((s) => (s.LowResolutionWeb = "lowresWeb", s.HighResolutionWeb = "highresWeb", s))(ie || {}), kt = /* @__PURE__ */ ((s) => (s.file = "file", s.collection = "collection", s))(kt || {}), Sr = /* @__PURE__ */ ((s) => (s.media = "media", s.fonts = "fonts", s.data = "data", s.components = "components", s))(Sr || {}), br = /* @__PURE__ */ ((s) => (s.name = "name", s.path = "relativePath", s.id = "id", s))(br || {}), vr = /* @__PURE__ */ ((s) => (s.ascending = "asc", s.descending = "desc", s))(vr || {}), Ar = /* @__PURE__ */ ((s) => (s.text = "text", s.boolean = "boolean", s))(Ar || {}), Ir = /* @__PURE__ */ ((s) => (s.query = "query", s.upload = "upload", s))(Ir || {}), Vt = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Vt || {});
797
- class $n {
798
- constructor(o, t, e, r = "engineToConnector") {
799
- this.direction = "engineToConnector", this.name = o, this.direction = r, t === "var" ? this.value = `${t}.${e}` : this.value = e;
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
+ constructor(o, e, t, r = "engineToConnector") {
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 Pr = /* @__PURE__ */ ((s) => (s.variable = "var", s.value = "value", s))(Pr || {}), Or = /* @__PURE__ */ ((s) => (s.engineToConnector = "engineToConnector", s.connectorToEngine = "connectorToEngine", s))(Or || {}), oe = /* @__PURE__ */ ((s) => (s.loading = "loading", s.loaded = "loaded", s.running = "running", s.ready = "ready", s.error = "error", s))(oe || {}), Fr = /* @__PURE__ */ ((s) => (s.stateChanged = "stateChanged", s.authChanged = "authChanged", s.reloadRequired = "reloadRequired", s.unloaded = "unloaded", s))(Fr || {});
803
- const zn = {
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 Kn {
809
- constructor(o, t) {
810
- this.type = "grafxToken", this.token = o, this.headers = t;
808
+ class ea {
809
+ constructor(o, e) {
810
+ this.type = "grafxToken", this.token = o, this.headers = e;
811
811
  }
812
812
  }
813
- class Wn {
813
+ class sa {
814
814
  constructor(o) {
815
815
  this.type = "refreshed", this.headers = o;
816
816
  }
817
817
  }
818
- var Er = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.refreshed = "refreshed", s))(Er || {}), Lr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.any = "any", s))(Lr || {}), bs = /* @__PURE__ */ ((s) => (s.minDimension = "minDimension", s))(bs || {});
819
- class Dr extends Error {
820
- constructor(o, t) {
821
- super(o), this.type = t;
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
+ class Mr extends Error {
820
+ constructor(o, e) {
821
+ super(o), this.type = e;
822
822
  }
823
823
  }
824
- var Nr = /* @__PURE__ */ ((s) => (s.StaticKey = "staticKey", s.OAuth2ClientCredentials = "oAuth2ClientCredentials", s.OAuth2AuthorizationCode = "oAuth2AuthorizationCode", s.OAuth2ResourceOwnerPassword = "oAuth2ResourceOwnerPassword", s.OAuth2JwtBearer = "oAuth2JwtBearer", s.None = "none", s))(Nr || {});
825
- class le {
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
+ class ne {
826
826
  constructor() {
827
827
  this.makeConnectorSourceForwardsCompatible = (o) => {
828
- if (o.source != Vt.grafx || this.isSourceMigrated(o))
828
+ if (o.source != Ut.grafx || this.isSourceMigrated(o))
829
829
  return o;
830
- let t = o.url;
831
- for (; t.endsWith("/"); )
832
- t = t.substring(0, t.length - 1);
833
- const e = t.split("/");
834
- return { id: e[e.length - 1], source: Vt.grafx };
835
- }, this.makeMultipleConnectorsBackwardsCompatible = (o, t) => o.map((e) => this.makeSingleConnectorBackwardsCompatible(e, t)), this.makeSingleConnectorBackwardsCompatible = (o, t) => o.source.source != Vt.grafx ? o : {
830
+ let e = o.url;
831
+ for (; e.endsWith("/"); )
832
+ e = e.substring(0, e.length - 1);
833
+ const t = e.split("/");
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,
839
- source: this.makeConnectorSourceBackwardsCompatible(o.source, t)
840
- }, this.makeConnectorSourceBackwardsCompatible = (o, t) => {
841
- let e = t;
842
- for (; e != null && e.endsWith("/"); )
843
- e = e.substring(0, e.length - 1);
839
+ source: this.makeConnectorSourceBackwardsCompatible(o.source, e)
840
+ }, this.makeConnectorSourceBackwardsCompatible = (o, e) => {
841
+ let t = e;
842
+ for (; t != null && t.endsWith("/"); )
843
+ t = t.substring(0, t.length - 1);
844
844
  return {
845
- url: `${e}/connectors/${o.id}`,
846
- source: Vt.grafx
845
+ url: `${t}/connectors/${o.id}`,
846
+ source: Ut.grafx
847
847
  };
848
848
  }, this.isSourceMigrated = (o) => "id" in o;
849
849
  }
850
850
  }
851
- var x, vt, lt, us;
852
- let Ge = (us = class {
851
+ var R, At, ut, ps;
852
+ let He = (ps = class {
853
853
  /**
854
854
  * @ignore
855
855
  */
856
- constructor(o, t) {
856
+ constructor(o, e) {
857
857
  /**
858
858
  * @ignore
859
859
  */
860
- u(this, x);
861
- u(this, vt);
862
- u(this, lt);
863
- this.getById = async (e) => (await a(this, x)).getConnectorById(e).then((n) => i(n)).then((n) => {
864
- const h = { ...n, parsedData: null };
865
- return n.parsedData && (h.parsedData = a(this, lt).makeSingleConnectorBackwardsCompatible(
860
+ u(this, R);
861
+ u(this, At);
862
+ u(this, ut);
863
+ this.getById = async (t) => (await a(this, R)).getConnectorById(t).then((n) => i(n)).then((n) => {
864
+ const c = { ...n, parsedData: null };
865
+ return n.parsedData && (c.parsedData = a(this, ut).makeSingleConnectorBackwardsCompatible(
866
866
  n.parsedData,
867
- a(this, vt).get(X.GraFxStudioEnvironmentApiUrl)
868
- )), h;
869
- }), this.getAllByType = async (e) => (await a(this, x)).getConnectors(e).then((n) => i(n)).then((n) => {
870
- const h = { ...n, parsedData: null };
871
- return n.parsedData && (h.parsedData = a(this, lt).makeMultipleConnectorsBackwardsCompatible(
867
+ a(this, At).get(tt.GraFxStudioEnvironmentApiUrl)
868
+ )), c;
869
+ }), this.getAllByType = async (t) => (await a(this, R)).getConnectors(t).then((n) => i(n)).then((n) => {
870
+ const c = { ...n, parsedData: null };
871
+ return n.parsedData && (c.parsedData = a(this, ut).makeMultipleConnectorsBackwardsCompatible(
872
872
  n.parsedData,
873
- a(this, vt).get(X.GraFxStudioEnvironmentApiUrl)
874
- )), h;
875
- }), this.register = async (e) => {
876
- const r = await a(this, x), n = a(this, lt).makeConnectorSourceForwardsCompatible(e);
877
- return r.registerConnector(JSON.stringify(n)).then((h) => i(h));
878
- }, this.unregister = async (e) => (await a(this, x)).unregisterConnector(e).then((n) => i(n)), this.configure = async (e, r) => {
879
- const n = await a(this, x);
880
- return await this.waitToBeReady(e), await r(new xr(e, n)), n.updateConnectorConfiguration(e).then((h) => i(h));
881
- }, this.getState = async (e) => (await a(this, x)).getConnectorState(e).then((n) => i(n)), this.getOptions = async (e) => (await a(this, x)).getConnectorOptions(e).then((n) => i(n)), this.waitToBeReady = async (e, r = 2e3) => {
873
+ a(this, At).get(tt.GraFxStudioEnvironmentApiUrl)
874
+ )), c;
875
+ }), this.register = async (t) => {
876
+ const r = await a(this, R), n = a(this, ut).makeConnectorSourceForwardsCompatible(t);
877
+ return r.registerConnector(JSON.stringify(n)).then((c) => i(c));
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
- const h = 100;
885
- let d = 0;
884
+ const c = 100;
885
+ let h = 0;
886
886
  try {
887
- for (; d * h < n; ) {
888
- const l = await this.getState(e);
889
- if (l.success && l.parsedData && (l.parsedData.type === oe.running || l.parsedData.type === oe.ready))
887
+ for (; h * c < n; ) {
888
+ const l = await this.getState(t);
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
893
893
  );
894
- await new Promise((p) => setTimeout(p, h)), d++;
894
+ await new Promise((p) => setTimeout(p, c)), h++;
895
895
  }
896
896
  } catch (l) {
897
897
  return i(
@@ -915,112 +915,124 @@ let Ge = (us = class {
915
915
  },
916
916
  !1
917
917
  );
918
- }, this.updateMappings = async (e, r) => await this.configure(e, async (n) => {
919
- const { parsedData: h } = await this.getMappings(e), d = (h == null ? void 0 : h.filter(
918
+ }, this.updateMappings = async (t, r) => await this.configure(t, async (n) => {
919
+ const { parsedData: c } = await this.getMappings(t), h = (c == null ? void 0 : c.filter(
920
920
  (y) => !r.some(
921
921
  (b) => b.name === y.name && b.direction === y.direction
922
922
  )
923
- )) ?? [], l = r.filter((y) => y.name !== "" && y.value !== ""), p = [...d, ...l];
923
+ )) ?? [], l = r.filter((y) => y.name !== "" && y.value !== ""), p = [...h, ...l];
924
924
  await n.setMappings(p);
925
- }), this.setHttpHeaders = async (e, r) => (await a(this, x)).remoteConnectorAuthenticationSetHttpHeaders(e, JSON.stringify(r)).then((h) => i(h)), g(this, x, o), g(this, vt, t), g(this, lt, new le());
925
+ }), this.applyMappings = async (t, r) => await this.configure(t, async (n) => {
926
+ const c = r.filter((h) => h.name !== "" && h.value !== "");
927
+ await n.setMappings(c);
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());
926
929
  }
927
- async getMappings(o, t) {
928
- return (await a(this, x)).getConnectorMappings(o).then((r) => i(r)).then(
930
+ async getMappings(o, e) {
931
+ return (await a(this, R)).getConnectorMappings(o).then((r) => i(r)).then(
929
932
  (r) => {
930
933
  var n;
931
- return t ? {
934
+ return e ? {
932
935
  ...r,
933
- parsedData: (n = r.parsedData) == null ? void 0 : n.filter((h) => h.direction === t)
936
+ parsedData: (n = r.parsedData) == null ? void 0 : n.filter((c) => c.direction === e)
934
937
  } : r;
935
938
  }
936
939
  );
937
940
  }
938
- }, x = new WeakMap(), vt = new WeakMap(), lt = new WeakMap(), us);
939
- var ut, gt;
940
- class xr {
941
+ }, R = new WeakMap(), At = new WeakMap(), ut = new WeakMap(), ps);
942
+ var gt, yt;
943
+ class Br {
941
944
  /**
942
945
  * @ignore
943
946
  */
944
- constructor(o, t) {
947
+ constructor(o, e) {
945
948
  /**
946
949
  * @ignore
947
950
  */
948
- u(this, ut);
949
951
  u(this, gt);
950
- this.setOptions = async (e) => a(this, gt).setConnectorOptions(a(this, ut), JSON.stringify(e)).then((r) => i(r)), this.setMappings = async (e) => {
951
- const r = await a(this, gt).setConnectorMappings(
952
- a(this, ut),
953
- e.map(function(n) {
952
+ u(this, yt);
953
+ this.setOptions = async (t) => a(this, yt).setConnectorOptions(a(this, gt), JSON.stringify(t)).then((r) => i(r)), this.setMappings = async (t) => {
954
+ const r = await a(this, yt).setConnectorMappings(
955
+ a(this, gt),
956
+ t.map(function(n) {
954
957
  return JSON.stringify(n);
955
958
  })
956
959
  );
957
960
  return i(r);
958
- }, this.setHttpHeader = async (e, r) => a(this, gt).connectorAuthenticationSetHttpHeader(a(this, ut), e, r).then((n) => i(n)), g(this, ut, o), g(this, gt, t);
961
+ }, this.setHttpHeader = async (t, r) => a(this, yt).connectorAuthenticationSetHttpHeader(a(this, gt), t, r).then((n) => i(n)), g(this, gt, o), g(this, yt, e);
959
962
  }
960
963
  }
961
- ut = new WeakMap(), gt = new WeakMap();
962
- var q, At;
963
- class _e {
964
+ gt = new WeakMap(), yt = new WeakMap();
965
+ var Y, Pt;
966
+ class $e {
964
967
  /**
965
968
  * @ignore
966
969
  */
967
- constructor(o, t) {
970
+ constructor(o, e) {
968
971
  /**
969
972
  * @ignore
970
973
  */
971
- u(this, q);
972
- u(this, At);
973
- this.getPageItemById = async (e, r, n, h = {}) => {
974
- const l = await (await a(this, q)).dataConnectorGetPageItemById(
975
- e,
974
+ u(this, Y);
975
+ u(this, Pt);
976
+ this.getPageItemById = async (t, r, n, c = {}) => {
977
+ const l = await (await a(this, Y)).dataConnectorGetPageItemById(
978
+ t,
976
979
  r,
977
980
  JSON.stringify(n),
978
- JSON.stringify(h)
981
+ JSON.stringify(c)
979
982
  ), p = i(l), y = { ...p, parsedData: null };
980
983
  return p.parsedData && (y.parsedData = {
981
984
  ...p.parsedData,
982
- data: a(this, At).mapEngineToDataItem(p.parsedData.data)
985
+ data: a(this, Pt).mapEngineToDataItem(p.parsedData.data)
983
986
  }), y;
984
- }, this.getModel = async (e, r = {}) => (await a(this, q)).dataConnectorGetModel(e, JSON.stringify(r)).then((h) => i(h)), this.getConfigurationOptions = async (e) => (await a(this, q)).dataConnectorGetConfigurationOptions(e).then((n) => i(n)), this.getCapabilities = async (e) => (await a(this, q)).dataConnectorGetCapabilities(e).then((n) => i(n)), g(this, q, o), g(this, At, t);
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);
985
988
  }
986
- async getPage(o, t, e = {}) {
987
- const { previousPageToken: r, continuationToken: n } = t;
989
+ async getPage(o, e, t = {}) {
990
+ const { previousPageToken: r, continuationToken: n } = e;
988
991
  if (r != null && n != null)
989
992
  throw new Error(
990
993
  'Invalid page config: "previousPageToken" and "continuationToken" are mutually exclusive. Provide only one to indicate navigation direction.'
991
994
  );
992
- const d = await (await a(this, q)).dataConnectorGetPage(o, JSON.stringify(t), JSON.stringify(e)), l = i(
993
- d
995
+ const h = await (await a(this, Y)).dataConnectorGetPage(o, JSON.stringify(e), JSON.stringify(t)), l = i(
996
+ h
994
997
  ), p = { ...l, parsedData: null };
995
998
  return l.parsedData && (p.parsedData = {
996
999
  ...l.parsedData,
997
1000
  data: l.parsedData.data.map(
998
- (y) => a(this, At).mapEngineToDataItem(y)
1001
+ (y) => a(this, Pt).mapEngineToDataItem(y)
999
1002
  )
1000
1003
  }), p;
1001
1004
  }
1005
+ /**
1006
+ * Query a specific DataConnector for a data model using the dynamic context as parameter.
1007
+ * @param connectorId unique id of the data connector
1008
+ * @param context context that will be available in the connector script.
1009
+ * @returns DataModel or DataSourceVariableDataModel
1010
+ */
1011
+ async getModel(o, e = {}) {
1012
+ return (await a(this, Y)).dataConnectorGetModel(o, JSON.stringify(e)).then((r) => i(r));
1013
+ }
1002
1014
  }
1003
- q = new WeakMap(), At = new WeakMap();
1004
- var rt, Tt;
1005
- class Te {
1015
+ Y = new WeakMap(), Pt = new WeakMap();
1016
+ var nt, zt;
1017
+ class ze {
1006
1018
  /**
1007
1019
  * @ignore
1008
1020
  */
1009
- constructor(o, t) {
1021
+ constructor(o, e) {
1010
1022
  /**
1011
1023
  * @ignore
1012
1024
  */
1013
- u(this, rt);
1014
- u(this, Tt);
1015
- this.setDataSource = async (e) => (await a(this, rt)).setDataSource(e).then((n) => i(n)), this.getDataSource = async () => (await a(this, rt)).getDataSource().then((r) => i(r)), this.removeDataSource = async () => (await a(this, rt)).removeDataSource().then((r) => i(r)), this.setDataRow = async (e) => {
1016
- const r = await a(this, rt), n = a(this, Tt).mapDataItemToEngine(e);
1017
- return r.setDataRow(JSON.stringify(n)).then((h) => i(h));
1018
- }, g(this, rt, o), g(this, Tt, t);
1025
+ u(this, nt);
1026
+ u(this, zt);
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, zt).mapDataItemToEngine(t);
1029
+ return r.setDataRow(JSON.stringify(n)).then((c) => i(c));
1030
+ }, g(this, nt, o), g(this, zt, e);
1019
1031
  }
1020
1032
  }
1021
- rt = new WeakMap(), Tt = new WeakMap();
1022
- var nt;
1023
- class He {
1033
+ nt = new WeakMap(), zt = new WeakMap();
1034
+ var at;
1035
+ class Ke {
1024
1036
  /**
1025
1037
  * @ignore
1026
1038
  */
@@ -1028,13 +1040,13 @@ class He {
1028
1040
  /**
1029
1041
  * @ignore
1030
1042
  */
1031
- u(this, nt);
1032
- this.getAllLogs = async () => (await a(this, nt)).getLogs().then((e) => i(e)), this.toggleDebugPanel = async () => (await a(this, nt)).toggleDebugPanel().then((e) => i(e)), this.enableDebug = async () => (await a(this, nt)).enableDebug().then((e) => i(e)), this.disableDebug = async () => (await a(this, nt)).disableDebug().then((e) => i(e)), g(this, nt, o);
1043
+ u(this, at);
1044
+ this.getAllLogs = async () => (await a(this, at)).getLogs().then((t) => i(t)), this.toggleDebugPanel = async () => (await a(this, at)).toggleDebugPanel().then((t) => i(t)), this.enableDebug = async () => (await a(this, at)).enableDebug().then((t) => i(t)), this.disableDebug = async () => (await a(this, at)).disableDebug().then((t) => i(t)), g(this, at, o);
1033
1045
  }
1034
1046
  }
1035
- nt = new WeakMap();
1036
- var yt;
1037
- class $e {
1047
+ at = new WeakMap();
1048
+ var pt;
1049
+ class je {
1038
1050
  /**
1039
1051
  * @ignore
1040
1052
  */
@@ -1042,30 +1054,30 @@ class $e {
1042
1054
  /**
1043
1055
  * @ignore
1044
1056
  */
1045
- u(this, yt);
1046
- this.getCurrentState = async () => (await a(this, yt)).getCurrentDocumentState().then((e) => i(e)), this.load = async (t, e = { keepConnectors: !1 }) => {
1047
- const r = await a(this, yt), n = typeof t != "string" ? JSON.stringify(t) : t;
1048
- return r.loadDocument(n, JSON.stringify(e)).then((h) => i(h));
1049
- }, this.createAndLoad = async (t) => {
1050
- const e = await a(this, yt), r = JSON.stringify(t);
1051
- return e.createAndLoadDocument(r).then((n) => i(n));
1052
- }, g(this, yt, o);
1053
- }
1054
- }
1055
- yt = new WeakMap();
1056
- var Rr = /* @__PURE__ */ ((s) => (s.resize = "resize", s.scale = "scale", s.scaleAndResize = "scaleAndResize", s))(Rr || {}), Mr = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Mr || {}), Xt = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(Xt || {}), Vr = /* @__PURE__ */ ((s) => (s.connector = "connector", s))(Vr || {}), Br = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s.component = "component", s))(Br || {}), Jr = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Jr || {}), Ur = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Ur || {}), kr = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(kr || {}), Gr = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))(Gr || {}), _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 || {}), Tr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(Tr || {}), Hr = /* @__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))(Hr || {}), $r = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))($r || {}), zr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(zr || {}), Kr = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))(Kr || {}), Wr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Wr || {});
1057
- class qn {
1057
+ u(this, pt);
1058
+ this.getCurrentState = async () => (await a(this, pt)).getCurrentDocumentState().then((t) => i(t)), this.load = async (e, t = { keepConnectors: !1 }) => {
1059
+ const r = await a(this, pt), n = typeof e != "string" ? JSON.stringify(e) : e;
1060
+ return r.loadDocument(n, JSON.stringify(t)).then((c) => i(c));
1061
+ }, this.createAndLoad = async (e) => {
1062
+ const t = await a(this, pt), r = JSON.stringify(e);
1063
+ return t.createAndLoadDocument(r).then((n) => i(n));
1064
+ }, g(this, pt, o);
1065
+ }
1066
+ }
1067
+ pt = new WeakMap();
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 {
1058
1070
  constructor() {
1059
1071
  this.type = "page";
1060
1072
  }
1061
1073
  }
1062
- class Yn {
1063
- constructor(o, t) {
1064
- this.type = "frame", this.frameId = o, this.edge = t;
1074
+ class aa {
1075
+ constructor(o, e) {
1076
+ this.type = "frame", this.frameId = o, this.edge = e;
1065
1077
  }
1066
1078
  }
1067
- var vs = /* @__PURE__ */ ((s) => (s.frameCrop = "frameCrop", s.assetCrop = "assetCrop", s))(vs || {}), J;
1068
- class ze {
1079
+ var Ps = /* @__PURE__ */ ((s) => (s.frameCrop = "frameCrop", s.assetCrop = "assetCrop", s))(Ps || {}), J;
1080
+ class We {
1069
1081
  /**
1070
1082
  * @ignore
1071
1083
  */
@@ -1074,15 +1086,15 @@ class ze {
1074
1086
  * @ignore
1075
1087
  */
1076
1088
  u(this, J);
1077
- this.insertImageVariableToFrame = async (t, e) => {
1078
- const r = await a(this, J), n = { id: e, type: Xt.variable };
1079
- return r.setImageSource(t, JSON.stringify(n)).then((h) => i(h));
1080
- }, this.insertTextVariable = async (t) => (await a(this, J)).insertTextVariable(t).then((r) => i(r)), this.enterTextEditMode = async (t) => (await a(this, J)).enterTextEditMode(t).then((r) => i(r)), this.exitTextEditMode = async () => (await a(this, J)).exitTextEditMode().then((e) => i(e)), this.getText = async (t, e) => (await a(this, J)).getTextByFrameId(t, e).then((n) => i(n)), this.setText = async (t, e) => (await a(this, J)).setTextByFrameId(t, e).then((n) => i(n)), this.selectText = async (t, e, r) => (await a(this, J)).selectTextById(t, e, r).then((h) => i(h)), this.addCustomUndoData = async (t, e, r) => (await a(this, J)).setCustomUndoData(t, e, r ?? !1).then((h) => i(h)), g(this, J, o);
1089
+ this.insertImageVariableToFrame = async (e, t) => {
1090
+ const r = await a(this, J), n = { id: t, type: se.variable };
1091
+ return r.setImageSource(e, JSON.stringify(n)).then((c) => i(c));
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);
1081
1093
  }
1082
1094
  }
1083
1095
  J = new WeakMap();
1084
- var at, It;
1085
- class Ke {
1096
+ var it, Ot;
1097
+ class qe {
1086
1098
  /**
1087
1099
  * @ignore
1088
1100
  */
@@ -1090,17 +1102,17 @@ class Ke {
1090
1102
  /**
1091
1103
  * @ignore
1092
1104
  */
1093
- u(this, at);
1094
- u(this, It);
1095
- this.query = async (t, e, r = {}) => (await a(this, at)).fontConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((h) => i(h)), this.detail = async (t, e, r = {}) => (await a(this, at)).fontConnectorDetail(t, e, JSON.stringify(r)).then((h) => i(h)), this.download = async (t, e, r = {}) => (await a(this, It)).fontConnectorDownload(t, e, JSON.stringify(r)).then((h) => h ?? h), this.preview = async (t, e, r, n = {}) => (await a(this, It)).fontConnectorPreview(t, e, r, JSON.stringify(n)).then((d) => d ?? d), this.getConfigurationOptions = async (t) => (await a(this, at)).fontConnectorGetConfigurationOptions(t).then((r) => i(r)), this.getCapabilities = async (t) => (await a(this, at)).fontConnectorGetCapabilities(t).then((r) => i(r)), this.parseDeprecatedFontType = (t) => {
1096
- if (t === Ut.file) return kt.file;
1097
- if (t === Ut.collection) return kt.collection;
1098
- }, g(this, at, o), g(this, It, o);
1105
+ u(this, it);
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);
1099
1111
  }
1100
1112
  }
1101
- at = new WeakMap(), It = new WeakMap();
1113
+ it = new WeakMap(), Ot = new WeakMap();
1102
1114
  var P;
1103
- class We {
1115
+ class Ye {
1104
1116
  /**
1105
1117
  * @ignore
1106
1118
  */
@@ -1109,12 +1121,12 @@ class We {
1109
1121
  * @ignore
1110
1122
  */
1111
1123
  u(this, P);
1112
- this.addFontFamily = async (t, e) => (await a(this, P)).addFontFamily(t, JSON.stringify(e)).then((n) => i(n)), this.removeFontFamily = async (t) => (await a(this, P)).removeFontFamily(t).then((r) => i(r)), this.addFontStyle = async (t, e) => (await a(this, P)).addFontStyle(t, JSON.stringify(e)).then((n) => i(n)), this.removeFontStyle = async (t) => (await a(this, P)).removeFontStyle(t).then((r) => i(r)), this.getFontFamilies = async () => (await a(this, P)).getFontFamilies().then((e) => i(e)), this.getFontStyles = async (t) => (await a(this, P)).getFontStyles(t).then((r) => i(r)), this.getFontFamilyById = async (t) => (await a(this, P)).getFontFamilyById(t).then((r) => i(r)), this.getFontStyleById = async (t) => (await a(this, P)).getFontStyleById(t).then((r) => i(r)), this.getDefaultFontStyle = async () => (await a(this, P)).getDefaultFontStyle().then((e) => i(e)), this.getDefaultFontFamily = async () => (await a(this, P)).getDefaultFontFamily().then((e) => i(e)), this.isFontFamilyUsed = async (t) => (await a(this, P)).isFontFamilyUsed(t).then((r) => i(r)), this.isFontStyleUsed = async (t) => (await a(this, P)).isFontStyleUsed(t).then((r) => i(r)), this.moveFontFamilies = async (t, e) => (await a(this, P)).moveFontFamilies(t, e).then((n) => i(n)), this.getPreviewsOfCharacterStrings = async (t, e) => (await a(this, P)).getPreviewsOfCharacterStrings(t, JSON.stringify(e)).then((n) => i(n)), g(this, P, o);
1124
+ this.addFontFamily = async (e, t) => (await a(this, P)).addFontFamily(e, JSON.stringify(t)).then((n) => i(n)), this.removeFontFamily = async (e) => (await a(this, P)).removeFontFamily(e).then((r) => i(r)), this.addFontStyle = async (e, t) => (await a(this, P)).addFontStyle(e, JSON.stringify(t)).then((n) => i(n)), this.removeFontStyle = async (e) => (await a(this, P)).removeFontStyle(e).then((r) => i(r)), this.getFontFamilies = async () => (await a(this, P)).getFontFamilies().then((t) => i(t)), this.getFontStyles = async (e) => (await a(this, P)).getFontStyles(e).then((r) => i(r)), this.getFontFamilyById = async (e) => (await a(this, P)).getFontFamilyById(e).then((r) => i(r)), this.getFontStyleById = async (e) => (await a(this, P)).getFontStyleById(e).then((r) => i(r)), this.getDefaultFontStyle = async () => (await a(this, P)).getDefaultFontStyle().then((t) => i(t)), this.getDefaultFontFamily = async () => (await a(this, P)).getDefaultFontFamily().then((t) => i(t)), this.isFontFamilyUsed = async (e) => (await a(this, P)).isFontFamilyUsed(e).then((r) => i(r)), this.isFontStyleUsed = async (e) => (await a(this, P)).isFontStyleUsed(e).then((r) => i(r)), this.moveFontFamilies = async (e, t) => (await a(this, P)).moveFontFamilies(e, t).then((n) => i(n)), this.getPreviewsOfCharacterStrings = async (e, t) => (await a(this, P)).getPreviewsOfCharacterStrings(e, JSON.stringify(t)).then((n) => i(n)), g(this, P, o);
1113
1125
  }
1114
1126
  }
1115
1127
  P = new WeakMap();
1116
- var Pt;
1117
- class he {
1128
+ var Ft;
1129
+ class ge {
1118
1130
  /**
1119
1131
  * @ignore
1120
1132
  */
@@ -1122,46 +1134,46 @@ class he {
1122
1134
  /**
1123
1135
  * @ignore
1124
1136
  */
1125
- u(this, Pt);
1126
- this.setShapeProperties = async (t, e) => (await a(this, Pt)).setShapeProperties(t, JSON.stringify(e)).then((n) => i(n)), this.setEnableFill = async (t, e) => {
1127
- const r = { enableFill: e };
1128
- return this.setShapeProperties(t, r);
1129
- }, this.setFillColor = async (t, e) => {
1130
- const r = { fillColor: e };
1131
- return this.setShapeProperties(t, r);
1132
- }, this.setEnableStroke = async (t, e) => {
1133
- const r = { enableStroke: e };
1134
- return this.setShapeProperties(t, r);
1135
- }, this.setStrokeColor = async (t, e) => {
1136
- const r = { strokeColor: e };
1137
- return this.setShapeProperties(t, r);
1138
- }, this.setStrokeWeight = async (t, e) => {
1139
- const r = { strokeWeight: e };
1140
- return this.setShapeProperties(t, r);
1141
- }, this.setFlagAllCornersSame = async (t, e) => {
1142
- const r = { allCornersSame: e };
1143
- return this.setShapeProperties(t, r);
1144
- }, this.setShapeCorners = async (t, e) => (await a(this, Pt)).setShapeCorners(t, JSON.stringify(e)).then((n) => i(n)), this.setRadiusAll = async (t, e) => {
1145
- const r = { radiusAll: e };
1146
- return this.setShapeCorners(t, r);
1147
- }, this.setRadiusTopLeft = async (t, e) => {
1148
- const r = { topLeft: e };
1149
- return this.setShapeCorners(t, r);
1150
- }, this.setRadiusBottomLeft = async (t, e) => {
1151
- const r = { bottomLeft: e };
1152
- return this.setShapeCorners(t, r);
1153
- }, this.setRadiusTopRight = async (t, e) => {
1154
- const r = { topRight: e };
1155
- return this.setShapeCorners(t, r);
1156
- }, this.setRadiusBottomRight = async (t, e) => {
1157
- const r = { bottomRight: e };
1158
- return this.setShapeCorners(t, r);
1159
- }, g(this, Pt, o);
1160
- }
1161
- }
1162
- Pt = new WeakMap();
1163
- var c;
1164
- class je {
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
+ const r = { enableFill: t };
1140
+ return this.setShapeProperties(e, r);
1141
+ }, this.setFillColor = async (e, t) => {
1142
+ const r = { fillColor: t };
1143
+ return this.setShapeProperties(e, r);
1144
+ }, this.setEnableStroke = async (e, t) => {
1145
+ const r = { enableStroke: t };
1146
+ return this.setShapeProperties(e, r);
1147
+ }, this.setStrokeColor = async (e, t) => {
1148
+ const r = { strokeColor: t };
1149
+ return this.setShapeProperties(e, r);
1150
+ }, this.setStrokeWeight = async (e, t) => {
1151
+ const r = { strokeWeight: t };
1152
+ return this.setShapeProperties(e, r);
1153
+ }, this.setFlagAllCornersSame = async (e, t) => {
1154
+ const r = { allCornersSame: t };
1155
+ return this.setShapeProperties(e, r);
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
+ const r = { radiusAll: t };
1158
+ return this.setShapeCorners(e, r);
1159
+ }, this.setRadiusTopLeft = async (e, t) => {
1160
+ const r = { topLeft: t };
1161
+ return this.setShapeCorners(e, r);
1162
+ }, this.setRadiusBottomLeft = async (e, t) => {
1163
+ const r = { bottomLeft: t };
1164
+ return this.setShapeCorners(e, r);
1165
+ }, this.setRadiusTopRight = async (e, t) => {
1166
+ const r = { topRight: t };
1167
+ return this.setShapeCorners(e, r);
1168
+ }, this.setRadiusBottomRight = async (e, t) => {
1169
+ const r = { bottomRight: t };
1170
+ return this.setShapeCorners(e, r);
1171
+ }, g(this, Ft, o);
1172
+ }
1173
+ }
1174
+ Ft = new WeakMap();
1175
+ var d;
1176
+ class Ze {
1165
1177
  /**
1166
1178
  * @ignore
1167
1179
  */
@@ -1169,121 +1181,121 @@ class je {
1169
1181
  /**
1170
1182
  * @ignore
1171
1183
  */
1172
- u(this, c);
1173
- this.getAll = async () => (await a(this, c)).getFrames().then((e) => i(e)), this.getSelected = async () => (await a(this, c)).getSelectedFrames().then((e) => i(e)), this.getAllByPageId = async (t) => (await a(this, c)).getFramesByPageId(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, c)).getFrameByName(t).then((r) => i(r)), this.getById = async (t) => (await a(this, c)).getFrameById(t).then((r) => i(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, c)).getFramePropertiesOnSelectedLayout().then((e) => i(e)), this.getLayoutProperties = async (t, e) => (await a(this, c)).getFramePropertiesByFrameId(t, e).then((n) => i(n)), this.getAllLayoutProperties = async (t) => (await a(this, c)).getFramesProperties(t).then((r) => i(r)), this.resetTransformation = async (t) => (await a(this, c)).resetFrameTransformation(t).then((r) => i(r)), this.resetSize = async (t) => (await a(this, c)).resetFrameTransformation(t).then((r) => i(r)), this.select = async (t) => (await a(this, c)).selectFrames([t]).then((r) => i(r)), this.selectMultiple = async (t) => (await a(this, c)).selectFrames(t).then((r) => i(r)), this.deselectAll = async () => (await a(this, c)).deselectFrames().then((e) => i(e)), this.reorderFrames = async (t, e) => (await a(this, c)).reorderFrames(t, e).then((n) => i(n)), this.setZIndex = async (t, e) => (await a(this, c)).setFrameZIndex(t, e).then((n) => i(n)), this.setHeight = async (t, e) => (await a(this, c)).setFrameHeight(t, e).then((n) => i(n)), this.setRotation = async (t, e) => (await a(this, c)).setFrameRotation(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, c)).setFrameWidth(t, e).then((n) => i(n)), this.setX = async (t, e) => (await a(this, c)).setFrameX(t, e).then((n) => i(n)), this.setY = async (t, e) => (await a(this, c)).setFrameY(t, e).then((n) => i(n)), this.setOpacity = async (t, e) => (await a(this, c)).setFrameOpacity(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, c)).renameFrame(t, e).then((n) => i(n)), this.reset = async (t) => (await a(this, c)).resetFrame(t).then((r) => i(r)), this.resetX = async (t) => (await a(this, c)).resetFrameTransformation(t).then((r) => i(r)), this.resetY = async (t) => (await a(this, c)).resetFrameTransformation(t).then((r) => i(r)), this.resetRotation = async (t) => (await a(this, c)).resetFrameTransformation(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, c)).resetFrameTransformation(t).then((r) => i(r)), this.resetHeight = async (t) => (await a(this, c)).resetFrameTransformation(t).then((r) => i(r)), this.resetImageFrameFitMode = async (t) => (await a(this, c)).resetImageFrameFitMode(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, c)).setFrameIsVisible(t, e).then((n) => i(n)), this.setIsVisible = async (t, e) => (await a(this, c)).setFrameIsVisible(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, c)).removeFrames([t]).then((r) => i(r)), this.removeFrames = async (t) => (await a(this, c)).removeFrames(t).then((r) => i(r)), this.create = async (t, e, r, n, h) => (await a(this, c)).addFrame(t, e, r, n, h).then((l) => i(l)), this.createShapeFrame = async (t, e, r, n, h) => (await a(this, c)).addFrame(t, e, r, n, h).then((l) => i(l)), this.createBarcodeFrame = async (t, e) => (await a(this, c)).addBarcodeFrame(t, e == null ? void 0 : e.x, e == null ? void 0 : e.y).then((n) => i(n)), this.createComponentFrame = async (t, e, r, n, h) => (await a(this, c)).addComponentFrame(e, r, n, h, JSON.stringify(t)).then((l) => i(l)), this.duplicateFrames = async (t) => (await a(this, c)).duplicateFrames(t).then((r) => i(r)), this.updateImageSource = async (t, e) => {
1174
- const r = await a(this, c), n = e !== null ? JSON.stringify(e) : null;
1175
- return r.setImageSource(t, n).then((h) => i(h));
1176
- }, this.removeImageSource = async (t) => this.updateImageSource(t, null), this.setImageFromConnector = async (t, e, r) => {
1184
+ u(this, d);
1185
+ this.getAll = async () => (await a(this, d)).getFrames().then((t) => i(t)), this.getSelected = async () => (await a(this, d)).getSelectedFrames().then((t) => i(t)), this.getAllByPageId = async (e) => (await a(this, d)).getFramesByPageId(e).then((r) => i(r)), this.getByName = async (e) => (await a(this, d)).getFrameByName(e).then((r) => i(r)), this.getById = async (e) => (await a(this, d)).getFrameById(e).then((r) => i(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, d)).getFramePropertiesOnSelectedLayout().then((t) => i(t)), this.getLayoutProperties = async (e, t) => (await a(this, d)).getFramePropertiesByFrameId(e, t).then((n) => i(n)), this.getAllLayoutProperties = async (e) => (await a(this, d)).getFramesProperties(e).then((r) => i(r)), this.resetTransformation = async (e) => (await a(this, d)).resetFrameTransformation(e).then((r) => i(r)), this.resetSize = async (e) => (await a(this, d)).resetFrameTransformation(e).then((r) => i(r)), this.select = async (e) => (await a(this, d)).selectFrames([e]).then((r) => i(r)), this.selectMultiple = async (e) => (await a(this, d)).selectFrames(e).then((r) => i(r)), this.deselectAll = async () => (await a(this, d)).deselectFrames().then((t) => i(t)), this.reorderFrames = async (e, t) => (await a(this, d)).reorderFrames(e, t).then((n) => i(n)), this.setZIndex = async (e, t) => (await a(this, d)).setFrameZIndex(e, t).then((n) => i(n)), this.setHeight = async (e, t) => (await a(this, d)).setFrameHeight(e, t).then((n) => i(n)), this.setRotation = async (e, t) => (await a(this, d)).setFrameRotation(e, t).then((n) => i(n)), this.setWidth = async (e, t) => (await a(this, d)).setFrameWidth(e, t).then((n) => i(n)), this.setX = async (e, t) => (await a(this, d)).setFrameX(e, t).then((n) => i(n)), this.setY = async (e, t) => (await a(this, d)).setFrameY(e, t).then((n) => i(n)), this.setOpacity = async (e, t) => (await a(this, d)).setFrameOpacity(e, t).then((n) => i(n)), this.rename = async (e, t) => (await a(this, d)).renameFrame(e, t).then((n) => i(n)), this.reset = async (e) => (await a(this, d)).resetFrame(e).then((r) => i(r)), this.resetX = async (e) => (await a(this, d)).resetFrameTransformation(e).then((r) => i(r)), this.resetY = async (e) => (await a(this, d)).resetFrameTransformation(e).then((r) => i(r)), this.resetRotation = async (e) => (await a(this, d)).resetFrameTransformation(e).then((r) => i(r)), this.resetWidth = async (e) => (await a(this, d)).resetFrameTransformation(e).then((r) => i(r)), this.resetHeight = async (e) => (await a(this, d)).resetFrameTransformation(e).then((r) => i(r)), this.resetImageFrameFitMode = async (e) => (await a(this, d)).resetImageFrameFitMode(e).then((r) => i(r)), this.setVisibility = async (e, t) => (await a(this, d)).setFrameIsVisible(e, t).then((n) => i(n)), this.setIsVisible = async (e, t) => (await a(this, d)).setFrameIsVisible(e, t).then((n) => i(n)), this.remove = async (e) => (await a(this, d)).removeFrames([e]).then((r) => i(r)), this.removeFrames = async (e) => (await a(this, d)).removeFrames(e).then((r) => i(r)), this.create = async (e, t, r, n, c) => (await a(this, d)).addFrame(e, t, r, n, c).then((l) => i(l)), this.createShapeFrame = async (e, t, r, n, c) => (await a(this, d)).addFrame(e, t, r, n, c).then((l) => i(l)), this.createBarcodeFrame = async (e, t) => (await a(this, d)).addBarcodeFrame(e, t == null ? void 0 : t.x, t == null ? void 0 : t.y).then((n) => i(n)), this.createComponentFrame = async (e, t, r, n, c) => (await a(this, d)).addComponentFrame(t, r, n, c, JSON.stringify(e)).then((l) => i(l)), this.duplicateFrames = async (e) => (await a(this, d)).duplicateFrames(e).then((r) => i(r)), this.updateImageSource = async (e, t) => {
1186
+ const r = await a(this, d), n = t !== null ? JSON.stringify(t) : null;
1187
+ return r.setImageSource(e, n).then((c) => i(c));
1188
+ }, this.removeImageSource = async (e) => this.updateImageSource(e, null), this.setImageFromConnector = async (e, t, r) => {
1177
1189
  const n = {
1178
- id: e,
1190
+ id: t,
1179
1191
  assetId: r,
1180
- type: Xt.connector
1192
+ type: se.connector
1181
1193
  };
1182
- return this.updateImageSource(t, n);
1183
- }, this.setImageFromUrl = async (t, e) => {
1184
- const r = { url: e, type: Xt.url };
1185
- return this.updateImageSource(t, r);
1186
- }, this.setImageFrameFitMode = async (t, e) => (await a(this, c)).setImageFrameFitMode(t, e).then((n) => i(n)), this.setImageFrameFitModePosition = async (t, e) => (await a(this, c)).setImageFrameFitModePosition(t, e).then((n) => i(n)), this.setFrameConstrainProportions = async (t, e) => (console.error("setFrameConstrainProportions is not supported anymore"), i({
1194
+ return this.updateImageSource(e, n);
1195
+ }, this.setImageFromUrl = async (e, t) => {
1196
+ const r = { url: t, type: se.url };
1197
+ return this.updateImageSource(e, r);
1198
+ }, this.setImageFrameFitMode = async (e, t) => (await a(this, d)).setImageFrameFitMode(e, t).then((n) => i(n)), this.setImageFrameFitModePosition = async (e, t) => (await a(this, d)).setImageFrameFitModePosition(e, t).then((n) => i(n)), this.setFrameConstrainProportions = async (e, t) => (console.error("setFrameConstrainProportions is not supported anymore"), i({
1187
1199
  success: !1,
1188
1200
  status: 0,
1189
1201
  error: "setFrameConstrainProportions is not supported anymore",
1190
1202
  parsedData: null
1191
- })), this.setVerticalAlign = async (t, e) => (await a(this, c)).setVerticalAlignment(t, e).then((n) => i(n)), this.setNumberOfColumns = async (t, e) => (await a(this, c)).setNumberOfColumns(t, e).then((n) => i(n)), this.setColumnGap = async (t, e) => (await a(this, c)).setColumnGap(t, e).then((n) => i(n)), this.setMinCopyfitting = async (t, e) => (await a(this, c)).setMinCopyfitting(t, e).then((n) => i(n)), this.setMaxCopyfitting = async (t, e) => (await a(this, c)).setMaxCopyfitting(t, e).then((n) => i(n)), this.setEnableCopyfitting = async (t, e) => (await a(this, c)).setEnableCopyfitting(t, e).then((n) => i(n)), this.resetMinCopyfitting = async (t) => (await a(this, c)).resetMinCopyfitting(t).then((r) => i(r)), this.resetMaxCopyfitting = async (t) => (await a(this, c)).resetMaxCopyfitting(t).then((r) => i(r)), this.resetEnableCopyfitting = async (t) => (await a(this, c)).resetEnableCopyfitting(t).then((r) => i(r)), this.setShapeFrameEnableFill = async (t, e) => this.shapeController.setEnableFill(t, e), this.setShapeFrameFillColor = async (t, e) => this.shapeController.setFillColor(t, e), this.setShapeFrameEnableStroke = async (t, e) => this.shapeController.setEnableStroke(t, e), this.setShapeFrameStrokeColor = async (t, e) => this.shapeController.setStrokeColor(t, e), this.setShapeFrameStrokeWeight = async (t, e) => this.shapeController.setStrokeWeight(t, e), this.setBlendMode = async (t, e) => (await a(this, c)).setFrameBlendMode(t, e).then((n) => i(n)), this.enterCropMode = async (t, e = vs.frameCrop) => (await a(this, c)).enterCropMode(t, e).then((n) => i(n)), this.applyCropMode = async () => (await a(this, c)).applyCropMode().then((e) => i(e)), this.exitCropMode = async () => (await a(this, c)).cancelCropMode().then((e) => i(e)), this.enterSubjectMode = async (t) => (await a(this, c)).enterSubjectMode(t).then((r) => i(r)), this.applySubjectMode = async () => (await a(this, c)).applySubjectMode().then((e) => i(e)), this.exitSubjectMode = async () => (await a(this, c)).cancelSubjectMode().then((e) => i(e)), this.enterGradientMode = async (t) => (await a(this, c)).enterGradientMode(t).then((r) => i(r)), this.applyGradientMode = async () => (await a(this, c)).applyGradientMode().then((e) => i(e)), this.cancelGradientMode = async () => (await a(this, c)).cancelGradientMode().then((e) => i(e)), this.resetCropMode = async (t) => (console.error("resetCropMode is not supported anymore"), i({
1203
+ })), this.setVerticalAlign = async (e, t) => (await a(this, d)).setVerticalAlignment(e, t).then((n) => i(n)), this.setNumberOfColumns = async (e, t) => (await a(this, d)).setNumberOfColumns(e, t).then((n) => i(n)), this.setColumnGap = async (e, t) => (await a(this, d)).setColumnGap(e, t).then((n) => i(n)), this.setMinCopyfitting = async (e, t) => (await a(this, d)).setMinCopyfitting(e, t).then((n) => i(n)), this.setMaxCopyfitting = async (e, t) => (await a(this, d)).setMaxCopyfitting(e, t).then((n) => i(n)), this.setEnableCopyfitting = async (e, t) => (await a(this, d)).setEnableCopyfitting(e, t).then((n) => i(n)), this.resetMinCopyfitting = async (e) => (await a(this, d)).resetMinCopyfitting(e).then((r) => i(r)), this.resetMaxCopyfitting = async (e) => (await a(this, d)).resetMaxCopyfitting(e).then((r) => i(r)), this.resetEnableCopyfitting = async (e) => (await a(this, d)).resetEnableCopyfitting(e).then((r) => i(r)), this.setShapeFrameEnableFill = async (e, t) => this.shapeController.setEnableFill(e, t), this.setShapeFrameFillColor = async (e, t) => this.shapeController.setFillColor(e, t), this.setShapeFrameEnableStroke = async (e, t) => this.shapeController.setEnableStroke(e, t), this.setShapeFrameStrokeColor = async (e, t) => this.shapeController.setStrokeColor(e, t), this.setShapeFrameStrokeWeight = async (e, t) => this.shapeController.setStrokeWeight(e, t), this.setBlendMode = async (e, t) => (await a(this, d)).setFrameBlendMode(e, t).then((n) => i(n)), this.setFrameContainerShape = async (e, t) => (await a(this, d)).setFrameContainerShape(e, JSON.stringify(t)).then((n) => i(n)), this.enterCropMode = async (e, t = Ps.frameCrop) => (await a(this, d)).enterCropMode(e, t).then((n) => i(n)), this.applyCropMode = async () => (await a(this, d)).applyCropMode().then((t) => i(t)), this.exitCropMode = async () => (await a(this, d)).cancelCropMode().then((t) => i(t)), this.enterSubjectMode = async (e) => (await a(this, d)).enterSubjectMode(e).then((r) => i(r)), this.applySubjectMode = async () => (await a(this, d)).applySubjectMode().then((t) => i(t)), this.exitSubjectMode = async () => (await a(this, d)).cancelSubjectMode().then((t) => i(t)), this.enterGradientMode = async (e) => (await a(this, d)).enterGradientMode(e).then((r) => i(r)), this.applyGradientMode = async () => (await a(this, d)).applyGradientMode().then((t) => i(t)), this.cancelGradientMode = async () => (await a(this, d)).cancelGradientMode().then((t) => i(t)), this.resetCropMode = async (e) => (console.error("resetCropMode is not supported anymore"), i({
1192
1204
  success: !1,
1193
1205
  status: 0,
1194
1206
  error: "resetCropMode is not supported anymore",
1195
1207
  parsedData: null
1196
- })), this.setEnableAutoGrow = async (t, e) => {
1197
- const r = { enabled: { value: e } };
1198
- return (await a(this, c)).updateAutoGrowSettings(t, JSON.stringify(r)).then((h) => i(h));
1199
- }, this.setAutoGrowMinWidth = async (t, e) => {
1200
- const r = { minWidth: { value: e } };
1201
- return (await a(this, c)).updateAutoGrowSettings(t, JSON.stringify(r)).then((h) => i(h));
1202
- }, this.setAutoGrowMaxWidth = async (t, e) => {
1203
- const r = { maxWidth: { value: e } };
1204
- return (await a(this, c)).updateAutoGrowSettings(t, JSON.stringify(r)).then((h) => i(h));
1205
- }, this.setAutoGrowMinHeight = async (t, e) => {
1206
- const r = { minHeight: { value: e } };
1207
- return (await a(this, c)).updateAutoGrowSettings(t, JSON.stringify(r)).then((h) => i(h));
1208
- }, this.setAutoGrowMaxHeight = async (t, e) => {
1209
- const r = { maxHeight: { value: e } };
1210
- return (await a(this, c)).updateAutoGrowSettings(t, JSON.stringify(r)).then((h) => i(h));
1211
- }, this.setAutoGrowDirections = async (t, e) => {
1212
- const r = { directions: { value: e } };
1213
- return (await a(this, c)).updateAutoGrowSettings(t, JSON.stringify(r)).then((h) => i(h));
1214
- }, this.resetAutoGrowSettingsEnabled = async (t) => (console.error("resetAutoGrowSettingsEnabled is not supported anymore"), i({
1208
+ })), this.setEnableAutoGrow = async (e, t) => {
1209
+ const r = { enabled: { value: t } };
1210
+ return (await a(this, d)).updateAutoGrowSettings(e, JSON.stringify(r)).then((c) => i(c));
1211
+ }, this.setAutoGrowMinWidth = async (e, t) => {
1212
+ const r = { minWidth: { value: t } };
1213
+ return (await a(this, d)).updateAutoGrowSettings(e, JSON.stringify(r)).then((c) => i(c));
1214
+ }, this.setAutoGrowMaxWidth = async (e, t) => {
1215
+ const r = { maxWidth: { value: t } };
1216
+ return (await a(this, d)).updateAutoGrowSettings(e, JSON.stringify(r)).then((c) => i(c));
1217
+ }, this.setAutoGrowMinHeight = async (e, t) => {
1218
+ const r = { minHeight: { value: t } };
1219
+ return (await a(this, d)).updateAutoGrowSettings(e, JSON.stringify(r)).then((c) => i(c));
1220
+ }, this.setAutoGrowMaxHeight = async (e, t) => {
1221
+ const r = { maxHeight: { value: t } };
1222
+ return (await a(this, d)).updateAutoGrowSettings(e, JSON.stringify(r)).then((c) => i(c));
1223
+ }, this.setAutoGrowDirections = async (e, t) => {
1224
+ const r = { directions: { value: t } };
1225
+ return (await a(this, d)).updateAutoGrowSettings(e, JSON.stringify(r)).then((c) => i(c));
1226
+ }, this.resetAutoGrowSettingsEnabled = async (e) => (console.error("resetAutoGrowSettingsEnabled is not supported anymore"), i({
1215
1227
  success: !1,
1216
1228
  status: 0,
1217
1229
  error: "resetAutoGrowSettingsEnabled is not supported anymore",
1218
1230
  parsedData: null
1219
- })), this.resetAutoGrowMinWidth = async (t) => (console.error("resetAutoGrowMinWidth is not supported anymore"), i({
1231
+ })), this.resetAutoGrowMinWidth = async (e) => (console.error("resetAutoGrowMinWidth is not supported anymore"), i({
1220
1232
  success: !1,
1221
1233
  status: 0,
1222
1234
  error: "resetAutoGrowMinWidth is not supported anymore",
1223
1235
  parsedData: null
1224
- })), this.resetAutoGrowMaxWidth = async (t) => (console.error("resetAutoGrowMaxWidth is not supported anymore"), i({
1236
+ })), this.resetAutoGrowMaxWidth = async (e) => (console.error("resetAutoGrowMaxWidth is not supported anymore"), i({
1225
1237
  success: !1,
1226
1238
  status: 0,
1227
1239
  error: "resetAutoGrowMaxWidth is not supported anymore",
1228
1240
  parsedData: null
1229
- })), this.resetAutoGrowMinHeight = async (t) => (console.error("resetAutoGrowMinHeight is not supported anymore"), i({
1241
+ })), this.resetAutoGrowMinHeight = async (e) => (console.error("resetAutoGrowMinHeight is not supported anymore"), i({
1230
1242
  success: !1,
1231
1243
  status: 0,
1232
1244
  error: "resetAutoGrowMinHeight is not supported anymore",
1233
1245
  parsedData: null
1234
- })), this.resetAutoGrowMaxHeight = async (t) => (console.error("resetAutoGrowMaxHeight is not supported anymore"), i({
1246
+ })), this.resetAutoGrowMaxHeight = async (e) => (console.error("resetAutoGrowMaxHeight is not supported anymore"), i({
1235
1247
  success: !1,
1236
1248
  status: 0,
1237
1249
  error: "resetAutoGrowMaxHeight is not supported anymore",
1238
1250
  parsedData: null
1239
- })), this.resetAutoGrowDirections = async (t) => (console.error("resetAutoGrowDirections is not supported anymore"), i({
1251
+ })), this.resetAutoGrowDirections = async (e) => (console.error("resetAutoGrowDirections is not supported anymore"), i({
1240
1252
  success: !1,
1241
1253
  status: 0,
1242
1254
  error: "resetAutoGrowDirections is not supported anymore",
1243
1255
  parsedData: null
1244
- })), this.resetAutoGrow = async (t) => (console.error("resetAutoGrow is not supported anymore"), i({
1256
+ })), this.resetAutoGrow = async (e) => (console.error("resetAutoGrow is not supported anymore"), i({
1245
1257
  success: !1,
1246
1258
  status: 0,
1247
1259
  error: "resetAutoGrow is not supported anymore",
1248
1260
  parsedData: null
1249
- })), this.setShadowEnabled = async (t, e) => {
1250
- const r = { enabled: { value: e } };
1251
- return (await a(this, c)).updateFrameShadowSettings(t, JSON.stringify(r)).then((h) => i(h));
1252
- }, this.setShadowDistance = async (t, e) => {
1253
- const r = { distance: { value: e } };
1254
- return (await a(this, c)).updateFrameShadowSettings(t, JSON.stringify(r)).then((h) => i(h));
1255
- }, this.setShadowAngleDegrees = async (t, e) => {
1256
- const r = { angleDegrees: { value: e } };
1257
- return (await a(this, c)).updateFrameShadowSettings(t, JSON.stringify(r)).then((h) => i(h));
1258
- }, this.setShadowBlurRadius = async (t, e) => {
1259
- const r = { blurRadius: { value: e } };
1260
- return (await a(this, c)).updateFrameShadowSettings(t, JSON.stringify(r)).then((h) => i(h));
1261
- }, this.setShadowColor = async (t, e) => {
1262
- const r = { color: { value: e } };
1263
- return (await a(this, c)).updateFrameShadowSettings(t, JSON.stringify(r)).then((h) => i(h));
1264
- }, this.setAnchor = async (t, e, r, n, h) => {
1265
- const d = {
1266
- horizontal: e,
1261
+ })), this.setShadowEnabled = async (e, t) => {
1262
+ const r = { enabled: { value: t } };
1263
+ return (await a(this, d)).updateFrameShadowSettings(e, JSON.stringify(r)).then((c) => i(c));
1264
+ }, this.setShadowDistance = async (e, t) => {
1265
+ const r = { distance: { value: t } };
1266
+ return (await a(this, d)).updateFrameShadowSettings(e, JSON.stringify(r)).then((c) => i(c));
1267
+ }, this.setShadowAngleDegrees = async (e, t) => {
1268
+ const r = { angleDegrees: { value: t } };
1269
+ return (await a(this, d)).updateFrameShadowSettings(e, JSON.stringify(r)).then((c) => i(c));
1270
+ }, this.setShadowBlurRadius = async (e, t) => {
1271
+ const r = { blurRadius: { value: t } };
1272
+ return (await a(this, d)).updateFrameShadowSettings(e, JSON.stringify(r)).then((c) => i(c));
1273
+ }, this.setShadowColor = async (e, t) => {
1274
+ const r = { color: { value: t } };
1275
+ return (await a(this, d)).updateFrameShadowSettings(e, JSON.stringify(r)).then((c) => i(c));
1276
+ }, this.setAnchor = async (e, t, r, n, c) => {
1277
+ const h = {
1278
+ horizontal: t,
1267
1279
  type: r,
1268
1280
  target: n,
1269
- endTarget: h
1281
+ endTarget: c
1270
1282
  };
1271
- return (await a(this, c)).setAnchorProperties(t, JSON.stringify(d)).then((p) => i(p));
1272
- }, this.setVerticalAnchor = async (t, e, r, n) => this.setAnchor(t, !1, e, r, n), this.setHorizontalAnchor = async (t, e, r, n) => this.setAnchor(t, !0, e, r, n), this.resetAnchoring = async (t) => (await a(this, c)).resetFrameTransformation(t).then((r) => i(r)), this.resetVisibility = async (t) => (await a(this, c)).setFrameIsVisible(t, null).then((r) => i(r)), this.getConfiguration = async (t) => (await a(this, c)).getFrameConfiguration(t).then((r) => i(r)), this.resetAssetCropOverride = async (t) => (await a(this, c)).resetAssetCropOverride(t).then((r) => i(r)), this.resetAllAssetCropOverrides = async (t) => (await a(this, c)).resetAllAssetCropOverrides(t).then((r) => i(r)), this.setGradientApplied = async (t, e) => {
1273
- const r = { isApplied: e };
1274
- return (await a(this, c)).updateFrameGradientSettings(t, JSON.stringify(r)).then((h) => i(h));
1275
- }, this.setLocalGradient = async (t, e) => {
1276
- const r = { gradient: e };
1277
- return (await a(this, c)).updateFrameGradientSettings(t, JSON.stringify(r)).then((h) => i(h));
1278
- }, this.setBrandKitGradient = async (t, e) => {
1279
- const r = { id: e };
1280
- return (await a(this, c)).updateFrameGradientSettings(t, JSON.stringify(r)).then((h) => i(h));
1281
- }, this.setSmartCropSubjectId = async (t, e) => (await a(this, c)).setSmartCropSubjectId(t, e).then((n) => i(n)), g(this, c, o), this.shapeController = new he(a(this, c)), this.constraints = new jr(a(this, c));
1282
- }
1283
- }
1284
- c = new WeakMap();
1283
+ return (await a(this, d)).setAnchorProperties(e, JSON.stringify(h)).then((p) => i(p));
1284
+ }, this.setVerticalAnchor = async (e, t, r, n) => this.setAnchor(e, !1, t, r, n), this.setHorizontalAnchor = async (e, t, r, n) => this.setAnchor(e, !0, t, r, n), this.resetAnchoring = async (e) => (await a(this, d)).resetFrameTransformation(e).then((r) => i(r)), this.resetVisibility = async (e) => (await a(this, d)).setFrameIsVisible(e, null).then((r) => i(r)), this.getConfiguration = async (e) => (await a(this, d)).getFrameConfiguration(e).then((r) => i(r)), this.resetAssetCropOverride = async (e) => (await a(this, d)).resetAssetCropOverride(e).then((r) => i(r)), this.resetAllAssetCropOverrides = async (e) => (await a(this, d)).resetAllAssetCropOverrides(e).then((r) => i(r)), this.setGradientApplied = async (e, t) => {
1285
+ const r = { isApplied: t };
1286
+ return (await a(this, d)).updateFrameGradientSettings(e, JSON.stringify(r)).then((c) => i(c));
1287
+ }, this.setLocalGradient = async (e, t) => {
1288
+ const r = { gradient: t };
1289
+ return (await a(this, d)).updateFrameGradientSettings(e, JSON.stringify(r)).then((c) => i(c));
1290
+ }, this.setBrandKitGradient = async (e, t) => {
1291
+ const r = { id: t };
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 ge(a(this, d)), this.constraints = new Qr(a(this, d));
1294
+ }
1295
+ }
1296
+ d = new WeakMap();
1285
1297
  var F;
1286
- class jr {
1298
+ class Qr {
1287
1299
  /**
1288
1300
  * @ignore
1289
1301
  */
@@ -1292,53 +1304,53 @@ class jr {
1292
1304
  * @ignore
1293
1305
  */
1294
1306
  u(this, F);
1295
- this.get = async (t) => (await a(this, F)).getFrameConstraints(t).then((r) => i(r)), this.setSelectable = async (t, e) => {
1296
- const r = { selectionAllowed: { value: e } };
1297
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1298
- }, this.setHorizontalMovement = async (t, e) => {
1299
- const r = { horizontalMovementAllowed: { value: e } };
1300
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1301
- }, this.setVerticalMovement = async (t, e) => {
1302
- const r = { verticalMovementAllowed: { value: e } };
1303
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1304
- }, this.setRotation = async (t, e) => {
1305
- const r = { rotationAllowed: { value: e } };
1306
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1307
- }, this.setResize = async (t, e, r) => {
1307
+ this.get = async (e) => (await a(this, F)).getFrameConstraints(e).then((r) => i(r)), this.setSelectable = async (e, t) => {
1308
+ const r = { selectionAllowed: { value: t } };
1309
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1310
+ }, this.setHorizontalMovement = async (e, t) => {
1311
+ const r = { horizontalMovementAllowed: { value: t } };
1312
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1313
+ }, this.setVerticalMovement = async (e, t) => {
1314
+ const r = { verticalMovementAllowed: { value: t } };
1315
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1316
+ }, this.setRotation = async (e, t) => {
1317
+ const r = { rotationAllowed: { value: t } };
1318
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1319
+ }, this.setResize = async (e, t, r) => {
1308
1320
  const n = {
1309
- resizeAllowed: { value: e },
1321
+ resizeAllowed: { value: t },
1310
1322
  ...r !== void 0 && { proportionLocked: { value: r } }
1311
1323
  };
1312
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(n)).then((d) => i(d));
1313
- }, this.setCrop = async (t, e) => {
1314
- const r = { image: { cropAllowed: { value: e } } };
1315
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1316
- }, this.setTextEditingAllowed = async (t, e) => {
1317
- const r = { text: { editingAllowed: { value: e } } };
1318
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1319
- }, this.setAllowedParagraphStyles = async (t, e) => {
1320
- const r = { text: { paragraphStyles: { value: e } } };
1321
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1322
- }, this.setAllowedCharacterStyles = async (t, e) => {
1323
- const r = { text: { characterStyles: { value: e } } };
1324
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1325
- }, this.setAllowedColors = async (t, e) => {
1326
- const r = { text: { colors: { value: e } } };
1327
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1328
- }, this.setAllowedFontSizes = async (t, e) => {
1329
- const r = { text: { fontSizes: { value: e } } };
1330
- return (await a(this, F)).updateFrameConstraints(t, JSON.stringify(r)).then((h) => i(h));
1324
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(n)).then((h) => i(h));
1325
+ }, this.setCrop = async (e, t) => {
1326
+ const r = { image: { cropAllowed: { value: t } } };
1327
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1328
+ }, this.setTextEditingAllowed = async (e, t) => {
1329
+ const r = { text: { editingAllowed: { value: t } } };
1330
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1331
+ }, this.setAllowedParagraphStyles = async (e, t) => {
1332
+ const r = { text: { paragraphStyles: { value: t } } };
1333
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1334
+ }, this.setAllowedCharacterStyles = async (e, t) => {
1335
+ const r = { text: { characterStyles: { value: t } } };
1336
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1337
+ }, this.setAllowedColors = async (e, t) => {
1338
+ const r = { text: { colors: { value: t } } };
1339
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1340
+ }, this.setAllowedFontSizes = async (e, t) => {
1341
+ const r = { text: { fontSizes: { value: t } } };
1342
+ return (await a(this, F)).updateFrameConstraints(e, JSON.stringify(r)).then((c) => i(c));
1331
1343
  }, g(this, F, o);
1332
1344
  }
1333
1345
  }
1334
1346
  F = new WeakMap();
1335
- class qe {
1347
+ class Qe {
1336
1348
  constructor() {
1337
- this.currentEngineVersion = ps.current, this.currentSDKVersion = ws.version;
1349
+ this.currentEngineVersion = ms.current, this.currentSDKVersion = fs.version;
1338
1350
  }
1339
1351
  }
1340
- var m, Ht;
1341
- class Ye {
1352
+ var m, Kt;
1353
+ class Xe {
1342
1354
  /**
1343
1355
  * @ignore
1344
1356
  */
@@ -1347,32 +1359,32 @@ class Ye {
1347
1359
  * @ignore
1348
1360
  */
1349
1361
  u(this, m);
1350
- u(this, Ht);
1351
- this.getAll = async () => (await a(this, m)).getLayouts().then((e) => i(e)), this.getById = async (t) => (await a(this, m)).getLayoutById(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, m)).getLayoutByName(t).then((r) => i(r)), this.getSelected = async () => (await a(this, m)).getSelectedLayout().then((e) => i(e)), this.remove = async (t) => (await a(this, m)).removeLayout(t).then((r) => i(r)), this.create = async (t, e) => {
1362
+ u(this, Kt);
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) => {
1352
1364
  const r = await a(this, m);
1353
- return e != null && e.length ? r.addLayouts(t, JSON.stringify(e)).then((n) => i(n)) : r.addLayout(t).then((n) => i(n));
1354
- }, this.rename = async (t, e) => (await a(this, m)).renameLayout(t, e).then((n) => i(n)), this.select = async (t) => (await a(this, m)).selectLayoutWithOptions(t, null).then((r) => i(r)), this.selectWithPageSize = async (t, e) => {
1365
+ return t != null && t.length ? r.addLayouts(e, JSON.stringify(t)).then((n) => i(n)) : r.addLayout(e).then((n) => i(n));
1366
+ }, this.rename = async (e, t) => (await a(this, m)).renameLayout(e, t).then((n) => i(n)), this.select = async (e) => (await a(this, m)).selectLayoutWithOptions(e, null).then((r) => i(r)), this.selectWithPageSize = async (e, t) => {
1355
1367
  const r = await a(this, m), n = {
1356
- pageSize: e
1368
+ pageSize: t
1357
1369
  };
1358
- return r.selectLayoutWithOptions(t, JSON.stringify(n)).then((h) => i(h));
1359
- }, this.duplicate = async (t) => (await a(this, m)).duplicateLayout(t).then((r) => i(r)), this.reset = async (t) => (await a(this, m)).resetLayout(t).then((r) => i(r)), this.setHeight = async (t, e) => (await a(this, m)).setLayoutHeight(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, m)).setLayoutWidth(t, e).then((n) => i(n)), this.setUnit = async (t, e) => (await a(this, m)).setLayoutUnit(t, e).then((n) => i(n)), this.resetHeight = async (t) => (await a(this, m)).resetLayoutHeight(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, m)).resetLayoutWidth(t).then((r) => i(r)), this.resetUnit = async (t) => (await a(this, m)).resetLayoutUnit(t).then((r) => i(r)), this.getSelectedSnapshot = async () => (await a(this, Ht)).getPageSnapshot().then((e) => e ?? e), this.setIntent = async (t, e) => (await a(this, m)).setLayoutIntent(t, e).then((n) => i(n)), this.resetIntent = async (t) => (await a(this, m)).resetLayoutIntent(t).then((r) => i(r)), this.setFillColor = async (t, e) => (await a(this, m)).setLayoutFillColor(t, JSON.stringify(e)).then((n) => i(n)), this.setFillColorEnabled = async (t, e) => (await a(this, m)).setLayoutFillColorEnabled(t, e).then((n) => i(n)), this.resetFillColor = async (t) => (await a(this, m)).resetLayoutFillColor(t).then((r) => i(r)), this.setBleedValue = async (t, e, r) => {
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, 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) => {
1360
1372
  const n = r ? {
1361
- left: r === Q.left ? e : void 0,
1362
- top: r === Q.top ? e : void 0,
1363
- right: r === Q.right ? e : void 0,
1364
- bottom: r === Q.bottom ? e : void 0
1365
- } : { left: e, top: e, right: e, bottom: e };
1366
- return (await a(this, m)).updateLayoutBleed(t, JSON.stringify(n)).then((d) => i(d));
1367
- }, this.setAreBleedValuesCombined = async (t, e) => {
1368
- const r = { areBleedValuesCombined: e };
1369
- return (await a(this, m)).updateLayoutBleed(t, JSON.stringify(r)).then((h) => i(h));
1370
- }, this.resetBleedValues = async (t) => (await a(this, m)).updateLayoutBleed(t, null).then((r) => i(r)), this.setPrivateData = async (t, e) => (await a(this, m)).setLayoutPrivateData(t, JSON.stringify(e)).then((n) => i(n)), this.getPrivateData = async (t) => (await a(this, m)).getLayoutPrivateData(t).then((r) => i(r)), this.setDisplayName = async (t, e) => (await a(this, m)).setLayoutDisplayName(t, e).then((n) => i(n)), this.getDisplayName = async (t) => (await a(this, m)).getLayoutDisplayName(t).then((r) => i(r)), this.resetDisplayName = async (t) => (await a(this, m)).setLayoutDisplayName(t, null).then((r) => i(r)), this.setAvailableForUser = async (t, e) => (await a(this, m)).setLayoutAvailableForUser(t, e).then((n) => i(n)), this.setSelectedByUser = async (t, e) => (await a(this, m)).setLayoutSelectedByUser(t, e).then((n) => i(n)), this.setResizableByUser = async (t, e) => (await a(this, m)).setLayoutResizableByUser(t, JSON.stringify(e)).then((n) => i(n)), g(this, m, o), g(this, Ht, o);
1371
- }
1372
- }
1373
- m = new WeakMap(), Ht = new WeakMap();
1374
- var ce = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.mediumres = "mediumres", s.highres = "highres", s.original = "original", s))(ce || {}), As = /* @__PURE__ */ ((s) => (s.web = "web", s.print = "print", s.animation = "animation", s))(As || {}), Y, $t;
1375
- class Ze {
1373
+ left: r === X.left ? t : void 0,
1374
+ top: r === X.top ? t : void 0,
1375
+ right: r === X.right ? t : void 0,
1376
+ bottom: r === X.bottom ? t : void 0
1377
+ } : { left: t, top: t, right: t, bottom: t };
1378
+ return (await a(this, m)).updateLayoutBleed(e, JSON.stringify(n)).then((h) => i(h));
1379
+ }, this.setAreBleedValuesCombined = async (e, t) => {
1380
+ const r = { areBleedValuesCombined: t };
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, Kt, o);
1383
+ }
1384
+ }
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
+ class ts {
1376
1388
  /**
1377
1389
  * @ignore
1378
1390
  */
@@ -1380,27 +1392,27 @@ class Ze {
1380
1392
  /**
1381
1393
  * @ignore
1382
1394
  */
1383
- u(this, Y);
1384
- u(this, $t);
1385
- this.query = async (t, e, r = {}) => (await a(this, Y)).mediaConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((h) => i(h)), this.detail = async (t, e, r = {}) => (await a(this, Y)).mediaConnectorDetail(t, e, JSON.stringify(r)).then((h) => i(h)), this.download = async (t, e, r, n = {}) => {
1386
- const h = this.parseDeprecatedMediaDownloadType(
1395
+ u(this, Z);
1396
+ u(this, jt);
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
+ const c = this.parseDeprecatedMediaDownloadType(
1387
1399
  r
1388
1400
  );
1389
- return (await a(this, $t)).mediaConnectorDownload(
1390
- t,
1401
+ return (await a(this, jt)).mediaConnectorDownload(
1391
1402
  e,
1392
- h,
1393
- As.web,
1403
+ t,
1404
+ c,
1405
+ Os.web,
1394
1406
  JSON.stringify(n)
1395
1407
  ).then((l) => {
1396
1408
  if (l instanceof Uint8Array)
1397
1409
  return l;
1398
- throw typeof l == "object" && l !== null && "success" in l && !l.success && Zt(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}.`);
1399
1411
  });
1400
- }, this.getConfigurationOptions = async (t) => (await a(this, Y)).mediaConnectorGetConfigurationOptions(t).then((r) => i(r)), this.getCapabilities = async (t) => (await a(this, Y)).mediaConnectorGetCapabilities(t).then((r) => i(r)), this.parseDeprecatedMediaType = (t) => {
1401
- if (t === Ut.file) return kt.file;
1402
- if (t === Ut.collection) return kt.collection;
1403
- }, this.upload = async (t, e, r = {}) => (await a(this, Y)).mediaConnectorUpload(t, JSON.stringify(e), JSON.stringify(r)).then((h) => i(h)), g(this, Y, o), g(this, $t, o);
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 === 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);
1404
1416
  }
1405
1417
  /**
1406
1418
  * This method will parse the deprecatedMediaDownloadType to the new media download type.
@@ -1410,18 +1422,18 @@ class Ze {
1410
1422
  */
1411
1423
  parseDeprecatedMediaDownloadType(o) {
1412
1424
  switch (o) {
1413
- case ie.HighResolutionWeb:
1414
- return ce.highres;
1415
- case ie.LowResolutionWeb:
1416
- return ce.thumbnail;
1425
+ case le.HighResolutionWeb:
1426
+ return ye.highres;
1427
+ case le.LowResolutionWeb:
1428
+ return ye.thumbnail;
1417
1429
  default:
1418
1430
  return o;
1419
1431
  }
1420
1432
  }
1421
1433
  }
1422
- Y = new WeakMap(), $t = new WeakMap();
1423
- var L, zt, gs;
1424
- let Qe = (gs = class {
1434
+ Z = new WeakMap(), jt = new WeakMap();
1435
+ var D, Wt, ws;
1436
+ let es = (ws = class {
1425
1437
  /**
1426
1438
  * @ignore
1427
1439
  */
@@ -1429,20 +1441,20 @@ let Qe = (gs = class {
1429
1441
  /**
1430
1442
  * @ignore
1431
1443
  */
1432
- u(this, L);
1444
+ u(this, D);
1433
1445
  /**
1434
1446
  * @ignore
1435
1447
  */
1436
- u(this, zt);
1437
- this.add = async () => (await a(this, L)).addPage().then((e) => i(e)), this.remove = async (t) => (await a(this, L)).removePage(t).then((r) => i(r)), this.select = async (t) => (await a(this, L)).selectPage(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, L)).setPageIsVisible(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, L)).duplicatePage(t).then((r) => i(r)), this.getAll = async () => (await a(this, L)).getPages().then((e) => i(e)), this.getById = async (t) => (await a(this, L)).getPageById(t).then((r) => i(r)), this.getSnapshot = async (t, e) => (await a(this, zt)).getPageSnapshotWithSettings(t, e == null ? null : JSON.stringify(e)).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) => {
1438
1450
  if (n instanceof Uint8Array)
1439
1451
  return n;
1440
- throw typeof n == "object" && n !== null && "success" in n && !n.success && Zt(n), new Error(`Unexpected response type: ${typeof n}.`);
1441
- }), this.setWidth = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, L)).setPageWidth(e).then((n) => i(n))), this.setHeight = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, L)).setPageHeight(e).then((n) => i(n))), this.setSize = async (t, e) => (await a(this, L)).setPageSize(t, e).then((n) => i(n)), this.move = async (t, e) => (await a(this, L)).reorderPages(t, e).then((n) => i(n)), g(this, L, o), g(this, zt, 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);
1442
1454
  }
1443
- }, L = new WeakMap(), zt = new WeakMap(), gs);
1455
+ }, D = new WeakMap(), Wt = new WeakMap(), ws);
1444
1456
  var U;
1445
- class Xe {
1457
+ class ss {
1446
1458
  /**
1447
1459
  * @ignore
1448
1460
  */
@@ -1451,120 +1463,120 @@ class Xe {
1451
1463
  * @ignore
1452
1464
  */
1453
1465
  u(this, U);
1454
- this.getAll = async () => (await a(this, U)).getParagraphStyles().then((e) => i(e)), this.getById = async (t) => (await a(this, U)).getParagraphStyleById(t).then((r) => i(r)), this.create = async () => (await a(this, U)).createParagraphStyle().then((e) => i(e)), this.duplicate = async (t) => (await a(this, U)).duplicateParagraphStyle(t).then((r) => i(r)), this.update = async (t, e) => (await a(this, U)).updateParagraphStyle(t, JSON.stringify(e)).then((n) => i(n)), this.rename = async (t, e) => (await a(this, U)).renameParagraphStyle(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, U)).removeParagraphStyle(t).then((r) => i(r)), this.move = async (t, e) => (await a(this, U)).moveParagraphStyles(t, e).then((n) => i(n)), g(this, U, o);
1466
+ this.getAll = async () => (await a(this, U)).getParagraphStyles().then((t) => i(t)), this.getById = async (e) => (await a(this, U)).getParagraphStyleById(e).then((r) => i(r)), this.create = async () => (await a(this, U)).createParagraphStyle().then((t) => i(t)), this.duplicate = async (e) => (await a(this, U)).duplicateParagraphStyle(e).then((r) => i(r)), this.update = async (e, t) => (await a(this, U)).updateParagraphStyle(e, JSON.stringify(t)).then((n) => i(n)), this.rename = async (e, t) => (await a(this, U)).renameParagraphStyle(e, t).then((n) => i(n)), this.remove = async (e) => (await a(this, U)).removeParagraphStyle(e).then((r) => i(r)), this.move = async (e, t) => (await a(this, U)).moveParagraphStyles(e, t).then((n) => i(n)), g(this, U, o);
1455
1467
  }
1456
1468
  }
1457
1469
  U = new WeakMap();
1458
- var ue = /* @__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))(ue || {}), 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 || {}), Yr = /* @__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))(Yr || {}), Bt = /* @__PURE__ */ ((s) => (s.visible = "visible", s.invisible = "invisible", s.conditional = "conditional", s))(Bt || {}), Zr = /* @__PURE__ */ ((s) => (s.boolean = "boolean", s.text = "text", s.number = "number", s))(Zr || {}), Qr = /* @__PURE__ */ ((s) => (s.equals = "=", s.notEquals = "!=", s.greaterThan = ">", s.greaterThanOrEquals = ">=", s.lessThan = "<", s.lessThanOrEquals = "<=", s))(Qr || {});
1459
- let Xr = class {
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
+ let nn = class {
1460
1472
  /**
1461
1473
  * @ignore
1462
1474
  */
1463
- constructor(o, t) {
1464
- this.onActionsChanged = (e) => {
1465
- this.config.events.onActionsChanged.trigger(JSON.parse(e));
1466
- }, this.onAnimationChanged = (e) => {
1467
- this.config.events.onFrameAnimationsChanged.trigger(JSON.parse(e));
1468
- }, this.onAnimationPlaybackChanged = (e) => {
1469
- this.config.events.onScrubberPositionChanged.trigger(JSON.parse(e));
1470
- }, this.onSelectedLayoutPropertiesChanged = (e) => {
1471
- this.config.events.onSelectedLayoutPropertiesChanged.trigger(JSON.parse(e));
1472
- }, this.onSelectedLayoutUnitChanged = (e) => {
1473
- this.config.events.onSelectedLayoutUnitChanged.trigger(e);
1474
- }, this.onFramesLayoutChanged = (e) => {
1475
- const r = JSON.parse(e);
1475
+ constructor(o, e) {
1476
+ this.onActionsChanged = (t) => {
1477
+ this.config.events.onActionsChanged.trigger(JSON.parse(t));
1478
+ }, this.onAnimationChanged = (t) => {
1479
+ this.config.events.onFrameAnimationsChanged.trigger(JSON.parse(t));
1480
+ }, this.onAnimationPlaybackChanged = (t) => {
1481
+ this.config.events.onScrubberPositionChanged.trigger(JSON.parse(t));
1482
+ }, this.onSelectedLayoutPropertiesChanged = (t) => {
1483
+ this.config.events.onSelectedLayoutPropertiesChanged.trigger(JSON.parse(t));
1484
+ }, this.onSelectedLayoutUnitChanged = (t) => {
1485
+ this.config.events.onSelectedLayoutUnitChanged.trigger(t);
1486
+ }, this.onFramesLayoutChanged = (t) => {
1487
+ const r = JSON.parse(t);
1476
1488
  this.config.events.onFramesLayoutChanged.trigger(r);
1477
- }, this.onSelectedFramesLayoutChanged = (e) => {
1478
- const r = JSON.parse(e);
1489
+ }, this.onSelectedFramesLayoutChanged = (t) => {
1490
+ const r = JSON.parse(t);
1479
1491
  this.config.events.onSelectedFramesLayoutChanged.trigger(r);
1480
1492
  const n = this.config.onSelectedFrameLayoutChanged;
1481
1493
  n && n(r.length > 1 ? void 0 : r[0]);
1482
- }, this.onSelectedFramesContentChanged = (e) => {
1483
- const r = JSON.parse(e);
1494
+ }, this.onSelectedFramesContentChanged = (t) => {
1495
+ const r = JSON.parse(t);
1484
1496
  this.config.events.onSelectedFramesContentChanged.trigger(r);
1485
1497
  const n = this.config.onSelectedFrameContentChanged;
1486
1498
  n && n(r.length > 1 ? null : r[0]);
1487
1499
  }, this.onStateChanged = () => {
1488
1500
  this.config.events.onStateChanged.trigger();
1489
- }, this.onAuthExpired = async (e) => {
1490
- const r = await this.config.handlers.onAuthExpired.trigger(JSON.parse(e));
1501
+ }, this.onAuthExpired = async (t) => {
1502
+ const r = await this.config.handlers.onAuthExpired.trigger(JSON.parse(t));
1491
1503
  return r != null ? JSON.stringify(r) : null;
1492
1504
  }, this.onViewportRequested = () => {
1493
- const e = this.config.handlers.onViewportRequested.trigger();
1494
- return e != null ? JSON.stringify(e) : null;
1505
+ const t = this.config.handlers.onViewportRequested.trigger();
1506
+ return t != null ? JSON.stringify(t) : null;
1495
1507
  }, this.onDocumentLoaded = () => {
1496
1508
  this.config.events.onDocumentLoaded.trigger();
1497
- }, this.onPageSelectionChanged = (e) => {
1498
- this.config.events.onPageSelectionChanged.trigger(e);
1499
- }, this.onVariableListChanged = (e) => {
1500
- const n = JSON.parse(e).map(
1501
- (h) => {
1502
- var d;
1503
- return h.type === ue.list ? {
1504
- ...h,
1505
- items: h.items.map(
1509
+ }, this.onPageSelectionChanged = (t) => {
1510
+ this.config.events.onPageSelectionChanged.trigger(t);
1511
+ }, this.onVariableListChanged = (t) => {
1512
+ const n = JSON.parse(t).map(
1513
+ (c) => {
1514
+ var h;
1515
+ return c.type === ae.list ? {
1516
+ ...c,
1517
+ items: c.items.map(
1506
1518
  (l) => l.value
1507
1519
  ),
1508
- selected: (d = h.selected) == null ? void 0 : d.value
1509
- } : h;
1520
+ selected: (h = c.selected) == null ? void 0 : h.value
1521
+ } : c;
1510
1522
  }
1511
1523
  );
1512
1524
  this.config.events.onVariableListChanged.trigger(n);
1513
- }, this.onSelectedToolChanged = (e) => {
1514
- this.config.events.onSelectedToolChanged.trigger(e);
1515
- }, this.onUndoStateChanged = (e) => {
1516
- this.config.events.onUndoStackStateChanged.trigger(JSON.parse(e));
1517
- }, this.onCustomUndoDataChanged = (e) => {
1518
- this.config.events.onCustomUndoDataChanged.trigger(JSON.parse(e));
1519
- }, this.onSelectedLayoutFramesChanged = (e) => {
1520
- this.config.events.onSelectedLayoutFramesChanged.trigger(JSON.parse(e));
1521
- }, this.onSelectedTextStyleChanged = (e) => {
1522
- this.config.events.onSelectedTextStyleChanged.trigger(JSON.parse(e));
1523
- }, this.onColorsChanged = (e) => {
1524
- this.config.events.onColorsChanged.trigger(JSON.parse(e));
1525
- }, this.onParagraphStylesChanged = (e) => {
1526
- this.config.events.onParagraphStylesChanged.trigger(JSON.parse(e));
1527
- }, this.onCharacterStylesChanged = (e) => {
1528
- this.config.events.onCharacterStylesChanged.trigger(JSON.parse(e));
1529
- }, this.onFontFamiliesChanged = (e) => {
1530
- this.config.events.onFontFamiliesChanged.trigger(JSON.parse(e));
1531
- }, this.onSelectedLayoutIdChanged = (e) => {
1532
- this.config.events.onSelectedLayoutIdChanged.trigger(e);
1533
- }, this.onLayoutsChanged = (e) => {
1534
- this.config.events.onLayoutsChanged.trigger(JSON.parse(e));
1535
- }, this.onZoomChanged = (e) => {
1536
- this.config.events.onZoomChanged.trigger(JSON.parse(e));
1537
- }, this.onConnectorEvent = (e) => {
1538
- this.config.events.onConnectorEvent.trigger(JSON.parse(e));
1539
- }, this.onConnectorsChanged = (e) => {
1540
- const n = new le().makeMultipleConnectorsBackwardsCompatible(
1541
- JSON.parse(e),
1542
- this.localConfig.get(X.GraFxStudioEnvironmentApiUrl)
1525
+ }, this.onSelectedToolChanged = (t) => {
1526
+ this.config.events.onSelectedToolChanged.trigger(t);
1527
+ }, this.onUndoStateChanged = (t) => {
1528
+ this.config.events.onUndoStackStateChanged.trigger(JSON.parse(t));
1529
+ }, this.onCustomUndoDataChanged = (t) => {
1530
+ this.config.events.onCustomUndoDataChanged.trigger(JSON.parse(t));
1531
+ }, this.onSelectedLayoutFramesChanged = (t) => {
1532
+ this.config.events.onSelectedLayoutFramesChanged.trigger(JSON.parse(t));
1533
+ }, this.onSelectedTextStyleChanged = (t) => {
1534
+ this.config.events.onSelectedTextStyleChanged.trigger(JSON.parse(t));
1535
+ }, this.onColorsChanged = (t) => {
1536
+ this.config.events.onColorsChanged.trigger(JSON.parse(t));
1537
+ }, this.onParagraphStylesChanged = (t) => {
1538
+ this.config.events.onParagraphStylesChanged.trigger(JSON.parse(t));
1539
+ }, this.onCharacterStylesChanged = (t) => {
1540
+ this.config.events.onCharacterStylesChanged.trigger(JSON.parse(t));
1541
+ }, this.onFontFamiliesChanged = (t) => {
1542
+ this.config.events.onFontFamiliesChanged.trigger(JSON.parse(t));
1543
+ }, this.onSelectedLayoutIdChanged = (t) => {
1544
+ this.config.events.onSelectedLayoutIdChanged.trigger(t);
1545
+ }, this.onLayoutsChanged = (t) => {
1546
+ this.config.events.onLayoutsChanged.trigger(JSON.parse(t));
1547
+ }, this.onZoomChanged = (t) => {
1548
+ this.config.events.onZoomChanged.trigger(JSON.parse(t));
1549
+ }, this.onConnectorEvent = (t) => {
1550
+ this.config.events.onConnectorEvent.trigger(JSON.parse(t));
1551
+ }, this.onConnectorsChanged = (t) => {
1552
+ const n = new ne().makeMultipleConnectorsBackwardsCompatible(
1553
+ JSON.parse(t),
1554
+ this.localConfig.get(tt.GraFxStudioEnvironmentApiUrl)
1543
1555
  );
1544
1556
  this.config.events.onConnectorsChanged.trigger(n);
1545
- }, this.onSelectedPageIdChanged = (e) => {
1546
- this.config.events.onSelectedPageIdChanged.trigger(e);
1547
- }, this.onPagesChanged = (e) => {
1548
- this.config.events.onPagesChanged.trigger(JSON.parse(e));
1549
- }, this.onPageSnapshotInvalidated = (e) => {
1550
- this.config.events.onPageSnapshotInvalidated.trigger(e);
1551
- }, this.onPageSizeChanged = (e) => {
1552
- this.config.events.onPageSizeChanged.trigger(JSON.parse(e));
1553
- }, this.onShapeCornerRadiusChanged = (e) => {
1554
- this.config.events.onShapeCornerRadiusChanged.trigger(JSON.parse(e));
1555
- }, this.onCropActiveFrameIdChanged = (e) => {
1556
- this.config.events.onCropActiveFrameIdChanged.trigger(e);
1557
- }, this.onAsyncError = (e) => {
1558
- const r = JSON.parse(e);
1557
+ }, this.onSelectedPageIdChanged = (t) => {
1558
+ this.config.events.onSelectedPageIdChanged.trigger(t);
1559
+ }, this.onPagesChanged = (t) => {
1560
+ this.config.events.onPagesChanged.trigger(JSON.parse(t));
1561
+ }, this.onPageSnapshotInvalidated = (t) => {
1562
+ this.config.events.onPageSnapshotInvalidated.trigger(t);
1563
+ }, this.onPageSizeChanged = (t) => {
1564
+ this.config.events.onPageSizeChanged.trigger(JSON.parse(t));
1565
+ }, this.onShapeCornerRadiusChanged = (t) => {
1566
+ this.config.events.onShapeCornerRadiusChanged.trigger(JSON.parse(t));
1567
+ }, this.onCropActiveFrameIdChanged = (t) => {
1568
+ this.config.events.onCropActiveFrameIdChanged.trigger(t);
1569
+ }, this.onAsyncError = (t) => {
1570
+ const r = JSON.parse(t);
1559
1571
  if ((r == null ? void 0 : r.type) === "dataRow") {
1560
- const n = new nr(
1572
+ const n = new cr(
1561
1573
  r.count,
1562
1574
  r.message,
1563
1575
  r.exceptions
1564
1576
  );
1565
1577
  this.config.events.onAsyncError.trigger(n);
1566
1578
  } else if ((r == null ? void 0 : r.type) === "action") {
1567
- const n = new rr(
1579
+ const n = new or(
1568
1580
  r.message,
1569
1581
  r.id,
1570
1582
  r.event,
@@ -1573,23 +1585,23 @@ let Xr = class {
1573
1585
  this.config.events.onAsyncError.trigger(n);
1574
1586
  } else
1575
1587
  this.config.events.onAsyncError.trigger(r);
1576
- }, this.onViewModeChanged = (e) => {
1577
- this.config.events.onViewModeChanged.trigger(e);
1578
- }, this.onBarcodeValidationChanged = (e) => {
1579
- this.config.events.onBarcodeValidationChanged.trigger(JSON.parse(e));
1580
- }, this.onDataSourceIdChanged = (e) => {
1581
- this.config.events.onDataSourceIdChanged.trigger(e);
1582
- }, this.onDocumentIssueListChanged = (e) => {
1583
- this.config.events.onDocumentIssueListChanged.trigger(JSON.parse(e));
1584
- }, this.onEngineEditModeChanged = (e) => {
1585
- this.config.events.onEngineEditModeChanged.trigger(JSON.parse(e));
1586
- }, this.onBrandKitMediaChanged = (e) => {
1587
- this.config.events.onBrandKitMediaChanged.trigger(JSON.parse(e));
1588
- }, this.config = o, this.localConfig = t;
1588
+ }, this.onViewModeChanged = (t) => {
1589
+ this.config.events.onViewModeChanged.trigger(t);
1590
+ }, this.onBarcodeValidationChanged = (t) => {
1591
+ this.config.events.onBarcodeValidationChanged.trigger(JSON.parse(t));
1592
+ }, this.onDataSourceIdChanged = (t) => {
1593
+ this.config.events.onDataSourceIdChanged.trigger(t);
1594
+ }, this.onDocumentIssueListChanged = (t) => {
1595
+ this.config.events.onDocumentIssueListChanged.trigger(JSON.parse(t));
1596
+ }, this.onEngineEditModeChanged = (t) => {
1597
+ this.config.events.onEngineEditModeChanged.trigger(JSON.parse(t));
1598
+ }, this.onBrandKitMediaChanged = (t) => {
1599
+ this.config.events.onBrandKitMediaChanged.trigger(JSON.parse(t));
1600
+ }, this.config = o, this.localConfig = e;
1589
1601
  }
1590
1602
  };
1591
- var pt;
1592
- class ts {
1603
+ var wt;
1604
+ class rs {
1593
1605
  /**
1594
1606
  * @ignore
1595
1607
  */
@@ -1597,13 +1609,13 @@ class ts {
1597
1609
  /**
1598
1610
  * @ignore
1599
1611
  */
1600
- u(this, pt);
1601
- this.set = async (t) => (await a(this, pt)).selectedTextStyleDeltaUpdate(JSON.stringify(t)).then((r) => i(r)), this.removeSelected = async () => (await a(this, pt)).selectedTextStyleClean().then((e) => i(e)), this.getSelected = async () => (await a(this, pt)).getSelectedTextStyle().then((e) => i(e)), g(this, pt, o);
1612
+ u(this, wt);
1613
+ this.set = async (e) => (await a(this, wt)).selectedTextStyleDeltaUpdate(JSON.stringify(e)).then((r) => i(r)), this.removeSelected = async () => (await a(this, wt)).selectedTextStyleClean().then((t) => i(t)), this.getSelected = async () => (await a(this, wt)).getSelectedTextStyle().then((t) => i(t)), g(this, wt, o);
1602
1614
  }
1603
1615
  }
1604
- pt = new WeakMap();
1605
- var tn = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(tn || {}), en = /* @__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))(en || {}), $ = /* @__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))($ || {}), sn = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s.HTML = "html", s))(sn || {}), de = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(de || {}), Ot;
1606
- class es {
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 || {}), pe = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(pe || {}), Et;
1618
+ class ns {
1607
1619
  /**
1608
1620
  * @ignore
1609
1621
  */
@@ -1611,44 +1623,44 @@ class es {
1611
1623
  /**
1612
1624
  * @ignore
1613
1625
  */
1614
- u(this, Ot);
1615
- this.setTool = async (t) => (await a(this, Ot)).setTool(t).then((r) => i(r)), this.getSelected = async () => (await a(this, Ot)).getSelectedTool().then((e) => i(e)), this.setPointer = async () => this.setTool($.SELECT), this.setSelect = async () => this.setTool($.SELECT), this.setHand = async () => this.setTool($.HAND), this.setZoom = async () => this.setTool($.ZOOM), this.setTextFrame = async () => this.setTool($.TEXT_FRAME), this.setImageFrame = async () => this.setTool($.IMAGE_FRAME), this.setShapeRect = async () => this.setTool($.SHAPE_RECT), this.setShapeEllipse = async () => this.setTool($.SHAPE_ELLIPSE), this.setShapePolygon = async () => this.setTool($.SHAPE_POLYGON), g(this, Ot, 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);
1616
1628
  }
1617
1629
  }
1618
- Ot = new WeakMap();
1619
- var z, _, Kt;
1620
- class ss {
1630
+ Et = new WeakMap();
1631
+ var K, _, qt;
1632
+ class as {
1621
1633
  /**
1622
1634
  * @ignore
1623
1635
  */
1624
- constructor(o, t) {
1636
+ constructor(o, e) {
1625
1637
  /**
1626
1638
  * @ignore
1627
1639
  */
1628
- u(this, z);
1640
+ u(this, K);
1629
1641
  u(this, _);
1630
- u(this, Kt);
1631
- this.undo = async () => (await a(this, z)).undo().then((r) => i(r)), this.redo = async () => (await a(this, z)).redo().then((r) => i(r)), this.addCustomData = async (e, r) => (await a(this, z)).setCustomUndoData(e, r, !1).then((h) => i(h)), this.record = async (e, r) => {
1642
+ u(this, qt);
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) => {
1632
1644
  try {
1633
- await a(this, _).beginIfNoneActive(e), await r(a(this, Kt)), await a(this, _).end();
1645
+ await a(this, _).beginIfNoneActive(t), await r(a(this, qt)), await a(this, _).end();
1634
1646
  } catch (n) {
1635
1647
  throw await a(this, _).abort(), n;
1636
1648
  }
1637
- }, this.pause = async () => (await a(this, z)).pause().then((r) => i(r)), this.resume = async () => (await a(this, z)).resume().then((r) => i(r)), this.clear = async () => (await a(this, z)).clear().then((r) => i(r)), this.advanced = {
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 = {
1638
1650
  /**
1639
1651
  * This will start a new undo operation.
1640
1652
  * This will throw an exception when there is already an undo operation recording.
1641
1653
  * @experimental This method is experimental and may change in future versions.
1642
1654
  * @returns
1643
1655
  */
1644
- begin: async (e) => a(this, _).begin(e),
1656
+ begin: async (t) => a(this, _).begin(t),
1645
1657
  /**
1646
1658
  * This will start a new undo operation if there is no other undo operation recording.
1647
1659
  * This does not throw.
1648
1660
  * @experimental This method is experimental and may change in future versions.
1649
1661
  * @returns
1650
1662
  */
1651
- beginIfNoneActive: async (e) => a(this, _).beginIfNoneActive(e),
1663
+ beginIfNoneActive: async (t) => a(this, _).beginIfNoneActive(t),
1652
1664
  /**
1653
1665
  * Ends the currently active recording operation.
1654
1666
  * If there is no recording operation currently running this will throw an exception.
@@ -1663,12 +1675,12 @@ class ss {
1663
1675
  * @returns
1664
1676
  */
1665
1677
  abort: async () => a(this, _).abort()
1666
- }, g(this, z, o), g(this, Kt, t), g(this, _, new rn(o));
1678
+ }, g(this, K, o), g(this, qt, e), g(this, _, new hn(o));
1667
1679
  }
1668
1680
  }
1669
- z = new WeakMap(), _ = new WeakMap(), Kt = new WeakMap();
1670
- var it;
1671
- class rn {
1681
+ K = new WeakMap(), _ = new WeakMap(), qt = new WeakMap();
1682
+ var ot;
1683
+ class hn {
1672
1684
  /**
1673
1685
  * @ignore
1674
1686
  */
@@ -1676,43 +1688,43 @@ class rn {
1676
1688
  /**
1677
1689
  * @ignore
1678
1690
  */
1679
- u(this, it);
1680
- this.begin = async (t) => (await a(this, it)).begin(t).then((r) => i(r)), this.beginIfNoneActive = async (t) => (await a(this, it)).beginIfNoneActive(t).then((r) => i(r)), this.end = async () => (await a(this, it)).end().then((e) => i(e)), this.abort = async () => (await a(this, it)).abort().then((e) => i(e)), g(this, it, o);
1691
+ u(this, ot);
1692
+ this.begin = async (e) => (await a(this, ot)).begin(e).then((r) => i(r)), this.beginIfNoneActive = async (e) => (await a(this, ot)).beginIfNoneActive(e).then((r) => i(r)), this.end = async () => (await a(this, ot)).end().then((t) => i(t)), this.abort = async () => (await a(this, ot)).abort().then((t) => i(t)), g(this, ot, o);
1681
1693
  }
1682
1694
  }
1683
- it = new WeakMap();
1684
- const nn = (s, o = 2) => {
1685
- const t = Math.pow(10, o);
1686
- return Math.round(s * t) / t;
1695
+ ot = new WeakMap();
1696
+ const dn = (s, o = 2) => {
1697
+ const e = Math.pow(10, o);
1698
+ return Math.round(s * e) / e;
1687
1699
  };
1688
- var Wt, Ft;
1689
- class rs {
1700
+ var Yt, Dt;
1701
+ class is {
1690
1702
  /**
1691
1703
  * @ignore
1692
1704
  */
1693
- constructor(o, t) {
1705
+ constructor(o, e) {
1694
1706
  /**
1695
1707
  * @ignore
1696
1708
  */
1697
- u(this, Wt);
1698
- u(this, Ft);
1699
- this.round = (e, r) => i({
1700
- data: String(nn(e, r)),
1709
+ u(this, Yt);
1710
+ u(this, Dt);
1711
+ this.round = (t, r) => i({
1712
+ data: String(dn(t, r)),
1701
1713
  success: !0,
1702
1714
  status: 200,
1703
1715
  parsedData: null
1704
- }), this.createEnvironmentBaseURL = (e) => {
1705
- const { type: r = de.SANDBOX, environment: n = "ft-nostress", version: h = "1" } = e, d = r == de.SANDBOX ? "chili-publish-sandbox" : "chili-publish";
1706
- return `https://${n}.${d}.online/grafx/api/v${h}/environment/${n}`;
1707
- }, this.stageFiles = async (e, r, n) => {
1708
- const h = a(this, Ft).get(X.GraFxStudioEnvironmentApiUrl);
1709
- if (!h)
1716
+ }), this.createEnvironmentBaseURL = (t) => {
1717
+ const { type: r = pe.SANDBOX, environment: n = "ft-nostress", version: c = "1" } = t, h = r == pe.SANDBOX ? "chili-publish-sandbox" : "chili-publish";
1718
+ return `https://${n}.${h}.online/grafx/api/v${c}/environment/${n}`;
1719
+ }, this.stageFiles = async (t, r, n) => {
1720
+ const c = a(this, Dt).get(tt.GraFxStudioEnvironmentApiUrl);
1721
+ if (!c)
1710
1722
  throw new Error("GraFx Studio Environment API URL is not set");
1711
- const d = `${h}connectors/${r}/stage`, l = a(this, Ft).get(X.GraFxStudioAuthToken);
1723
+ const h = `${c}connectors/${r}/stage`, l = a(this, Dt).get(tt.GraFxStudioAuthToken);
1712
1724
  if (!l)
1713
1725
  throw new Error("GraFx Studio Auth Token is not set");
1714
1726
  const p = new FormData();
1715
- e.forEach((S, v) => {
1727
+ t.forEach((S, v) => {
1716
1728
  const E = S instanceof File ? S.name : `blob-${v}`;
1717
1729
  p.append("files", S, E);
1718
1730
  }), n && p.append(
@@ -1725,7 +1737,7 @@ class rs {
1725
1737
  }
1726
1738
  })
1727
1739
  );
1728
- const y = await fetch(d, {
1740
+ const y = await fetch(h, {
1729
1741
  method: "POST",
1730
1742
  body: p,
1731
1743
  headers: {
@@ -1734,144 +1746,201 @@ class rs {
1734
1746
  });
1735
1747
  if (y.status === 422) {
1736
1748
  const S = await y.json();
1737
- throw new Dr(S.message, bs.minDimension);
1749
+ throw new Mr(S.message, As.minDimension);
1738
1750
  }
1739
1751
  if (!y.ok)
1740
1752
  throw new Error("Failed to stage files");
1741
1753
  return await y.json();
1742
- }, this.unitEvaluate = async (e, r) => (await a(this, Wt)).unitEvaluate(e, r).then((h) => i(h)), g(this, Wt, o), g(this, Ft, t);
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);
1743
1755
  }
1744
1756
  }
1745
- Wt = new WeakMap(), Ft = new WeakMap();
1746
- var jt;
1747
- class an {
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 {
1748
1764
  constructor(o) {
1749
- u(this, jt);
1750
- this.setMinimum = async (t, e) => {
1751
- const r = { minValue: { value: e } };
1752
- return this.applyPropertiesUpdate(t, r);
1753
- }, this.setMaximum = async (t, e) => {
1754
- const r = { maxValue: { value: e } };
1755
- return this.applyPropertiesUpdate(t, r);
1756
- }, this.setShowStepper = async (t, e) => {
1757
- const r = { showStepper: { value: e } };
1758
- return this.applyPropertiesUpdate(t, r);
1759
- }, this.setStepSize = async (t, e) => {
1760
- const r = { stepSize: { value: e } };
1761
- return this.applyPropertiesUpdate(t, r);
1762
- }, this.setThousandsSeparator = async (t, e) => {
1763
- const r = { thousandsSeparator: { value: e } };
1764
- return this.applyPropertiesUpdate(t, r);
1765
- }, this.setDecimalSeparator = async (t, e) => {
1766
- const r = { decimalSeparator: { value: e } };
1767
- return this.applyPropertiesUpdate(t, r);
1768
- }, this.setDecimalCharacterStyle = async (t, e) => {
1769
- const r = { decimalCharacterStyleId: { value: e } };
1770
- return this.applyPropertiesUpdate(t, r);
1771
- }, this.setNumberOfDecimals = async (t, e) => {
1772
- const r = { numberOfDecimals: { value: e } };
1773
- return this.applyPropertiesUpdate(t, r);
1774
- }, g(this, jt, o);
1775
- }
1776
- async applyPropertiesUpdate(o, t) {
1777
- const r = await (await a(this, jt)).updateNumberVariableProperties(o, JSON.stringify(t));
1765
+ u(this, Zt);
1766
+ this.setMinimum = async (e, t) => {
1767
+ const r = { minValue: { value: t } };
1768
+ return this.applyPropertiesUpdate(e, r);
1769
+ }, this.setMaximum = async (e, t) => {
1770
+ const r = { maxValue: { value: t } };
1771
+ return this.applyPropertiesUpdate(e, r);
1772
+ }, this.setShowStepper = async (e, t) => {
1773
+ const r = { showStepper: { value: t } };
1774
+ return this.applyPropertiesUpdate(e, r);
1775
+ }, this.setStepSize = async (e, t) => {
1776
+ const r = { stepSize: { value: t } };
1777
+ return this.applyPropertiesUpdate(e, r);
1778
+ }, this.setThousandsSeparator = async (e, t) => {
1779
+ const r = { thousandsSeparator: { value: t } };
1780
+ return this.applyPropertiesUpdate(e, r);
1781
+ }, this.setDecimalSeparator = async (e, t) => {
1782
+ const r = { decimalSeparator: { value: t } };
1783
+ return this.applyPropertiesUpdate(e, r);
1784
+ }, this.setDecimalCharacterStyle = async (e, t) => {
1785
+ const r = { decimalCharacterStyleId: { value: t } };
1786
+ return this.applyPropertiesUpdate(e, r);
1787
+ }, this.setNumberOfDecimals = async (e, t) => {
1788
+ const r = { numberOfDecimals: { value: t } };
1789
+ return this.applyPropertiesUpdate(e, r);
1790
+ }, g(this, Zt, o);
1791
+ }
1792
+ async applyPropertiesUpdate(o, e) {
1793
+ const r = await (await a(this, Zt)).updateNumberVariableProperties(o, JSON.stringify(e));
1778
1794
  return i(r);
1779
1795
  }
1780
1796
  }
1781
- jt = new WeakMap();
1782
- var qt;
1783
- class on {
1797
+ Zt = new WeakMap();
1798
+ var Qt;
1799
+ class yn {
1784
1800
  constructor(o) {
1785
- u(this, qt);
1786
- this.setDisplayFormat = async (t, e) => {
1787
- const r = { displayFormat: { value: e } };
1788
- return this.applyPropertiesUpdate(t, r);
1789
- }, this.setLocale = async (t, e) => {
1790
- const r = { locale: { value: e } };
1791
- return this.applyPropertiesUpdate(t, r);
1792
- }, this.setStartDate = async (t, e) => {
1793
- const r = { startDate: { value: e } };
1794
- return this.applyPropertiesUpdate(t, r);
1795
- }, this.setEndDate = async (t, e) => {
1796
- const r = { endDate: { value: e } };
1797
- return this.applyPropertiesUpdate(t, r);
1798
- }, this.setExcludedDays = async (t, e) => {
1799
- const r = { excludedDays: { value: e } };
1800
- return this.applyPropertiesUpdate(t, r);
1801
- }, g(this, qt, o);
1802
- }
1803
- async applyPropertiesUpdate(o, t) {
1804
- const r = await (await a(this, qt)).updateDateVariableProperties(o, JSON.stringify(t));
1801
+ u(this, Qt);
1802
+ this.setDisplayFormat = async (e, t) => {
1803
+ const r = { displayFormat: { value: t } };
1804
+ return this.applyPropertiesUpdate(e, r);
1805
+ }, this.setLocale = async (e, t) => {
1806
+ const r = { locale: { value: t } };
1807
+ return this.applyPropertiesUpdate(e, r);
1808
+ }, this.setStartDate = async (e, t) => {
1809
+ const r = { startDate: { value: t } };
1810
+ return this.applyPropertiesUpdate(e, r);
1811
+ }, this.setEndDate = async (e, t) => {
1812
+ const r = { endDate: { value: t } };
1813
+ return this.applyPropertiesUpdate(e, r);
1814
+ }, this.setExcludedDays = async (e, t) => {
1815
+ const r = { excludedDays: { value: t } };
1816
+ return this.applyPropertiesUpdate(e, r);
1817
+ }, g(this, Qt, o);
1818
+ }
1819
+ async applyPropertiesUpdate(o, e) {
1820
+ const r = await (await a(this, Qt)).updateDateVariableProperties(o, JSON.stringify(e));
1805
1821
  return i(r);
1806
1822
  }
1807
1823
  }
1808
- qt = new WeakMap();
1809
- var w, Et, Lt, ys;
1810
- let ns = (ys = class {
1824
+ Qt = new WeakMap();
1825
+ var k, Lt;
1826
+ class pn {
1827
+ constructor(o, e) {
1828
+ u(this, k);
1829
+ u(this, Lt);
1830
+ this.setValue = async (t, r) => {
1831
+ const n = await a(this, k);
1832
+ let c;
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) => {
1835
+ const c = { ...n, parsedData: null };
1836
+ return n.parsedData && (c.parsedData = {
1837
+ ...n.parsedData,
1838
+ data: n.parsedData.data.map(
1839
+ (h) => a(this, Lt).mapEngineToDataItem(h)
1840
+ )
1841
+ }), c;
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) => {
1868
+ const n = r.properties, c = r.itemIdPropertyName;
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);
1872
+ return n.setDataSourceVariableConnector(t, JSON.stringify(h)).then((l) => i(l));
1873
+ }, this.removeConnector = async (t) => (await a(this, k)).setDataSourceVariableConnector(t, null).then((n) => i(n)), g(this, k, o), g(this, Lt, e);
1874
+ }
1875
+ async setDisplayOptions(o, e, t) {
1876
+ return (await a(this, k)).setDataSourceVariableDisplayOptions(o, e, t ?? void 0).then((n) => i(n));
1877
+ }
1878
+ }
1879
+ k = new WeakMap(), Lt = new WeakMap();
1880
+ var w, Nt, Rt, Cs;
1881
+ let os = (Cs = class {
1811
1882
  /**
1812
1883
  * @ignore
1813
1884
  */
1814
- constructor(o) {
1885
+ constructor(o, e) {
1815
1886
  /**
1816
1887
  * @ignore
1817
1888
  */
1818
1889
  u(this, w);
1819
- u(this, Et);
1820
- u(this, Lt);
1821
- this.getAll = async () => (await a(this, w)).getVariables().then((e) => i(e)).then((e) => {
1822
- const r = e;
1823
- return r.parsedData && (r.parsedData = this.makeVariablesBackwardsCompatible(r.parsedData)), r;
1824
- }), this.getById = async (t) => (await a(this, w)).getVariableById(t).then((r) => i(r)).then((r) => {
1825
- const n = r;
1826
- return n.parsedData && (n.parsedData = this.makeVariableBackwardsCompatible(n.parsedData)), n;
1827
- }), this.getByName = async (t) => (await a(this, w)).getVariableByName(t).then((r) => i(r)).then((r) => {
1890
+ u(this, Nt);
1891
+ u(this, Rt);
1892
+ this.getAll = async () => (await a(this, w)).getVariables().then((r) => i(r)).then((r) => {
1828
1893
  const n = r;
1829
- return n.parsedData && (n.parsedData = this.makeVariableBackwardsCompatible(n.parsedData)), n;
1830
- }), this.create = async (t, e) => (await a(this, w)).addVariable(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, w)).removeVariables(t).then((r) => i(r)), this.rename = async (t, e) => (await a(this, w)).setVariableName(t, e).then((n) => i(n)), this.setLabel = async (t, e) => (await a(this, w)).setVariableLabel(t, e).then((n) => i(n)), g(this, Et, async (t, e) => (await a(this, w)).setVariablePlaceholder(t, e).then((n) => i(n))), this.setPlaceholder = async (t, e) => a(this, Et).call(this, t, e), this.resetPlaceholder = async (t) => a(this, Et).call(this, t, null), g(this, Lt, async (t, e) => (await a(this, w)).setVariableHelpText(t, e).then((n) => i(n))), this.setHelpText = async (t, e) => a(this, Lt).call(this, t, e), this.resetHelpText = async (t) => a(this, Lt).call(this, t, null), this.setType = async (t, e) => (await a(this, w)).setVariableType(t, e).then((n) => i(n)), this.setListVariable = async (t, e) => (await a(this, w)).setListVariableItems(
1894
+ return n.parsedData && (n.parsedData = this.makeVariablesBackwardsCompatible(n.parsedData)), n;
1895
+ }), this.getById = async (t) => (await a(this, w)).getVariableById(t).then((n) => i(n)).then((n) => {
1896
+ const c = n;
1897
+ return c.parsedData && (c.parsedData = this.makeVariableBackwardsCompatible(c.parsedData)), c;
1898
+ }), this.getByName = async (t) => (await a(this, w)).getVariableByName(t).then((n) => i(n)).then((n) => {
1899
+ const c = n;
1900
+ return c.parsedData && (c.parsedData = this.makeVariableBackwardsCompatible(c.parsedData)), c;
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(
1831
1902
  t,
1832
- e.map((n) => JSON.stringify({ value: n }))
1833
- ).then((n) => i(n)), this.setValue = async (t, e) => (await a(this, w)).setVariableValue(t, e).then(
1834
- (n) => i(n, (h) => dr(h, { id: t }))
1835
- ), this.duplicate = async (t) => (await a(this, w)).duplicateVariable(t).then((r) => i(r)), this.groupVariables = async (t, e) => (await a(this, w)).groupVariables(t, e).then((n) => i(n)), this.ungroupVariables = async (t) => (await a(this, w)).ungroupVariable(t).then((r) => i(r)), this.move = async (t, e, r) => (await a(this, w)).moveVariable(e, r, t).then((h) => i(h)), this.moveVariables = async (t, e, r) => (await a(this, w)).moveVariables(e, r, t).then((h) => i(h)), this.setIsVisible = async (t, e) => {
1836
- const r = e ? { type: Bt.visible } : { type: Bt.invisible };
1837
- return this.setVariableVisibility(t, r);
1838
- }, this.setIsHidden = async (t, e) => {
1839
- const r = e ? { type: Bt.invisible } : { type: Bt.visible };
1840
- return this.setVariableVisibility(t, r);
1841
- }, this.setVariableVisibility = async (t, e) => (await a(this, w)).setVariableVisibility(t, JSON.stringify(e)).then((n) => i(n)), this.setLayoutsForVariableVisibility = async (t) => (await a(this, w)).setLayoutsForVariableVisibility(t ? JSON.stringify(t) : null).then((r) => i(r)), this.setIsRequired = async (t, e) => (await a(this, w)).setVariableIsRequired(t, e).then((n) => i(n)), this.setRemoveParagraphIfEmpty = async (t, e) => (await a(this, w)).setVariableRemoveParagraphIfEmpty(t, e).then((n) => i(n)), this.setVariableCharacterLimit = async (t, e) => (await a(this, w)).setVariableCharacterLimit(t, e).then((n) => i(n)), this.setIsReadonly = async (t, e) => (await a(this, w)).setVariableIsReadonly(t, e).then((n) => i(n)), this.getImageVariableConnectorId = async (t) => (await a(this, w)).getImageVariableConnectorId(t).then((r) => i(r)), this.setImageVariableConnector = async (t, e) => {
1842
- const r = await a(this, w), h = new le().makeConnectorSourceForwardsCompatible(e);
1843
- return r.setImageVariableConnector(t, JSON.stringify(h)).then((d) => i(d));
1844
- }, this.setImageVariableValueWithContext = async (t, e, r) => (await a(this, w)).setImageVariableValueWithContext(t, e, JSON.stringify(r)).then((h) => i(h)), this.removeSource = async (t) => this.setValue(t, null), this.setPrefix = async (t, e) => {
1845
- const r = { prefix: { value: e } };
1846
- return this.applyPrefixSuffixDeltaUpdate(t, r);
1847
- }, this.setSuffix = async (t, e) => {
1848
- const r = { suffix: { value: e } };
1849
- return this.applyPrefixSuffixDeltaUpdate(t, r);
1850
- }, this.setPrefixCharacterStyle = async (t, e) => {
1851
- const r = { prefixCharacterStyleId: { value: e } };
1852
- return this.applyPrefixSuffixDeltaUpdate(t, r);
1853
- }, this.setSuffixCharacterStyle = async (t, e) => {
1854
- const r = { suffixCharacterStyleId: { value: e } };
1855
- return this.applyPrefixSuffixDeltaUpdate(t, r);
1856
- }, this.setPrivateData = async (t, e) => (await a(this, w)).setVariablePrivateData(t, JSON.stringify(e)).then((n) => i(n)), this.getPrivateData = async (t) => (await a(this, w)).getVariablePrivateData(t).then((r) => i(r)), this.setAllowImageQuery = async (t, e) => (await a(this, w)).setImageVariableAllowQuery(t, e).then((n) => i(n)), this.setAllowImageUpload = async (t, e) => (await a(this, w)).setImageVariableAllowUpload(t, e).then((n) => i(n)), this.setMinImageUploadSize = async (t, e, r) => (await a(this, w)).setImageVariableUploadMinSize(t, e, r).then((h) => i(h)), this.setIsDontBreak = async (t, e) => (await a(this, w)).setVariableIsDontBreak(t, e).then((n) => i(n)), this.highlightUsages = async (t) => (await a(this, w)).highlightVariableUsages(t).then((r) => i(r)), g(this, w, o), this.number = new an(a(this, w)), this.date = new on(a(this, w));
1903
+ r.map((c) => JSON.stringify({ value: c }))
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 };
1906
+ return this.setVariableVisibility(t, n);
1907
+ }, this.setIsHidden = async (t, r) => {
1908
+ const n = r ? { type: kt.invisible } : { type: kt.visible };
1909
+ return this.setVariableVisibility(t, n);
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) => {
1911
+ const n = await a(this, w), h = new ne().makeConnectorSourceForwardsCompatible(r);
1912
+ return n.setImageVariableConnector(t, JSON.stringify(h)).then((l) => i(l));
1913
+ }, this.setImageVariableValueWithContext = async (t, r, n) => (await a(this, w)).setImageVariableValueWithContext(t, r, JSON.stringify(n)).then((h) => i(h)), this.removeSource = async (t) => this.setValue(t, null), this.setPrefix = async (t, r) => {
1914
+ const n = { prefix: { value: r } };
1915
+ return this.applyPrefixSuffixDeltaUpdate(t, n);
1916
+ }, this.setSuffix = async (t, r) => {
1917
+ const n = { suffix: { value: r } };
1918
+ return this.applyPrefixSuffixDeltaUpdate(t, n);
1919
+ }, this.setPrefixCharacterStyle = async (t, r) => {
1920
+ const n = { prefixCharacterStyleId: { value: r } };
1921
+ return this.applyPrefixSuffixDeltaUpdate(t, n);
1922
+ }, this.setSuffixCharacterStyle = async (t, r) => {
1923
+ const n = { suffixCharacterStyleId: { value: r } };
1924
+ return this.applyPrefixSuffixDeltaUpdate(t, n);
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);
1857
1926
  }
1858
1927
  makeVariablesBackwardsCompatible(o) {
1859
- return o.map((t) => this.makeVariableBackwardsCompatible(t));
1928
+ return o.map((e) => this.makeVariableBackwardsCompatible(e));
1860
1929
  }
1861
1930
  makeVariableBackwardsCompatible(o) {
1862
- return o.type !== ue.list ? o : this.makeListVariableBackwardsCompatible(o);
1931
+ return o.type !== ae.list ? o : this.makeListVariableBackwardsCompatible(o);
1863
1932
  }
1864
1933
  makeListVariableBackwardsCompatible(o) {
1865
- const t = o, e = o.items, r = o.selected, n = e.map((h) => h.value);
1866
- return t.items = n, t.selected = r == null ? void 0 : r.value, t;
1934
+ const e = o, t = o.items, r = o.selected, n = t.map((c) => c.value);
1935
+ return e.items = n, e.selected = r == null ? void 0 : r.value, e;
1867
1936
  }
1868
- async applyPrefixSuffixDeltaUpdate(o, t) {
1869
- const r = await (await a(this, w)).updateVariablePrefixSuffixProperties(o, JSON.stringify(t));
1937
+ async applyPrefixSuffixDeltaUpdate(o, e) {
1938
+ const r = await (await a(this, w)).updateVariablePrefixSuffixProperties(o, JSON.stringify(e));
1870
1939
  return i(r);
1871
1940
  }
1872
- }, w = new WeakMap(), Et = new WeakMap(), Lt = new WeakMap(), ys);
1873
- var Dt;
1874
- class hn {
1941
+ }, w = new WeakMap(), Nt = new WeakMap(), Rt = new WeakMap(), Cs);
1942
+ var xt;
1943
+ class wn {
1875
1944
  /**
1876
1945
  * @ignore
1877
1946
  */
@@ -1879,29 +1948,29 @@ class hn {
1879
1948
  /**
1880
1949
  * @ignore
1881
1950
  */
1882
- u(this, Dt);
1883
- this.get = async () => (await a(this, Dt)).getBrandKit().then((e) => i(e)), this.set = async (t) => (await a(this, Dt)).setBrandKit(JSON.stringify(t)).then((r) => i(r)), g(this, Dt, o);
1951
+ u(this, xt);
1952
+ this.get = async () => (await a(this, xt)).getBrandKit().then((t) => i(t)), this.set = async (e) => (await a(this, xt)).setBrandKit(JSON.stringify(e)).then((r) => i(r)), g(this, xt, o);
1884
1953
  }
1885
1954
  }
1886
- Dt = new WeakMap();
1887
- class cn {
1955
+ xt = new WeakMap();
1956
+ class Cn {
1888
1957
  /**
1889
1958
  * @ignore
1890
1959
  */
1891
1960
  constructor(o) {
1892
- this.onVariableListChanged = (t) => {
1893
- this.config.events.onVariableListChanged.trigger(JSON.parse(t));
1894
- }, this.onConnectorsChanged = (t) => {
1895
- this.config.events.onConnectorsChanged.trigger(JSON.parse(t));
1896
- }, this.onPageSizeChanged = (t) => {
1897
- this.config.events.onPageSizeChanged.trigger(JSON.parse(t));
1898
- }, this.onEngineEditModeChanged = (t) => {
1899
- this.config.events.onEngineEditModeChanged.trigger(JSON.parse(t));
1961
+ this.onVariableListChanged = (e) => {
1962
+ this.config.events.onVariableListChanged.trigger(JSON.parse(e));
1963
+ }, this.onConnectorsChanged = (e) => {
1964
+ this.config.events.onConnectorsChanged.trigger(JSON.parse(e));
1965
+ }, this.onPageSizeChanged = (e) => {
1966
+ this.config.events.onPageSizeChanged.trigger(JSON.parse(e));
1967
+ }, this.onEngineEditModeChanged = (e) => {
1968
+ this.config.events.onEngineEditModeChanged.trigger(JSON.parse(e));
1900
1969
  }, this.config = o;
1901
1970
  }
1902
1971
  }
1903
- var ot;
1904
- class dn {
1972
+ var ct;
1973
+ class mn {
1905
1974
  /**
1906
1975
  * @ignore
1907
1976
  */
@@ -1909,24 +1978,32 @@ class dn {
1909
1978
  /**
1910
1979
  * @ignore
1911
1980
  */
1912
- u(this, ot);
1913
- this.getAll = async () => (await a(this, ot)).getVariables().then((e) => i(e)), this.getById = async (t) => (await a(this, ot)).getVariableById(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, ot)).getVariableByName(t).then((r) => i(r)), this.setListVariable = async (t, e) => (await a(this, ot)).setListVariableItems(
1914
- t,
1915
- e.map((n) => JSON.stringify(n))
1916
- ).then((n) => i(n)), g(this, ot, o), this.image = new ln(o);
1981
+ u(this, ct);
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(
1983
+ e,
1984
+ t.map((n) => JSON.stringify(n))
1985
+ ).then((n) => i(n)), g(this, ct, o), this.image = new fn(o), this.dataSource = new Sn(o);
1917
1986
  }
1918
1987
  }
1919
- ot = new WeakMap();
1920
- var Z;
1921
- class ln {
1988
+ ct = new WeakMap();
1989
+ var Q;
1990
+ class fn {
1922
1991
  constructor(o) {
1923
- u(this, Z);
1924
- this.setAllowQuery = async (t, e) => (await a(this, Z)).setImageVariableAllowQuery(t, e).then((n) => i(n)), this.setAllowUpload = async (t, e) => (await a(this, Z)).setImageVariableAllowUpload(t, e).then((n) => i(n)), this.setMinUploadSize = async (t, e, r) => (await a(this, Z)).setImageVariableUploadMinSize(t, e, r).then((h) => i(h)), this.setConnector = async (t, e) => (await a(this, Z)).setImageVariableConnector(t, JSON.stringify(e)).then((n) => i(n)), this.setConnectorContext = async (t, e) => (await a(this, Z)).setImageVariableConnectorContext(t, JSON.stringify(e)).then((n) => i(n)), g(this, Z, o);
1992
+ u(this, Q);
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);
1925
1994
  }
1926
1995
  }
1927
- Z = new WeakMap();
1928
- var wt;
1929
- class un {
1996
+ Q = new WeakMap();
1997
+ var Xt;
1998
+ class Sn {
1999
+ constructor(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);
2002
+ }
2003
+ }
2004
+ Xt = new WeakMap();
2005
+ var Ct;
2006
+ class bn {
1930
2007
  /**
1931
2008
  * @ignore
1932
2009
  */
@@ -1934,13 +2011,13 @@ class un {
1934
2011
  /**
1935
2012
  * @ignore
1936
2013
  */
1937
- u(this, wt);
1938
- this.register = async (t) => (await a(this, wt)).registerConnector(JSON.stringify(t)).then((r) => i(r)), this.getById = async (t) => (await a(this, wt)).getConnectorById(t).then((r) => i(r)), this.getAllByType = async (t) => (await a(this, wt)).getConnectors(t).then((r) => i(r)), g(this, wt, o);
2014
+ u(this, Ct);
2015
+ this.register = async (e) => (await a(this, Ct)).registerConnector(JSON.stringify(e)).then((r) => i(r)), this.getById = async (e) => (await a(this, Ct)).getConnectorById(e).then((r) => i(r)), this.getAllByType = async (e) => (await a(this, Ct)).getConnectors(e).then((r) => i(r)), g(this, Ct, o);
1939
2016
  }
1940
2017
  }
1941
- wt = new WeakMap();
1942
- var Nt, te;
1943
- class gn {
2018
+ Ct = new WeakMap();
2019
+ var Mt, re;
2020
+ class vn {
1944
2021
  /**
1945
2022
  * @ignore
1946
2023
  */
@@ -1948,51 +2025,51 @@ class gn {
1948
2025
  /**
1949
2026
  * @ignore
1950
2027
  */
1951
- u(this, Nt);
2028
+ u(this, Mt);
1952
2029
  /**
1953
2030
  * @ignore
1954
2031
  */
1955
- u(this, te);
1956
- this.setWidth = async (t) => (await a(this, Nt)).setPageWidth(t).then((r) => i(r)), this.setHeight = async (t) => (await a(this, Nt)).setPageHeight(t).then((r) => i(r)), g(this, Nt, o), g(this, te, o);
2032
+ u(this, re);
2033
+ this.setWidth = async (e) => (await a(this, Mt)).setPageWidth(e).then((r) => i(r)), this.setHeight = async (e) => (await a(this, Mt)).setPageHeight(e).then((r) => i(r)), g(this, Mt, o), g(this, re, o);
1957
2034
  }
1958
2035
  }
1959
- Nt = new WeakMap(), te = new WeakMap();
1960
- class as {
2036
+ Mt = new WeakMap(), re = new WeakMap();
2037
+ class cs {
1961
2038
  /**
1962
2039
  * The next initiator is a split off on SDK level to tag next features
1963
2040
  * The SDK should be configured clientside and it exposes all controllers to work with in other applications
1964
2041
  * @param config The configuration object where the SDK and editor can get configured
1965
2042
  */
1966
- constructor(o, t, e) {
1967
- this.config = o, this.connection = t, this.editorAPI = e, this.subscriber = new cn(o), this.variable = new dn(this.editorAPI), this.connector = new un(this.editorAPI), this.page = new gn(this.editorAPI), this.canvas = new ne(this.editorAPI), this.brandKit = new hn(this.editorAPI);
2043
+ constructor(o, e, t) {
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);
1968
2045
  }
1969
2046
  }
1970
- var M = /* @__PURE__ */ ((s) => (s.info = "info", s.warn = "warn", s.error = "error", s))(M || {}), Is = /* @__PURE__ */ ((s) => (s.general = "general", s.connector = "connector", s.event = "event", s.engine = "engine", s))(Is || {}), Gt = /* @__PURE__ */ ((s) => (s.throw = "throw", s.log = "log", s))(Gt || {});
1971
- class Ps {
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 {
1972
2049
  constructor(o) {
1973
2050
  this.logger = o;
1974
2051
  }
1975
- createEventHandlerFn(o, t) {
2052
+ createEventHandlerFn(o, e) {
1976
2053
  return (...r) => {
1977
2054
  try {
1978
2055
  const n = o(...r);
1979
- return n instanceof Promise ? n.catch((h) => this.handleError(h, t, o.name)) : n;
2056
+ return n instanceof Promise ? n.catch((c) => this.handleError(c, e, o.name)) : n;
1980
2057
  } catch (n) {
1981
- this.handleError(n, t, o.name);
2058
+ this.handleError(n, e, o.name);
1982
2059
  }
1983
2060
  };
1984
2061
  }
1985
- handleError(o, t, e) {
2062
+ handleError(o, e, t) {
1986
2063
  var r;
1987
- if (t === Gt.log)
1988
- (r = this.logger) == null || r.call(this, M.error, Is.event, `Error in callback ${e}: ${o}`);
2064
+ if (e === Ht.log)
2065
+ (r = this.logger) == null || r.call(this, M.error, Es.event, `Error in callback ${t}: ${o}`);
1989
2066
  else
1990
2067
  throw o;
1991
2068
  }
1992
2069
  }
1993
- class is extends Ps {
1994
- constructor(o, t) {
1995
- super(t), this.handler = o;
2070
+ class hs extends Ds {
2071
+ constructor(o, e) {
2072
+ super(e), this.handler = o;
1996
2073
  }
1997
2074
  /**
1998
2075
  * Executes the defined handler with the provided arguments.
@@ -2001,14 +2078,14 @@ class is extends Ps {
2001
2078
  * @returns The result of executing the callbacks.
2002
2079
  */
2003
2080
  trigger(...o) {
2004
- const t = this.handler();
2005
- if (t)
2006
- return this.createEventHandlerFn(t, Gt.throw)(...o);
2081
+ const e = this.handler();
2082
+ if (e)
2083
+ return this.createEventHandlerFn(e, Ht.throw)(...o);
2007
2084
  }
2008
2085
  }
2009
- class C extends Ps {
2010
- constructor(o, t) {
2011
- super(t), this.legacyHandler = o, this.subscriptions = /* @__PURE__ */ new Set();
2086
+ class C extends Ds {
2087
+ constructor(o, e) {
2088
+ super(e), this.legacyHandler = o, this.subscriptions = /* @__PURE__ */ new Set();
2012
2089
  }
2013
2090
  /**
2014
2091
  * Executes the registered callbacks with provided arguments
@@ -2017,10 +2094,10 @@ class C extends Ps {
2017
2094
  * @returns The result of executing the callbacks.
2018
2095
  */
2019
2096
  trigger(...o) {
2020
- const t = this.legacyHandler();
2021
- t && this.createEventHandlerFn(t, Gt.log)(...o);
2022
- for (const e of this.subscriptions)
2023
- e(...o);
2097
+ const e = this.legacyHandler();
2098
+ e && this.createEventHandlerFn(e, Ht.log)(...o);
2099
+ for (const t of this.subscriptions)
2100
+ t(...o);
2024
2101
  }
2025
2102
  /**
2026
2103
  * Registers a callback function.
@@ -2032,14 +2109,14 @@ class C extends Ps {
2032
2109
  * - "throw": Throws an error. Keep in mind that throwing of error in one of the callback will prevent calling of others
2033
2110
  * @returns A function to unsubscribe the callback, preventing it from being invoked in the future.
2034
2111
  */
2035
- registerCallback(o, t = Gt.log) {
2036
- const e = this.createEventHandlerFn(o, t);
2037
- return this.subscriptions.add(e), () => {
2038
- this.subscriptions.delete(e);
2112
+ registerCallback(o, e = Ht.log) {
2113
+ const t = this.createEventHandlerFn(o, e);
2114
+ return this.subscriptions.add(t), () => {
2115
+ this.subscriptions.delete(t);
2039
2116
  };
2040
2117
  }
2041
2118
  }
2042
- class ge {
2119
+ class we {
2043
2120
  /**
2044
2121
  * Creates a runtime configuration object from the provided configuration object.
2045
2122
  *
@@ -2047,191 +2124,191 @@ class ge {
2047
2124
  * @returns The runtime configuration object.
2048
2125
  */
2049
2126
  static createRuntimeConfig(o) {
2050
- var e, r, n, h, d, l, p, y, b, S, v, E, O, f, T, R, A, W, j, ft, St, ye, pe, we, Ce, me, fe, Se, be, ve, Ae, Ie, Pe, Oe, Fe;
2051
- const t = { ...o };
2052
- return t.logging = {
2053
- logLevel: ((e = o.logging) == null ? void 0 : e.logLevel) || M.error,
2054
- logger: ((r = o.logging) == null ? void 0 : r.logger) || ((Rt, ee, se) => {
2055
- var Ee;
2056
- if (ge.isLoggingEnabled(Rt, ((Ee = t.logging) == null ? void 0 : Ee.logLevel) ?? M.error))
2057
- switch (Rt) {
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;
2128
+ const e = { ...o };
2129
+ return e.logging = {
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) => {
2132
+ var Ne;
2133
+ if (we.isLoggingEnabled(Bt, ((Ne = e.logging) == null ? void 0 : Ne.logLevel) ?? M.error))
2134
+ switch (Bt) {
2058
2135
  case M.error:
2059
- console.error(`[${ee}] [${Rt}] ${se}`);
2136
+ console.error(`[${ie}] [${Bt}] ${oe}`);
2060
2137
  break;
2061
2138
  case M.warn:
2062
- console.warn(`[${ee}] [${Rt}] ${se}`);
2139
+ console.warn(`[${ie}] [${Bt}] ${oe}`);
2063
2140
  break;
2064
2141
  default:
2065
- console.log(`[${ee}] [${Rt}] ${se}`);
2142
+ console.log(`[${ie}] [${Bt}] ${oe}`);
2066
2143
  }
2067
2144
  })
2068
- }, t.handlers = {
2069
- onAuthExpired: new is(() => t.onAuthExpired, (n = t.logging) == null ? void 0 : n.logger),
2070
- onViewportRequested: new is(
2071
- () => t.onViewportRequested,
2072
- (h = t.logging) == null ? void 0 : h.logger
2145
+ }, e.handlers = {
2146
+ onAuthExpired: new hs(() => e.onAuthExpired, (n = e.logging) == null ? void 0 : n.logger),
2147
+ onViewportRequested: new hs(
2148
+ () => e.onViewportRequested,
2149
+ (c = e.logging) == null ? void 0 : c.logger
2073
2150
  )
2074
- }, t.events = {
2151
+ }, e.events = {
2075
2152
  onActionsChanged: new C(
2076
- () => t.onActionsChanged,
2077
- (d = t.logging) == null ? void 0 : d.logger
2153
+ () => e.onActionsChanged,
2154
+ (h = e.logging) == null ? void 0 : h.logger
2078
2155
  ),
2079
2156
  onStateChanged: new C(
2080
- () => t.onStateChanged,
2081
- (l = t.logging) == null ? void 0 : l.logger
2157
+ () => e.onStateChanged,
2158
+ (l = e.logging) == null ? void 0 : l.logger
2082
2159
  ),
2083
2160
  onDocumentLoaded: new C(
2084
- () => t.onDocumentLoaded,
2085
- (p = t.logging) == null ? void 0 : p.logger
2161
+ () => e.onDocumentLoaded,
2162
+ (p = e.logging) == null ? void 0 : p.logger
2086
2163
  ),
2087
2164
  onSelectedFramesLayoutChanged: new C(
2088
- () => t.onSelectedFramesLayoutChanged,
2089
- (y = t.logging) == null ? void 0 : y.logger
2165
+ () => e.onSelectedFramesLayoutChanged,
2166
+ (y = e.logging) == null ? void 0 : y.logger
2090
2167
  ),
2091
2168
  onFramesLayoutChanged: new C(
2092
- () => t.onFramesLayoutChanged,
2093
- (b = t.logging) == null ? void 0 : b.logger
2169
+ () => e.onFramesLayoutChanged,
2170
+ (b = e.logging) == null ? void 0 : b.logger
2094
2171
  ),
2095
2172
  onSelectedFramesContentChanged: new C(
2096
- () => t.onSelectedFramesContentChanged,
2097
- (S = t.logging) == null ? void 0 : S.logger
2173
+ () => e.onSelectedFramesContentChanged,
2174
+ (S = e.logging) == null ? void 0 : S.logger
2098
2175
  ),
2099
2176
  onPageSelectionChanged: new C(
2100
- () => t.onPageSelectionChanged,
2101
- (v = t.logging) == null ? void 0 : v.logger
2177
+ () => e.onPageSelectionChanged,
2178
+ (v = e.logging) == null ? void 0 : v.logger
2102
2179
  ),
2103
2180
  onSelectedLayoutPropertiesChanged: new C(
2104
- () => t.onSelectedLayoutPropertiesChanged,
2105
- (E = t.logging) == null ? void 0 : E.logger
2181
+ () => e.onSelectedLayoutPropertiesChanged,
2182
+ (E = e.logging) == null ? void 0 : E.logger
2106
2183
  ),
2107
2184
  onSelectedLayoutUnitChanged: new C(
2108
- () => t.onSelectedLayoutUnitChanged,
2109
- (O = t.logging) == null ? void 0 : O.logger
2185
+ () => e.onSelectedLayoutUnitChanged,
2186
+ (O = e.logging) == null ? void 0 : O.logger
2110
2187
  ),
2111
2188
  onScrubberPositionChanged: new C(
2112
- () => t.onScrubberPositionChanged,
2113
- (f = t.logging) == null ? void 0 : f.logger
2189
+ () => e.onScrubberPositionChanged,
2190
+ (f = e.logging) == null ? void 0 : f.logger
2114
2191
  ),
2115
2192
  onFrameAnimationsChanged: new C(
2116
- () => t.onFrameAnimationsChanged,
2117
- (T = t.logging) == null ? void 0 : T.logger
2193
+ () => e.onFrameAnimationsChanged,
2194
+ (H = e.logging) == null ? void 0 : H.logger
2118
2195
  ),
2119
2196
  onVariableListChanged: new C(
2120
- () => t.onVariableListChanged,
2121
- (R = t.logging) == null ? void 0 : R.logger
2197
+ () => e.onVariableListChanged,
2198
+ (x = e.logging) == null ? void 0 : x.logger
2122
2199
  ),
2123
2200
  onSelectedToolChanged: new C(
2124
- () => t.onSelectedToolChanged,
2125
- (A = t.logging) == null ? void 0 : A.logger
2201
+ () => e.onSelectedToolChanged,
2202
+ (I = e.logging) == null ? void 0 : I.logger
2126
2203
  ),
2127
2204
  onUndoStackStateChanged: new C(
2128
- () => t.onUndoStackStateChanged,
2129
- (W = t.logging) == null ? void 0 : W.logger
2205
+ () => e.onUndoStackStateChanged,
2206
+ (W = e.logging) == null ? void 0 : W.logger
2130
2207
  ),
2131
2208
  onSelectedLayoutFramesChanged: new C(
2132
- () => t.onSelectedLayoutFramesChanged,
2133
- (j = t.logging) == null ? void 0 : j.logger
2209
+ () => e.onSelectedLayoutFramesChanged,
2210
+ (q = e.logging) == null ? void 0 : q.logger
2134
2211
  ),
2135
2212
  onSelectedTextStyleChanged: new C(
2136
- () => t.onSelectedTextStyleChanged,
2137
- (ft = t.logging) == null ? void 0 : ft.logger
2213
+ () => e.onSelectedTextStyleChanged,
2214
+ (bt = e.logging) == null ? void 0 : bt.logger
2138
2215
  ),
2139
2216
  onColorsChanged: new C(
2140
- () => t.onColorsChanged,
2141
- (St = t.logging) == null ? void 0 : St.logger
2217
+ () => e.onColorsChanged,
2218
+ (vt = e.logging) == null ? void 0 : vt.logger
2142
2219
  ),
2143
2220
  onParagraphStylesChanged: new C(
2144
- () => t.onParagraphStylesChanged,
2145
- (ye = t.logging) == null ? void 0 : ye.logger
2221
+ () => e.onParagraphStylesChanged,
2222
+ (Ce = e.logging) == null ? void 0 : Ce.logger
2146
2223
  ),
2147
2224
  onCharacterStylesChanged: new C(
2148
- () => t.onCharacterStylesChanged,
2149
- (pe = t.logging) == null ? void 0 : pe.logger
2225
+ () => e.onCharacterStylesChanged,
2226
+ (me = e.logging) == null ? void 0 : me.logger
2150
2227
  ),
2151
2228
  onFontFamiliesChanged: new C(
2152
- () => t.onFontFamiliesChanged,
2153
- (we = t.logging) == null ? void 0 : we.logger
2229
+ () => e.onFontFamiliesChanged,
2230
+ (fe = e.logging) == null ? void 0 : fe.logger
2154
2231
  ),
2155
2232
  onSelectedLayoutIdChanged: new C(
2156
- () => t.onSelectedLayoutIdChanged,
2157
- (Ce = t.logging) == null ? void 0 : Ce.logger
2233
+ () => e.onSelectedLayoutIdChanged,
2234
+ (Se = e.logging) == null ? void 0 : Se.logger
2158
2235
  ),
2159
2236
  onLayoutsChanged: new C(
2160
- () => t.onLayoutsChanged,
2161
- (me = t.logging) == null ? void 0 : me.logger
2237
+ () => e.onLayoutsChanged,
2238
+ (be = e.logging) == null ? void 0 : be.logger
2162
2239
  ),
2163
2240
  onConnectorEvent: new C(
2164
- () => t.onConnectorEvent,
2165
- (fe = t.logging) == null ? void 0 : fe.logger
2241
+ () => e.onConnectorEvent,
2242
+ (ve = e.logging) == null ? void 0 : ve.logger
2166
2243
  ),
2167
2244
  onConnectorsChanged: new C(
2168
- () => t.onConnectorsChanged,
2169
- (Se = t.logging) == null ? void 0 : Se.logger
2245
+ () => e.onConnectorsChanged,
2246
+ (Ie = e.logging) == null ? void 0 : Ie.logger
2170
2247
  ),
2171
2248
  onZoomChanged: new C(
2172
- () => t.onZoomChanged,
2173
- (be = t.logging) == null ? void 0 : be.logger
2249
+ () => e.onZoomChanged,
2250
+ (Ae = e.logging) == null ? void 0 : Ae.logger
2174
2251
  ),
2175
2252
  onSelectedPageIdChanged: new C(
2176
- () => t.onSelectedPageIdChanged,
2177
- t.logging.logger
2253
+ () => e.onSelectedPageIdChanged,
2254
+ e.logging.logger
2178
2255
  ),
2179
2256
  onPagesChanged: new C(
2180
- () => t.onPagesChanged,
2181
- t.logging.logger
2257
+ () => e.onPagesChanged,
2258
+ e.logging.logger
2182
2259
  ),
2183
2260
  onPageSnapshotInvalidated: new C(
2184
- () => t.onPageSnapshotInvalidated,
2185
- t.logging.logger
2261
+ () => e.onPageSnapshotInvalidated,
2262
+ e.logging.logger
2186
2263
  ),
2187
2264
  onPageSizeChanged: new C(
2188
- () => t.onPageSizeChanged,
2189
- (ve = t.logging) == null ? void 0 : ve.logger
2265
+ () => e.onPageSizeChanged,
2266
+ (Pe = e.logging) == null ? void 0 : Pe.logger
2190
2267
  ),
2191
2268
  onShapeCornerRadiusChanged: new C(
2192
- () => t.onShapeCornerRadiusChanged,
2193
- (Ae = t.logging) == null ? void 0 : Ae.logger
2269
+ () => e.onShapeCornerRadiusChanged,
2270
+ (Oe = e.logging) == null ? void 0 : Oe.logger
2194
2271
  ),
2195
2272
  onCropActiveFrameIdChanged: new C(
2196
- () => t.onCropActiveFrameIdChanged,
2197
- (Ie = t.logging) == null ? void 0 : Ie.logger
2273
+ () => e.onCropActiveFrameIdChanged,
2274
+ (Fe = e.logging) == null ? void 0 : Fe.logger
2198
2275
  ),
2199
2276
  onAsyncError: new C(
2200
- () => t.onAsyncError,
2201
- (Pe = t.logging) == null ? void 0 : Pe.logger
2277
+ () => e.onAsyncError,
2278
+ (Ee = e.logging) == null ? void 0 : Ee.logger
2202
2279
  ),
2203
2280
  onViewModeChanged: new C(
2204
- () => t.onViewModeChanged,
2205
- (Oe = t.logging) == null ? void 0 : Oe.logger
2281
+ () => e.onViewModeChanged,
2282
+ (De = e.logging) == null ? void 0 : De.logger
2206
2283
  ),
2207
- onBarcodeValidationChanged: new C(() => t.onBarcodeValidationChanged, (Fe = t.logging) == null ? void 0 : Fe.logger),
2284
+ onBarcodeValidationChanged: new C(() => e.onBarcodeValidationChanged, (Le = e.logging) == null ? void 0 : Le.logger),
2208
2285
  onDataSourceIdChanged: new C(
2209
- () => t.onDataSourceIdChanged,
2210
- t.logging.logger
2286
+ () => e.onDataSourceIdChanged,
2287
+ e.logging.logger
2211
2288
  ),
2212
2289
  onDocumentIssueListChanged: new C(
2213
- () => t.onDocumentIssueListChanged,
2214
- t.logging.logger
2290
+ () => e.onDocumentIssueListChanged,
2291
+ e.logging.logger
2215
2292
  ),
2216
2293
  onCustomUndoDataChanged: new C(
2217
- () => t.onCustomUndoDataChanged,
2218
- t.logging.logger
2294
+ () => e.onCustomUndoDataChanged,
2295
+ e.logging.logger
2219
2296
  ),
2220
2297
  onEngineEditModeChanged: new C(
2221
- () => t.onEngineEditModeChanged,
2222
- t.logging.logger
2298
+ () => e.onEngineEditModeChanged,
2299
+ e.logging.logger
2223
2300
  ),
2224
2301
  onBrandKitMediaChanged: new C(
2225
- () => t.onBrandKitMediaChanged,
2226
- t.logging.logger
2302
+ () => e.onBrandKitMediaChanged,
2303
+ e.logging.logger
2227
2304
  )
2228
- }, t;
2305
+ }, e;
2229
2306
  }
2230
- static isLoggingEnabled(o, t) {
2231
- return t == M.info || t == M.warn && (o == M.warn || o == M.error) ? !0 : t == M.error && o == M.error;
2307
+ static isLoggingEnabled(o, e) {
2308
+ return e == M.info || e == M.warn && (o == M.warn || o == M.error) ? !0 : e == M.error && o == M.error;
2232
2309
  }
2233
2310
  }
2234
- class yn {
2311
+ class In {
2235
2312
  /**
2236
2313
  * Checks if the given value is a `DatePropertyWrapper`.
2237
2314
  *
@@ -2260,10 +2337,10 @@ class yn {
2260
2337
  * @returns the resulting `DataItem` with parsed date properties.
2261
2338
  */
2262
2339
  mapEngineToDataItem(o) {
2263
- const t = {};
2264
- return Object.entries(o).forEach(([e, r]) => {
2265
- t[e] = this.isDatePropertyWrapper(r) ? new Date(r.value) : r;
2266
- }), t;
2340
+ const e = {};
2341
+ return Object.entries(o).forEach(([t, r]) => {
2342
+ e[t] = this.isDatePropertyWrapper(r) ? new Date(r.value) : r;
2343
+ }), e;
2267
2344
  }
2268
2345
  /**
2269
2346
  * Transforms a `DataItem` into an `EngineDataItem`.
@@ -2275,14 +2352,14 @@ class yn {
2275
2352
  * @returns the resulting `EngineDataItem` with parsed date properties.
2276
2353
  */
2277
2354
  mapDataItemToEngine(o) {
2278
- const t = {};
2279
- return Object.entries(o).forEach(([e, r]) => {
2280
- t[e] = this.isDateObject(r) ? { value: r.getTime(), type: "date" } : r;
2281
- }), t;
2355
+ const e = {};
2356
+ return Object.entries(o).forEach(([t, r]) => {
2357
+ e[t] = this.isDateObject(r) ? { value: r.getTime(), type: "date" } : r;
2358
+ }), e;
2282
2359
  }
2283
2360
  }
2284
2361
  var ht;
2285
- class pn {
2362
+ class An {
2286
2363
  /**
2287
2364
  * @ignore
2288
2365
  */
@@ -2299,61 +2376,61 @@ class pn {
2299
2376
  * @returns value for a given configuration key
2300
2377
  */
2301
2378
  async getValue(o) {
2302
- return (await a(this, ht)).getConfigValue(o).then((e) => i(e));
2379
+ return (await a(this, ht)).getConfigValue(o).then((t) => i(t));
2303
2380
  }
2304
2381
  /**
2305
2382
  * This method sets, or overrides the value for a given key. Null values are not allowed for both key and value,
2306
2383
  * using them will result in an error.
2307
2384
  * @returns
2308
2385
  */
2309
- async setValue(o, t) {
2310
- return (await a(this, ht)).setConfigValue(o, t).then((r) => i(r));
2386
+ async setValue(o, e) {
2387
+ return (await a(this, ht)).setConfigValue(o, e).then((r) => i(r));
2311
2388
  }
2312
2389
  /**
2313
2390
  * This method updates the studio options. Only defined options are updated, null values are ignored.
2314
2391
  * @returns
2315
2392
  */
2316
2393
  async updateStudioOptions(o) {
2317
- return (await a(this, ht)).updateStudioOptions(JSON.stringify(o)).then((e) => i(e));
2394
+ return (await a(this, ht)).updateStudioOptions(JSON.stringify(o)).then((t) => i(t));
2318
2395
  }
2319
2396
  /**
2320
2397
  * This method returns the engine session id. This id is unique for this engine session
2321
2398
  * @returns the engine session id
2322
2399
  */
2323
2400
  async getEngineSessionId() {
2324
- return (await a(this, ht)).getEngineSessionId().then((t) => i(t));
2401
+ return (await a(this, ht)).getEngineSessionId().then((e) => i(e));
2325
2402
  }
2326
2403
  }
2327
2404
  ht = new WeakMap();
2328
- var xt;
2329
- class os extends pn {
2405
+ var Vt;
2406
+ class ds extends An {
2330
2407
  /**
2331
2408
  * @ignore
2332
2409
  */
2333
- constructor(t, e) {
2334
- super(t);
2410
+ constructor(e, t) {
2411
+ super(e);
2335
2412
  /**
2336
2413
  * @ignore
2337
2414
  */
2338
- u(this, xt);
2339
- g(this, xt, e);
2415
+ u(this, Vt);
2416
+ g(this, Vt, t);
2340
2417
  }
2341
2418
  /**
2342
2419
  * This method returns the value for a given configuration key. If a value was not found in the configuration store,
2343
2420
  * this method returns an error. The key cannot be null.
2344
2421
  * @returns value for a given configuration key
2345
2422
  */
2346
- async getValue(t) {
2347
- const e = a(this, xt).get(t);
2348
- return e != null ? i(
2423
+ async getValue(e) {
2424
+ const t = a(this, Vt).get(e);
2425
+ return t != null ? i(
2349
2426
  {
2350
2427
  status: 200,
2351
2428
  success: !0,
2352
- parsedData: e,
2353
- data: e
2429
+ parsedData: t,
2430
+ data: t
2354
2431
  },
2355
2432
  !1
2356
- ) : super.getValue(t);
2433
+ ) : super.getValue(e);
2357
2434
  }
2358
2435
  /**
2359
2436
  * This method sets or overrides the value for a given key.
@@ -2361,14 +2438,14 @@ class os extends pn {
2361
2438
  * using them will result in an error.
2362
2439
  * @returns
2363
2440
  */
2364
- async setValue(t, e) {
2365
- const r = super.setValue(t, e);
2366
- return a(this, xt).set(t, e), r;
2441
+ async setValue(e, t) {
2442
+ const r = super.setValue(e, t);
2443
+ return a(this, Vt).set(e, t), r;
2367
2444
  }
2368
2445
  }
2369
- xt = new WeakMap();
2370
- var k;
2371
- class hs {
2446
+ Vt = new WeakMap();
2447
+ var G;
2448
+ class ls {
2372
2449
  /**
2373
2450
  * @ignore
2374
2451
  */
@@ -2376,16 +2453,16 @@ class hs {
2376
2453
  /**
2377
2454
  * @ignore
2378
2455
  */
2379
- u(this, k);
2380
- this.getAll = async () => (await a(this, k)).getGradients().then((e) => i(e)), this.getById = async (t) => (await a(this, k)).getGradientById(t).then((r) => i(r)), this.create = async () => (await a(this, k)).createGradient().then((e) => i(e)), this.duplicate = async (t) => (await a(this, k)).duplicateGradient(t).then((r) => i(r)), this.move = async (t, e) => (await a(this, k)).moveGradients(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, k)).renameGradient(t, e).then((n) => i(n)), this.update = async (t, e) => {
2381
- const r = await a(this, k), n = e;
2382
- return r.updateGradient(t, JSON.stringify(n)).then((h) => i(h));
2383
- }, this.remove = async (t) => (await a(this, k)).removeGradient(t).then((r) => i(r)), g(this, k, o);
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;
2459
+ return r.updateGradient(e, JSON.stringify(n)).then((c) => i(c));
2460
+ }, this.remove = async (e) => (await a(this, G)).removeGradient(e).then((r) => i(r)), g(this, G, o);
2384
2461
  }
2385
2462
  }
2386
- k = new WeakMap();
2387
- var Ct, Yt;
2388
- class cs {
2463
+ G = new WeakMap();
2464
+ var mt, te;
2465
+ class us {
2389
2466
  /**
2390
2467
  * @ignore
2391
2468
  */
@@ -2393,18 +2470,18 @@ class cs {
2393
2470
  /**
2394
2471
  * @ignore
2395
2472
  */
2396
- u(this, Ct);
2397
- u(this, Yt);
2398
- this.query = async (t, e, r = {}) => (await a(this, Ct)).componentConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((h) => i(h)), this.preview = async (t, e, r, n = {}) => (await a(this, Yt)).componentConnectorPreview(t, e, r, JSON.stringify(n)).then((d) => {
2399
- if (d instanceof Uint8Array)
2400
- return d;
2401
- throw typeof d == "object" && d !== null && "success" in d && !d.success && Zt(d), new Error(`Unexpected response type: ${typeof d}.`);
2402
- }), this.getConfigurationOptions = async (t) => (await a(this, Ct)).componentConnectorGetConfigurationOptions(t).then((r) => i(r)), this.getCapabilities = async (t) => (await a(this, Ct)).componentConnectorGetCapabilities(t).then((r) => i(r)), g(this, Ct, o), g(this, Yt, o);
2473
+ u(this, mt);
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) => {
2476
+ if (h instanceof Uint8Array)
2477
+ return h;
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);
2403
2480
  }
2404
2481
  }
2405
- Ct = new WeakMap(), Yt = new WeakMap();
2406
- var mt;
2407
- class ds {
2482
+ mt = new WeakMap(), te = new WeakMap();
2483
+ var ft;
2484
+ class gs {
2408
2485
  /**
2409
2486
  * @ignore
2410
2487
  */
@@ -2412,23 +2489,23 @@ class ds {
2412
2489
  /**
2413
2490
  * @ignore
2414
2491
  */
2415
- u(this, mt);
2416
- this.linkVariable = async (t, e, r) => (await a(this, mt)).linkComponentVariable(t, e, r, null).then((h) => i(h)), this.getComponentVariables = async (t) => (await a(this, mt)).getComponentVariables(t).then((r) => i(r)), this.setFitMode = async (t, e) => (await a(this, mt)).setComponentLayoutFit(t, e).then((n) => i(n)), g(this, mt, o);
2492
+ u(this, ft);
2493
+ 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);
2417
2494
  }
2418
2495
  }
2419
- mt = new WeakMap();
2420
- const wn = "studio-cdn.chiligrafx.com", Cn = `https://${wn}/editor/${ps.current}/web`;
2421
- let tt;
2422
- class ta {
2496
+ ft = new WeakMap();
2497
+ const Pn = "studio-cdn.chiligrafx.com", On = `https://${Pn}/editor/${ms.current}/web`;
2498
+ let et;
2499
+ class ha {
2423
2500
  /**
2424
2501
  * The SDK should be configured clientside and it exposes all controllers to work with in other applications
2425
2502
  * @param config The configuration object where the SDK and editor can get configured
2426
2503
  */
2427
2504
  constructor(o) {
2428
- this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new yn(), this.loadEditor = () => {
2429
- var t;
2430
- Xs(
2431
- this.config.editorLink || Cn,
2505
+ this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new In(), this.loadEditor = () => {
2506
+ var e;
2507
+ rr(
2508
+ this.config.editorLink || On,
2432
2509
  {
2433
2510
  onActionsChanged: this.subscriber.onActionsChanged,
2434
2511
  onStateChanged: this.subscriber.onStateChanged,
@@ -2443,9 +2520,9 @@ class ta {
2443
2520
  onPageSelectionChanged: this.subscriber.onPageSelectionChanged,
2444
2521
  onScrubberPositionChanged: this.subscriber.onAnimationPlaybackChanged,
2445
2522
  onFrameAnimationsChanged: this.subscriber.onAnimationChanged,
2446
- onVariableListChanged: (e) => {
2523
+ onVariableListChanged: (t) => {
2447
2524
  var r;
2448
- (r = this.enabledNextSubscribers) != null && r.onVariableListChanged ? this.next.subscriber.onVariableListChanged(e) : this.subscriber.onVariableListChanged(e);
2525
+ (r = this.enabledNextSubscribers) != null && r.onVariableListChanged ? this.next.subscriber.onVariableListChanged(t) : this.subscriber.onVariableListChanged(t);
2449
2526
  },
2450
2527
  onSelectedToolChanged: this.subscriber.onSelectedToolChanged,
2451
2528
  onUndoStateChanged: this.subscriber.onUndoStateChanged,
@@ -2458,17 +2535,17 @@ class ta {
2458
2535
  onSelectedLayoutIdChanged: this.subscriber.onSelectedLayoutIdChanged,
2459
2536
  onLayoutsChanged: this.subscriber.onLayoutsChanged,
2460
2537
  onConnectorEvent: this.subscriber.onConnectorEvent,
2461
- onConnectorsChanged: (e) => {
2538
+ onConnectorsChanged: (t) => {
2462
2539
  var r;
2463
- (r = this.enabledNextSubscribers) != null && r.onConnectorsChanged ? this.next.subscriber.onConnectorsChanged(e) : this.subscriber.onConnectorsChanged(e);
2540
+ (r = this.enabledNextSubscribers) != null && r.onConnectorsChanged ? this.next.subscriber.onConnectorsChanged(t) : this.subscriber.onConnectorsChanged(t);
2464
2541
  },
2465
2542
  onZoomChanged: this.subscriber.onZoomChanged,
2466
2543
  onSelectedPageIdChanged: this.subscriber.onSelectedPageIdChanged,
2467
2544
  onPagesChanged: this.subscriber.onPagesChanged,
2468
2545
  onPageSnapshotInvalidated: this.subscriber.onPageSnapshotInvalidated,
2469
- onPageSizeChanged: (e) => {
2546
+ onPageSizeChanged: (t) => {
2470
2547
  var r;
2471
- (r = this.enabledNextSubscribers) != null && r.onPageSizeChanged ? this.next.subscriber.onPageSizeChanged(e) : this.subscriber.onPageSizeChanged(e);
2548
+ (r = this.enabledNextSubscribers) != null && r.onPageSizeChanged ? this.next.subscriber.onPageSizeChanged(t) : this.subscriber.onPageSizeChanged(t);
2472
2549
  },
2473
2550
  onShapeCornerRadiusChanged: this.subscriber.onShapeCornerRadiusChanged,
2474
2551
  onCropActiveFrameIdChanged: this.subscriber.onCropActiveFrameIdChanged,
@@ -2484,126 +2561,128 @@ class ta {
2484
2561
  this.setConnection,
2485
2562
  this.config.editorId,
2486
2563
  this.config.studioStyling,
2487
- (e) => {
2564
+ (t) => {
2488
2565
  var r, n;
2489
- (n = (r = this.config).onConnectionError) == null || n.call(r, e);
2566
+ (n = (r = this.config).onConnectionError) == null || n.call(r, t);
2490
2567
  }
2491
- ), this.editorAPI = tt == null ? void 0 : tt.promise.then((e) => e), this.action = new xe(this.editorAPI), this.layout = new Ye(this.editorAPI), this.frame = new je(this.editorAPI), this.barcode = new Me(this.editorAPI), this.component = new ds(this.editorAPI), this.animation = new Re(this.editorAPI), this.document = new $e(this.editorAPI), this.configuration = new os(this.editorAPI, this.localConfig), this.utils = new rs(this.editorAPI, this.localConfig), this.tool = new es(this.editorAPI), this.page = new Qe(this.editorAPI), this.debug = new He(this.editorAPI), this.undoManager = new ss(this.editorAPI, this), this.textSelection = new ts(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.gradientStyle = new hs(this.editorAPI), this.paragraphStyle = new Xe(this.editorAPI), this.characterStyle = new Be(this.editorAPI), this.mediaConnector = new Ze(this.editorAPI), this.fontConnector = new Ke(this.editorAPI), this.componentConnector = new cs(this.editorAPI), this.dataConnector = new _e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new Te(this.editorAPI, this.dataItemMappingTools), this.connector = new Ge(this.editorAPI, this.localConfig), this.variable = new ns(this.editorAPI), this.font = new We(this.editorAPI), this.experiment = new ze(this.editorAPI), this.canvas = new ne(this.editorAPI), this.shape = new he(this.editorAPI), this.colorConversion = new Ue(this.editorAPI), this.info = new qe(), this.clipboard = new Je(this.editorAPI), this.brandKit = new Ve(this.editorAPI, this), this.next = new as(this.config, this.connection, this.editorAPI), this.configuration.setValue(X.GraFxStudioSdkVersion, ws.version), this.configuration.setValue(
2492
- X.GraFxStudioDocumentType,
2493
- this.config.documentType || Ss.template
2494
- ), this.configuration.updateStudioOptions(this.config.studioOptions || er), this.configuration.setValue(
2495
- X.QueryCallCacheEnabled,
2496
- ((t = this.config.enableQueryCallCache) == null ? void 0 : t.toString()) || "false"
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(
2569
+ tt.GraFxStudioDocumentType,
2570
+ this.config.documentType || Is.template
2571
+ ), this.configuration.updateStudioOptions(this.config.studioOptions || ar), this.configuration.setValue(
2572
+ tt.QueryCallCacheEnabled,
2573
+ ((e = this.config.enableQueryCallCache) == null ? void 0 : e.toString()) || "false"
2497
2574
  );
2498
- }, this.setConnection = (t) => {
2499
- tt = t;
2500
- }, this.config = ge.createRuntimeConfig(o), this.connection = tt, this.editorAPI = tt == null ? void 0 : tt.promise.then((t) => t), this.action = new xe(this.editorAPI), this.layout = new Ye(this.editorAPI), this.frame = new je(this.editorAPI), this.shape = new he(this.editorAPI), this.barcode = new Me(this.editorAPI), this.component = new ds(this.editorAPI), this.undoManager = new ss(this.editorAPI, this), this.connector = new Ge(this.editorAPI, this.localConfig), this.mediaConnector = new Ze(this.editorAPI), this.fontConnector = new Ke(this.editorAPI), this.componentConnector = new cs(this.editorAPI), this.dataConnector = new _e(this.editorAPI, this.dataItemMappingTools), this.dataSource = new Te(this.editorAPI, this.dataItemMappingTools), this.animation = new Re(this.editorAPI), this.document = new $e(this.editorAPI), this.configuration = new os(this.editorAPI, this.localConfig), this.variable = new ns(this.editorAPI), this.utils = new rs(this.editorAPI, this.localConfig), this.subscriber = new Xr(this.config, this.localConfig), this.tool = new es(this.editorAPI), this.page = new Qe(this.editorAPI), this.debug = new He(this.editorAPI), this.textSelection = new ts(this.editorAPI), this.colorStyle = new ke(this.editorAPI), this.gradientStyle = new hs(this.editorAPI), this.paragraphStyle = new Xe(this.editorAPI), this.characterStyle = new Be(this.editorAPI), this.font = new We(this.editorAPI), this.experiment = new ze(this.editorAPI), this.canvas = new ne(this.editorAPI), this.colorConversion = new Ue(this.editorAPI), this.info = new qe(), this.clipboard = new Je(this.editorAPI), this.next = new as(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new Ve(this.editorAPI, this);
2575
+ }, this.setConnection = (e) => {
2576
+ et = e;
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);
2501
2578
  }
2502
2579
  }
2503
- var mn = /* @__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))(mn || {}), fn = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(fn || {}), Sn = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(Sn || {}), bn = /* @__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))(bn || {}), vn = /* @__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))(vn || {}), An = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(An || {}), In = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(In || {}), Pn = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(Pn || {}), On = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(On || {}), Fn = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.highest = "highest", s.medium = "medium", s))(Fn || {}), En = /* @__PURE__ */ ((s) => (s.BOLD = "Bold", s.ITALIC = "Italic", s.REGULAR = "Regular", s))(En || {}), Ln = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(Ln || {}), Dn = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(Dn || {}), Nn = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(Nn || {}), xn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(xn || {}), Rn = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(Rn || {}), Mn = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(Mn || {}), Vn = /* @__PURE__ */ ((s) => (s.PARAGRAPH = "paragraphStyleId", s.CHARACTER = "characterStyleId", s.FONT_FAMILY = "fontKey", s.FONT_STYLE = "fontStyle", s.FONT_SIZE = "fontSize", s.LETTER_SPACING = "letterSpacing", s.LINE_HEIGHT = "lineHeight", s.TEXT_ALIGN = "textAlign", s.VERTICAL_ALIGN = "verticalAlign", s.TYPOGRAPHIC_CASE = "typographicCase", s.SUB_SUPER_SCRIPT = "subSuperScript", s.UNDERLINE = "underline", s.LINE_THROUGH = "lineThrough", s.FILL_COLOR = "fillColor", s.COLOR = "color", s.FILL_COLOR_APPLIED = "fillColorApplied", s.STROKE_COLOR = "strokeColor", s.STROKE_COLOR_APPLIED = "strokeColorApplied", s.DROP_SHADOW_COLOR = "dropShadowColor", s.BLEND_MODE = "blendMode", s.OPACITY = "opacity", s.TRACKING_RIGHT = "trackingRight", s.BASELINE_SHIFT = "baselineShiftValue", s.STROKE_WIDTH = "strokeWidth", s.MARKED_LIST_TYPE = "markedListType", s.MARKED_LIST_GROUP = "markedListGroup", s.MARKED_LIST_LEVEL = "markedListLevel", s))(Vn || {}), Bn = /* @__PURE__ */ ((s) => (s.arabic = "arabic", s.romanUpperCase = "romanUpperCase", s.romanLowerCase = "romanLowerCase", s.latinUpperCase = "latinUpperCase", s.latinLowerCase = "latinLowerCase", s))(Bn || {}), Jn = /* @__PURE__ */ ((s) => (s.none = "none", s.dash = "dash", s.dot = "dot", s.colon = "colon", s.roundBracket = "roundBracket", s))(Jn || {}), Un = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(Un || {}), kn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(kn || {}), Gn = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(Gn || {}), _n = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(_n || {}), Os = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Os || {});
2504
- const ea = /* @__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({
2505
2582
  __proto__: null,
2506
- ConnectorRegistrationSource: Os
2583
+ ConnectorRegistrationSource: Ls
2507
2584
  }, Symbol.toStringTag, { value: "Module" }));
2508
2585
  export {
2509
- rr as ActionAsyncError,
2510
- Un as ActionEditorEvent,
2511
- Ln as Alignment,
2512
- Wr as AnchorTargetEdgeType,
2513
- Kr as AnchorTargetType,
2514
- Er as AuthCredentialsTypeEnum,
2515
- Lr as AuthRefreshTypeEnum,
2516
- Mr as AutoGrowDirection,
2517
- bt as BarcodeCharacterSet,
2518
- Mt as BarcodeErrorCorrectionLevel,
2519
- Jr as BarcodeSourceTypeEnum,
2520
- H as BarcodeType,
2521
- ur as BarcodeValidationResult,
2522
- vn as BasicAnimationsEmphasisStyles,
2523
- _r as BlendMode,
2524
- Nn as Case,
2525
- ae as ColorType,
2526
- fr as ColorUsageType,
2527
- Rr as ComponentFitEnum,
2528
- Fn as ComponentPreviewType,
2529
- Vr as ComponentSourceTypeEnum,
2530
- Ir as ConnectorConfigContextType,
2531
- Ar as ConnectorConfigValueType,
2532
- Fr as ConnectorEventType,
2533
- ar as ConnectorHttpError,
2534
- $n as ConnectorMapping,
2535
- Or as ConnectorMappingDirection,
2536
- Pr as ConnectorMappingSource,
2537
- Vt as ConnectorRegistrationSource,
2538
- oe as ConnectorStateType,
2539
- Sr as ConnectorType,
2540
- wr as ConstraintMode,
2541
- Gn as CornerRadiusType,
2542
- vs as CropType,
2543
- nr as DataRowAsyncError,
2544
- qr as Day,
2545
- ie as DeprecatedMediaConnectorDownloadType,
2546
- Ut as DeprecatedMediaType,
2547
- sr as DocumentIssueTypeEnum,
2548
- Ss as DocumentType,
2549
- sn as DownloadFormats,
2550
- Sn as EaseTypes,
2551
- _n as EngineEditModeType,
2552
- de as EnvironmentType,
2553
- Tr as FitMode,
2554
- Hr as FitModePosition,
2555
- kr as FlowDirection,
2556
- On as FontPreviewFormat,
2557
- En as FontWeights,
2558
- Yn as FrameAnchorTarget,
2559
- zr as FrameAnchorType,
2560
- tr as FrameEditingMode,
2561
- tn as FramePropertyNames,
2562
- Br as FrameTypeEnum,
2563
- In as GradientType,
2564
- Pn as GradientUsageType,
2565
- Kn as GrafxTokenAuthCredentials,
2566
- Xt as ImageSourceTypeEnum,
2567
- pr as LayoutIntent,
2568
- en as LayoutPropertyNames,
2569
- yr as LayoutType,
2570
- Yr as Locale,
2571
- Rn as MarkedListType,
2572
- gr as MeasurementUnit,
2573
- As as MediaDownloadIntent,
2574
- ce as MediaDownloadType,
2575
- kt as MediaType,
2576
- ea as Next,
2577
- Bn as NumberListFormat,
2578
- Jn as NumberListSeparatorSymbol,
2579
- qn as PageAnchorTarget,
2580
- Q as PositionEnum,
2581
- Wn as RefreshedAuthCredendentials,
2582
- xn as Scripting,
2583
- Mn as SelectedTextStyleSections,
2584
- Vn as SelectedTextStyles,
2585
- fn as ShakeDirections,
2586
- kn as ShapeType,
2587
- mn as SlideDirections,
2588
- br as SortBy,
2589
- vr as SortOrder,
2590
- Nr as SupportedAuth,
2591
- Ur as TextDirection,
2592
- Dn as TextPosition,
2593
- $ as ToolType,
2594
- bn as TweenTypes,
2595
- $r as UpdateZIndexMethod,
2596
- Dr as UploadAssetValidationError,
2597
- bs as UploadAssetValidationErrorType,
2598
- ue as VariableType,
2599
- ir as VariableValueConstrainsViolationError,
2600
- Qr as VariableVisibilityOperator,
2601
- Zr as VariableVisibilityTargetType,
2602
- Bt as VariableVisibilityType,
2603
- Gr as VerticalAlign,
2604
- An as ViewMode,
2605
- X as WellKnownConfigurationKeys,
2606
- ta as default,
2607
- zn as grafxMediaConnectorRegistration
2586
+ or as ActionAsyncError,
2587
+ jn as ActionEditorEvent,
2588
+ Un as Alignment,
2589
+ Zr as AnchorTargetEdgeType,
2590
+ Yr as AnchorTargetType,
2591
+ Rr as AuthCredentialsTypeEnum,
2592
+ xr as AuthRefreshTypeEnum,
2593
+ Ur as AutoGrowDirection,
2594
+ It as BarcodeCharacterSet,
2595
+ Jt as BarcodeErrorCorrectionLevel,
2596
+ Tr as BarcodeSourceTypeEnum,
2597
+ $ as BarcodeType,
2598
+ wr as BarcodeValidationResult,
2599
+ Nn as BasicAnimationsEmphasisStyles,
2600
+ zr as BlendMode,
2601
+ Gn as Case,
2602
+ de as ColorType,
2603
+ Ir as ColorUsageType,
2604
+ Jr as ComponentFitEnum,
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,
2620
+ Ps as CropType,
2621
+ cr as DataRowAsyncError,
2622
+ rn as DataSourceVariableDisplayOptionsType,
2623
+ Fs as DataSourceVariableSourceType,
2624
+ Xr as Day,
2625
+ le as DeprecatedMediaConnectorDownloadType,
2626
+ Tt as DeprecatedMediaType,
2627
+ ir as DocumentIssueTypeEnum,
2628
+ Is as DocumentType,
2629
+ cn as DownloadFormats,
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,
2641
+ an as FramePropertyNames,
2642
+ Gr as FrameTypeEnum,
2643
+ xn as GradientType,
2644
+ Mn as GradientUsageType,
2645
+ ea as GrafxTokenAuthCredentials,
2646
+ se as ImageSourceTypeEnum,
2647
+ fr as LayoutIntent,
2648
+ on as LayoutPropertyNames,
2649
+ mr as LayoutType,
2650
+ tn as Locale,
2651
+ _n as MarkedListType,
2652
+ Cr as MeasurementUnit,
2653
+ Os as MediaDownloadIntent,
2654
+ ye as MediaDownloadType,
2655
+ _t as MediaType,
2656
+ da as Next,
2657
+ zn as NumberListFormat,
2658
+ Kn as NumberListSeparatorSymbol,
2659
+ na as PageAnchorTarget,
2660
+ X as PositionEnum,
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,
2672
+ z as ToolType,
2673
+ Ln as TweenTypes,
2674
+ Wr as UpdateZIndexMethod,
2675
+ Mr as UploadAssetValidationError,
2676
+ As as UploadAssetValidationErrorType,
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,
2684
+ tt as WellKnownConfigurationKeys,
2685
+ ha as default,
2686
+ ta as grafxMediaConnectorRegistration
2608
2687
  };
2609
2688
  //# sourceMappingURL=main.es.js.map