@spiffcommerce/core 31.2.3-beta.31c9ba15-a663-564f-ae8f-4ab38e25e1d4 → 31.2.3-beta.3eaa5ef7-903f-53ab-8b16-a79ca8ddc239

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
@@ -6,11 +6,11 @@ import { removeTypenameFromVariables as mr } from "@apollo/client/link/remove-ty
6
6
  import { orientation as gr } from "exifr/dist/mini.umd.cjs";
7
7
  import { parse as ln } from "css";
8
8
  import pr from "fuse.js";
9
- import { Pith as ua } from "pith";
9
+ import { Pith as Aa } from "pith";
10
10
  import St from "lodash.clonedeep";
11
11
  import { toString as cn } from "qrcode";
12
12
  import fr from "svg-path-bbox";
13
- import { parse as ea } from "opentype.js";
13
+ import { parse as ta } from "opentype.js";
14
14
  import { jsx as D, jsxs as ct, Fragment as Gt } from "preact/jsx-runtime";
15
15
  import Cr from "handlebars";
16
16
  import { dataUriToBuffer as wr } from "data-uri-to-buffer";
@@ -19,11 +19,11 @@ import { CognitoIdentityProviderClient as yr, InitiateAuthCommand as ka, Respond
19
19
  import vr from "dinero.js";
20
20
  import * as Ma from "currency-codes";
21
21
  import dn from "lodash.isequal";
22
- import { split as aa } from "unicode-default-word-boundary";
22
+ import { split as ea } from "unicode-default-word-boundary";
23
23
  import An from "lodash.debounce";
24
24
  import "fs";
25
25
  import "path";
26
- var ye = /* @__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))(ye || {}), L = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(L || {}), v = /* @__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))(v || {}), Er = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(Er || {}), Ht = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Ht || {}), x = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(x || {}), br = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(br || {}), Br = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Br || {}), Ir = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(Ir || {}), ha = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ha || {}), Pr = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Pr || {}), Se = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(Se || {}), Mt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(Mt || {}), j = /* @__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))(j || {}), Dr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Dr || {});
26
+ var ye = /* @__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))(ye || {}), L = /* @__PURE__ */ ((r) => (r.FileUpload = "FileUpload", r.Option = "Option", r.ColorOption = "ColorOption", r.Text = "Text", r))(L || {}), v = /* @__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))(v || {}), Er = /* @__PURE__ */ ((r) => (r.Color = "Color", r.Colors = "Colors", r.Selection = "Selection", r.Selections = "Selections", r.Text = "Text", r.Upload = "Upload", r))(Er || {}), Ht = /* @__PURE__ */ ((r) => (r.ThreeD = "ThreeD", r.FreeDesign = "FreeDesign", r.Print = "Print", r))(Ht || {}), x = /* @__PURE__ */ ((r) => (r.Frame = "frame", r.Group = "group", r.Image = "image", r.Pattern = "pattern", r.Illustration = "illustration", r.Textbox = "textbox", r))(x || {}), br = /* @__PURE__ */ ((r) => (r.Default = "Default", r.FirstTransaction = "FirstTransaction", r.OneToOne = "OneToOne", r))(br || {}), Br = /* @__PURE__ */ ((r) => (r.Hyperlink = "Hyperlink", r.Edit = "Edit", r.Approve = "Approve", r))(Br || {}), Ir = /* @__PURE__ */ ((r) => (r.Hub = "Hub", r.Shopify = "Shopify", r))(Ir || {}), ua = /* @__PURE__ */ ((r) => (r.BackgroundRemover = "BackgroundRemover", r.ConversionAccelerator = "Conversion Accelerator", r.ProcessBuilder = "ProcessBuilder", r))(ua || {}), Pr = /* @__PURE__ */ ((r) => (r[r.Orbit = 0] = "Orbit", r[r.Pan = 1] = "Pan", r))(Pr || {}), Se = /* @__PURE__ */ ((r) => (r.Owner = "Owner", r.Approver = "Approver", r.Editor = "Editor", r.Viewer = "Viewer", r))(Se || {}), Mt = /* @__PURE__ */ ((r) => (r.Autosize = "Autosize", r.Traditional = "Traditional", r))(Mt || {}), j = /* @__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))(j || {}), Dr = /* @__PURE__ */ ((r) => (r.Pixel = "px", r.Millimeter = "mm", r.Centimeter = "cm", r))(Dr || {});
27
27
  class un extends Error {
28
28
  constructor(t) {
29
29
  super(t), this.name = this.constructor.name;
@@ -59,27 +59,27 @@ class Ee extends Xt {
59
59
  super(`Workflow Misconfiguration: ${t.stepName} - ${e}`), this.step = t;
60
60
  }
61
61
  }
62
- class ke extends un {
62
+ class xe extends un {
63
63
  constructor(t) {
64
64
  super(`ImplementationError - ${t}`);
65
65
  }
66
66
  }
67
- class V extends ke {
67
+ class V extends xe {
68
68
  constructor(t) {
69
69
  super(`Unhandled Behavior Encountered: ${t}`);
70
70
  }
71
71
  }
72
- class Dt extends ke {
72
+ class Dt extends xe {
73
73
  constructor(t) {
74
74
  super(`Parsing Error: ${t}`);
75
75
  }
76
76
  }
77
- class ht extends ke {
77
+ class ht extends xe {
78
78
  constructor(t) {
79
79
  super(`Client Error: ${t}`);
80
80
  }
81
81
  }
82
- class Me extends ke {
82
+ class ke extends xe {
83
83
  constructor(t) {
84
84
  super(`Resource Generation Failed: ${t}`);
85
85
  }
@@ -161,27 +161,27 @@ class kr {
161
161
  }
162
162
  }
163
163
  const gt = new kr();
164
- let na, ra;
164
+ let aa, na;
165
165
  function Tc(r) {
166
- na = r;
166
+ aa = r;
167
167
  }
168
168
  function Nc(r) {
169
- ra = r;
169
+ na = r;
170
170
  }
171
171
  function Zt() {
172
- return na ? new na().window : (console.log(
172
+ return aa ? new aa().window : (console.log(
173
173
  "DOM constructor is not registered. Assuming browser environment. If not, please register DOM constructor before calling this function."
174
174
  ), window);
175
175
  }
176
176
  function rt(r, t) {
177
- if (!ra) {
177
+ if (!na) {
178
178
  if (typeof window < "u" && window.fetch)
179
179
  return window.fetch(r, t);
180
180
  if (typeof global < "u" && global.fetch)
181
181
  return global.fetch(r, t);
182
182
  throw new Error("Fetch implementation is not registered. Please register it before calling this function.");
183
183
  }
184
- return ra(r, t);
184
+ return na(r, t);
185
185
  }
186
186
  const hn = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @__PURE__ */ new Map(), mn = async (r) => {
187
187
  const t = Na.get(r);
@@ -206,7 +206,7 @@ const hn = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
206
206
  return new DOMParser();
207
207
  const r = Zt();
208
208
  return new r.DOMParser();
209
- }, Nr = () => Tt([typeof DOMParser]) ? DOMParser : Zt().DOMParser, Te = (r, t) => new Promise((e, a) => {
209
+ }, Nr = () => Tt([typeof DOMParser]) ? DOMParser : Zt().DOMParser, Me = (r, t) => new Promise((e, a) => {
210
210
  t ? mn(r).then(e).catch(a) : rt(r).then((n) => {
211
211
  n.arrayBuffer().then(e).catch(a);
212
212
  }).catch((n) => {
@@ -216,21 +216,21 @@ const hn = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
216
216
  t ? Mr(r).then(e).catch(a) : rt(r).then((n) => {
217
217
  n.text().then(e).catch(a);
218
218
  }).catch(a);
219
- }), gn = (r) => hr(r), Le = /* @__PURE__ */ new Map(), Qr = async (r, t) => {
219
+ }), gn = (r) => hr(r), Ue = /* @__PURE__ */ new Map(), Qr = async (r, t) => {
220
220
  if (Tt([typeof FontFace])) {
221
- if (Le.has(t))
222
- return Le.get(t);
221
+ if (Ue.has(t))
222
+ return Ue.get(t);
223
223
  const e = r.names.fullName.en, a = new FontFace(e, `url(${t})`);
224
224
  document.fonts.add(a);
225
225
  const n = a.load();
226
- return Le.set(t, n), n;
226
+ return Ue.set(t, n), n;
227
227
  }
228
228
  }, Bt = () => {
229
229
  if (Tt([typeof XMLSerializer]))
230
230
  return new XMLSerializer();
231
231
  const r = Zt();
232
232
  return new r.XMLSerializer();
233
- }, Ra = (r) => btoa(r), Ne = (r) => {
233
+ }, Ra = (r) => btoa(r), Te = (r) => {
234
234
  function t() {
235
235
  const a = new Uint8Array(r), n = 4;
236
236
  if (a.length >= n) {
@@ -257,7 +257,7 @@ const hn = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
257
257
  const e = t();
258
258
  return e || "image/svg+xml";
259
259
  }, Qc = async (r) => {
260
- const t = await mn(r), e = hn.get(r) || Ne(t);
260
+ const t = await mn(r), e = hn.get(r) || Te(t);
261
261
  return await $r(new Blob([t], { type: e }));
262
262
  }, Rr = (r) => {
263
263
  let t = "";
@@ -266,9 +266,9 @@ const hn = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
266
266
  t += String.fromCharCode(r[a]);
267
267
  return t;
268
268
  }, Or = async (r) => {
269
- const t = Ne(r), e = new Uint8Array(r), a = Rr(e), n = btoa(a);
269
+ const t = Te(r), e = new Uint8Array(r), a = Rr(e), n = btoa(a);
270
270
  return `data:${t};base64,${n}`;
271
- }, ma = (r) => `data:image/svg+xml;base64,${btoa(r)}`, pn = (r) => {
271
+ }, ha = (r) => `data:image/svg+xml;base64,${btoa(r)}`, pn = (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,10 +287,10 @@ const hn = /* @__PURE__ */ new Map(), Na = /* @__PURE__ */ new Map(), Qa = /* @_
287
287
  !i || !i.result ? e() : t(i.result.toString());
288
288
  }, a.readAsDataURL(r);
289
289
  });
290
- let Ur, ga;
290
+ let Ur, ma;
291
291
  const Lr = (r) => {
292
- ga = r;
293
- }, Vr = () => ga;
292
+ ma = r;
293
+ }, Vr = () => ma;
294
294
  let fn;
295
295
  const zr = (r) => {
296
296
  fn = r;
@@ -301,7 +301,7 @@ const zr = (r) => {
301
301
  window.parent !== window && (window.addEventListener("message", e, !1), window.parent.postMessage("ready", t));
302
302
  }), Wr = async () => {
303
303
  const r = {
304
- applicationKey: ga,
304
+ applicationKey: ma,
305
305
  customerToken: Ur,
306
306
  bearer: fn
307
307
  };
@@ -364,10 +364,10 @@ class jr {
364
364
  }
365
365
  }
366
366
  const y = new jr();
367
- let ia, sa;
367
+ let ra, ia;
368
368
  const pt = (r, t, e) => {
369
- if (ia !== void 0)
370
- return ia(r, t, e);
369
+ if (ra !== void 0)
370
+ return ra(r, t, e);
371
371
  try {
372
372
  const a = wn(!0);
373
373
  return Cn(a), a.createCanvas(r, t, e);
@@ -375,8 +375,8 @@ const pt = (r, t, e) => {
375
375
  throw new Error("Canvas module not set");
376
376
  }
377
377
  }, te = (r, t) => {
378
- if (sa !== void 0)
379
- return sa(r, t);
378
+ if (ia !== void 0)
379
+ return ia(r, t);
380
380
  try {
381
381
  const e = wn(!0);
382
382
  return Cn(e), e.loadImage(r, t);
@@ -385,7 +385,7 @@ const pt = (r, t, e) => {
385
385
  }
386
386
  };
387
387
  function Cn(r) {
388
- ia = r?.createCanvas, sa = r?.loadImage;
388
+ ra = r?.createCanvas, ia = r?.loadImage;
389
389
  }
390
390
  function wn(r) {
391
391
  try {
@@ -406,13 +406,13 @@ function wn(r) {
406
406
  throw t;
407
407
  }
408
408
  }
409
- let Ve;
410
- function pa() {
411
- return Ve === void 0 && (Ve = Nr()), Ve;
409
+ let Le;
410
+ function ga() {
411
+ return Le === void 0 && (Le = Nr()), Le;
412
412
  }
413
413
  let oe = null;
414
414
  const Hr = (r) => new Promise((t) => {
415
- if (Ne(r) !== "image/jpeg")
415
+ if (Te(r) !== "image/jpeg")
416
416
  return t(1);
417
417
  gr(r).then((a) => t(a || 1)).catch(() => t(1));
418
418
  }), Yr = async () => {
@@ -454,9 +454,9 @@ const Hr = (r) => new Promise((t) => {
454
454
  break;
455
455
  }
456
456
  return d.drawImage(e, 0, 0, o, l), c;
457
- }, Qe = async (r) => {
457
+ }, Ne = async (r) => {
458
458
  const t = await Kr(r);
459
- return Ne(r) === "image/jpeg" ? {
459
+ return Te(r) === "image/jpeg" ? {
460
460
  dataUrl: t.toDataURL("image/jpeg", 1),
461
461
  height: t.height,
462
462
  width: t.width
@@ -3149,7 +3149,7 @@ const Hr = (r) => new Promise((t) => {
3149
3149
  "3E2B2E",
3150
3150
  "101820",
3151
3151
  "3D3935"
3152
- ], ze = xt.map((r) => [
3152
+ ], Ve = xt.map((r) => [
3153
3153
  parseInt(r.substring(0, 2), 16),
3154
3154
  parseInt(r.substring(2, 4), 16),
3155
3155
  parseInt(r.substring(4, 6), 16)
@@ -3172,7 +3172,7 @@ function Oc(r, t = 64) {
3172
3172
  const i = parseInt(r.substring(0, 2), 16), s = parseInt(r.substring(2, 4), 16), o = parseInt(r.substring(4, 6), 16);
3173
3173
  let l, c, d;
3174
3174
  for (let A = 0; A < xt.length; A++) {
3175
- l = ze[A][0], c = ze[A][1], d = ze[A][2];
3175
+ l = Ve[A][0], c = Ve[A][1], d = Ve[A][2];
3176
3176
  const u = Math.sqrt(Math.pow(i - l, 2) + Math.pow(s - c, 2) + Math.pow(o - d, 2));
3177
3177
  a.push(u);
3178
3178
  }
@@ -3245,7 +3245,7 @@ const le = (r) => {
3245
3245
  } catch {
3246
3246
  return r.classList.contains(t.substring(1));
3247
3247
  }
3248
- }, fa = (r, t = !1) => {
3248
+ }, pa = (r, t = !1) => {
3249
3249
  !t && r.setAttribute("preserveAspectRatio", "none");
3250
3250
  const e = [];
3251
3251
  kt(r, (a) => {
@@ -3328,12 +3328,12 @@ const le = (r) => {
3328
3328
  }
3329
3329
  });
3330
3330
  });
3331
- }, En = (r) => Bt().serializeToString(r), Ca = (r, t, e, a, n) => {
3331
+ }, En = (r) => Bt().serializeToString(r), fa = (r, t, e, a, n) => {
3332
3332
  const i = Sn(r);
3333
3333
  if (!i)
3334
3334
  throw new Error("Failed to read SVG.");
3335
3335
  return ii(i, t, e), vn(i, a, n), En(i);
3336
- }, wa = (r, t, e) => {
3336
+ }, Ca = (r, t, e) => {
3337
3337
  const a = Sn(r);
3338
3338
  if (!a)
3339
3339
  throw new Error("Failed to read SVG.");
@@ -3345,7 +3345,7 @@ const le = (r) => {
3345
3345
  const e = si(r).firstElementChild;
3346
3346
  if (!e)
3347
3347
  throw new Error("Failed to read SVG.");
3348
- fa(e);
3348
+ pa(e);
3349
3349
  const a = {};
3350
3350
  kt(e, (s) => {
3351
3351
  ei.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
@@ -3422,7 +3422,7 @@ const le = (r) => {
3422
3422
  ...AssetFields
3423
3423
  }
3424
3424
  }
3425
- `, ya = w`
3425
+ `, wa = w`
3426
3426
  fragment MaterialFields on Material {
3427
3427
  id
3428
3428
  name
@@ -3470,7 +3470,7 @@ const le = (r) => {
3470
3470
  }
3471
3471
  }
3472
3472
  `, ci = w`
3473
- ${ya}
3473
+ ${wa}
3474
3474
  query GetMaterials($ids: [String]) {
3475
3475
  materials(id: $ids) {
3476
3476
  ...MaterialFields
@@ -3525,7 +3525,7 @@ const le = (r) => {
3525
3525
  class mi {
3526
3526
  constructor() {
3527
3527
  this.cache = /* @__PURE__ */ new Map(), this.bgrmProcessCache = /* @__PURE__ */ new Map(), this.materialCache = /* @__PURE__ */ new Map(), this.loadImageAsFileInfo = async (t) => {
3528
- const e = await t.arrayBuffer(), a = await Qe(e), n = (i, s) => {
3528
+ const e = await t.arrayBuffer(), a = await Ne(e), n = (i, s) => {
3529
3529
  const o = atob(i.split(",")[1]), l = [];
3530
3530
  for (let c = 0; c < o.length; c++)
3531
3531
  l.push(o.charCodeAt(c));
@@ -3850,7 +3850,7 @@ const Kt = new gi(), bn = w`
3850
3850
  }
3851
3851
  `, pi = w`
3852
3852
  ${ee(!1)}
3853
- ${ya}
3853
+ ${wa}
3854
3854
  ${bn}
3855
3855
  query GetOptions($ids: [String]!) {
3856
3856
  options(ids: $ids) {
@@ -3939,7 +3939,7 @@ const H = new yi(), Bn = w`
3939
3939
  currencyCode
3940
3940
  }
3941
3941
  }
3942
- `, Re = w`
3942
+ `, Qe = w`
3943
3943
  fragment AdditionalIntegrationProductFields on IntegrationProduct {
3944
3944
  id
3945
3945
  product {
@@ -3958,7 +3958,7 @@ const H = new yi(), Bn = w`
3958
3958
  }
3959
3959
  }
3960
3960
  `, Si = w`
3961
- ${Re}
3961
+ ${Qe}
3962
3962
  mutation CreateTransactions(
3963
3963
  $inputs: [TransactionCreateInput]!
3964
3964
  $marketplaceThemeInstallId: String
@@ -4066,7 +4066,7 @@ const H = new yi(), Bn = w`
4066
4066
  url
4067
4067
  }
4068
4068
  `, vi = w`
4069
- ${Re}
4069
+ ${Qe}
4070
4070
  ${In}
4071
4071
  ${Pn}
4072
4072
  ${Bn}
@@ -4350,7 +4350,7 @@ const H = new yi(), Bn = w`
4350
4350
  }
4351
4351
  }
4352
4352
  `, Fn = (r) => w`
4353
- ${Re}
4353
+ ${Qe}
4354
4354
  fragment IntegrationProductFields on IntegrationProduct {
4355
4355
  id
4356
4356
  externalProductId
@@ -4587,7 +4587,7 @@ const H = new yi(), Bn = w`
4587
4587
  }
4588
4588
  `, Ri = (r) => w`
4589
4589
  ${ee(r)}
4590
- ${ya}
4590
+ ${wa}
4591
4591
  ${bn}
4592
4592
  ${Mi}
4593
4593
  ${Ti}
@@ -5027,7 +5027,7 @@ const H = new yi(), Bn = w`
5027
5027
  }
5028
5028
  }
5029
5029
  }
5030
- `, Oe = w`
5030
+ `, Re = w`
5031
5031
  fragment MarketplaceThemeInstallConfigurationFields on MarketplaceThemeInstallConfiguration {
5032
5032
  id
5033
5033
  themeInstallId
@@ -5106,7 +5106,7 @@ const H = new yi(), Bn = w`
5106
5106
  }
5107
5107
  }
5108
5108
  `, Ui = w`
5109
- ${Oe}
5109
+ ${Re}
5110
5110
  query GetMarketplaceThemeInstallConfiguration($themeConfigurationId: String!, $themeInstallId: String!) {
5111
5111
  marketplaceThemeInstallConfiguration(id: $themeConfigurationId, themeInstallId: $themeInstallId, raw: false) {
5112
5112
  ...MarketplaceThemeInstallConfigurationFields
@@ -5114,7 +5114,7 @@ const H = new yi(), Bn = w`
5114
5114
  }
5115
5115
  `, Li = w`
5116
5116
  ${Bn}
5117
- ${Oe}
5117
+ ${Re}
5118
5118
  query GetCurrentIntegration($themeConfigurationId: String) {
5119
5119
  currentIntegration {
5120
5120
  id
@@ -5126,7 +5126,7 @@ const H = new yi(), Bn = w`
5126
5126
  }
5127
5127
  }
5128
5128
  `, Vi = w`
5129
- ${Oe}
5129
+ ${Re}
5130
5130
  query ReadTransactionForMarketplaceTheme($id: String!) {
5131
5131
  transactions(ids: [$id]) {
5132
5132
  marketplaceThemeInstallConfiguration(raw: false) {
@@ -5135,7 +5135,7 @@ const H = new yi(), Bn = w`
5135
5135
  }
5136
5136
  }
5137
5137
  `, zi = w`
5138
- ${Oe}
5138
+ ${Re}
5139
5139
  query ReadBundleForMarketplaceTheme($id: String!) {
5140
5140
  bundles(ids: [$id]) {
5141
5141
  marketplaceThemeInstallConfiguration(raw: false) {
@@ -5560,8 +5560,8 @@ const M = () => {
5560
5560
  if (!r.pattern)
5561
5561
  return "";
5562
5562
  if (r.pattern.svg) {
5563
- const A = wa(r.pattern.svg, r.pattern.colors || {}, !1);
5564
- return ma(A);
5563
+ const A = Ca(r.pattern.svg, r.pattern.colors || {}, !1);
5564
+ return ha(A);
5565
5565
  }
5566
5566
  return r.pattern.src;
5567
5567
  };
@@ -5696,32 +5696,32 @@ class _i {
5696
5696
  }), a - n;
5697
5697
  }
5698
5698
  }
5699
- const Xi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ge = /* @__PURE__ */ new Map(), Nt = async (r) => {
5700
- if (Ge.has(r))
5701
- return Ge.get(r);
5699
+ const Xi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", ze = /* @__PURE__ */ new Map(), Nt = async (r) => {
5700
+ if (ze.has(r))
5701
+ return ze.get(r);
5702
5702
  const e = (async () => {
5703
5703
  try {
5704
5704
  return Et(r).getFont();
5705
5705
  } catch {
5706
5706
  if (Xi(r)) {
5707
- const a = pn(r), n = ea(a);
5708
- return oa(r, n), n;
5707
+ const a = pn(r), n = ta(a);
5708
+ return sa(r, n), n;
5709
5709
  } else {
5710
- const a = await Te(r, !0), n = ea(a);
5711
- return oa(r, n), await Qr(n, r), n;
5710
+ const a = await Me(r, !0), n = ta(a);
5711
+ return sa(r, n), await Qr(n, r), n;
5712
5712
  }
5713
5713
  }
5714
5714
  })();
5715
- return Ge.set(r, e), e;
5715
+ return ze.set(r, e), e;
5716
5716
  }, Zi = (r) => {
5717
- const t = pn(r), e = ea(t);
5718
- return oa(r, e), e;
5717
+ const t = pn(r), e = ta(t);
5718
+ return sa(r, e), e;
5719
5719
  }, Et = (r) => {
5720
5720
  const t = Nn.get(r);
5721
5721
  if (t)
5722
5722
  return t;
5723
5723
  throw new Error("Font metrics unavailable for font");
5724
- }, oa = (r, t) => {
5724
+ }, sa = (r, t) => {
5725
5725
  const e = new _i(t);
5726
5726
  return Nn.set(r, e), e;
5727
5727
  }, _c = async (r) => {
@@ -5761,7 +5761,7 @@ const Xi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ge = /* @_
5761
5761
  }, Be = (r, t, e, a) => Math.max(ns(r.join(`
5762
5762
  `), e, a), t), La = (r, t, e, a, n, i) => {
5763
5763
  console.log("LOG: getLines");
5764
- const s = (i || Pe) * n.getApproximateHeight(), o = t.split(`
5764
+ const s = (i || ya) * n.getApproximateHeight(), o = t.split(`
5765
5765
  `);
5766
5766
  try {
5767
5767
  const l = o.flatMap((d) => ge(d, r.width, a, n)), c = l.flatMap((d) => d.lines);
@@ -5814,7 +5814,7 @@ const Xi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ge = /* @_
5814
5814
  return { lines: o, width: l };
5815
5815
  }, ts = (r, t, e, a, n, i) => {
5816
5816
  console.log("LOG: calcFontSize");
5817
- const s = (i ?? Pe) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = Qn(r, o, t), c = r.length * s * o, d = a / l, A = n / c;
5817
+ const s = (i ?? ya) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, l = Qn(r, o, t), c = r.length * s * o, d = a / l, A = n / c;
5818
5818
  return Math.min(A, d);
5819
5819
  }, es = (r, t, e, a) => {
5820
5820
  console.log("LOG: refit");
@@ -5844,7 +5844,7 @@ const Xi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ge = /* @_
5844
5844
  let o = { ...r };
5845
5845
  const l = { ...r }, c = Qn(a, e / s.unitsPerEm, Et(t.assetUrl));
5846
5846
  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 && rs(a, a).every(([d, A]) => d === A) && (o = l)), o;
5847
- }, We = 1, mt = (r, t, e) => {
5847
+ }, Ge = 1, mt = (r, t, e) => {
5848
5848
  let a = 0;
5849
5849
  const n = e.getGlyphs(r);
5850
5850
  return n.forEach((i, s) => {
@@ -5894,7 +5894,7 @@ const Xi = (r) => r.substring(0, 5).toLowerCase().trim() === "data:", Ge = /* @_
5894
5894
  text: t
5895
5895
  };
5896
5896
  })()
5897
- } : r, Pe = 1.1;
5897
+ } : r, ya = 1.1;
5898
5898
  function Ft(r, t) {
5899
5899
  return On(r, t.getTemplatingContext());
5900
5900
  }
@@ -5986,9 +5986,10 @@ const ss = (r) => {
5986
5986
  ) }) })
5987
5987
  ] });
5988
5988
  }, os = (r) => {
5989
- console.log(`LOG: text span. prop height: ${r.lineHeight}, fallback: ${Pe}`);
5990
- const t = () => r.lineHeight !== void 0 ? r.lineHeight : Pe, e = () => r.align === "left" ? -r.textboxWidth / 2 : r.align === "right" ? r.textboxWidth / 2 : 0, a = () => {
5991
- const n = r.fontSize * t(), i = r.textboxHeight / 2;
5989
+ const t = () => r.lineHeight !== void 0 ? r.lineHeight : ya, e = () => r.align === "left" ? -r.textboxWidth / 2 : r.align === "right" ? r.textboxWidth / 2 : 0, a = () => {
5990
+ const n = r.fontSize * t();
5991
+ console.log(`LOG: text span. line height: ${n}`);
5992
+ const i = r.textboxHeight / 2;
5992
5993
  if (r.verticalAlign === "top")
5993
5994
  return -i + r.fontSize * 3 / 4 + r.thisLineIdx * n;
5994
5995
  if (r.verticalAlign === "bottom") {
@@ -6043,7 +6044,7 @@ const ss = (r) => {
6043
6044
  {
6044
6045
  transform: i,
6045
6046
  dangerouslySetInnerHTML: {
6046
- __html: Ca(
6047
+ __html: fa(
6047
6048
  r.svg,
6048
6049
  r.width,
6049
6050
  r.height,
@@ -6192,13 +6193,13 @@ const ne = (r) => {
6192
6193
  if (r.defaultVariant !== void 0)
6193
6194
  return t.find((e) => e.id === r.defaultVariant);
6194
6195
  }
6195
- }, ut = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), qe = /* @__PURE__ */ new Map(), Un = async (r, t) => {
6196
+ }, ut = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new Map(), We = /* @__PURE__ */ new Map(), Un = async (r, t) => {
6196
6197
  if (!t) {
6197
6198
  if (!r) throw new Error("No region or src supplied. Cannot construct frame!");
6198
- return la(r);
6199
+ return oa(r);
6199
6200
  }
6200
6201
  return nt(t);
6201
- }, la = (r) => {
6202
+ }, oa = (r) => {
6202
6203
  const t = r.width, e = r.height;
6203
6204
  return `<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 ${t} ${e}'>
6204
6205
  <path id="target-path" d='M0 0 h ${t} v ${e} h ${-t} Z' />
@@ -6213,9 +6214,9 @@ const ne = (r) => {
6213
6214
  if (!e.asset)
6214
6215
  throw new Error(`No asset for variant with ID: ${r.frameVariantId}`);
6215
6216
  return e;
6216
- }, $e = async (r) => {
6217
- if (qe.has(r))
6218
- return qe.get(r);
6217
+ }, Oe = async (r) => {
6218
+ if (We.has(r))
6219
+ return We.get(r);
6219
6220
  const e = (async () => {
6220
6221
  if (Vt.has(r))
6221
6222
  return Vt.get(r);
@@ -6251,7 +6252,7 @@ const ne = (r) => {
6251
6252
  }
6252
6253
  throw new Error("Malformed frame SVG");
6253
6254
  })();
6254
- return qe.set(r, e), e;
6255
+ return We.set(r, e), e;
6255
6256
  }, Ea = (r, t, e, a) => {
6256
6257
  const n = t.width / t.height, i = r.width / r.height;
6257
6258
  let s;
@@ -6262,7 +6263,7 @@ const ne = (r) => {
6262
6263
  y: u,
6263
6264
  zoom: s
6264
6265
  };
6265
- }, ca = async (r) => {
6266
+ }, la = async (r) => {
6266
6267
  if (ut.has(r))
6267
6268
  return ut.get(r);
6268
6269
  if (r.startsWith("data:image/svg+xml")) {
@@ -6283,7 +6284,7 @@ const ne = (r) => {
6283
6284
  };
6284
6285
  return ut.set(r, i), i;
6285
6286
  } else {
6286
- const e = await Te(r, !0), a = await Qe(e), n = {
6287
+ const e = await Me(r, !0), a = await Ne(e), n = {
6287
6288
  src: r,
6288
6289
  width: a.width,
6289
6290
  height: a.height,
@@ -6312,9 +6313,9 @@ const ne = (r) => {
6312
6313
  nt(r).then((e) => {
6313
6314
  t(e);
6314
6315
  }).catch((e) => console.error(e));
6315
- }), je = /* @__PURE__ */ new Map(), _t = async (r) => {
6316
- if (je.has(r))
6317
- return je.get(r);
6316
+ }), qe = /* @__PURE__ */ new Map(), _t = async (r) => {
6317
+ if (qe.has(r))
6318
+ return qe.get(r);
6318
6319
  const t = async (n) => new Promise((i, s) => {
6319
6320
  try {
6320
6321
  if (!(!!URL && !!URL.createObjectURL)) throw new Error("Environment incapable of generating ObjectURL");
@@ -6330,12 +6331,12 @@ const ne = (r) => {
6330
6331
  const s = dt().parseFromString(r, "image/svg+xml").firstElementChild;
6331
6332
  if (!s)
6332
6333
  throw new Error("Failed to read SVG");
6333
- const l = Bt().serializeToString(s), c = pt(), d = c.getContext("2d"), A = await ua.from(d, l, {
6334
+ const l = Bt().serializeToString(s), c = pt(), d = c.getContext("2d"), A = await Aa.from(d, l, {
6334
6335
  anonymousCrossOrigin: !0,
6335
6336
  ignoreDimensions: !1,
6336
6337
  createCanvas: pt,
6337
6338
  createImage: te,
6338
- DOMParser: pa(),
6339
+ DOMParser: ga(),
6339
6340
  fetch: rt
6340
6341
  }), u = s.getAttribute("width"), h = s.getAttribute("height"), m = 2048;
6341
6342
  if (h && u) {
@@ -6345,7 +6346,7 @@ const ne = (r) => {
6345
6346
  A.resize(m, m);
6346
6347
  return await A.render(), await t(c);
6347
6348
  })();
6348
- return je.set(r, a), a;
6349
+ return qe.set(r, a), a;
6349
6350
  }, Ut = async (r, t, e, a) => {
6350
6351
  const n = r.layoutState.layout.useEditableArea && r.layoutState.layout.editableArea || {
6351
6352
  width: r.layoutState.layout.width,
@@ -6367,7 +6368,7 @@ const ne = (r) => {
6367
6368
  o.height = o.width / C, o.top += (h - o.height) / 2;
6368
6369
  }
6369
6370
  if (e && t === x.Image) {
6370
- const l = o.height, c = await Te(e), d = await Qe(c), A = d.width / d.height;
6371
+ const l = o.height, c = await Me(e), d = await Ne(c), A = d.width / d.height;
6371
6372
  o.height = o.width / A, o.top += (l - o.height) / 2;
6372
6373
  }
6373
6374
  if (e && t === x.Textbox && a?.text && a?.fontScale) {
@@ -6379,7 +6380,7 @@ const ne = (r) => {
6379
6380
  };
6380
6381
  class Xc {
6381
6382
  static async getFrame(t, e) {
6382
- const a = await Un(e.region, e.src), n = await $e(a), i = e.region || await Ut(t, x.Frame);
6383
+ const a = await Un(e.region, e.src), n = await Oe(a), i = e.region || await Ut(t, x.Frame);
6383
6384
  return {
6384
6385
  id: M(),
6385
6386
  x: i.left,
@@ -6559,7 +6560,7 @@ const $ = (r, t) => _(r, t).elements.find((n) => n.id === r), _ = (r, t) => {
6559
6560
  const o = s;
6560
6561
  if (o.src && !o.svg) {
6561
6562
  const l = await nt(o.src), c = await ot(l);
6562
- o.svg = Ca(
6563
+ o.svg = fa(
6563
6564
  c.svg,
6564
6565
  o.width,
6565
6566
  o.height,
@@ -6827,7 +6828,7 @@ class us extends N {
6827
6828
  };
6828
6829
  }
6829
6830
  }
6830
- class He extends N {
6831
+ class je extends N {
6831
6832
  constructor(t, e) {
6832
6833
  super(), this.id = t, this.imageFill = e;
6833
6834
  }
@@ -7017,7 +7018,7 @@ class fs extends N {
7017
7018
  };
7018
7019
  }
7019
7020
  }
7020
- class Ye extends N {
7021
+ class He extends N {
7021
7022
  constructor(t, e, a) {
7022
7023
  super(), this.id = t, this.strokeColor = e, this.strokeThickness = a;
7023
7024
  }
@@ -7040,7 +7041,7 @@ class Ye extends N {
7040
7041
  };
7041
7042
  }
7042
7043
  }
7043
- class da extends N {
7044
+ class ca extends N {
7044
7045
  constructor(t, e, a) {
7045
7046
  super(), this.id = t, this.className = e, this.fill = a;
7046
7047
  }
@@ -7318,7 +7319,7 @@ const ws = async (r) => {
7318
7319
  }
7319
7320
  })).json()).shortUrl;
7320
7321
  } catch (e) {
7321
- throw console.error(e), new Me("Failed to shorten URL, see console.");
7322
+ throw console.error(e), new ke("Failed to shorten URL, see console.");
7322
7323
  }
7323
7324
  };
7324
7325
  class Gn {
@@ -7389,7 +7390,7 @@ class ys {
7389
7390
  l.searchParams.append("video", btoa(JSON.stringify([s]))), l.pathname = l.pathname + (l.pathname.slice(-1) === "/" ? "" : "/");
7390
7391
  const c = l.toString();
7391
7392
  if (c.length >= 2e3)
7392
- throw new Me("Cannot create QR code, URL too long.");
7393
+ throw new ke("Cannot create QR code, URL too long.");
7393
7394
  const d = await ws(c);
7394
7395
  if (!n.data || !n.data.regions)
7395
7396
  throw new Ee(n, "Missing regions.");
@@ -7435,11 +7436,11 @@ class ys {
7435
7436
  }
7436
7437
  }
7437
7438
  const Wn = new ys();
7438
- class De {
7439
+ class Pe {
7439
7440
  constructor() {
7440
7441
  this.frameSourceSvg = async (t, e) => {
7441
7442
  if (!t)
7442
- return la(e);
7443
+ return oa(e);
7443
7444
  const a = t.asset;
7444
7445
  if (!a)
7445
7446
  throw new vt(t);
@@ -7488,7 +7489,7 @@ class De {
7488
7489
  a.serializableWorkflow.steps
7489
7490
  ), l = Object.values(a.layouts).map((c) => c.elements).flat().filter((c) => c.stepName === t.stepName).map((c) => ({ id: c.id, region: c.stepRegion }));
7490
7491
  if (!t.option || (t.option.variants || []).length === 0) {
7491
- const c = t.data.regions.map((d) => la(d));
7492
+ const c = t.data.regions.map((d) => oa(d));
7492
7493
  e.updateStorage(t.stepName, {
7493
7494
  currentFrameSources: c
7494
7495
  });
@@ -7542,7 +7543,7 @@ class De {
7542
7543
  })) ?? [];
7543
7544
  }
7544
7545
  selectImage(t, e, a, n = !0) {
7545
- const i = De.patternSource(e), s = a.getStepStorage(t.stepName)?.framePatternSrc;
7546
+ const i = Pe.patternSource(e), s = a.getStepStorage(t.stepName)?.framePatternSrc;
7546
7547
  if (s && s === i)
7547
7548
  return Promise.resolve();
7548
7549
  a.setEditedStatus(t.stepName, !0);
@@ -7562,7 +7563,7 @@ class De {
7562
7563
  });
7563
7564
  },
7564
7565
  () => {
7565
- throw new Me("Failed to resolve transcoded PDF");
7566
+ throw new ke("Failed to resolve transcoded PDF");
7566
7567
  }
7567
7568
  )
7568
7569
  );
@@ -7624,7 +7625,7 @@ class De {
7624
7625
  };
7625
7626
  ut.set(t, A), e.setPatternData(A, a);
7626
7627
  } else {
7627
- const s = await Te(t, !0), o = await Qe(s), l = {
7628
+ const s = await Me(t, !0), o = await Ne(s), l = {
7628
7629
  src: t,
7629
7630
  width: o.width,
7630
7631
  height: o.height,
@@ -7709,7 +7710,7 @@ class De {
7709
7710
  i && i(!0);
7710
7711
  const c = t.data.initialZoomLevel, d = await Promise.all(
7711
7712
  t.data.regions.map(async (h, m) => {
7712
- const p = await $e(l[m]), g = o.getImageData(), C = a.map((P) => new bt(P.id)), S = g ? Ea(
7713
+ const p = await Oe(l[m]), g = o.getImageData(), C = a.map((P) => new bt(P.id)), S = g ? Ea(
7713
7714
  g,
7714
7715
  p,
7715
7716
  c && !t.data.forceImageCover ? { scale: c } : void 0,
@@ -7773,7 +7774,7 @@ class De {
7773
7774
  throw new Yt(t);
7774
7775
  }
7775
7776
  async loadPatternFromAsset(t, e, a, n) {
7776
- const i = De.patternSource(t), s = a.markUpdatePending(), o = a.getWorkflowExperience().getStepById(e.stepName)?.frameService;
7777
+ const i = Pe.patternSource(t), s = a.markUpdatePending(), o = a.getWorkflowExperience().getStepById(e.stepName)?.frameService;
7777
7778
  if (!o)
7778
7779
  throw a.markUpdateCompleted(s), new Error("Frame service unavailable, cannot load pattern!");
7779
7780
  try {
@@ -7800,7 +7801,7 @@ class De {
7800
7801
  ), this.validateColorCount(e, a);
7801
7802
  }
7802
7803
  }
7803
- const wt = new De();
7804
+ const wt = new Pe();
7804
7805
  class Ss {
7805
7806
  async getIllustrationBody(t) {
7806
7807
  return new Promise((e) => {
@@ -7905,10 +7906,10 @@ class Ss {
7905
7906
  spotColor: A.spotColor,
7906
7907
  pmsValue: A.pmsValue
7907
7908
  };
7908
- const o = Ca(t, e, a, s), l = await _t(o), c = [];
7909
+ const o = fa(t, e, a, s), l = await _t(o), c = [];
7909
7910
  for (const d of n) {
7910
7911
  for (const [A, u] of i.entries())
7911
- c.push(new da(d, A, u));
7912
+ c.push(new ca(d, A, u));
7912
7913
  c.push(new Cs(d, o, l));
7913
7914
  }
7914
7915
  return new R(c);
@@ -8291,7 +8292,7 @@ class bs {
8291
8292
  }
8292
8293
  if (!/^$|^[a-zA-Z0-9 ]+$/.test(e))
8293
8294
  return n("Unsupported characters."), { input: e, helperData: {}, errorData: { unsupportedCharacters: !0 } };
8294
- const i = aa(e.toLowerCase());
8295
+ const i = ea(e.toLowerCase());
8295
8296
  for (const s of i)
8296
8297
  for (const o in a) {
8297
8298
  const l = a[o].toLowerCase().replace(/\s/g, "");
@@ -8465,7 +8466,7 @@ class Ps {
8465
8466
  const n = a.getLayouts(), s = (a.getRegionElements(e.stepName) || []).map((o) => {
8466
8467
  const l = o.region;
8467
8468
  if (!n.find((d) => d.panelId === l?.panelId)) throw new Y(l);
8468
- return new da(o.id, this.shapeFillId, t);
8469
+ return new ca(o.id, this.shapeFillId, t);
8469
8470
  }).filter((o) => !!o);
8470
8471
  a.getCommandDispatcher()(new R(s)), a.updateStorage(e.stepName, { colour: t });
8471
8472
  }
@@ -8531,7 +8532,7 @@ class Ps {
8531
8532
  if (!i.find((m) => m.panelId === A?.panelId))
8532
8533
  throw new Y(A);
8533
8534
  const h = o();
8534
- return new da(d.id, this.shapeFillId, h);
8535
+ return new ca(d.id, this.shapeFillId, h);
8535
8536
  }, c = a.map(l).filter((d) => !!d);
8536
8537
  return {
8537
8538
  command: new R(c),
@@ -8638,7 +8639,7 @@ class Ds {
8638
8639
  );
8639
8640
  }
8640
8641
  }
8641
- const Fs = new Ds(), Je = (r, t, e, a, n) => {
8642
+ const Fs = new Ds(), Ye = (r, t, e, a, n) => {
8642
8643
  if (t.some((d) => d == null))
8643
8644
  throw new Error(`Failed to autosize lines: ${t.join(", ")}`);
8644
8645
  let i = t.map((d) => d.split(`
@@ -8673,29 +8674,29 @@ const Fs = new Ds(), Je = (r, t, e, a, n) => {
8673
8674
  const o = Et(t.assetUrl), l = o.getFont();
8674
8675
  if (n.size) {
8675
8676
  const u = r / l.unitsPerEm;
8676
- return [i, s] = Je(e, a, r, u, o), console.log(`LOG: fixed mode returning ${n.size, s}`), [n.size, i, s];
8677
+ return [i, s] = Ye(e, a, r, u, o), console.log(`LOG: fixed mode returning ${n.size, s}`), [n.size, i, s];
8677
8678
  }
8678
8679
  const c = 6;
8679
- let d = c - We;
8680
+ let d = c - Ge;
8680
8681
  if (a.length > 0) {
8681
8682
  let u = a, h = 0;
8682
8683
  for (; (!n.maxSize || d <= n.maxSize) && u; )
8683
- d += We, h = d / l.unitsPerEm, [u, s] = Je(e, a, d, h, o), console.log(`LOG: intermediate result ${[u, s]}`);
8684
+ d += Ge, h = d / l.unitsPerEm, [u, s] = Ye(e, a, d, h, o), console.log(`LOG: intermediate result ${[u, s]}`);
8684
8685
  }
8685
- d > c && (d -= We), n.minSize && d < n.minSize && (d = n.minSize);
8686
+ d > c && (d -= Ge), n.minSize && d < n.minSize && (d = n.minSize);
8686
8687
  const A = d / l.unitsPerEm;
8687
- return [i, s] = Je(e, a, d, A, o), console.log(`LOG: var mode returning ${[d, i, s]}`), [d, i, s];
8688
- }, Ke = 30;
8689
- class Fe extends Error {
8688
+ return [i, s] = Ye(e, a, d, A, o), console.log(`LOG: var mode returning ${[d, i, s]}`), [d, i, s];
8689
+ }, Je = 30;
8690
+ class De extends Error {
8690
8691
  constructor(t) {
8691
- super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Fe.name;
8692
+ super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = De.name;
8692
8693
  }
8693
8694
  }
8694
8695
  const xs = ["‘", "’", "“", "”", `
8695
8696
  `];
8696
- class xe extends Error {
8697
+ class Fe extends Error {
8697
8698
  constructor(t) {
8698
- super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = xe.name;
8699
+ super(t), Object.setPrototypeOf(this, new.target.prototype), this.name = Fe.name;
8699
8700
  }
8700
8701
  }
8701
8702
  class ks {
@@ -8717,7 +8718,7 @@ class ks {
8717
8718
  }, this.textAlign = (t) => t.vertical ? "center" : t.textAlign || "center", this.getErrorsForText = (t, e, a, n) => {
8718
8719
  let i;
8719
8720
  a.data && a.data.maxLength && e.length > a.data.maxLength && (i || (i = {}), i.hitCharacterLimit = !0);
8720
- const s = n.getProfanities(), o = aa(t.toLowerCase());
8721
+ const s = n.getProfanities(), o = ea(t.toLowerCase());
8721
8722
  for (const c of o)
8722
8723
  for (const d in s) {
8723
8724
  const A = s[d].toLowerCase().replace(/\s/g, "");
@@ -8737,7 +8738,7 @@ class ks {
8737
8738
  if (a)
8738
8739
  await this.reload(t, e, a);
8739
8740
  else {
8740
- const i = this.getDefaultImageFillVariant(t.data), s = i?.asset?.fileLink, o = s ? await ca(s) : void 0, l = o ? {
8741
+ const i = this.getDefaultImageFillVariant(t.data), s = i?.asset?.fileLink, o = s ? await la(s) : void 0, l = o ? {
8741
8742
  src: o.src,
8742
8743
  height: o.height,
8743
8744
  width: o.width,
@@ -8844,7 +8845,7 @@ class ks {
8844
8845
  const a = e.variants?.map((n) => n.asset?.fileLink)?.filter((n) => !!n) || [];
8845
8846
  return Promise.all(
8846
8847
  a.map(async (n) => {
8847
- const i = await ca(n);
8848
+ const i = await la(n);
8848
8849
  return {
8849
8850
  src: n,
8850
8851
  width: i.width,
@@ -8864,7 +8865,7 @@ class ks {
8864
8865
  fillImage: e
8865
8866
  });
8866
8867
  for (const o of a) {
8867
- const l = new He(o.id, e);
8868
+ const l = new je(o.id, e);
8868
8869
  i(l);
8869
8870
  }
8870
8871
  }
@@ -8901,7 +8902,7 @@ class ks {
8901
8902
  strokeColor: s
8902
8903
  });
8903
8904
  for (const o of a) {
8904
- const l = new Ye(o.id, s, t.data?.strokeThickness);
8905
+ const l = new He(o.id, s, t.data?.strokeThickness);
8905
8906
  i(l);
8906
8907
  }
8907
8908
  }
@@ -9096,18 +9097,18 @@ class ks {
9096
9097
  if (n.length > 0) {
9097
9098
  const u = n.map((p) => new qa(p.id, A));
9098
9099
  if (l) {
9099
- const p = n.map((g) => new He(g.id, l));
9100
+ const p = n.map((g) => new je(g.id, l));
9100
9101
  u.push(...p);
9101
9102
  }
9102
9103
  if (c) {
9103
9104
  const p = n.map(
9104
- (g) => new Ye(g.id, c, t.data.strokeThickness)
9105
+ (g) => new He(g.id, c, t.data.strokeThickness)
9105
9106
  );
9106
9107
  u.push(...p);
9107
9108
  }
9108
9109
  const h = await this.changeInputTextWithRegion(
9109
9110
  t,
9110
- t.data.size || Ke,
9111
+ t.data.size || Je,
9111
9112
  A,
9112
9113
  a.text || "",
9113
9114
  a,
@@ -9132,7 +9133,7 @@ class ks {
9132
9133
  i
9133
9134
  ), h = await this.changeInputTextWithRegion(
9134
9135
  t,
9135
- t.data.size || Ke,
9136
+ t.data.size || Je,
9136
9137
  A,
9137
9138
  u[0]?.newElement.input || a.text || t.data.defaultText || "",
9138
9139
  a,
@@ -9143,13 +9144,13 @@ class ks {
9143
9144
  ), m = u.flatMap((g) => g.commands);
9144
9145
  if (l) {
9145
9146
  const g = u.map(
9146
- (C) => new He(C.regionElement.id, l)
9147
+ (C) => new je(C.regionElement.id, l)
9147
9148
  );
9148
9149
  m.push(...g);
9149
9150
  }
9150
9151
  if (c) {
9151
9152
  const g = n.map(
9152
- (C) => new Ye(C.id, c, t.data.strokeThickness)
9153
+ (C) => new He(C.id, c, t.data.strokeThickness)
9153
9154
  );
9154
9155
  m.push(...g);
9155
9156
  }
@@ -9176,7 +9177,7 @@ class ks {
9176
9177
  const m = s.getLayouts().find((g) => g.panelId === u.panelId), p = M();
9177
9178
  try {
9178
9179
  if (!m)
9179
- throw new xe("Failed to find layout for region: " + u.panelId);
9180
+ throw new Fe("Failed to find layout for region: " + u.panelId);
9180
9181
  const g = a.colorOption;
9181
9182
  let C;
9182
9183
  if (g && g.variants) {
@@ -9190,7 +9191,7 @@ class ks {
9190
9191
  stepName: t,
9191
9192
  align: this.textAlign(a),
9192
9193
  fill: i.color ? i.color : b,
9193
- fontSize: a.size || Ke,
9194
+ fontSize: a.size || Je,
9194
9195
  fontData: n,
9195
9196
  id: p,
9196
9197
  layer: u.layer,
@@ -9239,10 +9240,10 @@ class ks {
9239
9240
  fontData: n
9240
9241
  };
9241
9242
  } catch (g) {
9242
- throw console.log(g), new Fe("Error adding font to region");
9243
+ throw console.log(g), new De("Error adding font to region");
9243
9244
  }
9244
9245
  }, A = await Promise.all(a.regions.map(d)).catch((u) => {
9245
- throw u instanceof Fe ? (Fs.setLatestToast("Failed to load font.", Ue.Error), u) : u instanceof xe ? u : new Error(u);
9246
+ throw u instanceof De ? (Fs.setLatestToast("Failed to load font.", $e.Error), u) : u instanceof Fe ? u : new Error(u);
9246
9247
  });
9247
9248
  return await s.setSelectionsAndElements(
9248
9249
  t,
@@ -9284,7 +9285,7 @@ class ks {
9284
9285
  const S = (() => {
9285
9286
  if (t.data && t.data.maxLength && h.length > t.data.maxLength)
9286
9287
  return d && d(!0), { info: "0" };
9287
- const f = s.getProfanities(), E = aa(u.toLowerCase());
9288
+ const f = s.getProfanities(), E = ea(u.toLowerCase());
9288
9289
  for (const P of E)
9289
9290
  for (const B in f) {
9290
9291
  const F = f[B].toLowerCase().replace(/\s/g, "");
@@ -9571,7 +9572,7 @@ const re = w`
9571
9572
  bundleId: r
9572
9573
  }
9573
9574
  })).data.globalPropertyState, Ws = w`
9574
- ${Re}
9575
+ ${Qe}
9575
9576
  fragment ProductFields on Product {
9576
9577
  id
9577
9578
  basePrice
@@ -10226,7 +10227,7 @@ const re = w`
10226
10227
  }
10227
10228
  }
10228
10229
  `;
10229
- var Ue = /* @__PURE__ */ ((r) => (r.Error = "Error", r.Warning = "Warning", r.Info = "Info", r))(Ue || {});
10230
+ var $e = /* @__PURE__ */ ((r) => (r.Error = "Error", r.Warning = "Warning", r.Info = "Info", r))($e || {});
10230
10231
  const wo = 1e3;
10231
10232
  class Ja extends xn {
10232
10233
  constructor(t) {
@@ -11408,7 +11409,7 @@ class Po extends Z {
11408
11409
  ...this.manager.getInformationResults(),
11409
11410
  {
11410
11411
  message: "An issue has occurred with text",
11411
- messageType: Ue.Error,
11412
+ messageType: $e.Error,
11412
11413
  stepID: this.step.stepName
11413
11414
  }
11414
11415
  ]);
@@ -11656,7 +11657,7 @@ class xo extends Z {
11656
11657
  ...this.manager.getInformationResults(),
11657
11658
  {
11658
11659
  message: e,
11659
- messageType: Ue.Error,
11660
+ messageType: $e.Error,
11660
11661
  stepID: this.step.stepName
11661
11662
  }
11662
11663
  ];
@@ -12142,7 +12143,7 @@ class $o {
12142
12143
  throw new V("Unexpected storage method requested");
12143
12144
  }
12144
12145
  }
12145
- const _e = new $o(), Uo = w`
12146
+ const Ke = new $o(), Uo = w`
12146
12147
  mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
12147
12148
  transactionAddStakeholder(id: $id, details: $details, type: $type) {
12148
12149
  id
@@ -12189,7 +12190,7 @@ var zo = /* @__PURE__ */ ((r) => (r.QuantityChanged = "QuantityChanged", r.Price
12189
12190
  class Go {
12190
12191
  constructor(t, e) {
12191
12192
  if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = An(async () => {
12192
- await _e.getSavedDesignByTransaction(
12193
+ await Ke.getSavedDesignByTransaction(
12193
12194
  this.getWorkflowManager().getTransaction().id
12194
12195
  ) && this.save();
12195
12196
  }, 2500), this.getCanvasObjectURLAsync = async (n) => new Promise((i, s) => {
@@ -12308,7 +12309,7 @@ class Go {
12308
12309
  height: d.layoutState.layout.height
12309
12310
  }, u = this.commandContext.getLayoutById(d.layoutState.layout.id), h = s.getContext("2d");
12310
12311
  if (!h)
12311
- throw new Me("Failed to obtain 2D context for preview image creation");
12312
+ throw new ke("Failed to obtain 2D context for preview image creation");
12312
12313
  const m = this.workflowManager.getTemplatingContext(), p = Sa(u.layoutState.layout, u.layoutState.elements, {
12313
12314
  renderingConfiguration: {
12314
12315
  purpose: Ht.Print,
@@ -12316,12 +12317,12 @@ class Go {
12316
12317
  templatingContext: m
12317
12318
  }
12318
12319
  }), g = gn(p);
12319
- await (await ua.from(h, g, {
12320
+ await (await Aa.from(h, g, {
12320
12321
  anonymousCrossOrigin: !0,
12321
12322
  ignoreDimensions: !1,
12322
12323
  createCanvas: pt,
12323
12324
  createImage: te,
12324
- DOMParser: pa(),
12325
+ DOMParser: ga(),
12325
12326
  fetch
12326
12327
  })).render();
12327
12328
  const S = await this.getCanvasObjectURLAsync(s);
@@ -12479,7 +12480,7 @@ class Go {
12479
12480
  const n = {
12480
12481
  title: await (async () => {
12481
12482
  if (t) return t;
12482
- const i = this.getWorkflowManager().getTransaction().id, o = (await _e.getSavedDesigns()).find((l) => l.transactionId === i)?.title;
12483
+ const i = this.getWorkflowManager().getTransaction().id, o = (await Ke.getSavedDesigns()).find((l) => l.transactionId === i)?.title;
12483
12484
  return o || "My design";
12484
12485
  })(),
12485
12486
  thumbnail: await this.createPreviewImage(!1, 256),
@@ -12490,7 +12491,7 @@ class Go {
12490
12491
  workflowId: this.getWorkflowManager().getWorkflow().id,
12491
12492
  lastEdited: /* @__PURE__ */ new Date()
12492
12493
  };
12493
- return await _e.addDesign(n), n;
12494
+ return await Ke.addDesign(n), n;
12494
12495
  }
12495
12496
  async copy() {
12496
12497
  const t = St(this.getCommandContext().getState());
@@ -12706,12 +12707,12 @@ const Wo = (r) => {
12706
12707
  return console.error(h), [];
12707
12708
  }
12708
12709
  }, Yo = async (r, t, e, a) => {
12709
- const n = e.data, i = n.assetUrl, s = await ca(i);
12710
+ const n = e.data, i = n.assetUrl, s = await la(i);
12710
12711
  try {
12711
12712
  const o = As(n, a.option);
12712
12713
  o && (t[a.stepName] = { selectedVariants: [o] });
12713
12714
  const l = async (c) => {
12714
- const d = await Un(c, o?.asset?.fileLink), A = await $e(d), u = M(), h = r.find((p) => p.panelId === c.panelId);
12715
+ const d = await Un(c, o?.asset?.fileLink), A = await Oe(d), u = M(), h = r.find((p) => p.panelId === c.panelId);
12715
12716
  if (!h)
12716
12717
  throw new Y(c);
12717
12718
  const m = Ea(
@@ -12778,7 +12779,7 @@ const Wo = (r) => {
12778
12779
  const l = await nt(o, !0), c = /<svg.*?<\/svg>/s, d = l.match(c) || [], A = d?.length > 0 ? d[0] : "", m = dt().parseFromString(A, "image/svg+xml").firstElementChild;
12779
12780
  if (!m)
12780
12781
  return console.error("Failed to read SVG."), [];
12781
- fa(m);
12782
+ pa(m);
12782
12783
  const p = {};
12783
12784
  kt(m, (f) => {
12784
12785
  jo.includes(f.tagName) && !f.attributes.getNamedItem("fill") && f.setAttribute("fill", "#000000");
@@ -12992,7 +12993,7 @@ const Wo = (r) => {
12992
12993
  const u = /<svg.*?<\/svg>/s, h = A.match(u) || [], m = h?.length > 0 ? h[0] : "", C = dt().parseFromString(m, "image/svg+xml").firstElementChild;
12993
12994
  if (!C)
12994
12995
  throw new Dt("Failed to read SVG.");
12995
- return fa(C), Bt().serializeToString(C);
12996
+ return pa(C), Bt().serializeToString(C);
12996
12997
  };
12997
12998
  l.forEach((A) => {
12998
12999
  const u = r.find((m) => m.panelId === A.panelId);
@@ -13333,7 +13334,7 @@ class ol extends xn {
13333
13334
  purpose: Ht.ThreeD,
13334
13335
  templatingContext: d
13335
13336
  }
13336
- }), u = gn(A), h = await ua.from(this.ctx, u, {
13337
+ }), u = gn(A), h = await Aa.from(this.ctx, u, {
13337
13338
  anonymousCrossOrigin: !0,
13338
13339
  ignoreDimensions: !this.nonPOTSupport,
13339
13340
  ignoreAnimation: !0,
@@ -13342,7 +13343,7 @@ class ol extends xn {
13342
13343
  enableRedraw: !1,
13343
13344
  createCanvas: pt,
13344
13345
  createImage: te,
13345
- DOMParser: pa(),
13346
+ DOMParser: ga(),
13346
13347
  fetch
13347
13348
  });
13348
13349
  h.resize(l, c), await h.render(), this.onRender();
@@ -13543,7 +13544,7 @@ class cl extends Ia {
13543
13544
  ]);
13544
13545
  }
13545
13546
  async canUseBackgroundRemover() {
13546
- return this.bundle.getClient().canUseAddon(ha.BackgroundRemover);
13547
+ return this.bundle.getClient().canUseAddon(ua.BackgroundRemover);
13547
13548
  }
13548
13549
  /**
13549
13550
  * Removes the background from an image, stores it in the state, and returns the new asset.
@@ -13581,7 +13582,7 @@ class cl extends Ia {
13581
13582
  return O.getLocalOrFromServer(t);
13582
13583
  }
13583
13584
  async getImageWithColors() {
13584
- return await this.loadImageData(), this.imageData?.svg ? ma(wa(this.imageData.svg, this.imageData.colors ?? {}, !1)) : this.imageData?.src;
13585
+ return await this.loadImageData(), this.imageData?.svg ? ha(Ca(this.imageData.svg, this.imageData.colors ?? {}, !1)) : this.imageData?.src;
13585
13586
  }
13586
13587
  /**
13587
13588
  * Retrieves the original, unmodified image selection, if one exists.
@@ -14679,7 +14680,7 @@ const El = w`
14679
14680
  }
14680
14681
  }
14681
14682
  `;
14682
- class Xe {
14683
+ class _e {
14683
14684
  constructor(t, e, a, n, i, s) {
14684
14685
  this.workflowExperiences = [], this.eventEmitter = new vl(), 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 ml(e.bundleStateData);
14685
14686
  const o = this.productCollection?.globalPropertyConfiguration;
@@ -15958,7 +15959,7 @@ class md {
15958
15959
  } catch (a) {
15959
15960
  throw console.error(a), new ht("Critical - Unable to synchronize workflow state with server.");
15960
15961
  }
15961
- }, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 31.2.3-beta.6656bf1f-f28c-546b-a655-f036c595b6cc"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15962
+ }, this.options = t, this.options.applicationKey && Lr(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 31.2.3-beta.31c9ba15-a663-564f-ae8f-4ab38e25e1d4"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
15962
15963
  }
15963
15964
  configure(t) {
15964
15965
  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 && zr(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration(), this.spiffRegion && this.userPoolRegion && this.userPoolClientId && Lt.init(this.spiffRegion, this.userPoolRegion, this.userPoolClientId);
@@ -16258,7 +16259,7 @@ class md {
16258
16259
  s.set(i.id, i.partner.id), k.setMap("bundlePartnerIds", s);
16259
16260
  const o = k.getMap("bundleOwnerIds") || /* @__PURE__ */ new Map();
16260
16261
  o.set(i.id, i.bundleOwnerId), k.setMap("bundleOwnerIds", o);
16261
- const l = new Xe(this, i, void 0, void 0, i.bundleOwnerId, {
16262
+ const l = new _e(this, i, void 0, void 0, i.bundleOwnerId, {
16262
16263
  eagerFetchProducts: a?.graphql?.productCollection?.eagerFetchProducts
16263
16264
  });
16264
16265
  return await l.getInitializationPromise(), l;
@@ -16298,7 +16299,7 @@ class md {
16298
16299
  throw new Error(`Unable to find bundle: ${t}`);
16299
16300
  const d = c.data?.bundles[0], A = k.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
16300
16301
  A.set(d.id, d.partner.id), k.setMap("bundlePartnerIds", A);
16301
- const u = new Xe(this, d, e, a, s, {
16302
+ const u = new _e(this, d, e, a, s, {
16302
16303
  additionalHeaders: n?.graphql?.additionalHeaders,
16303
16304
  eagerFetchProducts: n?.graphql?.productCollection?.eagerFetchProducts,
16304
16305
  existingGlobalPropertyState: c.data.globalPropertyState,
@@ -16345,7 +16346,7 @@ class md {
16345
16346
  d.set(c.id, c.partner.id), k.setMap("bundlePartnerIds", d);
16346
16347
  const A = k.getMap("bundleOwnerIds") || /* @__PURE__ */ new Map();
16347
16348
  return A.set(c.id, c.bundleOwnerId), k.setMap("bundleOwnerIds", A), async () => {
16348
- const u = new Xe(this, c, void 0, void 0, c.bundleOwnerId, {
16349
+ const u = new _e(this, c, void 0, void 0, c.bundleOwnerId, {
16349
16350
  eagerFetchProducts: n?.graphql?.productCollection?.eagerFetchProducts,
16350
16351
  existingGlobalPropertyState: c.globalPropertyState
16351
16352
  });
@@ -16663,7 +16664,7 @@ class Gl {
16663
16664
  if (n.currentFrameSources) {
16664
16665
  let i = !1;
16665
16666
  for (let s = 0; s < n.currentFrameSources.length; s++) {
16666
- const o = n.currentFrameSources[s], l = await $e(o), c = this.frameData ? this.frameData[s] : void 0;
16667
+ const o = n.currentFrameSources[s], l = await Oe(o), c = this.frameData ? this.frameData[s] : void 0;
16667
16668
  dn(l, c) || (this.frameData || (this.frameData = new Array(n.currentFrameSources.length)), this.frameData[s] = l, i = !0);
16668
16669
  }
16669
16670
  i && (this.onFrameDataChangeListeners.forEach(
@@ -16716,8 +16717,8 @@ class Gl {
16716
16717
  getImageSrc() {
16717
16718
  if (this.imageData) {
16718
16719
  if (this.imageData.svg) {
16719
- const t = wa(this.imageData.svg, this.imageData.colors || {}, !1);
16720
- return ma(t);
16720
+ const t = Ca(this.imageData.svg, this.imageData.colors || {}, !1);
16721
+ return ha(t);
16721
16722
  }
16722
16723
  return this.imageData.src;
16723
16724
  }
@@ -17069,7 +17070,7 @@ class ql extends Z {
17069
17070
  * Returns `true` if the Background Remover is available for the current session.
17070
17071
  */
17071
17072
  async canUseBackgroundRemover() {
17072
- return this.manager.getClient().canUseAddon(ha.BackgroundRemover);
17073
+ return this.manager.getClient().canUseAddon(ua.BackgroundRemover);
17073
17074
  }
17074
17075
  /**
17075
17076
  * Returns `true` if the Background Remover is available for the current session and if the associated frame has a user-supplied raster image.
@@ -17449,12 +17450,12 @@ K = { __e: function(r, t, e, a) {
17449
17450
  }
17450
17451
  throw r;
17451
17452
  } }, typeof Promise == "function" && Promise.prototype.then.bind(Promise.resolve());
17452
- var st, Ze, tn, ir = [], ta = [], en = K.__b, an = K.__r, nn = K.diffed, rn = K.__c, sn = K.unmount;
17453
+ var st, Xe, tn, ir = [], Ze = [], en = K.__b, an = K.__r, nn = K.diffed, rn = K.__c, sn = K.unmount;
17453
17454
  function ec() {
17454
17455
  for (var r; r = ir.shift(); )
17455
17456
  if (r.__P && r.__H)
17456
17457
  try {
17457
- r.__H.__h.forEach(we), r.__H.__h.forEach(Aa), r.__H.__h = [];
17458
+ r.__H.__h.forEach(we), r.__H.__h.forEach(da), r.__H.__h = [];
17458
17459
  } catch (t) {
17459
17460
  r.__H.__h = [], K.__e(t, r.__v);
17460
17461
  }
@@ -17464,20 +17465,20 @@ K.__b = function(r) {
17464
17465
  }, K.__r = function(r) {
17465
17466
  an && an(r);
17466
17467
  var t = (st = r.__c).__H;
17467
- t && (Ze === st ? (t.__h = [], st.__h = [], t.__.forEach(function(e) {
17468
- e.__N && (e.__ = e.__N), e.__V = ta, e.__N = e.i = void 0;
17469
- })) : (t.__h.forEach(we), t.__h.forEach(Aa), t.__h = [])), Ze = st;
17468
+ t && (Xe === st ? (t.__h = [], st.__h = [], t.__.forEach(function(e) {
17469
+ e.__N && (e.__ = e.__N), e.__V = Ze, e.__N = e.i = void 0;
17470
+ })) : (t.__h.forEach(we), t.__h.forEach(da), t.__h = [])), Xe = st;
17470
17471
  }, K.diffed = function(r) {
17471
17472
  nn && nn(r);
17472
17473
  var t = r.__c;
17473
17474
  t && t.__H && (t.__H.__h.length && (ir.push(t) !== 1 && tn === K.requestAnimationFrame || ((tn = K.requestAnimationFrame) || ac)(ec)), t.__H.__.forEach(function(e) {
17474
- e.i && (e.__H = e.i), e.__V !== ta && (e.__ = e.__V), e.i = void 0, e.__V = ta;
17475
- })), Ze = st = null;
17475
+ e.i && (e.__H = e.i), e.__V !== Ze && (e.__ = e.__V), e.i = void 0, e.__V = Ze;
17476
+ })), Xe = st = null;
17476
17477
  }, K.__c = function(r, t) {
17477
17478
  t.some(function(e) {
17478
17479
  try {
17479
17480
  e.__h.forEach(we), e.__h = e.__h.filter(function(a) {
17480
- return !a.__ || Aa(a);
17481
+ return !a.__ || da(a);
17481
17482
  });
17482
17483
  } catch (a) {
17483
17484
  t.some(function(n) {
@@ -17507,7 +17508,7 @@ function we(r) {
17507
17508
  var t = st, e = r.__c;
17508
17509
  typeof e == "function" && (r.__c = void 0, e()), st = t;
17509
17510
  }
17510
- function Aa(r) {
17511
+ function da(r) {
17511
17512
  var t = st;
17512
17513
  r.__c = r.__(), st = t;
17513
17514
  }
@@ -17622,7 +17623,7 @@ const kd = async (r) => {
17622
17623
  });
17623
17624
  };
17624
17625
  export {
17625
- ha as AddonHandle,
17626
+ ua as AddonHandle,
17626
17627
  lc as AddressValidationJobStatus,
17627
17628
  oc as AddressValidationResultConfirmationLevel,
17628
17629
  ud as ArrayInput,
@@ -17659,7 +17660,7 @@ export {
17659
17660
  Ia as GlobalPropertyHandle,
17660
17661
  R as GroupCommand,
17661
17662
  So as IllustrationStepHandle,
17662
- Ue as InformationMessageType,
17663
+ $e as InformationMessageType,
17663
17664
  Do as InformationStepHandle,
17664
17665
  Xa as IntegrationProduct,
17665
17666
  Ir as IntegrationType,
@@ -17718,7 +17719,7 @@ export {
17718
17719
  Ro as createDesign,
17719
17720
  Hc as currentDirection,
17720
17721
  Qc as dataUrlFromExternalUrl,
17721
- _e as designService,
17722
+ Ke as designService,
17722
17723
  fe as determineCorrectFontSizeAndLines,
17723
17724
  Wn as digitalContentStepService,
17724
17725
  dt as domParser,
@@ -17735,14 +17736,14 @@ export {
17735
17736
  ot as generateSVGWithUnknownColors,
17736
17737
  cd as generateStateFromDesignInputSteps,
17737
17738
  Md as getAddressValidationJobs,
17738
- Qe as getAttributesFromArrayBuffer,
17739
+ Ne as getAttributesFromArrayBuffer,
17739
17740
  Uc as getAxisAlignedBoundingBox,
17740
17741
  zl as getBoundedOffsets,
17741
17742
  fd as getBundleThemeConfiguration,
17742
17743
  bd as getCustomer,
17743
17744
  Bd as getCustomerBundles,
17744
17745
  Yc as getElementVertices,
17745
- $e as getFrameData,
17746
+ Oe as getFrameData,
17746
17747
  od as getGlobalPropertyStateForBundle,
17747
17748
  Vl as getIntegration,
17748
17749
  qc as getNEPoint,
@@ -17772,7 +17773,7 @@ export {
17772
17773
  fl as metafieldManager,
17773
17774
  Jc as mmPerPixel,
17774
17775
  jn as modelStepService,
17775
- wa as modifySVGColors,
17776
+ Ca as modifySVGColors,
17776
17777
  Hn as moduleStepService,
17777
17778
  yd as nameBundle,
17778
17779
  Sd as nameTransaction,
@@ -17788,7 +17789,7 @@ export {
17788
17789
  Ga as rehydrateSerializedLayout,
17789
17790
  _r as rgbToPms,
17790
17791
  ce as rotateAroundPoint,
17791
- fa as sanitizeSvgTree,
17792
+ pa as sanitizeSvgTree,
17792
17793
  zr as setBearerAuthenticationToken,
17793
17794
  Cn as setCanvasModule,
17794
17795
  zt as shapeStepService,
@@ -17797,7 +17798,7 @@ export {
17797
17798
  ld as stepAspectValuesToDesignInputSteps,
17798
17799
  $a as svgColorValueToDefinition,
17799
17800
  Ln as svgStringDimensions,
17800
- ma as svgToDataUrl,
17801
+ ha as svgToDataUrl,
17801
17802
  G as textStepService,
17802
17803
  Fs as toast,
17803
17804
  Td as validateWorkflowExperienceRecipient,