@chili-publish/studio-sdk 1.36.0 → 1.38.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 (32) hide show
  1. package/_bundles/main.es.js +232 -227
  2. package/_bundles/main.es.js.map +1 -1
  3. package/_bundles/main.js +2 -2
  4. package/_bundles/main.js.map +1 -1
  5. package/lib/editor-engine.json +1 -1
  6. package/lib/package.json +1 -1
  7. package/lib/src/controllers/ComponentController.d.ts +8 -0
  8. package/lib/src/controllers/ComponentController.js +10 -0
  9. package/lib/src/controllers/ComponentController.js.map +1 -1
  10. package/lib/src/controllers/FrameController.d.ts +2 -1
  11. package/lib/src/controllers/FrameController.js +3 -2
  12. package/lib/src/controllers/FrameController.js.map +1 -1
  13. package/lib/src/controllers/VariableController.d.ts +74 -55
  14. package/lib/src/controllers/VariableController.js +25 -0
  15. package/lib/src/controllers/VariableController.js.map +1 -1
  16. package/lib/src/index.d.ts +1 -1
  17. package/lib/src/index.js +1 -1
  18. package/lib/src/index.js.map +1 -1
  19. package/lib/src/tests/controllers/FrameConstraintController.test.js +21 -5
  20. package/lib/src/tests/controllers/FrameConstraintController.test.js.map +1 -1
  21. package/lib/src/tests/controllers/FrameController.test.js +2 -2
  22. package/lib/src/tests/controllers/VariableController.test.js +22 -0
  23. package/lib/src/tests/controllers/VariableController.test.js.map +1 -1
  24. package/lib/src/types/ConfigurationTypes.d.ts +2 -0
  25. package/lib/src/types/ConfigurationTypes.js +1 -0
  26. package/lib/src/types/ConfigurationTypes.js.map +1 -1
  27. package/lib/src/types/FrameTypes.d.ts +23 -0
  28. package/lib/src/types/FrameTypes.js +16 -0
  29. package/lib/src/types/FrameTypes.js.map +1 -1
  30. package/lib/src/types/VariableTypes.d.ts +9 -1
  31. package/lib/src/types/VariableTypes.js.map +1 -1
  32. package/package.json +1 -1
@@ -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.19.latest", Ss = {
6
+ const Ms = "2.21.latest", Ss = {
7
7
  current: Ms
8
- }, xs = "1.36.0", bs = {
8
+ }, xs = "1.38.0", bs = {
9
9
  version: xs
10
10
  };
11
11
  var z;
@@ -78,15 +78,15 @@ const Rs = (s, o) => {
78
78
  t(`${e}: Unable to send ${f}() reply due to destroyed connection`);
79
79
  return;
80
80
  }
