@chili-publish/studio-sdk 1.35.0 → 1.37.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.
@@ -3,9 +3,9 @@ var Me = (s) => {
3
3
  };
4
4
  var xe = (s, o, t) => o.has(s) || Me("Cannot " + t);
5
5
  var a = (s, o, t) => (xe(s, o, "read from private field"), t ? t.call(s) : o.get(s)), u = (s, o, t) => o.has(s) ? Me("Cannot add the same private member more than once") : o instanceof WeakSet ? o.add(s) : o.set(s, t), g = (s, o, t, e) => (xe(s, o, "write to private field"), e ? e.call(s, t) : o.set(s, t), t);
6
- const Ms = "2.18.latest", Ss = {
6
+ const Ms = "2.20.latest", Ss = {
7
7
  current: Ms
8
- }, xs = "1.35.0", bs = {
8
+ }, xs = "1.37.0", bs = {
9
9
  version: xs
10
10
  };
11
11
  var z;
@@ -63,7 +63,7 @@ const Rs = (s, o) => {
63
63
  return Object.keys(s).forEach((t) => o[t] = s[t]), o;
64
64
  }, _s = (s, o, t) => {
65
65
  const { localName: e, local: r, remote: n, originForSending: c, originForReceiving: h } = s;
66
- let l = !1;
66
+ let d = !1;
67
67
  const p = (y) => {
68
68
  if (y.source !== n || y.data.penpal !== z.Call)
69
69
  return;
@@ -74,7 +74,7 @@ const Rs = (s, o) => {
74
74
  const v = y.data, { methodName: f, args: b, id: A } = v;
75
75
  t(`${e}: Received ${f}() call`);
76
76
  const I = (S) => (M) => {
77
- if (t(`${e}: Sending ${f}() reply`), l) {
77
+ if (t(`${e}: Sending ${f}() reply`), d) {
78
78
  t(`${e}: Unable to send ${f}() reply due to destroyed connection`);
79
79
  return;
80
80
  }
@@ -104,7 +104,7 @@ const Rs = (s, o) => {
104
104
  new Promise((S) => S(o[f].apply(o, b))).then(I(ut.Fulfilled), I(ut.Rejected));
105
105
  };
106
106
  return r.addEventListener(dt.Message, p), () => {
107
- l = !0, r.removeEventListener(dt.Message, p);
107
+ d = !0, r.removeEventListener(dt.Message, p);
108
108
  };
109
109
  };
110
110
  let Hs = 0;
@@ -126,7 +126,7 @@ const Ts = () => ++Hs, vs = ".", Is = (s) => s ? s.split(vs) : [], $s = (s) => s
126
126
  zs(o, t, s[t]);
127
127
  return o;
128
128
  }, js = (s, o, t, e, r) => {
129
- const { localName: n, local: c, remote: h, originForSending: l, originForReceiving: p } = o;
129
+ const { localName: n, local: c, remote: h, originForSending: d, originForReceiving: p } = o;
130
130
  let y = !1;
131
131
  r(`${n}: Connecting call sender`);
132
132
  const v = (b) => (...A) => {
@@ -161,7 +161,7 @@ const Ts = () => ++Hs, vs = ".", Is = (s) => s ? s.split(vs) : [], $s = (s) => s
161
161
  methodName: b,
162
162
  args: A
163
163
  };
164
- h.postMessage(W, l);
164
+ h.postMessage(W, d);
165
165
  });
166
166
  }, f = t.reduce((b, A) => (b[A] = v(A), b), {});
167
167
  return Object.assign(s, Ws(f)), () => {
@@ -169,7 +169,7 @@ const Ts = () => ++Hs, vs = ".", Is = (s) => s ? s.split(vs) : [], $s = (s) => s
169
169
  };
170
170
  }, qs = (s, o, t, e, r) => {
171
171
  const { destroy: n, onDestroy: c } = e;
172
- let h, l;
172
+ let h, d;
173
173
  const p = {};
174
174
  return (y) => {
175
175
  if (y.origin !== o) {
@@ -184,10 +184,10 @@ const Ts = () => ++Hs, vs = ".", Is = (s) => s ? s.split(vs) : [], $s = (s) => s
184
184
  originForSending: t,
185
185
  originForReceiving: o
186
186
  };
187
- h && h(), h = _s(v, s, r), c(h), l && l.forEach((b) => {
187
+ h && h(), h = _s(v, s, r), c(h), d && d.forEach((b) => {
188
188
  delete p[b];
189
- }), l = y.data.methodNames;
190
- const f = js(p, v, l, n, r);
189
+ }), d = y.data.methodNames;
190
+ const f = js(p, v, d, n, r);
191
191
  return c(f), p;
192
192
  };
193
193
  }, Ys = (s, o, t, e) => (r) => {
@@ -223,7 +223,7 @@ const Ts = () => ++Hs, vs = ".", Is = (s) => s ? s.split(vs) : [], $s = (s) => s
223
223
  }
224
224
  }, er = (s) => {
225
225
  let { iframe: o, methods: t = {}, childOrigin: e, timeout: r, debug: n = !1 } = s;
226
- const c = Vs(n), h = Rs("Parent", c), { onDestroy: l, destroy: p } = h;
226
+ const c = Vs(n), h = Rs("Parent", c), { onDestroy: d, destroy: p } = h;
227
227
  e || (tr(o), e = Us(o.src));
228
228
  const y = e === "null" ? "*" : e, v = As(t), f = Ys(c, v, e, y), b = qs(v, e, y, h, c);
229
229
  return {
@@ -241,7 +241,7 @@ const Ts = () => ++Hs, vs = ".", Is = (s) => s ? s.split(vs) : [], $s = (s) => s
241
241
  }
242
242
  }
243
243
  };
244
- window.addEventListener(dt.Message, E), c("Parent: Awaiting handshake"), Qs(o, h), l((P) => {
244
+ window.addEventListener(dt.Message, E), c("Parent: Awaiting handshake"), Qs(o, h), d((P) => {
245
245
  window.removeEventListener(dt.Message, E), P && S(P);
246
246
  });
247
247
  }),
