@leavepulse/ui 0.56.0 → 0.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/dist/chunks/{ContextMenuItems-BtKU7074.js → ContextMenuItems-BY5sTVQF.js} +1 -1
  2. package/dist/chunks/{LayoutCanvas-BkaGXTjx.js → LayoutCanvas-BcGLJVBq.js} +1 -1
  3. package/dist/chunks/{LayoutNode-B3_9E1Xa.js → LayoutNode-BkBn6dvM.js} +1 -1
  4. package/dist/chunks/{LpActionBar-C3hkVsFz.js → LpActionBar-DCN-_pZP.js} +2 -2
  5. package/dist/chunks/{LpAddressInput-NUHmplCd.js → LpAddressInput-Dio6Sqed.js} +7 -7
  6. package/dist/chunks/{LpAlert-B6ilrM7T.js → LpAlert-CXMn1GYE.js} +1 -1
  7. package/dist/chunks/{LpAppShell-BEGjSqFl.js → LpAppShell-Be6T96td.js} +3 -3
  8. package/dist/chunks/{LpAutocomplete-C8IgSMsi.js → LpAutocomplete-hJ_6CHlh.js} +1 -1
  9. package/dist/chunks/{LpAvatar-LTvy0OkE.js → LpAvatar-BxNs23Xu.js} +2 -2
  10. package/dist/chunks/{LpBreadcrumbs-D4TsoFju.js → LpBreadcrumbs-BLzOEgAF.js} +1 -1
  11. package/dist/chunks/{LpButton-BdfZFNqi.js → LpButton-vhlwmpBy.js} +1 -1
  12. package/dist/chunks/{LpCalendar-DrA2McTU.js → LpCalendar-BLoE8Qm7.js} +1 -1
  13. package/dist/chunks/{LpCard-DbjO5yaF.js → LpCard-DhR7u0d8.js} +1 -1
  14. package/dist/chunks/{LpCheckbox-DvVYeOD-.js → LpCheckbox-B_C8sOoT.js} +1 -1
  15. package/dist/chunks/{LpCodeBlock-ca7ANFyW.js → LpCodeBlock-CXsqJwDy.js} +1 -1
  16. package/dist/chunks/{LpColorPicker-D1sQqtXS.js → LpColorPicker-DQ88niXq.js} +2 -2
  17. package/dist/chunks/{LpConfirmDialog-CrbUZgJE.js → LpConfirmDialog-DxlSdjmk.js} +3 -3
  18. package/dist/chunks/{LpConfirmHost-BgMIV8r9.js → LpConfirmHost-BcrmTNu_.js} +1 -1
  19. package/dist/chunks/{LpContextMenu-EF_90u3g.js → LpContextMenu-B1NGfpp1.js} +2 -2
  20. package/dist/chunks/{LpDatePicker-BrdFtSTy.js → LpDatePicker-B-VMHMgy.js} +3 -3
  21. package/dist/chunks/{LpDateRangePicker-Drd7EbIz.js → LpDateRangePicker-B68KPKPl.js} +6 -15
  22. package/dist/chunks/{LpDisclosure-Cc23-JOT.js → LpDisclosure-Ct-VBHxt.js} +1 -1
  23. package/dist/chunks/{LpDrawer-CBFVD624.js → LpDrawer-DSknigxH.js} +5 -7
  24. package/dist/chunks/{LpDropdownMenu-DrpJJBp0.js → LpDropdownMenu-C7oHVlKY.js} +2 -2
  25. package/dist/chunks/{LpEmptyState-BJbZXC8D.js → LpEmptyState-CBwwkkdA.js} +1 -1
  26. package/dist/chunks/{LpFieldNotice-wtieLUTj.js → LpFieldNotice-9hH4ITZa.js} +1 -1
  27. package/dist/chunks/{LpFileTree-3E4w4Rjr.js → LpFileTree-CMA0_rsB.js} +2 -2
  28. package/dist/chunks/{LpFileTreeNode-B4uB8Ks_.js → LpFileTreeNode-B4T258hF.js} +3 -3
  29. package/dist/chunks/{LpFormField-CtVYj6tO.js → LpFormField-BpQ6WJPe.js} +1 -1
  30. package/dist/chunks/LpHintLayer-B5-6FyEf.js +154 -0
  31. package/dist/chunks/LpHints-BqoZXHZk.js +109 -0
  32. package/dist/chunks/{LpIcon-DYtaid0K.js → LpIcon-B5guGKrW.js} +1 -1
  33. package/dist/chunks/{LpInput-D-YGQbEv.js → LpInput-WvyP02ID.js} +2 -2
  34. package/dist/chunks/{LpLightbox-EVXzAq62.js → LpLightbox-Dq-e36uT.js} +1 -1
  35. package/dist/chunks/{LpLogViewer-BfgtXVKm.js → LpLogViewer-DwiYE32z.js} +2 -2
  36. package/dist/chunks/{LpMapPicker-Cc84LaM3.js → LpMapPicker-BH5csaBt.js} +1 -1
  37. package/dist/chunks/{LpMediaGallery-BnlkN_1f.js → LpMediaGallery-B1kDypJ-.js} +2 -2
  38. package/dist/chunks/{LpModal-JNa3B_Lr.js → LpModal-BxYssnXg.js} +1 -1
  39. package/dist/chunks/{LpModalNav-DXBilXr0.js → LpModalNav-Bn2ws64b.js} +4 -4
  40. package/dist/chunks/{LpNotificationBell-DEL-RoHS.js → LpNotificationBell-DJfs4JjQ.js} +4 -4
  41. package/dist/chunks/{LpNumberField-B77O-z28.js → LpNumberField-CJPjmoDz.js} +1 -1
  42. package/dist/chunks/{LpPagination-BcDlo3r_.js → LpPagination-DehAaJLY.js} +1 -1
  43. package/dist/chunks/{LpPasswordInput-eKzQhbQP.js → LpPasswordInput-Bg5uTZbx.js} +2 -2
  44. package/dist/chunks/{LpPhoneInput-BCbrrhgE.js → LpPhoneInput-DStwcbnQ.js} +2 -2
  45. package/dist/chunks/{LpPie-B7ti5qCH.js → LpPie-DeTkbbOK.js} +3 -3
  46. package/dist/chunks/{LpRangeCalendar-DZuaRV0W.js → LpRangeCalendar-D5sDID9W.js} +1 -1
  47. package/dist/chunks/{LpSection-tKEH0jYf.js → LpSection-B19VPYmr.js} +1 -1
  48. package/dist/chunks/{LpSegmented-C09EEam2.js → LpSegmented-D3Eam8sa.js} +1 -1
  49. package/dist/chunks/{LpSelect-DNIL6MB9.js → LpSelect-DynjWK1A.js} +1 -1
  50. package/dist/chunks/{LpSidebar-C2oolgwy.js → LpSidebar-CshW0fqC.js} +3 -3
  51. package/dist/chunks/{LpSidebarNav-C9dHu-2b.js → LpSidebarNav-C9b3i9G2.js} +2 -2
  52. package/dist/chunks/{LpStat-B-7udBRP.js → LpStat-BS2TEXYK.js} +1 -1
  53. package/dist/chunks/{LpStepper-C7XiVKZj.js → LpStepper-BSglWF45.js} +1 -1
  54. package/dist/chunks/{LpTableFilter-CrW7_Rj4.js → LpTableFilter-CwHXVxJt.js} +2 -2
  55. package/dist/chunks/{LpTableOfContents-BUcAfGPQ.js → LpTableOfContents-DYuqkByy.js} +2 -8
  56. package/dist/chunks/{LpTabs-BMSBB78h.js → LpTabs-BBGRHY38.js} +1 -1
  57. package/dist/chunks/{LpTagsInput-D1SuqbhB.js → LpTagsInput-CHbQoAAA.js} +3 -3
  58. package/dist/chunks/{LpTextarea-uuScWo6-.js → LpTextarea-Bz2IWhTH.js} +1 -1
  59. package/dist/chunks/{LpThemeSwitcher-Fz85BCRS.js → LpThemeSwitcher-B_qhSl7q.js} +2 -2
  60. package/dist/chunks/{LpTimeField-Cqe7fXnh.js → LpTimeField-DvGXgdES.js} +1 -1
  61. package/dist/chunks/{LpToaster-DTtWuKvq.js → LpToaster-Bo9Q4QBP.js} +1 -1
  62. package/dist/chunks/{LpTooltip-CXVKcOXT.js → LpTooltip-suFCM34F.js} +2 -2
  63. package/dist/chunks/LpTour-D7m9ZxNk.js +334 -0
  64. package/dist/chunks/{LpUptimeBar-ugcv25xj.js → LpUptimeBar-B4ltCfno.js} +1 -1
  65. package/dist/chunks/{MenuTitle-J3ZDYjpV.js → MenuTitle-DQP6hc2N.js} +1 -1
  66. package/dist/chunks/TourCard-DCHOjr6e.js +100 -0
  67. package/dist/chunks/icons-QqBscG5I.js +43 -0
  68. package/dist/component-names.d.ts +1 -1
  69. package/dist/components/ContextMenuItems.vue.js +1 -1
  70. package/dist/components/LayoutCanvas.vue.js +1 -1
  71. package/dist/components/LayoutNode.vue.js +1 -1
  72. package/dist/components/LpActionBar.vue.js +1 -1
  73. package/dist/components/LpAddressInput.vue.js +1 -1
  74. package/dist/components/LpAlert.vue.js +1 -1
  75. package/dist/components/LpAppShell.vue.js +1 -1
  76. package/dist/components/LpAutocomplete.vue.js +1 -1
  77. package/dist/components/LpAvatar.vue.js +1 -1
  78. package/dist/components/LpBreadcrumbs.vue.js +1 -1
  79. package/dist/components/LpButton.vue.js +1 -1
  80. package/dist/components/LpCalendar.vue.js +1 -1
  81. package/dist/components/LpCard.vue.js +1 -1
  82. package/dist/components/LpChart.vue.js +2 -2
  83. package/dist/components/LpCheckbox.vue.js +1 -1
  84. package/dist/components/LpCodeBlock.vue.js +1 -1
  85. package/dist/components/LpColorPicker.vue.js +1 -1
  86. package/dist/components/LpCommandPalette.vue.js +2 -2
  87. package/dist/components/LpConfirmDialog.vue.js +1 -1
  88. package/dist/components/LpConfirmHost.vue.js +1 -1
  89. package/dist/components/LpContextMenu.vue.js +1 -1
  90. package/dist/components/LpDatePicker.vue.js +1 -1
  91. package/dist/components/LpDateRangePicker.vue.js +1 -1
  92. package/dist/components/LpDisclosure.vue.js +1 -1
  93. package/dist/components/LpDrawer.vue.js +1 -1
  94. package/dist/components/LpDropdownMenu.vue.js +1 -1
  95. package/dist/components/LpDropzone.vue.js +1 -1
  96. package/dist/components/LpEmptyState.vue.js +1 -1
  97. package/dist/components/LpFieldNotice.vue.js +1 -1
  98. package/dist/components/LpFileTree.vue.js +1 -1
  99. package/dist/components/LpFileTreeNode.vue.js +1 -1
  100. package/dist/components/LpFormField.vue.js +1 -1
  101. package/dist/components/LpHintLayer.vue.d.ts +33 -0
  102. package/dist/components/LpHintLayer.vue.js +4 -0
  103. package/dist/components/LpHints.vue.d.ts +20 -0
  104. package/dist/components/LpHints.vue.js +4 -0
  105. package/dist/components/LpIcon.vue.js +1 -1
  106. package/dist/components/LpImageEditor.vue.js +2 -2
  107. package/dist/components/LpInput.vue.js +1 -1
  108. package/dist/components/LpLightbox.vue.js +1 -1
  109. package/dist/components/LpLogViewer.vue.js +1 -1
  110. package/dist/components/LpMapPicker.vue.js +1 -1
  111. package/dist/components/LpMediaGallery.vue.js +1 -1
  112. package/dist/components/LpModal.vue.js +1 -1
  113. package/dist/components/LpModalNav.vue.js +1 -1
  114. package/dist/components/LpNotificationBell.vue.js +1 -1
  115. package/dist/components/LpNumberField.vue.js +1 -1
  116. package/dist/components/LpPagination.vue.js +1 -1
  117. package/dist/components/LpPaletteFacts.vue.js +1 -1
  118. package/dist/components/LpPaletteHeader.vue.js +2 -2
  119. package/dist/components/LpPasswordInput.vue.js +1 -1
  120. package/dist/components/LpPhoneInput.vue.js +1 -1
  121. package/dist/components/LpPie.vue.js +1 -1
  122. package/dist/components/LpRangeCalendar.vue.js +1 -1
  123. package/dist/components/LpSection.vue.js +1 -1
  124. package/dist/components/LpSegmented.vue.js +1 -1
  125. package/dist/components/LpSelect.vue.js +1 -1
  126. package/dist/components/LpShortcutsDialog.vue.js +1 -1
  127. package/dist/components/LpSidebar.vue.js +1 -1
  128. package/dist/components/LpSidebarNav.vue.js +1 -1
  129. package/dist/components/LpStat.vue.js +1 -1
  130. package/dist/components/LpStepper.vue.js +1 -1
  131. package/dist/components/LpTable.vue.js +6 -6
  132. package/dist/components/LpTableFilter.vue.js +1 -1
  133. package/dist/components/LpTableOfContents.vue.js +1 -1
  134. package/dist/components/LpTabs.vue.js +1 -1
  135. package/dist/components/LpTagsInput.vue.js +1 -1
  136. package/dist/components/LpTextarea.vue.js +1 -1
  137. package/dist/components/LpThemeSwitcher.vue.js +1 -1
  138. package/dist/components/LpTimeField.vue.js +1 -1
  139. package/dist/components/LpToaster.vue.js +1 -1
  140. package/dist/components/LpTooltip.vue.js +1 -1
  141. package/dist/components/LpTour.vue.d.ts +98 -0
  142. package/dist/components/LpTour.vue.js +4 -0
  143. package/dist/components/LpUptimeBar.vue.js +1 -1
  144. package/dist/components/MenuTitle.vue.js +1 -1
  145. package/dist/components/TourCard.vue.d.ts +28 -0
  146. package/dist/components/TourCard.vue.js +4 -0
  147. package/dist/components/tour.d.ts +21 -0
  148. package/dist/components/tour.js +38 -0
  149. package/dist/composables/scroll.d.ts +17 -0
  150. package/dist/composables/scroll.js +29 -0
  151. package/dist/composables/useGamepadNav.js +2 -7
  152. package/dist/composables/useHintSystem.d.ts +195 -0
  153. package/dist/composables/useHintSystem.js +334 -0
  154. package/dist/composables/useHints.d.ts +18 -0
  155. package/dist/composables/useHints.js +120 -0
  156. package/dist/composables/useMediaQuery.d.ts +2 -0
  157. package/dist/composables/useMediaQuery.js +18 -0
  158. package/dist/composables/usePaintSelect.js +1 -7
  159. package/dist/icons-all.js +1 -1
  160. package/dist/index.d.ts +13 -0
  161. package/dist/index.js +89 -64
  162. package/package.json +1 -1
  163. package/src/component-names.ts +3 -0
  164. package/src/components/LpDateRangePicker.vue +3 -12
  165. package/src/components/LpDrawer.vue +4 -7
  166. package/src/components/LpHintLayer.vue +148 -0
  167. package/src/components/LpHints.vue +116 -0
  168. package/src/components/LpTableOfContents.vue +2 -14
  169. package/src/components/LpTooltip.vue +2 -4
  170. package/src/components/LpTour.vue +358 -0
  171. package/src/components/TourCard.vue +41 -0
  172. package/src/components/tour.ts +57 -0
  173. package/src/composables/scroll.ts +54 -0
  174. package/src/composables/useGamepadNav.ts +2 -7
  175. package/src/composables/useHintSystem.ts +512 -0
  176. package/src/composables/useHints.ts +151 -0
  177. package/src/composables/useMediaQuery.ts +20 -0
  178. package/src/composables/usePaintSelect.ts +1 -8
  179. package/src/index.ts +27 -0
  180. package/src/kit-icons.ts +1 -1
  181. package/src/tokens/tokens.css +1 -0
  182. package/dist/chunks/icons-CkA0njzm.js +0 -43