81
- const E = {
81
+ const O = {
82
82
  penpal: z.Reply,
83
83
  id: A,
84
84
  resolution: S,
85
85
  returnValue: M
86
86
  };
87
- S === ut.Rejected && M instanceof Error && (E.returnValue = Re(M), E.returnValueIsError = !0);
87
+ S === ut.Rejected && M instanceof Error && (O.returnValue = Re(M), O.returnValueIsError = !0);
88
88
  try {
89
- n.postMessage(E, c);
89
+ n.postMessage(O, c);
90
90
  } catch (P) {
91
91
  if (P.name === ne.DataCloneError) {
92
92
  const W = {
@@ -142,22 +142,22 @@ const Ts = () => ++Hs, vs = ".", Is = (s) => s ? s.split(vs) : [], $s = (s) => s
142
142
  throw S.code = Gt.ConnectionDestroyed, S;
143
143
  }
144
144
  return new Promise((S, M) => {
145
- const E = Ts(), P = (j) => {
146
- if (j.source !== h || j.data.penpal !== z.Reply || j.data.id !== E)
145
+ const O = Ts(), P = (j) => {
146
+ if (j.source !== h || j.data.penpal !== z.Reply || j.data.id !== O)
147
147
  return;
148
148
  if (j.origin !== p) {
149
149
  r(`${n} received message from origin ${j.origin} which did not match expected origin ${p}`);
150
150
  return;
151
151
  }
152
- const St = j.data;
152
+ const bt = j.data;
153
153
  r(`${n}: Received ${b}() reply`), c.removeEventListener(dt.Message, P);
154
- let bt = St.returnValue;
155
- St.returnValueIsError && (bt = ks(bt)), (St.resolution === ut.Fulfilled ? S : M)(bt);
154
+ let vt = bt.returnValue;
155
+ bt.returnValueIsError && (vt = ks(vt)), (bt.resolution === ut.Fulfilled ? S : M)(vt);
156
156
  };
157
157
  c.addEventListener(dt.Message, P);
158
158
  const W = {
159
159
  penpal: z.Call,
160
- id: E,
160
+ id: O,
161
161
  methodName: b,
162
162
  args: A
163
163
  };
@@ -228,7 +228,7 @@ const Ts = () => ++Hs, vs = ".", Is = (s) => s ? s.split(vs) : [], $s = (s) => s
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 {
230
230
  promise: new Promise((I, S) => {
231
- const M = Xs(r, p), E = (P) => {
231
+ const M = Xs(r, p), O = (P) => {
232
232
  if (!(P.source !== o.contentWindow || !P.data)) {
233
233
  if (P.data.penpal === z.Syn) {
234
234
  f(P);
@@ -241,8 +241,8 @@ 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), d((P) => {
245
- window.removeEventListener(dt.Message, E), P && S(P);
244
+ window.addEventListener(dt.Message, O), c("Parent: Awaiting handshake"), Qs(o, h), d((P) => {
245
+ window.removeEventListener(dt.Message, O), P && S(P);
246
246
  });
247
247
  }),
248
248
  destroy() {
@@ -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 },
@@ -487,7 +488,7 @@ class Je {
487
488
  }
488
489
  }
489
490
  L = new WeakMap();
490
- 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))($ || {}), Rt = /* @__PURE__ */ ((s) => (s.low = "low", s.medium = "medium", s.quartile = "quartile", s.high = "high", s))(Rt || {}), vt = /* @__PURE__ */ ((s) => (s.utf8 = "utf8", s.iso8859_1 = "iso8859_1", s.code128a = "code128a", s.code128b = "code128b", s.code128c = "code128c", s))(vt || {}), lr = /* @__PURE__ */ ((s) => (s.success = "success", s.empty = "empty", s.invalidLength = "invalidLength", s.invalidCharacters = "invalidCharacters", s.invalidChecksum = "invalidChecksum", s.invalidUPCE = "invalidUPCE", s.otherError = "otherError", s))(lr || {}), dr = /* @__PURE__ */ ((s) => (s.px = "px", s.mm = "mm", s.cm = "cm", s.inch = "inch", s.pt = "pt", s))(dr || {}), X = /* @__PURE__ */ ((s) => (s.top = "top", s.right = "right", s.bottom = "bottom", s.left = "left", s))(X || {}), ur = /* @__PURE__ */ ((s) => (s.top = "top", s.child = "child", s))(ur || {}), gr = /* @__PURE__ */ ((s) => (s.print = "print", s.digitalStatic = "digitalStatic", s.digitalAnimated = "digitalAnimated", s))(gr || {}), yr = /* @__PURE__ */ ((s) => (s.locked = "locked", s.range = "range", s.none = "none", s))(yr || {}), k;
491
+ 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))($ || {}), Rt = /* @__PURE__ */ ((s) => (s.low = "low", s.medium = "medium", s.quartile = "quartile", s.high = "high", s))(Rt || {}), It = /* @__PURE__ */ ((s) => (s.utf8 = "utf8", s.iso8859_1 = "iso8859_1", s.code128a = "code128a", s.code128b = "code128b", s.code128c = "code128c", s))(It || {}), lr = /* @__PURE__ */ ((s) => (s.success = "success", s.empty = "empty", s.invalidLength = "invalidLength", s.invalidCharacters = "invalidCharacters", s.invalidChecksum = "invalidChecksum", s.invalidUPCE = "invalidUPCE", s.otherError = "otherError", s))(lr || {}), dr = /* @__PURE__ */ ((s) => (s.px = "px", s.mm = "mm", s.cm = "cm", s.inch = "inch", s.pt = "pt", s))(dr || {}), X = /* @__PURE__ */ ((s) => (s.top = "top", s.right = "right", s.bottom = "bottom", s.left = "left", s))(X || {}), ur = /* @__PURE__ */ ((s) => (s.top = "top", s.child = "child", s))(ur || {}), gr = /* @__PURE__ */ ((s) => (s.print = "print", s.digitalStatic = "digitalStatic", s.digitalAnimated = "digitalAnimated", s))(gr || {}), yr = /* @__PURE__ */ ((s) => (s.locked = "locked", s.range = "range", s.none = "none", s))(yr || {}), k;
491
492
  class Ge {
492
493
  /**
493
494
  * @ignore
@@ -539,7 +540,7 @@ class Ge {
539
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
- c = [vt.iso8859_1, vt.utf8], h = [
543
+ c = [It.iso8859_1, It.utf8], h = [
543
544
  Rt.low,
544
545
  Rt.medium,
545
546
  Rt.quartile,
@@ -560,9 +561,9 @@ class Ge {
560
561
  case $.code128:
561
562
  case $.gs1128:
562
563
  c = [
563
- vt.code128a,
564
- vt.code128b,
565
- vt.code128c
564
+ It.code128a,
565
+ It.code128b,
566
+ It.code128c
566
567
  ];
567
568
  break;
568
569
  case $.code39:
@@ -680,7 +681,7 @@ class _e {
680
681
  y,
681
682
  p,
682
683
  v
683
- ]), E = {
684
+ ]), O = {
684
685
  id: e.parsedData,
685
686
  brandKit: {
686
687
  id: e.parsedData,
@@ -695,8 +696,8 @@ class _e {
695
696
  }
696
697
  }, P = {
697
698
  success: !0,
698
- data: JSON.stringify(E),
699
- parsedData: E,
699
+ data: JSON.stringify(O),
700
+ parsedData: O,
700
701
  status: 200
701
702
  };
702
703
  return i(P);
@@ -915,28 +916,28 @@ class Ke {
915
916
  }
916
917
  V = new WeakMap();
917
918
  var Bt = /* @__PURE__ */ ((s) => (s[s.file = 0] = "file", s[s.collection = 1] = "collection", s))(Bt || {}), ce = /* @__PURE__ */ ((s) => (s.LowResolutionWeb = "lowresWeb", s.HighResolutionWeb = "highresWeb", s))(ce || {}), Ut = /* @__PURE__ */ ((s) => (s.file = "file", s.collection = "collection", s))(Ut || {}), 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 || {}), Ir = /* @__PURE__ */ ((s) => (s.text = "text", s.boolean = "boolean", s))(Ir || {}), Ar = /* @__PURE__ */ ((s) => (s.query = "query", s.upload = "upload", s))(Ar || {}), Vt = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Vt || {});
918
- class Hn {
919
+ class Tn {
919
920
  constructor(o, t, e, r = "engineToConnector") {
920
921
  this.direction = "engineToConnector", this.name = o, this.direction = r, t === "var" ? this.value = `${t}.${e}` : this.value = e;
921
922
  }
922
923
  }
923
- var Pr = /* @__PURE__ */ ((s) => (s.variable = "var", s.value = "value", s))(Pr || {}), Fr = /* @__PURE__ */ ((s) => (s.engineToConnector = "engineToConnector", s.connectorToEngine = "connectorToEngine", s))(Fr || {}), he = /* @__PURE__ */ ((s) => (s.loading = "loading", s.loaded = "loaded", s.running = "running", s.ready = "ready", s.error = "error", s))(he || {}), Er = /* @__PURE__ */ ((s) => (s.stateChanged = "stateChanged", s.authChanged = "authChanged", s.reloadRequired = "reloadRequired", s.unloaded = "unloaded", s))(Er || {});
924
- const Tn = {
924
+ var Pr = /* @__PURE__ */ ((s) => (s.variable = "var", s.value = "value", s))(Pr || {}), Fr = /* @__PURE__ */ ((s) => (s.engineToConnector = "engineToConnector", s.connectorToEngine = "connectorToEngine", s))(Fr || {}), he = /* @__PURE__ */ ((s) => (s.loading = "loading", s.loaded = "loaded", s.running = "running", s.ready = "ready", s.error = "error", s))(he || {}), Or = /* @__PURE__ */ ((s) => (s.stateChanged = "stateChanged", s.authChanged = "authChanged", s.reloadRequired = "reloadRequired", s.unloaded = "unloaded", s))(Or || {});
925
+ const $n = {
925
926
  url: "grafx-media.json",
926
927
  source: "local"
927
928
  /* local */
928
929
  };
929
- class $n {
930
+ class Kn {
930
931
  constructor(o) {
931
932
  this.type = "grafxToken", this.token = o;
932
933
  }
933
934
  }
934
- class Kn {
935
+ class zn {
935
936
  constructor() {
936
937
  this.type = "refreshed";
937
938
  }
938
939
  }
939
- var Or = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.refreshed = "refreshed", s))(Or || {}), Lr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.any = "any", s))(Lr || {}), Fs = /* @__PURE__ */ ((s) => (s.minDimension = "minDimension", s))(Fs || {});
940
+ var Er = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.refreshed = "refreshed", s))(Er || {}), Lr = /* @__PURE__ */ ((s) => (s.grafxToken = "grafxToken", s.any = "any", s))(Lr || {}), Fs = /* @__PURE__ */ ((s) => (s.minDimension = "minDimension", s))(Fs || {});
940
941
  class Dr extends Error {
941
942
  constructor(o, t) {
942
943
  super(o), this.type = t;
@@ -968,7 +969,7 @@ class ye {
968
969
  }, this.isSourceMigrated = (o) => "id" in o;
969
970
  }
970
971
  }
971
- var J, It, gt, Cs;
972
+ var J, At, gt, Cs;
972
973
  let ze = (Cs = class {
973
974
  /**
974
975
  * @ignore
@@ -978,19 +979,19 @@ let ze = (Cs = class {
978
979
  * @ignore
979
980
  */
980
981
  u(this, J);
981
- u(this, It);
982
+ u(this, At);
982
983
  u(this, gt);
983
984
  this.getById = async (e) => (await a(this, J)).getConnectorById(e).then((n) => i(n)).then((n) => {
984
985
  const c = { ...n, parsedData: null };
985
986
  return n.parsedData && (c.parsedData = a(this, gt).makeSingleConnectorBackwardsCompatible(
986
987
  n.parsedData,
987
- a(this, It).get(tt.GraFxStudioEnvironmentApiUrl)
988
+ a(this, At).get(tt.GraFxStudioEnvironmentApiUrl)
988
989
  )), c;
989
990
  }), this.getAllByType = async (e) => (await a(this, J)).getConnectors(e).then((n) => i(n)).then((n) => {
990
991
  const c = { ...n, parsedData: null };
991
992
  return n.parsedData && (c.parsedData = a(this, gt).makeMultipleConnectorsBackwardsCompatible(
992
993
  n.parsedData,
993
- a(this, It).get(tt.GraFxStudioEnvironmentApiUrl)
994
+ a(this, At).get(tt.GraFxStudioEnvironmentApiUrl)
994
995
  )), c;
995
996
  }), this.register = async (e) => {
996
997
  const r = await a(this, J), n = a(this, gt).makeConnectorSourceForwardsCompatible(e);
@@ -1042,7 +1043,7 @@ let ze = (Cs = class {
1042
1043
  )
1043
1044
  )) ?? [], d = r.filter((y) => y.name !== "" && y.value !== ""), p = [...h, ...d];
1044
1045
  await n.setMappings(p);
1045
- }), g(this, J, o), g(this, It, t), g(this, gt, new ye());
1046
+ }), g(this, J, o), g(this, At, t), g(this, gt, new ye());
1046
1047
  }
1047
1048
  async getMappings(o, t) {
1048
1049
  return (await a(this, J)).getConnectorMappings(o).then((r) => i(r)).then(
@@ -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(), At = new WeakMap(), gt = new WeakMap(), Cs);
1059
1060
  var yt, pt;
1060
1061
  class Nr {
1061
1062
  /**
@@ -1154,18 +1155,18 @@ class Ye {
1154
1155
  }
1155
1156
  }
1156
1157
  wt = new WeakMap();
1157
- 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
- class Wn {
1158
+ var Mr = /* @__PURE__ */ ((s) => (s.resize = "resize", s.scale = "scale", s.scaleAndResize = "scaleAndResize", s))(Mr || {}), xr = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.left = "left", s.right = "right", s))(xr || {}), te = /* @__PURE__ */ ((s) => (s.url = "url", s.variable = "variable", s.connector = "connector", s.brandKitMedia = "brandKitMedia", s))(te || {}), Rr = /* @__PURE__ */ ((s) => (s.connector = "connector", s))(Rr || {}), Vr = /* @__PURE__ */ ((s) => (s.text = "text", s.image = "image", s.shape = "shape", s.barcode = "barcode", s.component = "component", s))(Vr || {}), Jr = /* @__PURE__ */ ((s) => (s.variable = "variable", s.text = "text", s))(Jr || {}), Gr = /* @__PURE__ */ ((s) => (s.leftToRight = "leftToRight", s.rightToLeft = "rightToLeft", s.weak = "weak", s))(Gr || {}), Br = /* @__PURE__ */ ((s) => (s.horizontal = "horizontal", s.vertical = "vertical", s.onPath = "onPath", s))(Br || {}), Ur = /* @__PURE__ */ ((s) => (s.top = "top", s.bottom = "bottom", s.middle = "middle", s.justify = "justify", s))(Ur || {}), kr = /* @__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))(kr || {}), _r = /* @__PURE__ */ ((s) => (s.fill = "fill", s.fit = "fit", s.smartCrop = "smartCrop", s.manualCrop = "manualCrop", s))(_r || {}), 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 || {}), Tr = /* @__PURE__ */ ((s) => (s.bringToFront = "bringToFront", s.sendToBack = "sendToBack", s.bringForward = "bringForward", s.sendBackward = "sendBackward", s))(Tr || {}), $r = /* @__PURE__ */ ((s) => (s.relative = "relative", s.start = "start", s.end = "end", s.startAndEnd = "startAndEnd", s.center = "center", s))($r || {}), Kr = /* @__PURE__ */ ((s) => (s.page = "page", s.frame = "frame", s))(Kr || {}), zr = /* @__PURE__ */ ((s) => (s.start = "start", s.end = "end", s.center = "center", s))(zr || {});
1159
+ class jn {
1159
1160
  constructor() {
1160
1161
  this.type = "page";
1161
1162
  }
1162
1163
  }
