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