@@ -0,0 +1,109 @@
1
+ import { defineComponent, ref, onErrorCaptured, onMounted, onBeforeUnmount, computed, unref, watch, openBlock, createElementBlock, Fragment, createVNode, createCommentVNode } from "vue";
2
+ import { provideHintSystem } from "../composables/useHintSystem.js";
3
+ import { useLabels } from "../composables/useLpConfig.js";
4
+ import { _ as _sfc_main$3 } from "./LpActionBar-DCN-_pZP.js";
5
+ import { _ as _sfc_main$2 } from "./LpHintLayer-B5-6FyEf.js";
6
+ import { _ as _sfc_main$1 } from "./LpTour-D7m9ZxNk.js";
7
+ const _sfc_main = /* @__PURE__ */ defineComponent({
8
+ __name: "LpHints",
9
+ props: {
10
+ system: {},
11
+ labels: {}
12
+ },
13
+ setup(__props) {
14
+ const props = __props;
15
+ const DEFAULT_LABELS = {
16
+ tourTitle: "New to {page}?",
17
+ tourText: "A one-minute look at what you can do here.",
18
+ assignedTitle: "You were asked to look at {page}",
19
+ assignedText: "A short tour of this page, about a minute.",
20
+ newsTitle: "What changed: {page}",
21
+ show: "Show me",
22
+ notNow: "Not now",
23
+ never: "Don't offer again",
24
+ gotIt: "Got it",
25
+ noThanks: "No thanks"
26
+ };
27
+ const labels = useLabels("hints", DEFAULT_LABELS, () => props.labels);
28
+ provideHintSystem(props.system);
29
+ const broken = ref(false);
30
+ onErrorCaptured((error) => {
31
+ if (!broken.value) console.warn("[LpHints] disabled after an error:", error);
32
+ broken.value = true;
33
+ props.system.stop();
34
+ return false;
35
+ });
36
+ onMounted(() => {
37
+ try {
38
+ props.system.start();
39
+ if (!props.system.state.loaded) void props.system.load();
40
+ } catch (error) {
41
+ broken.value = true;
42
+ console.warn("[LpHints] disabled after an error:", error);
43
+ }
44
+ });
45
+ onBeforeUnmount(() => props.system.stop());
46
+ const state = props.system.state;
47
+ const fresh = computed(() => unref(props.system.fresh));
48
+ const notes = computed(() => unref(props.system.notes));
49
+ watch(() => [state.tour.open, state.tour.step], ([open, step]) => open && props.system.tourShown(step));
50
+ const offer = computed(() => state.offer);
51
+ const page = computed(() => offer.value ? props.system.pageTitle(offer.value.page) : "");
52
+ const fill = (text) => text.replace("{page}", page.value);
53
+ const title = computed(() => {
54
+ const o = offer.value;
55
+ if (!o) return "";
56
+ if (o.kind === "nudge") return notes.value[o.nudge.feature]?.title ?? "";
57
+ if (o.kind === "news") return fill(labels.value.newsTitle);
58
+ return fill(o.kind === "assigned" ? labels.value.assignedTitle : labels.value.tourTitle);
59
+ });
60
+ const description = computed(() => {
61
+ const o = offer.value;
62
+ if (!o) return "";
63
+ if (o.kind === "nudge") return o.nudge.text;
64
+ if (o.kind === "news") return o.items.map((n) => n.text).join(" ");
65
+ return o.kind === "assigned" ? labels.value.assignedText : labels.value.tourText;
66
+ });
67
+ const actions = computed(() => {
68
+ const o = offer.value;
69
+ if (!o) return [];
70
+ const answer = (choice) => () => props.system.answer(choice);
71
+ const show = { label: labels.value.show, icon: "lucide:sparkles", onClick: answer("show") };
72
+ if (o.kind === "nudge") return [{ label: labels.value.noThanks, variant: "ghost", onClick: answer("never") }, show];
73
+ if (o.kind === "news") return [{ label: labels.value.gotIt, variant: "ghost", onClick: answer("later") }, show];
74
+ return [
75
+ ...o.kind === "tour" ? [{ label: labels.value.never, variant: "ghost", onClick: answer("never") }] : [],
76
+ { label: labels.value.notNow, variant: "ghost", onClick: answer("later") },
77
+ show
78
+ ];
79
+ });
80
+ return (_ctx, _cache) => {
81
+ return !broken.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
82
+ createVNode(_sfc_main$1, {
83
+ open: unref(state).tour.open,
84
+ "onUpdate:open": _cache[0] || (_cache[0] = ($event) => unref(state).tour.open = $event),
85
+ step: unref(state).tour.step,
86
+ "onUpdate:step": _cache[1] || (_cache[1] = ($event) => unref(state).tour.step = $event),
87
+ steps: unref(state).tour.steps,
88
+ onFinish: _cache[2] || (_cache[2] = ($event) => __props.system.tourEnded(true)),
89
+ onDismiss: _cache[3] || (_cache[3] = ($event) => __props.system.tourEnded(false))
90
+ }, null, 8, ["open", "step", "steps"]),
91
+ createVNode(_sfc_main$2, {
92
+ fresh: fresh.value,
93
+ notes: notes.value,
94
+ onRead: __props.system.readFresh
95
+ }, null, 8, ["fresh", "notes", "onRead"]),
96
+ createVNode(_sfc_main$3, {
97
+ open: !!offer.value,
98
+ title: title.value,
99
+ description: description.value,
100
+ icon: offer.value?.kind === "news" ? "lucide:gift" : "lucide:compass",
101
+ actions: actions.value
102
+ }, null, 8, ["open", "title", "description", "icon", "actions"])
103
+ ], 64)) : createCommentVNode("", true);
104
+ };
105
+ }
106
+ });
107
+ export {
108
+ _sfc_main as _
109
+ };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, computed, watchEffect, openBlock, createElementBlock, createBlock, unref } from "vue";
2
2
  import { getIcon, Icon } from "@iconify/vue";
