@spiffcommerce/core 33.2.3-beta.f75eeb4e-6b43-54a0-b7d9-4526554ce025 → 33.2.4-beta.81a9e8f7-5b78-5dc9-998f-9c4af81b5d95

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,30 +1,30 @@
1
- import { createHttpLink as ur, ApolloClient as hr, InMemoryCache as mr, from as gr, gql as C } from "@apollo/client/core";
2
- import { setContext as pr } from "@apollo/client/link/context";
3
- import { onError as fr } from "@apollo/client/link/error";
4
- import { renderToStaticMarkup as Cr } from "preact-render-to-string";
5
- import { removeTypenameFromVariables as wr } from "@apollo/client/link/remove-typename";
6
- import { orientation as yr } from "exifr/dist/mini.umd.cjs";
1
+ import { createHttpLink as hr, ApolloClient as mr, InMemoryCache as gr, from as pr, gql as C } from "@apollo/client/core";
2
+ import { setContext as fr } from "@apollo/client/link/context";
3
+ import { onError as Cr } from "@apollo/client/link/error";
4
+ import { renderToStaticMarkup as wr } from "preact-render-to-string";
5
+ import { removeTypenameFromVariables as yr } from "@apollo/client/link/remove-typename";
6
+ import { orientation as Sr } from "exifr/dist/mini.umd.cjs";
7
7
  import { parse as An } from "css";
8
- import Sr from "fuse.js";
8
+ import vr from "fuse.js";
9
9
  import { Pith as ma } from "pith";
10
10
  import vt from "lodash.clonedeep";
11
11
  import Ht from "lodash.isequal";
12
12
  import { jsx as D, jsxs as ct, Fragment as zt } from "preact/jsx-runtime";
13
13
  import { parse as aa } from "opentype.js";
14
- import vr from "handlebars";
15
- import { dataUriToBuffer as Er } from "data-uri-to-buffer";
14
+ import Er from "handlebars";
15
+ import { dataUriToBuffer as br } from "data-uri-to-buffer";
16
16
  import { toString as un } from "qrcode";
17
17
  import { split as na } from "unicode-default-word-boundary";
18
- import br from "svg-path-bbox";
18
+ import Ir from "svg-path-bbox";
19
19
  import Ma from "lodash.chunk";
20
- import { CognitoIdentityProviderClient as Ir, InitiateAuthCommand as Ta, RespondToAuthChallengeCommand as Br } from "@aws-sdk/client-cognito-identity-provider";
21
- import Pr from "dinero.js";
20
+ import { CognitoIdentityProviderClient as Br, InitiateAuthCommand as Ta, RespondToAuthChallengeCommand as Pr } from "@aws-sdk/client-cognito-identity-provider";
21
+ import Dr from "dinero.js";
22
22
  import * as Na from "currency-codes";
23
23
  import hn from "lodash.debounce";
24
24
  import "fs";
25
25
  import "path";