1163
- class jn {
1164
+ class qn {
1164
1165
  constructor(o, t) {
1165
1166
  this.type = "frame", this.frameId = o, this.edge = t;
1166
1167
  }
1167
1168
  }
1168
- var Es = /* @__PURE__ */ ((s) => (s.frameCrop = "frameCrop", s.assetCrop = "assetCrop", s))(Es || {}), G;
1169
+ var Os = /* @__PURE__ */ ((s) => (s.frameCrop = "frameCrop", s.assetCrop = "assetCrop", s))(Os || {}), G;
1169
1170
  class Ze {
1170
1171
  /**
1171
1172
  * @ignore
@@ -1182,7 +1183,7 @@ class Ze {
1182
1183
  }
1183
1184
  }
1184
1185
  G = new WeakMap();
1185
- var ot, At;
1186
+ var ot, Pt;
1186
1187
  class Qe {
1187
1188
  /**
1188
1189
  * @ignore
@@ -1192,14 +1193,14 @@ class Qe {
1192
1193
  * @ignore
1193
1194
  */
1194
1195
  u(this, ot);
1195
- u(this, At);
1196
- this.query = async (t, e, r = {}) => (await a(this, ot)).fontConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((c) => i(c)), this.detail = async (t, e, r = {}) => (await a(this, ot)).fontConnectorDetail(t, e, JSON.stringify(r)).then((c) => i(c)), this.download = async (t, e, r = {}) => (await a(this, At)).fontConnectorDownload(t, e, JSON.stringify(r)).then((c) => c ?? c), this.preview = async (t, e, r, n = {}) => (await a(this, At)).fontConnectorPreview(t, e, r, JSON.stringify(n)).then((h) => h ?? h), this.getConfigurationOptions = async (t) => (await a(this, ot)).fontConnectorGetConfigurationOptions(t).then((r) => i(r)), this.getCapabilities = async (t) => (await a(this, ot)).fontConnectorGetCapabilities(t).then((r) => i(r)), this.parseDeprecatedFontType = (t) => {
1196
+ u(this, Pt);
1197
+ this.query = async (t, e, r = {}) => (await a(this, ot)).fontConnectorQuery(t, JSON.stringify(e), JSON.stringify(r)).then((c) => i(c)), this.detail = async (t, e, r = {}) => (await a(this, ot)).fontConnectorDetail(t, e, JSON.stringify(r)).then((c) => i(c)), this.download = async (t, e, r = {}) => (await a(this, Pt)).fontConnectorDownload(t, e, JSON.stringify(r)).then((c) => c ?? c), this.preview = async (t, e, r, n = {}) => (await a(this, Pt)).fontConnectorPreview(t, e, r, JSON.stringify(n)).then((h) => h ?? h), this.getConfigurationOptions = async (t) => (await a(this, ot)).fontConnectorGetConfigurationOptions(t).then((r) => i(r)), this.getCapabilities = async (t) => (await a(this, ot)).fontConnectorGetCapabilities(t).then((r) => i(r)), this.parseDeprecatedFontType = (t) => {
1197
1198
  if (t === Bt.file) return Ut.file;
1198
1199
  if (t === Bt.collection) return Ut.collection;
1199
- }, g(this, ot, o), g(this, At, o);
1200
+ }, g(this, ot, o), g(this, Pt, o);
1200
1201
  }
1201
1202
  }
1202
- ot = new WeakMap(), At = new WeakMap();
1203
+ ot = new WeakMap(), Pt = new WeakMap();
1203
1204
  var F;
