@sidebandai/sideband-react 1.4.1-rc.2 → 1.4.4

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 CHANGED
@@ -1,67 +1,83 @@
1
- # @sidebandai/sideband-react
1
+ # Sideband React SDK
2
2
 
3
- Sideband event tracking and Pulse presentation for React applications.
3
+ Sideband adds in-app Pulse prompts and event tracking to React apps.
4
4
 
5
- ## Install
5
+ ## Requirements
6
+
7
+ - React 19 and React DOM 19
8
+ - A Sideband API key
9
+ - Your application's version
6
10
 
7
- Requires React 19 and React DOM 19.
11
+ ## Install
8
12
 
9
13
  ```bash
10
- npm install @sidebandai/sideband-react@rc react@^19 react-dom@^19
14
+ npm install @sidebandai/sideband-react react@^19 react-dom@^19
11
15
  ```
12
16
 
13
- The `rc` tag selects the latest release candidate. Installation uses the public
14
- npm registry and requires no registry credentials. Core is installed automatically.
15
-
16
- ## Quick start
17
+ ## Configure
17
18
 
18
- Wrap your application in `SidebandProvider` and import the stylesheet once.
19
+ Import the stylesheet once and wrap your application content in
20
+ `SidebandProvider`. Pass your API key and application version through its
21
+ `config` prop:
19
22
 
20
23
  ```tsx
21
- import { SidebandProvider, useSideband } from '@sidebandai/sideband-react'
24
+ import { SidebandProvider } from '@sidebandai/sideband-react'
22
25
  import '@sidebandai/sideband-react/style.css'
23
26
 
24
- function Checkout() {
25
- const { track } = useSideband()
26
- return <button onClick={() => track('checkout_completed', { plan: 'pro' })}>Checkout</button>
27
- }
28
-
29
27
  function App() {
30
28
  return (
31
- <SidebandProvider config={{ apiKey: 'YOUR_API_KEY' }}>
32
- <Checkout />
29
+ <SidebandProvider config={{ apiKey: 'YOUR_API_KEY', appVersion: '1.0.0' }}>
30
+ <AppContent />
33
31
  </SidebandProvider>
34
32
  )
35
33
  }
36
34
  ```
37
35
 
38
- `useSideband()` exposes `track`, `tagUser`, `untagUser`, `flush`, `sync`,
39
- `openSurvey`, `closeSurvey`, and `presentSimulatedPulse`. Event metadata is a string-to-string map.
40
- The provider owns its runtime; it does not configure the HTML package's shared
41
- client. Runtime resources start after mount and are destroyed on unmount.
36
+ `AppContent` represents your existing application content. Replace `1.0.0` with
37
+ your application's version, not the SDK version. `appVersion` must be a
38
+ non-empty string of at most 64 characters.
42
39
 
43
- ## Configuration
40
+ The provider presents available Pulses automatically. In server-rendered apps,
41
+ place it within a client component.
44
42
 
45
- `apiKey` identifies your Sideband application. Requests use the production
46
- endpoint by default. `baseUrl` is an optional override for custom deployments
47
- and tests.
48
- `appVersion` is optional and has no default.
43
+ ## Identify users
44
+
45
+ Tag the signed-in user wherever your app knows who they are: after sign-up and
46
+ sign-in, and when your app restores a signed-in session. Clear the identity at
47
+ sign-out.
48
+
49
+ ```tsx
50
+ import { useSideband } from '@sidebandai/sideband-react'
51
+
52
+ const { tagUser, untagUser } = useSideband()
53
+
54
+ tagUser(user.id) // after sign-up, sign-in, or restoring a signed-in session
55
+ untagUser() // at sign-out
56
+ ```
49
57
 
50
- `shouldPresentPulse(pulse)` receives `pulseId`, `version`, `title`, and optional
51
- `fab`, and returns `showNow`, `notNow`, or `never`, synchronously or asynchronously.
52
- `onError` and `onRateApp` handle background errors and rating actions.
58
+ Pass your own stable user ID, not an email address or name. A user ID can have at most 256 characters (Unicode code points). A longer ID is
59
+ rejected without changing the current identity, and `onError` receives the reason. The SDK
60
+ keeps the ID in the browser's localStorage and restores it on the next page
61
+ load. Call `useSideband()` in components inside `SidebandProvider`.
53
62
 
54
- Use `SidebandProviderConfig` for configuration. Transport/pacing configuration is
55
- captured for the provider lifetime; change its React key to reinitialize.
56
- Presentation/error/rating callbacks use their latest supplied functions.
63
+ ## Track events
57
64
 
58
- `mountSidebandPulsePreview` is available from `@sidebandai/sideband-react/preview`
59
- for rendering canonical `Pulse` values without transport.
65
+ `useSideband()` returns `track`. Call it once per user action, after the action
66
+ succeeds:
60
67
 
61
- ## Event metadata and Pulse targeting
68
+ ```tsx
69
+ function SendInvoiceButton({ invoice }: { invoice: { id: string } }) {
70
+ const { track } = useSideband()
71
+ const send = async () => {
72
+ await sendInvoice(invoice.id)
73
+ track('invoice_sent', { source: 'invoice_detail', item_type: 'invoice', invoice_id: invoice.id })
74
+ }
75
+ return <button onClick={send}>Send</button>
76
+ }
77
+ ```
62
78
 
63
- Pass metadata to `track` as string key-value pairs. Use metadata to describe an
64
- event without creating a separate event name for each source, item type, or mode.
79
+ Pass metadata as string key-value pairs. Use metadata to describe an event
80
+ without creating a separate event name for each source, item type, or mode.
65
81
  Only these six keys support Pulse trigger filters and event-history conditions:
66
82
 
67
83
  | Key | Value format | Example |
@@ -74,65 +90,46 @@ Only these six keys support Pulse trigger filters and event-history conditions:
74
90
  | `duration` | Seconds sent as a string; fractions allowed | `'12.5'` |
75
91
 
76
92
  Use the exact lowercase key names. The server trims and lowercases values for
77
- `source`, `item_type`, `mode`, and `variant`. These keys support equals and
78
- not-equals comparisons. It compares `count` and `duration` numerically, with
79
- equals, not-equals, greater-than, greater-than-or-equal, less-than, and
80
- less-than-or-equal comparisons. Send `duration` in seconds, not milliseconds.
81
-
82
- ```ts
83
- // Inside a component rendered within SidebandProvider:
84
- const { track } = useSideband()
85
- const onCreate = () => track('content_created', {
86
- source: 'editor',
87
- item_type: 'article',
88
- count: '3',
89
- duration: '12.5',
90
- content_id: 'article-123',
91
- })
92
- ```
93
-
94
- Call `onCreate` from the event handler for the completed action, not during
95
- component rendering.
93
+ `source`, `item_type`, `mode`, and `variant`, and compares them with equals and
94
+ not-equals. It compares `count` and `duration` numerically. Send `duration` in
95
+ seconds, not milliseconds. `count: '3.5'` and `count: '3.0'` are invalid; use
96
+ `count: '3'`.
96
97
 
97
98
  Custom keys such as `content_id`, `screen`, or `plan` are stored unchanged, but