3
- import { i as iconsVersion, r as requestIcon } from "./icons-CkA0njzm.js";
3
+ import { i as iconsVersion, r as requestIcon } from "./icons-QqBscG5I.js";
4
4
  const _hoisted_1 = ["width", "height", "viewBox", "innerHTML"];
5
5
  const _hoisted_2 = ["width", "height"];
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -4,8 +4,8 @@ import { useFieldControl } from "../composables/useField.js";
4
4
  import { useInputFilter } from "../composables/useInputFilter.js";
5
5
  import { useInputMask, DEFAULT_MASK_TOKENS } from "../composables/useInputMask.js";
6
6
  import { mergeClass } from "../composables/useMergedClass.js";
7
- import { _ as _sfc_main$1 } from "./LpFormField-CtVYj6tO.js";
8
- import { _ as _sfc_main$2 } from "./LpIcon-DYtaid0K.js";
7
+ import { _ as _sfc_main$1 } from "./LpFormField-BpQ6WJPe.js";
8
+ import { _ as _sfc_main$2 } from "./LpIcon-B5guGKrW.js";
9
9
  const _hoisted_1 = {
10
10
  key: 0,
11
11
  class: "flex shrink-0 items-center text-muted"
@@ -3,7 +3,7 @@ import { DialogRoot, DialogPortal, DialogOverlay, DialogContent, DialogTitle, Di
3
3
  import { useLabels } from "../composables/useLpConfig.js";
4
4
  import { useZoomPan } from "../composables/useZoomPan.js";
5
5
  import { fileNameOf } from "../components/lightbox.js";
6
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
6
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
7
7
  import { useModalLayer } from "../components/modalDepth.js";
8
8
  const _hoisted_1 = { class: "flex shrink-0 items-center gap-1 p-3 text-sm text-white/70 [--chrome-from:-8px] animate-[lightbox-chrome-in_var(--duration-medium)_var(--ease-emphasized)_60ms_both] motion-reduce:animate-none" };
9
9
  const _hoisted_2 = {
@@ -2,8 +2,8 @@ import { defineComponent, useModel, computed, ref, shallowRef, onMounted, onBefo
2
2
  import { prefersReducedMotion } from "../composables/easing.js";
3
3
  import { useClipboard } from "../composables/useClipboard.js";
4
4
  import { useHotkeys } from "../composables/useHotkeys.js";
5
- import { _ as _sfc_main$3 } from "./LpContextMenu-EF_90u3g.js";
6
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
5
+ import { _ as _sfc_main$3 } from "./LpContextMenu-B1NGfpp1.js";
6
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
7
7
  import { _ as _sfc_main$2 } from "./LpScrollArea-Hz3-JWUG.js";
8
8
  import { useMergedAttrs } from "../composables/useMergedClass.js";
9
9
  import { useLabels } from "../composables/useLpConfig.js";
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, ref, watch, onMounted, onBeforeUnmount, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, Fragment, renderList, normalizeStyle, createVNode, createCommentVNode, createBlock, toDisplayString } from "vue";
2
2
  import { prefersReducedMotion } from "../composables/easing.js";
3
3
  import { OSM_TILES, project, tileUrl, unproject } from "../components/address.js";
4
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
4
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
5
5
  import { useMergedAttrs } from "../composables/useMergedClass.js";
6
6
  import { useLabels } from "../composables/useLpConfig.js";
7
7
  const _hoisted_1 = ["tabindex", "aria-label"];
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, computed, openBlock, createElementBlock, renderSlot, mergeProps, unref, Fragment, renderList, normalizeClass, createElementVNode, toDisplayString, createVNode, createCommentVNode, createBlock } from "vue";
2
2
  import { useMergedAttrs } from "../composables/useMergedClass.js";
3
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
4
- import { _ as _sfc_main$2 } from "./LpLightbox-EVXzAq62.js";
3
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
4
+ import { _ as _sfc_main$2 } from "./LpLightbox-Dq-e36uT.js";
5
5
  const _hoisted_1 = { key: 0 };
6
6
  const _hoisted_2 = ["aria-label"];
7
7
  const _hoisted_3 = ["aria-label", "onClick"];
@@ -5,7 +5,7 @@ import { useLabels } from "../composables/useLpConfig.js";
5
5
  import { useShift } from "../composables/useShift.js";
6
6
  import { useModalLayer } from "../components/modalDepth.js";
7
7
  import { CLOSE_ICON } from "../components/dropdown.js";
8
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
8
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
9
9
  import { _ as _sfc_main$2 } from "./LpScrollArea-Hz3-JWUG.js";
10
10
  const _hoisted_1 = {
11
11
  key: 0,
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, computed, ref, openBlock, createBlock, createSlots, withCtx, renderSlot, createElementVNode, normalizeClass, createVNode, createCommentVNode, createTextVNode, toDisplayString } from "vue";
2
2
  import { useGlass } from "../composables/useGlass.js";
3
3
  import { useLabels } from "../composables/useLpConfig.js";
4
- import { _ as _sfc_main$2 } from "./LpButton-BdfZFNqi.js";
5
- import { _ as _sfc_main$3 } from "./LpIcon-DYtaid0K.js";
6
- import { _ as _sfc_main$1 } from "./LpModal-JNa3B_Lr.js";
7
- import { _ as _sfc_main$4 } from "./LpSidebar-C2oolgwy.js";
4
+ import { _ as _sfc_main$2 } from "./LpButton-vhlwmpBy.js";
5
+ import { _ as _sfc_main$3 } from "./LpIcon-B5guGKrW.js";
6
+ import { _ as _sfc_main$1 } from "./LpModal-BxYssnXg.js";
7
+ import { _ as _sfc_main$4 } from "./LpSidebar-CshW0fqC.js";
8
8
  const _hoisted_1 = { class: "flex items-center gap-2" };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "LpModalNav",
@@ -1,10 +1,10 @@
1
1
  import { defineComponent, computed, useModel, getCurrentInstance, ref, onMounted, onBeforeUnmount, openBlock, createBlock, withCtx, createElementVNode, toDisplayString, createElementBlock, createCommentVNode, createVNode, Fragment, renderList, resolveDynamicComponent, normalizeClass, Transition, mergeModels } from "vue";
2
2
  import { useLabels } from "../composables/useLpConfig.js";
3
3
  import { _ as _sfc_main$8 } from "./LpBadge-Fe0D1bYx.js";
4
- import { _ as _sfc_main$7 } from "./LpButton-BdfZFNqi.js";
5
- import { _ as _sfc_main$5 } from "./LpContextMenu-EF_90u3g.js";
6
- import { _ as _sfc_main$3 } from "./LpEmptyState-BJbZXC8D.js";
7
- import { _ as _sfc_main$6 } from "./LpIcon-DYtaid0K.js";
4
+ import { _ as _sfc_main$7 } from "./LpButton-vhlwmpBy.js";
5
+ import { _ as _sfc_main$5 } from "./LpContextMenu-B1NGfpp1.js";
6
+ import { _ as _sfc_main$3 } from "./LpEmptyState-CBwwkkdA.js";
7
+ import { _ as _sfc_main$6 } from "./LpIcon-B5guGKrW.js";
8
8
  import { _ as _sfc_main$1 } from "./LpPopover-DCKeqiVn.js";
9
9
  import { _ as _sfc_main$9 } from "./LpRollingText-DB7upf-5.js";
10
10
  import { _ as _sfc_main$4 } from "./LpScrollArea-Hz3-JWUG.js";
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, useId, computed, openBlock, createBlock, unref, mergeProps, withCtx, createVNode, createElementBlock, toDisplayString, createCommentVNode } from "vue";
2
2
  import { NumberFieldRoot, NumberFieldDecrement, NumberFieldInput, NumberFieldIncrement } from "reka-ui";
3
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
3
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
4
4
  import { useFieldControl } from "../composables/useField.js";
5
5
  import { useMergedAttrs } from "../composables/useMergedClass.js";
6
6
  const _hoisted_1 = ["id"];
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, useId, openBlock, createElementBlock, mergeProps, unref, createElementVNode, normalizeClass, createVNode, Fragment, renderList, createBlock, createCommentVNode, toDisplayString } from "vue";
2
2
  import { Motion } from "motion-v";
