@appcues/web-sdk 7.17.3 → 7.17.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @appcues/web-sdk
2
2
 
3
+ ## 7.17.4
4
+
5
+ ### Patch Changes
6
+
7
+ - 5f8b1e6: Add tab navigation to launchpad 2.0 content
8
+
9
+ ## 7.17.3
10
+
11
+ ### Patch Changes
12
+
13
+ - ebcf73e: Fix redirect steps navigating to the wrong domain when a sites <base> element origin differs from the browser's address bar.
14
+
3
15
  ## 7.17.2
4
16
 
5
17
  ### Patch Changes
@@ -1,4 +1,4 @@
1
- import { c as ut, g as Ve, o as We, a as Ze, n as te, b as Fe } from "./index.CB8C7s2e.js";
1
+ import { c as ut, g as Ve, o as We, a as Ze, n as te, b as Fe } from "./index.DEj5ic2Z.js";
2
2
  const pt = window, Vt = pt.ShadowRoot && (pt.ShadyCSS === void 0 || pt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Wt = /* @__PURE__ */ Symbol(), ee = /* @__PURE__ */ new WeakMap();
3
3
  let xe = class {
4
4
  constructor(t, i, s) {
@@ -18,14 +18,14 @@ let xe = class {
18
18
  return this.cssText;
19
19
  }
20
20
  };
21
- const Je = (e) => new xe(typeof e == "string" ? e : e + "", void 0, Wt), $ = (e, ...t) => {
21
+ const Ke = (e) => new xe(typeof e == "string" ? e : e + "", void 0, Wt), $ = (e, ...t) => {
22
22
  const i = e.length === 1 ? e[0] : t.reduce(((s, r, o) => s + ((n) => {
23
23
  if (n._$cssResult$ === !0) return n.cssText;
24
24
  if (typeof n == "number") return n;
25
25
  throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
26
26
  })(r) + e[o + 1]), e[0]);
27
27
  return new xe(i, e, Wt);
28
- }, Xe = (e, t) => {
28
+ }, Je = (e, t) => {
29
29
  Vt ? e.adoptedStyleSheets = t.map(((i) => i instanceof CSSStyleSheet ? i : i.styleSheet)) : t.forEach(((i) => {
30
30
  const s = document.createElement("style"), r = pt.litNonce;
31
31
  r !== void 0 && s.setAttribute("nonce", r), s.textContent = i.cssText, e.appendChild(s);
@@ -33,13 +33,13 @@ const Je = (e) => new xe(typeof e == "string" ? e : e + "", void 0, Wt), $ = (e,
33
33
  }, ie = Vt ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
34
34
  let i = "";
35
35
  for (const s of t.cssRules) i += s.cssText;
36
- return Je(i);
36
+ return Ke(i);
37
37
  })(e) : e;
38
38
  var Et;
39
- const gt = window, se = gt.trustedTypes, Ye = se ? se.emptyScript : "", re = gt.reactiveElementPolyfillSupport, Ot = { toAttribute(e, t) {
39
+ const vt = window, se = vt.trustedTypes, Xe = se ? se.emptyScript : "", re = vt.reactiveElementPolyfillSupport, Ot = { toAttribute(e, t) {
40
40
  switch (t) {
41
41
  case Boolean:
42
- e = e ? Ye : null;
42
+ e = e ? Xe : null;
43
43
  break;
44
44
  case Object:
45
45
  case Array:
@@ -140,7 +140,7 @@ let F = class extends HTMLElement {
140
140
  createRenderRoot() {
141
141
  var t;
142
142
  const i = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
143
- return Xe(i, this.constructor.elementStyles), i;
143
+ return Je(i, this.constructor.elementStyles), i;
144
144
  }
145
145
  connectedCallback() {
146
146
  var t;
@@ -239,9 +239,9 @@ let F = class extends HTMLElement {
239
239
  firstUpdated(t) {
240
240
  }
241
241
  };
242
- F[jt] = !0, F.elementProperties = /* @__PURE__ */ new Map(), F.elementStyles = [], F.shadowRootOptions = { mode: "open" }, re?.({ ReactiveElement: F }), ((Et = gt.reactiveElementVersions) !== null && Et !== void 0 ? Et : gt.reactiveElementVersions = []).push("1.6.3");
242
+ F[jt] = !0, F.elementProperties = /* @__PURE__ */ new Map(), F.elementStyles = [], F.shadowRootOptions = { mode: "open" }, re?.({ ReactiveElement: F }), ((Et = vt.reactiveElementVersions) !== null && Et !== void 0 ? Et : vt.reactiveElementVersions = []).push("1.6.3");
243
243
  var It;
244
- const vt = window, J = vt.trustedTypes, ne = J ? J.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, zt = "$lit$", I = `lit$${(Math.random() + "").slice(9)}$`, Ae = "?" + I, Ke = `<${Ae}>`, O = document, nt = () => O.createComment(""), ot = (e) => e === null || typeof e != "object" && typeof e != "function", ke = Array.isArray, Ge = (e) => ke(e) || typeof e?.[Symbol.iterator] == "function", Ht = `[
244
+ const gt = window, K = gt.trustedTypes, ne = K ? K.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, zt = "$lit$", I = `lit$${(Math.random() + "").slice(9)}$`, Ae = "?" + I, Ye = `<${Ae}>`, O = document, nt = () => O.createComment(""), ot = (e) => e === null || typeof e != "object" && typeof e != "function", ke = Array.isArray, Ge = (e) => ke(e) || typeof e?.[Symbol.iterator] == "function", Ht = `[
245
245
  \f\r]`, it = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, oe = /-->/g, ae = />/g, M = RegExp(`>|${Ht}(?:([^\\s"'>=/]+)(${Ht}*=${Ht}*(?:[^
246
246
  \f\r"'\`<>=]|("|')|))|$)`, "g"), le = /'/g, he = /"/g, Ce = /^(?:script|style|textarea|title)$/i, Se = (e) => (t, ...i) => ({ _$litType$: e, strings: t, values: i }), w = Se(1), Ee = Se(2), j = /* @__PURE__ */ Symbol.for("lit-noChange"), m = /* @__PURE__ */ Symbol.for("lit-nothing"), ce = /* @__PURE__ */ new WeakMap(), R = O.createTreeWalker(O, 129, null, !1);
247
247
  function Te(e, t) {
@@ -256,7 +256,7 @@ const Qe = (e, t) => {
256
256
  let c, h, d = -1, p = 0;
257
257
  for (; p < a.length && (n.lastIndex = p, h = n.exec(a), h !== null); ) p = n.lastIndex, n === it ? h[1] === "!--" ? n = oe : h[1] !== void 0 ? n = ae : h[2] !== void 0 ? (Ce.test(h[2]) && (r = RegExp("</" + h[2], "g")), n = M) : h[3] !== void 0 && (n = M) : n === M ? h[0] === ">" ? (n = r ?? it, d = -1) : h[1] === void 0 ? d = -2 : (d = n.lastIndex - h[2].length, c = h[1], n = h[3] === void 0 ? M : h[3] === '"' ? he : le) : n === he || n === le ? n = M : n === oe || n === ae ? n = it : (n = M, r = void 0);
258
258
  const y = n === M && e[l + 1].startsWith("/>") ? " " : "";
259
- o += n === it ? a + Ke : d >= 0 ? (s.push(c), a.slice(0, d) + zt + a.slice(d) + I + y) : a + I + (d === -2 ? (s.push(void 0), l) : y);
259
+ o += n === it ? a + Ye : d >= 0 ? (s.push(c), a.slice(0, d) + zt + a.slice(d) + I + y) : a + I + (d === -2 ? (s.push(void 0), l) : y);
260
260
  }
261
261
  return [Te(e, o + (e[i] || "<?>") + (t === 2 ? "</svg>" : "")), s];
262
262
  };
@@ -286,7 +286,7 @@ let Bt = class Ie {
286
286
  if (Ce.test(r.tagName)) {
287
287
  const d = r.textContent.split(I), p = d.length - 1;
288
288
  if (p > 0) {
289
- r.textContent = J ? J.emptyScript : "";
289
+ r.textContent = K ? K.emptyScript : "";
290
290
  for (let y = 0; y < p; y++) r.append(d[y], nt()), R.nextNode(), a.push({ type: 2, index: ++o });
291
291
  r.append(d[p], nt());
292
292
  }
@@ -304,12 +304,12 @@ let Bt = class Ie {
304
304
  return s.innerHTML = t, s;
305
305
  }
306
306
  };
307
- function X(e, t, i = e, s) {
307
+ function J(e, t, i = e, s) {
308
308
  var r, o, n, l;
309
309
  if (t === j) return t;
310
310
  let a = s !== void 0 ? (r = i._$Co) === null || r === void 0 ? void 0 : r[s] : i._$Cl;
311
311
  const c = ot(t) ? void 0 : t._$litDirective$;
312
- return a?.constructor !== c && ((o = a?._$AO) === null || o === void 0 || o.call(a, !1), c === void 0 ? a = void 0 : (a = new c(e), a._$AT(e, i, s)), s !== void 0 ? ((n = (l = i)._$Co) !== null && n !== void 0 ? n : l._$Co = [])[s] = a : i._$Cl = a), a !== void 0 && (t = X(e, a._$AS(e, t.values), a, s)), t;
312
+ return a?.constructor !== c && ((o = a?._$AO) === null || o === void 0 || o.call(a, !1), c === void 0 ? a = void 0 : (a = new c(e), a._$AT(e, i, s)), s !== void 0 ? ((n = (l = i)._$Co) !== null && n !== void 0 ? n : l._$Co = [])[s] = a : i._$Cl = a), a !== void 0 && (t = J(e, a._$AS(e, t.values), a, s)), t;
313
313
  }
314
314
  class ti {
315
315
  constructor(t, i) {
@@ -361,7 +361,7 @@ let Ft = class He {
361
361
  return this._$AB;
362
362
  }
363
363
  _$AI(t, i = this) {
364
- t = X(this, t, i), ot(t) ? t === m || t == null || t === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Ge(t) ? this.T(t) : this._(t);
364
+ t = J(this, t, i), ot(t) ? t === m || t == null || t === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Ge(t) ? this.T(t) : this._(t);
365
365
  }
366
366
  k(t) {
367
367
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -416,11 +416,11 @@ let Ft = class He {
416
416
  _$AI(t, i = this, s, r) {
417
417
  const o = this.strings;
418
418
  let n = !1;
419
- if (o === void 0) t = X(this, t, i, 0), n = !ot(t) || t !== this._$AH && t !== j, n && (this._$AH = t);
419
+ if (o === void 0) t = J(this, t, i, 0), n = !ot(t) || t !== this._$AH && t !== j, n && (this._$AH = t);
420
420
  else {
421
421
  const l = t;
422
422
  let a, c;
423
- for (t = o[0], a = 0; a < o.length - 1; a++) c = X(this, l[s + a], i, a), c === j && (c = this._$AH[a]), n || (n = !ot(c) || c !== this._$AH[a]), c === m ? t = m : t !== m && (t += (c ?? "") + o[a + 1]), this._$AH[a] = c;
423
+ for (t = o[0], a = 0; a < o.length - 1; a++) c = J(this, l[s + a], i, a), c === j && (c = this._$AH[a]), n || (n = !ot(c) || c !== this._$AH[a]), c === m ? t = m : t !== m && (t += (c ?? "") + o[a + 1]), this._$AH[a] = c;
424
424
  }
425
425
  n && !r && this.j(t);
426
426
  }
@@ -435,7 +435,7 @@ let Ft = class He {
435
435
  this.element[this.name] = t === m ? void 0 : t;
436
436
  }
437
437
  };
438
- const ii = J ? J.emptyScript : "";
438
+ const ii = K ? K.emptyScript : "";
439
439
  let si = class extends bt {
440
440
  constructor() {
441
441
  super(...arguments), this.type = 4;
@@ -450,7 +450,7 @@ class ri extends bt {
450
450
  }
451
451
  _$AI(t, i = this) {
452
452
  var s;
453
- if ((t = (s = X(this, t, i, 0)) !== null && s !== void 0 ? s : m) === j) return;
453
+ if ((t = (s = J(this, t, i, 0)) !== null && s !== void 0 ? s : m) === j) return;
454
454
  const r = this._$AH, o = t === m && r !== m || t.capture !== r.capture || t.once !== r.once || t.passive !== r.passive, n = t !== m && (r === m || o);
455
455
  o && this.element.removeEventListener(this.name, this, r), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
456
456
  }
@@ -467,11 +467,11 @@ let ni = class {
467
467
  return this._$AM._$AU;
468
468
  }
469
469
  _$AI(t) {
470
- X(this, t);
470
+ J(this, t);
471
471
  }
472
472
  };
473
- const de = vt.litHtmlPolyfillSupport;
474
- de?.(Bt, Ft), ((It = vt.litHtmlVersions) !== null && It !== void 0 ? It : vt.litHtmlVersions = []).push("2.8.0");
473
+ const de = gt.litHtmlPolyfillSupport;
474
+ de?.(Bt, Ft), ((It = gt.litHtmlVersions) !== null && It !== void 0 ? It : gt.litHtmlVersions = []).push("2.8.0");
475
475
  const oi = (e, t, i) => {
476
476
  var s, r;
477
477
  const o = (s = i?.renderBefore) !== null && s !== void 0 ? s : t;
@@ -521,11 +521,11 @@ const ai = (e, t) => t.kind === "method" && t.descriptor && !("value" in t.descr
521
521
  } }, li = (e, t, i) => {
522
522
  t.constructor.createProperty(i, e);
523
523
  };
524
- function v(e) {
524
+ function g(e) {
525
525
  return (t, i) => i !== void 0 ? li(e, t, i) : ai(e, t);
526
526
  }
527
527
  function N(e) {
528
- return v({ ...e, state: !0 });
528
+ return g({ ...e, state: !0 });
529
529
  }
530
530
  var Mt;
531
531
  ((Mt = window.HTMLSlotElement) === null || Mt === void 0 ? void 0 : Mt.prototype.assignedElements) != null;
@@ -563,7 +563,7 @@ class Dt extends di {
563
563
  Dt.directiveName = "unsafeHTML", Dt.resultType = 1;
564
564
  const ui = ci(Dt);
565
565
  const pi = /* @__PURE__ */ Symbol();
566
- class gi {
566
+ class vi {
567
567
  get taskComplete() {
568
568
  return this.t || (this.i === 1 ? this.t = new Promise(((t, i) => {
569
569
  this.o = t, this.h = i;
@@ -572,7 +572,7 @@ class gi {
572
572
  constructor(t, i, s) {
573
573
  this.p = 0, this.i = 0, (this._ = t).addController(this);
574
574
  const r = typeof i == "object" ? i : { task: i, args: s };
575
- this.v = r.task, this.j = r.args, this.m = r.argsEqual ?? vi, this.k = r.onComplete, this.A = r.onError, this.autoRun = r.autoRun ?? !0, "initialValue" in r && (this.u = r.initialValue, this.i = 2, this.O = this.T?.());
575
+ this.v = r.task, this.j = r.args, this.m = r.argsEqual ?? gi, this.k = r.onComplete, this.A = r.onError, this.autoRun = r.autoRun ?? !0, "initialValue" in r && (this.u = r.initialValue, this.i = 2, this.O = this.T?.());
576
576
  }
577
577
  hostUpdate() {
578
578
  this.autoRun === !0 && this.S();
@@ -649,7 +649,7 @@ class gi {
649
649
  }
650
650
  }
651
651
  }
652
- const vi = (e, t) => e === t || e.length === t.length && e.every(((i, s) => !Zt(i, t[s])));
652
+ const gi = (e, t) => e === t || e.length === t.length && e.every(((i, s) => !Zt(i, t[s])));
653
653
  var Ut, pe;
654
654
  function mi() {
655
655
  if (pe) return Ut;
@@ -658,28 +658,28 @@ function mi() {
658
658
  return h.Date.now();
659
659
  };
660
660
  function Le(u, _, k) {
661
- var W, G, ct, Z, x, P, Q = 0, Yt = !1, tt = !1, kt = !0;
661
+ var W, G, ct, Z, x, P, Q = 0, Xt = !1, tt = !1, kt = !0;
662
662
  if (typeof u != "function")
663
663
  throw new TypeError(e);
664
- _ = Xt(_) || 0, At(k) && (Yt = !!k.leading, tt = "maxWait" in k, ct = tt ? y(Xt(k.maxWait) || 0, _) : ct, kt = "trailing" in k ? !!k.trailing : kt);
664
+ _ = Jt(_) || 0, At(k) && (Xt = !!k.leading, tt = "maxWait" in k, ct = tt ? y(Jt(k.maxWait) || 0, _) : ct, kt = "trailing" in k ? !!k.trailing : kt);
665
665
  function Ct(f) {
666
666
  var T = W, et = G;
667
667
  return W = G = void 0, Q = f, Z = u.apply(et, T), Z;
668
668
  }
669
669
  function ze(f) {
670
- return Q = f, x = setTimeout(dt, _), Yt ? Ct(f) : Z;
670
+ return Q = f, x = setTimeout(dt, _), Xt ? Ct(f) : Z;
671
671
  }
672
672
  function Be(f) {
673
673
  var T = f - P, et = f - Q, Qt = _ - T;
674
674
  return tt ? S(Qt, ct - et) : Qt;
675
675
  }
676
- function Kt(f) {
676
+ function Yt(f) {
677
677
  var T = f - P, et = f - Q;
678
678
  return P === void 0 || T >= _ || T < 0 || tt && et >= ct;
679
679
  }
680
680
  function dt() {
681
681
  var f = E();
682
- if (Kt(f))
682
+ if (Yt(f))
683
683
  return Gt(f);
684
684
  x = setTimeout(dt, Be(f));
685
685
  }
@@ -693,7 +693,7 @@ function mi() {
693
693
  return x === void 0 ? Z : Gt(E());
694
694
  }
695
695
  function St() {
696
- var f = E(), T = Kt(f);
696
+ var f = E(), T = Yt(f);
697
697
  if (W = arguments, G = this, P = f, T) {
698
698
  if (x === void 0)
699
699
  return ze(P);
@@ -714,7 +714,7 @@ function mi() {
714
714
  function je(u) {
715
715
  return typeof u == "symbol" || Oe(u) && p.call(u) == i;
716
716
  }
717
- function Xt(u) {
717
+ function Jt(u) {
718
718
  if (typeof u == "number")
719
719
  return u;
720
720
  if (je(u))
@@ -733,12 +733,12 @@ function mi() {
733
733
  }
734
734
  var fi = mi();
735
735
  const $i = /* @__PURE__ */ Ve(fi);
736
- var bi = Object.defineProperty, g = (e, t, i, s) => {
736
+ var bi = Object.defineProperty, v = (e, t, i, s) => {
737
737
  for (var r = void 0, o = e.length - 1, n; o >= 0; o--) (n = e[o]) && (r = n(t, i, r) || r);
738
738
  return r && bi(t, i, r), r;
739
739
  }, B = (e = "", t) => {
740
740
  customElements.get(e) || customElements.define(e, t);
741
- }, ge = (e, t) => [...e].reduce((i, s) => t?.skip?.includes(s.name) ? i : `${i}${s.name}="${s.value}" `, ""), ht = class extends A {
741
+ }, ve = (e, t) => [...e].reduce((i, s) => t?.skip?.includes(s.name) ? i : `${i}${s.name}="${s.value}" `, ""), ht = class extends A {
742
742
  constructor() {
743
743
  super(...arguments), this.name = "", this.fallbackTag = null, this.defaultStyle = null, this.refElement = null;
744
744
  }
@@ -751,7 +751,7 @@ var bi = Object.defineProperty, g = (e, t, i, s) => {
751
751
  throw new Error(`Your html tag to customize ${this.name} should be <${this.fallbackTag}></<${this.fallbackTag}>`);
752
752
  }
753
753
  render() {
754
- const e = ge(this.attributes, { skip: ["name", "fallbacktag"] }), t = ge(this.refElement?.attributes ?? []);
754
+ const e = ve(this.attributes, { skip: ["name", "fallbacktag"] }), t = ve(this.refElement?.attributes ?? []);
755
755
  return w`${ui(`
756
756
  <style>${this.defaultStyle}</style>
757
757
  <${this.fallbackTag} ${e} ${t}>
@@ -759,10 +759,10 @@ var bi = Object.defineProperty, g = (e, t, i, s) => {
759
759
  </${this.fallbackTag}>`)}`;
760
760
  }
761
761
  };
762
- g([v()], ht.prototype, "name");
763
- g([v({ type: String || null })], ht.prototype, "fallbackTag");
764
- g([v({ type: String || null })], ht.prototype, "defaultStyle");
765
- g([v({ type: String || null })], ht.prototype, "refElement");
762
+ v([g()], ht.prototype, "name");
763
+ v([g({ type: String || null })], ht.prototype, "fallbackTag");
764
+ v([g({ type: String || null })], ht.prototype, "defaultStyle");
765
+ v([g({ type: String || null })], ht.prototype, "refElement");
766
766
  B("appcues-use-ref", ht);
767
767
  var yi = () => {
768
768
  let e = {};
@@ -830,6 +830,12 @@ var yi = () => {
830
830
  background-color: var(--flows-list-block-background-hover);
831
831
  }
832
832
 
833
+ li:focus-visible {
834
+ background-color: var(--flows-list-block-background-hover);
835
+ outline: 2px solid currentColor;
836
+ outline-offset: -2px;
837
+ }
838
+
833
839
  li::marker {
834
840
  color: var(--flows-list-block-marker-color);
835
841
  }
@@ -838,6 +844,10 @@ var yi = () => {
838
844
  background-color: var(--flows-list-block-background-hover);
839
845
  }
840
846
 
847
+ li:focus-visible > span {
848
+ background-color: var(--flows-list-block-background-hover);
849
+ }
850
+
841
851
  li > span {
842
852
  color: var(--flows-list-block-color);
843
853
  }
@@ -866,12 +876,12 @@ var yi = () => {
866
876
  text-overflow: ellipsis;
867
877
  white-space: normal;
868
878
  }
869
- `, Rt, mt = window, Y = mt.trustedTypes, ve = Y ? Y.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, qt = "$lit$", H = `lit$${(Math.random() + "").slice(9)}$`, Ne = "?" + H, Ei = `<${Ne}>`, z = document, ft = () => z.createComment(""), at = (e) => e === null || typeof e != "object" && typeof e != "function", Pe = Array.isArray, Ti = (e) => Pe(e) || typeof e?.[Symbol.iterator] == "function", Lt = `[
879
+ `, Rt, mt = window, X = mt.trustedTypes, ge = X ? X.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, qt = "$lit$", H = `lit$${(Math.random() + "").slice(9)}$`, Ne = "?" + H, Ei = `<${Ne}>`, z = document, ft = () => z.createComment(""), at = (e) => e === null || typeof e != "object" && typeof e != "function", Pe = Array.isArray, Ti = (e) => Pe(e) || typeof e?.[Symbol.iterator] == "function", Lt = `[
870
880
  \f\r]`, st = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, me = /-->/g, fe = />/g, U = RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^
871
881
  \f\r"'\`<>=]|("|')|))|$)`, "g"), $e = /'/g, be = /"/g, Me = /^(?:script|style|textarea|title)$/i, Ue = (e) => (t, ...i) => ({ _$litType$: e, strings: t, values: i }), rt = Ue(1), yt = Ue(2), lt = /* @__PURE__ */ Symbol.for("lit-noChange"), b = /* @__PURE__ */ Symbol.for("lit-nothing"), ye = /* @__PURE__ */ new WeakMap(), L = z.createTreeWalker(z, 129, null, !1);
872
882
  function Re(e, t) {
873
883
  if (!Array.isArray(e) || !e.hasOwnProperty("raw")) throw Error("invalid template strings array");
874
- return ve !== void 0 ? ve.createHTML(t) : t;
884
+ return ge !== void 0 ? ge.createHTML(t) : t;
875
885
  }
876
886
  var Ii = (e, t) => {
877
887
  const i = e.length - 1, s = [];
@@ -910,7 +920,7 @@ var Ii = (e, t) => {
910
920
  if (Me.test(s.tagName)) {
911
921
  const h = s.textContent.split(H), d = h.length - 1;
912
922
  if (d > 0) {
913
- s.textContent = Y ? Y.emptyScript : "";
923
+ s.textContent = X ? X.emptyScript : "";
914
924
  for (let p = 0; p < d; p++) s.append(h[p], ft()), L.nextNode(), l.push({ type: 2, index: ++r });
915
925
  s.append(h[d], ft());
916
926
  }
@@ -928,12 +938,12 @@ var Ii = (e, t) => {
928
938
  return i.innerHTML = e, i;
929
939
  }
930
940
  };
931
- function K(e, t, i = e, s) {
941
+ function Y(e, t, i = e, s) {
932
942
  var r, o, n, l;
933
943
  if (t === lt) return t;
934
944
  let a = s !== void 0 ? (r = i._$Co) === null || r === void 0 ? void 0 : r[s] : i._$Cl;
935
945
  const c = at(t) ? void 0 : t._$litDirective$;
936
- return a?.constructor !== c && ((o = a?._$AO) === null || o === void 0 || o.call(a, !1), c === void 0 ? a = void 0 : (a = new c(e), a._$AT(e, i, s)), s !== void 0 ? ((n = (l = i)._$Co) !== null && n !== void 0 ? n : l._$Co = [])[s] = a : i._$Cl = a), a !== void 0 && (t = K(e, a._$AS(e, t.values), a, s)), t;
946
+ return a?.constructor !== c && ((o = a?._$AO) === null || o === void 0 || o.call(a, !1), c === void 0 ? a = void 0 : (a = new c(e), a._$AT(e, i, s)), s !== void 0 ? ((n = (l = i)._$Co) !== null && n !== void 0 ? n : l._$Co = [])[s] = a : i._$Cl = a), a !== void 0 && (t = Y(e, a._$AS(e, t.values), a, s)), t;
937
947
  }
938
948
  var Hi = class {
939
949
  constructor(e, t) {
@@ -953,7 +963,7 @@ var Hi = class {
953
963
  for (; a !== void 0; ) {
954
964
  if (n === a.index) {
955
965
  let c;
956
- a.type === 2 ? c = new Jt(o, o.nextSibling, this, e) : a.type === 1 ? c = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (c = new Ri(o, this, e)), this._$AV.push(c), a = s[++l];
966
+ a.type === 2 ? c = new Kt(o, o.nextSibling, this, e) : a.type === 1 ? c = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (c = new Ri(o, this, e)), this._$AV.push(c), a = s[++l];
957
967
  }
958
968
  n !== a?.index && (o = L.nextNode(), n++);
959
969
  }
@@ -963,7 +973,7 @@ var Hi = class {
963
973
  let t = 0;
964
974
  for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
965
975
  }
966
- }, Jt = class {
976
+ }, Kt = class {
967
977
  constructor(e, t, i, s) {
968
978
  var r;
969
979
  this.type = 2, this._$AH = b, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = i, this.options = s, this._$Cp = (r = s?.isConnected) === null || r === void 0 || r;
@@ -984,7 +994,7 @@ var Hi = class {
984
994
  return this._$AB;
985
995
  }
986
996
  _$AI(e, t = this) {
987
- e = K(this, e, t), at(e) ? e === b || e == null || e === "" ? (this._$AH !== b && this._$AR(), this._$AH = b) : e !== this._$AH && e !== lt && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : Ti(e) ? this.T(e) : this._(e);
997
+ e = Y(this, e, t), at(e) ? e === b || e == null || e === "" ? (this._$AH !== b && this._$AR(), this._$AH = b) : e !== this._$AH && e !== lt && this._(e) : e._$litType$ !== void 0 ? this.g(e) : e.nodeType !== void 0 ? this.$(e) : Ti(e) ? this.T(e) : this._(e);
988
998
  }
989
999
  k(e) {
990
1000
  return this._$AA.parentNode.insertBefore(e, this._$AB);
@@ -1012,7 +1022,7 @@ var Hi = class {
1012
1022
  Pe(this._$AH) || (this._$AH = [], this._$AR());
1013
1023
  const t = this._$AH;
1014
1024
  let i, s = 0;
1015
- for (const r of e) s === t.length ? t.push(i = new Jt(this.k(ft()), this.k(ft()), this, this.options)) : i = t[s], i._$AI(r), s++;
1025
+ for (const r of e) s === t.length ? t.push(i = new Kt(this.k(ft()), this.k(ft()), this, this.options)) : i = t[s], i._$AI(r), s++;
1016
1026
  s < t.length && (this._$AR(i && i._$AB.nextSibling, s), t.length = s);
1017
1027
  }
1018
1028
  _$AR(e = this._$AA.nextSibling, t) {
@@ -1039,11 +1049,11 @@ var Hi = class {
1039
1049
  _$AI(e, t = this, i, s) {
1040
1050
  const r = this.strings;
1041
1051
  let o = !1;
1042
- if (r === void 0) e = K(this, e, t, 0), o = !at(e) || e !== this._$AH && e !== lt, o && (this._$AH = e);
1052
+ if (r === void 0) e = Y(this, e, t, 0), o = !at(e) || e !== this._$AH && e !== lt, o && (this._$AH = e);
1043
1053
  else {
1044
1054
  const n = e;
1045
1055
  let l, a;
1046
- for (e = r[0], l = 0; l < r.length - 1; l++) a = K(this, n[i + l], t, l), a === lt && (a = this._$AH[l]), o || (o = !at(a) || a !== this._$AH[l]), a === b ? e = b : e !== b && (e += (a ?? "") + r[l + 1]), this._$AH[l] = a;
1056
+ for (e = r[0], l = 0; l < r.length - 1; l++) a = Y(this, n[i + l], t, l), a === lt && (a = this._$AH[l]), o || (o = !at(a) || a !== this._$AH[l]), a === b ? e = b : e !== b && (e += (a ?? "") + r[l + 1]), this._$AH[l] = a;
1047
1057
  }
1048
1058
  o && !s && this.j(e);
1049
1059
  }
@@ -1057,7 +1067,7 @@ var Hi = class {
1057
1067
  j(e) {
1058
1068
  this.element[this.name] = e === b ? void 0 : e;
1059
1069
  }
1060
- }, Pi = Y ? Y.emptyScript : "", Mi = class extends wt {
1070
+ }, Pi = X ? X.emptyScript : "", Mi = class extends wt {
1061
1071
  constructor() {
1062
1072
  super(...arguments), this.type = 4;
1063
1073
  }
@@ -1070,7 +1080,7 @@ var Hi = class {
1070
1080
  }
1071
1081
  _$AI(e, t = this) {
1072
1082
  var i;
1073
- if ((e = (i = K(this, e, t, 0)) !== null && i !== void 0 ? i : b) === lt) return;
1083
+ if ((e = (i = Y(this, e, t, 0)) !== null && i !== void 0 ? i : b) === lt) return;
1074
1084
  const s = this._$AH, r = e === b && s !== b || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, o = e !== b && (s === b || r);
1075
1085
  r && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
1076
1086
  }
@@ -1086,10 +1096,10 @@ var Hi = class {
1086
1096
  return this._$AM._$AU;
1087
1097
  }
1088
1098
  _$AI(e) {
1089
- K(this, e);
1099
+ Y(this, e);
1090
1100
  }
1091
1101
  }, we = mt.litHtmlPolyfillSupport;
1092
- we?.($t, Jt), ((Rt = mt.litHtmlVersions) !== null && Rt !== void 0 ? Rt : mt.litHtmlVersions = []).push("2.8.0");
1102
+ we?.($t, Kt), ((Rt = mt.litHtmlVersions) !== null && Rt !== void 0 ? Rt : mt.litHtmlVersions = []).push("2.8.0");
1093
1103
  var Li = yt`
1094
1104
  <svg
1095
1105
  version="1.1"
@@ -1142,9 +1152,11 @@ var Li = yt`
1142
1152
  return this.listItems = JSON.parse(this.listMock), JSON.parse(this.listMock);
1143
1153
  const e = await Appcues?.user() ?? {}, { contents: t } = await ji({ accountId: AppcuesBundleSettings?.accountId, userId: e?.userId }, this.orderBy), i = t.map(({ id: s, name: r, public_name: o }) => ({ id: s, name: r, publicName: o }));
1144
1154
  return this.listItems = i, i;
1145
- }, this.getListItems = new gi(this, { task: this.fetchListItems, args: () => [] }), this.handleItemClick = (e) => () => {
1155
+ }, this.getListItems = new vi(this, { task: this.fetchListItems, args: () => [] }), this.handleItemClick = (e) => () => {
1146
1156
  const t = new CustomEvent("flow-item-clicked", { detail: this.listItems.find((i) => i.id === e), bubbles: !0, composed: !0 });
1147
1157
  this.dispatchEvent(t);
1158
+ }, this.handleItemKeydown = (e) => (t) => {
1159
+ (t.code === "Enter" || t.code === "Space") && (t.preventDefault(), this.handleItemClick(e)());
1148
1160
  }, this.handleItemHover = (e) => () => {
1149
1161
  const t = new CustomEvent("flow-item-hovered", { detail: this.listItems.find((i) => i.id === e), bubbles: !0, composed: !0 });
1150
1162
  this.dispatchEvent(t);
@@ -1158,7 +1170,10 @@ var Li = yt`
1158
1170
  </appcues-use-ref>
1159
1171
  `, this.itemTemplate = (e) => w`
1160
1172
  <li
1173
+ tabindex="0"
1174
+ role="button"
1161
1175
  @click="${this.handleItemClick(e.id)}"
1176
+ @keydown="${this.handleItemKeydown(e.id)}"
1162
1177
  @mouseover="${this.handleItemHover(e.id)}"
1163
1178
  >
1164
1179
  <appcues-use-ref fallbackTag="span" name="list-item">
@@ -1191,11 +1206,11 @@ var Li = yt`
1191
1206
  }
1192
1207
  };
1193
1208
  D.styles = [xi, Ai, Si, Ci];
1194
- g([N()], D.prototype, "listItems");
1195
- g([v()], D.prototype, "orderBy");
1196
- g([v({ type: Number })], D.prototype, "limit");
1197
- g([v()], D.prototype, "listMock");
1198
- g([v({ type: String })], D.prototype, "mode");
1209
+ v([N()], D.prototype, "listItems");
1210
+ v([g()], D.prototype, "orderBy");
1211
+ v([g({ type: Number })], D.prototype, "limit");
1212
+ v([g()], D.prototype, "listMock");
1213
+ v([g({ type: String })], D.prototype, "mode");
1199
1214
  B("appcues-flows-list", D);
1200
1215
  var zi = $`
1201
1216
  .btn-wrapper {
@@ -1371,13 +1386,13 @@ var zi = $`
1371
1386
  }
1372
1387
  };
1373
1388
  C.styles = [zi, Bi, Di];
1374
- g([v()], C.prototype, "title");
1375
- g([v()], C.prototype, "totalItems");
1376
- g([v()], C.prototype, "completedItems");
1377
- g([v()], C.prototype, "activeColor");
1378
- g([v()], C.prototype, "hoverColor");
1379
- g([N()], C.prototype, "mainColor");
1380
- g([N()], C.prototype, "checklistId");
1389
+ v([g()], C.prototype, "title");
1390
+ v([g()], C.prototype, "totalItems");
1391
+ v([g()], C.prototype, "completedItems");
1392
+ v([g()], C.prototype, "activeColor");
1393
+ v([g()], C.prototype, "hoverColor");
1394
+ v([N()], C.prototype, "mainColor");
1395
+ v([N()], C.prototype, "checklistId");
1381
1396
  B("appcues-checklist-wrapper", C);
1382
1397
  var qi = $`
1383
1398
  .page {
@@ -1465,8 +1480,8 @@ var qi = $`
1465
1480
  }
1466
1481
  };
1467
1482
  _t.styles = [qi, Vi, Wi];
1468
- g([N()], _t.prototype, "status");
1469
- g([v()], _t.prototype, "minHeight");
1483
+ v([N()], _t.prototype, "status");
1484
+ v([g()], _t.prototype, "minHeight");
1470
1485
  B("appcues-page", _t);
1471
1486
  var Zi = $`
1472
1487
  .grow {
@@ -1539,11 +1554,11 @@ var Zi = $`
1539
1554
  }
1540
1555
  };
1541
1556
  q.styles = [Zi];
1542
- g([N()], q.prototype, "currentPage");
1543
- g([N()], q.prototype, "pages");
1544
- g([N()], q.prototype, "currentHeight");
1545
- g([v()], q.prototype, "entry");
1546
- g([v()], q.prototype, "exit");
1557
+ v([N()], q.prototype, "currentPage");
1558
+ v([N()], q.prototype, "pages");
1559
+ v([N()], q.prototype, "currentHeight");
1560
+ v([g()], q.prototype, "entry");
1561
+ v([g()], q.prototype, "exit");
1547
1562
  B("appcues-navigation-stack", q);
1548
1563
  var Fi = yt`
1549
1564
  <svg
@@ -1585,7 +1600,7 @@ var Fi = yt`
1585
1600
  />
1586
1601
  </path>
1587
1602
  </svg>
1588
- `, Ji = yt`
1603
+ `, Ki = yt`
1589
1604
  <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
1590
1605
  <g id="material-icon" clip-path="url(#clip0_19386_6120)">
1591
1606
  <path
@@ -1602,7 +1617,7 @@ var Fi = yt`
1602
1617
  d="M8.9 17.81a8.6 8.6 0 0 1-6.31-2.59A8.6 8.6 0 0 1 0 8.91c0-2.49.86-4.6 2.59-6.32A8.6 8.6 0 0 1 8.9 0a8.6 8.6 0 0 1 6.32 2.59A8.6 8.6 0 0 1 17.8 8.9a8.39 8.39 0 0 1-1.68 5.07l7.45 7.46c.28.29.42.65.42 1.07 0 .43-.14.78-.43 1.06-.29.29-.64.43-1.07.43-.43 0-.78-.14-1.07-.43L14 16.13a8.42 8.42 0 0 1-5.09 1.68Zm0-3.05c1.63 0 3.01-.57 4.15-1.7a5.65 5.65 0 0 0 1.7-4.15c0-1.63-.56-3.02-1.7-4.15a5.64 5.64 0 0 0-4.15-1.7c-1.63 0-3 .56-4.14 1.7a5.65 5.65 0 0 0-1.7 4.15c0 1.63.56 3 1.7 4.15a5.64 5.64 0 0 0 4.14 1.7Z"
1603
1618
  />
1604
1619
  </svg>
1605
- `, Xi = $`
1620
+ `, Ji = $`
1606
1621
  @keyframes fade-in {
1607
1622
  0% {
1608
1623
  opacity: 0;
@@ -1666,7 +1681,7 @@ var Fi = yt`
1666
1681
  transform: translateX(120px);
1667
1682
  }
1668
1683
  }
1669
- `, Yi = $`
1684
+ `, Xi = $`
1670
1685
  :host {
1671
1686
  display: flex;
1672
1687
  width: 100%;
@@ -1695,7 +1710,7 @@ var Fi = yt`
1695
1710
  justify-content: center;
1696
1711
  padding: 12px;
1697
1712
  }
1698
- `, Ki = $`
1713
+ `, Yi = $`
1699
1714
  .search-container {
1700
1715
  align-items: center;
1701
1716
  display: none;
@@ -1838,7 +1853,7 @@ var Fi = yt`
1838
1853
  class="return-button"
1839
1854
  @click="${() => this.setSearchMode(!1)}"
1840
1855
  >
1841
- ${Ji}
1856
+ ${Ki}
1842
1857
  </button>
1843
1858
  <form
1844
1859
  class="search-form"
@@ -1860,9 +1875,9 @@ var Fi = yt`
1860
1875
  `;
1861
1876
  }
1862
1877
  };
1863
- xt.styles = [Xi, Yi, Ki];
1864
- g([N()], xt.prototype, "showSearchBar");
1865
- g([v({ converter: (e) => e === "true" })], xt.prototype, "loading");
1878
+ xt.styles = [Ji, Xi, Yi];
1879
+ v([N()], xt.prototype, "showSearchBar");
1880
+ v([g({ converter: (e) => e === "true" })], xt.prototype, "loading");
1866
1881
  B("appcues-search-header", xt);
1867
1882
  var Gi = (e) => e && new DOMParser().parseFromString(e, "text/html").body.textContent || "", Qi = $`
1868
1883
  :host {
@@ -2129,9 +2144,9 @@ var Gi = (e) => e && new DOMParser().parseFromString(e, "text/html").body.textCo
2129
2144
  }
2130
2145
  };
2131
2146
  V.styles = [Qi, es, is, ts];
2132
- g([v()], V.prototype, "state");
2133
- g([v()], V.prototype, "searchTerm");
2134
- g([v({ converter: (e) => e === "true" })], V.prototype, "hasNextPage");
2135
- g([v()], V.prototype, "pageSize");
2136
- g([v({ type: Array })], V.prototype, "results");
2147
+ v([g()], V.prototype, "state");
2148
+ v([g()], V.prototype, "searchTerm");
2149
+ v([g({ converter: (e) => e === "true" })], V.prototype, "hasNextPage");
2150
+ v([g()], V.prototype, "pageSize");
2151
+ v([g({ type: Array })], V.prototype, "results");
2137
2152
  B("appcues-search-results", V);