@appcues/web-sdk 7.28.4 → 7.29.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.DzjbZMq5.js → bootstrap.npm.B78wv9ok.js} +882 -893
- 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.6358d11775a6874904189b2cd6c11e6e13005830.css → checklist.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css} +0 -0
- /package/build/{container.6358d11775a6874904189b2cd6c11e6e13005830.css → container.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css} +0 -0
- /package/build/{debugger.6358d11775a6874904189b2cd6c11e6e13005830.css → debugger.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css} +0 -0
- /package/build/{modal-step-legacy-render.6358d11775a6874904189b2cd6c11e6e13005830.css → modal-step-legacy-render.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css} +0 -0
- /package/build/{modal.6358d11775a6874904189b2cd6c11e6e13005830.css → modal.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css} +0 -0
- /package/build/{satisfaction-survey.6358d11775a6874904189b2cd6c11e6e13005830.css → satisfaction-survey.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css} +0 -0
- /package/build/{test-mode.6358d11775a6874904189b2cd6c11e6e13005830.css → test-mode.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css} +0 -0
- /package/build/{tooltip.6358d11775a6874904189b2cd6c11e6e13005830.css → tooltip.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css} +0 -0
|
@@ -1959,7 +1959,7 @@ function ws(e) {
|
|
|
1959
1959
|
}
|
|
1960
1960
|
//#endregion
|
|
1961
1961
|
//#region src/styles/checklist.css?url
|
|
1962
|
-
var Ts = "/generic/main/7.
|
|
1962
|
+
var Ts = "/generic/main/7.29.0/checklist.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css", Es = "sha256-nAc5flAJi0Zjw2e4dNb/h3dOFdfvjtxYDQq0PaMT7U4=", Ds = ws(Ts), Os = 30, ks = -300, As = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", js = null, Ms = null, Ns = null, Ps = null, Fs = (e) => {
|
|
1963
1963
|
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: ee, progress_state: x, is_sequential: S, is_dismissable: te, showBadge: ne, collisionMode: re, collisionCoordinates: ie, isInjectableSDK: ae, styling: oe } = e, se = (e) => {
|
|
1964
1964
|
ae || setTimeout(() => {
|
|
1965
1965
|
us(e.elm);
|
|
@@ -5335,7 +5335,7 @@ function Cf(e, t, n, r) {
|
|
|
5335
5335
|
}
|
|
5336
5336
|
//#endregion
|
|
5337
5337
|
//#region src/styles/modal.css?url
|
|
5338
|
-
var wf = "/generic/main/7.
|
|
5338
|
+
var wf = "/generic/main/7.29.0/modal.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css", Tf = "/generic/main/7.29.0/modal-step-legacy-render.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css", Ef = "sha256-Ull2pU6HfREgLRggKNNGV6AHaWBAw5OeIuetlkHnUZY=", Df = "sha256-Ea5gC5g6QacVSWApI6ApmuZheqr4EDl50hD7GyRsaz0=", Of = ws(Tf), kf = ws(wf), Af = new Set(["shorty", "slideout"]);
|
|
5339
5339
|
function jf(e) {
|
|
5340
5340
|
if (!e) return;
|
|
5341
5341
|
let { style: t } = e;
|
|
@@ -5532,7 +5532,7 @@ function Lf({ patternType: e, hidden: t }) {
|
|
|
5532
5532
|
}
|
|
5533
5533
|
//#endregion
|
|
5534
5534
|
//#region src/styles/tooltip.css?url
|
|
5535
|
-
var Rf = "/generic/main/7.
|
|
5535
|
+
var Rf = "/generic/main/7.29.0/tooltip.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css", zf = "sha256-r4KmO5sl5F5wxrVA5ANjinquA8nBo4ZaSoFboEJwvzs=", Bf = ws(Rf), Vf = "//twemoji.maxcdn.com/2/svg/", Hf = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Uf = "pattern-title", Wf = "Hide these tips";
|
|
5536
5536
|
function Gf(e, t) {
|
|
5537
5537
|
return {
|
|
5538
5538
|
skippable: e.skippable,
|
|
@@ -6454,7 +6454,7 @@ function jp(e) {
|
|
|
6454
6454
|
}
|
|
6455
6455
|
//#endregion
|
|
6456
6456
|
//#region src/styles/satisfaction-survey.css?url
|
|
6457
|
-
var Mp = "/generic/main/7.
|
|
6457
|
+
var Mp = "/generic/main/7.29.0/satisfaction-survey.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css", Np = "sha256-sj4TgtPXrfHc+Sox7I2a7KJr+2zaoe/PhcBrvvCXAEw=", Pp = ws(Mp), Fp, Ip;
|
|
6458
6458
|
function Lp(e) {
|
|
6459
6459
|
let t = I(e), n = gr(e), r = hr(e), i = Cr(e), a = Sr(e, xr(e)), o = i[a], s = t.attributes.pattern_type, { position: c } = t.attributes, l = e.views.callbacks[C.SATISFACTION_SURVEY], u = n.cssLoaded, d = Rs(e.settings), f = r !== w.SHOWING, p = {}, m = u && N.inArray([w.SHOWING, w.WILL_CLOSE], r);
|
|
6460
6460
|
m || (p = { display: "none" }), p = {
|
|
@@ -8014,25 +8014,18 @@ function Cg(e, t, n, r) {
|
|
|
8014
8014
|
}) : (a = t.channel(n, i), o(a.join()));
|
|
8015
8015
|
});
|
|
8016
8016
|
}
|
|
8017
|
-
var wg = 1200 * 1e3;
|
|
8018
|
-
function
|
|
8019
|
-
|
|
8017
|
+
var wg = 1200 * 1e3, Tg = /* @__PURE__ */ new WeakMap();
|
|
8018
|
+
function Eg(e) {
|
|
8019
|
+
let t = Tg.get(e);
|
|
8020
|
+
t && (clearTimeout(t), Tg.delete(e));
|
|
8020
8021
|
}
|
|
8021
|
-
var Eg = /* @__PURE__ */ new WeakMap();
|
|
8022
8022
|
function Dg(e) {
|
|
8023
|
-
|
|
8024
|
-
|
|
8023
|
+
e && (Eg(e), Tg.set(e, setTimeout(() => {
|
|
8024
|
+
Tg.delete(e), e.isConnected() && e.disconnect();
|
|
8025
|
+
}, wg)));
|
|
8025
8026
|
}
|
|
8026
8027
|
function Og(e) {
|
|
8027
|
-
|
|
8028
|
-
Dg(e);
|
|
8029
|
-
let t = Tg();
|
|
8030
|
-
t && Eg.set(e, setTimeout(() => {
|
|
8031
|
-
Eg.delete(e), e.isConnected() && e.disconnect();
|
|
8032
|
-
}, t));
|
|
8033
|
-
}
|
|
8034
|
-
function kg(e) {
|
|
8035
|
-
return e.isConnected() ? (Og(e), Promise.resolve()) : new Promise((t, n) => {
|
|
8028
|
+
return e.isConnected() ? (Dg(e), Promise.resolve()) : new Promise((t, n) => {
|
|
8036
8029
|
let r, i = () => e.off(r);
|
|
8037
8030
|
r = [e.onOpen(() => {
|
|
8038
8031
|
i(), t();
|
|
@@ -8052,11 +8045,10 @@ function kg(e) {
|
|
|
8052
8045
|
}
|
|
8053
8046
|
});
|
|
8054
8047
|
}
|
|
8055
|
-
var
|
|
8048
|
+
var kg = {
|
|
8056
8049
|
create: (e, t, n, r) => {
|
|
8057
8050
|
let i = new Hh(vg(), { reportError: n });
|
|
8058
|
-
i.onOpen(() =>
|
|
8059
|
-
let a = () => r({
|
|
8051
|
+
i.onOpen(() => Dg(i)), r({
|
|
8060
8052
|
type: "WS",
|
|
8061
8053
|
details: {
|
|
8062
8054
|
socket: i,
|
|
@@ -8064,13 +8056,10 @@ var Ag = {
|
|
|
8064
8056
|
onTimeout: t
|
|
8065
8057
|
}
|
|
8066
8058
|
});
|
|
8067
|
-
window.AppcuesBundleSettings?.account?.lazySocketConnect === !0 ? a() : (i.onOpen(a), i.onError(() => {
|
|
8068
|
-
r(null, /* @__PURE__ */ Error("Error connecting to WebSocket."));
|
|
8069
|
-
}), i.connect());
|
|
8070
8059
|
},
|
|
8071
8060
|
send: (e, t, n, r, i = "event") => {
|
|
8072
8061
|
let a = bg(e, t);
|
|
8073
|
-
if (a && a.canPush())
|
|
8062
|
+
if (a && a.canPush()) Dg(Lr(e)), a.push(i, n).receive("ok", (t) => e.transport.details.onMessage({
|
|
8074
8063
|
request_id: n.request_id,
|
|
8075
8064
|
type: i,
|
|
8076
8065
|
...t
|
|
@@ -8102,7 +8091,7 @@ var Ag = {
|
|
|
8102
8091
|
}),
|
|
8103
8092
|
configure: (e, t) => {
|
|
8104
8093
|
let n = Lr(e), r = rr(e) ? "v2" : "v1";
|
|
8105
|
-
return
|
|
8094
|
+
return Og(n).then(() => Promise.all(yg.map((t) => Cg(e.transport, n, t.name(e), r)))).then((e) => {
|
|
8106
8095
|
let n = {};
|
|
8107
8096
|
e.forEach((e) => {
|
|
8108
8097
|
n[e.topic] = e.channel;
|
|
@@ -8111,7 +8100,7 @@ var Ag = {
|
|
|
8111
8100
|
t(null, e);
|
|
8112
8101
|
});
|
|
8113
8102
|
}
|
|
8114
|
-
},
|
|
8103
|
+
}, Ag = {
|
|
8115
8104
|
init: () => "apc_init",
|
|
8116
8105
|
request: (e) => `apc_req_start_${e}`,
|
|
8117
8106
|
attempt: (e) => `apc_attempted_${e}`,
|
|
@@ -8119,15 +8108,15 @@ var Ag = {
|
|
|
8119
8108
|
render: (e) => `apc_rendered_${e}`,
|
|
8120
8109
|
css: (e) => `apc_css_loaded_${e}`,
|
|
8121
8110
|
shown: (e) => `apc_shown_${e}`
|
|
8122
|
-
},
|
|
8123
|
-
function
|
|
8111
|
+
}, jg = "apc_flow_performance";
|
|
8112
|
+
function Mg(e) {
|
|
8124
8113
|
try {
|
|
8125
8114
|
document.visibilityState === "visible" && window.performance.mark(e);
|
|
8126
8115
|
} catch {}
|
|
8127
8116
|
}
|
|
8128
|
-
function
|
|
8117
|
+
function Ng(e, t) {
|
|
8129
8118
|
try {
|
|
8130
|
-
return window.performance.measure(
|
|
8119
|
+
return window.performance.measure(jg, {
|
|
8131
8120
|
start: e,
|
|
8132
8121
|
end: t,
|
|
8133
8122
|
detail: `${e} to ${t}`
|
|
@@ -8136,8 +8125,8 @@ function Pg(e, t) {
|
|
|
8136
8125
|
return NaN;
|
|
8137
8126
|
}
|
|
8138
8127
|
}
|
|
8139
|
-
var
|
|
8140
|
-
function
|
|
8128
|
+
var Pg = () => Mg(Ag.init()), Fg = (e) => Mg(Ag.request(e)), Ig = (e) => Mg(Ag.response(e)), Lg = (e) => Mg(Ag.attempt(e)), Rg = (e) => Mg(Ag.render(e)), zg = (e) => Mg(Ag.css(e)), Bg = (e) => Mg(Ag.shown(e));
|
|
8129
|
+
function Vg(e) {
|
|
8141
8130
|
return !(e.css_load_time < 0 || [
|
|
8142
8131
|
"api_response_duration",
|
|
8143
8132
|
"time_to_attempt",
|
|
@@ -8147,43 +8136,43 @@ function Hg(e) {
|
|
|
8147
8136
|
"time_to_show"
|
|
8148
8137
|
].some((t) => Number.isNaN(e[t])));
|
|
8149
8138
|
}
|
|
8150
|
-
function
|
|
8139
|
+
function Hg(e) {
|
|
8151
8140
|
try {
|
|
8152
|
-
Object.values(
|
|
8141
|
+
Object.values(Ag).forEach((t) => {
|
|
8153
8142
|
window.performance.clearMarks(t(e));
|
|
8154
|
-
}), window.performance.clearMeasures(
|
|
8143
|
+
}), window.performance.clearMeasures(jg);
|
|
8155
8144
|
} catch {}
|
|
8156
8145
|
}
|
|
8157
|
-
function
|
|
8146
|
+
function Ug(e, t) {
|
|
8158
8147
|
try {
|
|
8159
|
-
let n =
|
|
8148
|
+
let n = Ag.request(e), r = Ag.response(e), i = Ag.attempt(e), a = Ag.render(e), o = Ag.css(e), s = Ag.shown(e), c = NaN;
|
|
8160
8149
|
try {
|
|
8161
|
-
c =
|
|
8150
|
+
c = Ng(0, Ag.init());
|
|
8162
8151
|
} catch {
|
|
8163
8152
|
console.error("Appcues: skipping init_time since it doesn't exist");
|
|
8164
8153
|
}
|
|
8165
8154
|
let l = {
|
|
8166
8155
|
...Number.isNaN(c) ? {} : { init_time: c },
|
|
8167
|
-
api_response_duration:
|
|
8168
|
-
time_to_attempt:
|
|
8169
|
-
time_to_render:
|
|
8170
|
-
css_load_time:
|
|
8171
|
-
time_to_reveal:
|
|
8172
|
-
time_to_show:
|
|
8156
|
+
api_response_duration: Ng(n, r),
|
|
8157
|
+
time_to_attempt: Ng(r, i),
|
|
8158
|
+
time_to_render: Ng(i, a),
|
|
8159
|
+
css_load_time: Ng(a, o),
|
|
8160
|
+
time_to_reveal: Ng(o, s),
|
|
8161
|
+
time_to_show: Ng(n, s),
|
|
8173
8162
|
step_type: t,
|
|
8174
8163
|
request_id: e
|
|
8175
8164
|
};
|
|
8176
|
-
return
|
|
8165
|
+
return Hg(e), Vg(l) ? l : null;
|
|
8177
8166
|
} catch (e) {
|
|
8178
8167
|
return console.error("Appcues: could not generate timing report", e), null;
|
|
8179
8168
|
}
|
|
8180
8169
|
}
|
|
8181
8170
|
//#endregion
|
|
8182
8171
|
//#region src/scripts/data/message-dispatcher.js
|
|
8183
|
-
function
|
|
8172
|
+
function Wg(e) {
|
|
8184
8173
|
return {
|
|
8185
8174
|
onMessage(t) {
|
|
8186
|
-
t.request_id &&
|
|
8175
|
+
t.request_id && Ig(t.request_id), e.dispatch(bc(t));
|
|
8187
8176
|
},
|
|
8188
8177
|
onTimeout(t) {
|
|
8189
8178
|
e.dispatch(xc(t));
|
|
@@ -8192,26 +8181,26 @@ function Gg(e) {
|
|
|
8192
8181
|
}
|
|
8193
8182
|
//#endregion
|
|
8194
8183
|
//#region src/scripts/utils/create-reporter.js
|
|
8195
|
-
function
|
|
8184
|
+
function Gg(e, t) {
|
|
8196
8185
|
return () => {};
|
|
8197
8186
|
}
|
|
8198
8187
|
//#endregion
|
|
8199
8188
|
//#region src/scripts/actions/debugger-actions.js
|
|
8200
|
-
var
|
|
8189
|
+
var Kg = K(dc.TOGGLE_ROW_DETAILS), qg = K(dc.TOGGLE_COLLAPSED), Jg = K(dc.SET_CURRENT_PAGE), Yg = K(dc.TRACK_PAGE), Xg = K(dc.ADD_CONTENT_ERROR, (e, t) => ({
|
|
8201
8190
|
contentId: e,
|
|
8202
8191
|
errorMessage: t
|
|
8203
|
-
})),
|
|
8192
|
+
})), Zg = K(dc.ADD_CHILD_ERROR, (e, t, n) => ({
|
|
8204
8193
|
contentId: e,
|
|
8205
8194
|
childId: t,
|
|
8206
8195
|
errorMessage: n
|
|
8207
|
-
})),
|
|
8196
|
+
})), Qg = K(dc.ADD_EXPERIENCE_ERROR, (e, t, n = !1) => ({
|
|
8208
8197
|
experienceId: e,
|
|
8209
8198
|
message: t,
|
|
8210
8199
|
isFatal: n
|
|
8211
|
-
})),
|
|
8200
|
+
})), $g = K(dc.CLEAR_EXPERIENCE_ERROR, (e) => ({ experienceId: e })), e_ = K(dc.CLOSE_DEBUGGER), t_ = K(mc.PAUSE_EXPERIENCE), n_ = K(mc.RESUME_EXPERIENCE), r_ = K(mc.SHOW_EXPERIENCES), i_ = K(mc.SAVE_ON_HOLD_LAUNCHPADS), a_ = K(mc.UNHIDE_LAUNCHPADS), o_ = K(mc.HIDE_LAUNCHPADS);
|
|
8212
8201
|
//#endregion
|
|
8213
8202
|
//#region src/scripts/snippets/error.js
|
|
8214
|
-
function
|
|
8203
|
+
function s_(e) {
|
|
8215
8204
|
e.__reportSnippetError = function(e, t, n, r) {
|
|
8216
8205
|
let i = r?.message ?? String(r), a = `Snippet ${t} ${n} failed: ${i}`;
|
|
8217
8206
|
e.reportError && e.reportError(a), e.sendCustomEvent && e.sendCustomEvent("appcues:v2:step_error", {
|
|
@@ -8224,7 +8213,7 @@ function c_(e) {
|
|
|
8224
8213
|
}
|
|
8225
8214
|
//#endregion
|
|
8226
8215
|
//#region src/scripts/snippets/context.js
|
|
8227
|
-
function
|
|
8216
|
+
function c_(e, t) {
|
|
8228
8217
|
e.__createSnippetContext = function(n, r, i) {
|
|
8229
8218
|
let a = t().snippetContext || {}, o = n.step?.getConfig?.() ?? {}, s = n.steps?.findIndex((e) => e.getConfig?.().id === o.id);
|
|
8230
8219
|
return {
|
|
@@ -8261,29 +8250,29 @@ function l_(e, t) {
|
|
|
8261
8250
|
}
|
|
8262
8251
|
//#endregion
|
|
8263
8252
|
//#region src/scripts/snippets/register.js
|
|
8264
|
-
var
|
|
8265
|
-
function
|
|
8253
|
+
var l_ = /* @__PURE__ */ new Map(), u_ = /* @__PURE__ */ new Map();
|
|
8254
|
+
function d_(e) {
|
|
8266
8255
|
e.registerTrait = function(e, t) {
|
|
8267
|
-
|
|
8256
|
+
l_.set(e, t);
|
|
8268
8257
|
}, e.registerAction = function(e, t) {
|
|
8269
|
-
|
|
8258
|
+
u_.set(e, t);
|
|
8270
8259
|
};
|
|
8271
8260
|
}
|
|
8272
|
-
function
|
|
8273
|
-
|
|
8261
|
+
function f_(e) {
|
|
8262
|
+
l_.forEach((t, n) => {
|
|
8274
8263
|
e.registerTrait(n, t);
|
|
8275
|
-
}),
|
|
8264
|
+
}), u_.forEach((t, n) => {
|
|
8276
8265
|
e.registerAction(n, t);
|
|
8277
8266
|
});
|
|
8278
8267
|
}
|
|
8279
8268
|
//#endregion
|
|
8280
8269
|
//#region src/scripts/utils/store.js
|
|
8281
|
-
function
|
|
8270
|
+
function p_(e, t, n) {
|
|
8282
8271
|
try {
|
|
8283
8272
|
window[e].setItem(t, n);
|
|
8284
8273
|
} catch {}
|
|
8285
8274
|
}
|
|
8286
|
-
function
|
|
8275
|
+
function m_(e, t) {
|
|
8287
8276
|
try {
|
|
8288
8277
|
return window[e].getItem(t);
|
|
8289
8278
|
} catch {
|
|
@@ -8295,7 +8284,7 @@ function $(e, t) {
|
|
|
8295
8284
|
window[e].removeItem(t);
|
|
8296
8285
|
} catch {}
|
|
8297
8286
|
}
|
|
8298
|
-
function
|
|
8287
|
+
function h_(e, t) {
|
|
8299
8288
|
try {
|
|
8300
8289
|
Object.keys(window[e]).forEach((n) => {
|
|
8301
8290
|
n.startsWith(t) && window[e].removeItem(n);
|
|
@@ -8304,22 +8293,22 @@ function g_(e, t) {
|
|
|
8304
8293
|
}
|
|
8305
8294
|
//#endregion
|
|
8306
8295
|
//#region src/scripts/utils/handle-navigation.js
|
|
8307
|
-
var
|
|
8296
|
+
var g_ = {
|
|
8308
8297
|
REDIRECT: "redirect",
|
|
8309
8298
|
WAIT_FOR_URL: "waitForUrl"
|
|
8310
|
-
},
|
|
8311
|
-
function
|
|
8299
|
+
}, __ = 500;
|
|
8300
|
+
function v_() {
|
|
8312
8301
|
try {
|
|
8313
|
-
return JSON.parse(
|
|
8302
|
+
return JSON.parse(m_(g, Se));
|
|
8314
8303
|
} catch {
|
|
8315
8304
|
return null;
|
|
8316
8305
|
}
|
|
8317
8306
|
}
|
|
8318
|
-
function
|
|
8307
|
+
function y_(e = () => Promise.resolve()) {
|
|
8319
8308
|
return async function({ type: t, experienceId: n, stepId: r, campaignId: i = null, tacticId: a = null, ...o } = {}) {
|
|
8320
|
-
if (tf(o.url || o.urlPattern, window.location.href) || t !==
|
|
8321
|
-
let s =
|
|
8322
|
-
|
|
8309
|
+
if (tf(o.url || o.urlPattern, window.location.href) || t !== g_.REDIRECT && t !== g_.WAIT_FOR_URL) return;
|
|
8310
|
+
let s = v_(), c = s?.experienceId === n && typeof s.remainingPagesToCheck == "number" ? s.remainingPagesToCheck : o.pageCheckLimit ?? 2;
|
|
8311
|
+
p_(g, Se, JSON.stringify({
|
|
8323
8312
|
experienceId: n,
|
|
8324
8313
|
campaignId: i,
|
|
8325
8314
|
tacticId: a,
|
|
@@ -8329,82 +8318,82 @@ function b_(e = () => Promise.resolve()) {
|
|
|
8329
8318
|
remainingPagesToCheck: c,
|
|
8330
8319
|
lastCheckedUrl: window.location.href,
|
|
8331
8320
|
timestamp: Date.now()
|
|
8332
|
-
})), t ===
|
|
8321
|
+
})), t === g_.REDIRECT ? (await e(n), Ud(window, o.url)) : t === g_.WAIT_FOR_URL && await new Promise((e) => {
|
|
8333
8322
|
let t, n = () => {
|
|
8334
8323
|
window.removeEventListener("popstate", r), window.removeEventListener("hashchange", r), clearInterval(t);
|
|
8335
8324
|
};
|
|
8336
8325
|
function r() {
|
|
8337
8326
|
tf(o.urlPattern, window.location.href) && (n(), $(g, Se), e());
|
|
8338
8327
|
}
|
|
8339
|
-
window.addEventListener("popstate", r), window.addEventListener("hashchange", r), t = setInterval(r,
|
|
8328
|
+
window.addEventListener("popstate", r), window.addEventListener("hashchange", r), t = setInterval(r, __);
|
|
8340
8329
|
});
|
|
8341
8330
|
};
|
|
8342
8331
|
}
|
|
8343
8332
|
//#endregion
|
|
8344
8333
|
//#region src/scripts/utils/pending-experience-events.js
|
|
8345
|
-
var
|
|
8346
|
-
function
|
|
8347
|
-
return (
|
|
8334
|
+
var b_ = 2e3, x_ = /* @__PURE__ */ new Map(), S_ = !1, C_ = /* @__PURE__ */ new Map();
|
|
8335
|
+
function w_(e) {
|
|
8336
|
+
return (x_.get(e) || 0) === 0 && !S_;
|
|
8348
8337
|
}
|
|
8349
|
-
function
|
|
8350
|
-
let n =
|
|
8338
|
+
function T_(e, t) {
|
|
8339
|
+
let n = C_.get(e);
|
|
8351
8340
|
if (!n) return;
|
|
8352
8341
|
let r = n.filter((e) => e !== t);
|
|
8353
|
-
r.length === 0 ?
|
|
8342
|
+
r.length === 0 ? C_.delete(e) : C_.set(e, r);
|
|
8354
8343
|
}
|
|
8355
|
-
function
|
|
8356
|
-
if (!
|
|
8357
|
-
let t =
|
|
8358
|
-
|
|
8344
|
+
function E_(e) {
|
|
8345
|
+
if (!w_(e) || !C_.has(e)) return;
|
|
8346
|
+
let t = C_.get(e);
|
|
8347
|
+
C_.delete(e), t.forEach((e) => e());
|
|
8359
8348
|
}
|
|
8360
|
-
function
|
|
8361
|
-
|
|
8349
|
+
function D_(e) {
|
|
8350
|
+
x_.set(e, (x_.get(e) || 0) + 1), S_ = !0;
|
|
8362
8351
|
}
|
|
8363
|
-
function
|
|
8364
|
-
|
|
8352
|
+
function O_() {
|
|
8353
|
+
S_ = !0;
|
|
8365
8354
|
}
|
|
8366
|
-
function
|
|
8367
|
-
let t =
|
|
8355
|
+
function k_(e) {
|
|
8356
|
+
let t = x_.get(e);
|
|
8368
8357
|
if (t > 0) {
|
|
8369
8358
|
let n = t - 1;
|
|
8370
|
-
n === 0 ?
|
|
8359
|
+
n === 0 ? x_.delete(e) : x_.set(e, n);
|
|
8371
8360
|
}
|
|
8372
|
-
|
|
8361
|
+
E_(e);
|
|
8373
8362
|
}
|
|
8374
|
-
function
|
|
8375
|
-
|
|
8376
|
-
for (let [e] of
|
|
8363
|
+
function A_() {
|
|
8364
|
+
S_ = !1;
|
|
8365
|
+
for (let [e] of C_) E_(e);
|
|
8377
8366
|
}
|
|
8378
|
-
function
|
|
8379
|
-
return
|
|
8367
|
+
function j_(e) {
|
|
8368
|
+
return w_(e) ? Promise.resolve() : new Promise((t) => {
|
|
8380
8369
|
let n;
|
|
8381
8370
|
function r() {
|
|
8382
8371
|
clearTimeout(n), t();
|
|
8383
8372
|
}
|
|
8384
8373
|
n = setTimeout(() => {
|
|
8385
|
-
|
|
8386
|
-
},
|
|
8387
|
-
let i =
|
|
8388
|
-
|
|
8374
|
+
T_(e, r), t();
|
|
8375
|
+
}, b_);
|
|
8376
|
+
let i = C_.get(e) || [];
|
|
8377
|
+
C_.set(e, [...i, r]);
|
|
8389
8378
|
});
|
|
8390
8379
|
}
|
|
8391
8380
|
//#endregion
|
|
8392
8381
|
//#region src/scripts/utils/create-appcues.js
|
|
8393
|
-
var
|
|
8382
|
+
var M_ = "v2", N_ = (e) => {
|
|
8394
8383
|
let t = window.AppcuesBundleSettings?.ASSETS_PATH, n = {
|
|
8395
8384
|
sendEvent: (t, n) => {
|
|
8396
|
-
let r = `${
|
|
8385
|
+
let r = `${M_}:${t}`, i = {
|
|
8397
8386
|
...n,
|
|
8398
8387
|
id: r
|
|
8399
8388
|
};
|
|
8400
|
-
n?.experienceId &&
|
|
8389
|
+
n?.experienceId && D_(n.experienceId), e(Cc(r, i)), e(Tc({}, [xu(i)]));
|
|
8401
8390
|
},
|
|
8402
8391
|
sendCustomEvent: (t, n) => {
|
|
8403
8392
|
let r = {
|
|
8404
8393
|
...n,
|
|
8405
8394
|
id: t
|
|
8406
8395
|
};
|
|
8407
|
-
|
|
8396
|
+
O_(), e(Tc({}, [bu(t, r)], !0));
|
|
8408
8397
|
},
|
|
8409
8398
|
updateUserProfile: (t = {}) => {
|
|
8410
8399
|
Object.keys(t).length !== 0 && e(Tc(t, [], !0));
|
|
@@ -8429,22 +8418,22 @@ var N_ = "v2", P_ = (e) => {
|
|
|
8429
8418
|
tacticId: a
|
|
8430
8419
|
})), Ud(window, n);
|
|
8431
8420
|
},
|
|
8432
|
-
handleNavigation:
|
|
8421
|
+
handleNavigation: y_(j_),
|
|
8433
8422
|
...t && { apiOverrides: {
|
|
8434
8423
|
fastBaseUrl: t,
|
|
8435
8424
|
useAssetsPath: !0
|
|
8436
8425
|
} }
|
|
8437
8426
|
};
|
|
8438
8427
|
return window.createAppcues(n);
|
|
8439
|
-
},
|
|
8428
|
+
}, P_ = async () => {
|
|
8440
8429
|
if (typeof window.createAppcues != "function") {
|
|
8441
8430
|
let e = await import("./open-builder.BMVipZwK.js");
|
|
8442
8431
|
window.createAppcues = e.default;
|
|
8443
8432
|
}
|
|
8444
|
-
},
|
|
8433
|
+
}, F_ = async () => (await P_(), N_), I_ = "EVENTS_TRIGGERED", L_ = K(I_), R_ = K(hc.SET_SESSION), z_ = K(hc.START_SESSION), B_ = K(hc.SESSION_STARTED);
|
|
8445
8434
|
//#endregion
|
|
8446
8435
|
//#region src/scripts/sagas/widget-sagas.js
|
|
8447
|
-
function*
|
|
8436
|
+
function* V_() {
|
|
8448
8437
|
let e = null;
|
|
8449
8438
|
try {
|
|
8450
8439
|
e = yield A(mg, yield M(Jn));
|
|
@@ -8453,7 +8442,7 @@ function* H_() {
|
|
|
8453
8442
|
}
|
|
8454
8443
|
e && (yield k(vh(e.journeys)));
|
|
8455
8444
|
}
|
|
8456
|
-
function*
|
|
8445
|
+
function* H_() {
|
|
8457
8446
|
let e = null;
|
|
8458
8447
|
try {
|
|
8459
8448
|
e = yield A(hg, yield M(Jn));
|
|
@@ -8462,32 +8451,32 @@ function* U_() {
|
|
|
8462
8451
|
}
|
|
8463
8452
|
e && (yield k(yh(e.contents)));
|
|
8464
8453
|
}
|
|
8465
|
-
function*
|
|
8466
|
-
yield j(Y, pc.LOADED_LAUNCHPAD,
|
|
8454
|
+
function* U_() {
|
|
8455
|
+
yield j(Y, pc.LOADED_LAUNCHPAD, V_), yield j(Y, pc.LOADED_LAUNCHPAD, H_);
|
|
8467
8456
|
}
|
|
8468
8457
|
//#endregion
|
|
8469
8458
|
//#region src/scripts/sagas/annotations-sagas.js
|
|
8470
|
-
function
|
|
8459
|
+
function W_(e) {
|
|
8471
8460
|
return C.ANNOTATION.includes(e);
|
|
8472
8461
|
}
|
|
8473
|
-
function*
|
|
8474
|
-
let e = yield A(
|
|
8462
|
+
function* G_() {
|
|
8463
|
+
let e = yield A(m_, h, we);
|
|
8475
8464
|
try {
|
|
8476
8465
|
return JSON.parse(e);
|
|
8477
8466
|
} catch {
|
|
8478
8467
|
return null;
|
|
8479
8468
|
}
|
|
8480
8469
|
}
|
|
8481
|
-
function
|
|
8470
|
+
function K_(e, t, n, r) {
|
|
8482
8471
|
let i = e;
|
|
8483
8472
|
return (i /= r / 2) < 1 ? n / 2 * i * i + t : -n / 2 * (--i * (i - 2) - 1) + t;
|
|
8484
8473
|
}
|
|
8485
|
-
function*
|
|
8474
|
+
function* q_(e, t) {
|
|
8486
8475
|
if (window.document?.documentMode) {
|
|
8487
8476
|
let n = e, r = n.scrollTop;
|
|
8488
8477
|
if (r !== t) {
|
|
8489
8478
|
let e = yield A(Uo, t, r), i = 0;
|
|
8490
|
-
for (; i < e;) i += 20, n.scrollTop =
|
|
8479
|
+
for (; i < e;) i += 20, n.scrollTop = K_(Math.min(i, e), r, t - r, e), yield A(Z, 20);
|
|
8491
8480
|
}
|
|
8492
8481
|
return !0;
|
|
8493
8482
|
}
|
|
@@ -8496,67 +8485,67 @@ function* J_(e, t) {
|
|
|
8496
8485
|
behavior: "smooth"
|
|
8497
8486
|
}), !0;
|
|
8498
8487
|
}
|
|
8499
|
-
function*
|
|
8488
|
+
function* J_(e, t, n, r) {
|
|
8500
8489
|
for (;;) {
|
|
8501
8490
|
let i = qo(e, t, n);
|
|
8502
8491
|
if (i.some((e, t) => e.scrollTop !== r[t].scrollTop)) return i;
|
|
8503
8492
|
yield A(Z, 200);
|
|
8504
8493
|
}
|
|
8505
8494
|
}
|
|
8506
|
-
function*
|
|
8495
|
+
function* Y_(e, t, n, r) {
|
|
8507
8496
|
let i = [];
|
|
8508
8497
|
if (r.every((e) => e.visibleInContainer)) return { doneScrolling: r.map(() => !0) };
|
|
8509
|
-
for (let { el: e, scrollTop: t } of r) i.push(A(
|
|
8498
|
+
for (let { el: e, scrollTop: t } of r) i.push(A(q_, e, t));
|
|
8510
8499
|
return yield jt({
|
|
8511
8500
|
doneScrolling: i,
|
|
8512
|
-
scrollTargetsChanged: A(
|
|
8501
|
+
scrollTargetsChanged: A(J_, e, t, n, r)
|
|
8513
8502
|
});
|
|
8514
8503
|
}
|
|
8515
|
-
function*
|
|
8504
|
+
function* X_({ payload: e }) {
|
|
8516
8505
|
yield k(Sm(e)), yield A(Z, 300), yield k(bm(e));
|
|
8517
8506
|
}
|
|
8518
|
-
function*
|
|
8519
|
-
let t = yield*
|
|
8520
|
-
yield A(
|
|
8507
|
+
function* Z_(e) {
|
|
8508
|
+
let t = yield* G_();
|
|
8509
|
+
yield A(p_, h, we, JSON.stringify({
|
|
8521
8510
|
...t,
|
|
8522
8511
|
...e
|
|
8523
8512
|
}));
|
|
8524
8513
|
}
|
|
8525
|
-
function*
|
|
8514
|
+
function* Q_(e, t, n) {
|
|
8526
8515
|
if (Object.keys(e).length > 0) {
|
|
8527
8516
|
let r = yield M(Pr), i = Object.keys(e).filter((e) => !r[e] || !r[e].errorReported);
|
|
8528
8517
|
if (i.length > 0) {
|
|
8529
8518
|
let r = {};
|
|
8530
8519
|
i.forEach((t) => {
|
|
8531
8520
|
r[t] = e[t];
|
|
8532
|
-
}), yield k(q(Q(T.CHILDREN_ERRORED, t, { errors: r }), n)), yield k(km(i)), yield A(
|
|
8521
|
+
}), yield k(q(Q(T.CHILDREN_ERRORED, t, { errors: r }), n)), yield k(km(i)), yield A(Z_, i.reduce((e, t) => ({
|
|
8533
8522
|
...e,
|
|
8534
8523
|
[t]: { ts: Date.now() }
|
|
8535
8524
|
}), {}));
|
|
8536
8525
|
}
|
|
8537
8526
|
}
|
|
8538
8527
|
}
|
|
8539
|
-
function*
|
|
8540
|
-
let t = yield*
|
|
8528
|
+
function* $_(e) {
|
|
8529
|
+
let t = yield* G_();
|
|
8541
8530
|
t && Object.keys(t).length > 0 && (e.forEach((e) => {
|
|
8542
8531
|
delete t[e];
|
|
8543
|
-
}), yield A(
|
|
8532
|
+
}), yield A(p_, h, we, JSON.stringify(t)));
|
|
8544
8533
|
}
|
|
8545
|
-
function*
|
|
8534
|
+
function* ev(e) {
|
|
8546
8535
|
let t = yield M(Pr), n = Object.keys(t).filter((e) => t[e].errorReported || t[e].existingError).filter((n) => e[n] && !e[n].error && t[n] && !t[n].recoveryReported);
|
|
8547
8536
|
if (n.length > 0) {
|
|
8548
8537
|
let e = yield M(F);
|
|
8549
|
-
yield k(q(Q(T.CHILDREN_RECOVERED, e, { children: n }))), yield k(Am(n)), yield A(
|
|
8538
|
+
yield k(q(Q(T.CHILDREN_RECOVERED, e, { children: n }))), yield k(Am(n)), yield A($_, n);
|
|
8550
8539
|
}
|
|
8551
8540
|
}
|
|
8552
|
-
function*
|
|
8541
|
+
function* tv() {
|
|
8553
8542
|
let e, t = yd();
|
|
8554
8543
|
for (; (e = yield M(hr)) && e !== w.ERROR;) {
|
|
8555
8544
|
let e = yield M(Cr), n = yield M(wr), r = (yield e.map((e) => A(Vo, (n[e.id] || {}).element || null, Hn(e)))).reduce((t, n, r) => (t[e[r].id] = n, t), {}), i = !1;
|
|
8556
8545
|
if (Object.keys(r).forEach((e) => {
|
|
8557
8546
|
let t = r[e], { _prevPosition: a } = n[e] || {};
|
|
8558
8547
|
Yo(t, a || {}) || (i = !0);
|
|
8559
|
-
}), i) yield k(wm(r)), yield k(Om(r)), t = yd(), yield A(
|
|
8548
|
+
}), i) yield k(wm(r)), yield k(Om(r)), t = yd(), yield A(Q_, Object.keys(r).filter((e) => r[e].error).reduce((e, t) => Object.assign(e, { [t]: r[t].errorMessage }), {}), yield M(F)), yield A(ev, r);
|
|
8560
8549
|
else {
|
|
8561
8550
|
let e = yd();
|
|
8562
8551
|
e - t > 1e3 && (yield k(wm(r)), t = e);
|
|
@@ -8571,7 +8560,7 @@ function* nv() {
|
|
|
8571
8560
|
yield A(Z, 200);
|
|
8572
8561
|
}
|
|
8573
8562
|
}
|
|
8574
|
-
function*
|
|
8563
|
+
function* nv() {
|
|
8575
8564
|
let e = yield M(hr);
|
|
8576
8565
|
N.inArray([
|
|
8577
8566
|
w.READY,
|
|
@@ -8580,14 +8569,14 @@ function* rv() {
|
|
|
8580
8569
|
w.WILL_CLOSE
|
|
8581
8570
|
], e) || (yield k(Em()));
|
|
8582
8571
|
}
|
|
8583
|
-
function*
|
|
8584
|
-
let e = yield*
|
|
8572
|
+
function* rv() {
|
|
8573
|
+
let e = yield* G_();
|
|
8585
8574
|
if (e) {
|
|
8586
8575
|
let t = Date.now(), n = Object.keys(e).reduce((n, r) => (e[r].ts + 2592e3 > t && (n[r] = e[r]), n), {});
|
|
8587
|
-
yield A(
|
|
8576
|
+
yield A(p_, h, we, JSON.stringify(n));
|
|
8588
8577
|
}
|
|
8589
8578
|
}
|
|
8590
|
-
function*
|
|
8579
|
+
function* iv(e) {
|
|
8591
8580
|
let t = yield M(wr), n = yield M(Cr), r = t[e] || {}, i = Cn(n, (t) => t.id === e), { element: a, error: o } = r, { offset_y_percentage: s } = i, c = 1 - Number.parseFloat(s);
|
|
8592
8581
|
for (; !a || o;) yield O(W.SET_ANNOTATIONS_POSITIONS), t = yield M(wr), r = t[e] || {}, a = r.element, o = r.error;
|
|
8593
8582
|
let l = yield A(Ko, a);
|
|
@@ -8602,16 +8591,16 @@ function* av(e) {
|
|
|
8602
8591
|
return;
|
|
8603
8592
|
}
|
|
8604
8593
|
let u = yield A(qo, a, c, l), d = {};
|
|
8605
|
-
for (; !d.doneScrolling;) d = yield A(
|
|
8594
|
+
for (; !d.doneScrolling;) d = yield A(Y_, a, c, l, u), u = d.scrollTargetsChanged;
|
|
8606
8595
|
}
|
|
8607
|
-
function*
|
|
8608
|
-
|
|
8596
|
+
function* av({ payload: e }) {
|
|
8597
|
+
W_(e.type) && (yield k(Fc(mu(le.CALCULATE, e.id))));
|
|
8609
8598
|
}
|
|
8610
|
-
function*
|
|
8611
|
-
let e = (yield A(
|
|
8599
|
+
function* ov() {
|
|
8600
|
+
let e = (yield A(G_)) || {};
|
|
8612
8601
|
Object.keys(e).length > 0 && (yield k(jm(e)));
|
|
8613
8602
|
}
|
|
8614
|
-
function*
|
|
8603
|
+
function* sv({ payload: e }) {
|
|
8615
8604
|
let t = yield M(Fr), { annotationId: n, isScrolling: r } = e;
|
|
8616
8605
|
if (r) yield k({
|
|
8617
8606
|
type: W.CONFIRM_SCROLLING,
|
|
@@ -8625,22 +8614,22 @@ function* cv({ payload: e }) {
|
|
|
8625
8614
|
});
|
|
8626
8615
|
}
|
|
8627
8616
|
}
|
|
8628
|
-
function*
|
|
8617
|
+
function* cv() {
|
|
8629
8618
|
yield [
|
|
8630
|
-
j(Y, B.CLEANUP_STEP,
|
|
8631
|
-
j(hu, W.START_CALCULATE_POSITIONS,
|
|
8619
|
+
j(Y, B.CLEANUP_STEP, av),
|
|
8620
|
+
j(hu, W.START_CALCULATE_POSITIONS, tv, function* () {
|
|
8632
8621
|
let e = yield M(F);
|
|
8633
8622
|
return mu(le.CALCULATE, e);
|
|
8634
8623
|
}),
|
|
8635
|
-
j(Y, W.SET_IS_SCROLLING_TO_ANNOTATION,
|
|
8636
|
-
j(Y, W.HIDE_AND_REMOVE_ACTIVE_ANNOTATIONS,
|
|
8637
|
-
j(
|
|
8638
|
-
j(
|
|
8624
|
+
j(Y, W.SET_IS_SCROLLING_TO_ANNOTATION, sv),
|
|
8625
|
+
j(Y, W.HIDE_AND_REMOVE_ACTIVE_ANNOTATIONS, X_),
|
|
8626
|
+
j(rv),
|
|
8627
|
+
j(ov)
|
|
8639
8628
|
];
|
|
8640
8629
|
}
|
|
8641
8630
|
//#endregion
|
|
8642
8631
|
//#region src/scripts/utils/query.js
|
|
8643
|
-
function
|
|
8632
|
+
function lv(e) {
|
|
8644
8633
|
let t = {};
|
|
8645
8634
|
if (e) {
|
|
8646
8635
|
let n = e.replace(/^\?/, "").split("&");
|
|
@@ -8656,32 +8645,32 @@ function uv(e) {
|
|
|
8656
8645
|
}
|
|
8657
8646
|
return t;
|
|
8658
8647
|
}
|
|
8659
|
-
function
|
|
8660
|
-
return
|
|
8648
|
+
function uv(e) {
|
|
8649
|
+
return lv(e.location.search).appcuesTestContentId || null;
|
|
8661
8650
|
}
|
|
8662
|
-
function
|
|
8663
|
-
return
|
|
8651
|
+
function dv(e, t = "appcue") {
|
|
8652
|
+
return lv(e.location.search)[t] || null;
|
|
8664
8653
|
}
|
|
8665
|
-
function
|
|
8654
|
+
function fv(e, t = "appcue") {
|
|
8666
8655
|
if (!e) return e;
|
|
8667
8656
|
let n = RegExp(`(\\?)?(&)?((?:${t})=[^&#]+)(&)?`);
|
|
8668
8657
|
return e.replace(n, (e, t, n, r, i) => t && i ? "?" : n && i ? "&" : "");
|
|
8669
8658
|
}
|
|
8670
8659
|
//#endregion
|
|
8671
8660
|
//#region src/scripts/sagas/conditions-sagas.js
|
|
8672
|
-
var
|
|
8673
|
-
function*
|
|
8661
|
+
var pv = (e) => ["Enter", " "].includes(e.key);
|
|
8662
|
+
function* mv(e) {
|
|
8674
8663
|
let t = yield e.map((e) => A(Vo, null, e)), n = t.filter((e) => e.error);
|
|
8675
8664
|
return n.length === t.length ? {
|
|
8676
8665
|
result: !1,
|
|
8677
8666
|
failures: n.map((e) => e.errorMessage)
|
|
8678
8667
|
} : { result: !0 };
|
|
8679
8668
|
}
|
|
8680
|
-
function*
|
|
8681
|
-
for (; !(yield A(
|
|
8669
|
+
function* hv(e) {
|
|
8670
|
+
for (; !(yield A(mv, e)).result;) yield A(Z, 200);
|
|
8682
8671
|
return { result: !0 };
|
|
8683
8672
|
}
|
|
8684
|
-
function*
|
|
8673
|
+
function* gv(e, t, n = null) {
|
|
8685
8674
|
let { promise: r, listener: i } = yield A(ls, e, t, n), a, o;
|
|
8686
8675
|
try {
|
|
8687
8676
|
a = yield A(() => r), o = !0;
|
|
@@ -8689,24 +8678,24 @@ function* _v(e, t, n = null) {
|
|
|
8689
8678
|
return !o && i && (yield Lt()) && (yield A([e, e.removeEventListener], t, i)), a;
|
|
8690
8679
|
}
|
|
8691
8680
|
}
|
|
8692
|
-
function
|
|
8681
|
+
function _v(e, t = null, n = null) {
|
|
8693
8682
|
return {
|
|
8694
8683
|
result: e,
|
|
8695
8684
|
task: t,
|
|
8696
8685
|
failures: n
|
|
8697
8686
|
};
|
|
8698
8687
|
}
|
|
8699
|
-
function*
|
|
8700
|
-
let { result: t, failures: n } = yield A(
|
|
8701
|
-
return t ?
|
|
8688
|
+
function* vv(e) {
|
|
8689
|
+
let { result: t, failures: n } = yield A(mv, e);
|
|
8690
|
+
return t ? _v(!0) : _v(!1, yield Nt(hv, e), n);
|
|
8702
8691
|
}
|
|
8703
|
-
function*
|
|
8692
|
+
function* yv(e, t, n) {
|
|
8704
8693
|
let r, i;
|
|
8705
8694
|
for (;;) try {
|
|
8706
8695
|
let a = yield A(Ao, t);
|
|
8707
8696
|
if (a.error) yield A(Z, 200);
|
|
8708
8697
|
else {
|
|
8709
|
-
if ((r !== a || !i) && (i && (yield Ft(i)), r = a, i = yield j(
|
|
8698
|
+
if ((r !== a || !i) && (i && (yield Ft(i)), r = a, i = yield j(gv, r, e, n)), i && i.result()) return { result: !0 };
|
|
8710
8699
|
let { eventOccurred: t } = yield jt({
|
|
8711
8700
|
timeout: A(Z, 200),
|
|
8712
8701
|
eventOccurred: Pt(i)
|
|
@@ -8717,18 +8706,18 @@ function* bv(e, t, n) {
|
|
|
8717
8706
|
yield A(Z, 200);
|
|
8718
8707
|
}
|
|
8719
8708
|
}
|
|
8720
|
-
function*
|
|
8721
|
-
return (yield jt([A(
|
|
8709
|
+
function* bv(e) {
|
|
8710
|
+
return (yield jt([A(yv, e.params.event, e.params.selector), A(yv, "keydown", e.params.selector, pv)])).find((e) => e && e.result);
|
|
8722
8711
|
}
|
|
8723
|
-
function*
|
|
8712
|
+
function* xv(e) {
|
|
8724
8713
|
switch (e ? e.type : null) {
|
|
8725
|
-
case ve.WAIT_FOR_ONE_ELEMENT: return yield A(
|
|
8726
|
-
case ve.WAIT_FOR_MOUSE_EVENT: return
|
|
8727
|
-
default: return
|
|
8714
|
+
case ve.WAIT_FOR_ONE_ELEMENT: return yield A(vv, e.params.selectors);
|
|
8715
|
+
case ve.WAIT_FOR_MOUSE_EVENT: return _v(!1, yield Nt(bv, e));
|
|
8716
|
+
default: return _v(!0);
|
|
8728
8717
|
}
|
|
8729
8718
|
}
|
|
8730
|
-
function*
|
|
8731
|
-
let { result: r, task: i } = yield A(
|
|
8719
|
+
function* Sv(e, t, ...n) {
|
|
8720
|
+
let { result: r, task: i } = yield A(xv, e), a = r;
|
|
8732
8721
|
if (!r && i) try {
|
|
8733
8722
|
a = (yield Pt(i)).result;
|
|
8734
8723
|
} finally {
|
|
@@ -8738,17 +8727,17 @@ function* Cv(e, t, ...n) {
|
|
|
8738
8727
|
}
|
|
8739
8728
|
//#endregion
|
|
8740
8729
|
//#region src/scripts/utils/conditions.js
|
|
8741
|
-
function
|
|
8730
|
+
function Cv(e, t, n) {
|
|
8742
8731
|
return {
|
|
8743
8732
|
type: e,
|
|
8744
8733
|
params: t,
|
|
8745
8734
|
context: n
|
|
8746
8735
|
};
|
|
8747
8736
|
}
|
|
8748
|
-
function
|
|
8749
|
-
return
|
|
8737
|
+
function wv(e, t) {
|
|
8738
|
+
return Cv(ve.WAIT_FOR_ONE_ELEMENT, { selectors: e }, t);
|
|
8750
8739
|
}
|
|
8751
|
-
function
|
|
8740
|
+
function Tv(e) {
|
|
8752
8741
|
let t = "unknown", n = {};
|
|
8753
8742
|
switch (e.type) {
|
|
8754
8743
|
case ve.WAIT_FOR_MOUSE_EVENT:
|
|
@@ -8772,39 +8761,39 @@ function Ev(e) {
|
|
|
8772
8761
|
}
|
|
8773
8762
|
//#endregion
|
|
8774
8763
|
//#region src/scripts/sagas/handle-flow-lifecycle-events.js
|
|
8775
|
-
var
|
|
8764
|
+
var Ev = (e) => ({
|
|
8776
8765
|
campaignId: e.campaign_id ?? null,
|
|
8777
8766
|
tacticId: e.tactic_id ?? null
|
|
8778
8767
|
});
|
|
8779
|
-
function*
|
|
8768
|
+
function* Dv(e, t) {
|
|
8780
8769
|
for (let n of t) yield k(Sc(e, n));
|
|
8781
8770
|
yield k(Tc({}, t.map((e) => xu(e))));
|
|
8782
8771
|
}
|
|
8783
|
-
function*
|
|
8784
|
-
yield*
|
|
8785
|
-
...yield*
|
|
8772
|
+
function* Ov(e, t, n) {
|
|
8773
|
+
yield* Kv({
|
|
8774
|
+
...yield* Gv(),
|
|
8786
8775
|
flowId: e.id,
|
|
8787
8776
|
stepId: t.id,
|
|
8788
|
-
...
|
|
8777
|
+
...Ev(e),
|
|
8789
8778
|
status: n
|
|
8790
8779
|
});
|
|
8791
8780
|
}
|
|
8792
|
-
function*
|
|
8781
|
+
function* kv(...e) {
|
|
8793
8782
|
for (let t of e) yield k(q(t));
|
|
8794
8783
|
}
|
|
8795
|
-
function*
|
|
8784
|
+
function* Av(e, t, n) {
|
|
8796
8785
|
(yield O(({ type: t, payload: r }) => t === H.ACTIVATED_STEP_CHILD && r.stepChildId === n.id || t === H.CLOSE_FLOW && r.flowId === e.id)).type === H.ACTIVATED_STEP_CHILD && (yield jt({
|
|
8797
|
-
wait: A(
|
|
8786
|
+
wait: A(Sv, n.ui_conditions.next, kv, rm(T.STEP_INTERACTED, t.id, n.id, Tv(n.ui_conditions.next)), rm(T.CHILD_NEXT, t.id, n.id)),
|
|
8798
8787
|
cancel: O(({ type: t, payload: n }) => t === H.CLOSE_FLOW && n.flowId === e.id)
|
|
8799
8788
|
}));
|
|
8800
8789
|
}
|
|
8801
|
-
function
|
|
8790
|
+
function jv(e, t) {
|
|
8802
8791
|
return t ? {
|
|
8803
8792
|
...e,
|
|
8804
8793
|
_sdkMetrics: t
|
|
8805
8794
|
} : e;
|
|
8806
8795
|
}
|
|
8807
|
-
function*
|
|
8796
|
+
function* Mv(e, t, n) {
|
|
8808
8797
|
let r = yield M(ir);
|
|
8809
8798
|
for (;;) {
|
|
8810
8799
|
let i = yield O(t), a = i.params || {}, o = a.stepId ? Rn(e, a.stepId) : null, s, c, l = o ? (s = Ln(e, 0)) && s.id === o.id : !1, u = (o ? (c = Ln(e, En(e) - 1)) && c.id === o.id : !1) || a.shouldEndFlow;
|
|
@@ -8813,58 +8802,58 @@ function* Nv(e, t, n) {
|
|
|
8813
8802
|
if (o && In(o)) {
|
|
8814
8803
|
if (Pn(o)) {
|
|
8815
8804
|
let t = [];
|
|
8816
|
-
l && t.push(Mu(e, r)), t.push(Ru(e, o, r)), yield*
|
|
8817
|
-
let { page_check_limit: n } = o.attributes.params, i = yield*
|
|
8818
|
-
yield*
|
|
8805
|
+
l && t.push(Mu(e, r)), t.push(Ru(e, o, r)), yield* Dv(e.id, t);
|
|
8806
|
+
let { page_check_limit: n } = o.attributes.params, i = yield* Gv(), { remainingPagesToCheck: a } = i || {};
|
|
8807
|
+
yield* Kv({
|
|
8819
8808
|
...i,
|
|
8820
|
-
...
|
|
8809
|
+
...Ev(e),
|
|
8821
8810
|
remainingPagesToCheck: typeof a == "number" ? a : typeof n == "number" ? n : 2
|
|
8822
8811
|
});
|
|
8823
8812
|
}
|
|
8824
8813
|
let t = [];
|
|
8825
|
-
l && t.push(ju(e, r)), t.push(Lu(e, o, r)), yield*
|
|
8814
|
+
l && t.push(ju(e, r)), t.push(Lu(e, o, r)), yield* Dv(e.id, t), yield* Ov(e, o, T.STEP_ATTEMPTED);
|
|
8826
8815
|
}
|
|
8827
8816
|
break;
|
|
8828
8817
|
case T.STEP_SHOWN:
|
|
8829
8818
|
if (o) {
|
|
8830
8819
|
if (In(o)) {
|
|
8831
|
-
let t = yield*
|
|
8832
|
-
yield*
|
|
8820
|
+
let t = yield* Gv(), n = l || !t ? Uh() : t.submissionId, r = l || !t ? yield A(dv, window, "appcue") : t.fromPermalink;
|
|
8821
|
+
yield* Kv({
|
|
8833
8822
|
...t,
|
|
8834
8823
|
submissionId: n,
|
|
8835
8824
|
status: T.STEP_SHOWN,
|
|
8836
8825
|
fromPermalink: !!r,
|
|
8837
|
-
...
|
|
8826
|
+
...Ev(e)
|
|
8838
8827
|
});
|
|
8839
8828
|
}
|
|
8840
|
-
l && !Fn(o) && n && (yield A(
|
|
8829
|
+
l && !Fn(o) && n && (yield A(Rg, n));
|
|
8841
8830
|
}
|
|
8842
8831
|
break;
|
|
8843
8832
|
case T.STEP_COMPLETED:
|
|
8844
8833
|
if (o) {
|
|
8845
8834
|
let t = [zu(e, o, r)];
|
|
8846
|
-
if (u && t.push(Pu(e, r)), yield*
|
|
8847
|
-
let { remainingPagesToCheck: t, navByADTT: n, ...r } = (yield*
|
|
8848
|
-
yield*
|
|
8835
|
+
if (u && t.push(Pu(e, r)), yield* Dv(e.id, t), Pn(o)) {
|
|
8836
|
+
let { remainingPagesToCheck: t, navByADTT: n, ...r } = (yield* Gv()) || {};
|
|
8837
|
+
yield* Kv({
|
|
8849
8838
|
...r,
|
|
8850
8839
|
flowId: e.id,
|
|
8851
|
-
...
|
|
8840
|
+
...Ev(e),
|
|
8852
8841
|
stepId: o.id,
|
|
8853
8842
|
status: T.STEP_COMPLETED
|
|
8854
8843
|
});
|
|
8855
|
-
} else yield*
|
|
8844
|
+
} else yield* Ov(e, o, T.STEP_COMPLETED);
|
|
8856
8845
|
}
|
|
8857
8846
|
break;
|
|
8858
8847
|
case T.STEP_SKIPPED:
|
|
8859
|
-
o && (yield*
|
|
8848
|
+
o && (yield* Dv(e.id, [Bu(e, o, a.stepChildId, r), Fu(e, a.stepId, r)]), yield* Yv(e, o), yield k(Yp(e.id, Ce.SKIPPED)), yield k(Qm()), yield k(a_()));
|
|
8860
8849
|
break;
|
|
8861
8850
|
case T.STEP_END:
|
|
8862
8851
|
if (o) {
|
|
8863
8852
|
let n = yield M(F);
|
|
8864
|
-
if (n === o.id && (yield*
|
|
8853
|
+
if (n === o.id && (yield* Yv(e, o)), u) yield k(Yp(e.id, Ce.COMPLETED));
|
|
8865
8854
|
else {
|
|
8866
8855
|
let r = Ln(e, zn(e, o.id) + 1);
|
|
8867
|
-
r.type === C.HOTSPOTS && (yield k(Qm()), yield k(
|
|
8856
|
+
r.type === C.HOTSPOTS && (yield k(Qm()), yield k(a_())), n === o.id && (yield k(t, Q(T.STEP_ATTEMPTED, r.id)), yield k(Rc(r, document.location.href)));
|
|
8868
8857
|
}
|
|
8869
8858
|
}
|
|
8870
8859
|
break;
|
|
@@ -8889,7 +8878,7 @@ function* Nv(e, t, n) {
|
|
|
8889
8878
|
...t
|
|
8890
8879
|
}, r)));
|
|
8891
8880
|
} else t.push(Wu(e, o, a.stepChildId, a.interactionType, n, r));
|
|
8892
|
-
yield*
|
|
8881
|
+
yield* Dv(e.id, t);
|
|
8893
8882
|
}
|
|
8894
8883
|
break;
|
|
8895
8884
|
case T.STEP_ERRORED:
|
|
@@ -8899,25 +8888,25 @@ function* Nv(e, t, n) {
|
|
|
8899
8888
|
Vu(e, o, r),
|
|
8900
8889
|
Iu(e, r)
|
|
8901
8890
|
];
|
|
8902
|
-
l && t.splice(1, 0, Gu(e, a.error, a.details, r)), yield*
|
|
8891
|
+
l && t.splice(1, 0, Gu(e, a.error, a.details, r)), yield* Dv(e.id, t);
|
|
8903
8892
|
}
|
|
8904
8893
|
break;
|
|
8905
8894
|
case T.CHILD_ACTIVATED:
|
|
8906
|
-
yield k(Vp(a.stepChildId, a.ts)), o && In(o) && (yield*
|
|
8895
|
+
yield k(Vp(a.stepChildId, a.ts)), o && In(o) && (yield* Dv(e.id, [Hu(e, o, a.stepChildId, r)]));
|
|
8907
8896
|
break;
|
|
8908
8897
|
case T.CHILD_DEACTIVATED: {
|
|
8909
8898
|
let { stepChildId: t } = a, n = yield M(Mr, t);
|
|
8910
|
-
yield k(Hp(t)), o && In(o) && (yield*
|
|
8899
|
+
yield k(Hp(t)), o && In(o) && (yield* Dv(e.id, [Uu(e, o, t, a.ts - n, r)]));
|
|
8911
8900
|
break;
|
|
8912
8901
|
}
|
|
8913
8902
|
case T.CHILDREN_ERRORED: {
|
|
8914
8903
|
let t = Object.keys(a.errors || {});
|
|
8915
|
-
t.length > 0 && (yield*
|
|
8904
|
+
t.length > 0 && (yield* Dv(e.id, t.map((t) => qu(e, o, t, a.errors[t], r))));
|
|
8916
8905
|
break;
|
|
8917
8906
|
}
|
|
8918
8907
|
case T.CHILDREN_RECOVERED: {
|
|
8919
8908
|
let t = a.children || [];
|
|
8920
|
-
t.length > 0 && (yield*
|
|
8909
|
+
t.length > 0 && (yield* Dv(e.id, t.map((t) => Ju(e, o, t, r))));
|
|
8921
8910
|
break;
|
|
8922
8911
|
}
|
|
8923
8912
|
case T.CHILD_NEXT:
|
|
@@ -8930,18 +8919,18 @@ function* Nv(e, t, n) {
|
|
|
8930
8919
|
break;
|
|
8931
8920
|
case T.CHILD_RUN: {
|
|
8932
8921
|
let t = kn(o, On(o, a.stepChildId));
|
|
8933
|
-
yield k(Up(a.stepChildId)), t && t.ui_conditions && t.ui_conditions.next && (yield Nt(
|
|
8922
|
+
yield k(Up(a.stepChildId)), t && t.ui_conditions && t.ui_conditions.next && (yield Nt(Av, e, o, t));
|
|
8934
8923
|
break;
|
|
8935
8924
|
}
|
|
8936
8925
|
case T.CSS_LOADED:
|
|
8937
|
-
l && n &&
|
|
8926
|
+
l && n && zg(n);
|
|
8938
8927
|
break;
|
|
8939
8928
|
case T.STEP_REVEALED:
|
|
8940
8929
|
if (o) {
|
|
8941
8930
|
let t = null;
|
|
8942
|
-
l && n && (yield A(
|
|
8931
|
+
l && n && (yield A(Bg, n), t = yield A(Ug, n, o.type));
|
|
8943
8932
|
let i = [];
|
|
8944
|
-
In(o) ? (l && i.push(
|
|
8933
|
+
In(o) ? (l && i.push(jv(Mu(e, r), t)), i.push(Ru(e, o, r)), yield* Dv(e.id, i)) : l && (i.push(jv(Nu(e, r), t)), yield* Dv(e.id, i));
|
|
8945
8934
|
}
|
|
8946
8935
|
break;
|
|
8947
8936
|
default: break;
|
|
@@ -8950,30 +8939,30 @@ function* Nv(e, t, n) {
|
|
|
8950
8939
|
}
|
|
8951
8940
|
//#endregion
|
|
8952
8941
|
//#region src/scripts/utils/temp-store.js
|
|
8953
|
-
function
|
|
8942
|
+
function Nv(e) {
|
|
8954
8943
|
$("localStorage", e), $("localStorage", `${e}_timeout`);
|
|
8955
8944
|
}
|
|
8956
|
-
function
|
|
8945
|
+
function Pv(e) {
|
|
8957
8946
|
if (!e) return !1;
|
|
8958
|
-
let t =
|
|
8959
|
-
return Date.now() > n || !t ? (
|
|
8947
|
+
let t = m_("localStorage", e), n = JSON.parse(m_("localStorage", `${e}_timeout`)) ?? 0;
|
|
8948
|
+
return Date.now() > n || !t ? (Nv(e), !1) : !0;
|
|
8960
8949
|
}
|
|
8961
|
-
function
|
|
8962
|
-
return !e || !
|
|
8950
|
+
function Fv(e) {
|
|
8951
|
+
return !e || !Pv(e) ? null : m_("localStorage", e);
|
|
8963
8952
|
}
|
|
8964
|
-
function
|
|
8965
|
-
|
|
8953
|
+
function Iv(e, t, n) {
|
|
8954
|
+
p_("localStorage", e, t), p_("localStorage", `${e}_timeout`, Date.now() + n);
|
|
8966
8955
|
}
|
|
8967
8956
|
//#endregion
|
|
8968
8957
|
//#region src/scripts/sagas/flow-sagas.js
|
|
8969
|
-
function*
|
|
8958
|
+
function* Lv(e, t) {
|
|
8970
8959
|
yield O((t) => t.type === H.CANCEL_STEP && t.payload.flowId === e), yield Ft(t);
|
|
8971
8960
|
}
|
|
8972
|
-
function*
|
|
8973
|
-
let n = yield A(hn, yield A($t.expanding, 5)), r = yield Nt(
|
|
8974
|
-
return yield Nt(
|
|
8961
|
+
function* Rv(e, t) {
|
|
8962
|
+
let n = yield A(hn, yield A($t.expanding, 5)), r = yield Nt(Mv, e, n, t);
|
|
8963
|
+
return yield Nt(Lv, e.id, r), n;
|
|
8975
8964
|
}
|
|
8976
|
-
function
|
|
8965
|
+
function zv(e) {
|
|
8977
8966
|
if (e.uiConditions && e.uiConditions.start) return e.uiConditions;
|
|
8978
8967
|
let t;
|
|
8979
8968
|
switch (e.type) {
|
|
@@ -8983,9 +8972,9 @@ function Bv(e) {
|
|
|
8983
8972
|
let [e] = n;
|
|
8984
8973
|
if (e) {
|
|
8985
8974
|
let n = [e.id];
|
|
8986
|
-
t =
|
|
8987
|
-
} else t =
|
|
8988
|
-
} else t =
|
|
8975
|
+
t = wv([Hn(e)], { stepChildIds: n });
|
|
8976
|
+
} else t = wv([], { stepChildIds: [] });
|
|
8977
|
+
} else t = wv(n.reduce((e, t) => [...e, Hn(t)], []), { stepChildIds: n.map((e) => e.id) });
|
|
8989
8978
|
break;
|
|
8990
8979
|
}
|
|
8991
8980
|
case C.MODAL:
|
|
@@ -8996,7 +8985,7 @@ function Bv(e) {
|
|
|
8996
8985
|
start: t
|
|
8997
8986
|
};
|
|
8998
8987
|
}
|
|
8999
|
-
function*
|
|
8988
|
+
function* Bv(e, t, n, r, i, a, o) {
|
|
9000
8989
|
let s = !1;
|
|
9001
8990
|
try {
|
|
9002
8991
|
s = (yield Pt(e)).result, s && (yield k(bl(n, od.FLOWS)), yield k(Lc(n, r, i, t, null, a, o)));
|
|
@@ -9004,56 +8993,56 @@ function* Vv(e, t, n, r, i, a, o) {
|
|
|
9004
8993
|
(yield Lt()) && (yield Ft(e)), s || (yield k(t, un));
|
|
9005
8994
|
}
|
|
9006
8995
|
}
|
|
9007
|
-
function*
|
|
8996
|
+
function* Vv(e) {
|
|
9008
8997
|
for (; (yield M(cr, e)).length > 0;) yield O(B.FINISHED_EVENT);
|
|
9009
8998
|
}
|
|
9010
|
-
function*
|
|
9011
|
-
let a = yield A(
|
|
8999
|
+
function* Hv(e, t, n, r, i = !0) {
|
|
9000
|
+
let a = yield A(Rv, e, r), o = t ? Rn(e, t) : Ln(e, 0);
|
|
9012
9001
|
In(o) && o.attributes.action_type !== pe.WAIT_FOR_PAGE && (yield k(a, Q(T.STEP_ATTEMPTED, o.id)));
|
|
9013
|
-
let s =
|
|
9002
|
+
let s = zv(o).start, { result: c, task: l, failures: u } = yield A(xv, s);
|
|
9014
9003
|
if (c) return yield k(ml(e.id)), yield k(bl(e.id, od.FLOWS)), yield k(Lc(e.id, o.id, n, a, null, e.campaign_id, e.tactic_id)), !0;
|
|
9015
9004
|
let d = (s.context || {}).stepChildIds || [];
|
|
9016
|
-
u && u.length > 0 && d.length === u.length && (yield A(
|
|
9005
|
+
u && u.length > 0 && d.length === u.length && (yield A(Q_, u.reduce((e, t, n) => t ? Object.assign(e, { [s.context.stepChildIds[n]]: t }) : e, {}), o.id, a));
|
|
9017
9006
|
let f = [B.START_FLOW];
|
|
9018
9007
|
return i !== !1 && f.push(B.CANCEL_ATTEMPTS), yield Nt(vu, {
|
|
9019
|
-
wait: A(
|
|
9008
|
+
wait: A(Bv, l, a, e.id, o.id, n, e.campaign_id, e.tactic_id),
|
|
9020
9009
|
cancel: O(f)
|
|
9021
9010
|
}), !1;
|
|
9022
9011
|
}
|
|
9023
|
-
function*
|
|
9024
|
-
let i = yield A(
|
|
9012
|
+
function* Uv(e, t, n, r) {
|
|
9013
|
+
let i = yield A(Rv, e, null);
|
|
9025
9014
|
yield k(Lc(e.id, t, n, i, r, e.campaign_id, e.tactic_id));
|
|
9026
9015
|
}
|
|
9027
|
-
function*
|
|
9016
|
+
function* Wv(e) {
|
|
9028
9017
|
let { flowId: t, stepId: n, url: r, eventChannel: i, status: a } = e.payload, o = yield M(fr, t), s = Rn(o, n);
|
|
9029
|
-
s && (s.type === C.HOTSPOTS && (yield k(Qm()), yield k(
|
|
9018
|
+
s && (s.type === C.HOTSPOTS && (yield k(Qm()), yield k(a_())), yield k(Rc(s, r, a)));
|
|
9030
9019
|
let { payload: c } = yield O((e) => e.type === H.CLOSE_FLOW && e.payload.flowId === t);
|
|
9031
9020
|
yield A($, g, Ae), yield k(Bc(i)), yield jt({
|
|
9032
|
-
wait: A(
|
|
9021
|
+
wait: A(Vv, t),
|
|
9033
9022
|
cancel: A(Z, Oe)
|
|
9034
|
-
}), !o.redirect_url && !o.next_content_id && (yield k(Qm()), yield k(
|
|
9023
|
+
}), !o.redirect_url && !o.next_content_id && (yield k(Qm()), yield k(a_())), c.type === Ce.COMPLETED && (o.redirect_url ? (o.next_content_id && (yield A(Iv, re, o.next_content_id, ae), yield A(Iv, ne, o.campaign_id, ae), yield A(Iv, y, o.tactic_id, ae)), yield A(Ud, window, o.redirect_url, o.redirect_new_tab)) : o.next_content_id && (yield k(Pc(o.next_content_id, {
|
|
9035
9024
|
campaignId: o.campaign_id ?? null,
|
|
9036
9025
|
tacticId: o.tactic_id ?? null
|
|
9037
9026
|
}))));
|
|
9038
9027
|
}
|
|
9039
|
-
function*
|
|
9028
|
+
function* Gv() {
|
|
9040
9029
|
try {
|
|
9041
|
-
return JSON.parse(yield A(
|
|
9030
|
+
return JSON.parse(yield A(m_, g, Ae));
|
|
9042
9031
|
} catch {
|
|
9043
9032
|
return {};
|
|
9044
9033
|
}
|
|
9045
9034
|
}
|
|
9046
|
-
function*
|
|
9047
|
-
yield A(
|
|
9035
|
+
function* Kv(e) {
|
|
9036
|
+
yield A(p_, g, Ae, JSON.stringify(e));
|
|
9048
9037
|
}
|
|
9049
|
-
function*
|
|
9038
|
+
function* qv(e, t) {
|
|
9050
9039
|
let n = yield M(F);
|
|
9051
9040
|
yield k(Xc(e)), yield k(q(Q(T.STEP_ERRORED, n, {
|
|
9052
9041
|
error: e.message,
|
|
9053
9042
|
details: t
|
|
9054
9043
|
})));
|
|
9055
9044
|
}
|
|
9056
|
-
function*
|
|
9045
|
+
function* Jv(e) {
|
|
9057
9046
|
let { step: t, status: n } = e.payload;
|
|
9058
9047
|
switch (t.type) {
|
|
9059
9048
|
case C.MODAL:
|
|
@@ -9064,53 +9053,53 @@ function* Yv(e) {
|
|
|
9064
9053
|
case C.ACTION:
|
|
9065
9054
|
if (n) yield k(dl(t, n));
|
|
9066
9055
|
else if (t.attributes.action_type === pe.WAIT_FOR_PAGE) {
|
|
9067
|
-
let e = yield*
|
|
9056
|
+
let e = yield* Gv();
|
|
9068
9057
|
yield k(dl(t, n || e && e.status || T.STEP_ATTEMPTED));
|
|
9069
9058
|
} else yield k(ul(t));
|
|
9070
9059
|
break;
|
|
9071
|
-
default: yield A(
|
|
9060
|
+
default: yield A(qv, /* @__PURE__ */ Error("Unknown step type."), JSON.stringify({ type: t.type }));
|
|
9072
9061
|
}
|
|
9073
9062
|
}
|
|
9074
|
-
function*
|
|
9063
|
+
function* Yv(e, t) {
|
|
9075
9064
|
t && ((yield M(hr)) === w.SHOWING && (yield k(Qc()), yield A(Z, 500)), yield k(kc(t)), yield k(Jp(e.id, t.id)));
|
|
9076
9065
|
}
|
|
9077
|
-
function*
|
|
9066
|
+
function* Xv({ payload: e }) {
|
|
9078
9067
|
let t = e.eventChannel || (yield M(br));
|
|
9079
9068
|
t && (yield k(t, e.event));
|
|
9080
9069
|
}
|
|
9081
|
-
function*
|
|
9070
|
+
function* Zv({ payload: e }) {
|
|
9082
9071
|
yield A([e, e.close]);
|
|
9083
9072
|
}
|
|
9084
|
-
function*
|
|
9073
|
+
function* Qv() {
|
|
9085
9074
|
yield [
|
|
9086
|
-
j(_u, B.START_FLOW,
|
|
9087
|
-
j(_u, B.START_STEP,
|
|
9088
|
-
j(Y, B.SEND_LIFECYCLE_EVENT,
|
|
9089
|
-
j(Y, B.CLOSE_CHANNEL,
|
|
9075
|
+
j(_u, B.START_FLOW, Wv),
|
|
9076
|
+
j(_u, B.START_STEP, Jv),
|
|
9077
|
+
j(Y, B.SEND_LIFECYCLE_EVENT, Xv),
|
|
9078
|
+
j(Y, B.CLOSE_CHANNEL, Zv)
|
|
9090
9079
|
];
|
|
9091
9080
|
}
|
|
9092
9081
|
//#endregion
|
|
9093
9082
|
//#region src/scripts/sagas/experiences-sagas.js
|
|
9094
|
-
function*
|
|
9095
|
-
let e = yield zt("dispatch"), t = (yield A(
|
|
9096
|
-
|
|
9083
|
+
function* $v() {
|
|
9084
|
+
let e = yield zt("dispatch"), t = (yield A(F_))(e);
|
|
9085
|
+
f_(t), yield k(gl(t)), yield k(vl());
|
|
9097
9086
|
}
|
|
9098
|
-
function*
|
|
9087
|
+
function* ey() {
|
|
9099
9088
|
let e = yield M(si), t = yield M(ci);
|
|
9100
9089
|
return t && (yield O(({ type: e }) => e === V.OPEN_BUILDER_INITIALIZED)), !e && !t && (yield k(_l()), yield O(({ type: e }) => e === V.OPEN_BUILDER_INITIALIZED)), yield M(si);
|
|
9101
9090
|
}
|
|
9102
|
-
function*
|
|
9103
|
-
let t = yield A(
|
|
9091
|
+
function* ty({ payload: e }) {
|
|
9092
|
+
let t = yield A(ey);
|
|
9104
9093
|
t && (yield A(t.pause, e));
|
|
9105
9094
|
}
|
|
9106
|
-
function*
|
|
9107
|
-
let t = yield A(
|
|
9095
|
+
function* ny({ payload: e }) {
|
|
9096
|
+
let t = yield A(ey);
|
|
9108
9097
|
t && (yield A(t.resume, e));
|
|
9109
9098
|
}
|
|
9110
|
-
function*
|
|
9099
|
+
function* ry(e, t) {
|
|
9111
9100
|
yield k(bl(e.id, od.EXPERIENCES)), !(yield A(cd, e.id, od.EXPERIENCES)) && t.show(e);
|
|
9112
9101
|
}
|
|
9113
|
-
function
|
|
9102
|
+
function iy(e) {
|
|
9114
9103
|
let t = {
|
|
9115
9104
|
experiences: [],
|
|
9116
9105
|
launchpads: []
|
|
@@ -9119,85 +9108,85 @@ function ay(e) {
|
|
|
9119
9108
|
t[e.type === "launchpad" ? "launchpads" : "experiences"].push(e);
|
|
9120
9109
|
}), t;
|
|
9121
9110
|
}
|
|
9122
|
-
function*
|
|
9123
|
-
let t = yield A(
|
|
9111
|
+
function* ay({ payload: e }) {
|
|
9112
|
+
let t = yield A(ey), n = e, r = n.some((e) => e.type === Me.NPS || e.type === Me.FLOW), i = n.some((e) => e.type === "launchpad");
|
|
9124
9113
|
if (i) {
|
|
9125
9114
|
yield import("./dist.DrPFC3yn.js");
|
|
9126
9115
|
let e = yield M(I);
|
|
9127
9116
|
if (e?.type !== C.HOTSPOTS && e) {
|
|
9128
|
-
let { experiences: e, launchpads: t } =
|
|
9129
|
-
n = e, yield k(
|
|
9117
|
+
let { experiences: e, launchpads: t } = iy(n);
|
|
9118
|
+
n = e, yield k(i_(t));
|
|
9130
9119
|
}
|
|
9131
9120
|
}
|
|
9132
9121
|
if (r && i) {
|
|
9133
|
-
let { experiences: e, launchpads: t } =
|
|
9134
|
-
yield k(
|
|
9122
|
+
let { experiences: e, launchpads: t } = iy(n);
|
|
9123
|
+
yield k(i_(t)), n = e;
|
|
9135
9124
|
}
|
|
9136
|
-
r && (yield k(Zm())), yield At(n.map((e) => A(
|
|
9125
|
+
r && (yield k(Zm())), yield At(n.map((e) => A(ry, e, t)));
|
|
9137
9126
|
}
|
|
9138
|
-
function*
|
|
9139
|
-
let e = yield A(
|
|
9127
|
+
function* oy() {
|
|
9128
|
+
let e = yield A(ey);
|
|
9140
9129
|
e && e.stopAll();
|
|
9141
9130
|
}
|
|
9142
|
-
var
|
|
9143
|
-
function*
|
|
9144
|
-
let e = yield A(
|
|
9131
|
+
var sy = new Set([Me.FLOW, Me.NPS]);
|
|
9132
|
+
function* cy() {
|
|
9133
|
+
let e = yield A(ey);
|
|
9145
9134
|
if (!e) return;
|
|
9146
|
-
let t = (yield A(e.getRunningExperiences) || []).filter((e) =>
|
|
9135
|
+
let t = (yield A(e.getRunningExperiences) || []).filter((e) => sy.has(e.type));
|
|
9147
9136
|
t.length !== 0 && (yield At(t.map((t) => A(e.stop, t.id))));
|
|
9148
9137
|
}
|
|
9149
|
-
function*
|
|
9150
|
-
yield (yield A(t.isExperiencePaused, e.id)) ? A(
|
|
9138
|
+
function* ly(e, t) {
|
|
9139
|
+
yield (yield A(t.isExperiencePaused, e.id)) ? A(ny, { payload: e.id }) : A(ry, e, t);
|
|
9151
9140
|
}
|
|
9152
|
-
function*
|
|
9141
|
+
function* uy() {
|
|
9153
9142
|
let e = yield M(di);
|
|
9154
9143
|
if (e.length <= 0) return;
|
|
9155
|
-
let t = yield A(
|
|
9156
|
-
yield At(e.map((e) => A(
|
|
9144
|
+
let t = yield A(ey);
|
|
9145
|
+
yield At(e.map((e) => A(ly, e, t))), yield k(i_([]));
|
|
9157
9146
|
}
|
|
9158
|
-
function*
|
|
9159
|
-
let { launchpads: e } =
|
|
9160
|
-
e.length <= 0 || (yield At(e.map((e) => A(
|
|
9147
|
+
function* dy() {
|
|
9148
|
+
let { launchpads: e } = iy(yield A((yield A(ey)).getRunningExperiences));
|
|
9149
|
+
e.length <= 0 || (yield At(e.map((e) => A(ty, { payload: e.id }))), yield k(i_(e)));
|
|
9161
9150
|
}
|
|
9162
|
-
function*
|
|
9151
|
+
function* fy() {
|
|
9163
9152
|
if ((yield M(I)).type === C.HOTSPOTS) return;
|
|
9164
|
-
let { launchpads: e } =
|
|
9165
|
-
e.length <= 0 || (yield At(e.map((e) => A(
|
|
9153
|
+
let { launchpads: e } = iy(yield A((yield A(ey)).getRunningExperiences));
|
|
9154
|
+
e.length <= 0 || (yield At(e.map((e) => A(ty, { payload: e.id }))), yield k(i_(e)));
|
|
9166
9155
|
}
|
|
9167
|
-
function*
|
|
9156
|
+
function* py({ payload: e }) {
|
|
9168
9157
|
let { type: t, event: n } = e;
|
|
9169
|
-
if ((t === "v2:step_error" || t === "v2:experience_error") && (yield k(
|
|
9170
|
-
let r = yield A(
|
|
9171
|
-
r && (yield A(r.stop, n.experienceId)), (n.experienceType === Me.NPS || n.experienceType === Me.FLOW) && (yield k(
|
|
9158
|
+
if ((t === "v2:step_error" || t === "v2:experience_error") && (yield k(Qg(n.experienceId, n.message, t === "v2:experience_error"))), (t === "v2:step_recovered" || t === "v2:experience_started") && (yield k($g(n.experienceId))), !me.includes(t)) return;
|
|
9159
|
+
let r = yield A(ey);
|
|
9160
|
+
r && (yield A(r.stop, n.experienceId)), (n.experienceType === Me.NPS || n.experienceType === Me.FLOW) && (yield k(a_()), yield k(Qm()));
|
|
9172
9161
|
}
|
|
9173
|
-
function*
|
|
9162
|
+
function* my() {
|
|
9174
9163
|
yield [
|
|
9175
|
-
j(_u, V.INITIALIZE_OPEN_BUILDER,
|
|
9176
|
-
j(Y, mc.PAUSE_EXPERIENCE,
|
|
9177
|
-
j(Y, mc.RESUME_EXPERIENCE,
|
|
9178
|
-
j(_u, mc.SHOW_EXPERIENCES,
|
|
9179
|
-
j(Y, B.START_RESET,
|
|
9180
|
-
j(Y, mc.UNHIDE_LAUNCHPADS,
|
|
9181
|
-
j(Y, mc.HIDE_LAUNCHPADS,
|
|
9182
|
-
j(Y, B.PREPARE_CONTENT,
|
|
9183
|
-
j(Y, B.START_OPEN_BUILDER_EVENT,
|
|
9164
|
+
j(_u, V.INITIALIZE_OPEN_BUILDER, $v),
|
|
9165
|
+
j(Y, mc.PAUSE_EXPERIENCE, ty),
|
|
9166
|
+
j(Y, mc.RESUME_EXPERIENCE, ny),
|
|
9167
|
+
j(_u, mc.SHOW_EXPERIENCES, ay),
|
|
9168
|
+
j(Y, B.START_RESET, oy),
|
|
9169
|
+
j(Y, mc.UNHIDE_LAUNCHPADS, uy),
|
|
9170
|
+
j(Y, mc.HIDE_LAUNCHPADS, dy),
|
|
9171
|
+
j(Y, B.PREPARE_CONTENT, fy),
|
|
9172
|
+
j(Y, B.START_OPEN_BUILDER_EVENT, py)
|
|
9184
9173
|
];
|
|
9185
9174
|
}
|
|
9186
9175
|
//#endregion
|
|
9187
9176
|
//#region src/scripts/utils/generated-properties.js
|
|
9188
|
-
function
|
|
9177
|
+
function hy() {
|
|
9189
9178
|
try {
|
|
9190
9179
|
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
9191
9180
|
} catch {
|
|
9192
9181
|
return null;
|
|
9193
9182
|
}
|
|
9194
9183
|
}
|
|
9195
|
-
function
|
|
9184
|
+
function gy(e, t, n = {}) {
|
|
9196
9185
|
let r = n;
|
|
9197
9186
|
r = r === null ? {} : r;
|
|
9198
9187
|
let i = e.location.href, a = r._sessionPageviews || 0;
|
|
9199
9188
|
(r._currentPageUrl !== i || t) && (a += 1);
|
|
9200
|
-
let o =
|
|
9189
|
+
let o = uv(e), s = e.navigator, c = s.languages ? s.languages[0] : s.language || s.userLanguage, { referrer: l } = e.document, u = Math.floor(Math.random() * 100);
|
|
9201
9190
|
t ? l ||= r._currentPageUrl : (l = r._currentPageUrl === i ? r._lastPageUrl : r._currentPageUrl, r._sessionRandomizer && (u = r._sessionRandomizer));
|
|
9202
9191
|
let d = {
|
|
9203
9192
|
_hostname: e.location.hostname,
|
|
@@ -9211,22 +9200,22 @@ function _y(e, t, n = {}) {
|
|
|
9211
9200
|
_currentPageUrl: i,
|
|
9212
9201
|
_sessionRandomizer: u,
|
|
9213
9202
|
_sessionPageviews: a,
|
|
9214
|
-
_timezoneCode:
|
|
9203
|
+
_timezoneCode: hy(),
|
|
9215
9204
|
_timezoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset(),
|
|
9216
9205
|
_appId: e.AppcuesBundleSettings?.defaultAppId || null
|
|
9217
9206
|
};
|
|
9218
|
-
return o ? (d._testContentId = o, d._testContentUrl = i,
|
|
9207
|
+
return o ? (d._testContentId = o, d._testContentUrl = i, p_(g, se, !0)) : r._testContentId && r._testContentUrl && (d._testContentId = r._testContentId, d._testContentUrl = r._testContentUrl), m_("sessionStorage", "apc_followed_test_link") || (d._testContentId = null, d._testContentUrl = null), d;
|
|
9219
9208
|
}
|
|
9220
|
-
function
|
|
9209
|
+
function _y() {
|
|
9221
9210
|
return { _lastSeenAt: Date.now() };
|
|
9222
9211
|
}
|
|
9223
|
-
function
|
|
9212
|
+
function vy(e) {
|
|
9224
9213
|
return Object.keys(e).reduce((t, n) => (x.includes(n) && (t[n] = e[n]), t), {});
|
|
9225
9214
|
}
|
|
9226
9215
|
//#endregion
|
|
9227
9216
|
//#region src/scripts/sagas/common-sagas.js
|
|
9228
9217
|
Za();
|
|
9229
|
-
var
|
|
9218
|
+
var yy = Hi([
|
|
9230
9219
|
Pa,
|
|
9231
9220
|
ja,
|
|
9232
9221
|
va,
|
|
@@ -9235,20 +9224,20 @@ var by = Hi([
|
|
|
9235
9224
|
], (0, to.createApi)({
|
|
9236
9225
|
clean: !0,
|
|
9237
9226
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
9238
|
-
})),
|
|
9227
|
+
})), by = (e) => {
|
|
9239
9228
|
if (vo(e)) {
|
|
9240
9229
|
if (!so(e, "autoplay")) return;
|
|
9241
9230
|
let { autoplay: t, ...n } = e.data.attrs;
|
|
9242
9231
|
e.data.attrs = n;
|
|
9243
9232
|
}
|
|
9244
9233
|
};
|
|
9245
|
-
function*
|
|
9234
|
+
function* xy(e) {
|
|
9246
9235
|
let t = [], n, r, i = /* @__PURE__ */ Error("Invalid HTML.");
|
|
9247
9236
|
i.extra = {};
|
|
9248
9237
|
for (let [i, a] of e.entries()) {
|
|
9249
9238
|
r = a;
|
|
9250
9239
|
try {
|
|
9251
|
-
|
|
9240
|
+
yy(document.createElement("div"), (0, Ks.default)(`<div>${r.html}</div>`, { hooks: { create: by } }));
|
|
9252
9241
|
} catch (e) {
|
|
9253
9242
|
n ||= yield M(F), t.push({
|
|
9254
9243
|
childNumber: i,
|
|
@@ -9257,17 +9246,17 @@ function* Sy(e) {
|
|
|
9257
9246
|
});
|
|
9258
9247
|
}
|
|
9259
9248
|
}
|
|
9260
|
-
return t.length === 0 ? !0 : (yield A(
|
|
9249
|
+
return t.length === 0 ? !0 : (yield A(qv, Object.assign(i, { extra: {
|
|
9261
9250
|
stepId: n,
|
|
9262
9251
|
errors: t
|
|
9263
9252
|
} }), ""), !1);
|
|
9264
9253
|
}
|
|
9265
|
-
function*
|
|
9266
|
-
yield A(
|
|
9254
|
+
function* Sy({ payload: { nextContentId: e, campaignId: t = null, tacticId: n = null } }) {
|
|
9255
|
+
yield A(Iv, re, e, ae), yield A(Iv, ne, t, ae), yield A(Iv, y, n, ae);
|
|
9267
9256
|
}
|
|
9268
9257
|
//#endregion
|
|
9269
9258
|
//#region src/scripts/sagas/session-sagas.js
|
|
9270
|
-
var
|
|
9259
|
+
var Cy = () => {
|
|
9271
9260
|
let { sessionDuration: e = 30 } = window.AppcuesSettings || {};
|
|
9272
9261
|
return {
|
|
9273
9262
|
id: Uh(),
|
|
@@ -9275,92 +9264,92 @@ var wy = () => {
|
|
|
9275
9264
|
duration: e * 6e4
|
|
9276
9265
|
};
|
|
9277
9266
|
};
|
|
9278
|
-
function*
|
|
9267
|
+
function* wy() {
|
|
9279
9268
|
try {
|
|
9280
|
-
let e = yield A(
|
|
9269
|
+
let e = yield A(m_, h, Pe), t = JSON.parse(e);
|
|
9281
9270
|
if (!t.id || !t.timestamp) throw yield A($, h, Pe), Error("Invalid session");
|
|
9282
9271
|
return t;
|
|
9283
9272
|
} catch {
|
|
9284
9273
|
return {};
|
|
9285
9274
|
}
|
|
9286
9275
|
}
|
|
9287
|
-
function*
|
|
9288
|
-
yield k(
|
|
9276
|
+
function* Ty() {
|
|
9277
|
+
yield k(R_(Cy())), yield k(B_());
|
|
9289
9278
|
}
|
|
9290
|
-
function*
|
|
9279
|
+
function* Ey() {
|
|
9291
9280
|
let e = yield M(Qn);
|
|
9292
9281
|
(!e || !e.userId) && (yield O(V.IDENTIFY));
|
|
9293
|
-
let t = yield A(
|
|
9282
|
+
let t = yield A(wy);
|
|
9294
9283
|
if (!t.id || t?.id?.includes("NaN")) {
|
|
9295
|
-
yield k(
|
|
9284
|
+
yield k(z_());
|
|
9296
9285
|
return;
|
|
9297
9286
|
}
|
|
9298
|
-
yield k(
|
|
9287
|
+
yield k(R_(t));
|
|
9299
9288
|
}
|
|
9300
|
-
function*
|
|
9289
|
+
function* Dy() {
|
|
9301
9290
|
let e = yield M(ar);
|
|
9302
|
-
yield A(
|
|
9291
|
+
yield A(p_, h, Pe, JSON.stringify(e));
|
|
9303
9292
|
}
|
|
9304
|
-
function*
|
|
9293
|
+
function* Oy() {
|
|
9305
9294
|
let e = yield M(ar);
|
|
9306
9295
|
return !e.id || Date.now() - e.duration > e.lastEventTimestamp;
|
|
9307
9296
|
}
|
|
9308
|
-
function*
|
|
9309
|
-
return (yield A(
|
|
9297
|
+
function* ky() {
|
|
9298
|
+
return (yield A(Oy)) ? (yield k(z_()), yield O(({ type: e }) => e === hc.SESSION_STARTED), xu(id(yield M(ar)))) : null;
|
|
9310
9299
|
}
|
|
9311
|
-
function*
|
|
9300
|
+
function* Ay({ payload: e }) {
|
|
9312
9301
|
(yield M($n)) || (yield O(V.COMPLETED_IDENTIFY)), (yield M(ar)).id || (yield O(hc.SET_SESSION));
|
|
9313
9302
|
let { userId: t } = e;
|
|
9314
9303
|
if (!t) return;
|
|
9315
|
-
let n = yield M(Qn), r = (n && n.userId && n.userId.toString()) !== t.toString(), i = yield A(
|
|
9316
|
-
(r || i) && (yield k(
|
|
9304
|
+
let n = yield M(Qn), r = (n && n.userId && n.userId.toString()) !== t.toString(), i = yield A(Oy);
|
|
9305
|
+
(r || i) && (yield k(z_()));
|
|
9317
9306
|
}
|
|
9318
|
-
function*
|
|
9307
|
+
function* jy() {
|
|
9319
9308
|
return yield [
|
|
9320
|
-
j(_u, V.INITIALIZE,
|
|
9321
|
-
j(_u, hc.SET_SESSION,
|
|
9322
|
-
j(_u, hc.START_SESSION,
|
|
9323
|
-
j(Y, B.START_IDENTIFY,
|
|
9309
|
+
j(_u, V.INITIALIZE, Ey),
|
|
9310
|
+
j(_u, hc.SET_SESSION, Dy),
|
|
9311
|
+
j(_u, hc.START_SESSION, Ty),
|
|
9312
|
+
j(Y, B.START_IDENTIFY, Ay)
|
|
9324
9313
|
];
|
|
9325
9314
|
}
|
|
9326
9315
|
//#endregion
|
|
9327
9316
|
//#region src/scripts/sagas/sagas.js
|
|
9328
|
-
function*
|
|
9317
|
+
function* My() {
|
|
9329
9318
|
return yield M(Ir);
|
|
9330
9319
|
}
|
|
9331
|
-
function*
|
|
9320
|
+
function* Ny(e = !1) {
|
|
9332
9321
|
if (yield M(tr)) return null;
|
|
9333
|
-
let t = yield A(
|
|
9322
|
+
let t = yield A(m_, g, b);
|
|
9334
9323
|
try {
|
|
9335
9324
|
t = JSON.parse(t);
|
|
9336
9325
|
} catch {
|
|
9337
9326
|
t = null;
|
|
9338
9327
|
}
|
|
9339
|
-
let n = yield A(
|
|
9340
|
-
if (yield A(
|
|
9341
|
-
let e = yield A(
|
|
9328
|
+
let n = yield A(gy, window, e, t);
|
|
9329
|
+
if (yield A(p_, g, b, JSON.stringify(n)), (yield A(uv, window)) && window.history && window.location) {
|
|
9330
|
+
let e = yield A(fv, window.location.href, "appcuesTestContentId");
|
|
9342
9331
|
yield A([window.history, window.history.replaceState], window.history.state, "", e), window.location.reload();
|
|
9343
9332
|
}
|
|
9344
|
-
let r = yield A(
|
|
9345
|
-
r || (r = yield A(Uh), yield A(
|
|
9346
|
-
let i = yield M(Yn), a =
|
|
9333
|
+
let r = yield A(m_, h, xe);
|
|
9334
|
+
r || (r = yield A(Uh), yield A(p_, h, xe, r));
|
|
9335
|
+
let i = yield M(Yn), a = vy({
|
|
9347
9336
|
_localId: r,
|
|
9348
9337
|
_appcuesId: i,
|
|
9349
9338
|
...n
|
|
9350
9339
|
});
|
|
9351
9340
|
return yield k(Kc(a, !0)), a;
|
|
9352
9341
|
}
|
|
9353
|
-
function*
|
|
9354
|
-
yield k(qc()), yield A($, g, b), yield A($, h, xe), yield A($, h, de), yield A($, h, v), yield A(
|
|
9342
|
+
function* Py() {
|
|
9343
|
+
yield k(qc()), yield A($, g, b), yield A($, h, xe), yield A($, h, de), yield A($, h, v), yield A(Nv, re), yield A(Nv, ne), yield A(Nv, y), yield A($, g, Ae), yield A($, g, Se), yield A($, h, Pe), yield A(h_, g, Te), yield A(Ny, !0);
|
|
9355
9344
|
}
|
|
9356
|
-
function*
|
|
9345
|
+
function* Fy(e) {
|
|
9357
9346
|
let { properties: t, events: n } = e.payload, { _isAnonymous: r } = t, { userId: i } = e.payload, a = yield M(Qn), o = a && a.userId && a.userId.toString(), s = o !== i?.toString();
|
|
9358
|
-
o && s && !r && (yield A(
|
|
9347
|
+
o && s && !r && (yield A(Py)), yield k(Uc(i)), N.defined(i) && (yield A(p_, h, de, i)), yield k(Kc({
|
|
9359
9348
|
_doNotTrack: `${window.navigator && window.navigator.doNotTrack}`[0] === "1",
|
|
9360
9349
|
...t
|
|
9361
9350
|
}, !0)), yield k(Tc(yield M(Qn), n, !0));
|
|
9362
9351
|
}
|
|
9363
|
-
function*
|
|
9352
|
+
function* Iy() {
|
|
9364
9353
|
let e = yield M(Jn);
|
|
9365
9354
|
try {
|
|
9366
9355
|
yield k(Gc(yield A(ag, e)));
|
|
@@ -9368,22 +9357,22 @@ function* Ly() {
|
|
|
9368
9357
|
yield k(Gc(e));
|
|
9369
9358
|
}
|
|
9370
9359
|
}
|
|
9371
|
-
var
|
|
9372
|
-
function*
|
|
9373
|
-
let e = yield O(
|
|
9374
|
-
yield j(Y,
|
|
9360
|
+
var Ly = (e) => e.type === B.START_IDENTIFY && N.defined(e.payload.userId);
|
|
9361
|
+
function* Ry() {
|
|
9362
|
+
let e = yield O(Ly);
|
|
9363
|
+
yield j(Y, Ly, Fy), yield A(Fy, e), yield k(al());
|
|
9375
9364
|
}
|
|
9376
|
-
function*
|
|
9377
|
-
yield j(
|
|
9365
|
+
function* zy() {
|
|
9366
|
+
yield j(Iy);
|
|
9378
9367
|
let e = yield O(V.CONFIGURE_TRANSPORT), t = 0;
|
|
9379
|
-
for (; e.error && t < 5;) yield A(Z, 100), yield j(
|
|
9368
|
+
for (; e.error && t < 5;) yield A(Z, 100), yield j(Iy), e = yield O(({ type: e }) => e === V.CONFIGURE_TRANSPORT), t += 1;
|
|
9380
9369
|
}
|
|
9381
|
-
function*
|
|
9370
|
+
function* By(e) {
|
|
9382
9371
|
yield At(e.filter((e) => e?.attributes?._builderButtonEvent).map((e) => k(Sc(e.id, e))));
|
|
9383
9372
|
}
|
|
9384
|
-
function*
|
|
9373
|
+
function* Vy({ properties: e, events: t, trigger: n, groupId: r = null, groupProperties: i = null }) {
|
|
9385
9374
|
let a = yield M(Jn);
|
|
9386
|
-
(yield A(ig, a)) || (yield A(
|
|
9375
|
+
(yield A(ig, a)) || (yield A(zy), a = yield M(Jn));
|
|
9387
9376
|
let o = yield M(Qn), { id: s } = yield M(ar), c = {
|
|
9388
9377
|
url: window.location.href,
|
|
9389
9378
|
sdk_version: window.AppcuesBundleSettings && window.AppcuesBundleSettings.VERSION
|
|
@@ -9398,26 +9387,26 @@ function* Hy({ properties: e, events: t, trigger: n, groupId: r = null, groupPro
|
|
|
9398
9387
|
})), u = t.find((e) => e.name === ue.PAGE_VIEW);
|
|
9399
9388
|
try {
|
|
9400
9389
|
let o = yield A(cg, a, e, l, n, r, s, i, c);
|
|
9401
|
-
o && (yield k(Wc(o, u)),
|
|
9390
|
+
o && (yield k(Wc(o, u)), Fg(o)), yield k(R_({ lastEventTimestamp: t[t.length - 1].timestamp })), yield k(pl());
|
|
9402
9391
|
} catch (e) {
|
|
9403
9392
|
yield k(Wc(e));
|
|
9404
9393
|
}
|
|
9405
9394
|
}
|
|
9406
|
-
function
|
|
9395
|
+
function Hy(e) {
|
|
9407
9396
|
for (let t of e) if (t.name === ue.PAGE_VIEW) try {
|
|
9408
9397
|
if (N.string(t.attributes.url) && t.attributes.url.length > 0) return t;
|
|
9409
9398
|
} catch {}
|
|
9410
9399
|
return null;
|
|
9411
9400
|
}
|
|
9412
|
-
function
|
|
9401
|
+
function Uy(e) {
|
|
9413
9402
|
return Pn(e) && tf(e.attributes.params.url, window.location.href);
|
|
9414
9403
|
}
|
|
9415
|
-
function*
|
|
9404
|
+
function* Wy(e) {
|
|
9416
9405
|
let t = e, n = null, r = null, i = null, a = null, o = null, s = yield M(Wn);
|
|
9417
9406
|
if (t && (!s || s.id !== t && (!s.migrated_from_step_id || s.migrated_from_step_id !== t))) {
|
|
9418
9407
|
if (r = window.location.href, yield k(zc()), s && N.defined(s.id)) {
|
|
9419
9408
|
let e = Rn(s, yield M(F));
|
|
9420
|
-
e && (yield*
|
|
9409
|
+
e && (yield* Yv(s, e)), yield k(Yp(s.id, Ce.SHOWING_OTHER_CONTENT));
|
|
9421
9410
|
}
|
|
9422
9411
|
let e = yield M(ur);
|
|
9423
9412
|
if (e && e[t]) n = e[t];
|
|
@@ -9449,20 +9438,20 @@ function* Gy(e) {
|
|
|
9449
9438
|
experience: o
|
|
9450
9439
|
};
|
|
9451
9440
|
}
|
|
9452
|
-
function
|
|
9441
|
+
function Gy(e) {
|
|
9453
9442
|
return Nn(e) && tf(e.attributes.params.url, window.location.href);
|
|
9454
9443
|
}
|
|
9455
|
-
function
|
|
9444
|
+
function Ky(e, t) {
|
|
9456
9445
|
return !Nn(e) && t === T.STEP_COMPLETED;
|
|
9457
9446
|
}
|
|
9458
|
-
function*
|
|
9459
|
-
let e = JSON.parse(yield A(
|
|
9447
|
+
function* qy() {
|
|
9448
|
+
let e = JSON.parse(yield A(m_, g, Ae));
|
|
9460
9449
|
if (e) {
|
|
9461
9450
|
let t = e, n = yield M(Wn), r = n && n.id === e.flowId, i = Rn(n, e.stepId), a = window.location.href;
|
|
9462
9451
|
if (Pn(i)) {
|
|
9463
|
-
if (yield A(
|
|
9452
|
+
if (yield A(Uy, i)) return yield fu(Uv, n, i.id, a, null), !0;
|
|
9464
9453
|
let t = e.remainingPagesToCheck;
|
|
9465
|
-
return t === 1 ? (yield k(zc()), yield A(
|
|
9454
|
+
return t === 1 ? (yield k(zc()), yield A(Yv, n, i), yield k(Yp(n.id, Ce.CLEAR)), !1) : (yield A(Kv, {
|
|
9466
9455
|
...e,
|
|
9467
9456
|
remainingPagesToCheck: t - 1
|
|
9468
9457
|
}), !0);
|
|
@@ -9471,7 +9460,7 @@ function* Jy() {
|
|
|
9471
9460
|
let o;
|
|
9472
9461
|
if (r) o = n, a = window.location.href;
|
|
9473
9462
|
else {
|
|
9474
|
-
let t = yield A(
|
|
9463
|
+
let t = yield A(Wy, e.flowId);
|
|
9475
9464
|
o = t.content, a = t.shownUrl, o && (yield k(ll()));
|
|
9476
9465
|
}
|
|
9477
9466
|
if (o) {
|
|
@@ -9481,39 +9470,39 @@ function* Jy() {
|
|
|
9481
9470
|
campaign_id: n,
|
|
9482
9471
|
tactic_id: i
|
|
9483
9472
|
};
|
|
9484
|
-
let s = Rn(o, e.stepId), c = e.status, l =
|
|
9473
|
+
let s = Rn(o, e.stepId), c = e.status, l = Gy(s), u = Pn(s), d = e.navByADTT;
|
|
9485
9474
|
if (l || d || u) {
|
|
9486
9475
|
let n = s, i = c;
|
|
9487
|
-
if (
|
|
9476
|
+
if (Ky(s, c) && (n = Ln(o, zn(o, e.stepId) + 1), i = T.STEP_ATTEMPTED), Nn(n) || Pn(n)) {
|
|
9488
9477
|
if (i === T.STEP_COMPLETED && (n = Ln(o, zn(o, n.id) + 1), i = null), Pn(n)) {
|
|
9489
9478
|
let { flowId: e, remainingPagesToCheck: r } = t, { page_check_limit: i } = n.attributes.params, a = typeof r == "number" ? r : typeof i == "number" ? i : 2;
|
|
9490
|
-
if (a <= 1) return yield k(zc()), yield A(
|
|
9479
|
+
if (a <= 1) return yield k(zc()), yield A(Yv, o, n), yield k(Yp(o.id, Ce.CLEAR)), t.fromPermalink || (yield A($, g, Ae)), !1;
|
|
9491
9480
|
t = {
|
|
9492
9481
|
...t,
|
|
9493
9482
|
flowId: e,
|
|
9494
9483
|
stepId: n.id,
|
|
9495
9484
|
status: T.STEP_ATTEMPTED,
|
|
9496
9485
|
remainingPagesToCheck: a - 1
|
|
9497
|
-
}, yield A(
|
|
9486
|
+
}, yield A(Kv, t);
|
|
9498
9487
|
}
|
|
9499
|
-
r && (yield k(Xp(o.id, s.id)), yield A(
|
|
9488
|
+
r && (yield k(Xp(o.id, s.id)), yield A(Yv, o, s));
|
|
9500
9489
|
let { flowId: e, submissionId: c } = t;
|
|
9501
|
-
return yield A(
|
|
9490
|
+
return yield A(Kv, {
|
|
9502
9491
|
...t,
|
|
9503
9492
|
flowId: e,
|
|
9504
9493
|
submissionId: c
|
|
9505
|
-
}), yield fu(
|
|
9494
|
+
}), yield fu(Uv, o, n.id, a, i), !0;
|
|
9506
9495
|
}
|
|
9507
9496
|
}
|
|
9508
9497
|
}
|
|
9509
9498
|
}
|
|
9510
9499
|
return !1;
|
|
9511
9500
|
}
|
|
9512
|
-
var
|
|
9513
|
-
function*
|
|
9501
|
+
var Jy = "@appcues/sequential";
|
|
9502
|
+
function* Yy() {
|
|
9514
9503
|
let e;
|
|
9515
9504
|
try {
|
|
9516
|
-
e = JSON.parse(yield A(
|
|
9505
|
+
e = JSON.parse(yield A(m_, g, Se));
|
|
9517
9506
|
} catch {
|
|
9518
9507
|
return !1;
|
|
9519
9508
|
}
|
|
@@ -9522,13 +9511,13 @@ function* Xy() {
|
|
|
9522
9511
|
if (t && !r) {
|
|
9523
9512
|
if (e.lastCheckedUrl === n) return !0;
|
|
9524
9513
|
let t = (typeof e.remainingPagesToCheck == "number" ? e.remainingPagesToCheck : 2) - 1;
|
|
9525
|
-
return t <= 0 ? (yield A($, g, Se), !1) : (yield A(
|
|
9514
|
+
return t <= 0 ? (yield A($, g, Se), !1) : (yield A(p_, g, Se, JSON.stringify({
|
|
9526
9515
|
...e,
|
|
9527
9516
|
remainingPagesToCheck: t,
|
|
9528
9517
|
lastCheckedUrl: n
|
|
9529
9518
|
})), !0);
|
|
9530
9519
|
}
|
|
9531
|
-
let i = yield A(
|
|
9520
|
+
let i = yield A(ey);
|
|
9532
9521
|
if (!i) return yield A($, g, Se), !1;
|
|
9533
9522
|
let a = yield M(Jn), o;
|
|
9534
9523
|
try {
|
|
@@ -9541,7 +9530,7 @@ function* Xy() {
|
|
|
9541
9530
|
...o,
|
|
9542
9531
|
campaignId: s,
|
|
9543
9532
|
tacticId: c,
|
|
9544
|
-
traits: (o.traits ?? []).map((t) => t.type ===
|
|
9533
|
+
traits: (o.traits ?? []).map((t) => t.type === Jy ? {
|
|
9545
9534
|
...t,
|
|
9546
9535
|
config: {
|
|
9547
9536
|
...t.config,
|
|
@@ -9551,39 +9540,39 @@ function* Xy() {
|
|
|
9551
9540
|
};
|
|
9552
9541
|
return yield A($, g, Se), yield A([i, i.show], l), !0;
|
|
9553
9542
|
}
|
|
9554
|
-
function*
|
|
9543
|
+
function* Xy() {
|
|
9555
9544
|
yield k(fl(window.location.href, !1));
|
|
9556
9545
|
let e = yield M(Wn);
|
|
9557
9546
|
if (e) {
|
|
9558
|
-
let t = JSON.parse(yield A(
|
|
9559
|
-
n &&
|
|
9547
|
+
let t = JSON.parse(yield A(m_, g, Ae)), n = t ? Rn(e, t.stepId) : null;
|
|
9548
|
+
n && Uy(n) && (yield A(Kv, {
|
|
9560
9549
|
...t,
|
|
9561
9550
|
status: T.STEP_SHOWN
|
|
9562
9551
|
}));
|
|
9563
9552
|
}
|
|
9564
|
-
let t = yield A(
|
|
9553
|
+
let t = yield A(qy), n = yield A(Yy), r = t || n;
|
|
9565
9554
|
if (!t) {
|
|
9566
9555
|
let e;
|
|
9567
|
-
if (yield A(
|
|
9568
|
-
if (e = yield A(
|
|
9569
|
-
let e = yield A(
|
|
9556
|
+
if (yield A(dv, window, "showappcue")) {
|
|
9557
|
+
if (e = yield A(dv, window, "showappcue"), window.history) {
|
|
9558
|
+
let e = yield A(fv, window.location.href, "showappcue");
|
|
9570
9559
|
yield A([window.history, window.history.replaceState], window.history.state, "", e);
|
|
9571
9560
|
}
|
|
9572
|
-
} else (yield A(
|
|
9561
|
+
} else (yield A(dv, window, "appcue")) && (e = yield A(dv, window, "appcue"));
|
|
9573
9562
|
let t, n;
|
|
9574
|
-
if (yield A(
|
|
9575
|
-
let r = yield A(
|
|
9576
|
-
if (yield A(
|
|
9577
|
-
if (e = r, yield A(
|
|
9578
|
-
let e = yield A(
|
|
9563
|
+
if (yield A(Pv, "apc_next_content_id")) {
|
|
9564
|
+
let r = yield A(Fv, re);
|
|
9565
|
+
if (yield A(Nv, re), !e) {
|
|
9566
|
+
if (e = r, yield A(Pv, "apc_next_campaign_id")) {
|
|
9567
|
+
let e = yield A(Fv, ne);
|
|
9579
9568
|
t = e === "null" ? null : e;
|
|
9580
9569
|
}
|
|
9581
|
-
if (yield A(
|
|
9582
|
-
let e = yield A(
|
|
9570
|
+
if (yield A(Pv, "apc_next_tactic_id")) {
|
|
9571
|
+
let e = yield A(Fv, y);
|
|
9583
9572
|
n = e === "null" ? null : e;
|
|
9584
9573
|
}
|
|
9585
9574
|
}
|
|
9586
|
-
yield A(
|
|
9575
|
+
yield A(Nv, ne), yield A(Nv, y);
|
|
9587
9576
|
}
|
|
9588
9577
|
e && (yield k(Pc(e, {
|
|
9589
9578
|
...t !== void 0 && { campaignId: t },
|
|
@@ -9592,44 +9581,44 @@ function* Zy() {
|
|
|
9592
9581
|
}
|
|
9593
9582
|
return yield k(fl(window.location.href, !0)), r;
|
|
9594
9583
|
}
|
|
9595
|
-
function*
|
|
9596
|
-
let t = yield M(Wn), n = Rn(t, yield M(F)), r =
|
|
9584
|
+
function* Zy(e) {
|
|
9585
|
+
let t = yield M(Wn), n = Rn(t, yield M(F)), r = Hy(e);
|
|
9597
9586
|
if (r && r.attributes.url && t !== null) {
|
|
9598
9587
|
let e = yield M(_r);
|
|
9599
|
-
|
|
9588
|
+
fv(r.attributes.url) !== fv(e) && (n && (yield* Yv(t, n)), yield k(Yp(t.id, Ce.CLEAR)));
|
|
9600
9589
|
}
|
|
9601
9590
|
}
|
|
9602
|
-
function*
|
|
9591
|
+
function* Qy({ properties: e, events: t, groupProperties: n, groupId: r }) {
|
|
9603
9592
|
let i = e, a = n;
|
|
9604
|
-
if (
|
|
9605
|
-
let e = yield A(
|
|
9593
|
+
if (Hy(t)) {
|
|
9594
|
+
let e = yield A(Ny);
|
|
9606
9595
|
if (i = {
|
|
9607
9596
|
...i,
|
|
9608
9597
|
...e
|
|
9609
9598
|
}, r != null && (a = {
|
|
9610
9599
|
...a,
|
|
9611
|
-
...
|
|
9600
|
+
..._y()
|
|
9612
9601
|
}), !tf((yield M(lr)).url, window.location.href)) {
|
|
9613
9602
|
(yield M(hr)) === w.WILL_CLOSE && (yield O(H.CLOSE_STEP)), yield k(zc());
|
|
9614
9603
|
let e = yield M(si);
|
|
9615
|
-
e && e.stopAll(), (yield A(
|
|
9604
|
+
e && e.stopAll(), (yield A(Xy)) || (yield A(Zy, t)), (yield M($r)) && (yield At([A(V_), A(H_)]));
|
|
9616
9605
|
}
|
|
9617
9606
|
}
|
|
9618
9607
|
return [i, a];
|
|
9619
9608
|
}
|
|
9620
|
-
function*
|
|
9621
|
-
(yield A(
|
|
9622
|
-
let a = yield A(
|
|
9609
|
+
function* $y({ properties: e, events: t, trigger: n, groupId: r, groupProperties: i }) {
|
|
9610
|
+
(yield A(My)) || (yield O(V.INITIALIZE), yield O(hc.SET_SESSION), yield O(V.CHECKED_FOR_INITIAL_CONTENT));
|
|
9611
|
+
let a = yield A(m_, h, v), [o, s] = yield* Qy({
|
|
9623
9612
|
properties: e,
|
|
9624
9613
|
events: t,
|
|
9625
9614
|
groupProperties: i,
|
|
9626
9615
|
groupId: r ?? a
|
|
9627
|
-
}), c = t, l = yield A(
|
|
9616
|
+
}), c = t, l = yield A(ky);
|
|
9628
9617
|
if (l) {
|
|
9629
9618
|
let e = t[0];
|
|
9630
9619
|
e && (l.timestamp = e.timestamp), c = [l, ...t];
|
|
9631
9620
|
}
|
|
9632
|
-
yield A(
|
|
9621
|
+
yield A(Vy, {
|
|
9633
9622
|
properties: o,
|
|
9634
9623
|
events: c,
|
|
9635
9624
|
trigger: n,
|
|
@@ -9637,7 +9626,7 @@ function* eb({ properties: e, events: t, trigger: n, groupId: r, groupProperties
|
|
|
9637
9626
|
groupProperties: s
|
|
9638
9627
|
});
|
|
9639
9628
|
}
|
|
9640
|
-
function*
|
|
9629
|
+
function* eb() {
|
|
9641
9630
|
let e = yield A($t.expanding, 10), t = yield It([B.START_ACTIVITY, B.START_GROUP_ACTIVITY], e), n = yield M(Qn);
|
|
9642
9631
|
(!n || !n.userId) && (yield O(V.IDENTIFY));
|
|
9643
9632
|
let r = [];
|
|
@@ -9662,53 +9651,53 @@ function* tb() {
|
|
|
9662
9651
|
});
|
|
9663
9652
|
});
|
|
9664
9653
|
let l = !1, u = !1;
|
|
9665
|
-
if (a = a.filter((e) =>
|
|
9666
|
-
let e = yield j(
|
|
9654
|
+
if (a = a.filter((e) => Hy([e]) ? fv(e.attributes.url) !== fv(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) {
|
|
9655
|
+
let e = yield j($y, {
|
|
9667
9656
|
properties: n,
|
|
9668
9657
|
events: a,
|
|
9669
9658
|
trigger: o,
|
|
9670
9659
|
groupId: s,
|
|
9671
9660
|
groupProperties: c
|
|
9672
|
-
}), t = yield j(
|
|
9661
|
+
}), t = yield j(By, a);
|
|
9673
9662
|
r.push(e, t);
|
|
9674
9663
|
}
|
|
9675
9664
|
}
|
|
9676
9665
|
}
|
|
9677
|
-
function*
|
|
9666
|
+
function* tb() {
|
|
9678
9667
|
for (;;) {
|
|
9679
9668
|
let e = yield O([V.SENT_ACTIVITY_UPDATE, B.FINISHED_EVENT]);
|
|
9680
9669
|
switch (e.type) {
|
|
9681
9670
|
case V.SENT_ACTIVITY_UPDATE:
|
|
9682
|
-
yield A(
|
|
9671
|
+
yield A(A_);
|
|
9683
9672
|
break;
|
|
9684
9673
|
case B.FINISHED_EVENT: {
|
|
9685
9674
|
let t = e.payload?.event?.experienceId;
|
|
9686
|
-
t && (yield A(
|
|
9675
|
+
t && (yield A(k_, t));
|
|
9687
9676
|
break;
|
|
9688
9677
|
}
|
|
9689
9678
|
default: break;
|
|
9690
9679
|
}
|
|
9691
9680
|
}
|
|
9692
9681
|
}
|
|
9693
|
-
function*
|
|
9682
|
+
function* nb(e, t) {
|
|
9694
9683
|
let n = yield M(Zn, e);
|
|
9695
9684
|
if (n && n.length > 0) for (let r of n) {
|
|
9696
9685
|
let n = [t];
|
|
9697
9686
|
e === "all" && (n = [t.id, ...n]), yield A([r.context || window, r.callback], ...n);
|
|
9698
9687
|
}
|
|
9699
9688
|
}
|
|
9700
|
-
function*
|
|
9689
|
+
function* rb({ payload: e }) {
|
|
9701
9690
|
let { flowId: t, event: n } = e;
|
|
9702
|
-
yield Pt(yield fu(
|
|
9691
|
+
yield Pt(yield fu(nb, n.id, n), yield fu(nb, "all", n)), yield k(wc(t, n));
|
|
9703
9692
|
}
|
|
9704
|
-
function*
|
|
9693
|
+
function* ib({ payload: e }) {
|
|
9705
9694
|
let t = yield A(um, e.fields);
|
|
9706
9695
|
if (t.result || e.ignoreValidation) {
|
|
9707
9696
|
if (!e.fields.some((e) => e.value)) {
|
|
9708
9697
|
yield A(e.onSuccess);
|
|
9709
9698
|
return;
|
|
9710
9699
|
}
|
|
9711
|
-
let t = yield M(F), n = yield M(xr), { submissionId: r } = yield*
|
|
9700
|
+
let t = yield M(F), n = yield M(xr), { submissionId: r } = yield* Gv();
|
|
9712
9701
|
yield k(q(rm(T.STEP_INTERACTED, t, n, {
|
|
9713
9702
|
interactionType: "submit",
|
|
9714
9703
|
interaction: {
|
|
@@ -9736,17 +9725,17 @@ function* ab({ payload: e }) {
|
|
|
9736
9725
|
Object.keys(i).length > 0 && (yield k(Tc(i, [], !1)));
|
|
9737
9726
|
} else yield k(Rp(t.errors));
|
|
9738
9727
|
}
|
|
9739
|
-
function*
|
|
9740
|
-
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 A(
|
|
9728
|
+
function* ab({ payload: e }) {
|
|
9729
|
+
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 A(Wy, t);
|
|
9741
9730
|
if (c) {
|
|
9742
9731
|
let e = n ? {
|
|
9743
9732
|
...c,
|
|
9744
9733
|
campaignId: r ?? null,
|
|
9745
9734
|
tacticId: i ?? null
|
|
9746
9735
|
} : c;
|
|
9747
|
-
|
|
9736
|
+
sy.has(c.type) && (yield A(cy)), yield k(r_([e]));
|
|
9748
9737
|
}
|
|
9749
|
-
if (o && (yield A(
|
|
9738
|
+
if (o && (yield A(Hv, n ? {
|
|
9750
9739
|
...o,
|
|
9751
9740
|
campaign_id: r ?? null,
|
|
9752
9741
|
tactic_id: i ?? null
|
|
@@ -9755,7 +9744,7 @@ function* ob({ payload: e }) {
|
|
|
9755
9744
|
yield A($, g, `${Te}${s.id}`), yield k(yc(e, { _showChecklist: s.id }));
|
|
9756
9745
|
}
|
|
9757
9746
|
}
|
|
9758
|
-
function*
|
|
9747
|
+
function* ob() {
|
|
9759
9748
|
let e = yield M(hr);
|
|
9760
9749
|
if (N.inArray([w.READY, w.WILL_SHOW], e)) {
|
|
9761
9750
|
if (e !== w.WILL_SHOW && (yield O(V.WILL_SHOW_CONTENT)).error) return;
|
|
@@ -9764,22 +9753,22 @@ function* sb() {
|
|
|
9764
9753
|
yield k(q(Q(T.STEP_REVEALED, t)));
|
|
9765
9754
|
}
|
|
9766
9755
|
}
|
|
9767
|
-
function*
|
|
9756
|
+
function* sb() {
|
|
9768
9757
|
let e = yield jt({
|
|
9769
9758
|
cancel: O(B.CANCEL_ATTEMPTS),
|
|
9770
|
-
result: A(
|
|
9759
|
+
result: A(ob)
|
|
9771
9760
|
}), t = yield M(hr);
|
|
9772
9761
|
if (e.cancel && t === w.WILL_SHOW) {
|
|
9773
9762
|
let e = yield M(Wn);
|
|
9774
9763
|
if (e && N.defined(e.id)) {
|
|
9775
9764
|
let t = Rn(e, yield M(F));
|
|
9776
|
-
t && (yield*
|
|
9765
|
+
t && (yield* Yv(e, t)), yield k(Yp(e.id, Ce.SHOWING_OTHER_CONTENT));
|
|
9777
9766
|
}
|
|
9778
9767
|
}
|
|
9779
9768
|
}
|
|
9780
|
-
function*
|
|
9769
|
+
function* cb() {
|
|
9781
9770
|
if (yield M(Un)) {
|
|
9782
|
-
(yield M(I)).type !== C.HOTSPOTS && (yield k(Zm()), yield k(
|
|
9771
|
+
(yield M(I)).type !== C.HOTSPOTS && (yield k(Zm()), yield k(o_()));
|
|
9783
9772
|
let e = yield M(vr), t = yield M(pr);
|
|
9784
9773
|
if (e && !t[e]) {
|
|
9785
9774
|
let t;
|
|
@@ -9793,13 +9782,13 @@ function* lb() {
|
|
|
9793
9782
|
yield k(Ac());
|
|
9794
9783
|
}
|
|
9795
9784
|
}
|
|
9796
|
-
function*
|
|
9785
|
+
function* lb() {
|
|
9797
9786
|
let e = yield M(Qn), { _localId: t } = e;
|
|
9798
9787
|
t || (yield O(({ type: e, payload: t }) => e === V.UPDATE_USER && N.defined(t.profile._localId)), e = yield M(Qn));
|
|
9799
9788
|
let { _localId: n } = e;
|
|
9800
9789
|
yield k(yc(`anon:${n}`, { _isAnonymous: !0 }, [bu(ue.PAGE_VIEW, { url: window.location.href })]));
|
|
9801
9790
|
}
|
|
9802
|
-
function*
|
|
9791
|
+
function* ub({ payload: e }) {
|
|
9803
9792
|
let t = yield M($n), n = yield M(tr);
|
|
9804
9793
|
t || (yield O(V.COMPLETED_IDENTIFY));
|
|
9805
9794
|
let r = yield M(Qn), { _appcuesId: i } = r;
|
|
@@ -9809,31 +9798,31 @@ function* db({ payload: e }) {
|
|
|
9809
9798
|
} catch {}
|
|
9810
9799
|
yield A(e, r);
|
|
9811
9800
|
}
|
|
9812
|
-
function*
|
|
9801
|
+
function* db({ payload: e }) {
|
|
9813
9802
|
let t = yield M(sr, e);
|
|
9814
9803
|
t && t.length > 0 && (yield k(sl(e)), yield t.map((e) => Ft(e)));
|
|
9815
9804
|
}
|
|
9816
|
-
function
|
|
9805
|
+
function fb(e) {
|
|
9817
9806
|
return e === null || e === w.ERROR;
|
|
9818
9807
|
}
|
|
9819
|
-
function
|
|
9808
|
+
function pb(e, t) {
|
|
9820
9809
|
return !!(e && t);
|
|
9821
9810
|
}
|
|
9822
|
-
function*
|
|
9811
|
+
function* mb() {
|
|
9823
9812
|
let e = yield M(Wn), t = Rn(e, yield M(F));
|
|
9824
|
-
yield k(zc()), yield A(
|
|
9813
|
+
yield k(zc()), yield A(Yv, e, t), yield k(Yp(e.id, Ce.CLEAR));
|
|
9825
9814
|
}
|
|
9826
|
-
function*
|
|
9815
|
+
function* hb(e) {
|
|
9827
9816
|
let { currentUrl: t, shouldOverrideCurrentFlow: n, requestId: r } = e.payload, i = yield M(dr), a = yield M(hr), o = yield M(Un);
|
|
9828
|
-
if (!(!i || i.length === 0) && (
|
|
9817
|
+
if (!(!i || i.length === 0) && (fb(a) || pb(a, n))) {
|
|
9829
9818
|
let e = !0, s = yield M(ur);
|
|
9830
9819
|
for (let c of i) {
|
|
9831
9820
|
let i = s[c];
|
|
9832
9821
|
if (o === i.id) return;
|
|
9833
9822
|
let l = yield A(cd, i.id, od.FLOWS);
|
|
9834
|
-
if (l && (yield k(bl(i.id, od.FLOWS))), a && n && (yield A(
|
|
9835
|
-
if (yield A(
|
|
9836
|
-
e && (yield A(
|
|
9823
|
+
if (l && (yield k(bl(i.id, od.FLOWS))), a && n && (yield A(mb)), !l) {
|
|
9824
|
+
if (yield A(Hv, i, null, t, r)) {
|
|
9825
|
+
e && (yield A(Lg, r));
|
|
9837
9826
|
return;
|
|
9838
9827
|
}
|
|
9839
9828
|
e = !1;
|
|
@@ -9841,7 +9830,7 @@ function* gb(e) {
|
|
|
9841
9830
|
}
|
|
9842
9831
|
}
|
|
9843
9832
|
}
|
|
9844
|
-
function*
|
|
9833
|
+
function* gb(e, t, n, r) {
|
|
9845
9834
|
let i = yield M(Jn), a = e.getEntriesByType("resource").filter((e) => e.name.match(/fast\.appcues\./)).map((e) => e.toJSON());
|
|
9846
9835
|
yield A(lg, i, {
|
|
9847
9836
|
api_request_start: Math.round(n - t),
|
|
@@ -9850,7 +9839,7 @@ function* _b(e, t, n, r) {
|
|
|
9850
9839
|
sdk_version: window.AppcuesBundleSettings.VERSION
|
|
9851
9840
|
});
|
|
9852
9841
|
}
|
|
9853
|
-
function*
|
|
9842
|
+
function* _b() {
|
|
9854
9843
|
try {
|
|
9855
9844
|
yield O(hc.SET_SESSION);
|
|
9856
9845
|
let e = window.performance, t = (yield M(ar)).timestamp % 100 == 0;
|
|
@@ -9877,93 +9866,93 @@ function* vb() {
|
|
|
9877
9866
|
time_to_show: Math.round(e.now() - n),
|
|
9878
9867
|
content_type: l,
|
|
9879
9868
|
sdk_version: window.AppcuesBundleSettings.VERSION
|
|
9880
|
-
}), t || (yield*
|
|
9881
|
-
})), t && (yield*
|
|
9869
|
+
}), t || (yield* gb(e, n, i, o));
|
|
9870
|
+
})), t && (yield* gb(e, n, i, o));
|
|
9882
9871
|
}
|
|
9883
9872
|
} catch {}
|
|
9884
9873
|
}
|
|
9885
|
-
function*
|
|
9886
|
-
let e = JSON.parse(yield A(
|
|
9874
|
+
function* vb() {
|
|
9875
|
+
let e = JSON.parse(yield A(m_, g, he));
|
|
9887
9876
|
if (e) {
|
|
9888
9877
|
let { checklistId: t, itemId: n, actionIndex: r, checklist: i } = e;
|
|
9889
9878
|
yield A($, g, he), yield k(ch(t, n, r + 1, i));
|
|
9890
9879
|
}
|
|
9891
9880
|
return !1;
|
|
9892
9881
|
}
|
|
9893
|
-
function*
|
|
9882
|
+
function* yb() {
|
|
9894
9883
|
let e = yield O(B.START_INITIALIZE);
|
|
9895
|
-
if (!(yield A(
|
|
9896
|
-
let t = yield A(
|
|
9884
|
+
if (!(yield A(My))) {
|
|
9885
|
+
let t = yield A(m_, h, de);
|
|
9897
9886
|
t !== null && (yield k(yc(t, {}, [bu(ue.PAGE_VIEW, { url: window.location.href })])));
|
|
9898
9887
|
let n = yield A(rg, e.payload.dispatchMessage.onMessage, e.payload.dispatchMessage.onTimeout, e.payload.transportModule);
|
|
9899
|
-
yield A(
|
|
9888
|
+
yield A(Ny, !0), yield k(Hc({
|
|
9900
9889
|
type: n.type,
|
|
9901
9890
|
module: e.payload.transportModule,
|
|
9902
9891
|
details: n.details
|
|
9903
|
-
})), yield A(
|
|
9892
|
+
})), yield A(Xy), yield A(vb);
|
|
9904
9893
|
}
|
|
9905
9894
|
}
|
|
9906
|
-
function*
|
|
9895
|
+
function* bb({ payload: { groupId: e, groupProperties: t } }) {
|
|
9907
9896
|
let n = {
|
|
9908
9897
|
...t,
|
|
9909
|
-
...
|
|
9898
|
+
..._y()
|
|
9910
9899
|
};
|
|
9911
|
-
yield k(Ec(e, n)), yield A(
|
|
9900
|
+
yield k(Ec(e, n)), yield A(p_, h, v, e), yield k(xl({
|
|
9912
9901
|
groupId: e,
|
|
9913
9902
|
groupProps: n
|
|
9914
9903
|
}));
|
|
9915
9904
|
}
|
|
9916
|
-
function*
|
|
9905
|
+
function* xb({ payload: e }) {
|
|
9917
9906
|
let t = yield M(ur);
|
|
9918
9907
|
if (Object.prototype.hasOwnProperty.call(t, e)) return;
|
|
9919
9908
|
let n = yield A(ug, yield M(Jn), e);
|
|
9920
9909
|
yield k(Jc([e], { [e]: n }));
|
|
9921
9910
|
}
|
|
9922
|
-
function*
|
|
9911
|
+
function* Sb() {
|
|
9923
9912
|
yield [
|
|
9924
|
-
fu(
|
|
9925
|
-
fu(
|
|
9926
|
-
fu(
|
|
9927
|
-
j(Y, B.START_EVENT,
|
|
9913
|
+
fu(yb),
|
|
9914
|
+
fu(Ry),
|
|
9915
|
+
fu(_b),
|
|
9916
|
+
j(Y, B.START_EVENT, rb),
|
|
9917
|
+
j(eb),
|
|
9928
9918
|
j(tb),
|
|
9929
|
-
j(
|
|
9930
|
-
j(Y, B.
|
|
9931
|
-
j(
|
|
9932
|
-
j(_u,
|
|
9933
|
-
j(
|
|
9934
|
-
j(Y, B.
|
|
9935
|
-
j(Y,
|
|
9936
|
-
j(Y,
|
|
9937
|
-
j(
|
|
9938
|
-
j(
|
|
9939
|
-
j(Y,
|
|
9940
|
-
j(Y,
|
|
9941
|
-
j(Y, V.PREFETCH_FLOWS, Sb)
|
|
9919
|
+
j(Y, B.START_ANONYMOUS, lb),
|
|
9920
|
+
j(Y, B.START_FORM_SUBMISSION, ib),
|
|
9921
|
+
j(_u, B.START_SHOW, ab),
|
|
9922
|
+
j(_u, H.LOADED_CSS, sb),
|
|
9923
|
+
j(Y, B.PREPARE_CONTENT, cb),
|
|
9924
|
+
j(Y, B.START_RESET, Py),
|
|
9925
|
+
j(Y, V.WAIT_IDENTIFY, ub),
|
|
9926
|
+
j(Y, B.STOP_TASKS, db),
|
|
9927
|
+
j(_u, B.START_CHECK, hb),
|
|
9928
|
+
j(Y, H.SET_NEXT_CONTENT_ID_COOKIE, Sy),
|
|
9929
|
+
j(Y, B.START_IDENTIFY_GROUP, bb),
|
|
9930
|
+
j(Y, V.PREFETCH_FLOWS, xb)
|
|
9942
9931
|
];
|
|
9943
9932
|
}
|
|
9944
9933
|
//#endregion
|
|
9945
9934
|
//#region src/scripts/custom-events/listeners/get-matching-events.js
|
|
9946
|
-
function
|
|
9935
|
+
function Cb(e, t) {
|
|
9947
9936
|
return e.innerText == null ? !1 : t ? e.innerText.replace(/\r\n|\r|\n/g, " ").toLowerCase().trim() === t.toLowerCase().trim() : !0;
|
|
9948
9937
|
}
|
|
9949
|
-
function
|
|
9938
|
+
function wb(e, t) {
|
|
9950
9939
|
return Object.prototype.hasOwnProperty.call(t, "order_filter") ? e === Ao(t) : !0;
|
|
9951
9940
|
}
|
|
9952
|
-
function
|
|
9941
|
+
function Tb(e, t) {
|
|
9953
9942
|
try {
|
|
9954
9943
|
return !e.includes("|shadow-root|") && !e.includes("|iframe|") && (t.matches ? t.matches(e) : t.msMatchesSelector(e)) ? t : Cn(ro(e), (e) => e.contains(t));
|
|
9955
9944
|
} catch {
|
|
9956
9945
|
return null;
|
|
9957
9946
|
}
|
|
9958
9947
|
}
|
|
9959
|
-
function
|
|
9948
|
+
function Eb({ events: e, $element: t, eventType: n }) {
|
|
9960
9949
|
return e.map((e) => {
|
|
9961
9950
|
let { targets: r } = e;
|
|
9962
9951
|
for (let i of r) {
|
|
9963
9952
|
let { event: r, selector: a } = i;
|
|
9964
9953
|
if (r === n) {
|
|
9965
|
-
let { selector: n, text_filter: r } = a, o =
|
|
9966
|
-
if (o &&
|
|
9954
|
+
let { selector: n, text_filter: r } = a, o = Tb(n, t);
|
|
9955
|
+
if (o && Cb(o, r) && wb(o, a)) return [
|
|
9967
9956
|
e,
|
|
9968
9957
|
o,
|
|
9969
9958
|
i
|
|
@@ -9973,11 +9962,11 @@ function Db({ events: e, $element: t, eventType: n }) {
|
|
|
9973
9962
|
return null;
|
|
9974
9963
|
}).filter((e) => e);
|
|
9975
9964
|
}
|
|
9976
|
-
function
|
|
9965
|
+
function Db({ events: e, matchSelector: t }) {
|
|
9977
9966
|
try {
|
|
9978
9967
|
return e.flatMap((e) => e.targets).filter(({ selector: e }) => t(e.selector)).flatMap(({ selector: e }) => {
|
|
9979
9968
|
let { selector: t, text_filter: n } = e;
|
|
9980
|
-
return ro(t).filter((t) =>
|
|
9969
|
+
return ro(t).filter((t) => Cb(t, n) && wb(t, e));
|
|
9981
9970
|
});
|
|
9982
9971
|
} catch {
|
|
9983
9972
|
return [];
|
|
@@ -9985,14 +9974,14 @@ function Ob({ events: e, matchSelector: t }) {
|
|
|
9985
9974
|
}
|
|
9986
9975
|
//#endregion
|
|
9987
9976
|
//#region src/scripts/custom-events/listeners/get-composed-path.js
|
|
9988
|
-
function
|
|
9977
|
+
function Ob(e) {
|
|
9989
9978
|
return e.composedPath ? e.composedPath() : [e.target];
|
|
9990
9979
|
}
|
|
9991
9980
|
//#endregion
|
|
9992
9981
|
//#region src/scripts/custom-events/listeners/click.js
|
|
9993
|
-
function
|
|
9982
|
+
function kb({ events: e, onEventsTriggered: t, stopPropagation: n }) {
|
|
9994
9983
|
let r = e.filter(({ targets: e }) => e.some(({ event: e }) => e === "click")), i = (e) => {
|
|
9995
|
-
let [i] =
|
|
9984
|
+
let [i] = Ob(e), a = Eb({
|
|
9996
9985
|
events: r,
|
|
9997
9986
|
$element: i,
|
|
9998
9987
|
eventType: "click"
|
|
@@ -10005,7 +9994,7 @@ function Ab({ events: e, onEventsTriggered: t, stopPropagation: n }) {
|
|
|
10005
9994
|
(e.key === " " || e.key === "Enter") && i(e);
|
|
10006
9995
|
};
|
|
10007
9996
|
try {
|
|
10008
|
-
let e =
|
|
9997
|
+
let e = Db({
|
|
10009
9998
|
events: r,
|
|
10010
9999
|
matchSelector: (e) => e.includes("|iframe|")
|
|
10011
10000
|
});
|
|
@@ -10022,14 +10011,14 @@ function Ab({ events: e, onEventsTriggered: t, stopPropagation: n }) {
|
|
|
10022
10011
|
}
|
|
10023
10012
|
//#endregion
|
|
10024
10013
|
//#region src/scripts/custom-events/listeners/input.js
|
|
10025
|
-
var
|
|
10026
|
-
function
|
|
10014
|
+
var Ab = (e, t) => e.includes(t);
|
|
10015
|
+
function jb({ events: e, onEventsTriggered: t }) {
|
|
10027
10016
|
let n = e.filter(({ targets: e }) => e.some(({ event: e }) => e === "input")), r = [], i = (e) => {
|
|
10028
|
-
let [i] =
|
|
10017
|
+
let [i] = Ob(e), a = Eb({
|
|
10029
10018
|
events: n,
|
|
10030
10019
|
$element: i,
|
|
10031
10020
|
eventType: "input"
|
|
10032
|
-
}).filter(([e]) => !
|
|
10021
|
+
}).filter(([e]) => !Ab(r, e));
|
|
10033
10022
|
r = [...r, ...a.map(([e]) => e)], t(a.map(([e, , t]) => ({
|
|
10034
10023
|
...e,
|
|
10035
10024
|
matchedTarget: t
|
|
@@ -10038,7 +10027,7 @@ function Mb({ events: e, onEventsTriggered: t }) {
|
|
|
10038
10027
|
r = [];
|
|
10039
10028
|
};
|
|
10040
10029
|
try {
|
|
10041
|
-
let e =
|
|
10030
|
+
let e = Db({
|
|
10042
10031
|
events: n,
|
|
10043
10032
|
matchSelector: (e) => e.includes("|iframe|")
|
|
10044
10033
|
});
|
|
@@ -10055,13 +10044,13 @@ function Mb({ events: e, onEventsTriggered: t }) {
|
|
|
10055
10044
|
}
|
|
10056
10045
|
//#endregion
|
|
10057
10046
|
//#region src/scripts/custom-events/listeners/hover.js
|
|
10058
|
-
function
|
|
10047
|
+
function Mb(e, t) {
|
|
10059
10048
|
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);
|
|
10060
10049
|
for (; (n = r.nextNode()) !== null;) t(n.shadowRoot);
|
|
10061
10050
|
}
|
|
10062
|
-
function
|
|
10051
|
+
function Nb({ events: e, onEventsTriggered: t }) {
|
|
10063
10052
|
let n = e.filter(({ targets: e }) => e.some(({ event: e }) => e === "hover")), r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
10064
|
-
let [i] =
|
|
10053
|
+
let [i] = Ob(e), a = Eb({
|
|
10065
10054
|
events: n,
|
|
10066
10055
|
$element: i,
|
|
10067
10056
|
eventType: "hover"
|
|
@@ -10078,7 +10067,7 @@ function Pb({ events: e, onEventsTriggered: t }) {
|
|
|
10078
10067
|
let i = window.setTimeout(() => {
|
|
10079
10068
|
t(e);
|
|
10080
10069
|
}, 500), a = (e) => {
|
|
10081
|
-
let [t] =
|
|
10070
|
+
let [t] = Ob(e);
|
|
10082
10071
|
t === n && (window.clearTimeout(i), r.delete(n), n.removeEventListener("mouseleave", a));
|
|
10083
10072
|
};
|
|
10084
10073
|
n.addEventListener("mouseleave", a);
|
|
@@ -10086,16 +10075,16 @@ function Pb({ events: e, onEventsTriggered: t }) {
|
|
|
10086
10075
|
};
|
|
10087
10076
|
if (n.length > 0) try {
|
|
10088
10077
|
document.addEventListener("mouseover", i);
|
|
10089
|
-
let e =
|
|
10078
|
+
let e = Db({
|
|
10090
10079
|
events: n,
|
|
10091
10080
|
matchSelector: (e) => e.includes("|iframe|")
|
|
10092
10081
|
});
|
|
10093
10082
|
return e.forEach((e) => {
|
|
10094
10083
|
e.addEventListener("mouseover", i);
|
|
10095
|
-
}),
|
|
10084
|
+
}), Mb(document.body, (e) => e.addEventListener("mouseover", i)), () => {
|
|
10096
10085
|
document.removeEventListener("mouseover", i), e.forEach((e) => {
|
|
10097
10086
|
e.removeEventListener("mouseover", i);
|
|
10098
|
-
}),
|
|
10087
|
+
}), Mb(document.body, (e) => e.removeEventListener("mouseover", i));
|
|
10099
10088
|
};
|
|
10100
10089
|
} catch {
|
|
10101
10090
|
return null;
|
|
@@ -10104,10 +10093,10 @@ function Pb({ events: e, onEventsTriggered: t }) {
|
|
|
10104
10093
|
}
|
|
10105
10094
|
//#endregion
|
|
10106
10095
|
//#region src/scripts/custom-events/transform-custom-event.js
|
|
10107
|
-
var
|
|
10108
|
-
function
|
|
10096
|
+
var Pb = "appcues/click-to-track";
|
|
10097
|
+
function Fb({ name: e, timestamp: t, attributes: { url: n, interaction: r, selector: i } }) {
|
|
10109
10098
|
return {
|
|
10110
|
-
source:
|
|
10099
|
+
source: Pb,
|
|
10111
10100
|
id: e,
|
|
10112
10101
|
name: e,
|
|
10113
10102
|
timestamp: t,
|
|
@@ -10121,17 +10110,17 @@ function Ib({ name: e, timestamp: t, attributes: { url: n, interaction: r, selec
|
|
|
10121
10110
|
}
|
|
10122
10111
|
//#endregion
|
|
10123
10112
|
//#region src/scripts/custom-events/saga.js
|
|
10124
|
-
var
|
|
10125
|
-
function*
|
|
10113
|
+
var Ib = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
10114
|
+
function* Lb(e = [], t = !1) {
|
|
10126
10115
|
let n = nf(), r = e.filter(({ urls: e }) => e.some((e) => e === "*" || tf(e, n))), i = gn((e) => {
|
|
10127
|
-
let n =
|
|
10116
|
+
let n = kb({
|
|
10128
10117
|
events: r,
|
|
10129
10118
|
onEventsTriggered: e,
|
|
10130
10119
|
stopPropagation: t
|
|
10131
|
-
}), i =
|
|
10120
|
+
}), i = jb({
|
|
10132
10121
|
events: r,
|
|
10133
10122
|
onEventsTriggered: e
|
|
10134
|
-
}), a =
|
|
10123
|
+
}), a = Nb({
|
|
10135
10124
|
events: r,
|
|
10136
10125
|
onEventsTriggered: e
|
|
10137
10126
|
});
|
|
@@ -10142,15 +10131,15 @@ function* Rb(e = [], t = !1) {
|
|
|
10142
10131
|
try {
|
|
10143
10132
|
for (;;) {
|
|
10144
10133
|
let e = yield O(i);
|
|
10145
|
-
e.length > 0 && (yield k(
|
|
10134
|
+
e.length > 0 && (yield k(L_(e.map(({ name: e, targets: t, matchedTarget: r }) => {
|
|
10146
10135
|
let { event: i, selector: a } = r ?? t[0];
|
|
10147
10136
|
return bu(e, {
|
|
10148
10137
|
url: n,
|
|
10149
10138
|
interaction: i,
|
|
10150
10139
|
selector: {
|
|
10151
10140
|
css: a.selector,
|
|
10152
|
-
...
|
|
10153
|
-
...
|
|
10141
|
+
...Ib(a, "text_filter") ? { textFilter: a.text_filter } : {},
|
|
10142
|
+
...Ib(a, "order_filter") ? { orderFilter: a.order_filter } : {}
|
|
10154
10143
|
}
|
|
10155
10144
|
});
|
|
10156
10145
|
}))));
|
|
@@ -10159,26 +10148,26 @@ function* Rb(e = [], t = !1) {
|
|
|
10159
10148
|
(yield Lt()) && i.close();
|
|
10160
10149
|
}
|
|
10161
10150
|
}
|
|
10162
|
-
function*
|
|
10151
|
+
function* Rb(e = []) {
|
|
10163
10152
|
let [t, n] = yield [j(function* () {
|
|
10164
10153
|
try {
|
|
10165
10154
|
if (!e || e.length === 0) return;
|
|
10166
10155
|
for (;;) {
|
|
10167
|
-
let t = yield j(
|
|
10156
|
+
let t = yield j(Lb, e);
|
|
10168
10157
|
yield O(({ type: e, payload: t }) => e === B.START_ACTIVITY && t.events.some((e) => e.name === ue.PAGE_VIEW)), yield Ft(t);
|
|
10169
10158
|
}
|
|
10170
10159
|
} catch (e) {
|
|
10171
10160
|
console.log("Appcues: caught error listening for custom events", e);
|
|
10172
10161
|
}
|
|
10173
|
-
}), j(yn,
|
|
10162
|
+
}), j(yn, I_, function* ({ payload: e }) {
|
|
10174
10163
|
try {
|
|
10175
|
-
(yield A(
|
|
10164
|
+
(yield A(My)) || (yield O(V.INITIALIZE)), yield A(Vy, {
|
|
10176
10165
|
properties: {},
|
|
10177
10166
|
events: e,
|
|
10178
10167
|
trigger: !0,
|
|
10179
|
-
groupId: (yield A(
|
|
10168
|
+
groupId: (yield A(m_, "localStorage", "apc_group_id")) ?? null
|
|
10180
10169
|
}), (yield M(nr)) && (yield e.map((e) => {
|
|
10181
|
-
let t =
|
|
10170
|
+
let t = Fb({
|
|
10182
10171
|
...e,
|
|
10183
10172
|
name: e.name.replace("appcues_custom:", "")
|
|
10184
10173
|
});
|
|
@@ -10192,26 +10181,26 @@ function* zb(e = []) {
|
|
|
10192
10181
|
}
|
|
10193
10182
|
//#endregion
|
|
10194
10183
|
//#region src/scripts/integrations/integration-helpers.js
|
|
10195
|
-
function
|
|
10184
|
+
function zb({ attributes: e }) {
|
|
10196
10185
|
return e ? !!e._builderButtonEvent : !1;
|
|
10197
10186
|
}
|
|
10198
|
-
function
|
|
10199
|
-
let t =
|
|
10187
|
+
function Bb(e) {
|
|
10188
|
+
let t = zb(e), n = te.some((t) => e?.id?.startsWith(t)), r = e?.source === Pb;
|
|
10200
10189
|
return !t && !n && !r;
|
|
10201
10190
|
}
|
|
10202
|
-
function
|
|
10191
|
+
function Vb(e) {
|
|
10203
10192
|
return `${e.name} (Appcues)`;
|
|
10204
10193
|
}
|
|
10205
|
-
function
|
|
10194
|
+
function Hb(e, t) {
|
|
10206
10195
|
return {
|
|
10207
10196
|
...e,
|
|
10208
10197
|
user: t
|
|
10209
10198
|
};
|
|
10210
10199
|
}
|
|
10211
|
-
function
|
|
10200
|
+
function Ub(e, t, n, r, i) {
|
|
10212
10201
|
e(t, "event", n, r, i, { nonInteraction: !0 });
|
|
10213
10202
|
}
|
|
10214
|
-
function
|
|
10203
|
+
function Wb(e, t = {}) {
|
|
10215
10204
|
switch (e) {
|
|
10216
10205
|
case "Form Field Submitted (Appcues)": {
|
|
10217
10206
|
let { user: e, interaction: n, interaction: { category: r, destination: i, formId: a, fieldId: o, label: s, value: c } = {}, ...l } = t;
|
|
@@ -10228,7 +10217,7 @@ function Gb(e, t = {}) {
|
|
|
10228
10217
|
default: return t;
|
|
10229
10218
|
}
|
|
10230
10219
|
}
|
|
10231
|
-
function
|
|
10220
|
+
function Gb(e) {
|
|
10232
10221
|
if (!e.user) return e;
|
|
10233
10222
|
let t = Object.entries(e.user).reduce((e, [t, n]) => {
|
|
10234
10223
|
if (t.startsWith("_")) {
|
|
@@ -10242,7 +10231,7 @@ function Kb(e) {
|
|
|
10242
10231
|
user: t
|
|
10243
10232
|
};
|
|
10244
10233
|
}
|
|
10245
|
-
var
|
|
10234
|
+
var Kb = (e) => {
|
|
10246
10235
|
let t = new Set([
|
|
10247
10236
|
"string",
|
|
10248
10237
|
"boolean",
|
|
@@ -10250,10 +10239,10 @@ var qb = (e) => {
|
|
|
10250
10239
|
]);
|
|
10251
10240
|
return Array.isArray(e) ? e.every((e) => t.has(typeof e)) : t.has(typeof e);
|
|
10252
10241
|
};
|
|
10253
|
-
function
|
|
10254
|
-
let { user: t, ...n } = e, r = Object.entries(n).reduce((e, [t, n]) => (
|
|
10242
|
+
function qb(e) {
|
|
10243
|
+
let { user: t, ...n } = e, r = Object.entries(n).reduce((e, [t, n]) => (Kb(n) && (e[t] = n), e), {});
|
|
10255
10244
|
if (!t) return r;
|
|
10256
|
-
let i = Object.entries(t).reduce((e, [t, n]) => (
|
|
10245
|
+
let i = Object.entries(t).reduce((e, [t, n]) => (Kb(n) && (e[`user.${t}`] = n), e), {});
|
|
10257
10246
|
return {
|
|
10258
10247
|
...r,
|
|
10259
10248
|
...i
|
|
@@ -10261,13 +10250,13 @@ function Jb(e) {
|
|
|
10261
10250
|
}
|
|
10262
10251
|
//#endregion
|
|
10263
10252
|
//#region src/scripts/integrations/integration-methods.js
|
|
10264
|
-
function
|
|
10253
|
+
function Jb(e, t) {
|
|
10265
10254
|
let { settings: n } = t(), r = (n) => () => {
|
|
10266
10255
|
e.on("all", (e, r) => {
|
|
10267
|
-
if (
|
|
10268
|
-
let i =
|
|
10256
|
+
if (Bb(r)) return;
|
|
10257
|
+
let i = Vb(r), a = zb(r) ? r.name : e;
|
|
10269
10258
|
try {
|
|
10270
|
-
a && i && n(a, i,
|
|
10259
|
+
a && i && n(a, i, Hb(r, t().user));
|
|
10271
10260
|
} catch {}
|
|
10272
10261
|
});
|
|
10273
10262
|
};
|
|
@@ -10276,7 +10265,7 @@ function Yb(e, t) {
|
|
|
10276
10265
|
window.mixpanel.track(t, n);
|
|
10277
10266
|
}),
|
|
10278
10267
|
initHeap: r((e, n, r) => {
|
|
10279
|
-
let i =
|
|
10268
|
+
let i = Wb(n, r);
|
|
10280
10269
|
window.heap.addUserProperties({ appcuesUserID: Qn(t()).userId }), window.heap.track(n, i, "appcues");
|
|
10281
10270
|
}),
|
|
10282
10271
|
initIntercom: r((e, t, n) => {
|
|
@@ -10329,15 +10318,15 @@ function Yb(e, t) {
|
|
|
10329
10318
|
if (s) {
|
|
10330
10319
|
let n = window[window.GoogleAnalyticsObject];
|
|
10331
10320
|
N.function(n) ? n((t) => {
|
|
10332
|
-
if (l)
|
|
10333
|
-
else if (t)
|
|
10321
|
+
if (l) Ub(n, `${l}.send`, c, e, s);
|
|
10322
|
+
else if (t) Ub(n, "send", c, e, s);
|
|
10334
10323
|
else {
|
|
10335
10324
|
let t = n.getAll().reduce((e, t) => ({
|
|
10336
10325
|
...e,
|
|
10337
10326
|
[t.get("trackingId")]: t.get("name")
|
|
10338
10327
|
}), {});
|
|
10339
10328
|
Object.keys(t).forEach((r) => {
|
|
10340
|
-
|
|
10329
|
+
Ub(n, `${t[r]}.send`, c, e, s);
|
|
10341
10330
|
});
|
|
10342
10331
|
}
|
|
10343
10332
|
}) : window._gaq ? window._gaq.push([
|
|
@@ -10376,28 +10365,28 @@ function Yb(e, t) {
|
|
|
10376
10365
|
window.braze.logCustomEvent(t, n);
|
|
10377
10366
|
}),
|
|
10378
10367
|
initFullStory: r((e, t, n) => {
|
|
10379
|
-
let r =
|
|
10368
|
+
let r = Gb(n);
|
|
10380
10369
|
window.FS.event(t, r);
|
|
10381
10370
|
}),
|
|
10382
10371
|
initHotjar: r((e, t) => {
|
|
10383
10372
|
window.hj("event", t);
|
|
10384
10373
|
}),
|
|
10385
10374
|
initLogRocket: r((e, t, n) => {
|
|
10386
|
-
let r =
|
|
10375
|
+
let r = qb(n);
|
|
10387
10376
|
window.LogRocket.track(t, r);
|
|
10388
10377
|
})
|
|
10389
10378
|
};
|
|
10390
10379
|
}
|
|
10391
10380
|
//#endregion
|
|
10392
10381
|
//#region src/scripts/bind-interface.js
|
|
10393
|
-
function
|
|
10382
|
+
function Yb(e, t) {
|
|
10394
10383
|
let n = {
|
|
10395
10384
|
...t,
|
|
10396
10385
|
url: e
|
|
10397
10386
|
};
|
|
10398
10387
|
return bu(ue.PAGE_VIEW, n);
|
|
10399
10388
|
}
|
|
10400
|
-
function
|
|
10389
|
+
function Xb({ dispatch: e, getState: t }) {
|
|
10401
10390
|
let n = {
|
|
10402
10391
|
identify(n, r = {}) {
|
|
10403
10392
|
let i = n, a = r;
|
|
@@ -10407,7 +10396,7 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10407
10396
|
Xn(t())(/* @__PURE__ */ Error("Appcues.identify() called with invalid user properties"));
|
|
10408
10397
|
} catch {}
|
|
10409
10398
|
}
|
|
10410
|
-
N.object(i) ? (a = i, i = a.userId || Qn(t()).userId || null) : (N.undefined(i) || i === null) && (i = a.userId || Qn(t()).userId || null), delete a.userId, N.defined(i) ? e(yc(i, a, [
|
|
10399
|
+
N.object(i) ? (a = i, i = a.userId || Qn(t()).userId || null) : (N.undefined(i) || i === null) && (i = a.userId || Qn(t()).userId || null), delete a.userId, N.defined(i) ? e(yc(i, a, [Yb(window.location.href)])) : e(Kc(a, !0));
|
|
10411
10400
|
},
|
|
10412
10401
|
track(t, n = {}) {
|
|
10413
10402
|
t && e(Tc({}, [bu(t, n)], !0));
|
|
@@ -10417,7 +10406,7 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10417
10406
|
N.object(t) ? r = t : N.string(t) && (r = {
|
|
10418
10407
|
...r,
|
|
10419
10408
|
name: t
|
|
10420
|
-
}), e(Tc({}, [
|
|
10409
|
+
}), e(Tc({}, [Yb(window.location.href, r)], !0));
|
|
10421
10410
|
},
|
|
10422
10411
|
anonymous() {
|
|
10423
10412
|
e(Dc());
|
|
@@ -10444,7 +10433,7 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10444
10433
|
e(jc());
|
|
10445
10434
|
},
|
|
10446
10435
|
debug(t = !0) {
|
|
10447
|
-
e(t ? Mc() :
|
|
10436
|
+
e(t ? Mc() : e_());
|
|
10448
10437
|
},
|
|
10449
10438
|
loadLaunchpad(t, n) {
|
|
10450
10439
|
e(_h({
|
|
@@ -10453,7 +10442,7 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10453
10442
|
}));
|
|
10454
10443
|
},
|
|
10455
10444
|
loadOpenBuilder() {
|
|
10456
|
-
return
|
|
10445
|
+
return P_();
|
|
10457
10446
|
},
|
|
10458
10447
|
group(n, r) {
|
|
10459
10448
|
let i = n, a = r;
|
|
@@ -10492,22 +10481,22 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10492
10481
|
}
|
|
10493
10482
|
};
|
|
10494
10483
|
}
|
|
10495
|
-
}),
|
|
10496
|
-
let r =
|
|
10484
|
+
}), s_(n), c_(n, t), d_(n);
|
|
10485
|
+
let r = Jb(n, t);
|
|
10497
10486
|
return Object.assign(n, r), Object.assign(n, {
|
|
10498
10487
|
start() {
|
|
10499
10488
|
n.page();
|
|
10500
10489
|
},
|
|
10501
10490
|
experience: {
|
|
10502
|
-
pause: (t) => e(
|
|
10503
|
-
resume: (t) => e(
|
|
10504
|
-
show: (t) => e(
|
|
10491
|
+
pause: (t) => e(t_(t)),
|
|
10492
|
+
resume: (t) => e(n_(t)),
|
|
10493
|
+
show: (t) => e(r_([t]))
|
|
10505
10494
|
}
|
|
10506
10495
|
}), n;
|
|
10507
10496
|
}
|
|
10508
10497
|
//#endregion
|
|
10509
10498
|
//#region src/scripts/snippets/load-snippets.js
|
|
10510
|
-
function
|
|
10499
|
+
function Zb(e, t) {
|
|
10511
10500
|
if (!t || !t.integrity) return;
|
|
10512
10501
|
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");
|
|
10513
10502
|
a.src = `${i}/v1/accounts/${e}/snippets.js?v=${n}`, a.integrity = r, a.crossOrigin = "anonymous", a.async = !0, a.addEventListener("error", () => {
|
|
@@ -10519,7 +10508,7 @@ function Qb(e, t) {
|
|
|
10519
10508
|
}
|
|
10520
10509
|
//#endregion
|
|
10521
10510
|
//#region src/scripts/views/components/debugger.jsx
|
|
10522
|
-
var
|
|
10511
|
+
var Qb = "https://studio.appcues.com", $b = (e) => {
|
|
10523
10512
|
switch (e.type) {
|
|
10524
10513
|
case C.MODAL: switch (e.attributes.pattern_type) {
|
|
10525
10514
|
case "shorty": return "Slideout Group";
|
|
@@ -10532,17 +10521,17 @@ var $b = "https://studio.appcues.com", ex = (e) => {
|
|
|
10532
10521
|
default: return null;
|
|
10533
10522
|
}
|
|
10534
10523
|
};
|
|
10535
|
-
function
|
|
10524
|
+
function ex(e) {
|
|
10536
10525
|
return !!(e && e.attributes && e.attributes.params && e.attributes.params.url);
|
|
10537
10526
|
}
|
|
10538
|
-
function
|
|
10527
|
+
function tx(e) {
|
|
10539
10528
|
return !!(e && e.type === C.ACTION && e.attributes.action_type === pe.WAIT_FOR_PAGE);
|
|
10540
10529
|
}
|
|
10541
|
-
var
|
|
10530
|
+
var nx = (e, t, n) => {
|
|
10542
10531
|
let r = Rn(e || {}, t), i = On(r, n);
|
|
10543
|
-
return /* @__PURE__ */ (0, L.html)("div", null, /* @__PURE__ */ (0, L.html)("div", null, `${(e || {}).name}, Step ${zn(e, t) + 1} (${
|
|
10532
|
+
return /* @__PURE__ */ (0, L.html)("div", null, /* @__PURE__ */ (0, L.html)("div", null, `${(e || {}).name}, Step ${zn(e, t) + 1} (${$b(r || {})})${i > -1 ? `, Part ${i + 1}` : ""}`), tx(r) && ex(r) ? /* @__PURE__ */ (0, L.html)("div", null, `Page to match: ${r.attributes.params.url}`) : "");
|
|
10544
10533
|
};
|
|
10545
|
-
function
|
|
10534
|
+
function rx(e) {
|
|
10546
10535
|
let { lastTrackedPage: t, currentPage: n, activeContent: r, stepChildErrors: i, user: a, group: o, settings: s, isTransportInitialized: c, rowState: l, onToggleRowDetails: u, onToggleCollapsed: d, onCloseDebugger: f } = e, p = t && n, m = t === n, h = a && N.defined(a.userId), g = o && N.defined(o.groupId), _ = Object.keys(i || {}).reduce((e, t) => {
|
|
10547
10536
|
let n = i[t];
|
|
10548
10537
|
return n.errorReported && !n.recoveryReported ? [...e, {
|
|
@@ -10554,7 +10543,7 @@ function ix(e) {
|
|
|
10554
10543
|
"class-header": !0,
|
|
10555
10544
|
"on-click": d
|
|
10556
10545
|
}, /* @__PURE__ */ (0, L.html)("div", { "class-logo": !0 }, /* @__PURE__ */ (0, L.html)("a", {
|
|
10557
|
-
"attrs-href":
|
|
10546
|
+
"attrs-href": Qb,
|
|
10558
10547
|
"attrs-target": "_blank"
|
|
10559
10548
|
}, /* @__PURE__ */ (0, L.html)(Nd, {
|
|
10560
10549
|
width: "20px",
|
|
@@ -10563,35 +10552,35 @@ function ix(e) {
|
|
|
10563
10552
|
"on-click": f,
|
|
10564
10553
|
role: "button",
|
|
10565
10554
|
"aria-label": "Close debugger"
|
|
10566
|
-
}, "×"))), /* @__PURE__ */ (0, L.html)("div", { "class-panel": !0 }, /* @__PURE__ */ (0, L.html)(
|
|
10555
|
+
}, "×"))), /* @__PURE__ */ (0, L.html)("div", { "class-panel": !0 }, /* @__PURE__ */ (0, L.html)(ix, {
|
|
10567
10556
|
status: s && s.accountId ? "check" : "alert",
|
|
10568
10557
|
category: "Installed",
|
|
10569
10558
|
description: `Account ID: ${s && s.accountId ? s.accountId : "Unknown"}`
|
|
10570
|
-
}), /* @__PURE__ */ (0, L.html)(
|
|
10559
|
+
}), /* @__PURE__ */ (0, L.html)(ix, {
|
|
10571
10560
|
status: c ? "check" : "alert",
|
|
10572
10561
|
category: `${c ? "" : "Not "}Connected to Appcues`
|
|
10573
|
-
}), /* @__PURE__ */ (0, L.html)(
|
|
10562
|
+
}), /* @__PURE__ */ (0, L.html)(ix, {
|
|
10574
10563
|
status: p ? m ? "check" : "alert" : "pending",
|
|
10575
10564
|
category: "Tracking Pages",
|
|
10576
10565
|
description: p ? m ? "Current URL matches last tracked" : "URL has changed since last tracked" : "Navigate to another page to test",
|
|
10577
10566
|
showDetails: (l || {})["track-data"],
|
|
10578
10567
|
onToggleRowDetails: () => u("track-data"),
|
|
10579
10568
|
details: /* @__PURE__ */ (0, L.html)("span", null, /* @__PURE__ */ (0, L.html)("b", null, "Last Tracked URL:"), /* @__PURE__ */ (0, L.html)("br", null), t, /* @__PURE__ */ (0, L.html)("br", null), /* @__PURE__ */ (0, L.html)("br", null), /* @__PURE__ */ (0, L.html)("b", null, "Current URL:"), /* @__PURE__ */ (0, L.html)("br", null), n)
|
|
10580
|
-
}), /* @__PURE__ */ (0, L.html)(
|
|
10569
|
+
}), /* @__PURE__ */ (0, L.html)(ix, {
|
|
10581
10570
|
status: h ? "check" : "alert",
|
|
10582
10571
|
category: `User ${h ? "" : "Not "}Identified`,
|
|
10583
10572
|
description: h ? a._isAnonymous ? "Anonymous User" : `User ID: ${a.userId}` : "Have you called `identify`?",
|
|
10584
10573
|
showDetails: (l || {})["user-data"],
|
|
10585
10574
|
onToggleRowDetails: () => u("user-data"),
|
|
10586
|
-
details: h ? /* @__PURE__ */ (0, L.html)(
|
|
10587
|
-
}), g ? /* @__PURE__ */ (0, L.html)(
|
|
10575
|
+
details: h ? /* @__PURE__ */ (0, L.html)(ax, { user: a }) : /* @__PURE__ */ (0, L.html)("span", null, "Please identify the current user by providing a userId and tracked properties")
|
|
10576
|
+
}), g ? /* @__PURE__ */ (0, L.html)(ix, {
|
|
10588
10577
|
status: "check",
|
|
10589
10578
|
category: "Group Identified",
|
|
10590
10579
|
description: `Group ID: ${o.groupId}`,
|
|
10591
10580
|
showDetails: (l || {})["group-data"],
|
|
10592
10581
|
onToggleRowDetails: () => u("group-data"),
|
|
10593
|
-
details: /* @__PURE__ */ (0, L.html)(
|
|
10594
|
-
}) : /* @__PURE__ */ (0, L.html)(z, null), r.length > 0 ? r.map((e) => /* @__PURE__ */ (0, L.html)(
|
|
10582
|
+
details: /* @__PURE__ */ (0, L.html)(ax, { user: o.groupProps })
|
|
10583
|
+
}) : /* @__PURE__ */ (0, L.html)(z, null), r.length > 0 ? r.map((e) => /* @__PURE__ */ (0, L.html)(ix, {
|
|
10595
10584
|
key: e.id,
|
|
10596
10585
|
status: e.status,
|
|
10597
10586
|
category: `Showing ${e.typeLabel}`,
|
|
@@ -10599,7 +10588,7 @@ function ix(e) {
|
|
|
10599
10588
|
showDetails: (l || {})[`content-details-${e.id}`],
|
|
10600
10589
|
onToggleRowDetails: () => u(`content-details-${e.id}`),
|
|
10601
10590
|
details: e.details
|
|
10602
|
-
})) : /* @__PURE__ */ (0, L.html)(z, null), _.length > 0 ? /* @__PURE__ */ (0, L.html)(
|
|
10591
|
+
})) : /* @__PURE__ */ (0, L.html)(z, null), _.length > 0 ? /* @__PURE__ */ (0, L.html)(ix, {
|
|
10603
10592
|
status: "warn",
|
|
10604
10593
|
category: "Content Omitted",
|
|
10605
10594
|
description: "Some content isn't showing",
|
|
@@ -10607,23 +10596,23 @@ function ix(e) {
|
|
|
10607
10596
|
onToggleRowDetails: () => u("omit-content"),
|
|
10608
10597
|
details: /* @__PURE__ */ (0, L.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, L.html)("ul", null, _.map((e) => {
|
|
10609
10598
|
let { stepChildId: t, flow: n } = e;
|
|
10610
|
-
return /* @__PURE__ */ (0, L.html)("li", null,
|
|
10599
|
+
return /* @__PURE__ */ (0, L.html)("li", null, nx(n, (Bn(Tn(n), t) || {}).id, t));
|
|
10611
10600
|
})))
|
|
10612
10601
|
}) : /* @__PURE__ */ (0, L.html)(z, null)), /* @__PURE__ */ (0, L.html)("div", { "class-footer": !0 }, /* @__PURE__ */ (0, L.html)("a", {
|
|
10613
|
-
href: v ? `${
|
|
10602
|
+
href: v ? `${Qb}/audience/users/${encodeURIComponent(a.userId)}/eligibility` : void 0,
|
|
10614
10603
|
classNames: v ? "" : "disabled",
|
|
10615
10604
|
"attrs-tabindex": v ? void 0 : "-1",
|
|
10616
10605
|
target: "_blank",
|
|
10617
10606
|
rel: "noreferrer"
|
|
10618
10607
|
}, /* @__PURE__ */ (0, L.html)("div", { "class-launch-diagnostics": !0 }, v ? "View Experience Eligibility for User" : "Identify User to View Experience Eligibility"))));
|
|
10619
10608
|
}
|
|
10620
|
-
function
|
|
10609
|
+
function ix({ status: e, active: t, category: n, description: r, details: i, showDetails: a, onToggleRowDetails: o }) {
|
|
10621
10610
|
return /* @__PURE__ */ (0, L.html)("div", { classNames: `row ${t ? "active" : ""}` }, /* @__PURE__ */ (0, L.html)("div", { classNames: `category-container ${e}` }, /* @__PURE__ */ (0, L.html)("div", { "class-icon": !0 }), /* @__PURE__ */ (0, L.html)("div", { "class-name": !0 }, n), r ? /* @__PURE__ */ (0, L.html)("div", { "class-description": !0 }, r) : /* @__PURE__ */ (0, L.html)(z, null), i ? /* @__PURE__ */ (0, L.html)("div", {
|
|
10622
10611
|
classNames: `toggle-details ${a ? "open" : "closed"}`,
|
|
10623
10612
|
"on-click": o
|
|
10624
10613
|
}, "DETAILS") : /* @__PURE__ */ (0, L.html)(z, null)), a ? /* @__PURE__ */ (0, L.html)("div", { "class-details": !0 }, i) : /* @__PURE__ */ (0, L.html)(z, null));
|
|
10625
10614
|
}
|
|
10626
|
-
function
|
|
10615
|
+
function ax({ user: e }) {
|
|
10627
10616
|
let t = /^_.*/, n = Object.keys(e).map((t) => ({
|
|
10628
10617
|
name: t,
|
|
10629
10618
|
value: e[t]
|
|
@@ -10638,11 +10627,11 @@ function ox({ user: e }) {
|
|
|
10638
10627
|
}
|
|
10639
10628
|
//#endregion
|
|
10640
10629
|
//#region src/styles/debugger.css?url
|
|
10641
|
-
var
|
|
10630
|
+
var ox = "/generic/main/7.29.0/debugger.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css";
|
|
10642
10631
|
//#endregion
|
|
10643
10632
|
//#region src/scripts/views/renderers/render-debugger.jsx
|
|
10644
10633
|
Za();
|
|
10645
|
-
var
|
|
10634
|
+
var sx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", cx = ws(ox), lx = Hi([
|
|
10646
10635
|
Pa,
|
|
10647
10636
|
ja,
|
|
10648
10637
|
va,
|
|
@@ -10651,21 +10640,21 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10651
10640
|
], (0, to.createApi)({
|
|
10652
10641
|
clean: !0,
|
|
10653
10642
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
10654
|
-
})),
|
|
10643
|
+
})), ux = null, dx = {
|
|
10655
10644
|
[Me.FLOW]: "Flow",
|
|
10656
10645
|
[Me.EMBED]: "Embed",
|
|
10657
10646
|
[Me.NPS]: "NPS Survey",
|
|
10658
10647
|
[Me.BANNER]: "Banner",
|
|
10659
10648
|
[Me.PERSISTENT]: "Pin",
|
|
10660
10649
|
[Me.LAUNCHPAD]: "Launchpad"
|
|
10661
|
-
},
|
|
10650
|
+
}, fx = (e) => dx[e] || "Experience", px = (e) => {
|
|
10662
10651
|
let t = [], n = Dr(e);
|
|
10663
10652
|
n && t.push({
|
|
10664
10653
|
id: n.flow.id,
|
|
10665
10654
|
name: n.flow.name,
|
|
10666
10655
|
typeLabel: "Flow",
|
|
10667
10656
|
status: n.status === w.SHOWING ? "check" : "pending",
|
|
10668
|
-
details:
|
|
10657
|
+
details: nx(n.flow, n.stepId, n.stepChildId)
|
|
10669
10658
|
});
|
|
10670
10659
|
let r = li(e), i = Gr(e);
|
|
10671
10660
|
return r.forEach((e) => {
|
|
@@ -10673,7 +10662,7 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10673
10662
|
t.push({
|
|
10674
10663
|
id: e.id,
|
|
10675
10664
|
name: e.name || e.id,
|
|
10676
|
-
typeLabel:
|
|
10665
|
+
typeLabel: fx(e.type),
|
|
10677
10666
|
status: a,
|
|
10678
10667
|
details: /* @__PURE__ */ (0, L.html)("div", null, /* @__PURE__ */ (0, L.html)("div", null, `ID: ${e.id}`), n > 0 ? /* @__PURE__ */ (0, L.html)("div", null, `${n} step${n === 1 ? "" : "s"}`) : "", r ? /* @__PURE__ */ (0, L.html)("div", null, `Error: ${r.message}`) : "")
|
|
10679
10668
|
});
|
|
@@ -10687,7 +10676,7 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10687
10676
|
details: /* @__PURE__ */ (0, L.html)("div", null, /* @__PURE__ */ (0, L.html)("div", null, `ID: ${e.id}`), n.length > 0 ? /* @__PURE__ */ (0, L.html)("div", null, `${r}/${n.length} items complete`) : "")
|
|
10688
10677
|
});
|
|
10689
10678
|
}), t;
|
|
10690
|
-
},
|
|
10679
|
+
}, mx = (e) => {
|
|
10691
10680
|
let t = ur(e) || {}, n = Pr(e);
|
|
10692
10681
|
return Object.keys(n || {}).reduce((e, r) => {
|
|
10693
10682
|
let i = Vn(t, r);
|
|
@@ -10699,11 +10688,11 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10699
10688
|
}
|
|
10700
10689
|
} : e;
|
|
10701
10690
|
}, {});
|
|
10702
|
-
},
|
|
10691
|
+
}, hx = (e, t) => /* @__PURE__ */ (0, L.html)(rx, {
|
|
10703
10692
|
lastTrackedPage: Hr(e),
|
|
10704
10693
|
currentPage: Vr(e),
|
|
10705
|
-
activeContent:
|
|
10706
|
-
stepChildErrors:
|
|
10694
|
+
activeContent: px(e),
|
|
10695
|
+
stepChildErrors: mx(e),
|
|
10707
10696
|
user: Qn(e),
|
|
10708
10697
|
group: er(e),
|
|
10709
10698
|
settings: or(e),
|
|
@@ -10713,14 +10702,14 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10713
10702
|
onToggleCollapsed: t.onToggleCollapsed,
|
|
10714
10703
|
onCloseDebugger: t.onCloseDebugger
|
|
10715
10704
|
});
|
|
10716
|
-
function
|
|
10705
|
+
function gx(e) {
|
|
10717
10706
|
if (os(document)) {
|
|
10718
10707
|
let t = e.views.callbacks[C.DEBUGGER], n = zr(e), r = n && n.isCollapsed;
|
|
10719
|
-
if (!
|
|
10708
|
+
if (!ux || !Xo(ux.elm)) {
|
|
10720
10709
|
let e = document.createElement("appcues-debugger");
|
|
10721
|
-
document.body.appendChild(e),
|
|
10710
|
+
document.body.appendChild(e), ux = lx(e, /* @__PURE__ */ (0, L.html)("appcues-debugger", null));
|
|
10722
10711
|
}
|
|
10723
|
-
Rr(e) && t ?
|
|
10712
|
+
Rr(e) && t ? ux = lx(ux, /* @__PURE__ */ (0, L.html)("appcues-debugger", { classNames: r ? "collapsed" : "expanded" }, /* @__PURE__ */ (0, L.html)("iframe", {
|
|
10724
10713
|
"style-border": "none",
|
|
10725
10714
|
"style-height": "450px",
|
|
10726
10715
|
"style-width": "100%",
|
|
@@ -10728,20 +10717,20 @@ function _x(e) {
|
|
|
10728
10717
|
scrolling: "no",
|
|
10729
10718
|
"style-color-scheme": "none"
|
|
10730
10719
|
}, /* @__PURE__ */ (0, L.html)("link", {
|
|
10731
|
-
"attrs-href":
|
|
10720
|
+
"attrs-href": cx,
|
|
10732
10721
|
"attrs-type": "text/css",
|
|
10733
10722
|
"attrs-rel": "stylesheet",
|
|
10734
|
-
"attrs-integrity":
|
|
10723
|
+
"attrs-integrity": sx,
|
|
10735
10724
|
"attrs-crossorigin": "anonymous"
|
|
10736
|
-
}),
|
|
10725
|
+
}), hx(e, t)))) : ux &&= lx(ux, /* @__PURE__ */ (0, L.html)("div", null));
|
|
10737
10726
|
}
|
|
10738
10727
|
}
|
|
10739
10728
|
//#endregion
|
|
10740
10729
|
//#region src/scripts/views/components/test-mode-banner.jsx
|
|
10741
|
-
var
|
|
10730
|
+
var _x = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", vx = (e) => {
|
|
10742
10731
|
let { testModeCallbacks: t } = e;
|
|
10743
10732
|
return /* @__PURE__ */ (0, L.html)("div", { "class-banner-wrapper": !0 }, /* @__PURE__ */ (0, L.html)("div", { "class-banner-background": !0 }, /* @__PURE__ */ (0, L.html)("div", { "class-banner-content": !0 }, /* @__PURE__ */ (0, L.html)("span", { "class-banner-header": !0 }, "Appcues Test Mode"), /* @__PURE__ */ (0, L.html)("a", {
|
|
10744
|
-
href:
|
|
10733
|
+
href: _x,
|
|
10745
10734
|
"class-clickable": !0,
|
|
10746
10735
|
"class-doc-link": !0,
|
|
10747
10736
|
target: "_blank",
|
|
@@ -10754,11 +10743,11 @@ var vx = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", yx = (e)
|
|
|
10754
10743
|
"class-clickable": !0,
|
|
10755
10744
|
"on-click": t.onCancelClicked
|
|
10756
10745
|
}, "End Test"))));
|
|
10757
|
-
},
|
|
10746
|
+
}, yx = "/generic/main/7.29.0/test-mode.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css";
|
|
10758
10747
|
//#endregion
|
|
10759
10748
|
//#region src/scripts/views/renderers/render-test-mode-banner.jsx
|
|
10760
10749
|
Za();
|
|
10761
|
-
var
|
|
10750
|
+
var bx = "sha256-LY5VY9tDsAOswNGXoginWbndpzhXfaGIHNLr6cjQ8EI=", xx = ws(yx), Sx = Hi([
|
|
10762
10751
|
Pa,
|
|
10763
10752
|
ja,
|
|
10764
10753
|
va,
|
|
@@ -10767,15 +10756,15 @@ var xx = "sha256-LY5VY9tDsAOswNGXoginWbndpzhXfaGIHNLr6cjQ8EI=", Sx = ws(bx), Cx
|
|
|
10767
10756
|
], (0, to.createApi)({
|
|
10768
10757
|
clean: !0,
|
|
10769
10758
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
10770
|
-
})),
|
|
10771
|
-
function
|
|
10759
|
+
})), Cx = null;
|
|
10760
|
+
function wx(e) {
|
|
10772
10761
|
if (os(document)) {
|
|
10773
10762
|
let t = e.views && e.views.callbacks && e.views.callbacks[C.TEST_MODE], { _testContentId: n } = e.user || {}, r = n, i = e.test && e.test.cssLoaded;
|
|
10774
|
-
if (!
|
|
10763
|
+
if (!Cx || !Xo(Cx.elm)) {
|
|
10775
10764
|
let e = document.createElement("appcues-test-banner");
|
|
10776
|
-
document.body.appendChild(e),
|
|
10765
|
+
document.body.appendChild(e), Cx = Sx(e, /* @__PURE__ */ (0, L.html)("appcues-test-banner", null));
|
|
10777
10766
|
}
|
|
10778
|
-
r && t ?
|
|
10767
|
+
r && t ? Cx = Sx(Cx, /* @__PURE__ */ (0, L.html)("div", { "class-appcues": !0 }, /* @__PURE__ */ (0, L.html)("appcues-test-banner", { style: {
|
|
10779
10768
|
display: "flex",
|
|
10780
10769
|
justifyContent: "center"
|
|
10781
10770
|
} }, /* @__PURE__ */ (0, L.html)("iframe", { style: {
|
|
@@ -10785,50 +10774,50 @@ function Tx(e) {
|
|
|
10785
10774
|
bottom: "0",
|
|
10786
10775
|
border: "0"
|
|
10787
10776
|
} }, /* @__PURE__ */ (0, L.html)("link", {
|
|
10788
|
-
"attrs-href":
|
|
10789
|
-
"attrs-integrity":
|
|
10777
|
+
"attrs-href": xx,
|
|
10778
|
+
"attrs-integrity": bx,
|
|
10790
10779
|
"attrs-crossorigin": "anonymous",
|
|
10791
10780
|
"attrs-type": "text/css",
|
|
10792
10781
|
"attrs-rel": "stylesheet",
|
|
10793
10782
|
"on-load": t.onCssLoaded
|
|
10794
|
-
}), i ? /* @__PURE__ */ (0, L.html)(
|
|
10783
|
+
}), i ? /* @__PURE__ */ (0, L.html)(vx, { testModeCallbacks: t }) : /* @__PURE__ */ (0, L.html)(z, null))))) : Cx &&= Sx(Cx, /* @__PURE__ */ (0, L.html)("div", null));
|
|
10795
10784
|
}
|
|
10796
10785
|
}
|
|
10797
10786
|
//#endregion
|
|
10798
10787
|
//#region src/scripts/views/callbacks/debugger-callbacks.js
|
|
10799
|
-
function
|
|
10788
|
+
function Tx(e) {
|
|
10800
10789
|
return {
|
|
10801
10790
|
onToggleRowDetails(t) {
|
|
10802
|
-
e(
|
|
10791
|
+
e(Kg(t));
|
|
10803
10792
|
},
|
|
10804
10793
|
onToggleCollapsed() {
|
|
10805
|
-
e(
|
|
10794
|
+
e(qg());
|
|
10806
10795
|
},
|
|
10807
10796
|
onCloseDebugger() {
|
|
10808
|
-
e(
|
|
10797
|
+
e(e_());
|
|
10809
10798
|
}
|
|
10810
10799
|
};
|
|
10811
10800
|
}
|
|
10812
10801
|
//#endregion
|
|
10813
10802
|
//#region src/scripts/sagas/modal-sagas.js
|
|
10814
|
-
function*
|
|
10815
|
-
(yield M(mr)) === C.MODAL && (yield M(hr)) === w.STARTED && (yield A(
|
|
10803
|
+
function* Ex() {
|
|
10804
|
+
(yield M(mr)) === C.MODAL && (yield M(hr)) === w.STARTED && (yield A(xy, yield M(Cr))) && (yield k(Zp(document.activeElement)), yield k(tm()));
|
|
10816
10805
|
}
|
|
10817
|
-
function*
|
|
10818
|
-
yield j(Y, B.START_CONTENT,
|
|
10806
|
+
function* Dx() {
|
|
10807
|
+
yield j(Y, B.START_CONTENT, Ex);
|
|
10819
10808
|
}
|
|
10820
10809
|
//#endregion
|
|
10821
10810
|
//#region src/scripts/sagas/hotspots-sagas.js
|
|
10822
|
-
function*
|
|
10823
|
-
yield A(
|
|
10811
|
+
function* Ox(e, t) {
|
|
10812
|
+
yield A(iv, t), yield k(q(rm(T.CHILD_RUN, e, t))), yield k(ym([t]));
|
|
10824
10813
|
}
|
|
10825
|
-
function*
|
|
10814
|
+
function* kx() {
|
|
10826
10815
|
if ((yield M(mr)) === C.HOTSPOTS && (yield M(hr)) === w.STARTED) {
|
|
10827
10816
|
let e = yield M(I), t = Dn(e);
|
|
10828
|
-
t.length > 0 ? (yield A(
|
|
10817
|
+
t.length > 0 ? (yield A(xy, t)) && (yield k(Zp(document.activeElement)), yield k(gm()), yield k(Cm()), jn(e) && (yield* Ox(e.id, t[0].id))) : yield A(qv, /* @__PURE__ */ Error("Trying to show an empty list of hotspots."));
|
|
10829
10818
|
}
|
|
10830
10819
|
}
|
|
10831
|
-
function*
|
|
10820
|
+
function* Ax({ payload: e }) {
|
|
10832
10821
|
(yield M(mr)) === C.HOTSPOTS && (yield k(Tm((yield M(Cr)).reduce((t, n) => {
|
|
10833
10822
|
let r = e[n.id];
|
|
10834
10823
|
if (!r.error) {
|
|
@@ -10853,95 +10842,95 @@ function* jx({ payload: e }) {
|
|
|
10853
10842
|
};
|
|
10854
10843
|
}
|
|
10855
10844
|
return t[n.id] = r, t;
|
|
10856
|
-
}, {}))), yield A(
|
|
10845
|
+
}, {}))), yield A(nv));
|
|
10857
10846
|
}
|
|
10858
|
-
function*
|
|
10847
|
+
function* jx() {
|
|
10859
10848
|
yield A(Z, 1e4);
|
|
10860
|
-
let e = yield*
|
|
10861
|
-
e && (delete e.navByADTT, yield*
|
|
10849
|
+
let e = yield* Gv();
|
|
10850
|
+
e && (delete e.navByADTT, yield* Kv(e));
|
|
10862
10851
|
}
|
|
10863
|
-
function*
|
|
10852
|
+
function* Mx({ payload: e }) {
|
|
10864
10853
|
(yield M(Fr)).length > 0 && (yield jt({
|
|
10865
10854
|
continue: O((t) => t.type === W.REMOVE_ACTIVE_ANNOTATIONS && t.payload[0] === e.childId),
|
|
10866
10855
|
cancel: O((t) => t.type === H.CANCEL_STEP && t.payload.stepId === e.stepId)
|
|
10867
10856
|
})).cancel || (yield k(q(Q(T.STEP_END, e.stepId, e.params))));
|
|
10868
10857
|
}
|
|
10869
|
-
function*
|
|
10858
|
+
function* Nx(e) {
|
|
10870
10859
|
let { contentType: t, step: n, childId: r, nextChildId: i, shouldEndFlow: a } = e.payload;
|
|
10871
|
-
t === C.SEQUENTIAL_HOTSPOTS && (yield k(xm([r])), yield k(q(rm(T.CHILD_DEACTIVATED, n.id, r, { ts: Date.now() }))), i ? yield*
|
|
10872
|
-
...yield*
|
|
10860
|
+
t === C.SEQUENTIAL_HOTSPOTS && (yield k(xm([r])), yield k(q(rm(T.CHILD_DEACTIVATED, n.id, r, { ts: Date.now() }))), i ? yield* Ox(n.id, i) : (yield k(q(Q(T.STEP_COMPLETED, n.id, { shouldEndFlow: a }))), Mn(n, On(n, r)) && (yield* Kv({
|
|
10861
|
+
...yield* Gv(),
|
|
10873
10862
|
navByADTT: !0
|
|
10874
|
-
}), yield j(
|
|
10863
|
+
}), yield j(jx)), yield A(Mx, vm(n.id, r, { shouldEndFlow: a }))));
|
|
10875
10864
|
}
|
|
10876
|
-
function*
|
|
10877
|
-
yield k(xm([t])), yield k(q(rm(T.CHILD_DEACTIVATED, e, t, { ts: Date.now() }))), yield k(em({ stepChildId: t })), yield k(em({ stepChildId: n })), yield k(q(rm(T.CHILD_ACTIVATED, e, n, { ts: Date.now() }))), yield*
|
|
10865
|
+
function* Px({ stepId: e, currentStepChildId: t, nextStepChildId: n }) {
|
|
10866
|
+
yield k(xm([t])), yield k(q(rm(T.CHILD_DEACTIVATED, e, t, { ts: Date.now() }))), yield k(em({ stepChildId: t })), yield k(em({ stepChildId: n })), yield k(q(rm(T.CHILD_ACTIVATED, e, n, { ts: Date.now() }))), yield* Ox(e, n);
|
|
10878
10867
|
}
|
|
10879
|
-
function*
|
|
10868
|
+
function* Fx(e) {
|
|
10880
10869
|
let { step: t, stepChildId: n } = e.payload, r = yield M(Ar, n);
|
|
10881
|
-
r && (yield A(
|
|
10870
|
+
r && (yield A(Px, {
|
|
10882
10871
|
stepId: t,
|
|
10883
10872
|
currentStepChildId: n,
|
|
10884
10873
|
nextStepChildId: r
|
|
10885
10874
|
}));
|
|
10886
10875
|
}
|
|
10887
|
-
function*
|
|
10876
|
+
function* Ix(e) {
|
|
10888
10877
|
let { stepId: t, currentStepChildId: n, nextStepChildIndex: r } = e.payload, i = yield M(Er, r);
|
|
10889
|
-
!i || n === i || (yield (yield M(jr, n, i)).map((e) => k(em({ stepChildId: e }))), yield A(
|
|
10878
|
+
!i || n === i || (yield (yield M(jr, n, i)).map((e) => k(em({ stepChildId: e }))), yield A(Px, {
|
|
10890
10879
|
stepId: t,
|
|
10891
10880
|
currentStepChildId: n,
|
|
10892
10881
|
nextStepChildId: i
|
|
10893
10882
|
}));
|
|
10894
10883
|
}
|
|
10895
|
-
function*
|
|
10884
|
+
function* Lx() {
|
|
10896
10885
|
yield [
|
|
10897
|
-
j(Y, B.START_CONTENT,
|
|
10898
|
-
j(Y, W.START_HANDLE_POSITION_UPDATES,
|
|
10899
|
-
j(Y, H.ADVANCE_STEP_CHILD,
|
|
10900
|
-
j(Y, uc.CLOSE_LAST_HOTSPOT,
|
|
10901
|
-
j(Y, H.RUN_PREV_STEP_CHILD,
|
|
10902
|
-
j(Y, W.GO_TO_STEP,
|
|
10886
|
+
j(Y, B.START_CONTENT, kx),
|
|
10887
|
+
j(Y, W.START_HANDLE_POSITION_UPDATES, Ax),
|
|
10888
|
+
j(Y, H.ADVANCE_STEP_CHILD, Nx),
|
|
10889
|
+
j(Y, uc.CLOSE_LAST_HOTSPOT, Mx),
|
|
10890
|
+
j(Y, H.RUN_PREV_STEP_CHILD, Fx),
|
|
10891
|
+
j(Y, W.GO_TO_STEP, Ix)
|
|
10903
10892
|
];
|
|
10904
10893
|
}
|
|
10905
10894
|
//#endregion
|
|
10906
10895
|
//#region src/scripts/sagas/debugger-sagas.js
|
|
10907
|
-
function*
|
|
10896
|
+
function* Rx() {
|
|
10908
10897
|
for (;;) {
|
|
10909
10898
|
let e = window.location.href;
|
|
10910
|
-
(yield M(Vr)) !== e && (yield k(
|
|
10899
|
+
(yield M(Vr)) !== e && (yield k(Jg(e))), yield A($e, 1e3);
|
|
10911
10900
|
}
|
|
10912
10901
|
}
|
|
10913
|
-
function*
|
|
10902
|
+
function* zx(e) {
|
|
10914
10903
|
let t = null;
|
|
10915
10904
|
if (e.payload.events.forEach((e) => {
|
|
10916
10905
|
e.name === ue.PAGE_VIEW && (t = e);
|
|
10917
10906
|
}), t) {
|
|
10918
10907
|
let e = t.attributes.url;
|
|
10919
|
-
e !== (yield M(Hr)) && (yield k(
|
|
10908
|
+
e !== (yield M(Hr)) && (yield k(Yg(e)), yield A(p_, "localStorage", Ne, e));
|
|
10920
10909
|
}
|
|
10921
10910
|
}
|
|
10922
|
-
function*
|
|
10923
|
-
e.error && (yield k(
|
|
10911
|
+
function* Bx(e) {
|
|
10912
|
+
e.error && (yield k(Xg((e.payload && e.payload.extra ? e.payload.extra.id : null) || (yield M(F)), e.payload.message)));
|
|
10924
10913
|
}
|
|
10925
|
-
function*
|
|
10914
|
+
function* Vx(e) {
|
|
10926
10915
|
let t = Object.keys(e.payload).filter((t) => e.payload[t].error);
|
|
10927
10916
|
if (t.length > 0) {
|
|
10928
10917
|
let n = yield M(F);
|
|
10929
|
-
for (let r of t) yield k(
|
|
10918
|
+
for (let r of t) yield k(Zg(n, r, e.payload[r].errorMessage));
|
|
10930
10919
|
}
|
|
10931
10920
|
}
|
|
10932
|
-
function*
|
|
10921
|
+
function* Hx() {
|
|
10933
10922
|
for (;;) {
|
|
10934
|
-
(yield A(
|
|
10935
|
-
let e = yield fu(
|
|
10923
|
+
(yield A(m_, "localStorage", "apc_debug_enabled")) || (yield O(B.START_DEBUG)), yield A(p_, "localStorage", je, !0), yield k(Yg(yield A(m_, "localStorage", Ne)));
|
|
10924
|
+
let e = yield fu(Rx), t = yield j(Y, [B.START_ACTIVITY, B.START_IDENTIFY], zx), n = yield j(Y, V.WILL_SHOW_CONTENT, Bx), r = yield j(Y, W.SET_ANNOTATIONS_POSITIONS, Vx);
|
|
10936
10925
|
yield O(dc.CLOSE_DEBUGGER), yield Ft(e), yield Ft(t), yield Ft(n), yield Ft(r), yield A($, "localStorage", je);
|
|
10937
10926
|
}
|
|
10938
10927
|
}
|
|
10939
|
-
function*
|
|
10940
|
-
yield j(
|
|
10928
|
+
function* Ux() {
|
|
10929
|
+
yield j(Hx);
|
|
10941
10930
|
}
|
|
10942
10931
|
//#endregion
|
|
10943
10932
|
//#region src/scripts/sagas/action-sagas.js
|
|
10944
|
-
function*
|
|
10933
|
+
function* Wx({ payload: e }) {
|
|
10945
10934
|
switch (yield k(q(Q(T.STEP_SHOWN, e.id))), e.attributes.action_type) {
|
|
10946
10935
|
case pe.REDIRECT: {
|
|
10947
10936
|
let t = window.location.href, { url: n, new_tab: r, initiated_by_user: i } = e.attributes.params;
|
|
@@ -10950,7 +10939,7 @@ function* Gx({ payload: e }) {
|
|
|
10950
10939
|
wait: O(V.SENT_ACTIVITY_UPDATE),
|
|
10951
10940
|
cancel: A(Z, 1500)
|
|
10952
10941
|
}), yield jt({
|
|
10953
|
-
wait: A(
|
|
10942
|
+
wait: A(Vv, yield M(Un)),
|
|
10954
10943
|
cancel: A(Z, Oe)
|
|
10955
10944
|
}), yield A(Ud, window, n, r));
|
|
10956
10945
|
break;
|
|
@@ -10958,10 +10947,10 @@ function* Gx({ payload: e }) {
|
|
|
10958
10947
|
default: yield k(Xc(/* @__PURE__ */ Error("Unknown step type.")));
|
|
10959
10948
|
}
|
|
10960
10949
|
}
|
|
10961
|
-
function*
|
|
10950
|
+
function* Gx({ payload: { action: e, status: t } }) {
|
|
10962
10951
|
switch (e.attributes.action_type) {
|
|
10963
10952
|
case pe.WAIT_FOR_PAGE: {
|
|
10964
|
-
let n = window.location.href, { url: r } = e.attributes.params, i = yield*
|
|
10953
|
+
let n = window.location.href, { url: r } = e.attributes.params, i = yield* Gv(), a = yield M(lr), o = tf(r, a.url), s = tf(a.url, n), c = t === T.STEP_SHOWN || o && s, l = t === T.STEP_ATTEMPTED && i && i.remainingPagesToCheck !== 2;
|
|
10965
10954
|
c || l && tf(r, n) ? (yield k(q(Q(T.STEP_COMPLETED, e.id))), yield k(q(Q(T.STEP_END, e.id)))) : yield k(q(Q(T.STEP_ATTEMPTED, e.id)));
|
|
10966
10955
|
break;
|
|
10967
10956
|
}
|
|
@@ -10978,27 +10967,27 @@ function* Kx({ payload: { action: e, status: t } }) {
|
|
|
10978
10967
|
default: yield k(Xc(/* @__PURE__ */ Error("Unknown step type.")));
|
|
10979
10968
|
}
|
|
10980
10969
|
}
|
|
10981
|
-
function*
|
|
10970
|
+
function* Kx(e, t) {
|
|
10982
10971
|
let n = window.location.href;
|
|
10983
|
-
tf(e, n) ? t && (yield A(t)) : (yield A(Z, 500), yield A(
|
|
10972
|
+
tf(e, n) ? t && (yield A(t)) : (yield A(Z, 500), yield A(Kx, e, t));
|
|
10984
10973
|
}
|
|
10985
|
-
function*
|
|
10974
|
+
function* qx({ payload: { action: e, checklistId: t, itemId: n, actionIndex: r } }) {
|
|
10986
10975
|
switch (e.attributes.action_type) {
|
|
10987
10976
|
case pe.REDIRECT: {
|
|
10988
10977
|
let i = window.location.href, { url: a, new_tab: o } = e.attributes.params;
|
|
10989
10978
|
if (tf(a, i)) yield k(uh(t, n, r));
|
|
10990
10979
|
else {
|
|
10991
10980
|
yield jt({
|
|
10992
|
-
wait: At([A(
|
|
10981
|
+
wait: At([A(Vv, yield M(Un)), A(Vv, t)]),
|
|
10993
10982
|
cancel: A(Z, Oe)
|
|
10994
10983
|
});
|
|
10995
10984
|
let e = yield M(qr, t);
|
|
10996
|
-
yield A(
|
|
10985
|
+
yield A(p_, g, he, JSON.stringify({
|
|
10997
10986
|
checklistId: t,
|
|
10998
10987
|
itemId: n,
|
|
10999
10988
|
actionIndex: r,
|
|
11000
10989
|
checklist: e
|
|
11001
|
-
})), yield A(Ud, window, a, o), yield A(
|
|
10990
|
+
})), yield A(Ud, window, a, o), yield A(Kx, a, function* () {
|
|
11002
10991
|
yield k(uh(t, n, r)), yield A($, g, he);
|
|
11003
10992
|
});
|
|
11004
10993
|
}
|
|
@@ -11027,20 +11016,20 @@ function* Jx({ payload: { action: e, checklistId: t, itemId: n, actionIndex: r }
|
|
|
11027
11016
|
}
|
|
11028
11017
|
}
|
|
11029
11018
|
}
|
|
11030
|
-
function*
|
|
11019
|
+
function* Jx() {
|
|
11031
11020
|
yield [
|
|
11032
|
-
j(Y, V.RUN_ACTION,
|
|
11033
|
-
j(Y, V.RESUME_ACTION,
|
|
11034
|
-
j(Y, G.START_CHECKLIST_ACTION,
|
|
11021
|
+
j(Y, V.RUN_ACTION, Wx),
|
|
11022
|
+
j(Y, V.RESUME_ACTION, Gx),
|
|
11023
|
+
j(Y, G.START_CHECKLIST_ACTION, qx)
|
|
11035
11024
|
];
|
|
11036
11025
|
}
|
|
11037
11026
|
//#endregion
|
|
11038
11027
|
//#region src/scripts/sagas/satisfaction-survey-sagas.js
|
|
11039
|
-
var
|
|
11040
|
-
function*
|
|
11028
|
+
var Yx = 500, Xx = 5e3;
|
|
11029
|
+
function* Zx() {
|
|
11041
11030
|
(yield M(mr)) === C.SATISFACTION_SURVEY && (yield M(hr)) === w.STARTED && (yield k(Im()));
|
|
11042
11031
|
}
|
|
11043
|
-
function*
|
|
11032
|
+
function* Qx(e) {
|
|
11044
11033
|
let { score: t } = e.payload, n = Su(yield M(Wn), yield M(ir), {
|
|
11045
11034
|
score: t,
|
|
11046
11035
|
name: "NPS Score",
|
|
@@ -11051,7 +11040,7 @@ function* $x(e) {
|
|
|
11051
11040
|
[`${S}NPSLastCollectedAt`]: Date.now()
|
|
11052
11041
|
}, [xu(n)], !1));
|
|
11053
11042
|
}
|
|
11054
|
-
function*
|
|
11043
|
+
function* $x(e) {
|
|
11055
11044
|
let { feedback: t } = e.payload, n = Su(yield M(Wn), yield M(ir), {
|
|
11056
11045
|
feedback: t,
|
|
11057
11046
|
name: "NPS Feedback",
|
|
@@ -11062,7 +11051,7 @@ function* eS(e) {
|
|
|
11062
11051
|
[`${S}NPSFeedbackLastCollectedAt`]: Date.now()
|
|
11063
11052
|
}, [xu(n)], !1));
|
|
11064
11053
|
}
|
|
11065
|
-
function*
|
|
11054
|
+
function* eS() {
|
|
11066
11055
|
let e = {}, t = `${S}ClickedUpdateNPSScore`;
|
|
11067
11056
|
e[t] = Date.now();
|
|
11068
11057
|
let n = Su(yield M(Wn), yield M(ir), {
|
|
@@ -11072,7 +11061,7 @@ function* tS() {
|
|
|
11072
11061
|
});
|
|
11073
11062
|
yield k(Sc(n.flowId, n)), yield k(Tc(e, [xu(n)], !1));
|
|
11074
11063
|
}
|
|
11075
|
-
function*
|
|
11064
|
+
function* tS() {
|
|
11076
11065
|
let e = {}, t = `${S}AskMeLaterSelectedAt`;
|
|
11077
11066
|
e[t] = Date.now();
|
|
11078
11067
|
let n = Su(yield M(Wn), yield M(ir), {
|
|
@@ -11082,22 +11071,22 @@ function* nS() {
|
|
|
11082
11071
|
});
|
|
11083
11072
|
yield k(Sc(n.flowId, n)), yield k(Tc(e, [xu(n)], !1));
|
|
11084
11073
|
}
|
|
11085
|
-
function*
|
|
11086
|
-
yield k(Rm()), yield $e(
|
|
11074
|
+
function* nS() {
|
|
11075
|
+
yield k(Rm()), yield $e(Yx), yield k(Bm()), yield $e(Xx), yield k(Vm());
|
|
11087
11076
|
}
|
|
11088
|
-
function*
|
|
11077
|
+
function* rS() {
|
|
11089
11078
|
yield [
|
|
11090
|
-
j(Y, U.QUANTITATIVE_QUESTION_SUBMITTED,
|
|
11091
|
-
j(Y, U.QUALITATIVE_QUESTION_SUBMITTED,
|
|
11092
|
-
j(Y, U.ASK_ME_LATER_SELECTED,
|
|
11093
|
-
j(Y, U.CLICKED_UPDATE_NPS_SCORE,
|
|
11094
|
-
j(Y, U.START_COLLAPSING_SATISFACTION_SURVEY,
|
|
11095
|
-
j(Y, B.START_CONTENT,
|
|
11079
|
+
j(Y, U.QUANTITATIVE_QUESTION_SUBMITTED, Qx),
|
|
11080
|
+
j(Y, U.QUALITATIVE_QUESTION_SUBMITTED, $x),
|
|
11081
|
+
j(Y, U.ASK_ME_LATER_SELECTED, tS),
|
|
11082
|
+
j(Y, U.CLICKED_UPDATE_NPS_SCORE, eS),
|
|
11083
|
+
j(Y, U.START_COLLAPSING_SATISFACTION_SURVEY, nS),
|
|
11084
|
+
j(Y, B.START_CONTENT, Zx)
|
|
11096
11085
|
];
|
|
11097
11086
|
}
|
|
11098
11087
|
//#endregion
|
|
11099
11088
|
//#region src/scripts/sagas/checklist-sagas.js
|
|
11100
|
-
function*
|
|
11089
|
+
function* iS(e) {
|
|
11101
11090
|
if (e && !(yield M(pr))[e]) try {
|
|
11102
11091
|
let t = yield A(pg, yield M(Jn), e);
|
|
11103
11092
|
t && (yield k(Yc({ [e]: t })));
|
|
@@ -11105,16 +11094,16 @@ function* aS(e) {
|
|
|
11105
11094
|
yield A(yield M(Xn), e.message, { extra: e.extra });
|
|
11106
11095
|
}
|
|
11107
11096
|
}
|
|
11108
|
-
function*
|
|
11109
|
-
yield k(Ym(e.id, w.READY)), yield O((t) => t.type === G.LOADED_CHECKLIST_CSS && e.id), yield A(
|
|
11097
|
+
function* aS(e) {
|
|
11098
|
+
yield k(Ym(e.id, w.READY)), yield O((t) => t.type === G.LOADED_CHECKLIST_CSS && e.id), yield A(iS, e.style);
|
|
11110
11099
|
let t = yield M(I);
|
|
11111
11100
|
yield t && t.type !== C.HOTSPOTS ? k(Zm()) : k(Ym(e.id, w.SHOWING)), (e.attributes && e.attributes.progress_state) !== _e.COMPLETED && (yield k(th(e.id)));
|
|
11112
11101
|
}
|
|
11113
|
-
function*
|
|
11102
|
+
function* oS({ payload: e }) {
|
|
11114
11103
|
let { open_behavior: t } = e;
|
|
11115
11104
|
switch (t) {
|
|
11116
11105
|
case ge.CLOSED:
|
|
11117
|
-
yield A(
|
|
11106
|
+
yield A(aS, e);
|
|
11118
11107
|
break;
|
|
11119
11108
|
case ge.OPENED:
|
|
11120
11109
|
yield k($m(e));
|
|
@@ -11122,29 +11111,29 @@ function* sS({ payload: e }) {
|
|
|
11122
11111
|
case ge.OPEN_ONCE:
|
|
11123
11112
|
default: {
|
|
11124
11113
|
let t = `${Te}${e.id}`;
|
|
11125
|
-
|
|
11114
|
+
m_("sessionStorage", t) ? yield A(aS, e) : (p_(g, t, "1"), yield k($m(e)));
|
|
11126
11115
|
break;
|
|
11127
11116
|
}
|
|
11128
11117
|
}
|
|
11129
11118
|
}
|
|
11130
|
-
function*
|
|
11131
|
-
yield A(
|
|
11119
|
+
function* sS({ payload: e }) {
|
|
11120
|
+
yield A(aS, e), yield A(Z, 1e3), yield k(eh(e.id)), yield k(mh(e));
|
|
11132
11121
|
}
|
|
11133
|
-
function*
|
|
11122
|
+
function* cS(e) {
|
|
11134
11123
|
let { checklist: t } = e.payload, n = Zu(t, yield M(ir));
|
|
11135
11124
|
yield k(Sc(t.id, n)), yield k(Tc(null, [xu(n)], !1));
|
|
11136
11125
|
}
|
|
11137
|
-
function*
|
|
11126
|
+
function* lS(e) {
|
|
11138
11127
|
let { checklistId: t, didCompleteChecklist: n } = e.payload, r = yield M(ir), i = yield M(qr, t);
|
|
11139
11128
|
yield k(Ym(i.id, w.DISMISSED));
|
|
11140
11129
|
let a = n ? ed(i.attributes, r) : $u(i.attributes, r);
|
|
11141
11130
|
yield k(Sc(a.checklistId, a)), yield k(Tc({}, [xu(a)], !1));
|
|
11142
11131
|
}
|
|
11143
|
-
function*
|
|
11132
|
+
function* uS() {
|
|
11144
11133
|
let { userId: e } = yield M(Qn);
|
|
11145
11134
|
yield k(yc(e, { _showChecklist: null }));
|
|
11146
11135
|
}
|
|
11147
|
-
function*
|
|
11136
|
+
function* dS(e) {
|
|
11148
11137
|
let { checklistId: t, itemId: n, actionIndex: r } = e.payload;
|
|
11149
11138
|
yield k(th(t));
|
|
11150
11139
|
let i = yield M(ir), a, o;
|
|
@@ -11160,42 +11149,42 @@ function* fS(e) {
|
|
|
11160
11149
|
}
|
|
11161
11150
|
for (let e = r; e < o.actions.length; e++) yield k(lh(o.actions[e], t, n, e)), yield O(({ type: e, payload: t }) => e === G.COMPLETED_CHECKLIST_ACTION && t.itemId === n);
|
|
11162
11151
|
}
|
|
11163
|
-
function*
|
|
11152
|
+
function* fS() {
|
|
11164
11153
|
let e = yield M(Kr);
|
|
11165
11154
|
e.length > 0 && (yield At(e.filter((e) => De.includes(e.status)).map((e) => k(Ym(e.id, w.HIDING)))));
|
|
11166
11155
|
}
|
|
11167
|
-
function*
|
|
11156
|
+
function* pS() {
|
|
11168
11157
|
let e = yield M(Jr, w.HIDING);
|
|
11169
11158
|
e.length > 0 && (yield At(e.map((e) => k(Ym(e.id, w.READY)))), yield k(Ym(e[0].id, w.SHOWING)), e[0].shouldTryExpandChecklist && (yield k(eh(e[0].id)), yield k(nh(e[0].id, !1))));
|
|
11170
11159
|
}
|
|
11171
|
-
function*
|
|
11160
|
+
function* mS() {
|
|
11172
11161
|
yield [
|
|
11173
|
-
j(Y, G.START_CHECKLIST,
|
|
11174
|
-
j(Y, G.HIDE_CHECKLISTS,
|
|
11175
|
-
j(Y, G.UNHIDE_CHECKLISTS,
|
|
11176
|
-
j(Y, G.ANIMATE_IN_CHECKLIST,
|
|
11177
|
-
j(Y, G.CONFIRM_DISMISS_CHECKLIST,
|
|
11178
|
-
j(_u, G.START_CHECKLIST_ITEM,
|
|
11179
|
-
j(_u, G.CLEAR_FORCE_SHOWN_CHECKLIST,
|
|
11180
|
-
j(Y, G.SEND_CHECKLIST_SHOWN_EVENT,
|
|
11162
|
+
j(Y, G.START_CHECKLIST, oS),
|
|
11163
|
+
j(Y, G.HIDE_CHECKLISTS, fS),
|
|
11164
|
+
j(Y, G.UNHIDE_CHECKLISTS, pS),
|
|
11165
|
+
j(Y, G.ANIMATE_IN_CHECKLIST, sS),
|
|
11166
|
+
j(Y, G.CONFIRM_DISMISS_CHECKLIST, lS),
|
|
11167
|
+
j(_u, G.START_CHECKLIST_ITEM, dS),
|
|
11168
|
+
j(_u, G.CLEAR_FORCE_SHOWN_CHECKLIST, uS),
|
|
11169
|
+
j(Y, G.SEND_CHECKLIST_SHOWN_EVENT, cS)
|
|
11181
11170
|
];
|
|
11182
11171
|
}
|
|
11183
11172
|
//#endregion
|
|
11184
11173
|
//#region src/scripts/sagas/open-builder-sagas.js
|
|
11185
|
-
function*
|
|
11174
|
+
function* hS({ payload: e }) {
|
|
11186
11175
|
let { type: t, event: n } = e, r = yield M(ir);
|
|
11187
11176
|
yield k(Sc(t, {
|
|
11188
11177
|
...n,
|
|
11189
11178
|
sessionId: r
|
|
11190
11179
|
}));
|
|
11191
11180
|
}
|
|
11192
|
-
function*
|
|
11193
|
-
yield [j(Y, B.START_OPEN_BUILDER_EVENT,
|
|
11181
|
+
function* gS() {
|
|
11182
|
+
yield [j(Y, B.START_OPEN_BUILDER_EVENT, hS)];
|
|
11194
11183
|
}
|
|
11195
11184
|
//#endregion
|
|
11196
11185
|
//#region src/scripts/utils/test-mode.js
|
|
11197
|
-
function
|
|
11198
|
-
let e =
|
|
11186
|
+
function _S() {
|
|
11187
|
+
let e = m_(g, b), t;
|
|
11199
11188
|
if (e) try {
|
|
11200
11189
|
t = JSON.parse(e);
|
|
11201
11190
|
} catch {
|
|
@@ -11203,12 +11192,12 @@ function vS() {
|
|
|
11203
11192
|
}
|
|
11204
11193
|
if (t) {
|
|
11205
11194
|
let { _testContentId: e, _testContentUrl: n, ...r } = t;
|
|
11206
|
-
return $(g, b), $(g, se),
|
|
11195
|
+
return $(g, b), $(g, se), p_(g, b, JSON.stringify(r)), { _testContentId: null };
|
|
11207
11196
|
}
|
|
11208
11197
|
return {};
|
|
11209
11198
|
}
|
|
11210
|
-
function
|
|
11211
|
-
let e =
|
|
11199
|
+
function vS() {
|
|
11200
|
+
let e = m_(g, b), t;
|
|
11212
11201
|
if (e) try {
|
|
11213
11202
|
t = JSON.parse(e);
|
|
11214
11203
|
} catch {
|
|
@@ -11222,22 +11211,22 @@ function yS() {
|
|
|
11222
11211
|
}
|
|
11223
11212
|
//#endregion
|
|
11224
11213
|
//#region src/scripts/sagas/test-mode-sagas.js
|
|
11225
|
-
function*
|
|
11226
|
-
let e =
|
|
11227
|
-
yield k(Kc(e, !0)), yield A(
|
|
11228
|
-
let t =
|
|
11214
|
+
function* yS() {
|
|
11215
|
+
let e = _S();
|
|
11216
|
+
yield k(Kc(e, !0)), yield A(Vy, e, [], !1);
|
|
11217
|
+
let t = fv(window.location.href, "appcuesTestContentId");
|
|
11229
11218
|
yield A(Ud, window, t);
|
|
11230
11219
|
}
|
|
11231
|
-
function*
|
|
11232
|
-
let e =
|
|
11220
|
+
function* bS() {
|
|
11221
|
+
let e = vS();
|
|
11233
11222
|
yield A(Ud, window, e);
|
|
11234
11223
|
}
|
|
11235
|
-
function*
|
|
11236
|
-
yield [j(Y, fc.CANCEL_TEST,
|
|
11224
|
+
function* xS() {
|
|
11225
|
+
yield [j(Y, fc.CANCEL_TEST, yS), j(Y, fc.RESET_TEST, bS)];
|
|
11237
11226
|
}
|
|
11238
11227
|
//#endregion
|
|
11239
11228
|
//#region src/scripts/sagas/handle-messages.js
|
|
11240
|
-
function*
|
|
11229
|
+
function* SS(e) {
|
|
11241
11230
|
if (e.checklists && e.checklists.length > 0) {
|
|
11242
11231
|
let t = yield M(ir), n = [], r = ((yield M(Kr)) || []).reduce((e, t) => ({
|
|
11243
11232
|
...e,
|
|
@@ -11299,7 +11288,7 @@ function* CS(e) {
|
|
|
11299
11288
|
o.every((e) => !e.status) && (yield k(Jm(i[0]))), c && c !== i[0].id && (yield k(Ym(c, w.READY)), i[0] && i[0].status !== w.SHOWING && (yield k(Jm(i[0]))));
|
|
11300
11289
|
} else yield k(Xm([]));
|
|
11301
11290
|
}
|
|
11302
|
-
function*
|
|
11291
|
+
function* CS() {
|
|
11303
11292
|
let e = [], t = {}, n = /* @__PURE__ */ new Map();
|
|
11304
11293
|
yield yn(V.SENT_REQUEST, ({ payload: { requestId: n, pageViewEvent: r } }) => {
|
|
11305
11294
|
e = [n, ...e], r && (t = {
|
|
@@ -11314,7 +11303,7 @@ function* wS() {
|
|
|
11314
11303
|
type: _c.LAUNCHPAD_SEARCH_RESPONSE,
|
|
11315
11304
|
payload: n
|
|
11316
11305
|
});
|
|
11317
|
-
} else r === B.START_HANDLE_MESSAGE && (yield j(
|
|
11306
|
+
} else r === B.START_HANDLE_MESSAGE && (yield j(SS, a));
|
|
11318
11307
|
let o = yield M(lr), s = a.qualification_reason === oe.EVENT_TRIGGER;
|
|
11319
11308
|
(o.url !== window.location.href || !o.complete) && !s && (yield O((e) => e.type === V.CHECKED_FOR_INITIAL_CONTENT && e.payload.url === window.location.href && e.payload.complete));
|
|
11320
11309
|
let c = a.request_id;
|
|
@@ -11333,9 +11322,9 @@ function* wS() {
|
|
|
11333
11322
|
let { contents: e, experiences: t } = lu(d);
|
|
11334
11323
|
p = e, m = t;
|
|
11335
11324
|
}
|
|
11336
|
-
(p && p.length > 0 || m && m.length > 0) && (yield A(yu)) && (p = (p || []).filter((e) => !cu(e)), m = m.filter((e) => !cu(e))), m.some((e) => e.type === Me.NPS || e.type === Me.FLOW) && (yield k(Zm()), yield k(
|
|
11325
|
+
(p && p.length > 0 || m && m.length > 0) && (yield A(yu)) && (p = (p || []).filter((e) => !cu(e)), m = m.filter((e) => !cu(e))), m.some((e) => e.type === Me.NPS || e.type === Me.FLOW) && (yield k(Zm()), yield k(o_()));
|
|
11337
11326
|
let h = a.qualification_reason === oe.PAGE_VIEW;
|
|
11338
|
-
m.length > 0 && !window.document?.documentMode && (!h || window.location.href === t[r]) && (yield k(
|
|
11327
|
+
m.length > 0 && !window.document?.documentMode && (!h || window.location.href === t[r]) && (yield k(r_(m)));
|
|
11339
11328
|
let g = f && p && p.length > 0;
|
|
11340
11329
|
if (h && g && window.location.href === t[r] || !h && g) return e = [], n.clear(), yield k(Jc(p.map((e) => e.id), p.reduce((e, t) => (e[t.id] = t, e), {}))), yield k(Ic(window.location.href, s, r));
|
|
11341
11330
|
}
|
|
@@ -11345,21 +11334,21 @@ function* wS() {
|
|
|
11345
11334
|
}
|
|
11346
11335
|
//#endregion
|
|
11347
11336
|
//#region src/scripts/sagas/knowledge-base-sagas.js
|
|
11348
|
-
function*
|
|
11337
|
+
function* wS() {
|
|
11349
11338
|
let e = yield M(Jn);
|
|
11350
|
-
return (yield A(ig, e)) || (yield A(
|
|
11339
|
+
return (yield A(ig, e)) || (yield A(zy), e = yield M(Jn)), e;
|
|
11351
11340
|
}
|
|
11352
|
-
var
|
|
11353
|
-
let [e, ...t] =
|
|
11354
|
-
return
|
|
11341
|
+
var TS = [], ES = () => {
|
|
11342
|
+
let [e, ...t] = TS;
|
|
11343
|
+
return TS = t, e;
|
|
11355
11344
|
};
|
|
11356
|
-
function*
|
|
11357
|
-
(yield A(
|
|
11345
|
+
function* DS() {
|
|
11346
|
+
(yield A(My)) || (yield O(V.INITIALIZE));
|
|
11358
11347
|
let e = yield M(Qn);
|
|
11359
11348
|
N.defined(e.userId) || (yield O(V.COMPLETED_IDENTIFY));
|
|
11360
|
-
let t = yield A(
|
|
11349
|
+
let t = yield A(wS), n = gn((e) => (u((t) => {
|
|
11361
11350
|
let { experienceId: n, integrationId: r, query: i } = t.detail;
|
|
11362
|
-
|
|
11351
|
+
TS.push(n), e({
|
|
11363
11352
|
type: ie,
|
|
11364
11353
|
data: {
|
|
11365
11354
|
integration_id: r,
|
|
@@ -11369,56 +11358,56 @@ function* OS() {
|
|
|
11369
11358
|
});
|
|
11370
11359
|
}), () => {}));
|
|
11371
11360
|
for (t.transport.module.subscribeToError(() => {
|
|
11372
|
-
d(
|
|
11361
|
+
d(ES());
|
|
11373
11362
|
}, t, ng.UserActivity);;) {
|
|
11374
11363
|
let { data: e } = yield O(n);
|
|
11375
|
-
t = yield A(
|
|
11364
|
+
t = yield A(wS), yield A(sg, t, ie, e);
|
|
11376
11365
|
}
|
|
11377
11366
|
}
|
|
11378
|
-
function
|
|
11379
|
-
n(
|
|
11367
|
+
function OS({ payload: e }) {
|
|
11368
|
+
n(ES(), e);
|
|
11380
11369
|
}
|
|
11381
|
-
function
|
|
11382
|
-
d(
|
|
11370
|
+
function kS() {
|
|
11371
|
+
d(ES());
|
|
11383
11372
|
}
|
|
11384
|
-
function*
|
|
11373
|
+
function* AS() {
|
|
11385
11374
|
yield [
|
|
11386
|
-
fu(
|
|
11387
|
-
j(_u, _c.LAUNCHPAD_SEARCH_RESPONSE,
|
|
11388
|
-
j(_u, _c.LAUNCHPAD_SEARCH_ERROR,
|
|
11375
|
+
fu(DS),
|
|
11376
|
+
j(_u, _c.LAUNCHPAD_SEARCH_RESPONSE, OS),
|
|
11377
|
+
j(_u, _c.LAUNCHPAD_SEARCH_ERROR, kS)
|
|
11389
11378
|
];
|
|
11390
11379
|
}
|
|
11391
11380
|
//#endregion
|
|
11392
11381
|
//#region src/scripts/sagas/watch-url-sagas.js
|
|
11393
|
-
function*
|
|
11382
|
+
function* jS() {
|
|
11394
11383
|
if (window.AppcuesSettings) {
|
|
11395
11384
|
let e = window.location.href, { enableURLDetection: t } = window.AppcuesSettings;
|
|
11396
11385
|
for (; t;) window.location.href !== e && (window.Appcues.page(), e = window.location.href), yield A(Z, 500);
|
|
11397
11386
|
}
|
|
11398
11387
|
}
|
|
11399
|
-
function*
|
|
11400
|
-
yield [j(
|
|
11388
|
+
function* MS() {
|
|
11389
|
+
yield [j(jS)];
|
|
11401
11390
|
}
|
|
11402
11391
|
//#endregion
|
|
11403
11392
|
//#region src/scripts/actions/collision-mode-actions.js
|
|
11404
|
-
var
|
|
11405
|
-
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 ===
|
|
11393
|
+
var NS = K(gc.SET_COLLISION_MODE), PS = "launchpad-button-wrapper", FS = (e, t) => e.checklist ? e.checklist.payload[0] : t.payload[0], IS = (e, t) => (e.experiences ? e.experiences.payload : t.payload).find((e) => e.type === "launchpad"), LS = (e) => {
|
|
11394
|
+
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 === PS).config;
|
|
11406
11395
|
return {
|
|
11407
11396
|
position: `${n} ${t}`,
|
|
11408
11397
|
xOffset: r,
|
|
11409
11398
|
yOffset: i
|
|
11410
11399
|
};
|
|
11411
11400
|
};
|
|
11412
|
-
function*
|
|
11401
|
+
function* RS(e, t) {
|
|
11413
11402
|
if (!e || !t) {
|
|
11414
|
-
yield k(
|
|
11403
|
+
yield k(NS({
|
|
11415
11404
|
collisionMode: !1,
|
|
11416
11405
|
checklist: null
|
|
11417
11406
|
}));
|
|
11418
11407
|
return;
|
|
11419
11408
|
}
|
|
11420
|
-
let n = e.styles.position.toLowerCase(), { position: r, xOffset: i, yOffset: a } =
|
|
11421
|
-
yield k(
|
|
11409
|
+
let n = e.styles.position.toLowerCase(), { position: r, xOffset: i, yOffset: a } = LS(t);
|
|
11410
|
+
yield k(NS({
|
|
11422
11411
|
collisionMode: n === r,
|
|
11423
11412
|
checklist: e,
|
|
11424
11413
|
collisionCoordinates: {
|
|
@@ -11427,14 +11416,14 @@ function* zS(e, t) {
|
|
|
11427
11416
|
}
|
|
11428
11417
|
}));
|
|
11429
11418
|
}
|
|
11430
|
-
function*
|
|
11419
|
+
function* zS() {
|
|
11431
11420
|
let e = yield jt({
|
|
11432
11421
|
checklist: O(G.UPDATE_CHECKLISTS),
|
|
11433
11422
|
experiences: O(mc.SHOW_EXPERIENCES)
|
|
11434
11423
|
}), t = yield e.checklist ? O(mc.SHOW_EXPERIENCES) : O(G.UPDATE_CHECKLISTS);
|
|
11435
|
-
yield A(
|
|
11424
|
+
yield A(RS, FS(e, t), IS(e, t));
|
|
11436
11425
|
}
|
|
11437
|
-
function*
|
|
11426
|
+
function* BS({ payload: { checklistId: e, forceClose: t } }) {
|
|
11438
11427
|
let n = yield M(qr, e);
|
|
11439
11428
|
if (t) {
|
|
11440
11429
|
yield k(th(e));
|
|
@@ -11443,7 +11432,7 @@ function* VS({ payload: { checklistId: e, forceClose: t } }) {
|
|
|
11443
11432
|
let r = n.viewState === Ee.EXPANDED;
|
|
11444
11433
|
r || (yield A(l)), yield k(r ? th(e) : eh(e));
|
|
11445
11434
|
}
|
|
11446
|
-
function*
|
|
11435
|
+
function* VS({ payload: { collisionMode: e, checklist: n } }) {
|
|
11447
11436
|
if (!e) {
|
|
11448
11437
|
yield A(o);
|
|
11449
11438
|
return;
|
|
@@ -11457,12 +11446,12 @@ function* HS({ payload: { collisionMode: e, checklist: n } }) {
|
|
|
11457
11446
|
})]),
|
|
11458
11447
|
cancel: A(Z, 100)
|
|
11459
11448
|
});
|
|
11460
|
-
Object.prototype.hasOwnProperty.call(i, "cancel") && (yield A(
|
|
11449
|
+
Object.prototype.hasOwnProperty.call(i, "cancel") && (yield A(VS, { payload: {
|
|
11461
11450
|
collisionMode: e,
|
|
11462
11451
|
checklist: n
|
|
11463
11452
|
} }));
|
|
11464
11453
|
}
|
|
11465
|
-
function*
|
|
11454
|
+
function* HS() {
|
|
11466
11455
|
let e = gn((e) => (s((t) => {
|
|
11467
11456
|
e({
|
|
11468
11457
|
type: c,
|
|
@@ -11476,27 +11465,27 @@ function* US() {
|
|
|
11476
11465
|
}), () => {}));
|
|
11477
11466
|
for (;;) yield k(yield O(e));
|
|
11478
11467
|
}
|
|
11479
|
-
function*
|
|
11468
|
+
function* US() {
|
|
11480
11469
|
for (yield O(gc.SET_COLLISION_MODE);;) {
|
|
11481
|
-
let { payload: [e] } = yield O(G.UPDATE_CHECKLISTS), t = yield A(
|
|
11470
|
+
let { payload: [e] } = yield O(G.UPDATE_CHECKLISTS), t = yield A(ey);
|
|
11482
11471
|
if (!t) return;
|
|
11483
11472
|
let n = null, r = 0;
|
|
11484
11473
|
for (; !n && r <= 10;) yield Z(100), n = t.getRunningExperiences().find((e) => e.type === "launchpad"), r += 1;
|
|
11485
|
-
n && (yield A(
|
|
11474
|
+
n && (yield A(RS, e, n));
|
|
11486
11475
|
}
|
|
11487
11476
|
}
|
|
11488
|
-
function*
|
|
11477
|
+
function* WS() {
|
|
11489
11478
|
yield [
|
|
11479
|
+
j(HS),
|
|
11490
11480
|
j(US),
|
|
11491
|
-
j(
|
|
11492
|
-
j(BS),
|
|
11493
|
-
j(yn,
|
|
11494
|
-
j(yn, gc.SET_COLLISION_MODE, HS)
|
|
11481
|
+
j(zS),
|
|
11482
|
+
j(yn, c, BS),
|
|
11483
|
+
j(yn, gc.SET_COLLISION_MODE, VS)
|
|
11495
11484
|
];
|
|
11496
11485
|
}
|
|
11497
11486
|
//#endregion
|
|
11498
11487
|
//#region src/scripts/clickstream/generate-selector.js
|
|
11499
|
-
var
|
|
11488
|
+
var GS = (/* @__PURE__ */ a(((e, t) => {
|
|
11500
11489
|
(function(n, r) {
|
|
11501
11490
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof e == "object" ? e.OptimalSelect = r() : n.OptimalSelect = r();
|
|
11502
11491
|
})(e, function() {
|
|
@@ -11895,48 +11884,48 @@ var KS = (/* @__PURE__ */ a(((e, t) => {
|
|
|
11895
11884
|
}
|
|
11896
11885
|
]);
|
|
11897
11886
|
});
|
|
11898
|
-
})))(),
|
|
11899
|
-
|
|
11887
|
+
})))(), KS = /\d{2,}/, qS = /(ember(\d+))/, JS = /(appcues)/, YS = /(ng-.+)/, XS = /GCP/, ZS = /(sc-.+)/, QS = /^(class)$/, $S = /{/, eC = /^\s+$/, tC = /^(sm|md|lg|xl|2xl):/, nC = /\[.*]/, rC = [KS, qS], iC = [
|
|
11888
|
+
KS,
|
|
11889
|
+
JS,
|
|
11900
11890
|
YS,
|
|
11901
11891
|
XS,
|
|
11902
11892
|
ZS,
|
|
11903
|
-
|
|
11893
|
+
eC,
|
|
11904
11894
|
tC,
|
|
11905
|
-
nC
|
|
11906
|
-
|
|
11907
|
-
|
|
11908
|
-
qS,
|
|
11909
|
-
YS,
|
|
11895
|
+
nC
|
|
11896
|
+
], aC = [YS, QS], oC = [
|
|
11897
|
+
KS,
|
|
11910
11898
|
JS,
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11899
|
+
qS,
|
|
11900
|
+
$S
|
|
11901
|
+
], sC = /^[a-zA-Z_:][a-zA-Z0-9_:-]*$/, cC = (e) => !sC.test(e), lC = "|shadow-root|", uC = "|iframe|";
|
|
11902
|
+
function dC(e, t = {}) {
|
|
11903
|
+
return (0, GS.select)(e, {
|
|
11915
11904
|
ignore: {
|
|
11916
|
-
id: (e, t) =>
|
|
11917
|
-
class: (e, t) =>
|
|
11918
|
-
attribute: (e, t, n) =>
|
|
11905
|
+
id: (e, t) => rC.some((e) => e.test(t)),
|
|
11906
|
+
class: (e, t) => iC.some((e) => e.test(t)),
|
|
11907
|
+
attribute: (e, t, n) => cC(e) || aC.some((t) => t.test(e)) || oC.some((e) => e.test(t)) || n(e, t)
|
|
11919
11908
|
},
|
|
11920
11909
|
...t
|
|
11921
11910
|
});
|
|
11922
11911
|
}
|
|
11923
|
-
function
|
|
11912
|
+
function fC(e, t = "") {
|
|
11924
11913
|
let [n] = e;
|
|
11925
11914
|
if (!n) return t;
|
|
11926
11915
|
let r = n.getRootNode();
|
|
11927
|
-
if (r === document) return t ? `${
|
|
11916
|
+
if (r === document) return t ? `${dC(n)} ${t}` : dC(n);
|
|
11928
11917
|
if (r instanceof ShadowRoot) {
|
|
11929
11918
|
let i = e.indexOf(r);
|
|
11930
|
-
return
|
|
11919
|
+
return fC(e.slice(i + 1), `${lC} ${dC(n, { root: e[i - 1] })} ${t}`);
|
|
11931
11920
|
}
|
|
11932
11921
|
let i = r.parentWindow || r.defaultView;
|
|
11933
11922
|
if (i !== window) {
|
|
11934
11923
|
let a = e.indexOf(r);
|
|
11935
|
-
return
|
|
11924
|
+
return fC(e.slice(a + 1), `${dC(i.frameElement)} ${uC} ${dC(n, { root: e[a - 1] })} ${t}`);
|
|
11936
11925
|
}
|
|
11937
11926
|
return t;
|
|
11938
11927
|
}
|
|
11939
|
-
function
|
|
11928
|
+
function pC(e) {
|
|
11940
11929
|
return [
|
|
11941
11930
|
"href",
|
|
11942
11931
|
"src",
|
|
@@ -11951,7 +11940,7 @@ function mC(e) {
|
|
|
11951
11940
|
return r && (t[n] = r), t;
|
|
11952
11941
|
}, {});
|
|
11953
11942
|
}
|
|
11954
|
-
function
|
|
11943
|
+
function mC(e) {
|
|
11955
11944
|
let t = [], n = e;
|
|
11956
11945
|
for (; n && n.nodeType === Node.ELEMENT_NODE;) {
|
|
11957
11946
|
let e = n.tagName.toLowerCase();
|
|
@@ -11967,12 +11956,12 @@ function hC(e) {
|
|
|
11967
11956
|
}
|
|
11968
11957
|
return t.join(" > ");
|
|
11969
11958
|
}
|
|
11970
|
-
function
|
|
11959
|
+
function hC(e) {
|
|
11971
11960
|
let t = e.tagName.toLowerCase(), n = {
|
|
11972
11961
|
tagName: e.tagName,
|
|
11973
|
-
path:
|
|
11962
|
+
path: mC(e),
|
|
11974
11963
|
...e.classList.length > 0 ? { class: [...e.classList] } : {},
|
|
11975
|
-
...
|
|
11964
|
+
...pC(e)
|
|
11976
11965
|
};
|
|
11977
11966
|
if (t === "button" || t === "input" && ["submit", "button"].includes(e.getAttribute("type"))) {
|
|
11978
11967
|
let t = e.value || e.getAttribute("value");
|
|
@@ -11986,7 +11975,7 @@ function gC(e) {
|
|
|
11986
11975
|
}
|
|
11987
11976
|
//#endregion
|
|
11988
11977
|
//#region src/scripts/clickstream/pii-filter.js
|
|
11989
|
-
var
|
|
11978
|
+
var gC = "[redacted]", _C = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, vC = /(^|[^\w/.-])(?:\+?1[\s\-.]?)?\(?\d{3}\)?[\s\-.]?\d{3}[\s\-.]?\d{4}\b/g, yC = /(^|[^\d/])\d{3}[-\s]?\d{2}[-\s]?\d{4}\b(?!\/)/g, bC = /(^|[^\w/.-])(?:\d[ -]?){13,16}\b(?!\/)/g, xC = /(^|[^/])(?:\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, SC = /(^|[^/])\b[1-9][ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY0-9][0-9][ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY0-9][0-9][ACDEFGHJKMNPQRTUVWXY]{2}[0-9]{2}\b(?!\/)/gi, CC = /(^|[^/])\b\d{2}\.\d{2}\.\d{2}-\d{3}\.\d{2}\b(?!\/)/g, wC = /\b\d{2}(?:0[1-9]|1[0-2])\d{2}[-+]\d{4}\b/g, TC = /\b\d{2}\.?(?:0[1-9]|1[0-2])\.?\d{2}[-+A]\d{3}[A-Z]\b/gi, EC = /\b\d{7}[A-W]W?\b/gi, DC = /\b[A-Z]{6}\d{2}[ABCDEHLMPRST]\d{2}[A-Z0-9]{5}\b/gi, OC = /\b[0-9XYZ]\d{7}[TRWAGMYFPDXBNJZSQVHLCKE]\b/gi, kC = /\b756\.?\d{4}\.?\d{4}\.?\d{2}\b/g, AC = /\b[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z]\d{6}[A-D]\b/g, jC = /\b[A-Z]{2}[ ]?\d{2}(?:[ ]?[A-Z0-9]{4}){3,8}(?:[ ]?[A-Z0-9]{1,3})?\b/g, MC = new Set([
|
|
11990
11979
|
"email",
|
|
11991
11980
|
"ssn",
|
|
11992
11981
|
"password",
|
|
@@ -12007,7 +11996,7 @@ var _C = "[redacted]", vC = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, y
|
|
|
12007
11996
|
"diagnosis",
|
|
12008
11997
|
"patient_id",
|
|
12009
11998
|
"npi"
|
|
12010
|
-
]),
|
|
11999
|
+
]), NC = ["href", "src"], PC = [
|
|
12011
12000
|
"text",
|
|
12012
12001
|
"href",
|
|
12013
12002
|
"src",
|
|
@@ -12019,11 +12008,11 @@ var _C = "[redacted]", vC = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, y
|
|
|
12019
12008
|
"id",
|
|
12020
12009
|
"value",
|
|
12021
12010
|
"path"
|
|
12022
|
-
],
|
|
12023
|
-
function
|
|
12024
|
-
return typeof e == "string" ? e.replace(
|
|
12011
|
+
], FC = `$1${gC}`;
|
|
12012
|
+
function IC(e) {
|
|
12013
|
+
return typeof e == "string" ? e.replace(_C, gC).replace(jC, gC).replace(vC, FC).replace(yC, FC).replace(bC, FC).replace(xC, FC).replace(SC, FC).replace(CC, FC).replace(wC, gC).replace(TC, gC).replace(EC, gC).replace(DC, gC).replace(OC, gC).replace(kC, gC).replace(AC, gC) : e;
|
|
12025
12014
|
}
|
|
12026
|
-
function
|
|
12015
|
+
function LC(e) {
|
|
12027
12016
|
if (typeof e != "string") return e;
|
|
12028
12017
|
try {
|
|
12029
12018
|
let t = new URL(e);
|
|
@@ -12032,48 +12021,48 @@ function RC(e) {
|
|
|
12032
12021
|
return e.replace(/\?[^#]*/, "");
|
|
12033
12022
|
}
|
|
12034
12023
|
}
|
|
12035
|
-
function
|
|
12036
|
-
let { attributes: t = {} } = e, n = (t.name || "").toLowerCase(), r = (t.id || "").toLowerCase(), i =
|
|
12037
|
-
for (let e of
|
|
12038
|
-
for (let e of
|
|
12039
|
-
return a.identifier !== void 0 && a.selector !== void 0 && (a.identifier = `selector=${encodeURIComponent(a.selector)}`), i && (a.text !== void 0 && (a.text =
|
|
12024
|
+
function RC(e) {
|
|
12025
|
+
let { attributes: t = {} } = e, n = (t.name || "").toLowerCase(), r = (t.id || "").toLowerCase(), i = MC.has(n) || MC.has(r), a = { ...t };
|
|
12026
|
+
for (let e of NC) a[e] !== void 0 && (a[e] = LC(a[e]));
|
|
12027
|
+
for (let e of PC) a[e] !== void 0 && (a[e] = IC(a[e]));
|
|
12028
|
+
return a.identifier !== void 0 && a.selector !== void 0 && (a.identifier = `selector=${encodeURIComponent(a.selector)}`), i && (a.text !== void 0 && (a.text = gC), a.value !== void 0 && (a.value = gC)), {
|
|
12040
12029
|
...e,
|
|
12041
12030
|
attributes: a
|
|
12042
12031
|
};
|
|
12043
12032
|
}
|
|
12044
12033
|
//#endregion
|
|
12045
12034
|
//#region src/scripts/clickstream/saga.js
|
|
12046
|
-
var
|
|
12035
|
+
var zC = 3e4, BC = new Set([
|
|
12047
12036
|
"INPUT",
|
|
12048
12037
|
"TEXTAREA",
|
|
12049
12038
|
"SELECT"
|
|
12050
|
-
]),
|
|
12039
|
+
]), VC = new Set([
|
|
12051
12040
|
"BUTTON",
|
|
12052
12041
|
"A",
|
|
12053
12042
|
"INPUT",
|
|
12054
12043
|
"SELECT"
|
|
12055
12044
|
]);
|
|
12056
|
-
function
|
|
12045
|
+
function HC(e) {
|
|
12057
12046
|
return e.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? e.host : e.parentNode;
|
|
12058
12047
|
}
|
|
12059
|
-
function
|
|
12048
|
+
function UC(e) {
|
|
12060
12049
|
if (e.length === 0) return null;
|
|
12061
12050
|
let [t] = e;
|
|
12062
|
-
return t.tagName === "SLOT" ?
|
|
12051
|
+
return t.tagName === "SLOT" ? UC(e.slice(1)) : e;
|
|
12063
12052
|
}
|
|
12064
|
-
function
|
|
12065
|
-
let t = [e], n =
|
|
12066
|
-
for (; n;) t.push(n), n =
|
|
12067
|
-
return
|
|
12053
|
+
function WC(e) {
|
|
12054
|
+
let t = [e], n = HC(e);
|
|
12055
|
+
for (; n;) t.push(n), n = HC(n);
|
|
12056
|
+
return UC(t);
|
|
12068
12057
|
}
|
|
12069
|
-
function
|
|
12058
|
+
function GC() {
|
|
12070
12059
|
return {
|
|
12071
12060
|
url: window.location.href,
|
|
12072
12061
|
sdk_version: window.AppcuesBundleSettings && window.AppcuesBundleSettings.VERSION
|
|
12073
12062
|
};
|
|
12074
12063
|
}
|
|
12075
|
-
function
|
|
12076
|
-
let [t] = e.composedPath(), n =
|
|
12064
|
+
function KC(e) {
|
|
12065
|
+
let [t] = e.composedPath(), n = WC(t), [r] = n, i = hC(r), a = fC(n);
|
|
12077
12066
|
return bu("appcues:clickstream", {
|
|
12078
12067
|
interaction: "click",
|
|
12079
12068
|
identifier: `selector=${encodeURIComponent(a)}`,
|
|
@@ -12081,10 +12070,10 @@ function qC(e) {
|
|
|
12081
12070
|
...i
|
|
12082
12071
|
});
|
|
12083
12072
|
}
|
|
12084
|
-
function
|
|
12073
|
+
function qC(e) {
|
|
12085
12074
|
let [t] = e.composedPath();
|
|
12086
|
-
if (!t || !
|
|
12087
|
-
let n =
|
|
12075
|
+
if (!t || !BC.has(t.tagName)) return null;
|
|
12076
|
+
let n = WC(t), [r] = n, i = hC(r), a = fC(n);
|
|
12088
12077
|
return bu("appcues:clickstream", {
|
|
12089
12078
|
interaction: "input-change",
|
|
12090
12079
|
identifier: `selector=${encodeURIComponent(a)}`,
|
|
@@ -12092,20 +12081,20 @@ function JC(e) {
|
|
|
12092
12081
|
...i
|
|
12093
12082
|
});
|
|
12094
12083
|
}
|
|
12095
|
-
function*
|
|
12084
|
+
function* JC(e) {
|
|
12096
12085
|
let t = yield M(Jn);
|
|
12097
|
-
(yield A(ig, t)) || (yield A(
|
|
12098
|
-
let { id: n } = yield M(ar), r = yield A(
|
|
12099
|
-
yield A(cg, t, {}, e, !1, r, n, {},
|
|
12086
|
+
(yield A(ig, t)) || (yield A(zy), t = yield M(Jn));
|
|
12087
|
+
let { id: n } = yield M(ar), r = yield A(m_, h, v);
|
|
12088
|
+
yield A(cg, t, {}, e, !1, r, n, {}, GC());
|
|
12100
12089
|
}
|
|
12101
|
-
function
|
|
12090
|
+
function YC() {
|
|
12102
12091
|
return gn((e) => {
|
|
12103
12092
|
let t = (t) => {
|
|
12104
12093
|
try {
|
|
12105
|
-
e(
|
|
12094
|
+
e(KC(t));
|
|
12106
12095
|
} catch {}
|
|
12107
12096
|
}, n = (e) => {
|
|
12108
|
-
(e.key === " " || e.key === "Enter") && !
|
|
12097
|
+
(e.key === " " || e.key === "Enter") && !VC.has(e.target.tagName) && t(e);
|
|
12109
12098
|
};
|
|
12110
12099
|
try {
|
|
12111
12100
|
return document.addEventListener("click", t, !0), document.addEventListener("keyup", n, !0), () => {
|
|
@@ -12116,11 +12105,11 @@ function XC() {
|
|
|
12116
12105
|
}
|
|
12117
12106
|
}, $t.expanding(10));
|
|
12118
12107
|
}
|
|
12119
|
-
function
|
|
12108
|
+
function XC() {
|
|
12120
12109
|
return gn((e) => {
|
|
12121
12110
|
let t = (t) => {
|
|
12122
12111
|
try {
|
|
12123
|
-
let n =
|
|
12112
|
+
let n = qC(t);
|
|
12124
12113
|
n && e(n);
|
|
12125
12114
|
} catch {}
|
|
12126
12115
|
};
|
|
@@ -12133,12 +12122,12 @@ function ZC() {
|
|
|
12133
12122
|
}
|
|
12134
12123
|
}, $t.expanding(10));
|
|
12135
12124
|
}
|
|
12136
|
-
function*
|
|
12125
|
+
function* ZC(e, t) {
|
|
12137
12126
|
yield yn(e, function* (e) {
|
|
12138
12127
|
let { id: n } = yield M(ar);
|
|
12139
|
-
yield k(t,
|
|
12128
|
+
yield k(t, RC({
|
|
12140
12129
|
...e,
|
|
12141
|
-
context:
|
|
12130
|
+
context: GC(),
|
|
12142
12131
|
attributes: {
|
|
12143
12132
|
...e.attributes,
|
|
12144
12133
|
sessionId: n
|
|
@@ -12146,11 +12135,11 @@ function* QC(e, t) {
|
|
|
12146
12135
|
}));
|
|
12147
12136
|
});
|
|
12148
12137
|
}
|
|
12149
|
-
function*
|
|
12150
|
-
let e = yield A(hn, $t.expanding(10)), t = yield A(hn), n =
|
|
12151
|
-
yield*
|
|
12152
|
-
let r =
|
|
12153
|
-
yield*
|
|
12138
|
+
function* QC() {
|
|
12139
|
+
let e = yield A(hn, $t.expanding(10)), t = yield A(hn), n = YC();
|
|
12140
|
+
yield* ZC(n, e);
|
|
12141
|
+
let r = XC();
|
|
12142
|
+
yield* ZC(r, e);
|
|
12154
12143
|
let i = () => {
|
|
12155
12144
|
t.put("INTERRUPT");
|
|
12156
12145
|
};
|
|
@@ -12158,72 +12147,72 @@ function* $C() {
|
|
|
12158
12147
|
try {
|
|
12159
12148
|
for (;;) {
|
|
12160
12149
|
yield jt({
|
|
12161
|
-
delay: $e(
|
|
12150
|
+
delay: $e(zC),
|
|
12162
12151
|
force: O(t)
|
|
12163
12152
|
});
|
|
12164
12153
|
let n = yield Rt(e);
|
|
12165
12154
|
if (n.length > 0) try {
|
|
12166
|
-
yield A(
|
|
12155
|
+
yield A(JC, n);
|
|
12167
12156
|
} catch {}
|
|
12168
12157
|
}
|
|
12169
12158
|
} finally {
|
|
12170
12159
|
window.removeEventListener("beforeunload", i), n.close(), r.close();
|
|
12171
12160
|
let a = yield Rt(e);
|
|
12172
|
-
a.length > 0 && (yield A(
|
|
12161
|
+
a.length > 0 && (yield A(JC, a)), e.close(), t.close();
|
|
12173
12162
|
}
|
|
12174
12163
|
}
|
|
12175
12164
|
//#endregion
|
|
12176
12165
|
//#region src/styles/container.css?url
|
|
12177
|
-
var
|
|
12178
|
-
window.performance && window.performance.mark && window.performance.mark("apc-init"),
|
|
12179
|
-
var
|
|
12166
|
+
var $C = "/generic/main/7.29.0/container.218252b40d64d313ce5b7e1b4d2efcbccccb4ca6.css", ew = "sha256-/y6BvK8MW/je0VotMw6UgvH+b35y1S2B9dh1dCfqhFg=";
|
|
12167
|
+
window.performance && window.performance.mark && window.performance.mark("apc-init"), Pg();
|
|
12168
|
+
var tw = window.AppcuesBundleSettings;
|
|
12180
12169
|
[...document.documentElement.querySelectorAll("link")].forEach((e) => {
|
|
12181
12170
|
/\/appcues(\.min|\.debug)?\.css$/.test(e.href) && e.parentElement && e.parentElement.removeChild(e);
|
|
12182
12171
|
});
|
|
12183
|
-
var
|
|
12184
|
-
|
|
12185
|
-
var
|
|
12186
|
-
N.object(
|
|
12187
|
-
var
|
|
12188
|
-
|
|
12189
|
-
var
|
|
12190
|
-
settings:
|
|
12172
|
+
var nw = document.createElement("link");
|
|
12173
|
+
nw.setAttribute("rel", "stylesheet"), nw.setAttribute("type", "text/css"), nw.setAttribute("integrity", ew), nw.setAttribute("crossorigin", "anonymous"), nw.setAttribute("href", ws($C)), document.head.appendChild(nw);
|
|
12174
|
+
var rw = window[ce];
|
|
12175
|
+
N.object(rw) && N.defined(rw.gaTracker) && tw.integrations.ga && (tw.integrations.ga.trackerName = rw.gaTracker);
|
|
12176
|
+
var iw = null, aw = document.documentElement.querySelector("script[src*=\"fast.appcues\"]");
|
|
12177
|
+
aw && (iw = aw.getAttribute("data-user-id"));
|
|
12178
|
+
var ow = Sh({
|
|
12179
|
+
settings: tw,
|
|
12191
12180
|
sagas: [
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12181
|
+
Sb,
|
|
12182
|
+
Qv,
|
|
12183
|
+
Dx,
|
|
12184
|
+
cv,
|
|
12185
|
+
Lx,
|
|
12186
|
+
rS,
|
|
12187
|
+
Jx,
|
|
12188
|
+
mS,
|
|
12189
|
+
gS,
|
|
12190
|
+
xS,
|
|
12191
|
+
Ux,
|
|
12192
|
+
CS,
|
|
12193
|
+
U_,
|
|
12194
|
+
AS,
|
|
12195
|
+
my,
|
|
12207
12196
|
ud,
|
|
12208
|
-
|
|
12209
|
-
|
|
12210
|
-
|
|
12197
|
+
MS,
|
|
12198
|
+
jy,
|
|
12199
|
+
WS,
|
|
12211
12200
|
function* () {
|
|
12212
|
-
yield j(
|
|
12201
|
+
yield j(Rb, tw.events);
|
|
12213
12202
|
},
|
|
12214
12203
|
function* () {
|
|
12215
|
-
|
|
12204
|
+
tw.account?.clickstreamEnabled === !0 && (yield j(QC));
|
|
12216
12205
|
}
|
|
12217
12206
|
],
|
|
12218
12207
|
onStateChange: (e) => {
|
|
12219
|
-
|
|
12208
|
+
gx(e), wx(e);
|
|
12220
12209
|
}
|
|
12221
12210
|
});
|
|
12222
|
-
|
|
12223
|
-
var
|
|
12224
|
-
|
|
12225
|
-
if (
|
|
12226
|
-
let t =
|
|
12211
|
+
ow.dispatch(tl({ [C.DEBUGGER]: Tx(ow.dispatch, ow.getState) })), ow.dispatch(vc(tw, Wg(ow), kg, Gg(tw, ow.getState)));
|
|
12212
|
+
var sw = Xb(ow);
|
|
12213
|
+
tw && tw.snippets && Zb(tw.accountId, tw.snippets), tw && tw.integrations && Object.keys(tw.integrations).forEach((e) => {
|
|
12214
|
+
if (tw.integrations[e].isEnabled) {
|
|
12215
|
+
let t = sw[`init${{
|
|
12227
12216
|
mixpanel: "Mixpanel",
|
|
12228
12217
|
heap: "Heap",
|
|
12229
12218
|
intercom: "Intercom",
|
|
@@ -12247,6 +12236,6 @@ nw && nw.snippets && Qb(nw.accountId, nw.snippets), nw && nw.integrations && Obj
|
|
|
12247
12236
|
}[e]}`];
|
|
12248
12237
|
t && t();
|
|
12249
12238
|
}
|
|
12250
|
-
}), /hey_appcues/i.test(window.location.search) &&
|
|
12239
|
+
}), /hey_appcues/i.test(window.location.search) && sw.debug(), iw !== null && sw.identify(iw);
|
|
12251
12240
|
//#endregion
|
|
12252
|
-
export {
|
|
12241
|
+
export { sw as default };
|