3
3
  import { usePillTransition } from "../composables/usePillTransition.js";
4
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
4
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
5
5
  import { useMergedAttrs } from "../composables/useMergedClass.js";
6
6
  import { useLabels } from "../composables/useLpConfig.js";
7
7
  const _hoisted_1 = ["aria-label"];
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, unref, createVNode, renderSlot } from "vue";
2
2
  import { useLabels } from "../composables/useLpConfig.js";
3
- import { _ as _sfc_main$2 } from "./LpIcon-DYtaid0K.js";
4
- import { _ as _sfc_main$1 } from "./LpInput-D-YGQbEv.js";
3
+ import { _ as _sfc_main$2 } from "./LpIcon-B5guGKrW.js";
4
+ import { _ as _sfc_main$1 } from "./LpInput-WvyP02ID.js";
5
5
  const _hoisted_1 = ["aria-label"];
6
6
  const __default__ = { inheritAttrs: false };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -6,8 +6,8 @@ import { useInputFilter } from "../composables/useInputFilter.js";
6
6
  import { useLabels } from "../composables/useLpConfig.js";
7
7
  import { matchCountryByValue, filterCountries, loadCountries, flagEmoji } from "../components/countries.js";
8
8
  import { POPOVER_PANEL, OPTION_ITEM } from "../components/dropdown.js";