1204
1205
  class Xe {
1205
1206
  /**
@@ -1214,7 +1215,7 @@ class Xe {
1214
1215
  }
1215
1216
  }
1216
1217
  F = new WeakMap();
1217
- var Pt;
1218
+ var Ft;
1218
1219
  class le {
1219
1220
  /**
1220
1221
  * @ignore
@@ -1223,8 +1224,8 @@ class le {
1223
1224
  /**
1224
1225
  * @ignore
1225
1226
  */
1226
- u(this, Pt);
1227
- this.setShapeProperties = async (t, e) => (await a(this, Pt)).setShapeProperties(t, JSON.stringify(e)).then((n) => i(n)), this.setEnableFill = async (t, e) => {
1227
+ u(this, Ft);
1228
+ this.setShapeProperties = async (t, e) => (await a(this, Ft)).setShapeProperties(t, JSON.stringify(e)).then((n) => i(n)), this.setEnableFill = async (t, e) => {
1228
1229
  const r = { enableFill: e };
1229
1230
  return this.setShapeProperties(t, r);
1230
1231
  }, this.setFillColor = async (t, e) => {
@@ -1242,7 +1243,7 @@ class le {
1242
1243
  }, this.setFlagAllCornersSame = async (t, e) => {
1243
1244
  const r = { allCornersSame: e };
1244
1245
  return this.setShapeProperties(t, r);
1245
- }, this.setShapeCorners = async (t, e) => (await a(this, Pt)).setShapeCorners(t, JSON.stringify(e)).then((n) => i(n)), this.setRadiusAll = async (t, e) => {
1246
+ }, this.setShapeCorners = async (t, e) => (await a(this, Ft)).setShapeCorners(t, JSON.stringify(e)).then((n) => i(n)), this.setRadiusAll = async (t, e) => {
1246
1247
  const r = { radiusAll: e };
1247
1248
  return this.setShapeCorners(t, r);
1248
1249
  }, this.setRadiusTopLeft = async (t, e) => {
@@ -1257,10 +1258,10 @@ class le {
1257
1258
  }, this.setRadiusBottomRight = async (t, e) => {
1258
1259
  const r = { bottomRight: e };
1259
1260
  return this.setShapeCorners(t, r);
1260
- }, g(this, Pt, o);
1261
+ }, g(this, Ft, o);
1261
1262
  }
1262
1263
  }
1263
- Pt = new WeakMap();
1264
+ Ft = new WeakMap();
1264
1265
  var l;
1265
1266
  class ts {
1266
1267
  /**
@@ -1289,7 +1290,7 @@ class ts {
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, 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
+ })), 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 = Os.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",
@@ -1379,12 +1380,12 @@ class ts {
1379
1380
  }, this.setBrandKitGradient = async (t, e) => {
1380
1381
  const r = { id: e };
1381
1382
  return (await a(this, l)).updateFrameGradientSettings(t, JSON.stringify(r)).then((c) => i(c));
1382
- }, g(this, l, o), this.shapeController = new le(a(this, l)), this.constraints = new zr(a(this, l));
1383
+ }, g(this, l, o), this.shapeController = new le(a(this, l)), this.constraints = new Wr(a(this, l));
1383
1384
  }
1384
1385
  }
1385
1386
  l = new WeakMap();
1386
1387
  var _;
1387
- class zr {
1388
+ class Wr {
1388
1389
  /**
1389
1390
  * @ignore
1390
1391
  */
@@ -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));
@@ -1454,7 +1458,7 @@ class ss {
1454
1458
  }
1455
1459
  }
1456
1460
  m = new WeakMap(), $t = new WeakMap();
1457
- var de = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.mediumres = "mediumres", s.highres = "highres", s.original = "original", s))(de || {}), Os = /* @__PURE__ */ ((s) => (s.web = "web", s.print = "print", s.animation = "animation", s))(Os || {}), Y, Kt;
1461
+ var de = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.mediumres = "mediumres", s.highres = "highres", s.original = "original", s))(de || {}), Es = /* @__PURE__ */ ((s) => (s.web = "web", s.print = "print", s.animation = "animation", s))(Es || {}), Y, Kt;
1458
1462
  class rs {
1459
1463
  /**
1460
1464
  * @ignore
@@ -1473,7 +1477,7 @@ class rs {
1473
1477
  t,
1474
1478
  e,
1475
1479
  c,
1476
- Os.web,
1480
+ Es.web,
1477
1481
  JSON.stringify(n)
1478
1482
  ).then((d) => {
1479
1483
  if (d instanceof Uint8Array)
@@ -1503,7 +1507,7 @@ class rs {
1503
1507
  }
1504
1508
  }
1505
1509
  Y = new WeakMap(), Kt = new WeakMap();
1506
- var O, zt, ms;
1510
+ var E, zt, ms;
1507
1511
  let ns = (ms = class {
1508
1512
  /**
1509
1513
  * @ignore
@@ -1512,14 +1516,14 @@ let ns = (ms = class {
1512
1516
  /**
1513
1517
  * @ignore
1514
1518
  */
1515
- u(this, O);
1519
+ u(this, E);
1516
1520
  /**
1517
1521
  * @ignore
1518
1522
  */
1519
1523
  u(this, zt);
1520
- this.add = async () => (await a(this, O)).addPage().then((e) => i(e)), this.remove = async (t) => (await a(this, O)).removePage(t).then((r) => i(r)), this.select = async (t) => (await a(this, O)).selectPage(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, O)).setPageIsVisible(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, O)).duplicatePage(t).then((r) => i(r)), this.getAll = async () => (await a(this, O)).getPages().then((e) => i(e)), this.getById = async (t) => (await a(this, O)).getPageById(t).then((r) => i(r)), this.getSnapshot = async (t, e) => (await a(this, zt)).getPageSnapshotWithSettings(t, e == null ? null : JSON.stringify(e)).then((n) => n ?? n), this.setWidth = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, O)).setPageWidth(e).then((n) => i(n))), this.setHeight = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, O)).setPageHeight(e).then((n) => i(n))), this.setSize = async (t, e) => (await a(this, O)).setPageSize(t, e).then((n) => i(n)), this.move = async (t, e) => (await a(this, O)).reorderPages(t, e).then((n) => i(n)), g(this, O, o), g(this, zt, o);
1524
+ this.add = async () => (await a(this, E)).addPage().then((e) => i(e)), this.remove = async (t) => (await a(this, E)).removePage(t).then((r) => i(r)), this.select = async (t) => (await a(this, E)).selectPage(t).then((r) => i(r)), this.setVisibility = async (t, e) => (await a(this, E)).setPageIsVisible(t, e).then((n) => i(n)), this.duplicate = async (t) => (await a(this, E)).duplicatePage(t).then((r) => i(r)), this.getAll = async () => (await a(this, E)).getPages().then((e) => i(e)), this.getById = async (t) => (await a(this, E)).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) => n ?? n), this.setWidth = async (t, e) => (t !== void 0 && console.warn("pageId has no effect since all pages are being updated simultaneously."), (await a(this, E)).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, E)).setPageHeight(e).then((n) => i(n))), this.setSize = async (t, e) => (await a(this, E)).setPageSize(t, e).then((n) => i(n)), this.move = async (t, e) => (await a(this, E)).reorderPages(t, e).then((n) => i(n)), g(this, E, o), g(this, zt, o);
1521
1525
  }
1522
- }, O = new WeakMap(), zt = new WeakMap(), ms);
1526
+ }, E = new WeakMap(), zt = new WeakMap(), ms);
1523
1527
  var B;