26
- import Dr 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 || {}), mn = /* @__PURE__ */ ((n) => (n.AND = "AND", n.OR = "OR", n))(mn || {}), 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 || {}), Fr = /* @__PURE__ */ ((n) => (n.Color = "Color", n.Colors = "Colors", n.Selection = "Selection", n.Selections = "Selections", n.Text = "Text", n.Upload = "Upload", n))(Fr || {}), 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 || {}), xr = /* @__PURE__ */ ((n) => (n.Default = "Default", n.FirstTransaction = "FirstTransaction", n.OneToOne = "OneToOne", n))(xr || {}), gn = /* @__PURE__ */ ((n) => (n.Pending = "Pending", n.Failed = "Failed", n.Validated = "Validated", n.Overridden = "Overridden", n))(gn || {}), kr = /* @__PURE__ */ ((n) => (n.Hyperlink = "Hyperlink", n.Edit = "Edit", n.Approve = "Approve", n))(kr || {}), Mr = /* @__PURE__ */ ((n) => (n.Hub = "Hub", n.Shopify = "Shopify", n))(Mr || {}), ga = /* @__PURE__ */ ((n) => (n.BackgroundRemover = "BackgroundRemover", n.ConversionAccelerator = "Conversion Accelerator", n.ProcessBuilder = "ProcessBuilder", n))(ga || {}), Tr = /* @__PURE__ */ ((n) => (n[n.Orbit = 0] = "Orbit", n[n.Pan = 1] = "Pan", n))(Tr || {}), Ee = /* @__PURE__ */ ((n) => (n.Owner = "Owner", n.Approver = "Approver", n.Editor = "Editor", n.Viewer = "Viewer", n))(Ee || {}), xt = /* @__PURE__ */ ((n) => (n.Autosize = "Autosize", n.Traditional = "Traditional", n))(xt || {}), W = /* @__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))(W || {}), Nr = /* @__PURE__ */ ((n) => (n.Pixel = "px", n.Millimeter = "mm", n.Centimeter = "cm", n))(Nr || {});
26
+ import Fr 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 || {}), mn = /* @__PURE__ */ ((n) => (n.AND = "AND", n.OR = "OR", n))(mn || {}), 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 || {}), xr = /* @__PURE__ */ ((n) => (n.Color = "Color", n.Colors = "Colors", n.Selection = "Selection", n.Selections = "Selections", n.Text = "Text", n.Upload = "Upload", n))(xr || {}), 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 || {}), kr = /* @__PURE__ */ ((n) => (n.Default = "Default", n.FirstTransaction = "FirstTransaction", n.OneToOne = "OneToOne", n))(kr || {}), gn = /* @__PURE__ */ ((n) => (n.Pending = "Pending", n.Failed = "Failed", n.Validated = "Validated", n.Overridden = "Overridden", n))(gn || {}), Mr = /* @__PURE__ */ ((n) => (n.Hyperlink = "Hyperlink", n.Edit = "Edit", n.Approve = "Approve", n))(Mr || {}), Tr = /* @__PURE__ */ ((n) => (n.Hub = "Hub", n.Shopify = "Shopify", n))(Tr || {}), ga = /* @__PURE__ */ ((n) => (n.BackgroundRemover = "BackgroundRemover", n.ConversionAccelerator = "Conversion Accelerator", n.ProcessBuilder = "ProcessBuilder", n))(ga || {}), Nr = /* @__PURE__ */ ((n) => (n[n.Orbit = 0] = "Orbit", n[n.Pan = 1] = "Pan", n))(Nr || {}), Ee = /* @__PURE__ */ ((n) => (n.Owner = "Owner", n.Approver = "Approver", n.Editor = "Editor", n.Viewer = "Viewer", n))(Ee || {}), xt = /* @__PURE__ */ ((n) => (n.Autosize = "Autosize", n.Traditional = "Traditional", n))(xt || {}), W = /* @__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))(W || {}), Qr = /* @__PURE__ */ ((n) => (n.Pixel = "px", n.Millimeter = "mm", n.Centimeter = "cm", n))(Qr || {});
28
28
  class pn extends Error {
29
29
  constructor(t) {
30
30
  super(t), this.name = this.constructor.name;
@@ -85,7 +85,7 @@ class Te extends Me {
85
85
  super(`Resource Generation Failed: ${t}`);
86
86
  }
87
87
  }
88
- class Qr {
88
+ class Rr {
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 Rr = () => {
131
+ const Or = () => {
132
132
  try {
133
- return localStorage ? new Qr() : new Qa();
133
+ return localStorage ? new Rr() : 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 = Rr();
138
- class Or {
137
+ }, k = Or();
138
+ class $r {
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,12 +161,12 @@ class Or {
161
161
  this.serverUrlCallbacks.push(t);
162
162
  }
163
163
  }
164
- const gt = new Or();
164
+ const gt = new $r();
165
165
  let ra, ia;
166
- function Hc(n) {
166
+ function jc(n) {
167
167
  ra = n;
168
168
  }
169
- function jc(n) {
169
+ function Yc(n) {
170
170
  ia = n;
171
171
  }
172
172
  function Zt() {
@@ -192,12 +192,12 @@ const fn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
192
192
  return fn.set(n, r.headers?.get("content-type") || ""), await r.arrayBuffer();
193
193
  })();
194
194
  return Ra.set(n, a), a;
195
- }, $r = async (n) => {
195
+ }, Ur = async (n) => {
196
196
  const t = Oa.get(n);
197
197
  if (t) return t;
198
198
  const a = (async () => await (await nt(n)).text())();
199
199
  return Oa.set(n, a), a;
200
- }, kt = (n) => n.every((t) => t !== "undefined"), oe = (n) => kt([typeof document]) ? document.createElement(n) : Zt().document.createElement(n), Ur = (n, t) => {
200
+ }, kt = (n) => n.every((t) => t !== "undefined"), oe = (n) => kt([typeof document]) ? document.createElement(n) : Zt().document.createElement(n), Lr = (n, t) => {
201
201
  if (kt([typeof document]))
202
202
  return document.createElementNS(n, t);
203
203
  const a = Zt().document.createElement(t);
@@ -207,17 +207,17 @@ const fn = /* @__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
- }, Lr = () => kt([typeof DOMParser]) ? DOMParser : Zt().DOMParser, Ne = (n, t) => new Promise((e, a) => {
210
+ }, Vr = () => kt([typeof DOMParser]) ? DOMParser : Zt().DOMParser, Ne = (n, t) => new Promise((e, a) => {
211
211
  t ? Cn(n).then(e).catch(a) : nt(n).then((r) => {
212
212
  r.arrayBuffer().then(e).catch(a);
213
213
  }).catch((r) => {
214
214
  a(r);
215
215
  });
216
216
  }), at = (n, t) => new Promise((e, a) => {
217
- t ? $r(n).then(e).catch(a) : nt(n).then((r) => {
217
+ t ? Ur(n).then(e).catch(a) : nt(n).then((r) => {
218
218
  r.text().then(e).catch(a);
219
219
  }).catch(a);
220
- }), wn = (n) => Cr(n), Ve = /* @__PURE__ */ new Map(), Vr = async (n, t) => {
220
+ }), wn = (n) => wr(n), Ve = /* @__PURE__ */ new Map(), zr = async (n, t) => {
221
221
  if (kt([typeof FontFace])) {
222
222
  if (Ve.has(t))
223
223
  return Ve.get(t);
@@ -257,17 +257,17 @@ const fn = /* @__PURE__ */ new Map(), Ra = /* @__PURE__ */ new Map(), Oa = /* @_
257
257
  }
258
258
  const e = t();
259
259
  return e || "image/svg+xml";
260
- }, Yc = async (n) => {
260
+ }, Jc = async (n) => {
261
261
  const t = await Cn(n), e = fn.get(n) || Qe(t);
262
- return await Wr(new Blob([t], { type: e }));
263
- }, zr = (n) => {
262
+ return await qr(new Blob([t], { type: e }));
263
+ }, Gr = (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
- }, Gr = async (n) => {
270
- const t = Qe(n), e = new Uint8Array(n), a = zr(e), r = btoa(a);
269
+ }, Wr = async (n) => {
270
+ const t = Qe(n), e = new Uint8Array(n), a = Gr(e), r = btoa(a);
271
271
  return `data:${t};base64,${r}`;
272
272
  }, pa = (n) => `data:image/svg+xml;base64,${btoa(n)}`, yn = (n) => {
273
273
  const t = n.replace(/\r?\n/g, ""), e = t.indexOf(",");
@@ -281,39 +281,39 @@ const fn = /* @__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
- }, Wr = (n) => new Promise((t, e) => {
284
+ }, qr = (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 qr, fa;
292
- const Hr = (n) => {
291
+ let Hr, fa;
292
+ const jr = (n) => {
293
293
  fa = n;
294
- }, jr = () => fa;
294
+ }, Yr = () => fa;
295
295
  let Sn;
296
- const Yr = (n) => {
296
+ const Jr = (n) => {
297
297
  Sn = n;
298
- }, Jr = () => new Promise((n) => {
298
+ }, Kr = () => 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
- }), Kr = async () => {
303
+ }), _r = async () => {
304
304
  const n = {
305
305
  applicationKey: fa,
306
- customerToken: qr,
306
+ customerToken: Hr,
307
307
  bearer: Sn
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 Kr(), ...n } : n;
310
310
  };
311
- async function _r(n, t) {
311
+ async function Xr(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 nt(n, { ...t, redirect: "manual" });
314
314
  return r.type === "opaqueredirect" && (typeof n != "string" && "url" in n ? r = await nt({ ...n, url: `${a}/graphql` }, t) : r = await nt(`${a}/graphql`, t)), r;
315
315
  }
316
- class Xr {
316
+ class Zr {
317
317
  constructor() {
318
318
  this.shadowGraphqlClient = this.constructShadowGraphqlClient(), gt.addServerUrlCallback(() => {
319
319
  this.shadowGraphqlClient = this.constructShadowGraphqlClient();
@@ -326,11 +326,11 @@ class Xr {
326
326
  return this.shadowGraphqlClient;
327
327
  }
328
328
  constructShadowGraphqlClient() {
329
- const t = ur({
329
+ const t = hr({
330
330
  uri: `${gt.getServerUrl()}/graphql`,
331
- fetch: _r
332
- }), e = pr(async (i, s) => {
333
- const { headers: o } = s, l = o || {}, c = await Kr();
331
+ fetch: Xr
332
+ }), e = fr(async (i, s) => {
333
+ const { headers: o } = s, l = o || {}, c = await _r();
334
334
  let d = s.bearer ?? c.bearer;
335
335
  if (this.spiffClient)
336
336
  try {
@@ -353,18 +353,18 @@ class Xr {
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 = fr(({ operation: i, graphQLErrors: s, networkError: o }) => {
356
+ }), a = Cr(({ 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 = wr();
360
- return new hr({
361
- link: gr([r, a, e, t]),
362
- cache: new mr(),
359
+ }), r = yr();
360
+ return new mr({
361
+ link: pr([r, a, e, t]),
362
+ cache: new gr(),
363
363
  name: "Core"
364
364
  });
365
365
  }
366
366
  }
367
- const v = new Xr();
367
+ const v = new Zr();
368
368
  let sa, oa;
369
369
  const pt = (n, t, e) => {
370
370
  if (sa !== void 0)
@@ -409,28 +409,28 @@ function En(n) {
409
409
  }
410
410
  let ze;
411
411
  function Ca() {
412
- return ze === void 0 && (ze = Lr()), ze;
412
+ return ze === void 0 && (ze = Vr()), ze;
413
413
  }
414
414
  let le = null;
415
- const Zr = (n) => new Promise((t) => {
415
+ const ti = (n) => new Promise((t) => {
416
416
  if (Qe(n) !== "image/jpeg")
417
417
  return t(1);
418
- yr(n).then((a) => t(a || 1)).catch(() => t(1));
419
- }), ti = async () => {
418
+ Sr(n).then((a) => t(a || 1)).catch(() => t(1));
419
+ }), ei = async () => {
420
420
  if (le !== null)
421
421
  return !le;
422
422
  const t = await te("data:image/jpeg;base64,/9j/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAYAAAAAAAD/2wCEAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAf/AABEIAAIAAwMBEQACEQEDEQH/xABRAAEAAAAAAAAAAAAAAAAAAAAKEAEBAQADAQEAAAAAAAAAAAAGBQQDCAkCBwEBAAAAAAAAAAAAAAAAAAAAABEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8AG8T9NfSMEVMhQvoP3fFiRZ+MTHDifa/95OFSZU5OzRzxkyejv8ciEfhSceSXGjS8eSdLnZc2HDm4M3BxcXwH/9k=");
423
423
  return le = t.width === 2 && t.height === 3, !le;
424
- }, ei = (n) => {
424
+ }, ai = (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
- }, ai = async (n) => {
428
- const t = await Gr(n), e = await te(t), [a, r] = ei(e);
429
- if (!await ti()) {
427
+ }, ni = async (n) => {
428
+ const t = await Wr(n), e = await te(t), [a, r] = ai(e);
429
+ if (!await ei()) {
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 Zr(n), [o, l] = s > 4 ? [r, a] : [a, r], c = pt(o, l), d = c.getContext("2d");
433
+ const s = await ti(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);
@@ -456,7 +456,7 @@ const Zr = (n) => new Promise((t) => {
456
456
  }
457
457
  return d.drawImage(e, 0, 0, o, l), c;
458
458
  }, Re = async (n) => {
459
- const t = await ai(n);
459
+ const t = await ni(n);
460
460
  return Qe(n) === "image/jpeg" ? {
461
461
  dataUrl: t.toDataURL("image/jpeg", 1),
462
462
  height: t.height,
@@ -3155,16 +3155,16 @@ const Zr = (n) => new Promise((t) => {
3155
3155
  parseInt(n.substring(2, 4), 16),
3156
3156
  parseInt(n.substring(4, 6), 16)
3157
3157
  ]);
3158
- function Jc(n) {
3158
+ function Kc(n) {
3159
3159
  const t = Jt.indexOf(n);
3160
3160
  return t >= 0 ? Dt[t] : "";
3161
3161
  }
3162
- function ni(n) {
3162
+ function ri(n) {
3163
3163
  const t = Dt.indexOf(n);
3164
3164
  return t >= 0 ? Jt[t] : "";
3165
3165
  }
3166
- function Kc(n, t = 64) {
3167
- const e = [], a = [], r = ni(n);
3166
+ function _c(n, t = 64) {
3167
+ const e = [], a = [], r = ri(n);
3168
3168
  r && e.push({
3169
3169
  pms: r,
3170
3170
  hex: n,
@@ -3181,12 +3181,12 @@ function Kc(n, t = 64) {
3181
3181
  a[A] <= t && !e.some((u) => u.pms === Jt[A]) && e.push({ pms: Jt[A], hex: Dt[A], distance: a[A] });
3182
3182
  return e.sort((A, u) => A.distance - u.distance);
3183
3183
  }
3184
- const ri = Jt.map((n, t) => ({ pms: n, hex: Dt[t] })), ii = new Sr(ri, { keys: ["pms"] });
3185
- function _c(n, t) {
3186
- return ii.search(n, t ? { limit: t } : void 0);
3184
+ const ii = Jt.map((n, t) => ({ pms: n, hex: Dt[t] })), si = new vr(ii, { keys: ["pms"] });
3185
+ function Xc(n, t) {
3186
+ return si.search(n, t ? { limit: t } : void 0);
3187
3187
  }
3188
3188
  let Nt = null;
3189
- function si(n) {
3189
+ function oi(n) {
3190
3190
  if (n.startsWith("#"))
3191
3191
  return Ua(n);
3192
3192
  if (!document)
@@ -3226,7 +3226,7 @@ const ce = (n) => {
3226
3226
  browserValue: t[0],
3227
3227
  spotColor: { profileName: a[0], namedColor: a[1] }
3228
3228
  };
3229
- }, oi = [
3229
+ }, li = [
3230
3230
  "altGlyph",
3231
3231
  "circle",
3232
3232
  "ellipse",
@@ -3238,9 +3238,9 @@ const ce = (n) => {
3238
3238
  "textPath",
3239
3239
  "tref",
3240
3240
  "tspan"
3241
- ], li = ["fill", "stroke"], Ft = (n, t) => {
3241
+ ], ci = ["fill", "stroke"], Ft = (n, t) => {
3242
3242
  t(n), n.children.length > 0 && Array.from(n.children).forEach((e) => Ft(e, t));
3243
- }, ci = (n, t) => {
3243
+ }, di = (n, t) => {
3244
3244
  try {
3245
3245
  return n.matches(t);
3246
3246
  } catch {
@@ -3271,24 +3271,24 @@ const ce = (n) => {
3271
3271
  const l = o.trim();
3272
3272
  if (l) {
3273
3273
  const [c, d] = l.split(":"), A = c.toLowerCase();
3274
- li.indexOf(A) > -1 ? a.setAttribute(A, d.trim()) : i.push(l);
3274
+ ci.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
  }), Ft(n, (a) => {
3279
3279
  e.forEach((r) => {
3280
3280
  r.selectors?.forEach((i) => {
3281
- ci(a, i) && r.declarations?.forEach((s) => {
3281
+ di(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
- }, di = (n) => {
3287
+ }, Ai = (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
- }, In = (n) => dt().parseFromString(n, "image/svg+xml").firstElementChild, Ai = (n, t, e) => {
3291
+ }, In = (n) => dt().parseFromString(n, "image/svg+xml").firstElementChild, ui = (n, t, e) => {
3292
3292
  n.setAttribute("height", `${e}px`), n.setAttribute("width", `${t}px`);
3293
3293
  }, Bn = (n, t, e) => {
3294
3294
  Ft(n, (a) => {
@@ -3333,23 +3333,23 @@ const ce = (n) => {
3333
3333
  const i = In(n);
3334
3334
  if (!i)
3335
3335
  throw new Error("Failed to read SVG.");
3336
- return Ai(i, t, e), Bn(i, a, r), Pn(i);
3336
+ return ui(i, t, e), Bn(i, a, r), Pn(i);
3337
3337
  }, Sa = (n, t, e) => {
3338
3338
  const a = In(n);
3339
3339
  if (!a)
3340
3340
  throw new Error("Failed to read SVG.");
3341
3341
  return Bn(a, t, e), Pn(a);
3342
- }, ui = (n) => {
3342
+ }, hi = (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 = ui(n).firstElementChild;
3346
+ const e = hi(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
  Ft(e, (s) => {
3352
- oi.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
3352
+ li.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 ce = (n) => {
3366
3366
  colors: a,
3367
3367
  svg: i
3368
3368
  };
3369
- }, hi = C`
3369
+ }, mi = C`
3370
3370
  fragment AssetMetadataFields on Asset {
3371
3371
  metadata {
3372
3372
  key
@@ -3374,7 +3374,7 @@ const ce = (n) => {
3374
3374
  }
3375
3375
  }
3376
3376
  `, ee = (n) => C`
3377
- ${n && hi || ""}
3377
+ ${n && mi || ""}
3378
3378
  fragment AssetFields on Asset {
3379
3379
  name
3380
3380
  key
@@ -3416,7 +3416,7 @@ const ce = (n) => {
3416
3416
  }
3417
3417
  ${n && "...AssetMetadataFields" || ""}
3418
3418
  }
3419
- `, mi = C`
3419
+ `, gi = C`
3420
3420
  ${ee(!1)}
3421
3421
  query GetAssets($keys: [String]!) {
3422
3422
  assets(keys: $keys) {
@@ -3470,14 +3470,14 @@ const ce = (n) => {
3470
3470
  fileLink
3471
3471
  }
3472
3472
  }
3473
- `, gi = C`
3473
+ `, pi = C`
3474
3474
  ${va}
3475
3475
  query GetMaterials($ids: [String]) {
3476
3476
  materials(id: $ids) {
3477
3477
  ...MaterialFields
3478
3478
  }
3479
3479
  }
3480
- `, pi = C`
3480
+ `, fi = C`
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,7 +3491,7 @@ const ce = (n) => {
3491
3491
  }
3492
3492
  }
3493
3493
  }
3494
- `, fi = C`
3494
+ `, Ci = C`
3495
3495
  ${ee(!1)}
3496
3496
  mutation RemoveBackgroundFromAsset($key: String!) {
3497
3497
  assetRemoveBackground(key: $key) {
@@ -3499,20 +3499,20 @@ const ce = (n) => {
3499
3499
  }
3500
3500
  }
3501
3501
  `, Be = async (n) => (await v.getShadowGraphqlClient().query({
3502
- query: mi,
3502
+ query: gi,
3503
3503
  errorPolicy: "all",
3504
3504
  fetchPolicy: "no-cache",
3505
3505
  variables: {
3506
3506
  keys: n
3507
3507
  }
3508
- })).data.assets, Ci = async (n) => (await v.getShadowGraphqlClient().query({
3509
- query: gi,
3508
+ })).data.assets, wi = async (n) => (await v.getShadowGraphqlClient().query({
3509
+ query: pi,
3510
3510
  errorPolicy: "all",
3511
3511
  variables: {
3512
3512
  ids: n
3513
3513
  }
3514
- })).data.materials, wi = async (n, t, e, a, r) => (await v.getShadowGraphqlClient().mutate({
3515
- mutation: pi,
3514
+ })).data.materials, yi = async (n, t, e, a, r) => (await v.getShadowGraphqlClient().mutate({
3515
+ mutation: fi,
3516
3516
  errorPolicy: "all",
3517
3517
  fetchPolicy: "no-cache",
3518
3518
  variables: {
@@ -3523,7 +3523,7 @@ const ce = (n) => {
3523
3523
  temporary: r
3524
3524
  }
3525
3525
  })).data?.assetCreate;
3526
- class yi {
3526
+ class Si {
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
3529
  const e = await t.arrayBuffer(), a = await Re(e), r = (i, s) => {
@@ -3587,7 +3587,7 @@ class yi {
3587
3587
  async getMaterialLocalOrFromServer(t) {
3588
3588
  if (this.materialCache.has(t))
3589
3589
  return this.materialCache.get(t);
3590
- const a = (async () => (await Ci([t]))[0])();
3590
+ const a = (async () => (await wi([t]))[0])();
3591
3591
  return this.materialCache.set(t, a), a;
3592
3592
  }
3593
3593
  /**
@@ -3626,7 +3626,7 @@ class yi {
3626
3626
  }
3627
3627
  const r = (async () => {
3628
3628
  const i = await v.getShadowGraphqlClient().mutate({
3629
- mutation: fi,
3629
+ mutation: Ci,
3630
3630
  fetchPolicy: "no-cache",
3631
3631
  errorPolicy: "all",
3632
3632
  variables: {
@@ -3661,7 +3661,7 @@ class yi {
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 Bt("Failed to read SVG.");
3664
- di(s);
3664
+ Ai(s);
3665
3665
  const l = bt().serializeToString(s);
3666
3666
  return {
3667
3667
  name: t.name,
@@ -3676,7 +3676,7 @@ class yi {
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 wi(t.name, e, i, a, r);
3679
+ const i = t.blob.type ? t.blob.type : this.guessMIME(t.name), s = await yi(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 yi();
3786
- class Si {
3785
+ const $ = new Si();
3786
+ class vi {
3787
3787
  constructor() {
3788
3788
  this.cache = {}, this.disabled = !1;
3789
3789
  }
@@ -3812,7 +3812,7 @@ class Si {
3812
3812
  this.disabled = t;
3813
3813
  }
3814
3814
  }
3815
- const Kt = new Si(), Dn = C`
3815
+ const Kt = new vi(), Dn = C`
3816
3816
  fragment OptionFields on Option {
3817
3817
  id
3818
3818
  name
@@ -3849,7 +3849,7 @@ const Kt = new Si(), Dn = C`
3849
3849
  ...AssetFields
3850
3850
  }
3851
3851
  }
3852
- `, vi = C`
3852
+ `, Ei = C`
3853
3853
  ${ee(!1)}
3854
3854
  ${va}
3855
3855
  ${Dn}
@@ -3858,9 +3858,9 @@ const Kt = new Si(), Dn = C`
3858
3858
  ...OptionFields
3859
3859
  }
3860
3860
  }
3861
- `, Ei = async (n) => {
3861
+ `, bi = async (n) => {
3862
3862
  const t = await v.getShadowGraphqlClient().query({
3863
- query: vi,
3863
+ query: Ei,
3864
3864
  errorPolicy: "all",
3865
3865
  variables: {
3866
3866
  ids: n
@@ -3871,16 +3871,16 @@ const Kt = new Si(), Dn = C`
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
- }, bi = async (n, t) => (await t).find((a) => a.id === n), Ii = async (n) => {
3874
+ }, Ii = 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 = Ei(e), r = e.map(
3879
- (s) => Kt.set({ id: s }, bi(s, a))
3878
+ const a = bi(e), r = e.map(
3879
+ (s) => Kt.set({ id: s }, Ii(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 Pi {
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 Ii([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 q = new Bi(), Fn = C`
3924
+ const q = new Pi(), Fn = C`
3925
3925
  fragment ActiveIntegrationFields on Integration {
3926
3926
  id
3927
3927
  logo
@@ -3958,8 +3958,30 @@ const q = new Bi(), Fn = C`
3958
3958
  preloadImageUrl
3959
3959
  }
3960
3960
  }
3961
- `, Pi = C`
3961
+ `, xn = C`
3962
+ fragment RecipientFields on Recipient {
3963
+ id
3964
+ firstName
3965
+ lastName
3966
+ address
3967
+ suburb
3968
+ state
3969
+ email
3970
+ postalCode
3971
+ country
3972
+ mobile
3973
+ company
3974
+ apartment
3975
+ customField1
3976
+ customField2
3977
+ customField3
3978
+ customField4
3979
+ customField5
3980
+ conversionConfigurationId
3981
+ }
3982
+ `, Di = C`
3962
3983
  ${ae}
3984
+ ${xn}
3963
3985
  mutation CreateTransactions(
3964
3986
  $inputs: [TransactionCreateInput]!
3965
3987
  $marketplaceThemeInstallId: String
@@ -3981,24 +4003,7 @@ const q = new Bi(), Fn = C`
3981
4003
  workflowViewerLink
3982
4004
  workflowViewerReadOnlyLink
3983
4005
  recipient {
3984
- id
3985
- firstName
3986
- lastName
3987
- address
3988
- suburb
3989
- state
3990
- email
3991
- postalCode
3992
- country
3993
- mobile
3994
- company
3995
- apartment
3996
- customField1
3997
- customField2
3998
- customField3
3999
- customField4
4000
- customField5
4001
- conversionConfigurationId
4006
+ ...RecipientFields
4002
4007
  }
4003
4008
  product {
4004
4009
  id
@@ -4069,7 +4074,7 @@ const q = new Bi(), Fn = C`
4069
4074
  }
4070
4075
  }
4071
4076
  }
4072
- `, xn = C`
4077
+ `, kn = C`
4073
4078
  fragment StakeholderFields on Stakeholder {
4074
4079
  id
4075
4080
  type
@@ -4077,7 +4082,7 @@ const q = new Bi(), Fn = C`
4077
4082
  authorizationNote
4078
4083
  authorizationStatus
4079
4084
  }
4080
- `, kn = C`
4085
+ `, Mn = C`
4081
4086
  fragment TransactionShareActionFields on TransactionShareAction {
4082
4087
  id
4083
4088
  title
@@ -4086,11 +4091,12 @@ const q = new Bi(), Fn = C`
4086
4091
  precedence
4087
4092
  url
4088
4093
  }
4089
- `, Di = C`
4094
+ `, Fi = C`
4090
4095
  ${ae}
4091
- ${xn}
4092
4096
  ${kn}
4097
+ ${Mn}
4093
4098
  ${Fn}
4099
+ ${xn}
4094
4100
  query ReadTransactions($ids: [String]!) {
4095
4101
  transactions(ids: $ids) {
4096
4102
  customLogoLink
@@ -4134,24 +4140,7 @@ const q = new Bi(), Fn = C`
4134
4140
  }
4135
4141
  addressValidationStatus
4136
4142
  recipient {
4137
- id
4138
- firstName
4139
- lastName
4140
- address
4141
- suburb
4142
- state
4143
- email
4144
- postalCode
4145
- country
4146
- mobile
4147
- company
4148
- apartment
4149
- customField1
4150
- customField2
4151
- customField3
4152
- customField4
4153
- customField5
4154
- conversionConfigurationId
4143
+ ...RecipientFields
4155
4144
  }
4156
4145
  product {
4157
4146
  id
@@ -4253,25 +4242,25 @@ const q = new Bi(), Fn = C`
4253
4242
  }
4254
4243
  }
4255
4244
  }
4256
- `, Fi = C`
4245
+ `, xi = C`
4257
4246
  mutation UpdateTransactionWorkflowState($id: String!, $workflowState: String!) {
4258
4247
  transactionUpdate(id: $id, workflowState: $workflowState) {
4259
4248
  id
4260
4249
  }
4261
4250
  }
4262
- `, xi = C`
4251
+ `, ki = C`
4263
4252
  mutation UpdateTransactionQuantity($id: String!, $quantity: Int) {
4264
4253
  transactionUpdate(id: $id, quantity: $quantity) {
4265
4254
  id
4266
4255
  }
4267
4256
  }
4268
- `, ki = C`
4257
+ `, Mi = C`
4269
4258
  mutation UpdateTransactionWorkflow($id: String!, $workflowId: String!) {
4270
4259
  transactionUpdate(id: $id, workflowId: $workflowId) {
4271
4260
  id
4272
4261
  }
4273
4262
  }
4274
- `, Mi = C`
4263
+ `, Ti = C`
4275
4264
  query ReadConversionConfigurationQuery($id: String!) {
4276
4265
  conversionConfiguration(id: $id) {
4277
4266
  id
@@ -4289,7 +4278,7 @@ const q = new Bi(), Fn = C`
4289
4278
  mandatory
4290
4279
  }
4291
4280
  }
4292
- `, Ti = C`
4281
+ `, Ni = C`
4293
4282
  query ReadTransactionForDesignCreation($id: String!) {
4294
4283
  transactions(ids: [$id]) {
4295
4284
  id
@@ -4359,8 +4348,8 @@ const q = new Bi(), Fn = C`
4359
4348
  workflowViewerReadOnlyLink
4360
4349
  }
4361
4350
  }
4362
- `, Ni = C`
4363
- ${kn}
4351
+ `, Qi = C`
4352
+ ${Mn}
4364
4353
  query ReadTransactionForShareActions($id: String!) {
4365
4354
  transactions(ids: [$id]) {
4366
4355
  id
@@ -4370,14 +4359,14 @@ const q = new Bi(), Fn = C`
4370
4359
  }
4371
4360
  }
4372
4361
  }
4373
- `, Mn = C`
4362
+ `, Tn = C`
4374
4363
  query ReadWorkflowStates($ids: [String]!) {
4375
4364
  transactions(ids: $ids) {
4376
4365
  id
4377
4366
  workflowState
4378
4367
  }
4379
4368
  }
4380
- `, Tn = (n) => C`
4369
+ `, Nn = (n) => C`
4381
4370
  ${ae}
4382
4371
  fragment IntegrationProductFields on IntegrationProduct {
4383
4372
  id
@@ -4460,15 +4449,15 @@ const q = new Bi(), Fn = C`
4460
4449
  ` : ""}
4461
4450
  }
4462
4451
  }
4463
- `, Qi = (n) => C`
4464
- ${Tn(n)}
4452
+ `, Ri = (n) => C`
4453
+ ${Nn(n)}
4465
4454
  query GetIntegrationProducts($ids: [String!]!) {
4466
4455
  integrationProducts(ids: $ids) {
4467
4456
  ...IntegrationProductFields
4468
4457
  }
4469
4458
  }
4470
- `, Ri = (n) => C`
4471
- ${Tn(n)}
4459
+ `, Oi = (n) => C`
4460
+ ${Nn(n)}
4472
4461
  query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
4473
4462
  integrationProductFromExternalIds(
4474
4463
  externalIntegrationId: $externalIntegrationId
@@ -4477,8 +4466,8 @@ const q = new Bi(), Fn = C`
4477
4466
  ...IntegrationProductFields
4478
4467
  }
4479
4468
  }
4480
- `, Oi = C`
4481
- ${xn}
4469
+ `, $i = C`
4470
+ ${kn}
4482
4471
  query ReadTransactionForStakeholders($id: String!) {
4483
4472
  transactions(ids: [$id]) {
4484
4473
  stakeholders {
@@ -4489,11 +4478,11 @@ const q = new Bi(), Fn = C`
4489
4478
  }
4490
4479
  }
4491
4480
  }
4492
- `, $i = C`
4481
+ `, Ui = C`
4493
4482
  mutation FinalizeUpdateTransaction($transactionId: String!) {
4494
4483
  transactionFinalizeUpdate(transactionId: $transactionId)
4495
4484
  }
4496
- `, Ui = C`
4485
+ `, Li = C`
4497
4486
  fragment RegionFields on Region {
4498
4487
  width
4499
4488
  top
@@ -4511,7 +4500,7 @@ const q = new Bi(), Fn = C`
4511
4500
  height
4512
4501
  }
4513
4502
  }
4514
- `, Li = C`
4503
+ `, Vi = C`
4515
4504
  fragment LookAtAnimationFields on LookAtAnimation {
4516
4505
  latDeg
4517
4506
  lonDeg
@@ -4522,7 +4511,7 @@ const q = new Bi(), Fn = C`
4522
4511
  z
4523
4512
  }
4524
4513
  }
4525
- `, Vi = C`
4514
+ `, zi = C`
4526
4515
  fragment RenderingPipelineConfigurationFields on RenderingPipelineConfiguration {
4527
4516
  antiAliasing {
4528
4517
  samples
@@ -4606,21 +4595,21 @@ const q = new Bi(), Fn = C`
4606
4595
  weight
4607
4596
  }
4608
4597
  }
4609
- `, zi = C`
4598
+ `, Gi = C`
4610
4599
  fragment ModelAnimationFields on ModelAnimation {
4611
4600
  from
4612
4601
  to
4613
4602
  loop
4614
4603
  name
4615
4604
  }
4616
- `, Gi = (n) => C`
4605
+ `, Wi = (n) => C`
4617
4606
  ${ee(n)}
4618
4607
  ${va}
4619
4608
  ${Dn}
4620
- ${Ui}
4621
4609
  ${Li}
4622
4610
  ${Vi}
4623
4611
  ${zi}
4612
+ ${Gi}
4624
4613
  query GetWorkflows($ids: [String!]!) {
4625
4614
  workflows(ids: $ids) {
4626
4615
  partner {
@@ -5015,7 +5004,7 @@ const q = new Bi(), Fn = C`
5015
5004
  }
5016
5005
  }
5017
5006
  }
5018
- `, Wi = C`
5007
+ `, qi = C`
5019
5008
  query GetTransactionForPartner($id: String!) {
5020
5009
  transactions(ids: [$id]) {
5021
5010
  id
@@ -5033,7 +5022,7 @@ const q = new Bi(), Fn = C`
5033
5022
  }
5034
5023
  }
5035
5024
  }
5036
- `, qi = C`
5025
+ `, Hi = C`
5037
5026
  ${ee(!1)}
5038
5027
  query GetWorkflowForTheme($id: String!) {
5039
5028
  workflow(id: $id) {
@@ -5134,14 +5123,14 @@ const q = new Bi(), Fn = C`
5134
5123
  }
5135
5124
  }
5136
5125
  }
5137
- `, Hi = C`
5126
+ `, ji = C`
5138
5127
  ${Oe}
5139
5128
  query GetMarketplaceThemeInstallConfiguration($themeConfigurationId: String!, $themeInstallId: String!) {
5140
5129
  marketplaceThemeInstallConfiguration(id: $themeConfigurationId, themeInstallId: $themeInstallId, raw: false) {
5141
5130
  ...MarketplaceThemeInstallConfigurationFields
5142
5131
  }
5143
5132
  }
5144
- `, ji = C`
5133
+ `, Yi = C`
5145
5134
  ${Fn}
5146
5135
  ${Oe}
5147
5136
  query GetCurrentIntegration($themeConfigurationId: String) {
@@ -5154,7 +5143,7 @@ const q = new Bi(), Fn = C`
5154
5143
  ...ActiveIntegrationFields
5155
5144
  }
5156
5145
  }
5157
- `, Yi = C`
5146
+ `, Ji = C`
5158
5147
  ${Oe}
5159
5148
  query ReadTransactionForMarketplaceTheme($id: String!) {
5160
5149
  transactions(ids: [$id]) {
@@ -5163,7 +5152,7 @@ const q = new Bi(), Fn = C`
5163
5152
  }
5164
5153
  }
5165
5154
  }
5166
- `, Ji = C`
5155
+ `, Ki = C`
5167
5156
  ${Oe}
5168
5157
  query ReadBundleForMarketplaceTheme($id: String!) {
5169
5158
  bundles(ids: [$id]) {
@@ -5172,14 +5161,14 @@ const q = new Bi(), Fn = C`
5172
5161
  }
5173
5162
  }
5174
5163
  }
5175
- `, Ki = C`
5164
+ `, _i = C`
5176
5165
  mutation CreateOrder($orderItems: [OrderItemInput]!) {
5177
5166
  orderCreate(orderItems: $orderItems, paid: false, generateInternalId: true) {
5178
5167
  id
5179
5168
  internalId
5180
5169
  }
5181
5170
  }
5182
- `, _i = C`
5171
+ `, Xi = C`
5183
5172
  query CurrencyConversion($from: String!, $to: String!) {
5184
5173
  currencyConversion(from: $from, to: $to) {
5185
5174
  rateFrom
@@ -5187,7 +5176,7 @@ const q = new Bi(), Fn = C`
5187
5176
  timestamp
5188
5177
  }
5189
5178
  }
5190
- `, Rt = [E.SilentIllustration, E.ProductOverlay], Xi = async (n) => {
5179
+ `, Rt = [E.SilentIllustration, E.ProductOverlay], Zi = async (n) => {
5191
5180
  const t = [];
5192
5181
  n.introduction && t.push({
5193
5182
  name: "Introduction",
@@ -5205,7 +5194,7 @@ const q = new Bi(), Fn = C`
5205
5194
  silentSteps: []
5206
5195
  });
5207
5196
  for (const a of n.steps) {
5208
- const r = Zi(a.stepName, n.stepGroups);
5197
+ const r = ts(a.stepName, n.stepGroups);
5209
5198
  if (!r)
5210
5199
  t.push({
5211
5200
  name: a.stepName,
@@ -5242,7 +5231,7 @@ const q = new Bi(), Fn = C`
5242
5231
  ],
5243
5232
  silentSteps: []
5244
5233
  }), t;
5245
- }, Zi = (n, t) => t.find((e) => e.stepNames.includes(n)), St = (n, t) => (n.conditions || []).every((e) => {
5234
+ }, ts = (n, t) => t.find((e) => e.stepNames.includes(n)), St = (n, t) => (n.conditions || []).every((e) => {
5246
5235
  const a = t[e.targetStepName];
5247
5236
  if (a && a.selectedVariants) {
5248
5237
  const r = a.selectedVariants;
@@ -5251,7 +5240,7 @@ const q = new Bi(), Fn = C`
5251
5240
  );
5252
5241
  }
5253
5242
  return !1;
5254
- }), ts = (n, t) => {
5243
+ }), es = (n, t) => {
5255
5244
  const e = {
5256
5245
  name: n.name,
5257
5246
  title: n.title,
@@ -5259,7 +5248,7 @@ const q = new Bi(), Fn = C`
5259
5248
  silentSteps: n.silentSteps.filter((a) => St(a, t))
5260
5249
  };
5261
5250
  return e.silentSteps.length === 0 && e.renderableSteps.length === 0 ? null : e;
5262
- }, wt = (n, t) => n.map((e) => ts(e, t)).filter((e) => e !== null), es = async (n, t, e = !1) => {
5251
+ }, wt = (n, t) => n.map((e) => es(e, t)).filter((e) => e !== null), as = async (n, t, e = !1) => {
5263
5252
  const a = wt(n, t), r = [];
5264
5253
  for (const s of a)
5265
5254
  for (const o of s.renderableSteps) {
@@ -5275,12 +5264,12 @@ const q = new Bi(), Fn = C`
5275
5264
  );
5276
5265
  return i;
5277
5266
  };
5278
- class Nn {
5267
+ class Qn {
5279
5268
  constructor() {
5280
5269
  this.timestamp = Date.now();
5281
5270
  }
5282
5271
  }
5283
- class Qn {
5272
+ class Rn {
5284
5273
  /**
5285
5274
  * Constructs a new promise queue.
5286
5275
  * @param queueMaxSize An optional maximum size, when the max size is hit.
@@ -5353,7 +5342,7 @@ class Qn {
5353
5342
  const M = () => {
5354
5343
  const n = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
5355
5344
  return n() + n() + "-" + n() + "-" + n() + "-" + n() + "-" + n() + n() + n();
5356
- }, as = ({
5345
+ }, ns = ({
5357
5346
  backgroundColor: n,
5358
5347
  outlineColor: t,
5359
5348
  borderRadius: e,
@@ -5412,7 +5401,7 @@ const M = () => {
5412
5401
  {
5413
5402
  id: "element-group",
5414
5403
  clipPath: a.purpose === jt.FreeDesign ? "url(#viewboxClip)" : void 0,
5415
- children: y.map((S) => Gn(S)).filter((S) => !!S)
5404
+ children: y.map((S) => Wn(S)).filter((S) => !!S)
5416
5405
  }
5417
5406
  ),
5418
5407
  l && /* @__PURE__ */ D(
@@ -5453,7 +5442,7 @@ const M = () => {
5453
5442
  ]
5454
5443
  }
5455
5444
  );
5456
- }, Xc = (n, t, e, a, r) => {
5445
+ }, Zc = (n, t, e, a, r) => {
5457
5446
  const i = ft(r), s = e / 2, o = a / 2, l = n + s, c = t + o, d = Math.sin(i), A = Math.cos(i), u = s, h = s, m = -o, p = o, g = u * A - m * d, f = h * A - p * d, w = u * d + m * A, I = h * d + p * A, P = Math.max(Math.abs(g), Math.abs(f)), y = Math.max(Math.abs(w), Math.abs(I));
5458
5447
  return {
5459
5448
  minX: l - P,
@@ -5461,25 +5450,25 @@ const M = () => {
5461
5450
  minY: c - y,
5462
5451
  maxY: c + y
5463
5452
  };
5464
- }, Zc = (n, t, e) => {
5453
+ }, td = (n, t, e) => {
5465
5454
  const a = Math.sqrt(Math.pow(t.x - n.x, 2) + Math.pow(t.y - n.y, 2)), r = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), i = Math.sqrt(Math.pow(e.x - n.x, 2) + Math.pow(e.y - n.y, 2));
5466
5455
  return Math.acos((r * r + a * a - i * i) / (2 * r * a)) * (180 / Math.PI);
5467
- }, ft = (n) => n * (Math.PI / 180), td = (n, t, e) => Math.abs(n - t) < e, ed = (n, t, e) => {
5456
+ }, ft = (n) => n * (Math.PI / 180), ed = (n, t, e) => Math.abs(n - t) < e, ad = (n, t, e) => {
5468
5457
  const a = Math.sin(ft(e)), r = Math.cos(ft(e));
5469
5458
  return {
5470
5459
  x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
5471
5460
  y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
5472
5461
  };
5473
- }, ad = (n, t) => ({
5462
+ }, nd = (n, t) => ({
5474
5463
  x: (n.x + t.x) / 2,
5475
5464
  y: (n.y + t.y) / 2
5476
- }), nd = (n, t, e, a) => ({
5465
+ }), rd = (n, t, e, a) => ({
5477
5466
  x: n.x + t?.x * e,
5478
5467
  y: n.y + t?.y * a
5479
- }), rd = (n, t, e, a) => ({
5468
+ }), id = (n, t, e, a) => ({
5480
5469
  x: n.x + (t?.x + t?.width) * e,
5481
5470
  y: n.y + t?.y * a
5482
- }), id = (n, t, e, a) => ({
5471
+ }), sd = (n, t, e, a) => ({
5483
5472
  x: n.x + (t?.x + t?.width) * e,
5484
5473
  y: n.y + (t?.y + t?.height) * a
5485
5474
  }), It = (n) => {
@@ -5501,7 +5490,7 @@ const M = () => {
5501
5490
  case W.Southwest:
5502
5491
  return W.Northwest;
5503
5492
  }
5504
- }, sd = (n, t) => t > 45 && t <= 135 ? It(n) : t > 135 && t <= 225 ? It(It(n)) : t > 225 && t <= 315 ? It(It(It(n))) : n, od = (n, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5493
+ }, od = (n, t) => t > 45 && t <= 135 ? It(n) : t > 135 && t <= 225 ? It(It(n)) : t > 225 && t <= 315 ? It(It(It(n))) : n, ld = (n, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
5505
5494
  const a = ft(n.rotation), r = {
5506
5495
  x: t.x + n.x * e.x,
5507
5496
  y: t.x + n.y * e.y
@@ -5531,7 +5520,7 @@ const M = () => {
5531
5520
  x: (n.x - t.x) * r - (n.y - t.y) * a + t.x,
5532
5521
  y: (n.x - t.x) * a + (n.y - t.y) * r + t.y
5533
5522
  };
5534
- }, ld = 0.352778, cd = 0.035277, Rn = (n) => {
5523
+ }, cd = 0.352778, dd = 0.035277, On = (n) => {
5535
5524
  const t = n.rotation || 0, e = ft(t), a = Math.cos(e), r = -Math.sin(e);
5536
5525
  return /* @__PURE__ */ D("g", { mask: n.stepName || n.productOverlay ? void 0 : n.mask, children: /* @__PURE__ */ D(
5537
5526
  "g",
@@ -5553,7 +5542,7 @@ const M = () => {
5553
5542
  )
5554
5543
  }
5555
5544
  ) });
5556
- }, On = (n) => {
5545
+ }, $n = (n) => {
5557
5546
  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);
5558
5547
  return /* @__PURE__ */ ct(zt, { children: [
5559
5548
  /* @__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 }) }) }),
@@ -5579,12 +5568,12 @@ const M = () => {
5579
5568
  height: n.height
5580
5569
  }
5581
5570
  ) : void 0,
5582
- s.map((l) => Gn(l)).filter((l) => !!l).map((l) => /* @__PURE__ */ D("g", { clipPath: `url(#${t})`, children: l }))
5571
+ s.map((l) => Wn(l)).filter((l) => !!l).map((l) => /* @__PURE__ */ D("g", { clipPath: `url(#${t})`, children: l }))
5583
5572
  ]
5584
5573
  }
5585
5574
  )
5586
5575
  ] });
5587
- }, ns = (n) => {
5576
+ }, rs = (n) => {
5588
5577
  const t = `spiff-frame-${n.id}`, e = `spiff-frame-threshold-${n.id}`, a = () => {
5589
5578
  if (!n.pattern)
5590
5579
  return "";
@@ -5658,7 +5647,7 @@ const M = () => {
5658
5647
  matrix(${n.scaleX}, 0, 0, ${n.scaleY}, 0, 0)
5659
5648
  `,
5660
5649
  children: /* @__PURE__ */ D(
5661
- On,
5650
+ $n,
5662
5651
  {
5663
5652
  id: t,
5664
5653
  x: 0,
@@ -5675,8 +5664,8 @@ const M = () => {
5675
5664
  }
5676
5665
  )
5677
5666
  ] });
5678
- }, $n = /* @__PURE__ */ new Map();
5679
- class rs {
5667
+ }, Un = /* @__PURE__ */ new Map();
5668
+ class is {
5680
5669
  constructor(t) {
5681
5670
  this.font = t, this.glyphsFromText = /* @__PURE__ */ new Map(), this.kerningValues = /* @__PURE__ */ new Map(), this.height = this.calculateApproximateHeight();
5682
5671
  }
@@ -5725,35 +5714,35 @@ class rs {
5725
5714
  }), a - r;
5726
5715
  }
5727
5716
  }
5728
- const is = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @__PURE__ */ new Map(), Mt = async (n) => {
5717
+ const ss = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @__PURE__ */ new Map(), Mt = async (n) => {
5729
5718
  if (We.has(n))
5730
5719
  return We.get(n);
5731
5720
  const e = (async () => {
5732
5721
  try {
5733
5722
  return Ct(n).getFont();
5734
5723
  } catch {
5735
- if (is(n)) {
5724
+ if (ss(n)) {
5736
5725
  const a = yn(n), r = aa(a);
5737
5726
  return la(n, r), r;
5738
5727
  } else {
5739
5728
  const a = await Ne(n, !0), r = aa(a);
5740
- return la(n, r), await Vr(r, n), r;
5729
+ return la(n, r), await zr(r, n), r;
5741
5730
  }
5742
5731
  }
5743
5732
  })();
5744
5733
  return We.set(n, e), e;
5745
- }, ss = (n) => {
5734
+ }, os = (n) => {
5746
5735
  const t = yn(n), e = aa(t);
5747
5736
  return la(n, e), e;
5748
5737
  }, Ct = (n) => {
5749
- const t = $n.get(n);
5738
+ const t = Un.get(n);
5750
5739
  if (t)
5751
5740
  return t;
5752
5741
  throw new Error("Font metrics unavailable for font");
5753
5742
  }, la = (n, t) => {
5754
- const e = new rs(t);
5755
- return $n.set(n, e), e;
5756
- }, dd = async (n) => {
5743
+ const e = new is(t);
5744
+ return Un.set(n, e), e;
5745
+ }, Ad = async (n) => {
5757
5746
  const t = dt(), e = t.parseFromString(n, "image/svg+xml"), a = e.firstElementChild, r = /* @__PURE__ */ new Map();
5758
5747
  a.querySelectorAll("style").forEach((d) => {
5759
5748
  An(d.innerHTML).stylesheet?.rules.forEach((u) => {
@@ -5787,9 +5776,9 @@ const is = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5787
5776
  h.appendChild(R);
5788
5777
  }
5789
5778
  return e.querySelectorAll("text").forEach((d) => d.remove()), bt().serializeToString(a);
5790
- }, Pe = (n, t, e, a) => Math.max(ds(n.join(`
5779
+ }, Pe = (n, t, e, a) => Math.max(As(n.join(`
5791
5780
  `), e, a), t), za = (n, t, e, a, r, i) => {
5792
- const s = (i || Vn) * r.getApproximateHeight(), o = t.split(`
5781
+ const s = (i || zn) * r.getApproximateHeight(), o = t.split(`
5793
5782
  `);
5794
5783
  try {
5795
5784
  const l = o.flatMap((d) => fe(d, n.width, a, r)), c = l.flatMap((d) => d.lines);
@@ -5839,10 +5828,10 @@ const is = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5839
5828
  if (l < 0)
5840
5829
  throw new Error(`No max width calculated for text: ${o}.`);
5841
5830
  return { lines: o, width: l };
5842
- }, os = (n, t, e, a, r, i) => {
5843
- const s = (i ?? Vn) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = Un(n, o, t), c = n.length * s * o, d = a / l, A = r / c;
5831
+ }, ls = (n, t, e, a, r, i) => {
5832
+ const s = (i ?? zn) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = Ln(n, o, t), c = n.length * s * o, d = a / l, A = r / c;
5844
5833
  return Math.min(A, d);
5845
- }, ls = (n, t, e, a) => {
5834
+ }, cs = (n, t, e, a) => {
5846
5835
  const r = Ct(t.fontData.assetUrl), i = r.getFont(), s = t.fontSize / i.unitsPerEm;
5847
5836
  if (!e)
5848
5837
  return za(t, n, t.fontSize, s, r, a);
@@ -5861,13 +5850,13 @@ const is = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5861
5850
  lines: o,
5862
5851
  requiredHeight: t.height,
5863
5852
  requiredWidth: Pe(o, t.width, s, r),
5864
- fontSize: os(o, r, i, t.width, t.height, a)
5853
+ fontSize: ls(o, r, i, t.width, t.height, a)
5865
5854
  } : za(t, n, t.fontSize, s, r, a);
5866
- }, cs = (n, t, e, a, r) => {
5855
+ }, ds = (n, t, e, a, r) => {
5867
5856
  const s = Ct(t.assetUrl).getFont();
5868
5857
  let o = { ...n };
5869
- const l = { ...n }, c = Un(a, e / s.unitsPerEm, Ct(t.assetUrl));
5870
- 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 && As(a, a).every(([d, A]) => d === A) && (o = l)), o;
5858
+ const l = { ...n }, c = Ln(a, e / s.unitsPerEm, Ct(t.assetUrl));
5859
+ 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 && us(a, a).every(([d, A]) => d === A) && (o = l)), o;
5871
5860
  }, qe = 1, mt = (n, t, e) => {
5872
5861
  let a = 0;
5873
5862
  const r = e.getGlyphs(n);
@@ -5877,7 +5866,7 @@ const is = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5877
5866
  a += o || 0;
5878
5867
  }
5879
5868
  }), a *= t, a;
5880
- }, ds = (n, t, e) => {
5869
+ }, As = (n, t, e) => {
5881
5870
  let a = 0;
5882
5871
  const r = e.getGlyphs(n);
5883
5872
  return r.forEach((i, s) => {
@@ -5886,7 +5875,7 @@ const is = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5886
5875
  a = Math.max(a, o || 0);
5887
5876
  }
5888
5877
  }), a *= t, a;
5889
- }, Un = (n, t, e) => {
5878
+ }, Ln = (n, t, e) => {
5890
5879
  let a = 0;
5891
5880
  return n.forEach((r) => {
5892
5881
  a = Math.max(a, mt(r, t, e));
@@ -5900,11 +5889,11 @@ const is = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5900
5889
  let a = n || "";
5901
5890
  return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
5902
5891
  `)), a;
5903
- }, As = (n, t) => n.map((e, a) => [e, t[a]]), us = (n = "center", t = !1) => t ? "center" : n, Ln = (n) => n === "left" ? "start" : n === "right" ? "end" : "middle", ne = (n, t, e) => n.fontData ? {
5892
+ }, us = (n, t) => n.map((e, a) => [e, t[a]]), hs = (n = "center", t = !1) => t ? "center" : n, Vn = (n) => n === "left" ? "start" : n === "right" ? "end" : "middle", ne = (n, t, e) => n.fontData ? {
5904
5893
  ...n,
5905
5894
  ...(() => {
5906
5895
  if (n.algorithm === xt.Traditional) {
5907
- const r = ls(t, n, e, n.lineHeight);
5896
+ const r = cs(t, n, e, n.lineHeight);
5908
5897
  return {
5909
5898
  text: r.lines.join(`
5910
5899
  `),
@@ -5918,20 +5907,20 @@ const is = (n) => n.substring(0, 5).toLowerCase().trim() === "data:", We = /* @_
5918
5907
  text: t
5919
5908
  };
5920
5909
  })()
5921
- } : n, Vn = 1.1;
5910
+ } : n, zn = 1.1;
5922
5911
  function Pt(n, t) {
5923
- return zn(n, t.getTemplatingContext());
5912
+ return Gn(n, t.getTemplatingContext());
5924
5913
  }
5925
- function zn(n, t) {
5914
+ function Gn(n, t) {
5926
5915
  try {
5927
- n = vr.compile(n)(t);
5916
+ n = Er.compile(n)(t);
5928
5917
  } catch (e) {
5929
5918
  console.error("failed to render templated text", e);
5930
5919
  }
5931
5920
  return n;
5932
5921
  }
5933
- const hs = (n) => {
5934
- 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 = zn(n.text || "", n._renderingConfiguration?.templatingContext), d = c.split(`
5922
+ const ms = (n) => {
5923
+ 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 = Gn(n.text || "", n._renderingConfiguration?.templatingContext), d = c.split(`
5935
5924
  `), A = n.strokeColor?.browserValue && n.strokeThickness ? n.strokeColor?.browserValue : void 0, u = n.strokeColor?.browserValue && n.strokeThickness ? n.strokeThickness : void 0;
5936
5925
  if (n.curved && !n.paths || !n.fontData)
5937
5926
  return null;
@@ -5990,8 +5979,8 @@ const hs = (n) => {
5990
5979
  },
5991
5980
  stroke: A,
5992
5981
  strokeWidth: u,
5993
- children: n.curved ? /* @__PURE__ */ D(gs, { text: c, curvedPathId: i, align: n.align }) : d.map((m, p) => /* @__PURE__ */ D(
5994
- ms,
5982
+ children: n.curved ? /* @__PURE__ */ D(ps, { text: c, curvedPathId: i, align: n.align }) : d.map((m, p) => /* @__PURE__ */ D(
5983
+ gs,
5995
5984
  {
5996
5985
  align: n.vertical ? "center" : n.align,
5997
5986
  fontSize: n.fontSize,
@@ -6010,7 +5999,7 @@ const hs = (n) => {
6010
5999
  }
6011
6000
  ) }) })
6012
6001
  ] });
6013
- }, ms = (n) => {
6002
+ }, gs = (n) => {
6014
6003
  const t = () => {
6015
6004
  if (n.lineHeight !== void 0)
6016
6005
  return n.lineHeight * n.fontSize;
@@ -6027,23 +6016,23 @@ const hs = (n) => {
6027
6016
  const s = (n.amountLines - 1) / 2;
6028
6017
  return (n.thisLineIdx - s) * r + n.fontSize / 4;
6029
6018
  };
6030
- return /* @__PURE__ */ D("tspan", { textAnchor: Ln(n.align), x: e(), y: `${a()}px`, children: n.text });
6031
- }, gs = (n) => {
6019
+ return /* @__PURE__ */ D("tspan", { textAnchor: Vn(n.align), x: e(), y: `${a()}px`, children: n.text });
6020
+ }, ps = (n) => {
6032
6021
  const t = `#${n.curvedPathId}`;
6033
6022
  return /* @__PURE__ */ D(
6034
6023
  "textPath",
6035
6024
  {
6036
6025
  startOffset: n.align === "left" ? "0%" : n.align === "right" ? "100%" : "50%",
6037
- textAnchor: Ln(n.align),
6026
+ textAnchor: Vn(n.align),
6038
6027
  href: t,
6039
6028
  xlinkHref: t,
6040
6029
  children: n.text
6041
6030
  }
6042
6031
  );
6043
- }, ps = (n) => {
6032
+ }, fs = (n) => {
6044
6033
  if (n.cachedObjectURL && !n._renderingConfiguration?.omitCachedFields)
6045
6034
  return /* @__PURE__ */ D(
6046
- Rn,
6035
+ On,
6047
6036
  {
6048
6037
  id: n.id,
6049
6038
  src: n.cachedObjectURL,
@@ -6083,7 +6072,7 @@ const hs = (n) => {
6083
6072
  }
6084
6073
  ) });
6085
6074
  };
6086
- class fs {
6075
+ class Cs {
6087
6076
  constructor() {
6088
6077
  this.id = M(), this.stateCallbacks = [], this.prevCommands = [], this.nextCommands = [];
6089
6078
  }
@@ -6163,7 +6152,7 @@ class fs {
6163
6152
  layouts: {}
6164
6153
  };
6165
6154
  t.forEach((r) => {
6166
- a = new jn(r).apply(a);
6155
+ a = new Yn(r).apply(a);
6167
6156
  }), this.runStateCallbacks(), this.state = {
6168
6157
  transaction: a
6169
6158
  };
@@ -6173,10 +6162,10 @@ class fs {
6173
6162
  return { ...t, transaction: e.apply(a) };
6174
6163
  }
6175
6164
  }
6176
- const Gn = (n) => n.type === x.Image ? /* @__PURE__ */ D(Rn, { ...n }, n.id) : n.type === x.Frame ? /* @__PURE__ */ D(ns, { ...n }, n.id) : n.type === x.Illustration ? /* @__PURE__ */ D(ps, { ...n }, n.id) : n.type === x.Textbox ? /* @__PURE__ */ D(hs, { ...n }, n.id) : n.type === x.Group ? /* @__PURE__ */ D(On, { ...n }, n.id) : null, Ea = (n, t, e) => {
6165
+ const Wn = (n) => n.type === x.Image ? /* @__PURE__ */ D(On, { ...n }, n.id) : n.type === x.Frame ? /* @__PURE__ */ D(rs, { ...n }, n.id) : n.type === x.Illustration ? /* @__PURE__ */ D(fs, { ...n }, n.id) : n.type === x.Textbox ? /* @__PURE__ */ D(ms, { ...n }, n.id) : n.type === x.Group ? /* @__PURE__ */ D($n, { ...n }, n.id) : null, Ea = (n, t, e) => {
6177
6166
  const a = e.renderingConfiguration, r = a?.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
6178
6167
  return /* @__PURE__ */ D(
6179
- as,
6168
+ ns,
6180
6169
  {
6181
6170
  preserveAspectRatio: void 0,
6182
6171
  elements: r,
@@ -6221,7 +6210,7 @@ const re = (n) => {
6221
6210
  if (n.defaultVariant !== void 0)
6222
6211
  return t.find((e) => e.id === n.defaultVariant);
6223
6212
  }
6224
- }, ut = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), Wn = async (n, t) => {
6213
+ }, ut = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), He = /* @__PURE__ */ new Map(), qn = async (n, t) => {
6225
6214
  if (!t) {
6226
6215
  if (!n) throw new Error("No region or src supplied. Cannot construct frame!");
6227
6216
  return ca(n);
@@ -6233,7 +6222,7 @@ const re = (n) => {
6233
6222
  <path id="target-path" d='M0 0 h ${t} v ${e} h ${-t} Z' />
6234
6223
  </svg>
6235
6224
  `;
6236
- }, Cs = (n, t) => {
6225
+ }, ws = (n, t) => {
6237
6226
  if (!t)
6238
6227
  return;
6239
6228
  const e = t.variants?.find((a) => a.id === n.frameVariantId) || re(t);
@@ -6295,7 +6284,7 @@ const re = (n) => {
6295
6284
  if (ut.has(n))
6296
6285
  return ut.get(n);
6297
6286
  if (n.startsWith("data:image/svg+xml")) {
6298
- const e = Er(n), a = new TextDecoder().decode(e.buffer), r = qn(a), i = {
6287
+ const e = br(n), a = new TextDecoder().decode(e.buffer), r = Hn(a), i = {
6299
6288
  src: n,
6300
6289
  width: r.width,
6301
6290
  height: r.height,
@@ -6322,8 +6311,8 @@ const re = (n) => {
6322
6311
  }
6323
6312
  }, Ba = async (n) => {
6324
6313
  const t = await at(n);
6325
- return qn(t);
6326
- }, Wa = (n) => n.endsWith("mm") ? Number(n.replace("mm", "")) * 3.7795275591 : n.endsWith("px") ? Number(n.replace("px", "")) : Number(n), qn = (n) => {
6314
+ return Hn(t);
6315
+ }, Wa = (n) => n.endsWith("mm") ? Number(n.replace("mm", "")) * 3.7795275591 : n.endsWith("px") ? Number(n.replace("px", "")) : Number(n), Hn = (n) => {
6327
6316
  const a = dt().parseFromString(n, "image/svg+xml").querySelector("svg");
6328
6317
  if (!a)
6329
6318
  throw new Error("No svg tag found, this svg must be malformed!");
@@ -6337,7 +6326,7 @@ const re = (n) => {
6337
6326
  }, Ot = (n, t) => {
6338
6327
  const e = n.layoutState.elements.filter((r) => r.layer === t), a = Math.max(...e.map((r) => r.layerIndex).filter((r) => r !== void 0));
6339
6328
  return Math.max(a, 0) + 1;
6340
- }, Hn = async (n) => new Promise((t) => {
6329
+ }, jn = async (n) => new Promise((t) => {
6341
6330
  at(n).then((e) => {
6342
6331
  t(e);
6343
6332
  }).catch((e) => console.error(e));
@@ -6390,7 +6379,7 @@ const re = (n) => {
6390
6379
  panelId: n.layoutState.layout.panelId
6391
6380
  };
6392
6381
  if (e && t === x.Illustration) {
6393
- const l = await ot(await Hn(e)), u = dt().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
6382
+ const l = await ot(await jn(e)), u = dt().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
6394
6383
  if (!u) throw new Error("SVG missing viewBox.");
6395
6384
  const h = o.height, m = u.split(" "), p = parseFloat(m[2]) || 1, g = parseFloat(m[3]) || 1, f = p / g;
6396
6385
  o.height = o.width / f, o.top += (h - o.height) / 2;
@@ -6406,9 +6395,9 @@ const re = (n) => {
6406
6395
  }
6407
6396
  return o;
6408
6397
  };
6409
- class Ad {
6398
+ class ud {
6410
6399
  static async getFrame(t, e) {
6411
- const a = await Wn(e.region, e.src), r = await $e(a), i = e.region || await $t(t, x.Frame);
6400
+ const a = await qn(e.region, e.src), r = await $e(a), i = e.region || await $t(t, x.Frame);
6412
6401
  return {
6413
6402
  id: M(),
6414
6403
  x: i.left,
@@ -6468,7 +6457,7 @@ class Ad {
6468
6457
  y: A.top,
6469
6458
  width: A.width,
6470
6459
  height: A.height,
6471
- align: us(a.textAlign, a.vertical),
6460
+ align: hs(a.textAlign, a.vertical),
6472
6461
  curved: a.curved,
6473
6462
  fill: i?.color || a.colour || "#000000",
6474
6463
  fontData: o,
@@ -6484,7 +6473,7 @@ class Ad {
6484
6473
  input: l
6485
6474
  },
6486
6475
  d
6487
- ), h = cs(
6476
+ ), h = ds(
6488
6477
  { ...A, height: u.height },
6489
6478
  o,
6490
6479
  u.fontSize,
@@ -6541,7 +6530,7 @@ class Ad {
6541
6530
  };
6542
6531
  }
6543
6532
  static async getIllustration(t, e) {
6544
- const a = e.region || await $t(t, x.Illustration, e.src), r = await ot(await Hn(e.src)), i = await _t(r.svg), s = M();
6533
+ const a = e.region || await $t(t, x.Illustration, e.src), r = await ot(await jn(e.src)), i = await _t(r.svg), s = M();
6545
6534
  return {
6546
6535
  cachedObjectURL: i,
6547
6536
  stepRegion: e.region,
@@ -6649,7 +6638,7 @@ class Ha extends Q {
6649
6638
  };
6650
6639
  }
6651
6640
  }
6652
- class ud extends Q {
6641
+ class hd extends Q {
6653
6642
  constructor(t, e, a) {
6654
6643
  super(), this.id = t, this.x = e, this.y = a;
6655
6644
  }
@@ -6672,7 +6661,7 @@ class ud extends Q {
6672
6661
  };
6673
6662
  }
6674
6663
  }
6675
- class hd extends Q {
6664
+ class md extends Q {
6676
6665
  constructor(t, e) {
6677
6666
  super(), this.id = t, this.angle = e;
6678
6667
  }
@@ -6694,7 +6683,7 @@ class hd extends Q {
6694
6683
  };
6695
6684
  }
6696
6685
  }
6697
- class md extends Q {
6686
+ class gd extends Q {
6698
6687
  constructor(t, e, a) {
6699
6688
  super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(a);
6700
6689
  }
@@ -6733,7 +6722,7 @@ class O extends Q {
6733
6722
  return this.oldState = t, this.commands.reduce((e, a) => a.apply(e), t);
6734
6723
  }
6735
6724
  }
6736
- class jn extends Q {
6725
+ class Yn extends Q {
6737
6726
  constructor(t) {
6738
6727
  super(), this.layout = t;
6739
6728
  }
@@ -6832,7 +6821,7 @@ class Tt extends Q {
6832
6821
  };
6833
6822
  }
6834
6823
  }
6835
- class ws extends Q {
6824
+ class ys extends Q {
6836
6825
  constructor(t, e, a) {
6837
6826
  super(), this.id = t, this.color = e, this.textFillSpotColor = a;
6838
6827
  }
@@ -6878,7 +6867,7 @@ class Ye extends Q {
6878
6867
  };
6879
6868
  }
6880
6869
  }
6881
- class ys extends Q {
6870
+ class Ss extends Q {
6882
6871
  constructor(t, e) {
6883
6872
  super(), this.id = t, this.size = e;
6884
6873
  }
@@ -6922,7 +6911,7 @@ class ja extends Q {
6922
6911
  };
6923
6912
  }
6924
6913
  }
6925
- class Ss extends Q {
6914
+ class vs extends Q {
6926
6915
  constructor(t, e) {
6927
6916
  super(), this.id = t, this.align = e;
6928
6917
  }
@@ -6944,7 +6933,7 @@ class Ss extends Q {
6944
6933
  };
6945
6934
  }
6946
6935
  }
6947
- class vs extends Q {
6936
+ class Es extends Q {
6948
6937
  constructor(t, e, a) {
6949
6938
  super(), this.id = t, this.imageData = e, this.offsets = a;
6950
6939
  }
@@ -6980,7 +6969,7 @@ class vs extends Q {
6980
6969
  };
6981
6970
  }
6982
6971
  }
6983
- class Es extends Q {
6972
+ class bs extends Q {
6984
6973
  constructor(t, e, a, r, i) {
6985
6974
  super(), this.id = t, this.useThreshold = e, this.invertThreshold = a, this.threshold = r, this.thresholdSaturation = i;
6986
6975
  }
@@ -7005,7 +6994,7 @@ class Es extends Q {
7005
6994
  };
7006
6995
  }
7007
6996
  }
7008
- class gd extends Q {
6997
+ class pd extends Q {
7009
6998
  constructor(t, e) {
7010
6999
  super(), this.id = t, this.src = e;
7011
7000
  }
@@ -7027,7 +7016,7 @@ class gd extends Q {
7027
7016
  };
7028
7017
  }
7029
7018
  }
7030
- class bs extends Q {
7019
+ class Is extends Q {
7031
7020
  constructor(t, e) {
7032
7021
  super(), this.id = t, this.text = e;
7033
7022
  }
@@ -7101,7 +7090,7 @@ class Aa extends Q {
7101
7090
  };
7102
7091
  }
7103
7092
  }
7104
- class Is extends Q {
7093
+ class Bs extends Q {
7105
7094
  constructor(t, e, a) {
7106
7095
  super(), this.id = t, this.svgBody = e, this.objectURL = a;
7107
7096
  }
@@ -7124,7 +7113,7 @@ class Is extends Q {
7124
7113
  };
7125
7114
  }
7126
7115
  }
7127
- class pd extends Q {
7116
+ class fd extends Q {
7128
7117
  /**
7129
7118
  * @param id The targeted element to bring to the front.
7130
7119
  */
@@ -7153,7 +7142,7 @@ class pd extends Q {
7153
7142
  };
7154
7143
  }
7155
7144
  }
7156
- class fd extends Q {
7145
+ class Cd extends Q {
7157
7146
  /**
7158
7147
  * @param id The targeted element to bring to the back.
7159
7148
  */
@@ -7184,7 +7173,7 @@ class fd extends Q {
7184
7173
  };
7185
7174
  }
7186
7175
  }
7187
- class Cd extends Q {
7176
+ class wd extends Q {
7188
7177
  /**
7189
7178
  * @param id The targeted element to bring to the front.
7190
7179
  */
@@ -7211,7 +7200,7 @@ class Cd extends Q {
7211
7200
  };
7212
7201
  }
7213
7202
  }
7214
- class wd extends Q {
7203
+ class yd extends Q {
7215
7204
  /**
7216
7205
  * @param id The targeted element to bring to the front.
7217
7206
  */
@@ -7336,7 +7325,7 @@ class Ya {
7336
7325
  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);
7337
7326
  }
7338
7327
  }
7339
- const Bs = async (n) => {
7328
+ const Ps = async (n) => {
7340
7329
  const t = `${gt.getServicesApiUrl()}/shortener`;
7341
7330
  try {
7342
7331
  return (await (await nt(t, {
@@ -7350,7 +7339,7 @@ const Bs = async (n) => {
7350
7339
  throw console.error(e), new Te("Failed to shorten URL, see console.");
7351
7340
  }
7352
7341
  };
7353
- class Yn {
7342
+ class Jn {
7354
7343
  async poll() {
7355
7344
  try {
7356
7345
  if (await this.predicate()) {
@@ -7373,7 +7362,7 @@ class Yn {
7373
7362
  this.onSuccess = e, this.onFailure = a, this.predicate = t, this.attempts = 0, this.pollingId = -1, this.interval = r, this.maxAttempts = i, this.poll();
7374
7363
  }
7375
7364
  }
7376
- class Ps {
7365
+ class Ds {
7377
7366
  async init(t, e, a) {
7378
7367
  return a && await this.reload(t, e, a), null;
7379
7368
  }
@@ -7395,7 +7384,7 @@ class Ps {
7395
7384
  const h = (await Be([e]))[0], m = h?.versions?.find((p) => p.name === "mpeg4")?.link;
7396
7385
  return { asset: h, link: m };
7397
7386
  }, s = await new Promise((h, m) => {
7398
- new Yn(
7387
+ new Jn(
7399
7388
  async () => !!(await i()).link,
7400
7389
  async () => {
7401
7390
  const p = await i();
@@ -7419,7 +7408,7 @@ class Ps {
7419
7408
  const c = l.toString();
7420
7409
  if (c.length >= 2e3)
7421
7410
  throw new Te("Cannot create QR code, URL too long.");
7422
- const d = await Bs(c);
7411
+ const d = await Ps(c);
7423
7412
  if (!r.data || !r.data.regions)
7424
7413
  throw new Ie(r, "Missing regions.");
7425
7414
  const A = await this.regionElements(r), u = await this.command(d, A, a, r.stepName);
@@ -7463,7 +7452,7 @@ class Ps {
7463
7452
  } };
7464
7453
  }
7465
7454
  }
7466
- const Jn = new Ps();
7455
+ const Kn = new Ds();
7467
7456
  class Fe {
7468
7457
  constructor() {
7469
7458
  this.frameSourceSvg = async (t, e) => {
@@ -7578,7 +7567,7 @@ class Fe {
7578
7567
  const o = e.fileLink || "";
7579
7568
  return o.endsWith(".pdf") || o.endsWith(".eps") || o.endsWith(".ai") ? new Promise((l) => {
7580
7569
  a.addPoller(
7581
- new Yn(
7570
+ new Jn(
7582
7571
  async () => {
7583
7572
  const d = (await $.getFromServer(e.key || "")).versions?.find((u) => u.name === "svg");
7584
7573
  return d ? (await nt(d.link)).status === 200 : !1;
@@ -7691,7 +7680,7 @@ class Fe {
7691
7680
  const l = o.pmsValue.trim().toLocaleLowerCase();
7692
7681
  i.includes(l) || i.push(l);
7693
7682
  } else if (o.browserValue) {
7694
- const l = si(o.browserValue);
7683
+ const l = oi(o.browserValue);
7695
7684
  i.includes(l) || i.push(l);
7696
7685
  }
7697
7686
  }
@@ -7830,7 +7819,7 @@ class Fe {
7830
7819
  }
7831
7820
  }
7832
7821
  const yt = new Fe();
7833
- class Ds {
7822
+ class Fs {
7834
7823
  async getIllustrationBody(t) {
7835
7824
  return new Promise((e) => {
7836
7825
  at(t, !0).then((a) => {
@@ -7938,7 +7927,7 @@ class Ds {
7938
7927
  for (const d of r) {
7939
7928
  for (const [A, u] of i.entries())
7940
7929
  c.push(new Aa(d, A, u));
7941
- c.push(new Is(d, o, l));
7930
+ c.push(new Bs(d, o, l));
7942
7931
  }
7943
7932
  return new O(c);
7944
7933
  }
@@ -8062,8 +8051,8 @@ class Ds {
8062
8051
  };
8063
8052
  }
8064
8053
  }
8065
- const Ce = new Ds();
8066
- class Fs {
8054
+ const Ce = new Fs();
8055
+ class xs {
8067
8056
  async init(t, e, a) {
8068
8057
  const r = t.option;
8069
8058
  if (!r)
@@ -8138,8 +8127,8 @@ class Fs {
8138
8127
  };
8139
8128
  }
8140
8129
  }
8141
- const Kn = new Fs();
8142
- class xs {
8130
+ const _n = new xs();
8131
+ class ks {
8143
8132
  async init(t, e, a) {
8144
8133
  const r = t.option;
8145
8134
  if (!r) throw new be(t);
@@ -8219,8 +8208,8 @@ class xs {
8219
8208
  };
8220
8209
  }
8221
8210
  }
8222
- const _n = new xs();
8223
- class ks {
8211
+ const Xn = new ks();
8212
+ class Ms {
8224
8213
  async init(t, e, a) {
8225
8214
  if (a)
8226
8215
  await this.reload(t, e, a);
@@ -8330,8 +8319,8 @@ class ks {
8330
8319
  return r(""), { input: e, helperData: {} };
8331
8320
  }
8332
8321
  }
8333
- const Xn = new ks();
8334
- class Ms {
8322
+ const Zn = new Ms();
8323
+ class Ts {
8335
8324
  async init(t, e, a) {
8336
8325
  const r = t.option;
8337
8326
  if (!r)
@@ -8421,8 +8410,8 @@ class Ms {
8421
8410
  };
8422
8411
  }
8423
8412
  }
8424
- const Zn = new Ms();
8425
- class Ts {
8413
+ const tr = new Ts();
8414
+ class Ns {
8426
8415
  async init(t, e, a) {
8427
8416
  const r = t.option;
8428
8417
  if (!r)
@@ -8476,8 +8465,8 @@ class Ts {
8476
8465
  };
8477
8466
  }
8478
8467
  }
8479
- const tr = new Ts();
8480
- class Ns {
8468
+ const er = new Ns();
8469
+ class Qs {
8481
8470
  constructor() {
8482
8471
  this.shapeFillId = "spiff-fill-shape";
8483
8472
  }
@@ -8641,8 +8630,8 @@ class Ns {
8641
8630
  }
8642
8631
  }
8643
8632
  }
8644
- const Vt = new Ns();
8645
- class Qs {
8633
+ const Vt = new Qs();
8634
+ class Rs {
8646
8635
  constructor() {
8647
8636
  this.latestToast = null, this.toastType = null, this.toastCallbacks = [];
8648
8637
  }
@@ -8667,7 +8656,7 @@ class Qs {
8667
8656
  );
8668
8657
  }
8669
8658
  }
8670
- const Rs = new Qs(), Ke = (n, t, e, a, r) => {
8659
+ const Os = new Rs(), Ke = (n, t, e, a, r) => {
8671
8660
  if (t.some((d) => d == null))
8672
8661
  throw new Error(`Failed to autosize lines: ${t.join(", ")}`);
8673
8662
  let i = t.map((d) => d.split(`
@@ -8717,14 +8706,14 @@ class xe extends Error {
8717
8706
  super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = xe.name;
8718
8707
  }
8719
8708
  }
8720
- const Os = ["‘", "’", "“", "”", `
8709
+ const $s = ["‘", "’", "“", "”", `
8721
8710
  `];
8722
8711
  class ke extends Error {
8723
8712
  constructor(t) {
8724
8713
  super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = ke.name;
8725
8714
  }
8726
8715
  }
8727
- class $s {
8716
+ class Us {
8728
8717
  constructor() {
8729
8718
  this.cachedColors = /* @__PURE__ */ new Map(), this.cachedStrokeColors = /* @__PURE__ */ new Map(), this.filterUnsupportedCharacters = (t, e) => {
8730
8719
  let a = t.replace(
@@ -8733,7 +8722,7 @@ class $s {
8733
8722
  );
8734
8723
  const r = [], i = e ? Ct(e.assetUrl) : void 0;
8735
8724
  if (i) {
8736
- const s = a.split("").filter((l) => !Os.includes(l)).join(""), o = s.split("").map((l) => i.getFont().charToGlyph(l));
8725
+ const s = a.split("").filter((l) => !$s.includes(l)).join(""), o = s.split("").map((l) => i.getFont().charToGlyph(l));
8737
8726
  for (let l = 0; l < o.length; l++)
8738
8727
  o[l].name === ".notdef" && r.push(String.fromCharCode(s.charCodeAt(l)));
8739
8728
  }
@@ -8841,7 +8830,7 @@ class $s {
8841
8830
  return;
8842
8831
  const i = r.getCommandDispatcher();
8843
8832
  for (const s of a) {
8844
- const o = new Ss(s.id, e);
8833
+ const o = new vs(s.id, e);
8845
8834
  i(o);
8846
8835
  }
8847
8836
  }
@@ -8860,7 +8849,7 @@ class $s {
8860
8849
  for (const l of a) {
8861
8850
  if (!e.fill)
8862
8851
  throw new Error("Fill not set on new color selection!");
8863
- const c = new ws(l.id, e.fill, o);
8852
+ const c = new ys(l.id, e.fill, o);
8864
8853
  i(c);
8865
8854
  }
8866
8855
  }
@@ -9268,7 +9257,7 @@ class $s {
9268
9257
  throw console.log(g), new xe("Error adding font to region");
9269
9258
  }
9270
9259
  }, A = await Promise.all(a.regions.map(d)).catch((u) => {
9271
- throw u instanceof xe ? (Rs.setLatestToast("Failed to load font.", Ue.Error), u) : u instanceof ke ? u : new Error(u);
9260
+ throw u instanceof xe ? (Os.setLatestToast("Failed to load font.", Ue.Error), u) : u instanceof ke ? u : new Error(u);
9272
9261
  });
9273
9262
  return await s.setSelectionsAndElements(
9274
9263
  t,
@@ -9284,9 +9273,9 @@ class $s {
9284
9273
  ), A;
9285
9274
  }
9286
9275
  generateTextChangeCommandsForRegion(t, e, a, r) {
9287
- const i = [], s = new bs(a, r);
9276
+ const i = [], s = new Is(a, r);
9288
9277
  if (i.push(s), !e.size) {
9289
- const l = new ys(a, t);
9278
+ const l = new Ss(a, t);
9290
9279
  i.push(l);
9291
9280
  }
9292
9281
  return new O(i);
@@ -9345,13 +9334,13 @@ class $s {
9345
9334
  return new O(I);
9346
9335
  }
9347
9336
  }
9348
- const G = new $s();
9349
- class Us {
9337
+ const G = new Us();
9338
+ class Ls {
9350
9339
  }
9351
- const Ls = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAElcAAAAHEdERUYAJwBUAAAe2AAAAB5HUE9TkNtcVAAAHygAACoyR1NVQrj/uP4AAB74AAAAME9TLzJoWmUcAAABeAAAAGBjbWFwtkIacAAAAxAAAAJWZ2FzcP//AAMAAB7QAAAACGdseWY27KOUAAAGCAAAFcRoZWFkFPal0gAAAPwAAAA2aGhlYQU0Ar0AAAE0AAAAJGhtdHiADw6qAAAB2AAAAThsb2Nh5CzfJAAABWgAAACebWF4cACVAEwAAAFYAAAAIG5hbWXeIPPyAAAbzAAAAiJwb3N0ABeZTwAAHfAAAADdAAEAAAABAAAZ9vREXw889QALA+gAAAAA2ZexNAAAAADZl7E0ADL/yQJ2ArwAAAAIAAIAAAAAAAAAAQAAArz/wwAAAqsAAAAAAnYAAQAAAAAAAAAAAAAAAAAAAE4AAQAAAE4ASQAFAAAAAAACAAAAAQABAAAAQAAAAAAAAAAEAbsBkAAFAAACigK7AAAAjAKKArsAAAHfADEBAgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAABYWFhYAEAACgCtArz/wwA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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/+MAO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0/+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//m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Ff/TADH/4gAy/+sAM//+ADT/6AA1//4ANgAEADf//wA4/9wAOf/6ADv/5gA8//8APf//AD///QBA/+MAQf//AEMAAABE/+8ARf/4AEb/+wBH//cASP/rAEn/6QBK/+kAS//9AAIAAQAGAEsAAAAAAAAAAQAAAADUGBYRAAAAANmXsTQAAAAA2ZexNA==", et = (n) => Ur("http://www.w3.org/2000/svg", n), Vs = (n, t) => {
9340
+ const Vs = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAElcAAAAHEdERUYAJwBUAAAe2AAAAB5HUE9TkNtcVAAAHygAACoyR1NVQrj/uP4AAB74AAAAME9TLzJoWmUcAAABeAAAAGBjbWFwtkIacAAAAxAAAAJWZ2FzcP//AAMAAB7QAAAACGdseWY27KOUAAAGCAAAFcRoZWFkFPal0gAAAPwAAAA2aGhlYQU0Ar0AAAE0AAAAJGhtdHiADw6qAAAB2AAAAThsb2Nh5CzfJAAABWgAAACebWF4cACVAEwAAAFYAAAAIG5hbWXeIPPyAAAbzAAAAiJwb3N0ABeZTwAAHfAAAADdAAEAAAABAAAZ9vREXw889QALA+gAAAAA2ZexNAAAAADZl7E0ADL/yQJ2ArwAAAAIAAIAAAAAAAAAAQAAArz/wwAAAqsAAAAAAnYAAQAAAAAAAAAAAAAAAAAAAE4AAQAAAE4ASQAFAAAAAAACAAAAAQABAAAAQAAAAAAAAAAEAbsBkAAFAAACigK7AAAAjAKKArsAAAHfADEBAgAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAABYWFhYAEAACgCtArz/wwAAAqkANgAAAAMAAAAAAmQCZAAAACAAAgIPADIAAAAAAU0AAAAAAAAAAAAAALQAAAD3ADUCfQA1AcoANQKrADUCDQA1AX4ANQHYADUBNQA1AcgANQHUADUB8AA1AeEANQHpADUBqQA1AdAANQHpADUCqgA1Af8ANQGaADUB3wA1AbgANQFtADUBbQA1AekANQG8ADUA1QA1AYcANQHBADUBUAA1AhsANQHBADUB4QA1AZYANQH0ADUB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EAPP/vAD3/9wA+//kAP//3AED/4gBB//kAQv/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//4AN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A5/+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//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/5gA6/+8AO/+iADz/6AA9/+oAPv/sAD//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==", et = (n) => Lr("http://www.w3.org/2000/svg", n), zs = (n, t) => {
9352
9341
  const e = et("rect");
9353
9342
  return e.setAttribute("height", `${n}`), e.setAttribute("width", `${t}`), e;
9354
- }, zs = (n, t, e, a) => {
9343
+ }, Gs = (n, t, e, a) => {
9355
9344
  const r = oe("filter");
9356
9345
  r.setAttribute("id", a), r.setAttribute("height", "200%"), r.setAttribute("width", "200%"), r.setAttribute("x", "-50%"), r.setAttribute("y", "-50%");
9357
9346
  const i = oe("feOffset");
@@ -9360,11 +9349,11 @@ const Ls = "data:application/octet-stream;base64,AAEAAAAPAIAAAwBwRkZUTYdHeHoAAEl
9360
9349
  r.appendChild(s), s.setAttribute("result", "blurOut"), s.setAttribute("in", "offOut"), s.setAttribute("stdDeviation", `${e}`);
9361
9350
  const o = oe("feBlend");
9362
9351
  return r.appendChild(o), o.setAttribute("in", "SourceGraphic"), o.setAttribute("in2", "blurOut"), o.setAttribute("mode", "normal"), r;
9363
- }, Gs = (n) => {
9352
+ }, Ws = (n) => {
9364
9353
  let t = n;
9365
9354
  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;
9366
9355
  };
9367
- function Ws(n, t, e, a, r, i) {
9356
+ function qs(n, t, e, a, r, i) {
9368
9357
  const s = r, o = i, l = {
9369
9358
  x: t[0],
9370
9359
  y: t[1],
@@ -9373,10 +9362,10 @@ function Ws(n, t, e, a, r, i) {
9373
9362
  };
9374
9363
  if (l.width <= 0)
9375
9364
  return;
9376
- const c = qs(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;
9365
+ const c = Hs(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;
9377
9366
  n.setAttribute("transform", `translate(${d} ${A}) scale(${c} ${c})`);
9378
9367
  }
9379
- function qs(n, t, e, a) {
9368
+ function Hs(n, t, e, a) {
9380
9369
  const r = e / n, i = a / t;
9381
9370
  return r > 1 && i > 1 ? Math.min(r, i) : r > 1 && i < 1 ? i : r < 1 && i > 1 ? r : Math.min(r, i);
9382
9371
  }
@@ -9392,7 +9381,7 @@ const Ja = {
9392
9381
  t: ["x", "y"],
9393
9382
  a: ["rx", "ry", "xRotation", "largeArc", "sweep", "x", "y"]
9394
9383
  };
9395
- class Hs {
9384
+ class js {
9396
9385
  constructor(t) {
9397
9386
  const e = Array.from(t.querySelectorAll("path"));
9398
9387
  this.paths = e.map((a) => {
@@ -9490,7 +9479,7 @@ class Hs {
9490
9479
  }
9491
9480
  }
9492
9481
  }
9493
- class js extends Us {
9482
+ class Ys extends Ls {
9494
9483
  constructor() {
9495
9484
  super(...arguments), this.moduleName = "Vegemite";
9496
9485
  }
@@ -9501,11 +9490,11 @@ class js extends Us {
9501
9490
  return this.svgElement(t, e);
9502
9491
  }
9503
9492
  svgElement(t, e) {
9504
- const a = ss(Ls), 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 = () => {
9493
+ const a = os(Vs), 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 = () => {
9505
9494
  const I = et("g");
9506
9495
  I.classList.add("module-text-group");
9507
9496
  const P = et("defs");
9508
- I.appendChild(P), P.appendChild(zs(0, 2, 2, "shadow"));
9497
+ I.appendChild(P), P.appendChild(Gs(0, 2, 2, "shadow"));
9509
9498
  const y = et("path");
9510
9499
  y.setAttribute("d", d), y.setAttribute("stroke", "black"), y.setAttribute("stroke-width", "3"), P.appendChild(y);
9511
9500
  const S = et("g");
@@ -9515,29 +9504,29 @@ class js extends Us {
9515
9504
  const b = et("g");
9516
9505
  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;
9517
9506
  const F = et("g");
9518
- return F.classList.add("module-layer3"), I.appendChild(F), F.setAttribute("fill", "white"), F.innerHTML = o, new Hs(I).transform(([N, Z]) => [N, Z + (c / 2 - N) ** 2 / (c * 6)]), I;
9507
+ return F.classList.add("module-layer3"), I.appendChild(F), F.setAttribute("fill", "white"), F.innerHTML = o, new js(I).transform(([N, Z]) => [N, Z + (c / 2 - N) ** 2 / (c * 6)]), I;
9519
9508
  }, u = et("g");
9520
9509
  u.classList.add("module-root");
9521
9510
  const h = et("defs");
9522
9511
  u.appendChild(h);
9523
9512
  const m = et("g");
9524
9513
  m.classList.add("module-bounds"), u.appendChild(m);
9525
- const p = Vs(e.height, e.width);
9514
+ const p = zs(e.height, e.width);
9526
9515
  p.setAttribute("opacity", "0"), m.appendChild(p);
9527
9516
  const g = et("g");
9528
9517
  g.classList.add("module-text-enclosure"), u.appendChild(g);
9529
9518
  const f = A();
9530
9519
  g.appendChild(f);
9531
- const w = br(d);
9532
- return Ws(g, w, e.height, e.width, 0.35, 0.65), Gs(u.outerHTML);
9520
+ const w = Ir(d);
9521
+ return qs(g, w, e.height, e.width, 0.35, 0.65), Ws(u.outerHTML);
9533
9522
  }
9534
9523
  }
9535
- async function er(n) {
9524
+ async function ar(n) {
9536
9525
  if (n === "Vegemite")
9537
- return new js();
9526
+ return new Ys();
9538
9527
  throw new T(`Failed to resolve Module, Module ${n} not found`);
9539
9528
  }
9540
- const Ys = [
9529
+ const Js = [
9541
9530
  "altGlyph",
9542
9531
  "circle",
9543
9532
  "ellipse",
@@ -9549,7 +9538,7 @@ const Ys = [
9549
9538
  "textPath",
9550
9539
  "tref",
9551
9540
  "tspan"
9552
- ], Js = async (n, t, e) => {
9541
+ ], Ks = async (n, t, e) => {
9553
9542
  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);
9554
9543
  o.searchParams.append("video", $a(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
9555
9544
  const l = o.toString(), d = `data:image/svg+xml;base64,${$a(await un(l, { type: "svg" }))}`, A = (h) => {
@@ -9576,13 +9565,13 @@ const Ys = [
9576
9565
  } catch (h) {
9577
9566
  return console.error(h), [];
9578
9567
  }
9579
- }, Ks = async (n, t, e, a) => {
9568
+ }, _s = async (n, t, e, a) => {
9580
9569
  const r = e.data, i = r.assetUrl, s = await da(i);
9581
9570
  try {
9582
- const o = Cs(r, a.option);
9571
+ const o = ws(r, a.option);
9583
9572
  o && (t[a.stepName] = { selectedVariants: [o] });
9584
9573
  const l = async (c) => {
9585
- const d = await Wn(c, o?.asset?.fileLink), A = await $e(d), u = M(), h = n.find((p) => p.panelId === c.panelId);
9574
+ const d = await qn(c, o?.asset?.fileLink), A = await $e(d), u = M(), h = n.find((p) => p.panelId === c.panelId);
9586
9575
  if (!h)
9587
9576
  throw new H(c);
9588
9577
  const m = Ia(
@@ -9633,7 +9622,7 @@ const Ys = [
9633
9622
  } catch (o) {
9634
9623
  return console.error(o), [];
9635
9624
  }
9636
- }, _s = async (n, t, e, a) => {
9625
+ }, Xs = async (n, t, e, a) => {
9637
9626
  const r = e.data, i = a.option;
9638
9627
  if (!i)
9639
9628
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -9652,7 +9641,7 @@ const Ys = [
9652
9641
  wa(m);
9653
9642
  const p = {};
9654
9643
  Ft(m, (y) => {
9655
- Ys.includes(y.tagName) && !y.attributes.getNamedItem("fill") && y.setAttribute("fill", "#000000");
9644
+ Js.includes(y.tagName) && !y.attributes.getNamedItem("fill") && y.setAttribute("fill", "#000000");
9656
9645
  const S = y.attributes.getNamedItem("fill");
9657
9646
  if (S && S.value !== "none") {
9658
9647
  const b = S.value, R = `spiff-fill-${b.replace(/\W/g, "")}`;
@@ -9701,8 +9690,8 @@ const Ys = [
9701
9690
  } catch (y) {
9702
9691
  return console.error(y), [];
9703
9692
  }
9704
- }, Xs = async (n, t, e) => {
9705
- const a = await er(e.data.module), r = t.data, i = (o, l) => {
9693
+ }, Zs = async (n, t, e) => {
9694
+ const a = await ar(e.data.module), r = t.data, i = (o, l) => {
9706
9695
  const c = n.find((A) => A.panelId === l.panelId);
9707
9696
  if (!c)
9708
9697
  throw new H(l);
@@ -9731,7 +9720,7 @@ const Ys = [
9731
9720
  } catch (o) {
9732
9721
  return console.error(o), [];
9733
9722
  }
9734
- }, Zs = async (n, t, e, a) => {
9723
+ }, to = async (n, t, e, a) => {
9735
9724
  const r = e.data, i = a.option;
9736
9725
  if (!i)
9737
9726
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -9772,7 +9761,7 @@ const Ys = [
9772
9761
  } catch (d) {
9773
9762
  return console.error(d), [];
9774
9763
  }
9775
- }, to = async (n, t, e, a) => {
9764
+ }, eo = async (n, t, e, a) => {
9776
9765
  const r = e.data, i = a.option;
9777
9766
  if (!i)
9778
9767
  return console.error(`No option for step ${a.stepName}.`), [];
@@ -9828,7 +9817,7 @@ const Ys = [
9828
9817
  } catch (c) {
9829
9818
  return console.error(c), [];
9830
9819
  }
9831
- }, eo = async (n, t, e) => {
9820
+ }, ao = async (n, t, e) => {
9832
9821
  const a = [], i = t.type === E.ProductOverlay ? e || t.data.asset?.fileLink || "" : t.data.asset?.fileLink || "", o = i.endsWith(".jpeg") || i.endsWith(".jpg") || i.endsWith(".png") ? x.Image : (i.endsWith(".svg"), x.Illustration), l = t.data.regions;
9833
9822
  if (o === "image")
9834
9823
  try {
@@ -9892,7 +9881,7 @@ const Ys = [
9892
9881
  });
9893
9882
  }
9894
9883
  return a;
9895
- }, ao = async (n, t, e, a) => {
9884
+ }, no = async (n, t, e, a) => {
9896
9885
  const r = [], i = e.data, s = 30, o = (g) => g.vertical ? "center" : g.textAlign || "center", l = () => {
9897
9886
  const g = a.option;
9898
9887
  if (!g)
@@ -9977,7 +9966,7 @@ const Ys = [
9977
9966
  r.push(new z(w, f));
9978
9967
  }
9979
9968
  return r;
9980
- }, no = (n, t) => n.conditions ? n.conditions.every((e) => {
9969
+ }, ro = (n, t) => n.conditions ? n.conditions.every((e) => {
9981
9970
  const a = t[e.targetStepName];
9982
9971
  if (a && a.selectedVariants) {
9983
9972
  const r = a.selectedVariants;
@@ -9986,7 +9975,7 @@ const Ys = [
9986
9975
  );
9987
9976
  }
9988
9977
  return !1;
9989
- }) : !0, ro = async (n, t, e, a) => {
9978
+ }) : !0, io = async (n, t, e, a) => {
9990
9979
  const r = [], i = {};
9991
9980
  for (const s of n) {
9992
9981
  const o = t.steps.find((l) => l.stepName === s.name);
@@ -9994,18 +9983,18 @@ const Ys = [
9994
9983
  switch (o.type) {
9995
9984
  case E.DigitalContent:
9996
9985
  r.push(
9997
- ...await Js(e, s, o)
9986
+ ...await Ks(e, s, o)
9998
9987
  );
9999
9988
  break;
10000
9989
  case E.Frame:
10001
9990
  case E.Photo:
10002
9991
  r.push(
10003
- ...await Ks(e, i, s, o)
9992
+ ...await _s(e, i, s, o)
10004
9993
  );
10005
9994
  break;
10006
9995
  case E.Illustration:
10007
9996
  r.push(
10008
- ...await _s(
9997
+ ...await Xs(
10009
9998
  e,
10010
9999
  i,
10011
10000
  s,
@@ -10014,39 +10003,39 @@ const Ys = [
10014
10003
  );
10015
10004
  break;
10016
10005
  case E.Module:
10017
- r.push(...await Xs(e, s, o));
10006
+ r.push(...await Zs(e, s, o));
10018
10007
  break;
10019
10008
  case E.Picture:
10020
10009
  r.push(
10021
- ...await Zs(e, i, s, o)
10010
+ ...await to(e, i, s, o)
10022
10011
  );
10023
10012
  break;
10024
10013
  case E.Shape:
10025
10014
  r.push(
10026
- ...await to(e, i, s, o)
10015
+ ...await eo(e, i, s, o)
10027
10016
  );
10028
10017
  break;
10029
10018
  case E.Text:
10030
10019
  r.push(
10031
- ...await ao(e, i, s, o)
10020
+ ...await no(e, i, s, o)
10032
10021
  );
10033
10022
  break;
10034
10023
  }
10035
10024
  }
10036
10025
  for (const s of t.steps)
10037
- s.type !== E.SilentIllustration && s.type !== E.ProductOverlay || no(s, i) && r.push(
10038
- ...await eo(e, s, a)
10026
+ s.type !== E.SilentIllustration && s.type !== E.ProductOverlay || ro(s, i) && r.push(
10027
+ ...await ao(e, s, a)
10039
10028
  );
10040
10029
  return r;
10041
10030
  };
10042
- class io {
10031
+ class so {
10043
10032
  constructor(t) {
10044
10033
  this.handleCompleteRender = null;
10045
10034
  const e = /* @__PURE__ */ new Map();
10046
10035
  t.forEach(
10047
10036
  (a) => e.set(
10048
10037
  a.id,
10049
- new lo(
10038
+ new co(
10050
10039
  a.id,
10051
10040
  a.name,
10052
10041
  this,
@@ -10072,17 +10061,17 @@ class io {
10072
10061
  return this.workflowManager;
10073
10062
  }
10074
10063
  }
10075
- const so = () => new Promise((n, t) => {
10064
+ const oo = () => new Promise((n, t) => {
10076
10065
  try {
10077
10066
  const a = pt().getContext("webgl2");
10078
10067
  n(!!a);
10079
10068
  } catch {
10080
10069
  n(!1);
10081
10070
  }
10082
- }), oo = so();
10083
- class lo {
10071
+ }), lo = oo();
10072
+ class co {
10084
10073
  constructor(t, e, a, r, i) {
10085
- this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Qn(2), this.id = t, this.name = e, this.service = a, this.panelSize = r, this.getWorkflowManager = i;
10074
+ this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Rn(2), this.id = t, this.name = e, this.service = a, this.panelSize = r, this.getWorkflowManager = i;
10086
10075
  }
10087
10076
  getID() {
10088
10077
  return this.id;
@@ -10136,10 +10125,10 @@ class lo {
10136
10125
  return;
10137
10126
  }
10138
10127
  this.renderQueue.enqueue(
10139
- new co(
10128
+ new Ao(
10140
10129
  this.getID(),
10141
10130
  a,
10142
- await oo,
10131
+ await lo,
10143
10132
  () => {
10144
10133
  this.markLastCompletedStaticRender(), this.setStaticContextDirty(!0);
10145
10134
  },
@@ -10149,7 +10138,7 @@ class lo {
10149
10138
  );
10150
10139
  }
10151
10140
  }
10152
- class co extends Nn {
10141
+ class Ao extends Qn {
10153
10142
  constructor(t, e, a, r, i, s) {
10154
10143
  super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = r, this.layouts = i, this.getWorkflowManager = s;
10155
10144
  }
@@ -10219,7 +10208,7 @@ class co extends Nn {
10219
10208
  h.resize(l, c), await h.render(), this.onRender();
10220
10209
  }
10221
10210
  }
10222
- const yd = (n, t) => {
10211
+ const Sd = (n, t) => {
10223
10212
  const e = [];
10224
10213
  return n.forEach((a) => {
10225
10214
  const r = t.steps.find((i) => i.stepName === a.stepName);
@@ -10230,13 +10219,13 @@ const yd = (n, t) => {
10230
10219
  }
10231
10220
  });
10232
10221
  }), e;
10233
- }, Sd = async (n, t, e, a) => {
10222
+ }, vd = async (n, t, e, a) => {
10234
10223
  let r = {
10235
10224
  serializableWorkflow: { steps: [] },
10236
10225
  layouts: {}
10237
10226
  };
10238
- r = new O(e.map((l) => new jn(l))).apply(r);
10239
- const s = await ro(n, t, e, a);
10227
+ r = new O(e.map((l) => new Yn(l))).apply(r);
10228
+ const s = await io(n, t, e, a);
10240
10229
  return new O(s).apply(r);
10241
10230
  }, ie = C`
10242
10231
  fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
@@ -10260,7 +10249,7 @@ const yd = (n, t) => {
10260
10249
  }
10261
10250
  }
10262
10251
  }
10263
- `, Ao = C`
10252
+ `, uo = C`
10264
10253
  ${ie}
10265
10254
  mutation CreateGlobalPropertyState($bundleId: String!) {
10266
10255
  globalPropertyStateCreate(bundleId: $bundleId) {
@@ -10270,7 +10259,7 @@ const yd = (n, t) => {
10270
10259
  }
10271
10260
  }
10272
10261
  }
10273
- `, uo = C`
10262
+ `, ho = C`
10274
10263
  ${ie}
10275
10264
  mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
10276
10265
  globalPropertyStateUpdate(id: $id, aspects: $aspects) {
@@ -10280,7 +10269,7 @@ const yd = (n, t) => {
10280
10269
  }
10281
10270
  }
10282
10271
  }
10283
- `, ho = C`
10272
+ `, mo = C`
10284
10273
  ${ie}
10285
10274
  query GetGlobalPropertyState($bundleId: String!) {
10286
10275
  globalPropertyState(bundleId: $bundleId) {
@@ -10290,14 +10279,14 @@ const yd = (n, t) => {
10290
10279
  }
10291
10280
  }
10292
10281
  }
10293
- `, vd = async (n) => (await v.getShadowGraphqlClient().query({
10294
- query: ho,
10282
+ `, Ed = async (n) => (await v.getShadowGraphqlClient().query({
10283
+ query: mo,
10295
10284
  fetchPolicy: "cache-first",
10296
10285
  errorPolicy: "all",
10297
10286
  variables: {
10298
10287
  bundleId: n
10299
10288
  }
10300
- })).data.globalPropertyState, mo = (n) => C`
10289
+ })).data.globalPropertyState, go = (n) => C`
10301
10290
  ${ae}
10302
10291
  fragment ProductFields on Product {
10303
10292
  id
@@ -10343,7 +10332,7 @@ const yd = (n, t) => {
10343
10332
  }
10344
10333
  }
10345
10334
  `, Pa = (n) => C`
10346
- ${mo(n)}
10335
+ ${go(n)}
10347
10336
  fragment ProductCollectionProductFields on ProductCollectionProduct {
10348
10337
  id
10349
10338
  productId
@@ -10423,7 +10412,7 @@ const yd = (n, t) => {
10423
10412
  }
10424
10413
  }
10425
10414
  }
10426
- `, go = (n) => C`
10415
+ `, po = (n) => C`
10427
10416
  ${ie}
10428
10417
  ${se(n)}
10429
10418
  query GetBundle($id: String!) {
@@ -10437,6 +10426,8 @@ const yd = (n, t) => {
10437
10426
  id
10438
10427
  dispatchDate
10439
10428
  purchaseOrder
10429
+ createdAt
10430
+ updatedAt
10440
10431
  completed
10441
10432
  template
10442
10433
  workflowViewerLink
@@ -10512,7 +10503,7 @@ const yd = (n, t) => {
10512
10503
  }
10513
10504
  }
10514
10505
  }
10515
- `, po = C`
10506
+ `, fo = C`
10516
10507
  query GetBundlesForCustomer($id: String!) {
10517
10508
  customers(ids: [$id]) {
10518
10509
  bundleStakeholders {
@@ -10541,7 +10532,7 @@ const yd = (n, t) => {
10541
10532
  }
10542
10533
  }
10543
10534
  }
10544
- `, fo = C`
10535
+ `, Co = C`
10545
10536
  ${Pa(!1)}
10546
10537
  query GetProductCollectionProducts($id: String!, $productIds: [String!]) {
10547
10538
  productCollections(ids: [$id], productIds: $productIds) {
@@ -10551,7 +10542,7 @@ const yd = (n, t) => {
10551
10542
  }
10552
10543
  }
10553
10544
  }
10554
- `, Co = C`
10545
+ `, wo = C`
10555
10546
  query GetProductCollectionForFilteredProducts(
10556
10547
  $id: String!
10557
10548
  $filters: ProductCollectionProductFilterInput
@@ -10574,7 +10565,7 @@ const yd = (n, t) => {
10574
10565
  }
10575
10566
  }
10576
10567
  }
10577
- `, wo = C`
10568
+ `, yo = C`
10578
10569
  ${Pa(!0)}
10579
10570
  query GetProductCollectionForProductsFeed(
10580
10571
  $id: String!
@@ -10606,7 +10597,7 @@ const yd = (n, t) => {
10606
10597
  }
10607
10598
  }
10608
10599
  }
10609
- `, yo = (n) => C`
10600
+ `, So = (n) => C`
10610
10601
  ${se(n)}
10611
10602
  mutation CreateBundle(
10612
10603
  $collectionId: String
@@ -10635,7 +10626,7 @@ const yd = (n, t) => {
10635
10626
  }
10636
10627
  }
10637
10628
  }
10638
- `, So = (n) => C`
10629
+ `, vo = (n) => C`
10639
10630
  ${ie}
10640
10631
  ${se(n)}
10641
10632
  mutation DuplicateBundle(
@@ -10697,19 +10688,19 @@ const yd = (n, t) => {
10697
10688
  id
10698
10689
  }
10699
10690
  }
10700
- `, vo = C`
10691
+ `, Eo = C`
10701
10692
  mutation BundleAddTransaction($id: String!, $transactionId: String!) {
10702
10693
  bundleAddTransaction(id: $id, transactionId: $transactionId) {
10703
10694
  id
10704
10695
  }
10705
10696
  }
10706
- `, Eo = C`
10697
+ `, bo = C`
10707
10698
  mutation BundleAddTransactions($id: String!, $transactionIds: [String!]!, $transactionOwnerIds: [String!]) {
10708
10699
  bundleAddTransactions(id: $id, transactionIds: $transactionIds, transactionOwnerIds: $transactionOwnerIds) {
10709
10700
  id
10710
10701
  }
10711
10702
  }
10712
- `, bo = C`
10703
+ `, Io = C`
10713
10704
  mutation BundleRemoveTransaction(
10714
10705
  $id: String!
10715
10706
  $transactionId: String!
@@ -10724,7 +10715,7 @@ const yd = (n, t) => {
10724
10715
  id
10725
10716
  }
10726
10717
  }
10727
- `, Io = C`
10718
+ `, Bo = C`
10728
10719
  mutation BundleRemoveTransactions(
10729
10720
  $id: String!
10730
10721
  $transactionIds: [String!]!
@@ -10739,7 +10730,7 @@ const yd = (n, t) => {
10739
10730
  id
10740
10731
  }
10741
10732
  }
10742
- `, Bo = C`
10733
+ `, Po = C`
10743
10734
  mutation BundleAddStakeholder($id: String!, $details: CustomerDetailsInput!, $type: String!) {
10744
10735
  bundleAddStakeholder(id: $id, details: $details, type: $type) {
10745
10736
  id
@@ -10759,13 +10750,13 @@ const yd = (n, t) => {
10759
10750
  }
10760
10751
  }
10761
10752
  }
10762
- `, Po = C`
10753
+ `, Do = C`
10763
10754
  mutation BundleAddStakeholder($id: String!, $emailAddress: String!) {
10764
10755
  bundleRemoveStakeholder(id: $id, emailAddress: $emailAddress) {
10765
10756
  id
10766
10757
  }
10767
10758
  }
10768
- `, Do = C`
10759
+ `, Fo = C`
10769
10760
  mutation BundleUpdateStakeholders($id: String!, $input: [BundleStakeholderInput!]!) {
10770
10761
  bundleUpdateStakeholders(id: $id, input: $input) {
10771
10762
  id
@@ -10785,13 +10776,13 @@ const yd = (n, t) => {
10785
10776
  }
10786
10777
  }
10787
10778
  }
10788
- `, Fo = C`
10779
+ `, xo = C`
10789
10780
  mutation BundleUpdateTransactionOrder($id: String!, $transactionIds: [String!]!) {
10790
10781
  bundleUpdateTransactionOrder(id: $id, transactionIds: $transactionIds) {
10791
10782
  id
10792
10783
  }
10793
10784
  }
10794
- `, xo = (n) => C`
10785
+ `, ko = (n) => C`
10795
10786
  ${se(n)}
10796
10787
  mutation BundleAssignProductCollection($id: String!, $productCollectionId: String!) {
10797
10788
  bundleAssignProductCollection(id: $id, collectionId: $productCollectionId) {
@@ -10801,13 +10792,13 @@ const yd = (n, t) => {
10801
10792
  }
10802
10793
  }
10803
10794
  }
10804
- `, ko = C`
10795
+ `, Mo = C`
10805
10796
  mutation AssignGlobalPropertyConfiguration($bundleId: String!, $globalPropertyConfigurationId: String!) {
10806
10797
  bundleUpdate(id: $bundleId, globalPropertyConfigurationId: $globalPropertyConfigurationId) {
10807
10798
  id
10808
10799
  }
10809
10800
  }
10810
- `, Mo = (n) => C`
10801
+ `, To = (n) => C`
10811
10802
  query CustomerBundlesFeed($id: String!, $limit: Int!, $offset: Int!, $template: Boolean, $templateStatus: BundleTemplateStatus, $ordered: Boolean) {
10812
10803
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: $template, templateStatus: $templateStatus, ordered: $ordered) {
10813
10804
  items {
@@ -10818,6 +10809,7 @@ const yd = (n, t) => {
10818
10809
  template
10819
10810
  templateStatus
10820
10811
  createdAt
10812
+ updatedAt
10821
10813
  transactionsCount
10822
10814
  productsCount
10823
10815
  totalPriceSubunits
@@ -10843,27 +10835,27 @@ const yd = (n, t) => {
10843
10835
  total
10844
10836
  }
10845
10837
  }
10846
- `, To = C`
10838
+ `, No = C`
10847
10839
  mutation FinalizeUpdateBundle($bundleId: String!) {
10848
10840
  bundleFinalizeUpdate(bundleId: $bundleId)
10849
10841
  }
10850
- `, No = C`
10842
+ `, Qo = C`
10851
10843
  mutation ApproveBundle($id: String!, $note: String, $stakeholderId: String) {
10852
10844
  bundleApprove(id: $id, note: $note, stakeholderId: $stakeholderId)
10853
10845
  }
10854
- `, Qo = C`
10846
+ `, Ro = C`
10855
10847
  mutation RejectBundle($id: String!, $note: String, $stakeholderId: String) {
10856
10848
  bundleReject(id: $id, note: $note, stakeholderId: $stakeholderId)
10857
10849
  }
10858
- `, Ro = C`
10850
+ `, Oo = C`
10859
10851
  mutation ApproveTransaction($id: String!, $note: String) {
10860
10852
  transactionApprove(id: $id, note: $note)
10861
10853
  }
10862
- `, Oo = C`
10854
+ `, $o = C`
10863
10855
  mutation RejectTransaction($id: String!, $note: String) {
10864
10856
  transactionReject(id: $id, note: $note)
10865
10857
  }
10866
- `, $o = C`
10858
+ `, Uo = C`
10867
10859
  mutation CreateRecipient(
10868
10860
  $firstName: String
10869
10861
  $lastName: String
@@ -10905,7 +10897,7 @@ const yd = (n, t) => {
10905
10897
  id
10906
10898
  }
10907
10899
  }
10908
- `, Uo = C`
10900
+ `, Lo = C`
10909
10901
  mutation UpdateRecipient(
10910
10902
  $id: String!
10911
10903
  $firstName: String
@@ -10949,20 +10941,20 @@ const yd = (n, t) => {
10949
10941
  id
10950
10942
  }
10951
10943
  }
10952
- `, Lo = C`
10944
+ `, Vo = C`
10953
10945
  mutation AtttachRecipient($id: String!, $recipientId: String!) {
10954
10946
  transactionAttachRecipient(id: $id, recipientId: $recipientId) {
10955
10947
  id
10956
10948
  }
10957
10949
  }
10958
- `, Vo = C`
10950
+ `, zo = C`
10959
10951
  mutation DeleteBundle($id: String!) {
10960
10952
  bundleDelete(id: $id)
10961
10953
  }
10962
10954
  `;
10963
10955
  var Ue = /* @__PURE__ */ ((n) => (n.Error = "Error", n.Warning = "Warning", n.Info = "Info", n))(Ue || {});
10964
- const zo = 1e3;
10965
- class Xa extends Nn {
10956
+ const Go = 1e3;
10957
+ class Xa extends Qn {
10966
10958
  constructor(t) {
10967
10959
  super(), this.createdAt = /* @__PURE__ */ new Date(), this.update = t;
10968
10960
  }
@@ -10970,11 +10962,11 @@ class Xa extends Nn {
10970
10962
  await this.update(), await new Promise((t) => {
10971
10963
  window.setTimeout(() => {
10972
10964
  t();
10973
- }, zo);
10965
+ }, Go);
10974
10966
  });
10975
10967
  }
10976
10968
  }
10977
- const Go = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
10969
+ const Wo = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
10978
10970
  id: M(),
10979
10971
  panelId: t.name,
10980
10972
  name: t.name,
@@ -10988,14 +10980,14 @@ const Go = (n) => n.sort((t, e) => t.index - e.index).map((t) => ({
10988
10980
  previewRegion: t.previewRegion,
10989
10981
  useEditableArea: t.useEditableArea,
10990
10982
  editableArea: t.editableArea
10991
- })), Wo = (n, t) => {
10983
+ })), qo = (n, t) => {
10992
10984
  const e = n.workflowState, a = e ? JSON.parse(e) : void 0;
10993
- return a ? Object.values(a.layouts).map((r) => r.layout) : Go(t.panels);
10985
+ return a ? Object.values(a.layouts).map((r) => r.layout) : Wo(t.panels);
10994
10986
  };
10995
- class qo {
10987
+ class Ho {
10996
10988
  constructor(t, e, a, r, i, s = !1, o, l = !1, c = !1, d = !1) {
10997
- this.workflowStatePromiseQueue = new Qn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.setWorkflow = async (u) => {
10998
- this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.stepSpecificServices = {}, this.pollers = [], this.allScenes = [], this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.currentAdjustingStepId = "", this.reloadedState ? this.layouts = Object.values(this.reloadedState.layouts || {}).map((m) => m.layout) : u ? this.layouts = Wo(this.experience.getTransaction(), u) : this.layouts = [], this.commandContext.initialize(this.layouts, this.reloadedState), this.renderableContextService = new io(this.layouts), this.renderableContextService.setWorkflowManager(this), u.steps.forEach((m) => {
10989
+ this.workflowStatePromiseQueue = new Rn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.setWorkflow = async (u) => {
10990
+ this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.stepSpecificServices = {}, this.pollers = [], this.allScenes = [], this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.currentAdjustingStepId = "", this.reloadedState ? this.layouts = Object.values(this.reloadedState.layouts || {}).map((m) => m.layout) : u ? this.layouts = qo(this.experience.getTransaction(), u) : this.layouts = [], this.commandContext.initialize(this.layouts, this.reloadedState), this.renderableContextService = new so(this.layouts), this.renderableContextService.setWorkflowManager(this), u.steps.forEach((m) => {
10999
10991
  this.stepTags[m.stepName] = m.tags ?? [];
11000
10992
  });
11001
10993
  const h = this.previewService;
@@ -11014,7 +11006,7 @@ class qo {
11014
11006
  if (h)
11015
11007
  for (const [, m] of h)
11016
11008
  m.render(u);
11017
- }, this.experience = t, this.client = e, this.updateTransaction = a, this.graphQlClient = r, this.reloadedState = i, this.readOnly = s, this.singleVariantsRenderable = c, this.commandContext = new fs(), this.confirmCallbacks = [], this.editedCallbacks = [], this.elementsCallbacks = [], this.informationResultCallbacks = [], this.initCallbacks = [], this.mandatoryCallbacks = [], this.makingAdjustmentsCallback = [], this.metadataCallbacks = [], this.selectionCallbacks = [], this.stepSpecificStorageCallbacks = {}, this.storageCallbacks = [], this.validationCallbacks = [], this.recipientCallbacks = [], this.modelContainer = o, this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.stepSpecificServices = {}, this.pollers = [], this.allScenes = [], this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.currentAdjustingStepId = "", this.isReloadedTransaction = l, d && (this.workflowStatePromiseQueue.enabled = !1);
11009
+ }, this.experience = t, this.client = e, this.updateTransaction = a, this.graphQlClient = r, this.reloadedState = i, this.readOnly = s, this.singleVariantsRenderable = c, this.commandContext = new Cs(), this.confirmCallbacks = [], this.editedCallbacks = [], this.elementsCallbacks = [], this.informationResultCallbacks = [], this.initCallbacks = [], this.mandatoryCallbacks = [], this.makingAdjustmentsCallback = [], this.metadataCallbacks = [], this.selectionCallbacks = [], this.stepSpecificStorageCallbacks = {}, this.storageCallbacks = [], this.validationCallbacks = [], this.recipientCallbacks = [], this.modelContainer = o, this.confirmedDesign = !1, this.editedSteps = {}, this.informationResults = [], this.mandatorySteps = {}, this.pendingUpdates = [], this.selectionCost = 0, this.stepSpecificServices = {}, this.pollers = [], this.allScenes = [], this.stepElements = {}, this.stepInitialised = {}, this.stepMetadata = {}, this.stepSelections = {}, this.storage = {}, this.validationErrors = { steps: /* @__PURE__ */ new Map() }, this.currentAdjustingStepId = "", this.isReloadedTransaction = l, d && (this.workflowStatePromiseQueue.enabled = !1);
11018
11010
  const A = this.experience.getWorkflow();
11019
11011
  A && this.setWorkflow(A);
11020
11012
  }
@@ -11048,7 +11040,7 @@ class qo {
11048
11040
  customField5: g ?? w.recipient.customField5,
11049
11041
  conversionConfigurationId: f || w.recipient.conversionConfigurationId
11050
11042
  }, await this.graphQlClient().mutate({
11051
- mutation: Uo,
11043
+ mutation: Lo,
11052
11044
  errorPolicy: "all",
11053
11045
  fetchPolicy: "no-cache",
11054
11046
  variables: {
@@ -11074,7 +11066,7 @@ class qo {
11074
11066
  });
11075
11067
  else {
11076
11068
  const I = await this.graphQlClient().mutate({
11077
- mutation: $o,
11069
+ mutation: Uo,
11078
11070
  errorPolicy: "all",
11079
11071
  fetchPolicy: "no-cache",
11080
11072
  variables: {
@@ -11117,7 +11109,7 @@ class qo {
11117
11109
  customField5: g,
11118
11110
  conversionConfigurationId: f
11119
11111
  }, await this.graphQlClient().mutate({
11120
- mutation: Lo,
11112
+ mutation: Vo,
11121
11113
  errorPolicy: "all",
11122
11114
  fetchPolicy: "no-cache",
11123
11115
  variables: {
@@ -11135,7 +11127,7 @@ class qo {
11135
11127
  const t = this.experience.getTransaction().recipient;
11136
11128
  if (t?.conversionConfigurationId && !this.recipientConversionConfiguration) {
11137
11129
  const e = await this.graphQlClient().query({
11138
- query: Mi,
11130
+ query: Ti,
11139
11131
  errorPolicy: "all",
11140
11132
  fetchPolicy: "no-cache",
11141
11133
  variables: {
@@ -11154,7 +11146,7 @@ class qo {
11154
11146
  };
11155
11147
  this.reloadedState && this.reloadedState.serializableWorkflow.steps.forEach((o) => {
11156
11148
  this.storage[o.stepName] = o.storage || {};
11157
- }), await this.fetchConversionConfiguration(), this.allScenes = await Xi(t);
11149
+ }), await this.fetchConversionConfiguration(), this.allScenes = await Zi(t);
11158
11150
  const r = wt(this.allScenes, this.stepSelections).map((o) => o.silentSteps).flat(), { stepElements: i, commands: s } = await this.stepElementsForIntroducedSilentSteps(r, !!this.reloadedState);
11159
11151
  this.commandContext.apply(new O(s), !0), this.stepElements = { ...this.stepElements, ...i }, await this.ensureStepsAreLoaded(), this.isReloadedTransaction || this.updateStateWithServer(), this.renderLayouts(), this.reloadedState && e();
11160
11152
  }
@@ -11549,7 +11541,7 @@ class qo {
11549
11541
  }
11550
11542
  async updateTransactionStakeholders() {
11551
11543
  const t = await v.getShadowGraphqlClient().query({
11552
- query: Oi,
11544
+ query: $i,
11553
11545
  errorPolicy: "all",
11554
11546
  fetchPolicy: "no-cache",
11555
11547
  variables: {
@@ -11560,7 +11552,7 @@ class qo {
11560
11552
  }
11561
11553
  async approveTransaction(t) {
11562
11554
  await v.getShadowGraphqlClient().mutate({
11563
- mutation: Ro,
11555
+ mutation: Oo,
11564
11556
  errorPolicy: "all",
11565
11557
  fetchPolicy: "no-cache",
11566
11558
  variables: {
@@ -11571,7 +11563,7 @@ class qo {
11571
11563
  }
11572
11564
  async rejectTransaction(t) {
11573
11565
  await v.getShadowGraphqlClient().mutate({
11574
- mutation: Oo,
11566
+ mutation: $o,
11575
11567
  errorPolicy: "all",
11576
11568
  fetchPolicy: "no-cache",
11577
11569
  variables: {
@@ -11631,7 +11623,7 @@ class qo {
11631
11623
  switch (this.stepInitialised[l.stepName] = !0, l.type) {
11632
11624
  case E.DigitalContent:
11633
11625
  a.push(
11634
- Jn.init(
11626
+ Kn.init(
11635
11627
  l,
11636
11628
  this,
11637
11629
  this.reloadedState
@@ -11648,27 +11640,27 @@ class qo {
11648
11640
  break;
11649
11641
  case E.Material:
11650
11642
  a.push(
11651
- Kn.init(l, this, this.reloadedState)
11643
+ _n.init(l, this, this.reloadedState)
11652
11644
  );
11653
11645
  break;
11654
11646
  case E.Model:
11655
- a.push(_n.init(l, this, this.reloadedState));
11647
+ a.push(Xn.init(l, this, this.reloadedState));
11656
11648
  break;
11657
11649
  case E.Module:
11658
11650
  this.stepSpecificServices[l.stepName] = {
11659
- module: await er(l.data.module)
11651
+ module: await ar(l.data.module)
11660
11652
  }, a.push(
11661
- Xn.init(l, this, this.reloadedState)
11653
+ Zn.init(l, this, this.reloadedState)
11662
11654
  );
11663
11655
  break;
11664
11656
  case E.Picture:
11665
11657
  a.push(
11666
- Zn.init(l, this, this.reloadedState)
11658
+ tr.init(l, this, this.reloadedState)
11667
11659
  );
11668
11660
  break;
11669
11661
  case E.Question:
11670
11662
  a.push(
11671
- tr.init(l, this, this.reloadedState)
11663
+ er.init(l, this, this.reloadedState)
11672
11664
  );
11673
11665
  break;
11674
11666
  case E.Shape:
@@ -11734,7 +11726,7 @@ class qo {
11734
11726
  this.validationCallbacks.forEach((t) => t(this.validationErrors));
11735
11727
  }
11736
11728
  traversableScenes() {
11737
- return es(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
11729
+ return as(this.allScenes, this.stepSelections, this.singleVariantsRenderable);
11738
11730
  }
11739
11731
  }
11740
11732
  class it {
@@ -11950,7 +11942,7 @@ const qt = class qt {
11950
11942
  };
11951
11943
  qt.updateState = /* @__PURE__ */ new Map();
11952
11944
  let X = qt;
11953
- class Ho extends X {
11945
+ class jo extends X {
11954
11946
  constructor(t, e, a) {
11955
11947
  super(t, e, a);
11956
11948
  }
@@ -12024,12 +12016,12 @@ class Ho extends X {
12024
12016
  return this.step.data.pmsPickerEnabled ?? !1;
12025
12017
  }
12026
12018
  }
12027
- class jo extends X {
12019
+ class Yo extends X {
12028
12020
  constructor(t, e, a) {
12029
12021
  super(t, e, a);
12030
12022
  }
12031
12023
  selectVariant(t) {
12032
- return Kn.selectVariant(
12024
+ return _n.selectVariant(
12033
12025
  this.step,
12034
12026
  t.getResource(),
12035
12027
  this.manager,
@@ -12037,12 +12029,12 @@ class jo extends X {
12037
12029
  );
12038
12030
  }
12039
12031
  }
12040
- class Yo extends X {
12032
+ class Jo extends X {
12041
12033
  constructor(t, e, a) {
12042
12034
  super(t, e, a);
12043
12035
  }
12044
12036
  selectVariant(t) {
12045
- return _n.selectVariant(
12037
+ return Xn.selectVariant(
12046
12038
  this.step,
12047
12039
  t.getResource(),
12048
12040
  this.manager,
@@ -12050,7 +12042,7 @@ class Yo extends X {
12050
12042
  );
12051
12043
  }
12052
12044
  }
12053
- class Jo extends X {
12045
+ class Ko extends X {
12054
12046
  constructor(t, e, a) {
12055
12047
  super(t, e, a);
12056
12048
  }
@@ -12060,7 +12052,7 @@ class Jo extends X {
12060
12052
  * @returns A promise that can be awaited to ensure the new image asset has been updated on the design.
12061
12053
  */
12062
12054
  selectVariant(t) {
12063
- return Zn.selectVariant(
12055
+ return tr.selectVariant(
12064
12056
  this.step,
12065
12057
  t.getResource(),
12066
12058
  this.manager,
@@ -12068,14 +12060,14 @@ class Jo extends X {
12068
12060
  );
12069
12061
  }
12070
12062
  }
12071
- class Ko extends X {
12063
+ class _o extends X {
12072
12064
  constructor(t, e, a) {
12073
12065
  super(t, e, a);
12074
12066
  }
12075
12067
  async selectVariant(t) {
12076
12068
  if (!t.getId())
12077
12069
  throw new Error("Unable to select variant with a null ID");
12078
- await tr.selectVariant(this.step, t.getId(), this.manager);
12070
+ await er.selectVariant(this.step, t.getId(), this.manager);
12079
12071
  }
12080
12072
  /**
12081
12073
  * The way that this step expects to be rendered.
@@ -12084,7 +12076,7 @@ class Ko extends X {
12084
12076
  return this.step.data.displayType || this.step.option?.displayType;
12085
12077
  }
12086
12078
  }
12087
- class _o extends X {
12079
+ class Xo extends X {
12088
12080
  constructor(t, e, a) {
12089
12081
  super(t, e, a);
12090
12082
  }
@@ -12143,7 +12135,7 @@ class _o extends X {
12143
12135
  return t;
12144
12136
  }
12145
12137
  }
12146
- class Xo extends X {
12138
+ class Zo extends X {
12147
12139
  constructor(t, e, a) {
12148
12140
  super(t, e, a);
12149
12141
  }
@@ -12336,7 +12328,7 @@ class Xo extends X {
12336
12328
  await G.changeStrokeColor(this.step, t, e, this.manager);
12337
12329
  }
12338
12330
  }
12339
- class Zo extends X {
12331
+ class tl extends X {
12340
12332
  constructor(t, e, a) {
12341
12333
  super(t, e, a);
12342
12334
  }
@@ -12349,7 +12341,7 @@ class Zo extends X {
12349
12341
  return this.step.data.content;
12350
12342
  }
12351
12343
  }
12352
- class tl extends X {
12344
+ class el extends X {
12353
12345
  constructor(t, e, a) {
12354
12346
  super(t, e, a);
12355
12347
  }
@@ -12367,7 +12359,7 @@ class tl extends X {
12367
12359
  * @returns The final URL string for the QR code.
12368
12360
  */
12369
12361
  async selectVideo(t) {
12370
- return Jn.regenerateQRCode(
12362
+ return Kn.regenerateQRCode(
12371
12363
  this.manager.getRegionElements(this.step.stepName),
12372
12364
  t.key,
12373
12365
  this.manager,
@@ -12375,7 +12367,7 @@ class tl extends X {
12375
12367
  );
12376
12368
  }
12377
12369
  }
12378
- class el extends X {
12370
+ class al extends X {
12379
12371
  constructor(t, e, a) {
12380
12372
  super(t, e, a);
12381
12373
  }
@@ -12404,7 +12396,7 @@ class el extends X {
12404
12396
  return this.manager.getStepStorage(this.step.stepName)?.text || "";
12405
12397
  }
12406
12398
  setText(t) {
12407
- Xn.changeText(this.step, t, this.manager, (e) => {
12399
+ Zn.changeText(this.step, t, this.manager, (e) => {
12408
12400
  if (e) {
12409
12401
  const a = [
12410
12402
  ...this.manager.getInformationResults(),
@@ -12426,33 +12418,33 @@ class Ae {
12426
12418
  static get(t, e) {
12427
12419
  switch (e.type) {
12428
12420
  case E.DigitalContent:
12429
- return new tl(t, e, t.getStepTags(e.stepName));
12421
+ return new el(t, e, t.getStepTags(e.stepName));
12430
12422
  case E.Information:
12431
- return new Zo(t, e, t.getStepTags(e.stepName));
12423
+ return new tl(t, e, t.getStepTags(e.stepName));
12432
12424
  case E.Question:
12433
- return new Ko(t, e, t.getStepTags(e.stepName));
12425
+ return new _o(t, e, t.getStepTags(e.stepName));
12434
12426
  case E.Text:
12435
- return new Xo(t, e, t.getStepTags(e.stepName));
12427
+ return new Zo(t, e, t.getStepTags(e.stepName));
12436
12428
  case E.Illustration:
12437
- return new Ho(t, e, t.getStepTags(e.stepName));
12429
+ return new jo(t, e, t.getStepTags(e.stepName));
12438
12430
  case E.Picture:
12439
- return new Jo(t, e, t.getStepTags(e.stepName));
12431
+ return new Ko(t, e, t.getStepTags(e.stepName));
12440
12432
  case E.Shape:
12441
- return new _o(t, e, t.getStepTags(e.stepName));
12433
+ return new Xo(t, e, t.getStepTags(e.stepName));
12442
12434
  case E.Material:
12443
- return new jo(t, e, t.getStepTags(e.stepName));
12444
- case E.Model:
12445
12435
  return new Yo(t, e, t.getStepTags(e.stepName));
12436
+ case E.Model:
12437
+ return new Jo(t, e, t.getStepTags(e.stepName));
12446
12438
  case E.Frame:
12447
- return new ac(t, e, t.getStepTags(e.stepName));
12439
+ return new nc(t, e, t.getStepTags(e.stepName));
12448
12440
  case E.Module:
12449
- return new el(t, e, t.getStepTags(e.stepName));
12441
+ return new al(t, e, t.getStepTags(e.stepName));
12450
12442
  default:
12451
12443
  throw new T(`Step type ${e.type} not yet supported in Core SDK`);
12452
12444
  }
12453
12445
  }
12454
12446
  }
12455
- const ar = C`
12447
+ const nr = C`
12456
12448
  fragment CreateDesignTransaction on Transaction {
12457
12449
  id
12458
12450
  designName
@@ -12477,8 +12469,8 @@ const ar = C`
12477
12469
  externalProductVariantId
12478
12470
  }
12479
12471
  }
12480
- `, al = C`
12481
- ${ar}
12472
+ `, nl = C`
12473
+ ${nr}
12482
12474
  mutation CreateDesign(
12483
12475
  $name: String!
12484
12476
  $layouts: [LayoutInput]!
@@ -12509,8 +12501,8 @@ const ar = C`
12509
12501
  }
12510
12502
  }
12511
12503
  }
12512
- `, nl = C`
12513
- ${ar}
12504
+ `, rl = C`
12505
+ ${nr}
12514
12506
  mutation CreateDesigns($inputs: [DesignCreateInput]!) {
12515
12507
  designCreateMany(inputs: $inputs) {
12516
12508
  id
@@ -12528,7 +12520,7 @@ function Gt(n) {
12528
12520
  const t = JSON.parse(atob(n.split(".")[1])).exp;
12529
12521
  return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
12530
12522
  }
12531
- const rl = async (n, t) => {
12523
+ const il = async (n, t) => {
12532
12524
  const e = {};
12533
12525
  try {
12534
12526
  if (!t) throw new Error();
@@ -12537,7 +12529,7 @@ const rl = async (n, t) => {
12537
12529
  o && !Gt(o) && (e.Authorization = `Bearer ${o}`);
12538
12530
  }
12539
12531
  return (await v.getShadowGraphqlClient().mutate({
12540
- mutation: al,
12532
+ mutation: nl,
12541
12533
  errorPolicy: "all",
12542
12534
  fetchPolicy: "no-cache",
12543
12535
  variables: {
@@ -12554,7 +12546,7 @@ const rl = async (n, t) => {
12554
12546
  headers: e
12555
12547
  }
12556
12548
  })).data?.designCreate;
12557
- }, il = async (n, t) => {
12549
+ }, sl = async (n, t) => {
12558
12550
  const e = {};
12559
12551
  try {
12560
12552
  if (!t) throw new Error();
@@ -12563,7 +12555,7 @@ const rl = async (n, t) => {
12563
12555
  o && !Gt(o) && (e.Authorization = `Bearer ${o}`);
12564
12556
  }
12565
12557
  return (await v.getShadowGraphqlClient().mutate({
12566
- mutation: nl,
12558
+ mutation: rl,
12567
12559
  errorPolicy: "all",
12568
12560
  fetchPolicy: "no-cache",
12569
12561
  variables: {
@@ -12618,7 +12610,7 @@ const rl = async (n, t) => {
12618
12610
  return t.steps.forEach((i) => {
12619
12611
  Object.assign(r, a(i));
12620
12612
  }), r;
12621
- }, sl = (n, t, e, a) => {
12613
+ }, ol = (n, t, e, a) => {
12622
12614
  const r = {};
12623
12615
  let i = {};
12624
12616
  a && (i = a);
@@ -12638,8 +12630,8 @@ const rl = async (n, t) => {
12638
12630
  });
12639
12631
  }
12640
12632
  return r;
12641
- }, nr = (n, t, e, a, r, i, s, o) => {
12642
- const l = t.basePrice || 0, c = n.priceModifierTotal || 0, d = sl(a, e, void 0, i), u = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), h = {
12633
+ }, rr = (n, t, e, a, r, i, s, o) => {
12634
+ const l = t.basePrice || 0, c = n.priceModifierTotal || 0, d = ol(a, e, void 0, i), u = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), h = {
12643
12635
  additionalExternalProductId: n.integrationProduct?.additionalExternalProductId,
12644
12636
  additionalExternalVariantId: n.integrationProduct?.additionalExternalVariantId,
12645
12637
  baseCost: l,
@@ -12661,12 +12653,12 @@ const rl = async (n, t) => {
12661
12653
  workflowViewerReadOnlyLink: n.workflowViewerReadOnlyLink || ""
12662
12654
  };
12663
12655
  return i && (h.metadata = i), a && (h.selectedVariants = a), r && (h.sku = r), h;
12664
- }, rr = async (n, t, e, a, r, i, s, o, l, c) => {
12656
+ }, ir = async (n, t, e, a, r, i, s, o, l, c) => {
12665
12657
  await (async () => {
12666
12658
  if (c !== void 0) return c;
12667
12659
  await n.outstandingRequestsPromise();
12668
12660
  const F = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(r.id), N = await v.getShadowGraphqlClient().query({
12669
- query: Mn,
12661
+ query: Tn,
12670
12662
  variables: { ids: [r.id] },
12671
12663
  fetchPolicy: "no-cache",
12672
12664
  errorPolicy: "all",
@@ -12752,9 +12744,9 @@ const rl = async (n, t) => {
12752
12744
  cartSelectionsWithPrices: w,
12753
12745
  cartMetadata: p
12754
12746
  };
12755
- }, ol = async (n, t, e, a, r, i, s, o, l, c, d) => {
12747
+ }, ll = async (n, t, e, a, r, i, s, o, l, c, d) => {
12756
12748
  l("workflow.steps.finish.finalize.buildingLayouts");
12757
- const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await rr(
12749
+ const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await ir(
12758
12750
  n,
12759
12751
  t,
12760
12752
  e,
@@ -12766,12 +12758,12 @@ const rl = async (n, t) => {
12766
12758
  d
12767
12759
  );
12768
12760
  l("workflow.steps.finish.finalize.creatingDesign");
12769
- const m = await rl(A), p = m?.transaction?.previewImageLink;
12761
+ const m = await il(A), p = m?.transaction?.previewImageLink;
12770
12762
  if (!m?.transaction)
12771
12763
  throw new Error("Failed to create design");
12772
12764
  l("workflow.steps.finish.finalize.updatingTransaction");
12773
12765
  const g = m.transaction;
12774
- return nr(
12766
+ return rr(
12775
12767
  g,
12776
12768
  r,
12777
12769
  t,
@@ -12781,7 +12773,7 @@ const rl = async (n, t) => {
12781
12773
  p,
12782
12774
  m?.processExecution?.id
12783
12775
  );
12784
- }, ll = async (n, t, e) => {
12776
+ }, cl = async (n, t, e) => {
12785
12777
  t("workflow.steps.finish.finalize.buildingLayouts"), await Promise.all(
12786
12778
  n.map(async (o) => {
12787
12779
  await o.workflowManager.outstandingRequestsPromise();
@@ -12789,7 +12781,7 @@ const rl = async (n, t) => {
12789
12781
  );
12790
12782
  const r = await (async () => {
12791
12783
  const l = await v.getShadowGraphqlClient().query({
12792
- query: Mn,
12784
+ query: Tn,
12793
12785
  variables: { ids: n.map((c) => c.transaction.id) },
12794
12786
  fetchPolicy: "no-cache",
12795
12787
  errorPolicy: "all"
@@ -12798,7 +12790,7 @@ const rl = async (n, t) => {
12798
12790
  l.errors && console.log("Server Error:", c.message);
12799
12791
  }), null) : l.data?.transactions ? l.data.transactions.map((c) => c.workflowState ?? null) : null;
12800
12792
  })(), i = await Promise.all(
12801
- n.map(async (o, l) => await rr(
12793
+ n.map(async (o, l) => await ir(
12802
12794
  o.workflowManager,
12803
12795
  o.workflow,
12804
12796
  o.layouts,
@@ -12812,12 +12804,12 @@ const rl = async (n, t) => {
12812
12804
  ))
12813
12805
  );
12814
12806
  t("workflow.steps.finish.finalize.creatingDesign");
12815
- const s = await il(i.map((o) => o.designDetails));
12807
+ const s = await sl(i.map((o) => o.designDetails));
12816
12808
  if (!s)
12817
12809
  throw new Error("Failed to create designs");
12818
12810
  return t("workflow.steps.finish.finalize.updatingTransaction"), s.map((o, l) => {
12819
12811
  const c = n[l], d = i[l], A = o.transaction;
12820
- return nr(
12812
+ return rr(
12821
12813
  A,
12822
12814
  c.product,
12823
12815
  c.workflow,
@@ -12829,7 +12821,7 @@ const rl = async (n, t) => {
12829
12821
  );
12830
12822
  });
12831
12823
  };
12832
- class cl {
12824
+ class dl {
12833
12825
  constructor() {
12834
12826
  this.localPersistenceKey = "designTransactions", this.storageMethod = "Local", this.designSavedListeners = [];
12835
12827
  }
@@ -12896,7 +12888,7 @@ class cl {
12896
12888
  throw new T("Unexpected storage method requested");
12897
12889
  }
12898
12890
  }
12899
- const Xe = new cl(), dl = C`
12891
+ const Xe = new dl(), Al = C`
12900
12892
  mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
12901
12893
  transactionAddStakeholder(id: $id, details: $details, type: $type) {
12902
12894
  id
@@ -12910,7 +12902,7 @@ const Xe = new cl(), dl = C`
12910
12902
  }
12911
12903
  }
12912
12904
  }
12913
- `, Al = C`
12905
+ `, ul = C`
12914
12906
  mutation AddAddressToTransaction(
12915
12907
  $transactionId: String!
12916
12908
  $streetAddress: String
@@ -12932,13 +12924,13 @@ const Xe = new cl(), dl = C`
12932
12924
  id
12933
12925
  }
12934
12926
  }
12935
- `, ul = C`
12927
+ `, hl = C`
12936
12928
  mutation AddOrganizationToTransaction($transactionId: String!, $organizationName: String!) {
12937
12929
  organizationAttachToTransaction(transactionId: $transactionId, organizationName: $organizationName) {
12938
12930
  id
12939
12931
  }
12940
12932
  }
12941
- `, hl = C`
12933
+ `, ml = C`
12942
12934
  ${ae}
12943
12935
  mutation TransactionUpdateIntegrationProduct($id: String!, $integrationProductId: String!) {
12944
12936
  transactionUpdateIntegrationProduct(id: $id, integrationProductId: $integrationProductId) {
@@ -13038,8 +13030,8 @@ const Xe = new cl(), dl = C`
13038
13030
  }
13039
13031
  }
