@appcues/web-sdk 7.24.4 → 7.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -0
- package/build/bind-interface.d.ts.map +1 -1
- package/build/{bootstrap.npm.CiSiv5u_.js → bootstrap.npm.DDGKlJWw.js} +902 -823
- package/build/index.npm.js +1 -1
- package/build/main.d.ts.map +1 -1
- package/build/{open-builder.D24FICI0.js → open-builder.CVa1Uu2s.js} +33 -33
- package/build/sagas/experiences-sagas.d.ts.map +1 -1
- package/build/snippets/context.d.ts +13 -0
- package/build/snippets/context.d.ts.map +1 -0
- package/build/snippets/error.d.ts +11 -0
- package/build/snippets/error.d.ts.map +1 -0
- package/build/snippets/load-snippets.d.ts +21 -0
- package/build/snippets/load-snippets.d.ts.map +1 -0
- package/build/snippets/register.d.ts +16 -0
- package/build/snippets/register.d.ts.map +1 -0
- package/package.json +1 -1
- /package/build/{checklist.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css → checklist.7382849d2ae897a1629360cfe8e459f8f639cf7b.css} +0 -0
- /package/build/{container.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css → container.7382849d2ae897a1629360cfe8e459f8f639cf7b.css} +0 -0
- /package/build/{debugger.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css → debugger.7382849d2ae897a1629360cfe8e459f8f639cf7b.css} +0 -0
- /package/build/{modal-step-legacy-render.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css → modal-step-legacy-render.7382849d2ae897a1629360cfe8e459f8f639cf7b.css} +0 -0
- /package/build/{modal.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css → modal.7382849d2ae897a1629360cfe8e459f8f639cf7b.css} +0 -0
- /package/build/{satisfaction-survey.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css → satisfaction-survey.7382849d2ae897a1629360cfe8e459f8f639cf7b.css} +0 -0
- /package/build/{test-mode.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css → test-mode.7382849d2ae897a1629360cfe8e459f8f639cf7b.css} +0 -0
- /package/build/{tooltip.83dbbf9fa2a479d079b6d58adf2b2172e8685dd4.css → tooltip.7382849d2ae897a1629360cfe8e459f8f639cf7b.css} +0 -0
|
@@ -1946,7 +1946,7 @@ function ys(e) {
|
|
|
1946
1946
|
}
|
|
1947
1947
|
//#endregion
|
|
1948
1948
|
//#region src/styles/checklist.css?url
|
|
1949
|
-
var bs = "/generic/main/7.
|
|
1949
|
+
var bs = "/generic/main/7.25.0/checklist.7382849d2ae897a1629360cfe8e459f8f639cf7b.css", xs = "sha256-V0XysNBfj4XuJbDIW5aWcjP7IedHdnAvCi8DeLwGv2o=", Ss = ys(bs), Cs = 30, ws = -300, Ts = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Es = null, Ds = null, Os = null, ks = null, As = (e) => {
|
|
1950
1950
|
let { id: t, name: n, styles: r, text_tokens: i, items: a, is_checklist_expanded: o, is_first_view: s, frameHeight: c, beaconWidth: l, onBeaconClicked: u, onItemClicked: d, onOutsideClicked: f, onDismissClicked: p, onDismissCanceled: m, onDismissConfirmed: h, onCSSLoaded: g, onMinimizedClicked: _, shouldShowConfirmDismiss: v, onExpandChecklistResize: y, onCollapseBeaconResize: b, status: x, progress_state: S, is_sequential: C, is_dismissable: ee, showBadge: te, collisionMode: ne, collisionCoordinates: re, isInjectableSDK: ie, styling: ae } = e, oe = (e) => {
|
|
1951
1951
|
ie || setTimeout(() => {
|
|
1952
1952
|
as(e.elm);
|
|
@@ -5296,7 +5296,7 @@ function vf(e, t, n, r) {
|
|
|
5296
5296
|
}
|
|
5297
5297
|
//#endregion
|
|
5298
5298
|
//#region src/styles/modal.css?url
|
|
5299
|
-
var yf = "/generic/main/7.
|
|
5299
|
+
var yf = "/generic/main/7.25.0/modal.7382849d2ae897a1629360cfe8e459f8f639cf7b.css", bf = "/generic/main/7.25.0/modal-step-legacy-render.7382849d2ae897a1629360cfe8e459f8f639cf7b.css", xf = "sha256-Ull2pU6HfREgLRggKNNGV6AHaWBAw5OeIuetlkHnUZY=", Sf = "sha256-Ea5gC5g6QacVSWApI6ApmuZheqr4EDl50hD7GyRsaz0=", Cf = ys(bf), wf = ys(yf), Tf = new Set(["shorty", "slideout"]);
|
|
5300
5300
|
function Ef(e) {
|
|
5301
5301
|
if (!e) return;
|
|
5302
5302
|
let { style: t } = e;
|
|
@@ -5493,7 +5493,7 @@ function Mf({ patternType: e, hidden: t }) {
|
|
|
5493
5493
|
}
|
|
5494
5494
|
//#endregion
|
|
5495
5495
|
//#region src/styles/tooltip.css?url
|
|
5496
|
-
var Nf = "/generic/main/7.
|
|
5496
|
+
var Nf = "/generic/main/7.25.0/tooltip.7382849d2ae897a1629360cfe8e459f8f639cf7b.css", Pf = "sha256-r4KmO5sl5F5wxrVA5ANjinquA8nBo4ZaSoFboEJwvzs=", Ff = ys(Nf), If = "//twemoji.maxcdn.com/2/svg/", Lf = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Rf = "pattern-title", zf = "Hide these tips";
|
|
5497
5497
|
function Bf(e, t) {
|
|
5498
5498
|
return {
|
|
5499
5499
|
skippable: e.skippable,
|
|
@@ -6415,7 +6415,7 @@ function Ep(e) {
|
|
|
6415
6415
|
}
|
|
6416
6416
|
//#endregion
|
|
6417
6417
|
//#region src/styles/satisfaction-survey.css?url
|
|
6418
|
-
var Dp = "/generic/main/7.
|
|
6418
|
+
var Dp = "/generic/main/7.25.0/satisfaction-survey.7382849d2ae897a1629360cfe8e459f8f639cf7b.css", Op = "sha256-sj4TgtPXrfHc+Sox7I2a7KJr+2zaoe/PhcBrvvCXAEw=", kp = ys(Dp), Ap, jp;
|
|
6419
6419
|
function Mp(e) {
|
|
6420
6420
|
let t = L(e), n = hr(e), r = mr(e), i = Sr(e), a = xr(e, br(e)), o = i[a], s = t.attributes.pattern_type, { position: c } = t.attributes, l = e.views.callbacks[w.SATISFACTION_SURVEY], u = n.cssLoaded, d = Ns(e.settings), f = r !== T.SHOWING, p = {}, m = u && P.inArray([T.SHOWING, T.WILL_CLOSE], r);
|
|
6421
6421
|
m || (p = { display: "none" }), p = {
|
|
@@ -8130,25 +8130,92 @@ var Ig = q(oc.TOGGLE_ROW_DETAILS), Lg = q(oc.TOGGLE_COLLAPSED), Rg = q(oc.SET_CU
|
|
|
8130
8130
|
errorMessage: n
|
|
8131
8131
|
})), Hg = q(oc.CLOSE_DEBUGGER), Ug = q(lc.PAUSE_EXPERIENCE), Wg = q(lc.RESUME_EXPERIENCE), Gg = q(lc.SHOW_EXPERIENCES), Kg = q(lc.SAVE_ON_HOLD_LAUNCHPADS), qg = q(lc.UNHIDE_LAUNCHPADS), Jg = q(lc.HIDE_LAUNCHPADS);
|
|
8132
8132
|
//#endregion
|
|
8133
|
+
//#region src/scripts/snippets/error.js
|
|
8134
|
+
function Yg(e) {
|
|
8135
|
+
e.__reportSnippetError = function(e, t, n, r) {
|
|
8136
|
+
let i = r?.message ?? String(r), a = `Snippet ${t} ${n} failed: ${i}`;
|
|
8137
|
+
e.reportError && e.reportError(a), e.sendCustomEvent && e.sendCustomEvent("appcues:v2:step_error", {
|
|
8138
|
+
errorType: "snippet_error",
|
|
8139
|
+
snippetName: t,
|
|
8140
|
+
snippetAction: n,
|
|
8141
|
+
message: i
|
|
8142
|
+
});
|
|
8143
|
+
};
|
|
8144
|
+
}
|
|
8145
|
+
//#endregion
|
|
8146
|
+
//#region src/scripts/snippets/context.js
|
|
8147
|
+
function Xg(e, t) {
|
|
8148
|
+
e.__createSnippetContext = function(n, r, i) {
|
|
8149
|
+
let a = t().snippetContext || {}, o = n.step?.getConfig?.() ?? {}, s = n.steps?.findIndex((e) => e.getConfig?.().id === o.id);
|
|
8150
|
+
return {
|
|
8151
|
+
querySelector: n.querySelector,
|
|
8152
|
+
element: i && n.querySelector(`#${i}`)[0] || null,
|
|
8153
|
+
user: a.user || {},
|
|
8154
|
+
group: a.group || {},
|
|
8155
|
+
experience: {
|
|
8156
|
+
id: n.getExperienceId(),
|
|
8157
|
+
name: r.experienceName || ""
|
|
8158
|
+
},
|
|
8159
|
+
step: {
|
|
8160
|
+
id: o.id,
|
|
8161
|
+
index: s >= 0 ? s : void 0
|
|
8162
|
+
},
|
|
8163
|
+
sendEvent: n.sendCustomEvent,
|
|
8164
|
+
loadScript(e) {
|
|
8165
|
+
return new Promise(function(t, n) {
|
|
8166
|
+
if (document.querySelector(`script[src="${e}"]`)) {
|
|
8167
|
+
t();
|
|
8168
|
+
return;
|
|
8169
|
+
}
|
|
8170
|
+
let r = document.createElement("script");
|
|
8171
|
+
r.src = e, r.async = !0, r.addEventListener("load", t), r.addEventListener("error", function() {
|
|
8172
|
+
n(/* @__PURE__ */ Error(`Failed to load script: ${e}`));
|
|
8173
|
+
}), document.head.appendChild(r);
|
|
8174
|
+
});
|
|
8175
|
+
},
|
|
8176
|
+
reportError(t) {
|
|
8177
|
+
e.__reportSnippetError(n, "unknown", "reportError", Error(t));
|
|
8178
|
+
}
|
|
8179
|
+
};
|
|
8180
|
+
};
|
|
8181
|
+
}
|
|
8182
|
+
//#endregion
|
|
8183
|
+
//#region src/scripts/snippets/register.js
|
|
8184
|
+
var Zg = /* @__PURE__ */ new Map(), Qg = /* @__PURE__ */ new Map();
|
|
8185
|
+
function $g(e) {
|
|
8186
|
+
e.registerTrait = function(e, t) {
|
|
8187
|
+
Zg.set(e, t);
|
|
8188
|
+
}, e.registerAction = function(e, t) {
|
|
8189
|
+
Qg.set(e, t);
|
|
8190
|
+
};
|
|
8191
|
+
}
|
|
8192
|
+
function e_(e) {
|
|
8193
|
+
Zg.forEach((t, n) => {
|
|
8194
|
+
e.registerTrait(n, t);
|
|
8195
|
+
}), Qg.forEach((t, n) => {
|
|
8196
|
+
e.registerAction(n, t);
|
|
8197
|
+
});
|
|
8198
|
+
}
|
|
8199
|
+
//#endregion
|
|
8133
8200
|
//#region src/scripts/utils/store.js
|
|
8134
|
-
function
|
|
8201
|
+
function t_(e, t, n) {
|
|
8135
8202
|
try {
|
|
8136
8203
|
window[e].setItem(t, n);
|
|
8137
8204
|
} catch {}
|
|
8138
8205
|
}
|
|
8139
|
-
function
|
|
8206
|
+
function n_(e, t) {
|
|
8140
8207
|
try {
|
|
8141
8208
|
return window[e].getItem(t);
|
|
8142
8209
|
} catch {
|
|
8143
8210
|
return null;
|
|
8144
8211
|
}
|
|
8145
8212
|
}
|
|
8146
|
-
function
|
|
8213
|
+
function r_(e, t) {
|
|
8147
8214
|
try {
|
|
8148
8215
|
window[e].removeItem(t);
|
|
8149
8216
|
} catch {}
|
|
8150
8217
|
}
|
|
8151
|
-
function
|
|
8218
|
+
function i_(e, t) {
|
|
8152
8219
|
try {
|
|
8153
8220
|
Object.keys(window[e]).forEach((n) => {
|
|
8154
8221
|
n.startsWith(t) && window[e].removeItem(n);
|
|
@@ -8157,22 +8224,22 @@ function Qg(e, t) {
|
|
|
8157
8224
|
}
|
|
8158
8225
|
//#endregion
|
|
8159
8226
|
//#region src/scripts/utils/handle-navigation.js
|
|
8160
|
-
var
|
|
8227
|
+
var a_ = {
|
|
8161
8228
|
REDIRECT: "redirect",
|
|
8162
8229
|
WAIT_FOR_URL: "waitForUrl"
|
|
8163
|
-
},
|
|
8164
|
-
function
|
|
8230
|
+
}, o_ = 500;
|
|
8231
|
+
function s_() {
|
|
8165
8232
|
try {
|
|
8166
|
-
return JSON.parse(
|
|
8233
|
+
return JSON.parse(n_(g, xe));
|
|
8167
8234
|
} catch {
|
|
8168
8235
|
return null;
|
|
8169
8236
|
}
|
|
8170
8237
|
}
|
|
8171
|
-
function
|
|
8238
|
+
function c_(e = () => Promise.resolve()) {
|
|
8172
8239
|
return async function({ type: t, experienceId: n, stepId: r, campaignId: i = null, tacticId: a = null, ...o } = {}) {
|
|
8173
|
-
if (Xd(o.url || o.urlPattern, window.location.href) || t !==
|
|
8174
|
-
let s =
|
|
8175
|
-
|
|
8240
|
+
if (Xd(o.url || o.urlPattern, window.location.href) || t !== a_.REDIRECT && t !== a_.WAIT_FOR_URL) return;
|
|
8241
|
+
let s = s_(), c = s?.experienceId === n && typeof s.remainingPagesToCheck == "number" ? s.remainingPagesToCheck : o.pageCheckLimit ?? 2;
|
|
8242
|
+
t_(g, xe, JSON.stringify({
|
|
8176
8243
|
experienceId: n,
|
|
8177
8244
|
campaignId: i,
|
|
8178
8245
|
tacticId: a,
|
|
@@ -8182,82 +8249,82 @@ function n_(e = () => Promise.resolve()) {
|
|
|
8182
8249
|
remainingPagesToCheck: c,
|
|
8183
8250
|
lastCheckedUrl: window.location.href,
|
|
8184
8251
|
timestamp: Date.now()
|
|
8185
|
-
})), t ===
|
|
8252
|
+
})), t === a_.REDIRECT ? (await e(n), Rd(window, o.url)) : t === a_.WAIT_FOR_URL && await new Promise((e) => {
|
|
8186
8253
|
let t, n = () => {
|
|
8187
8254
|
window.removeEventListener("popstate", r), window.removeEventListener("hashchange", r), clearInterval(t);
|
|
8188
8255
|
};
|
|
8189
8256
|
function r() {
|
|
8190
|
-
Xd(o.urlPattern, window.location.href) && (n(),
|
|
8257
|
+
Xd(o.urlPattern, window.location.href) && (n(), r_(g, xe), e());
|
|
8191
8258
|
}
|
|
8192
|
-
window.addEventListener("popstate", r), window.addEventListener("hashchange", r), t = setInterval(r,
|
|
8259
|
+
window.addEventListener("popstate", r), window.addEventListener("hashchange", r), t = setInterval(r, o_);
|
|
8193
8260
|
});
|
|
8194
8261
|
};
|
|
8195
8262
|
}
|
|
8196
8263
|
//#endregion
|
|
8197
8264
|
//#region src/scripts/utils/pending-experience-events.js
|
|
8198
|
-
var
|
|
8199
|
-
function
|
|
8200
|
-
return (
|
|
8265
|
+
var l_ = 2e3, u_ = /* @__PURE__ */ new Map(), d_ = !1, f_ = /* @__PURE__ */ new Map();
|
|
8266
|
+
function p_(e) {
|
|
8267
|
+
return (u_.get(e) || 0) === 0 && !d_;
|
|
8201
8268
|
}
|
|
8202
|
-
function
|
|
8203
|
-
let n =
|
|
8269
|
+
function m_(e, t) {
|
|
8270
|
+
let n = f_.get(e);
|
|
8204
8271
|
if (!n) return;
|
|
8205
8272
|
let r = n.filter((e) => e !== t);
|
|
8206
|
-
r.length === 0 ?
|
|
8273
|
+
r.length === 0 ? f_.delete(e) : f_.set(e, r);
|
|
8207
8274
|
}
|
|
8208
|
-
function
|
|
8209
|
-
if (!
|
|
8210
|
-
let t =
|
|
8211
|
-
|
|
8275
|
+
function h_(e) {
|
|
8276
|
+
if (!p_(e) || !f_.has(e)) return;
|
|
8277
|
+
let t = f_.get(e);
|
|
8278
|
+
f_.delete(e), t.forEach((e) => e());
|
|
8212
8279
|
}
|
|
8213
|
-
function
|
|
8214
|
-
|
|
8280
|
+
function g_(e) {
|
|
8281
|
+
u_.set(e, (u_.get(e) || 0) + 1), d_ = !0;
|
|
8215
8282
|
}
|
|
8216
|
-
function
|
|
8217
|
-
|
|
8283
|
+
function __() {
|
|
8284
|
+
d_ = !0;
|
|
8218
8285
|
}
|
|
8219
|
-
function
|
|
8220
|
-
let t =
|
|
8286
|
+
function v_(e) {
|
|
8287
|
+
let t = u_.get(e);
|
|
8221
8288
|
if (t > 0) {
|
|
8222
8289
|
let n = t - 1;
|
|
8223
|
-
n === 0 ?
|
|
8290
|
+
n === 0 ? u_.delete(e) : u_.set(e, n);
|
|
8224
8291
|
}
|
|
8225
|
-
|
|
8292
|
+
h_(e);
|
|
8226
8293
|
}
|
|
8227
|
-
function
|
|
8228
|
-
|
|
8229
|
-
for (let [e] of
|
|
8294
|
+
function y_() {
|
|
8295
|
+
d_ = !1;
|
|
8296
|
+
for (let [e] of f_) h_(e);
|
|
8230
8297
|
}
|
|
8231
|
-
function
|
|
8232
|
-
return
|
|
8298
|
+
function b_(e) {
|
|
8299
|
+
return p_(e) ? Promise.resolve() : new Promise((t) => {
|
|
8233
8300
|
let n;
|
|
8234
8301
|
function r() {
|
|
8235
8302
|
clearTimeout(n), t();
|
|
8236
8303
|
}
|
|
8237
8304
|
n = setTimeout(() => {
|
|
8238
|
-
|
|
8239
|
-
},
|
|
8240
|
-
let i =
|
|
8241
|
-
|
|
8305
|
+
m_(e, r), t();
|
|
8306
|
+
}, l_);
|
|
8307
|
+
let i = f_.get(e) || [];
|
|
8308
|
+
f_.set(e, [...i, r]);
|
|
8242
8309
|
});
|
|
8243
8310
|
}
|
|
8244
8311
|
//#endregion
|
|
8245
8312
|
//#region src/scripts/utils/create-appcues.js
|
|
8246
|
-
var
|
|
8313
|
+
var x_ = "v2", S_ = (e) => {
|
|
8247
8314
|
let t = window.AppcuesBundleSettings?.ASSETS_PATH, n = {
|
|
8248
8315
|
sendEvent: (t, n) => {
|
|
8249
|
-
let r = `${
|
|
8316
|
+
let r = `${x_}:${t}`, i = {
|
|
8250
8317
|
...n,
|
|
8251
8318
|
id: r
|
|
8252
8319
|
};
|
|
8253
|
-
n?.experienceId &&
|
|
8320
|
+
n?.experienceId && g_(n.experienceId), e(vc(r, i)), e(bc({}, [gu(i)]));
|
|
8254
8321
|
},
|
|
8255
8322
|
sendCustomEvent: (t, n) => {
|
|
8256
8323
|
let r = {
|
|
8257
8324
|
...n,
|
|
8258
8325
|
id: t
|
|
8259
8326
|
};
|
|
8260
|
-
|
|
8327
|
+
__(), e(bc({}, [hu(t, r)], !0));
|
|
8261
8328
|
},
|
|
8262
8329
|
updateUserProfile: (t = {}) => {
|
|
8263
8330
|
Object.keys(t).length !== 0 && e(bc(t, [], !0));
|
|
@@ -8282,22 +8349,22 @@ var h_ = "v2", g_ = (e) => {
|
|
|
8282
8349
|
tacticId: a
|
|
8283
8350
|
})), Rd(window, n);
|
|
8284
8351
|
},
|
|
8285
|
-
handleNavigation:
|
|
8352
|
+
handleNavigation: c_(b_),
|
|
8286
8353
|
...t && { apiOverrides: {
|
|
8287
8354
|
fastBaseUrl: t,
|
|
8288
8355
|
useAssetsPath: !0
|
|
8289
8356
|
} }
|
|
8290
8357
|
};
|
|
8291
8358
|
return window.createAppcues(n);
|
|
8292
|
-
},
|
|
8359
|
+
}, C_ = async () => {
|
|
8293
8360
|
if (typeof window.createAppcues != "function") {
|
|
8294
|
-
let e = await import("./open-builder.
|
|
8361
|
+
let e = await import("./open-builder.CVa1Uu2s.js");
|
|
8295
8362
|
window.createAppcues = e.default;
|
|
8296
8363
|
}
|
|
8297
|
-
},
|
|
8364
|
+
}, w_ = async () => (await C_(), S_), T_ = "EVENTS_TRIGGERED", E_ = q(T_), D_ = q(uc.SET_SESSION), O_ = q(uc.START_SESSION), k_ = q(uc.SESSION_STARTED);
|
|
8298
8365
|
//#endregion
|
|
8299
8366
|
//#region src/scripts/sagas/widget-sagas.js
|
|
8300
|
-
function*
|
|
8367
|
+
function* A_() {
|
|
8301
8368
|
let e = null;
|
|
8302
8369
|
try {
|
|
8303
8370
|
e = yield j(lg, yield N(qn));
|
|
@@ -8306,7 +8373,7 @@ function* w_() {
|
|
|
8306
8373
|
}
|
|
8307
8374
|
e && (yield A(ph(e.journeys)));
|
|
8308
8375
|
}
|
|
8309
|
-
function*
|
|
8376
|
+
function* j_() {
|
|
8310
8377
|
let e = null;
|
|
8311
8378
|
try {
|
|
8312
8379
|
e = yield j(ug, yield N(qn));
|
|
@@ -8315,32 +8382,32 @@ function* T_() {
|
|
|
8315
8382
|
}
|
|
8316
8383
|
e && (yield A(mh(e.contents)));
|
|
8317
8384
|
}
|
|
8318
|
-
function*
|
|
8319
|
-
yield M(X, cc.LOADED_LAUNCHPAD,
|
|
8385
|
+
function* M_() {
|
|
8386
|
+
yield M(X, cc.LOADED_LAUNCHPAD, A_), yield M(X, cc.LOADED_LAUNCHPAD, j_);
|
|
8320
8387
|
}
|
|
8321
8388
|
//#endregion
|
|
8322
8389
|
//#region src/scripts/sagas/annotations-sagas.js
|
|
8323
|
-
function
|
|
8390
|
+
function N_(e) {
|
|
8324
8391
|
return w.ANNOTATION.includes(e);
|
|
8325
8392
|
}
|
|
8326
|
-
function*
|
|
8327
|
-
let e = yield j(
|
|
8393
|
+
function* P_() {
|
|
8394
|
+
let e = yield j(n_, h, Ce);
|
|
8328
8395
|
try {
|
|
8329
8396
|
return JSON.parse(e);
|
|
8330
8397
|
} catch {
|
|
8331
8398
|
return null;
|
|
8332
8399
|
}
|
|
8333
8400
|
}
|
|
8334
|
-
function
|
|
8401
|
+
function F_(e, t, n, r) {
|
|
8335
8402
|
let i = e;
|
|
8336
8403
|
return (i /= r / 2) < 1 ? n / 2 * i * i + t : -n / 2 * (--i * (i - 2) - 1) + t;
|
|
8337
8404
|
}
|
|
8338
|
-
function*
|
|
8405
|
+
function* I_(e, t) {
|
|
8339
8406
|
if (window.document?.documentMode) {
|
|
8340
8407
|
let n = e, r = n.scrollTop;
|
|
8341
8408
|
if (r !== t) {
|
|
8342
8409
|
let e = yield j(Lo, t, r), i = 0;
|
|
8343
|
-
for (; i < e;) i += 20, n.scrollTop =
|
|
8410
|
+
for (; i < e;) i += 20, n.scrollTop = F_(Math.min(i, e), r, t - r, e), yield j(Q, 20);
|
|
8344
8411
|
}
|
|
8345
8412
|
return !0;
|
|
8346
8413
|
}
|
|
@@ -8349,67 +8416,67 @@ function* A_(e, t) {
|
|
|
8349
8416
|
behavior: "smooth"
|
|
8350
8417
|
}), !0;
|
|
8351
8418
|
}
|
|
8352
|
-
function*
|
|
8419
|
+
function* L_(e, t, n, r) {
|
|
8353
8420
|
for (;;) {
|
|
8354
8421
|
let i = Ho(e, t, n);
|
|
8355
8422
|
if (i.some((e, t) => e.scrollTop !== r[t].scrollTop)) return i;
|
|
8356
8423
|
yield j(Q, 200);
|
|
8357
8424
|
}
|
|
8358
8425
|
}
|
|
8359
|
-
function*
|
|
8426
|
+
function* R_(e, t, n, r) {
|
|
8360
8427
|
let i = [];
|
|
8361
8428
|
if (r.every((e) => e.visibleInContainer)) return { doneScrolling: r.map(() => !0) };
|
|
8362
|
-
for (let { el: e, scrollTop: t } of r) i.push(j(
|
|
8429
|
+
for (let { el: e, scrollTop: t } of r) i.push(j(I_, e, t));
|
|
8363
8430
|
return yield At({
|
|
8364
8431
|
doneScrolling: i,
|
|
8365
|
-
scrollTargetsChanged: j(
|
|
8432
|
+
scrollTargetsChanged: j(L_, e, t, n, r)
|
|
8366
8433
|
});
|
|
8367
8434
|
}
|
|
8368
|
-
function*
|
|
8435
|
+
function* z_({ payload: e }) {
|
|
8369
8436
|
yield A(_m(e)), yield j(Q, 300), yield A(hm(e));
|
|
8370
8437
|
}
|
|
8371
|
-
function*
|
|
8372
|
-
let t = yield*
|
|
8373
|
-
yield j(
|
|
8438
|
+
function* B_(e) {
|
|
8439
|
+
let t = yield* P_();
|
|
8440
|
+
yield j(t_, h, Ce, JSON.stringify({
|
|
8374
8441
|
...t,
|
|
8375
8442
|
...e
|
|
8376
8443
|
}));
|
|
8377
8444
|
}
|
|
8378
|
-
function*
|
|
8445
|
+
function* V_(e, t, n) {
|
|
8379
8446
|
if (Object.keys(e).length > 0) {
|
|
8380
8447
|
let r = yield N(Mr), i = Object.keys(e).filter((e) => !r[e] || !r[e].errorReported);
|
|
8381
8448
|
if (i.length > 0) {
|
|
8382
8449
|
let r = {};
|
|
8383
8450
|
i.forEach((t) => {
|
|
8384
8451
|
r[t] = e[t];
|
|
8385
|
-
}), yield A(J($(E.CHILDREN_ERRORED, t, { errors: r }), n)), yield A(wm(i)), yield j(
|
|
8452
|
+
}), yield A(J($(E.CHILDREN_ERRORED, t, { errors: r }), n)), yield A(wm(i)), yield j(B_, i.reduce((e, t) => ({
|
|
8386
8453
|
...e,
|
|
8387
8454
|
[t]: { ts: Date.now() }
|
|
8388
8455
|
}), {}));
|
|
8389
8456
|
}
|
|
8390
8457
|
}
|
|
8391
8458
|
}
|
|
8392
|
-
function*
|
|
8393
|
-
let t = yield*
|
|
8459
|
+
function* H_(e) {
|
|
8460
|
+
let t = yield* P_();
|
|
8394
8461
|
t && Object.keys(t).length > 0 && (e.forEach((e) => {
|
|
8395
8462
|
delete t[e];
|
|
8396
|
-
}), yield j(
|
|
8463
|
+
}), yield j(t_, h, Ce, JSON.stringify(t)));
|
|
8397
8464
|
}
|
|
8398
|
-
function*
|
|
8465
|
+
function* U_(e) {
|
|
8399
8466
|
let t = yield N(Mr), n = Object.keys(t).filter((e) => t[e].errorReported || t[e].existingError).filter((n) => e[n] && !e[n].error && t[n] && !t[n].recoveryReported);
|
|
8400
8467
|
if (n.length > 0) {
|
|
8401
8468
|
let e = yield N(I);
|
|
8402
|
-
yield A(J($(E.CHILDREN_RECOVERED, e, { children: n }))), yield A(Tm(n)), yield j(
|
|
8469
|
+
yield A(J($(E.CHILDREN_RECOVERED, e, { children: n }))), yield A(Tm(n)), yield j(H_, n);
|
|
8403
8470
|
}
|
|
8404
8471
|
}
|
|
8405
|
-
function*
|
|
8472
|
+
function* W_() {
|
|
8406
8473
|
let e, t = md();
|
|
8407
8474
|
for (; (e = yield N(mr)) && e !== T.ERROR;) {
|
|
8408
8475
|
let e = yield N(Sr), n = yield N(Cr), r = (yield e.map((e) => j(Fo, (n[e.id] || {}).element || null, Vn(e)))).reduce((t, n, r) => (t[e[r].id] = n, t), {}), i = !1;
|
|
8409
8476
|
if (Object.keys(r).forEach((e) => {
|
|
8410
8477
|
let t = r[e], { _prevPosition: a } = n[e] || {};
|
|
8411
8478
|
Wo(t, a || {}) || (i = !0);
|
|
8412
|
-
}), i) yield A(ym(r)), yield A(Cm(r)), t = md(), yield j(
|
|
8479
|
+
}), i) yield A(ym(r)), yield A(Cm(r)), t = md(), yield j(V_, Object.keys(r).filter((e) => r[e].error).reduce((e, t) => Object.assign(e, { [t]: r[t].errorMessage }), {}), yield N(I)), yield j(U_, r);
|
|
8413
8480
|
else {
|
|
8414
8481
|
let e = md();
|
|
8415
8482
|
e - t > 1e3 && (yield A(ym(r)), t = e);
|
|
@@ -8424,7 +8491,7 @@ function* R_() {
|
|
|
8424
8491
|
yield j(Q, 200);
|
|
8425
8492
|
}
|
|
8426
8493
|
}
|
|
8427
|
-
function*
|
|
8494
|
+
function* G_() {
|
|
8428
8495
|
let e = yield N(mr);
|
|
8429
8496
|
P.inArray([
|
|
8430
8497
|
T.READY,
|
|
@@ -8433,14 +8500,14 @@ function* z_() {
|
|
|
8433
8500
|
T.WILL_CLOSE
|
|
8434
8501
|
], e) || (yield A(xm()));
|
|
8435
8502
|
}
|
|
8436
|
-
function*
|
|
8437
|
-
let e = yield*
|
|
8503
|
+
function* K_() {
|
|
8504
|
+
let e = yield* P_();
|
|
8438
8505
|
if (e) {
|
|
8439
8506
|
let t = Date.now(), n = Object.keys(e).reduce((n, r) => (e[r].ts + 2592e3 > t && (n[r] = e[r]), n), {});
|
|
8440
|
-
yield j(
|
|
8507
|
+
yield j(t_, h, Ce, JSON.stringify(n));
|
|
8441
8508
|
}
|
|
8442
8509
|
}
|
|
8443
|
-
function*
|
|
8510
|
+
function* q_(e) {
|
|
8444
8511
|
let t = yield N(Cr), n = yield N(Sr), r = t[e] || {}, i = Sn(n, (t) => t.id === e), { element: a, error: o } = r, { offset_y_percentage: s } = i, c = 1 - Number.parseFloat(s);
|
|
8445
8512
|
for (; !a || o;) yield k(G.SET_ANNOTATIONS_POSITIONS), t = yield N(Cr), r = t[e] || {}, a = r.element, o = r.error;
|
|
8446
8513
|
let l = yield j(Vo, a);
|
|
@@ -8455,16 +8522,16 @@ function* V_(e) {
|
|
|
8455
8522
|
return;
|
|
8456
8523
|
}
|
|
8457
8524
|
let u = yield j(Ho, a, c, l), d = {};
|
|
8458
|
-
for (; !d.doneScrolling;) d = yield j(
|
|
8525
|
+
for (; !d.doneScrolling;) d = yield j(R_, a, c, l, u), u = d.scrollTargetsChanged;
|
|
8459
8526
|
}
|
|
8460
|
-
function*
|
|
8461
|
-
|
|
8527
|
+
function* J_({ payload: e }) {
|
|
8528
|
+
N_(e.type) && (yield A(Ac(lu(ce.CALCULATE, e.id))));
|
|
8462
8529
|
}
|
|
8463
|
-
function*
|
|
8464
|
-
let e = (yield j(
|
|
8530
|
+
function* Y_() {
|
|
8531
|
+
let e = (yield j(P_)) || {};
|
|
8465
8532
|
Object.keys(e).length > 0 && (yield A(Em(e)));
|
|
8466
8533
|
}
|
|
8467
|
-
function*
|
|
8534
|
+
function* X_({ payload: e }) {
|
|
8468
8535
|
let t = yield N(Nr), { annotationId: n, isScrolling: r } = e;
|
|
8469
8536
|
if (r) yield A({
|
|
8470
8537
|
type: G.CONFIRM_SCROLLING,
|
|
@@ -8478,22 +8545,22 @@ function* W_({ payload: e }) {
|
|
|
8478
8545
|
});
|
|
8479
8546
|
}
|
|
8480
8547
|
}
|
|
8481
|
-
function*
|
|
8548
|
+
function* Z_() {
|
|
8482
8549
|
yield [
|
|
8483
|
-
M(X, V.CLEANUP_STEP,
|
|
8484
|
-
M(uu, G.START_CALCULATE_POSITIONS,
|
|
8550
|
+
M(X, V.CLEANUP_STEP, J_),
|
|
8551
|
+
M(uu, G.START_CALCULATE_POSITIONS, W_, function* () {
|
|
8485
8552
|
let e = yield N(I);
|
|
8486
8553
|
return lu(ce.CALCULATE, e);
|
|
8487
8554
|
}),
|
|
8488
|
-
M(X, G.SET_IS_SCROLLING_TO_ANNOTATION,
|
|
8489
|
-
M(X, G.HIDE_AND_REMOVE_ACTIVE_ANNOTATIONS,
|
|
8490
|
-
M(
|
|
8491
|
-
M(
|
|
8555
|
+
M(X, G.SET_IS_SCROLLING_TO_ANNOTATION, X_),
|
|
8556
|
+
M(X, G.HIDE_AND_REMOVE_ACTIVE_ANNOTATIONS, z_),
|
|
8557
|
+
M(K_),
|
|
8558
|
+
M(Y_)
|
|
8492
8559
|
];
|
|
8493
8560
|
}
|
|
8494
8561
|
//#endregion
|
|
8495
8562
|
//#region src/scripts/utils/query.js
|
|
8496
|
-
function
|
|
8563
|
+
function Q_(e) {
|
|
8497
8564
|
let t = {};
|
|
8498
8565
|
if (e) {
|
|
8499
8566
|
let n = e.replace(/^\?/, "").split("&");
|
|
@@ -8509,32 +8576,32 @@ function K_(e) {
|
|
|
8509
8576
|
}
|
|
8510
8577
|
return t;
|
|
8511
8578
|
}
|
|
8512
|
-
function
|
|
8513
|
-
return
|
|
8579
|
+
function $_(e) {
|
|
8580
|
+
return Q_(e.location.search).appcuesTestContentId || null;
|
|
8514
8581
|
}
|
|
8515
|
-
function
|
|
8516
|
-
return
|
|
8582
|
+
function ev(e, t = "appcue") {
|
|
8583
|
+
return Q_(e.location.search)[t] || null;
|
|
8517
8584
|
}
|
|
8518
|
-
function
|
|
8585
|
+
function tv(e, t = "appcue") {
|
|
8519
8586
|
if (!e) return e;
|
|
8520
8587
|
let n = RegExp(`(\\?)?(&)?((?:${t})=[^&#]+)(&)?`);
|
|
8521
8588
|
return e.replace(n, (e, t, n, r, i) => t && i ? "?" : n && i ? "&" : "");
|
|
8522
8589
|
}
|
|
8523
8590
|
//#endregion
|
|
8524
8591
|
//#region src/scripts/sagas/conditions-sagas.js
|
|
8525
|
-
var
|
|
8526
|
-
function*
|
|
8592
|
+
var nv = (e) => ["Enter", " "].includes(e.key);
|
|
8593
|
+
function* rv(e) {
|
|
8527
8594
|
let t = yield e.map((e) => j(Fo, null, e)), n = t.filter((e) => e.error);
|
|
8528
8595
|
return n.length === t.length ? {
|
|
8529
8596
|
result: !1,
|
|
8530
8597
|
failures: n.map((e) => e.errorMessage)
|
|
8531
8598
|
} : { result: !0 };
|
|
8532
8599
|
}
|
|
8533
|
-
function*
|
|
8534
|
-
for (; !(yield j(
|
|
8600
|
+
function* iv(e) {
|
|
8601
|
+
for (; !(yield j(rv, e)).result;) yield j(Q, 200);
|
|
8535
8602
|
return { result: !0 };
|
|
8536
8603
|
}
|
|
8537
|
-
function*
|
|
8604
|
+
function* av(e, t, n = null) {
|
|
8538
8605
|
let { promise: r, listener: i } = yield j(is, e, t, n), a, o;
|
|
8539
8606
|
try {
|
|
8540
8607
|
a = yield j(() => r), o = !0;
|
|
@@ -8542,24 +8609,24 @@ function* $_(e, t, n = null) {
|
|
|
8542
8609
|
return !o && i && (yield It()) && (yield j([e, e.removeEventListener], t, i)), a;
|
|
8543
8610
|
}
|
|
8544
8611
|
}
|
|
8545
|
-
function
|
|
8612
|
+
function ov(e, t = null, n = null) {
|
|
8546
8613
|
return {
|
|
8547
8614
|
result: e,
|
|
8548
8615
|
task: t,
|
|
8549
8616
|
failures: n
|
|
8550
8617
|
};
|
|
8551
8618
|
}
|
|
8552
|
-
function*
|
|
8553
|
-
let { result: t, failures: n } = yield j(
|
|
8554
|
-
return t ?
|
|
8619
|
+
function* sv(e) {
|
|
8620
|
+
let { result: t, failures: n } = yield j(rv, e);
|
|
8621
|
+
return t ? ov(!0) : ov(!1, yield Mt(iv, e), n);
|
|
8555
8622
|
}
|
|
8556
|
-
function*
|
|
8623
|
+
function* cv(e, t, n) {
|
|
8557
8624
|
let r, i;
|
|
8558
8625
|
for (;;) try {
|
|
8559
8626
|
let a = yield j(Eo, t);
|
|
8560
8627
|
if (a.error) yield j(Q, 200);
|
|
8561
8628
|
else {
|
|
8562
|
-
if ((r !== a || !i) && (i && (yield Pt(i)), r = a, i = yield M(
|
|
8629
|
+
if ((r !== a || !i) && (i && (yield Pt(i)), r = a, i = yield M(av, r, e, n)), i && i.result()) return { result: !0 };
|
|
8563
8630
|
let { eventOccurred: t } = yield At({
|
|
8564
8631
|
timeout: j(Q, 200),
|
|
8565
8632
|
eventOccurred: Nt(i)
|
|
@@ -8570,18 +8637,18 @@ function* nv(e, t, n) {
|
|
|
8570
8637
|
yield j(Q, 200);
|
|
8571
8638
|
}
|
|
8572
8639
|
}
|
|
8573
|
-
function*
|
|
8574
|
-
return (yield At([j(
|
|
8640
|
+
function* lv(e) {
|
|
8641
|
+
return (yield At([j(cv, e.params.event, e.params.selector), j(cv, "keydown", e.params.selector, nv)])).find((e) => e && e.result);
|
|
8575
8642
|
}
|
|
8576
|
-
function*
|
|
8643
|
+
function* uv(e) {
|
|
8577
8644
|
switch (e ? e.type : null) {
|
|
8578
|
-
case _e.WAIT_FOR_ONE_ELEMENT: return yield j(
|
|
8579
|
-
case _e.WAIT_FOR_MOUSE_EVENT: return
|
|
8580
|
-
default: return
|
|
8645
|
+
case _e.WAIT_FOR_ONE_ELEMENT: return yield j(sv, e.params.selectors);
|
|
8646
|
+
case _e.WAIT_FOR_MOUSE_EVENT: return ov(!1, yield Mt(lv, e));
|
|
8647
|
+
default: return ov(!0);
|
|
8581
8648
|
}
|
|
8582
8649
|
}
|
|
8583
|
-
function*
|
|
8584
|
-
let { result: r, task: i } = yield j(
|
|
8650
|
+
function* dv(e, t, ...n) {
|
|
8651
|
+
let { result: r, task: i } = yield j(uv, e), a = r;
|
|
8585
8652
|
if (!r && i) try {
|
|
8586
8653
|
a = (yield Nt(i)).result;
|
|
8587
8654
|
} finally {
|
|
@@ -8591,17 +8658,17 @@ function* av(e, t, ...n) {
|
|
|
8591
8658
|
}
|
|
8592
8659
|
//#endregion
|
|
8593
8660
|
//#region src/scripts/utils/conditions.js
|
|
8594
|
-
function
|
|
8661
|
+
function fv(e, t, n) {
|
|
8595
8662
|
return {
|
|
8596
8663
|
type: e,
|
|
8597
8664
|
params: t,
|
|
8598
8665
|
context: n
|
|
8599
8666
|
};
|
|
8600
8667
|
}
|
|
8601
|
-
function
|
|
8602
|
-
return
|
|
8668
|
+
function pv(e, t) {
|
|
8669
|
+
return fv(_e.WAIT_FOR_ONE_ELEMENT, { selectors: e }, t);
|
|
8603
8670
|
}
|
|
8604
|
-
function
|
|
8671
|
+
function mv(e) {
|
|
8605
8672
|
let t = "unknown", n = {};
|
|
8606
8673
|
switch (e.type) {
|
|
8607
8674
|
case _e.WAIT_FOR_MOUSE_EVENT:
|
|
@@ -8625,39 +8692,39 @@ function cv(e) {
|
|
|
8625
8692
|
}
|
|
8626
8693
|
//#endregion
|
|
8627
8694
|
//#region src/scripts/sagas/handle-flow-lifecycle-events.js
|
|
8628
|
-
var
|
|
8695
|
+
var hv = (e) => ({
|
|
8629
8696
|
campaignId: e.campaign_id ?? null,
|
|
8630
8697
|
tacticId: e.tactic_id ?? null
|
|
8631
8698
|
});
|
|
8632
|
-
function*
|
|
8699
|
+
function* gv(e, t) {
|
|
8633
8700
|
for (let n of t) yield A(_c(e, n));
|
|
8634
8701
|
yield A(bc({}, t.map((e) => gu(e))));
|
|
8635
8702
|
}
|
|
8636
|
-
function*
|
|
8637
|
-
yield*
|
|
8638
|
-
...yield*
|
|
8703
|
+
function* _v(e, t, n) {
|
|
8704
|
+
yield* Fv({
|
|
8705
|
+
...yield* Pv(),
|
|
8639
8706
|
flowId: e.id,
|
|
8640
8707
|
stepId: t.id,
|
|
8641
|
-
...
|
|
8708
|
+
...hv(e),
|
|
8642
8709
|
status: n
|
|
8643
8710
|
});
|
|
8644
8711
|
}
|
|
8645
|
-
function*
|
|
8712
|
+
function* vv(...e) {
|
|
8646
8713
|
for (let t of e) yield A(J(t));
|
|
8647
8714
|
}
|
|
8648
|
-
function*
|
|
8715
|
+
function* yv(e, t, n) {
|
|
8649
8716
|
(yield k(({ type: t, payload: r }) => t === U.ACTIVATED_STEP_CHILD && r.stepChildId === n.id || t === U.CLOSE_FLOW && r.flowId === e.id)).type === U.ACTIVATED_STEP_CHILD && (yield At({
|
|
8650
|
-
wait: j(
|
|
8717
|
+
wait: j(dv, n.ui_conditions.next, vv, Qp(E.STEP_INTERACTED, t.id, n.id, mv(n.ui_conditions.next)), Qp(E.CHILD_NEXT, t.id, n.id)),
|
|
8651
8718
|
cancel: k(({ type: t, payload: n }) => t === U.CLOSE_FLOW && n.flowId === e.id)
|
|
8652
8719
|
}));
|
|
8653
8720
|
}
|
|
8654
|
-
function
|
|
8721
|
+
function bv(e, t) {
|
|
8655
8722
|
return t ? {
|
|
8656
8723
|
...e,
|
|
8657
8724
|
_sdkMetrics: t
|
|
8658
8725
|
} : e;
|
|
8659
8726
|
}
|
|
8660
|
-
function*
|
|
8727
|
+
function* xv(e, t, n) {
|
|
8661
8728
|
let r = yield N(rr);
|
|
8662
8729
|
for (;;) {
|
|
8663
8730
|
let i = yield k(t), a = i.params || {}, o = a.stepId ? Ln(e, a.stepId) : null, s, c, l = o ? (s = In(e, 0)) && s.id === o.id : !1, u = (o ? (c = In(e, Tn(e) - 1)) && c.id === o.id : !1) || a.shouldEndFlow;
|
|
@@ -8666,28 +8733,28 @@ function* hv(e, t, n) {
|
|
|
8666
8733
|
if (o && Fn(o)) {
|
|
8667
8734
|
if (Nn(o)) {
|
|
8668
8735
|
let t = [];
|
|
8669
|
-
l && t.push(Du(e, r)), t.push(Nu(e, o, r)), yield*
|
|
8670
|
-
let { page_check_limit: n } = o.attributes.params, i = yield*
|
|
8671
|
-
yield*
|
|
8736
|
+
l && t.push(Du(e, r)), t.push(Nu(e, o, r)), yield* gv(e.id, t);
|
|
8737
|
+
let { page_check_limit: n } = o.attributes.params, i = yield* Pv(), { remainingPagesToCheck: a } = i || {};
|
|
8738
|
+
yield* Fv({
|
|
8672
8739
|
...i,
|
|
8673
|
-
...
|
|
8740
|
+
...hv(e),
|
|
8674
8741
|
remainingPagesToCheck: typeof a == "number" ? a : typeof n == "number" ? n : 2
|
|
8675
8742
|
});
|
|
8676
8743
|
}
|
|
8677
8744
|
let t = [];
|
|
8678
|
-
l && t.push(Eu(e, r)), t.push(Mu(e, o, r)), yield*
|
|
8745
|
+
l && t.push(Eu(e, r)), t.push(Mu(e, o, r)), yield* gv(e.id, t), yield* _v(e, o, E.STEP_ATTEMPTED);
|
|
8679
8746
|
}
|
|
8680
8747
|
break;
|
|
8681
8748
|
case E.STEP_SHOWN:
|
|
8682
8749
|
if (o) {
|
|
8683
8750
|
if (Fn(o)) {
|
|
8684
|
-
let t = yield*
|
|
8685
|
-
yield*
|
|
8751
|
+
let t = yield* Pv(), n = l || !t ? Rh() : t.submissionId, r = l || !t ? yield j(ev, window, "appcue") : t.fromPermalink;
|
|
8752
|
+
yield* Fv({
|
|
8686
8753
|
...t,
|
|
8687
8754
|
submissionId: n,
|
|
8688
8755
|
status: E.STEP_SHOWN,
|
|
8689
8756
|
fromPermalink: !!r,
|
|
8690
|
-
...
|
|
8757
|
+
...hv(e)
|
|
8691
8758
|
});
|
|
8692
8759
|
}
|
|
8693
8760
|
l && !Pn(o) && n && (yield j(Og, n));
|
|
@@ -8696,25 +8763,25 @@ function* hv(e, t, n) {
|
|
|
8696
8763
|
case E.STEP_COMPLETED:
|
|
8697
8764
|
if (o) {
|
|
8698
8765
|
let t = [Pu(e, o, r)];
|
|
8699
|
-
if (u && t.push(ku(e, r)), yield*
|
|
8700
|
-
let { remainingPagesToCheck: t, navByADTT: n, ...r } = (yield*
|
|
8701
|
-
yield*
|
|
8766
|
+
if (u && t.push(ku(e, r)), yield* gv(e.id, t), Nn(o)) {
|
|
8767
|
+
let { remainingPagesToCheck: t, navByADTT: n, ...r } = (yield* Pv()) || {};
|
|
8768
|
+
yield* Fv({
|
|
8702
8769
|
...r,
|
|
8703
8770
|
flowId: e.id,
|
|
8704
|
-
...
|
|
8771
|
+
...hv(e),
|
|
8705
8772
|
stepId: o.id,
|
|
8706
8773
|
status: E.STEP_COMPLETED
|
|
8707
8774
|
});
|
|
8708
|
-
} else yield*
|
|
8775
|
+
} else yield* _v(e, o, E.STEP_COMPLETED);
|
|
8709
8776
|
}
|
|
8710
8777
|
break;
|
|
8711
8778
|
case E.STEP_SKIPPED:
|
|
8712
|
-
o && (yield*
|
|
8779
|
+
o && (yield* gv(e.id, [Fu(e, o, a.stepChildId, r), Au(e, a.stepId, r)]), yield* Rv(e, o), yield A(Wp(e.id, Se.SKIPPED)), yield A(qm()), yield A(qg()));
|
|
8713
8780
|
break;
|
|
8714
8781
|
case E.STEP_END:
|
|
8715
8782
|
if (o) {
|
|
8716
8783
|
let n = yield N(I);
|
|
8717
|
-
if (n === o.id && (yield*
|
|
8784
|
+
if (n === o.id && (yield* Rv(e, o)), u) yield A(Wp(e.id, Se.COMPLETED));
|
|
8718
8785
|
else {
|
|
8719
8786
|
let r = In(e, Rn(e, o.id) + 1);
|
|
8720
8787
|
r.type === w.HOTSPOTS && (yield A(qm()), yield A(qg())), n === o.id && (yield A(t, $(E.STEP_ATTEMPTED, r.id)), yield A(Nc(r, document.location.href)));
|
|
@@ -8742,7 +8809,7 @@ function* hv(e, t, n) {
|
|
|
8742
8809
|
...t
|
|
8743
8810
|
}, r)));
|
|
8744
8811
|
} else t.push(zu(e, o, a.stepChildId, a.interactionType, n, r));
|
|
8745
|
-
yield*
|
|
8812
|
+
yield* gv(e.id, t);
|
|
8746
8813
|
}
|
|
8747
8814
|
break;
|
|
8748
8815
|
case E.STEP_ERRORED:
|
|
@@ -8752,25 +8819,25 @@ function* hv(e, t, n) {
|
|
|
8752
8819
|
Iu(e, o, r),
|
|
8753
8820
|
ju(e, r)
|
|
8754
8821
|
];
|
|
8755
|
-
l && t.splice(1, 0, Bu(e, a.error, a.details, r)), yield*
|
|
8822
|
+
l && t.splice(1, 0, Bu(e, a.error, a.details, r)), yield* gv(e.id, t);
|
|
8756
8823
|
}
|
|
8757
8824
|
break;
|
|
8758
8825
|
case E.CHILD_ACTIVATED:
|
|
8759
|
-
yield A(Ip(a.stepChildId, a.ts)), o && Fn(o) && (yield*
|
|
8826
|
+
yield A(Ip(a.stepChildId, a.ts)), o && Fn(o) && (yield* gv(e.id, [Lu(e, o, a.stepChildId, r)]));
|
|
8760
8827
|
break;
|
|
8761
8828
|
case E.CHILD_DEACTIVATED: {
|
|
8762
8829
|
let { stepChildId: t } = a, n = yield N(Ar, t);
|
|
8763
|
-
yield A(Lp(t)), o && Fn(o) && (yield*
|
|
8830
|
+
yield A(Lp(t)), o && Fn(o) && (yield* gv(e.id, [Ru(e, o, t, a.ts - n, r)]));
|
|
8764
8831
|
break;
|
|
8765
8832
|
}
|
|
8766
8833
|
case E.CHILDREN_ERRORED: {
|
|
8767
8834
|
let t = Object.keys(a.errors || {});
|
|
8768
|
-
t.length > 0 && (yield*
|
|
8835
|
+
t.length > 0 && (yield* gv(e.id, t.map((t) => Hu(e, o, t, a.errors[t], r))));
|
|
8769
8836
|
break;
|
|
8770
8837
|
}
|
|
8771
8838
|
case E.CHILDREN_RECOVERED: {
|
|
8772
8839
|
let t = a.children || [];
|
|
8773
|
-
t.length > 0 && (yield*
|
|
8840
|
+
t.length > 0 && (yield* gv(e.id, t.map((t) => Uu(e, o, t, r))));
|
|
8774
8841
|
break;
|
|
8775
8842
|
}
|
|
8776
8843
|
case E.CHILD_NEXT:
|
|
@@ -8783,7 +8850,7 @@ function* hv(e, t, n) {
|
|
|
8783
8850
|
break;
|
|
8784
8851
|
case E.CHILD_RUN: {
|
|
8785
8852
|
let t = On(o, Dn(o, a.stepChildId));
|
|
8786
|
-
yield A(Rp(a.stepChildId)), t && t.ui_conditions && t.ui_conditions.next && (yield Mt(
|
|
8853
|
+
yield A(Rp(a.stepChildId)), t && t.ui_conditions && t.ui_conditions.next && (yield Mt(yv, e, o, t));
|
|
8787
8854
|
break;
|
|
8788
8855
|
}
|
|
8789
8856
|
case E.CSS_LOADED:
|
|
@@ -8794,7 +8861,7 @@ function* hv(e, t, n) {
|
|
|
8794
8861
|
let t = null;
|
|
8795
8862
|
l && n && (yield j(Ag, n), t = yield j(Ng, n, o.type));
|
|
8796
8863
|
let i = [];
|
|
8797
|
-
Fn(o) ? (l && i.push(
|
|
8864
|
+
Fn(o) ? (l && i.push(bv(Du(e, r), t)), i.push(Nu(e, o, r)), yield* gv(e.id, i)) : l && (i.push(bv(Ou(e, r), t)), yield* gv(e.id, i));
|
|
8798
8865
|
}
|
|
8799
8866
|
break;
|
|
8800
8867
|
default: break;
|
|
@@ -8803,30 +8870,30 @@ function* hv(e, t, n) {
|
|
|
8803
8870
|
}
|
|
8804
8871
|
//#endregion
|
|
8805
8872
|
//#region src/scripts/utils/temp-store.js
|
|
8806
|
-
function
|
|
8807
|
-
|
|
8873
|
+
function Sv(e) {
|
|
8874
|
+
r_("localStorage", e), r_("localStorage", `${e}_timeout`);
|
|
8808
8875
|
}
|
|
8809
|
-
function
|
|
8876
|
+
function Cv(e) {
|
|
8810
8877
|
if (!e) return !1;
|
|
8811
|
-
let t =
|
|
8812
|
-
return Date.now() > n || !t ? (
|
|
8878
|
+
let t = n_("localStorage", e), n = JSON.parse(n_("localStorage", `${e}_timeout`)) ?? 0;
|
|
8879
|
+
return Date.now() > n || !t ? (Sv(e), !1) : !0;
|
|
8813
8880
|
}
|
|
8814
|
-
function
|
|
8815
|
-
return !e || !
|
|
8881
|
+
function wv(e) {
|
|
8882
|
+
return !e || !Cv(e) ? null : n_("localStorage", e);
|
|
8816
8883
|
}
|
|
8817
|
-
function
|
|
8818
|
-
|
|
8884
|
+
function Tv(e, t, n) {
|
|
8885
|
+
t_("localStorage", e, t), t_("localStorage", `${e}_timeout`, Date.now() + n);
|
|
8819
8886
|
}
|
|
8820
8887
|
//#endregion
|
|
8821
8888
|
//#region src/scripts/sagas/flow-sagas.js
|
|
8822
|
-
function*
|
|
8889
|
+
function* Ev(e, t) {
|
|
8823
8890
|
yield k((t) => t.type === U.CANCEL_STEP && t.payload.flowId === e), yield Pt(t);
|
|
8824
8891
|
}
|
|
8825
|
-
function*
|
|
8826
|
-
let n = yield j(mn, yield j(Qt.expanding, 5)), r = yield Mt(
|
|
8827
|
-
return yield Mt(
|
|
8892
|
+
function* Dv(e, t) {
|
|
8893
|
+
let n = yield j(mn, yield j(Qt.expanding, 5)), r = yield Mt(xv, e, n, t);
|
|
8894
|
+
return yield Mt(Ev, e.id, r), n;
|
|
8828
8895
|
}
|
|
8829
|
-
function
|
|
8896
|
+
function Ov(e) {
|
|
8830
8897
|
if (e.uiConditions && e.uiConditions.start) return e.uiConditions;
|
|
8831
8898
|
let t;
|
|
8832
8899
|
switch (e.type) {
|
|
@@ -8836,9 +8903,9 @@ function Sv(e) {
|
|
|
8836
8903
|
let [e] = n;
|
|
8837
8904
|
if (e) {
|
|
8838
8905
|
let n = [e.id];
|
|
8839
|
-
t =
|
|
8840
|
-
} else t =
|
|
8841
|
-
} else t =
|
|
8906
|
+
t = pv([Vn(e)], { stepChildIds: n });
|
|
8907
|
+
} else t = pv([], { stepChildIds: [] });
|
|
8908
|
+
} else t = pv(n.reduce((e, t) => [...e, Vn(t)], []), { stepChildIds: n.map((e) => e.id) });
|
|
8842
8909
|
break;
|
|
8843
8910
|
}
|
|
8844
8911
|
case w.MODAL:
|
|
@@ -8849,7 +8916,7 @@ function Sv(e) {
|
|
|
8849
8916
|
start: t
|
|
8850
8917
|
};
|
|
8851
8918
|
}
|
|
8852
|
-
function*
|
|
8919
|
+
function* kv(e, t, n, r, i, a, o) {
|
|
8853
8920
|
let s = !1;
|
|
8854
8921
|
try {
|
|
8855
8922
|
s = (yield Nt(e)).result, s && (yield A(hl(n, td.FLOWS)), yield A(Mc(n, r, i, t, null, a, o)));
|
|
@@ -8857,56 +8924,56 @@ function* Cv(e, t, n, r, i, a, o) {
|
|
|
8857
8924
|
(yield It()) && (yield Pt(e)), s || (yield A(t, ln));
|
|
8858
8925
|
}
|
|
8859
8926
|
}
|
|
8860
|
-
function*
|
|
8927
|
+
function* Av(e) {
|
|
8861
8928
|
for (; (yield N(sr, e)).length > 0;) yield k(V.FINISHED_EVENT);
|
|
8862
8929
|
}
|
|
8863
|
-
function*
|
|
8864
|
-
let a = yield j(
|
|
8930
|
+
function* jv(e, t, n, r, i = !0) {
|
|
8931
|
+
let a = yield j(Dv, e, r), o = t ? Ln(e, t) : In(e, 0);
|
|
8865
8932
|
Fn(o) && o.attributes.action_type !== fe.WAIT_FOR_PAGE && (yield A(a, $(E.STEP_ATTEMPTED, o.id)));
|
|
8866
|
-
let s =
|
|
8933
|
+
let s = Ov(o).start, { result: c, task: l, failures: u } = yield j(uv, s);
|
|
8867
8934
|
if (c) return yield A(ll(e.id)), yield A(hl(e.id, td.FLOWS)), yield A(Mc(e.id, o.id, n, a, null, e.campaign_id, e.tactic_id)), !0;
|
|
8868
8935
|
let d = (s.context || {}).stepChildIds || [];
|
|
8869
|
-
u && u.length > 0 && d.length === u.length && (yield j(
|
|
8936
|
+
u && u.length > 0 && d.length === u.length && (yield j(V_, u.reduce((e, t, n) => t ? Object.assign(e, { [s.context.stepChildIds[n]]: t }) : e, {}), o.id, a));
|
|
8870
8937
|
let f = [V.START_FLOW];
|
|
8871
8938
|
return i !== !1 && f.push(V.CANCEL_ATTEMPTS), yield Mt(pu, {
|
|
8872
|
-
wait: j(
|
|
8939
|
+
wait: j(kv, l, a, e.id, o.id, n, e.campaign_id, e.tactic_id),
|
|
8873
8940
|
cancel: k(f)
|
|
8874
8941
|
}), !1;
|
|
8875
8942
|
}
|
|
8876
|
-
function*
|
|
8877
|
-
let i = yield j(
|
|
8943
|
+
function* Mv(e, t, n, r) {
|
|
8944
|
+
let i = yield j(Dv, e, null);
|
|
8878
8945
|
yield A(Mc(e.id, t, n, i, r, e.campaign_id, e.tactic_id));
|
|
8879
8946
|
}
|
|
8880
|
-
function*
|
|
8947
|
+
function* Nv(e) {
|
|
8881
8948
|
let { flowId: t, stepId: n, url: r, eventChannel: i, status: a } = e.payload, o = yield N(dr, t), s = Ln(o, n);
|
|
8882
8949
|
s && (s.type === w.HOTSPOTS && (yield A(qm()), yield A(qg())), yield A(Nc(s, r, a)));
|
|
8883
8950
|
let { payload: c } = yield k((e) => e.type === U.CLOSE_FLOW && e.payload.flowId === t);
|
|
8884
|
-
yield j(
|
|
8885
|
-
wait: j(
|
|
8951
|
+
yield j(r_, g, ke), yield A(Fc(i)), yield At({
|
|
8952
|
+
wait: j(Av, t),
|
|
8886
8953
|
cancel: j(Q, De)
|
|
8887
|
-
}), !o.redirect_url && !o.next_content_id && (yield A(qm()), yield A(qg())), c.type === Se.COMPLETED && (o.redirect_url ? (o.next_content_id && (yield j(
|
|
8954
|
+
}), !o.redirect_url && !o.next_content_id && (yield A(qm()), yield A(qg())), c.type === Se.COMPLETED && (o.redirect_url ? (o.next_content_id && (yield j(Tv, ne, o.next_content_id, ie), yield j(Tv, te, o.campaign_id, ie), yield j(Tv, y, o.tactic_id, ie)), yield j(Rd, window, o.redirect_url, o.redirect_new_tab)) : o.next_content_id && (yield A(kc(o.next_content_id, {
|
|
8888
8955
|
campaignId: o.campaign_id ?? null,
|
|
8889
8956
|
tacticId: o.tactic_id ?? null
|
|
8890
8957
|
}))));
|
|
8891
8958
|
}
|
|
8892
|
-
function*
|
|
8959
|
+
function* Pv() {
|
|
8893
8960
|
try {
|
|
8894
|
-
return JSON.parse(yield j(
|
|
8961
|
+
return JSON.parse(yield j(n_, g, ke));
|
|
8895
8962
|
} catch {
|
|
8896
8963
|
return {};
|
|
8897
8964
|
}
|
|
8898
8965
|
}
|
|
8899
|
-
function*
|
|
8900
|
-
yield j(
|
|
8966
|
+
function* Fv(e) {
|
|
8967
|
+
yield j(t_, g, ke, JSON.stringify(e));
|
|
8901
8968
|
}
|
|
8902
|
-
function*
|
|
8969
|
+
function* Iv(e, t) {
|
|
8903
8970
|
let n = yield N(I);
|
|
8904
8971
|
yield A(Gc(e)), yield A(J($(E.STEP_ERRORED, n, {
|
|
8905
8972
|
error: e.message,
|
|
8906
8973
|
details: t
|
|
8907
8974
|
})));
|
|
8908
8975
|
}
|
|
8909
|
-
function*
|
|
8976
|
+
function* Lv(e) {
|
|
8910
8977
|
let { step: t, status: n } = e.payload;
|
|
8911
8978
|
switch (t.type) {
|
|
8912
8979
|
case w.MODAL:
|
|
@@ -8917,53 +8984,53 @@ function* jv(e) {
|
|
|
8917
8984
|
case w.ACTION:
|
|
8918
8985
|
if (n) yield A(ol(t, n));
|
|
8919
8986
|
else if (t.attributes.action_type === fe.WAIT_FOR_PAGE) {
|
|
8920
|
-
let e = yield*
|
|
8987
|
+
let e = yield* Pv();
|
|
8921
8988
|
yield A(ol(t, n || e && e.status || E.STEP_ATTEMPTED));
|
|
8922
8989
|
} else yield A(al(t));
|
|
8923
8990
|
break;
|
|
8924
|
-
default: yield j(
|
|
8991
|
+
default: yield j(Iv, /* @__PURE__ */ Error("Unknown step type."), JSON.stringify({ type: t.type }));
|
|
8925
8992
|
}
|
|
8926
8993
|
}
|
|
8927
|
-
function*
|
|
8994
|
+
function* Rv(e, t) {
|
|
8928
8995
|
t && ((yield N(mr)) === T.SHOWING && (yield A(qc()), yield j(Q, 500)), yield A(wc(t)), yield A(Up(e.id, t.id)));
|
|
8929
8996
|
}
|
|
8930
|
-
function*
|
|
8997
|
+
function* zv({ payload: e }) {
|
|
8931
8998
|
let t = e.eventChannel || (yield N(yr));
|
|
8932
8999
|
t && (yield A(t, e.event));
|
|
8933
9000
|
}
|
|
8934
|
-
function*
|
|
9001
|
+
function* Bv({ payload: e }) {
|
|
8935
9002
|
yield j([e, e.close]);
|
|
8936
9003
|
}
|
|
8937
|
-
function*
|
|
9004
|
+
function* Vv() {
|
|
8938
9005
|
yield [
|
|
8939
|
-
M(fu, V.START_FLOW,
|
|
8940
|
-
M(fu, V.START_STEP,
|
|
8941
|
-
M(X, V.SEND_LIFECYCLE_EVENT,
|
|
8942
|
-
M(X, V.CLOSE_CHANNEL,
|
|
9006
|
+
M(fu, V.START_FLOW, Nv),
|
|
9007
|
+
M(fu, V.START_STEP, Lv),
|
|
9008
|
+
M(X, V.SEND_LIFECYCLE_EVENT, zv),
|
|
9009
|
+
M(X, V.CLOSE_CHANNEL, Bv)
|
|
8943
9010
|
];
|
|
8944
9011
|
}
|
|
8945
9012
|
//#endregion
|
|
8946
9013
|
//#region src/scripts/sagas/experiences-sagas.js
|
|
8947
|
-
function*
|
|
8948
|
-
let e = yield Rt("dispatch");
|
|
8949
|
-
yield A(dl(
|
|
9014
|
+
function* Hv() {
|
|
9015
|
+
let e = yield Rt("dispatch"), t = (yield j(w_))(e);
|
|
9016
|
+
e_(t), yield A(dl(t)), yield A(pl());
|
|
8950
9017
|
}
|
|
8951
|
-
function*
|
|
9018
|
+
function* Uv() {
|
|
8952
9019
|
let e = yield N(ii), t = yield N(ai);
|
|
8953
9020
|
return t && (yield k(({ type: e }) => e === H.OPEN_BUILDER_INITIALIZED)), !e && !t && (yield A(fl()), yield k(({ type: e }) => e === H.OPEN_BUILDER_INITIALIZED)), yield N(ii);
|
|
8954
9021
|
}
|
|
8955
|
-
function*
|
|
8956
|
-
let t = yield j(
|
|
9022
|
+
function* Wv({ payload: e }) {
|
|
9023
|
+
let t = yield j(Uv);
|
|
8957
9024
|
t && (yield j(t.pause, e));
|
|
8958
9025
|
}
|
|
8959
|
-
function*
|
|
8960
|
-
let t = yield j(
|
|
9026
|
+
function* Gv({ payload: e }) {
|
|
9027
|
+
let t = yield j(Uv);
|
|
8961
9028
|
t && (yield j(t.resume, e));
|
|
8962
9029
|
}
|
|
8963
|
-
function*
|
|
9030
|
+
function* Kv(e, t) {
|
|
8964
9031
|
yield A(hl(e.id, td.EXPERIENCES)), !(yield j(rd, e.id, td.EXPERIENCES)) && t.show(e);
|
|
8965
9032
|
}
|
|
8966
|
-
function
|
|
9033
|
+
function qv(e) {
|
|
8967
9034
|
let t = {
|
|
8968
9035
|
experiences: [],
|
|
8969
9036
|
launchpads: []
|
|
@@ -8972,83 +9039,83 @@ function Vv(e) {
|
|
|
8972
9039
|
t[e.type === "launchpad" ? "launchpads" : "experiences"].push(e);
|
|
8973
9040
|
}), t;
|
|
8974
9041
|
}
|
|
8975
|
-
function*
|
|
8976
|
-
let t = yield j(
|
|
9042
|
+
function* Jv({ payload: e }) {
|
|
9043
|
+
let t = yield j(Uv), n = e, r = n.some((e) => e.type === je.NPS || e.type === je.FLOW), i = n.some((e) => e.type === "launchpad");
|
|
8977
9044
|
if (i) {
|
|
8978
9045
|
yield import("./dist.DrPFC3yn.js");
|
|
8979
9046
|
let e = yield N(L);
|
|
8980
9047
|
if (e?.type !== w.HOTSPOTS && e) {
|
|
8981
|
-
let { experiences: e, launchpads: t } =
|
|
9048
|
+
let { experiences: e, launchpads: t } = qv(n);
|
|
8982
9049
|
n = e, yield A(Kg(t));
|
|
8983
9050
|
}
|
|
8984
9051
|
}
|
|
8985
9052
|
if (r && i) {
|
|
8986
|
-
let { experiences: e, launchpads: t } =
|
|
9053
|
+
let { experiences: e, launchpads: t } = qv(n);
|
|
8987
9054
|
yield A(Kg(t)), n = e;
|
|
8988
9055
|
}
|
|
8989
|
-
r && (yield A(Km())), yield kt(n.map((e) => j(
|
|
9056
|
+
r && (yield A(Km())), yield kt(n.map((e) => j(Kv, e, t)));
|
|
8990
9057
|
}
|
|
8991
|
-
function*
|
|
8992
|
-
let e = yield j(
|
|
9058
|
+
function* Yv() {
|
|
9059
|
+
let e = yield j(Uv);
|
|
8993
9060
|
e && e.stopAll();
|
|
8994
9061
|
}
|
|
8995
|
-
var
|
|
8996
|
-
function*
|
|
8997
|
-
let e = yield j(
|
|
9062
|
+
var Xv = new Set([je.FLOW, je.NPS]);
|
|
9063
|
+
function* Zv() {
|
|
9064
|
+
let e = yield j(Uv);
|
|
8998
9065
|
if (!e) return;
|
|
8999
|
-
let t = (yield j(e.getRunningExperiences) || []).filter((e) =>
|
|
9066
|
+
let t = (yield j(e.getRunningExperiences) || []).filter((e) => Xv.has(e.type));
|
|
9000
9067
|
t.length !== 0 && (yield kt(t.map((t) => j(e.stop, t.id))));
|
|
9001
9068
|
}
|
|
9002
|
-
function*
|
|
9003
|
-
yield (yield j(t.isExperiencePaused, e.id)) ? j(
|
|
9069
|
+
function* Qv(e, t) {
|
|
9070
|
+
yield (yield j(t.isExperiencePaused, e.id)) ? j(Gv, { payload: e.id }) : j(Kv, e, t);
|
|
9004
9071
|
}
|
|
9005
|
-
function*
|
|
9072
|
+
function* $v() {
|
|
9006
9073
|
let e = yield N(si);
|
|
9007
9074
|
if (e.length <= 0) return;
|
|
9008
|
-
let t = yield j(
|
|
9009
|
-
yield kt(e.map((e) => j(
|
|
9075
|
+
let t = yield j(Uv);
|
|
9076
|
+
yield kt(e.map((e) => j(Qv, e, t))), yield A(Kg([]));
|
|
9010
9077
|
}
|
|
9011
|
-
function*
|
|
9012
|
-
let { launchpads: e } =
|
|
9013
|
-
e.length <= 0 || (yield kt(e.map((e) => j(
|
|
9078
|
+
function* ey() {
|
|
9079
|
+
let { launchpads: e } = qv(yield j((yield j(Uv)).getRunningExperiences));
|
|
9080
|
+
e.length <= 0 || (yield kt(e.map((e) => j(Wv, { payload: e.id }))), yield A(Kg(e)));
|
|
9014
9081
|
}
|
|
9015
|
-
function*
|
|
9082
|
+
function* ty() {
|
|
9016
9083
|
if ((yield N(L)).type === w.HOTSPOTS) return;
|
|
9017
|
-
let { launchpads: e } =
|
|
9018
|
-
e.length <= 0 || (yield kt(e.map((e) => j(
|
|
9084
|
+
let { launchpads: e } = qv(yield j((yield j(Uv)).getRunningExperiences));
|
|
9085
|
+
e.length <= 0 || (yield kt(e.map((e) => j(Wv, { payload: e.id }))), yield A(Kg(e)));
|
|
9019
9086
|
}
|
|
9020
|
-
function*
|
|
9087
|
+
function* ny({ payload: e }) {
|
|
9021
9088
|
let { type: t, event: n } = e, r = n.experienceType === je.NPS || n.experienceType === je.FLOW, i = pe.includes(t);
|
|
9022
|
-
r && i && (yield j((yield j(
|
|
9089
|
+
r && i && (yield j((yield j(Uv)).stop, n.experienceId), yield A(qg()), yield A(qm()));
|
|
9023
9090
|
}
|
|
9024
|
-
function*
|
|
9091
|
+
function* ry() {
|
|
9025
9092
|
yield [
|
|
9026
|
-
M(fu, H.INITIALIZE_OPEN_BUILDER,
|
|
9027
|
-
M(X, lc.PAUSE_EXPERIENCE,
|
|
9028
|
-
M(X, lc.RESUME_EXPERIENCE,
|
|
9029
|
-
M(fu, lc.SHOW_EXPERIENCES,
|
|
9030
|
-
M(X, V.START_RESET,
|
|
9031
|
-
M(X, lc.UNHIDE_LAUNCHPADS,
|
|
9032
|
-
M(X, lc.HIDE_LAUNCHPADS,
|
|
9033
|
-
M(X, V.PREPARE_CONTENT,
|
|
9034
|
-
M(X, V.START_OPEN_BUILDER_EVENT,
|
|
9093
|
+
M(fu, H.INITIALIZE_OPEN_BUILDER, Hv),
|
|
9094
|
+
M(X, lc.PAUSE_EXPERIENCE, Wv),
|
|
9095
|
+
M(X, lc.RESUME_EXPERIENCE, Gv),
|
|
9096
|
+
M(fu, lc.SHOW_EXPERIENCES, Jv),
|
|
9097
|
+
M(X, V.START_RESET, Yv),
|
|
9098
|
+
M(X, lc.UNHIDE_LAUNCHPADS, $v),
|
|
9099
|
+
M(X, lc.HIDE_LAUNCHPADS, ey),
|
|
9100
|
+
M(X, V.PREPARE_CONTENT, ty),
|
|
9101
|
+
M(X, V.START_OPEN_BUILDER_EVENT, ny)
|
|
9035
9102
|
];
|
|
9036
9103
|
}
|
|
9037
9104
|
//#endregion
|
|
9038
9105
|
//#region src/scripts/utils/generated-properties.js
|
|
9039
|
-
function
|
|
9106
|
+
function iy() {
|
|
9040
9107
|
try {
|
|
9041
9108
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9042
9109
|
} catch {
|
|
9043
9110
|
return null;
|
|
9044
9111
|
}
|
|
9045
9112
|
}
|
|
9046
|
-
function
|
|
9113
|
+
function ay(e, t, n = {}) {
|
|
9047
9114
|
let r = n;
|
|
9048
9115
|
r = r === null ? {} : r;
|
|
9049
9116
|
let i = e.location.href, a = r._sessionPageviews || 0;
|
|
9050
9117
|
(r._currentPageUrl !== i || t) && (a += 1);
|
|
9051
|
-
let o =
|
|
9118
|
+
let o = $_(e), s = e.navigator, c = s.languages ? s.languages[0] : s.language || s.userLanguage, { referrer: l } = e.document, u = Math.floor(Math.random() * 100);
|
|
9052
9119
|
t ? l ||= r._currentPageUrl : (l = r._currentPageUrl === i ? r._lastPageUrl : r._currentPageUrl, r._sessionRandomizer && (u = r._sessionRandomizer));
|
|
9053
9120
|
let d = {
|
|
9054
9121
|
_hostname: e.location.hostname,
|
|
@@ -9062,22 +9129,22 @@ function $v(e, t, n = {}) {
|
|
|
9062
9129
|
_currentPageUrl: i,
|
|
9063
9130
|
_sessionRandomizer: u,
|
|
9064
9131
|
_sessionPageviews: a,
|
|
9065
|
-
_timezoneCode:
|
|
9132
|
+
_timezoneCode: iy(),
|
|
9066
9133
|
_timezoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset(),
|
|
9067
9134
|
_appId: e.AppcuesBundleSettings?.defaultAppId || null
|
|
9068
9135
|
};
|
|
9069
|
-
return o ? (d._testContentId = o, d._testContentUrl = i,
|
|
9136
|
+
return o ? (d._testContentId = o, d._testContentUrl = i, t_(g, oe, !0)) : r._testContentId && r._testContentUrl && (d._testContentId = r._testContentId, d._testContentUrl = r._testContentUrl), n_("sessionStorage", "apc_followed_test_link") || (d._testContentId = null, d._testContentUrl = null), d;
|
|
9070
9137
|
}
|
|
9071
|
-
function
|
|
9138
|
+
function oy() {
|
|
9072
9139
|
return { _lastSeenAt: Date.now() };
|
|
9073
9140
|
}
|
|
9074
|
-
function
|
|
9141
|
+
function sy(e) {
|
|
9075
9142
|
return Object.keys(e).reduce((t, n) => (S.includes(n) && (t[n] = e[n]), t), {});
|
|
9076
9143
|
}
|
|
9077
9144
|
//#endregion
|
|
9078
9145
|
//#region src/scripts/sagas/common-sagas.js
|
|
9079
9146
|
qa();
|
|
9080
|
-
var
|
|
9147
|
+
var cy = Ri([
|
|
9081
9148
|
Aa,
|
|
9082
9149
|
Da,
|
|
9083
9150
|
ma,
|
|
@@ -9086,20 +9153,20 @@ var ny = Ri([
|
|
|
9086
9153
|
], (0, Za.createApi)({
|
|
9087
9154
|
clean: !0,
|
|
9088
9155
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
9089
|
-
})),
|
|
9156
|
+
})), ly = (e) => {
|
|
9090
9157
|
if (mo(e)) {
|
|
9091
9158
|
if (!ro(e, "autoplay")) return;
|
|
9092
9159
|
let { autoplay: t, ...n } = e.data.attrs;
|
|
9093
9160
|
e.data.attrs = n;
|
|
9094
9161
|
}
|
|
9095
9162
|
};
|
|
9096
|
-
function*
|
|
9163
|
+
function* uy(e) {
|
|
9097
9164
|
let t = [], n, r, i = /* @__PURE__ */ Error("Invalid HTML.");
|
|
9098
9165
|
i.extra = {};
|
|
9099
9166
|
for (let [i, a] of e.entries()) {
|
|
9100
9167
|
r = a;
|
|
9101
9168
|
try {
|
|
9102
|
-
|
|
9169
|
+
cy(document.createElement("div"), (0, Vs.default)(`<div>${r.html}</div>`, { hooks: { create: ly } }));
|
|
9103
9170
|
} catch (e) {
|
|
9104
9171
|
n ||= yield N(I), t.push({
|
|
9105
9172
|
childNumber: i,
|
|
@@ -9108,17 +9175,17 @@ function* iy(e) {
|
|
|
9108
9175
|
});
|
|
9109
9176
|
}
|
|
9110
9177
|
}
|
|
9111
|
-
return t.length === 0 ? !0 : (yield j(
|
|
9178
|
+
return t.length === 0 ? !0 : (yield j(Iv, Object.assign(i, { extra: {
|
|
9112
9179
|
stepId: n,
|
|
9113
9180
|
errors: t
|
|
9114
9181
|
} }), ""), !1);
|
|
9115
9182
|
}
|
|
9116
|
-
function*
|
|
9117
|
-
yield j(
|
|
9183
|
+
function* dy({ payload: { nextContentId: e, campaignId: t = null, tacticId: n = null } }) {
|
|
9184
|
+
yield j(Tv, ne, e, ie), yield j(Tv, te, t, ie), yield j(Tv, y, n, ie);
|
|
9118
9185
|
}
|
|
9119
9186
|
//#endregion
|
|
9120
9187
|
//#region src/scripts/sagas/session-sagas.js
|
|
9121
|
-
var
|
|
9188
|
+
var fy = () => {
|
|
9122
9189
|
let { sessionDuration: e = 30 } = window.AppcuesSettings || {};
|
|
9123
9190
|
return {
|
|
9124
9191
|
id: Rh(),
|
|
@@ -9126,92 +9193,92 @@ var oy = () => {
|
|
|
9126
9193
|
duration: e * 6e4
|
|
9127
9194
|
};
|
|
9128
9195
|
};
|
|
9129
|
-
function*
|
|
9196
|
+
function* py() {
|
|
9130
9197
|
try {
|
|
9131
|
-
let e = yield j(
|
|
9132
|
-
if (!t.id || !t.timestamp) throw yield j(
|
|
9198
|
+
let e = yield j(n_, h, Ne), t = JSON.parse(e);
|
|
9199
|
+
if (!t.id || !t.timestamp) throw yield j(r_, h, Ne), Error("Invalid session");
|
|
9133
9200
|
return t;
|
|
9134
9201
|
} catch {
|
|
9135
9202
|
return {};
|
|
9136
9203
|
}
|
|
9137
9204
|
}
|
|
9138
|
-
function*
|
|
9139
|
-
yield A(
|
|
9205
|
+
function* my() {
|
|
9206
|
+
yield A(D_(fy())), yield A(k_());
|
|
9140
9207
|
}
|
|
9141
|
-
function*
|
|
9208
|
+
function* hy() {
|
|
9142
9209
|
let e = yield N(Zn);
|
|
9143
9210
|
(!e || !e.userId) && (yield k(H.IDENTIFY));
|
|
9144
|
-
let t = yield j(
|
|
9211
|
+
let t = yield j(py);
|
|
9145
9212
|
if (!t.id || t?.id?.includes("NaN")) {
|
|
9146
|
-
yield A(
|
|
9213
|
+
yield A(O_());
|
|
9147
9214
|
return;
|
|
9148
9215
|
}
|
|
9149
|
-
yield A(
|
|
9216
|
+
yield A(D_(t));
|
|
9150
9217
|
}
|
|
9151
|
-
function*
|
|
9218
|
+
function* gy() {
|
|
9152
9219
|
let e = yield N(ir);
|
|
9153
|
-
yield j(
|
|
9220
|
+
yield j(t_, h, Ne, JSON.stringify(e));
|
|
9154
9221
|
}
|
|
9155
|
-
function*
|
|
9222
|
+
function* _y() {
|
|
9156
9223
|
let e = yield N(ir);
|
|
9157
9224
|
return !e.id || Date.now() - e.duration > e.lastEventTimestamp;
|
|
9158
9225
|
}
|
|
9159
|
-
function*
|
|
9160
|
-
return (yield j(
|
|
9226
|
+
function* vy() {
|
|
9227
|
+
return (yield j(_y)) ? (yield A(O_()), yield k(({ type: e }) => e === uc.SESSION_STARTED), gu($u(yield N(ir)))) : null;
|
|
9161
9228
|
}
|
|
9162
|
-
function*
|
|
9229
|
+
function* yy({ payload: e }) {
|
|
9163
9230
|
(yield N(Qn)) || (yield k(H.COMPLETED_IDENTIFY)), (yield N(ir)).id || (yield k(uc.SET_SESSION));
|
|
9164
9231
|
let { userId: t } = e;
|
|
9165
9232
|
if (!t) return;
|
|
9166
|
-
let n = yield N(Zn), r = (n && n.userId && n.userId.toString()) !== t.toString(), i = yield j(
|
|
9167
|
-
(r || i) && (yield A(
|
|
9233
|
+
let n = yield N(Zn), r = (n && n.userId && n.userId.toString()) !== t.toString(), i = yield j(_y);
|
|
9234
|
+
(r || i) && (yield A(O_()));
|
|
9168
9235
|
}
|
|
9169
|
-
function*
|
|
9236
|
+
function* by() {
|
|
9170
9237
|
return yield [
|
|
9171
|
-
M(fu, H.INITIALIZE,
|
|
9172
|
-
M(fu, uc.SET_SESSION,
|
|
9173
|
-
M(fu, uc.START_SESSION,
|
|
9174
|
-
M(X, V.START_IDENTIFY,
|
|
9238
|
+
M(fu, H.INITIALIZE, hy),
|
|
9239
|
+
M(fu, uc.SET_SESSION, gy),
|
|
9240
|
+
M(fu, uc.START_SESSION, my),
|
|
9241
|
+
M(X, V.START_IDENTIFY, yy)
|
|
9175
9242
|
];
|
|
9176
9243
|
}
|
|
9177
9244
|
//#endregion
|
|
9178
9245
|
//#region src/scripts/sagas/sagas.js
|
|
9179
|
-
function*
|
|
9246
|
+
function* xy() {
|
|
9180
9247
|
return yield N(Pr);
|
|
9181
9248
|
}
|
|
9182
|
-
function*
|
|
9249
|
+
function* Sy(e = !1) {
|
|
9183
9250
|
if (yield N(er)) return null;
|
|
9184
|
-
let t = yield j(
|
|
9251
|
+
let t = yield j(n_, g, b);
|
|
9185
9252
|
try {
|
|
9186
9253
|
t = JSON.parse(t);
|
|
9187
9254
|
} catch {
|
|
9188
9255
|
t = null;
|
|
9189
9256
|
}
|
|
9190
|
-
let n = yield j(
|
|
9191
|
-
if (yield j(
|
|
9192
|
-
let e = yield j(
|
|
9257
|
+
let n = yield j(ay, window, e, t);
|
|
9258
|
+
if (yield j(t_, g, b, JSON.stringify(n)), (yield j($_, window)) && window.history && window.location) {
|
|
9259
|
+
let e = yield j(tv, window.location.href, "appcuesTestContentId");
|
|
9193
9260
|
yield j([window.history, window.history.replaceState], window.history.state, "", e), window.location.reload();
|
|
9194
9261
|
}
|
|
9195
|
-
let r = yield j(
|
|
9196
|
-
r || (r = yield j(Rh), yield j(
|
|
9197
|
-
let i = yield N(Jn), a =
|
|
9262
|
+
let r = yield j(n_, h, be);
|
|
9263
|
+
r || (r = yield j(Rh), yield j(t_, h, be, r));
|
|
9264
|
+
let i = yield N(Jn), a = sy({
|
|
9198
9265
|
_localId: r,
|
|
9199
9266
|
_appcuesId: i,
|
|
9200
9267
|
...n
|
|
9201
9268
|
});
|
|
9202
9269
|
return yield A(Vc(a, !0)), a;
|
|
9203
9270
|
}
|
|
9204
|
-
function*
|
|
9205
|
-
yield A(Hc()), yield j(
|
|
9271
|
+
function* Cy() {
|
|
9272
|
+
yield A(Hc()), yield j(r_, g, b), yield j(r_, h, be), yield j(r_, h, ue), yield j(r_, h, v), yield j(Sv, ne), yield j(Sv, te), yield j(Sv, y), yield j(r_, g, ke), yield j(r_, g, xe), yield j(r_, h, Ne), yield j(i_, g, we), yield j(Sy, !0);
|
|
9206
9273
|
}
|
|
9207
|
-
function*
|
|
9274
|
+
function* wy(e) {
|
|
9208
9275
|
let { properties: t, events: n } = e.payload, { _isAnonymous: r } = t, { userId: i } = e.payload, a = yield N(Zn), o = a && a.userId && a.userId.toString(), s = o !== i?.toString();
|
|
9209
|
-
o && s && !r && (yield j(
|
|
9276
|
+
o && s && !r && (yield j(Cy)), yield A(Rc(i)), P.defined(i) && (yield j(t_, h, ue, i)), yield A(Vc({
|
|
9210
9277
|
_doNotTrack: `${window.navigator && window.navigator.doNotTrack}`[0] === "1",
|
|
9211
9278
|
...t
|
|
9212
9279
|
}, !0)), yield A(bc(yield N(Zn), n, !0));
|
|
9213
9280
|
}
|
|
9214
|
-
function*
|
|
9281
|
+
function* Ty() {
|
|
9215
9282
|
let e = yield N(qn);
|
|
9216
9283
|
try {
|
|
9217
9284
|
yield A(Bc(yield j(eg, e)));
|
|
@@ -9219,22 +9286,22 @@ function* yy() {
|
|
|
9219
9286
|
yield A(Bc(e));
|
|
9220
9287
|
}
|
|
9221
9288
|
}
|
|
9222
|
-
var
|
|
9223
|
-
function*
|
|
9224
|
-
let e = yield k(
|
|
9225
|
-
yield M(X,
|
|
9289
|
+
var Ey = (e) => e.type === V.START_IDENTIFY && P.defined(e.payload.userId);
|
|
9290
|
+
function* Dy() {
|
|
9291
|
+
let e = yield k(Ey);
|
|
9292
|
+
yield M(X, Ey, wy), yield j(wy, e), yield A(el());
|
|
9226
9293
|
}
|
|
9227
|
-
function*
|
|
9228
|
-
yield M(
|
|
9294
|
+
function* Oy() {
|
|
9295
|
+
yield M(Ty);
|
|
9229
9296
|
let e = yield k(H.CONFIGURE_TRANSPORT), t = 0;
|
|
9230
|
-
for (; e.error && t < 5;) yield j(Q, 100), yield M(
|
|
9297
|
+
for (; e.error && t < 5;) yield j(Q, 100), yield M(Ty), e = yield k(({ type: e }) => e === H.CONFIGURE_TRANSPORT), t += 1;
|
|
9231
9298
|
}
|
|
9232
|
-
function*
|
|
9299
|
+
function* ky(e) {
|
|
9233
9300
|
yield kt(e.filter((e) => e?.attributes?._builderButtonEvent).map((e) => A(_c(e.id, e))));
|
|
9234
9301
|
}
|
|
9235
|
-
function*
|
|
9302
|
+
function* Ay({ properties: e, events: t, trigger: n, groupId: r = null, groupProperties: i = null }) {
|
|
9236
9303
|
let a = yield N(qn);
|
|
9237
|
-
(yield j($h, a)) || (yield j(
|
|
9304
|
+
(yield j($h, a)) || (yield j(Oy), a = yield N(qn));
|
|
9238
9305
|
let o = yield N(Zn), { id: s } = yield N(ir), c = {
|
|
9239
9306
|
url: window.location.href,
|
|
9240
9307
|
sdk_version: window.AppcuesBundleSettings && window.AppcuesBundleSettings.VERSION
|
|
@@ -9249,26 +9316,26 @@ function* wy({ properties: e, events: t, trigger: n, groupId: r = null, groupPro
|
|
|
9249
9316
|
})), u = t.find((e) => e.name === le.PAGE_VIEW);
|
|
9250
9317
|
try {
|
|
9251
9318
|
let o = yield j(rg, a, e, l, n, r, s, i, c);
|
|
9252
|
-
o && (yield A(zc(o, u)), Tg(o)), yield A(
|
|
9319
|
+
o && (yield A(zc(o, u)), Tg(o)), yield A(D_({ lastEventTimestamp: t[t.length - 1].timestamp })), yield A(cl());
|
|
9253
9320
|
} catch (e) {
|
|
9254
9321
|
yield A(zc(e));
|
|
9255
9322
|
}
|
|
9256
9323
|
}
|
|
9257
|
-
function
|
|
9324
|
+
function jy(e) {
|
|
9258
9325
|
for (let t of e) if (t.name === le.PAGE_VIEW) try {
|
|
9259
9326
|
if (P.string(t.attributes.url) && t.attributes.url.length > 0) return t;
|
|
9260
9327
|
} catch {}
|
|
9261
9328
|
return null;
|
|
9262
9329
|
}
|
|
9263
|
-
function
|
|
9330
|
+
function My(e) {
|
|
9264
9331
|
return Nn(e) && Xd(e.attributes.params.url, window.location.href);
|
|
9265
9332
|
}
|
|
9266
|
-
function*
|
|
9333
|
+
function* Ny(e) {
|
|
9267
9334
|
let t = e, n = null, r = null, i = null, a = null, o = null, s = yield N(Un);
|
|
9268
9335
|
if (t && (!s || s.id !== t && (!s.migrated_from_step_id || s.migrated_from_step_id !== t))) {
|
|
9269
9336
|
if (r = window.location.href, yield A(Pc()), s && P.defined(s.id)) {
|
|
9270
9337
|
let e = Ln(s, yield N(I));
|
|
9271
|
-
e && (yield*
|
|
9338
|
+
e && (yield* Rv(s, e)), yield A(Wp(s.id, Se.SHOWING_OTHER_CONTENT));
|
|
9272
9339
|
}
|
|
9273
9340
|
let e = yield N(lr);
|
|
9274
9341
|
if (e && e[t]) n = e[t];
|
|
@@ -9300,29 +9367,29 @@ function* Dy(e) {
|
|
|
9300
9367
|
experience: o
|
|
9301
9368
|
};
|
|
9302
9369
|
}
|
|
9303
|
-
function
|
|
9370
|
+
function Py(e) {
|
|
9304
9371
|
return Mn(e) && Xd(e.attributes.params.url, window.location.href);
|
|
9305
9372
|
}
|
|
9306
|
-
function
|
|
9373
|
+
function Fy(e, t) {
|
|
9307
9374
|
return !Mn(e) && t === E.STEP_COMPLETED;
|
|
9308
9375
|
}
|
|
9309
|
-
function*
|
|
9310
|
-
let e = JSON.parse(yield j(
|
|
9376
|
+
function* Iy() {
|
|
9377
|
+
let e = JSON.parse(yield j(n_, g, ke));
|
|
9311
9378
|
if (e) {
|
|
9312
9379
|
let t = e, n = yield N(Un), r = n && n.id === e.flowId, i = Ln(n, e.stepId), a = window.location.href;
|
|
9313
9380
|
if (Nn(i)) {
|
|
9314
|
-
if (yield j(
|
|
9381
|
+
if (yield j(My, i)) return yield su(Mv, n, i.id, a, null), !0;
|
|
9315
9382
|
let t = e.remainingPagesToCheck;
|
|
9316
|
-
return t === 1 ? (yield A(Pc()), yield j(
|
|
9383
|
+
return t === 1 ? (yield A(Pc()), yield j(Rv, n, i), yield A(Wp(n.id, Se.CLEAR)), !1) : (yield j(Fv, {
|
|
9317
9384
|
...e,
|
|
9318
9385
|
remainingPagesToCheck: t - 1
|
|
9319
9386
|
}), !0);
|
|
9320
9387
|
}
|
|
9321
|
-
e.fromPermalink || (yield j(
|
|
9388
|
+
e.fromPermalink || (yield j(r_, g, ke));
|
|
9322
9389
|
let o;
|
|
9323
9390
|
if (r) o = n, a = window.location.href;
|
|
9324
9391
|
else {
|
|
9325
|
-
let t = yield j(
|
|
9392
|
+
let t = yield j(Ny, e.flowId);
|
|
9326
9393
|
o = t.content, a = t.shownUrl, o && (yield A(il()));
|
|
9327
9394
|
}
|
|
9328
9395
|
if (o) {
|
|
@@ -9332,39 +9399,39 @@ function* Ay() {
|
|
|
9332
9399
|
campaign_id: n,
|
|
9333
9400
|
tactic_id: i
|
|
9334
9401
|
};
|
|
9335
|
-
let s = Ln(o, e.stepId), c = e.status, l =
|
|
9402
|
+
let s = Ln(o, e.stepId), c = e.status, l = Py(s), u = Nn(s), d = e.navByADTT;
|
|
9336
9403
|
if (l || d || u) {
|
|
9337
9404
|
let n = s, i = c;
|
|
9338
|
-
if (
|
|
9405
|
+
if (Fy(s, c) && (n = In(o, Rn(o, e.stepId) + 1), i = E.STEP_ATTEMPTED), Mn(n) || Nn(n)) {
|
|
9339
9406
|
if (i === E.STEP_COMPLETED && (n = In(o, Rn(o, n.id) + 1), i = null), Nn(n)) {
|
|
9340
9407
|
let { flowId: e, remainingPagesToCheck: r } = t, { page_check_limit: i } = n.attributes.params, a = typeof r == "number" ? r : typeof i == "number" ? i : 2;
|
|
9341
|
-
if (a <= 1) return yield A(Pc()), yield j(
|
|
9408
|
+
if (a <= 1) return yield A(Pc()), yield j(Rv, o, n), yield A(Wp(o.id, Se.CLEAR)), t.fromPermalink || (yield j(r_, g, ke)), !1;
|
|
9342
9409
|
t = {
|
|
9343
9410
|
...t,
|
|
9344
9411
|
flowId: e,
|
|
9345
9412
|
stepId: n.id,
|
|
9346
9413
|
status: E.STEP_ATTEMPTED,
|
|
9347
9414
|
remainingPagesToCheck: a - 1
|
|
9348
|
-
}, yield j(
|
|
9415
|
+
}, yield j(Fv, t);
|
|
9349
9416
|
}
|
|
9350
|
-
r && (yield A(Gp(o.id, s.id)), yield j(
|
|
9417
|
+
r && (yield A(Gp(o.id, s.id)), yield j(Rv, o, s));
|
|
9351
9418
|
let { flowId: e, submissionId: c } = t;
|
|
9352
|
-
return yield j(
|
|
9419
|
+
return yield j(Fv, {
|
|
9353
9420
|
...t,
|
|
9354
9421
|
flowId: e,
|
|
9355
9422
|
submissionId: c
|
|
9356
|
-
}), yield su(
|
|
9423
|
+
}), yield su(Mv, o, n.id, a, i), !0;
|
|
9357
9424
|
}
|
|
9358
9425
|
}
|
|
9359
9426
|
}
|
|
9360
9427
|
}
|
|
9361
9428
|
return !1;
|
|
9362
9429
|
}
|
|
9363
|
-
var
|
|
9364
|
-
function*
|
|
9430
|
+
var Ly = "@appcues/sequential";
|
|
9431
|
+
function* Ry() {
|
|
9365
9432
|
let e;
|
|
9366
9433
|
try {
|
|
9367
|
-
e = JSON.parse(yield j(
|
|
9434
|
+
e = JSON.parse(yield j(n_, g, xe));
|
|
9368
9435
|
} catch {
|
|
9369
9436
|
return !1;
|
|
9370
9437
|
}
|
|
@@ -9373,26 +9440,26 @@ function* My() {
|
|
|
9373
9440
|
if (t && !r) {
|
|
9374
9441
|
if (e.lastCheckedUrl === n) return !0;
|
|
9375
9442
|
let t = (typeof e.remainingPagesToCheck == "number" ? e.remainingPagesToCheck : 2) - 1;
|
|
9376
|
-
return t <= 0 ? (yield j(
|
|
9443
|
+
return t <= 0 ? (yield j(r_, g, xe), !1) : (yield j(t_, g, xe, JSON.stringify({
|
|
9377
9444
|
...e,
|
|
9378
9445
|
remainingPagesToCheck: t,
|
|
9379
9446
|
lastCheckedUrl: n
|
|
9380
9447
|
})), !0);
|
|
9381
9448
|
}
|
|
9382
|
-
let i = yield j(
|
|
9383
|
-
if (!i) return yield j(
|
|
9449
|
+
let i = yield j(Uv);
|
|
9450
|
+
if (!i) return yield j(r_, g, xe), !1;
|
|
9384
9451
|
let a = yield N(qn), o;
|
|
9385
9452
|
try {
|
|
9386
9453
|
o = yield j(og, a, e.experienceId);
|
|
9387
9454
|
} catch {
|
|
9388
|
-
return yield j(
|
|
9455
|
+
return yield j(r_, g, xe), !1;
|
|
9389
9456
|
}
|
|
9390
|
-
if (!o) return yield j(
|
|
9457
|
+
if (!o) return yield j(r_, g, xe), !1;
|
|
9391
9458
|
let { campaignId: s = null, tacticId: c = null } = e ?? {}, l = {
|
|
9392
9459
|
...o,
|
|
9393
9460
|
campaignId: s,
|
|
9394
9461
|
tacticId: c,
|
|
9395
|
-
traits: (o.traits ?? []).map((t) => t.type ===
|
|
9462
|
+
traits: (o.traits ?? []).map((t) => t.type === Ly ? {
|
|
9396
9463
|
...t,
|
|
9397
9464
|
config: {
|
|
9398
9465
|
...t.config,
|
|
@@ -9400,41 +9467,41 @@ function* My() {
|
|
|
9400
9467
|
}
|
|
9401
9468
|
} : t)
|
|
9402
9469
|
};
|
|
9403
|
-
return yield j(
|
|
9470
|
+
return yield j(r_, g, xe), yield j([i, i.show], l), !0;
|
|
9404
9471
|
}
|
|
9405
|
-
function*
|
|
9472
|
+
function* zy() {
|
|
9406
9473
|
yield A(sl(window.location.href, !1));
|
|
9407
9474
|
let e = yield N(Un);
|
|
9408
9475
|
if (e) {
|
|
9409
|
-
let t = JSON.parse(yield j(
|
|
9410
|
-
n &&
|
|
9476
|
+
let t = JSON.parse(yield j(n_, g, ke)), n = t ? Ln(e, t.stepId) : null;
|
|
9477
|
+
n && My(n) && (yield j(Fv, {
|
|
9411
9478
|
...t,
|
|
9412
9479
|
status: E.STEP_SHOWN
|
|
9413
9480
|
}));
|
|
9414
9481
|
}
|
|
9415
|
-
let t = yield j(
|
|
9482
|
+
let t = yield j(Iy), n = yield j(Ry), r = t || n;
|
|
9416
9483
|
if (!t) {
|
|
9417
9484
|
let e;
|
|
9418
|
-
if (yield j(
|
|
9419
|
-
if (e = yield j(
|
|
9420
|
-
let e = yield j(
|
|
9485
|
+
if (yield j(ev, window, "showappcue")) {
|
|
9486
|
+
if (e = yield j(ev, window, "showappcue"), window.history) {
|
|
9487
|
+
let e = yield j(tv, window.location.href, "showappcue");
|
|
9421
9488
|
yield j([window.history, window.history.replaceState], window.history.state, "", e);
|
|
9422
9489
|
}
|
|
9423
|
-
} else (yield j(
|
|
9490
|
+
} else (yield j(ev, window, "appcue")) && (e = yield j(ev, window, "appcue"));
|
|
9424
9491
|
let t, n;
|
|
9425
|
-
if (yield j(
|
|
9426
|
-
let r = yield j(
|
|
9427
|
-
if (yield j(
|
|
9428
|
-
if (e = r, yield j(
|
|
9429
|
-
let e = yield j(
|
|
9492
|
+
if (yield j(Cv, "apc_next_content_id")) {
|
|
9493
|
+
let r = yield j(wv, ne);
|
|
9494
|
+
if (yield j(Sv, ne), !e) {
|
|
9495
|
+
if (e = r, yield j(Cv, "apc_next_campaign_id")) {
|
|
9496
|
+
let e = yield j(wv, te);
|
|
9430
9497
|
t = e === "null" ? null : e;
|
|
9431
9498
|
}
|
|
9432
|
-
if (yield j(
|
|
9433
|
-
let e = yield j(
|
|
9499
|
+
if (yield j(Cv, "apc_next_tactic_id")) {
|
|
9500
|
+
let e = yield j(wv, y);
|
|
9434
9501
|
n = e === "null" ? null : e;
|
|
9435
9502
|
}
|
|
9436
9503
|
}
|
|
9437
|
-
yield j(
|
|
9504
|
+
yield j(Sv, te), yield j(Sv, y);
|
|
9438
9505
|
}
|
|
9439
9506
|
e && (yield A(kc(e, {
|
|
9440
9507
|
...t !== void 0 && { campaignId: t },
|
|
@@ -9443,44 +9510,44 @@ function* Ny() {
|
|
|
9443
9510
|
}
|
|
9444
9511
|
return yield A(sl(window.location.href, !0)), r;
|
|
9445
9512
|
}
|
|
9446
|
-
function*
|
|
9447
|
-
let t = yield N(Un), n = Ln(t, yield N(I)), r =
|
|
9513
|
+
function* By(e) {
|
|
9514
|
+
let t = yield N(Un), n = Ln(t, yield N(I)), r = jy(e);
|
|
9448
9515
|
if (r && r.attributes.url && t !== null) {
|
|
9449
9516
|
let e = yield N(gr);
|
|
9450
|
-
|
|
9517
|
+
tv(r.attributes.url) !== tv(e) && (n && (yield* Rv(t, n)), yield A(Wp(t.id, Se.CLEAR)));
|
|
9451
9518
|
}
|
|
9452
9519
|
}
|
|
9453
|
-
function*
|
|
9520
|
+
function* Vy({ properties: e, events: t, groupProperties: n, groupId: r }) {
|
|
9454
9521
|
let i = e, a = n;
|
|
9455
|
-
if (
|
|
9456
|
-
let e = yield j(
|
|
9522
|
+
if (jy(t)) {
|
|
9523
|
+
let e = yield j(Sy);
|
|
9457
9524
|
if (i = {
|
|
9458
9525
|
...i,
|
|
9459
9526
|
...e
|
|
9460
9527
|
}, r != null && (a = {
|
|
9461
9528
|
...a,
|
|
9462
|
-
...
|
|
9529
|
+
...oy()
|
|
9463
9530
|
}), !Xd((yield N(cr)).url, window.location.href)) {
|
|
9464
9531
|
(yield N(mr)) === T.WILL_CLOSE && (yield k(U.CLOSE_STEP)), yield A(Pc());
|
|
9465
9532
|
let e = yield N(ii);
|
|
9466
|
-
e && e.stopAll(), (yield j(
|
|
9533
|
+
e && e.stopAll(), (yield j(zy)) || (yield j(By, t)), (yield N(Xr)) && (yield kt([j(A_), j(j_)]));
|
|
9467
9534
|
}
|
|
9468
9535
|
}
|
|
9469
9536
|
return [i, a];
|
|
9470
9537
|
}
|
|
9471
|
-
function*
|
|
9472
|
-
(yield j(
|
|
9473
|
-
let a = yield j(
|
|
9538
|
+
function* Hy({ properties: e, events: t, trigger: n, groupId: r, groupProperties: i }) {
|
|
9539
|
+
(yield j(xy)) || (yield k(H.INITIALIZE), yield k(uc.SET_SESSION), yield k(H.CHECKED_FOR_INITIAL_CONTENT));
|
|
9540
|
+
let a = yield j(n_, h, v), [o, s] = yield* Vy({
|
|
9474
9541
|
properties: e,
|
|
9475
9542
|
events: t,
|
|
9476
9543
|
groupProperties: i,
|
|
9477
9544
|
groupId: r ?? a
|
|
9478
|
-
}), c = t, l = yield j(
|
|
9545
|
+
}), c = t, l = yield j(vy);
|
|
9479
9546
|
if (l) {
|
|
9480
9547
|
let e = t[0];
|
|
9481
9548
|
e && (l.timestamp = e.timestamp), c = [l, ...t];
|
|
9482
9549
|
}
|
|
9483
|
-
yield j(
|
|
9550
|
+
yield j(Ay, {
|
|
9484
9551
|
properties: o,
|
|
9485
9552
|
events: c,
|
|
9486
9553
|
trigger: n,
|
|
@@ -9488,7 +9555,7 @@ function* Iy({ properties: e, events: t, trigger: n, groupId: r, groupProperties
|
|
|
9488
9555
|
groupProperties: s
|
|
9489
9556
|
});
|
|
9490
9557
|
}
|
|
9491
|
-
function*
|
|
9558
|
+
function* Uy() {
|
|
9492
9559
|
let e = yield j(Qt.expanding, 10), t = yield Ft([V.START_ACTIVITY, V.START_GROUP_ACTIVITY], e), n = yield N(Zn);
|
|
9493
9560
|
(!n || !n.userId) && (yield k(H.IDENTIFY));
|
|
9494
9561
|
let r = [];
|
|
@@ -9513,53 +9580,53 @@ function* Ly() {
|
|
|
9513
9580
|
});
|
|
9514
9581
|
});
|
|
9515
9582
|
let l = !1, u = !1;
|
|
9516
|
-
if (a = a.filter((e) =>
|
|
9517
|
-
let e = yield M(
|
|
9583
|
+
if (a = a.filter((e) => jy([e]) ? tv(e.attributes.url) !== tv(window.location.href) || l ? !1 : (l = !0, !0) : (u = o, !0)), o = l || u, Object.keys(n).length > 0 || a.length > 0 || Object.keys(c ?? {}).length > 0 || s != null) {
|
|
9584
|
+
let e = yield M(Hy, {
|
|
9518
9585
|
properties: n,
|
|
9519
9586
|
events: a,
|
|
9520
9587
|
trigger: o,
|
|
9521
9588
|
groupId: s,
|
|
9522
9589
|
groupProperties: c
|
|
9523
|
-
}), t = yield M(
|
|
9590
|
+
}), t = yield M(ky, a);
|
|
9524
9591
|
r.push(e, t);
|
|
9525
9592
|
}
|
|
9526
9593
|
}
|
|
9527
9594
|
}
|
|
9528
|
-
function*
|
|
9595
|
+
function* Wy() {
|
|
9529
9596
|
for (;;) {
|
|
9530
9597
|
let e = yield k([H.SENT_ACTIVITY_UPDATE, V.FINISHED_EVENT]);
|
|
9531
9598
|
switch (e.type) {
|
|
9532
9599
|
case H.SENT_ACTIVITY_UPDATE:
|
|
9533
|
-
yield j(
|
|
9600
|
+
yield j(y_);
|
|
9534
9601
|
break;
|
|
9535
9602
|
case V.FINISHED_EVENT: {
|
|
9536
9603
|
let t = e.payload?.event?.experienceId;
|
|
9537
|
-
t && (yield j(
|
|
9604
|
+
t && (yield j(v_, t));
|
|
9538
9605
|
break;
|
|
9539
9606
|
}
|
|
9540
9607
|
default: break;
|
|
9541
9608
|
}
|
|
9542
9609
|
}
|
|
9543
9610
|
}
|
|
9544
|
-
function*
|
|
9611
|
+
function* Gy(e, t) {
|
|
9545
9612
|
let n = yield N(Xn, e);
|
|
9546
9613
|
if (n && n.length > 0) for (let r of n) {
|
|
9547
9614
|
let n = [t];
|
|
9548
9615
|
e === "all" && (n = [t.id, ...n]), yield j([r.context || window, r.callback], ...n);
|
|
9549
9616
|
}
|
|
9550
9617
|
}
|
|
9551
|
-
function*
|
|
9618
|
+
function* Ky({ payload: e }) {
|
|
9552
9619
|
let { flowId: t, event: n } = e;
|
|
9553
|
-
yield Nt(yield su(
|
|
9620
|
+
yield Nt(yield su(Gy, n.id, n), yield su(Gy, "all", n)), yield A(yc(t, n));
|
|
9554
9621
|
}
|
|
9555
|
-
function*
|
|
9622
|
+
function* qy({ payload: e }) {
|
|
9556
9623
|
let t = yield j(am, e.fields);
|
|
9557
9624
|
if (t.result || e.ignoreValidation) {
|
|
9558
9625
|
if (!e.fields.some((e) => e.value)) {
|
|
9559
9626
|
yield j(e.onSuccess);
|
|
9560
9627
|
return;
|
|
9561
9628
|
}
|
|
9562
|
-
let t = yield N(I), n = yield N(br), { submissionId: r } = yield*
|
|
9629
|
+
let t = yield N(I), n = yield N(br), { submissionId: r } = yield* Pv();
|
|
9563
9630
|
yield A(J(Qp(E.STEP_INTERACTED, t, n, {
|
|
9564
9631
|
interactionType: "submit",
|
|
9565
9632
|
interaction: {
|
|
@@ -9587,26 +9654,26 @@ function* Vy({ payload: e }) {
|
|
|
9587
9654
|
Object.keys(i).length > 0 && (yield A(bc(i, [], !1)));
|
|
9588
9655
|
} else yield A(Np(t.errors));
|
|
9589
9656
|
}
|
|
9590
|
-
function*
|
|
9591
|
-
let t = e && typeof e == "object" ? e.contentId : e, n = e && typeof e == "object" && "campaignId" in e, { campaignId: r, tacticId: i } = e && typeof e == "object" ? e : {}, { shownUrl: a, content: o, checklistContent: s, experience: c } = yield j(
|
|
9657
|
+
function* Jy({ payload: e }) {
|
|
9658
|
+
let t = e && typeof e == "object" ? e.contentId : e, n = e && typeof e == "object" && "campaignId" in e, { campaignId: r, tacticId: i } = e && typeof e == "object" ? e : {}, { shownUrl: a, content: o, checklistContent: s, experience: c } = yield j(Ny, t);
|
|
9592
9659
|
if (c) {
|
|
9593
9660
|
let e = n ? {
|
|
9594
9661
|
...c,
|
|
9595
9662
|
campaignId: r ?? null,
|
|
9596
9663
|
tacticId: i ?? null
|
|
9597
9664
|
} : c;
|
|
9598
|
-
|
|
9665
|
+
Xv.has(c.type) && (yield j(Zv)), yield A(Gg([e]));
|
|
9599
9666
|
}
|
|
9600
|
-
if (o && (yield j(
|
|
9667
|
+
if (o && (yield j(jv, n ? {
|
|
9601
9668
|
...o,
|
|
9602
9669
|
campaign_id: r ?? null,
|
|
9603
9670
|
tactic_id: i ?? null
|
|
9604
9671
|
} : o, null, a, null, !1)), s && !(yield N(Gr, T.SHOWING)).map((e) => e.id).includes(s.id)) {
|
|
9605
9672
|
let { userId: e } = yield N(Zn);
|
|
9606
|
-
yield j(
|
|
9673
|
+
yield j(r_, g, `${we}${s.id}`), yield A(mc(e, { _showChecklist: s.id }));
|
|
9607
9674
|
}
|
|
9608
9675
|
}
|
|
9609
|
-
function*
|
|
9676
|
+
function* Yy() {
|
|
9610
9677
|
let e = yield N(mr);
|
|
9611
9678
|
if (P.inArray([T.READY, T.WILL_SHOW], e)) {
|
|
9612
9679
|
if (e !== T.WILL_SHOW && (yield k(H.WILL_SHOW_CONTENT)).error) return;
|
|
@@ -9615,20 +9682,20 @@ function* Uy() {
|
|
|
9615
9682
|
yield A(J($(E.STEP_REVEALED, t)));
|
|
9616
9683
|
}
|
|
9617
9684
|
}
|
|
9618
|
-
function*
|
|
9685
|
+
function* Xy() {
|
|
9619
9686
|
let e = yield At({
|
|
9620
9687
|
cancel: k(V.CANCEL_ATTEMPTS),
|
|
9621
|
-
result: j(
|
|
9688
|
+
result: j(Yy)
|
|
9622
9689
|
}), t = yield N(mr);
|
|
9623
9690
|
if (e.cancel && t === T.WILL_SHOW) {
|
|
9624
9691
|
let e = yield N(Un);
|
|
9625
9692
|
if (e && P.defined(e.id)) {
|
|
9626
9693
|
let t = Ln(e, yield N(I));
|
|
9627
|
-
t && (yield*
|
|
9694
|
+
t && (yield* Rv(e, t)), yield A(Wp(e.id, Se.SHOWING_OTHER_CONTENT));
|
|
9628
9695
|
}
|
|
9629
9696
|
}
|
|
9630
9697
|
}
|
|
9631
|
-
function*
|
|
9698
|
+
function* Zy() {
|
|
9632
9699
|
if (yield N(Hn)) {
|
|
9633
9700
|
(yield N(L)).type !== w.HOTSPOTS && (yield A(Km()), yield A(Jg()));
|
|
9634
9701
|
let e = yield N(_r), t = yield N(fr);
|
|
@@ -9644,13 +9711,13 @@ function* Gy() {
|
|
|
9644
9711
|
yield A(Tc());
|
|
9645
9712
|
}
|
|
9646
9713
|
}
|
|
9647
|
-
function*
|
|
9714
|
+
function* Qy() {
|
|
9648
9715
|
let e = yield N(Zn), { _localId: t } = e;
|
|
9649
9716
|
t || (yield k(({ type: e, payload: t }) => e === H.UPDATE_USER && P.defined(t.profile._localId)), e = yield N(Zn));
|
|
9650
9717
|
let { _localId: n } = e;
|
|
9651
9718
|
yield A(mc(`anon:${n}`, { _isAnonymous: !0 }, [hu(le.PAGE_VIEW, { url: window.location.href })]));
|
|
9652
9719
|
}
|
|
9653
|
-
function*
|
|
9720
|
+
function* $y({ payload: e }) {
|
|
9654
9721
|
let t = yield N(Qn), n = yield N(er);
|
|
9655
9722
|
t || (yield k(H.COMPLETED_IDENTIFY));
|
|
9656
9723
|
let r = yield N(Zn), { _appcuesId: i } = r;
|
|
@@ -9660,30 +9727,30 @@ function* qy({ payload: e }) {
|
|
|
9660
9727
|
} catch {}
|
|
9661
9728
|
yield j(e, r);
|
|
9662
9729
|
}
|
|
9663
|
-
function*
|
|
9730
|
+
function* eb({ payload: e }) {
|
|
9664
9731
|
let t = yield N(or, e);
|
|
9665
9732
|
t && t.length > 0 && (yield A(nl(e)), yield t.map((e) => Pt(e)));
|
|
9666
9733
|
}
|
|
9667
|
-
function
|
|
9734
|
+
function tb(e) {
|
|
9668
9735
|
return e === null || e === T.ERROR;
|
|
9669
9736
|
}
|
|
9670
|
-
function
|
|
9737
|
+
function nb(e, t) {
|
|
9671
9738
|
return !!(e && t);
|
|
9672
9739
|
}
|
|
9673
|
-
function*
|
|
9740
|
+
function* rb() {
|
|
9674
9741
|
let e = yield N(Un), t = Ln(e, yield N(I));
|
|
9675
|
-
yield A(Pc()), yield j(
|
|
9742
|
+
yield A(Pc()), yield j(Rv, e, t), yield A(Wp(e.id, Se.CLEAR));
|
|
9676
9743
|
}
|
|
9677
|
-
function*
|
|
9744
|
+
function* ib(e) {
|
|
9678
9745
|
let { currentUrl: t, shouldOverrideCurrentFlow: n, requestId: r } = e.payload, i = yield N(ur), a = yield N(mr), o = yield N(Hn);
|
|
9679
|
-
if (!(!i || i.length === 0) && (
|
|
9746
|
+
if (!(!i || i.length === 0) && (tb(a) || nb(a, n))) {
|
|
9680
9747
|
let e = !0, s = yield N(lr);
|
|
9681
9748
|
for (let c of i) {
|
|
9682
9749
|
let i = s[c];
|
|
9683
9750
|
if (o === i.id) return;
|
|
9684
9751
|
let l = yield j(rd, i.id, td.FLOWS);
|
|
9685
|
-
if (l && (yield A(hl(i.id, td.FLOWS))), a && n && (yield j(
|
|
9686
|
-
if (yield j(
|
|
9752
|
+
if (l && (yield A(hl(i.id, td.FLOWS))), a && n && (yield j(rb)), !l) {
|
|
9753
|
+
if (yield j(jv, i, null, t, r)) {
|
|
9687
9754
|
e && (yield j(Dg, r));
|
|
9688
9755
|
return;
|
|
9689
9756
|
}
|
|
@@ -9692,7 +9759,7 @@ function* Qy(e) {
|
|
|
9692
9759
|
}
|
|
9693
9760
|
}
|
|
9694
9761
|
}
|
|
9695
|
-
function*
|
|
9762
|
+
function* ab(e, t, n, r) {
|
|
9696
9763
|
let i = yield N(qn), a = e.getEntriesByType("resource").filter((e) => e.name.match(/fast\.appcues\./)).map((e) => e.toJSON());
|
|
9697
9764
|
yield j(ig, i, {
|
|
9698
9765
|
api_request_start: Math.round(n - t),
|
|
@@ -9701,7 +9768,7 @@ function* $y(e, t, n, r) {
|
|
|
9701
9768
|
sdk_version: window.AppcuesBundleSettings.VERSION
|
|
9702
9769
|
});
|
|
9703
9770
|
}
|
|
9704
|
-
function*
|
|
9771
|
+
function* ob() {
|
|
9705
9772
|
try {
|
|
9706
9773
|
yield k(uc.SET_SESSION);
|
|
9707
9774
|
let e = window.performance, t = (yield N(ir)).timestamp % 100 == 0;
|
|
@@ -9728,93 +9795,93 @@ function* eb() {
|
|
|
9728
9795
|
time_to_show: Math.round(e.now() - n),
|
|
9729
9796
|
content_type: l,
|
|
9730
9797
|
sdk_version: window.AppcuesBundleSettings.VERSION
|
|
9731
|
-
}), t || (yield*
|
|
9732
|
-
})), t && (yield*
|
|
9798
|
+
}), t || (yield* ab(e, n, i, o));
|
|
9799
|
+
})), t && (yield* ab(e, n, i, o));
|
|
9733
9800
|
}
|
|
9734
9801
|
} catch {}
|
|
9735
9802
|
}
|
|
9736
|
-
function*
|
|
9737
|
-
let e = JSON.parse(yield j(
|
|
9803
|
+
function* sb() {
|
|
9804
|
+
let e = JSON.parse(yield j(n_, g, me));
|
|
9738
9805
|
if (e) {
|
|
9739
9806
|
let { checklistId: t, itemId: n, actionIndex: r, checklist: i } = e;
|
|
9740
|
-
yield j(
|
|
9807
|
+
yield j(r_, g, me), yield A(rh(t, n, r + 1, i));
|
|
9741
9808
|
}
|
|
9742
9809
|
return !1;
|
|
9743
9810
|
}
|
|
9744
|
-
function*
|
|
9811
|
+
function* cb() {
|
|
9745
9812
|
let e = yield k(V.START_INITIALIZE);
|
|
9746
|
-
if (!(yield j(
|
|
9747
|
-
let t = yield j(
|
|
9813
|
+
if (!(yield j(xy))) {
|
|
9814
|
+
let t = yield j(n_, h, ue);
|
|
9748
9815
|
t !== null && (yield A(mc(t, {}, [hu(le.PAGE_VIEW, { url: window.location.href })])));
|
|
9749
9816
|
let n = yield j(Qh, e.payload.dispatchMessage.onMessage, e.payload.dispatchMessage.onTimeout, e.payload.transportModule);
|
|
9750
|
-
yield j(
|
|
9817
|
+
yield j(Sy, !0), yield A(Lc({
|
|
9751
9818
|
type: n.type,
|
|
9752
9819
|
module: e.payload.transportModule,
|
|
9753
9820
|
details: n.details
|
|
9754
|
-
})), yield j(
|
|
9821
|
+
})), yield j(zy), yield j(sb);
|
|
9755
9822
|
}
|
|
9756
9823
|
}
|
|
9757
|
-
function*
|
|
9824
|
+
function* lb({ payload: { groupId: e, groupProperties: t } }) {
|
|
9758
9825
|
let n = {
|
|
9759
9826
|
...t,
|
|
9760
|
-
...
|
|
9827
|
+
...oy()
|
|
9761
9828
|
};
|
|
9762
|
-
yield A(xc(e, n)), yield j(
|
|
9829
|
+
yield A(xc(e, n)), yield j(t_, h, v, e), yield A(gl({
|
|
9763
9830
|
groupId: e,
|
|
9764
9831
|
groupProps: n
|
|
9765
9832
|
}));
|
|
9766
9833
|
}
|
|
9767
|
-
function*
|
|
9834
|
+
function* ub({ payload: e }) {
|
|
9768
9835
|
let t = yield N(lr);
|
|
9769
9836
|
if (Object.prototype.hasOwnProperty.call(t, e)) return;
|
|
9770
9837
|
let n = yield j(ag, yield N(qn), e);
|
|
9771
9838
|
yield A(Uc([e], { [e]: n }));
|
|
9772
9839
|
}
|
|
9773
|
-
function*
|
|
9840
|
+
function* db() {
|
|
9774
9841
|
yield [
|
|
9775
|
-
su(
|
|
9776
|
-
su(
|
|
9777
|
-
su(
|
|
9778
|
-
M(X, V.START_EVENT,
|
|
9779
|
-
M(
|
|
9780
|
-
M(
|
|
9781
|
-
M(X, V.START_ANONYMOUS,
|
|
9782
|
-
M(X, V.START_FORM_SUBMISSION,
|
|
9783
|
-
M(fu, V.START_SHOW,
|
|
9784
|
-
M(fu, U.LOADED_CSS,
|
|
9785
|
-
M(X, V.PREPARE_CONTENT,
|
|
9786
|
-
M(X, V.START_RESET,
|
|
9787
|
-
M(X, H.WAIT_IDENTIFY,
|
|
9788
|
-
M(X, V.STOP_TASKS,
|
|
9789
|
-
M(fu, V.START_CHECK,
|
|
9790
|
-
M(X, U.SET_NEXT_CONTENT_ID_COOKIE,
|
|
9791
|
-
M(X, V.START_IDENTIFY_GROUP,
|
|
9792
|
-
M(X, H.PREFETCH_FLOWS,
|
|
9842
|
+
su(cb),
|
|
9843
|
+
su(Dy),
|
|
9844
|
+
su(ob),
|
|
9845
|
+
M(X, V.START_EVENT, Ky),
|
|
9846
|
+
M(Uy),
|
|
9847
|
+
M(Wy),
|
|
9848
|
+
M(X, V.START_ANONYMOUS, Qy),
|
|
9849
|
+
M(X, V.START_FORM_SUBMISSION, qy),
|
|
9850
|
+
M(fu, V.START_SHOW, Jy),
|
|
9851
|
+
M(fu, U.LOADED_CSS, Xy),
|
|
9852
|
+
M(X, V.PREPARE_CONTENT, Zy),
|
|
9853
|
+
M(X, V.START_RESET, Cy),
|
|
9854
|
+
M(X, H.WAIT_IDENTIFY, $y),
|
|
9855
|
+
M(X, V.STOP_TASKS, eb),
|
|
9856
|
+
M(fu, V.START_CHECK, ib),
|
|
9857
|
+
M(X, U.SET_NEXT_CONTENT_ID_COOKIE, dy),
|
|
9858
|
+
M(X, V.START_IDENTIFY_GROUP, lb),
|
|
9859
|
+
M(X, H.PREFETCH_FLOWS, ub)
|
|
9793
9860
|
];
|
|
9794
9861
|
}
|
|
9795
9862
|
//#endregion
|
|
9796
9863
|
//#region src/scripts/custom-events/listeners/get-matching-events.js
|
|
9797
|
-
function
|
|
9864
|
+
function fb(e, t) {
|
|
9798
9865
|
return e.innerText == null ? !1 : t ? e.innerText.replace(/\r\n|\r|\n/g, " ").toLowerCase().trim() === t.toLowerCase().trim() : !0;
|
|
9799
9866
|
}
|
|
9800
|
-
function
|
|
9867
|
+
function pb(e, t) {
|
|
9801
9868
|
return Object.prototype.hasOwnProperty.call(t, "order_filter") ? e === Eo(t) : !0;
|
|
9802
9869
|
}
|
|
9803
|
-
function
|
|
9870
|
+
function mb(e, t) {
|
|
9804
9871
|
try {
|
|
9805
9872
|
return !e.includes("|shadow-root|") && !e.includes("|iframe|") && (t.matches ? t.matches(e) : t.msMatchesSelector(e)) ? t : Sn($a(e), (e) => e.contains(t));
|
|
9806
9873
|
} catch {
|
|
9807
9874
|
return null;
|
|
9808
9875
|
}
|
|
9809
9876
|
}
|
|
9810
|
-
function
|
|
9877
|
+
function hb({ events: e, $element: t, eventType: n }) {
|
|
9811
9878
|
return e.map((e) => {
|
|
9812
9879
|
let { targets: r } = e;
|
|
9813
9880
|
for (let i of r) {
|
|
9814
9881
|
let { event: r, selector: a } = i;
|
|
9815
9882
|
if (r === n) {
|
|
9816
|
-
let { selector: n, text_filter: r } = a, o =
|
|
9817
|
-
if (o &&
|
|
9883
|
+
let { selector: n, text_filter: r } = a, o = mb(n, t);
|
|
9884
|
+
if (o && fb(o, r) && pb(o, a)) return [
|
|
9818
9885
|
e,
|
|
9819
9886
|
o,
|
|
9820
9887
|
i
|
|
@@ -9824,11 +9891,11 @@ function lb({ events: e, $element: t, eventType: n }) {
|
|
|
9824
9891
|
return null;
|
|
9825
9892
|
}).filter((e) => e);
|
|
9826
9893
|
}
|
|
9827
|
-
function
|
|
9894
|
+
function gb({ events: e, matchSelector: t }) {
|
|
9828
9895
|
try {
|
|
9829
9896
|
return e.flatMap((e) => e.targets).filter(({ selector: e }) => t(e.selector)).flatMap(({ selector: e }) => {
|
|
9830
9897
|
let { selector: t, text_filter: n } = e;
|
|
9831
|
-
return $a(t).filter((t) =>
|
|
9898
|
+
return $a(t).filter((t) => fb(t, n) && pb(t, e));
|
|
9832
9899
|
});
|
|
9833
9900
|
} catch {
|
|
9834
9901
|
return [];
|
|
@@ -9836,14 +9903,14 @@ function ub({ events: e, matchSelector: t }) {
|
|
|
9836
9903
|
}
|
|
9837
9904
|
//#endregion
|
|
9838
9905
|
//#region src/scripts/custom-events/listeners/get-composed-path.js
|
|
9839
|
-
function
|
|
9906
|
+
function _b(e) {
|
|
9840
9907
|
return e.composedPath ? e.composedPath() : [e.target];
|
|
9841
9908
|
}
|
|
9842
9909
|
//#endregion
|
|
9843
9910
|
//#region src/scripts/custom-events/listeners/click.js
|
|
9844
|
-
function
|
|
9911
|
+
function vb({ events: e, onEventsTriggered: t, stopPropagation: n }) {
|
|
9845
9912
|
let r = e.filter(({ targets: e }) => e.some(({ event: e }) => e === "click")), i = (e) => {
|
|
9846
|
-
let [i] =
|
|
9913
|
+
let [i] = _b(e), a = hb({
|
|
9847
9914
|
events: r,
|
|
9848
9915
|
$element: i,
|
|
9849
9916
|
eventType: "click"
|
|
@@ -9856,7 +9923,7 @@ function fb({ events: e, onEventsTriggered: t, stopPropagation: n }) {
|
|
|
9856
9923
|
(e.key === " " || e.key === "Enter") && i(e);
|
|
9857
9924
|
};
|
|
9858
9925
|
try {
|
|
9859
|
-
let e =
|
|
9926
|
+
let e = gb({
|
|
9860
9927
|
events: r,
|
|
9861
9928
|
matchSelector: (e) => e.includes("|iframe|")
|
|
9862
9929
|
});
|
|
@@ -9873,14 +9940,14 @@ function fb({ events: e, onEventsTriggered: t, stopPropagation: n }) {
|
|
|
9873
9940
|
}
|
|
9874
9941
|
//#endregion
|
|
9875
9942
|
//#region src/scripts/custom-events/listeners/input.js
|
|
9876
|
-
var
|
|
9877
|
-
function
|
|
9943
|
+
var yb = (e, t) => e.includes(t);
|
|
9944
|
+
function bb({ events: e, onEventsTriggered: t }) {
|
|
9878
9945
|
let n = e.filter(({ targets: e }) => e.some(({ event: e }) => e === "input")), r = [], i = (e) => {
|
|
9879
|
-
let [i] =
|
|
9946
|
+
let [i] = _b(e), a = hb({
|
|
9880
9947
|
events: n,
|
|
9881
9948
|
$element: i,
|
|
9882
9949
|
eventType: "input"
|
|
9883
|
-
}).filter(([e]) => !
|
|
9950
|
+
}).filter(([e]) => !yb(r, e));
|
|
9884
9951
|
r = [...r, ...a.map(([e]) => e)], t(a.map(([e, , t]) => ({
|
|
9885
9952
|
...e,
|
|
9886
9953
|
matchedTarget: t
|
|
@@ -9889,7 +9956,7 @@ function mb({ events: e, onEventsTriggered: t }) {
|
|
|
9889
9956
|
r = [];
|
|
9890
9957
|
};
|
|
9891
9958
|
try {
|
|
9892
|
-
let e =
|
|
9959
|
+
let e = gb({
|
|
9893
9960
|
events: n,
|
|
9894
9961
|
matchSelector: (e) => e.includes("|iframe|")
|
|
9895
9962
|
});
|
|
@@ -9906,13 +9973,13 @@ function mb({ events: e, onEventsTriggered: t }) {
|
|
|
9906
9973
|
}
|
|
9907
9974
|
//#endregion
|
|
9908
9975
|
//#region src/scripts/custom-events/listeners/hover.js
|
|
9909
|
-
function
|
|
9976
|
+
function xb(e, t) {
|
|
9910
9977
|
let n, r = document.createNodeIterator(e, NodeFilter.SHOW_ELEMENT, (e) => e.shadowRoot && e.nodeName !== "APPCUES-EXPERIENCE-CONTAINER" && e.nodeName !== "APPCUES-EXPERIENCE-CONTAINER-BUILDER" && e.nodeName !== "APPCUES-BUILDER" ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT);
|
|
9911
9978
|
for (; (n = r.nextNode()) !== null;) t(n.shadowRoot);
|
|
9912
9979
|
}
|
|
9913
|
-
function
|
|
9980
|
+
function Sb({ events: e, onEventsTriggered: t }) {
|
|
9914
9981
|
let n = e.filter(({ targets: e }) => e.some(({ event: e }) => e === "hover")), r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
9915
|
-
let [i] =
|
|
9982
|
+
let [i] = _b(e), a = hb({
|
|
9916
9983
|
events: n,
|
|
9917
9984
|
$element: i,
|
|
9918
9985
|
eventType: "hover"
|
|
@@ -9929,7 +9996,7 @@ function gb({ events: e, onEventsTriggered: t }) {
|
|
|
9929
9996
|
let i = window.setTimeout(() => {
|
|
9930
9997
|
t(e);
|
|
9931
9998
|
}, 500), a = (e) => {
|
|
9932
|
-
let [t] =
|
|
9999
|
+
let [t] = _b(e);
|
|
9933
10000
|
t === n && (window.clearTimeout(i), r.delete(n), n.removeEventListener("mouseleave", a));
|
|
9934
10001
|
};
|
|
9935
10002
|
n.addEventListener("mouseleave", a);
|
|
@@ -9937,16 +10004,16 @@ function gb({ events: e, onEventsTriggered: t }) {
|
|
|
9937
10004
|
};
|
|
9938
10005
|
if (n.length > 0) try {
|
|
9939
10006
|
document.addEventListener("mouseover", i);
|
|
9940
|
-
let e =
|
|
10007
|
+
let e = gb({
|
|
9941
10008
|
events: n,
|
|
9942
10009
|
matchSelector: (e) => e.includes("|iframe|")
|
|
9943
10010
|
});
|
|
9944
10011
|
return e.forEach((e) => {
|
|
9945
10012
|
e.addEventListener("mouseover", i);
|
|
9946
|
-
}),
|
|
10013
|
+
}), xb(document.body, (e) => e.addEventListener("mouseover", i)), () => {
|
|
9947
10014
|
document.removeEventListener("mouseover", i), e.forEach((e) => {
|
|
9948
10015
|
e.removeEventListener("mouseover", i);
|
|
9949
|
-
}),
|
|
10016
|
+
}), xb(document.body, (e) => e.removeEventListener("mouseover", i));
|
|
9950
10017
|
};
|
|
9951
10018
|
} catch {
|
|
9952
10019
|
return null;
|
|
@@ -9955,10 +10022,10 @@ function gb({ events: e, onEventsTriggered: t }) {
|
|
|
9955
10022
|
}
|
|
9956
10023
|
//#endregion
|
|
9957
10024
|
//#region src/scripts/custom-events/transform-custom-event.js
|
|
9958
|
-
var
|
|
9959
|
-
function
|
|
10025
|
+
var Cb = "appcues/click-to-track";
|
|
10026
|
+
function wb({ name: e, timestamp: t, attributes: { url: n, interaction: r, selector: i } }) {
|
|
9960
10027
|
return {
|
|
9961
|
-
source:
|
|
10028
|
+
source: Cb,
|
|
9962
10029
|
id: e,
|
|
9963
10030
|
name: e,
|
|
9964
10031
|
timestamp: t,
|
|
@@ -9972,17 +10039,17 @@ function vb({ name: e, timestamp: t, attributes: { url: n, interaction: r, selec
|
|
|
9972
10039
|
}
|
|
9973
10040
|
//#endregion
|
|
9974
10041
|
//#region src/scripts/custom-events/saga.js
|
|
9975
|
-
var
|
|
9976
|
-
function*
|
|
10042
|
+
var Tb = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
10043
|
+
function* Eb(e = [], t = !1) {
|
|
9977
10044
|
let n = Zd(), r = e.filter(({ urls: e }) => e.some((e) => e === "*" || Xd(e, n))), i = hn((e) => {
|
|
9978
|
-
let n =
|
|
10045
|
+
let n = vb({
|
|
9979
10046
|
events: r,
|
|
9980
10047
|
onEventsTriggered: e,
|
|
9981
10048
|
stopPropagation: t
|
|
9982
|
-
}), i =
|
|
10049
|
+
}), i = bb({
|
|
9983
10050
|
events: r,
|
|
9984
10051
|
onEventsTriggered: e
|
|
9985
|
-
}), a =
|
|
10052
|
+
}), a = Sb({
|
|
9986
10053
|
events: r,
|
|
9987
10054
|
onEventsTriggered: e
|
|
9988
10055
|
});
|
|
@@ -9993,15 +10060,15 @@ function* bb(e = [], t = !1) {
|
|
|
9993
10060
|
try {
|
|
9994
10061
|
for (;;) {
|
|
9995
10062
|
let e = yield k(i);
|
|
9996
|
-
e.length > 0 && (yield A(
|
|
10063
|
+
e.length > 0 && (yield A(E_(e.map(({ name: e, targets: t, matchedTarget: r }) => {
|
|
9997
10064
|
let { event: i, selector: a } = r ?? t[0];
|
|
9998
10065
|
return hu(e, {
|
|
9999
10066
|
url: n,
|
|
10000
10067
|
interaction: i,
|
|
10001
10068
|
selector: {
|
|
10002
10069
|
css: a.selector,
|
|
10003
|
-
...
|
|
10004
|
-
...
|
|
10070
|
+
...Tb(a, "text_filter") ? { textFilter: a.text_filter } : {},
|
|
10071
|
+
...Tb(a, "order_filter") ? { orderFilter: a.order_filter } : {}
|
|
10005
10072
|
}
|
|
10006
10073
|
});
|
|
10007
10074
|
}))));
|
|
@@ -10010,26 +10077,26 @@ function* bb(e = [], t = !1) {
|
|
|
10010
10077
|
(yield It()) && i.close();
|
|
10011
10078
|
}
|
|
10012
10079
|
}
|
|
10013
|
-
function*
|
|
10080
|
+
function* Db(e = []) {
|
|
10014
10081
|
let [t, n] = yield [M(function* () {
|
|
10015
10082
|
try {
|
|
10016
10083
|
if (!e || e.length === 0) return;
|
|
10017
10084
|
for (;;) {
|
|
10018
|
-
let t = yield M(
|
|
10085
|
+
let t = yield M(Eb, e);
|
|
10019
10086
|
yield k(({ type: e, payload: t }) => e === V.START_ACTIVITY && t.events.some((e) => e.name === le.PAGE_VIEW)), yield Pt(t);
|
|
10020
10087
|
}
|
|
10021
10088
|
} catch (e) {
|
|
10022
10089
|
console.log("Appcues: caught error listening for custom events", e);
|
|
10023
10090
|
}
|
|
10024
|
-
}), M(vn,
|
|
10091
|
+
}), M(vn, T_, function* ({ payload: e }) {
|
|
10025
10092
|
try {
|
|
10026
|
-
(yield j(
|
|
10093
|
+
(yield j(xy)) || (yield k(H.INITIALIZE)), yield j(Ay, {
|
|
10027
10094
|
properties: {},
|
|
10028
10095
|
events: e,
|
|
10029
10096
|
trigger: !0,
|
|
10030
|
-
groupId: (yield j(
|
|
10097
|
+
groupId: (yield j(n_, "localStorage", "apc_group_id")) ?? null
|
|
10031
10098
|
}), (yield N(tr)) && (yield e.map((e) => {
|
|
10032
|
-
let t =
|
|
10099
|
+
let t = wb({
|
|
10033
10100
|
...e,
|
|
10034
10101
|
name: e.name.replace("appcues_custom:", "")
|
|
10035
10102
|
});
|
|
@@ -10043,26 +10110,26 @@ function* xb(e = []) {
|
|
|
10043
10110
|
}
|
|
10044
10111
|
//#endregion
|
|
10045
10112
|
//#region src/scripts/integrations/integration-helpers.js
|
|
10046
|
-
function
|
|
10113
|
+
function Ob({ attributes: e }) {
|
|
10047
10114
|
return e ? !!e._builderButtonEvent : !1;
|
|
10048
10115
|
}
|
|
10049
|
-
function
|
|
10050
|
-
let t =
|
|
10116
|
+
function kb(e) {
|
|
10117
|
+
let t = Ob(e), n = ee.some((t) => e?.id?.startsWith(t)), r = e?.source === Cb;
|
|
10051
10118
|
return !t && !n && !r;
|
|
10052
10119
|
}
|
|
10053
|
-
function
|
|
10120
|
+
function Ab(e) {
|
|
10054
10121
|
return `${e.name} (Appcues)`;
|
|
10055
10122
|
}
|
|
10056
|
-
function
|
|
10123
|
+
function jb(e, t) {
|
|
10057
10124
|
return {
|
|
10058
10125
|
...e,
|
|
10059
10126
|
user: t
|
|
10060
10127
|
};
|
|
10061
10128
|
}
|
|
10062
|
-
function
|
|
10129
|
+
function Mb(e, t, n, r, i) {
|
|
10063
10130
|
e(t, "event", n, r, i, { nonInteraction: !0 });
|
|
10064
10131
|
}
|
|
10065
|
-
function
|
|
10132
|
+
function Nb(e, t = {}) {
|
|
10066
10133
|
switch (e) {
|
|
10067
10134
|
case "Form Field Submitted (Appcues)": {
|
|
10068
10135
|
let { user: e, interaction: n, interaction: { category: r, destination: i, formId: a, fieldId: o, label: s, value: c } = {}, ...l } = t;
|
|
@@ -10079,7 +10146,7 @@ function Db(e, t = {}) {
|
|
|
10079
10146
|
default: return t;
|
|
10080
10147
|
}
|
|
10081
10148
|
}
|
|
10082
|
-
function
|
|
10149
|
+
function Pb(e) {
|
|
10083
10150
|
if (!e.user) return e;
|
|
10084
10151
|
let t = Object.entries(e.user).reduce((e, [t, n]) => {
|
|
10085
10152
|
if (t.startsWith("_")) {
|
|
@@ -10093,7 +10160,7 @@ function Ob(e) {
|
|
|
10093
10160
|
user: t
|
|
10094
10161
|
};
|
|
10095
10162
|
}
|
|
10096
|
-
var
|
|
10163
|
+
var Fb = (e) => {
|
|
10097
10164
|
let t = new Set([
|
|
10098
10165
|
"string",
|
|
10099
10166
|
"boolean",
|
|
@@ -10101,10 +10168,10 @@ var kb = (e) => {
|
|
|
10101
10168
|
]);
|
|
10102
10169
|
return Array.isArray(e) ? e.every((e) => t.has(typeof e)) : t.has(typeof e);
|
|
10103
10170
|
};
|
|
10104
|
-
function
|
|
10105
|
-
let { user: t, ...n } = e, r = Object.entries(n).reduce((e, [t, n]) => (
|
|
10171
|
+
function Ib(e) {
|
|
10172
|
+
let { user: t, ...n } = e, r = Object.entries(n).reduce((e, [t, n]) => (Fb(n) && (e[t] = n), e), {});
|
|
10106
10173
|
if (!t) return r;
|
|
10107
|
-
let i = Object.entries(t).reduce((e, [t, n]) => (
|
|
10174
|
+
let i = Object.entries(t).reduce((e, [t, n]) => (Fb(n) && (e[`user.${t}`] = n), e), {});
|
|
10108
10175
|
return {
|
|
10109
10176
|
...r,
|
|
10110
10177
|
...i
|
|
@@ -10112,13 +10179,13 @@ function Ab(e) {
|
|
|
10112
10179
|
}
|
|
10113
10180
|
//#endregion
|
|
10114
10181
|
//#region src/scripts/integrations/integration-methods.js
|
|
10115
|
-
function
|
|
10182
|
+
function Lb(e, t) {
|
|
10116
10183
|
let { settings: n } = t(), r = (n) => () => {
|
|
10117
10184
|
e.on("all", (e, r) => {
|
|
10118
|
-
if (
|
|
10119
|
-
let i =
|
|
10185
|
+
if (kb(r)) return;
|
|
10186
|
+
let i = Ab(r), a = Ob(r) ? r.name : e;
|
|
10120
10187
|
try {
|
|
10121
|
-
a && i && n(a, i,
|
|
10188
|
+
a && i && n(a, i, jb(r, t().user));
|
|
10122
10189
|
} catch {}
|
|
10123
10190
|
});
|
|
10124
10191
|
};
|
|
@@ -10127,7 +10194,7 @@ function jb(e, t) {
|
|
|
10127
10194
|
window.mixpanel.track(t, n);
|
|
10128
10195
|
}),
|
|
10129
10196
|
initHeap: r((e, n, r) => {
|
|
10130
|
-
let i =
|
|
10197
|
+
let i = Nb(n, r);
|
|
10131
10198
|
window.heap.addUserProperties({ appcuesUserID: Zn(t()).userId }), window.heap.track(n, i, "appcues");
|
|
10132
10199
|
}),
|
|
10133
10200
|
initIntercom: r((e, t, n) => {
|
|
@@ -10180,15 +10247,15 @@ function jb(e, t) {
|
|
|
10180
10247
|
if (s) {
|
|
10181
10248
|
let n = window[window.GoogleAnalyticsObject];
|
|
10182
10249
|
P.function(n) ? n((t) => {
|
|
10183
|
-
if (l)
|
|
10184
|
-
else if (t)
|
|
10250
|
+
if (l) Mb(n, `${l}.send`, c, e, s);
|
|
10251
|
+
else if (t) Mb(n, "send", c, e, s);
|
|
10185
10252
|
else {
|
|
10186
10253
|
let t = n.getAll().reduce((e, t) => ({
|
|
10187
10254
|
...e,
|
|
10188
10255
|
[t.get("trackingId")]: t.get("name")
|
|
10189
10256
|
}), {});
|
|
10190
10257
|
Object.keys(t).forEach((r) => {
|
|
10191
|
-
|
|
10258
|
+
Mb(n, `${t[r]}.send`, c, e, s);
|
|
10192
10259
|
});
|
|
10193
10260
|
}
|
|
10194
10261
|
}) : window._gaq ? window._gaq.push([
|
|
@@ -10227,28 +10294,28 @@ function jb(e, t) {
|
|
|
10227
10294
|
window.braze.logCustomEvent(t, n);
|
|
10228
10295
|
}),
|
|
10229
10296
|
initFullStory: r((e, t, n) => {
|
|
10230
|
-
let r =
|
|
10297
|
+
let r = Pb(n);
|
|
10231
10298
|
window.FS.event(t, r);
|
|
10232
10299
|
}),
|
|
10233
10300
|
initHotjar: r((e, t) => {
|
|
10234
10301
|
window.hj("event", t);
|
|
10235
10302
|
}),
|
|
10236
10303
|
initLogRocket: r((e, t, n) => {
|
|
10237
|
-
let r =
|
|
10304
|
+
let r = Ib(n);
|
|
10238
10305
|
window.LogRocket.track(t, r);
|
|
10239
10306
|
})
|
|
10240
10307
|
};
|
|
10241
10308
|
}
|
|
10242
10309
|
//#endregion
|
|
10243
10310
|
//#region src/scripts/bind-interface.js
|
|
10244
|
-
function
|
|
10311
|
+
function Rb(e, t) {
|
|
10245
10312
|
let n = {
|
|
10246
10313
|
...t,
|
|
10247
10314
|
url: e
|
|
10248
10315
|
};
|
|
10249
10316
|
return hu(le.PAGE_VIEW, n);
|
|
10250
10317
|
}
|
|
10251
|
-
function
|
|
10318
|
+
function zb({ dispatch: e, getState: t }) {
|
|
10252
10319
|
let n = {
|
|
10253
10320
|
identify(n, r = {}) {
|
|
10254
10321
|
let i = n, a = r;
|
|
@@ -10258,7 +10325,7 @@ function Nb({ dispatch: e, getState: t }) {
|
|
|
10258
10325
|
Yn(t())(/* @__PURE__ */ Error("Appcues.identify() called with invalid user properties"));
|
|
10259
10326
|
} catch {}
|
|
10260
10327
|
}
|
|
10261
|
-
P.object(i) ? (a = i, i = a.userId || Zn(t()).userId || null) : (P.undefined(i) || i === null) && (i = a.userId || Zn(t()).userId || null), delete a.userId, P.defined(i) ? e(mc(i, a, [
|
|
10328
|
+
P.object(i) ? (a = i, i = a.userId || Zn(t()).userId || null) : (P.undefined(i) || i === null) && (i = a.userId || Zn(t()).userId || null), delete a.userId, P.defined(i) ? e(mc(i, a, [Rb(window.location.href)])) : e(Vc(a, !0));
|
|
10262
10329
|
},
|
|
10263
10330
|
track(t, n = {}) {
|
|
10264
10331
|
t && e(bc({}, [hu(t, n)], !0));
|
|
@@ -10268,7 +10335,7 @@ function Nb({ dispatch: e, getState: t }) {
|
|
|
10268
10335
|
P.object(t) ? r = t : P.string(t) && (r = {
|
|
10269
10336
|
...r,
|
|
10270
10337
|
name: t
|
|
10271
|
-
}), e(bc({}, [
|
|
10338
|
+
}), e(bc({}, [Rb(window.location.href, r)], !0));
|
|
10272
10339
|
},
|
|
10273
10340
|
anonymous() {
|
|
10274
10341
|
e(Sc());
|
|
@@ -10304,7 +10371,7 @@ function Nb({ dispatch: e, getState: t }) {
|
|
|
10304
10371
|
}));
|
|
10305
10372
|
},
|
|
10306
10373
|
loadOpenBuilder() {
|
|
10307
|
-
return
|
|
10374
|
+
return C_();
|
|
10308
10375
|
},
|
|
10309
10376
|
group(n, r) {
|
|
10310
10377
|
let i = n, a = r;
|
|
@@ -10343,8 +10410,8 @@ function Nb({ dispatch: e, getState: t }) {
|
|
|
10343
10410
|
}
|
|
10344
10411
|
};
|
|
10345
10412
|
}
|
|
10346
|
-
});
|
|
10347
|
-
let r =
|
|
10413
|
+
}), Yg(n), Xg(n, t), $g(n);
|
|
10414
|
+
let r = Lb(n, t);
|
|
10348
10415
|
return Object.assign(n, r), Object.assign(n, {
|
|
10349
10416
|
start() {
|
|
10350
10417
|
n.page();
|
|
@@ -10357,8 +10424,20 @@ function Nb({ dispatch: e, getState: t }) {
|
|
|
10357
10424
|
}), n;
|
|
10358
10425
|
}
|
|
10359
10426
|
//#endregion
|
|
10427
|
+
//#region src/scripts/snippets/load-snippets.js
|
|
10428
|
+
function Bb(e, t) {
|
|
10429
|
+
if (!t || !t.integrity) return;
|
|
10430
|
+
let { version: n, integrity: r } = t, i = window.AppcuesBundleSettings && window.AppcuesBundleSettings.API_HOSTNAME && `https://${window.AppcuesBundleSettings.API_HOSTNAME}` || "https://api.appcues.net", a = document.createElement("script");
|
|
10431
|
+
a.src = `${i}/v1/accounts/${e}/snippets.js?v=${n}`, a.integrity = r, a.crossOrigin = "anonymous", a.async = !0, a.addEventListener("error", () => {
|
|
10432
|
+
console.error("[Appcues] Failed to load snippet bundle. Experiences will render without custom snippets.", {
|
|
10433
|
+
accountId: e,
|
|
10434
|
+
version: n
|
|
10435
|
+
});
|
|
10436
|
+
}), document.head.appendChild(a);
|
|
10437
|
+
}
|
|
10438
|
+
//#endregion
|
|
10360
10439
|
//#region src/scripts/views/components/debugger.jsx
|
|
10361
|
-
var
|
|
10440
|
+
var Vb = "https://studio.appcues.com", Hb = (e) => {
|
|
10362
10441
|
switch (e.type) {
|
|
10363
10442
|
case w.MODAL: switch (e.attributes.pattern_type) {
|
|
10364
10443
|
case "shorty": return "Slideout Group";
|
|
@@ -10371,17 +10450,17 @@ var Pb = "https://studio.appcues.com", Fb = (e) => {
|
|
|
10371
10450
|
default: return null;
|
|
10372
10451
|
}
|
|
10373
10452
|
};
|
|
10374
|
-
function
|
|
10453
|
+
function Ub(e) {
|
|
10375
10454
|
return !!(e && e.attributes && e.attributes.params && e.attributes.params.url);
|
|
10376
10455
|
}
|
|
10377
|
-
function
|
|
10456
|
+
function Wb(e) {
|
|
10378
10457
|
return !!(e && e.type === w.ACTION && e.attributes.action_type === fe.WAIT_FOR_PAGE);
|
|
10379
10458
|
}
|
|
10380
|
-
var
|
|
10459
|
+
var Gb = (e, t, n) => {
|
|
10381
10460
|
let r = Ln(e || {}, t), i = Dn(r, n);
|
|
10382
|
-
return /* @__PURE__ */ (0, R.html)("div", null, /* @__PURE__ */ (0, R.html)("div", null, `${(e || {}).name}, Step ${Rn(e, t) + 1} (${
|
|
10461
|
+
return /* @__PURE__ */ (0, R.html)("div", null, /* @__PURE__ */ (0, R.html)("div", null, `${(e || {}).name}, Step ${Rn(e, t) + 1} (${Hb(r || {})})${i > -1 ? `, Part ${i + 1}` : ""}`), Wb(r) && Ub(r) ? /* @__PURE__ */ (0, R.html)("div", null, `Page to match: ${r.attributes.params.url}`) : "");
|
|
10383
10462
|
};
|
|
10384
|
-
function
|
|
10463
|
+
function Kb(e) {
|
|
10385
10464
|
let { lastTrackedPage: t, currentPage: n, currentContent: r, currentFlow: i, currentContentStatus: a, currentStepId: o, currentStepChildId: s, stepChildErrors: c, user: l, group: u, settings: d, isTransportInitialized: f, rowState: p, onToggleRowDetails: m, onToggleCollapsed: h, onCloseDebugger: g } = e, _ = t && n, v = t === n, y = l && P.defined(l.userId), b = u && P.defined(u.groupId), x = Object.keys(c || {}).reduce((e, t) => {
|
|
10386
10465
|
let n = c[t];
|
|
10387
10466
|
return n.errorReported && !n.recoveryReported ? [...e, {
|
|
@@ -10393,7 +10472,7 @@ function zb(e) {
|
|
|
10393
10472
|
"class-header": !0,
|
|
10394
10473
|
"on-click": h
|
|
10395
10474
|
}, /* @__PURE__ */ (0, R.html)("div", { "class-logo": !0 }, /* @__PURE__ */ (0, R.html)("a", {
|
|
10396
|
-
"attrs-href":
|
|
10475
|
+
"attrs-href": Vb,
|
|
10397
10476
|
"attrs-target": "_blank"
|
|
10398
10477
|
}, /* @__PURE__ */ (0, R.html)(Od, {
|
|
10399
10478
|
width: "20px",
|
|
@@ -10402,42 +10481,42 @@ function zb(e) {
|
|
|
10402
10481
|
"on-click": g,
|
|
10403
10482
|
role: "button",
|
|
10404
10483
|
"aria-label": "Close debugger"
|
|
10405
|
-
}, "×"))), /* @__PURE__ */ (0, R.html)("div", { "class-panel": !0 }, /* @__PURE__ */ (0, R.html)(
|
|
10484
|
+
}, "×"))), /* @__PURE__ */ (0, R.html)("div", { "class-panel": !0 }, /* @__PURE__ */ (0, R.html)(qb, {
|
|
10406
10485
|
status: d && d.accountId ? "check" : "alert",
|
|
10407
10486
|
category: "Installed",
|
|
10408
10487
|
description: `Account ID: ${d && d.accountId ? d.accountId : "Unknown"}`
|
|
10409
|
-
}), /* @__PURE__ */ (0, R.html)(
|
|
10488
|
+
}), /* @__PURE__ */ (0, R.html)(qb, {
|
|
10410
10489
|
status: f ? "check" : "alert",
|
|
10411
10490
|
category: `${f ? "" : "Not "}Connected to Appcues`
|
|
10412
|
-
}), /* @__PURE__ */ (0, R.html)(
|
|
10491
|
+
}), /* @__PURE__ */ (0, R.html)(qb, {
|
|
10413
10492
|
status: _ ? v ? "check" : "alert" : "pending",
|
|
10414
10493
|
category: "Tracking Pages",
|
|
10415
10494
|
description: _ ? v ? "Current URL matches last tracked" : "URL has changed since last tracked" : "Navigate to another page to test",
|
|
10416
10495
|
showDetails: (p || {})["track-data"],
|
|
10417
10496
|
onToggleRowDetails: () => m("track-data"),
|
|
10418
10497
|
details: /* @__PURE__ */ (0, R.html)("span", null, /* @__PURE__ */ (0, R.html)("b", null, "Last Tracked URL:"), /* @__PURE__ */ (0, R.html)("br", null), t, /* @__PURE__ */ (0, R.html)("br", null), /* @__PURE__ */ (0, R.html)("br", null), /* @__PURE__ */ (0, R.html)("b", null, "Current URL:"), /* @__PURE__ */ (0, R.html)("br", null), n)
|
|
10419
|
-
}), /* @__PURE__ */ (0, R.html)(
|
|
10498
|
+
}), /* @__PURE__ */ (0, R.html)(qb, {
|
|
10420
10499
|
status: y ? "check" : "alert",
|
|
10421
10500
|
category: `User ${y ? "" : "Not "}Identified`,
|
|
10422
10501
|
description: y ? l._isAnonymous ? "Anonymous User" : `User ID: ${l.userId}` : "Have you called `identify`?",
|
|
10423
10502
|
showDetails: (p || {})["user-data"],
|
|
10424
10503
|
onToggleRowDetails: () => m("user-data"),
|
|
10425
|
-
details: y ? /* @__PURE__ */ (0, R.html)(
|
|
10426
|
-
}), b ? /* @__PURE__ */ (0, R.html)(
|
|
10504
|
+
details: y ? /* @__PURE__ */ (0, R.html)(Jb, { user: l }) : /* @__PURE__ */ (0, R.html)("span", null, "Please identify the current user by providing a userId and tracked properties")
|
|
10505
|
+
}), b ? /* @__PURE__ */ (0, R.html)(qb, {
|
|
10427
10506
|
status: "check",
|
|
10428
10507
|
category: "Group Identified",
|
|
10429
10508
|
description: `Group ID: ${u.groupId}`,
|
|
10430
10509
|
showDetails: (p || {})["group-data"],
|
|
10431
10510
|
onToggleRowDetails: () => m("group-data"),
|
|
10432
|
-
details: /* @__PURE__ */ (0, R.html)(
|
|
10433
|
-
}) : /* @__PURE__ */ (0, R.html)(B, null), r ? /* @__PURE__ */ (0, R.html)(
|
|
10511
|
+
details: /* @__PURE__ */ (0, R.html)(Jb, { user: u.groupProps })
|
|
10512
|
+
}) : /* @__PURE__ */ (0, R.html)(B, null), r ? /* @__PURE__ */ (0, R.html)(qb, {
|
|
10434
10513
|
status: a === "SHOWING" ? "check" : "pending",
|
|
10435
10514
|
category: "Showing Flow",
|
|
10436
10515
|
description: i.name,
|
|
10437
10516
|
showDetails: (p || {})["flow-details"],
|
|
10438
10517
|
onToggleRowDetails: () => m("flow-details"),
|
|
10439
|
-
details:
|
|
10440
|
-
}) : /* @__PURE__ */ (0, R.html)(B, null), x.length > 0 ? /* @__PURE__ */ (0, R.html)(
|
|
10518
|
+
details: Gb(i, o, s)
|
|
10519
|
+
}) : /* @__PURE__ */ (0, R.html)(B, null), x.length > 0 ? /* @__PURE__ */ (0, R.html)(qb, {
|
|
10441
10520
|
status: "warn",
|
|
10442
10521
|
category: "Content Omitted",
|
|
10443
10522
|
description: "Some content isn't showing",
|
|
@@ -10445,10 +10524,10 @@ function zb(e) {
|
|
|
10445
10524
|
onToggleRowDetails: () => m("omit-content"),
|
|
10446
10525
|
details: /* @__PURE__ */ (0, R.html)("div", null, "Some of the content this user is eligible for isn't showing. If there are dynamic elements on your page, this may be expected. Otherwise, please double-check your selectors.", /* @__PURE__ */ (0, R.html)("ul", null, x.map((e) => {
|
|
10447
10526
|
let { stepChildId: t, flow: n } = e;
|
|
10448
|
-
return /* @__PURE__ */ (0, R.html)("li", null,
|
|
10527
|
+
return /* @__PURE__ */ (0, R.html)("li", null, Gb(n, (zn(wn(n), t) || {}).id, t));
|
|
10449
10528
|
})))
|
|
10450
10529
|
}) : /* @__PURE__ */ (0, R.html)(B, null)), /* @__PURE__ */ (0, R.html)("div", { "class-footer": !0 }, /* @__PURE__ */ (0, R.html)("a", {
|
|
10451
|
-
href: `${
|
|
10530
|
+
href: `${Vb}/diagnostics?view_as=${d.accountId}&context=${window.btoa(JSON.stringify({
|
|
10452
10531
|
userId: l.userId,
|
|
10453
10532
|
url: t
|
|
10454
10533
|
}))}`,
|
|
@@ -10457,13 +10536,13 @@ function zb(e) {
|
|
|
10457
10536
|
rel: "noreferrer"
|
|
10458
10537
|
}, /* @__PURE__ */ (0, R.html)("div", { "class-launch-diagnostics": !0 }, S ? "View Flow Eligibility for User" : "Identify User to View Flow Eligibility"))));
|
|
10459
10538
|
}
|
|
10460
|
-
function
|
|
10539
|
+
function qb({ status: e, active: t, category: n, description: r, details: i, showDetails: a, onToggleRowDetails: o }) {
|
|
10461
10540
|
return /* @__PURE__ */ (0, R.html)("div", { classNames: `row ${t ? "active" : ""}` }, /* @__PURE__ */ (0, R.html)("div", { classNames: `category-container ${e}` }, /* @__PURE__ */ (0, R.html)("div", { "class-icon": !0 }), /* @__PURE__ */ (0, R.html)("div", { "class-name": !0 }, n), r ? /* @__PURE__ */ (0, R.html)("div", { "class-description": !0 }, r) : /* @__PURE__ */ (0, R.html)(B, null), i ? /* @__PURE__ */ (0, R.html)("div", {
|
|
10462
10541
|
classNames: `toggle-details ${a ? "open" : "closed"}`,
|
|
10463
10542
|
"on-click": o
|
|
10464
10543
|
}, "DETAILS") : /* @__PURE__ */ (0, R.html)(B, null)), a ? /* @__PURE__ */ (0, R.html)("div", { "class-details": !0 }, i) : /* @__PURE__ */ (0, R.html)(B, null));
|
|
10465
10544
|
}
|
|
10466
|
-
function
|
|
10545
|
+
function Jb({ user: e }) {
|
|
10467
10546
|
let t = /^_.*/, n = Object.keys(e).map((t) => ({
|
|
10468
10547
|
name: t,
|
|
10469
10548
|
value: e[t]
|
|
@@ -10478,11 +10557,11 @@ function Vb({ user: e }) {
|
|
|
10478
10557
|
}
|
|
10479
10558
|
//#endregion
|
|
10480
10559
|
//#region src/styles/debugger.css?url
|
|
10481
|
-
var
|
|
10560
|
+
var Yb = "/generic/main/7.25.0/debugger.7382849d2ae897a1629360cfe8e459f8f639cf7b.css";
|
|
10482
10561
|
//#endregion
|
|
10483
10562
|
//#region src/scripts/views/renderers/render-debugger.jsx
|
|
10484
10563
|
qa();
|
|
10485
|
-
var
|
|
10564
|
+
var Xb = "sha256-dNNu9aM9bATbrbcwJKO+v6IywBXf8e9QiKGrHPFxi7s=", Zb = ys(Yb), Qb = Ri([
|
|
10486
10565
|
Aa,
|
|
10487
10566
|
Da,
|
|
10488
10567
|
ma,
|
|
@@ -10491,7 +10570,7 @@ var Ub = "sha256-dNNu9aM9bATbrbcwJKO+v6IywBXf8e9QiKGrHPFxi7s=", Wb = ys(Hb), Gb
|
|
|
10491
10570
|
], (0, Za.createApi)({
|
|
10492
10571
|
clean: !0,
|
|
10493
10572
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
10494
|
-
})),
|
|
10573
|
+
})), $b = null, ex = (e) => {
|
|
10495
10574
|
let t = lr(e) || {}, n = Mr(e);
|
|
10496
10575
|
return Object.keys(n || {}).reduce((e, r) => {
|
|
10497
10576
|
let i = Bn(t, r);
|
|
@@ -10503,7 +10582,7 @@ var Ub = "sha256-dNNu9aM9bATbrbcwJKO+v6IywBXf8e9QiKGrHPFxi7s=", Wb = ys(Hb), Gb
|
|
|
10503
10582
|
}
|
|
10504
10583
|
} : e;
|
|
10505
10584
|
}, {});
|
|
10506
|
-
},
|
|
10585
|
+
}, tx = (e, t) => /* @__PURE__ */ (0, R.html)(Kb, {
|
|
10507
10586
|
lastTrackedPage: Br(e),
|
|
10508
10587
|
currentPage: zr(e),
|
|
10509
10588
|
currentContent: L(e),
|
|
@@ -10511,7 +10590,7 @@ var Ub = "sha256-dNNu9aM9bATbrbcwJKO+v6IywBXf8e9QiKGrHPFxi7s=", Wb = ys(Hb), Gb
|
|
|
10511
10590
|
currentStepId: I(e),
|
|
10512
10591
|
currentStepChildId: br(e),
|
|
10513
10592
|
currentContentStatus: mr(e),
|
|
10514
|
-
stepChildErrors:
|
|
10593
|
+
stepChildErrors: ex(e),
|
|
10515
10594
|
user: Zn(e),
|
|
10516
10595
|
group: $n(e),
|
|
10517
10596
|
settings: ar(e),
|
|
@@ -10521,34 +10600,34 @@ var Ub = "sha256-dNNu9aM9bATbrbcwJKO+v6IywBXf8e9QiKGrHPFxi7s=", Wb = ys(Hb), Gb
|
|
|
10521
10600
|
onToggleCollapsed: t.onToggleCollapsed,
|
|
10522
10601
|
onCloseDebugger: t.onCloseDebugger
|
|
10523
10602
|
});
|
|
10524
|
-
function
|
|
10603
|
+
function nx(e) {
|
|
10525
10604
|
if (ts(document)) {
|
|
10526
10605
|
let t = e.views.callbacks[w.DEBUGGER], n = Lr(e), r = n && n.isCollapsed;
|
|
10527
|
-
if (
|
|
10606
|
+
if (!$b) {
|
|
10528
10607
|
let e = document.createElement("appcues-debugger");
|
|
10529
|
-
document.body.appendChild(e),
|
|
10608
|
+
document.body.appendChild(e), $b = Qb(e, /* @__PURE__ */ (0, R.html)("appcues-debugger", null));
|
|
10530
10609
|
}
|
|
10531
|
-
Ir(e) && t ?
|
|
10610
|
+
Ir(e) && t ? $b = Qb($b, /* @__PURE__ */ (0, R.html)("appcues-debugger", { classNames: r ? "collapsed" : "expanded" }, /* @__PURE__ */ (0, R.html)("iframe", {
|
|
10532
10611
|
"style-border": "none",
|
|
10533
10612
|
"style-height": "450px",
|
|
10534
10613
|
"style-width": "600px",
|
|
10535
10614
|
scrolling: "no",
|
|
10536
10615
|
"style-color-scheme": "none"
|
|
10537
10616
|
}, /* @__PURE__ */ (0, R.html)("link", {
|
|
10538
|
-
"attrs-href":
|
|
10617
|
+
"attrs-href": Zb,
|
|
10539
10618
|
"attrs-type": "text/css",
|
|
10540
10619
|
"attrs-rel": "stylesheet",
|
|
10541
|
-
"attrs-integrity":
|
|
10620
|
+
"attrs-integrity": Xb,
|
|
10542
10621
|
"attrs-crossorigin": "anonymous"
|
|
10543
|
-
}),
|
|
10622
|
+
}), tx(e, t)))) : $b &&= Qb($b, /* @__PURE__ */ (0, R.html)("div", null));
|
|
10544
10623
|
}
|
|
10545
10624
|
}
|
|
10546
10625
|
//#endregion
|
|
10547
10626
|
//#region src/scripts/views/components/test-mode-banner.jsx
|
|
10548
|
-
var
|
|
10627
|
+
var rx = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", ix = (e) => {
|
|
10549
10628
|
let { testModeCallbacks: t } = e;
|
|
10550
10629
|
return /* @__PURE__ */ (0, R.html)("div", { "class-banner-wrapper": !0 }, /* @__PURE__ */ (0, R.html)("div", { "class-banner-background": !0 }, /* @__PURE__ */ (0, R.html)("div", { "class-banner-content": !0 }, /* @__PURE__ */ (0, R.html)("span", { "class-banner-header": !0 }, "Appcues Test Mode"), /* @__PURE__ */ (0, R.html)("a", {
|
|
10551
|
-
href:
|
|
10630
|
+
href: rx,
|
|
10552
10631
|
"class-clickable": !0,
|
|
10553
10632
|
"class-doc-link": !0,
|
|
10554
10633
|
target: "_blank",
|
|
@@ -10561,11 +10640,11 @@ var Xb = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", Zb = (e)
|
|
|
10561
10640
|
"class-clickable": !0,
|
|
10562
10641
|
"on-click": t.onCancelClicked
|
|
10563
10642
|
}, "End Test"))));
|
|
10564
|
-
},
|
|
10643
|
+
}, ax = "/generic/main/7.25.0/test-mode.7382849d2ae897a1629360cfe8e459f8f639cf7b.css";
|
|
10565
10644
|
//#endregion
|
|
10566
10645
|
//#region src/scripts/views/renderers/render-test-mode-banner.jsx
|
|
10567
10646
|
qa();
|
|
10568
|
-
var
|
|
10647
|
+
var ox = "sha256-LY5VY9tDsAOswNGXoginWbndpzhXfaGIHNLr6cjQ8EI=", sx = ys(ax), cx = Ri([
|
|
10569
10648
|
Aa,
|
|
10570
10649
|
Da,
|
|
10571
10650
|
ma,
|
|
@@ -10574,15 +10653,15 @@ var $b = "sha256-LY5VY9tDsAOswNGXoginWbndpzhXfaGIHNLr6cjQ8EI=", ex = ys(Qb), tx
|
|
|
10574
10653
|
], (0, Za.createApi)({
|
|
10575
10654
|
clean: !0,
|
|
10576
10655
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
10577
|
-
})),
|
|
10578
|
-
function
|
|
10656
|
+
})), lx = null;
|
|
10657
|
+
function ux(e) {
|
|
10579
10658
|
if (ts(document)) {
|
|
10580
10659
|
let t = e.views && e.views.callbacks && e.views.callbacks[w.TEST_MODE], { _testContentId: n } = e.user || {}, r = n, i = e.test && e.test.cssLoaded;
|
|
10581
|
-
if (!
|
|
10660
|
+
if (!lx) {
|
|
10582
10661
|
let e = document.createElement("appcues-test-banner");
|
|
10583
|
-
document.body.appendChild(e),
|
|
10662
|
+
document.body.appendChild(e), lx = cx(e, /* @__PURE__ */ (0, R.html)("appcues-test-banner", null));
|
|
10584
10663
|
}
|
|
10585
|
-
r && t ?
|
|
10664
|
+
r && t ? lx = cx(lx, /* @__PURE__ */ (0, R.html)("div", { "class-appcues": !0 }, /* @__PURE__ */ (0, R.html)("appcues-test-banner", { style: {
|
|
10586
10665
|
display: "flex",
|
|
10587
10666
|
justifyContent: "center"
|
|
10588
10667
|
} }, /* @__PURE__ */ (0, R.html)("iframe", { style: {
|
|
@@ -10592,18 +10671,18 @@ function rx(e) {
|
|
|
10592
10671
|
bottom: "0",
|
|
10593
10672
|
border: "0"
|
|
10594
10673
|
} }, /* @__PURE__ */ (0, R.html)("link", {
|
|
10595
|
-
"attrs-href":
|
|
10596
|
-
"attrs-integrity":
|
|
10674
|
+
"attrs-href": sx,
|
|
10675
|
+
"attrs-integrity": ox,
|
|
10597
10676
|
"attrs-crossorigin": "anonymous",
|
|
10598
10677
|
"attrs-type": "text/css",
|
|
10599
10678
|
"attrs-rel": "stylesheet",
|
|
10600
10679
|
"on-load": t.onCssLoaded
|
|
10601
|
-
}), i ? /* @__PURE__ */ (0, R.html)(
|
|
10680
|
+
}), i ? /* @__PURE__ */ (0, R.html)(ix, { testModeCallbacks: t }) : /* @__PURE__ */ (0, R.html)(B, null))))) : lx &&= cx(lx, /* @__PURE__ */ (0, R.html)("div", null));
|
|
10602
10681
|
}
|
|
10603
10682
|
}
|
|
10604
10683
|
//#endregion
|
|
10605
10684
|
//#region src/scripts/views/callbacks/debugger-callbacks.js
|
|
10606
|
-
function
|
|
10685
|
+
function dx(e) {
|
|
10607
10686
|
return {
|
|
10608
10687
|
onToggleRowDetails(t) {
|
|
10609
10688
|
e(Ig(t));
|
|
@@ -10618,24 +10697,24 @@ function ix(e) {
|
|
|
10618
10697
|
}
|
|
10619
10698
|
//#endregion
|
|
10620
10699
|
//#region src/scripts/sagas/modal-sagas.js
|
|
10621
|
-
function*
|
|
10622
|
-
(yield N(pr)) === w.MODAL && (yield N(mr)) === T.STARTED && (yield j(
|
|
10700
|
+
function* fx() {
|
|
10701
|
+
(yield N(pr)) === w.MODAL && (yield N(mr)) === T.STARTED && (yield j(uy, yield N(Sr))) && (yield A(Kp(document.activeElement)), yield A(Xp()));
|
|
10623
10702
|
}
|
|
10624
|
-
function*
|
|
10625
|
-
yield M(X, V.START_CONTENT,
|
|
10703
|
+
function* px() {
|
|
10704
|
+
yield M(X, V.START_CONTENT, fx);
|
|
10626
10705
|
}
|
|
10627
10706
|
//#endregion
|
|
10628
10707
|
//#region src/scripts/sagas/hotspots-sagas.js
|
|
10629
|
-
function*
|
|
10630
|
-
yield j(
|
|
10708
|
+
function* mx(e, t) {
|
|
10709
|
+
yield j(q_, t), yield A(J(Qp(E.CHILD_RUN, e, t))), yield A(mm([t]));
|
|
10631
10710
|
}
|
|
10632
|
-
function*
|
|
10711
|
+
function* hx() {
|
|
10633
10712
|
if ((yield N(pr)) === w.HOTSPOTS && (yield N(mr)) === T.STARTED) {
|
|
10634
10713
|
let e = yield N(L), t = En(e);
|
|
10635
|
-
t.length > 0 ? (yield j(
|
|
10714
|
+
t.length > 0 ? (yield j(uy, t)) && (yield A(Kp(document.activeElement)), yield A(dm()), yield A(vm()), An(e) && (yield* mx(e.id, t[0].id))) : yield j(Iv, /* @__PURE__ */ Error("Trying to show an empty list of hotspots."));
|
|
10636
10715
|
}
|
|
10637
10716
|
}
|
|
10638
|
-
function*
|
|
10717
|
+
function* gx({ payload: e }) {
|
|
10639
10718
|
(yield N(pr)) === w.HOTSPOTS && (yield A(bm((yield N(Sr)).reduce((t, n) => {
|
|
10640
10719
|
let r = e[n.id];
|
|
10641
10720
|
if (!r.error) {
|
|
@@ -10660,95 +10739,95 @@ function* lx({ payload: e }) {
|
|
|
10660
10739
|
};
|
|
10661
10740
|
}
|
|
10662
10741
|
return t[n.id] = r, t;
|
|
10663
|
-
}, {}))), yield j(
|
|
10742
|
+
}, {}))), yield j(G_));
|
|
10664
10743
|
}
|
|
10665
|
-
function*
|
|
10744
|
+
function* _x() {
|
|
10666
10745
|
yield j(Q, 1e4);
|
|
10667
|
-
let e = yield*
|
|
10668
|
-
e && (delete e.navByADTT, yield*
|
|
10746
|
+
let e = yield* Pv();
|
|
10747
|
+
e && (delete e.navByADTT, yield* Fv(e));
|
|
10669
10748
|
}
|
|
10670
|
-
function*
|
|
10749
|
+
function* vx({ payload: e }) {
|
|
10671
10750
|
(yield N(Nr)).length > 0 && (yield At({
|
|
10672
10751
|
continue: k((t) => t.type === G.REMOVE_ACTIVE_ANNOTATIONS && t.payload[0] === e.childId),
|
|
10673
10752
|
cancel: k((t) => t.type === U.CANCEL_STEP && t.payload.stepId === e.stepId)
|
|
10674
10753
|
})).cancel || (yield A(J($(E.STEP_END, e.stepId, e.params))));
|
|
10675
10754
|
}
|
|
10676
|
-
function*
|
|
10755
|
+
function* yx(e) {
|
|
10677
10756
|
let { contentType: t, step: n, childId: r, nextChildId: i, shouldEndFlow: a } = e.payload;
|
|
10678
|
-
t === w.SEQUENTIAL_HOTSPOTS && (yield A(gm([r])), yield A(J(Qp(E.CHILD_DEACTIVATED, n.id, r, { ts: Date.now() }))), i ? yield*
|
|
10679
|
-
...yield*
|
|
10757
|
+
t === w.SEQUENTIAL_HOTSPOTS && (yield A(gm([r])), yield A(J(Qp(E.CHILD_DEACTIVATED, n.id, r, { ts: Date.now() }))), i ? yield* mx(n.id, i) : (yield A(J($(E.STEP_COMPLETED, n.id, { shouldEndFlow: a }))), jn(n, Dn(n, r)) && (yield* Fv({
|
|
10758
|
+
...yield* Pv(),
|
|
10680
10759
|
navByADTT: !0
|
|
10681
|
-
}), yield M(
|
|
10760
|
+
}), yield M(_x)), yield j(vx, pm(n.id, r, { shouldEndFlow: a }))));
|
|
10682
10761
|
}
|
|
10683
|
-
function*
|
|
10684
|
-
yield A(gm([t])), yield A(J(Qp(E.CHILD_DEACTIVATED, e, t, { ts: Date.now() }))), yield A(Yp({ stepChildId: t })), yield A(Yp({ stepChildId: n })), yield A(J(Qp(E.CHILD_ACTIVATED, e, n, { ts: Date.now() }))), yield*
|
|
10762
|
+
function* bx({ stepId: e, currentStepChildId: t, nextStepChildId: n }) {
|
|
10763
|
+
yield A(gm([t])), yield A(J(Qp(E.CHILD_DEACTIVATED, e, t, { ts: Date.now() }))), yield A(Yp({ stepChildId: t })), yield A(Yp({ stepChildId: n })), yield A(J(Qp(E.CHILD_ACTIVATED, e, n, { ts: Date.now() }))), yield* mx(e, n);
|
|
10685
10764
|
}
|
|
10686
|
-
function*
|
|
10765
|
+
function* xx(e) {
|
|
10687
10766
|
let { step: t, stepChildId: n } = e.payload, r = yield N(Or, n);
|
|
10688
|
-
r && (yield j(
|
|
10767
|
+
r && (yield j(bx, {
|
|
10689
10768
|
stepId: t,
|
|
10690
10769
|
currentStepChildId: n,
|
|
10691
10770
|
nextStepChildId: r
|
|
10692
10771
|
}));
|
|
10693
10772
|
}
|
|
10694
|
-
function*
|
|
10773
|
+
function* Sx(e) {
|
|
10695
10774
|
let { stepId: t, currentStepChildId: n, nextStepChildIndex: r } = e.payload, i = yield N(Tr, r);
|
|
10696
|
-
!i || n === i || (yield (yield N(kr, n, i)).map((e) => A(Yp({ stepChildId: e }))), yield j(
|
|
10775
|
+
!i || n === i || (yield (yield N(kr, n, i)).map((e) => A(Yp({ stepChildId: e }))), yield j(bx, {
|
|
10697
10776
|
stepId: t,
|
|
10698
10777
|
currentStepChildId: n,
|
|
10699
10778
|
nextStepChildId: i
|
|
10700
10779
|
}));
|
|
10701
10780
|
}
|
|
10702
|
-
function*
|
|
10781
|
+
function* Cx() {
|
|
10703
10782
|
yield [
|
|
10704
|
-
M(X, V.START_CONTENT,
|
|
10705
|
-
M(X, G.START_HANDLE_POSITION_UPDATES,
|
|
10706
|
-
M(X, U.ADVANCE_STEP_CHILD,
|
|
10707
|
-
M(X, ac.CLOSE_LAST_HOTSPOT,
|
|
10708
|
-
M(X, U.RUN_PREV_STEP_CHILD,
|
|
10709
|
-
M(X, G.GO_TO_STEP,
|
|
10783
|
+
M(X, V.START_CONTENT, hx),
|
|
10784
|
+
M(X, G.START_HANDLE_POSITION_UPDATES, gx),
|
|
10785
|
+
M(X, U.ADVANCE_STEP_CHILD, yx),
|
|
10786
|
+
M(X, ac.CLOSE_LAST_HOTSPOT, vx),
|
|
10787
|
+
M(X, U.RUN_PREV_STEP_CHILD, xx),
|
|
10788
|
+
M(X, G.GO_TO_STEP, Sx)
|
|
10710
10789
|
];
|
|
10711
10790
|
}
|
|
10712
10791
|
//#endregion
|
|
10713
10792
|
//#region src/scripts/sagas/debugger-sagas.js
|
|
10714
|
-
function*
|
|
10793
|
+
function* wx() {
|
|
10715
10794
|
for (;;) {
|
|
10716
10795
|
let e = window.location.href;
|
|
10717
10796
|
(yield N(zr)) !== e && (yield A(Rg(e))), yield j(Qe, 1e3);
|
|
10718
10797
|
}
|
|
10719
10798
|
}
|
|
10720
|
-
function*
|
|
10799
|
+
function* Tx(e) {
|
|
10721
10800
|
let t = null;
|
|
10722
10801
|
if (e.payload.events.forEach((e) => {
|
|
10723
10802
|
e.name === le.PAGE_VIEW && (t = e);
|
|
10724
10803
|
}), t) {
|
|
10725
10804
|
let e = t.attributes.url;
|
|
10726
|
-
e !== (yield N(Br)) && (yield A(zg(e)), yield j(
|
|
10805
|
+
e !== (yield N(Br)) && (yield A(zg(e)), yield j(t_, "localStorage", Me, e));
|
|
10727
10806
|
}
|
|
10728
10807
|
}
|
|
10729
|
-
function*
|
|
10808
|
+
function* Ex(e) {
|
|
10730
10809
|
e.error && (yield A(Bg((e.payload && e.payload.extra ? e.payload.extra.id : null) || (yield N(I)), e.payload.message)));
|
|
10731
10810
|
}
|
|
10732
|
-
function*
|
|
10811
|
+
function* Dx(e) {
|
|
10733
10812
|
let t = Object.keys(e.payload).filter((t) => e.payload[t].error);
|
|
10734
10813
|
if (t.length > 0) {
|
|
10735
10814
|
let n = yield N(I);
|
|
10736
10815
|
for (let r of t) yield A(Vg(n, r, e.payload[r].errorMessage));
|
|
10737
10816
|
}
|
|
10738
10817
|
}
|
|
10739
|
-
function*
|
|
10818
|
+
function* Ox() {
|
|
10740
10819
|
for (;;) {
|
|
10741
|
-
(yield j(
|
|
10742
|
-
let e = yield su(
|
|
10743
|
-
yield k(oc.CLOSE_DEBUGGER), yield Pt(e), yield Pt(t), yield Pt(n), yield Pt(r), yield j(
|
|
10820
|
+
(yield j(n_, "localStorage", "apc_debug_enabled")) || (yield k(V.START_DEBUG)), yield j(t_, "localStorage", Ae, !0), yield A(zg(yield j(n_, "localStorage", Me)));
|
|
10821
|
+
let e = yield su(wx), t = yield M(X, [V.START_ACTIVITY, V.START_IDENTIFY], Tx), n = yield M(X, H.WILL_SHOW_CONTENT, Ex), r = yield M(X, G.SET_ANNOTATIONS_POSITIONS, Dx);
|
|
10822
|
+
yield k(oc.CLOSE_DEBUGGER), yield Pt(e), yield Pt(t), yield Pt(n), yield Pt(r), yield j(r_, "localStorage", Ae);
|
|
10744
10823
|
}
|
|
10745
10824
|
}
|
|
10746
|
-
function*
|
|
10747
|
-
yield M(
|
|
10825
|
+
function* kx() {
|
|
10826
|
+
yield M(Ox);
|
|
10748
10827
|
}
|
|
10749
10828
|
//#endregion
|
|
10750
10829
|
//#region src/scripts/sagas/action-sagas.js
|
|
10751
|
-
function*
|
|
10830
|
+
function* Ax({ payload: e }) {
|
|
10752
10831
|
switch (yield A(J($(E.STEP_SHOWN, e.id))), e.attributes.action_type) {
|
|
10753
10832
|
case fe.REDIRECT: {
|
|
10754
10833
|
let t = window.location.href, { url: n, new_tab: r, initiated_by_user: i } = e.attributes.params;
|
|
@@ -10757,7 +10836,7 @@ function* Cx({ payload: e }) {
|
|
|
10757
10836
|
wait: k(H.SENT_ACTIVITY_UPDATE),
|
|
10758
10837
|
cancel: j(Q, 1500)
|
|
10759
10838
|
}), yield At({
|
|
10760
|
-
wait: j(
|
|
10839
|
+
wait: j(Av, yield N(Hn)),
|
|
10761
10840
|
cancel: j(Q, De)
|
|
10762
10841
|
}), yield j(Rd, window, n, r));
|
|
10763
10842
|
break;
|
|
@@ -10765,10 +10844,10 @@ function* Cx({ payload: e }) {
|
|
|
10765
10844
|
default: yield A(Gc(/* @__PURE__ */ Error("Unknown step type.")));
|
|
10766
10845
|
}
|
|
10767
10846
|
}
|
|
10768
|
-
function*
|
|
10847
|
+
function* jx({ payload: { action: e, status: t } }) {
|
|
10769
10848
|
switch (e.attributes.action_type) {
|
|
10770
10849
|
case fe.WAIT_FOR_PAGE: {
|
|
10771
|
-
let n = window.location.href, { url: r } = e.attributes.params, i = yield*
|
|
10850
|
+
let n = window.location.href, { url: r } = e.attributes.params, i = yield* Pv(), a = yield N(cr), o = Xd(r, a.url), s = Xd(a.url, n), c = t === E.STEP_SHOWN || o && s, l = t === E.STEP_ATTEMPTED && i && i.remainingPagesToCheck !== 2;
|
|
10772
10851
|
c || l && Xd(r, n) ? (yield A(J($(E.STEP_COMPLETED, e.id))), yield A(J($(E.STEP_END, e.id)))) : yield A(J($(E.STEP_ATTEMPTED, e.id)));
|
|
10773
10852
|
break;
|
|
10774
10853
|
}
|
|
@@ -10785,28 +10864,28 @@ function* wx({ payload: { action: e, status: t } }) {
|
|
|
10785
10864
|
default: yield A(Gc(/* @__PURE__ */ Error("Unknown step type.")));
|
|
10786
10865
|
}
|
|
10787
10866
|
}
|
|
10788
|
-
function*
|
|
10867
|
+
function* Mx(e, t) {
|
|
10789
10868
|
let n = window.location.href;
|
|
10790
|
-
Xd(e, n) ? t && (yield j(t)) : (yield j(Q, 500), yield j(
|
|
10869
|
+
Xd(e, n) ? t && (yield j(t)) : (yield j(Q, 500), yield j(Mx, e, t));
|
|
10791
10870
|
}
|
|
10792
|
-
function*
|
|
10871
|
+
function* Nx({ payload: { action: e, checklistId: t, itemId: n, actionIndex: r } }) {
|
|
10793
10872
|
switch (e.attributes.action_type) {
|
|
10794
10873
|
case fe.REDIRECT: {
|
|
10795
10874
|
let i = window.location.href, { url: a, new_tab: o } = e.attributes.params;
|
|
10796
10875
|
if (Xd(a, i)) yield A(ah(t, n, r));
|
|
10797
10876
|
else {
|
|
10798
10877
|
yield At({
|
|
10799
|
-
wait: kt([j(
|
|
10878
|
+
wait: kt([j(Av, yield N(Hn)), j(Av, t)]),
|
|
10800
10879
|
cancel: j(Q, De)
|
|
10801
10880
|
});
|
|
10802
10881
|
let e = yield N(Wr, t);
|
|
10803
|
-
yield j(
|
|
10882
|
+
yield j(t_, g, me, JSON.stringify({
|
|
10804
10883
|
checklistId: t,
|
|
10805
10884
|
itemId: n,
|
|
10806
10885
|
actionIndex: r,
|
|
10807
10886
|
checklist: e
|
|
10808
|
-
})), yield j(Rd, window, a, o), yield j(
|
|
10809
|
-
yield A(ah(t, n, r)), yield j(
|
|
10887
|
+
})), yield j(Rd, window, a, o), yield j(Mx, a, function* () {
|
|
10888
|
+
yield A(ah(t, n, r)), yield j(r_, g, me);
|
|
10810
10889
|
});
|
|
10811
10890
|
}
|
|
10812
10891
|
break;
|
|
@@ -10834,20 +10913,20 @@ function* Ex({ payload: { action: e, checklistId: t, itemId: n, actionIndex: r }
|
|
|
10834
10913
|
}
|
|
10835
10914
|
}
|
|
10836
10915
|
}
|
|
10837
|
-
function*
|
|
10916
|
+
function* Px() {
|
|
10838
10917
|
yield [
|
|
10839
|
-
M(X, H.RUN_ACTION,
|
|
10840
|
-
M(X, H.RESUME_ACTION,
|
|
10841
|
-
M(X, K.START_CHECKLIST_ACTION,
|
|
10918
|
+
M(X, H.RUN_ACTION, Ax),
|
|
10919
|
+
M(X, H.RESUME_ACTION, jx),
|
|
10920
|
+
M(X, K.START_CHECKLIST_ACTION, Nx)
|
|
10842
10921
|
];
|
|
10843
10922
|
}
|
|
10844
10923
|
//#endregion
|
|
10845
10924
|
//#region src/scripts/sagas/satisfaction-survey-sagas.js
|
|
10846
|
-
var
|
|
10847
|
-
function*
|
|
10925
|
+
var Fx = 500, Ix = 5e3;
|
|
10926
|
+
function* Lx() {
|
|
10848
10927
|
(yield N(pr)) === w.SATISFACTION_SURVEY && (yield N(mr)) === T.STARTED && (yield A(jm()));
|
|
10849
10928
|
}
|
|
10850
|
-
function*
|
|
10929
|
+
function* Rx(e) {
|
|
10851
10930
|
let { score: t } = e.payload, n = _u(yield N(Un), yield N(rr), {
|
|
10852
10931
|
score: t,
|
|
10853
10932
|
name: "NPS Score",
|
|
@@ -10858,7 +10937,7 @@ function* jx(e) {
|
|
|
10858
10937
|
[`${C}NPSLastCollectedAt`]: Date.now()
|
|
10859
10938
|
}, [gu(n)], !1));
|
|
10860
10939
|
}
|
|
10861
|
-
function*
|
|
10940
|
+
function* zx(e) {
|
|
10862
10941
|
let { feedback: t } = e.payload, n = _u(yield N(Un), yield N(rr), {
|
|
10863
10942
|
feedback: t,
|
|
10864
10943
|
name: "NPS Feedback",
|
|
@@ -10869,7 +10948,7 @@ function* Mx(e) {
|
|
|
10869
10948
|
[`${C}NPSFeedbackLastCollectedAt`]: Date.now()
|
|
10870
10949
|
}, [gu(n)], !1));
|
|
10871
10950
|
}
|
|
10872
|
-
function*
|
|
10951
|
+
function* Bx() {
|
|
10873
10952
|
let e = {}, t = `${C}ClickedUpdateNPSScore`;
|
|
10874
10953
|
e[t] = Date.now();
|
|
10875
10954
|
let n = _u(yield N(Un), yield N(rr), {
|
|
@@ -10879,7 +10958,7 @@ function* Nx() {
|
|
|
10879
10958
|
});
|
|
10880
10959
|
yield A(_c(n.flowId, n)), yield A(bc(e, [gu(n)], !1));
|
|
10881
10960
|
}
|
|
10882
|
-
function*
|
|
10961
|
+
function* Vx() {
|
|
10883
10962
|
let e = {}, t = `${C}AskMeLaterSelectedAt`;
|
|
10884
10963
|
e[t] = Date.now();
|
|
10885
10964
|
let n = _u(yield N(Un), yield N(rr), {
|
|
@@ -10889,22 +10968,22 @@ function* Px() {
|
|
|
10889
10968
|
});
|
|
10890
10969
|
yield A(_c(n.flowId, n)), yield A(bc(e, [gu(n)], !1));
|
|
10891
10970
|
}
|
|
10892
|
-
function*
|
|
10893
|
-
yield A(Nm()), yield Qe(
|
|
10971
|
+
function* Hx() {
|
|
10972
|
+
yield A(Nm()), yield Qe(Fx), yield A(Fm()), yield Qe(Ix), yield A(Im());
|
|
10894
10973
|
}
|
|
10895
|
-
function*
|
|
10974
|
+
function* Ux() {
|
|
10896
10975
|
yield [
|
|
10897
|
-
M(X, W.QUANTITATIVE_QUESTION_SUBMITTED,
|
|
10898
|
-
M(X, W.QUALITATIVE_QUESTION_SUBMITTED,
|
|
10899
|
-
M(X, W.ASK_ME_LATER_SELECTED,
|
|
10900
|
-
M(X, W.CLICKED_UPDATE_NPS_SCORE,
|
|
10901
|
-
M(X, W.START_COLLAPSING_SATISFACTION_SURVEY,
|
|
10902
|
-
M(X, V.START_CONTENT,
|
|
10976
|
+
M(X, W.QUANTITATIVE_QUESTION_SUBMITTED, Rx),
|
|
10977
|
+
M(X, W.QUALITATIVE_QUESTION_SUBMITTED, zx),
|
|
10978
|
+
M(X, W.ASK_ME_LATER_SELECTED, Vx),
|
|
10979
|
+
M(X, W.CLICKED_UPDATE_NPS_SCORE, Bx),
|
|
10980
|
+
M(X, W.START_COLLAPSING_SATISFACTION_SURVEY, Hx),
|
|
10981
|
+
M(X, V.START_CONTENT, Lx)
|
|
10903
10982
|
];
|
|
10904
10983
|
}
|
|
10905
10984
|
//#endregion
|
|
10906
10985
|
//#region src/scripts/sagas/checklist-sagas.js
|
|
10907
|
-
function*
|
|
10986
|
+
function* Wx(e) {
|
|
10908
10987
|
if (e && !(yield N(fr))[e]) try {
|
|
10909
10988
|
let t = yield j(cg, yield N(qn), e);
|
|
10910
10989
|
t && (yield A(Wc({ [e]: t })));
|
|
@@ -10912,16 +10991,16 @@ function* Lx(e) {
|
|
|
10912
10991
|
yield j(yield N(Yn), e.message, { extra: e.extra });
|
|
10913
10992
|
}
|
|
10914
10993
|
}
|
|
10915
|
-
function*
|
|
10916
|
-
yield A(Wm(e.id, T.READY)), yield k((t) => t.type === K.LOADED_CHECKLIST_CSS && e.id), yield j(
|
|
10994
|
+
function* Gx(e) {
|
|
10995
|
+
yield A(Wm(e.id, T.READY)), yield k((t) => t.type === K.LOADED_CHECKLIST_CSS && e.id), yield j(Wx, e.style);
|
|
10917
10996
|
let t = yield N(L);
|
|
10918
10997
|
yield t && t.type !== w.HOTSPOTS ? A(Km()) : A(Wm(e.id, T.SHOWING)), (e.attributes && e.attributes.progress_state) !== ge.COMPLETED && (yield A(Xm(e.id)));
|
|
10919
10998
|
}
|
|
10920
|
-
function*
|
|
10999
|
+
function* Kx({ payload: e }) {
|
|
10921
11000
|
let { open_behavior: t } = e;
|
|
10922
11001
|
switch (t) {
|
|
10923
11002
|
case he.CLOSED:
|
|
10924
|
-
yield j(
|
|
11003
|
+
yield j(Gx, e);
|
|
10925
11004
|
break;
|
|
10926
11005
|
case he.OPENED:
|
|
10927
11006
|
yield A(Jm(e));
|
|
@@ -10929,29 +11008,29 @@ function* zx({ payload: e }) {
|
|
|
10929
11008
|
case he.OPEN_ONCE:
|
|
10930
11009
|
default: {
|
|
10931
11010
|
let t = `${we}${e.id}`;
|
|
10932
|
-
|
|
11011
|
+
n_("sessionStorage", t) ? yield j(Gx, e) : (t_(g, t, "1"), yield A(Jm(e)));
|
|
10933
11012
|
break;
|
|
10934
11013
|
}
|
|
10935
11014
|
}
|
|
10936
11015
|
}
|
|
10937
|
-
function*
|
|
10938
|
-
yield j(
|
|
11016
|
+
function* qx({ payload: e }) {
|
|
11017
|
+
yield j(Gx, e), yield j(Q, 1e3), yield A(Ym(e.id)), yield A(lh(e));
|
|
10939
11018
|
}
|
|
10940
|
-
function*
|
|
11019
|
+
function* Jx(e) {
|
|
10941
11020
|
let { checklist: t } = e.payload, n = Ku(t, yield N(rr));
|
|
10942
11021
|
yield A(_c(t.id, n)), yield A(bc(null, [gu(n)], !1));
|
|
10943
11022
|
}
|
|
10944
|
-
function*
|
|
11023
|
+
function* Yx(e) {
|
|
10945
11024
|
let { checklistId: t, didCompleteChecklist: n } = e.payload, r = yield N(rr), i = yield N(Wr, t);
|
|
10946
11025
|
yield A(Wm(i.id, T.DISMISSED));
|
|
10947
11026
|
let a = n ? Yu(i.attributes, r) : Ju(i.attributes, r);
|
|
10948
11027
|
yield A(_c(a.checklistId, a)), yield A(bc({}, [gu(a)], !1));
|
|
10949
11028
|
}
|
|
10950
|
-
function*
|
|
11029
|
+
function* Xx() {
|
|
10951
11030
|
let { userId: e } = yield N(Zn);
|
|
10952
11031
|
yield A(mc(e, { _showChecklist: null }));
|
|
10953
11032
|
}
|
|
10954
|
-
function*
|
|
11033
|
+
function* Zx(e) {
|
|
10955
11034
|
let { checklistId: t, itemId: n, actionIndex: r } = e.payload;
|
|
10956
11035
|
yield A(Xm(t));
|
|
10957
11036
|
let i = yield N(rr), a, o;
|
|
@@ -10967,42 +11046,42 @@ function* Wx(e) {
|
|
|
10967
11046
|
}
|
|
10968
11047
|
for (let e = r; e < o.actions.length; e++) yield A(ih(o.actions[e], t, n, e)), yield k(({ type: e, payload: t }) => e === K.COMPLETED_CHECKLIST_ACTION && t.itemId === n);
|
|
10969
11048
|
}
|
|
10970
|
-
function*
|
|
11049
|
+
function* Qx() {
|
|
10971
11050
|
let e = yield N(Ur);
|
|
10972
11051
|
e.length > 0 && (yield kt(e.filter((e) => Ee.includes(e.status)).map((e) => A(Wm(e.id, T.HIDING)))));
|
|
10973
11052
|
}
|
|
10974
|
-
function*
|
|
11053
|
+
function* $x() {
|
|
10975
11054
|
let e = yield N(Gr, T.HIDING);
|
|
10976
11055
|
e.length > 0 && (yield kt(e.map((e) => A(Wm(e.id, T.READY)))), yield A(Wm(e[0].id, T.SHOWING)), e[0].shouldTryExpandChecklist && (yield A(Ym(e[0].id)), yield A(Zm(e[0].id, !1))));
|
|
10977
11056
|
}
|
|
10978
|
-
function*
|
|
11057
|
+
function* eS() {
|
|
10979
11058
|
yield [
|
|
10980
|
-
M(X, K.START_CHECKLIST,
|
|
10981
|
-
M(X, K.HIDE_CHECKLISTS,
|
|
10982
|
-
M(X, K.UNHIDE_CHECKLISTS,
|
|
10983
|
-
M(X, K.ANIMATE_IN_CHECKLIST,
|
|
10984
|
-
M(X, K.CONFIRM_DISMISS_CHECKLIST,
|
|
10985
|
-
M(fu, K.START_CHECKLIST_ITEM,
|
|
10986
|
-
M(fu, K.CLEAR_FORCE_SHOWN_CHECKLIST,
|
|
10987
|
-
M(X, K.SEND_CHECKLIST_SHOWN_EVENT,
|
|
11059
|
+
M(X, K.START_CHECKLIST, Kx),
|
|
11060
|
+
M(X, K.HIDE_CHECKLISTS, Qx),
|
|
11061
|
+
M(X, K.UNHIDE_CHECKLISTS, $x),
|
|
11062
|
+
M(X, K.ANIMATE_IN_CHECKLIST, qx),
|
|
11063
|
+
M(X, K.CONFIRM_DISMISS_CHECKLIST, Yx),
|
|
11064
|
+
M(fu, K.START_CHECKLIST_ITEM, Zx),
|
|
11065
|
+
M(fu, K.CLEAR_FORCE_SHOWN_CHECKLIST, Xx),
|
|
11066
|
+
M(X, K.SEND_CHECKLIST_SHOWN_EVENT, Jx)
|
|
10988
11067
|
];
|
|
10989
11068
|
}
|
|
10990
11069
|
//#endregion
|
|
10991
11070
|
//#region src/scripts/sagas/open-builder-sagas.js
|
|
10992
|
-
function*
|
|
11071
|
+
function* tS({ payload: e }) {
|
|
10993
11072
|
let { type: t, event: n } = e, r = yield N(rr);
|
|
10994
11073
|
yield A(_c(t, {
|
|
10995
11074
|
...n,
|
|
10996
11075
|
sessionId: r
|
|
10997
11076
|
}));
|
|
10998
11077
|
}
|
|
10999
|
-
function*
|
|
11000
|
-
yield [M(X, V.START_OPEN_BUILDER_EVENT,
|
|
11078
|
+
function* nS() {
|
|
11079
|
+
yield [M(X, V.START_OPEN_BUILDER_EVENT, tS)];
|
|
11001
11080
|
}
|
|
11002
11081
|
//#endregion
|
|
11003
11082
|
//#region src/scripts/utils/test-mode.js
|
|
11004
|
-
function
|
|
11005
|
-
let e =
|
|
11083
|
+
function rS() {
|
|
11084
|
+
let e = n_(g, b), t;
|
|
11006
11085
|
if (e) try {
|
|
11007
11086
|
t = JSON.parse(e);
|
|
11008
11087
|
} catch {
|
|
@@ -11010,12 +11089,12 @@ function Xx() {
|
|
|
11010
11089
|
}
|
|
11011
11090
|
if (t) {
|
|
11012
11091
|
let { _testContentId: e, _testContentUrl: n, ...r } = t;
|
|
11013
|
-
return
|
|
11092
|
+
return r_(g, b), r_(g, oe), t_(g, b, JSON.stringify(r)), { _testContentId: null };
|
|
11014
11093
|
}
|
|
11015
11094
|
return {};
|
|
11016
11095
|
}
|
|
11017
|
-
function
|
|
11018
|
-
let e =
|
|
11096
|
+
function iS() {
|
|
11097
|
+
let e = n_(g, b), t;
|
|
11019
11098
|
if (e) try {
|
|
11020
11099
|
t = JSON.parse(e);
|
|
11021
11100
|
} catch {
|
|
@@ -11029,22 +11108,22 @@ function Zx() {
|
|
|
11029
11108
|
}
|
|
11030
11109
|
//#endregion
|
|
11031
11110
|
//#region src/scripts/sagas/test-mode-sagas.js
|
|
11032
|
-
function*
|
|
11033
|
-
let e =
|
|
11034
|
-
yield A(Vc(e, !0)), yield j(
|
|
11035
|
-
let t =
|
|
11111
|
+
function* aS() {
|
|
11112
|
+
let e = rS();
|
|
11113
|
+
yield A(Vc(e, !0)), yield j(Ay, e, [], !1);
|
|
11114
|
+
let t = tv(window.location.href, "appcuesTestContentId");
|
|
11036
11115
|
yield j(Rd, window, t);
|
|
11037
11116
|
}
|
|
11038
|
-
function*
|
|
11039
|
-
let e =
|
|
11117
|
+
function* oS() {
|
|
11118
|
+
let e = iS();
|
|
11040
11119
|
yield j(Rd, window, e);
|
|
11041
11120
|
}
|
|
11042
|
-
function*
|
|
11043
|
-
yield [M(X, sc.CANCEL_TEST,
|
|
11121
|
+
function* sS() {
|
|
11122
|
+
yield [M(X, sc.CANCEL_TEST, aS), M(X, sc.RESET_TEST, oS)];
|
|
11044
11123
|
}
|
|
11045
11124
|
//#endregion
|
|
11046
11125
|
//#region src/scripts/sagas/handle-messages.js
|
|
11047
|
-
function*
|
|
11126
|
+
function* cS(e) {
|
|
11048
11127
|
if (e.checklists && e.checklists.length > 0) {
|
|
11049
11128
|
let t = yield N(rr), n = [], r = ((yield N(Ur)) || []).reduce((e, t) => ({
|
|
11050
11129
|
...e,
|
|
@@ -11106,7 +11185,7 @@ function* tS(e) {
|
|
|
11106
11185
|
o.every((e) => !e.status) && (yield A(Um(i[0]))), c && c !== i[0].id && (yield A(Wm(c, T.READY)), i[0] && i[0].status !== T.SHOWING && (yield A(Um(i[0]))));
|
|
11107
11186
|
} else yield A(Gm([]));
|
|
11108
11187
|
}
|
|
11109
|
-
function*
|
|
11188
|
+
function* lS() {
|
|
11110
11189
|
let e = [], t = {}, n = /* @__PURE__ */ new Map();
|
|
11111
11190
|
yield vn(H.SENT_REQUEST, ({ payload: { requestId: n, pageViewEvent: r } }) => {
|
|
11112
11191
|
e = [n, ...e], r && (t = {
|
|
@@ -11121,7 +11200,7 @@ function* nS() {
|
|
|
11121
11200
|
type: fc.LAUNCHPAD_SEARCH_RESPONSE,
|
|
11122
11201
|
payload: n
|
|
11123
11202
|
});
|
|
11124
|
-
} else r === V.START_HANDLE_MESSAGE && (yield M(
|
|
11203
|
+
} else r === V.START_HANDLE_MESSAGE && (yield M(cS, a));
|
|
11125
11204
|
let o = yield N(cr), s = a.qualification_reason === ae.EVENT_TRIGGER;
|
|
11126
11205
|
(o.url !== window.location.href || !o.complete) && !s && (yield k((e) => e.type === H.CHECKED_FOR_INITIAL_CONTENT && e.payload.url === window.location.href && e.payload.complete));
|
|
11127
11206
|
let c = a.request_id;
|
|
@@ -11152,21 +11231,21 @@ function* nS() {
|
|
|
11152
11231
|
}
|
|
11153
11232
|
//#endregion
|
|
11154
11233
|
//#region src/scripts/sagas/knowledge-base-sagas.js
|
|
11155
|
-
function*
|
|
11234
|
+
function* uS() {
|
|
11156
11235
|
let e = yield N(qn);
|
|
11157
|
-
return (yield j($h, e)) || (yield j(
|
|
11236
|
+
return (yield j($h, e)) || (yield j(Oy), e = yield N(qn)), e;
|
|
11158
11237
|
}
|
|
11159
|
-
var
|
|
11160
|
-
let [e, ...t] =
|
|
11161
|
-
return
|
|
11238
|
+
var dS = [], fS = () => {
|
|
11239
|
+
let [e, ...t] = dS;
|
|
11240
|
+
return dS = t, e;
|
|
11162
11241
|
};
|
|
11163
|
-
function*
|
|
11164
|
-
(yield j(
|
|
11242
|
+
function* pS() {
|
|
11243
|
+
(yield j(xy)) || (yield k(H.INITIALIZE));
|
|
11165
11244
|
let e = yield N(Zn);
|
|
11166
11245
|
P.defined(e.userId) || (yield k(H.COMPLETED_IDENTIFY));
|
|
11167
|
-
let t = yield j(
|
|
11246
|
+
let t = yield j(uS), n = hn((e) => (u((t) => {
|
|
11168
11247
|
let { experienceId: n, integrationId: r, query: i } = t.detail;
|
|
11169
|
-
|
|
11248
|
+
dS.push(n), e({
|
|
11170
11249
|
type: re,
|
|
11171
11250
|
data: {
|
|
11172
11251
|
integration_id: r,
|
|
@@ -11176,56 +11255,56 @@ function* oS() {
|
|
|
11176
11255
|
});
|
|
11177
11256
|
}), () => {}));
|
|
11178
11257
|
for (t.transport.module.subscribeToError(() => {
|
|
11179
|
-
d(
|
|
11258
|
+
d(fS());
|
|
11180
11259
|
}, t, Zh.UserActivity);;) {
|
|
11181
11260
|
let { data: e } = yield k(n);
|
|
11182
|
-
t = yield j(
|
|
11261
|
+
t = yield j(uS), yield j(ng, t, re, e);
|
|
11183
11262
|
}
|
|
11184
11263
|
}
|
|
11185
|
-
function
|
|
11186
|
-
n(
|
|
11264
|
+
function mS({ payload: e }) {
|
|
11265
|
+
n(fS(), e);
|
|
11187
11266
|
}
|
|
11188
|
-
function
|
|
11189
|
-
d(
|
|
11267
|
+
function hS() {
|
|
11268
|
+
d(fS());
|
|
11190
11269
|
}
|
|
11191
|
-
function*
|
|
11270
|
+
function* gS() {
|
|
11192
11271
|
yield [
|
|
11193
|
-
su(
|
|
11194
|
-
M(fu, fc.LAUNCHPAD_SEARCH_RESPONSE,
|
|
11195
|
-
M(fu, fc.LAUNCHPAD_SEARCH_ERROR,
|
|
11272
|
+
su(pS),
|
|
11273
|
+
M(fu, fc.LAUNCHPAD_SEARCH_RESPONSE, mS),
|
|
11274
|
+
M(fu, fc.LAUNCHPAD_SEARCH_ERROR, hS)
|
|
11196
11275
|
];
|
|
11197
11276
|
}
|
|
11198
11277
|
//#endregion
|
|
11199
11278
|
//#region src/scripts/sagas/watch-url-sagas.js
|
|
11200
|
-
function*
|
|
11279
|
+
function* _S() {
|
|
11201
11280
|
if (window.AppcuesSettings) {
|
|
11202
11281
|
let e = window.location.href, { enableURLDetection: t } = window.AppcuesSettings;
|
|
11203
11282
|
for (; t;) window.location.href !== e && (window.Appcues.page(), e = window.location.href), yield j(Q, 500);
|
|
11204
11283
|
}
|
|
11205
11284
|
}
|
|
11206
|
-
function*
|
|
11207
|
-
yield [M(
|
|
11285
|
+
function* vS() {
|
|
11286
|
+
yield [M(_S)];
|
|
11208
11287
|
}
|
|
11209
11288
|
//#endregion
|
|
11210
11289
|
//#region src/scripts/actions/collision-mode-actions.js
|
|
11211
|
-
var
|
|
11212
|
-
let { xPosition: t, yPosition: n, xOffset: r, yOffset: i } = e.steps[0].traits.filter((e) => e.type === "@appcues/floating").find((e) => e.config?.target?.selector ===
|
|
11290
|
+
var yS = q(dc.SET_COLLISION_MODE), bS = "launchpad-button-wrapper", xS = (e, t) => e.checklist ? e.checklist.payload[0] : t.payload[0], SS = (e, t) => (e.experiences ? e.experiences.payload : t.payload).find((e) => e.type === "launchpad"), CS = (e) => {
|
|
11291
|
+
let { xPosition: t, yPosition: n, xOffset: r, yOffset: i } = e.steps[0].traits.filter((e) => e.type === "@appcues/floating").find((e) => e.config?.target?.selector === bS).config;
|
|
11213
11292
|
return {
|
|
11214
11293
|
position: `${n} ${t}`,
|
|
11215
11294
|
xOffset: r,
|
|
11216
11295
|
yOffset: i
|
|
11217
11296
|
};
|
|
11218
11297
|
};
|
|
11219
|
-
function*
|
|
11298
|
+
function* wS(e, t) {
|
|
11220
11299
|
if (!e || !t) {
|
|
11221
|
-
yield A(
|
|
11300
|
+
yield A(yS({
|
|
11222
11301
|
collisionMode: !1,
|
|
11223
11302
|
checklist: null
|
|
11224
11303
|
}));
|
|
11225
11304
|
return;
|
|
11226
11305
|
}
|
|
11227
|
-
let n = e.styles.position.toLowerCase(), { position: r, xOffset: i, yOffset: a } =
|
|
11228
|
-
yield A(
|
|
11306
|
+
let n = e.styles.position.toLowerCase(), { position: r, xOffset: i, yOffset: a } = CS(t);
|
|
11307
|
+
yield A(yS({
|
|
11229
11308
|
collisionMode: n === r,
|
|
11230
11309
|
checklist: e,
|
|
11231
11310
|
collisionCoordinates: {
|
|
@@ -11234,14 +11313,14 @@ function* _S(e, t) {
|
|
|
11234
11313
|
}
|
|
11235
11314
|
}));
|
|
11236
11315
|
}
|
|
11237
|
-
function*
|
|
11316
|
+
function* TS() {
|
|
11238
11317
|
let e = yield At({
|
|
11239
11318
|
checklist: k(K.UPDATE_CHECKLISTS),
|
|
11240
11319
|
experiences: k(lc.SHOW_EXPERIENCES)
|
|
11241
11320
|
}), t = yield e.checklist ? k(lc.SHOW_EXPERIENCES) : k(K.UPDATE_CHECKLISTS);
|
|
11242
|
-
yield j(
|
|
11321
|
+
yield j(wS, xS(e, t), SS(e, t));
|
|
11243
11322
|
}
|
|
11244
|
-
function*
|
|
11323
|
+
function* ES({ payload: { checklistId: e, forceClose: t } }) {
|
|
11245
11324
|
let n = yield N(Wr, e);
|
|
11246
11325
|
if (t) {
|
|
11247
11326
|
yield A(Xm(e));
|
|
@@ -11250,7 +11329,7 @@ function* yS({ payload: { checklistId: e, forceClose: t } }) {
|
|
|
11250
11329
|
let r = n.viewState === Te.EXPANDED;
|
|
11251
11330
|
r || (yield j(l)), yield A(r ? Xm(e) : Ym(e));
|
|
11252
11331
|
}
|
|
11253
|
-
function*
|
|
11332
|
+
function* DS({ payload: { collisionMode: e, checklist: n } }) {
|
|
11254
11333
|
if (!e) {
|
|
11255
11334
|
yield j(o);
|
|
11256
11335
|
return;
|
|
@@ -11264,12 +11343,12 @@ function* bS({ payload: { collisionMode: e, checklist: n } }) {
|
|
|
11264
11343
|
})]),
|
|
11265
11344
|
cancel: j(Q, 100)
|
|
11266
11345
|
});
|
|
11267
|
-
Object.prototype.hasOwnProperty.call(i, "cancel") && (yield j(
|
|
11346
|
+
Object.prototype.hasOwnProperty.call(i, "cancel") && (yield j(DS, { payload: {
|
|
11268
11347
|
collisionMode: e,
|
|
11269
11348
|
checklist: n
|
|
11270
11349
|
} }));
|
|
11271
11350
|
}
|
|
11272
|
-
function*
|
|
11351
|
+
function* OS() {
|
|
11273
11352
|
let e = hn((e) => (s((t) => {
|
|
11274
11353
|
e({
|
|
11275
11354
|
type: c,
|
|
@@ -11283,27 +11362,27 @@ function* xS() {
|
|
|
11283
11362
|
}), () => {}));
|
|
11284
11363
|
for (;;) yield A(yield k(e));
|
|
11285
11364
|
}
|
|
11286
|
-
function*
|
|
11365
|
+
function* kS() {
|
|
11287
11366
|
for (yield k(dc.SET_COLLISION_MODE);;) {
|
|
11288
|
-
let { payload: [e] } = yield k(K.UPDATE_CHECKLISTS), t = yield j(
|
|
11367
|
+
let { payload: [e] } = yield k(K.UPDATE_CHECKLISTS), t = yield j(Uv);
|
|
11289
11368
|
if (!t) return;
|
|
11290
11369
|
let n = null, r = 0;
|
|
11291
11370
|
for (; !n && r <= 10;) yield Q(100), n = t.getRunningExperiences().find((e) => e.type === "launchpad"), r += 1;
|
|
11292
|
-
n && (yield j(
|
|
11371
|
+
n && (yield j(wS, e, n));
|
|
11293
11372
|
}
|
|
11294
11373
|
}
|
|
11295
|
-
function*
|
|
11374
|
+
function* AS() {
|
|
11296
11375
|
yield [
|
|
11297
|
-
M(
|
|
11298
|
-
M(
|
|
11299
|
-
M(
|
|
11300
|
-
M(vn, c,
|
|
11301
|
-
M(vn, dc.SET_COLLISION_MODE,
|
|
11376
|
+
M(OS),
|
|
11377
|
+
M(kS),
|
|
11378
|
+
M(TS),
|
|
11379
|
+
M(vn, c, ES),
|
|
11380
|
+
M(vn, dc.SET_COLLISION_MODE, DS)
|
|
11302
11381
|
];
|
|
11303
11382
|
}
|
|
11304
11383
|
//#endregion
|
|
11305
11384
|
//#region src/scripts/clickstream/generate-selector.js
|
|
11306
|
-
var
|
|
11385
|
+
var jS = (/* @__PURE__ */ a(((e, t) => {
|
|
11307
11386
|
(function(n, r) {
|
|
11308
11387
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof e == "object" ? e.OptimalSelect = r() : n.OptimalSelect = r();
|
|
11309
11388
|
})(e, function() {
|
|
@@ -11702,48 +11781,48 @@ var wS = (/* @__PURE__ */ a(((e, t) => {
|
|
|
11702
11781
|
}
|
|
11703
11782
|
]);
|
|
11704
11783
|
});
|
|
11705
|
-
})))(),
|
|
11706
|
-
|
|
11707
|
-
DS,
|
|
11708
|
-
OS,
|
|
11709
|
-
kS,
|
|
11710
|
-
AS,
|
|
11711
|
-
NS,
|
|
11784
|
+
})))(), MS = /\d{2,}/, NS = /(ember(\d+))/, PS = /(appcues)/, FS = /(ng-.+)/, IS = /GCP/, LS = /(sc-.+)/, RS = /^(class)$/, zS = /{/, BS = /^\s+$/, VS = /^(sm|md|lg|xl|2xl):/, HS = /\[.*]/, US = [MS, NS], WS = [
|
|
11785
|
+
MS,
|
|
11712
11786
|
PS,
|
|
11713
|
-
FS
|
|
11714
|
-
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
],
|
|
11720
|
-
|
|
11721
|
-
|
|
11787
|
+
FS,
|
|
11788
|
+
IS,
|
|
11789
|
+
LS,
|
|
11790
|
+
BS,
|
|
11791
|
+
VS,
|
|
11792
|
+
HS
|
|
11793
|
+
], GS = [FS, RS], KS = [
|
|
11794
|
+
MS,
|
|
11795
|
+
PS,
|
|
11796
|
+
NS,
|
|
11797
|
+
zS
|
|
11798
|
+
], qS = /^[a-zA-Z_:][a-zA-Z0-9_:-]*$/, JS = (e) => !qS.test(e), YS = "|shadow-root|", XS = "|iframe|";
|
|
11799
|
+
function ZS(e, t = {}) {
|
|
11800
|
+
return (0, jS.select)(e, {
|
|
11722
11801
|
ignore: {
|
|
11723
|
-
id: (e, t) =>
|
|
11724
|
-
class: (e, t) =>
|
|
11725
|
-
attribute: (e, t, n) =>
|
|
11802
|
+
id: (e, t) => US.some((e) => e.test(t)),
|
|
11803
|
+
class: (e, t) => WS.some((e) => e.test(t)),
|
|
11804
|
+
attribute: (e, t, n) => JS(e) || GS.some((t) => t.test(e)) || KS.some((e) => e.test(t)) || n(e, t)
|
|
11726
11805
|
},
|
|
11727
11806
|
...t
|
|
11728
11807
|
});
|
|
11729
11808
|
}
|
|
11730
|
-
function
|
|
11809
|
+
function QS(e, t = "") {
|
|
11731
11810
|
let [n] = e;
|
|
11732
11811
|
if (!n) return t;
|
|
11733
11812
|
let r = n.getRootNode();
|
|
11734
|
-
if (r === document) return t ? `${
|
|
11813
|
+
if (r === document) return t ? `${ZS(n)} ${t}` : ZS(n);
|
|
11735
11814
|
if (r instanceof ShadowRoot) {
|
|
11736
11815
|
let i = e.indexOf(r);
|
|
11737
|
-
return
|
|
11816
|
+
return QS(e.slice(i + 1), `${YS} ${ZS(n, { root: e[i - 1] })} ${t}`);
|
|
11738
11817
|
}
|
|
11739
11818
|
let i = r.parentWindow || r.defaultView;
|
|
11740
11819
|
if (i !== window) {
|
|
11741
11820
|
let a = e.indexOf(r);
|
|
11742
|
-
return
|
|
11821
|
+
return QS(e.slice(a + 1), `${ZS(i.frameElement)} ${XS} ${ZS(n, { root: e[a - 1] })} ${t}`);
|
|
11743
11822
|
}
|
|
11744
11823
|
return t;
|
|
11745
11824
|
}
|
|
11746
|
-
function
|
|
11825
|
+
function $S(e) {
|
|
11747
11826
|
return [
|
|
11748
11827
|
"href",
|
|
11749
11828
|
"src",
|
|
@@ -11758,7 +11837,7 @@ function KS(e) {
|
|
|
11758
11837
|
return r && (t[n] = r), t;
|
|
11759
11838
|
}, {});
|
|
11760
11839
|
}
|
|
11761
|
-
function
|
|
11840
|
+
function eC(e) {
|
|
11762
11841
|
let t = [], n = e;
|
|
11763
11842
|
for (; n && n.nodeType === Node.ELEMENT_NODE;) {
|
|
11764
11843
|
let e = n.tagName.toLowerCase();
|
|
@@ -11774,12 +11853,12 @@ function qS(e) {
|
|
|
11774
11853
|
}
|
|
11775
11854
|
return t.join(" > ");
|
|
11776
11855
|
}
|
|
11777
|
-
function
|
|
11856
|
+
function tC(e) {
|
|
11778
11857
|
let t = e.tagName.toLowerCase(), n = {
|
|
11779
11858
|
tagName: e.tagName,
|
|
11780
|
-
path:
|
|
11859
|
+
path: eC(e),
|
|
11781
11860
|
...e.classList.length > 0 ? { class: [...e.classList] } : {},
|
|
11782
|
-
|
|
11861
|
+
...$S(e)
|
|
11783
11862
|
};
|
|
11784
11863
|
if (t === "button" || t === "input" && ["submit", "button"].includes(e.getAttribute("type"))) {
|
|
11785
11864
|
let t = e.value || e.getAttribute("value");
|
|
@@ -11793,7 +11872,7 @@ function JS(e) {
|
|
|
11793
11872
|
}
|
|
11794
11873
|
//#endregion
|
|
11795
11874
|
//#region src/scripts/clickstream/pii-filter.js
|
|
11796
|
-
var
|
|
11875
|
+
var nC = "[redacted]", rC = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, iC = /(^|[^\w/.-])(?:\+?1[\s\-.]?)?\(?\d{3}\)?[\s\-.]?\d{3}[\s\-.]?\d{4}\b/g, aC = /(^|[^\d/])\d{3}[-\s]?\d{2}[-\s]?\d{4}\b(?!\/)/g, oC = /(^|[^\w/.-])(?:\d[ -]?){13,16}\b(?!\/)/g, sC = /(^|[^/])(?:\b\d{1,2}[/-]\d{1,2}[/-]\d{4}\b|\b\d{4}[/-]\d{2}[/-]\d{2}\b|\b(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s+\d{1,2},?\s+\d{4}\b|\b\d{1,2}\s+(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s+\d{4}\b)(?!\/)/gi, cC = /(^|[^/])\b[1-9][ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY0-9][0-9][ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY0-9][0-9][ACDEFGHJKMNPQRTUVWXY]{2}[0-9]{2}\b(?!\/)/gi, lC = /(^|[^/])\b\d{2}\.\d{2}\.\d{2}-\d{3}\.\d{2}\b(?!\/)/g, uC = /\b\d{2}(?:0[1-9]|1[0-2])\d{2}[-+]\d{4}\b/g, dC = /\b\d{2}\.?(?:0[1-9]|1[0-2])\.?\d{2}[-+A]\d{3}[A-Z]\b/gi, fC = /\b\d{7}[A-W]W?\b/gi, pC = /\b[A-Z]{6}\d{2}[ABCDEHLMPRST]\d{2}[A-Z0-9]{5}\b/gi, mC = /\b[0-9XYZ]\d{7}[TRWAGMYFPDXBNJZSQVHLCKE]\b/gi, hC = /\b756\.?\d{4}\.?\d{4}\.?\d{2}\b/g, gC = /\b[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z]\d{6}[A-D]\b/g, _C = /\b[A-Z]{2}[ ]?\d{2}(?:[ ]?[A-Z0-9]{4}){3,8}(?:[ ]?[A-Z0-9]{1,3})?\b/g, vC = new Set([
|
|
11797
11876
|
"email",
|
|
11798
11877
|
"ssn",
|
|
11799
11878
|
"password",
|
|
@@ -11814,7 +11893,7 @@ var YS = "[redacted]", XS = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, Z
|
|
|
11814
11893
|
"diagnosis",
|
|
11815
11894
|
"patient_id",
|
|
11816
11895
|
"npi"
|
|
11817
|
-
]),
|
|
11896
|
+
]), yC = ["href", "src"], bC = [
|
|
11818
11897
|
"text",
|
|
11819
11898
|
"href",
|
|
11820
11899
|
"src",
|
|
@@ -11826,11 +11905,11 @@ var YS = "[redacted]", XS = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, Z
|
|
|
11826
11905
|
"id",
|
|
11827
11906
|
"value",
|
|
11828
11907
|
"path"
|
|
11829
|
-
],
|
|
11830
|
-
function
|
|
11831
|
-
return typeof e == "string" ? e.replace(
|
|
11908
|
+
], xC = `$1${nC}`;
|
|
11909
|
+
function SC(e) {
|
|
11910
|
+
return typeof e == "string" ? e.replace(rC, nC).replace(_C, nC).replace(iC, xC).replace(aC, xC).replace(oC, xC).replace(sC, xC).replace(cC, xC).replace(lC, xC).replace(uC, nC).replace(dC, nC).replace(fC, nC).replace(pC, nC).replace(mC, nC).replace(hC, nC).replace(gC, nC) : e;
|
|
11832
11911
|
}
|
|
11833
|
-
function
|
|
11912
|
+
function CC(e) {
|
|
11834
11913
|
if (typeof e != "string") return e;
|
|
11835
11914
|
try {
|
|
11836
11915
|
let t = new URL(e);
|
|
@@ -11839,48 +11918,48 @@ function gC(e) {
|
|
|
11839
11918
|
return e.replace(/\?[^#]*/, "");
|
|
11840
11919
|
}
|
|
11841
11920
|
}
|
|
11842
|
-
function
|
|
11843
|
-
let { attributes: t = {} } = e, n = (t.name || "").toLowerCase(), r = (t.id || "").toLowerCase(), i =
|
|
11844
|
-
for (let e of
|
|
11845
|
-
for (let e of
|
|
11846
|
-
return a.identifier !== void 0 && a.selector !== void 0 && (a.identifier = `selector=${encodeURIComponent(a.selector)}`), i && (a.text !== void 0 && (a.text =
|
|
11921
|
+
function wC(e) {
|
|
11922
|
+
let { attributes: t = {} } = e, n = (t.name || "").toLowerCase(), r = (t.id || "").toLowerCase(), i = vC.has(n) || vC.has(r), a = { ...t };
|
|
11923
|
+
for (let e of yC) a[e] !== void 0 && (a[e] = CC(a[e]));
|
|
11924
|
+
for (let e of bC) a[e] !== void 0 && (a[e] = SC(a[e]));
|
|
11925
|
+
return a.identifier !== void 0 && a.selector !== void 0 && (a.identifier = `selector=${encodeURIComponent(a.selector)}`), i && (a.text !== void 0 && (a.text = nC), a.value !== void 0 && (a.value = nC)), {
|
|
11847
11926
|
...e,
|
|
11848
11927
|
attributes: a
|
|
11849
11928
|
};
|
|
11850
11929
|
}
|
|
11851
11930
|
//#endregion
|
|
11852
11931
|
//#region src/scripts/clickstream/saga.js
|
|
11853
|
-
var
|
|
11932
|
+
var TC = 3e4, EC = new Set([
|
|
11854
11933
|
"INPUT",
|
|
11855
11934
|
"TEXTAREA",
|
|
11856
11935
|
"SELECT"
|
|
11857
|
-
]),
|
|
11936
|
+
]), DC = new Set([
|
|
11858
11937
|
"BUTTON",
|
|
11859
11938
|
"A",
|
|
11860
11939
|
"INPUT",
|
|
11861
11940
|
"SELECT"
|
|
11862
11941
|
]);
|
|
11863
|
-
function
|
|
11942
|
+
function OC(e) {
|
|
11864
11943
|
return e.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? e.host : e.parentNode;
|
|
11865
11944
|
}
|
|
11866
|
-
function
|
|
11945
|
+
function kC(e) {
|
|
11867
11946
|
if (e.length === 0) return null;
|
|
11868
11947
|
let [t] = e;
|
|
11869
|
-
return t.tagName === "SLOT" ?
|
|
11948
|
+
return t.tagName === "SLOT" ? kC(e.slice(1)) : e;
|
|
11870
11949
|
}
|
|
11871
|
-
function
|
|
11872
|
-
let t = [e], n =
|
|
11873
|
-
for (; n;) t.push(n), n =
|
|
11874
|
-
return
|
|
11950
|
+
function AC(e) {
|
|
11951
|
+
let t = [e], n = OC(e);
|
|
11952
|
+
for (; n;) t.push(n), n = OC(n);
|
|
11953
|
+
return kC(t);
|
|
11875
11954
|
}
|
|
11876
|
-
function
|
|
11955
|
+
function jC() {
|
|
11877
11956
|
return {
|
|
11878
11957
|
url: window.location.href,
|
|
11879
11958
|
sdk_version: window.AppcuesBundleSettings && window.AppcuesBundleSettings.VERSION
|
|
11880
11959
|
};
|
|
11881
11960
|
}
|
|
11882
|
-
function
|
|
11883
|
-
let [t] = e.composedPath(), n =
|
|
11961
|
+
function MC(e) {
|
|
11962
|
+
let [t] = e.composedPath(), n = AC(t), [r] = n, i = tC(r), a = QS(n);
|
|
11884
11963
|
return hu("appcues:clickstream", {
|
|
11885
11964
|
interaction: "click",
|
|
11886
11965
|
identifier: `selector=${encodeURIComponent(a)}`,
|
|
@@ -11888,10 +11967,10 @@ function TC(e) {
|
|
|
11888
11967
|
...i
|
|
11889
11968
|
});
|
|
11890
11969
|
}
|
|
11891
|
-
function
|
|
11970
|
+
function NC(e) {
|
|
11892
11971
|
let [t] = e.composedPath();
|
|
11893
|
-
if (!t || !
|
|
11894
|
-
let n =
|
|
11972
|
+
if (!t || !EC.has(t.tagName)) return null;
|
|
11973
|
+
let n = AC(t), [r] = n, i = tC(r), a = QS(n);
|
|
11895
11974
|
return hu("appcues:clickstream", {
|
|
11896
11975
|
interaction: "input-change",
|
|
11897
11976
|
identifier: `selector=${encodeURIComponent(a)}`,
|
|
@@ -11899,20 +11978,20 @@ function EC(e) {
|
|
|
11899
11978
|
...i
|
|
11900
11979
|
});
|
|
11901
11980
|
}
|
|
11902
|
-
function*
|
|
11981
|
+
function* PC(e) {
|
|
11903
11982
|
let t = yield N(qn);
|
|
11904
|
-
(yield j($h, t)) || (yield j(
|
|
11905
|
-
let { id: n } = yield N(ir), r = yield j(
|
|
11906
|
-
yield j(rg, t, {}, e, !1, r, n, {},
|
|
11983
|
+
(yield j($h, t)) || (yield j(Oy), t = yield N(qn));
|
|
11984
|
+
let { id: n } = yield N(ir), r = yield j(n_, h, v);
|
|
11985
|
+
yield j(rg, t, {}, e, !1, r, n, {}, jC());
|
|
11907
11986
|
}
|
|
11908
|
-
function
|
|
11987
|
+
function FC() {
|
|
11909
11988
|
return hn((e) => {
|
|
11910
11989
|
let t = (t) => {
|
|
11911
11990
|
try {
|
|
11912
|
-
e(
|
|
11991
|
+
e(MC(t));
|
|
11913
11992
|
} catch {}
|
|
11914
11993
|
}, n = (e) => {
|
|
11915
|
-
(e.key === " " || e.key === "Enter") && !
|
|
11994
|
+
(e.key === " " || e.key === "Enter") && !DC.has(e.target.tagName) && t(e);
|
|
11916
11995
|
};
|
|
11917
11996
|
try {
|
|
11918
11997
|
return document.addEventListener("click", t, !0), document.addEventListener("keyup", n, !0), () => {
|
|
@@ -11923,11 +12002,11 @@ function OC() {
|
|
|
11923
12002
|
}
|
|
11924
12003
|
}, Qt.expanding(10));
|
|
11925
12004
|
}
|
|
11926
|
-
function
|
|
12005
|
+
function IC() {
|
|
11927
12006
|
return hn((e) => {
|
|
11928
12007
|
let t = (t) => {
|
|
11929
12008
|
try {
|
|
11930
|
-
let n =
|
|
12009
|
+
let n = NC(t);
|
|
11931
12010
|
n && e(n);
|
|
11932
12011
|
} catch {}
|
|
11933
12012
|
};
|
|
@@ -11940,12 +12019,12 @@ function kC() {
|
|
|
11940
12019
|
}
|
|
11941
12020
|
}, Qt.expanding(10));
|
|
11942
12021
|
}
|
|
11943
|
-
function*
|
|
12022
|
+
function* LC(e, t) {
|
|
11944
12023
|
yield vn(e, function* (e) {
|
|
11945
12024
|
let { id: n } = yield N(ir);
|
|
11946
|
-
yield A(t,
|
|
12025
|
+
yield A(t, wC({
|
|
11947
12026
|
...e,
|
|
11948
|
-
context:
|
|
12027
|
+
context: jC(),
|
|
11949
12028
|
attributes: {
|
|
11950
12029
|
...e.attributes,
|
|
11951
12030
|
sessionId: n
|
|
@@ -11953,11 +12032,11 @@ function* AC(e, t) {
|
|
|
11953
12032
|
}));
|
|
11954
12033
|
});
|
|
11955
12034
|
}
|
|
11956
|
-
function*
|
|
11957
|
-
let e = yield j(mn, Qt.expanding(10)), t = yield j(mn), n =
|
|
11958
|
-
yield*
|
|
11959
|
-
let r =
|
|
11960
|
-
yield*
|
|
12035
|
+
function* RC() {
|
|
12036
|
+
let e = yield j(mn, Qt.expanding(10)), t = yield j(mn), n = FC();
|
|
12037
|
+
yield* LC(n, e);
|
|
12038
|
+
let r = IC();
|
|
12039
|
+
yield* LC(r, e);
|
|
11961
12040
|
let i = () => {
|
|
11962
12041
|
t.put("INTERRUPT");
|
|
11963
12042
|
};
|
|
@@ -11965,72 +12044,72 @@ function* jC() {
|
|
|
11965
12044
|
try {
|
|
11966
12045
|
for (;;) {
|
|
11967
12046
|
yield At({
|
|
11968
|
-
delay: Qe(
|
|
12047
|
+
delay: Qe(TC),
|
|
11969
12048
|
force: k(t)
|
|
11970
12049
|
});
|
|
11971
12050
|
let n = yield Lt(e);
|
|
11972
12051
|
if (n.length > 0) try {
|
|
11973
|
-
yield j(
|
|
12052
|
+
yield j(PC, n);
|
|
11974
12053
|
} catch {}
|
|
11975
12054
|
}
|
|
11976
12055
|
} finally {
|
|
11977
12056
|
window.removeEventListener("beforeunload", i), n.close(), r.close();
|
|
11978
12057
|
let a = yield Lt(e);
|
|
11979
|
-
a.length > 0 && (yield j(
|
|
12058
|
+
a.length > 0 && (yield j(PC, a)), e.close(), t.close();
|
|
11980
12059
|
}
|
|
11981
12060
|
}
|
|
11982
12061
|
//#endregion
|
|
11983
12062
|
//#region src/styles/container.css?url
|
|
11984
|
-
var
|
|
12063
|
+
var zC = "/generic/main/7.25.0/container.7382849d2ae897a1629360cfe8e459f8f639cf7b.css", BC = "sha256-lSNoLP5iR6z+5ZIuDIIBsSUCzS4XW0jHmE9J8Qsp1ao=";
|
|
11985
12064
|
window.performance && window.performance.mark && window.performance.mark("apc-init"), wg();
|
|
11986
|
-
var
|
|
12065
|
+
var VC = window.AppcuesBundleSettings;
|
|
11987
12066
|
[...document.documentElement.querySelectorAll("link")].forEach((e) => {
|
|
11988
12067
|
/\/appcues(\.min|\.debug)?\.css$/.test(e.href) && e.parentElement && e.parentElement.removeChild(e);
|
|
11989
12068
|
});
|
|
11990
|
-
var
|
|
11991
|
-
|
|
11992
|
-
var
|
|
11993
|
-
P.object(
|
|
11994
|
-
var
|
|
11995
|
-
|
|
11996
|
-
var
|
|
11997
|
-
settings:
|
|
12069
|
+
var HC = document.createElement("link");
|
|
12070
|
+
HC.setAttribute("rel", "stylesheet"), HC.setAttribute("type", "text/css"), HC.setAttribute("integrity", BC), HC.setAttribute("crossorigin", "anonymous"), HC.setAttribute("href", ys(zC)), document.head.appendChild(HC);
|
|
12071
|
+
var UC = window[se];
|
|
12072
|
+
P.object(UC) && P.defined(UC.gaTracker) && VC.integrations.ga && (VC.integrations.ga.trackerName = UC.gaTracker);
|
|
12073
|
+
var WC = null, GC = document.documentElement.querySelector("script[src*=\"fast.appcues\"]");
|
|
12074
|
+
GC && (WC = GC.getAttribute("data-user-id"));
|
|
12075
|
+
var KC = _h({
|
|
12076
|
+
settings: VC,
|
|
11998
12077
|
sagas: [
|
|
11999
|
-
|
|
12000
|
-
|
|
12001
|
-
|
|
12002
|
-
|
|
12003
|
-
|
|
12004
|
-
|
|
12005
|
-
|
|
12006
|
-
qx,
|
|
12007
|
-
Yx,
|
|
12078
|
+
db,
|
|
12079
|
+
Vv,
|
|
12080
|
+
px,
|
|
12081
|
+
Z_,
|
|
12082
|
+
Cx,
|
|
12083
|
+
Ux,
|
|
12084
|
+
Px,
|
|
12008
12085
|
eS,
|
|
12009
|
-
Sx,
|
|
12010
12086
|
nS,
|
|
12011
|
-
|
|
12087
|
+
sS,
|
|
12088
|
+
kx,
|
|
12012
12089
|
lS,
|
|
12013
|
-
|
|
12090
|
+
M_,
|
|
12091
|
+
gS,
|
|
12092
|
+
ry,
|
|
12014
12093
|
ad,
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
|
|
12094
|
+
vS,
|
|
12095
|
+
by,
|
|
12096
|
+
AS,
|
|
12018
12097
|
function* () {
|
|
12019
|
-
yield M(
|
|
12098
|
+
yield M(Db, VC.events);
|
|
12020
12099
|
},
|
|
12021
12100
|
function* () {
|
|
12022
|
-
|
|
12101
|
+
VC.account?.clickstreamEnabled === !0 && (yield M(RC));
|
|
12023
12102
|
}
|
|
12024
12103
|
],
|
|
12025
12104
|
onStateChange: (e) => {
|
|
12026
|
-
|
|
12105
|
+
nx(e), ux(e);
|
|
12027
12106
|
}
|
|
12028
12107
|
});
|
|
12029
|
-
|
|
12030
|
-
var
|
|
12031
|
-
|
|
12032
|
-
if (
|
|
12033
|
-
let t =
|
|
12108
|
+
KC.dispatch(Xc({ [w.DEBUGGER]: dx(KC.dispatch, KC.getState) })), KC.dispatch(pc(VC, Pg(KC), yg, Fg(VC, KC.getState)));
|
|
12109
|
+
var qC = zb(KC);
|
|
12110
|
+
VC && VC.snippets && Bb(VC.accountId, VC.snippets), VC && VC.integrations && Object.keys(VC.integrations).forEach((e) => {
|
|
12111
|
+
if (VC.integrations[e].isEnabled) {
|
|
12112
|
+
let t = qC[`init${{
|
|
12034
12113
|
mixpanel: "Mixpanel",
|
|
12035
12114
|
heap: "Heap",
|
|
12036
12115
|
intercom: "Intercom",
|
|
@@ -12054,6 +12133,6 @@ PC && PC.integrations && Object.keys(PC.integrations).forEach((e) => {
|
|
|
12054
12133
|
}[e]}`];
|
|
12055
12134
|
t && t();
|
|
12056
12135
|
}
|
|
12057
|
-
}), /hey_appcues/i.test(window.location.search) &&
|
|
12136
|
+
}), /hey_appcues/i.test(window.location.search) && qC.debug(), WC !== null && qC.identify(WC);
|
|
12058
12137
|
//#endregion
|
|
12059
|
-
export {
|
|
12138
|
+
export { qC as default };
|