1524
1528
  class as {
1525
1529
  /**
@@ -1535,18 +1539,18 @@ class as {
1535
1539
  }
1536
1540
  B = new WeakMap();
1537
1541
  var x = /* @__PURE__ */ ((s) => (s.info = "info", s.warn = "warn", s.error = "error", s))(x || {}), Ls = /* @__PURE__ */ ((s) => (s.general = "general", s.connector = "connector", s.event = "event", s.engine = "engine", s))(Ls || {}), kt = /* @__PURE__ */ ((s) => (s.throw = "throw", s.log = "log", s))(kt || {});
1538
- class Wr {
1542
+ class jr {
1539
1543
  constructor(o, t, e, r) {
1540
1544
  this.type = "action", this.message = o, this.id = t, this.event = e, this.eventChain = r;
1541
1545
  }
1542
1546
  }
1543
- class jr {
1547
+ class qr {
1544
1548
  constructor(o, t, e) {
1545
1549
  this.type = "dataRow", this.count = o, this.message = t, this.exceptions = e;
1546
1550
  }
1547
1551
  }
1548
- var pe = /* @__PURE__ */ ((s) => (s.shortText = "shortText", s.longText = "longText", s.image = "image", s.list = "list", s.boolean = "boolean", s.group = "group", s.number = "number", s.date = "date", s))(pe || {}), qr = /* @__PURE__ */ ((s) => (s.Monday = "monday", s.Tuesday = "tuesday", s.Wednesday = "wednesday", s.Thursday = "thursday", s.Friday = "friday", s.Saturday = "saturday", s.Sunday = "sunday", s))(qr || {}), 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 || {}), Jt = /* @__PURE__ */ ((s) => (s.visible = "visible", s.invisible = "invisible", s.conditional = "conditional", s))(Jt || {}), 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 || {});
1549
- let Xr = class {
1552
+ var pe = /* @__PURE__ */ ((s) => (s.shortText = "shortText", s.longText = "longText", s.image = "image", s.list = "list", s.boolean = "boolean", s.group = "group", s.number = "number", s.date = "date", s))(pe || {}), Yr = /* @__PURE__ */ ((s) => (s.Monday = "monday", s.Tuesday = "tuesday", s.Wednesday = "wednesday", s.Thursday = "thursday", s.Friday = "friday", s.Saturday = "saturday", s.Sunday = "sunday", s))(Yr || {}), Zr = /* @__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))(Zr || {}), Jt = /* @__PURE__ */ ((s) => (s.visible = "visible", s.invisible = "invisible", s.conditional = "conditional", s))(Jt || {}), Qr = /* @__PURE__ */ ((s) => (s.boolean = "boolean", s.text = "text", s.number = "number", s))(Qr || {}), Xr = /* @__PURE__ */ ((s) => (s.equals = "=", s.notEquals = "!=", s.greaterThan = ">", s.greaterThanOrEquals = ">=", s.lessThan = "<", s.lessThanOrEquals = "<=", s))(Xr || {});
1553
+ let tn = class {
1550
1554
  /**
1551
1555
  * @ignore
1552
1556
  */
@@ -1647,14 +1651,14 @@ let Xr = class {
1647
1651
  }, this.onAsyncError = (e) => {
1648
1652
  const r = JSON.parse(e);
1649
1653
  if ((r == null ? void 0 : r.type) === "dataRow") {
1650
- const n = new jr(
1654
+ const n = new qr(
1651
1655
  r.count,
1652
1656
  r.message,
1653
1657
  r.exceptions
1654
1658
  );
1655
1659
  this.config.events.onAsyncError.trigger(n);
1656
1660
  } else if ((r == null ? void 0 : r.type) === "action") {
1657
- const n = new Wr(
1661
+ const n = new jr(
1658
1662
  r.message,
1659
1663
  r.id,
1660
1664
  r.event,
@@ -1692,7 +1696,7 @@ class is {
1692
1696
  }
1693
1697
  }
1694
1698
  Ct = new WeakMap();
1695
- 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;
1699
+ var en = /* @__PURE__ */ ((s) => (s.FRAME_X = "frameX", s.FRAME_Y = "frameY", s.WIDTH = "width", s.HEIGHT = "height", s.FRAME_ROTATION = "frameRotation", s))(en || {}), sn = /* @__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))(sn || {}), 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 || {}), rn = /* @__PURE__ */ ((s) => (s.MP4 = "mp4", s.GIF = "gif", s.PNG = "png", s.JPG = "jpg", s.PDF = "pdf", s.HTML = "html", s))(rn || {}), ue = /* @__PURE__ */ ((s) => (s.SANDBOX = "sandbox", s.PRODUCTION = "online", s))(ue || {}), Ot;
1696
1700
  class os {
1697
1701
  /**
1698
1702
  * @ignore
@@ -1701,11 +1705,11 @@ class os {
1701
1705
  /**
1702
1706
  * @ignore
1703
1707
  */
1704
- u(this, Ft);
1705
- this.setTool = async (t) => (await a(this, Ft)).setTool(t).then((r) => i(r)), this.getSelected = async () => (await a(this, Ft)).getSelectedTool().then((e) => i(e)), this.setPointer = async () => this.setTool(K.SELECT), this.setSelect = async () => this.setTool(K.SELECT), this.setHand = async () => this.setTool(K.HAND), this.setZoom = async () => this.setTool(K.ZOOM), this.setTextFrame = async () => this.setTool(K.TEXT_FRAME), this.setImageFrame = async () => this.setTool(K.IMAGE_FRAME), this.setShapeRect = async () => this.setTool(K.SHAPE_RECT), this.setShapeEllipse = async () => this.setTool(K.SHAPE_ELLIPSE), this.setShapePolygon = async () => this.setTool(K.SHAPE_POLYGON), g(this, Ft, o);
1708
+ u(this, Ot);
1709
+ 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(K.SELECT), this.setSelect = async () => this.setTool(K.SELECT), this.setHand = async () => this.setTool(K.HAND), this.setZoom = async () => this.setTool(K.ZOOM), this.setTextFrame = async () => this.setTool(K.TEXT_FRAME), this.setImageFrame = async () => this.setTool(K.IMAGE_FRAME), this.setShapeRect = async () => this.setTool(K.SHAPE_RECT), this.setShapeEllipse = async () => this.setTool(K.SHAPE_ELLIPSE), this.setShapePolygon = async () => this.setTool(K.SHAPE_POLYGON), g(this, Ot, o);
1706
1710
  }
1707
1711
  }
1708
- Ft = new WeakMap();
1712
+ Ot = new WeakMap();
1709
1713
  var Z, H, Wt;
1710
1714
  class cs {
1711
1715
  /**
@@ -1753,12 +1757,12 @@ class cs {
1753
1757
  * @returns
1754
1758
  */
1755
1759
  abort: async () => a(this, H).abort()
1756
- }, g(this, Z, o), g(this, Wt, t), g(this, H, new rn(o));
1760
+ }, g(this, Z, o), g(this, Wt, t), g(this, H, new nn(o));
1757
1761
  }
1758
1762
  }
1759
1763
  Z = new WeakMap(), H = new WeakMap(), Wt = new WeakMap();
1760
1764
  var ct;
1761
- class rn {
1765
+ class nn {
1762
1766
  /**
1763
1767
  * @ignore
1764
1768
  */
@@ -1771,7 +1775,7 @@ class rn {
1771
1775
  }
1772
1776
  }
1773
1777
  ct = new WeakMap();
1774
- const nn = (s, o = 2) => {
1778
+ const an = (s, o = 2) => {
1775
1779
  const t = Math.pow(10, o);
1776
1780
  return Math.round(s * t) / t;
1777
1781
  };
@@ -1787,7 +1791,7 @@ class hs {
1787
1791
  u(this, jt);
1788
1792
  u(this, Et);
1789
1793
  this.round = (e, r) => i({
1790
- data: String(nn(e, r)),
1794
+ data: String(an(e, r)),
1791
1795
  success: !0,
1792
1796
  status: 200,
1793
1797
  parsedData: null
@@ -1834,7 +1838,7 @@ class hs {
1834
1838
  }
1835
1839
  jt = new WeakMap(), Et = new WeakMap();
1836
1840
  var qt;
1837
- class an {
1841
+ class on {
1838
1842
  constructor(o) {
1839
1843
  u(this, qt);
1840
1844
  this.setMinimum = async (t, e) => {
@@ -1870,7 +1874,7 @@ class an {
1870
1874
  }
1871
1875
  qt = new WeakMap();
1872
1876
  var Yt;
1873
- class on {
1877
+ class cn {
1874
1878
  constructor(o) {
1875
1879
  u(this, Yt);
1876
1880
  this.setDisplayFormat = async (t, e) => {
@@ -1896,7 +1900,7 @@ class on {
1896
1900
  }
1897
1901
  }
1898
1902
  Yt = new WeakMap();
1899
- var C, Ot, Lt, fs;
1903
+ var w, Lt, Dt, 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);
1909
- u(this, Ot);
1912
+ u(this, w);
1910
1913
  u(this, Lt);
1911
- this.getAll = async () => (await a(this, C)).getVariables().then((e) => i(e)).then((e) => {
1914
+ u(this, Dt);
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, Lt, async (t, e) => (await a(this, w)).setVariablePlaceholder(t, e).then((n) => i(n))), this.setPlaceholder = async (t, e) => a(this, Lt).call(this, t, e), this.resetPlaceholder = async (t) => a(this, Lt).call(this, t, null), g(this, Dt, async (t, e) => (await a(this, w)).setVariableHelpText(t, e).then((n) => i(n))), this.setHelpText = async (t, e) => a(this, Dt).call(this, t, e), this.resetHelpText = async (t) => a(this, Dt).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)), this.highlightUsages = async (t) => (await a(this, w)).highlightVariableUsages(t).then((r) => i(r)), g(this, w, o), this.number = new on(a(this, w)), this.date = new cn(a(this, w));
1945
1949
  }
1946
1950
  makeVariablesBackwardsCompatible(o) {
1947
1951
  return o.map((t) => this.makeVariableBackwardsCompatible(t));
@@ -1954,11 +1958,11 @@ 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);
1961
- class cn {
1964
+ }, w = new WeakMap(), Lt = new WeakMap(), Dt = new WeakMap(), fs);
1965
+ class hn {
1962
1966
  /**
1963
1967
  * @ignore
1964
1968
  */
@@ -1975,7 +1979,7 @@ class cn {
1975
1979
  }
1976
1980
  }
1977
1981
  var ht;
1978
- class hn {
1982
+ class ln {
1979
1983
  /**
1980
1984
  * @ignore
1981
1985
  */
@@ -1987,12 +1991,12 @@ class hn {
1987
1991
  this.getAll = async () => (await a(this, ht)).getVariables().then((e) => i(e)), this.getById = async (t) => (await a(this, ht)).getVariableById(t).then((r) => i(r)), this.getByName = async (t) => (await a(this, ht)).getVariableByName(t).then((r) => i(r)), this.setListVariable = async (t, e) => (await a(this, ht)).setListVariableItems(
1988
1992
  t,
1989
1993
  e.map((n) => JSON.stringify(n))
1990
- ).then((n) => i(n)), g(this, ht, o), this.image = new ln(o);
1994
+ ).then((n) => i(n)), g(this, ht, o), this.image = new dn(o);
1991
1995
  }
1992
1996
  }
1993
1997
  ht = new WeakMap();
1994
1998
  var Q;
1995
- class ln {
1999
+ class dn {
1996
2000
  constructor(o) {
1997
2001
  u(this, Q);
1998
2002
  this.setAllowQuery = async (t, e) => (await a(this, Q)).setImageVariableAllowQuery(t, e).then((n) => i(n)), this.setAllowUpload = async (t, e) => (await a(this, Q)).setImageVariableAllowUpload(t, e).then((n) => i(n)), this.setMinUploadSize = async (t, e, r) => (await a(this, Q)).setImageVariableUploadMinSize(t, e, r).then((c) => i(c)), this.setConnector = async (t, e) => (await a(this, Q)).setImageVariableConnector(t, JSON.stringify(e)).then((n) => i(n)), this.setConnectorContext = async (t, e) => (await a(this, Q)).setImageVariableConnectorContext(t, JSON.stringify(e)).then((n) => i(n)), g(this, Q, o);
@@ -2000,7 +2004,7 @@ class ln {
2000
2004
  }
2001
2005
  Q = new WeakMap();
2002
2006
  var mt;
2003
- class dn {
2007
+ class un {
2004
2008
  /**
2005
2009
  * @ignore
2006
2010
  */
@@ -2013,8 +2017,8 @@ class dn {
2013
2017
  }
2014
2018
  }
2015
2019
  mt = new WeakMap();
2016
- var Dt, ee;
2017
- class un {
2020
+ var Nt, ee;
2021
+ class gn {
2018
2022
  /**
2019
2023
  * @ignore
2020
2024
  */
@@ -2022,15 +2026,15 @@ class un {
2022
2026
  /**
2023
2027
  * @ignore
2024
2028
  */
2025
- u(this, Dt);
2029
+ u(this, Nt);
2026
2030
  /**
2027
2031
  * @ignore
2028
2032
  */
2029
2033
  u(this, ee);
2030
- this.setWidth = async (t) => (await a(this, Dt)).setPageWidth(t).then((r) => i(r)), this.setHeight = async (t) => (await a(this, Dt)).setPageHeight(t).then((r) => i(r)), g(this, Dt, o), g(this, ee, o);
2034
+ 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, ee, o);
2031
2035
  }
2032
2036
  }
2033
- Dt = new WeakMap(), ee = new WeakMap();
2037
+ Nt = new WeakMap(), ee = new WeakMap();
2034
2038
  class ds {
2035
2039
  /**
2036
2040
  * The next initiator is a split off on SDK level to tag next features
@@ -2038,7 +2042,7 @@ class ds {
2038
2042
  * @param config The configuration object where the SDK and editor can get configured
2039
2043
  */
2040
2044
  constructor(o, t, e) {
2041
- this.config = o, this.connection = t, this.editorAPI = e, this.subscriber = new cn(o), this.variable = new hn(this.editorAPI), this.connector = new dn(this.editorAPI), this.page = new un(this.editorAPI), this.canvas = new oe(this.editorAPI);
2045
+ this.config = o, this.connection = t, this.editorAPI = e, this.subscriber = new hn(o), this.variable = new ln(this.editorAPI), this.connector = new un(this.editorAPI), this.page = new gn(this.editorAPI), this.canvas = new oe(this.editorAPI);
2042
2046
  }
2043
2047
  }
2044
2048
  class Ds {
@@ -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
  }
@@ -2120,7 +2124,7 @@ class we {
2120
2124
  * @returns The runtime configuration object.
2121
2125
  */
2122
2126
  static createRuntimeConfig(o) {
2123
- var e, r, n, c, h, d, 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, O, P, W, j, bt, vt, Ce, me, fe, Se, be, ve, Ie, Ae, Pe, Fe, Oe, Ee, 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,
@@ -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
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
- (E = t.logging) == null ? void 0 : E.logger
2198
+ (O = t.logging) == null ? void 0 : O.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
- (St = t.logging) == null ? void 0 : St.logger
2214
+ (bt = t.logging) == null ? void 0 : bt.logger
2211
2215
  ),
2212
- onColorsChanged: new w(
2216
+ onColorsChanged: new C(
2213
2217
  () => t.onColorsChanged,
2214
- (bt = t.logging) == null ? void 0 : bt.logger
2218
+ (vt = t.logging) == null ? void 0 : vt.logger
2215
2219
  ),
2216
- onParagraphStylesChanged: new w(
2220
+ onParagraphStylesChanged: new C(
2217
2221
  () => t.onParagraphStylesChanged,
2218
2222
  (Ce = t.logging) == null ? void 0 : Ce.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
- (Ee = t.logging) == null ? void 0 : Ee.logger
2274
+ (Oe = t.logging) == null ? void 0 : Oe.logger
2271
2275
  ),
2272
- onAsyncError: new w(
2276
+ onAsyncError: new C(
2273
2277
  () => t.onAsyncError,
2274
- (Oe = t.logging) == null ? void 0 : Oe.logger
2278
+ (Ee = t.logging) == null ? void 0 : Ee.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
  )
@@ -2304,7 +2308,7 @@ class we {
2304
2308
  return t == x.info || t == x.warn && (o == x.warn || o == x.error) ? !0 : t == x.error && o == x.error;
2305
2309
  }
2306
2310
  }
2307
- class gn {
2311
+ class yn {
2308
2312
  /**
2309
2313
  * Checks if the given value is a `DatePropertyWrapper`.
2310
2314
  *
@@ -2355,7 +2359,7 @@ class gn {
2355
2359
  }
2356
2360
  }
2357
2361
  var lt;
2358
- class yn {
2362
+ class pn {
2359
2363
  /**
2360
2364
  * @ignore
2361
2365
  */
@@ -2398,8 +2402,8 @@ class yn {
2398
2402
  }
2399
2403
  }
2400
2404
  lt = new WeakMap();
2401
- var Nt;
2402
- class gs extends yn {
2405
+ var Mt;
2406
+ class gs extends pn {
2403
2407
  /**
2404
2408
  * @ignore
2405
2409
  */
@@ -2408,8 +2412,8 @@ class gs extends yn {
2408
2412
  /**
2409
2413
  * @ignore
2410
2414
  */
2411
- u(this, Nt);
2412
- g(this, Nt, e);
2415
+ u(this, Mt);
2416
+ g(this, Mt, e);
2413
2417
  }
2414
2418
  /**
2415
2419
  * This method returns the value for a given configuration key. If a value was not found in the configuration store,
@@ -2417,7 +2421,7 @@ class gs extends yn {
2417
2421
  * @returns value for a given configuration key
2418
2422
  */
2419
2423
  async getValue(t) {
2420
- const e = a(this, Nt).get(t);
2424
+ const e = a(this, Mt).get(t);
2421
2425
  return e != null ? i(
2422
2426
  {
2423
2427
  status: 200,
@@ -2436,10 +2440,10 @@ class gs extends yn {
2436
2440
  */
2437
2441
  async setValue(t, e) {
2438
2442
  const r = super.setValue(t, e);
2439
- return a(this, Nt).set(t, e), r;
2443
+ return a(this, Mt).set(t, e), r;
2440
2444
  }
2441
2445
  }
2442
- Nt = new WeakMap();
2446
+ Mt = new WeakMap();
2443
2447
  var U;
2444
2448
  class ys {
2445
2449
  /**
@@ -2476,7 +2480,7 @@ class ps {
2476
2480
  }
2477
2481
  }
2478
2482
  ft = new WeakMap(), Zt = new WeakMap();
2479
- var Mt;
2483
+ var St;
2480
2484
  class ws {
2481
2485
  /**
2482
2486
  * @ignore
@@ -2485,23 +2489,23 @@ class ws {
2485
2489
  /**
2486
2490
  * @ignore
2487
2491
  */
2488
- u(this, Mt);
2489
- this.linkVariable = async (t, e, r) => (await a(this, Mt)).linkComponentVariable(t, e, r, null).then((c) => i(c)), this.getComponentVariables = async (t) => (await a(this, Mt)).getComponentVariables(t).then((r) => i(r)), g(this, Mt, o);
2492
+ u(this, St);
2493
+ this.linkVariable = async (t, e, r) => (await a(this, St)).linkComponentVariable(t, e, r, null).then((c) => i(c)), this.getComponentVariables = async (t) => (await a(this, St)).getComponentVariables(t).then((r) => i(r)), this.setFitMode = async (t, e) => (await a(this, St)).setComponentLayoutFit(t, e).then((n) => i(n)), g(this, St, o);
2490
2494
  }
2491
2495
  }
2492
- Mt = new WeakMap();
2493
- const pn = "studio-cdn.chiligrafx.com", wn = `https://${pn}/editor/${Ss.current}/web`;
2496
+ St = new WeakMap();
2497
+ const wn = "studio-cdn.chiligrafx.com", Cn = `https://${wn}/editor/${Ss.current}/web`;
2494
2498
  let et;
2495
- class Qn {
2499
+ class Xn {
2496
2500
  /**
2497
2501
  * The SDK should be configured clientside and it exposes all controllers to work with in other applications
2498
2502
  * @param config The configuration object where the SDK and editor can get configured
2499
2503
  */
2500
2504
  constructor(o) {
2501
- this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new gn(), this.loadEditor = () => {
2505
+ this.localConfig = /* @__PURE__ */ new Map(), this.dataItemMappingTools = new yn(), 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,
@@ -2570,110 +2574,111 @@ 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 = 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 tn(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 || {});
2577
- const Xn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2580
+ 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 || {}), In = /* @__PURE__ */ ((s) => (s.preview = "preview", s.normal = "normal", s))(In || {}), An = /* @__PURE__ */ ((s) => (s.linear = "linear", s))(An || {}), Pn = /* @__PURE__ */ ((s) => (s.local = "linearLocal", s.linearBrandKit = "linearBrandKit", s))(Pn || {}), Fn = /* @__PURE__ */ ((s) => (s.Square = "square", s.Line = "line", s))(Fn || {}), On = /* @__PURE__ */ ((s) => (s.thumbnail = "thumbnail", s.highest = "highest", s.medium = "medium", s))(On || {}), 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 || {}), Mn = /* @__PURE__ */ ((s) => (s.SUPERSCRIPT = "superscript", s.SUBSCRIPT = "subscript", s.NORMAL = "normal", s))(Mn || {}), xn = /* @__PURE__ */ ((s) => (s.none = "none", s.bullet = "bullet", s.number = "number", s))(xn || {}), Rn = /* @__PURE__ */ ((s) => (s.STYLE = "textStyle", s.PROPERTIES = "textProperties", s.APPEARANCE = "appearance", s))(Rn || {}), 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 || {}), Jn = /* @__PURE__ */ ((s) => (s.arabic = "arabic", s.romanUpperCase = "romanUpperCase", s.romanLowerCase = "romanLowerCase", s.latinUpperCase = "latinUpperCase", s.latinLowerCase = "latinLowerCase", s))(Jn || {}), Gn = /* @__PURE__ */ ((s) => (s.none = "none", s.dash = "dash", s.dot = "dot", s.colon = "colon", s.roundBracket = "roundBracket", s))(Gn || {}), Bn = /* @__PURE__ */ ((s) => (s.selectedLayoutChanged = "selectedLayoutChanged", s.frameMoved = "frameMoved", s.pageSizeChanged = "pageSizeChanged", s.documentLoaded = "documentLoaded", s.variableValueChanged = "variableValueChanged", s))(Bn || {}), Un = /* @__PURE__ */ ((s) => (s.ellipse = "ellipse", s.rectangle = "rectangle", s.polygon = "polygon", s))(Un || {}), kn = /* @__PURE__ */ ((s) => (s.all = "all", s.only = "only", s.none = "none", s))(kn || {}), _n = /* @__PURE__ */ ((s) => (s.normal = "normal", s.textEdit = "textEdit", s.customCrop = "customCrop", s.frameSubjectArea = "frameSubjectArea", s.perAssetCrop = "perAssetCrop", s.gradient = "gradient", s))(_n || {}), Ns = /* @__PURE__ */ ((s) => (s.url = "url", s.grafx = "grafx", s.local = "local", s))(Ns || {});
2581
+ const ta = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2578
2582
  __proto__: null,
2579
2583
  ConnectorRegistrationSource: Ns
2580
2584
  }, Symbol.toStringTag, { value: "Module" }));
2581
2585
  export {
2582
- Wr as ActionAsyncError,
2583
- Gn as ActionEditorEvent,
2584
- On as Alignment,
2585
- Kr as AnchorTargetEdgeType,
2586
- $r as AnchorTargetType,
2587
- Or as AuthCredentialsTypeEnum,
2586
+ jr as ActionAsyncError,
2587
+ Bn as ActionEditorEvent,
2588
+ Ln as Alignment,
2589
+ zr as AnchorTargetEdgeType,
2590
+ Kr as AnchorTargetType,
2591
+ Er as AuthCredentialsTypeEnum,
2588
2592
  Lr as AuthRefreshTypeEnum,
2589
- Mr as AutoGrowDirection,
2590
- vt as BarcodeCharacterSet,
2593
+ xr as AutoGrowDirection,
2594
+ It as BarcodeCharacterSet,
2591
2595
  Rt as BarcodeErrorCorrectionLevel,
2592
- Vr as BarcodeSourceTypeEnum,
2596
+ Jr as BarcodeSourceTypeEnum,
2593
2597
  $ as BarcodeType,
2594
2598
  lr as BarcodeValidationResult,
2595
- bn as BasicAnimationsEmphasisStyles,
2596
- Ur as BlendMode,
2597
- Dn as Case,
2599
+ vn as BasicAnimationsEmphasisStyles,
2600
+ kr as BlendMode,
2601
+ Nn as Case,
2598
2602
  q as ColorType,
2599
2603
  ae as ColorUsageType,
2600
- Fn as ComponentPreviewType,
2601
- xr as ComponentSourceTypeEnum,
2604
+ Mr as ComponentFitEnum,
2605
+ On as ComponentPreviewType,
2606
+ Rr as ComponentSourceTypeEnum,
2602
2607
  Ar as ConnectorConfigContextType,
2603
2608
  Ir as ConnectorConfigValueType,
2604
- Er as ConnectorEventType,
2609
+ Or as ConnectorEventType,
2605
2610
  hr as ConnectorHttpError,
2606
- Hn as ConnectorMapping,
2611
+ Tn as ConnectorMapping,
2607
2612
  Fr as ConnectorMappingDirection,
2608
2613
  Pr as ConnectorMappingSource,
2609
2614
  Vt as ConnectorRegistrationSource,
2610
2615
  he as ConnectorStateType,
2611
2616
  Sr as ConnectorType,
2612
2617
  yr as ConstraintMode,
2613
- Un as CornerRadiusType,
2614
- Es as CropType,
2615
- jr as DataRowAsyncError,
2616
- qr as Day,
2618
+ kn as CornerRadiusType,
2619
+ Os as CropType,
2620
+ qr as DataRowAsyncError,
2621
+ Yr as Day,
2617
2622
  ce as DeprecatedMediaConnectorDownloadType,
2618
2623
  Bt as DeprecatedMediaType,
2619
2624
  or as DocumentIssueTypeEnum,
2620
2625
  Ps as DocumentType,
2621
- sn as DownloadFormats,
2622
- fn as EaseTypes,
2623
- kn as EngineEditModeType,
2626
+ rn as DownloadFormats,
2627
+ Sn as EaseTypes,
2628
+ _n as EngineEditModeType,
2624
2629
  ue as EnvironmentType,
2625
- kr as FitMode,
2626
- _r as FitModePosition,
2627
- Gr as FlowDirection,
2628
- Pn as FontPreviewFormat,
2630
+ _r as FitMode,
2631
+ Hr as FitModePosition,
2632
+ Br as FlowDirection,
2633
+ Fn as FontPreviewFormat,
2629
2634
  En as FontWeights,
2630
- jn as FrameAnchorTarget,
2631
- Tr as FrameAnchorType,
2635
+ qn as FrameAnchorTarget,
2636
+ $r as FrameAnchorType,
2632
2637
  ar as FrameEditingMode,
2633
- tn as FramePropertyNames,
2634
- Rr as FrameTypeEnum,
2635
- In as GradientType,
2636
- An as GradientUsageType,
2637
- $n as GrafxTokenAuthCredentials,
2638
+ en as FramePropertyNames,
2639
+ Vr as FrameTypeEnum,
2640
+ An as GradientType,
2641
+ Pn as GradientUsageType,
2642
+ Kn as GrafxTokenAuthCredentials,
2638
2643
  te as ImageSourceTypeEnum,
2639
2644
  gr as LayoutIntent,
2640
- en as LayoutPropertyNames,
2645
+ sn as LayoutPropertyNames,
2641
2646
  ur as LayoutType,
2642
- Yr as Locale,
2643
- Mn as MarkedListType,
2647
+ Zr as Locale,
2648
+ xn as MarkedListType,
2644
2649
  dr as MeasurementUnit,
2645
- Os as MediaDownloadIntent,
2650
+ Es as MediaDownloadIntent,
2646
2651
  de as MediaDownloadType,
2647
2652
  Ut as MediaType,
2648
- Xn as Next,
2649
- Vn as NumberListFormat,
2650
- Jn as NumberListSeparatorSymbol,
2651
- Wn as PageAnchorTarget,
2653
+ ta as Next,
2654
+ Jn as NumberListFormat,
2655
+ Gn as NumberListSeparatorSymbol,
2656
+ jn as PageAnchorTarget,
2652
2657
  X as PositionEnum,
2653
- Kn as RefreshedAuthCredendentials,
2654
- Nn as Scripting,
2655
- xn as SelectedTextStyleSections,
2656
- Rn as SelectedTextStyles,
2657
- mn as ShakeDirections,
2658
- Bn as ShapeType,
2659
- Cn as SlideDirections,
2658
+ zn as RefreshedAuthCredendentials,
2659
+ Mn as Scripting,
2660
+ Rn as SelectedTextStyleSections,
2661
+ Vn as SelectedTextStyles,
2662
+ fn as ShakeDirections,
2663
+ Un as ShapeType,
2664
+ mn as SlideDirections,
2660
2665
  br as SortBy,
2661
2666
  vr as SortOrder,
2662
- Jr as TextDirection,
2663
- Ln as TextPosition,
2667
+ Gr as TextDirection,
2668
+ Dn as TextPosition,
2664
2669
  K as ToolType,
2665
- Sn as TweenTypes,
2666
- Hr as UpdateZIndexMethod,
2670
+ bn as TweenTypes,
2671
+ Tr as UpdateZIndexMethod,
2667
2672
  Dr as UploadAssetValidationError,
2668
2673
  Fs as UploadAssetValidationErrorType,
2669
2674
  pe as VariableType,
2670
- Qr as VariableVisibilityOperator,
2671
- Zr as VariableVisibilityTargetType,
2675
+ Xr as VariableVisibilityOperator,
2676
+ Qr as VariableVisibilityTargetType,
2672
2677
  Jt as VariableVisibilityType,
2673
- Br as VerticalAlign,
2674
- vn as ViewMode,
2678
+ Ur as VerticalAlign,
2679
+ In as ViewMode,
2675
2680
  tt as WellKnownConfigurationKeys,
2676
- Qn as default,
2677
- Tn as grafxMediaConnectorRegistration
2681
+ Xn as default,
2682
+ $n as grafxMediaConnectorRegistration
2678
2683
  };
2679
2684
  //# sourceMappingURL=main.es.js.map