@spiffcommerce/core 26.23.0-beta.bb34beac-e663-5dca-b95b-caf892d90f8d → 26.23.0-beta.cb0254e3-a5e6-5c89-9781-1c7679ab35a7

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,31 +1,31 @@
1
- import { createHttpLink as ar, ApolloClient as nr, from as rr, InMemoryCache as ir, gql as y } from "@apollo/client/core";
2
- import { setContext as sr } from "@apollo/client/link/context";
3
- import { onError as or } from "@apollo/client/link/error";
4
- import { renderToStaticMarkup as an } from "preact-render-to-string";
1
+ import { createHttpLink as er, ApolloClient as ar, from as nr, InMemoryCache as rr, gql as y } from "@apollo/client/core";
2
+ import { setContext as ir } from "@apollo/client/link/context";
3
+ import { onError as sr } from "@apollo/client/link/error";
4
+ import { renderToStaticMarkup as or } from "preact-render-to-string";
5
5
  import { removeTypenameFromVariables as lr } from "@apollo/client/link/remove-typename";
6
6
  import { orientation as cr } from "exifr/dist/mini.umd.cjs";
7
- import { parse as nn } from "css";
7
+ import { parse as an } from "css";
8
8
  import dr from "fuse.js";
9
9
  import { Pith as ca } from "pith";
10
10
  import Pt from "lodash.clonedeep";
11
- import { toString as rn } from "qrcode";
11
+ import { toString as nn } from "qrcode";
12
12
  import Ar from "svg-path-bbox";
13
13
  import { parse as Je } from "opentype.js";
14
14
  import { jsx as F, jsxs as lt, Fragment as Vt } from "preact/jsx-runtime";
15
15
  import { dataUriToBuffer as ur } from "data-uri-to-buffer";
16
16
  import Da from "lodash.chunk";
17
- import sn from "lodash.isequal";
17
+ import rn from "lodash.isequal";
18
18
  import { split as Ke } from "unicode-default-word-boundary";
19
- import on from "lodash.debounce";
19
+ import sn from "lodash.debounce";
20
20
  import "fs";
21
21
  import "path";
22
22
  var he = /* @__PURE__ */ ((r) => (r.Data = "Data", r.Font = "Font", r.Frame = "Frame", r.Illustration = "Illustration", r.Image = "Image", r.Model = "Model", r.Material = "Material", r.Color = "Color", r.QuestionnaireCollateral = "QuestionnaireCollateral", r.RequestCollateral = "RequestCollateral", r.SignupCollateral = "SignupCollateral", r.Video = "Video", r.ColorProfile = "ColorProfile", r.Environment = "Environment", r))(he || {}), et = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(et || {}), D = /* @__PURE__ */ ((r) => (r.Information = "Information", r.Bulk = "Bulk", r.DigitalContent = "DigitalContent", r.Finish = "Finish", r.Frame = "Frame", r.Illustration = "Illustration", r.Introduction = "Introduction", r.Material = "Material", r.Model = "Model", r.Module = "Module", r.Picture = "Picture", r.Photo = "Photo", r.ProductOverlay = "ProductOverlay", r.Question = "Question", r.Shape = "Shape", r.SilentIllustration = "SilentIllustration", r.Text = "Text", r))(D || {}), hr = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(hr || {}), Gt = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Gt || {}), T = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(T || {}), mr = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(mr || {}), gr = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(gr || {}), fr = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(fr || {}), da = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(da || {}), pr = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(pr || {}), me = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(me || {}), kt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(kt || {}), H = /* @__PURE__ */ ((r) => (r[r.North = 0] = "North", r[r.Northeast = 1] = "Northeast", r[r.East = 2] = "East", r[r.Southeast = 3] = "Southeast", r[r.South = 4] = "South", r[r.Southwest = 5] = "Southwest", r[r.West = 6] = "West", r[r.Northwest = 7] = "Northwest", r))(H || {}), Cr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Cr || {});
