@spiffcommerce/core 32.3.1-beta.f47441d7-c6fd-544a-8448-b3ed6932599d → 32.3.1-beta.fb24b784-d4cb-5c48-bf28-41a506fc3cc8

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
@@ -1,41 +1,41 @@
1
- import { createHttpLink as dr, ApolloClient as Ar, InMemoryCache as ur, from as hr, gql as w } from "@apollo/client/core";
2
- import { setContext as mr } from "@apollo/client/link/context";
3
- import { onError as gr } from "@apollo/client/link/error";
4
- import { renderToStaticMarkup as pr } from "preact-render-to-string";
5
- import { removeTypenameFromVariables as fr } from "@apollo/client/link/remove-typename";
6
- import { orientation as Cr } from "exifr/dist/mini.umd.cjs";
7
- import { parse as dn } from "css";
8
- import wr from "fuse.js";
1
+ import { createHttpLink as Ar, ApolloClient as ur, InMemoryCache as hr, from as mr, gql as w } from "@apollo/client/core";
2
+ import { setContext as gr } from "@apollo/client/link/context";
3
+ import { onError as pr } from "@apollo/client/link/error";
4
+ import { renderToStaticMarkup as fr } from "preact-render-to-string";
5
+ import { removeTypenameFromVariables as Cr } from "@apollo/client/link/remove-typename";
6
+ import { orientation as wr } from "exifr/dist/mini.umd.cjs";
7
+ import { parse as An } from "css";
8
+ import yr from "fuse.js";
9
9
  import { Pith as ma } from "pith";
10
10
  import Et from "lodash.clonedeep";
11
- import { toString as An } from "qrcode";
12
- import yr from "svg-path-bbox";
11
+ import { toString as un } from "qrcode";
12
+ import Sr from "svg-path-bbox";
13
13
  import { parse as aa } from "opentype.js";
14
14
  import { jsx as D, jsxs as ct, Fragment as Gt } from "preact/jsx-runtime";
15
- import Sr from "handlebars";
16
- import { dataUriToBuffer as vr } from "data-uri-to-buffer";
15
+ import vr from "handlebars";
16
+ import { dataUriToBuffer as Er } from "data-uri-to-buffer";
17
17
  import Ma from "lodash.chunk";
18
- import { CognitoIdentityProviderClient as Er, InitiateAuthCommand as Ta, RespondToAuthChallengeCommand as br } from "@aws-sdk/client-cognito-identity-provider";
19
- import Ir from "dinero.js";
18
+ import { CognitoIdentityProviderClient as br, InitiateAuthCommand as Ta, RespondToAuthChallengeCommand as Ir } from "@aws-sdk/client-cognito-identity-provider";
19
+ import Br from "dinero.js";
20
20
  import * as Na from "currency-codes";
21
- import Se from "lodash.isequal";
21
+ import ve from "lodash.isequal";
22
22
  import { split as na } from "unicode-default-word-boundary";
23
- import un from "lodash.debounce";
23
+ import hn from "lodash.debounce";
24
24
  import "fs";
25
25
  import "path";
