@versini/sassysaint 8.121.0 → 8.121.1

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 (84) hide show
  1. package/dist/chunks/{AboutChangelog.BEMLUbae.js → AboutChangelog.CueW7QKj.js} +2 -2
  2. package/dist/chunks/{AboutEntry.BP20V5kd.js → AboutEntry.dQ_4JNsz.js} +7 -7
  3. package/dist/chunks/{App.C4nxPutS.js → App.6iDkXSOb.js} +16 -16
  4. package/dist/chunks/{BubbleActions.C8c4YvcJ.js → BubbleActions.DB_SDTs9.js} +3 -3
  5. package/dist/chunks/ButtonIconDelete.B3hYKTP6.js +668 -0
  6. package/dist/chunks/{Chart.UpIl99Mp.js → Chart.m2plpxTN.js} +2 -2
  7. package/dist/chunks/{ChatBubbleAssistant.SZMMe-ds.js → ChatBubbleAssistant.DhP5KHH7.js} +5 -5
  8. package/dist/chunks/{ChatBubbleUser.CoUxF7fg.js → ChatBubbleUser.DythvYOo.js} +4 -4
  9. package/dist/chunks/HistoryEntry._G88vZeP.js +721 -0
  10. package/dist/chunks/{LoginEntry.B_hnp3kn.js → LoginEntry.BBF4_rEV.js} +4 -4
  11. package/dist/chunks/{LogoEntry.D5pr7J7L.js → LogoEntry.BtwLANob.js} +1 -1
  12. package/dist/chunks/{MemoriesEntry.CmCC7oIt.js → MemoriesEntry.r2Wtd8nu.js} +34 -35
  13. package/dist/chunks/{ProfileEntry.DD6EWAdg.js → ProfileEntry.DwGmWxH2.js} +4 -4
  14. package/dist/chunks/{SettingsEntry.D2vkhDVP.js → SettingsEntry.D7b4vTwv.js} +5 -5
  15. package/dist/chunks/{UsageEntry.CPwTEetP.js → UsageEntry.BB5KalRi.js} +5 -5
  16. package/dist/chunks/{_baseUniq.CoZJjsf4.js → _baseUniq.22z3R--R.js} +1 -1
  17. package/dist/chunks/{arc.DCa0ktHo.js → arc.Cg0BJN6o.js} +1 -1
  18. package/dist/chunks/{architecture-U656AL7Q.jPKmAcqF.js → architecture-U656AL7Q.D7Nmp0uq.js} +1 -1
  19. package/dist/chunks/{architectureDiagram-VXUJARFQ.De0i9yVs.js → architectureDiagram-VXUJARFQ.D58LaEiy.js} +4 -4
  20. package/dist/chunks/{blockDiagram-VD42YOAC.C_-0tieR.js → blockDiagram-VD42YOAC.BS_n-q2N.js} +5 -5
  21. package/dist/chunks/{browser.CHnC-ta2.js → browser.YA6spcA7.js} +1 -1
  22. package/dist/chunks/{c4Diagram-YG6GDRKO.BsCj771T.js → c4Diagram-YG6GDRKO.lVOg2-ZH.js} +2 -2
  23. package/dist/chunks/{channel.BMmrJgu1.js → channel.DqxR-oS7.js} +1 -1
  24. package/dist/chunks/{chunk-4BX2VUAB.PHnk2h7S.js → chunk-4BX2VUAB.D5lbe9g-.js} +1 -1
  25. package/dist/chunks/{chunk-55IACEB6.DO1lSVjK.js → chunk-55IACEB6.BlgGY9Q6.js} +1 -1
  26. package/dist/chunks/{chunk-B4BG7PRW.DWoXKkeu.js → chunk-B4BG7PRW.Bn-86p3H.js} +4 -4
  27. package/dist/chunks/{chunk-DI55MBZ5.AFC0J_hR.js → chunk-DI55MBZ5.C2fqe7wu.js} +3 -3
  28. package/dist/chunks/{chunk-FMBD7UC4.MibDfgHx.js → chunk-FMBD7UC4.8IJZbT_o.js} +1 -1
  29. package/dist/chunks/{chunk-QN33PNHL.Cc4-mgjY.js → chunk-QN33PNHL.DOV2bTYS.js} +1 -1
  30. package/dist/chunks/{chunk-QZHKN3VN.JSlC3cS6.js → chunk-QZHKN3VN.CM1K8z3e.js} +1 -1
  31. package/dist/chunks/{chunk-TZMSLE5B.DwO6_k9Q.js → chunk-TZMSLE5B.CH_b17FM.js} +1 -1
  32. package/dist/chunks/{classDiagram-2ON5EDUG.DTLG4V26.js → classDiagram-2ON5EDUG.DeWSBBaZ.js} +2 -2
  33. package/dist/chunks/{classDiagram-v2-WZHVMYZB.DTLG4V26.js → classDiagram-v2-WZHVMYZB.DeWSBBaZ.js} +2 -2
  34. package/dist/chunks/{clone.DKF4uk6r.js → clone.B0TtmQHA.js} +1 -1
  35. package/dist/chunks/{cose-bilkent-S5V4N54A.VviytYtj.js → cose-bilkent-S5V4N54A.IzOlhIoo.js} +2 -2
  36. package/dist/chunks/{dagre-6UL2VRFP.BnyaaYxG.js → dagre-6UL2VRFP.COZ3hsXn.js} +5 -5
  37. package/dist/chunks/{diagram-PSM6KHXK._9uw_Asg.js → diagram-PSM6KHXK.JEnBJXhp.js} +4 -4
  38. package/dist/chunks/{diagram-QEK2KX5R.D8fcj4HF.js → diagram-QEK2KX5R.Bb3EEO2D.js} +3 -3
  39. package/dist/chunks/{diagram-S2PKOQOG.dRyHvEKp.js → diagram-S2PKOQOG.B_aUDr5F.js} +3 -3
  40. package/dist/chunks/{erDiagram-Q2GNP2WA.C1BZ7IIw.js → erDiagram-Q2GNP2WA.CYpL6V9w.js} +4 -4
  41. package/dist/chunks/{flowDiagram-NV44I4VS.DGv1Di7m.js → flowDiagram-NV44I4VS.CF9-8TaP.js} +5 -5
  42. package/dist/chunks/{ganttDiagram-JELNMOA3.BxWIrV3k.js → ganttDiagram-JELNMOA3.CdE8GB2s.js} +2 -2
  43. package/dist/chunks/{gitGraph-F6HP7TQM.XlxG37gi.js → gitGraph-F6HP7TQM.BWmUmcZV.js} +1 -1
  44. package/dist/chunks/{gitGraphDiagram-NY62KEGX.C6IZCfaV.js → gitGraphDiagram-NY62KEGX.Cn0Cu7Ww.js} +4 -4
  45. package/dist/chunks/{graph.sJUgf4to.js → graph.B0nity3n.js} +2 -2
  46. package/dist/chunks/{index.dU_uFcp3.js → index.Biab5cek.js} +1 -1
  47. package/dist/chunks/{index.PkMUAYHK.js → index.BkSC8d7B.js} +3 -3
  48. package/dist/chunks/{index.CogeyeP6.js → index.C2WmpF2e.js} +1 -1
  49. package/dist/chunks/{index.DiX9H7xn.js → index.CAuXCAe5.js} +1 -1
  50. package/dist/chunks/{index.vVEbZqrY.js → index.CJxTPes-.js} +1 -1
  51. package/dist/chunks/{index.BK010vU3.js → index.Ci5e_98Z.js} +3 -3
  52. package/dist/chunks/{index.CFUvysz5.js → index.D3dY6con.js} +1 -1
  53. package/dist/chunks/{index.B9oaH0MK.js → index.D_0HoqM8.js} +1 -1
  54. package/dist/chunks/{index.BztNm3SQ.js → index.Ds4-4dzy.js} +2 -2
  55. package/dist/chunks/{info-NVLQJR56.CB1yFEh0.js → info-NVLQJR56.DfoQxnaP.js} +1 -1
  56. package/dist/chunks/{infoDiagram-WHAUD3N6.C-F2hnF3.js → infoDiagram-WHAUD3N6.CbDQCj4t.js} +2 -2
  57. package/dist/chunks/{journeyDiagram-XKPGCS4Q.BOGagEe6.js → journeyDiagram-XKPGCS4Q.BGwMjBf9.js} +4 -4
  58. package/dist/chunks/{kanban-definition-3W4ZIXB7.DRixYBgm.js → kanban-definition-3W4ZIXB7.CS-TV1ji.js} +2 -2
  59. package/dist/chunks/{layout.NBNj8tNt.js → layout.DKjnDekM.js} +4 -4
  60. package/dist/chunks/{mermaid-parser.core.WUAPU6bl.js → mermaid-parser.core.CBflstHb.js} +10 -10
  61. package/dist/chunks/{min.pcif1d-R.js → min.eDGqv0vt.js} +2 -2
  62. package/dist/chunks/{mindmap-definition-VGOIOE7T.BoB_83-j.js → mindmap-definition-VGOIOE7T.GckYx6Fd.js} +3 -3
  63. package/dist/chunks/{packet-BFZMPI3H.obdUPGmt.js → packet-BFZMPI3H.DzGbdOiU.js} +1 -1
  64. package/dist/chunks/{pie-7BOR55EZ.CULyWvsL.js → pie-7BOR55EZ.CRxLvxJh.js} +1 -1
  65. package/dist/chunks/{pieDiagram-ADFJNKIX.cAhdeEuZ.js → pieDiagram-ADFJNKIX.BuekQ8o8.js} +4 -4
  66. package/dist/chunks/{quadrantDiagram-AYHSOK5B.BzL8QKyn.js → quadrantDiagram-AYHSOK5B.Cz1W80fL.js} +1 -1
  67. package/dist/chunks/{radar-NHE76QYJ.CGQJLLyR.js → radar-NHE76QYJ.D_eJ0pAQ.js} +1 -1
  68. package/dist/chunks/{rehype-mermaid.CEYn3QGz.js → rehype-mermaid.C6vWaLbm.js} +33 -33
  69. package/dist/chunks/{requirementDiagram-UZGBJVZJ.HEMcLvIC.js → requirementDiagram-UZGBJVZJ.D29ENfNv.js} +3 -3
  70. package/dist/chunks/{sankeyDiagram-TZEHDZUN.DHbrhGCv.js → sankeyDiagram-TZEHDZUN.BkA8zy0e.js} +1 -1
  71. package/dist/chunks/{sequenceDiagram-WL72ISMW.DWButQpu.js → sequenceDiagram-WL72ISMW.CohhptW1.js} +3 -3
  72. package/dist/chunks/{stateDiagram-FKZM4ZOC.CBFgulEf.js → stateDiagram-FKZM4ZOC.DXcdl9T3.js} +4 -4
  73. package/dist/chunks/{stateDiagram-v2-4FDKWEC3.DEk41WUx.js → stateDiagram-v2-4FDKWEC3.CyTSxcZ6.js} +2 -2
  74. package/dist/chunks/{timeline-definition-IT6M3QCI.eEEdc2b2.js → timeline-definition-IT6M3QCI.BvhsFWgy.js} +2 -2
  75. package/dist/chunks/{treemap-KMMF4GRG.DRjxIKwf.js → treemap-KMMF4GRG.DdhwEUUj.js} +1 -1
  76. package/dist/chunks/{useMarkdown.DxjQgTku.js → useMarkdown.CdWXCETb.js} +8 -8
  77. package/dist/chunks/{xychartDiagram-PRI3JC2R.DoDDE7QI.js → xychartDiagram-PRI3JC2R.vlO9NN_Y.js} +1 -1
  78. package/dist/components/SassySaint/SassySaint.js +1 -1
  79. package/dist/index.js +3 -3
  80. package/package.json +3 -3
  81. package/dist/chunks/ButtonIconDelete.CLpIgJ17.js +0 -550
  82. package/dist/chunks/HistoryDataGrid.BNOeaUQd.js +0 -445
  83. package/dist/chunks/HistoryEntry.CvshPCHz.js +0 -293
  84. package/dist/chunks/InlineFilter.C_2kmBp0.js +0 -123