@@ -329,7 +329,7 @@ const nr = (s, o, t, e = "chili-editor", r, n) => {
329
329
  Qt && window.removeEventListener("message", Qt);
330
330
  const c = `#${e}`, h = document.createElement("iframe");
331
331
  h.setAttribute("srcdoc", " "), h.setAttribute("title", "Chili-Editor"), h.setAttribute("style", "width: 100%; height: 100%;"), h.setAttribute("frameBorder", "0"), h.setAttribute("referrerpolicy", "origin");
332
- const l = () => {
332
+ const d = () => {
333
333
  const p = document.querySelector(c);
334
334
  if (p) {
335
335
  p == null || p.appendChild(h), h.addEventListener(
@@ -347,8 +347,8 @@ const nr = (s, o, t, e = "chili-editor", r, n) => {
347
347
  }
348
348
  }
349
349
  };
350
- document.readyState === "complete" || document.readyState === "interactive" ? l() : document.addEventListener("DOMContentLoaded", () => {
351
- l();
350
+ document.readyState === "complete" || document.readyState === "interactive" ? d() : document.addEventListener("DOMContentLoaded", () => {
351
+ d();
352
352
  }), Qt = (p) => {
353
353
  var y;
354
354
  if (p.source === h.contentWindow && ((y = p.data) == null ? void 0 : y.type) === "iframe-error") {
@@ -413,6 +413,7 @@ const ir = {
413
413
  debugPanel: { enabled: !1 },
414
414
  ellipse: { enabled: !1 },
415
415
  hand: { enabled: !1 },
416
+ temporaryHand: { enabled: !1 },
416
417
  image: { enabled: !1 },
417
418
  polygon: { enabled: !1 },
418
419
  rectangle: { enabled: !1 },
@@ -536,7 +537,7 @@ class Ge {
536
537
  const r = { drawStartStopChars: e };
537
538
  return this.setBarcodeProperties(t, r);
538
539
  }, this.getBarcodeConfigationOptions = (t) => {
539
- let e = !0, r = !0, n = !0, c, h, l = !1, p = !1, y = !1;
540
+ let e = !0, r = !0, n = !0, c, h, d = !1, p = !1, y = !1;
540
541
  switch (t) {
541
542
  case $.qr:
542
543
  c = [vt.iso8859_1, vt.utf8], h = [
@@ -546,7 +547,7 @@ class Ge {
546
547
  Rt.high
547
548
  ];
548
549
  case $.dataMatrix:
549
- e = !1, r = !1, n = !1, l = !0;
550
+ e = !1, r = !1, n = !1, d = !0;
550
551
  break;
551
552
  case $.ean13:
552
553
  e = !1, p = !0;
@@ -576,7 +577,7 @@ class Ge {
576
577
  allowedCharacterSets: c,
577
578
  allowedErrorCorrectionLevels: h,
578
579
  allowToggleText: e,
579
- quietZoneAlwaysCombined: l,
580
+ quietZoneAlwaysCombined: d,
580
581
  allowToggleLightMarginIndicator: p,
581
582
  allowToggleDrawStartAndEndChar: y
582
583
  };
@@ -585,9 +586,9 @@ class Ge {
585
586
  }
586
587
  k = new WeakMap();
587
588
  var T = /* @__PURE__ */ ((s) => (s.rgb = "rgb", s.hex = "hex", s.cmyk = "cmyk", s.spotCmyk = "spotCmyk", s.spotRgb = "spotRgb", s.spotHex = "spotHex", s))(T || {}), q = /* @__PURE__ */ ((s) => (s.rgb = "rgb", s.hex = "hex", s.cmyk = "cmyk", s.gray = "gray", s.hsl = "hsl", s.spot = "spot", s.spotCMYK = "spotCMYK", s.spotRGB = "spotRGB", s.spotHEX = "spotHEX", s))(q || {}), ae = /* @__PURE__ */ ((s) => (s.local = "local", s.brandKit = "brandKit", s.stylekit = "brandKit", s))(ae || {});
588
- const Be = (s) => s.type === T.hex, ie = (s) => s.type === T.spotHex, pr = (s) => s.type === T.spotRgb, wr = (s) => s.type === T.spotCmyk, Cr = (s) => pr(s) || wr(s) || ie(s), mr = (s) => {
589
+ const Be = (s) => s.type === T.hex, ie = (s) => s.type === T.spotHex, pr = (s) => s.type === T.spotRgb, Cr = (s) => s.type === T.spotCmyk, wr = (s) => pr(s) || Cr(s) || ie(s), mr = (s) => {
589
590
  const o = fr(s.type);
590
- return Cr(s) ? {
591
+ return wr(s) ? {
591
592
  ...ie(s) && { value: s.displayValue },
592
593
  ...!ie(s) && { ...s.displayValue },
593
594
  spotName: s.value,
@@ -603,7 +604,7 @@ const Be = (s) => s.type === T.hex, ie = (s) => s.type === T.spotHex, pr = (s) =
603
604
  brandKitFontFamilyGuid: n,
604
605
  fontStyleId: c,
605
606
  textStrokeColorGuid: h,
606
- textStrokeColorApplied: l,
607
+ textStrokeColorApplied: d,
607
608
  textStrokeWidth: p,
608
609
  ...y
609
610
  } = s;
@@ -625,11 +626,11 @@ const Be = (s) => s.type === T.hex, ie = (s) => s.type === T.spotHex, pr = (s) =
625
626
  id: t.id,
626
627
  color: t.color,
627
628
  type: ae.brandKit,
628
- isApplied: l || !1
629
+ isApplied: d || !1
629
630
  }
630
631
  },
631
632
  strokeColorApplied: {
632
- value: l || !1
633
+ value: d || !1
633
634
  },
634
635
  strokeWidth: {
635
636
  value: p != null ? p.toString() : p
@@ -673,10 +674,10 @@ class _e {
673
674
  */
674
675
  u(this, D);
675
676
  this.getId = async () => (await a(this, D)).getBrandKitId().then((r) => i(r)), this.getVersion = async () => (await a(this, D)).getBrandKitVersion().then((r) => i(r)), this.getName = async () => (await a(this, D)).getBrandKitName().then((r) => i(r)), this.rename = async (e) => (await a(this, D)).renameBrandKit(e).then((n) => i(n)), this.updateIdAndVersion = async (e, r) => (await a(this, D)).updateBrandKitIdAndVersion(e, r).then((c) => i(c)), this.get = async () => {
676
- const e = await this.getId(), r = await this.getVersion(), n = await this.getName(), c = this.colorStyleController.getAll(), h = this.gradientStyleController.getAll(), l = this.fontController.getFontFamilies(), p = this.characterStyleController.getAll(), y = this.paragraphStyleController.getAll(), v = this.getAllMedia(), [f, b, A, I, S, M] = await Promise.all([
677
+ const e = await this.getId(), r = await this.getVersion(), n = await this.getName(), c = this.colorStyleController.getAll(), h = this.gradientStyleController.getAll(), d = this.fontController.getFontFamilies(), p = this.characterStyleController.getAll(), y = this.paragraphStyleController.getAll(), v = this.getAllMedia(), [f, b, A, I, S, M] = await Promise.all([
677
678
  c,
678
679
  h,
679
- l,
680
+ d,
680
681
  y,
681
682
  p,
682
683
  v
@@ -701,13 +702,13 @@ class _e {
701
702
  };
702
703
  return i(P);
703
704
  }, this.getAllMedia = async () => (await a(this, D)).getAllBrandKitMedia().then((r) => i(r)), this.addMedia = async (e, r, n) => (await a(this, D)).addBrandKitMedia(e, r, n).then((h) => i(h)), this.updateMedia = async (e, r, n) => (await a(this, D)).updateBrandKitMedia(e, r, n).then((h) => i(h)), this.renameMedia = async (e, r) => (await a(this, D)).renameBrandKitMedia(e, r).then((c) => i(c)), this.removeMedia = async (e) => (await a(this, D)).removeBrandKitMedia(e).then((n) => i(n)), this.remove = async () => {
704
- 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 || [], f = (await this.fontController.getFontFamilies()).parsedData || [], A = (await this.getAllMedia()).parsedData || [];
705
+ const r = (await this.colorStyleController.getAll()).parsedData || [], c = (await this.gradientStyleController.getAll()).parsedData || [], d = (await this.paragraphStyleController.getAll()).parsedData || [], y = (await this.characterStyleController.getAll()).parsedData || [], f = (await this.fontController.getFontFamilies()).parsedData || [], A = (await this.getAllMedia()).parsedData || [];
705
706
  await this.undoManagerController.record("brandKit.remove", async (I) => {
706
707
  for (const S of r)
707
708
  await I.colorStyle.remove(S.id);
708
709
  for (const S of c)
709
710
  await I.gradientStyle.remove(S.id);
710
- for (const S of l)
711
+ for (const S of d)
711
712
  await I.paragraphStyle.remove(S.id);
712
713
  for (const S of y)
713
714
  await I.characterStyle.remove(S.id);
@@ -735,14 +736,14 @@ class _e {
735
736
  return await this.undoManagerController.record("brandKit.set", async (n) => {
736
737
  const c = await this.setColors(e, n);
737
738
  await this.setGradients(e, n);
738
- const h = await this.setFonts(e, n), { parsedData: l = [] } = await n.colorStyle.getAll(), { parsedData: p = [] } = await n.gradientStyle.getAll(), { parsedData: y } = await n.font.getFontFamilies();
739
+ const h = await this.setFonts(e, n), { parsedData: d = [] } = await n.colorStyle.getAll(), { parsedData: p = [] } = await n.gradientStyle.getAll(), { parsedData: y } = await n.font.getFontFamilies();
739
740
  await this.setParagraphStyles(e, n, {
740
- localColors: l,
741
+ localColors: d,
741
742
  localFonts: y,
742
743
  localColorGuidMap: c,
743
744
  localFontGuidMap: h
744
745
  }), await this.setCharacterStyles(e, n, {
745
- localColors: l,
746
+ localColors: d,
746
747
  localFonts: y,
747
748
  localColorGuidMap: c,
748
749
  localFontGuidMap: h
@@ -755,7 +756,7 @@ class _e {
755
756
  id: e.id,
756
757
  version: e.brandKit.lastModifiedDate,
757
758
  name: e.brandKit.name,
758
- colors: l || [],
759
+ colors: d || [],
759
760
  gradients: p || [],
760
761
  fonts: y || [],
761
762
  paragraphStyles: v || [],
@@ -796,31 +797,31 @@ class _e {
796
797
  }
797
798
  async setParagraphStyles(o, t, e) {
798
799
  const { localColors: r, localFonts: n, localColorGuidMap: c, localFontGuidMap: h } = e;
799
- for (const l of o.brandKit.paragraphStyles || []) {
800
- const p = c.get(l.brandKitColorGuid), y = c.get(l.textStrokeColorGuid), v = h.get(l.brandKitFontFamilyGuid), f = ke(n, v, l.fontStyleId);
800
+ for (const d of o.brandKit.paragraphStyles || []) {
801
+ const p = c.get(d.brandKitColorGuid), y = c.get(d.textStrokeColorGuid), v = h.get(d.brandKitFontFamilyGuid), f = ke(n, v, d.fontStyleId);
801
802
  if (!v || !f)
802
- throw new Error(`Paragraph style could not be created with an empty font family: ${l.name}`);
803
+ throw new Error(`Paragraph style could not be created with an empty font family: ${d.name}`);
803
804
  const b = Xt(r, p), A = Xt(r, y);
804
- if (!b) throw new Error(`Paragraph style could not be created with an empty color: ${l.name}`);
805
+ if (!b) throw new Error(`Paragraph style could not be created with an empty color: ${d.name}`);
805
806
  const { parsedData: I } = await t.paragraphStyle.create(), S = Ue(
806
- l,
807
+ d,
807
808
  b,
808
809
  A,
809
810
  `${f}`
810
811
  );
811
- await t.paragraphStyle.rename(I, l.name), await t.paragraphStyle.update(I, S);
812
+ await t.paragraphStyle.rename(I, d.name), await t.paragraphStyle.update(I, S);
812
813
  }
813
814
  }
814
815
  async setCharacterStyles(o, t, e) {
815
816
  const { localColors: r, localFonts: n, localColorGuidMap: c, localFontGuidMap: h } = e;
816
- for (const l of o.brandKit.characterStyles || []) {
817
- const p = l.brandKitColorGuid ? c.get(l.brandKitColorGuid) : void 0, y = l.textStrokeColorGuid ? c.get(l.textStrokeColorGuid) : void 0, v = l.brandKitFontFamilyGuid ? h.get(l.brandKitFontFamilyGuid) : void 0, f = Xt(r, p), b = Xt(r, y), A = ke(n, v, l.fontStyleId), { parsedData: I } = await t.characterStyle.create(), S = Ue(
818
- l,
817
+ for (const d of o.brandKit.characterStyles || []) {
818
+ const p = d.brandKitColorGuid ? c.get(d.brandKitColorGuid) : void 0, y = d.textStrokeColorGuid ? c.get(d.textStrokeColorGuid) : void 0, v = d.brandKitFontFamilyGuid ? h.get(d.brandKitFontFamilyGuid) : void 0, f = Xt(r, p), b = Xt(r, y), A = ke(n, v, d.fontStyleId), { parsedData: I } = await t.characterStyle.create(), S = Ue(
819
+ d,
819
820
  f,
820
821
  b,
821
822
  A
822
823
  );
823
- await t.characterStyle.rename(I, l.name), await t.characterStyle.update(I, S);
824
+ await t.characterStyle.rename(I, d.name), await t.characterStyle.update(I, S);
824
825
  }
825
826
  }
826
827
  async setMedia(o) {
@@ -839,7 +840,7 @@ class oe {
839
840
  * @ignore
840
841
  */
841
842
  u(this, st);
842
- this.zoomToPage = async (t, e, r, n, c) => (t !== void 0 && console.warn("id has no effect and will be deprecated in the future"), (await a(this, st)).zoomToPage(e, r, n, c).then((l) => i(l))), this.getZoomPercentage = async () => (await a(this, st)).getZoomPercentage().then((e) => i(e)), this.setZoomPercentage = async (t) => (await a(this, st)).setZoomPercentage(t).then((r) => i(r)), this.setViewMode = async (t) => (await a(this, st)).setViewMode(t).then((r) => i(r)), g(this, st, o);
843
+ this.zoomToPage = async (t, e, r, n, c) => (t !== void 0 && console.warn("id has no effect and will be deprecated in the future"), (await a(this, st)).zoomToPage(e, r, n, c).then((d) => i(d))), this.getZoomPercentage = async () => (await a(this, st)).getZoomPercentage().then((e) => i(e)), this.setZoomPercentage = async (t) => (await a(this, st)).setZoomPercentage(t).then((r) => i(r)), this.setViewMode = async (t) => (await a(this, st)).setViewMode(t).then((r) => i(r)), g(this, st, o);
843
844
  }
844
845
  }
845
846
  st = new WeakMap();
@@ -968,8 +969,8 @@ class ye {
968
969
  }, this.isSourceMigrated = (o) => "id" in o;
969
970
  }
970
971
  }
971
- var J, It, gt, Cs;
972
- let ze = (Cs = class {
972
+ var J, It, gt, ws;
973
+ let ze = (ws = class {
973
974
  /**
974
975
  * @ignore
975
976
  */
@@ -1005,20 +1006,20 @@ let ze = (Cs = class {
1005
1006
  let h = 0;
1006
1007
  try {
1007
1008
  for (; h * c < n; ) {
1008
- const l = await this.getState(e);
1009
- if (l.success && l.parsedData && (l.parsedData.type === he.running || l.parsedData.type === he.ready))
1009
+ const d = await this.getState(e);
1010
+ if (d.success && d.parsedData && (d.parsedData.type === he.running || d.parsedData.type === he.ready))
1010
1011
  return i(
1011
1012
  { data: null, success: !0, error: void 0, status: 0, parsedData: void 0 },
1012
1013
  !1
1013
1014
  );
1014
1015
  await new Promise((p) => setTimeout(p, c)), h++;
1015
1016
  }
1016
- } catch (l) {
1017
+ } catch (d) {
1017
1018
  return i(
1018
1019
  {
1019
1020
  data: null,
1020
1021
  success: !1,
1021
- error: `Error while getting connector state ${l}`,
1022
+ error: `Error while getting connector state ${d}`,
1022
1023
  status: 5e4,
1023
1024
  parsedData: void 0
1024
1025
  },
@@ -1040,7 +1041,7 @@ let ze = (Cs = class {
1040
1041
  (y) => !r.some(
1041
1042
  (v) => v.name === y.name && v.direction === y.direction
1042
1043
  )
1043
- )) ?? [], l = r.filter((y) => y.name !== "" && y.value !== ""), p = [...h, ...l];
1044
+ )) ?? [], d = r.filter((y) => y.name !== "" && y.value !== ""), p = [...h, ...d];
1044
1045
  await n.setMappings(p);
1045
1046
  }), g(this, J, o), g(this, It, t), g(this, gt, new ye());
1046
1047
  }
@@ -1055,7 +1056,7 @@ let ze = (Cs = class {
1055
1056
  }
1056
1057
  );
1057
1058
  }
1058
- }, J = new WeakMap(), It = new WeakMap(), gt = new WeakMap(), Cs);
1059
+ }, J = new WeakMap(), It = new WeakMap(), gt = new WeakMap(), ws);
1059
1060
  var yt, pt;
1060
1061
  class Nr {
1061
1062
  /**
@@ -1091,13 +1092,13 @@ class We {
1091
1092
  u(this, nt);
1092
1093
  u(this, Ht);
1093
1094
  this.getPage = async (e, r, n = {}) => (await a(this, nt)).dataConnectorGetPage(e, JSON.stringify(r), JSON.stringify(n)).then((h) => i(h)).then((h) => {
1094
- const l = { ...h, parsedData: null };
1095
- return h.parsedData && (l.parsedData = {
1095
+ const d = { ...h, parsedData: null };
1096
+ return h.parsedData && (d.parsedData = {
1096
1097
  data: h.parsedData.data.map(
1097
1098
  (p) => a(this, Ht).mapEngineToDataItem(p)
1098
1099
  ),
1099
1100
  continuationToken: h.parsedData.continuationToken
1100
- }), l;
1101
+ }), d;
1101
1102
  }), this.getModel = async (e, r = {}) => (await a(this, nt)).dataConnectorGetModel(e, JSON.stringify(r)).then((c) => i(c)), this.getConfigurationOptions = async (e) => (await a(this, nt)).dataConnectorGetConfigurationOptions(e).then((n) => i(n)), this.getCapabilities = async (e) => (await a(this, nt)).dataConnectorGetCapabilities(e).then((n) => i(n)), g(this, nt, o), g(this, Ht, t);
1102
1103
  }
1103
1104
  }
@@ -1134,7 +1135,7 @@ class qe {
1134
1135
  }
1135
1136
  }
1136
1137
  it = new WeakMap();
1137
- var wt;
1138
+ var Ct;
1138
1139
  class Ye {
1139
1140
  /**
1140
1141
  * @ignore
@@ -1143,17 +1144,17 @@ class Ye {
1143
1144
  /**
1144
1145
  * @ignore
1145
1146
  */
1146
- u(this, wt);
1147
- this.getCurrentState = async () => (await a(this, wt)).getCurrentDocumentState().then((e) => i(e)), this.load = async (t, e = { keepConnectors: !1 }) => {
1148
- const r = await a(this, wt), n = typeof t != "string" ? JSON.stringify(t) : t;
1147
+ u(this, Ct);
1148
+ this.getCurrentState = async () => (await a(this, Ct)).getCurrentDocumentState().then((e) => i(e)), this.load = async (t, e = { keepConnectors: !1 }) => {
1149
+ const r = await a(this, Ct), n = typeof t != "string" ? JSON.stringify(t) : t;
1149
1150
  return r.loadDocument(n, JSON.stringify(e)).then((c) => i(c));
1150
1151
  }, this.createAndLoad = async (t) => {
1151
- const e = await a(this, wt), r = JSON.stringify(t);
1152
+ const e = await a(this, Ct), r = JSON.stringify(t);
1152
1153
  return e.createAndLoadDocument(r).then((n) => i(n));
1153
- }, g(this, wt, o);
1154
+ }, g(this, Ct, o);
1154
1155
  }
1155
1156
  }
1156
- wt = new WeakMap();
1157
+ Ct = new WeakMap();
1157
1158
  var Mr = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(Mr || {}), te = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(te || {}), xr = /* @__PURE__ */ ((s) => (s.connector = "connector", s))(xr || {}), Rr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s.component = "component", s))(Rr || {}), Vr = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Vr || {}), Jr = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Jr || {}), Gr = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(Gr || {}), Br = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))(Br || {}), Ur = /* @__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))(Ur || {}), kr = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(kr || {}), _r = /* @__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))(_r || {}), Hr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(Hr || {}), Tr = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))(Tr || {}), $r = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))($r || {}), Kr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(Kr || {});
1158
1159
  class Wn {
1159
1160
  constructor() {
@@ -1261,7 +1262,7 @@ class le {
1261
1262
  }
1262
1263
  }
1263
1264
  Pt = new WeakMap();
1264
- var d;
1265
+ var l;
1265
1266
  class ts {
1266
1267
  /**
1267
1268
  * @ignore
@@ -1270,9 +1271,9 @@ class ts {
1270
1271
  /**
1271
1272
  * @ignore
1272
1273
  */
1273
- u(this, d);
1274
- this.getAll = async () => (await a(this, d)).getFrames().then((e) => i(e)), this.getSelected = async () => (await a(this, d)).getSelectedFrames().then((e) => i(e)), this.getAllByPageId = async (t) => (await a(this, d)).getFramesByPageId(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, d)).getFrameByName(t).then((r) => i(r)), this.getById = async (t) => (await a(this, d)).getFrameById(t).then((r) => i(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, d)).getFramePropertiesOnSelectedLayout().then((e) => i(e)), this.getLayoutProperties = async (t, e) => (await a(this, d)).getFramePropertiesByFrameId(t, e).then((n) => i(n)), this.getAllLayoutProperties = async (t) => (await a(this, d)).getFramesProperties(t).then((r) => i(r)), this.resetTransformation = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => i(r)), this.resetSize = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => i(r)), this.select = async (t) => (await a(this, d)).selectFrames([t]).then((r) => i(r)), this.selectMultiple = async (t) => (await a(this, d)).selectFrames(t).then((r) => i(r)), this.deselectAll = async () => (await a(this, d)).deselectFrames().then((e) => i(e)), this.reorderFrames = async (t, e) => (await a(this, d)).reorderFrames(t, e).then((n) => i(n)), this.setZIndex = async (t, e) => (await a(this, d)).setFrameZIndex(t, e).then((n) => i(n)), this.setHeight = async (t, e) => (await a(this, d)).setFrameHeight(t, e).then((n) => i(n)), this.setRotation = async (t, e) => (await a(this, d)).setFrameRotation(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, d)).setFrameWidth(t, e).then((n) => i(n)), this.setX = async (t, e) => (await a(this, d)).setFrameX(t, e).then((n) => i(n)), this.setY = async (t, e) => (await a(this, d)).setFrameY(t, e).then((n) => i(n)), this.setOpacity = async (t, e) => (await a(this, d)).setFrameOpacity(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, d)).renameFrame(t, e).then((n) => i(n)), this.reset = async (t) => (await a(this, d)).resetFrame(t).then((r) => i(r)), this.resetX = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => i(r)), this.resetY = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => i(r)), this.resetRotation = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => i(r)), this.resetHeight = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => i(r)), this.resetImageFrameFitMode = async (t) => (await a(this, d)).resetImageFrameFitMode(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, d)).setFrameIsVisible(t, e).then((n) => i(n)), this.setIsVisible = async (t, e) => (await a(this, d)).setFrameIsVisible(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, d)).removeFrames([t]).then((r) => i(r)), this.removeFrames = async (t) => (await a(this, d)).removeFrames(t).then((r) => i(r)), this.create = async (t, e, r, n, c) => (await a(this, d)).addFrame(t, e, r, n, c).then((l) => i(l)), this.createShapeFrame = async (t, e, r, n, c) => (await a(this, d)).addFrame(t, e, r, n, c).then((l) => i(l)), this.createBarcodeFrame = async (t, e) => (await a(this, d)).addBarcodeFrame(t, e == null ? void 0 : e.x, e == null ? void 0 : e.y).then((n) => i(n)), this.createComponentFrame = async (t, e, r, n, c) => (await a(this, d)).addComponentFrame(e, r, n, c, JSON.stringify(t)).then((l) => i(l)), this.duplicateFrames = async (t) => (await a(this, d)).duplicateFrames(t).then((r) => i(r)), this.updateImageSource = async (t, e) => {
1275
- const r = await a(this, d), n = e !== null ? JSON.stringify(e) : null;
1274
+ u(this, l);
1275
+ this.getAll = async () => (await a(this, l)).getFrames().then((e) => i(e)), this.getSelected = async () => (await a(this, l)).getSelectedFrames().then((e) => i(e)), this.getAllByPageId = async (t) => (await a(this, l)).getFramesByPageId(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, l)).getFrameByName(t).then((r) => i(r)), this.getById = async (t) => (await a(this, l)).getFrameById(t).then((r) => i(r)), this.getPropertiesOnSelectedLayout = async () => (await a(this, l)).getFramePropertiesOnSelectedLayout().then((e) => i(e)), this.getLayoutProperties = async (t, e) => (await a(this, l)).getFramePropertiesByFrameId(t, e).then((n) => i(n)), this.getAllLayoutProperties = async (t) => (await a(this, l)).getFramesProperties(t).then((r) => i(r)), this.resetTransformation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetSize = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.select = async (t) => (await a(this, l)).selectFrames([t]).then((r) => i(r)), this.selectMultiple = async (t) => (await a(this, l)).selectFrames(t).then((r) => i(r)), this.deselectAll = async () => (await a(this, l)).deselectFrames().then((e) => i(e)), this.reorderFrames = async (t, e) => (await a(this, l)).reorderFrames(t, e).then((n) => i(n)), this.setZIndex = async (t, e) => (await a(this, l)).setFrameZIndex(t, e).then((n) => i(n)), this.setHeight = async (t, e) => (await a(this, l)).setFrameHeight(t, e).then((n) => i(n)), this.setRotation = async (t, e) => (await a(this, l)).setFrameRotation(t, e).then((n) => i(n)), this.setWidth = async (t, e) => (await a(this, l)).setFrameWidth(t, e).then((n) => i(n)), this.setX = async (t, e) => (await a(this, l)).setFrameX(t, e).then((n) => i(n)), this.setY = async (t, e) => (await a(this, l)).setFrameY(t, e).then((n) => i(n)), this.setOpacity = async (t, e) => (await a(this, l)).setFrameOpacity(t, e).then((n) => i(n)), this.rename = async (t, e) => (await a(this, l)).renameFrame(t, e).then((n) => i(n)), this.reset = async (t) => (await a(this, l)).resetFrame(t).then((r) => i(r)), this.resetX = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetY = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetRotation = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetWidth = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetHeight = async (t) => (await a(this, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetImageFrameFitMode = async (t) => (await a(this, l)).resetImageFrameFitMode(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.setIsVisible = async (t, e) => (await a(this, l)).setFrameIsVisible(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, l)).removeFrames([t]).then((r) => i(r)), this.removeFrames = async (t) => (await a(this, l)).removeFrames(t).then((r) => i(r)), this.create = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((d) => i(d)), this.createShapeFrame = async (t, e, r, n, c) => (await a(this, l)).addFrame(t, e, r, n, c).then((d) => i(d)), this.createBarcodeFrame = async (t, e) => (await a(this, l)).addBarcodeFrame(t, e == null ? void 0 : e.x, e == null ? void 0 : e.y).then((n) => i(n)), this.createComponentFrame = async (t, e, r, n, c) => (await a(this, l)).addComponentFrame(e, r, n, c, JSON.stringify(t)).then((d) => i(d)), this.duplicateFrames = async (t) => (await a(this, l)).duplicateFrames(t).then((r) => i(r)), this.updateImageSource = async (t, e) => {
1276
+ const r = await a(this, l), n = e !== null ? JSON.stringify(e) : null;
1276
1277
  return r.setImageSource(t, n).then((c) => i(c));
1277
1278
  }, this.removeImageSource = async (t) => this.updateImageSource(t, null), this.setImageFromConnector = async (t, e, r) => {
1278
1279
  const n = {
@@ -1284,34 +1285,34 @@ class ts {
1284
1285
  }, this.setImageFromUrl = async (t, e) => {
1285
1286
  const r = { url: e, type: te.url };
1286
1287
  return this.updateImageSource(t, r);
1287
- }, this.setImageFrameFitMode = async (t, e) => (await a(this, d)).setImageFrameFitMode(t, e).then((n) => i(n)), this.setImageFrameFitModePosition = async (t, e) => (await a(this, d)).setImageFrameFitModePosition(t, e).then((n) => i(n)), this.setFrameConstrainProportions = async (t, e) => (console.error("setFrameConstrainProportions is not supported anymore"), i({
1288
+ }, this.setImageFrameFitMode = async (t, e) => (await a(this, l)).setImageFrameFitMode(t, e).then((n) => i(n)), this.setImageFrameFitModePosition = async (t, e) => (await a(this, l)).setImageFrameFitModePosition(t, e).then((n) => i(n)), this.setFrameConstrainProportions = async (t, e) => (console.error("setFrameConstrainProportions is not supported anymore"), i({
1288
1289
  success: !1,
1289
1290
  status: 0,
1290
1291
  error: "setFrameConstrainProportions is not supported anymore",
1291
1292
  parsedData: null
1292
- })), this.setVerticalAlign = async (t, e) => (await a(this, d)).setVerticalAlignment(t, e).then((n) => i(n)), this.setMinCopyfitting = async (t, e) => (await a(this, d)).setMinCopyfitting(t, e).then((n) => i(n)), this.setMaxCopyfitting = async (t, e) => (await a(this, d)).setMaxCopyfitting(t, e).then((n) => i(n)), this.setEnableCopyfitting = async (t, e) => (await a(this, d)).setEnableCopyfitting(t, e).then((n) => i(n)), this.resetMinCopyfitting = async (t) => (await a(this, d)).resetMinCopyfitting(t).then((r) => i(r)), this.resetMaxCopyfitting = async (t) => (await a(this, d)).resetMaxCopyfitting(t).then((r) => i(r)), this.resetEnableCopyfitting = async (t) => (await a(this, d)).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, d)).setFrameBlendMode(t, e).then((n) => i(n)), this.enterCropMode = async (t, e = Es.frameCrop) => (await a(this, d)).enterCropMode(t, e).then((n) => i(n)), this.applyCropMode = async () => (await a(this, d)).applyCropMode().then((e) => i(e)), this.exitCropMode = async () => (await a(this, d)).cancelCropMode().then((e) => i(e)), this.enterSubjectMode = async (t) => (await a(this, d)).enterSubjectMode(t).then((r) => i(r)), this.applySubjectMode = async () => (await a(this, d)).applySubjectMode().then((e) => i(e)), this.exitSubjectMode = async () => (await a(this, d)).cancelSubjectMode().then((e) => i(e)), this.enterGradientMode = async (t) => (await a(this, d)).enterGradientMode(t).then((r) => i(r)), this.applyGradientMode = async () => (await a(this, d)).applyGradientMode().then((e) => i(e)), this.cancelGradientMode = async () => (await a(this, d)).cancelGradientMode().then((e) => i(e)), this.resetCropMode = async (t) => (console.error("resetCropMode is not supported anymore"), i({
1293
+ })), this.setVerticalAlign = async (t, e) => (await a(this, l)).setVerticalAlignment(t, e).then((n) => i(n)), this.setNumberOfColumns = async (t, e) => (await a(this, l)).setNumberOfColumns(t, e).then((n) => i(n)), this.setColumnGap = async (t, e) => (await a(this, l)).setColumnGap(t, e).then((n) => i(n)), this.setMinCopyfitting = async (t, e) => (await a(this, l)).setMinCopyfitting(t, e).then((n) => i(n)), this.setMaxCopyfitting = async (t, e) => (await a(this, l)).setMaxCopyfitting(t, e).then((n) => i(n)), this.setEnableCopyfitting = async (t, e) => (await a(this, l)).setEnableCopyfitting(t, e).then((n) => i(n)), this.resetMinCopyfitting = async (t) => (await a(this, l)).resetMinCopyfitting(t).then((r) => i(r)), this.resetMaxCopyfitting = async (t) => (await a(this, l)).resetMaxCopyfitting(t).then((r) => i(r)), this.resetEnableCopyfitting = async (t) => (await a(this, l)).resetEnableCopyfitting(t).then((r) => i(r)), this.setShapeFrameEnableFill = async (t, e) => this.shapeController.setEnableFill(t, e), this.setShapeFrameFillColor = async (t, e) => this.shapeController.setFillColor(t, e), this.setShapeFrameEnableStroke = async (t, e) => this.shapeController.setEnableStroke(t, e), this.setShapeFrameStrokeColor = async (t, e) => this.shapeController.setStrokeColor(t, e), this.setShapeFrameStrokeWeight = async (t, e) => this.shapeController.setStrokeWeight(t, e), this.setBlendMode = async (t, e) => (await a(this, l)).setFrameBlendMode(t, e).then((n) => i(n)), this.enterCropMode = async (t, e = Es.frameCrop) => (await a(this, l)).enterCropMode(t, e).then((n) => i(n)), this.applyCropMode = async () => (await a(this, l)).applyCropMode().then((e) => i(e)), this.exitCropMode = async () => (await a(this, l)).cancelCropMode().then((e) => i(e)), this.enterSubjectMode = async (t) => (await a(this, l)).enterSubjectMode(t).then((r) => i(r)), this.applySubjectMode = async () => (await a(this, l)).applySubjectMode().then((e) => i(e)), this.exitSubjectMode = async () => (await a(this, l)).cancelSubjectMode().then((e) => i(e)), this.enterGradientMode = async (t) => (await a(this, l)).enterGradientMode(t).then((r) => i(r)), this.applyGradientMode = async () => (await a(this, l)).applyGradientMode().then((e) => i(e)), this.cancelGradientMode = async () => (await a(this, l)).cancelGradientMode().then((e) => i(e)), this.resetCropMode = async (t) => (console.error("resetCropMode is not supported anymore"), i({
1293
1294
  success: !1,
1294
1295
  status: 0,
1295
1296
  error: "resetCropMode is not supported anymore",
1296
1297
  parsedData: null
1297
1298
  })), this.setEnableAutoGrow = async (t, e) => {
1298
1299
  const r = { enabled: { value: e } };
1299
- return (await a(this, d)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1300
+ return (await a(this, l)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1300
1301
  }, this.setAutoGrowMinWidth = async (t, e) => {
1301
1302
  const r = { minWidth: { value: e } };
1302
- return (await a(this, d)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1303
+ return (await a(this, l)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1303
1304
  }, this.setAutoGrowMaxWidth = async (t, e) => {
1304
1305
  const r = { maxWidth: { value: e } };
1305
- return (await a(this, d)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1306
+ return (await a(this, l)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1306
1307
  }, this.setAutoGrowMinHeight = async (t, e) => {
1307
1308
  const r = { minHeight: { value: e } };
1308
- return (await a(this, d)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1309
+ return (await a(this, l)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1309
1310
  }, this.setAutoGrowMaxHeight = async (t, e) => {
1310
1311
  const r = { maxHeight: { value: e } };
1311
- return (await a(this, d)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1312
+ return (await a(this, l)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1312
1313
  }, this.setAutoGrowDirections = async (t, e) => {
1313
1314
  const r = { directions: { value: e } };
1314
- return (await a(this, d)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1315
+ return (await a(this, l)).updateAutoGrowSettings(t, JSON.stringify(r)).then((c) => i(c));
1315
1316
  }, this.resetAutoGrowSettingsEnabled = async (t) => (console.error("resetAutoGrowSettingsEnabled is not supported anymore"), i({
1316
1317
  success: !1,
1317
1318
  status: 0,
@@ -1349,19 +1350,19 @@ class ts {
1349
1350
  parsedData: null
1350
1351
  })), this.setShadowEnabled = async (t, e) => {
1351
1352
  const r = { enabled: { value: e } };
1352
- return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1353
+ return (await a(this, l)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1353
1354
  }, this.setShadowDistance = async (t, e) => {
1354
1355
  const r = { distance: { value: e } };
1355
- return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1356
+ return (await a(this, l)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1356
1357
  }, this.setShadowAngleDegrees = async (t, e) => {
1357
1358
  const r = { angleDegrees: { value: e } };
1358
- return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1359
+ return (await a(this, l)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1359
1360
  }, this.setShadowBlurRadius = async (t, e) => {
1360
1361
  const r = { blurRadius: { value: e } };
1361
- return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1362
+ return (await a(this, l)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1362
1363
  }, this.setShadowColor = async (t, e) => {
1363
1364
  const r = { color: { value: e } };
1364
- return (await a(this, d)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1365
+ return (await a(this, l)).updateFrameShadowSettings(t, JSON.stringify(r)).then((c) => i(c));
1365
1366
  }, this.setAnchor = async (t, e, r, n, c) => {
1366
1367
  const h = {
1367
1368
  horizontal: e,
@@ -1369,20 +1370,20 @@ class ts {
1369
1370
  target: n,
1370
1371
  endTarget: c
1371
1372
  };
1372
- return (await a(this, d)).setAnchorProperties(t, JSON.stringify(h)).then((p) => i(p));
1373
- }, this.setVerticalAnchor = async (t, e, r, n) => this.setAnchor(t, !1, e, r, n), this.setHorizontalAnchor = async (t, e, r, n) => this.setAnchor(t, !0, e, r, n), this.resetAnchoring = async (t) => (await a(this, d)).resetFrameTransformation(t).then((r) => i(r)), this.resetVisibility = async (t) => (await a(this, d)).setFrameIsVisible(t, null).then((r) => i(r)), this.getConfiguration = async (t) => (await a(this, d)).getFrameConfiguration(t).then((r) => i(r)), this.resetAssetCropOverride = async (t) => (await a(this, d)).resetAssetCropOverride(t).then((r) => i(r)), this.resetAllAssetCropOverrides = async (t) => (await a(this, d)).resetAllAssetCropOverrides(t).then((r) => i(r)), this.setGradientApplied = async (t, e) => {
1373
+ return (await a(this, l)).setAnchorProperties(t, JSON.stringify(h)).then((p) => i(p));
1374
+ }, 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, l)).resetFrameTransformation(t).then((r) => i(r)), this.resetVisibility = async (t) => (await a(this, l)).setFrameIsVisible(t, null).then((r) => i(r)), this.getConfiguration = async (t) => (await a(this, l)).getFrameConfiguration(t).then((r) => i(r)), this.resetAssetCropOverride = async (t) => (await a(this, l)).resetAssetCropOverride(t).then((r) => i(r)), this.resetAllAssetCropOverrides = async (t) => (await a(this, l)).resetAllAssetCropOverrides(t).then((r) => i(r)), this.setGradientApplied = async (t, e) => {
1374
1375
  const r = { isApplied: e };
1375
- return (await a(this, d)).updateFrameGradientSettings(t, JSON.stringify(r)).then((c) => i(c));
1376
+ return (await a(this, l)).updateFrameGradientSettings(t, JSON.stringify(r)).then((c) => i(c));
1376
1377
  }, this.setLocalGradient = async (t, e) => {
1377
1378
  const r = { gradient: e };
1378
- return (await a(this, d)).updateFrameGradientSettings(t, JSON.stringify(r)).then((c) => i(c));
1379
+ return (await a(this, l)).updateFrameGradientSettings(t, JSON.stringify(r)).then((c) => i(c));
1379
1380
  }, this.setBrandKitGradient = async (t, e) => {
1380
1381
  const r = { id: e };
1381
- return (await a(this, d)).updateFrameGradientSettings(t, JSON.stringify(r)).then((c) => i(c));
1382
- }, g(this, d, o), this.shapeController = new le(a(this, d)), this.constraints = new zr(a(this, d));
1382
+ return (await a(this, l)).updateFrameGradientSettings(t, JSON.stringify(r)).then((c) => i(c));
1383
+ }, g(this, l, o), this.shapeController = new le(a(this, l)), this.constraints = new zr(a(this, l));
1383
1384
  }
1384
1385
  }
1385
- d = new WeakMap();
1386
+ l = new WeakMap();
1386
1387
  var _;
1387
1388
  class zr {
1388
1389
  /**
@@ -1405,9 +1406,12 @@ class zr {
1405
1406
  }, this.setRotation = async (t, e) => {
1406
1407
  const r = { rotationAllowed: { value: e } };
1407
1408
  return (await a(this, _)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
1408
- }, this.setResize = async (t, e) => {
1409
- const r = { resizeAllowed: { value: e } };
1410
- return (await a(this, _)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
1409
+ }, this.setResize = async (t, e, r) => {
1410
+ const n = {
1411
+ resizeAllowed: { value: e },
1412
+ ...r !== void 0 && { proportionLocked: { value: r } }
1413
+ };
1414
+ return (await a(this, _)).updateFrameConstraints(t, JSON.stringify(n)).then((h) => i(h));
1411
1415
  }, this.setCrop = async (t, e) => {
1412
1416
  const r = { cropAllowed: { value: e } };
1413
1417
  return (await a(this, _)).updateFrameConstraints(t, JSON.stringify(r)).then((c) => i(c));
@@ -1475,10 +1479,10 @@ class rs {
1475
1479
  c,
1476
1480
  Os.web,
1477
1481
  JSON.stringify(n)
1478
- ).then((l) => {
1479
- if (l instanceof Uint8Array)
1480
- return l;
1481
- throw typeof l == "object" && l !== null && "success" in l && !l.success && ge(l), new Error(`Unexpected response type: ${typeof l}.`);
1482
+ ).then((d) => {
1483
+ if (d instanceof Uint8Array)
1484
+ return d;
1485
+ throw typeof d == "object" && d !== null && "success" in d && !d.success && ge(d), new Error(`Unexpected response type: ${typeof d}.`);
1482
1486
  });
1483
1487
  }, 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) => {
1484
1488
  if (t === Bt.file) return Ut.file;
@@ -1593,7 +1597,7 @@ let Xr = class {
1593
1597
  return c.type === pe.list ? {
1594
1598
  ...c,
1595
1599
  items: c.items.map(
1596
- (l) => l.value
1600
+ (d) => d.value
1597
1601
  ),
1598
1602
  selected: (h = c.selected) == null ? void 0 : h.value
1599
1603
  } : c;
@@ -1678,7 +1682,7 @@ let Xr = class {
1678
1682
  }, this.config = o, this.localConfig = t;
1679
1683
  }
1680
1684
  };
1681
- var Ct;
1685
+ var wt;
1682
1686
  class is {
1683
1687
  /**
1684
1688
  * @ignore
@@ -1687,11 +1691,11 @@ class is {
1687
1691
  /**
1688
1692
  * @ignore
1689
1693
  */
1690
- u(this, Ct);
1691
- this.set = async (t) => (await a(this, Ct)).selectedTextStyleDeltaUpdate(JSON.stringify(t)).then((r) => i(r)), this.removeSelected = async () => (await a(this, Ct)).selectedTextStyleClean().then((e) => i(e)), this.getSelected = async () => (await a(this, Ct)).getSelectedTextStyle().then((e) => i(e)), g(this, Ct, o);
1694
+ u(this, wt);
1695
+ this.set = async (t) => (await a(this, wt)).selectedTextStyleDeltaUpdate(JSON.stringify(t)).then((r) => i(r)), this.removeSelected = async () => (await a(this, wt)).selectedTextStyleClean().then((e) => i(e)), this.getSelected = async () => (await a(this, wt)).getSelectedTextStyle().then((e) => i(e)), g(this, wt, o);
1692
1696
  }
1693
1697
  }
1694
- Ct = new WeakMap();
1698
+ wt = new WeakMap();
1695
1699
  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 || {}), K = /* @__PURE__ */ ((s) => (s.SELECT = "select", s.ZOOM = "zoom", s.HAND = "hand", s.IMAGE_FRAME = "imageFrame", s.TEXT_FRAME = "textFrame", s.SHAPE_RECT = "rect", s.SHAPE_ELLIPSE = "ellipse", s.SHAPE_POLYGON = "polygon", s))(K || {}), sn = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s.HTML = "html", s))(sn || {}), ue = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(ue || {}), Ft;
1696
1700
  class os {
1697
1701
  /**
@@ -1798,8 +1802,8 @@ class hs {
1798
1802
  const c = a(this, Et).get(tt.GraFxStudioEnvironmentApiUrl);
1799
1803
  if (!c)
1800
1804
  throw new Error("GraFx Studio Environment API URL is not set");
1801
- const h = `${c}connectors/${r}/stage`, l = a(this, Et).get(tt.GraFxStudioAuthToken);
1802
- if (!l)
1805
+ const h = `${c}connectors/${r}/stage`, d = a(this, Et).get(tt.GraFxStudioAuthToken);
1806
+ if (!d)
1803
1807
  throw new Error("GraFx Studio Auth Token is not set");
1804
1808
  const p = new FormData();
1805
1809
  e.forEach((f, b) => {
@@ -1819,7 +1823,7 @@ class hs {
1819
1823
  method: "POST",
1820
1824
  body: p,
1821
1825
  headers: {
1822
- Authorization: `Bearer ${l}`
1826
+ Authorization: `Bearer ${d}`
1823
1827
  }
1824
1828
  });
1825
1829
  if (y.status === 422) {
@@ -1896,7 +1900,7 @@ class on {
1896
1900
  }
1897
1901
  }
1898
1902
  Yt = new WeakMap();
1899
- var C, Ot, Lt, fs;
1903
+ var w, Ot, Lt, fs;
1900
1904
  let ls = (fs = class {
1901
1905
  /**
1902
1906
  * @ignore
@@ -1905,31 +1909,31 @@ let ls = (fs = class {
1905
1909
  /**
1906
1910
  * @ignore
1907
1911
  */
1908
- u(this, C);
1912
+ u(this, w);
1909
1913
  u(this, Ot);
1910
1914
  u(this, Lt);
1911
- this.getAll = async () => (await a(this, C)).getVariables().then((e) => i(e)).then((e) => {
1915
+ this.getAll = async () => (await a(this, w)).getVariables().then((e) => i(e)).then((e) => {
1912
1916
  const r = e;
1913
1917
  return r.parsedData && (r.parsedData = this.makeVariablesBackwardsCompatible(r.parsedData)), r;
1914
- }), this.getById = async (t) => (await a(this, C)).getVariableById(t).then((r) => i(r)).then((r) => {
1918
+ }), this.getById = async (t) => (await a(this, w)).getVariableById(t).then((r) => i(r)).then((r) => {
1915
1919
  const n = r;
1916
1920
  return n.parsedData && (n.parsedData = this.makeVariableBackwardsCompatible(n.parsedData)), n;
1917
- }), this.getByName = async (t) => (await a(this, C)).getVariableByName(t).then((r) => i(r)).then((r) => {
1921
+ }), this.getByName = async (t) => (await a(this, w)).getVariableByName(t).then((r) => i(r)).then((r) => {
1918
1922
  const n = r;
1919
1923
  return n.parsedData && (n.parsedData = this.makeVariableBackwardsCompatible(n.parsedData)), n;
1920
- }), this.create = async (t, e) => (await a(this, C)).addVariable(t, e).then((n) => i(n)), this.remove = async (t) => (await a(this, C)).removeVariables(t).then((r) => i(r)), this.rename = async (t, e) => (await a(this, C)).setVariableName(t, e).then((n) => i(n)), this.setLabel = async (t, e) => (await a(this, C)).setVariableLabel(t, e).then((n) => i(n)), g(this, Ot, async (t, e) => (await a(this, C)).setVariablePlaceholder(t, e).then((n) => i(n))), this.setPlaceholder = async (t, e) => a(this, Ot).call(this, t, e), this.resetPlaceholder = async (t) => a(this, Ot).call(this, t, null), g(this, Lt, async (t, e) => (await a(this, C)).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, C)).setVariableType(t, e).then((n) => i(n)), this.setListVariable = async (t, e) => (await a(this, C)).setListVariableItems(
1924
+ }), 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, Ot, async (t, e) => (await a(this, w)).setVariablePlaceholder(t, e).then((n) => i(n))), this.setPlaceholder = async (t, e) => a(this, Ot).call(this, t, e), this.resetPlaceholder = async (t) => a(this, Ot).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(
1921
1925
  t,
1922
1926
  e.map((n) => JSON.stringify({ value: n }))
1923
- ).then((n) => i(n)), this.setValue = async (t, e) => (await a(this, C)).setVariableValue(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, C)).duplicateVariable(t).then((r) => i(r)), this.groupVariables = async (t, e) => (await a(this, C)).groupVariables(t, e).then((n) => i(n)), this.ungroupVariables = async (t) => (await a(this, C)).ungroupVariable(t).then((r) => i(r)), this.move = async (t, e, r) => (await a(this, C)).moveVariable(e, r, t).then((c) => i(c)), this.moveVariables = async (t, e, r) => (await a(this, C)).moveVariables(e, r, t).then((c) => i(c)), this.setIsVisible = async (t, e) => {
1927
+ ).then((n) => i(n)), this.setValue = async (t, e) => (await a(this, w)).setVariableValue(t, e).then((n) => i(n)), 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((c) => i(c)), this.moveVariables = async (t, e, r) => (await a(this, w)).moveVariables(e, r, t).then((c) => i(c)), this.setIsVisible = async (t, e) => {
1924
1928
  const r = e ? { type: Jt.visible } : { type: Jt.invisible };
1925
1929
  return this.setVariableVisibility(t, r);
1926
1930
  }, this.setIsHidden = async (t, e) => {
1927
1931
  const r = e ? { type: Jt.invisible } : { type: Jt.visible };
1928
1932
  return this.setVariableVisibility(t, r);
1929
- }, this.setVariableVisibility = async (t, e) => (await a(this, C)).setVariableVisibility(t, JSON.stringify(e)).then((n) => i(n)), this.setLayoutsForVariableVisibility = async (t) => (await a(this, C)).setLayoutsForVariableVisibility(t ? JSON.stringify(t) : null).then((r) => i(r)), this.setIsRequired = async (t, e) => (await a(this, C)).setVariableIsRequired(t, e).then((n) => i(n)), this.setRemoveParagraphIfEmpty = async (t, e) => (await a(this, C)).setVariableRemoveParagraphIfEmpty(t, e).then((n) => i(n)), this.setIsReadonly = async (t, e) => (await a(this, C)).setVariableIsReadonly(t, e).then((n) => i(n)), this.getImageVariableConnectorId = async (t) => (await a(this, C)).getImageVariableConnectorId(t).then((r) => i(r)), this.setImageVariableConnector = async (t, e) => {
1930
- const r = await a(this, C), c = new ye().makeConnectorSourceForwardsCompatible(e);
1933
+ }, 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) => {
1934
+ const r = await a(this, w), c = new ye().makeConnectorSourceForwardsCompatible(e);
1931
1935
  return r.setImageVariableConnector(t, JSON.stringify(c)).then((h) => i(h));
1932
- }, this.setImageVariableValueWithContext = async (t, e, r) => (await a(this, C)).setImageVariableValueWithContext(t, e, JSON.stringify(r)).then((c) => i(c)), this.removeSource = async (t) => this.setValue(t, null), this.setPrefix = async (t, e) => {
1936
+ }, this.setImageVariableValueWithContext = async (t, e, r) => (await a(this, w)).setImageVariableValueWithContext(t, e, JSON.stringify(r)).then((c) => i(c)), this.removeSource = async (t) => this.setValue(t, null), this.setPrefix = async (t, e) => {
1933
1937
  const r = { prefix: { value: e } };
1934
1938
  return this.applyPrefixSuffixDeltaUpdate(t, r);
1935
1939
  }, this.setSuffix = async (t, e) => {
@@ -1941,7 +1945,7 @@ let ls = (fs = class {
1941
1945
  }, this.setSuffixCharacterStyle = async (t, e) => {
1942
1946
  const r = { suffixCharacterStyleId: { value: e } };
1943
1947
  return this.applyPrefixSuffixDeltaUpdate(t, r);
1944
- }, this.setPrivateData = async (t, e) => (await a(this, C)).setVariablePrivateData(t, JSON.stringify(e)).then((n) => i(n)), this.getPrivateData = async (t) => (await a(this, C)).getVariablePrivateData(t).then((r) => i(r)), this.setAllowImageQuery = async (t, e) => (await a(this, C)).setImageVariableAllowQuery(t, e).then((n) => i(n)), this.setAllowImageUpload = async (t, e) => (await a(this, C)).setImageVariableAllowUpload(t, e).then((n) => i(n)), this.setMinImageUploadSize = async (t, e, r) => (await a(this, C)).setImageVariableUploadMinSize(t, e, r).then((c) => i(c)), this.setIsDontBreak = async (t, e) => (await a(this, C)).setVariableIsDontBreak(t, e).then((n) => i(n)), g(this, C, o), this.number = new an(a(this, C)), this.date = new on(a(this, C));
1948
+ }, 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((c) => i(c)), this.setIsDontBreak = async (t, e) => (await a(this, w)).setVariableIsDontBreak(t, e).then((n) => i(n)), g(this, w, o), this.number = new an(a(this, w)), this.date = new on(a(this, w));
1945
1949
  }
1946
1950
  makeVariablesBackwardsCompatible(o) {
1947
1951
  return o.map((t) => this.makeVariableBackwardsCompatible(t));
@@ -1954,10 +1958,10 @@ let ls = (fs = class {
1954
1958
  return t.items = n, t.selected = r == null ? void 0 : r.value, t;
1955
1959
  }
1956
1960
  async applyPrefixSuffixDeltaUpdate(o, t) {
1957
- const r = await (await a(this, C)).updateVariablePrefixSuffixProperties(o, JSON.stringify(t));
1961
+ const r = await (await a(this, w)).updateVariablePrefixSuffixProperties(o, JSON.stringify(t));
1958
1962
  return i(r);
1959
1963
  }
1960
- }, C = new WeakMap(), Ot = new WeakMap(), Lt = new WeakMap(), fs);
1964
+ }, w = new WeakMap(), Ot = new WeakMap(), Lt = new WeakMap(), fs);
1961
1965
  class cn {
1962
1966
  /**
1963
1967
  * @ignore
@@ -2079,7 +2083,7 @@ class us extends Ds {
2079
2083
  return this.createEventHandlerFn(t, kt.throw)(...o);
2080
2084
  }
2081
2085
  }
2082
- class w extends Ds {
2086
+ class C extends Ds {
2083
2087
  constructor(o, t) {
2084
2088
  super(t), this.legacyHandler = o, this.subscriptions = /* @__PURE__ */ new Set();
2085
2089
  }
@@ -2112,7 +2116,7 @@ class w extends Ds {
2112
2116
  };
2113
2117
  }
2114
2118
  }
2115
- class we {
2119
+ class Ce {
2116
2120
  /**
2117
2121
  * Creates a runtime configuration object from the provided configuration object.
2118
2122
  *
@@ -2120,13 +2124,13 @@ class we {
2120
2124
  * @returns The runtime configuration object.
2121
2125
  */
2122
2126
  static createRuntimeConfig(o) {
2123
- var e, r, n, c, h, l, p, y, v, f, b, A, I, S, M, E, P, W, j, St, bt, Ce, me, fe, Se, be, ve, Ie, Ae, Pe, Fe, Ee, Oe, Le, De;
2127
+ var e, r, n, c, h, d, p, y, v, f, b, A, I, S, M, E, P, W, j, St, bt, we, me, fe, Se, be, ve, Ie, Ae, Pe, Fe, Ee, Oe, Le, De;
2124
2128
  const t = { ...o };
2125
2129
  return t.logging = {
2126
2130
  logLevel: ((e = o.logging) == null ? void 0 : e.logLevel) || x.error,
2127
2131
  logger: ((r = o.logging) == null ? void 0 : r.logger) || ((xt, se, re) => {
2128
2132
  var Ne;
2129
- if (we.isLoggingEnabled(xt, ((Ne = t.logging) == null ? void 0 : Ne.logLevel) ?? x.error))
2133
+ if (Ce.isLoggingEnabled(xt, ((Ne = t.logging) == null ? void 0 : Ne.logLevel) ?? x.error))
2130
2134
  switch (xt) {
2131
2135
  case x.error:
2132
2136
  console.error(`[${se}] [${xt}] ${re}`);
@@ -2145,156 +2149,156 @@ class we {
2145
2149
  (c = t.logging) == null ? void 0 : c.logger
2146
2150
  )
2147
2151
  }, t.events = {
2148
- onActionsChanged: new w(
2152
+ onActionsChanged: new C(
2149
2153
  () => t.onActionsChanged,
2150
2154
  (h = t.logging) == null ? void 0 : h.logger
2151
2155
  ),
2152
- onStateChanged: new w(
2156
+ onStateChanged: new C(
2153
2157
  () => t.onStateChanged,
2154
- (l = t.logging) == null ? void 0 : l.logger
2158
+ (d = t.logging) == null ? void 0 : d.logger
2155
2159
  ),
2156
- onDocumentLoaded: new w(
2160
+ onDocumentLoaded: new C(
2157
2161
  () => t.onDocumentLoaded,
2158
2162
  (p = t.logging) == null ? void 0 : p.logger
2159
2163
  ),
2160
- onSelectedFramesLayoutChanged: new w(
2164
+ onSelectedFramesLayoutChanged: new C(
2161
2165
  () => t.onSelectedFramesLayoutChanged,
2162
2166
  (y = t.logging) == null ? void 0 : y.logger
2163
2167
  ),
2164
- onFramesLayoutChanged: new w(
2168
+ onFramesLayoutChanged: new C(
2165
2169
  () => t.onFramesLayoutChanged,
2166
2170
  (v = t.logging) == null ? void 0 : v.logger
2167
2171
  ),
2168
- onSelectedFramesContentChanged: new w(
2172
+ onSelectedFramesContentChanged: new C(
2169
2173
  () => t.onSelectedFramesContentChanged,
2170
2174
  (f = t.logging) == null ? void 0 : f.logger
2171
2175
  ),
2172
- onPageSelectionChanged: new w(
2176
+ onPageSelectionChanged: new C(
2173
2177
  () => t.onPageSelectionChanged,
2174
2178
  (b = t.logging) == null ? void 0 : b.logger
2175
2179
  ),
2176
- onSelectedLayoutPropertiesChanged: new w(
2180
+ onSelectedLayoutPropertiesChanged: new C(
2177
2181
  () => t.onSelectedLayoutPropertiesChanged,
2178
2182
  (A = t.logging) == null ? void 0 : A.logger
2179
2183
  ),
2180
- onSelectedLayoutUnitChanged: new w(
2184
+ onSelectedLayoutUnitChanged: new C(
2181
2185
  () => t.onSelectedLayoutUnitChanged,
2182
2186
  (I = t.logging) == null ? void 0 : I.logger
2183
2187
  ),
2184
- onScrubberPositionChanged: new w(
2188
+ onScrubberPositionChanged: new C(
2185
2189
  () => t.onScrubberPositionChanged,
2186
2190
  (S = t.logging) == null ? void 0 : S.logger
2187
2191
  ),
2188
- onFrameAnimationsChanged: new w(
2192
+ onFrameAnimationsChanged: new C(
2189
2193
  () => t.onFrameAnimationsChanged,
2190
2194
  (M = t.logging) == null ? void 0 : M.logger
2191
2195
  ),
2192
- onVariableListChanged: new w(
2196
+ onVariableListChanged: new C(
2193
2197
  () => t.onVariableListChanged,
2194
2198
  (E = t.logging) == null ? void 0 : E.logger
2195
2199
  ),
2196
- onSelectedToolChanged: new w(
2200
+ onSelectedToolChanged: new C(
2197
2201
  () => t.onSelectedToolChanged,
2198
2202
  (P = t.logging) == null ? void 0 : P.logger
2199
2203
  ),
2200
- onUndoStackStateChanged: new w(
2204
+ onUndoStackStateChanged: new C(
2201
2205
  () => t.onUndoStackStateChanged,
2202
2206
  (W = t.logging) == null ? void 0 : W.logger
2203
2207
  ),
2204
- onSelectedLayoutFramesChanged: new w(
2208
+ onSelectedLayoutFramesChanged: new C(
2205
2209
  () => t.onSelectedLayoutFramesChanged,
2206
2210
  (j = t.logging) == null ? void 0 : j.logger
2207
2211
  ),
2208
- onSelectedTextStyleChanged: new w(
2212
+ onSelectedTextStyleChanged: new C(
2209
2213
  () => t.onSelectedTextStyleChanged,
2210
2214
  (St = t.logging) == null ? void 0 : St.logger
2211
2215
  ),
2212
- onColorsChanged: new w(
2216
+ onColorsChanged: new C(
2213
2217
  () => t.onColorsChanged,
2214
2218
  (bt = t.logging) == null ? void 0 : bt.logger
2215
2219
  ),
2216
- onParagraphStylesChanged: new w(
2220
+ onParagraphStylesChanged: new C(
2217
2221
  () => t.onParagraphStylesChanged,
2218
- (Ce = t.logging) == null ? void 0 : Ce.logger
2222
+ (we = t.logging) == null ? void 0 : we.logger
2219
2223
  ),
2220
- onCharacterStylesChanged: new w(
2224
+ onCharacterStylesChanged: new C(
2221
2225
  () => t.onCharacterStylesChanged,
2222
2226
  (me = t.logging) == null ? void 0 : me.logger
2223
2227
  ),
2224
- onFontFamiliesChanged: new w(
2228
+ onFontFamiliesChanged: new C(
2225
2229
  () => t.onFontFamiliesChanged,
2226
2230
  (fe = t.logging) == null ? void 0 : fe.logger
2227
2231
  ),
2228
- onSelectedLayoutIdChanged: new w(
2232
+ onSelectedLayoutIdChanged: new C(
2229
2233
  () => t.onSelectedLayoutIdChanged,
2230
2234
  (Se = t.logging) == null ? void 0 : Se.logger
2231
2235
  ),
2232
- onLayoutsChanged: new w(
2236
+ onLayoutsChanged: new C(
2233
2237
  () => t.onLayoutsChanged,
2234
2238
  (be = t.logging) == null ? void 0 : be.logger
2235
2239
  ),
2236
- onConnectorEvent: new w(
2240
+ onConnectorEvent: new C(
2237
2241
  () => t.onConnectorEvent,
2238
2242
  (ve = t.logging) == null ? void 0 : ve.logger
2239
2243
  ),
2240
- onConnectorsChanged: new w(
2244
+ onConnectorsChanged: new C(
2241
2245
  () => t.onConnectorsChanged,
2242
2246
  (Ie = t.logging) == null ? void 0 : Ie.logger
2243
2247
  ),
2244
- onZoomChanged: new w(
2248
+ onZoomChanged: new C(
2245
2249
  () => t.onZoomChanged,
2246
2250
  (Ae = t.logging) == null ? void 0 : Ae.logger
2247
2251
  ),
2248
- onSelectedPageIdChanged: new w(
2252
+ onSelectedPageIdChanged: new C(
2249
2253
  () => t.onSelectedPageIdChanged,
2250
2254
  t.logging.logger
2251
2255
  ),
2252
- onPagesChanged: new w(
2256
+ onPagesChanged: new C(
2253
2257
  () => t.onPagesChanged,
2254
2258
  t.logging.logger
2255
2259
  ),
2256
- onPageSnapshotInvalidated: new w(
2260
+ onPageSnapshotInvalidated: new C(
2257
2261
  () => t.onPageSnapshotInvalidated,
2258
2262
  t.logging.logger
2259
2263
  ),
2260
- onPageSizeChanged: new w(
2264
+ onPageSizeChanged: new C(
2261
2265
  () => t.onPageSizeChanged,
2262
2266
  (Pe = t.logging) == null ? void 0 : Pe.logger
2263
2267
  ),
2264
- onShapeCornerRadiusChanged: new w(
2268
+ onShapeCornerRadiusChanged: new C(
2265
2269
  () => t.onShapeCornerRadiusChanged,
2266
2270
  (Fe = t.logging) == null ? void 0 : Fe.logger
2267
2271
  ),
2268
- onCropActiveFrameIdChanged: new w(
2272
+ onCropActiveFrameIdChanged: new C(
2269
2273
  () => t.onCropActiveFrameIdChanged,
2270
2274
  (Ee = t.logging) == null ? void 0 : Ee.logger
2271
2275
  ),
2272
- onAsyncError: new w(
2276
+ onAsyncError: new C(
2273
2277
  () => t.onAsyncError,
2274
2278
  (Oe = t.logging) == null ? void 0 : Oe.logger
2275
2279
  ),
2276
- onViewModeChanged: new w(
2280
+ onViewModeChanged: new C(
2277
2281
  () => t.onViewModeChanged,
2278
2282
  (Le = t.logging) == null ? void 0 : Le.logger
2279
2283
  ),
2280
- onBarcodeValidationChanged: new w(() => t.onBarcodeValidationChanged, (De = t.logging) == null ? void 0 : De.logger),
2281
- onDataSourceIdChanged: new w(
2284
+ onBarcodeValidationChanged: new C(() => t.onBarcodeValidationChanged, (De = t.logging) == null ? void 0 : De.logger),
2285
+ onDataSourceIdChanged: new C(
2282
2286
  () => t.onDataSourceIdChanged,
2283
2287
  t.logging.logger
2284
2288
  ),
2285
- onDocumentIssueListChanged: new w(
2289
+ onDocumentIssueListChanged: new C(
2286
2290
  () => t.onDocumentIssueListChanged,
2287
2291
  t.logging.logger
2288
2292
  ),
2289
- onCustomUndoDataChanged: new w(
2293
+ onCustomUndoDataChanged: new C(
2290
2294
  () => t.onCustomUndoDataChanged,
2291
2295
  t.logging.logger
2292
2296
  ),
2293
- onEngineEditModeChanged: new w(
2297
+ onEngineEditModeChanged: new C(
2294
2298
  () => t.onEngineEditModeChanged,
2295
2299
  t.logging.logger
2296
2300
  ),
2297
- onBrandKitMediaChanged: new w(
2301
+ onBrandKitMediaChanged: new C(
2298
2302
  () => t.onBrandKitMediaChanged,
2299
2303
  t.logging.logger
2300
2304
  )
@@ -2477,7 +2481,7 @@ class ps {
2477
2481
  }
2478
2482
  ft = new WeakMap(), Zt = new WeakMap();
2479
2483
  var Mt;
2480
- class ws {
2484
+ class Cs {
2481
2485
  /**
2482
2486
  * @ignore
2483
2487
  */
@@ -2490,7 +2494,7 @@ class ws {
2490
2494
  }
2491
2495
  }
2492
2496
  Mt = new WeakMap();
2493
- const pn = "studio-cdn.chiligrafx.com", wn = `https://${pn}/editor/${Ss.current}/web`;
2497
+ const pn = "studio-cdn.chiligrafx.com", Cn = `https://${pn}/editor/${Ss.current}/web`;
2494
2498
  let et;
2495
2499
  class Qn {
2496
2500
  /**
@@ -2501,7 +2505,7 @@ class Qn {
2501
2505
  this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new gn(), this.loadEditor = () => {
2502
2506
  var t;
2503
2507
  nr(
2504
- this.config.editorLink || wn,
2508
+ this.config.editorLink || Cn,
2505
2509
  {
2506
2510
  onActionsChanged: this.subscriber.onActionsChanged,
2507
2511
  onStateChanged: this.subscriber.onStateChanged,
@@ -2561,7 +2565,7 @@ class Qn {
2561
2565
  var r, n;
2562
2566
  (n = (r = this.config).onConnectionError) == null || n.call(r, e);
2563
2567
  }
2564
- ), this.editorAPI = et == null ? void 0 : et.promise.then((e) => e), this.action = new Ve(this.editorAPI), this.layout = new ss(this.editorAPI), this.frame = new ts(this.editorAPI), this.barcode = new Ge(this.editorAPI), this.component = new ws(this.editorAPI), this.animation = new Je(this.editorAPI), this.document = new Ye(this.editorAPI), this.configuration = new gs(this.editorAPI, this.localConfig), this.utils = new hs(this.editorAPI, this.localConfig), this.tool = new os(this.editorAPI), this.page = new ns(this.editorAPI), this.debug = new qe(this.editorAPI), this.undoManager = new cs(this.editorAPI, this), this.textSelection = new is(this.editorAPI), this.colorStyle = new Ke(this.editorAPI), this.gradientStyle = new ys(this.editorAPI), this.paragraphStyle = new as(this.editorAPI), this.characterStyle = new He(this.editorAPI), this.mediaConnector = new rs(this.editorAPI), this.fontConnector = new Qe(this.editorAPI), this.componentConnector = new ps(this.editorAPI), this.dataConnector = new We(this.editorAPI, this.dataItemMappingTools), this.dataSource = new je(this.editorAPI, this.dataItemMappingTools), this.connector = new ze(this.editorAPI, this.localConfig), this.variable = new ls(this.editorAPI), this.font = new Xe(this.editorAPI), this.experiment = new Ze(this.editorAPI), this.canvas = new oe(this.editorAPI), this.shape = new le(this.editorAPI), this.colorConversion = new $e(this.editorAPI), this.info = new es(), this.clipboard = new Te(this.editorAPI), this.brandKit = new _e(this.editorAPI, this), this.next = new ds(this.config, this.connection, this.editorAPI), this.configuration.setValue(tt.GraFxStudioSdkVersion, bs.version), this.configuration.setValue(
2568
+ ), this.editorAPI = et == null ? void 0 : et.promise.then((e) => e), this.action = new Ve(this.editorAPI), this.layout = new ss(this.editorAPI), this.frame = new ts(this.editorAPI), this.barcode = new Ge(this.editorAPI), this.component = new Cs(this.editorAPI), this.animation = new Je(this.editorAPI), this.document = new Ye(this.editorAPI), this.configuration = new gs(this.editorAPI, this.localConfig), this.utils = new hs(this.editorAPI, this.localConfig), this.tool = new os(this.editorAPI), this.page = new ns(this.editorAPI), this.debug = new qe(this.editorAPI), this.undoManager = new cs(this.editorAPI, this), this.textSelection = new is(this.editorAPI), this.colorStyle = new Ke(this.editorAPI), this.gradientStyle = new ys(this.editorAPI), this.paragraphStyle = new as(this.editorAPI), this.characterStyle = new He(this.editorAPI), this.mediaConnector = new rs(this.editorAPI), this.fontConnector = new Qe(this.editorAPI), this.componentConnector = new ps(this.editorAPI), this.dataConnector = new We(this.editorAPI, this.dataItemMappingTools), this.dataSource = new je(this.editorAPI, this.dataItemMappingTools), this.connector = new ze(this.editorAPI, this.localConfig), this.variable = new ls(this.editorAPI), this.font = new Xe(this.editorAPI), this.experiment = new Ze(this.editorAPI), this.canvas = new oe(this.editorAPI), this.shape = new le(this.editorAPI), this.colorConversion = new $e(this.editorAPI), this.info = new es(), this.clipboard = new Te(this.editorAPI), this.brandKit = new _e(this.editorAPI, this), this.next = new ds(this.config, this.connection, this.editorAPI), this.configuration.setValue(tt.GraFxStudioSdkVersion, bs.version), this.configuration.setValue(
2565
2569
  tt.GraFxStudioDocumentType,
2566
2570
  this.config.documentType || Ps.template
2567
2571
  ), this.configuration.updateStudioOptions(this.config.studioOptions || ir), this.configuration.setValue(
@@ -2570,10 +2574,10 @@ class Qn {
2570
2574
  );
2571
2575
  }, this.setConnection = (t) => {
2572
2576
  et = t;
2573
- }, this.config = we.createRuntimeConfig(o), this.connection = et, this.editorAPI = et == null ? void 0 : et.promise.then((t) => t), this.action = new Ve(this.editorAPI), this.layout = new ss(this.editorAPI), this.frame = new ts(this.editorAPI), this.shape = new le(this.editorAPI), this.barcode = new Ge(this.editorAPI), this.component = new ws(this.editorAPI), this.undoManager = new cs(this.editorAPI, this), this.connector = new ze(this.editorAPI, this.localConfig), this.mediaConnector = new rs(this.editorAPI), this.fontConnector = new Qe(this.editorAPI), this.componentConnector = new ps(this.editorAPI), this.dataConnector = new We(this.editorAPI, this.dataItemMappingTools), this.dataSource = new je(this.editorAPI, this.dataItemMappingTools), this.animation = new Je(this.editorAPI), this.document = new Ye(this.editorAPI), this.configuration = new gs(this.editorAPI, this.localConfig), this.variable = new ls(this.editorAPI), this.utils = new hs(this.editorAPI, this.localConfig), this.subscriber = new Xr(this.config, this.localConfig), this.tool = new os(this.editorAPI), this.page = new ns(this.editorAPI), this.debug = new qe(this.editorAPI), this.textSelection = new is(this.editorAPI), this.colorStyle = new Ke(this.editorAPI), this.gradientStyle = new ys(this.editorAPI), this.paragraphStyle = new as(this.editorAPI), this.characterStyle = new He(this.editorAPI), this.font = new Xe(this.editorAPI), this.experiment = new Ze(this.editorAPI), this.canvas = new oe(this.editorAPI), this.colorConversion = new $e(this.editorAPI), this.info = new es(), this.clipboard = new Te(this.editorAPI), this.next = new ds(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new _e(this.editorAPI, this);
2577
+ }, this.config = Ce.createRuntimeConfig(o), this.connection = et, this.editorAPI = et == null ? void 0 : et.promise.then((t) => t), this.action = new Ve(this.editorAPI), this.layout = new ss(this.editorAPI), this.frame = new ts(this.editorAPI), this.shape = new le(this.editorAPI), this.barcode = new Ge(this.editorAPI), this.component = new Cs(this.editorAPI), this.undoManager = new cs(this.editorAPI, this), this.connector = new ze(this.editorAPI, this.localConfig), this.mediaConnector = new rs(this.editorAPI), this.fontConnector = new Qe(this.editorAPI), this.componentConnector = new ps(this.editorAPI), this.dataConnector = new We(this.editorAPI, this.dataItemMappingTools), this.dataSource = new je(this.editorAPI, this.dataItemMappingTools), this.animation = new Je(this.editorAPI), this.document = new Ye(this.editorAPI), this.configuration = new gs(this.editorAPI, this.localConfig), this.variable = new ls(this.editorAPI), this.utils = new hs(this.editorAPI, this.localConfig), this.subscriber = new Xr(this.config, this.localConfig), this.tool = new os(this.editorAPI), this.page = new ns(this.editorAPI), this.debug = new qe(this.editorAPI), this.textSelection = new is(this.editorAPI), this.colorStyle = new Ke(this.editorAPI), this.gradientStyle = new ys(this.editorAPI), this.paragraphStyle = new as(this.editorAPI), this.characterStyle = new He(this.editorAPI), this.font = new Xe(this.editorAPI), this.experiment = new Ze(this.editorAPI), this.canvas = new oe(this.editorAPI), this.colorConversion = new $e(this.editorAPI), this.info = new es(), this.clipboard = new Te(this.editorAPI), this.next = new ds(this.config, this.connection, this.editorAPI), this.enabledNextSubscribers = this.config.enableNextSubscribers, this.brandKit = new _e(this.editorAPI, this);
2574
2578
  }
2575
2579
  }
2576
- var Cn = /* @__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))(Cn || {}), mn = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(mn || {}), fn = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(fn || {}), Sn = /* @__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))(Sn || {}), bn = /* @__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))(bn || {}), vn = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(vn || {}), In = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(In || {}), An = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(An || {}), Pn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(Pn || {}), 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 || {}), On = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(On || {}), Ln = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(Ln || {}), Dn = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(Dn || {}), Nn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(Nn || {}), Mn = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(Mn || {}), xn = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(xn || {}), Rn = /* @__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))(Rn || {}), Vn = /* @__PURE__ */ ((s) => (s.arabic = "arabic", s.romanUpperCase = "romanUpperCase", s.romanLowerCase = "romanLowerCase", s.latinUpperCase = "latinUpperCase", s.latinLowerCase = "latinLowerCase", s))(Vn || {}), Jn = /* @__PURE__ */ ((s) => (s.none = "none", s.dash = "dash", s.dot = "dot", s.colon = "colon", s.roundBracket = "roundBracket", s))(Jn || {}), Gn = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(Gn || {}), Bn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Bn || {}), Un = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(Un || {}), kn = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(kn || {}), Ns = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Ns || {});
2580
+ var wn = /* @__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))(wn || {}), mn = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s))(mn || {}), fn = /* @__PURE__ */ ((s) => (s.easeIn = "easeIn", s.easeOut = "easeOut", s.easeInOut = "easeInOut", s))(fn || {}), Sn = /* @__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))(Sn || {}), bn = /* @__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))(bn || {}), vn = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(vn || {}), In = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(In || {}), An = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(An || {}), Pn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(Pn || {}), 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 || {}), On = /* @__PURE__ */ ((s) => (s.LEFT = "left", s.CENTER = "center", s.RIGHT = "right", s.JUSTIFY = "justify", s))(On || {}), Ln = /* @__PURE__ */ ((s) => (s.TOP = "top", s.CENTER = "center", s.BOTTOM = "bottom", s))(Ln || {}), Dn = /* @__PURE__ */ ((s) => (s.TO_LOWER_CASE = "lowercase", s.TO_UPPER_CASE = "uppercase", s.NORMAL = "normal", s))(Dn || {}), Nn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(Nn || {}), Mn = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(Mn || {}), xn = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(xn || {}), Rn = /* @__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))(Rn || {}), Vn = /* @__PURE__ */ ((s) => (s.arabic = "arabic", s.romanUpperCase = "romanUpperCase", s.romanLowerCase = "romanLowerCase", s.latinUpperCase = "latinUpperCase", s.latinLowerCase = "latinLowerCase", s))(Vn || {}), Jn = /* @__PURE__ */ ((s) => (s.none = "none", s.dash = "dash", s.dot = "dot", s.colon = "colon", s.roundBracket = "roundBracket", s))(Jn || {}), Gn = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(Gn || {}), Bn = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Bn || {}), Un = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(Un || {}), kn = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(kn || {}), Ns = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Ns || {});
2577
2581
  const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2578
2582
  __proto__: null,
2579
2583
  ConnectorRegistrationSource: Ns
@@ -2656,7 +2660,7 @@ export {
2656
2660
  Rn as SelectedTextStyles,
2657
2661
  mn as ShakeDirections,
2658
2662
  Bn as ShapeType,
2659
- Cn as SlideDirections,
2663
+ wn as SlideDirections,
2660
2664
  br as SortBy,
2661
2665
  vr as SortOrder,
2662
2666
  Jr as TextDirection,