@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.
- package/README.md +4 -25
- package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js +2 -2
- package/dist/cjs/components/feature-announcements/FeatureAnnouncementProvider.js.map +1 -1
- package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js +2 -2
- package/dist/cjs/components/feature-announcements/MajorUpdatePopup.js.map +1 -1
- package/dist/cjs/components/feature-announcements/MinorUpdatePopup.js +1 -1
- package/dist/cjs/components/feature-announcements/MinorUpdatePopup.js.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js +416 -333
- package/dist/esm/components/feature-announcements/FeatureAnnouncementProvider.js.map +1 -1
- package/dist/esm/components/feature-announcements/MajorUpdatePopup.js +33 -35
- package/dist/esm/components/feature-announcements/MajorUpdatePopup.js.map +1 -1
- package/dist/esm/components/feature-announcements/MinorUpdatePopup.js +47 -48
- package/dist/esm/components/feature-announcements/MinorUpdatePopup.js.map +1 -1
- package/dist/esm/components/feature-announcements/types/props.types.d.ts +2 -2
- package/dist/esm/index.d.ts +0 -1
- package/dist/esm/index.js +743 -793
- package/dist/esm/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/cjs/components/bik-copilot/BIKCopilot.js +0 -2
- package/dist/cjs/components/bik-copilot/BIKCopilot.js.map +0 -1
- package/dist/cjs/components/bik-copilot/ControlledCopilot.js +0 -2
- package/dist/cjs/components/bik-copilot/ControlledCopilot.js.map +0 -1
- package/dist/cjs/components/bik-copilot/ControlledCopilot.styled.js +0 -27
- package/dist/cjs/components/bik-copilot/ControlledCopilot.styled.js.map +0 -1
- package/dist/cjs/components/bik-copilot/CopilotBall.js +0 -2
- package/dist/cjs/components/bik-copilot/CopilotBall.js.map +0 -1
- package/dist/cjs/components/bik-copilot/CopilotBall.styled.js +0 -42
- package/dist/cjs/components/bik-copilot/CopilotBall.styled.js.map +0 -1
- package/dist/cjs/components/bik-copilot/CopilotPanel.js +0 -2
- package/dist/cjs/components/bik-copilot/CopilotPanel.js.map +0 -1
- package/dist/cjs/components/bik-copilot/CopilotPanel.styled.js +0 -419
- package/dist/cjs/components/bik-copilot/CopilotPanel.styled.js.map +0 -1
- package/dist/cjs/components/bik-copilot/copilotPlacement.js +0 -2
- package/dist/cjs/components/bik-copilot/copilotPlacement.js.map +0 -1
- package/dist/cjs/components/bik-copilot/services/copilotDb.js +0 -2
- package/dist/cjs/components/bik-copilot/services/copilotDb.js.map +0 -1
- package/dist/cjs/components/bik-copilot/services/copilotIcebreakersClient.js +0 -2
- package/dist/cjs/components/bik-copilot/services/copilotIcebreakersClient.js.map +0 -1
- package/dist/cjs/components/bik-copilot/services/copilotMessagesClient.js +0 -2
- package/dist/cjs/components/bik-copilot/services/copilotMessagesClient.js.map +0 -1
- package/dist/cjs/components/bik-copilot/services/copilotPageSession.js +0 -2
- package/dist/cjs/components/bik-copilot/services/copilotPageSession.js.map +0 -1
- package/dist/cjs/components/bik-copilot/services/copilotSseParser.js +0 -7
- package/dist/cjs/components/bik-copilot/services/copilotSseParser.js.map +0 -1
- package/dist/cjs/components/bik-copilot/services/copilotStreamClient.js +0 -2
- package/dist/cjs/components/bik-copilot/services/copilotStreamClient.js.map +0 -1
- package/dist/cjs/components/bik-copilot/useCopilotIcebreakers.js +0 -2
- package/dist/cjs/components/bik-copilot/useCopilotIcebreakers.js.map +0 -1
- package/dist/cjs/components/bik-copilot/useCopilotStreamChat.js +0 -2
- package/dist/cjs/components/bik-copilot/useCopilotStreamChat.js.map +0 -1
- package/dist/cjs/components/bik-copilot/useDraggableFloater.js +0 -2
- package/dist/cjs/components/bik-copilot/useDraggableFloater.js.map +0 -1
- package/dist/esm/components/bik-copilot/BIKCopilot.d.ts +0 -32
- package/dist/esm/components/bik-copilot/BIKCopilot.js +0 -114
- package/dist/esm/components/bik-copilot/BIKCopilot.js.map +0 -1
- package/dist/esm/components/bik-copilot/ControlledCopilot.d.ts +0 -14
- package/dist/esm/components/bik-copilot/ControlledCopilot.js +0 -170
- package/dist/esm/components/bik-copilot/ControlledCopilot.js.map +0 -1
- package/dist/esm/components/bik-copilot/ControlledCopilot.styled.d.ts +0 -7
- package/dist/esm/components/bik-copilot/ControlledCopilot.styled.js +0 -31
- package/dist/esm/components/bik-copilot/ControlledCopilot.styled.js.map +0 -1
- package/dist/esm/components/bik-copilot/CopilotBall.d.ts +0 -13
- package/dist/esm/components/bik-copilot/CopilotBall.js +0 -50
- package/dist/esm/components/bik-copilot/CopilotBall.js.map +0 -1
- package/dist/esm/components/bik-copilot/CopilotBall.styled.d.ts +0 -9
- package/dist/esm/components/bik-copilot/CopilotBall.styled.js +0 -46
- package/dist/esm/components/bik-copilot/CopilotBall.styled.js.map +0 -1
- package/dist/esm/components/bik-copilot/CopilotPanel.d.ts +0 -9
- package/dist/esm/components/bik-copilot/CopilotPanel.js +0 -309
- package/dist/esm/components/bik-copilot/CopilotPanel.js.map +0 -1
- package/dist/esm/components/bik-copilot/CopilotPanel.styled.d.ts +0 -58
- package/dist/esm/components/bik-copilot/CopilotPanel.styled.js +0 -453
- package/dist/esm/components/bik-copilot/CopilotPanel.styled.js.map +0 -1
- package/dist/esm/components/bik-copilot/copilotPlacement.d.ts +0 -24
- package/dist/esm/components/bik-copilot/copilotPlacement.js +0 -38
- package/dist/esm/components/bik-copilot/copilotPlacement.js.map +0 -1
- package/dist/esm/components/bik-copilot/index.d.ts +0 -16
- package/dist/esm/components/bik-copilot/model.d.ts +0 -674
- package/dist/esm/components/bik-copilot/services/copilotDb.d.ts +0 -90
- package/dist/esm/components/bik-copilot/services/copilotDb.js +0 -96
- package/dist/esm/components/bik-copilot/services/copilotDb.js.map +0 -1
- package/dist/esm/components/bik-copilot/services/copilotIcebreakersClient.d.ts +0 -11
- package/dist/esm/components/bik-copilot/services/copilotIcebreakersClient.js +0 -54
- package/dist/esm/components/bik-copilot/services/copilotIcebreakersClient.js.map +0 -1
- package/dist/esm/components/bik-copilot/services/copilotMessagesClient.d.ts +0 -23
- package/dist/esm/components/bik-copilot/services/copilotMessagesClient.js +0 -78
- package/dist/esm/components/bik-copilot/services/copilotMessagesClient.js.map +0 -1
- package/dist/esm/components/bik-copilot/services/copilotPageSession.d.ts +0 -37
- package/dist/esm/components/bik-copilot/services/copilotPageSession.js +0 -35
- package/dist/esm/components/bik-copilot/services/copilotPageSession.js.map +0 -1
- package/dist/esm/components/bik-copilot/services/copilotSseParser.d.ts +0 -22
- package/dist/esm/components/bik-copilot/services/copilotSseParser.js +0 -52
- package/dist/esm/components/bik-copilot/services/copilotSseParser.js.map +0 -1
- package/dist/esm/components/bik-copilot/services/copilotStreamClient.d.ts +0 -31
- package/dist/esm/components/bik-copilot/services/copilotStreamClient.js +0 -103
- package/dist/esm/components/bik-copilot/services/copilotStreamClient.js.map +0 -1
- package/dist/esm/components/bik-copilot/useCopilotIcebreakers.d.ts +0 -17
- package/dist/esm/components/bik-copilot/useCopilotIcebreakers.js +0 -60
- package/dist/esm/components/bik-copilot/useCopilotIcebreakers.js.map +0 -1
- package/dist/esm/components/bik-copilot/useCopilotStreamChat.d.ts +0 -20
- package/dist/esm/components/bik-copilot/useCopilotStreamChat.js +0 -333
- package/dist/esm/components/bik-copilot/useCopilotStreamChat.js.map +0 -1
- package/dist/esm/components/bik-copilot/useDraggableFloater.d.ts +0 -9
- package/dist/esm/components/bik-copilot/useDraggableFloater.js +0 -118
- package/dist/esm/components/bik-copilot/useDraggableFloater.js.map +0 -1
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useState as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { VideoModal as
|
|
7
|
-
import { useFeatureAnnouncements as
|
|
8
|
-
import { SELECTORS as
|
|
9
|
-
const
|
|
10
|
-
children:
|
|
11
|
-
fetchVisibleFeatures:
|
|
12
|
-
getStoreFeatureProgress:
|
|
13
|
-
fetchFeatureById:
|
|
14
|
-
markFeatureAsViewedForStore:
|
|
15
|
-
isFeatureApplicableToCurrentPage:
|
|
16
|
-
module:
|
|
17
|
-
router:
|
|
18
|
-
storeId:
|
|
19
|
-
onAnnouncementShown:
|
|
20
|
-
onAnnouncementInteracted:
|
|
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:
|
|
24
|
-
minorUpdateFeatures:
|
|
25
|
-
isLoading:
|
|
26
|
-
markFeatureAsViewed:
|
|
27
|
-
} =
|
|
28
|
-
fetchVisibleFeatures:
|
|
29
|
-
getStoreFeatureProgress:
|
|
30
|
-
fetchFeatureById:
|
|
31
|
-
markFeatureAsViewedForStore:
|
|
32
|
-
isFeatureApplicableToCurrentPage:
|
|
33
|
-
module:
|
|
34
|
-
router:
|
|
35
|
-
}), [
|
|
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
|
-
|
|
39
|
-
const
|
|
40
|
-
let o = document.getElementById(
|
|
41
|
-
return o || (o = document.createElement("style"), o.id =
|
|
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(
|
|
56
|
+
const n = document.getElementById(t);
|
|
57
57
|
n && n.remove();
|
|
58
58
|
};
|
|
59
|
-
}, []),
|
|
60
|
-
|
|
61
|
-
}, [
|
|
62
|
-
if (
|
|
63
|
-
|
|
64
|
-
let
|
|
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
|
-
|
|
66
|
+
t++, document.querySelector(
|
|
67
67
|
'[data-testid="whats-new-button"]'
|
|
68
|
-
) ?
|
|
68
|
+
) ? ut(r[0]) : t < o ? setTimeout(n, 1e3) : N(!0);
|
|
69
69
|
};
|
|
70
70
|
n();
|
|
71
|
-
} else
|
|
71
|
+
} else r.length === 0 && !F && N(!0);
|
|
72
72
|
}, [
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
]),
|
|
79
|
-
const
|
|
80
|
-
if (!
|
|
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 =
|
|
83
|
-
(a) => a.id ===
|
|
82
|
+
const o = P.find(
|
|
83
|
+
(a) => a.id === t
|
|
84
84
|
);
|
|
85
85
|
if (!o || !o.featureTag)
|
|
86
86
|
return;
|
|
87
|
-
|
|
87
|
+
M(!0), h(!0);
|
|
88
88
|
let n = 0;
|
|
89
|
-
const
|
|
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
|
-
|
|
95
|
-
} else n >=
|
|
94
|
+
z(c), W(o, c), clearInterval(i);
|
|
95
|
+
} else n >= e && (h(!1), clearInterval(i));
|
|
96
96
|
}, 200);
|
|
97
97
|
return () => {
|
|
98
|
-
clearInterval(
|
|
98
|
+
clearInterval(i);
|
|
99
99
|
};
|
|
100
|
-
}, [
|
|
101
|
-
if (
|
|
102
|
-
let
|
|
103
|
-
const
|
|
104
|
-
if (
|
|
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 =
|
|
107
|
-
if (!
|
|
106
|
+
const a = P.filter((d) => {
|
|
107
|
+
if (!d.featureTag || d.featureTag.trim() === "" || E.has(d.id))
|
|
108
108
|
return !1;
|
|
109
|
-
const c =
|
|
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 && (
|
|
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
|
|
115
|
-
let
|
|
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
|
|
119
|
-
const
|
|
120
|
-
if (
|
|
121
|
-
const
|
|
122
|
-
if (
|
|
123
|
-
|
|
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 (
|
|
128
|
+
if (d) break;
|
|
129
129
|
}
|
|
130
|
-
!
|
|
131
|
-
!
|
|
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
|
-
!
|
|
134
|
+
!J && !e && !C && !s && !T && U && (n && clearTimeout(n), requestAnimationFrame(() => {
|
|
135
135
|
n = setTimeout(() => {
|
|
136
|
-
!
|
|
136
|
+
!e && !C && !s && !T && U && i();
|
|
137
137
|
}, 300);
|
|
138
138
|
}));
|
|
139
|
-
},
|
|
139
|
+
}, t && t.observe(document.body, {
|
|
140
140
|
childList: !0,
|
|
141
141
|
subtree: !0
|
|
142
|
-
}), o && window.addEventListener("scroll", o, { passive: !0 }),
|
|
143
|
-
!
|
|
142
|
+
}), o && window.addEventListener("scroll", o, { passive: !0 }), i(), setTimeout(() => {
|
|
143
|
+
!e && !C && !s && !T && U && i();
|
|
144
144
|
}, 100), setTimeout(() => {
|
|
145
|
-
!
|
|
145
|
+
!e && !C && !s && !T && U && i();
|
|
146
146
|
}, 1e3), setTimeout(() => {
|
|
147
|
-
!
|
|
147
|
+
!e && !C && !s && !T && U && i();
|
|
148
148
|
}, 500), () => {
|
|
149
|
-
|
|
149
|
+
e = !0, t && t.disconnect(), o && window.removeEventListener("scroll", o), n && clearTimeout(n);
|
|
150
150
|
};
|
|
151
|
-
} else (
|
|
151
|
+
} else (P.length === 0 || F) && (L?.query?.featureId && s || (I(!1), k([]), S(null), z([]), M(!1)));
|
|
152
152
|
}, [
|
|
153
|
-
|
|
153
|
+
P,
|
|
154
|
+
F,
|
|
155
|
+
J,
|
|
156
|
+
C,
|
|
157
|
+
s,
|
|
154
158
|
T,
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
y,
|
|
159
|
-
x,
|
|
160
|
-
p,
|
|
161
|
-
R
|
|
159
|
+
U,
|
|
160
|
+
u,
|
|
161
|
+
K
|
|
162
162
|
]);
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
const o =
|
|
166
|
-
(
|
|
167
|
-
), n =
|
|
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:
|
|
170
|
-
content: /* @__PURE__ */
|
|
171
|
-
|
|
169
|
+
target: Ot.WHATS_NEW_BUTTON,
|
|
170
|
+
content: /* @__PURE__ */ B(
|
|
171
|
+
at,
|
|
172
172
|
{
|
|
173
|
-
feature:
|
|
173
|
+
feature: t,
|
|
174
174
|
currentIndex: o,
|
|
175
175
|
totalFeatures: n,
|
|
176
|
-
onSkip: () =>
|
|
177
|
-
onExplore: (
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
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:
|
|
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
|
-
|
|
219
|
-
storeId:
|
|
220
|
-
announcementId:
|
|
221
|
-
announcementTitle:
|
|
222
|
-
imageUrl:
|
|
223
|
-
videoUrl:
|
|
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
|
-
},
|
|
226
|
-
async (
|
|
227
|
-
const o =
|
|
228
|
-
o && (
|
|
229
|
-
|
|
230
|
-
(n) =>
|
|
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
|
-
),
|
|
233
|
-
storeId:
|
|
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
|
-
|
|
243
|
+
w(!1);
|
|
243
244
|
}, 500));
|
|
244
245
|
},
|
|
245
|
-
[
|
|
246
|
-
),
|
|
247
|
-
async (
|
|
248
|
-
|
|
249
|
-
const n = o ??
|
|
250
|
-
if (n === "Play Video" &&
|
|
251
|
-
const a =
|
|
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
|
-
|
|
255
|
-
(a) => a.id ===
|
|
256
|
-
) ===
|
|
257
|
-
storeId:
|
|
258
|
-
announcementId:
|
|
259
|
-
announcementTitle:
|
|
260
|
-
imageUrl:
|
|
261
|
-
videoUrl:
|
|
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
|
-
|
|
264
|
-
|
|
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
|
-
|
|
287
|
+
w(!1);
|
|
267
288
|
}, 500);
|
|
268
289
|
},
|
|
269
|
-
[
|
|
270
|
-
),
|
|
271
|
-
(
|
|
272
|
-
const o =
|
|
290
|
+
[r, u]
|
|
291
|
+
), G = x(
|
|
292
|
+
(t) => {
|
|
293
|
+
const o = t || b;
|
|
273
294
|
if (!o)
|
|
274
295
|
return;
|
|
275
|
-
const n =
|
|
276
|
-
(
|
|
296
|
+
const n = r.findIndex(
|
|
297
|
+
(e) => e.id === o.id
|
|
277
298
|
);
|
|
278
299
|
if (n > 0) {
|
|
279
|
-
const
|
|
280
|
-
|
|
281
|
-
const
|
|
282
|
-
|
|
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__ */
|
|
286
|
-
|
|
306
|
+
content: /* @__PURE__ */ B(
|
|
307
|
+
at,
|
|
287
308
|
{
|
|
288
|
-
feature:
|
|
289
|
-
currentIndex:
|
|
309
|
+
feature: e,
|
|
310
|
+
currentIndex: i,
|
|
290
311
|
totalFeatures: a,
|
|
291
|
-
onSkip: () =>
|
|
292
|
-
onExplore: (c) =>
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
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:
|
|
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
|
-
[
|
|
336
|
-
),
|
|
337
|
-
(
|
|
338
|
-
const o =
|
|
357
|
+
[b, r]
|
|
358
|
+
), Y = x(
|
|
359
|
+
(t) => {
|
|
360
|
+
const o = t || b;
|
|
339
361
|
if (!o)
|
|
340
362
|
return;
|
|
341
|
-
const n =
|
|
342
|
-
(
|
|
363
|
+
const n = r.findIndex(
|
|
364
|
+
(e) => e.id === o.id
|
|
343
365
|
);
|
|
344
|
-
if (n <
|
|
345
|
-
const
|
|
346
|
-
|
|
347
|
-
const
|
|
348
|
-
|
|
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__ */
|
|
352
|
-
|
|
373
|
+
content: /* @__PURE__ */ B(
|
|
374
|
+
at,
|
|
353
375
|
{
|
|
354
|
-
feature:
|
|
355
|
-
currentIndex:
|
|
376
|
+
feature: e,
|
|
377
|
+
currentIndex: i,
|
|
356
378
|
totalFeatures: a,
|
|
357
|
-
onSkip: () =>
|
|
358
|
-
onExplore: (c) =>
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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:
|
|
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
|
-
|
|
401
|
-
|
|
423
|
+
w(!0), u(o.id), V(!1), v(null), j([]), N(!0), setTimeout(() => {
|
|
424
|
+
w(!1);
|
|
402
425
|
}, 500);
|
|
403
426
|
},
|
|
404
|
-
[
|
|
405
|
-
),
|
|
406
|
-
|
|
427
|
+
[b, r, u]
|
|
428
|
+
), It = () => {
|
|
429
|
+
r.length > 0 && !b && document.querySelector(
|
|
407
430
|
'[data-testid="whats-new-button"]'
|
|
408
|
-
) &&
|
|
431
|
+
) && ut(r[0]);
|
|
409
432
|
};
|
|
410
|
-
|
|
433
|
+
O(() => (window.showMajorUpdatePopup = It, () => {
|
|
411
434
|
delete window.showMajorUpdatePopup;
|
|
412
|
-
}), [
|
|
413
|
-
const
|
|
414
|
-
(
|
|
415
|
-
const { action: o } =
|
|
416
|
-
o ===
|
|
417
|
-
|
|
418
|
-
}),
|
|
419
|
-
|
|
420
|
-
}, 500)),
|
|
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
|
-
[
|
|
423
|
-
),
|
|
424
|
-
(
|
|
425
|
-
const { action: o } =
|
|
426
|
-
o ===
|
|
427
|
-
(
|
|
428
|
-
) ===
|
|
429
|
-
|
|
430
|
-
|
|
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
|
-
[
|
|
433
|
-
),
|
|
434
|
-
|
|
435
|
-
const n = o ||
|
|
436
|
-
if (
|
|
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:
|
|
439
|
-
await
|
|
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__ */
|
|
446
|
-
|
|
477
|
+
content: /* @__PURE__ */ B(
|
|
478
|
+
rt,
|
|
447
479
|
{
|
|
448
|
-
feature:
|
|
449
|
-
currentIndex:
|
|
450
|
-
totalFeatures:
|
|
451
|
-
onSkip: () =>
|
|
452
|
-
onExplore: (
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
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:
|
|
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
|
-
]),
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
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
|
-
|
|
498
|
-
const n =
|
|
499
|
-
(
|
|
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
|
-
|
|
502
|
-
|
|
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
|
-
|
|
509
|
-
|
|
510
|
-
N
|
|
557
|
+
u,
|
|
558
|
+
E
|
|
511
559
|
]
|
|
512
|
-
),
|
|
513
|
-
async (
|
|
514
|
-
|
|
515
|
-
const n = o ??
|
|
516
|
-
if (n === "Play Video" &&
|
|
517
|
-
const
|
|
518
|
-
|
|
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
|
-
|
|
521
|
-
const
|
|
522
|
-
(
|
|
568
|
+
I(!1), S(null), k([]);
|
|
569
|
+
const e = l.find(
|
|
570
|
+
(i) => i.id !== t.id && !E.has(i.id)
|
|
523
571
|
);
|
|
524
|
-
|
|
525
|
-
|
|
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
|
-
[
|
|
529
|
-
),
|
|
530
|
-
async (
|
|
531
|
-
|
|
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 =
|
|
535
|
-
(
|
|
615
|
+
const n = l.findIndex(
|
|
616
|
+
(e) => e.id === o.id
|
|
536
617
|
);
|
|
537
618
|
if (n > 0) {
|
|
538
|
-
const
|
|
539
|
-
|
|
540
|
-
const
|
|
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:
|
|
544
|
-
await
|
|
624
|
+
const { scrollToElementSmooth: f } = await import("./utils/elementHelpers.js");
|
|
625
|
+
await f(a, 120);
|
|
545
626
|
} catch {
|
|
546
627
|
}
|
|
547
|
-
const
|
|
628
|
+
const d = n - 1, c = l.length;
|
|
548
629
|
k([
|
|
549
630
|
{
|
|
550
|
-
target:
|
|
551
|
-
content: /* @__PURE__ */
|
|
552
|
-
|
|
631
|
+
target: i,
|
|
632
|
+
content: /* @__PURE__ */ B(
|
|
633
|
+
rt,
|
|
553
634
|
{
|
|
554
|
-
feature:
|
|
555
|
-
currentIndex:
|
|
635
|
+
feature: e,
|
|
636
|
+
currentIndex: d,
|
|
556
637
|
totalFeatures: c,
|
|
557
|
-
onSkip: () =>
|
|
558
|
-
onExplore: (
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
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:
|
|
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
|
-
[
|
|
602
|
-
),
|
|
603
|
-
async (
|
|
604
|
-
const o =
|
|
683
|
+
[s, l]
|
|
684
|
+
), it = x(
|
|
685
|
+
async (t) => {
|
|
686
|
+
const o = t || s;
|
|
605
687
|
if (!o)
|
|
606
688
|
return;
|
|
607
|
-
const n =
|
|
608
|
-
(
|
|
689
|
+
const n = l.findIndex(
|
|
690
|
+
(e) => e.id === o.id
|
|
609
691
|
);
|
|
610
|
-
if (n <
|
|
611
|
-
const
|
|
612
|
-
|
|
613
|
-
const
|
|
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:
|
|
617
|
-
await
|
|
698
|
+
const { scrollToElementSmooth: f } = await import("./utils/elementHelpers.js");
|
|
699
|
+
await f(a, 120);
|
|
618
700
|
} catch {
|
|
619
701
|
}
|
|
620
|
-
const
|
|
702
|
+
const d = n + 1, c = l.length;
|
|
621
703
|
k([
|
|
622
704
|
{
|
|
623
|
-
target:
|
|
624
|
-
content: /* @__PURE__ */
|
|
625
|
-
|
|
705
|
+
target: i,
|
|
706
|
+
content: /* @__PURE__ */ B(
|
|
707
|
+
rt,
|
|
626
708
|
{
|
|
627
|
-
feature:
|
|
628
|
-
currentIndex:
|
|
709
|
+
feature: e,
|
|
710
|
+
currentIndex: d,
|
|
629
711
|
totalFeatures: c,
|
|
630
|
-
onSkip: () =>
|
|
631
|
-
onExplore: (
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
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:
|
|
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
|
-
|
|
674
|
-
|
|
756
|
+
h(!0), M(!0), u(o.id), I(!1), S(null), k([]), setTimeout(() => {
|
|
757
|
+
h(!1);
|
|
675
758
|
}, 500);
|
|
676
759
|
},
|
|
677
|
-
[
|
|
760
|
+
[s, l, u]
|
|
678
761
|
);
|
|
679
|
-
return /* @__PURE__ */
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
762
|
+
return /* @__PURE__ */ Et(Pt, { children: [
|
|
763
|
+
gt,
|
|
764
|
+
lt.length > 0 && /* @__PURE__ */ B(
|
|
765
|
+
mt,
|
|
683
766
|
{
|
|
684
|
-
steps:
|
|
685
|
-
run:
|
|
767
|
+
steps: lt,
|
|
768
|
+
run: wt,
|
|
686
769
|
continuous: !1,
|
|
687
770
|
showProgress: !1,
|
|
688
771
|
showSkipButton: !1,
|
|
689
|
-
callback:
|
|
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:
|
|
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-${
|
|
825
|
+
`major-joyride-${Mt}`
|
|
743
826
|
),
|
|
744
|
-
|
|
745
|
-
|
|
827
|
+
st.length > 0 && /* @__PURE__ */ B(
|
|
828
|
+
mt,
|
|
746
829
|
{
|
|
747
|
-
steps:
|
|
748
|
-
run:
|
|
830
|
+
steps: st,
|
|
831
|
+
run: J,
|
|
749
832
|
continuous: !1,
|
|
750
833
|
showProgress: !1,
|
|
751
834
|
showSkipButton: !1,
|
|
752
|
-
callback:
|
|
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:
|
|
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:
|
|
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-${
|
|
890
|
+
`minor-joyride-${Ft}`
|
|
808
891
|
),
|
|
809
|
-
/* @__PURE__ */
|
|
810
|
-
|
|
892
|
+
/* @__PURE__ */ B(
|
|
893
|
+
Vt,
|
|
811
894
|
{
|
|
812
|
-
isOpen:
|
|
813
|
-
videoUrl:
|
|
895
|
+
isOpen: Ct,
|
|
896
|
+
videoUrl: Tt,
|
|
814
897
|
onClose: () => {
|
|
815
|
-
|
|
816
|
-
const
|
|
817
|
-
(o) => !
|
|
898
|
+
q(!1), R(""), _(!1);
|
|
899
|
+
const t = l.find(
|
|
900
|
+
(o) => !E.has(o.id)
|
|
818
901
|
);
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
}, 300) :
|
|
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
|
-
|
|
911
|
+
At as default
|
|
829
912
|
};
|
|
830
913
|
//# sourceMappingURL=FeatureAnnouncementProvider.js.map
|