@spiffcommerce/core 26.23.4 → 26.24.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.
package/dist/index.mjs CHANGED
@@ -19,7 +19,7 @@ import { split as Ke } from "unicode-default-word-boundary";
19
19
  import sn from "lodash.debounce";
20
20
  import "fs";
21
21
  import "path";
22
- var ue = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(ue || {}), et = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(et || {}), D = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(D || {}), hr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(hr || {}), Gt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Gt || {}), T = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(T || {}), mr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(mr || {}), gr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(gr || {}), fr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(fr || {}), da = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(da || {}), pr = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(pr || {}), he = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(he || {}), kt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(kt || {}), H = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(H || {}), Cr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Cr || {});
22
+ var he = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(he || {}), et = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(et || {}), D = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(D || {}), hr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(hr || {}), Gt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Gt || {}), T = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(T || {}), mr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(mr || {}), gr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(gr || {}), fr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(fr || {}), da = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(da || {}), pr = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(pr || {}), me = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(me || {}), kt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(kt || {}), H = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(H || {}), Cr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Cr || {});
23
23
  class on extends Error {
24
24
  constructor(t) {
25
25
  super(t), this.name = this.constructor.name;
@@ -30,7 +30,7 @@ class Yt extends on {
30
30
  super(`ConfigurationError - ${t}`);
31
31
  }
32
32
  }
33
- class me extends Yt {
33
+ class ge extends Yt {
34
34
  constructor(t) {
35
35
  super(`Option not Configured: ${t.stepTitle}`), this.optionId = (t == null ? void 0 : t.optionId) || "N/A";
36
36
  }
@@ -50,32 +50,32 @@ class Wt extends Yt {
50
50
  super(`Resource not found for asset: ${t.name}`), this.asset = t;
51
51
  }
52
52
  }
53
- class ge extends Yt {
53
+ class fe extends Yt {
54
54
  constructor(t, e) {
55
55
  super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
56
56
  }
57
57
  }
58
- class ve extends on {
58
+ class Ee extends on {
59
59
  constructor(t) {
60
60
  super(`ImplementationError - ${t}`);
61
61
  }
62
62
  }
63
- class z extends ve {
63
+ class z extends Ee {
64
64
  constructor(t) {
65
65
  super(`Unhandled Behavior Encountered: ${t}`);
66
66
  }
67
67
  }
68
- class Dt extends ve {
68
+ class Dt extends Ee {
69
69
  constructor(t) {
70
70
  super(`Parsing Error: ${t}`);
71
71
  }
72
72
  }
73
- class ut extends ve {
73
+ class ut extends Ee {
74
74
  constructor(t) {
75
75
  super(`Client Error: ${t}`);
76
76
  }
77
77
  }
78
- class Ee extends ve {
78
+ class Be extends Ee {
79
79
  constructor(t) {
80
80
  super(`Resource Generation Failed: ${t}`);
81
81
  }
@@ -195,7 +195,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
195
195
  return t;
196
196
  const a = (async () => await (await ct(r)).text())();
197
197
  return xa.set(r, a), a;
198
- }, Mt = (r) => r.every((t) => t !== "undefined"), te = (r) => Mt([typeof document]) ? document.createElement(r) : Jt().document.createElement(r), Er = (r, t) => {
198
+ }, Mt = (r) => r.every((t) => t !== "undefined"), ee = (r) => Mt([typeof document]) ? document.createElement(r) : Jt().document.createElement(r), Er = (r, t) => {
199
199
  if (Mt([typeof document]))
200
200
  return document.createElementNS(r, t);
201
201
  const a = Jt().document.createElement(t);
@@ -205,7 +205,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
205
205
  return new DOMParser();
206
206
  const r = Jt();
207
207
  return new r.DOMParser();
208
- }, Br = () => Mt([typeof DOMParser]) ? DOMParser : Jt().DOMParser, Be = (r, t) => new Promise((e, a) => {
208
+ }, Br = () => Mt([typeof DOMParser]) ? DOMParser : Jt().DOMParser, be = (r, t) => new Promise((e, a) => {
209
209
  t ? cn(r).then(e).catch(a) : ct(r).then((n) => {
210
210
  n.arrayBuffer().then(e).catch(a);
211
211
  }).catch((n) => {
@@ -229,7 +229,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
229
229
  return new XMLSerializer();
230
230
  const r = Jt();
231
231
  return new r.XMLSerializer();
232
- }, ka = (r) => btoa(r), be = (r) => {
232
+ }, ka = (r) => btoa(r), Ie = (r) => {
233
233
  function t() {
234
234
  const a = new Uint8Array(r), n = 4;
235
235
  if (a.length >= n) {
@@ -257,7 +257,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
257
257
  const e = t();
258
258
  return e || "image/svg+xml";
259
259
  }, tc = async (r) => {
260
- const t = await cn(r), e = ln.get(r) || be(t);
260
+ const t = await cn(r), e = ln.get(r) || Ie(t);
261
261
  return await Pr(new Blob([t], { type: e }));
262
262
  }, Ir = (r) => {
263
263
  let t = "";
@@ -266,7 +266,7 @@ const ln = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), xa = /* @_
266
266
  t += String.fromCharCode(r[a]);
267
267
  return t;
268
268
  }, Dr = async (r) => {
269
- const t = be(r), e = new Uint8Array(r), a = Ir(e), n = btoa(a);
269
+ const t = Ie(r), e = new Uint8Array(r), a = Ir(e), n = btoa(a);
270
270
  return `data:${t};base64,${n}`;
271
271
  }, Aa = (r) => `data:image/svg+xml;base64,${btoa(r)}`, An = (r) => {
272
272
  const t = r.replace(/\r?\n/g, ""), e = t.indexOf(",");
@@ -400,16 +400,16 @@ let Ne;
400
400
  function ha() {
401
401
  return Ne === void 0 && (Ne = Br()), Ne;
402
402
  }
403
- let ee = null;
403
+ let ae = null;
404
404
  const Nr = (r) => new Promise((t) => {
405
- if (be(r) !== "image/jpeg")
405
+ if (Ie(r) !== "image/jpeg")
406
406
  return t(1);
407
407
  cr(r).then((a) => t(a || 1)).catch(() => t(1));
408
408
  }), Rr = async () => {
409
- if (ee !== null)
410
- return !ee;
409
+ if (ae !== null)
410
+ return !ae;
411
411
  const t = await Kt("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
412
- return ee = t.width === 2 && t.height === 3, !ee;
412
+ return ae = t.width === 2 && t.height === 3, !ae;
413
413
  }, Or = (r) => {
414
414
  const e = r.naturalWidth / r.naturalHeight;
415
415
  return r.naturalHeight <= 8192 && r.naturalWidth <= 8192 ? [r.naturalWidth, r.naturalHeight] : r.naturalHeight > r.naturalWidth ? [e * 8192, 8192] : [8192, 8192 / e];
@@ -445,9 +445,9 @@ const Nr = (r) => new Promise((t) => {
445
445
  break;
446
446
  }
447
447
  return d.drawImage(e, 0, 0, o, l), c;
448
- }, Ie = async (r) => {
448
+ }, De = async (r) => {
449
449
  const t = await Ur(r);
450
- return be(r) === "image/jpeg" ? {
450
+ return Ie(r) === "image/jpeg" ? {
451
451
  dataUrl: t.toDataURL("image/jpeg", 1),
452
452
  height: t.height,
453
453
  width: t.width
@@ -3191,7 +3191,7 @@ function Ta(r) {
3191
3191
  const t = r.substring(1).toUpperCase();
3192
3192
  return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
3193
3193
  }
3194
- const ae = (r) => {
3194
+ const ne = (r) => {
3195
3195
  const t = fn(r.spotColor);
3196
3196
  return t ? `${r.browserValue} ${t}` : r.browserValue;
3197
3197
  }, fn = (r) => {
@@ -3293,13 +3293,13 @@ const ae = (r) => {
3293
3293
  if (o)
3294
3294
  a.setAttribute(
3295
3295
  "fill",
3296
- e ? ae(o) : o.browserValue
3296
+ e ? ne(o) : o.browserValue
3297
3297
  );
3298
3298
  else {
3299
3299
  const l = t[s];
3300
3300
  l && a.setAttribute(
3301
3301
  "fill",
3302
- e ? ae(l) : l.browserValue
3302
+ e ? ne(l) : l.browserValue
3303
3303
  );
3304
3304
  }
3305
3305
  }
@@ -3311,13 +3311,13 @@ const ae = (r) => {
3311
3311
  if (o)
3312
3312
  a.setAttribute(
3313
3313
  "stroke",
3314
- e ? ae(o) : o.browserValue
3314
+ e ? ne(o) : o.browserValue
3315
3315
  );
3316
3316
  else {
3317
3317
  const l = t[s];
3318
3318
  l && a.setAttribute(
3319
3319
  "fill",
3320
- e ? ae(l) : l.browserValue
3320
+ e ? ne(l) : l.browserValue
3321
3321
  );
3322
3322
  }
3323
3323
  }
@@ -3523,7 +3523,7 @@ const ae = (r) => {
3523
3523
  class ai {
3524
3524
  constructor() {
3525
3525
  this.cache = /* @__PURE__ */ new Map(), this.bgrmProcessCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(), this.loadImageAsFileInfo = async (t) => {
3526
- const e = await t.arrayBuffer(), a = await Ie(e), n = (i, s) => {
3526
+ const e = await t.arrayBuffer(), a = await De(e), n = (i, s) => {
3527
3527
  const o = atob(i.split(",")[1]), l = [];
3528
3528
  for (let c = 0; c < o.length; c++)
3529
3529
  l.push(o.charCodeAt(c));
@@ -3613,7 +3613,7 @@ class ai {
3613
3613
  }, a, n);
3614
3614
  }
3615
3615
  async uploadFile(t, e) {
3616
- const n = this.isRaster(t) ? ue.Image : ue.Illustration, i = await this.loadImageAsFileInfo(t);
3616
+ const n = this.isRaster(t) ? he.Image : he.Illustration, i = await this.loadImageAsFileInfo(t);
3617
3617
  return await this.uploadAssetWithProgress(i, n, e, !0);
3618
3618
  }
3619
3619
  async removeBackgroundFromAsset(t) {
@@ -3949,7 +3949,7 @@ const X = new li(), vn = y`
3949
3949
  activeAddons
3950
3950
  }
3951
3951
  }
3952
- `, De = y`
3952
+ `, Pe = y`
3953
3953
  fragment AdditionalIntegrationProductFields on IntegrationProduct {
3954
3954
  id
3955
3955
  product {
@@ -3968,7 +3968,7 @@ const X = new li(), vn = y`
3968
3968
  }
3969
3969
  }
3970
3970
  `, ci = y`
3971
- ${De}
3971
+ ${Pe}
3972
3972
  mutation CreateTransactions(
3973
3973
  $inputs: [TransactionCreateInput]!
3974
3974
  $marketplaceThemeInstallId: String
@@ -4072,7 +4072,7 @@ const X = new li(), vn = y`
4072
4072
  url
4073
4073
  }
4074
4074
  `, di = y`
4075
- ${De}
4075
+ ${Pe}
4076
4076
  ${En}
4077
4077
  ${Bn}
4078
4078
  ${vn}
@@ -4309,8 +4309,8 @@ const X = new li(), vn = y`
4309
4309
  workflowState
4310
4310
  }
4311
4311
  }
4312
- `, In = y`
4313
- ${De}
4312
+ `, In = (r) => y`
4313
+ ${Pe}
4314
4314
  fragment IntegrationProductFields on IntegrationProduct {
4315
4315
  id
4316
4316
  externalProductId
@@ -4325,6 +4325,7 @@ const X = new li(), vn = y`
4325
4325
  enabled
4326
4326
  externalIntegrationId
4327
4327
  type
4328
+ isCurrent
4328
4329
  }
4329
4330
  product {
4330
4331
  id
@@ -4370,17 +4371,36 @@ const X = new li(), vn = y`
4370
4371
  minQty
4371
4372
  percentage
4372
4373
  }
4374
+ ${r ? `
4375
+ integrationProducts {
4376
+ id
4377
+ externalProductId
4378
+ externalVariantId
4379
+ additionalExternalProductId
4380
+ additionalExternalVariantId
4381
+ additionalIntegrationProduct {
4382
+ ...AdditionalIntegrationProductFields
4383
+ }
4384
+ integration {
4385
+ id
4386
+ enabled
4387
+ externalIntegrationId
4388
+ type
4389
+ isCurrent
4390
+ }
4391
+ }
4392
+ ` : ""}
4373
4393
  }
4374
4394
  }
4375
- `, gi = y`
4376
- ${In}
4395
+ `, gi = (r) => y`
4396
+ ${In(r)}
4377
4397
  query GetIntegrationProducts($ids: [String!]!) {
4378
4398
  integrationProducts(ids: $ids) {
4379
4399
  ...IntegrationProductFields
4380
4400
  }
4381
4401
  }
4382
- `, fi = y`
4383
- ${In}
4402
+ `, fi = (r) => y`
4403
+ ${In(r)}
4384
4404
  query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
4385
4405
  integrationProductFromExternalIds(
4386
4406
  externalIntegrationId: $externalIntegrationId
@@ -4967,7 +4987,7 @@ const X = new li(), vn = y`
4967
4987
  }
4968
4988
  }
4969
4989
  }
4970
- `, Pe = y`
4990
+ `, Fe = y`
4971
4991
  fragment MarketplaceThemeInstallConfigurationFields on MarketplaceThemeInstallConfiguration {
4972
4992
  id
4973
4993
  themeInstallId
@@ -5042,7 +5062,7 @@ const X = new li(), vn = y`
5042
5062
  }
5043
5063
  }
5044
5064
  `, Ii = y`
5045
- ${Pe}
5065
+ ${Fe}
5046
5066
  query GetMarketplaceThemeInstallConfiguration($themeConfigurationId: String!, $themeInstallId: String!) {
5047
5067
  marketplaceThemeInstallConfiguration(id: $themeConfigurationId, themeInstallId: $themeInstallId, raw: false) {
5048
5068
  ...MarketplaceThemeInstallConfigurationFields
@@ -5050,7 +5070,7 @@ const X = new li(), vn = y`
5050
5070
  }
5051
5071
  `, Di = y`
5052
5072
  ${vn}
5053
- ${Pe}
5073
+ ${Fe}
5054
5074
  query GetCurrentIntegration($themeConfigurationId: String) {
5055
5075
  currentIntegration {
5056
5076
  id
@@ -5062,7 +5082,7 @@ const X = new li(), vn = y`
5062
5082
  }
5063
5083
  }
5064
5084
  `, Pi = y`
5065
- ${Pe}
5085
+ ${Fe}
5066
5086
  query ReadTransactionForMarketplaceTheme($id: String!) {
5067
5087
  transactions(ids: [$id]) {
5068
5088
  marketplaceThemeInstallConfiguration(raw: false) {
@@ -5071,7 +5091,7 @@ const X = new li(), vn = y`
5071
5091
  }
5072
5092
  }
5073
5093
  `, Fi = y`
5074
- ${Pe}
5094
+ ${Fe}
5075
5095
  query ReadBundleForMarketplaceTheme($id: String!) {
5076
5096
  bundles(ids: [$id]) {
5077
5097
  marketplaceThemeInstallConfiguration(raw: false) {
@@ -5420,13 +5440,13 @@ const Q = () => {
5420
5440
  y: o.y - r.height * e.y / 2
5421
5441
  };
5422
5442
  return {
5423
- a: ne(n, l, a),
5424
- b: ne(i, l, a),
5425
- c: ne(s, l, a),
5426
- d: ne(o, l, a),
5443
+ a: re(n, l, a),
5444
+ b: re(i, l, a),
5445
+ c: re(s, l, a),
5446
+ d: re(o, l, a),
5427
5447
  center: l
5428
5448
  };
5429
- }, ne = (r, t, e) => {
5449
+ }, re = (r, t, e) => {
5430
5450
  const a = Math.sin(e), n = Math.cos(e);
5431
5451
  return {
5432
5452
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
@@ -5640,7 +5660,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5640
5660
  const a = An(r), n = Je(a);
5641
5661
  return aa(r, n), n;
5642
5662
  } else {
5643
- const a = await Be(r, !0), n = Je(a);
5663
+ const a = await be(r, !0), n = Je(a);
5644
5664
  return aa(r, n), await br(n, r), n;
5645
5665
  }
5646
5666
  }
@@ -5693,17 +5713,17 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5693
5713
  h.appendChild(F);
5694
5714
  }
5695
5715
  return e.querySelectorAll("text").forEach((d) => d.remove()), Et().serializeToString(a);
5696
- }, fe = (r, t, e, a) => Math.max(Gi(r.join(`
5716
+ }, pe = (r, t, e, a) => Math.max(Gi(r.join(`
5697
5717
  `), e, a), t), Ra = (r, t, e, a, n, i) => {
5698
5718
  const s = (i || Ca) * n.getApproximateHeight(), o = t.split(`
5699
5719
  `);
5700
5720
  try {
5701
- const l = o.flatMap((d) => le(d, r.width, a, n)), c = l.flatMap((d) => d.lines);
5721
+ const l = o.flatMap((d) => ce(d, r.width, a, n)), c = l.flatMap((d) => d.lines);
5702
5722
  return {
5703
5723
  lines: c,
5704
5724
  requiredHeight: l.flatMap((d) => d.lines).length * (a * s),
5705
5725
  fontSize: e,
5706
- requiredWidth: fe(c, r.width, a, n)
5726
+ requiredWidth: pe(c, r.width, a, n)
5707
5727
  };
5708
5728
  } catch {
5709
5729
  const c = t.split("");
@@ -5711,17 +5731,17 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5711
5731
  lines: c,
5712
5732
  requiredHeight: c.length * (a * s),
5713
5733
  fontSize: e,
5714
- requiredWidth: fe(c, r.width, a, n)
5734
+ requiredWidth: pe(c, r.width, a, n)
5715
5735
  };
5716
5736
  }
5717
- }, le = (r, t, e, a) => {
5737
+ }, ce = (r, t, e, a) => {
5718
5738
  const n = ht(r, e, a);
5719
5739
  if (n <= t)
5720
5740
  return { lines: [r], width: n };
5721
5741
  if (!(r.indexOf(" ") > -1)) {
5722
5742
  if (r.length <= 1)
5723
5743
  throw new Error(`Character ${r} is wider than region`);
5724
- const d = Math.floor(r.length / 2), A = le(r.slice(0, d), t, e, a), u = le(r.slice(d), t, e, a);
5744
+ const d = Math.floor(r.length / 2), A = ce(r.slice(0, d), t, e, a), u = ce(r.slice(d), t, e, a);
5725
5745
  return { lines: [...A.lines, ...u.lines], width: Math.max(A.width, u.width) };
5726
5746
  }
5727
5747
  const s = r.split(" "), o = [];
@@ -5729,7 +5749,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5729
5749
  for (; c < s.length; ) {
5730
5750
  const d = s[c];
5731
5751
  if (ht(d, e, a) > t) {
5732
- const A = le(d, t, e, a);
5752
+ const A = ce(d, t, e, a);
5733
5753
  o.push(...A.lines), l = Math.max(l, A.width), c++;
5734
5754
  } else {
5735
5755
  const A = [d];
@@ -5760,14 +5780,14 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5760
5780
  return {
5761
5781
  lines: o,
5762
5782
  requiredHeight: t.height,
5763
- requiredWidth: fe(o, t.width, s, n),
5783
+ requiredWidth: pe(o, t.width, s, n),
5764
5784
  fontSize: t.fontSize
5765
5785
  };
5766
5786
  const l = t.width !== e.width != (t.height !== e.height);
5767
5787
  return t.lineHeight === e.lineHeight && !l && e.input === r ? {
5768
5788
  lines: o,
5769
5789
  requiredHeight: t.height,
5770
- requiredWidth: fe(o, t.width, s, n),
5790
+ requiredWidth: pe(o, t.width, s, n),
5771
5791
  fontSize: $i(o, n, i, t.width, t.height, a)
5772
5792
  } : Ra(t, r, t.fontSize, s, n, a);
5773
5793
  }, zi = (r, t, e, a, n) => {
@@ -5802,7 +5822,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5802
5822
  stripControlCharacters: !0,
5803
5823
  vertical: !1,
5804
5824
  uppercase: !1
5805
- }, pe = (r, t = Oa) => {
5825
+ }, Ce = (r, t = Oa) => {
5806
5826
  const e = { ...Oa, ...t };
5807
5827
  let a = r || "";
5808
5828
  return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
@@ -6142,7 +6162,7 @@ const Zt = (r) => {
6142
6162
  if (!e.asset)
6143
6163
  throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
6144
6164
  return e;
6145
- }, Fe = async (r) => {
6165
+ }, xe = async (r) => {
6146
6166
  if (Le.has(r))
6147
6167
  return Le.get(r);
6148
6168
  const e = (async () => {
@@ -6213,7 +6233,7 @@ const Zt = (r) => {
6213
6233
  };
6214
6234
  return At.set(r, s), s;
6215
6235
  } else {
6216
- const a = await Be(r, !0), n = await Ie(a), i = {
6236
+ const a = await be(r, !0), n = await De(a), i = {
6217
6237
  src: r,
6218
6238
  width: n.width,
6219
6239
  height: n.height,
@@ -6299,7 +6319,7 @@ const Zt = (r) => {
6299
6319
  o.height = o.width / p, o.top += (h - o.height) / 2;
6300
6320
  }
6301
6321
  if (e && t === T.Image) {
6302
- const l = o.height, c = await Be(e), d = await Ie(c), A = d.width / d.height;
6322
+ const l = o.height, c = await be(e), d = await De(c), A = d.width / d.height;
6303
6323
  o.height = o.width / A, o.top += (l - o.height) / 2;
6304
6324
  }
6305
6325
  if (e && t === T.Textbox && (a != null && a.text) && (a != null && a.fontScale)) {
@@ -6311,7 +6331,7 @@ const Zt = (r) => {
6311
6331
  };
6312
6332
  class pc {
6313
6333
  static async getFrame(t, e) {
6314
- const a = await Nn(e.region, e.src), n = await Fe(a), i = e.region || await Ut(t, T.Frame);
6334
+ const a = await Nn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
6315
6335
  return {
6316
6336
  id: Q(),
6317
6337
  x: i.left,
@@ -6358,7 +6378,7 @@ class pc {
6358
6378
  const { configuration: a, fontSrc: n, designInputStep: i } = e, s = await Tt(n), o = {
6359
6379
  assetUrl: n,
6360
6380
  name: s.names.fullName.en
6361
- }, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = pe(c, {
6381
+ }, l = (i == null ? void 0 : i.text) || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = Ce(c, {
6362
6382
  vertical: a.vertical,
6363
6383
  uppercase: a.uppercase
6364
6384
  }), A = e.region || await Ut(t, T.Textbox, n, {
@@ -7156,7 +7176,7 @@ class za {
7156
7176
  if (this.configuration.type === D.ProductOverlay) {
7157
7177
  let u = "";
7158
7178
  if ((l = this.product) != null && l.overlayImageUrl && (u = this.product.overlayImageUrl), s = u, !u)
7159
- throw new ge(this.configuration, "Couldn't find an asset for product overlay step");
7179
+ throw new fe(this.configuration, "Couldn't find an asset for product overlay step");
7160
7180
  }
7161
7181
  const o = this.evaluateAssetType();
7162
7182
  if (o === T.Image) {
@@ -7227,7 +7247,7 @@ class za {
7227
7247
  }
7228
7248
  async trigger() {
7229
7249
  if (!this.configuration.data.regions)
7230
- throw new ge(this.configuration, "Missing regions.");
7250
+ throw new fe(this.configuration, "Missing regions.");
7231
7251
  if (this.configuration.type === D.SilentIllustration) {
7232
7252
  const t = this.configuration.data.regions.map(this.processRegion);
7233
7253
  return Promise.all(t);
@@ -7257,7 +7277,7 @@ const is = async (r) => {
7257
7277
  }
7258
7278
  })).json()).shortUrl;
7259
7279
  } catch (e) {
7260
- throw console.error(e), new Ee("Failed to shorten URL, see console.");
7280
+ throw console.error(e), new Be("Failed to shorten URL, see console.");
7261
7281
  }
7262
7282
  };
7263
7283
  class Ln {
@@ -7330,10 +7350,10 @@ class ss {
7330
7350
  l.searchParams.append("video", btoa(JSON.stringify([s]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
7331
7351
  const c = l.toString();
7332
7352
  if (c.length >= 2e3)
7333
- throw new Ee("Cannot create QR code, URL too long.");
7353
+ throw new Be("Cannot create QR code, URL too long.");
7334
7354
  const d = await is(c);
7335
7355
  if (!n.data || !n.data.regions)
7336
- throw new ge(n, "Missing regions.");
7356
+ throw new fe(n, "Missing regions.");
7337
7357
  const A = await this.regionElements(n), u = await this.command(d, A, a, n.stepName);
7338
7358
  return u && (u.command && a.getCommandDispatcher()(u.command), u.followup && await u.followup()), await a.setSelectionsAndElements(n.stepName, [], A, async () => {
7339
7359
  a.updateStorage(n.stepName, {
@@ -7376,7 +7396,7 @@ class ss {
7376
7396
  }
7377
7397
  }
7378
7398
  const $n = new ss();
7379
- class Ce {
7399
+ class we {
7380
7400
  constructor() {
7381
7401
  this.frameSourceSvg = async (t, e) => {
7382
7402
  if (!t)
@@ -7490,7 +7510,7 @@ class Ce {
7490
7510
  }
7491
7511
  selectImage(t, e, a, n = !0) {
7492
7512
  var l;
7493
- const i = Ce.patternSource(e), s = (l = a.getStepStorage(t.stepName)) == null ? void 0 : l.framePatternSrc;
7513
+ const i = we.patternSource(e), s = (l = a.getStepStorage(t.stepName)) == null ? void 0 : l.framePatternSrc;
7494
7514
  if (s && s === i)
7495
7515
  return Promise.resolve();
7496
7516
  a.setEditedStatus(t.stepName, !0);
@@ -7511,7 +7531,7 @@ class Ce {
7511
7531
  });
7512
7532
  },
7513
7533
  () => {
7514
- throw new Ee("Failed to resolve transcoded PDF");
7534
+ throw new Be("Failed to resolve transcoded PDF");
7515
7535
  }
7516
7536
  )
7517
7537
  );
@@ -7573,7 +7593,7 @@ class Ce {
7573
7593
  };
7574
7594
  At.set(t, A), e.setPatternData(A, a);
7575
7595
  } else {
7576
- const s = await Be(t, !0), o = await Ie(s), l = {
7596
+ const s = await be(t, !0), o = await De(s), l = {
7577
7597
  src: t,
7578
7598
  width: o.width,
7579
7599
  height: o.height,
@@ -7667,7 +7687,7 @@ class Ce {
7667
7687
  i && i(!0);
7668
7688
  const c = t.data.initialZoomLevel, d = await Promise.all(
7669
7689
  t.data.regions.map(async (m, g) => {
7670
- const f = await Fe(l[g]), p = o.getImageData(), C = a.map((I) => new vt(I.id)), w = p ? Sa(
7690
+ const f = await xe(l[g]), p = o.getImageData(), C = a.map((I) => new vt(I.id)), w = p ? Sa(
7671
7691
  p,
7672
7692
  f,
7673
7693
  c && !t.data.forceImageCover ? { scale: c } : void 0,
@@ -7735,7 +7755,7 @@ class Ce {
7735
7755
  }
7736
7756
  async loadPatternFromAsset(t, e, a, n) {
7737
7757
  var c, d;
7738
- const i = Ce.patternSource(t), s = a.markUpdatePending(), o = (c = a.getWorkflowExperience().getStepById(e.stepName)) == null ? void 0 : c.frameService;
7758
+ const i = we.patternSource(t), s = a.markUpdatePending(), o = (c = a.getWorkflowExperience().getStepById(e.stepName)) == null ? void 0 : c.frameService;
7739
7759
  if (!o)
7740
7760
  throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
7741
7761
  try {
@@ -7762,7 +7782,7 @@ class Ce {
7762
7782
  ), this.validateColorCount(e, a);
7763
7783
  }
7764
7784
  }
7765
- const pt = new Ce();
7785
+ const pt = new we();
7766
7786
  class os {
7767
7787
  async getIllustrationBody(t) {
7768
7788
  return new Promise((e) => {
@@ -7927,7 +7947,7 @@ class os {
7927
7947
  async selectVariantCommand(t, e, a, n, i) {
7928
7948
  var p;
7929
7949
  if (!t.data || !t.data.regions)
7930
- throw new ge(t, "Missing regions.");
7950
+ throw new fe(t, "Missing regions.");
7931
7951
  n(!0);
7932
7952
  const s = a.map((C) => new vt(C.id));
7933
7953
  t.mandatory && i.setMandatoryFulfilled(t.stepName, !1);
@@ -8010,12 +8030,12 @@ class os {
8010
8030
  };
8011
8031
  }
8012
8032
  }
8013
- const ce = new os();
8033
+ const de = new os();
8014
8034
  class ls {
8015
8035
  async init(t, e, a) {
8016
8036
  const n = t.option;
8017
8037
  if (!n)
8018
- throw new me(t);
8038
+ throw new ge(t);
8019
8039
  if (a)
8020
8040
  await this.reload(t, e, a);
8021
8041
  else {
@@ -8033,7 +8053,7 @@ class ls {
8033
8053
  a.serializableWorkflow.steps
8034
8054
  ), o = Object.values(a.layouts).map((d) => d.elements).flat().filter((d) => d.stepName === t.stepName), l = t.option;
8035
8055
  if (!l)
8036
- throw new me(t);
8056
+ throw new ge(t);
8037
8057
  if (n != null && n.selectedVariants) {
8038
8058
  const d = n.selectedVariants[0].id;
8039
8059
  if (d) {
@@ -8093,7 +8113,7 @@ class cs {
8093
8113
  async init(t, e, a) {
8094
8114
  const n = t.option;
8095
8115
  if (!n)
8096
- throw new me(t);
8116
+ throw new ge(t);
8097
8117
  if (a)
8098
8118
  await this.reload(t, e, a);
8099
8119
  else {
@@ -8465,7 +8485,7 @@ class hs {
8465
8485
  async init(t, e, a) {
8466
8486
  const n = t.option;
8467
8487
  if (!n)
8468
- throw new me(t);
8488
+ throw new ge(t);
8469
8489
  if (a)
8470
8490
  await this.reload(t, e, a);
8471
8491
  else {
@@ -8664,7 +8684,7 @@ const gs = new ms(), Ge = (r, t, e, a, n) => {
8664
8684
  m || (c = !1);
8665
8685
  }
8666
8686
  return [null, null];
8667
- }, de = (r, t, e, a, n) => {
8687
+ }, Ae = (r, t, e, a, n) => {
8668
8688
  let i, s;
8669
8689
  const o = St(t.assetUrl), l = o.getFont();
8670
8690
  if (n.size) {
@@ -8682,16 +8702,16 @@ const gs = new ms(), Ge = (r, t, e, a, n) => {
8682
8702
  const A = d / l.unitsPerEm;
8683
8703
  return [i, s] = Ge(e, a, d, A, o), [d, i, s];
8684
8704
  }, We = 30;
8685
- class we extends Error {
8705
+ class ye extends Error {
8686
8706
  constructor(t) {
8687
- super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = we.name;
8707
+ super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = ye.name;
8688
8708
  }
8689
8709
  }
8690
8710
  const fs = ["‘", "’", "“", "”", `
8691
8711
  `];
8692
- class ye extends Error {
8712
+ class Se extends Error {
8693
8713
  constructor(t) {
8694
- super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = ye.name;
8714
+ super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Se.name;
8695
8715
  }
8696
8716
  }
8697
8717
  class ps {
@@ -8905,7 +8925,7 @@ class ps {
8905
8925
  }
8906
8926
  getProcessedInput(t, e, a) {
8907
8927
  const n = a ? t : this.injectReplaceableText(t, e);
8908
- return pe(n, {
8928
+ return Ce(n, {
8909
8929
  vertical: e.vertical,
8910
8930
  uppercase: e.uppercase
8911
8931
  });
@@ -8923,7 +8943,7 @@ class ps {
8923
8943
  for (const A of e) {
8924
8944
  if (!A.fontData)
8925
8945
  throw new z("Failed to resolve font data for text.");
8926
- const [u, h] = de(
8946
+ const [u, h] = Ae(
8927
8947
  A.fontSize,
8928
8948
  A.fontData,
8929
8949
  { left: A.x, top: A.y, width: A.width, height: A.height, rotation: A.rotation, panelId: "" },
@@ -9118,7 +9138,7 @@ class ps {
9118
9138
  const h = s.getLayouts().find((f) => f.panelId === A.panelId), m = Q();
9119
9139
  try {
9120
9140
  if (!h)
9121
- throw new ye("Failed to find layout for region: " + A.panelId);
9141
+ throw new Se("Failed to find layout for region: " + A.panelId);
9122
9142
  const f = a.colorOption;
9123
9143
  let p;
9124
9144
  if (f && f.variants) {
@@ -9157,7 +9177,7 @@ class ps {
9157
9177
  }, S = [], B = /* @__PURE__ */ new Map(), E = /* @__PURE__ */ new Map();
9158
9178
  if (!v.fontData)
9159
9179
  throw new z("Failed to resolve font data for text.");
9160
- const [I, P] = de(
9180
+ const [I, P] = Ae(
9161
9181
  v.fontSize,
9162
9182
  v.fontData,
9163
9183
  {
@@ -9185,10 +9205,10 @@ class ps {
9185
9205
  fontData: n
9186
9206
  };
9187
9207
  } catch (f) {
9188
- throw console.log(f), new we("Error adding font to region");
9208
+ throw console.log(f), new ye("Error adding font to region");
9189
9209
  }
9190
9210
  }, d = await Promise.all(a.regions.map(c)).catch((A) => {
9191
- throw A instanceof we ? (gs.setLatestToast("Failed to load font.", Me.Error), A) : A instanceof ye ? A : new Error(A);
9211
+ throw A instanceof ye ? (gs.setLatestToast("Failed to load font.", Me.Error), A) : A instanceof Se ? A : new Error(A);
9192
9212
  });
9193
9213
  return await s.setSelectionsAndElements(
9194
9214
  t,
@@ -9218,7 +9238,7 @@ class ps {
9218
9238
  const A = (n || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), u = this.getProcessedInput(A, t.data, o), h = s.getRegionElements(t.stepName), m = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
9219
9239
  for (const v of h)
9220
9240
  if (v.region) {
9221
- const [S, B] = de(
9241
+ const [S, B] = Ae(
9222
9242
  e,
9223
9243
  a,
9224
9244
  v.region,
@@ -9272,13 +9292,13 @@ const ws = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAEl
9272
9292
  const e = tt("rect");
9273
9293
  return e.setAttribute("height", `${r}`), e.setAttribute("width", `${t}`), e;
9274
9294
  }, Ss = (r, t, e, a) => {
9275
- const n = te("filter");
9295
+ const n = ee("filter");
9276
9296
  n.setAttribute("id", a), n.setAttribute("height", "200%"), n.setAttribute("width", "200%"), n.setAttribute("x", "-50%"), n.setAttribute("y", "-50%");
9277
- const i = te("feOffset");
9297
+ const i = ee("feOffset");
9278
9298
  n.appendChild(i), i.setAttribute("result", "offOut"), i.setAttribute("in", "SourceAlpha"), i.setAttribute("dx", `${r}`), i.setAttribute("dy", `${t}`);
9279
- const s = te("feGaussianBlur");
9299
+ const s = ee("feGaussianBlur");
9280
9300
  n.appendChild(s), s.setAttribute("result", "blurOut"), s.setAttribute("in", "offOut"), s.setAttribute("stdDeviation", `${e}`);
9281
- const o = te("feBlend");
9301
+ const o = ee("feBlend");
9282
9302
  return n.appendChild(o), o.setAttribute("in", "SourceGraphic"), o.setAttribute("in2", "blurOut"), o.setAttribute("mode", "normal"), n;
9283
9303
  }, vs = (r) => {
9284
9304
  let t = r;
@@ -9457,7 +9477,7 @@ async function Hn(r) {
9457
9477
  return new Is();
9458
9478
  throw new z(`Failed to resolve Module, Module ${r} not found`);
9459
9479
  }
9460
- const xe = y`
9480
+ const te = y`
9461
9481
  fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
9462
9482
  name
9463
9483
  value
@@ -9480,7 +9500,7 @@ const xe = y`
9480
9500
  }
9481
9501
  }
9482
9502
  `, Ds = y`
9483
- ${xe}
9503
+ ${te}
9484
9504
  mutation CreateGlobalPropertyState($bundleId: String!) {
9485
9505
  globalPropertyStateCreate(bundleId: $bundleId) {
9486
9506
  id
@@ -9490,7 +9510,7 @@ const xe = y`
9490
9510
  }
9491
9511
  }
9492
9512
  `, Ps = y`
9493
- ${xe}
9513
+ ${te}
9494
9514
  mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
9495
9515
  globalPropertyStateUpdate(id: $id, aspects: $aspects) {
9496
9516
  id
@@ -9501,7 +9521,7 @@ const xe = y`
9501
9521
  }
9502
9522
  `;
9503
9523
  y`
9504
- ${xe}
9524
+ ${te}
9505
9525
  query GetGlobalPropertyState($bundleId: String!) {
9506
9526
  globalPropertyState(bundleId: $bundleId) {
9507
9527
  id
@@ -9512,7 +9532,7 @@ y`
9512
9532
  }
9513
9533
  `;
9514
9534
  const Fs = y`
9515
- ${De}
9535
+ ${Pe}
9516
9536
  fragment ProductFields on Product {
9517
9537
  id
9518
9538
  basePrice
@@ -9625,7 +9645,7 @@ const Fs = y`
9625
9645
  }
9626
9646
  }
9627
9647
  `, xs = (r) => y`
9628
- ${xe}
9648
+ ${te}
9629
9649
  ${ke(r)}
9630
9650
  query GetBundle($id: String!) {
9631
9651
  globalPropertyState(bundleId: $id) {
@@ -9805,6 +9825,7 @@ const Fs = y`
9805
9825
  }
9806
9826
  }
9807
9827
  `, Rs = (r) => y`
9828
+ ${te}
9808
9829
  ${ke(r)}
9809
9830
  mutation DuplicateBundle(
9810
9831
  $id: String!
@@ -10565,7 +10586,7 @@ class eo {
10565
10586
  break;
10566
10587
  case D.Illustration:
10567
10588
  a.push(
10568
- ce.init(l, this, this.reloadedState)
10589
+ de.init(l, this, this.reloadedState)
10569
10590
  );
10570
10591
  break;
10571
10592
  case D.Material:
@@ -10887,7 +10908,7 @@ class ao extends rt {
10887
10908
  */
10888
10909
  async selectVariant(t) {
10889
10910
  if (!this.getUpdateState() && this.getCurrentVariant() !== t)
10890
- return ce.selectVariant(
10911
+ return de.selectVariant(
10891
10912
  this.step,
10892
10913
  t.getResource(),
10893
10914
  this.manager.getRegionElements(this.step.stepName) || [],
@@ -10933,7 +10954,7 @@ class ao extends rt {
10933
10954
  const d = c.id.replace(/\W/g, "");
10934
10955
  a ? n.set(d, { browserValue: e, pmsValue: a }) : n.set(d, e);
10935
10956
  }
10936
- }) : a ? n.set(t, { browserValue: e, pmsValue: a }) : n.set(t, e), ce.changeColors(
10957
+ }) : a ? n.set(t, { browserValue: e, pmsValue: a }) : n.set(t, e), de.changeColors(
10937
10958
  this.step,
10938
10959
  this.manager.getRegionElements(this.step.stepName),
10939
10960
  this.manager,
@@ -10945,7 +10966,7 @@ class ao extends rt {
10945
10966
  return this.step.data.colorOption;
10946
10967
  }
10947
10968
  getAvailableColors() {
10948
- return this.step.data.colorPickerEnabled ? ce.availableColors(this.step, this.manager) : Promise.resolve([]);
10969
+ return this.step.data.colorPickerEnabled ? de.availableColors(this.step, this.manager) : Promise.resolve([]);
10949
10970
  }
10950
10971
  isColorPickerEnabled() {
10951
10972
  return this.step.data.colorPickerEnabled ?? !1;
@@ -11359,7 +11380,7 @@ class uo extends rt {
11359
11380
  });
11360
11381
  }
11361
11382
  }
11362
- class re {
11383
+ class ie {
11363
11384
  static get(t, e) {
11364
11385
  switch (e.type) {
11365
11386
  case D.DigitalContent:
@@ -11461,14 +11482,14 @@ const Yn = y`
11461
11482
  }
11462
11483
  }
11463
11484
  `;
11464
- function Se(r) {
11485
+ function ve(r) {
11465
11486
  const t = JSON.parse(atob(r.split(".")[1])).exp;
11466
11487
  return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
11467
11488
  }
11468
11489
  const go = async (r) => {
11469
11490
  var s, o;
11470
11491
  const e = ((s = Object.entries(localStorage).find(([l, c]) => l.startsWith("CognitoIdentityServiceProvider") && l.endsWith("idToken"))) == null ? void 0 : s[0]) || "", a = localStorage.getItem(e), n = {};
11471
- return a && !Se(a) && (n.Authorization = `Bearer ${a}`), (o = (await b.getShadowGraphqlClient().mutate({
11492
+ return a && !ve(a) && (n.Authorization = `Bearer ${a}`), (o = (await b.getShadowGraphqlClient().mutate({
11472
11493
  mutation: ho,
11473
11494
  errorPolicy: "all",
11474
11495
  fetchPolicy: "no-cache",
@@ -11489,7 +11510,7 @@ const go = async (r) => {
11489
11510
  }, fo = async (r) => {
11490
11511
  var s, o;
11491
11512
  const e = ((s = Object.entries(localStorage).find(([l, c]) => l.startsWith("CognitoIdentityServiceProvider") && l.endsWith("idToken"))) == null ? void 0 : s[0]) || "", a = localStorage.getItem(e), n = {};
11492
- return a && !Se(a) && (n.Authorization = `Bearer ${a}`), (o = (await b.getShadowGraphqlClient().mutate({
11513
+ return a && !ve(a) && (n.Authorization = `Bearer ${a}`), (o = (await b.getShadowGraphqlClient().mutate({
11493
11514
  mutation: mo,
11494
11515
  errorPolicy: "all",
11495
11516
  fetchPolicy: "no-cache",
@@ -11648,7 +11669,7 @@ const go = async (r) => {
11648
11669
  const P = await (await ct(B)).blob();
11649
11670
  B = (await U.uploadAsset(
11650
11671
  { name: `${n.id}-preview-image.png`, blob: P },
11651
- ue.Image,
11672
+ he.Image,
11652
11673
  !0,
11653
11674
  !1
11654
11675
  )).fileLink;
@@ -12014,7 +12035,7 @@ class bo {
12014
12035
  height: d.layoutState.layout.height
12015
12036
  }, u = this.commandContext.getLayoutById(d.layoutState.layout.id), h = s.getContext("2d");
12016
12037
  if (!h)
12017
- throw new Ee("Failed to obtain 2D context for preview image creation");
12038
+ throw new Be("Failed to obtain 2D context for preview image creation");
12018
12039
  const m = wa(u.layoutState.layout, u.layoutState.elements, {
12019
12040
  renderingConfiguration: {
12020
12041
  purpose: Gt.Print,
@@ -12039,7 +12060,7 @@ class bo {
12039
12060
  const a = this.cachedStepHandles.get(e.stepName);
12040
12061
  if (a)
12041
12062
  return a;
12042
- const n = re.get(this.getWorkflowManager(), e);
12063
+ const n = ie.get(this.getWorkflowManager(), e);
12043
12064
  return this.cachedStepHandles.set(e.stepName, n), n;
12044
12065
  }
12045
12066
  getSteps() {
@@ -12143,10 +12164,10 @@ class bo {
12143
12164
  getStepByName(t) {
12144
12165
  const e = this.getWorkflowManager().getWorkflow().steps.find((a) => a.stepTitle === t);
12145
12166
  if (!(!e || !this.stepHasHandle(e)))
12146
- return re.get(this.getWorkflowManager(), e);
12167
+ return ie.get(this.getWorkflowManager(), e);
12147
12168
  }
12148
12169
  getStepsByType(t) {
12149
- return this.getWorkflowManager().getWorkflow().steps.filter((e) => e.type === t).map((e) => re.get(this.getWorkflowManager(), e));
12170
+ return this.getWorkflowManager().getWorkflow().steps.filter((e) => e.type === t).map((e) => ie.get(this.getWorkflowManager(), e));
12150
12171
  }
12151
12172
  getStepsByScene(t) {
12152
12173
  if (!this.getWorkflowManager().getWorkflow().stepGroups.find((a) => a.name === t.name))
@@ -12155,7 +12176,7 @@ class bo {
12155
12176
  );
12156
12177
  return t.stepIds.map(
12157
12178
  (a) => this.getWorkflowManager().getWorkflow().steps.find((n) => n.stepName === a)
12158
- ).filter((a) => this.stepHasHandle(a)).map((a) => re.get(this.getWorkflowManager(), a));
12179
+ ).filter((a) => this.stepHasHandle(a)).map((a) => ie.get(this.getWorkflowManager(), a));
12159
12180
  }
12160
12181
  async attachCustomerDetails(t) {
12161
12182
  return this.assignCustomerDetails({ emailAddress: t.email });
@@ -12366,7 +12387,7 @@ const Io = [
12366
12387
  o && (t[a.stepName] = { selectedVariants: [o] });
12367
12388
  const l = async (c) => {
12368
12389
  var g;
12369
- const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await Fe(d), u = Q(), h = r.find((f) => f.panelId === c.panelId);
12390
+ const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await xe(d), u = Q(), h = r.find((f) => f.panelId === c.panelId);
12370
12391
  if (!h)
12371
12392
  throw new Y(c);
12372
12393
  const m = Sa(
@@ -12704,7 +12725,7 @@ const Io = [
12704
12725
  assetUrl: f,
12705
12726
  name: p.names.fullName.en
12706
12727
  };
12707
- })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = pe(A, {
12728
+ })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = Ce(A, {
12708
12729
  vertical: a.data.vertical,
12709
12730
  uppercase: a.data.uppercase
12710
12731
  }), h = async (f) => {
@@ -12740,12 +12761,12 @@ const Io = [
12740
12761
  y: f.top
12741
12762
  };
12742
12763
  if (d) {
12743
- const [w, v] = de(
12764
+ const [w, v] = Ae(
12744
12765
  a.data.size || s,
12745
12766
  d,
12746
12767
  f,
12747
12768
  [
12748
- pe(u, {
12769
+ Ce(u, {
12749
12770
  vertical: a.data.vertical,
12750
12771
  uppercase: a.data.uppercase
12751
12772
  })
@@ -13840,14 +13861,14 @@ class qo {
13840
13861
  getProducts() {
13841
13862
  if (!this.collection.productCollectionProducts)
13842
13863
  throw new Error("Failed to find products on collection. Ensure you fetch them first!");
13843
- return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new ie(t));
13864
+ return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new se(t));
13844
13865
  }
13845
13866
  /**
13846
13867
  * A list of products in this collections with useful helpers for interacting with them.
13847
13868
  */
13848
13869
  async fetchProducts(t) {
13849
13870
  if (this.fullFetched)
13850
- return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new ie(a));
13871
+ return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
13851
13872
  const e = await b.getShadowGraphqlClient().query({
13852
13873
  query: Ms,
13853
13874
  variables: {
@@ -13856,7 +13877,7 @@ class qo {
13856
13877
  },
13857
13878
  errorPolicy: "all"
13858
13879
  });
13859
- return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new ie(a));
13880
+ return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
13860
13881
  }
13861
13882
  /**
13862
13883
  * Returns a list of collections products matching the associated metafield filters.
@@ -13912,7 +13933,7 @@ class qo {
13912
13933
  errorPolicy: "all"
13913
13934
  });
13914
13935
  return {
13915
- items: ((l = (o = (s = n == null ? void 0 : n.data) == null ? void 0 : s.productCollections) == null ? void 0 : o[0].productCollectionProductsFeed) == null ? void 0 : l.items.filter((u) => !!u.product).map((u) => new ie(u))) || [],
13936
+ items: ((l = (o = (s = n == null ? void 0 : n.data) == null ? void 0 : s.productCollections) == null ? void 0 : o[0].productCollectionProductsFeed) == null ? void 0 : l.items.filter((u) => !!u.product).map((u) => new se(u))) || [],
13916
13937
  total: ((A = (d = (c = n == null ? void 0 : n.data) == null ? void 0 : c.productCollections) == null ? void 0 : d[0].productCollectionProductsFeed) == null ? void 0 : A.total) ?? 0
13917
13938
  };
13918
13939
  }
@@ -13927,7 +13948,7 @@ class qo {
13927
13948
  return this.collection;
13928
13949
  }
13929
13950
  }
13930
- class ie {
13951
+ class se {
13931
13952
  constructor(t) {
13932
13953
  this.product = t.product, this.productResource = t;
13933
13954
  }
@@ -14525,7 +14546,7 @@ class He {
14525
14546
  variables: {
14526
14547
  id: this.id,
14527
14548
  details: t,
14528
- type: e || he.Owner
14549
+ type: e || me.Owner
14529
14550
  },
14530
14551
  context: {
14531
14552
  bundleOwnerId: this.ownerId
@@ -14921,14 +14942,14 @@ class nl {
14921
14942
  * @returns The nodes contained within the execution.
14922
14943
  */
14923
14944
  getNodes() {
14924
- return this.execution.nodes.map((t) => new se(t));
14945
+ return this.execution.nodes.map((t) => new oe(t));
14925
14946
  }
14926
14947
  /**
14927
14948
  * @param type The type of node to return.
14928
14949
  * @returns A list of nodes matching the requested type.
14929
14950
  */
14930
14951
  getNodesByType(t) {
14931
- return this.execution.nodes.filter((e) => e.type === t).map((e) => new se(e));
14952
+ return this.execution.nodes.filter((e) => e.type === t).map((e) => new oe(e));
14932
14953
  }
14933
14954
  /**
14934
14955
  * @returns A list of input nodes that exist in this execution.
@@ -14937,7 +14958,7 @@ class nl {
14937
14958
  return this.execution.nodes.filter(
14938
14959
  (t) => t.type === "StartTerminal"
14939
14960
  /* StartTerminal */
14940
- ).map((t) => new se(t));
14961
+ ).map((t) => new oe(t));
14941
14962
  }
14942
14963
  /**
14943
14964
  * @returns A list of out put nodes that exist in this execution.
@@ -14946,7 +14967,7 @@ class nl {
14946
14967
  return this.execution.nodes.filter(
14947
14968
  (t) => t.type === "EndTerminal"
14948
14969
  /* EndTerminal */
14949
- ).map((t) => new se(t));
14970
+ ).map((t) => new oe(t));
14950
14971
  }
14951
14972
  /**
14952
14973
  * @returns A date object representing the point in time this execution completed.
@@ -14963,7 +14984,7 @@ class nl {
14963
14984
  return new Date(this.execution.failedAt);
14964
14985
  }
14965
14986
  }
14966
- class se {
14987
+ class oe {
14967
14988
  constructor(t) {
14968
14989
  this.node = t;
14969
14990
  }
@@ -15225,7 +15246,7 @@ class kc {
15225
15246
  } catch (a) {
15226
15247
  throw console.error(a), new ut("Critical - Unable to synchronize workflow state with server.");
15227
15248
  }
15228
- }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.23.4"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15249
+ }, this.options = t, this.options.applicationKey && Fr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.24.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15229
15250
  }
15230
15251
  configure(t) {
15231
15252
  wt.setHubUrl(t.hubUrl), wt.setServerUrl(t.serverUrl), wt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && kr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
@@ -15272,7 +15293,7 @@ class kc {
15272
15293
  var n, i;
15273
15294
  const e = k.getMap("bundleOwnerIds");
15274
15295
  if (e != null && e.has(t))
15275
- return Promise.resolve({ success: !0, stakeholderType: he.Owner });
15296
+ return Promise.resolve({ success: !0, stakeholderType: me.Owner });
15276
15297
  const a = k.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
15277
15298
  if (a.has(t)) {
15278
15299
  const s = a.get(t), l = (k.getMap("partnerCustomerIds") || /* @__PURE__ */ new Map()).get(s);
@@ -15321,7 +15342,7 @@ class kc {
15321
15342
  return Promise.resolve({ success: !1, transactionReadOnly: !0 });
15322
15343
  const s = k.getMap("transactionOwnerIds");
15323
15344
  if (s != null && s.has(t))
15324
- return Promise.resolve({ success: !0, stakeholderType: he.Owner });
15345
+ return Promise.resolve({ success: !0, stakeholderType: me.Owner });
15325
15346
  const o = k.getMap("transactionCustomerIds");
15326
15347
  if (o != null && o.has(t)) {
15327
15348
  const f = o.get(t);
@@ -15534,7 +15555,7 @@ class kc {
15534
15555
  async getExistingBundle(t, e, a, n) {
15535
15556
  var f, p, C, w, v, S, B, E, I, P, F;
15536
15557
  const i = k.getMap("bundleOwnerIds"), s = i == null ? void 0 : i.get(t), l = ((f = Object.entries(localStorage).find(([M, N]) => M.startsWith("CognitoIdentityServiceProvider") && M.endsWith("idToken"))) == null ? void 0 : f[0]) || "", c = localStorage.getItem(l), d = {};
15537
- c && !Se(c) && (d.Authorization = `Bearer ${c}`);
15558
+ c && !ve(c) && (d.Authorization = `Bearer ${c}`);
15538
15559
  const A = {
15539
15560
  bundleOwnerId: s,
15540
15561
  ...d,
@@ -15570,7 +15591,7 @@ class kc {
15570
15591
  async duplicateBundle(t, e, a, n) {
15571
15592
  var f, p, C, w, v, S, B, E;
15572
15593
  const i = (f = k.getMap("bundleOwnerIds")) == null ? void 0 : f.get(t), o = ((p = Object.entries(localStorage).find(([I, P]) => I.startsWith("CognitoIdentityServiceProvider") && I.endsWith("idToken"))) == null ? void 0 : p[0]) || "", l = localStorage.getItem(o), c = {};
15573
- l && !Se(l) && (c.Authorization = `Bearer ${l}`);
15594
+ l && !ve(l) && (c.Authorization = `Bearer ${l}`);
15574
15595
  const d = {
15575
15596
  bundleOwnerId: i,
15576
15597
  ...c,
@@ -15775,34 +15796,34 @@ class kc {
15775
15796
  const e = k.getMap("partnerCustomerIds") || /* @__PURE__ */ new Map();
15776
15797
  e.set(t.partner.id, t.id), k.setMap("partnerCustomerIds", e);
15777
15798
  }
15778
- async getIntegrationProductById(t) {
15779
- var i, s;
15780
- const n = (i = (await b.getShadowGraphqlClient().query({
15781
- query: gi,
15799
+ async getIntegrationProductById(t, e) {
15800
+ var s, o;
15801
+ const i = (s = (await b.getShadowGraphqlClient().query({
15802
+ query: gi(e),
15782
15803
  variables: {
15783
15804
  ids: [t]
15784
15805
  },
15785
15806
  fetchPolicy: "no-cache",
15786
15807
  errorPolicy: "all"
15787
- })).data) == null ? void 0 : i.integrationProducts;
15788
- if (!n || n.length === 0 || !((s = n[0]) != null && s.id))
15808
+ })).data) == null ? void 0 : s.integrationProducts;
15809
+ if (!i || i.length === 0 || !((o = i[0]) != null && o.id))
15789
15810
  throw new Error("Integration product not found.");
15790
- return new qa(n[0]);
15811
+ return new qa(i[0]);
15791
15812
  }
15792
- async getIntegrationProductFromExternalIds(t, e) {
15793
- var s;
15794
- const i = (s = (await b.getShadowGraphqlClient().query({
15795
- query: fi,
15813
+ async getIntegrationProductFromExternalIds(t, e, a) {
15814
+ var o;
15815
+ const s = (o = (await b.getShadowGraphqlClient().query({
15816
+ query: fi(a),
15796
15817
  variables: {
15797
15818
  externalProductId: e,
15798
15819
  externalIntegrationId: t
15799
15820
  },
15800
15821
  fetchPolicy: "no-cache",
15801
15822
  errorPolicy: "all"
15802
- })).data) == null ? void 0 : s.integrationProductFromExternalIds;
15803
- if (!(i != null && i.id))
15823
+ })).data) == null ? void 0 : o.integrationProductFromExternalIds;
15824
+ if (!(s != null && s.id))
15804
15825
  throw new Error("Integration product not found.");
15805
- return new qa(i);
15826
+ return new qa(s);
15806
15827
  }
15807
15828
  async getIntegrationProduct(t) {
15808
15829
  return t.type === "integration" ? this.getIntegrationProductById(t.integrationProductId) : this.getIntegrationProductFromExternalIds(t.externalIntegrationId, t.externalProductId);
@@ -15898,12 +15919,12 @@ function gl(r, t, e, a) {
15898
15919
  const o = r, l = Math.max(t.width / e.width, t.height / e.height);
15899
15920
  o.zoom = Math.max(l, r.zoom);
15900
15921
  const c = e.width * o.zoom, d = e.height * o.zoom;
15901
- return o.x = oe(r.x, t.width - c, 0), o.y = oe(r.y, t.height - d, 0), o;
15922
+ return o.x = le(r.x, t.width - c, 0), o.y = le(r.y, t.height - d, 0), o;
15902
15923
  }
15903
15924
  const s = r;
15904
- return s.x = oe(s.x, -n, t.width), s.y = oe(s.y, -i, t.height), s;
15925
+ return s.x = le(s.x, -n, t.width), s.y = le(s.y, -i, t.height), s;
15905
15926
  }
15906
- function oe(r, t, e) {
15927
+ function le(r, t, e) {
15907
15928
  return Math.min(Math.max(r, t), e);
15908
15929
  }
15909
15930
  class fl {
@@ -15928,7 +15949,7 @@ class fl {
15928
15949
  if (n.currentFrameSources) {
15929
15950
  let i = !1;
15930
15951
  for (let s = 0; s < n.currentFrameSources.length; s++) {
15931
- const o = n.currentFrameSources[s], l = await Fe(o), c = this.frameData ? this.frameData[s] : void 0;
15952
+ const o = n.currentFrameSources[s], l = await xe(o), c = this.frameData ? this.frameData[s] : void 0;
15932
15953
  rn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
15933
15954
  }
15934
15955
  i && (this.onFrameDataChangeListeners.forEach(
@@ -16740,7 +16761,7 @@ function Fl() {
16740
16761
  for (var r; r = tr.shift(); )
16741
16762
  if (r.__P && r.__H)
16742
16763
  try {
16743
- r.__H.__h.forEach(Ae), r.__H.__h.forEach(la), r.__H.__h = [];
16764
+ r.__H.__h.forEach(ue), r.__H.__h.forEach(la), r.__H.__h = [];
16744
16765
  } catch (t) {
16745
16766
  r.__H.__h = [], K.__e(t, r.__v);
16746
16767
  }
@@ -16752,7 +16773,7 @@ K.__b = function(r) {
16752
16773
  var t = (st = r.__c).__H;
16753
16774
  t && (qe === st ? (t.__h = [], st.__h = [], t.__.forEach(function(e) {
16754
16775
  e.__N && (e.__ = e.__N), e.__V = Ye, e.__N = e.i = void 0;
16755
- })) : (t.__h.forEach(Ae), t.__h.forEach(la), t.__h = [])), qe = st;
16776
+ })) : (t.__h.forEach(ue), t.__h.forEach(la), t.__h = [])), qe = st;
16756
16777
  }, K.diffed = function(r) {
16757
16778
  Xa && Xa(r);
16758
16779
  var t = r.__c;
@@ -16762,7 +16783,7 @@ K.__b = function(r) {
16762
16783
  }, K.__c = function(r, t) {
16763
16784
  t.some(function(e) {
16764
16785
  try {
16765
- e.__h.forEach(Ae), e.__h = e.__h.filter(function(a) {
16786
+ e.__h.forEach(ue), e.__h = e.__h.filter(function(a) {
16766
16787
  return !a.__ || la(a);
16767
16788
  });
16768
16789
  } catch (a) {
@@ -16776,7 +16797,7 @@ K.__b = function(r) {
16776
16797
  var t, e = r.__c;
16777
16798
  e && e.__H && (e.__H.__.forEach(function(a) {
16778
16799
  try {
16779
- Ae(a);
16800
+ ue(a);
16780
16801
  } catch (n) {
16781
16802
  t = n;
16782
16803
  }
@@ -16789,7 +16810,7 @@ function xl(r) {
16789
16810
  }, a = setTimeout(e, 100);
16790
16811
  en && (t = requestAnimationFrame(e));
16791
16812
  }
16792
- function Ae(r) {
16813
+ function ue(r) {
16793
16814
  var t = st, e = r.__c;
16794
16815
  typeof e == "function" && (r.__c = void 0, e()), st = t;
16795
16816
  }
@@ -16802,13 +16823,13 @@ export {
16802
16823
  Fc as ArrayInput,
16803
16824
  et as AspectType,
16804
16825
  yt as AssetNotFoundError,
16805
- ue as AssetType,
16826
+ he as AssetType,
16806
16827
  Bc as BringForwardCommand,
16807
16828
  Ec as BringToBackCommand,
16808
16829
  vc as BringToFrontCommand,
16809
16830
  mr as BundleDesignCreationCartAddMode,
16810
16831
  R as CanvasCommand,
16811
- ie as CollectionProduct,
16832
+ se as CollectionProduct,
16812
16833
  Ha as ColorOptionGlobalPropertyHandle,
16813
16834
  Ki as CommandContext,
16814
16835
  Pl as ConversionDataType,
@@ -16818,7 +16839,7 @@ export {
16818
16839
  vt as DeleteElementCommand,
16819
16840
  Ao as DigitalContentStepHandle,
16820
16841
  Go as FileUploadGlobalPropertyHandle,
16821
- se as FlowExecutionNodeResult,
16842
+ oe as FlowExecutionNodeResult,
16822
16843
  nl as FlowExecutionResult,
16823
16844
  al as FlowService,
16824
16845
  ts as FontAlignmentCommand,
@@ -16840,7 +16861,7 @@ export {
16840
16861
  Y as LayoutNotFoundError,
16841
16862
  Gt as LayoutRenderingPurpose,
16842
16863
  no as MaterialStepHandle,
16843
- ge as MisconfigurationError,
16864
+ fe as MisconfigurationError,
16844
16865
  Rc as MockWorkflowManager,
16845
16866
  ro as ModelStepHandle,
16846
16867
  uo as ModuleStepHandle,
@@ -16848,7 +16869,7 @@ export {
16848
16869
  Xn as ObjectInput,
16849
16870
  rl as ObjectInputType,
16850
16871
  _n as OptionGlobalPropertyHandle,
16851
- me as OptionNotFoundError,
16872
+ ge as OptionNotFoundError,
16852
16873
  Dt as ParseError,
16853
16874
  io as PictureStepHandle,
16854
16875
  pr as ProductCameraRig,
@@ -16866,7 +16887,7 @@ export {
16866
16887
  oo as ShapeStepHandle,
16867
16888
  gr as ShareActionType,
16868
16889
  kc as SpiffCommerceClient,
16869
- he as StakeholderType,
16890
+ me as StakeholderType,
16870
16891
  hr as StepAspectType,
16871
16892
  rt as StepHandle,
16872
16893
  D as StepType,
@@ -16890,7 +16911,7 @@ export {
16890
16911
  uc as currentDirection,
16891
16912
  tc as dataUrlFromExternalUrl,
16892
16913
  je as designService,
16893
- de as determineCorrectFontSizeAndLines,
16914
+ Ae as determineCorrectFontSizeAndLines,
16894
16915
  $n as digitalContentStepService,
16895
16916
  dt as domParser,
16896
16917
  Lc as duplicateBundle,
@@ -16905,14 +16926,14 @@ export {
16905
16926
  Ro as generateCommands,
16906
16927
  ot as generateSVGWithUnknownColors,
16907
16928
  Dc as generateStateFromDesignInputSteps,
16908
- Ie as getAttributesFromArrayBuffer,
16929
+ De as getAttributesFromArrayBuffer,
16909
16930
  rc as getAxisAlignedBoundingBox,
16910
16931
  gl as getBoundedOffsets,
16911
16932
  Qc as getBundleThemeConfiguration,
16912
16933
  Vc as getCustomer,
16913
16934
  zc as getCustomerBundles,
16914
16935
  hc as getElementVertices,
16915
- Fe as getFrameData,
16936
+ xe as getFrameData,
16916
16937
  ml as getIntegration,
16917
16938
  dc as getNEPoint,
16918
16939
  cc as getNWPoint,
@@ -16931,7 +16952,7 @@ export {
16931
16952
  xc as getWorkflow,
16932
16953
  Zn as getWorkflows,
16933
16954
  b as graphQlManager,
16934
- ce as illustrationStepService,
16955
+ de as illustrationStepService,
16935
16956
  sc as isCloseToValue,
16936
16957
  Tt as loadFont,
16937
16958
  ac as matchHexToPms,
@@ -16953,7 +16974,7 @@ export {
16953
16974
  Xl as registerWindowImplementation,
16954
16975
  La as rehydrateSerializedLayout,
16955
16976
  Lr as rgbToPms,
16956
- ne as rotateAroundPoint,
16977
+ re as rotateAroundPoint,
16957
16978
  ma as sanitizeSvgTree,
16958
16979
  kr as setBearerAuthenticationToken,
16959
16980
  mn as setCanvasModule,