@bikdotai/bik-component-library 0.0.857-beta.0 → 0.0.857-beta.2

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 (106) hide show
  1. package/README.md +4 -25
  2. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js +2 -2
  3. package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js.map +1 -1
  4. package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js +2 -2
  5. package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js.map +1 -1
  6. package/dist/cjs/components/feature-announcements/MinorUpdatePopup.js +1 -1
  7. package/dist/cjs/components/feature-announcements/MinorUpdatePopup.js.map +1 -1
  8. package/dist/cjs/index.js +1 -1
  9. package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js +416 -333
  10. package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js.map +1 -1
  11. package/dist/esm/components/feature-announcements/MajorUpdatePopup.js +33 -35
  12. package/dist/esm/components/feature-announcements/MajorUpdatePopup.js.map +1 -1
  13. package/dist/esm/components/feature-announcements/MinorUpdatePopup.js +47 -48
  14. package/dist/esm/components/feature-announcements/MinorUpdatePopup.js.map +1 -1
  15. package/dist/esm/components/feature-announcements/types/props.types.d.ts +2 -2
  16. package/dist/esm/index.d.ts +0 -1
  17. package/dist/esm/index.js +743 -793
  18. package/dist/esm/index.js.map +1 -1
  19. package/package.json +1 -1
  20. package/dist/cjs/components/bik-copilot/BIKCopilot.js +0 -2
  21. package/dist/cjs/components/bik-copilot/BIKCopilot.js.map +0 -1
  22. package/dist/cjs/components/bik-copilot/ControlledCopilot.js +0 -2
  23. package/dist/cjs/components/bik-copilot/ControlledCopilot.js.map +0 -1
  24. package/dist/cjs/components/bik-copilot/ControlledCopilot.styled.js +0 -27
  25. package/dist/cjs/components/bik-copilot/ControlledCopilot.styled.js.map +0 -1
  26. package/dist/cjs/components/bik-copilot/CopilotBall.js +0 -2
  27. package/dist/cjs/components/bik-copilot/CopilotBall.js.map +0 -1
  28. package/dist/cjs/components/bik-copilot/CopilotBall.styled.js +0 -42
  29. package/dist/cjs/components/bik-copilot/CopilotBall.styled.js.map +0 -1
  30. package/dist/cjs/components/bik-copilot/CopilotPanel.js +0 -2
  31. package/dist/cjs/components/bik-copilot/CopilotPanel.js.map +0 -1
  32. package/dist/cjs/components/bik-copilot/CopilotPanel.styled.js +0 -419
  33. package/dist/cjs/components/bik-copilot/CopilotPanel.styled.js.map +0 -1
  34. package/dist/cjs/components/bik-copilot/copilotPlacement.js +0 -2
  35. package/dist/cjs/components/bik-copilot/copilotPlacement.js.map +0 -1
  36. package/dist/cjs/components/bik-copilot/services/copilotDb.js +0 -2
  37. package/dist/cjs/components/bik-copilot/services/copilotDb.js.map +0 -1
  38. package/dist/cjs/components/bik-copilot/services/copilotIcebreakersClient.js +0 -2
  39. package/dist/cjs/components/bik-copilot/services/copilotIcebreakersClient.js.map +0 -1
  40. package/dist/cjs/components/bik-copilot/services/copilotMessagesClient.js +0 -2
  41. package/dist/cjs/components/bik-copilot/services/copilotMessagesClient.js.map +0 -1
  42. package/dist/cjs/components/bik-copilot/services/copilotPageSession.js +0 -2
  43. package/dist/cjs/components/bik-copilot/services/copilotPageSession.js.map +0 -1
  44. package/dist/cjs/components/bik-copilot/services/copilotSseParser.js +0 -7
  45. package/dist/cjs/components/bik-copilot/services/copilotSseParser.js.map +0 -1
  46. package/dist/cjs/components/bik-copilot/services/copilotStreamClient.js +0 -2
  47. package/dist/cjs/components/bik-copilot/services/copilotStreamClient.js.map +0 -1
  48. package/dist/cjs/components/bik-copilot/useCopilotIcebreakers.js +0 -2
  49. package/dist/cjs/components/bik-copilot/useCopilotIcebreakers.js.map +0 -1
  50. package/dist/cjs/components/bik-copilot/useCopilotStreamChat.js +0 -2
  51. package/dist/cjs/components/bik-copilot/useCopilotStreamChat.js.map +0 -1
  52. package/dist/cjs/components/bik-copilot/useDraggableFloater.js +0 -2
  53. package/dist/cjs/components/bik-copilot/useDraggableFloater.js.map +0 -1
  54. package/dist/esm/components/bik-copilot/BIKCopilot.d.ts +0 -32
  55. package/dist/esm/components/bik-copilot/BIKCopilot.js +0 -114
  56. package/dist/esm/components/bik-copilot/BIKCopilot.js.map +0 -1
  57. package/dist/esm/components/bik-copilot/ControlledCopilot.d.ts +0 -14
  58. package/dist/esm/components/bik-copilot/ControlledCopilot.js +0 -170
  59. package/dist/esm/components/bik-copilot/ControlledCopilot.js.map +0 -1
  60. package/dist/esm/components/bik-copilot/ControlledCopilot.styled.d.ts +0 -7
  61. package/dist/esm/components/bik-copilot/ControlledCopilot.styled.js +0 -31
  62. package/dist/esm/components/bik-copilot/ControlledCopilot.styled.js.map +0 -1
  63. package/dist/esm/components/bik-copilot/CopilotBall.d.ts +0 -13
  64. package/dist/esm/components/bik-copilot/CopilotBall.js +0 -50
  65. package/dist/esm/components/bik-copilot/CopilotBall.js.map +0 -1
  66. package/dist/esm/components/bik-copilot/CopilotBall.styled.d.ts +0 -9
  67. package/dist/esm/components/bik-copilot/CopilotBall.styled.js +0 -46
  68. package/dist/esm/components/bik-copilot/CopilotBall.styled.js.map +0 -1
  69. package/dist/esm/components/bik-copilot/CopilotPanel.d.ts +0 -9
  70. package/dist/esm/components/bik-copilot/CopilotPanel.js +0 -309
  71. package/dist/esm/components/bik-copilot/CopilotPanel.js.map +0 -1
  72. package/dist/esm/components/bik-copilot/CopilotPanel.styled.d.ts +0 -58
  73. package/dist/esm/components/bik-copilot/CopilotPanel.styled.js +0 -453
  74. package/dist/esm/components/bik-copilot/CopilotPanel.styled.js.map +0 -1
  75. package/dist/esm/components/bik-copilot/copilotPlacement.d.ts +0 -24
  76. package/dist/esm/components/bik-copilot/copilotPlacement.js +0 -38
  77. package/dist/esm/components/bik-copilot/copilotPlacement.js.map +0 -1
  78. package/dist/esm/components/bik-copilot/index.d.ts +0 -16
  79. package/dist/esm/components/bik-copilot/model.d.ts +0 -674
  80. package/dist/esm/components/bik-copilot/services/copilotDb.d.ts +0 -90
  81. package/dist/esm/components/bik-copilot/services/copilotDb.js +0 -96
  82. package/dist/esm/components/bik-copilot/services/copilotDb.js.map +0 -1
  83. package/dist/esm/components/bik-copilot/services/copilotIcebreakersClient.d.ts +0 -11
  84. package/dist/esm/components/bik-copilot/services/copilotIcebreakersClient.js +0 -54
  85. package/dist/esm/components/bik-copilot/services/copilotIcebreakersClient.js.map +0 -1
  86. package/dist/esm/components/bik-copilot/services/copilotMessagesClient.d.ts +0 -23
  87. package/dist/esm/components/bik-copilot/services/copilotMessagesClient.js +0 -78
  88. package/dist/esm/components/bik-copilot/services/copilotMessagesClient.js.map +0 -1
  89. package/dist/esm/components/bik-copilot/services/copilotPageSession.d.ts +0 -37
  90. package/dist/esm/components/bik-copilot/services/copilotPageSession.js +0 -35
  91. package/dist/esm/components/bik-copilot/services/copilotPageSession.js.map +0 -1
  92. package/dist/esm/components/bik-copilot/services/copilotSseParser.d.ts +0 -22
  93. package/dist/esm/components/bik-copilot/services/copilotSseParser.js +0 -52
  94. package/dist/esm/components/bik-copilot/services/copilotSseParser.js.map +0 -1
  95. package/dist/esm/components/bik-copilot/services/copilotStreamClient.d.ts +0 -31
  96. package/dist/esm/components/bik-copilot/services/copilotStreamClient.js +0 -103
  97. package/dist/esm/components/bik-copilot/services/copilotStreamClient.js.map +0 -1
  98. package/dist/esm/components/bik-copilot/useCopilotIcebreakers.d.ts +0 -17
  99. package/dist/esm/components/bik-copilot/useCopilotIcebreakers.js +0 -60
  100. package/dist/esm/components/bik-copilot/useCopilotIcebreakers.js.map +0 -1
  101. package/dist/esm/components/bik-copilot/useCopilotStreamChat.d.ts +0 -20
  102. package/dist/esm/components/bik-copilot/useCopilotStreamChat.js +0 -333
  103. package/dist/esm/components/bik-copilot/useCopilotStreamChat.js.map +0 -1
  104. package/dist/esm/components/bik-copilot/useDraggableFloater.d.ts +0 -9
  105. package/dist/esm/components/bik-copilot/useDraggableFloater.js +0 -118
  106. package/dist/esm/components/bik-copilot/useDraggableFloater.js.map +0 -1