98
- cannot be used in Pulse targeting filters. A missing key does not match any
99
- filter, including not-equals.
100
-
101
- The server stores at most 20 metadata properties per event. It keeps valid
102
- targeting keys first, then fills the remaining slots with custom keys in sorted
103
- key order. It drops empty keys and invalid targeting values without rejecting
104
- the event. For example, `count: '3.5'` and `count: '3.0'` are invalid; use
105
- `count: '3'`. Normalization and numeric comparison happen on the server, not in
106
- the SDK.
107
-
108
- ## Snackbar previews and simulations
109
-
110
- ```ts
111
- import { mountSidebandPulsePreview } from '@sidebandai/sideband-react/preview'
112
- import '@sidebandai/sideband-react/style.css'
113
-
114
- const preview = mountSidebandPulsePreview('#preview', {
115
- pulse,
116
- sentimentPresentation: 'snackbar',
117
- onInteraction: (interaction) => console.log(interaction),
118
- })
119
- // Changing this preference restarts the preview, even with the same pulse.
120
- preview.update({ sentimentPresentation: 'sheet' })
121
- preview.destroy()
122
- ```
123
-
124
- In a configured provider, `useSideband().presentSimulatedPulse({ pulse,
125
- sentimentPresentation: 'snackbar' })` returns a `Promise<boolean>`. Simulations
126
- do not report impressions or responses, or invoke the provider's `onRateApp`.
127
- Standalone previews retain their local `onInteraction`/`onRateApp` callbacks.
128
-
129
- `sentimentPresentation` defaults to `'sheet'` and is local to previews and
130
- simulations. It is not a provider configuration or server-payload field.
131
- Snackbar requires FAB configuration and a root `yes_no` question with exactly
132
- two answers, excluding `system_other`; unsupported pulses use their normal
133
- presentation. Live server-delivered pulses keep their existing behavior.
134
-
135
- Both fixed and inline previews support all three timer styles, sheet-derived
136
- themes, keyboard controls, and reduced motion. The compact prompt is non-modal;
137
- answering retains the surface through expansion and sentiment acknowledgement
138
- before following the selected branch.
99
+ cannot be used in Pulse targeting. A missing key does not match any filter,
100
+ including not-equals. The server stores at most 20 metadata properties per
101
+ event: valid targeting keys first, then custom keys in sorted key order. It
102
+ drops empty keys and invalid targeting values without rejecting the event.
103
+
104
+ When the page is hidden or unloads, the SDK tries to send queued events with
105
+ `keepalive`. This is best effort: a send already in progress can delay it. For an
106
+ event tracked just before your code navigates away, await `flush()` from `useSideband()` first.
107
+
108
+ ## Events the SDK sends itself
109
+
110
+ Do not track these yourself:
111
+
112
+ | Event | When |
113
+ | --- | --- |
114
+ | `system_app_launch` | The SDK starts when `SidebandProvider` mounts, usually once per page load. |
115
+ | `system_app_background` | The page is hidden or unloaded: another tab, a minimized window, navigation away. |
116
+ | `system_app_foreground` | The page is visible again after `system_app_background`. |
117
+ | `system_login` | `tagUser` sets a new user ID. `metadata.user_id` is the new ID. |
118
+ | `system_logout` | `untagUser` clears the user ID, or `tagUser` replaces it. `metadata.user_id` is the previous ID. |
119
+ | `system_did_present_pulse` | A Pulse is shown to the user. |
120
+
121
+ Switching from user A to user B sends `system_logout` for A, then `system_login`
122
+ for B, with the same timestamp. Repeating the same ID, clearing an ID that is
123
+ not set, and restoring the stored ID on a page load send nothing.
124
+
125
+ ## Other options
126
+
127
+ The SDK sends events in batches, by default about once a second. Set
128
+ `flushIntervalSeconds` (seconds, at least 1) to change it. A pulse can show only
129
+ after the batch that holds its trigger event is sent, so a longer interval delays
130
+ pulses. The server can also ask the SDK to wait before its next send.
131
+
132
+ `SidebandProviderConfig` in the package's type definitions lists the optional
133
+ settings, such as `shouldPresentPulse` to hold a Pulse back for a better
134
+ moment and `onError` for background errors. `useSideband()` also returns
135
+ `flush`, which sends queued events now.
@@ -363,9 +363,29 @@ var D = {
363
363
  timerEntrance: 2169.207,
364
364
  widen: 200,
365
365
  expand: 450
366
- };
367
- function O(e, t) {
368
- let { viewport: n, safeArea: r = {}, compactHeight: i } = t, a = j(r.left) + 12, o = j(r.right) + 12, s = j(r.top) + 24, c = j(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), m = P(e, {
366
+ }, O = {
367
+ delay: 400,
368
+ enter: 450,
369
+ exit: 400,
370
+ removal: 450,
371
+ reduced: 150
372
+ }, te = O.delay + O.enter;
373
+ function k(e, t) {
374
+ let { viewport: n, safeArea: r = {}, compactHeight: i } = t, a = M(r.left) + 12, o = M(r.right) + 12, s = M(r.top) + 24, c = M(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);
375
+ if (t.barPosition) return {
376
+ compactWidth: n.width,
377
+ compactLeft: 0,
378
+ compactBottom: 0,
379
+ cardWidth: d,
380
+ cardHeight: p,
381
+ maxCardHeight: f,
382
+ cardLeft: a + (l - d) / 2,
383
+ cardBottom: c,
384
+ cardTop: M(r.top) + 12,
385
+ entranceOffset: 0,
386
+ transformOrigin: t.barPosition === "top" ? "50% 0%" : "50% 100%"
387
+ };
388
+ let m = F(e, {
369
389
  viewport: n,
370
390
  element: {
371
391
  width: u,
@@ -380,34 +400,35 @@ function O(e, t) {
380
400
  compactBottom: g,
381
401
  cardHeight: p,
382
402
  maxCardHeight: f,
383
- entranceOffset: (u - i) * N(e?.anchor).x,
403
+ cardTop: 0,
404
+ entranceOffset: (u - i) * P(e?.anchor).x,
384
405
  cardLeft: a + (l - d) / 2,
385
406
  cardBottom: Math.max(c, Math.min(g, n.height - s - p)),
386
407
  transformOrigin: m.transformOrigin
387
408
  };
388
409
  }
389
- var k = {
410
+ var A = {
390
411
  x: 1,
391
412
  y: 1
392
- }, A = {
413
+ }, j = {
393
414
  x: -16,
394
415
  y: -24
395
416
  };
396
- function j(e) {
417
+ function M(e) {
397
418
  return typeof e == "number" && Number.isFinite(e) ? Math.max(0, e) : 0;
398
419
  }
399
- function M(e) {
420
+ function N(e) {
400
421
  return typeof e == "number" && Number.isFinite(e) ? e : 0;
401
422
  }
402
- function N(e) {
403
- let t = S(e), n = typeof t.x == "number" && Number.isFinite(t.x) ? t.x : k.x, r = typeof t.y == "number" && Number.isFinite(t.y) ? t.y : k.y;
423
+ function P(e) {
424
+ let t = S(e), n = typeof t.x == "number" && Number.isFinite(t.x) ? t.x : A.x, r = typeof t.y == "number" && Number.isFinite(t.y) ? t.y : A.y;
404
425
  return {
405
426
  x: Math.min(1, Math.max(0, n)),
406
427
  y: Math.min(1, Math.max(0, r))
407
428
  };
408
429
  }
409
- function P(e, t) {
410
- let n = S(e), r = N(n.position), i = N(n.anchor), a = S(n.offset), o = e ? M(a.x) : A.x, s = e ? M(a.y) : A.y, c = t.safeArea ?? {}, l = j(c.left), u = j(c.right), d = j(c.top), f = j(c.bottom), p = Math.max(0, j(t.viewport.width) - l - u - j(t.element.width)), m = Math.max(0, j(t.viewport.height) - d - f - j(t.element.height));
430
+ function F(e, t) {
431
+ let n = S(e), r = P(n.position), i = P(n.anchor), a = S(n.offset), o = e ? N(a.x) : j.x, s = e ? N(a.y) : j.y, c = t.safeArea ?? {}, l = M(c.left), u = M(c.right), d = M(c.top), f = M(c.bottom), p = Math.max(0, M(t.viewport.width) - l - u - M(t.element.width)), m = Math.max(0, M(t.viewport.height) - d - f - M(t.element.height));
411
432
  return {
412
433
  left: l + r.x * p + o,
413
434
  top: d + r.y * m + s,
@@ -418,7 +439,7 @@ function P(e, t) {
418
439
  transformOrigin: `${i.x * 100}% ${i.y * 100}%`
419
440
  };
420
441
  }
421
- function F(e, t, n = "forward") {
442
+ function I(e, t, n = "forward") {
422
443
  let r = e === "bar" || e === "fill" ? e : "none", i = n === "reverse" ? "reverse" : "forward", a = typeof t == "number" && Number.isFinite(t) && t > 0 ? t : null;
423
444
  return {
424
445
  style: r,
@@ -434,8 +455,8 @@ function F(e, t, n = "forward") {
434
455
  }
435
456
  //#endregion
436
457
  //#region src/lib/components/SurveyFab.tsx
437
- function I({ session: t, fabRef: n, onClick: r, animationState: i }) {
438
- let { survey: a } = t, o = F(a.fab?.timerStyle, a.fab?.expandedTimeout), s = { ...o.cssVariables }, c = a.fab?.imageUrl, [l, u] = d(null), f = !!(c && l !== c);
458
+ function L({ session: t, fabRef: n, onClick: r, animationState: i }) {
459
+ let { survey: a } = t, o = I(a.fab?.timerStyle, a.fab?.expandedTimeout), s = { ...o.cssVariables }, c = a.fab?.imageUrl, [l, u] = d(null), f = !!(c && l !== c);
439
460
  return /* @__PURE__ */ g("button", {
440
461
  ref: n,
441
462
  type: "button",
@@ -481,7 +502,7 @@ function I({ session: t, fabRef: n, onClick: r, animationState: i }) {
481
502
  }
482
503
  //#endregion
483
504
  //#region src/lib/components/SurveyProgress.tsx
484
- function L({ value: e }) {
505
+ function R({ value: e }) {
485
506
  return /* @__PURE__ */ h("div", {
486
507
  className: "sb-progress",
487
508
  "aria-hidden": "true",
@@ -493,8 +514,8 @@ function L({ value: e }) {
493
514
  }
494
515
  //#endregion
495
516
  //#region src/lib/components/SurveyQuestionView.tsx
496
- var R = [];
497
- function z() {
517
+ var z = [];
518
+ function B() {
498
519
  return /* @__PURE__ */ h("svg", {
499
520
  viewBox: "0 0 35.5556 35.5556",
500
521
  "aria-hidden": "true",
@@ -504,7 +525,7 @@ function z() {
504
525
  })
505
526
  });
506
527
  }
507
- function B() {
528
+ function V() {
508
529
  return /* @__PURE__ */ h("svg", {
509
530
  viewBox: "0 0 35.5556 35.5556",
510
531
  "aria-hidden": "true",
@@ -514,7 +535,7 @@ function B() {
514
535
  })
515
536
  });
516
537
  }
517
- function V() {
538
+ function H() {
518
539
  return /* @__PURE__ */ h("span", {
519
540
  className: "sb-spark-ring",
520
541
  "aria-hidden": "true",
@@ -524,23 +545,23 @@ function V() {
524
545
  }, t))
525
546
  });
526
547
  }
527
- function H({ question: e, store: t, isSentiment: n }) {
548
+ function U({ question: e, store: t, isSentiment: n }) {
528
549
  let i = t.currentDraft(), a = t.getState(), o = !!(a?.isBusy || a?.isCompleting), s = e.answers?.find((e) => e.id === i?.answer_key);
529
- return s && r(s) ? /* @__PURE__ */ h(U, {
550
+ return s && r(s) ? /* @__PURE__ */ h(G, {
530
551
  store: t,
531
552
  disabled: o,
532
553
  placeholder: s.label,
533
554
  autoFocus: !0,
534
555
  ariaLabel: "Other response",
535
556
  isOther: !0
536
- }) : n ? /* @__PURE__ */ h(te, {
557
+ }) : n ? /* @__PURE__ */ h(W, {
537
558
  store: t,
538
559
  disabled: o || !!a?.sentimentSelectionLocked
539
560
  }) : e.type === "yes_no" || e.type === "multiple_choice" ? /* @__PURE__ */ h(ne, {
540
561
  question: e,
541
562
  store: t,
542
563
  disabled: o
543
- }) : /* @__PURE__ */ h(U, {
564
+ }) : /* @__PURE__ */ h(G, {
544
565
  store: t,
545
566
  disabled: o,
546
567
  placeholder: e.free_text_placeholder ?? "Please explain more... (Optional)",
@@ -548,7 +569,7 @@ function H({ question: e, store: t, isSentiment: n }) {
548
569
  ariaLabel: e.prompt
549
570
  });
550
571
  }
551
- function te({ store: e, disabled: t }) {
572
+ function W({ store: e, disabled: t }) {
552
573
  let r = e.currentDraft();
553
574
  return /* @__PURE__ */ h("div", {
554
575
  className: "sb-question sb-question--sentiment",
@@ -556,7 +577,7 @@ function te({ store: e, disabled: t }) {
556
577
  let a = n(i), o = r?.answer_key === i.id;
557
578
  return /* @__PURE__ */ g("span", {
558
579
  className: "sb-sentiment-control",
559
- children: [o && a ? /* @__PURE__ */ h(V, {}) : null, /* @__PURE__ */ h("button", {
580
+ children: [o && a ? /* @__PURE__ */ h(H, {}) : null, /* @__PURE__ */ h("button", {
560
581
  type: "button",
561
582
  className: `sb-yesno ${o ? "sb-yesno--selected" : ""}`,
562
583
  "data-choice-value": i.id,
@@ -566,7 +587,7 @@ function te({ store: e, disabled: t }) {
566
587
  "aria-pressed": o,
567
588
  children: /* @__PURE__ */ h("span", {
568
589
  className: "sb-yesno__icon",
569
- children: h(a ? z : B, {})
590
+ children: h(a ? B : V, {})
570
591
  })
571
592
  })]
572
593
  }, i.id);
@@ -574,7 +595,7 @@ function te({ store: e, disabled: t }) {
574
595
  });
575
596
  }
576
597
  function ne({ question: e, store: t, disabled: n }) {
577
- let i = e.answers ?? R, a = t.currentDraft(), o = u(null), [c, l] = d(() => i.every((e) => e.label.trim().length < 20));
598
+ let i = e.answers ?? z, a = t.currentDraft(), o = u(null), [c, l] = d(() => i.every((e) => e.label.trim().length < 20));
578
599
  return s(() => {
579
600
  let e = () => {
580
601
  let e = ((o.current?.clientWidth || 328) - 8) / 2, t = document.createElement("span");
@@ -628,7 +649,7 @@ function re({ choice: e, selected: n, disabled: i, store: a }) {
628
649
  })
629
650
  });
630
651
  }
631
- function U({ store: e, disabled: t, placeholder: n, autoFocus: r, ariaLabel: i, isOther: a = !1 }) {
652
+ function G({ store: e, disabled: t, placeholder: n, autoFocus: r, ariaLabel: i, isOther: a = !1 }) {
632
653
  let o = u(null);
633
654
  return s(() => {
634
655
  r && !t && o.current?.focus({ preventScroll: !0 });
@@ -705,7 +726,7 @@ function ie({ completion: e, store: t, isBusy: n, headingId: r, bodyId: i }) {
705
726
  }
706
727
  //#endregion
707
728
  //#region src/lib/components/SurveySheet.tsx
708
- var W = a(function({ session: e, store: t, modal: n, rootRef: r, interactive: i = !0 }) {
729
+ var K = a(function({ session: e, store: t, modal: n, rootRef: r, interactive: i = !0 }) {
709
730
  let a = e.currentNodeId ? e.survey.questions[e.currentNodeId] : void 0, o = !!(a && t.isSentimentStep()), l = a?.answers?.find((e) => e.id === t.currentDraft()?.answer_key), d = l?.comment?.trim() || null, f = l?.id === "system_other", p = u(null), _ = c();
710
731
  s(() => {
711
732
  if (!i) return;
@@ -752,22 +773,11 @@ var W = a(function({ session: e, store: t, modal: n, rootRef: r, interactive: i
752
773
  bodyId: y
753
774
  }) : a ? /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("div", {
754
775
  className: "sb-sheet__header",
755
- children: [o ? null : /* @__PURE__ */ h(L, { value: t.progress() }), /* @__PURE__ */ h("button", {
776
+ children: [o ? null : /* @__PURE__ */ h(R, { value: t.progress() }), /* @__PURE__ */ h("button", {
756
777
  type: "button",
757
778
  className: "sb-sheet__close",
758
779
  onClick: () => void t.closeSurvey(),
759
- "aria-label": "Close survey",
760
- children: /* @__PURE__ */ h("svg", {
761
- viewBox: "0 0 24 24",
762
- "aria-hidden": "true",
763
- children: /* @__PURE__ */ h("path", {
764
- d: "M6.4 6.4 17.6 17.6M17.6 6.4 6.4 17.6",
765
- fill: "none",
766
- stroke: "currentColor",
767
- strokeWidth: "2",
768
- strokeLinecap: "round"
769
- })
770
- })
780
+ "aria-label": "Close survey"
771
781
  })]
772
782
  }), /* @__PURE__ */ g("div", {
773
783
  className: "sb-sheet__stage",
@@ -784,7 +794,7 @@ var W = a(function({ session: e, store: t, modal: n, rootRef: r, interactive: i
784
794
  "aria-live": o && d ? "polite" : void 0,
785
795
  children: o && d ? d : a.prompt
786
796
  })]
787
- }), /* @__PURE__ */ h(H, {
797
+ }), /* @__PURE__ */ h(U, {
788
798
  question: a,
789
799
  store: t,
790
800
  isSentiment: o
@@ -814,35 +824,39 @@ var W = a(function({ session: e, store: t, modal: n, rootRef: r, interactive: i
814
824
  }, `${a.node_id}:${f ? "text" : "options"}`)] }) : null
815
825
  })]
816
826
  });
817
- }), ae = typeof window > "u" ? s : l, G = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1;
818
- function oe({ session: e, store: t, placement: r, modal: a }) {
819
- let o = u(null), [c, l] = d("entering"), { presentationId: f, survey: p, snackbar: m, isOpen: _ } = e, v = _ && (c === "entering" || c === "compact") ? "widening" : c, y = p.questions[p.root_node_id], b = i(y, p.fab), x = p.fab?.timerStyle ?? "none", [S, C] = d(!1);
827
+ }), ae = typeof window > "u" ? s : l, q = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1;
828
+ function oe({ session: e, store: t, placement: r, modal: a, exiting: o = !1 }) {
829
+ let c = u(null), [l, f] = d("entering"), { presentationId: p, survey: _, snackbar: v, isOpen: y } = e, b = e.sentimentPresentation === "bar", x = b ? e.barPosition : void 0, S = o ? "exiting" : y && (l === "entering" || l === "compact") ? "widening" : l, C = _.questions[_.root_node_id], w = i(C, _.fab), T = _.fab?.timerStyle ?? "none", E = b && e.barBehavior === "dismiss" && v?.selectedKey != null, [A, j] = d(!1);
820
830
  s(() => {
831
+ if (o) return;
821
832
  let e = setTimeout(() => {
822
- l("compact"), t.confirmPresentation("expanded_fab", f), t.confirmFabEntranceCompleted(f);
823
- }, G() ? 0 : x === "none" ? D.entrance : D.timerEntrance);
833
+ f("compact"), t.confirmPresentation("expanded_fab", p), t.confirmFabEntranceCompleted(p), b && c.current?.querySelector(".sb-snackbar-surface")?.matches(":hover") && window.matchMedia?.("(hover: hover)").matches && t.setBarTimerPaused(p, !0);
834
+ }, b ? q() ? O.reduced : te : q() ? 0 : T === "none" ? D.entrance : D.timerEntrance);
824
835
  return () => clearTimeout(e);
825
836
  }, [
826
- f,
837
+ p,
827
838
  t,
828
- x
839
+ T,
840
+ b,
841
+ o
829
842
  ]), s(() => {
830
- if (!_) return;
831
- let e = G(), n = setTimeout(() => l("expanding"), e ? 0 : D.widen), r = setTimeout(() => {
832
- l("ready"), t.confirmPresentation("sheet", f), t.confirmSnackbarContentReady(f), o.current?.querySelector(".sb-sheet h2")?.focus({ preventScroll: !0 });
843
+ if (!y || o) return;
844
+ let e = q(), n = setTimeout(() => f("expanding"), e ? 0 : D.widen), r = setTimeout(() => {
845
+ f("ready"), t.confirmPresentation("sheet", p), t.confirmSnackbarContentReady(p), c.current?.querySelector(".sb-sheet h2")?.focus({ preventScroll: !0 });
833
846
  }, e ? 0 : D.widen + D.expand);
834
847
  return () => {
835
848
  clearTimeout(n), clearTimeout(r);
836
849
  };
837
850
  }, [
838
- _,
839
- f,
840
- t
851
+ y,
852
+ p,
853
+ t,
854
+ o
841
855
  ]), ae(() => {
842
- let e = o.current;
843
- if (!e) return;
856
+ let e = c.current;
857
+ if (!e || o) return;
844
858
  let t = () => {
845
- let t = e.parentElement, n = window.visualViewport, a = r === "inline" ? t.clientWidth : n?.width || window.innerWidth, o = r === "inline" ? t.clientHeight : n?.height || window.innerHeight, s = t.querySelector(".sb-safe-area-probe"), c = s ? getComputedStyle(s) : null, l = (e) => Number.parseFloat(e ?? "") || 0, u = e.querySelector(".sb-snackbar-compact"), d = e.querySelector(".sb-sheet"), f = i(y, p.fab).placement, m = {
859
+ let t = e.parentElement, n = window.visualViewport, a = r === "inline" ? t.clientWidth : n?.width || window.innerWidth, o = r === "inline" ? t.clientHeight : n?.height || window.innerHeight, s = t.querySelector(".sb-safe-area-probe"), c = s ? getComputedStyle(s) : null, l = (e) => Number.parseFloat(e ?? "") || 0, u = e.querySelector(".sb-snackbar-compact"), d = e.querySelector(".sb-sheet"), f = i(C, _.fab).placement, p = {
846
860
  viewport: {
847
861
  width: a,
848
862
  height: o
@@ -854,27 +868,32 @@ function oe({ session: e, store: t, placement: r, modal: a }) {
854
868
  bottom: l(c?.paddingBottom)
855
869
  },
856
870
  compactHeight: 64,
857
- cardHeight: d?.offsetHeight || 0
871
+ cardHeight: d?.offsetHeight || 0,
872
+ barPosition: x
858
873
  };
859
- e.style.setProperty("--sb-snackbar-compact-width", `${O(f, m).compactWidth}px`);
860
- let h = Number.parseFloat(getComputedStyle(u).height) || u.offsetHeight || 64, g = O(f, {
861
- ...m,
862
- compactHeight: h
874
+ e.style.setProperty("--sb-snackbar-compact-width", `${k(f, p).compactWidth}px`), E && (u.style.minHeight = "48px");
875
+ let m = getComputedStyle(u), h = Number.parseFloat(m.height) || u.offsetHeight || (x ? 48 : 64), g = E ? Math.max(h, (e.querySelector(".sb-bar-acknowledgement-copy")?.scrollHeight ?? 0) + l(m.paddingTop) + l(m.paddingBottom)) : h;
876
+ E && u.style.removeProperty("min-height");
877
+ let v = k(f, {
878
+ ...p,
879
+ compactHeight: g
863
880
  });
864
881
  r === "fixed" ? (e.style.left = `${n?.offsetLeft ?? 0}px`, e.style.top = `${n?.offsetTop ?? 0}px`, e.style.width = `${a}px`, e.style.height = `${o}px`) : (e.style.left = "0px", e.style.top = "0px", e.style.width = "100%", e.style.height = "100%");
865
- let _ = v === "widening" || v === "expanding" || v === "ready", b = v === "expanding" || v === "ready", x = {
866
- left: _ ? g.cardLeft : g.compactLeft,
867
- bottom: _ ? g.cardBottom : g.compactBottom,
868
- width: _ ? g.cardWidth : g.compactWidth,
869
- height: b ? g.cardHeight : h,
870
- "compact-height": h,
871
- "card-width": g.cardWidth,
872
- "compact-width": g.compactWidth,
873
- "entrance-offset": g.entranceOffset,
874
- "max-height": g.maxCardHeight
882
+ let y = S === "widening" || S === "expanding" || S === "ready";
883
+ e.style.setProperty("--sb-bar-top", `${y ? v.cardTop : 0}px`);
884
+ let b = S === "expanding" || S === "ready", w = {
885
+ left: y ? v.cardLeft : v.compactLeft,
886
+ bottom: y ? v.cardBottom : v.compactBottom,
887
+ width: y ? v.cardWidth : v.compactWidth,
888
+ height: b ? v.cardHeight : g,
889
+ "compact-height": g,
890
+ "card-width": v.cardWidth,
891
+ "compact-width": v.compactWidth,
892
+ "entrance-offset": v.entranceOffset,
893
+ "max-height": v.maxCardHeight
875
894
  };
876
- for (let [t, n] of Object.entries(x)) e.style.setProperty(`--sb-snackbar-${t}`, `${n}px`);
877
- e.querySelector(".sb-snackbar-shell").style.transformOrigin = g.transformOrigin;
895
+ for (let [t, n] of Object.entries(w)) e.style.setProperty(`--sb-snackbar-${t}`, `${n}px`);
896
+ e.querySelector(".sb-snackbar-shell").style.transformOrigin = v.transformOrigin;
878
897
  };
879
898
  t();
880
899
  let n = typeof ResizeObserver > "u" ? null : new ResizeObserver(t), a = e.querySelector(".sb-snackbar-compact");
@@ -885,54 +904,88 @@ function oe({ session: e, store: t, placement: r, modal: a }) {
885
904
  };
886
905
  }, [
887
906
  r,
888
- v,
889
- p,
907
+ S,
908
+ _,
909
+ C,
890
910
  y,
891
- _
911
+ x,
912
+ o,
913
+ E
892
914
  ]), s(() => {
893
- if (_) return;
915
+ if (y || o) return;
894
916
  let e = (e) => {
895
- e.key === "Escape" && o.current?.contains(document.activeElement) && t.closeSurvey();
917
+ e.key === "Escape" && c.current?.contains(document.activeElement) && t.closeSurvey();
896
918
  };
897
919
  return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
898
- }, [_, t]);
899
- let w = m?.selectedKey, T = e.fabEntranceCompleted && m?.phase === "question", E = m?.deadline != null, k = {
900
- ...ee(p.theme),
901
- "--sb-snackbar-duration": `${p.fab?.expandedTimeout ?? 0}ms`,
902
- "--sb-snackbar-fraction": m?.frozenFraction ?? 1
903
- }, A = x === "none" ? null : /* @__PURE__ */ h("span", {
904
- className: `sb-snackbar-timer sb-snackbar-timer--${x}`,
920
+ }, [
921
+ y,
922
+ t,
923
+ o
924
+ ]);
925
+ let M = v?.selectedKey, N = b && e.barBehavior === "dismiss", P = C.answers?.find((e) => e.id === M), F = P ? P.comment?.trim() || "Thanks for your feedback." : "", I = E, L = !o && e.fabEntranceCompleted && v?.phase === "question", R = v?.deadline != null || v?.pausedRemainingMs != null, z = T !== "none" && typeof _.fab?.expandedTimeout == "number" && _.fab.expandedTimeout > 0, H = {
926
+ ...ee(_.theme),
927
+ "--sb-snackbar-duration": `${_.fab?.expandedTimeout ?? 0}ms`,
928
+ "--sb-snackbar-fraction": v?.frozenFraction ?? 1
929
+ }, U = T === "none" ? null : /* @__PURE__ */ h("span", {
930
+ className: `sb-snackbar-timer sb-snackbar-timer--${T}`,
905
931
  "aria-hidden": "true",
906
932
  children: /* @__PURE__ */ h("span", { className: "sb-snackbar-timer-fill" })
907
- });
933
+ }), W = /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ g("p", {
934
+ className: "sb-snackbar-prompt",
935
+ children: [C.prompt, T === "bar" && !b ? U : null]
936
+ }), /* @__PURE__ */ h("div", {
937
+ className: "sb-snackbar-answers",
938
+ children: (C.answers ?? []).map((e) => /* @__PURE__ */ h("button", {
939
+ className: "sb-snackbar-answer",
940
+ type: "button",
941
+ "aria-label": e.label,
942
+ "aria-pressed": M === e.id,
943
+ disabled: !L,
944
+ onClick: () => t.answerSnackbar(p, e.id),
945
+ children: n(e) ? /* @__PURE__ */ h(B, {}) : /* @__PURE__ */ h(V, {})
946
+ }, e.id))
947
+ })] });
908
948
  return /* @__PURE__ */ g("div", {
909
- ref: o,
949
+ ref: c,
910
950
  className: "sb-snackbar-root",
911
- style: k,
912
- "data-stage": v,
913
- "data-expanded": _,
914
- "data-counting": E,
915
- "data-frozen": m?.frozenFraction != null,
951
+ style: H,
952
+ "data-presentation": e.sentimentPresentation,
953
+ "data-position": x,
954
+ "data-behavior": e.barBehavior,
955
+ "data-stage": S,
956
+ "data-expanded": y,
957
+ "data-counting": R,
958
+ "data-paused": v?.pausedRemainingMs != null,
959
+ "data-timed": z,
960
+ "data-rated": I,
961
+ "data-exiting": o,
962
+ "data-frozen": v?.frozenFraction != null,
916
963
  children: [/* @__PURE__ */ h("button", {
917
964
  className: "sb-snackbar-overlay",
918
965
  type: "button",
919
966
  tabIndex: -1,
920
967
  "aria-hidden": "true",
921
- disabled: v !== "ready",
968
+ disabled: S !== "ready",
922
969
  onClick: () => void t.closeSurvey()
923
970
  }), /* @__PURE__ */ g("div", {
924
971
  className: "sb-snackbar-shell",
925
972
  children: [/* @__PURE__ */ g("div", {
926
973
  className: "sb-snackbar-surface",
974
+ onPointerEnter: (e) => {
975
+ b && !o && e.pointerType === "mouse" && window.matchMedia?.("(hover: hover)").matches && t.setBarTimerPaused(p, !0);
976
+ },
977
+ onPointerLeave: () => {
978
+ b && !o && t.setBarTimerPaused(p, !1);
979
+ },
927
980
  children: [/* @__PURE__ */ g("div", {
928
981
  className: "sb-snackbar-compact",
929
982
  role: "group",
930
- "aria-label": y.prompt,
931
- "aria-hidden": _ || v === "entering",
932
- inert: _ || v === "entering",
983
+ "aria-label": C.prompt,
984
+ "aria-hidden": y || S === "entering" || o,
985
+ inert: y || S === "entering" || o,
933
986
  children: [
934
- x === "fill" ? A : null,
935
- /* @__PURE__ */ g("span", {
987
+ T === "fill" || b && T === "bar" ? U : null,
988
+ b ? null : /* @__PURE__ */ g("span", {
936
989
  className: "sb-snackbar-artwork",
937
990
  "aria-hidden": "true",
938
991
  children: [/* @__PURE__ */ g("span", {
@@ -944,45 +997,50 @@ function oe({ session: e, store: t, placement: r, modal: a }) {
944
997
  /* @__PURE__ */ h("span", { className: "sb-fab__glyph sb-fab__glyph--mint" }),
945
998
  /* @__PURE__ */ h("span", { className: "sb-fab__glyph sb-fab__glyph--rose" })
946
999
  ]
947
- }), b.imageUrl && !S ? /* @__PURE__ */ h("img", {
948
- src: b.imageUrl,
1000
+ }), w.imageUrl && !A ? /* @__PURE__ */ h("img", {
1001
+ src: w.imageUrl,
949
1002
  alt: "",
950
- onError: () => C(!0)
1003
+ onError: () => j(!0)
951
1004
  }) : null]
952
1005
  }),
953
- /* @__PURE__ */ g("p", {
954
- className: "sb-snackbar-prompt",
955
- children: [y.prompt, x === "bar" ? A : null]
956
- }),
957
- /* @__PURE__ */ h("div", {
958
- className: "sb-snackbar-answers",
959
- children: (y.answers ?? []).map((e) => /* @__PURE__ */ h("button", {
960
- className: "sb-snackbar-answer",
961
- type: "button",
962
- "aria-label": e.label,
963
- "aria-pressed": w === e.id,
964
- disabled: !T,
965
- onClick: () => t.answerSnackbar(f, e.id),
966
- children: n(e) ? /* @__PURE__ */ h(z, {}) : /* @__PURE__ */ h(B, {})
967
- }, e.id))
968
- })
1006
+ b ? /* @__PURE__ */ h("div", {
1007
+ className: "sb-bar-content",
1008
+ inert: I,
1009
+ "aria-hidden": I,
1010
+ children: W
1011
+ }) : W,
1012
+ b ? /* @__PURE__ */ h("button", {
1013
+ className: "sb-bar-dismiss",
1014
+ type: "button",
1015
+ disabled: y || I || o,
1016
+ onClick: () => void t.closeSurvey(),
1017
+ children: "Not Now"
1018
+ }) : null,
1019
+ N ? /* @__PURE__ */ h("span", {
1020
+ className: "sb-bar-acknowledgement",
1021
+ role: "status",
1022
+ children: /* @__PURE__ */ h("span", {
1023
+ className: "sb-bar-acknowledgement-copy",
1024
+ children: F
1025
+ })
1026
+ }) : null
969
1027
  ]
970
- }), _ ? /* @__PURE__ */ h("div", {
1028
+ }), y ? /* @__PURE__ */ h("div", {
971
1029
  className: "sb-snackbar-card",
972
- inert: v !== "ready",
973
- "aria-hidden": v !== "ready",
974
- children: /* @__PURE__ */ h(W, {
1030
+ inert: S !== "ready",
1031
+ "aria-hidden": S !== "ready",
1032
+ children: /* @__PURE__ */ h(K, {
975
1033
  session: e,
976
1034
  store: t,
977
1035
  modal: a,
978
- interactive: v === "ready"
1036
+ interactive: S === "ready"
979
1037
  })
980
1038
  }) : null]
981
- }), /* @__PURE__ */ h("button", {
1039
+ }), b ? null : /* @__PURE__ */ h("button", {
982
1040
  className: "sb-snackbar-close",
983
1041
  type: "button",
984
1042
  "aria-label": "Close survey",
985
- disabled: _,
1043
+ disabled: y,
986
1044
  onClick: () => void t.closeSurvey(),
987
1045
  children: /* @__PURE__ */ h("svg", {
988
1046
  viewBox: "0 0 24 24",
@@ -1000,8 +1058,8 @@ function oe({ session: e, store: t, placement: r, modal: a }) {
1000
1058
  }
1001
1059
  //#endregion
1002
1060
  //#region src/lib/components/SurveyRenderer.tsx
1003
- var K = typeof window > "u" ? s : l, q = 1969.207, se = 2169.207, J = 856.839, Y = 450;
1004
- function X(e) {
1061
+ var J = typeof window > "u" ? s : l, Y = 1969.207, se = 2169.207, X = 856.839, Z = 450;
1062
+ function Q(e) {
1005
1063
  let t = Number.parseFloat(e);
1006
1064
  return Number.isFinite(t) ? Math.max(0, t) : 0;
1007
1065
  }
@@ -1010,34 +1068,34 @@ function ce(e) {
1010
1068
  for (let n of e) t += /[MW@#%&]/.test(n) ? 11 : /[ilI1.,' ]/.test(n) ? 4 : 7.5;
1011
1069
  return Math.ceil(t);
1012
1070
  }
1013
- function Z() {
1071
+ function $() {
1014
1072
  return typeof window < "u" && (window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ?? !1);
1015
1073
  }
1016
- function Q(e) {
1074
+ function le(e) {
1017
1075
  if (!e) return null;
1018
1076
  let { pulse_id: t, version: n, impression_id: r } = e.survey;
1019
1077
  return typeof r == "string" ? `${t}:${n}:${r}` : `${t}:${n}`;
1020
1078
  }
1021
- function $(e) {
1079
+ function ue(e) {
1022
1080
  if (!e) return;
1023
1081
  let t = getComputedStyle(e), n = Number.parseFloat(t.width) || e.offsetWidth || 86, 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");
1024
1082
  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");
1025
1083
  }
1026
- function le({ session: e, store: t, fabRef: n, onClick: r }) {
1027
- let [i, a] = d(e), [o, c] = d(null), l = Q(e), u = e?.survey.fab, f = (u?.timerStyle === "bar" || u?.timerStyle === "fill") && typeof u.expandedTimeout == "number" && Number.isFinite(u.expandedTimeout) && u.expandedTimeout > 0, p = e ?? i;
1028
- return K(() => {
1084
+ function de({ session: e, store: t, fabRef: n, onClick: r }) {
1085
+ let [i, a] = d(e), [o, c] = d(null), l = le(e), u = e?.survey.fab, f = (u?.timerStyle === "bar" || u?.timerStyle === "fill") && typeof u.expandedTimeout == "number" && Number.isFinite(u.expandedTimeout) && u.expandedTimeout > 0, p = e ?? i;
1086
+ return J(() => {
1029
1087
  e && a(e);
1030
- }, [e]), K(() => {
1031
- !e && i && $(n.current);
1088
+ }, [e]), J(() => {
1089
+ !e && i && ue(n.current);
1032
1090
  }, [
1033
1091
  n,
1034
1092
  i,
1035
1093
  e
1036
1094
  ]), s(() => {
1037
1095
  if (!l) return;
1038
- let e = Z(), n = setTimeout(() => {
1096
+ let e = $(), n = setTimeout(() => {
1039
1097
  t.confirmPresentation("expanded_fab"), t.confirmFabEntranceCompleted();
1040
- }, e ? 0 : q), r = setTimeout(() => c(l), e ? 0 : f ? se : q);
1098
+ }, e ? 0 : Y), r = setTimeout(() => c(l), e ? 0 : f ? se : Y);
1041
1099
  return () => {
1042
1100
  clearTimeout(n), clearTimeout(r);
1043
1101
  };
@@ -1047,71 +1105,87 @@ function le({ session: e, store: t, fabRef: n, onClick: r }) {
1047
1105
  t
1048
1106
  ]), s(() => {
1049
1107
  if (e || !i) return;
1050
- let t = setTimeout(() => a(null), Z() ? 0 : J);
1108
+ let t = setTimeout(() => a(null), $() ? 0 : X);
1051
1109
  return () => clearTimeout(t);
1052
- }, [i, e]), p ? /* @__PURE__ */ h(I, {
1110
+ }, [i, e]), p ? /* @__PURE__ */ h(L, {
1053
1111
  session: p,
1054
1112
  fabRef: n,
1055
1113
  onClick: r,
1056
1114
  animationState: e ? o === l ? "visible" : "entering" : "exiting"
1057
1115
  }) : null;
1058
1116
  }
1059
- function ue({ session: e, store: t, modal: n }) {
1117
+ function fe({ session: e, store: t, modal: n }) {
1060
1118
  let [r, i] = d(e), a = u(null), o = e ?? r;
1061
- return K(() => {
1119
+ return J(() => {
1062
1120
  e && i(e);
1063
- }, [e]), K(() => {
1121
+ }, [e]), J(() => {
1064
1122
  let t = a.current;
1065
1123
  !t || e || (t.classList.add("sb-sheet-root--exiting"), t.setAttribute("aria-hidden", "true"), t.querySelectorAll("button").forEach((e) => {
1066
1124
  e.disabled = !0;
1067
1125
  }));
1068
1126
  }, [e]), s(() => {
1069
1127
  if (e || !r) return;
1070
- let t = setTimeout(() => i(null), Z() ? 0 : Y);
1128
+ let t = setTimeout(() => i(null), $() ? 0 : Z);
1071
1129
  return () => clearTimeout(t);
1072
- }, [r, e]), o ? /* @__PURE__ */ h(W, {
1130
+ }, [r, e]), o ? /* @__PURE__ */ h(K, {
1073
1131
  session: o,
1074
1132
  store: t,
1075
1133
  modal: n,
1076
1134
  rootRef: a
1077
- }, Q(o)) : null;
1135
+ }, le(o)) : null;
1136
+ }
1137
+ function pe({ session: e, store: t, placement: n, modal: r }) {
1138
+ let [i, a] = d(e), o = e ?? i;
1139
+ return J(() => {
1140
+ e && a(e);
1141
+ }, [e]), s(() => {
1142
+ if (e || !i) return;
1143
+ let t = i.sentimentPresentation === "bar" ? $() ? O.reduced : O.removal : 0, n = setTimeout(() => a(null), t);
1144
+ return () => clearTimeout(n);
1145
+ }, [e, i]), !o || !e && o.sentimentPresentation !== "bar" ? null : /* @__PURE__ */ h(oe, {
1146
+ session: o,
1147
+ store: t,
1148
+ placement: n,
1149
+ modal: r,
1150
+ exiting: !e
1151
+ }, o.presentationId);
1078
1152
  }
1079
- function de({ store: e, portal: t = !0, placement: n = "fixed" }) {
1153
+ function me({ store: e, portal: t = !0, placement: n = "fixed" }) {
1080
1154
  let r = f(o((t) => e.subscribe(t), [e]), o(() => e.getSnapshot(), [e]), o(() => e.getServerSnapshot(), [e])).state, i = u(null), a = u(null), c = u(null), l = u(null), d = r ? r.completion ? "completion" : r.isOpen ? `sheet:${r.currentNodeId}` : `fab:${r.fabState}` : "none";
1081
- K(() => {
1155
+ J(() => {
1082
1156
  if (!r || !i.current) return;
1083
1157
  let e = T(r.survey.theme);
1084
1158
  for (let [t, n] of Object.entries(e)) i.current.style.setProperty(t, n);
1085
1159
  }, [r]), s(() => {
1086
1160
  let t = e.getState();
1087
1161
  if (!t) {
1088
- let e = i.current?.querySelector(".sb-fab--exiting") ? J : Y, t = setTimeout(() => {
1162
+ let e = i.current?.querySelector("[data-presentation=\"bar\"][data-exiting=\"true\"]"), t = i.current?.querySelector(".sb-fab--exiting") ? X : Z, n = setTimeout(() => {
1089
1163
  let e = l.current;
1090
1164
  e?.isConnected ? e.focus() : e && i.current?.focus(), l.current = null;
1091
- }, Z() ? 0 : e);
1092
- return () => clearTimeout(t);
1165
+ }, e ? $() ? O.reduced : O.removal : $() ? 0 : t);
1166
+ return () => clearTimeout(n);
1093
1167
  }
1094
1168
  if (t.isOpen || t.completion) {
1095
1169
  if (!l.current && document.activeElement instanceof HTMLElement && (l.current = document.activeElement), t.snackbar?.phase === "awaitingReady") return;
1096
1170
  e.confirmPresentation("sheet"), (i.current?.querySelector("textarea[data-autofocus=\"true\"]") ?? i.current?.querySelector(".sb-sheet__body h2"))?.focus({ preventScroll: !0 });
1097
1171
  }
1098
1172
  t.snackbar && !l.current && document.activeElement instanceof HTMLElement && (l.current = document.activeElement);
1099
- }, [d, e]), K(() => {
1173
+ }, [d, e]), J(() => {
1100
1174
  let e = a.current, t = i.current;
1101
1175
  if (!e || !t || !r || r.fabState !== "expanded" || r.isOpen) return;
1102
1176
  let o = () => {
1103
1177
  let e = a.current;
1104
1178
  if (!e || !c.current) return;
1105
1179
  let i = window.visualViewport, o = n === "inline" ? t.getBoundingClientRect() : null, s = n === "inline" ? t.clientWidth || o.width : i?.width && i.width > 0 ? i.width : window.innerWidth, l = n === "inline" ? t.clientHeight || o.height : i?.height && i.height > 0 ? i.height : window.innerHeight, u = e.getBoundingClientRect(), d = getComputedStyle(c.current), f = {
1106
- top: X(d.paddingTop),
1107
- right: X(d.paddingRight),
1108
- bottom: X(d.paddingBottom),
1109
- left: X(d.paddingLeft)
1180
+ top: Q(d.paddingTop),
1181
+ right: Q(d.paddingRight),
1182
+ bottom: Q(d.paddingBottom),
1183
+ left: Q(d.paddingLeft)
1110
1184
  }, p = Math.max(0, s - f.left - f.right), m = e.querySelector(".sb-fab__label"), h = m ? m.scrollWidth || m.getBoundingClientRect().width || ce(m.textContent ?? "") : 0, g = Math.min(p, Math.max(86, 86 + Math.ceil(h))), _ = e.offsetHeight || u.height || 60;
1111
1185
  e.style.setProperty("--sb-fab-expanded-width", `${g}px`), e.style.setProperty("--sb-fab-label-width", `${Math.max(0, g - 86)}px`);
1112
1186
  let v = Math.max(0, Math.min(1, r.survey.fab?.placement?.anchor.x ?? 1));
1113
1187
  e.style.setProperty("--sb-fab-anchor-offset", `${(g - 60) * v}px`);
1114
- let y = P(r.survey.fab?.placement, {
1188
+ let y = F(r.survey.fab?.placement, {
1115
1189
  viewport: {
1116
1190
  width: s,
1117
1191
  height: l
@@ -1158,21 +1232,21 @@ function de({ store: e, portal: t = !0, placement: n = "fixed" }) {
1158
1232
  ref: c,
1159
1233
  className: "sb-safe-area-probe"
1160
1234
  }),
1161
- r?.snackbar ? /* @__PURE__ */ h(oe, {
1162
- session: r,
1235
+ /* @__PURE__ */ h(pe, {
1236
+ session: r?.snackbar ? r : null,
1163
1237
  store: e,
1164
1238
  placement: n,
1165
1239
  modal: t
1166
- }, r.presentationId) : null,
1167
- /* @__PURE__ */ h(le, {
1240
+ }),
1241
+ /* @__PURE__ */ h(de, {
1168
1242
  session: r && !r.snackbar && !r.isOpen && !r.completion && r.fabState === "expanded" ? r : null,
1169
1243
  store: e,
1170
1244
  fabRef: a,
1171
1245
  onClick: () => {
1172
- $(a.current), l.current = a.current, e.openSurvey();
1246
+ ue(a.current), l.current = a.current, e.openSurvey();
1173
1247
  }
1174
1248
  }),
1175
- /* @__PURE__ */ h(ue, {
1249
+ /* @__PURE__ */ h(fe, {
1176
1250
  session: r && !r.snackbar && (r.isOpen || r.completion) ? r : null,
1177
1251
  store: e,
1178
1252
  modal: t
@@ -1182,4 +1256,4 @@ function de({ store: e, portal: t = !0, placement: n = "fixed" }) {
1182
1256
  return t && typeof document < "u" ? p(m, document.body) : m;
1183
1257
  }
1184
1258
  //#endregion
1185
- export { de as t };
1259
+ export { me as t };
@@ -1 +1 @@
1
- {"version":3,"file":"SurveyRenderer.d.ts","sourceRoot":"","sources":["../../src/lib/components/SurveyRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AA4I5F,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,MAAa,EAAE,SAAmB,EAAE,EAAE;IAAE,KAAK,EAAE,kBAAkB,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CAAE,+BAgK5J"}
1
+ {"version":3,"file":"SurveyRenderer.d.ts","sourceRoot":"","sources":["../../src/lib/components/SurveyRenderer.tsx"],"names":[],"mappings":"AAEA,OAAO,EAA2B,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AA0J5F,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,MAAa,EAAE,SAAmB,EAAE,EAAE;IAAE,KAAK,EAAE,kBAAkB,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAC;IAAC,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;CAAE,+BAiK5J"}
@@ -1,8 +1,9 @@
1
1
  import { type SurveySessionState, type SurveySessionStore } from '@sidebandai/sideband-core';
2
- export declare function SurveySnackbar({ session, store, placement, modal }: {
2
+ export declare function SurveySnackbar({ session, store, placement, modal, exiting }: {
3
3
  session: SurveySessionState;
4
4
  store: SurveySessionStore;
5
5
  placement: 'fixed' | 'inline';
6
6
  modal: boolean;
7
+ exiting?: boolean;
7
8
  }): import("react").JSX.Element;
8
9
  //# sourceMappingURL=SurveySnackbar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SurveySnackbar.d.ts","sourceRoot":"","sources":["../../src/lib/components/SurveySnackbar.tsx"],"names":[],"mappings":"AACA,OAAO,EAA0D,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AASpJ,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE;IACnE,OAAO,EAAE,kBAAkB,CAAA;IAC3B,KAAK,EAAE,kBAAkB,CAAA;IACzB,SAAS,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC7B,KAAK,EAAE,OAAO,CAAA;CACf,+BA2IA"}
1
+ {"version":3,"file":"SurveySnackbar.d.ts","sourceRoot":"","sources":["../../src/lib/components/SurveySnackbar.tsx"],"names":[],"mappings":"AACA,OAAO,EAA0D,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AASpJ,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,OAAe,EAAE,EAAE;IACpF,OAAO,EAAE,kBAAkB,CAAA;IAC3B,KAAK,EAAE,kBAAkB,CAAA;IACzB,SAAS,EAAE,OAAO,GAAG,QAAQ,CAAA;IAC7B,KAAK,EAAE,OAAO,CAAA;IACd,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,+BAiKA"}
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { createSidebandClient, SidebandApiError, SurveySessionStore, buildFabTit
3
3
  export { SidebandProvider } from './context/SidebandProvider';
4
4
  export type { SidebandProviderConfig } from './context/SidebandProvider';
5
5
  export { useSideband } from './hooks/useSideband';
6
- export type { AnsweredInteraction, ClientContext, CompletionActionStyle, CompletionActionType, CompletionIconType, CompletionType, DismissedInteraction, EventMetadata, EventRecord, Fab, FabOffset, FabPlacement, FabPoint, Interaction, Pulse, PendingPulse, SyncEndpoint, PulseAnswer, PulseCompletion, PulseCompletionAction, PulseQuestion, QuestionType, SentimentPresentation, SimulatedPulseDefinition, SidebandClientConfig, SidebandCoreConfig, ServiceUnavailableError, SurveyAnswerMap, SurveyAnswerValue, SyncErrorResponse, SyncOptions, SyncRequest, SyncResponse, TrackedEvent, TrackOptions, Theme, ThemeColor, TimerStyle, } from '@sidebandai/sideband-core';
6
+ export type { AnsweredInteraction, ClientContext, CompletionActionStyle, CompletionActionType, CompletionIconType, CompletionType, DismissedInteraction, EventMetadata, EventRecord, Fab, FabOffset, FabPlacement, FabPoint, Interaction, Pulse, PendingPulse, SyncEndpoint, PulseAnswer, PulseCompletion, PulseCompletionAction, PulseQuestion, QuestionType, SentimentPresentation, SentimentPresentationOptions, BarPosition, BarBehavior, SimulatedPulseDefinition, SidebandClientConfig, SidebandCoreConfig, ServiceUnavailableError, SurveyAnswerMap, SurveyAnswerValue, SyncErrorResponse, SyncOptions, SyncRequest, SyncResponse, TrackedEvent, TrackOptions, Theme, ThemeColor, TimerStyle, } from '@sidebandai/sideband-core';
7
7
  import type { EventMetadata, SidebandClientConfig, SyncOptions, SyncRequest, TrackOptions } from '@sidebandai/sideband-core';
8
8
  export declare function sync(config: SidebandClientConfig, request: Omit<SyncRequest, 'context'> & {
9
9
  context?: SyncRequest['context'];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,cAAc,GACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD,YAAY,EACV,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,GAAG,EACH,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,KAAK,EACL,UAAU,EACV,UAAU,GACX,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,YAAY,EACb,MAAM,2BAA2B,CAAA;AAElC,wBAAgB,IAAI,CAClB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;CAAE,EAC5E,OAAO,CAAC,EAAE,WAAW,6DAGtB;AAED,wBAAgB,KAAK,CACnB,MAAM,EAAE,oBAAoB,EAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,aAAa,EACxB,OAAO,CAAC,EAAE,YAAY,6DAGvB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/lib/index.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,CAAA;AAEpB,OAAO,EACL,oBAAoB,EACpB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,cAAc,GACf,MAAM,2BAA2B,CAAA;AAClC,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAA;AAC7D,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAA;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAEjD,YAAY,EACV,mBAAmB,EACnB,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,oBAAoB,EACpB,aAAa,EACb,WAAW,EACX,GAAG,EACH,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,4BAA4B,EAC5B,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,YAAY,EACZ,KAAK,EACL,UAAU,EACV,UAAU,GACX,MAAM,2BAA2B,CAAA;AAGlC,OAAO,KAAK,EACV,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,YAAY,EACb,MAAM,2BAA2B,CAAA;AAElC,wBAAgB,IAAI,CAClB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAA;CAAE,EAC5E,OAAO,CAAC,EAAE,WAAW,6DAGtB;AAED,wBAAgB,KAAK,CACnB,MAAM,EAAE,oBAAoB,EAC5B,SAAS,EAAE,MAAM,EACjB,QAAQ,CAAC,EAAE,aAAa,EACxB,OAAO,CAAC,EAAE,YAAY,6DAGvB"}
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./SurveyRenderer-BkUNLbxJ.js";
1
+ import { t as e } from "./SurveyRenderer-C7_hRSWY.js";
2
2
  import { SidebandApiError as t, SurveySessionStore as n, SurveySessionStore as r, buildFabTitle as i, createSidebandClient as a, createSidebandClient as o, createSidebandRuntime as s, getChoiceValue as c } from "@sidebandai/sideband-core";
3
3
  import { createContext as l, useCallback as u, useContext as d, useEffect as f, useMemo as p, useRef as m, useState as h, useSyncExternalStore as g } from "react";
4
4
  import { jsx as _, jsxs as v } from "react/jsx-runtime";
@@ -42,7 +42,7 @@ function O(e, t) {
42
42
  }
43
43
  }), a = s({
44
44
  ...e,
45
- libraryVersion: "1.4.1-rc.2",
45
+ libraryVersion: "1.4.4",
46
46
  onSyncResponse: (e) => i.handleSyncResponse(e)
47
47
  });
48
48
  return n.current = a, {
package/dist/preview.d.ts CHANGED
@@ -1,9 +1,8 @@
1
- import { type Interaction, type Pulse, type SentimentPresentation } from '@sidebandai/sideband-core';
2
- export type { CompletionActionStyle, CompletionActionType, CompletionIconType, CompletionType, Fab, FabOffset, FabPlacement, FabPoint, Pulse, PulseAnswer, PulseCompletion, PulseCompletionAction, PulseQuestion, QuestionType, SentimentPresentation, Theme, ThemeColor, TimerStyle, } from '@sidebandai/sideband-core';
1
+ import { type Interaction, type Pulse, type SentimentPresentationOptions } from '@sidebandai/sideband-core';
2
+ export type { CompletionActionStyle, CompletionActionType, CompletionIconType, CompletionType, Fab, FabOffset, FabPlacement, FabPoint, Pulse, PulseAnswer, PulseCompletion, PulseCompletionAction, PulseQuestion, QuestionType, SentimentPresentation, SentimentPresentationOptions, BarPosition, BarBehavior, Theme, ThemeColor, TimerStyle, } from '@sidebandai/sideband-core';
3
3
  export type SidebandPulsePreviewPlacement = 'fixed' | 'inline';
4
- export type SidebandPulsePreviewOptions = {
4
+ export type SidebandPulsePreviewOptions = SentimentPresentationOptions & {
5
5
  pulse: Pulse;
6
- sentimentPresentation?: SentimentPresentation;
7
6
  placement?: SidebandPulsePreviewPlacement;
8
7
  onInteraction?: (interaction: Interaction) => void;
9
8
  onDone?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../src/lib/preview.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,WAAW,EAAE,KAAK,KAAK,EAAE,KAAK,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAGxH,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,GAAG,EACH,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,KAAK,EACL,UAAU,EACV,UAAU,GACX,MAAM,2BAA2B,CAAA;AAElC,MAAM,MAAM,6BAA6B,GAAG,OAAO,GAAG,QAAQ,CAAA;AAC9D,MAAM,MAAM,2BAA2B,GAAG;IACxC,KAAK,EAAE,KAAK,CAAA;IACZ,qBAAqB,CAAC,EAAE,qBAAqB,CAAA;IAC7C,SAAS,CAAC,EAAE,6BAA6B,CAAA;IACzC,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAA;IAClD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AACD,MAAM,MAAM,iCAAiC,GAAG,OAAO,CAAC,2BAA2B,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAA;AACxG,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,WAAW,CAAA;IACpB,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,MAAM,EAAE,CAAC,OAAO,EAAE,iCAAiC,KAAK,IAAI,CAAA;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AAwBD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,EAAE,2BAA2B,GAAG,0BAA0B,CA0CpI"}
1
+ {"version":3,"file":"preview.d.ts","sourceRoot":"","sources":["../src/lib/preview.ts"],"names":[],"mappings":"AAGA,OAAO,EAAsB,KAAK,WAAW,EAAE,KAAK,KAAK,EAAE,KAAK,4BAA4B,EAAE,MAAM,2BAA2B,CAAA;AAG/H,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,kBAAkB,EAClB,cAAc,EACd,GAAG,EACH,SAAS,EACT,YAAY,EACZ,QAAQ,EACR,KAAK,EACL,WAAW,EACX,eAAe,EACf,qBAAqB,EACrB,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,4BAA4B,EAC5B,WAAW,EACX,WAAW,EACX,KAAK,EACL,UAAU,EACV,UAAU,GACX,MAAM,2BAA2B,CAAA;AAElC,MAAM,MAAM,6BAA6B,GAAG,OAAO,GAAG,QAAQ,CAAA;AAC9D,MAAM,MAAM,2BAA2B,GAAG,4BAA4B,GAAG;IACvE,KAAK,EAAE,KAAK,CAAA;IACZ,SAAS,CAAC,EAAE,6BAA6B,CAAA;IACzC,aAAa,CAAC,EAAE,CAAC,WAAW,EAAE,WAAW,KAAK,IAAI,CAAA;IAClD,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;IACnB,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;CACvB,CAAA;AACD,MAAM,MAAM,iCAAiC,GAAG,OAAO,CAAC,2BAA2B,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,KAAK,CAAA;CAAE,CAAA;AACxG,MAAM,MAAM,0BAA0B,GAAG;IACvC,OAAO,EAAE,WAAW,CAAA;IACpB,IAAI,EAAE,MAAM,IAAI,CAAA;IAChB,MAAM,EAAE,CAAC,OAAO,EAAE,iCAAiC,KAAK,IAAI,CAAA;IAC5D,OAAO,EAAE,MAAM,IAAI,CAAA;CACpB,CAAA;AA0BD,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,EAAE,2BAA2B,GAAG,0BAA0B,CA0CpI"}
package/dist/preview.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as e } from "./SurveyRenderer-BkUNLbxJ.js";
1
+ import { t as e } from "./SurveyRenderer-C7_hRSWY.js";
2
2
  import { SurveySessionStore as t } from "@sidebandai/sideband-core";
3
3
  import { createElement as n } from "react";
4
4
  import { flushSync as r } from "react-dom";
@@ -14,7 +14,7 @@ function o(e) {
14
14
  return new t({
15
15
  syncInteraction: async (t) => {
16
16
  let n = e.current;
17
- n.onInteraction?.(t), "completion_action_id" in t && t.completion_action_id && Object.values(n.pulse.completions).flatMap((e) => e.actions).find((e) => e.id === t.completion_action_id)?.action.type === "dismiss" && n.onDone?.();
17
+ n.onInteraction?.(t), "completion_action_id" in t && t.completion_action_id ? Object.values(n.pulse.completions).flatMap((e) => e.actions).find((e) => e.id === t.completion_action_id)?.action.type === "dismiss" && n.onDone?.() : t.action === "completed" && n.pulse.sentimentPresentation === "toolbar" && n.onDone?.();
18
18
  },
19
19
  onRateApp: () => e.current.onRateApp?.()
20
20
  });
package/dist/style.css CHANGED
@@ -1,2 +1,2 @@
1
- .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-root{--sb-surface:#fff;--sb-surface-muted:#f2f2f2;--sb-border-active:#080808b3;--sb-text:#080808;--sb-text-muted:#5c5c5c;--sb-overlay:#00000061;--sb-ease:cubic-bezier(0, .87, .39, 1);--sb-height-ease:cubic-bezier(0, .83, .363, .994);--sb-fab-motion-ease:cubic-bezier(.649439, .0577174, .124599, 1);color:var(--sb-text);font-synthesis:none;font-family:-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:normal}.sb-root *,.sb-root :before,.sb-root :after{box-sizing:border-box}.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;width:var(--sb-fab-expanded-width,86px);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);box-shadow:none;cursor:pointer;transform-origin:50%;will-change:scale;border-radius:999px;align-items:center;margin:0;padding:0 28px 0 14px;transition:scale 80ms ease-out;display:inline-flex;position:fixed;overflow:hidden}.sb-fab:active:not(:disabled){scale:.97}.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}.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}.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-fab__badge{z-index:1;border-radius:50%;flex:0 0 32px;width:32px;height:32px;margin-inline-end:12px;position:relative;overflow:hidden}.sb-fab__badge-image,.sb-fab__badge-art{border-radius:inherit;width:100%;height:100%;display:block}.sb-fab__badge-image{object-fit:cover}.sb-fab__badge-art{background:var(--sb-theme-fab-accent-primary,#f97316);position:relative}.sb-fab__badge-inner{background:var(--sb-theme-fab-accent-secondary,#2563eb);border-radius:50%;position:absolute;inset:17%}.sb-fab__glyph{z-index:1;border-radius:999px;display:block;position:absolute}.sb-fab__glyph--center{background:var(--sb-theme-fab-foreground,#fff);border-radius:3.52px;width:4.16px;height:11.52px;top:50%;left:50%;transform:translate(-50%,-50%)}.sb-fab__glyph--amber{background:#fac143;width:2.88px;height:6.72px;top:50%;left:50%;transform:translate(calc(-50% - 3.04px),calc(.8px - 50%))}.sb-fab__glyph--mint{background:#39c690;width:2.88px;height:5.44px;top:50%;left:50%;transform:translate(calc(3.04px - 50%),calc(-50% - .32px))}.sb-fab__glyph--rose{background:#e86398;width:2.56px;height:4.16px;top:50%;left:50%;transform:translate(calc(.96px - 50%),calc(3.68px - 50%))}.sb-fab__label{z-index:1;width:var(--sb-fab-label-width,auto);color:currentColor;text-align:start;text-overflow:clip;white-space:nowrap;flex:none;min-width:0;font-size:14px;font-weight:600;line-height:1;position:relative;overflow:hidden}.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-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-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);transform-origin:0;width:100%;height:100%;animation:sb-fab-timer-bar var(--sb-timer-duration) linear forwards;display:block}.sb-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-fab__timer-fill{transform-origin:100%}.sb-sheet-root{z-index:1100;position:fixed;inset:0}.sb-sheet-root__overlay{background:var(--sb-theme-sheet-scrim,var(--sb-overlay));cursor:pointer;border:0;width:100%;height:100%;margin:0;padding:0;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{bottom:calc(8px + env(safe-area-inset-bottom,0px));width:min(376px, calc(100% - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));max-height:calc(100% - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));background:var(--sb-theme-sheet-background,var(--sb-surface));color:var(--sb-text);box-shadow:none;interpolate-size:allow-keywords;transition:height .45s var(--sb-height-ease);animation:sb-sheet-in .45s var(--sb-ease) both;overscroll-behavior:contain;border-radius:40px;position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.sb-sheet-root--exiting .sb-sheet{animation:sb-sheet-out .45s var(--sb-ease) forwards}.sb-sheet__header{height:50px;position:relative}.sb-progress{background:var(--sb-theme-sheet-progress-track,#eaeaea);border-radius:24px;width:min(216px,100% - 112px);height:6px;position:absolute;top:27px;left:50%;overflow:hidden;transform:translate(-50%)}.sb-progress__fill{width:var(--sb-progress-value,0%);border-radius:inherit;background:var(--sb-theme-sheet-progress-fill,#080808);height:100%;transition:width .45s var(--sb-ease);animation:sb-progress-in .45s var(--sb-ease) .1s both;display:block}.sb-sheet__close{background:var(--sb-theme-sheet-close-button-background,transparent);width:40px;height:40px;color:var(--sb-theme-sheet-close-button-foreground,var(--sb-text));cursor:pointer;border:0;border-radius:4px;place-items:center;margin:0;padding:8px;display:grid;position:absolute;top:10px;right:16px}.sb-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-sheet__close{left:16px;right:auto}.sb-sheet__close svg{width:24px;height:24px;display:block}.sb-sheet__stage{animation:.25s ease-in-out both sb-step-in}.sb-sheet__body{flex-direction:column;display:flex}.sb-sheet__body--question{padding-bottom:16px}.sb-sheet__copy{text-align:center;justify-items:center;display:grid}.sb-sheet__body--question .sb-sheet__copy{place-items:center;height:88px;padding-inline:23px}.sb-sheet__body--question h2{color:var(--sb-theme-content-heading,var(--sb-text));text-align:center;margin:0;font-size:19px;font-weight:600;line-height:1.24}.sb-sheet__body--sentiment{padding:12px 24px 22px}.sb-sheet__body--sentiment .sb-sheet__copy{align-content:center;gap:8px;min-height:84px}.sb-sheet__body--sentiment .sb-sheet__copy--acknowledgement{min-height:70px;padding-top:6px}.sb-sheet__eyebrow{max-width:100%;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.25;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2{max-width:100%;color:var(--sb-theme-content-heading,var(--sb-text));text-align:center;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:22px;font-weight:600;line-height:1.2;animation:.28s cubic-bezier(.2,0,0,1) both sb-sentiment-title-in;display:-webkit-box;overflow:hidden}.sb-sheet__copy--acknowledgement h2{max-width:324px;font-size:29px;line-height:1.12}.sb-question{min-width:0}.sb-question--sentiment{grid-template-columns:repeat(2,80px);gap:25px;width:185px;margin:37px auto 31px;display:grid}.sb-sheet__copy--acknowledgement+.sb-question--sentiment{margin-top:35px}.sb-sentiment-control{place-items:center;width:80px;height:80px;display:grid;position:relative}.sb-yesno{z-index:1;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;margin:0;padding:0;transition:border-color .18s,background-color .18s,color .18s,scale .12s ease-out;display:grid;position:relative}.sb-yesno__icon,.sb-yesno__icon svg{width:35.5556px;height:35.5556px;display:block}.sb-yesno:hover:not(:disabled){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-yesno:active:not(:disabled){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));scale:.97}.sb-yesno--selected,.sb-yesno--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-yesno:disabled:not(.sb-yesno--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);cursor:default}.sb-spark-ring{z-index:0;opacity:0;pointer-events:none;border-radius:50%;animation:.22s cubic-bezier(.25,.46,.45,.94) forwards sb-spark-in;position:absolute;inset:-26px;scale:.55}.sb-spark-ring__dot{--sb-spark-radius:54px;width:7px;height:7px;transform:rotate(calc(var(--sb-spark-index) * 30deg)) translateY(calc(var(--sb-spark-radius) * -1));background:#dedede;border-radius:50%;margin:-3.5px;position:absolute;top:50%;left:50%}.sb-spark-ring__dot--large{--sb-spark-radius:59px;width:12px;height:12px;margin:-6px}.sb-question--choices,.sb-question--text{width:auto;margin-inline:24px}.sb-options-scroll{scrollbar-gutter:stable;overscroll-behavior:contain;max-height:320.5px;display:grid;overflow:hidden auto}.sb-options-scroll--scrolling{padding-bottom:20px}.sb-question--choices-grid .sb-options-scroll{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sb-question--choices-list .sb-options-scroll{grid-template-columns:minmax(0,1fr);gap:8px}.sb-choice{overflow-wrap:anywhere;border:1px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:100%;min-width:0;min-height:51px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));cursor:pointer;font:inherit;text-align:center;border-radius:999px;justify-content:center;align-items:center;margin:0;padding:8px;font-size:16px;font-weight:700;line-height:1.2;transition:border-color .18s,background-color .18s,color .18s,scale .12s ease-out;display:flex}.sb-choice__label{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.sb-question--choices-grid .sb-choice{-webkit-line-clamp:2;-webkit-box-orient:vertical;align-content:center;max-height:51px;display:-webkit-box;overflow:hidden}.sb-question--choices-list .sb-choice{text-align:start;border-radius:16px;justify-content:flex-start;min-height:51px;padding:16px 22px}.sb-choice:hover:not(:disabled){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-choice:active:not(:disabled){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));scale:.97}.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-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-choice--other{border-color:var(--sb-theme-choice-default-border,#e2e2e2);color:var(--sb-theme-input-placeholder,#08080866);gap:0;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-question--choices-grid .sb-choice--other{display:flex}.sb-question--text{padding-top:10px}.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%;height:155px;transition:border-color .18s,background-color .18s;overflow:hidden}.sb-textarea-shell:focus-within{border-color:var(--sb-theme-input-focused-border,var(--sb-border-active))}.sb-textarea{width:100%;height:100%;color:var(--sb-theme-input-foreground,var(--sb-text));font:inherit;resize:none;background:0 0;border:0;outline:0;margin:0;padding:17px 22px;font-size:16px;font-weight:400;line-height:1.25;display:block}.sb-textarea::placeholder{color:var(--sb-theme-input-placeholder,#08080866);opacity:1}.sb-textarea:disabled{color:var(--sb-theme-input-disabled-foreground,var(--sb-text-muted));cursor:not-allowed}.sb-textarea-shell:has(.sb-textarea:disabled){background:var(--sb-theme-input-disabled-background,var(--sb-surface-muted))}.sb-sheet__footer{border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);align-items:center;gap:16px;min-height:84px;padding:16px 20px 20px;display:flex}.sb-sheet__answer-comment,.sb-sheet__footer-spacer{flex:auto;min-width:0;margin:0}.sb-sheet__answer-comment{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:start;-webkit-line-clamp:2;-webkit-box-orient:vertical;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,.sb-button{cursor:pointer;min-height:48px;font:inherit;border:0;border-radius:999px;margin:0;transition:background-color .18s,color .18s,opacity .18s,scale .12s ease-out}.sb-next{background:var(--sb-theme-button-primary-background,#080808);width:101px;height:48px;color:var(--sb-theme-button-primary-foreground,#fff);flex:0 0 101px;place-items:center;padding:0;display:grid}.sb-next svg{width:20px;height:20px;display:block}.sb-next--acknowledging svg{animation:.36s cubic-bezier(.2,.8,.2,1) both sb-next-acknowledgement}.sb-next:hover:not(:disabled),.sb-next:focus-visible{background:var(--sb-theme-button-primary-hover-background,#080808)}.sb-next:active:not(:disabled){background:var(--sb-theme-button-primary-pressed-background,#080808);scale:.97}.sb-next:disabled,.sb-button:disabled{cursor:not-allowed}.sb-next:disabled{background:var(--sb-theme-button-primary-disabled-background,#08080873);color:var(--sb-theme-button-primary-disabled-foreground,#ffffff73)}.sb-sheet--thanks{padding:22px 20px}.sb-sheet-root--completing .sb-progress__fill{transition-duration:.5s}.sb-thanks{justify-items:center;gap:23px;display:grid}.sb-thanks__icon-shell{background:var(--sb-theme-completion-outer-background,#f0f0f0);opacity:0;width:120px;height:120px;animation:sb-completion-icon-shell .72s var(--sb-ease) .35s both;border-radius:50%;place-items:center;display:grid;position:relative;transform:translateY(46px)}.sb-thanks__icon-core{background:var(--sb-theme-completion-inner-background,#080808);width:66px;height:66px;color:var(--sb-theme-completion-glyph,#fff);animation:sb-completion-icon-core .72s var(--sb-ease) .35s both;border-radius:50%;place-items:center;display:grid;transform:scale(.72)}.sb-thanks__icon-core svg{width:35.44px;height:27.02px;display:block}.sb-thanks__copy{opacity:0;gap:8px;width:min(330px,100%);animation:.3s ease-in-out .89s both sb-completion-content-in;display:grid;transform:translateY(20px)}.sb-thanks__copy h2{max-width:313px;color:var(--sb-theme-content-heading,var(--sb-text));letter-spacing:-.6px;text-align:center;margin:0 auto;font-size:30px;font-weight:600;line-height:1.1}.sb-thanks__copy p{max-width:292px;color:var(--sb-theme-content-body,var(--sb-text-muted));text-align:center;margin:0 auto;font-size:14px;font-weight:400;line-height:1.5}.sb-thanks__actions{opacity:0;gap:10px;width:100%;animation:.3s ease-in-out .89s both sb-completion-content-in;display:flex;transform:translateY(20px)}.sb-button{flex:1 1 0;min-width:0;padding:0 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:not(:disabled),.sb-button--primary:focus-visible{background:var(--sb-theme-button-primary-hover-background,#080808)}.sb-button--secondary:hover:not(:disabled),.sb-button--secondary:focus-visible{background:var(--sb-theme-button-secondary-hover-background,#f2f2f2)}.sb-button--tertiary:hover:not(:disabled),.sb-button--tertiary:focus-visible{background:var(--sb-theme-button-tertiary-hover-background,#f2f2f2)}.sb-button--primary:active:not(:disabled){background:var(--sb-theme-button-primary-pressed-background,#080808)}.sb-button--secondary:active:not(:disabled){background:var(--sb-theme-button-secondary-pressed-background,#e2e2e2)}.sb-button--tertiary:active:not(:disabled){background:var(--sb-theme-button-tertiary-pressed-background,#e2e2e2)}.sb-button--primary:disabled{background:var(--sb-theme-button-primary-disabled-background,#08080873);color:var(--sb-theme-button-primary-disabled-foreground,#ffffff73)}.sb-button--secondary:disabled{background:var(--sb-theme-button-secondary-disabled-background,#f2f2f273);color:var(--sb-theme-button-secondary-disabled-foreground,#08080873)}.sb-button--tertiary:disabled{background:var(--sb-theme-button-tertiary-disabled-background,#f2f2f273);color:var(--sb-theme-button-tertiary-disabled-foreground,#08080873)}.sb-fab:focus-visible,.sb-next:focus-visible,.sb-button:focus-visible,.sb-choice:focus-visible,.sb-yesno:focus-visible,.sb-sheet__close:focus-visible,.sb-sheet-root__overlay:focus-visible{outline-offset:2px;outline:2px solid #6366f1bf}.sb-preview--inline{place-items:center;min-height:540px;padding:24px;display:grid;position:relative;overflow:hidden}.sb-root--inline{place-items:center;width:100%;height:100%;min-height:1px;display:grid;position:relative}.sb-root--inline .sb-safe-area-probe{position:absolute}.sb-root--inline .sb-fab{position:absolute;bottom:auto;right:auto}.sb-root--inline .sb-sheet-root,.sb-preview--inline .sb-sheet-root{z-index:auto;position:absolute}.sb-root--inline .sb-sheet,.sb-preview--inline .sb-sheet{width:min(376px,100% - 24px);max-height:calc(100% - 24px)}.sb-fab.sb-fab--preview-inline{z-index:auto;position:relative;bottom:auto;right:auto}@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-fab-timer-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes sb-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes sb-sheet-in{0%{opacity:0;transform:translate(-50%,28px)}to{opacity:1;transform:translate(-50%)}}@keyframes sb-sheet-out{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,calc(100% + 8px))}}@keyframes sb-progress-in{0%{width:0}to{width:var(--sb-progress-value,0%)}}@keyframes sb-step-in{0%{opacity:0}to{opacity:1}}@keyframes sb-sentiment-title-in{0%{opacity:0;scale:1.12}to{opacity:1;scale:1}}@keyframes sb-spark-in{0%{opacity:0;scale:.55}to{opacity:1;scale:1}}@keyframes sb-footer-comment-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-next-acknowledgement{0%,to{rotate:0deg;scale:1}39%{rotate:-14deg;scale:1.18}}@keyframes sb-footer-comment-out{0%{opacity:1}to{opacity:0}}@keyframes sb-completion-icon-shell{0%{opacity:0;transform:translateY(46px)}58%{opacity:1;transform:translateY(46px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-completion-icon-core{0%{transform:scale(.72)}58%{transform:scale(1.82)}to{transform:scale(1)}}@keyframes sb-completion-content-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.sb-root *,.sb-root :before,.sb-root :after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-delay:0s!important}.sb-sheet__answer-comment{animation:none!important}}
1
+ .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}.sb-root{--sb-surface:#fff;--sb-surface-muted:#f2f2f2;--sb-border-active:#080808b3;--sb-text:#080808;--sb-text-muted:#5c5c5c;--sb-overlay:#00000061;--sb-ease:cubic-bezier(0, .87, .39, 1);--sb-height-ease:cubic-bezier(0, .83, .363, .994);--sb-fab-motion-ease:cubic-bezier(.649439, .0577174, .124599, 1);color:var(--sb-text);font-synthesis:none;font-family:-apple-system,BlinkMacSystemFont,system-ui,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;line-height:normal}.sb-root *,.sb-root :before,.sb-root :after{box-sizing:border-box}.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;width:var(--sb-fab-expanded-width,86px);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);box-shadow:none;cursor:pointer;transform-origin:50%;will-change:scale;border-radius:999px;align-items:center;margin:0;padding:0 28px 0 14px;transition:scale 80ms ease-out;display:inline-flex;position:fixed;overflow:hidden}.sb-fab:active:not(:disabled){scale:.97}.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}.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}.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-fab__badge{z-index:1;border-radius:50%;flex:0 0 32px;width:32px;height:32px;margin-inline-end:12px;position:relative;overflow:hidden}.sb-fab__badge-image,.sb-fab__badge-art{border-radius:inherit;width:100%;height:100%;display:block}.sb-fab__badge-image{object-fit:cover}.sb-fab__badge-art{background:var(--sb-theme-fab-accent-primary,#f97316);position:relative}.sb-fab__badge-inner{background:var(--sb-theme-fab-accent-secondary,#2563eb);border-radius:50%;position:absolute;inset:17%}.sb-fab__glyph{z-index:1;border-radius:999px;display:block;position:absolute}.sb-fab__glyph--center{background:var(--sb-theme-fab-foreground,#fff);border-radius:3.52px;width:4.16px;height:11.52px;top:50%;left:50%;transform:translate(-50%,-50%)}.sb-fab__glyph--amber{background:#fac143;width:2.88px;height:6.72px;top:50%;left:50%;transform:translate(calc(-50% - 3.04px),calc(.8px - 50%))}.sb-fab__glyph--mint{background:#39c690;width:2.88px;height:5.44px;top:50%;left:50%;transform:translate(calc(3.04px - 50%),calc(-50% - .32px))}.sb-fab__glyph--rose{background:#e86398;width:2.56px;height:4.16px;top:50%;left:50%;transform:translate(calc(.96px - 50%),calc(3.68px - 50%))}.sb-fab__label{z-index:1;width:var(--sb-fab-label-width,auto);color:currentColor;text-align:start;text-overflow:clip;white-space:nowrap;flex:none;min-width:0;font-size:14px;font-weight:600;line-height:1;position:relative;overflow:hidden}.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-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-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);transform-origin:0;width:100%;height:100%;animation:sb-fab-timer-bar var(--sb-timer-duration) linear forwards;display:block}.sb-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-fab__timer-fill{transform-origin:100%}.sb-sheet-root{z-index:1100;position:fixed;inset:0}.sb-sheet-root__overlay{background:var(--sb-theme-sheet-scrim,var(--sb-overlay));cursor:pointer;border:0;width:100%;height:100%;margin:0;padding:0;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{bottom:calc(8px + env(safe-area-inset-bottom,0px));width:min(376px, calc(100% - 24px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)));max-height:calc(100% - 16px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));background:var(--sb-theme-sheet-background,var(--sb-surface));color:var(--sb-text);box-shadow:none;interpolate-size:allow-keywords;transition:height .45s var(--sb-height-ease);animation:sb-sheet-in .45s var(--sb-ease) both;overscroll-behavior:contain;border-radius:40px;position:absolute;left:50%;overflow:hidden;transform:translate(-50%)}.sb-sheet-root--exiting .sb-sheet{animation:sb-sheet-out .45s var(--sb-ease) forwards}.sb-sheet__header{height:50px;position:relative}.sb-progress{background:var(--sb-theme-sheet-progress-track,#eaeaea);border-radius:24px;width:min(216px,100% - 112px);height:6px;position:absolute;top:27px;left:50%;overflow:hidden;transform:translate(-50%)}.sb-progress__fill{width:var(--sb-progress-value,0%);border-radius:inherit;background:var(--sb-theme-sheet-progress-fill,#080808);height:100%;transition:width .45s var(--sb-ease);animation:sb-progress-in .45s var(--sb-ease) .1s both;display:block}.sb-sheet__close{background:var(--sb-theme-sheet-close-button-background,transparent);width:40px;height:40px;color:var(--sb-theme-sheet-close-button-foreground,var(--sb-text));cursor:pointer;border:0;border-radius:1000px;place-items:center;margin:0;padding:8px;display:grid;position:absolute;top:10px;right:16px}.sb-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-sheet__close{left:16px;right:auto}.sb-sheet__stage{animation:.25s ease-in-out both sb-step-in}.sb-sheet__body{flex-direction:column;display:flex}.sb-sheet__body--question{padding-bottom:16px}.sb-sheet__copy{text-align:center;justify-items:center;display:grid}.sb-sheet__body--question .sb-sheet__copy{place-items:center;height:88px;padding-inline:23px}.sb-sheet__body--question h2{color:var(--sb-theme-content-heading,var(--sb-text));text-align:center;margin:0;font-size:19px;font-weight:600;line-height:1.24}.sb-sheet__body--sentiment{padding:12px 24px 22px}.sb-sheet__body--sentiment .sb-sheet__copy{align-content:center;gap:8px;min-height:84px}.sb-sheet__body--sentiment .sb-sheet__copy--acknowledgement{min-height:70px;padding-top:6px}.sb-sheet__eyebrow{max-width:100%;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.25;display:-webkit-box;overflow:hidden}.sb-sheet__body--sentiment h2{max-width:100%;color:var(--sb-theme-content-heading,var(--sb-text));text-align:center;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0;font-size:22px;font-weight:600;line-height:1.2;animation:.28s cubic-bezier(.2,0,0,1) both sb-sentiment-title-in;display:-webkit-box;overflow:hidden}.sb-sheet__copy--acknowledgement h2{max-width:324px;font-size:29px;line-height:1.12}.sb-question{min-width:0}.sb-question--sentiment{grid-template-columns:repeat(2,80px);gap:25px;width:185px;margin:37px auto 31px;display:grid}.sb-sheet__copy--acknowledgement+.sb-question--sentiment{margin-top:35px}.sb-sentiment-control{place-items:center;width:80px;height:80px;display:grid;position:relative}.sb-yesno{z-index:1;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;margin:0;padding:0;transition:border-color .18s,background-color .18s,color .18s,scale .12s ease-out;display:grid;position:relative}.sb-yesno__icon,.sb-yesno__icon svg{width:35.5556px;height:35.5556px;display:block}.sb-yesno:hover:not(:disabled){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-yesno:active:not(:disabled){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));scale:.97}.sb-yesno--selected,.sb-yesno--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-yesno:disabled:not(.sb-yesno--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);cursor:default}.sb-spark-ring{z-index:0;opacity:0;pointer-events:none;border-radius:50%;animation:.22s cubic-bezier(.25,.46,.45,.94) forwards sb-spark-in;position:absolute;inset:-26px;scale:.55}.sb-spark-ring__dot{--sb-spark-radius:54px;width:7px;height:7px;transform:rotate(calc(var(--sb-spark-index) * 30deg)) translateY(calc(var(--sb-spark-radius) * -1));background:#dedede;border-radius:50%;margin:-3.5px;position:absolute;top:50%;left:50%}.sb-spark-ring__dot--large{--sb-spark-radius:59px;width:12px;height:12px;margin:-6px}.sb-question--choices,.sb-question--text{width:auto;margin-inline:24px}.sb-options-scroll{scrollbar-gutter:stable;overscroll-behavior:contain;max-height:320.5px;display:grid;overflow:hidden auto}.sb-options-scroll--scrolling{padding-bottom:20px}.sb-question--choices-grid .sb-options-scroll{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sb-question--choices-list .sb-options-scroll{grid-template-columns:minmax(0,1fr);gap:8px}.sb-choice{overflow-wrap:anywhere;border:1px solid var(--sb-theme-choice-default-border,#e2e2e2);background:var(--sb-theme-choice-default-background,var(--sb-surface));width:100%;min-width:0;min-height:51px;color:var(--sb-theme-choice-default-foreground,var(--sb-text));cursor:pointer;font:inherit;text-align:center;border-radius:999px;justify-content:center;align-items:center;margin:0;padding:8px;font-size:16px;font-weight:700;line-height:1.2;transition:border-color .18s,background-color .18s,color .18s,scale .12s ease-out;display:flex}.sb-choice__label{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.sb-question--choices-grid .sb-choice{-webkit-line-clamp:2;-webkit-box-orient:vertical;align-content:center;max-height:51px;display:-webkit-box;overflow:hidden}.sb-question--choices-list .sb-choice{text-align:start;border-radius:16px;justify-content:flex-start;min-height:51px;padding:16px 22px}.sb-choice:hover:not(:disabled){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-choice:active:not(:disabled){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));scale:.97}.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-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-choice--other{border-color:var(--sb-theme-choice-default-border,#e2e2e2);color:var(--sb-theme-input-placeholder,#08080866);gap:0;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-question--choices-grid .sb-choice--other{display:flex}.sb-question--text{padding-top:10px}.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%;height:155px;transition:border-color .18s,background-color .18s;overflow:hidden}.sb-textarea-shell:focus-within{border-color:var(--sb-theme-input-focused-border,var(--sb-border-active))}.sb-textarea{width:100%;height:100%;color:var(--sb-theme-input-foreground,var(--sb-text));font:inherit;resize:none;background:0 0;border:0;outline:0;margin:0;padding:17px 22px;font-size:16px;font-weight:400;line-height:1.25;display:block}.sb-textarea::placeholder{color:var(--sb-theme-input-placeholder,#08080866);opacity:1}.sb-textarea:disabled{color:var(--sb-theme-input-disabled-foreground,var(--sb-text-muted));cursor:not-allowed}.sb-textarea-shell:has(.sb-textarea:disabled){background:var(--sb-theme-input-disabled-background,var(--sb-surface-muted))}.sb-sheet__footer{border-top:1px solid var(--sb-theme-sheet-divider,#e2e2e2);align-items:center;gap:16px;min-height:84px;padding:16px 20px 20px;display:flex}.sb-sheet__answer-comment,.sb-sheet__footer-spacer{flex:auto;min-width:0;margin:0}.sb-sheet__answer-comment{color:var(--sb-theme-content-helper,var(--sb-text-muted));text-align:start;-webkit-line-clamp:2;-webkit-box-orient:vertical;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,.sb-button{cursor:pointer;min-height:48px;font:inherit;border:0;border-radius:999px;margin:0;transition:background-color .18s,color .18s,opacity .18s,scale .12s ease-out}.sb-next{background:var(--sb-theme-button-primary-background,#080808);width:101px;height:48px;color:var(--sb-theme-button-primary-foreground,#fff);flex:0 0 101px;place-items:center;padding:0;display:grid}.sb-next svg{width:20px;height:20px;display:block}.sb-next--acknowledging svg{animation:.36s cubic-bezier(.2,.8,.2,1) both sb-next-acknowledgement}.sb-next:hover:not(:disabled),.sb-next:focus-visible{background:var(--sb-theme-button-primary-hover-background,#080808)}.sb-next:active:not(:disabled){background:var(--sb-theme-button-primary-pressed-background,#080808);scale:.97}.sb-next:disabled,.sb-button:disabled{cursor:not-allowed}.sb-next:disabled{background:var(--sb-theme-button-primary-disabled-background,#08080873);color:var(--sb-theme-button-primary-disabled-foreground,#ffffff73)}.sb-sheet--thanks{padding:22px 20px}.sb-sheet-root--completing .sb-progress__fill{transition-duration:.5s}.sb-thanks{justify-items:center;gap:23px;display:grid}.sb-thanks__icon-shell{background:var(--sb-theme-completion-outer-background,#f0f0f0);opacity:0;width:120px;height:120px;animation:sb-completion-icon-shell .72s var(--sb-ease) .35s both;border-radius:50%;place-items:center;display:grid;position:relative;transform:translateY(46px)}.sb-thanks__icon-core{background:var(--sb-theme-completion-inner-background,#080808);width:66px;height:66px;color:var(--sb-theme-completion-glyph,#fff);animation:sb-completion-icon-core .72s var(--sb-ease) .35s both;border-radius:50%;place-items:center;display:grid;transform:scale(.72)}.sb-thanks__icon-core svg{width:35.44px;height:27.02px;display:block}.sb-thanks__copy{opacity:0;gap:8px;width:min(330px,100%);animation:.3s ease-in-out .89s both sb-completion-content-in;display:grid;transform:translateY(20px)}.sb-thanks__copy h2{max-width:313px;color:var(--sb-theme-content-heading,var(--sb-text));letter-spacing:-.6px;text-align:center;margin:0 auto;font-size:30px;font-weight:600;line-height:1.1}.sb-thanks__copy p{max-width:292px;color:var(--sb-theme-content-body,var(--sb-text-muted));text-align:center;margin:0 auto;font-size:14px;font-weight:400;line-height:1.5}.sb-thanks__actions{opacity:0;gap:10px;width:100%;animation:.3s ease-in-out .89s both sb-completion-content-in;display:flex;transform:translateY(20px)}.sb-button{flex:1 1 0;min-width:0;padding:0 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:not(:disabled),.sb-button--primary:focus-visible{background:var(--sb-theme-button-primary-hover-background,#080808)}.sb-button--secondary:hover:not(:disabled),.sb-button--secondary:focus-visible{background:var(--sb-theme-button-secondary-hover-background,#f2f2f2)}.sb-button--tertiary:hover:not(:disabled),.sb-button--tertiary:focus-visible{background:var(--sb-theme-button-tertiary-hover-background,#f2f2f2)}.sb-button--primary:active:not(:disabled){background:var(--sb-theme-button-primary-pressed-background,#080808)}.sb-button--secondary:active:not(:disabled){background:var(--sb-theme-button-secondary-pressed-background,#e2e2e2)}.sb-button--tertiary:active:not(:disabled){background:var(--sb-theme-button-tertiary-pressed-background,#e2e2e2)}.sb-button--primary:disabled{background:var(--sb-theme-button-primary-disabled-background,#08080873);color:var(--sb-theme-button-primary-disabled-foreground,#ffffff73)}.sb-button--secondary:disabled{background:var(--sb-theme-button-secondary-disabled-background,#f2f2f273);color:var(--sb-theme-button-secondary-disabled-foreground,#08080873)}.sb-button--tertiary:disabled{background:var(--sb-theme-button-tertiary-disabled-background,#f2f2f273);color:var(--sb-theme-button-tertiary-disabled-foreground,#08080873)}.sb-sheet h2[tabindex="-1"]:focus{outline:none}.sb-fab:focus-visible,.sb-next:focus-visible,.sb-button:focus-visible,.sb-choice:focus-visible,.sb-yesno:focus-visible,.sb-sheet__close:focus-visible,.sb-sheet-root__overlay:focus-visible{outline-offset:2px;outline:2px solid #6366f1bf}.sb-preview--inline{place-items:center;min-height:540px;padding:24px;display:grid;position:relative;overflow:hidden}.sb-root--inline{place-items:center;width:100%;height:100%;min-height:1px;display:grid;position:relative}.sb-root--inline .sb-safe-area-probe{position:absolute}.sb-root--inline .sb-fab{position:absolute;bottom:auto;right:auto}.sb-root--inline .sb-sheet-root,.sb-preview--inline .sb-sheet-root{z-index:auto;position:absolute}.sb-root--inline .sb-sheet,.sb-preview--inline .sb-sheet{width:min(376px,100% - 24px);max-height:calc(100% - 24px)}.sb-fab.sb-fab--preview-inline{z-index:auto;position:relative;bottom:auto;right:auto}@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-fab-timer-bar{0%{transform:scaleX(1)}to{transform:scaleX(0)}}@keyframes sb-overlay-in{0%{opacity:0}to{opacity:1}}@keyframes sb-overlay-out{0%{opacity:1}to{opacity:0}}@keyframes sb-sheet-in{0%{opacity:0;transform:translate(-50%,28px)}to{opacity:1;transform:translate(-50%)}}@keyframes sb-sheet-out{0%{opacity:1;transform:translate(-50%)}to{opacity:0;transform:translate(-50%,calc(100% + 8px))}}@keyframes sb-progress-in{0%{width:0}to{width:var(--sb-progress-value,0%)}}@keyframes sb-step-in{0%{opacity:0}to{opacity:1}}@keyframes sb-sentiment-title-in{0%{opacity:0;scale:1.12}to{opacity:1;scale:1}}@keyframes sb-spark-in{0%{opacity:0;scale:.55}to{opacity:1;scale:1}}@keyframes sb-footer-comment-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-next-acknowledgement{0%,to{rotate:0deg;scale:1}39%{rotate:-14deg;scale:1.18}}@keyframes sb-footer-comment-out{0%{opacity:1}to{opacity:0}}@keyframes sb-completion-icon-shell{0%{opacity:0;transform:translateY(46px)}58%{opacity:1;transform:translateY(46px)}to{opacity:1;transform:translateY(0)}}@keyframes sb-completion-icon-core{0%{transform:scale(.72)}58%{transform:scale(1.82)}to{transform:scale(1)}}@keyframes sb-completion-content-in{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (prefers-reduced-motion:reduce){.sb-root *,.sb-root :before,.sb-root :after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-delay:0s!important}.sb-sheet__answer-comment{animation:none!important}}
2
2
  /*$vite$:1*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sidebandai/sideband-react",
3
- "version": "1.4.1-rc.2",
3
+ "version": "1.4.4",
4
4
  "description": "React SDK for Sideband client sync surveys and prompts.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -39,7 +39,7 @@
39
39
  "react-dom": "^19.0.0"
40
40
  },
41
41
  "dependencies": {
42
- "@sidebandai/sideband-core": "1.4.1-rc.2"
42
+ "@sidebandai/sideband-core": "1.4.4"
43
43
  },
44
44
  "scripts": {
45
45
  "build": "vite build --config ../../vite.react.config.ts && tsc -p tsconfig.lib.json && node ../../scripts/prepare-react-package.mjs",