23
- class ln extends Error {
23
+ class on extends Error {
24
24
  constructor(t) {
25
25
  super(t), this.name = this.constructor.name;
26
26
  }
27
27
  }
28
- class Yt extends ln {
28
+ class Yt extends on {
29
29
  constructor(t) {
30
30
  super(`ConfigurationError - ${t}`);
31
31
  }
@@ -55,7 +55,7 @@ class fe extends Yt {
55
55
  super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
56
56
  }
57
57
  }
58
- class Ee extends ln {
58
+ class Ee extends on {
59
59
  constructor(t) {
60
60
  super(`ImplementationError - ${t}`);
61
61
  }
@@ -179,14 +179,14 @@ function ct(r, t) {
179
179
  }
180
180
  return Xe(r, t);
181
181
  }
182
- const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), dn = async (r) => {
182
+ const ln = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @__PURE__ */ new Map(), cn = async (r) => {
183
183
  const t = xa.get(r);
184
184
  if (t)
185
185
  return t;
186
186
  const a = (async () => {
187
187
  var i;
188
188
  const n = await ct(r);
189
- return cn.set(r, ((i = n.headers) == null ? void 0 : i.get("content-type")) || ""), await n.arrayBuffer();
189
+ return ln.set(r, ((i = n.headers) == null ? void 0 : i.get("content-type")) || ""), await n.arrayBuffer();
190
190
  })();
191
191
  return xa.set(r, a), a;
192
192
  }, vr = async (r) => {
@@ -206,7 +206,7 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @_
206
206
  const r = Jt();
207
207
  return new r.DOMParser();
208
208
  }, Br = () => Mt([typeof DOMParser]) ? DOMParser : Jt().DOMParser, be = (r, t) => new Promise((e, a) => {
209
- t ? dn(r).then(e).catch(a) : ct(r).then((n) => {
209
+ t ? cn(r).then(e).catch(a) : ct(r).then((n) => {
210
210
  n.arrayBuffer().then(e).catch(a);
211
211
  }).catch((n) => {
212
212
  a(n);
@@ -215,7 +215,7 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @_
215
215
  t ? vr(r).then(e).catch(a) : ct(r).then((n) => {
216
216
  n.text().then(e).catch(a);
217
217
  }).catch(a);
218
- }), An = (r) => an(r), Qe = /* @__PURE__ */ new Map(), br = async (r, t) => {
218
+ }), dn = (r) => or(r), Qe = /* @__PURE__ */ new Map(), br = async (r, t) => {
219
219
  if (Mt([typeof FontFace])) {
220
220
  if (Qe.has(t))
221
221
  return Qe.get(t);
@@ -257,7 +257,7 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @_
257
257
  const e = t();
258
258
  return e || "image/svg+xml";
259
259
  }, tc = async (r) => {
260
- const t = await dn(r), e = cn.get(r) || Kt(t);
260
+ const t = await cn(r), e = ln.get(r) || Kt(t);
261
261
  return await Pr(new Blob([t], { type: e }));
262
262
  }, Ir = (r) => {
263
263
  let t = "";
@@ -268,7 +268,7 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @_
268
268
  }, Dr = async (r) => {
269
269
  const t = Kt(r), e = new Uint8Array(r), a = Ir(e), n = btoa(a);
270
270
  return `data:${t};base64,${n}`;
271
- }, Aa = (r) => `data:image/svg+xml;base64,${btoa(r)}`, un = (r) => {
271
+ }, Aa = (r) => `data:image/svg+xml;base64,${btoa(r)}`, An = (r) => {
272
272
  const t = r.replace(/\r?\n/g, ""), e = t.indexOf(",");
273
273
  if (e === -1 || e <= 4)
274
274
  throw new TypeError("malformed data: URI");
@@ -287,17 +287,17 @@ const cn = /* @__PURE__ */ new Map(), xa = /* @__PURE__ */ new Map(), Fa = /* @_
287
287
  !i || !i.result ? e() : t(i.result.toString());
288
288
  }, a.readAsDataURL(r);
289
289
  });
290
- let hn;
290
+ let un;
291
291
  const Ma = (r) => {
292
- hn = r;
292
+ un = r;
293
293
  };
294
294
  let ua;
295
295
  const xr = (r) => {
296
296
  ua = r;
297
297
  }, Fr = () => ua;
298
- let mn;
298
+ let hn;
299
299
  const kr = (r) => {
300
- mn = r;
300
+ hn = r;
301
301
  }, Mr = () => new Promise((r) => {
302
302
  const t = wt.getHubUrl(), e = (a) => {
303
303
  a.origin === t && (window.removeEventListener("message", e), r(a.data));
@@ -306,8 +306,8 @@ const kr = (r) => {
306
306
  }), Tr = async () => {
307
307
  const r = {
308
308
  applicationKey: ua,
309
- customerToken: hn,
310
- bearer: mn
309
+ customerToken: un,
310
+ bearer: hn
311
311
  };
312
312
  return typeof window < "u" && (window.location.href.includes("/workflows/product/") || window.location.href.includes("hub=true")) ? { ...await Mr(), ...r } : r;
313
313
  };
@@ -321,10 +321,10 @@ class Qr {
321
321
  return this.shadowGraphqlClient;
322
322
  }
323
323
  constructShadowGraphqlClient() {
324
- const t = ar({
324
+ const t = er({
325
325
  uri: `${wt.getServerUrl()}/graphql`,
326
326
  fetch: ct
327
- }), e = sr(async (i, s) => {
327
+ }), e = ir(async (i, s) => {
328
328
  const { headers: o } = s, l = o || {}, c = await Tr(), d = s.bearer ?? c.bearer, A = s.partnerId ?? c.partnerId, u = s.activeIntegration ?? c.activeIntegration, h = s.transactionOwnerId, m = s.customerToken ?? c.customerToken, g = s.applicationKey ?? c.applicationKey, f = s.bundleOwnerId;
329
329
  try {
330
330
  if (window && window.__SENTRY__) {
@@ -341,13 +341,13 @@ class Qr {
341
341
  return d && (l.Authorization = `Bearer ${d}`), A && (l.partnerId = A), u && (l.activeIntegration = u), h && (l.transactionOwnerId = h), m && (l.customerToken = m), g && (l["X-Application-Key"] = g), f && (l.bundleOwnerId = f), {
342
342
  headers: l
343
343
  };
344
- }), a = or(({ operation: i, graphQLErrors: s, networkError: o }) => {
344
+ }), a = sr(({ operation: i, graphQLErrors: s, networkError: o }) => {
345
345
  const l = s || [];
346
346
  o && console.log("GraphQL Network error"), l.forEach(() => console.log("GraphQL Error: " + i.operationName));
347
347
  }), n = lr();
348
- return new nr({
349
- link: rr([n, a, e, t]),
350
- cache: new ir(),
348
+ return new ar({
349
+ link: nr([n, a, e, t]),
350
+ cache: new rr(),
351
351
  name: "Core"
352
352
  });
353
353
  }
@@ -358,8 +358,8 @@ const mt = (r, t, e) => {
358
358
  if (Ze !== void 0)
359
359
  return Ze(r, t, e);
360
360
  try {
361
- const a = fn(!0);
362
- return gn(a), a.createCanvas(r, t, e);
361
+ const a = gn(!0);
362
+ return mn(a), a.createCanvas(r, t, e);
363
363
  } catch {
364
364
  throw new Error("Canvas module not set");
365
365
  }
@@ -367,16 +367,16 @@ const mt = (r, t, e) => {
367
367
  if (ta !== void 0)
368
368
  return ta(r, t);
369
369
  try {
370
- const e = fn(!0);
371
- return gn(e), e.loadImage(r, t);
370
+ const e = gn(!0);
371
+ return mn(e), e.loadImage(r, t);
372
372
  } catch {
373
373
  throw new Error("Canvas module not set");
374
374
  }
375
375
  };
376
- function gn(r) {
376
+ function mn(r) {
377
377
  Ze = r == null ? void 0 : r.createCanvas, ta = r == null ? void 0 : r.loadImage;
378
378
  }
379
- function fn(r) {
379
+ function gn(r) {
380
380
  try {
381
381
  if (document.createElement("canvas").getContext("2d"))
382
382
  return {
@@ -3192,9 +3192,9 @@ function Ta(r) {
3192
3192
  return t.length === 6 ? t : t.length === 3 ? `${t[0]}${t[0]}${t[1]}${t[1]}${t[2]}${t[2]}` : "";
3193
3193
  }
3194
3194
  const ne = (r) => {
3195
- const t = pn(r.spotColor);
3195
+ const t = fn(r.spotColor);
3196
3196
  return t ? `${r.browserValue} ${t}` : r.browserValue;
3197
- }, pn = (r) => {
3197
+ }, fn = (r) => {
3198
3198
  if (!r)
3199
3199
  return "";
3200
3200
  if (r.profileName.includes("/") && r.profileName.includes(".icc")) {
@@ -3247,7 +3247,7 @@ const ne = (r) => {
3247
3247
  }
3248
3248
  if (a.tagName === "style") {
3249
3249
  try {
3250
- (i = nn(a.innerHTML).stylesheet) == null || i.rules.forEach((c) => {
3250
+ (i = an(a.innerHTML).stylesheet) == null || i.rules.forEach((c) => {
3251
3251
  e.push(c);
3252
3252
  }), a.remove();
3253
3253
  } catch (l) {
@@ -3282,9 +3282,9 @@ const ne = (r) => {
3282
3282
  if (!e)
3283
3283
  throw new Error("viewBox not specified on SVG!");
3284
3284
  a && r.setAttribute("width", a.replace(t, "")), n && r.setAttribute("height", n.replace(t, ""));
3285
- }, Cn = (r) => dt().parseFromString(r, "image/svg+xml").firstElementChild, qr = (r, t, e) => {
3285
+ }, pn = (r) => dt().parseFromString(r, "image/svg+xml").firstElementChild, qr = (r, t, e) => {
3286
3286
  r.setAttribute("height", `${e}px`), r.setAttribute("width", `${t}px`);
3287
- }, wn = (r, t, e) => {
3287
+ }, Cn = (r, t, e) => {
3288
3288
  Ft(r, (a) => {
3289
3289
  const n = a.attributes.getNamedItem("fill");
3290
3290
  n && n.value !== "none" && a.classList.forEach((s) => {
@@ -3323,16 +3323,16 @@ const ne = (r) => {
3323
3323
  }
3324
3324
  });
3325
3325
  });
3326
- }, yn = (r) => Et().serializeToString(r), ga = (r, t, e, a, n) => {
3327
- const i = Cn(r);
3326
+ }, wn = (r) => Et().serializeToString(r), ga = (r, t, e, a, n) => {
3327
+ const i = pn(r);
3328
3328
  if (!i)
3329
3329
  throw new Error("Failed to read SVG.");
3330
- return qr(i, t, e), wn(i, a, n), yn(i);
3330
+ return qr(i, t, e), Cn(i, a, n), wn(i);
3331
3331
  }, fa = (r, t, e) => {
3332
- const a = Cn(r);
3332
+ const a = pn(r);
3333
3333
  if (!a)
3334
3334
  throw new Error("Failed to read SVG.");
3335
- return wn(a, t, e), yn(a);
3335
+ return Cn(a, t, e), wn(a);
3336
3336
  }, Yr = (r) => {
3337
3337
  const t = /<svg.*<\/svg>/s, e = r.match(t) || [], a = (e == null ? void 0 : e.length) > 0 ? e[0] : "";
3338
3338
  return dt().parseFromString(a, "image/svg+xml");
@@ -3699,7 +3699,7 @@ class ai {
3699
3699
  }
3700
3700
  }
3701
3701
  }
3702
- const Nt = "persistentAssets", Sn = class ft {
3702
+ const Nt = "persistentAssets", yn = class ft {
3703
3703
  /**
3704
3704
  * Add a new asset to persistence
3705
3705
  * @param asset The asset to add.
@@ -3750,8 +3750,8 @@ const Nt = "persistentAssets", Sn = class ft {
3750
3750
  ft.callbacks.forEach((t) => t());
3751
3751
  }
3752
3752
  };
3753
- Sn.callbacks = [];
3754
- let Bt = Sn;
3753
+ yn.callbacks = [];
3754
+ let Bt = yn;
3755
3755
  const Na = "bgrmPersistentAssets";
3756
3756
  class J {
3757
3757
  static has(t) {
@@ -3817,7 +3817,7 @@ class ni {
3817
3817
  this.disabled = t;
3818
3818
  }
3819
3819
  }
3820
- const Ht = new ni(), vn = y`
3820
+ const Ht = new ni(), Sn = y`
3821
3821
  fragment OptionFields on Option {
3822
3822
  id
3823
3823
  name
@@ -3857,7 +3857,7 @@ const Ht = new ni(), vn = y`
3857
3857
  `, ri = y`
3858
3858
  ${Xt(!1)}
3859
3859
  ${pa}
3860
- ${vn}
3860
+ ${Sn}
3861
3861
  query GetOptions($ids: [String]!) {
3862
3862
  options(ids: $ids) {
3863
3863
  ...OptionFields
@@ -3932,7 +3932,7 @@ class li {
3932
3932
  }
3933
3933
  }
3934
3934
  }
3935
- const X = new li(), En = y`
3935
+ const X = new li(), vn = y`
3936
3936
  fragment ActiveIntegrationFields on Integration {
3937
3937
  id
3938
3938
  logo
@@ -4054,7 +4054,7 @@ const X = new li(), En = y`
4054
4054
  }
4055
4055
  }
4056
4056
  }
4057
- `, Bn = y`
4057
+ `, En = y`
4058
4058
  fragment StakeholderFields on Stakeholder {
4059
4059
  id
4060
4060
  type
@@ -4062,7 +4062,7 @@ const X = new li(), En = y`
4062
4062
  authorizationNote
4063
4063
  authorizationStatus
4064
4064
  }
4065
- `, bn = y`
4065
+ `, Bn = y`
4066
4066
  fragment TransactionShareActionFields on TransactionShareAction {
4067
4067
  id
4068
4068
  title
@@ -4073,9 +4073,9 @@ const X = new li(), En = y`
4073
4073
  }
4074
4074
  `, di = y`
4075
4075
  ${De}
4076
- ${Bn}
4077
- ${bn}
4078
4076
  ${En}
4077
+ ${Bn}
4078
+ ${vn}
4079
4079
  query ReadTransactions($ids: [String]!) {
4080
4080
  transactions(ids: $ids) {
4081
4081
  customLogoLink
@@ -4292,7 +4292,7 @@ const X = new li(), En = y`
4292
4292
  }
4293
4293
  }
4294
4294
  `, mi = y`
4295
- ${bn}
4295
+ ${Bn}
4296
4296
  query ReadTransactionForShareActions($id: String!) {
4297
4297
  transactions(ids: [$id]) {
4298
4298
  id
@@ -4302,14 +4302,14 @@ const X = new li(), En = y`
4302
4302
  }
4303
4303
  }
4304
4304
  }
4305
- `, In = y`
4305
+ `, bn = y`
4306
4306
  query ReadWorkflowStates($ids: [String]!) {
4307
4307
  transactions(ids: $ids) {
4308
4308
  id
4309
4309
  workflowState
4310
4310
  }
4311
4311
  }
4312
- `, Dn = y`
4312
+ `, In = y`
4313
4313
  ${De}
4314
4314
  fragment IntegrationProductFields on IntegrationProduct {
4315
4315
  id
@@ -4373,14 +4373,14 @@ const X = new li(), En = y`
4373
4373
  }
4374
4374
  }
4375
4375
  `, gi = y`
4376
- ${Dn}
4376
+ ${In}
4377
4377
  query GetIntegrationProducts($ids: [String!]!) {
4378
4378
  integrationProducts(ids: $ids) {
4379
4379
  ...IntegrationProductFields
4380
4380
  }
4381
4381
  }
4382
4382
  `, fi = y`
4383
- ${Dn}
4383
+ ${In}
4384
4384
  query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
4385
4385
  integrationProductFromExternalIds(
4386
4386
  externalIntegrationId: $externalIntegrationId
@@ -4390,7 +4390,7 @@ const X = new li(), En = y`
4390
4390
  }
4391
4391
  }
4392
4392
  `, pi = y`
4393
- ${Bn}
4393
+ ${En}
4394
4394
  query ReadTransactionForStakeholders($id: String!) {
4395
4395
  transactions(ids: [$id]) {
4396
4396
  stakeholders {
@@ -4528,7 +4528,7 @@ const X = new li(), En = y`
4528
4528
  `, Ei = (r) => y`
4529
4529
  ${Xt(r)}
4530
4530
  ${pa}
4531
- ${vn}
4531
+ ${Sn}
4532
4532
  ${wi}
4533
4533
  ${yi}
4534
4534
  ${Si}
@@ -5049,7 +5049,7 @@ const X = new li(), En = y`
5049
5049
  }
5050
5050
  }
5051
5051
  `, Di = y`
5052
- ${En}
5052
+ ${vn}
5053
5053
  ${Pe}
5054
5054
  query GetCurrentIntegration($themeConfigurationId: String) {
5055
5055
  currentIntegration {
@@ -5175,12 +5175,12 @@ const X = new li(), En = y`
5175
5175
  );
5176
5176
  return i;
5177
5177
  };
5178
- class Pn {
5178
+ class Dn {
5179
5179
  constructor() {
5180
5180
  this.timestamp = Date.now();
5181
5181
  }
5182
5182
  }
5183
- class xn {
5183
+ class Pn {
5184
5184
  /**
5185
5185
  * Constructs a new promise queue.
5186
5186
  * @param queueMaxSize An optional maximum size, when the max size is hit.
@@ -5313,7 +5313,7 @@ const Q = () => {
5313
5313
  {
5314
5314
  id: "element-group",
5315
5315
  clipPath: a.purpose === Gt.FreeDesign ? "url(#viewboxClip)" : void 0,
5316
- children: S.map((E) => Nn(E)).filter((E) => !!E)
5316
+ children: S.map((E) => Qn(E)).filter((E) => !!E)
5317
5317
  }
5318
5318
  ),
5319
5319
  l && /* @__PURE__ */ F(
@@ -5432,7 +5432,7 @@ const Q = () => {
5432
5432
  x: (r.x - t.x) * n - (r.y - t.y) * a + t.x,
5433
5433
  y: (r.x - t.x) * a + (r.y - t.y) * n + t.y
5434
5434
  };
5435
- }, mc = 0.352778, gc = 0.035277, Fn = (r) => {
5435
+ }, mc = 0.352778, gc = 0.035277, xn = (r) => {
5436
5436
  const t = r.rotation || 0, e = gt(t), a = Math.cos(e), n = -Math.sin(e);
5437
5437
  return /* @__PURE__ */ F("g", { mask: r.stepName || r.productOverlay ? void 0 : r.mask, children: /* @__PURE__ */ F(
5438
5438
  "g",
@@ -5454,7 +5454,7 @@ const Q = () => {
5454
5454
  )
5455
5455
  }
5456
5456
  ) });
5457
- }, kn = (r) => {
5457
+ }, Fn = (r) => {
5458
5458
  var l;
5459
5459
  const t = `spiff-group-clip-${r.id}`, e = r.rotation || 0, a = gt(e), n = Math.cos(a), i = -Math.sin(a), s = ya(r.children);
5460
5460
  return /* @__PURE__ */ lt(Vt, { children: [
@@ -5481,7 +5481,7 @@ const Q = () => {
5481
5481
  height: r.height
5482
5482
  }
5483
5483
  ) : void 0,
5484
- s.map((c) => Nn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ F("g", { clipPath: `url(#${t})`, children: c }))
5484
+ s.map((c) => Qn(c)).filter((c) => !!c).map((c) => /* @__PURE__ */ F("g", { clipPath: `url(#${t})`, children: c }))
5485
5485
  ]
5486
5486
  }
5487
5487
  )
@@ -5561,7 +5561,7 @@ const Q = () => {
5561
5561
  matrix(${r.scaleX}, 0, 0, ${r.scaleY}, 0, 0)
5562
5562
  `,
5563
5563
  children: /* @__PURE__ */ F(
5564
- kn,
5564
+ Fn,
5565
5565
  {
5566
5566
  id: t,
5567
5567
  x: 0,
@@ -5578,7 +5578,7 @@ const Q = () => {
5578
5578
  }
5579
5579
  )
5580
5580
  ] });
5581
- }, Mn = /* @__PURE__ */ new Map();
5581
+ }, kn = /* @__PURE__ */ new Map();
5582
5582
  class Oi {
5583
5583
  constructor(t) {
5584
5584
  this.font = t, this.glyphsFromText = /* @__PURE__ */ new Map(), this.kerningValues = /* @__PURE__ */ new Map(), this.height = this.calculateApproximateHeight();
@@ -5637,7 +5637,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5637
5637
  return St(r).getFont();
5638
5638
  } catch {
5639
5639
  if (Ui(r)) {
5640
- const a = un(r), n = Je(a);
5640
+ const a = An(r), n = Je(a);
5641
5641
  return aa(r, n), n;
5642
5642
  } else {
5643
5643
  const a = await be(r, !0), n = Je(a);
@@ -5647,21 +5647,21 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5647
5647
  })();
5648
5648
  return Oe.set(r, e), e;
5649
5649
  }, Li = (r) => {
5650
- const t = un(r), e = Je(t);
5650
+ const t = An(r), e = Je(t);
5651
5651
  return aa(r, e), e;
5652
5652
  }, St = (r) => {
5653
- const t = Mn.get(r);
5653
+ const t = kn.get(r);
5654
5654
  if (t)
5655
5655
  return t;
5656
5656
  throw new Error("Font metrics unavailable for font");
5657
5657
  }, aa = (r, t) => {
5658
5658
  const e = new Oi(t);
5659
- return Mn.set(r, e), e;
5659
+ return kn.set(r, e), e;
5660
5660
  }, fc = async (r) => {
5661
5661
  const t = dt(), e = t.parseFromString(r, "image/svg+xml"), a = e.firstElementChild, n = /* @__PURE__ */ new Map();
5662
5662
  a.querySelectorAll("style").forEach((d) => {
5663
5663
  var u;
5664
- (u = nn(d.innerHTML).stylesheet) == null || u.rules.forEach((h) => {
5664
+ (u = an(d.innerHTML).stylesheet) == null || u.rules.forEach((h) => {
5665
5665
  var m, g, f;
5666
5666
  if (h.type === "font-face" && h.declarations) {
5667
5667
  const p = (m = h.declarations.find(
@@ -5746,7 +5746,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5746
5746
  throw new Error(`No max width calculated for text: ${o}.`);
5747
5747
  return { lines: o, width: l };
5748
5748
  }, $i = (r, t, e, a, n, i) => {
5749
- const s = (i ?? Ca) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = Tn(r, o, t), c = r.length * s * o, d = a / l, A = n / c;
5749
+ const s = (i ?? Ca) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = Mn(r, o, t), c = r.length * s * o, d = a / l, A = n / c;
5750
5750
  return Math.min(A, d);
5751
5751
  }, Vi = (r, t, e, a) => {
5752
5752
  var c;
@@ -5773,7 +5773,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5773
5773
  }, zi = (r, t, e, a, n) => {
5774
5774
  const s = St(t.assetUrl).getFont();
5775
5775
  let o = { ...r };
5776
- const l = { ...r }, c = Tn(a, e / s.unitsPerEm, St(t.assetUrl));
5776
+ const l = { ...r }, c = Mn(a, e / s.unitsPerEm, St(t.assetUrl));
5777
5777
  return c && c < o.width && (l.width = c, n === "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) : n === "right" ? l.left += o.width - c : l.left += (o.width - c) / 2, a && Wi(a, a).every(([d, A]) => d === A) && (o = l)), o;
5778
5778
  }, Ue = 1, ht = (r, t, e) => {
5779
5779
  let a = 0;
@@ -5793,7 +5793,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5793
5793
  a = Math.max(a, o || 0);
5794
5794
  }
5795
5795
  }), a *= t, a;
5796
- }, Tn = (r, t, e) => {
5796
+ }, Mn = (r, t, e) => {
5797
5797
  let a = 0;
5798
5798
  return r.forEach((n) => {
5799
5799
  a = Math.max(a, ht(n, t, e));
@@ -5807,7 +5807,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5807
5807
  let a = r || "";
5808
5808
  return e.stripControlCharacters && (a = a.replace(/^(?![\u000A\u000D])[\u0000-\u001F\u007F-\u009F]/g, "")), e.uppercase && (a = a.toUpperCase()), e.vertical && (a = a.split("").join(`
5809
5809
  `)), a;
5810
- }, Wi = (r, t) => r.map((e, a) => [e, t[a]]), ji = (r = "center", t = !1) => t ? "center" : r, Qn = (r) => r === "left" ? "start" : r === "right" ? "end" : "middle", Zt = (r, t, e) => r.fontData ? {
5810
+ }, Wi = (r, t) => r.map((e, a) => [e, t[a]]), ji = (r = "center", t = !1) => t ? "center" : r, Tn = (r) => r === "left" ? "start" : r === "right" ? "end" : "middle", Zt = (r, t, e) => r.fontData ? {
5811
5811
  ...r,
5812
5812
  ...(() => {
5813
5813
  if (r.algorithm === kt.Traditional) {
@@ -5833,7 +5833,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5833
5833
  return null;
5834
5834
  const u = () => {
5835
5835
  var p;
5836
- return r.textFillImage ? `url("#${s}")` : (p = r._renderingConfiguration) != null && p.spotColors && r.fillSpotColorDefinition ? `${r.fill} ${pn(r.fillSpotColorDefinition)}` : r.fill;
5836
+ return r.textFillImage ? `url("#${s}")` : (p = r._renderingConfiguration) != null && p.spotColors && r.fillSpotColorDefinition ? `${r.fill} ${fn(r.fillSpotColorDefinition)}` : r.fill;
5837
5837
  };
5838
5838
  return /* @__PURE__ */ lt(Vt, { children: [
5839
5839
  /* @__PURE__ */ lt("defs", { children: [
@@ -5920,14 +5920,14 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5920
5920
  const s = (r.amountLines - 1) / 2;
5921
5921
  return (r.thisLineIdx - s) * n + r.fontSize / 4;
5922
5922
  };
5923
- return /* @__PURE__ */ F("tspan", { textAnchor: Qn(r.align), x: e(), y: `${a()}px`, children: r.text });
5923
+ return /* @__PURE__ */ F("tspan", { textAnchor: Tn(r.align), x: e(), y: `${a()}px`, children: r.text });
5924
5924
  }, Yi = (r) => {
5925
5925
  const t = `#${r.curvedPathId}`;
5926
5926
  return /* @__PURE__ */ F(
5927
5927
  "textPath",
5928
5928
  {
5929
5929
  startOffset: (() => r.align === "left" ? "0%" : r.align === "right" ? "100%" : "50%")(),
5930
- textAnchor: Qn(r.align),
5930
+ textAnchor: Tn(r.align),
5931
5931
  href: t,
5932
5932
  xlinkHref: t,
5933
5933
  children: r.text
@@ -5937,7 +5937,7 @@ const Ui = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Oe = /* @_
5937
5937
  var s, o;
5938
5938
  if (r.cachedObjectURL && !((s = r._renderingConfiguration) != null && s.omitCachedFields))
5939
5939
  return /* @__PURE__ */ F(
5940
- Fn,
5940
+ xn,
5941
5941
  {
5942
5942
  id: r.id,
5943
5943
  src: r.cachedObjectURL,
@@ -6044,10 +6044,7 @@ class Ki {
6044
6044
  layout: t,
6045
6045
  elements: e
6046
6046
  },
6047
- getComponentWithProps: (a) => {
6048
- const n = wa(t, e, a);
6049
- return n && console.log(an(n)), n;
6050
- }
6047
+ getComponentWithProps: (a) => wa(t, e, a)
6051
6048
  };
6052
6049
  }
6053
6050
  initialize(t, e) {
@@ -6062,7 +6059,7 @@ class Ki {
6062
6059
  layouts: {}
6063
6060
  };
6064
6061
  t.forEach((n) => {
6065
- a = new Ln(n).apply(a);
6062
+ a = new Un(n).apply(a);
6066
6063
  }), this.runStateCallbacks(), this.state = {
6067
6064
  transaction: a
6068
6065
  };
@@ -6072,7 +6069,7 @@ class Ki {
6072
6069
  return { ...t, transaction: e.apply(a) };
6073
6070
  }
6074
6071
  }
6075
- const Nn = (r) => r.type === T.Image ? /* @__PURE__ */ F(Fn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ F(Ri, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ F(Ji, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ F(Hi, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ F(kn, { ...r }, r.id) : null, wa = (r, t, e) => {
6072
+ const Qn = (r) => r.type === T.Image ? /* @__PURE__ */ F(xn, { ...r }, r.id) : r.type === T.Frame ? /* @__PURE__ */ F(Ri, { ...r }, r.id) : r.type === T.Illustration ? /* @__PURE__ */ F(Ji, { ...r }, r.id) : r.type === T.Textbox ? /* @__PURE__ */ F(Hi, { ...r }, r.id) : r.type === T.Group ? /* @__PURE__ */ F(Fn, { ...r }, r.id) : null, wa = (r, t, e) => {
6076
6073
  const a = e.renderingConfiguration, n = a != null && a.removeExcludedElements ? t.filter((i) => !i.excludeFromExport) : t;
6077
6074
  return /* @__PURE__ */ F(
6078
6075
  Ni,
@@ -6122,7 +6119,7 @@ const te = (r) => {
6122
6119
  if (r.defaultVariant !== void 0)
6123
6120
  return t.find((e) => e.id === r.defaultVariant);
6124
6121
  }
6125
- }, At = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ new Map(), Rn = async (r, t) => {
6122
+ }, At = /* @__PURE__ */ new Map(), Lt = /* @__PURE__ */ new Map(), Le = /* @__PURE__ */ new Map(), Nn = async (r, t) => {
6126
6123
  if (!t) {
6127
6124
  if (!r)
6128
6125
  throw new Error("No region or src supplied. Cannot construct frame!");
@@ -6199,7 +6196,7 @@ const te = (r) => {
6199
6196
  if (At.has(r))
6200
6197
  return At.get(r);
6201
6198
  if (r.startsWith("data:image/svg+xml")) {
6202
- const a = ur(r), n = new TextDecoder().decode(a.buffer), i = On(n), s = {
6199
+ const a = ur(r), n = new TextDecoder().decode(a.buffer), i = Rn(n), s = {
6203
6200
  src: r,
6204
6201
  width: i.width,
6205
6202
  height: i.height,
@@ -6230,8 +6227,8 @@ const te = (r) => {
6230
6227
  }
6231
6228
  }, va = async (r) => {
6232
6229
  const t = await at(r);
6233
- return On(t);
6234
- }, Ua = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), On = (r) => {
6230
+ return Rn(t);
6231
+ }, Ua = (r) => r.endsWith("mm") ? Number(r.replace("mm", "")) * 3.7795275591 : r.endsWith("px") ? Number(r.replace("px", "")) : Number(r), Rn = (r) => {
6235
6232
  const a = dt().parseFromString(r, "image/svg+xml").querySelector("svg");
6236
6233
  if (!a)
6237
6234
  throw new Error("No svg tag found, this svg must be malformed!");
@@ -6245,7 +6242,7 @@ const te = (r) => {
6245
6242
  }, Ot = (r, t) => {
6246
6243
  const e = r.layoutState.elements.filter((n) => n.layer === t), a = Math.max(...e.map((n) => n.layerIndex).filter((n) => n !== void 0));
6247
6244
  return Math.max(a, 0) + 1;
6248
- }, Un = async (r) => new Promise((t) => {
6245
+ }, On = async (r) => new Promise((t) => {
6249
6246
  at(r).then((e) => {
6250
6247
  t(e);
6251
6248
  }).catch((e) => console.error(e));
@@ -6299,7 +6296,7 @@ const te = (r) => {
6299
6296
  panelId: r.layoutState.layout.panelId
6300
6297
  };
6301
6298
  if (e && t === T.Illustration) {
6302
- const l = await ot(await Un(e)), u = dt().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
6299
+ const l = await ot(await On(e)), u = dt().parseFromString(l.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
6303
6300
  if (!u)
6304
6301
  throw new Error("SVG missing viewBox.");
6305
6302
  const h = o.height, m = u.split(" "), g = parseFloat(m[2]) || 1, f = parseFloat(m[3]) || 1, p = g / f;
@@ -6318,7 +6315,7 @@ const te = (r) => {
6318
6315
  };
6319
6316
  class pc {
6320
6317
  static async getFrame(t, e) {
6321
- const a = await Rn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
6318
+ const a = await Nn(e.region, e.src), n = await xe(a), i = e.region || await Ut(t, T.Frame);
6322
6319
  return {
6323
6320
  id: Q(),
6324
6321
  x: i.left,
@@ -6452,7 +6449,7 @@ class pc {
6452
6449
  };
6453
6450
  }
6454
6451
  static async getIllustration(t, e) {
6455
- const a = e.region || await Ut(t, T.Illustration, e.src), n = await ot(await Un(e.src)), i = await qt(n.svg), s = Q();
6452
+ const a = e.region || await Ut(t, T.Illustration, e.src), n = await ot(await On(e.src)), i = await qt(n.svg), s = Q();
6456
6453
  return {
6457
6454
  cachedObjectURL: i,
6458
6455
  stepRegion: e.region,
@@ -6646,7 +6643,7 @@ class O extends R {
6646
6643
  return this.oldState = t, this.commands.reduce((e, a) => a.apply(e), t);
6647
6644
  }
6648
6645
  }
6649
- class Ln extends R {
6646
+ class Un extends R {
6650
6647
  constructor(t) {
6651
6648
  super(), this.layout = t;
6652
6649
  }
@@ -7267,7 +7264,7 @@ const is = async (r) => {
7267
7264
  throw console.error(e), new Be("Failed to shorten URL, see console.");
7268
7265
  }
7269
7266
  };
7270
- class $n {
7267
+ class Ln {
7271
7268
  async poll() {
7272
7269
  try {
7273
7270
  if (await this.predicate()) {
@@ -7314,7 +7311,7 @@ class ss {
7314
7311
  const h = (await ea([e]))[0], m = (f = (g = h == null ? void 0 : h.versions) == null ? void 0 : g.find((p) => p.name === "mpeg4")) == null ? void 0 : f.link;
7315
7312
  return { asset: h, link: m };
7316
7313
  }, s = await new Promise((h, m) => {
7317
- new $n(
7314
+ new Ln(
7318
7315
  async () => !!(await i()).link,
7319
7316
  async () => {
7320
7317
  const g = await i();
@@ -7354,7 +7351,7 @@ class ss {
7354
7351
  return t.data.regions.map(e);
7355
7352
  }
7356
7353
  async command(t, e, a, n) {
7357
- const i = a.getLayouts(), o = `data:image/svg+xml;base64,${btoa(await rn(t, { type: "svg" }))}`, l = e.map((c) => {
7354
+ const i = a.getLayouts(), o = `data:image/svg+xml;base64,${btoa(await nn(t, { type: "svg" }))}`, l = e.map((c) => {
7358
7355
  const d = c.region, A = i.find((u) => u.panelId === (d == null ? void 0 : d.panelId));
7359
7356
  if (!A && d)
7360
7357
  throw new Y(d);
@@ -7382,7 +7379,7 @@ class ss {
7382
7379
  } };
7383
7380
  }
7384
7381
  }
7385
- const Vn = new ss();
7382
+ const $n = new ss();
7386
7383
  class we {
7387
7384
  constructor() {
7388
7385
  this.frameSourceSvg = async (t, e) => {
@@ -7504,7 +7501,7 @@ class we {
7504
7501
  const o = e.fileLink || "";
7505
7502
  return o.endsWith(".pdf") || o.endsWith(".eps") || o.endsWith(".ai") ? new Promise((c) => {
7506
7503
  a.addPoller(
7507
- new $n(
7504
+ new Ln(
7508
7505
  async () => {
7509
7506
  var h;
7510
7507
  const A = (h = (await U.getFromServer(e.key || "")).versions) == null ? void 0 : h.find((m) => m.name === "svg");
@@ -8095,7 +8092,7 @@ class ls {
8095
8092
  };
8096
8093
  }
8097
8094
  }
8098
- const zn = new ls();
8095
+ const Vn = new ls();
8099
8096
  class cs {
8100
8097
  async init(t, e, a) {
8101
8098
  const n = t.option;
@@ -8181,7 +8178,7 @@ class cs {
8181
8178
  };
8182
8179
  }
8183
8180
  }
8184
- const Gn = new cs();
8181
+ const zn = new cs();
8185
8182
  class ds {
8186
8183
  async init(t, e, a) {
8187
8184
  if (a)
@@ -8294,7 +8291,7 @@ class ds {
8294
8291
  return n(""), { input: e, helperData: {} };
8295
8292
  }
8296
8293
  }
8297
- const Wn = new ds();
8294
+ const Gn = new ds();
8298
8295
  class As {
8299
8296
  async init(t, e, a) {
8300
8297
  const n = t.option;
@@ -8386,7 +8383,7 @@ class As {
8386
8383
  };
8387
8384
  }
8388
8385
  }
8389
- const jn = new As();
8386
+ const Wn = new As();
8390
8387
  class us {
8391
8388
  async init(t, e, a) {
8392
8389
  const n = t.option;
@@ -8445,7 +8442,7 @@ class us {
8445
8442
  };
8446
8443
  }
8447
8444
  }
8448
- const Hn = new us();
8445
+ const jn = new us();
8449
8446
  class hs {
8450
8447
  constructor() {
8451
8448
  this.shapeFillId = "spiff-fill-shape";
@@ -9459,7 +9456,7 @@ class Is extends Cs {
9459
9456
  return Es(f, C, e.height, e.width, 0.35, 0.65), vs(u.outerHTML);
9460
9457
  }
9461
9458
  }
9462
- async function qn(r) {
9459
+ async function Hn(r) {
9463
9460
  if (r === "Vegemite")
9464
9461
  return new Is();
9465
9462
  throw new z(`Failed to resolve Module, Module ${r} not found`);
@@ -10007,7 +10004,7 @@ const xs = y`
10007
10004
  `;
10008
10005
  var Me = /* @__PURE__ */ ((r) => (r.Error = "Error", r.Warning = "Warning", r.Info = "Info", r))(Me || {});
10009
10006
  const to = 1e3;
10010
- class ja extends Pn {
10007
+ class ja extends Dn {
10011
10008
  constructor(t) {
10012
10009
  super(), this.createdAt = /* @__PURE__ */ new Date(), this.update = t;
10013
10010
  }
@@ -10021,7 +10018,7 @@ class ja extends Pn {
10021
10018
  }
10022
10019
  class eo {
10023
10020
  constructor(t, e, a, n, i, s, o, l, c, d, A, u, h = !1, m, g = !1, f = !1, p = !1) {
10024
- this.workflowStatePromiseQueue = new xn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10021
+ this.workflowStatePromiseQueue = new Pn(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
10025
10022
  var v;
10026
10023
  if (!this.previewService)
10027
10024
  return;
@@ -10311,7 +10308,7 @@ class eo {
10311
10308
  ...this.storage,
10312
10309
  [t]: { ...this.storage[t], ...e }
10313
10310
  };
10314
- if (!sn(a, this.storage)) {
10311
+ if (!rn(a, this.storage)) {
10315
10312
  this.storage = a;
10316
10313
  const n = new $a(this.constructSerializableWorkflow());
10317
10314
  this.commandContext.apply(n, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
@@ -10552,7 +10549,7 @@ class eo {
10552
10549
  switch (this.stepInitialised[l.stepName] = !0, l.type) {
10553
10550
  case D.DigitalContent:
10554
10551
  a.push(
10555
- Vn.init(
10552
+ $n.init(
10556
10553
  l,
10557
10554
  this,
10558
10555
  this.reloadedState
@@ -10571,27 +10568,27 @@ class eo {
10571
10568
  break;
10572
10569
  case D.Material:
10573
10570
  a.push(
10574
- zn.init(l, this, this.reloadedState)
10571
+ Vn.init(l, this, this.reloadedState)
10575
10572
  );
10576
10573
  break;
10577
10574
  case D.Model:
10578
- a.push(Gn.init(l, this, this.reloadedState));
10575
+ a.push(zn.init(l, this, this.reloadedState));
10579
10576
  break;
10580
10577
  case D.Module:
10581
10578
  this.stepSpecificServices[l.stepName] = {
10582
- module: await qn(l.data.module)
10579
+ module: await Hn(l.data.module)
10583
10580
  }, a.push(
10584
- Wn.init(l, this, this.reloadedState)
10581
+ Gn.init(l, this, this.reloadedState)
10585
10582
  );
10586
10583
  break;
10587
10584
  case D.Picture:
10588
10585
  a.push(
10589
- jn.init(l, this, this.reloadedState)
10586
+ Wn.init(l, this, this.reloadedState)
10590
10587
  );
10591
10588
  break;
10592
10589
  case D.Question:
10593
10590
  a.push(
10594
- Hn.init(l, this, this.reloadedState)
10591
+ jn.init(l, this, this.reloadedState)
10595
10592
  );
10596
10593
  break;
10597
10594
  case D.Shape:
@@ -10744,7 +10741,7 @@ class it {
10744
10741
  return this.variantData.enabled;
10745
10742
  }
10746
10743
  }
10747
- const Yn = class sa {
10744
+ const qn = class sa {
10748
10745
  constructor(t, e, a) {
10749
10746
  this.manager = t, this.step = e, this.tags = a;
10750
10747
  }
@@ -10875,8 +10872,8 @@ const Yn = class sa {
10875
10872
  e ? i && e.executeCameraAnimation(i) : console.warn("No preview service available, cannot execute camera animations."), a ? n && a.executeAnimation(n, t) : console.warn("No model container available, cannot execute model animations.");
10876
10873
  }
10877
10874
  };
10878
- Yn.updateState = /* @__PURE__ */ new Map();
10879
- let rt = Yn;
10875
+ qn.updateState = /* @__PURE__ */ new Map();
10876
+ let rt = qn;
10880
10877
  class ao extends rt {
10881
10878
  constructor(t, e, a) {
10882
10879
  super(t, e, a);
@@ -10960,7 +10957,7 @@ class no extends rt {
10960
10957
  super(t, e, a);
10961
10958
  }
10962
10959
  selectVariant(t) {
10963
- return zn.selectVariant(
10960
+ return Vn.selectVariant(
10964
10961
  this.step,
10965
10962
  t.getResource(),
10966
10963
  this.manager,
@@ -10973,7 +10970,7 @@ class ro extends rt {
10973
10970
  super(t, e, a);
10974
10971
  }
10975
10972
  selectVariant(t) {
10976
- return Gn.selectVariant(
10973
+ return zn.selectVariant(
10977
10974
  this.step,
10978
10975
  t.getResource(),
10979
10976
  this.manager,
@@ -10991,7 +10988,7 @@ class io extends rt {
10991
10988
  * @returns A promise that can be awaited to ensure the new image asset has been updated on the design.
10992
10989
  */
10993
10990
  selectVariant(t) {
10994
- return jn.selectVariant(
10991
+ return Wn.selectVariant(
10995
10992
  this.step,
10996
10993
  t.getResource(),
10997
10994
  this.manager,
@@ -11006,7 +11003,7 @@ class so extends rt {
11006
11003
  async selectVariant(t) {
11007
11004
  if (!t.getId())
11008
11005
  throw new Error("Unable to select variant with a null ID");
11009
- await Hn.selectVariant(this.step, t.getId(), this.manager);
11006
+ await jn.selectVariant(this.step, t.getId(), this.manager);
11010
11007
  }
11011
11008
  /**
11012
11009
  * The way that this step expects to be rendered.
@@ -11304,7 +11301,7 @@ class Ao extends rt {
11304
11301
  * @returns The final URL string for the QR code.
11305
11302
  */
11306
11303
  async selectVideo(t) {
11307
- return Vn.regenerateQRCode(
11304
+ return $n.regenerateQRCode(
11308
11305
  this.manager.getRegionElements(this.step.stepName),
11309
11306
  t.key,
11310
11307
  this.manager,
@@ -11342,7 +11339,7 @@ class uo extends rt {
11342
11339
  return ((t = this.manager.getStepStorage(this.step.stepName)) == null ? void 0 : t.text) || "";
11343
11340
  }
11344
11341
  setText(t) {
11345
- Wn.changeText(this.step, t, this.manager, (e) => {
11342
+ Gn.changeText(this.step, t, this.manager, (e) => {
11346
11343
  if (e) {
11347
11344
  const a = [
11348
11345
  ...this.manager.getInformationResults(),
@@ -11390,7 +11387,7 @@ class ie {
11390
11387
  }
11391
11388
  }
11392
11389
  }
11393
- const Jn = y`
11390
+ const Yn = y`
11394
11391
  fragment CreateDesignTransaction on Transaction {
11395
11392
  id
11396
11393
  designName
@@ -11416,7 +11413,7 @@ const Jn = y`
11416
11413
  }
11417
11414
  }
11418
11415
  `, ho = y`
11419
- ${Jn}
11416
+ ${Yn}
11420
11417
  mutation CreateDesign(
11421
11418
  $name: String!
11422
11419
  $layouts: [LayoutInput]!
@@ -11448,7 +11445,7 @@ const Jn = y`
11448
11445
  }
11449
11446
  }
11450
11447
  `, mo = y`
11451
- ${Jn}
11448
+ ${Yn}
11452
11449
  mutation CreateDesigns($inputs: [DesignCreateInput]!) {
11453
11450
  designCreateMany(inputs: $inputs) {
11454
11451
  id
@@ -11566,7 +11563,7 @@ const go = async (r) => {
11566
11563
  });
11567
11564
  }
11568
11565
  return n;
11569
- }, Kn = (r, t, e, a, n, i, s, o) => {
11566
+ }, Jn = (r, t, e, a, n, i, s, o) => {
11570
11567
  var m, g;
11571
11568
  const l = t.basePrice || 0, c = r.priceModifierTotal || 0, d = po(a, e, void 0, i), u = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(r.id), h = {
11572
11569
  additionalExternalProductId: (m = r.integrationProduct) == null ? void 0 : m.additionalExternalProductId,
@@ -11590,7 +11587,7 @@ const go = async (r) => {
11590
11587
  workflowViewerReadOnlyLink: r.workflowViewerReadOnlyLink || ""
11591
11588
  };
11592
11589
  return i && (h.metadata = i), a && (h.selectedVariants = a), n && (h.sku = n), h;
11593
- }, _n = async (r, t, e, a, n, i, s, o, l, c) => {
11590
+ }, Kn = async (r, t, e, a, n, i, s, o, l, c) => {
11594
11591
  var I;
11595
11592
  await (async () => {
11596
11593
  var j;
@@ -11598,7 +11595,7 @@ const go = async (r) => {
11598
11595
  return c;
11599
11596
  await r.outstandingRequestsPromise();
11600
11597
  const x = (k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(n.id), N = await b.getShadowGraphqlClient().query({
11601
- query: In,
11598
+ query: bn,
11602
11599
  variables: { ids: [n.id] },
11603
11600
  fetchPolicy: "no-cache",
11604
11601
  errorPolicy: "all",
@@ -11687,7 +11684,7 @@ const go = async (r) => {
11687
11684
  }, Co = async (r, t, e, a, n, i, s, o, l, c, d) => {
11688
11685
  var p, C;
11689
11686
  l("workflow.steps.finish.finalize.buildingLayouts");
11690
- const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await _n(
11687
+ const { designDetails: A, cartSelectionsWithPrices: u, cartMetadata: h } = await Kn(
11691
11688
  r,
11692
11689
  t,
11693
11690
  e,
@@ -11704,7 +11701,7 @@ const go = async (r) => {
11704
11701
  throw new Error("Failed to create design");
11705
11702
  l("workflow.steps.finish.finalize.updatingTransaction");
11706
11703
  const f = m.transaction;
11707
- return Kn(
11704
+ return Jn(
11708
11705
  f,
11709
11706
  n,
11710
11707
  t,
@@ -11723,7 +11720,7 @@ const go = async (r) => {
11723
11720
  const n = await (async () => {
11724
11721
  var c;
11725
11722
  const l = await b.getShadowGraphqlClient().query({
11726
- query: In,
11723
+ query: bn,
11727
11724
  variables: { ids: r.map((d) => d.transaction.id) },
11728
11725
  fetchPolicy: "no-cache",
11729
11726
  errorPolicy: "all"
@@ -11732,7 +11729,7 @@ const go = async (r) => {
11732
11729
  l.errors && console.log("Server Error:", d.message);
11733
11730
  }), null) : (c = l.data) != null && c.transactions ? l.data.transactions.map((d) => d.workflowState ?? null) : null;
11734
11731
  })(), i = await Promise.all(
11735
- r.map(async (o, l) => await _n(
11732
+ r.map(async (o, l) => await Kn(
11736
11733
  o.workflowManager,
11737
11734
  o.workflow,
11738
11735
  o.layouts,
@@ -11752,7 +11749,7 @@ const go = async (r) => {
11752
11749
  return t("workflow.steps.finish.finalize.updatingTransaction"), s.map((o, l) => {
11753
11750
  var u;
11754
11751
  const c = r[l], d = i[l], A = o.transaction;
11755
- return Kn(
11752
+ return Jn(
11756
11753
  A,
11757
11754
  c.product,
11758
11755
  c.workflow,
@@ -11884,7 +11881,7 @@ var Bo = /* @__PURE__ */ ((r) => (r.QuantityChanged = "QuantityChanged", r.Price
11884
11881
  class bo {
11885
11882
  constructor(t, e) {
11886
11883
  var n;
11887
- if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = on(async () => {
11884
+ if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = sn(async () => {
11888
11885
  await je.getSavedDesignByTransaction(
11889
11886
  this.getWorkflowManager().getTransaction().id
11890
11887
  ) && this.save();
@@ -12021,7 +12018,7 @@ class bo {
12021
12018
  purpose: Gt.Print,
12022
12019
  region: { left: A.x, top: A.y, width: A.width, height: A.height }
12023
12020
  }
12024
- }), g = An(m);
12021
+ }), g = dn(m);
12025
12022
  await (await ca.from(h, g, {
12026
12023
  anonymousCrossOrigin: !0,
12027
12024
  ignoreDimensions: !1,
@@ -12336,7 +12333,7 @@ const Io = [
12336
12333
  ], Do = async (r, t, e) => {
12337
12334
  const a = t.data, n = e.data.baseUrl, i = a.assetUrl.replace("localhost", "localstack"), s = n.slice(0, 4) === "http" ? "" : "https://", o = new URL(s + n);
12338
12335
  o.searchParams.append("video", ka(JSON.stringify([{ href: i }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
12339
- const l = o.toString(), d = `data:image/svg+xml;base64,${ka(await rn(l, { type: "svg" }))}`, A = (h) => {
12336
+ const l = o.toString(), d = `data:image/svg+xml;base64,${ka(await nn(l, { type: "svg" }))}`, A = (h) => {
12340
12337
  const m = r.find((f) => f.panelId === h.panelId);
12341
12338
  if (!m)
12342
12339
  throw new Y(h);
@@ -12367,7 +12364,7 @@ const Io = [
12367
12364
  o && (t[a.stepName] = { selectedVariants: [o] });
12368
12365
  const l = async (c) => {
12369
12366
  var g;
12370
- const d = await Rn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await xe(d), u = Q(), h = r.find((f) => f.panelId === c.panelId);
12367
+ const d = await Nn(c, (g = o == null ? void 0 : o.asset) == null ? void 0 : g.fileLink), A = await xe(d), u = Q(), h = r.find((f) => f.panelId === c.panelId);
12371
12368
  if (!h)
12372
12369
  throw new Y(c);
12373
12370
  const m = Sa(
@@ -12488,7 +12485,7 @@ const Io = [
12488
12485
  return console.error(E), [];
12489
12486
  }
12490
12487
  }, Fo = async (r, t, e) => {
12491
- const a = await qn(e.data.module), n = t.data, i = (o, l) => {
12488
+ const a = await Hn(e.data.module), n = t.data, i = (o, l) => {
12492
12489
  const c = r.find((A) => A.panelId === l.panelId);
12493
12490
  if (!c)
12494
12491
  throw new Y(l);
@@ -12865,7 +12862,7 @@ const Uo = () => new Promise((r, t) => {
12865
12862
  }), Lo = Uo();
12866
12863
  class $o {
12867
12864
  constructor(t, e, a, n) {
12868
- this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new xn(2), this.id = t, this.name = e, this.service = a, this.panelSize = n;
12865
+ this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new Pn(2), this.id = t, this.name = e, this.service = a, this.panelSize = n;
12869
12866
  }
12870
12867
  getID() {
12871
12868
  return this.id;
@@ -12931,7 +12928,7 @@ class $o {
12931
12928
  );
12932
12929
  }
12933
12930
  }
12934
- class Vo extends Pn {
12931
+ class Vo extends Dn {
12935
12932
  // TODO: Do we need to pass this whole array in?
12936
12933
  constructor(t, e, a, n, i) {
12937
12934
  super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = a, this.onRender = n, this.layouts = i;
@@ -12984,7 +12981,7 @@ class Vo extends Pn {
12984
12981
  l = i.width, c = i.height;
12985
12982
  const d = wa(t.layoutState.layout, e, {
12986
12983
  renderingConfiguration: { purpose: Gt.ThreeD }
12987
- }), A = An(d), u = await ca.from(this.ctx, A, {
12984
+ }), A = dn(d), u = await ca.from(this.ctx, A, {
12988
12985
  anonymousCrossOrigin: !0,
12989
12986
  ignoreDimensions: !this.nonPOTSupport,
12990
12987
  ignoreAnimation: !0,
@@ -13015,7 +13012,7 @@ const Ic = (r, t) => {
13015
13012
  serializableWorkflow: { steps: [] },
13016
13013
  layouts: {}
13017
13014
  };
13018
- n = new O(e.map((l) => new Ln(l))).apply(n);
13015
+ n = new O(e.map((l) => new Un(l))).apply(n);
13019
13016
  const s = await Ro(r, t, e, a);
13020
13017
  return new O(s).apply(n);
13021
13018
  };
@@ -13073,7 +13070,7 @@ class zo {
13073
13070
  );
13074
13071
  case et.Option: {
13075
13072
  const e = t.entityId ? await X.getOption(t.entityId) : void 0;
13076
- return (e == null ? void 0 : e.type) === "Color" ? new Ha(this.bundle, t, e) : new Xn(this.bundle, t, e);
13073
+ return (e == null ? void 0 : e.type) === "Color" ? new Ha(this.bundle, t, e) : new _n(this.bundle, t, e);
13077
13074
  }
13078
13075
  case et.Text:
13079
13076
  return new Wo(this.bundle, t);
@@ -13407,7 +13404,7 @@ class Wo extends Ba {
13407
13404
  await Promise.all(n);
13408
13405
  }
13409
13406
  }
13410
- class Xn extends Ba {
13407
+ class _n extends Ba {
13411
13408
  constructor(t, e, a) {
13412
13409
  super(t, e), this.optionResource = a;
13413
13410
  }
@@ -13482,7 +13479,7 @@ class Xn extends Ba {
13482
13479
  await Promise.all(n);
13483
13480
  }
13484
13481
  }
13485
- class Ha extends Xn {
13482
+ class Ha extends _n {
13486
13483
  constructor(t, e, a) {
13487
13484
  super(t, e, a);
13488
13485
  }
@@ -13836,14 +13833,14 @@ class qo {
13836
13833
  getProducts() {
13837
13834
  if (!this.collection.productCollectionProducts)
13838
13835
  throw new Error("Failed to find products on collection. Ensure you fetch them first!");
13839
- return this.collection.productCollectionProducts.map((t) => new se(t));
13836
+ return this.collection.productCollectionProducts.filter((t) => !!t.product).map((t) => new se(t));
13840
13837
  }
13841
13838
  /**
13842
13839
  * A list of products in this collections with useful helpers for interacting with them.
13843
13840
  */
13844
13841
  async fetchProducts(t) {
13845
13842
  if (this.fullFetched)
13846
- return this.collection.productCollectionProducts.map((a) => new se(a));
13843
+ return this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
13847
13844
  const e = await b.getShadowGraphqlClient().query({
13848
13845
  query: Ms,
13849
13846
  variables: {
@@ -13852,7 +13849,7 @@ class qo {
13852
13849
  },
13853
13850
  errorPolicy: "all"
13854
13851
  });
13855
- return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.map((a) => new se(a));
13852
+ return t || (this.fullFetched = !0), this.collection.productCollectionProducts = e.data.productCollections[0].productCollectionProducts || [], this.collection.productCollectionProducts.filter((a) => !!a.product).map((a) => new se(a));
13856
13853
  }
13857
13854
  /**
13858
13855
  * Returns a list of collections products matching the associated metafield filters.
@@ -13908,7 +13905,7 @@ class qo {
13908
13905
  errorPolicy: "all"
13909
13906
  });
13910
13907
  return {
13911
- items: ((l = (o = (s = n == null ? void 0 : n.data) == null ? void 0 : s.productCollections) == null ? void 0 : o[0].productCollectionProductsFeed) == null ? void 0 : l.items.map((u) => new se(u))) || [],
13908
+ items: ((l = (o = (s = n == null ? void 0 : n.data) == null ? void 0 : s.productCollections) == null ? void 0 : o[0].productCollectionProductsFeed) == null ? void 0 : l.items.filter((u) => !!u.product).map((u) => new se(u))) || [],
13912
13909
  total: ((A = (d = (c = n == null ? void 0 : n.data) == null ? void 0 : c.productCollections) == null ? void 0 : d[0].productCollectionProductsFeed) == null ? void 0 : A.total) ?? 0
13913
13910
  };
13914
13911
  }
@@ -14994,9 +14991,9 @@ class Pc extends ba {
14994
14991
  super(`"${t}"`);
14995
14992
  }
14996
14993
  }
14997
- class Zn extends ba {
14994
+ class Xn extends ba {
14998
14995
  constructor(t, e) {
14999
- if (e !== "Asset" && !Zn.validUUID(t))
14996
+ if (e !== "Asset" && !Xn.validUUID(t))
15000
14997
  throw new Error("Invalid ID, must be a valid v4 UUID. https://www.uuidgenerator.net/");
15001
14998
  super(`{"isSpiffObject": true, "id": "${t}", "type": "${e}"}`);
15002
14999
  }
@@ -15184,7 +15181,7 @@ const Ya = y`
15184
15181
  if (!a)
15185
15182
  throw new Error(`Workflow not found: ${r}`);
15186
15183
  return a;
15187
- }, tr = async (r, t) => {
15184
+ }, Zn = async (r, t) => {
15188
15185
  const e = r.map((o) => Ht.get({ id: o, options: t })), a = r.filter((o, l) => e[l] === void 0);
15189
15186
  if (a.length === 0)
15190
15187
  return Promise.all(e);
@@ -15192,7 +15189,7 @@ const Ya = y`
15192
15189
  (o) => Ht.set({ id: o, options: t }, Al(o, n))
15193
15190
  ), s = e.filter((o) => o !== void 0);
15194
15191
  return await Promise.all(s.concat(i));
15195
- }, Fc = async (r, t) => (await tr([r], t))[0], ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15192
+ }, Fc = async (r, t) => (await Zn([r], t))[0], ul = (r) => r.sort((t, e) => t.index - e.index).map((t) => ({
15196
15193
  id: Q(),
15197
15194
  panelId: t.name,
15198
15195
  name: t.name,
@@ -15725,7 +15722,7 @@ class kc {
15725
15722
  ), c = Da(o, 10), d = Da(l, 10), A = (await Promise.all([
15726
15723
  ...c.map(n),
15727
15724
  ...d.map(i)
15728
- ])).flat(), u = [...new Set(A.map((S) => S.workflowId))], h = await tr(u, e), m = new Map(h.map((S) => [S.id, S])), g = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = A.map(async (S) => {
15725
+ ])).flat(), u = [...new Set(A.map((S) => S.workflowId))], h = await Zn(u, e), m = new Map(h.map((S) => [S.id, S])), g = k.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), f = A.map(async (S) => {
15729
15726
  var j;
15730
15727
  const { transaction: B, workflowId: E, readOnly: I, index: P } = S, x = m.get(E), M = t[P];
15731
15728
  !g.get(B.id) && B.transactionOwnerId && g.set(B.id, B.transactionOwnerId);
@@ -15903,7 +15900,7 @@ function le(r, t, e) {
15903
15900
  }
15904
15901
  class fl {
15905
15902
  constructor(t, e) {
15906
- this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = on(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
15903
+ this.minZoomScale = [0.03], this.maxZoomScale = [20], this._debouncedUpdateFrameOffsets = sn(this.updateFrameOffsets, 200), this.targetElements = [], this.onFrameDataChangeListeners = [], this.onZoomChangeListeners = [], this.forceImageCover = t, this.initialZoom = e, this.thresholdSettings = {
15907
15904
  useThreshold: !1,
15908
15905
  invertThreshold: !1,
15909
15906
  threshold: 128,
@@ -15924,7 +15921,7 @@ class fl {
15924
15921
  let i = !1;
15925
15922
  for (let s = 0; s < n.currentFrameSources.length; s++) {
15926
15923
  const o = n.currentFrameSources[s], l = await xe(o), c = this.frameData ? this.frameData[s] : void 0;
15927
- sn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
15924
+ rn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
15928
15925
  }
15929
15926
  i && (this.onFrameDataChangeListeners.forEach(
15930
15927
  (s) => s(this.frameData)
@@ -16730,9 +16727,9 @@ K = { __e: function(r, t, e, a) {
16730
16727
  }
16731
16728
  throw r;
16732
16729
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
16733
- var st, qe, Ja, er = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
16730
+ var st, qe, Ja, tr = [], Ye = [], Ka = K.__b, _a = K.__r, Xa = K.diffed, Za = K.__c, tn = K.unmount;
16734
16731
  function xl() {
16735
- for (var r; r = er.shift(); )
16732
+ for (var r; r = tr.shift(); )
16736
16733
  if (r.__P && r.__H)
16737
16734
  try {
16738
16735
  r.__H.__h.forEach(ue), r.__H.__h.forEach(la), r.__H.__h = [];
@@ -16751,7 +16748,7 @@ K.__b = function(r) {
16751
16748
  }, K.diffed = function(r) {
16752
16749
  Xa && Xa(r);
16753
16750
  var t = r.__c;
16754
- t && t.__H && (t.__H.__h.length && (er.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Fl)(xl)), t.__H.__.forEach(function(e) {
16751
+ t && t.__H && (t.__H.__h.length && (tr.push(t) !== 1 && Ja === K.requestAnimationFrame || ((Ja = K.requestAnimationFrame) || Fl)(xl)), t.__H.__.forEach(function(e) {
16755
16752
  e.i && (e.__H = e.i), e.__V !== Ye && (e.__ = e.__V), e.i = void 0, e.__V = Ye;
16756
16753
  })), qe = st = null;
16757
16754
  }, K.__c = function(r, t) {
@@ -16809,7 +16806,7 @@ export {
16809
16806
  Pl as ConversionDataType,
16810
16807
  Dl as ConversionLocation,
16811
16808
  W as CreateElementCommand,
16812
- Ln as CreateLayoutCommand,
16809
+ Un as CreateLayoutCommand,
16813
16810
  vt as DeleteElementCommand,
16814
16811
  Ao as DigitalContentStepHandle,
16815
16812
  Go as FileUploadGlobalPropertyHandle,
@@ -16840,9 +16837,9 @@ export {
16840
16837
  ro as ModelStepHandle,
16841
16838
  uo as ModuleStepHandle,
16842
16839
  Cc as MoveCommand,
16843
- Zn as ObjectInput,
16840
+ Xn as ObjectInput,
16844
16841
  rl as ObjectInputType,
16845
- Xn as OptionGlobalPropertyHandle,
16842
+ _n as OptionGlobalPropertyHandle,
16846
16843
  ge as OptionNotFoundError,
16847
16844
  Dt as ParseError,
16848
16845
  io as PictureStepHandle,
@@ -16850,9 +16847,9 @@ export {
16850
16847
  qo as ProductCollection,
16851
16848
  zt as ProductWorkflow,
16852
16849
  Ht as PromiseCache,
16853
- xn as PromiseQueue,
16850
+ Pn as PromiseQueue,
16854
16851
  so as QuestionStepHandle,
16855
- Pn as QueueablePromise,
16852
+ Dn as QueueablePromise,
16856
16853
  yc as ResizeCommand,
16857
16854
  Wt as ResourceNotFoundError,
16858
16855
  wc as RotateCommand,
@@ -16886,7 +16883,7 @@ export {
16886
16883
  tc as dataUrlFromExternalUrl,
16887
16884
  je as designService,
16888
16885
  Ae as determineCorrectFontSizeAndLines,
16889
- Vn as digitalContentStepService,
16886
+ $n as digitalContentStepService,
16890
16887
  dt as domParser,
16891
16888
  Lc as duplicateBundle,
16892
16889
  $c as duplicateTransaction,
@@ -16924,26 +16921,26 @@ export {
16924
16921
  oc as getTrueCoordinates,
16925
16922
  Wc as getUnorderedTransactions,
16926
16923
  Fc as getWorkflow,
16927
- tr as getWorkflows,
16924
+ Zn as getWorkflows,
16928
16925
  b as graphQlManager,
16929
16926
  de as illustrationStepService,
16930
16927
  sc as isCloseToValue,
16931
16928
  Tt as loadFont,
16932
16929
  ac as matchHexToPms,
16933
- zn as materialStepService,
16930
+ Vn as materialStepService,
16934
16931
  mc as mmPerPixel,
16935
- Gn as modelStepService,
16932
+ zn as modelStepService,
16936
16933
  fa as modifySVGColors,
16937
- Wn as moduleStepService,
16934
+ Gn as moduleStepService,
16938
16935
  Oc as nameBundle,
16939
16936
  Uc as nameTransaction,
16940
16937
  X as optionService,
16941
16938
  fc as outlineFontsInSvg,
16942
16939
  At as patternImageDataCache,
16943
16940
  k as persistenceService,
16944
- jn as pictureStepService,
16941
+ Wn as pictureStepService,
16945
16942
  ec as pmsToRgb,
16946
- Hn as questionStepService,
16943
+ jn as questionStepService,
16947
16944
  Zl as registerFetchImplementation,
16948
16945
  Xl as registerWindowImplementation,
16949
16946
  La as rehydrateSerializedLayout,
@@ -16951,13 +16948,13 @@ export {
16951
16948
  re as rotateAroundPoint,
16952
16949
  ma as sanitizeSvgTree,
16953
16950
  kr as setBearerAuthenticationToken,
16954
- gn as setCanvasModule,
16951
+ mn as setCanvasModule,
16955
16952
  $t as shapeStepService,
16956
16953
  is as shortenUrl,
16957
16954
  wt as spiffCoreConfiguration,
16958
16955
  Ic as stepAspectValuesToDesignInputSteps,
16959
16956
  Qa as svgColorValueToDefinition,
16960
- On as svgStringDimensions,
16957
+ Rn as svgStringDimensions,
16961
16958
  Aa as svgToDataUrl,
16962
16959
  q as textStepService,
16963
16960
  gs as toast,