@@ -1,44 +1,44 @@
1
- import { jsxs as je, Fragment as Ee, jsx as C } from "react/jsx-runtime";
2
- import { useState as u, useEffect as P, useCallback as S } from "react";
3
- import ce, { ACTIONS as pe } from "react-joyride";
4
- import oe from "./MajorUpdatePopup.js";
5
- import ne from "./MinorUpdatePopup.js";
6
- import { VideoModal as Ne } from "./VideoModal.js";
7
- import { useFeatureAnnouncements as Pe } from "./hooks/useFeatureAnnouncements.js";
8
- import { SELECTORS as We } from "./constants/selectors.js";
9
- const $e = ({
10
- children: fe,
11
- fetchVisibleFeatures: me,
12
- getStoreFeatureProgress: ge,
13
- fetchFeatureById: he,
14
- markFeatureAsViewedForStore: be,
15
- isFeatureApplicableToCurrentPage: ye,
16
- module: xe,
17
- router: W,
18
- storeId: E,
19
- onAnnouncementShown: re,
20
- onAnnouncementInteracted: L
1
+ import { jsxs as Et, Fragment as Pt, jsx as B } from "react/jsx-runtime";
2
+ import { useState as p, useEffect as O, useCallback as x } from "react";
3
+ import mt, { ACTIONS as ft } from "react-joyride";
4
+ import at from "./MajorUpdatePopup.js";
5
+ import rt from "./MinorUpdatePopup.js";
6
+ import { VideoModal as Vt } from "./VideoModal.js";
7
+ import { useFeatureAnnouncements as Wt } from "./hooks/useFeatureAnnouncements.js";
8
+ import { SELECTORS as Ot } from "./constants/selectors.js";
9
+ const At = ({
10
+ children: gt,
11
+ fetchVisibleFeatures: yt,
12
+ getStoreFeatureProgress: bt,
13
+ fetchFeatureById: ht,
14
+ markFeatureAsViewedForStore: xt,
15
+ isFeatureApplicableToCurrentPage: St,
16
+ module: kt,
17
+ router: L,
18
+ storeId: m,
19
+ onAnnouncementShown: $,
20
+ onAnnouncementInteracted: y
21
21
  }) => {
22
22
  const {
23
- majorUpdateFeatures: s,
24
- minorUpdateFeatures: I,
25
- isLoading: T,
26
- markFeatureAsViewed: p
27
- } = Pe({
28
- fetchVisibleFeatures: me,
29
- getStoreFeatureProgress: ge,
30
- fetchFeatureById: he,
31
- markFeatureAsViewedForStore: be,
32
- isFeatureApplicableToCurrentPage: ye,
33
- module: xe,
34
- router: W
35
- }), [m, B] = u(null), [l, w] = u(null), [O, v] = u(!1), [ae, k] = u([]), [Se, J] = u(!1), [se, U] = u([]), [ie, M] = u(!1), [h, b] = u(!1), [d, q] = u([]), [y, F] = u(!1), [x, j] = u(!1), [we, $] = u(!1), [ke, z] = u(""), [R, K] = u(!1), [Ce, _] = u(!1), [le, A] = u(!1), [Te, Me] = u(0), [Fe, Ie] = u(0), [N, Q] = u(
23
+ majorUpdateFeatures: r,
24
+ minorUpdateFeatures: P,
25
+ isLoading: F,
26
+ markFeatureAsViewed: u
27
+ } = Wt({
28
+ fetchVisibleFeatures: yt,
29
+ getStoreFeatureProgress: bt,
30
+ fetchFeatureById: ht,
31
+ markFeatureAsViewedForStore: xt,
32
+ isFeatureApplicableToCurrentPage: St,
33
+ module: kt,
34
+ router: L
35
+ }), [b, v] = p(null), [s, S] = p(null), [J, I] = p(!1), [st, k] = p([]), [wt, V] = p(!1), [lt, j] = p([]), [dt, w] = p(!1), [C, h] = p(!1), [l, z] = p([]), [T, M] = p(!1), [U, N] = p(!1), [Ct, q] = p(!1), [Tt, R] = p(""), [K, _] = p(!1), [Ut, A] = p(!1), [ct, Q] = p(!1), [Mt, Bt] = p(0), [Ft, vt] = p(0), [E, Z] = p(
36
36
  /* @__PURE__ */ new Set()
37
37
  );
38
- P(() => {
39
- const e = "minor-spotlight-cutout-style";
40
- let o = document.getElementById(e);
41
- return o || (o = document.createElement("style"), o.id = e, document.head.appendChild(o)), o.textContent = `
38
+ O(() => {
39
+ const t = "minor-spotlight-cutout-style";
40
+ let o = document.getElementById(t);
41
+ return o || (o = document.createElement("style"), o.id = t, document.head.appendChild(o)), o.textContent = `
42
42
  .react-joyride__spotlight {
43
43
  transition: box-shadow 0.3s ease-in-out !important;
44
44
  will-change: box-shadow, transform;
@@ -53,131 +53,132 @@ const $e = ({
53
53
  left: auto !important;
54
54
  }
55
55
  `, () => {
56
- const n = document.getElementById(e);
56
+ const n = document.getElementById(t);
57
57
  n && n.remove();
58
58
  };
59
- }, []), P(() => {
60
- Me((e) => e + 1), Ie((e) => e + 1), _(!1), A(!1), Q(/* @__PURE__ */ new Set());
61
- }, [W?.pathname]), P(() => {
62
- if (s.length > 0 && !m && !T && !ie && !R) {
63
- j(!1), F(!1), v(!1), k([]), w(null), q([]);
64
- let e = 0;
59
+ }, []), O(() => {
60
+ Bt((t) => t + 1), vt((t) => t + 1), A(!1), Q(!1), Z(/* @__PURE__ */ new Set());
61
+ }, [L?.pathname]), O(() => {
62
+ if (r.length > 0 && !b && !F && !dt && !K) {
63
+ N(!1), M(!1), I(!1), k([]), S(null), z([]);
64
+ let t = 0;
65
65
  const o = 10, n = () => {
66
- e++, document.querySelector(
66
+ t++, document.querySelector(
67
67
  '[data-testid="whats-new-button"]'
68
- ) ? de(s[0]) : e < o ? setTimeout(n, 1e3) : j(!0);
68
+ ) ? ut(r[0]) : t < o ? setTimeout(n, 1e3) : N(!0);
69
69
  };
70
70
  n();
71
- } else s.length === 0 && !T && j(!0);
71
+ } else r.length === 0 && !F && N(!0);
72
72
  }, [
73
- s,
74
- m,
75
- T,
76
- ie,
77
- R
78
- ]), P(() => {
79
- const e = W?.query?.featureId;
80
- if (!e || T || I.length === 0)
73
+ r,
74
+ b,
75
+ F,
76
+ dt,
77
+ K
78
+ ]), O(() => {
79
+ const t = L?.query?.featureId;
80
+ if (!t || F || P.length === 0)
81
81
  return;
82
- const o = I.find(
83
- (a) => a.id === e
82
+ const o = P.find(
83
+ (a) => a.id === t
84
84
  );
85
85
  if (!o || !o.featureTag)
86
86
  return;
87
- F(!0), b(!0);
87
+ M(!0), h(!0);
88
88
  let n = 0;
89
- const t = 25, r = setInterval(() => {
89
+ const e = 25, i = setInterval(() => {
90
90
  n++;
91
91
  const a = o.featureTag.startsWith("#") || o.featureTag.startsWith(".") || o.featureTag.startsWith("[") ? o.featureTag : `#${o.featureTag}`;
92
92
  if (document.querySelector(a)) {
93
93
  const c = [o];
94
- q(c), V(o, c), clearInterval(r);
95
- } else n >= t && (b(!1), clearInterval(r));
94
+ z(c), W(o, c), clearInterval(i);
95
+ } else n >= e && (h(!1), clearInterval(i));
96
96
  }, 200);
97
97
  return () => {
98
- clearInterval(r);
98
+ clearInterval(i);
99
99
  };
100
- }, [I, W?.query?.featureId, T]), P(() => {
101
- if (I.length > 0 && !T && !O && !h && !l && !y && x && !R) {
102
- let e = null, o = null, n = null, t = !1;
103
- const r = () => {
104
- if (t || h || l || y || !x)
100
+ }, [P, L?.query?.featureId, F]), O(() => {
101
+ if (P.length > 0 && !F && !J && !C && !s && !T && U && !K) {
102
+ let t = null, o = null, n = null, e = !1;
103
+ const i = () => {
104
+ if (e || C || s || T || !U)
105
105
  return;
106
- const a = I.filter((i) => {
107
- if (!i.featureTag || i.featureTag.trim() === "" || N.has(i.id))
106
+ const a = P.filter((d) => {
107
+ if (!d.featureTag || d.featureTag.trim() === "" || E.has(d.id))
108
108
  return !1;
109
- const c = i.featureTag.startsWith("#") || i.featureTag.startsWith(".") || i.featureTag.startsWith("[") ? i.featureTag : `#${i.featureTag}`;
109
+ const c = d.featureTag.startsWith("#") || d.featureTag.startsWith(".") || d.featureTag.startsWith("[") ? d.featureTag : `#${d.featureTag}`;
110
110
  return document.querySelector(c) !== null;
111
111
  });
112
- a.length > 0 && (q(a), V(a[0], a), e && (e.disconnect(), e = null), o && (window.removeEventListener("scroll", o), o = null), n && (clearTimeout(n), n = null));
112
+ a.length > 0 && (z(a), W(a[0], a), t && (t.disconnect(), t = null), o && (window.removeEventListener("scroll", o), o = null), n && (clearTimeout(n), n = null));
113
113
  };
114
- return e = new MutationObserver((a) => {
115
- let i = !1;
114
+ return t = new MutationObserver((a) => {
115
+ let d = !1;
116
116
  for (const c of a) {
117
117
  if (c.type === "childList" && c.addedNodes.length > 0)
118
- for (let f = 0; f < c.addedNodes.length; f++) {
119
- const g = c.addedNodes[f];
120
- if (g.nodeType === Node.ELEMENT_NODE) {
121
- const ue = g;
122
- if (ue.id || ue.querySelector("[id]")) {
123
- i = !0;
118
+ for (let g = 0; g < c.addedNodes.length; g++) {
119
+ const f = c.addedNodes[g];
120
+ if (f.nodeType === Node.ELEMENT_NODE) {
121
+ const pt = f;
122
+ if (pt.id || pt.querySelector("[id]")) {
123
+ d = !0;
124
124
  break;
125
125
  }
126
126
  }
127
127
  }
128
- if (i) break;
128
+ if (d) break;
129
129
  }
130
- !O && !t && !h && !l && !y && x && i && (n && clearTimeout(n), n = setTimeout(() => {
131
- !t && !h && !l && !y && x && r();
130
+ !J && !e && !C && !s && !T && U && d && (n && clearTimeout(n), n = setTimeout(() => {
131
+ !e && !C && !s && !T && U && i();
132
132
  }, 200));
133
133
  }), o = () => {
134
- !O && !t && !h && !l && !y && x && (n && clearTimeout(n), requestAnimationFrame(() => {
134
+ !J && !e && !C && !s && !T && U && (n && clearTimeout(n), requestAnimationFrame(() => {
135
135
  n = setTimeout(() => {
136
- !t && !h && !l && !y && x && r();
136
+ !e && !C && !s && !T && U && i();
137
137
  }, 300);
138
138
  }));
139
- }, e && e.observe(document.body, {
139
+ }, t && t.observe(document.body, {
140
140
  childList: !0,
141
141
  subtree: !0
142
- }), o && window.addEventListener("scroll", o, { passive: !0 }), r(), setTimeout(() => {
143
- !t && !h && !l && !y && x && r();
142
+ }), o && window.addEventListener("scroll", o, { passive: !0 }), i(), setTimeout(() => {
143
+ !e && !C && !s && !T && U && i();
144
144
  }, 100), setTimeout(() => {
145
- !t && !h && !l && !y && x && r();
145
+ !e && !C && !s && !T && U && i();
146
146
  }, 1e3), setTimeout(() => {
147
- !t && !h && !l && !y && x && r();
147
+ !e && !C && !s && !T && U && i();
148
148
  }, 500), () => {
149
- t = !0, e && e.disconnect(), o && window.removeEventListener("scroll", o), n && clearTimeout(n);
149
+ e = !0, t && t.disconnect(), o && window.removeEventListener("scroll", o), n && clearTimeout(n);
150
150
  };
151
- } else (I.length === 0 || T) && (W?.query?.featureId && l || (v(!1), k([]), w(null), q([]), F(!1)));
151
+ } else (P.length === 0 || F) && (L?.query?.featureId && s || (I(!1), k([]), S(null), z([]), M(!1)));
152
152
  }, [
153
- I,
153
+ P,
154
+ F,
155
+ J,
156
+ C,
157
+ s,
154
158
  T,
155
- O,
156
- h,
157
- l,
158
- y,
159
- x,
160
- p,
161
- R
159
+ U,
160
+ u,
161
+ K
162
162
  ]);
163
- const de = (e) => {
164
- B(e);
165
- const o = s.findIndex(
166
- (r) => r.id === e.id
167
- ), n = s.length, t = [
163
+ const ut = (t) => {
164
+ v(t);
165
+ const o = r.findIndex(
166
+ (i) => i.id === t.id
167
+ ), n = r.length, e = [
168
168
  {
169
- target: We.WHATS_NEW_BUTTON,
170
- content: /* @__PURE__ */ C(
171
- oe,
169
+ target: Ot.WHATS_NEW_BUTTON,
170
+ content: /* @__PURE__ */ B(
171
+ at,
172
172
  {
173
- feature: e,
173
+ feature: t,
174
174
  currentIndex: o,
175
175
  totalFeatures: n,
176
- onSkip: () => Z(e),
177
- onExplore: (r) => D(e, r),
178
- onPrevious: () => H(e),
179
- onNext: () => X(e),
180
- setIsClosing: _
176
+ onSkip: () => D(t),
177
+ onExplore: (i) => H(t, i),
178
+ onSecondaryAction: (i) => X(t, i),
179
+ onPrevious: () => G(t),
180
+ onNext: () => Y(t),
181
+ setIsClosing: A
181
182
  }
182
183
  ),
183
184
  placement: "bottom-start",
@@ -187,7 +188,7 @@ const $e = ({
187
188
  hideSkipButton: !0,
188
189
  hideFooter: !0,
189
190
  offset: 0,
190
- data: { feature: e, isMajor: !0 },
191
+ data: { feature: t, isMajor: !0 },
191
192
  styles: {
192
193
  tooltip: {
193
194
  padding: 0,
@@ -215,22 +216,22 @@ const $e = ({
215
216
  }
216
217
  }
217
218
  ];
218
- U(t), J(!0), re && E && re({
219
- storeId: E,
220
- announcementId: e.id,
221
- announcementTitle: e.title,
222
- imageUrl: e.displayImage || e.image,
223
- videoUrl: e.productVideo
219
+ j(e), V(!0), $ && m && $({
220
+ storeId: m,
221
+ announcementId: t.id,
222
+ announcementTitle: t.title,
223
+ imageUrl: t.displayImage || t.image,
224
+ videoUrl: t.productVideo
224
225
  });
225
- }, Z = S(
226
- async (e) => {
227
- const o = e || m;
228
- o && (M(!0), await Promise.all(
229
- s.map(
230
- (n) => p(n.id)
226
+ }, D = x(
227
+ async (t) => {
228
+ const o = t || b;
229
+ o && (w(!0), await Promise.all(
230
+ r.map(
231
+ (n) => u(n.id)
231
232
  )
232
- ), J(!1), B(null), U([]), j(!0), L && E && L({
233
- storeId: E,
233
+ ), V(!1), v(null), j([]), N(!0), y && m && y({
234
+ storeId: m,
234
235
  announcementId: o.id,
235
236
  announcementTitle: o.title,
236
237
  imageUrl: o.displayImage || o.image,
@@ -239,60 +240,81 @@ const $e = ({
239
240
  buttonName: "Skip",
240
241
  buttonUrl: void 0
241
242
  }), setTimeout(() => {
242
- M(!1);
243
+ w(!1);
243
244
  }, 500));
244
245
  },
245
- [m, s, p]
246
- ), D = S(
247
- async (e, o) => {
248
- M(!0), await p(e.id);
249
- const n = o ?? e.primaryButton?.action;
250
- if (n === "Play Video" && e.productVideo && (z(e.productVideo), $(!0), K(!0)), n === "Open link") {
251
- const a = e.primaryButton?.redirectionUrl || e.redirectUrl;
246
+ [b, r, u]
247
+ ), H = x(
248
+ async (t, o) => {
249
+ w(!0), await u(t.id);
250
+ const n = o ?? t.primaryButton?.action;
251
+ if (n === "Play Video" && t.productVideo && (R(t.productVideo), q(!0), _(!0)), n === "Open link") {
252
+ const a = t.primaryButton?.redirectionUrl || t.redirectUrl;
252
253
  a && !a.startsWith("http") && (window.location.href = a);
253
254
  }
254
- J(!1), B(null), U([]), s.findIndex(
255
- (a) => a.id === e.id
256
- ) === s.length - 1 && j(!0), L && E && L({
257
- storeId: E,
258
- announcementId: e.id,
259
- announcementTitle: e.title,
260
- imageUrl: e.displayImage || e.image,
261
- videoUrl: e.productVideo,
255
+ V(!1), v(null), j([]), r.findIndex(
256
+ (a) => a.id === t.id
257
+ ) === r.length - 1 && N(!0), y && m && y({
258
+ storeId: m,
259
+ announcementId: t.id,
260
+ announcementTitle: t.title,
261
+ imageUrl: t.displayImage || t.image,
262
+ videoUrl: t.productVideo,
262
263
  buttonClicked: "Primary",
263
- buttonName: e.buttonText || "Explore",
264
- buttonUrl: e.redirectUrl || e.productVideo
264
+ // Mirrors the rendered button and the navigation target, which both
265
+ // prefer primaryButton over the legacy top-level fields.
266
+ buttonName: t.primaryButton?.text || t.buttonText || "Explore",
267
+ buttonUrl: t.primaryButton?.redirectionUrl || t.redirectUrl || t.productVideo
268
+ }), setTimeout(() => {
269
+ w(!1);
270
+ }, 500);
271
+ },
272
+ [r, u]
273
+ ), X = x(
274
+ async (t, o) => {
275
+ w(!0), await u(t.id), (o ?? t.secondaryButton?.action) === "Play Video" && t.productVideo && (R(t.productVideo), q(!0), _(!0)), V(!1), v(null), j([]), r.findIndex(
276
+ (a) => a.id === t.id
277
+ ) === r.length - 1 && N(!0), y && m && y({
278
+ storeId: m,
279
+ announcementId: t.id,
280
+ announcementTitle: t.title,
281
+ imageUrl: t.displayImage || t.image,
282
+ videoUrl: t.productVideo,
283
+ buttonClicked: "Secondary",
284
+ buttonName: t.secondaryButton?.text || "Secondary",
285
+ buttonUrl: t.secondaryButton?.redirectionUrl
265
286
  }), setTimeout(() => {
266
- M(!1);
287
+ w(!1);
267
288
  }, 500);
268
289
  },
269
- [s, p]
270
- ), H = S(
271
- (e) => {
272
- const o = e || m;
290
+ [r, u]
291
+ ), G = x(
292
+ (t) => {
293
+ const o = t || b;
273
294
  if (!o)
274
295
  return;
275
- const n = s.findIndex(
276
- (t) => t.id === o.id
296
+ const n = r.findIndex(
297
+ (e) => e.id === o.id
277
298
  );
278
299
  if (n > 0) {
279
- const t = s[n - 1];
280
- B(t);
281
- const r = n - 1, a = s.length;
282
- U([
300
+ const e = r[n - 1];
301
+ v(e);
302
+ const i = n - 1, a = r.length;
303
+ j([
283
304
  {
284
305
  target: '[data-testid="whats-new-button"]',
285
- content: /* @__PURE__ */ C(
286
- oe,
306
+ content: /* @__PURE__ */ B(
307
+ at,
287
308
  {
288
- feature: t,
289
- currentIndex: r,
309
+ feature: e,
310
+ currentIndex: i,
290
311
  totalFeatures: a,
291
- onSkip: () => Z(t),
292
- onExplore: (c) => D(t, c),
293
- onPrevious: () => H(t),
294
- onNext: () => X(t),
295
- setIsClosing: _
312
+ onSkip: () => D(e),
313
+ onExplore: (c) => H(e, c),
314
+ onSecondaryAction: (c) => X(e, c),
315
+ onPrevious: () => G(e),
316
+ onNext: () => Y(e),
317
+ setIsClosing: A
296
318
  }
297
319
  ),
298
320
  placement: "bottom-start",
@@ -302,7 +324,7 @@ const $e = ({
302
324
  hideSkipButton: !0,
303
325
  hideFooter: !0,
304
326
  offset: 0,
305
- data: { feature: t, isMajor: !0 },
327
+ data: { feature: e, isMajor: !0 },
306
328
  styles: {
307
329
  tooltip: {
308
330
  padding: 0,
@@ -332,33 +354,34 @@ const $e = ({
332
354
  ]);
333
355
  }
334
356
  },
335
- [m, s]
336
- ), X = S(
337
- (e) => {
338
- const o = e || m;
357
+ [b, r]
358
+ ), Y = x(
359
+ (t) => {
360
+ const o = t || b;
339
361
  if (!o)
340
362
  return;
341
- const n = s.findIndex(
342
- (t) => t.id === o.id
363
+ const n = r.findIndex(
364
+ (e) => e.id === o.id
343
365
  );
344
- if (n < s.length - 1) {
345
- const t = s[n + 1];
346
- B(t);
347
- const r = n + 1, a = s.length;
348
- U([
366
+ if (n < r.length - 1) {
367
+ const e = r[n + 1];
368
+ v(e);
369
+ const i = n + 1, a = r.length;
370
+ j([
349
371
  {
350
372
  target: '[data-testid="whats-new-button"]',
351
- content: /* @__PURE__ */ C(
352
- oe,
373
+ content: /* @__PURE__ */ B(
374
+ at,
353
375
  {
354
- feature: t,
355
- currentIndex: r,
376
+ feature: e,
377
+ currentIndex: i,
356
378
  totalFeatures: a,
357
- onSkip: () => Z(t),
358
- onExplore: (c) => D(t, c),
359
- onPrevious: () => H(t),
360
- onNext: () => X(t),
361
- setIsClosing: _
379
+ onSkip: () => D(e),
380
+ onExplore: (c) => H(e, c),
381
+ onSecondaryAction: (c) => X(e, c),
382
+ onPrevious: () => G(e),
383
+ onNext: () => Y(e),
384
+ setIsClosing: A
362
385
  }
363
386
  ),
364
387
  placement: "bottom-start",
@@ -368,7 +391,7 @@ const $e = ({
368
391
  hideSkipButton: !0,
369
392
  hideFooter: !0,
370
393
  offset: 0,
371
- data: { feature: t, isMajor: !0 },
394
+ data: { feature: e, isMajor: !0 },
372
395
  styles: {
373
396
  tooltip: {
374
397
  padding: 0,
@@ -397,62 +420,72 @@ const $e = ({
397
420
  }
398
421
  ]);
399
422
  } else
400
- M(!0), p(o.id), J(!1), B(null), U([]), j(!0), setTimeout(() => {
401
- M(!1);
423
+ w(!0), u(o.id), V(!1), v(null), j([]), N(!0), setTimeout(() => {
424
+ w(!1);
402
425
  }, 500);
403
426
  },
404
- [m, s, p]
405
- ), Be = () => {
406
- s.length > 0 && !m && document.querySelector(
427
+ [b, r, u]
428
+ ), It = () => {
429
+ r.length > 0 && !b && document.querySelector(
407
430
  '[data-testid="whats-new-button"]'
408
- ) && de(s[0]);
431
+ ) && ut(r[0]);
409
432
  };
410
- P(() => (window.showMajorUpdatePopup = Be, () => {
433
+ O(() => (window.showMajorUpdatePopup = It, () => {
411
434
  delete window.showMajorUpdatePopup;
412
- }), [s, m]);
413
- const ve = S(
414
- (e) => {
415
- const { action: o } = e;
416
- o === pe.CLOSE && (m && (M(!0), s.forEach((n) => {
417
- p(n.id);
418
- }), j(!0), setTimeout(() => {
419
- M(!1);
420
- }, 500)), J(!1), B(null), U([]));
435
+ }), [r, b]);
436
+ const jt = x(
437
+ (t) => {
438
+ const { action: o } = t;
439
+ o === ft.CLOSE && (b && (w(!0), r.forEach((n) => {
440
+ u(n.id);
441
+ }), N(!0), setTimeout(() => {
442
+ w(!1);
443
+ }, 500)), V(!1), v(null), j([]));
421
444
  },
422
- [m, s, p]
423
- ), Ue = S(
424
- (e) => {
425
- const { action: o } = e;
426
- o === pe.CLOSE && (l && (b(!0), p(l.id), d.findIndex(
427
- (r) => r.id === l.id
428
- ) === d.length - 1 && F(!0), setTimeout(() => {
429
- b(!1);
430
- }, 500)), v(!1), w(null), k([]));
445
+ [b, r, u]
446
+ ), Nt = x(
447
+ (t) => {
448
+ const { action: o } = t;
449
+ o === ft.CLOSE && (s && (h(!0), u(s.id), l.findIndex(
450
+ (i) => i.id === s.id
451
+ ) === l.length - 1 && M(!0), y && m && y({
452
+ storeId: m,
453
+ announcementId: s.id,
454
+ announcementTitle: s.title,
455
+ imageUrl: s.displayImage || s.image,
456
+ videoUrl: s.productVideo,
457
+ buttonClicked: "Skip",
458
+ buttonName: "Skip",
459
+ buttonUrl: void 0
460
+ }), setTimeout(() => {
461
+ h(!1);
462
+ }, 500)), I(!1), S(null), k([]));
431
463
  },
432
- [l, d, p]
433
- ), V = async (e, o) => {
434
- w(e);
435
- const n = o || d, t = n.findIndex((f) => f.id === e.id), r = n.length, a = e.featureTag.startsWith("#") || e.featureTag.startsWith(".") || e.featureTag.startsWith("[") ? e.featureTag : `#${e.featureTag}`, i = document.querySelector(a);
436
- if (i)
464
+ [s, l, u]
465
+ ), W = async (t, o) => {
466
+ S(t);
467
+ const n = o || l, e = n.findIndex((g) => g.id === t.id), i = n.length, a = t.featureTag.startsWith("#") || t.featureTag.startsWith(".") || t.featureTag.startsWith("[") ? t.featureTag : `#${t.featureTag}`, d = document.querySelector(a);
468
+ if (d)
437
469
  try {
438
- const { scrollToElementSmooth: f } = await import("./utils/elementHelpers.js");
439
- await f(i, 120);
470
+ const { scrollToElementSmooth: g } = await import("./utils/elementHelpers.js");
471
+ await g(d, 120);
440
472
  } catch {
441
473
  }
442
474
  k([
443
475
  {
444
476
  target: a,
445
- content: /* @__PURE__ */ C(
446
- ne,
477
+ content: /* @__PURE__ */ B(
478
+ rt,
447
479
  {
448
- feature: e,
449
- currentIndex: t,
450
- totalFeatures: r,
451
- onSkip: () => G(e),
452
- onExplore: (f) => Y(e, f),
453
- onPrevious: () => ee(e),
454
- onNext: () => te(e),
455
- setIsClosing: A
480
+ feature: t,
481
+ currentIndex: e,
482
+ totalFeatures: i,
483
+ onSkip: () => tt(t),
484
+ onExplore: (g) => et(t, g),
485
+ onSecondaryAction: (g) => ot(t, g),
486
+ onPrevious: () => nt(t),
487
+ onNext: () => it(t),
488
+ setIsClosing: Q
456
489
  }
457
490
  ),
458
491
  placement: "bottom",
@@ -462,7 +495,7 @@ const $e = ({
462
495
  hideSkipButton: !0,
463
496
  hideFooter: !0,
464
497
  offset: 0,
465
- data: { feature: e, isMinor: !0 },
498
+ data: { feature: t, isMinor: !0 },
466
499
  styles: {
467
500
  tooltip: {
468
501
  padding: 0,
@@ -489,76 +522,125 @@ const $e = ({
489
522
  }
490
523
  }
491
524
  }
492
- ]), v(!0);
493
- }, G = S(
494
- async (e) => {
495
- const o = e || l;
525
+ ]), I(!0), $ && m && $({
526
+ storeId: m,
527
+ announcementId: t.id,
528
+ announcementTitle: t.title,
529
+ imageUrl: t.displayImage || t.image,
530
+ videoUrl: t.productVideo
531
+ });
532
+ }, tt = x(
533
+ async (t) => {
534
+ const o = t || s;
496
535
  if (o) {
497
- b(!0), await p(o.id), Q((t) => new Set(t).add(o.id)), v(!1), w(null), k([]);
498
- const n = d.find(
499
- (t) => t.id !== o.id && !N.has(t.id)
536
+ h(!0), await u(o.id), Z((e) => new Set(e).add(o.id)), I(!1), S(null), k([]);
537
+ const n = l.find(
538
+ (e) => e.id !== o.id && !E.has(e.id)
500
539
  );
501
- setTimeout(() => {
502
- b(!1), n ? V(n, d) : F(!0);
540
+ y && m && y({
541
+ storeId: m,
542
+ announcementId: o.id,
543
+ announcementTitle: o.title,
544
+ imageUrl: o.displayImage || o.image,
545
+ videoUrl: o.productVideo,
546
+ buttonClicked: "Skip",
547
+ buttonName: "Skip",
548
+ buttonUrl: void 0
549
+ }), setTimeout(() => {
550
+ h(!1), n ? W(n, l) : M(!0);
503
551
  }, 500);
504
552
  }
505
553
  },
506
554
  [
555
+ s,
507
556
  l,
508
- d,
509
- p,
510
- N
557
+ u,
558
+ E
511
559
  ]
512
- ), Y = S(
513
- async (e, o) => {
514
- b(!0), await p(e.id), Q((r) => new Set(r).add(e.id));
515
- const n = o ?? e.primaryButton?.action;
516
- if (n === "Play Video" && e.productVideo && (z(e.productVideo), $(!0), K(!0)), n === "Open link") {
517
- const r = e.primaryButton?.redirectionUrl || e.redirectUrl;
518
- r && !r.startsWith("http") && (window.location.href = r);
560
+ ), et = x(
561
+ async (t, o) => {
562
+ h(!0), await u(t.id), Z((i) => new Set(i).add(t.id));
563
+ const n = o ?? t.primaryButton?.action;
564
+ if (n === "Play Video" && t.productVideo && (R(t.productVideo), q(!0), _(!0)), n === "Open link") {
565
+ const i = t.primaryButton?.redirectionUrl || t.redirectUrl;
566
+ i && !i.startsWith("http") && (window.location.href = i);
519
567
  }
520
- v(!1), w(null), k([]);
521
- const t = d.find(
522
- (r) => r.id !== e.id && !N.has(r.id)
568
+ I(!1), S(null), k([]);
569
+ const e = l.find(
570
+ (i) => i.id !== t.id && !E.has(i.id)
523
571
  );
524
- setTimeout(() => {
525
- b(!1), t && n !== "Play Video" ? V(t, d) : t || F(!0);
572
+ y && m && y({
573
+ storeId: m,
574
+ announcementId: t.id,
575
+ announcementTitle: t.title,
576
+ imageUrl: t.displayImage || t.image,
577
+ videoUrl: t.productVideo,
578
+ buttonClicked: "Primary",
579
+ // Mirrors the rendered button and the navigation target, which both
580
+ // prefer primaryButton over the legacy top-level fields.
581
+ buttonName: t.primaryButton?.text || t.buttonText || "Explore",
582
+ buttonUrl: t.primaryButton?.redirectionUrl || t.redirectUrl || t.productVideo
583
+ }), setTimeout(() => {
584
+ h(!1), e && n !== "Play Video" ? W(e, l) : e || M(!0);
526
585
  }, 500);
527
586
  },
528
- [d, p, N]
529
- ), ee = S(
530
- async (e) => {
531
- const o = e || l;
587
+ [l, u, E]
588
+ ), ot = x(
589
+ async (t, o) => {
590
+ h(!0), await u(t.id), Z((i) => new Set(i).add(t.id));
591
+ const n = o ?? t.secondaryButton?.action;
592
+ n === "Play Video" && t.productVideo && (R(t.productVideo), q(!0), _(!0)), I(!1), S(null), k([]);
593
+ const e = l.find(
594
+ (i) => i.id !== t.id && !E.has(i.id)
595
+ );
596
+ y && m && y({
597
+ storeId: m,
598
+ announcementId: t.id,
599
+ announcementTitle: t.title,
600
+ imageUrl: t.displayImage || t.image,
601
+ videoUrl: t.productVideo,
602
+ buttonClicked: "Secondary",
603
+ buttonName: t.secondaryButton?.text || "Secondary",
604
+ buttonUrl: t.secondaryButton?.redirectionUrl
605
+ }), setTimeout(() => {
606
+ h(!1), e && n !== "Play Video" ? W(e, l) : e || M(!0);
607
+ }, 500);
608
+ },
609
+ [l, u, E]
610
+ ), nt = x(
611
+ async (t) => {
612
+ const o = t || s;
532
613
  if (!o)
533
614
  return;
534
- const n = d.findIndex(
535
- (t) => t.id === o.id
615
+ const n = l.findIndex(
616
+ (e) => e.id === o.id
536
617
  );
537
618
  if (n > 0) {
538
- const t = d[n - 1];
539
- w(t);
540
- const r = t.featureTag.startsWith("#") || t.featureTag.startsWith(".") || t.featureTag.startsWith("[") ? t.featureTag : `#${t.featureTag}`, a = document.querySelector(r);
619
+ const e = l[n - 1];
620
+ S(e);
621
+ const i = e.featureTag.startsWith("#") || e.featureTag.startsWith(".") || e.featureTag.startsWith("[") ? e.featureTag : `#${e.featureTag}`, a = document.querySelector(i);
541
622
  if (a)
542
623
  try {
543
- const { scrollToElementSmooth: g } = await import("./utils/elementHelpers.js");
544
- await g(a, 120);
624
+ const { scrollToElementSmooth: f } = await import("./utils/elementHelpers.js");
625
+ await f(a, 120);
545
626
  } catch {
546
627
  }
547
- const i = n - 1, c = d.length;
628
+ const d = n - 1, c = l.length;
548
629
  k([
549
630
  {
550
- target: r,
551
- content: /* @__PURE__ */ C(
552
- ne,
631
+ target: i,
632
+ content: /* @__PURE__ */ B(
633
+ rt,
553
634
  {
554
- feature: t,
555
- currentIndex: i,
635
+ feature: e,
636
+ currentIndex: d,
556
637
  totalFeatures: c,
557
- onSkip: () => G(t),
558
- onExplore: (g) => Y(t, g),
559
- onPrevious: () => ee(t),
560
- onNext: () => te(t),
561
- setIsClosing: A
638
+ onSkip: () => tt(e),
639
+ onExplore: (f) => et(e, f),
640
+ onSecondaryAction: (f) => ot(e, f),
641
+ onPrevious: () => nt(e),
642
+ onNext: () => it(e),
643
+ setIsClosing: Q
562
644
  }
563
645
  ),
564
646
  placement: "bottom",
@@ -568,7 +650,7 @@ const $e = ({
568
650
  hideSkipButton: !0,
569
651
  hideFooter: !0,
570
652
  offset: 0,
571
- data: { feature: t, isMinor: !0 },
653
+ data: { feature: e, isMinor: !0 },
572
654
  styles: {
573
655
  tooltip: {
574
656
  padding: 0,
@@ -598,40 +680,41 @@ const $e = ({
598
680
  ]);
599
681
  }
600
682
  },
601
- [l, d]
602
- ), te = S(
603
- async (e) => {
604
- const o = e || l;
683
+ [s, l]
684
+ ), it = x(
685
+ async (t) => {
686
+ const o = t || s;
605
687
  if (!o)
606
688
  return;
607
- const n = d.findIndex(
608
- (t) => t.id === o.id
689
+ const n = l.findIndex(
690
+ (e) => e.id === o.id
609
691
  );
610
- if (n < d.length - 1) {
611
- const t = d[n + 1];
612
- w(t);
613
- const r = t.featureTag.startsWith("#") || t.featureTag.startsWith(".") || t.featureTag.startsWith("[") ? t.featureTag : `#${t.featureTag}`, a = document.querySelector(r);
692
+ if (n < l.length - 1) {
693
+ const e = l[n + 1];
694
+ S(e);
695
+ const i = e.featureTag.startsWith("#") || e.featureTag.startsWith(".") || e.featureTag.startsWith("[") ? e.featureTag : `#${e.featureTag}`, a = document.querySelector(i);
614
696
  if (a)
615
697
  try {
616
- const { scrollToElementSmooth: g } = await import("./utils/elementHelpers.js");
617
- await g(a, 120);
698
+ const { scrollToElementSmooth: f } = await import("./utils/elementHelpers.js");
699
+ await f(a, 120);
618
700
  } catch {
619
701
  }
620
- const i = n + 1, c = d.length;
702
+ const d = n + 1, c = l.length;
621
703
  k([
622
704
  {
623
- target: r,
624
- content: /* @__PURE__ */ C(
625
- ne,
705
+ target: i,
706
+ content: /* @__PURE__ */ B(
707
+ rt,
626
708
  {
627
- feature: t,
628
- currentIndex: i,
709
+ feature: e,
710
+ currentIndex: d,
629
711
  totalFeatures: c,
630
- onSkip: () => G(t),
631
- onExplore: (g) => Y(t, g),
632
- onPrevious: () => ee(t),
633
- onNext: () => te(t),
634
- setIsClosing: A
712
+ onSkip: () => tt(e),
713
+ onExplore: (f) => et(e, f),
714
+ onSecondaryAction: (f) => ot(e, f),
715
+ onPrevious: () => nt(e),
716
+ onNext: () => it(e),
717
+ setIsClosing: Q
635
718
  }
636
719
  ),
637
720
  placement: "bottom",
@@ -641,7 +724,7 @@ const $e = ({
641
724
  hideSkipButton: !0,
642
725
  hideFooter: !0,
643
726
  offset: 0,
644
- data: { feature: t, isMinor: !0 },
727
+ data: { feature: e, isMinor: !0 },
645
728
  styles: {
646
729
  tooltip: {
647
730
  padding: 0,
@@ -670,23 +753,23 @@ const $e = ({
670
753
  }
671
754
  ]);
672
755
  } else
673
- b(!0), F(!0), p(o.id), v(!1), w(null), k([]), setTimeout(() => {
674
- b(!1);
756
+ h(!0), M(!0), u(o.id), I(!1), S(null), k([]), setTimeout(() => {
757
+ h(!1);
675
758
  }, 500);
676
759
  },
677
- [l, d, p]
760
+ [s, l, u]
678
761
  );
679
- return /* @__PURE__ */ je(Ee, { children: [
680
- fe,
681
- se.length > 0 && /* @__PURE__ */ C(
682
- ce,
762
+ return /* @__PURE__ */ Et(Pt, { children: [
763
+ gt,
764
+ lt.length > 0 && /* @__PURE__ */ B(
765
+ mt,
683
766
  {
684
- steps: se,
685
- run: Se,
767
+ steps: lt,
768
+ run: wt,
686
769
  continuous: !1,
687
770
  showProgress: !1,
688
771
  showSkipButton: !1,
689
- callback: ve,
772
+ callback: jt,
690
773
  disableOverlayClose: !1,
691
774
  disableCloseOnEsc: !1,
692
775
  disableOverlay: !1,
@@ -696,7 +779,7 @@ const $e = ({
696
779
  primaryColor: "#007bff",
697
780
  zIndex: 1e4,
698
781
  width: "auto",
699
- arrowColor: Ce ? "transparent" : "#212121"
782
+ arrowColor: Ut ? "transparent" : "#212121"
700
783
  },
701
784
  overlay: {
702
785
  backgroundColor: "transparent"
@@ -739,17 +822,17 @@ const $e = ({
739
822
  skip: "Skip"
740
823
  }
741
824
  },
742
- `major-joyride-${Te}`
825
+ `major-joyride-${Mt}`
743
826
  ),
744
- ae.length > 0 && /* @__PURE__ */ C(
745
- ce,
827
+ st.length > 0 && /* @__PURE__ */ B(
828
+ mt,
746
829
  {
747
- steps: ae,
748
- run: O,
830
+ steps: st,
831
+ run: J,
749
832
  continuous: !1,
750
833
  showProgress: !1,
751
834
  showSkipButton: !1,
752
- callback: Ue,
835
+ callback: Nt,
753
836
  disableOverlayClose: !1,
754
837
  disableCloseOnEsc: !1,
755
838
  disableOverlay: !1,
@@ -761,7 +844,7 @@ const $e = ({
761
844
  primaryColor: "#007bff",
762
845
  zIndex: 1e4,
763
846
  width: "auto",
764
- arrowColor: le ? "transparent" : "#ffffff"
847
+ arrowColor: ct ? "transparent" : "#ffffff"
765
848
  },
766
849
  overlay: {
767
850
  backgroundColor: "transparent"
@@ -769,7 +852,7 @@ const $e = ({
769
852
  spotlight: {
770
853
  backgroundColor: "transparent",
771
854
  borderRadius: "8px",
772
- boxShadow: le ? "none" : "0 0 0 9999px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 20px 8px rgba(255, 255, 255, 0.4)"
855
+ boxShadow: ct ? "none" : "0 0 0 9999px rgba(0, 0, 0, 0.4), 0 0 0 3px rgba(255, 255, 255, 0.8), 0 0 20px 8px rgba(255, 255, 255, 0.4)"
773
856
  },
774
857
  tooltip: {
775
858
  borderRadius: "4px",
@@ -804,27 +887,27 @@ const $e = ({
804
887
  skip: "Skip"
805
888
  }
806
889
  },
807
- `minor-joyride-${Fe}`
890
+ `minor-joyride-${Ft}`
808
891
  ),
809
- /* @__PURE__ */ C(
810
- Ne,
892
+ /* @__PURE__ */ B(
893
+ Vt,
811
894
  {
812
- isOpen: we,
813
- videoUrl: ke,
895
+ isOpen: Ct,
896
+ videoUrl: Tt,
814
897
  onClose: () => {
815
- $(!1), z(""), K(!1);
816
- const e = d.find(
817
- (o) => !N.has(o.id)
898
+ q(!1), R(""), _(!1);
899
+ const t = l.find(
900
+ (o) => !E.has(o.id)
818
901
  );
819
- e ? setTimeout(() => {
820
- V(e, d);
821
- }, 300) : F(!0);
902
+ t ? setTimeout(() => {
903
+ W(t, l);
904
+ }, 300) : M(!0);
822
905
  }
823
906
  }
824
907
  )
825
908
  ] });
826
909
  };
827
910
  export {
828
- $e as default
911
+ At as default
829
912
  };
830
913
  //# sourceMappingURL=FeatureAnnouncementProvider.js.map