@appcues/web-sdk 7.29.0 → 7.29.5

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