13040
13032
  `;
13041
- var ml = /* @__PURE__ */ ((n) => (n.QuantityChanged = "QuantityChanged", n.PriceBreakChanged = "PriceBreakChanged", n.SelectionChanged = "SelectionChanged", n))(ml || {});
13042
- class gl {
13033
+ var gl = /* @__PURE__ */ ((n) => (n.QuantityChanged = "QuantityChanged", n.PriceBreakChanged = "PriceBreakChanged", n.SelectionChanged = "SelectionChanged", n))(gl || {});
13034
+ class pl {
13043
13035
  constructor(t, e) {
13044
13036
  this.cachedStepHandles = /* @__PURE__ */ new Map(), this.profanityList = [], this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = hn(async () => {
13045
13037
  await Xe.getSavedDesignByTransaction(this.getTransaction().id) && this.save();
@@ -13054,7 +13046,7 @@ class gl {
13054
13046
  } catch (s) {
13055
13047
  i(s);
13056
13048
  }
13057
- }), this.client = t, this.transaction = e.transaction, this.workflow = e.workflow, this.profanityList = this.transaction.product?.profanities?.map((a) => a.word) || [], this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new qo(
13049
+ }), this.client = t, this.transaction = e.transaction, this.workflow = e.workflow, this.profanityList = this.transaction.product?.profanities?.map((a) => a.word) || [], this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.graphQlClient = e.graphQlClient, this.workflowManager = new Ho(
13058
13050
  this,
13059
13051
  t,
13060
13052
  (a) => {
@@ -13100,7 +13092,7 @@ class gl {
13100
13092
  async setProduct(t) {
13101
13093
  this.workflow = void 0;
13102
13094
  const e = await this.graphQlClient().mutate({
13103
- mutation: hl,
13095
+ mutation: ml,
13104
13096
  variables: {
13105
13097
  id: this.getTransaction().id,
13106
13098
  integrationProductId: t
@@ -13123,7 +13115,7 @@ class gl {
13123
13115
  try {
13124
13116
  const i = r?.getDefaultWorkflow();
13125
13117
  if (i) {
13126
- const s = await _l(i.getId());
13118
+ const s = await Xl(i.getId());
13127
13119
  await this.setWorkflow(s), console.log("Setting Product - Workflow set to default for product.");
13128
13120
  }
13129
13121
  } catch {
@@ -13135,7 +13127,7 @@ class gl {
13135
13127
  }
13136
13128
  async setWorkflow(t) {
13137
13129
  return this.workflow = t, await this.graphQlClient().mutate({
13138
- mutation: ki,
13130
+ mutation: Mi,
13139
13131
  variables: {
13140
13132
  id: this.getTransaction().id,
13141
13133
  workflowId: t.id
@@ -13144,7 +13136,7 @@ class gl {
13144
13136
  }
13145
13137
  async attachAddress(t, e, a, r, i, s) {
13146
13138
  await this.graphQlClient().mutate({
13147
- mutation: Al,
13139
+ mutation: ul,
13148
13140
  variables: {
13149
13141
  transactionId: this.getTransaction().id,
13150
13142
  streetAddress: t || void 0,
@@ -13158,7 +13150,7 @@ class gl {
13158
13150
  }
13159
13151
  async attachOrganization(t) {
13160
13152
  await this.graphQlClient().mutate({
13161
- mutation: ul,
13153
+ mutation: hl,
13162
13154
  variables: {
13163
13155
  transactionId: this.getTransaction().id,
13164
13156
  organizationName: t
@@ -13345,7 +13337,7 @@ class gl {
13345
13337
  }
13346
13338
  async assignCustomerDetails(t) {
13347
13339
  const a = (await this.graphQlClient().mutate({
13348
- mutation: dl,
13340
+ mutation: Al,
13349
13341
  variables: {
13350
13342
  id: this.getTransaction().id,
13351
13343
  details: t,
@@ -13408,7 +13400,7 @@ class gl {
13408
13400
  if (!i)
13409
13401
  throw new T("Workflow undefined! Cannot finish an experience without a workflow.");
13410
13402
  return a.completed ? (await this.graphQlClient().mutate({
13411
- mutation: $i,
13403
+ mutation: Ui,
13412
13404
  variables: {
13413
13405
  transactionId: a.id
13414
13406
  }
@@ -13420,7 +13412,7 @@ class gl {
13420
13412
  transactionId: a.id,
13421
13413
  workflowViewerLink: "",
13422
13414
  workflowViewerReadOnlyLink: ""
13423
- }) : ol(
13415
+ }) : ll(
13424
13416
  this.workflowManager,
13425
13417
  i,
13426
13418
  this.workflowManager.getLayouts(),
@@ -13451,7 +13443,7 @@ class gl {
13451
13443
  title: i.stepTitle,
13452
13444
  properties: []
13453
13445
  };
13454
- if (l && fl(i, a) && c.properties.push({
13446
+ if (l && Cl(i, a) && c.properties.push({
13455
13447
  type: "selection",
13456
13448
  value: l.name,
13457
13449
  priceModifier: l.priceModifier
@@ -13523,7 +13515,7 @@ class gl {
13523
13515
  ), this.checkForPriceBreakChanges();
13524
13516
  const e = this.getTransaction();
13525
13517
  await this.graphQlClient().mutate({
13526
- mutation: xi,
13518
+ mutation: ki,
13527
13519
  variables: {
13528
13520
  id: e.id,
13529
13521
  quantity: t
@@ -13545,7 +13537,7 @@ class gl {
13545
13537
  (this.eventCallbacks.get(t) || []).forEach((e) => e(this));
13546
13538
  }
13547
13539
  }
13548
- const pl = (n) => {
13540
+ const fl = (n) => {
13549
13541
  if ([
13550
13542
  E.Question,
13551
13543
  E.Frame,
@@ -13560,15 +13552,15 @@ const pl = (n) => {
13560
13552
  return !!e.displaySelectionOnFinishStep || !!e.displaySelectionsOnFinishStep;
13561
13553
  }
13562
13554
  return !1;
13563
- }, fl = (n, t) => {
13564
- if (!pl(n)) return !1;
13555
+ }, Cl = (n, t) => {
13556
+ if (!fl(n)) return !1;
13565
13557
  if (n.option && (n.option.variants || []).length > 1) {
13566
13558
  const e = t[n.stepName];
13567
13559
  return !!(e && e.selections.length > 0);
13568
13560
  }
13569
13561
  return !1;
13570
13562
  };
13571
- class Cl {
13563
+ class wl {
13572
13564
  constructor(t) {
13573
13565
  this.handleCache = {}, this.bundle = t;
13574
13566
  }
@@ -13610,7 +13602,7 @@ class Cl {
13610
13602
  async createHandle(t) {
13611
13603
  switch (t.type) {
13612
13604
  case L.FileUpload:
13613
- return new wl(this.bundle, t).initialize();
13605
+ return new yl(this.bundle, t).initialize();
13614
13606
  case L.ColorOption:
13615
13607
  return new tn(
13616
13608
  this.bundle,
@@ -13619,10 +13611,10 @@ class Cl {
13619
13611
  );
13620
13612
  case L.Option: {
13621
13613
  const e = t.entityId ? await q.getOption(t.entityId) : void 0;
13622
- return e?.type === "Color" ? new tn(this.bundle, t, e) : new ir(this.bundle, t, e);
13614
+ return e?.type === "Color" ? new tn(this.bundle, t, e) : new sr(this.bundle, t, e);
13623
13615
  }
13624
13616
  case L.Text:
13625
- return new yl(this.bundle, t);
13617
+ return new Sl(this.bundle, t);
13626
13618
  default:
13627
13619
  throw new Error("Unhandled Global Property Aspect Type");
13628
13620
  }
@@ -13689,7 +13681,7 @@ class Da {
13689
13681
  return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
13690
13682
  }
13691
13683
  }
13692
- class wl extends Da {
13684
+ class yl extends Da {
13693
13685
  constructor(t, e) {
13694
13686
  super(t, e);
13695
13687
  }
@@ -13915,7 +13907,7 @@ class wl extends Da {
13915
13907
  );
13916
13908
  }
13917
13909
  }
13918
- class yl extends Da {
13910
+ class Sl extends Da {
13919
13911
  constructor(t, e) {
13920
13912
  super(t, e);
13921
13913
  }
@@ -13954,7 +13946,7 @@ class yl extends Da {
13954
13946
  await Promise.all(r);
13955
13947
  }
13956
13948
  }
13957
- class ir extends Da {
13949
+ class sr extends Da {
13958
13950
  constructor(t, e, a) {
13959
13951
  super(t, e), this.optionResource = a;
13960
13952
  }
@@ -14016,7 +14008,7 @@ class ir extends Da {
14016
14008
  await Promise.all(r);
14017
14009
  }
14018
14010
  }
14019
- class tn extends ir {
14011
+ class tn extends sr {
14020
14012
  constructor(t, e, a) {
14021
14013
  super(t, e, a);
14022
14014
  }
@@ -14066,8 +14058,8 @@ class tn extends ir {
14066
14058
  return this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)?.customColor || this.getCurrentVariant()?.getColor() || "#ffffff";
14067
14059
  }
14068
14060
  }
14069
- const Sl = (n, t, e, a) => n.flatMap((r) => r.getSteps()).filter((r) => r.getGlobalPropertyAspects(t).includes(e) && r.getType() === a), vl = (n, t, e) => {
14070
- const r = Sl(
14061
+ const vl = (n, t, e, a) => n.flatMap((r) => r.getSteps()).filter((r) => r.getGlobalPropertyAspects(t).includes(e) && r.getType() === a), El = (n, t, e) => {
14062
+ const r = vl(
14071
14063
  n,
14072
14064
  t,
14073
14065
  e,
@@ -14080,24 +14072,24 @@ const Sl = (n, t, e, a) => n.flatMap((r) => r.getSteps()).filter((r) => r.getGlo
14080
14072
  };
14081
14073
  function ua(n, t) {
14082
14074
  function e(a) {
14083
- if (typeof a > "u" || !Array.isArray(a) && !bl(a))
14075
+ if (typeof a > "u" || !Array.isArray(a) && !Il(a))
14084
14076
  return a;
14085
14077
  if (Array.isArray(a))
14086
14078
  return ua(a, t);
14087
14079
  let r = {};
14088
14080
  for (const [i, s] of Object.entries(a))
14089
- r[i] = El(s) ? s : ua(s, t);
14090
- return Dr(r, t);
14081
+ r[i] = bl(s) ? s : ua(s, t);
14082
+ return Fr(r, t);
14091
14083
  }
14092
14084
  return Array.isArray(n) ? n.map(e) : e(n);
14093
14085
  }
14094
- function El(n) {
14086
+ function bl(n) {
14095
14087
  return n == null;
14096
14088
  }
14097
- function bl(n) {
14089
+ function Il(n) {
14098
14090
  return typeof n == "object" && !Array.isArray(n) && n !== null;
14099
14091
  }
14100
- function sr(n) {
14092
+ function or(n) {
14101
14093
  const t = /* @__PURE__ */ new Map();
14102
14094
  return n?.aspects?.forEach((e) => {
14103
14095
  e.value !== "" && t.set(e.name, !0);
@@ -14106,7 +14098,7 @@ function sr(n) {
14106
14098
  function ue(n) {
14107
14099
  return ua(n, ["__typename"]);
14108
14100
  }
14109
- class Il {
14101
+ class Bl {
14110
14102
  constructor(t, e, a, r, i) {
14111
14103
  this.mandatoryFulfilledAspects = /* @__PURE__ */ new Map(), this.bundleId = t, this.bundleOwnerId = e, this.configuration = a, this.bundleOptions = i;
14112
14104
  const s = i?.existingGlobalPropertyState;
@@ -14123,7 +14115,7 @@ class Il {
14123
14115
  this.globalPropertyState.aspects = e.filter((a) => !t.includes(a.name));
14124
14116
  }
14125
14117
  recalculateMandatoryStates() {
14126
- this.mandatoryFulfilledAspects = sr(this.globalPropertyState);
14118
+ this.mandatoryFulfilledAspects = or(this.globalPropertyState);
14127
14119
  }
14128
14120
  setBundleOptions(t) {
14129
14121
  this.bundleOptions = t;
@@ -14235,7 +14227,7 @@ class Il {
14235
14227
  if (!this.globalPropertyState)
14236
14228
  throw new Error("Global property state not initialized");
14237
14229
  const t = await v.getShadowGraphqlClient().mutate({
14238
- mutation: uo,
14230
+ mutation: ho,
14239
14231
  variables: {
14240
14232
  id: this.globalPropertyState.id,
14241
14233
  aspects: this.globalPropertyState.aspects.map((e) => {
@@ -14278,7 +14270,7 @@ class Il {
14278
14270
  }
14279
14271
  async createGlobalPropertyState() {
14280
14272
  const t = await v.getShadowGraphqlClient().mutate({
14281
- mutation: Ao,
14273
+ mutation: uo,
14282
14274
  variables: {
14283
14275
  bundleId: this.bundleId
14284
14276
  },
@@ -14294,7 +14286,7 @@ class Il {
14294
14286
  throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
14295
14287
  }
14296
14288
  }
14297
- class Bl {
14289
+ class Pl {
14298
14290
  constructor(t) {
14299
14291
  this.setState(t || '{"transactions": []}');
14300
14292
  }
@@ -14383,7 +14375,7 @@ class Bl {
14383
14375
  };
14384
14376
  }
14385
14377
  }
14386
- const Pl = C`
14378
+ const Dl = C`
14387
14379
  query GetManyMetafields($entityIds: [String!]!) {
14388
14380
  metafieldsMany(entityIds: $entityIds) {
14389
14381
  id
@@ -14395,7 +14387,7 @@ const Pl = C`
14395
14387
  }