@@ -1,293 +0,0 @@
1
- import { jsxs as n, jsx as t, Fragment as U } from "react/jsx-runtime";
2
- import { n as j, LOCAL_STORAGE_PREFIX as d, LOCAL_STORAGE_SORT_TIMESTAMP as Q, LOCAL_STORAGE_SORT_TOKEN_USAGE as X, LOCAL_STORAGE_SORT as J, y as x, LOCAL_STORAGE_CHAT_ID as Z, useDeleteChat as $, graphQLRequest as ee, SERVICE_TYPES as te, ACTION_SORT as ae, V as se, LOCAL_STORAGE_SEARCH as re, LOCAL_STORAGE_KEYWORD_MATCH_ALL as oe, LOCAL_STORAGE_HISTORY_WITH_MEDIA_ONLY as ie, useChatsHistory as ne, useUserChatStats as le, ACTION_SEARCH as ce } from "./index.BztNm3SQ.js";
3
- import { InlineFilter as de, AnimatedWrapper as he } from "./InlineFilter.C_2kmBp0.js";
4
- import { useAiChat as Ce, useLocalStorage as h, LazyToastContainerWrapper as ue, v4 as me, CHAT_RESET as Se, CHAT_SET_ATTACHMENTS as ye, CHAT_SET_STATUS as Te, showErrorToast as pe, ConfirmationPanel as fe, Panel as Ae, debounce as ge, Toggle as z, ButtonCancel as De } from "./App.C4nxPutS.js";
5
- import { useRef as W, useContext as Y, Suspense as _e, lazy as Ee, useState as b, useCallback as K, useEffect as Oe } from "react";
6
- import { HistoryContext as B, ChatContext as Le, SortDirections as c, APP_CLASSNAME as Re, TOAST_CHAT_DELETED as ke, HISTORY_TITLE as He } from "./LogoEntry.D5pr7J7L.js";
7
- const we = Ee(
8
- () => import(
9
- /* webpackChunkName: "history-datagrid" */
10
- "./HistoryDataGrid.BNOeaUQd.js"
11
- ).then(
12
- (C) => ({ default: C.HistoryDataGrid })
13
- )
14
- ), Ie = ({
15
- filteredHistory: C,
16
- onOpenChange: p,
17
- mutate: g,
18
- isLoading: D = !1,
19
- totalHistoryCount: _,
20
- isFiltered: E = !1,
21
- isSearchActive: N = !1,
22
- requestConfirmation: u
23
- }) => {
24
- const { user: s, getAccessToken: O } = j(), M = W({
25
- id: "",
26
- timestamp: "",
27
- message: ""
28
- }), { state: o, dispatch: v } = Y(B), f = {
29
- sortDirection: o.sortDirection || c.DESC,
30
- sortedCell: o.sortedCell || x
31
- }, {
32
- setChatId: L,
33
- setInitialMessages: R,
34
- dispatch: m
35
- } = Y(Le), { setInput: S } = Ce(), [A, k] = h({
36
- key: d + Q,
37
- initialValue: c.DESC
38
- }), [H, G] = h({
39
- key: d + X,
40
- initialValue: c.ASC
41
- }), [, F] = h({
42
- key: d + J,
43
- initialValue: x
44
- }), [y] = h({
45
- key: d + Z,
46
- initialValue: ""
47
- }), { mutateAsync: V } = $({ getAccessToken: O }), w = (e) => {
48
- const i = o.sortedCell === e;
49
- let r, T;
50
- switch (e) {
51
- case x:
52
- T = k, r = i ? o.sortDirection : A;
53
- break;
54
- case se:
55
- T = G, r = i ? o.sortDirection : H;
56
- break;
57
- default:
58
- T = k, r = i ? o.sortDirection : A;
59
- break;
60
- }
61
- const a = r === c.ASC ? c.DESC : c.ASC;
62
- T(a), F(e), v({
63
- type: ae,
64
- payload: {
65
- sortedCell: e,
66
- sortDirection: a
67
- }
68
- });
69
- }, I = async (e) => {
70
- try {
71
- await V({
72
- userId: s?.username || "",
73
- id: e
74
- }), g(""), await pe(ke, {
75
- autoClose: 2e3,
76
- containerId: "history-table"
77
- });
78
- } catch {
79
- }
80
- }, l = async (e) => {
81
- try {
82
- const i = await O(), r = await ee({
83
- accessToken: i,
84
- type: te.GET_CHAT,
85
- params: {
86
- id: e.id
87
- }
88
- });
89
- m({
90
- type: Te,
91
- payload: {
92
- streaming: !1,
93
- loading: !1,
94
- restoring: !0,
95
- restoredModel: r.data?.model || "",
96
- restoredTimestamp: r.data?.timestamp || "",
97
- restoredUsage: r.data?.tokenUsage || 0
98
- }
99
- }), S(""), L(e.id), R(r.data.messages), p(!1);
100
- } catch {
101
- }
102
- }, P = (e) => {
103
- M.current = {
104
- id: e.id,
105
- timestamp: e.timestamp,
106
- message: e.summary
107
- }, u(
108
- () => I(e.id),
109
- /* @__PURE__ */ n(U, { children: [
110
- /* @__PURE__ */ t("p", { className: "m-0", children: "Are you sure you want to delete the following chat:" }),
111
- /* @__PURE__ */ n("ul", { className: "m-0", children: [
112
- /* @__PURE__ */ n("li", { children: [
113
- "Timestamp: ",
114
- /* @__PURE__ */ t("span", { className: "text-lg", children: e.timestamp })
115
- ] }),
116
- /* @__PURE__ */ n("li", { children: [
117
- "First message: ",
118
- /* @__PURE__ */ t("span", { className: "text-lg", children: e.summary })
119
- ] })
120
- ] })
121
- ] })
122
- ), y === e.id && (L(me()), R([]), S(""), m({
123
- type: Se,
124
- payload: {
125
- privateChat: !1,
126
- reasoningText: !1
127
- }
128
- }), m({
129
- type: ye,
130
- payload: {
131
- attachments: 0
132
- }
133
- }));
134
- };
135
- return /* @__PURE__ */ n("div", { children: [
136
- /* @__PURE__ */ t("div", { className: Re, children: /* @__PURE__ */ t(ue, { containerId: "history-table" }) }),
137
- /* @__PURE__ */ t(_e, { fallback: /* @__PURE__ */ t("div", {}), children: /* @__PURE__ */ t(
138
- we,
139
- {
140
- filteredHistory: C,
141
- sortDirection: f.sortDirection,
142
- sortedCell: f.sortedCell,
143
- onSortChange: w,
144
- onClickRestore: l,
145
- onClickDelete: P,
146
- isLoading: D,
147
- totalHistoryCount: _,
148
- isFiltered: E,
149
- isSearchActive: N,
150
- activeChatId: y
151
- }
152
- ) })
153
- ] });
154
- }, Fe = ({
155
- open: C,
156
- onOpenChange: p
157
- }) => {
158
- const g = W(null), { getAccessToken: D, user: _ } = j(), [E, N] = b([]), u = W(null), { state: s, dispatch: O } = Y(B), [, M] = h({
159
- key: d + re,
160
- initialValue: s.searchString
161
- }), [o, v] = h({
162
- key: d + oe,
163
- initialValue: !0
164
- }), [f, L] = h({
165
- key: d + ie,
166
- initialValue: !1
167
- }), [R, m] = b(!1), [S, A] = b(null), [k, H] = b(null), G = K(
168
- (a, q) => {
169
- A(() => a), H(q), m(!0);
170
- },
171
- []
172
- ), F = K(() => {
173
- S && S(), A(null), H(null);
174
- }, [S]), {
175
- data: y,
176
- refetch: V,
177
- isLoading: w,
178
- isError: I
179
- } = ne({
180
- enabled: C,
181
- user: _?.username || "",
182
- searchString: s.searchString || "",
183
- sortDirection: s.sortDirection || c.DESC,
184
- sortedCell: s.sortedCell || x,
185
- getAccessToken: D,
186
- keywordMatchAll: o,
187
- withMediaOnly: f
188
- }), { data: l } = le({
189
- user: _?.username,
190
- getAccessToken: D
191
- }), P = l && l.totalChats ? l.totalChats - l.privateChats - l.deletedChats : 0;
192
- Oe(() => {
193
- y && N(y);
194
- }, [y]);
195
- const e = async (a) => {
196
- M(a), O({
197
- type: ce,
198
- payload: { searchString: a }
199
- });
200
- }, i = ge((a) => {
201
- e(a.target.value.trim());
202
- }, 800), r = (a) => {
203
- v(a);
204
- }, T = (a) => {
205
- L(a);
206
- };
207
- return /* @__PURE__ */ n(U, { children: [
208
- /* @__PURE__ */ t(
209
- fe,
210
- {
211
- showConfirmation: R,
212
- setShowConfirmation: m,
213
- action: F,
214
- customStrings: {
215
- confirmAction: "Delete",
216
- cancelAction: "Cancel",
217
- title: "Delete chat"
218
- },
219
- children: k
220
- }
221
- ),
222
- /* @__PURE__ */ t(
223
- Ae,
224
- {
225
- open: C,
226
- onOpenChange: p,
227
- title: He,
228
- animation: !0,
229
- animationType: "fade",
230
- blurEffect: "large",
231
- initialFocus: g,
232
- className: "h-full sm:h-max",
233
- footer: /* @__PURE__ */ t("div", { className: "flex flex-wrap justify-end gap-x-2 pb-8 sm:pb-0", children: /* @__PURE__ */ t("div", { className: "box-border max-w-full basis-auto", children: /* @__PURE__ */ t(De, { onOpenChange: p, ref: g }) }) }),
234
- children: /* @__PURE__ */ n("div", { className: "flex h-full flex-col gap-4", children: [
235
- /* @__PURE__ */ t(
236
- de,
237
- {
238
- header: w && s.searchString ? "Loading..." : s.searchString ? "Filters applied" : "Filters",
239
- toggles: /* @__PURE__ */ n(U, { children: [
240
- /* @__PURE__ */ t(
241
- z,
242
- {
243
- name: "keyword-match-all",
244
- checked: o,
245
- onChange: r,
246
- label: "Match all keywords",
247
- narrow: !0,
248
- noBorder: !0
249
- }
250
- ),
251
- /* @__PURE__ */ t(
252
- z,
253
- {
254
- name: "history-with-media-only",
255
- checked: f,
256
- onChange: T,
257
- label: "Generated images only",
258
- narrow: !0,
259
- noBorder: !0
260
- }
261
- )
262
- ] }),
263
- inputSearchRef: u,
264
- onSearchChange: i,
265
- defaultValue: s.searchString,
266
- resetDisabled: s.searchString === "",
267
- onResetSearch: () => {
268
- e(""), u.current?.value && (u.current.value = "", u.current.focus());
269
- }
270
- }
271
- ),
272
- I && /* @__PURE__ */ t("p", { className: "m-0 text-copy-error-light", children: "Failed to load history." }),
273
- !I && /* @__PURE__ */ t(he, { dependency: E?.length ?? 0, children: /* @__PURE__ */ t(
274
- Ie,
275
- {
276
- mutate: V,
277
- filteredHistory: E,
278
- onOpenChange: p,
279
- isLoading: w,
280
- totalHistoryCount: P,
281
- isFiltered: !!s.searchString,
282
- isSearchActive: !!s.searchString,
283
- requestConfirmation: G
284
- }
285
- ) })
286
- ] })
287
- }
288
- )
289
- ] });
290
- };
291
- export {
292
- Fe as HistoryPanel
293
- };
@@ -1,123 +0,0 @@
1
- import { jsx as s, jsxs as g } from "react/jsx-runtime";
2
- import { useRef as m, useState as A, useLayoutEffect as x } from "react";
3
- import { IconSearch as N, Button as b } from "./LogoEntry.D5pr7J7L.js";
4
- import { Card as S } from "./index.DiX9H7xn.js";
5
- import { TextInput as v } from "./index.B9oaH0MK.js";
6
- const F = 300;
7
- function H(e, c) {
8
- const { duration: n = F, enabled: i = !0 } = c ?? {}, r = m(null), [t, a] = A({
9
- height: "auto",
10
- isAnimating: !1
11
- }), l = m(0), f = m(e), o = m(0), u = m(null);
12
- x(() => {
13
- if (!r.current || !i)
14
- return;
15
- if (l.current === 0) {
16
- l.current = r.current.offsetHeight, f.current = e;
17
- return;
18
- }
19
- if (f.current === e)
20
- return;
21
- f.current = e;
22
- const h = l.current, d = r.current.scrollHeight;
23
- if (l.current = d, !(h === d || h === 0))
24
- return u.current && clearTimeout(u.current), o.current && cancelAnimationFrame(o.current), a({
25
- height: h,
26
- isAnimating: !0
27
- }), o.current = requestAnimationFrame(() => {
28
- o.current = requestAnimationFrame(() => {
29
- a({
30
- height: d,
31
- isAnimating: !0
32
- }), u.current = setTimeout(() => {
33
- a({
34
- height: "auto",
35
- isAnimating: !1
36
- });
37
- }, n);
38
- });
39
- }), () => {
40
- u.current && clearTimeout(u.current), o.current && cancelAnimationFrame(o.current);
41
- };
42
- }, [
43
- e,
44
- n,
45
- i
46
- ]);
47
- const p = i ? {
48
- height: t.height === "auto" ? "auto" : `${t.height}px`,
49
- overflow: t.isAnimating ? "hidden" : void 0,
50
- transition: t.isAnimating ? `height ${n}ms ease-out` : void 0
51
- } : {};
52
- return {
53
- ref: r,
54
- style: p,
55
- isAnimating: t.isAnimating
56
- };
57
- }
58
- const k = ({ children: e, dependency: c, duration: n, enabled: i = !0, className: r }) => {
59
- const { ref: t, style: a } = H(c, {
60
- duration: n,
61
- enabled: i
62
- });
63
- return /* @__PURE__ */ s("div", {
64
- ref: t,
65
- style: a,
66
- className: r,
67
- children: e
68
- });
69
- }, w = ({
70
- header: e,
71
- toggles: c,
72
- inputSearchRef: n,
73
- onSearchChange: i,
74
- onResetSearch: r,
75
- defaultValue: t,
76
- resetDisabled: a = !1
77
- }) => /* @__PURE__ */ g(
78
- S,
79
- {
80
- header: e,
81
- className: "prose-dark dark:prose-lighter mb-4",
82
- noBorder: !0,
83
- compact: !0,
84
- children: [
85
- /* @__PURE__ */ s(
86
- v,
87
- {
88
- placeholder: "Search",
89
- labelHidden: !0,
90
- noBorder: !0,
91
- autoCapitalize: "off",
92
- autoComplete: "off",
93
- autoCorrect: "off",
94
- ref: n,
95
- defaultValue: t,
96
- mode: "alt-system",
97
- name: "Search",
98
- label: "Search",
99
- onChange: i,
100
- className: "my-2",
101
- rightElement: /* @__PURE__ */ s("div", { className: "dark:text-copy-dark text-copy-light", children: /* @__PURE__ */ s(N, { monotone: !0, size: "size-3" }) })
102
- }
103
- ),
104
- /* @__PURE__ */ g("div", { className: "flex flex-col justify-between sm:flex-row gap-2 sm:mb-0 mb-1", children: [
105
- /* @__PURE__ */ s("div", { className: "flex flex-col sm:flex-row gap-2 order-1 sm:order-0", children: c }),
106
- /* @__PURE__ */ s(
107
- b,
108
- {
109
- mode: "light",
110
- size: "small",
111
- disabled: a,
112
- onClick: r,
113
- children: "Reset Search"
114
- }
115
- )
116
- ] })
117
- ]
118
- }
119
- );
120
- export {
121
- k as AnimatedWrapper,
122
- w as InlineFilter
123
- };