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