@appcues/web-sdk 7.8.0 → 7.11.1
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 +48 -0
- package/README.md +1 -1
- package/build/{index.CCkUXtsp.js → index.CJIQdw-Y.js} +721 -716
- package/build/{index.CcKx_YAn.js → index.DH6u0iuG.js} +1 -1
- package/build/{index.npm.B2lQacr5.js → index.npm.BCTxf1Tq.js} +1 -1
- package/build/index.npm.js +1 -1
- package/build/{open-builder.C0B3IUtT.js → open-builder.DxQABU78.js} +3633 -3473
- package/package.json +26 -29
- /package/build/{checklist.52175bcd669743890b973ef6e81a2996cf849c5e.css → checklist.a78f4df397e3b099a535f68c857dd828db518b74.css} +0 -0
- /package/build/{container.52175bcd669743890b973ef6e81a2996cf849c5e.css → container.a78f4df397e3b099a535f68c857dd828db518b74.css} +0 -0
- /package/build/{debugger.52175bcd669743890b973ef6e81a2996cf849c5e.css → debugger.a78f4df397e3b099a535f68c857dd828db518b74.css} +0 -0
- /package/build/{modal-step-legacy-render.52175bcd669743890b973ef6e81a2996cf849c5e.css → modal-step-legacy-render.a78f4df397e3b099a535f68c857dd828db518b74.css} +0 -0
- /package/build/{modal.52175bcd669743890b973ef6e81a2996cf849c5e.css → modal.a78f4df397e3b099a535f68c857dd828db518b74.css} +0 -0
- /package/build/{satisfaction-survey.52175bcd669743890b973ef6e81a2996cf849c5e.css → satisfaction-survey.a78f4df397e3b099a535f68c857dd828db518b74.css} +0 -0
- /package/build/{test-mode.52175bcd669743890b973ef6e81a2996cf849c5e.css → test-mode.a78f4df397e3b099a535f68c857dd828db518b74.css} +0 -0
- /package/build/{tooltip.52175bcd669743890b973ef6e81a2996cf849c5e.css → tooltip.a78f4df397e3b099a535f68c857dd828db518b74.css} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as z, a as Un, A as Tt, M as Cd, b as _d, c as te, d as
|
|
1
|
+
import { C as z, a as Un, A as Tt, M as Cd, b as _d, c as te, d as Gt, V as go, e as _r, f as Ke, g as wt, B as mt, T as Wi, h as Id, i as Ad, j as vd, k as Vo, l as Pn, F as Y, G as Wo, m as Nl, E as cn, n as bd, D as Go, o as wd, p as yi, L as Fe, S as Bs, q as jo, r as Ie, s as jt, t as qo, N as Dn, u as kl, v as Nd, w as yo, W as kd, x as ci, y as Od, z as Cn, U as Ko, H as Rd, I as Ld, J as Yo, K as ln, O as So, P as Si, Q as li, R as xd, X as Gi, Y as Ol, Z as Hn, _ as ji, $ as Rn, a0 as To, a1 as Vs, a2 as Mn, a3 as Pd, a4 as Dd } from "./index.npm.BCTxf1Tq.js";
|
|
2
2
|
var Fd = Object.assign || function(e) {
|
|
3
3
|
for (var t = 1; t < arguments.length; t++) {
|
|
4
4
|
var n = arguments[t];
|
|
@@ -84,7 +84,7 @@ var M = {
|
|
|
84
84
|
zo(n, r) && (t[r] = n[r]);
|
|
85
85
|
}
|
|
86
86
|
};
|
|
87
|
-
function
|
|
87
|
+
function Ti(e, t) {
|
|
88
88
|
var n = e.indexOf(t);
|
|
89
89
|
n >= 0 && e.splice(n, 1);
|
|
90
90
|
}
|
|
@@ -149,7 +149,7 @@ var Gs = function(t) {
|
|
|
149
149
|
return function(n) {
|
|
150
150
|
return t(Object.defineProperty(n, Pl, { value: !0 }));
|
|
151
151
|
};
|
|
152
|
-
}, Bl = /* @__PURE__ */ _n("IO"),
|
|
152
|
+
}, Bl = /* @__PURE__ */ _n("IO"), ai = "TAKE", Jo = "PUT", Vl = "ALL", Wl = "RACE", Gl = "CALL", jd = "CPS", Qo = "FORK", jl = "JOIN", ql = "CANCEL", Kl = "SELECT", Yl = "ACTION_CHANNEL", zl = "CANCELLED", Xl = "FLUSH", Jl = "GET_CONTEXT", qd = "SET_CONTEXT", Ql = `
|
|
153
153
|
(HINT: if you are getting this errors in tests, consider using createMockTask from redux-saga/utils)`, et = function(t, n) {
|
|
154
154
|
var r;
|
|
155
155
|
return r = {}, r[Bl] = !0, r[t] = n, r;
|
|
@@ -159,14 +159,14 @@ var Gs = function(t) {
|
|
|
159
159
|
function W() {
|
|
160
160
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "*";
|
|
161
161
|
if (arguments.length && ge(arguments[0], M.notUndef, "take(patternOrChannel): patternOrChannel is undefined"), M.pattern(e))
|
|
162
|
-
return et(
|
|
162
|
+
return et(ai, { pattern: e });
|
|
163
163
|
if (M.channel(e))
|
|
164
|
-
return et(
|
|
164
|
+
return et(ai, { channel: e });
|
|
165
165
|
throw new Error("take(patternOrChannel): argument " + String(e) + " is not valid channel or a valid pattern");
|
|
166
166
|
}
|
|
167
167
|
W.maybe = function() {
|
|
168
168
|
var e = W.apply(void 0, arguments);
|
|
169
|
-
return e[
|
|
169
|
+
return e[ai].maybe = !0, e;
|
|
170
170
|
};
|
|
171
171
|
W.maybe;
|
|
172
172
|
function g(e, t) {
|
|
@@ -205,7 +205,7 @@ function F(e) {
|
|
|
205
205
|
n[r - 1] = arguments[r];
|
|
206
206
|
return et(Qo, Zl("fork", e, n));
|
|
207
207
|
}
|
|
208
|
-
function
|
|
208
|
+
function Nt(e) {
|
|
209
209
|
for (var t = arguments.length, n = Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++)
|
|
210
210
|
n[r - 1] = arguments[r];
|
|
211
211
|
return Kd(F.apply(void 0, [e].concat(n)));
|
|
@@ -238,7 +238,7 @@ function v(e) {
|
|
|
238
238
|
function Yd(e, t) {
|
|
239
239
|
return ge(e, M.notUndef, "actionChannel(pattern,...): argument pattern is undefined"), arguments.length > 1 && (ge(t, M.notUndef, "actionChannel(pattern, buffer): argument buffer is undefined"), ge(t, M.buffer, "actionChannel(pattern, buffer): argument " + t + " is not a valid buffer")), et(Yl, { pattern: e, buffer: t });
|
|
240
240
|
}
|
|
241
|
-
function
|
|
241
|
+
function Ci() {
|
|
242
242
|
return et(zl, {});
|
|
243
243
|
}
|
|
244
244
|
function zd(e) {
|
|
@@ -252,7 +252,7 @@ var We = function(t) {
|
|
|
252
252
|
return n && n[Bl] && n[t];
|
|
253
253
|
};
|
|
254
254
|
}, Me = {
|
|
255
|
-
take: /* @__PURE__ */ We(
|
|
255
|
+
take: /* @__PURE__ */ We(ai),
|
|
256
256
|
put: /* @__PURE__ */ We(Jo),
|
|
257
257
|
all: /* @__PURE__ */ We(Vl),
|
|
258
258
|
race: /* @__PURE__ */ We(Wl),
|
|
@@ -267,7 +267,7 @@ var We = function(t) {
|
|
|
267
267
|
flush: /* @__PURE__ */ We(Xl),
|
|
268
268
|
getContext: /* @__PURE__ */ We(Jl),
|
|
269
269
|
setContext: /* @__PURE__ */ We(qd)
|
|
270
|
-
}, js = { done: !0, value: void 0 },
|
|
270
|
+
}, js = { done: !0, value: void 0 }, ni = {};
|
|
271
271
|
function Jd(e) {
|
|
272
272
|
return M.channel(e) ? "channel" : Array.isArray(e) ? String(e.map(function(t) {
|
|
273
273
|
return String(t);
|
|
@@ -276,20 +276,20 @@ function Jd(e) {
|
|
|
276
276
|
function Qd(e, t) {
|
|
277
277
|
var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : "iterator", r = void 0, i = t;
|
|
278
278
|
function o(s, c) {
|
|
279
|
-
if (i ===
|
|
279
|
+
if (i === ni)
|
|
280
280
|
return js;
|
|
281
281
|
if (c)
|
|
282
|
-
throw i =
|
|
282
|
+
throw i = ni, c;
|
|
283
283
|
r && r(s);
|
|
284
284
|
var l = e[i](), u = l[0], d = l[1], f = l[2];
|
|
285
|
-
return i = u, r = f, i ===
|
|
285
|
+
return i = u, r = f, i === ni ? js : d;
|
|
286
286
|
}
|
|
287
287
|
return Ao(o, function(s) {
|
|
288
288
|
return o(null, s);
|
|
289
289
|
}, n, !0);
|
|
290
290
|
}
|
|
291
291
|
var Zd = "Channel's Buffer overflow!", ea = 1, ef = 2, ta = 3, na = 4, tf = { isEmpty: Fl, put: Pe, take: Pe };
|
|
292
|
-
function
|
|
292
|
+
function Gr() {
|
|
293
293
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10, t = arguments[1], n = new Array(e), r = 0, i = 0, o = 0, s = function(d) {
|
|
294
294
|
n[i] = d, i = (i + 1) % e, r++;
|
|
295
295
|
}, c = function() {
|
|
@@ -332,18 +332,18 @@ var Gn = {
|
|
|
332
332
|
return tf;
|
|
333
333
|
},
|
|
334
334
|
fixed: function(t) {
|
|
335
|
-
return
|
|
335
|
+
return Gr(t, ea);
|
|
336
336
|
},
|
|
337
337
|
dropping: function(t) {
|
|
338
|
-
return
|
|
338
|
+
return Gr(t, ef);
|
|
339
339
|
},
|
|
340
340
|
sliding: function(t) {
|
|
341
|
-
return
|
|
341
|
+
return Gr(t, ta);
|
|
342
342
|
},
|
|
343
343
|
expanding: function(t) {
|
|
344
|
-
return
|
|
344
|
+
return Gr(t, na);
|
|
345
345
|
}
|
|
346
|
-
}, ra = [],
|
|
346
|
+
}, ra = [], _i = 0;
|
|
347
347
|
function nf(e) {
|
|
348
348
|
try {
|
|
349
349
|
Zo(), e();
|
|
@@ -352,17 +352,17 @@ function nf(e) {
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
function ia(e) {
|
|
355
|
-
ra.push(e),
|
|
355
|
+
ra.push(e), _i || (Zo(), sa());
|
|
356
356
|
}
|
|
357
357
|
function Zo() {
|
|
358
|
-
|
|
358
|
+
_i++;
|
|
359
359
|
}
|
|
360
360
|
function oa() {
|
|
361
|
-
|
|
361
|
+
_i--;
|
|
362
362
|
}
|
|
363
363
|
function sa() {
|
|
364
364
|
oa();
|
|
365
|
-
for (var e = void 0; !
|
|
365
|
+
for (var e = void 0; !_i && (e = ra.shift()) !== void 0; )
|
|
366
366
|
nf(e);
|
|
367
367
|
}
|
|
368
368
|
var rf = Object.assign || function(e) {
|
|
@@ -372,14 +372,14 @@ var rf = Object.assign || function(e) {
|
|
|
372
372
|
Object.prototype.hasOwnProperty.call(n, r) && (e[r] = n[r]);
|
|
373
373
|
}
|
|
374
374
|
return e;
|
|
375
|
-
}, ca = "@@redux-saga/CHANNEL_END", yr = { type: ca },
|
|
375
|
+
}, ca = "@@redux-saga/CHANNEL_END", yr = { type: ca }, ri = function(t) {
|
|
376
376
|
return t && t.type === ca;
|
|
377
377
|
};
|
|
378
378
|
function of() {
|
|
379
379
|
var e = [];
|
|
380
380
|
function t(r) {
|
|
381
381
|
return e.push(r), function() {
|
|
382
|
-
return
|
|
382
|
+
return Ti(e, r);
|
|
383
383
|
};
|
|
384
384
|
}
|
|
385
385
|
function n(r) {
|
|
@@ -414,7 +414,7 @@ function la() {
|
|
|
414
414
|
}
|
|
415
415
|
function o(l) {
|
|
416
416
|
r(), ge(l, M.func, "channel.take's callback must be a function"), t && e.isEmpty() ? l(yr) : e.isEmpty() ? (n.push(l), l.cancel = function() {
|
|
417
|
-
return
|
|
417
|
+
return Ti(n, l);
|
|
418
418
|
}) : l(e.take());
|
|
419
419
|
}
|
|
420
420
|
function s(l) {
|
|
@@ -445,13 +445,13 @@ function la() {
|
|
|
445
445
|
}
|
|
446
446
|
};
|
|
447
447
|
}
|
|
448
|
-
function
|
|
448
|
+
function kr(e) {
|
|
449
449
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : Gn.none(), n = arguments[2];
|
|
450
450
|
arguments.length > 2 && ge(n, M.func, "Invalid match function passed to eventChannel");
|
|
451
451
|
var r = la(t), i = function() {
|
|
452
452
|
r.__closed__ || (o && o(), r.close());
|
|
453
453
|
}, o = e(function(s) {
|
|
454
|
-
if (
|
|
454
|
+
if (ri(s)) {
|
|
455
455
|
i();
|
|
456
456
|
return;
|
|
457
457
|
}
|
|
@@ -466,7 +466,7 @@ function Nr(e) {
|
|
|
466
466
|
};
|
|
467
467
|
}
|
|
468
468
|
function lf(e) {
|
|
469
|
-
var t =
|
|
469
|
+
var t = kr(function(n) {
|
|
470
470
|
return e(function(r) {
|
|
471
471
|
if (r[Pl]) {
|
|
472
472
|
n(r);
|
|
@@ -496,7 +496,7 @@ function af(e, t) {
|
|
|
496
496
|
return ["q2", o, l];
|
|
497
497
|
},
|
|
498
498
|
q2: function() {
|
|
499
|
-
return c === yr ? [
|
|
499
|
+
return c === yr ? [ni] : ["q1", s(c)];
|
|
500
500
|
}
|
|
501
501
|
}, "q1", "takeEvery(" + Jd(e) + ", " + t.name + ")");
|
|
502
502
|
}
|
|
@@ -557,7 +557,7 @@ function lt(e, t) {
|
|
|
557
557
|
const jn = (e) => e && e.type === z.JOURNEY, qn = P((e) => jn(e) ? e.attributes.steps : { [e.id]: e }, {}), ua = P((e) => jn(e) ? Object.keys(qn(e)).length : 1, 0), An = P((e) => {
|
|
558
558
|
const t = e.attributes;
|
|
559
559
|
return t.children || t.steps || t.hotspots || t.annotations;
|
|
560
|
-
}, []),
|
|
560
|
+
}, []), mn = P((e, t) => {
|
|
561
561
|
let n = -1;
|
|
562
562
|
return An(e).forEach((r, i) => {
|
|
563
563
|
r.id === t && (n = i);
|
|
@@ -574,12 +574,12 @@ const jn = (e) => e && e.type === z.JOURNEY, qn = P((e) => jn(e) ? e.attributes.
|
|
|
574
574
|
), fa = P((e, t) => {
|
|
575
575
|
const n = vo(e, t);
|
|
576
576
|
return e.type === z.HOTSPOTS && Kn(e) && n.ui_conditions && n.ui_conditions.next && n.ui_conditions.next.type === Un.WAIT_FOR_MOUSE_EVENT;
|
|
577
|
-
}, !1),
|
|
577
|
+
}, !1), Or = P((e) => e.type === z.ACTION && e.attributes.action_type === Tt.REDIRECT, !1), on = P((e) => e.type === z.ACTION && e.attributes.action_type === Tt.WAIT_FOR_PAGE, !1), ff = P(
|
|
578
578
|
(e) => e.type === z.ACTION,
|
|
579
579
|
!1
|
|
580
580
|
), Ln = P(
|
|
581
581
|
(e) => e.type !== z.SATISFACTION_SURVEY
|
|
582
|
-
),
|
|
582
|
+
), Dt = P((e, t) => {
|
|
583
583
|
if (jn(e)) {
|
|
584
584
|
let n;
|
|
585
585
|
const r = qn(e);
|
|
@@ -609,14 +609,14 @@ function bo(e = {}) {
|
|
|
609
609
|
} = e, i = Object.keys(n || {}).length > 0 ? n : t;
|
|
610
610
|
return ne.array(r) ? [i, ...r] : [i];
|
|
611
611
|
}
|
|
612
|
-
const
|
|
612
|
+
const En = P((e) => e.currentContent.flowId), nt = P(
|
|
613
613
|
(e) => e.content[e.currentContent.flowId]
|
|
614
614
|
), ce = P((e) => e.currentContent.stepId), ha = P(
|
|
615
615
|
(e) => e.previousActiveElement
|
|
616
616
|
), hf = P((e) => e.forceFocus, !0), ye = P((e) => ct(
|
|
617
617
|
nt(e),
|
|
618
618
|
ce(e)
|
|
619
|
-
)), mf = P((e) => e.settings.styling, {}), dt = P((e) => e), Ef = P((e) => e.settings.accountId),
|
|
619
|
+
)), mf = P((e) => e.settings.styling, {}), dt = P((e) => e), Ef = P((e) => e.settings.accountId), Mt = P((e) => e.reporter), gf = P((e, t) => e.eventListeners[t], []), be = P((e) => e.user, {}), ma = P((e) => e.userIdentified, !1), yf = P((e) => ({ groupId: e.groupId, groupProps: e.groupProps }), !1), Sf = P(
|
|
620
620
|
(e) => e.settings.account.skipAutoProperties,
|
|
621
621
|
!1
|
|
622
622
|
), Tf = P(
|
|
@@ -625,43 +625,43 @@ const mn = P((e) => e.currentContent.flowId), nt = P(
|
|
|
625
625
|
), Cf = P(
|
|
626
626
|
(e) => e.settings.account.gates.responseFormatV2Enabled,
|
|
627
627
|
!1
|
|
628
|
-
),
|
|
628
|
+
), Ot = P((e) => e.session.id), Yn = P((e) => e.session, {}), _f = P((e) => e.settings, {}), ii = P((e, t) => e.tasks[t]), If = P(
|
|
629
629
|
(e, t) => e.pendingEvents[t],
|
|
630
630
|
[]
|
|
631
|
-
), es = (e) => e.lastCheckedForInitialContent || {},
|
|
632
|
-
(e, t) =>
|
|
633
|
-
), vf = P((e) => e.styles, {}), zn = P((e) => ye(e).type), Ve = P((e) => e.currentContent.status),
|
|
631
|
+
), es = (e) => e.lastCheckedForInitialContent || {}, Rr = P((e) => e.content), Af = P((e) => e.orderedContent), ts = P(
|
|
632
|
+
(e, t) => Rr(e)[t]
|
|
633
|
+
), vf = P((e) => e.styles, {}), zn = P((e) => ye(e).type), Ve = P((e) => e.currentContent.status), Lr = P((e) => e.currentContent.state), bf = P(
|
|
634
634
|
(e) => e.currentContent.shownUrl
|
|
635
635
|
), ns = P((e) => ye(e).attributes.style), Ea = P((e) => e.styles[ye(e).attributes.style]), wf = P(
|
|
636
636
|
(e) => e.currentContent.eventChannel
|
|
637
637
|
), st = P(
|
|
638
|
-
(e) =>
|
|
639
|
-
),
|
|
638
|
+
(e) => Lr(e).currentStepChildId
|
|
639
|
+
), Kt = P((e, t) => mn(ye(e), t), -1), tt = P((e) => An(ye(e)), []), kt = P(
|
|
640
640
|
(e) => e.currentContent.state.children,
|
|
641
641
|
{}
|
|
642
642
|
), Nf = P(
|
|
643
643
|
(e) => Object.keys(e.currentContent.state.children).length,
|
|
644
644
|
0
|
|
645
|
-
),
|
|
645
|
+
), Ii = P(
|
|
646
646
|
(e, t) => tt(e)[t].id
|
|
647
647
|
), kf = P(
|
|
648
|
-
(e) =>
|
|
648
|
+
(e) => Lr(e).isScrollingToAnnotation
|
|
649
649
|
), ga = P((e, t) => {
|
|
650
|
-
const n =
|
|
651
|
-
return ne.defined(n) ?
|
|
650
|
+
const n = Kt(e, t);
|
|
651
|
+
return ne.defined(n) ? Ii(e, n + 1) : !1;
|
|
652
652
|
}), rs = P((e, t) => {
|
|
653
|
-
const n =
|
|
654
|
-
return ne.defined(n) ?
|
|
653
|
+
const n = Kt(e, t);
|
|
654
|
+
return ne.defined(n) ? Ii(e, n - 1) : !1;
|
|
655
655
|
}), Of = P((e, t, n) => {
|
|
656
|
-
const r =
|
|
656
|
+
const r = Kt(e, t), i = Kt(e, n), o = Math.min(r, i), s = Math.max(r, i);
|
|
657
657
|
if (ne.defined(r) && ne.defined(i)) {
|
|
658
658
|
const [, ...c] = tt(e).slice(o, s).map(({ id: l }) => l);
|
|
659
659
|
return c;
|
|
660
660
|
}
|
|
661
661
|
return !1;
|
|
662
662
|
}), ya = P(
|
|
663
|
-
(e, t) =>
|
|
664
|
-
), is = P((e, t) => ne.defined(ya(e, t)), !1),
|
|
663
|
+
(e, t) => kt(e)[t].activatedAt
|
|
664
|
+
), is = P((e, t) => ne.defined(ya(e, t)), !1), Ai = P(
|
|
665
665
|
(e) => e.reportedErrors.child,
|
|
666
666
|
{}
|
|
667
667
|
), Bn = P((e) => e.currentContent.state.activeAnnotations, []), Sa = P((e) => e.transport.initialized, !1), Rf = P((e) => e.transport.details.socket), Xn = (e) => e.debugger || null, Ta = P((e) => Xn(e).viewState), Lf = P(
|
|
@@ -676,14 +676,14 @@ const mn = P((e) => e.currentContent.flowId), nt = P(
|
|
|
676
676
|
), Pf = P(
|
|
677
677
|
(e) => Xn(e).childErrors,
|
|
678
678
|
{}
|
|
679
|
-
),
|
|
680
|
-
|
|
679
|
+
), gn = P((e) => e.checklists, []), yn = P((e, t) => lt(
|
|
680
|
+
gn(e),
|
|
681
681
|
(n) => n.id === t
|
|
682
|
-
), {}), os = P((e, t) =>
|
|
683
|
-
const r =
|
|
682
|
+
), {}), os = P((e, t) => gn(e).filter((n) => n.status === t)), Df = P((e, t, n) => {
|
|
683
|
+
const r = yn(e, t);
|
|
684
684
|
return lt(r.attributes.items, (i) => i.id === n);
|
|
685
685
|
}), Ff = P((e, t) => lt(
|
|
686
|
-
|
|
686
|
+
gn(e),
|
|
687
687
|
(n) => n.id === t
|
|
688
688
|
).status), Uf = P((e) => e.widget.history, {}), Hf = P((e) => e.widget.flows, []), Ia = P((e) => e.widget.selector, null), Mf = P(
|
|
689
689
|
(e) => e.widget.position,
|
|
@@ -708,7 +708,7 @@ function Yf(e, t, n) {
|
|
|
708
708
|
return document.createElementNS(e, t, n);
|
|
709
709
|
}
|
|
710
710
|
function zf() {
|
|
711
|
-
return
|
|
711
|
+
return an(document.createDocumentFragment());
|
|
712
712
|
}
|
|
713
713
|
function Xf(e) {
|
|
714
714
|
return document.createTextNode(e);
|
|
@@ -717,32 +717,32 @@ function Jf(e) {
|
|
|
717
717
|
return document.createComment(e);
|
|
718
718
|
}
|
|
719
719
|
function Qf(e, t, n) {
|
|
720
|
-
if (
|
|
720
|
+
if (xt(e)) {
|
|
721
721
|
let r = e;
|
|
722
|
-
for (; r &&
|
|
723
|
-
r =
|
|
722
|
+
for (; r && xt(r); )
|
|
723
|
+
r = an(r).parent;
|
|
724
724
|
e = r ?? e;
|
|
725
725
|
}
|
|
726
|
-
|
|
726
|
+
xt(t) && (t = an(t, e)), n && xt(n) && (n = an(n).firstChildNode), e.insertBefore(t, n);
|
|
727
727
|
}
|
|
728
728
|
function Zf(e, t) {
|
|
729
729
|
e.removeChild(t);
|
|
730
730
|
}
|
|
731
731
|
function ep(e, t) {
|
|
732
|
-
|
|
732
|
+
xt(t) && (t = an(t, e)), e.appendChild(t);
|
|
733
733
|
}
|
|
734
734
|
function va(e) {
|
|
735
|
-
if (
|
|
736
|
-
for (; e &&
|
|
737
|
-
e =
|
|
735
|
+
if (xt(e)) {
|
|
736
|
+
for (; e && xt(e); )
|
|
737
|
+
e = an(e).parent;
|
|
738
738
|
return e ?? null;
|
|
739
739
|
}
|
|
740
740
|
return e.parentNode;
|
|
741
741
|
}
|
|
742
742
|
function tp(e) {
|
|
743
743
|
var t;
|
|
744
|
-
if (
|
|
745
|
-
const n =
|
|
744
|
+
if (xt(e)) {
|
|
745
|
+
const n = an(e), r = va(n);
|
|
746
746
|
if (r && n.lastChildNode) {
|
|
747
747
|
const i = Array.from(r.childNodes), o = i.indexOf(n.lastChildNode);
|
|
748
748
|
return (t = i[o + 1]) !== null && t !== void 0 ? t : null;
|
|
@@ -769,10 +769,10 @@ function sp(e) {
|
|
|
769
769
|
function cp(e) {
|
|
770
770
|
return e.nodeType === 8;
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function xt(e) {
|
|
773
773
|
return e.nodeType === 11;
|
|
774
774
|
}
|
|
775
|
-
function
|
|
775
|
+
function an(e, t) {
|
|
776
776
|
var n, r, i;
|
|
777
777
|
const o = e;
|
|
778
778
|
return (n = o.parent) !== null && n !== void 0 || (o.parent = t ?? null), (r = o.firstChildNode) !== null && r !== void 0 || (o.firstChildNode = e.firstChild), (i = o.lastChildNode) !== null && i !== void 0 || (o.lastChildNode = e.lastChild), o;
|
|
@@ -794,14 +794,14 @@ const ss = {
|
|
|
794
794
|
isElement: op,
|
|
795
795
|
isText: sp,
|
|
796
796
|
isComment: cp,
|
|
797
|
-
isDocumentFragment:
|
|
797
|
+
isDocumentFragment: xt
|
|
798
798
|
};
|
|
799
799
|
function $e(e, t, n, r, i) {
|
|
800
800
|
const o = t === void 0 ? void 0 : t.key;
|
|
801
801
|
return { sel: e, data: t, children: n, text: r, elm: i, key: o };
|
|
802
802
|
}
|
|
803
803
|
const Vn = Array.isArray;
|
|
804
|
-
function
|
|
804
|
+
function un(e) {
|
|
805
805
|
return typeof e == "string" || typeof e == "number" || e instanceof String || e instanceof Number;
|
|
806
806
|
}
|
|
807
807
|
const qi = $e("", {}, [], void 0, void 0);
|
|
@@ -879,7 +879,7 @@ function Jn(e, t, n) {
|
|
|
879
879
|
const q = R.indexOf("#"), G = R.indexOf(".", q), ue = q > 0 ? q : R.length, w = G > 0 ? G : R.length, J = q !== -1 || G !== -1 ? R.slice(0, Math.min(ue, w)) : R, de = O?.ns, pe = de === void 0 ? i.createElement(J, O) : i.createElementNS(de, J, O);
|
|
880
880
|
for (h.elm = pe, ue < w && pe.setAttribute("id", R.slice(ue + 1, w)), G > 0 && pe.setAttribute("class", R.slice(w + 1).replace(/\./g, " ")), C = 0; C < r.create.length; ++C)
|
|
881
881
|
r.create[C](qi, h);
|
|
882
|
-
if (
|
|
882
|
+
if (un(h.text) && (!Vn(H) || H.length === 0) && i.appendChild(pe, i.createTextNode(h.text)), Vn(H))
|
|
883
883
|
for (C = 0; C < H.length; ++C) {
|
|
884
884
|
const Ce = H[C];
|
|
885
885
|
Ce != null && i.appendChild(pe, l(Ce, m));
|
|
@@ -965,55 +965,55 @@ function Jn(e, t, n) {
|
|
|
965
965
|
return T;
|
|
966
966
|
};
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function vi(e, t, n) {
|
|
969
969
|
if (e.ns = "http://www.w3.org/2000/svg", n !== "foreignObject" && t !== void 0)
|
|
970
970
|
for (let r = 0; r < t.length; ++r) {
|
|
971
971
|
const i = t[r];
|
|
972
972
|
if (typeof i == "string")
|
|
973
973
|
continue;
|
|
974
974
|
const o = i.data;
|
|
975
|
-
o !== void 0 &&
|
|
975
|
+
o !== void 0 && vi(o, i.children, i.sel);
|
|
976
976
|
}
|
|
977
977
|
}
|
|
978
|
-
function
|
|
978
|
+
function ui(e, t, n) {
|
|
979
979
|
let r = {}, i, o, s;
|
|
980
|
-
if (n !== void 0 ? (t !== null && (r = t), Vn(n) ? i = n :
|
|
980
|
+
if (n !== void 0 ? (t !== null && (r = t), Vn(n) ? i = n : un(n) ? o = n.toString() : n && n.sel && (i = [n])) : t != null && (Vn(t) ? i = t : un(t) ? o = t.toString() : t && t.sel ? i = [t] : r = t), i !== void 0)
|
|
981
981
|
for (s = 0; s < i.length; ++s)
|
|
982
|
-
|
|
983
|
-
return e.startsWith("svg") && (e.length === 3 || e[3] === "." || e[3] === "#") &&
|
|
982
|
+
un(i[s]) && (i[s] = $e(void 0, void 0, void 0, i[s], void 0));
|
|
983
|
+
return e.startsWith("svg") && (e.length === 3 || e[3] === "." || e[3] === "#") && vi(r, i, e), $e(e, r, i, o, void 0);
|
|
984
984
|
}
|
|
985
985
|
function pp(e) {
|
|
986
986
|
let t, n;
|
|
987
|
-
if (Vn(e) ? t = e :
|
|
987
|
+
if (Vn(e) ? t = e : un(t) ? n = e : t && t.sel && (t = [e]), t !== void 0)
|
|
988
988
|
for (let r = 0; r < t.length; ++r)
|
|
989
|
-
|
|
989
|
+
un(t[r]) && (t[r] = $e(void 0, void 0, void 0, t[r], void 0));
|
|
990
990
|
return $e(void 0, {}, t, n, void 0);
|
|
991
991
|
}
|
|
992
|
-
function
|
|
992
|
+
function oi(e, t) {
|
|
993
993
|
var n;
|
|
994
994
|
const r = (n = t.data) === null || n === void 0 ? void 0 : n.ns;
|
|
995
|
-
e.data.fn = t.data.fn, e.data.args = t.data.args, t.data = e.data, t.children = e.children, t.text = e.text, t.elm = e.elm, r &&
|
|
995
|
+
e.data.fn = t.data.fn, e.data.args = t.data.args, t.data = e.data, t.children = e.children, t.text = e.text, t.elm = e.elm, r && vi(t.data, t.children, t.sel);
|
|
996
996
|
}
|
|
997
997
|
function hp(e) {
|
|
998
998
|
const t = e.data, n = t.fn(...t.args);
|
|
999
|
-
|
|
999
|
+
oi(n, e);
|
|
1000
1000
|
}
|
|
1001
1001
|
function mp(e, t) {
|
|
1002
1002
|
let n;
|
|
1003
1003
|
const r = e.data, i = t.data, o = r.args, s = i.args;
|
|
1004
1004
|
if (r.fn !== i.fn || o.length !== s.length) {
|
|
1005
|
-
|
|
1005
|
+
oi(i.fn(...s), t);
|
|
1006
1006
|
return;
|
|
1007
1007
|
}
|
|
1008
1008
|
for (n = 0; n < s.length; ++n)
|
|
1009
1009
|
if (o[n] !== s[n]) {
|
|
1010
|
-
|
|
1010
|
+
oi(i.fn(...s), t);
|
|
1011
1011
|
return;
|
|
1012
1012
|
}
|
|
1013
|
-
|
|
1013
|
+
oi(e, t);
|
|
1014
1014
|
}
|
|
1015
1015
|
const Ep = function(t, n, r, i) {
|
|
1016
|
-
return i === void 0 && (i = r, r = n, n = void 0),
|
|
1016
|
+
return i === void 0 && (i = r, r = n, n = void 0), ui(t, {
|
|
1017
1017
|
key: n,
|
|
1018
1018
|
hook: { init: hp, prepatch: mp },
|
|
1019
1019
|
fn: r,
|
|
@@ -1054,7 +1054,7 @@ function ba(e, t) {
|
|
|
1054
1054
|
y = T[h].nodeName, y.startsWith("data-") ? d[_p(y)] = T[h].nodeValue || "" : y !== "id" && y !== "class" && (u[y] = T[h].nodeValue);
|
|
1055
1055
|
for (h = 0, m = _.length; h < m; h++)
|
|
1056
1056
|
p.push(ba(_[h], t));
|
|
1057
|
-
return Object.keys(u).length > 0 && (f.attrs = u), Object.keys(d).length > 0 && (f.dataset = d), l.startsWith("svg") && (l.length === 3 || l[3] === "." || l[3] === "#") &&
|
|
1057
|
+
return Object.keys(u).length > 0 && (f.attrs = u), Object.keys(d).length > 0 && (f.dataset = d), l.startsWith("svg") && (l.length === 3 || l[3] === "." || l[3] === "#") && vi(f, p, l), $e(l, f, p, void 0, e);
|
|
1058
1058
|
} else return r.isText(e) ? (i = r.getTextContent(e), $e(void 0, void 0, void 0, i, e)) : r.isComment(e) ? (i = r.getTextContent(e), $e("!", {}, [], i, e)) : $e("", {}, [], void 0, e);
|
|
1059
1059
|
}
|
|
1060
1060
|
const Ip = "http://www.w3.org/1999/xlink", Ap = "http://www.w3.org/2000/xmlns/", vp = "http://www.w3.org/XML/1998/namespace", qs = 58, bp = 120, wp = 109;
|
|
@@ -1235,7 +1235,7 @@ function cs(e, t) {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
function Up(e, t, ...n) {
|
|
1237
1237
|
const r = cs(n, []);
|
|
1238
|
-
return typeof e == "function" ? e(t, r) : r.length === 1 && !r[0].sel && r[0].text ?
|
|
1238
|
+
return typeof e == "function" ? e(t, r) : r.length === 1 && !r[0].sel && r[0].text ? ui(e, t, r[0].text) : ui(e, t, r);
|
|
1239
1239
|
}
|
|
1240
1240
|
const Hp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1241
1241
|
__proto__: null,
|
|
@@ -1247,11 +1247,11 @@ const Hp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
1247
1247
|
datasetModule: Np,
|
|
1248
1248
|
eventListenersModule: er,
|
|
1249
1249
|
fragment: pp,
|
|
1250
|
-
h:
|
|
1250
|
+
h: ui,
|
|
1251
1251
|
htmlDomApi: ss,
|
|
1252
1252
|
init: Jn,
|
|
1253
1253
|
jsx: Up,
|
|
1254
|
-
primitive:
|
|
1254
|
+
primitive: un,
|
|
1255
1255
|
propsModule: tr,
|
|
1256
1256
|
styleModule: nr,
|
|
1257
1257
|
thunk: Ep,
|
|
@@ -1467,7 +1467,7 @@ function Bp() {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
return ar;
|
|
1469
1469
|
}
|
|
1470
|
-
var
|
|
1470
|
+
var bi = Bp(), zi = { exports: {} }, rc;
|
|
1471
1471
|
function Vp() {
|
|
1472
1472
|
return rc || (rc = 1, (function(e) {
|
|
1473
1473
|
function t(o) {
|
|
@@ -1488,8 +1488,8 @@ function Vp() {
|
|
|
1488
1488
|
})(zi)), zi.exports;
|
|
1489
1489
|
}
|
|
1490
1490
|
var Wp = Vp();
|
|
1491
|
-
const Gp = /* @__PURE__ */ ls(Wp), ic = "|shadow-root|", oc = "|iframe|",
|
|
1492
|
-
function
|
|
1491
|
+
const Gp = /* @__PURE__ */ ls(Wp), ic = "|shadow-root|", oc = "|iframe|", wi = (e, t = document) => e.includes(ic) || e.includes(oc) ? e.split(ic).flatMap((n) => n.split(oc)).reduce((n, r) => n === null ? [...t.querySelectorAll(r)] : n.flatMap((i) => i.shadowRoot ? [...i.shadowRoot.querySelectorAll(r)] : i.tagName === "IFRAME" ? [...i.contentDocument.querySelectorAll(r)] : []), null) ?? [] : [...t.querySelectorAll(e)];
|
|
1492
|
+
function Ni(e, t, n) {
|
|
1493
1493
|
const r = e.data || {};
|
|
1494
1494
|
Object.assign(e, {
|
|
1495
1495
|
data: Object.assign(r, {
|
|
@@ -1516,7 +1516,7 @@ function Ne(e, t) {
|
|
|
1516
1516
|
}
|
|
1517
1517
|
}
|
|
1518
1518
|
function Ee(e, t, n) {
|
|
1519
|
-
|
|
1519
|
+
Ni(e, "attrs", { [t]: n });
|
|
1520
1520
|
}
|
|
1521
1521
|
function Na(e, t) {
|
|
1522
1522
|
if (!Object.prototype.hasOwnProperty.call(e.data, "attrs")) return;
|
|
@@ -1524,15 +1524,15 @@ function Na(e, t) {
|
|
|
1524
1524
|
jp(e, "attrs", r);
|
|
1525
1525
|
}
|
|
1526
1526
|
function Et(e, t, n) {
|
|
1527
|
-
|
|
1527
|
+
Ni(e, "on", { [t]: n });
|
|
1528
1528
|
}
|
|
1529
1529
|
function qp(e, t) {
|
|
1530
|
-
|
|
1530
|
+
Ni(e, "class", { [t]: !0 });
|
|
1531
1531
|
}
|
|
1532
1532
|
function as(e, t, n) {
|
|
1533
|
-
|
|
1533
|
+
Ni(e, "hook", { [t]: n });
|
|
1534
1534
|
}
|
|
1535
|
-
function
|
|
1535
|
+
function rn(e, t) {
|
|
1536
1536
|
try {
|
|
1537
1537
|
return e.data.class[t] === !0;
|
|
1538
1538
|
} catch {
|
|
@@ -1562,11 +1562,11 @@ function Ra(e, t) {
|
|
|
1562
1562
|
window.Appcues?.show?.(o);
|
|
1563
1563
|
})), !0;
|
|
1564
1564
|
}
|
|
1565
|
-
const La = (e) => e.tagName === "IFRAME",
|
|
1565
|
+
const La = (e) => e.tagName === "IFRAME", ki = (e) => {
|
|
1566
1566
|
const t = e.getRootNode(e), n = t.parentWindow || t.defaultView;
|
|
1567
1567
|
return n && n !== window ? n.frameElement : null;
|
|
1568
1568
|
};
|
|
1569
|
-
function
|
|
1569
|
+
function sn(e) {
|
|
1570
1570
|
return { error: !0, errorMessage: e };
|
|
1571
1571
|
}
|
|
1572
1572
|
function Xp() {
|
|
@@ -1605,7 +1605,7 @@ const Qp = (e) => {
|
|
|
1605
1605
|
// would fail, because it is not a valid css selector.
|
|
1606
1606
|
// * means the parentElement, which is the element
|
|
1607
1607
|
// we are applying the querySelectorAll.
|
|
1608
|
-
d ?
|
|
1608
|
+
d ? wi(`* ${c}`, d) : []
|
|
1609
1609
|
) : [d];
|
|
1610
1610
|
} catch {
|
|
1611
1611
|
return [];
|
|
@@ -1614,23 +1614,23 @@ const Qp = (e) => {
|
|
|
1614
1614
|
function Pa(e, t) {
|
|
1615
1615
|
const n = typeof e == "string" && e || typeof e == "object" && e.selector;
|
|
1616
1616
|
if (!n)
|
|
1617
|
-
return
|
|
1617
|
+
return sn("Missing selector.");
|
|
1618
1618
|
const r = Zp(n, t);
|
|
1619
|
-
let i = r.length > 0 ? r :
|
|
1619
|
+
let i = r.length > 0 ? r : wi(n, t?.documentElement ?? t);
|
|
1620
1620
|
const o = e.text_filter || e.textFilter, s = !!o, c = typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "order_filter"), l = e.order_filter;
|
|
1621
1621
|
if (s && o.length >= 0 && (i = Array.prototype.slice.call(i).filter((u) => u.innerText == null ? !1 : u.innerText.replace(/\r\n|\r|\n/g, " ").toLowerCase().trim() === o.toString().toLowerCase().trim())), c && l >= 0 && (i = i[l] ? [i[l]] : []), i.length === 0) {
|
|
1622
1622
|
let u = "", d = "";
|
|
1623
|
-
return s && (u = ` with text filter "${o}"`), c && (d = ` with order value ${l}`),
|
|
1623
|
+
return s && (u = ` with text filter "${o}"`), c && (d = ` with order value ${l}`), sn(
|
|
1624
1624
|
`Could not find element for selector "${n}"${s ? u : ""}${s && c ? " and" : ""}${c ? d : ""}.`
|
|
1625
1625
|
);
|
|
1626
1626
|
}
|
|
1627
|
-
return i = [...i].filter((u) => !xa(u)), i.length > 1 ?
|
|
1627
|
+
return i = [...i].filter((u) => !xa(u)), i.length > 1 ? sn(
|
|
1628
1628
|
`Found ${i.length} elements for selector ${e.selector}.`
|
|
1629
|
-
) : i.length === 0 ?
|
|
1629
|
+
) : i.length === 0 ? sn(`Could not find element for selector "${n}"`) : i[0];
|
|
1630
1630
|
}
|
|
1631
1631
|
function eh(e, t) {
|
|
1632
1632
|
if (e.length === 0)
|
|
1633
|
-
return
|
|
1633
|
+
return sn("Missing selector.");
|
|
1634
1634
|
let n;
|
|
1635
1635
|
for (const r in e)
|
|
1636
1636
|
if (Object.prototype.hasOwnProperty.call(e, r)) {
|
|
@@ -1640,7 +1640,7 @@ function eh(e, t) {
|
|
|
1640
1640
|
break;
|
|
1641
1641
|
}
|
|
1642
1642
|
}
|
|
1643
|
-
return n ||
|
|
1643
|
+
return n || sn("Could not find an element for list of selectors.");
|
|
1644
1644
|
}
|
|
1645
1645
|
function us(e, t = window.document) {
|
|
1646
1646
|
let n = e;
|
|
@@ -1670,7 +1670,7 @@ function sc(e) {
|
|
|
1670
1670
|
function Da(e, t, n, r, i = {}) {
|
|
1671
1671
|
const o = i;
|
|
1672
1672
|
let s = t.zIndex;
|
|
1673
|
-
const c = t.position, u =
|
|
1673
|
+
const c = t.position, u = ki(e) || e.parentElement, d = u ? r.getComputedStyle(u) : {};
|
|
1674
1674
|
if (o.fixed || (o.fixed = c === "fixed" || c === "sticky"), o.absolute || (o.absolute = c === "absolute"), o.opacity = Number.parseFloat(ne.defined(o.opacity) ? o.opacity : 1) * Number.parseFloat(t.opacity), o.hiddenOverflow || (o.hiddenOverflow = !ds(e, t) && t.overflow === "hidden" && !o.fixed && !o.absolute), o.hasScrollableParent || (o.hasScrollableParent = fs(e, t.overflowY)), s !== "" && s !== "auto" && !Oo(c) && !sc(d) && (s = "auto"), (ne.undefined(o.zIndex) || s !== "" && s !== "auto" && (Oo(c) || sc(d))) && (o.zIndex = s), u && u !== n.body && u !== n.documentElement)
|
|
1675
1675
|
return Da(u, d, n, r, o);
|
|
1676
1676
|
if (/^\d+$/.test(o.zIndex)) {
|
|
@@ -1711,7 +1711,7 @@ function Fa(e, t, n = window.document) {
|
|
|
1711
1711
|
if (i.error)
|
|
1712
1712
|
return i;
|
|
1713
1713
|
r = i;
|
|
1714
|
-
const o =
|
|
1714
|
+
const o = ki(r), s = { element: r }, c = r.ownerDocument || document, l = c.defaultView || window, u = nh(r), { left: d, top: f, right: p, bottom: y } = r.getBoundingClientRect(), h = { left: d, top: f, right: p, bottom: y };
|
|
1715
1715
|
let m = { left: d, top: f, right: p, bottom: y };
|
|
1716
1716
|
const T = l.getComputedStyle(r), { fixed: _, zIndex: S, opacity: A, hiddenOverflow: I, hasScrollableParent: C } = Da(r, T, c, l);
|
|
1717
1717
|
if (!_ && !o) {
|
|
@@ -1730,7 +1730,7 @@ function Fa(e, t, n = window.document) {
|
|
|
1730
1730
|
}
|
|
1731
1731
|
}
|
|
1732
1732
|
const O = (m.right < 0 || m.bottom < 0) && !C;
|
|
1733
|
-
return !ds(r) || T.visibility === "hidden" || A === 0 || I || O ?
|
|
1733
|
+
return !ds(r) || T.visibility === "hidden" || A === 0 || I || O ? sn("Targeted element is present but not visible.") : Object.assign(s, {
|
|
1734
1734
|
boundingRect: m,
|
|
1735
1735
|
fixed: _,
|
|
1736
1736
|
zIndex: S,
|
|
@@ -1779,7 +1779,7 @@ const cc = (e) => {
|
|
|
1779
1779
|
const { host: r } = e.assignedSlot.parentNode;
|
|
1780
1780
|
return r ?? e.assignedSlot.parentNode;
|
|
1781
1781
|
}
|
|
1782
|
-
const t =
|
|
1782
|
+
const t = ki(e);
|
|
1783
1783
|
return t || (e.parentNode?.host?.tagName?.includes("-") ? e.parentNode?.host : e.parentElement);
|
|
1784
1784
|
};
|
|
1785
1785
|
function ch(e, t) {
|
|
@@ -1820,11 +1820,11 @@ function Ua(e, t, n, r) {
|
|
|
1820
1820
|
return c += d - y, { el: l, scrollTop: y, visibleInContainer: h };
|
|
1821
1821
|
});
|
|
1822
1822
|
}
|
|
1823
|
-
function
|
|
1823
|
+
function jr(e, t) {
|
|
1824
1824
|
return e && t ? Object.keys(e).every((n) => e[n] === t[n]) : !1;
|
|
1825
1825
|
}
|
|
1826
1826
|
function lh(e, t) {
|
|
1827
|
-
return e.error || t.error ? e.error && t.error && e.errorMessage === t.errorMessage : e.fixed === t.fixed && e.zIndex === t.zIndex && e.element === t.element &&
|
|
1827
|
+
return e.error || t.error ? e.error && t.error && e.errorMessage === t.errorMessage : e.fixed === t.fixed && e.zIndex === t.zIndex && e.element === t.element && jr(e.boundingRect || {}, t.boundingRect || {}) && jr(e.relativeBoundingRect || {}, t.relativeBoundingRect || {}) && jr(e.viewport || {}, t.viewport || {}) && jr(e.padding || {}, t.padding || {});
|
|
1828
1828
|
}
|
|
1829
1829
|
function Ro(e) {
|
|
1830
1830
|
const t = e.ownerDocument;
|
|
@@ -1905,11 +1905,11 @@ function mh(e, t) {
|
|
|
1905
1905
|
function Ar(e) {
|
|
1906
1906
|
return (e.readyState === "interactive" || e.readyState === "complete") && e.body;
|
|
1907
1907
|
}
|
|
1908
|
-
function
|
|
1908
|
+
function Oi(e, t, n) {
|
|
1909
1909
|
const r = t.lastIndexOf("/") + 1, i = t.slice(r);
|
|
1910
1910
|
// we check if some of the loaded css files contains the name of the
|
|
1911
1911
|
// file we are looking for
|
|
1912
|
-
Array.prototype.some.call([...e.styleSheets], (o) => (o?.href ?? "").indexOf(i) !== -1) ? setTimeout(() => n(), 5) : setTimeout(() =>
|
|
1912
|
+
Array.prototype.some.call([...e.styleSheets], (o) => (o?.href ?? "").indexOf(i) !== -1) ? setTimeout(() => n(), 5) : setTimeout(() => Oi(e, t, n), 5);
|
|
1913
1913
|
}
|
|
1914
1914
|
function Eh(e, t) {
|
|
1915
1915
|
e.requestAnimationFrame(() => {
|
|
@@ -1940,7 +1940,7 @@ function Ha(e) {
|
|
|
1940
1940
|
e.removeAttribute("tabindex");
|
|
1941
1941
|
}, 500)) : e && e.focus({ preventScroll: !0 });
|
|
1942
1942
|
}
|
|
1943
|
-
function
|
|
1943
|
+
function Ri(e) {
|
|
1944
1944
|
return [
|
|
1945
1945
|
...e.querySelectorAll(
|
|
1946
1946
|
'a, button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])'
|
|
@@ -2146,14 +2146,14 @@ const Ah = (e) => {
|
|
|
2146
2146
|
function ae() {
|
|
2147
2147
|
return $e(void 0, {}, void 0, "");
|
|
2148
2148
|
}
|
|
2149
|
-
function
|
|
2149
|
+
function $t(e) {
|
|
2150
2150
|
if (window.AppcuesBundleSettings && window.AppcuesBundleSettings.GENERIC_BUNDLE_DOMAIN) {
|
|
2151
2151
|
const { GENERIC_BUNDLE_DOMAIN: t } = window.AppcuesBundleSettings;
|
|
2152
2152
|
return `${t}${e}`;
|
|
2153
2153
|
}
|
|
2154
2154
|
return `https://fast.appcues.com${e}`;
|
|
2155
2155
|
}
|
|
2156
|
-
const bh = "/generic/main/7.
|
|
2156
|
+
const bh = "/generic/main/7.11.1/checklist.a78f4df397e3b099a535f68c857dd828db518b74.css", wh = "sha256-+r+pTslgzdZXKHuCvF/3Xv/1BVTSc8g1KqjkV3G1icQ=", Ji = $t(bh), uc = 30, Nh = -300, kh = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/";
|
|
2157
2157
|
let ur = null, dr = null;
|
|
2158
2158
|
const Oh = (e) => {
|
|
2159
2159
|
const {
|
|
@@ -2264,18 +2264,18 @@ const Oh = (e) => {
|
|
|
2264
2264
|
}, ke = 12, xe = 12, {
|
|
2265
2265
|
beacon_vertical_offset: wn,
|
|
2266
2266
|
beacon_horizontal_offset: Nn
|
|
2267
|
-
} = r, _t = B ? "right" : "left",
|
|
2267
|
+
} = r, _t = B ? "right" : "left", Vr = c ? Nh : uc, pd = {
|
|
2268
2268
|
opacity: 0,
|
|
2269
2269
|
delayed: { opacity: 100 },
|
|
2270
2270
|
remove: { opacity: 0 },
|
|
2271
2271
|
destroy: { opacity: 0 },
|
|
2272
2272
|
bottom: q ? `${G.y}px` : `${uc + wn}px`,
|
|
2273
|
-
[_t]: q ? `${G.x}px` : `${
|
|
2273
|
+
[_t]: q ? `${G.x}px` : `${Vr + Nn}px`
|
|
2274
2274
|
}, kn = (me) => {
|
|
2275
2275
|
if (me) {
|
|
2276
|
-
const
|
|
2277
|
-
Math.ceil(
|
|
2278
|
-
() => A(t,
|
|
2276
|
+
const Vt = me.getBoundingClientRect().height + de + ke + xe;
|
|
2277
|
+
Math.ceil(Vt) !== l && window.requestAnimationFrame(
|
|
2278
|
+
() => A(t, Vt)
|
|
2279
2279
|
);
|
|
2280
2280
|
} else
|
|
2281
2281
|
window.requestAnimationFrame(
|
|
@@ -2283,25 +2283,25 @@ const Oh = (e) => {
|
|
|
2283
2283
|
);
|
|
2284
2284
|
}, hd = 18, md = (me) => {
|
|
2285
2285
|
if (me) {
|
|
2286
|
-
const
|
|
2287
|
-
Math.ceil(
|
|
2288
|
-
I(t,
|
|
2286
|
+
const Vt = me.getBoundingClientRect().width + hd;
|
|
2287
|
+
Math.ceil(Vt) !== u && window.requestAnimationFrame(() => {
|
|
2288
|
+
I(t, Vt);
|
|
2289
2289
|
});
|
|
2290
2290
|
}
|
|
2291
2291
|
}, Us = (me) => {
|
|
2292
2292
|
me.target.nodeName !== "APPCUES-EXPERIENCE-CONTAINER" && !q && p(t);
|
|
2293
|
-
},
|
|
2293
|
+
}, Wr = r.font, Hs = r.font_url, Ed = `
|
|
2294
2294
|
.checklist-main .title, .desc, .completed-caption, .sequential-label,
|
|
2295
2295
|
.item a, .skip-link, .dismiss-text, .button-default {
|
|
2296
|
-
font-family: ${
|
|
2296
|
+
font-family: ${Wr};
|
|
2297
2297
|
}
|
|
2298
2298
|
|
|
2299
2299
|
.checklist-main .checklist-congrats h3, p, .dismiss-link {
|
|
2300
|
-
font-family: ${
|
|
2300
|
+
font-family: ${Wr};
|
|
2301
2301
|
}
|
|
2302
2302
|
|
|
2303
2303
|
.beacon .label, .badge {
|
|
2304
|
-
font-family: ${
|
|
2304
|
+
font-family: ${Wr};
|
|
2305
2305
|
}
|
|
2306
2306
|
`, Ms = r.custom_background_color, gd = `
|
|
2307
2307
|
.checklist-main,
|
|
@@ -2364,7 +2364,7 @@ const Oh = (e) => {
|
|
|
2364
2364
|
T(t, Ji, !1);
|
|
2365
2365
|
}
|
|
2366
2366
|
}
|
|
2367
|
-
), Hs ? /* @__PURE__ */ a.html("link", { "attrs-href": Hs, "attrs-rel": "stylesheet" }) : /* @__PURE__ */ a.html(ae, null), /* @__PURE__ */ a.html("style", { "attrs-type": "text/css" }, X), /* @__PURE__ */ a.html("style", { "attrs-type": "text/css" }, Z),
|
|
2367
|
+
), Hs ? /* @__PURE__ */ a.html("link", { "attrs-href": Hs, "attrs-rel": "stylesheet" }) : /* @__PURE__ */ a.html(ae, null), /* @__PURE__ */ a.html("style", { "attrs-type": "text/css" }, X), /* @__PURE__ */ a.html("style", { "attrs-type": "text/css" }, Z), Wr ? /* @__PURE__ */ a.html("style", { "attrs-type": "text/css" }, Ed) : /* @__PURE__ */ a.html(ae, null), Ms ? /* @__PURE__ */ a.html("style", { "attrs-type": "text/css" }, gd) : /* @__PURE__ */ a.html(ae, null), cr ? /* @__PURE__ */ a.html("style", { "attrs-type": "text/css" }, yd) : /* @__PURE__ */ a.html(ae, null), $s ? /* @__PURE__ */ a.html("style", { "attrs-type": "text/css" }, Sd) : /* @__PURE__ */ a.html(ae, null), C === te.SHOWING ? /* @__PURE__ */ a.html("div", { "class-checklist": !0 }, r.type === "beacon" && !q ? /* @__PURE__ */ a.html(
|
|
2368
2368
|
Ah,
|
|
2369
2369
|
{
|
|
2370
2370
|
styles: r,
|
|
@@ -2452,7 +2452,7 @@ const Oh = (e) => {
|
|
|
2452
2452
|
"class-checklist-body": !0,
|
|
2453
2453
|
"class-show-confirm": S
|
|
2454
2454
|
},
|
|
2455
|
-
S ? /* @__PURE__ */ a.html(ae, null) : /* @__PURE__ */ a.html("ul", { "class-items": !0 }, o.map((me,
|
|
2455
|
+
S ? /* @__PURE__ */ a.html(ae, null) : /* @__PURE__ */ a.html("ul", { "class-items": !0 }, o.map((me, Vt) => /* @__PURE__ */ a.html(
|
|
2456
2456
|
vh,
|
|
2457
2457
|
{
|
|
2458
2458
|
...me,
|
|
@@ -2461,7 +2461,7 @@ const Oh = (e) => {
|
|
|
2461
2461
|
onItemClicked: () => s && f(t, me.id),
|
|
2462
2462
|
styles: r,
|
|
2463
2463
|
isSequential: L,
|
|
2464
|
-
itemNumberLabel: `${
|
|
2464
|
+
itemNumberLabel: `${Vt + 1}`,
|
|
2465
2465
|
isChecklistExpanded: s,
|
|
2466
2466
|
setRef: (Td) => {
|
|
2467
2467
|
ur = Td;
|
|
@@ -2587,8 +2587,8 @@ const Lh = (e) => {
|
|
|
2587
2587
|
beaconWidth: r,
|
|
2588
2588
|
frameHeight: o,
|
|
2589
2589
|
items: n.items || [],
|
|
2590
|
-
is_checklist_expanded: i ===
|
|
2591
|
-
is_first_view: i ===
|
|
2590
|
+
is_checklist_expanded: i === Gt.EXPANDED,
|
|
2591
|
+
is_first_view: i === Gt.FIRSTVIEW,
|
|
2592
2592
|
text_tokens: n.text_tokens || {},
|
|
2593
2593
|
name: n.name || "Untitled Checklist",
|
|
2594
2594
|
shouldShowConfirmDismiss: s,
|
|
@@ -2603,7 +2603,7 @@ const Lh = (e) => {
|
|
|
2603
2603
|
}
|
|
2604
2604
|
);
|
|
2605
2605
|
};
|
|
2606
|
-
function
|
|
2606
|
+
function Li() {
|
|
2607
2607
|
return !1;
|
|
2608
2608
|
}
|
|
2609
2609
|
function xh(e) {
|
|
@@ -2626,7 +2626,7 @@ function Ph() {
|
|
|
2626
2626
|
nr,
|
|
2627
2627
|
Qn
|
|
2628
2628
|
],
|
|
2629
|
-
|
|
2629
|
+
bi.createApi({
|
|
2630
2630
|
clean: !0,
|
|
2631
2631
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
2632
2632
|
})
|
|
@@ -2634,7 +2634,7 @@ function Ph() {
|
|
|
2634
2634
|
let t = null;
|
|
2635
2635
|
return function(r) {
|
|
2636
2636
|
if (Ar(document)) {
|
|
2637
|
-
const i = ye(r) || {}, { status: o } = r.currentContent || {}, s = Wf(r), c = i.type && ne.inArray(go, o), l =
|
|
2637
|
+
const i = ye(r) || {}, { status: o } = r.currentContent || {}, s = Wf(r), c = i.type && ne.inArray(go, o), l = gn(r), u = lt(l, (f) => go.includes(f.status)), d = Li(r.settings);
|
|
2638
2638
|
if (c || u) {
|
|
2639
2639
|
(!t || !Ro(t.elm)) && (t = xh(e));
|
|
2640
2640
|
const f = r.views.callbacks[z.CHECKLIST];
|
|
@@ -2660,7 +2660,7 @@ function Ph() {
|
|
|
2660
2660
|
}
|
|
2661
2661
|
};
|
|
2662
2662
|
}
|
|
2663
|
-
var
|
|
2663
|
+
var qr = {}, Qi, dc;
|
|
2664
2664
|
function Dh() {
|
|
2665
2665
|
return dc || (dc = 1, Qi = {
|
|
2666
2666
|
area: !0,
|
|
@@ -2757,10 +2757,10 @@ function Hh() {
|
|
|
2757
2757
|
}
|
|
2758
2758
|
var mc;
|
|
2759
2759
|
function Mh() {
|
|
2760
|
-
if (mc) return
|
|
2761
|
-
mc = 1, Object.defineProperty(
|
|
2760
|
+
if (mc) return qr;
|
|
2761
|
+
mc = 1, Object.defineProperty(qr, "__esModule", {
|
|
2762
2762
|
value: !0
|
|
2763
|
-
}),
|
|
2763
|
+
}), qr.default = function(f) {
|
|
2764
2764
|
var p = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, y = p.context || document;
|
|
2765
2765
|
if (!f)
|
|
2766
2766
|
return null;
|
|
@@ -2826,14 +2826,14 @@ function Mh() {
|
|
|
2826
2826
|
return null;
|
|
2827
2827
|
}
|
|
2828
2828
|
}
|
|
2829
|
-
return
|
|
2829
|
+
return qr;
|
|
2830
2830
|
}
|
|
2831
2831
|
var to, Ec;
|
|
2832
2832
|
function $h() {
|
|
2833
2833
|
return Ec || (Ec = 1, to = Mh()), to;
|
|
2834
2834
|
}
|
|
2835
2835
|
var Bh = $h();
|
|
2836
|
-
const
|
|
2836
|
+
const Ft = /* @__PURE__ */ ls(Bh);
|
|
2837
2837
|
function Vh(e, t, n) {
|
|
2838
2838
|
let r = 0, i = 0, o = e;
|
|
2839
2839
|
if (o.offsetParent)
|
|
@@ -2974,7 +2974,7 @@ const zh = (e) => {
|
|
|
2974
2974
|
left: `${d.left}px`
|
|
2975
2975
|
} : {}
|
|
2976
2976
|
},
|
|
2977
|
-
i ? /* @__PURE__ */ a.html("div", { classNames: "appcues-widget-header" },
|
|
2977
|
+
i ? /* @__PURE__ */ a.html("div", { classNames: "appcues-widget-header" }, Ft(i)) : /* @__PURE__ */ a.html(ae, null),
|
|
2978
2978
|
/* @__PURE__ */ a.html(
|
|
2979
2979
|
"div",
|
|
2980
2980
|
{
|
|
@@ -3020,7 +3020,7 @@ const zh = (e) => {
|
|
|
3020
3020
|
))
|
|
3021
3021
|
)
|
|
3022
3022
|
),
|
|
3023
|
-
o ? /* @__PURE__ */ a.html("div", { classNames: "appcues-widget-footer" },
|
|
3023
|
+
o ? /* @__PURE__ */ a.html("div", { classNames: "appcues-widget-footer" }, Ft(o)) : /* @__PURE__ */ a.html(ae, null)
|
|
3024
3024
|
)
|
|
3025
3025
|
);
|
|
3026
3026
|
};
|
|
@@ -3077,7 +3077,7 @@ function Jh(e, t) {
|
|
|
3077
3077
|
const n = document.createElement("div");
|
|
3078
3078
|
t.classList.add("appcues-widget"), t.appendChild(n);
|
|
3079
3079
|
const r = document.createElement("link");
|
|
3080
|
-
return r.setAttribute("rel", "stylesheet"), r.setAttribute("type", "text/css"), r.setAttribute("href",
|
|
3080
|
+
return r.setAttribute("rel", "stylesheet"), r.setAttribute("type", "text/css"), r.setAttribute("href", $t("/widget.css")), document.head.appendChild(r), e(n, /* @__PURE__ */ a.html("div", null));
|
|
3081
3081
|
}
|
|
3082
3082
|
function Qh(e) {
|
|
3083
3083
|
const t = document.createElement("div");
|
|
@@ -3219,7 +3219,7 @@ const $ = Ke([
|
|
|
3219
3219
|
"RUN_PREV_STEP_CHILD",
|
|
3220
3220
|
"CLEAR_CONTENT_STATE_CHILD",
|
|
3221
3221
|
"SET_FORCE_FOCUS"
|
|
3222
|
-
]),
|
|
3222
|
+
]), di = Ke(["PREPARE_MODAL", "RESIZE_MODAL_CONTENT"]), Ae = Ke([
|
|
3223
3223
|
"PREPARE_SATISFACTION_SURVEY",
|
|
3224
3224
|
"START_COLLAPSING_SATISFACTION_SURVEY",
|
|
3225
3225
|
"COLLAPSE_SATISFACTION_SURVEY",
|
|
@@ -3248,7 +3248,7 @@ const $ = Ke([
|
|
|
3248
3248
|
"GO_TO_STEP",
|
|
3249
3249
|
"SET_IS_SCROLLING_TO_ANNOTATION",
|
|
3250
3250
|
"CONFIRM_SCROLLING"
|
|
3251
|
-
]),
|
|
3251
|
+
]), qt = Ke([
|
|
3252
3252
|
"EXPAND_HOTSPOT",
|
|
3253
3253
|
"PREPARE_HOTSPOTS",
|
|
3254
3254
|
"SET_BEACON_SETTLED",
|
|
@@ -3303,7 +3303,7 @@ const $ = Ke([
|
|
|
3303
3303
|
"SET_SESSION",
|
|
3304
3304
|
"SESSION_STARTED",
|
|
3305
3305
|
"START_SESSION"
|
|
3306
|
-
]),
|
|
3306
|
+
]), xi = Ke(["SET_COLLISION_MODE"]), fi = Ke([
|
|
3307
3307
|
"LAUNCHPAD_SEARCH_RESPONSE",
|
|
3308
3308
|
"LAUNCHPAD_SEARCH_ERROR"
|
|
3309
3309
|
]);
|
|
@@ -3352,7 +3352,7 @@ b(
|
|
|
3352
3352
|
const cm = b($.PREPARE_CONTENT), lm = b($.CLEANUP_STEP), am = b($.START_CONTENT), um = b($.START_RESET), dm = b($.START_DEBUG), fm = b(
|
|
3353
3353
|
$.START_FORM_SUBMISSION,
|
|
3354
3354
|
(e, t, n, r) => ({ formId: e, fields: t, onSuccess: n, ignoreValidation: r })
|
|
3355
|
-
),
|
|
3355
|
+
), xr = b($.START_SHOW), pm = b($.STOP_TASKS), Ba = b(
|
|
3356
3356
|
$.START_CHECK,
|
|
3357
3357
|
(e, t, n) => ({ currentUrl: e, shouldOverrideCurrentFlow: t, requestId: n })
|
|
3358
3358
|
), ps = b(
|
|
@@ -3361,7 +3361,7 @@ const cm = b($.PREPARE_CONTENT), lm = b($.CLEANUP_STEP), am = b($.START_CONTENT)
|
|
|
3361
3361
|
), Va = b(
|
|
3362
3362
|
$.START_STEP,
|
|
3363
3363
|
(e, t, n = null) => ({ step: e, url: t, status: n })
|
|
3364
|
-
),
|
|
3364
|
+
), vr = b($.CANCEL_ATTEMPTS), se = b(
|
|
3365
3365
|
$.SEND_LIFECYCLE_EVENT,
|
|
3366
3366
|
(e, t = null) => ({ event: e, eventChannel: t })
|
|
3367
3367
|
), hm = b($.CLOSE_CHANNEL), mm = b(
|
|
@@ -3370,7 +3370,7 @@ const cm = b($.PREPARE_CONTENT), lm = b($.CLEANUP_STEP), am = b($.START_CONTENT)
|
|
|
3370
3370
|
), Em = b(U.INITIALIZE, (e) => ({ transport: e })), gm = b(U.IDENTIFY), Tc = b(
|
|
3371
3371
|
U.SENT_REQUEST,
|
|
3372
3372
|
(e, t) => ({ requestId: e, pageViewEvent: t })
|
|
3373
|
-
), Cc = b(U.CONFIGURE_TRANSPORT),
|
|
3373
|
+
), Cc = b(U.CONFIGURE_TRANSPORT), Pr = b(
|
|
3374
3374
|
U.UPDATE_USER,
|
|
3375
3375
|
(e, t) => ({ profile: e, merge: t })
|
|
3376
3376
|
), ym = b(U.RESET), hs = b(
|
|
@@ -3570,11 +3570,11 @@ function Gm(e, t) {
|
|
|
3570
3570
|
}
|
|
3571
3571
|
return e;
|
|
3572
3572
|
}
|
|
3573
|
-
var jm = "proc first argument (Saga function result) must be an iterator",
|
|
3573
|
+
var jm = "proc first argument (Saga function result) must be an iterator", Kr = {
|
|
3574
3574
|
toString: function() {
|
|
3575
3575
|
return "@@redux-saga/CHANNEL_END";
|
|
3576
3576
|
}
|
|
3577
|
-
},
|
|
3577
|
+
}, Qt = {
|
|
3578
3578
|
toString: function() {
|
|
3579
3579
|
return "@@redux-saga/TASK_CANCEL";
|
|
3580
3580
|
}
|
|
@@ -3613,7 +3613,7 @@ function qm(e, t, n) {
|
|
|
3613
3613
|
}
|
|
3614
3614
|
function c(u) {
|
|
3615
3615
|
r.push(u), u.cont = function(d, f) {
|
|
3616
|
-
o || (
|
|
3616
|
+
o || (Ti(r, u), u.cont = Pe, f ? s(d) : (u === t && (i = d), r.length || (o = !0, n(i))));
|
|
3617
3617
|
};
|
|
3618
3618
|
}
|
|
3619
3619
|
function l() {
|
|
@@ -3673,10 +3673,10 @@ function xo(e) {
|
|
|
3673
3673
|
O.cancel = Pe;
|
|
3674
3674
|
var _ = fe(s, c, e, l), S = { name: c, cancel: I, isRunning: !0 }, A = qm(c, S, L);
|
|
3675
3675
|
function I() {
|
|
3676
|
-
S.isRunning && !S.isCancelled && (S.isCancelled = !0, O(
|
|
3676
|
+
S.isRunning && !S.isCancelled && (S.isCancelled = !0, O(Qt));
|
|
3677
3677
|
}
|
|
3678
3678
|
function C() {
|
|
3679
|
-
e._isRunning && !e._isCancelled && (e._isCancelled = !0, A.cancelAll(), L(
|
|
3679
|
+
e._isRunning && !e._isCancelled && (e._isCancelled = !0, A.cancelAll(), L(Qt));
|
|
3680
3680
|
}
|
|
3681
3681
|
return l && (l.cancel = C), e._isRunning = !0, O(), _;
|
|
3682
3682
|
function O(N, x) {
|
|
@@ -3684,7 +3684,7 @@ function xo(e) {
|
|
|
3684
3684
|
throw new Error("Trying to resume an already finished generator");
|
|
3685
3685
|
try {
|
|
3686
3686
|
var k = void 0;
|
|
3687
|
-
x ? k = e.throw(N) : N ===
|
|
3687
|
+
x ? k = e.throw(N) : N === Qt ? (S.isCancelled = !0, O.cancel(), k = M.func(e.return) ? e.return(Qt) : { done: !0, value: Qt }) : N === Kr ? k = M.func(e.return) ? e.return() : { done: !0 } : k = e.next(N), k.done ? (S.isMainRunning = !1, S.cont && S.cont(k.value)) : H(k.value, s, "", O);
|
|
3688
3688
|
} catch (X) {
|
|
3689
3689
|
S.isCancelled && h(X), S.isMainRunning = !1, S.cont(X, !0);
|
|
3690
3690
|
}
|
|
@@ -3740,7 +3740,7 @@ function xo(e) {
|
|
|
3740
3740
|
var k = N.channel, X = N.pattern, Z = N.maybe;
|
|
3741
3741
|
k = k || m;
|
|
3742
3742
|
var Q = function(j) {
|
|
3743
|
-
return j instanceof Error ? x(j, !0) :
|
|
3743
|
+
return j instanceof Error ? x(j, !0) : ri(j) && !Z ? x(Kr) : x(j);
|
|
3744
3744
|
};
|
|
3745
3745
|
try {
|
|
3746
3746
|
k.take(Q, Lo(X));
|
|
@@ -3801,7 +3801,7 @@ function xo(e) {
|
|
|
3801
3801
|
if (N.isRunning()) {
|
|
3802
3802
|
var k = { task: _, cb: x };
|
|
3803
3803
|
x.cancel = function() {
|
|
3804
|
-
return
|
|
3804
|
+
return Ti(N.joiners, k);
|
|
3805
3805
|
}, N.joiners.push(k);
|
|
3806
3806
|
} else
|
|
3807
3807
|
N.isAborted() ? x(N.error(), !0) : x(N.result());
|
|
@@ -3818,8 +3818,8 @@ function xo(e) {
|
|
|
3818
3818
|
Z === X.length && (Q = !0, k(M.array(N) ? Md.from(Oc({}, B, { length: X.length })) : B));
|
|
3819
3819
|
}
|
|
3820
3820
|
X.forEach(function(xe) {
|
|
3821
|
-
var wn = function(_t,
|
|
3822
|
-
Q || (
|
|
3821
|
+
var wn = function(_t, Vr) {
|
|
3822
|
+
Q || (Vr || ri(_t) || _t === Kr || _t === Qt ? (k.cancel(), k(_t, Vr)) : (B[xe] = _t, Z++, ke()));
|
|
3823
3823
|
};
|
|
3824
3824
|
wn.cancel = Pe, j[xe] = wn;
|
|
3825
3825
|
}), k.cancel = function() {
|
|
@@ -3837,7 +3837,7 @@ function xo(e) {
|
|
|
3837
3837
|
if (!X) {
|
|
3838
3838
|
if (wn)
|
|
3839
3839
|
k.cancel(), k(xe, !0);
|
|
3840
|
-
else if (!
|
|
3840
|
+
else if (!ri(xe) && xe !== Kr && xe !== Qt) {
|
|
3841
3841
|
var Nn;
|
|
3842
3842
|
k.cancel(), X = !0;
|
|
3843
3843
|
var _t = (Nn = {}, Nn[B] = xe, Nn);
|
|
@@ -3865,7 +3865,7 @@ function xo(e) {
|
|
|
3865
3865
|
}
|
|
3866
3866
|
function V(N, x) {
|
|
3867
3867
|
var k = N.pattern, X = N.buffer, Z = Lo(k);
|
|
3868
|
-
Z.pattern = k, x(
|
|
3868
|
+
Z.pattern = k, x(kr(t, X || Gn.fixed(), Z));
|
|
3869
3869
|
}
|
|
3870
3870
|
function K(N, x) {
|
|
3871
3871
|
x(!!S.isCancelled);
|
|
@@ -3978,7 +3978,7 @@ const Zm = {
|
|
|
3978
3978
|
function eE({ getState: e }) {
|
|
3979
3979
|
return (t) => (n) => {
|
|
3980
3980
|
try {
|
|
3981
|
-
n.error &&
|
|
3981
|
+
n.error && Mt(e())(n.payload, { extra: n.payload.extra || {} });
|
|
3982
3982
|
} catch {
|
|
3983
3983
|
} finally {
|
|
3984
3984
|
t(n);
|
|
@@ -3994,8 +3994,8 @@ function yt(e, t) {
|
|
|
3994
3994
|
state: { ...e.currentContent.state, ...t }
|
|
3995
3995
|
});
|
|
3996
3996
|
}
|
|
3997
|
-
function
|
|
3998
|
-
const r =
|
|
3997
|
+
function Pt(e, t, n) {
|
|
3998
|
+
const r = kt(e);
|
|
3999
3999
|
return yt(e, {
|
|
4000
4000
|
children: {
|
|
4001
4001
|
...r,
|
|
@@ -4004,7 +4004,7 @@ function xt(e, t, n) {
|
|
|
4004
4004
|
});
|
|
4005
4005
|
}
|
|
4006
4006
|
function nE(e, t) {
|
|
4007
|
-
const n =
|
|
4007
|
+
const n = kt(e);
|
|
4008
4008
|
return yt(e, {
|
|
4009
4009
|
children: {
|
|
4010
4010
|
...n,
|
|
@@ -4073,7 +4073,7 @@ const rE = {
|
|
|
4073
4073
|
});
|
|
4074
4074
|
}
|
|
4075
4075
|
),
|
|
4076
|
-
[
|
|
4076
|
+
[xi.SET_COLLISION_MODE]: D(
|
|
4077
4077
|
(e, t) => ({
|
|
4078
4078
|
...e,
|
|
4079
4079
|
collisionMode: t.collisionMode,
|
|
@@ -4096,7 +4096,7 @@ function* iE(e) {
|
|
|
4096
4096
|
try {
|
|
4097
4097
|
yield In(e);
|
|
4098
4098
|
} catch (t) {
|
|
4099
|
-
const n = yield v(
|
|
4099
|
+
const n = yield v(Mt);
|
|
4100
4100
|
try {
|
|
4101
4101
|
n(t);
|
|
4102
4102
|
} catch {
|
|
@@ -4104,8 +4104,8 @@ function* iE(e) {
|
|
|
4104
4104
|
}
|
|
4105
4105
|
}
|
|
4106
4106
|
function* oE(e, ...t) {
|
|
4107
|
-
const n = yield
|
|
4108
|
-
return yield
|
|
4107
|
+
const n = yield Nt(e, ...t);
|
|
4108
|
+
return yield Nt(iE, n), n;
|
|
4109
4109
|
}
|
|
4110
4110
|
function ut(e, ...t) {
|
|
4111
4111
|
return E(oE, e, ...t);
|
|
@@ -4125,7 +4125,7 @@ function* Ka(e, t, n, ...r) {
|
|
|
4125
4125
|
const i = yield W(e), o = yield ut(t, ...r, i);
|
|
4126
4126
|
if (n) {
|
|
4127
4127
|
const s = typeof n == "function" ? yield E(n) : n;
|
|
4128
|
-
yield g(bm(s, o)), yield
|
|
4128
|
+
yield g(bm(s, o)), yield Nt(sE, s, o);
|
|
4129
4129
|
}
|
|
4130
4130
|
}
|
|
4131
4131
|
}
|
|
@@ -4145,13 +4145,13 @@ function* Ze(e, t, ...n) {
|
|
|
4145
4145
|
function* lE(e) {
|
|
4146
4146
|
yield qe(e);
|
|
4147
4147
|
}
|
|
4148
|
-
function
|
|
4148
|
+
function Jt(e, t, n) {
|
|
4149
4149
|
let r = n;
|
|
4150
4150
|
return ne.defined(r) || (r = Date.now()), { name: e, attributes: t, timestamp: r };
|
|
4151
4151
|
}
|
|
4152
4152
|
function Be(e) {
|
|
4153
4153
|
const t = { ...e }, { id: n, timestamp: r } = t;
|
|
4154
|
-
return delete t.timestamp, delete t.id, delete t.actionId, delete t.name,
|
|
4154
|
+
return delete t.timestamp, delete t.id, delete t.actionId, delete t.name, Jt(`appcues:${n}`, t, r);
|
|
4155
4155
|
}
|
|
4156
4156
|
const ht = (e, t, n) => {
|
|
4157
4157
|
const r = e.context && Object.keys(e.context) && e.context.locale_name, i = e.context && Object.keys(e.context) && e.context.locale_id, { workflow_id: o, workflow_task_id: s } = e;
|
|
@@ -4172,7 +4172,7 @@ const ht = (e, t, n) => {
|
|
|
4172
4172
|
timestamp: Date.now(),
|
|
4173
4173
|
sessionId: e.id
|
|
4174
4174
|
});
|
|
4175
|
-
function
|
|
4175
|
+
function Dr(e, t, n) {
|
|
4176
4176
|
return {
|
|
4177
4177
|
checklistId: e.id,
|
|
4178
4178
|
checklistName: e.internal_name,
|
|
@@ -4206,8 +4206,8 @@ function vn(e, t, n, r) {
|
|
|
4206
4206
|
r
|
|
4207
4207
|
);
|
|
4208
4208
|
}
|
|
4209
|
-
function
|
|
4210
|
-
const o =
|
|
4209
|
+
function Fr(e, t, n, r, i) {
|
|
4210
|
+
const o = mn(t, n);
|
|
4211
4211
|
return vn(e, t, r, {
|
|
4212
4212
|
stepChildId: n,
|
|
4213
4213
|
stepChildNumber: o,
|
|
@@ -4215,7 +4215,7 @@ function Dr(e, t, n, r, i) {
|
|
|
4215
4215
|
});
|
|
4216
4216
|
}
|
|
4217
4217
|
function ms(e, t, n, r, i, o) {
|
|
4218
|
-
return
|
|
4218
|
+
return Fr(e, t, n, o, {
|
|
4219
4219
|
interactionType: r,
|
|
4220
4220
|
interaction: i
|
|
4221
4221
|
});
|
|
@@ -4272,7 +4272,7 @@ function SE(e, t, n, r) {
|
|
|
4272
4272
|
"step_skipped",
|
|
4273
4273
|
vn(e, t, r, {
|
|
4274
4274
|
stepChildId: n,
|
|
4275
|
-
stepChildNumber:
|
|
4275
|
+
stepChildNumber: mn(t, n)
|
|
4276
4276
|
})
|
|
4277
4277
|
);
|
|
4278
4278
|
}
|
|
@@ -4282,13 +4282,13 @@ function TE(e, t, n) {
|
|
|
4282
4282
|
function CE(e, t, n, r) {
|
|
4283
4283
|
return Te(
|
|
4284
4284
|
"step_child_activated",
|
|
4285
|
-
|
|
4285
|
+
Fr(e, t, n, r)
|
|
4286
4286
|
);
|
|
4287
4287
|
}
|
|
4288
4288
|
function _E(e, t, n, r, i) {
|
|
4289
4289
|
return Te(
|
|
4290
4290
|
"step_child_deactivated",
|
|
4291
|
-
|
|
4291
|
+
Fr(e, t, n, i, { timeSpent: r })
|
|
4292
4292
|
);
|
|
4293
4293
|
}
|
|
4294
4294
|
function Pc(e, t, n, r, i, o) {
|
|
@@ -4325,7 +4325,7 @@ function AE(e, t, n, r, i) {
|
|
|
4325
4325
|
function vE(e, t, n, r, i) {
|
|
4326
4326
|
return Te(
|
|
4327
4327
|
"step_child_error",
|
|
4328
|
-
|
|
4328
|
+
Fr(e, t, n, i, {
|
|
4329
4329
|
error: r
|
|
4330
4330
|
})
|
|
4331
4331
|
);
|
|
@@ -4333,7 +4333,7 @@ function vE(e, t, n, r, i) {
|
|
|
4333
4333
|
function bE(e, t, n, r) {
|
|
4334
4334
|
return Te(
|
|
4335
4335
|
"step_child_recovered",
|
|
4336
|
-
|
|
4336
|
+
Fr(e, t, n, r)
|
|
4337
4337
|
);
|
|
4338
4338
|
}
|
|
4339
4339
|
function wE(e, t, n, r, i) {
|
|
@@ -4365,31 +4365,31 @@ function NE(e, t, n, r, i) {
|
|
|
4365
4365
|
function kE(e, t) {
|
|
4366
4366
|
return Te(
|
|
4367
4367
|
"checklist_shown",
|
|
4368
|
-
|
|
4368
|
+
Dr(e, t)
|
|
4369
4369
|
);
|
|
4370
4370
|
}
|
|
4371
4371
|
function OE(e, t) {
|
|
4372
4372
|
return Te(
|
|
4373
4373
|
"checklist_completed",
|
|
4374
|
-
|
|
4374
|
+
Dr(e, t)
|
|
4375
4375
|
);
|
|
4376
4376
|
}
|
|
4377
4377
|
function RE(e, t) {
|
|
4378
4378
|
return Te(
|
|
4379
4379
|
"checklist_skipped",
|
|
4380
|
-
|
|
4380
|
+
Dr(e, t)
|
|
4381
4381
|
);
|
|
4382
4382
|
}
|
|
4383
4383
|
function LE(e, t) {
|
|
4384
4384
|
return Te(
|
|
4385
4385
|
"checklist_dismissed",
|
|
4386
|
-
|
|
4386
|
+
Dr(e, t)
|
|
4387
4387
|
);
|
|
4388
4388
|
}
|
|
4389
4389
|
function xE(e, t) {
|
|
4390
4390
|
return Te(
|
|
4391
4391
|
"checklist_shown_manually",
|
|
4392
|
-
|
|
4392
|
+
Dr(e, t)
|
|
4393
4393
|
);
|
|
4394
4394
|
}
|
|
4395
4395
|
function PE(e, t, n) {
|
|
@@ -4525,10 +4525,10 @@ const VE = {
|
|
|
4525
4525
|
let s = r[o];
|
|
4526
4526
|
if (jn(s))
|
|
4527
4527
|
for (let c = 0; c < ua(s); c++) {
|
|
4528
|
-
const l =
|
|
4528
|
+
const l = Dt(s, c), u = An(l);
|
|
4529
4529
|
if (fa(l, u.length - 1)) {
|
|
4530
|
-
const d =
|
|
4531
|
-
if (
|
|
4530
|
+
const d = Dt(s, c + 1);
|
|
4531
|
+
if (Or(d) && !ne.defined(d.attributes.params.initiated_by_user)) {
|
|
4532
4532
|
const f = s.attributes.steps[d.id];
|
|
4533
4533
|
s = {
|
|
4534
4534
|
...s,
|
|
@@ -4585,7 +4585,7 @@ const VE = {
|
|
|
4585
4585
|
const n = ce(e);
|
|
4586
4586
|
if (t.error) {
|
|
4587
4587
|
let { orderedContent: r } = e;
|
|
4588
|
-
r && (r = r.filter((o) => o !==
|
|
4588
|
+
r && (r = r.filter((o) => o !== En(e)));
|
|
4589
4589
|
const i = {
|
|
4590
4590
|
...e,
|
|
4591
4591
|
currentContent: {
|
|
@@ -4679,12 +4679,12 @@ const VE = {
|
|
|
4679
4679
|
...e,
|
|
4680
4680
|
tasks: {
|
|
4681
4681
|
...e.tasks,
|
|
4682
|
-
[t.key]: [...
|
|
4682
|
+
[t.key]: [...ii(e, t.key) || [], t.task]
|
|
4683
4683
|
}
|
|
4684
4684
|
})),
|
|
4685
|
-
[U.CLEAR_TASKS]: D((e, t) =>
|
|
4685
|
+
[U.CLEAR_TASKS]: D((e, t) => ii(e, t) ? { ...e, tasks: { ...e.tasks, [t]: null } } : e),
|
|
4686
4686
|
[U.CLEAR_TASK]: D((e, t) => {
|
|
4687
|
-
const { key: n, id: r } = t, i =
|
|
4687
|
+
const { key: n, id: r } = t, i = ii(e, n);
|
|
4688
4688
|
return i ? {
|
|
4689
4689
|
...e,
|
|
4690
4690
|
tasks: { ...e.tasks, [n]: i.filter((o) => o.id !== r) }
|
|
@@ -4742,8 +4742,8 @@ const VE = {
|
|
|
4742
4742
|
break;
|
|
4743
4743
|
}
|
|
4744
4744
|
case z.HOTSPOTS: {
|
|
4745
|
-
if (
|
|
4746
|
-
return
|
|
4745
|
+
if (kt(e)[t])
|
|
4746
|
+
return Pt(e, t, {
|
|
4747
4747
|
cssLoaded: !0
|
|
4748
4748
|
});
|
|
4749
4749
|
break;
|
|
@@ -4756,7 +4756,7 @@ const VE = {
|
|
|
4756
4756
|
const { currentContent: n } = e, r = n.state, i = Math.ceil(t.height) + 2, o = Math.ceil(t.width) + 2;
|
|
4757
4757
|
let s = {};
|
|
4758
4758
|
if (r && r.children && (s = r.children[t.id] || {}), s.height !== i || s.width !== o)
|
|
4759
|
-
return
|
|
4759
|
+
return Pt(e, t.id, {
|
|
4760
4760
|
height: i,
|
|
4761
4761
|
width: o,
|
|
4762
4762
|
lastResizeTs: t.ts
|
|
@@ -4764,11 +4764,11 @@ const VE = {
|
|
|
4764
4764
|
}
|
|
4765
4765
|
return e;
|
|
4766
4766
|
}),
|
|
4767
|
-
[le.ACTIVATED_STEP_CHILD]: D((e, t) => e.currentContent && st(e) === t.stepChildId ?
|
|
4767
|
+
[le.ACTIVATED_STEP_CHILD]: D((e, t) => e.currentContent && st(e) === t.stepChildId ? Pt(e, t.stepChildId, {
|
|
4768
4768
|
activatedAt: t.timestamp
|
|
4769
4769
|
}) : e),
|
|
4770
4770
|
[le.DEACTIVATED_STEP_CHILD]: D(
|
|
4771
|
-
(e, t) => is(e, t) ?
|
|
4771
|
+
(e, t) => is(e, t) ? Pt(e, t, {
|
|
4772
4772
|
activatedAt: null
|
|
4773
4773
|
}) : e
|
|
4774
4774
|
),
|
|
@@ -4783,7 +4783,7 @@ const VE = {
|
|
|
4783
4783
|
stepId: t,
|
|
4784
4784
|
status: te.PENDING
|
|
4785
4785
|
})),
|
|
4786
|
-
[le.CLOSE_STEP]: D((e, t) =>
|
|
4786
|
+
[le.CLOSE_STEP]: D((e, t) => En(e) === t.flowId && ce(e) === t.stepId ? Qe(e, {
|
|
4787
4787
|
stepId: null,
|
|
4788
4788
|
status: null,
|
|
4789
4789
|
state: {}
|
|
@@ -4792,7 +4792,7 @@ const VE = {
|
|
|
4792
4792
|
* Reducer for the CLOSE_FLOW action. Updates the `orderedContent` and
|
|
4793
4793
|
* `currentContent` values.
|
|
4794
4794
|
*/
|
|
4795
|
-
[le.CLOSE_FLOW]: D((e, t) => t.flowId ===
|
|
4795
|
+
[le.CLOSE_FLOW]: D((e, t) => t.flowId === En(e) ? t.type === wt.CLEAR ? { ...e, currentContent: null } : {
|
|
4796
4796
|
...e,
|
|
4797
4797
|
orderedContent: e.orderedContent.slice(1),
|
|
4798
4798
|
currentContent: null
|
|
@@ -4805,7 +4805,7 @@ const VE = {
|
|
|
4805
4805
|
(e, t) => nE(e, t.stepChildId)
|
|
4806
4806
|
)
|
|
4807
4807
|
}, GE = {
|
|
4808
|
-
[
|
|
4808
|
+
[di.PREPARE_MODAL]: D((e) => ye(e).type === z.MODAL ? {
|
|
4809
4809
|
...e,
|
|
4810
4810
|
currentContent: {
|
|
4811
4811
|
...e.currentContent,
|
|
@@ -4815,8 +4815,8 @@ const VE = {
|
|
|
4815
4815
|
status: te.READY
|
|
4816
4816
|
}
|
|
4817
4817
|
} : e),
|
|
4818
|
-
[
|
|
4819
|
-
const n =
|
|
4818
|
+
[di.RESIZE_MODAL_CONTENT]: D((e, t) => {
|
|
4819
|
+
const n = Lr(e);
|
|
4820
4820
|
return e.currentContent ? {
|
|
4821
4821
|
...e,
|
|
4822
4822
|
currentContent: {
|
|
@@ -4830,7 +4830,7 @@ const VE = {
|
|
|
4830
4830
|
} : e;
|
|
4831
4831
|
})
|
|
4832
4832
|
}, jE = {
|
|
4833
|
-
[
|
|
4833
|
+
[Ae.PREPARE_SATISFACTION_SURVEY]: D(
|
|
4834
4834
|
(e) => ye(e).type === z.SATISFACTION_SURVEY ? {
|
|
4835
4835
|
...e,
|
|
4836
4836
|
currentContent: {
|
|
@@ -4845,7 +4845,7 @@ const VE = {
|
|
|
4845
4845
|
}
|
|
4846
4846
|
} : e
|
|
4847
4847
|
),
|
|
4848
|
-
[
|
|
4848
|
+
[Ae.COLLAPSE_SATISFACTION_SURVEY]: D(
|
|
4849
4849
|
(e) => ye(e).type === z.SATISFACTION_SURVEY ? {
|
|
4850
4850
|
...e,
|
|
4851
4851
|
currentContent: {
|
|
@@ -4858,7 +4858,7 @@ const VE = {
|
|
|
4858
4858
|
}
|
|
4859
4859
|
} : e
|
|
4860
4860
|
),
|
|
4861
|
-
[
|
|
4861
|
+
[Ae.EXPAND_SATISFACTION_SURVEY]: D(
|
|
4862
4862
|
(e) => ye(e).type === z.SATISFACTION_SURVEY ? {
|
|
4863
4863
|
...e,
|
|
4864
4864
|
currentContent: {
|
|
@@ -4871,7 +4871,7 @@ const VE = {
|
|
|
4871
4871
|
}
|
|
4872
4872
|
} : e
|
|
4873
4873
|
),
|
|
4874
|
-
[
|
|
4874
|
+
[Ae.ASK_ME_LATER_SELECTED]: D((e) => ye(e).type === z.SATISFACTION_SURVEY ? {
|
|
4875
4875
|
...e,
|
|
4876
4876
|
currentContent: {
|
|
4877
4877
|
...e.currentContent,
|
|
@@ -4882,7 +4882,7 @@ const VE = {
|
|
|
4882
4882
|
}
|
|
4883
4883
|
}
|
|
4884
4884
|
} : e),
|
|
4885
|
-
[
|
|
4885
|
+
[Ae.SHOW_SATISFACTION_SURVEY_TOAST]: D(
|
|
4886
4886
|
(e) => ye(e).type === z.SATISFACTION_SURVEY ? {
|
|
4887
4887
|
...e,
|
|
4888
4888
|
currentContent: {
|
|
@@ -4894,7 +4894,7 @@ const VE = {
|
|
|
4894
4894
|
}
|
|
4895
4895
|
} : e
|
|
4896
4896
|
),
|
|
4897
|
-
[
|
|
4897
|
+
[Ae.HIDE_SATISFACTION_SURVEY_TOAST]: D(
|
|
4898
4898
|
(e) => ye(e).type === z.SATISFACTION_SURVEY ? {
|
|
4899
4899
|
...e,
|
|
4900
4900
|
currentContent: {
|
|
@@ -4906,7 +4906,7 @@ const VE = {
|
|
|
4906
4906
|
}
|
|
4907
4907
|
} : e
|
|
4908
4908
|
),
|
|
4909
|
-
[
|
|
4909
|
+
[Ae.QUANTITATIVE_QUESTION_SUBMITTED]: D(
|
|
4910
4910
|
(e) => ye(e).type === z.SATISFACTION_SURVEY ? {
|
|
4911
4911
|
...e,
|
|
4912
4912
|
currentContent: {
|
|
@@ -4919,7 +4919,7 @@ const VE = {
|
|
|
4919
4919
|
}
|
|
4920
4920
|
} : e
|
|
4921
4921
|
),
|
|
4922
|
-
[
|
|
4922
|
+
[Ae.QUALITATIVE_QUESTION_SUBMITTED]: D(
|
|
4923
4923
|
(e) => ye(e).type === z.SATISFACTION_SURVEY ? {
|
|
4924
4924
|
...e,
|
|
4925
4925
|
currentContent: {
|
|
@@ -4932,7 +4932,7 @@ const VE = {
|
|
|
4932
4932
|
}
|
|
4933
4933
|
} : e
|
|
4934
4934
|
),
|
|
4935
|
-
[
|
|
4935
|
+
[Ae.FEEDBACK_TEXT_CHANGED]: D(
|
|
4936
4936
|
(e, t) => ye(e).type === z.SATISFACTION_SURVEY ? {
|
|
4937
4937
|
...e,
|
|
4938
4938
|
currentContent: {
|
|
@@ -4951,7 +4951,7 @@ function Sr() {
|
|
|
4951
4951
|
}
|
|
4952
4952
|
function no(e, t, n) {
|
|
4953
4953
|
if (t.length > 0) {
|
|
4954
|
-
let r =
|
|
4954
|
+
let r = Ai(e);
|
|
4955
4955
|
return t.forEach((i) => {
|
|
4956
4956
|
r = { ...r, [i]: { ...r[i], ...n(i) } };
|
|
4957
4957
|
}), {
|
|
@@ -4980,7 +4980,7 @@ const qE = {
|
|
|
4980
4980
|
(e, t) => {
|
|
4981
4981
|
let n = e;
|
|
4982
4982
|
return t.forEach((r) => {
|
|
4983
|
-
n =
|
|
4983
|
+
n = Pt(n, r, {
|
|
4984
4984
|
willClose: !0
|
|
4985
4985
|
});
|
|
4986
4986
|
}), n;
|
|
@@ -4999,7 +4999,7 @@ const qE = {
|
|
|
4999
4999
|
),
|
|
5000
5000
|
[he.SET_ANNOTATIONS_POSITIONS]: D(
|
|
5001
5001
|
(e, t) => {
|
|
5002
|
-
const n = {}, r =
|
|
5002
|
+
const n = {}, r = kt(e);
|
|
5003
5003
|
return Object.keys(t).forEach((i) => {
|
|
5004
5004
|
const o = {
|
|
5005
5005
|
...r[i],
|
|
@@ -5019,7 +5019,7 @@ const qE = {
|
|
|
5019
5019
|
(e, t) => {
|
|
5020
5020
|
let n = e;
|
|
5021
5021
|
return Object.keys(t).forEach((r) => {
|
|
5022
|
-
n =
|
|
5022
|
+
n = Pt(n, r, {
|
|
5023
5023
|
_prevPosition: t[r]
|
|
5024
5024
|
});
|
|
5025
5025
|
}), n;
|
|
@@ -5034,12 +5034,12 @@ const qE = {
|
|
|
5034
5034
|
[he.SET_EXISTING_ANNOTATIONS_ERRORS]: D(
|
|
5035
5035
|
(e, t) => no(e, Object.keys(t || {}), (n) => ({ existingError: t[n] }))
|
|
5036
5036
|
),
|
|
5037
|
-
[he.SET_TOOLTIP_SETTLED]: D((e, t) =>
|
|
5037
|
+
[he.SET_TOOLTIP_SETTLED]: D((e, t) => Pt(e, t.id, {
|
|
5038
5038
|
isTooltipSettled: t.isTooltipSettled
|
|
5039
5039
|
}))
|
|
5040
5040
|
}, KE = {
|
|
5041
|
-
[
|
|
5042
|
-
[
|
|
5041
|
+
[qt.EXPAND_HOTSPOT]: D((e, t) => ce(e) ? Pt(e, t, { expanded: !0 }) : e),
|
|
5042
|
+
[qt.PREPARE_HOTSPOTS]: D((e) => {
|
|
5043
5043
|
const t = ye(e);
|
|
5044
5044
|
if (t.type === z.HOTSPOTS) {
|
|
5045
5045
|
const n = tt(e);
|
|
@@ -5055,7 +5055,7 @@ const qE = {
|
|
|
5055
5055
|
}
|
|
5056
5056
|
return e;
|
|
5057
5057
|
}),
|
|
5058
|
-
[
|
|
5058
|
+
[qt.SET_BEACON_SETTLED]: D((e, t) => Pt(e, t.id, {
|
|
5059
5059
|
isBeaconSettled: t.isBeaconSettled
|
|
5060
5060
|
}))
|
|
5061
5061
|
};
|
|
@@ -5108,7 +5108,7 @@ const zE = {
|
|
|
5108
5108
|
function Qa(e, t) {
|
|
5109
5109
|
return lt(t, (n) => n.id === e);
|
|
5110
5110
|
}
|
|
5111
|
-
function
|
|
5111
|
+
function Rt(e, t, n) {
|
|
5112
5112
|
const i = { ...Qa(t, e.checklists), ...n };
|
|
5113
5113
|
return {
|
|
5114
5114
|
...e,
|
|
@@ -5142,40 +5142,40 @@ const XE = {
|
|
|
5142
5142
|
checklists: n.map((r) => r.id === t.id ? { ...r, status: t.status } : r)
|
|
5143
5143
|
};
|
|
5144
5144
|
}),
|
|
5145
|
-
[re.ANIMATE_IN_CHECKLIST]: D((e, t) =>
|
|
5146
|
-
viewState:
|
|
5145
|
+
[re.ANIMATE_IN_CHECKLIST]: D((e, t) => Rt(e, t.id, {
|
|
5146
|
+
viewState: Gt.FIRSTVIEW
|
|
5147
5147
|
})),
|
|
5148
|
-
[re.EXPAND_CHECKLIST]: D((e, t) =>
|
|
5149
|
-
viewState:
|
|
5148
|
+
[re.EXPAND_CHECKLIST]: D((e, t) => Rt(e, t.checklistId, {
|
|
5149
|
+
viewState: Gt.EXPANDED
|
|
5150
5150
|
})),
|
|
5151
5151
|
[re.SET_EXPAND_CHECKLIST_LATER]: D(
|
|
5152
|
-
(e, t) =>
|
|
5152
|
+
(e, t) => Rt(e, t.checklistId, {
|
|
5153
5153
|
shouldTryExpandChecklist: t.shouldTryExpandChecklist
|
|
5154
5154
|
})
|
|
5155
5155
|
),
|
|
5156
|
-
[re.COLLAPSE_CHECKLIST]: D((e, t) =>
|
|
5157
|
-
viewState:
|
|
5156
|
+
[re.COLLAPSE_CHECKLIST]: D((e, t) => Rt(e, t.checklistId, {
|
|
5157
|
+
viewState: Gt.COLLAPSED
|
|
5158
5158
|
})),
|
|
5159
5159
|
[re.SHOW_DISMISS_CONFIRMATION]: D(
|
|
5160
|
-
(e, t) =>
|
|
5160
|
+
(e, t) => Rt(e, t.checklistId, {
|
|
5161
5161
|
shouldShowConfirmDismiss: !0
|
|
5162
5162
|
})
|
|
5163
5163
|
),
|
|
5164
5164
|
[re.CANCEL_DISMISS_CONFIRMATION]: D(
|
|
5165
|
-
(e, t) =>
|
|
5165
|
+
(e, t) => Rt(e, t.checklistId, {
|
|
5166
5166
|
shouldShowConfirmDismiss: !1
|
|
5167
5167
|
})
|
|
5168
5168
|
),
|
|
5169
5169
|
[re.CONFIRM_DISMISS_CHECKLIST]: D(
|
|
5170
|
-
(e, t) =>
|
|
5170
|
+
(e, t) => Rt(e, t.checklistId, {
|
|
5171
5171
|
status: te.DISMISSED,
|
|
5172
5172
|
shouldShowConfirmDismiss: !1
|
|
5173
5173
|
})
|
|
5174
5174
|
),
|
|
5175
|
-
[re.SET_CHECKLIST_HEIGHT]: D((e, t) =>
|
|
5175
|
+
[re.SET_CHECKLIST_HEIGHT]: D((e, t) => Rt(e, t.checklistId, {
|
|
5176
5176
|
frameHeight: Math.ceil(t.height)
|
|
5177
5177
|
})),
|
|
5178
|
-
[re.SET_CHECKLIST_WIDTH]: D((e, t) =>
|
|
5178
|
+
[re.SET_CHECKLIST_WIDTH]: D((e, t) => Rt(e, t.checklistId, {
|
|
5179
5179
|
beaconWidth: Math.ceil(t.width)
|
|
5180
5180
|
}))
|
|
5181
5181
|
}, JE = {
|
|
@@ -5295,9 +5295,9 @@ function ng() {
|
|
|
5295
5295
|
return t !== 0;
|
|
5296
5296
|
}), ro;
|
|
5297
5297
|
}
|
|
5298
|
-
var
|
|
5298
|
+
var Yr = {}, Hc;
|
|
5299
5299
|
function rg() {
|
|
5300
|
-
if (Hc) return
|
|
5300
|
+
if (Hc) return Yr;
|
|
5301
5301
|
Hc = 1;
|
|
5302
5302
|
var e = Object.prototype.hasOwnProperty, t;
|
|
5303
5303
|
function n(s) {
|
|
@@ -5332,7 +5332,7 @@ function rg() {
|
|
|
5332
5332
|
}
|
|
5333
5333
|
return l.length ? c + l.join("&") : "";
|
|
5334
5334
|
}
|
|
5335
|
-
return
|
|
5335
|
+
return Yr.stringify = o, Yr.parse = i, Yr;
|
|
5336
5336
|
}
|
|
5337
5337
|
var io, Mc;
|
|
5338
5338
|
function ig() {
|
|
@@ -5467,7 +5467,7 @@ function ve(e) {
|
|
|
5467
5467
|
setTimeout(t, e);
|
|
5468
5468
|
});
|
|
5469
5469
|
}
|
|
5470
|
-
function
|
|
5470
|
+
function Yt(e, t, n) {
|
|
5471
5471
|
return ve(10).then(() => {
|
|
5472
5472
|
n ? e.open(t) : e.location.href = t;
|
|
5473
5473
|
});
|
|
@@ -5518,8 +5518,8 @@ function tu(e, t) {
|
|
|
5518
5518
|
return window;
|
|
5519
5519
|
}
|
|
5520
5520
|
})(o);
|
|
5521
|
-
|
|
5522
|
-
}, 200)) : i.type === "keyup" && o === "_blank" &&
|
|
5521
|
+
Yt(s, n);
|
|
5522
|
+
}, 200)) : i.type === "keyup" && o === "_blank" && Yt(window, n, !0);
|
|
5523
5523
|
};
|
|
5524
5524
|
Et(e, "click", r), Et(e, "keyup", r);
|
|
5525
5525
|
} else
|
|
@@ -5545,7 +5545,7 @@ function Sg(e) {
|
|
|
5545
5545
|
}
|
|
5546
5546
|
const Tg = "pattern-title", Cg = (e) => {
|
|
5547
5547
|
setTimeout(() => {
|
|
5548
|
-
const [t] =
|
|
5548
|
+
const [t] = Ri(e.elm);
|
|
5549
5549
|
if (t) {
|
|
5550
5550
|
it(t);
|
|
5551
5551
|
return;
|
|
@@ -5594,12 +5594,12 @@ function _g(e) {
|
|
|
5594
5594
|
let R = t.step_buttons;
|
|
5595
5595
|
(R == null || R.length === 0) && (R = [
|
|
5596
5596
|
{
|
|
5597
|
-
text:
|
|
5597
|
+
text: Ft(t.next_text),
|
|
5598
5598
|
type: O.NEXT,
|
|
5599
5599
|
align: C.RIGHT
|
|
5600
5600
|
},
|
|
5601
5601
|
{
|
|
5602
|
-
text:
|
|
5602
|
+
text: Ft(t.prev_text),
|
|
5603
5603
|
type: O.BACK,
|
|
5604
5604
|
align: C.LEFT
|
|
5605
5605
|
}
|
|
@@ -5657,7 +5657,7 @@ function _g(e) {
|
|
|
5657
5657
|
-1
|
|
5658
5658
|
), Ye = (V) => {
|
|
5659
5659
|
if (ka(V)) {
|
|
5660
|
-
const K = Ne(V, "data-step"), ie = Ne(V, "href"), _e = Ne(V, "data-attrs-event"), oe = Ne(V, "data-attrs-profile-update"), fe =
|
|
5660
|
+
const K = Ne(V, "data-step"), ie = Ne(V, "href"), _e = Ne(V, "data-attrs-event"), oe = Ne(V, "data-attrs-profile-update"), fe = rn(V, "appcues-button"), N = Ne(V, "data-next-content-id"), x = [];
|
|
5661
5661
|
if (N && x.push(() => A(N)), ie ? (eu(V), x.push((k) => p(k, t.id, ie))) : (Ee(V, "role", "button"), Ee(V, "tabindex", "0")), oe)
|
|
5662
5662
|
try {
|
|
5663
5663
|
const k = JSON.parse(oe);
|
|
@@ -5753,18 +5753,18 @@ function _g(e) {
|
|
|
5753
5753
|
const { currentTarget: ie } = K;
|
|
5754
5754
|
G(ie, s ? () => c(K) : () => u(K, t.id)), K.preventDefault ? K.preventDefault() : K.returnValue = !1;
|
|
5755
5755
|
}
|
|
5756
|
-
}),
|
|
5756
|
+
}), rn(V, "form-field")) {
|
|
5757
5757
|
const K = Ce();
|
|
5758
5758
|
let ie;
|
|
5759
5759
|
V.children.forEach((_e) => {
|
|
5760
5760
|
_e.children && _e.children.forEach((oe) => {
|
|
5761
|
-
|
|
5761
|
+
rn(oe, "label-display") && (ie = Ne(oe, "for"), Ee(oe, "id", `label-${ie}`));
|
|
5762
5762
|
const fe = K.find(
|
|
5763
5763
|
(N) => N.fieldId === ie
|
|
5764
5764
|
);
|
|
5765
|
-
if (
|
|
5765
|
+
if (rn(oe, "form-control") && (Ee(oe, "aria-invalid", "false"), ie && Ee(oe, "id", ie), fe?.value && Ee(oe, "value", fe.value), ie === K[Oe]?.fieldId && oo(oe), q || as(oe, "insert", (N) => {
|
|
5766
5766
|
N.elm && N.elm.focus();
|
|
5767
|
-
})),
|
|
5767
|
+
})), rn(oe, "field-options")) {
|
|
5768
5768
|
const N = Ne(oe, "data-type-role"), x = Ne(V, "data-max-selection");
|
|
5769
5769
|
if (Ee(oe, "role", N ?? "radiogroup"), ie && (Ee(oe, "aria-labelledby", `label-${ie}`), Ee(oe, "tabindex", "0")), K) {
|
|
5770
5770
|
const k = oe.children.filter(
|
|
@@ -5806,7 +5806,7 @@ function _g(e) {
|
|
|
5806
5806
|
}
|
|
5807
5807
|
ie === K[Oe]?.fieldId && oo(oe);
|
|
5808
5808
|
}
|
|
5809
|
-
|
|
5809
|
+
rn(oe, "rating-options") && (Ee(oe, "role", "radiogroup"), ie && (Ee(oe, "aria-labelledby", `label-${ie}`), Ee(oe, "tabindex", "0")), oe.children.forEach((N) => {
|
|
5810
5810
|
Ee(N, "tabindex", "0"), Ee(N, "role", "radio"), Et(N, "keydown", (x) => {
|
|
5811
5811
|
if ((x.key === " " || x.key === "Enter") && (x.stopPropagation(), N.children.forEach((k) => {
|
|
5812
5812
|
Kp(k) && k && k.elm && k.elm.click();
|
|
@@ -5835,7 +5835,7 @@ function _g(e) {
|
|
|
5835
5835
|
)
|
|
5836
5836
|
]), q = !0;
|
|
5837
5837
|
}
|
|
5838
|
-
}, Le =
|
|
5838
|
+
}, Le = Ft(t.html, {
|
|
5839
5839
|
hooks: {
|
|
5840
5840
|
create: Ye
|
|
5841
5841
|
}
|
|
@@ -5984,7 +5984,7 @@ function ys(e, t, n, r) {
|
|
|
5984
5984
|
Eh(e.defaultView, i), window.setTimeout(i, 200);
|
|
5985
5985
|
}
|
|
5986
5986
|
}
|
|
5987
|
-
const wg = "/generic/main/7.
|
|
5987
|
+
const wg = "/generic/main/7.11.1/modal.a78f4df397e3b099a535f68c857dd828db518b74.css", Ng = "/generic/main/7.11.1/modal-step-legacy-render.a78f4df397e3b099a535f68c857dd828db518b74.css", kg = "sha256-okdqswRblKDaDEFqsUPI8NvRV08m8bhE8q1HKQr5Brw=", Og = "sha256-Ea5gC5g6QacVSWApI6ApmuZheqr4EDl50hD7GyRsaz0=", Rg = $t(Ng), zr = $t(wg), Gc = /* @__PURE__ */ new Set(["shorty", "slideout"]);
|
|
5988
5988
|
function jc(e) {
|
|
5989
5989
|
if (!e) return;
|
|
5990
5990
|
const { style: t } = e, n = t.transform;
|
|
@@ -5999,7 +5999,7 @@ const so = (e) => {
|
|
|
5999
5999
|
if (e.key === "Tab") {
|
|
6000
6000
|
const t = document.documentElement.querySelector(
|
|
6001
6001
|
"appcues-container iframe"
|
|
6002
|
-
).contentWindow.document, { activeElement: n } = t, r =
|
|
6002
|
+
).contentWindow.document, { activeElement: n } = t, r = Ri(
|
|
6003
6003
|
t.documentElement
|
|
6004
6004
|
), i = r.length, o = r.indexOf(n);
|
|
6005
6005
|
if (n === t.body) {
|
|
@@ -6010,7 +6010,7 @@ const so = (e) => {
|
|
|
6010
6010
|
}
|
|
6011
6011
|
};
|
|
6012
6012
|
function Lg(e) {
|
|
6013
|
-
const t = ye(e), n =
|
|
6013
|
+
const t = ye(e), n = Lr(e), r = Ve(e), i = tt(e), o = st(e), s = Kt(e, o), c = i[s], l = t.attributes.pattern_type, u = t.attributes.is_progress_bar_hidden, { position: d } = t.attributes, { backdrop: f } = t.attributes, { skippable: p } = t.attributes, y = e.views.callbacks[z.MODAL], h = n.cssLoaded, m = mf(e), T = Ea(e), _ = Aa(e), S = T || m, I = ["modal", "left", "fullscreen"].lastIndexOf(l) > -1, C = I || f, O = Li(e.settings), L = _ === 1, H = h && ne.inArray(
|
|
6014
6014
|
[
|
|
6015
6015
|
/* ContentStatus.WILL_SHOW, */
|
|
6016
6016
|
te.SHOWING,
|
|
@@ -6031,14 +6031,14 @@ function Lg(e) {
|
|
|
6031
6031
|
fe.target.tagName === "APPCUES" && p && l !== "fullscreen" && y.onSkip();
|
|
6032
6032
|
}, pe = (fe, N) => {
|
|
6033
6033
|
const x = fe.target.ownerDocument;
|
|
6034
|
-
N ?
|
|
6035
|
-
y.onCSSLoaded(t.id,
|
|
6034
|
+
N ? Oi(x, zr, () => {
|
|
6035
|
+
y.onCSSLoaded(t.id, zr, !0), I || ys(
|
|
6036
6036
|
x,
|
|
6037
6037
|
t.id,
|
|
6038
6038
|
"modal-container",
|
|
6039
6039
|
y.onContentChange
|
|
6040
6040
|
);
|
|
6041
|
-
}) : y.onCSSLoaded(t.id,
|
|
6041
|
+
}) : y.onCSSLoaded(t.id, zr, !1);
|
|
6042
6042
|
}, Ce = (fe) => {
|
|
6043
6043
|
Object.keys(n.formErrors || {}).length > 0 && Gc.has(l) || !I && fe && // @todo remove this function by adding a check in callback to not trigger redraw if AREA same
|
|
6044
6044
|
Math.abs(
|
|
@@ -6129,7 +6129,7 @@ function Lg(e) {
|
|
|
6129
6129
|
/* @__PURE__ */ a.html(
|
|
6130
6130
|
"link",
|
|
6131
6131
|
{
|
|
6132
|
-
"attrs-href":
|
|
6132
|
+
"attrs-href": zr,
|
|
6133
6133
|
"attrs-type": "text/css",
|
|
6134
6134
|
"attrs-rel": "stylesheet",
|
|
6135
6135
|
"attrs-integrity": kg,
|
|
@@ -6256,7 +6256,7 @@ function Dg({ patternType: e, hidden: t }) {
|
|
|
6256
6256
|
}
|
|
6257
6257
|
);
|
|
6258
6258
|
}
|
|
6259
|
-
const Fg = "/generic/main/7.
|
|
6259
|
+
const Fg = "/generic/main/7.11.1/tooltip.a78f4df397e3b099a535f68c857dd828db518b74.css", Ug = "sha256-9y1o/fRpWDU82ZWAjihfIJSZnx+knnDTkr5DYPSqYhg=", Xr = $t(Fg), Kc = "//twemoji.maxcdn.com/2/svg/", Hg = "//cdn.jsdelivr.net/gh/twitter/twemoji@14.0.2/assets/svg/", Tr = "hs", Yc = "pattern-title", zc = "Hide these tips";
|
|
6260
6260
|
function Mg(e, t) {
|
|
6261
6261
|
return {
|
|
6262
6262
|
skippable: e.skippable,
|
|
@@ -6286,7 +6286,7 @@ function $g(e) {
|
|
|
6286
6286
|
function Jc(e, t) {
|
|
6287
6287
|
if (!t)
|
|
6288
6288
|
return { focusableElements: [], isBoundaryElement: () => !1 };
|
|
6289
|
-
const { activeElement: n, documentElement: r } = t, i =
|
|
6289
|
+
const { activeElement: n, documentElement: r } = t, i = Ri(r), o = i.indexOf(n);
|
|
6290
6290
|
return {
|
|
6291
6291
|
focusableElements: i,
|
|
6292
6292
|
isBoundaryElement: () => {
|
|
@@ -6314,17 +6314,17 @@ const su = (e) => {
|
|
|
6314
6314
|
c.onCompleteFlow(w, e.id);
|
|
6315
6315
|
}, h = (w, J) => {
|
|
6316
6316
|
const de = w.target.ownerDocument;
|
|
6317
|
-
J ?
|
|
6318
|
-
c.onCSSLoaded && c.onCSSLoaded(e.id,
|
|
6317
|
+
J ? Oi(de, Xr, () => {
|
|
6318
|
+
c.onCSSLoaded && c.onCSSLoaded(e.id, Xr, !0), ys(
|
|
6319
6319
|
de,
|
|
6320
6320
|
e.id,
|
|
6321
6321
|
".tooltip",
|
|
6322
6322
|
c.onContentChange
|
|
6323
6323
|
);
|
|
6324
|
-
}) : c.onCSSLoaded && c.onCSSLoaded(e.id,
|
|
6324
|
+
}) : c.onCSSLoaded && c.onCSSLoaded(e.id, Xr, !1);
|
|
6325
6325
|
}, m = (w) => {
|
|
6326
6326
|
if (t(w), ka(w)) {
|
|
6327
|
-
const J = Ne(w, "data-step"), de = Ne(w, "href"), pe =
|
|
6327
|
+
const J = Ne(w, "data-step"), de = Ne(w, "href"), pe = rn(w, "appcues-button"), Ce = Ne(w, "data-attrs-event"), Oe = Ne(w, "data-attrs-profile-update"), Ye = Ne(w, "data-next-content-id"), Le = [];
|
|
6328
6328
|
if (Ye && Le.push(
|
|
6329
6329
|
() => c.onSetNextContentIdCookie(Ye)
|
|
6330
6330
|
), de ? (eu(w), Le.push((K, ie) => {
|
|
@@ -6406,7 +6406,7 @@ const su = (e) => {
|
|
|
6406
6406
|
}
|
|
6407
6407
|
});
|
|
6408
6408
|
}
|
|
6409
|
-
}, T =
|
|
6409
|
+
}, T = Ft(e.html, {
|
|
6410
6410
|
hooks: {
|
|
6411
6411
|
create: m
|
|
6412
6412
|
}
|
|
@@ -6495,7 +6495,7 @@ const su = (e) => {
|
|
|
6495
6495
|
/* @__PURE__ */ a.html(
|
|
6496
6496
|
"link",
|
|
6497
6497
|
{
|
|
6498
|
-
"attrs-href":
|
|
6498
|
+
"attrs-href": Xr,
|
|
6499
6499
|
"attrs-type": "text/css",
|
|
6500
6500
|
"attrs-rel": "stylesheet",
|
|
6501
6501
|
"attrs-integrity": Ug,
|
|
@@ -6556,7 +6556,7 @@ function Bg({ skipOptions: e, buttonText: t, onButtonClick: n }) {
|
|
|
6556
6556
|
)) : /* @__PURE__ */ a.html(ae, null), /* @__PURE__ */ a.html("div", { classNames: "appcues-actions-right" }, t ? /* @__PURE__ */ a.html(
|
|
6557
6557
|
Po,
|
|
6558
6558
|
{
|
|
6559
|
-
text:
|
|
6559
|
+
text: Ft(t),
|
|
6560
6560
|
success: !0,
|
|
6561
6561
|
onClick: n,
|
|
6562
6562
|
attrs: {
|
|
@@ -6583,7 +6583,7 @@ function Vg({ skipText: e, onClick: t }) {
|
|
|
6583
6583
|
"attrs-aria-label": e || zc
|
|
6584
6584
|
},
|
|
6585
6585
|
/* @__PURE__ */ a.html("span", { "attrs-aria-hidden": "true" }, String.fromCodePoint(8856), " "),
|
|
6586
|
-
e ?
|
|
6586
|
+
e ? Ft(e) : zc
|
|
6587
6587
|
);
|
|
6588
6588
|
}
|
|
6589
6589
|
function Wg({ onClick: e }) {
|
|
@@ -6710,7 +6710,7 @@ function Kg(e) {
|
|
|
6710
6710
|
`#${Tr}-${e.id}`
|
|
6711
6711
|
).querySelector(
|
|
6712
6712
|
".appcues-tooltip-container"
|
|
6713
|
-
).contentDocument, { activeElement: S } = _, A =
|
|
6713
|
+
).contentDocument, { activeElement: S } = _, A = Ri(
|
|
6714
6714
|
_.documentElement
|
|
6715
6715
|
);
|
|
6716
6716
|
S === _.body && A.length === 0 && e.callbacks.onClickOut(e.isLast);
|
|
@@ -6971,7 +6971,7 @@ function Xg(e) {
|
|
|
6971
6971
|
...n,
|
|
6972
6972
|
...e.annotationsState[n.id],
|
|
6973
6973
|
html: n.html,
|
|
6974
|
-
showPoweredBy:
|
|
6974
|
+
showPoweredBy: Li(e.settings),
|
|
6975
6975
|
accountId: e.settings.accountId,
|
|
6976
6976
|
styling: n.style || e.settings.styling
|
|
6977
6977
|
}, e.activeAnnotations.includes(n.id) && !n.error)
|
|
@@ -7038,7 +7038,7 @@ function au(e, t) {
|
|
|
7038
7038
|
return n.length === 1 && n.indexOf(t) === 0;
|
|
7039
7039
|
}
|
|
7040
7040
|
function ty(e) {
|
|
7041
|
-
const t = Bn(e), n =
|
|
7041
|
+
const t = Bn(e), n = kt(e);
|
|
7042
7042
|
return t.filter(
|
|
7043
7043
|
(r) => n[r] && !n[r].activatedAt
|
|
7044
7044
|
);
|
|
@@ -7121,7 +7121,7 @@ function uu(e, t, n) {
|
|
|
7121
7121
|
annotations: l,
|
|
7122
7122
|
previousActiveElement: ha(e),
|
|
7123
7123
|
shouldForceFocus: hf(e),
|
|
7124
|
-
annotationsState:
|
|
7124
|
+
annotationsState: kt(e),
|
|
7125
7125
|
activeAnnotations: Bn(e),
|
|
7126
7126
|
callbacks: t,
|
|
7127
7127
|
settings: o,
|
|
@@ -7146,7 +7146,7 @@ function ny(e) {
|
|
|
7146
7146
|
);
|
|
7147
7147
|
}
|
|
7148
7148
|
function el(e, t) {
|
|
7149
|
-
return
|
|
7149
|
+
return Kt(e, t) === tt(e).length - 1;
|
|
7150
7150
|
}
|
|
7151
7151
|
function ry(e) {
|
|
7152
7152
|
return uu(
|
|
@@ -7158,7 +7158,7 @@ function ry(e) {
|
|
|
7158
7158
|
stepsInGroup: Nf(e),
|
|
7159
7159
|
buttonText: t.hide_next_button ? null : n,
|
|
7160
7160
|
isLast: el(e, t.id),
|
|
7161
|
-
isFirst:
|
|
7161
|
+
isFirst: Kt(e, t.id) === 0
|
|
7162
7162
|
};
|
|
7163
7163
|
}
|
|
7164
7164
|
);
|
|
@@ -7561,10 +7561,10 @@ function uy(e) {
|
|
|
7561
7561
|
)
|
|
7562
7562
|
)));
|
|
7563
7563
|
}
|
|
7564
|
-
const dy = "/generic/main/7.
|
|
7565
|
-
let nl,
|
|
7564
|
+
const dy = "/generic/main/7.11.1/satisfaction-survey.a78f4df397e3b099a535f68c857dd828db518b74.css", fy = "sha256-ObFZwdlUS2Dee7dJhXKcxchWnrIZg3U8mhp3l6KQo2M=", co = $t(dy);
|
|
7565
|
+
let nl, Jr;
|
|
7566
7566
|
function py(e) {
|
|
7567
|
-
const t = ye(e), n =
|
|
7567
|
+
const t = ye(e), n = Lr(e), r = Ve(e), i = tt(e), o = st(e), s = Kt(e, o), c = i[s], l = t.attributes.pattern_type, { position: u } = t.attributes, d = e.views.callbacks[z.SATISFACTION_SURVEY], f = n.cssLoaded, p = Li(e.settings), y = r !== te.SHOWING;
|
|
7568
7568
|
let h = {};
|
|
7569
7569
|
const m = f && ne.inArray(
|
|
7570
7570
|
[
|
|
@@ -7600,15 +7600,15 @@ function py(e) {
|
|
|
7600
7600
|
return;
|
|
7601
7601
|
const de = J.elm.scrollHeight, pe = window.innerHeight;
|
|
7602
7602
|
if (de) {
|
|
7603
|
-
|
|
7604
|
-
const Ce = de > pe ? pe :
|
|
7603
|
+
Jr = Jr || de + 15;
|
|
7604
|
+
const Ce = de > pe ? pe : Jr;
|
|
7605
7605
|
nl.style.height = `${Ce}px`, J.elm.children[0].style.height = `${Ce}px`;
|
|
7606
7606
|
}
|
|
7607
7607
|
}, G = (J, de) => {
|
|
7608
|
-
(J === "next" ? d.onNextStep : d.onPrevStep)(de),
|
|
7608
|
+
(J === "next" ? d.onNextStep : d.onPrevStep)(de), Jr = null;
|
|
7609
7609
|
}, ue = (J, de) => {
|
|
7610
7610
|
const pe = J.target.ownerDocument;
|
|
7611
|
-
|
|
7611
|
+
Oi(pe, co, () => {
|
|
7612
7612
|
d.onCSSLoaded(t.id, co, !0), ys(
|
|
7613
7613
|
pe,
|
|
7614
7614
|
t.id,
|
|
@@ -7721,7 +7721,7 @@ const hy = b(le.INVALIDATE_FORM), my = b(le.LOADED_CSS), Ey = b(
|
|
|
7721
7721
|
(e, t) => ({ stepChildId: e, timestamp: t })
|
|
7722
7722
|
), yy = b(
|
|
7723
7723
|
le.DEACTIVATED_STEP_CHILD
|
|
7724
|
-
),
|
|
7724
|
+
), dn = b(
|
|
7725
7725
|
le.SET_CURRENT_STEP_CHILD
|
|
7726
7726
|
), Sy = b(
|
|
7727
7727
|
le.CLEAR_CURRENT_STEP_CHILD
|
|
@@ -7734,7 +7734,7 @@ const hy = b(le.INVALIDATE_FORM), my = b(le.LOADED_CSS), Ey = b(
|
|
|
7734
7734
|
), _y = b(
|
|
7735
7735
|
le.CLOSE_STEP,
|
|
7736
7736
|
(e, t) => ({ flowId: e, stepId: t })
|
|
7737
|
-
),
|
|
7737
|
+
), zt = b(
|
|
7738
7738
|
le.CLOSE_FLOW,
|
|
7739
7739
|
(e, t) => ({ flowId: e, type: t })
|
|
7740
7740
|
), Iy = b(
|
|
@@ -7751,8 +7751,8 @@ const hy = b(le.INVALIDATE_FORM), my = b(le.LOADED_CSS), Ey = b(
|
|
|
7751
7751
|
(e) => ({ nextContentId: e })
|
|
7752
7752
|
), Fo = b(
|
|
7753
7753
|
le.CLEAR_CONTENT_STATE_CHILD
|
|
7754
|
-
), vy = b(
|
|
7755
|
-
|
|
7754
|
+
), vy = b(di.PREPARE_MODAL), by = b(
|
|
7755
|
+
di.RESIZE_MODAL_CONTENT,
|
|
7756
7756
|
(e, t) => ({ id: e, height: t.height, width: t.width })
|
|
7757
7757
|
);
|
|
7758
7758
|
function Se(e, t, n) {
|
|
@@ -7761,7 +7761,7 @@ function Se(e, t, n) {
|
|
|
7761
7761
|
function ft(e, t, n, r) {
|
|
7762
7762
|
return Se(e, t, { stepChildId: n, ...r });
|
|
7763
7763
|
}
|
|
7764
|
-
function
|
|
7764
|
+
function Wt(e, t, n, r, i = {}) {
|
|
7765
7765
|
return ft(
|
|
7766
7766
|
Y.STEP_INTERACTED,
|
|
7767
7767
|
e,
|
|
@@ -7787,7 +7787,7 @@ const wy = (e, t) => (n) => {
|
|
|
7787
7787
|
);
|
|
7788
7788
|
};
|
|
7789
7789
|
function rl(e, t, n, r = {}) {
|
|
7790
|
-
return
|
|
7790
|
+
return Wt(
|
|
7791
7791
|
ce(e),
|
|
7792
7792
|
t,
|
|
7793
7793
|
"internal",
|
|
@@ -7931,7 +7931,7 @@ function Di(e, t) {
|
|
|
7931
7931
|
onLinkClick(r, i, o) {
|
|
7932
7932
|
e(
|
|
7933
7933
|
se(
|
|
7934
|
-
|
|
7934
|
+
Wt(
|
|
7935
7935
|
ce(t()),
|
|
7936
7936
|
r,
|
|
7937
7937
|
"link",
|
|
@@ -7948,7 +7948,7 @@ function Di(e, t) {
|
|
|
7948
7948
|
* @param {object} properties An object describing properties associated with the event.
|
|
7949
7949
|
*/
|
|
7950
7950
|
onHandleUserEvent(r, i = {}) {
|
|
7951
|
-
e(we({}, [
|
|
7951
|
+
e(we({}, [Jt(r, i)], !0));
|
|
7952
7952
|
},
|
|
7953
7953
|
/**
|
|
7954
7954
|
* Callback for when the user clicks a button with a set of user profile
|
|
@@ -8012,7 +8012,7 @@ function hu(e) {
|
|
|
8012
8012
|
}), t.length > 0 ? { result: !1, errors: t } : { result: !0 };
|
|
8013
8013
|
}
|
|
8014
8014
|
function lo(e, t, n, r = {}) {
|
|
8015
|
-
return
|
|
8015
|
+
return Wt(
|
|
8016
8016
|
ce(e),
|
|
8017
8017
|
t,
|
|
8018
8018
|
"internal",
|
|
@@ -8041,7 +8041,7 @@ function Ly(e, t) {
|
|
|
8041
8041
|
s,
|
|
8042
8042
|
o
|
|
8043
8043
|
);
|
|
8044
|
-
l && (e(
|
|
8044
|
+
l && (e(dn(l)), n.onStepChildActivated(l));
|
|
8045
8045
|
}
|
|
8046
8046
|
return {
|
|
8047
8047
|
onSkip: n.onSkip,
|
|
@@ -8135,7 +8135,7 @@ function Ly(e, t) {
|
|
|
8135
8135
|
s,
|
|
8136
8136
|
o
|
|
8137
8137
|
);
|
|
8138
|
-
l && (e(
|
|
8138
|
+
l && (e(dn(l)), n.onStepChildActivated(l));
|
|
8139
8139
|
},
|
|
8140
8140
|
/**
|
|
8141
8141
|
* Callback for the user click a button to go to some step in the modal.
|
|
@@ -8156,8 +8156,8 @@ function Ly(e, t) {
|
|
|
8156
8156
|
)
|
|
8157
8157
|
)
|
|
8158
8158
|
), n.onStepChildDeactivated(o);
|
|
8159
|
-
const u =
|
|
8160
|
-
u && (e(
|
|
8159
|
+
const u = Ii(c, s);
|
|
8160
|
+
u && (e(dn(u)), n.onStepChildActivated(u));
|
|
8161
8161
|
},
|
|
8162
8162
|
/**
|
|
8163
8163
|
* Callback for the user click a button to go to a URL.
|
|
@@ -8181,11 +8181,11 @@ function Ly(e, t) {
|
|
|
8181
8181
|
}
|
|
8182
8182
|
};
|
|
8183
8183
|
}
|
|
8184
|
-
const xy = b(
|
|
8185
|
-
|
|
8184
|
+
const xy = b(qt.EXPAND_HOTSPOT), Py = b(qt.PREPARE_HOTSPOTS), Dy = b(
|
|
8185
|
+
qt.SET_BEACON_SETTLED,
|
|
8186
8186
|
(e, t) => ({ id: e, isBeaconSettled: t })
|
|
8187
|
-
),
|
|
8188
|
-
|
|
8187
|
+
), si = b(
|
|
8188
|
+
qt.CLOSE_LAST_HOTSPOT,
|
|
8189
8189
|
(e, t, n = {}) => ({ stepId: e, childId: t, params: n })
|
|
8190
8190
|
), Fy = b(
|
|
8191
8191
|
he.ADD_ACTIVE_ANNOTATIONS
|
|
@@ -8236,7 +8236,7 @@ function Eu(e, t) {
|
|
|
8236
8236
|
se(
|
|
8237
8237
|
Se(Y.STEP_COMPLETED, l, s)
|
|
8238
8238
|
)
|
|
8239
|
-
), i(c), ne.defined(c) && e(
|
|
8239
|
+
), i(c), ne.defined(c) && e(si(l, c, s));
|
|
8240
8240
|
};
|
|
8241
8241
|
return {
|
|
8242
8242
|
/**
|
|
@@ -8272,14 +8272,14 @@ function Eu(e, t) {
|
|
|
8272
8272
|
const d = r(), f = d !== s, p = ce(t());
|
|
8273
8273
|
f && e(
|
|
8274
8274
|
se(
|
|
8275
|
-
|
|
8275
|
+
Wt(
|
|
8276
8276
|
p,
|
|
8277
8277
|
s,
|
|
8278
8278
|
"beacon",
|
|
8279
8279
|
s
|
|
8280
8280
|
)
|
|
8281
8281
|
)
|
|
8282
|
-
), i(d), f ? (e(
|
|
8282
|
+
), i(d), f ? (e(dn(s)), this.onActivate(s), setTimeout(() => {
|
|
8283
8283
|
n.onContentChange(s, c);
|
|
8284
8284
|
}, 50), u && e(
|
|
8285
8285
|
se(
|
|
@@ -8288,7 +8288,7 @@ function Eu(e, t) {
|
|
|
8288
8288
|
ce(t())
|
|
8289
8289
|
)
|
|
8290
8290
|
)
|
|
8291
|
-
)) : l && e(
|
|
8291
|
+
)) : l && e(si(p, d));
|
|
8292
8292
|
},
|
|
8293
8293
|
/**
|
|
8294
8294
|
* Callback for when the user clicks outside of a hotspot.
|
|
@@ -8297,7 +8297,7 @@ function Eu(e, t) {
|
|
|
8297
8297
|
*/
|
|
8298
8298
|
onClickOut(s) {
|
|
8299
8299
|
const c = r();
|
|
8300
|
-
i(c), s && ne.defined(c) && e(
|
|
8300
|
+
i(c), s && ne.defined(c) && e(si(ce(t()), c));
|
|
8301
8301
|
},
|
|
8302
8302
|
onComplete: o({ shouldEndFlow: !1 }),
|
|
8303
8303
|
onCompleteFlow: o({ shouldEndFlow: !0 })
|
|
@@ -8308,7 +8308,7 @@ function Yy(e, t) {
|
|
|
8308
8308
|
const u = t(), d = ce(u), f = nt(u), p = d ? ct(f, d) : null, y = { text: At(c) };
|
|
8309
8309
|
e(
|
|
8310
8310
|
se(
|
|
8311
|
-
|
|
8311
|
+
Wt(
|
|
8312
8312
|
d,
|
|
8313
8313
|
l,
|
|
8314
8314
|
"internal",
|
|
@@ -8345,7 +8345,7 @@ function Yy(e, t) {
|
|
|
8345
8345
|
const l = t(), u = ce(l), d = { text: At(o) };
|
|
8346
8346
|
e(
|
|
8347
8347
|
se(
|
|
8348
|
-
|
|
8348
|
+
Wt(
|
|
8349
8349
|
u,
|
|
8350
8350
|
s,
|
|
8351
8351
|
"internal",
|
|
@@ -8391,7 +8391,7 @@ function Yy(e, t) {
|
|
|
8391
8391
|
const c = t(), l = ce(c), u = { text: At(o) };
|
|
8392
8392
|
e(
|
|
8393
8393
|
se(
|
|
8394
|
-
|
|
8394
|
+
Wt(
|
|
8395
8395
|
l,
|
|
8396
8396
|
s,
|
|
8397
8397
|
"internal",
|
|
@@ -8405,7 +8405,7 @@ function Yy(e, t) {
|
|
|
8405
8405
|
const l = t(), u = ce(l), d = { text: At(o) };
|
|
8406
8406
|
e(
|
|
8407
8407
|
se(
|
|
8408
|
-
|
|
8408
|
+
Wt(
|
|
8409
8409
|
u,
|
|
8410
8410
|
s,
|
|
8411
8411
|
"internal",
|
|
@@ -8421,30 +8421,30 @@ function Yy(e, t) {
|
|
|
8421
8421
|
};
|
|
8422
8422
|
}
|
|
8423
8423
|
const zy = b(
|
|
8424
|
-
|
|
8424
|
+
Ae.PREPARE_SATISFACTION_SURVEY
|
|
8425
8425
|
), Xy = b(
|
|
8426
|
-
|
|
8426
|
+
Ae.START_COLLAPSING_SATISFACTION_SURVEY
|
|
8427
8427
|
), gu = b(
|
|
8428
|
-
|
|
8428
|
+
Ae.COLLAPSE_SATISFACTION_SURVEY
|
|
8429
8429
|
), Jy = b(
|
|
8430
|
-
|
|
8430
|
+
Ae.EXPAND_SATISFACTION_SURVEY
|
|
8431
8431
|
), yu = b(
|
|
8432
|
-
|
|
8432
|
+
Ae.SHOW_SATISFACTION_SURVEY_TOAST
|
|
8433
8433
|
), Su = b(
|
|
8434
|
-
|
|
8434
|
+
Ae.HIDE_SATISFACTION_SURVEY_TOAST
|
|
8435
8435
|
), Qy = b(
|
|
8436
|
-
|
|
8436
|
+
Ae.QUANTITATIVE_QUESTION_SUBMITTED,
|
|
8437
8437
|
(e) => ({ score: e })
|
|
8438
8438
|
), Zy = b(
|
|
8439
|
-
|
|
8439
|
+
Ae.CLICKED_UPDATE_NPS_SCORE
|
|
8440
8440
|
), eS = b(
|
|
8441
|
-
|
|
8441
|
+
Ae.QUALITATIVE_QUESTION_SUBMITTED,
|
|
8442
8442
|
(e) => ({ feedback: e })
|
|
8443
8443
|
), tS = b(
|
|
8444
|
-
|
|
8444
|
+
Ae.FEEDBACK_TEXT_CHANGED,
|
|
8445
8445
|
(e) => ({ feedback: e })
|
|
8446
8446
|
), nS = b(
|
|
8447
|
-
|
|
8447
|
+
Ae.ASK_ME_LATER_SELECTED
|
|
8448
8448
|
);
|
|
8449
8449
|
function rS(e, t) {
|
|
8450
8450
|
const n = Di(e, t);
|
|
@@ -8453,7 +8453,7 @@ function rS(e, t) {
|
|
|
8453
8453
|
T,
|
|
8454
8454
|
m
|
|
8455
8455
|
);
|
|
8456
|
-
_ && e(
|
|
8456
|
+
_ && e(dn(_));
|
|
8457
8457
|
}
|
|
8458
8458
|
function i(m) {
|
|
8459
8459
|
e(Qy(m));
|
|
@@ -8490,7 +8490,7 @@ function rS(e, t) {
|
|
|
8490
8490
|
_ && (da(
|
|
8491
8491
|
ye(T),
|
|
8492
8492
|
_
|
|
8493
|
-
).step_type === "quantitative-question" && e(Zy()), e(
|
|
8493
|
+
).step_type === "quantitative-question" && e(Zy()), e(dn(_)));
|
|
8494
8494
|
}
|
|
8495
8495
|
function h() {
|
|
8496
8496
|
n.onShow(), n.onStepChildActivated(
|
|
@@ -8524,14 +8524,14 @@ const ol = b(re.START_CHECKLIST), Sn = b(
|
|
|
8524
8524
|
re.UPDATE_CHECKLISTS
|
|
8525
8525
|
), Fi = b(
|
|
8526
8526
|
re.HIDE_CHECKLISTS
|
|
8527
|
-
),
|
|
8527
|
+
), br = b(
|
|
8528
8528
|
re.UNHIDE_CHECKLISTS
|
|
8529
8529
|
), cl = b(
|
|
8530
8530
|
re.ANIMATE_IN_CHECKLIST
|
|
8531
|
-
),
|
|
8531
|
+
), Ur = b(
|
|
8532
8532
|
re.EXPAND_CHECKLIST,
|
|
8533
8533
|
(e) => ({ checklistId: e })
|
|
8534
|
-
),
|
|
8534
|
+
), fn = b(
|
|
8535
8535
|
re.COLLAPSE_CHECKLIST,
|
|
8536
8536
|
(e) => ({ checklistId: e })
|
|
8537
8537
|
), Tu = b(
|
|
@@ -8576,12 +8576,12 @@ function fS(e, t) {
|
|
|
8576
8576
|
let n = !1;
|
|
8577
8577
|
return {
|
|
8578
8578
|
onBeaconClicked(r) {
|
|
8579
|
-
const i = t(), o =
|
|
8580
|
-
o.viewState ===
|
|
8579
|
+
const i = t(), o = yn(i, r);
|
|
8580
|
+
o.viewState === Gt.EXPANDED ? e(fn(r)) : (e(Ur(r)), o.attributes.open_behavior === "closed" && !n && (n = !0, e(Iu(o))));
|
|
8581
8581
|
},
|
|
8582
8582
|
onOutsideClicked(r) {
|
|
8583
8583
|
const i = t();
|
|
8584
|
-
|
|
8584
|
+
yn(i, r).viewState === Gt.EXPANDED && e(fn(r));
|
|
8585
8585
|
},
|
|
8586
8586
|
onItemClicked(r, i) {
|
|
8587
8587
|
e(_u(r, i));
|
|
@@ -8602,7 +8602,7 @@ function fS(e, t) {
|
|
|
8602
8602
|
);
|
|
8603
8603
|
},
|
|
8604
8604
|
onMinimizedClicked(r) {
|
|
8605
|
-
e(
|
|
8605
|
+
e(fn(r));
|
|
8606
8606
|
},
|
|
8607
8607
|
onCSSLoaded(r, i, o = !0) {
|
|
8608
8608
|
if (o)
|
|
@@ -8693,7 +8693,7 @@ function gS(e, t) {
|
|
|
8693
8693
|
};
|
|
8694
8694
|
e(Ue("widget_item_clicked", c)), e(we({}, [Be(c)], !1));
|
|
8695
8695
|
} catch (c) {
|
|
8696
|
-
|
|
8696
|
+
Mt(t())(c, { extra: c.extra });
|
|
8697
8697
|
}
|
|
8698
8698
|
}
|
|
8699
8699
|
};
|
|
@@ -8776,13 +8776,13 @@ function yS({ settings: e, sagas: t, onStateChange: n }) {
|
|
|
8776
8776
|
}
|
|
8777
8777
|
var Cr = (e) => typeof e == "function" ? e : function() {
|
|
8778
8778
|
return e;
|
|
8779
|
-
}, SS = typeof self < "u" ? self : null, Er = typeof window < "u" ? window : null,
|
|
8779
|
+
}, SS = typeof self < "u" ? self : null, Er = typeof window < "u" ? window : null, pn = SS || Er || pn, TS = "2.0.0", It = { connecting: 0, open: 1, closing: 2, closed: 3 }, CS = 1e4, _S = 1e3, rt = {
|
|
8780
8780
|
closed: "closed",
|
|
8781
8781
|
errored: "errored",
|
|
8782
8782
|
joined: "joined",
|
|
8783
8783
|
joining: "joining",
|
|
8784
8784
|
leaving: "leaving"
|
|
8785
|
-
},
|
|
8785
|
+
}, Lt = {
|
|
8786
8786
|
close: "phx_close",
|
|
8787
8787
|
error: "phx_error",
|
|
8788
8788
|
join: "phx_join",
|
|
@@ -8793,7 +8793,7 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
8793
8793
|
websocket: "websocket"
|
|
8794
8794
|
}, IS = {
|
|
8795
8795
|
complete: 4
|
|
8796
|
-
},
|
|
8796
|
+
}, Qr = class {
|
|
8797
8797
|
constructor(e, t, n, r) {
|
|
8798
8798
|
this.channel = e, this.event = t, this.payload = n || function() {
|
|
8799
8799
|
return {};
|
|
@@ -8889,7 +8889,7 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
8889
8889
|
}
|
|
8890
8890
|
}, AS = class {
|
|
8891
8891
|
constructor(e, t, n) {
|
|
8892
|
-
this.state = rt.closed, this.topic = e, this.params = Cr(t || {}), this.socket = n, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new
|
|
8892
|
+
this.state = rt.closed, this.topic = e, this.params = Cr(t || {}), this.socket = n, this.bindings = [], this.bindingRef = 0, this.timeout = this.socket.timeout, this.joinedOnce = !1, this.joinPush = new Qr(this, Lt.join, this.params, this.timeout), this.pushBuffer = [], this.stateChangeRefs = [], this.rejoinTimer = new Au(() => {
|
|
8893
8893
|
this.socket.isConnected() && this.rejoin();
|
|
8894
8894
|
}, this.socket.rejoinAfterMs), this.stateChangeRefs.push(this.socket.onError(() => this.rejoinTimer.reset())), this.stateChangeRefs.push(
|
|
8895
8895
|
this.socket.onOpen(() => {
|
|
@@ -8904,8 +8904,8 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
8904
8904
|
}), this.onError((r) => {
|
|
8905
8905
|
this.socket.hasLogger() && this.socket.log("channel", `error ${this.topic}`, r), this.isJoining() && this.joinPush.reset(), this.state = rt.errored, this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
|
|
8906
8906
|
}), this.joinPush.receive("timeout", () => {
|
|
8907
|
-
this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new
|
|
8908
|
-
}), this.on(
|
|
8907
|
+
this.socket.hasLogger() && this.socket.log("channel", `timeout ${this.topic} (${this.joinRef()})`, this.joinPush.timeout), new Qr(this, Lt.leave, Cr({}), this.timeout).send(), this.state = rt.errored, this.joinPush.reset(), this.socket.isConnected() && this.rejoinTimer.scheduleTimeout();
|
|
8908
|
+
}), this.on(Lt.reply, (r, i) => {
|
|
8909
8909
|
this.trigger(this.replyEventName(i), r);
|
|
8910
8910
|
});
|
|
8911
8911
|
}
|
|
@@ -8924,14 +8924,14 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
8924
8924
|
* @param {Function} callback
|
|
8925
8925
|
*/
|
|
8926
8926
|
onClose(e) {
|
|
8927
|
-
this.on(
|
|
8927
|
+
this.on(Lt.close, e);
|
|
8928
8928
|
}
|
|
8929
8929
|
/**
|
|
8930
8930
|
* Hook into channel errors
|
|
8931
8931
|
* @param {Function} callback
|
|
8932
8932
|
*/
|
|
8933
8933
|
onError(e) {
|
|
8934
|
-
return this.on(
|
|
8934
|
+
return this.on(Lt.error, (t) => e(t));
|
|
8935
8935
|
}
|
|
8936
8936
|
/**
|
|
8937
8937
|
* Subscribes on channel events
|
|
@@ -9000,7 +9000,7 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
9000
9000
|
push(e, t, n = this.timeout) {
|
|
9001
9001
|
if (t = t || {}, !this.joinedOnce)
|
|
9002
9002
|
throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);
|
|
9003
|
-
let r = new
|
|
9003
|
+
let r = new Qr(this, e, function() {
|
|
9004
9004
|
return t;
|
|
9005
9005
|
}, n);
|
|
9006
9006
|
return this.canPush() ? r.send() : (r.startTimeout(), this.pushBuffer.push(r)), r;
|
|
@@ -9024,8 +9024,8 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
9024
9024
|
leave(e = this.timeout) {
|
|
9025
9025
|
this.rejoinTimer.reset(), this.joinPush.cancelTimeout(), this.state = rt.leaving;
|
|
9026
9026
|
let t = () => {
|
|
9027
|
-
this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(
|
|
9028
|
-
}, n = new
|
|
9027
|
+
this.socket.hasLogger() && this.socket.log("channel", `leave ${this.topic}`), this.trigger(Lt.close, "leave");
|
|
9028
|
+
}, n = new Qr(this, Lt.leave, Cr({}), e);
|
|
9029
9029
|
return n.receive("ok", () => t()).receive("timeout", () => t()), n.send(), this.canPush() || n.trigger("ok", {}), n;
|
|
9030
9030
|
}
|
|
9031
9031
|
/**
|
|
@@ -9108,13 +9108,13 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
9108
9108
|
isLeaving() {
|
|
9109
9109
|
return this.state === rt.leaving;
|
|
9110
9110
|
}
|
|
9111
|
-
},
|
|
9111
|
+
}, pi = class {
|
|
9112
9112
|
static request(e, t, n, r, i, o, s) {
|
|
9113
|
-
if (
|
|
9114
|
-
let c = new
|
|
9113
|
+
if (pn.XDomainRequest) {
|
|
9114
|
+
let c = new pn.XDomainRequest();
|
|
9115
9115
|
return this.xdomainRequest(c, e, t, r, i, o, s);
|
|
9116
9116
|
} else {
|
|
9117
|
-
let c = new
|
|
9117
|
+
let c = new pn.XMLHttpRequest();
|
|
9118
9118
|
return this.xhrRequest(c, e, t, n, r, i, o, s);
|
|
9119
9119
|
}
|
|
9120
9120
|
}
|
|
@@ -9175,7 +9175,7 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
9175
9175
|
return e.replace("ws://", "http://").replace("wss://", "https://").replace(new RegExp("(.*)/" + Uo.websocket), "$1/" + Uo.longpoll);
|
|
9176
9176
|
}
|
|
9177
9177
|
endpointURL() {
|
|
9178
|
-
return
|
|
9178
|
+
return pi.appendParams(this.pollEndpoint, { token: this.token });
|
|
9179
9179
|
}
|
|
9180
9180
|
closeAndRetry(e, t, n) {
|
|
9181
9181
|
this.close(e, t, n), this.readyState = It.connecting;
|
|
@@ -9242,11 +9242,11 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
9242
9242
|
let o, s = () => {
|
|
9243
9243
|
this.reqs.delete(o), r();
|
|
9244
9244
|
};
|
|
9245
|
-
o =
|
|
9245
|
+
o = pi.request(e, this.endpointURL(), t, n, this.timeout, s, (c) => {
|
|
9246
9246
|
this.reqs.delete(o), this.isActive() && i(c);
|
|
9247
9247
|
}), this.reqs.add(o);
|
|
9248
9248
|
}
|
|
9249
|
-
},
|
|
9249
|
+
}, Zr = {
|
|
9250
9250
|
HEADER_LENGTH: 1,
|
|
9251
9251
|
META_LENGTH: 4,
|
|
9252
9252
|
KINDS: { push: 0, reply: 1, broadcast: 2 },
|
|
@@ -9304,7 +9304,7 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
9304
9304
|
let f = n.decode(e.slice(c, c + s));
|
|
9305
9305
|
c = c + s;
|
|
9306
9306
|
let p = e.slice(c, e.byteLength), y = { status: f, response: p };
|
|
9307
|
-
return { join_ref: l, ref: u, topic: d, event:
|
|
9307
|
+
return { join_ref: l, ref: u, topic: d, event: Lt.reply, payload: y };
|
|
9308
9308
|
},
|
|
9309
9309
|
decodeBroadcast(e, t, n) {
|
|
9310
9310
|
let r = t.getUint8(1), i = t.getUint8(2), o = this.HEADER_LENGTH + 2, s = n.decode(e.slice(o, o + r));
|
|
@@ -9316,7 +9316,7 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
9316
9316
|
}
|
|
9317
9317
|
}, bS = class {
|
|
9318
9318
|
constructor(e, t = {}) {
|
|
9319
|
-
this.stateChangeCallbacks = { open: [], close: [], error: [], message: [] }, this.channels = [], this.sendBuffer = [], this.ref = 0, this.timeout = t.timeout || CS, this.transport = t.transport ||
|
|
9319
|
+
this.stateChangeCallbacks = { open: [], close: [], error: [], message: [] }, this.channels = [], this.sendBuffer = [], this.ref = 0, this.timeout = t.timeout || CS, this.transport = t.transport || pn.WebSocket || hr, this.primaryPassedHealthCheck = !1, this.longPollFallbackMs = t.longPollFallbackMs, this.fallbackTimer = null, this.sessionStore = t.sessionStorage || pn && pn.sessionStorage, this.establishedConnections = 0, this.defaultEncoder = Zr.encode.bind(Zr), this.defaultDecoder = Zr.decode.bind(Zr), this.closeWasClean = !1, this.disconnecting = !1, this.binaryType = t.binaryType || "arraybuffer", this.connectClock = 1, this.transport !== hr ? (this.encode = t.encode || this.defaultEncoder, this.decode = t.decode || this.defaultDecoder) : (this.encode = this.defaultEncoder, this.decode = this.defaultDecoder);
|
|
9320
9320
|
let n = null;
|
|
9321
9321
|
Er && Er.addEventListener && (Er.addEventListener("pagehide", (r) => {
|
|
9322
9322
|
this.conn && (this.disconnect(), n = this.connectClock);
|
|
@@ -9356,8 +9356,8 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
9356
9356
|
* @returns {string}
|
|
9357
9357
|
*/
|
|
9358
9358
|
endPointURL() {
|
|
9359
|
-
let e =
|
|
9360
|
-
|
|
9359
|
+
let e = pi.appendParams(
|
|
9360
|
+
pi.appendParams(this.endPoint, this.params()),
|
|
9361
9361
|
{ vsn: this.vsn }
|
|
9362
9362
|
);
|
|
9363
9363
|
return e.charAt(0) !== "/" ? e : e.charAt(1) === "/" ? `${this.protocol()}:${e}` : `${this.protocol()}://${location.host}${e}`;
|
|
@@ -9550,7 +9550,7 @@ var Cr = (e) => typeof e == "function" ? e : function() {
|
|
|
9550
9550
|
*/
|
|
9551
9551
|
triggerChanError() {
|
|
9552
9552
|
this.channels.forEach((e) => {
|
|
9553
|
-
e.isErrored() || e.isLeaving() || e.isClosed() || e.trigger(
|
|
9553
|
+
e.isErrored() || e.isLeaving() || e.isClosed() || e.trigger(Lt.error);
|
|
9554
9554
|
});
|
|
9555
9555
|
}
|
|
9556
9556
|
/**
|
|
@@ -9706,17 +9706,17 @@ const _s = (e) => (t) => {
|
|
|
9706
9706
|
_currentPageUrl: xn
|
|
9707
9707
|
},
|
|
9708
9708
|
events: NS(OS)
|
|
9709
|
-
}), LS = (e, t) => kS(!1, ["account", "stripQueryParams"], e) ? RS(t) : t,
|
|
9709
|
+
}), LS = (e, t) => kS(!1, ["account", "stripQueryParams"], e) ? RS(t) : t, Hr = P(
|
|
9710
9710
|
() => window.AppcuesBundleSettings.API_HOSTNAME && `https://${window.AppcuesBundleSettings.API_HOSTNAME}/v1`,
|
|
9711
9711
|
"https://api.appcues.net/v1"
|
|
9712
9712
|
), xS = P(
|
|
9713
9713
|
() => window.AppcuesBundleSettings.GENERIC_BUNDLE_DOMAIN && `${window.AppcuesBundleSettings.GENERIC_BUNDLE_DOMAIN}/v1`,
|
|
9714
9714
|
"https://fast.appcues.com/v1"
|
|
9715
|
-
),
|
|
9715
|
+
), Mr = () => {
|
|
9716
9716
|
const e = window[Wo] || {};
|
|
9717
9717
|
let t = {};
|
|
9718
9718
|
return e.userIdSignature && (t = { Authorization: `Bearer ${e.userIdSignature}` }), t;
|
|
9719
|
-
},
|
|
9719
|
+
}, $r = {
|
|
9720
9720
|
UserActivity: "USER_ACTIVITY"
|
|
9721
9721
|
};
|
|
9722
9722
|
function PS(e, t, n, r) {
|
|
@@ -9757,12 +9757,12 @@ function bu(e, t, n, r = "event") {
|
|
|
9757
9757
|
}
|
|
9758
9758
|
});
|
|
9759
9759
|
}
|
|
9760
|
-
const FS = (e, t, n) => bu(e,
|
|
9760
|
+
const FS = (e, t, n) => bu(e, $r.UserActivity, n, t);
|
|
9761
9761
|
function US(e, t, n, r, i = null, o = null, s = null, c = {}) {
|
|
9762
9762
|
const l = r ? Ui() : null;
|
|
9763
9763
|
return bu(
|
|
9764
9764
|
e,
|
|
9765
|
-
|
|
9765
|
+
$r.UserActivity,
|
|
9766
9766
|
LS(window.AppcuesBundleSettings, {
|
|
9767
9767
|
source: "web",
|
|
9768
9768
|
request_id: l,
|
|
@@ -9780,7 +9780,7 @@ function US(e, t, n, r, i = null, o = null, s = null, c = {}) {
|
|
|
9780
9780
|
function wu(e, t) {
|
|
9781
9781
|
return e.transport.module.sendMetrics(
|
|
9782
9782
|
e,
|
|
9783
|
-
|
|
9783
|
+
$r.UserActivity,
|
|
9784
9784
|
t
|
|
9785
9785
|
);
|
|
9786
9786
|
}
|
|
@@ -9790,12 +9790,12 @@ function Nu(e, t) {
|
|
|
9790
9790
|
user: { userId: r, _localId: i }
|
|
9791
9791
|
} = e;
|
|
9792
9792
|
return or(
|
|
9793
|
-
`${
|
|
9793
|
+
`${Hr()}/accounts/${encodeURIComponent(
|
|
9794
9794
|
n
|
|
9795
9795
|
)}/users/${encodeURIComponent(
|
|
9796
9796
|
r || i
|
|
9797
9797
|
)}/content/${encodeURIComponent(t)}`,
|
|
9798
|
-
{ headers:
|
|
9798
|
+
{ headers: Mr() }
|
|
9799
9799
|
);
|
|
9800
9800
|
}
|
|
9801
9801
|
function HS(e, t) {
|
|
@@ -9804,12 +9804,12 @@ function HS(e, t) {
|
|
|
9804
9804
|
user: { userId: r, _localId: i }
|
|
9805
9805
|
} = e;
|
|
9806
9806
|
return or(
|
|
9807
|
-
`${
|
|
9807
|
+
`${Hr()}/accounts/${encodeURIComponent(
|
|
9808
9808
|
n
|
|
9809
9809
|
)}/users/${encodeURIComponent(
|
|
9810
9810
|
r || i
|
|
9811
9811
|
)}/experience_content/${encodeURIComponent(t)}`,
|
|
9812
|
-
{ headers:
|
|
9812
|
+
{ headers: Mr() }
|
|
9813
9813
|
);
|
|
9814
9814
|
}
|
|
9815
9815
|
function MS(e, t) {
|
|
@@ -9818,12 +9818,12 @@ function MS(e, t) {
|
|
|
9818
9818
|
user: { userId: r, _localId: i }
|
|
9819
9819
|
} = e;
|
|
9820
9820
|
return or(
|
|
9821
|
-
`${
|
|
9821
|
+
`${Hr()}/accounts/${encodeURIComponent(
|
|
9822
9822
|
n
|
|
9823
9823
|
)}/users/${encodeURIComponent(
|
|
9824
9824
|
r || i
|
|
9825
9825
|
)}/checklist/${encodeURIComponent(t)}`,
|
|
9826
|
-
{ headers:
|
|
9826
|
+
{ headers: Mr() }
|
|
9827
9827
|
);
|
|
9828
9828
|
}
|
|
9829
9829
|
function $S(e, t) {
|
|
@@ -9836,21 +9836,21 @@ function $S(e, t) {
|
|
|
9836
9836
|
function BS(e) {
|
|
9837
9837
|
const { userId: t, _localId: n } = be(e);
|
|
9838
9838
|
return or(
|
|
9839
|
-
`${
|
|
9839
|
+
`${Hr()}/accounts/${encodeURIComponent(
|
|
9840
9840
|
e.settings.accountId
|
|
9841
9841
|
)}/users/${encodeURIComponent(t || n)}/history`,
|
|
9842
|
-
{ headers:
|
|
9842
|
+
{ headers: Mr() }
|
|
9843
9843
|
);
|
|
9844
9844
|
}
|
|
9845
9845
|
function VS(e) {
|
|
9846
9846
|
const { userId: t, _localId: n } = be(e);
|
|
9847
9847
|
return or(
|
|
9848
|
-
`${
|
|
9848
|
+
`${Hr()}/accounts/${encodeURIComponent(
|
|
9849
9849
|
e.settings.accountId
|
|
9850
9850
|
)}/users/${encodeURIComponent(
|
|
9851
9851
|
t || n
|
|
9852
9852
|
)}/widget?url=${encodeURIComponent(window.location.href)}`,
|
|
9853
|
-
{ headers:
|
|
9853
|
+
{ headers: Mr() }
|
|
9854
9854
|
);
|
|
9855
9855
|
}
|
|
9856
9856
|
const WS = "access forbidden", GS = "unauthorized", jS = P(
|
|
@@ -9858,11 +9858,11 @@ const WS = "access forbidden", GS = "unauthorized", jS = P(
|
|
|
9858
9858
|
"wss://api.appcues.net/v1/socket"
|
|
9859
9859
|
), Ho = [
|
|
9860
9860
|
{
|
|
9861
|
-
endpoint:
|
|
9861
|
+
endpoint: $r.UserActivity,
|
|
9862
9862
|
name: (e) => `sdk:${e.settings.accountId}:${e.user.userId}`
|
|
9863
9863
|
}
|
|
9864
9864
|
];
|
|
9865
|
-
function
|
|
9865
|
+
function ei(e, t) {
|
|
9866
9866
|
let n;
|
|
9867
9867
|
for (const r of Ho)
|
|
9868
9868
|
if (r.endpoint === t) {
|
|
@@ -9921,7 +9921,7 @@ const YS = {
|
|
|
9921
9921
|
}), i.connect();
|
|
9922
9922
|
},
|
|
9923
9923
|
send: (e, t, n, r, i = "event") => {
|
|
9924
|
-
const o =
|
|
9924
|
+
const o = ei(e, t);
|
|
9925
9925
|
if (o && o.canPush())
|
|
9926
9926
|
o.push(i, n).receive(
|
|
9927
9927
|
"ok",
|
|
@@ -9951,14 +9951,14 @@ const YS = {
|
|
|
9951
9951
|
}
|
|
9952
9952
|
},
|
|
9953
9953
|
subscribeToError: (e, t, n) => {
|
|
9954
|
-
|
|
9954
|
+
ei(t, n).onError(e);
|
|
9955
9955
|
},
|
|
9956
9956
|
sendMetrics: (e, t, n) => {
|
|
9957
|
-
const r =
|
|
9957
|
+
const r = ei(e, t);
|
|
9958
9958
|
r && r.canPush() && r.push("sdk_metrics", n);
|
|
9959
9959
|
},
|
|
9960
9960
|
isConfigured: (e) => Ho.every((t) => {
|
|
9961
|
-
const n =
|
|
9961
|
+
const n = ei(e, t.endpoint);
|
|
9962
9962
|
return n ? n.canPush() : !1;
|
|
9963
9963
|
}),
|
|
9964
9964
|
configure: (e, t) => {
|
|
@@ -10001,7 +10001,7 @@ function bn(e) {
|
|
|
10001
10001
|
} catch {
|
|
10002
10002
|
}
|
|
10003
10003
|
}
|
|
10004
|
-
function
|
|
10004
|
+
function Zt(e, t) {
|
|
10005
10005
|
try {
|
|
10006
10006
|
return window.performance.measure(ku, {
|
|
10007
10007
|
start: e,
|
|
@@ -10036,17 +10036,17 @@ function iT(e, t) {
|
|
|
10036
10036
|
const n = je.request(e), r = je.response(e), i = je.attempt(e), o = je.render(e), s = je.css(e), c = je.shown(e);
|
|
10037
10037
|
let l = Number.NaN;
|
|
10038
10038
|
try {
|
|
10039
|
-
l =
|
|
10039
|
+
l = Zt(0, je.init());
|
|
10040
10040
|
} catch {
|
|
10041
10041
|
}
|
|
10042
10042
|
const u = {
|
|
10043
10043
|
...Number.isNaN(l) ? {} : { init_time: l },
|
|
10044
|
-
api_response_duration:
|
|
10045
|
-
time_to_attempt:
|
|
10046
|
-
time_to_render:
|
|
10047
|
-
css_load_time:
|
|
10048
|
-
time_to_reveal:
|
|
10049
|
-
time_to_show:
|
|
10044
|
+
api_response_duration: Zt(n, r),
|
|
10045
|
+
time_to_attempt: Zt(r, i),
|
|
10046
|
+
time_to_render: Zt(i, o),
|
|
10047
|
+
css_load_time: Zt(o, s),
|
|
10048
|
+
time_to_reveal: Zt(s, c),
|
|
10049
|
+
time_to_show: Zt(n, c),
|
|
10050
10050
|
step_type: t,
|
|
10051
10051
|
request_id: e
|
|
10052
10052
|
};
|
|
@@ -10079,9 +10079,9 @@ const cT = b(
|
|
|
10079
10079
|
(e, t, n) => ({ contentId: e, childId: t, errorMessage: n })
|
|
10080
10080
|
), Ru = b(Ge.CLOSE_DEBUGGER), fT = b(Je.PAUSE_EXPERIENCE), pT = b(
|
|
10081
10081
|
Je.RESUME_EXPERIENCE
|
|
10082
|
-
), Is = b(Je.SHOW_EXPERIENCES),
|
|
10082
|
+
), Is = b(Je.SHOW_EXPERIENCES), wr = b(
|
|
10083
10083
|
Je.SAVE_ON_HOLD_LAUNCHPADS
|
|
10084
|
-
),
|
|
10084
|
+
), Nr = b(
|
|
10085
10085
|
Je.UNHIDE_LAUNCHPADS
|
|
10086
10086
|
), Lu = b(Je.HIDE_LAUNCHPADS), xu = "EVENTS_TRIGGERED", hT = b(xu), As = b(Ct.SET_SESSION), vs = b(Ct.START_SESSION), mT = b(Ct.SESSION_STARTED);
|
|
10087
10087
|
function* Pu() {
|
|
@@ -10090,7 +10090,7 @@ function* Pu() {
|
|
|
10090
10090
|
const t = yield v(dt);
|
|
10091
10091
|
e = yield E(BS, t);
|
|
10092
10092
|
} catch (t) {
|
|
10093
|
-
const n = yield v(
|
|
10093
|
+
const n = yield v(Mt);
|
|
10094
10094
|
yield E(n, t, { extra: t.extra });
|
|
10095
10095
|
}
|
|
10096
10096
|
e && (yield g(mS(e.journeys)));
|
|
@@ -10101,7 +10101,7 @@ function* Du() {
|
|
|
10101
10101
|
const t = yield v(dt);
|
|
10102
10102
|
e = yield E(VS, t);
|
|
10103
10103
|
} catch (t) {
|
|
10104
|
-
const n = yield v(
|
|
10104
|
+
const n = yield v(Mt);
|
|
10105
10105
|
yield E(n, t, { extra: t.extra });
|
|
10106
10106
|
}
|
|
10107
10107
|
e && (yield g(ES(e.contents)));
|
|
@@ -10122,7 +10122,7 @@ function Re(e, t) {
|
|
|
10122
10122
|
return null;
|
|
10123
10123
|
}
|
|
10124
10124
|
}
|
|
10125
|
-
function
|
|
10125
|
+
function De(e, t) {
|
|
10126
10126
|
try {
|
|
10127
10127
|
window[e].removeItem(t);
|
|
10128
10128
|
} catch {
|
|
@@ -10140,7 +10140,7 @@ function yT(e) {
|
|
|
10140
10140
|
return z.ANNOTATION.includes(e);
|
|
10141
10141
|
}
|
|
10142
10142
|
function* Hi() {
|
|
10143
|
-
const e = yield E(Re,
|
|
10143
|
+
const e = yield E(Re, Fe, yi);
|
|
10144
10144
|
try {
|
|
10145
10145
|
return JSON.parse(e);
|
|
10146
10146
|
} catch {
|
|
@@ -10216,14 +10216,14 @@ function* AT(e) {
|
|
|
10216
10216
|
const t = yield* Hi();
|
|
10217
10217
|
yield E(
|
|
10218
10218
|
He,
|
|
10219
|
-
|
|
10220
|
-
|
|
10219
|
+
Fe,
|
|
10220
|
+
yi,
|
|
10221
10221
|
JSON.stringify({ ...t, ...e })
|
|
10222
10222
|
);
|
|
10223
10223
|
}
|
|
10224
10224
|
function* Fu(e, t, n) {
|
|
10225
10225
|
if (Object.keys(e).length > 0) {
|
|
10226
|
-
const r = yield v(
|
|
10226
|
+
const r = yield v(Ai), i = Object.keys(e).filter((o) => !r[o] || !r[o].errorReported);
|
|
10227
10227
|
if (i.length > 0) {
|
|
10228
10228
|
const o = {};
|
|
10229
10229
|
i.forEach((s) => {
|
|
@@ -10248,13 +10248,13 @@ function* vT(e) {
|
|
|
10248
10248
|
delete t[n];
|
|
10249
10249
|
}), yield E(
|
|
10250
10250
|
He,
|
|
10251
|
-
|
|
10252
|
-
|
|
10251
|
+
Fe,
|
|
10252
|
+
yi,
|
|
10253
10253
|
JSON.stringify(t)
|
|
10254
10254
|
));
|
|
10255
10255
|
}
|
|
10256
10256
|
function* bT(e) {
|
|
10257
|
-
const t = yield v(
|
|
10257
|
+
const t = yield v(Ai), r = Object.keys(t).filter(
|
|
10258
10258
|
(i) => t[i].errorReported || t[i].existingError
|
|
10259
10259
|
).filter(
|
|
10260
10260
|
(i) => e[i] && !e[i].error && t[i] && !t[i].recoveryReported
|
|
@@ -10277,7 +10277,7 @@ function* wT() {
|
|
|
10277
10277
|
// eslint-disable-next-line no-cond-assign
|
|
10278
10278
|
(e = yield v(Ve)) && e !== te.ERROR;
|
|
10279
10279
|
) {
|
|
10280
|
-
const n = yield v(tt), r = yield v(
|
|
10280
|
+
const n = yield v(tt), r = yield v(kt), o = (yield n.map((c) => E(
|
|
10281
10281
|
Fa,
|
|
10282
10282
|
(r[c.id] || {}).element || null,
|
|
10283
10283
|
bo(c)
|
|
@@ -10299,13 +10299,13 @@ function* wT() {
|
|
|
10299
10299
|
for (const l in r)
|
|
10300
10300
|
if (Object.prototype.hasOwnProperty.call(r, l)) {
|
|
10301
10301
|
const u = r[l];
|
|
10302
|
-
if (u.isBeaconSettled || c - u.lastRepositionedTs >
|
|
10303
|
-
const d = c - u.lastResizeTs >
|
|
10302
|
+
if (u.isBeaconSettled || c - u.lastRepositionedTs > cn && (yield g(Dy(l, !0))), u.expanded && !u.isTooltipSettled) {
|
|
10303
|
+
const d = c - u.lastResizeTs > cn, f = c - u.lastExpandedTs > bd;
|
|
10304
10304
|
(d || f) && (yield g(qy(l, !0)));
|
|
10305
10305
|
}
|
|
10306
10306
|
}
|
|
10307
10307
|
}
|
|
10308
|
-
yield E(ve,
|
|
10308
|
+
yield E(ve, cn);
|
|
10309
10309
|
}
|
|
10310
10310
|
}
|
|
10311
10311
|
function* NT() {
|
|
@@ -10326,14 +10326,14 @@ function* kT() {
|
|
|
10326
10326
|
const t = Date.now(), n = Object.keys(e).reduce((r, i) => (e[i].ts + wd > t && (r[i] = e[i]), r), {});
|
|
10327
10327
|
yield E(
|
|
10328
10328
|
He,
|
|
10329
|
-
|
|
10330
|
-
|
|
10329
|
+
Fe,
|
|
10330
|
+
yi,
|
|
10331
10331
|
JSON.stringify(n)
|
|
10332
10332
|
);
|
|
10333
10333
|
}
|
|
10334
10334
|
}
|
|
10335
10335
|
function* OT(e) {
|
|
10336
|
-
let t = yield v(
|
|
10336
|
+
let t = yield v(kt);
|
|
10337
10337
|
const n = yield v(tt);
|
|
10338
10338
|
let r = t[e] || {};
|
|
10339
10339
|
const i = lt(
|
|
@@ -10343,9 +10343,9 @@ function* OT(e) {
|
|
|
10343
10343
|
let { element: o, error: s } = r;
|
|
10344
10344
|
const { offset_y_percentage: c } = i, l = 1 - Number.parseFloat(c);
|
|
10345
10345
|
for (; !o || s; )
|
|
10346
|
-
yield W(he.SET_ANNOTATIONS_POSITIONS), t = yield v(
|
|
10346
|
+
yield W(he.SET_ANNOTATIONS_POSITIONS), t = yield v(kt), r = t[e] || {}, o = r.element, s = r.error;
|
|
10347
10347
|
const u = yield E(ch, o);
|
|
10348
|
-
if (
|
|
10348
|
+
if (ki(o)) {
|
|
10349
10349
|
if (window.document?.documentMode) return;
|
|
10350
10350
|
setTimeout(() => {
|
|
10351
10351
|
o.scrollIntoView({ behavior: "smooth", block: "center" });
|
|
@@ -10452,7 +10452,7 @@ function* Mu(e) {
|
|
|
10452
10452
|
}
|
|
10453
10453
|
function* FT(e) {
|
|
10454
10454
|
for (; !(yield E(Mu, e)).result; )
|
|
10455
|
-
yield E(ve,
|
|
10455
|
+
yield E(ve, cn);
|
|
10456
10456
|
return { result: !0 };
|
|
10457
10457
|
}
|
|
10458
10458
|
function* UT(e, t, n = null) {
|
|
@@ -10466,18 +10466,18 @@ function* UT(e, t, n = null) {
|
|
|
10466
10466
|
try {
|
|
10467
10467
|
o = yield E(() => r), s = !0;
|
|
10468
10468
|
} finally {
|
|
10469
|
-
return !s && i && (yield
|
|
10469
|
+
return !s && i && (yield Ci()) && (yield E([e, e.removeEventListener], t, i)), o;
|
|
10470
10470
|
}
|
|
10471
10471
|
}
|
|
10472
|
-
function
|
|
10472
|
+
function hi(e, t = null, n = null) {
|
|
10473
10473
|
return { result: e, task: t, failures: n };
|
|
10474
10474
|
}
|
|
10475
10475
|
function* HT(e) {
|
|
10476
10476
|
const { result: t, failures: n } = yield E(Mu, e);
|
|
10477
10477
|
if (t)
|
|
10478
|
-
return
|
|
10479
|
-
const r = yield
|
|
10480
|
-
return
|
|
10478
|
+
return hi(!0);
|
|
10479
|
+
const r = yield Nt(FT, e);
|
|
10480
|
+
return hi(!1, r, n);
|
|
10481
10481
|
}
|
|
10482
10482
|
function* al(e, t, n) {
|
|
10483
10483
|
let r, i;
|
|
@@ -10485,19 +10485,19 @@ function* al(e, t, n) {
|
|
|
10485
10485
|
try {
|
|
10486
10486
|
const o = yield E(us, t);
|
|
10487
10487
|
if (o.error)
|
|
10488
|
-
yield E(ve,
|
|
10488
|
+
yield E(ve, cn);
|
|
10489
10489
|
else {
|
|
10490
10490
|
if ((r !== o || !i) && (i && (yield ot(i)), r = o, i = yield F(UT, r, e, n)), i && i.result())
|
|
10491
10491
|
return { result: !0 };
|
|
10492
10492
|
const { eventOccurred: s } = yield qe({
|
|
10493
|
-
timeout: E(ve,
|
|
10493
|
+
timeout: E(ve, cn),
|
|
10494
10494
|
eventOccurred: In(i)
|
|
10495
10495
|
});
|
|
10496
10496
|
if (s)
|
|
10497
10497
|
return { result: !0 };
|
|
10498
10498
|
}
|
|
10499
10499
|
} catch {
|
|
10500
|
-
yield E(ve,
|
|
10500
|
+
yield E(ve, cn);
|
|
10501
10501
|
}
|
|
10502
10502
|
}
|
|
10503
10503
|
function* MT(e) {
|
|
@@ -10516,11 +10516,11 @@ function* $u(e) {
|
|
|
10516
10516
|
case Un.WAIT_FOR_ONE_ELEMENT:
|
|
10517
10517
|
return yield E(HT, e.params.selectors);
|
|
10518
10518
|
case Un.WAIT_FOR_MOUSE_EVENT: {
|
|
10519
|
-
const n = yield
|
|
10520
|
-
return
|
|
10519
|
+
const n = yield Nt(MT, e);
|
|
10520
|
+
return hi(!1, n);
|
|
10521
10521
|
}
|
|
10522
10522
|
default:
|
|
10523
|
-
return
|
|
10523
|
+
return hi(!0);
|
|
10524
10524
|
}
|
|
10525
10525
|
}
|
|
10526
10526
|
function* $T(e, t, ...n) {
|
|
@@ -10530,9 +10530,9 @@ function* $T(e, t, ...n) {
|
|
|
10530
10530
|
try {
|
|
10531
10531
|
o = (yield In(i)).result;
|
|
10532
10532
|
} finally {
|
|
10533
|
-
i.isRunning() && (yield
|
|
10533
|
+
i.isRunning() && (yield Ci()) && (yield ot(i));
|
|
10534
10534
|
}
|
|
10535
|
-
o && (yield
|
|
10535
|
+
o && (yield Nt(t, ...n));
|
|
10536
10536
|
}
|
|
10537
10537
|
function BT(e, t, n) {
|
|
10538
10538
|
return { type: e, params: t, context: n };
|
|
@@ -10569,8 +10569,8 @@ function* at(e, t) {
|
|
|
10569
10569
|
);
|
|
10570
10570
|
}
|
|
10571
10571
|
function* ul(e, t, n) {
|
|
10572
|
-
const r = yield*
|
|
10573
|
-
yield*
|
|
10572
|
+
const r = yield* Xt();
|
|
10573
|
+
yield* Ut({
|
|
10574
10574
|
...r,
|
|
10575
10575
|
flowId: e.id,
|
|
10576
10576
|
stepId: t.id,
|
|
@@ -10610,20 +10610,20 @@ function dl(e, t) {
|
|
|
10610
10610
|
return t ? { ...e, _sdkMetrics: t } : e;
|
|
10611
10611
|
}
|
|
10612
10612
|
function* jT(e, t, n) {
|
|
10613
|
-
const r = yield v(
|
|
10613
|
+
const r = yield v(Ot);
|
|
10614
10614
|
for (; ; ) {
|
|
10615
10615
|
const i = yield W(t), o = i.params || {}, s = o.stepId ? ct(e, o.stepId) : null;
|
|
10616
10616
|
let c, l;
|
|
10617
|
-
const u = s ? (c =
|
|
10617
|
+
const u = s ? (c = Dt(e, 0)) && c.id === s.id : !1, f = (s ? (l = Dt(e, ua(e) - 1)) && l.id === s.id : !1) || o.shouldEndFlow;
|
|
10618
10618
|
switch (i.type) {
|
|
10619
10619
|
case Y.STEP_ATTEMPTED:
|
|
10620
10620
|
if (s && // Don't send this event for satisfcation surveys (and possibly eventually other types), we want to keep the logging very focused.
|
|
10621
10621
|
Ln(s)) {
|
|
10622
|
-
if (
|
|
10622
|
+
if (on(s)) {
|
|
10623
10623
|
const y = [];
|
|
10624
10624
|
u && y.push(Lc(e, r)), y.push(xc(e, s, r)), yield* at(e.id, y);
|
|
10625
|
-
const { page_check_limit: h } = s.attributes.params, m = yield*
|
|
10626
|
-
yield*
|
|
10625
|
+
const { page_check_limit: h } = s.attributes.params, m = yield* Xt(), { remainingPagesToCheck: T } = m || {};
|
|
10626
|
+
yield* Ut({
|
|
10627
10627
|
...m,
|
|
10628
10628
|
remainingPagesToCheck: typeof T == "number" ? T : typeof h == "number" ? h : jo
|
|
10629
10629
|
});
|
|
@@ -10639,8 +10639,8 @@ function* jT(e, t, n) {
|
|
|
10639
10639
|
case Y.STEP_SHOWN:
|
|
10640
10640
|
if (s) {
|
|
10641
10641
|
if (Ln(s)) {
|
|
10642
|
-
const p = yield*
|
|
10643
|
-
yield*
|
|
10642
|
+
const p = yield* Xt(), y = u || !p ? Ui() : p.submissionId, h = u || !p ? yield E(gr, window, "appcue") : p.fromPermalink;
|
|
10643
|
+
yield* Ut({
|
|
10644
10644
|
...p,
|
|
10645
10645
|
submissionId: y,
|
|
10646
10646
|
status: Y.STEP_SHOWN,
|
|
@@ -10664,19 +10664,19 @@ function* jT(e, t, n) {
|
|
|
10664
10664
|
s && (yield* at(e.id, [
|
|
10665
10665
|
SE(e, s, o.stepChildId, r),
|
|
10666
10666
|
mE(e, o.stepId, r)
|
|
10667
|
-
]), yield*
|
|
10667
|
+
]), yield* Ht(e, s), yield g(zt(e.id, wt.SKIPPED)), yield g(br()), yield g(Nr()));
|
|
10668
10668
|
break;
|
|
10669
10669
|
case Y.STEP_END:
|
|
10670
10670
|
if (s) {
|
|
10671
10671
|
const p = yield v(ce);
|
|
10672
|
-
if (p === s.id && (yield*
|
|
10673
|
-
yield g(
|
|
10672
|
+
if (p === s.id && (yield* Ht(e, s)), f)
|
|
10673
|
+
yield g(zt(e.id, wt.COMPLETED));
|
|
10674
10674
|
else {
|
|
10675
|
-
const y =
|
|
10675
|
+
const y = Dt(
|
|
10676
10676
|
e,
|
|
10677
10677
|
$n(e, s.id) + 1
|
|
10678
10678
|
);
|
|
10679
|
-
y.type === z.HOTSPOTS && (yield g(
|
|
10679
|
+
y.type === z.HOTSPOTS && (yield g(br()), yield g(Nr())), p === s.id && (yield g(
|
|
10680
10680
|
t,
|
|
10681
10681
|
Se(
|
|
10682
10682
|
Y.STEP_ATTEMPTED,
|
|
@@ -10804,7 +10804,7 @@ function* jT(e, t, n) {
|
|
|
10804
10804
|
}
|
|
10805
10805
|
case Y.CHILD_NEXT:
|
|
10806
10806
|
if (s) {
|
|
10807
|
-
const p =
|
|
10807
|
+
const p = mn(s, o.stepChildId);
|
|
10808
10808
|
let y = null;
|
|
10809
10809
|
p > -1 && (y = (vo(s, p + 1) || {}).id || null);
|
|
10810
10810
|
let h = s.type;
|
|
@@ -10816,9 +10816,9 @@ function* jT(e, t, n) {
|
|
|
10816
10816
|
case Y.CHILD_RUN: {
|
|
10817
10817
|
const p = vo(
|
|
10818
10818
|
s,
|
|
10819
|
-
|
|
10819
|
+
mn(s, o.stepChildId)
|
|
10820
10820
|
);
|
|
10821
|
-
yield g(
|
|
10821
|
+
yield g(dn(o.stepChildId)), p && p.ui_conditions && p.ui_conditions.next && (yield Nt(GT, e, s, p));
|
|
10822
10822
|
break;
|
|
10823
10823
|
}
|
|
10824
10824
|
case Y.CSS_LOADED: {
|
|
@@ -10845,7 +10845,7 @@ function* jT(e, t, n) {
|
|
|
10845
10845
|
}
|
|
10846
10846
|
}
|
|
10847
10847
|
function bs(e) {
|
|
10848
|
-
|
|
10848
|
+
De("localStorage", e), De("localStorage", `${e}_timeout`);
|
|
10849
10849
|
}
|
|
10850
10850
|
function Bu(e) {
|
|
10851
10851
|
if (!e)
|
|
@@ -10865,13 +10865,13 @@ function* KT(e, t) {
|
|
|
10865
10865
|
), yield ot(t);
|
|
10866
10866
|
}
|
|
10867
10867
|
function* Wu(e, t) {
|
|
10868
|
-
const n = yield E(Gn.expanding, 5), r = yield E(la, n), i = yield
|
|
10868
|
+
const n = yield E(Gn.expanding, 5), r = yield E(la, n), i = yield Nt(
|
|
10869
10869
|
jT,
|
|
10870
10870
|
e,
|
|
10871
10871
|
r,
|
|
10872
10872
|
t
|
|
10873
10873
|
);
|
|
10874
|
-
return yield
|
|
10874
|
+
return yield Nt(KT, e.id, i), r;
|
|
10875
10875
|
}
|
|
10876
10876
|
function YT(e) {
|
|
10877
10877
|
if (e.uiConditions && e.uiConditions.start)
|
|
@@ -10910,15 +10910,15 @@ function* zT(e, t, n, r, i) {
|
|
|
10910
10910
|
try {
|
|
10911
10911
|
o = (yield In(e)).result, o && (yield g(Pi(n, Xe.FLOWS)), yield g(ps(n, r, i, t)));
|
|
10912
10912
|
} finally {
|
|
10913
|
-
(yield
|
|
10913
|
+
(yield Ci()) && (yield ot(e)), o || (yield g(t, yr));
|
|
10914
10914
|
}
|
|
10915
10915
|
}
|
|
10916
|
-
function*
|
|
10916
|
+
function* mi(e) {
|
|
10917
10917
|
for (; (yield v(If, e)).length > 0; )
|
|
10918
10918
|
yield W($.FINISHED_EVENT);
|
|
10919
10919
|
}
|
|
10920
10920
|
function* Gu(e, t, n, r, i = !0) {
|
|
10921
|
-
const o = yield E(Wu, e, r), s = t ? ct(e, t) :
|
|
10921
|
+
const o = yield E(Wu, e, r), s = t ? ct(e, t) : Dt(e, 0);
|
|
10922
10922
|
Ln(s) && s.attributes.action_type !== Tt.WAIT_FOR_PAGE && (yield g(
|
|
10923
10923
|
o,
|
|
10924
10924
|
Se(Y.STEP_ATTEMPTED, s.id)
|
|
@@ -10934,7 +10934,7 @@ function* Gu(e, t, n, r, i = !0) {
|
|
|
10934
10934
|
yield E(Fu, h, s.id, o);
|
|
10935
10935
|
}
|
|
10936
10936
|
const y = [$.START_FLOW];
|
|
10937
|
-
return i !== !1 && y.push($.CANCEL_ATTEMPTS), yield
|
|
10937
|
+
return i !== !1 && y.push($.CANCEL_ATTEMPTS), yield Nt(lE, {
|
|
10938
10938
|
wait: E(zT, d, o, e.id, s.id, n),
|
|
10939
10939
|
cancel: W(y)
|
|
10940
10940
|
}), !1;
|
|
@@ -10945,32 +10945,32 @@ function* fl(e, t, n, r) {
|
|
|
10945
10945
|
}
|
|
10946
10946
|
function* XT(e) {
|
|
10947
10947
|
const { flowId: t, stepId: n, url: r, eventChannel: i, status: o } = e.payload, s = yield v(ts, t), c = ct(s, n);
|
|
10948
|
-
c && (c.type === z.HOTSPOTS && (yield g(
|
|
10948
|
+
c && (c.type === z.HOTSPOTS && (yield g(br()), yield g(Nr())), yield g(Va(c, r, o)));
|
|
10949
10949
|
const { payload: l } = yield W(
|
|
10950
10950
|
(u) => u.type === le.CLOSE_FLOW && u.payload.flowId === t
|
|
10951
10951
|
);
|
|
10952
|
-
yield E(
|
|
10953
|
-
wait: E(
|
|
10952
|
+
yield E(De, Ie, jt), yield g(hm(i)), yield qe({
|
|
10953
|
+
wait: E(mi, t),
|
|
10954
10954
|
cancel: E(ve, qo)
|
|
10955
|
-
}), !s.redirect_url && !s.next_content_id && (yield g(
|
|
10955
|
+
}), !s.redirect_url && !s.next_content_id && (yield g(br()), yield g(Nr())), l.type === wt.COMPLETED && (s.redirect_url ? (s.next_content_id && (yield E(
|
|
10956
10956
|
Vu,
|
|
10957
10957
|
Dn,
|
|
10958
10958
|
s.next_content_id,
|
|
10959
10959
|
kl
|
|
10960
|
-
)), yield E(
|
|
10960
|
+
)), yield E(Yt, window, s.redirect_url, s.redirect_new_tab)) : s.next_content_id && (yield g(xr(s.next_content_id))));
|
|
10961
10961
|
}
|
|
10962
|
-
function*
|
|
10962
|
+
function* Xt() {
|
|
10963
10963
|
try {
|
|
10964
|
-
return JSON.parse(yield E(Re,
|
|
10964
|
+
return JSON.parse(yield E(Re, Ie, jt));
|
|
10965
10965
|
} catch {
|
|
10966
10966
|
return {};
|
|
10967
10967
|
}
|
|
10968
10968
|
}
|
|
10969
|
-
function*
|
|
10969
|
+
function* Ut(e) {
|
|
10970
10970
|
yield E(
|
|
10971
10971
|
He,
|
|
10972
|
-
|
|
10973
|
-
|
|
10972
|
+
Ie,
|
|
10973
|
+
jt,
|
|
10974
10974
|
JSON.stringify(e)
|
|
10975
10975
|
);
|
|
10976
10976
|
}
|
|
@@ -11001,7 +11001,7 @@ function* JT(e) {
|
|
|
11001
11001
|
if (n)
|
|
11002
11002
|
yield g(Ac(t, n));
|
|
11003
11003
|
else if (t.attributes.action_type === Tt.WAIT_FOR_PAGE) {
|
|
11004
|
-
const r = yield*
|
|
11004
|
+
const r = yield* Xt(), i = n || r && r.status || Y.STEP_ATTEMPTED;
|
|
11005
11005
|
yield g(Ac(t, i));
|
|
11006
11006
|
} else
|
|
11007
11007
|
yield g(km(t));
|
|
@@ -11014,7 +11014,7 @@ function* JT(e) {
|
|
|
11014
11014
|
);
|
|
11015
11015
|
}
|
|
11016
11016
|
}
|
|
11017
|
-
function*
|
|
11017
|
+
function* Ht(e, t) {
|
|
11018
11018
|
if (!t) return;
|
|
11019
11019
|
(yield v(Ve)) === te.SHOWING && (yield g(Cm()), yield E(ve, Nd)), yield g(lm(t)), yield g(_y(e.id, t.id));
|
|
11020
11020
|
}
|
|
@@ -11067,8 +11067,8 @@ function nC(e, t, n = {}) {
|
|
|
11067
11067
|
_timezoneOffset: (/* @__PURE__ */ new Date()).getTimezoneOffset(),
|
|
11068
11068
|
_appId: e.AppcuesBundleSettings?.defaultAppId || null
|
|
11069
11069
|
};
|
|
11070
|
-
return s ? (f._testContentId = s, f._testContentUrl = i, He(
|
|
11071
|
-
|
|
11070
|
+
return s ? (f._testContentId = s, f._testContentUrl = i, He(Ie, yo, !0)) : r._testContentId && r._testContentUrl && (f._testContentId = r._testContentId, f._testContentUrl = r._testContentUrl), Re(
|
|
11071
|
+
Ie,
|
|
11072
11072
|
yo
|
|
11073
11073
|
) || (f._testContentId = null, f._testContentUrl = null), f;
|
|
11074
11074
|
}
|
|
@@ -11156,7 +11156,7 @@ const sC = Jn(
|
|
|
11156
11156
|
Zn,
|
|
11157
11157
|
nr
|
|
11158
11158
|
],
|
|
11159
|
-
|
|
11159
|
+
bi.createApi({
|
|
11160
11160
|
clean: !0,
|
|
11161
11161
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
11162
11162
|
})
|
|
@@ -11178,7 +11178,7 @@ function* qu(e) {
|
|
|
11178
11178
|
try {
|
|
11179
11179
|
sC(
|
|
11180
11180
|
document.createElement("div"),
|
|
11181
|
-
|
|
11181
|
+
Ft(`<div>${r.html}</div>`, {
|
|
11182
11182
|
hooks: {
|
|
11183
11183
|
create: cC
|
|
11184
11184
|
}
|
|
@@ -11214,9 +11214,9 @@ const aC = () => {
|
|
|
11214
11214
|
};
|
|
11215
11215
|
function* uC() {
|
|
11216
11216
|
try {
|
|
11217
|
-
const e = yield E(Re,
|
|
11217
|
+
const e = yield E(Re, Fe, ci), t = JSON.parse(e);
|
|
11218
11218
|
if (!t.id || !t.timestamp)
|
|
11219
|
-
throw yield E(
|
|
11219
|
+
throw yield E(De, Fe, ci), new Error("Invalid session");
|
|
11220
11220
|
return t;
|
|
11221
11221
|
} catch {
|
|
11222
11222
|
return {};
|
|
@@ -11238,7 +11238,7 @@ function* fC() {
|
|
|
11238
11238
|
}
|
|
11239
11239
|
function* pC() {
|
|
11240
11240
|
const e = yield v(Yn);
|
|
11241
|
-
yield E(He,
|
|
11241
|
+
yield E(He, Fe, ci, JSON.stringify(e));
|
|
11242
11242
|
}
|
|
11243
11243
|
function* Ku() {
|
|
11244
11244
|
const e = yield v(Yn);
|
|
@@ -11275,8 +11275,8 @@ function* ks(e = !1) {
|
|
|
11275
11275
|
return null;
|
|
11276
11276
|
let n = yield E(
|
|
11277
11277
|
Re,
|
|
11278
|
-
|
|
11279
|
-
|
|
11278
|
+
Ie,
|
|
11279
|
+
ln
|
|
11280
11280
|
);
|
|
11281
11281
|
try {
|
|
11282
11282
|
n = JSON.parse(n);
|
|
@@ -11291,8 +11291,8 @@ function* ks(e = !1) {
|
|
|
11291
11291
|
);
|
|
11292
11292
|
if (yield E(
|
|
11293
11293
|
He,
|
|
11294
|
-
|
|
11295
|
-
|
|
11294
|
+
Ie,
|
|
11295
|
+
ln,
|
|
11296
11296
|
JSON.stringify(r)
|
|
11297
11297
|
), (yield E(Hu, window)) && window.history && window.location) {
|
|
11298
11298
|
const l = yield E(
|
|
@@ -11307,22 +11307,22 @@ function* ks(e = !1) {
|
|
|
11307
11307
|
l
|
|
11308
11308
|
), window.location.reload();
|
|
11309
11309
|
}
|
|
11310
|
-
let o = yield E(Re,
|
|
11311
|
-
o || (o = yield E(Ui), yield E(He,
|
|
11310
|
+
let o = yield E(Re, Fe, So);
|
|
11311
|
+
o || (o = yield E(Ui), yield E(He, Fe, So, o));
|
|
11312
11312
|
const s = yield v(Ef), c = rC({
|
|
11313
11313
|
_localId: o,
|
|
11314
11314
|
_appcuesId: s,
|
|
11315
11315
|
...r
|
|
11316
11316
|
});
|
|
11317
|
-
return yield g(
|
|
11317
|
+
return yield g(Pr(c, !0)), c;
|
|
11318
11318
|
}
|
|
11319
11319
|
function* Yu() {
|
|
11320
|
-
yield g(ym()), yield E(
|
|
11320
|
+
yield g(ym()), yield E(De, Ie, ln), yield E(De, Fe, So), yield E(De, Fe, Ko), yield E(De, Fe, Si), yield E(bs, Dn), yield E(De, Ie, jt), yield E(De, Fe, ci), yield E(gT, Ie, Yo), yield E(ks, !0);
|
|
11321
11321
|
}
|
|
11322
11322
|
function* pl(e) {
|
|
11323
11323
|
const { properties: t, events: n } = e.payload, { _isAnonymous: r } = t, { userId: i } = e.payload, o = yield v(be), s = o && o.userId && o.userId.toString(), c = s !== i.toString();
|
|
11324
|
-
s && c && !r && (yield E(Yu)), yield g(gm(i)), ne.defined(i) && (yield E(He,
|
|
11325
|
-
|
|
11324
|
+
s && c && !r && (yield E(Yu)), yield g(gm(i)), ne.defined(i) && (yield E(He, Fe, Ko, i)), yield g(
|
|
11325
|
+
Pr(
|
|
11326
11326
|
{
|
|
11327
11327
|
_doNotTrack: `${window.navigator && window.navigator.doNotTrack}`[0] === "1",
|
|
11328
11328
|
...t
|
|
@@ -11421,27 +11421,27 @@ function Rs(e) {
|
|
|
11421
11421
|
return null;
|
|
11422
11422
|
}
|
|
11423
11423
|
function Xu(e) {
|
|
11424
|
-
return
|
|
11424
|
+
return on(e) && St(e.attributes.params.url, window.location.href);
|
|
11425
11425
|
}
|
|
11426
11426
|
function* Ju(e) {
|
|
11427
11427
|
let t = e, n = null, r = null, i = null, o = null, s = null;
|
|
11428
11428
|
const c = yield v(nt);
|
|
11429
11429
|
if (t && (!c || c.id !== t && (!c.migrated_from_step_id || c.migrated_from_step_id !== t))) {
|
|
11430
|
-
if (r = window.location.href, yield g(
|
|
11430
|
+
if (r = window.location.href, yield g(vr()), c && ne.defined(c.id)) {
|
|
11431
11431
|
const u = yield v(ce), d = ct(c, u);
|
|
11432
|
-
d && (yield*
|
|
11433
|
-
|
|
11432
|
+
d && (yield* Ht(c, d)), yield g(
|
|
11433
|
+
zt(
|
|
11434
11434
|
c.id,
|
|
11435
|
-
|
|
11435
|
+
wt.SHOWING_OTHER_CONTENT
|
|
11436
11436
|
)
|
|
11437
11437
|
);
|
|
11438
11438
|
}
|
|
11439
|
-
const l = yield v(
|
|
11439
|
+
const l = yield v(Rr);
|
|
11440
11440
|
if (l && l[t])
|
|
11441
11441
|
n = l[t];
|
|
11442
11442
|
else {
|
|
11443
11443
|
yield g(_m(t, r));
|
|
11444
|
-
const u = yield v(dt), d = yield v(
|
|
11444
|
+
const u = yield v(dt), d = yield v(Mt);
|
|
11445
11445
|
try {
|
|
11446
11446
|
n = yield E(Nu, u, t);
|
|
11447
11447
|
} catch (f) {
|
|
@@ -11469,82 +11469,87 @@ function* Ju(e) {
|
|
|
11469
11469
|
return { shownUrl: r, content: n, checklistContent: o, experience: s };
|
|
11470
11470
|
}
|
|
11471
11471
|
function SC(e) {
|
|
11472
|
-
return
|
|
11472
|
+
return Or(e) && St(e.attributes.params.url, window.location.href);
|
|
11473
11473
|
}
|
|
11474
11474
|
function TC(e, t) {
|
|
11475
|
-
return !
|
|
11475
|
+
return !Or(e) && t === Y.STEP_COMPLETED;
|
|
11476
11476
|
}
|
|
11477
11477
|
function* CC() {
|
|
11478
11478
|
const e = JSON.parse(
|
|
11479
|
-
yield E(Re,
|
|
11479
|
+
yield E(Re, Ie, jt)
|
|
11480
11480
|
);
|
|
11481
11481
|
if (e) {
|
|
11482
|
-
|
|
11483
|
-
|
|
11482
|
+
let t = e;
|
|
11483
|
+
const n = yield v(nt), r = n && n.id === e.flowId, i = ct(
|
|
11484
|
+
n,
|
|
11484
11485
|
e.stepId
|
|
11485
11486
|
);
|
|
11486
|
-
let
|
|
11487
|
-
if (
|
|
11487
|
+
let o = window.location.href;
|
|
11488
|
+
if (on(i)) {
|
|
11488
11489
|
if (yield E(
|
|
11489
11490
|
Xu,
|
|
11490
|
-
|
|
11491
|
+
i
|
|
11491
11492
|
))
|
|
11492
11493
|
return yield ut(
|
|
11493
11494
|
fl,
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11495
|
+
n,
|
|
11496
|
+
i.id,
|
|
11497
|
+
o,
|
|
11497
11498
|
null
|
|
11498
11499
|
), !0;
|
|
11499
|
-
const
|
|
11500
|
-
return
|
|
11501
|
-
|
|
11502
|
-
), !1) : (yield E(
|
|
11500
|
+
const u = e.remainingPagesToCheck;
|
|
11501
|
+
return u === 1 ? (yield g(vr()), yield E(Ht, n, i), yield g(
|
|
11502
|
+
zt(n.id, wt.CLEAR)
|
|
11503
|
+
), !1) : (yield E(Ut, {
|
|
11503
11504
|
...e,
|
|
11504
|
-
remainingPagesToCheck:
|
|
11505
|
+
remainingPagesToCheck: u - 1
|
|
11505
11506
|
}), !0);
|
|
11506
11507
|
}
|
|
11507
|
-
e.fromPermalink || (yield E(
|
|
11508
|
-
let
|
|
11509
|
-
if (
|
|
11510
|
-
|
|
11508
|
+
e.fromPermalink || (yield E(De, Ie, jt));
|
|
11509
|
+
let c;
|
|
11510
|
+
if (r)
|
|
11511
|
+
c = n, o = window.location.href;
|
|
11511
11512
|
else {
|
|
11512
|
-
const
|
|
11513
|
-
|
|
11514
|
-
}
|
|
11515
|
-
if (
|
|
11516
|
-
const
|
|
11517
|
-
if (
|
|
11518
|
-
let
|
|
11519
|
-
if (TC(
|
|
11520
|
-
|
|
11521
|
-
$n(
|
|
11522
|
-
),
|
|
11523
|
-
if (
|
|
11524
|
-
|
|
11525
|
-
$n(
|
|
11526
|
-
),
|
|
11527
|
-
const { flowId:
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11513
|
+
const l = yield E(Ju, e.flowId);
|
|
11514
|
+
c = l.content, o = l.shownUrl, c && (yield g(Ga()));
|
|
11515
|
+
}
|
|
11516
|
+
if (c) {
|
|
11517
|
+
const l = ct(c, e.stepId), u = e.status, d = SC(l), f = on(l), p = e.navByADTT;
|
|
11518
|
+
if (d || p || f) {
|
|
11519
|
+
let y = l, h = u;
|
|
11520
|
+
if (TC(l, u) && (y = Dt(
|
|
11521
|
+
c,
|
|
11522
|
+
$n(c, e.stepId) + 1
|
|
11523
|
+
), h = Y.STEP_ATTEMPTED), Or(y) || on(y)) {
|
|
11524
|
+
if (h === Y.STEP_COMPLETED && (y = Dt(
|
|
11525
|
+
c,
|
|
11526
|
+
$n(c, y.id) + 1
|
|
11527
|
+
), h = null), on(y)) {
|
|
11528
|
+
const { flowId: _, remainingPagesToCheck: S } = t, { page_check_limit: A } = y.attributes.params, I = typeof S == "number" ? S : typeof A == "number" ? A : jo;
|
|
11529
|
+
if (I <= 1)
|
|
11530
|
+
return yield g(vr()), yield E(Ht, c, y), yield g(
|
|
11531
|
+
zt(c.id, wt.CLEAR)
|
|
11532
|
+
), t.fromPermalink || (yield E(De, Ie, jt)), !1;
|
|
11533
|
+
t = {
|
|
11534
|
+
...t,
|
|
11535
|
+
flowId: _,
|
|
11536
|
+
stepId: y.id,
|
|
11532
11537
|
status: Y.STEP_ATTEMPTED,
|
|
11533
|
-
remainingPagesToCheck:
|
|
11534
|
-
});
|
|
11538
|
+
remainingPagesToCheck: I - 1
|
|
11539
|
+
}, yield E(Ut, t);
|
|
11535
11540
|
}
|
|
11536
|
-
|
|
11537
|
-
const { flowId:
|
|
11538
|
-
return yield E(
|
|
11539
|
-
...
|
|
11540
|
-
flowId:
|
|
11541
|
-
submissionId:
|
|
11541
|
+
r && (yield g(Iy(c.id, l.id)), yield E(Ht, c, l));
|
|
11542
|
+
const { flowId: m, submissionId: T } = t;
|
|
11543
|
+
return yield E(Ut, {
|
|
11544
|
+
...t,
|
|
11545
|
+
flowId: m,
|
|
11546
|
+
submissionId: T
|
|
11542
11547
|
}), yield ut(
|
|
11543
11548
|
fl,
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11549
|
+
c,
|
|
11550
|
+
y.id,
|
|
11551
|
+
o,
|
|
11552
|
+
h
|
|
11548
11553
|
), !0;
|
|
11549
11554
|
}
|
|
11550
11555
|
}
|
|
@@ -11557,9 +11562,9 @@ function* Qu() {
|
|
|
11557
11562
|
const e = yield v(nt);
|
|
11558
11563
|
if (e) {
|
|
11559
11564
|
const r = JSON.parse(
|
|
11560
|
-
yield E(Re,
|
|
11565
|
+
yield E(Re, Ie, jt)
|
|
11561
11566
|
), i = r ? ct(e, r.stepId) : null;
|
|
11562
|
-
i && Xu(i) && (yield E(
|
|
11567
|
+
i && Xu(i) && (yield E(Ut, {
|
|
11563
11568
|
...r,
|
|
11564
11569
|
status: Y.STEP_SHOWN
|
|
11565
11570
|
}));
|
|
@@ -11583,7 +11588,7 @@ function* Qu() {
|
|
|
11583
11588
|
);
|
|
11584
11589
|
}
|
|
11585
11590
|
} else (yield E(gr, window, "appcue")) && (r = yield E(gr, window, "appcue"));
|
|
11586
|
-
(yield E(Bu, Dn)) && (r || (r = yield E(qT, Dn)), yield E(bs, Dn)), r && (yield g(
|
|
11591
|
+
(yield E(Bu, Dn)) && (r || (r = yield E(qT, Dn)), yield E(bs, Dn)), r && (yield g(xr(r)), n = !0);
|
|
11587
11592
|
}
|
|
11588
11593
|
return yield g(vc(window.location.href, !0)), n;
|
|
11589
11594
|
}
|
|
@@ -11591,7 +11596,7 @@ function* _C(e) {
|
|
|
11591
11596
|
const t = yield v(nt), n = yield v(ce), r = ct(t, n), i = Rs(e);
|
|
11592
11597
|
if (i && i.attributes.url && t !== null) {
|
|
11593
11598
|
const o = yield v(bf);
|
|
11594
|
-
Tn(i.attributes.url) !== Tn(o) && (r && (yield*
|
|
11599
|
+
Tn(i.attributes.url) !== Tn(o) && (r && (yield* Ht(t, r)), yield g(zt(t.id, wt.CLEAR)));
|
|
11595
11600
|
}
|
|
11596
11601
|
}
|
|
11597
11602
|
function* IC({
|
|
@@ -11608,7 +11613,7 @@ function* IC({
|
|
|
11608
11613
|
if (!St(c.url, window.location.href)) {
|
|
11609
11614
|
(yield v(
|
|
11610
11615
|
Ve
|
|
11611
|
-
)) === te.WILL_CLOSE && (yield W(le.CLOSE_STEP)), yield g(
|
|
11616
|
+
)) === te.WILL_CLOSE && (yield W(le.CLOSE_STEP)), yield g(vr());
|
|
11612
11617
|
const d = yield v(No);
|
|
11613
11618
|
d && d.stopAll(), (yield E(Qu)) || (yield E(_C, t)), (yield v(Ia)) && (yield pt([E(Pu), E(Du)]));
|
|
11614
11619
|
}
|
|
@@ -11623,7 +11628,7 @@ function* AC({
|
|
|
11623
11628
|
groupProperties: i
|
|
11624
11629
|
}) {
|
|
11625
11630
|
(yield E(Mi)) || (yield W(U.INITIALIZE), yield W(Ct.SET_SESSION), yield W(U.CHECKED_FOR_INITIAL_CONTENT));
|
|
11626
|
-
const s = yield E(Re,
|
|
11631
|
+
const s = yield E(Re, Fe, Si), [c, l] = yield* IC({
|
|
11627
11632
|
properties: e,
|
|
11628
11633
|
events: t,
|
|
11629
11634
|
groupProperties: i,
|
|
@@ -11655,8 +11660,8 @@ function* vC() {
|
|
|
11655
11660
|
let r = [];
|
|
11656
11661
|
yield F(function* () {
|
|
11657
11662
|
for (; ; ) {
|
|
11658
|
-
const { payload:
|
|
11659
|
-
|
|
11663
|
+
const { payload: s } = yield W($.START_IDENTIFY), c = yield v(be);
|
|
11664
|
+
s.userId !== c?.userId && r.length > 0 && (yield ot(...r), r = []);
|
|
11660
11665
|
}
|
|
11661
11666
|
});
|
|
11662
11667
|
let i;
|
|
@@ -11703,7 +11708,7 @@ function* wC({ payload: e }) {
|
|
|
11703
11708
|
yield E(e.onSuccess);
|
|
11704
11709
|
return;
|
|
11705
11710
|
}
|
|
11706
|
-
const r = yield v(ce), i = yield v(st), { submissionId: o } = yield*
|
|
11711
|
+
const r = yield v(ce), i = yield v(st), { submissionId: o } = yield* Xt();
|
|
11707
11712
|
yield g(
|
|
11708
11713
|
se(
|
|
11709
11714
|
ft(
|
|
@@ -11753,8 +11758,8 @@ function* NC({ payload: e }) {
|
|
|
11753
11758
|
)).map((c) => c.id).includes(r.id)) {
|
|
11754
11759
|
const { userId: c } = yield v(be);
|
|
11755
11760
|
yield E(
|
|
11756
|
-
|
|
11757
|
-
|
|
11761
|
+
De,
|
|
11762
|
+
Ie,
|
|
11758
11763
|
`${Yo}${r.id}`
|
|
11759
11764
|
), yield g(ir(c, { _showChecklist: r.id }));
|
|
11760
11765
|
}
|
|
@@ -11785,17 +11790,17 @@ function* OC() {
|
|
|
11785
11790
|
const n = yield v(nt);
|
|
11786
11791
|
if (n && ne.defined(n.id)) {
|
|
11787
11792
|
const r = yield v(ce), i = ct(n, r);
|
|
11788
|
-
i && (yield*
|
|
11789
|
-
|
|
11793
|
+
i && (yield* Ht(n, i)), yield g(
|
|
11794
|
+
zt(
|
|
11790
11795
|
n.id,
|
|
11791
|
-
|
|
11796
|
+
wt.SHOWING_OTHER_CONTENT
|
|
11792
11797
|
)
|
|
11793
11798
|
);
|
|
11794
11799
|
}
|
|
11795
11800
|
}
|
|
11796
11801
|
}
|
|
11797
11802
|
function* RC() {
|
|
11798
|
-
if (yield v(
|
|
11803
|
+
if (yield v(En)) {
|
|
11799
11804
|
(yield v(ye)).type === z.HOTSPOTS || (yield g(Fi()), yield g(Lu()));
|
|
11800
11805
|
const r = yield v(ns), i = yield v(vf);
|
|
11801
11806
|
if (r && !i[r]) {
|
|
@@ -11804,7 +11809,7 @@ function* RC() {
|
|
|
11804
11809
|
const s = yield v(dt);
|
|
11805
11810
|
o = yield E($S, s, r);
|
|
11806
11811
|
} catch (s) {
|
|
11807
|
-
const c = yield v(
|
|
11812
|
+
const c = yield v(Mt);
|
|
11808
11813
|
yield E(c, s.message, { extra: s.extra });
|
|
11809
11814
|
}
|
|
11810
11815
|
o && (yield g(Sm({ [r]: o })));
|
|
@@ -11820,7 +11825,7 @@ function* LC() {
|
|
|
11820
11825
|
const { _localId: n } = e;
|
|
11821
11826
|
yield g(
|
|
11822
11827
|
ir(`anon:${n}`, { _isAnonymous: !0 }, [
|
|
11823
|
-
|
|
11828
|
+
Jt(Cn.PAGE_VIEW, { url: window.location.href })
|
|
11824
11829
|
])
|
|
11825
11830
|
);
|
|
11826
11831
|
}
|
|
@@ -11836,7 +11841,7 @@ function* xC({ payload: e }) {
|
|
|
11836
11841
|
yield E(e, n);
|
|
11837
11842
|
}
|
|
11838
11843
|
function* PC({ payload: e }) {
|
|
11839
|
-
const t = yield v(
|
|
11844
|
+
const t = yield v(ii, e);
|
|
11840
11845
|
t && t.length > 0 && (yield g(wm(e)), yield t.map((n) => ot(n)));
|
|
11841
11846
|
}
|
|
11842
11847
|
function DC(e) {
|
|
@@ -11847,15 +11852,15 @@ function FC(e, t) {
|
|
|
11847
11852
|
}
|
|
11848
11853
|
function* UC() {
|
|
11849
11854
|
const e = yield v(nt), t = yield v(ce), n = ct(e, t);
|
|
11850
|
-
yield g(
|
|
11851
|
-
|
|
11855
|
+
yield g(vr()), yield E(Ht, e, n), yield g(
|
|
11856
|
+
zt(e.id, wt.CLEAR)
|
|
11852
11857
|
);
|
|
11853
11858
|
}
|
|
11854
11859
|
function* HC(e) {
|
|
11855
|
-
const { currentUrl: t, shouldOverrideCurrentFlow: n, requestId: r } = e.payload, i = yield v(Af), o = yield v(Ve), s = yield v(
|
|
11860
|
+
const { currentUrl: t, shouldOverrideCurrentFlow: n, requestId: r } = e.payload, i = yield v(Af), o = yield v(Ve), s = yield v(En);
|
|
11856
11861
|
if (!(!i || i.length === 0) && (DC(o) || FC(o, n))) {
|
|
11857
11862
|
let c = !0;
|
|
11858
|
-
const l = yield v(
|
|
11863
|
+
const l = yield v(Rr);
|
|
11859
11864
|
for (const u of i) {
|
|
11860
11865
|
const d = l[u];
|
|
11861
11866
|
if (s === d.id)
|
|
@@ -11913,8 +11918,8 @@ function* MC() {
|
|
|
11913
11918
|
});
|
|
11914
11919
|
if (!d.imm)
|
|
11915
11920
|
return;
|
|
11916
|
-
const f = yield v(ts, d.imm.payload), p =
|
|
11917
|
-
if (
|
|
11921
|
+
const f = yield v(ts, d.imm.payload), p = Dt(f, 0);
|
|
11922
|
+
if (on(p) || Or(p) || (yield W(
|
|
11918
11923
|
U.WILL_SHOW_CONTENT
|
|
11919
11924
|
)).error)
|
|
11920
11925
|
return;
|
|
@@ -11937,11 +11942,11 @@ function* MC() {
|
|
|
11937
11942
|
}
|
|
11938
11943
|
function* $C() {
|
|
11939
11944
|
const e = JSON.parse(
|
|
11940
|
-
yield E(Re,
|
|
11945
|
+
yield E(Re, Ie, li)
|
|
11941
11946
|
);
|
|
11942
11947
|
if (e) {
|
|
11943
11948
|
const { checklistId: t, itemId: n, actionIndex: r, checklist: i } = e;
|
|
11944
|
-
yield E(
|
|
11949
|
+
yield E(De, Ie, li), yield g(
|
|
11945
11950
|
_u(t, n, r + 1, i)
|
|
11946
11951
|
);
|
|
11947
11952
|
}
|
|
@@ -11950,10 +11955,10 @@ function* $C() {
|
|
|
11950
11955
|
function* BC() {
|
|
11951
11956
|
const e = yield W($.START_INITIALIZE);
|
|
11952
11957
|
if (!(yield E(Mi))) {
|
|
11953
|
-
const n = yield E(Re,
|
|
11958
|
+
const n = yield E(Re, Fe, Ko);
|
|
11954
11959
|
n !== null && (yield g(
|
|
11955
11960
|
ir(n, {}, [
|
|
11956
|
-
|
|
11961
|
+
Jt(Cn.PAGE_VIEW, { url: window.location.href })
|
|
11957
11962
|
])
|
|
11958
11963
|
));
|
|
11959
11964
|
const r = yield E(
|
|
@@ -11976,10 +11981,10 @@ function* VC({ payload: { groupId: e, groupProperties: t } }) {
|
|
|
11976
11981
|
...t,
|
|
11977
11982
|
...ju()
|
|
11978
11983
|
};
|
|
11979
|
-
yield g(om(e, n)), yield E(He,
|
|
11984
|
+
yield g(om(e, n)), yield E(He, Fe, Si, e), yield g(Fm({ groupId: e, groupProps: n }));
|
|
11980
11985
|
}
|
|
11981
11986
|
function* WC({ payload: e }) {
|
|
11982
|
-
const t = yield v(
|
|
11987
|
+
const t = yield v(Rr);
|
|
11983
11988
|
if (Object.prototype.hasOwnProperty.call(t, e)) return;
|
|
11984
11989
|
const n = yield v(dt), r = yield E(Nu, n, e);
|
|
11985
11990
|
yield g(
|
|
@@ -12054,7 +12059,7 @@ function ed(e, t) {
|
|
|
12054
12059
|
function jC(e, t) {
|
|
12055
12060
|
try {
|
|
12056
12061
|
return !e.includes("|shadow-root|") && !e.includes("|iframe|") && (t.matches ? t.matches(e) : t.msMatchesSelector(e)) ? t : lt(
|
|
12057
|
-
|
|
12062
|
+
wi(e),
|
|
12058
12063
|
(n) => n.contains(t)
|
|
12059
12064
|
);
|
|
12060
12065
|
} catch {
|
|
@@ -12077,13 +12082,13 @@ function xs({ events: e, matchSelector: t }) {
|
|
|
12077
12082
|
try {
|
|
12078
12083
|
return e.flatMap((n) => n.targets).filter(({ selector: n }) => t(n.selector)).flatMap(({ selector: n }) => {
|
|
12079
12084
|
const { selector: r, text_filter: i } = n;
|
|
12080
|
-
return
|
|
12085
|
+
return wi(r).filter((o) => Zu(o, i) && ed(o, n));
|
|
12081
12086
|
});
|
|
12082
12087
|
} catch {
|
|
12083
12088
|
return [];
|
|
12084
12089
|
}
|
|
12085
12090
|
}
|
|
12086
|
-
function
|
|
12091
|
+
function Ei(e) {
|
|
12087
12092
|
return e.composedPath ? e.composedPath() : [e.target];
|
|
12088
12093
|
}
|
|
12089
12094
|
function qC({
|
|
@@ -12094,7 +12099,7 @@ function qC({
|
|
|
12094
12099
|
const r = e.filter(
|
|
12095
12100
|
({ targets: s }) => s.some(({ event: c }) => c === "click")
|
|
12096
12101
|
), i = (s) => {
|
|
12097
|
-
const [c] =
|
|
12102
|
+
const [c] = Ei(s), l = Ls({
|
|
12098
12103
|
events: r,
|
|
12099
12104
|
$element: c,
|
|
12100
12105
|
eventType: "click"
|
|
@@ -12126,7 +12131,7 @@ function YC({ events: e, onEventsTriggered: t }) {
|
|
|
12126
12131
|
);
|
|
12127
12132
|
let r = [];
|
|
12128
12133
|
const i = (s) => {
|
|
12129
|
-
const [c] =
|
|
12134
|
+
const [c] = Ei(s), u = Ls({
|
|
12130
12135
|
events: n,
|
|
12131
12136
|
$element: c,
|
|
12132
12137
|
eventType: "input"
|
|
@@ -12167,7 +12172,7 @@ function zC({ events: e, onEventsTriggered: t }) {
|
|
|
12167
12172
|
const n = e.filter(
|
|
12168
12173
|
({ targets: o }) => o.some(({ event: s }) => s === "hover")
|
|
12169
12174
|
), r = /* @__PURE__ */ new Set(), i = (o) => {
|
|
12170
|
-
const [s] =
|
|
12175
|
+
const [s] = Ei(o), c = Ls({
|
|
12171
12176
|
events: n,
|
|
12172
12177
|
$element: s,
|
|
12173
12178
|
eventType: "hover"
|
|
@@ -12179,7 +12184,7 @@ function zC({ events: e, onEventsTriggered: t }) {
|
|
|
12179
12184
|
const f = window.setTimeout(() => {
|
|
12180
12185
|
t(u);
|
|
12181
12186
|
}, 500), p = (y) => {
|
|
12182
|
-
const [h] =
|
|
12187
|
+
const [h] = Ei(y);
|
|
12183
12188
|
h === d && (window.clearTimeout(f), r.delete(d), d.removeEventListener("mouseleave", p));
|
|
12184
12189
|
};
|
|
12185
12190
|
d.addEventListener("mouseleave", p);
|
|
@@ -12236,7 +12241,7 @@ function* JC(e = [], t = !1) {
|
|
|
12236
12241
|
({ urls: o }) => o.some(
|
|
12237
12242
|
(s) => s === "*" || St(s, n)
|
|
12238
12243
|
)
|
|
12239
|
-
), i =
|
|
12244
|
+
), i = kr((o) => {
|
|
12240
12245
|
const s = qC({
|
|
12241
12246
|
events: r,
|
|
12242
12247
|
onEventsTriggered: o,
|
|
@@ -12258,7 +12263,7 @@ function* JC(e = [], t = !1) {
|
|
|
12258
12263
|
o.length > 0 && (yield g(
|
|
12259
12264
|
hT(
|
|
12260
12265
|
o.map(
|
|
12261
|
-
({ name: s, targets: [{ event: c, selector: l }] }) =>
|
|
12266
|
+
({ name: s, targets: [{ event: c, selector: l }] }) => Jt(s, {
|
|
12262
12267
|
url: n,
|
|
12263
12268
|
interaction: c,
|
|
12264
12269
|
selector: {
|
|
@@ -12272,7 +12277,7 @@ function* JC(e = [], t = !1) {
|
|
|
12272
12277
|
));
|
|
12273
12278
|
}
|
|
12274
12279
|
} finally {
|
|
12275
|
-
(yield
|
|
12280
|
+
(yield Ci()) && i.close();
|
|
12276
12281
|
}
|
|
12277
12282
|
}
|
|
12278
12283
|
function* QC(e = []) {
|
|
@@ -12300,8 +12305,8 @@ function* QC(e = []) {
|
|
|
12300
12305
|
(yield E(Mi)) || (yield W(U.INITIALIZE));
|
|
12301
12306
|
const s = yield E(
|
|
12302
12307
|
Re,
|
|
12303
|
-
|
|
12304
|
-
|
|
12308
|
+
Fe,
|
|
12309
|
+
Si
|
|
12305
12310
|
);
|
|
12306
12311
|
yield E(Os, {
|
|
12307
12312
|
properties: {},
|
|
@@ -12560,7 +12565,7 @@ function o_(e, t) {
|
|
|
12560
12565
|
}
|
|
12561
12566
|
function Tl(e, t) {
|
|
12562
12567
|
const n = { ...t, url: e };
|
|
12563
|
-
return
|
|
12568
|
+
return Jt(Cn.PAGE_VIEW, n);
|
|
12564
12569
|
}
|
|
12565
12570
|
function s_({ dispatch: e, getState: t }) {
|
|
12566
12571
|
const n = {
|
|
@@ -12569,7 +12574,7 @@ function s_({ dispatch: e, getState: t }) {
|
|
|
12569
12574
|
if (!ne.object(c)) {
|
|
12570
12575
|
c = {};
|
|
12571
12576
|
try {
|
|
12572
|
-
|
|
12577
|
+
Mt(t())(
|
|
12573
12578
|
new Error("Appcues.identify() called with invalid user properties")
|
|
12574
12579
|
);
|
|
12575
12580
|
} catch {
|
|
@@ -12579,11 +12584,11 @@ function s_({ dispatch: e, getState: t }) {
|
|
|
12579
12584
|
ir(s, c, [
|
|
12580
12585
|
Tl(window.location.href)
|
|
12581
12586
|
])
|
|
12582
|
-
) : e(
|
|
12587
|
+
) : e(Pr(c, !0));
|
|
12583
12588
|
},
|
|
12584
12589
|
track(i, o = {}) {
|
|
12585
12590
|
i && e(
|
|
12586
|
-
we({}, [
|
|
12591
|
+
we({}, [Jt(i, o)], !0)
|
|
12587
12592
|
);
|
|
12588
12593
|
},
|
|
12589
12594
|
page(i, o = {}) {
|
|
@@ -12596,7 +12601,7 @@ function s_({ dispatch: e, getState: t }) {
|
|
|
12596
12601
|
e(sm());
|
|
12597
12602
|
},
|
|
12598
12603
|
show(i) {
|
|
12599
|
-
e(
|
|
12604
|
+
e(xr(i));
|
|
12600
12605
|
},
|
|
12601
12606
|
clearShow() {
|
|
12602
12607
|
e(dS());
|
|
@@ -12627,7 +12632,7 @@ function s_({ dispatch: e, getState: t }) {
|
|
|
12627
12632
|
if (!ne.object(c)) {
|
|
12628
12633
|
c = {};
|
|
12629
12634
|
try {
|
|
12630
|
-
|
|
12635
|
+
Mt(t())(
|
|
12631
12636
|
new Error("Appcues.group() called with invalid group properties")
|
|
12632
12637
|
);
|
|
12633
12638
|
} catch {
|
|
@@ -12716,7 +12721,7 @@ function a_(e) {
|
|
|
12716
12721
|
return !!(e && e.type === z.ACTION && e.attributes.action_type === Tt.WAIT_FOR_PAGE);
|
|
12717
12722
|
}
|
|
12718
12723
|
const _l = (e, t, n) => {
|
|
12719
|
-
const r = ct(e || {}, t), i =
|
|
12724
|
+
const r = ct(e || {}, t), i = mn(r, n);
|
|
12720
12725
|
return /* @__PURE__ */ a.html("div", null, /* @__PURE__ */ a.html("div", null, `${(e || {}).name}, Step ${$n(e, t) + 1} (${c_(r || {})})${i > -1 ? `, Part ${i + 1}` : ""}`), a_(r) && l_(r) ? /* @__PURE__ */ a.html("div", null, `Page to match: ${r.attributes.params.url}`) : "");
|
|
12721
12726
|
};
|
|
12722
12727
|
function u_(e) {
|
|
@@ -12753,20 +12758,20 @@ function u_(e) {
|
|
|
12753
12758
|
},
|
|
12754
12759
|
"×"
|
|
12755
12760
|
))), /* @__PURE__ */ a.html("div", { "class-panel": !0 }, /* @__PURE__ */ a.html(
|
|
12756
|
-
|
|
12761
|
+
en,
|
|
12757
12762
|
{
|
|
12758
12763
|
status: f && f.accountId ? "check" : "alert",
|
|
12759
12764
|
category: "Installed",
|
|
12760
12765
|
description: `Account ID: ${f && f.accountId ? f.accountId : "Unknown"}`
|
|
12761
12766
|
}
|
|
12762
12767
|
), /* @__PURE__ */ a.html(
|
|
12763
|
-
|
|
12768
|
+
en,
|
|
12764
12769
|
{
|
|
12765
12770
|
status: p ? "check" : "alert",
|
|
12766
12771
|
category: `${p ? "" : "Not "}Connected to Appcues`
|
|
12767
12772
|
}
|
|
12768
12773
|
), /* @__PURE__ */ a.html(
|
|
12769
|
-
|
|
12774
|
+
en,
|
|
12770
12775
|
{
|
|
12771
12776
|
status: _ ? S ? "check" : "alert" : "pending",
|
|
12772
12777
|
category: "Tracking Pages",
|
|
@@ -12776,7 +12781,7 @@ function u_(e) {
|
|
|
12776
12781
|
details: /* @__PURE__ */ a.html("span", null, /* @__PURE__ */ a.html("b", null, "Last Tracked URL:"), /* @__PURE__ */ a.html("br", null), t, /* @__PURE__ */ a.html("br", null), /* @__PURE__ */ a.html("br", null), /* @__PURE__ */ a.html("b", null, "Current URL:"), /* @__PURE__ */ a.html("br", null), n)
|
|
12777
12782
|
}
|
|
12778
12783
|
), /* @__PURE__ */ a.html(
|
|
12779
|
-
|
|
12784
|
+
en,
|
|
12780
12785
|
{
|
|
12781
12786
|
status: A ? "check" : "alert",
|
|
12782
12787
|
category: `User ${A ? "" : "Not "}Identified`,
|
|
@@ -12789,7 +12794,7 @@ function u_(e) {
|
|
|
12789
12794
|
details: A ? /* @__PURE__ */ a.html(Il, { user: u }) : /* @__PURE__ */ a.html("span", null, "Please identify the current user by providing a userId and tracked properties")
|
|
12790
12795
|
}
|
|
12791
12796
|
), I ? /* @__PURE__ */ a.html(
|
|
12792
|
-
|
|
12797
|
+
en,
|
|
12793
12798
|
{
|
|
12794
12799
|
status: "check",
|
|
12795
12800
|
category: "Group Identified",
|
|
@@ -12799,7 +12804,7 @@ function u_(e) {
|
|
|
12799
12804
|
details: /* @__PURE__ */ a.html(Il, { user: d.groupProps })
|
|
12800
12805
|
}
|
|
12801
12806
|
) : /* @__PURE__ */ a.html(ae, null), r ? /* @__PURE__ */ a.html(
|
|
12802
|
-
|
|
12807
|
+
en,
|
|
12803
12808
|
{
|
|
12804
12809
|
status: o === "SHOWING" ? "check" : "pending",
|
|
12805
12810
|
category: "Showing Flow",
|
|
@@ -12813,7 +12818,7 @@ function u_(e) {
|
|
|
12813
12818
|
)
|
|
12814
12819
|
}
|
|
12815
12820
|
) : /* @__PURE__ */ a.html(ae, null), C.length > 0 ? /* @__PURE__ */ a.html(
|
|
12816
|
-
|
|
12821
|
+
en,
|
|
12817
12822
|
{
|
|
12818
12823
|
status: "warn",
|
|
12819
12824
|
category: "Content Omitted",
|
|
@@ -12838,7 +12843,7 @@ function u_(e) {
|
|
|
12838
12843
|
/* @__PURE__ */ a.html("div", { "class-launch-diagnostics": !0 }, O ? "View Flow Eligibility for User" : "Identify User to View Flow Eligibility")
|
|
12839
12844
|
)));
|
|
12840
12845
|
}
|
|
12841
|
-
function
|
|
12846
|
+
function en({
|
|
12842
12847
|
status: e,
|
|
12843
12848
|
active: t,
|
|
12844
12849
|
category: n,
|
|
@@ -12869,7 +12874,7 @@ function Il({ user: e }) {
|
|
|
12869
12874
|
};
|
|
12870
12875
|
return /* @__PURE__ */ a.html("table", null, /* @__PURE__ */ a.html("thead", null, /* @__PURE__ */ a.html("tr", null, /* @__PURE__ */ a.html("th", null, "Property"), /* @__PURE__ */ a.html("th", null, "Value"))), /* @__PURE__ */ a.html("tbody", null, n.sort(r).map((i) => /* @__PURE__ */ a.html("tr", null, /* @__PURE__ */ a.html("td", null, i.name), /* @__PURE__ */ a.html("td", null, JSON.stringify(i.value))))));
|
|
12871
12876
|
}
|
|
12872
|
-
const d_ = "/generic/main/7.
|
|
12877
|
+
const d_ = "/generic/main/7.11.1/debugger.a78f4df397e3b099a535f68c857dd828db518b74.css", f_ = "sha256-LMjol9lu4iFfr9P6lIri9GX+onG7x+pqiR+EzoaK2sU=", p_ = $t(d_), ho = Jn(
|
|
12873
12878
|
[
|
|
12874
12879
|
tr,
|
|
12875
12880
|
er,
|
|
@@ -12877,14 +12882,14 @@ const d_ = "/generic/main/7.8.0/debugger.52175bcd669743890b973ef6e81a2996cf849c5
|
|
|
12877
12882
|
Zn,
|
|
12878
12883
|
nr
|
|
12879
12884
|
],
|
|
12880
|
-
|
|
12885
|
+
bi.createApi({
|
|
12881
12886
|
clean: !0,
|
|
12882
12887
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
12883
12888
|
})
|
|
12884
12889
|
);
|
|
12885
|
-
let
|
|
12890
|
+
let tn = null;
|
|
12886
12891
|
const h_ = (e) => {
|
|
12887
|
-
const t =
|
|
12892
|
+
const t = Rr(e) || {}, n = Ai(e);
|
|
12888
12893
|
return Object.keys(n || {}).reduce(
|
|
12889
12894
|
(r, i) => {
|
|
12890
12895
|
const o = pf(t, i);
|
|
@@ -12922,12 +12927,12 @@ const h_ = (e) => {
|
|
|
12922
12927
|
function E_(e) {
|
|
12923
12928
|
if (Ar(document)) {
|
|
12924
12929
|
const t = e.views.callbacks[z.DEBUGGER], n = Ta(e), r = n && n.isCollapsed;
|
|
12925
|
-
if (!
|
|
12930
|
+
if (!tn) {
|
|
12926
12931
|
const i = document.createElement("appcues-debugger");
|
|
12927
|
-
document.body.appendChild(i),
|
|
12932
|
+
document.body.appendChild(i), tn = ho(i, /* @__PURE__ */ a.html("appcues-debugger", null));
|
|
12928
12933
|
}
|
|
12929
|
-
Xn(e) && t ?
|
|
12930
|
-
|
|
12934
|
+
Xn(e) && t ? tn = ho(
|
|
12935
|
+
tn,
|
|
12931
12936
|
/* @__PURE__ */ a.html("appcues-debugger", { classNames: r ? "collapsed" : "expanded" }, /* @__PURE__ */ a.html(
|
|
12932
12937
|
"iframe",
|
|
12933
12938
|
{
|
|
@@ -12949,7 +12954,7 @@ function E_(e) {
|
|
|
12949
12954
|
),
|
|
12950
12955
|
m_(e, t)
|
|
12951
12956
|
))
|
|
12952
|
-
) :
|
|
12957
|
+
) : tn && (tn = ho(tn, /* @__PURE__ */ a.html("div", null)));
|
|
12953
12958
|
}
|
|
12954
12959
|
}
|
|
12955
12960
|
const g_ = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", y_ = (e) => {
|
|
@@ -12973,7 +12978,7 @@ const g_ = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", y_ = (
|
|
|
12973
12978
|
},
|
|
12974
12979
|
"Restart"
|
|
12975
12980
|
), /* @__PURE__ */ a.html("div", { "class-clickable": !0, "on-click": t.onCancelClicked }, "End Test"))));
|
|
12976
|
-
}, S_ = "/generic/main/7.
|
|
12981
|
+
}, S_ = "/generic/main/7.11.1/test-mode.a78f4df397e3b099a535f68c857dd828db518b74.css", T_ = "sha256-nd0yl8XfotWCT+9jaAUZdIayDPvnbBNhrvbhzXcWLNs=", C_ = $t(S_), mo = Jn(
|
|
12977
12982
|
[
|
|
12978
12983
|
tr,
|
|
12979
12984
|
er,
|
|
@@ -12981,21 +12986,21 @@ const g_ = "https://docs.appcues.com/user-experiences-faq/faq-test-mode", y_ = (
|
|
|
12981
12986
|
Zn,
|
|
12982
12987
|
nr
|
|
12983
12988
|
],
|
|
12984
|
-
|
|
12989
|
+
bi.createApi({
|
|
12985
12990
|
clean: !0,
|
|
12986
12991
|
trustedTypesPolicy: window.trustedTypes?.defaultPolicy
|
|
12987
12992
|
})
|
|
12988
12993
|
);
|
|
12989
|
-
let
|
|
12994
|
+
let nn = null;
|
|
12990
12995
|
function __(e) {
|
|
12991
12996
|
if (Ar(document)) {
|
|
12992
12997
|
const t = e.views && e.views.callbacks && e.views.callbacks[z.TEST_MODE], { _testContentId: n } = e.user || {}, r = n, i = e.test && e.test.cssLoaded;
|
|
12993
|
-
if (!
|
|
12998
|
+
if (!nn) {
|
|
12994
12999
|
const o = document.createElement("appcues-test-banner");
|
|
12995
|
-
document.body.appendChild(o),
|
|
13000
|
+
document.body.appendChild(o), nn = mo(o, /* @__PURE__ */ a.html("appcues-test-banner", null));
|
|
12996
13001
|
}
|
|
12997
|
-
r && t ?
|
|
12998
|
-
|
|
13002
|
+
r && t ? nn = mo(
|
|
13003
|
+
nn,
|
|
12999
13004
|
/* @__PURE__ */ a.html("div", { "class-appcues": !0 }, /* @__PURE__ */ a.html(
|
|
13000
13005
|
"appcues-test-banner",
|
|
13001
13006
|
{
|
|
@@ -13026,7 +13031,7 @@ function __(e) {
|
|
|
13026
13031
|
i ? /* @__PURE__ */ a.html(y_, { testModeCallbacks: t }) : /* @__PURE__ */ a.html(ae, null)
|
|
13027
13032
|
)
|
|
13028
13033
|
))
|
|
13029
|
-
) :
|
|
13034
|
+
) : nn && (nn = mo(nn, /* @__PURE__ */ a.html("div", null)));
|
|
13030
13035
|
}
|
|
13031
13036
|
}
|
|
13032
13037
|
function I_(e) {
|
|
@@ -13110,8 +13115,8 @@ function* w_({ payload: e }) {
|
|
|
13110
13115
|
}
|
|
13111
13116
|
function* N_() {
|
|
13112
13117
|
yield E(ve, 1e4);
|
|
13113
|
-
const e = yield*
|
|
13114
|
-
e && (delete e.navByADTT, yield*
|
|
13118
|
+
const e = yield* Xt();
|
|
13119
|
+
e && (delete e.navByADTT, yield* Ut(e));
|
|
13115
13120
|
}
|
|
13116
13121
|
function* rd({ payload: e }) {
|
|
13117
13122
|
(yield v(Bn)).length > 0 && (yield qe({
|
|
@@ -13154,13 +13159,13 @@ function* k_(e) {
|
|
|
13154
13159
|
shouldEndFlow: o
|
|
13155
13160
|
})
|
|
13156
13161
|
)
|
|
13157
|
-
), fa(n,
|
|
13158
|
-
const s = yield*
|
|
13159
|
-
yield*
|
|
13162
|
+
), fa(n, mn(n, r))) {
|
|
13163
|
+
const s = yield* Xt();
|
|
13164
|
+
yield* Ut({ ...s, navByADTT: !0 }), yield F(N_);
|
|
13160
13165
|
}
|
|
13161
13166
|
yield E(
|
|
13162
13167
|
rd,
|
|
13163
|
-
|
|
13168
|
+
si(n.id, r, { shouldEndFlow: o })
|
|
13164
13169
|
);
|
|
13165
13170
|
}
|
|
13166
13171
|
}
|
|
@@ -13206,7 +13211,7 @@ function* O_(e) {
|
|
|
13206
13211
|
}
|
|
13207
13212
|
function* R_(e) {
|
|
13208
13213
|
const { stepId: t, currentStepChildId: n, nextStepChildIndex: r } = e.payload, i = yield v(
|
|
13209
|
-
|
|
13214
|
+
Ii,
|
|
13210
13215
|
r
|
|
13211
13216
|
);
|
|
13212
13217
|
if (!i || n === i)
|
|
@@ -13234,7 +13239,7 @@ function* L_() {
|
|
|
13234
13239
|
le.ADVANCE_STEP_CHILD,
|
|
13235
13240
|
k_
|
|
13236
13241
|
),
|
|
13237
|
-
F(ee,
|
|
13242
|
+
F(ee, qt.CLOSE_LAST_HOTSPOT, rd),
|
|
13238
13243
|
F(
|
|
13239
13244
|
ee,
|
|
13240
13245
|
le.RUN_PREV_STEP_CHILD,
|
|
@@ -13294,7 +13299,7 @@ function* U_() {
|
|
|
13294
13299
|
he.SET_ANNOTATIONS_POSITIONS,
|
|
13295
13300
|
F_
|
|
13296
13301
|
);
|
|
13297
|
-
yield W(Ge.CLOSE_DEBUGGER), yield ot(n), yield ot(r), yield ot(i), yield ot(o), yield E(
|
|
13302
|
+
yield W(Ge.CLOSE_DEBUGGER), yield ot(n), yield ot(r), yield ot(i), yield ot(o), yield E(De, "localStorage", Gi);
|
|
13298
13303
|
}
|
|
13299
13304
|
}
|
|
13300
13305
|
function* H_() {
|
|
@@ -13330,11 +13335,11 @@ function* M_({ payload: e }) {
|
|
|
13330
13335
|
wait: W(U.SENT_ACTIVITY_UPDATE),
|
|
13331
13336
|
cancel: E(ve, 1500)
|
|
13332
13337
|
});
|
|
13333
|
-
const o = yield v(
|
|
13338
|
+
const o = yield v(En);
|
|
13334
13339
|
yield qe({
|
|
13335
|
-
wait: E(
|
|
13340
|
+
wait: E(mi, o),
|
|
13336
13341
|
cancel: E(ve, qo)
|
|
13337
|
-
}), yield E(
|
|
13342
|
+
}), yield E(Yt, window, n, r);
|
|
13338
13343
|
}
|
|
13339
13344
|
break;
|
|
13340
13345
|
}
|
|
@@ -13345,7 +13350,7 @@ function* M_({ payload: e }) {
|
|
|
13345
13350
|
function* $_({ payload: { action: e, status: t } }) {
|
|
13346
13351
|
switch (e.attributes.action_type) {
|
|
13347
13352
|
case Tt.WAIT_FOR_PAGE: {
|
|
13348
|
-
const n = window.location.href, { url: r } = e.attributes.params, i = yield*
|
|
13353
|
+
const n = window.location.href, { url: r } = e.attributes.params, i = yield* Xt(), o = yield v(es), s = St(
|
|
13349
13354
|
r,
|
|
13350
13355
|
o.url
|
|
13351
13356
|
), c = St(o.url, n), l = t === Y.STEP_SHOWN || s && c, u = t === Y.STEP_ATTEMPTED && i && i.remainingPagesToCheck !== jo;
|
|
@@ -13401,40 +13406,40 @@ function* B_({
|
|
|
13401
13406
|
)
|
|
13402
13407
|
);
|
|
13403
13408
|
else {
|
|
13404
|
-
const c = yield v(
|
|
13409
|
+
const c = yield v(En);
|
|
13405
13410
|
yield qe({
|
|
13406
13411
|
wait: pt([
|
|
13407
|
-
E(
|
|
13408
|
-
E(
|
|
13412
|
+
E(mi, c),
|
|
13413
|
+
E(mi, t)
|
|
13409
13414
|
]),
|
|
13410
13415
|
cancel: E(ve, qo)
|
|
13411
13416
|
});
|
|
13412
|
-
const l = yield v(
|
|
13417
|
+
const l = yield v(yn, t);
|
|
13413
13418
|
yield E(
|
|
13414
13419
|
He,
|
|
13415
|
-
|
|
13416
|
-
|
|
13420
|
+
Ie,
|
|
13421
|
+
li,
|
|
13417
13422
|
JSON.stringify({
|
|
13418
13423
|
checklistId: t,
|
|
13419
13424
|
itemId: n,
|
|
13420
13425
|
actionIndex: r,
|
|
13421
13426
|
checklist: l
|
|
13422
13427
|
})
|
|
13423
|
-
), yield E(
|
|
13428
|
+
), yield E(Yt, window, o, s), yield E(od, o, function* () {
|
|
13424
13429
|
yield g(
|
|
13425
13430
|
ao(
|
|
13426
13431
|
t,
|
|
13427
13432
|
n,
|
|
13428
13433
|
r
|
|
13429
13434
|
)
|
|
13430
|
-
), yield E(
|
|
13435
|
+
), yield E(De, Ie, li);
|
|
13431
13436
|
});
|
|
13432
13437
|
}
|
|
13433
13438
|
break;
|
|
13434
13439
|
}
|
|
13435
13440
|
case Tt.SHOW_FLOW: {
|
|
13436
13441
|
const { flowId: i } = e.attributes.params;
|
|
13437
|
-
i && (yield g(
|
|
13442
|
+
i && (yield g(xr(i))), yield g(
|
|
13438
13443
|
ao(
|
|
13439
13444
|
t,
|
|
13440
13445
|
n,
|
|
@@ -13465,7 +13470,7 @@ function* j_() {
|
|
|
13465
13470
|
(yield v(zn)) === z.SATISFACTION_SURVEY && (yield v(Ve)) === te.STARTED && (yield g(zy()));
|
|
13466
13471
|
}
|
|
13467
13472
|
function* q_(e) {
|
|
13468
|
-
const { score: t } = e.payload, n = yield v(nt), r = yield v(
|
|
13473
|
+
const { score: t } = e.payload, n = yield v(nt), r = yield v(Ot), o = ht(n, r, {
|
|
13469
13474
|
score: t,
|
|
13470
13475
|
name: "NPS Score",
|
|
13471
13476
|
id: "nps_score"
|
|
@@ -13482,7 +13487,7 @@ function* q_(e) {
|
|
|
13482
13487
|
);
|
|
13483
13488
|
}
|
|
13484
13489
|
function* K_(e) {
|
|
13485
|
-
const { feedback: t } = e.payload, n = yield v(nt), r = yield v(
|
|
13490
|
+
const { feedback: t } = e.payload, n = yield v(nt), r = yield v(Ot), i = ht(n, r, {
|
|
13486
13491
|
feedback: t,
|
|
13487
13492
|
name: "NPS Feedback",
|
|
13488
13493
|
id: "nps_feedback"
|
|
@@ -13501,7 +13506,7 @@ function* K_(e) {
|
|
|
13501
13506
|
function* Y_() {
|
|
13502
13507
|
const e = {}, t = `${Hn}ClickedUpdateNPSScore`;
|
|
13503
13508
|
e[t] = Date.now();
|
|
13504
|
-
const n = yield v(nt), r = yield v(
|
|
13509
|
+
const n = yield v(nt), r = yield v(Ot), i = ht(n, r, {
|
|
13505
13510
|
clickedUpdateNPSScore: e[t],
|
|
13506
13511
|
name: "NPS Clicked Update NPS Score",
|
|
13507
13512
|
id: "nps_clicked_update_nps_score"
|
|
@@ -13511,7 +13516,7 @@ function* Y_() {
|
|
|
13511
13516
|
function* z_() {
|
|
13512
13517
|
const e = {}, t = `${Hn}AskMeLaterSelectedAt`;
|
|
13513
13518
|
e[t] = Date.now();
|
|
13514
|
-
const n = yield v(nt), r = yield v(
|
|
13519
|
+
const n = yield v(nt), r = yield v(Ot), i = ht(n, r, {
|
|
13515
13520
|
askMeLaterSelectedAt: e[t],
|
|
13516
13521
|
name: "NPS Ask Me Later Selected At",
|
|
13517
13522
|
id: "nps_ask_me_later_selected_at"
|
|
@@ -13525,27 +13530,27 @@ function* J_() {
|
|
|
13525
13530
|
yield [
|
|
13526
13531
|
F(
|
|
13527
13532
|
ee,
|
|
13528
|
-
|
|
13533
|
+
Ae.QUANTITATIVE_QUESTION_SUBMITTED,
|
|
13529
13534
|
q_
|
|
13530
13535
|
),
|
|
13531
13536
|
F(
|
|
13532
13537
|
ee,
|
|
13533
|
-
|
|
13538
|
+
Ae.QUALITATIVE_QUESTION_SUBMITTED,
|
|
13534
13539
|
K_
|
|
13535
13540
|
),
|
|
13536
13541
|
F(
|
|
13537
13542
|
ee,
|
|
13538
|
-
|
|
13543
|
+
Ae.ASK_ME_LATER_SELECTED,
|
|
13539
13544
|
z_
|
|
13540
13545
|
),
|
|
13541
13546
|
F(
|
|
13542
13547
|
ee,
|
|
13543
|
-
|
|
13548
|
+
Ae.CLICKED_UPDATE_NPS_SCORE,
|
|
13544
13549
|
Y_
|
|
13545
13550
|
),
|
|
13546
13551
|
F(
|
|
13547
13552
|
ee,
|
|
13548
|
-
|
|
13553
|
+
Ae.START_COLLAPSING_SATISFACTION_SURVEY,
|
|
13549
13554
|
X_
|
|
13550
13555
|
),
|
|
13551
13556
|
F(ee, $.START_CONTENT, j_)
|
|
@@ -13556,7 +13561,7 @@ function* Mo(e) {
|
|
|
13556
13561
|
(r) => r.type === re.LOADED_CHECKLIST_CSS && e.id
|
|
13557
13562
|
);
|
|
13558
13563
|
const t = yield v(ye);
|
|
13559
|
-
yield t && t.type !== z.HOTSPOTS ? g(Fi()) : g(Sn(e.id, te.SHOWING)), (e.attributes && e.attributes.progress_state) !== Rn.COMPLETED && (yield g(
|
|
13564
|
+
yield t && t.type !== z.HOTSPOTS ? g(Fi()) : g(Sn(e.id, te.SHOWING)), (e.attributes && e.attributes.progress_state) !== Rn.COMPLETED && (yield g(fn(e.id)));
|
|
13560
13565
|
}
|
|
13561
13566
|
function* Q_({ payload: e }) {
|
|
13562
13567
|
const { open_behavior: t } = e;
|
|
@@ -13572,20 +13577,20 @@ function* Q_({ payload: e }) {
|
|
|
13572
13577
|
case ji.OPEN_ONCE:
|
|
13573
13578
|
default: {
|
|
13574
13579
|
const n = `${Yo}${e.id}`;
|
|
13575
|
-
Re(
|
|
13580
|
+
Re(Ie, n) ? yield E(Mo, e) : (He(Ie, n, "1"), yield g(cl(e)));
|
|
13576
13581
|
break;
|
|
13577
13582
|
}
|
|
13578
13583
|
}
|
|
13579
13584
|
}
|
|
13580
13585
|
function* Z_({ payload: e }) {
|
|
13581
|
-
yield E(Mo, e), yield E(ve, 1e3), yield g(
|
|
13586
|
+
yield E(Mo, e), yield E(ve, 1e3), yield g(Ur(e.id)), yield g(Iu(e));
|
|
13582
13587
|
}
|
|
13583
13588
|
function* eI(e) {
|
|
13584
|
-
const { checklist: t } = e.payload, n = yield v(
|
|
13589
|
+
const { checklist: t } = e.payload, n = yield v(Ot), r = kE(t, n);
|
|
13585
13590
|
yield g(Ue(t.id, r)), yield g(we(null, [Be(r)], !1));
|
|
13586
13591
|
}
|
|
13587
13592
|
function* tI(e) {
|
|
13588
|
-
const { checklistId: t, didCompleteChecklist: n } = e.payload, r = yield v(
|
|
13593
|
+
const { checklistId: t, didCompleteChecklist: n } = e.payload, r = yield v(Ot), i = yield v(yn, t);
|
|
13589
13594
|
yield g(Sn(i.id, te.DISMISSED));
|
|
13590
13595
|
const o = n ? LE(i, r) : RE(i, r);
|
|
13591
13596
|
yield g(Ue(o.checklistId, o)), yield g(we({}, [Be(o)], !1));
|
|
@@ -13596,10 +13601,10 @@ function* nI() {
|
|
|
13596
13601
|
}
|
|
13597
13602
|
function* rI(e) {
|
|
13598
13603
|
const { checklistId: t, itemId: n, actionIndex: r } = e.payload;
|
|
13599
|
-
yield g(
|
|
13600
|
-
const i = yield v(
|
|
13604
|
+
yield g(fn(t));
|
|
13605
|
+
const i = yield v(Ot);
|
|
13601
13606
|
let o, s;
|
|
13602
|
-
if (o = yield v(
|
|
13607
|
+
if (o = yield v(yn, t), s = yield v(Df, t, n), s || (o = e.payload.checklist, s = yield E(
|
|
13603
13608
|
lt,
|
|
13604
13609
|
o.attributes.items,
|
|
13605
13610
|
({ id: c }) => c === n
|
|
@@ -13624,7 +13629,7 @@ function* rI(e) {
|
|
|
13624
13629
|
);
|
|
13625
13630
|
}
|
|
13626
13631
|
function* iI() {
|
|
13627
|
-
const e = yield v(
|
|
13632
|
+
const e = yield v(gn);
|
|
13628
13633
|
e.length > 0 && (yield pt(
|
|
13629
13634
|
e.filter((t) => go.includes(t.status)).map((t) => g(Sn(t.id, te.HIDING)))
|
|
13630
13635
|
));
|
|
@@ -13640,7 +13645,7 @@ function* oI() {
|
|
|
13640
13645
|
)
|
|
13641
13646
|
), yield g(
|
|
13642
13647
|
Sn(e[0].id, te.SHOWING)
|
|
13643
|
-
), e[0].shouldTryExpandChecklist && (yield g(
|
|
13648
|
+
), e[0].shouldTryExpandChecklist && (yield g(Ur(e[0].id)), yield g(Tu(e[0].id, !1))));
|
|
13644
13649
|
}
|
|
13645
13650
|
function* sI() {
|
|
13646
13651
|
yield [
|
|
@@ -13679,7 +13684,7 @@ function* sI() {
|
|
|
13679
13684
|
];
|
|
13680
13685
|
}
|
|
13681
13686
|
function* cI({ payload: e }) {
|
|
13682
|
-
const { type: t, event: n } = e, r = yield v(
|
|
13687
|
+
const { type: t, event: n } = e, r = yield v(Ot), i = { ...n, sessionId: r };
|
|
13683
13688
|
yield g(Ue(t, i));
|
|
13684
13689
|
}
|
|
13685
13690
|
function* lI() {
|
|
@@ -13692,7 +13697,7 @@ function* lI() {
|
|
|
13692
13697
|
];
|
|
13693
13698
|
}
|
|
13694
13699
|
function aI() {
|
|
13695
|
-
const e = Re(
|
|
13700
|
+
const e = Re(Ie, ln);
|
|
13696
13701
|
let t;
|
|
13697
13702
|
if (e)
|
|
13698
13703
|
try {
|
|
@@ -13706,12 +13711,12 @@ function aI() {
|
|
|
13706
13711
|
_testContentUrl: r,
|
|
13707
13712
|
...i
|
|
13708
13713
|
} = t;
|
|
13709
|
-
return
|
|
13714
|
+
return De(Ie, ln), De(Ie, yo), He(Ie, ln, JSON.stringify(i)), { _testContentId: null };
|
|
13710
13715
|
}
|
|
13711
13716
|
return {};
|
|
13712
13717
|
}
|
|
13713
13718
|
function uI() {
|
|
13714
|
-
const e = Re(
|
|
13719
|
+
const e = Re(Ie, ln);
|
|
13715
13720
|
let t;
|
|
13716
13721
|
if (e)
|
|
13717
13722
|
try {
|
|
@@ -13727,16 +13732,16 @@ function uI() {
|
|
|
13727
13732
|
}
|
|
13728
13733
|
function* dI() {
|
|
13729
13734
|
const e = aI();
|
|
13730
|
-
yield g(
|
|
13735
|
+
yield g(Pr(e, !0)), yield E(Os, e, [], !1);
|
|
13731
13736
|
const t = Tn(
|
|
13732
13737
|
window.location.href,
|
|
13733
13738
|
"appcuesTestContentId"
|
|
13734
13739
|
);
|
|
13735
|
-
yield E(
|
|
13740
|
+
yield E(Yt, window, t);
|
|
13736
13741
|
}
|
|
13737
13742
|
function* fI() {
|
|
13738
13743
|
const e = uI();
|
|
13739
|
-
yield E(
|
|
13744
|
+
yield E(Yt, window, e);
|
|
13740
13745
|
}
|
|
13741
13746
|
function* pI() {
|
|
13742
13747
|
yield [
|
|
@@ -13746,7 +13751,7 @@ function* pI() {
|
|
|
13746
13751
|
}
|
|
13747
13752
|
function* hI(e) {
|
|
13748
13753
|
if (e.checklists && e.checklists.length > 0) {
|
|
13749
|
-
const t = yield v(
|
|
13754
|
+
const t = yield v(Ot), n = [], i = ((yield v(gn)) || []).reduce((d, f) => ({
|
|
13750
13755
|
...d,
|
|
13751
13756
|
[f.id]: f
|
|
13752
13757
|
}), {}), o = e.checklists.map(({ checklist: d, state: f }) => {
|
|
@@ -13794,7 +13799,7 @@ function* hI(e) {
|
|
|
13794
13799
|
yield (yield v(
|
|
13795
13800
|
Ff,
|
|
13796
13801
|
d.checklistId
|
|
13797
|
-
)) === te.HIDING ? g(Tu(d.checklistId, !0)) : g(
|
|
13802
|
+
)) === te.HIDING ? g(Tu(d.checklistId, !0)) : g(Ur(d.checklistId)), yield g(Ue(d.checklistId, d.event)), yield g(
|
|
13798
13803
|
we(
|
|
13799
13804
|
{},
|
|
13800
13805
|
[Be(d.event)],
|
|
@@ -13814,7 +13819,7 @@ function* hI(e) {
|
|
|
13814
13819
|
);
|
|
13815
13820
|
d && d[f] && d[f].step_type && d[f].step_type !== z.HOTSPOTS && (yield W(re.HIDE_CHECKLISTS));
|
|
13816
13821
|
}
|
|
13817
|
-
const c = yield v(
|
|
13822
|
+
const c = yield v(gn), l = yield v(
|
|
13818
13823
|
os,
|
|
13819
13824
|
te.SHOWING
|
|
13820
13825
|
), u = l[0] && l[0].attributes && l[0].attributes.id;
|
|
@@ -13848,9 +13853,9 @@ function* mI() {
|
|
|
13848
13853
|
...p
|
|
13849
13854
|
} = s;
|
|
13850
13855
|
yield g(f === "error" ? {
|
|
13851
|
-
type:
|
|
13856
|
+
type: fi.LAUNCHPAD_SEARCH_ERROR
|
|
13852
13857
|
} : {
|
|
13853
|
-
type:
|
|
13858
|
+
type: fi.LAUNCHPAD_SEARCH_RESPONSE,
|
|
13854
13859
|
payload: p
|
|
13855
13860
|
});
|
|
13856
13861
|
} else i === $.START_HANDLE_MESSAGE && (yield F(hI, s));
|
|
@@ -13882,7 +13887,7 @@ function* mI() {
|
|
|
13882
13887
|
// v2 format
|
|
13883
13888
|
performed_qualification: A
|
|
13884
13889
|
} = y;
|
|
13885
|
-
yield g(Dm(m)), T && Object.keys(T).length > 0 && (yield g(
|
|
13890
|
+
yield g(Dm(m)), T && Object.keys(T).length > 0 && (yield g(Pr(T, !0)));
|
|
13886
13891
|
let I = _, C = h;
|
|
13887
13892
|
if (S && S.length > 0) {
|
|
13888
13893
|
const { contents: R, experiences: q } = Ns(S);
|
|
@@ -13934,7 +13939,7 @@ function gI(e) {
|
|
|
13934
13939
|
}
|
|
13935
13940
|
return e;
|
|
13936
13941
|
}
|
|
13937
|
-
var sd = "appcues:checklist_ready", cd = "appcues:checklist_close", $i = "appcues:toggle_checklist", Bi = "appcues:confirm_checklist_ready", yI = "appcues:launchpad_close", SI = "appcues:launchpad_search", TI = "appcues:launchpad_search_error", CI = "appcues:launchpad_search_response",
|
|
13942
|
+
var sd = "appcues:checklist_ready", cd = "appcues:checklist_close", $i = "appcues:toggle_checklist", Bi = "appcues:confirm_checklist_ready", yI = "appcues:launchpad_close", SI = "appcues:launchpad_search", TI = "appcues:launchpad_search_error", CI = "appcues:launchpad_search_response", Br = function(e, t) {
|
|
13938
13943
|
return window.addEventListener(e, t), function() {
|
|
13939
13944
|
return window.removeEventListener(e, t);
|
|
13940
13945
|
};
|
|
@@ -13949,12 +13954,12 @@ var sd = "appcues:checklist_ready", cd = "appcues:checklist_close", $i = "appcue
|
|
|
13949
13954
|
});
|
|
13950
13955
|
window.dispatchEvent(o);
|
|
13951
13956
|
}, oA = function(e) {
|
|
13952
|
-
return
|
|
13957
|
+
return Br(sd, e);
|
|
13953
13958
|
}, II = function() {
|
|
13954
13959
|
var e = new CustomEvent(cd);
|
|
13955
13960
|
window.dispatchEvent(e);
|
|
13956
13961
|
}, sA = function(e) {
|
|
13957
|
-
return
|
|
13962
|
+
return Br(cd, e);
|
|
13958
13963
|
}, cA = function() {
|
|
13959
13964
|
var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : "", t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1, n = new CustomEvent($i, {
|
|
13960
13965
|
detail: {
|
|
@@ -13964,17 +13969,17 @@ var sd = "appcues:checklist_ready", cd = "appcues:checklist_close", $i = "appcue
|
|
|
13964
13969
|
});
|
|
13965
13970
|
window.dispatchEvent(n);
|
|
13966
13971
|
}, AI = function(e) {
|
|
13967
|
-
return
|
|
13972
|
+
return Br($i, e);
|
|
13968
13973
|
}, lA = function() {
|
|
13969
13974
|
var e = new CustomEvent(Bi);
|
|
13970
13975
|
window.dispatchEvent(e);
|
|
13971
13976
|
}, vI = function(e) {
|
|
13972
|
-
return
|
|
13977
|
+
return Br(Bi, e);
|
|
13973
13978
|
}, bI = function() {
|
|
13974
13979
|
var e = new CustomEvent(yI);
|
|
13975
13980
|
window.dispatchEvent(e);
|
|
13976
13981
|
}, wI = function(e) {
|
|
13977
|
-
return
|
|
13982
|
+
return Br(SI, e);
|
|
13978
13983
|
}, NI = function(e, t) {
|
|
13979
13984
|
var n = new CustomEvent("".concat(CI, ":").concat(e), {
|
|
13980
13985
|
detail: gI({}, t)
|
|
@@ -13998,7 +14003,7 @@ function* kI() {
|
|
|
13998
14003
|
const t = yield v(be);
|
|
13999
14004
|
ne.defined(t.userId) || (yield W(U.COMPLETED_IDENTIFY));
|
|
14000
14005
|
let n = yield E(Al);
|
|
14001
|
-
const r =
|
|
14006
|
+
const r = kr((i) => (wI((o) => {
|
|
14002
14007
|
const { experienceId: s, integrationId: c, query: l } = o.detail;
|
|
14003
14008
|
$o.push(s), i({
|
|
14004
14009
|
type: To,
|
|
@@ -14016,7 +14021,7 @@ function* kI() {
|
|
|
14016
14021
|
ld(i);
|
|
14017
14022
|
},
|
|
14018
14023
|
n,
|
|
14019
|
-
|
|
14024
|
+
$r.UserActivity
|
|
14020
14025
|
); ; ) {
|
|
14021
14026
|
const { data: i } = yield W(r);
|
|
14022
14027
|
n = yield E(Al), yield E(FS, n, To, i);
|
|
@@ -14035,12 +14040,12 @@ function* LI() {
|
|
|
14035
14040
|
ut(kI),
|
|
14036
14041
|
F(
|
|
14037
14042
|
Ze,
|
|
14038
|
-
|
|
14043
|
+
fi.LAUNCHPAD_SEARCH_RESPONSE,
|
|
14039
14044
|
OI
|
|
14040
14045
|
),
|
|
14041
14046
|
F(
|
|
14042
14047
|
Ze,
|
|
14043
|
-
|
|
14048
|
+
fi.LAUNCHPAD_SEARCH_ERROR,
|
|
14044
14049
|
RI
|
|
14045
14050
|
)
|
|
14046
14051
|
];
|
|
@@ -14053,7 +14058,7 @@ const xI = "v2", PI = (e) => {
|
|
|
14053
14058
|
},
|
|
14054
14059
|
sendCustomEvent: (n, r) => {
|
|
14055
14060
|
const i = { ...r, id: n };
|
|
14056
|
-
e(we({}, [
|
|
14061
|
+
e(we({}, [Jt(n, i)], !0));
|
|
14057
14062
|
},
|
|
14058
14063
|
updateUserProfile: (n = {}) => {
|
|
14059
14064
|
Object.keys(n).length !== 0 && e(we(n, [], !0));
|
|
@@ -14064,16 +14069,16 @@ const xI = "v2", PI = (e) => {
|
|
|
14064
14069
|
return;
|
|
14065
14070
|
}
|
|
14066
14071
|
if (!r || St(window.location.href, r)) {
|
|
14067
|
-
e(
|
|
14072
|
+
e(xr(n));
|
|
14068
14073
|
return;
|
|
14069
14074
|
}
|
|
14070
|
-
e(pu(n)),
|
|
14075
|
+
e(pu(n)), Yt(window, r);
|
|
14071
14076
|
}
|
|
14072
14077
|
};
|
|
14073
14078
|
return window.createAppcues(t);
|
|
14074
14079
|
}, DI = async () => {
|
|
14075
14080
|
{
|
|
14076
|
-
const e = await import("./open-builder.
|
|
14081
|
+
const e = await import("./open-builder.DxQABU78.js");
|
|
14077
14082
|
window.createAppcues = e.default;
|
|
14078
14083
|
}
|
|
14079
14084
|
return PI;
|
|
@@ -14082,16 +14087,16 @@ function* FI() {
|
|
|
14082
14087
|
const e = yield Xd("dispatch"), n = (yield E(DI))(e);
|
|
14083
14088
|
yield g(Lm(n)), yield g(Pm());
|
|
14084
14089
|
}
|
|
14085
|
-
function*
|
|
14090
|
+
function* Bt() {
|
|
14086
14091
|
const e = yield v(No), t = yield v(Gf);
|
|
14087
14092
|
return t && (yield W(({ type: n }) => n === U.OPEN_BUILDER_INITIALIZED)), !e && !t && (yield g(xm()), yield W(({ type: n }) => n === U.OPEN_BUILDER_INITIALIZED)), yield v(No);
|
|
14088
14093
|
}
|
|
14089
14094
|
function* Fs({ payload: e }) {
|
|
14090
|
-
const t = yield E(
|
|
14095
|
+
const t = yield E(Bt);
|
|
14091
14096
|
t && (yield E(t.pause, e));
|
|
14092
14097
|
}
|
|
14093
14098
|
function* ad({ payload: e }) {
|
|
14094
|
-
const t = yield E(
|
|
14099
|
+
const t = yield E(Bt);
|
|
14095
14100
|
t && (yield E(t.resume, e));
|
|
14096
14101
|
}
|
|
14097
14102
|
function* ud(e, t) {
|
|
@@ -14101,7 +14106,7 @@ function* ud(e, t) {
|
|
|
14101
14106
|
Xe.EXPERIENCES
|
|
14102
14107
|
)) && t.show(e);
|
|
14103
14108
|
}
|
|
14104
|
-
function
|
|
14109
|
+
function gi(e) {
|
|
14105
14110
|
const t = {
|
|
14106
14111
|
experiences: [],
|
|
14107
14112
|
launchpads: []
|
|
@@ -14112,7 +14117,7 @@ function Ei(e) {
|
|
|
14112
14117
|
}), t;
|
|
14113
14118
|
}
|
|
14114
14119
|
function* UI({ payload: e }) {
|
|
14115
|
-
const t = yield E(
|
|
14120
|
+
const t = yield E(Bt);
|
|
14116
14121
|
let n = e;
|
|
14117
14122
|
const r = n.some(
|
|
14118
14123
|
(o) => o.type === Mn.NPS || o.type === Mn.FLOW
|
|
@@ -14120,23 +14125,23 @@ function* UI({ payload: e }) {
|
|
|
14120
14125
|
(o) => o.type === "launchpad"
|
|
14121
14126
|
);
|
|
14122
14127
|
if (i) {
|
|
14123
|
-
yield import("./index.
|
|
14128
|
+
yield import("./index.DH6u0iuG.js");
|
|
14124
14129
|
const o = yield v(ye);
|
|
14125
14130
|
if (!(o?.type === z.HOTSPOTS) && o) {
|
|
14126
|
-
const { experiences: c, launchpads: l } =
|
|
14127
|
-
n = c, yield g(
|
|
14131
|
+
const { experiences: c, launchpads: l } = gi(n);
|
|
14132
|
+
n = c, yield g(wr(l));
|
|
14128
14133
|
}
|
|
14129
14134
|
}
|
|
14130
14135
|
if (r && i) {
|
|
14131
|
-
const { experiences: o, launchpads: s } =
|
|
14132
|
-
yield g(
|
|
14136
|
+
const { experiences: o, launchpads: s } = gi(n);
|
|
14137
|
+
yield g(wr(s)), n = o;
|
|
14133
14138
|
}
|
|
14134
14139
|
r && (yield g(Fi())), yield pt(
|
|
14135
14140
|
n.map((o) => E(ud, o, t))
|
|
14136
14141
|
);
|
|
14137
14142
|
}
|
|
14138
14143
|
function* HI() {
|
|
14139
|
-
const e = yield E(
|
|
14144
|
+
const e = yield E(Bt);
|
|
14140
14145
|
e && e.stopAll();
|
|
14141
14146
|
}
|
|
14142
14147
|
function* MI(e, t) {
|
|
@@ -14145,33 +14150,33 @@ function* MI(e, t) {
|
|
|
14145
14150
|
function* $I() {
|
|
14146
14151
|
const e = yield v(qf);
|
|
14147
14152
|
if (e.length <= 0) return;
|
|
14148
|
-
const t = yield E(
|
|
14153
|
+
const t = yield E(Bt);
|
|
14149
14154
|
yield pt(
|
|
14150
14155
|
e.map((n) => E(MI, n, t))
|
|
14151
|
-
), yield g(
|
|
14156
|
+
), yield g(wr([]));
|
|
14152
14157
|
}
|
|
14153
14158
|
function* BI() {
|
|
14154
|
-
const e = yield E(
|
|
14159
|
+
const e = yield E(Bt), t = yield E(e.getRunningExperiences), { launchpads: n } = gi(t);
|
|
14155
14160
|
n.length <= 0 || (yield pt(
|
|
14156
14161
|
n.map(
|
|
14157
14162
|
(r) => E(Fs, { payload: r.id })
|
|
14158
14163
|
)
|
|
14159
|
-
), yield g(
|
|
14164
|
+
), yield g(wr(n)));
|
|
14160
14165
|
}
|
|
14161
14166
|
function* VI() {
|
|
14162
14167
|
if ((yield v(ye)).type === z.HOTSPOTS) return;
|
|
14163
|
-
const n = yield E(
|
|
14168
|
+
const n = yield E(Bt), r = yield E(n.getRunningExperiences), { launchpads: i } = gi(r);
|
|
14164
14169
|
i.length <= 0 || (yield pt(
|
|
14165
14170
|
i.map(
|
|
14166
14171
|
(o) => E(Fs, { payload: o.id })
|
|
14167
14172
|
)
|
|
14168
|
-
), yield g(
|
|
14173
|
+
), yield g(wr(i)));
|
|
14169
14174
|
}
|
|
14170
14175
|
function* WI({ payload: e }) {
|
|
14171
14176
|
const { type: t, event: n } = e, r = n.experienceType === Mn.NPS || n.experienceType === Mn.FLOW, i = Pd.includes(t);
|
|
14172
14177
|
if (r && i) {
|
|
14173
|
-
const o = yield E(
|
|
14174
|
-
yield E(o.stop, n.experienceId), yield g(
|
|
14178
|
+
const o = yield E(Bt);
|
|
14179
|
+
yield E(o.stop, n.experienceId), yield g(Nr()), yield g(br());
|
|
14175
14180
|
}
|
|
14176
14181
|
}
|
|
14177
14182
|
function* GI() {
|
|
@@ -14223,7 +14228,7 @@ function* qI() {
|
|
|
14223
14228
|
yield [F(jI)];
|
|
14224
14229
|
}
|
|
14225
14230
|
const vl = b(
|
|
14226
|
-
|
|
14231
|
+
xi.SET_COLLISION_MODE
|
|
14227
14232
|
), KI = "launchpad-button-wrapper", YI = (e, t) => e.checklist ? e.checklist.payload[0] : t.payload[0], zI = (e, t) => (e.experiences ? e.experiences.payload : t.payload).find(
|
|
14228
14233
|
(i) => i.type === "launchpad"
|
|
14229
14234
|
), XI = (e) => {
|
|
@@ -14263,13 +14268,13 @@ function* JI() {
|
|
|
14263
14268
|
yield E(dd, n, r);
|
|
14264
14269
|
}
|
|
14265
14270
|
function* QI({ payload: { checklistId: e, forceClose: t } }) {
|
|
14266
|
-
const n = yield v(
|
|
14271
|
+
const n = yield v(yn, e);
|
|
14267
14272
|
if (t) {
|
|
14268
|
-
yield g(
|
|
14273
|
+
yield g(fn(e));
|
|
14269
14274
|
return;
|
|
14270
14275
|
}
|
|
14271
|
-
const r = n.viewState ===
|
|
14272
|
-
r || (yield E(bI)), yield g(r ?
|
|
14276
|
+
const r = n.viewState === Gt.EXPANDED;
|
|
14277
|
+
r || (yield E(bI)), yield g(r ? fn(e) : Ur(e));
|
|
14273
14278
|
}
|
|
14274
14279
|
function* fd({ payload: { collisionMode: e, checklist: t } }) {
|
|
14275
14280
|
if (!e) {
|
|
@@ -14295,7 +14300,7 @@ function* fd({ payload: { collisionMode: e, checklist: t } }) {
|
|
|
14295
14300
|
}));
|
|
14296
14301
|
}
|
|
14297
14302
|
function* ZI() {
|
|
14298
|
-
const e =
|
|
14303
|
+
const e = kr((t) => (AI((n) => {
|
|
14299
14304
|
t({
|
|
14300
14305
|
type: $i,
|
|
14301
14306
|
payload: {
|
|
@@ -14315,10 +14320,10 @@ function* ZI() {
|
|
|
14315
14320
|
}
|
|
14316
14321
|
}
|
|
14317
14322
|
function* eA() {
|
|
14318
|
-
for (yield W(
|
|
14323
|
+
for (yield W(xi.SET_COLLISION_MODE); ; ) {
|
|
14319
14324
|
const {
|
|
14320
14325
|
payload: [e]
|
|
14321
|
-
} = yield W(re.UPDATE_CHECKLISTS), t = yield E(
|
|
14326
|
+
} = yield W(re.UPDATE_CHECKLISTS), t = yield E(Bt);
|
|
14322
14327
|
if (!t) return;
|
|
14323
14328
|
let n = null, r = 0;
|
|
14324
14329
|
const i = 10;
|
|
@@ -14337,12 +14342,12 @@ function* tA() {
|
|
|
14337
14342
|
F(Ir, $i, QI),
|
|
14338
14343
|
F(
|
|
14339
14344
|
Ir,
|
|
14340
|
-
|
|
14345
|
+
xi.SET_COLLISION_MODE,
|
|
14341
14346
|
fd
|
|
14342
14347
|
)
|
|
14343
14348
|
];
|
|
14344
14349
|
}
|
|
14345
|
-
const nA = "/generic/main/7.
|
|
14350
|
+
const nA = "/generic/main/7.11.1/container.a78f4df397e3b099a535f68c857dd828db518b74.css", rA = "sha256-aCeqnjU7TOH19BB5c3uUBNo249gNM6/QK3gL7C16wxc=";
|
|
14346
14351
|
window.performance && window.performance.mark && window.performance.mark("apc-init");
|
|
14347
14352
|
zS();
|
|
14348
14353
|
const bt = window.AppcuesBundleSettings;
|
|
@@ -14354,7 +14359,7 @@ sr.setAttribute("rel", "stylesheet");
|
|
|
14354
14359
|
sr.setAttribute("type", "text/css");
|
|
14355
14360
|
sr.setAttribute("integrity", rA);
|
|
14356
14361
|
sr.setAttribute("crossorigin", "anonymous");
|
|
14357
|
-
sr.setAttribute("href",
|
|
14362
|
+
sr.setAttribute("href", $t(nA));
|
|
14358
14363
|
document.head.appendChild(sr);
|
|
14359
14364
|
const Eo = window[Wo];
|
|
14360
14365
|
ne.object(Eo) && ne.defined(Eo.gaTracker) && bt.integrations.ga && (bt.integrations.ga.trackerName = Eo.gaTracker);
|
|
@@ -14363,7 +14368,7 @@ const bl = document.documentElement.querySelector(
|
|
|
14363
14368
|
'script[src*="fast.appcues"]'
|
|
14364
14369
|
);
|
|
14365
14370
|
bl && (Bo = bl.getAttribute("data-user-id"));
|
|
14366
|
-
const
|
|
14371
|
+
const hn = yS({
|
|
14367
14372
|
settings: bt,
|
|
14368
14373
|
sagas: [
|
|
14369
14374
|
GC,
|
|
@@ -14393,23 +14398,23 @@ const fn = yS({
|
|
|
14393
14398
|
E_(e), __(e);
|
|
14394
14399
|
}
|
|
14395
14400
|
});
|
|
14396
|
-
|
|
14401
|
+
hn.dispatch(
|
|
14397
14402
|
Wa({
|
|
14398
14403
|
[z.DEBUGGER]: I_(
|
|
14399
|
-
|
|
14400
|
-
|
|
14404
|
+
hn.dispatch,
|
|
14405
|
+
hn.getState
|
|
14401
14406
|
)
|
|
14402
14407
|
})
|
|
14403
14408
|
);
|
|
14404
|
-
|
|
14409
|
+
hn.dispatch(
|
|
14405
14410
|
em(
|
|
14406
14411
|
bt,
|
|
14407
|
-
oT(
|
|
14412
|
+
oT(hn),
|
|
14408
14413
|
YS,
|
|
14409
|
-
sT(bt,
|
|
14414
|
+
sT(bt, hn.getState)
|
|
14410
14415
|
)
|
|
14411
14416
|
);
|
|
14412
|
-
const Vi = s_(
|
|
14417
|
+
const Vi = s_(hn);
|
|
14413
14418
|
bt && bt.integrations && Object.keys(bt.integrations).forEach((e) => {
|
|
14414
14419
|
if (bt.integrations[e].isEnabled) {
|
|
14415
14420
|
const t = Vi[`init${{
|
|
@@ -14440,16 +14445,16 @@ bt && bt.integrations && Object.keys(bt.integrations).forEach((e) => {
|
|
|
14440
14445
|
/hey_appcues/i.test(window.location.search) && Vi.debug();
|
|
14441
14446
|
Bo !== null && Vi.identify(Bo);
|
|
14442
14447
|
const wl = window.AppcuesBundleSettings;
|
|
14443
|
-
let
|
|
14448
|
+
let ti;
|
|
14444
14449
|
if (window.Appcues && !window.Appcues.SNIPPET_VERSION)
|
|
14445
|
-
|
|
14450
|
+
ti = window.Appcues;
|
|
14446
14451
|
else if (window.requestAnimationFrame && window.WebSocket && wl.accountId && /^\d+$/.test(wl.accountId))
|
|
14447
|
-
window.Appcues = Vi,
|
|
14452
|
+
window.Appcues = Vi, ti = window.Appcues;
|
|
14448
14453
|
else {
|
|
14449
14454
|
const e = () => {
|
|
14450
14455
|
};
|
|
14451
|
-
|
|
14452
|
-
|
|
14456
|
+
ti = {}, Dd.forEach((t) => {
|
|
14457
|
+
ti[t] = e;
|
|
14453
14458
|
});
|
|
14454
14459
|
}
|
|
14455
14460
|
const aA = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|