@appcues/web-sdk 7.19.3 → 7.19.4
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 +6 -0
- package/build/{bootstrap.npm.CWtEeEZm.js → bootstrap.npm.wrYTSLtd.js} +10 -10
- package/build/{index.BqYkQb-R.js → index.DoE8hu2A.js} +1 -1
- package/build/{index.npm.8WJEE3dT.js → index.npm.9n5J9g4b.js} +1 -1
- package/build/index.npm.js +1 -1
- package/build/{open-builder.D3fQGZM7.js → open-builder.C48gob7t.js} +458 -449
- package/package.json +1 -1
- /package/build/{checklist.8fca2e8b3108e1b73a11937d767a008c409214cc.css → checklist.bb188fd305f9dabb5a3d7f2b055ae09f6a2c284e.css} +0 -0
- /package/build/{container.8fca2e8b3108e1b73a11937d767a008c409214cc.css → container.bb188fd305f9dabb5a3d7f2b055ae09f6a2c284e.css} +0 -0
- /package/build/{debugger.8fca2e8b3108e1b73a11937d767a008c409214cc.css → debugger.bb188fd305f9dabb5a3d7f2b055ae09f6a2c284e.css} +0 -0
- /package/build/{modal-step-legacy-render.8fca2e8b3108e1b73a11937d767a008c409214cc.css → modal-step-legacy-render.bb188fd305f9dabb5a3d7f2b055ae09f6a2c284e.css} +0 -0
- /package/build/{modal.8fca2e8b3108e1b73a11937d767a008c409214cc.css → modal.bb188fd305f9dabb5a3d7f2b055ae09f6a2c284e.css} +0 -0
- /package/build/{satisfaction-survey.8fca2e8b3108e1b73a11937d767a008c409214cc.css → satisfaction-survey.bb188fd305f9dabb5a3d7f2b055ae09f6a2c284e.css} +0 -0
- /package/build/{test-mode.8fca2e8b3108e1b73a11937d767a008c409214cc.css → test-mode.bb188fd305f9dabb5a3d7f2b055ae09f6a2c284e.css} +0 -0
- /package/build/{tooltip.8fca2e8b3108e1b73a11937d767a008c409214cc.css → tooltip.bb188fd305f9dabb5a3d7f2b055ae09f6a2c284e.css} +0 -0
|
@@ -3695,15 +3695,24 @@ const bn = /* @__PURE__ */ Ne(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", ke =
|
|
|
3695
3695
|
n
|
|
3696
3696
|
);
|
|
3697
3697
|
return s && (s = Je(t, s)), s = s ?? [], s.length > 0 && (a = [...a, ...s]), a;
|
|
3698
|
-
},
|
|
3698
|
+
}, Xu = [
|
|
3699
|
+
"keypress",
|
|
3700
|
+
"keydown",
|
|
3701
|
+
"keyup",
|
|
3702
|
+
"click",
|
|
3703
|
+
"dblclick",
|
|
3704
|
+
"input",
|
|
3705
|
+
"change",
|
|
3706
|
+
"submit"
|
|
3707
|
+
], Aa = ({
|
|
3699
3708
|
accountId: t,
|
|
3700
3709
|
id: e,
|
|
3701
3710
|
theme: n,
|
|
3702
3711
|
getWindowReference: r
|
|
3703
3712
|
}) => {
|
|
3704
3713
|
const o = r().document.createElement(Sn);
|
|
3705
|
-
return n && o.setAttribute("themeId", n), o.setAttribute("accountId", t), o.setAttribute("id", Ie(e)), qu(o,
|
|
3706
|
-
},
|
|
3714
|
+
return n && o.setAttribute("themeId", n), o.setAttribute("accountId", t), o.setAttribute("id", Ie(e)), qu(o, ...Xu), o;
|
|
3715
|
+
}, Yu = (t) => ({ experience: e }) => {
|
|
3707
3716
|
const { theme: n, themeSystem: r, accountId: o, id: i } = e;
|
|
3708
3717
|
if (!o) return;
|
|
3709
3718
|
const a = t("getWindowReference"), s = a().document, c = Aa({
|
|
@@ -3714,25 +3723,25 @@ const bn = /* @__PURE__ */ Ne(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", ke =
|
|
|
3714
3723
|
getWindowReference: a
|
|
3715
3724
|
});
|
|
3716
3725
|
s.body.append(c);
|
|
3717
|
-
},
|
|
3726
|
+
}, tl = (t) => ({ experience: e }) => {
|
|
3718
3727
|
const n = t("getWindowReference")().document, r = Ie(e.id);
|
|
3719
3728
|
Je(
|
|
3720
3729
|
`#${r}`,
|
|
3721
3730
|
n.documentElement
|
|
3722
3731
|
).forEach((o) => n.body.removeChild(o));
|
|
3723
|
-
},
|
|
3732
|
+
}, el = ({ getRoot: t }) => {
|
|
3724
3733
|
const e = t();
|
|
3725
3734
|
e.parentElement && e.remove();
|
|
3726
|
-
},
|
|
3735
|
+
}, nl = ({ getRoot: t }) => sa([
|
|
3727
3736
|
{
|
|
3728
3737
|
cond: "hasCustomContainer",
|
|
3729
3738
|
actions: [
|
|
3730
3739
|
() => {
|
|
3731
|
-
|
|
3740
|
+
el({ getRoot: t });
|
|
3732
3741
|
}
|
|
3733
3742
|
]
|
|
3734
3743
|
}
|
|
3735
|
-
]),
|
|
3744
|
+
]), rl = (t) => ({ experience: e }) => (n, r) => {
|
|
3736
3745
|
r(({ type: o }) => {
|
|
3737
3746
|
if (o !== mo) return;
|
|
3738
3747
|
const i = t("getWindowReference"), a = i().document, s = Ie(e.id);
|
|
@@ -3747,7 +3756,7 @@ const bn = /* @__PURE__ */ Ne(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", ke =
|
|
|
3747
3756
|
getWindowReference: i
|
|
3748
3757
|
});
|
|
3749
3758
|
});
|
|
3750
|
-
},
|
|
3759
|
+
}, ol = ({ getRoot: t, getWindowReference: e }) => () => (
|
|
3751
3760
|
// eslint-disable-next-line unicorn/consistent-function-scoping
|
|
3752
3761
|
((n, r) => {
|
|
3753
3762
|
let o;
|
|
@@ -3767,11 +3776,11 @@ const bn = /* @__PURE__ */ Ne(Tu), ku = "EXPERIENCE_STARTED", Xo = "SHOW", ke =
|
|
|
3767
3776
|
})
|
|
3768
3777
|
), ja = br(mo, {
|
|
3769
3778
|
to: "themeRemovalService"
|
|
3770
|
-
}),
|
|
3779
|
+
}), il = br(Ra, {
|
|
3771
3780
|
to: "themeRemovalService"
|
|
3772
3781
|
});
|
|
3773
3782
|
var ni = { exports: {} }, ri;
|
|
3774
|
-
function
|
|
3783
|
+
function al() {
|
|
3775
3784
|
return ri || (ri = 1, (function(t) {
|
|
3776
3785
|
(function() {
|
|
3777
3786
|
function e(d, x, N) {
|
|
@@ -4198,10 +4207,10 @@ function il() {
|
|
|
4198
4207
|
})();
|
|
4199
4208
|
})(ni)), ni.exports;
|
|
4200
4209
|
}
|
|
4201
|
-
var
|
|
4202
|
-
const
|
|
4210
|
+
var sl = al();
|
|
4211
|
+
const cl = /* @__PURE__ */ Ne(sl);
|
|
4203
4212
|
var Vn = { exports: {} }, oi;
|
|
4204
|
-
function
|
|
4213
|
+
function ul() {
|
|
4205
4214
|
if (oi) return Vn.exports;
|
|
4206
4215
|
oi = 1;
|
|
4207
4216
|
function t(l, u) {
|
|
@@ -4283,25 +4292,25 @@ function cl() {
|
|
|
4283
4292
|
monadic: s
|
|
4284
4293
|
}, Vn.exports;
|
|
4285
4294
|
}
|
|
4286
|
-
var
|
|
4287
|
-
const
|
|
4295
|
+
var ll = ul();
|
|
4296
|
+
const fl = /* @__PURE__ */ Ne(ll), dl = window.AppcuesBundleSettings?.VERSION === "dev" ? "https://fast.appcues.com/v1" : window.AppcuesBundleSettings?.GENERIC_BUNDLE_DOMAIN ? `${window.AppcuesBundleSettings.GENERIC_BUNDLE_DOMAIN}/v1` : "https://fast.appcues.com/v1", pl = 9999;
|
|
4288
4297
|
let cr = {
|
|
4289
4298
|
fastBaseUrl: null,
|
|
4290
4299
|
// null means use default
|
|
4291
4300
|
useAssetsPath: !1
|
|
4292
4301
|
// when true, use simplified theme path format
|
|
4293
4302
|
};
|
|
4294
|
-
const
|
|
4303
|
+
const hl = (t = {}) => {
|
|
4295
4304
|
cr = { ...cr, ...t };
|
|
4296
|
-
},
|
|
4297
|
-
function
|
|
4305
|
+
}, vl = () => cr.fastBaseUrl ?? dl, ii = () => cr.useAssetsPath;
|
|
4306
|
+
function gl(t) {
|
|
4298
4307
|
return t.replace(/\/+$/, "");
|
|
4299
4308
|
}
|
|
4300
|
-
const
|
|
4309
|
+
const yl = fl(
|
|
4301
4310
|
(t, e) => {
|
|
4302
|
-
const n =
|
|
4311
|
+
const n = vl();
|
|
4303
4312
|
if (ii()) {
|
|
4304
|
-
const r =
|
|
4313
|
+
const r = gl(n);
|
|
4305
4314
|
return fetch(
|
|
4306
4315
|
`${r}/themes/${encodeURIComponent(t)}.json`
|
|
4307
4316
|
).then((o) => o.json());
|
|
@@ -4313,7 +4322,7 @@ const gl = ll(
|
|
|
4313
4322
|
{
|
|
4314
4323
|
serializer: ([t, e]) => `${t}:${e}:${ii()}`
|
|
4315
4324
|
}
|
|
4316
|
-
),
|
|
4325
|
+
), ml = (t, e) => {
|
|
4317
4326
|
const n = {
|
|
4318
4327
|
classes: !1
|
|
4319
4328
|
};
|
|
@@ -4321,55 +4330,55 @@ const gl = ll(
|
|
|
4321
4330
|
urls: [e.general.headerFontUrl, e.general.bodyFontUrl]
|
|
4322
4331
|
}), t && (n.typekit = {
|
|
4323
4332
|
id: t
|
|
4324
|
-
}), Object.keys(n).length > 1 &&
|
|
4333
|
+
}), Object.keys(n).length > 1 && cl.load(n);
|
|
4325
4334
|
}, ai = (t, e, n) => {
|
|
4326
4335
|
if (!t) return;
|
|
4327
4336
|
const r = (n.ownerDocument || document).createElement("style");
|
|
4328
4337
|
r.innerHTML = `${t}`, e && r.classList.add(`theme-${e}`), n.shadowRoot.prepend(r);
|
|
4329
4338
|
}, Da = async (t) => {
|
|
4330
|
-
const e = t.getAttribute("themeId"), n = t.getAttribute("accountId"), r = await
|
|
4339
|
+
const e = t.getAttribute("themeId"), n = t.getAttribute("accountId"), r = await yl(e, n).catch(() => {
|
|
4331
4340
|
}), { globalStyling: o, theme: i, typekitId: a } = r ?? {
|
|
4332
4341
|
globalStyling: "",
|
|
4333
4342
|
theme: {},
|
|
4334
4343
|
typekitId: ""
|
|
4335
4344
|
}, s = i?.json?.typekitId ?? a;
|
|
4336
|
-
|
|
4337
|
-
},
|
|
4345
|
+
ml(s, i?.json), ai(i?.css, e, t), ai(o, e, t);
|
|
4346
|
+
}, bl = async (t, e) => {
|
|
4338
4347
|
await Da(t), e && t.shadowRoot.querySelectorAll(
|
|
4339
4348
|
`.theme-${e}`
|
|
4340
4349
|
).forEach((n) => n.remove());
|
|
4341
|
-
},
|
|
4350
|
+
}, El = mt({
|
|
4342
4351
|
step: ({ step: t }, e) => ({
|
|
4343
4352
|
...t,
|
|
4344
4353
|
virtualizedContent: e.virtualizedContent
|
|
4345
4354
|
})
|
|
4346
|
-
}),
|
|
4355
|
+
}), xl = (t) => mt({
|
|
4347
4356
|
step: (e, n) => ({
|
|
4348
4357
|
stepConfig: n.stepConfig,
|
|
4349
4358
|
virtualizedContent: t(n.stepConfig)
|
|
4350
4359
|
})
|
|
4351
|
-
}),
|
|
4360
|
+
}), wl = mt({
|
|
4352
4361
|
experience: (t, e) => e.experience,
|
|
4353
4362
|
step: ({ step: t }, e) => ({
|
|
4354
4363
|
...t,
|
|
4355
4364
|
...e.stepConfig
|
|
4356
4365
|
})
|
|
4357
|
-
}),
|
|
4366
|
+
}), Sl = Ft(ku), _l = Ft(({ step: t }) => ({
|
|
4358
4367
|
type: xa,
|
|
4359
4368
|
id: t.id
|
|
4360
|
-
})),
|
|
4369
|
+
})), Tl = (t, { styles: e, getRoot: n }) => {
|
|
4361
4370
|
const r = n();
|
|
4362
4371
|
r && Object.entries(e).forEach(([o, i]) => {
|
|
4363
4372
|
o.startsWith("--") ? r.style.setProperty(o, i) : r.style[o] = i;
|
|
4364
4373
|
});
|
|
4365
|
-
},
|
|
4374
|
+
}, kl = (t) => (e) => {
|
|
4366
4375
|
const { theme: n, themeSystem: r, id: o } = e.experience;
|
|
4367
4376
|
if (r || !n) return;
|
|
4368
4377
|
const i = t("getWindowReference")().document.documentElement.querySelector(
|
|
4369
4378
|
`#${Ie(o)}`
|
|
4370
4379
|
), a = i.getAttribute("themeId");
|
|
4371
|
-
i?.setAttribute("themeId", n),
|
|
4372
|
-
},
|
|
4380
|
+
i?.setAttribute("themeId", n), bl(i, a);
|
|
4381
|
+
}, Cl = (t) => mt({
|
|
4373
4382
|
step: ({ step: e }) => {
|
|
4374
4383
|
if (e.type !== "tooltip") return e;
|
|
4375
4384
|
const n = Object.entries(e.actions).filter(
|
|
@@ -4383,7 +4392,7 @@ const gl = ll(
|
|
|
4383
4392
|
})
|
|
4384
4393
|
};
|
|
4385
4394
|
}
|
|
4386
|
-
}),
|
|
4395
|
+
}), Rl = sa([
|
|
4387
4396
|
{
|
|
4388
4397
|
cond: (t, e) => e.errorEvent?.type === bo,
|
|
4389
4398
|
actions: [
|
|
@@ -4393,20 +4402,20 @@ const gl = ll(
|
|
|
4393
4402
|
})
|
|
4394
4403
|
]
|
|
4395
4404
|
}
|
|
4396
|
-
]),
|
|
4405
|
+
]), Ol = mt({
|
|
4397
4406
|
actionsRunning: !0
|
|
4398
|
-
}),
|
|
4407
|
+
}), Nl = mt({
|
|
4399
4408
|
actionsRunning: !1
|
|
4400
|
-
}),
|
|
4409
|
+
}), Il = (t, e) => {
|
|
4401
4410
|
const n = e.changedExperienceTraits && e.changedExperienceTraits.changedTraits.length > 0, r = e.changedExperienceTraits && (e.changedExperienceTraits.addedTraits.length > 0 || e.changedExperienceTraits.removedTraits.length > 0), o = e.changedStepTraits && e.changedStepTraits.changedTraits.length > 0, i = e.changedStepTraits && (e.changedStepTraits.addedTraits.length > 0 || e.changedStepTraits.removedTraits.length > 0);
|
|
4402
4411
|
return r || i ? !1 : !!(n || o);
|
|
4403
|
-
},
|
|
4412
|
+
}, Al = "Key name should be string and callback a valid function", Pa = () => {
|
|
4404
4413
|
const t = /* @__PURE__ */ new Map(), e = (n) => t.get(n);
|
|
4405
4414
|
return {
|
|
4406
4415
|
getCallback: e,
|
|
4407
4416
|
registerCallback: (n, r) => {
|
|
4408
4417
|
if (e(n), typeof n != "string" || typeof r != "function")
|
|
4409
|
-
throw new TypeError(
|
|
4418
|
+
throw new TypeError(Al);
|
|
4410
4419
|
t.set(n, r);
|
|
4411
4420
|
}
|
|
4412
4421
|
};
|
|
@@ -4414,8 +4423,8 @@ const gl = ll(
|
|
|
4414
4423
|
const r = t(e.type);
|
|
4415
4424
|
r && r(n, e.config ?? {});
|
|
4416
4425
|
}, { getCallback: Ha, registerCallback: St } = Pa();
|
|
4417
|
-
let
|
|
4418
|
-
const
|
|
4426
|
+
let jl = (t = 21) => crypto.getRandomValues(new Uint8Array(t)).reduce((e, n) => (n &= 63, n < 36 ? e += n.toString(36) : n < 62 ? e += (n - 26).toString(36).toUpperCase() : n > 62 ? e += "-" : e += "_", e), "");
|
|
4427
|
+
const Dl = ({
|
|
4419
4428
|
experience: t,
|
|
4420
4429
|
callback: e,
|
|
4421
4430
|
step: n,
|
|
@@ -4506,7 +4515,7 @@ const jl = ({
|
|
|
4506
4515
|
get: a,
|
|
4507
4516
|
getAction: s = () => null
|
|
4508
4517
|
}) => {
|
|
4509
|
-
const { findId: c } = a("vNodeHandlers"), f = a("getWindowReference"), g =
|
|
4518
|
+
const { findId: c } = a("vNodeHandlers"), f = a("getWindowReference"), g = Dl({
|
|
4510
4519
|
experience: t,
|
|
4511
4520
|
step: e,
|
|
4512
4521
|
callback: i,
|
|
@@ -4522,7 +4531,7 @@ const jl = ({
|
|
|
4522
4531
|
getWindowReference: f
|
|
4523
4532
|
}),
|
|
4524
4533
|
reportError: (u) => {
|
|
4525
|
-
const h =
|
|
4534
|
+
const h = jl();
|
|
4526
4535
|
return i({
|
|
4527
4536
|
type: Iu,
|
|
4528
4537
|
message: u,
|
|
@@ -4558,25 +4567,25 @@ const jl = ({
|
|
|
4558
4567
|
},
|
|
4559
4568
|
...l
|
|
4560
4569
|
} : l;
|
|
4561
|
-
}, si = "formData.",
|
|
4570
|
+
}, si = "formData.", Pl = "a, button, video, input, textarea, select, form", Ll = (t, e) => {
|
|
4562
4571
|
if (e.startsWith(si)) {
|
|
4563
4572
|
const n = e.replace(si, "");
|
|
4564
4573
|
return new FormData(t.target).get(n);
|
|
4565
4574
|
}
|
|
4566
4575
|
return yu(t, e);
|
|
4567
|
-
}, { getCallback: En, registerCallback: ae } = Pa(),
|
|
4576
|
+
}, { getCallback: En, registerCallback: ae } = Pa(), Hl = (t, e, n) => {
|
|
4568
4577
|
const r = {
|
|
4569
4578
|
target: e.target,
|
|
4570
4579
|
detail: e.detail
|
|
4571
4580
|
};
|
|
4572
4581
|
return Object.entries(t).reduce(
|
|
4573
4582
|
(o, [i, a]) => {
|
|
4574
|
-
const s =
|
|
4583
|
+
const s = Ll(r, i);
|
|
4575
4584
|
return s ? gu(o, a, s) : o;
|
|
4576
4585
|
},
|
|
4577
4586
|
n
|
|
4578
4587
|
);
|
|
4579
|
-
},
|
|
4588
|
+
}, $l = ({ overrideStyle: t, getContainer: e }, n) => ({ experience: r, step: o }) => (i, a) => {
|
|
4580
4589
|
a(({ type: s }) => {
|
|
4581
4590
|
if (s === Eo)
|
|
4582
4591
|
try {
|
|
@@ -4604,7 +4613,7 @@ const jl = ({
|
|
|
4604
4613
|
if (O && w) {
|
|
4605
4614
|
const R = {
|
|
4606
4615
|
...I,
|
|
4607
|
-
...
|
|
4616
|
+
...Hl(
|
|
4608
4617
|
O,
|
|
4609
4618
|
w,
|
|
4610
4619
|
I
|
|
@@ -4638,7 +4647,7 @@ const jl = ({
|
|
|
4638
4647
|
if (!(I && !I.includes(D.code))) {
|
|
4639
4648
|
if (m[w]) {
|
|
4640
4649
|
const $ = D.target.closest(
|
|
4641
|
-
|
|
4650
|
+
Pl
|
|
4642
4651
|
);
|
|
4643
4652
|
if ($ && $ !== D.currentTarget)
|
|
4644
4653
|
return;
|
|
@@ -4661,7 +4670,7 @@ const jl = ({
|
|
|
4661
4670
|
i(zu);
|
|
4662
4671
|
}
|
|
4663
4672
|
});
|
|
4664
|
-
},
|
|
4673
|
+
}, Ml = ({ addHook: t }) => (e) => (n) => {
|
|
4665
4674
|
const { step: r } = e;
|
|
4666
4675
|
try {
|
|
4667
4676
|
r.traits.forEach(
|
|
@@ -4679,7 +4688,7 @@ const jl = ({
|
|
|
4679
4688
|
} catch {
|
|
4680
4689
|
n(Na);
|
|
4681
4690
|
}
|
|
4682
|
-
},
|
|
4691
|
+
}, Fl = ({ applyOverridesToVnode: t }) => {
|
|
4683
4692
|
let e = {};
|
|
4684
4693
|
const n = (a) => (s, c) => {
|
|
4685
4694
|
e[s] || (e[s] = {}), e[s][a] || (e[s][a] = {}), e[s][a] = {
|
|
@@ -4704,22 +4713,22 @@ const jl = ({
|
|
|
4704
4713
|
clearOverrides: o
|
|
4705
4714
|
};
|
|
4706
4715
|
};
|
|
4707
|
-
function
|
|
4716
|
+
function Wl(t, e) {
|
|
4708
4717
|
return document.createElement(t, e);
|
|
4709
4718
|
}
|
|
4710
|
-
function
|
|
4719
|
+
function Vl(t, e, n) {
|
|
4711
4720
|
return document.createElementNS(t, e, n);
|
|
4712
4721
|
}
|
|
4713
|
-
function
|
|
4722
|
+
function Ul() {
|
|
4714
4723
|
return Ce(document.createDocumentFragment());
|
|
4715
4724
|
}
|
|
4716
|
-
function
|
|
4725
|
+
function zl(t) {
|
|
4717
4726
|
return document.createTextNode(t);
|
|
4718
4727
|
}
|
|
4719
|
-
function
|
|
4728
|
+
function Bl(t) {
|
|
4720
4729
|
return document.createComment(t);
|
|
4721
4730
|
}
|
|
4722
|
-
function
|
|
4731
|
+
function ql(t, e, n) {
|
|
4723
4732
|
if (ne(t)) {
|
|
4724
4733
|
let r = t;
|
|
4725
4734
|
for (; r && ne(r); )
|
|
@@ -4728,10 +4737,10 @@ function Bl(t, e, n) {
|
|
|
4728
4737
|
}
|
|
4729
4738
|
ne(e) && (e = Ce(e, t)), n && ne(n) && (n = Ce(n).firstChildNode), t.insertBefore(e, n);
|
|
4730
4739
|
}
|
|
4731
|
-
function
|
|
4740
|
+
function Kl(t, e) {
|
|
4732
4741
|
t.removeChild(e);
|
|
4733
4742
|
}
|
|
4734
|
-
function
|
|
4743
|
+
function Zl(t, e) {
|
|
4735
4744
|
ne(e) && (e = Ce(e, t)), t.appendChild(e);
|
|
4736
4745
|
}
|
|
4737
4746
|
function Ma(t) {
|
|
@@ -4742,7 +4751,7 @@ function Ma(t) {
|
|
|
4742
4751
|
}
|
|
4743
4752
|
return t.parentNode;
|
|
4744
4753
|
}
|
|
4745
|
-
function
|
|
4754
|
+
function Gl(t) {
|
|
4746
4755
|
var e;
|
|
4747
4756
|
if (ne(t)) {
|
|
4748
4757
|
const n = Ce(t), r = Ma(n);
|
|
@@ -4754,22 +4763,22 @@ function Zl(t) {
|
|
|
4754
4763
|
}
|
|
4755
4764
|
return t.nextSibling;
|
|
4756
4765
|
}
|
|
4757
|
-
function
|
|
4766
|
+
function Jl(t) {
|
|
4758
4767
|
return t.tagName;
|
|
4759
4768
|
}
|
|
4760
|
-
function
|
|
4769
|
+
function Ql(t, e) {
|
|
4761
4770
|
t.textContent = e;
|
|
4762
4771
|
}
|
|
4763
|
-
function
|
|
4772
|
+
function Xl(t) {
|
|
4764
4773
|
return t.textContent;
|
|
4765
4774
|
}
|
|
4766
|
-
function
|
|
4775
|
+
function Yl(t) {
|
|
4767
4776
|
return t.nodeType === 1;
|
|
4768
4777
|
}
|
|
4769
|
-
function
|
|
4778
|
+
function tf(t) {
|
|
4770
4779
|
return t.nodeType === 3;
|
|
4771
4780
|
}
|
|
4772
|
-
function
|
|
4781
|
+
function ef(t) {
|
|
4773
4782
|
return t.nodeType === 8;
|
|
4774
4783
|
}
|
|
4775
4784
|
function ne(t) {
|
|
@@ -4781,22 +4790,22 @@ function Ce(t, e) {
|
|
|
4781
4790
|
return (n = i.parent) !== null && n !== void 0 || (i.parent = e ?? null), (r = i.firstChildNode) !== null && r !== void 0 || (i.firstChildNode = t.firstChild), (o = i.lastChildNode) !== null && o !== void 0 || (i.lastChildNode = t.lastChild), i;
|
|
4782
4791
|
}
|
|
4783
4792
|
const wo = {
|
|
4784
|
-
createElement:
|
|
4785
|
-
createElementNS:
|
|
4786
|
-
createTextNode:
|
|
4787
|
-
createDocumentFragment:
|
|
4788
|
-
createComment:
|
|
4789
|
-
insertBefore:
|
|
4790
|
-
removeChild:
|
|
4791
|
-
appendChild:
|
|
4793
|
+
createElement: Wl,
|
|
4794
|
+
createElementNS: Vl,
|
|
4795
|
+
createTextNode: zl,
|
|
4796
|
+
createDocumentFragment: Ul,
|
|
4797
|
+
createComment: Bl,
|
|
4798
|
+
insertBefore: ql,
|
|
4799
|
+
removeChild: Kl,
|
|
4800
|
+
appendChild: Zl,
|
|
4792
4801
|
parentNode: Ma,
|
|
4793
|
-
nextSibling:
|
|
4794
|
-
tagName:
|
|
4795
|
-
setTextContent:
|
|
4796
|
-
getTextContent:
|
|
4797
|
-
isElement:
|
|
4798
|
-
isText:
|
|
4799
|
-
isComment:
|
|
4802
|
+
nextSibling: Gl,
|
|
4803
|
+
tagName: Jl,
|
|
4804
|
+
setTextContent: Ql,
|
|
4805
|
+
getTextContent: Xl,
|
|
4806
|
+
isElement: Yl,
|
|
4807
|
+
isText: tf,
|
|
4808
|
+
isComment: ef,
|
|
4800
4809
|
isDocumentFragment: ne
|
|
4801
4810
|
};
|
|
4802
4811
|
function Nt(t, e, n, r, o) {
|
|
@@ -4813,16 +4822,16 @@ function vn(t, e) {
|
|
|
4813
4822
|
const o = t.key === e.key, i = ((n = t.data) === null || n === void 0 ? void 0 : n.is) === ((r = e.data) === null || r === void 0 ? void 0 : r.is), a = t.sel === e.sel, s = !t.sel && t.sel === e.sel ? typeof t.text == typeof e.text : !0;
|
|
4814
4823
|
return a && o && i && s;
|
|
4815
4824
|
}
|
|
4816
|
-
function
|
|
4825
|
+
function nf() {
|
|
4817
4826
|
throw new Error("The document fragment is not supported on this platform.");
|
|
4818
4827
|
}
|
|
4819
|
-
function
|
|
4828
|
+
function rf(t, e) {
|
|
4820
4829
|
return t.isElement(e);
|
|
4821
4830
|
}
|
|
4822
|
-
function
|
|
4831
|
+
function of(t, e) {
|
|
4823
4832
|
return t.isDocumentFragment(e);
|
|
4824
4833
|
}
|
|
4825
|
-
function
|
|
4834
|
+
function af(t, e, n) {
|
|
4826
4835
|
var r;
|
|
4827
4836
|
const o = {};
|
|
4828
4837
|
for (let i = e; i <= n; ++i) {
|
|
@@ -4831,7 +4840,7 @@ function of(t, e, n) {
|
|
|
4831
4840
|
}
|
|
4832
4841
|
return o;
|
|
4833
4842
|
}
|
|
4834
|
-
const
|
|
4843
|
+
const sf = [
|
|
4835
4844
|
"create",
|
|
4836
4845
|
"update",
|
|
4837
4846
|
"remove",
|
|
@@ -4848,7 +4857,7 @@ function Fa(t, e, n) {
|
|
|
4848
4857
|
pre: [],
|
|
4849
4858
|
post: []
|
|
4850
4859
|
}, o = e !== void 0 ? e : wo;
|
|
4851
|
-
for (const p of
|
|
4860
|
+
for (const p of sf)
|
|
4852
4861
|
for (const v of t) {
|
|
4853
4862
|
const m = v[p];
|
|
4854
4863
|
m !== void 0 && r[p].push(m);
|
|
@@ -4889,7 +4898,7 @@ function Fa(t, e, n) {
|
|
|
4889
4898
|
}
|
|
4890
4899
|
O !== void 0 && ((y = O.create) === null || y === void 0 || y.call(O, Pr, p), O.insert !== void 0 && v.push(p));
|
|
4891
4900
|
} else if (!((w = n?.experimental) === null || w === void 0) && w.fragments && p.children) {
|
|
4892
|
-
for (p.elm = ((k = o.createDocumentFragment) !== null && k !== void 0 ? k :
|
|
4901
|
+
for (p.elm = ((k = o.createDocumentFragment) !== null && k !== void 0 ? k : nf)(), S = 0; S < r.create.length; ++S)
|
|
4893
4902
|
r.create[S](Pr, p);
|
|
4894
4903
|
for (S = 0; S < p.children.length; ++S) {
|
|
4895
4904
|
const D = p.children[S];
|
|
@@ -4937,7 +4946,7 @@ function Fa(t, e, n) {
|
|
|
4937
4946
|
function u(p, v, m, E) {
|
|
4938
4947
|
let y = 0, w = 0, k = v.length - 1, S = v[0], I = v[k], O = m.length - 1, R = m[0], A = m[O], D, $, M, z;
|
|
4939
4948
|
for (; y <= k && w <= O; )
|
|
4940
|
-
S == null ? S = v[++y] : I == null ? I = v[--k] : R == null ? R = m[++w] : A == null ? A = m[--O] : vn(S, R) ? (h(S, R, E), S = v[++y], R = m[++w]) : vn(I, A) ? (h(I, A, E), I = v[--k], A = m[--O]) : vn(S, A) ? (h(S, A, E), o.insertBefore(p, S.elm, o.nextSibling(I.elm)), S = v[++y], A = m[--O]) : vn(I, R) ? (h(I, R, E), o.insertBefore(p, I.elm, S.elm), I = v[--k], R = m[++w]) : (D === void 0 && (D =
|
|
4949
|
+
S == null ? S = v[++y] : I == null ? I = v[--k] : R == null ? R = m[++w] : A == null ? A = m[--O] : vn(S, R) ? (h(S, R, E), S = v[++y], R = m[++w]) : vn(I, A) ? (h(I, A, E), I = v[--k], A = m[--O]) : vn(S, A) ? (h(S, A, E), o.insertBefore(p, S.elm, o.nextSibling(I.elm)), S = v[++y], A = m[--O]) : vn(I, R) ? (h(I, R, E), o.insertBefore(p, I.elm, S.elm), I = v[--k], R = m[++w]) : (D === void 0 && (D = af(v, y, k)), $ = D[R.key], $ === void 0 ? (o.insertBefore(p, c(R, E), S.elm), R = m[++w]) : D[A.key] === void 0 ? (o.insertBefore(p, c(A, E), o.nextSibling(I.elm)), A = m[--O]) : (M = v[$], M.sel !== R.sel ? o.insertBefore(p, c(R, E), S.elm) : (h(M, R, E), v[$] = void 0, o.insertBefore(p, M.elm, S.elm)), R = m[++w]));
|
|
4941
4950
|
w <= O && (z = m[O + 1] == null ? null : m[O + 1].elm, f(p, z, m, w, O, E)), y <= k && l(p, v, y, k);
|
|
4942
4951
|
}
|
|
4943
4952
|
function h(p, v, m) {
|
|
@@ -4961,7 +4970,7 @@ function Fa(t, e, n) {
|
|
|
4961
4970
|
const w = [];
|
|
4962
4971
|
for (m = 0; m < r.pre.length; ++m)
|
|
4963
4972
|
r.pre[m]();
|
|
4964
|
-
for (
|
|
4973
|
+
for (rf(o, p) ? p = i(p) : of(o, p) && (p = a(p)), vn(p, v) ? h(p, v, w) : (E = p.elm, y = o.parentNode(E), c(v, w), y !== null && (o.insertBefore(y, v.elm, o.nextSibling(E)), l(y, [p], 0, 0))), m = 0; m < w.length; ++m)
|
|
4965
4974
|
w[m].data.hook.insert(w[m]);
|
|
4966
4975
|
for (m = 0; m < r.post.length; ++m)
|
|
4967
4976
|
r.post[m]();
|
|
@@ -4997,11 +5006,11 @@ function Qn(t, e) {
|
|
|
4997
5006
|
const r = (n = e.data) === null || n === void 0 ? void 0 : n.ns;
|
|
4998
5007
|
t.data.fn = e.data.fn, t.data.args = e.data.args, e.data = t.data, e.children = t.children, e.text = t.text, e.elm = t.elm, r && wr(e.data, e.children, e.sel);
|
|
4999
5008
|
}
|
|
5000
|
-
function
|
|
5009
|
+
function cf(t) {
|
|
5001
5010
|
const e = t.data, n = e.fn(...e.args);
|
|
5002
5011
|
Qn(n, t);
|
|
5003
5012
|
}
|
|
5004
|
-
function
|
|
5013
|
+
function uf(t, e) {
|
|
5005
5014
|
let n;
|
|
5006
5015
|
const r = t.data, o = e.data, i = r.args, a = o.args;
|
|
5007
5016
|
if (r.fn !== o.fn || i.length !== a.length) {
|
|
@@ -5015,34 +5024,34 @@ function cf(t, e) {
|
|
|
5015
5024
|
}
|
|
5016
5025
|
Qn(t, e);
|
|
5017
5026
|
}
|
|
5018
|
-
const
|
|
5027
|
+
const lf = function(t, e, n, r) {
|
|
5019
5028
|
return r === void 0 && (r = n, n = e, e = void 0), ie(t, {
|
|
5020
5029
|
key: e,
|
|
5021
|
-
hook: { init:
|
|
5030
|
+
hook: { init: cf, prepatch: uf },
|
|
5022
5031
|
fn: n,
|
|
5023
5032
|
args: r
|
|
5024
5033
|
});
|
|
5025
5034
|
};
|
|
5026
|
-
function
|
|
5035
|
+
function ff(t, e) {
|
|
5027
5036
|
const n = t.data.attachData;
|
|
5028
5037
|
e.data.attachData.placeholder = n.placeholder, e.data.attachData.real = n.real, t.elm = t.data.attachData.real;
|
|
5029
5038
|
}
|
|
5030
|
-
function
|
|
5039
|
+
function df(t, e) {
|
|
5031
5040
|
e.elm = e.data.attachData.placeholder;
|
|
5032
5041
|
}
|
|
5033
|
-
function
|
|
5042
|
+
function pf(t) {
|
|
5034
5043
|
t.elm !== void 0 && t.elm.parentNode.removeChild(t.elm), t.elm = t.data.attachData.real;
|
|
5035
5044
|
}
|
|
5036
|
-
function
|
|
5045
|
+
function hf(t, e) {
|
|
5037
5046
|
const n = e.elm, r = e.data.attachData, o = document.createElement("span");
|
|
5038
5047
|
e.elm = o, r.target.appendChild(n), r.real = n, r.placeholder = o;
|
|
5039
5048
|
}
|
|
5040
|
-
function
|
|
5049
|
+
function vf(t, e) {
|
|
5041
5050
|
e.data === void 0 && (e.data = {}), e.data.hook === void 0 && (e.data.hook = {});
|
|
5042
5051
|
const n = e.data, r = e.data.hook;
|
|
5043
|
-
return n.attachData = { target: t, placeholder: void 0, real: void 0 }, r.create =
|
|
5052
|
+
return n.attachData = { target: t, placeholder: void 0, real: void 0 }, r.create = hf, r.prepatch = ff, r.postpatch = df, r.destroy = pf, e;
|
|
5044
5053
|
}
|
|
5045
|
-
function
|
|
5054
|
+
function gf(t) {
|
|
5046
5055
|
return t.slice(5).replace(/-([a-z])/g, (e, n) => n.toUpperCase());
|
|
5047
5056
|
}
|
|
5048
5057
|
function Wa(t, e) {
|
|
@@ -5054,13 +5063,13 @@ function Wa(t, e) {
|
|
|
5054
5063
|
let h, p, v;
|
|
5055
5064
|
const m = t.attributes, E = t.childNodes;
|
|
5056
5065
|
for (p = 0, v = m.length; p < v; p++)
|
|
5057
|
-
h = m[p].nodeName, h.startsWith("data-") ? g[
|
|
5066
|
+
h = m[p].nodeName, h.startsWith("data-") ? g[gf(h)] = m[p].nodeValue || "" : h !== "id" && h !== "class" && (f[h] = m[p].nodeValue);
|
|
5058
5067
|
for (p = 0, v = E.length; p < v; p++)
|
|
5059
5068
|
u.push(Wa(E[p], e));
|
|
5060
5069
|
return Object.keys(f).length > 0 && (l.attrs = f), Object.keys(g).length > 0 && (l.dataset = g), c.startsWith("svg") && (c.length === 3 || c[3] === "." || c[3] === "#") && wr(l, u, c), Nt(c, l, u, void 0, t);
|
|
5061
5070
|
} else return r.isText(t) ? (o = r.getTextContent(t), Nt(void 0, void 0, void 0, o, t)) : r.isComment(t) ? (o = r.getTextContent(t), Nt("!", {}, [], o, t)) : Nt("", {}, [], void 0, t);
|
|
5062
5071
|
}
|
|
5063
|
-
const
|
|
5072
|
+
const yf = "http://www.w3.org/1999/xlink", mf = "http://www.w3.org/2000/xmlns/", bf = "http://www.w3.org/XML/1998/namespace", ci = 58, Ef = 120, xf = 109;
|
|
5064
5073
|
function ui(t, e) {
|
|
5065
5074
|
let n;
|
|
5066
5075
|
const r = e.elm;
|
|
@@ -5069,7 +5078,7 @@ function ui(t, e) {
|
|
|
5069
5078
|
o = o || {}, i = i || {};
|
|
5070
5079
|
for (n in i) {
|
|
5071
5080
|
const a = i[n];
|
|
5072
|
-
o[n] !== a && (a === !0 ? r.setAttribute(n, "") : a === !1 ? r.removeAttribute(n) : n.charCodeAt(0) !==
|
|
5081
|
+
o[n] !== a && (a === !0 ? r.setAttribute(n, "") : a === !1 ? r.removeAttribute(n) : n.charCodeAt(0) !== Ef ? r.setAttribute(n, a) : n.charCodeAt(3) === ci ? r.setAttributeNS(bf, n, a) : n.charCodeAt(5) === ci ? n.charCodeAt(1) === xf ? r.setAttributeNS(mf, n, a) : r.setAttributeNS(yf, n, a) : r.setAttribute(n, a));
|
|
5073
5082
|
}
|
|
5074
5083
|
for (n in o)
|
|
5075
5084
|
n in i || r.removeAttribute(n);
|
|
@@ -5104,7 +5113,7 @@ function di(t, e) {
|
|
|
5104
5113
|
for (i in o)
|
|
5105
5114
|
r[i] !== o[i] && (a ? a[i] = o[i] : n.setAttribute("data-" + i.replace(fi, "-$&").toLowerCase(), o[i]));
|
|
5106
5115
|
}
|
|
5107
|
-
const
|
|
5116
|
+
const wf = {
|
|
5108
5117
|
create: di,
|
|
5109
5118
|
update: di
|
|
5110
5119
|
};
|
|
@@ -5115,13 +5124,13 @@ function za(t, e, n) {
|
|
|
5115
5124
|
for (let r = 0; r < t.length; r++)
|
|
5116
5125
|
za(t[r], e, n);
|
|
5117
5126
|
}
|
|
5118
|
-
function
|
|
5127
|
+
function Sf(t, e) {
|
|
5119
5128
|
const n = t.type, r = e.data.on;
|
|
5120
5129
|
r && r[n] && za(r[n], e, t);
|
|
5121
5130
|
}
|
|
5122
|
-
function
|
|
5131
|
+
function _f() {
|
|
5123
5132
|
return function t(e) {
|
|
5124
|
-
|
|
5133
|
+
Sf(e, t.vnode);
|
|
5125
5134
|
};
|
|
5126
5135
|
}
|
|
5127
5136
|
function Lr(t, e) {
|
|
@@ -5136,7 +5145,7 @@ function Lr(t, e) {
|
|
|
5136
5145
|
for (s in n)
|
|
5137
5146
|
o.removeEventListener(s, r, !1);
|
|
5138
5147
|
if (i) {
|
|
5139
|
-
const c = e.listener = t.listener ||
|
|
5148
|
+
const c = e.listener = t.listener || _f();
|
|
5140
5149
|
if (c.vnode = e, n)
|
|
5141
5150
|
for (s in i)
|
|
5142
5151
|
n[s] || a.addEventListener(s, c, !1);
|
|
@@ -5161,14 +5170,14 @@ function pi(t, e) {
|
|
|
5161
5170
|
r = s[n], o = a[n], o !== r && (n !== "value" || i[n] !== r) && (i[n] = r);
|
|
5162
5171
|
}
|
|
5163
5172
|
}
|
|
5164
|
-
const qa = { create: pi, update: pi }, hi = typeof window?.requestAnimationFrame == "function" ? window.requestAnimationFrame.bind(window) : setTimeout,
|
|
5173
|
+
const qa = { create: pi, update: pi }, hi = typeof window?.requestAnimationFrame == "function" ? window.requestAnimationFrame.bind(window) : setTimeout, Tf = (t) => {
|
|
5165
5174
|
hi(() => {
|
|
5166
5175
|
hi(t);
|
|
5167
5176
|
});
|
|
5168
5177
|
};
|
|
5169
5178
|
let ao = !1;
|
|
5170
|
-
function
|
|
5171
|
-
|
|
5179
|
+
function kf(t, e, n) {
|
|
5180
|
+
Tf(() => {
|
|
5172
5181
|
t[e] = n;
|
|
5173
5182
|
});
|
|
5174
5183
|
}
|
|
@@ -5185,17 +5194,17 @@ function vi(t, e) {
|
|
|
5185
5194
|
for (r in a)
|
|
5186
5195
|
if (n = a[r], r === "delayed" && a.delayed)
|
|
5187
5196
|
for (const c in a.delayed)
|
|
5188
|
-
n = a.delayed[c], (!s || n !== i.delayed[c]) &&
|
|
5197
|
+
n = a.delayed[c], (!s || n !== i.delayed[c]) && kf(o.style, c, n);
|
|
5189
5198
|
else r !== "remove" && n !== i[r] && (r[0] === "-" && r[1] === "-" ? o.style.setProperty(r, n) : o.style[r] = n);
|
|
5190
5199
|
}
|
|
5191
|
-
function
|
|
5200
|
+
function Cf(t) {
|
|
5192
5201
|
let e, n;
|
|
5193
5202
|
const r = t.elm, o = t.data.style;
|
|
5194
5203
|
if (!(!o || !(e = o.destroy)))
|
|
5195
5204
|
for (n in e)
|
|
5196
5205
|
r.style[n] = e[n];
|
|
5197
5206
|
}
|
|
5198
|
-
function
|
|
5207
|
+
function Rf(t, e) {
|
|
5199
5208
|
const n = t.data.style;
|
|
5200
5209
|
if (!n || !n.remove) {
|
|
5201
5210
|
e();
|
|
@@ -5217,17 +5226,17 @@ function Cf(t, e) {
|
|
|
5217
5226
|
g.target === o && --s, s === 0 && e();
|
|
5218
5227
|
});
|
|
5219
5228
|
}
|
|
5220
|
-
function
|
|
5229
|
+
function Of() {
|
|
5221
5230
|
ao = !1;
|
|
5222
5231
|
}
|
|
5223
5232
|
const Ka = {
|
|
5224
|
-
pre:
|
|
5233
|
+
pre: Of,
|
|
5225
5234
|
create: vi,
|
|
5226
5235
|
update: vi,
|
|
5227
|
-
destroy:
|
|
5228
|
-
remove:
|
|
5236
|
+
destroy: Cf,
|
|
5237
|
+
remove: Rf
|
|
5229
5238
|
};
|
|
5230
|
-
function
|
|
5239
|
+
function Nf(t, ...e) {
|
|
5231
5240
|
const n = So(e, []);
|
|
5232
5241
|
return n.length === 1 && !n[0].sel && n[0].text ? Nt(void 0, void 0, void 0, n[0].text, void 0) : Nt(void 0, t ?? {}, n, void 0, void 0);
|
|
5233
5242
|
}
|
|
@@ -5236,34 +5245,34 @@ function So(t, e) {
|
|
|
5236
5245
|
n != null && n !== !1 && n !== "" && (Array.isArray(n) ? So(n, e) : typeof n == "string" || typeof n == "number" || typeof n == "boolean" ? e.push(Nt(void 0, void 0, void 0, String(n), void 0)) : e.push(n));
|
|
5237
5246
|
return e;
|
|
5238
5247
|
}
|
|
5239
|
-
function
|
|
5248
|
+
function If(t, e, ...n) {
|
|
5240
5249
|
const r = So(n, []);
|
|
5241
5250
|
return typeof t == "function" ? t(e, r) : r.length === 1 && !r[0].sel && r[0].text ? ie(t, e, r[0].text) : ie(t, e, r);
|
|
5242
5251
|
}
|
|
5243
|
-
const
|
|
5252
|
+
const Af = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5244
5253
|
__proto__: null,
|
|
5245
|
-
Fragment:
|
|
5254
|
+
Fragment: Nf,
|
|
5246
5255
|
array: Qe,
|
|
5247
|
-
attachTo:
|
|
5256
|
+
attachTo: vf,
|
|
5248
5257
|
attributesModule: Va,
|
|
5249
5258
|
classModule: Ua,
|
|
5250
|
-
datasetModule:
|
|
5259
|
+
datasetModule: wf,
|
|
5251
5260
|
eventListenersModule: Ba,
|
|
5252
5261
|
fragment: io,
|
|
5253
5262
|
h: ie,
|
|
5254
5263
|
htmlDomApi: wo,
|
|
5255
5264
|
init: Fa,
|
|
5256
|
-
jsx:
|
|
5265
|
+
jsx: If,
|
|
5257
5266
|
primitive: Re,
|
|
5258
5267
|
propsModule: qa,
|
|
5259
5268
|
styleModule: Ka,
|
|
5260
|
-
thunk:
|
|
5269
|
+
thunk: lf,
|
|
5261
5270
|
toVNode: Wa,
|
|
5262
5271
|
vnode: Nt
|
|
5263
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5272
|
+
}, Symbol.toStringTag, { value: "Module" })), jf = (...t) => (e) => t.reduce((n, r) => r(n), e), gi = (t) => t.reduce(
|
|
5264
5273
|
(e, { callback: n, context: r }) => e.then(() => n(r)),
|
|
5265
5274
|
Promise.resolve()
|
|
5266
|
-
),
|
|
5275
|
+
), Df = ({
|
|
5267
5276
|
experience: t,
|
|
5268
5277
|
onRender: e,
|
|
5269
5278
|
onRenderReset: n,
|
|
@@ -5274,7 +5283,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5274
5283
|
const s = () => {
|
|
5275
5284
|
const l = o().document, u = Ie(t.id);
|
|
5276
5285
|
return l.documentElement.querySelector(`#${u}`);
|
|
5277
|
-
}, c = () => a ? a.shadowRoot : null, f = () => i ? i.shadowRoot : null, g =
|
|
5286
|
+
}, c = () => a ? a.shadowRoot : null, f = () => i ? i.shadowRoot : null, g = jf(
|
|
5278
5287
|
(l) => (f() !== null || c() !== null || (i = s()), l),
|
|
5279
5288
|
r,
|
|
5280
5289
|
({ step: { virtualizedContent: l } }) => {
|
|
@@ -5306,7 +5315,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5306
5315
|
getRoot: () => a ?? s(),
|
|
5307
5316
|
hasCustomContainer: (l, u) => u.type === Ea && u.options?.forceUpdate || !!c()
|
|
5308
5317
|
};
|
|
5309
|
-
},
|
|
5318
|
+
}, Pf = ({ container: t, nodes: e }, n = 0) => t.replace(/<% node %>/, e[n]), Lf = (t) => t.replaceAll("//twemoji.maxcdn.com/2/svg/", "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/"), Hf = (t) => t.split("_").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(" "), zt = ({ experience: t, experienceInstanceId: e }, n) => ({
|
|
5310
5319
|
experienceId: t.id,
|
|
5311
5320
|
experienceName: t.name,
|
|
5312
5321
|
experienceType: t.type,
|
|
@@ -5315,13 +5324,13 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5315
5324
|
localeId: t.context?.localeId || "default",
|
|
5316
5325
|
timestamp: Date.now(),
|
|
5317
5326
|
version: t.version,
|
|
5318
|
-
name:
|
|
5327
|
+
name: Hf(n),
|
|
5319
5328
|
experienceInstanceId: e
|
|
5320
5329
|
}), ve = ({ step: t }) => ({
|
|
5321
5330
|
stepId: t.id,
|
|
5322
5331
|
stepName: t.name,
|
|
5323
5332
|
stepType: t.type
|
|
5324
|
-
}),
|
|
5333
|
+
}), $f = (t, e) => !t.blockedEvents[e.type], Za = (t) => {
|
|
5325
5334
|
const e = (h) => {
|
|
5326
5335
|
const p = "experience_started", v = zt(h, p);
|
|
5327
5336
|
t("sendEvent")(p, v);
|
|
@@ -5413,10 +5422,10 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5413
5422
|
},
|
|
5414
5423
|
helpers: {
|
|
5415
5424
|
blockEvent: u,
|
|
5416
|
-
isEventEnabled:
|
|
5425
|
+
isEventEnabled: $f
|
|
5417
5426
|
}
|
|
5418
5427
|
};
|
|
5419
|
-
},
|
|
5428
|
+
}, Mf = mr({
|
|
5420
5429
|
initial: "waitingForAsyncEvents",
|
|
5421
5430
|
context: {
|
|
5422
5431
|
runHooksDone: !1
|
|
@@ -5482,7 +5491,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5482
5491
|
type: "final"
|
|
5483
5492
|
}
|
|
5484
5493
|
}
|
|
5485
|
-
}),
|
|
5494
|
+
}), Ff = mr({
|
|
5486
5495
|
initial: "waitingForAsyncEvents",
|
|
5487
5496
|
context: {
|
|
5488
5497
|
runHooksDone: !1
|
|
@@ -5523,7 +5532,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5523
5532
|
type: "final"
|
|
5524
5533
|
}
|
|
5525
5534
|
}
|
|
5526
|
-
}),
|
|
5535
|
+
}), Wf = {
|
|
5527
5536
|
initial: "waiting_to_render",
|
|
5528
5537
|
on: {
|
|
5529
5538
|
SET_STEP_CONTAINER_TARGET: {
|
|
@@ -5772,7 +5781,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5772
5781
|
"post-render": {
|
|
5773
5782
|
invoke: {
|
|
5774
5783
|
id: "postRenderAsyncEventsHandler",
|
|
5775
|
-
src:
|
|
5784
|
+
src: Mf
|
|
5776
5785
|
},
|
|
5777
5786
|
entry: ["runStepPostRenderHooks"],
|
|
5778
5787
|
on: {
|
|
@@ -5839,7 +5848,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5839
5848
|
invoke: [
|
|
5840
5849
|
{
|
|
5841
5850
|
id: "errorAsyncEventsHandler",
|
|
5842
|
-
src:
|
|
5851
|
+
src: Ff
|
|
5843
5852
|
}
|
|
5844
5853
|
],
|
|
5845
5854
|
entry: ["unmount", "runStepErrorHooks", "stopThemeRemovalListener"],
|
|
@@ -5882,7 +5891,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5882
5891
|
createVnodeTree: s,
|
|
5883
5892
|
wrapContent: c,
|
|
5884
5893
|
applyOverridesToVnode: f
|
|
5885
|
-
} = o("vNodeHandlers"), { makeElementsAccessible: g } = o("accessibilityHandlers"), { applyOverrides: l, createOverrideCallback: u, clearOverrides: h } =
|
|
5894
|
+
} = o("vNodeHandlers"), { makeElementsAccessible: g } = o("accessibilityHandlers"), { applyOverrides: l, createOverrideCallback: u, clearOverrides: h } = Fl({
|
|
5886
5895
|
applyOverridesToVnode: f
|
|
5887
5896
|
}), p = u("style"), v = o("getWindowReference"), { onRender: m, onRenderReset: E } = o("createRenderListener")(), {
|
|
5888
5897
|
render: y,
|
|
@@ -5892,7 +5901,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5892
5901
|
getContainer: I,
|
|
5893
5902
|
hasCustomContainer: O,
|
|
5894
5903
|
getRoot: R
|
|
5895
|
-
} =
|
|
5904
|
+
} = Df({
|
|
5896
5905
|
experience: r,
|
|
5897
5906
|
onRender: m,
|
|
5898
5907
|
onRenderReset: E,
|
|
@@ -5910,9 +5919,9 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5910
5919
|
} = e({
|
|
5911
5920
|
step: t,
|
|
5912
5921
|
overrideStyle: p
|
|
5913
|
-
}), st =
|
|
5922
|
+
}), st = Ml({
|
|
5914
5923
|
addHook: A
|
|
5915
|
-
}), B =
|
|
5924
|
+
}), B = $l(
|
|
5916
5925
|
{
|
|
5917
5926
|
overrideStyle: p,
|
|
5918
5927
|
getContainer: I
|
|
@@ -5925,13 +5934,13 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5925
5934
|
getRoot: R
|
|
5926
5935
|
},
|
|
5927
5936
|
o
|
|
5928
|
-
), pt =
|
|
5937
|
+
), pt = ol({
|
|
5929
5938
|
getRoot: R,
|
|
5930
5939
|
getWindowReference: v
|
|
5931
|
-
}), J =
|
|
5940
|
+
}), J = kl(o), lt = Za(o), bt = (K) => K.contentType === "text/html" ? a(Lf(Pf(K.content))) : s(K.content);
|
|
5932
5941
|
return mr(
|
|
5933
5942
|
{
|
|
5934
|
-
...
|
|
5943
|
+
...Wf,
|
|
5935
5944
|
context: {
|
|
5936
5945
|
id: `step-machine-${t.id}`,
|
|
5937
5946
|
step: {
|
|
@@ -5959,8 +5968,8 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5959
5968
|
{
|
|
5960
5969
|
actions: {
|
|
5961
5970
|
// injecting action coming from step level
|
|
5962
|
-
setContent:
|
|
5963
|
-
updateRootStyle:
|
|
5971
|
+
setContent: El,
|
|
5972
|
+
updateRootStyle: Tl,
|
|
5964
5973
|
// injecting action coming from render
|
|
5965
5974
|
unmount: w,
|
|
5966
5975
|
setContainer: k,
|
|
@@ -5973,29 +5982,29 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5973
5982
|
runStepEndHooks: z,
|
|
5974
5983
|
runStepErrorHooks: Y,
|
|
5975
5984
|
runStepContainerChangeHooks: et,
|
|
5976
|
-
updateStepContext:
|
|
5985
|
+
updateStepContext: wl,
|
|
5977
5986
|
removeStepHooks: () => G(),
|
|
5978
5987
|
clearOverrides: () => h(),
|
|
5979
|
-
setVirtualizedContent:
|
|
5988
|
+
setVirtualizedContent: xl(
|
|
5980
5989
|
bt
|
|
5981
5990
|
),
|
|
5982
5991
|
// injecting action coming from overrides
|
|
5983
5992
|
applyOverrides: l,
|
|
5984
5993
|
// injecting actions coming from dom
|
|
5985
5994
|
startThemeRemovalListener: ja,
|
|
5986
|
-
stopThemeRemovalListener:
|
|
5987
|
-
removeCustomContainer:
|
|
5988
|
-
ensuresElementsAreAccessible:
|
|
5995
|
+
stopThemeRemovalListener: il,
|
|
5996
|
+
removeCustomContainer: nl({ getRoot: R }),
|
|
5997
|
+
ensuresElementsAreAccessible: Cl(
|
|
5989
5998
|
g
|
|
5990
5999
|
),
|
|
5991
|
-
notifyExperienceStarted:
|
|
5992
|
-
notifyStepStopped:
|
|
6000
|
+
notifyExperienceStarted: Sl,
|
|
6001
|
+
notifyStepStopped: _l,
|
|
5993
6002
|
// core events
|
|
5994
6003
|
...lt.stepActions,
|
|
5995
6004
|
blockEvent: lt.helpers.blockEvent,
|
|
5996
|
-
autoRecover:
|
|
5997
|
-
setActionsRunning:
|
|
5998
|
-
setActionsFinished:
|
|
6005
|
+
autoRecover: Rl,
|
|
6006
|
+
setActionsRunning: Ol,
|
|
6007
|
+
setActionsFinished: Nl,
|
|
5999
6008
|
// stop reason handling
|
|
6000
6009
|
saveStopReason: mt({
|
|
6001
6010
|
stopReason: (K, F) => F.reason
|
|
@@ -6028,7 +6037,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6028
6037
|
isAutoRecoverEvent: (K, F) => F.isAutoRecoverEvent,
|
|
6029
6038
|
isEventEnabled: lt.helpers.isEventEnabled,
|
|
6030
6039
|
didContentChanged: (K, F) => !bn(K.step.content, F.stepConfig.content),
|
|
6031
|
-
shouldOnlyReloadTraits:
|
|
6040
|
+
shouldOnlyReloadTraits: Il,
|
|
6032
6041
|
shouldStepReload: (K, F) => !bn(K.step.traits, F.stepConfig.traits) || !bn(K.step.actions, F.stepConfig.actions) || !bn(K.experience.traits, F.experience.traits),
|
|
6033
6042
|
didThemeChange: (K, F) => K.experience.theme !== F.experience.theme,
|
|
6034
6043
|
isHooksDoneEventPostRenderType: (K, F) => F.hookType === _a,
|
|
@@ -6042,7 +6051,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6042
6051
|
}
|
|
6043
6052
|
}
|
|
6044
6053
|
);
|
|
6045
|
-
},
|
|
6054
|
+
}, Vf = ({
|
|
6046
6055
|
createStepHooks: t,
|
|
6047
6056
|
createHooksService: e,
|
|
6048
6057
|
get: n
|
|
@@ -6060,7 +6069,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6060
6069
|
`step-machine - ${s.id}`
|
|
6061
6070
|
), a), {});
|
|
6062
6071
|
}
|
|
6063
|
-
}),
|
|
6072
|
+
}), Uf = ({
|
|
6064
6073
|
createStepHooks: t,
|
|
6065
6074
|
createHooksService: e,
|
|
6066
6075
|
get: n
|
|
@@ -6087,15 +6096,15 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6087
6096
|
...r,
|
|
6088
6097
|
type: t
|
|
6089
6098
|
});
|
|
6090
|
-
},
|
|
6099
|
+
}, zf = Rn(ga), Bf = (t, e) => {
|
|
6091
6100
|
const n = t.stepMachines[e.id];
|
|
6092
6101
|
n && (n.state.done && e.onStopped ? e.onStopped() : n.send({
|
|
6093
6102
|
...e,
|
|
6094
6103
|
type: go
|
|
6095
6104
|
}));
|
|
6096
|
-
},
|
|
6105
|
+
}, qf = Rn(ya), Kf = Rn(
|
|
6097
6106
|
ma
|
|
6098
|
-
),
|
|
6107
|
+
), Zf = Rn(Nu), Gf = Rn(ba), Jf = (t, e) => {
|
|
6099
6108
|
Object.values(t.stepMachines).forEach((n) => {
|
|
6100
6109
|
n.send({
|
|
6101
6110
|
type: go,
|
|
@@ -6122,7 +6131,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6122
6131
|
removedTraits: i,
|
|
6123
6132
|
changedTraits: a
|
|
6124
6133
|
};
|
|
6125
|
-
},
|
|
6134
|
+
}, Qf = mt((t, e) => {
|
|
6126
6135
|
const n = yi(
|
|
6127
6136
|
t.experience.traits,
|
|
6128
6137
|
e.experience.traits
|
|
@@ -6147,20 +6156,20 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6147
6156
|
}), {
|
|
6148
6157
|
experience: e.experience
|
|
6149
6158
|
};
|
|
6150
|
-
}),
|
|
6159
|
+
}), Xf = (t) => {
|
|
6151
6160
|
Object.values(t.stepMachines).forEach((e) => {
|
|
6152
6161
|
e.send({
|
|
6153
6162
|
type: bo
|
|
6154
6163
|
});
|
|
6155
6164
|
});
|
|
6156
|
-
},
|
|
6165
|
+
}, Yf = mt({
|
|
6157
6166
|
experienceInstanceId: () => Su()
|
|
6158
|
-
}),
|
|
6167
|
+
}), td = mt({
|
|
6159
6168
|
stepMachines: (t, e) => Object.entries(t.stepMachines).reduce(
|
|
6160
6169
|
(n, [r, o]) => (r !== e.id && (n[r] = o), n),
|
|
6161
6170
|
{}
|
|
6162
6171
|
)
|
|
6163
|
-
}),
|
|
6172
|
+
}), ed = mt({
|
|
6164
6173
|
experience: ({ experience: t }, e) => {
|
|
6165
6174
|
const n = t.steps.findIndex((r) => r.id === e.id);
|
|
6166
6175
|
return n === -1 ? t : Gn(
|
|
@@ -6169,7 +6178,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6169
6178
|
(r) => r.filter(({ once: o = !1 }) => !o)
|
|
6170
6179
|
);
|
|
6171
6180
|
}
|
|
6172
|
-
}),
|
|
6181
|
+
}), nd = ({ addHook: t }) => ({ experience: e }) => (n) => {
|
|
6173
6182
|
try {
|
|
6174
6183
|
e.traits.forEach(
|
|
6175
6184
|
(r) => La({
|
|
@@ -6210,9 +6219,9 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6210
6219
|
};
|
|
6211
6220
|
},
|
|
6212
6221
|
{ to: "hooksService" }
|
|
6213
|
-
),
|
|
6222
|
+
), rd = be(Fu), od = be(Wu), id = be(yo), ad = be(Sa), sd = be(_a), cd = be(sr), ud = Vc(
|
|
6214
6223
|
(t, e) => be(Ta, { errorEvent: e })
|
|
6215
|
-
),
|
|
6224
|
+
), ld = be(ka), fd = () => {
|
|
6216
6225
|
const t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map(), n = (o = {}, i) => () => (
|
|
6217
6226
|
// eslint-disable-next-line unicorn/consistent-function-scoping
|
|
6218
6227
|
((a, s) => {
|
|
@@ -6274,12 +6283,12 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6274
6283
|
(i, a) => e.get(o.id).set(i, a)
|
|
6275
6284
|
),
|
|
6276
6285
|
removeStepHooks: () => e.set(o.id, /* @__PURE__ */ new Map()),
|
|
6277
|
-
runStepBeginHooks:
|
|
6278
|
-
runStepPreRenderHooks:
|
|
6279
|
-
runStepPostRenderHooks:
|
|
6280
|
-
runStepEndHooks:
|
|
6281
|
-
runStepErrorHooks:
|
|
6282
|
-
runStepContainerChangeHooks:
|
|
6286
|
+
runStepBeginHooks: id,
|
|
6287
|
+
runStepPreRenderHooks: ad,
|
|
6288
|
+
runStepPostRenderHooks: sd,
|
|
6289
|
+
runStepEndHooks: cd,
|
|
6290
|
+
runStepErrorHooks: ud,
|
|
6291
|
+
runStepContainerChangeHooks: ld
|
|
6283
6292
|
});
|
|
6284
6293
|
return {
|
|
6285
6294
|
addHook: mi(
|
|
@@ -6288,10 +6297,10 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6288
6297
|
),
|
|
6289
6298
|
createStepHooks: r,
|
|
6290
6299
|
createHooksService: n,
|
|
6291
|
-
runExperienceBeginHooks:
|
|
6292
|
-
runExperienceEndHooks:
|
|
6300
|
+
runExperienceBeginHooks: rd,
|
|
6301
|
+
runExperienceEndHooks: od
|
|
6293
6302
|
};
|
|
6294
|
-
},
|
|
6303
|
+
}, dd = {
|
|
6295
6304
|
id: "experience",
|
|
6296
6305
|
initial: "idle",
|
|
6297
6306
|
invoke: [
|
|
@@ -6429,27 +6438,27 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6429
6438
|
type: "final"
|
|
6430
6439
|
}
|
|
6431
6440
|
}
|
|
6432
|
-
},
|
|
6441
|
+
}, pd = (t, e) => {
|
|
6433
6442
|
const {
|
|
6434
6443
|
addHook: n,
|
|
6435
6444
|
createStepHooks: r,
|
|
6436
6445
|
createHooksService: o,
|
|
6437
6446
|
runExperienceBeginHooks: i,
|
|
6438
6447
|
runExperienceEndHooks: a
|
|
6439
|
-
} =
|
|
6448
|
+
} = fd(), s = o({}, e), c = Vf({
|
|
6440
6449
|
createStepHooks: r,
|
|
6441
6450
|
createHooksService: o,
|
|
6442
6451
|
get: e
|
|
6443
|
-
}), f =
|
|
6452
|
+
}), f = Uf({
|
|
6444
6453
|
createStepHooks: r,
|
|
6445
6454
|
createHooksService: o,
|
|
6446
6455
|
get: e
|
|
6447
|
-
}), g =
|
|
6456
|
+
}), g = nd({
|
|
6448
6457
|
addHook: n
|
|
6449
|
-
}), l = Za(e), u =
|
|
6458
|
+
}), l = Za(e), u = Yu(e), h = tl(e), p = rl(e);
|
|
6450
6459
|
return mr(
|
|
6451
6460
|
{
|
|
6452
|
-
...
|
|
6461
|
+
...dd,
|
|
6453
6462
|
context: {
|
|
6454
6463
|
experience: t,
|
|
6455
6464
|
blockedEvents: {},
|
|
@@ -6459,18 +6468,18 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6459
6468
|
{
|
|
6460
6469
|
actions: {
|
|
6461
6470
|
// experience
|
|
6462
|
-
startStep:
|
|
6463
|
-
stopStep:
|
|
6464
|
-
updateStep:
|
|
6465
|
-
setStepContainerTarget:
|
|
6466
|
-
recoverStep:
|
|
6471
|
+
startStep: zf,
|
|
6472
|
+
stopStep: Bf,
|
|
6473
|
+
updateStep: qf,
|
|
6474
|
+
setStepContainerTarget: Kf,
|
|
6475
|
+
recoverStep: Zf,
|
|
6467
6476
|
startStepMachines: c,
|
|
6468
|
-
stopSteps:
|
|
6469
|
-
notifyStepsContainerRemoved:
|
|
6470
|
-
updateStepContent:
|
|
6471
|
-
reloadSteps:
|
|
6472
|
-
updateExperienceInstanceId:
|
|
6473
|
-
cleanStepMachines:
|
|
6477
|
+
stopSteps: Jf,
|
|
6478
|
+
notifyStepsContainerRemoved: Xf,
|
|
6479
|
+
updateStepContent: Gf,
|
|
6480
|
+
reloadSteps: Qf,
|
|
6481
|
+
updateExperienceInstanceId: Yf,
|
|
6482
|
+
cleanStepMachines: td,
|
|
6474
6483
|
startStepMachine: f,
|
|
6475
6484
|
// hooks
|
|
6476
6485
|
runExperienceBeginHooks: i,
|
|
@@ -6480,7 +6489,7 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6480
6489
|
removeGlobalThemeComponent: h,
|
|
6481
6490
|
startThemeRemovalListener: ja,
|
|
6482
6491
|
// traits
|
|
6483
|
-
cleanRunOnceTraits:
|
|
6492
|
+
cleanRunOnceTraits: ed,
|
|
6484
6493
|
// core events
|
|
6485
6494
|
...l.experienceActions,
|
|
6486
6495
|
blockEvent: l.helpers.blockEvent
|
|
@@ -6518,15 +6527,15 @@ const If = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
6518
6527
|
}
|
|
6519
6528
|
}
|
|
6520
6529
|
);
|
|
6521
|
-
function
|
|
6530
|
+
function hd(t) {
|
|
6522
6531
|
const e = (t.ownerDocument || document).createElement("div");
|
|
6523
6532
|
return t.append(e), Ja(e, ie("div"));
|
|
6524
6533
|
}
|
|
6525
|
-
const
|
|
6534
|
+
const vd = () => {
|
|
6526
6535
|
let t = null;
|
|
6527
6536
|
return {
|
|
6528
6537
|
onRender: (e, n) => {
|
|
6529
|
-
!t && !e || (t || (t =
|
|
6538
|
+
!t && !e || (t || (t = hd(e)), t = Ja(t, n));
|
|
6530
6539
|
},
|
|
6531
6540
|
onRenderReset: () => {
|
|
6532
6541
|
t = null;
|
|
@@ -6534,7 +6543,7 @@ const hd = () => {
|
|
|
6534
6543
|
};
|
|
6535
6544
|
};
|
|
6536
6545
|
var Un = {}, bi, Ei;
|
|
6537
|
-
function
|
|
6546
|
+
function gd() {
|
|
6538
6547
|
return Ei || (Ei = 1, bi = {
|
|
6539
6548
|
area: !0,
|
|
6540
6549
|
base: !0,
|
|
@@ -6555,10 +6564,10 @@ function vd() {
|
|
|
6555
6564
|
}), bi;
|
|
6556
6565
|
}
|
|
6557
6566
|
var Hr, xi;
|
|
6558
|
-
function
|
|
6567
|
+
function yd() {
|
|
6559
6568
|
if (xi) return Hr;
|
|
6560
6569
|
xi = 1;
|
|
6561
|
-
var t = /([\w-]+)|=|(['"])([.\s\S]*?)\2/g, e =
|
|
6570
|
+
var t = /([\w-]+)|=|(['"])([.\s\S]*?)\2/g, e = gd();
|
|
6562
6571
|
return Hr = function(n) {
|
|
6563
6572
|
var r = 0, o, i = !0, a = {
|
|
6564
6573
|
type: "tag",
|
|
@@ -6577,10 +6586,10 @@ function gd() {
|
|
|
6577
6586
|
}, Hr;
|
|
6578
6587
|
}
|
|
6579
6588
|
var $r, wi;
|
|
6580
|
-
function
|
|
6589
|
+
function md() {
|
|
6581
6590
|
if (wi) return $r;
|
|
6582
6591
|
wi = 1;
|
|
6583
|
-
var t = /(?:<!--[\S\s]*?-->|<(?:"[^"]*"|'[^']*'|[^'">])+>)/g, e =
|
|
6592
|
+
var t = /(?:<!--[\S\s]*?-->|<(?:"[^"]*"|'[^']*'|[^'">])+>)/g, e = yd(), n = Object.create ? /* @__PURE__ */ Object.create(null) : {};
|
|
6584
6593
|
function r(o, i, a, s, c) {
|
|
6585
6594
|
var f = i.indexOf("<", s), g = i.slice(s, f === -1 ? void 0 : f);
|
|
6586
6595
|
/^\s*$/.test(g) && (g = " "), (!c && f > -1 && a + o.length >= 0 || g !== " ") && o.push({
|
|
@@ -6602,9 +6611,9 @@ function yd() {
|
|
|
6602
6611
|
}), !a.length && o.length && r(a, o, 0, 0, i.ignoreWhitespace), a;
|
|
6603
6612
|
}, $r;
|
|
6604
6613
|
}
|
|
6605
|
-
const Qa = /* @__PURE__ */ lu(
|
|
6614
|
+
const Qa = /* @__PURE__ */ lu(Af);
|
|
6606
6615
|
var Me = {}, Si;
|
|
6607
|
-
function
|
|
6616
|
+
function bd() {
|
|
6608
6617
|
if (Si) return Me;
|
|
6609
6618
|
Si = 1, Object.defineProperty(Me, "__esModule", {
|
|
6610
6619
|
value: !0
|
|
@@ -6629,7 +6638,7 @@ function md() {
|
|
|
6629
6638
|
return Me;
|
|
6630
6639
|
}
|
|
6631
6640
|
var _i;
|
|
6632
|
-
function
|
|
6641
|
+
function Ed() {
|
|
6633
6642
|
if (_i) return Un;
|
|
6634
6643
|
_i = 1, Object.defineProperty(Un, "__esModule", {
|
|
6635
6644
|
value: !0
|
|
@@ -6642,7 +6651,7 @@ function bd() {
|
|
|
6642
6651
|
u.hooks.create(E);
|
|
6643
6652
|
}), m;
|
|
6644
6653
|
};
|
|
6645
|
-
var t =
|
|
6654
|
+
var t = md(), e = o(t), n = Qa, r = bd();
|
|
6646
6655
|
function o(l) {
|
|
6647
6656
|
return l && l.__esModule ? l : { default: l };
|
|
6648
6657
|
}
|
|
@@ -6702,16 +6711,16 @@ function bd() {
|
|
|
6702
6711
|
return Un;
|
|
6703
6712
|
}
|
|
6704
6713
|
var Ti, ki;
|
|
6705
|
-
function
|
|
6706
|
-
return ki || (ki = 1, Ti =
|
|
6714
|
+
function xd() {
|
|
6715
|
+
return ki || (ki = 1, Ti = Ed()), Ti;
|
|
6707
6716
|
}
|
|
6708
|
-
var
|
|
6709
|
-
const
|
|
6717
|
+
var wd = xd();
|
|
6718
|
+
const Sd = /* @__PURE__ */ Ne(wd), Xa = "data-interaction-style", _d = (t) => t.replace(/([A-Z])/g, (e) => `-${e[0].toLowerCase()}`), Ya = (t) => t.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/'/g, "'").replace(/"/g, '"'), ts = ({ nodeId: t, interactionId: e, state: n }) => {
|
|
6710
6719
|
const r = e ? `[${Xa}="${e}"]` : `#${t}`;
|
|
6711
6720
|
return Object.keys(n).map((o) => `${r}:${o} {
|
|
6712
6721
|
${Object.entries(n[o]).map(([i, a]) => {
|
|
6713
6722
|
const s = Ya(String(a));
|
|
6714
|
-
return `${
|
|
6723
|
+
return `${_d(
|
|
6715
6724
|
i
|
|
6716
6725
|
)}:${s} !important`;
|
|
6717
6726
|
}).join(";")}
|
|
@@ -6755,7 +6764,7 @@ const wd = /* @__PURE__ */ Ne(xd), Xa = "data-interaction-style", Sd = (t) => t.
|
|
|
6755
6764
|
(o) => os(o, e)
|
|
6756
6765
|
)
|
|
6757
6766
|
};
|
|
6758
|
-
},
|
|
6767
|
+
}, Td = ({ step: t }) => {
|
|
6759
6768
|
const e = Ie(t.id), n = ie(
|
|
6760
6769
|
"div",
|
|
6761
6770
|
{
|
|
@@ -6778,22 +6787,22 @@ const wd = /* @__PURE__ */ Ne(xd), Xa = "data-interaction-style", Sd = (t) => t.
|
|
|
6778
6787
|
virtualizedContent: n
|
|
6779
6788
|
}
|
|
6780
6789
|
};
|
|
6781
|
-
},
|
|
6790
|
+
}, kd = (t, e) => (t.data = {
|
|
6782
6791
|
...t.data,
|
|
6783
6792
|
on: e.on,
|
|
6784
6793
|
hook: e.hook
|
|
6785
|
-
}, t),
|
|
6794
|
+
}, t), Cd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6786
6795
|
__proto__: null,
|
|
6787
6796
|
applyOverridesToVnode: os,
|
|
6788
6797
|
createStyleState: ts,
|
|
6789
6798
|
createVnodeTree: rs,
|
|
6790
6799
|
findId: es,
|
|
6791
|
-
injectHandlers:
|
|
6800
|
+
injectHandlers: kd,
|
|
6792
6801
|
mergeVnodeData: ns,
|
|
6793
6802
|
traverseTree: _o,
|
|
6794
|
-
virtualizeContent:
|
|
6795
|
-
wrapContent:
|
|
6796
|
-
}, Symbol.toStringTag, { value: "Module" })), Ci = (t, e) => e.includes(t.data?.attrs?.id) && typeof t.data?.attrs?.tabindex != "string" && typeof t.data?.attrs?.tabIndex != "number",
|
|
6803
|
+
virtualizeContent: Sd,
|
|
6804
|
+
wrapContent: Td
|
|
6805
|
+
}, Symbol.toStringTag, { value: "Module" })), Ci = (t, e) => e.includes(t.data?.attrs?.id) && typeof t.data?.attrs?.tabindex != "string" && typeof t.data?.attrs?.tabIndex != "number", Rd = (t) => {
|
|
6797
6806
|
t.data.attrs.tabindex = 0, t.sel = "button", t.data.style = {
|
|
6798
6807
|
...t.data.style,
|
|
6799
6808
|
border: t.data?.style?.border ?? "none",
|
|
@@ -6801,8 +6810,8 @@ const wd = /* @__PURE__ */ Ne(xd), Xa = "data-interaction-style", Sd = (t) => t.
|
|
|
6801
6810
|
backgroundColor: t.data?.style?.backgroundColor ?? "transparent"
|
|
6802
6811
|
}
|
|
6803
6812
|
};
|
|
6804
|
-
},
|
|
6805
|
-
Ci(o, n) ?
|
|
6813
|
+
}, Od = ({ virtualizedContent: t, index: e }, { interactiveEls: n = [], focusableEls: r = [] }) => (_o(t, (o) => {
|
|
6814
|
+
Ci(o, n) ? Rd(o) : Ci(o, r) && (o.data.attrs = {
|
|
6806
6815
|
...o.data.attrs,
|
|
6807
6816
|
tabindex: 0,
|
|
6808
6817
|
role: "dialog",
|
|
@@ -6812,17 +6821,17 @@ const wd = /* @__PURE__ */ Ne(xd), Xa = "data-interaction-style", Sd = (t) => t.
|
|
|
6812
6821
|
...o.data.attrs,
|
|
6813
6822
|
id: `content-${e}`
|
|
6814
6823
|
});
|
|
6815
|
-
}), t),
|
|
6824
|
+
}), t), Nd = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
6816
6825
|
__proto__: null,
|
|
6817
|
-
makeElementsAccessible:
|
|
6818
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
6826
|
+
makeElementsAccessible: Od
|
|
6827
|
+
}, Symbol.toStringTag, { value: "Module" })), Id = "@appcues/close", Ri = {
|
|
6819
6828
|
markComplete: !0
|
|
6820
|
-
},
|
|
6829
|
+
}, Ad = ({ markComplete: t = Ri.markComplete } = Ri, { stopExperience: e, step: n }) => {
|
|
6821
6830
|
t ? e() : n.dismissExperience();
|
|
6822
6831
|
};
|
|
6823
|
-
ae(
|
|
6824
|
-
const
|
|
6825
|
-
function
|
|
6832
|
+
ae(Id, Ad);
|
|
6833
|
+
const jd = "@appcues/redirectTo";
|
|
6834
|
+
function Dd(t, e) {
|
|
6826
6835
|
if (/^https?:\/\//i.test(e))
|
|
6827
6836
|
return e;
|
|
6828
6837
|
try {
|
|
@@ -6831,45 +6840,45 @@ function jd(t, e) {
|
|
|
6831
6840
|
return e;
|
|
6832
6841
|
}
|
|
6833
6842
|
}
|
|
6834
|
-
const
|
|
6843
|
+
const Pd = ({ url: t = "", openInNewWindow: e = !1 } = {}, { reportError: n, getWindowReference: r }) => {
|
|
6835
6844
|
if (!t) {
|
|
6836
6845
|
n("Can't redirect to undefined URL");
|
|
6837
6846
|
return;
|
|
6838
6847
|
}
|
|
6839
|
-
const o = r(), i =
|
|
6848
|
+
const o = r(), i = Dd(o, t);
|
|
6840
6849
|
o.open(i, e ? "_blank" : "_self", "noopener");
|
|
6841
6850
|
};
|
|
6842
|
-
ae(
|
|
6843
|
-
const
|
|
6851
|
+
ae(jd, Pd);
|
|
6852
|
+
const Ld = "@appcues/trackEvent", Hd = ({ name: t, properties: e = {} }, { sendCustomEvent: n }) => {
|
|
6844
6853
|
n(t, e);
|
|
6845
6854
|
};
|
|
6846
|
-
ae(
|
|
6847
|
-
const
|
|
6855
|
+
ae(Ld, Hd);
|
|
6856
|
+
const $d = "@appcues/triggerFlow", Md = ({ flowId: t, url: e, prefetch: n = !1 } = {}, { showFlow: r }) => {
|
|
6848
6857
|
r({ flowId: t, url: e, prefetch: n });
|
|
6849
6858
|
};
|
|
6850
|
-
ae(
|
|
6851
|
-
const
|
|
6852
|
-
if (
|
|
6853
|
-
const o = r.slice(1, -1), i =
|
|
6859
|
+
ae($d, Md);
|
|
6860
|
+
const Fd = (t) => Object.keys(t).length === 0, Wd = (t) => t === "date.now" ? Date.now() : null, Vd = (t) => typeof t == "string" && t.startsWith("{") && t.endsWith("}"), Ud = (t) => Object.entries(t).reduce((e, [n, r]) => {
|
|
6861
|
+
if (Vd(r)) {
|
|
6862
|
+
const o = r.slice(1, -1), i = Wd(o);
|
|
6854
6863
|
return { ...e, [n]: i ?? r };
|
|
6855
6864
|
}
|
|
6856
6865
|
return { ...e, [n]: r };
|
|
6857
|
-
}, {}),
|
|
6858
|
-
if (!
|
|
6859
|
-
const n =
|
|
6866
|
+
}, {}), zd = "@appcues/setUserProperties", Bd = (t, { updateUserProfile: e }) => {
|
|
6867
|
+
if (!Fd(t)) {
|
|
6868
|
+
const n = Ud(t);
|
|
6860
6869
|
e(n);
|
|
6861
6870
|
}
|
|
6862
6871
|
};
|
|
6863
|
-
ae(
|
|
6864
|
-
const
|
|
6872
|
+
ae(zd, Bd);
|
|
6873
|
+
const qd = "@appcues/toggleActions", Kd = ({ actions: t = [], target: e } = {}, n) => {
|
|
6865
6874
|
const r = n.querySelector(e.selector);
|
|
6866
6875
|
r.length !== 0 && t.forEach((o) => {
|
|
6867
6876
|
const i = `toggleActions_${o.id}`, a = n.getAction(o.type), [s] = r, c = !s.getAttribute(i);
|
|
6868
6877
|
a && c && (a(o.config, n), s.setAttribute(i, !0)), c || s.removeAttribute(i);
|
|
6869
6878
|
});
|
|
6870
6879
|
};
|
|
6871
|
-
ae(
|
|
6872
|
-
const
|
|
6880
|
+
ae(qd, Kd);
|
|
6881
|
+
const Zd = /([\.\*\+\^\$\[\]\\\(\)\|\{\}\,\-\:\?])/g, Oi = /^([a-zA-Z]{2,3}|[a-zA-Z]{5,8})(-[a-zA-Z]{4})?(-(?:[a-zA-Z]{2}|\d{3}))?(-(?:[a-zA-Z\d]{5,8}|\d[a-zA-Z\d]{3}))?$/;
|
|
6873
6882
|
class Oe {
|
|
6874
6883
|
// eslint-disable-line consistent-this
|
|
6875
6884
|
/**
|
|
@@ -6888,7 +6897,7 @@ class Oe {
|
|
|
6888
6897
|
* @returns {null|undefined|string}
|
|
6889
6898
|
*/
|
|
6890
6899
|
static _escapeRegExpPattern(e) {
|
|
6891
|
-
return typeof e != "string" ? e : e.replace(
|
|
6900
|
+
return typeof e != "string" ? e : e.replace(Zd, "\\$1");
|
|
6892
6901
|
}
|
|
6893
6902
|
/**
|
|
6894
6903
|
* @param {string|null} [str]
|
|
@@ -7238,8 +7247,8 @@ Oe._BIDI_RTL_LANGS = [
|
|
|
7238
7247
|
"zdj"
|
|
7239
7248
|
// Comorian, Ngazidja
|
|
7240
7249
|
];
|
|
7241
|
-
const
|
|
7242
|
-
function
|
|
7250
|
+
const Gd = "@appcues/content-direction";
|
|
7251
|
+
function Jd(t) {
|
|
7243
7252
|
try {
|
|
7244
7253
|
return new Oe(t).textInfo;
|
|
7245
7254
|
} catch {
|
|
@@ -7247,26 +7256,26 @@ function Gd(t) {
|
|
|
7247
7256
|
}
|
|
7248
7257
|
}
|
|
7249
7258
|
const Ni = ({ updateRootStyle: t, getTraitConfig: e }) => {
|
|
7250
|
-
const n = navigator.languages ? navigator.languages[0] : navigator.language || navigator.userLanguage, { currentLanguage: r = n, forceDirection: o = null } = e(), i =
|
|
7259
|
+
const n = navigator.languages ? navigator.languages[0] : navigator.language || navigator.userLanguage, { currentLanguage: r = n, forceDirection: o = null } = e(), i = Jd(r);
|
|
7251
7260
|
t(
|
|
7252
7261
|
{
|
|
7253
7262
|
direction: o ?? i.direction
|
|
7254
7263
|
},
|
|
7255
7264
|
{ forceUpdate: !0 }
|
|
7256
7265
|
);
|
|
7257
|
-
},
|
|
7266
|
+
}, Qd = ({ addHook: t }) => {
|
|
7258
7267
|
t("step.begin", Ni), t("step.container_change", Ni);
|
|
7259
7268
|
};
|
|
7260
|
-
St(
|
|
7269
|
+
St(Gd, Qd);
|
|
7261
7270
|
const is = ["top", "right", "bottom", "left"], Ii = ["start", "end"], Ai = /* @__PURE__ */ is.reduce((t, e) => t.concat(e, e + "-" + Ii[0], e + "-" + Ii[1]), []), Tn = Math.min, Ue = Math.max, ur = Math.round, Gt = (t) => ({
|
|
7262
7271
|
x: t,
|
|
7263
7272
|
y: t
|
|
7264
|
-
}),
|
|
7273
|
+
}), Xd = {
|
|
7265
7274
|
left: "right",
|
|
7266
7275
|
right: "left",
|
|
7267
7276
|
bottom: "top",
|
|
7268
7277
|
top: "bottom"
|
|
7269
|
-
},
|
|
7278
|
+
}, Yd = {
|
|
7270
7279
|
start: "end",
|
|
7271
7280
|
end: "start"
|
|
7272
7281
|
};
|
|
@@ -7288,26 +7297,26 @@ function as(t) {
|
|
|
7288
7297
|
function To(t) {
|
|
7289
7298
|
return t === "y" ? "height" : "width";
|
|
7290
7299
|
}
|
|
7291
|
-
const
|
|
7300
|
+
const tp = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
7292
7301
|
function Sr(t) {
|
|
7293
|
-
return
|
|
7302
|
+
return tp.has(en(t)) ? "y" : "x";
|
|
7294
7303
|
}
|
|
7295
7304
|
function ko(t) {
|
|
7296
7305
|
return as(Sr(t));
|
|
7297
7306
|
}
|
|
7298
|
-
function
|
|
7307
|
+
function ep(t, e, n) {
|
|
7299
7308
|
n === void 0 && (n = !1);
|
|
7300
7309
|
const r = re(t), o = ko(t), i = To(o);
|
|
7301
7310
|
let a = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
7302
7311
|
return e.reference[i] > e.floating[i] && (a = ji(a)), [a, ji(a)];
|
|
7303
7312
|
}
|
|
7304
|
-
function
|
|
7305
|
-
return t.replace(/start|end/g, (e) =>
|
|
7313
|
+
function np(t) {
|
|
7314
|
+
return t.replace(/start|end/g, (e) => Yd[e]);
|
|
7306
7315
|
}
|
|
7307
7316
|
function ji(t) {
|
|
7308
|
-
return t.replace(/left|right|bottom|top/g, (e) =>
|
|
7317
|
+
return t.replace(/left|right|bottom|top/g, (e) => Xd[e]);
|
|
7309
7318
|
}
|
|
7310
|
-
function
|
|
7319
|
+
function rp(t) {
|
|
7311
7320
|
return {
|
|
7312
7321
|
top: 0,
|
|
7313
7322
|
right: 0,
|
|
@@ -7317,7 +7326,7 @@ function np(t) {
|
|
|
7317
7326
|
};
|
|
7318
7327
|
}
|
|
7319
7328
|
function ss(t) {
|
|
7320
|
-
return typeof t != "number" ?
|
|
7329
|
+
return typeof t != "number" ? rp(t) : {
|
|
7321
7330
|
top: t,
|
|
7322
7331
|
right: t,
|
|
7323
7332
|
bottom: t,
|
|
@@ -7390,7 +7399,7 @@ function Di(t, e, n) {
|
|
|
7390
7399
|
}
|
|
7391
7400
|
return h;
|
|
7392
7401
|
}
|
|
7393
|
-
const
|
|
7402
|
+
const op = async (t, e, n) => {
|
|
7394
7403
|
const {
|
|
7395
7404
|
placement: r = "bottom",
|
|
7396
7405
|
strategy: o = "absolute",
|
|
@@ -7496,7 +7505,7 @@ async function fr(t, e) {
|
|
|
7496
7505
|
right: (k.right - m.right + p.right) / w.x
|
|
7497
7506
|
};
|
|
7498
7507
|
}
|
|
7499
|
-
const
|
|
7508
|
+
const ip = (t) => ({
|
|
7500
7509
|
name: "arrow",
|
|
7501
7510
|
options: t,
|
|
7502
7511
|
async fn(e) {
|
|
@@ -7534,10 +7543,10 @@ const op = (t) => ({
|
|
|
7534
7543
|
};
|
|
7535
7544
|
}
|
|
7536
7545
|
});
|
|
7537
|
-
function
|
|
7538
|
-
return (t ? [...n.filter((r) => re(r) === t), ...n.filter((r) => re(r) !== t)] : n.filter((r) => en(r) === r)).filter((r) => t ? re(r) === t || (e ?
|
|
7546
|
+
function ap(t, e, n) {
|
|
7547
|
+
return (t ? [...n.filter((r) => re(r) === t), ...n.filter((r) => re(r) !== t)] : n.filter((r) => en(r) === r)).filter((r) => t ? re(r) === t || (e ? np(r) !== r : !1) : !0);
|
|
7539
7548
|
}
|
|
7540
|
-
const
|
|
7549
|
+
const sp = function(t) {
|
|
7541
7550
|
return t === void 0 && (t = {}), {
|
|
7542
7551
|
name: "autoPlacement",
|
|
7543
7552
|
options: t,
|
|
@@ -7555,10 +7564,10 @@ const ap = function(t) {
|
|
|
7555
7564
|
allowedPlacements: u = Ai,
|
|
7556
7565
|
autoAlignment: h = !0,
|
|
7557
7566
|
...p
|
|
7558
|
-
} = tn(t, e), v = l !== void 0 || u === Ai ?
|
|
7567
|
+
} = tn(t, e), v = l !== void 0 || u === Ai ? ap(l || null, h, u) : u, m = await fr(e, p), E = ((n = a.autoPlacement) == null ? void 0 : n.index) || 0, y = v[E];
|
|
7559
7568
|
if (y == null)
|
|
7560
7569
|
return {};
|
|
7561
|
-
const w =
|
|
7570
|
+
const w = ep(y, i, await (c.isRTL == null ? void 0 : c.isRTL(f.floating)));
|
|
7562
7571
|
if (s !== y)
|
|
7563
7572
|
return {
|
|
7564
7573
|
reset: {
|
|
@@ -7617,7 +7626,7 @@ function Pi(t, e) {
|
|
|
7617
7626
|
function Li(t) {
|
|
7618
7627
|
return is.some((e) => t[e] >= 0);
|
|
7619
7628
|
}
|
|
7620
|
-
const
|
|
7629
|
+
const cp = function(t) {
|
|
7621
7630
|
return t === void 0 && (t = {}), {
|
|
7622
7631
|
name: "hide",
|
|
7623
7632
|
options: t,
|
|
@@ -7658,13 +7667,13 @@ const sp = function(t) {
|
|
|
7658
7667
|
}
|
|
7659
7668
|
}
|
|
7660
7669
|
};
|
|
7661
|
-
},
|
|
7662
|
-
async function
|
|
7670
|
+
}, up = /* @__PURE__ */ new Set(["left", "top"]);
|
|
7671
|
+
async function lp(t, e) {
|
|
7663
7672
|
const {
|
|
7664
7673
|
placement: n,
|
|
7665
7674
|
platform: r,
|
|
7666
7675
|
elements: o
|
|
7667
|
-
} = t, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = en(n), s = re(n), c = Sr(n) === "y", f =
|
|
7676
|
+
} = t, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = en(n), s = re(n), c = Sr(n) === "y", f = up.has(a) ? -1 : 1, g = i && c ? -1 : 1, l = tn(e, t);
|
|
7668
7677
|
let {
|
|
7669
7678
|
mainAxis: u,
|
|
7670
7679
|
crossAxis: h,
|
|
@@ -7686,7 +7695,7 @@ async function up(t, e) {
|
|
|
7686
7695
|
y: h * g
|
|
7687
7696
|
};
|
|
7688
7697
|
}
|
|
7689
|
-
const
|
|
7698
|
+
const fp = function(t) {
|
|
7690
7699
|
return t === void 0 && (t = 0), {
|
|
7691
7700
|
name: "offset",
|
|
7692
7701
|
options: t,
|
|
@@ -7697,7 +7706,7 @@ const lp = function(t) {
|
|
|
7697
7706
|
y: i,
|
|
7698
7707
|
placement: a,
|
|
7699
7708
|
middlewareData: s
|
|
7700
|
-
} = e, c = await
|
|
7709
|
+
} = e, c = await lp(e, t);
|
|
7701
7710
|
return a === ((n = s.offset) == null ? void 0 : n.placement) && (r = s.arrow) != null && r.alignmentOffset ? {} : {
|
|
7702
7711
|
x: o + c.x,
|
|
7703
7712
|
y: i + c.y,
|
|
@@ -7708,7 +7717,7 @@ const lp = function(t) {
|
|
|
7708
7717
|
};
|
|
7709
7718
|
}
|
|
7710
7719
|
};
|
|
7711
|
-
},
|
|
7720
|
+
}, dp = function(t) {
|
|
7712
7721
|
return t === void 0 && (t = {}), {
|
|
7713
7722
|
name: "shift",
|
|
7714
7723
|
options: t,
|
|
@@ -7791,7 +7800,7 @@ function Qt(t) {
|
|
|
7791
7800
|
function Hi(t) {
|
|
7792
7801
|
return !_r() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Pt(t).ShadowRoot;
|
|
7793
7802
|
}
|
|
7794
|
-
const
|
|
7803
|
+
const pp = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
7795
7804
|
function On(t) {
|
|
7796
7805
|
const {
|
|
7797
7806
|
overflow: e,
|
|
@@ -7799,15 +7808,15 @@ function On(t) {
|
|
|
7799
7808
|
overflowY: r,
|
|
7800
7809
|
display: o
|
|
7801
7810
|
} = Kt(t);
|
|
7802
|
-
return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !
|
|
7811
|
+
return /auto|scroll|overlay|hidden|clip/.test(e + r + n) && !pp.has(o);
|
|
7803
7812
|
}
|
|
7804
|
-
const
|
|
7805
|
-
function
|
|
7806
|
-
return
|
|
7813
|
+
const hp = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
7814
|
+
function vp(t) {
|
|
7815
|
+
return hp.has(nn(t));
|
|
7807
7816
|
}
|
|
7808
|
-
const
|
|
7817
|
+
const gp = [":popover-open", ":modal"];
|
|
7809
7818
|
function Tr(t) {
|
|
7810
|
-
return
|
|
7819
|
+
return gp.some((e) => {
|
|
7811
7820
|
try {
|
|
7812
7821
|
return t.matches(e);
|
|
7813
7822
|
} catch {
|
|
@@ -7815,12 +7824,12 @@ function Tr(t) {
|
|
|
7815
7824
|
}
|
|
7816
7825
|
});
|
|
7817
7826
|
}
|
|
7818
|
-
const
|
|
7827
|
+
const yp = ["transform", "translate", "scale", "rotate", "perspective"], mp = ["transform", "translate", "scale", "rotate", "perspective", "filter"], bp = ["paint", "layout", "strict", "content"];
|
|
7819
7828
|
function Co(t) {
|
|
7820
7829
|
const e = Ro(), n = qt(t) ? Kt(t) : t;
|
|
7821
|
-
return
|
|
7830
|
+
return yp.some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !e && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !e && (n.filter ? n.filter !== "none" : !1) || mp.some((r) => (n.willChange || "").includes(r)) || bp.some((r) => (n.contain || "").includes(r));
|
|
7822
7831
|
}
|
|
7823
|
-
function
|
|
7832
|
+
function Ep(t) {
|
|
7824
7833
|
let e = me(t);
|
|
7825
7834
|
for (; Qt(e) && !Xe(e); ) {
|
|
7826
7835
|
if (Co(e))
|
|
@@ -7834,9 +7843,9 @@ function bp(t) {
|
|
|
7834
7843
|
function Ro() {
|
|
7835
7844
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
7836
7845
|
}
|
|
7837
|
-
const
|
|
7846
|
+
const xp = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
7838
7847
|
function Xe(t) {
|
|
7839
|
-
return
|
|
7848
|
+
return xp.has(nn(t));
|
|
7840
7849
|
}
|
|
7841
7850
|
function Kt(t) {
|
|
7842
7851
|
return Pt(t).getComputedStyle(t);
|
|
@@ -7907,15 +7916,15 @@ function ze(t) {
|
|
|
7907
7916
|
y: s
|
|
7908
7917
|
};
|
|
7909
7918
|
}
|
|
7910
|
-
const
|
|
7919
|
+
const wp = /* @__PURE__ */ Gt(0);
|
|
7911
7920
|
function ds(t) {
|
|
7912
7921
|
const e = Pt(t);
|
|
7913
|
-
return !Ro() || !e.visualViewport ?
|
|
7922
|
+
return !Ro() || !e.visualViewport ? wp : {
|
|
7914
7923
|
x: e.visualViewport.offsetLeft,
|
|
7915
7924
|
y: e.visualViewport.offsetTop
|
|
7916
7925
|
};
|
|
7917
7926
|
}
|
|
7918
|
-
function
|
|
7927
|
+
function Sp(t, e, n) {
|
|
7919
7928
|
return e === void 0 && (e = !1), !n || e && n !== Pt(t) ? !1 : e;
|
|
7920
7929
|
}
|
|
7921
7930
|
function kn(t, e, n, r) {
|
|
@@ -7923,7 +7932,7 @@ function kn(t, e, n, r) {
|
|
|
7923
7932
|
const o = t.getBoundingClientRect(), i = fs(t);
|
|
7924
7933
|
let a = Gt(1);
|
|
7925
7934
|
e && (r ? qt(r) && (a = ze(r)) : a = ze(t));
|
|
7926
|
-
const s =
|
|
7935
|
+
const s = Sp(i, n, r) ? ds(i) : Gt(0);
|
|
7927
7936
|
let c = (o.left + s.x) / a.x, f = (o.top + s.y) / a.y, g = o.width / a.x, l = o.height / a.y;
|
|
7928
7937
|
if (i) {
|
|
7929
7938
|
const u = Pt(i), h = r && qt(r) ? Pt(r) : r;
|
|
@@ -7951,7 +7960,7 @@ function ps(t, e) {
|
|
|
7951
7960
|
y: o
|
|
7952
7961
|
};
|
|
7953
7962
|
}
|
|
7954
|
-
function
|
|
7963
|
+
function _p(t) {
|
|
7955
7964
|
let {
|
|
7956
7965
|
elements: e,
|
|
7957
7966
|
rect: n,
|
|
@@ -7978,10 +7987,10 @@ function Sp(t) {
|
|
|
7978
7987
|
y: n.y * f.y - c.scrollTop * f.y + g.y + u.y
|
|
7979
7988
|
};
|
|
7980
7989
|
}
|
|
7981
|
-
function
|
|
7990
|
+
function Tp(t) {
|
|
7982
7991
|
return Array.from(t.getClientRects());
|
|
7983
7992
|
}
|
|
7984
|
-
function
|
|
7993
|
+
function kp(t) {
|
|
7985
7994
|
const e = se(t), n = kr(t), r = t.ownerDocument.body, o = Ue(e.scrollWidth, e.clientWidth, r.scrollWidth, r.clientWidth), i = Ue(e.scrollHeight, e.clientHeight, r.scrollHeight, r.clientHeight);
|
|
7986
7995
|
let a = -n.scrollLeft + Cr(t);
|
|
7987
7996
|
const s = -n.scrollTop;
|
|
@@ -7993,7 +8002,7 @@ function Tp(t) {
|
|
|
7993
8002
|
};
|
|
7994
8003
|
}
|
|
7995
8004
|
const $i = 25;
|
|
7996
|
-
function
|
|
8005
|
+
function Cp(t, e) {
|
|
7997
8006
|
const n = Pt(t), r = se(t), o = n.visualViewport;
|
|
7998
8007
|
let i = r.clientWidth, a = r.clientHeight, s = 0, c = 0;
|
|
7999
8008
|
if (o) {
|
|
@@ -8013,8 +8022,8 @@ function kp(t, e) {
|
|
|
8013
8022
|
y: c
|
|
8014
8023
|
};
|
|
8015
8024
|
}
|
|
8016
|
-
const
|
|
8017
|
-
function
|
|
8025
|
+
const Rp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
8026
|
+
function Op(t, e) {
|
|
8018
8027
|
const n = kn(t, !0, e === "fixed"), r = n.top + t.clientTop, o = n.left + t.clientLeft, i = Qt(t) ? ze(t) : Gt(1), a = t.clientWidth * i.x, s = t.clientHeight * i.y, c = o * i.x, f = r * i.y;
|
|
8019
8028
|
return {
|
|
8020
8029
|
width: a,
|
|
@@ -8026,11 +8035,11 @@ function Rp(t, e) {
|
|
|
8026
8035
|
function Mi(t, e, n) {
|
|
8027
8036
|
let r;
|
|
8028
8037
|
if (e === "viewport")
|
|
8029
|
-
r =
|
|
8038
|
+
r = Cp(t, n);
|
|
8030
8039
|
else if (e === "document")
|
|
8031
|
-
r =
|
|
8040
|
+
r = kp(se(t));
|
|
8032
8041
|
else if (qt(e))
|
|
8033
|
-
r =
|
|
8042
|
+
r = Op(e, n);
|
|
8034
8043
|
else {
|
|
8035
8044
|
const o = ds(t);
|
|
8036
8045
|
r = {
|
|
@@ -8046,7 +8055,7 @@ function hs(t, e) {
|
|
|
8046
8055
|
const n = me(t);
|
|
8047
8056
|
return n === e || !qt(n) || Xe(n) ? !1 : Kt(n).position === "fixed" || hs(n, e);
|
|
8048
8057
|
}
|
|
8049
|
-
function
|
|
8058
|
+
function Np(t, e) {
|
|
8050
8059
|
const n = e.get(t);
|
|
8051
8060
|
if (n)
|
|
8052
8061
|
return n;
|
|
@@ -8055,18 +8064,18 @@ function Op(t, e) {
|
|
|
8055
8064
|
let a = i ? me(t) : t;
|
|
8056
8065
|
for (; qt(a) && !Xe(a); ) {
|
|
8057
8066
|
const s = Kt(a), c = Co(a);
|
|
8058
|
-
!c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && o &&
|
|
8067
|
+
!c && s.position === "fixed" && (o = null), (i ? !c && !o : !c && s.position === "static" && o && Rp.has(o.position) || On(a) && !c && hs(t, a)) ? r = r.filter((f) => f !== a) : o = s, a = me(a);
|
|
8059
8068
|
}
|
|
8060
8069
|
return e.set(t, r), r;
|
|
8061
8070
|
}
|
|
8062
|
-
function
|
|
8071
|
+
function Ip(t) {
|
|
8063
8072
|
let {
|
|
8064
8073
|
element: e,
|
|
8065
8074
|
boundary: n,
|
|
8066
8075
|
rootBoundary: r,
|
|
8067
8076
|
strategy: o
|
|
8068
8077
|
} = t;
|
|
8069
|
-
const i = [...n === "clippingAncestors" ? Tr(e) ? [] :
|
|
8078
|
+
const i = [...n === "clippingAncestors" ? Tr(e) ? [] : Np(e, this._c) : [].concat(n), r], a = i[0], s = i.reduce((c, f) => {
|
|
8070
8079
|
const g = Mi(e, f, o);
|
|
8071
8080
|
return c.top = Ue(g.top, c.top), c.right = Tn(g.right, c.right), c.bottom = Tn(g.bottom, c.bottom), c.left = Ue(g.left, c.left), c;
|
|
8072
8081
|
}, Mi(e, a, o));
|
|
@@ -8077,7 +8086,7 @@ function Np(t) {
|
|
|
8077
8086
|
y: s.top
|
|
8078
8087
|
};
|
|
8079
8088
|
}
|
|
8080
|
-
function
|
|
8089
|
+
function Ap(t) {
|
|
8081
8090
|
const {
|
|
8082
8091
|
width: e,
|
|
8083
8092
|
height: n
|
|
@@ -8087,7 +8096,7 @@ function Ip(t) {
|
|
|
8087
8096
|
height: n
|
|
8088
8097
|
};
|
|
8089
8098
|
}
|
|
8090
|
-
function
|
|
8099
|
+
function jp(t, e, n) {
|
|
8091
8100
|
const r = Qt(e), o = se(e), i = n === "fixed", a = kn(t, !0, i, e);
|
|
8092
8101
|
let s = {
|
|
8093
8102
|
scrollLeft: 0,
|
|
@@ -8136,14 +8145,14 @@ function vs(t, e) {
|
|
|
8136
8145
|
return n;
|
|
8137
8146
|
}
|
|
8138
8147
|
let r = Fi(t, e);
|
|
8139
|
-
for (; r &&
|
|
8148
|
+
for (; r && vp(r) && Mr(r); )
|
|
8140
8149
|
r = Fi(r, e);
|
|
8141
|
-
return r && Xe(r) && Mr(r) && !Co(r) ? n : r ||
|
|
8150
|
+
return r && Xe(r) && Mr(r) && !Co(r) ? n : r || Ep(t) || n;
|
|
8142
8151
|
}
|
|
8143
|
-
const
|
|
8152
|
+
const Dp = async function(t) {
|
|
8144
8153
|
const e = this.getOffsetParent || vs, n = this.getDimensions, r = await n(t.floating);
|
|
8145
8154
|
return {
|
|
8146
|
-
reference:
|
|
8155
|
+
reference: jp(t.reference, await e(t.floating), t.strategy),
|
|
8147
8156
|
floating: {
|
|
8148
8157
|
x: 0,
|
|
8149
8158
|
y: 0,
|
|
@@ -8152,35 +8161,35 @@ const jp = async function(t) {
|
|
|
8152
8161
|
}
|
|
8153
8162
|
};
|
|
8154
8163
|
};
|
|
8155
|
-
function
|
|
8164
|
+
function Pp(t) {
|
|
8156
8165
|
return Kt(t).direction === "rtl";
|
|
8157
8166
|
}
|
|
8158
|
-
const
|
|
8159
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
8167
|
+
const Lp = {
|
|
8168
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: _p,
|
|
8160
8169
|
getDocumentElement: se,
|
|
8161
|
-
getClippingRect:
|
|
8170
|
+
getClippingRect: Ip,
|
|
8162
8171
|
getOffsetParent: vs,
|
|
8163
|
-
getElementRects:
|
|
8164
|
-
getClientRects:
|
|
8165
|
-
getDimensions:
|
|
8172
|
+
getElementRects: Dp,
|
|
8173
|
+
getClientRects: Tp,
|
|
8174
|
+
getDimensions: Ap,
|
|
8166
8175
|
getScale: ze,
|
|
8167
8176
|
isElement: qt,
|
|
8168
|
-
isRTL:
|
|
8169
|
-
},
|
|
8177
|
+
isRTL: Pp
|
|
8178
|
+
}, Hp = fp, $p = sp, Mp = dp, Fp = cp, Wp = ip, Vp = (t, e, n) => {
|
|
8170
8179
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
8171
|
-
platform:
|
|
8180
|
+
platform: Lp,
|
|
8172
8181
|
...n
|
|
8173
8182
|
}, i = {
|
|
8174
8183
|
...o.platform,
|
|
8175
8184
|
_c: r
|
|
8176
8185
|
};
|
|
8177
|
-
return
|
|
8186
|
+
return op(t, e, {
|
|
8178
8187
|
...o,
|
|
8179
8188
|
platform: i
|
|
8180
8189
|
});
|
|
8181
8190
|
};
|
|
8182
8191
|
var Fr, Wi;
|
|
8183
|
-
function
|
|
8192
|
+
function Up() {
|
|
8184
8193
|
if (Wi) return Fr;
|
|
8185
8194
|
Wi = 1;
|
|
8186
8195
|
var t = "Expected a function", e = NaN, n = "[object Symbol]", r = /^\s+|\s+$/g, o = /^[-+]0x[0-9a-f]+$/i, i = /^0b[01]+$/i, a = /^0o[0-7]+$/i, s = parseInt, c = typeof Wt == "object" && Wt && Wt.Object === Object && Wt, f = typeof self == "object" && self && self.Object === Object && self, g = c || f || Function("return this")(), l = Object.prototype, u = l.toString, h = Math.max, p = Math.min, v = function() {
|
|
@@ -8260,10 +8269,10 @@ function Vp() {
|
|
|
8260
8269
|
}
|
|
8261
8270
|
return Fr = m, Fr;
|
|
8262
8271
|
}
|
|
8263
|
-
var
|
|
8264
|
-
const gs = /* @__PURE__ */ Ne(
|
|
8272
|
+
var zp = Up();
|
|
8273
|
+
const gs = /* @__PURE__ */ Ne(zp);
|
|
8265
8274
|
var Wr, Vi;
|
|
8266
|
-
function
|
|
8275
|
+
function Bp() {
|
|
8267
8276
|
if (Vi) return Wr;
|
|
8268
8277
|
Vi = 1;
|
|
8269
8278
|
var t = 200, e = "__lodash_hash_undefined__", n = 1 / 0, r = "[object Function]", o = "[object GeneratorFunction]", i = /[\\^$.*+?()[\]{}|]/g, a = /^\[object .+?Constructor\]$/, s = typeof Wt == "object" && Wt && Wt.Object === Object && Wt, c = typeof self == "object" && self && self.Object === Object && self, f = s || c || Function("return this")();
|
|
@@ -8495,8 +8504,8 @@ function zp() {
|
|
|
8495
8504
|
}
|
|
8496
8505
|
return Wr = ln, Wr;
|
|
8497
8506
|
}
|
|
8498
|
-
var
|
|
8499
|
-
const
|
|
8507
|
+
var qp = Bp();
|
|
8508
|
+
const Kp = /* @__PURE__ */ Ne(qp), ys = 10, Zp = 12, Gp = (t, e, n, r) => {
|
|
8500
8509
|
const { staticSide: o, offset: i, rotation: a, shadowOpacity: s } = {
|
|
8501
8510
|
top: {
|
|
8502
8511
|
staticSide: "bottom",
|
|
@@ -8538,10 +8547,10 @@ const qp = /* @__PURE__ */ Ne(Bp), ys = 10, Kp = 12, Zp = (t, e, n, r) => {
|
|
|
8538
8547
|
return e.find(
|
|
8539
8548
|
({ config: r, type: o }) => o === "@appcues/overlay" && n === r.rootId
|
|
8540
8549
|
);
|
|
8541
|
-
},
|
|
8542
|
-
const n = ys +
|
|
8550
|
+
}, Jp = (t, e) => {
|
|
8551
|
+
const n = ys + Zp / 2;
|
|
8543
8552
|
return e.includes("start") ? t - n : t + n;
|
|
8544
|
-
},
|
|
8553
|
+
}, Qp = ({
|
|
8545
8554
|
placementUnit: t,
|
|
8546
8555
|
distance: e,
|
|
8547
8556
|
skidding: n,
|
|
@@ -8587,10 +8596,10 @@ function ms(t, e, n, r, o) {
|
|
|
8587
8596
|
}
|
|
8588
8597
|
return i;
|
|
8589
8598
|
}
|
|
8590
|
-
const
|
|
8599
|
+
const Xp = (t, e) => {
|
|
8591
8600
|
const n = e(), r = n.document, o = n.getComputedStyle(t);
|
|
8592
8601
|
return ms(t, o, r, n);
|
|
8593
|
-
},
|
|
8602
|
+
}, Yp = ({
|
|
8594
8603
|
targetEl: t,
|
|
8595
8604
|
rootStyle: e,
|
|
8596
8605
|
shouldAutoCalculateZIndex: n,
|
|
@@ -8598,11 +8607,11 @@ const Qp = (t, e) => {
|
|
|
8598
8607
|
}) => {
|
|
8599
8608
|
let o = e;
|
|
8600
8609
|
if (n) {
|
|
8601
|
-
const i =
|
|
8610
|
+
const i = Xp(t, r);
|
|
8602
8611
|
o = { ...e, zIndex: i };
|
|
8603
8612
|
}
|
|
8604
8613
|
return o;
|
|
8605
|
-
},
|
|
8614
|
+
}, th = () => {
|
|
8606
8615
|
const t = /* @__PURE__ */ new Map();
|
|
8607
8616
|
function e(n) {
|
|
8608
8617
|
n.composedPath().forEach((r) => {
|
|
@@ -8625,7 +8634,7 @@ const Qp = (t, e) => {
|
|
|
8625
8634
|
i[r] = a, t.set(n, i), i[r].length === 0 && n.removeEventListener(r, e, !0);
|
|
8626
8635
|
}
|
|
8627
8636
|
};
|
|
8628
|
-
}, { addEventListener: hr, removeEventListener: vr } =
|
|
8637
|
+
}, { addEventListener: hr, removeEventListener: vr } = th(), eh = () => {
|
|
8629
8638
|
const t = /* @__PURE__ */ new Map(), e = /* @__PURE__ */ new Map(), n = (o) => {
|
|
8630
8639
|
if (e.has(o)) return;
|
|
8631
8640
|
const i = setInterval(() => {
|
|
@@ -8648,14 +8657,14 @@ const Qp = (t, e) => {
|
|
|
8648
8657
|
const a = t.get(i) ?? [];
|
|
8649
8658
|
return t.set(i, [...a, o]), n(i), () => r(o, i);
|
|
8650
8659
|
};
|
|
8651
|
-
},
|
|
8660
|
+
}, nh = eh(), Be = (t, e) => {
|
|
8652
8661
|
if (!e) return t;
|
|
8653
8662
|
const { order: n, text: r } = e;
|
|
8654
8663
|
let o = [...t];
|
|
8655
8664
|
return r && r !== "" && (o = o.filter(
|
|
8656
8665
|
(i) => i.textContent.replace(/\r\n|\r|\n/g, " ").toLowerCase().trim() === r.toString().toLowerCase().trim()
|
|
8657
8666
|
)), n != null ? o.length > n ? [o[n]] : [] : o;
|
|
8658
|
-
},
|
|
8667
|
+
}, rh = "@appcues/overlay", oh = {
|
|
8659
8668
|
top: "top",
|
|
8660
8669
|
"top-left": "top-start",
|
|
8661
8670
|
"top-right": "top-end",
|
|
@@ -8669,7 +8678,7 @@ const Qp = (t, e) => {
|
|
|
8669
8678
|
"left-bottom": "left-end",
|
|
8670
8679
|
"left-top": "left-start",
|
|
8671
8680
|
center: "top-start"
|
|
8672
|
-
},
|
|
8681
|
+
}, ih = (t) => {
|
|
8673
8682
|
let e, n, r, o = [], i, a = () => {
|
|
8674
8683
|
}, s;
|
|
8675
8684
|
function c() {
|
|
@@ -8685,9 +8694,9 @@ const Qp = (t, e) => {
|
|
|
8685
8694
|
return e = l, n = u, r = h, o = [], this;
|
|
8686
8695
|
},
|
|
8687
8696
|
start() {
|
|
8688
|
-
r && (o =
|
|
8697
|
+
r && (o = Kp([...dr(r)])), o.forEach((l) => {
|
|
8689
8698
|
hr(l, "scroll", f), hr(l, "resize", f);
|
|
8690
|
-
}), i = new ResizeObserver(f), i.observe(n), s = e.getBoundingClientRect(), a =
|
|
8699
|
+
}), i = new ResizeObserver(f), i.observe(n), s = e.getBoundingClientRect(), a = nh(g, 200);
|
|
8691
8700
|
},
|
|
8692
8701
|
remove() {
|
|
8693
8702
|
o.forEach((l) => {
|
|
@@ -8695,7 +8704,7 @@ const Qp = (t, e) => {
|
|
|
8695
8704
|
}), i?.unobserve(n), a();
|
|
8696
8705
|
}
|
|
8697
8706
|
};
|
|
8698
|
-
},
|
|
8707
|
+
}, ah = ({ addHook: t, registerAction: e }) => {
|
|
8699
8708
|
let n, r = !1, o = !1, i, a, s, c, f, g, l = !1, u = "absolute", h, p;
|
|
8700
8709
|
t(
|
|
8701
8710
|
"step.begin",
|
|
@@ -8734,47 +8743,47 @@ const Qp = (t, e) => {
|
|
|
8734
8743
|
const { targetEl: q, rootEl: pt, arrowEl: J } = s();
|
|
8735
8744
|
if (!r && q && pt) {
|
|
8736
8745
|
r = !0;
|
|
8737
|
-
const lt =
|
|
8746
|
+
const lt = Qp({
|
|
8738
8747
|
placement: D,
|
|
8739
8748
|
targetEl: q,
|
|
8740
8749
|
distance: $,
|
|
8741
8750
|
skidding: M,
|
|
8742
8751
|
placementUnit: z
|
|
8743
8752
|
}), bt = [
|
|
8744
|
-
|
|
8753
|
+
Hp(({ placement: Ht }) => ({
|
|
8745
8754
|
...lt,
|
|
8746
|
-
crossAxis: J && /start|end/gm.test(Ht) ?
|
|
8755
|
+
crossAxis: J && /start|end/gm.test(Ht) ? Jp(M, Ht) : lt.crossAxis
|
|
8747
8756
|
}))
|
|
8748
8757
|
];
|
|
8749
8758
|
D === "auto" && bt.push(
|
|
8750
|
-
|
|
8751
|
-
|
|
8759
|
+
Mp(),
|
|
8760
|
+
$p({
|
|
8752
8761
|
crossAxis: !0
|
|
8753
8762
|
})
|
|
8754
|
-
), J && bt.push(
|
|
8763
|
+
), J && bt.push(Wp({ element: J, padding: ys })), bt.push(Fp());
|
|
8755
8764
|
const {
|
|
8756
8765
|
middlewareData: K,
|
|
8757
8766
|
strategy: F,
|
|
8758
8767
|
x: It,
|
|
8759
8768
|
y: tt,
|
|
8760
8769
|
placement: ft
|
|
8761
|
-
} = await
|
|
8770
|
+
} = await Vp(q, pt, {
|
|
8762
8771
|
middleware: bt,
|
|
8763
|
-
placement:
|
|
8772
|
+
placement: oh[D] ?? "auto",
|
|
8764
8773
|
strategy: u
|
|
8765
8774
|
}), { referenceHidden: Et } = K.hide;
|
|
8766
8775
|
if (J) {
|
|
8767
8776
|
const { x: Ht, y: Vt } = K.arrow;
|
|
8768
8777
|
w(
|
|
8769
8778
|
O,
|
|
8770
|
-
|
|
8779
|
+
Gp(ft, Ht, Vt)
|
|
8771
8780
|
);
|
|
8772
8781
|
}
|
|
8773
8782
|
const Lt = {
|
|
8774
8783
|
left: `${It}px`,
|
|
8775
8784
|
position: F,
|
|
8776
8785
|
top: `${tt}px`
|
|
8777
|
-
}, At =
|
|
8786
|
+
}, At = Yp({
|
|
8778
8787
|
targetEl: q,
|
|
8779
8788
|
rootStyle: Lt,
|
|
8780
8789
|
shouldAutoCalculateZIndex: Y,
|
|
@@ -8785,7 +8794,7 @@ const Qp = (t, e) => {
|
|
|
8785
8794
|
};
|
|
8786
8795
|
h = () => {
|
|
8787
8796
|
r = !1, st();
|
|
8788
|
-
}, c =
|
|
8797
|
+
}, c = ih(h);
|
|
8789
8798
|
const B = () => Be(m(R.selector), R.filters);
|
|
8790
8799
|
n = async () => {
|
|
8791
8800
|
i && i(), a && a();
|
|
@@ -8841,19 +8850,19 @@ const Qp = (t, e) => {
|
|
|
8841
8850
|
}
|
|
8842
8851
|
);
|
|
8843
8852
|
};
|
|
8844
|
-
St(
|
|
8845
|
-
const
|
|
8853
|
+
St(rh, ah);
|
|
8854
|
+
const sh = "@appcues/persistent", ch = ({ addHook: t }) => {
|
|
8846
8855
|
t("experience.begin", ({ steps: e }) => {
|
|
8847
8856
|
e.map((n) => n.start());
|
|
8848
8857
|
});
|
|
8849
8858
|
};
|
|
8850
|
-
St(
|
|
8851
|
-
const
|
|
8859
|
+
St(sh, ch);
|
|
8860
|
+
const uh = {
|
|
8852
8861
|
left: "beforebegin",
|
|
8853
8862
|
"inner-left": "afterbegin",
|
|
8854
8863
|
right: "afterend",
|
|
8855
8864
|
"inner-right": "beforeend"
|
|
8856
|
-
},
|
|
8865
|
+
}, lh = "@appcues/inline", Xn = "appcues-hide", fh = `.${Xn} { display: none !important; }`, dh = ({
|
|
8857
8866
|
distanceUnit: t,
|
|
8858
8867
|
yOffset: e,
|
|
8859
8868
|
xOffset: n,
|
|
@@ -8870,12 +8879,12 @@ const ch = {
|
|
|
8870
8879
|
y: `${i * e / 100}px`
|
|
8871
8880
|
};
|
|
8872
8881
|
};
|
|
8873
|
-
function
|
|
8882
|
+
function ph({ addHook: t }) {
|
|
8874
8883
|
let e, n, r, o = [], i = [], a = null, s = null;
|
|
8875
8884
|
const c = (g) => {
|
|
8876
8885
|
if (a) return;
|
|
8877
8886
|
const { document: l } = g();
|
|
8878
|
-
a = l.createElement("style"), a.textContent =
|
|
8887
|
+
a = l.createElement("style"), a.textContent = fh, l.head.append(a);
|
|
8879
8888
|
}, f = () => {
|
|
8880
8889
|
o.forEach((g) => g.classList.remove(Xn)), o = [], i.forEach((g) => {
|
|
8881
8890
|
const l = g.firstChild;
|
|
@@ -8927,7 +8936,7 @@ function dh({ addHook: t }) {
|
|
|
8927
8936
|
for (; B.firstChild; )
|
|
8928
8937
|
B.firstChild.remove();
|
|
8929
8938
|
if (B.insertAdjacentElement(
|
|
8930
|
-
|
|
8939
|
+
uh[y],
|
|
8931
8940
|
q
|
|
8932
8941
|
) == null) {
|
|
8933
8942
|
u(`can't insert inline container on the ${y}`);
|
|
@@ -8947,7 +8956,7 @@ function dh({ addHook: t }) {
|
|
|
8947
8956
|
const B = {
|
|
8948
8957
|
display: A,
|
|
8949
8958
|
verticalAlign: w
|
|
8950
|
-
}, { x: q, y: pt } =
|
|
8959
|
+
}, { x: q, y: pt } = dh({
|
|
8951
8960
|
distanceUnit: O,
|
|
8952
8961
|
xOffset: S,
|
|
8953
8962
|
yOffset: I,
|
|
@@ -8962,7 +8971,7 @@ function dh({ addHook: t }) {
|
|
|
8962
8971
|
if (R) {
|
|
8963
8972
|
B.position = "sticky";
|
|
8964
8973
|
const J = y.includes("left") ? "top" : "bottom";
|
|
8965
|
-
B[J] = 0, B.zIndex =
|
|
8974
|
+
B[J] = 0, B.zIndex = pl;
|
|
8966
8975
|
}
|
|
8967
8976
|
p(B), st();
|
|
8968
8977
|
return;
|
|
@@ -8988,27 +8997,27 @@ function dh({ addHook: t }) {
|
|
|
8988
8997
|
e && e(), n && n(), s && (s.remove(), s = null), f();
|
|
8989
8998
|
});
|
|
8990
8999
|
}
|
|
8991
|
-
St(
|
|
8992
|
-
const
|
|
9000
|
+
St(lh, ph);
|
|
9001
|
+
const hh = (t, e, n) => {
|
|
8993
9002
|
const { height: r, width: o, left: i, top: a } = t.getBoundingClientRect();
|
|
8994
9003
|
return Math.floor(
|
|
8995
9004
|
Math.hypot(e - (i + o / 2), n - (a + r / 2)) / 2
|
|
8996
9005
|
);
|
|
8997
|
-
},
|
|
9006
|
+
}, vh = (t, e) => {
|
|
8998
9007
|
const { height: n, width: r } = t.getBoundingClientRect(), o = Math.floor(Math.hypot(n, r) / 4);
|
|
8999
9008
|
return Math.max(e, 0) + o;
|
|
9000
|
-
},
|
|
9009
|
+
}, gh = (t) => t.key === "Escape", yh = (t, e) => ![...t.composedPath()].filter((n) => n.nodeType === Node.ELEMENT_NODE).some((n) => n?.contains?.(e) ?? !1), zn = (t, e) => ({
|
|
9001
9010
|
remove: () => {
|
|
9002
9011
|
t.removeEventListener("keydown", e), t.removeEventListener("click", e, !0);
|
|
9003
9012
|
},
|
|
9004
9013
|
start: () => {
|
|
9005
9014
|
t.addEventListener("click", e, !0), t.addEventListener("keydown", e);
|
|
9006
9015
|
}
|
|
9007
|
-
}), Vr = (t, e, n) => e.length === 0 ? (n("Element not found"), !1) : e.length > 1 ? (n(`More than one element found with id: ${t}`), !1) : !0,
|
|
9016
|
+
}), Vr = (t, e, n) => e.length === 0 ? (n("Element not found"), !1) : e.length > 1 ? (n(`More than one element found with id: ${t}`), !1) : !0, mh = "@appcues/toggle.style", bs = ({ targetId: t, styles: e = {} }, { updateStyle: n }) => {
|
|
9008
9017
|
n(t, e);
|
|
9009
9018
|
}, qi = {
|
|
9010
|
-
[
|
|
9011
|
-
},
|
|
9019
|
+
[mh]: bs
|
|
9020
|
+
}, bh = ({ addHook: t, registerAction: e }, {
|
|
9012
9021
|
startHidden: n = !0,
|
|
9013
9022
|
targetId: r,
|
|
9014
9023
|
transition: o,
|
|
@@ -9066,7 +9075,7 @@ const ph = (t, e, n) => {
|
|
|
9066
9075
|
), i && l.length === 0) {
|
|
9067
9076
|
const D = k.querySelector(":first-child")[0];
|
|
9068
9077
|
f = (M) => {
|
|
9069
|
-
(
|
|
9078
|
+
(gh(M) || yh(M, R[0])) && v({ on: E }, y);
|
|
9070
9079
|
};
|
|
9071
9080
|
const $ = h.map((M) => M.contentDocument?.body ? zn(
|
|
9072
9081
|
M.contentDocument.body,
|
|
@@ -9084,9 +9093,9 @@ const ph = (t, e, n) => {
|
|
|
9084
9093
|
const $ = [...D.composedPath()];
|
|
9085
9094
|
["a", "button"].includes($[0].tagName.toLowerCase()) && v({ on: E }, y);
|
|
9086
9095
|
}, u = zn(R[0], c), u.start()), a && !g) {
|
|
9087
|
-
const D =
|
|
9096
|
+
const D = vh(R[0], a);
|
|
9088
9097
|
s = gs(($) => {
|
|
9089
|
-
|
|
9098
|
+
hh(
|
|
9090
9099
|
R[0],
|
|
9091
9100
|
$.clientX,
|
|
9092
9101
|
$.clientY
|
|
@@ -9110,9 +9119,9 @@ const ph = (t, e, n) => {
|
|
|
9110
9119
|
v({ on: E }, y);
|
|
9111
9120
|
}
|
|
9112
9121
|
}), e("open", m), e("close", v), e("style", bs);
|
|
9113
|
-
},
|
|
9114
|
-
St(
|
|
9115
|
-
const
|
|
9122
|
+
}, Eh = "@appcues/toggle";
|
|
9123
|
+
St(Eh, bh);
|
|
9124
|
+
const xh = "@appcues/coreEvents", wh = ({ registerAction: t }) => {
|
|
9116
9125
|
t("step_seen", (e, { step: n }) => {
|
|
9117
9126
|
n.seen();
|
|
9118
9127
|
}), t("extended_event", ({ name: e, ...n }, { step: r }) => {
|
|
@@ -9125,8 +9134,8 @@ const Eh = "@appcues/coreEvents", xh = ({ registerAction: t }) => {
|
|
|
9125
9134
|
n.snoozeExperience();
|
|
9126
9135
|
});
|
|
9127
9136
|
};
|
|
9128
|
-
St(
|
|
9129
|
-
const
|
|
9137
|
+
St(xh, wh);
|
|
9138
|
+
const Sh = (t, e = {}, n = () => window) => {
|
|
9130
9139
|
let r = e;
|
|
9131
9140
|
const o = [], i = n().document, a = (s) => {
|
|
9132
9141
|
const { el: c, callbackFn: f } = s.detail;
|
|
@@ -9143,18 +9152,18 @@ const wh = (t, e = {}, n = () => window) => {
|
|
|
9143
9152
|
i.removeEventListener(`${t}:connect`, a);
|
|
9144
9153
|
}
|
|
9145
9154
|
};
|
|
9146
|
-
},
|
|
9155
|
+
}, _h = "@appcues/store", Th = ({ addHook: t, registerAction: e }, { id: n, initialState: r = {} }) => {
|
|
9147
9156
|
let o;
|
|
9148
9157
|
t("step.begin", ({ getWindowReference: i }) => {
|
|
9149
|
-
o =
|
|
9158
|
+
o = Sh(n, r, i);
|
|
9150
9159
|
}), t("step.end", () => {
|
|
9151
9160
|
o && o.destroy();
|
|
9152
9161
|
}), e("setState", ({ stateKey: i }, a, s) => {
|
|
9153
9162
|
o && o.setState({ [i]: s?.detail });
|
|
9154
9163
|
});
|
|
9155
9164
|
};
|
|
9156
|
-
St(
|
|
9157
|
-
const
|
|
9165
|
+
St(_h, Th);
|
|
9166
|
+
const kh = {
|
|
9158
9167
|
slide_in_down: [
|
|
9159
9168
|
{
|
|
9160
9169
|
transform: "translate3d(0, -100%, 0)",
|
|
@@ -9198,15 +9207,15 @@ const Th = {
|
|
|
9198
9207
|
transform: "scale3d(1, 1, 1)"
|
|
9199
9208
|
}
|
|
9200
9209
|
]
|
|
9201
|
-
},
|
|
9210
|
+
}, Ch = "@appcues/animate", Rh = 500, Oh = "none", Ur = (t, e) => new Promise((n) => {
|
|
9202
9211
|
const {
|
|
9203
9212
|
keyframes: r,
|
|
9204
|
-
duration: o =
|
|
9213
|
+
duration: o = Rh,
|
|
9205
9214
|
iterations: i,
|
|
9206
9215
|
effect: a,
|
|
9207
|
-
fill: s =
|
|
9216
|
+
fill: s = Oh,
|
|
9208
9217
|
easing: c = "linear"
|
|
9209
|
-
} = e, f =
|
|
9218
|
+
} = e, f = kh[a] || r, g = {
|
|
9210
9219
|
duration: o,
|
|
9211
9220
|
iterations: i,
|
|
9212
9221
|
fill: s,
|
|
@@ -9215,7 +9224,7 @@ const Th = {
|
|
|
9215
9224
|
if (!f) return;
|
|
9216
9225
|
const l = t.animate(f, g);
|
|
9217
9226
|
l?.addEventListener ? l.addEventListener("finish", n, { once: !0 }) : n();
|
|
9218
|
-
}),
|
|
9227
|
+
}), Nh = ({ addHook: t, registerAction: e }, n) => {
|
|
9219
9228
|
t("step.postrender", ({ querySelector: r }) => {
|
|
9220
9229
|
const { target: o } = n;
|
|
9221
9230
|
if (!o) return;
|
|
@@ -9246,12 +9255,12 @@ const Th = {
|
|
|
9246
9255
|
}), g || h.setAttribute(s, f.id));
|
|
9247
9256
|
});
|
|
9248
9257
|
};
|
|
9249
|
-
St(
|
|
9258
|
+
St(Ch, Nh);
|
|
9250
9259
|
const Es = {
|
|
9251
9260
|
pixels: "px",
|
|
9252
9261
|
percentage: "%"
|
|
9253
9262
|
};
|
|
9254
|
-
function
|
|
9263
|
+
function Ih(t, e, n, r) {
|
|
9255
9264
|
const o = Es[n] || "px";
|
|
9256
9265
|
switch (t) {
|
|
9257
9266
|
case "left":
|
|
@@ -9280,7 +9289,7 @@ function Nh(t, e, n, r) {
|
|
|
9280
9289
|
};
|
|
9281
9290
|
}
|
|
9282
9291
|
}
|
|
9283
|
-
function
|
|
9292
|
+
function Ah(t, e, n, r) {
|
|
9284
9293
|
const o = Es[n] || "px";
|
|
9285
9294
|
switch (t) {
|
|
9286
9295
|
case "top":
|
|
@@ -9309,7 +9318,7 @@ function Ih(t, e, n, r) {
|
|
|
9309
9318
|
};
|
|
9310
9319
|
}
|
|
9311
9320
|
}
|
|
9312
|
-
const
|
|
9321
|
+
const jh = "@appcues/floating", Dh = ({ addHook: t }) => {
|
|
9313
9322
|
t("step.begin", ({ getTraitConfig: e, updateStyle: n, updateRootStyle: r }) => {
|
|
9314
9323
|
const {
|
|
9315
9324
|
target: o,
|
|
@@ -9322,13 +9331,13 @@ const Ah = "@appcues/floating", jh = ({ addHook: t }) => {
|
|
|
9322
9331
|
unsetOppositeDirection: l = !1,
|
|
9323
9332
|
applyToRoot: u = !1
|
|
9324
9333
|
} = e(), h = [
|
|
9325
|
-
|
|
9334
|
+
Ih(
|
|
9326
9335
|
c,
|
|
9327
9336
|
a,
|
|
9328
9337
|
g,
|
|
9329
9338
|
l
|
|
9330
9339
|
),
|
|
9331
|
-
|
|
9340
|
+
Ah(
|
|
9332
9341
|
f,
|
|
9333
9342
|
s,
|
|
9334
9343
|
g,
|
|
@@ -9348,12 +9357,12 @@ const Ah = "@appcues/floating", jh = ({ addHook: t }) => {
|
|
|
9348
9357
|
n(o.selector, p);
|
|
9349
9358
|
});
|
|
9350
9359
|
};
|
|
9351
|
-
St(
|
|
9352
|
-
const
|
|
9360
|
+
St(jh, Dh);
|
|
9361
|
+
const Ph = "@appcues/dismissible";
|
|
9353
9362
|
function Ki(t) {
|
|
9354
9363
|
return `_experience_dismissed_${t}`;
|
|
9355
9364
|
}
|
|
9356
|
-
const
|
|
9365
|
+
const Lh = ({ addHook: t, registerAction: e }, { strategy: n = "permanent" }) => {
|
|
9357
9366
|
function r(o, i) {
|
|
9358
9367
|
return n === "session" ? i().sessionStorage.getItem(Ki(o)) === "1" : !1;
|
|
9359
9368
|
}
|
|
@@ -9370,8 +9379,8 @@ const Ph = ({ addHook: t, registerAction: e }, { strategy: n = "permanent" }) =>
|
|
|
9370
9379
|
}
|
|
9371
9380
|
);
|
|
9372
9381
|
};
|
|
9373
|
-
St(
|
|
9374
|
-
const
|
|
9382
|
+
St(Ph, Lh);
|
|
9383
|
+
const Hh = "@appcues/experienceStyle", $h = ({ addHook: t }) => {
|
|
9375
9384
|
t("step.begin", ({ updateRootStyle: e, getTraitConfig: n }) => {
|
|
9376
9385
|
const r = n();
|
|
9377
9386
|
e(r, { forceUpdate: !0 });
|
|
@@ -9383,23 +9392,23 @@ const Lh = "@appcues/experienceStyle", Hh = ({ addHook: t }) => {
|
|
|
9383
9392
|
e(r, { forceUpdate: !0 });
|
|
9384
9393
|
});
|
|
9385
9394
|
};
|
|
9386
|
-
St(
|
|
9387
|
-
const
|
|
9395
|
+
St(Hh, $h);
|
|
9396
|
+
const Mh = "@appcues/rootStyle", Zi = ({ getTraitConfig: t, updateRootStyle: e }) => {
|
|
9388
9397
|
const { forceUpdate: n = !1, ...r } = t();
|
|
9389
9398
|
e(r, { forceUpdate: n });
|
|
9390
9399
|
};
|
|
9391
|
-
function
|
|
9400
|
+
function Fh({ addHook: t }) {
|
|
9392
9401
|
t("step.begin", Zi), t("step.container_change", Zi);
|
|
9393
9402
|
}
|
|
9394
|
-
St(
|
|
9395
|
-
var
|
|
9403
|
+
St(Mh, Fh);
|
|
9404
|
+
var Wh = "appcues:launchpad_close", Vh = "appcues:launchpad_search", Uh = "appcues:launchpad_search_error", zh = "appcues:launchpad_search_response", Oo = function(t, e) {
|
|
9396
9405
|
return window.addEventListener(t, e), function() {
|
|
9397
9406
|
return window.removeEventListener(t, e);
|
|
9398
9407
|
};
|
|
9399
|
-
},
|
|
9400
|
-
return Oo(
|
|
9401
|
-
},
|
|
9402
|
-
var r = new CustomEvent(
|
|
9408
|
+
}, Bh = function(t) {
|
|
9409
|
+
return Oo(Wh, t);
|
|
9410
|
+
}, qh = function(t, e, n) {
|
|
9411
|
+
var r = new CustomEvent(Vh, {
|
|
9403
9412
|
detail: {
|
|
9404
9413
|
integrationId: t,
|
|
9405
9414
|
query: e,
|
|
@@ -9407,15 +9416,15 @@ var Fh = "appcues:launchpad_close", Wh = "appcues:launchpad_search", Vh = "appcu
|
|
|
9407
9416
|
}
|
|
9408
9417
|
});
|
|
9409
9418
|
window.dispatchEvent(r);
|
|
9410
|
-
}, qh = function(t, e) {
|
|
9411
|
-
return Oo("".concat(Uh, ":").concat(t), e);
|
|
9412
9419
|
}, Kh = function(t, e) {
|
|
9413
|
-
return Oo("".concat(
|
|
9420
|
+
return Oo("".concat(zh, ":").concat(t), e);
|
|
9421
|
+
}, Zh = function(t, e) {
|
|
9422
|
+
return Oo("".concat(Uh, ":").concat(t), e);
|
|
9414
9423
|
};
|
|
9415
|
-
const
|
|
9424
|
+
const Gh = "@appcues/sdk-middleware-events", Jh = ({ addHook: t }, { onLaunchpadClose: e }) => {
|
|
9416
9425
|
let n;
|
|
9417
9426
|
t("step.begin", (r) => {
|
|
9418
|
-
n =
|
|
9427
|
+
n = Bh(() => {
|
|
9419
9428
|
e.forEach((o) => {
|
|
9420
9429
|
r.getAction(o.type)?.(o.config, r);
|
|
9421
9430
|
});
|
|
@@ -9424,13 +9433,13 @@ const Zh = "@appcues/sdk-middleware-events", Gh = ({ addHook: t }, { onLaunchpad
|
|
|
9424
9433
|
n?.();
|
|
9425
9434
|
});
|
|
9426
9435
|
};
|
|
9427
|
-
St(
|
|
9428
|
-
const
|
|
9436
|
+
St(Gh, Jh);
|
|
9437
|
+
const Qh = "@appcues/knowledge-base-integration", Bn = (t, { querySelector: e, reportError: n }) => {
|
|
9429
9438
|
const r = e(t), o = r.length > 1, i = r.length === 0;
|
|
9430
9439
|
return o && n(
|
|
9431
9440
|
"The target element is duplicated, please provide a more specific selector"
|
|
9432
9441
|
), i && n("The target element is not found"), r[0];
|
|
9433
|
-
},
|
|
9442
|
+
}, Xh = ({ addHook: t, registerAction: e }, n) => {
|
|
9434
9443
|
const { integrationConnected: r = !1 } = n;
|
|
9435
9444
|
let o, i, a, s, c;
|
|
9436
9445
|
const f = () => {
|
|
@@ -9438,13 +9447,13 @@ const Jh = "@appcues/knowledge-base-integration", Bn = (t, { querySelector: e, r
|
|
|
9438
9447
|
}, g = (l) => {
|
|
9439
9448
|
if (!r) return;
|
|
9440
9449
|
const { integrationId: u } = n, { inputValue: h } = l.detail;
|
|
9441
|
-
a.setAttribute("searchTerm", h), a.setAttribute("state", "loading"), o.setAttribute("loading", !0), s && (s.scrollTop = 0), i?.next(),
|
|
9450
|
+
a.setAttribute("searchTerm", h), a.setAttribute("state", "loading"), o.setAttribute("loading", !0), s && (s.scrollTop = 0), i?.next(), qh(u, h, c);
|
|
9442
9451
|
};
|
|
9443
9452
|
t("step.begin", ({ getExperienceId: l }) => {
|
|
9444
|
-
c = l(),
|
|
9453
|
+
c = l(), Kh(c, (u) => {
|
|
9445
9454
|
const h = u.detail, p = h.results?.length === 0 ? "empty" : "showing_results";
|
|
9446
9455
|
a.setAttribute("state", p), a.setAttribute("results", JSON.stringify(h.results)), o.setAttribute("loading", !1);
|
|
9447
|
-
}),
|
|
9456
|
+
}), Zh(c, () => {
|
|
9448
9457
|
a.setAttribute("state", "error"), o.setAttribute("loading", !1);
|
|
9449
9458
|
});
|
|
9450
9459
|
}), t("step.end", () => {
|
|
@@ -9454,8 +9463,8 @@ const Jh = "@appcues/knowledge-base-integration", Bn = (t, { querySelector: e, r
|
|
|
9454
9463
|
(!i || !o) && (i = Bn(h.selector, u), o = Bn("appcues-search-header", u), a = Bn("appcues-search-results", u), s = Bn("#launchpad-container", u), o?.addEventListener("onSearch", g), o?.addEventListener("onCancel", f));
|
|
9455
9464
|
});
|
|
9456
9465
|
};
|
|
9457
|
-
St(
|
|
9458
|
-
const
|
|
9466
|
+
St(Qh, Xh);
|
|
9467
|
+
const Yh = "@appcues/sequential", tv = ({ addHook: t, registerAction: e }) => {
|
|
9459
9468
|
let n;
|
|
9460
9469
|
const r = (a, { steps: s }) => {
|
|
9461
9470
|
n !== 0 && s[n].stop(() => {
|
|
@@ -9481,8 +9490,8 @@ const Xh = "@appcues/sequential", Yh = ({ addHook: t, registerAction: e }) => {
|
|
|
9481
9490
|
n = 0, a[n].start();
|
|
9482
9491
|
}), e("next", o), e("prev", r), e("goTo", i);
|
|
9483
9492
|
};
|
|
9484
|
-
St(
|
|
9485
|
-
const
|
|
9493
|
+
St(Yh, tv);
|
|
9494
|
+
const ev = ({
|
|
9486
9495
|
getWindowReference: t,
|
|
9487
9496
|
backdropZIndex: e,
|
|
9488
9497
|
backdropBlur: n,
|
|
@@ -9501,43 +9510,43 @@ const tv = ({
|
|
|
9501
9510
|
background-color: ${r};
|
|
9502
9511
|
pointer-events: none;
|
|
9503
9512
|
`, o;
|
|
9504
|
-
},
|
|
9513
|
+
}, nv = "@appcues/dialog", rv = `
|
|
9505
9514
|
dialog { all: unset; }
|
|
9506
9515
|
::backdrop { backdrop-filter: var(--backdrop-blur); background-color: var(--backdrop-color); }
|
|
9507
9516
|
:-internal-dialog-in-top-layer { all: unset; }
|
|
9508
9517
|
`;
|
|
9509
|
-
function
|
|
9518
|
+
function ov(t) {
|
|
9510
9519
|
const { backdropBlur: e, backdropColor: n } = t;
|
|
9511
9520
|
return {
|
|
9512
9521
|
...e && { "--backdrop-blur": e },
|
|
9513
9522
|
...n && { "--backdrop-color": n }
|
|
9514
9523
|
};
|
|
9515
9524
|
}
|
|
9516
|
-
const
|
|
9525
|
+
const iv = ({ addHook: t }, e) => {
|
|
9517
9526
|
const { backdrop: n, variables: r, customBackdrop: o } = e, { dialogZIndex: i, backdropZIndex: a, backdropBlur: s, backdropColor: c } = r || {};
|
|
9518
9527
|
let f, g, l;
|
|
9519
9528
|
if (n && !o) {
|
|
9520
9529
|
const u = ({ getTraitConfig: h, updateRootStyle: p }) => {
|
|
9521
9530
|
const { variables: v } = h();
|
|
9522
|
-
p(
|
|
9531
|
+
p(ov(v || {}), {
|
|
9523
9532
|
forceUpdate: !0
|
|
9524
9533
|
});
|
|
9525
9534
|
};
|
|
9526
9535
|
t("step.begin", u), t("step.container_change", u);
|
|
9527
9536
|
}
|
|
9528
9537
|
t("step.postrender", ({ step: u, getWindowReference: h }) => {
|
|
9529
|
-
[g] = u.querySelector("dialog") ?? [], g && (n && o && (l?.remove(), l =
|
|
9538
|
+
[g] = u.querySelector("dialog") ?? [], g && (n && o && (l?.remove(), l = ev({
|
|
9530
9539
|
getWindowReference: h,
|
|
9531
9540
|
backdropZIndex: a,
|
|
9532
9541
|
backdropBlur: s,
|
|
9533
9542
|
backdropColor: c
|
|
9534
|
-
}), l && h().document.body.append(l)), o || (f?.remove(), f = h().document.createElement("style"), f.textContent =
|
|
9543
|
+
}), l && h().document.body.append(l)), o || (f?.remove(), f = h().document.createElement("style"), f.textContent = rv, g.prepend(f)), g.style.zIndex = i, g[n && !o ? "showModal" : "show"]());
|
|
9535
9544
|
}), t("step.end", () => {
|
|
9536
9545
|
g?.close(), f?.remove(), l?.remove();
|
|
9537
9546
|
});
|
|
9538
9547
|
};
|
|
9539
|
-
St(
|
|
9540
|
-
const
|
|
9548
|
+
St(nv, iv);
|
|
9549
|
+
const av = "@appcues/experienceTheme", sv = ({ addHook: t }) => {
|
|
9541
9550
|
let e = null;
|
|
9542
9551
|
function n({
|
|
9543
9552
|
getContainer: o,
|
|
@@ -9556,8 +9565,8 @@ const iv = "@appcues/experienceTheme", av = ({ addHook: t }) => {
|
|
|
9556
9565
|
}
|
|
9557
9566
|
t("step.begin", n), t("experience.end", r);
|
|
9558
9567
|
};
|
|
9559
|
-
St(
|
|
9560
|
-
const
|
|
9568
|
+
St(av, sv);
|
|
9569
|
+
const cv = (t) => class extends t.HTMLElement {
|
|
9561
9570
|
constructor() {
|
|
9562
9571
|
super();
|
|
9563
9572
|
const e = this.ownerDocument || t.document;
|
|
@@ -9581,18 +9590,18 @@ const sv = (t) => class extends t.HTMLElement {
|
|
|
9581
9590
|
async connectedCallback() {
|
|
9582
9591
|
this.shadowRoot.append(this.hideContentStyles), this.shadowRoot.append(...this.childNodes), this.getAttribute("themeId") && await Da(this), this.shadowRoot.prepend(this.webComponentStyles), this.hideContentStyles.remove();
|
|
9583
9592
|
}
|
|
9584
|
-
}, zr = /* @__PURE__ */ new WeakMap(),
|
|
9593
|
+
}, zr = /* @__PURE__ */ new WeakMap(), uv = (t = () => window) => {
|
|
9585
9594
|
const e = t();
|
|
9586
9595
|
if (zr.has(e))
|
|
9587
9596
|
return zr.get(e);
|
|
9588
9597
|
if (!e.customElements.get(Sn)) {
|
|
9589
|
-
const r =
|
|
9598
|
+
const r = cv(e);
|
|
9590
9599
|
e.customElements.define(Sn, r);
|
|
9591
9600
|
}
|
|
9592
9601
|
const n = e.customElements.whenDefined(Sn);
|
|
9593
9602
|
return zr.set(e, n), n;
|
|
9594
|
-
},
|
|
9595
|
-
function
|
|
9603
|
+
}, lv = !1;
|
|
9604
|
+
function fv({
|
|
9596
9605
|
runningExperiences: t = /* @__PURE__ */ new Map(),
|
|
9597
9606
|
sendEvent: e = () => {
|
|
9598
9607
|
},
|
|
@@ -9602,13 +9611,13 @@ function lv({
|
|
|
9602
9611
|
},
|
|
9603
9612
|
updateUserProfile: o = () => {
|
|
9604
9613
|
},
|
|
9605
|
-
createRenderListener: i =
|
|
9606
|
-
vNodeHandlers: a =
|
|
9607
|
-
accessibilityHandlers: s =
|
|
9614
|
+
createRenderListener: i = vd,
|
|
9615
|
+
vNodeHandlers: a = Cd,
|
|
9616
|
+
accessibilityHandlers: s = Nd,
|
|
9608
9617
|
getWindowReference: c = () => window,
|
|
9609
9618
|
apiOverrides: f = {}
|
|
9610
9619
|
} = {}) {
|
|
9611
|
-
|
|
9620
|
+
hl(f);
|
|
9612
9621
|
const g = /* @__PURE__ */ new Map(), l = {
|
|
9613
9622
|
sendEvent: e,
|
|
9614
9623
|
sendCustomEvent: n,
|
|
@@ -9634,7 +9643,7 @@ function lv({
|
|
|
9634
9643
|
registerAction: ae,
|
|
9635
9644
|
registerTrait: St,
|
|
9636
9645
|
show: async (v) => {
|
|
9637
|
-
|
|
9646
|
+
uv(c), await c().customElements.whenDefined(Sn);
|
|
9638
9647
|
const m = Gn(
|
|
9639
9648
|
Gn(
|
|
9640
9649
|
v,
|
|
@@ -9655,8 +9664,8 @@ function lv({
|
|
|
9655
9664
|
}))
|
|
9656
9665
|
)
|
|
9657
9666
|
)
|
|
9658
|
-
), E = t.get(v.id)?.experienceService ?? ha(
|
|
9659
|
-
devTools:
|
|
9667
|
+
), E = t.get(v.id)?.experienceService ?? ha(pd(m, u), {
|
|
9668
|
+
devTools: lv
|
|
9660
9669
|
}).start();
|
|
9661
9670
|
E.send({
|
|
9662
9671
|
type: Xo,
|
|
@@ -9688,5 +9697,5 @@ function lv({
|
|
|
9688
9697
|
};
|
|
9689
9698
|
}
|
|
9690
9699
|
export {
|
|
9691
|
-
|
|
9700
|
+
fv as default
|
|
9692
9701
|
};
|