@appcues/web-sdk 7.28.4 → 7.29.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +30 -0
- package/build/{bootstrap.npm.DzjbZMq5.js → bootstrap.npm.CjDeemPf.js} +858 -852
- package/build/data/transports/websocket.d.ts.map +1 -1
- package/build/index.npm.js +1 -1
- package/build/{open-builder.BMVipZwK.js → open-builder.tyWdpG8A.js} +3255 -3732
- package/build/sagas/sagas.d.ts +2 -1
- package/build/sagas/sagas.d.ts.map +1 -1
- package/build/sagas/session-sagas.d.ts +1 -0
- package/build/sagas/session-sagas.d.ts.map +1 -1
- package/build/views/components/background.d.ts +1 -1
- package/build/views/components/background.d.ts.map +1 -1
- package/build/views/components/beacon-outline-styling.d.ts +1 -1
- package/build/views/components/beacon-outline-styling.d.ts.map +1 -1
- package/build/views/components/beacons.d.ts +3 -3
- package/build/views/components/beacons.d.ts.map +1 -1
- package/build/views/components/checklist-beacon.d.ts +1 -1
- package/build/views/components/checklist-beacon.d.ts.map +1 -1
- package/build/views/components/checklist-icons.d.ts +5 -5
- package/build/views/components/checklist-icons.d.ts.map +1 -1
- package/build/views/components/checklist-item.d.ts +1 -1
- package/build/views/components/checklist-item.d.ts.map +1 -1
- package/build/views/components/checklist.d.ts +1 -1
- package/build/views/components/checklist.d.ts.map +1 -1
- package/build/views/components/content-outline-styling.d.ts +1 -1
- package/build/views/components/content-outline-styling.d.ts.map +1 -1
- package/build/views/components/debugger.d.ts +4 -4
- package/build/views/components/debugger.d.ts.map +1 -1
- package/build/views/components/global-styling.d.ts +1 -1
- package/build/views/components/global-styling.d.ts.map +1 -1
- package/build/views/components/logo.d.ts +1 -1
- package/build/views/components/logo.d.ts.map +1 -1
- package/build/views/components/modal-step.d.ts +1 -1
- package/build/views/components/modal-step.d.ts.map +1 -1
- package/build/views/components/nps-survey-qualitative-question.d.ts +1 -1
- package/build/views/components/nps-survey-qualitative-question.d.ts.map +1 -1
- package/build/views/components/nps-survey-quantitative-option.d.ts +1 -1
- package/build/views/components/nps-survey-quantitative-option.d.ts.map +1 -1
- package/build/views/components/nps-survey-quantitative-question.d.ts +1 -1
- package/build/views/components/nps-survey-quantitative-question.d.ts.map +1 -1
- package/build/views/components/nps-survey-toast.d.ts +1 -1
- package/build/views/components/nps-survey-toast.d.ts.map +1 -1
- package/build/views/components/nps-survey.d.ts +1 -1
- package/build/views/components/nps-survey.d.ts.map +1 -1
- package/build/views/components/powered-by-appcues.d.ts +1 -1
- package/build/views/components/powered-by-appcues.d.ts.map +1 -1
- package/build/views/components/test-mode-banner.d.ts +1 -1
- package/build/views/components/test-mode-banner.d.ts.map +1 -1
- package/build/views/components/tooltip.d.ts +1 -1
- package/build/views/components/tooltip.d.ts.map +1 -1
- package/build/views/renderers/render-checklist.d.ts +1 -1
- package/build/views/renderers/render-checklist.d.ts.map +1 -1
- package/build/views/renderers/render-debugger.d.ts +2 -2
- package/build/views/renderers/render-debugger.d.ts.map +1 -1
- package/build/views/renderers/render-hotspots.d.ts +1 -1
- package/build/views/renderers/render-hotspots.d.ts.map +1 -1
- package/build/views/renderers/render-widget-icon.d.ts +1 -1
- package/build/views/renderers/render-widget-icon.d.ts.map +1 -1
- package/build/views/renderers/render-widget.d.ts +1 -1
- package/build/views/renderers/render-widget.d.ts.map +1 -1
- package/package.json +2 -2
- /package/build/{checklist.6358d11775a6874904189b2cd6c11e6e13005830.css → checklist.408e6ad8d51f34b3b17d940f8e5d454920417883.css} +0 -0
- /package/build/{container.6358d11775a6874904189b2cd6c11e6e13005830.css → container.408e6ad8d51f34b3b17d940f8e5d454920417883.css} +0 -0
- /package/build/{debugger.6358d11775a6874904189b2cd6c11e6e13005830.css → debugger.408e6ad8d51f34b3b17d940f8e5d454920417883.css} +0 -0
- /package/build/{modal-step-legacy-render.6358d11775a6874904189b2cd6c11e6e13005830.css → modal-step-legacy-render.408e6ad8d51f34b3b17d940f8e5d454920417883.css} +0 -0
- /package/build/{modal.6358d11775a6874904189b2cd6c11e6e13005830.css → modal.408e6ad8d51f34b3b17d940f8e5d454920417883.css} +0 -0
- /package/build/{satisfaction-survey.6358d11775a6874904189b2cd6c11e6e13005830.css → satisfaction-survey.408e6ad8d51f34b3b17d940f8e5d454920417883.css} +0 -0
- /package/build/{test-mode.6358d11775a6874904189b2cd6c11e6e13005830.css → test-mode.408e6ad8d51f34b3b17d940f8e5d454920417883.css} +0 -0
- /package/build/{tooltip.6358d11775a6874904189b2cd6c11e6e13005830.css → tooltip.408e6ad8d51f34b3b17d940f8e5d454920417883.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.4/checklist.408e6ad8d51f34b3b17d940f8e5d454920417883.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.4/modal.408e6ad8d51f34b3b17d940f8e5d454920417883.css", Tf = "/generic/main/7.29.4/modal-step-legacy-render.408e6ad8d51f34b3b17d940f8e5d454920417883.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.4/tooltip.408e6ad8d51f34b3b17d940f8e5d454920417883.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.4/satisfaction-survey.408e6ad8d51f34b3b17d940f8e5d454920417883.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
|
-
let e = await import("./open-builder.
|
|
8430
|
+
let e = await import("./open-builder.tyWdpG8A.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,51 +9264,57 @@ 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*
|
|
9305
|
-
let e = yield M(ar);
|
|
9306
|
-
return !e.id || Date.now() - e.duration >
|
|
9293
|
+
function* Oy() {
|
|
9294
|
+
let e = yield M(ar), t = e.lastEventTimestamp ?? e.timestamp;
|
|
9295
|
+
return !e.id || Date.now() - e.duration > t;
|
|
9307
9296
|
}
|
|
9297
|
+
var ky = null;
|
|
9308
9298
|
function* Ay() {
|
|
9309
|
-
|
|
9299
|
+
if (yield A(Oy)) {
|
|
9300
|
+
yield k(z_()), yield O(({ type: e }) => e === hc.SESSION_STARTED);
|
|
9301
|
+
let e = yield M(ar);
|
|
9302
|
+
return !e.id || e.id === ky ? null : (ky = e.id, xu(id(e)));
|
|
9303
|
+
}
|
|
9304
|
+
return null;
|
|
9310
9305
|
}
|
|
9311
9306
|
function* jy({ payload: e }) {
|
|
9312
9307
|
(yield M($n)) || (yield O(V.COMPLETED_IDENTIFY)), (yield M(ar)).id || (yield O(hc.SET_SESSION));
|
|
9313
9308
|
let { userId: t } = e;
|
|
9314
9309
|
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(
|
|
9310
|
+
let n = yield M(Qn), r = (n && n.userId && n.userId.toString()) !== t.toString(), i = yield A(Oy);
|
|
9311
|
+
(r || i) && (yield k(z_()));
|
|
9317
9312
|
}
|
|
9318
9313
|
function* My() {
|
|
9319
9314
|
return yield [
|
|
9320
|
-
j(_u, V.INITIALIZE,
|
|
9321
|
-
j(_u, hc.SET_SESSION,
|
|
9322
|
-
j(_u, hc.START_SESSION,
|
|
9315
|
+
j(_u, V.INITIALIZE, Ey),
|
|
9316
|
+
j(_u, hc.SET_SESSION, Dy),
|
|
9317
|
+
j(_u, hc.START_SESSION, Ty),
|
|
9323
9318
|
j(Y, B.START_IDENTIFY, jy)
|
|
9324
9319
|
];
|
|
9325
9320
|
}
|
|
@@ -9330,20 +9325,20 @@ function* Ny() {
|
|
|
9330
9325
|
}
|
|
9331
9326
|
function* Py(e = !1) {
|
|
9332
9327
|
if (yield M(tr)) return null;
|
|
9333
|
-
let t = yield A(
|
|
9328
|
+
let t = yield A(m_, g, b);
|
|
9334
9329
|
try {
|
|
9335
9330
|
t = JSON.parse(t);
|
|
9336
9331
|
} catch {
|
|
9337
9332
|
t = null;
|
|
9338
9333
|
}
|
|
9339
|
-
let n = yield A(
|
|
9340
|
-
if (yield A(
|
|
9341
|
-
let e = yield A(
|
|
9334
|
+
let n = yield A(gy, window, e, t);
|
|
9335
|
+
if (yield A(p_, g, b, JSON.stringify(n)), (yield A(uv, window)) && window.history && window.location) {
|
|
9336
|
+
let e = yield A(fv, window.location.href, "appcuesTestContentId");
|
|
9342
9337
|
yield A([window.history, window.history.replaceState], window.history.state, "", e), window.location.reload();
|
|
9343
9338
|
}
|
|
9344
|
-
let r = yield A(
|
|
9345
|
-
r || (r = yield A(Uh), yield A(
|
|
9346
|
-
let i = yield M(Yn), a =
|
|
9339
|
+
let r = yield A(m_, h, xe);
|
|
9340
|
+
r || (r = yield A(Uh), yield A(p_, h, xe, r));
|
|
9341
|
+
let i = yield M(Yn), a = vy({
|
|
9347
9342
|
_localId: r,
|
|
9348
9343
|
_appcuesId: i,
|
|
9349
9344
|
...n
|
|
@@ -9351,11 +9346,11 @@ function* Py(e = !1) {
|
|
|
9351
9346
|
return yield k(Kc(a, !0)), a;
|
|
9352
9347
|
}
|
|
9353
9348
|
function* Fy() {
|
|
9354
|
-
yield k(qc()), yield A($, g, b), yield A($, h, xe), yield A($, h, de), yield A($, h, v), yield A(
|
|
9349
|
+
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(Py, !0);
|
|
9355
9350
|
}
|
|
9356
9351
|
function* Iy(e) {
|
|
9357
9352
|
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(Fy)), yield k(Uc(i)), N.defined(i) && (yield A(
|
|
9353
|
+
o && s && !r && (yield A(Fy)), yield k(Uc(i)), N.defined(i) && (yield A(p_, h, de, i)), yield k(Kc({
|
|
9359
9354
|
_doNotTrack: `${window.navigator && window.navigator.doNotTrack}`[0] === "1",
|
|
9360
9355
|
...t
|
|
9361
9356
|
}, !0)), yield k(Tc(yield M(Qn), n, !0));
|
|
@@ -9398,7 +9393,7 @@ function* Hy({ properties: e, events: t, trigger: n, groupId: r = null, groupPro
|
|
|
9398
9393
|
})), u = t.find((e) => e.name === ue.PAGE_VIEW);
|
|
9399
9394
|
try {
|
|
9400
9395
|
let o = yield A(cg, a, e, l, n, r, s, i, c);
|
|
9401
|
-
o && (yield k(Wc(o, u)),
|
|
9396
|
+
o && (yield k(Wc(o, u)), Fg(o)), yield k(R_({ lastEventTimestamp: t[t.length - 1].timestamp })), yield k(pl());
|
|
9402
9397
|
} catch (e) {
|
|
9403
9398
|
yield k(Wc(e));
|
|
9404
9399
|
}
|
|
@@ -9417,7 +9412,7 @@ function* Gy(e) {
|
|
|
9417
9412
|
if (t && (!s || s.id !== t && (!s.migrated_from_step_id || s.migrated_from_step_id !== t))) {
|
|
9418
9413
|
if (r = window.location.href, yield k(zc()), s && N.defined(s.id)) {
|
|
9419
9414
|
let e = Rn(s, yield M(F));
|
|
9420
|
-
e && (yield*
|
|
9415
|
+
e && (yield* Yv(s, e)), yield k(Yp(s.id, Ce.SHOWING_OTHER_CONTENT));
|
|
9421
9416
|
}
|
|
9422
9417
|
let e = yield M(ur);
|
|
9423
9418
|
if (e && e[t]) n = e[t];
|
|
@@ -9456,13 +9451,13 @@ function qy(e, t) {
|
|
|
9456
9451
|
return !Nn(e) && t === T.STEP_COMPLETED;
|
|
9457
9452
|
}
|
|
9458
9453
|
function* Jy() {
|
|
9459
|
-
let e = JSON.parse(yield A(
|
|
9454
|
+
let e = JSON.parse(yield A(m_, g, Ae));
|
|
9460
9455
|
if (e) {
|
|
9461
9456
|
let t = e, n = yield M(Wn), r = n && n.id === e.flowId, i = Rn(n, e.stepId), a = window.location.href;
|
|
9462
9457
|
if (Pn(i)) {
|
|
9463
|
-
if (yield A(Wy, i)) return yield fu(
|
|
9458
|
+
if (yield A(Wy, i)) return yield fu(Uv, n, i.id, a, null), !0;
|
|
9464
9459
|
let t = e.remainingPagesToCheck;
|
|
9465
|
-
return t === 1 ? (yield k(zc()), yield A(
|
|
9460
|
+
return t === 1 ? (yield k(zc()), yield A(Yv, n, i), yield k(Yp(n.id, Ce.CLEAR)), !1) : (yield A(Kv, {
|
|
9466
9461
|
...e,
|
|
9467
9462
|
remainingPagesToCheck: t - 1
|
|
9468
9463
|
}), !0);
|
|
@@ -9487,22 +9482,22 @@ function* Jy() {
|
|
|
9487
9482
|
if (qy(s, c) && (n = Ln(o, zn(o, e.stepId) + 1), i = T.STEP_ATTEMPTED), Nn(n) || Pn(n)) {
|
|
9488
9483
|
if (i === T.STEP_COMPLETED && (n = Ln(o, zn(o, n.id) + 1), i = null), Pn(n)) {
|
|
9489
9484
|
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(
|
|
9485
|
+
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
9486
|
t = {
|
|
9492
9487
|
...t,
|
|
9493
9488
|
flowId: e,
|
|
9494
9489
|
stepId: n.id,
|
|
9495
9490
|
status: T.STEP_ATTEMPTED,
|
|
9496
9491
|
remainingPagesToCheck: a - 1
|
|
9497
|
-
}, yield A(
|
|
9492
|
+
}, yield A(Kv, t);
|
|
9498
9493
|
}
|
|
9499
|
-
r && (yield k(Xp(o.id, s.id)), yield A(
|
|
9494
|
+
r && (yield k(Xp(o.id, s.id)), yield A(Yv, o, s));
|
|
9500
9495
|
let { flowId: e, submissionId: c } = t;
|
|
9501
|
-
return yield A(
|
|
9496
|
+
return yield A(Kv, {
|
|
9502
9497
|
...t,
|
|
9503
9498
|
flowId: e,
|
|
9504
9499
|
submissionId: c
|
|
9505
|
-
}), yield fu(
|
|
9500
|
+
}), yield fu(Uv, o, n.id, a, i), !0;
|
|
9506
9501
|
}
|
|
9507
9502
|
}
|
|
9508
9503
|
}
|
|
@@ -9513,7 +9508,7 @@ var Yy = "@appcues/sequential";
|
|
|
9513
9508
|
function* Xy() {
|
|
9514
9509
|
let e;
|
|
9515
9510
|
try {
|
|
9516
|
-
e = JSON.parse(yield A(
|
|
9511
|
+
e = JSON.parse(yield A(m_, g, Se));
|
|
9517
9512
|
} catch {
|
|
9518
9513
|
return !1;
|
|
9519
9514
|
}
|
|
@@ -9522,13 +9517,13 @@ function* Xy() {
|
|
|
9522
9517
|
if (t && !r) {
|
|
9523
9518
|
if (e.lastCheckedUrl === n) return !0;
|
|
9524
9519
|
let t = (typeof e.remainingPagesToCheck == "number" ? e.remainingPagesToCheck : 2) - 1;
|
|
9525
|
-
return t <= 0 ? (yield A($, g, Se), !1) : (yield A(
|
|
9520
|
+
return t <= 0 ? (yield A($, g, Se), !1) : (yield A(p_, g, Se, JSON.stringify({
|
|
9526
9521
|
...e,
|
|
9527
9522
|
remainingPagesToCheck: t,
|
|
9528
9523
|
lastCheckedUrl: n
|
|
9529
9524
|
})), !0);
|
|
9530
9525
|
}
|
|
9531
|
-
let i = yield A(
|
|
9526
|
+
let i = yield A(ey);
|
|
9532
9527
|
if (!i) return yield A($, g, Se), !1;
|
|
9533
9528
|
let a = yield M(Jn), o;
|
|
9534
9529
|
try {
|
|
@@ -9555,8 +9550,8 @@ function* Zy() {
|
|
|
9555
9550
|
yield k(fl(window.location.href, !1));
|
|
9556
9551
|
let e = yield M(Wn);
|
|
9557
9552
|
if (e) {
|
|
9558
|
-
let t = JSON.parse(yield A(
|
|
9559
|
-
n && Wy(n) && (yield A(
|
|
9553
|
+
let t = JSON.parse(yield A(m_, g, Ae)), n = t ? Rn(e, t.stepId) : null;
|
|
9554
|
+
n && Wy(n) && (yield A(Kv, {
|
|
9560
9555
|
...t,
|
|
9561
9556
|
status: T.STEP_SHOWN
|
|
9562
9557
|
}));
|
|
@@ -9564,26 +9559,26 @@ function* Zy() {
|
|
|
9564
9559
|
let t = yield A(Jy), n = yield A(Xy), r = t || n;
|
|
9565
9560
|
if (!t) {
|
|
9566
9561
|
let e;
|
|
9567
|
-
if (yield A(
|
|
9568
|
-
if (e = yield A(
|
|
9569
|
-
let e = yield A(
|
|
9562
|
+
if (yield A(dv, window, "showappcue")) {
|
|
9563
|
+
if (e = yield A(dv, window, "showappcue"), window.history) {
|
|
9564
|
+
let e = yield A(fv, window.location.href, "showappcue");
|
|
9570
9565
|
yield A([window.history, window.history.replaceState], window.history.state, "", e);
|
|
9571
9566
|
}
|
|
9572
|
-
} else (yield A(
|
|
9567
|
+
} else (yield A(dv, window, "appcue")) && (e = yield A(dv, window, "appcue"));
|
|
9573
9568
|
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(
|
|
9569
|
+
if (yield A(Pv, "apc_next_content_id")) {
|
|
9570
|
+
let r = yield A(Fv, re);
|
|
9571
|
+
if (yield A(Nv, re), !e) {
|
|
9572
|
+
if (e = r, yield A(Pv, "apc_next_campaign_id")) {
|
|
9573
|
+
let e = yield A(Fv, ne);
|
|
9579
9574
|
t = e === "null" ? null : e;
|
|
9580
9575
|
}
|
|
9581
|
-
if (yield A(
|
|
9582
|
-
let e = yield A(
|
|
9576
|
+
if (yield A(Pv, "apc_next_tactic_id")) {
|
|
9577
|
+
let e = yield A(Fv, y);
|
|
9583
9578
|
n = e === "null" ? null : e;
|
|
9584
9579
|
}
|
|
9585
9580
|
}
|
|
9586
|
-
yield A(
|
|
9581
|
+
yield A(Nv, ne), yield A(Nv, y);
|
|
9587
9582
|
}
|
|
9588
9583
|
e && (yield k(Pc(e, {
|
|
9589
9584
|
...t !== void 0 && { campaignId: t },
|
|
@@ -9596,7 +9591,7 @@ function* Qy(e) {
|
|
|
9596
9591
|
let t = yield M(Wn), n = Rn(t, yield M(F)), r = Uy(e);
|
|
9597
9592
|
if (r && r.attributes.url && t !== null) {
|
|
9598
9593
|
let e = yield M(_r);
|
|
9599
|
-
|
|
9594
|
+
fv(r.attributes.url) !== fv(e) && (n && (yield* Yv(t, n)), yield k(Yp(t.id, Ce.CLEAR)));
|
|
9600
9595
|
}
|
|
9601
9596
|
}
|
|
9602
9597
|
function* $y({ properties: e, events: t, groupProperties: n, groupId: r }) {
|
|
@@ -9608,18 +9603,18 @@ function* $y({ properties: e, events: t, groupProperties: n, groupId: r }) {
|
|
|
9608
9603
|
...e
|
|
9609
9604
|
}, r != null && (a = {
|
|
9610
9605
|
...a,
|
|
9611
|
-
...
|
|
9606
|
+
..._y()
|
|
9612
9607
|
}), !tf((yield M(lr)).url, window.location.href)) {
|
|
9613
9608
|
(yield M(hr)) === w.WILL_CLOSE && (yield O(H.CLOSE_STEP)), yield k(zc());
|
|
9614
9609
|
let e = yield M(si);
|
|
9615
|
-
e && e.stopAll(), (yield A(Zy)) || (yield A(Qy, t)), (yield M($r)) && (yield At([A(
|
|
9610
|
+
e && e.stopAll(), (yield A(Zy)) || (yield A(Qy, t)), (yield M($r)) && (yield At([A(V_), A(H_)]));
|
|
9616
9611
|
}
|
|
9617
9612
|
}
|
|
9618
9613
|
return [i, a];
|
|
9619
9614
|
}
|
|
9620
9615
|
function* eb({ properties: e, events: t, trigger: n, groupId: r, groupProperties: i }) {
|
|
9621
9616
|
(yield A(Ny)) || (yield O(V.INITIALIZE), yield O(hc.SET_SESSION), yield O(V.CHECKED_FOR_INITIAL_CONTENT));
|
|
9622
|
-
let a = yield A(
|
|
9617
|
+
let a = yield A(m_, h, v), [o, s] = yield* $y({
|
|
9623
9618
|
properties: e,
|
|
9624
9619
|
events: t,
|
|
9625
9620
|
groupProperties: i,
|
|
@@ -9637,7 +9632,15 @@ function* eb({ properties: e, events: t, trigger: n, groupId: r, groupProperties
|
|
|
9637
9632
|
groupProperties: s
|
|
9638
9633
|
});
|
|
9639
9634
|
}
|
|
9640
|
-
function
|
|
9635
|
+
function tb() {
|
|
9636
|
+
return gn((e) => {
|
|
9637
|
+
let t = () => e("UNLOAD");
|
|
9638
|
+
return window.addEventListener("pagehide", t), () => {
|
|
9639
|
+
window.removeEventListener("pagehide", t);
|
|
9640
|
+
};
|
|
9641
|
+
});
|
|
9642
|
+
}
|
|
9643
|
+
function* nb() {
|
|
9641
9644
|
let e = yield A($t.expanding, 10), t = yield It([B.START_ACTIVITY, B.START_GROUP_ACTIVITY], e), n = yield M(Qn);
|
|
9642
9645
|
(!n || !n.userId) && (yield O(V.IDENTIFY));
|
|
9643
9646
|
let r = [];
|
|
@@ -9647,68 +9650,71 @@ function* tb() {
|
|
|
9647
9650
|
e.userId !== t?.userId && r.length > 0 && (yield Ft(...r), r = []);
|
|
9648
9651
|
}
|
|
9649
9652
|
});
|
|
9650
|
-
let i;
|
|
9653
|
+
let i = yield A(tb), a;
|
|
9651
9654
|
for (;;) {
|
|
9652
|
-
|
|
9653
|
-
|
|
9655
|
+
a = yield O(t), yield jt({
|
|
9656
|
+
timeout: A(Z, 50),
|
|
9657
|
+
unload: O(i)
|
|
9658
|
+
});
|
|
9659
|
+
let e = yield Rt(t), n = a.payload.properties || {}, o = a.payload.events || [], s = a.payload.trigger || !1, c = a.payload.groupId || null, l = a.payload.groupProperties || null;
|
|
9654
9660
|
e.forEach((e) => {
|
|
9655
9661
|
let { payload: t } = e;
|
|
9656
9662
|
n = {
|
|
9657
9663
|
...n,
|
|
9658
9664
|
...t.properties
|
|
9659
|
-
}, t.events && (
|
|
9660
|
-
...
|
|
9665
|
+
}, t.events && (o = [...o, ...t.events]), t.trigger && (s = !0), t.groupId != null && (c = t.groupId), t.groupProperties && (l = {
|
|
9666
|
+
...l,
|
|
9661
9667
|
...t.groupProperties
|
|
9662
9668
|
});
|
|
9663
9669
|
});
|
|
9664
|
-
let
|
|
9665
|
-
if (
|
|
9670
|
+
let u = !1, d = !1;
|
|
9671
|
+
if (o = o.filter((e) => Uy([e]) ? fv(e.attributes.url) !== fv(window.location.href) || u ? !1 : (u = !0, !0) : (d = s, !0)), s = u || d, Object.keys(n).length > 0 || o.length > 0 || Object.keys(l ?? {}).length > 0 || c != null) {
|
|
9666
9672
|
let e = yield j(eb, {
|
|
9667
9673
|
properties: n,
|
|
9668
|
-
events:
|
|
9669
|
-
trigger:
|
|
9670
|
-
groupId:
|
|
9671
|
-
groupProperties:
|
|
9672
|
-
}), t = yield j(Vy,
|
|
9674
|
+
events: o,
|
|
9675
|
+
trigger: s,
|
|
9676
|
+
groupId: c,
|
|
9677
|
+
groupProperties: l
|
|
9678
|
+
}), t = yield j(Vy, o);
|
|
9673
9679
|
r.push(e, t);
|
|
9674
9680
|
}
|
|
9675
9681
|
}
|
|
9676
9682
|
}
|
|
9677
|
-
function*
|
|
9683
|
+
function* rb() {
|
|
9678
9684
|
for (;;) {
|
|
9679
9685
|
let e = yield O([V.SENT_ACTIVITY_UPDATE, B.FINISHED_EVENT]);
|
|
9680
9686
|
switch (e.type) {
|
|
9681
9687
|
case V.SENT_ACTIVITY_UPDATE:
|
|
9682
|
-
yield A(
|
|
9688
|
+
yield A(A_);
|
|
9683
9689
|
break;
|
|
9684
9690
|
case B.FINISHED_EVENT: {
|
|
9685
9691
|
let t = e.payload?.event?.experienceId;
|
|
9686
|
-
t && (yield A(
|
|
9692
|
+
t && (yield A(k_, t));
|
|
9687
9693
|
break;
|
|
9688
9694
|
}
|
|
9689
9695
|
default: break;
|
|
9690
9696
|
}
|
|
9691
9697
|
}
|
|
9692
9698
|
}
|
|
9693
|
-
function*
|
|
9699
|
+
function* ib(e, t) {
|
|
9694
9700
|
let n = yield M(Zn, e);
|
|
9695
9701
|
if (n && n.length > 0) for (let r of n) {
|
|
9696
9702
|
let n = [t];
|
|
9697
9703
|
e === "all" && (n = [t.id, ...n]), yield A([r.context || window, r.callback], ...n);
|
|
9698
9704
|
}
|
|
9699
9705
|
}
|
|
9700
|
-
function*
|
|
9706
|
+
function* ab({ payload: e }) {
|
|
9701
9707
|
let { flowId: t, event: n } = e;
|
|
9702
|
-
yield Pt(yield fu(
|
|
9708
|
+
yield Pt(yield fu(ib, n.id, n), yield fu(ib, "all", n)), yield k(wc(t, n));
|
|
9703
9709
|
}
|
|
9704
|
-
function*
|
|
9710
|
+
function* ob({ payload: e }) {
|
|
9705
9711
|
let t = yield A(um, e.fields);
|
|
9706
9712
|
if (t.result || e.ignoreValidation) {
|
|
9707
9713
|
if (!e.fields.some((e) => e.value)) {
|
|
9708
9714
|
yield A(e.onSuccess);
|
|
9709
9715
|
return;
|
|
9710
9716
|
}
|
|
9711
|
-
let t = yield M(F), n = yield M(xr), { submissionId: r } = yield*
|
|
9717
|
+
let t = yield M(F), n = yield M(xr), { submissionId: r } = yield* Gv();
|
|
9712
9718
|
yield k(q(rm(T.STEP_INTERACTED, t, n, {
|
|
9713
9719
|
interactionType: "submit",
|
|
9714
9720
|
interaction: {
|
|
@@ -9736,7 +9742,7 @@ function* ab({ payload: e }) {
|
|
|
9736
9742
|
Object.keys(i).length > 0 && (yield k(Tc(i, [], !1)));
|
|
9737
9743
|
} else yield k(Rp(t.errors));
|
|
9738
9744
|
}
|
|
9739
|
-
function*
|
|
9745
|
+
function* sb({ payload: e }) {
|
|
9740
9746
|
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(Gy, t);
|
|
9741
9747
|
if (c) {
|
|
9742
9748
|
let e = n ? {
|
|
@@ -9744,9 +9750,9 @@ function* ob({ payload: e }) {
|
|
|
9744
9750
|
campaignId: r ?? null,
|
|
9745
9751
|
tacticId: i ?? null
|
|
9746
9752
|
} : c;
|
|
9747
|
-
|
|
9753
|
+
sy.has(c.type) && (yield A(cy)), yield k(r_([e]));
|
|
9748
9754
|
}
|
|
9749
|
-
if (o && (yield A(
|
|
9755
|
+
if (o && (yield A(Hv, n ? {
|
|
9750
9756
|
...o,
|
|
9751
9757
|
campaign_id: r ?? null,
|
|
9752
9758
|
tactic_id: i ?? null
|
|
@@ -9755,7 +9761,7 @@ function* ob({ payload: e }) {
|
|
|
9755
9761
|
yield A($, g, `${Te}${s.id}`), yield k(yc(e, { _showChecklist: s.id }));
|
|
9756
9762
|
}
|
|
9757
9763
|
}
|
|
9758
|
-
function*
|
|
9764
|
+
function* cb() {
|
|
9759
9765
|
let e = yield M(hr);
|
|
9760
9766
|
if (N.inArray([w.READY, w.WILL_SHOW], e)) {
|
|
9761
9767
|
if (e !== w.WILL_SHOW && (yield O(V.WILL_SHOW_CONTENT)).error) return;
|
|
@@ -9764,22 +9770,22 @@ function* sb() {
|
|
|
9764
9770
|
yield k(q(Q(T.STEP_REVEALED, t)));
|
|
9765
9771
|
}
|
|
9766
9772
|
}
|
|
9767
|
-
function*
|
|
9773
|
+
function* lb() {
|
|
9768
9774
|
let e = yield jt({
|
|
9769
9775
|
cancel: O(B.CANCEL_ATTEMPTS),
|
|
9770
|
-
result: A(
|
|
9776
|
+
result: A(cb)
|
|
9771
9777
|
}), t = yield M(hr);
|
|
9772
9778
|
if (e.cancel && t === w.WILL_SHOW) {
|
|
9773
9779
|
let e = yield M(Wn);
|
|
9774
9780
|
if (e && N.defined(e.id)) {
|
|
9775
9781
|
let t = Rn(e, yield M(F));
|
|
9776
|
-
t && (yield*
|
|
9782
|
+
t && (yield* Yv(e, t)), yield k(Yp(e.id, Ce.SHOWING_OTHER_CONTENT));
|
|
9777
9783
|
}
|
|
9778
9784
|
}
|
|
9779
9785
|
}
|
|
9780
|
-
function*
|
|
9786
|
+
function* ub() {
|
|
9781
9787
|
if (yield M(Un)) {
|
|
9782
|
-
(yield M(I)).type !== C.HOTSPOTS && (yield k(Zm()), yield k(
|
|
9788
|
+
(yield M(I)).type !== C.HOTSPOTS && (yield k(Zm()), yield k(o_()));
|
|
9783
9789
|
let e = yield M(vr), t = yield M(pr);
|
|
9784
9790
|
if (e && !t[e]) {
|
|
9785
9791
|
let t;
|
|
@@ -9793,13 +9799,13 @@ function* lb() {
|
|
|
9793
9799
|
yield k(Ac());
|
|
9794
9800
|
}
|
|
9795
9801
|
}
|
|
9796
|
-
function*
|
|
9802
|
+
function* db() {
|
|
9797
9803
|
let e = yield M(Qn), { _localId: t } = e;
|
|
9798
9804
|
t || (yield O(({ type: e, payload: t }) => e === V.UPDATE_USER && N.defined(t.profile._localId)), e = yield M(Qn));
|
|
9799
9805
|
let { _localId: n } = e;
|
|
9800
9806
|
yield k(yc(`anon:${n}`, { _isAnonymous: !0 }, [bu(ue.PAGE_VIEW, { url: window.location.href })]));
|
|
9801
9807
|
}
|
|
9802
|
-
function*
|
|
9808
|
+
function* fb({ payload: e }) {
|
|
9803
9809
|
let t = yield M($n), n = yield M(tr);
|
|
9804
9810
|
t || (yield O(V.COMPLETED_IDENTIFY));
|
|
9805
9811
|
let r = yield M(Qn), { _appcuesId: i } = r;
|
|
@@ -9809,31 +9815,31 @@ function* db({ payload: e }) {
|
|
|
9809
9815
|
} catch {}
|
|
9810
9816
|
yield A(e, r);
|
|
9811
9817
|
}
|
|
9812
|
-
function*
|
|
9818
|
+
function* pb({ payload: e }) {
|
|
9813
9819
|
let t = yield M(sr, e);
|
|
9814
9820
|
t && t.length > 0 && (yield k(sl(e)), yield t.map((e) => Ft(e)));
|
|
9815
9821
|
}
|
|
9816
|
-
function
|
|
9822
|
+
function mb(e) {
|
|
9817
9823
|
return e === null || e === w.ERROR;
|
|
9818
9824
|
}
|
|
9819
|
-
function
|
|
9825
|
+
function hb(e, t) {
|
|
9820
9826
|
return !!(e && t);
|
|
9821
9827
|
}
|
|
9822
|
-
function*
|
|
9828
|
+
function* gb() {
|
|
9823
9829
|
let e = yield M(Wn), t = Rn(e, yield M(F));
|
|
9824
|
-
yield k(zc()), yield A(
|
|
9830
|
+
yield k(zc()), yield A(Yv, e, t), yield k(Yp(e.id, Ce.CLEAR));
|
|
9825
9831
|
}
|
|
9826
|
-
function*
|
|
9832
|
+
function* _b(e) {
|
|
9827
9833
|
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) && (
|
|
9834
|
+
if (!(!i || i.length === 0) && (mb(a) || hb(a, n))) {
|
|
9829
9835
|
let e = !0, s = yield M(ur);
|
|
9830
9836
|
for (let c of i) {
|
|
9831
9837
|
let i = s[c];
|
|
9832
9838
|
if (o === i.id) return;
|
|
9833
9839
|
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(
|
|
9840
|
+
if (l && (yield k(bl(i.id, od.FLOWS))), a && n && (yield A(gb)), !l) {
|
|
9841
|
+
if (yield A(Hv, i, null, t, r)) {
|
|
9842
|
+
e && (yield A(Lg, r));
|
|
9837
9843
|
return;
|
|
9838
9844
|
}
|
|
9839
9845
|
e = !1;
|
|
@@ -9841,7 +9847,7 @@ function* gb(e) {
|
|
|
9841
9847
|
}
|
|
9842
9848
|
}
|
|
9843
9849
|
}
|
|
9844
|
-
function*
|
|
9850
|
+
function* vb(e, t, n, r) {
|
|
9845
9851
|
let i = yield M(Jn), a = e.getEntriesByType("resource").filter((e) => e.name.match(/fast\.appcues\./)).map((e) => e.toJSON());
|
|
9846
9852
|
yield A(lg, i, {
|
|
9847
9853
|
api_request_start: Math.round(n - t),
|
|
@@ -9850,7 +9856,7 @@ function* _b(e, t, n, r) {
|
|
|
9850
9856
|
sdk_version: window.AppcuesBundleSettings.VERSION
|
|
9851
9857
|
});
|
|
9852
9858
|
}
|
|
9853
|
-
function*
|
|
9859
|
+
function* yb() {
|
|
9854
9860
|
try {
|
|
9855
9861
|
yield O(hc.SET_SESSION);
|
|
9856
9862
|
let e = window.performance, t = (yield M(ar)).timestamp % 100 == 0;
|
|
@@ -9877,93 +9883,93 @@ function* vb() {
|
|
|
9877
9883
|
time_to_show: Math.round(e.now() - n),
|
|
9878
9884
|
content_type: l,
|
|
9879
9885
|
sdk_version: window.AppcuesBundleSettings.VERSION
|
|
9880
|
-
}), t || (yield*
|
|
9881
|
-
})), t && (yield*
|
|
9886
|
+
}), t || (yield* vb(e, n, i, o));
|
|
9887
|
+
})), t && (yield* vb(e, n, i, o));
|
|
9882
9888
|
}
|
|
9883
9889
|
} catch {}
|
|
9884
9890
|
}
|
|
9885
|
-
function*
|
|
9886
|
-
let e = JSON.parse(yield A(
|
|
9891
|
+
function* bb() {
|
|
9892
|
+
let e = JSON.parse(yield A(m_, g, he));
|
|
9887
9893
|
if (e) {
|
|
9888
9894
|
let { checklistId: t, itemId: n, actionIndex: r, checklist: i } = e;
|
|
9889
9895
|
yield A($, g, he), yield k(ch(t, n, r + 1, i));
|
|
9890
9896
|
}
|
|
9891
9897
|
return !1;
|
|
9892
9898
|
}
|
|
9893
|
-
function*
|
|
9899
|
+
function* xb() {
|
|
9894
9900
|
let e = yield O(B.START_INITIALIZE);
|
|
9895
9901
|
if (!(yield A(Ny))) {
|
|
9896
|
-
let t = yield A(
|
|
9902
|
+
let t = yield A(m_, h, de);
|
|
9897
9903
|
t !== null && (yield k(yc(t, {}, [bu(ue.PAGE_VIEW, { url: window.location.href })])));
|
|
9898
9904
|
let n = yield A(rg, e.payload.dispatchMessage.onMessage, e.payload.dispatchMessage.onTimeout, e.payload.transportModule);
|
|
9899
9905
|
yield A(Py, !0), yield k(Hc({
|
|
9900
9906
|
type: n.type,
|
|
9901
9907
|
module: e.payload.transportModule,
|
|
9902
9908
|
details: n.details
|
|
9903
|
-
})), yield A(Zy), yield A(
|
|
9909
|
+
})), yield A(Zy), yield A(bb);
|
|
9904
9910
|
}
|
|
9905
9911
|
}
|
|
9906
|
-
function*
|
|
9912
|
+
function* Sb({ payload: { groupId: e, groupProperties: t } }) {
|
|
9907
9913
|
let n = {
|
|
9908
9914
|
...t,
|
|
9909
|
-
...
|
|
9915
|
+
..._y()
|
|
9910
9916
|
};
|
|
9911
|
-
yield k(Ec(e, n)), yield A(
|
|
9917
|
+
yield k(Ec(e, n)), yield A(p_, h, v, e), yield k(xl({
|
|
9912
9918
|
groupId: e,
|
|
9913
9919
|
groupProps: n
|
|
9914
9920
|
}));
|
|
9915
9921
|
}
|
|
9916
|
-
function*
|
|
9922
|
+
function* Cb({ payload: e }) {
|
|
9917
9923
|
let t = yield M(ur);
|
|
9918
9924
|
if (Object.prototype.hasOwnProperty.call(t, e)) return;
|
|
9919
9925
|
let n = yield A(ug, yield M(Jn), e);
|
|
9920
9926
|
yield k(Jc([e], { [e]: n }));
|
|
9921
9927
|
}
|
|
9922
|
-
function*
|
|
9928
|
+
function* wb() {
|
|
9923
9929
|
yield [
|
|
9924
|
-
fu(
|
|
9930
|
+
fu(xb),
|
|
9925
9931
|
fu(zy),
|
|
9926
|
-
fu(
|
|
9927
|
-
j(Y, B.START_EVENT,
|
|
9928
|
-
j(tb),
|
|
9932
|
+
fu(yb),
|
|
9933
|
+
j(Y, B.START_EVENT, ab),
|
|
9929
9934
|
j(nb),
|
|
9930
|
-
j(
|
|
9931
|
-
j(Y, B.
|
|
9932
|
-
j(
|
|
9933
|
-
j(_u,
|
|
9934
|
-
j(
|
|
9935
|
+
j(rb),
|
|
9936
|
+
j(Y, B.START_ANONYMOUS, db),
|
|
9937
|
+
j(Y, B.START_FORM_SUBMISSION, ob),
|
|
9938
|
+
j(_u, B.START_SHOW, sb),
|
|
9939
|
+
j(_u, H.LOADED_CSS, lb),
|
|
9940
|
+
j(Y, B.PREPARE_CONTENT, ub),
|
|
9935
9941
|
j(Y, B.START_RESET, Fy),
|
|
9936
|
-
j(Y, V.WAIT_IDENTIFY,
|
|
9937
|
-
j(Y, B.STOP_TASKS,
|
|
9938
|
-
j(_u, B.START_CHECK,
|
|
9939
|
-
j(Y, H.SET_NEXT_CONTENT_ID_COOKIE,
|
|
9940
|
-
j(Y, B.START_IDENTIFY_GROUP,
|
|
9941
|
-
j(Y, V.PREFETCH_FLOWS,
|
|
9942
|
+
j(Y, V.WAIT_IDENTIFY, fb),
|
|
9943
|
+
j(Y, B.STOP_TASKS, pb),
|
|
9944
|
+
j(_u, B.START_CHECK, _b),
|
|
9945
|
+
j(Y, H.SET_NEXT_CONTENT_ID_COOKIE, Sy),
|
|
9946
|
+
j(Y, B.START_IDENTIFY_GROUP, Sb),
|
|
9947
|
+
j(Y, V.PREFETCH_FLOWS, Cb)
|
|
9942
9948
|
];
|
|
9943
9949
|
}
|
|
9944
9950
|
//#endregion
|
|
9945
9951
|
//#region src/scripts/custom-events/listeners/get-matching-events.js
|
|
9946
|
-
function
|
|
9952
|
+
function Tb(e, t) {
|
|
9947
9953
|
return e.innerText == null ? !1 : t ? e.innerText.replace(/\r\n|\r|\n/g, " ").toLowerCase().trim() === t.toLowerCase().trim() : !0;
|
|
9948
9954
|
}
|
|
9949
|
-
function
|
|
9955
|
+
function Eb(e, t) {
|
|
9950
9956
|
return Object.prototype.hasOwnProperty.call(t, "order_filter") ? e === Ao(t) : !0;
|
|
9951
9957
|
}
|
|
9952
|
-
function
|
|
9958
|
+
function Db(e, t) {
|
|
9953
9959
|
try {
|
|
9954
9960
|
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
9961
|
} catch {
|
|
9956
9962
|
return null;
|
|
9957
9963
|
}
|
|
9958
9964
|
}
|
|
9959
|
-
function
|
|
9965
|
+
function Ob({ events: e, $element: t, eventType: n }) {
|
|
9960
9966
|
return e.map((e) => {
|
|
9961
9967
|
let { targets: r } = e;
|
|
9962
9968
|
for (let i of r) {
|
|
9963
9969
|
let { event: r, selector: a } = i;
|
|
9964
9970
|
if (r === n) {
|
|
9965
|
-
let { selector: n, text_filter: r } = a, o =
|
|
9966
|
-
if (o &&
|
|
9971
|
+
let { selector: n, text_filter: r } = a, o = Db(n, t);
|
|
9972
|
+
if (o && Tb(o, r) && Eb(o, a)) return [
|
|
9967
9973
|
e,
|
|
9968
9974
|
o,
|
|
9969
9975
|
i
|
|
@@ -9973,11 +9979,11 @@ function Db({ events: e, $element: t, eventType: n }) {
|
|
|
9973
9979
|
return null;
|
|
9974
9980
|
}).filter((e) => e);
|
|
9975
9981
|
}
|
|
9976
|
-
function
|
|
9982
|
+
function kb({ events: e, matchSelector: t }) {
|
|
9977
9983
|
try {
|
|
9978
9984
|
return e.flatMap((e) => e.targets).filter(({ selector: e }) => t(e.selector)).flatMap(({ selector: e }) => {
|
|
9979
9985
|
let { selector: t, text_filter: n } = e;
|
|
9980
|
-
return ro(t).filter((t) =>
|
|
9986
|
+
return ro(t).filter((t) => Tb(t, n) && Eb(t, e));
|
|
9981
9987
|
});
|
|
9982
9988
|
} catch {
|
|
9983
9989
|
return [];
|
|
@@ -9985,14 +9991,14 @@ function Ob({ events: e, matchSelector: t }) {
|
|
|
9985
9991
|
}
|
|
9986
9992
|
//#endregion
|
|
9987
9993
|
//#region src/scripts/custom-events/listeners/get-composed-path.js
|
|
9988
|
-
function
|
|
9994
|
+
function Ab(e) {
|
|
9989
9995
|
return e.composedPath ? e.composedPath() : [e.target];
|
|
9990
9996
|
}
|
|
9991
9997
|
//#endregion
|
|
9992
9998
|
//#region src/scripts/custom-events/listeners/click.js
|
|
9993
|
-
function
|
|
9999
|
+
function jb({ events: e, onEventsTriggered: t, stopPropagation: n }) {
|
|
9994
10000
|
let r = e.filter(({ targets: e }) => e.some(({ event: e }) => e === "click")), i = (e) => {
|
|
9995
|
-
let [i] =
|
|
10001
|
+
let [i] = Ab(e), a = Ob({
|
|
9996
10002
|
events: r,
|
|
9997
10003
|
$element: i,
|
|
9998
10004
|
eventType: "click"
|
|
@@ -10005,7 +10011,7 @@ function Ab({ events: e, onEventsTriggered: t, stopPropagation: n }) {
|
|
|
10005
10011
|
(e.key === " " || e.key === "Enter") && i(e);
|
|
10006
10012
|
};
|
|
10007
10013
|
try {
|
|
10008
|
-
let e =
|
|
10014
|
+
let e = kb({
|
|
10009
10015
|
events: r,
|
|
10010
10016
|
matchSelector: (e) => e.includes("|iframe|")
|
|
10011
10017
|
});
|
|
@@ -10022,14 +10028,14 @@ function Ab({ events: e, onEventsTriggered: t, stopPropagation: n }) {
|
|
|
10022
10028
|
}
|
|
10023
10029
|
//#endregion
|
|
10024
10030
|
//#region src/scripts/custom-events/listeners/input.js
|
|
10025
|
-
var
|
|
10026
|
-
function
|
|
10031
|
+
var Mb = (e, t) => e.includes(t);
|
|
10032
|
+
function Nb({ events: e, onEventsTriggered: t }) {
|
|
10027
10033
|
let n = e.filter(({ targets: e }) => e.some(({ event: e }) => e === "input")), r = [], i = (e) => {
|
|
10028
|
-
let [i] =
|
|
10034
|
+
let [i] = Ab(e), a = Ob({
|
|
10029
10035
|
events: n,
|
|
10030
10036
|
$element: i,
|
|
10031
10037
|
eventType: "input"
|
|
10032
|
-
}).filter(([e]) => !
|
|
10038
|
+
}).filter(([e]) => !Mb(r, e));
|
|
10033
10039
|
r = [...r, ...a.map(([e]) => e)], t(a.map(([e, , t]) => ({
|
|
10034
10040
|
...e,
|
|
10035
10041
|
matchedTarget: t
|
|
@@ -10038,7 +10044,7 @@ function Mb({ events: e, onEventsTriggered: t }) {
|
|
|
10038
10044
|
r = [];
|
|
10039
10045
|
};
|
|
10040
10046
|
try {
|
|
10041
|
-
let e =
|
|
10047
|
+
let e = kb({
|
|
10042
10048
|
events: n,
|
|
10043
10049
|
matchSelector: (e) => e.includes("|iframe|")
|
|
10044
10050
|
});
|
|
@@ -10055,13 +10061,13 @@ function Mb({ events: e, onEventsTriggered: t }) {
|
|
|
10055
10061
|
}
|
|
10056
10062
|
//#endregion
|
|
10057
10063
|
//#region src/scripts/custom-events/listeners/hover.js
|
|
10058
|
-
function
|
|
10064
|
+
function Pb(e, t) {
|
|
10059
10065
|
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
10066
|
for (; (n = r.nextNode()) !== null;) t(n.shadowRoot);
|
|
10061
10067
|
}
|
|
10062
|
-
function
|
|
10068
|
+
function Fb({ events: e, onEventsTriggered: t }) {
|
|
10063
10069
|
let n = e.filter(({ targets: e }) => e.some(({ event: e }) => e === "hover")), r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
10064
|
-
let [i] =
|
|
10070
|
+
let [i] = Ab(e), a = Ob({
|
|
10065
10071
|
events: n,
|
|
10066
10072
|
$element: i,
|
|
10067
10073
|
eventType: "hover"
|
|
@@ -10078,7 +10084,7 @@ function Pb({ events: e, onEventsTriggered: t }) {
|
|
|
10078
10084
|
let i = window.setTimeout(() => {
|
|
10079
10085
|
t(e);
|
|
10080
10086
|
}, 500), a = (e) => {
|
|
10081
|
-
let [t] =
|
|
10087
|
+
let [t] = Ab(e);
|
|
10082
10088
|
t === n && (window.clearTimeout(i), r.delete(n), n.removeEventListener("mouseleave", a));
|
|
10083
10089
|
};
|
|
10084
10090
|
n.addEventListener("mouseleave", a);
|
|
@@ -10086,16 +10092,16 @@ function Pb({ events: e, onEventsTriggered: t }) {
|
|
|
10086
10092
|
};
|
|
10087
10093
|
if (n.length > 0) try {
|
|
10088
10094
|
document.addEventListener("mouseover", i);
|
|
10089
|
-
let e =
|
|
10095
|
+
let e = kb({
|
|
10090
10096
|
events: n,
|
|
10091
10097
|
matchSelector: (e) => e.includes("|iframe|")
|
|
10092
10098
|
});
|
|
10093
10099
|
return e.forEach((e) => {
|
|
10094
10100
|
e.addEventListener("mouseover", i);
|
|
10095
|
-
}),
|
|
10101
|
+
}), Pb(document.body, (e) => e.addEventListener("mouseover", i)), () => {
|
|
10096
10102
|
document.removeEventListener("mouseover", i), e.forEach((e) => {
|
|
10097
10103
|
e.removeEventListener("mouseover", i);
|
|
10098
|
-
}),
|
|
10104
|
+
}), Pb(document.body, (e) => e.removeEventListener("mouseover", i));
|
|
10099
10105
|
};
|
|
10100
10106
|
} catch {
|
|
10101
10107
|
return null;
|
|
@@ -10104,10 +10110,10 @@ function Pb({ events: e, onEventsTriggered: t }) {
|
|
|
10104
10110
|
}
|
|
10105
10111
|
//#endregion
|
|
10106
10112
|
//#region src/scripts/custom-events/transform-custom-event.js
|
|
10107
|
-
var
|
|
10108
|
-
function
|
|
10113
|
+
var Ib = "appcues/click-to-track";
|
|
10114
|
+
function Lb({ name: e, timestamp: t, attributes: { url: n, interaction: r, selector: i } }) {
|
|
10109
10115
|
return {
|
|
10110
|
-
source:
|
|
10116
|
+
source: Ib,
|
|
10111
10117
|
id: e,
|
|
10112
10118
|
name: e,
|
|
10113
10119
|
timestamp: t,
|
|
@@ -10121,17 +10127,17 @@ function Ib({ name: e, timestamp: t, attributes: { url: n, interaction: r, selec
|
|
|
10121
10127
|
}
|
|
10122
10128
|
//#endregion
|
|
10123
10129
|
//#region src/scripts/custom-events/saga.js
|
|
10124
|
-
var
|
|
10125
|
-
function*
|
|
10130
|
+
var Rb = (e, t) => Object.prototype.hasOwnProperty.call(e, t);
|
|
10131
|
+
function* zb(e = [], t = !1) {
|
|
10126
10132
|
let n = nf(), r = e.filter(({ urls: e }) => e.some((e) => e === "*" || tf(e, n))), i = gn((e) => {
|
|
10127
|
-
let n =
|
|
10133
|
+
let n = jb({
|
|
10128
10134
|
events: r,
|
|
10129
10135
|
onEventsTriggered: e,
|
|
10130
10136
|
stopPropagation: t
|
|
10131
|
-
}), i =
|
|
10137
|
+
}), i = Nb({
|
|
10132
10138
|
events: r,
|
|
10133
10139
|
onEventsTriggered: e
|
|
10134
|
-
}), a =
|
|
10140
|
+
}), a = Fb({
|
|
10135
10141
|
events: r,
|
|
10136
10142
|
onEventsTriggered: e
|
|
10137
10143
|
});
|
|
@@ -10142,15 +10148,15 @@ function* Rb(e = [], t = !1) {
|
|
|
10142
10148
|
try {
|
|
10143
10149
|
for (;;) {
|
|
10144
10150
|
let e = yield O(i);
|
|
10145
|
-
e.length > 0 && (yield k(
|
|
10151
|
+
e.length > 0 && (yield k(L_(e.map(({ name: e, targets: t, matchedTarget: r }) => {
|
|
10146
10152
|
let { event: i, selector: a } = r ?? t[0];
|
|
10147
10153
|
return bu(e, {
|
|
10148
10154
|
url: n,
|
|
10149
10155
|
interaction: i,
|
|
10150
10156
|
selector: {
|
|
10151
10157
|
css: a.selector,
|
|
10152
|
-
...
|
|
10153
|
-
...
|
|
10158
|
+
...Rb(a, "text_filter") ? { textFilter: a.text_filter } : {},
|
|
10159
|
+
...Rb(a, "order_filter") ? { orderFilter: a.order_filter } : {}
|
|
10154
10160
|
}
|
|
10155
10161
|
});
|
|
10156
10162
|
}))));
|
|
@@ -10159,26 +10165,26 @@ function* Rb(e = [], t = !1) {
|
|
|
10159
10165
|
(yield Lt()) && i.close();
|
|
10160
10166
|
}
|
|
10161
10167
|
}
|
|
10162
|
-
function*
|
|
10168
|
+
function* Bb(e = []) {
|
|
10163
10169
|
let [t, n] = yield [j(function* () {
|
|
10164
10170
|
try {
|
|
10165
10171
|
if (!e || e.length === 0) return;
|
|
10166
10172
|
for (;;) {
|
|
10167
|
-
let t = yield j(
|
|
10173
|
+
let t = yield j(zb, e);
|
|
10168
10174
|
yield O(({ type: e, payload: t }) => e === B.START_ACTIVITY && t.events.some((e) => e.name === ue.PAGE_VIEW)), yield Ft(t);
|
|
10169
10175
|
}
|
|
10170
10176
|
} catch (e) {
|
|
10171
10177
|
console.log("Appcues: caught error listening for custom events", e);
|
|
10172
10178
|
}
|
|
10173
|
-
}), j(yn,
|
|
10179
|
+
}), j(yn, I_, function* ({ payload: e }) {
|
|
10174
10180
|
try {
|
|
10175
10181
|
(yield A(Ny)) || (yield O(V.INITIALIZE)), yield A(Hy, {
|
|
10176
10182
|
properties: {},
|
|
10177
10183
|
events: e,
|
|
10178
10184
|
trigger: !0,
|
|
10179
|
-
groupId: (yield A(
|
|
10185
|
+
groupId: (yield A(m_, "localStorage", "apc_group_id")) ?? null
|
|
10180
10186
|
}), (yield M(nr)) && (yield e.map((e) => {
|
|
10181
|
-
let t =
|
|
10187
|
+
let t = Lb({
|
|
10182
10188
|
...e,
|
|
10183
10189
|
name: e.name.replace("appcues_custom:", "")
|
|
10184
10190
|
});
|
|
@@ -10192,26 +10198,26 @@ function* zb(e = []) {
|
|
|
10192
10198
|
}
|
|
10193
10199
|
//#endregion
|
|
10194
10200
|
//#region src/scripts/integrations/integration-helpers.js
|
|
10195
|
-
function
|
|
10201
|
+
function Vb({ attributes: e }) {
|
|
10196
10202
|
return e ? !!e._builderButtonEvent : !1;
|
|
10197
10203
|
}
|
|
10198
|
-
function
|
|
10199
|
-
let t =
|
|
10204
|
+
function Hb(e) {
|
|
10205
|
+
let t = Vb(e), n = te.some((t) => e?.id?.startsWith(t)), r = e?.source === Ib;
|
|
10200
10206
|
return !t && !n && !r;
|
|
10201
10207
|
}
|
|
10202
|
-
function
|
|
10208
|
+
function Ub(e) {
|
|
10203
10209
|
return `${e.name} (Appcues)`;
|
|
10204
10210
|
}
|
|
10205
|
-
function
|
|
10211
|
+
function Wb(e, t) {
|
|
10206
10212
|
return {
|
|
10207
10213
|
...e,
|
|
10208
10214
|
user: t
|
|
10209
10215
|
};
|
|
10210
10216
|
}
|
|
10211
|
-
function
|
|
10217
|
+
function Gb(e, t, n, r, i) {
|
|
10212
10218
|
e(t, "event", n, r, i, { nonInteraction: !0 });
|
|
10213
10219
|
}
|
|
10214
|
-
function
|
|
10220
|
+
function Kb(e, t = {}) {
|
|
10215
10221
|
switch (e) {
|
|
10216
10222
|
case "Form Field Submitted (Appcues)": {
|
|
10217
10223
|
let { user: e, interaction: n, interaction: { category: r, destination: i, formId: a, fieldId: o, label: s, value: c } = {}, ...l } = t;
|
|
@@ -10228,7 +10234,7 @@ function Gb(e, t = {}) {
|
|
|
10228
10234
|
default: return t;
|
|
10229
10235
|
}
|
|
10230
10236
|
}
|
|
10231
|
-
function
|
|
10237
|
+
function qb(e) {
|
|
10232
10238
|
if (!e.user) return e;
|
|
10233
10239
|
let t = Object.entries(e.user).reduce((e, [t, n]) => {
|
|
10234
10240
|
if (t.startsWith("_")) {
|
|
@@ -10242,7 +10248,7 @@ function Kb(e) {
|
|
|
10242
10248
|
user: t
|
|
10243
10249
|
};
|
|
10244
10250
|
}
|
|
10245
|
-
var
|
|
10251
|
+
var Jb = (e) => {
|
|
10246
10252
|
let t = new Set([
|
|
10247
10253
|
"string",
|
|
10248
10254
|
"boolean",
|
|
@@ -10250,10 +10256,10 @@ var qb = (e) => {
|
|
|
10250
10256
|
]);
|
|
10251
10257
|
return Array.isArray(e) ? e.every((e) => t.has(typeof e)) : t.has(typeof e);
|
|
10252
10258
|
};
|
|
10253
|
-
function
|
|
10254
|
-
let { user: t, ...n } = e, r = Object.entries(n).reduce((e, [t, n]) => (
|
|
10259
|
+
function Yb(e) {
|
|
10260
|
+
let { user: t, ...n } = e, r = Object.entries(n).reduce((e, [t, n]) => (Jb(n) && (e[t] = n), e), {});
|
|
10255
10261
|
if (!t) return r;
|
|
10256
|
-
let i = Object.entries(t).reduce((e, [t, n]) => (
|
|
10262
|
+
let i = Object.entries(t).reduce((e, [t, n]) => (Jb(n) && (e[`user.${t}`] = n), e), {});
|
|
10257
10263
|
return {
|
|
10258
10264
|
...r,
|
|
10259
10265
|
...i
|
|
@@ -10261,13 +10267,13 @@ function Jb(e) {
|
|
|
10261
10267
|
}
|
|
10262
10268
|
//#endregion
|
|
10263
10269
|
//#region src/scripts/integrations/integration-methods.js
|
|
10264
|
-
function
|
|
10270
|
+
function Xb(e, t) {
|
|
10265
10271
|
let { settings: n } = t(), r = (n) => () => {
|
|
10266
10272
|
e.on("all", (e, r) => {
|
|
10267
|
-
if (
|
|
10268
|
-
let i =
|
|
10273
|
+
if (Hb(r)) return;
|
|
10274
|
+
let i = Ub(r), a = Vb(r) ? r.name : e;
|
|
10269
10275
|
try {
|
|
10270
|
-
a && i && n(a, i,
|
|
10276
|
+
a && i && n(a, i, Wb(r, t().user));
|
|
10271
10277
|
} catch {}
|
|
10272
10278
|
});
|
|
10273
10279
|
};
|
|
@@ -10276,7 +10282,7 @@ function Yb(e, t) {
|
|
|
10276
10282
|
window.mixpanel.track(t, n);
|
|
10277
10283
|
}),
|
|
10278
10284
|
initHeap: r((e, n, r) => {
|
|
10279
|
-
let i =
|
|
10285
|
+
let i = Kb(n, r);
|
|
10280
10286
|
window.heap.addUserProperties({ appcuesUserID: Qn(t()).userId }), window.heap.track(n, i, "appcues");
|
|
10281
10287
|
}),
|
|
10282
10288
|
initIntercom: r((e, t, n) => {
|
|
@@ -10329,15 +10335,15 @@ function Yb(e, t) {
|
|
|
10329
10335
|
if (s) {
|
|
10330
10336
|
let n = window[window.GoogleAnalyticsObject];
|
|
10331
10337
|
N.function(n) ? n((t) => {
|
|
10332
|
-
if (l)
|
|
10333
|
-
else if (t)
|
|
10338
|
+
if (l) Gb(n, `${l}.send`, c, e, s);
|
|
10339
|
+
else if (t) Gb(n, "send", c, e, s);
|
|
10334
10340
|
else {
|
|
10335
10341
|
let t = n.getAll().reduce((e, t) => ({
|
|
10336
10342
|
...e,
|
|
10337
10343
|
[t.get("trackingId")]: t.get("name")
|
|
10338
10344
|
}), {});
|
|
10339
10345
|
Object.keys(t).forEach((r) => {
|
|
10340
|
-
|
|
10346
|
+
Gb(n, `${t[r]}.send`, c, e, s);
|
|
10341
10347
|
});
|
|
10342
10348
|
}
|
|
10343
10349
|
}) : window._gaq ? window._gaq.push([
|
|
@@ -10376,28 +10382,28 @@ function Yb(e, t) {
|
|
|
10376
10382
|
window.braze.logCustomEvent(t, n);
|
|
10377
10383
|
}),
|
|
10378
10384
|
initFullStory: r((e, t, n) => {
|
|
10379
|
-
let r =
|
|
10385
|
+
let r = qb(n);
|
|
10380
10386
|
window.FS.event(t, r);
|
|
10381
10387
|
}),
|
|
10382
10388
|
initHotjar: r((e, t) => {
|
|
10383
10389
|
window.hj("event", t);
|
|
10384
10390
|
}),
|
|
10385
10391
|
initLogRocket: r((e, t, n) => {
|
|
10386
|
-
let r =
|
|
10392
|
+
let r = Yb(n);
|
|
10387
10393
|
window.LogRocket.track(t, r);
|
|
10388
10394
|
})
|
|
10389
10395
|
};
|
|
10390
10396
|
}
|
|
10391
10397
|
//#endregion
|
|
10392
10398
|
//#region src/scripts/bind-interface.js
|
|
10393
|
-
function
|
|
10399
|
+
function Zb(e, t) {
|
|
10394
10400
|
let n = {
|
|
10395
10401
|
...t,
|
|
10396
10402
|
url: e
|
|
10397
10403
|
};
|
|
10398
10404
|
return bu(ue.PAGE_VIEW, n);
|
|
10399
10405
|
}
|
|
10400
|
-
function
|
|
10406
|
+
function Qb({ dispatch: e, getState: t }) {
|
|
10401
10407
|
let n = {
|
|
10402
10408
|
identify(n, r = {}) {
|
|
10403
10409
|
let i = n, a = r;
|
|
@@ -10407,7 +10413,7 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10407
10413
|
Xn(t())(/* @__PURE__ */ Error("Appcues.identify() called with invalid user properties"));
|
|
10408
10414
|
} catch {}
|
|
10409
10415
|
}
|
|
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, [
|
|
10416
|
+
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, [Zb(window.location.href)])) : e(Kc(a, !0));
|
|
10411
10417
|
},
|
|
10412
10418
|
track(t, n = {}) {
|
|
10413
10419
|
t && e(Tc({}, [bu(t, n)], !0));
|
|
@@ -10417,7 +10423,7 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10417
10423
|
N.object(t) ? r = t : N.string(t) && (r = {
|
|
10418
10424
|
...r,
|
|
10419
10425
|
name: t
|
|
10420
|
-
}), e(Tc({}, [
|
|
10426
|
+
}), e(Tc({}, [Zb(window.location.href, r)], !0));
|
|
10421
10427
|
},
|
|
10422
10428
|
anonymous() {
|
|
10423
10429
|
e(Dc());
|
|
@@ -10444,7 +10450,7 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10444
10450
|
e(jc());
|
|
10445
10451
|
},
|
|
10446
10452
|
debug(t = !0) {
|
|
10447
|
-
e(t ? Mc() :
|
|
10453
|
+
e(t ? Mc() : e_());
|
|
10448
10454
|
},
|
|
10449
10455
|
loadLaunchpad(t, n) {
|
|
10450
10456
|
e(_h({
|
|
@@ -10453,7 +10459,7 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10453
10459
|
}));
|
|
10454
10460
|
},
|
|
10455
10461
|
loadOpenBuilder() {
|
|
10456
|
-
return
|
|
10462
|
+
return P_();
|
|
10457
10463
|
},
|
|
10458
10464
|
group(n, r) {
|
|
10459
10465
|
let i = n, a = r;
|
|
@@ -10492,22 +10498,22 @@ function Zb({ dispatch: e, getState: t }) {
|
|
|
10492
10498
|
}
|
|
10493
10499
|
};
|
|
10494
10500
|
}
|
|
10495
|
-
}),
|
|
10496
|
-
let r =
|
|
10501
|
+
}), s_(n), c_(n, t), d_(n);
|
|
10502
|
+
let r = Xb(n, t);
|
|
10497
10503
|
return Object.assign(n, r), Object.assign(n, {
|
|
10498
10504
|
start() {
|
|
10499
10505
|
n.page();
|
|
10500
10506
|
},
|
|
10501
10507
|
experience: {
|
|
10502
|
-
pause: (t) => e(
|
|
10503
|
-
resume: (t) => e(
|
|
10504
|
-
show: (t) => e(
|
|
10508
|
+
pause: (t) => e(t_(t)),
|
|
10509
|
+
resume: (t) => e(n_(t)),
|
|
10510
|
+
show: (t) => e(r_([t]))
|
|
10505
10511
|
}
|
|
10506
10512
|
}), n;
|
|
10507
10513
|
}
|
|
10508
10514
|
//#endregion
|
|
10509
10515
|
//#region src/scripts/snippets/load-snippets.js
|
|
10510
|
-
function
|
|
10516
|
+
function $b(e, t) {
|
|
10511
10517
|
if (!t || !t.integrity) return;
|
|
10512
10518
|
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
10519
|
a.src = `${i}/v1/accounts/${e}/snippets.js?v=${n}`, a.integrity = r, a.crossOrigin = "anonymous", a.async = !0, a.addEventListener("error", () => {
|
|
@@ -10519,7 +10525,7 @@ function Qb(e, t) {
|
|
|
10519
10525
|
}
|
|
10520
10526
|
//#endregion
|
|
10521
10527
|
//#region src/scripts/views/components/debugger.jsx
|
|
10522
|
-
var
|
|
10528
|
+
var ex = "https://studio.appcues.com", tx = (e) => {
|
|
10523
10529
|
switch (e.type) {
|
|
10524
10530
|
case C.MODAL: switch (e.attributes.pattern_type) {
|
|
10525
10531
|
case "shorty": return "Slideout Group";
|
|
@@ -10532,17 +10538,17 @@ var $b = "https://studio.appcues.com", ex = (e) => {
|
|
|
10532
10538
|
default: return null;
|
|
10533
10539
|
}
|
|
10534
10540
|
};
|
|
10535
|
-
function
|
|
10541
|
+
function nx(e) {
|
|
10536
10542
|
return !!(e && e.attributes && e.attributes.params && e.attributes.params.url);
|
|
10537
10543
|
}
|
|
10538
|
-
function
|
|
10544
|
+
function rx(e) {
|
|
10539
10545
|
return !!(e && e.type === C.ACTION && e.attributes.action_type === pe.WAIT_FOR_PAGE);
|
|
10540
10546
|
}
|
|
10541
|
-
var
|
|
10547
|
+
var ix = (e, t, n) => {
|
|
10542
10548
|
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} (${
|
|
10549
|
+
return /* @__PURE__ */ (0, L.html)("div", null, /* @__PURE__ */ (0, L.html)("div", null, `${(e || {}).name}, Step ${zn(e, t) + 1} (${tx(r || {})})${i > -1 ? `, Part ${i + 1}` : ""}`), rx(r) && nx(r) ? /* @__PURE__ */ (0, L.html)("div", null, `Page to match: ${r.attributes.params.url}`) : "");
|
|
10544
10550
|
};
|
|
10545
|
-
function
|
|
10551
|
+
function ax(e) {
|
|
10546
10552
|
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
10553
|
let n = i[t];
|
|
10548
10554
|
return n.errorReported && !n.recoveryReported ? [...e, {
|
|
@@ -10554,7 +10560,7 @@ function ix(e) {
|
|
|
10554
10560
|
"class-header": !0,
|
|
10555
10561
|
"on-click": d
|
|
10556
10562
|
}, /* @__PURE__ */ (0, L.html)("div", { "class-logo": !0 }, /* @__PURE__ */ (0, L.html)("a", {
|
|
10557
|
-
"attrs-href":
|
|
10563
|
+
"attrs-href": ex,
|
|
10558
10564
|
"attrs-target": "_blank"
|
|
10559
10565
|
}, /* @__PURE__ */ (0, L.html)(Nd, {
|
|
10560
10566
|
width: "20px",
|
|
@@ -10563,35 +10569,35 @@ function ix(e) {
|
|
|
10563
10569
|
"on-click": f,
|
|
10564
10570
|
role: "button",
|
|
10565
10571
|
"aria-label": "Close debugger"
|
|
10566
|
-
}, "×"))), /* @__PURE__ */ (0, L.html)("div", { "class-panel": !0 }, /* @__PURE__ */ (0, L.html)(
|
|
10572
|
+
}, "×"))), /* @__PURE__ */ (0, L.html)("div", { "class-panel": !0 }, /* @__PURE__ */ (0, L.html)(ox, {
|
|
10567
10573
|
status: s && s.accountId ? "check" : "alert",
|
|
10568
10574
|
category: "Installed",
|
|
10569
10575
|
description: `Account ID: ${s && s.accountId ? s.accountId : "Unknown"}`
|
|
10570
|
-
}), /* @__PURE__ */ (0, L.html)(
|
|
10576
|
+
}), /* @__PURE__ */ (0, L.html)(ox, {
|
|
10571
10577
|
status: c ? "check" : "alert",
|
|
10572
10578
|
category: `${c ? "" : "Not "}Connected to Appcues`
|
|
10573
|
-
}), /* @__PURE__ */ (0, L.html)(
|
|
10579
|
+
}), /* @__PURE__ */ (0, L.html)(ox, {
|
|
10574
10580
|
status: p ? m ? "check" : "alert" : "pending",
|
|
10575
10581
|
category: "Tracking Pages",
|
|
10576
10582
|
description: p ? m ? "Current URL matches last tracked" : "URL has changed since last tracked" : "Navigate to another page to test",
|
|
10577
10583
|
showDetails: (l || {})["track-data"],
|
|
10578
10584
|
onToggleRowDetails: () => u("track-data"),
|
|
10579
10585
|
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)(
|
|
10586
|
+
}), /* @__PURE__ */ (0, L.html)(ox, {
|
|
10581
10587
|
status: h ? "check" : "alert",
|
|
10582
10588
|
category: `User ${h ? "" : "Not "}Identified`,
|
|
10583
10589
|
description: h ? a._isAnonymous ? "Anonymous User" : `User ID: ${a.userId}` : "Have you called `identify`?",
|
|
10584
10590
|
showDetails: (l || {})["user-data"],
|
|
10585
10591
|
onToggleRowDetails: () => u("user-data"),
|
|
10586
|
-
details: h ? /* @__PURE__ */ (0, L.html)(
|
|
10587
|
-
}), g ? /* @__PURE__ */ (0, L.html)(
|
|
10592
|
+
details: h ? /* @__PURE__ */ (0, L.html)(sx, { user: a }) : /* @__PURE__ */ (0, L.html)("span", null, "Please identify the current user by providing a userId and tracked properties")
|
|
10593
|
+
}), g ? /* @__PURE__ */ (0, L.html)(ox, {
|
|
10588
10594
|
status: "check",
|
|
10589
10595
|
category: "Group Identified",
|
|
10590
10596
|
description: `Group ID: ${o.groupId}`,
|
|
10591
10597
|
showDetails: (l || {})["group-data"],
|
|
10592
10598
|
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)(
|
|
10599
|
+
details: /* @__PURE__ */ (0, L.html)(sx, { user: o.groupProps })
|
|
10600
|
+
}) : /* @__PURE__ */ (0, L.html)(z, null), r.length > 0 ? r.map((e) => /* @__PURE__ */ (0, L.html)(ox, {
|
|
10595
10601
|
key: e.id,
|
|
10596
10602
|
status: e.status,
|
|
10597
10603
|
category: `Showing ${e.typeLabel}`,
|
|
@@ -10599,7 +10605,7 @@ function ix(e) {
|
|
|
10599
10605
|
showDetails: (l || {})[`content-details-${e.id}`],
|
|
10600
10606
|
onToggleRowDetails: () => u(`content-details-${e.id}`),
|
|
10601
10607
|
details: e.details
|
|
10602
|
-
})) : /* @__PURE__ */ (0, L.html)(z, null), _.length > 0 ? /* @__PURE__ */ (0, L.html)(
|
|
10608
|
+
})) : /* @__PURE__ */ (0, L.html)(z, null), _.length > 0 ? /* @__PURE__ */ (0, L.html)(ox, {
|
|
10603
10609
|
status: "warn",
|
|
10604
10610
|
category: "Content Omitted",
|
|
10605
10611
|
description: "Some content isn't showing",
|
|
@@ -10607,23 +10613,23 @@ function ix(e) {
|
|
|
10607
10613
|
onToggleRowDetails: () => u("omit-content"),
|
|
10608
10614
|
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
10615
|
let { stepChildId: t, flow: n } = e;
|
|
10610
|
-
return /* @__PURE__ */ (0, L.html)("li", null,
|
|
10616
|
+
return /* @__PURE__ */ (0, L.html)("li", null, ix(n, (Bn(Tn(n), t) || {}).id, t));
|
|
10611
10617
|
})))
|
|
10612
10618
|
}) : /* @__PURE__ */ (0, L.html)(z, null)), /* @__PURE__ */ (0, L.html)("div", { "class-footer": !0 }, /* @__PURE__ */ (0, L.html)("a", {
|
|
10613
|
-
href: v ? `${
|
|
10619
|
+
href: v ? `${ex}/audience/users/${encodeURIComponent(a.userId)}/eligibility` : void 0,
|
|
10614
10620
|
classNames: v ? "" : "disabled",
|
|
10615
10621
|
"attrs-tabindex": v ? void 0 : "-1",
|
|
10616
10622
|
target: "_blank",
|
|
10617
10623
|
rel: "noreferrer"
|
|
10618
10624
|
}, /* @__PURE__ */ (0, L.html)("div", { "class-launch-diagnostics": !0 }, v ? "View Experience Eligibility for User" : "Identify User to View Experience Eligibility"))));
|
|
10619
10625
|
}
|
|
10620
|
-
function
|
|
10626
|
+
function ox({ status: e, active: t, category: n, description: r, details: i, showDetails: a, onToggleRowDetails: o }) {
|
|
10621
10627
|
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
10628
|
classNames: `toggle-details ${a ? "open" : "closed"}`,
|
|
10623
10629
|
"on-click": o
|
|
10624
10630
|
}, "DETAILS") : /* @__PURE__ */ (0, L.html)(z, null)), a ? /* @__PURE__ */ (0, L.html)("div", { "class-details": !0 }, i) : /* @__PURE__ */ (0, L.html)(z, null));
|
|
10625
10631
|
}
|
|
10626
|
-
function
|
|
10632
|
+
function sx({ user: e }) {
|
|
10627
10633
|
let t = /^_.*/, n = Object.keys(e).map((t) => ({
|
|
10628
10634
|
name: t,
|
|
10629
10635
|
value: e[t]
|
|
@@ -10638,11 +10644,11 @@ function ox({ user: e }) {
|
|
|
10638
10644
|
}
|
|
10639
10645
|
//#endregion
|
|
10640
10646
|
//#region src/styles/debugger.css?url
|
|
10641
|
-
var
|
|
10647
|
+
var cx = "/generic/main/7.29.4/debugger.408e6ad8d51f34b3b17d940f8e5d454920417883.css";
|
|
10642
10648
|
//#endregion
|
|
10643
10649
|
//#region src/scripts/views/renderers/render-debugger.jsx
|
|
10644
10650
|
Za();
|
|
10645
|
-
var
|
|
10651
|
+
var lx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", ux = ws(cx), dx = Hi([
|
|
10646
10652
|
Pa,
|
|
10647
10653
|
ja,
|
|
10648
10654
|
va,
|
|
@@ -10651,21 +10657,21 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10651
10657
|
], (0, to.createApi)({
|
|
10652
10658
|
clean: !0,
|
|
10653
10659
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
10654
|
-
})),
|
|
10660
|
+
})), fx = null, px = {
|
|
10655
10661
|
[Me.FLOW]: "Flow",
|
|
10656
10662
|
[Me.EMBED]: "Embed",
|
|
10657
10663
|
[Me.NPS]: "NPS Survey",
|
|
10658
10664
|
[Me.BANNER]: "Banner",
|
|
10659
10665
|
[Me.PERSISTENT]: "Pin",
|
|
10660
10666
|
[Me.LAUNCHPAD]: "Launchpad"
|
|
10661
|
-
},
|
|
10667
|
+
}, mx = (e) => px[e] || "Experience", hx = (e) => {
|
|
10662
10668
|
let t = [], n = Dr(e);
|
|
10663
10669
|
n && t.push({
|
|
10664
10670
|
id: n.flow.id,
|
|
10665
10671
|
name: n.flow.name,
|
|
10666
10672
|
typeLabel: "Flow",
|
|
10667
10673
|
status: n.status === w.SHOWING ? "check" : "pending",
|
|
10668
|
-
details:
|
|
10674
|
+
details: ix(n.flow, n.stepId, n.stepChildId)
|
|
10669
10675
|
});
|
|
10670
10676
|
let r = li(e), i = Gr(e);
|
|
10671
10677
|
return r.forEach((e) => {
|
|
@@ -10673,7 +10679,7 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10673
10679
|
t.push({
|
|
10674
10680
|
id: e.id,
|
|
10675
10681
|
name: e.name || e.id,
|
|
10676
|
-
typeLabel:
|
|
10682
|
+
typeLabel: mx(e.type),
|
|
10677
10683
|
status: a,
|
|
10678
10684
|
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
10685
|
});
|
|
@@ -10687,7 +10693,7 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10687
10693
|
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
10694
|
});
|
|
10689
10695
|
}), t;
|
|
10690
|
-
},
|
|
10696
|
+
}, gx = (e) => {
|
|
10691
10697
|
let t = ur(e) || {}, n = Pr(e);
|
|
10692
10698
|
return Object.keys(n || {}).reduce((e, r) => {
|
|
10693
10699
|
let i = Vn(t, r);
|
|
@@ -10699,11 +10705,11 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10699
10705
|
}
|
|
10700
10706
|
} : e;
|
|
10701
10707
|
}, {});
|
|
10702
|
-
},
|
|
10708
|
+
}, _x = (e, t) => /* @__PURE__ */ (0, L.html)(ax, {
|
|
10703
10709
|
lastTrackedPage: Hr(e),
|
|
10704
10710
|
currentPage: Vr(e),
|
|
10705
|
-
activeContent:
|
|
10706
|
-
stepChildErrors:
|
|
10711
|
+
activeContent: hx(e),
|
|
10712
|
+
stepChildErrors: gx(e),
|
|
10707
10713
|
user: Qn(e),
|
|
10708
10714
|
group: er(e),
|
|
10709
10715
|
settings: or(e),
|
|
@@ -10713,14 +10719,14 @@ var cx = "sha256-XAJh1+pr7rBEEPuIIJMeekhvYrhXA0BMC1CzqkbnySA=", lx = ws(sx), ux
|
|
|
10713
10719
|
onToggleCollapsed: t.onToggleCollapsed,
|
|
10714
10720
|
onCloseDebugger: t.onCloseDebugger
|
|
10715
10721
|
});
|
|
10716
|
-
function
|
|
10722
|
+
function vx(e) {
|
|
10717
10723
|
if (os(document)) {
|
|
10718
10724
|
let t = e.views.callbacks[C.DEBUGGER], n = zr(e), r = n && n.isCollapsed;
|
|
10719
|
-
if (!
|
|
10725
|
+
if (!fx || !Xo(fx.elm)) {
|
|
10720
10726
|
let e = document.createElement("appcues-debugger");
|
|
10721
|
-
document.body.appendChild(e),
|
|
10727
|
+
document.body.appendChild(e), fx = dx(e, /* @__PURE__ */ (0, L.html)("appcues-debugger", null));
|
|
10722
10728
|
}
|
|
10723
|
-
Rr(e) && t ?
|
|
10729
|
+
Rr(e) && t ? fx = dx(fx, /* @__PURE__ */ (0, L.html)("appcues-debugger", { classNames: r ? "collapsed" : "expanded" }, /* @__PURE__ */ (0, L.html)("iframe", {
|
|
10724
10730
|
"style-border": "none",
|
|
10725
10731
|
"style-height": "450px",
|
|
10726
10732
|
"style-width": "100%",
|
|
@@ -10728,20 +10734,20 @@ function _x(e) {
|
|
|
10728
10734
|
scrolling: "no",
|
|
10729
10735
|
"style-color-scheme": "none"
|
|
10730
10736
|
}, /* @__PURE__ */ (0, L.html)("link", {
|
|
10731
|
-
"attrs-href":
|
|
10737
|
+
"attrs-href": ux,
|
|
10732
10738
|
"attrs-type": "text/css",
|
|
10733
10739
|
"attrs-rel": "stylesheet",
|
|
10734
|
-
"attrs-integrity":
|
|
10740
|
+
"attrs-integrity": lx,
|
|
10735
10741
|
"attrs-crossorigin": "anonymous"
|
|
10736
|
-
}),
|
|
10742
|
+
}), _x(e, t)))) : fx &&= dx(fx, /* @__PURE__ */ (0, L.html)("div", null));
|
|
10737
10743
|
}
|
|
10738
10744
|
}
|
|
10739
10745
|
//#endregion
|
|
10740
10746
|
//#region src/scripts/views/components/test-mode-banner.jsx
|
|
10741
|
-
var
|
|
10747
|
+
var yx = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", bx = (e) => {
|
|
10742
10748
|
let { testModeCallbacks: t } = e;
|
|
10743
10749
|
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:
|
|
10750
|
+
href: yx,
|
|
10745
10751
|
"class-clickable": !0,
|
|
10746
10752
|
"class-doc-link": !0,
|
|
10747
10753
|
target: "_blank",
|
|
@@ -10754,11 +10760,11 @@ var vx = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", yx = (e)
|
|
|
10754
10760
|
"class-clickable": !0,
|
|
10755
10761
|
"on-click": t.onCancelClicked
|
|
10756
10762
|
}, "End Test"))));
|
|
10757
|
-
},
|
|
10763
|
+
}, xx = "/generic/main/7.29.4/test-mode.408e6ad8d51f34b3b17d940f8e5d454920417883.css";
|
|
10758
10764
|
//#endregion
|
|
10759
10765
|
//#region src/scripts/views/renderers/render-test-mode-banner.jsx
|
|
10760
10766
|
Za();
|
|
10761
|
-
var
|
|
10767
|
+
var Sx = "sha256-LY5VY9tDsAOswNGXoginWbndpzhXfaGIHNLr6cjQ8EI=", Cx = ws(xx), wx = Hi([
|
|
10762
10768
|
Pa,
|
|
10763
10769
|
ja,
|
|
10764
10770
|
va,
|
|
@@ -10767,15 +10773,15 @@ var xx = "sha256-LY5VY9tDsAOswNGXoginWbndpzhXfaGIHNLr6cjQ8EI=", Sx = ws(bx), Cx
|
|
|
10767
10773
|
], (0, to.createApi)({
|
|
10768
10774
|
clean: !0,
|
|
10769
10775
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
10770
|
-
})),
|
|
10771
|
-
function
|
|
10776
|
+
})), Tx = null;
|
|
10777
|
+
function Ex(e) {
|
|
10772
10778
|
if (os(document)) {
|
|
10773
10779
|
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 (!
|
|
10780
|
+
if (!Tx || !Xo(Tx.elm)) {
|
|
10775
10781
|
let e = document.createElement("appcues-test-banner");
|
|
10776
|
-
document.body.appendChild(e),
|
|
10782
|
+
document.body.appendChild(e), Tx = wx(e, /* @__PURE__ */ (0, L.html)("appcues-test-banner", null));
|
|
10777
10783
|
}
|
|
10778
|
-
r && t ?
|
|
10784
|
+
r && t ? Tx = wx(Tx, /* @__PURE__ */ (0, L.html)("div", { "class-appcues": !0 }, /* @__PURE__ */ (0, L.html)("appcues-test-banner", { style: {
|
|
10779
10785
|
display: "flex",
|
|
10780
10786
|
justifyContent: "center"
|
|
10781
10787
|
} }, /* @__PURE__ */ (0, L.html)("iframe", { style: {
|
|
@@ -10785,50 +10791,50 @@ function Tx(e) {
|
|
|
10785
10791
|
bottom: "0",
|
|
10786
10792
|
border: "0"
|
|
10787
10793
|
} }, /* @__PURE__ */ (0, L.html)("link", {
|
|
10788
|
-
"attrs-href":
|
|
10789
|
-
"attrs-integrity":
|
|
10794
|
+
"attrs-href": Cx,
|
|
10795
|
+
"attrs-integrity": Sx,
|
|
10790
10796
|
"attrs-crossorigin": "anonymous",
|
|
10791
10797
|
"attrs-type": "text/css",
|
|
10792
10798
|
"attrs-rel": "stylesheet",
|
|
10793
10799
|
"on-load": t.onCssLoaded
|
|
10794
|
-
}), i ? /* @__PURE__ */ (0, L.html)(
|
|
10800
|
+
}), i ? /* @__PURE__ */ (0, L.html)(bx, { testModeCallbacks: t }) : /* @__PURE__ */ (0, L.html)(z, null))))) : Tx &&= wx(Tx, /* @__PURE__ */ (0, L.html)("div", null));
|
|
10795
10801
|
}
|
|
10796
10802
|
}
|
|
10797
10803
|
//#endregion
|
|
10798
10804
|
//#region src/scripts/views/callbacks/debugger-callbacks.js
|
|
10799
|
-
function
|
|
10805
|
+
function Dx(e) {
|
|
10800
10806
|
return {
|
|
10801
10807
|
onToggleRowDetails(t) {
|
|
10802
|
-
e(
|
|
10808
|
+
e(Kg(t));
|
|
10803
10809
|
},
|
|
10804
10810
|
onToggleCollapsed() {
|
|
10805
|
-
e(
|
|
10811
|
+
e(qg());
|
|
10806
10812
|
},
|
|
10807
10813
|
onCloseDebugger() {
|
|
10808
|
-
e(
|
|
10814
|
+
e(e_());
|
|
10809
10815
|
}
|
|
10810
10816
|
};
|
|
10811
10817
|
}
|
|
10812
10818
|
//#endregion
|
|
10813
10819
|
//#region src/scripts/sagas/modal-sagas.js
|
|
10814
|
-
function* Dx() {
|
|
10815
|
-
(yield M(mr)) === C.MODAL && (yield M(hr)) === w.STARTED && (yield A(Sy, yield M(Cr))) && (yield k(Zp(document.activeElement)), yield k(tm()));
|
|
10816
|
-
}
|
|
10817
10820
|
function* Ox() {
|
|
10818
|
-
yield
|
|
10821
|
+
(yield M(mr)) === C.MODAL && (yield M(hr)) === w.STARTED && (yield A(xy, yield M(Cr))) && (yield k(Zp(document.activeElement)), yield k(tm()));
|
|
10822
|
+
}
|
|
10823
|
+
function* kx() {
|
|
10824
|
+
yield j(Y, B.START_CONTENT, Ox);
|
|
10819
10825
|
}
|
|
10820
10826
|
//#endregion
|
|
10821
10827
|
//#region src/scripts/sagas/hotspots-sagas.js
|
|
10822
|
-
function*
|
|
10823
|
-
yield A(
|
|
10828
|
+
function* Ax(e, t) {
|
|
10829
|
+
yield A(iv, t), yield k(q(rm(T.CHILD_RUN, e, t))), yield k(ym([t]));
|
|
10824
10830
|
}
|
|
10825
|
-
function*
|
|
10831
|
+
function* jx() {
|
|
10826
10832
|
if ((yield M(mr)) === C.HOTSPOTS && (yield M(hr)) === w.STARTED) {
|
|
10827
10833
|
let e = yield M(I), t = Dn(e);
|
|
10828
|
-
t.length > 0 ? (yield A(
|
|
10834
|
+
t.length > 0 ? (yield A(xy, t)) && (yield k(Zp(document.activeElement)), yield k(gm()), yield k(Cm()), jn(e) && (yield* Ax(e.id, t[0].id))) : yield A(qv, /* @__PURE__ */ Error("Trying to show an empty list of hotspots."));
|
|
10829
10835
|
}
|
|
10830
10836
|
}
|
|
10831
|
-
function*
|
|
10837
|
+
function* Mx({ payload: e }) {
|
|
10832
10838
|
(yield M(mr)) === C.HOTSPOTS && (yield k(Tm((yield M(Cr)).reduce((t, n) => {
|
|
10833
10839
|
let r = e[n.id];
|
|
10834
10840
|
if (!r.error) {
|
|
@@ -10853,95 +10859,95 @@ function* jx({ payload: e }) {
|
|
|
10853
10859
|
};
|
|
10854
10860
|
}
|
|
10855
10861
|
return t[n.id] = r, t;
|
|
10856
|
-
}, {}))), yield A(
|
|
10862
|
+
}, {}))), yield A(nv));
|
|
10857
10863
|
}
|
|
10858
|
-
function*
|
|
10864
|
+
function* Nx() {
|
|
10859
10865
|
yield A(Z, 1e4);
|
|
10860
|
-
let e = yield*
|
|
10861
|
-
e && (delete e.navByADTT, yield*
|
|
10866
|
+
let e = yield* Gv();
|
|
10867
|
+
e && (delete e.navByADTT, yield* Kv(e));
|
|
10862
10868
|
}
|
|
10863
|
-
function*
|
|
10869
|
+
function* Px({ payload: e }) {
|
|
10864
10870
|
(yield M(Fr)).length > 0 && (yield jt({
|
|
10865
10871
|
continue: O((t) => t.type === W.REMOVE_ACTIVE_ANNOTATIONS && t.payload[0] === e.childId),
|
|
10866
10872
|
cancel: O((t) => t.type === H.CANCEL_STEP && t.payload.stepId === e.stepId)
|
|
10867
10873
|
})).cancel || (yield k(q(Q(T.STEP_END, e.stepId, e.params))));
|
|
10868
10874
|
}
|
|
10869
|
-
function*
|
|
10875
|
+
function* Fx(e) {
|
|
10870
10876
|
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*
|
|
10877
|
+
t === C.SEQUENTIAL_HOTSPOTS && (yield k(xm([r])), yield k(q(rm(T.CHILD_DEACTIVATED, n.id, r, { ts: Date.now() }))), i ? yield* Ax(n.id, i) : (yield k(q(Q(T.STEP_COMPLETED, n.id, { shouldEndFlow: a }))), Mn(n, On(n, r)) && (yield* Kv({
|
|
10878
|
+
...yield* Gv(),
|
|
10873
10879
|
navByADTT: !0
|
|
10874
|
-
}), yield j(
|
|
10880
|
+
}), yield j(Nx)), yield A(Px, vm(n.id, r, { shouldEndFlow: a }))));
|
|
10875
10881
|
}
|
|
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*
|
|
10882
|
+
function* Ix({ stepId: e, currentStepChildId: t, nextStepChildId: n }) {
|
|
10883
|
+
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* Ax(e, n);
|
|
10878
10884
|
}
|
|
10879
|
-
function*
|
|
10885
|
+
function* Lx(e) {
|
|
10880
10886
|
let { step: t, stepChildId: n } = e.payload, r = yield M(Ar, n);
|
|
10881
|
-
r && (yield A(
|
|
10887
|
+
r && (yield A(Ix, {
|
|
10882
10888
|
stepId: t,
|
|
10883
10889
|
currentStepChildId: n,
|
|
10884
10890
|
nextStepChildId: r
|
|
10885
10891
|
}));
|
|
10886
10892
|
}
|
|
10887
|
-
function*
|
|
10893
|
+
function* Rx(e) {
|
|
10888
10894
|
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(
|
|
10895
|
+
!i || n === i || (yield (yield M(jr, n, i)).map((e) => k(em({ stepChildId: e }))), yield A(Ix, {
|
|
10890
10896
|
stepId: t,
|
|
10891
10897
|
currentStepChildId: n,
|
|
10892
10898
|
nextStepChildId: i
|
|
10893
10899
|
}));
|
|
10894
10900
|
}
|
|
10895
|
-
function*
|
|
10901
|
+
function* zx() {
|
|
10896
10902
|
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,
|
|
10903
|
+
j(Y, B.START_CONTENT, jx),
|
|
10904
|
+
j(Y, W.START_HANDLE_POSITION_UPDATES, Mx),
|
|
10905
|
+
j(Y, H.ADVANCE_STEP_CHILD, Fx),
|
|
10906
|
+
j(Y, uc.CLOSE_LAST_HOTSPOT, Px),
|
|
10907
|
+
j(Y, H.RUN_PREV_STEP_CHILD, Lx),
|
|
10908
|
+
j(Y, W.GO_TO_STEP, Rx)
|
|
10903
10909
|
];
|
|
10904
10910
|
}
|
|
10905
10911
|
//#endregion
|
|
10906
10912
|
//#region src/scripts/sagas/debugger-sagas.js
|
|
10907
|
-
function*
|
|
10913
|
+
function* Bx() {
|
|
10908
10914
|
for (;;) {
|
|
10909
10915
|
let e = window.location.href;
|
|
10910
|
-
(yield M(Vr)) !== e && (yield k(
|
|
10916
|
+
(yield M(Vr)) !== e && (yield k(Jg(e))), yield A($e, 1e3);
|
|
10911
10917
|
}
|
|
10912
10918
|
}
|
|
10913
|
-
function*
|
|
10919
|
+
function* Vx(e) {
|
|
10914
10920
|
let t = null;
|
|
10915
10921
|
if (e.payload.events.forEach((e) => {
|
|
10916
10922
|
e.name === ue.PAGE_VIEW && (t = e);
|
|
10917
10923
|
}), t) {
|
|
10918
10924
|
let e = t.attributes.url;
|
|
10919
|
-
e !== (yield M(Hr)) && (yield k(
|
|
10925
|
+
e !== (yield M(Hr)) && (yield k(Yg(e)), yield A(p_, "localStorage", Ne, e));
|
|
10920
10926
|
}
|
|
10921
10927
|
}
|
|
10922
|
-
function* Vx(e) {
|
|
10923
|
-
e.error && (yield k(Zg((e.payload && e.payload.extra ? e.payload.extra.id : null) || (yield M(F)), e.payload.message)));
|
|
10924
|
-
}
|
|
10925
10928
|
function* Hx(e) {
|
|
10929
|
+
e.error && (yield k(Xg((e.payload && e.payload.extra ? e.payload.extra.id : null) || (yield M(F)), e.payload.message)));
|
|
10930
|
+
}
|
|
10931
|
+
function* Ux(e) {
|
|
10926
10932
|
let t = Object.keys(e.payload).filter((t) => e.payload[t].error);
|
|
10927
10933
|
if (t.length > 0) {
|
|
10928
10934
|
let n = yield M(F);
|
|
10929
|
-
for (let r of t) yield k(
|
|
10935
|
+
for (let r of t) yield k(Zg(n, r, e.payload[r].errorMessage));
|
|
10930
10936
|
}
|
|
10931
10937
|
}
|
|
10932
|
-
function*
|
|
10938
|
+
function* Wx() {
|
|
10933
10939
|
for (;;) {
|
|
10934
|
-
(yield A(
|
|
10935
|
-
let e = yield fu(
|
|
10940
|
+
(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)));
|
|
10941
|
+
let e = yield fu(Bx), t = yield j(Y, [B.START_ACTIVITY, B.START_IDENTIFY], Vx), n = yield j(Y, V.WILL_SHOW_CONTENT, Hx), r = yield j(Y, W.SET_ANNOTATIONS_POSITIONS, Ux);
|
|
10936
10942
|
yield O(dc.CLOSE_DEBUGGER), yield Ft(e), yield Ft(t), yield Ft(n), yield Ft(r), yield A($, "localStorage", je);
|
|
10937
10943
|
}
|
|
10938
10944
|
}
|
|
10939
|
-
function*
|
|
10940
|
-
yield j(
|
|
10945
|
+
function* Gx() {
|
|
10946
|
+
yield j(Wx);
|
|
10941
10947
|
}
|
|
10942
10948
|
//#endregion
|
|
10943
10949
|
//#region src/scripts/sagas/action-sagas.js
|
|
10944
|
-
function*
|
|
10950
|
+
function* Kx({ payload: e }) {
|
|
10945
10951
|
switch (yield k(q(Q(T.STEP_SHOWN, e.id))), e.attributes.action_type) {
|
|
10946
10952
|
case pe.REDIRECT: {
|
|
10947
10953
|
let t = window.location.href, { url: n, new_tab: r, initiated_by_user: i } = e.attributes.params;
|
|
@@ -10950,7 +10956,7 @@ function* Gx({ payload: e }) {
|
|
|
10950
10956
|
wait: O(V.SENT_ACTIVITY_UPDATE),
|
|
10951
10957
|
cancel: A(Z, 1500)
|
|
10952
10958
|
}), yield jt({
|
|
10953
|
-
wait: A(
|
|
10959
|
+
wait: A(Vv, yield M(Un)),
|
|
10954
10960
|
cancel: A(Z, Oe)
|
|
10955
10961
|
}), yield A(Ud, window, n, r));
|
|
10956
10962
|
break;
|
|
@@ -10958,10 +10964,10 @@ function* Gx({ payload: e }) {
|
|
|
10958
10964
|
default: yield k(Xc(/* @__PURE__ */ Error("Unknown step type.")));
|
|
10959
10965
|
}
|
|
10960
10966
|
}
|
|
10961
|
-
function*
|
|
10967
|
+
function* qx({ payload: { action: e, status: t } }) {
|
|
10962
10968
|
switch (e.attributes.action_type) {
|
|
10963
10969
|
case pe.WAIT_FOR_PAGE: {
|
|
10964
|
-
let n = window.location.href, { url: r } = e.attributes.params, i = yield*
|
|
10970
|
+
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
10971
|
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
10972
|
break;
|
|
10967
10973
|
}
|
|
@@ -10978,27 +10984,27 @@ function* Kx({ payload: { action: e, status: t } }) {
|
|
|
10978
10984
|
default: yield k(Xc(/* @__PURE__ */ Error("Unknown step type.")));
|
|
10979
10985
|
}
|
|
10980
10986
|
}
|
|
10981
|
-
function*
|
|
10987
|
+
function* Jx(e, t) {
|
|
10982
10988
|
let n = window.location.href;
|
|
10983
|
-
tf(e, n) ? t && (yield A(t)) : (yield A(Z, 500), yield A(
|
|
10989
|
+
tf(e, n) ? t && (yield A(t)) : (yield A(Z, 500), yield A(Jx, e, t));
|
|
10984
10990
|
}
|
|
10985
|
-
function*
|
|
10991
|
+
function* Yx({ payload: { action: e, checklistId: t, itemId: n, actionIndex: r } }) {
|
|
10986
10992
|
switch (e.attributes.action_type) {
|
|
10987
10993
|
case pe.REDIRECT: {
|
|
10988
10994
|
let i = window.location.href, { url: a, new_tab: o } = e.attributes.params;
|
|
10989
10995
|
if (tf(a, i)) yield k(uh(t, n, r));
|
|
10990
10996
|
else {
|
|
10991
10997
|
yield jt({
|
|
10992
|
-
wait: At([A(
|
|
10998
|
+
wait: At([A(Vv, yield M(Un)), A(Vv, t)]),
|
|
10993
10999
|
cancel: A(Z, Oe)
|
|
10994
11000
|
});
|
|
10995
11001
|
let e = yield M(qr, t);
|
|
10996
|
-
yield A(
|
|
11002
|
+
yield A(p_, g, he, JSON.stringify({
|
|
10997
11003
|
checklistId: t,
|
|
10998
11004
|
itemId: n,
|
|
10999
11005
|
actionIndex: r,
|
|
11000
11006
|
checklist: e
|
|
11001
|
-
})), yield A(Ud, window, a, o), yield A(
|
|
11007
|
+
})), yield A(Ud, window, a, o), yield A(Jx, a, function* () {
|
|
11002
11008
|
yield k(uh(t, n, r)), yield A($, g, he);
|
|
11003
11009
|
});
|
|
11004
11010
|
}
|
|
@@ -11027,20 +11033,20 @@ function* Jx({ payload: { action: e, checklistId: t, itemId: n, actionIndex: r }
|
|
|
11027
11033
|
}
|
|
11028
11034
|
}
|
|
11029
11035
|
}
|
|
11030
|
-
function*
|
|
11036
|
+
function* Xx() {
|
|
11031
11037
|
yield [
|
|
11032
|
-
j(Y, V.RUN_ACTION,
|
|
11033
|
-
j(Y, V.RESUME_ACTION,
|
|
11034
|
-
j(Y, G.START_CHECKLIST_ACTION,
|
|
11038
|
+
j(Y, V.RUN_ACTION, Kx),
|
|
11039
|
+
j(Y, V.RESUME_ACTION, qx),
|
|
11040
|
+
j(Y, G.START_CHECKLIST_ACTION, Yx)
|
|
11035
11041
|
];
|
|
11036
11042
|
}
|
|
11037
11043
|
//#endregion
|
|
11038
11044
|
//#region src/scripts/sagas/satisfaction-survey-sagas.js
|
|
11039
|
-
var
|
|
11040
|
-
function*
|
|
11045
|
+
var Zx = 500, Qx = 5e3;
|
|
11046
|
+
function* $x() {
|
|
11041
11047
|
(yield M(mr)) === C.SATISFACTION_SURVEY && (yield M(hr)) === w.STARTED && (yield k(Im()));
|
|
11042
11048
|
}
|
|
11043
|
-
function*
|
|
11049
|
+
function* eS(e) {
|
|
11044
11050
|
let { score: t } = e.payload, n = Su(yield M(Wn), yield M(ir), {
|
|
11045
11051
|
score: t,
|
|
11046
11052
|
name: "NPS Score",
|
|
@@ -11051,7 +11057,7 @@ function* $x(e) {
|
|
|
11051
11057
|
[`${S}NPSLastCollectedAt`]: Date.now()
|
|
11052
11058
|
}, [xu(n)], !1));
|
|
11053
11059
|
}
|
|
11054
|
-
function*
|
|
11060
|
+
function* tS(e) {
|
|
11055
11061
|
let { feedback: t } = e.payload, n = Su(yield M(Wn), yield M(ir), {
|
|
11056
11062
|
feedback: t,
|
|
11057
11063
|
name: "NPS Feedback",
|
|
@@ -11062,7 +11068,7 @@ function* eS(e) {
|
|
|
11062
11068
|
[`${S}NPSFeedbackLastCollectedAt`]: Date.now()
|
|
11063
11069
|
}, [xu(n)], !1));
|
|
11064
11070
|
}
|
|
11065
|
-
function*
|
|
11071
|
+
function* nS() {
|
|
11066
11072
|
let e = {}, t = `${S}ClickedUpdateNPSScore`;
|
|
11067
11073
|
e[t] = Date.now();
|
|
11068
11074
|
let n = Su(yield M(Wn), yield M(ir), {
|
|
@@ -11072,7 +11078,7 @@ function* tS() {
|
|
|
11072
11078
|
});
|
|
11073
11079
|
yield k(Sc(n.flowId, n)), yield k(Tc(e, [xu(n)], !1));
|
|
11074
11080
|
}
|
|
11075
|
-
function*
|
|
11081
|
+
function* rS() {
|
|
11076
11082
|
let e = {}, t = `${S}AskMeLaterSelectedAt`;
|
|
11077
11083
|
e[t] = Date.now();
|
|
11078
11084
|
let n = Su(yield M(Wn), yield M(ir), {
|
|
@@ -11082,22 +11088,22 @@ function* nS() {
|
|
|
11082
11088
|
});
|
|
11083
11089
|
yield k(Sc(n.flowId, n)), yield k(Tc(e, [xu(n)], !1));
|
|
11084
11090
|
}
|
|
11085
|
-
function* rS() {
|
|
11086
|
-
yield k(Rm()), yield $e(Xx), yield k(Bm()), yield $e(Zx), yield k(Vm());
|
|
11087
|
-
}
|
|
11088
11091
|
function* iS() {
|
|
11092
|
+
yield k(Rm()), yield $e(Zx), yield k(Bm()), yield $e(Qx), yield k(Vm());
|
|
11093
|
+
}
|
|
11094
|
+
function* aS() {
|
|
11089
11095
|
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,
|
|
11096
|
+
j(Y, U.QUANTITATIVE_QUESTION_SUBMITTED, eS),
|
|
11097
|
+
j(Y, U.QUALITATIVE_QUESTION_SUBMITTED, tS),
|
|
11098
|
+
j(Y, U.ASK_ME_LATER_SELECTED, rS),
|
|
11099
|
+
j(Y, U.CLICKED_UPDATE_NPS_SCORE, nS),
|
|
11100
|
+
j(Y, U.START_COLLAPSING_SATISFACTION_SURVEY, iS),
|
|
11101
|
+
j(Y, B.START_CONTENT, $x)
|
|
11096
11102
|
];
|
|
11097
11103
|
}
|
|
11098
11104
|
//#endregion
|
|
11099
11105
|
//#region src/scripts/sagas/checklist-sagas.js
|
|
11100
|
-
function*
|
|
11106
|
+
function* oS(e) {
|
|
11101
11107
|
if (e && !(yield M(pr))[e]) try {
|
|
11102
11108
|
let t = yield A(pg, yield M(Jn), e);
|
|
11103
11109
|
t && (yield k(Yc({ [e]: t })));
|
|
@@ -11105,16 +11111,16 @@ function* aS(e) {
|
|
|
11105
11111
|
yield A(yield M(Xn), e.message, { extra: e.extra });
|
|
11106
11112
|
}
|
|
11107
11113
|
}
|
|
11108
|
-
function*
|
|
11109
|
-
yield k(Ym(e.id, w.READY)), yield O((t) => t.type === G.LOADED_CHECKLIST_CSS && e.id), yield A(
|
|
11114
|
+
function* sS(e) {
|
|
11115
|
+
yield k(Ym(e.id, w.READY)), yield O((t) => t.type === G.LOADED_CHECKLIST_CSS && e.id), yield A(oS, e.style);
|
|
11110
11116
|
let t = yield M(I);
|
|
11111
11117
|
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
11118
|
}
|
|
11113
|
-
function*
|
|
11119
|
+
function* cS({ payload: e }) {
|
|
11114
11120
|
let { open_behavior: t } = e;
|
|
11115
11121
|
switch (t) {
|
|
11116
11122
|
case ge.CLOSED:
|
|
11117
|
-
yield A(
|
|
11123
|
+
yield A(sS, e);
|
|
11118
11124
|
break;
|
|
11119
11125
|
case ge.OPENED:
|
|
11120
11126
|
yield k($m(e));
|
|
@@ -11122,29 +11128,29 @@ function* sS({ payload: e }) {
|
|
|
11122
11128
|
case ge.OPEN_ONCE:
|
|
11123
11129
|
default: {
|
|
11124
11130
|
let t = `${Te}${e.id}`;
|
|
11125
|
-
|
|
11131
|
+
m_("sessionStorage", t) ? yield A(sS, e) : (p_(g, t, "1"), yield k($m(e)));
|
|
11126
11132
|
break;
|
|
11127
11133
|
}
|
|
11128
11134
|
}
|
|
11129
11135
|
}
|
|
11130
|
-
function*
|
|
11131
|
-
yield A(
|
|
11136
|
+
function* lS({ payload: e }) {
|
|
11137
|
+
yield A(sS, e), yield A(Z, 1e3), yield k(eh(e.id)), yield k(mh(e));
|
|
11132
11138
|
}
|
|
11133
|
-
function*
|
|
11139
|
+
function* uS(e) {
|
|
11134
11140
|
let { checklist: t } = e.payload, n = Zu(t, yield M(ir));
|
|
11135
11141
|
yield k(Sc(t.id, n)), yield k(Tc(null, [xu(n)], !1));
|
|
11136
11142
|
}
|
|
11137
|
-
function*
|
|
11143
|
+
function* dS(e) {
|
|
11138
11144
|
let { checklistId: t, didCompleteChecklist: n } = e.payload, r = yield M(ir), i = yield M(qr, t);
|
|
11139
11145
|
yield k(Ym(i.id, w.DISMISSED));
|
|
11140
11146
|
let a = n ? ed(i.attributes, r) : $u(i.attributes, r);
|
|
11141
11147
|
yield k(Sc(a.checklistId, a)), yield k(Tc({}, [xu(a)], !1));
|
|
11142
11148
|
}
|
|
11143
|
-
function*
|
|
11149
|
+
function* fS() {
|
|
11144
11150
|
let { userId: e } = yield M(Qn);
|
|
11145
11151
|
yield k(yc(e, { _showChecklist: null }));
|
|
11146
11152
|
}
|
|
11147
|
-
function*
|
|
11153
|
+
function* pS(e) {
|
|
11148
11154
|
let { checklistId: t, itemId: n, actionIndex: r } = e.payload;
|
|
11149
11155
|
yield k(th(t));
|
|
11150
11156
|
let i = yield M(ir), a, o;
|
|
@@ -11160,42 +11166,42 @@ function* fS(e) {
|
|
|
11160
11166
|
}
|
|
11161
11167
|
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
11168
|
}
|
|
11163
|
-
function*
|
|
11169
|
+
function* mS() {
|
|
11164
11170
|
let e = yield M(Kr);
|
|
11165
11171
|
e.length > 0 && (yield At(e.filter((e) => De.includes(e.status)).map((e) => k(Ym(e.id, w.HIDING)))));
|
|
11166
11172
|
}
|
|
11167
|
-
function*
|
|
11173
|
+
function* hS() {
|
|
11168
11174
|
let e = yield M(Jr, w.HIDING);
|
|
11169
11175
|
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
11176
|
}
|
|
11171
|
-
function*
|
|
11177
|
+
function* gS() {
|
|
11172
11178
|
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,
|
|
11179
|
+
j(Y, G.START_CHECKLIST, cS),
|
|
11180
|
+
j(Y, G.HIDE_CHECKLISTS, mS),
|
|
11181
|
+
j(Y, G.UNHIDE_CHECKLISTS, hS),
|
|
11182
|
+
j(Y, G.ANIMATE_IN_CHECKLIST, lS),
|
|
11183
|
+
j(Y, G.CONFIRM_DISMISS_CHECKLIST, dS),
|
|
11184
|
+
j(_u, G.START_CHECKLIST_ITEM, pS),
|
|
11185
|
+
j(_u, G.CLEAR_FORCE_SHOWN_CHECKLIST, fS),
|
|
11186
|
+
j(Y, G.SEND_CHECKLIST_SHOWN_EVENT, uS)
|
|
11181
11187
|
];
|
|
11182
11188
|
}
|
|
11183
11189
|
//#endregion
|
|
11184
11190
|
//#region src/scripts/sagas/open-builder-sagas.js
|
|
11185
|
-
function*
|
|
11191
|
+
function* _S({ payload: e }) {
|
|
11186
11192
|
let { type: t, event: n } = e, r = yield M(ir);
|
|
11187
11193
|
yield k(Sc(t, {
|
|
11188
11194
|
...n,
|
|
11189
11195
|
sessionId: r
|
|
11190
11196
|
}));
|
|
11191
11197
|
}
|
|
11192
|
-
function*
|
|
11193
|
-
yield [j(Y, B.START_OPEN_BUILDER_EVENT,
|
|
11198
|
+
function* vS() {
|
|
11199
|
+
yield [j(Y, B.START_OPEN_BUILDER_EVENT, _S)];
|
|
11194
11200
|
}
|
|
11195
11201
|
//#endregion
|
|
11196
11202
|
//#region src/scripts/utils/test-mode.js
|
|
11197
|
-
function
|
|
11198
|
-
let e =
|
|
11203
|
+
function yS() {
|
|
11204
|
+
let e = m_(g, b), t;
|
|
11199
11205
|
if (e) try {
|
|
11200
11206
|
t = JSON.parse(e);
|
|
11201
11207
|
} catch {
|
|
@@ -11203,12 +11209,12 @@ function vS() {
|
|
|
11203
11209
|
}
|
|
11204
11210
|
if (t) {
|
|
11205
11211
|
let { _testContentId: e, _testContentUrl: n, ...r } = t;
|
|
11206
|
-
return $(g, b), $(g, se),
|
|
11212
|
+
return $(g, b), $(g, se), p_(g, b, JSON.stringify(r)), { _testContentId: null };
|
|
11207
11213
|
}
|
|
11208
11214
|
return {};
|
|
11209
11215
|
}
|
|
11210
|
-
function
|
|
11211
|
-
let e =
|
|
11216
|
+
function bS() {
|
|
11217
|
+
let e = m_(g, b), t;
|
|
11212
11218
|
if (e) try {
|
|
11213
11219
|
t = JSON.parse(e);
|
|
11214
11220
|
} catch {
|
|
@@ -11222,22 +11228,22 @@ function yS() {
|
|
|
11222
11228
|
}
|
|
11223
11229
|
//#endregion
|
|
11224
11230
|
//#region src/scripts/sagas/test-mode-sagas.js
|
|
11225
|
-
function*
|
|
11226
|
-
let e =
|
|
11231
|
+
function* xS() {
|
|
11232
|
+
let e = yS();
|
|
11227
11233
|
yield k(Kc(e, !0)), yield A(Hy, e, [], !1);
|
|
11228
|
-
let t =
|
|
11234
|
+
let t = fv(window.location.href, "appcuesTestContentId");
|
|
11229
11235
|
yield A(Ud, window, t);
|
|
11230
11236
|
}
|
|
11231
|
-
function*
|
|
11232
|
-
let e =
|
|
11237
|
+
function* SS() {
|
|
11238
|
+
let e = bS();
|
|
11233
11239
|
yield A(Ud, window, e);
|
|
11234
11240
|
}
|
|
11235
|
-
function*
|
|
11236
|
-
yield [j(Y, fc.CANCEL_TEST,
|
|
11241
|
+
function* CS() {
|
|
11242
|
+
yield [j(Y, fc.CANCEL_TEST, xS), j(Y, fc.RESET_TEST, SS)];
|
|
11237
11243
|
}
|
|
11238
11244
|
//#endregion
|
|
11239
11245
|
//#region src/scripts/sagas/handle-messages.js
|
|
11240
|
-
function*
|
|
11246
|
+
function* wS(e) {
|
|
11241
11247
|
if (e.checklists && e.checklists.length > 0) {
|
|
11242
11248
|
let t = yield M(ir), n = [], r = ((yield M(Kr)) || []).reduce((e, t) => ({
|
|
11243
11249
|
...e,
|
|
@@ -11299,7 +11305,7 @@ function* CS(e) {
|
|
|
11299
11305
|
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
11306
|
} else yield k(Xm([]));
|
|
11301
11307
|
}
|
|
11302
|
-
function*
|
|
11308
|
+
function* TS() {
|
|
11303
11309
|
let e = [], t = {}, n = /* @__PURE__ */ new Map();
|
|
11304
11310
|
yield yn(V.SENT_REQUEST, ({ payload: { requestId: n, pageViewEvent: r } }) => {
|
|
11305
11311
|
e = [n, ...e], r && (t = {
|
|
@@ -11314,7 +11320,7 @@ function* wS() {
|
|
|
11314
11320
|
type: _c.LAUNCHPAD_SEARCH_RESPONSE,
|
|
11315
11321
|
payload: n
|
|
11316
11322
|
});
|
|
11317
|
-
} else r === B.START_HANDLE_MESSAGE && (yield j(
|
|
11323
|
+
} else r === B.START_HANDLE_MESSAGE && (yield j(wS, a));
|
|
11318
11324
|
let o = yield M(lr), s = a.qualification_reason === oe.EVENT_TRIGGER;
|
|
11319
11325
|
(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
11326
|
let c = a.request_id;
|
|
@@ -11333,9 +11339,9 @@ function* wS() {
|
|
|
11333
11339
|
let { contents: e, experiences: t } = lu(d);
|
|
11334
11340
|
p = e, m = t;
|
|
11335
11341
|
}
|
|
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(
|
|
11342
|
+
(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
11343
|
let h = a.qualification_reason === oe.PAGE_VIEW;
|
|
11338
|
-
m.length > 0 && !window.document?.documentMode && (!h || window.location.href === t[r]) && (yield k(
|
|
11344
|
+
m.length > 0 && !window.document?.documentMode && (!h || window.location.href === t[r]) && (yield k(r_(m)));
|
|
11339
11345
|
let g = f && p && p.length > 0;
|
|
11340
11346
|
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
11347
|
}
|
|
@@ -11345,21 +11351,21 @@ function* wS() {
|
|
|
11345
11351
|
}
|
|
11346
11352
|
//#endregion
|
|
11347
11353
|
//#region src/scripts/sagas/knowledge-base-sagas.js
|
|
11348
|
-
function*
|
|
11354
|
+
function* ES() {
|
|
11349
11355
|
let e = yield M(Jn);
|
|
11350
11356
|
return (yield A(ig, e)) || (yield A(By), e = yield M(Jn)), e;
|
|
11351
11357
|
}
|
|
11352
|
-
var
|
|
11353
|
-
let [e, ...t] =
|
|
11354
|
-
return
|
|
11358
|
+
var DS = [], OS = () => {
|
|
11359
|
+
let [e, ...t] = DS;
|
|
11360
|
+
return DS = t, e;
|
|
11355
11361
|
};
|
|
11356
|
-
function*
|
|
11362
|
+
function* kS() {
|
|
11357
11363
|
(yield A(Ny)) || (yield O(V.INITIALIZE));
|
|
11358
11364
|
let e = yield M(Qn);
|
|
11359
11365
|
N.defined(e.userId) || (yield O(V.COMPLETED_IDENTIFY));
|
|
11360
|
-
let t = yield A(
|
|
11366
|
+
let t = yield A(ES), n = gn((e) => (u((t) => {
|
|
11361
11367
|
let { experienceId: n, integrationId: r, query: i } = t.detail;
|
|
11362
|
-
|
|
11368
|
+
DS.push(n), e({
|
|
11363
11369
|
type: ie,
|
|
11364
11370
|
data: {
|
|
11365
11371
|
integration_id: r,
|
|
@@ -11369,56 +11375,56 @@ function* OS() {
|
|
|
11369
11375
|
});
|
|
11370
11376
|
}), () => {}));
|
|
11371
11377
|
for (t.transport.module.subscribeToError(() => {
|
|
11372
|
-
d(
|
|
11378
|
+
d(OS());
|
|
11373
11379
|
}, t, ng.UserActivity);;) {
|
|
11374
11380
|
let { data: e } = yield O(n);
|
|
11375
|
-
t = yield A(
|
|
11381
|
+
t = yield A(ES), yield A(sg, t, ie, e);
|
|
11376
11382
|
}
|
|
11377
11383
|
}
|
|
11378
|
-
function
|
|
11379
|
-
n(
|
|
11384
|
+
function AS({ payload: e }) {
|
|
11385
|
+
n(OS(), e);
|
|
11380
11386
|
}
|
|
11381
|
-
function
|
|
11382
|
-
d(
|
|
11387
|
+
function jS() {
|
|
11388
|
+
d(OS());
|
|
11383
11389
|
}
|
|
11384
|
-
function*
|
|
11390
|
+
function* MS() {
|
|
11385
11391
|
yield [
|
|
11386
|
-
fu(
|
|
11387
|
-
j(_u, _c.LAUNCHPAD_SEARCH_RESPONSE,
|
|
11388
|
-
j(_u, _c.LAUNCHPAD_SEARCH_ERROR,
|
|
11392
|
+
fu(kS),
|
|
11393
|
+
j(_u, _c.LAUNCHPAD_SEARCH_RESPONSE, AS),
|
|
11394
|
+
j(_u, _c.LAUNCHPAD_SEARCH_ERROR, jS)
|
|
11389
11395
|
];
|
|
11390
11396
|
}
|
|
11391
11397
|
//#endregion
|
|
11392
11398
|
//#region src/scripts/sagas/watch-url-sagas.js
|
|
11393
|
-
function*
|
|
11399
|
+
function* NS() {
|
|
11394
11400
|
if (window.AppcuesSettings) {
|
|
11395
11401
|
let e = window.location.href, { enableURLDetection: t } = window.AppcuesSettings;
|
|
11396
11402
|
for (; t;) window.location.href !== e && (window.Appcues.page(), e = window.location.href), yield A(Z, 500);
|
|
11397
11403
|
}
|
|
11398
11404
|
}
|
|
11399
|
-
function*
|
|
11400
|
-
yield [j(
|
|
11405
|
+
function* PS() {
|
|
11406
|
+
yield [j(NS)];
|
|
11401
11407
|
}
|
|
11402
11408
|
//#endregion
|
|
11403
11409
|
//#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 ===
|
|
11410
|
+
var FS = K(gc.SET_COLLISION_MODE), IS = "launchpad-button-wrapper", LS = (e, t) => e.checklist ? e.checklist.payload[0] : t.payload[0], RS = (e, t) => (e.experiences ? e.experiences.payload : t.payload).find((e) => e.type === "launchpad"), zS = (e) => {
|
|
11411
|
+
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 === IS).config;
|
|
11406
11412
|
return {
|
|
11407
11413
|
position: `${n} ${t}`,
|
|
11408
11414
|
xOffset: r,
|
|
11409
11415
|
yOffset: i
|
|
11410
11416
|
};
|
|
11411
11417
|
};
|
|
11412
|
-
function*
|
|
11418
|
+
function* BS(e, t) {
|
|
11413
11419
|
if (!e || !t) {
|
|
11414
|
-
yield k(
|
|
11420
|
+
yield k(FS({
|
|
11415
11421
|
collisionMode: !1,
|
|
11416
11422
|
checklist: null
|
|
11417
11423
|
}));
|
|
11418
11424
|
return;
|
|
11419
11425
|
}
|
|
11420
|
-
let n = e.styles.position.toLowerCase(), { position: r, xOffset: i, yOffset: a } =
|
|
11421
|
-
yield k(
|
|
11426
|
+
let n = e.styles.position.toLowerCase(), { position: r, xOffset: i, yOffset: a } = zS(t);
|
|
11427
|
+
yield k(FS({
|
|
11422
11428
|
collisionMode: n === r,
|
|
11423
11429
|
checklist: e,
|
|
11424
11430
|
collisionCoordinates: {
|
|
@@ -11427,14 +11433,14 @@ function* zS(e, t) {
|
|
|
11427
11433
|
}
|
|
11428
11434
|
}));
|
|
11429
11435
|
}
|
|
11430
|
-
function*
|
|
11436
|
+
function* VS() {
|
|
11431
11437
|
let e = yield jt({
|
|
11432
11438
|
checklist: O(G.UPDATE_CHECKLISTS),
|
|
11433
11439
|
experiences: O(mc.SHOW_EXPERIENCES)
|
|
11434
11440
|
}), t = yield e.checklist ? O(mc.SHOW_EXPERIENCES) : O(G.UPDATE_CHECKLISTS);
|
|
11435
|
-
yield A(
|
|
11441
|
+
yield A(BS, LS(e, t), RS(e, t));
|
|
11436
11442
|
}
|
|
11437
|
-
function*
|
|
11443
|
+
function* HS({ payload: { checklistId: e, forceClose: t } }) {
|
|
11438
11444
|
let n = yield M(qr, e);
|
|
11439
11445
|
if (t) {
|
|
11440
11446
|
yield k(th(e));
|
|
@@ -11443,7 +11449,7 @@ function* VS({ payload: { checklistId: e, forceClose: t } }) {
|
|
|
11443
11449
|
let r = n.viewState === Ee.EXPANDED;
|
|
11444
11450
|
r || (yield A(l)), yield k(r ? th(e) : eh(e));
|
|
11445
11451
|
}
|
|
11446
|
-
function*
|
|
11452
|
+
function* US({ payload: { collisionMode: e, checklist: n } }) {
|
|
11447
11453
|
if (!e) {
|
|
11448
11454
|
yield A(o);
|
|
11449
11455
|
return;
|
|
@@ -11457,12 +11463,12 @@ function* HS({ payload: { collisionMode: e, checklist: n } }) {
|
|
|
11457
11463
|
})]),
|
|
11458
11464
|
cancel: A(Z, 100)
|
|
11459
11465
|
});
|
|
11460
|
-
Object.prototype.hasOwnProperty.call(i, "cancel") && (yield A(
|
|
11466
|
+
Object.prototype.hasOwnProperty.call(i, "cancel") && (yield A(US, { payload: {
|
|
11461
11467
|
collisionMode: e,
|
|
11462
11468
|
checklist: n
|
|
11463
11469
|
} }));
|
|
11464
11470
|
}
|
|
11465
|
-
function*
|
|
11471
|
+
function* WS() {
|
|
11466
11472
|
let e = gn((e) => (s((t) => {
|
|
11467
11473
|
e({
|
|
11468
11474
|
type: c,
|
|
@@ -11476,27 +11482,27 @@ function* US() {
|
|
|
11476
11482
|
}), () => {}));
|
|
11477
11483
|
for (;;) yield k(yield O(e));
|
|
11478
11484
|
}
|
|
11479
|
-
function*
|
|
11485
|
+
function* GS() {
|
|
11480
11486
|
for (yield O(gc.SET_COLLISION_MODE);;) {
|
|
11481
|
-
let { payload: [e] } = yield O(G.UPDATE_CHECKLISTS), t = yield A(
|
|
11487
|
+
let { payload: [e] } = yield O(G.UPDATE_CHECKLISTS), t = yield A(ey);
|
|
11482
11488
|
if (!t) return;
|
|
11483
11489
|
let n = null, r = 0;
|
|
11484
11490
|
for (; !n && r <= 10;) yield Z(100), n = t.getRunningExperiences().find((e) => e.type === "launchpad"), r += 1;
|
|
11485
|
-
n && (yield A(
|
|
11491
|
+
n && (yield A(BS, e, n));
|
|
11486
11492
|
}
|
|
11487
11493
|
}
|
|
11488
|
-
function*
|
|
11494
|
+
function* KS() {
|
|
11489
11495
|
yield [
|
|
11490
|
-
j(US),
|
|
11491
11496
|
j(WS),
|
|
11492
|
-
j(
|
|
11493
|
-
j(
|
|
11494
|
-
j(yn,
|
|
11497
|
+
j(GS),
|
|
11498
|
+
j(VS),
|
|
11499
|
+
j(yn, c, HS),
|
|
11500
|
+
j(yn, gc.SET_COLLISION_MODE, US)
|
|
11495
11501
|
];
|
|
11496
11502
|
}
|
|
11497
11503
|
//#endregion
|
|
11498
11504
|
//#region src/scripts/clickstream/generate-selector.js
|
|
11499
|
-
var
|
|
11505
|
+
var qS = (/* @__PURE__ */ a(((e, t) => {
|
|
11500
11506
|
(function(n, r) {
|
|
11501
11507
|
typeof e == "object" && typeof t == "object" ? t.exports = r() : typeof e == "object" ? e.OptimalSelect = r() : n.OptimalSelect = r();
|
|
11502
11508
|
})(e, function() {
|
|
@@ -11895,48 +11901,48 @@ var KS = (/* @__PURE__ */ a(((e, t) => {
|
|
|
11895
11901
|
}
|
|
11896
11902
|
]);
|
|
11897
11903
|
});
|
|
11898
|
-
})))(),
|
|
11899
|
-
|
|
11900
|
-
YS,
|
|
11904
|
+
})))(), JS = /\d{2,}/, YS = /(ember(\d+))/, XS = /(appcues)/, ZS = /(ng-.+)/, QS = /GCP/, $S = /(sc-.+)/, eC = /^(class)$/, tC = /{/, nC = /^\s+$/, rC = /^(sm|md|lg|xl|2xl):/, iC = /\[.*]/, aC = [JS, YS], oC = [
|
|
11905
|
+
JS,
|
|
11901
11906
|
XS,
|
|
11902
11907
|
ZS,
|
|
11903
11908
|
QS,
|
|
11904
|
-
|
|
11909
|
+
$S,
|
|
11905
11910
|
nC,
|
|
11906
|
-
rC
|
|
11907
|
-
|
|
11908
|
-
|
|
11909
|
-
YS,
|
|
11911
|
+
rC,
|
|
11912
|
+
iC
|
|
11913
|
+
], sC = [ZS, eC], cC = [
|
|
11910
11914
|
JS,
|
|
11911
|
-
|
|
11912
|
-
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
+
XS,
|
|
11916
|
+
YS,
|
|
11917
|
+
tC
|
|
11918
|
+
], lC = /^[a-zA-Z_:][a-zA-Z0-9_:-]*$/, uC = (e) => !lC.test(e), dC = "|shadow-root|", fC = "|iframe|";
|
|
11919
|
+
function pC(e, t = {}) {
|
|
11920
|
+
return (0, qS.select)(e, {
|
|
11915
11921
|
ignore: {
|
|
11916
|
-
id: (e, t) =>
|
|
11917
|
-
class: (e, t) =>
|
|
11918
|
-
attribute: (e, t, n) =>
|
|
11922
|
+
id: (e, t) => aC.some((e) => e.test(t)),
|
|
11923
|
+
class: (e, t) => oC.some((e) => e.test(t)),
|
|
11924
|
+
attribute: (e, t, n) => uC(e) || sC.some((t) => t.test(e)) || cC.some((e) => e.test(t)) || n(e, t)
|
|
11919
11925
|
},
|
|
11920
11926
|
...t
|
|
11921
11927
|
});
|
|
11922
11928
|
}
|
|
11923
|
-
function
|
|
11929
|
+
function mC(e, t = "") {
|
|
11924
11930
|
let [n] = e;
|
|
11925
11931
|
if (!n) return t;
|
|
11926
11932
|
let r = n.getRootNode();
|
|
11927
|
-
if (r === document) return t ? `${
|
|
11933
|
+
if (r === document) return t ? `${pC(n)} ${t}` : pC(n);
|
|
11928
11934
|
if (r instanceof ShadowRoot) {
|
|
11929
11935
|
let i = e.indexOf(r);
|
|
11930
|
-
return
|
|
11936
|
+
return mC(e.slice(i + 1), `${dC} ${pC(n, { root: e[i - 1] })} ${t}`);
|
|
11931
11937
|
}
|
|
11932
11938
|
let i = r.parentWindow || r.defaultView;
|
|
11933
11939
|
if (i !== window) {
|
|
11934
11940
|
let a = e.indexOf(r);
|
|
11935
|
-
return
|
|
11941
|
+
return mC(e.slice(a + 1), `${pC(i.frameElement)} ${fC} ${pC(n, { root: e[a - 1] })} ${t}`);
|
|
11936
11942
|
}
|
|
11937
11943
|
return t;
|
|
11938
11944
|
}
|
|
11939
|
-
function
|
|
11945
|
+
function hC(e) {
|
|
11940
11946
|
return [
|
|
11941
11947
|
"href",
|
|
11942
11948
|
"src",
|
|
@@ -11951,7 +11957,7 @@ function mC(e) {
|
|
|
11951
11957
|
return r && (t[n] = r), t;
|
|
11952
11958
|
}, {});
|
|
11953
11959
|
}
|
|
11954
|
-
function
|
|
11960
|
+
function gC(e) {
|
|
11955
11961
|
let t = [], n = e;
|
|
11956
11962
|
for (; n && n.nodeType === Node.ELEMENT_NODE;) {
|
|
11957
11963
|
let e = n.tagName.toLowerCase();
|
|
@@ -11967,12 +11973,12 @@ function hC(e) {
|
|
|
11967
11973
|
}
|
|
11968
11974
|
return t.join(" > ");
|
|
11969
11975
|
}
|
|
11970
|
-
function
|
|
11976
|
+
function _C(e) {
|
|
11971
11977
|
let t = e.tagName.toLowerCase(), n = {
|
|
11972
11978
|
tagName: e.tagName,
|
|
11973
|
-
path:
|
|
11979
|
+
path: gC(e),
|
|
11974
11980
|
...e.classList.length > 0 ? { class: [...e.classList] } : {},
|
|
11975
|
-
...
|
|
11981
|
+
...hC(e)
|
|
11976
11982
|
};
|
|
11977
11983
|
if (t === "button" || t === "input" && ["submit", "button"].includes(e.getAttribute("type"))) {
|
|
11978
11984
|
let t = e.value || e.getAttribute("value");
|
|
@@ -11986,7 +11992,7 @@ function gC(e) {
|
|
|
11986
11992
|
}
|
|
11987
11993
|
//#endregion
|
|
11988
11994
|
//#region src/scripts/clickstream/pii-filter.js
|
|
11989
|
-
var
|
|
11995
|
+
var vC = "[redacted]", yC = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, bC = /(^|[^\w/.-])(?:\+?1[\s\-.]?)?\(?\d{3}\)?[\s\-.]?\d{3}[\s\-.]?\d{4}\b/g, xC = /(^|[^\d/])\d{3}[-\s]?\d{2}[-\s]?\d{4}\b(?!\/)/g, SC = /(^|[^\w/.-])(?:\d[ -]?){13,16}\b(?!\/)/g, CC = /(^|[^/])(?:\b\d{1,2}[/-]\d{1,2}[/-]\d{4}\b|\b\d{4}[/-]\d{2}[/-]\d{2}\b|\b(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s+\d{1,2},?\s+\d{4}\b|\b\d{1,2}\s+(?:Jan(?:uary)?|Feb(?:ruary)?|Mar(?:ch)?|Apr(?:il)?|May|Jun(?:e)?|Jul(?:y)?|Aug(?:ust)?|Sep(?:tember)?|Oct(?:ober)?|Nov(?:ember)?|Dec(?:ember)?)\s+\d{4}\b)(?!\/)/gi, wC = /(^|[^/])\b[1-9][ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY0-9][0-9][ACDEFGHJKMNPQRTUVWXY][ACDEFGHJKMNPQRTUVWXY0-9][0-9][ACDEFGHJKMNPQRTUVWXY]{2}[0-9]{2}\b(?!\/)/gi, TC = /(^|[^/])\b\d{2}\.\d{2}\.\d{2}-\d{3}\.\d{2}\b(?!\/)/g, EC = /\b\d{2}(?:0[1-9]|1[0-2])\d{2}[-+]\d{4}\b/g, DC = /\b\d{2}\.?(?:0[1-9]|1[0-2])\.?\d{2}[-+A]\d{3}[A-Z]\b/gi, OC = /\b\d{7}[A-W]W?\b/gi, kC = /\b[A-Z]{6}\d{2}[ABCDEHLMPRST]\d{2}[A-Z0-9]{5}\b/gi, AC = /\b[0-9XYZ]\d{7}[TRWAGMYFPDXBNJZSQVHLCKE]\b/gi, jC = /\b756\.?\d{4}\.?\d{4}\.?\d{2}\b/g, MC = /\b[A-CEGHJ-PR-TW-Z][A-CEGHJ-NPR-TW-Z]\d{6}[A-D]\b/g, NC = /\b[A-Z]{2}[ ]?\d{2}(?:[ ]?[A-Z0-9]{4}){3,8}(?:[ ]?[A-Z0-9]{1,3})?\b/g, PC = new Set([
|
|
11990
11996
|
"email",
|
|
11991
11997
|
"ssn",
|
|
11992
11998
|
"password",
|
|
@@ -12007,7 +12013,7 @@ var _C = "[redacted]", vC = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, y
|
|
|
12007
12013
|
"diagnosis",
|
|
12008
12014
|
"patient_id",
|
|
12009
12015
|
"npi"
|
|
12010
|
-
]),
|
|
12016
|
+
]), FC = ["href", "src"], IC = [
|
|
12011
12017
|
"text",
|
|
12012
12018
|
"href",
|
|
12013
12019
|
"src",
|
|
@@ -12019,11 +12025,11 @@ var _C = "[redacted]", vC = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g, y
|
|
|
12019
12025
|
"id",
|
|
12020
12026
|
"value",
|
|
12021
12027
|
"path"
|
|
12022
|
-
],
|
|
12023
|
-
function LC(e) {
|
|
12024
|
-
return typeof e == "string" ? e.replace(vC, _C).replace(MC, _C).replace(yC, IC).replace(bC, IC).replace(xC, IC).replace(SC, IC).replace(CC, IC).replace(wC, IC).replace(TC, _C).replace(EC, _C).replace(DC, _C).replace(OC, _C).replace(kC, _C).replace(AC, _C).replace(jC, _C) : e;
|
|
12025
|
-
}
|
|
12028
|
+
], LC = `$1${vC}`;
|
|
12026
12029
|
function RC(e) {
|
|
12030
|
+
return typeof e == "string" ? e.replace(yC, vC).replace(NC, vC).replace(bC, LC).replace(xC, LC).replace(SC, LC).replace(CC, LC).replace(wC, LC).replace(TC, LC).replace(EC, vC).replace(DC, vC).replace(OC, vC).replace(kC, vC).replace(AC, vC).replace(jC, vC).replace(MC, vC) : e;
|
|
12031
|
+
}
|
|
12032
|
+
function zC(e) {
|
|
12027
12033
|
if (typeof e != "string") return e;
|
|
12028
12034
|
try {
|
|
12029
12035
|
let t = new URL(e);
|
|
@@ -12032,48 +12038,48 @@ function RC(e) {
|
|
|
12032
12038
|
return e.replace(/\?[^#]*/, "");
|
|
12033
12039
|
}
|
|
12034
12040
|
}
|
|
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 =
|
|
12041
|
+
function BC(e) {
|
|
12042
|
+
let { attributes: t = {} } = e, n = (t.name || "").toLowerCase(), r = (t.id || "").toLowerCase(), i = PC.has(n) || PC.has(r), a = { ...t };
|
|
12043
|
+
for (let e of FC) a[e] !== void 0 && (a[e] = zC(a[e]));
|
|
12044
|
+
for (let e of IC) a[e] !== void 0 && (a[e] = RC(a[e]));
|
|
12045
|
+
return a.identifier !== void 0 && a.selector !== void 0 && (a.identifier = `selector=${encodeURIComponent(a.selector)}`), i && (a.text !== void 0 && (a.text = vC), a.value !== void 0 && (a.value = vC)), {
|
|
12040
12046
|
...e,
|
|
12041
12047
|
attributes: a
|
|
12042
12048
|
};
|
|
12043
12049
|
}
|
|
12044
12050
|
//#endregion
|
|
12045
12051
|
//#region src/scripts/clickstream/saga.js
|
|
12046
|
-
var
|
|
12052
|
+
var VC = 3e4, HC = new Set([
|
|
12047
12053
|
"INPUT",
|
|
12048
12054
|
"TEXTAREA",
|
|
12049
12055
|
"SELECT"
|
|
12050
|
-
]),
|
|
12056
|
+
]), UC = new Set([
|
|
12051
12057
|
"BUTTON",
|
|
12052
12058
|
"A",
|
|
12053
12059
|
"INPUT",
|
|
12054
12060
|
"SELECT"
|
|
12055
12061
|
]);
|
|
12056
|
-
function
|
|
12062
|
+
function WC(e) {
|
|
12057
12063
|
return e.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? e.host : e.parentNode;
|
|
12058
12064
|
}
|
|
12059
|
-
function
|
|
12065
|
+
function GC(e) {
|
|
12060
12066
|
if (e.length === 0) return null;
|
|
12061
12067
|
let [t] = e;
|
|
12062
|
-
return t.tagName === "SLOT" ?
|
|
12068
|
+
return t.tagName === "SLOT" ? GC(e.slice(1)) : e;
|
|
12063
12069
|
}
|
|
12064
|
-
function
|
|
12065
|
-
let t = [e], n =
|
|
12066
|
-
for (; n;) t.push(n), n =
|
|
12067
|
-
return
|
|
12070
|
+
function KC(e) {
|
|
12071
|
+
let t = [e], n = WC(e);
|
|
12072
|
+
for (; n;) t.push(n), n = WC(n);
|
|
12073
|
+
return GC(t);
|
|
12068
12074
|
}
|
|
12069
|
-
function
|
|
12075
|
+
function qC() {
|
|
12070
12076
|
return {
|
|
12071
12077
|
url: window.location.href,
|
|
12072
12078
|
sdk_version: window.AppcuesBundleSettings && window.AppcuesBundleSettings.VERSION
|
|
12073
12079
|
};
|
|
12074
12080
|
}
|
|
12075
|
-
function
|
|
12076
|
-
let [t] = e.composedPath(), n =
|
|
12081
|
+
function JC(e) {
|
|
12082
|
+
let [t] = e.composedPath(), n = KC(t), [r] = n, i = _C(r), a = mC(n);
|
|
12077
12083
|
return bu("appcues:clickstream", {
|
|
12078
12084
|
interaction: "click",
|
|
12079
12085
|
identifier: `selector=${encodeURIComponent(a)}`,
|
|
@@ -12081,10 +12087,10 @@ function qC(e) {
|
|
|
12081
12087
|
...i
|
|
12082
12088
|
});
|
|
12083
12089
|
}
|
|
12084
|
-
function
|
|
12090
|
+
function YC(e) {
|
|
12085
12091
|
let [t] = e.composedPath();
|
|
12086
|
-
if (!t || !
|
|
12087
|
-
let n =
|
|
12092
|
+
if (!t || !HC.has(t.tagName)) return null;
|
|
12093
|
+
let n = KC(t), [r] = n, i = _C(r), a = mC(n);
|
|
12088
12094
|
return bu("appcues:clickstream", {
|
|
12089
12095
|
interaction: "input-change",
|
|
12090
12096
|
identifier: `selector=${encodeURIComponent(a)}`,
|
|
@@ -12092,20 +12098,20 @@ function JC(e) {
|
|
|
12092
12098
|
...i
|
|
12093
12099
|
});
|
|
12094
12100
|
}
|
|
12095
|
-
function*
|
|
12101
|
+
function* XC(e) {
|
|
12096
12102
|
let t = yield M(Jn);
|
|
12097
12103
|
(yield A(ig, t)) || (yield A(By), t = yield M(Jn));
|
|
12098
|
-
let { id: n } = yield M(ar), r = yield A(
|
|
12099
|
-
yield A(cg, t, {}, e, !1, r, n, {},
|
|
12104
|
+
let { id: n } = yield M(ar), r = yield A(m_, h, v);
|
|
12105
|
+
yield A(cg, t, {}, e, !1, r, n, {}, qC());
|
|
12100
12106
|
}
|
|
12101
|
-
function
|
|
12107
|
+
function ZC() {
|
|
12102
12108
|
return gn((e) => {
|
|
12103
12109
|
let t = (t) => {
|
|
12104
12110
|
try {
|
|
12105
|
-
e(
|
|
12111
|
+
e(JC(t));
|
|
12106
12112
|
} catch {}
|
|
12107
12113
|
}, n = (e) => {
|
|
12108
|
-
(e.key === " " || e.key === "Enter") && !
|
|
12114
|
+
(e.key === " " || e.key === "Enter") && !UC.has(e.target.tagName) && t(e);
|
|
12109
12115
|
};
|
|
12110
12116
|
try {
|
|
12111
12117
|
return document.addEventListener("click", t, !0), document.addEventListener("keyup", n, !0), () => {
|
|
@@ -12116,11 +12122,11 @@ function XC() {
|
|
|
12116
12122
|
}
|
|
12117
12123
|
}, $t.expanding(10));
|
|
12118
12124
|
}
|
|
12119
|
-
function
|
|
12125
|
+
function QC() {
|
|
12120
12126
|
return gn((e) => {
|
|
12121
12127
|
let t = (t) => {
|
|
12122
12128
|
try {
|
|
12123
|
-
let n =
|
|
12129
|
+
let n = YC(t);
|
|
12124
12130
|
n && e(n);
|
|
12125
12131
|
} catch {}
|
|
12126
12132
|
};
|
|
@@ -12133,12 +12139,12 @@ function ZC() {
|
|
|
12133
12139
|
}
|
|
12134
12140
|
}, $t.expanding(10));
|
|
12135
12141
|
}
|
|
12136
|
-
function*
|
|
12142
|
+
function* $C(e, t) {
|
|
12137
12143
|
yield yn(e, function* (e) {
|
|
12138
12144
|
let { id: n } = yield M(ar);
|
|
12139
|
-
yield k(t,
|
|
12145
|
+
yield k(t, BC({
|
|
12140
12146
|
...e,
|
|
12141
|
-
context:
|
|
12147
|
+
context: qC(),
|
|
12142
12148
|
attributes: {
|
|
12143
12149
|
...e.attributes,
|
|
12144
12150
|
sessionId: n
|
|
@@ -12146,11 +12152,11 @@ function* QC(e, t) {
|
|
|
12146
12152
|
}));
|
|
12147
12153
|
});
|
|
12148
12154
|
}
|
|
12149
|
-
function*
|
|
12150
|
-
let e = yield A(hn, $t.expanding(10)), t = yield A(hn), n =
|
|
12151
|
-
yield*
|
|
12152
|
-
let r =
|
|
12153
|
-
yield*
|
|
12155
|
+
function* ew() {
|
|
12156
|
+
let e = yield A(hn, $t.expanding(10)), t = yield A(hn), n = ZC();
|
|
12157
|
+
yield* $C(n, e);
|
|
12158
|
+
let r = QC();
|
|
12159
|
+
yield* $C(r, e);
|
|
12154
12160
|
let i = () => {
|
|
12155
12161
|
t.put("INTERRUPT");
|
|
12156
12162
|
};
|
|
@@ -12158,72 +12164,72 @@ function* $C() {
|
|
|
12158
12164
|
try {
|
|
12159
12165
|
for (;;) {
|
|
12160
12166
|
yield jt({
|
|
12161
|
-
delay: $e(
|
|
12167
|
+
delay: $e(VC),
|
|
12162
12168
|
force: O(t)
|
|
12163
12169
|
});
|
|
12164
12170
|
let n = yield Rt(e);
|
|
12165
12171
|
if (n.length > 0) try {
|
|
12166
|
-
yield A(
|
|
12172
|
+
yield A(XC, n);
|
|
12167
12173
|
} catch {}
|
|
12168
12174
|
}
|
|
12169
12175
|
} finally {
|
|
12170
12176
|
window.removeEventListener("beforeunload", i), n.close(), r.close();
|
|
12171
12177
|
let a = yield Rt(e);
|
|
12172
|
-
a.length > 0 && (yield A(
|
|
12178
|
+
a.length > 0 && (yield A(XC, a)), e.close(), t.close();
|
|
12173
12179
|
}
|
|
12174
12180
|
}
|
|
12175
12181
|
//#endregion
|
|
12176
12182
|
//#region src/styles/container.css?url
|
|
12177
|
-
var
|
|
12178
|
-
window.performance && window.performance.mark && window.performance.mark("apc-init"),
|
|
12179
|
-
var
|
|
12183
|
+
var tw = "/generic/main/7.29.4/container.408e6ad8d51f34b3b17d940f8e5d454920417883.css", nw = "sha256-/y6BvK8MW/je0VotMw6UgvH+b35y1S2B9dh1dCfqhFg=";
|
|
12184
|
+
window.performance && window.performance.mark && window.performance.mark("apc-init"), Pg();
|
|
12185
|
+
var rw = window.AppcuesBundleSettings;
|
|
12180
12186
|
[...document.documentElement.querySelectorAll("link")].forEach((e) => {
|
|
12181
12187
|
/\/appcues(\.min|\.debug)?\.css$/.test(e.href) && e.parentElement && e.parentElement.removeChild(e);
|
|
12182
12188
|
});
|
|
12183
|
-
var
|
|
12184
|
-
|
|
12185
|
-
var
|
|
12186
|
-
N.object(
|
|
12187
|
-
var
|
|
12188
|
-
|
|
12189
|
-
var
|
|
12190
|
-
settings:
|
|
12189
|
+
var iw = document.createElement("link");
|
|
12190
|
+
iw.setAttribute("rel", "stylesheet"), iw.setAttribute("type", "text/css"), iw.setAttribute("integrity", nw), iw.setAttribute("crossorigin", "anonymous"), iw.setAttribute("href", ws(tw)), document.head.appendChild(iw);
|
|
12191
|
+
var aw = window[ce];
|
|
12192
|
+
N.object(aw) && N.defined(aw.gaTracker) && rw.integrations.ga && (rw.integrations.ga.trackerName = aw.gaTracker);
|
|
12193
|
+
var ow = null, sw = document.documentElement.querySelector("script[src*=\"fast.appcues\"]");
|
|
12194
|
+
sw && (ow = sw.getAttribute("data-user-id"));
|
|
12195
|
+
var cw = Sh({
|
|
12196
|
+
settings: rw,
|
|
12191
12197
|
sagas: [
|
|
12192
|
-
|
|
12193
|
-
|
|
12194
|
-
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12205
|
-
|
|
12206
|
-
|
|
12198
|
+
wb,
|
|
12199
|
+
Qv,
|
|
12200
|
+
kx,
|
|
12201
|
+
cv,
|
|
12202
|
+
zx,
|
|
12203
|
+
aS,
|
|
12204
|
+
Xx,
|
|
12205
|
+
gS,
|
|
12206
|
+
vS,
|
|
12207
|
+
CS,
|
|
12208
|
+
Gx,
|
|
12209
|
+
TS,
|
|
12210
|
+
U_,
|
|
12211
|
+
MS,
|
|
12212
|
+
my,
|
|
12207
12213
|
ud,
|
|
12208
|
-
|
|
12214
|
+
PS,
|
|
12209
12215
|
My,
|
|
12210
|
-
|
|
12216
|
+
KS,
|
|
12211
12217
|
function* () {
|
|
12212
|
-
yield j(
|
|
12218
|
+
yield j(Bb, rw.events);
|
|
12213
12219
|
},
|
|
12214
12220
|
function* () {
|
|
12215
|
-
|
|
12221
|
+
rw.account?.clickstreamEnabled === !0 && (yield j(ew));
|
|
12216
12222
|
}
|
|
12217
12223
|
],
|
|
12218
12224
|
onStateChange: (e) => {
|
|
12219
|
-
|
|
12225
|
+
vx(e), Ex(e);
|
|
12220
12226
|
}
|
|
12221
12227
|
});
|
|
12222
|
-
|
|
12223
|
-
var
|
|
12224
|
-
|
|
12225
|
-
if (
|
|
12226
|
-
let t =
|
|
12228
|
+
cw.dispatch(tl({ [C.DEBUGGER]: Dx(cw.dispatch, cw.getState) })), cw.dispatch(vc(rw, Wg(cw), kg, Gg(rw, cw.getState)));
|
|
12229
|
+
var lw = Qb(cw);
|
|
12230
|
+
rw && rw.snippets && $b(rw.accountId, rw.snippets), rw && rw.integrations && Object.keys(rw.integrations).forEach((e) => {
|
|
12231
|
+
if (rw.integrations[e].isEnabled) {
|
|
12232
|
+
let t = lw[`init${{
|
|
12227
12233
|
mixpanel: "Mixpanel",
|
|
12228
12234
|
heap: "Heap",
|
|
12229
12235
|
intercom: "Intercom",
|
|
@@ -12247,6 +12253,6 @@ nw && nw.snippets && Qb(nw.accountId, nw.snippets), nw && nw.integrations && Obj
|
|
|
12247
12253
|
}[e]}`];
|
|
12248
12254
|
t && t();
|
|
12249
12255
|
}
|
|
12250
|
-
}), /hey_appcues/i.test(window.location.search) &&
|
|
12256
|
+
}), /hey_appcues/i.test(window.location.search) && lw.debug(), ow !== null && lw.identify(ow);
|
|
12251
12257
|
//#endregion
|
|
12252
|
-
export {
|
|
12258
|
+
export { lw as default };
|