14396
14388
  }
14397
14389
  `;
14398
- class Dl {
14390
+ class Fl {
14399
14391
  constructor() {
14400
14392
  this.internalMap = /* @__PURE__ */ new Map();
14401
14393
  }
@@ -14416,7 +14408,7 @@ class Dl {
14416
14408
  async ensureIdsArePresent(t) {
14417
14409
  if (t.every((a) => this.internalMap.has(a))) return;
14418
14410
  const e = await v.getShadowGraphqlClient().query({
14419
- query: Pl,
14411
+ query: Dl,
14420
14412
  errorPolicy: "all",
14421
14413
  variables: {
14422
14414
  entityIds: t.filter((a) => !this.internalMap.has(a))
@@ -14457,9 +14449,9 @@ class Dl {
14457
14449
  return JSON.parse(r.value);
14458
14450
  }
14459
14451
  }
14460
- const Fl = new Dl();
14461
- var xl = /* @__PURE__ */ ((n) => (n.Default = "Default", n.Name = "Name", n.Price = "Price", n))(xl || {});
14462
- class or {
14452
+ const xl = new Fl();
14453
+ var kl = /* @__PURE__ */ ((n) => (n.Default = "Default", n.Name = "Name", n.Price = "Price", n))(kl || {});
14454
+ class lr {
14463
14455
  constructor(t) {
14464
14456
  this.fullFetched = !1, this.collection = t;
14465
14457
  const e = this.collection.productCollectionProducts;
@@ -14520,7 +14512,7 @@ class or {
14520
14512
  if (this.fullFetched)
14521
14513
  return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new he(a));
14522
14514
  const e = await v.getShadowGraphqlClient().query({
14523
- query: fo,
14515
+ query: Co,
14524
14516
  variables: {
14525
14517
  id: this.getId(),
14526
14518
  productIds: t
@@ -14536,7 +14528,7 @@ class or {
14536
14528
  */
14537
14529
  async filterProducts(t, e, a, r) {
14538
14530
  const i = await v.getShadowGraphqlClient().query({
14539
- query: Co,
14531
+ query: wo,
14540
14532
  errorPolicy: "all",
14541
14533
  variables: {
14542
14534
  id: this.getId(),
@@ -14580,7 +14572,7 @@ class or {
14580
14572
  };
14581
14573
  }
14582
14574
  const c = new AbortController(), { signal: d } = c, A = v.getShadowGraphqlClient().watchQuery({
14583
- query: wo,
14575
+ query: yo,
14584
14576
  variables: {
14585
14577
  id: this.getId(),
14586
14578
  limit: e,
@@ -14632,7 +14624,7 @@ class or {
14632
14624
  }
14633
14625
  getTransformCollection() {
14634
14626
  if (this.collection.transformCollection)
14635
- return new kl(this.collection.transformCollection);
14627
+ return new Ml(this.collection.transformCollection);
14636
14628
  }
14637
14629
  /**
14638
14630
  * The raw collection resource. This is generally not needed and should be avoided.
@@ -14756,7 +14748,7 @@ class he {
14756
14748
  * @returns A map of metafield key to value. Any unavailable keys will not be present in the map. use map.has() to check if a key is present.
14757
14749
  */
14758
14750
  async requestMetafields(t) {
14759
- return Fl.requestKeysForEntity(this.product.id, t);
14751
+ return xl.requestKeysForEntity(this.product.id, t);
14760
14752
  }
14761
14753
  }
14762
14754
  class Wt {
@@ -14783,7 +14775,7 @@ class Wt {
14783
14775
  return this.workflow.imageUrl;
14784
14776
  }
14785
14777
  }
14786
- class kl {
14778
+ class Ml {
14787
14779
  constructor(t) {
14788
14780
  this.collection = t;
14789
14781
  }
@@ -14803,10 +14795,10 @@ class kl {
14803
14795
  * @returns The transforms in this collection.
14804
14796
  */
14805
14797
  getTransforms() {
14806
- return this.collection.transforms.map((t) => new Ml(t));
14798
+ return this.collection.transforms.map((t) => new Tl(t));
14807
14799
  }
14808
14800
  }
14809
- class Ml {
14801
+ class Tl {
14810
14802
  constructor(t) {
14811
14803
  this.transform = t;
14812
14804
  }
@@ -14833,21 +14825,21 @@ class Ml {
14833
14825
  };
14834
14826
  }
14835
14827
  }
14836
- const Tl = C`
14828
+ const Nl = C`
14837
14829
  ${se(!1)}
14838
14830
  query GetProductCollections($ids: [String!]!) {
14839
14831
  productCollections(ids: $ids) {
14840
14832
  ...ProductCollectionFields
14841
14833
  }
14842
14834
  }
14843
- `, Ed = async (n) => (await v.getShadowGraphqlClient().query({
14844
- query: Tl,
14835
+ `, bd = async (n) => (await v.getShadowGraphqlClient().query({
14836
+ query: Nl,
14845
14837
  errorPolicy: "all",
14846
14838
  variables: {
14847
14839
  ids: n
14848
14840
  }
14849
- })).data?.productCollections?.map((e) => new or(e));
14850
- class Nl {
14841
+ })).data?.productCollections?.map((e) => new lr(e));
14842
+ class Ql {
14851
14843
  constructor() {
14852
14844
  this.listeners = {};
14853
14845
  }
@@ -14874,7 +14866,7 @@ class Nl {
14874
14866
  delete this.listeners[e];
14875
14867
  }
14876
14868
  }
14877
- const Ql = C`
14869
+ const Rl = C`
14878
14870
  mutation AddAddressToBundle(
14879
14871
  $bundleId: String!
14880
14872
  $streetAddress: String
@@ -14896,13 +14888,13 @@ const Ql = C`
14896
14888
  id
14897
14889
  }
14898
14890
  }
14899
- `, Rl = C`
14891
+ `, Ol = C`
14900
14892
  mutation AddOrganizationToBundle($bundleId: String!, $organizationName: String!) {
14901
14893
  organizationAttachToBundle(bundleId: $bundleId, organizationName: $organizationName) {
14902
14894
  id
14903
14895
  }
14904
14896
  }
14905
- `, Ol = C`
14897
+ `, $l = C`
14906
14898
  mutation GenerateQuoteId($id: String!) {
14907
14899
  bundleGenerateQuoteId(id: $id) {
14908
14900
  id
@@ -14912,15 +14904,15 @@ const Ql = C`
14912
14904
  `;
14913
14905
  class Ze {
14914
14906
  constructor(t, e, a, r, i, s) {
14915
- this.workflowExperiences = [], this.eventEmitter = new Nl(), this.updatesLocked = !1, this.client = t, this.id = e.id, this.name = e.name || "", this.dispatchDate = e.dispatchDate, this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(e.metadata?.map((c) => [c.key, c.value]) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new Bl(e.bundleStateData);
14907
+ this.workflowExperiences = [], this.eventEmitter = new Ql(), this.updatesLocked = !1, this.client = t, this.id = e.id, this.name = e.name || "", this.dispatchDate = e.dispatchDate, this.template = e.template || !1, this.quoteId = e.quoteId, this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = i, this.metadata = new Map(e.metadata?.map((c) => [c.key, c.value]) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new Pl(e.bundleStateData);
14916
14908
  const o = this.productCollection?.globalPropertyConfiguration;
14917
- this.globalConfigurationPropertyId = o?.id, this.globalPropertyStateManager = new Il(
14909
+ this.globalConfigurationPropertyId = o?.id, this.globalPropertyStateManager = new Bl(
14918
14910
  this.id,
14919
14911
  this.ownerId,
14920
14912
  o,
14921
14913
  this.onGlobalPropertiesChanged.bind(this),
14922
14914
  s
14923
- ), this.globalPropertyHandleService = new Cl(this), this.setPreviewService(a);
14915
+ ), this.globalPropertyHandleService = new wl(this), this.setPreviewService(a);
14924
14916
  const l = new Promise((c, d) => {
14925
14917
  if (s?.readonly) {
14926
14918
  c([]);
@@ -14978,7 +14970,7 @@ class Ze {
14978
14970
  }
14979
14971
  async generateQuoteId() {
14980
14972
  const e = (await v.getShadowGraphqlClient().mutate({
14981
- mutation: Ol,
14973
+ mutation: $l,
14982
14974
  variables: {
14983
14975
  id: this.id
14984
14976
  },
@@ -14990,7 +14982,7 @@ class Ze {
14990
14982
  }
14991
14983
  async attachAddress(t, e, a, r, i, s) {
14992
14984
  await v.getShadowGraphqlClient().mutate({
14993
- mutation: Ql,
14985
+ mutation: Rl,
14994
14986
  variables: {
14995
14987
  bundleId: this.id,
14996
14988
  streetAddress: t || void 0,
@@ -15007,7 +14999,7 @@ class Ze {
15007
14999
  }
15008
15000
  async attachOrganization(t) {
15009
15001
  await v.getShadowGraphqlClient().mutate({
15010
- mutation: Rl,
15002
+ mutation: Ol,
15011
15003
  variables: {
15012
15004
  bundleId: this.id,
15013
15005
  organizationName: t
@@ -15134,7 +15126,7 @@ class Ze {
15134
15126
  return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
15135
15127
  }
15136
15128
  getProductCollection() {
15137
- return this.productCollection ? new or(this.productCollection) : void 0;
15129
+ return this.productCollection ? new lr(this.productCollection) : void 0;
15138
15130
  }
15139
15131
  async initializeAdditionalRequiredColorChannels(t) {
15140
15132
  for (const e of t.getStepsByType(E.Illustration)) {
@@ -15144,7 +15136,7 @@ class Ze {
15144
15136
  (s) => s.name === r
15145
15137
  );
15146
15138
  if (i && i.type === L.ColorOption) {
15147
- const s = e.getCurrentVariant()?.getAssetResource(), o = s?.assetConfiguration?.channelNumbers || [], l = s?.assetConfiguration?.defaultColorVariants || [], c = vl(
15139
+ const s = e.getCurrentVariant()?.getAssetResource(), o = s?.assetConfiguration?.channelNumbers || [], l = s?.assetConfiguration?.defaultColorVariants || [], c = El(
15148
15140
  this.getWorkflowExperiences(),
15149
15141
  this.globalConfigurationPropertyId || "",
15150
15142
  r
@@ -15179,7 +15171,7 @@ class Ze {
15179
15171
  );
15180
15172
  const r = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), i = e.map((o) => r.get(o));
15181
15173
  await v.getShadowGraphqlClient().mutate({
15182
- mutation: Eo,
15174
+ mutation: bo,
15183
15175
  variables: {
15184
15176
  id: this.id,
15185
15177
  transactionIds: e,
@@ -15208,7 +15200,7 @@ class Ze {
15208
15200
  if (this.workflowExperiences.find((o) => o.getTransaction().id === a)) throw new Error("Unable to add transaction to bundle - Already Exists!");
15209
15201
  const s = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(a);
15210
15202
  await v.getShadowGraphqlClient().mutate({
15211
- mutation: vo,
15203
+ mutation: Eo,
15212
15204
  variables: {
15213
15205
  id: this.id,
15214
15206
  transactionId: a
@@ -15239,7 +15231,7 @@ class Ze {
15239
15231
  if (t > -1) {
15240
15232
  const r = this.workflowExperiences.find((i) => i.getTransaction().id === e.id);
15241
15233
  if (r.setBundle(void 0), this.previewService && r.getWorkflowManager().ejectFromPreviewService(), this.bundleStateManager.removeStateForTransaction(e.id), await v.getShadowGraphqlClient().mutate({
15242
- mutation: bo,
15234
+ mutation: Io,
15243
15235
  variables: {
15244
15236
  id: this.id,
15245
15237
  transactionId: e.id,
@@ -15276,7 +15268,7 @@ class Ze {
15276
15268
  a.forEach((r) => r.setBundle(void 0)), [...this.workflowExperiences, ...a].forEach(
15277
15269
  (r) => r.checkForPriceBreakChanges()
15278
15270
  ), this.previewService && a.forEach((r) => r.getWorkflowManager().ejectFromPreviewService()), t.forEach((r) => this.bundleStateManager.removeStateForTransaction(r.id)), await v.getShadowGraphqlClient().mutate({
15279
- mutation: Io,
15271
+ mutation: Bo,
15280
15272
  variables: {
15281
15273
  id: this.id,
15282
15274
  transactionIds: t.map((r) => r.id),
@@ -15337,7 +15329,7 @@ class Ze {
15337
15329
  }
15338
15330
  async addStakeholder(t, e) {
15339
15331
  const a = await v.getShadowGraphqlClient().mutate({
15340
- mutation: Bo,
15332
+ mutation: Po,
15341
15333
  variables: {
15342
15334
  id: this.id,
15343
15335
  details: t,
@@ -15353,7 +15345,7 @@ class Ze {
15353
15345
  }
15354
15346
  async removeStakeholder(t) {
15355
15347
  if (!(await v.getShadowGraphqlClient().mutate({
15356
- mutation: Po,
15348
+ mutation: Do,
15357
15349
  variables: {
15358
15350
  id: this.id,
15359
15351
  emailAddress: t
@@ -15365,7 +15357,7 @@ class Ze {
15365
15357
  }
15366
15358
  async updateStakeholders(t) {
15367
15359
  const e = await v.getShadowGraphqlClient().mutate({
15368
- mutation: Do,
15360
+ mutation: Fo,
15369
15361
  variables: {
15370
15362
  id: this.id,
15371
15363
  input: t
@@ -15416,12 +15408,12 @@ class Ze {
15416
15408
  }
15417
15409
  async finish(t, e) {
15418
15410
  this.completed && await v.getShadowGraphqlClient().mutate({
15419
- mutation: To,
15411
+ mutation: No,
15420
15412
  variables: {
15421
15413
  bundleId: this.id
15422
15414
  }
15423
15415
  });
15424
- const a = await ll(
15416
+ const a = await cl(
15425
15417
  this.workflowExperiences.map((r) => {
15426
15418
  const i = r.getWorkflow();
15427
15419
  if (!i) throw new Error("Unable to create designs - Workflow not found!");
@@ -15485,7 +15477,7 @@ class Ze {
15485
15477
  }
15486
15478
  async assignGlobalPropertyConfiguration(t) {
15487
15479
  await v.getShadowGraphqlClient().mutate({
15488
- mutation: ko,
15480
+ mutation: Mo,
15489
15481
  variables: {
15490
15482
  bundleId: this.id,
15491
15483
  globalPropertyConfigurationId: t
@@ -15497,7 +15489,7 @@ class Ze {
15497
15489
  }
15498
15490
  async assignProductCollection(t) {
15499
15491
  const e = await v.getShadowGraphqlClient().mutate({
15500
- mutation: xo(
15492
+ mutation: ko(
15501
15493
  this.globalPropertyStateManager.getBundleOptions()?.eagerFetchProducts ?? !1
15502
15494
  ),
15503
15495
  variables: {
@@ -15567,7 +15559,7 @@ class Ze {
15567
15559
  }
15568
15560
  async updateTransactionOrder() {
15569
15561
  await v.getShadowGraphqlClient().mutate({
15570
- mutation: Fo,
15562
+ mutation: xo,
15571
15563
  variables: {
15572
15564
  id: this.id,
15573
15565
  transactionIds: this.workflowExperiences.map((t) => t.getTransaction().id)
@@ -15609,7 +15601,7 @@ class Ze {
15609
15601
  });
15610
15602
  }
15611
15603
  checkMandatoryHandlesChanged(t, e) {
15612
- const a = [], r = [], i = [], s = sr(t);
15604
+ const a = [], r = [], i = [], s = or(t);
15613
15605
  e.forEach((o) => {
15614
15606
  if (o.isMandatory()) {
15615
15607
  const l = o.isMandatoryFulfilled();
@@ -15637,7 +15629,7 @@ class Ze {
15637
15629
  }
15638
15630
  async approve(t, e) {
15639
15631
  await v.getShadowGraphqlClient().mutate({
15640
- mutation: No,
15632
+ mutation: Qo,
15641
15633
  errorPolicy: "all",
15642
15634
  fetchPolicy: "no-cache",
15643
15635
  variables: {
@@ -15649,7 +15641,7 @@ class Ze {
15649
15641
  }
15650
15642
  async reject(t, e) {
15651
15643
  await v.getShadowGraphqlClient().mutate({
15652
- mutation: Qo,
15644
+ mutation: Ro,
15653
15645
  errorPolicy: "all",
15654
15646
  fetchPolicy: "no-cache",
15655
15647
  variables: {
@@ -15667,14 +15659,14 @@ class Ze {
15667
15659
  };
15668
15660
  }
15669
15661
  }
15670
- const $l = C`
15662
+ const Ul = C`
15671
15663
  mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
15672
15664
  processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
15673
15665
  id
15674
15666
  }
15675
15667
  }
15676
15668
  `;
15677
- class Ul {
15669
+ class Ll {
15678
15670
  /**
15679
15671
  *
15680
15672
  * @param id
@@ -15684,7 +15676,7 @@ class Ul {
15684
15676
  */
15685
15677
  async execute(t, e, a) {
15686
15678
  const i = (await v.getShadowGraphqlClient().mutate({
15687
- mutation: $l,
15679
+ mutation: Ul,
15688
15680
  variables: {
15689
15681
  processFlowId: t,
15690
15682
  inputs: [...e.map((A) => A.getValueForTransmission())]
@@ -15724,7 +15716,7 @@ class Ul {
15724
15716
  "Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
15725
15717
  );
15726
15718
  if (A.completedAt) {
15727
- o = !0, d = new Ll(A);
15719
+ o = !0, d = new Vl(A);
15728
15720
  break;
15729
15721
  }
15730
15722
  l += 1;
@@ -15736,7 +15728,7 @@ class Ul {
15736
15728
  return Promise.resolve(d);
15737
15729
  }
15738
15730
  }
15739
- class Ll {
15731
+ class Vl {
15740
15732
  constructor(t) {
15741
15733
  this.execution = t;
15742
15734
  }
@@ -15821,15 +15813,15 @@ class Fa {
15821
15813
  return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
15822
15814
  }
15823
15815
  }
15824
- var Vl = /* @__PURE__ */ ((n) => (n.Transaction = "Transaction", n.Bundle = "Bundle", n.Product = "Product", n.Variant = "Variant", n.Option = "Option", n.LineItem = "LineItem", n.Asset = "Asset", n))(Vl || {});
15825
- class bd extends Fa {
15816
+ var zl = /* @__PURE__ */ ((n) => (n.Transaction = "Transaction", n.Bundle = "Bundle", n.Product = "Product", n.Variant = "Variant", n.Option = "Option", n.LineItem = "LineItem", n.Asset = "Asset", n))(zl || {});
15817
+ class Id extends Fa {
15826
15818
  constructor(t) {
15827
15819
  super(`"${t}"`);
15828
15820
  }
15829
15821
  }
15830
- class lr extends Fa {
15822
+ class cr extends Fa {
15831
15823
  constructor(t, e) {
15832
- if (e !== "Asset" && !lr.validUUID(t))
15824
+ if (e !== "Asset" && !cr.validUUID(t))
15833
15825
  throw new Error("Invalid ID, must be a valid v4 UUID. https://www.uuidgenerator.net/");
15834
15826
  super(`{"isSpiffObject": true, "id": "${t}", "type": "${e}"}`);
15835
15827
  }
@@ -15837,7 +15829,7 @@ class lr extends Fa {
15837
15829
  return t.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i);
15838
15830
  }
15839
15831
  }
15840
- class Id extends Fa {
15832
+ class Bd extends Fa {
15841
15833
  constructor(t) {
15842
15834
  super(`[${t.map((e) => e.getRaw()).join(",")}]`);
15843
15835
  }
@@ -15899,7 +15891,7 @@ const ge = C`
15899
15891
  }
15900
15892
  }
15901
15893
  }
15902
- `, zl = C`
15894
+ `, Gl = C`
15903
15895
  mutation CustomerCreate($details: CustomerDetailsInput!) {
15904
15896
  customerCreate(details: $details) {
15905
15897
  id
@@ -15941,7 +15933,7 @@ C`
15941
15933
  }
15942
15934
  }
15943
15935
  `;
15944
- const Gl = C`
15936
+ const Wl = C`
15945
15937
  mutation CustomerGenerateVerificationCode($emailAddress: String!) {
15946
15938
  customerGenerateVerificationCode(emailAddress: $emailAddress)
15947
15939
  }
@@ -15978,7 +15970,7 @@ C`
15978
15970
  }
15979
15971
  }
15980
15972
  `;
15981
- const Wl = C`
15973
+ const ql = C`
15982
15974
  query CustomerMetafields($id: String!) {
15983
15975
  metafields(entityId: $id) {
15984
15976
  id
@@ -15997,7 +15989,7 @@ const Wl = C`
15997
15989
  }
15998
15990
  }
15999
15991
  `;
16000
- class ql {
15992
+ class Hl {
16001
15993
  constructor(t, e = v.getShadowGraphqlClient.bind(v)) {
16002
15994
  this.options = t, this.client = e;
16003
15995
  }
@@ -16024,9 +16016,9 @@ class ql {
16024
16016
  });
16025
16017
  }
16026
16018
  }
16027
- class Hl {
16019
+ class jl {
16028
16020
  init(t, e, a) {
16029
- this.cognitoClient = new Ir({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
16021
+ this.cognitoClient = new Br({ region: e }), this.spiffRegion = t, this.userPoolClientId = a;
16030
16022
  }
16031
16023
  async generateCode(t) {
16032
16024
  const e = await this.cognitoClient?.send(
@@ -16042,7 +16034,7 @@ class Hl {
16042
16034
  }
16043
16035
  async verifyCode(t, e, a) {
16044
16036
  const r = await this.cognitoClient?.send(
16045
- new Br({
16037
+ new Pr({
16046
16038
  ClientId: this.userPoolClientId,
16047
16039
  ChallengeName: "CUSTOM_CHALLENGE",
16048
16040
  Session: this.challengeSession,
@@ -16074,8 +16066,8 @@ class Hl {
16074
16066
  );
16075
16067
  }
16076
16068
  }
16077
- const Ut = new Hl();
16078
- class jl {
16069
+ const Ut = new jl();
16070
+ class Yl {
16079
16071
  /**
16080
16072
  * Returns a formatted string representing a given amount with desired currency.
16081
16073
  * @param currency The currency to represent the amount in.
@@ -16087,7 +16079,7 @@ class jl {
16087
16079
  currency: t,
16088
16080
  precision: this.getPrecisionForCurrency(t)
16089
16081
  };
16090
- return Pr(a).toFormat(this.getSpecialFormat(t));
16082
+ return Dr(a).toFormat(this.getSpecialFormat(t));
16091
16083
  }
16092
16084
  /**
16093
16085
  * Get the number of decimal places expected in a currency string.
@@ -16109,8 +16101,8 @@ class jl {
16109
16101
  return "USD0,0";
16110
16102
  }
16111
16103
  }
16112
- const an = new jl();
16113
- class Yl {
16104
+ const an = new Yl();
16105
+ class Jl {
16114
16106
  constructor(t, e, a, r) {
16115
16107
  this.presentmentCurrency = void 0, this.presentmentCurrency = r, this.partnerCurrency = a, this.rateFrom = t, this.rateTo = e;
16116
16108
  }
@@ -16150,9 +16142,9 @@ class Yl {
16150
16142
  return t * Math.pow(10, an.getPrecisionForCurrency(e));
16151
16143
  }
16152
16144
  }
16153
- const Jl = async (n, t) => {
16145
+ const Kl = async (n, t) => {
16154
16146
  const e = await v.getShadowGraphqlClient().query({
16155
- query: Gi(t?.assets?.metadata || !1),
16147
+ query: Wi(t?.assets?.metadata || !1),
16156
16148
  errorPolicy: "all",
16157
16149
  variables: {
16158
16150
  ids: n
@@ -16172,35 +16164,35 @@ const Jl = async (n, t) => {
16172
16164
  }), Kt.set({ id: i.option.id }, Promise.resolve(i.option)));
16173
16165
  }), r.finalizeStepConfig || (r.finalizeStepConfig = {}), r.finalizeStepConfig.termsMarkdown = r.finalizeStepConfig.termsMarkdown || r.partner.termsMarkdown;
16174
16166
  }), a;
16175
- }, Kl = async (n, t) => {
16167
+ }, _l = async (n, t) => {
16176
16168
  const a = (await t).find((r) => r.id === n);
16177
16169
  if (!a)
16178
16170
  throw new Error(`Workflow not found: ${n}`);
16179
16171
  return a;
16180
- }, cr = async (n, t) => {
16172
+ }, dr = async (n, t) => {
16181
16173
  const e = n.map((o) => Kt.get({ id: o, options: t })), a = n.filter((o, l) => e[l] === void 0);
16182
16174
  if (a.length === 0)
16183
16175
  return Promise.all(e);
16184
- const r = Jl(a, t), i = a.map(
16185
- (o) => Kt.set({ id: o, options: t }, Kl(o, r))
16176
+ const r = Kl(a, t), i = a.map(
16177
+ (o) => Kt.set({ id: o, options: t }, _l(o, r))
16186
16178
  ), s = e.filter((o) => o !== void 0);
16187
16179
  return await Promise.all(s.concat(i));
16188
- }, _l = async (n, t) => (await cr([n], t))[0];
16189
- class Bd {
16180
+ }, Xl = async (n, t) => (await dr([n], t))[0];
16181
+ class Pd {
16190
16182
  constructor(t) {
16191
16183
  this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
16192
16184
  try {
16193
16185
  return v.getShadowGraphqlClient().mutate({
16194
16186
  ...e,
16195
- mutation: Fi
16187
+ mutation: xi
16196
16188
  });
16197
16189
  } catch (a) {
16198
16190
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
16199
16191
  }
16200
- }, this.options = t, this.options.applicationKey && Hr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.2.3"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16192
+ }, this.options = t, this.options.applicationKey && jr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 33.2.4"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
16201
16193
  }
16202
16194
  configure(t) {
16203
- 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 && Yr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Ut.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
16195
+ 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 && Ut.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
16204
16196
  }
16205
16197
  /**
16206
16198
  * @returns The asset manager allows for common operations related to assets
@@ -16210,12 +16202,12 @@ class Bd {
16210
16202
  return $;
16211
16203
  }
16212
16204
  getFlowService() {
16213
- if (!jr()) throw new Error("Application key required to use Flow Service.");
16214
- return new Ul();
16205
+ if (!Yr()) throw new Error("Application key required to use Flow Service.");
16206
+ return new Ll();
16215
16207
  }
16216
16208
  async getCurrencyContext(t) {
16217
16209
  const a = (await this.getIntegration()).partner.currencyCode, i = await v.getShadowGraphqlClient().query({
16218
- query: _i,
16210
+ query: Xi,
16219
16211
  errorPolicy: "all",
16220
16212
  fetchPolicy: "cache-first",
16221
16213
  variables: {
@@ -16223,14 +16215,14 @@ class Bd {
16223
16215
  to: t
16224
16216
  }
16225
16217
  }), { rateFrom: s, rateTo: o } = i.data.currencyConversion;
16226
- return new Yl(s, o, a, t);
16218
+ return new Jl(s, o, a, t);
16227
16219
  }
16228
16220
  async getIntegration() {
16229
16221
  if (this.activeIntegration)
16230
16222
  return this.activeIntegration;
16231
16223
  if (!this.options.applicationKey)
16232
16224
  throw new Error("Cannot get current Integration without specifying an Application Key.");
16233
- return this.activeIntegration = Xl(this.options.applicationKey), this.activeIntegration;
16225
+ return this.activeIntegration = Zl(this.options.applicationKey), this.activeIntegration;
16234
16226
  }
16235
16227
  async canUseAddon(t) {
16236
16228
  try {
@@ -16276,7 +16268,7 @@ class Bd {
16276
16268
  */
16277
16269
  async authenticateTransactionFromLocalStorage(t) {
16278
16270
  const e = v.getShadowGraphqlClient(), a = await e.query({
16279
- query: Wi,
16271
+ query: qi,
16280
16272
  errorPolicy: "all",
16281
16273
  fetchPolicy: "no-cache",
16282
16274
  variables: {
@@ -16306,7 +16298,7 @@ class Bd {
16306
16298
  });
16307
16299
  }
16308
16300
  const c = (await e.query({
16309
- query: qi,
16301
+ query: Hi,
16310
16302
  errorPolicy: "all",
16311
16303
  variables: {
16312
16304
  id: r.workflowId
@@ -16357,7 +16349,7 @@ class Bd {
16357
16349
  })).data.customer;
16358
16350
  if (!r.id) {
16359
16351
  const o = (await e.mutate({
16360
- mutation: zl,
16352
+ mutation: Gl,
16361
16353
  errorPolicy: "all",
16362
16354
  fetchPolicy: "no-cache",
16363
16355
  variables: {
@@ -16415,7 +16407,7 @@ class Bd {
16415
16407
  */
16416
16408
  async generateVerificationCode(t) {
16417
16409
  await v.getShadowGraphqlClient().mutate({
16418
- mutation: Gl,
16410
+ mutation: Wl,
16419
16411
  variables: {
16420
16412
  emailAddress: t
16421
16413
  }
@@ -16470,7 +16462,7 @@ class Bd {
16470
16462
  if (!this.customer?.id)
16471
16463
  throw new Error("Customer must be logged in before calling this function.");
16472
16464
  return (await v.getShadowGraphqlClient().query({
16473
- query: Wl,
16465
+ query: ql,
16474
16466
  variables: {
16475
16467
  id: this.customer.id
16476
16468
  }
@@ -16482,7 +16474,7 @@ class Bd {
16482
16474
  */
16483
16475
  async getNewBundle(t, e, a) {
16484
16476
  const i = (await v.getShadowGraphqlClient().mutate({
16485
- mutation: yo(a?.graphql?.productCollection?.eagerFetchProducts || !1),
16477
+ mutation: So(a?.graphql?.productCollection?.eagerFetchProducts || !1),
16486
16478
  variables: {
16487
16479
  collectionId: t,
16488
16480
  initialMetadata: e ? Object.entries(e).map((c, d) => ({ key: c[0], value: c[1] })) : void 0,
@@ -16524,7 +16516,7 @@ class Bd {
16524
16516
  ...o,
16525
16517
  ...r?.graphql?.additionalHeaders
16526
16518
  }, c = await v.getShadowGraphqlClient().query({
16527
- query: go(r?.graphql?.productCollection?.eagerFetchProducts || !1),
16519
+ query: po(r?.graphql?.productCollection?.eagerFetchProducts || !1),
16528
16520
  variables: {
16529
16521
  id: t
16530
16522
  },
@@ -16565,7 +16557,7 @@ class Bd {
16565
16557
  ...s,
16566
16558
  ...r?.graphql?.additionalHeaders
16567
16559
  }, c = (await v.getShadowGraphqlClient().mutate({
16568
- mutation: So(r?.graphql?.productCollection?.eagerFetchProducts || !1),
16560
+ mutation: vo(r?.graphql?.productCollection?.eagerFetchProducts || !1),
16569
16561
  variables: {
16570
16562
  id: t,
16571
16563
  template: e,
@@ -16605,7 +16597,7 @@ class Bd {
16605
16597
  throw new Error("Customer not authenticated.");
16606
16598
  const { includeMetadata: e, ...a } = t;
16607
16599
  return (await v.getShadowGraphqlClient().query({
16608
- query: Mo(e ?? !1),
16600
+ query: To(e ?? !1),
16609
16601
  variables: {
16610
16602
  ...a,
16611
16603
  id: this.customer.id
@@ -16621,7 +16613,7 @@ class Bd {
16621
16613
  if (!this.customer)
16622
16614
  throw new Error("Customer not authenticated.");
16623
16615
  const t = await v.getShadowGraphqlClient().query({
16624
- query: po,
16616
+ query: fo,
16625
16617
  variables: {
16626
16618
  id: this.customer.id
16627
16619
  },
@@ -16660,7 +16652,7 @@ class Bd {
16660
16652
  if (y.length === 0)
16661
16653
  return [];
16662
16654
  const S = y.map((F) => F.option.transactionId), B = await a.query({
16663
- query: Di,
16655
+ query: Fi,
16664
16656
  variables: {
16665
16657
  ids: S
16666
16658
  },
@@ -16681,7 +16673,7 @@ class Bd {
16681
16673
  if (y.length === 0)
16682
16674
  return [];
16683
16675
  const S = await a.mutate({
16684
- mutation: Pi,
16676
+ mutation: Di,
16685
16677
  variables: {
16686
16678
  inputs: y.map((b) => ({
16687
16679
  integrationProductId: b.option.type === "integration" ? b.option.integrationProductId : void 0,
@@ -16716,10 +16708,10 @@ class Bd {
16716
16708
  ...A.map(i)
16717
16709
  ])).flat(), h = [...new Set(u.map((y) => y.workflowId))].filter(
16718
16710
  (y) => y !== void 0
16719
- ), m = h.length > 0 ? await cr(h, e) : [], p = new Map(m.map((y) => [y.id, y])), g = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = u.map(async (y) => {
16711
+ ), m = h.length > 0 ? await dr(h, e) : [], p = new Map(m.map((y) => [y.id, y])), g = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = u.map(async (y) => {
16720
16712
  const { transaction: S, workflowId: B, readOnly: b, index: F } = y, R = B ? p.get(B) : void 0, N = t[F];
16721
16713
  !g.get(S.id) && S.transactionOwnerId && g.set(S.id, S.transactionOwnerId);
16722
- const Z = g.get(S.id) || void 0, tt = new ql({
16714
+ const Z = g.get(S.id) || void 0, tt = new Hl({
16723
16715
  onMutate: () => ({ context: { transactionOwnerId: Z, bundleOwnerId: e?.bundleOwnerId } }),
16724
16716
  onQuery: () => ({ context: { transactionOwnerId: Z, bundleOwnerId: e?.bundleOwnerId } })
16725
16717
  }), rt = {
@@ -16749,7 +16741,7 @@ class Bd {
16749
16741
  const I = w.sort((y, S) => y.index - S.index);
16750
16742
  let P = [];
16751
16743
  for (const y of I) {
16752
- const { experienceOptions: S, options: B } = y, b = new gl(this, S);
16744
+ const { experienceOptions: S, options: B } = y, b = new pl(this, S);
16753
16745
  await b.getWorkflowManager().getInitializationPromise(), B.type !== "transaction" && this.customer && await b.attachCustomerDetails({ email: this.customer.emailAddress }), P = [...P, b], b.getWorkflowManager().setWorkflowStateSyncEnabled(!0);
16754
16746
  }
16755
16747
  return P;
@@ -16760,7 +16752,7 @@ class Bd {
16760
16752
  }
16761
16753
  async getIntegrationProductById(t, e) {
16762
16754
  const i = (await v.getShadowGraphqlClient().query({
16763
- query: Qi(e),
16755
+ query: Ri(e),
16764
16756
  variables: {
16765
16757
  ids: [t]
16766
16758
  },
@@ -16773,7 +16765,7 @@ class Bd {
16773
16765
  }
16774
16766
  async getIntegrationProductFromExternalIds(t, e, a) {
16775
16767
  const s = (await v.getShadowGraphqlClient().query({
16776
- query: Ri(a),
16768
+ query: Oi(a),
16777
16769
  variables: {
16778
16770
  externalProductId: e,
16779
16771
  externalIntegrationId: t
@@ -16790,7 +16782,7 @@ class Bd {
16790
16782
  }
16791
16783
  async getShareActionsForTransaction(t) {
16792
16784
  const a = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(t) || void 0, r = await v.getShadowGraphqlClient().query({
16793
- query: Ni,
16785
+ query: Qi,
16794
16786
  errorPolicy: "all",
16795
16787
  fetchPolicy: "no-cache",
16796
16788
  variables: {
@@ -16806,7 +16798,7 @@ class Bd {
16806
16798
  }
16807
16799
  async placeOrder(t) {
16808
16800
  const e = await v.getShadowGraphqlClient().mutate({
16809
- mutation: Ki,
16801
+ mutation: _i,
16810
16802
  variables: {
16811
16803
  orderItems: t
16812
16804
  }
@@ -16821,8 +16813,8 @@ class Bd {
16821
16813
  };
16822
16814
  }
16823
16815
  }
16824
- const Xl = async (n, t) => (await v.getShadowGraphqlClient().query({
16825
- query: ji,
16816
+ const Zl = async (n, t) => (await v.getShadowGraphqlClient().query({
16817
+ query: Yi,
16826
16818
  errorPolicy: "all",
16827
16819
  fetchPolicy: "no-cache",
16828
16820
  context: {
@@ -16833,9 +16825,9 @@ const Xl = async (n, t) => (await v.getShadowGraphqlClient().query({
16833
16825
  variables: {
16834
16826
  themeConfigurationId: t
16835
16827
  }
16836
- })).data.currentIntegration, Pd = async (n) => {
16828
+ })).data.currentIntegration, Dd = async (n) => {
16837
16829
  const e = await v.getShadowGraphqlClient().query({
16838
- query: Ti,
16830
+ query: Ni,
16839
16831
  errorPolicy: "all",
16840
16832
  fetchPolicy: "network-only",
16841
16833
  variables: {
@@ -16844,28 +16836,28 @@ const Xl = async (n, t) => (await v.getShadowGraphqlClient().query({
16844
16836
  });
16845
16837
  if (e.data.transactions.length !== 0)
16846
16838
  return e.data.transactions[0];
16847
- }, Dd = async (n, t) => (await v.getShadowGraphqlClient().query({
16848
- query: Hi,
16839
+ }, Fd = async (n, t) => (await v.getShadowGraphqlClient().query({
16840
+ query: ji,
16849
16841
  errorPolicy: "all",
16850
16842
  variables: {
16851
16843
  themeConfigurationId: n,
16852
16844
  themeInstallId: t
16853
16845
  }
16854
- })).data?.marketplaceThemeInstallConfiguration, Fd = async (n) => (await v.getShadowGraphqlClient().query({
16855
- query: Ji,
16846
+ })).data?.marketplaceThemeInstallConfiguration, xd = async (n) => (await v.getShadowGraphqlClient().query({
16847
+ query: Ki,
16856
16848
  errorPolicy: "all",
16857
16849
  variables: {
16858
16850
  id: n
16859
16851
  }
16860
- })).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, xd = async (n) => (await v.getShadowGraphqlClient().query({
16861
- query: Yi,
16852
+ })).data?.bundles?.[0]?.marketplaceThemeInstallConfiguration, kd = async (n) => (await v.getShadowGraphqlClient().query({
16853
+ query: Ji,
16862
16854
  errorPolicy: "all",
16863
16855
  variables: {
16864
16856
  id: n
16865
16857
  }
16866
- })).data?.transactions?.[0]?.marketplaceThemeInstallConfiguration, kd = async (n) => {
16858
+ })).data?.transactions?.[0]?.marketplaceThemeInstallConfiguration, Md = async (n) => {
16867
16859
  const t = await v.getShadowGraphqlClient().mutate({
16868
- mutation: Vo,
16860
+ mutation: zo,
16869
16861
  errorPolicy: "all",
16870
16862
  fetchPolicy: "no-cache",
16871
16863
  variables: {
@@ -16875,7 +16867,7 @@ const Xl = async (n, t) => (await v.getShadowGraphqlClient().query({
16875
16867
  if (t.data?.bundleDelete !== n)
16876
16868
  throw new Error(`Failed to delete bundle: ${t.errors}`);
16877
16869
  };
16878
- function Zl(n, t, e, a) {
16870
+ function tc(n, t, e, a) {
16879
16871
  const r = e.width * n.zoom, i = e.height * n.zoom;
16880
16872
  if (a) {
16881
16873
  const o = n, l = Math.max(t.width / e.width, t.height / e.height);
@@ -16889,7 +16881,7 @@ function Zl(n, t, e, a) {
16889
16881
  function pe(n, t, e) {
16890
16882
  return Math.min(Math.max(n, t), e);
16891
16883
  }
16892
- class tc {
16884
+ class ec {
16893
16885
  constructor(t, e) {
16894
16886
  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 = {
16895
16887
  useThreshold: !1,
@@ -17032,7 +17024,7 @@ class tc {
17032
17024
  return;
17033
17025
  }
17034
17026
  (!this.offsets || this.offsets.length !== this.frameData.length) && (this.offsets = new Array(this.frameData.length)), this.frameData.forEach((s, o) => {
17035
- this.offsets[o] = Zl(t[o], s, this.imageData, this.forceImageCover);
17027
+ this.offsets[o] = tc(t[o], s, this.imageData, this.forceImageCover);
17036
17028
  }), this._debouncedUpdateFrameOffsets(
17037
17029
  this.offsets,
17038
17030
  r,
@@ -17074,8 +17066,8 @@ class tc {
17074
17066
  this.targetElements.forEach((o, l) => {
17075
17067
  s(
17076
17068
  new O([
17077
- new vs(o, e, t[l]),
17078
- new Es(
17069
+ new Es(o, e, t[l]),
17070
+ new bs(
17079
17071
  o,
17080
17072
  r.useThreshold,
17081
17073
  r.invertThreshold,
@@ -17110,7 +17102,7 @@ class tc {
17110
17102
  }), this._debouncedUpdateFrameOffsets(this.offsets, t, this.frameData, this.thresholdSettings));
17111
17103
  }
17112
17104
  }
17113
- class Md {
17105
+ class Td {
17114
17106
  traversableScenes() {
17115
17107
  throw new Error("Method not implemented.");
17116
17108
  }
@@ -17272,12 +17264,12 @@ class Md {
17272
17264
  return [];
17273
17265
  }
17274
17266
  }
17275
- var ec = /* @__PURE__ */ ((n) => (n.SelectFrame = "SelectFrame", n.SelectImage = "SelectImage", n.Position = "Position", n))(ec || {});
17276
- class ac extends X {
17267
+ var ac = /* @__PURE__ */ ((n) => (n.SelectFrame = "SelectFrame", n.SelectImage = "SelectImage", n.Position = "Position", n))(ac || {});
17268
+ class nc extends X {
17277
17269
  constructor(t, e, a) {
17278
17270
  super(t, e, a);
17279
17271
  const r = e.data;
17280
- this.frameService = new tc(r.forceImageCover, r.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17272
+ this.frameService = new ec(r.forceImageCover, r.initialZoomLevel), this.frameService.connectWorkflowManager(t, e.stepName);
17281
17273
  }
17282
17274
  selectVariant(t) {
17283
17275
  const e = this.manager.getRegionElements(this.step.stepName);
@@ -17437,7 +17429,7 @@ class ac extends X {
17437
17429
  return this.manager.getStepStorage(this.step.stepName);
17438
17430
  }
17439
17431
  }
17440
- const nc = C`
17432
+ const rc = C`
17441
17433
  query GetLoggedInCustomer($email: String!) {
17442
17434
  customer(emailAddress: $email) {
17443
17435
  id
@@ -17480,21 +17472,21 @@ const nc = C`
17480
17472
  total
17481
17473
  }
17482
17474
  }
17483
- `, rc = C`
17475
+ `, ic = C`
17484
17476
  mutation SetTransactionDesignName($id: String!, $name: String!) {
17485
17477
  transactionUpdate(id: $id, designName: $name) {
17486
17478
  id
17487
17479
  designName
17488
17480
  }
17489
17481
  }
17490
- `, ic = C`
17482
+ `, sc = C`
17491
17483
  mutation DuplicateTransaction($id: String!, $template: Boolean!) {
17492
17484
  transactionDuplicate(id: $id, template: $template) {
17493
17485
  id
17494
17486
  workflowViewerLink
17495
17487
  }
17496
17488
  }
17497
- `, sc = C`
17489
+ `, oc = C`
17498
17490
  query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
17499
17491
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
17500
17492
  items {
@@ -17509,7 +17501,7 @@ const nc = C`
17509
17501
  total
17510
17502
  }
17511
17503
  }
17512
- `, oc = C`
17504
+ `, lc = C`
17513
17505
  query GetTransactionsForBundle($id: String!) {
17514
17506
  bundles(ids: [$id]) {
17515
17507
  id
@@ -17530,21 +17522,21 @@ const nc = C`
17530
17522
  }
17531
17523
  }
17532
17524
  }
17533
- `, lc = C`
17525
+ `, cc = C`
17534
17526
  mutation SetBundleName($id: String!, $name: String!) {
17535
17527
  bundleUpdate(id: $id, name: $name) {
17536
17528
  id
17537
17529
  name
17538
17530
  }
17539
17531
  }
17540
- `, cc = C`
17532
+ `, dc = C`
17541
17533
  mutation DuplicateBundle($id: String!, $template: Boolean!) {
17542
17534
  bundleDuplicate(id: $id, template: $template) {
17543
17535
  id
17544
17536
  workflowViewerLink
17545
17537
  }
17546
17538
  }
17547
- `, dc = C`
17539
+ `, Ac = C`
17548
17540
  query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
17549
17541
  customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
17550
17542
  items {
@@ -17557,43 +17549,43 @@ const nc = C`
17557
17549
  total
17558
17550
  }
17559
17551
  }
17560
- `, Td = async (n, t, e) => await v.getShadowGraphqlClient().mutate({
17561
- mutation: lc,
17552
+ `, Nd = async (n, t, e) => await v.getShadowGraphqlClient().mutate({
17553
+ mutation: cc,
17562
17554
  errorPolicy: "all",
17563
17555
  variables: {
17564
17556
  id: n,
17565
17557
  name: t
17566
17558
  },
17567
17559
  context: e
17568
- }), Nd = async (n, t) => await v.getShadowGraphqlClient().mutate({
17569
- mutation: rc,
17560
+ }), Qd = async (n, t) => await v.getShadowGraphqlClient().mutate({
17561
+ mutation: ic,
17570
17562
  errorPolicy: "all",
17571
17563
  variables: {
17572
17564
  id: n,
17573
17565
  name: t
17574
17566
  }
17575
- }), Qd = async (n, t) => await v.getShadowGraphqlClient().mutate({
17576
- mutation: cc,
17567
+ }), Rd = async (n, t) => await v.getShadowGraphqlClient().mutate({
17568
+ mutation: dc,
17577
17569
  errorPolicy: "all",
17578
17570
  variables: {
17579
17571
  id: n,
17580
17572
  template: t
17581
17573
  }
17582
- }), Rd = async (n, t) => await v.getShadowGraphqlClient().mutate({
17583
- mutation: ic,
17574
+ }), Od = async (n, t) => await v.getShadowGraphqlClient().mutate({
17575
+ mutation: sc,
17584
17576
  errorPolicy: "all",
17585
17577
  variables: {
17586
17578
  id: n,
17587
17579
  template: t
17588
17580
  }
17589
- }), Od = async (n) => (await v.getShadowGraphqlClient().query({
17590
- query: nc,
17581
+ }), $d = async (n) => (await v.getShadowGraphqlClient().query({
17582
+ query: rc,
17591
17583
  errorPolicy: "all",
17592
17584
  variables: {
17593
17585
  email: n
17594
17586
  }
17595
- })).data.customer, $d = async (n, t, e) => await v.getShadowGraphqlClient().query({
17596
- query: sc,
17587
+ })).data.customer, Ud = async (n, t, e) => await v.getShadowGraphqlClient().query({
17588
+ query: oc,
17597
17589
  errorPolicy: "all",
17598
17590
  fetchPolicy: "no-cache",
17599
17591
  variables: {
@@ -17601,15 +17593,15 @@ const nc = C`
17601
17593
  offset: e,
17602
17594
  limit: t
17603
17595
  }
17604
- }), Ud = async (n, t) => await v.getShadowGraphqlClient().query({
17605
- query: oc,
17596
+ }), Ld = async (n, t) => await v.getShadowGraphqlClient().query({
17597
+ query: lc,
17606
17598
  errorPolicy: "all",
17607
17599
  fetchPolicy: "no-cache",
17608
17600
  variables: {
17609
17601
  id: n
17610
17602
  },
17611
17603
  context: t
17612
- }), Ld = async (n, t, e) => (await v.getShadowGraphqlClient().query({
17604
+ }), Vd = async (n, t, e) => (await v.getShadowGraphqlClient().query({
17613
17605
  query: xa,
17614
17606
  errorPolicy: "all",
17615
17607
  fetchPolicy: "no-cache",
@@ -17629,7 +17621,7 @@ const nc = C`
17629
17621
  offset: e,
17630
17622
  limit: t
17631
17623
  }
17632
- }))?.data.customerTransactionsFeed?.items || [], Vd = async (n, t, e) => (await v.getShadowGraphqlClient().query({
17624
+ }))?.data.customerTransactionsFeed?.items || [], zd = async (n, t, e) => (await v.getShadowGraphqlClient().query({
17633
17625
  query: xa,
17634
17626
  errorPolicy: "all",
17635
17627
  fetchPolicy: "no-cache",
@@ -17649,7 +17641,7 @@ const nc = C`
17649
17641
  offset: e,
17650
17642
  limit: t
17651
17643
  }
17652
- }))?.data.customerTransactionsFeed?.items || [], zd = async (n, t, e) => (await v.getShadowGraphqlClient().query({
17644
+ }))?.data.customerTransactionsFeed?.items || [], Gd = async (n, t, e) => (await v.getShadowGraphqlClient().query({
17653
17645
  query: xa,
17654
17646
  errorPolicy: "all",
17655
17647
  fetchPolicy: "no-cache",
@@ -17665,8 +17657,8 @@ const nc = C`
17665
17657
  offset: e,
17666
17658
  limit: t
17667
17659
  }
17668
- }))?.data.customerTransactionsFeed?.items || [], Gd = async (n, t, e) => (await v.getShadowGraphqlClient().query({
17669
- query: dc,
17660
+ }))?.data.customerTransactionsFeed?.items || [], Wd = async (n, t, e) => (await v.getShadowGraphqlClient().query({
17661
+ query: Ac,
17670
17662
  errorPolicy: "all",
17671
17663
  fetchPolicy: "no-cache",
17672
17664
  variables: {
@@ -17685,7 +17677,7 @@ const nc = C`
17685
17677
  console.error("vite-plugin-css-injected-by-js", t);
17686
17678
  }
17687
17679
  })();
17688
- var Ac = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(Ac || {}), 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 || {}), Y;
17680
+ var uc = /* @__PURE__ */ ((n) => (n.Manual = "Manual", n.OnStart = "OnStart", n.OnQuit = "OnQuit", n.OnEnd = "OnEnd", n))(uc || {}), 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 || {}), Y;
17689
17681
  Y = { __e: function(n, t, e, a) {
17690
17682
  for (var r, i, s; t = t.__; )
17691
17683
  if ((r = t.__c) && !r.__)
@@ -17697,9 +17689,9 @@ Y = { __e: function(n, t, e, a) {
17697
17689
  }
17698
17690
  throw n;
17699
17691
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
17700
- var st, ta, nn, dr = [], ea = [], rn = Y.__b, sn = Y.__r, on = Y.diffed, ln = Y.__c, cn = Y.unmount;
17701
- function uc() {
17702
- for (var n; n = dr.shift(); )
17692
+ var st, ta, nn, Ar = [], ea = [], rn = Y.__b, sn = Y.__r, on = Y.diffed, ln = Y.__c, cn = Y.unmount;
17693
+ function hc() {
17694
+ for (var n; n = Ar.shift(); )
17703
17695
  if (n.__P && n.__H)
17704
17696
  try {
17705
17697
  n.__H.__h.forEach(Se), n.__H.__h.forEach(ha), n.__H.__h = [];
@@ -17718,7 +17710,7 @@ Y.__b = function(n) {
17718
17710
  }, Y.diffed = function(n) {
17719
17711
  on && on(n);
17720
17712
  var t = n.__c;
17721
- t && t.__H && (t.__H.__h.length && (dr.push(t) !== 1 && nn === Y.requestAnimationFrame || ((nn = Y.requestAnimationFrame) || hc)(uc)), t.__H.__.forEach(function(e) {
17713
+ t && t.__H && (t.__H.__h.length && (Ar.push(t) !== 1 && nn === Y.requestAnimationFrame || ((nn = Y.requestAnimationFrame) || mc)(hc)), t.__H.__.forEach(function(e) {
17722
17714
  e.i && (e.__H = e.i), e.__V !== ea && (e.__ = e.__V), e.i = void 0, e.__V = ea;
17723
17715
  })), ta = st = null;
17724
17716
  }, Y.__c = function(n, t) {
@@ -17745,7 +17737,7 @@ Y.__b = function(n) {
17745
17737
  }), e.__H = void 0, t && Y.__e(t, e.__v));
17746
17738
  };
17747
17739
  var dn = typeof requestAnimationFrame == "function";
17748
- function hc(n) {
17740
+ function mc(n) {
17749
17741
  var t, e = function() {
17750
17742
  clearTimeout(a), dn && cancelAnimationFrame(t), setTimeout(n);
17751
17743
  }, a = setTimeout(e, 100);
@@ -17759,7 +17751,7 @@ function ha(n) {
17759
17751
  var t = st;
17760
17752
  n.__c = n.__(), st = t;
17761
17753
  }
17762
- const Ar = C`
17754
+ const ur = C`
17763
17755
  fragment AddressValidationResultFields on AddressValidationResult {
17764
17756
  addressComplete
17765
17757
  address {
@@ -17782,7 +17774,7 @@ const Ar = C`
17782
17774
  missingComponentTypes
17783
17775
  }
17784
17776
  `, ka = C`
17785
- ${Ar}
17777
+ ${ur}
17786
17778
  fragment AddressValidationJobFields on AddressValidationJob {
17787
17779
  id
17788
17780
  entityId
@@ -17793,14 +17785,14 @@ const Ar = C`
17793
17785
  ...AddressValidationResultFields
17794
17786
  }
17795
17787
  }
17796
- `, mc = C`
17788
+ `, gc = C`
17797
17789
  ${ka}
17798
17790
  query GetAddressValidationJobs($ids: [String!]!) {
17799
17791
  addressValidationJobs(ids: $ids) {
17800
17792
  ...AddressValidationJobFields
17801
17793
  }
17802
17794
  }
17803
- `, gc = C`
17795
+ `, pc = C`
17804
17796
  ${ka}
17805
17797
  query GetRecipientsWithAddressValidationJobs($ids: [String!]!) {
17806
17798
  recipients(ids: $ids) {
@@ -17810,31 +17802,31 @@ const Ar = C`
17810
17802
  }
17811
17803
  }
17812
17804
  }
17813
- `, pc = C`
17814
- ${Ar}
17805
+ `, fc = C`
17806
+ ${ur}
17815
17807
  mutation ValidateRecipientAddress($id: String!) {
17816
17808
  recipientValidate(id: $id) {
17817
17809
  ...AddressValidationResultFields
17818
17810
  }
17819
17811
  }
17820
- `, fc = C`
17812
+ `, Cc = C`
17821
17813
  ${ka}
17822
17814
  mutation BatchValidateRecipientAddress($ids: [String!]!) {
17823
17815
  recipientValidateBatch(ids: $ids) {
17824
17816
  ...AddressValidationJobFields
17825
17817
  }
17826
17818
  }
17827
- `, Cc = C`
17819
+ `, wc = C`
17828
17820
  mutation OverrideRecipientAddress($id: String!) {
17829
17821
  recipientOverrideAddress(id: $id) {
17830
17822
  id
17831
17823
  }
17832
17824
  }
17833
17825
  `;
17834
- var wc = /* @__PURE__ */ ((n) => (n.Confirmed = "Confirmed", n.Plausible = "Plausible", n.Unlikely = "Unlikely", n))(wc || {}), yc = /* @__PURE__ */ ((n) => (n.Created = "Created", n.Processing = "Processing", n.Completed = "Completed", n.Failed = "Failed", n.Cancelled = "Cancelled", n))(yc || {});
17835
- const Wd = async (n) => {
17826
+ var yc = /* @__PURE__ */ ((n) => (n.Confirmed = "Confirmed", n.Plausible = "Plausible", n.Unlikely = "Unlikely", n))(yc || {}), Sc = /* @__PURE__ */ ((n) => (n.Created = "Created", n.Processing = "Processing", n.Completed = "Completed", n.Failed = "Failed", n.Cancelled = "Cancelled", n))(Sc || {});
17827
+ const qd = async (n) => {
17836
17828
  const t = n.map((a) => a.getTransaction().recipient?.id).filter((a) => !!a), e = await v.getShadowGraphqlClient().query({
17837
- query: gc,
17829
+ query: pc,
17838
17830
  errorPolicy: "all",
17839
17831
  fetchPolicy: "network-only",
17840
17832
  variables: {
@@ -17846,23 +17838,23 @@ const Wd = async (n) => {
17846
17838
  if (r)
17847
17839
  return e.data?.recipients?.find((i) => i.id === r)?.addressValidationJob;
17848
17840
  });
17849
- }, qd = async (n) => (await v.getShadowGraphqlClient().query({
17850
- query: mc,
17841
+ }, Hd = async (n) => (await v.getShadowGraphqlClient().query({
17842
+ query: gc,
17851
17843
  errorPolicy: "all",
17852
17844
  fetchPolicy: "network-only",
17853
17845
  variables: {
17854
17846
  ids: n
17855
17847
  }
17856
- })).data?.addressValidationJobs, Hd = async (n) => n.getTransaction().recipient?.id ? (await v.getShadowGraphqlClient().mutate({
17857
- mutation: pc,
17848
+ })).data?.addressValidationJobs, jd = async (n) => n.getTransaction().recipient?.id ? (await v.getShadowGraphqlClient().mutate({
17849
+ mutation: fc,
17858
17850
  errorPolicy: "all",
17859
17851
  fetchPolicy: "network-only",
17860
17852
  variables: {
17861
17853
  id: n.getTransaction().recipient.id
17862
17854
  }
17863
- })).data?.recipientValidate : void 0, jd = async (n) => {
17855
+ })).data?.recipientValidate : void 0, Yd = async (n) => {
17864
17856
  const t = n.map((a) => a.getTransaction().recipient?.id).filter((a) => !!a), e = await v.getShadowGraphqlClient().mutate({
17865
- mutation: fc,
17857
+ mutation: Cc,
17866
17858
  errorPolicy: "all",
17867
17859
  fetchPolicy: "network-only",
17868
17860
  variables: {
@@ -17874,12 +17866,12 @@ const Wd = async (n) => {
17874
17866
  if (r)
17875
17867
  return e.data?.recipientValidateBatch?.find((i) => i.entityId === r);
17876
17868
  });
17877
- }, Yd = async (n) => {
17869
+ }, Jd = async (n) => {
17878
17870
  const t = n.getTransaction().recipient?.id;
17879
17871
  if (!t)
17880
17872
  return;
17881
17873
  (await v.getShadowGraphqlClient().mutate({
17882
- mutation: Cc,
17874
+ mutation: wc,
17883
17875
  errorPolicy: "all",
17884
17876
  fetchPolicy: "network-only",
17885
17877
  variables: {
@@ -17889,188 +17881,188 @@ const Wd = async (n) => {
17889
17881
  };
17890
17882
  export {
17891
17883
  ga as AddonHandle,
17892
- yc as AddressValidationJobStatus,
17893
- wc as AddressValidationResultConfirmationLevel,
17884
+ Sc as AddressValidationJobStatus,
17885
+ yc as AddressValidationResultConfirmationLevel,
17894
17886
  gn as AddressValidationStatus,
17895
- Id as ArrayInput,
17887
+ Bd as ArrayInput,
17896
17888
  L as AspectType,
17897
17889
  Et as AssetNotFoundError,
17898
17890
  ve as AssetType,
17899
- Cd as BringForwardCommand,
17900
- fd as BringToBackCommand,
17901
- pd as BringToFrontCommand,
17902
- xr as BundleDesignCreationCartAddMode,
17891
+ wd as BringForwardCommand,
17892
+ Cd as BringToBackCommand,
17893
+ fd as BringToFrontCommand,
17894
+ kr as BundleDesignCreationCartAddMode,
17903
17895
  Q as CanvasCommand,
17904
17896
  he as CollectionProduct,
17905
17897
  tn as ColorOptionGlobalPropertyHandle,
17906
- fs as CommandContext,
17898
+ Cs as CommandContext,
17907
17899
  ye as ConversionDataType,
17908
- Ac as ConversionLocation,
17900
+ uc as ConversionLocation,
17909
17901
  z as CreateElementCommand,
17910
- jn as CreateLayoutCommand,
17911
- Yl as CurrencyContext,
17912
- jl as CurrencyService,
17902
+ Yn as CreateLayoutCommand,
17903
+ Jl as CurrencyContext,
17904
+ Yl as CurrencyService,
17913
17905
  Tt as DeleteElementCommand,
17914
- tl as DigitalContentStepHandle,
17915
- wl as FileUploadGlobalPropertyHandle,
17906
+ el as DigitalContentStepHandle,
17907
+ yl as FileUploadGlobalPropertyHandle,
17916
17908
  me as FlowExecutionNodeResult,
17917
- Ll as FlowExecutionResult,
17918
- Ul as FlowService,
17919
- Ss as FontAlignmentCommand,
17920
- ws as FontColorCommand,
17921
- ys as FontSizeCommand,
17909
+ Vl as FlowExecutionResult,
17910
+ Ll as FlowService,
17911
+ vs as FontAlignmentCommand,
17912
+ ys as FontColorCommand,
17913
+ Ss as FontSizeCommand,
17922
17914
  ja as FontSourceCommand,
17923
- tc as FrameService,
17924
- ec as FrameStep,
17925
- ac as FrameStepHandle,
17915
+ ec as FrameService,
17916
+ ac as FrameStep,
17917
+ nc as FrameStepHandle,
17926
17918
  Da as GlobalPropertyHandle,
17927
17919
  O as GroupCommand,
17928
- Ho as IllustrationStepHandle,
17920
+ jo as IllustrationStepHandle,
17929
17921
  Ue as InformationMessageType,
17930
- Zo as InformationStepHandle,
17922
+ tl as InformationStepHandle,
17931
17923
  en as IntegrationProduct,
17932
- Mr as IntegrationType,
17933
- Ad as LayoutElementFactory,
17924
+ Tr as IntegrationType,
17925
+ ud as LayoutElementFactory,
17934
17926
  x as LayoutElementType,
17935
17927
  H as LayoutNotFoundError,
17936
17928
  jt as LayoutRenderingPurpose,
17937
- jo as MaterialStepHandle,
17929
+ Yo as MaterialStepHandle,
17938
17930
  Ie as MisconfigurationError,
17939
- Md as MockWorkflowManager,
17940
- Yo as ModelStepHandle,
17941
- el as ModuleStepHandle,
17942
- ud as MoveCommand,
17943
- lr as ObjectInput,
17944
- Vl as ObjectInputType,
17945
- ir as OptionGlobalPropertyHandle,
17931
+ Td as MockWorkflowManager,
17932
+ Jo as ModelStepHandle,
17933
+ al as ModuleStepHandle,
17934
+ hd as MoveCommand,
17935
+ cr as ObjectInput,
17936
+ zl as ObjectInputType,
17937
+ sr as OptionGlobalPropertyHandle,
17946
17938
  be as OptionNotFoundError,
17947
17939
  Bt as ParseError,
17948
- Jo as PictureStepHandle,
17949
- Tr as ProductCameraRig,
17950
- or as ProductCollection,
17951
- xl as ProductCollectionProductSortKey,
17940
+ Ko as PictureStepHandle,
17941
+ Nr as ProductCameraRig,
17942
+ lr as ProductCollection,
17943
+ kl as ProductCollectionProductSortKey,
17952
17944
  Wt as ProductWorkflow,
17953
17945
  Kt as PromiseCache,
17954
- Qn as PromiseQueue,
17955
- Ko as QuestionStepHandle,
17956
- Nn as QueueablePromise,
17957
- md as ResizeCommand,
17946
+ Rn as PromiseQueue,
17947
+ _o as QuestionStepHandle,
17948
+ Qn as QueueablePromise,
17949
+ gd as ResizeCommand,
17958
17950
  Yt as ResourceNotFoundError,
17959
- hd as RotateCommand,
17951
+ md as RotateCommand,
17960
17952
  W as ScaleAxis,
17961
- wd as SendBackwardsCommand,
17962
- _o as ShapeStepHandle,
17963
- kr as ShareActionType,
17964
- Bd as SpiffCommerceClient,
17953
+ yd as SendBackwardsCommand,
17954
+ Xo as ShapeStepHandle,
17955
+ Mr as ShareActionType,
17956
+ Pd as SpiffCommerceClient,
17965
17957
  Ee as StakeholderType,
17966
- Fr as StepAspectType,
17958
+ xr as StepAspectType,
17967
17959
  X as StepHandle,
17968
17960
  E as StepType,
17969
17961
  xt as TextAlgorithm,
17970
- bs as TextChangeCommand,
17971
- yl as TextGlobalPropertyHandle,
17972
- bd as TextInput,
17973
- Xo as TextStepHandle,
17974
- Ml as Transform,
17975
- kl as TransformCollection,
17962
+ Is as TextChangeCommand,
17963
+ Sl as TextGlobalPropertyHandle,
17964
+ Id as TextInput,
17965
+ Zo as TextStepHandle,
17966
+ Tl as Transform,
17967
+ Ml as TransformCollection,
17976
17968
  T as UnhandledBehaviorError,
17977
- Nr as UnitOfMeasurement,
17978
- gd as UpdateImageSourceCommand,
17969
+ Qr as UnitOfMeasurement,
17970
+ pd as UpdateImageSourceCommand,
17979
17971
  it as Variant,
17980
- ml as WorkflowExperienceEventType,
17981
- gl as WorkflowExperienceImpl,
17972
+ gl as WorkflowExperienceEventType,
17973
+ pl as WorkflowExperienceImpl,
17982
17974
  $ as assetService,
17983
- si as browserColorToHex,
17984
- cd as cmPerPixel,
17985
- ol as createDesign,
17986
- sd as currentDirection,
17987
- Yc as dataUrlFromExternalUrl,
17988
- kd as deleteBundle,
17975
+ oi as browserColorToHex,
17976
+ dd as cmPerPixel,
17977
+ ll as createDesign,
17978
+ od as currentDirection,
17979
+ Jc as dataUrlFromExternalUrl,
17980
+ Md as deleteBundle,
17989
17981
  Xe as designService,
17990
17982
  we as determineCorrectFontSizeAndLines,
17991
- Jn as digitalContentStepService,
17983
+ Kn as digitalContentStepService,
17992
17984
  dt as domParser,
17993
- Qd as duplicateBundle,
17994
- Rd as duplicateTransaction,
17985
+ Rd as duplicateBundle,
17986
+ Od as duplicateTransaction,
17995
17987
  at as fetchAsString,
17996
- Zc as findAngle,
17988
+ td as findAngle,
17997
17989
  U as findElement,
17998
- _c as findPmsColors,
17990
+ Xc as findPmsColors,
17999
17991
  Lt as frameDataCache,
18000
17992
  yt as frameStepService,
18001
17993
  M as generate,
18002
- ro as generateCommands,
17994
+ io as generateCommands,
18003
17995
  ot as generateSVGWithUnknownColors,
18004
- Sd as generateStateFromDesignInputSteps,
18005
- qd as getAddressValidationJobs,
17996
+ vd as generateStateFromDesignInputSteps,
17997
+ Hd as getAddressValidationJobs,
18006
17998
  Re as getAttributesFromArrayBuffer,
18007
- Xc as getAxisAlignedBoundingBox,
18008
- Zl as getBoundedOffsets,
18009
- Fd as getBundleThemeConfiguration,
18010
- Od as getCustomer,
18011
- $d as getCustomerBundles,
18012
- od as getElementVertices,
17999
+ Zc as getAxisAlignedBoundingBox,
18000
+ tc as getBoundedOffsets,
18001
+ xd as getBundleThemeConfiguration,
18002
+ $d as getCustomer,
18003
+ Ud as getCustomerBundles,
18004
+ ld as getElementVertices,
18013
18005
  $e as getFrameData,
18014
- vd as getGlobalPropertyStateForBundle,
18015
- Xl as getIntegration,
18016
- rd as getNEPoint,
18017
- nd as getNWPoint,
18018
- Vd as getOrderedTransactions,
18019
- Dd as getOverrideThemeConfiguration,
18020
- ad as getPointOfRotation,
18021
- Ed as getProductCollections,
18022
- id as getSEPoint,
18006
+ Ed as getGlobalPropertyStateForBundle,
18007
+ Zl as getIntegration,
18008
+ id as getNEPoint,
18009
+ rd as getNWPoint,
18010
+ zd as getOrderedTransactions,
18011
+ Fd as getOverrideThemeConfiguration,
18012
+ nd as getPointOfRotation,
18013
+ bd as getProductCollections,
18014
+ sd as getSEPoint,
18023
18015
  Ea as getSvgElement,
18024
- Gd as getTemplateBundles,
18025
- zd as getTemplateTransactions,
18026
- Pd as getTransaction,
18027
- xd as getTransactionThemeConfiguration,
18028
- Ud as getTransactionsForBundle,
18029
- ed as getTrueCoordinates,
18030
- Ld as getUnorderedTransactions,
18031
- Wd as getValidationJobsForWorkflowExperiences,
18032
- _l as getWorkflow,
18033
- cr as getWorkflows,
18016
+ Wd as getTemplateBundles,
18017
+ Gd as getTemplateTransactions,
18018
+ Dd as getTransaction,
18019
+ kd as getTransactionThemeConfiguration,
18020
+ Ld as getTransactionsForBundle,
18021
+ ad as getTrueCoordinates,
18022
+ Vd as getUnorderedTransactions,
18023
+ qd as getValidationJobsForWorkflowExperiences,
18024
+ Xl as getWorkflow,
18025
+ dr as getWorkflows,
18034
18026
  v as graphQlManager,
18035
18027
  Ce as illustrationStepService,
18036
- td as isCloseToValue,
18028
+ ed as isCloseToValue,
18037
18029
  Mt as loadFont,
18038
- Kc as matchHexToPms,
18039
- Kn as materialStepService,
18040
- Fl as metafieldManager,
18041
- ld as mmPerPixel,
18042
- _n as modelStepService,
18030
+ _c as matchHexToPms,
18031
+ _n as materialStepService,
18032
+ xl as metafieldManager,
18033
+ cd as mmPerPixel,
18034
+ Xn as modelStepService,
18043
18035
  Sa as modifySVGColors,
18044
- Xn as moduleStepService,
18045
- Td as nameBundle,
18046
- Nd as nameTransaction,
18036
+ Zn as moduleStepService,
18037
+ Nd as nameBundle,
18038
+ Qd as nameTransaction,
18047
18039
  q as optionService,
18048
- dd as outlineFontsInSvg,
18049
- Yd as overrideWorkflowExperienceRecipientAddress,
18040
+ Ad as outlineFontsInSvg,
18041
+ Jd as overrideWorkflowExperienceRecipientAddress,
18050
18042
  ut as patternImageDataCache,
18051
18043
  k as persistenceService,
18052
- Zn as pictureStepService,
18053
- Jc as pmsToRgb,
18054
- tr as questionStepService,
18055
- jc as registerFetchImplementation,
18056
- Hc as registerWindowImplementation,
18044
+ tr as pictureStepService,
18045
+ Kc as pmsToRgb,
18046
+ er as questionStepService,
18047
+ Yc as registerFetchImplementation,
18048
+ jc as registerWindowImplementation,
18057
18049
  qa as rehydrateSerializedLayout,
18058
- ni as rgbToPms,
18050
+ ri as rgbToPms,
18059
18051
  de as rotateAroundPoint,
18060
18052
  wa as sanitizeSvgTree,
18061
- Yr as setBearerAuthenticationToken,
18053
+ Jr as setBearerAuthenticationToken,
18062
18054
  vn as setCanvasModule,
18063
18055
  Vt as shapeStepService,
18064
- Bs as shortenUrl,
18056
+ Ps as shortenUrl,
18065
18057
  gt as spiffCoreConfiguration,
18066
- yd as stepAspectValuesToDesignInputSteps,
18058
+ Sd as stepAspectValuesToDesignInputSteps,
18067
18059
  La as svgColorValueToDefinition,
18068
- qn as svgStringDimensions,
18060
+ Hn as svgStringDimensions,
18069
18061
  pa as svgToDataUrl,
18070
18062
  G as textStepService,
18071
- Rs as toast,
18072
- Hd as validateWorkflowExperienceRecipient,
18073
- jd as validateWorkflowExperienceRecipients,
18063
+ Os as toast,
18064
+ jd as validateWorkflowExperienceRecipient,
18065
+ Yd as validateWorkflowExperienceRecipients,
18074
18066
  bt as xmlSerializer
18075
18067
  };
18076
18068
  //# sourceMappingURL=index.mjs.map