26
- import Br from "lodash.omit";
27
- var ve = /* @__PURE__ */ ((n) => (n.Data = "Data", n.Font = "Font", n.Frame = "Frame", n.Illustration = "Illustration", n.Image = "Image", n.Model = "Model", n.Material = "Material", n.Color = "Color", n.QuestionnaireCollateral = "QuestionnaireCollateral", n.RequestCollateral = "RequestCollateral", n.SignupCollateral = "SignupCollateral", n.Video = "Video", n.ColorProfile = "ColorProfile", n.Environment = "Environment", n))(ve || {}), L = /* @__PURE__ */ ((n) => (n.FileUpload = "FileUpload", n.Option = "Option", n.ColorOption = "ColorOption", n.Text = "Text", n))(L || {}), E = /* @__PURE__ */ ((n) => (n.Information = "Information", n.Bulk = "Bulk", n.DigitalContent = "DigitalContent", n.Finish = "Finish", n.Frame = "Frame", n.Illustration = "Illustration", n.Introduction = "Introduction", n.Material = "Material", n.Model = "Model", n.Module = "Module", n.Picture = "Picture", n.Photo = "Photo", n.ProductOverlay = "ProductOverlay", n.Question = "Question", n.Shape = "Shape", n.SilentIllustration = "SilentIllustration", n.Text = "Text", n))(E || {}), Pr = /* @__PURE__ */ ((n) => (n.Color = "Color", n.Colors = "Colors", n.Selection = "Selection", n.Selections = "Selections", n.Text = "Text", n.Upload = "Upload", n))(Pr || {}), jt = /* @__PURE__ */ ((n) => (n.ThreeD = "ThreeD", n.FreeDesign = "FreeDesign", n.Print = "Print", n))(jt || {}), x = /* @__PURE__ */ ((n) => (n.Frame = "frame", n.Group = "group", n.Image = "image", n.Pattern = "pattern", n.Illustration = "illustration", n.Textbox = "textbox", n))(x || {}), Dr = /* @__PURE__ */ ((n) => (n.Default = "Default", n.FirstTransaction = "FirstTransaction", n.OneToOne = "OneToOne", n))(Dr || {}), hn = /* @__PURE__ */ ((n) => (n.Pending = "Pending", n.Failed = "Failed", n.Validated = "Validated", n.Overridden = "Overridden", n))(hn || {}), Fr = /* @__PURE__ */ ((n) => (n.Hyperlink = "Hyperlink", n.Edit = "Edit", n.Approve = "Approve", n))(Fr || {}), xr = /* @__PURE__ */ ((n) => (n.Hub = "Hub", n.Shopify = "Shopify", n))(xr || {}), ga = /* @__PURE__ */ ((n) => (n.BackgroundRemover = "BackgroundRemover", n.ConversionAccelerator = "Conversion Accelerator", n.ProcessBuilder = "ProcessBuilder", n))(ga || {}), kr = /* @__PURE__ */ ((n) => (n[n.Orbit = 0] = "Orbit", n[n.Pan = 1] = "Pan", n))(kr || {}), Ee = /* @__PURE__ */ ((n) => (n.Owner = "Owner", n.Approver = "Approver", n.Editor = "Editor", n.Viewer = "Viewer", n))(Ee || {}), Mt = /* @__PURE__ */ ((n) => (n.Autosize = "Autosize", n.Traditional = "Traditional", n))(Mt || {}), H = /* @__PURE__ */ ((n) => (n[n.North = 0] = "North", n[n.Northeast = 1] = "Northeast", n[n.East = 2] = "East", n[n.Southeast = 3] = "Southeast", n[n.South = 4] = "South", n[n.Southwest = 5] = "Southwest", n[n.West = 6] = "West", n[n.Northwest = 7] = "Northwest", n))(H || {}), Mr = /* @__PURE__ */ ((n) => (n.Pixel = "px", n.Millimeter = "mm", n.Centimeter = "cm", n))(Mr || {});
28
- class mn extends Error {
26
+ import Pr from "lodash.omit";
27
+ var Ee = /* @__PURE__ */ ((n) => (n.Data = "Data", n.Font = "Font", n.Frame = "Frame", n.Illustration = "Illustration", n.Image = "Image", n.Model = "Model", n.Material = "Material", n.Color = "Color", n.QuestionnaireCollateral = "QuestionnaireCollateral", n.RequestCollateral = "RequestCollateral", n.SignupCollateral = "SignupCollateral", n.Video = "Video", n.ColorProfile = "ColorProfile", n.Environment = "Environment", n))(Ee || {}), L = /* @__PURE__ */ ((n) => (n.FileUpload = "FileUpload", n.Option = "Option", n.ColorOption = "ColorOption", n.Text = "Text", n))(L || {}), E = /* @__PURE__ */ ((n) => (n.Information = "Information", n.Bulk = "Bulk", n.DigitalContent = "DigitalContent", n.Finish = "Finish", n.Frame = "Frame", n.Illustration = "Illustration", n.Introduction = "Introduction", n.Material = "Material", n.Model = "Model", n.Module = "Module", n.Picture = "Picture", n.Photo = "Photo", n.ProductOverlay = "ProductOverlay", n.Question = "Question", n.Shape = "Shape", n.SilentIllustration = "SilentIllustration", n.Text = "Text", n))(E || {}), Dr = /* @__PURE__ */ ((n) => (n.Color = "Color", n.Colors = "Colors", n.Selection = "Selection", n.Selections = "Selections", n.Text = "Text", n.Upload = "Upload", n))(Dr || {}), jt = /* @__PURE__ */ ((n) => (n.ThreeD = "ThreeD", n.FreeDesign = "FreeDesign", n.Print = "Print", n))(jt || {}), x = /* @__PURE__ */ ((n) => (n.Frame = "frame", n.Group = "group", n.Image = "image", n.Pattern = "pattern", n.Illustration = "illustration", n.Textbox = "textbox", n))(x || {}), Fr = /* @__PURE__ */ ((n) => (n.Default = "Default", n.FirstTransaction = "FirstTransaction", n.OneToOne = "OneToOne", n))(Fr || {}), mn = /* @__PURE__ */ ((n) => (n.Pending = "Pending", n.Failed = "Failed", n.Validated = "Validated", n.Overridden = "Overridden", n))(mn || {}), xr = /* @__PURE__ */ ((n) => (n.Hyperlink = "Hyperlink", n.Edit = "Edit", n.Approve = "Approve", n))(xr || {}), kr = /* @__PURE__ */ ((n) => (n.Hub = "Hub", n.Shopify = "Shopify", n))(kr || {}), ga = /* @__PURE__ */ ((n) => (n.BackgroundRemover = "BackgroundRemover", n.ConversionAccelerator = "Conversion Accelerator", n.ProcessBuilder = "ProcessBuilder", n))(ga || {}), Mr = /* @__PURE__ */ ((n) => (n[n.Orbit = 0] = "Orbit", n[n.Pan = 1] = "Pan", n))(Mr || {}), be = /* @__PURE__ */ ((n) => (n.Owner = "Owner", n.Approver = "Approver", n.Editor = "Editor", n.Viewer = "Viewer", n))(be || {}), Mt = /* @__PURE__ */ ((n) => (n.Autosize = "Autosize", n.Traditional = "Traditional", n))(Mt || {}), H = /* @__PURE__ */ ((n) => (n[n.North = 0] = "North", n[n.Northeast = 1] = "Northeast", n[n.East = 2] = "East", n[n.Southeast = 3] = "Southeast", n[n.South = 4] = "South", n[n.Southwest = 5] = "Southwest", n[n.West = 6] = "West", n[n.Northwest = 7] = "Northwest", n))(H || {}), Tr = /* @__PURE__ */ ((n) => (n.Pixel = "px", n.Millimeter = "mm", n.Centimeter = "cm", n))(Tr || {});
28
+ class gn extends Error {
29
29
  constructor(t) {
30
30
  super(t), this.name = this.constructor.name;
31
31
  }
32
32
  }
33
- class Xt extends mn {
33
+ class Xt extends gn {
34
34
  constructor(t) {
35
35
  super(`ConfigurationError - ${t}`);
36
36
  }
37
37
  }
38
- class be extends Xt {
38
+ class Ie extends Xt {
39
39
  constructor(t) {
40
40
  super(`Option not Configured: ${t.stepTitle}`), this.optionId = t?.optionId || "N/A";
41
41
  }
@@ -55,37 +55,37 @@ class Yt extends Xt {
55
55
  super(`Resource not found for asset: ${t.name}`), this.asset = t;
56
56
  }
57
57
  }
58
- class Ie extends Xt {
58
+ class Be extends Xt {
59
59
  constructor(t, e) {
60
60
  super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
61
61
  }
62
62
  }
63
- class Me extends mn {
63
+ class Te extends gn {
64
64
  constructor(t) {
65
65
  super(`ImplementationError - ${t}`);
66
66
  }
67
67
  }
68
- class N extends Me {
68
+ class N extends Te {
69
69
  constructor(t) {
70
70
  super(`Unhandled Behavior Encountered: ${t}`);
71
71
  }
72
72
  }
73
- class Dt extends Me {
73
+ class Dt extends Te {
74
74
  constructor(t) {
75
75
  super(`Parsing Error: ${t}`);
76
76
  }
77
77
  }
78
- class ht extends Me {
78
+ class ht extends Te {
79
79
  constructor(t) {
80
80
  super(`Client Error: ${t}`);
81
81
  }
82
82
  }
83
- class Te extends Me {
83
+ class Ne extends Te {
84
84
  constructor(t) {
85
85
  super(`Resource Generation Failed: ${t}`);
86
86
  }
87
87
  }
88
- class Tr {
88
+ class Nr {
89
89
  get(t) {
90
90
  return localStorage.getItem(t) || void 0;
91
91
  }
@@ -128,14 +128,14 @@ class Qa {
128
128
  this.set(t, a);
129
129
  }
130
130
  }
131
- const Nr = () => {
131
+ const Qr = () => {
132
132
  try {
133
- return localStorage ? new Tr() : new Qa();
133
+ return localStorage ? new Nr() : new Qa();
134
134
  } catch {
135
135
  return console.warn("Local storage was unavilable due to browser security settings. Using in-memory storage instead."), new Qa();
136
136
  }
137
- }, k = Nr();
138
- class Qr {
137
+ }, k = Qr();
138
+ class Rr {
139
139
  constructor() {
140
140
  this.defaultServerUrl = "https://api.au.spiffcommerce.com", this.defaultServicesApiUrl = "https://services.au.spiffcommerce.com", this.defaultHubUrl = "https://hub.au.spiffcommerce.com", this.serverUrl = this.defaultServerUrl, this.servicesApiUrl = this.defaultServicesApiUrl, this.hubUrl = this.defaultHubUrl, this.serverUrlCallbacks = [];
141
141
  }
@@ -161,7 +161,7 @@ class Qr {
161
161
  this.serverUrlCallbacks.push(t);
162
162
  }
163
163
  }
164
- const gt = new Qr();
164
+ const gt = new Rr();
165
165
  let ra, ia;
166
166
  function Gc(n) {
167
167
  ra = n;
@@ -184,20 +184,20 @@ function rt(n, t) {
184
184
  }
185
185
  return ia(n, t);
186
186
  }
187
- const gn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @__PURE__ */ new Map(), pn = async (n) => {
187
+ const pn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @__PURE__ */ new Map(), fn = async (n) => {
188
188
  const t = Ra.get(n);
189
189
  if (t) return t;
190
190
  const a = (async () => {
191
191
  const r = await rt(n);
192
- return gn.set(n, r.headers?.get("content-type") || ""), await r.arrayBuffer();
192
+ return pn.set(n, r.headers?.get("content-type") || ""), await r.arrayBuffer();
193
193
  })();
194
194
  return Ra.set(n, a), a;
195
- }, Rr = async (n) => {
195
+ }, Or = async (n) => {
196
196
  const t = Oa.get(n);
197
197
  if (t) return t;
198
198
  const a = (async () => await (await rt(n)).text())();
199
199
  return Oa.set(n, a), a;
200
- }, Tt = (n) => n.every((t) => t !== "undefined"), se = (n) => Tt([typeof document]) ? document.createElement(n) : Zt().document.createElement(n), Or = (n, t) => {
200
+ }, Tt = (n) => n.every((t) => t !== "undefined"), oe = (n) => Tt([typeof document]) ? document.createElement(n) : Zt().document.createElement(n), $r = (n, t) => {
201
201
  if (Tt([typeof document]))
202
202
  return document.createElementNS(n, t);
203
203
  const a = Zt().document.createElement(t);
@@ -207,17 +207,17 @@ const gn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
207
207
  return new DOMParser();
208
208
  const n = Zt();
209
209
  return new n.DOMParser();
210
- }, $r = () => Tt([typeof DOMParser]) ? DOMParser : Zt().DOMParser, Ne = (n, t) => new Promise((e, a) => {
211
- t ? pn(n).then(e).catch(a) : rt(n).then((r) => {
210
+ }, Ur = () => Tt([typeof DOMParser]) ? DOMParser : Zt().DOMParser, Qe = (n, t) => new Promise((e, a) => {
211
+ t ? fn(n).then(e).catch(a) : rt(n).then((r) => {
212
212
  r.arrayBuffer().then(e).catch(a);
213
213
  }).catch((r) => {
214
214
  a(r);
215
215
  });
216
216
  }), nt = (n, t) => new Promise((e, a) => {
217
- t ? Rr(n).then(e).catch(a) : rt(n).then((r) => {
217
+ t ? Or(n).then(e).catch(a) : rt(n).then((r) => {
218
218
  r.text().then(e).catch(a);
219
219
  }).catch(a);
220
- }), fn = (n) => pr(n), Ve = /* @__PURE__ */ new Map(), Ur = async (n, t) => {
220
+ }), Cn = (n) => fr(n), Ve = /* @__PURE__ */ new Map(), Lr = async (n, t) => {
221
221
  if (Tt([typeof FontFace])) {
222
222
  if (Ve.has(t))
223
223
  return Ve.get(t);
@@ -231,7 +231,7 @@ const gn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
231
231
  return new XMLSerializer();
232
232
  const n = Zt();
233
233
  return new n.XMLSerializer();
234
- }, $a = (n) => btoa(n), Qe = (n) => {
234
+ }, $a = (n) => btoa(n), Re = (n) => {
235
235
  function t() {
236
236
  const a = new Uint8Array(n), r = 4;
237
237
  if (a.length >= r) {
@@ -258,18 +258,18 @@ const gn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
258
258
  const e = t();
259
259
  return e || "image/svg+xml";
260
260
  }, qc = async (n) => {
261
- const t = await pn(n), e = gn.get(n) || Qe(t);
262
- return await zr(new Blob([t], { type: e }));
263
- }, Lr = (n) => {
261
+ const t = await fn(n), e = pn.get(n) || Re(t);
262
+ return await Gr(new Blob([t], { type: e }));
263
+ }, Vr = (n) => {
264
264
  let t = "";
265
265
  const e = n.byteLength;
266
266
  for (let a = 0; a < e; a++)
267
267
  t += String.fromCharCode(n[a]);
268
268
  return t;
269
- }, Vr = async (n) => {
270
- const t = Qe(n), e = new Uint8Array(n), a = Lr(e), r = btoa(a);
269
+ }, zr = async (n) => {
270
+ const t = Re(n), e = new Uint8Array(n), a = Vr(e), r = btoa(a);
271
271
  return `data:${t};base64,${r}`;
272
- }, pa = (n) => `data:image/svg+xml;base64,${btoa(n)}`, Cn = (n) => {
272
+ }, pa = (n) => `data:image/svg+xml;base64,${btoa(n)}`, wn = (n) => {
273
273
  const t = n.replace(/\r?\n/g, ""), e = t.indexOf(",");
274
274
  if (e === -1 || e <= 4)
275
275
  throw new TypeError("malformed data: URI");
@@ -281,39 +281,39 @@ const gn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
281
281
  return r ? new Uint8Array(
282
282
  atob(i).split("").map((o) => o.charCodeAt(0))
283
283
  ).buffer : new Uint8Array(i.split("").map((o) => o.charCodeAt(0))).buffer;
284
- }, zr = (n) => new Promise((t, e) => {
284
+ }, Gr = (n) => new Promise((t, e) => {
285
285
  const a = new FileReader();
286
286
  a.onload = function(r) {
287
287
  const i = r.target;
288
288
  !i || !i.result ? e() : t(i.result.toString());
289
289
  }, a.readAsDataURL(n);
290
290
  });
291
- let Gr, fa;
292
- const Wr = (n) => {
291
+ let Wr, fa;
292
+ const qr = (n) => {
293
293
  fa = n;
294
- }, qr = () => fa;
295
- let wn;
296
- const Hr = (n) => {
297
- wn = n;
298
- }, jr = () => new Promise((n) => {
294
+ }, Hr = () => fa;
295
+ let yn;
296
+ const jr = (n) => {
297
+ yn = n;
298
+ }, Yr = () => new Promise((n) => {
299
299
  const t = gt.getHubUrl(), e = (a) => {
300
300
  a.origin === t && (window.removeEventListener("message", e), n(a.data));
301
301
  };
302
302
  window.parent !== window && (window.addEventListener("message", e, !1), window.parent.postMessage("ready", t));
303
- }), Yr = async () => {
303
+ }), Jr = async () => {
304
304
  const n = {
305
305
  applicationKey: fa,
306
- customerToken: Gr,
307
- bearer: wn
306
+ customerToken: Wr,
307
+ bearer: yn
308
308
  };
309
- return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await jr(), ...n } : n;
309
+ return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await Yr(), ...n } : n;
310
310
  };
311
- async function Jr(n, t) {
311
+ async function Kr(n, t) {
312
312
  const e = gt.getServerUrl(), a = e.includes(".aumelbdev.spiffcommerce.com") ? "https://moonlight.aumelbdev.spiffcommerce.com" : e.includes(".us.spiffcommerce.com") ? "https://moonlight.us.spiffcommerce.com" : "https://moonlight.au.spiffcommerce.com";
313
313
  let r = await rt(n, { ...t, redirect: "manual" });
314
314
  return r.type === "opaqueredirect" && (typeof n != "string" && "url" in n ? r = await rt({ ...n, url: `${a}/graphql` }, t) : r = await rt(`${a}/graphql`, t)), r;
315
315
  }
316
- class Kr {
316
+ class _r {
317
317
  constructor() {
318
318
  this.shadowGraphqlClient = this.constructShadowGraphqlClient(), gt.addServerUrlCallback(() => {
319
319
  this.shadowGraphqlClient = this.constructShadowGraphqlClient();
@@ -326,11 +326,11 @@ class Kr {
326
326
  return this.shadowGraphqlClient;
327
327
  }
328
328
  constructShadowGraphqlClient() {
329
- const t = dr({
329
+ const t = Ar({
330
330
  uri: `${gt.getServerUrl()}/graphql`,
331
- fetch: Jr
332
- }), e = mr(async (i, s) => {
333
- const { headers: o } = s, l = o || {}, c = await Yr();
331
+ fetch: Kr
332
+ }), e = gr(async (i, s) => {
333
+ const { headers: o } = s, l = o || {}, c = await Jr();
334
334
  let d = s.bearer ?? c.bearer;
335
335
  if (this.spiffClient)
336
336
  try {
@@ -353,25 +353,25 @@ class Kr {
353
353
  return d && (l.Authorization = `Bearer ${d}`), A && (l.partnerId = A), u && (l.activeIntegration = u), h && (l.transactionOwnerId = h), m && (l.customerToken = m), p && (l["X-Application-Key"] = p), g && (l.bundleOwnerId = g), l["Allow-Moonlight-Redirect"] = "true", {
354
354
  headers: l
355
355
  };
356
- }), a = gr(({ operation: i, graphQLErrors: s, networkError: o }) => {
356
+ }), a = pr(({ operation: i, graphQLErrors: s, networkError: o }) => {
357
357
  const l = s || [], c = i.getContext();
358
358
  o && !c?.fetchOptions?.signal?.aborted && console.log("GraphQL Network error"), l.forEach(() => console.log("GraphQL Error: " + i.operationName));
359
- }), r = fr();
360
- return new Ar({
361
- link: hr([r, a, e, t]),
362
- cache: new ur(),
359
+ }), r = Cr();
360
+ return new ur({
361
+ link: mr([r, a, e, t]),
362
+ cache: new hr(),
363
363
  name: "Core"
364
364
  });
365
365
  }
366
366
  }
367
- const v = new Kr();
367
+ const v = new _r();
368
368
  let sa, oa;
369
369
  const pt = (n, t, e) => {
370
370
  if (sa !== void 0)
371
371
  return sa(n, t, e);
372
372
  try {
373
- const a = Sn(!0);
374
- return yn(a), a.createCanvas(n, t, e);
373
+ const a = vn(!0);
374
+ return Sn(a), a.createCanvas(n, t, e);
375
375
  } catch {
376
376
  throw new Error("Canvas module not set");
377
377
  }
@@ -379,16 +379,16 @@ const pt = (n, t, e) => {
379
379
  if (oa !== void 0)
380
380
  return oa(n, t);
381
381
  try {
382
- const e = Sn(!0);
383
- return yn(e), e.loadImage(n, t);
382
+ const e = vn(!0);
383
+ return Sn(e), e.loadImage(n, t);
384
384
  } catch {
385
385
  throw new Error("Canvas module not set");
386
386
  }
387
387
  };
388
- function yn(n) {
388
+ function Sn(n) {
389
389
  sa = n?.createCanvas, oa = n?.loadImage;
390
390
  }
391
- function Sn(n) {
391
+ function vn(n) {
392
392
  try {
393
393
  if (document.createElement("canvas").getContext("2d"))
394
394
  return {
@@ -409,28 +409,28 @@ function Sn(n) {
409
409
  }
410
410
  let ze;
411
411
  function Ca() {
412
- return ze === void 0 && (ze = $r()), ze;
412
+ return ze === void 0 && (ze = Ur()), ze;
413
413
  }
414
- let oe = null;
415
- const _r = (n) => new Promise((t) => {
416
- if (Qe(n) !== "image/jpeg")
414
+ let le = null;
415
+ const Xr = (n) => new Promise((t) => {
416
+ if (Re(n) !== "image/jpeg")
417
417
  return t(1);
418
- Cr(n).then((a) => t(a || 1)).catch(() => t(1));
419
- }), Xr = async () => {
420
- if (oe !== null)
421
- return !oe;
418
+ wr(n).then((a) => t(a || 1)).catch(() => t(1));
419
+ }), Zr = async () => {
420
+ if (le !== null)
421
+ return !le;
422
422
  const t = await te("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
423
- return oe = t.width === 2 && t.height === 3, !oe;
424
- }, Zr = (n) => {
423
+ return le = t.width === 2 && t.height === 3, !le;
424
+ }, ti = (n) => {
425
425
  const e = n.naturalWidth / n.naturalHeight;
426
426
  return n.naturalHeight <= 8192 && n.naturalWidth <= 8192 ? [n.naturalWidth, n.naturalHeight] : n.naturalHeight > n.naturalWidth ? [e * 8192, 8192] : [8192, 8192 / e];
427
- }, ti = async (n) => {
428
- const t = await Vr(n), e = await te(t), [a, r] = Zr(e);
429
- if (!await Xr()) {
427
+ }, ei = async (n) => {
428
+ const t = await zr(n), e = await te(t), [a, r] = ti(e);
429
+ if (!await Zr()) {
430
430
  const A = pt(a, r);
431
431
  return A.getContext("2d")?.drawImage(e, 0, 0, a, r), A;
432
432
  }
433
- const s = await _r(n), [o, l] = s > 4 ? [r, a] : [a, r], c = pt(o, l), d = c.getContext("2d");
433
+ const s = await Xr(n), [o, l] = s > 4 ? [r, a] : [a, r], c = pt(o, l), d = c.getContext("2d");
434
434
  switch (s) {
435
435
  case 2:
436
436
  d.translate(o, 0), d.scale(-1, 1);
@@ -455,9 +455,9 @@ const _r = (n) => new Promise((t) => {
455
455
  break;
456
456
  }
457
457
  return d.drawImage(e, 0, 0, o, l), c;
458
- }, Re = async (n) => {
459
- const t = await ti(n);
460
- return Qe(n) === "image/jpeg" ? {
458
+ }, Oe = async (n) => {
459
+ const t = await ei(n);
460
+ return Re(n) === "image/jpeg" ? {
461
461
  dataUrl: t.toDataURL("image/jpeg", 1),
462
462
  height: t.height,
463
463
  width: t.width
@@ -3159,12 +3159,12 @@ function Hc(n) {
3159
3159
  const t = Jt.indexOf(n);
3160
3160
  return t >= 0 ? xt[t] : "";
3161
3161
  }
3162
- function ei(n) {
3162
+ function ai(n) {
3163
3163
  const t = xt.indexOf(n);
3164
3164
  return t >= 0 ? Jt[t] : "";
3165
3165
  }
3166
3166
  function jc(n, t = 64) {
3167
- const e = [], a = [], r = ei(n);
3167
+ const e = [], a = [], r = ai(n);
3168
3168
  r && e.push({
3169
3169
  pms: r,
3170
3170
  hex: n,
@@ -3181,12 +3181,12 @@ function jc(n, t = 64) {
3181
3181
  a[A] <= t && !e.some((u) => u.pms === Jt[A]) && e.push({ pms: Jt[A], hex: xt[A], distance: a[A] });
3182
3182
  return e.sort((A, u) => A.distance - u.distance);
3183
3183
  }
3184
- const ai = Jt.map((n, t) => ({ pms: n, hex: xt[t] })), ni = new wr(ai, { keys: ["pms"] });
3184
+ const ni = Jt.map((n, t) => ({ pms: n, hex: xt[t] })), ri = new yr(ni, { keys: ["pms"] });
3185
3185
  function Yc(n, t) {
3186
- return ni.search(n, t ? { limit: t } : void 0);
3186
+ return ri.search(n, t ? { limit: t } : void 0);
3187
3187
  }
3188
3188
  let Qt = null;
3189
- function ri(n) {
3189
+ function ii(n) {
3190
3190
  if (n.startsWith("#"))
3191
3191
  return Ua(n);
3192
3192
  if (!document)
@@ -3201,10 +3201,10 @@ function Ua(n) {
3201
3201
  const t = n.substring(1).toUpperCase();
3202
3202
  return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
3203
3203
  }
3204
- const le = (n) => {
3205
- const t = vn(n.spotColor);
3204
+ const ce = (n) => {
3205
+ const t = En(n.spotColor);
3206
3206
  return t ? `${n.browserValue} ${t}` : n.browserValue;
3207
- }, vn = (n) => {
3207
+ }, En = (n) => {
3208
3208
  if (!n)
3209
3209
  return "";
3210
3210
  if (n.profileName.includes("/") && n.profileName.includes(".icc")) {
@@ -3226,7 +3226,7 @@ const le = (n) => {
3226
3226
  browserValue: t[0],
3227
3227
  spotColor: { profileName: a[0], namedColor: a[1] }
3228
3228
  };
3229
- }, ii = [
3229
+ }, si = [
3230
3230
  "altGlyph",
3231
3231
  "circle",
3232
3232
  "ellipse",
@@ -3238,9 +3238,9 @@ const le = (n) => {
3238
3238
  "textPath",
3239
3239
  "tref",
3240
3240
  "tspan"
3241
- ], si = ["fill", "stroke"], kt = (n, t) => {
3241
+ ], oi = ["fill", "stroke"], kt = (n, t) => {
3242
3242
  t(n), n.children.length > 0 && Array.from(n.children).forEach((e) => kt(e, t));
3243
- }, oi = (n, t) => {
3243
+ }, li = (n, t) => {
3244
3244
  try {
3245
3245
  return n.matches(t);
3246
3246
  } catch {
@@ -3256,7 +3256,7 @@ const le = (n) => {
3256
3256
  }
3257
3257
  if (a.tagName === "style") {
3258
3258
  try {
3259
- dn(a.innerHTML).stylesheet?.rules.forEach((s) => {
3259
+ An(a.innerHTML).stylesheet?.rules.forEach((s) => {
3260
3260
  e.push(s);
3261
3261
  }), a.remove();
3262
3262
  } catch (i) {
@@ -3271,26 +3271,26 @@ const le = (n) => {
3271
3271
  const l = o.trim();
3272
3272
  if (l) {
3273
3273
  const [c, d] = l.split(":"), A = c.toLowerCase();
3274
- si.indexOf(A) > -1 ? a.setAttribute(A, d.trim()) : i.push(l);
3274
+ oi.indexOf(A) > -1 ? a.setAttribute(A, d.trim()) : i.push(l);
3275
3275
  }
3276
3276
  }), i.length > 0 ? a.setAttribute("style", i.join(";")) : a.removeAttribute("style");
3277
3277
  }
3278
3278
  }), kt(n, (a) => {
3279
3279
  e.forEach((r) => {
3280
3280
  r.selectors?.forEach((i) => {
3281
- oi(a, i) && r.declarations?.forEach((s) => {
3281
+ li(a, i) && r.declarations?.forEach((s) => {
3282
3282
  s.property && s.value && a.setAttribute(s.property, s.value);
3283
3283
  });
3284
3284
  });
3285
3285
  });
3286
3286
  });
3287
- }, li = (n) => {
3287
+ }, ci = (n) => {
3288
3288
  const t = /pt|pc|mm|cm|in/gm, e = n.getAttribute("viewBox"), a = n.getAttribute("width"), r = n.getAttribute("height");
3289
3289
  if (!e) throw new Error("viewBox not specified on SVG!");
3290
3290
  a && n.setAttribute("width", a.replace(t, "")), r && n.setAttribute("height", r.replace(t, ""));
3291
- }, En = (n) => dt().parseFromString(n, "image/svg+xml").firstElementChild, ci = (n, t, e) => {
3291
+ }, bn = (n) => dt().parseFromString(n, "image/svg+xml").firstElementChild, di = (n, t, e) => {
3292
3292
  n.setAttribute("height", `${e}px`), n.setAttribute("width", `${t}px`);
3293
- }, bn = (n, t, e) => {
3293
+ }, In = (n, t, e) => {
3294
3294
  kt(n, (a) => {
3295
3295
  const r = a.attributes.getNamedItem("fill");
3296
3296
  r && r.value !== "none" && a.classList.forEach((s) => {
@@ -3299,13 +3299,13 @@ const le = (n) => {
3299
3299
  if (o)
3300
3300
  a.setAttribute(
3301
3301
  "fill",
3302
- e ? le(o) : o.browserValue
3302
+ e ? ce(o) : o.browserValue
3303
3303
  );
3304
3304
  else {
3305
3305
  const l = t[s];
3306
3306
  l && a.setAttribute(
3307
3307
  "fill",
3308
- e ? le(l) : l.browserValue
3308
+ e ? ce(l) : l.browserValue
3309
3309
  );
3310
3310
  }
3311
3311
  }
@@ -3317,39 +3317,39 @@ const le = (n) => {
3317
3317
  if (o)
3318
3318
  a.setAttribute(
3319
3319
  "stroke",
3320
- e ? le(o) : o.browserValue
3320
+ e ? ce(o) : o.browserValue
3321
3321
  );
3322
3322
  else {
3323
3323
  const l = t[s];
3324
3324
  l && a.setAttribute(
3325
3325
  "fill",
3326
- e ? le(l) : l.browserValue
3326
+ e ? ce(l) : l.browserValue
3327
3327
  );
3328
3328
  }
3329
3329
  }
3330
3330
  });
3331
3331
  });
3332
- }, In = (n) => Bt().serializeToString(n), ya = (n, t, e, a, r) => {
3333
- const i = En(n);
3332
+ }, Bn = (n) => Bt().serializeToString(n), ya = (n, t, e, a, r) => {
3333
+ const i = bn(n);
3334
3334
  if (!i)
3335
3335
  throw new Error("Failed to read SVG.");
3336
- return ci(i, t, e), bn(i, a, r), In(i);
3336
+ return di(i, t, e), In(i, a, r), Bn(i);
3337
3337
  }, Sa = (n, t, e) => {
3338
- const a = En(n);
3338
+ const a = bn(n);
3339
3339
  if (!a)
3340
3340
  throw new Error("Failed to read SVG.");
3341
- return bn(a, t, e), In(a);
3342
- }, di = (n) => {
3341
+ return In(a, t, e), Bn(a);
3342
+ }, Ai = (n) => {
3343
3343
  const t = /<svg.*<\/svg>/s, e = n.match(t) || [], a = e?.length > 0 ? e[0] : "";
3344
3344
  return dt().parseFromString(a, "image/svg+xml");
3345
3345
  }, ot = async (n) => {
3346
- const e = di(n).firstElementChild;
3346
+ const e = Ai(n).firstElementChild;
3347
3347
  if (!e)
3348
3348
  throw new Error("Failed to read SVG.");
3349
3349
  wa(e);
3350
3350
  const a = {};
3351
3351
  kt(e, (s) => {
3352
- ii.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
3352
+ si.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
3353
3353
  const o = s.attributes.getNamedItem("fill");
3354
3354
  if (o && o.value !== "none" && !o.value.startsWith("url(")) {
3355
3355
  const c = La(o.value), d = c.browserValue.replace(/\W/g, ""), A = `spiff-fill-${d}`;
@@ -3366,7 +3366,7 @@ const le = (n) => {
3366
3366
  colors: a,
3367
3367
  svg: i
3368
3368
  };
3369
- }, Ai = w`
3369
+ }, ui = w`
3370
3370
  fragment AssetMetadataFields on Asset {
3371
3371
  metadata {
3372
3372
  key
@@ -3374,7 +3374,7 @@ const le = (n) => {
3374
3374
  }
3375
3375
  }
3376
3376
  `, ee = (n) => w`
3377
- ${n && Ai || ""}
3377
+ ${n && ui || ""}
3378
3378
  fragment AssetFields on Asset {
3379
3379
  name
3380
3380
  key
@@ -3416,7 +3416,7 @@ const le = (n) => {
3416
3416
  }
3417
3417
  ${n && "...AssetMetadataFields" || ""}
3418
3418
  }
3419
- `, ui = w`
3419
+ `, hi = w`
3420
3420
  ${ee(!1)}
3421
3421
  query GetAssets($keys: [String]!) {
3422
3422
  assets(keys: $keys) {
@@ -3470,14 +3470,14 @@ const le = (n) => {
3470
3470
  fileLink
3471
3471
  }
3472
3472
  }
3473
- `, hi = w`
3473
+ `, mi = w`
3474
3474
  ${va}
3475
3475
  query GetMaterials($ids: [String]) {
3476
3476
  materials(id: $ids) {
3477
3477
  ...MaterialFields
3478
3478
  }
3479
3479
  }
3480
- `, mi = w`
3480
+ `, gi = w`
3481
3481
  mutation CreateAsset($name: String!, $type: String!, $mimeType: String!, $anonymous: Boolean, $temporary: Boolean) {
3482
3482
  assetCreate(name: $name, type: $type, mimeType: $mimeType, anonymous: $anonymous, temporary: $temporary) {
3483
3483
  uploadUrl
@@ -3491,28 +3491,28 @@ const le = (n) => {
3491
3491
  }
3492
3492
  }
3493
3493
  }
3494
- `, gi = w`
3494
+ `, pi = w`
3495
3495
  ${ee(!1)}
3496
3496
  mutation RemoveBackgroundFromAsset($key: String!) {
3497
3497
  assetRemoveBackground(key: $key) {
3498
3498
  ...AssetFields
3499
3499
  }
3500
3500
  }
3501
- `, Be = async (n) => (await v.getShadowGraphqlClient().query({
3502
- query: ui,
3501
+ `, Pe = async (n) => (await v.getShadowGraphqlClient().query({
3502
+ query: hi,
3503
3503
  errorPolicy: "all",
3504
3504
  fetchPolicy: "no-cache",
3505
3505
  variables: {
3506
3506
  keys: n
3507
3507
  }
3508
- })).data.assets, pi = async (n) => (await v.getShadowGraphqlClient().query({
3509
- query: hi,
3508
+ })).data.assets, fi = async (n) => (await v.getShadowGraphqlClient().query({
3509
+ query: mi,
3510
3510
  errorPolicy: "all",
3511
3511
  variables: {
3512
3512
  ids: n
3513
3513
  }
3514
- })).data.materials, fi = async (n, t, e, a, r) => (await v.getShadowGraphqlClient().mutate({
3515
- mutation: mi,
3514
+ })).data.materials, Ci = async (n, t, e, a, r) => (await v.getShadowGraphqlClient().mutate({
3515
+ mutation: gi,
3516
3516
  errorPolicy: "all",
3517
3517
  fetchPolicy: "no-cache",
3518
3518
  variables: {
@@ -3523,10 +3523,10 @@ const le = (n) => {
3523
3523
  temporary: r
3524
3524
  }
3525
3525
  })).data?.assetCreate;
3526
- class Ci {
3526
+ class wi {
3527
3527
  constructor() {
3528
3528
  this.cache = /* @__PURE__ */ new Map(), this.bgrmProcessCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(), this.loadImageAsFileInfo = async (t) => {
3529
- const e = await t.arrayBuffer(), a = await Re(e), r = (i, s) => {
3529
+ const e = await t.arrayBuffer(), a = await Oe(e), r = (i, s) => {
3530
3530
  const o = atob(i.split(",")[1]), l = [];
3531
3531
  for (let c = 0; c < o.length; c++)
3532
3532
  l.push(o.charCodeAt(c));
@@ -3547,14 +3547,14 @@ class Ci {
3547
3547
  if (!r) throw new N("Failed to get asset from cache!");
3548
3548
  return r;
3549
3549
  }
3550
- const a = (async () => (await Be([t]))[0])();
3550
+ const a = (async () => (await Pe([t]))[0])();
3551
3551
  return this.cache.set(t, a), a;
3552
3552
  }
3553
3553
  /**
3554
3554
  * Retrieves the asset from the server, bypassing cache (but still writing the result to cache)
3555
3555
  */
3556
3556
  async getFromServer(t) {
3557
- const a = (async () => (await Be([t]))[0])();
3557
+ const a = (async () => (await Pe([t]))[0])();
3558
3558
  return this.cache.set(t, a), a;
3559
3559
  }
3560
3560
  keyFromURL(t) {
@@ -3587,7 +3587,7 @@ class Ci {
3587
3587
  async getMaterialLocalOrFromServer(t) {
3588
3588
  if (this.materialCache.has(t))
3589
3589
  return this.materialCache.get(t);
3590
- const a = (async () => (await pi([t]))[0])();
3590
+ const a = (async () => (await fi([t]))[0])();
3591
3591
  return this.materialCache.set(t, a), a;
3592
3592
  }
3593
3593
  /**
@@ -3613,7 +3613,7 @@ class Ci {
3613
3613
  }, a, r);
3614
3614
  }
3615
3615
  async uploadFile(t, e) {
3616
- const r = this.isRaster(t) ? ve.Image : ve.Illustration, i = await this.loadImageAsFileInfo(t);
3616
+ const r = this.isRaster(t) ? Ee.Image : Ee.Illustration, i = await this.loadImageAsFileInfo(t);
3617
3617
  return await this.uploadAssetWithProgress(i, r, e, !0);
3618
3618
  }
3619
3619
  async removeBackgroundFromAsset(t) {
@@ -3626,7 +3626,7 @@ class Ci {
3626
3626
  }
3627
3627
  const r = (async () => {
3628
3628
  const i = await v.getShadowGraphqlClient().mutate({
3629
- mutation: gi,
3629
+ mutation: pi,
3630
3630
  fetchPolicy: "no-cache",
3631
3631
  errorPolicy: "all",
3632
3632
  variables: {
@@ -3661,7 +3661,7 @@ class Ci {
3661
3661
  if (e === "image/svg+xml") {
3662
3662
  const a = await t.blob.text(), s = new window.DOMParser().parseFromString(a, "image/svg+xml").documentElement;
3663
3663
  if (!s) throw new Dt("Failed to read SVG.");
3664
- li(s);
3664
+ ci(s);
3665
3665
  const l = Bt().serializeToString(s);
3666
3666
  return {
3667
3667
  name: t.name,
@@ -3676,7 +3676,7 @@ class Ci {
3676
3676
  * @param assetType The type of asset we're expecting to upload
3677
3677
  */
3678
3678
  async dispatchCreateAssetRequest(t, e, a, r) {
3679
- const i = t.blob.type ? t.blob.type : this.guessMIME(t.name), s = await fi(t.name, e, i, a, r);
3679
+ const i = t.blob.type ? t.blob.type : this.guessMIME(t.name), s = await Ci(t.name, e, i, a, r);
3680
3680
  if (s)
3681
3681
  return {
3682
3682
  assetResponse: s,
@@ -3782,8 +3782,8 @@ class J {
3782
3782
  k.setMap(Va, t);
3783
3783
  }
3784
3784
  }
3785
- const $ = new Ci();
3786
- class wi {
3785
+ const $ = new wi();
3786
+ class yi {
3787
3787
  constructor() {
3788
3788
  this.cache = {}, this.disabled = !1;
3789
3789
  }
@@ -3812,7 +3812,7 @@ class wi {
3812
3812
  this.disabled = t;
3813
3813
  }
3814
3814
  }
3815
- const Kt = new wi(), Bn = w`
3815
+ const Kt = new yi(), Pn = w`
3816
3816
  fragment OptionFields on Option {
3817
3817
  id
3818
3818
  name
@@ -3849,18 +3849,18 @@ const Kt = new wi(), Bn = w`
3849
3849
  ...AssetFields
3850
3850
  }
3851
3851
  }
3852
- `, yi = w`
3852
+ `, Si = w`
3853
3853
  ${ee(!1)}
3854
3854
  ${va}
3855
- ${Bn}
3855
+ ${Pn}
3856
3856
  query GetOptions($ids: [String]!) {
3857
3857
  options(ids: $ids) {
3858
3858
  ...OptionFields
3859
3859
  }
3860
3860
  }
3861
- `, Si = async (n) => {
3861
+ `, vi = async (n) => {
3862
3862
  const t = await v.getShadowGraphqlClient().query({
3863
- query: yi,
3863
+ query: Si,
3864
3864
  errorPolicy: "all",
3865
3865
  variables: {
3866
3866
  ids: n
@@ -3871,16 +3871,16 @@ const Kt = new wi(), Bn = w`
3871
3871
  a.asset && $.cacheAsset(a.asset), a.thumbnail && $.cacheAsset(a.thumbnail), a.material && $.cacheMaterial(a.material);
3872
3872
  });
3873
3873
  }), t.data.options;
3874
- }, vi = async (n, t) => (await t).find((a) => a.id === n), Ei = async (n) => {
3874
+ }, Ei = async (n, t) => (await t).find((a) => a.id === n), bi = async (n) => {
3875
3875
  const t = n.map((s) => Kt.get({ id: s })), e = n.filter((s, o) => t[o] === void 0);
3876
3876
  if (e.length === 0)
3877
3877
  return Promise.all(t);
3878
- const a = Si(e), r = e.map(
3879
- (s) => Kt.set({ id: s }, vi(s, a))
3878
+ const a = vi(e), r = e.map(
3879
+ (s) => Kt.set({ id: s }, Ei(s, a))
3880
3880
  ), i = t.filter((s) => s !== void 0);
3881
3881
  return await Promise.all(i.concat(r));
3882
3882
  };
3883
- class bi {
3883
+ class Ii {
3884
3884
  constructor() {
3885
3885
  this.getSelectedVariant = (t, e) => {
3886
3886
  if (!(!t || e.length === 0))
@@ -3893,7 +3893,7 @@ class bi {
3893
3893
  */
3894
3894
  async getOption(t) {
3895
3895
  return (async () => {
3896
- const r = (await Ei([t]))[0];
3896
+ const r = (await bi([t]))[0];
3897
3897
  if (r)
3898
3898
  return r;
3899
3899
  })();
@@ -3921,7 +3921,7 @@ class bi {
3921
3921
  }
3922
3922
  }
3923
3923
  }
3924
- const j = new bi(), Pn = w`
3924
+ const j = new Ii(), Dn = w`
3925
3925
  fragment ActiveIntegrationFields on Integration {
3926
3926
  id
3927
3927
  logo
@@ -3940,7 +3940,7 @@ const j = new bi(), Pn = w`
3940
3940
  currencyCode
3941
3941
  }
3942
3942
  }
3943
- `, Oe = w`
3943
+ `, ae = w`
3944
3944
  fragment AdditionalIntegrationProductFields on IntegrationProduct {
3945
3945
  id
3946
3946
  product {
@@ -3958,8 +3958,8 @@ const j = new bi(), Pn = w`
3958
3958
  preloadImageUrl
3959
3959
  }
3960
3960
  }
3961
- `, Ii = w`
3962
- ${Oe}
3961
+ `, Bi = w`
3962
+ ${ae}
3963
3963
  mutation CreateTransactions(
3964
3964
  $inputs: [TransactionCreateInput]!
3965
3965
  $marketplaceThemeInstallId: String
@@ -4049,7 +4049,7 @@ const j = new bi(), Pn = w`
4049
4049
  }
4050
4050
  }
4051
4051
  }
4052
- `, Dn = w`
4052
+ `, Fn = w`
4053
4053
  fragment StakeholderFields on Stakeholder {
4054
4054
  id
4055
4055
  type
@@ -4057,7 +4057,7 @@ const j = new bi(), Pn = w`
4057
4057
  authorizationNote
4058
4058
  authorizationStatus
4059
4059
  }
4060
- `, Fn = w`
4060
+ `, xn = w`
4061
4061
  fragment TransactionShareActionFields on TransactionShareAction {
4062
4062
  id
4063
4063
  title
@@ -4066,11 +4066,11 @@ const j = new bi(), Pn = w`
4066
4066
  precedence
4067
4067
  url
4068
4068
  }
4069
- `, Bi = w`
4070
- ${Oe}
4071
- ${Dn}
4069
+ `, Pi = w`
4070
+ ${ae}
4072
4071
  ${Fn}
4073
- ${Pn}
4072
+ ${xn}
4073
+ ${Dn}
4074
4074
  query ReadTransactions($ids: [String]!) {
4075
4075
  transactions(ids: $ids) {
4076
4076
  customLogoLink
@@ -4233,19 +4233,19 @@ const j = new bi(), Pn = w`
4233
4233
  }
4234
4234
  }
4235
4235
  }
4236
- `, Pi = w`
4236
+ `, Di = w`
4237
4237
  mutation UpdateTransactionWorkflowState($id: String!, $workflowState: String!) {
4238
4238
  transactionUpdate(id: $id, workflowState: $workflowState) {
4239
4239
  id
4240
4240
  }
4241
4241
  }
4242
- `, Di = w`
4242
+ `, Fi = w`
4243
4243
  mutation UpdateTransactionQuantity($id: String!, $quantity: Int) {
4244
4244
  transactionUpdate(id: $id, quantity: $quantity) {
4245
4245
  id
4246
4246
  }
4247
4247
  }
4248
- `, Fi = w`
4248
+ `, xi = w`
4249
4249
  query ReadConversionConfigurationQuery($id: String!) {
4250
4250
  conversionConfiguration(id: $id) {
4251
4251
  id
@@ -4263,7 +4263,7 @@ const j = new bi(), Pn = w`
4263
4263
  mandatory
4264
4264
  }
4265
4265
  }
4266
- `, xi = w`
4266
+ `, ki = w`
4267
4267
  query ReadTransactionForDesignCreation($id: String!) {
4268
4268
  transactions(ids: [$id]) {
4269
4269
  id
@@ -4333,8 +4333,8 @@ const j = new bi(), Pn = w`
4333
4333
  workflowViewerReadOnlyLink
4334
4334
  }
4335
4335
  }
4336
- `, ki = w`
4337
- ${Fn}
4336
+ `, Mi = w`
4337
+ ${xn}
4338
4338
  query ReadTransactionForShareActions($id: String!) {
4339
4339
  transactions(ids: [$id]) {
4340
4340
  id
@@ -4344,15 +4344,15 @@ const j = new bi(), Pn = w`
4344
4344
  }
4345
4345
  }
4346
4346
  }
4347
- `, xn = w`
4347
+ `, kn = w`
4348
4348
  query ReadWorkflowStates($ids: [String]!) {
4349
4349
  transactions(ids: $ids) {
4350
4350
  id
4351
4351
  workflowState
4352
4352
  }
4353
4353
  }
4354
- `, kn = (n) => w`
4355
- ${Oe}
4354
+ `, Mn = (n) => w`
4355
+ ${ae}
4356
4356
  fragment IntegrationProductFields on IntegrationProduct {
4357
4357
  id
4358
4358
  externalProductId
@@ -4434,15 +4434,15 @@ const j = new bi(), Pn = w`
4434
4434
  ` : ""}
4435
4435
  }
4436
4436
  }
4437
- `, Mi = (n) => w`
4438
- ${kn(n)}
4437
+ `, Ti = (n) => w`
4438
+ ${Mn(n)}
4439
4439
  query GetIntegrationProducts($ids: [String!]!) {
4440
4440
  integrationProducts(ids: $ids) {
4441
4441
  ...IntegrationProductFields
4442
4442
  }
4443
4443
  }
4444
- `, Ti = (n) => w`
4445
- ${kn(n)}
4444
+ `, Ni = (n) => w`
4445
+ ${Mn(n)}
4446
4446
  query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
4447
4447
  integrationProductFromExternalIds(
4448
4448
  externalIntegrationId: $externalIntegrationId
@@ -4451,8 +4451,8 @@ const j = new bi(), Pn = w`
4451
4451
  ...IntegrationProductFields
4452
4452
  }
4453
4453
  }
4454
- `, Ni = w`
4455
- ${Dn}
4454
+ `, Qi = w`
4455
+ ${Fn}
4456
4456
  query ReadTransactionForStakeholders($id: String!) {
4457
4457
  transactions(ids: [$id]) {
4458
4458
  stakeholders {
@@ -4463,11 +4463,11 @@ const j = new bi(), Pn = w`
4463
4463
  }
4464
4464
  }
4465
4465
  }
4466
- `, Qi = w`
4466
+ `, Ri = w`
4467
4467
  mutation FinalizeUpdateTransaction($transactionId: String!) {
4468
4468
  transactionFinalizeUpdate(transactionId: $transactionId)
4469
4469
  }
4470
- `, Ri = w`
4470
+ `, Oi = w`
4471
4471
  fragment RegionFields on Region {
4472
4472
  width
4473
4473
  top
@@ -4485,7 +4485,7 @@ const j = new bi(), Pn = w`
4485
4485
  height
4486
4486
  }
4487
4487
  }
4488
- `, Oi = w`
4488
+ `, $i = w`
4489
4489
  fragment LookAtAnimationFields on LookAtAnimation {
4490
4490
  latDeg
4491
4491
  lonDeg
@@ -4496,7 +4496,7 @@ const j = new bi(), Pn = w`
4496
4496
  z
4497
4497
  }
4498
4498
  }
4499
- `, $i = w`
4499
+ `, Ui = w`
4500
4500
  fragment RenderingPipelineConfigurationFields on RenderingPipelineConfiguration {
4501
4501
  antiAliasing {
4502
4502
  samples
@@ -4580,21 +4580,21 @@ const j = new bi(), Pn = w`
4580
4580
  weight
4581
4581
  }
4582
4582
  }
4583
- `, Ui = w`
4583
+ `, Li = w`
4584
4584
  fragment ModelAnimationFields on ModelAnimation {
4585
4585
  from
4586
4586
  to
4587
4587
  loop
4588
4588
  name
4589
4589
  }
4590
- `, Li = (n) => w`
4590
+ `, Vi = (n) => w`
4591
4591
  ${ee(n)}
4592
4592
  ${va}
4593
- ${Bn}
4594
- ${Ri}
4593
+ ${Pn}
4595
4594
  ${Oi}
4596
4595
  ${$i}
4597
4596
  ${Ui}
4597
+ ${Li}
4598
4598
  query GetWorkflows($ids: [String!]!) {
4599
4599
  workflows(ids: $ids) {
4600
4600
  partner {
@@ -4989,7 +4989,7 @@ const j = new bi(), Pn = w`
4989
4989
  }
4990
4990
  }
4991
4991
  }
4992
- `, Vi = w`
4992
+ `, zi = w`
4993
4993
  query GetTransactionForPartner($id: String!) {
4994
4994
  transactions(ids: [$id]) {
4995
4995
  id
@@ -5007,7 +5007,7 @@ const j = new bi(), Pn = w`
5007
5007
  }
5008
5008
  }
5009
5009
  }
5010
- `, zi = w`
5010
+ `, Gi = w`
5011
5011
  ${ee(!1)}
5012
5012
  query GetWorkflowForTheme($id: String!) {
5013
5013
  workflow(id: $id) {
@@ -5108,15 +5108,15 @@ const j = new bi(), Pn = w`
5108
5108
  }
5109
5109
  }
5110
5110
  }
5111
- `, Gi = w`
5111
+ `, Wi = w`
5112
5112
  ${$e}
5113
5113
  query GetMarketplaceThemeInstallConfiguration($themeConfigurationId: String!, $themeInstallId: String!) {
5114
5114
  marketplaceThemeInstallConfiguration(id: $themeConfigurationId, themeInstallId: $themeInstallId, raw: false) {
5115
5115
  ...MarketplaceThemeInstallConfigurationFields
5116
5116
  }
5117
5117
  }
5118
- `, Wi = w`
5119
- ${Pn}
5118
+ `, qi = w`
5119
+ ${Dn}
5120
5120
  ${$e}
5121
5121
  query GetCurrentIntegration($themeConfigurationId: String) {
5122
5122
  currentIntegration {
@@ -5128,7 +5128,7 @@ const j = new bi(), Pn = w`
5128
5128
  ...ActiveIntegrationFields
5129
5129
  }
5130
5130
  }
5131
- `, qi = w`
5131
+ `, Hi = w`
5132
5132
  ${$e}
5133
5133
  query ReadTransactionForMarketplaceTheme($id: String!) {
5134
5134
  transactions(ids: [$id]) {
@@ -5137,7 +5137,7 @@ const j = new bi(), Pn = w`
5137
5137
  }
5138
5138
  }
5139
5139
  }
5140
- `, Hi = w`
5140
+ `, ji = w`
5141
5141
  ${$e}
5142
5142
  query ReadBundleForMarketplaceTheme($id: String!) {
5143
5143
  bundles(ids: [$id]) {
@@ -5146,14 +5146,14 @@ const j = new bi(), Pn = w`
5146
5146
  }
5147
5147
  }
5148
5148
  }
5149
- `, ji = w`
5149
+ `, Yi = w`
5150
5150
  mutation CreateOrder($orderItems: [OrderItemInput]!) {
5151
5151
  orderCreate(orderItems: $orderItems, paid: false, generateInternalId: true) {
5152
5152
  id
5153
5153
  internalId
5154
5154
  }
5155
5155
  }
5156
- `, Yi = w`
5156
+ `, Ji = w`
5157
5157
  query CurrencyConversion($from: String!, $to: String!) {
5158
5158
  currencyConversion(from: $from, to: $to) {
5159
5159
  rateFrom
@@ -5161,7 +5161,7 @@ const j = new bi(), Pn = w`
5161
5161
  timestamp
5162
5162
  }
5163
5163
  }
5164
- `, Ot = [E.SilentIllustration, E.ProductOverlay], Ji = async (n) => {
5164
+ `, Ot = [E.SilentIllustration, E.ProductOverlay], Ki = async (n) => {
5165
5165
  const t = [];
5166
5166
  n.introduction && t.push({
5167
5167
  name: "Introduction",
@@ -5179,7 +5179,7 @@ const j = new bi(), Pn = w`
5179
5179
  silentSteps: []
5180
5180
  });
5181
5181
  for (const a of n.steps) {
5182
- const r = Ki(a.stepName, n.stepGroups);
5182
+ const r = _i(a.stepName, n.stepGroups);
5183
5183
  if (!r)
5184
5184
  t.push({
5185
5185
  name: a.stepName,
@@ -5216,7 +5216,7 @@ const j = new bi(), Pn = w`
5216
5216
  ],
5217
5217
  silentSteps: []
5218
5218
  }), t;
5219
- }, Ki = (n, t) => t.find((e) => e.stepNames.includes(n)), vt = (n, t) => (n.conditions || []).every((e) => {
5219
+ }, _i = (n, t) => t.find((e) => e.stepNames.includes(n)), vt = (n, t) => (n.conditions || []).every((e) => {
5220
5220
  const a = t[e.targetStepName];
5221
5221
  if (a && a.selectedVariants) {
5222
5222
  const r = a.selectedVariants;
@@ -5225,7 +5225,7 @@ const j = new bi(), Pn = w`
5225
5225
  );
5226
5226
  }
5227
5227
  return !1;
5228
- }), _i = (n, t) => {
5228
+ }), Xi = (n, t) => {
5229
5229
  const e = {
5230
5230
  name: n.name,
5231
5231
  title: n.title,
@@ -5233,7 +5233,7 @@ const j = new bi(), Pn = w`
5233
5233
  silentSteps: n.silentSteps.filter((a) => vt(a, t))
5234
5234
  };
5235
5235
  return e.silentSteps.length === 0 && e.renderableSteps.length === 0 ? null : e;
5236
- }, yt = (n, t) => n.map((e) => _i(e, t)).filter((e) => e !== null), Xi = async (n, t, e = !1) => {
5236
+ }, yt = (n, t) => n.map((e) => Xi(e, t)).filter((e) => e !== null), Zi = async (n, t, e = !1) => {
5237
5237
  const a = yt(n, t), r = [];
5238
5238
  for (const s of a)
5239
5239
  for (const o of s.renderableSteps) {
@@ -5249,12 +5249,12 @@ const j = new bi(), Pn = w`
5249
5249
  );
5250
5250
  return i;
5251
5251
  };
5252
- class Mn {
5252
+ class Tn {
5253
5253
  constructor() {
5254
5254
  this.timestamp = Date.now();
5255
5255
  }
5256
5256
  }
5257
- class Tn {
5257
+ class Nn {
5258
5258
  /**
5259
5259
  * Constructs a new promise queue.
5260
5260
  * @param queueMaxSize An optional maximum size, when the max size is hit.
@@ -5327,7 +5327,7 @@ class Tn {
5327
5327
  const M = () => {
5328
5328
  const n = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
5329
5329
  return n() + n() + "-" + n() + "-" + n() + "-" + n() + "-" + n() + n() + n();
5330
- }, Zi = ({
5330
+ }, ts = ({
5331
5331
  backgroundColor: n,
5332
5332
  outlineColor: t,
5333
5333
  borderRadius: e,
@@ -5386,7 +5386,7 @@ const M = () => {
5386
5386
  {
5387
5387
  id: "element-group",
5388
5388
  clipPath: a.purpose === jt.FreeDesign ? "url(#viewboxClip)" : void 0,
5389
- children: y.map((S) => Vn(S)).filter((S) => !!S)
5389
+ children: y.map((S) => zn(S)).filter((S) => !!S)
5390
5390
  }
5391
5391
  ),
5392
5392
  l && /* @__PURE__ */ D(
@@ -5493,19 +5493,19 @@ const M = () => {
5493
5493
  y: o.y - n.height * e.y / 2
5494
5494
  };
5495
5495
  return {
5496
- a: ce(r, l, a),
5497
- b: ce(i, l, a),
5498
- c: ce(s, l, a),
5499
- d: ce(o, l, a),
5496
+ a: de(r, l, a),
5497
+ b: de(i, l, a),
5498
+ c: de(s, l, a),
5499
+ d: de(o, l, a),
5500
5500
  center: l
5501
5501
  };
5502
- }, ce = (n, t, e) => {
5502
+ }, de = (n, t, e) => {
5503
5503
  const a = Math.sin(e), r = Math.cos(e);
5504
5504
  return {
5505
5505
  x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
5506
5506
  y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
5507
5507
  };
5508
- }, id = 0.352778, sd = 0.035277, Nn = (n) => {
5508
+ }, id = 0.352778, sd = 0.035277, Qn = (n) => {
5509
5509
  const t = n.rotation || 0, e = ft(t), a = Math.cos(e), r = -Math.sin(e);
5510
5510
  return /* @__PURE__ */ D("g", { mask: n.stepName || n.productOverlay ? void 0 : n.mask, children: /* @__PURE__ */ D(
5511
5511
  "g",
@@ -5527,7 +5527,7 @@ const M = () => {
5527
5527
  )
5528
5528
  }
5529
5529
  ) });
5530
- }, Qn = (n) => {
5530
+ }, Rn = (n) => {
5531
5531
  const t = `spiff-group-clip-${n.id}`, e = n.rotation || 0, a = ft(e), r = Math.cos(a), i = -Math.sin(a), s = ba(n.children);
5532
5532
  return /* @__PURE__ */ ct(Gt, { children: [
5533
5533
  /* @__PURE__ */ D("defs", { children: /* @__PURE__ */ D("clipPath", { id: t, preserveAspectRatio: "none", children: n.clipPath ? /* @__PURE__ */ D("path", { d: n.clipPath }) : /* @__PURE__ */ D("rect", { x: 0, y: 0, width: n.width, height: n.height }) }) }),
@@ -5553,12 +5553,12 @@ const M = () => {
5553
5553
  height: n.height
5554
5554
  }
5555
5555
  ) : void 0,
5556
- s.map((l) => Vn(l)).filter((l) => !!l).map((l) => /* @__PURE__ */ D("g", { clipPath: `url(#${t})`, children: l }))
5556
+ s.map((l) => zn(l)).filter((l) => !!l).map((l) => /* @__PURE__ */ D("g", { clipPath: `url(#${t})`, children: l }))
5557
5557
  ]
5558
5558
  }
5559
5559
  )
5560
5560
  ] });
5561
- }, ts = (n) => {
5561
+ }, es = (n) => {
5562
5562
  const t = `spiff-frame-${n.id}`, e = `spiff-frame-threshold-${n.id}`, a = () => {
5563
5563
  if (!n.pattern)
5564
5564
  return "";
@@ -5632,7 +5632,7 @@ const M = () => {
5632
5632
  matrix(${n.scaleX}, 0, 0, ${n.scaleY}, 0, 0)
5633
5633
  `,
5634
5634
  children: /* @__PURE__ */ D(
5635
- Qn,
5635
+ Rn,
5636
5636
  {
5637
5637
  id: t,
5638
5638
  x: 0,
@@ -5649,8 +5649,8 @@ const M = () => {
5649
5649
  }
5650
5650
  )
5651
5651
  ] });
5652
- }, Rn = /* @__PURE__ */ new Map();
5653
- class es {
5652
+ }, On = /* @__PURE__ */ new Map();
5653
+ class as {
5654
5654
  constructor(t) {
5655
5655
  this.font = t, this.glyphsFromText = /* @__PURE__ */ new Map(), this.kerningValues = /* @__PURE__ */ new Map(), this.height = this.calculateApproximateHeight();
5656
5656
  }
@@ -5699,38 +5699,38 @@ class es {
5699
5699
  }), a - r;
5700
5700
  }
5701
5701
  }
5702
- const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @__PURE__ */ new Map(), Nt = async (n) => {
5702
+ const ns = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @__PURE__ */ new Map(), Nt = async (n) => {
5703
5703
  if (We.has(n))
5704
5704
  return We.get(n);
5705
5705
  const e = (async () => {
5706
5706
  try {
5707
5707
  return Ct(n).getFont();
5708
5708
  } catch {
5709
- if (as(n)) {
5710
- const a = Cn(n), r = aa(a);
5709
+ if (ns(n)) {
5710
+ const a = wn(n), r = aa(a);
5711
5711
  return la(n, r), r;
5712
5712
  } else {
5713
- const a = await Ne(n, !0), r = aa(a);
5714
- return la(n, r), await Ur(r, n), r;
5713
+ const a = await Qe(n, !0), r = aa(a);
5714
+ return la(n, r), await Lr(r, n), r;
5715
5715
  }
5716
5716
  }
5717
5717
  })();
5718
5718
  return We.set(n, e), e;
5719
- }, ns = (n) => {
5720
- const t = Cn(n), e = aa(t);
5719
+ }, rs = (n) => {
5720
+ const t = wn(n), e = aa(t);
5721
5721
  return la(n, e), e;
5722
5722
  }, Ct = (n) => {
5723
- const t = Rn.get(n);
5723
+ const t = On.get(n);
5724
5724
  if (t)
5725
5725
  return t;
5726
5726
  throw new Error("Font metrics unavailable for font");
5727
5727
  }, la = (n, t) => {
5728
- const e = new es(t);
5729
- return Rn.set(n, e), e;
5728
+ const e = new as(t);
5729
+ return On.set(n, e), e;
5730
5730
  }, od = async (n) => {
5731
5731
  const t = dt(), e = t.parseFromString(n, "image/svg+xml"), a = e.firstElementChild, r = /* @__PURE__ */ new Map();
5732
5732
  a.querySelectorAll("style").forEach((d) => {
5733
- dn(d.innerHTML).stylesheet?.rules.forEach((u) => {
5733
+ An(d.innerHTML).stylesheet?.rules.forEach((u) => {
5734
5734
  if (u.type === "font-face" && u.declarations) {
5735
5735
  const h = u.declarations.find(
5736
5736
  (g) => g.property === "font-family"
@@ -5761,17 +5761,17 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5761
5761
  h.appendChild(R);
5762
5762
  }
5763
5763
  return e.querySelectorAll("text").forEach((d) => d.remove()), Bt().serializeToString(a);
5764
- }, Pe = (n, t, e, a) => Math.max(os(n.join(`
5764
+ }, De = (n, t, e, a) => Math.max(ls(n.join(`
5765
5765
  `), e, a), t), za = (n, t, e, a, r, i) => {
5766
- const s = (i || Un) * r.getApproximateHeight(), o = t.split(`
5766
+ const s = (i || Ln) * r.getApproximateHeight(), o = t.split(`
5767
5767
  `);
5768
5768
  try {
5769
- const l = o.flatMap((d) => pe(d, n.width, a, r)), c = l.flatMap((d) => d.lines);
5769
+ const l = o.flatMap((d) => fe(d, n.width, a, r)), c = l.flatMap((d) => d.lines);
5770
5770
  return {
5771
5771
  lines: c,
5772
5772
  requiredHeight: l.flatMap((d) => d.lines).length * (a * s),
5773
5773
  fontSize: e,
5774
- requiredWidth: Pe(c, n.width, a, r)
5774
+ requiredWidth: De(c, n.width, a, r)
5775
5775
  };
5776
5776
  } catch {
5777
5777
  const c = t.split("");
@@ -5779,17 +5779,17 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5779
5779
  lines: c,
5780
5780
  requiredHeight: c.length * (a * s),
5781
5781
  fontSize: e,
5782
- requiredWidth: Pe(c, n.width, a, r)
5782
+ requiredWidth: De(c, n.width, a, r)
5783
5783
  };
5784
5784
  }
5785
- }, pe = (n, t, e, a) => {
5785
+ }, fe = (n, t, e, a) => {
5786
5786
  const r = mt(n, e, a);
5787
5787
  if (r <= t)
5788
5788
  return { lines: [n], width: r };
5789
5789
  if (!(n.indexOf(" ") > -1)) {
5790
5790
  if (n.length <= 1)
5791
5791
  throw new Error(`Character ${n} is wider than region`);
5792
- const d = Math.floor(n.length / 2), A = pe(n.slice(0, d), t, e, a), u = pe(n.slice(d), t, e, a);
5792
+ const d = Math.floor(n.length / 2), A = fe(n.slice(0, d), t, e, a), u = fe(n.slice(d), t, e, a);
5793
5793
  return { lines: [...A.lines, ...u.lines], width: Math.max(A.width, u.width) };
5794
5794
  }
5795
5795
  const s = n.split(" "), o = [];
@@ -5797,7 +5797,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5797
5797
  for (; c < s.length; ) {
5798
5798
  const d = s[c];
5799
5799
  if (mt(d, e, a) > t) {
5800
- const A = pe(d, t, e, a);
5800
+ const A = fe(d, t, e, a);
5801
5801
  o.push(...A.lines), l = Math.max(l, A.width), c++;
5802
5802
  } else {
5803
5803
  const A = [d];
@@ -5813,10 +5813,10 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5813
5813
  if (l < 0)
5814
5814
  throw new Error(`No max width calculated for text: ${o}.`);
5815
5815
  return { lines: o, width: l };
5816
- }, rs = (n, t, e, a, r, i) => {
5817
- const s = (i ?? Un) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = On(n, o, t), c = n.length * s * o, d = a / l, A = r / c;
5816
+ }, is = (n, t, e, a, r, i) => {
5817
+ const s = (i ?? Ln) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = $n(n, o, t), c = n.length * s * o, d = a / l, A = r / c;
5818
5818
  return Math.min(A, d);
5819
- }, is = (n, t, e, a) => {
5819
+ }, ss = (n, t, e, a) => {
5820
5820
  const r = Ct(t.fontData.assetUrl), i = r.getFont(), s = t.fontSize / i.unitsPerEm;
5821
5821
  if (!e)
5822
5822
  return za(t, n, t.fontSize, s, r, a);
@@ -5827,21 +5827,21 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5827
5827
  return {
5828
5828
  lines: o,
5829
5829
  requiredHeight: t.height,
5830
- requiredWidth: Pe(o, t.width, s, r),
5830
+ requiredWidth: De(o, t.width, s, r),
5831
5831
  fontSize: t.fontSize
5832
5832
  };
5833
5833
  const l = t.width !== e.width != (t.height !== e.height);
5834
5834
  return t.lineHeight === e.lineHeight && !l && e.input === n ? {
5835
5835
  lines: o,
5836
5836
  requiredHeight: t.height,
5837
- requiredWidth: Pe(o, t.width, s, r),
5838
- fontSize: rs(o, r, i, t.width, t.height, a)
5837
+ requiredWidth: De(o, t.width, s, r),
5838
+ fontSize: is(o, r, i, t.width, t.height, a)
5839
5839
  } : za(t, n, t.fontSize, s, r, a);
5840
- }, ss = (n, t, e, a, r) => {
5840
+ }, os = (n, t, e, a, r) => {
5841
5841
  const s = Ct(t.assetUrl).getFont();
5842
5842
  let o = { ...n };
5843
- const l = { ...n }, c = On(a, e / s.unitsPerEm, Ct(t.assetUrl));
5844
- return c && c < o.width && (l.width = c, r === "left" ? (l.left += Math.sin(o.rotation * Math.PI / 360) * (o.width - c), l.top += Math.sin(o.rotation * Math.PI / 180) * (c - o.width) / 2) : r === "right" ? l.left += o.width - c : l.left += (o.width - c) / 2, a && ls(a, a).every(([d, A]) => d === A) && (o = l)), o;
5843
+ const l = { ...n }, c = $n(a, e / s.unitsPerEm, Ct(t.assetUrl));
5844
+ return c && c < o.width && (l.width = c, r === "left" ? (l.left += Math.sin(o.rotation * Math.PI / 360) * (o.width - c), l.top += Math.sin(o.rotation * Math.PI / 180) * (c - o.width) / 2) : r === "right" ? l.left += o.width - c : l.left += (o.width - c) / 2, a && cs(a, a).every(([d, A]) => d === A) && (o = l)), o;
5845
5845
  }, qe = 1, mt = (n, t, e) => {
5846
5846
  let a = 0;
5847
5847
  const r = e.getGlyphs(n);
@@ -5851,7 +5851,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5851
5851
  a += o || 0;
5852
5852
  }
5853
5853
  }), a *= t, a;
5854
- }, os = (n, t, e) => {
5854
+ }, ls = (n, t, e) => {
5855
5855
  let a = 0;
5856
5856
  const r = e.getGlyphs(n);
5857
5857
  return r.forEach((i, s) => {
@@ -5860,7 +5860,7 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5860
5860
  a = Math.max(a, o || 0);
5861
5861
  }
5862
5862
  }), a *= t, a;
5863
- }, On = (n, t, e) => {
5863
+ }, $n = (n, t, e) => {
5864
5864
  let a = 0;
5865
5865
  return n.forEach((r) => {
5866
5866
  a = Math.max(a, mt(r, t, e));
@@ -5869,16 +5869,16 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5869
5869
  stripControlCharacters: !0,
5870
5870
  vertical: !1,
5871
5871
  uppercase: !1
5872
- }, De = (n, t = Ga) => {
5872
+ }, Fe = (n, t = Ga) => {
5873
5873
  const e = { ...Ga, ...t };
5874
5874
  let a = n || "";
5875
5875
  return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
5876
5876
  `)), a;
5877
- }, ls = (n, t) => n.map((e, a) => [e, t[a]]), cs = (n = "center", t = !1) => t ? "center" : n, $n = (n) => n === "left" ? "start" : n === "right" ? "end" : "middle", ae = (n, t, e) => n.fontData ? {
5877
+ }, cs = (n, t) => n.map((e, a) => [e, t[a]]), ds = (n = "center", t = !1) => t ? "center" : n, Un = (n) => n === "left" ? "start" : n === "right" ? "end" : "middle", ne = (n, t, e) => n.fontData ? {
5878
5878
  ...n,
5879
5879
  ...(() => {
5880
5880
  if (n.algorithm === Mt.Traditional) {
5881
- const r = is(t, n, e, n.lineHeight);
5881
+ const r = ss(t, n, e, n.lineHeight);
5882
5882
  return {
5883
5883
  text: r.lines.join(`
5884
5884
  `),
@@ -5892,24 +5892,24 @@ const as = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5892
5892
  text: t
5893
5893
  };
5894
5894
  })()
5895
- } : n, Un = 1.1;
5895
+ } : n, Ln = 1.1;
5896
5896
  function Ft(n, t) {
5897
- return Ln(n, t.getTemplatingContext());
5897
+ return Vn(n, t.getTemplatingContext());
5898
5898
  }
5899
- function Ln(n, t) {
5899
+ function Vn(n, t) {
5900
5900
  try {
5901
- n = Sr.compile(n)(t);
5901
+ n = vr.compile(n)(t);
5902
5902
  } catch (e) {
5903
5903
  console.error("failed to render templated text", e);
5904
5904
  }
5905
5905
  return n;
5906
5906
  }
5907
- const ds = (n) => {
5908
- const e = (n.rotation || 0) * Math.PI / 180, a = Math.cos(e), r = -Math.sin(e), i = `text-path-${n.id}`, s = `text-fill-${n.id}`, o = n.x + (n.curved ? 0 : n.width / 2), l = n.y + (n.curved ? 0 : n.height / 2), c = Ln(n.text || "", n._renderingConfiguration?.templatingContext), d = c.split(`
5907
+ const As = (n) => {
5908
+ const e = (n.rotation || 0) * Math.PI / 180, a = Math.cos(e), r = -Math.sin(e), i = `text-path-${n.id}`, s = `text-fill-${n.id}`, o = n.x + (n.curved ? 0 : n.width / 2), l = n.y + (n.curved ? 0 : n.height / 2), c = Vn(n.text || "", n._renderingConfiguration?.templatingContext), d = c.split(`
5909
5909
  `), A = n.strokeColor?.browserValue && n.strokeThickness ? n.strokeColor?.browserValue : void 0, u = n.strokeColor?.browserValue && n.strokeThickness ? n.strokeThickness : void 0;
5910
5910
  if (n.curved && !n.paths || !n.fontData)
5911
5911
  return null;
5912
- const h = () => n.textFillImage ? `url("#${s}")` : n._renderingConfiguration?.spotColors && n.fillSpotColorDefinition ? `${n.fill} ${vn(n.fillSpotColorDefinition)}` : n.fill;
5912
+ const h = () => n.textFillImage ? `url("#${s}")` : n._renderingConfiguration?.spotColors && n.fillSpotColorDefinition ? `${n.fill} ${En(n.fillSpotColorDefinition)}` : n.fill;
5913
5913
  return /* @__PURE__ */ ct(Gt, { children: [
5914
5914
  /* @__PURE__ */ ct("defs", { children: [
5915
5915
  n.textFillImage && /* @__PURE__ */ D(
@@ -5964,8 +5964,8 @@ const ds = (n) => {
5964
5964
  },
5965
5965
  stroke: A,
5966
5966
  strokeWidth: u,
5967
- children: n.curved ? /* @__PURE__ */ D(us, { text: c, curvedPathId: i, align: n.align }) : d.map((m, p) => /* @__PURE__ */ D(
5968
- As,
5967
+ children: n.curved ? /* @__PURE__ */ D(hs, { text: c, curvedPathId: i, align: n.align }) : d.map((m, p) => /* @__PURE__ */ D(
5968
+ us,
5969
5969
  {
5970
5970
  align: n.vertical ? "center" : n.align,
5971
5971
  fontSize: n.fontSize,
@@ -5984,7 +5984,7 @@ const ds = (n) => {
5984
5984
  }
5985
5985
  ) }) })
5986
5986
  ] });
5987
- }, As = (n) => {
5987
+ }, us = (n) => {
5988
5988
  const t = () => {
5989
5989
  if (n.lineHeight !== void 0)
5990
5990
  return n.lineHeight * n.fontSize;
@@ -6001,23 +6001,23 @@ const ds = (n) => {
6001
6001
  const s = (n.amountLines - 1) / 2;
6002
6002
  return (n.thisLineIdx - s) * r + n.fontSize / 4;
6003
6003
  };
6004
- return /* @__PURE__ */ D("tspan", { textAnchor: $n(n.align), x: e(), y: `${a()}px`, children: n.text });
6005
- }, us = (n) => {
6004
+ return /* @__PURE__ */ D("tspan", { textAnchor: Un(n.align), x: e(), y: `${a()}px`, children: n.text });
6005
+ }, hs = (n) => {
6006
6006
  const t = `#${n.curvedPathId}`;
6007
6007
  return /* @__PURE__ */ D(
6008
6008
  "textPath",
6009
6009
  {
6010
6010
  startOffset: n.align === "left" ? "0%" : n.align === "right" ? "100%" : "50%",
6011
- textAnchor: $n(n.align),
6011
+ textAnchor: Un(n.align),
6012
6012
  href: t,
6013
6013
  xlinkHref: t,
6014
6014
  children: n.text
6015
6015
  }
6016
6016
  );
6017
- }, hs = (n) => {
6017
+ }, ms = (n) => {
6018
6018
  if (n.cachedObjectURL && !n._renderingConfiguration?.omitCachedFields)
6019
6019
  return /* @__PURE__ */ D(
6020
- Nn,
6020
+ Qn,
6021
6021
  {
6022
6022
  id: n.id,
6023
6023
  src: n.cachedObjectURL,
@@ -6057,7 +6057,7 @@ const ds = (n) => {
6057
6057
  }
6058
6058
  ) });
6059
6059
  };
6060
- class ms {
6060
+ class gs {
6061
6061
  constructor() {
6062
6062
  this.id = M(), this.stateCallbacks = [], this.prevCommands = [], this.nextCommands = [];
6063
6063
  }
@@ -6137,7 +6137,7 @@ class ms {
6137
6137
  layouts: {}
6138
6138
  };
6139
6139
  t.forEach((r) => {
6140
- a = new qn(r).apply(a);
6140
+ a = new Hn(r).apply(a);
6141
6141
  }), this.runStateCallbacks(), this.state = {
6142
6142
  transaction: a
6143
6143
  };
@@ -6147,10 +6147,10 @@ class ms {
6147
6147
  return { ...t, transaction: e.apply(a) };
6148
6148
  }
6149
6149
  }
6150
- const Vn = (n) => n.type === x.Image ? /* @__PURE__ */ D(Nn, { ...n }, n.id) : n.type === x.Frame ? /* @__PURE__ */ D(ts, { ...n }, n.id) : n.type === x.Illustration ? /* @__PURE__ */ D(hs, { ...n }, n.id) : n.type === x.Textbox ? /* @__PURE__ */ D(ds, { ...n }, n.id) : n.type === x.Group ? /* @__PURE__ */ D(Qn, { ...n }, n.id) : null, Ea = (n, t, e) => {
6150
+ const zn = (n) => n.type === x.Image ? /* @__PURE__ */ D(Qn, { ...n }, n.id) : n.type === x.Frame ? /* @__PURE__ */ D(es, { ...n }, n.id) : n.type === x.Illustration ? /* @__PURE__ */ D(ms, { ...n }, n.id) : n.type === x.Textbox ? /* @__PURE__ */ D(As, { ...n }, n.id) : n.type === x.Group ? /* @__PURE__ */ D(Rn, { ...n }, n.id) : null, Ea = (n, t, e) => {
6151
6151
  const a = e.renderingConfiguration, r = a?.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
6152
6152
  return /* @__PURE__ */ D(
6153
- Zi,
6153
+ ts,
6154
6154
  {
6155
6155
  preserveAspectRatio: void 0,
6156
6156
  elements: r,
@@ -6187,7 +6187,7 @@ function ba(n) {
6187
6187
  return i < s ? -1 : i > s ? 1 : 0;
6188
6188
  });
6189
6189
  }
6190
- const ne = (n) => {
6190
+ const re = (n) => {
6191
6191
  const t = n.variants;
6192
6192
  if (t) {
6193
6193
  if (t.length === 1)
@@ -6195,7 +6195,7 @@ const ne = (n) => {
6195
6195
  if (n.defaultVariant !== void 0)
6196
6196
  return t.find((e) => e.id === n.defaultVariant);
6197
6197
  }
6198
- }, ut = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), zn = async (n, t) => {
6198
+ }, ut = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), Gn = async (n, t) => {
6199
6199
  if (!t) {
6200
6200
  if (!n) throw new Error("No region or src supplied. Cannot construct frame!");
6201
6201
  return ca(n);
@@ -6207,10 +6207,10 @@ const ne = (n) => {
6207
6207
  <path id="target-path" d='M0 0 h ${t} v ${e} h ${-t} Z' />
6208
6208
  </svg>
6209
6209
  `;
6210
- }, gs = (n, t) => {
6210
+ }, ps = (n, t) => {
6211
6211
  if (!t)
6212
6212
  return;
6213
- const e = t.variants?.find((a) => a.id === n.frameVariantId) || ne(t);
6213
+ const e = t.variants?.find((a) => a.id === n.frameVariantId) || re(t);
6214
6214
  if (!e)
6215
6215
  throw new Error(`No variant with ID: ${n.frameVariantId}`);
6216
6216
  if (!e.asset)
@@ -6269,7 +6269,7 @@ const ne = (n) => {
6269
6269
  if (ut.has(n))
6270
6270
  return ut.get(n);
6271
6271
  if (n.startsWith("data:image/svg+xml")) {
6272
- const e = vr(n), a = new TextDecoder().decode(e.buffer), r = Gn(a), i = {
6272
+ const e = Er(n), a = new TextDecoder().decode(e.buffer), r = Wn(a), i = {
6273
6273
  src: n,
6274
6274
  width: r.width,
6275
6275
  height: r.height,
@@ -6286,7 +6286,7 @@ const ne = (n) => {
6286
6286
  };
6287
6287
  return ut.set(n, i), i;
6288
6288
  } else {
6289
- const e = await Ne(n, !0), a = await Re(e), r = {
6289
+ const e = await Qe(n, !0), a = await Oe(e), r = {
6290
6290
  src: n,
6291
6291
  width: a.width,
6292
6292
  height: a.height,
@@ -6296,8 +6296,8 @@ const ne = (n) => {
6296
6296
  }
6297
6297
  }, Ba = async (n) => {
6298
6298
  const t = await nt(n);
6299
- return Gn(t);
6300
- }, Wa = (n) => n.endsWith("mm") ? Number(n.replace("mm", "")) * 3.7795275591 : n.endsWith("px") ? Number(n.replace("px", "")) : Number(n), Gn = (n) => {
6299
+ return Wn(t);
6300
+ }, Wa = (n) => n.endsWith("mm") ? Number(n.replace("mm", "")) * 3.7795275591 : n.endsWith("px") ? Number(n.replace("px", "")) : Number(n), Wn = (n) => {
6301
6301
  const a = dt().parseFromString(n, "image/svg+xml").querySelector("svg");
6302
6302
  if (!a)
6303
6303
  throw new Error("No svg tag found, this svg must be malformed!");
@@ -6311,7 +6311,7 @@ const ne = (n) => {
6311
6311
  }, $t = (n, t) => {
6312
6312
  const e = n.layoutState.elements.filter((r) => r.layer === t), a = Math.max(...e.map((r) => r.layerIndex).filter((r) => r !== void 0));
6313
6313
  return Math.max(a, 0) + 1;
6314
- }, Wn = async (n) => new Promise((t) => {
6314
+ }, qn = async (n) => new Promise((t) => {
6315
6315
  nt(n).then((e) => {
6316
6316
  t(e);
6317
6317
  }).catch((e) => console.error(e));
@@ -6364,13 +6364,13 @@ const ne = (n) => {
6364
6364
  panelId: n.layoutState.layout.panelId
6365
6365
  };
6366
6366
  if (e && t === x.Illustration) {
6367
- const l = await ot(await Wn(e)), u = dt().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
6367
+ const l = await ot(await qn(e)), u = dt().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
6368
6368
  if (!u) throw new Error("SVG missing viewBox.");
6369
6369
  const h = o.height, m = u.split(" "), p = parseFloat(m[2]) || 1, g = parseFloat(m[3]) || 1, f = p / g;
6370
6370
  o.height = o.width / f, o.top += (h - o.height) / 2;
6371
6371
  }
6372
6372
  if (e && t === x.Image) {
6373
- const l = o.height, c = await Ne(e), d = await Re(c), A = d.width / d.height;
6373
+ const l = o.height, c = await Qe(e), d = await Oe(c), A = d.width / d.height;
6374
6374
  o.height = o.width / A, o.top += (l - o.height) / 2;
6375
6375
  }
6376
6376
  if (e && t === x.Textbox && a?.text && a?.fontScale) {
@@ -6382,7 +6382,7 @@ const ne = (n) => {
6382
6382
  };
6383
6383
  class ld {
6384
6384
  static async getFrame(t, e) {
6385
- const a = await zn(e.region, e.src), r = await Ue(a), i = e.region || await Ut(t, x.Frame);
6385
+ const a = await Gn(e.region, e.src), r = await Ue(a), i = e.region || await Ut(t, x.Frame);
6386
6386
  return {
6387
6387
  id: M(),
6388
6388
  x: i.left,
@@ -6428,13 +6428,13 @@ class ld {
6428
6428
  const { configuration: a, fontSrc: r, designInputStep: i } = e, s = await Nt(r), o = {
6429
6429
  assetUrl: r,
6430
6430
  name: s.names.fullName.en
6431
- }, l = i?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = De(c, {
6431
+ }, l = i?.text || a.defaultText || "", c = a.replaceableText ? a.replaceableText.replace("{{}}", l) : l, d = Fe(c, {
6432
6432
  vertical: a.vertical,
6433
6433
  uppercase: a.uppercase
6434
6434
  }), A = e.region || await Ut(t, x.Textbox, r, {
6435
6435
  text: d,
6436
6436
  fontScale: a.size ? a.size / s.unitsPerEm : void 0
6437
- }), u = ae(
6437
+ }), u = ne(
6438
6438
  {
6439
6439
  id: M(),
6440
6440
  type: x.Textbox,
@@ -6442,7 +6442,7 @@ class ld {
6442
6442
  y: A.top,
6443
6443
  width: A.width,
6444
6444
  height: A.height,
6445
- align: cs(a.textAlign, a.vertical),
6445
+ align: ds(a.textAlign, a.vertical),
6446
6446
  curved: a.curved,
6447
6447
  fill: i?.color || a.colour || "#000000",
6448
6448
  fontData: o,
@@ -6458,7 +6458,7 @@ class ld {
6458
6458
  input: l
6459
6459
  },
6460
6460
  d
6461
- ), h = ss(
6461
+ ), h = os(
6462
6462
  { ...A, height: u.height },
6463
6463
  o,
6464
6464
  u.fontSize,
@@ -6515,7 +6515,7 @@ class ld {
6515
6515
  };
6516
6516
  }
6517
6517
  static async getIllustration(t, e) {
6518
- const a = e.region || await Ut(t, x.Illustration, e.src), r = await ot(await Wn(e.src)), i = await _t(r.svg), s = M();
6518
+ const a = e.region || await Ut(t, x.Illustration, e.src), r = await ot(await qn(e.src)), i = await _t(r.svg), s = M();
6519
6519
  return {
6520
6520
  cachedObjectURL: i,
6521
6521
  stepRegion: e.region,
@@ -6687,7 +6687,7 @@ class Ad extends Q {
6687
6687
  s.scaleX = s.scaleX * this.width / e.width, s.scaleY = s.scaleY * this.height / e.height;
6688
6688
  } else if (e.type === "textbox") {
6689
6689
  const s = a, o = (!s.algorithm || s.algorithm === Mt.Autosize ? s.text : s.input) ?? "";
6690
- a = ae(s, o, e);
6690
+ a = ne(s, o, e);
6691
6691
  }
6692
6692
  const r = _(e.id, Object.values(t.layouts)), i = X(a, r);
6693
6693
  return {
@@ -6707,7 +6707,7 @@ class O extends Q {
6707
6707
  return this.oldState = t, this.commands.reduce((e, a) => a.apply(e), t);
6708
6708
  }
6709
6709
  }
6710
- class qn extends Q {
6710
+ class Hn extends Q {
6711
6711
  constructor(t) {
6712
6712
  super(), this.layout = t;
6713
6713
  }
@@ -6725,7 +6725,7 @@ class qn extends Q {
6725
6725
  };
6726
6726
  }
6727
6727
  }
6728
- class z extends Q {
6728
+ class G extends Q {
6729
6729
  /**
6730
6730
  * @param initialParams The initial parameters to be set on this new object
6731
6731
  * @param callback An optional callback function to be notified when the object has been instantiated
@@ -6806,7 +6806,7 @@ class It extends Q {
6806
6806
  };
6807
6807
  }
6808
6808
  }
6809
- class ps extends Q {
6809
+ class fs extends Q {
6810
6810
  constructor(t, e, a) {
6811
6811
  super(), this.id = t, this.color = e, this.textFillSpotColor = a;
6812
6812
  }
@@ -6852,7 +6852,7 @@ class Ye extends Q {
6852
6852
  };
6853
6853
  }
6854
6854
  }
6855
- class fs extends Q {
6855
+ class Cs extends Q {
6856
6856
  constructor(t, e) {
6857
6857
  super(), this.id = t, this.size = e;
6858
6858
  }
@@ -6864,7 +6864,7 @@ class fs extends Q {
6864
6864
  const a = {
6865
6865
  ...e,
6866
6866
  fontSize: this.size
6867
- }, r = _(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ae(a, i), r);
6867
+ }, r = _(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ne(a, i), r);
6868
6868
  return {
6869
6869
  ...t,
6870
6870
  layouts: {
@@ -6886,7 +6886,7 @@ class ja extends Q {
6886
6886
  const a = {
6887
6887
  ...e,
6888
6888
  fontData: this.fontData
6889
- }, r = _(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ae(a, i), r);
6889
+ }, r = _(e.id, Object.values(t.layouts)), i = (!e.algorithm || e.algorithm === Mt.Autosize ? e.text : e.input) ?? "", s = X(ne(a, i), r);
6890
6890
  return {
6891
6891
  ...t,
6892
6892
  layouts: {
@@ -6896,7 +6896,7 @@ class ja extends Q {
6896
6896
  };
6897
6897
  }
6898
6898
  }
6899
- class Cs extends Q {
6899
+ class ws extends Q {
6900
6900
  constructor(t, e) {
6901
6901
  super(), this.id = t, this.align = e;
6902
6902
  }
@@ -6918,7 +6918,7 @@ class Cs extends Q {
6918
6918
  };
6919
6919
  }
6920
6920
  }
6921
- class ws extends Q {
6921
+ class ys extends Q {
6922
6922
  constructor(t, e, a) {
6923
6923
  super(), this.id = t, this.imageData = e, this.offsets = a;
6924
6924
  }
@@ -6954,7 +6954,7 @@ class ws extends Q {
6954
6954
  };
6955
6955
  }
6956
6956
  }
6957
- class ys extends Q {
6957
+ class Ss extends Q {
6958
6958
  constructor(t, e, a, r, i) {
6959
6959
  super(), this.id = t, this.useThreshold = e, this.invertThreshold = a, this.threshold = r, this.thresholdSaturation = i;
6960
6960
  }
@@ -7001,7 +7001,7 @@ class ud extends Q {
7001
7001
  };
7002
7002
  }
7003
7003
  }
7004
- class Ss extends Q {
7004
+ class vs extends Q {
7005
7005
  constructor(t, e) {
7006
7006
  super(), this.id = t, this.text = e;
7007
7007
  }
@@ -7010,7 +7010,7 @@ class Ss extends Q {
7010
7010
  const e = U(this.id, Object.values(t.layouts));
7011
7011
  if (!e.id)
7012
7012
  throw new V();
7013
- const a = _(e.id, Object.values(t.layouts)), r = X(ae(e, this.text, e), a);
7013
+ const a = _(e.id, Object.values(t.layouts)), r = X(ne(e, this.text, e), a);
7014
7014
  return {
7015
7015
  ...t,
7016
7016
  layouts: {
@@ -7075,7 +7075,7 @@ class Aa extends Q {
7075
7075
  };
7076
7076
  }
7077
7077
  }
7078
- class vs extends Q {
7078
+ class Es extends Q {
7079
7079
  constructor(t, e, a) {
7080
7080
  super(), this.id = t, this.svgBody = e, this.objectURL = a;
7081
7081
  }
@@ -7222,7 +7222,7 @@ class Ya {
7222
7222
  if (this.configuration.type === E.ProductOverlay) {
7223
7223
  let l = "";
7224
7224
  if (this.product?.overlayImageUrl && (l = this.product.overlayImageUrl), s = l, !l)
7225
- throw new Ie(this.configuration, "Couldn't find an asset for product overlay step");
7225
+ throw new Be(this.configuration, "Couldn't find an asset for product overlay step");
7226
7226
  }
7227
7227
  const o = this.evaluateAssetType();
7228
7228
  if (o === x.Image) {
@@ -7251,7 +7251,7 @@ class Ya {
7251
7251
  id: c.id,
7252
7252
  region: r
7253
7253
  },
7254
- command: new z(c, i)
7254
+ command: new G(c, i)
7255
7255
  };
7256
7256
  } else {
7257
7257
  const l = this.configuration.type === E.SilentIllustration ? this.configuration.data.asset?.fileLink : s, d = await ot(await (async () => new Promise((u, h) => {
@@ -7286,14 +7286,14 @@ class Ya {
7286
7286
  id: A.id,
7287
7287
  region: r
7288
7288
  },
7289
- command: new z(A, i)
7289
+ command: new G(A, i)
7290
7290
  };
7291
7291
  }
7292
7292
  }, this.configuration = t, this.layouts = e, this.product = a || void 0;
7293
7293
  }
7294
7294
  async trigger() {
7295
7295
  if (!this.configuration.data.regions)
7296
- throw new Ie(this.configuration, "Missing regions.");
7296
+ throw new Be(this.configuration, "Missing regions.");
7297
7297
  if (this.configuration.type === E.SilentIllustration) {
7298
7298
  const t = this.configuration.data.regions.map(this.processRegion);
7299
7299
  return Promise.all(t);
@@ -7310,7 +7310,7 @@ class Ya {
7310
7310
  return t?.startsWith("data:image/png") || t?.endsWith(".jpeg") || t?.endsWith(".jpg") || t?.endsWith(".png") ? x.Image : (t?.endsWith(".svg") || t?.startsWith("image/svg+xml"), x.Illustration);
7311
7311
  }
7312
7312
  }
7313
- const Es = async (n) => {
7313
+ const bs = async (n) => {
7314
7314
  const t = `${gt.getServicesApiUrl()}/shortener`;
7315
7315
  try {
7316
7316
  return (await (await rt(t, {
@@ -7321,10 +7321,10 @@ const Es = async (n) => {
7321
7321
  }
7322
7322
  })).json()).shortUrl;
7323
7323
  } catch (e) {
7324
- throw console.error(e), new Te("Failed to shorten URL, see console.");
7324
+ throw console.error(e), new Ne("Failed to shorten URL, see console.");
7325
7325
  }
7326
7326
  };
7327
- class Hn {
7327
+ class jn {
7328
7328
  async poll() {
7329
7329
  try {
7330
7330
  if (await this.predicate()) {
@@ -7347,7 +7347,7 @@ class Hn {
7347
7347
  this.onSuccess = e, this.onFailure = a, this.predicate = t, this.attempts = 0, this.pollingId = -1, this.interval = r, this.maxAttempts = i, this.poll();
7348
7348
  }
7349
7349
  }
7350
- class bs {
7350
+ class Is {
7351
7351
  async init(t, e, a) {
7352
7352
  return a && await this.reload(t, e, a), null;
7353
7353
  }
@@ -7366,10 +7366,10 @@ class bs {
7366
7366
  }
7367
7367
  async regenerateQRCode(t, e, a, r) {
7368
7368
  const i = async () => {
7369
- const h = (await Be([e]))[0], m = h?.versions?.find((p) => p.name === "mpeg4")?.link;
7369
+ const h = (await Pe([e]))[0], m = h?.versions?.find((p) => p.name === "mpeg4")?.link;
7370
7370
  return { asset: h, link: m };
7371
7371
  }, s = await new Promise((h, m) => {
7372
- new Hn(
7372
+ new jn(
7373
7373
  async () => !!(await i()).link,
7374
7374
  async () => {
7375
7375
  const p = await i();
@@ -7392,10 +7392,10 @@ class bs {
7392
7392
  l.searchParams.append("video", btoa(JSON.stringify([s]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
7393
7393
  const c = l.toString();
7394
7394
  if (c.length >= 2e3)
7395
- throw new Te("Cannot create QR code, URL too long.");
7396
- const d = await Es(c);
7395
+ throw new Ne("Cannot create QR code, URL too long.");
7396
+ const d = await bs(c);
7397
7397
  if (!r.data || !r.data.regions)
7398
- throw new Ie(r, "Missing regions.");
7398
+ throw new Be(r, "Missing regions.");
7399
7399
  const A = await this.regionElements(r), u = await this.command(d, A, a, r.stepName);
7400
7400
  return u && (u.command && a.getCommandDispatcher()(u.command), u.followup && await u.followup()), await a.setSelectionsAndElements(r.stepName, [], A, async () => {
7401
7401
  a.updateStorage(r.stepName, {
@@ -7409,7 +7409,7 @@ class bs {
7409
7409
  return t.data.regions.map(e);
7410
7410
  }
7411
7411
  async command(t, e, a, r) {
7412
- const i = a.getLayouts(), o = `data:image/svg+xml;base64,${btoa(await An(t, { type: "svg" }))}`, l = e.map((c) => {
7412
+ const i = a.getLayouts(), o = `data:image/svg+xml;base64,${btoa(await un(t, { type: "svg" }))}`, l = e.map((c) => {
7413
7413
  const d = c.region, A = i.find((u) => u.panelId === d?.panelId);
7414
7414
  if (!A && d)
7415
7415
  throw new Y(d);
@@ -7417,7 +7417,7 @@ class bs {
7417
7417
  throw new Error("Region not found");
7418
7418
  if (!A || !d)
7419
7419
  throw new Error("Neither a region or layout found!");
7420
- return new z(
7420
+ return new G(
7421
7421
  {
7422
7422
  stepRegion: d,
7423
7423
  stepName: r,
@@ -7437,8 +7437,8 @@ class bs {
7437
7437
  } };
7438
7438
  }
7439
7439
  }
7440
- const jn = new bs();
7441
- class Fe {
7440
+ const Yn = new Is();
7441
+ class xe {
7442
7442
  constructor() {
7443
7443
  this.frameSourceSvg = async (t, e) => {
7444
7444
  if (!t)
@@ -7545,14 +7545,14 @@ class Fe {
7545
7545
  })) ?? [];
7546
7546
  }
7547
7547
  selectImage(t, e, a, r = !0) {
7548
- const i = Fe.patternSource(e), s = a.getStepStorage(t.stepName)?.framePatternSrc;
7548
+ const i = xe.patternSource(e), s = a.getStepStorage(t.stepName)?.framePatternSrc;
7549
7549
  if (s && s === i)
7550
7550
  return Promise.resolve();
7551
7551
  a.setEditedStatus(t.stepName, !0);
7552
7552
  const o = e.fileLink || "";
7553
7553
  return o.endsWith(".pdf") || o.endsWith(".eps") || o.endsWith(".ai") ? new Promise((l) => {
7554
7554
  a.addPoller(
7555
- new Hn(
7555
+ new jn(
7556
7556
  async () => {
7557
7557
  const d = (await $.getFromServer(e.key || "")).versions?.find((u) => u.name === "svg");
7558
7558
  return d ? (await rt(d.link)).status === 200 : !1;
@@ -7565,7 +7565,7 @@ class Fe {
7565
7565
  });
7566
7566
  },
7567
7567
  () => {
7568
- throw new Te("Failed to resolve transcoded PDF");
7568
+ throw new Ne("Failed to resolve transcoded PDF");
7569
7569
  }
7570
7570
  )
7571
7571
  );
@@ -7582,7 +7582,7 @@ class Fe {
7582
7582
  s && (s.command && r.getCommandDispatcher()(s.command), s.followup && await s.followup());
7583
7583
  }
7584
7584
  getCreateElementCommand(t, e, a, r) {
7585
- return new z(
7585
+ return new G(
7586
7586
  {
7587
7587
  id: t,
7588
7588
  type: x.Frame,
@@ -7627,7 +7627,7 @@ class Fe {
7627
7627
  };
7628
7628
  ut.set(t, A), e.setPatternData(A, a);
7629
7629
  } else {
7630
- const s = await Ne(t, !0), o = await Re(s), l = {
7630
+ const s = await Qe(t, !0), o = await Oe(s), l = {
7631
7631
  src: t,
7632
7632
  width: o.width,
7633
7633
  height: o.height,
@@ -7665,7 +7665,7 @@ class Fe {
7665
7665
  const l = o.pmsValue.trim().toLocaleLowerCase();
7666
7666
  i.includes(l) || i.push(l);
7667
7667
  } else if (o.browserValue) {
7668
- const l = ri(o.browserValue);
7668
+ const l = ii(o.browserValue);
7669
7669
  i.includes(l) || i.push(l);
7670
7670
  }
7671
7671
  }
@@ -7776,7 +7776,7 @@ class Fe {
7776
7776
  throw new Yt(t);
7777
7777
  }
7778
7778
  async loadPatternFromAsset(t, e, a, r) {
7779
- const i = Fe.patternSource(t), s = a.markUpdatePending(), o = a.getWorkflowExperience().getStepById(e.stepName)?.frameService;
7779
+ const i = xe.patternSource(t), s = a.markUpdatePending(), o = a.getWorkflowExperience().getStepById(e.stepName)?.frameService;
7780
7780
  if (!o)
7781
7781
  throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
7782
7782
  try {
@@ -7803,8 +7803,8 @@ class Fe {
7803
7803
  ), this.validateColorCount(e, a);
7804
7804
  }
7805
7805
  }
7806
- const St = new Fe();
7807
- class Is {
7806
+ const St = new xe();
7807
+ class Bs {
7808
7808
  async getIllustrationBody(t) {
7809
7809
  return new Promise((e) => {
7810
7810
  nt(t, !0).then((a) => {
@@ -7813,7 +7813,7 @@ class Is {
7813
7813
  });
7814
7814
  }
7815
7815
  getCreateElementCommand(t, e, a, r) {
7816
- return new z(
7816
+ return new G(
7817
7817
  {
7818
7818
  stepRegion: e,
7819
7819
  stepName: r.stepName,
@@ -7912,7 +7912,7 @@ class Is {
7912
7912
  for (const d of r) {
7913
7913
  for (const [A, u] of i.entries())
7914
7914
  c.push(new Aa(d, A, u));
7915
- c.push(new vs(d, o, l));
7915
+ c.push(new Es(d, o, l));
7916
7916
  }
7917
7917
  return new O(c);
7918
7918
  }
@@ -7958,7 +7958,7 @@ class Is {
7958
7958
  }
7959
7959
  async selectVariantCommand(t, e, a, r, i) {
7960
7960
  if (!t.data || !t.data.regions)
7961
- throw new Ie(t, "Missing regions.");
7961
+ throw new Be(t, "Missing regions.");
7962
7962
  r(!0);
7963
7963
  const s = a.map((f) => new It(f.id));
7964
7964
  t.mandatory && i.setMandatoryFulfilled(t.stepName, !1);
@@ -8036,12 +8036,12 @@ class Is {
8036
8036
  };
8037
8037
  }
8038
8038
  }
8039
- const fe = new Is();
8040
- class Bs {
8039
+ const Ce = new Bs();
8040
+ class Ps {
8041
8041
  async init(t, e, a) {
8042
8042
  const r = t.option;
8043
8043
  if (!r)
8044
- throw new be(t);
8044
+ throw new Ie(t);
8045
8045
  if (a)
8046
8046
  await this.reload(t, e, a);
8047
8047
  else {
@@ -8057,7 +8057,7 @@ class Bs {
8057
8057
  t.stepName,
8058
8058
  a.serializableWorkflow.steps
8059
8059
  ), o = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName), l = t.option;
8060
- if (!l) throw new be(t);
8060
+ if (!l) throw new Ie(t);
8061
8061
  if (r?.selectedVariants) {
8062
8062
  const c = r.selectedVariants[0].id;
8063
8063
  if (c) {
@@ -8112,11 +8112,11 @@ class Bs {
8112
8112
  };
8113
8113
  }
8114
8114
  }
8115
- const Yn = new Bs();
8116
- class Ps {
8115
+ const Jn = new Ps();
8116
+ class Ds {
8117
8117
  async init(t, e, a) {
8118
8118
  const r = t.option;
8119
- if (!r) throw new be(t);
8119
+ if (!r) throw new Ie(t);
8120
8120
  if (a)
8121
8121
  await this.reload(t, e, a);
8122
8122
  else {
@@ -8193,8 +8193,8 @@ class Ps {
8193
8193
  };
8194
8194
  }
8195
8195
  }
8196
- const Jn = new Ps();
8197
- class Ds {
8196
+ const Kn = new Ds();
8197
+ class Fs {
8198
8198
  async init(t, e, a) {
8199
8199
  if (a)
8200
8200
  await this.reload(t, e, a);
@@ -8232,7 +8232,7 @@ class Ds {
8232
8232
  return console.error(`Can not find layout for region: ${A.panelId}`), null;
8233
8233
  const g = [];
8234
8234
  return u && g.push(new It(h)), g.push(
8235
- new z(
8235
+ new G(
8236
8236
  {
8237
8237
  stepRegion: A,
8238
8238
  stepName: t.stepName,
@@ -8304,8 +8304,8 @@ class Ds {
8304
8304
  return r(""), { input: e, helperData: {} };
8305
8305
  }
8306
8306
  }
8307
- const Kn = new Ds();
8308
- class Fs {
8307
+ const _n = new Fs();
8308
+ class xs {
8309
8309
  async init(t, e, a) {
8310
8310
  const r = t.option;
8311
8311
  if (!r)
@@ -8359,7 +8359,7 @@ class Fs {
8359
8359
  const m = M();
8360
8360
  return {
8361
8361
  regionElement: { id: m, region: A },
8362
- command: new z(
8362
+ command: new G(
8363
8363
  {
8364
8364
  stepName: t.stepName,
8365
8365
  stepRegion: A,
@@ -8395,8 +8395,8 @@ class Fs {
8395
8395
  };
8396
8396
  }
8397
8397
  }
8398
- const _n = new Fs();
8399
- class xs {
8398
+ const Xn = new xs();
8399
+ class ks {
8400
8400
  async init(t, e, a) {
8401
8401
  const r = t.option;
8402
8402
  if (!r)
@@ -8450,8 +8450,8 @@ class xs {
8450
8450
  };
8451
8451
  }
8452
8452
  }
8453
- const Xn = new xs();
8454
- class ks {
8453
+ const Zn = new ks();
8454
+ class Ms {
8455
8455
  constructor() {
8456
8456
  this.shapeFillId = "spiff-fill-shape";
8457
8457
  }
@@ -8475,7 +8475,7 @@ class ks {
8475
8475
  async init(t, e, a) {
8476
8476
  const r = t.option;
8477
8477
  if (!r)
8478
- throw new be(t);
8478
+ throw new Ie(t);
8479
8479
  if (a)
8480
8480
  await this.reload(t, e, a);
8481
8481
  else {
@@ -8577,7 +8577,7 @@ class ks {
8577
8577
  return {
8578
8578
  id: f,
8579
8579
  region: u,
8580
- command: new z(
8580
+ command: new G(
8581
8581
  {
8582
8582
  stepRegion: u,
8583
8583
  stepName: t.stepName,
@@ -8615,8 +8615,8 @@ class ks {
8615
8615
  }
8616
8616
  }
8617
8617
  }
8618
- const zt = new ks();
8619
- class Ms {
8618
+ const zt = new Ms();
8619
+ class Ts {
8620
8620
  constructor() {
8621
8621
  this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
8622
8622
  }
@@ -8641,7 +8641,7 @@ class Ms {
8641
8641
  );
8642
8642
  }
8643
8643
  }
8644
- const Ts = new Ms(), Ke = (n, t, e, a, r) => {
8644
+ const Ns = new Ts(), Ke = (n, t, e, a, r) => {
8645
8645
  if (t.some((d) => d == null))
8646
8646
  throw new Error(`Failed to autosize lines: ${t.join(", ")}`);
8647
8647
  let i = t.map((d) => d.split(`
@@ -8668,7 +8668,7 @@ const Ts = new Ms(), Ke = (n, t, e, a, r) => {
8668
8668
  m || (c = !1);
8669
8669
  }
8670
8670
  return [null, null];
8671
- }, Ce = (n, t, e, a, r) => {
8671
+ }, we = (n, t, e, a, r) => {
8672
8672
  let i, s;
8673
8673
  const o = Ct(t.assetUrl), l = o.getFont();
8674
8674
  if (r.size) {
@@ -8686,19 +8686,19 @@ const Ts = new Ms(), Ke = (n, t, e, a, r) => {
8686
8686
  const A = d / l.unitsPerEm;
8687
8687
  return [i, s] = Ke(e, a, d, A, o), [d, i, s];
8688
8688
  }, _e = 30;
8689
- class xe extends Error {
8689
+ class ke extends Error {
8690
8690
  constructor(t) {
8691
- super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = xe.name;
8691
+ super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = ke.name;
8692
8692
  }
8693
8693
  }
8694
- const Ns = ["‘", "’", "“", "”", `
8694
+ const Qs = ["‘", "’", "“", "”", `
8695
8695
  `];
8696
- class ke extends Error {
8696
+ class Me extends Error {
8697
8697
  constructor(t) {
8698
- super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = ke.name;
8698
+ super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Me.name;
8699
8699
  }
8700
8700
  }
8701
- class Qs {
8701
+ class Rs {
8702
8702
  constructor() {
8703
8703
  this.cachedColors = /* @__PURE__ */ new Map(), this.cachedStrokeColors = /* @__PURE__ */ new Map(), this.filterUnsupportedCharacters = (t, e) => {
8704
8704
  let a = t.replace(
@@ -8707,7 +8707,7 @@ class Qs {
8707
8707
  );
8708
8708
  const r = [], i = e ? Ct(e.assetUrl) : void 0;
8709
8709
  if (i) {
8710
- const s = a.split("").filter((l) => !Ns.includes(l)).join(""), o = s.split("").map((l) => i.getFont().charToGlyph(l));
8710
+ const s = a.split("").filter((l) => !Qs.includes(l)).join(""), o = s.split("").map((l) => i.getFont().charToGlyph(l));
8711
8711
  for (let l = 0; l < o.length; l++)
8712
8712
  o[l].name === ".notdef" && r.push(String.fromCharCode(s.charCodeAt(l)));
8713
8713
  }
@@ -8815,7 +8815,7 @@ class Qs {
8815
8815
  return;
8816
8816
  const i = r.getCommandDispatcher();
8817
8817
  for (const s of a) {
8818
- const o = new Cs(s.id, e);
8818
+ const o = new ws(s.id, e);
8819
8819
  i(o);
8820
8820
  }
8821
8821
  }
@@ -8834,7 +8834,7 @@ class Qs {
8834
8834
  for (const l of a) {
8835
8835
  if (!e.fill)
8836
8836
  throw new Error("Fill not set on new color selection!");
8837
- const c = new ps(l.id, e.fill, o);
8837
+ const c = new fs(l.id, e.fill, o);
8838
8838
  i(c);
8839
8839
  }
8840
8840
  }
@@ -8907,7 +8907,7 @@ class Qs {
8907
8907
  }
8908
8908
  getProcessedInput(t, e, a) {
8909
8909
  const r = a ? t : this.injectReplaceableText(t, e);
8910
- return De(r, {
8910
+ return Fe(r, {
8911
8911
  vertical: e.vertical,
8912
8912
  uppercase: e.uppercase
8913
8913
  });
@@ -8924,7 +8924,7 @@ class Qs {
8924
8924
  const c = [], d = /* @__PURE__ */ new Map(), A = /* @__PURE__ */ new Map();
8925
8925
  for (const u of e) {
8926
8926
  if (!u.fontData) throw new N("Failed to resolve font data for text.");
8927
- const [h, m] = Ce(
8927
+ const [h, m] = we(
8928
8928
  u.fontSize,
8929
8929
  u.fontData,
8930
8930
  { left: u.x, top: u.y, width: u.width, height: u.height, rotation: u.rotation },
@@ -9011,7 +9011,7 @@ class Qs {
9011
9011
  e.getCommandDispatcher()(f.command);
9012
9012
  }
9013
9013
  } else {
9014
- const { command: g } = G.updateInputText(
9014
+ const { command: g } = W.updateInputText(
9015
9015
  m || "",
9016
9016
  o,
9017
9017
  t,
@@ -9047,7 +9047,7 @@ class Qs {
9047
9047
  e.getCommandDispatcher()(p.command);
9048
9048
  }
9049
9049
  } else {
9050
- const { command: m } = G.updateInputText(
9050
+ const { command: m } = W.updateInputText(
9051
9051
  h,
9052
9052
  o,
9053
9053
  t,
@@ -9176,7 +9176,7 @@ class Qs {
9176
9176
  const m = s.getLayouts().find((g) => g.panelId === u.panelId), p = M();
9177
9177
  try {
9178
9178
  if (!m)
9179
- throw new ke("Failed to find layout for region: " + u.panelId);
9179
+ throw new Me("Failed to find layout for region: " + u.panelId);
9180
9180
  const g = a.colorOption;
9181
9181
  let f;
9182
9182
  if (g && g.variants) {
@@ -9211,7 +9211,7 @@ class Qs {
9211
9211
  fillSpotColorDefinition: f
9212
9212
  }, y = [], S = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
9213
9213
  if (!P.fontData) throw new N("Failed to resolve font data for text.");
9214
- const [b, F] = Ce(
9214
+ const [b, F] = we(
9215
9215
  P.fontSize,
9216
9216
  P.fontData,
9217
9217
  {
@@ -9231,7 +9231,7 @@ class Qs {
9231
9231
  y.push(
9232
9232
  this.generateTextChangeCommandsForRegion(b, a, P.id, R)
9233
9233
  );
9234
- const T = new z(P, m);
9234
+ const T = new G(P, m);
9235
9235
  return {
9236
9236
  regionElement: { id: p, region: u },
9237
9237
  commands: [T, ...y],
@@ -9239,10 +9239,10 @@ class Qs {
9239
9239
  fontData: r
9240
9240
  };
9241
9241
  } catch (g) {
9242
- throw console.log(g), new xe("Error adding font to region");
9242
+ throw console.log(g), new ke("Error adding font to region");
9243
9243
  }
9244
9244
  }, A = await Promise.all(a.regions.map(d)).catch((u) => {
9245
- throw u instanceof xe ? (Ts.setLatestToast("Failed to load font.", Le.Error), u) : u instanceof ke ? u : new Error(u);
9245
+ throw u instanceof ke ? (Ns.setLatestToast("Failed to load font.", Le.Error), u) : u instanceof Me ? u : new Error(u);
9246
9246
  });
9247
9247
  return await s.setSelectionsAndElements(
9248
9248
  t,
@@ -9258,9 +9258,9 @@ class Qs {
9258
9258
  ), A;
9259
9259
  }
9260
9260
  generateTextChangeCommandsForRegion(t, e, a, r) {
9261
- const i = [], s = new Ss(a, r);
9261
+ const i = [], s = new vs(a, r);
9262
9262
  if (i.push(s), !e.size) {
9263
- const l = new fs(a, t);
9263
+ const l = new Cs(a, t);
9264
9264
  i.push(l);
9265
9265
  }
9266
9266
  return new O(i);
@@ -9272,7 +9272,7 @@ class Qs {
9272
9272
  const A = (r || "").replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, ""), u = Ft(A, s), h = this.getProcessedInput(u, t.data, o), m = s.getRegionElements(t.stepName), p = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map();
9273
9273
  for (const y of m)
9274
9274
  if (y.region) {
9275
- const [S, B] = Ce(
9275
+ const [S, B] = we(
9276
9276
  e,
9277
9277
  a,
9278
9278
  y.region,
@@ -9319,26 +9319,26 @@ class Qs {
9319
9319
  return new O(I);
9320
9320
  }
9321
9321
  }
9322
- const G = new Qs();
9323
- class Rs {
9322
+ const W = new Rs();
9323
+ class Os {
9324
9324
  }
9325
- const Os = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAElcAAAAHEdERUYAJwBUAAAe2AAAAB5HUE9TkNtcVAAAHygAACoyR1NVQrj/uP4AAB74AAAAME9TLzJoWmUcAAABeAAAAGBjbWFwtkIacAAAAxAAAAJWZ2FzcP//AAMAAB7QAAAACGdseWY27KOUAAAGCAAAFcRoZWFkFPal0gAAAPwAAAA2aGhlYQU0Ar0AAAE0AAAAJGhtdHiADw6qAAAB2AAAAThsb2Nh5CzfJAAABWgAAACebWF4cACVAEwAAAFYAAAAIG5hbWXeIPPyAAAbzAAAAiJwb3N0ABeZTwAAHfAAAADdAAEAAAABAAAZ9vREXw889QALA+gAAAAA2ZexNAAAAADZl7E0ADL/yQJ2ArwAAAAIAAIAAAAAAAAAAQAAArz/wwAAAqsAAAAAAnYAAQAAAAAAAAAAAAAAAAAAAE4AAQAAAE4ASQAFAAAAAAACAAAAAQABAAAAQAAAAAAAAAAEAbsBkAAFAAACigK7AAAAjAKKArsAAAHfADEBAgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAABYWFhYAEAACgCtArz/wwAAAqkANgAAAAMAAAAAAmQCZAAAACAAAgIPADIAAAAAAU0AAAAAAAAAAAAAALQAAAD3ADUCfQA1AcoANQKrADUCDQA1AX4ANQHYADUBNQA1AcgANQHUADUB8AA1AeEANQHpADUBqQA1AdAANQHpADUCqgA1Af8ANQGaADUB3wA1AbgANQFtADUBbQA1AekANQG8ADUA1QA1AYcANQHBADUBUAA1AhsANQHBADUB4QA1AZYANQH0ADUBxQA1AcUAMgGJADUBwwA1Ad0ANQJ1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AQv/jAEP/8wBE/+YARf/VAEb/+QBH/84ASP/JAEn/twBK/8EAS//rAB8ABv/7ABL/3wAX/8kAJf/5ACv/7wAy/7oAM//zADT/6wA1/+8ANv/uADf/8wA4/+oAOf/vADr/7wA7/9QAPP/5AD3//gA+//EAP//vAED/4wBB//MAQv/mAEP/7gBE/+cARf/XAEb/6wBH/8kASP/JAEn/twBK/7cAS//nACAABv/7ACQAAgAl/+8AJ//5AC3//gAv//4AMv/oADP//QA0/+sANf/7ADb/+gA3//sAOP/jADn/9wA6//oAO//kADz//wA9//0APv/+AD8AAABA/+gAQf/7AEL/6ABD//sARP/sAEX/8QBG//sAR//qAEj/6wBJ/+cASv/qAEv/+QAbAAb/+wAl/+8AMv+5ADP/+wA0/+8ANf/7ADb/+wA3//0AOP/vADn/+wA6AAAAO/+7ADz//gA9//4APv/7AED/7ABB//4AQv/nAEP/+QBE//kARf/7AEb/+QBH//MASP/rAEn/4gBK/+8AS//7AB0ABv/2ABf/zgAl/+8AMv+3ADP/9wA0/+sANf/3ADb/8QA3//kAOP/uADn/8wA6//sAO//YADz/8wA9/+4APv/3AD//8wBA/+MAQf/3AEL/6QBD/+8ARP/nAEX/1ABG/+8AR//JAEj/zABJ/6YASv/JAEv/3AAcAAb/+wAX//MAJf/7ADL/6wAz//4ANP/uADX/+wA2//4AN//+ADj/8wA5//0AOv/+ADv/7gA8//4APf/+AD7/+wA///4AQP/uAEL/9wBD//4ARP/+AEX/+QBG//4AR//uAEj/9wBJ/+4ASv/zAEv//gAYAAb/+wAx//YAMv/rADP//wA0//MANf//ADYAAQA3//8AOP/zADv/6AA8//4APf/+AD4AAQBA/+4AQf//AEL/8wBD//4ARP/4AEX//QBH/+wASP/3AEn/7ABK//EASwABABwABv/2ABf/4QAy/8oAM//9ADT/+QA1//4ANv/7ADf//gA4//MAOf/+ADr//wA7/+EAPP/7AD3//gA+//4AP//+AED/7wBB//4AQv/zAEP//gBE//sARf/7AEb//gBH/+8ASP/5AEn/2gBK//oAS//+AB0ABv/nABf/5wAx/7AAMv/hADP/7gA0/7QANf/rADb/5wA3/+4AOP+sADn/6wA6//kAO/+3ADz/6gA9/+8APv/nAD//5wBA/6wAQf/uAEL/rgBD/+cARP+8AEX/3ABG/9oAR//cAEj/0QBJ/9oASv/RAEv/7wAeAAb/9gAX//cAI//9ADH/vwAy/+4AM//5ADT/2gA1//4ANv/3ADf/+wA4/9oAOf/3ADr/+wA7/+cAPP/7AD3/+QA+//cAP//5AED/1ABB//sAQv/cAEP/9wBE/+8ARf/JAEb/6wBH/8QASP++AEn/5wBK/8EAS//+ABwAF//7ADH/7AAy/+QAM//+ADT/7gA1//4ANgAAADf//QA4//cAOf/7ADr//gA7/+4APP/+AD3//gA+//0AP//7AED/7wBB//4AQv/uAEP//gBE//cARf/7AEb/+QBH/+gASP/vAEn/6wBK/+gAS//+AB4ABv/7ABf/8wAa//4AHf/3ACX/9wAq//4AMf/2ADL/5AAz//0ANP/zADX/+wA2//4AN//+ADj/+QA7/+4APf/+AD7/+wA///4AQP/2AEH/+gBC/+4AQ//7AET/+QBF//sARv/+AEf/8wBI/+8ASf/zAEr/6wBL//4AHQAG//EAJP/3ADH/7AAy/7sAM//sADT/4wA1/+8ANv/vADf/9wA4/+QAOf/qADr/9wA7/98APP/vAD3/9wA+/+sAP//uAED/4wBB/+4AQv/mAEP/7wBE/+IARf/VAEb/7gBH/8MASP/GAEn/uwBK/7oAS//fABwABv/sACT//gAy/54AM//rADT/6gA1//EANv/rADf/9wA4/+MAOf/oADr/9wA7/64APP/sAD3/8QA+/+wAP//sAED/4QBB//MAQv/oAEP/5ABE/9gARf/kAEb/7gBH/9EASP/QAEn/uwBK/8QAS//zADAAF//3ABj//wAZ/+kAGv//ABv//QAc//4AHf/pAB7/+wAf//8AIP/iACH//gAi//8AI//+ACT//wAl/+IAJ//uACj//gAp/+cAKv/hACv/+QAs/8MALf/QAC7/5AAv/8wAMP//ADL/4QAz//4ANP/jADX/9wA3//kAOP/fADn/9wA7/+IAP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/6QA///EAQP/qAEL/3ABD/+gARP/fAEb/+ABH/7sASP+7AEn/rwBK/68AS//jACcACP/xAAn/7AAK//gADP/2AA7/9wAP//YAEP/xABH/5wAS/+cAE//xABT/7AAV/+UAMf/2ADL/6AAz//kANP/qADX/+wA2//oAN//7ADj/6wA5//cAOv//ADv/4wA8//sAPf/+AD7/+wA///oAQP/sAEH/+gBC/+MAQ//5AET/7wBF/+oARv/7AEf/4wBI/+wASf/jAEr/6gBL//4AJgAH//sACP/7AAn/5wAK//oADP/2AA7/9gAP//YAEP/xABH/8QAS//IAE//xABT/5wAV//EAMv/nADP/+wA0//EANf/9ADb//gA3//4AOP/uADn/+wA6//4AO//oAD0AAAA+//sAP//+AED/7wBB//4AQv/qAEP//wBE//EARf/3AEb/+wBH/+YASP/3AEn/2gBK/+QAS//7ACkAB//2AAj/9gAJ/90ACv/yAAz/8QAO//EAD//wABD/6gAR/+wAEv/mABP/9AAU/+wAFf/rABf/zgAx//YAMv/OADP/7wA0/+oANf/5ADb//gA3//0AOP/oADn/+QA6//0AO//YADz//gA9//8APv/6AD//+QBA/+4AQf/5AEL/4wBD//gARP/qAEX/+QBG//oAR//pAEj/6QBJ/9UASv/rAEv/+gAqAAf/sgAI/8kACf+wAAr/ugAL/7UADP+1AA3/3QAO/+QAD/+6ABD/sgAR/7UAEv+xABP/4gAU/6sAFf+mADH/lwAy/9oAM//jADT/qwA1/+IANv/iADf/4wA4/5oAOf/XADr/7gA7/7QAPP/kAD3/6wA+/+4AP//mAED/rQBB/+8AQv+qAEP/6gBE/74ARf/XAEb/2gBH/9AASP/SAEn/1QBK/80AS//qACsAB//nAAj/8QAJ/6YACv/sAAv/nAAM/90ADf+6AA7/9gAP/+IAEP/sABH/3QAS/9oAE//sABT/3QAV/8QAJP/+ADH/pgAy/+sAM//vADT/ygA1//0ANv/zADf/+wA4/9MAOf/vADr/+wA7/9gAPP/3AD3/9wA+//EAP//7AED/1QBB//cAQv/PAEP/8wBE/+YARf+7AEb/5wBH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D//7wBA/8MAQf/mAEL/uwBD/+YARP/KAEX/6QBG/+8AR//jAEj/3wBJ/9MASv/hAEv/6wApAAf/zgAI/84ACf/TAAv/2AAM/84ADv/eAA//xAAQ/7AAEf/TABL/sQAT/+wAFP/FABX/yQAk//sAMf/JADL/lQAz//MANP/BADX/+QA2//MAN//3ADj/xgA5//sAOv/3ADv/pQA8/+8APf/+AD7/7gA//+oAQP/DAEH/7gBC/8QAQ//vAET/0ABF/+4ARv/uAEf/6QBI/+QASf/aAEr/5gBL//cAKgAH/8QACP/OAAn/pgAL/7oADP+rAA3/3QAO/+cAD/+5ABD/twAR/8QAEv+zABP/0wAU/7AAFf+cACT/+wAx/6EAMv/aADP/4wA0/7cANf/4ADb/4wA3//0AOP+3ADn/7gA6/+8AO/+7ADz/7gA9//EAPv/jAD//6ABA/7oAQf/zAEL/uQBD/+sARP/OAEX/3wBG/+EAR//aAEj/2ABJ/9gASv/MAEv/7gAsAAf/yQAI/84ACf/JAAr/wgAL/8kADP/JAA3//gAO/8kAD/+6ABD/jQAR/7oAEv+gABP/4gAU/7UAFf+6AB7/8QAk//sAMf+1ADL/lwAz/+8ANP+7ADX/5gA2/+4AN//uADj/uQA5/+gAOv/3ADv/hAA8/+8APf/sAD7/7AA//+oAQP+6AEH/7ABC/7kAQ//pAET/ygBF/+8ARv/vAEf/6ABI/+kASf/fAEr/5ABL//EAJgAH//YACf/iAAr/7AAL/+cADP/iAA3//wAO//UAD//nABD/7AAR/+IAEv/gABP/7AAU/90AFf/TADH/4gAy/+sAM//+ADT/6AA1//4ANgAEADf//wA4/9wAOf/6ADv/5gA8//8APf//AD///QBA/+MAQf//AEMAAABE/+8ARf/4AEb/+wBH//cASP/rAEn/6QBK/+kAS//9AAIAAQAGAEsAAAAAAAAAAQAAAADUGBYRAAAAANmXsTQAAAAA2ZexNA==", at = (n) => Or("http://www.w3.org/2000/svg", n), $s = (n, t) => {
9325
+ const $s = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZU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P/7AD3/+QA+//cAP//5AED/1ABB//sAQv/cAEP/9wBE/+8ARf/JAEb/6wBH/8QASP++AEn/5wBK/8EAS//+ABwAF//7ADH/7AAy/+QAM//+ADT/7gA1//4ANgAAADf//QA4//cAOf/7ADr//gA7/+4APP/+AD3//gA+//0AP//7AED/7wBB//4AQv/uAEP//gBE//cARf/7AEb/+QBH/+gASP/vAEn/6wBK/+gAS//+AB4ABv/7ABf/8wAa//4AHf/3ACX/9wAq//4AMf/2ADL/5AAz//0ANP/zADX/+wA2//4AN//+ADj/+QA7/+4APf/+AD7/+wA///4AQP/2AEH/+gBC/+4AQ//7AET/+QBF//sARv/+AEf/8wBI/+8ASf/zAEr/6wBL//4AHQAG//EAJP/3ADH/7AAy/7sAM//sADT/4wA1/+8ANv/vADf/9wA4/+QAOf/qADr/9wA7/98APP/vAD3/9wA+/+sAP//uAED/4wBB/+4AQv/mAEP/7wBE/+IARf/VAEb/7gBH/8MASP/GAEn/uwBK/7oAS//fABwABv/sACT//gAy/54AM//rADT/6gA1//EANv/rADf/9wA4/+MAOf/oADr/9wA7/64APP/sAD3/8QA+/+wAP//sAED/4QBB//MAQv/oAEP/5ABE/9gARf/kAEb/7gBH/9EASP/QAEn/uwBK/8QAS//zADAAF//3ABj//wAZ/+kAGv//ABv//QAc//4AHf/pAB7/+wAf//8AIP/iACH//gAi//8AI//+ACT//wAl/+IAJ//uACj//gAp/+cAKv/hACv/+QAs/8MALf/QAC7/5AAv/8wAMP//ADL/4QAz//4ANP/jADX/9wA3//kAOP/fADn/9wA7/+IAPP/5AD3/+gA+//EAP//6AED/2gBB/+8AQv/aAET/7wBF/9cARv/qAEf/xgBI/7sASf/qAEr/tABL//sAHQAG/+cAF//oACT/+gAy/+IAM//xADT/zAA1/+8ANv/sADf/+gA4/8wAOf/3ADr/8wA7/8kAPP/uAD3/7wA+/+wAP//rAED/yQBB//cAQv/MAEP/+ABE/9QARf/KAEb/2gBH/8EASP/EAEn/4gBK/7cAS//vAB0ABv/xAB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A///EAQP/rAEH/+ABC/+QAQ//3AET/5gBF/9AARv/zAEf/xgBI/80ASf++AEr/twBL/+gAKgAH//EACP/xAAn/0wAK/+YAC//YAAz/5wAN/9gADv/oAA//5wAQ/+IAEf/iABP/2AAU/90AFf/dACT/+wAx/+wAMv+7ADP/9wA0/+QANf/rADb/5wA3//EAOP/kADn/+QA6//YAO//aADz/9wA9//4APv/uAD//8QBA/+cAQf/vAEL/4wBD/+sARP/cAEX/0ABG/+sAR//CAEj/xABJ/7QASv+6AEv/6AAmAAf/9gAI//EACf/sAAr/9gAM/+cADv/6AA//8QAQ//EAEf/vABL/4QAT//EAFP/iABX/5wAy/+kAM//9ADT/5wA1//sANv/9ADf//gA4/+sAOf/+ADoAAQA7/+gAPP/9AD3/9wA+//0AP//9AED/6wBBAAEAQv/pAEP/+QBE/+wARgACAEf/6QBI/+8ASf/nAEr/6wBL//sAKQAH//sACP/xAAn/5wAK/+4AC//2AAz/4gAN//sADv/1AA//8QAQ/90AEf/kABL/4gAT/+wAFP/YABX/3QAx//YAMv+5ADP/+AA0/+MANf/3ADb/+AA3//kAOP/iADn/+gA6//0AO//OADz//QA9//4APv/5AD///ABA/+YAQv/jAEP/9wBE/+YARf/vAEb//gBH/+cASP/vAEn/0QBK/+YAS//9ACgAB//2AAj/4gAJ/90ACv/sAAv/4gAM/+gADf/iAA7/9QAP/+gAEP/dABH/4AAS/+YAE//OABT/4gAV/90AJP/7ADH/9gAy/8EAM//vADT/3wA2//QAN//4ADj/4wA5/+kAOv/6ADv/0QA8/+YAPf/zAD7/6QA///EAQP/qAEL/3ABD/+gARP/fAEb/+ABH/7sASP+7AEn/rwBK/68AS//jACcACP/xAAn/7AAK//gADP/2AA7/9wAP//YAEP/xABH/5wAS/+cAE//xABT/7AAV/+UAMf/2ADL/6AAz//kANP/qADX/+wA2//oAN//7ADj/6wA5//cAOv//ADv/4wA8//sAPf/+AD7/+wA///oAQP/sAEH/+gBC/+MAQ//5AET/7wBF/+oARv/7AEf/4wBI/+wASf/jAEr/6gBL//4AJgAH//sACP/7AAn/5wAK//oADP/2AA7/9gAP//YAEP/xABH/8QAS//IAE//xABT/5wAV//EAMv/nADP/+wA0//EANf/9ADb//gA3//4AOP/uADn/+wA6//4AO//oAD0AAAA+//sAP//+AED/7wBB//4AQv/qAEP//wBE//EARf/3AEb/+wBH/+YASP/3AEn/2gBK/+QAS//7ACkAB//2AAj/9gAJ/90ACv/yAAz/8QAO//EAD//wABD/6gAR/+wAEv/mABP/9AAU/+wAFf/rABf/zgAx//YAMv/OADP/7wA0/+oANf/5ADb//gA3//0AOP/oADn/+QA6//0AO//YADz//gA9//8APv/6AD//+QBA/+4AQf/5AEL/4wBD//gARP/qAEX/+QBG//oAR//pAEj/6QBJ/9UASv/rAEv/+gAqAAf/sgAI/8kACf+wAAr/ugAL/7UADP+1AA3/3QAO/+QAD/+6ABD/sgAR/7UAEv+xABP/4gAU/6sAFf+mADH/lwAy/9oAM//jADT/qwA1/+IANv/iADf/4wA4/5oAOf/XADr/7gA7/7QAPP/kAD3/6wA+/+4AP//mAED/rQBB/+8AQv+qAEP/6gBE/74ARf/XAEb/2gBH/9AASP/SAEn/1QBK/80AS//qACsAB//nAAj/8QAJ/6YACv/sAAv/nAAM/90ADf+6AA7/9gAP/+IAEP/sABH/3QAS/9oAE//sABT/3QAV/8QAJP/+ADH/pgAy/+sAM//vADT/ygA1//0ANv/zADf/+wA4/9MAOf/vADr/+wA7/9gAPP/3AD3/9wA+//EAP//7AED/1QBB//cAQv/PAEP/8wBE/+YARf+7AEb/5wBH/7UASP/JAEn/2gBK/6UAS//zACkAB//2AAn/7AAK//kAC//sAAz/9gAO//oAD//2ABD/7AAR/+cAEv/vABP/9gAU//EAFf/sABcAAQAx/+YAMv/pADP/+QA0/+oANf/zADb/+wA3//oAOP/nADn/9wA6//4AO//uADz/+QA9//oAPv/7AD//+QBA/+8AQf/3AEL/6QBD//oARP/sAEX/8wBG//gAR//pAEj/6QBJ/+MASv/nAEv//QAqAAf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Q//vAET/0ABF/+4ARv/uAEf/6QBI/+QASf/aAEr/5gBL//cAKgAH/8QACP/OAAn/pgAL/7oADP+rAA3/3QAO/+cAD/+5ABD/twAR/8QAEv+zABP/0wAU/7AAFf+cACT/+wAx/6EAMv/aADP/4wA0/7cANf/4ADb/4wA3//0AOP+3ADn/7gA6/+8AO/+7ADz/7gA9//EAPv/jAD//6ABA/7oAQf/zAEL/uQBD/+sARP/OAEX/3wBG/+EAR//aAEj/2ABJ/9gASv/MAEv/7gAsAAf/yQAI/84ACf/JAAr/wgAL/8kADP/JAA3//gAO/8kAD/+6ABD/jQAR/7oAEv+gABP/4gAU/7UAFf+6AB7/8QAk//sAMf+1ADL/lwAz/+8ANP+7ADX/5gA2/+4AN//uADj/uQA5/+gAOv/3ADv/hAA8/+8APf/sAD7/7AA//+oAQP+6AEH/7ABC/7kAQ//pAET/ygBF/+8ARv/vAEf/6ABI/+kASf/fAEr/5ABL//EAJgAH//YACf/iAAr/7AAL/+cADP/iAA3//wAO//UAD//nABD/7AAR/+IAEv/gABP/7AAU/90AFf/TADH/4gAy/+sAM//+ADT/6AA1//4ANgAEADf//wA4/9wAOf/6ADv/5gA8//8APf//AD///QBA/+MAQf//AEMAAABE/+8ARf/4AEb/+wBH//cASP/rAEn/6QBK/+kAS//9AAIAAQAGAEsAAAAAAAAAAQAAAADUGBYRAAAAANmXsTQAAAAA2ZexNA==", at = (n) => $r("http://www.w3.org/2000/svg", n), Us = (n, t) => {
9326
9326
  const e = at("rect");
9327
9327
  return e.setAttribute("height", `${n}`), e.setAttribute("width", `${t}`), e;
9328
- }, Us = (n, t, e, a) => {
9329
- const r = se("filter");
9328
+ }, Ls = (n, t, e, a) => {
9329
+ const r = oe("filter");
9330
9330
  r.setAttribute("id", a), r.setAttribute("height", "200%"), r.setAttribute("width", "200%"), r.setAttribute("x", "-50%"), r.setAttribute("y", "-50%");
9331
- const i = se("feOffset");
9331
+ const i = oe("feOffset");
9332
9332
  r.appendChild(i), i.setAttribute("result", "offOut"), i.setAttribute("in", "SourceAlpha"), i.setAttribute("dx", `${n}`), i.setAttribute("dy", `${t}`);
9333
- const s = se("feGaussianBlur");
9333
+ const s = oe("feGaussianBlur");
9334
9334
  r.appendChild(s), s.setAttribute("result", "blurOut"), s.setAttribute("in", "offOut"), s.setAttribute("stdDeviation", `${e}`);
9335
- const o = se("feBlend");
9335
+ const o = oe("feBlend");
9336
9336
  return r.appendChild(o), o.setAttribute("in", "SourceGraphic"), o.setAttribute("in2", "blurOut"), o.setAttribute("mode", "normal"), r;
9337
- }, Ls = (n) => {
9337
+ }, Vs = (n) => {
9338
9338
  let t = n;
9339
9339
  return t = t.replace(/feoffset/gi, "feOffset"), t = t.replace(/fegaussianblur/gi, "feGaussianBlur"), t = t.replace(/feblend/gi, "feBlend"), t = t.replace(/lineargradient/gi, "linearGradient"), t = t.replace(/stddeviation/gi, "stdDeviation"), t;
9340
9340
  };
9341
- function Vs(n, t, e, a, r, i) {
9341
+ function zs(n, t, e, a, r, i) {
9342
9342
  const s = r, o = i, l = {
9343
9343
  x: t[0],
9344
9344
  y: t[1],
@@ -9347,10 +9347,10 @@ function Vs(n, t, e, a, r, i) {
9347
9347
  };
9348
9348
  if (l.width <= 0)
9349
9349
  return;
9350
- const c = zs(l.height, l.width, e * s, a * o), d = (a - c * l.width) / 2 - c * l.x, A = (e - c * l.height) / 2 - c * l.y;
9350
+ const c = Gs(l.height, l.width, e * s, a * o), d = (a - c * l.width) / 2 - c * l.x, A = (e - c * l.height) / 2 - c * l.y;
9351
9351
  n.setAttribute("transform", `translate(${d} ${A}) scale(${c} ${c})`);
9352
9352
  }
9353
- function zs(n, t, e, a) {
9353
+ function Gs(n, t, e, a) {
9354
9354
  const r = e / n, i = a / t;
9355
9355
  return r > 1 && i > 1 ? Math.min(r, i) : r > 1 && i < 1 ? i : r < 1 && i > 1 ? r : Math.min(r, i);
9356
9356
  }
@@ -9366,7 +9366,7 @@ const Ja = {
9366
9366
  t: ["x", "y"],
9367
9367
  a: ["rx", "ry", "xRotation", "largeArc", "sweep", "x", "y"]
9368
9368
  };
9369
- class Gs {
9369
+ class Ws {
9370
9370
  constructor(t) {
9371
9371
  const e = Array.from(t.querySelectorAll("path"));
9372
9372
  this.paths = e.map((a) => {
@@ -9464,7 +9464,7 @@ class Gs {
9464
9464
  }
9465
9465
  }
9466
9466
  }
9467
- class Ws extends Rs {
9467
+ class qs extends Os {
9468
9468
  constructor() {
9469
9469
  super(...arguments), this.moduleName = "Vegemite";
9470
9470
  }
@@ -9475,11 +9475,11 @@ class Ws extends Rs {
9475
9475
  return this.svgElement(t, e);
9476
9476
  }
9477
9477
  svgElement(t, e) {
9478
- const a = ns(Os), i = t !== "" ? ((I) => I.charAt(0).toUpperCase() + I.substr(1).toLowerCase())(t) : "", s = a.getPath(i, 0, 72, 72), o = s.toSVG(2), l = s.getBoundingBox(), c = l.x2 - l.x1, d = s.toPathData(3), A = () => {
9478
+ const a = rs($s), i = t !== "" ? ((I) => I.charAt(0).toUpperCase() + I.substr(1).toLowerCase())(t) : "", s = a.getPath(i, 0, 72, 72), o = s.toSVG(2), l = s.getBoundingBox(), c = l.x2 - l.x1, d = s.toPathData(3), A = () => {
9479
9479
  const I = at("g");
9480
9480
  I.classList.add("module-text-group");
9481
9481
  const P = at("defs");
9482
- I.appendChild(P), P.appendChild(Us(0, 2, 2, "shadow"));
9482
+ I.appendChild(P), P.appendChild(Ls(0, 2, 2, "shadow"));
9483
9483
  const y = at("path");
9484
9484
  y.setAttribute("d", d), y.setAttribute("stroke", "black"), y.setAttribute("stroke-width", "3"), P.appendChild(y);
9485
9485
  const S = at("g");
@@ -9489,29 +9489,29 @@ class Ws extends Rs {
9489
9489
  const b = at("g");
9490
9490
  b.classList.add("module-layer2"), I.appendChild(b), b.setAttribute("fill", "rgb(255,209,0)"), b.setAttribute("transform", "translate(1,-0.1)"), b.innerHTML = o;
9491
9491
  const F = at("g");
9492
- return F.classList.add("module-layer3"), I.appendChild(F), F.setAttribute("fill", "white"), F.innerHTML = o, new Gs(I).transform(([T, tt]) => [T, tt + (c / 2 - T) ** 2 / (c * 6)]), I;
9492
+ return F.classList.add("module-layer3"), I.appendChild(F), F.setAttribute("fill", "white"), F.innerHTML = o, new Ws(I).transform(([T, tt]) => [T, tt + (c / 2 - T) ** 2 / (c * 6)]), I;
9493
9493
  }, u = at("g");
9494
9494
  u.classList.add("module-root");
9495
9495
  const h = at("defs");
9496
9496
  u.appendChild(h);
9497
9497
  const m = at("g");
9498
9498
  m.classList.add("module-bounds"), u.appendChild(m);
9499
- const p = $s(e.height, e.width);
9499
+ const p = Us(e.height, e.width);
9500
9500
  p.setAttribute("opacity", "0"), m.appendChild(p);
9501
9501
  const g = at("g");
9502
9502
  g.classList.add("module-text-enclosure"), u.appendChild(g);
9503
9503
  const f = A();
9504
9504
  g.appendChild(f);
9505
- const C = yr(d);
9506
- return Vs(g, C, e.height, e.width, 0.35, 0.65), Ls(u.outerHTML);
9505
+ const C = Sr(d);
9506
+ return zs(g, C, e.height, e.width, 0.35, 0.65), Vs(u.outerHTML);
9507
9507
  }
9508
9508
  }
9509
- async function Zn(n) {
9509
+ async function tr(n) {
9510
9510
  if (n === "Vegemite")
9511
- return new Ws();
9511
+ return new qs();
9512
9512
  throw new N(`Failed to resolve Module, Module ${n} not found`);
9513
9513
  }
9514
- const re = w`
9514
+ const ie = w`
9515
9515
  fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
9516
9516
  name
9517
9517
  value
@@ -9533,8 +9533,8 @@ const re = w`
9533
9533
  }
9534
9534
  }
9535
9535
  }
9536
- `, qs = w`
9537
- ${re}
9536
+ `, Hs = w`
9537
+ ${ie}
9538
9538
  mutation CreateGlobalPropertyState($bundleId: String!) {
9539
9539
  globalPropertyStateCreate(bundleId: $bundleId) {
9540
9540
  id
@@ -9543,8 +9543,8 @@ const re = w`
9543
9543
  }
9544
9544
  }
9545
9545
  }
9546
- `, Hs = w`
9547
- ${re}
9546
+ `, js = w`
9547
+ ${ie}
9548
9548
  mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
9549
9549
  globalPropertyStateUpdate(id: $id, aspects: $aspects) {
9550
9550
  id
@@ -9553,8 +9553,8 @@ const re = w`
9553
9553
  }
9554
9554
  }
9555
9555
  }
9556
- `, js = w`
9557
- ${re}
9556
+ `, Ys = w`
9557
+ ${ie}
9558
9558
  query GetGlobalPropertyState($bundleId: String!) {
9559
9559
  globalPropertyState(bundleId: $bundleId) {
9560
9560
  id
@@ -9564,14 +9564,14 @@ const re = w`
9564
9564
  }
9565
9565
  }
9566
9566
  `, fd = async (n) => (await v.getShadowGraphqlClient().query({
9567
- query: js,
9567
+ query: Ys,
9568
9568
  fetchPolicy: "cache-first",
9569
9569
  errorPolicy: "all",
9570
9570
  variables: {
9571
9571
  bundleId: n
9572
9572
  }
9573
- })).data.globalPropertyState, Ys = (n) => w`
9574
- ${Oe}
9573
+ })).data.globalPropertyState, Js = (n) => w`
9574
+ ${ae}
9575
9575
  fragment ProductFields on Product {
9576
9576
  id
9577
9577
  basePrice
@@ -9616,7 +9616,7 @@ const re = w`
9616
9616
  }
9617
9617
  }
9618
9618
  `, Pa = (n) => w`
9619
- ${Ys(n)}
9619
+ ${Js(n)}
9620
9620
  fragment ProductCollectionProductFields on ProductCollectionProduct {
9621
9621
  id
9622
9622
  productId
@@ -9625,7 +9625,7 @@ const re = w`
9625
9625
  ...ProductFields
9626
9626
  }
9627
9627
  }
9628
- `, ie = (n, t = !1) => w`
9628
+ `, se = (n, t = !1) => w`
9629
9629
  ${n ? Pa(t) : ""}
9630
9630
  fragment ProductCollectionFields on ProductCollection {
9631
9631
  id
@@ -9695,9 +9695,9 @@ const re = w`
9695
9695
  }
9696
9696
  }
9697
9697
  }
9698
- `, Js = (n) => w`
9699
- ${re}
9700
- ${ie(n)}
9698
+ `, Ks = (n) => w`
9699
+ ${ie}
9700
+ ${se(n)}
9701
9701
  query GetBundle($id: String!) {
9702
9702
  globalPropertyState(bundleId: $id) {
9703
9703
  id
@@ -9784,7 +9784,7 @@ const re = w`
9784
9784
  }
9785
9785
  }
9786
9786
  }
9787
- `, Ks = w`
9787
+ `, _s = w`
9788
9788
  query GetBundlesForCustomer($id: String!) {
9789
9789
  customers(ids: [$id]) {
9790
9790
  bundleStakeholders {
@@ -9813,7 +9813,7 @@ const re = w`
9813
9813
  }
9814
9814
  }
9815
9815
  }
9816
- `, _s = w`
9816
+ `, Xs = w`
9817
9817
  ${Pa(!1)}
9818
9818
  query GetProductCollectionProducts($id: String!, $productIds: [String!]) {
9819
9819
  productCollections(ids: [$id], productIds: $productIds) {
@@ -9823,7 +9823,7 @@ const re = w`
9823
9823
  }
9824
9824
  }
9825
9825
  }
9826
- `, Xs = w`
9826
+ `, Zs = w`
9827
9827
  query GetProductCollectionForFilteredProducts(
9828
9828
  $id: String!
9829
9829
  $filters: ProductCollectionProductFilterInput
@@ -9846,7 +9846,7 @@ const re = w`
9846
9846
  }
9847
9847
  }
9848
9848
  }
9849
- `, Zs = w`
9849
+ `, to = w`
9850
9850
  ${Pa(!0)}
9851
9851
  query GetProductCollectionForProductsFeed(
9852
9852
  $id: String!
@@ -9878,8 +9878,8 @@ const re = w`
9878
9878
  }
9879
9879
  }
9880
9880
  }
9881
- `, to = (n) => w`
9882
- ${ie(n)}
9881
+ `, eo = (n) => w`
9882
+ ${se(n)}
9883
9883
  mutation CreateBundle(
9884
9884
  $collectionId: String
9885
9885
  $initialMetadata: [MetadataInput!]
@@ -9907,9 +9907,9 @@ const re = w`
9907
9907
  }
9908
9908
  }
9909
9909
  }
9910
- `, eo = (n) => w`
9911
- ${re}
9912
- ${ie(n)}
9910
+ `, ao = (n) => w`
9911
+ ${ie}
9912
+ ${se(n)}
9913
9913
  mutation DuplicateBundle(
9914
9914
  $id: String!
9915
9915
  $template: Boolean
@@ -9949,7 +9949,7 @@ const re = w`
9949
9949
  }
9950
9950
  }
9951
9951
  }
9952
- `, ao = w`
9952
+ `, _a = w`
9953
9953
  mutation UpdateBundle(
9954
9954
  $id: String!
9955
9955
  $name: String
@@ -10064,7 +10064,7 @@ const re = w`
10064
10064
  }
10065
10065
  }
10066
10066
  `, uo = (n) => w`
10067
- ${ie(n)}
10067
+ ${se(n)}
10068
10068
  mutation BundleAssignProductCollection($id: String!, $productCollectionId: String!) {
10069
10069
  bundleAssignProductCollection(id: $id, collectionId: $productCollectionId) {
10070
10070
  id
@@ -10234,7 +10234,7 @@ const re = w`
10234
10234
  `;
10235
10235
  var Le = /* @__PURE__ */ ((n) => (n.Error = "Error", n.Warning = "Warning", n.Info = "Info", n))(Le || {});
10236
10236
  const bo = 1e3;
10237
- class _a extends Mn {
10237
+ class Xa extends Tn {
10238
10238
  constructor(t) {
10239
10239
  super(), this.createdAt = /* @__PURE__ */ new Date(), this.update = t;
10240
10240
  }
@@ -10248,7 +10248,7 @@ class _a extends Mn {
10248
10248
  }
10249
10249
  class Io {
10250
10250
  constructor(t, e, a, r, i, s, o, l, c, d = !1, A, u = !1, h = !1, m = !1) {
10251
- this.workflowStatePromiseQueue = new Tn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.setWorkflow = async (g) => {
10251
+ this.workflowStatePromiseQueue = new Nn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.setWorkflow = async (g) => {
10252
10252
  g.steps.forEach((f) => {
10253
10253
  this.stepTags[f.stepName] = f.tags ?? [];
10254
10254
  }), this.initializationPromise = this.initializeDefaultWorkflowState(g), this.initializationPromise.then(() => {
@@ -10274,7 +10274,7 @@ class Io {
10274
10274
  const t = this.experience.getTransaction().recipient, e = { recipient: t };
10275
10275
  return this.recipientConversionConfiguration?.requestedDataItems?.forEach((a) => {
10276
10276
  const r = a.uniqueIdentifier ?? a.title ?? "";
10277
- a.type === we.FirstName ? e[r] = t?.firstName : a.type === we.LastName ? e[r] = t?.lastName : a.type === we.Custom && (a.customFieldIndex === 1 ? e[r] = t?.customField1 : a.customFieldIndex === 2 ? e[r] = t?.customField2 : a.customFieldIndex === 3 ? e[r] = t?.customField3 : a.customFieldIndex === 4 ? e[r] = t?.customField4 : a.customFieldIndex === 5 && (e[r] = t?.customField5));
10277
+ a.type === ye.FirstName ? e[r] = t?.firstName : a.type === ye.LastName ? e[r] = t?.lastName : a.type === ye.Custom && (a.customFieldIndex === 1 ? e[r] = t?.customField1 : a.customFieldIndex === 2 ? e[r] = t?.customField2 : a.customFieldIndex === 3 ? e[r] = t?.customField3 : a.customFieldIndex === 4 ? e[r] = t?.customField4 : a.customFieldIndex === 5 && (e[r] = t?.customField5));
10278
10278
  }), e;
10279
10279
  }
10280
10280
  async updateRecipient(t, e, a, r, i, s, o, l, c, d, A, u, h, m, p, g, f) {
@@ -10387,7 +10387,7 @@ class Io {
10387
10387
  const t = this.experience.getTransaction().recipient;
10388
10388
  if (t?.conversionConfigurationId && !this.recipientConversionConfiguration) {
10389
10389
  const e = await this.graphQlClient().query({
10390
- query: Fi,
10390
+ query: xi,
10391
10391
  errorPolicy: "all",
10392
10392
  fetchPolicy: "no-cache",
10393
10393
  variables: {
@@ -10406,7 +10406,7 @@ class Io {
10406
10406
  };
10407
10407
  this.reloadedState && this.reloadedState.serializableWorkflow.steps.forEach((o) => {
10408
10408
  this.storage[o.stepName] = o.storage || {};
10409
- }), await this.fetchConversionConfiguration(), this.allScenes = await Ji(t);
10409
+ }), await this.fetchConversionConfiguration(), this.allScenes = await Ki(t);
10410
10410
  const r = yt(this.allScenes, this.stepSelections).map((o) => o.silentSteps).flat(), { stepElements: i, commands: s } = await this.stepElementsForIntroducedSilentSteps(r, !!this.reloadedState);
10411
10411
  this.commandContext.apply(new O(s), !0), this.stepElements = { ...this.stepElements, ...i }, await this.ensureStepsAreLoaded(), !this.isReloadedTransaction && this.updateStateWithServer(), this.renderLayouts(), this.reloadedState && e();
10412
10412
  }
@@ -10653,7 +10653,7 @@ class Io {
10653
10653
  ...this.storage,
10654
10654
  [t]: { ...this.storage[t], ...e }
10655
10655
  };
10656
- if (!Se(a, this.storage)) {
10656
+ if (!ve(a, this.storage)) {
10657
10657
  this.storage = a;
10658
10658
  const r = new Ha(this.constructSerializableWorkflow());
10659
10659
  this.commandContext.apply(r, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
@@ -10674,7 +10674,7 @@ class Io {
10674
10674
  if (this.readOnly) return;
10675
10675
  const t = this.serialize();
10676
10676
  this.workflowStatePromiseQueue.enqueue(
10677
- new _a(async () => {
10677
+ new Xa(async () => {
10678
10678
  await new Promise((e) => {
10679
10679
  setTimeout(() => {
10680
10680
  e();
@@ -10691,7 +10691,7 @@ class Io {
10691
10691
  async updateStateWithServerImmediate() {
10692
10692
  if (this.readOnly) return;
10693
10693
  const t = this.serialize();
10694
- return new _a(async () => {
10694
+ return new Xa(async () => {
10695
10695
  await this.updateTransaction({
10696
10696
  variables: {
10697
10697
  id: this.experience.getTransaction().id,
@@ -10801,7 +10801,7 @@ class Io {
10801
10801
  }
10802
10802
  async updateTransactionStakeholders() {
10803
10803
  const t = await v.getShadowGraphqlClient().query({
10804
- query: Ni,
10804
+ query: Qi,
10805
10805
  errorPolicy: "all",
10806
10806
  fetchPolicy: "no-cache",
10807
10807
  variables: {
@@ -10887,7 +10887,7 @@ class Io {
10887
10887
  switch (this.stepInitialised[l.stepName] = !0, l.type) {
10888
10888
  case E.DigitalContent:
10889
10889
  a.push(
10890
- jn.init(
10890
+ Yn.init(
10891
10891
  l,
10892
10892
  this,
10893
10893
  this.reloadedState
@@ -10899,39 +10899,39 @@ class Io {
10899
10899
  break;
10900
10900
  case E.Illustration:
10901
10901
  a.push(
10902
- fe.init(l, this, this.reloadedState)
10902
+ Ce.init(l, this, this.reloadedState)
10903
10903
  );
10904
10904
  break;
10905
10905
  case E.Material:
10906
10906
  a.push(
10907
- Yn.init(l, this, this.reloadedState)
10907
+ Jn.init(l, this, this.reloadedState)
10908
10908
  );
10909
10909
  break;
10910
10910
  case E.Model:
10911
- a.push(Jn.init(l, this, this.reloadedState));
10911
+ a.push(Kn.init(l, this, this.reloadedState));
10912
10912
  break;
10913
10913
  case E.Module:
10914
10914
  this.stepSpecificServices[l.stepName] = {
10915
- module: await Zn(l.data.module)
10915
+ module: await tr(l.data.module)
10916
10916
  }, a.push(
10917
- Kn.init(l, this, this.reloadedState)
10917
+ _n.init(l, this, this.reloadedState)
10918
10918
  );
10919
10919
  break;
10920
10920
  case E.Picture:
10921
10921
  a.push(
10922
- _n.init(l, this, this.reloadedState)
10922
+ Xn.init(l, this, this.reloadedState)
10923
10923
  );
10924
10924
  break;
10925
10925
  case E.Question:
10926
10926
  a.push(
10927
- Xn.init(l, this, this.reloadedState)
10927
+ Zn.init(l, this, this.reloadedState)
10928
10928
  );
10929
10929
  break;
10930
10930
  case E.Shape:
10931
10931
  a.push(zt.init(l, this, this.reloadedState));
10932
10932
  break;
10933
10933
  case E.Text:
10934
- a.push(G.init(l, this, this.reloadedState));
10934
+ a.push(W.init(l, this, this.reloadedState));
10935
10935
  break;
10936
10936
  }
10937
10937
  const i = (await Promise.allSettled(a)).map((l) => {
@@ -10990,7 +10990,7 @@ class Io {
10990
10990
  this.validationCallbacks.forEach((t) => t(this.validationErrors));
10991
10991
  }
10992
10992
  traversableScenes() {
10993
- return Xi(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
10993
+ return Zi(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
10994
10994
  }
10995
10995
  }
10996
10996
  class it {
@@ -11217,7 +11217,7 @@ class Bo extends Z {
11217
11217
  */
11218
11218
  async selectVariant(t) {
11219
11219
  if (!this.getUpdateState() && this.getCurrentVariant() !== t)
11220
- return fe.selectVariant(
11220
+ return Ce.selectVariant(
11221
11221
  this.step,
11222
11222
  t.getResource(),
11223
11223
  this.manager.getRegionElements(this.step.stepName) || [],
@@ -11259,7 +11259,7 @@ class Bo extends Z {
11259
11259
  const c = l.id.replace(/\W/g, "");
11260
11260
  a ? r.set(c, { browserValue: e, pmsValue: a }) : r.set(c, e);
11261
11261
  }
11262
- }) : a ? r.set(t, { browserValue: e, pmsValue: a }) : r.set(t, e), fe.changeColors(
11262
+ }) : a ? r.set(t, { browserValue: e, pmsValue: a }) : r.set(t, e), Ce.changeColors(
11263
11263
  this.step,
11264
11264
  this.manager.getRegionElements(this.step.stepName),
11265
11265
  this.manager,
@@ -11271,7 +11271,7 @@ class Bo extends Z {
11271
11271
  return this.step.data.colorOption;
11272
11272
  }
11273
11273
  getAvailableColors() {
11274
- return this.step.data.colorPickerEnabled ? fe.availableColors(this.step, this.manager) : Promise.resolve([]);
11274
+ return this.step.data.colorPickerEnabled ? Ce.availableColors(this.step, this.manager) : Promise.resolve([]);
11275
11275
  }
11276
11276
  isColorPickerEnabled() {
11277
11277
  return this.step.data.colorPickerEnabled ?? !1;
@@ -11285,7 +11285,7 @@ class Po extends Z {
11285
11285
  super(t, e, a);
11286
11286
  }
11287
11287
  selectVariant(t) {
11288
- return Yn.selectVariant(
11288
+ return Jn.selectVariant(
11289
11289
  this.step,
11290
11290
  t.getResource(),
11291
11291
  this.manager,
@@ -11298,7 +11298,7 @@ class Do extends Z {
11298
11298
  super(t, e, a);
11299
11299
  }
11300
11300
  selectVariant(t) {
11301
- return Jn.selectVariant(
11301
+ return Kn.selectVariant(
11302
11302
  this.step,
11303
11303
  t.getResource(),
11304
11304
  this.manager,
@@ -11316,7 +11316,7 @@ class Fo extends Z {
11316
11316
  * @returns A promise that can be awaited to ensure the new image asset has been updated on the design.
11317
11317
  */
11318
11318
  selectVariant(t) {
11319
- return _n.selectVariant(
11319
+ return Xn.selectVariant(
11320
11320
  this.step,
11321
11321
  t.getResource(),
11322
11322
  this.manager,
@@ -11331,7 +11331,7 @@ class xo extends Z {
11331
11331
  async selectVariant(t) {
11332
11332
  if (!t.getId())
11333
11333
  throw new Error("Unable to select variant with a null ID");
11334
- await Xn.selectVariant(this.step, t.getId(), this.manager);
11334
+ await Zn.selectVariant(this.step, t.getId(), this.manager);
11335
11335
  }
11336
11336
  /**
11337
11337
  * The way that this step expects to be rendered.
@@ -11408,7 +11408,7 @@ class Mo extends Z {
11408
11408
  * @param variant The font variant to use.
11409
11409
  */
11410
11410
  async selectVariant(t) {
11411
- G.selectVariant(
11411
+ W.selectVariant(
11412
11412
  this.step,
11413
11413
  t.getResource(),
11414
11414
  this.manager,
@@ -11435,7 +11435,7 @@ class Mo extends Z {
11435
11435
  * @returns A list of colors that can be used to fill the text.
11436
11436
  */
11437
11437
  getAvailableFillColors() {
11438
- return this.step.data.colorPickerEnabled ? G.availableFillColors(this.step) : [];
11438
+ return this.step.data.colorPickerEnabled ? W.availableFillColors(this.step) : [];
11439
11439
  }
11440
11440
  /**
11441
11441
  * Changes the fill of text related to this step to the new fill value.
@@ -11443,7 +11443,7 @@ class Mo extends Z {
11443
11443
  */
11444
11444
  async setFillColor(t) {
11445
11445
  const e = this.manager.getRegionElements(this.step.stepName);
11446
- await G.changeFillColor(this.step, t, e, this.manager);
11446
+ await W.changeFillColor(this.step, t, e, this.manager);
11447
11447
  }
11448
11448
  /**
11449
11449
  * Gets the color currently applied to the element.
@@ -11452,21 +11452,21 @@ class Mo extends Z {
11452
11452
  return this.manager.getStepStorage(this.step.stepName)?.color || "#000000";
11453
11453
  }
11454
11454
  getAvailableFillImages() {
11455
- return G.availableFillImages(this.step);
11455
+ return W.availableFillImages(this.step);
11456
11456
  }
11457
11457
  async setFillImage(t) {
11458
11458
  const e = this.manager.getRegionElements(this.step.stepName);
11459
- await G.changeFillImage(this.step, t, e, this.manager);
11459
+ await W.changeFillImage(this.step, t, e, this.manager);
11460
11460
  }
11461
11461
  getFillImage() {
11462
11462
  return this.manager.getStepStorage(this.step.stepName)?.fillImage;
11463
11463
  }
11464
11464
  getAlignment() {
11465
- return G.findLayoutElements(this.manager, this.step)?.[0].align;
11465
+ return W.findLayoutElements(this.manager, this.step)?.[0].align;
11466
11466
  }
11467
11467
  setAlignment(t) {
11468
11468
  const e = this.manager.getRegionElements(this.step.stepName);
11469
- G.changeAlignment(this.step, t, e, this.manager);
11469
+ W.changeAlignment(this.step, t, e, this.manager);
11470
11470
  }
11471
11471
  /**
11472
11472
  * When true & the step has replaceable text configured the user will be
@@ -11489,11 +11489,11 @@ class Mo extends Z {
11489
11489
  const e = {
11490
11490
  input: t,
11491
11491
  helperData: {}
11492
- }, a = G.findLayoutElements(this.manager, this.step), r = G.filterUnsupportedCharacters(t, a[0]?.fontData), i = Ft(r, this.manager).length, s = !!this.step.data && !!this.step.data.maxLength && i > this.step.data.maxLength;
11492
+ }, a = W.findLayoutElements(this.manager, this.step), r = W.filterUnsupportedCharacters(t, a[0]?.fontData), i = Ft(r, this.manager).length, s = !!this.step.data && !!this.step.data.maxLength && i > this.step.data.maxLength;
11493
11493
  s || (e.input = r);
11494
11494
  const o = a.length <= 0, l = o ? { inputText: r, text: r } : { inputText: r };
11495
11495
  this.manager.updateStorage(this.step.stepName, l);
11496
- const c = this.manager.getStepStorage(this.step.stepName), d = G.getProcessedInput(
11496
+ const c = this.manager.getStepStorage(this.step.stepName), d = W.getProcessedInput(
11497
11497
  r,
11498
11498
  this.step.data,
11499
11499
  c?.customiseAllText ?? !1
@@ -11503,7 +11503,7 @@ class Mo extends Z {
11503
11503
  text: d
11504
11504
  });
11505
11505
  else {
11506
- const { command: A, errorData: u, helperData: h } = G.updateInputText(
11506
+ const { command: A, errorData: u, helperData: h } = W.updateInputText(
11507
11507
  r,
11508
11508
  a,
11509
11509
  this.step,
@@ -11540,8 +11540,8 @@ class Mo extends Z {
11540
11540
  if (!this.manager.getStepStorage(this.step.stepName)?.defaultCleared && this.step.data.deleteDefaultOnFocus) {
11541
11541
  const e = this.setText("");
11542
11542
  this.manager.updateStorage(this.step.stepName, { defaultCleared: !0, inputText: "" });
11543
- const a = G.findLayoutElements(this.manager, this.step);
11544
- return G.updateInputText("", a, this.step, this.manager), e;
11543
+ const a = W.findLayoutElements(this.manager, this.step);
11544
+ return W.updateInputText("", a, this.step, this.manager), e;
11545
11545
  }
11546
11546
  }
11547
11547
  hasColorPicker() {
@@ -11578,7 +11578,7 @@ class Mo extends Z {
11578
11578
  * @returns A list of colors that can be used for the text's outline.
11579
11579
  */
11580
11580
  getAvailableStrokeColors() {
11581
- return this.step.data.strokeEnabled ? G.availableStrokeColors(this.step) : [];
11581
+ return this.step.data.strokeEnabled ? W.availableStrokeColors(this.step) : [];
11582
11582
  }
11583
11583
  getStrokeColor() {
11584
11584
  return this.manager.getStepStorage(this.step.stepName)?.strokeColor?.browserValue || "#000000";
@@ -11589,7 +11589,7 @@ class Mo extends Z {
11589
11589
  */
11590
11590
  async setStrokeColor(t) {
11591
11591
  const e = this.manager.getRegionElements(this.step.stepName);
11592
- await G.changeStrokeColor(this.step, t, e, this.manager);
11592
+ await W.changeStrokeColor(this.step, t, e, this.manager);
11593
11593
  }
11594
11594
  }
11595
11595
  class To extends Z {
@@ -11623,7 +11623,7 @@ class No extends Z {
11623
11623
  * @returns The final URL string for the QR code.
11624
11624
  */
11625
11625
  async selectVideo(t) {
11626
- return jn.regenerateQRCode(
11626
+ return Yn.regenerateQRCode(
11627
11627
  this.manager.getRegionElements(this.step.stepName),
11628
11628
  t.key,
11629
11629
  this.manager,
@@ -11660,7 +11660,7 @@ class Qo extends Z {
11660
11660
  return this.manager.getStepStorage(this.step.stepName)?.text || "";
11661
11661
  }
11662
11662
  setText(t) {
11663
- Kn.changeText(this.step, t, this.manager, (e) => {
11663
+ _n.changeText(this.step, t, this.manager, (e) => {
11664
11664
  if (e) {
11665
11665
  const a = [
11666
11666
  ...this.manager.getInformationResults(),
@@ -11678,7 +11678,7 @@ class Qo extends Z {
11678
11678
  });
11679
11679
  }
11680
11680
  }
11681
- class de {
11681
+ class Ae {
11682
11682
  static get(t, e) {
11683
11683
  switch (e.type) {
11684
11684
  case E.DigitalContent:
@@ -11708,7 +11708,7 @@ class de {
11708
11708
  }
11709
11709
  }
11710
11710
  }
11711
- const tr = w`
11711
+ const er = w`
11712
11712
  fragment CreateDesignTransaction on Transaction {
11713
11713
  id
11714
11714
  designName
@@ -11734,7 +11734,7 @@ const tr = w`
11734
11734
  }
11735
11735
  }
11736
11736
  `, Ro = w`
11737
- ${tr}
11737
+ ${er}
11738
11738
  mutation CreateDesign(
11739
11739
  $name: String!
11740
11740
  $layouts: [LayoutInput]!
@@ -11766,7 +11766,7 @@ const tr = w`
11766
11766
  }
11767
11767
  }
11768
11768
  `, Oo = w`
11769
- ${tr}
11769
+ ${er}
11770
11770
  mutation CreateDesigns($inputs: [DesignCreateInput]!) {
11771
11771
  designCreateMany(inputs: $inputs) {
11772
11772
  id
@@ -11838,7 +11838,7 @@ const $o = async (n, t) => {
11838
11838
  headers: e
11839
11839
  }
11840
11840
  })).data?.designCreateMany;
11841
- }, Xa = (n, t, e) => {
11841
+ }, Za = (n, t, e) => {
11842
11842
  const a = (i) => {
11843
11843
  const s = {};
11844
11844
  if (i.type === "Frame") {
@@ -11894,7 +11894,7 @@ const $o = async (n, t) => {
11894
11894
  });
11895
11895
  }
11896
11896
  return r;
11897
- }, er = (n, t, e, a, r, i, s, o) => {
11897
+ }, ar = (n, t, e, a, r, i, s, o) => {
11898
11898
  const l = t.basePrice || 0, c = n.priceModifierTotal || 0, d = Lo(a, e, void 0, i), u = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), h = {
11899
11899
  additionalExternalProductId: n.integrationProduct?.additionalExternalProductId,
11900
11900
  additionalExternalVariantId: n.integrationProduct?.additionalExternalVariantId,
@@ -11917,12 +11917,12 @@ const $o = async (n, t) => {
11917
11917
  workflowViewerReadOnlyLink: n.workflowViewerReadOnlyLink || ""
11918
11918
  };
11919
11919
  return i && (h.metadata = i), a && (h.selectedVariants = a), r && (h.sku = r), h;
11920
- }, ar = async (n, t, e, a, r, i, s, o, l, c) => {
11920
+ }, nr = async (n, t, e, a, r, i, s, o, l, c) => {
11921
11921
  await (async () => {
11922
11922
  if (c !== void 0) return c;
11923
11923
  await n.outstandingRequestsPromise();
11924
11924
  const F = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(r.id), T = await v.getShadowGraphqlClient().query({
11925
- query: xn,
11925
+ query: kn,
11926
11926
  variables: { ids: [r.id] },
11927
11927
  fetchPolicy: "no-cache",
11928
11928
  errorPolicy: "all",
@@ -11934,14 +11934,14 @@ const $o = async (n, t) => {
11934
11934
  T.errors && console.log("Server Error:", et.message);
11935
11935
  }), null) : tt ?? null;
11936
11936
  })() || (console.warn("State mismatch detected. Uploading known state explicitly"), console.warn("State Object:", JSON.stringify(a())), await n.updateStateWithServerImmediate(a), console.log("Server state is undefined @ Workflow completion"));
11937
- const u = n.getPreviewService(), h = t?.finalizeStepConfig?.lookAtAnimation, m = u && t.showModelOnFinishStep && !!h, p = l && Xa(l, t, !0), g = l && Xa(l, t, !1), f = async (b) => {
11937
+ const u = n.getPreviewService(), h = t?.finalizeStepConfig?.lookAtAnimation, m = u && t.showModelOnFinishStep && !!h, p = l && Za(l, t, !0), g = l && Za(l, t, !1), f = async (b) => {
11938
11938
  const F = {};
11939
11939
  let R = 0;
11940
11940
  if (Object.keys(i).length > 0)
11941
11941
  for (const T of Object.keys(i)) {
11942
- const tt = i[T], et = t.steps.find((W) => W.stepName === T);
11943
- for (let W = 0; W < tt.selections.length; ++W) {
11944
- const q = tt.selections[W];
11942
+ const tt = i[T], et = t.steps.find((z) => z.stepName === T);
11943
+ for (let z = 0; z < tt.selections.length; ++z) {
11944
+ const q = tt.selections[z];
11945
11945
  if (et && (!b || et.option && (et.option.variants || []).length > 1 && !et.data.hideSelectionInCart && !et.data.hideSelectionsInCart)) {
11946
11946
  const wt = et.stepTitle;
11947
11947
  F[wt] ? F[wt].push({
@@ -11973,7 +11973,7 @@ const $o = async (n, t) => {
11973
11973
  const b = await (await rt(S)).blob();
11974
11974
  S = (await $.uploadAsset(
11975
11975
  { name: `${r.id}-preview-image.png`, blob: b },
11976
- ve.Image,
11976
+ Ee.Image,
11977
11977
  !0,
11978
11978
  !1
11979
11979
  )).fileLink;
@@ -12010,7 +12010,7 @@ const $o = async (n, t) => {
12010
12010
  };
12011
12011
  }, Vo = async (n, t, e, a, r, i, s, o, l, c, d) => {
12012
12012
  l("workflow.steps.finish.finalize.buildingLayouts");
12013
- const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await ar(
12013
+ const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await nr(
12014
12014
  n,
12015
12015
  t,
12016
12016
  e,
@@ -12027,7 +12027,7 @@ const $o = async (n, t) => {
12027
12027
  throw new Error("Failed to create design");
12028
12028
  l("workflow.steps.finish.finalize.updatingTransaction");
12029
12029
  const g = m.transaction;
12030
- return er(
12030
+ return ar(
12031
12031
  g,
12032
12032
  r,
12033
12033
  t,
@@ -12045,7 +12045,7 @@ const $o = async (n, t) => {
12045
12045
  );
12046
12046
  const r = await (async () => {
12047
12047
  const l = await v.getShadowGraphqlClient().query({
12048
- query: xn,
12048
+ query: kn,
12049
12049
  variables: { ids: n.map((c) => c.transaction.id) },
12050
12050
  fetchPolicy: "no-cache",
12051
12051
  errorPolicy: "all"
@@ -12054,7 +12054,7 @@ const $o = async (n, t) => {
12054
12054
  l.errors && console.log("Server Error:", c.message);
12055
12055
  }), null) : l.data?.transactions ? l.data.transactions.map((c) => c.workflowState ?? null) : null;
12056
12056
  })(), i = await Promise.all(
12057
- n.map(async (o, l) => await ar(
12057
+ n.map(async (o, l) => await nr(
12058
12058
  o.workflowManager,
12059
12059
  o.workflow,
12060
12060
  o.layouts,
@@ -12073,7 +12073,7 @@ const $o = async (n, t) => {
12073
12073
  throw new Error("Failed to create designs");
12074
12074
  return t("workflow.steps.finish.finalize.updatingTransaction"), s.map((o, l) => {
12075
12075
  const c = n[l], d = i[l], A = o.transaction;
12076
- return er(
12076
+ return ar(
12077
12077
  A,
12078
12078
  c.product,
12079
12079
  c.workflow,
@@ -12195,6 +12195,7 @@ const Xe = new Go(), Wo = w`
12195
12195
  }
12196
12196
  }
12197
12197
  `, jo = w`
12198
+ ${ae}
12198
12199
  mutation TransactionUpdateIntegrationProduct($id: String!, $integrationProductId: String!) {
12199
12200
  transactionUpdateIntegrationProduct(id: $id, integrationProductId: $integrationProductId) {
12200
12201
  id
@@ -12289,7 +12290,7 @@ const Xe = new Go(), Wo = w`
12289
12290
  var Yo = /* @__PURE__ */ ((n) => (n.QuantityChanged = "QuantityChanged", n.PriceBreakChanged = "PriceBreakChanged", n.SelectionChanged = "SelectionChanged", n))(Yo || {});
12290
12291
  class Jo {
12291
12292
  constructor(t, e) {
12292
- if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.profanityList = [], this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = un(async () => {
12293
+ this.cachedStepHandles = /* @__PURE__ */ new Map(), this.profanityList = [], this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = hn(async () => {
12293
12294
  await Xe.getSavedDesignByTransaction(this.getTransaction().id) && this.save();
12294
12295
  }, 2500), this.getCanvasObjectURLAsync = async (r) => new Promise((i, s) => {
12295
12296
  try {
@@ -12302,11 +12303,9 @@ class Jo {
12302
12303
  } catch (o) {
12303
12304
  s(o);
12304
12305
  }
12305
- }), !e.workflow)
12306
- throw new Error("No Workflow ID provided.");
12307
- this.client = t, this.transaction = e.transaction, this.workflow = e.workflow, this.product = e.transaction.product, this.profanityList = this.product?.profanities?.map((r) => r.word) || [];
12306
+ }), this.client = t, this.transaction = e.transaction, this.workflow = e.workflow, this.product = e.transaction.product, this.profanityList = this.product?.profanities?.map((r) => r.word) || [];
12308
12307
  const a = e.layouts;
12309
- this.commandContext = new ms(), this.commandContext.initialize(a, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new Io(
12308
+ this.commandContext = new gs(), this.commandContext.initialize(a, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new Io(
12310
12309
  this,
12311
12310
  t,
12312
12311
  a,
@@ -12364,7 +12363,7 @@ class Jo {
12364
12363
  })).data?.transactionUpdateIntegrationProduct.product;
12365
12364
  if (!a)
12366
12365
  throw new Error("Failed to set product. No product returned from server.");
12367
- this.product = a;
12366
+ this.product = a, this.currentPriceBreak = this.priceBreakToBeApplied();
12368
12367
  }
12369
12368
  getWorkflow() {
12370
12369
  return this.workflow;
@@ -12436,14 +12435,14 @@ class Jo {
12436
12435
  height: d.layoutState.layout.height
12437
12436
  }, u = this.commandContext.getLayoutById(d.layoutState.layout.id), h = s.getContext("2d");
12438
12437
  if (!h)
12439
- throw new Te("Failed to obtain 2D context for preview image creation");
12438
+ throw new Ne("Failed to obtain 2D context for preview image creation");
12440
12439
  const m = this.workflowManager.getTemplatingContext(), p = Ea(u.layoutState.layout, u.layoutState.elements, {
12441
12440
  renderingConfiguration: {
12442
12441
  purpose: jt.Print,
12443
12442
  region: { left: A.x, top: A.y, width: A.width, height: A.height },
12444
12443
  templatingContext: m
12445
12444
  }
12446
- }), g = fn(p);
12445
+ }), g = Cn(p);
12447
12446
  await (await ma.from(h, g, {
12448
12447
  anonymousCrossOrigin: !0,
12449
12448
  ignoreDimensions: !1,
@@ -12461,7 +12460,7 @@ class Jo {
12461
12460
  const a = this.cachedStepHandles.get(e.stepName);
12462
12461
  if (a)
12463
12462
  return a;
12464
- const r = de.get(this.getWorkflowManager(), e);
12463
+ const r = Ae.get(this.getWorkflowManager(), e);
12465
12464
  return this.cachedStepHandles.set(e.stepName, r), r;
12466
12465
  }
12467
12466
  getSteps() {
@@ -12558,17 +12557,17 @@ class Jo {
12558
12557
  getStepByName(t) {
12559
12558
  const e = this.getWorkflow()?.steps.find((a) => a.stepTitle === t);
12560
12559
  if (!(!e || !this.stepHasHandle(e)))
12561
- return de.get(this.getWorkflowManager(), e);
12560
+ return Ae.get(this.getWorkflowManager(), e);
12562
12561
  }
12563
12562
  getStepsByType(t) {
12564
- return this.getWorkflow()?.steps.filter((e) => e.type === t).map((e) => de.get(this.getWorkflowManager(), e)) || [];
12563
+ return this.getWorkflow()?.steps.filter((e) => e.type === t).map((e) => Ae.get(this.getWorkflowManager(), e)) || [];
12565
12564
  }
12566
12565
  getStepsByScene(t) {
12567
12566
  if (!this.getWorkflow()?.stepGroups.find((a) => a.name === t.name))
12568
12567
  throw new Error(
12569
12568
  "Given scene is not present on workflow! Be careful when persisting scenes that you only use them with the relevant workflow."
12570
12569
  );
12571
- return t.stepIds.map((a) => this.getWorkflow()?.steps.find((r) => r.stepName === a)).filter((a) => this.stepHasHandle(a)).map((a) => de.get(this.getWorkflowManager(), a));
12570
+ return t.stepIds.map((a) => this.getWorkflow()?.steps.find((r) => r.stepName === a)).filter((a) => this.stepHasHandle(a)).map((a) => Ae.get(this.getWorkflowManager(), a));
12572
12571
  }
12573
12572
  async attachCustomerDetails(t) {
12574
12573
  return this.assignCustomerDetails({ emailAddress: t.email });
@@ -12638,7 +12637,7 @@ class Jo {
12638
12637
  if (!i)
12639
12638
  throw new N("Workflow undefined! Cannot finish an experience without a workflow.");
12640
12639
  return a.completed ? (await this.graphQlClient().mutate({
12641
- mutation: Qi,
12640
+ mutation: Ri,
12642
12641
  variables: {
12643
12642
  transactionId: a.id
12644
12643
  }
@@ -12753,7 +12752,7 @@ class Jo {
12753
12752
  ), this.checkForPriceBreakChanges();
12754
12753
  const e = this.getTransaction();
12755
12754
  await this.graphQlClient().mutate({
12756
- mutation: Di,
12755
+ mutation: Fi,
12757
12756
  variables: {
12758
12757
  id: e.id,
12759
12758
  quantity: t
@@ -12812,12 +12811,12 @@ const Ko = (n) => {
12812
12811
  ], Zo = async (n, t, e) => {
12813
12812
  const a = t.data, r = e.data.baseUrl, i = a.assetUrl.replace("localhost", "localstack"), s = r.slice(0, 4) === "http" ? "" : "https://", o = new URL(s + r);
12814
12813
  o.searchParams.append("video", $a(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12815
- const l = o.toString(), d = `data:image/svg+xml;base64,${$a(await An(l, { type: "svg" }))}`, A = (h) => {
12814
+ const l = o.toString(), d = `data:image/svg+xml;base64,${$a(await un(l, { type: "svg" }))}`, A = (h) => {
12816
12815
  const m = n.find((g) => g.panelId === h.panelId);
12817
12816
  if (!m)
12818
12817
  throw new Y(h);
12819
12818
  const p = M();
12820
- return new z(
12819
+ return new G(
12821
12820
  {
12822
12821
  id: p,
12823
12822
  src: d,
@@ -12839,10 +12838,10 @@ const Ko = (n) => {
12839
12838
  }, tl = async (n, t, e, a) => {
12840
12839
  const r = e.data, i = r.assetUrl, s = await da(i);
12841
12840
  try {
12842
- const o = gs(r, a.option);
12841
+ const o = ps(r, a.option);
12843
12842
  o && (t[a.stepName] = { selectedVariants: [o] });
12844
12843
  const l = async (c) => {
12845
- const d = await zn(c, o?.asset?.fileLink), A = await Ue(d), u = M(), h = n.find((p) => p.panelId === c.panelId);
12844
+ const d = await Gn(c, o?.asset?.fileLink), A = await Ue(d), u = M(), h = n.find((p) => p.panelId === c.panelId);
12846
12845
  if (!h)
12847
12846
  throw new Y(c);
12848
12847
  const m = Ia(
@@ -12856,7 +12855,7 @@ const Ko = (n) => {
12856
12855
  a.data.forceImageCover
12857
12856
  );
12858
12857
  return [
12859
- new z(
12858
+ new G(
12860
12859
  {
12861
12860
  id: u,
12862
12861
  path: A.path,
@@ -12897,7 +12896,7 @@ const Ko = (n) => {
12897
12896
  const r = e.data, i = a.option;
12898
12897
  if (!i)
12899
12898
  return console.error(`No option for step ${a.stepName}.`), [];
12900
- const s = i.variants?.find((y) => y.id === r.illustrationVariantId) || ne(i);
12899
+ const s = i.variants?.find((y) => y.id === r.illustrationVariantId) || re(i);
12901
12900
  if (!s)
12902
12901
  return console.error(`No variant with ID: ${r.illustrationVariantId}`), [];
12903
12902
  if (!s.asset)
@@ -12938,7 +12937,7 @@ const Ko = (n) => {
12938
12937
  if (!S)
12939
12938
  throw new Y(y);
12940
12939
  const B = M();
12941
- return new z(
12940
+ return new G(
12942
12941
  {
12943
12942
  colors: p,
12944
12943
  id: B,
@@ -12962,12 +12961,12 @@ const Ko = (n) => {
12962
12961
  return console.error(y), [];
12963
12962
  }
12964
12963
  }, al = async (n, t, e) => {
12965
- const a = await Zn(e.data.module), r = t.data, i = (o, l) => {
12964
+ const a = await tr(e.data.module), r = t.data, i = (o, l) => {
12966
12965
  const c = n.find((A) => A.panelId === l.panelId);
12967
12966
  if (!c)
12968
12967
  throw new Y(l);
12969
12968
  const d = M();
12970
- return new z(
12969
+ return new G(
12971
12970
  {
12972
12971
  colors: {},
12973
12972
  id: d,
@@ -12995,7 +12994,7 @@ const Ko = (n) => {
12995
12994
  const r = e.data, i = a.option;
12996
12995
  if (!i)
12997
12996
  return console.error(`No option for step ${a.stepName}.`), [];
12998
- const s = i.variants?.find((d) => d.id === r.pictureVariantId) || ne(i);
12997
+ const s = i.variants?.find((d) => d.id === r.pictureVariantId) || re(i);
12999
12998
  if (!s)
13000
12999
  return console.error(`No variant with ID: ${r.pictureVariantId}`), [];
13001
13000
  if (!s.asset)
@@ -13009,7 +13008,7 @@ const Ko = (n) => {
13009
13008
  if (!A)
13010
13009
  throw new Y(d);
13011
13010
  const u = M();
13012
- return new z(
13011
+ return new G(
13013
13012
  {
13014
13013
  id: u,
13015
13014
  src: o,
@@ -13036,7 +13035,7 @@ const Ko = (n) => {
13036
13035
  const r = e.data, i = a.option;
13037
13036
  if (!i)
13038
13037
  return console.error(`No option for step ${a.stepName}.`), [];
13039
- const s = i.variants?.find((c) => c.id === r.colorVariantId) || ne(i);
13038
+ const s = i.variants?.find((c) => c.id === r.colorVariantId) || re(i);
13040
13039
  if (!s)
13041
13040
  return console.error(`No variant with ID: ${r.colorVariantId}`), [];
13042
13041
  t[a.stepName] = { selectedVariants: [s] };
@@ -13065,7 +13064,7 @@ const Ko = (n) => {
13065
13064
  />
13066
13065
  </svg>
13067
13066
  `, h = { "spiff-fill-shape": { browserValue: s.color || "#000000" } }, m = M();
13068
- return new z(
13067
+ return new G(
13069
13068
  {
13070
13069
  colors: h,
13071
13070
  id: m,
@@ -13113,7 +13112,7 @@ const Ko = (n) => {
13113
13112
  excludeFromExport: t.data.excludeFromPrint,
13114
13113
  preserveAspectRatio: "none"
13115
13114
  };
13116
- a.push(new z(A, d));
13115
+ a.push(new G(A, d));
13117
13116
  });
13118
13117
  } catch (c) {
13119
13118
  console.error(c);
@@ -13148,7 +13147,7 @@ const Ko = (n) => {
13148
13147
  productOverlay: t.type === E.ProductOverlay ? !0 : void 0,
13149
13148
  excludeFromExport: t.data.excludeFromPrint
13150
13149
  };
13151
- a.push(new z(h, u));
13150
+ a.push(new G(h, u));
13152
13151
  });
13153
13152
  }
13154
13153
  return a;
@@ -13157,7 +13156,7 @@ const Ko = (n) => {
13157
13156
  const g = a.option;
13158
13157
  if (!g)
13159
13158
  return;
13160
- const f = g.variants?.find((I) => I.id === i.fontVariantId) || ne(g);
13159
+ const f = g.variants?.find((I) => I.id === i.fontVariantId) || re(g);
13161
13160
  if (!f || !f.asset)
13162
13161
  return;
13163
13162
  t[a.stepName] = { selectedVariants: [f] };
@@ -13173,7 +13172,7 @@ const Ko = (n) => {
13173
13172
  assetUrl: g,
13174
13173
  name: f.names.fullName.en
13175
13174
  };
13176
- })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = De(A, {
13175
+ })(), A = (a.data.replaceableText ? a.data.replaceableText.replace("{{}}", i.text) : i.text) || "", u = Fe(A, {
13177
13176
  vertical: a.data.vertical,
13178
13177
  uppercase: a.data.uppercase
13179
13178
  }), h = async (g) => {
@@ -13206,12 +13205,12 @@ const Ko = (n) => {
13206
13205
  y: g.top
13207
13206
  };
13208
13207
  if (d) {
13209
- const [I, P] = Ce(
13208
+ const [I, P] = we(
13210
13209
  a.data.size || s,
13211
13210
  d,
13212
13211
  g,
13213
13212
  [
13214
- De(u, {
13213
+ Fe(u, {
13215
13214
  vertical: a.data.vertical,
13216
13215
  uppercase: a.data.uppercase
13217
13216
  })
@@ -13223,7 +13222,7 @@ const Ko = (n) => {
13223
13222
  }
13224
13223
  );
13225
13224
  r.push(
13226
- new z(
13225
+ new G(
13227
13226
  {
13228
13227
  ...C,
13229
13228
  fontSize: I,
@@ -13234,7 +13233,7 @@ const Ko = (n) => {
13234
13233
  )
13235
13234
  );
13236
13235
  } else
13237
- r.push(new z(C, f));
13236
+ r.push(new G(C, f));
13238
13237
  }
13239
13238
  return r;
13240
13239
  }, ol = (n, t) => n.conditions ? n.conditions.every((e) => {
@@ -13342,7 +13341,7 @@ const dl = () => new Promise((n, t) => {
13342
13341
  }), Al = dl();
13343
13342
  class ul {
13344
13343
  constructor(t, e, a, r, i) {
13345
- this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Tn(2), this.id = t, this.name = e, this.service = a, this.panelSize = r, this.getWorkflowManager = i;
13344
+ this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Nn(2), this.id = t, this.name = e, this.service = a, this.panelSize = r, this.getWorkflowManager = i;
13346
13345
  }
13347
13346
  getID() {
13348
13347
  return this.id;
@@ -13409,7 +13408,7 @@ class ul {
13409
13408
  );
13410
13409
  }
13411
13410
  }
13412
- class hl extends Mn {
13411
+ class hl extends Tn {
13413
13412
  constructor(t, e, a, r, i, s) {
13414
13413
  super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = r, this.layouts = i, this.getWorkflowManager = s;
13415
13414
  }
@@ -13464,7 +13463,7 @@ class hl extends Mn {
13464
13463
  purpose: jt.ThreeD,
13465
13464
  templatingContext: d
13466
13465
  }
13467
- }), u = fn(A), h = await ma.from(this.ctx, u, {
13466
+ }), u = Cn(A), h = await ma.from(this.ctx, u, {
13468
13467
  anonymousCrossOrigin: !0,
13469
13468
  ignoreDimensions: !this.nonPOTSupport,
13470
13469
  ignoreAnimation: !0,
@@ -13495,7 +13494,7 @@ const Cd = (n, t) => {
13495
13494
  serializableWorkflow: { steps: [] },
13496
13495
  layouts: {}
13497
13496
  };
13498
- r = new O(e.map((l) => new qn(l))).apply(r);
13497
+ r = new O(e.map((l) => new Hn(l))).apply(r);
13499
13498
  const s = await ll(n, t, e, a);
13500
13499
  return new O(s).apply(r);
13501
13500
  };
@@ -13543,14 +13542,14 @@ class ml {
13543
13542
  case L.FileUpload:
13544
13543
  return new gl(this.bundle, t).initialize();
13545
13544
  case L.ColorOption:
13546
- return new Za(
13545
+ return new tn(
13547
13546
  this.bundle,
13548
13547
  t,
13549
13548
  t.entityId ? await j.getOption(t.entityId) : void 0
13550
13549
  );
13551
13550
  case L.Option: {
13552
13551
  const e = t.entityId ? await j.getOption(t.entityId) : void 0;
13553
- return e?.type === "Color" ? new Za(this.bundle, t, e) : new nr(this.bundle, t, e);
13552
+ return e?.type === "Color" ? new tn(this.bundle, t, e) : new rr(this.bundle, t, e);
13554
13553
  }
13555
13554
  case L.Text:
13556
13555
  return new pl(this.bundle, t);
@@ -13885,7 +13884,7 @@ class pl extends Da {
13885
13884
  await Promise.all(r);
13886
13885
  }
13887
13886
  }
13888
- class nr extends Da {
13887
+ class rr extends Da {
13889
13888
  constructor(t, e, a) {
13890
13889
  super(t, e), this.optionResource = a;
13891
13890
  }
@@ -13947,7 +13946,7 @@ class nr extends Da {
13947
13946
  await Promise.all(r);
13948
13947
  }
13949
13948
  }
13950
- class Za extends nr {
13949
+ class tn extends rr {
13951
13950
  constructor(t, e, a) {
13952
13951
  super(t, e, a);
13953
13952
  }
@@ -14018,7 +14017,7 @@ function ua(n, t) {
14018
14017
  let r = {};
14019
14018
  for (const [i, s] of Object.entries(a))
14020
14019
  r[i] = wl(s) ? s : ua(s, t);
14021
- return Br(r, t);
14020
+ return Pr(r, t);
14022
14021
  }
14023
14022
  return Array.isArray(n) ? n.map(e) : e(n);
14024
14023
  }
@@ -14028,13 +14027,13 @@ function wl(n) {
14028
14027
  function yl(n) {
14029
14028
  return typeof n == "object" && !Array.isArray(n) && n !== null;
14030
14029
  }
14031
- function rr(n) {
14030
+ function ir(n) {
14032
14031
  const t = /* @__PURE__ */ new Map();
14033
14032
  return n?.aspects?.forEach((e) => {
14034
14033
  e.value !== "" && t.set(e.name, !0);
14035
14034
  }), t;
14036
14035
  }
14037
- function Ae(n) {
14036
+ function ue(n) {
14038
14037
  return ua(n, ["__typename"]);
14039
14038
  }
14040
14039
  class Sl {
@@ -14042,13 +14041,13 @@ class Sl {
14042
14041
  this.mandatoryFulfilledAspects = /* @__PURE__ */ new Map(), this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = i;
14043
14042
  const s = i?.existingGlobalPropertyState;
14044
14043
  this.initPromise = s ? Promise.resolve(s).then(() => {
14045
- console.log("Setting global property state to existing state."), this.globalPropertyState = Ae(s), this.recalculateMandatoryStates();
14044
+ console.log("Setting global property state to existing state."), this.globalPropertyState = ue(s), this.recalculateMandatoryStates();
14046
14045
  }) : this.createGlobalPropertyState().then((o) => {
14047
- console.log("Setting global property state to new state."), this.globalPropertyState = Ae(o), this.recalculateMandatoryStates();
14046
+ console.log("Setting global property state to new state."), this.globalPropertyState = ue(o), this.recalculateMandatoryStates();
14048
14047
  }), this.onGlobalPropertyStateChange = r;
14049
14048
  }
14050
14049
  recalculateMandatoryStates() {
14051
- this.mandatoryFulfilledAspects = rr(this.globalPropertyState);
14050
+ this.mandatoryFulfilledAspects = ir(this.globalPropertyState);
14052
14051
  }
14053
14052
  setBundleOptions(t) {
14054
14053
  this.bundleOptions = t;
@@ -14068,7 +14067,7 @@ class Sl {
14068
14067
  async setGlobalPropertyState(t) {
14069
14068
  this.globalPropertyState || await this.initPromise;
14070
14069
  const e = Et(this.globalPropertyState);
14071
- this.globalPropertyState = { ...Ae(t), id: e.id }, this.recalculateMandatoryStates(), await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(e, this.globalPropertyState);
14070
+ this.globalPropertyState = { ...ue(t), id: e.id }, this.recalculateMandatoryStates(), await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(e, this.globalPropertyState);
14072
14071
  }
14073
14072
  getAspectMandatoryFulfilled(t) {
14074
14073
  return this.mandatoryFulfilledAspects.get(t);
@@ -14127,7 +14126,7 @@ class Sl {
14127
14126
  storage: a !== null ? a : void 0,
14128
14127
  channel: r
14129
14128
  });
14130
- Se(s, this.globalPropertyState) || (await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(s, this.globalPropertyState));
14129
+ ve(s, this.globalPropertyState) || (await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(s, this.globalPropertyState));
14131
14130
  }
14132
14131
  async setAspectStorage(t, e, a) {
14133
14132
  if (!this.globalPropertyState)
@@ -14154,13 +14153,13 @@ class Sl {
14154
14153
  storage: e !== null ? e : void 0,
14155
14154
  channel: a
14156
14155
  });
14157
- Se(i, this.globalPropertyState) || (await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(i, this.globalPropertyState));
14156
+ ve(i, this.globalPropertyState) || (await this.updateGlobalPropertyState(), await this.onGlobalPropertyStateChange(i, this.globalPropertyState));
14158
14157
  }
14159
14158
  async updateGlobalPropertyState() {
14160
14159
  if (!this.globalPropertyState)
14161
14160
  throw new Error("Global property state not initialized");
14162
14161
  const t = await v.getShadowGraphqlClient().mutate({
14163
- mutation: Hs,
14162
+ mutation: js,
14164
14163
  variables: {
14165
14164
  id: this.globalPropertyState.id,
14166
14165
  aspects: this.globalPropertyState.aspects.map((e) => {
@@ -14197,13 +14196,13 @@ class Sl {
14197
14196
  }
14198
14197
  });
14199
14198
  if (t.data?.globalPropertyStateUpdate)
14200
- this.globalPropertyState = Ae(t.data.globalPropertyStateUpdate);
14199
+ this.globalPropertyState = ue(t.data.globalPropertyStateUpdate);
14201
14200
  else
14202
14201
  throw new Error("Unable to update global property state");
14203
14202
  }
14204
14203
  async createGlobalPropertyState() {
14205
14204
  const t = await v.getShadowGraphqlClient().mutate({
14206
- mutation: qs,
14205
+ mutation: Hs,
14207
14206
  variables: {
14208
14207
  bundleId: this.bundleId
14209
14208
  },
@@ -14221,7 +14220,7 @@ class Sl {
14221
14220
  }
14222
14221
  class vl {
14223
14222
  constructor(t) {
14224
- this.setState(t);
14223
+ this.setState(t || '{"transactions": []}');
14225
14224
  }
14226
14225
  setState(t) {
14227
14226
  t && (this.state = JSON.parse(t));
@@ -14384,7 +14383,7 @@ class bl {
14384
14383
  }
14385
14384
  const Il = new bl();
14386
14385
  var Bl = /* @__PURE__ */ ((n) => (n.Default = "Default", n.Name = "Name", n.Price = "Price", n))(Bl || {});
14387
- class ir {
14386
+ class sr {
14388
14387
  constructor(t) {
14389
14388
  this.fullFetched = !1, this.collection = t;
14390
14389
  const e = this.collection.productCollectionProducts;
@@ -14436,23 +14435,23 @@ class ir {
14436
14435
  getProducts() {
14437
14436
  if (!this.collection.productCollectionProducts)
14438
14437
  throw new Error("Failed to find products on collection. Ensure you fetch them first!");
14439
- return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new ue(t));
14438
+ return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new he(t));
14440
14439
  }
14441
14440
  /**
14442
14441
  * A list of products in this collections with useful helpers for interacting with them.
14443
14442
  */
14444
14443
  async fetchProducts(t) {
14445
14444
  if (this.fullFetched)
14446
- return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new ue(a));
14445
+ return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new he(a));
14447
14446
  const e = await v.getShadowGraphqlClient().query({
14448
- query: _s,
14447
+ query: Xs,
14449
14448
  variables: {
14450
14449
  id: this.getId(),
14451
14450
  productIds: t
14452
14451
  },
14453
14452
  errorPolicy: "all"
14454
14453
  });
14455
- return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new ue(a));
14454
+ return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new he(a));
14456
14455
  }
14457
14456
  /**
14458
14457
  * Returns a list of collections products matching the associated metafield/tag filters.
@@ -14461,7 +14460,7 @@ class ir {
14461
14460
  */
14462
14461
  async filterProducts(t, e, a, r) {
14463
14462
  const i = await v.getShadowGraphqlClient().query({
14464
- query: Xs,
14463
+ query: Zs,
14465
14464
  errorPolicy: "all",
14466
14465
  variables: {
14467
14466
  id: this.getId(),
@@ -14505,7 +14504,7 @@ class ir {
14505
14504
  };
14506
14505
  }
14507
14506
  const c = new AbortController(), { signal: d } = c, A = v.getShadowGraphqlClient().watchQuery({
14508
- query: Zs,
14507
+ query: to,
14509
14508
  variables: {
14510
14509
  id: this.getId(),
14511
14510
  limit: e,
@@ -14542,7 +14541,7 @@ class ir {
14542
14541
  if (h || p.partial && (!p.data.productCollections || p.data.productCollections.length === 0 || !p.data.productCollections[0].productCollectionProductsFeed?.items || p.data.productCollections[0].productCollectionProductsFeed?.items.length === 0))
14543
14542
  return;
14544
14543
  c.abort(), h = !0, m.unsubscribe();
14545
- const g = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new ue(Et(f))) || [];
14544
+ const g = p.data.productCollections?.[0].productCollectionProductsFeed?.items.filter((f) => !!f.product).map((f) => new he(Et(f))) || [];
14546
14545
  u({
14547
14546
  items: g,
14548
14547
  // Clone items because it could be cached data (immutable)
@@ -14566,7 +14565,7 @@ class ir {
14566
14565
  return this.collection;
14567
14566
  }
14568
14567
  }
14569
- class ue {
14568
+ class he {
14570
14569
  constructor(t) {
14571
14570
  this.product = t.product, this.productResource = t;
14572
14571
  }
@@ -14761,7 +14760,7 @@ class Dl {
14761
14760
  }
14762
14761
  }
14763
14762
  const Fl = w`
14764
- ${ie(!1)}
14763
+ ${se(!1)}
14765
14764
  query GetProductCollections($ids: [String!]!) {
14766
14765
  productCollections(ids: $ids) {
14767
14766
  ...ProductCollectionFields
@@ -14773,7 +14772,7 @@ const Fl = w`
14773
14772
  variables: {
14774
14773
  ids: n
14775
14774
  }
14776
- })).data?.productCollections?.map((e) => new ir(e));
14775
+ })).data?.productCollections?.map((e) => new sr(e));
14777
14776
  class xl {
14778
14777
  constructor() {
14779
14778
  this.listeners = {};
@@ -14886,7 +14885,18 @@ class Ze {
14886
14885
  if (e) {
14887
14886
  e.integrationProductIds || (e.integrationProductIds = []), e.integrationProductIds = [...e.integrationProductIds, t];
14888
14887
  const a = JSON.stringify(e);
14889
- this.bundleStateManager.setState(a);
14888
+ v.getShadowGraphqlClient().mutate({
14889
+ mutation: _a,
14890
+ variables: {
14891
+ id: this.id,
14892
+ bundleStateData: a
14893
+ },
14894
+ context: {
14895
+ bundleOwnerId: this.ownerId
14896
+ }
14897
+ }), this.bundleStateManager.setState(a), this.fireEvent("bundle-integration-products-added", {
14898
+ integrationProductIds: e.integrationProductIds
14899
+ });
14890
14900
  }
14891
14901
  }
14892
14902
  getTemplate() {
@@ -15006,7 +15016,7 @@ class Ze {
15006
15016
  if (i)
15007
15017
  switch (a.type) {
15008
15018
  case L.FileUpload: {
15009
- const s = i, o = await Be([a.value]);
15019
+ const s = i, o = await Pe([a.value]);
15010
15020
  o.length > 0 && await s.selectImage(o[0]);
15011
15021
  const l = a.storage?.colors;
15012
15022
  if (l) {
@@ -15050,7 +15060,7 @@ class Ze {
15050
15060
  return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
15051
15061
  }
15052
15062
  getProductCollection() {
15053
- return this.productCollection ? new ir(this.productCollection) : void 0;
15063
+ return this.productCollection ? new sr(this.productCollection) : void 0;
15054
15064
  }
15055
15065
  async initializeAdditionalRequiredColorChannels(t) {
15056
15066
  for (const e of t.getStepsByType(E.Illustration)) {
@@ -15257,7 +15267,7 @@ class Ze {
15257
15267
  variables: {
15258
15268
  id: this.id,
15259
15269
  details: t,
15260
- type: e || Ee.Owner
15270
+ type: e || be.Owner
15261
15271
  },
15262
15272
  context: {
15263
15273
  bundleOwnerId: this.ownerId
@@ -15467,7 +15477,7 @@ class Ze {
15467
15477
  }
15468
15478
  async updateBundle() {
15469
15479
  if (!(await v.getShadowGraphqlClient().mutate({
15470
- mutation: ao,
15480
+ mutation: _a,
15471
15481
  variables: {
15472
15482
  id: this.id,
15473
15483
  name: this.name,
@@ -15518,7 +15528,7 @@ class Ze {
15518
15528
  });
15519
15529
  }
15520
15530
  checkMandatoryHandlesChanged(t, e) {
15521
- const a = [], r = [], i = [], s = rr(t);
15531
+ const a = [], r = [], i = [], s = ir(t);
15522
15532
  e.forEach((o) => {
15523
15533
  if (o.isMandatory()) {
15524
15534
  const l = o.isMandatoryFulfilled();
@@ -15659,14 +15669,14 @@ class Rl {
15659
15669
  * @returns The nodes contained within the execution.
15660
15670
  */
15661
15671
  getNodes() {
15662
- return this.execution.nodes.map((t) => new he(t));
15672
+ return this.execution.nodes.map((t) => new me(t));
15663
15673
  }
15664
15674
  /**
15665
15675
  * @param type The type of node to return.
15666
15676
  * @returns A list of nodes matching the requested type.
15667
15677
  */
15668
15678
  getNodesByType(t) {
15669
- return this.execution.nodes.filter((e) => e.type === t).map((e) => new he(e));
15679
+ return this.execution.nodes.filter((e) => e.type === t).map((e) => new me(e));
15670
15680
  }
15671
15681
  /**
15672
15682
  * @returns A list of input nodes that exist in this execution.
@@ -15675,7 +15685,7 @@ class Rl {
15675
15685
  return this.execution.nodes.filter(
15676
15686
  (t) => t.type === "StartTerminal"
15677
15687
  /* StartTerminal */
15678
- ).map((t) => new he(t));
15688
+ ).map((t) => new me(t));
15679
15689
  }
15680
15690
  /**
15681
15691
  * @returns A list of out put nodes that exist in this execution.
@@ -15684,7 +15694,7 @@ class Rl {
15684
15694
  return this.execution.nodes.filter(
15685
15695
  (t) => t.type === "EndTerminal"
15686
15696
  /* EndTerminal */
15687
- ).map((t) => new he(t));
15697
+ ).map((t) => new me(t));
15688
15698
  }
15689
15699
  /**
15690
15700
  * @returns A date object representing the point in time this execution completed.
@@ -15701,7 +15711,7 @@ class Rl {
15701
15711
  return new Date(this.execution.failedAt);
15702
15712
  }
15703
15713
  }
15704
- class he {
15714
+ class me {
15705
15715
  constructor(t) {
15706
15716
  this.node = t;
15707
15717
  }
@@ -15736,9 +15746,9 @@ class Sd extends Fa {
15736
15746
  super(`"${t}"`);
15737
15747
  }
15738
15748
  }
15739
- class sr extends Fa {
15749
+ class or extends Fa {
15740
15750
  constructor(t, e) {
15741
- if (e !== "Asset" && !sr.validUUID(t))
15751
+ if (e !== "Asset" && !or.validUUID(t))
15742
15752
  throw new Error("Invalid ID, must be a valid v4 UUID. https://www.uuidgenerator.net/");
15743
15753
  super(`{"isSpiffObject": true, "id": "${t}", "type": "${e}"}`);
15744
15754
  }
@@ -15751,7 +15761,7 @@ class vd extends Fa {
15751
15761
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15752
15762
  }
15753
15763
  }
15754
- class tn {
15764
+ class en {
15755
15765
  constructor(t) {
15756
15766
  this.integrationProduct = t;
15757
15767
  }
@@ -15791,7 +15801,7 @@ class tn {
15791
15801
  return t.sort((e, a) => (e.index ?? 0) - (a.index ?? 0)).map((e) => new qt(e));
15792
15802
  }
15793
15803
  }
15794
- const me = w`
15804
+ const ge = w`
15795
15805
  query GetCustomer($emailAddress: String!) {
15796
15806
  customer(emailAddress: $emailAddress) {
15797
15807
  id
@@ -15935,7 +15945,7 @@ class Vl {
15935
15945
  }
15936
15946
  class zl {
15937
15947
  init(t, e, a) {
15938
- this.cognitoClient = new Er({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
15948
+ this.cognitoClient = new br({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
15939
15949
  }
15940
15950
  async generateCode(t) {
15941
15951
  const e = await this.cognitoClient?.send(
@@ -15951,7 +15961,7 @@ class zl {
15951
15961
  }
15952
15962
  async verifyCode(t, e, a) {
15953
15963
  const r = await this.cognitoClient?.send(
15954
- new br({
15964
+ new Ir({
15955
15965
  ClientId: this.userPoolClientId,
15956
15966
  ChallengeName: "CUSTOM_CHALLENGE",
15957
15967
  Session: this.challengeSession,
@@ -15996,7 +16006,7 @@ class Gl {
15996
16006
  currency: t,
15997
16007
  precision: this.getPrecisionForCurrency(t)
15998
16008
  };
15999
- return Ir(a).toFormat(this.getSpecialFormat(t));
16009
+ return Br(a).toFormat(this.getSpecialFormat(t));
16000
16010
  }
16001
16011
  /**
16002
16012
  * Get the number of decimal places expected in a currency string.
@@ -16018,7 +16028,7 @@ class Gl {
16018
16028
  return "USD0,0";
16019
16029
  }
16020
16030
  }
16021
- const en = new Gl();
16031
+ const an = new Gl();
16022
16032
  class Wl {
16023
16033
  constructor(t, e, a, r) {
16024
16034
  this.presentmentCurrency = void 0, this.presentmentCurrency = r, this.partnerCurrency = a, this.rateFrom = t, this.rateTo = e;
@@ -16050,18 +16060,18 @@ class Wl {
16050
16060
  * Converts a monetary value from the database to the units of its currency.
16051
16061
  */
16052
16062
  units(t, e) {
16053
- return t / Math.pow(10, en.getPrecisionForCurrency(e));
16063
+ return t / Math.pow(10, an.getPrecisionForCurrency(e));
16054
16064
  }
16055
16065
  /**
16056
16066
  * Converts a monetary value in units to the subunits of its currency.
16057
16067
  */
16058
16068
  subunits(t, e) {
16059
- return t * Math.pow(10, en.getPrecisionForCurrency(e));
16069
+ return t * Math.pow(10, an.getPrecisionForCurrency(e));
16060
16070
  }
16061
16071
  }
16062
16072
  const ql = async (n, t) => {
16063
16073
  const e = await v.getShadowGraphqlClient().query({
16064
- query: Li(t?.assets?.metadata || !1),
16074
+ query: Vi(t?.assets?.metadata || !1),
16065
16075
  errorPolicy: "all",
16066
16076
  variables: {
16067
16077
  ids: n
@@ -16086,7 +16096,7 @@ const ql = async (n, t) => {
16086
16096
  if (!a)
16087
16097
  throw new Error(`Workflow not found: ${n}`);
16088
16098
  return a;
16089
- }, or = async (n, t) => {
16099
+ }, lr = async (n, t) => {
16090
16100
  const e = n.map((o) => Kt.get({ id: o, options: t })), a = n.filter((o, l) => e[l] === void 0);
16091
16101
  if (a.length === 0)
16092
16102
  return Promise.all(e);
@@ -16094,7 +16104,7 @@ const ql = async (n, t) => {
16094
16104
  (o) => Kt.set({ id: o, options: t }, Hl(o, r))
16095
16105
  ), s = e.filter((o) => o !== void 0);
16096
16106
  return await Promise.all(s.concat(i));
16097
- }, Ed = async (n, t) => (await or([n], t))[0], jl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
16107
+ }, Ed = async (n, t) => (await lr([n], t))[0], jl = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
16098
16108
  id: M(),
16099
16109
  panelId: t.name,
16100
16110
  name: t.name,
@@ -16118,15 +16128,15 @@ class bd {
16118
16128
  try {
16119
16129
  return v.getShadowGraphqlClient().mutate({
16120
16130
  ...e,
16121
- mutation: Pi
16131
+ mutation: Di
16122
16132
  });
16123
16133
  } catch (a) {
16124
16134
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
16125
16135
  }
16126
- }, this.options = t, this.options.applicationKey && Wr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.3.1-beta.0913bb04-4304-5dae-95b3-20ea61cba9ab"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16136
+ }, this.options = t, this.options.applicationKey && qr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 32.3.1-beta.da81068e-3c11-5316-b4f0-962509faf1fa"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16127
16137
  }
16128
16138
  configure(t) {
16129
- gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && Hr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
16139
+ gt.setHubUrl(t.hubUrl), gt.setServerUrl(t.serverUrl), gt.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, this.userPoolClientId = t.userPoolClientId, this.userPoolRegion = t.userPoolRegion, this.spiffRegion = t.spiffRegion, t.bearerAuthenticationToken && jr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
16130
16140
  }
16131
16141
  /**
16132
16142
  * @returns The asset manager allows for common operations related to assets
@@ -16136,12 +16146,12 @@ class bd {
16136
16146
  return $;
16137
16147
  }
16138
16148
  getFlowService() {
16139
- if (!qr()) throw new Error("Application key required to use Flow Service.");
16149
+ if (!Hr()) throw new Error("Application key required to use Flow Service.");
16140
16150
  return new Ql();
16141
16151
  }
16142
16152
  async getCurrencyContext(t) {
16143
16153
  const a = (await this.getIntegration()).partner.currencyCode, i = await v.getShadowGraphqlClient().query({
16144
- query: Yi,
16154
+ query: Ji,
16145
16155
  errorPolicy: "all",
16146
16156
  fetchPolicy: "cache-first",
16147
16157
  variables: {
@@ -16173,7 +16183,7 @@ class bd {
16173
16183
  */
16174
16184
  async authenticateBundleFromLocalStorage(t) {
16175
16185
  if (k.getMap("bundleOwnerIds")?.has(t))
16176
- return Promise.resolve({ success: !0, stakeholderType: Ee.Owner });
16186
+ return Promise.resolve({ success: !0, stakeholderType: be.Owner });
16177
16187
  const a = k.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
16178
16188
  if (a.has(t)) {
16179
16189
  const r = a.get(t);
@@ -16202,7 +16212,7 @@ class bd {
16202
16212
  */
16203
16213
  async authenticateTransactionFromLocalStorage(t) {
16204
16214
  const e = v.getShadowGraphqlClient(), a = await e.query({
16205
- query: Vi,
16215
+ query: zi,
16206
16216
  errorPolicy: "all",
16207
16217
  fetchPolicy: "no-cache",
16208
16218
  variables: {
@@ -16217,7 +16227,7 @@ class bd {
16217
16227
  if (r.isOrdered)
16218
16228
  return Promise.resolve({ success: !1, transactionReadOnly: !0 });
16219
16229
  if (k.getMap("transactionOwnerIds")?.has(t))
16220
- return Promise.resolve({ success: !0, stakeholderType: Ee.Owner });
16230
+ return Promise.resolve({ success: !0, stakeholderType: be.Owner });
16221
16231
  const o = k.getMap("transactionCustomerIds");
16222
16232
  if (o?.has(t) && o.get(t) && await this.reloadLoggedInCustomer()) {
16223
16233
  const u = this.customer?.bundleStakeholders?.find(
@@ -16232,7 +16242,7 @@ class bd {
16232
16242
  });
16233
16243
  }
16234
16244
  const c = (await e.query({
16235
- query: zi,
16245
+ query: Gi,
16236
16246
  errorPolicy: "all",
16237
16247
  variables: {
16238
16248
  id: r.workflowId
@@ -16255,7 +16265,7 @@ class bd {
16255
16265
  }
16256
16266
  async customerHasBundleTemplates(t) {
16257
16267
  const r = (await v.getShadowGraphqlClient().query({
16258
- query: me,
16268
+ query: ge,
16259
16269
  errorPolicy: "all",
16260
16270
  fetchPolicy: "no-cache",
16261
16271
  variables: {
@@ -16274,7 +16284,7 @@ class bd {
16274
16284
  async getOrCreateCustomer(t) {
16275
16285
  this.customer = void 0;
16276
16286
  const e = v.getShadowGraphqlClient(), r = (await e.query({
16277
- query: me,
16287
+ query: ge,
16278
16288
  errorPolicy: "all",
16279
16289
  fetchPolicy: "no-cache",
16280
16290
  variables: {
@@ -16327,7 +16337,7 @@ class bd {
16327
16337
  return this.logOut(), console.error("Failed to refresh tokens."), !1;
16328
16338
  }
16329
16339
  const o = (await v.getShadowGraphqlClient().query({
16330
- query: me,
16340
+ query: ge,
16331
16341
  errorPolicy: "all",
16332
16342
  fetchPolicy: "no-cache",
16333
16343
  variables: {
@@ -16356,7 +16366,7 @@ class bd {
16356
16366
  if (r?.AuthenticationResult) {
16357
16367
  localStorage.setItem("last-refreshed-cognito-tokens", `${(/* @__PURE__ */ new Date()).getTime() / 1e3}`), localStorage.setItem("cognito-tokens", JSON.stringify(r.AuthenticationResult)), localStorage.setItem("cognito-email", t);
16358
16368
  const s = (await v.getShadowGraphqlClient().query({
16359
- query: me,
16369
+ query: ge,
16360
16370
  errorPolicy: "all",
16361
16371
  fetchPolicy: "no-cache",
16362
16372
  variables: {
@@ -16408,7 +16418,7 @@ class bd {
16408
16418
  */
16409
16419
  async getNewBundle(t, e, a) {
16410
16420
  const i = (await v.getShadowGraphqlClient().mutate({
16411
- mutation: to(a?.graphql?.productCollection?.eagerFetchProducts || !1),
16421
+ mutation: eo(a?.graphql?.productCollection?.eagerFetchProducts || !1),
16412
16422
  variables: {
16413
16423
  collectionId: t,
16414
16424
  initialMetadata: e ? Object.entries(e).map((c, d) => ({ key: c[0], value: c[1] })) : void 0,
@@ -16450,7 +16460,7 @@ class bd {
16450
16460
  ...o,
16451
16461
  ...r?.graphql?.additionalHeaders
16452
16462
  }, c = await v.getShadowGraphqlClient().query({
16453
- query: Js(r?.graphql?.productCollection?.eagerFetchProducts || !1),
16463
+ query: Ks(r?.graphql?.productCollection?.eagerFetchProducts || !1),
16454
16464
  variables: {
16455
16465
  id: t
16456
16466
  },
@@ -16491,7 +16501,7 @@ class bd {
16491
16501
  ...s,
16492
16502
  ...r?.graphql?.additionalHeaders
16493
16503
  }, c = (await v.getShadowGraphqlClient().mutate({
16494
- mutation: eo(r?.graphql?.productCollection?.eagerFetchProducts || !1),
16504
+ mutation: ao(r?.graphql?.productCollection?.eagerFetchProducts || !1),
16495
16505
  variables: {
16496
16506
  id: t,
16497
16507
  template: e,
@@ -16547,7 +16557,7 @@ class bd {
16547
16557
  if (!this.customer)
16548
16558
  throw new Error("Customer not authenticated.");
16549
16559
  const t = await v.getShadowGraphqlClient().query({
16550
- query: Ks,
16560
+ query: _s,
16551
16561
  variables: {
16552
16562
  id: this.customer.id
16553
16563
  },
@@ -16586,7 +16596,7 @@ class bd {
16586
16596
  if (y.length === 0)
16587
16597
  return [];
16588
16598
  const S = y.map((F) => F.option.transactionId), B = await a.query({
16589
- query: Bi,
16599
+ query: Pi,
16590
16600
  variables: {
16591
16601
  ids: S
16592
16602
  },
@@ -16607,7 +16617,7 @@ class bd {
16607
16617
  if (y.length === 0)
16608
16618
  return [];
16609
16619
  const S = await a.mutate({
16610
- mutation: Ii,
16620
+ mutation: Bi,
16611
16621
  variables: {
16612
16622
  inputs: y.map((b) => ({
16613
16623
  integrationProductId: b.option.type === "integration" ? b.option.integrationProductId : void 0,
@@ -16640,13 +16650,13 @@ class bd {
16640
16650
  ...d.map(i)
16641
16651
  ])).flat(), u = [...new Set(A.map((y) => y.workflowId))].filter(
16642
16652
  (y) => y !== void 0
16643
- ), h = u.length > 0 ? await or(u, e) : [], m = new Map(h.map((y) => [y.id, y])), p = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), g = A.map(async (y) => {
16653
+ ), h = u.length > 0 ? await lr(u, e) : [], m = new Map(h.map((y) => [y.id, y])), p = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), g = A.map(async (y) => {
16644
16654
  const { transaction: S, workflowId: B, readOnly: b, index: F } = y, R = B ? m.get(B) : void 0, T = t[F];
16645
16655
  !p.get(S.id) && S.transactionOwnerId && p.set(S.id, S.transactionOwnerId);
16646
16656
  const tt = p.get(S.id) || void 0, et = new Vl({
16647
16657
  onMutate: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } }),
16648
16658
  onQuery: () => ({ context: { transactionOwnerId: tt, bundleOwnerId: e?.bundleOwnerId } })
16649
- }), W = {
16659
+ }), z = {
16650
16660
  workflow: R,
16651
16661
  transaction: S,
16652
16662
  layouts: [],
@@ -16661,20 +16671,25 @@ class bd {
16661
16671
  readOnly: b,
16662
16672
  isReloadedTransaction: T.type === "transaction"
16663
16673
  };
16664
- if (T.type === "transaction" && S.workflowState) {
16674
+ if (T.type === "blank")
16675
+ z.layouts = [];
16676
+ else if (T.type === "transaction" && S.workflowState) {
16665
16677
  const q = JSON.parse(S.workflowState);
16666
- W.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), W.reloadedState = q;
16678
+ z.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), z.reloadedState = q;
16667
16679
  } else if (!b && T.workflowState) {
16668
16680
  const q = JSON.parse(T.workflowState);
16669
- W.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), W.reloadedState = q;
16670
- } else
16671
- W.layouts = Yl(
16672
- W.transaction,
16673
- W.workflow
16681
+ z.layouts = Object.values(q.layouts || {}).map((wt) => wt.layout), await qa(q), z.reloadedState = q;
16682
+ } else {
16683
+ if (!z.workflow)
16684
+ throw new Error("Attempted to load workflow panels without a workflow!");
16685
+ z.layouts = Yl(
16686
+ z.transaction,
16687
+ z.workflow
16674
16688
  );
16675
- return W.renderableContextService = new cl(
16676
- W.layouts
16677
- ), W.delayWorkflowStateSync = !0, { experienceOptions: W, index: F, options: T };
16689
+ }
16690
+ return z.renderableContextService = new cl(
16691
+ z.layouts
16692
+ ), z.delayWorkflowStateSync = !0, { experienceOptions: z, index: F, options: T };
16678
16693
  }), f = await Promise.all(g);
16679
16694
  k.setMap("transactionOwnerIds", p);
16680
16695
  const I = f.sort((y, S) => y.index - S.index).map(async (y) => {
@@ -16689,7 +16704,7 @@ class bd {
16689
16704
  }
16690
16705
  async getIntegrationProductById(t, e) {
16691
16706
  const i = (await v.getShadowGraphqlClient().query({
16692
- query: Mi(e),
16707
+ query: Ti(e),
16693
16708
  variables: {
16694
16709
  ids: [t]
16695
16710
  },
@@ -16698,11 +16713,11 @@ class bd {
16698
16713
  })).data?.integrationProducts;
16699
16714
  if (!i || i.length === 0 || !i[0]?.id)
16700
16715
  throw new Error("Integration product not found.");
16701
- return new tn(i[0]);
16716
+ return new en(i[0]);
16702
16717
  }
16703
16718
  async getIntegrationProductFromExternalIds(t, e, a) {
16704
16719
  const s = (await v.getShadowGraphqlClient().query({
16705
- query: Ti(a),
16720
+ query: Ni(a),
16706
16721
  variables: {
16707
16722
  externalProductId: e,
16708
16723
  externalIntegrationId: t
@@ -16712,14 +16727,14 @@ class bd {
16712
16727
  })).data?.integrationProductFromExternalIds;
16713
16728
  if (!s?.id)
16714
16729
  throw new Error("Integration product not found.");
16715
- return new tn(s);
16730
+ return new en(s);
16716
16731
  }
16717
16732
  async getIntegrationProduct(t) {
16718
16733
  return t.type === "integration" ? this.getIntegrationProductById(t.integrationProductId) : this.getIntegrationProductFromExternalIds(t.externalIntegrationId, t.externalProductId);
16719
16734
  }
16720
16735
  async getShareActionsForTransaction(t) {
16721
16736
  const a = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, r = await v.getShadowGraphqlClient().query({
16722
- query: ki,
16737
+ query: Mi,
16723
16738
  errorPolicy: "all",
16724
16739
  fetchPolicy: "no-cache",
16725
16740
  variables: {
@@ -16735,7 +16750,7 @@ class bd {
16735
16750
  }
16736
16751
  async placeOrder(t) {
16737
16752
  const e = await v.getShadowGraphqlClient().mutate({
16738
- mutation: ji,
16753
+ mutation: Yi,
16739
16754
  variables: {
16740
16755
  orderItems: t
16741
16756
  }
@@ -16751,7 +16766,7 @@ class bd {
16751
16766
  }
16752
16767
  }
16753
16768
  const Jl = async (n, t) => (await v.getShadowGraphqlClient().query({
16754
- query: Wi,
16769
+ query: qi,
16755
16770
  errorPolicy: "all",
16756
16771
  fetchPolicy: "no-cache",
16757
16772
  context: {
@@ -16764,7 +16779,7 @@ const Jl = async (n, t) => (await v.getShadowGraphqlClient().query({
16764
16779
  }
16765
16780
  })).data.currentIntegration, Id = async (n) => {
16766
16781
  const e = await v.getShadowGraphqlClient().query({
16767
- query: xi,
16782
+ query: ki,
16768
16783
  errorPolicy: "all",
16769
16784
  fetchPolicy: "network-only",
16770
16785
  variables: {
@@ -16774,20 +16789,20 @@ const Jl = async (n, t) => (await v.getShadowGraphqlClient().query({
16774
16789
  if (e.data.transactions.length !== 0)
16775
16790
  return e.data.transactions[0];
16776
16791
  }, Bd = async (n, t) => (await v.getShadowGraphqlClient().query({
16777
- query: Gi,
16792
+ query: Wi,
16778
16793
  errorPolicy: "all",
16779
16794
  variables: {
16780
16795
  themeConfigurationId: n,
16781
16796
  themeInstallId: t
16782
16797
  }
16783
16798
  })).data?.marketplaceThemeInstallConfiguration, Pd = async (n) => (await v.getShadowGraphqlClient().query({
16784
- query: Hi,
16799
+ query: ji,
16785
16800
  errorPolicy: "all",
16786
16801
  variables: {
16787
16802
  id: n
16788
16803
  }
16789
16804
  })).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, Dd = async (n) => (await v.getShadowGraphqlClient().query({
16790
- query: qi,
16805
+ query: Hi,
16791
16806
  errorPolicy: "all",
16792
16807
  variables: {
16793
16808
  id: n
@@ -16810,17 +16825,17 @@ function Kl(n, t, e, a) {
16810
16825
  const o = n, l = Math.max(t.width / e.width, t.height / e.height);
16811
16826
  o.zoom = Math.max(l, n.zoom);
16812
16827
  const c = e.width * o.zoom, d = e.height * o.zoom;
16813
- return o.x = ge(n.x, t.width - c, 0), o.y = ge(n.y, t.height - d, 0), o;
16828
+ return o.x = pe(n.x, t.width - c, 0), o.y = pe(n.y, t.height - d, 0), o;
16814
16829
  }
16815
16830
  const s = n;
16816
- return s.x = ge(s.x, -r, t.width), s.y = ge(s.y, -i, t.height), s;
16831
+ return s.x = pe(s.x, -r, t.width), s.y = pe(s.y, -i, t.height), s;
16817
16832
  }
16818
- function ge(n, t, e) {
16833
+ function pe(n, t, e) {
16819
16834
  return Math.min(Math.max(n, t), e);
16820
16835
  }
16821
16836
  class _l {
16822
16837
  constructor(t, e) {
16823
- this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = un(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
16838
+ this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = hn(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
16824
16839
  useThreshold: !1,
16825
16840
  invertThreshold: !1,
16826
16841
  threshold: 128,
@@ -16841,7 +16856,7 @@ class _l {
16841
16856
  let i = !1;
16842
16857
  for (let s = 0; s < r.currentFrameSources.length; s++) {
16843
16858
  const o = r.currentFrameSources[s], l = await Ue(o), c = this.frameData ? this.frameData[s] : void 0;
16844
- Se(l, c) || (this.frameData || (this.frameData = new Array(r.currentFrameSources.length)), this.frameData[s] = l, i = !0);
16859
+ ve(l, c) || (this.frameData || (this.frameData = new Array(r.currentFrameSources.length)), this.frameData[s] = l, i = !0);
16845
16860
  }
16846
16861
  i && (this.onFrameDataChangeListeners.forEach(
16847
16862
  (s) => s(this.frameData)
@@ -17003,8 +17018,8 @@ class _l {
17003
17018
  this.targetElements.forEach((o, l) => {
17004
17019
  s(
17005
17020
  new O([
17006
- new ws(o, e, t[l]),
17007
- new ys(
17021
+ new ys(o, e, t[l]),
17022
+ new Ss(
17008
17023
  o,
17009
17024
  r.useThreshold,
17010
17025
  r.invertThreshold,
@@ -17614,7 +17629,7 @@ const tc = w`
17614
17629
  console.error("vite-plugin-css-injected-by-js", t);
17615
17630
  }
17616
17631
  })();
17617
- var lc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(lc || {}), we = /* @__PURE__ */ ((n) => (n.Email = "Email", n.FirstName = "FirstName", n.LastName = "LastName", n.Phone = "Phone", n.Apartment = "Apartment", n.City = "City", n.Country = "Country", n.OrganizationName = "OrganizationName", n.PostCode = "PostCode", n.State = "State", n.StreetAddress = "StreetAddress", n.Custom = "Custom", n))(we || {}), K;
17632
+ var lc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(lc || {}), ye = /* @__PURE__ */ ((n) => (n.Email = "Email", n.FirstName = "FirstName", n.LastName = "LastName", n.Phone = "Phone", n.Apartment = "Apartment", n.City = "City", n.Country = "Country", n.OrganizationName = "OrganizationName", n.PostCode = "PostCode", n.State = "State", n.StreetAddress = "StreetAddress", n.Custom = "Custom", n))(ye || {}), K;
17618
17633
  K = { __e: function(n, t, e, a) {
17619
17634
  for (var r, i, s; t = t.__; )
17620
17635
  if ((r = t.__c) && !r.__)
@@ -17626,34 +17641,34 @@ K = { __e: function(n, t, e, a) {
17626
17641
  }
17627
17642
  throw n;
17628
17643
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
17629
- var st, ta, an, lr = [], ea = [], nn = K.__b, rn = K.__r, sn = K.diffed, on = K.__c, ln = K.unmount;
17644
+ var st, ta, nn, cr = [], ea = [], rn = K.__b, sn = K.__r, on = K.diffed, ln = K.__c, cn = K.unmount;
17630
17645
  function cc() {
17631
- for (var n; n = lr.shift(); )
17646
+ for (var n; n = cr.shift(); )
17632
17647
  if (n.__P && n.__H)
17633
17648
  try {
17634
- n.__H.__h.forEach(ye), n.__H.__h.forEach(ha), n.__H.__h = [];
17649
+ n.__H.__h.forEach(Se), n.__H.__h.forEach(ha), n.__H.__h = [];
17635
17650
  } catch (t) {
17636
17651
  n.__H.__h = [], K.__e(t, n.__v);
17637
17652
  }
17638
17653
  }
17639
17654
  K.__b = function(n) {
17640
- st = null, nn && nn(n);
17655
+ st = null, rn && rn(n);
17641
17656
  }, K.__r = function(n) {
17642
- rn && rn(n);
17657
+ sn && sn(n);
17643
17658
  var t = (st = n.__c).__H;
17644
17659
  t && (ta === st ? (t.__h = [], st.__h = [], t.__.forEach(function(e) {
17645
17660
  e.__N && (e.__ = e.__N), e.__V = ea, e.__N = e.i = void 0;
17646
- })) : (t.__h.forEach(ye), t.__h.forEach(ha), t.__h = [])), ta = st;
17661
+ })) : (t.__h.forEach(Se), t.__h.forEach(ha), t.__h = [])), ta = st;
17647
17662
  }, K.diffed = function(n) {
17648
- sn && sn(n);
17663
+ on && on(n);
17649
17664
  var t = n.__c;
17650
- t && t.__H && (t.__H.__h.length && (lr.push(t) !== 1 && an === K.requestAnimationFrame || ((an = K.requestAnimationFrame) || dc)(cc)), t.__H.__.forEach(function(e) {
17665
+ t && t.__H && (t.__H.__h.length && (cr.push(t) !== 1 && nn === K.requestAnimationFrame || ((nn = K.requestAnimationFrame) || dc)(cc)), t.__H.__.forEach(function(e) {
17651
17666
  e.i && (e.__H = e.i), e.__V !== ea && (e.__ = e.__V), e.i = void 0, e.__V = ea;
17652
17667
  })), ta = st = null;
17653
17668
  }, K.__c = function(n, t) {
17654
17669
  t.some(function(e) {
17655
17670
  try {
17656
- e.__h.forEach(ye), e.__h = e.__h.filter(function(a) {
17671
+ e.__h.forEach(Se), e.__h = e.__h.filter(function(a) {
17657
17672
  return !a.__ || ha(a);
17658
17673
  });
17659
17674
  } catch (a) {
@@ -17661,26 +17676,26 @@ K.__b = function(n) {
17661
17676
  r.__h && (r.__h = []);
17662
17677
  }), t = [], K.__e(a, e.__v);
17663
17678
  }
17664
- }), on && on(n, t);
17679
+ }), ln && ln(n, t);
17665
17680
  }, K.unmount = function(n) {
17666
- ln && ln(n);
17681
+ cn && cn(n);
17667
17682
  var t, e = n.__c;
17668
17683
  e && e.__H && (e.__H.__.forEach(function(a) {
17669
17684
  try {
17670
- ye(a);
17685
+ Se(a);
17671
17686
  } catch (r) {
17672
17687
  t = r;
17673
17688
  }
17674
17689
  }), e.__H = void 0, t && K.__e(t, e.__v));
17675
17690
  };
17676
- var cn = typeof requestAnimationFrame == "function";
17691
+ var dn = typeof requestAnimationFrame == "function";
17677
17692
  function dc(n) {
17678
17693
  var t, e = function() {
17679
- clearTimeout(a), cn && cancelAnimationFrame(t), setTimeout(n);
17694
+ clearTimeout(a), dn && cancelAnimationFrame(t), setTimeout(n);
17680
17695
  }, a = setTimeout(e, 100);
17681
- cn && (t = requestAnimationFrame(e));
17696
+ dn && (t = requestAnimationFrame(e));
17682
17697
  }
17683
- function ye(n) {
17698
+ function Se(n) {
17684
17699
  var t = st, e = n.__c;
17685
17700
  typeof e == "function" && (n.__c = void 0, e()), st = t;
17686
17701
  }
@@ -17688,7 +17703,7 @@ function ha(n) {
17688
17703
  var t = st;
17689
17704
  n.__c = n.__(), st = t;
17690
17705
  }
17691
- const cr = w`
17706
+ const dr = w`
17692
17707
  fragment AddressValidationResultFields on AddressValidationResult {
17693
17708
  addressComplete
17694
17709
  address {
@@ -17711,7 +17726,7 @@ const cr = w`
17711
17726
  missingComponentTypes
17712
17727
  }
17713
17728
  `, ka = w`
17714
- ${cr}
17729
+ ${dr}
17715
17730
  fragment AddressValidationJobFields on AddressValidationJob {
17716
17731
  id
17717
17732
  entityId
@@ -17740,7 +17755,7 @@ const cr = w`
17740
17755
  }
17741
17756
  }
17742
17757
  `, hc = w`
17743
- ${cr}
17758
+ ${dr}
17744
17759
  mutation ValidateRecipientAddress($id: String!) {
17745
17760
  recipientValidate(id: $id) {
17746
17761
  ...AddressValidationResultFields
@@ -17814,40 +17829,40 @@ const zd = async (n) => {
17814
17829
  variables: {
17815
17830
  id: t
17816
17831
  }
17817
- })).data?.recipientOverrideAddress?.id && (n.getTransaction().addressValidationStatus = hn.Overridden);
17832
+ })).data?.recipientOverrideAddress?.id && (n.getTransaction().addressValidationStatus = mn.Overridden);
17818
17833
  };
17819
17834
  export {
17820
17835
  ga as AddonHandle,
17821
17836
  fc as AddressValidationJobStatus,
17822
17837
  pc as AddressValidationResultConfirmationLevel,
17823
- hn as AddressValidationStatus,
17838
+ mn as AddressValidationStatus,
17824
17839
  vd as ArrayInput,
17825
17840
  L as AspectType,
17826
17841
  bt as AssetNotFoundError,
17827
- ve as AssetType,
17842
+ Ee as AssetType,
17828
17843
  gd as BringForwardCommand,
17829
17844
  md as BringToBackCommand,
17830
17845
  hd as BringToFrontCommand,
17831
- Dr as BundleDesignCreationCartAddMode,
17846
+ Fr as BundleDesignCreationCartAddMode,
17832
17847
  Q as CanvasCommand,
17833
- ue as CollectionProduct,
17834
- Za as ColorOptionGlobalPropertyHandle,
17835
- ms as CommandContext,
17836
- we as ConversionDataType,
17848
+ he as CollectionProduct,
17849
+ tn as ColorOptionGlobalPropertyHandle,
17850
+ gs as CommandContext,
17851
+ ye as ConversionDataType,
17837
17852
  lc as ConversionLocation,
17838
- z as CreateElementCommand,
17839
- qn as CreateLayoutCommand,
17853
+ G as CreateElementCommand,
17854
+ Hn as CreateLayoutCommand,
17840
17855
  Wl as CurrencyContext,
17841
17856
  Gl as CurrencyService,
17842
17857
  It as DeleteElementCommand,
17843
17858
  No as DigitalContentStepHandle,
17844
17859
  gl as FileUploadGlobalPropertyHandle,
17845
- he as FlowExecutionNodeResult,
17860
+ me as FlowExecutionNodeResult,
17846
17861
  Rl as FlowExecutionResult,
17847
17862
  Ql as FlowService,
17848
- Cs as FontAlignmentCommand,
17849
- ps as FontColorCommand,
17850
- fs as FontSizeCommand,
17863
+ ws as FontAlignmentCommand,
17864
+ fs as FontColorCommand,
17865
+ Cs as FontSizeCommand,
17851
17866
  ja as FontSourceCommand,
17852
17867
  _l as FrameService,
17853
17868
  Xl as FrameStep,
@@ -17857,67 +17872,67 @@ export {
17857
17872
  Bo as IllustrationStepHandle,
17858
17873
  Le as InformationMessageType,
17859
17874
  To as InformationStepHandle,
17860
- tn as IntegrationProduct,
17861
- xr as IntegrationType,
17875
+ en as IntegrationProduct,
17876
+ kr as IntegrationType,
17862
17877
  ld as LayoutElementFactory,
17863
17878
  x as LayoutElementType,
17864
17879
  Y as LayoutNotFoundError,
17865
17880
  jt as LayoutRenderingPurpose,
17866
17881
  Po as MaterialStepHandle,
17867
- Ie as MisconfigurationError,
17882
+ Be as MisconfigurationError,
17868
17883
  xd as MockWorkflowManager,
17869
17884
  Do as ModelStepHandle,
17870
17885
  Qo as ModuleStepHandle,
17871
17886
  cd as MoveCommand,
17872
- sr as ObjectInput,
17887
+ or as ObjectInput,
17873
17888
  Ol as ObjectInputType,
17874
- nr as OptionGlobalPropertyHandle,
17875
- be as OptionNotFoundError,
17889
+ rr as OptionGlobalPropertyHandle,
17890
+ Ie as OptionNotFoundError,
17876
17891
  Dt as ParseError,
17877
17892
  Fo as PictureStepHandle,
17878
- kr as ProductCameraRig,
17879
- ir as ProductCollection,
17893
+ Mr as ProductCameraRig,
17894
+ sr as ProductCollection,
17880
17895
  Bl as ProductCollectionProductSortKey,
17881
17896
  qt as ProductWorkflow,
17882
17897
  Kt as PromiseCache,
17883
- Tn as PromiseQueue,
17898
+ Nn as PromiseQueue,
17884
17899
  xo as QuestionStepHandle,
17885
- Mn as QueueablePromise,
17900
+ Tn as QueueablePromise,
17886
17901
  Ad as ResizeCommand,
17887
17902
  Yt as ResourceNotFoundError,
17888
17903
  dd as RotateCommand,
17889
17904
  H as ScaleAxis,
17890
17905
  pd as SendBackwardsCommand,
17891
17906
  ko as ShapeStepHandle,
17892
- Fr as ShareActionType,
17907
+ xr as ShareActionType,
17893
17908
  bd as SpiffCommerceClient,
17894
- Ee as StakeholderType,
17895
- Pr as StepAspectType,
17909
+ be as StakeholderType,
17910
+ Dr as StepAspectType,
17896
17911
  Z as StepHandle,
17897
17912
  E as StepType,
17898
17913
  Mt as TextAlgorithm,
17899
- Ss as TextChangeCommand,
17914
+ vs as TextChangeCommand,
17900
17915
  pl as TextGlobalPropertyHandle,
17901
17916
  Sd as TextInput,
17902
17917
  Mo as TextStepHandle,
17903
17918
  Dl as Transform,
17904
17919
  Pl as TransformCollection,
17905
17920
  N as UnhandledBehaviorError,
17906
- Mr as UnitOfMeasurement,
17921
+ Tr as UnitOfMeasurement,
17907
17922
  ud as UpdateImageSourceCommand,
17908
17923
  it as Variant,
17909
17924
  Yo as WorkflowExperienceEventType,
17910
17925
  Jo as WorkflowExperienceImpl,
17911
17926
  $ as assetService,
17912
- ri as browserColorToHex,
17927
+ ii as browserColorToHex,
17913
17928
  sd as cmPerPixel,
17914
17929
  Vo as createDesign,
17915
17930
  nd as currentDirection,
17916
17931
  qc as dataUrlFromExternalUrl,
17917
17932
  Fd as deleteBundle,
17918
17933
  Xe as designService,
17919
- Ce as determineCorrectFontSizeAndLines,
17920
- jn as digitalContentStepService,
17934
+ we as determineCorrectFontSizeAndLines,
17935
+ Yn as digitalContentStepService,
17921
17936
  dt as domParser,
17922
17937
  Td as duplicateBundle,
17923
17938
  Nd as duplicateTransaction,
@@ -17932,7 +17947,7 @@ export {
17932
17947
  ot as generateSVGWithUnknownColors,
17933
17948
  wd as generateStateFromDesignInputSteps,
17934
17949
  Gd as getAddressValidationJobs,
17935
- Re as getAttributesFromArrayBuffer,
17950
+ Oe as getAttributesFromArrayBuffer,
17936
17951
  Jc as getAxisAlignedBoundingBox,
17937
17952
  Kl as getBoundedOffsets,
17938
17953
  Pd as getBundleThemeConfiguration,
@@ -17959,18 +17974,18 @@ export {
17959
17974
  $d as getUnorderedTransactions,
17960
17975
  zd as getValidationJobsForWorkflowExperiences,
17961
17976
  Ed as getWorkflow,
17962
- or as getWorkflows,
17977
+ lr as getWorkflows,
17963
17978
  v as graphQlManager,
17964
- fe as illustrationStepService,
17979
+ Ce as illustrationStepService,
17965
17980
  _c as isCloseToValue,
17966
17981
  Nt as loadFont,
17967
17982
  jc as matchHexToPms,
17968
- Yn as materialStepService,
17983
+ Jn as materialStepService,
17969
17984
  Il as metafieldManager,
17970
17985
  id as mmPerPixel,
17971
- Jn as modelStepService,
17986
+ Kn as modelStepService,
17972
17987
  Sa as modifySVGColors,
17973
- Kn as moduleStepService,
17988
+ _n as moduleStepService,
17974
17989
  kd as nameBundle,
17975
17990
  Md as nameTransaction,
17976
17991
  j as optionService,
@@ -17978,26 +17993,26 @@ export {
17978
17993
  Hd as overrideWorkflowExperienceRecipientAddress,
17979
17994
  ut as patternImageDataCache,
17980
17995
  k as persistenceService,
17981
- _n as pictureStepService,
17996
+ Xn as pictureStepService,
17982
17997
  Hc as pmsToRgb,
17983
- Xn as questionStepService,
17998
+ Zn as questionStepService,
17984
17999
  Wc as registerFetchImplementation,
17985
18000
  Gc as registerWindowImplementation,
17986
18001
  qa as rehydrateSerializedLayout,
17987
- ei as rgbToPms,
17988
- ce as rotateAroundPoint,
18002
+ ai as rgbToPms,
18003
+ de as rotateAroundPoint,
17989
18004
  wa as sanitizeSvgTree,
17990
- Hr as setBearerAuthenticationToken,
17991
- yn as setCanvasModule,
18005
+ jr as setBearerAuthenticationToken,
18006
+ Sn as setCanvasModule,
17992
18007
  zt as shapeStepService,
17993
- Es as shortenUrl,
18008
+ bs as shortenUrl,
17994
18009
  gt as spiffCoreConfiguration,
17995
18010
  Cd as stepAspectValuesToDesignInputSteps,
17996
18011
  La as svgColorValueToDefinition,
17997
- Gn as svgStringDimensions,
18012
+ Wn as svgStringDimensions,
17998
18013
  pa as svgToDataUrl,
17999
- G as textStepService,
18000
- Ts as toast,
18014
+ W as textStepService,
18015
+ Ns as toast,
18001
18016
  Wd as validateWorkflowExperienceRecipient,
18002
18017
  qd as validateWorkflowExperienceRecipients,
18003
18018
  Bt as xmlSerializer