@sidebandai/sideband-web 1.4.5-rc.4 → 1.4.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/README.md +12 -0
- package/dist/index.js +284 -147
- package/dist/sideband.iife.js +1 -1
- package/dist/ui/snackbar-ui.d.ts +11 -0
- package/dist/ui/snackbar-ui.d.ts.map +1 -1
- package/dist/ui/survey-ui.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,9 +1,124 @@
|
|
|
1
1
|
import { PendingInteractionStorageError as e, SidebandApiError as t, SurveySessionStore as n, SurveySessionStore as r, SyncEngine as i, buildFabTitle as a, buildFabTitle as o, createSidebandClient as s, createSidebandRuntime as c, getChoiceValue as l, getChoiceValue as u, getDeviceId as d, getSessionId as f, isPositiveSentimentChoice as p, isSystemOtherChoice as m, resolveSnackbarPresentation as h } from "@sidebandai/sideband-core";
|
|
2
|
+
function g(e, t) {
|
|
3
|
+
let n = !1, r = null, i = null, a = null, o = Date.now(), s = () => {
|
|
4
|
+
n = !0, r?.disconnect(), r = null, i !== null && clearInterval(i), i = null, document.removeEventListener("visibilitychange", l);
|
|
5
|
+
}, c = () => a === null ? r && Date.now() - o < 1e3 ? !1 : te(e) : a;
|
|
6
|
+
function l() {
|
|
7
|
+
n || !ee(e) || !c() || (s(), t());
|
|
8
|
+
}
|
|
9
|
+
return typeof IntersectionObserver < "u" && (r = new IntersectionObserver((e) => {
|
|
10
|
+
let t = e[e.length - 1];
|
|
11
|
+
t && (a = t.isIntersecting), l();
|
|
12
|
+
}), r.observe(e)), l(), n ? s : (document.addEventListener("visibilitychange", l), i = setInterval(l, 200), s);
|
|
13
|
+
}
|
|
14
|
+
function ee(e) {
|
|
15
|
+
if (!e.isConnected) return !1;
|
|
16
|
+
for (let t of [e, ...ie(e)]) {
|
|
17
|
+
let e = t.ownerDocument.defaultView;
|
|
18
|
+
if (!e || t.ownerDocument.visibilityState === "hidden" || !re(t, e)) return !1;
|
|
19
|
+
}
|
|
20
|
+
return !0;
|
|
21
|
+
}
|
|
22
|
+
function te(e) {
|
|
23
|
+
let t = e, n = _(e.getBoundingClientRect());
|
|
24
|
+
for (;;) {
|
|
25
|
+
if (n = ne(t, n), !n) return !1;
|
|
26
|
+
let e = b(t);
|
|
27
|
+
if (!e) return !0;
|
|
28
|
+
let r = e.getBoundingClientRect();
|
|
29
|
+
if (n = y({
|
|
30
|
+
left: n.left + r.left,
|
|
31
|
+
right: n.right + r.left,
|
|
32
|
+
top: n.top + r.top,
|
|
33
|
+
bottom: n.bottom + r.top
|
|
34
|
+
}, _(r)), !n) return !1;
|
|
35
|
+
t = e;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
var _ = (e) => ({
|
|
39
|
+
left: e.left,
|
|
40
|
+
top: e.top,
|
|
41
|
+
right: e.right,
|
|
42
|
+
bottom: e.bottom
|
|
43
|
+
});
|
|
44
|
+
function ne(e, t) {
|
|
45
|
+
let n = e.ownerDocument.defaultView;
|
|
46
|
+
if (!n) return null;
|
|
47
|
+
let r = e.ownerDocument, i = v(n.getComputedStyle(r.documentElement)), a = !i.x && !i.y, o = n.getComputedStyle(e).position === "fixed", s = t;
|
|
48
|
+
for (let t = x(e); t && s; t = x(t)) {
|
|
49
|
+
if (t === r.documentElement || t === r.body && a) continue;
|
|
50
|
+
let e = n.getComputedStyle(t);
|
|
51
|
+
if (!o) {
|
|
52
|
+
let { x: n, y: r } = v(e);
|
|
53
|
+
if (n || r) {
|
|
54
|
+
let e = _(t.getBoundingClientRect());
|
|
55
|
+
s = y(s, {
|
|
56
|
+
left: n ? e.left : -Infinity,
|
|
57
|
+
right: n ? e.right : Infinity,
|
|
58
|
+
top: r ? e.top : -Infinity,
|
|
59
|
+
bottom: r ? e.bottom : Infinity
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
e.position === "fixed" && (o = !0);
|
|
64
|
+
}
|
|
65
|
+
if (!s) return null;
|
|
66
|
+
let c = n.innerWidth || e.ownerDocument.documentElement.clientWidth, l = n.innerHeight || e.ownerDocument.documentElement.clientHeight;
|
|
67
|
+
return y(s, {
|
|
68
|
+
left: 0,
|
|
69
|
+
top: 0,
|
|
70
|
+
right: c,
|
|
71
|
+
bottom: l
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
function v(e) {
|
|
75
|
+
let t = (e) => e !== "" && e !== "visible";
|
|
76
|
+
return {
|
|
77
|
+
x: t(e.overflowX || e.overflow),
|
|
78
|
+
y: t(e.overflowY || e.overflow)
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
function y(e, t) {
|
|
82
|
+
let n = {
|
|
83
|
+
left: Math.max(e.left, t.left),
|
|
84
|
+
top: Math.max(e.top, t.top),
|
|
85
|
+
right: Math.min(e.right, t.right),
|
|
86
|
+
bottom: Math.min(e.bottom, t.bottom)
|
|
87
|
+
};
|
|
88
|
+
return n.left <= n.right && n.top <= n.bottom ? n : null;
|
|
89
|
+
}
|
|
90
|
+
function re(e, t) {
|
|
91
|
+
let n = e;
|
|
92
|
+
if (typeof n.checkVisibility == "function") return n.checkVisibility({ visibilityProperty: !0 }) && e.offsetWidth > 0 && e.offsetHeight > 0;
|
|
93
|
+
if (t.getComputedStyle(e).visibility === "hidden") return !1;
|
|
94
|
+
for (let n = e; n; n = x(n)) if (t.getComputedStyle(n).display === "none") return !1;
|
|
95
|
+
return !0;
|
|
96
|
+
}
|
|
97
|
+
function ie(e) {
|
|
98
|
+
let t = [];
|
|
99
|
+
for (let n = b(e); n; n = b(n)) t.push(n);
|
|
100
|
+
return t;
|
|
101
|
+
}
|
|
102
|
+
function b(e) {
|
|
103
|
+
let t = e.ownerDocument.defaultView;
|
|
104
|
+
if (!t || t.parent === t) return null;
|
|
105
|
+
try {
|
|
106
|
+
return t.frameElement;
|
|
107
|
+
} catch {
|
|
108
|
+
return null;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
function x(e) {
|
|
112
|
+
if (e.parentElement) return e.parentElement;
|
|
113
|
+
let t = e.getRootNode();
|
|
114
|
+
return t !== e.ownerDocument && t.host ? t.host : null;
|
|
115
|
+
}
|
|
116
|
+
//#endregion
|
|
2
117
|
//#region ../design-tokens/src/index.ts
|
|
3
|
-
var
|
|
118
|
+
var ae = "rgba(0, 0, 0, 0)", S = (e, t = 1) => ({
|
|
4
119
|
hex: e,
|
|
5
120
|
alpha: t
|
|
6
|
-
}),
|
|
121
|
+
}), C = (e, t) => [
|
|
7
122
|
{
|
|
8
123
|
variable: `--sb-theme-choice-${e}-background`,
|
|
9
124
|
path: [
|
|
@@ -31,7 +146,7 @@ var g = "rgba(0, 0, 0, 0)", _ = (e, t = 1) => ({
|
|
|
31
146
|
],
|
|
32
147
|
fallback: t[2]
|
|
33
148
|
}
|
|
34
|
-
],
|
|
149
|
+
], w = (e, t) => [
|
|
35
150
|
{
|
|
36
151
|
variable: `--sb-theme-button-${e}-foreground`,
|
|
37
152
|
path: [
|
|
@@ -86,220 +201,220 @@ var g = "rgba(0, 0, 0, 0)", _ = (e, t = 1) => ({
|
|
|
86
201
|
],
|
|
87
202
|
fallback: t[5]
|
|
88
203
|
}
|
|
89
|
-
],
|
|
204
|
+
], T = [
|
|
90
205
|
{
|
|
91
206
|
variable: "--sb-theme-sheet-background",
|
|
92
207
|
path: ["sheet", "background"],
|
|
93
|
-
fallback:
|
|
208
|
+
fallback: S("#FFFFFF")
|
|
94
209
|
},
|
|
95
210
|
{
|
|
96
211
|
variable: "--sb-theme-sheet-scrim",
|
|
97
212
|
path: ["sheet", "scrim"],
|
|
98
|
-
fallback:
|
|
213
|
+
fallback: S("#000000", .5)
|
|
99
214
|
},
|
|
100
215
|
{
|
|
101
216
|
variable: "--sb-theme-sheet-divider",
|
|
102
217
|
path: ["sheet", "divider"],
|
|
103
|
-
fallback:
|
|
218
|
+
fallback: S("#E5E5E5")
|
|
104
219
|
},
|
|
105
220
|
{
|
|
106
221
|
variable: "--sb-theme-sheet-progress-track",
|
|
107
222
|
path: ["sheet", "progressTrack"],
|
|
108
|
-
fallback:
|
|
223
|
+
fallback: S("#000000", .12)
|
|
109
224
|
},
|
|
110
225
|
{
|
|
111
226
|
variable: "--sb-theme-sheet-progress-fill",
|
|
112
227
|
path: ["sheet", "progressFill"],
|
|
113
|
-
fallback:
|
|
228
|
+
fallback: S("#000000")
|
|
114
229
|
},
|
|
115
230
|
{
|
|
116
231
|
variable: "--sb-theme-sheet-close-button-background",
|
|
117
232
|
path: ["sheet", "closeButtonBackground"],
|
|
118
|
-
fallback:
|
|
233
|
+
fallback: S("#000000", 0)
|
|
119
234
|
},
|
|
120
235
|
{
|
|
121
236
|
variable: "--sb-theme-sheet-close-button-foreground",
|
|
122
237
|
path: ["sheet", "closeButtonForeground"],
|
|
123
|
-
fallback:
|
|
238
|
+
fallback: S("#000000")
|
|
124
239
|
},
|
|
125
240
|
{
|
|
126
241
|
variable: "--sb-theme-content-heading",
|
|
127
242
|
path: ["content", "heading"],
|
|
128
|
-
fallback:
|
|
243
|
+
fallback: S("#000000")
|
|
129
244
|
},
|
|
130
245
|
{
|
|
131
246
|
variable: "--sb-theme-content-body",
|
|
132
247
|
path: ["content", "body"],
|
|
133
|
-
fallback:
|
|
248
|
+
fallback: S("#333030")
|
|
134
249
|
},
|
|
135
250
|
{
|
|
136
251
|
variable: "--sb-theme-content-helper",
|
|
137
252
|
path: ["content", "helper"],
|
|
138
|
-
fallback:
|
|
253
|
+
fallback: S("#5C5C5C")
|
|
139
254
|
},
|
|
140
255
|
{
|
|
141
256
|
variable: "--sb-theme-content-error",
|
|
142
257
|
path: ["content", "error"],
|
|
143
|
-
fallback:
|
|
258
|
+
fallback: S("#B42318")
|
|
144
259
|
},
|
|
145
260
|
{
|
|
146
261
|
variable: "--sb-theme-completion-outer-background",
|
|
147
262
|
path: ["completion", "outerBackground"],
|
|
148
|
-
fallback:
|
|
263
|
+
fallback: S("#E8E8E8")
|
|
149
264
|
},
|
|
150
265
|
{
|
|
151
266
|
variable: "--sb-theme-completion-inner-background",
|
|
152
267
|
path: ["completion", "innerBackground"],
|
|
153
|
-
fallback:
|
|
268
|
+
fallback: S("#000000")
|
|
154
269
|
},
|
|
155
270
|
{
|
|
156
271
|
variable: "--sb-theme-completion-glyph",
|
|
157
272
|
path: ["completion", "glyph"],
|
|
158
|
-
fallback:
|
|
273
|
+
fallback: S("#FFFFFF")
|
|
159
274
|
},
|
|
160
|
-
...
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
275
|
+
...C("default", [
|
|
276
|
+
S("#FFFFFF"),
|
|
277
|
+
S("#000000"),
|
|
278
|
+
S("#DBDBDB")
|
|
164
279
|
]),
|
|
165
|
-
...
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
280
|
+
...C("hover", [
|
|
281
|
+
S("#F5F5F5"),
|
|
282
|
+
S("#000000"),
|
|
283
|
+
S("#DBDBDB")
|
|
169
284
|
]),
|
|
170
|
-
...
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
285
|
+
...C("pressed", [
|
|
286
|
+
S("#000000"),
|
|
287
|
+
S("#FFFFFF"),
|
|
288
|
+
S("#000000")
|
|
174
289
|
]),
|
|
175
|
-
...
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
290
|
+
...C("selected", [
|
|
291
|
+
S("#000000"),
|
|
292
|
+
S("#FFFFFF"),
|
|
293
|
+
S("#000000")
|
|
179
294
|
]),
|
|
180
|
-
...
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
295
|
+
...C("disabled", [
|
|
296
|
+
S("#F2F2F2"),
|
|
297
|
+
S("#8A8A8A"),
|
|
298
|
+
S("#E5E5E5")
|
|
184
299
|
]),
|
|
185
|
-
...
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
300
|
+
...w("primary", [
|
|
301
|
+
S("#FFFFFF"),
|
|
302
|
+
S("#121212"),
|
|
303
|
+
S("#292929"),
|
|
304
|
+
S("#000000"),
|
|
305
|
+
S("#E5E5E5"),
|
|
306
|
+
S("#8A8A8A")
|
|
192
307
|
]),
|
|
193
|
-
...
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
308
|
+
...w("secondary", [
|
|
309
|
+
S("#000000"),
|
|
310
|
+
S("#F2F2F2"),
|
|
311
|
+
S("#E8E8E8"),
|
|
312
|
+
S("#DBDBDB"),
|
|
313
|
+
S("#E5E5E5"),
|
|
314
|
+
S("#8A8A8A")
|
|
200
315
|
]),
|
|
201
|
-
...
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
316
|
+
...w("tertiary", [
|
|
317
|
+
S("#000000"),
|
|
318
|
+
S("#FFFFFF"),
|
|
319
|
+
S("#F5F5F5"),
|
|
320
|
+
S("#E8E8E8"),
|
|
321
|
+
S("#E5E5E5"),
|
|
322
|
+
S("#8A8A8A")
|
|
208
323
|
]),
|
|
209
324
|
{
|
|
210
325
|
variable: "--sb-theme-input-background",
|
|
211
326
|
path: ["input", "background"],
|
|
212
|
-
fallback:
|
|
327
|
+
fallback: S("#FFFFFF")
|
|
213
328
|
},
|
|
214
329
|
{
|
|
215
330
|
variable: "--sb-theme-input-foreground",
|
|
216
331
|
path: ["input", "foreground"],
|
|
217
|
-
fallback:
|
|
332
|
+
fallback: S("#000000")
|
|
218
333
|
},
|
|
219
334
|
{
|
|
220
335
|
variable: "--sb-theme-input-placeholder",
|
|
221
336
|
path: ["input", "placeholder"],
|
|
222
|
-
fallback:
|
|
337
|
+
fallback: S("#000000", .4)
|
|
223
338
|
},
|
|
224
339
|
{
|
|
225
340
|
variable: "--sb-theme-input-border",
|
|
226
341
|
path: ["input", "border"],
|
|
227
|
-
fallback:
|
|
342
|
+
fallback: S("#000000", .18)
|
|
228
343
|
},
|
|
229
344
|
{
|
|
230
345
|
variable: "--sb-theme-input-focused-border",
|
|
231
346
|
path: ["input", "focusedBorder"],
|
|
232
|
-
fallback:
|
|
347
|
+
fallback: S("#000000", .7)
|
|
233
348
|
},
|
|
234
349
|
{
|
|
235
350
|
variable: "--sb-theme-input-error-border",
|
|
236
351
|
path: ["input", "errorBorder"],
|
|
237
|
-
fallback:
|
|
352
|
+
fallback: S("#B42318")
|
|
238
353
|
},
|
|
239
354
|
{
|
|
240
355
|
variable: "--sb-theme-input-disabled-background",
|
|
241
356
|
path: ["input", "disabledBackground"],
|
|
242
|
-
fallback:
|
|
357
|
+
fallback: S("#F2F2F2")
|
|
243
358
|
},
|
|
244
359
|
{
|
|
245
360
|
variable: "--sb-theme-input-disabled-foreground",
|
|
246
361
|
path: ["input", "disabledForeground"],
|
|
247
|
-
fallback:
|
|
362
|
+
fallback: S("#8A8A8A")
|
|
248
363
|
},
|
|
249
364
|
{
|
|
250
365
|
variable: "--sb-theme-fab-background",
|
|
251
366
|
path: ["fab", "background"],
|
|
252
|
-
fallback:
|
|
367
|
+
fallback: S("#000000")
|
|
253
368
|
},
|
|
254
369
|
{
|
|
255
370
|
variable: "--sb-theme-fab-foreground",
|
|
256
371
|
path: ["fab", "foreground"],
|
|
257
|
-
fallback:
|
|
372
|
+
fallback: S("#FFFFFF")
|
|
258
373
|
},
|
|
259
374
|
{
|
|
260
375
|
variable: "--sb-theme-fab-border",
|
|
261
376
|
path: ["fab", "border"],
|
|
262
|
-
fallback:
|
|
377
|
+
fallback: S("#FFFFFF", .15)
|
|
263
378
|
},
|
|
264
379
|
{
|
|
265
380
|
variable: "--sb-theme-fab-accent-primary",
|
|
266
381
|
path: ["fab", "accentPrimary"],
|
|
267
|
-
fallback:
|
|
382
|
+
fallback: S("#000000")
|
|
268
383
|
},
|
|
269
384
|
{
|
|
270
385
|
variable: "--sb-theme-fab-accent-secondary",
|
|
271
386
|
path: ["fab", "accentSecondary"],
|
|
272
|
-
fallback:
|
|
387
|
+
fallback: S("#FFFFFF")
|
|
273
388
|
},
|
|
274
389
|
{
|
|
275
390
|
variable: "--sb-theme-fab-timer-track",
|
|
276
391
|
path: ["fab", "timerTrack"],
|
|
277
|
-
fallback:
|
|
392
|
+
fallback: S("#000000", .16)
|
|
278
393
|
},
|
|
279
394
|
{
|
|
280
395
|
variable: "--sb-theme-fab-timer-fill",
|
|
281
396
|
path: ["fab", "timerFill"],
|
|
282
|
-
fallback:
|
|
397
|
+
fallback: S("#000000")
|
|
283
398
|
}
|
|
284
399
|
];
|
|
285
|
-
|
|
286
|
-
var
|
|
287
|
-
function
|
|
400
|
+
T.map((e) => e.variable);
|
|
401
|
+
var oe = Object.fromEntries(T.map((e) => [e.variable, D(e.fallback)]));
|
|
402
|
+
function E(e) {
|
|
288
403
|
return e && typeof e == "object" && !Array.isArray(e) ? e : {};
|
|
289
404
|
}
|
|
290
|
-
function
|
|
405
|
+
function D(e, t = ae) {
|
|
291
406
|
return !e || typeof e.hex != "string" || !/^#[0-9a-fA-F]{6}$/.test(e.hex) || !Number.isFinite(e.alpha) || e.alpha < 0 || e.alpha > 1 ? t : `rgba(${Number.parseInt(e.hex.slice(1, 3), 16)}, ${Number.parseInt(e.hex.slice(3, 5), 16)}, ${Number.parseInt(e.hex.slice(5, 7), 16)}, ${e.alpha})`;
|
|
292
407
|
}
|
|
293
|
-
function
|
|
408
|
+
function O(e, t) {
|
|
294
409
|
let n = e;
|
|
295
|
-
for (let e of t) n =
|
|
410
|
+
for (let e of t) n = E(n)[e];
|
|
296
411
|
return n;
|
|
297
412
|
}
|
|
298
|
-
function
|
|
299
|
-
return Object.fromEntries(
|
|
413
|
+
function se(e) {
|
|
414
|
+
return Object.fromEntries(T.map((t) => [t.variable, D(O(e, t.path), D(t.fallback))]));
|
|
300
415
|
}
|
|
301
|
-
function
|
|
302
|
-
return
|
|
416
|
+
function k(e, t) {
|
|
417
|
+
return S(`#${[
|
|
303
418
|
1,
|
|
304
419
|
3,
|
|
305
420
|
5
|
|
@@ -308,10 +423,10 @@ function w(e, t) {
|
|
|
308
423
|
return Math.round(r * e.alpha + i * (1 - e.alpha)).toString(16).padStart(2, "0");
|
|
309
424
|
}).join("")}`, 1);
|
|
310
425
|
}
|
|
311
|
-
function
|
|
426
|
+
function ce(e) {
|
|
312
427
|
let t = (t) => {
|
|
313
|
-
let n =
|
|
314
|
-
return
|
|
428
|
+
let n = T.find((e) => e.path.join(".") === t.join(".")), r = O(e, t);
|
|
429
|
+
return D(r, "") ? r : n.fallback;
|
|
315
430
|
}, n = {
|
|
316
431
|
...t(["sheet", "background"]),
|
|
317
432
|
alpha: 1
|
|
@@ -319,14 +434,14 @@ function T(e) {
|
|
|
319
434
|
"choice",
|
|
320
435
|
"selected",
|
|
321
436
|
"background"
|
|
322
|
-
]), a =
|
|
437
|
+
]), a = k(i, n), o = [
|
|
323
438
|
1,
|
|
324
439
|
3,
|
|
325
440
|
5
|
|
326
|
-
].map((e) => Number.parseInt(n.hex.slice(e, e + 2), 16) / 255), s = o[0] * .2126 + o[1] * .7152 + o[2] * .0722 < .5, c = n.hex.toUpperCase() === (s ? "#000000" : "#FFFFFF"), l = (e, t) =>
|
|
441
|
+
].map((e) => Number.parseInt(n.hex.slice(e, e + 2), 16) / 255), s = o[0] * .2126 + o[1] * .7152 + o[2] * .0722 < .5, c = n.hex.toUpperCase() === (s ? "#000000" : "#FFFFFF"), l = (e, t) => D(k({
|
|
327
442
|
...e,
|
|
328
443
|
alpha: e.alpha * t
|
|
329
|
-
}, n)), u =
|
|
444
|
+
}, n)), u = k({
|
|
330
445
|
...r,
|
|
331
446
|
alpha: r.alpha * (s ? c ? .15 : .08 : .14)
|
|
332
447
|
}, n), d = (e) => [
|
|
@@ -339,37 +454,41 @@ function T(e) {
|
|
|
339
454
|
.0722
|
|
340
455
|
][r], 0), f = d(u) > d(n);
|
|
341
456
|
return {
|
|
342
|
-
"--sb-snackbar-surface":
|
|
343
|
-
"--sb-snackbar-text":
|
|
344
|
-
"--sb-snackbar-border": S(
|
|
457
|
+
"--sb-snackbar-surface": D(n),
|
|
458
|
+
"--sb-snackbar-text": D(r),
|
|
459
|
+
"--sb-snackbar-border": D(S(s ? "#FFFFFF" : "#000000", s ? .1 : .05)),
|
|
345
460
|
"--sb-snackbar-normal": l(r, s ? c ? .2 : .14 : c ? .08 : .1),
|
|
346
461
|
"--sb-snackbar-hover": l(r, s ? c ? .24 : .18 : .04),
|
|
347
462
|
"--sb-snackbar-pressed": l(i, s ? c ? .28 : .24 : .2),
|
|
348
|
-
"--sb-snackbar-active":
|
|
349
|
-
"--sb-snackbar-on-active":
|
|
463
|
+
"--sb-snackbar-active": D(a),
|
|
464
|
+
"--sb-snackbar-on-active": D(t([
|
|
350
465
|
"choice",
|
|
351
466
|
"selected",
|
|
352
467
|
"foreground"
|
|
353
468
|
])),
|
|
354
|
-
"--sb-snackbar-ghost":
|
|
355
|
-
"--sb-snackbar-remaining":
|
|
356
|
-
"--sb-snackbar-elapsed":
|
|
469
|
+
"--sb-snackbar-ghost": D(u),
|
|
470
|
+
"--sb-snackbar-remaining": D(f ? u : n),
|
|
471
|
+
"--sb-snackbar-elapsed": D(f ? n : u)
|
|
357
472
|
};
|
|
358
473
|
}
|
|
359
|
-
var
|
|
474
|
+
var A = {
|
|
475
|
+
visible: 185.84,
|
|
360
476
|
entrance: 1969.207,
|
|
361
477
|
timerEntrance: 2169.207,
|
|
362
478
|
widen: 200,
|
|
363
479
|
expand: 450
|
|
364
|
-
},
|
|
480
|
+
}, j = {
|
|
365
481
|
delay: 400,
|
|
366
482
|
enter: 450,
|
|
367
483
|
exit: 400,
|
|
368
484
|
removal: 450,
|
|
369
485
|
reduced: 150
|
|
370
|
-
},
|
|
371
|
-
function
|
|
372
|
-
|
|
486
|
+
}, le = j.delay + j.enter;
|
|
487
|
+
function ue(e, t) {
|
|
488
|
+
return t ? 0 : e ? j.delay : A.visible;
|
|
489
|
+
}
|
|
490
|
+
function M(e, t) {
|
|
491
|
+
let { viewport: n, safeArea: r = {}, compactHeight: i } = t, a = F(r.left) + 12, o = F(r.right) + 12, s = F(r.top) + 24, c = F(r.bottom) + 8, l = Math.max(0, n.width - a - o), u = Math.min(364, l), d = Math.min(376, l), f = Math.max(0, n.height - s - c), p = Math.min(t.cardHeight, f);
|
|
373
492
|
if (t.barPosition) return {
|
|
374
493
|
compactWidth: n.width,
|
|
375
494
|
compactLeft: 0,
|
|
@@ -379,11 +498,11 @@ function O(e, t) {
|
|
|
379
498
|
maxCardHeight: f,
|
|
380
499
|
cardLeft: a + (l - d) / 2,
|
|
381
500
|
cardBottom: c,
|
|
382
|
-
cardTop:
|
|
501
|
+
cardTop: F(r.top) + 12,
|
|
383
502
|
entranceOffset: 0,
|
|
384
503
|
transformOrigin: t.barPosition === "top" ? "50% 0%" : "50% 100%"
|
|
385
504
|
};
|
|
386
|
-
let m =
|
|
505
|
+
let m = R(e, {
|
|
387
506
|
viewport: n,
|
|
388
507
|
element: {
|
|
389
508
|
width: u,
|
|
@@ -399,34 +518,34 @@ function O(e, t) {
|
|
|
399
518
|
cardHeight: p,
|
|
400
519
|
maxCardHeight: f,
|
|
401
520
|
cardTop: 0,
|
|
402
|
-
entranceOffset: (u - i) *
|
|
521
|
+
entranceOffset: (u - i) * L(e?.anchor).x,
|
|
403
522
|
cardLeft: a + (l - d) / 2,
|
|
404
523
|
cardBottom: Math.max(c, Math.min(g, n.height - s - p)),
|
|
405
524
|
transformOrigin: m.transformOrigin
|
|
406
525
|
};
|
|
407
526
|
}
|
|
408
|
-
var
|
|
527
|
+
var N = {
|
|
409
528
|
x: 1,
|
|
410
529
|
y: 1
|
|
411
|
-
},
|
|
530
|
+
}, P = {
|
|
412
531
|
x: -16,
|
|
413
532
|
y: -24
|
|
414
533
|
};
|
|
415
|
-
function
|
|
534
|
+
function F(e) {
|
|
416
535
|
return typeof e == "number" && Number.isFinite(e) ? Math.max(0, e) : 0;
|
|
417
536
|
}
|
|
418
|
-
function
|
|
537
|
+
function I(e) {
|
|
419
538
|
return typeof e == "number" && Number.isFinite(e) ? e : 0;
|
|
420
539
|
}
|
|
421
|
-
function
|
|
422
|
-
let t =
|
|
540
|
+
function L(e) {
|
|
541
|
+
let t = E(e), n = typeof t.x == "number" && Number.isFinite(t.x) ? t.x : N.x, r = typeof t.y == "number" && Number.isFinite(t.y) ? t.y : N.y;
|
|
423
542
|
return {
|
|
424
543
|
x: Math.min(1, Math.max(0, n)),
|
|
425
544
|
y: Math.min(1, Math.max(0, r))
|
|
426
545
|
};
|
|
427
546
|
}
|
|
428
|
-
function
|
|
429
|
-
let n =
|
|
547
|
+
function R(e, t) {
|
|
548
|
+
let n = E(e), r = L(n.position), i = L(n.anchor), a = E(n.offset), o = e ? I(a.x) : P.x, s = e ? I(a.y) : P.y, c = t.safeArea ?? {}, l = F(c.left), u = F(c.right), d = F(c.top), f = F(c.bottom), p = Math.max(0, F(t.viewport.width) - l - u - F(t.element.width)), m = Math.max(0, F(t.viewport.height) - d - f - F(t.element.height));
|
|
430
549
|
return {
|
|
431
550
|
left: l + r.x * p + o,
|
|
432
551
|
top: d + r.y * m + s,
|
|
@@ -437,7 +556,7 @@ function P(e, t) {
|
|
|
437
556
|
transformOrigin: `${i.x * 100}% ${i.y * 100}%`
|
|
438
557
|
};
|
|
439
558
|
}
|
|
440
|
-
function
|
|
559
|
+
function de(e, t, n = "forward") {
|
|
441
560
|
let r = e === "bar" || e === "fill" ? e : "none", i = n === "reverse" ? "reverse" : "forward", a = typeof t == "number" && Number.isFinite(t) && t > 0 ? t : null;
|
|
442
561
|
return {
|
|
443
562
|
style: r,
|
|
@@ -453,14 +572,14 @@ function F(e, t, n = "forward") {
|
|
|
453
572
|
}
|
|
454
573
|
//#endregion
|
|
455
574
|
//#region src/ui/icons.ts
|
|
456
|
-
var I = "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M6.4 6.4 17.6 17.6M17.6 6.4 6.4 17.6\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>", L = "<svg viewBox=\"0 0 14 14\" aria-hidden=\"true\"><path d=\"M6.66667 0 5.49167 1.175 10.1417 5.83333H0V7.5h10.1417l-4.65 4.6583 1.175 1.175L13.3333 6.66667 6.66667 0Z\" fill=\"currentColor\"/></svg>", R = "<svg viewBox=\"0 0 36 28\" aria-hidden=\"true\"><path d=\"m11.2619 21.3151-8.40108-8.4011L0 15.7546l11.2619 11.262L35.4379 2.84067 32.5972 0 11.2619 21.3151Z\" fill=\"currentColor\"/></svg>", z = "<svg viewBox=\"0 0 35.5556 35.5556\" aria-hidden=\"true\"><path d=\"M19.436 3.05195 11.2286 11.2594c-.5481.5481-.8592 1.3037-.8592 2.0888v14.8c0 1.6297 1.3333 2.963 2.9629 2.963h13.3334c1.1851 0 2.2518-.7111 2.7259-1.7926l4.8296-11.2741c1.2445-2.9333-.9037-6.1925-4.0889-6.1925H21.762l1.4074-6.78523c.1481-.74075-.0741-1.4963-.6074-2.02963-.8741-.85926-2.2667-.85926-3.126.01481ZM4.44343 31.1112c1.62963 0 2.96296-1.3333 2.96296-2.963V16.2964c0-1.6296-1.33333-2.963-2.96296-2.963-1.62963 0-2.96296 1.3334-2.96296 2.963v11.8518c0 1.6297 1.33333 2.963 2.96296 2.963Z\" fill=\"currentColor\"/></svg>", B = "<svg viewBox=\"0 0 35.5556 35.5556\" aria-hidden=\"true\"><path d=\"m16.1165 32.5036 8.1926-8.2074c.5481-.5482.8592-1.3037.8592-2.0889v-14.8c0-1.62963-1.3333-2.96296-2.9629-2.96296H8.88686c-1.18519 0-2.25185.71111-2.71111 1.79259L1.34612 17.511c-1.25926 2.9333.88889 6.1926 4.07407 6.1926h8.37041l-1.4074 6.7852c-.1482.7407.074 1.4963.6074 2.0296.874.8593 2.2666.8593 3.1259-.0148ZM31.1091 4.44434c-1.6296 0-2.963 1.33333-2.963 2.96296v11.8519c0 1.6296 1.3334 2.9629 2.963 2.9629 1.6296 0 2.9629-1.3333 2.9629-2.9629V7.4073c0-1.62963-1.3333-2.96296-2.9629-2.96296Z\" fill=\"currentColor\"/></svg>", re = ".sb-snackbar-root{--sb-text:var(--sb-snackbar-text);--sb-text-muted:var(--sb-theme-content-body);--sb-surface:var(--sb-snackbar-surface);z-index:1100;pointer-events:none;color:var(--sb-snackbar-text);font-family:Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;position:fixed;inset:0}.sb-snackbar-root *,.sb-snackbar-root :before,.sb-snackbar-root :after{box-sizing:border-box}.sb-snackbar-root h2{text-transform:none;letter-spacing:normal}.sb-snackbar-shell{left:var(--sb-snackbar-left);bottom:var(--sb-snackbar-bottom);width:var(--sb-snackbar-width);transition:left .2s ease-in-out,bottom .2s ease-in-out,width .2s ease-in-out;position:absolute}.sb-snackbar-surface{width:100%;height:var(--sb-snackbar-height,64px);border-radius:calc(var(--sb-snackbar-compact-height,64px) / 2);background:var(--sb-snackbar-surface);box-shadow:inset 0 0 0 1px var(--sb-snackbar-border);transition:height .45s cubic-bezier(0,.87,.39,1),border-radius .45s cubic-bezier(0,.87,.39,1);position:relative;overflow:hidden}.sb-snackbar-compact{width:var(--sb-snackbar-compact-width,364px);align-items:center;gap:10px;min-height:64px;padding:10px;transition:opacity .12s ease-out;display:flex;position:relative}.sb-snackbar-artwork{--sb-theme-fab-accent-primary:var(--sb-theme-sheet-progress-fill);--sb-theme-fab-accent-secondary:var(--sb-snackbar-surface);--sb-theme-fab-foreground:var(--sb-snackbar-text);background:var(--sb-theme-sheet-progress-fill);border-radius:50%;flex:0 0 40px;width:40px;height:40px;position:relative;overflow:hidden}.sb-snackbar-artwork img{z-index:2;object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.sb-snackbar-prompt{overflow-wrap:anywhere;flex:1;min-width:0;margin:0;font-size:14px;font-weight:600;line-height:20px;position:relative}.sb-snackbar-answers{flex:none;gap:4px;display:flex;position:relative}.sb-snackbar-answer{width:44px;height:44px;color:var(--sb-snackbar-text);background:var(--sb-snackbar-normal);cursor:pointer;pointer-events:auto;border:0;border-radius:50%;place-items:center;margin:0;padding:0;transition:background .12s ease-out,scale .12s ease-out;display:grid}.sb-snackbar-answer svg{width:18px;height:18px}.sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-hover)}.sb-snackbar-answer:active:not(:disabled){background:var(--sb-snackbar-pressed);scale:.94}.sb-snackbar-answer[aria-pressed=true]{color:var(--sb-snackbar-on-active);background:var(--sb-snackbar-active)}.sb-snackbar-answer:disabled{cursor:default;pointer-events:none;opacity:1}.sb-snackbar-close{top:-25px;width:44px;height:44px;color:var(--sb-snackbar-text);pointer-events:auto;cursor:pointer;background:0 0;border:0;place-items:center;margin:0;padding:13px;display:grid;position:absolute;inset-inline-start:-15px}.sb-snackbar-close svg{background:var(--sb-snackbar-surface);border-radius:50%;width:18px;height:18px;padding:2px}.sb-snackbar-answer:focus-visible,.sb-snackbar-close:focus-visible{outline:2px solid var(--sb-snackbar-text);outline-offset:2px}.sb-snackbar-timer{pointer-events:none;position:absolute;overflow:hidden}.sb-snackbar-timer--fill{background:var(--sb-snackbar-elapsed);inset:0}.sb-snackbar-timer--bar{inset-inline:1px 3px;background:var(--sb-theme-sheet-progress-track);height:2px;bottom:-6px}.sb-snackbar-timer-fill{transform-origin:0;background:var(--sb-theme-sheet-progress-fill);width:100%;height:100%;display:block}.sb-snackbar-timer--fill .sb-snackbar-timer-fill{background:var(--sb-snackbar-remaining)}.sb-snackbar-root:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .sb-snackbar-timer-fill{transform-origin:100%}.sb-snackbar-root[data-counting=true] .sb-snackbar-timer-fill{animation:sb-snackbar-countdown var(--sb-snackbar-duration) linear forwards}.sb-snackbar-root[data-frozen=true] .sb-snackbar-timer-fill{transform:scaleX(var(--sb-snackbar-fraction));animation:none}.sb-snackbar-overlay{background:var(--sb-theme-sheet-scrim);opacity:0;pointer-events:none;border:0;width:100%;height:100%;margin:0;padding:0;transition:opacity .45s ease-out;position:absolute;inset:0}.sb-snackbar-card{width:var(--sb-snackbar-card-width);max-height:var(--sb-snackbar-max-height);opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;overflow:auto}.sb-snackbar-root .sb-snackbar-card .sb-sheet-root{position:static;inset:auto}.sb-snackbar-root .sb-snackbar-card .sb-sheet-root__overlay{display:none}.sb-snackbar-root .sb-snackbar-card .sb-sheet{width:100%;max-height:none;box-shadow:none;background:0 0;border:0;margin:0;animation:none;position:relative;inset:auto;transform:none}.sb-snackbar-card[inert] *{animation-play-state:paused}.sb-snackbar-root[data-stage=widening] .sb-snackbar-compact,.sb-snackbar-root[data-stage=expanding] .sb-snackbar-compact,.sb-snackbar-root[data-stage=ready] .sb-snackbar-compact{opacity:0}.sb-snackbar-root[data-expanded=true] .sb-snackbar-overlay{opacity:1;pointer-events:auto}.sb-snackbar-root[data-expanded=true] .sb-snackbar-close{display:none}.sb-snackbar-root[data-stage=expanding] .sb-snackbar-surface,.sb-snackbar-root[data-stage=ready] .sb-snackbar-surface{box-shadow:none;background:var(--sb-theme-sheet-background);border-radius:40px}.sb-snackbar-root[data-stage=expanding] .sb-snackbar-card{opacity:1;transition:opacity .3s ease-out .12s}.sb-snackbar-root[data-stage=ready] .sb-snackbar-card{opacity:1;pointer-events:auto}.sb-snackbar-root[data-stage=entering] .sb-snackbar-shell{animation:.89016s cubic-bezier(.649439,.0577174,.124599,1) .18584s both sb-snackbar-enter-scale,.893207s cubic-bezier(.649439,.0577174,.124599,1) 1.076s both sb-snackbar-enter-width}.sb-snackbar-root[data-stage=entering] .sb-snackbar-surface{transition:none}.sb-snackbar-root[data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-stage=entering] .sb-snackbar-answers,.sb-snackbar-root[data-stage=entering] .sb-snackbar-close{animation:.2s ease-out 1.076s both sb-snackbar-label}.sb-snackbar-root[data-stage=entering] .sb-snackbar-timer{animation:.2s ease-out 1.96921s both sb-snackbar-label}.sb-root--inline .sb-snackbar-root{position:absolute}@keyframes sb-snackbar-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-snackbar-enter-scale{0%{scale:0}to{scale:1}}@keyframes sb-snackbar-enter-width{0%{width:var(--sb-snackbar-compact-height,64px);translate:var(--sb-snackbar-entrance-offset) 0}to{width:var(--sb-snackbar-width);translate:0}}@keyframes sb-snackbar-label{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.sb-snackbar-root[data-counting=true] .sb-snackbar-timer-fill{animation-duration:var(--sb-snackbar-duration)!important}.sb-snackbar-root .sb-snackbar-shell,.sb-snackbar-root .sb-snackbar-surface,.sb-snackbar-root .sb-snackbar-card,.sb-snackbar-root .sb-snackbar-compact,.sb-snackbar-root .sb-snackbar-overlay{transition:none}.sb-snackbar-root[data-stage=entering] .sb-snackbar-shell,.sb-snackbar-root[data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-stage=entering] .sb-snackbar-timer,.sb-snackbar-root[data-stage=entering] .sb-snackbar-close,.sb-snackbar-root[data-stage=entering] .sb-snackbar-answers{animation:none}}.sb-snackbar-root[data-presentation=bar]{--sb-bar-hidden-y:max(80px, 100%)}.sb-snackbar-root[data-presentation=bar][data-position=top]{--sb-bar-hidden-y:calc(-1 * max(80px, 100%))}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-shell{top:var(--sb-bar-top,0px);transition:left .2s ease-in-out,top .2s ease-in-out,width .2s ease-in-out;bottom:auto}.sb-snackbar-root[data-presentation=bar]:not([data-expanded=true]) .sb-snackbar-surface{box-shadow:none;border-radius:0}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{border-block-start:1px solid var(--sb-snackbar-border);min-height:48px;padding:10px max(108px, env(safe-area-inset-right,0px)) 10px max(108px, env(safe-area-inset-left,0px));pointer-events:auto;justify-content:center}.sb-snackbar-root[data-presentation=bar][data-position=bottom] .sb-snackbar-compact{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-compact{padding-top:calc(10px + env(safe-area-inset-top,0px));border-block-start:0;border-block-end:1px solid var(--sb-snackbar-border)}.sb-bar-content{align-items:center;gap:12px;min-width:0;transition:opacity .25s ease-out;display:flex;position:relative}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-prompt{text-align:center;text-wrap:pretty;flex:0 auto;font-size:14px;font-weight:400;line-height:1.3}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answers{gap:4px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer{border:1px solid var(--sb-snackbar-border);background:var(--sb-snackbar-surface);-webkit-tap-highlight-color:transparent;border-radius:36px;width:36px;height:24px;transition:background .18s,border-color .18s,scale .15s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer svg{width:14.4px;height:14.4px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer[aria-pressed=true]{background:var(--sb-snackbar-active);color:var(--sb-snackbar-on-active)}.sb-bar-acknowledgement{opacity:0;visibility:hidden;pointer-events:none;text-align:center;color:var(--sb-snackbar-text);justify-content:center;align-items:center;padding:10px 24px;font-size:18px;font-weight:600;line-height:1.4;transition:opacity .35s cubic-bezier(.16,1,.3,1) .1s,translate .35s cubic-bezier(.16,1,.3,1) .1s;display:flex;position:absolute;inset:0;translate:0 10px}.sb-snackbar-root[data-rated=true] .sb-bar-content,.sb-snackbar-root[data-rated=true] .sb-bar-dismiss,.sb-snackbar-root[data-rated=true][data-presentation=bar] .sb-snackbar-timer{opacity:0;pointer-events:none}.sb-snackbar-root[data-rated=true] .sb-bar-acknowledgement{opacity:1;visibility:visible;translate:0}.sb-bar-acknowledgement-copy{overflow-wrap:anywhere;min-width:0;max-width:100%}.sb-snackbar-root[data-presentation=bar][data-rated=true] .sb-snackbar-compact{min-height:var(--sb-snackbar-height,48px)}.sb-bar-dismiss{inset-inline-end:20px;width:68px;height:44px;color:var(--sb-theme-content-body);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:0;margin:0;padding:0 5px;font-size:14px;line-height:1.3;transition:opacity .25s ease-out;position:absolute;top:50%;translate:0 -50%}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-surface)}@media (hover:hover){.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-hover);border-color:var(--sb-theme-input-border)}}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:not(:disabled):active{background:var(--sb-snackbar-pressed);scale:.96}.sb-bar-dismiss:focus-visible{outline:2px solid var(--sb-snackbar-text);outline-offset:2px}.sb-bar-dismiss:disabled{cursor:default}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer{transition:opacity .25s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar{inset-inline:auto 25px;background:var(--sb-snackbar-border);width:58px;height:1px;top:calc(50% + 8px);bottom:auto}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar .sb-snackbar-timer-fill{background:var(--sb-theme-content-body)}.sb-snackbar-root[data-presentation=bar][data-paused=true] .sb-snackbar-timer-fill{animation-play-state:paused}.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-shell{animation:.45s cubic-bezier(.16,1,.3,1) .4s both sb-bar-enter}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-shell{pointer-events:none;animation:.4s cubic-bezier(.55,0,.55,.2) both sb-bar-exit}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-overlay{opacity:0;pointer-events:none}.sb-snackbar-root[data-presentation=bar][data-exiting=true][data-expanded=true] .sb-snackbar-shell{animation:.4s ease-out both sb-bar-card-exit}.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-answers,.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-timer{animation:none}@keyframes sb-bar-enter{0%{translate:0 var(--sb-bar-hidden-y)}to{translate:0}}@keyframes sb-bar-exit{0%{translate:0}to{translate:0 var(--sb-bar-hidden-y)}}@keyframes sb-bar-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sb-bar-fade-out{0%{opacity:1}to{opacity:0}}@keyframes sb-bar-card-exit{0%{opacity:1;translate:0}to{opacity:0;translate:0 12px}}@media (width<=768px){.sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{padding-inline:max(24px, env(safe-area-inset-left,0px)) max(24px, env(safe-area-inset-right,0px))}.sb-bar-content{width:100%}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-prompt{text-align:start;flex:1}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answers{gap:5.333px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer{border-radius:48px;width:48px;height:32px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer svg{width:19.2px;height:19.2px}.sb-bar-acknowledgement{text-align:start;justify-content:flex-start}.sb-snackbar-root[data-presentation=bar][data-timed=true] .sb-bar-dismiss{display:none}.sb-snackbar-root[data-presentation=bar][data-timed=false] .sb-bar-content{padding-inline-end:76px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar{inset-inline:0;width:auto;top:0}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-timer--bar{top:auto;bottom:0}}.sb-root--inline .sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{padding-block:10px}@media (prefers-reduced-motion:reduce){.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-shell{animation:.15s ease-out both sb-bar-fade-in}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-shell,.sb-snackbar-root[data-presentation=bar][data-exiting=true][data-expanded=true] .sb-snackbar-shell{animation:.15s ease-out both sb-bar-fade-out}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-shell{transition:none}.sb-bar-acknowledgement{transition:opacity .15s ease-out;translate:none}.sb-bar-content,.sb-bar-dismiss{transition:opacity .15s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:not(:disabled):active{scale:1}}.sb-sheet__close:before{content:\"\";background:currentColor;width:24px;height:24px;display:block;-webkit-mask:url(\"data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M12%2013.4L7.1%2018.3C6.91667%2018.4833%206.68333%2018.575%206.4%2018.575C6.11667%2018.575%205.88333%2018.4833%205.7%2018.3C5.51667%2018.1167%205.425%2017.8833%205.425%2017.6C5.425%2017.3167%205.51667%2017.0833%205.7%2016.9L10.6%2012L5.7%207.1C5.51667%206.91667%205.425%206.68333%205.425%206.4C5.425%206.11667%205.51667%205.88333%205.7%205.7C5.88333%205.51667%206.11667%205.425%206.4%205.425C6.68333%205.425%206.91667%205.51667%207.1%205.7L12%2010.6L16.9%205.7C17.0833%205.51667%2017.3167%205.425%2017.6%205.425C17.8833%205.425%2018.1167%205.51667%2018.3%205.7C18.4833%205.88333%2018.575%206.11667%2018.575%206.4C18.575%206.68333%2018.4833%206.91667%2018.3%207.1L13.4%2012L18.3%2016.9C18.4833%2017.0833%2018.575%2017.3167%2018.575%2017.6C18.575%2017.8833%2018.4833%2018.1167%2018.3%2018.3C18.1167%2018.4833%2017.8833%2018.575%2017.6%2018.575C17.3167%2018.575%2017.0833%2018.4833%2016.9%2018.3L12%2013.4Z'%20fill='%23E8E8E8'/%3e%3c/g%3e%3c/svg%3e\") 50%/24px 24px no-repeat;mask:url(\"data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M12%2013.4L7.1%2018.3C6.91667%2018.4833%206.68333%2018.575%206.4%2018.575C6.11667%2018.575%205.88333%2018.4833%205.7%2018.3C5.51667%2018.1167%205.425%2017.8833%205.425%2017.6C5.425%2017.3167%205.51667%2017.0833%205.7%2016.9L10.6%2012L5.7%207.1C5.51667%206.91667%205.425%206.68333%205.425%206.4C5.425%206.11667%205.51667%205.88333%205.7%205.7C5.88333%205.51667%206.11667%205.425%206.4%205.425C6.68333%205.425%206.91667%205.51667%207.1%205.7L12%2010.6L16.9%205.7C17.0833%205.51667%2017.3167%205.425%2017.6%205.425C17.8833%205.425%2018.1167%205.51667%2018.3%205.7C18.4833%205.88333%2018.575%206.11667%2018.575%206.4C18.575%206.68333%2018.4833%206.91667%2018.3%207.1L13.4%2012L18.3%2016.9C18.4833%2017.0833%2018.575%2017.3167%2018.575%2017.6C18.575%2017.8833%2018.4833%2018.1167%2018.3%2018.3C18.1167%2018.4833%2017.8833%2018.575%2017.6%2018.575C17.3167%2018.575%2017.0833%2018.4833%2016.9%2018.3L12%2013.4Z'%20fill='%23E8E8E8'/%3e%3c/g%3e%3c/svg%3e\") 50%/24px 24px no-repeat}:host{--sb-surface:var(--sb-theme-sheet-background,#fff);--sb-surface-muted:var(--sb-theme-button-secondary-background,#f2f2f2);--sb-border:var(--sb-theme-input-border,#0808081f);--sb-border-strong:#0808083d;--sb-border-active:var(--sb-theme-input-focused-border,#080808b3);--sb-text:var(--sb-theme-content-heading,#080808);--sb-text-muted:var(--sb-theme-content-body,#5c5c5c);--sb-overlay:var(--sb-theme-sheet-scrim,#00000061);--sb-ease:cubic-bezier(.2, .9, .2, 1);--sb-fab-motion-ease:cubic-bezier(.649439, .0577174, .124599, 1);--sb-sheet-motion-ease:cubic-bezier(0, .87, .39, 1);font-family:-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.sb-safe-area-probe{visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);position:fixed;inset:0}.sb-fab{right:16px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:1000;box-sizing:border-box;border:1px solid var(--sb-theme-fab-border,#080808);background:var(--sb-theme-fab-background,#080808);min-width:0;height:60px;color:var(--sb-theme-fab-foreground,#fff);border-color:var(--sb-theme-fab-border,#080808);cursor:pointer;will-change:transform;align-items:center;transition:scale .12s ease-out;display:inline-flex;position:fixed;overflow:hidden}.sb-fab--entering{animation:sb-fab-enter-scale .89016s var(--sb-fab-motion-ease) .259705s both, sb-fab-enter-width .893207s var(--sb-fab-motion-ease) 1.076s both;transform-origin:50%!important}.sb-fab--entering .sb-fab__label{animation:sb-fab-label-in .2s var(--sb-fab-motion-ease) 1.14987s both}.sb-fab--entering .sb-fab__timer{animation:sb-fab-timer-in .2s var(--sb-fab-motion-ease) 1.96921s both}.sb-fab--entering .sb-fab__timer-fill{animation-delay:1.96921s}.sb-fab--exiting{width:var(--sb-fab-exit-width,var(--sb-fab-expanded-width));pointer-events:none;scale:var(--sb-fab-exit-scale,1);translate:var(--sb-fab-exit-offset,0) 0;animation:.292089s cubic-bezier(.677885,.170122,.695982,.997824) .3s forwards sb-fab-exit-width,.390467s cubic-bezier(.362165,.0946429,.49708,.932961) .466372s forwards sb-fab-exit-scale;transform:none;transform-origin:50%!important}.sb-fab--exiting .sb-fab__label{opacity:var(--sb-fab-exit-label-opacity,1);animation:.389727s cubic-bezier(.5,0,.5,1) .3s forwards sb-fab-label-out}.sb-fab--exiting .sb-fab__timer{opacity:var(--sb-fab-exit-timer-opacity,0)}.sb-fab--exiting .sb-fab__badge{animation:.297243s cubic-bezier(.5,0,1,.600461) .398177s forwards sb-fab-badge-out}.sb-next:hover,.sb-next:focus-visible,.sb-button:hover,.sb-button:focus-visible,.sb-choice:hover,.sb-choice:focus-visible{transform:translateY(-1px)}.sb-fab:active{transition-duration:80ms;scale:.97}.sb-fab:focus-visible,.sb-next:focus-visible,.sb-button:focus-visible,.sb-choice:focus-visible,.sb-sheet__close:focus-visible,.sb-sentiment:focus-visible,.sb-sheet-root__overlay:focus-visible{outline-offset:2px;outline:2px solid #6366f1a6}.sb-sheet h2[tabindex=\"-1\"]:focus{outline:none}.sb-fab--expanded{width:var(--sb-fab-expanded-width,auto);border-radius:999px;justify-content:flex-start;gap:12px;min-height:60px;padding:13px 28px 13px 14px}.sb-fab__label{z-index:1;width:var(--sb-fab-label-width,auto);color:currentColor;text-align:left;white-space:nowrap;text-overflow:clip;min-width:0;font-size:14px;font-weight:600;line-height:1;position:relative;overflow:hidden}.sb-fab__badge{z-index:1;background:var(--sb-theme-fab-accent-primary,#f97316);border-radius:50%;flex:none;place-items:center;width:32px;height:32px;display:grid;position:relative}.sb-fab__badge-artwork{background:var(--sb-theme-fab-accent-secondary,#2563eb);border-radius:50%;display:block;position:absolute;inset:5.44px}.sb-fab__badge-image{z-index:2;border-radius:inherit;object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}.sb-fab__badge-glyph-center,.sb-fab__badge-glyph-amber,.sb-fab__badge-glyph-mint,.sb-fab__badge-glyph-rose{border-radius:999px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sb-fab__badge-glyph-center{background:var(--sb-theme-fab-foreground,#fff);border-radius:3.52px;width:4.16px;height:11.52px}.sb-fab__badge-glyph-amber{background:#fac143;width:2.88px;height:6.72px;translate:-3.04px .8px}.sb-fab__badge-glyph-mint{background:#39c690;width:2.88px;height:5.44px;translate:3.04px -.32px}.sb-fab__badge-glyph-rose{background:#e86398;width:2.56px;height:4.16px;translate:.96px 3.68px}.sb-fab__timer{z-index:0;pointer-events:none;position:absolute;overflow:hidden}.sb-fab__timer--bar{background:var(--sb-theme-fab-timer-track,#08080829);border-radius:999px;height:2px;bottom:4px;left:59px;right:29px}.sb-fab[data-timer-direction=rtl] .sb-fab__timer--bar{left:29px;right:59px}.sb-fab__timer--fill{border-radius:inherit;background:var(--sb-theme-fab-timer-track,#08080829);inset:0}.sb-fab__timer-fill{border-radius:inherit;background:var(--sb-theme-fab-timer-fill,#080808e6);width:100%;height:100%;transform-origin:var(--sb-fab-timer-origin,left);animation:sb-fab-timer-bar var(--sb-timer-duration) linear forwards;display:block}.sb-sheet-root{z-index:1100;position:fixed;inset:0}.sb-sheet-root__overlay{background:var(--sb-overlay);cursor:pointer;border:none;animation:.2s ease-in both sb-overlay-in;position:absolute;inset:0}.sb-sheet-root--exiting{pointer-events:none}.sb-sheet-root--exiting .sb-sheet-root__overlay{animation:.2s ease-in forwards sb-overlay-out}.sb-sheet{width:min(100%,100vw);min-height:418px;padding:24px 20px calc(18px + env(safe-area-inset-bottom,0px));box-sizing:border-box;background:var(--sb-surface);box-shadow:var(--sb-shadow);color:var(--sb-text);animation:sb-sheet-in-mobile .45s var(--sb-sheet-motion-ease) both;border-radius:40px 40px 0 0;position:absolute;bottom:0;left:0;right:0}.sb-sheet--thanks{min-height:381px;padding-top:18px}.sb-sheet__header{justify-content:flex-end;align-items:flex-start;min-height:28px;margin-bottom:22px;display:flex;position:relative}.sb-progress{background:var(--sb-theme-sheet-progress-track,#eaeaea);border-radius:999px;width:219px;max-width:calc(100% - 96px);height:6px;position:absolute;top:5px;left:50%;overflow:hidden;transform:translate(-50%)}.sb-progress__fill{border-radius:inherit;background:var(--sb-theme-sheet-progress-fill,#080808);height:100%;transition:width .22s var(--sb-ease);display:block}.sb-sheet__close{background:var(--sb-theme-sheet-close-button-background,transparent);width:20px;height:20px;color:var(--sb-theme-sheet-close-button-foreground,var(--sb-text));cursor:pointer;border:none;padding:0}.sb-sheet__close svg,.sb-next svg,.sb-thanks__icon-core svg{width:100%;height:100%;display:block}.sb-sheet__body{gap:26px;display:grid}.sb-sheet__copy{justify-items:center;gap:8px;display:grid}.sb-sheet__eyebrow{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:center;margin:0;font-size:16px;font-weight:400;line-height:1.4}.sb-sheet__body h2,.sb-thanks__copy h2{color:var(--sb-theme-content-heading,var(--sb-text));text-align:center;margin:0;font-size:22px;font-weight:600;line-height:1.2}.sb-sheet__body h2{justify-self:center;width:min(297px,100%)}.sb-choice--selected,.sb-choice:hover,.sb-textarea-shell:focus-within{border-color:var(--sb-theme-choice-hover-border,var(--sb-border-active))}.sb-choice:hover{background:var(--sb-theme-choice-hover-background,var(--sb-surface));color:var(--sb-theme-choice-hover-foreground,var(--sb-text))}.sb-choice:active{border-color:var(--sb-theme-choice-pressed-border,var(--sb-border-active));background:var(--sb-theme-choice-pressed-background,var(--sb-surface-muted));color:var(--sb-theme-choice-pressed-foreground,var(--sb-text))}.sb-choice--selected{box-shadow:0 0 0 3px #0808080d}.sb-choice:disabled{border-color:var(--sb-theme-choice-disabled-border,#e2e2e2);background:var(--sb-theme-choice-disabled-background,#f2f2f2);color:var(--sb-theme-choice-disabled-foreground,#5c5c5c);cursor:not-allowed}.sb-question--choices{grid-template-columns:repeat(2,160px);justify-content:center;justify-self:center;gap:9px;width:min(330px,100%)}.sb-choice{border:1px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:160px;height:51px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));text-align:center;white-space:nowrap;cursor:pointer;transition:transform .2s var(--sb-ease), border-color .18s ease, box-shadow .18s ease, background-color .18s ease;border-radius:999px;justify-content:center;align-items:center;padding:0 16px;font-size:16px;font-weight:700;line-height:1.2;display:flex}.sb-choice__label{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.sb-choice--other{border-color:var(--sb-theme-choice-default-border,#e2e2e2);padding:0;font-weight:400}.sb-choice__other-content{align-items:center;gap:0;display:inline-flex}.sb-choice__other-caret{background:var(--sb-theme-input-foreground,var(--sb-text));flex:none;width:1px;height:22px}.sb-choice__other-label{color:var(--sb-theme-input-placeholder,#08080866);line-height:1.2}.sb-choice--selected{border-color:var(--sb-theme-choice-selected-border,var(--sb-text));background:var(--sb-theme-choice-selected-background,var(--sb-text));color:var(--sb-theme-choice-selected-foreground,var(--sb-surface))}.sb-question--text{justify-self:center;width:min(330px,100%)}.sb-textarea-shell{border:1px solid var(--sb-theme-input-border,#08080833);background:var(--sb-theme-input-background,var(--sb-surface));border-radius:16px;width:100%;min-height:155px;transition:border-color .18s,box-shadow .18s}.sb-textarea{resize:none;width:100%;min-height:155px;color:var(--sb-theme-input-foreground,var(--sb-text));font:inherit;box-sizing:border-box;background:0 0;border:none;outline:none;padding:16px 22px;font-size:16px;line-height:1.2}.sb-textarea::placeholder{color:var(--sb-theme-input-placeholder,#08080866)}.sb-textarea-shell:focus-within{border-color:var(--sb-theme-input-focused-border,var(--sb-border-active))}.sb-textarea:disabled{color:var(--sb-theme-input-disabled-foreground,var(--sb-text-muted))}.sb-textarea-shell:has(.sb-textarea:disabled){background:var(--sb-theme-input-disabled-background,var(--sb-surface-muted))}.sb-sheet__footer{min-height:84px;margin:0 -20px calc(-18px - env(safe-area-inset-bottom,0px));padding:18px 20px calc(18px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);box-sizing:border-box;justify-content:flex-end;align-items:center;gap:16px;display:flex}.sb-next,.sb-button{cursor:pointer;min-height:48px;font:inherit;transition:transform .2s var(--sb-ease), opacity .18s ease, box-shadow .18s ease;border:none;border-radius:999px}.sb-next{background:var(--sb-theme-button-primary-background,#080808);width:101px;color:var(--sb-theme-button-primary-foreground,#fff);place-items:center;padding:0;display:grid}.sb-next--acknowledging svg{animation:.36s cubic-bezier(.2,.8,.2,1) both sb-next-acknowledgement}.sb-next:disabled,.sb-button:disabled{cursor:not-allowed;box-shadow:none;transform:none}.sb-next:disabled{background:var(--sb-theme-button-primary-disabled-background,#080808);color:var(--sb-theme-button-primary-disabled-foreground,#fff)}.sb-thanks{justify-items:center;gap:23px;padding-top:12px;display:grid}.sb-thanks__icon-shell{background:var(--sb-theme-completion-outer-background,#f0f0f0);border-radius:999px;place-items:center;width:120px;height:120px;display:grid}.sb-thanks__icon-core{background:var(--sb-theme-completion-inner-background,#080808);width:66px;height:66px;color:var(--sb-theme-completion-glyph,#fff);border-radius:999px;place-items:center;display:grid}.sb-thanks__copy{gap:8px;max-width:313px;display:grid}.sb-thanks__copy h2{letter-spacing:-.03em;font-size:30px;line-height:1.1}.sb-thanks__copy p{color:var(--sb-theme-content-body,var(--sb-text-muted));text-align:center;margin:0;font-size:14px;line-height:1.3}.sb-thanks__actions{gap:10px;width:100%;display:flex}.sb-button{flex:1 1 0;padding:16px;font-size:14px;font-weight:600;line-height:1}.sb-button--primary{background:var(--sb-theme-button-primary-background,#080808);color:var(--sb-theme-button-primary-foreground,#fff)}.sb-button--secondary{background:var(--sb-theme-button-secondary-background,#f2f2f2);color:var(--sb-theme-button-secondary-foreground,var(--sb-text))}.sb-button--tertiary{background:var(--sb-theme-button-tertiary-background,transparent);color:var(--sb-theme-button-tertiary-foreground,var(--sb-text))}.sb-button--primary:hover,.sb-button--primary:focus-visible{background:var(--sb-theme-button-primary-hover-background,#080808)}.sb-button--secondary:hover,.sb-button--secondary:focus-visible{background:var(--sb-theme-button-secondary-hover-background,#f2f2f2)}.sb-button--tertiary:hover,.sb-button--tertiary:focus-visible{background:var(--sb-theme-button-tertiary-hover-background,#f2f2f2)}.sb-button--primary:active{background:var(--sb-theme-button-primary-pressed-background,#080808)}.sb-button--secondary:active{background:var(--sb-theme-button-secondary-pressed-background,#e2e2e2)}.sb-button--tertiary:active{background:var(--sb-theme-button-tertiary-pressed-background,#e2e2e2)}.sb-button--primary:disabled{background:var(--sb-theme-button-primary-disabled-background,#080808);color:var(--sb-theme-button-primary-disabled-foreground,#fff)}.sb-button--secondary:disabled{background:var(--sb-theme-button-secondary-disabled-background,#f2f2f2);color:var(--sb-theme-button-secondary-disabled-foreground,var(--sb-text))}.sb-button--tertiary:disabled{background:var(--sb-theme-button-tertiary-disabled-background,#f2f2f2);color:var(--sb-theme-button-tertiary-disabled-foreground,var(--sb-text))}@media (width>=768px){.sb-fab{bottom:24px;right:24px}}.sb-sheet-root__overlay{padding:0}.sb-sheet{top:auto;right:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:min(376px,100% - 24px);min-height:0;max-height:calc(100% - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));box-shadow:none;animation:sb-card-in .45s var(--sb-sheet-motion-ease) both;interpolate-size:allow-keywords;border-radius:40px;padding:0;transition:height .45s cubic-bezier(0,.83,.363,.994);position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.sb-sheet-root--exiting .sb-sheet{animation:.45s ease-in forwards sb-card-out}.sb-sheet--thanks{min-height:0;padding:22px 20px}.sb-sheet__header{height:50px;min-height:0;margin:0;display:block;position:relative}.sb-progress{width:216px;max-width:calc(100% - 96px);height:6px;top:27px}.sb-progress__fill{transition:width .45s var(--sb-sheet-motion-ease)}.sb-sheet__close{box-sizing:border-box;border-radius:1000px;width:40px;height:40px;padding:8px;position:absolute;top:10px;right:16px}.sb-sheet__body{display:block}.sb-step{animation:.25s ease-in-out both sb-step-in}.sb-sheet__copy{box-sizing:border-box;align-content:center;justify-items:center;gap:0;height:88px;padding:0 23px;display:grid}.sb-sheet__body h2{text-align:center;text-wrap:balance;width:100%;margin:0;font-size:19px;font-weight:600;line-height:1.22}.sb-sheet__body--sentiment{padding:12px 24px 22px}.sb-sheet__body--sentiment .sb-sheet__copy{gap:8px;height:auto;min-height:84px;padding:0}.sb-sheet__body--sentiment .sb-sheet__eyebrow{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:16px;font-weight:400;line-height:1.2;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2{-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:22px;font-weight:600;line-height:1.2;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2.sb-sheet__acknowledgement{align-content:center;min-height:70px;font-size:29px;line-height:1.08;animation:.28s cubic-bezier(.2,.8,.2,1) both sb-acknowledgement-in}.sb-question{justify-items:stretch;display:grid}.sb-question--sentiment{grid-template-columns:repeat(2,80px);justify-content:center;gap:25px;width:185px;margin:37px auto 31px;position:relative}.sb-sheet__body--sentiment:has(.sb-sheet__acknowledgement) .sb-question--sentiment{margin-top:35px}.sb-sentiment{z-index:0;border:1.111px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:80px;height:80px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));cursor:pointer;border-radius:50%;place-items:center;padding:0;transition:transform .12s ease-out,border-color .18s,background-color .18s;display:grid;position:relative}.sb-sentiment__icon{z-index:1;width:35.5556px;height:35.5556px}.sb-sentiment__icon svg{width:100%;height:100%;display:block}.sb-sentiment:hover{border-color:var(--sb-theme-choice-hover-border,var(--sb-border-active));background:var(--sb-theme-choice-hover-background,var(--sb-surface));color:var(--sb-theme-choice-hover-foreground,var(--sb-text))}.sb-sentiment:active{border-color:var(--sb-theme-choice-pressed-border,var(--sb-border-active));background:var(--sb-theme-choice-pressed-background,var(--sb-surface-muted));color:var(--sb-theme-choice-pressed-foreground,var(--sb-text));transform:scale(.97)}.sb-sentiment--selected,.sb-sentiment--selected:disabled{border-color:var(--sb-theme-choice-selected-border,var(--sb-text));background:var(--sb-theme-choice-selected-background,var(--sb-text));color:var(--sb-theme-choice-selected-foreground,var(--sb-surface))}.sb-sentiment:disabled:not(.sb-sentiment--selected){border-color:var(--sb-theme-choice-disabled-border,#e2e2e2);background:var(--sb-theme-choice-disabled-background,#f2f2f2);color:var(--sb-theme-choice-disabled-foreground,#5c5c5c)}.sb-sentiment:disabled{cursor:default}.sb-spark-ring{z-index:-1;pointer-events:none;animation:.22s cubic-bezier(.25,.46,.45,.94) both sb-spark-ring-in;position:absolute;inset:-26px}.sb-spark-ring__spark{--sb-spark-angle:calc(var(--sb-spark-index) * 30deg);width:7px;height:7px;transform:translate(-50%, -50%) rotate(var(--sb-spark-angle)) translateY(-54px);background:#dedede;border-radius:50%;position:absolute;top:50%;left:50%}.sb-spark-ring__spark:nth-child(2n){width:12px;height:12px;transform:translate(-50%, -50%) rotate(var(--sb-spark-angle)) translateY(-59px)}.sb-question--choices,.sb-question--text{justify-self:stretch;width:auto;margin:0 24px}.sb-question--choices{scrollbar-gutter:stable;align-content:start;gap:8px;max-height:320.5px;overflow:hidden auto}.sb-question--choices-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sb-question--choices-single{grid-template-columns:minmax(0,1fr)}.sb-question--choices-scrolling{padding-bottom:20px}.sb-choice{white-space:normal;overflow-wrap:anywhere;width:100%;min-width:0;height:51px;padding:0 8px}.sb-question--choices-single .sb-choice{text-align:left;border-radius:16px;justify-content:flex-start;height:auto;min-height:51px;padding:16px 22px}.sb-choice--other{color:var(--sb-theme-input-placeholder,#08080866);gap:0;font-weight:400}.sb-choice--other:before{background:var(--sb-theme-input-foreground,var(--sb-text));flex:0 0 1px;width:1px;height:22px;position:static;transform:none}.sb-question--text{padding-top:10px}.sb-question--other{animation:.25s ease-in-out both sb-step-in}.sb-textarea-shell,.sb-textarea{height:155px;min-height:155px}.sb-textarea{padding:17px 22px;font-size:16px;font-weight:400;line-height:1.2}.sb-sheet__body--question{padding-bottom:16px}.sb-sheet__footer{border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);justify-content:flex-end;align-items:center;gap:16px;min-height:84px;margin:0;padding:16px 20px 20px;display:flex}.sb-sheet__footer-comment{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:left;-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:auto;margin:0;font-size:16px;font-weight:600;line-height:1.2;animation:.18s ease-out both sb-footer-comment-in,.18s ease-in 1s forwards sb-footer-comment-out;display:-webkit-box;overflow:hidden}.sb-next{flex:0 0 101px;height:48px}.sb-next svg{width:20px;height:20px;transform:none}.sb-sheet--completing .sb-progress__fill{transition-duration:.5s}.sb-thanks{gap:23px;padding:0;animation:.3s ease-in-out .89s both sb-completion-in}.sb-thanks__icon-shell{animation:sb-completion-icon-in .72s var(--sb-sheet-motion-ease) .35s both}.sb-thanks__icon-core svg{width:35.44px;height:27.02px}.sb-thanks__copy{width:100%;max-width:330px}.sb-thanks__copy h2{letter-spacing:-.6px;font-weight:600}.sb-thanks__copy p{max-width:292px;margin-inline:auto;line-height:1.5}.sb-thanks__actions{gap:10px}.sb-choice-measure{white-space:nowrap;visibility:hidden;width:max-content;padding:0 8px;font-size:16px;font-weight:700;position:fixed;top:-10000px;left:-10000px}.sb-choice-measure--other{padding-left:9px;padding-right:8px;font-weight:400}@keyframes sb-fab-enter-scale{0%{scale:0}to{scale:1}}@keyframes sb-fab-enter-width{0%{width:60px;translate:var(--sb-fab-anchor-offset) 0}to{width:var(--sb-fab-expanded-width);translate:0}}@keyframes sb-fab-label-in{0%{opacity:0}to{opacity:1}}@keyframes sb-fab-timer-in{0%{opacity:0}to{opacity:1}}@keyframes sb-fab-exit-width{0%{width:var(--sb-fab-exit-width,var(--sb-fab-expanded-width));translate:var(--sb-fab-exit-offset,0) 0}to{width:60px;translate:var(--sb-fab-anchor-offset) 0}}@keyframes sb-fab-label-out{0%{opacity:var(--sb-fab-exit-label-opacity,1)}to{opacity:0}}@keyframes sb-fab-badge-out{0%{scale:1}to{scale:0}}@keyframes sb-fab-exit-scale{0%{scale:var(--sb-fab-exit-scale,1)}to{scale:0}}@keyframes sb-sheet-in-mobile{0%{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-sheet-in-desktop{0%{opacity:0;transform:translate(-50%,calc(28px - 50%))}to{opacity:1;transform:translate(-50%,-50%)}}@keyframes sb-sheet-out-mobile{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@keyframes sb-sheet-out-desktop{0%{opacity:1;transform:translate(-50%,-50%)}to{opacity:0;transform:translate(-50%,100vh)}}@keyframes sb-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes sb-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes sb-fab-timer-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-card-in{0%{opacity:0;transform:translate(-50%,28px)}to{opacity:1;transform:translate(-50%)}}@keyframes sb-card-out{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,calc(100% + 8px))}}@keyframes sb-step-in{0%{opacity:0}to{opacity:1}}@keyframes sb-acknowledgement-in{0%{opacity:0;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}@keyframes sb-next-acknowledgement{0%,to{rotate:0deg;scale:1}39%{rotate:-14deg;scale:1.18}}@keyframes sb-spark-ring-in{0%{opacity:0;transform:scale(.55)}to{opacity:1;transform:scale(1)}}@keyframes sb-footer-comment-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-footer-comment-out{0%{opacity:1}to{opacity:0}}@keyframes sb-completion-icon-in{0%{opacity:0;transform:translateY(46px)scale(.72)}58%{opacity:1;transform:translateY(46px)scale(1.82)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes sb-completion-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.sb-fab--entering,.sb-fab--entering .sb-fab__label,.sb-fab--entering .sb-fab__timer,.sb-fab--exiting,.sb-fab--exiting .sb-fab__label,.sb-fab--exiting .sb-fab__badge,.sb-sheet,.sb-step,.sb-spark-ring,.sb-sheet__acknowledgement,.sb-sheet__footer-comment,.sb-thanks,.sb-thanks__icon-shell,.sb-sheet-root__overlay,.sb-sheet-root--exiting .sb-sheet,.sb-sheet-root--exiting .sb-sheet-root__overlay{animation-duration:.001ms;animation-delay:0s}.sb-fab--entering .sb-fab__timer-fill{animation-delay:0s}.sb-sheet__footer-comment{animation:none}}";
|
|
575
|
+
var fe = "<svg viewBox=\"0 0 24 24\" aria-hidden=\"true\"><path d=\"M6.4 6.4 17.6 17.6M17.6 6.4 6.4 17.6\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\"/></svg>", pe = "<svg viewBox=\"0 0 14 14\" aria-hidden=\"true\"><path d=\"M6.66667 0 5.49167 1.175 10.1417 5.83333H0V7.5h10.1417l-4.65 4.6583 1.175 1.175L13.3333 6.66667 6.66667 0Z\" fill=\"currentColor\"/></svg>", me = "<svg viewBox=\"0 0 36 28\" aria-hidden=\"true\"><path d=\"m11.2619 21.3151-8.40108-8.4011L0 15.7546l11.2619 11.262L35.4379 2.84067 32.5972 0 11.2619 21.3151Z\" fill=\"currentColor\"/></svg>", z = "<svg viewBox=\"0 0 35.5556 35.5556\" aria-hidden=\"true\"><path d=\"M19.436 3.05195 11.2286 11.2594c-.5481.5481-.8592 1.3037-.8592 2.0888v14.8c0 1.6297 1.3333 2.963 2.9629 2.963h13.3334c1.1851 0 2.2518-.7111 2.7259-1.7926l4.8296-11.2741c1.2445-2.9333-.9037-6.1925-4.0889-6.1925H21.762l1.4074-6.78523c.1481-.74075-.0741-1.4963-.6074-2.02963-.8741-.85926-2.2667-.85926-3.126.01481ZM4.44343 31.1112c1.62963 0 2.96296-1.3333 2.96296-2.963V16.2964c0-1.6296-1.33333-2.963-2.96296-2.963-1.62963 0-2.96296 1.3334-2.96296 2.963v11.8518c0 1.6297 1.33333 2.963 2.96296 2.963Z\" fill=\"currentColor\"/></svg>", B = "<svg viewBox=\"0 0 35.5556 35.5556\" aria-hidden=\"true\"><path d=\"m16.1165 32.5036 8.1926-8.2074c.5481-.5482.8592-1.3037.8592-2.0889v-14.8c0-1.62963-1.3333-2.96296-2.9629-2.96296H8.88686c-1.18519 0-2.25185.71111-2.71111 1.79259L1.34612 17.511c-1.25926 2.9333.88889 6.1926 4.07407 6.1926h8.37041l-1.4074 6.7852c-.1482.7407.074 1.4963.6074 2.0296.874.8593 2.2666.8593 3.1259-.0148ZM31.1091 4.44434c-1.6296 0-2.963 1.33333-2.963 2.96296v11.8519c0 1.6296 1.3334 2.9629 2.963 2.9629 1.6296 0 2.9629-1.3333 2.9629-2.9629V7.4073c0-1.62963-1.3333-2.96296-2.9629-2.96296Z\" fill=\"currentColor\"/></svg>", he = ".sb-snackbar-root{--sb-text:var(--sb-snackbar-text);--sb-text-muted:var(--sb-theme-content-body);--sb-surface:var(--sb-snackbar-surface);z-index:1100;pointer-events:none;color:var(--sb-snackbar-text);font-family:Inter,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;position:fixed;inset:0}.sb-snackbar-root *,.sb-snackbar-root :before,.sb-snackbar-root :after{box-sizing:border-box}.sb-snackbar-root h2{text-transform:none;letter-spacing:normal}.sb-snackbar-shell{left:var(--sb-snackbar-left);bottom:var(--sb-snackbar-bottom);width:var(--sb-snackbar-width);transition:left .2s ease-in-out,bottom .2s ease-in-out,width .2s ease-in-out;position:absolute}.sb-snackbar-surface{width:100%;height:var(--sb-snackbar-height,64px);border-radius:calc(var(--sb-snackbar-compact-height,64px) / 2);background:var(--sb-snackbar-surface);box-shadow:inset 0 0 0 1px var(--sb-snackbar-border);transition:height .45s cubic-bezier(0,.87,.39,1),border-radius .45s cubic-bezier(0,.87,.39,1);position:relative;overflow:hidden}.sb-snackbar-compact{width:var(--sb-snackbar-compact-width,364px);align-items:center;gap:10px;min-height:64px;padding:10px;transition:opacity .12s ease-out;display:flex;position:relative}.sb-snackbar-artwork{--sb-theme-fab-accent-primary:var(--sb-theme-sheet-progress-fill);--sb-theme-fab-accent-secondary:var(--sb-snackbar-surface);--sb-theme-fab-foreground:var(--sb-snackbar-text);background:var(--sb-theme-sheet-progress-fill);border-radius:50%;flex:0 0 40px;width:40px;height:40px;position:relative;overflow:hidden}.sb-snackbar-artwork img{z-index:2;object-fit:cover;width:100%;height:100%;position:absolute;inset:0}.sb-snackbar-prompt{overflow-wrap:anywhere;flex:1;min-width:0;margin:0;font-size:14px;font-weight:600;line-height:20px;position:relative}.sb-snackbar-answers{flex:none;gap:4px;display:flex;position:relative}.sb-snackbar-answer{width:44px;height:44px;color:var(--sb-snackbar-text);background:var(--sb-snackbar-normal);cursor:pointer;pointer-events:auto;border:0;border-radius:50%;place-items:center;margin:0;padding:0;transition:background .12s ease-out,scale .12s ease-out;display:grid}.sb-snackbar-answer svg{width:18px;height:18px}.sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-hover)}.sb-snackbar-answer:active:not(:disabled){background:var(--sb-snackbar-pressed);scale:.94}.sb-snackbar-answer[aria-pressed=true]{color:var(--sb-snackbar-on-active);background:var(--sb-snackbar-active)}.sb-snackbar-answer:disabled{cursor:default;pointer-events:none;opacity:1}.sb-snackbar-close{top:-25px;width:44px;height:44px;color:var(--sb-snackbar-text);pointer-events:auto;cursor:pointer;background:0 0;border:0;place-items:center;margin:0;padding:13px;display:grid;position:absolute;inset-inline-start:-15px}.sb-snackbar-close svg{background:var(--sb-snackbar-surface);border-radius:50%;width:18px;height:18px;padding:2px}.sb-snackbar-answer:focus-visible,.sb-snackbar-close:focus-visible{outline:2px solid var(--sb-snackbar-text);outline-offset:2px}.sb-snackbar-timer{pointer-events:none;position:absolute;overflow:hidden}.sb-snackbar-timer--fill{background:var(--sb-snackbar-elapsed);inset:0}.sb-snackbar-timer--bar{inset-inline:1px 3px;background:var(--sb-theme-sheet-progress-track);height:2px;bottom:-6px}.sb-snackbar-timer-fill{transform-origin:0;background:var(--sb-theme-sheet-progress-fill);width:100%;height:100%;display:block}.sb-snackbar-timer--fill .sb-snackbar-timer-fill{background:var(--sb-snackbar-remaining)}.sb-snackbar-root:is(:lang(ae),:lang(ar),:lang(arc),:lang(bcc),:lang(bqi),:lang(ckb),:lang(dv),:lang(fa),:lang(glk),:lang(he),:lang(ku),:lang(mzn),:lang(nqo),:lang(pnb),:lang(ps),:lang(sd),:lang(ug),:lang(ur),:lang(yi)) .sb-snackbar-timer-fill{transform-origin:100%}.sb-snackbar-root[data-counting=true] .sb-snackbar-timer-fill{animation:sb-snackbar-countdown var(--sb-snackbar-duration) linear forwards}.sb-snackbar-root[data-frozen=true] .sb-snackbar-timer-fill{transform:scaleX(var(--sb-snackbar-fraction));animation:none}.sb-snackbar-overlay{background:var(--sb-theme-sheet-scrim);opacity:0;pointer-events:none;border:0;width:100%;height:100%;margin:0;padding:0;transition:opacity .45s ease-out;position:absolute;inset:0}.sb-snackbar-card{width:var(--sb-snackbar-card-width);max-height:var(--sb-snackbar-max-height);opacity:0;pointer-events:none;position:absolute;bottom:0;left:0;overflow:auto}.sb-snackbar-root .sb-snackbar-card .sb-sheet-root{position:static;inset:auto}.sb-snackbar-root .sb-snackbar-card .sb-sheet-root__overlay{display:none}.sb-snackbar-root .sb-snackbar-card .sb-sheet{width:100%;max-height:none;box-shadow:none;background:0 0;border:0;margin:0;animation:none;position:relative;inset:auto;transform:none}.sb-snackbar-card[inert] *{animation-play-state:paused}.sb-snackbar-root[data-stage=widening] .sb-snackbar-compact,.sb-snackbar-root[data-stage=expanding] .sb-snackbar-compact,.sb-snackbar-root[data-stage=ready] .sb-snackbar-compact{opacity:0}.sb-snackbar-root[data-expanded=true] .sb-snackbar-overlay{opacity:1;pointer-events:auto}.sb-snackbar-root[data-expanded=true] .sb-snackbar-close{display:none}.sb-snackbar-root[data-stage=expanding] .sb-snackbar-surface,.sb-snackbar-root[data-stage=ready] .sb-snackbar-surface{box-shadow:none;background:var(--sb-theme-sheet-background);border-radius:40px}.sb-snackbar-root[data-stage=expanding] .sb-snackbar-card{opacity:1;transition:opacity .3s ease-out .12s}.sb-snackbar-root[data-stage=ready] .sb-snackbar-card{opacity:1;pointer-events:auto}.sb-snackbar-root[data-stage=entering] .sb-snackbar-shell{animation:.89016s cubic-bezier(.649439,.0577174,.124599,1) .18584s both sb-snackbar-enter-scale,.893207s cubic-bezier(.649439,.0577174,.124599,1) 1.076s both sb-snackbar-enter-width}.sb-snackbar-root[data-stage=entering] .sb-snackbar-surface{transition:none}.sb-snackbar-root[data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-stage=entering] .sb-snackbar-answers,.sb-snackbar-root[data-stage=entering] .sb-snackbar-close{animation:.2s ease-out 1.076s both sb-snackbar-label}.sb-snackbar-root[data-stage=entering] .sb-snackbar-timer{animation:.2s ease-out 1.96921s both sb-snackbar-label}.sb-root--inline .sb-snackbar-root{position:absolute}@keyframes sb-snackbar-countdown{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-snackbar-enter-scale{0%{scale:0}to{scale:1}}@keyframes sb-snackbar-enter-width{0%{width:var(--sb-snackbar-compact-height,64px);translate:var(--sb-snackbar-entrance-offset) 0}to{width:var(--sb-snackbar-width);translate:0}}@keyframes sb-snackbar-label{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){.sb-snackbar-root[data-counting=true] .sb-snackbar-timer-fill{animation-duration:var(--sb-snackbar-duration)!important}.sb-snackbar-root .sb-snackbar-shell,.sb-snackbar-root .sb-snackbar-surface,.sb-snackbar-root .sb-snackbar-card,.sb-snackbar-root .sb-snackbar-compact,.sb-snackbar-root .sb-snackbar-overlay{transition:none}.sb-snackbar-root[data-stage=entering] .sb-snackbar-shell,.sb-snackbar-root[data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-stage=entering] .sb-snackbar-timer,.sb-snackbar-root[data-stage=entering] .sb-snackbar-close,.sb-snackbar-root[data-stage=entering] .sb-snackbar-answers{animation:none}}.sb-snackbar-root[data-presentation=bar]{--sb-bar-hidden-y:max(80px, 100%)}.sb-snackbar-root[data-presentation=bar][data-position=top]{--sb-bar-hidden-y:calc(-1 * max(80px, 100%))}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-shell{top:var(--sb-bar-top,0px);transition:left .2s ease-in-out,top .2s ease-in-out,width .2s ease-in-out;bottom:auto}.sb-snackbar-root[data-presentation=bar]:not([data-expanded=true]) .sb-snackbar-surface{box-shadow:none;border-radius:0}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{border-block-start:1px solid var(--sb-snackbar-border);min-height:48px;padding:10px max(108px, env(safe-area-inset-right,0px)) 10px max(108px, env(safe-area-inset-left,0px));pointer-events:auto;justify-content:center}.sb-snackbar-root[data-presentation=bar][data-position=bottom] .sb-snackbar-compact{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-compact{padding-top:calc(10px + env(safe-area-inset-top,0px));border-block-start:0;border-block-end:1px solid var(--sb-snackbar-border)}.sb-bar-content{align-items:center;gap:12px;min-width:0;transition:opacity .25s ease-out;display:flex;position:relative}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-prompt{text-align:center;text-wrap:pretty;flex:0 auto;font-size:14px;font-weight:400;line-height:1.3}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answers{gap:4px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer{border:1px solid var(--sb-snackbar-border);background:var(--sb-snackbar-surface);-webkit-tap-highlight-color:transparent;border-radius:36px;width:36px;height:24px;transition:background .18s,border-color .18s,scale .15s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer svg{width:14.4px;height:14.4px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer[aria-pressed=true]{background:var(--sb-snackbar-active);color:var(--sb-snackbar-on-active)}.sb-bar-acknowledgement{opacity:0;visibility:hidden;pointer-events:none;text-align:center;color:var(--sb-snackbar-text);justify-content:center;align-items:center;padding:10px 24px;font-size:18px;font-weight:600;line-height:1.4;transition:opacity .35s cubic-bezier(.16,1,.3,1) .1s,translate .35s cubic-bezier(.16,1,.3,1) .1s;display:flex;position:absolute;inset:0;translate:0 10px}.sb-snackbar-root[data-rated=true] .sb-bar-content,.sb-snackbar-root[data-rated=true] .sb-bar-dismiss,.sb-snackbar-root[data-rated=true][data-presentation=bar] .sb-snackbar-timer{opacity:0;pointer-events:none}.sb-snackbar-root[data-rated=true] .sb-bar-acknowledgement{opacity:1;visibility:visible;translate:0}.sb-bar-acknowledgement-copy{overflow-wrap:anywhere;min-width:0;max-width:100%}.sb-snackbar-root[data-presentation=bar][data-rated=true] .sb-snackbar-compact{min-height:var(--sb-snackbar-height,48px)}.sb-bar-dismiss{inset-inline-end:20px;width:68px;height:44px;color:var(--sb-theme-content-body);font:inherit;white-space:nowrap;cursor:pointer;background:0 0;border:0;border-radius:0;margin:0;padding:0 5px;font-size:14px;line-height:1.3;transition:opacity .25s ease-out;position:absolute;top:50%;translate:0 -50%}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-surface)}@media (hover:hover){.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:hover:not(:disabled){background:var(--sb-snackbar-hover);border-color:var(--sb-theme-input-border)}}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:not(:disabled):active{background:var(--sb-snackbar-pressed);scale:.96}.sb-bar-dismiss:focus-visible{outline:2px solid var(--sb-snackbar-text);outline-offset:2px}.sb-bar-dismiss:disabled{cursor:default}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer{transition:opacity .25s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar{inset-inline:auto 25px;background:var(--sb-snackbar-border);width:58px;height:1px;top:calc(50% + 8px);bottom:auto}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar .sb-snackbar-timer-fill{background:var(--sb-theme-content-body)}.sb-snackbar-root[data-presentation=bar][data-paused=true] .sb-snackbar-timer-fill{animation-play-state:paused}.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-shell{animation:.45s cubic-bezier(.16,1,.3,1) .4s both sb-bar-enter}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-shell{pointer-events:none;animation:.4s cubic-bezier(.55,0,.55,.2) both sb-bar-exit}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-overlay{opacity:0;pointer-events:none}.sb-snackbar-root[data-presentation=bar][data-exiting=true][data-expanded=true] .sb-snackbar-shell{animation:.4s ease-out both sb-bar-card-exit}.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-prompt,.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-answers,.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-timer{animation:none}@keyframes sb-bar-enter{0%{translate:0 var(--sb-bar-hidden-y)}to{translate:0}}@keyframes sb-bar-exit{0%{translate:0}to{translate:0 var(--sb-bar-hidden-y)}}@keyframes sb-bar-fade-in{0%{opacity:0}to{opacity:1}}@keyframes sb-bar-fade-out{0%{opacity:1}to{opacity:0}}@keyframes sb-bar-card-exit{0%{opacity:1;translate:0}to{opacity:0;translate:0 12px}}@media (width<=768px){.sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{padding-inline:max(24px, env(safe-area-inset-left,0px)) max(24px, env(safe-area-inset-right,0px))}.sb-bar-content{width:100%}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-prompt{text-align:start;flex:1}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answers{gap:5.333px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer{border-radius:48px;width:48px;height:32px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer svg{width:19.2px;height:19.2px}.sb-bar-acknowledgement{text-align:start;justify-content:flex-start}.sb-snackbar-root[data-presentation=bar][data-timed=true] .sb-bar-dismiss{display:none}.sb-snackbar-root[data-presentation=bar][data-timed=false] .sb-bar-content{padding-inline-end:76px}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-timer--bar{inset-inline:0;width:auto;top:0}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-timer--bar{top:auto;bottom:0}}.sb-root--inline .sb-snackbar-root[data-presentation=bar] .sb-snackbar-compact{padding-block:10px}@media (prefers-reduced-motion:reduce){.sb-snackbar-root[data-presentation=bar][data-stage=entering] .sb-snackbar-shell{animation:.15s ease-out both sb-bar-fade-in}.sb-snackbar-root[data-presentation=bar][data-exiting=true] .sb-snackbar-shell,.sb-snackbar-root[data-presentation=bar][data-exiting=true][data-expanded=true] .sb-snackbar-shell{animation:.15s ease-out both sb-bar-fade-out}.sb-snackbar-root[data-presentation=bar][data-position=top] .sb-snackbar-shell{transition:none}.sb-bar-acknowledgement{transition:opacity .15s ease-out;translate:none}.sb-bar-content,.sb-bar-dismiss{transition:opacity .15s ease-out}.sb-snackbar-root[data-presentation=bar] .sb-snackbar-answer:not(:disabled):active{scale:1}}.sb-sheet__close:before{content:\"\";background:currentColor;width:24px;height:24px;display:block;-webkit-mask:url(\"data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M12%2013.4L7.1%2018.3C6.91667%2018.4833%206.68333%2018.575%206.4%2018.575C6.11667%2018.575%205.88333%2018.4833%205.7%2018.3C5.51667%2018.1167%205.425%2017.8833%205.425%2017.6C5.425%2017.3167%205.51667%2017.0833%205.7%2016.9L10.6%2012L5.7%207.1C5.51667%206.91667%205.425%206.68333%205.425%206.4C5.425%206.11667%205.51667%205.88333%205.7%205.7C5.88333%205.51667%206.11667%205.425%206.4%205.425C6.68333%205.425%206.91667%205.51667%207.1%205.7L12%2010.6L16.9%205.7C17.0833%205.51667%2017.3167%205.425%2017.6%205.425C17.8833%205.425%2018.1167%205.51667%2018.3%205.7C18.4833%205.88333%2018.575%206.11667%2018.575%206.4C18.575%206.68333%2018.4833%206.91667%2018.3%207.1L13.4%2012L18.3%2016.9C18.4833%2017.0833%2018.575%2017.3167%2018.575%2017.6C18.575%2017.8833%2018.4833%2018.1167%2018.3%2018.3C18.1167%2018.4833%2017.8833%2018.575%2017.6%2018.575C17.3167%2018.575%2017.0833%2018.4833%2016.9%2018.3L12%2013.4Z'%20fill='%23E8E8E8'/%3e%3c/g%3e%3c/svg%3e\") 50%/24px 24px no-repeat;mask:url(\"data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='24'%20height='24'%20viewBox='0%200%2024%2024'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='close'%3e%3cpath%20id='Vector'%20d='M12%2013.4L7.1%2018.3C6.91667%2018.4833%206.68333%2018.575%206.4%2018.575C6.11667%2018.575%205.88333%2018.4833%205.7%2018.3C5.51667%2018.1167%205.425%2017.8833%205.425%2017.6C5.425%2017.3167%205.51667%2017.0833%205.7%2016.9L10.6%2012L5.7%207.1C5.51667%206.91667%205.425%206.68333%205.425%206.4C5.425%206.11667%205.51667%205.88333%205.7%205.7C5.88333%205.51667%206.11667%205.425%206.4%205.425C6.68333%205.425%206.91667%205.51667%207.1%205.7L12%2010.6L16.9%205.7C17.0833%205.51667%2017.3167%205.425%2017.6%205.425C17.8833%205.425%2018.1167%205.51667%2018.3%205.7C18.4833%205.88333%2018.575%206.11667%2018.575%206.4C18.575%206.68333%2018.4833%206.91667%2018.3%207.1L13.4%2012L18.3%2016.9C18.4833%2017.0833%2018.575%2017.3167%2018.575%2017.6C18.575%2017.8833%2018.4833%2018.1167%2018.3%2018.3C18.1167%2018.4833%2017.8833%2018.575%2017.6%2018.575C17.3167%2018.575%2017.0833%2018.4833%2016.9%2018.3L12%2013.4Z'%20fill='%23E8E8E8'/%3e%3c/g%3e%3c/svg%3e\") 50%/24px 24px no-repeat}:host{--sb-surface:var(--sb-theme-sheet-background,#fff);--sb-surface-muted:var(--sb-theme-button-secondary-background,#f2f2f2);--sb-border:var(--sb-theme-input-border,#0808081f);--sb-border-strong:#0808083d;--sb-border-active:var(--sb-theme-input-focused-border,#080808b3);--sb-text:var(--sb-theme-content-heading,#080808);--sb-text-muted:var(--sb-theme-content-body,#5c5c5c);--sb-overlay:var(--sb-theme-sheet-scrim,#00000061);--sb-ease:cubic-bezier(.2, .9, .2, 1);--sb-fab-motion-ease:cubic-bezier(.649439, .0577174, .124599, 1);--sb-sheet-motion-ease:cubic-bezier(0, .87, .39, 1);font-family:-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}.sb-safe-area-probe{visibility:hidden;pointer-events:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);position:fixed;inset:0}.sb-fab{right:16px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:1000;box-sizing:border-box;border:1px solid var(--sb-theme-fab-border,#080808);background:var(--sb-theme-fab-background,#080808);min-width:0;height:60px;color:var(--sb-theme-fab-foreground,#fff);border-color:var(--sb-theme-fab-border,#080808);cursor:pointer;will-change:transform;align-items:center;transition:scale .12s ease-out;display:inline-flex;position:fixed;overflow:hidden}.sb-fab--entering{animation:sb-fab-enter-scale .89016s var(--sb-fab-motion-ease) .259705s both, sb-fab-enter-width .893207s var(--sb-fab-motion-ease) 1.076s both;transform-origin:50%!important}.sb-fab--entering .sb-fab__label{animation:sb-fab-label-in .2s var(--sb-fab-motion-ease) 1.14987s both}.sb-fab--entering .sb-fab__timer{animation:sb-fab-timer-in .2s var(--sb-fab-motion-ease) 1.96921s both}.sb-fab--entering .sb-fab__timer-fill{animation-delay:1.96921s}.sb-fab--exiting{width:var(--sb-fab-exit-width,var(--sb-fab-expanded-width));pointer-events:none;scale:var(--sb-fab-exit-scale,1);translate:var(--sb-fab-exit-offset,0) 0;animation:.292089s cubic-bezier(.677885,.170122,.695982,.997824) .3s forwards sb-fab-exit-width,.390467s cubic-bezier(.362165,.0946429,.49708,.932961) .466372s forwards sb-fab-exit-scale;transform:none;transform-origin:50%!important}.sb-fab--exiting .sb-fab__label{opacity:var(--sb-fab-exit-label-opacity,1);animation:.389727s cubic-bezier(.5,0,.5,1) .3s forwards sb-fab-label-out}.sb-fab--exiting .sb-fab__timer{opacity:var(--sb-fab-exit-timer-opacity,0)}.sb-fab--exiting .sb-fab__badge{animation:.297243s cubic-bezier(.5,0,1,.600461) .398177s forwards sb-fab-badge-out}.sb-next:hover,.sb-next:focus-visible,.sb-button:hover,.sb-button:focus-visible,.sb-choice:hover,.sb-choice:focus-visible{transform:translateY(-1px)}.sb-fab:active{transition-duration:80ms;scale:.97}.sb-fab:focus-visible,.sb-next:focus-visible,.sb-button:focus-visible,.sb-choice:focus-visible,.sb-sheet__close:focus-visible,.sb-sentiment:focus-visible,.sb-sheet-root__overlay:focus-visible{outline-offset:2px;outline:2px solid #6366f1a6}.sb-sheet h2[tabindex=\"-1\"]:focus{outline:none}.sb-fab--expanded{width:var(--sb-fab-expanded-width,auto);border-radius:999px;justify-content:flex-start;gap:12px;min-height:60px;padding:13px 28px 13px 14px}.sb-fab__label{z-index:1;width:var(--sb-fab-label-width,auto);color:currentColor;text-align:left;white-space:nowrap;text-overflow:clip;min-width:0;font-size:14px;font-weight:600;line-height:1;position:relative;overflow:hidden}.sb-fab__badge{z-index:1;background:var(--sb-theme-fab-accent-primary,#f97316);border-radius:50%;flex:none;place-items:center;width:32px;height:32px;display:grid;position:relative}.sb-fab__badge-artwork{background:var(--sb-theme-fab-accent-secondary,#2563eb);border-radius:50%;display:block;position:absolute;inset:5.44px}.sb-fab__badge-image{z-index:2;border-radius:inherit;object-fit:cover;width:100%;height:100%;display:block;position:absolute;inset:0}.sb-fab__badge-glyph-center,.sb-fab__badge-glyph-amber,.sb-fab__badge-glyph-mint,.sb-fab__badge-glyph-rose{border-radius:999px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.sb-fab__badge-glyph-center{background:var(--sb-theme-fab-foreground,#fff);border-radius:3.52px;width:4.16px;height:11.52px}.sb-fab__badge-glyph-amber{background:#fac143;width:2.88px;height:6.72px;translate:-3.04px .8px}.sb-fab__badge-glyph-mint{background:#39c690;width:2.88px;height:5.44px;translate:3.04px -.32px}.sb-fab__badge-glyph-rose{background:#e86398;width:2.56px;height:4.16px;translate:.96px 3.68px}.sb-fab__timer{z-index:0;pointer-events:none;position:absolute;overflow:hidden}.sb-fab__timer--bar{background:var(--sb-theme-fab-timer-track,#08080829);border-radius:999px;height:2px;bottom:4px;left:59px;right:29px}.sb-fab[data-timer-direction=rtl] .sb-fab__timer--bar{left:29px;right:59px}.sb-fab__timer--fill{border-radius:inherit;background:var(--sb-theme-fab-timer-track,#08080829);inset:0}.sb-fab__timer-fill{border-radius:inherit;background:var(--sb-theme-fab-timer-fill,#080808e6);width:100%;height:100%;transform-origin:var(--sb-fab-timer-origin,left);animation:sb-fab-timer-bar var(--sb-timer-duration) linear forwards;display:block}.sb-sheet-root{z-index:1100;position:fixed;inset:0}.sb-sheet-root__overlay{background:var(--sb-overlay);cursor:pointer;border:none;animation:.2s ease-in both sb-overlay-in;position:absolute;inset:0}.sb-sheet-root--exiting{pointer-events:none}.sb-sheet-root--exiting .sb-sheet-root__overlay{animation:.2s ease-in forwards sb-overlay-out}.sb-sheet{width:min(100%,100vw);min-height:418px;padding:24px 20px calc(18px + env(safe-area-inset-bottom,0px));box-sizing:border-box;background:var(--sb-surface);box-shadow:var(--sb-shadow);color:var(--sb-text);animation:sb-sheet-in-mobile .45s var(--sb-sheet-motion-ease) both;border-radius:40px 40px 0 0;position:absolute;bottom:0;left:0;right:0}.sb-sheet--thanks{min-height:381px;padding-top:18px}.sb-sheet__header{justify-content:flex-end;align-items:flex-start;min-height:28px;margin-bottom:22px;display:flex;position:relative}.sb-progress{background:var(--sb-theme-sheet-progress-track,#eaeaea);border-radius:999px;width:219px;max-width:calc(100% - 96px);height:6px;position:absolute;top:5px;left:50%;overflow:hidden;transform:translate(-50%)}.sb-progress__fill{border-radius:inherit;background:var(--sb-theme-sheet-progress-fill,#080808);height:100%;transition:width .22s var(--sb-ease);display:block}.sb-sheet__close{background:var(--sb-theme-sheet-close-button-background,transparent);width:20px;height:20px;color:var(--sb-theme-sheet-close-button-foreground,var(--sb-text));cursor:pointer;border:none;padding:0}.sb-sheet__close svg,.sb-next svg,.sb-thanks__icon-core svg{width:100%;height:100%;display:block}.sb-sheet__body{gap:26px;display:grid}.sb-sheet__copy{justify-items:center;gap:8px;display:grid}.sb-sheet__eyebrow{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:center;margin:0;font-size:16px;font-weight:400;line-height:1.4}.sb-sheet__body h2,.sb-thanks__copy h2{color:var(--sb-theme-content-heading,var(--sb-text));text-align:center;margin:0;font-size:22px;font-weight:600;line-height:1.2}.sb-sheet__body h2{justify-self:center;width:min(297px,100%)}.sb-choice--selected,.sb-choice:hover,.sb-textarea-shell:focus-within{border-color:var(--sb-theme-choice-hover-border,var(--sb-border-active))}.sb-choice:hover{background:var(--sb-theme-choice-hover-background,var(--sb-surface));color:var(--sb-theme-choice-hover-foreground,var(--sb-text))}.sb-choice:active{border-color:var(--sb-theme-choice-pressed-border,var(--sb-border-active));background:var(--sb-theme-choice-pressed-background,var(--sb-surface-muted));color:var(--sb-theme-choice-pressed-foreground,var(--sb-text))}.sb-choice--selected{box-shadow:0 0 0 3px #0808080d}.sb-choice:disabled{border-color:var(--sb-theme-choice-disabled-border,#e2e2e2);background:var(--sb-theme-choice-disabled-background,#f2f2f2);color:var(--sb-theme-choice-disabled-foreground,#5c5c5c);cursor:not-allowed}.sb-question--choices{grid-template-columns:repeat(2,160px);justify-content:center;justify-self:center;gap:9px;width:min(330px,100%)}.sb-choice{border:1px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:160px;height:51px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));text-align:center;white-space:nowrap;cursor:pointer;transition:transform .2s var(--sb-ease), border-color .18s ease, box-shadow .18s ease, background-color .18s ease;border-radius:999px;justify-content:center;align-items:center;padding:0 16px;font-size:16px;font-weight:700;line-height:1.2;display:flex}.sb-choice__label{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.sb-choice--other{border-color:var(--sb-theme-choice-default-border,#e2e2e2);padding:0;font-weight:400}.sb-choice__other-content{align-items:center;gap:0;display:inline-flex}.sb-choice__other-caret{background:var(--sb-theme-input-foreground,var(--sb-text));flex:none;width:1px;height:22px}.sb-choice__other-label{color:var(--sb-theme-input-placeholder,#08080866);line-height:1.2}.sb-choice--selected{border-color:var(--sb-theme-choice-selected-border,var(--sb-text));background:var(--sb-theme-choice-selected-background,var(--sb-text));color:var(--sb-theme-choice-selected-foreground,var(--sb-surface))}.sb-question--text{justify-self:center;width:min(330px,100%)}.sb-textarea-shell{border:1px solid var(--sb-theme-input-border,#08080833);background:var(--sb-theme-input-background,var(--sb-surface));border-radius:16px;width:100%;min-height:155px;transition:border-color .18s,box-shadow .18s}.sb-textarea{resize:none;width:100%;min-height:155px;color:var(--sb-theme-input-foreground,var(--sb-text));font:inherit;box-sizing:border-box;background:0 0;border:none;outline:none;padding:16px 22px;font-size:16px;line-height:1.2}.sb-textarea::placeholder{color:var(--sb-theme-input-placeholder,#08080866)}.sb-textarea-shell:focus-within{border-color:var(--sb-theme-input-focused-border,var(--sb-border-active))}.sb-textarea:disabled{color:var(--sb-theme-input-disabled-foreground,var(--sb-text-muted))}.sb-textarea-shell:has(.sb-textarea:disabled){background:var(--sb-theme-input-disabled-background,var(--sb-surface-muted))}.sb-sheet__footer{min-height:84px;margin:0 -20px calc(-18px - env(safe-area-inset-bottom,0px));padding:18px 20px calc(18px + env(safe-area-inset-bottom,0px));border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);box-sizing:border-box;justify-content:flex-end;align-items:center;gap:16px;display:flex}.sb-next,.sb-button{cursor:pointer;min-height:48px;font:inherit;transition:transform .2s var(--sb-ease), opacity .18s ease, box-shadow .18s ease;border:none;border-radius:999px}.sb-next{background:var(--sb-theme-button-primary-background,#080808);width:101px;color:var(--sb-theme-button-primary-foreground,#fff);place-items:center;padding:0;display:grid}.sb-next--acknowledging svg{animation:.36s cubic-bezier(.2,.8,.2,1) both sb-next-acknowledgement}.sb-next:disabled,.sb-button:disabled{cursor:not-allowed;box-shadow:none;transform:none}.sb-next:disabled{background:var(--sb-theme-button-primary-disabled-background,#080808);color:var(--sb-theme-button-primary-disabled-foreground,#fff)}.sb-thanks{justify-items:center;gap:23px;padding-top:12px;display:grid}.sb-thanks__icon-shell{background:var(--sb-theme-completion-outer-background,#f0f0f0);border-radius:999px;place-items:center;width:120px;height:120px;display:grid}.sb-thanks__icon-core{background:var(--sb-theme-completion-inner-background,#080808);width:66px;height:66px;color:var(--sb-theme-completion-glyph,#fff);border-radius:999px;place-items:center;display:grid}.sb-thanks__copy{gap:8px;max-width:313px;display:grid}.sb-thanks__copy h2{letter-spacing:-.03em;font-size:30px;line-height:1.1}.sb-thanks__copy p{color:var(--sb-theme-content-body,var(--sb-text-muted));text-align:center;margin:0;font-size:14px;line-height:1.3}.sb-thanks__actions{gap:10px;width:100%;display:flex}.sb-button{flex:1 1 0;padding:16px;font-size:14px;font-weight:600;line-height:1}.sb-button--primary{background:var(--sb-theme-button-primary-background,#080808);color:var(--sb-theme-button-primary-foreground,#fff)}.sb-button--secondary{background:var(--sb-theme-button-secondary-background,#f2f2f2);color:var(--sb-theme-button-secondary-foreground,var(--sb-text))}.sb-button--tertiary{background:var(--sb-theme-button-tertiary-background,transparent);color:var(--sb-theme-button-tertiary-foreground,var(--sb-text))}.sb-button--primary:hover,.sb-button--primary:focus-visible{background:var(--sb-theme-button-primary-hover-background,#080808)}.sb-button--secondary:hover,.sb-button--secondary:focus-visible{background:var(--sb-theme-button-secondary-hover-background,#f2f2f2)}.sb-button--tertiary:hover,.sb-button--tertiary:focus-visible{background:var(--sb-theme-button-tertiary-hover-background,#f2f2f2)}.sb-button--primary:active{background:var(--sb-theme-button-primary-pressed-background,#080808)}.sb-button--secondary:active{background:var(--sb-theme-button-secondary-pressed-background,#e2e2e2)}.sb-button--tertiary:active{background:var(--sb-theme-button-tertiary-pressed-background,#e2e2e2)}.sb-button--primary:disabled{background:var(--sb-theme-button-primary-disabled-background,#080808);color:var(--sb-theme-button-primary-disabled-foreground,#fff)}.sb-button--secondary:disabled{background:var(--sb-theme-button-secondary-disabled-background,#f2f2f2);color:var(--sb-theme-button-secondary-disabled-foreground,var(--sb-text))}.sb-button--tertiary:disabled{background:var(--sb-theme-button-tertiary-disabled-background,#f2f2f2);color:var(--sb-theme-button-tertiary-disabled-foreground,var(--sb-text))}@media (width>=768px){.sb-fab{bottom:24px;right:24px}}.sb-sheet-root__overlay{padding:0}.sb-sheet{top:auto;right:auto;bottom:calc(8px + env(safe-area-inset-bottom,0px));width:min(376px,100% - 24px);min-height:0;max-height:calc(100% - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));box-shadow:none;animation:sb-card-in .45s var(--sb-sheet-motion-ease) both;interpolate-size:allow-keywords;border-radius:40px;padding:0;transition:height .45s cubic-bezier(0,.83,.363,.994);position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.sb-sheet-root--exiting .sb-sheet{animation:.45s ease-in forwards sb-card-out}.sb-sheet--thanks{min-height:0;padding:22px 20px}.sb-sheet__header{height:50px;min-height:0;margin:0;display:block;position:relative}.sb-progress{width:216px;max-width:calc(100% - 96px);height:6px;top:27px}.sb-progress__fill{transition:width .45s var(--sb-sheet-motion-ease)}.sb-sheet__close{box-sizing:border-box;border-radius:1000px;width:40px;height:40px;padding:8px;position:absolute;top:10px;right:16px}.sb-sheet__body{display:block}.sb-step{animation:.25s ease-in-out both sb-step-in}.sb-sheet__copy{box-sizing:border-box;align-content:center;justify-items:center;gap:0;height:88px;padding:0 23px;display:grid}.sb-sheet__body h2{text-align:center;text-wrap:balance;width:100%;margin:0;font-size:19px;font-weight:600;line-height:1.22}.sb-sheet__body--sentiment{padding:12px 24px 22px}.sb-sheet__body--sentiment .sb-sheet__copy{gap:8px;height:auto;min-height:84px;padding:0}.sb-sheet__body--sentiment .sb-sheet__eyebrow{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:center;-webkit-line-clamp:2;-webkit-box-orient:vertical;margin:0;font-size:16px;font-weight:400;line-height:1.2;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2{-webkit-line-clamp:3;-webkit-box-orient:vertical;font-size:22px;font-weight:600;line-height:1.2;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2.sb-sheet__acknowledgement{align-content:center;min-height:70px;font-size:29px;line-height:1.08;animation:.28s cubic-bezier(.2,.8,.2,1) both sb-acknowledgement-in}.sb-question{justify-items:stretch;display:grid}.sb-question--sentiment{grid-template-columns:repeat(2,80px);justify-content:center;gap:25px;width:185px;margin:37px auto 31px;position:relative}.sb-sheet__body--sentiment:has(.sb-sheet__acknowledgement) .sb-question--sentiment{margin-top:35px}.sb-sentiment{z-index:0;border:1.111px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:80px;height:80px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));cursor:pointer;border-radius:50%;place-items:center;padding:0;transition:transform .12s ease-out,border-color .18s,background-color .18s;display:grid;position:relative}.sb-sentiment__icon{z-index:1;width:35.5556px;height:35.5556px}.sb-sentiment__icon svg{width:100%;height:100%;display:block}.sb-sentiment:hover{border-color:var(--sb-theme-choice-hover-border,var(--sb-border-active));background:var(--sb-theme-choice-hover-background,var(--sb-surface));color:var(--sb-theme-choice-hover-foreground,var(--sb-text))}.sb-sentiment:active{border-color:var(--sb-theme-choice-pressed-border,var(--sb-border-active));background:var(--sb-theme-choice-pressed-background,var(--sb-surface-muted));color:var(--sb-theme-choice-pressed-foreground,var(--sb-text));transform:scale(.97)}.sb-sentiment--selected,.sb-sentiment--selected:disabled{border-color:var(--sb-theme-choice-selected-border,var(--sb-text));background:var(--sb-theme-choice-selected-background,var(--sb-text));color:var(--sb-theme-choice-selected-foreground,var(--sb-surface))}.sb-sentiment:disabled:not(.sb-sentiment--selected){border-color:var(--sb-theme-choice-disabled-border,#e2e2e2);background:var(--sb-theme-choice-disabled-background,#f2f2f2);color:var(--sb-theme-choice-disabled-foreground,#5c5c5c)}.sb-sentiment:disabled{cursor:default}.sb-spark-ring{z-index:-1;pointer-events:none;animation:.22s cubic-bezier(.25,.46,.45,.94) both sb-spark-ring-in;position:absolute;inset:-26px}.sb-spark-ring__spark{--sb-spark-angle:calc(var(--sb-spark-index) * 30deg);width:7px;height:7px;transform:translate(-50%, -50%) rotate(var(--sb-spark-angle)) translateY(-54px);background:#dedede;border-radius:50%;position:absolute;top:50%;left:50%}.sb-spark-ring__spark:nth-child(2n){width:12px;height:12px;transform:translate(-50%, -50%) rotate(var(--sb-spark-angle)) translateY(-59px)}.sb-question--choices,.sb-question--text{justify-self:stretch;width:auto;margin:0 24px}.sb-question--choices{scrollbar-gutter:stable;align-content:start;gap:8px;max-height:320.5px;overflow:hidden auto}.sb-question--choices-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sb-question--choices-single{grid-template-columns:minmax(0,1fr)}.sb-question--choices-scrolling{padding-bottom:20px}.sb-choice{white-space:normal;overflow-wrap:anywhere;width:100%;min-width:0;height:51px;padding:0 8px}.sb-question--choices-single .sb-choice{text-align:left;border-radius:16px;justify-content:flex-start;height:auto;min-height:51px;padding:16px 22px}.sb-choice--other{color:var(--sb-theme-input-placeholder,#08080866);gap:0;font-weight:400}.sb-choice--other:before{background:var(--sb-theme-input-foreground,var(--sb-text));flex:0 0 1px;width:1px;height:22px;position:static;transform:none}.sb-question--text{padding-top:10px}.sb-question--other{animation:.25s ease-in-out both sb-step-in}.sb-textarea-shell,.sb-textarea{height:155px;min-height:155px}.sb-textarea{padding:17px 22px;font-size:16px;font-weight:400;line-height:1.2}.sb-sheet__body--question{padding-bottom:16px}.sb-sheet__footer{border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);justify-content:flex-end;align-items:center;gap:16px;min-height:84px;margin:0;padding:16px 20px 20px;display:flex}.sb-sheet__footer-comment{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:left;-webkit-line-clamp:2;-webkit-box-orient:vertical;flex:auto;margin:0;font-size:16px;font-weight:600;line-height:1.2;animation:.18s ease-out both sb-footer-comment-in,.18s ease-in 1s forwards sb-footer-comment-out;display:-webkit-box;overflow:hidden}.sb-next{flex:0 0 101px;height:48px}.sb-next svg{width:20px;height:20px;transform:none}.sb-sheet--completing .sb-progress__fill{transition-duration:.5s}.sb-thanks{gap:23px;padding:0;animation:.3s ease-in-out .89s both sb-completion-in}.sb-thanks__icon-shell{animation:sb-completion-icon-in .72s var(--sb-sheet-motion-ease) .35s both}.sb-thanks__icon-core svg{width:35.44px;height:27.02px}.sb-thanks__copy{width:100%;max-width:330px}.sb-thanks__copy h2{letter-spacing:-.6px;font-weight:600}.sb-thanks__copy p{max-width:292px;margin-inline:auto;line-height:1.5}.sb-thanks__actions{gap:10px}.sb-choice-measure{white-space:nowrap;visibility:hidden;width:max-content;padding:0 8px;font-size:16px;font-weight:700;position:fixed;top:-10000px;left:-10000px}.sb-choice-measure--other{padding-left:9px;padding-right:8px;font-weight:400}@keyframes sb-fab-enter-scale{0%{scale:0}to{scale:1}}@keyframes sb-fab-enter-width{0%{width:60px;translate:var(--sb-fab-anchor-offset) 0}to{width:var(--sb-fab-expanded-width);translate:0}}@keyframes sb-fab-label-in{0%{opacity:0}to{opacity:1}}@keyframes sb-fab-timer-in{0%{opacity:0}to{opacity:1}}@keyframes sb-fab-exit-width{0%{width:var(--sb-fab-exit-width,var(--sb-fab-expanded-width));translate:var(--sb-fab-exit-offset,0) 0}to{width:60px;translate:var(--sb-fab-anchor-offset) 0}}@keyframes sb-fab-label-out{0%{opacity:var(--sb-fab-exit-label-opacity,1)}to{opacity:0}}@keyframes sb-fab-badge-out{0%{scale:1}to{scale:0}}@keyframes sb-fab-exit-scale{0%{scale:var(--sb-fab-exit-scale,1)}to{scale:0}}@keyframes sb-sheet-in-mobile{0%{opacity:0;transform:translateY(28px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-sheet-in-desktop{0%{opacity:0;transform:translate(-50%,calc(28px - 50%))}to{opacity:1;transform:translate(-50%,-50%)}}@keyframes sb-sheet-out-mobile{0%{opacity:1;transform:translateY(0)}to{opacity:0;transform:translateY(100%)}}@keyframes sb-sheet-out-desktop{0%{opacity:1;transform:translate(-50%,-50%)}to{opacity:0;transform:translate(-50%,100vh)}}@keyframes sb-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes sb-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes sb-fab-timer-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-card-in{0%{opacity:0;transform:translate(-50%,28px)}to{opacity:1;transform:translate(-50%)}}@keyframes sb-card-out{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,calc(100% + 8px))}}@keyframes sb-step-in{0%{opacity:0}to{opacity:1}}@keyframes sb-acknowledgement-in{0%{opacity:0;transform:scale(1.12)}to{opacity:1;transform:scale(1)}}@keyframes sb-next-acknowledgement{0%,to{rotate:0deg;scale:1}39%{rotate:-14deg;scale:1.18}}@keyframes sb-spark-ring-in{0%{opacity:0;transform:scale(.55)}to{opacity:1;transform:scale(1)}}@keyframes sb-footer-comment-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-footer-comment-out{0%{opacity:1}to{opacity:0}}@keyframes sb-completion-icon-in{0%{opacity:0;transform:translateY(46px)scale(.72)}58%{opacity:1;transform:translateY(46px)scale(1.82)}to{opacity:1;transform:translateY(0)scale(1)}}@keyframes sb-completion-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.sb-fab--entering,.sb-fab--entering .sb-fab__label,.sb-fab--entering .sb-fab__timer,.sb-fab--exiting,.sb-fab--exiting .sb-fab__label,.sb-fab--exiting .sb-fab__badge,.sb-sheet,.sb-step,.sb-spark-ring,.sb-sheet__acknowledgement,.sb-sheet__footer-comment,.sb-thanks,.sb-thanks__icon-shell,.sb-sheet-root__overlay,.sb-sheet-root--exiting .sb-sheet,.sb-sheet-root--exiting .sb-sheet-root__overlay{animation-duration:.001ms;animation-delay:0s}.sb-fab--entering .sb-fab__timer-fill{animation-delay:0s}.sb-sheet__footer-comment{animation:none}}";
|
|
457
576
|
//#endregion
|
|
458
577
|
//#region src/ui/snackbar-ui.ts
|
|
459
578
|
function V(e, t) {
|
|
460
579
|
let n = document.createElement(e);
|
|
461
580
|
return n.className = t, n;
|
|
462
581
|
}
|
|
463
|
-
var
|
|
582
|
+
var ge = class {
|
|
464
583
|
root = V("div", "sb-snackbar-root");
|
|
465
584
|
shell = V("div", "sb-snackbar-shell");
|
|
466
585
|
surface = V("div", "sb-snackbar-surface");
|
|
@@ -478,6 +597,8 @@ var ie = class {
|
|
|
478
597
|
stage = "entering";
|
|
479
598
|
expanded = !1;
|
|
480
599
|
destroyed = !1;
|
|
600
|
+
seen = !1;
|
|
601
|
+
cancelVisibilityGate = null;
|
|
481
602
|
store;
|
|
482
603
|
safeAreaProbe;
|
|
483
604
|
renderCard;
|
|
@@ -506,16 +627,32 @@ var ie = class {
|
|
|
506
627
|
let f = V("div", "sb-snackbar-answers");
|
|
507
628
|
for (let n of s.answers ?? []) {
|
|
508
629
|
let r = document.createElement("button");
|
|
509
|
-
r.type = "button", r.className = "sb-snackbar-answer", r.setAttribute("aria-label", n.label), r.innerHTML = p(n) ? z : B, r.addEventListener("click", () =>
|
|
630
|
+
r.type = "button", r.className = "sb-snackbar-answer", r.setAttribute("aria-label", n.label), r.innerHTML = p(n) ? z : B, r.addEventListener("click", () => {
|
|
631
|
+
this.confirmSeenByUser(), e.answerSnackbar(t.presentationId, n.id);
|
|
632
|
+
}), this.answers.set(n.id, r), f.append(r);
|
|
510
633
|
}
|
|
511
634
|
let m = t.survey.fab?.timerStyle ?? "none", g = null;
|
|
512
|
-
m !== "none" && (g = V("span", `sb-snackbar-timer sb-snackbar-timer--${m}`), g.setAttribute("aria-hidden", "true"), g.append(V("span", "sb-snackbar-timer-fill")), m === "bar" && !o ? d.append(g) : this.compact.append(g)), o || this.compact.append(l), o ? (this.barContent.append(d, f), this.compact.append(this.barContent)) : this.compact.append(d, f), this.overlay.type = "button", this.overlay.className = "sb-snackbar-overlay", this.overlay.tabIndex = -1, this.overlay.setAttribute("aria-hidden", "true"), this.overlay.addEventListener("click", () => void e.closeSurvey()), this.close.type = "button", this.close.className = o ? "sb-bar-dismiss" : "sb-snackbar-close", o ? this.close.textContent = "Not Now" : (this.close.setAttribute("aria-label", "Close survey"), this.close.innerHTML =
|
|
513
|
-
this.stage = "compact", this.updateStage(), e.
|
|
635
|
+
m !== "none" && (g = V("span", `sb-snackbar-timer sb-snackbar-timer--${m}`), g.setAttribute("aria-hidden", "true"), g.append(V("span", "sb-snackbar-timer-fill")), m === "bar" && !o ? d.append(g) : this.compact.append(g)), o || this.compact.append(l), o ? (this.barContent.append(d, f), this.compact.append(this.barContent)) : this.compact.append(d, f), this.overlay.type = "button", this.overlay.className = "sb-snackbar-overlay", this.overlay.tabIndex = -1, this.overlay.setAttribute("aria-hidden", "true"), this.overlay.addEventListener("click", () => void e.closeSurvey()), this.close.type = "button", this.close.className = o ? "sb-bar-dismiss" : "sb-snackbar-close", o ? this.close.textContent = "Not Now" : (this.close.setAttribute("aria-label", "Close survey"), this.close.innerHTML = fe), this.close.addEventListener("click", this.closeByUser), this.surface.append(this.compact, this.card), this.shell.append(this.surface), o ? this.compact.append(this.close) : this.shell.append(this.close), o && t.barBehavior === "dismiss" && this.compact.append(this.acknowledgement), this.root.append(this.overlay, this.shell), n.append(this.root), this.observer = typeof ResizeObserver > "u" ? null : new ResizeObserver(this.updatePlacement), this.observer?.observe(this.compact), this.observer?.observe(this.card), window.addEventListener("resize", this.updatePlacement), window.visualViewport?.addEventListener("resize", this.updatePlacement), window.visualViewport?.addEventListener("scroll", this.updatePlacement), o && (this.surface.addEventListener("pointerenter", this.onPointerEnter), this.surface.addEventListener("pointerleave", this.onPointerLeave)), this.update(t), this.after(ue(o, this.reducedMotion()), this.startVisibilityGate), this.after(o ? this.reducedMotion() ? j.reduced : le : this.reducedMotion() ? 0 : m === "none" ? A.entrance : A.timerEntrance, () => {
|
|
636
|
+
this.stage = "compact", this.updateStage(), e.confirmEntryDisplayed(t.presentationId), e.confirmFabEntranceCompleted(t.presentationId), this.startVisibilityGate(), o && this.surface.matches(":hover") && window.matchMedia?.("(hover: hover)").matches && e.setBarTimerPaused(t.presentationId, !0);
|
|
514
637
|
});
|
|
515
638
|
}
|
|
639
|
+
startVisibilityGate = () => {
|
|
640
|
+
this.seen || this.cancelVisibilityGate || this.destroyed || (this.cancelVisibilityGate = g(this.surface, () => {
|
|
641
|
+
this.cancelVisibilityGate = null, this.markSeen();
|
|
642
|
+
}));
|
|
643
|
+
};
|
|
644
|
+
markSeen() {
|
|
645
|
+
this.seen || this.destroyed || (this.seen = !0, this.cancelVisibilityGate?.(), this.cancelVisibilityGate = null, this.store.confirmPresentation("expanded_fab", this.session.presentationId));
|
|
646
|
+
}
|
|
647
|
+
confirmSeenByUser() {
|
|
648
|
+
document.visibilityState !== "hidden" && this.markSeen();
|
|
649
|
+
}
|
|
650
|
+
closeByUser = () => {
|
|
651
|
+
this.confirmSeenByUser(), this.store.closeSurvey();
|
|
652
|
+
};
|
|
516
653
|
update(e) {
|
|
517
654
|
this.session = e;
|
|
518
|
-
for (let [t, n] of Object.entries(
|
|
655
|
+
for (let [t, n] of Object.entries(ce(e.survey.theme))) this.root.style.setProperty(t, n);
|
|
519
656
|
this.root.style.setProperty("--sb-snackbar-duration", `${e.survey.fab?.expandedTimeout ?? 0}ms`), this.root.style.setProperty("--sb-snackbar-fraction", String(e.snackbar?.frozenFraction ?? 1)), this.root.dataset.counting = String(e.snackbar?.deadline != null || e.snackbar?.pausedRemainingMs != null), this.root.dataset.paused = String(e.snackbar?.pausedRemainingMs != null), this.root.dataset.timed = String((e.survey.fab?.timerStyle === "bar" || e.survey.fab?.timerStyle === "fill") && typeof e.survey.fab.expandedTimeout == "number" && e.survey.fab.expandedTimeout > 0), this.root.dataset.frozen = String(e.snackbar?.frozenFraction != null), this.root.dataset.expanded = String(e.isOpen), this.root.dataset.behavior = e.barBehavior;
|
|
520
657
|
let t = e.sentimentPresentation === "bar" && e.barBehavior === "dismiss" && e.snackbar?.selectedKey != null;
|
|
521
658
|
if (this.root.dataset.rated = String(t), this.barContent.inert = t, this.barContent.toggleAttribute("inert", t), this.barContent.setAttribute("aria-hidden", String(t)), e.sentimentPresentation === "bar" && e.barBehavior === "dismiss") {
|
|
@@ -525,9 +662,9 @@ var ie = class {
|
|
|
525
662
|
for (let [t, n] of this.answers) n.disabled = !e.fabEntranceCompleted || e.snackbar?.phase !== "question", n.setAttribute("aria-pressed", String(e.snackbar?.selectedKey === t));
|
|
526
663
|
if (e.isOpen) {
|
|
527
664
|
let t = this.renderCard(e);
|
|
528
|
-
this.card.contains(t) || this.card.replaceChildren(t), this.expanded || (this.expanded = !0, this.stage = "widening", this.after(this.reducedMotion() ? 0 :
|
|
665
|
+
this.card.contains(t) || this.card.replaceChildren(t), this.expanded || (this.expanded = !0, this.stage = "widening", this.after(this.reducedMotion() ? 0 : A.widen, () => {
|
|
529
666
|
this.stage = "expanding", this.updateStage();
|
|
530
|
-
}), this.after(this.reducedMotion() ? 0 :
|
|
667
|
+
}), this.after(this.reducedMotion() ? 0 : A.widen + A.expand, () => {
|
|
531
668
|
this.stage = "ready", this.updateStage(), this.store.confirmPresentation("sheet", e.presentationId), this.store.confirmSnackbarContentReady(e.presentationId), this.onReady();
|
|
532
669
|
}));
|
|
533
670
|
}
|
|
@@ -553,12 +690,12 @@ var ie = class {
|
|
|
553
690
|
cardHeight: this.card.querySelector(".sb-sheet")?.offsetHeight || 0,
|
|
554
691
|
barPosition: this.session.sentimentPresentation === "bar" ? this.session.barPosition : void 0
|
|
555
692
|
};
|
|
556
|
-
this.root.style.setProperty("--sb-snackbar-compact-width", `${
|
|
693
|
+
this.root.style.setProperty("--sb-snackbar-compact-width", `${M(o, s).compactWidth}px`);
|
|
557
694
|
let c = this.root.dataset.rated === "true";
|
|
558
695
|
c && (this.compact.style.minHeight = "48px");
|
|
559
696
|
let l = getComputedStyle(this.compact), u = Number.parseFloat(l.height) || this.compact.offsetHeight || (s.barPosition ? 48 : 64), d = c ? Math.max(u, this.acknowledgementCopy.scrollHeight + i(l.paddingTop) + i(l.paddingBottom)) : u;
|
|
560
697
|
c && this.compact.style.removeProperty("min-height");
|
|
561
|
-
let f =
|
|
698
|
+
let f = M(o, {
|
|
562
699
|
...s,
|
|
563
700
|
compactHeight: d
|
|
564
701
|
});
|
|
@@ -594,7 +731,7 @@ var ie = class {
|
|
|
594
731
|
for (let e of this.timers) clearTimeout(e);
|
|
595
732
|
this.timers.clear(), this.stage = "exiting", this.root.dataset.exiting = "true";
|
|
596
733
|
for (let e of this.answers.values()) e.disabled = !0;
|
|
597
|
-
this.updateStage(), this.after(this.reducedMotion() ?
|
|
734
|
+
this.updateStage(), this.after(this.reducedMotion() ? j.reduced : j.removal, () => {
|
|
598
735
|
this.destroy(), e();
|
|
599
736
|
});
|
|
600
737
|
}
|
|
@@ -607,9 +744,9 @@ var ie = class {
|
|
|
607
744
|
destroy() {
|
|
608
745
|
this.destroyed = !0;
|
|
609
746
|
for (let e of this.timers) clearTimeout(e);
|
|
610
|
-
this.observer?.disconnect(), window.removeEventListener("resize", this.updatePlacement), window.visualViewport?.removeEventListener("resize", this.updatePlacement), window.visualViewport?.removeEventListener("scroll", this.updatePlacement), this.surface.removeEventListener("pointerenter", this.onPointerEnter), this.surface.removeEventListener("pointerleave", this.onPointerLeave), this.root.remove();
|
|
747
|
+
this.cancelVisibilityGate?.(), this.cancelVisibilityGate = null, this.observer?.disconnect(), window.removeEventListener("resize", this.updatePlacement), window.visualViewport?.removeEventListener("resize", this.updatePlacement), window.visualViewport?.removeEventListener("scroll", this.updatePlacement), this.surface.removeEventListener("pointerenter", this.onPointerEnter), this.surface.removeEventListener("pointerleave", this.onPointerLeave), this.root.remove();
|
|
611
748
|
}
|
|
612
|
-
}, H = 1969.207,
|
|
749
|
+
}, H = 1969.207, _e = 2169.207, ve = 856.839, ye = 450;
|
|
613
750
|
function U(e, t) {
|
|
614
751
|
let n = document.createElement(e);
|
|
615
752
|
return t && (n.className = t), n;
|
|
@@ -618,7 +755,7 @@ function W(e, t) {
|
|
|
618
755
|
let n = U("button", e);
|
|
619
756
|
return n.type = "button", t && n.setAttribute("aria-label", t), n;
|
|
620
757
|
}
|
|
621
|
-
var
|
|
758
|
+
var be = 0, xe = class {
|
|
622
759
|
host;
|
|
623
760
|
root;
|
|
624
761
|
store;
|
|
@@ -640,14 +777,14 @@ var ce = 0, le = class {
|
|
|
640
777
|
restoreFocus = null;
|
|
641
778
|
restoreFocusPending = !1;
|
|
642
779
|
safeAreaProbe;
|
|
643
|
-
uiId = ++
|
|
780
|
+
uiId = ++be;
|
|
644
781
|
snackbarUi = null;
|
|
645
782
|
snackbarIdentity = null;
|
|
646
783
|
outgoingSnackbarUis = /* @__PURE__ */ new Set();
|
|
647
784
|
constructor(e, t = document.body) {
|
|
648
785
|
this.store = e, this.host = U("div"), this.host.setAttribute("data-sideband", ""), this.host.tabIndex = -1;
|
|
649
786
|
let n = this.host.attachShadow({ mode: "open" }), r = document.createElement("style");
|
|
650
|
-
r.textContent =
|
|
787
|
+
r.textContent = he, n.appendChild(r), this.safeAreaProbe = U("div", "sb-safe-area-probe"), n.appendChild(this.safeAreaProbe), this.root = U("div"), n.appendChild(this.root), t.appendChild(this.host), this.applyTheme(), this.unsubscribe = e.subscribe((e) => {
|
|
651
788
|
if (e === "text") {
|
|
652
789
|
this.updateContinueButton();
|
|
653
790
|
return;
|
|
@@ -680,7 +817,7 @@ var ce = 0, le = class {
|
|
|
680
817
|
}
|
|
681
818
|
onKeyDown = (e) => {
|
|
682
819
|
if (e.key === "Escape" && (this.store.getState()?.isOpen || this.snackbarUi && this.host.shadowRoot?.activeElement)) {
|
|
683
|
-
this.store.closeSurvey();
|
|
820
|
+
this.snackbarUi && !this.store.getState()?.isOpen ? this.snackbarUi.closeByUser() : this.store.closeSurvey();
|
|
684
821
|
return;
|
|
685
822
|
}
|
|
686
823
|
if (e.key !== "Tab" || !this.sheetEl || this.store.getState()?.snackbar?.phase === "awaitingReady") return;
|
|
@@ -726,7 +863,7 @@ var ce = 0, le = class {
|
|
|
726
863
|
})) : e.destroy(), this.snackbarUi = null, this.snackbarIdentity = null, this.sheetEl = null, this.sheetRootEl = null;
|
|
727
864
|
}
|
|
728
865
|
if (t?.snackbar) {
|
|
729
|
-
this.snackbarUi ? (this.snackbarUi.update(t), e && t.snackbar.phase === "journey" && this.focusSheet()) : (this.startActiveFabExit(), this.sheetExitTimer !== null && clearTimeout(this.sheetExitTimer), this.sheetRootEl?.remove(), this.sheetEl = null, this.sheetRootEl = null, this.restoreFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null, this.snackbarIdentity = t.presentationId, this.snackbarUi = new
|
|
866
|
+
this.snackbarUi ? (this.snackbarUi.update(t), e && t.snackbar.phase === "journey" && this.focusSheet()) : (this.startActiveFabExit(), this.sheetExitTimer !== null && clearTimeout(this.sheetExitTimer), this.sheetRootEl?.remove(), this.sheetEl = null, this.sheetRootEl = null, this.restoreFocus = document.activeElement instanceof HTMLElement ? document.activeElement : null, this.snackbarIdentity = t.presentationId, this.snackbarUi = new ge(this.store, t, this.root, this.safeAreaProbe, (e) => this.sheetEl && this.sheetRootEl ? (this.fillSheet(this.sheetEl, e), this.sheetRootEl) : this.renderSheet(e), () => this.focusSheet()));
|
|
730
867
|
return;
|
|
731
868
|
}
|
|
732
869
|
if (t && (t.isOpen || t.completion)) {
|
|
@@ -771,14 +908,14 @@ var ce = 0, le = class {
|
|
|
771
908
|
return i;
|
|
772
909
|
}
|
|
773
910
|
applyTheme(e) {
|
|
774
|
-
let t = e ?
|
|
911
|
+
let t = e ? se(e) : oe;
|
|
775
912
|
for (let [e, n] of Object.entries(t)) this.host.style.setProperty(e, n);
|
|
776
913
|
}
|
|
777
914
|
applyFabPresentation(e, t) {
|
|
778
915
|
this.updateFabPlacement(e, t), this.applyFabTimer(e, t);
|
|
779
916
|
}
|
|
780
917
|
updateFabPlacement(e, t) {
|
|
781
|
-
let n = window.visualViewport, r = n && Number.isFinite(n.width) && n.width > 0 ? n.width : window.innerWidth, i = n && Number.isFinite(n.height) && n.height > 0 ? n.height : window.innerHeight, a = n && Number.isFinite(n.offsetLeft) ? n.offsetLeft : 0, o = n && Number.isFinite(n.offsetTop) ? n.offsetTop : 0, s = this.readSafeArea(), c = e.querySelector(".sb-fab__label"), l = c ? c.scrollWidth || c.getBoundingClientRect().width || this.estimatedTextWidth(c.textContent ?? "") : 0, u = Math.max(0, r - s.left - s.right), d = Math.min(u, Math.max(86, 86 + Math.ceil(l))), f = e.getBoundingClientRect(), p = e.offsetHeight || f.height || 60, m =
|
|
918
|
+
let n = window.visualViewport, r = n && Number.isFinite(n.width) && n.width > 0 ? n.width : window.innerWidth, i = n && Number.isFinite(n.height) && n.height > 0 ? n.height : window.innerHeight, a = n && Number.isFinite(n.offsetLeft) ? n.offsetLeft : 0, o = n && Number.isFinite(n.offsetTop) ? n.offsetTop : 0, s = this.readSafeArea(), c = e.querySelector(".sb-fab__label"), l = c ? c.scrollWidth || c.getBoundingClientRect().width || this.estimatedTextWidth(c.textContent ?? "") : 0, u = Math.max(0, r - s.left - s.right), d = Math.min(u, Math.max(86, 86 + Math.ceil(l))), f = e.getBoundingClientRect(), p = e.offsetHeight || f.height || 60, m = R(t.survey.fab?.placement, {
|
|
782
919
|
viewport: {
|
|
783
920
|
width: r,
|
|
784
921
|
height: i
|
|
@@ -794,7 +931,7 @@ var ce = 0, le = class {
|
|
|
794
931
|
e.style.setProperty("--sb-fab-anchor-offset", `${(d - 60) * h}px`);
|
|
795
932
|
}
|
|
796
933
|
applyFabTimer(e, t) {
|
|
797
|
-
let n =
|
|
934
|
+
let n = de(t.survey.fab?.timerStyle, t.survey.fab?.expandedTimeout, "forward"), r = `${n.style}:${n.durationMs ?? "static"}`, i = e.querySelector(".sb-fab__timer");
|
|
798
935
|
e.dataset.timerStyle = n.style;
|
|
799
936
|
for (let [t, r] of Object.entries(n.cssVariables)) e.style.setProperty(t, r);
|
|
800
937
|
if (!n.visible) {
|
|
@@ -813,7 +950,7 @@ var ce = 0, le = class {
|
|
|
813
950
|
this.fabEntranceTimer = setTimeout(() => {
|
|
814
951
|
this.fabEntranceTimer = null, !(this.activeFabEl !== e || this.activeFabIdentity !== t) && (this.store.confirmPresentation("expanded_fab"), this.store.confirmFabEntranceCompleted());
|
|
815
952
|
}, n ? 0 : H);
|
|
816
|
-
let r = e.querySelector(".sb-fab__timer") ?
|
|
953
|
+
let r = e.querySelector(".sb-fab__timer") ? _e : H;
|
|
817
954
|
this.fabSettlingTimer = setTimeout(() => {
|
|
818
955
|
this.fabSettlingTimer = null, this.activeFabEl === e && this.activeFabIdentity === t && e.classList.remove("sb-fab--entering");
|
|
819
956
|
}, n ? 0 : r);
|
|
@@ -827,7 +964,7 @@ var ce = 0, le = class {
|
|
|
827
964
|
this.clearFabEntranceTimer();
|
|
828
965
|
let t = getComputedStyle(e), n = Number.parseFloat(t.width) || e.offsetWidth || 314, r = Number.parseFloat(e.style.getPropertyValue("--sb-fab-expanded-width")) || n, i = Number.parseFloat(e.style.getPropertyValue("--sb-fab-anchor-offset")) || 0, a = r === 60 ? 0 : i / (r - 60), o = e.querySelector(".sb-fab__label"), s = e.querySelector(".sb-fab__timer");
|
|
829
966
|
e.style.setProperty("--sb-fab-exit-width", `${n}px`), e.style.setProperty("--sb-fab-exit-offset", `${(r - n) * a}px`), e.style.setProperty("--sb-fab-exit-scale", t.getPropertyValue("scale") || "1"), e.style.setProperty("--sb-fab-exit-label-opacity", o ? getComputedStyle(o).opacity : "0"), e.style.setProperty("--sb-fab-exit-timer-opacity", s ? getComputedStyle(s).opacity : "0"), e.classList.remove("sb-fab--entering"), e.classList.add("sb-fab--exiting"), e.disabled = !0, e.setAttribute("aria-hidden", "true"), e.tabIndex = -1, this.activeFabEl = null, this.activeFabIdentity = null, this.outgoingFabEls.add(e);
|
|
830
|
-
let c = this.prefersReducedMotion() ? 0 :
|
|
967
|
+
let c = this.prefersReducedMotion() ? 0 : ve, l = setTimeout(() => {
|
|
831
968
|
this.fabExitTimers.delete(l), this.outgoingFabEls.delete(e), e.remove(), this.restoreFocusWhenAnimationsComplete();
|
|
832
969
|
}, c);
|
|
833
970
|
this.fabExitTimers.add(l);
|
|
@@ -838,7 +975,7 @@ var ce = 0, le = class {
|
|
|
838
975
|
e.classList.add("sb-sheet-root--exiting"), e.setAttribute("aria-hidden", "true"), e.querySelectorAll("button").forEach((e) => {
|
|
839
976
|
e.disabled = !0;
|
|
840
977
|
}), this.sheetEl = null;
|
|
841
|
-
let t = this.prefersReducedMotion() ? 0 :
|
|
978
|
+
let t = this.prefersReducedMotion() ? 0 : ye;
|
|
842
979
|
this.sheetExitTimer = setTimeout(() => {
|
|
843
980
|
this.sheetExitTimer = null, this.sheetRootEl === e && (e.remove(), this.sheetRootEl = null, this.restoreFocusWhenAnimationsComplete());
|
|
844
981
|
}, t);
|
|
@@ -921,7 +1058,7 @@ var ce = 0, le = class {
|
|
|
921
1058
|
e.textContent = i, e.setAttribute("aria-live", "polite"), r.appendChild(e);
|
|
922
1059
|
}
|
|
923
1060
|
let a = W("sb-next", "Continue");
|
|
924
|
-
this.selectedChoice(n) && a.classList.add("sb-next--acknowledging"), a.innerHTML =
|
|
1061
|
+
this.selectedChoice(n) && a.classList.add("sb-next--acknowledging"), a.innerHTML = pe, a.disabled = t.isBusy || t.isCompleting || !this.store.canContinue(), a.addEventListener("click", () => void this.store.advance()), r.appendChild(a), e.appendChild(r), this.continueButton = a;
|
|
925
1062
|
}
|
|
926
1063
|
}
|
|
927
1064
|
renderQuestionView(e, t) {
|
|
@@ -984,7 +1121,7 @@ var ce = 0, le = class {
|
|
|
984
1121
|
let t = e.completion, n = U("div", "sb-thanks"), r = U("div", "sb-thanks__icon-shell");
|
|
985
1122
|
r.setAttribute("aria-hidden", "true");
|
|
986
1123
|
let i = U("div", "sb-thanks__icon-core");
|
|
987
|
-
i.innerHTML =
|
|
1124
|
+
i.innerHTML = me, r.appendChild(i), n.appendChild(r);
|
|
988
1125
|
let a = U("div", "sb-thanks__copy");
|
|
989
1126
|
a.dataset.revealContent = "", a.setAttribute("aria-hidden", "true");
|
|
990
1127
|
let o = U("h2");
|
|
@@ -1004,7 +1141,7 @@ var ce = 0, le = class {
|
|
|
1004
1141
|
};
|
|
1005
1142
|
//#endregion
|
|
1006
1143
|
//#region src/index.ts
|
|
1007
|
-
function
|
|
1144
|
+
function Se(e) {
|
|
1008
1145
|
if (typeof document > "u" && e.ui !== !1) return {
|
|
1009
1146
|
track: () => {},
|
|
1010
1147
|
tagUser: () => {},
|
|
@@ -1029,9 +1166,9 @@ function ue(e) {
|
|
|
1029
1166
|
onError: e.onError
|
|
1030
1167
|
}), n = c({
|
|
1031
1168
|
...e,
|
|
1032
|
-
libraryVersion: "1.4.5
|
|
1169
|
+
libraryVersion: "1.4.5",
|
|
1033
1170
|
onSyncResponse: (e) => t.handleSyncResponse(e)
|
|
1034
|
-
}), i = e.ui === !1 ? null : new
|
|
1171
|
+
}), i = e.ui === !1 ? null : new xe(t);
|
|
1035
1172
|
return n.start(), {
|
|
1036
1173
|
track: n.track,
|
|
1037
1174
|
tagUser: n.tagUser,
|
|
@@ -1054,7 +1191,7 @@ function K() {
|
|
|
1054
1191
|
}
|
|
1055
1192
|
function q(e) {
|
|
1056
1193
|
$();
|
|
1057
|
-
let t =
|
|
1194
|
+
let t = Se(e);
|
|
1058
1195
|
return G = t, t;
|
|
1059
1196
|
}
|
|
1060
1197
|
function J(e, t, n) {
|
|
@@ -1075,7 +1212,7 @@ function Q(e) {
|
|
|
1075
1212
|
function $() {
|
|
1076
1213
|
G?.destroy(), G = null;
|
|
1077
1214
|
}
|
|
1078
|
-
var
|
|
1215
|
+
var Ce = {
|
|
1079
1216
|
configure: q,
|
|
1080
1217
|
track: J,
|
|
1081
1218
|
tagUser: Y,
|
|
@@ -1085,4 +1222,4 @@ var de = {
|
|
|
1085
1222
|
destroy: $
|
|
1086
1223
|
};
|
|
1087
1224
|
//#endregion
|
|
1088
|
-
export { e as PendingInteractionStorageError,
|
|
1225
|
+
export { e as PendingInteractionStorageError, Ce as Sideband, t as SidebandApiError, n as SurveySessionStore, i as SyncEngine, a as buildFabTitle, q as configure, s as createSidebandClient, $ as destroy, Z as flush, l as getChoiceValue, d as getDeviceId, f as getSessionId, Q as presentSimulatedPulse, Y as tagUser, J as track, X as untagUser };
|