9
- import { _ as _sfc_main$2 } from "./LpFieldNotice-wtieLUTj.js";
10
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
9
+ import { _ as _sfc_main$2 } from "./LpFieldNotice-9hH4ITZa.js";
10
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
11
11
  import { loadPhoneLib, formatPhone, loadPhoneExamples, digitsBefore, caretAfterDigits, digitsOf } from "../components/phone.js";
12
12
  import { useMergedAttrs } from "../composables/useMergedClass.js";
13
13
  const _hoisted_1 = { class: "text-base leading-none" };
@@ -2,12 +2,12 @@ import { defineComponent, computed, ref, watch, onBeforeUnmount, openBlock, crea
2
2
  import { prefersReducedMotion, easeTravel } from "../composables/easing.js";
3
3
  import { useReveal } from "../composables/useReveal.js";
4
4
  import { resolveSlices, arcPath, calloutLabels, formatTick } from "../components/chart.js";
5
- import { _ as _sfc_main$2 } from "./LpContextMenu-EF_90u3g.js";
6
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
5
+ import { _ as _sfc_main$2 } from "./LpContextMenu-B1NGfpp1.js";
6
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
7
7
  import { _ as _sfc_main$4 } from "./LpNumberFlow-z4WPZcZu.js";
8
8
  import { _ as _sfc_main$5 } from "./LpRollingText-DB7upf-5.js";
9
9
  import { _ as _sfc_main$6 } from "./LpShift-DXNsauQZ.js";
10
- import { _ as _sfc_main$3 } from "./LpTooltip-CXVKcOXT.js";
10
+ import { _ as _sfc_main$3 } from "./LpTooltip-suFCM34F.js";
11
11
  import { useMergedAttrs } from "../composables/useMergedClass.js";
12
12
  import { useLabels } from "../composables/useLpConfig.js";
13
13
  const _hoisted_1 = {
@@ -4,7 +4,7 @@ import { RangeCalendarRoot, RangeCalendarHeader, RangeCalendarPrev, RangeCalenda
4
4
  import { useLabels } from "../composables/useLpConfig.js";
5
5
  import { useMergedAttrs } from "../composables/useMergedClass.js";
6
6
  import { normalizeRange, parseIsoDay, reshapeRange } from "../components/dateRange.js";
7
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
7
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
8
8
  const _hoisted_1 = { class: "flex gap-4" };
9
9
  const __default__ = { inheritAttrs: false };
10
10
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, useSlots, computed, openBlock, createElementBlock, normalizeClass, createElementVNode, createBlock, createCommentVNode, resolveDynamicComponent, withCtx, renderSlot, createTextVNode, toDisplayString } from "vue";
2
2
  import { tv } from "tailwind-variants";
3
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
3
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
4
4
  const _hoisted_1 = { class: "min-w-0 flex-1 break-words" };
5
5
  const _hoisted_2 = { class: "flex flex-wrap items-center gap-2" };
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -4,7 +4,7 @@ import { ToggleGroupRoot, ToggleGroupItem } from "reka-ui";
4
4
  import { useFieldControl } from "../composables/useField.js";
5
5
  import { useMergedAttrs } from "../composables/useMergedClass.js";
6
6
  import { usePillTransition } from "../composables/usePillTransition.js";
7
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
7
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
8
8
  const _hoisted_1 = {
9
9
  key: 2,
10
10
  class: "relative z-10"
@@ -3,7 +3,7 @@ import { ComboboxRoot, ComboboxAnchor, ComboboxTrigger, ComboboxPortal, Combobox
3
3
  import { useFieldControl } from "../composables/useField.js";
4
4
  import { useLabels } from "../composables/useLpConfig.js";
5
5
  import { POPOVER_PANEL, OPTION_ITEM } from "../components/dropdown.js";
6
- import { _ as _sfc_main$2 } from "./LpIcon-DYtaid0K.js";
6
+ import { _ as _sfc_main$2 } from "./LpIcon-B5guGKrW.js";
7
7
  import { _ as _sfc_main$1 } from "./LpRollingText-DB7upf-5.js";
8
8
  const _hoisted_1 = ["aria-label"];
9
9
  const _hoisted_2 = {
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, ref, useId, openBlock, createElementBlock, Fragment, createElementVNode, mergeProps, unref, normalizeClass, renderSlot, createCommentVNode, createBlock, createVNode, createSlots, withCtx, normalizeProps, guardReactiveProps } from "vue";
2
2
  import { useLabels } from "../composables/useLpConfig.js";
3
- import { _ as _sfc_main$3 } from "./LpDrawer-CBFVD624.js";
4
- import { _ as _sfc_main$1 } from "./LpInput-D-YGQbEv.js";
5
- import { _ as _sfc_main$2 } from "./LpSidebarNav-C9dHu-2b.js";
3
+ import { _ as _sfc_main$3 } from "./LpDrawer-DSknigxH.js";
4
+ import { _ as _sfc_main$1 } from "./LpInput-WvyP02ID.js";
5
+ import { _ as _sfc_main$2 } from "./LpSidebarNav-C9b3i9G2.js";
6
6
  const _hoisted_1 = ["aria-label"];
7
7
  const _hoisted_2 = {
8
8
  key: 2,
@@ -3,8 +3,8 @@ import { Motion } from "motion-v";
3
3
  import { CollapsibleRoot, CollapsibleTrigger, CollapsibleContent } from "reka-ui";
4
4
  import { usePillTransition } from "../composables/usePillTransition.js";
5
5
  import { _ as _sfc_main$3 } from "./LpBadge-Fe0D1bYx.js";
6
- import { _ as _sfc_main$4 } from "./LpContextMenu-EF_90u3g.js";
7
- import { _ as _sfc_main$2 } from "./LpIcon-DYtaid0K.js";
6
+ import { _ as _sfc_main$4 } from "./LpContextMenu-B1NGfpp1.js";
7
+ import { _ as _sfc_main$2 } from "./LpIcon-B5guGKrW.js";
8
8
  import { _ as _sfc_main$1 } from "./LpScrollArea-Hz3-JWUG.js";
9
9
  import { resolveLink } from "../components/link.js";
10
10
  import { useLinkComponent } from "../composables/useLpConfig.js";
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, createElementVNode, createCommentVNode, createBlock, toDisplayString, Fragment, createTextVNode, normalizeClass, createVNode, renderSlot } from "vue";
2
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
2
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
3
3
  import { _ as _sfc_main$2 } from "./LpNumberFlow-z4WPZcZu.js";
4
4
  import { useMergedAttrs } from "../composables/useMergedClass.js";
5
5
  const _hoisted_1 = { class: "flex items-center gap-2" };
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, computed, openBlock, createElementBlock, mergeProps, unref, Fragment, renderList, createElementVNode, normalizeClass, createVNode, withCtx, createBlock, createTextVNode, toDisplayString, createCommentVNode } from "vue";
2
- import { _ as _sfc_main$2 } from "./LpIcon-DYtaid0K.js";
2
+ import { _ as _sfc_main$2 } from "./LpIcon-B5guGKrW.js";
3
3
  import { _ as _sfc_main$1 } from "./LpRollingText-DB7upf-5.js";
4
4
  import { useMergedAttrs } from "../composables/useMergedClass.js";
5
5
  const _hoisted_1 = ["aria-current"];
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, ref, computed, openBlock, createElementBlock, createBlock, createCommentVNode, createElementVNode, Fragment, unref, normalizeClass, toDisplayString, createVNode, withCtx, renderList } from "vue";
2
- import { _ as _sfc_main$3 } from "./LpCheckbox-DvVYeOD-.js";
3
- import { _ as _sfc_main$1 } from "./LpInput-D-YGQbEv.js";
2
+ import { _ as _sfc_main$3 } from "./LpCheckbox-B_C8sOoT.js";
3
+ import { _ as _sfc_main$1 } from "./LpInput-WvyP02ID.js";
4
4
  import { _ as _sfc_main$2 } from "./LpShift-DXNsauQZ.js";
5
5
  import { usePaintSelect } from "../composables/usePaintSelect.js";
6
6
  import { matchesQuery, onlyValues, unhideValues, hideAllValues, invertHidden } from "../components/tableFilter.js";
@@ -1,6 +1,7 @@
1
1
  import { defineComponent, computed, ref, useId, onMounted, watch, onBeforeUnmount, openBlock, createElementBlock, createElementVNode, toDisplayString, Fragment, renderList, normalizeStyle, normalizeClass, createBlock, unref, createCommentVNode, createTextVNode } from "vue";
2
2
  import { Motion } from "motion-v";
3
3
  import { useLabels } from "../composables/useLpConfig.js";
4
+ import { scrollParent } from "../composables/scroll.js";
4
5
  import { usePillTransition } from "../composables/usePillTransition.js";
5
6
  const _hoisted_1 = ["aria-label"];
6
7
  const _hoisted_2 = { class: "mb-2.5 text-[11px] font-semibold uppercase tracking-[0.08em] text-muted" };
@@ -63,18 +64,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
64
  rafId = null;
64
65
  safetyTimer = null;
65
66
  }
66
- function scrollerOf(el) {
67
- for (let node = el.parentElement; node; node = node.parentElement) {
68
- const { overflowY } = getComputedStyle(node);
69
- if (/(auto|scroll|overlay)/.test(overflowY) && node.scrollHeight > node.clientHeight) return node;
70
- }
71
- return null;
72
- }
73
67
  function suppressSpyUntilScrollEnds(target) {
74
68
  spySuppressed = true;
75
69
  if (rafId != null) cancelAnimationFrame(rafId);
76
70
  if (safetyTimer != null) clearTimeout(safetyTimer);
77
- const scroller = scrollerOf(target);
71
+ const scroller = scrollParent(target);
78
72
  const position = () => scroller ? scroller.scrollTop : window.scrollY;
79
73
  let last = position();
80
74
  const tick = () => {
@@ -2,7 +2,7 @@ import { defineComponent, computed, ref, watch, nextTick, useId, openBlock, crea
2
2
  import { useReducedMotion, Motion } from "motion-v";
3
3
  import { TabsRoot, TabsList, TabsTrigger, TabsContent } from "reka-ui";
4
4
  import { usePillTransition } from "../composables/usePillTransition.js";
5
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
5
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
6
6
  const _hoisted_1 = {
7
7
  key: 1,
8
8
  class: "relative z-10 inline-flex"
@@ -6,9 +6,9 @@ import { useFieldNotice } from "../composables/useFieldNotice.js";
6
6
  import { useShift } from "../composables/useShift.js";
7
7
  import { useLabels } from "../composables/useLpConfig.js";
8
8
  import { mergeClass } from "../composables/useMergedClass.js";
9
- import { _ as _sfc_main$3 } from "./LpFieldNotice-wtieLUTj.js";
10
- import { _ as _sfc_main$1 } from "./LpFormField-CtVYj6tO.js";
11
- import { _ as _sfc_main$2 } from "./LpIcon-DYtaid0K.js";
9
+ import { _ as _sfc_main$3 } from "./LpFieldNotice-9hH4ITZa.js";
10
+ import { _ as _sfc_main$1 } from "./LpFormField-BpQ6WJPe.js";
11
+ import { _ as _sfc_main$2 } from "./LpIcon-B5guGKrW.js";
12
12
  import { splitTags, addTags } from "../components/tags.js";
13
13
  const _hoisted_1 = { class: "relative" };
14
14
  const _hoisted_2 = {
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, computed, useAttrs, openBlock, createBlock, resolveDynamicComponent, normalizeStyle, unref, normalizeClass, withCtx, createElementVNode, mergeProps } from "vue";
2
2
  import { useFieldControl } from "../composables/useField.js";
3
3
  import { mergeClass } from "../composables/useMergedClass.js";
4
- import { _ as _sfc_main$1 } from "./LpFormField-CtVYj6tO.js";
4
+ import { _ as _sfc_main$1 } from "./LpFormField-BpQ6WJPe.js";
5
5
  const _hoisted_1 = ["id", "value", "placeholder", "rows", "disabled", "required", "aria-invalid", "aria-describedby"];
6
6
  const __default__ = { inheritAttrs: false };
7
7
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -1,8 +1,8 @@
1
1
  import { defineComponent, computed, onMounted, ref, openBlock, createBlock, withCtx, createElementVNode, normalizeClass, createElementBlock, createVNode, toDisplayString, createCommentVNode } from "vue";
2
2
  import { useLabels } from "../composables/useLpConfig.js";
3
3
  import { u as useTheme, p as presets } from "./useTheme-2qHG8NEU.js";
4
- import { _ as _sfc_main$1 } from "./LpContextMenu-EF_90u3g.js";
5
- import { _ as _sfc_main$2 } from "./LpIcon-DYtaid0K.js";
4
+ import { _ as _sfc_main$1 } from "./LpContextMenu-B1NGfpp1.js";
5
+ import { _ as _sfc_main$2 } from "./LpIcon-B5guGKrW.js";
6
6
  const _hoisted_1 = ["aria-label", "title"];
7
7
  const _hoisted_2 = {
8
8
  key: 1,
@@ -2,7 +2,7 @@ import { defineComponent, computed, openBlock, createBlock, unref, normalizeClas
2
2
  import { Time } from "@internationalized/date";
3
3
  import { TimeFieldRoot, TimeFieldInput } from "reka-ui";
4
4
  import { useFieldControl } from "../composables/useField.js";
5
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
5
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
6
6
  const _sfc_main = /* @__PURE__ */ defineComponent({
7
7
  __name: "LpTimeField",
8
8
  props: {
@@ -5,7 +5,7 @@ import { useClipboard } from "../composables/useClipboard.js";
5
5
  import { useLabels } from "../composables/useLpConfig.js";
6
6
  import { useToast } from "../composables/useToast.js";
7
7
  import { CLOSE_ICON } from "../components/dropdown.js";
8
- import { _ as _sfc_main$1 } from "./LpIcon-DYtaid0K.js";
8
+ import { _ as _sfc_main$1 } from "./LpIcon-B5guGKrW.js";
9
9
  const _hoisted_1 = { class: "flex items-start gap-3 p-3.5" };
10
10
  const _hoisted_2 = { class: "flex min-w-0 flex-1 flex-col gap-0.5" };
11
11
  const _hoisted_3 = ["disabled", "aria-busy", "onClick"];
@@ -2,6 +2,7 @@ import { defineComponent, ref, watch, onBeforeUnmount, openBlock, createBlock, r
2
2
  import { injectTooltipProviderContext, TooltipProvider, TooltipRoot, TooltipTrigger, TooltipPortal, TooltipContent } from "reka-ui";
3
3
  import { springStep, springSettled } from "../composables/usePillTransition.js";
4
4
  import { PANEL_SURFACE, TOOLTIP_ANIM } from "../components/dropdown.js";
5
+ import { prefersReducedMotion } from "../composables/easing.js";
5
6
  import '../assets/LpTooltip-B61SYd4K.css';const _sfc_main = /* @__PURE__ */ defineComponent({
6
7
  __name: "LpTooltip",
7
8
  props: {
@@ -18,7 +19,6 @@ import '../assets/LpTooltip-B61SYd4K.css';const _sfc_main = /* @__PURE__ */ defi
18
19
  const props = __props;
19
20
  const shared = injectTooltipProviderContext(null);
20
21
  const PassThrough = (_, { slots }) => slots.default?.();
21
- const reducedMotion = () => typeof window !== "undefined" && window.matchMedia?.("(prefers-reduced-motion: reduce)").matches;
22
22
  const target = { x: 0, y: 0 };
23
23
  const offset = ref({ x: 0, y: 0 });
24
24
  let sx = { value: 0, velocity: 0 };
@@ -52,7 +52,7 @@ import '../assets/LpTooltip-B61SYd4K.css';const _sfc_main = /* @__PURE__ */ defi
52
52
  const half = props.side === "top" || props.side === "bottom" ? rect.height / 2 : 0;
53
53
  const dir = props.side === "bottom" ? -1 : 1;
54
54
  target.y = e.clientY - (rect.top + rect.height / 2) + half * dir;
55
- if (reducedMotion()) {
55
+ if (prefersReducedMotion()) {
56
56
  offset.value = { x: target.x, y: target.y };
57
57
  return;
58
58
  }