@spiffcommerce/core 26.5.2 → 26.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/index.js +122 -116
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +588 -566
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createHttpLink as Wa, ApolloClient as Xa, from as qa, InMemoryCache as Za, gql as
|
|
1
|
+
import { createHttpLink as Wa, ApolloClient as Xa, from as qa, InMemoryCache as Za, gql as D } from "@apollo/client/core";
|
|
2
2
|
import { setContext as $a } from "@apollo/client/link/context";
|
|
3
3
|
import { onError as _a } from "@apollo/client/link/error";
|
|
4
4
|
import { renderToStaticMarkup as ti } from "preact-render-to-string";
|
|
@@ -17,7 +17,7 @@ import pA from "lodash.chunk";
|
|
|
17
17
|
import KA from "lodash.debounce";
|
|
18
18
|
import VA from "lodash.isequal";
|
|
19
19
|
import { split as Oe } from "unicode-default-word-boundary";
|
|
20
|
-
var le = /* @__PURE__ */ ((i) => (i.Data = "Data", i.Font = "Font", i.Frame = "Frame", i.Illustration = "Illustration", i.Image = "Image", i.Model = "Model", i.Material = "Material", i.Color = "Color", i.QuestionnaireCollateral = "QuestionnaireCollateral", i.RequestCollateral = "RequestCollateral", i.SignupCollateral = "SignupCollateral", i.Video = "Video", i.ColorProfile = "ColorProfile", i.Environment = "Environment", i))(le || {}), it = /* @__PURE__ */ ((i) => (i.FileUpload = "FileUpload", i.Option = "Option", i.ColorOption = "ColorOption", i.Text = "Text", i))(it || {}), M = /* @__PURE__ */ ((i) => (i.Information = "Information", i.Bulk = "Bulk", i.DigitalContent = "DigitalContent", i.Finish = "Finish", i.Frame = "Frame", i.Illustration = "Illustration", i.Introduction = "Introduction", i.Material = "Material", i.Model = "Model", i.Module = "Module", i.Picture = "Picture", i.Photo = "Photo", i.ProductOverlay = "ProductOverlay", i.Question = "Question", i.Shape = "Shape", i.SilentIllustration = "SilentIllustration", i.Text = "Text", i))(M || {}), ni = /* @__PURE__ */ ((i) => (i.Color = "Color", i.Colors = "Colors", i.Selection = "Selection", i.Selections = "Selections", i.Text = "Text", i.Upload = "Upload", i))(ni || {}), Jt = /* @__PURE__ */ ((i) => (i.ThreeD = "ThreeD", i.FreeDesign = "FreeDesign", i.Print = "Print", i))(Jt || {}),
|
|
20
|
+
var le = /* @__PURE__ */ ((i) => (i.Data = "Data", i.Font = "Font", i.Frame = "Frame", i.Illustration = "Illustration", i.Image = "Image", i.Model = "Model", i.Material = "Material", i.Color = "Color", i.QuestionnaireCollateral = "QuestionnaireCollateral", i.RequestCollateral = "RequestCollateral", i.SignupCollateral = "SignupCollateral", i.Video = "Video", i.ColorProfile = "ColorProfile", i.Environment = "Environment", i))(le || {}), it = /* @__PURE__ */ ((i) => (i.FileUpload = "FileUpload", i.Option = "Option", i.ColorOption = "ColorOption", i.Text = "Text", i))(it || {}), M = /* @__PURE__ */ ((i) => (i.Information = "Information", i.Bulk = "Bulk", i.DigitalContent = "DigitalContent", i.Finish = "Finish", i.Frame = "Frame", i.Illustration = "Illustration", i.Introduction = "Introduction", i.Material = "Material", i.Model = "Model", i.Module = "Module", i.Picture = "Picture", i.Photo = "Photo", i.ProductOverlay = "ProductOverlay", i.Question = "Question", i.Shape = "Shape", i.SilentIllustration = "SilentIllustration", i.Text = "Text", i))(M || {}), ni = /* @__PURE__ */ ((i) => (i.Color = "Color", i.Colors = "Colors", i.Selection = "Selection", i.Selections = "Selections", i.Text = "Text", i.Upload = "Upload", i))(ni || {}), Jt = /* @__PURE__ */ ((i) => (i.ThreeD = "ThreeD", i.FreeDesign = "FreeDesign", i.Print = "Print", i))(Jt || {}), b = /* @__PURE__ */ ((i) => (i.Frame = "frame", i.Group = "group", i.Image = "image", i.Pattern = "pattern", i.Illustration = "illustration", i.Textbox = "textbox", i))(b || {}), si = /* @__PURE__ */ ((i) => (i.Hyperlink = "Hyperlink", i.Edit = "Edit", i.Approve = "Approve", i))(si || {}), oi = /* @__PURE__ */ ((i) => (i.Hub = "Hub", i.Shopify = "Shopify", i))(oi || {}), aA = /* @__PURE__ */ ((i) => (i.BackgroundRemover = "BackgroundRemover", i.ConversionAccelerator = "Conversion Accelerator", i.ProcessBuilder = "ProcessBuilder", i))(aA || {}), ri = /* @__PURE__ */ ((i) => (i[i.Orbit = 0] = "Orbit", i[i.Pan = 1] = "Pan", i))(ri || {}), ci = /* @__PURE__ */ ((i) => (i.Manual = "Manual", i.OnStart = "OnStart", i.OnQuit = "OnQuit", i.OnEnd = "OnEnd", i))(ci || {}), li = /* @__PURE__ */ ((i) => (i.Email = "Email", i.FirstName = "FirstName", i.LastName = "LastName", i.Phone = "Phone", i))(li || {}), ge = /* @__PURE__ */ ((i) => (i.Owner = "Owner", i.Approver = "Approver", i.Editor = "Editor", i.Viewer = "Viewer", i))(ge || {}), xt = /* @__PURE__ */ ((i) => (i.Autosize = "Autosize", i.Traditional = "Traditional", i))(xt || {}), V = /* @__PURE__ */ ((i) => (i[i.North = 0] = "North", i[i.Northeast = 1] = "Northeast", i[i.East = 2] = "East", i[i.Southeast = 3] = "Southeast", i[i.South = 4] = "South", i[i.Southwest = 5] = "Southwest", i[i.West = 6] = "West", i[i.Northwest = 7] = "Northwest", i))(V || {}), gi = /* @__PURE__ */ ((i) => (i.Pixel = "px", i.Millimeter = "mm", i.Centimeter = "cm", i))(gi || {});
|
|
21
21
|
class WA extends Error {
|
|
22
22
|
constructor(t) {
|
|
23
23
|
super(t), this.name = this.constructor.name;
|
|
@@ -252,7 +252,7 @@ const XA = /* @__PURE__ */ new Map(), IA = /* @__PURE__ */ new Map(), FA = /* @_
|
|
|
252
252
|
}
|
|
253
253
|
const e = t();
|
|
254
254
|
return e || "image/svg+xml";
|
|
255
|
-
},
|
|
255
|
+
}, Hr = async (i) => {
|
|
256
256
|
const t = await qA(i), e = XA.get(i) || Wt(t);
|
|
257
257
|
return await Qi(new Blob([t], { type: e }));
|
|
258
258
|
}, mi = (i) => {
|
|
@@ -3141,7 +3141,7 @@ const Si = (i) => new Promise((t) => {
|
|
|
3141
3141
|
parseInt(i.substring(2, 4), 16),
|
|
3142
3142
|
parseInt(i.substring(4, 6), 16)
|
|
3143
3143
|
]);
|
|
3144
|
-
function
|
|
3144
|
+
function Ur(i) {
|
|
3145
3145
|
const t = Ot.indexOf(i);
|
|
3146
3146
|
return t >= 0 ? Mt[t] : "";
|
|
3147
3147
|
}
|
|
@@ -3149,7 +3149,7 @@ function vi(i) {
|
|
|
3149
3149
|
const t = Mt.indexOf(i);
|
|
3150
3150
|
return t >= 0 ? Ot[t] : "";
|
|
3151
3151
|
}
|
|
3152
|
-
function
|
|
3152
|
+
function Gr(i, t = 64) {
|
|
3153
3153
|
const e = [], A = [], a = vi(i);
|
|
3154
3154
|
a && e.push({
|
|
3155
3155
|
pms: a,
|
|
@@ -3167,12 +3167,12 @@ function Ur(i, t = 64) {
|
|
|
3167
3167
|
A[g] <= t && !e.some((d) => d.pms === Ot[g]) && e.push({ pms: Ot[g], hex: Mt[g], distance: A[g] });
|
|
3168
3168
|
return e.sort((g, d) => g.distance - d.distance);
|
|
3169
3169
|
}
|
|
3170
|
-
const Ni = Ot.map((i, t) => ({ pms: i, hex: Mt[t] })),
|
|
3171
|
-
function
|
|
3172
|
-
return
|
|
3170
|
+
const Ni = Ot.map((i, t) => ({ pms: i, hex: Mt[t] })), bi = new ai(Ni, { keys: ["pms"] });
|
|
3171
|
+
function Tr(i, t) {
|
|
3172
|
+
return bi.search(i, t ? { limit: t } : void 0);
|
|
3173
3173
|
}
|
|
3174
3174
|
let vt = null;
|
|
3175
|
-
function
|
|
3175
|
+
function ki(i) {
|
|
3176
3176
|
if (i.startsWith("#"))
|
|
3177
3177
|
return SA(i);
|
|
3178
3178
|
if (!document)
|
|
@@ -3212,7 +3212,7 @@ const ee = (i) => {
|
|
|
3212
3212
|
browserValue: t[0],
|
|
3213
3213
|
spotColor: { profileName: A[0], namedColor: A[1] }
|
|
3214
3214
|
};
|
|
3215
|
-
},
|
|
3215
|
+
}, Ri = [
|
|
3216
3216
|
"altGlyph",
|
|
3217
3217
|
"circle",
|
|
3218
3218
|
"ellipse",
|
|
@@ -3339,7 +3339,7 @@ const ee = (i) => {
|
|
|
3339
3339
|
sA(e);
|
|
3340
3340
|
const A = {};
|
|
3341
3341
|
St(e, (s) => {
|
|
3342
|
-
|
|
3342
|
+
Ri.includes(s.tagName) && !s.attributes.getNamedItem("fill") && s.setAttribute("fill", "black");
|
|
3343
3343
|
const o = s.attributes.getNamedItem("fill");
|
|
3344
3344
|
if (o && o.value !== "none" && !o.value.startsWith("url(")) {
|
|
3345
3345
|
const c = xA(o.value), l = c.browserValue.replace(/\W/g, ""), g = `spiff-fill-${l}`;
|
|
@@ -3356,14 +3356,14 @@ const ee = (i) => {
|
|
|
3356
3356
|
colors: A,
|
|
3357
3357
|
svg: n
|
|
3358
3358
|
};
|
|
3359
|
-
}, Li =
|
|
3359
|
+
}, Li = D`
|
|
3360
3360
|
fragment AssetMetadataFields on Asset {
|
|
3361
3361
|
metadata {
|
|
3362
3362
|
key
|
|
3363
3363
|
value
|
|
3364
3364
|
}
|
|
3365
3365
|
}
|
|
3366
|
-
`, qt = (i) =>
|
|
3366
|
+
`, qt = (i) => D`
|
|
3367
3367
|
${i && Li || ""}
|
|
3368
3368
|
fragment AssetFields on Asset {
|
|
3369
3369
|
name
|
|
@@ -3378,14 +3378,14 @@ const ee = (i) => {
|
|
|
3378
3378
|
}
|
|
3379
3379
|
${i && "...AssetMetadataFields" || ""}
|
|
3380
3380
|
}
|
|
3381
|
-
`, Oi =
|
|
3381
|
+
`, Oi = D`
|
|
3382
3382
|
${qt(!1)}
|
|
3383
3383
|
query GetAssets($keys: [String]!) {
|
|
3384
3384
|
assets(keys: $keys) {
|
|
3385
3385
|
...AssetFields
|
|
3386
3386
|
}
|
|
3387
3387
|
}
|
|
3388
|
-
`, rA =
|
|
3388
|
+
`, rA = D`
|
|
3389
3389
|
fragment MaterialFields on Material {
|
|
3390
3390
|
id
|
|
3391
3391
|
name
|
|
@@ -3432,14 +3432,14 @@ const ee = (i) => {
|
|
|
3432
3432
|
fileLink
|
|
3433
3433
|
}
|
|
3434
3434
|
}
|
|
3435
|
-
`, zi =
|
|
3435
|
+
`, zi = D`
|
|
3436
3436
|
${rA}
|
|
3437
3437
|
query GetMaterials($ids: [String]) {
|
|
3438
3438
|
materials(id: $ids) {
|
|
3439
3439
|
...MaterialFields
|
|
3440
3440
|
}
|
|
3441
3441
|
}
|
|
3442
|
-
`, ji =
|
|
3442
|
+
`, ji = D`
|
|
3443
3443
|
mutation CreateAsset($name: String!, $type: String!, $mimeType: String!, $anonymous: Boolean, $temporary: Boolean) {
|
|
3444
3444
|
assetCreate(name: $name, type: $type, mimeType: $mimeType, anonymous: $anonymous, temporary: $temporary) {
|
|
3445
3445
|
uploadUrl
|
|
@@ -3453,7 +3453,7 @@ const ee = (i) => {
|
|
|
3453
3453
|
}
|
|
3454
3454
|
}
|
|
3455
3455
|
}
|
|
3456
|
-
`, Ki =
|
|
3456
|
+
`, Ki = D`
|
|
3457
3457
|
${qt(!1)}
|
|
3458
3458
|
mutation RemoveBackgroundFromAsset($key: String!) {
|
|
3459
3459
|
assetRemoveBackground(key: $key) {
|
|
@@ -3785,7 +3785,7 @@ class qi {
|
|
|
3785
3785
|
this.disabled = t;
|
|
3786
3786
|
}
|
|
3787
3787
|
}
|
|
3788
|
-
const zt = new qi(), la =
|
|
3788
|
+
const zt = new qi(), la = D`
|
|
3789
3789
|
fragment OptionFields on Option {
|
|
3790
3790
|
id
|
|
3791
3791
|
name
|
|
@@ -3822,7 +3822,7 @@ const zt = new qi(), la = I`
|
|
|
3822
3822
|
...AssetFields
|
|
3823
3823
|
}
|
|
3824
3824
|
}
|
|
3825
|
-
`, Zi =
|
|
3825
|
+
`, Zi = D`
|
|
3826
3826
|
${qt(!1)}
|
|
3827
3827
|
${rA}
|
|
3828
3828
|
${la}
|
|
@@ -3900,7 +3900,7 @@ class en {
|
|
|
3900
3900
|
}
|
|
3901
3901
|
}
|
|
3902
3902
|
}
|
|
3903
|
-
const $ = new en(), ga =
|
|
3903
|
+
const $ = new en(), ga = D`
|
|
3904
3904
|
fragment ActiveIntegrationFields on Integration {
|
|
3905
3905
|
id
|
|
3906
3906
|
logo
|
|
@@ -3917,7 +3917,7 @@ const $ = new en(), ga = I`
|
|
|
3917
3917
|
activeAddons
|
|
3918
3918
|
}
|
|
3919
3919
|
}
|
|
3920
|
-
`, De =
|
|
3920
|
+
`, De = D`
|
|
3921
3921
|
fragment AdditionalIntegrationProductFields on IntegrationProduct {
|
|
3922
3922
|
id
|
|
3923
3923
|
product {
|
|
@@ -3935,7 +3935,7 @@ const $ = new en(), ga = I`
|
|
|
3935
3935
|
preloadImageUrl
|
|
3936
3936
|
}
|
|
3937
3937
|
}
|
|
3938
|
-
`, An =
|
|
3938
|
+
`, An = D`
|
|
3939
3939
|
${De}
|
|
3940
3940
|
mutation CreateTransactions(
|
|
3941
3941
|
$inputs: [TransactionCreateInput]!
|
|
@@ -4021,7 +4021,7 @@ const $ = new en(), ga = I`
|
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
4023
4023
|
}
|
|
4024
|
-
`, da =
|
|
4024
|
+
`, da = D`
|
|
4025
4025
|
fragment StakeholderFields on Stakeholder {
|
|
4026
4026
|
id
|
|
4027
4027
|
type
|
|
@@ -4029,7 +4029,7 @@ const $ = new en(), ga = I`
|
|
|
4029
4029
|
authorizationNote
|
|
4030
4030
|
authorizationStatus
|
|
4031
4031
|
}
|
|
4032
|
-
`, Ba =
|
|
4032
|
+
`, Ba = D`
|
|
4033
4033
|
fragment TransactionShareActionFields on TransactionShareAction {
|
|
4034
4034
|
id
|
|
4035
4035
|
title
|
|
@@ -4038,7 +4038,7 @@ const $ = new en(), ga = I`
|
|
|
4038
4038
|
precedence
|
|
4039
4039
|
url
|
|
4040
4040
|
}
|
|
4041
|
-
`, an =
|
|
4041
|
+
`, an = D`
|
|
4042
4042
|
${De}
|
|
4043
4043
|
${da}
|
|
4044
4044
|
${Ba}
|
|
@@ -4179,19 +4179,19 @@ const $ = new en(), ga = I`
|
|
|
4179
4179
|
}
|
|
4180
4180
|
}
|
|
4181
4181
|
}
|
|
4182
|
-
`, nn =
|
|
4182
|
+
`, nn = D`
|
|
4183
4183
|
mutation UpdateTransactionWorkflowState($id: String!, $workflowState: String!) {
|
|
4184
4184
|
transactionUpdate(id: $id, workflowState: $workflowState) {
|
|
4185
4185
|
id
|
|
4186
4186
|
}
|
|
4187
4187
|
}
|
|
4188
|
-
`, sn =
|
|
4188
|
+
`, sn = D`
|
|
4189
4189
|
mutation UpdateTransactionQuantity($id: String!, $quantity: Int) {
|
|
4190
4190
|
transactionUpdate(id: $id, quantity: $quantity) {
|
|
4191
4191
|
id
|
|
4192
4192
|
}
|
|
4193
4193
|
}
|
|
4194
|
-
`, on =
|
|
4194
|
+
`, on = D`
|
|
4195
4195
|
query ReadTransactionForDesignCreation($id: String!) {
|
|
4196
4196
|
transactions(ids: [$id]) {
|
|
4197
4197
|
id
|
|
@@ -4256,7 +4256,7 @@ const $ = new en(), ga = I`
|
|
|
4256
4256
|
workflowViewerReadOnlyLink
|
|
4257
4257
|
}
|
|
4258
4258
|
}
|
|
4259
|
-
`, rn =
|
|
4259
|
+
`, rn = D`
|
|
4260
4260
|
${Ba}
|
|
4261
4261
|
query ReadTransactionForShareActions($id: String!) {
|
|
4262
4262
|
transactions(ids: [$id]) {
|
|
@@ -4267,14 +4267,14 @@ const $ = new en(), ga = I`
|
|
|
4267
4267
|
}
|
|
4268
4268
|
}
|
|
4269
4269
|
}
|
|
4270
|
-
`, ha =
|
|
4270
|
+
`, ha = D`
|
|
4271
4271
|
query ReadWorkflowStates($ids: [String]!) {
|
|
4272
4272
|
transactions(ids: $ids) {
|
|
4273
4273
|
id
|
|
4274
4274
|
workflowState
|
|
4275
4275
|
}
|
|
4276
4276
|
}
|
|
4277
|
-
`, Ca =
|
|
4277
|
+
`, Ca = D`
|
|
4278
4278
|
${De}
|
|
4279
4279
|
fragment IntegrationProductFields on IntegrationProduct {
|
|
4280
4280
|
id
|
|
@@ -4336,14 +4336,14 @@ const $ = new en(), ga = I`
|
|
|
4336
4336
|
}
|
|
4337
4337
|
}
|
|
4338
4338
|
}
|
|
4339
|
-
`, cn =
|
|
4339
|
+
`, cn = D`
|
|
4340
4340
|
${Ca}
|
|
4341
4341
|
query GetIntegrationProducts($ids: [String!]!) {
|
|
4342
4342
|
integrationProducts(ids: $ids) {
|
|
4343
4343
|
...IntegrationProductFields
|
|
4344
4344
|
}
|
|
4345
4345
|
}
|
|
4346
|
-
`, ln =
|
|
4346
|
+
`, ln = D`
|
|
4347
4347
|
${Ca}
|
|
4348
4348
|
query GetIntegrationProductFromExternalIds($externalIntegrationId: String!, $externalProductId: String!) {
|
|
4349
4349
|
integrationProductFromExternalIds(
|
|
@@ -4353,7 +4353,7 @@ const $ = new en(), ga = I`
|
|
|
4353
4353
|
...IntegrationProductFields
|
|
4354
4354
|
}
|
|
4355
4355
|
}
|
|
4356
|
-
`, gn =
|
|
4356
|
+
`, gn = D`
|
|
4357
4357
|
${da}
|
|
4358
4358
|
query ReadTransactionForStakeholders($id: String!) {
|
|
4359
4359
|
transactions(ids: [$id]) {
|
|
@@ -4365,11 +4365,11 @@ const $ = new en(), ga = I`
|
|
|
4365
4365
|
}
|
|
4366
4366
|
}
|
|
4367
4367
|
}
|
|
4368
|
-
`, dn =
|
|
4368
|
+
`, dn = D`
|
|
4369
4369
|
mutation FinalizeUpdateTransaction($transactionId: String!) {
|
|
4370
4370
|
transactionFinalizeUpdate(transactionId: $transactionId)
|
|
4371
4371
|
}
|
|
4372
|
-
`, Bn =
|
|
4372
|
+
`, Bn = D`
|
|
4373
4373
|
fragment RegionFields on Region {
|
|
4374
4374
|
width
|
|
4375
4375
|
top
|
|
@@ -4387,7 +4387,7 @@ const $ = new en(), ga = I`
|
|
|
4387
4387
|
height
|
|
4388
4388
|
}
|
|
4389
4389
|
}
|
|
4390
|
-
`, hn =
|
|
4390
|
+
`, hn = D`
|
|
4391
4391
|
fragment LookAtAnimationFields on LookAtAnimation {
|
|
4392
4392
|
latDeg
|
|
4393
4393
|
lonDeg
|
|
@@ -4398,7 +4398,7 @@ const $ = new en(), ga = I`
|
|
|
4398
4398
|
z
|
|
4399
4399
|
}
|
|
4400
4400
|
}
|
|
4401
|
-
`, Cn =
|
|
4401
|
+
`, Cn = D`
|
|
4402
4402
|
fragment RenderingPipelineConfigurationFields on RenderingPipelineConfiguration {
|
|
4403
4403
|
antiAliasing {
|
|
4404
4404
|
samples
|
|
@@ -4482,14 +4482,14 @@ const $ = new en(), ga = I`
|
|
|
4482
4482
|
weight
|
|
4483
4483
|
}
|
|
4484
4484
|
}
|
|
4485
|
-
`, wn =
|
|
4485
|
+
`, wn = D`
|
|
4486
4486
|
fragment ModelAnimationFields on ModelAnimation {
|
|
4487
4487
|
from
|
|
4488
4488
|
to
|
|
4489
4489
|
loop
|
|
4490
4490
|
name
|
|
4491
4491
|
}
|
|
4492
|
-
`, un = (i) =>
|
|
4492
|
+
`, un = (i) => D`
|
|
4493
4493
|
${qt(i)}
|
|
4494
4494
|
${rA}
|
|
4495
4495
|
${la}
|
|
@@ -4882,7 +4882,7 @@ const $ = new en(), ga = I`
|
|
|
4882
4882
|
}
|
|
4883
4883
|
}
|
|
4884
4884
|
}
|
|
4885
|
-
`, En =
|
|
4885
|
+
`, En = D`
|
|
4886
4886
|
query GetTransactionForPartner($id: String!) {
|
|
4887
4887
|
transactions(ids: [$id]) {
|
|
4888
4888
|
id
|
|
@@ -4900,7 +4900,7 @@ const $ = new en(), ga = I`
|
|
|
4900
4900
|
}
|
|
4901
4901
|
}
|
|
4902
4902
|
}
|
|
4903
|
-
`, mn =
|
|
4903
|
+
`, mn = D`
|
|
4904
4904
|
${qt(!1)}
|
|
4905
4905
|
query GetWorkflowForTheme($id: String!) {
|
|
4906
4906
|
workflow(id: $id) {
|
|
@@ -4922,7 +4922,7 @@ const $ = new en(), ga = I`
|
|
|
4922
4922
|
}
|
|
4923
4923
|
}
|
|
4924
4924
|
}
|
|
4925
|
-
`, Ie =
|
|
4925
|
+
`, Ie = D`
|
|
4926
4926
|
fragment MarketplaceThemeInstallConfigurationFields on MarketplaceThemeInstallConfiguration {
|
|
4927
4927
|
id
|
|
4928
4928
|
themeInstallId
|
|
@@ -4985,14 +4985,14 @@ const $ = new en(), ga = I`
|
|
|
4985
4985
|
}
|
|
4986
4986
|
}
|
|
4987
4987
|
}
|
|
4988
|
-
`, fn =
|
|
4988
|
+
`, fn = D`
|
|
4989
4989
|
${Ie}
|
|
4990
4990
|
query GetMarketplaceThemeInstallConfiguration($themeConfigurationId: String!, $themeInstallId: String!) {
|
|
4991
4991
|
marketplaceThemeInstallConfiguration(id: $themeConfigurationId, themeInstallId: $themeInstallId, raw: false) {
|
|
4992
4992
|
...MarketplaceThemeInstallConfigurationFields
|
|
4993
4993
|
}
|
|
4994
4994
|
}
|
|
4995
|
-
`, Qn =
|
|
4995
|
+
`, Qn = D`
|
|
4996
4996
|
${ga}
|
|
4997
4997
|
${Ie}
|
|
4998
4998
|
query GetCurrentIntegration {
|
|
@@ -5005,7 +5005,7 @@ const $ = new en(), ga = I`
|
|
|
5005
5005
|
...ActiveIntegrationFields
|
|
5006
5006
|
}
|
|
5007
5007
|
}
|
|
5008
|
-
`, pn =
|
|
5008
|
+
`, pn = D`
|
|
5009
5009
|
${Ie}
|
|
5010
5010
|
query ReadTransactionForMarketplaceTheme($id: String!) {
|
|
5011
5011
|
transactions(ids: [$id]) {
|
|
@@ -5014,7 +5014,7 @@ const $ = new en(), ga = I`
|
|
|
5014
5014
|
}
|
|
5015
5015
|
}
|
|
5016
5016
|
}
|
|
5017
|
-
`, Dn =
|
|
5017
|
+
`, Dn = D`
|
|
5018
5018
|
${Ie}
|
|
5019
5019
|
query ReadBundleForMarketplaceTheme($id: String!) {
|
|
5020
5020
|
bundles(ids: [$id]) {
|
|
@@ -5023,14 +5023,14 @@ const $ = new en(), ga = I`
|
|
|
5023
5023
|
}
|
|
5024
5024
|
}
|
|
5025
5025
|
}
|
|
5026
|
-
`, In =
|
|
5026
|
+
`, In = D`
|
|
5027
5027
|
mutation CreateOrder($orderItems: [OrderItemInput]!) {
|
|
5028
5028
|
orderCreate(orderItems: $orderItems, paid: false, generateInternalId: true) {
|
|
5029
5029
|
id
|
|
5030
5030
|
internalId
|
|
5031
5031
|
}
|
|
5032
5032
|
}
|
|
5033
|
-
`,
|
|
5033
|
+
`, bt = [M.SilentIllustration, M.ProductOverlay], Fn = async (i) => {
|
|
5034
5034
|
const t = [];
|
|
5035
5035
|
i.introduction && t.push({
|
|
5036
5036
|
name: "Introduction",
|
|
@@ -5053,16 +5053,16 @@ const $ = new en(), ga = I`
|
|
|
5053
5053
|
t.push({
|
|
5054
5054
|
name: A.stepName,
|
|
5055
5055
|
title: A.stepTitle,
|
|
5056
|
-
renderableSteps:
|
|
5057
|
-
silentSteps:
|
|
5056
|
+
renderableSteps: bt.includes(A.type) ? [] : [A],
|
|
5057
|
+
silentSteps: bt.includes(A.type) ? [A] : []
|
|
5058
5058
|
});
|
|
5059
5059
|
else {
|
|
5060
5060
|
const n = t.find((s) => s.name === a.name);
|
|
5061
|
-
n ?
|
|
5061
|
+
n ? bt.includes(A.type) ? n.silentSteps.push(A) : n.renderableSteps.push(A) : t.push({
|
|
5062
5062
|
name: a.name,
|
|
5063
5063
|
title: a.name,
|
|
5064
|
-
renderableSteps:
|
|
5065
|
-
silentSteps:
|
|
5064
|
+
renderableSteps: bt.includes(A.type) ? [] : [A],
|
|
5065
|
+
silentSteps: bt.includes(A.type) ? [A] : []
|
|
5066
5066
|
});
|
|
5067
5067
|
}
|
|
5068
5068
|
}
|
|
@@ -5322,7 +5322,7 @@ const Zt = (i) => {
|
|
|
5322
5322
|
width: o[2],
|
|
5323
5323
|
height: o[3]
|
|
5324
5324
|
};
|
|
5325
|
-
},
|
|
5325
|
+
}, k = () => {
|
|
5326
5326
|
const i = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
|
|
5327
5327
|
return i() + i() + "-" + i() + "-" + i() + "-" + i() + "-" + i() + i() + i();
|
|
5328
5328
|
}, Yn = ({
|
|
@@ -5341,11 +5341,11 @@ const Zt = (i) => {
|
|
|
5341
5341
|
width: d
|
|
5342
5342
|
}) => {
|
|
5343
5343
|
var p;
|
|
5344
|
-
const B = e || 0, h = 2 * ((r == null ? void 0 : r.scale) || 1), C = g || { x: 0, y: 0, width: d, height: n }, w = `${C.x} ${C.y} ${C.width} ${C.height}`, u =
|
|
5344
|
+
const B = e || 0, h = 2 * ((r == null ? void 0 : r.scale) || 1), C = g || { x: 0, y: 0, width: d, height: n }, w = `${C.x} ${C.y} ${C.width} ${C.height}`, u = k(), E = A.purpose === Jt.FreeDesign && /* @__PURE__ */ v("defs", { children: /* @__PURE__ */ v("clipPath", { id: "viewboxClip", children: /* @__PURE__ */ v("rect", { width: C.width, height: C.height, rx: B }) }) }), m = (p = A.colorProfiles) == null ? void 0 : p.map((I, y) => (
|
|
5345
5345
|
/* @ts-ignore */
|
|
5346
|
-
/* @__PURE__ */ v("color-profile", { name:
|
|
5347
|
-
)), f = a.map((
|
|
5348
|
-
...
|
|
5346
|
+
/* @__PURE__ */ v("color-profile", { name: I.name, xlinkHref: I.key, children: " " }, y)
|
|
5347
|
+
)), f = a.map((I) => ({
|
|
5348
|
+
...I,
|
|
5349
5349
|
_renderingConfiguration: A,
|
|
5350
5350
|
mask: r ? `url(#viewmask-${u})` : void 0
|
|
5351
5351
|
})), Q = BA(f);
|
|
@@ -5385,7 +5385,7 @@ const Zt = (i) => {
|
|
|
5385
5385
|
{
|
|
5386
5386
|
id: "element-group",
|
|
5387
5387
|
clipPath: A.purpose === Jt.FreeDesign ? "url(#viewboxClip)" : void 0,
|
|
5388
|
-
children: Q.map((
|
|
5388
|
+
children: Q.map((I) => ya(I)).filter((I) => !!I)
|
|
5389
5389
|
}
|
|
5390
5390
|
),
|
|
5391
5391
|
r && /* @__PURE__ */ v(
|
|
@@ -5426,7 +5426,7 @@ const Zt = (i) => {
|
|
|
5426
5426
|
]
|
|
5427
5427
|
}
|
|
5428
5428
|
);
|
|
5429
|
-
},
|
|
5429
|
+
}, Jr = (i, t, e, A, a) => {
|
|
5430
5430
|
const n = dt(a), s = e / 2, o = A / 2, r = i + s, c = t + o, l = Math.sin(n), g = Math.cos(n), d = s, B = s, h = -o, C = o, w = d * g - h * l, u = B * g - C * l, E = d * l + h * g, m = B * l + C * g, f = Math.max(Math.abs(w), Math.abs(u)), Q = Math.max(Math.abs(E), Math.abs(m));
|
|
5431
5431
|
return {
|
|
5432
5432
|
minX: r - f,
|
|
@@ -5434,25 +5434,25 @@ const Zt = (i) => {
|
|
|
5434
5434
|
minY: c - Q,
|
|
5435
5435
|
maxY: c + Q
|
|
5436
5436
|
};
|
|
5437
|
-
},
|
|
5437
|
+
}, Lr = (i, t, e) => {
|
|
5438
5438
|
const A = Math.sqrt(Math.pow(t.x - i.x, 2) + Math.pow(t.y - i.y, 2)), a = Math.sqrt(Math.pow(t.x - e.x, 2) + Math.pow(t.y - e.y, 2)), n = Math.sqrt(Math.pow(e.x - i.x, 2) + Math.pow(e.y - i.y, 2));
|
|
5439
5439
|
return Math.acos((a * a + A * A - n * n) / (2 * a * A)) * (180 / Math.PI);
|
|
5440
|
-
}, dt = (i) => i * (Math.PI / 180),
|
|
5440
|
+
}, dt = (i) => i * (Math.PI / 180), Or = (i, t, e) => Math.abs(i - t) < e, zr = (i, t, e) => {
|
|
5441
5441
|
const A = Math.sin(dt(e)), a = Math.cos(dt(e));
|
|
5442
5442
|
return {
|
|
5443
5443
|
x: (i.x - t.x) * a - (i.y - t.y) * A + t.x,
|
|
5444
5444
|
y: (i.x - t.x) * A + (i.y - t.y) * a + t.y
|
|
5445
5445
|
};
|
|
5446
|
-
},
|
|
5446
|
+
}, jr = (i, t) => ({
|
|
5447
5447
|
x: (i.x + t.x) / 2,
|
|
5448
5448
|
y: (i.y + t.y) / 2
|
|
5449
|
-
}),
|
|
5449
|
+
}), Kr = (i, t, e, A) => ({
|
|
5450
5450
|
x: i.x + (t == null ? void 0 : t.x) * e,
|
|
5451
5451
|
y: i.y + (t == null ? void 0 : t.y) * A
|
|
5452
|
-
}),
|
|
5452
|
+
}), Vr = (i, t, e, A) => ({
|
|
5453
5453
|
x: i.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5454
5454
|
y: i.y + (t == null ? void 0 : t.y) * A
|
|
5455
|
-
}),
|
|
5455
|
+
}), Wr = (i, t, e, A) => ({
|
|
5456
5456
|
x: i.x + ((t == null ? void 0 : t.x) + (t == null ? void 0 : t.width)) * e,
|
|
5457
5457
|
y: i.y + ((t == null ? void 0 : t.y) + (t == null ? void 0 : t.height)) * A
|
|
5458
5458
|
}), Dt = (i) => {
|
|
@@ -5474,7 +5474,7 @@ const Zt = (i) => {
|
|
|
5474
5474
|
case V.Southwest:
|
|
5475
5475
|
return V.Northwest;
|
|
5476
5476
|
}
|
|
5477
|
-
},
|
|
5477
|
+
}, Xr = (i, t) => t > 45 && t <= 135 ? Dt(i) : t > 135 && t <= 225 ? Dt(Dt(i)) : t > 225 && t <= 315 ? Dt(Dt(Dt(i))) : i, qr = (i, t = { x: 0, y: 0 }, e = { x: 1, y: 1 }) => {
|
|
5478
5478
|
const A = dt(i.rotation), a = {
|
|
5479
5479
|
x: t.x + i.x * e.x,
|
|
5480
5480
|
y: t.x + i.y * e.y
|
|
@@ -5504,7 +5504,7 @@ const Zt = (i) => {
|
|
|
5504
5504
|
x: (i.x - t.x) * a - (i.y - t.y) * A + t.x,
|
|
5505
5505
|
y: (i.x - t.x) * A + (i.y - t.y) * a + t.y
|
|
5506
5506
|
};
|
|
5507
|
-
},
|
|
5507
|
+
}, Zr = 0.352778, $r = 0.035277, Qa = (i) => {
|
|
5508
5508
|
const t = i.rotation || 0, e = dt(t), A = Math.cos(e), a = -Math.sin(e);
|
|
5509
5509
|
return /* @__PURE__ */ v("g", { mask: i.stepName || i.productOverlay ? void 0 : i.mask, children: /* @__PURE__ */ v(
|
|
5510
5510
|
"g",
|
|
@@ -5590,11 +5590,11 @@ const Zt = (i) => {
|
|
|
5590
5590
|
/* @__PURE__ */ v("feFuncB", { type: "discrete", tableValues: a() })
|
|
5591
5591
|
] })
|
|
5592
5592
|
] }) }) }), s = i.rotation || 0, o = dt(s), r = Math.cos(o), c = -Math.sin(o), l = () => {
|
|
5593
|
-
var m, f, Q, p,
|
|
5594
|
-
const g = ((m = i.pattern) == null ? void 0 : m.x) || 0, d = ((f = i.pattern) == null ? void 0 : f.y) || 0, B = ((Q = i.pattern) == null ? void 0 : Q.width) || 0, h = ((p = i.pattern) == null ? void 0 : p.height) || 0, C = ((
|
|
5593
|
+
var m, f, Q, p, I, y, S, x, Y, P;
|
|
5594
|
+
const g = ((m = i.pattern) == null ? void 0 : m.x) || 0, d = ((f = i.pattern) == null ? void 0 : f.y) || 0, B = ((Q = i.pattern) == null ? void 0 : Q.width) || 0, h = ((p = i.pattern) == null ? void 0 : p.height) || 0, C = ((I = i.pattern) == null ? void 0 : I.scaleX) || 1, w = ((y = i.pattern) == null ? void 0 : y.scaleY) || 1, u = ((S = i.pattern) == null ? void 0 : S.rotation) || 0;
|
|
5595
5595
|
return [(x = i.pattern) != null && x.svg ? {
|
|
5596
5596
|
id: `${t}-contents`,
|
|
5597
|
-
type:
|
|
5597
|
+
type: b.Illustration,
|
|
5598
5598
|
x: g,
|
|
5599
5599
|
y: d,
|
|
5600
5600
|
rotation: u,
|
|
@@ -5605,7 +5605,7 @@ const Zt = (i) => {
|
|
|
5605
5605
|
colors: (P = i.pattern) == null ? void 0 : P.colors
|
|
5606
5606
|
} : {
|
|
5607
5607
|
id: `${t}-contents`,
|
|
5608
|
-
type:
|
|
5608
|
+
type: b.Image,
|
|
5609
5609
|
x: g,
|
|
5610
5610
|
y: d,
|
|
5611
5611
|
rotation: u,
|
|
@@ -5701,9 +5701,9 @@ class vn {
|
|
|
5701
5701
|
}), A - a;
|
|
5702
5702
|
}
|
|
5703
5703
|
}
|
|
5704
|
-
const Nn = (i) => i.substring(0, 5).toLowerCase().trim() === "data:",
|
|
5705
|
-
if (
|
|
5706
|
-
return
|
|
5704
|
+
const Nn = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", be = /* @__PURE__ */ new Map(), Pt = async (i) => {
|
|
5705
|
+
if (be.has(i))
|
|
5706
|
+
return be.get(i);
|
|
5707
5707
|
const e = (async () => {
|
|
5708
5708
|
try {
|
|
5709
5709
|
return mt(i).getFont();
|
|
@@ -5717,7 +5717,7 @@ const Nn = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", ke = /* @_
|
|
|
5717
5717
|
}
|
|
5718
5718
|
}
|
|
5719
5719
|
})();
|
|
5720
|
-
return
|
|
5720
|
+
return be.set(i, e), e;
|
|
5721
5721
|
}, lA = (i) => {
|
|
5722
5722
|
const t = _A(i), e = Le.parse(t);
|
|
5723
5723
|
return Ze(i, e), e;
|
|
@@ -5729,7 +5729,7 @@ const Nn = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", ke = /* @_
|
|
|
5729
5729
|
}, Ze = (i, t) => {
|
|
5730
5730
|
const e = new vn(t);
|
|
5731
5731
|
return Da.set(i, e), e;
|
|
5732
|
-
},
|
|
5732
|
+
}, _r = async (i) => {
|
|
5733
5733
|
const t = ot(), e = t.parseFromString(i, "image/svg+xml"), A = e.firstElementChild, a = /* @__PURE__ */ new Map();
|
|
5734
5734
|
A.querySelectorAll("style").forEach((l) => {
|
|
5735
5735
|
var d;
|
|
@@ -5805,10 +5805,10 @@ const Nn = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", ke = /* @_
|
|
|
5805
5805
|
if (r < 0)
|
|
5806
5806
|
throw new Error(`No max width calculated for text: ${o}.`);
|
|
5807
5807
|
return { lines: o, width: r };
|
|
5808
|
-
},
|
|
5808
|
+
}, bn = (i, t, e, A, a, n) => {
|
|
5809
5809
|
const s = (n ?? gA) * t.getApproximateHeight(), o = 1 / e.unitsPerEm, r = Ia(i, o, t), c = i.length * s * o, l = A / r, g = a / c;
|
|
5810
5810
|
return Math.min(g, l);
|
|
5811
|
-
},
|
|
5811
|
+
}, kn = (i, t, e, A) => {
|
|
5812
5812
|
var c;
|
|
5813
5813
|
const a = mt(t.fontData.assetUrl), n = a.getFont(), s = t.fontSize / n.unitsPerEm;
|
|
5814
5814
|
if (!e)
|
|
@@ -5828,14 +5828,14 @@ const Nn = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", ke = /* @_
|
|
|
5828
5828
|
lines: o,
|
|
5829
5829
|
requiredHeight: t.height,
|
|
5830
5830
|
requiredWidth: he(o, t.width, s, a),
|
|
5831
|
-
fontSize:
|
|
5831
|
+
fontSize: bn(o, a, n, t.width, t.height, A)
|
|
5832
5832
|
} : vA(t, i, t.fontSize, s, a, A);
|
|
5833
|
-
},
|
|
5833
|
+
}, Rn = (i, t, e, A, a) => {
|
|
5834
5834
|
const s = mt(t.assetUrl).getFont();
|
|
5835
5835
|
let o = { ...i };
|
|
5836
5836
|
const r = { ...i }, c = Ia(A, e / s.unitsPerEm, mt(t.assetUrl));
|
|
5837
5837
|
return c && c < o.width && (r.width = c, a === "left" ? (r.left += Math.sin(o.rotation * Math.PI / 360) * (o.width - c), r.top += Math.sin(o.rotation * Math.PI / 180) * (c - o.width) / 2) : a === "right" ? r.left += o.width - c : r.left += (o.width - c) / 2, A && Un(A, A).every(([l, g]) => l === g) && (o = r)), o;
|
|
5838
|
-
},
|
|
5838
|
+
}, ke = 1, ct = (i, t, e) => {
|
|
5839
5839
|
let A = 0;
|
|
5840
5840
|
const a = e.getGlyphs(i);
|
|
5841
5841
|
return a.forEach((n, s) => {
|
|
@@ -5871,7 +5871,7 @@ const Nn = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", ke = /* @_
|
|
|
5871
5871
|
...i,
|
|
5872
5872
|
...(() => {
|
|
5873
5873
|
if (i.algorithm === xt.Traditional) {
|
|
5874
|
-
const a =
|
|
5874
|
+
const a = kn(t, i, e, i.lineHeight);
|
|
5875
5875
|
return {
|
|
5876
5876
|
text: a.lines.join(`
|
|
5877
5877
|
`),
|
|
@@ -6037,7 +6037,7 @@ const Nn = (i) => i.substring(0, 5).toLowerCase().trim() === "data:", ke = /* @_
|
|
|
6037
6037
|
};
|
|
6038
6038
|
class zn {
|
|
6039
6039
|
constructor() {
|
|
6040
|
-
this.id =
|
|
6040
|
+
this.id = k(), this.stateCallbacks = [], this.prevCommands = [], this.nextCommands = [];
|
|
6041
6041
|
}
|
|
6042
6042
|
registerStateCallback(t) {
|
|
6043
6043
|
this.stateCallbacks.push(t);
|
|
@@ -6127,7 +6127,7 @@ class zn {
|
|
|
6127
6127
|
return { ...t, transaction: e.apply(A) };
|
|
6128
6128
|
}
|
|
6129
6129
|
}
|
|
6130
|
-
const ya = (i) => i.type ===
|
|
6130
|
+
const ya = (i) => i.type === b.Image ? /* @__PURE__ */ v(Qa, { ...i }, i.id) : i.type === b.Frame ? /* @__PURE__ */ v(Pn, { ...i }, i.id) : i.type === b.Illustration ? /* @__PURE__ */ v(On, { ...i }, i.id) : i.type === b.Textbox ? /* @__PURE__ */ v(Tn, { ...i }, i.id) : i.type === b.Group ? /* @__PURE__ */ v(pa, { ...i }, i.id) : null, dA = (i, t, e) => {
|
|
6131
6131
|
const A = e.renderingConfiguration, a = A != null && A.removeExcludedElements ? t.filter((n) => !n.excludeFromExport) : t;
|
|
6132
6132
|
return /* @__PURE__ */ v(
|
|
6133
6133
|
Yn,
|
|
@@ -6169,16 +6169,16 @@ function BA(i) {
|
|
|
6169
6169
|
return n < s ? -1 : n > s ? 1 : 0;
|
|
6170
6170
|
});
|
|
6171
6171
|
}
|
|
6172
|
-
const
|
|
6172
|
+
const kt = (i, t) => {
|
|
6173
6173
|
const e = i.layoutState.elements.filter((a) => a.layer === t), A = Math.max(...e.map((a) => a.layerIndex).filter((a) => a !== void 0));
|
|
6174
6174
|
return Math.max(A, 0) + 1;
|
|
6175
6175
|
}, Ma = async (i) => new Promise((t) => {
|
|
6176
6176
|
_(i).then((e) => {
|
|
6177
6177
|
t(e);
|
|
6178
6178
|
}).catch((e) => console.error(e));
|
|
6179
|
-
}),
|
|
6180
|
-
if (
|
|
6181
|
-
return
|
|
6179
|
+
}), Re = /* @__PURE__ */ new Map(), jt = async (i) => {
|
|
6180
|
+
if (Re.has(i))
|
|
6181
|
+
return Re.get(i);
|
|
6182
6182
|
const t = async (a) => new Promise((n, s) => {
|
|
6183
6183
|
try {
|
|
6184
6184
|
if (!(!!URL && !!URL.createObjectURL))
|
|
@@ -6210,8 +6210,8 @@ const Rt = (i, t) => {
|
|
|
6210
6210
|
g.resize(h, h);
|
|
6211
6211
|
return await g.render(), await t(c);
|
|
6212
6212
|
})();
|
|
6213
|
-
return
|
|
6214
|
-
},
|
|
6213
|
+
return Re.set(i, A), A;
|
|
6214
|
+
}, Rt = async (i, t, e, A) => {
|
|
6215
6215
|
const a = i.layoutState.layout.useEditableArea && i.layoutState.layout.editableArea || {
|
|
6216
6216
|
width: i.layoutState.layout.width,
|
|
6217
6217
|
height: i.layoutState.layout.height,
|
|
@@ -6225,42 +6225,42 @@ const Rt = (i, t) => {
|
|
|
6225
6225
|
rotation: 0,
|
|
6226
6226
|
panelId: i.layoutState.layout.panelId
|
|
6227
6227
|
};
|
|
6228
|
-
if (e && t ===
|
|
6228
|
+
if (e && t === b.Illustration) {
|
|
6229
6229
|
const r = await gt(await Ma(e)), d = ot().parseFromString(r.svg, "image/svg+xml").firstElementChild.getAttribute("viewBox");
|
|
6230
6230
|
if (!d)
|
|
6231
6231
|
throw new Error("SVG missing viewBox.");
|
|
6232
6232
|
const B = o.height, h = d.split(" "), C = parseFloat(h[2]) || 1, w = parseFloat(h[3]) || 1, u = C / w;
|
|
6233
6233
|
o.height = o.width / u, o.top += (B - o.height) / 2;
|
|
6234
6234
|
}
|
|
6235
|
-
if (e && t ===
|
|
6235
|
+
if (e && t === b.Image) {
|
|
6236
6236
|
const r = o.height, c = await Qe(e), l = await pe(c), g = l.width / l.height;
|
|
6237
6237
|
o.height = o.width / g, o.top += (r - o.height) / 2;
|
|
6238
6238
|
}
|
|
6239
|
-
if (e && t ===
|
|
6239
|
+
if (e && t === b.Textbox && (A != null && A.text) && (A != null && A.fontScale)) {
|
|
6240
6240
|
await Pt(e);
|
|
6241
6241
|
const r = mt(e), c = ct(A.text, A == null ? void 0 : A.fontScale, r);
|
|
6242
6242
|
o.width = Math.min(c, a.width * 0.85), o.left = a.x + a.width / 2 - o.width / 2;
|
|
6243
6243
|
}
|
|
6244
6244
|
return o;
|
|
6245
6245
|
};
|
|
6246
|
-
class
|
|
6246
|
+
class tc {
|
|
6247
6247
|
static async getFrame(t, e) {
|
|
6248
|
-
const A = await Ea(e.region, e.src), a = await Fe(A), n = e.region || await
|
|
6248
|
+
const A = await Ea(e.region, e.src), a = await Fe(A), n = e.region || await Rt(t, b.Frame);
|
|
6249
6249
|
return {
|
|
6250
|
-
id:
|
|
6250
|
+
id: k(),
|
|
6251
6251
|
x: n.left,
|
|
6252
6252
|
y: n.top,
|
|
6253
6253
|
width: n.width,
|
|
6254
6254
|
height: n.height,
|
|
6255
6255
|
layer: n.layer || 0,
|
|
6256
|
-
layerIndex: n.layerIndex ||
|
|
6256
|
+
layerIndex: n.layerIndex || kt(t, n.layer || 0),
|
|
6257
6257
|
rotation: n.rotation,
|
|
6258
6258
|
scaleX: n.width / a.width,
|
|
6259
6259
|
scaleY: n.height / a.height,
|
|
6260
6260
|
path: a.path,
|
|
6261
6261
|
dataWidth: a.width,
|
|
6262
6262
|
dataHeight: a.height,
|
|
6263
|
-
type:
|
|
6263
|
+
type: b.Frame,
|
|
6264
6264
|
disablePlaceholder: e.configuration.disablePlaceholder,
|
|
6265
6265
|
focalBlur: e.configuration.focalBlur,
|
|
6266
6266
|
focalBlurStrength: e.configuration.focalBlurStrength,
|
|
@@ -6271,18 +6271,18 @@ class _r {
|
|
|
6271
6271
|
};
|
|
6272
6272
|
}
|
|
6273
6273
|
static async getImage(t, e) {
|
|
6274
|
-
const A = e.region || await
|
|
6274
|
+
const A = e.region || await Rt(t, b.Image, e.src);
|
|
6275
6275
|
return {
|
|
6276
|
-
id:
|
|
6276
|
+
id: k(),
|
|
6277
6277
|
src: e.src,
|
|
6278
|
-
type:
|
|
6278
|
+
type: b.Image,
|
|
6279
6279
|
y: A.top,
|
|
6280
6280
|
x: A.left,
|
|
6281
6281
|
rotation: A.rotation,
|
|
6282
6282
|
width: A.width,
|
|
6283
6283
|
height: A.height,
|
|
6284
6284
|
layer: A.layer || 0,
|
|
6285
|
-
layerIndex: A.layerIndex ||
|
|
6285
|
+
layerIndex: A.layerIndex || kt(t, A.layer || 0),
|
|
6286
6286
|
immutable: A.immutable,
|
|
6287
6287
|
preserveAspectRatio: "none"
|
|
6288
6288
|
};
|
|
@@ -6295,13 +6295,13 @@ class _r {
|
|
|
6295
6295
|
}, r = (n == null ? void 0 : n.text) || A.defaultText || "", c = A.replaceableText ? A.replaceableText.replace("{{}}", r) : r, l = Ce(c, {
|
|
6296
6296
|
vertical: A.vertical,
|
|
6297
6297
|
uppercase: A.uppercase
|
|
6298
|
-
}), g = e.region || await
|
|
6298
|
+
}), g = e.region || await Rt(t, b.Textbox, a, {
|
|
6299
6299
|
text: l,
|
|
6300
6300
|
fontScale: A.size ? A.size / s.unitsPerEm : void 0
|
|
6301
6301
|
}), d = $t(
|
|
6302
6302
|
{
|
|
6303
|
-
id:
|
|
6304
|
-
type:
|
|
6303
|
+
id: k(),
|
|
6304
|
+
type: b.Textbox,
|
|
6305
6305
|
x: g.left,
|
|
6306
6306
|
y: g.top,
|
|
6307
6307
|
width: g.width,
|
|
@@ -6311,7 +6311,7 @@ class _r {
|
|
|
6311
6311
|
fill: (n == null ? void 0 : n.color) || A.colour || "#000000",
|
|
6312
6312
|
fontData: o,
|
|
6313
6313
|
layer: g.layer || 0,
|
|
6314
|
-
layerIndex: g.layerIndex ||
|
|
6314
|
+
layerIndex: g.layerIndex || kt(t, g.layer || 0),
|
|
6315
6315
|
paths: A.paths,
|
|
6316
6316
|
rotation: g.rotation,
|
|
6317
6317
|
vertical: A.vertical,
|
|
@@ -6322,7 +6322,7 @@ class _r {
|
|
|
6322
6322
|
input: r
|
|
6323
6323
|
},
|
|
6324
6324
|
l
|
|
6325
|
-
), B =
|
|
6325
|
+
), B = Rn(
|
|
6326
6326
|
{ ...g, height: d.height },
|
|
6327
6327
|
o,
|
|
6328
6328
|
d.fontSize,
|
|
@@ -6361,25 +6361,25 @@ class _r {
|
|
|
6361
6361
|
</svg>
|
|
6362
6362
|
`, a = {};
|
|
6363
6363
|
a["spiff-fill-shape"] = { browserValue: e.color };
|
|
6364
|
-
const n = e.region || await
|
|
6364
|
+
const n = e.region || await Rt(t, b.Illustration), s = k();
|
|
6365
6365
|
return {
|
|
6366
6366
|
stepRegion: e.region,
|
|
6367
6367
|
colors: a,
|
|
6368
6368
|
id: s,
|
|
6369
6369
|
svg: A,
|
|
6370
|
-
type:
|
|
6370
|
+
type: b.Illustration,
|
|
6371
6371
|
y: n.top,
|
|
6372
6372
|
x: n.left,
|
|
6373
6373
|
rotation: n.rotation,
|
|
6374
6374
|
width: n.width,
|
|
6375
6375
|
height: n.height,
|
|
6376
6376
|
layer: n.layer || 0,
|
|
6377
|
-
layerIndex: n.layerIndex ||
|
|
6377
|
+
layerIndex: n.layerIndex || kt(t, n.layer || 0),
|
|
6378
6378
|
immutable: n.immutable
|
|
6379
6379
|
};
|
|
6380
6380
|
}
|
|
6381
6381
|
static async getIllustration(t, e) {
|
|
6382
|
-
const A = e.region || await
|
|
6382
|
+
const A = e.region || await Rt(t, b.Illustration, e.src), a = await gt(await Ma(e.src)), n = await jt(a.svg), s = k();
|
|
6383
6383
|
return {
|
|
6384
6384
|
cachedObjectURL: n,
|
|
6385
6385
|
stepRegion: e.region,
|
|
@@ -6387,14 +6387,14 @@ class _r {
|
|
|
6387
6387
|
id: s,
|
|
6388
6388
|
src: e.src,
|
|
6389
6389
|
svg: a.svg,
|
|
6390
|
-
type:
|
|
6390
|
+
type: b.Illustration,
|
|
6391
6391
|
y: A.top,
|
|
6392
6392
|
x: A.left,
|
|
6393
6393
|
rotation: A.rotation,
|
|
6394
6394
|
width: A.width,
|
|
6395
6395
|
height: A.height,
|
|
6396
6396
|
layer: A.layer || 0,
|
|
6397
|
-
layerIndex: A.layerIndex ||
|
|
6397
|
+
layerIndex: A.layerIndex || kt(t, A.layer || 0),
|
|
6398
6398
|
immutable: A.immutable
|
|
6399
6399
|
};
|
|
6400
6400
|
}
|
|
@@ -6414,9 +6414,9 @@ const J = (i, t) => Z(i, t).elements.find((a) => a.id === i), Z = (i, t) => {
|
|
|
6414
6414
|
return {
|
|
6415
6415
|
layout: t.layout,
|
|
6416
6416
|
elements: A,
|
|
6417
|
-
modificationID:
|
|
6417
|
+
modificationID: k()
|
|
6418
6418
|
};
|
|
6419
|
-
},
|
|
6419
|
+
}, bA = async (i) => {
|
|
6420
6420
|
var A;
|
|
6421
6421
|
const t = [...Object.keys(i.layouts)], e = [...new Set(t)];
|
|
6422
6422
|
for (let a = 0; a < e.length; a++) {
|
|
@@ -6448,7 +6448,7 @@ const J = (i, t) => Z(i, t).elements.find((a) => a.id === i), Z = (i, t) => {
|
|
|
6448
6448
|
}
|
|
6449
6449
|
for (const a in i.layouts) {
|
|
6450
6450
|
const n = i.layouts[a].elements.filter(
|
|
6451
|
-
(o) => o.type ===
|
|
6451
|
+
(o) => o.type === b.Illustration
|
|
6452
6452
|
);
|
|
6453
6453
|
for (let o = 0; o < n.length; ++o) {
|
|
6454
6454
|
const r = n[o];
|
|
@@ -6460,7 +6460,7 @@ const J = (i, t) => Z(i, t).elements.find((a) => a.id === i), Z = (i, t) => {
|
|
|
6460
6460
|
}
|
|
6461
6461
|
}
|
|
6462
6462
|
const s = i.layouts[a].elements.filter(
|
|
6463
|
-
(o) => o.type ===
|
|
6463
|
+
(o) => o.type === b.Textbox
|
|
6464
6464
|
);
|
|
6465
6465
|
for (let o = 0; o < s.length; ++o) {
|
|
6466
6466
|
const r = s[o];
|
|
@@ -6478,7 +6478,7 @@ class T {
|
|
|
6478
6478
|
this.oldState = t;
|
|
6479
6479
|
}
|
|
6480
6480
|
}
|
|
6481
|
-
class
|
|
6481
|
+
class kA extends T {
|
|
6482
6482
|
constructor(t) {
|
|
6483
6483
|
super(), this.serializableWorkflow = t;
|
|
6484
6484
|
}
|
|
@@ -6489,7 +6489,7 @@ class RA extends T {
|
|
|
6489
6489
|
};
|
|
6490
6490
|
}
|
|
6491
6491
|
}
|
|
6492
|
-
class
|
|
6492
|
+
class ec extends T {
|
|
6493
6493
|
constructor(t, e, A) {
|
|
6494
6494
|
super(), this.id = t, this.x = e, this.y = A;
|
|
6495
6495
|
}
|
|
@@ -6512,7 +6512,7 @@ class tc extends T {
|
|
|
6512
6512
|
};
|
|
6513
6513
|
}
|
|
6514
6514
|
}
|
|
6515
|
-
class
|
|
6515
|
+
class Ac extends T {
|
|
6516
6516
|
constructor(t, e) {
|
|
6517
6517
|
super(), this.id = t, this.angle = e;
|
|
6518
6518
|
}
|
|
@@ -6534,7 +6534,7 @@ class ec extends T {
|
|
|
6534
6534
|
};
|
|
6535
6535
|
}
|
|
6536
6536
|
}
|
|
6537
|
-
class
|
|
6537
|
+
class ac extends T {
|
|
6538
6538
|
constructor(t, e, A) {
|
|
6539
6539
|
super(), this.id = t, this.width = Math.abs(e), this.height = Math.abs(A);
|
|
6540
6540
|
}
|
|
@@ -6585,7 +6585,7 @@ class Sa extends T {
|
|
|
6585
6585
|
[this.layout.id]: {
|
|
6586
6586
|
elements: [],
|
|
6587
6587
|
layout: { ...this.layout },
|
|
6588
|
-
modificationID:
|
|
6588
|
+
modificationID: k()
|
|
6589
6589
|
}
|
|
6590
6590
|
}
|
|
6591
6591
|
};
|
|
@@ -6616,7 +6616,7 @@ class j extends T {
|
|
|
6616
6616
|
[this.layout.id]: {
|
|
6617
6617
|
...t.layouts[this.layout.id],
|
|
6618
6618
|
elements: o,
|
|
6619
|
-
modificationID:
|
|
6619
|
+
modificationID: k()
|
|
6620
6620
|
}
|
|
6621
6621
|
}
|
|
6622
6622
|
};
|
|
@@ -6637,7 +6637,7 @@ class j extends T {
|
|
|
6637
6637
|
[this.layout.id]: {
|
|
6638
6638
|
...t.layouts[this.layout.id],
|
|
6639
6639
|
elements: s,
|
|
6640
|
-
modificationID:
|
|
6640
|
+
modificationID: k()
|
|
6641
6641
|
}
|
|
6642
6642
|
}
|
|
6643
6643
|
};
|
|
@@ -6661,7 +6661,7 @@ class ft extends T {
|
|
|
6661
6661
|
const A = Object.values(t.layouts).map((n) => (n.elements.filter((o) => o.id !== this.id).length !== n.elements.length && (e = !0), {
|
|
6662
6662
|
...n,
|
|
6663
6663
|
elements: n.elements.filter((o) => o.id !== this.id),
|
|
6664
|
-
modificationID:
|
|
6664
|
+
modificationID: k()
|
|
6665
6665
|
}));
|
|
6666
6666
|
e || console.log(`Failed to delete element ${this.id}`);
|
|
6667
6667
|
const a = {};
|
|
@@ -6741,7 +6741,7 @@ class Kn extends T {
|
|
|
6741
6741
|
};
|
|
6742
6742
|
}
|
|
6743
6743
|
}
|
|
6744
|
-
class
|
|
6744
|
+
class RA extends T {
|
|
6745
6745
|
constructor(t, e) {
|
|
6746
6746
|
super(), this.id = t, this.fontData = e;
|
|
6747
6747
|
}
|
|
@@ -6810,7 +6810,7 @@ class Wn extends T {
|
|
|
6810
6810
|
const s = {
|
|
6811
6811
|
...e,
|
|
6812
6812
|
elements: n,
|
|
6813
|
-
modificationID:
|
|
6813
|
+
modificationID: k()
|
|
6814
6814
|
};
|
|
6815
6815
|
return {
|
|
6816
6816
|
...t,
|
|
@@ -6846,7 +6846,7 @@ class Xn extends T {
|
|
|
6846
6846
|
};
|
|
6847
6847
|
}
|
|
6848
6848
|
}
|
|
6849
|
-
class
|
|
6849
|
+
class ic extends T {
|
|
6850
6850
|
constructor(t, e) {
|
|
6851
6851
|
super(), this.id = t, this.src = e;
|
|
6852
6852
|
}
|
|
@@ -6942,7 +6942,7 @@ class Zn extends T {
|
|
|
6942
6942
|
};
|
|
6943
6943
|
}
|
|
6944
6944
|
}
|
|
6945
|
-
class
|
|
6945
|
+
class nc extends T {
|
|
6946
6946
|
/**
|
|
6947
6947
|
* @param id The targeted element to bring to the front.
|
|
6948
6948
|
*/
|
|
@@ -6965,13 +6965,13 @@ class ic extends T {
|
|
|
6965
6965
|
[A.layout.id]: {
|
|
6966
6966
|
...t.layouts[A.layout.id],
|
|
6967
6967
|
elements: n,
|
|
6968
|
-
modificationID:
|
|
6968
|
+
modificationID: k()
|
|
6969
6969
|
}
|
|
6970
6970
|
}
|
|
6971
6971
|
};
|
|
6972
6972
|
}
|
|
6973
6973
|
}
|
|
6974
|
-
class
|
|
6974
|
+
class sc extends T {
|
|
6975
6975
|
/**
|
|
6976
6976
|
* @param id The targeted element to bring to the back.
|
|
6977
6977
|
*/
|
|
@@ -6996,13 +6996,13 @@ class nc extends T {
|
|
|
6996
6996
|
[A.layout.id]: {
|
|
6997
6997
|
...t.layouts[A.layout.id],
|
|
6998
6998
|
elements: n,
|
|
6999
|
-
modificationID:
|
|
6999
|
+
modificationID: k()
|
|
7000
7000
|
}
|
|
7001
7001
|
}
|
|
7002
7002
|
};
|
|
7003
7003
|
}
|
|
7004
7004
|
}
|
|
7005
|
-
class
|
|
7005
|
+
class oc extends T {
|
|
7006
7006
|
/**
|
|
7007
7007
|
* @param id The targeted element to bring to the front.
|
|
7008
7008
|
*/
|
|
@@ -7023,13 +7023,13 @@ class sc extends T {
|
|
|
7023
7023
|
[A.layout.id]: {
|
|
7024
7024
|
...t.layouts[A.layout.id],
|
|
7025
7025
|
elements: s,
|
|
7026
|
-
modificationID:
|
|
7026
|
+
modificationID: k()
|
|
7027
7027
|
}
|
|
7028
7028
|
}
|
|
7029
7029
|
};
|
|
7030
7030
|
}
|
|
7031
7031
|
}
|
|
7032
|
-
class
|
|
7032
|
+
class rc extends T {
|
|
7033
7033
|
/**
|
|
7034
7034
|
* @param id The targeted element to bring to the front.
|
|
7035
7035
|
*/
|
|
@@ -7050,7 +7050,7 @@ class oc extends T {
|
|
|
7050
7050
|
[A.layout.id]: {
|
|
7051
7051
|
...t.layouts[A.layout.id],
|
|
7052
7052
|
elements: s,
|
|
7053
|
-
modificationID:
|
|
7053
|
+
modificationID: k()
|
|
7054
7054
|
}
|
|
7055
7055
|
}
|
|
7056
7056
|
};
|
|
@@ -7306,13 +7306,13 @@ class HA {
|
|
|
7306
7306
|
throw new Be(this.configuration, "Couldn't find an asset for product overlay step");
|
|
7307
7307
|
}
|
|
7308
7308
|
const o = this.evaluateAssetType();
|
|
7309
|
-
if (o ===
|
|
7309
|
+
if (o === b.Image) {
|
|
7310
7310
|
const d = this.configuration.type === M.SilentIllustration ? (c = this.configuration.data.asset) == null ? void 0 : c.fileLink : (l = this.product) == null ? void 0 : l.overlayImageUrl;
|
|
7311
7311
|
if (!d)
|
|
7312
7312
|
throw new Error("Undefined raster silent step source");
|
|
7313
7313
|
const B = {
|
|
7314
7314
|
stepName: this.configuration.stepName,
|
|
7315
|
-
id:
|
|
7315
|
+
id: k(),
|
|
7316
7316
|
src: d,
|
|
7317
7317
|
type: o,
|
|
7318
7318
|
y: a.top,
|
|
@@ -7345,7 +7345,7 @@ class HA {
|
|
|
7345
7345
|
}).catch((E) => console.error(E));
|
|
7346
7346
|
}))()), C = {
|
|
7347
7347
|
stepName: this.configuration.stepName,
|
|
7348
|
-
id:
|
|
7348
|
+
id: k(),
|
|
7349
7349
|
cachedObjectURL: await jt(h.svg),
|
|
7350
7350
|
src: d,
|
|
7351
7351
|
svg: h.svg,
|
|
@@ -7390,7 +7390,7 @@ class HA {
|
|
|
7390
7390
|
evaluateAssetType() {
|
|
7391
7391
|
var e, A, a;
|
|
7392
7392
|
const t = this.configuration.type === M.ProductOverlay && ((e = this.product) != null && e.overlayImageUrl) ? this.product.overlayImageUrl.toLowerCase() : (a = (A = this.configuration.data.asset) == null ? void 0 : A.fileLink) == null ? void 0 : a.toLowerCase().split("?")[0];
|
|
7393
|
-
return t != null && t.startsWith("data:image/png") || t != null && t.endsWith(".jpeg") || t != null && t.endsWith(".jpg") || t != null && t.endsWith(".png") ?
|
|
7393
|
+
return t != null && t.startsWith("data:image/png") || t != null && t.endsWith(".jpeg") || t != null && t.endsWith(".jpg") || t != null && t.endsWith(".png") ? b.Image : (t != null && t.endsWith(".svg") || t != null && t.startsWith("image/svg+xml"), b.Illustration);
|
|
7394
7394
|
}
|
|
7395
7395
|
}
|
|
7396
7396
|
const ts = async (i) => {
|
|
@@ -7490,7 +7490,7 @@ class es {
|
|
|
7490
7490
|
}), l;
|
|
7491
7491
|
}
|
|
7492
7492
|
async regionElements(t) {
|
|
7493
|
-
const e = (A) => ({ id:
|
|
7493
|
+
const e = (A) => ({ id: k(), region: A });
|
|
7494
7494
|
return t.data.regions.map(e);
|
|
7495
7495
|
}
|
|
7496
7496
|
async command(t, e, A, a) {
|
|
@@ -7508,7 +7508,7 @@ class es {
|
|
|
7508
7508
|
stepName: a,
|
|
7509
7509
|
id: c.id,
|
|
7510
7510
|
src: o,
|
|
7511
|
-
type:
|
|
7511
|
+
type: b.Image,
|
|
7512
7512
|
y: l.top,
|
|
7513
7513
|
x: l.left,
|
|
7514
7514
|
width: l.width,
|
|
@@ -7675,7 +7675,7 @@ class As {
|
|
|
7675
7675
|
return new j(
|
|
7676
7676
|
{
|
|
7677
7677
|
id: t,
|
|
7678
|
-
type:
|
|
7678
|
+
type: b.Frame,
|
|
7679
7679
|
x: e.left,
|
|
7680
7680
|
y: e.top,
|
|
7681
7681
|
width: e.width,
|
|
@@ -7758,7 +7758,7 @@ class As {
|
|
|
7758
7758
|
const l = c.pmsValue.trim().toLocaleLowerCase();
|
|
7759
7759
|
n.includes(l) || n.push(l);
|
|
7760
7760
|
} else if (c.browserValue) {
|
|
7761
|
-
const l =
|
|
7761
|
+
const l = ki(c.browserValue);
|
|
7762
7762
|
n.includes(l) || n.push(l);
|
|
7763
7763
|
}
|
|
7764
7764
|
}
|
|
@@ -7817,7 +7817,7 @@ class As {
|
|
|
7817
7817
|
c && !t.data.forceImageCover ? { scale: c } : void 0,
|
|
7818
7818
|
t.data.forceImageCover
|
|
7819
7819
|
) : void 0, f = u ? {
|
|
7820
|
-
id:
|
|
7820
|
+
id: k(),
|
|
7821
7821
|
src: u.src,
|
|
7822
7822
|
x: (m == null ? void 0 : m.x) || 0,
|
|
7823
7823
|
y: (m == null ? void 0 : m.y) || 0,
|
|
@@ -7826,11 +7826,11 @@ class As {
|
|
|
7826
7826
|
scaleX: (m == null ? void 0 : m.zoom) || 1,
|
|
7827
7827
|
scaleY: (m == null ? void 0 : m.zoom) || 1,
|
|
7828
7828
|
rotation: 0
|
|
7829
|
-
} : void 0, Q =
|
|
7830
|
-
if (!
|
|
7829
|
+
} : void 0, Q = k(), I = a.getLayouts().find((y) => y.panelId === h.panelId);
|
|
7830
|
+
if (!I)
|
|
7831
7831
|
throw new W(h);
|
|
7832
7832
|
return {
|
|
7833
|
-
command: this.getCreateElementCommand(Q, h,
|
|
7833
|
+
command: this.getCreateElementCommand(Q, h, I, {
|
|
7834
7834
|
frameData: w,
|
|
7835
7835
|
pattern: f,
|
|
7836
7836
|
disablePlaceholder: t.data.disablePlaceholder,
|
|
@@ -7927,7 +7927,7 @@ class as {
|
|
|
7927
7927
|
src: a.src,
|
|
7928
7928
|
svg: a.svg.svg,
|
|
7929
7929
|
cachedObjectURL: a.objectURL,
|
|
7930
|
-
type:
|
|
7930
|
+
type: b.Illustration,
|
|
7931
7931
|
y: e.top,
|
|
7932
7932
|
x: e.left,
|
|
7933
7933
|
rotation: e.rotation,
|
|
@@ -8087,7 +8087,7 @@ class as {
|
|
|
8087
8087
|
const m = n.getLayouts().find((Q) => Q.panelId === E.panelId);
|
|
8088
8088
|
if (!m)
|
|
8089
8089
|
throw new W(E);
|
|
8090
|
-
const f =
|
|
8090
|
+
const f = k();
|
|
8091
8091
|
return {
|
|
8092
8092
|
regionElement: { id: f, region: E },
|
|
8093
8093
|
command: this.getCreateElementCommand(f, E, m, {
|
|
@@ -8338,7 +8338,7 @@ class ss {
|
|
|
8338
8338
|
return console.error("Missing configuration."), null;
|
|
8339
8339
|
A.updateStorage(t.stepName, { text: e }), A.updateMetadata(t.stepName, { text: e });
|
|
8340
8340
|
const c = (g, d, B) => {
|
|
8341
|
-
const h = B ||
|
|
8341
|
+
const h = B || k(), w = A.getLayouts().find((E) => E.panelId === d.panelId);
|
|
8342
8342
|
if (!w)
|
|
8343
8343
|
return console.error(`Can not find layout for region: ${d.panelId}`), null;
|
|
8344
8344
|
const u = [];
|
|
@@ -8350,7 +8350,7 @@ class ss {
|
|
|
8350
8350
|
colors: {},
|
|
8351
8351
|
id: h,
|
|
8352
8352
|
svg: g,
|
|
8353
|
-
type:
|
|
8353
|
+
type: b.Illustration,
|
|
8354
8354
|
y: d.top,
|
|
8355
8355
|
x: d.left,
|
|
8356
8356
|
rotation: d.rotation,
|
|
@@ -8468,7 +8468,7 @@ class os {
|
|
|
8468
8468
|
const B = A.getLayouts().find((C) => C.panelId === g.panelId);
|
|
8469
8469
|
if (!B)
|
|
8470
8470
|
throw new W(g);
|
|
8471
|
-
const h =
|
|
8471
|
+
const h = k();
|
|
8472
8472
|
return {
|
|
8473
8473
|
regionElement: { id: h, region: g },
|
|
8474
8474
|
command: new j(
|
|
@@ -8477,7 +8477,7 @@ class os {
|
|
|
8477
8477
|
stepRegion: g,
|
|
8478
8478
|
id: h,
|
|
8479
8479
|
src: s,
|
|
8480
|
-
type:
|
|
8480
|
+
type: b.Image,
|
|
8481
8481
|
y: g.top,
|
|
8482
8482
|
x: g.left,
|
|
8483
8483
|
rotation: g.rotation,
|
|
@@ -8507,7 +8507,7 @@ class os {
|
|
|
8507
8507
|
};
|
|
8508
8508
|
}
|
|
8509
8509
|
}
|
|
8510
|
-
const
|
|
8510
|
+
const ba = new os();
|
|
8511
8511
|
class rs {
|
|
8512
8512
|
async init(t, e, A) {
|
|
8513
8513
|
const a = t.option;
|
|
@@ -8566,7 +8566,7 @@ class rs {
|
|
|
8566
8566
|
};
|
|
8567
8567
|
}
|
|
8568
8568
|
}
|
|
8569
|
-
const
|
|
8569
|
+
const ka = new rs();
|
|
8570
8570
|
class cs {
|
|
8571
8571
|
constructor() {
|
|
8572
8572
|
this.shapeFillId = "spiff-fill-shape";
|
|
@@ -8697,7 +8697,7 @@ class cs {
|
|
|
8697
8697
|
</svg>
|
|
8698
8698
|
`, u = {};
|
|
8699
8699
|
u[this.shapeFillId] = { browserValue: C };
|
|
8700
|
-
const E =
|
|
8700
|
+
const E = k();
|
|
8701
8701
|
return {
|
|
8702
8702
|
id: E,
|
|
8703
8703
|
region: B,
|
|
@@ -8708,7 +8708,7 @@ class cs {
|
|
|
8708
8708
|
colors: u,
|
|
8709
8709
|
id: E,
|
|
8710
8710
|
svg: w,
|
|
8711
|
-
type:
|
|
8711
|
+
type: b.Illustration,
|
|
8712
8712
|
y: B.top,
|
|
8713
8713
|
x: B.left,
|
|
8714
8714
|
rotation: B.rotation,
|
|
@@ -8800,13 +8800,13 @@ const gs = new ls(), Ue = (i, t, e, A, a) => {
|
|
|
8800
8800
|
return [n, s] = Ue(e, A, i, d, o), [a.size, n, s];
|
|
8801
8801
|
}
|
|
8802
8802
|
const c = 6;
|
|
8803
|
-
let l = c -
|
|
8803
|
+
let l = c - ke;
|
|
8804
8804
|
if (A.length > 0) {
|
|
8805
8805
|
let d = A, B = 0;
|
|
8806
8806
|
for (; (!a.maxSize || l <= a.maxSize) && d; )
|
|
8807
|
-
l +=
|
|
8807
|
+
l += ke, B = l / r.unitsPerEm, [d, s] = Ue(e, A, l, B, o);
|
|
8808
8808
|
}
|
|
8809
|
-
l > c && (l -=
|
|
8809
|
+
l > c && (l -= ke), a.minSize && l < a.minSize && (l = a.minSize);
|
|
8810
8810
|
const g = l / r.unitsPerEm;
|
|
8811
8811
|
return [n, s] = Ue(e, A, l, g, o), [l, n, s];
|
|
8812
8812
|
}, Ge = 30;
|
|
@@ -9064,7 +9064,7 @@ class Bs {
|
|
|
9064
9064
|
C,
|
|
9065
9065
|
async () => {
|
|
9066
9066
|
e.updateMetadata(t.stepName, { color: w, text: u }), e.updateStorage(t.stepName, { text: u, inputText: u });
|
|
9067
|
-
const m = o.map((Q) => new
|
|
9067
|
+
const m = o.map((Q) => new RA(Q.id, h)), f = new U(m);
|
|
9068
9068
|
e.getCommandDispatcher()(f);
|
|
9069
9069
|
}
|
|
9070
9070
|
);
|
|
@@ -9113,7 +9113,7 @@ class Bs {
|
|
|
9113
9113
|
var g;
|
|
9114
9114
|
const c = n.markUpdatePending(), l = await this.fontDataFromVariant(e);
|
|
9115
9115
|
if (a.length > 0) {
|
|
9116
|
-
const d = a.map((C) => new
|
|
9116
|
+
const d = a.map((C) => new RA(C.id, l));
|
|
9117
9117
|
if (r) {
|
|
9118
9118
|
const C = a.map((w) => new He(w.id, r));
|
|
9119
9119
|
d.push(...C);
|
|
@@ -9181,7 +9181,7 @@ class Bs {
|
|
|
9181
9181
|
throw new Error("Step data not supplied");
|
|
9182
9182
|
const o = n.text || A.defaultText || "", r = this.getProcessedInput(o, A, !1), c = async (g) => {
|
|
9183
9183
|
var C;
|
|
9184
|
-
const B = s.getLayouts().find((w) => w.panelId === g.panelId), h =
|
|
9184
|
+
const B = s.getLayouts().find((w) => w.panelId === g.panelId), h = k();
|
|
9185
9185
|
try {
|
|
9186
9186
|
if (!B)
|
|
9187
9187
|
throw new ue("Failed to find layout for region: " + g.panelId);
|
|
@@ -9209,7 +9209,7 @@ class Bs {
|
|
|
9209
9209
|
rotation: g.rotation,
|
|
9210
9210
|
text: r,
|
|
9211
9211
|
input: o,
|
|
9212
|
-
type:
|
|
9212
|
+
type: b.Textbox,
|
|
9213
9213
|
vertical: A.vertical,
|
|
9214
9214
|
x: g.left,
|
|
9215
9215
|
y: g.top,
|
|
@@ -9220,7 +9220,7 @@ class Bs {
|
|
|
9220
9220
|
curved: A.curved,
|
|
9221
9221
|
paths: A.paths,
|
|
9222
9222
|
fillSpotColorDefinition: u
|
|
9223
|
-
}, Q = [], p = /* @__PURE__ */ new Map(),
|
|
9223
|
+
}, Q = [], p = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new Map();
|
|
9224
9224
|
if (!f.fontData)
|
|
9225
9225
|
throw new L("Failed to resolve font data for text.");
|
|
9226
9226
|
const [y, S] = ce(
|
|
@@ -9237,7 +9237,7 @@ class Bs {
|
|
|
9237
9237
|
[r],
|
|
9238
9238
|
{ size: A.size, minSize: A.minSize, maxSize: A.maxSize }
|
|
9239
9239
|
);
|
|
9240
|
-
p.set(f.id, y),
|
|
9240
|
+
p.set(f.id, y), I.set(f.id, S);
|
|
9241
9241
|
const x = A.curved || A.vertical ? r : (S || []).join(`
|
|
9242
9242
|
`);
|
|
9243
9243
|
Q.push(
|
|
@@ -9298,13 +9298,13 @@ class Bs {
|
|
|
9298
9298
|
return l && l(!0), { info: "0" };
|
|
9299
9299
|
const f = s.getProfanities(), Q = Oe(d.toLowerCase());
|
|
9300
9300
|
for (const p of Q)
|
|
9301
|
-
for (const
|
|
9302
|
-
const y = f[
|
|
9301
|
+
for (const I in f) {
|
|
9302
|
+
const y = f[I].toLowerCase().replace(/\s/g, "");
|
|
9303
9303
|
if (p === y)
|
|
9304
9304
|
return r(!0), { error: "Blocked profanity." };
|
|
9305
9305
|
}
|
|
9306
9306
|
return !t.data.vertical && !t.data.allowNewlines && (d.includes(`
|
|
9307
|
-
`) || d.includes("\r")) ? (r(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(C.values()).every((
|
|
9307
|
+
`) || d.includes("\r")) ? (r(!0), { error: "Cannot span multiple lines." }) : !t.data.curved && !Array.from(C.values()).every((I) => I) ? (r(!0), { error: "Does not fit." }) : (r(!1), { info: (t.data.maxLength - d.length).toString() });
|
|
9308
9308
|
})();
|
|
9309
9309
|
if (u.error) {
|
|
9310
9310
|
c(u.error);
|
|
@@ -10595,26 +10595,26 @@ IfnI8vaNAAAAAElFTkSuQmCC" transform="matrix(0.13 0.0141 -0.0141 0.1301 104.926 1
|
|
|
10595
10595
|
</g>
|
|
10596
10596
|
</svg>
|
|
10597
10597
|
|
|
10598
|
-
`,
|
|
10599
|
-
const e =
|
|
10598
|
+
`, R = (i) => wi("http://www.w3.org/2000/svg", i), CA = (i, t) => {
|
|
10599
|
+
const e = R("rect");
|
|
10600
10600
|
return e.setAttribute("height", `${i}`), e.setAttribute("width", `${t}`), e;
|
|
10601
10601
|
}, ws = () => {
|
|
10602
|
-
const i =
|
|
10602
|
+
const i = R("svg");
|
|
10603
10603
|
return i.setAttribute("xmlns", "http://www.w3.org/2000/svg"), i.setAttribute("xmlns:xlink", "http://www.w3.org/1999/xlink"), i.setAttribute("version", "1.1"), i;
|
|
10604
10604
|
}, us = (i) => {
|
|
10605
|
-
const t =
|
|
10605
|
+
const t = R("use");
|
|
10606
10606
|
return t.setAttribute("xlink:href", i), t.setAttribute("href", i), t;
|
|
10607
10607
|
};
|
|
10608
|
-
function
|
|
10608
|
+
function Ra(i) {
|
|
10609
10609
|
const t = ws(), e = /viewBox="0 0 (.+?) (.+?)"/.exec(i) || ["0", "0"], A = parseFloat(e[1]), a = parseFloat(e[2]);
|
|
10610
10610
|
return t.setAttribute("height", `${a}`), t.setAttribute("width", `${A}`), [t, a, A];
|
|
10611
10611
|
}
|
|
10612
10612
|
const Es = (i, t, e) => {
|
|
10613
|
-
const A =
|
|
10613
|
+
const A = R("g");
|
|
10614
10614
|
i.appendChild(A), A.setAttribute("id", e), A.innerHTML = t;
|
|
10615
10615
|
};
|
|
10616
10616
|
function Ha(i, t, e) {
|
|
10617
|
-
const A =
|
|
10617
|
+
const A = k();
|
|
10618
10618
|
Es(t, e, `bgdef-${A}`), i.appendChild(us(`#bgdef-${A}`));
|
|
10619
10619
|
}
|
|
10620
10620
|
const Ua = (i, t, e, A) => {
|
|
@@ -10772,26 +10772,26 @@ class fs extends hA {
|
|
|
10772
10772
|
}
|
|
10773
10773
|
brandSvg(t, e) {
|
|
10774
10774
|
const A = t.toSVG(2), a = t.getBoundingBox(), n = a.x2 - a.x1, s = t.toPathData(3), o = () => {
|
|
10775
|
-
const Q =
|
|
10775
|
+
const Q = R("g"), p = R("defs");
|
|
10776
10776
|
Q.appendChild(p), p.appendChild(Ua(3, 7, 4, "shadow"));
|
|
10777
|
-
const
|
|
10778
|
-
Q.appendChild(
|
|
10779
|
-
const y =
|
|
10777
|
+
const I = R("g");
|
|
10778
|
+
Q.appendChild(I), I.setAttribute("filter", "url(#shadow)"), I.innerHTML = A;
|
|
10779
|
+
const y = R("g");
|
|
10780
10780
|
Q.appendChild(y), y.setAttribute("fill", "red"), y.setAttribute("stroke", "red"), y.setAttribute("stroke-width", "9"), y.innerHTML = A;
|
|
10781
|
-
const S =
|
|
10781
|
+
const S = R("g");
|
|
10782
10782
|
Q.appendChild(S), S.setAttribute("fill", "#9d2621"), S.setAttribute("transform", "translate(1,1)"), S.innerHTML = A;
|
|
10783
|
-
const x =
|
|
10783
|
+
const x = R("g");
|
|
10784
10784
|
return Q.appendChild(x), x.setAttribute("fill", "yellow"), x.innerHTML = A, new uA(Q).transform(([P, H]) => [P, H + (n / 2 - P) ** 2 / (n * 2.9)]), Q;
|
|
10785
|
-
}, [r, c, l] =
|
|
10785
|
+
}, [r, c, l] = Ra(e);
|
|
10786
10786
|
if (!r)
|
|
10787
10787
|
return "";
|
|
10788
|
-
const g =
|
|
10788
|
+
const g = R("defs");
|
|
10789
10789
|
r.appendChild(g), Ha(r, g, e);
|
|
10790
|
-
const d = c * 0.23, B = l * 0.94, h = l * 0.04, C = c * 0.53, w =
|
|
10790
|
+
const d = c * 0.23, B = l * 0.94, h = l * 0.04, C = c * 0.53, w = R("g");
|
|
10791
10791
|
r.appendChild(w), w.setAttribute("transform", `translate(${h} ${C}) rotate(-21)`);
|
|
10792
10792
|
const u = CA(d, B);
|
|
10793
10793
|
u.setAttribute("opacity", "0"), w.appendChild(u);
|
|
10794
|
-
const E =
|
|
10794
|
+
const E = R("g");
|
|
10795
10795
|
w.appendChild(E);
|
|
10796
10796
|
const m = o();
|
|
10797
10797
|
E.appendChild(m);
|
|
@@ -10816,29 +10816,29 @@ class ps extends hA {
|
|
|
10816
10816
|
}
|
|
10817
10817
|
brandSvg(t, e, A) {
|
|
10818
10818
|
const a = t.toSVG(2), n = t.getBoundingBox(), s = n.y2 - n.y1, o = n.x2 - n.x1, r = t.toPathData(3), c = () => {
|
|
10819
|
-
const
|
|
10820
|
-
|
|
10821
|
-
const S =
|
|
10822
|
-
|
|
10823
|
-
const x =
|
|
10824
|
-
|
|
10825
|
-
const Y = new uA(
|
|
10819
|
+
const I = R("g"), y = R("g");
|
|
10820
|
+
I.appendChild(y), y.setAttribute("stroke", "#5C1A0D"), y.setAttribute("stroke-width", "4"), y.setAttribute("transform", "translate(1,1)"), y.innerHTML = a;
|
|
10821
|
+
const S = R("g");
|
|
10822
|
+
I.appendChild(S), S.setAttribute("fill", "#FFE386"), S.setAttribute("transform", "translate(1,1)"), S.innerHTML = a;
|
|
10823
|
+
const x = R("g");
|
|
10824
|
+
I.appendChild(x), x.setAttribute("fill", "white"), x.innerHTML = a;
|
|
10825
|
+
const Y = new uA(I);
|
|
10826
10826
|
return Y.transform(([P, H]) => [P, H + ((o - P) * H) ** 2 / (o * 5e4)]), Y.transform(([P, H]) => [
|
|
10827
10827
|
P,
|
|
10828
10828
|
H + (o / 3 - P) ** 2 / o * this.indicator(P < o / 3)
|
|
10829
|
-
]), Y.transform(([P, H]) => [P - (s - H) * (o - P) / 800, H]),
|
|
10830
|
-
}, [l, g, d] =
|
|
10829
|
+
]), Y.transform(([P, H]) => [P - (s - H) * (o - P) / 800, H]), I;
|
|
10830
|
+
}, [l, g, d] = Ra(e);
|
|
10831
10831
|
if (!l)
|
|
10832
10832
|
return "";
|
|
10833
|
-
const B =
|
|
10833
|
+
const B = R("defs");
|
|
10834
10834
|
l.appendChild(B), Ha(l, B, e);
|
|
10835
10835
|
let h, C, w, u;
|
|
10836
10836
|
A ? (h = g * 0.25 * (1 + 0.1), C = d / 2 * (1 + 0.1), w = d * 0.22, u = g * 0.32) : (h = g * 0.22 * (1 + 0.1), C = d * 0.8, w = d * 0.067, u = g * 0.33);
|
|
10837
|
-
const E =
|
|
10837
|
+
const E = R("g");
|
|
10838
10838
|
l.appendChild(E), E.setAttribute("transform", `translate(${w} ${u}) rotate(-10)`);
|
|
10839
10839
|
const m = CA(h, C);
|
|
10840
10840
|
m.setAttribute("opacity", "0"), E.appendChild(m);
|
|
10841
|
-
const f =
|
|
10841
|
+
const f = R("g");
|
|
10842
10842
|
E.appendChild(f);
|
|
10843
10843
|
const Q = c();
|
|
10844
10844
|
f.appendChild(Q);
|
|
@@ -10860,29 +10860,29 @@ class Is extends hA {
|
|
|
10860
10860
|
}
|
|
10861
10861
|
svgElement(t, e) {
|
|
10862
10862
|
const A = lA(Ds), n = t !== "" ? ((m) => m.charAt(0).toUpperCase() + m.substr(1).toLowerCase())(t) : "", s = A.getPath(n, 0, 72, 72), o = s.toSVG(2), r = s.getBoundingBox(), c = r.x2 - r.x1, l = s.toPathData(3), g = () => {
|
|
10863
|
-
const m =
|
|
10863
|
+
const m = R("g");
|
|
10864
10864
|
m.classList.add("module-text-group");
|
|
10865
|
-
const f =
|
|
10865
|
+
const f = R("defs");
|
|
10866
10866
|
m.appendChild(f), f.appendChild(Ua(0, 2, 2, "shadow"));
|
|
10867
|
-
const Q =
|
|
10867
|
+
const Q = R("path");
|
|
10868
10868
|
Q.setAttribute("d", l), Q.setAttribute("stroke", "black"), Q.setAttribute("stroke-width", "3"), f.appendChild(Q);
|
|
10869
|
-
const p =
|
|
10869
|
+
const p = R("g");
|
|
10870
10870
|
p.classList.add("module-layer0"), m.appendChild(p), p.setAttribute("filter", "url(#shadow)"), p.innerHTML = Q.outerHTML;
|
|
10871
|
-
const
|
|
10872
|
-
|
|
10873
|
-
const y =
|
|
10871
|
+
const I = R("g");
|
|
10872
|
+
I.classList.add("module-layer1"), m.appendChild(I), I.setAttribute("stroke-width", "3"), I.setAttribute("stroke", "rgb(45,41,38)"), I.setAttribute("fill", "rgb(45,41,38)"), I.setAttribute("transform", "translate(0.5,0)"), I.innerHTML = o;
|
|
10873
|
+
const y = R("g");
|
|
10874
10874
|
y.classList.add("module-layer2"), m.appendChild(y), y.setAttribute("fill", "rgb(255,209,0)"), y.setAttribute("transform", "translate(1,-0.1)"), y.innerHTML = o;
|
|
10875
|
-
const S =
|
|
10875
|
+
const S = R("g");
|
|
10876
10876
|
return S.classList.add("module-layer3"), m.appendChild(S), S.setAttribute("fill", "white"), S.innerHTML = o, new uA(m).transform(([Y, P]) => [Y, P + (c / 2 - Y) ** 2 / (c * 6)]), m;
|
|
10877
|
-
}, d =
|
|
10877
|
+
}, d = R("g");
|
|
10878
10878
|
d.classList.add("module-root");
|
|
10879
|
-
const B =
|
|
10879
|
+
const B = R("defs");
|
|
10880
10880
|
d.appendChild(B);
|
|
10881
|
-
const h =
|
|
10881
|
+
const h = R("g");
|
|
10882
10882
|
h.classList.add("module-bounds"), d.appendChild(h);
|
|
10883
10883
|
const C = CA(e.height, e.width);
|
|
10884
10884
|
C.setAttribute("opacity", "0"), h.appendChild(C);
|
|
10885
|
-
const w =
|
|
10885
|
+
const w = R("g");
|
|
10886
10886
|
w.classList.add("module-text-enclosure"), d.appendChild(w);
|
|
10887
10887
|
const u = g();
|
|
10888
10888
|
w.appendChild(u);
|
|
@@ -10901,7 +10901,7 @@ async function Ta(i) {
|
|
|
10901
10901
|
return new Is();
|
|
10902
10902
|
throw new L(`Failed to resolve Module, Module ${i} not found`);
|
|
10903
10903
|
}
|
|
10904
|
-
const ye =
|
|
10904
|
+
const ye = D`
|
|
10905
10905
|
fragment GlobalPropertyStateAspectFields on GlobalPropertyStateAspect {
|
|
10906
10906
|
name
|
|
10907
10907
|
value
|
|
@@ -10917,7 +10917,7 @@ const ye = I`
|
|
|
10917
10917
|
}
|
|
10918
10918
|
}
|
|
10919
10919
|
}
|
|
10920
|
-
`, Fs =
|
|
10920
|
+
`, Fs = D`
|
|
10921
10921
|
${ye}
|
|
10922
10922
|
mutation CreateGlobalPropertyState($bundleId: String!) {
|
|
10923
10923
|
globalPropertyStateCreate(bundleId: $bundleId) {
|
|
@@ -10927,7 +10927,7 @@ const ye = I`
|
|
|
10927
10927
|
}
|
|
10928
10928
|
}
|
|
10929
10929
|
}
|
|
10930
|
-
`, ys =
|
|
10930
|
+
`, ys = D`
|
|
10931
10931
|
${ye}
|
|
10932
10932
|
mutation UpdateGlobalPropertyState($id: String!, $aspects: [GlobalPropertyStateAspectInput]!) {
|
|
10933
10933
|
globalPropertyStateUpdate(id: $id, aspects: $aspects) {
|
|
@@ -10938,7 +10938,7 @@ const ye = I`
|
|
|
10938
10938
|
}
|
|
10939
10939
|
}
|
|
10940
10940
|
`;
|
|
10941
|
-
|
|
10941
|
+
D`
|
|
10942
10942
|
${ye}
|
|
10943
10943
|
query GetGlobalPropertyState($bundleId: String!) {
|
|
10944
10944
|
globalPropertyState(bundleId: $bundleId) {
|
|
@@ -10949,7 +10949,7 @@ I`
|
|
|
10949
10949
|
}
|
|
10950
10950
|
}
|
|
10951
10951
|
`;
|
|
10952
|
-
const Ms =
|
|
10952
|
+
const Ms = D`
|
|
10953
10953
|
${De}
|
|
10954
10954
|
fragment ProductFields on Product {
|
|
10955
10955
|
id
|
|
@@ -10993,7 +10993,7 @@ const Ms = I`
|
|
|
10993
10993
|
name
|
|
10994
10994
|
}
|
|
10995
10995
|
}
|
|
10996
|
-
`, EA =
|
|
10996
|
+
`, EA = D`
|
|
10997
10997
|
${Ms}
|
|
10998
10998
|
fragment ProductCollectionProductFields on ProductCollectionProduct {
|
|
10999
10999
|
id
|
|
@@ -11003,7 +11003,7 @@ const Ms = I`
|
|
|
11003
11003
|
...ProductFields
|
|
11004
11004
|
}
|
|
11005
11005
|
}
|
|
11006
|
-
`, Me = (i) =>
|
|
11006
|
+
`, Me = (i) => D`
|
|
11007
11007
|
${i ? EA : ""}
|
|
11008
11008
|
fragment ProductCollectionFields on ProductCollection {
|
|
11009
11009
|
id
|
|
@@ -11054,7 +11054,7 @@ const Ms = I`
|
|
|
11054
11054
|
}
|
|
11055
11055
|
}
|
|
11056
11056
|
}
|
|
11057
|
-
`, Ss = (i) =>
|
|
11057
|
+
`, Ss = (i) => D`
|
|
11058
11058
|
${ye}
|
|
11059
11059
|
${Me(i)}
|
|
11060
11060
|
query GetBundle($id: String!) {
|
|
@@ -11094,7 +11094,7 @@ const Ms = I`
|
|
|
11094
11094
|
}
|
|
11095
11095
|
}
|
|
11096
11096
|
}
|
|
11097
|
-
`, GA =
|
|
11097
|
+
`, GA = D`
|
|
11098
11098
|
query GetBundleStakeholders($id: String!) {
|
|
11099
11099
|
bundles(ids: [$id]) {
|
|
11100
11100
|
id
|
|
@@ -11137,7 +11137,7 @@ const Ms = I`
|
|
|
11137
11137
|
}
|
|
11138
11138
|
}
|
|
11139
11139
|
}
|
|
11140
|
-
`, xs =
|
|
11140
|
+
`, xs = D`
|
|
11141
11141
|
query GetBundlesForCustomer($id: String!) {
|
|
11142
11142
|
customers(ids: [$id]) {
|
|
11143
11143
|
bundleStakeholders {
|
|
@@ -11164,7 +11164,7 @@ const Ms = I`
|
|
|
11164
11164
|
}
|
|
11165
11165
|
}
|
|
11166
11166
|
}
|
|
11167
|
-
`, Ys =
|
|
11167
|
+
`, Ys = D`
|
|
11168
11168
|
${EA}
|
|
11169
11169
|
query GetProductCollectionProducts($id: String!, $productIds: [String!]) {
|
|
11170
11170
|
productCollections(ids: [$id], productIds: $productIds) {
|
|
@@ -11174,7 +11174,7 @@ const Ms = I`
|
|
|
11174
11174
|
}
|
|
11175
11175
|
}
|
|
11176
11176
|
}
|
|
11177
|
-
`, Ps =
|
|
11177
|
+
`, Ps = D`
|
|
11178
11178
|
query GetProductCollectionForFilteredProducts($id: String!, $filters: ProductCollectionProductFilterInput!) {
|
|
11179
11179
|
productCollections(ids: [$id]) {
|
|
11180
11180
|
id
|
|
@@ -11186,7 +11186,7 @@ const Ms = I`
|
|
|
11186
11186
|
}
|
|
11187
11187
|
}
|
|
11188
11188
|
}
|
|
11189
|
-
`, vs =
|
|
11189
|
+
`, vs = D`
|
|
11190
11190
|
${EA}
|
|
11191
11191
|
query GetProductCollectionForProductsFeed(
|
|
11192
11192
|
$id: String!
|
|
@@ -11204,7 +11204,7 @@ const Ms = I`
|
|
|
11204
11204
|
}
|
|
11205
11205
|
}
|
|
11206
11206
|
}
|
|
11207
|
-
`, Ns = (i) =>
|
|
11207
|
+
`, Ns = (i) => D`
|
|
11208
11208
|
${Me(i)}
|
|
11209
11209
|
mutation CreateBundle(
|
|
11210
11210
|
$collectionId: String
|
|
@@ -11233,7 +11233,7 @@ const Ms = I`
|
|
|
11233
11233
|
}
|
|
11234
11234
|
}
|
|
11235
11235
|
}
|
|
11236
|
-
`,
|
|
11236
|
+
`, bs = (i) => D`
|
|
11237
11237
|
${Me(i)}
|
|
11238
11238
|
mutation DuplicateBundle(
|
|
11239
11239
|
$id: String!
|
|
@@ -11264,25 +11264,25 @@ const Ms = I`
|
|
|
11264
11264
|
}
|
|
11265
11265
|
}
|
|
11266
11266
|
}
|
|
11267
|
-
`,
|
|
11267
|
+
`, ks = D`
|
|
11268
11268
|
mutation UpdateBundle($id: String!, $name: String, $metadata: [MetadataInput!], $bundleStateData: String) {
|
|
11269
11269
|
bundleUpdate(id: $id, name: $name, metadata: $metadata, bundleStateData: $bundleStateData) {
|
|
11270
11270
|
id
|
|
11271
11271
|
}
|
|
11272
11272
|
}
|
|
11273
|
-
`,
|
|
11273
|
+
`, Rs = D`
|
|
11274
11274
|
mutation BundleAddTransaction($id: String!, $transactionId: String!) {
|
|
11275
11275
|
bundleAddTransaction(id: $id, transactionId: $transactionId) {
|
|
11276
11276
|
id
|
|
11277
11277
|
}
|
|
11278
11278
|
}
|
|
11279
|
-
`, Hs =
|
|
11279
|
+
`, Hs = D`
|
|
11280
11280
|
mutation BundleAddTransactions($id: String!, $transactionIds: [String!]!, $transactionOwnerIds: [String!]) {
|
|
11281
11281
|
bundleAddTransactions(id: $id, transactionIds: $transactionIds, transactionOwnerIds: $transactionOwnerIds) {
|
|
11282
11282
|
id
|
|
11283
11283
|
}
|
|
11284
11284
|
}
|
|
11285
|
-
`, Us =
|
|
11285
|
+
`, Us = D`
|
|
11286
11286
|
mutation BundleRemoveTransaction(
|
|
11287
11287
|
$id: String!
|
|
11288
11288
|
$transactionId: String!
|
|
@@ -11297,7 +11297,7 @@ const Ms = I`
|
|
|
11297
11297
|
id
|
|
11298
11298
|
}
|
|
11299
11299
|
}
|
|
11300
|
-
`, Gs =
|
|
11300
|
+
`, Gs = D`
|
|
11301
11301
|
mutation BundleRemoveTransactions(
|
|
11302
11302
|
$id: String!
|
|
11303
11303
|
$transactionIds: [String!]!
|
|
@@ -11312,7 +11312,7 @@ const Ms = I`
|
|
|
11312
11312
|
id
|
|
11313
11313
|
}
|
|
11314
11314
|
}
|
|
11315
|
-
`, Ts =
|
|
11315
|
+
`, Ts = D`
|
|
11316
11316
|
mutation BundleAddStakeholder($id: String!, $details: CustomerDetailsInput!, $type: String!) {
|
|
11317
11317
|
bundleAddStakeholder(id: $id, details: $details, type: $type) {
|
|
11318
11318
|
id
|
|
@@ -11332,13 +11332,13 @@ const Ms = I`
|
|
|
11332
11332
|
}
|
|
11333
11333
|
}
|
|
11334
11334
|
}
|
|
11335
|
-
`, Js =
|
|
11335
|
+
`, Js = D`
|
|
11336
11336
|
mutation BundleAddStakeholder($id: String!, $emailAddress: String!) {
|
|
11337
11337
|
bundleRemoveStakeholder(id: $id, emailAddress: $emailAddress) {
|
|
11338
11338
|
id
|
|
11339
11339
|
}
|
|
11340
11340
|
}
|
|
11341
|
-
`, Ls =
|
|
11341
|
+
`, Ls = D`
|
|
11342
11342
|
mutation BundleUpdateStakeholders($id: String!, $input: [BundleStakeholderInput!]!) {
|
|
11343
11343
|
bundleUpdateStakeholders(id: $id, input: $input) {
|
|
11344
11344
|
id
|
|
@@ -11358,13 +11358,13 @@ const Ms = I`
|
|
|
11358
11358
|
}
|
|
11359
11359
|
}
|
|
11360
11360
|
}
|
|
11361
|
-
`, Os =
|
|
11361
|
+
`, Os = D`
|
|
11362
11362
|
mutation BundleUpdateTransactionOrder($id: String!, $transactionIds: [String!]!) {
|
|
11363
11363
|
bundleUpdateTransactionOrder(id: $id, transactionIds: $transactionIds) {
|
|
11364
11364
|
id
|
|
11365
11365
|
}
|
|
11366
11366
|
}
|
|
11367
|
-
`, zs = (i) =>
|
|
11367
|
+
`, zs = (i) => D`
|
|
11368
11368
|
${Me(i)}
|
|
11369
11369
|
mutation BundleAssignProductCollection($id: String!, $productCollectionId: String!) {
|
|
11370
11370
|
bundleAssignProductCollection(id: $id, collectionId: $productCollectionId) {
|
|
@@ -11374,7 +11374,13 @@ const Ms = I`
|
|
|
11374
11374
|
}
|
|
11375
11375
|
}
|
|
11376
11376
|
}
|
|
11377
|
-
`, js =
|
|
11377
|
+
`, js = D`
|
|
11378
|
+
mutation AssignGlobalPropertyConfiguration($bundleId: String!, $globalPropertyConfigurationId: String!) {
|
|
11379
|
+
bundleUpdate(id: $bundleId, globalPropertyConfigurationId: $globalPropertyConfigurationId) {
|
|
11380
|
+
id
|
|
11381
|
+
}
|
|
11382
|
+
}
|
|
11383
|
+
`, Ks = (i) => D`
|
|
11378
11384
|
query CustomerBundlesFeed($id: String!, $limit: Int!, $offset: Int!, $template: Boolean, $templateStatus: BundleTemplateStatus) {
|
|
11379
11385
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: $template, templateStatus: $templateStatus) {
|
|
11380
11386
|
items {
|
|
@@ -11397,29 +11403,29 @@ const Ms = I`
|
|
|
11397
11403
|
total
|
|
11398
11404
|
}
|
|
11399
11405
|
}
|
|
11400
|
-
`,
|
|
11406
|
+
`, Vs = D`
|
|
11401
11407
|
mutation FinalizeUpdateBundle($bundleId: String!) {
|
|
11402
11408
|
bundleFinalizeUpdate(bundleId: $bundleId)
|
|
11403
11409
|
}
|
|
11404
|
-
`,
|
|
11410
|
+
`, Ws = D`
|
|
11405
11411
|
mutation ApproveBundle($id: String!, $note: String) {
|
|
11406
11412
|
bundleApprove(id: $id, note: $note)
|
|
11407
11413
|
}
|
|
11408
|
-
`,
|
|
11414
|
+
`, Xs = D`
|
|
11409
11415
|
mutation RejectBundle($id: String!, $note: String) {
|
|
11410
11416
|
bundleReject(id: $id, note: $note)
|
|
11411
11417
|
}
|
|
11412
|
-
`,
|
|
11418
|
+
`, qs = D`
|
|
11413
11419
|
mutation ApproveTransaction($id: String!, $note: String) {
|
|
11414
11420
|
transactionApprove(id: $id, note: $note)
|
|
11415
11421
|
}
|
|
11416
|
-
`,
|
|
11422
|
+
`, Zs = D`
|
|
11417
11423
|
mutation RejectTransaction($id: String!, $note: String) {
|
|
11418
11424
|
transactionReject(id: $id, note: $note)
|
|
11419
11425
|
}
|
|
11420
11426
|
`;
|
|
11421
11427
|
var Se = /* @__PURE__ */ ((i) => (i.Error = "Error", i.Warning = "Warning", i.Info = "Info", i))(Se || {});
|
|
11422
|
-
const
|
|
11428
|
+
const $s = 1e3;
|
|
11423
11429
|
class TA extends wa {
|
|
11424
11430
|
constructor(t) {
|
|
11425
11431
|
super(), this.createdAt = /* @__PURE__ */ new Date(), this.update = t;
|
|
@@ -11428,11 +11434,11 @@ class TA extends wa {
|
|
|
11428
11434
|
await this.update(), await new Promise((t) => {
|
|
11429
11435
|
window.setTimeout(() => {
|
|
11430
11436
|
t();
|
|
11431
|
-
},
|
|
11437
|
+
}, $s);
|
|
11432
11438
|
});
|
|
11433
11439
|
}
|
|
11434
11440
|
}
|
|
11435
|
-
class
|
|
11441
|
+
class _s {
|
|
11436
11442
|
constructor(t, e, A, a, n, s, o, r, c, l, g, d, B = !1, h, C = !1, w = !1, u = !1) {
|
|
11437
11443
|
this.workflowStatePromiseQueue = new ua(1), this.initialized = !1, this.readOnly = !1, this.isReloadedTransaction = !1, this.singleVariantsRenderable = !1, this.stepTags = {}, this.renderLayouts = () => {
|
|
11438
11444
|
var f;
|
|
@@ -11617,7 +11623,7 @@ class $s {
|
|
|
11617
11623
|
this.pendingUpdates = this.pendingUpdates.filter((e) => e !== t);
|
|
11618
11624
|
}
|
|
11619
11625
|
markUpdatePending() {
|
|
11620
|
-
const t =
|
|
11626
|
+
const t = k();
|
|
11621
11627
|
return this.pendingUpdates = [...this.pendingUpdates, t], t;
|
|
11622
11628
|
}
|
|
11623
11629
|
setEditedStatus(t, e) {
|
|
@@ -11726,7 +11732,7 @@ class $s {
|
|
|
11726
11732
|
};
|
|
11727
11733
|
if (!VA(A, this.storage)) {
|
|
11728
11734
|
this.storage = A;
|
|
11729
|
-
const a = new
|
|
11735
|
+
const a = new kA(this.constructSerializableWorkflow());
|
|
11730
11736
|
this.commandContext.apply(a, !0), this.onStepSpecificStorageChange(t), this.onStorageChange();
|
|
11731
11737
|
}
|
|
11732
11738
|
}
|
|
@@ -11888,7 +11894,7 @@ class $s {
|
|
|
11888
11894
|
}
|
|
11889
11895
|
async approveTransaction(t) {
|
|
11890
11896
|
await F.getShadowGraphqlClient().mutate({
|
|
11891
|
-
mutation:
|
|
11897
|
+
mutation: qs,
|
|
11892
11898
|
errorPolicy: "all",
|
|
11893
11899
|
fetchPolicy: "no-cache",
|
|
11894
11900
|
variables: {
|
|
@@ -11899,7 +11905,7 @@ class $s {
|
|
|
11899
11905
|
}
|
|
11900
11906
|
async rejectTransaction(t) {
|
|
11901
11907
|
await F.getShadowGraphqlClient().mutate({
|
|
11902
|
-
mutation:
|
|
11908
|
+
mutation: Zs,
|
|
11903
11909
|
errorPolicy: "all",
|
|
11904
11910
|
fetchPolicy: "no-cache",
|
|
11905
11911
|
variables: {
|
|
@@ -11921,11 +11927,11 @@ class $s {
|
|
|
11921
11927
|
this.stepSelections = {
|
|
11922
11928
|
...this.stepSelections,
|
|
11923
11929
|
[t]: { selectedVariants: e }
|
|
11924
|
-
}, this.selectionCost = Object.values(this.stepSelections).reduce((p,
|
|
11930
|
+
}, this.selectionCost = Object.values(this.stepSelections).reduce((p, I) => p + I.selectedVariants.map((y) => y.priceModifier || 0).reduce((y, S) => y + S, 0), 0), this.workflow.steps.forEach((p) => {
|
|
11925
11931
|
wt(p, this.stepSelections) || (this.stepInitialised[p.stepName] = !1, delete this.stepMetadata[p.stepName], delete this.stepSelections[p.stepName], delete this.storage[p.stepName]);
|
|
11926
11932
|
});
|
|
11927
11933
|
const s = this.allScenes, o = It(s, n), r = It(s, this.stepSelections), c = o.map((p) => p.silentSteps).flat(), g = r.map((p) => p.silentSteps).flat().filter(
|
|
11928
|
-
(p) => !c.some((
|
|
11934
|
+
(p) => !c.some((I) => I.stepName === p.stepName)
|
|
11929
11935
|
);
|
|
11930
11936
|
c.forEach((p) => {
|
|
11931
11937
|
wt(p, this.stepSelections) || (this.stepInitialised[p.stepName] = !1);
|
|
@@ -11939,15 +11945,15 @@ class $s {
|
|
|
11939
11945
|
const C = this.workflow.steps.find((p) => p.stepName === t);
|
|
11940
11946
|
if ((C == null ? void 0 : C.type) === M.Frame) {
|
|
11941
11947
|
const p = this.getStepSpecificServices(t);
|
|
11942
|
-
(Q = p == null ? void 0 : p.frameService) == null || Q.setTargetElements(A.map((
|
|
11948
|
+
(Q = p == null ? void 0 : p.frameService) == null || Q.setTargetElements(A.map((I) => I.id));
|
|
11943
11949
|
}
|
|
11944
|
-
const w = d.map((p) => new ft(p.id)), u = new
|
|
11950
|
+
const w = d.map((p) => new ft(p.id)), u = new kA(this.constructSerializableWorkflow()), E = [...h, ...w, u];
|
|
11945
11951
|
E.length > 0 && this.commandContext.apply(new U(E), !0), await this.ensureStepsAreLoaded(), this.onElementsChange();
|
|
11946
11952
|
const m = this.getInvalidModelVariants(), f = this.modelContainer;
|
|
11947
11953
|
if (f) {
|
|
11948
11954
|
const p = m.map(
|
|
11949
|
-
(
|
|
11950
|
-
|
|
11955
|
+
(I) => f.applyModelVariant(
|
|
11956
|
+
I,
|
|
11951
11957
|
{
|
|
11952
11958
|
contextService: this.getLayoutPreviewService()
|
|
11953
11959
|
},
|
|
@@ -12007,12 +12013,12 @@ class $s {
|
|
|
12007
12013
|
break;
|
|
12008
12014
|
case M.Picture:
|
|
12009
12015
|
A.push(
|
|
12010
|
-
|
|
12016
|
+
ba.init(r, this, this.reloadedState)
|
|
12011
12017
|
);
|
|
12012
12018
|
break;
|
|
12013
12019
|
case M.Question:
|
|
12014
12020
|
A.push(
|
|
12015
|
-
|
|
12021
|
+
ka.init(r, this, this.reloadedState)
|
|
12016
12022
|
);
|
|
12017
12023
|
break;
|
|
12018
12024
|
case M.Shape:
|
|
@@ -12298,7 +12304,7 @@ const Ja = class _e {
|
|
|
12298
12304
|
};
|
|
12299
12305
|
Ja.updateState = /* @__PURE__ */ new Map();
|
|
12300
12306
|
let At = Ja;
|
|
12301
|
-
class
|
|
12307
|
+
class to extends At {
|
|
12302
12308
|
constructor(t, e, A) {
|
|
12303
12309
|
super(t, e, A);
|
|
12304
12310
|
}
|
|
@@ -12353,7 +12359,7 @@ class _s extends At {
|
|
|
12353
12359
|
return this.step.data.colorPickerEnabled ?? !1;
|
|
12354
12360
|
}
|
|
12355
12361
|
}
|
|
12356
|
-
class
|
|
12362
|
+
class eo extends At {
|
|
12357
12363
|
constructor(t, e, A) {
|
|
12358
12364
|
super(t, e, A);
|
|
12359
12365
|
}
|
|
@@ -12366,7 +12372,7 @@ class to extends At {
|
|
|
12366
12372
|
);
|
|
12367
12373
|
}
|
|
12368
12374
|
}
|
|
12369
|
-
class
|
|
12375
|
+
class Ao extends At {
|
|
12370
12376
|
constructor(t, e, A) {
|
|
12371
12377
|
super(t, e, A);
|
|
12372
12378
|
}
|
|
@@ -12379,7 +12385,7 @@ class eo extends At {
|
|
|
12379
12385
|
);
|
|
12380
12386
|
}
|
|
12381
12387
|
}
|
|
12382
|
-
class
|
|
12388
|
+
class ao extends At {
|
|
12383
12389
|
constructor(t, e, A) {
|
|
12384
12390
|
super(t, e, A);
|
|
12385
12391
|
}
|
|
@@ -12389,7 +12395,7 @@ class Ao extends At {
|
|
|
12389
12395
|
* @returns A promise that can be awaited to ensure the new image asset has been updated on the design.
|
|
12390
12396
|
*/
|
|
12391
12397
|
selectVariant(t) {
|
|
12392
|
-
return
|
|
12398
|
+
return ba.selectVariant(
|
|
12393
12399
|
this.step,
|
|
12394
12400
|
t.getResource(),
|
|
12395
12401
|
this.manager,
|
|
@@ -12397,14 +12403,14 @@ class Ao extends At {
|
|
|
12397
12403
|
);
|
|
12398
12404
|
}
|
|
12399
12405
|
}
|
|
12400
|
-
class
|
|
12406
|
+
class io extends At {
|
|
12401
12407
|
constructor(t, e, A) {
|
|
12402
12408
|
super(t, e, A);
|
|
12403
12409
|
}
|
|
12404
12410
|
async selectVariant(t) {
|
|
12405
12411
|
if (!t.getId())
|
|
12406
12412
|
throw new Error("Unable to select variant with a null ID");
|
|
12407
|
-
await
|
|
12413
|
+
await ka.selectVariant(this.step, t.getId(), this.manager);
|
|
12408
12414
|
}
|
|
12409
12415
|
/**
|
|
12410
12416
|
* The way that this step expects to be rendered.
|
|
@@ -12414,7 +12420,7 @@ class ao extends At {
|
|
|
12414
12420
|
return this.step.data.displayType || ((t = this.step.option) == null ? void 0 : t.displayType);
|
|
12415
12421
|
}
|
|
12416
12422
|
}
|
|
12417
|
-
class
|
|
12423
|
+
class no extends At {
|
|
12418
12424
|
constructor(t, e, A) {
|
|
12419
12425
|
super(t, e, A);
|
|
12420
12426
|
}
|
|
@@ -12469,7 +12475,7 @@ class io extends At {
|
|
|
12469
12475
|
return t;
|
|
12470
12476
|
}
|
|
12471
12477
|
}
|
|
12472
|
-
class
|
|
12478
|
+
class so extends At {
|
|
12473
12479
|
constructor(t, e, A) {
|
|
12474
12480
|
super(t, e, A);
|
|
12475
12481
|
}
|
|
@@ -12648,7 +12654,7 @@ class no extends At {
|
|
|
12648
12654
|
throw new Error("Custom color support is not yet available on text. Check back soon.");
|
|
12649
12655
|
}
|
|
12650
12656
|
}
|
|
12651
|
-
class
|
|
12657
|
+
class oo extends At {
|
|
12652
12658
|
constructor(t, e, A) {
|
|
12653
12659
|
super(t, e, A);
|
|
12654
12660
|
}
|
|
@@ -12661,7 +12667,7 @@ class so extends At {
|
|
|
12661
12667
|
return this.step.data.content;
|
|
12662
12668
|
}
|
|
12663
12669
|
}
|
|
12664
|
-
class
|
|
12670
|
+
class ro extends At {
|
|
12665
12671
|
constructor(t, e, A) {
|
|
12666
12672
|
super(t, e, A);
|
|
12667
12673
|
}
|
|
@@ -12688,7 +12694,7 @@ class oo extends At {
|
|
|
12688
12694
|
);
|
|
12689
12695
|
}
|
|
12690
12696
|
}
|
|
12691
|
-
class
|
|
12697
|
+
class co extends At {
|
|
12692
12698
|
constructor(t, e, A) {
|
|
12693
12699
|
super(t, e, A);
|
|
12694
12700
|
}
|
|
@@ -12739,33 +12745,33 @@ class ie {
|
|
|
12739
12745
|
static get(t, e) {
|
|
12740
12746
|
switch (e.type) {
|
|
12741
12747
|
case M.DigitalContent:
|
|
12742
|
-
return new
|
|
12748
|
+
return new ro(t, e, t.getStepTags(e.stepName));
|
|
12743
12749
|
case M.Information:
|
|
12744
|
-
return new
|
|
12750
|
+
return new oo(t, e, t.getStepTags(e.stepName));
|
|
12745
12751
|
case M.Question:
|
|
12746
|
-
return new
|
|
12752
|
+
return new io(t, e, t.getStepTags(e.stepName));
|
|
12747
12753
|
case M.Text:
|
|
12748
|
-
return new
|
|
12754
|
+
return new so(t, e, t.getStepTags(e.stepName));
|
|
12749
12755
|
case M.Illustration:
|
|
12750
|
-
return new
|
|
12756
|
+
return new to(t, e, t.getStepTags(e.stepName));
|
|
12751
12757
|
case M.Picture:
|
|
12752
|
-
return new
|
|
12758
|
+
return new ao(t, e, t.getStepTags(e.stepName));
|
|
12753
12759
|
case M.Shape:
|
|
12754
|
-
return new
|
|
12760
|
+
return new no(t, e, t.getStepTags(e.stepName));
|
|
12755
12761
|
case M.Material:
|
|
12756
|
-
return new to(t, e, t.getStepTags(e.stepName));
|
|
12757
|
-
case M.Model:
|
|
12758
12762
|
return new eo(t, e, t.getStepTags(e.stepName));
|
|
12763
|
+
case M.Model:
|
|
12764
|
+
return new Ao(t, e, t.getStepTags(e.stepName));
|
|
12759
12765
|
case M.Frame:
|
|
12760
|
-
return new
|
|
12766
|
+
return new or(t, e, t.getStepTags(e.stepName));
|
|
12761
12767
|
case M.Module:
|
|
12762
|
-
return new
|
|
12768
|
+
return new co(t, e, t.getStepTags(e.stepName));
|
|
12763
12769
|
default:
|
|
12764
12770
|
throw new L(`Step type ${e.type} not yet supported in Core SDK`);
|
|
12765
12771
|
}
|
|
12766
12772
|
}
|
|
12767
12773
|
}
|
|
12768
|
-
const La =
|
|
12774
|
+
const La = D`
|
|
12769
12775
|
fragment CreateDesignTransaction on Transaction {
|
|
12770
12776
|
id
|
|
12771
12777
|
designName
|
|
@@ -12790,7 +12796,7 @@ const La = I`
|
|
|
12790
12796
|
externalProductVariantId
|
|
12791
12797
|
}
|
|
12792
12798
|
}
|
|
12793
|
-
`,
|
|
12799
|
+
`, lo = D`
|
|
12794
12800
|
${La}
|
|
12795
12801
|
mutation CreateDesign(
|
|
12796
12802
|
$name: String!
|
|
@@ -12822,7 +12828,7 @@ const La = I`
|
|
|
12822
12828
|
}
|
|
12823
12829
|
}
|
|
12824
12830
|
}
|
|
12825
|
-
`,
|
|
12831
|
+
`, go = D`
|
|
12826
12832
|
${La}
|
|
12827
12833
|
mutation CreateDesigns($inputs: [DesignCreateInput]!) {
|
|
12828
12834
|
designCreateMany(inputs: $inputs) {
|
|
@@ -12841,11 +12847,11 @@ function Ee(i) {
|
|
|
12841
12847
|
const t = JSON.parse(atob(i.split(".")[1])).exp;
|
|
12842
12848
|
return Math.floor((/* @__PURE__ */ new Date()).getTime() / 1e3) >= t;
|
|
12843
12849
|
}
|
|
12844
|
-
const
|
|
12850
|
+
const Bo = async (i) => {
|
|
12845
12851
|
var s, o;
|
|
12846
12852
|
const e = ((s = Object.entries(localStorage).find(([r, c]) => r.startsWith("CognitoIdentityServiceProvider") && r.endsWith("idToken"))) == null ? void 0 : s[0]) || "", A = localStorage.getItem(e), a = {};
|
|
12847
12853
|
return A && !Ee(A) && (a.Authorization = `Bearer ${A}`), (o = (await F.getShadowGraphqlClient().mutate({
|
|
12848
|
-
mutation:
|
|
12854
|
+
mutation: lo,
|
|
12849
12855
|
errorPolicy: "all",
|
|
12850
12856
|
fetchPolicy: "no-cache",
|
|
12851
12857
|
variables: {
|
|
@@ -12862,11 +12868,11 @@ const go = async (i) => {
|
|
|
12862
12868
|
headers: a
|
|
12863
12869
|
}
|
|
12864
12870
|
})).data) == null ? void 0 : o.designCreate;
|
|
12865
|
-
},
|
|
12871
|
+
}, ho = async (i) => {
|
|
12866
12872
|
var s, o;
|
|
12867
12873
|
const e = ((s = Object.entries(localStorage).find(([r, c]) => r.startsWith("CognitoIdentityServiceProvider") && r.endsWith("idToken"))) == null ? void 0 : s[0]) || "", A = localStorage.getItem(e), a = {};
|
|
12868
12874
|
return A && !Ee(A) && (a.Authorization = `Bearer ${A}`), (o = (await F.getShadowGraphqlClient().mutate({
|
|
12869
|
-
mutation:
|
|
12875
|
+
mutation: go,
|
|
12870
12876
|
errorPolicy: "all",
|
|
12871
12877
|
fetchPolicy: "no-cache",
|
|
12872
12878
|
variables: {
|
|
@@ -12921,7 +12927,7 @@ const go = async (i) => {
|
|
|
12921
12927
|
return t.steps.forEach((n) => {
|
|
12922
12928
|
Object.assign(a, A(n));
|
|
12923
12929
|
}), a;
|
|
12924
|
-
},
|
|
12930
|
+
}, Co = (i, t, e, A) => {
|
|
12925
12931
|
const a = {};
|
|
12926
12932
|
let n = {};
|
|
12927
12933
|
e ? n = tA(e, t, !1) : A && (n = A);
|
|
@@ -12943,7 +12949,7 @@ const go = async (i) => {
|
|
|
12943
12949
|
return a;
|
|
12944
12950
|
}, Oa = (i, t, e, A, a, n, s, o) => {
|
|
12945
12951
|
var h, C;
|
|
12946
|
-
const r = t.basePrice || 0, c = i.priceModifierTotal || 0, l =
|
|
12952
|
+
const r = t.basePrice || 0, c = i.priceModifierTotal || 0, l = Co(A, e, void 0, n), d = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(i.id), B = {
|
|
12947
12953
|
additionalExternalProductId: (h = i.integrationProduct) == null ? void 0 : h.additionalExternalProductId,
|
|
12948
12954
|
additionalExternalVariantId: (C = i.integrationProduct) == null ? void 0 : C.additionalExternalVariantId,
|
|
12949
12955
|
baseCost: r,
|
|
@@ -13059,7 +13065,7 @@ const go = async (i) => {
|
|
|
13059
13065
|
cartSelectionsWithPrices: E,
|
|
13060
13066
|
cartMetadata: C
|
|
13061
13067
|
};
|
|
13062
|
-
},
|
|
13068
|
+
}, wo = async (i, t, e, A, a, n, s, o, r, c, l) => {
|
|
13063
13069
|
var u, E;
|
|
13064
13070
|
r("workflow.steps.finish.finalize.buildingLayouts");
|
|
13065
13071
|
const { designDetails: g, cartSelectionsWithPrices: d, cartMetadata: B } = await za(
|
|
@@ -13074,7 +13080,7 @@ const go = async (i) => {
|
|
|
13074
13080
|
l
|
|
13075
13081
|
);
|
|
13076
13082
|
r("workflow.steps.finish.finalize.creatingDesign");
|
|
13077
|
-
const h = await
|
|
13083
|
+
const h = await Bo(g), C = (u = h == null ? void 0 : h.transaction) == null ? void 0 : u.previewImageLink;
|
|
13078
13084
|
if (!(h != null && h.transaction))
|
|
13079
13085
|
throw new Error("Failed to create design");
|
|
13080
13086
|
r("workflow.steps.finish.finalize.updatingTransaction");
|
|
@@ -13089,7 +13095,7 @@ const go = async (i) => {
|
|
|
13089
13095
|
C,
|
|
13090
13096
|
(E = h == null ? void 0 : h.processExecution) == null ? void 0 : E.id
|
|
13091
13097
|
);
|
|
13092
|
-
},
|
|
13098
|
+
}, uo = async (i, t, e) => {
|
|
13093
13099
|
t("workflow.steps.finish.finalize.buildingLayouts"), await Promise.all(
|
|
13094
13100
|
i.map(async (o) => {
|
|
13095
13101
|
await o.workflowManager.outstandingRequestsPromise();
|
|
@@ -13121,7 +13127,7 @@ const go = async (i) => {
|
|
|
13121
13127
|
))
|
|
13122
13128
|
);
|
|
13123
13129
|
t("workflow.steps.finish.finalize.creatingDesign");
|
|
13124
|
-
const s = await
|
|
13130
|
+
const s = await ho(n.map((o) => o.designDetails));
|
|
13125
13131
|
if (!s)
|
|
13126
13132
|
throw new Error("Failed to create designs");
|
|
13127
13133
|
return t("workflow.steps.finish.finalize.updatingTransaction"), s.map((o, r) => {
|
|
@@ -13140,7 +13146,7 @@ const go = async (i) => {
|
|
|
13140
13146
|
);
|
|
13141
13147
|
});
|
|
13142
13148
|
};
|
|
13143
|
-
class
|
|
13149
|
+
class Eo {
|
|
13144
13150
|
constructor() {
|
|
13145
13151
|
this.localPersistenceKey = "designTransactions", this.storageMethod = "Local", this.designSavedListeners = [];
|
|
13146
13152
|
}
|
|
@@ -13207,7 +13213,7 @@ class uo {
|
|
|
13207
13213
|
throw new L("Unexpected storage method requested");
|
|
13208
13214
|
}
|
|
13209
13215
|
}
|
|
13210
|
-
const Te = new
|
|
13216
|
+
const Te = new Eo(), mo = D`
|
|
13211
13217
|
mutation AddTransactionStakeholder($id: String!, $type: String!, $details: CustomerDetailsInput!) {
|
|
13212
13218
|
transactionAddStakeholder(id: $id, details: $details, type: $type) {
|
|
13213
13219
|
id
|
|
@@ -13222,8 +13228,8 @@ const Te = new uo(), Eo = I`
|
|
|
13222
13228
|
}
|
|
13223
13229
|
}
|
|
13224
13230
|
`;
|
|
13225
|
-
var
|
|
13226
|
-
class
|
|
13231
|
+
var fo = /* @__PURE__ */ ((i) => (i.QuantityChanged = "QuantityChanged", i.PriceBreakChanged = "PriceBreakChanged", i))(fo || {});
|
|
13232
|
+
class Qo {
|
|
13227
13233
|
constructor(t, e) {
|
|
13228
13234
|
var a;
|
|
13229
13235
|
if (this.cachedStepHandles = /* @__PURE__ */ new Map(), this.currentPriceBreak = 1, this.renderableScenes = [], this.renderableSceneCallbacks = [], this.eventCallbacks = /* @__PURE__ */ new Map(), this.debouncedSavedDesignUpdate = KA(async () => {
|
|
@@ -13245,7 +13251,7 @@ class fo {
|
|
|
13245
13251
|
throw new Error("No Workflow ID provided.");
|
|
13246
13252
|
this.client = t;
|
|
13247
13253
|
const A = e.layouts;
|
|
13248
|
-
this.commandContext = new zn(), this.commandContext.initialize(A, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.workflowManager = new
|
|
13254
|
+
this.commandContext = new zn(), this.commandContext.initialize(A, e.reloadedState), this.isReadOnly = e.transaction.isOrdered || !!e.readOnly, this.workflowManager = new _s(
|
|
13249
13255
|
this,
|
|
13250
13256
|
t,
|
|
13251
13257
|
e.workflow,
|
|
@@ -13475,7 +13481,7 @@ class fo {
|
|
|
13475
13481
|
async assignCustomerDetails(t) {
|
|
13476
13482
|
var s, o, r;
|
|
13477
13483
|
const A = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(this.getWorkflowManager().getTransaction().id), n = (r = (o = (s = (await F.getShadowGraphqlClient().mutate({
|
|
13478
|
-
mutation:
|
|
13484
|
+
mutation: mo,
|
|
13479
13485
|
variables: {
|
|
13480
13486
|
id: this.getWorkflowManager().getTransaction().id,
|
|
13481
13487
|
details: t,
|
|
@@ -13553,7 +13559,7 @@ class fo {
|
|
|
13553
13559
|
transactionId: A.id,
|
|
13554
13560
|
workflowViewerLink: "",
|
|
13555
13561
|
workflowViewerReadOnlyLink: ""
|
|
13556
|
-
}) :
|
|
13562
|
+
}) : wo(
|
|
13557
13563
|
this.workflowManager,
|
|
13558
13564
|
this.workflowManager.getWorkflow(),
|
|
13559
13565
|
this.workflowManager.getLayouts(),
|
|
@@ -13632,7 +13638,7 @@ class fo {
|
|
|
13632
13638
|
(this.eventCallbacks.get(t) || []).forEach((e) => e(this));
|
|
13633
13639
|
}
|
|
13634
13640
|
}
|
|
13635
|
-
const
|
|
13641
|
+
const po = [
|
|
13636
13642
|
"altGlyph",
|
|
13637
13643
|
"circle",
|
|
13638
13644
|
"ellipse",
|
|
@@ -13644,19 +13650,19 @@ const Qo = [
|
|
|
13644
13650
|
"textPath",
|
|
13645
13651
|
"tref",
|
|
13646
13652
|
"tspan"
|
|
13647
|
-
],
|
|
13653
|
+
], Do = async (i, t, e) => {
|
|
13648
13654
|
const A = t.data, a = e.data.baseUrl, n = A.assetUrl.replace("localhost", "localstack"), s = a.slice(0, 4) === "http" ? "" : "https://", o = new URL(s + a);
|
|
13649
13655
|
o.searchParams.append("video", yA(JSON.stringify([{ href: n }]))), o.pathname = o.pathname + (o.pathname.slice(-1) === "/" ? "" : "/");
|
|
13650
13656
|
const r = o.toString(), l = `data:image/svg+xml;base64,${yA(await jA(r, { type: "svg" }))}`, g = (B) => {
|
|
13651
13657
|
const h = i.find((w) => w.panelId === B.panelId);
|
|
13652
13658
|
if (!h)
|
|
13653
13659
|
throw new W(B);
|
|
13654
|
-
const C =
|
|
13660
|
+
const C = k();
|
|
13655
13661
|
return new j(
|
|
13656
13662
|
{
|
|
13657
13663
|
id: C,
|
|
13658
13664
|
src: l,
|
|
13659
|
-
type:
|
|
13665
|
+
type: b.Image,
|
|
13660
13666
|
y: B.top,
|
|
13661
13667
|
x: B.left,
|
|
13662
13668
|
width: B.width,
|
|
@@ -13671,14 +13677,14 @@ const Qo = [
|
|
|
13671
13677
|
} catch (B) {
|
|
13672
13678
|
return console.error(B), [];
|
|
13673
13679
|
}
|
|
13674
|
-
},
|
|
13680
|
+
}, Io = async (i, t, e, A) => {
|
|
13675
13681
|
const a = e.data, n = a.assetUrl, s = await qe(n);
|
|
13676
13682
|
try {
|
|
13677
13683
|
const o = xn(a, A.option);
|
|
13678
13684
|
o && (t[A.stepName] = { selectedVariants: [o] });
|
|
13679
13685
|
const r = async (c) => {
|
|
13680
13686
|
var C;
|
|
13681
|
-
const l = await Ea(c, (C = o == null ? void 0 : o.asset) == null ? void 0 : C.fileLink), g = await Fe(l), d =
|
|
13687
|
+
const l = await Ea(c, (C = o == null ? void 0 : o.asset) == null ? void 0 : C.fileLink), g = await Fe(l), d = k(), B = i.find((w) => w.panelId === c.panelId);
|
|
13682
13688
|
if (!B)
|
|
13683
13689
|
throw new W(c);
|
|
13684
13690
|
const h = cA(
|
|
@@ -13696,7 +13702,7 @@ const Qo = [
|
|
|
13696
13702
|
{
|
|
13697
13703
|
id: d,
|
|
13698
13704
|
path: g.path,
|
|
13699
|
-
type:
|
|
13705
|
+
type: b.Frame,
|
|
13700
13706
|
forceImageCover: A.data.forceImageCover,
|
|
13701
13707
|
x: c.left,
|
|
13702
13708
|
y: c.top,
|
|
@@ -13729,12 +13735,12 @@ const Qo = [
|
|
|
13729
13735
|
} catch (o) {
|
|
13730
13736
|
return console.error(o), [];
|
|
13731
13737
|
}
|
|
13732
|
-
},
|
|
13738
|
+
}, Fo = async (i, t, e, A) => {
|
|
13733
13739
|
var Q, p;
|
|
13734
13740
|
const a = e.data, n = A.option;
|
|
13735
13741
|
if (!n)
|
|
13736
13742
|
return console.error(`No option for step ${A.stepName}.`), [];
|
|
13737
|
-
const s = ((Q = n.variants) == null ? void 0 : Q.find((
|
|
13743
|
+
const s = ((Q = n.variants) == null ? void 0 : Q.find((I) => I.id === a.illustrationVariantId)) || Zt(n);
|
|
13738
13744
|
if (!s)
|
|
13739
13745
|
return console.error(`No variant with ID: ${a.illustrationVariantId}`), [];
|
|
13740
13746
|
if (!s.asset)
|
|
@@ -13748,68 +13754,68 @@ const Qo = [
|
|
|
13748
13754
|
return console.error("Failed to read SVG."), [];
|
|
13749
13755
|
sA(h);
|
|
13750
13756
|
const C = {};
|
|
13751
|
-
St(h, (
|
|
13752
|
-
|
|
13753
|
-
const y =
|
|
13757
|
+
St(h, (I) => {
|
|
13758
|
+
po.includes(I.tagName) && !I.attributes.getNamedItem("fill") && I.setAttribute("fill", "#000000");
|
|
13759
|
+
const y = I.attributes.getNamedItem("fill");
|
|
13754
13760
|
if (y && y.value !== "none") {
|
|
13755
13761
|
const x = y.value, P = `spiff-fill-${x.replace(/\W/g, "")}`;
|
|
13756
|
-
|
|
13762
|
+
I.classList.add(P), C[P] = { browserValue: x };
|
|
13757
13763
|
}
|
|
13758
|
-
const S =
|
|
13764
|
+
const S = I.attributes.getNamedItem("stroke");
|
|
13759
13765
|
if (S && S.value !== "none") {
|
|
13760
13766
|
const x = S.value, P = `spiff-stroke-${x.replace(/\W/g, "")}`;
|
|
13761
|
-
|
|
13767
|
+
I.classList.add(P), C[P] = { browserValue: x };
|
|
13762
13768
|
}
|
|
13763
13769
|
});
|
|
13764
13770
|
const u = Qt().serializeToString(h), E = a.colors;
|
|
13765
13771
|
if (E) {
|
|
13766
|
-
for (const [
|
|
13772
|
+
for (const [I, y] of Object.entries(C))
|
|
13767
13773
|
for (const S of Object.keys(E))
|
|
13768
13774
|
if (y.browserValue === S) {
|
|
13769
|
-
C[
|
|
13775
|
+
C[I] = { browserValue: E[S] };
|
|
13770
13776
|
break;
|
|
13771
13777
|
}
|
|
13772
13778
|
}
|
|
13773
|
-
const m = (
|
|
13774
|
-
const y = i.find((x) => x.panelId ===
|
|
13779
|
+
const m = (I) => {
|
|
13780
|
+
const y = i.find((x) => x.panelId === I.panelId);
|
|
13775
13781
|
if (!y)
|
|
13776
|
-
throw new W(
|
|
13777
|
-
const S =
|
|
13782
|
+
throw new W(I);
|
|
13783
|
+
const S = k();
|
|
13778
13784
|
return new j(
|
|
13779
13785
|
{
|
|
13780
13786
|
colors: C,
|
|
13781
13787
|
id: S,
|
|
13782
13788
|
svg: u,
|
|
13783
|
-
type:
|
|
13784
|
-
y:
|
|
13785
|
-
x:
|
|
13786
|
-
rotation:
|
|
13787
|
-
width:
|
|
13788
|
-
height:
|
|
13789
|
-
layer:
|
|
13790
|
-
layerIndex:
|
|
13791
|
-
immutable:
|
|
13789
|
+
type: b.Illustration,
|
|
13790
|
+
y: I.top,
|
|
13791
|
+
x: I.left,
|
|
13792
|
+
rotation: I.rotation,
|
|
13793
|
+
width: I.width,
|
|
13794
|
+
height: I.height,
|
|
13795
|
+
layer: I.layer,
|
|
13796
|
+
layerIndex: I.layerIndex,
|
|
13797
|
+
immutable: I.immutable
|
|
13792
13798
|
},
|
|
13793
13799
|
y
|
|
13794
13800
|
);
|
|
13795
13801
|
}, f = A.data.regions;
|
|
13796
13802
|
try {
|
|
13797
13803
|
return f.map(m);
|
|
13798
|
-
} catch (
|
|
13799
|
-
return console.error(
|
|
13804
|
+
} catch (I) {
|
|
13805
|
+
return console.error(I), [];
|
|
13800
13806
|
}
|
|
13801
|
-
},
|
|
13807
|
+
}, yo = async (i, t, e) => {
|
|
13802
13808
|
const A = await Ta(e.data.module), a = t.data, n = (o, r) => {
|
|
13803
13809
|
const c = i.find((g) => g.panelId === r.panelId);
|
|
13804
13810
|
if (!c)
|
|
13805
13811
|
throw new W(r);
|
|
13806
|
-
const l =
|
|
13812
|
+
const l = k();
|
|
13807
13813
|
return new j(
|
|
13808
13814
|
{
|
|
13809
13815
|
colors: {},
|
|
13810
13816
|
id: l,
|
|
13811
13817
|
svg: o,
|
|
13812
|
-
type:
|
|
13818
|
+
type: b.Illustration,
|
|
13813
13819
|
y: r.top,
|
|
13814
13820
|
x: r.left,
|
|
13815
13821
|
rotation: r.rotation,
|
|
@@ -13828,7 +13834,7 @@ const Qo = [
|
|
|
13828
13834
|
} catch (o) {
|
|
13829
13835
|
return console.error(o), [];
|
|
13830
13836
|
}
|
|
13831
|
-
},
|
|
13837
|
+
}, Mo = async (i, t, e, A) => {
|
|
13832
13838
|
var l, g;
|
|
13833
13839
|
const a = e.data, n = A.option;
|
|
13834
13840
|
if (!n)
|
|
@@ -13846,12 +13852,12 @@ const Qo = [
|
|
|
13846
13852
|
const B = i.find((C) => C.panelId === d.panelId);
|
|
13847
13853
|
if (!B)
|
|
13848
13854
|
throw new W(d);
|
|
13849
|
-
const h =
|
|
13855
|
+
const h = k();
|
|
13850
13856
|
return new j(
|
|
13851
13857
|
{
|
|
13852
13858
|
id: h,
|
|
13853
13859
|
src: o,
|
|
13854
|
-
type:
|
|
13860
|
+
type: b.Image,
|
|
13855
13861
|
y: d.top,
|
|
13856
13862
|
x: d.left,
|
|
13857
13863
|
rotation: d.rotation,
|
|
@@ -13870,7 +13876,7 @@ const Qo = [
|
|
|
13870
13876
|
} catch (d) {
|
|
13871
13877
|
return console.error(d), [];
|
|
13872
13878
|
}
|
|
13873
|
-
},
|
|
13879
|
+
}, So = async (i, t, e, A) => {
|
|
13874
13880
|
var c;
|
|
13875
13881
|
const a = e.data, n = A.option;
|
|
13876
13882
|
if (!n)
|
|
@@ -13903,13 +13909,13 @@ const Qo = [
|
|
|
13903
13909
|
fill="${s == null ? void 0 : s.color}"
|
|
13904
13910
|
/>
|
|
13905
13911
|
</svg>
|
|
13906
|
-
`, h = { "spiff-fill-shape": { browserValue: s.color || "#000000" } }, C =
|
|
13912
|
+
`, h = { "spiff-fill-shape": { browserValue: s.color || "#000000" } }, C = k();
|
|
13907
13913
|
return new j(
|
|
13908
13914
|
{
|
|
13909
13915
|
colors: h,
|
|
13910
13916
|
id: C,
|
|
13911
13917
|
svg: d,
|
|
13912
|
-
type:
|
|
13918
|
+
type: b.Illustration,
|
|
13913
13919
|
y: l.top,
|
|
13914
13920
|
x: l.left,
|
|
13915
13921
|
rotation: l.rotation,
|
|
@@ -13927,11 +13933,11 @@ const Qo = [
|
|
|
13927
13933
|
} catch (l) {
|
|
13928
13934
|
return console.error(l), [];
|
|
13929
13935
|
}
|
|
13930
|
-
},
|
|
13936
|
+
}, xo = async (i, t, e) => {
|
|
13931
13937
|
const A = [], n = (() => {
|
|
13932
13938
|
var c, l;
|
|
13933
13939
|
return t.type === M.ProductOverlay ? e || ((c = t.data.asset) == null ? void 0 : c.fileLink) || "" : ((l = t.data.asset) == null ? void 0 : l.fileLink) || "";
|
|
13934
|
-
})(), o = (() => n.endsWith(".jpeg") || n.endsWith(".jpg") || n.endsWith(".png") ?
|
|
13940
|
+
})(), o = (() => n.endsWith(".jpeg") || n.endsWith(".jpg") || n.endsWith(".png") ? b.Image : (n.endsWith(".svg"), b.Illustration))(), r = t.data.regions;
|
|
13935
13941
|
if (o === "image")
|
|
13936
13942
|
try {
|
|
13937
13943
|
r.forEach((c) => {
|
|
@@ -13939,7 +13945,7 @@ const Qo = [
|
|
|
13939
13945
|
if (!l)
|
|
13940
13946
|
throw new W(c);
|
|
13941
13947
|
const g = {
|
|
13942
|
-
id:
|
|
13948
|
+
id: k(),
|
|
13943
13949
|
src: n,
|
|
13944
13950
|
type: o,
|
|
13945
13951
|
y: c.top,
|
|
@@ -13972,7 +13978,7 @@ const Qo = [
|
|
|
13972
13978
|
if (!d)
|
|
13973
13979
|
throw new W(g);
|
|
13974
13980
|
const B = {
|
|
13975
|
-
id:
|
|
13981
|
+
id: k(),
|
|
13976
13982
|
src: n,
|
|
13977
13983
|
asset_key: n,
|
|
13978
13984
|
svg: l(c),
|
|
@@ -13994,7 +14000,7 @@ const Qo = [
|
|
|
13994
14000
|
});
|
|
13995
14001
|
}
|
|
13996
14002
|
return A;
|
|
13997
|
-
},
|
|
14003
|
+
}, Yo = async (i, t, e, A) => {
|
|
13998
14004
|
const a = [], n = e.data, s = 30, o = (w) => w.vertical ? "center" : w.textAlign || "center", r = () => {
|
|
13999
14005
|
var m;
|
|
14000
14006
|
const w = A.option;
|
|
@@ -14032,7 +14038,7 @@ const Qo = [
|
|
|
14032
14038
|
continue;
|
|
14033
14039
|
const E = {
|
|
14034
14040
|
stepName: e.name,
|
|
14035
|
-
id:
|
|
14041
|
+
id: k(),
|
|
14036
14042
|
align: o(A.data),
|
|
14037
14043
|
curved: A.data.curved,
|
|
14038
14044
|
fill: n.color || h || "#000000",
|
|
@@ -14044,7 +14050,7 @@ const Qo = [
|
|
|
14044
14050
|
paths: A.data.paths,
|
|
14045
14051
|
rotation: w.rotation,
|
|
14046
14052
|
text: d,
|
|
14047
|
-
type:
|
|
14053
|
+
type: b.Textbox,
|
|
14048
14054
|
vertical: A.data.vertical,
|
|
14049
14055
|
verticalAlign: A.data.verticalAlign || "middle",
|
|
14050
14056
|
width: w.width,
|
|
@@ -14083,7 +14089,7 @@ const Qo = [
|
|
|
14083
14089
|
a.push(new j(E, u));
|
|
14084
14090
|
}
|
|
14085
14091
|
return a;
|
|
14086
|
-
},
|
|
14092
|
+
}, Po = (i, t) => i.conditions ? i.conditions.every((e) => {
|
|
14087
14093
|
const A = t[e.targetStepName];
|
|
14088
14094
|
if (A && A.selectedVariants) {
|
|
14089
14095
|
const a = A.selectedVariants;
|
|
@@ -14092,7 +14098,7 @@ const Qo = [
|
|
|
14092
14098
|
);
|
|
14093
14099
|
}
|
|
14094
14100
|
return !1;
|
|
14095
|
-
}) : !0,
|
|
14101
|
+
}) : !0, vo = async (i, t, e, A) => {
|
|
14096
14102
|
const a = [], n = {};
|
|
14097
14103
|
for (const s of i) {
|
|
14098
14104
|
const o = t.steps.find((r) => r.stepName === s.name);
|
|
@@ -14100,18 +14106,18 @@ const Qo = [
|
|
|
14100
14106
|
switch (o.type) {
|
|
14101
14107
|
case M.DigitalContent:
|
|
14102
14108
|
a.push(
|
|
14103
|
-
...await
|
|
14109
|
+
...await Do(e, s, o)
|
|
14104
14110
|
);
|
|
14105
14111
|
break;
|
|
14106
14112
|
case M.Frame:
|
|
14107
14113
|
case M.Photo:
|
|
14108
14114
|
a.push(
|
|
14109
|
-
...await
|
|
14115
|
+
...await Io(e, n, s, o)
|
|
14110
14116
|
);
|
|
14111
14117
|
break;
|
|
14112
14118
|
case M.Illustration:
|
|
14113
14119
|
a.push(
|
|
14114
|
-
...await
|
|
14120
|
+
...await Fo(
|
|
14115
14121
|
e,
|
|
14116
14122
|
n,
|
|
14117
14123
|
s,
|
|
@@ -14120,32 +14126,32 @@ const Qo = [
|
|
|
14120
14126
|
);
|
|
14121
14127
|
break;
|
|
14122
14128
|
case M.Module:
|
|
14123
|
-
a.push(...await
|
|
14129
|
+
a.push(...await yo(e, s, o));
|
|
14124
14130
|
break;
|
|
14125
14131
|
case M.Picture:
|
|
14126
14132
|
a.push(
|
|
14127
|
-
...await
|
|
14133
|
+
...await Mo(e, n, s, o)
|
|
14128
14134
|
);
|
|
14129
14135
|
break;
|
|
14130
14136
|
case M.Shape:
|
|
14131
14137
|
a.push(
|
|
14132
|
-
...await
|
|
14138
|
+
...await So(e, n, s, o)
|
|
14133
14139
|
);
|
|
14134
14140
|
break;
|
|
14135
14141
|
case M.Text:
|
|
14136
14142
|
a.push(
|
|
14137
|
-
...await
|
|
14143
|
+
...await Yo(e, n, s, o)
|
|
14138
14144
|
);
|
|
14139
14145
|
break;
|
|
14140
14146
|
}
|
|
14141
14147
|
}
|
|
14142
14148
|
for (const s of t.steps)
|
|
14143
|
-
s.type !== M.SilentIllustration && s.type !== M.ProductOverlay ||
|
|
14144
|
-
...await
|
|
14149
|
+
s.type !== M.SilentIllustration && s.type !== M.ProductOverlay || Po(s, n) && a.push(
|
|
14150
|
+
...await xo(e, s, A)
|
|
14145
14151
|
);
|
|
14146
14152
|
return a;
|
|
14147
14153
|
};
|
|
14148
|
-
class
|
|
14154
|
+
class No {
|
|
14149
14155
|
constructor(t) {
|
|
14150
14156
|
this.handleCompleteRender = null;
|
|
14151
14157
|
const e = /* @__PURE__ */ new Map();
|
|
@@ -14166,14 +14172,14 @@ class vo {
|
|
|
14166
14172
|
return this.layouts;
|
|
14167
14173
|
}
|
|
14168
14174
|
}
|
|
14169
|
-
const
|
|
14175
|
+
const bo = () => new Promise((i, t) => {
|
|
14170
14176
|
try {
|
|
14171
14177
|
const A = lt().getContext("webgl2");
|
|
14172
14178
|
i(!!A);
|
|
14173
14179
|
} catch {
|
|
14174
14180
|
i(!1);
|
|
14175
14181
|
}
|
|
14176
|
-
}), ko =
|
|
14182
|
+
}), ko = bo();
|
|
14177
14183
|
class Ro {
|
|
14178
14184
|
constructor(t, e, A, a) {
|
|
14179
14185
|
this.hasSetStaticContext = !1, this.interactiveDirty = !1, this.staticCtxDirty = !1, this.lastRequestedRenderArguments = void 0, this.lastCompletedStaticRender = void 0, this.renderQueue = new ua(2), this.id = t, this.name = e, this.service = A, this.panelSize = a;
|
|
@@ -14230,7 +14236,7 @@ class Ro {
|
|
|
14230
14236
|
return;
|
|
14231
14237
|
}
|
|
14232
14238
|
this.renderQueue.enqueue(
|
|
14233
|
-
new
|
|
14239
|
+
new Ho(
|
|
14234
14240
|
this.getID(),
|
|
14235
14241
|
A,
|
|
14236
14242
|
await ko,
|
|
@@ -14242,7 +14248,7 @@ class Ro {
|
|
|
14242
14248
|
);
|
|
14243
14249
|
}
|
|
14244
14250
|
}
|
|
14245
|
-
class
|
|
14251
|
+
class Ho extends wa {
|
|
14246
14252
|
// TODO: Do we need to pass this whole array in?
|
|
14247
14253
|
constructor(t, e, A, a, n) {
|
|
14248
14254
|
super(), this.layoutId = t, this.ctx = e, this.nonPOTSupport = A, this.onRender = a, this.layouts = n;
|
|
@@ -14310,7 +14316,7 @@ class bo extends wa {
|
|
|
14310
14316
|
d.resize(r, c), await d.render(), this.onRender();
|
|
14311
14317
|
}
|
|
14312
14318
|
}
|
|
14313
|
-
const
|
|
14319
|
+
const cc = (i, t) => {
|
|
14314
14320
|
const e = [];
|
|
14315
14321
|
return i.forEach((A) => {
|
|
14316
14322
|
const a = t.steps.find((n) => n.stepName === A.stepName);
|
|
@@ -14321,16 +14327,16 @@ const rc = (i, t) => {
|
|
|
14321
14327
|
}
|
|
14322
14328
|
});
|
|
14323
14329
|
}), e;
|
|
14324
|
-
},
|
|
14330
|
+
}, lc = async (i, t, e, A) => {
|
|
14325
14331
|
let a = {
|
|
14326
14332
|
serializableWorkflow: { steps: [] },
|
|
14327
14333
|
layouts: {}
|
|
14328
14334
|
};
|
|
14329
14335
|
a = new U(e.map((r) => new Sa(r))).apply(a);
|
|
14330
|
-
const s = await
|
|
14336
|
+
const s = await vo(i, t, e, A);
|
|
14331
14337
|
return new U(s).apply(a);
|
|
14332
14338
|
};
|
|
14333
|
-
class
|
|
14339
|
+
class Uo {
|
|
14334
14340
|
constructor(t) {
|
|
14335
14341
|
this.handleCache = {}, this.bundle = t;
|
|
14336
14342
|
}
|
|
@@ -14374,7 +14380,7 @@ class Ho {
|
|
|
14374
14380
|
async createHandle(t) {
|
|
14375
14381
|
switch (t.type) {
|
|
14376
14382
|
case it.FileUpload:
|
|
14377
|
-
return new
|
|
14383
|
+
return new Go(this.bundle, t);
|
|
14378
14384
|
case it.ColorOption:
|
|
14379
14385
|
return new JA(
|
|
14380
14386
|
this.bundle,
|
|
@@ -14386,7 +14392,7 @@ class Ho {
|
|
|
14386
14392
|
return (e == null ? void 0 : e.type) === "Color" ? new JA(this.bundle, t, e) : new ja(this.bundle, t, e);
|
|
14387
14393
|
}
|
|
14388
14394
|
case it.Text:
|
|
14389
|
-
return new
|
|
14395
|
+
return new To(this.bundle, t);
|
|
14390
14396
|
default:
|
|
14391
14397
|
throw new Error("Unhandled Global Property Aspect Type");
|
|
14392
14398
|
}
|
|
@@ -14447,7 +14453,7 @@ class mA {
|
|
|
14447
14453
|
return this.bundle.getGlobalPropertyStateManager().getAspect(this.property.name);
|
|
14448
14454
|
}
|
|
14449
14455
|
}
|
|
14450
|
-
class
|
|
14456
|
+
class Go extends mA {
|
|
14451
14457
|
constructor(t, e) {
|
|
14452
14458
|
super(t, e);
|
|
14453
14459
|
}
|
|
@@ -14588,7 +14594,7 @@ class Uo extends mA {
|
|
|
14588
14594
|
);
|
|
14589
14595
|
}
|
|
14590
14596
|
}
|
|
14591
|
-
class
|
|
14597
|
+
class To extends mA {
|
|
14592
14598
|
constructor(t, e) {
|
|
14593
14599
|
super(t, e);
|
|
14594
14600
|
}
|
|
@@ -14738,7 +14744,7 @@ class JA extends ja {
|
|
|
14738
14744
|
return ((t = this.bundle.getGlobalPropertyStateManager().getAspectStorage(this.property.name)) == null ? void 0 : t.customColor) || ((e = this.getCurrentVariant()) == null ? void 0 : e.getColor()) || "#ffffff";
|
|
14739
14745
|
}
|
|
14740
14746
|
}
|
|
14741
|
-
class
|
|
14747
|
+
class Jo {
|
|
14742
14748
|
constructor(t, e, A, a, n) {
|
|
14743
14749
|
this.bundleId = t, this.bundleOwnerId = e, this.configuration = A, this.bundleOptions = n;
|
|
14744
14750
|
const s = n == null ? void 0 : n.existingGlobalPropertyState;
|
|
@@ -14877,7 +14883,7 @@ class To {
|
|
|
14877
14883
|
throw new Error(`Unable to create global property state for bundle: ${this.bundleId}`);
|
|
14878
14884
|
}
|
|
14879
14885
|
}
|
|
14880
|
-
class
|
|
14886
|
+
class Lo {
|
|
14881
14887
|
constructor(t) {
|
|
14882
14888
|
this.setState(t);
|
|
14883
14889
|
}
|
|
@@ -14960,7 +14966,7 @@ class Jo {
|
|
|
14960
14966
|
};
|
|
14961
14967
|
}
|
|
14962
14968
|
}
|
|
14963
|
-
class
|
|
14969
|
+
class Oo {
|
|
14964
14970
|
constructor(t) {
|
|
14965
14971
|
this.fullFetched = !1, this.collection = t;
|
|
14966
14972
|
const e = this.collection.productCollectionProducts;
|
|
@@ -15074,7 +15080,7 @@ class Lo {
|
|
|
15074
15080
|
}
|
|
15075
15081
|
getTransformCollection() {
|
|
15076
15082
|
if (this.collection.transformCollection)
|
|
15077
|
-
return new
|
|
15083
|
+
return new zo(this.collection.transformCollection);
|
|
15078
15084
|
}
|
|
15079
15085
|
/**
|
|
15080
15086
|
* The raw collection resource. This is generally not needed and should be avoided.
|
|
@@ -15235,7 +15241,7 @@ class Tt {
|
|
|
15235
15241
|
return this.workflow.imageUrl;
|
|
15236
15242
|
}
|
|
15237
15243
|
}
|
|
15238
|
-
class
|
|
15244
|
+
class zo {
|
|
15239
15245
|
constructor(t) {
|
|
15240
15246
|
this.collection = t;
|
|
15241
15247
|
}
|
|
@@ -15255,10 +15261,10 @@ class Oo {
|
|
|
15255
15261
|
* @returns The transforms in this collection.
|
|
15256
15262
|
*/
|
|
15257
15263
|
getTransforms() {
|
|
15258
|
-
return this.collection.transforms.map((t) => new
|
|
15264
|
+
return this.collection.transforms.map((t) => new jo(t));
|
|
15259
15265
|
}
|
|
15260
15266
|
}
|
|
15261
|
-
class
|
|
15267
|
+
class jo {
|
|
15262
15268
|
constructor(t) {
|
|
15263
15269
|
this.transform = t;
|
|
15264
15270
|
}
|
|
@@ -15287,21 +15293,23 @@ class zo {
|
|
|
15287
15293
|
}
|
|
15288
15294
|
class Je {
|
|
15289
15295
|
constructor(t, e, A, a, n, s) {
|
|
15290
|
-
var
|
|
15291
|
-
this.eventListeners = /* @__PURE__ */ new Map(), this.workflowExperiences = [], this.client = t, this.id = e.id, this.name = e.name || "", this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = n, this.metadata = new Map(((
|
|
15296
|
+
var r, c, l;
|
|
15297
|
+
this.eventListeners = /* @__PURE__ */ new Map(), this.workflowExperiences = [], this.client = t, this.id = e.id, this.name = e.name || "", this.shareActions = e.bundleShareActions, this.workflowViewerLink = e.workflowViewerLink, this.workflowViewerAmendLink = e.workflowViewerAmendLink, this.ownerId = n, this.metadata = new Map(((r = e.metadata) == null ? void 0 : r.map((g) => [g.key, g.value])) || []), this.completed = e.completed ?? !1, this.productCollection = e.productCollection, this.bundleStateManager = new Lo(e.bundleStateData);
|
|
15298
|
+
const o = (c = this.productCollection) == null ? void 0 : c.globalPropertyConfiguration;
|
|
15299
|
+
this.globalConfigurationPropertyId = o == null ? void 0 : o.id, this.globalPropertyStateManager = new Jo(
|
|
15292
15300
|
this.id,
|
|
15293
15301
|
this.ownerId,
|
|
15294
|
-
|
|
15302
|
+
o,
|
|
15295
15303
|
this.checkConditionalHandlesChanged.bind(this),
|
|
15296
15304
|
s
|
|
15297
|
-
), this.globalPropertyHandleService = new
|
|
15298
|
-
this.loadExistingWorkflowExperiences(((
|
|
15305
|
+
), this.globalPropertyHandleService = new Uo(this), this.setPreviewService(A), this.initializationPromise = Promise.all([
|
|
15306
|
+
this.loadExistingWorkflowExperiences(((l = e.transactions) == null ? void 0 : l.map((g) => g.id)) || [], {
|
|
15299
15307
|
...a,
|
|
15300
15308
|
bundleOwnerId: n
|
|
15301
15309
|
}),
|
|
15302
15310
|
this.globalPropertyStateManager.getInitializationPromise()
|
|
15303
|
-
]), this.initializationPromise.catch((
|
|
15304
|
-
console.error(`Bundle initialization failed: ${
|
|
15311
|
+
]), this.initializationPromise.catch((g) => {
|
|
15312
|
+
console.error(`Bundle initialization failed: ${g}`);
|
|
15305
15313
|
});
|
|
15306
15314
|
}
|
|
15307
15315
|
setBundleOptions(t) {
|
|
@@ -15365,7 +15373,7 @@ class Je {
|
|
|
15365
15373
|
return this.workflowExperiences.map((t) => t.getTotalPriceSubunits()).reduce((t, e) => t + e, 0);
|
|
15366
15374
|
}
|
|
15367
15375
|
getProductCollection() {
|
|
15368
|
-
return this.productCollection ? new
|
|
15376
|
+
return this.productCollection ? new Oo(this.productCollection) : void 0;
|
|
15369
15377
|
}
|
|
15370
15378
|
async addWorkflowExperience(t) {
|
|
15371
15379
|
t.setBundle(this), await this.appendWorkflowExperience(t), await this.injectExperienceIntoPreviewService(t), await t.getWorkflowManager().getInitializationPromise();
|
|
@@ -15413,7 +15421,7 @@ class Je {
|
|
|
15413
15421
|
throw new Error("Unable to add transaction to bundle - Already Exists!");
|
|
15414
15422
|
const s = (N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map()).get(A);
|
|
15415
15423
|
await F.getShadowGraphqlClient().mutate({
|
|
15416
|
-
mutation:
|
|
15424
|
+
mutation: Rs,
|
|
15417
15425
|
variables: {
|
|
15418
15426
|
id: this.id,
|
|
15419
15427
|
transactionId: A
|
|
@@ -15626,7 +15634,7 @@ class Je {
|
|
|
15626
15634
|
async finish(t, e) {
|
|
15627
15635
|
if (this.completed)
|
|
15628
15636
|
return await F.getShadowGraphqlClient().mutate({
|
|
15629
|
-
mutation:
|
|
15637
|
+
mutation: Vs,
|
|
15630
15638
|
variables: {
|
|
15631
15639
|
bundleId: this.id
|
|
15632
15640
|
}
|
|
@@ -15635,7 +15643,7 @@ class Je {
|
|
|
15635
15643
|
items: [],
|
|
15636
15644
|
bundleOwnerId: this.ownerId
|
|
15637
15645
|
};
|
|
15638
|
-
const A = await
|
|
15646
|
+
const A = await uo(
|
|
15639
15647
|
this.workflowExperiences.map((a) => ({
|
|
15640
15648
|
workflowManager: a.getWorkflowManager(),
|
|
15641
15649
|
workflow: a.getWorkflowManager().getWorkflow(),
|
|
@@ -15686,6 +15694,18 @@ class Je {
|
|
|
15686
15694
|
activateWorkflowExperienceTransform(t, e) {
|
|
15687
15695
|
return this.bundleStateManager.activateWorkflowExperienceTransform(t, e), this.updateBundle();
|
|
15688
15696
|
}
|
|
15697
|
+
async assignGlobalPropertyConfiguration(t) {
|
|
15698
|
+
await F.getShadowGraphqlClient().mutate({
|
|
15699
|
+
mutation: js,
|
|
15700
|
+
variables: {
|
|
15701
|
+
bundleId: this.id,
|
|
15702
|
+
globalPropertyConfigurationId: t
|
|
15703
|
+
},
|
|
15704
|
+
context: {
|
|
15705
|
+
bundleOwnerId: this.ownerId
|
|
15706
|
+
}
|
|
15707
|
+
}), this.globalConfigurationPropertyId = t;
|
|
15708
|
+
}
|
|
15689
15709
|
async assignProductCollection(t) {
|
|
15690
15710
|
var A, a;
|
|
15691
15711
|
const e = await F.getShadowGraphqlClient().mutate({
|
|
@@ -15700,9 +15720,11 @@ class Je {
|
|
|
15700
15720
|
bundleOwnerId: this.ownerId
|
|
15701
15721
|
}
|
|
15702
15722
|
});
|
|
15703
|
-
(a = e.data) != null && a.bundleAssignProductCollection.productCollection &&
|
|
15704
|
-
e.data.bundleAssignProductCollection.productCollection
|
|
15705
|
-
|
|
15723
|
+
if ((a = e.data) != null && a.bundleAssignProductCollection.productCollection && !this.globalConfigurationPropertyId) {
|
|
15724
|
+
this.productCollection = e.data.bundleAssignProductCollection.productCollection;
|
|
15725
|
+
const n = e.data.bundleAssignProductCollection.productCollection.globalPropertyConfiguration;
|
|
15726
|
+
this.globalPropertyStateManager.setConfiguration(n), this.globalConfigurationPropertyId = n == null ? void 0 : n.id;
|
|
15727
|
+
}
|
|
15706
15728
|
}
|
|
15707
15729
|
onModelLoadEvent(t) {
|
|
15708
15730
|
t.eventType === "unload" || !t.modelContainer || (t.modelContainer.registerMaterialSelectedCallback(() => this.onModelSelectedEvent(t.modelContainer, !0)), t.modelContainer.registerMaterialDeselectedCallback(() => this.onModelSelectedEvent(t.modelContainer, !1)));
|
|
@@ -15745,7 +15767,7 @@ class Je {
|
|
|
15745
15767
|
async updateBundle() {
|
|
15746
15768
|
var e;
|
|
15747
15769
|
if (!((e = (await F.getShadowGraphqlClient().mutate({
|
|
15748
|
-
mutation:
|
|
15770
|
+
mutation: ks,
|
|
15749
15771
|
variables: {
|
|
15750
15772
|
id: this.id,
|
|
15751
15773
|
name: this.name,
|
|
@@ -15807,7 +15829,7 @@ class Je {
|
|
|
15807
15829
|
}
|
|
15808
15830
|
async approve(t) {
|
|
15809
15831
|
await F.getShadowGraphqlClient().mutate({
|
|
15810
|
-
mutation:
|
|
15832
|
+
mutation: Ws,
|
|
15811
15833
|
errorPolicy: "all",
|
|
15812
15834
|
fetchPolicy: "no-cache",
|
|
15813
15835
|
variables: {
|
|
@@ -15818,7 +15840,7 @@ class Je {
|
|
|
15818
15840
|
}
|
|
15819
15841
|
async reject(t) {
|
|
15820
15842
|
await F.getShadowGraphqlClient().mutate({
|
|
15821
|
-
mutation:
|
|
15843
|
+
mutation: Xs,
|
|
15822
15844
|
errorPolicy: "all",
|
|
15823
15845
|
fetchPolicy: "no-cache",
|
|
15824
15846
|
variables: {
|
|
@@ -15828,14 +15850,14 @@ class Je {
|
|
|
15828
15850
|
});
|
|
15829
15851
|
}
|
|
15830
15852
|
}
|
|
15831
|
-
const
|
|
15853
|
+
const Ko = D`
|
|
15832
15854
|
mutation processFlowCreate($processFlowId: String!, $inputs: [String]!) {
|
|
15833
15855
|
processExecutionCreate(processFlowId: $processFlowId, inputs: $inputs) {
|
|
15834
15856
|
id
|
|
15835
15857
|
}
|
|
15836
15858
|
}
|
|
15837
15859
|
`;
|
|
15838
|
-
class
|
|
15860
|
+
class Vo {
|
|
15839
15861
|
/**
|
|
15840
15862
|
*
|
|
15841
15863
|
* @param id
|
|
@@ -15846,7 +15868,7 @@ class Ko {
|
|
|
15846
15868
|
async execute(t, e, A) {
|
|
15847
15869
|
var g, d, B;
|
|
15848
15870
|
const n = (d = (g = (await F.getShadowGraphqlClient().mutate({
|
|
15849
|
-
mutation:
|
|
15871
|
+
mutation: Ko,
|
|
15850
15872
|
variables: {
|
|
15851
15873
|
processFlowId: t,
|
|
15852
15874
|
inputs: [...e.map((h) => h.getValueForTransmission())]
|
|
@@ -15862,7 +15884,7 @@ class Ko {
|
|
|
15862
15884
|
let o = !1, r = 0, c, l;
|
|
15863
15885
|
for (; !o; ) {
|
|
15864
15886
|
c = await F.getShadowGraphqlClient().query({
|
|
15865
|
-
query:
|
|
15887
|
+
query: D`
|
|
15866
15888
|
query getProcessFlowExecution($ids: [String]!) {
|
|
15867
15889
|
processExecutions(ids: $ids) {
|
|
15868
15890
|
id
|
|
@@ -15888,7 +15910,7 @@ class Ko {
|
|
|
15888
15910
|
"Execution has failed to complete. See Automation > FLows in Flight on partner account on SpiffCommerce Hub."
|
|
15889
15911
|
);
|
|
15890
15912
|
if (h.completedAt) {
|
|
15891
|
-
o = !0, l = new
|
|
15913
|
+
o = !0, l = new Wo(h);
|
|
15892
15914
|
break;
|
|
15893
15915
|
}
|
|
15894
15916
|
r += 1;
|
|
@@ -15902,7 +15924,7 @@ class Ko {
|
|
|
15902
15924
|
return Promise.resolve(l);
|
|
15903
15925
|
}
|
|
15904
15926
|
}
|
|
15905
|
-
class
|
|
15927
|
+
class Wo {
|
|
15906
15928
|
constructor(t) {
|
|
15907
15929
|
this.execution = t;
|
|
15908
15930
|
}
|
|
@@ -15987,8 +16009,8 @@ class fA {
|
|
|
15987
16009
|
return t.startsWith("[") ? JSON.stringify(JSON.parse(t)) : t;
|
|
15988
16010
|
}
|
|
15989
16011
|
}
|
|
15990
|
-
var
|
|
15991
|
-
class
|
|
16012
|
+
var Xo = /* @__PURE__ */ ((i) => (i.Transaction = "Transaction", i.Bundle = "Bundle", i.Product = "Product", i.Variant = "Variant", i.Option = "Option", i.LineItem = "LineItem", i.Asset = "Asset", i))(Xo || {});
|
|
16013
|
+
class gc extends fA {
|
|
15992
16014
|
constructor(t) {
|
|
15993
16015
|
super(`"${t}"`);
|
|
15994
16016
|
}
|
|
@@ -16003,7 +16025,7 @@ class Ka extends fA {
|
|
|
16003
16025
|
return t.match(/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i);
|
|
16004
16026
|
}
|
|
16005
16027
|
}
|
|
16006
|
-
class
|
|
16028
|
+
class dc extends fA {
|
|
16007
16029
|
constructor(t) {
|
|
16008
16030
|
super(`[${t.map((e) => e.getRaw()).join(",")}]`);
|
|
16009
16031
|
}
|
|
@@ -16050,7 +16072,7 @@ class LA {
|
|
|
16050
16072
|
return t.sort((e, A) => (e.index ?? 0) - (A.index ?? 0)).map((e) => new Tt(e));
|
|
16051
16073
|
}
|
|
16052
16074
|
}
|
|
16053
|
-
const OA =
|
|
16075
|
+
const OA = D`
|
|
16054
16076
|
query GetCustomer($emailAddress: String!) {
|
|
16055
16077
|
customer(emailAddress: $emailAddress) {
|
|
16056
16078
|
id
|
|
@@ -16061,7 +16083,7 @@ const OA = I`
|
|
|
16061
16083
|
}
|
|
16062
16084
|
}
|
|
16063
16085
|
}
|
|
16064
|
-
`,
|
|
16086
|
+
`, qo = D`
|
|
16065
16087
|
mutation CustomerCreate($details: CustomerDetailsInput!) {
|
|
16066
16088
|
customerCreate(details: $details) {
|
|
16067
16089
|
id
|
|
@@ -16071,7 +16093,7 @@ const OA = I`
|
|
|
16071
16093
|
}
|
|
16072
16094
|
}
|
|
16073
16095
|
}
|
|
16074
|
-
`,
|
|
16096
|
+
`, Zo = D`
|
|
16075
16097
|
mutation CustomerAuthenticate($loginToken: String!) {
|
|
16076
16098
|
customerAuthenticate(loginToken: $loginToken) {
|
|
16077
16099
|
id
|
|
@@ -16101,11 +16123,11 @@ const OA = I`
|
|
|
16101
16123
|
}
|
|
16102
16124
|
}
|
|
16103
16125
|
}
|
|
16104
|
-
`,
|
|
16126
|
+
`, $o = D`
|
|
16105
16127
|
mutation CustomerGenerateVerificationCode($emailAddress: String!) {
|
|
16106
16128
|
customerGenerateVerificationCode(emailAddress: $emailAddress)
|
|
16107
16129
|
}
|
|
16108
|
-
`,
|
|
16130
|
+
`, _o = D`
|
|
16109
16131
|
mutation CustomerVerifyCode($emailAddress: String!, $verificationCode: String!) {
|
|
16110
16132
|
customerVerifyCode(emailAddress: $emailAddress, verificationCode: $verificationCode) {
|
|
16111
16133
|
id
|
|
@@ -16136,7 +16158,7 @@ const OA = I`
|
|
|
16136
16158
|
}
|
|
16137
16159
|
}
|
|
16138
16160
|
}
|
|
16139
|
-
`,
|
|
16161
|
+
`, tr = D`
|
|
16140
16162
|
query CustomerMetafields($id: String!) {
|
|
16141
16163
|
metafields(entityId: $id) {
|
|
16142
16164
|
id
|
|
@@ -16154,7 +16176,7 @@ const OA = I`
|
|
|
16154
16176
|
}
|
|
16155
16177
|
}
|
|
16156
16178
|
}
|
|
16157
|
-
`,
|
|
16179
|
+
`, er = async (i, t) => {
|
|
16158
16180
|
var a;
|
|
16159
16181
|
const e = await F.getShadowGraphqlClient().query({
|
|
16160
16182
|
query: un(((a = t == null ? void 0 : t.assets) == null ? void 0 : a.metadata) || !1),
|
|
@@ -16178,7 +16200,7 @@ const OA = I`
|
|
|
16178
16200
|
}), zt.set({ id: s.option.id }, Promise.resolve(s.option)));
|
|
16179
16201
|
}), n.finalizeStepConfig || (n.finalizeStepConfig = {}), n.finalizeStepConfig.termsMarkdown = n.partner.termsMarkdown;
|
|
16180
16202
|
}), A;
|
|
16181
|
-
},
|
|
16203
|
+
}, Ar = async (i, t) => {
|
|
16182
16204
|
const A = (await t).find((a) => a.id === i);
|
|
16183
16205
|
if (!A)
|
|
16184
16206
|
throw new Error(`Workflow not found: ${i}`);
|
|
@@ -16187,12 +16209,12 @@ const OA = I`
|
|
|
16187
16209
|
const e = i.map((o) => zt.get({ id: o, options: t })), A = i.filter((o, r) => e[r] === void 0);
|
|
16188
16210
|
if (A.length === 0)
|
|
16189
16211
|
return Promise.all(e);
|
|
16190
|
-
const a =
|
|
16191
|
-
(o) => zt.set({ id: o, options: t },
|
|
16212
|
+
const a = er(A, t), n = A.map(
|
|
16213
|
+
(o) => zt.set({ id: o, options: t }, Ar(o, a))
|
|
16192
16214
|
), s = e.filter((o) => o !== void 0);
|
|
16193
16215
|
return await Promise.all(s.concat(n));
|
|
16194
|
-
},
|
|
16195
|
-
id:
|
|
16216
|
+
}, Bc = async (i, t) => (await Va([i], t))[0], ar = (i) => i.sort((t, e) => t.index - e.index).map((t) => ({
|
|
16217
|
+
id: k(),
|
|
16196
16218
|
panelId: t.name,
|
|
16197
16219
|
name: t.name,
|
|
16198
16220
|
index: t.index,
|
|
@@ -16204,11 +16226,11 @@ const OA = I`
|
|
|
16204
16226
|
previewRegion: t.previewRegion,
|
|
16205
16227
|
useEditableArea: t.useEditableArea,
|
|
16206
16228
|
editableArea: t.editableArea
|
|
16207
|
-
})),
|
|
16229
|
+
})), ir = (i, t) => {
|
|
16208
16230
|
const e = i.workflowState, A = e ? JSON.parse(e) : void 0;
|
|
16209
|
-
return A ? Object.values(A.layouts).map((a) => a.layout) :
|
|
16231
|
+
return A ? Object.values(A.layouts).map((a) => a.layout) : ar(t.panels);
|
|
16210
16232
|
};
|
|
16211
|
-
class
|
|
16233
|
+
class hc {
|
|
16212
16234
|
constructor(t) {
|
|
16213
16235
|
this.activeIntegration = void 0, this.updateTransactionState = async (e) => {
|
|
16214
16236
|
try {
|
|
@@ -16219,7 +16241,7 @@ class Bc {
|
|
|
16219
16241
|
} catch (A) {
|
|
16220
16242
|
throw console.error(A), new rt("Critical - Unable to synchronize workflow state with server.");
|
|
16221
16243
|
}
|
|
16222
|
-
}, this.options = t, this.options.applicationKey && pi(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.
|
|
16244
|
+
}, this.options = t, this.options.applicationKey && pi(this.options.applicationKey), console.debug("------------------------"), console.debug("Spiff Commerce Core SDK"), console.debug("Version: 26.6.0"), console.debug(`Application Key Provided: ${!!this.options.applicationKey}`), console.debug("------------------------");
|
|
16223
16245
|
}
|
|
16224
16246
|
configure(t) {
|
|
16225
16247
|
ut.setHubUrl(t.hubUrl), ut.setServerUrl(t.serverUrl), ut.setServicesApiUrl(t.servicesApiUrl), this.marketplaceThemeInstallId = t.marketplaceThemeInstallId, this.marketplaceThemeInstallConfigurationId = t.marketplaceThemeInstallConfigurationId, t.bearerAuthenticationToken && Ii(t.bearerAuthenticationToken), this.options.applicationKey && this.getIntegration();
|
|
@@ -16239,14 +16261,14 @@ class Bc {
|
|
|
16239
16261
|
getFlowService() {
|
|
16240
16262
|
if (!Di())
|
|
16241
16263
|
throw new Error("Application key required to use Flow Service.");
|
|
16242
|
-
return new
|
|
16264
|
+
return new Vo();
|
|
16243
16265
|
}
|
|
16244
16266
|
async getIntegration() {
|
|
16245
16267
|
if (this.activeIntegration)
|
|
16246
16268
|
return this.activeIntegration;
|
|
16247
16269
|
if (!this.options.applicationKey)
|
|
16248
16270
|
throw new Error("Cannot get current Integration without specifying an Application Key.");
|
|
16249
|
-
return this.activeIntegration =
|
|
16271
|
+
return this.activeIntegration = nr(this.options.applicationKey), this.activeIntegration;
|
|
16250
16272
|
}
|
|
16251
16273
|
async canUseAddon(t) {
|
|
16252
16274
|
var e;
|
|
@@ -16395,7 +16417,7 @@ class Bc {
|
|
|
16395
16417
|
})).data.customer;
|
|
16396
16418
|
if (!a.id) {
|
|
16397
16419
|
const r = (s = (await e.mutate({
|
|
16398
|
-
mutation:
|
|
16420
|
+
mutation: qo,
|
|
16399
16421
|
errorPolicy: "all",
|
|
16400
16422
|
fetchPolicy: "no-cache",
|
|
16401
16423
|
variables: {
|
|
@@ -16430,7 +16452,7 @@ class Bc {
|
|
|
16430
16452
|
if (!a)
|
|
16431
16453
|
return !1;
|
|
16432
16454
|
const s = (o = (await e.mutate({
|
|
16433
|
-
mutation:
|
|
16455
|
+
mutation: Zo,
|
|
16434
16456
|
errorPolicy: "all",
|
|
16435
16457
|
fetchPolicy: "no-cache",
|
|
16436
16458
|
variables: {
|
|
@@ -16445,7 +16467,7 @@ class Bc {
|
|
|
16445
16467
|
*/
|
|
16446
16468
|
async generateVerificationCode(t) {
|
|
16447
16469
|
await F.getShadowGraphqlClient().mutate({
|
|
16448
|
-
mutation:
|
|
16470
|
+
mutation: $o,
|
|
16449
16471
|
variables: {
|
|
16450
16472
|
emailAddress: t
|
|
16451
16473
|
}
|
|
@@ -16460,7 +16482,7 @@ class Bc {
|
|
|
16460
16482
|
async verifyCode(t, e) {
|
|
16461
16483
|
var n, s;
|
|
16462
16484
|
const a = (n = (await F.getShadowGraphqlClient().mutate({
|
|
16463
|
-
mutation:
|
|
16485
|
+
mutation: _o,
|
|
16464
16486
|
errorPolicy: "all",
|
|
16465
16487
|
fetchPolicy: "no-cache",
|
|
16466
16488
|
variables: {
|
|
@@ -16484,7 +16506,7 @@ class Bc {
|
|
|
16484
16506
|
if (!((e = this.customer) != null && e.id))
|
|
16485
16507
|
throw new Error("Customer must be logged in before calling this function.");
|
|
16486
16508
|
return (await F.getShadowGraphqlClient().query({
|
|
16487
|
-
query:
|
|
16509
|
+
query: tr,
|
|
16488
16510
|
variables: {
|
|
16489
16511
|
id: this.customer.id
|
|
16490
16512
|
}
|
|
@@ -16525,7 +16547,7 @@ class Bc {
|
|
|
16525
16547
|
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
16526
16548
|
*/
|
|
16527
16549
|
async getExistingBundle(t, e, A, a) {
|
|
16528
|
-
var w, u, E, m, f, Q, p,
|
|
16550
|
+
var w, u, E, m, f, Q, p, I, y, S, x;
|
|
16529
16551
|
const n = N.getMap("bundleOwnerIds"), s = n == null ? void 0 : n.get(t), r = ((w = Object.entries(localStorage).find(([Y, P]) => Y.startsWith("CognitoIdentityServiceProvider") && Y.endsWith("idToken"))) == null ? void 0 : w[0]) || "", c = localStorage.getItem(r), l = {};
|
|
16530
16552
|
c && !Ee(c) && (l.Authorization = `Bearer ${c}`);
|
|
16531
16553
|
const g = {
|
|
@@ -16544,7 +16566,7 @@ class Bc {
|
|
|
16544
16566
|
});
|
|
16545
16567
|
if (!((f = d.data) != null && f.bundles) || ((Q = d.data) == null ? void 0 : Q.bundles.length) === 0 || !((p = d.data) != null && p.bundles[0]))
|
|
16546
16568
|
throw new Error(`Unable to find bundle: ${t}`);
|
|
16547
|
-
const B = (
|
|
16569
|
+
const B = (I = d.data) == null ? void 0 : I.bundles[0], h = N.getMap("bundlePartnerIds") || /* @__PURE__ */ new Map();
|
|
16548
16570
|
h.set(B.id, B.partner.id), N.setMap("bundlePartnerIds", h);
|
|
16549
16571
|
const C = new Je(this, B, e, A, s, {
|
|
16550
16572
|
additionalHeaders: (y = a == null ? void 0 : a.graphql) == null ? void 0 : y.additionalHeaders,
|
|
@@ -16560,7 +16582,7 @@ class Bc {
|
|
|
16560
16582
|
* @returns A bundle to be used for grouping and operating on large amounts of workflow experiences.
|
|
16561
16583
|
*/
|
|
16562
16584
|
async duplicateBundle(t, e, A, a) {
|
|
16563
|
-
var w, u, E, m, f, Q, p,
|
|
16585
|
+
var w, u, E, m, f, Q, p, I;
|
|
16564
16586
|
const n = (w = N.getMap("bundleOwnerIds")) == null ? void 0 : w.get(t), o = ((u = Object.entries(localStorage).find(([y, S]) => y.startsWith("CognitoIdentityServiceProvider") && y.endsWith("idToken"))) == null ? void 0 : u[0]) || "", r = localStorage.getItem(o), c = {};
|
|
16565
16587
|
r && !Ee(r) && (c.Authorization = `Bearer ${r}`);
|
|
16566
16588
|
const l = {
|
|
@@ -16568,7 +16590,7 @@ class Bc {
|
|
|
16568
16590
|
...c,
|
|
16569
16591
|
...(E = a == null ? void 0 : a.graphql) == null ? void 0 : E.additionalHeaders
|
|
16570
16592
|
}, d = (Q = (await F.getShadowGraphqlClient().mutate({
|
|
16571
|
-
mutation:
|
|
16593
|
+
mutation: bs(((f = (m = a == null ? void 0 : a.graphql) == null ? void 0 : m.productCollection) == null ? void 0 : f.eagerFetchProducts) || !1),
|
|
16572
16594
|
variables: {
|
|
16573
16595
|
id: t,
|
|
16574
16596
|
template: e,
|
|
@@ -16588,7 +16610,7 @@ class Bc {
|
|
|
16588
16610
|
const h = N.getMap("bundleOwnerIds") || /* @__PURE__ */ new Map();
|
|
16589
16611
|
h.set(d.id, d.bundleOwnerId), N.setMap("bundleOwnerIds", h);
|
|
16590
16612
|
const C = new Je(this, d, void 0, void 0, d.bundleOwnerId, {
|
|
16591
|
-
eagerFetchProducts: (
|
|
16613
|
+
eagerFetchProducts: (I = (p = a == null ? void 0 : a.graphql) == null ? void 0 : p.productCollection) == null ? void 0 : I.eagerFetchProducts
|
|
16592
16614
|
});
|
|
16593
16615
|
return await C.getInitializationPromise(), C;
|
|
16594
16616
|
}
|
|
@@ -16607,7 +16629,7 @@ class Bc {
|
|
|
16607
16629
|
throw new Error("Customer not authenticated.");
|
|
16608
16630
|
const { includeMetadata: e, ...A } = t;
|
|
16609
16631
|
return (await F.getShadowGraphqlClient().query({
|
|
16610
|
-
query:
|
|
16632
|
+
query: Ks(e ?? !1),
|
|
16611
16633
|
variables: {
|
|
16612
16634
|
...A,
|
|
16613
16635
|
id: this.customer.id
|
|
@@ -16664,16 +16686,16 @@ class Bc {
|
|
|
16664
16686
|
var S, x, Y;
|
|
16665
16687
|
if (Q.length === 0)
|
|
16666
16688
|
return [];
|
|
16667
|
-
const p = Q.map((P) => P.option.transactionId),
|
|
16689
|
+
const p = Q.map((P) => P.option.transactionId), I = await A.query({
|
|
16668
16690
|
query: an,
|
|
16669
16691
|
variables: {
|
|
16670
16692
|
ids: p
|
|
16671
16693
|
},
|
|
16672
16694
|
errorPolicy: "all",
|
|
16673
16695
|
fetchPolicy: "no-cache"
|
|
16674
|
-
}), y =
|
|
16696
|
+
}), y = I.data.transactions;
|
|
16675
16697
|
if (y.length !== Q.length) {
|
|
16676
|
-
const P = ((x = (S =
|
|
16698
|
+
const P = ((x = (S = I.errors) == null ? void 0 : S[0]) == null ? void 0 : x.message) || "Unknown error";
|
|
16677
16699
|
throw new rt(`Not all transactions were found: ${P}`);
|
|
16678
16700
|
}
|
|
16679
16701
|
return !this.activeIntegration && ((Y = y[0].integrationProduct) != null && Y.integration) && (this.activeIntegration = Promise.resolve(y[0].integrationProduct.integration)), y.map((P, H) => {
|
|
@@ -16705,12 +16727,12 @@ class Bc {
|
|
|
16705
16727
|
},
|
|
16706
16728
|
errorPolicy: "all",
|
|
16707
16729
|
fetchPolicy: "no-cache"
|
|
16708
|
-
}),
|
|
16709
|
-
if (!
|
|
16730
|
+
}), I = (y = p.data) == null ? void 0 : y.transactionCreateMany;
|
|
16731
|
+
if (!I || I.length === 0) {
|
|
16710
16732
|
const Y = ((x = (S = p.errors) == null ? void 0 : S[0]) == null ? void 0 : x.message) || "Unknown error";
|
|
16711
16733
|
throw new rt(`Failed to create transactions: ${Y}`);
|
|
16712
16734
|
}
|
|
16713
|
-
return
|
|
16735
|
+
return I.map((Y, P) => ({
|
|
16714
16736
|
transaction: Y,
|
|
16715
16737
|
workflowId: Y.workflowId,
|
|
16716
16738
|
readOnly: !1,
|
|
@@ -16723,7 +16745,7 @@ class Bc {
|
|
|
16723
16745
|
...l.map(n)
|
|
16724
16746
|
])).flat(), d = [...new Set(g.map((Q) => Q.workflowId))], B = await Va(d, e), h = new Map(B.map((Q) => [Q.id, Q])), C = N.getMap("transactionOwnerIds") || /* @__PURE__ */ new Map(), w = g.map(async (Q) => {
|
|
16725
16747
|
var K;
|
|
16726
|
-
const { transaction: p, workflowId:
|
|
16748
|
+
const { transaction: p, workflowId: I, readOnly: y, index: S } = Q, x = h.get(I), Y = t[S];
|
|
16727
16749
|
!C.get(p.id) && p.transactionOwnerId && C.set(p.id, p.transactionOwnerId);
|
|
16728
16750
|
const P = C.get(p.id) || void 0, H = {
|
|
16729
16751
|
product: p.product,
|
|
@@ -16742,23 +16764,23 @@ class Bc {
|
|
|
16742
16764
|
};
|
|
16743
16765
|
if (Y.type === "transaction" && p.workflowState) {
|
|
16744
16766
|
const z = JSON.parse(p.workflowState);
|
|
16745
|
-
H.layouts = Object.values(z.layouts || {}).map((et) => et.layout), await
|
|
16767
|
+
H.layouts = Object.values(z.layouts || {}).map((et) => et.layout), await bA(z), H.reloadedState = z;
|
|
16746
16768
|
} else if (!y && Y.workflowState) {
|
|
16747
16769
|
const z = JSON.parse(Y.workflowState);
|
|
16748
|
-
H.layouts = Object.values(z.layouts || {}).map((et) => et.layout), await
|
|
16770
|
+
H.layouts = Object.values(z.layouts || {}).map((et) => et.layout), await bA(z), H.reloadedState = z;
|
|
16749
16771
|
} else
|
|
16750
|
-
H.layouts =
|
|
16772
|
+
H.layouts = ir(
|
|
16751
16773
|
H.transaction,
|
|
16752
16774
|
H.workflow
|
|
16753
16775
|
);
|
|
16754
|
-
return H.renderableContextService = new
|
|
16776
|
+
return H.renderableContextService = new No(
|
|
16755
16777
|
H.layouts
|
|
16756
16778
|
), H.delayWorkflowStateSync = !0, { experienceOptions: H, index: S, options: Y };
|
|
16757
16779
|
}), u = await Promise.all(w);
|
|
16758
16780
|
N.setMap("transactionOwnerIds", C);
|
|
16759
16781
|
const m = u.sort((Q, p) => Q.index - p.index).map(async (Q) => {
|
|
16760
|
-
const { experienceOptions: p, options:
|
|
16761
|
-
return await y.getWorkflowManager().getInitializationPromise(),
|
|
16782
|
+
const { experienceOptions: p, options: I } = Q, y = new Qo(this, p);
|
|
16783
|
+
return await y.getWorkflowManager().getInitializationPromise(), I.type !== "transaction" && this.customer && await y.attachCustomerDetails({ email: this.customer.emailAddress }), y;
|
|
16762
16784
|
}), f = await Promise.all(m);
|
|
16763
16785
|
return f.forEach((Q) => Q.getWorkflowManager().setWorkflowStateSyncEnabled(!0)), f;
|
|
16764
16786
|
}
|
|
@@ -16831,7 +16853,7 @@ class Bc {
|
|
|
16831
16853
|
};
|
|
16832
16854
|
}
|
|
16833
16855
|
}
|
|
16834
|
-
const
|
|
16856
|
+
const nr = async (i) => (await F.getShadowGraphqlClient().query({
|
|
16835
16857
|
query: Qn,
|
|
16836
16858
|
errorPolicy: "all",
|
|
16837
16859
|
fetchPolicy: "no-cache",
|
|
@@ -16840,7 +16862,7 @@ const ir = async (i) => (await F.getShadowGraphqlClient().query({
|
|
|
16840
16862
|
"x-application-key": i
|
|
16841
16863
|
}
|
|
16842
16864
|
}
|
|
16843
|
-
})).data.currentIntegration,
|
|
16865
|
+
})).data.currentIntegration, Cc = async (i) => {
|
|
16844
16866
|
const e = await F.getShadowGraphqlClient().query({
|
|
16845
16867
|
query: on,
|
|
16846
16868
|
errorPolicy: "all",
|
|
@@ -16851,7 +16873,7 @@ const ir = async (i) => (await F.getShadowGraphqlClient().query({
|
|
|
16851
16873
|
});
|
|
16852
16874
|
if (e.data.transactions.length !== 0)
|
|
16853
16875
|
return e.data.transactions[0];
|
|
16854
|
-
},
|
|
16876
|
+
}, wc = async (i, t) => {
|
|
16855
16877
|
var A;
|
|
16856
16878
|
return (A = (await F.getShadowGraphqlClient().query({
|
|
16857
16879
|
query: fn,
|
|
@@ -16861,7 +16883,7 @@ const ir = async (i) => (await F.getShadowGraphqlClient().query({
|
|
|
16861
16883
|
themeInstallId: t
|
|
16862
16884
|
}
|
|
16863
16885
|
})).data) == null ? void 0 : A.marketplaceThemeInstallConfiguration;
|
|
16864
|
-
},
|
|
16886
|
+
}, uc = async (i) => {
|
|
16865
16887
|
var e, A, a;
|
|
16866
16888
|
return (a = (A = (e = (await F.getShadowGraphqlClient().query({
|
|
16867
16889
|
query: Dn,
|
|
@@ -16870,7 +16892,7 @@ const ir = async (i) => (await F.getShadowGraphqlClient().query({
|
|
|
16870
16892
|
id: i
|
|
16871
16893
|
}
|
|
16872
16894
|
})).data) == null ? void 0 : e.bundles) == null ? void 0 : A[0]) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
|
|
16873
|
-
},
|
|
16895
|
+
}, Ec = async (i) => {
|
|
16874
16896
|
var e, A, a;
|
|
16875
16897
|
return (a = (A = (e = (await F.getShadowGraphqlClient().query({
|
|
16876
16898
|
query: pn,
|
|
@@ -16880,7 +16902,7 @@ const ir = async (i) => (await F.getShadowGraphqlClient().query({
|
|
|
16880
16902
|
}
|
|
16881
16903
|
})).data) == null ? void 0 : e.transactions) == null ? void 0 : A[0]) == null ? void 0 : a.marketplaceThemeInstallConfiguration;
|
|
16882
16904
|
};
|
|
16883
|
-
class
|
|
16905
|
+
class mc {
|
|
16884
16906
|
approveTransaction(t) {
|
|
16885
16907
|
throw new Error("Method not implemented.");
|
|
16886
16908
|
}
|
|
@@ -17039,8 +17061,8 @@ class Ec {
|
|
|
17039
17061
|
return [];
|
|
17040
17062
|
}
|
|
17041
17063
|
}
|
|
17042
|
-
var
|
|
17043
|
-
class
|
|
17064
|
+
var sr = /* @__PURE__ */ ((i) => (i.SelectFrame = "SelectFrame", i.SelectImage = "SelectImage", i.Position = "Position", i))(sr || {});
|
|
17065
|
+
class or extends At {
|
|
17044
17066
|
constructor(t, e, A) {
|
|
17045
17067
|
var a;
|
|
17046
17068
|
super(t, e, A), this.frameService = (a = this.manager.getStepSpecificServices(this.getId())) == null ? void 0 : a.frameService;
|
|
@@ -17212,13 +17234,13 @@ class sr extends At {
|
|
|
17212
17234
|
return this.manager.getStepStorage(this.step.stepName);
|
|
17213
17235
|
}
|
|
17214
17236
|
}
|
|
17215
|
-
const
|
|
17237
|
+
const rr = D`
|
|
17216
17238
|
query GetLoggedInCustomer($email: String!) {
|
|
17217
17239
|
customer(emailAddress: $email) {
|
|
17218
17240
|
id
|
|
17219
17241
|
}
|
|
17220
17242
|
}
|
|
17221
|
-
`, QA =
|
|
17243
|
+
`, QA = D`
|
|
17222
17244
|
query GetCustomerTransactions(
|
|
17223
17245
|
$id: String!
|
|
17224
17246
|
$limit: Int!
|
|
@@ -17254,21 +17276,21 @@ const or = I`
|
|
|
17254
17276
|
total
|
|
17255
17277
|
}
|
|
17256
17278
|
}
|
|
17257
|
-
`,
|
|
17279
|
+
`, cr = D`
|
|
17258
17280
|
mutation SetTransactionDesignName($id: String!, $name: String!) {
|
|
17259
17281
|
transactionUpdate(id: $id, designName: $name) {
|
|
17260
17282
|
id
|
|
17261
17283
|
designName
|
|
17262
17284
|
}
|
|
17263
17285
|
}
|
|
17264
|
-
`,
|
|
17286
|
+
`, lr = D`
|
|
17265
17287
|
mutation DuplicateTransaction($id: String!, $template: Boolean!) {
|
|
17266
17288
|
transactionDuplicate(id: $id, template: $template) {
|
|
17267
17289
|
id
|
|
17268
17290
|
workflowViewerLink
|
|
17269
17291
|
}
|
|
17270
17292
|
}
|
|
17271
|
-
`,
|
|
17293
|
+
`, gr = D`
|
|
17272
17294
|
query GetCustomerBundles($id: String!, $limit: Int!, $offset: Int!) {
|
|
17273
17295
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset) {
|
|
17274
17296
|
items {
|
|
@@ -17281,7 +17303,7 @@ const or = I`
|
|
|
17281
17303
|
total
|
|
17282
17304
|
}
|
|
17283
17305
|
}
|
|
17284
|
-
`,
|
|
17306
|
+
`, dr = D`
|
|
17285
17307
|
query GetTransactionsForBundle($id: String!) {
|
|
17286
17308
|
bundles(ids: [$id]) {
|
|
17287
17309
|
id
|
|
@@ -17301,21 +17323,21 @@ const or = I`
|
|
|
17301
17323
|
}
|
|
17302
17324
|
}
|
|
17303
17325
|
}
|
|
17304
|
-
`,
|
|
17326
|
+
`, Br = D`
|
|
17305
17327
|
mutation SetBundleName($id: String!, $name: String!) {
|
|
17306
17328
|
bundleUpdate(id: $id, name: $name) {
|
|
17307
17329
|
id
|
|
17308
17330
|
name
|
|
17309
17331
|
}
|
|
17310
17332
|
}
|
|
17311
|
-
`,
|
|
17333
|
+
`, hr = D`
|
|
17312
17334
|
mutation DuplicateBundle($id: String!, $template: Boolean!) {
|
|
17313
17335
|
bundleDuplicate(id: $id, template: $template) {
|
|
17314
17336
|
id
|
|
17315
17337
|
workflowViewerLink
|
|
17316
17338
|
}
|
|
17317
17339
|
}
|
|
17318
|
-
`,
|
|
17340
|
+
`, Cr = D`
|
|
17319
17341
|
query GetBundleTemplates($id: String!, $limit: Int!, $offset: Int!) {
|
|
17320
17342
|
customerBundlesFeed(id: $id, limit: $limit, offset: $offset, template: true) {
|
|
17321
17343
|
items {
|
|
@@ -17328,43 +17350,43 @@ const or = I`
|
|
|
17328
17350
|
total
|
|
17329
17351
|
}
|
|
17330
17352
|
}
|
|
17331
|
-
`,
|
|
17332
|
-
mutation:
|
|
17353
|
+
`, fc = async (i, t, e) => await F.getShadowGraphqlClient().mutate({
|
|
17354
|
+
mutation: Br,
|
|
17333
17355
|
errorPolicy: "all",
|
|
17334
17356
|
variables: {
|
|
17335
17357
|
id: i,
|
|
17336
17358
|
name: t
|
|
17337
17359
|
},
|
|
17338
17360
|
context: e
|
|
17339
|
-
}),
|
|
17340
|
-
mutation:
|
|
17361
|
+
}), Qc = async (i, t) => await F.getShadowGraphqlClient().mutate({
|
|
17362
|
+
mutation: cr,
|
|
17341
17363
|
errorPolicy: "all",
|
|
17342
17364
|
variables: {
|
|
17343
17365
|
id: i,
|
|
17344
17366
|
name: t
|
|
17345
17367
|
}
|
|
17346
|
-
}),
|
|
17347
|
-
mutation:
|
|
17368
|
+
}), pc = async (i, t) => await F.getShadowGraphqlClient().mutate({
|
|
17369
|
+
mutation: hr,
|
|
17348
17370
|
errorPolicy: "all",
|
|
17349
17371
|
variables: {
|
|
17350
17372
|
id: i,
|
|
17351
17373
|
template: t
|
|
17352
17374
|
}
|
|
17353
|
-
}),
|
|
17354
|
-
mutation:
|
|
17375
|
+
}), Dc = async (i, t) => await F.getShadowGraphqlClient().mutate({
|
|
17376
|
+
mutation: lr,
|
|
17355
17377
|
errorPolicy: "all",
|
|
17356
17378
|
variables: {
|
|
17357
17379
|
id: i,
|
|
17358
17380
|
template: t
|
|
17359
17381
|
}
|
|
17360
|
-
}),
|
|
17361
|
-
query:
|
|
17382
|
+
}), Ic = async (i) => (await F.getShadowGraphqlClient().query({
|
|
17383
|
+
query: rr,
|
|
17362
17384
|
errorPolicy: "all",
|
|
17363
17385
|
variables: {
|
|
17364
17386
|
email: i
|
|
17365
17387
|
}
|
|
17366
|
-
})).data.customer,
|
|
17367
|
-
query:
|
|
17388
|
+
})).data.customer, Fc = async (i, t, e) => await F.getShadowGraphqlClient().query({
|
|
17389
|
+
query: gr,
|
|
17368
17390
|
errorPolicy: "all",
|
|
17369
17391
|
fetchPolicy: "no-cache",
|
|
17370
17392
|
variables: {
|
|
@@ -17372,15 +17394,15 @@ const or = I`
|
|
|
17372
17394
|
offset: e,
|
|
17373
17395
|
limit: t
|
|
17374
17396
|
}
|
|
17375
|
-
}),
|
|
17376
|
-
query:
|
|
17397
|
+
}), yc = async (i, t) => await F.getShadowGraphqlClient().query({
|
|
17398
|
+
query: dr,
|
|
17377
17399
|
errorPolicy: "all",
|
|
17378
17400
|
fetchPolicy: "no-cache",
|
|
17379
17401
|
variables: {
|
|
17380
17402
|
id: i
|
|
17381
17403
|
},
|
|
17382
17404
|
context: t
|
|
17383
|
-
}),
|
|
17405
|
+
}), Mc = async (i, t, e) => {
|
|
17384
17406
|
var a;
|
|
17385
17407
|
const A = await F.getShadowGraphqlClient().query({
|
|
17386
17408
|
query: QA,
|
|
@@ -17404,7 +17426,7 @@ const or = I`
|
|
|
17404
17426
|
}
|
|
17405
17427
|
});
|
|
17406
17428
|
return ((a = A == null ? void 0 : A.data.customerTransactionsFeed) == null ? void 0 : a.items) || [];
|
|
17407
|
-
},
|
|
17429
|
+
}, Sc = async (i, t, e) => {
|
|
17408
17430
|
var a;
|
|
17409
17431
|
const A = await F.getShadowGraphqlClient().query({
|
|
17410
17432
|
query: QA,
|
|
@@ -17428,7 +17450,7 @@ const or = I`
|
|
|
17428
17450
|
}
|
|
17429
17451
|
});
|
|
17430
17452
|
return ((a = A == null ? void 0 : A.data.customerTransactionsFeed) == null ? void 0 : a.items) || [];
|
|
17431
|
-
},
|
|
17453
|
+
}, xc = async (i, t, e) => {
|
|
17432
17454
|
var a;
|
|
17433
17455
|
const A = await F.getShadowGraphqlClient().query({
|
|
17434
17456
|
query: QA,
|
|
@@ -17448,10 +17470,10 @@ const or = I`
|
|
|
17448
17470
|
}
|
|
17449
17471
|
});
|
|
17450
17472
|
return ((a = A == null ? void 0 : A.data.customerTransactionsFeed) == null ? void 0 : a.items) || [];
|
|
17451
|
-
},
|
|
17473
|
+
}, Yc = async (i, t, e) => {
|
|
17452
17474
|
var a;
|
|
17453
17475
|
const A = await F.getShadowGraphqlClient().query({
|
|
17454
|
-
query:
|
|
17476
|
+
query: Cr,
|
|
17455
17477
|
errorPolicy: "all",
|
|
17456
17478
|
fetchPolicy: "no-cache",
|
|
17457
17479
|
variables: {
|
|
@@ -17464,13 +17486,13 @@ const or = I`
|
|
|
17464
17486
|
};
|
|
17465
17487
|
export {
|
|
17466
17488
|
aA as AddonHandle,
|
|
17467
|
-
|
|
17489
|
+
dc as ArrayInput,
|
|
17468
17490
|
it as AspectType,
|
|
17469
17491
|
Et as AssetNotFoundError,
|
|
17470
17492
|
le as AssetType,
|
|
17471
|
-
|
|
17472
|
-
|
|
17473
|
-
|
|
17493
|
+
oc as BringForwardCommand,
|
|
17494
|
+
sc as BringToBackCommand,
|
|
17495
|
+
nc as BringToFrontCommand,
|
|
17474
17496
|
T as CanvasCommand,
|
|
17475
17497
|
ne as CollectionProduct,
|
|
17476
17498
|
JA as ColorOptionGlobalPropertyHandle,
|
|
@@ -17480,141 +17502,141 @@ export {
|
|
|
17480
17502
|
j as CreateElementCommand,
|
|
17481
17503
|
Sa as CreateLayoutCommand,
|
|
17482
17504
|
ft as DeleteElementCommand,
|
|
17483
|
-
|
|
17484
|
-
|
|
17505
|
+
ro as DigitalContentStepHandle,
|
|
17506
|
+
Go as FileUploadGlobalPropertyHandle,
|
|
17485
17507
|
se as FlowExecutionNodeResult,
|
|
17486
|
-
|
|
17487
|
-
|
|
17508
|
+
Wo as FlowExecutionResult,
|
|
17509
|
+
Vo as FlowService,
|
|
17488
17510
|
Vn as FontAlignmentCommand,
|
|
17489
17511
|
jn as FontColorCommand,
|
|
17490
17512
|
Kn as FontSizeCommand,
|
|
17491
|
-
|
|
17513
|
+
RA as FontSourceCommand,
|
|
17492
17514
|
_n as FrameService,
|
|
17493
|
-
|
|
17494
|
-
|
|
17515
|
+
sr as FrameStep,
|
|
17516
|
+
or as FrameStepHandle,
|
|
17495
17517
|
mA as GlobalPropertyHandle,
|
|
17496
17518
|
U as GroupCommand,
|
|
17497
|
-
|
|
17519
|
+
to as IllustrationStepHandle,
|
|
17498
17520
|
Se as InformationMessageType,
|
|
17499
|
-
|
|
17521
|
+
oo as InformationStepHandle,
|
|
17500
17522
|
LA as IntegrationProduct,
|
|
17501
17523
|
oi as IntegrationType,
|
|
17502
|
-
|
|
17503
|
-
|
|
17524
|
+
tc as LayoutElementFactory,
|
|
17525
|
+
b as LayoutElementType,
|
|
17504
17526
|
W as LayoutNotFoundError,
|
|
17505
17527
|
Jt as LayoutRenderingPurpose,
|
|
17506
|
-
|
|
17528
|
+
eo as MaterialStepHandle,
|
|
17507
17529
|
Be as MisconfigurationError,
|
|
17508
|
-
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
|
|
17530
|
+
mc as MockWorkflowManager,
|
|
17531
|
+
Ao as ModelStepHandle,
|
|
17532
|
+
co as ModuleStepHandle,
|
|
17533
|
+
ec as MoveCommand,
|
|
17512
17534
|
Ka as ObjectInput,
|
|
17513
|
-
|
|
17535
|
+
Xo as ObjectInputType,
|
|
17514
17536
|
ja as OptionGlobalPropertyHandle,
|
|
17515
17537
|
de as OptionNotFoundError,
|
|
17516
17538
|
Ft as ParseError,
|
|
17517
|
-
|
|
17539
|
+
ao as PictureStepHandle,
|
|
17518
17540
|
ri as ProductCameraRig,
|
|
17519
|
-
|
|
17541
|
+
Oo as ProductCollection,
|
|
17520
17542
|
Tt as ProductWorkflow,
|
|
17521
17543
|
zt as PromiseCache,
|
|
17522
17544
|
ua as PromiseQueue,
|
|
17523
|
-
|
|
17545
|
+
io as QuestionStepHandle,
|
|
17524
17546
|
wa as QueueablePromise,
|
|
17525
|
-
|
|
17547
|
+
ac as ResizeCommand,
|
|
17526
17548
|
Lt as ResourceNotFoundError,
|
|
17527
|
-
|
|
17549
|
+
Ac as RotateCommand,
|
|
17528
17550
|
V as ScaleAxis,
|
|
17529
|
-
|
|
17530
|
-
|
|
17551
|
+
rc as SendBackwardsCommand,
|
|
17552
|
+
no as ShapeStepHandle,
|
|
17531
17553
|
si as ShareActionType,
|
|
17532
|
-
|
|
17554
|
+
hc as SpiffCommerceClient,
|
|
17533
17555
|
ge as StakeholderType,
|
|
17534
17556
|
ni as StepAspectType,
|
|
17535
17557
|
At as StepHandle,
|
|
17536
17558
|
M as StepType,
|
|
17537
17559
|
xt as TextAlgorithm,
|
|
17538
17560
|
qn as TextChangeCommand,
|
|
17539
|
-
|
|
17540
|
-
|
|
17541
|
-
|
|
17542
|
-
|
|
17543
|
-
|
|
17561
|
+
To as TextGlobalPropertyHandle,
|
|
17562
|
+
gc as TextInput,
|
|
17563
|
+
so as TextStepHandle,
|
|
17564
|
+
jo as Transform,
|
|
17565
|
+
zo as TransformCollection,
|
|
17544
17566
|
L as UnhandledBehaviorError,
|
|
17545
17567
|
gi as UnitOfMeasurement,
|
|
17546
|
-
|
|
17568
|
+
ic as UpdateImageSourceCommand,
|
|
17547
17569
|
at as Variant,
|
|
17548
|
-
|
|
17549
|
-
|
|
17570
|
+
fo as WorkflowExperienceEventType,
|
|
17571
|
+
Qo as WorkflowExperienceImpl,
|
|
17550
17572
|
G as assetService,
|
|
17551
|
-
|
|
17552
|
-
|
|
17553
|
-
|
|
17554
|
-
|
|
17555
|
-
|
|
17573
|
+
ki as browserColorToHex,
|
|
17574
|
+
$r as cmPerPixel,
|
|
17575
|
+
wo as createDesign,
|
|
17576
|
+
Xr as currentDirection,
|
|
17577
|
+
Hr as dataUrlFromExternalUrl,
|
|
17556
17578
|
Te as designService,
|
|
17557
17579
|
ce as determineCorrectFontSizeAndLines,
|
|
17558
17580
|
Ya as digitalContentStepService,
|
|
17559
17581
|
ot as domParser,
|
|
17560
|
-
|
|
17561
|
-
|
|
17582
|
+
pc as duplicateBundle,
|
|
17583
|
+
Dc as duplicateTransaction,
|
|
17562
17584
|
_ as fetchAsString,
|
|
17563
|
-
|
|
17585
|
+
Lr as findAngle,
|
|
17564
17586
|
J as findElement,
|
|
17565
|
-
|
|
17587
|
+
Tr as findPmsColors,
|
|
17566
17588
|
Ht as frameDataCache,
|
|
17567
17589
|
ht as frameStepService,
|
|
17568
|
-
|
|
17569
|
-
|
|
17590
|
+
k as generate,
|
|
17591
|
+
vo as generateCommands,
|
|
17570
17592
|
gt as generateSVGWithUnknownColors,
|
|
17571
|
-
|
|
17593
|
+
lc as generateStateFromDesignInputSteps,
|
|
17572
17594
|
pe as getAttributesFromArrayBuffer,
|
|
17573
|
-
|
|
17595
|
+
Jr as getAxisAlignedBoundingBox,
|
|
17574
17596
|
$n as getBoundedOffsets,
|
|
17575
|
-
|
|
17576
|
-
|
|
17577
|
-
|
|
17578
|
-
|
|
17597
|
+
uc as getBundleThemeConfiguration,
|
|
17598
|
+
Ic as getCustomer,
|
|
17599
|
+
Fc as getCustomerBundles,
|
|
17600
|
+
qr as getElementVertices,
|
|
17579
17601
|
Fe as getFrameData,
|
|
17580
|
-
|
|
17581
|
-
|
|
17582
|
-
|
|
17583
|
-
|
|
17584
|
-
|
|
17585
|
-
|
|
17586
|
-
|
|
17602
|
+
nr as getIntegration,
|
|
17603
|
+
Vr as getNEPoint,
|
|
17604
|
+
Kr as getNWPoint,
|
|
17605
|
+
Sc as getOrderedTransactions,
|
|
17606
|
+
wc as getOverrideThemeConfiguration,
|
|
17607
|
+
jr as getPointOfRotation,
|
|
17608
|
+
Wr as getSEPoint,
|
|
17587
17609
|
dA as getSvgElement,
|
|
17588
|
-
|
|
17589
|
-
|
|
17590
|
-
|
|
17591
|
-
|
|
17592
|
-
|
|
17593
|
-
|
|
17594
|
-
|
|
17595
|
-
|
|
17610
|
+
Yc as getTemplateBundles,
|
|
17611
|
+
xc as getTemplateTransactions,
|
|
17612
|
+
Cc as getTransaction,
|
|
17613
|
+
Ec as getTransactionThemeConfiguration,
|
|
17614
|
+
yc as getTransactionsForBundle,
|
|
17615
|
+
zr as getTrueCoordinates,
|
|
17616
|
+
Mc as getUnorderedTransactions,
|
|
17617
|
+
Bc as getWorkflow,
|
|
17596
17618
|
Va as getWorkflows,
|
|
17597
17619
|
F as graphQlManager,
|
|
17598
17620
|
re as illustrationStepService,
|
|
17599
|
-
|
|
17621
|
+
Or as isCloseToValue,
|
|
17600
17622
|
Pt as loadFont,
|
|
17601
|
-
|
|
17623
|
+
Gr as matchHexToPms,
|
|
17602
17624
|
Pa as materialStepService,
|
|
17603
|
-
|
|
17625
|
+
Zr as mmPerPixel,
|
|
17604
17626
|
va as modelStepService,
|
|
17605
17627
|
Na as moduleStepService,
|
|
17606
|
-
|
|
17607
|
-
|
|
17628
|
+
fc as nameBundle,
|
|
17629
|
+
Qc as nameTransaction,
|
|
17608
17630
|
$ as optionService,
|
|
17609
|
-
|
|
17631
|
+
_r as outlineFontsInSvg,
|
|
17610
17632
|
Ct as patternImageDataCache,
|
|
17611
17633
|
N as persistenceService,
|
|
17612
|
-
|
|
17613
|
-
|
|
17614
|
-
|
|
17634
|
+
ba as pictureStepService,
|
|
17635
|
+
Ur as pmsToRgb,
|
|
17636
|
+
ka as questionStepService,
|
|
17615
17637
|
Rr as registerFetchImplementation,
|
|
17616
17638
|
kr as registerWindowImplementation,
|
|
17617
|
-
|
|
17639
|
+
bA as rehydrateSerializedLayout,
|
|
17618
17640
|
vi as rgbToPms,
|
|
17619
17641
|
Ae as rotateAroundPoint,
|
|
17620
17642
|
sA as sanitizeSvgTree,
|
|
@@ -17623,7 +17645,7 @@ export {
|
|
|
17623
17645
|
Ut as shapeStepService,
|
|
17624
17646
|
ts as shortenUrl,
|
|
17625
17647
|
ut as spiffCoreConfiguration,
|
|
17626
|
-
|
|
17648
|
+
cc as stepAspectValuesToDesignInputSteps,
|
|
17627
17649
|
xA as svgColorValueToDefinition,
|
|
17628
17650
|
fa as svgStringDimensions,
|
|
17629
17651
|
$A as svgToDataUrl,
|