@inkeep/cxkit-primitives 0.5.69 → 0.5.71

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.
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import { jsx as a } from "react/jsx-runtime";
3
- import { Command as f, useCommandState as P, useCommandStore as V } from "../atoms/cmdk/index.js";
3
+ import { Command as f, useCommandState as P, useCommandStore as Q } from "../atoms/cmdk/index.js";
4
4
  import { ikp as r } from "./factory.js";
5
5
  import { dataAttr as I, maybeRender as E } from "../utils/misc.js";
6
- import { forwardRef as L, useMemo as w, useState as j, useEffect as O, useCallback as N, useRef as H } from "react";
6
+ import { forwardRef as A, useMemo as T, useState as j, useEffect as O, useCallback as N, useRef as H } from "react";
7
7
  import { useSearch as u } from "./embedded-search/search-provider.js";
8
- import { SearchProvider as hi } from "./embedded-search/search-provider.js";
8
+ import { SearchProvider as vi } from "./embedded-search/search-provider.js";
9
9
  import q from "./tagline-logo-icon.js";
10
10
  import { CustomIcon as g } from "../atoms/icons/custom-icon.js";
11
- import * as A from "@radix-ui/react-scroll-area";
11
+ import * as L from "@radix-ui/react-scroll-area";
12
12
  import * as C from "@radix-ui/react-tabs";
13
13
  import { useInkeepConfig as p } from "../providers/config-provider.js";
14
14
  import { useSearchEvents as z } from "../providers/search-events-provider.js";
15
15
  import { LinkWithQueryParams as M } from "../atoms/link.js";
16
- import { SourceItemProvider as W, useSourceItem as _ } from "../providers/source-item-provider.js";
16
+ import { SourceItemProvider as V, useSourceItem as _ } from "../providers/source-item-provider.js";
17
17
  import { BuiltInIconRenderer as U } from "../atoms/icons/built-in-icon-renderer.js";
18
18
  import { highlightEmphasis as J } from "../utils/highlight-emphasis.js";
19
19
  import { useScrollingFades as X } from "../hooks/use-scrolling-fades.js";
@@ -27,7 +27,7 @@ import { Markdown as ie } from "../atoms/markdown/index.js";
27
27
  import { useMediaQuery as F } from "../hooks/use-media-query.js";
28
28
  import { useSearchFetch as re } from "./embedded-search/use-search-filter.js";
29
29
  import { getUrlWithQuery as se } from "./embedded-search/url-query.js";
30
- import { ASK_AI_TRIGGER_VALUE as T } from "../constants/search.js";
30
+ import { ASK_AI_TRIGGER_VALUE as w } from "../constants/search.js";
31
31
  import { useWidgetAutoFocus as ne } from "./modal/widget-auto-focus.js";
32
32
  const ae = r("div", {
33
33
  _id: "aiSearchWrapper"
@@ -54,7 +54,7 @@ const ae = r("div", {
54
54
  return /* @__PURE__ */ a(oe, { "data-hidden": I(t), "data-mobile": I(i), ...e });
55
55
  }, ce = r(f.List, {
56
56
  _id: "aiSearchContent"
57
- }), St = L((e, t) => {
57
+ }), St = A((e, t) => {
58
58
  const i = P((s) => s.value);
59
59
  return /* @__PURE__ */ a(
60
60
  ce,
@@ -69,56 +69,56 @@ const ae = r("div", {
69
69
  }), bt = r(g, {
70
70
  _id: "aiSearchInputIcon",
71
71
  iconKey: "search"
72
- }), le = r(f.Input, {
72
+ }), de = r(f.Input, {
73
73
  _id: "aiSearchInput"
74
- }), Rt = L(({ onInput: e, ...t }, i) => {
75
- const { inputRef: s, shouldAutoFocusInput: n } = u(), o = P((h) => h.value), l = F("(max-width: 768px)"), { searchSettings: c } = p(), d = w(
76
- () => c.placeholder || (l ? "Search..." : "Search for anything..."),
77
- [c.placeholder, l]
74
+ }), Rt = A(({ onInput: e, ...t }, i) => {
75
+ const { inputRef: s, shouldAutoFocusInput: n } = u(), o = P((h) => h.value), d = F("(max-width: 768px)"), { searchSettings: c } = p(), l = T(
76
+ () => c.placeholder || (d ? "Search..." : "Search for anything..."),
77
+ [c.placeholder, d]
78
78
  ), v = x(i, s);
79
79
  return ne("search", s, n), re(), /* @__PURE__ */ a(
80
- le,
80
+ de,
81
81
  {
82
82
  ref: v,
83
- placeholder: d,
83
+ placeholder: l,
84
84
  "aria-activedescendant": `aiSearchResults__Item-${o}`,
85
85
  ...t
86
86
  }
87
87
  );
88
- }), de = r(U, {
88
+ }), le = r(U, {
89
89
  _id: "aiSearchLoading",
90
90
  iconSettings: {
91
91
  builtIn: "LuLoaderCircle"
92
92
  }
93
93
  }), Pt = (e) => {
94
94
  const { loading: t, resultsList: i } = u();
95
- return !t || i.length === 0 ? null : /* @__PURE__ */ a(de, { ...e });
95
+ return !t || i.length === 0 ? null : /* @__PURE__ */ a(le, { ...e });
96
96
  }, ue = r(f.Item, {
97
97
  _id: "aiAskAITrigger",
98
- value: T
98
+ value: w
99
99
  }), gt = (e) => {
100
- const { results: t, tab: i } = u(), s = V(), n = t[i]?.[0]?.id ?? "NONE";
100
+ const { results: t, tab: i } = u(), s = Q(), n = t[i]?.[0]?.id ?? "NONE";
101
101
  return /* @__PURE__ */ a(
102
102
  ue,
103
103
  {
104
104
  ...e,
105
- id: `aiSearchResults__Item-${T}`,
105
+ id: `aiSearchResults__Item-${w}`,
106
106
  tabIndex: 0,
107
107
  onPointerLeave: () => s.setState("value", n, !0)
108
108
  }
109
109
  );
110
110
  }, me = r("img", {
111
111
  _id: "aiAskAITrigger__Icon"
112
- }), wt = (e) => {
113
- const { aiChatSettings: t } = p(), { aiAssistantAvatar: i } = t ?? {}, s = typeof i == "string" ? i : i?.light, n = (typeof i == "string" ? i : i?.dark) ?? s, o = Y(s, n), [l, c] = j(o);
112
+ }), Tt = (e) => {
113
+ const { aiChatSettings: t } = p(), { aiAssistantAvatar: i } = t ?? {}, s = typeof i == "string" ? i : i?.light, n = (typeof i == "string" ? i : i?.dark) ?? s, o = Y(s, n), [d, c] = j(o);
114
114
  return O(() => {
115
115
  c(o);
116
- }, [o]), /* @__PURE__ */ a(me, { asChild: !0, ...e, children: l ? (
116
+ }, [o]), /* @__PURE__ */ a(me, { asChild: !0, ...e, children: d ? (
117
117
  // biome-ignore lint/a11y/useAltText: <explanation>
118
118
  /* @__PURE__ */ a(
119
119
  "img",
120
120
  {
121
- src: l,
121
+ src: d,
122
122
  alt: "AI Avatar",
123
123
  "data-type": "image",
124
124
  onError: y(() => {
@@ -128,29 +128,33 @@ const ae = r("div", {
128
128
  }
129
129
  )
130
130
  ) : /* @__PURE__ */ a(Z, { "data-type": "icon", ...e }) });
131
- }, Tt = r("span", {
131
+ }, wt = r("span", {
132
132
  _id: "aiAskAITrigger__Label"
133
- }), ft = r(g, {
133
+ }), ft = r("span", {
134
+ _id: "aiAskAITrigger__Query"
135
+ }), Et = r(g, {
134
136
  _id: "aiAskAITrigger__Indicator",
135
137
  iconKey: "openLinkInSameTab"
138
+ }), At = r("span", {
139
+ _id: "aiAskAITrigger__IndicatorText"
136
140
  }), he = r(C.Root, {
137
141
  _id: "aiSearchResults"
138
- }), Et = (e) => {
142
+ }), Lt = (e) => {
139
143
  const {
140
144
  searchSettings: { view: t }
141
- } = p(), { tab: i, setTab: s, hasContent: n, isHidden: o, disableTransition: l, results: c, defaultTab: d } = u(), v = V(), h = N(
145
+ } = p(), { tab: i, setTab: s, hasContent: n, isHidden: o, disableTransition: d, results: c, defaultTab: l } = u(), v = Q(), h = N(
142
146
  (m) => {
143
- l(), s(m);
147
+ d(), s(m);
144
148
  const S = c[m][0] ? c[m][0]?.id : void 0;
145
149
  v.setState("value", S, !0);
146
150
  },
147
- [c, l]
151
+ [c, d]
148
152
  );
149
153
  return O(() => {
150
154
  let m = i in c ? i : Object.keys(c)[0];
151
155
  if (!c[m]?.length) {
152
156
  const b = Object.keys(c).find((k) => c[k]?.length);
153
- b ? m = b : m = d;
157
+ b ? m = b : m = l;
154
158
  }
155
159
  if (!m) return;
156
160
  s(m);
@@ -168,27 +172,27 @@ const ae = r("div", {
168
172
  );
169
173
  }, Ie = r("div", {
170
174
  _id: "aiSearchResults__Loading"
171
- }), Lt = (e) => {
175
+ }), kt = (e) => {
172
176
  const { loading: t, resultsList: i } = u();
173
177
  return !t || i.length > 0 ? null : /* @__PURE__ */ a(Ie, { ...e });
174
178
  }, ve = r(f.Empty, {
175
179
  _id: "aiSearchResults__Empty"
176
- }), At = (e) => {
177
- const t = P((l) => l.search), { loading: i, results: s, tab: n } = u(), o = s[n]?.length;
180
+ }), yt = (e) => {
181
+ const t = P((d) => d.search), { loading: i, results: s, tab: n } = u(), o = s[n]?.length;
178
182
  return i || !t || o ? null : /* @__PURE__ */ a(ve, { children: "No results found.", ...e });
179
183
  }, _e = r(C.List, {
180
184
  _id: "aiSearchResults__TabList"
181
- }), kt = (e) => {
185
+ }), Ot = (e) => {
182
186
  const { children: t, ...i } = e, {
183
187
  searchSettings: { tabs: s }
184
- } = p(), { results: n, loading: o, resultsList: l } = u();
185
- if (o && l.length === 0) return null;
188
+ } = p(), { results: n, loading: o, resultsList: d } = u();
189
+ if (o && d.length === 0) return null;
186
190
  const c = Object.keys(n);
187
191
  return !s.length || !c.length ? null : /* @__PURE__ */ a(_e, { tabIndex: -1, children: E(t, c), ...i });
188
192
  }, Se = r(C.Trigger, {
189
193
  _id: "aiSearchResults__Tab"
190
- }), yt = L((e, t) => {
191
- const i = H(null), s = x(t, i), { tab: n, onClick: o, ...l } = e, { results: c, tab: d, inputRef: v } = u(), h = c[n].length, m = n === d, S = () => {
194
+ }), Ct = A((e, t) => {
195
+ const i = H(null), s = x(t, i), { tab: n, onClick: o, ...d } = e, { results: c, tab: l, inputRef: v } = u(), h = c[n].length, m = n === l, S = () => {
192
196
  v.current?.focus();
193
197
  }, b = te();
194
198
  return O(() => {
@@ -202,19 +206,19 @@ const ae = r("div", {
202
206
  value: n,
203
207
  children: `${n} (${h})`,
204
208
  onClick: y(o, S),
205
- ...l
209
+ ...d
206
210
  }
207
211
  );
208
- }), Ot = r("div", {
212
+ }), xt = r("div", {
209
213
  _id: "aiSearchResults__Content"
210
- }), pe = r(A.Root, {
214
+ }), pe = r(L.Root, {
211
215
  _id: "aiSearchResults__ScrollArea"
212
- }), Ct = (e) => {
216
+ }), Bt = (e) => {
213
217
  const { loading: t, resultsList: i } = u();
214
218
  return t && i.length === 0 ? null : /* @__PURE__ */ a(pe, { tabIndex: -1, ...e });
215
- }, be = r(A.Viewport, {
219
+ }, be = r(L.Viewport, {
216
220
  _id: "aiSearchResults__ScrollAreaViewport"
217
- }), xt = L(({ children: e, ...t }, i) => {
221
+ }), Nt = A(({ children: e, ...t }, i) => {
218
222
  const s = X(), n = x(i, s), { tab: o } = u();
219
223
  return O(() => {
220
224
  o && s.current?.scrollTo({ top: 0, behavior: "auto" });
@@ -230,18 +234,18 @@ const ae = r("div", {
230
234
  ...t
231
235
  }
232
236
  );
233
- }), Bt = r(
234
- A.ScrollAreaScrollbar,
237
+ }), Ht = r(
238
+ L.ScrollAreaScrollbar,
235
239
  {
236
240
  _id: "aiSearchResults__ScrollAreaScrollbar"
237
241
  }
238
- ), Nt = r(A.ScrollAreaThumb, {
242
+ ), Mt = r(L.ScrollAreaThumb, {
239
243
  _id: "aiSearchResults__ScrollAreaThumb"
240
- }), Ht = r(A.Corner, {
244
+ }), Ut = r(L.Corner, {
241
245
  _id: "aiSearchResults__ScrollAreaCorner"
242
246
  }), Re = r(C.Content, {
243
247
  _id: "aiSearchResults__List"
244
- }), Mt = (e) => {
248
+ }), Ft = (e) => {
245
249
  const { children: t, ...i } = e, { results: s, tab: n } = u(), o = s[n] ?? [];
246
250
  return /* @__PURE__ */ a(
247
251
  Re,
@@ -257,12 +261,12 @@ const ae = r("div", {
257
261
  }, Pe = r(f.Item, {
258
262
  _id: "aiSearchResults__Item",
259
263
  asChild: !0
260
- }), Ut = L(({ item: e, onClick: t, onSelect: i, children: s, ...n }, o) => {
264
+ }), Dt = A(({ item: e, onClick: t, onSelect: i, children: s, ...n }, o) => {
261
265
  const {
262
- searchSettings: { shouldOpenLinksInNewTab: l, view: c, searchQueryParamKey: d }
266
+ searchSettings: { shouldOpenLinksInNewTab: d, view: c, searchQueryParamKey: l }
263
267
  } = p(), { logEvent: v } = z(), h = P((R) => R.search), { transitionsDisabled: m } = u(), S = P((R) => R.value), b = H(null), k = x(o, b), D = N((R) => {
264
268
  R.trigger === "keyboard" && b.current?.click();
265
- }, []), $ = N(() => {
269
+ }, []), W = N(() => {
266
270
  v({
267
271
  eventName: "search_result_clicked",
268
272
  properties: {
@@ -271,17 +275,17 @@ const ae = r("div", {
271
275
  url: e.url
272
276
  }
273
277
  });
274
- }, [v, h, e.title, e.url]), B = w(
275
- () => e.shouldOpenInNewTab !== void 0 ? e.shouldOpenInNewTab : l,
276
- [e.shouldOpenInNewTab, l]
277
- ), K = S === e.id, G = K || (S === "NONE" || S === T), Q = w(() => ({
278
- href: d ? se(e.url, h, d) : e.url,
278
+ }, [v, h, e.title, e.url]), B = T(
279
+ () => e.shouldOpenInNewTab !== void 0 ? e.shouldOpenInNewTab : d,
280
+ [e.shouldOpenInNewTab, d]
281
+ ), K = S === e.id, $ = K || (S === "NONE" || S === w), G = T(() => ({
282
+ href: l ? se(e.url, h, l) : e.url,
279
283
  isExternal: B,
280
284
  appendToUrl: e.appendToUrl,
281
285
  children: s,
282
286
  id: `aiSearchResults__Item-${e.id}`
283
- }), [e.url, B, e.appendToUrl, s, e.id, d, h]);
284
- return /* @__PURE__ */ a(W, { source: { ...e, isExternal: B }, children: /* @__PURE__ */ a(
287
+ }), [e.url, B, e.appendToUrl, s, e.id, l, h]);
288
+ return /* @__PURE__ */ a(V, { source: { ...e, isExternal: B }, children: /* @__PURE__ */ a(
285
289
  Pe,
286
290
  {
287
291
  ref: k,
@@ -291,51 +295,51 @@ const ae = r("div", {
291
295
  "data-disable-transitions": I(m),
292
296
  "data-view": c,
293
297
  onSelect: y(i, D),
294
- onClick: y(t, $),
298
+ onClick: y(t, W),
295
299
  "data-selected": I(K),
296
- tabIndex: G ? 0 : -1,
300
+ tabIndex: $ ? 0 : -1,
297
301
  ...n,
298
- children: /* @__PURE__ */ a(M, { ...Q })
302
+ children: /* @__PURE__ */ a(M, { ...G })
299
303
  }
300
304
  ) });
301
305
  }), ge = r("div", {
302
306
  _id: "aiSearchResults__ItemBreadcrumbs"
303
- }), we = (e) => {
307
+ }), Te = (e) => {
304
308
  const { source: t } = _(), { tab: i } = u();
305
309
  if (!t.breadcrumbs?.length) return null;
306
- const { children: s, ...n } = e, l = t.tabs?.find((c) => typeof c != "string" && c[0] === i)?.[1]?.breadcrumbs ?? t.breadcrumbs ?? [];
310
+ const { children: s, ...n } = e, d = t.tabs?.find((c) => typeof c != "string" && c[0] === i)?.[1]?.breadcrumbs ?? t.breadcrumbs ?? [];
307
311
  return /* @__PURE__ */ a(
308
312
  ge,
309
313
  {
310
314
  "aria-hidden": "true",
311
- children: E(s, l),
315
+ children: E(s, d),
312
316
  ...n
313
317
  }
314
318
  );
315
- }, Te = r(g, {
319
+ }, we = r(g, {
316
320
  _id: "aiSearchResults__ItemBreadcrumbIcon",
317
321
  iconKey: "breadcrumbSeparator"
318
322
  }), fe = r(U, {
319
323
  _id: "aiSearchResults__ItemIcon"
320
- }), Ft = (e) => {
324
+ }), Kt = (e) => {
321
325
  const { source: t } = _();
322
326
  return /* @__PURE__ */ a(fe, { iconSettings: t.icon, "data-type": t.type, ...e });
323
327
  }, Ee = r("span", {
324
328
  _id: "aiSearchResults__ItemTitle"
325
- }), Dt = (e) => {
329
+ }), Qt = (e) => {
326
330
  const { source: t } = _();
327
331
  return /* @__PURE__ */ a(Ee, { "data-type": t.type, children: t.title, ...e });
328
- }, Le = r("span", {
332
+ }, Ae = r("span", {
329
333
  _id: "aiSearchResults__ItemTag"
330
- }), Kt = (e) => {
334
+ }), Vt = (e) => {
331
335
  const { source: t } = _();
332
- return /* @__PURE__ */ a(Le, { "data-type": t.type, children: t.tag, ...e });
333
- }, Ae = r("span", {
336
+ return /* @__PURE__ */ a(Ae, { "data-type": t.type, children: t.tag, ...e });
337
+ }, Le = r("span", {
334
338
  _id: "aiSearchResults__ItemDescription"
335
- }), Vt = (e) => {
336
- const { source: t } = _(), { children: i, ...s } = e, n = w(() => t.description ? J(t.description) : [], [t.description]);
339
+ }), Wt = (e) => {
340
+ const { source: t } = _(), { children: i, ...s } = e, n = T(() => t.description ? J(t.description) : [], [t.description]);
337
341
  return n.length ? /* @__PURE__ */ a(
338
- Ae,
342
+ Le,
339
343
  {
340
344
  "data-type": t.type,
341
345
  "aria-hidden": "true",
@@ -345,7 +349,7 @@ const ae = r("div", {
345
349
  ) : null;
346
350
  }, ke = r("span", {
347
351
  _id: "aiSearchResults__ItemDescriptionPart"
348
- }), Wt = (e) => {
352
+ }), $t = (e) => {
349
353
  const { part: t, ...i } = e, { source: s } = _();
350
354
  return typeof t == "string" ? t : /* @__PURE__ */ a(
351
355
  ke,
@@ -358,7 +362,7 @@ const ae = r("div", {
358
362
  );
359
363
  }, ye = r(g, {
360
364
  _id: "aiSearchResults__ItemIndicator"
361
- }), $t = (e) => {
365
+ }), Gt = (e) => {
362
366
  const { source: t } = _(), {
363
367
  searchSettings: { view: i }
364
368
  } = p();
@@ -373,22 +377,22 @@ const ae = r("div", {
373
377
  }, Oe = r("div", {
374
378
  _id: "aiSearchResults__ItemPreview",
375
379
  "aria-hidden": !0
376
- }), Gt = (e) => {
380
+ }), jt = (e) => {
377
381
  const {
378
382
  searchSettings: { view: t, shouldOpenLinksInNewTab: i }
379
- } = p(), { results: s, tab: n } = u(), o = P((h) => h.value), l = s[n] ?? [], c = H(null), d = w(() => {
380
- if (o === T) return c.current;
381
- const h = l.find((m) => m.id === o);
383
+ } = p(), { results: s, tab: n } = u(), o = P((h) => h.value), d = s[n] ?? [], c = H(null), l = T(() => {
384
+ if (o === w) return c.current;
385
+ const h = d.find((m) => m.id === o);
382
386
  return c.current = h ?? null, h;
383
387
  }, [o]);
384
- if (t !== "dual-pane" || o === T || !d) return null;
385
- const v = d.shouldOpenInNewTab !== void 0 ? d.shouldOpenInNewTab : i;
386
- return /* @__PURE__ */ a(W, { source: { ...d, isExternal: v }, children: /* @__PURE__ */ a(Oe, { ...e }) });
387
- }, Qt = r("div", {
388
+ if (t !== "dual-pane" || o === w || !l) return null;
389
+ const v = l.shouldOpenInNewTab !== void 0 ? l.shouldOpenInNewTab : i;
390
+ return /* @__PURE__ */ a(V, { source: { ...l, isExternal: v }, children: /* @__PURE__ */ a(Oe, { ...e }) });
391
+ }, qt = r("div", {
388
392
  _id: "aiSearchResults__ItemPreview__Header"
389
393
  }), Ce = r(M, {
390
394
  _id: "aiSearchResults__ItemPreview__Heading"
391
- }), jt = (e) => {
395
+ }), zt = (e) => {
392
396
  const { source: t } = _();
393
397
  return /* @__PURE__ */ a(
394
398
  Ce,
@@ -402,13 +406,13 @@ const ae = r("div", {
402
406
  );
403
407
  }, xe = r("span", {
404
408
  _id: "aiSearchResults__ItemPreview__Title"
405
- }), qt = (e) => {
409
+ }), Jt = (e) => {
406
410
  const { source: t } = _();
407
411
  return /* @__PURE__ */ a(xe, { children: t.title, ...e });
408
412
  }, Be = r(g, {
409
413
  _id: "aiSearchResults__ItemPreview__Title__LinkIcon",
410
414
  iconKey: "openLinkInNewTab"
411
- }), zt = (e) => {
415
+ }), Xt = (e) => {
412
416
  const { source: t } = _();
413
417
  return /* @__PURE__ */ a(
414
418
  Be,
@@ -417,19 +421,19 @@ const ae = r("div", {
417
421
  ...e
418
422
  }
419
423
  );
420
- }, Jt = r(
421
- we,
424
+ }, Yt = r(
425
+ Te,
422
426
  {
423
427
  _id: "aiSearchResults__ItemPreview__Breadcrumbs"
424
428
  }
425
- ), Xt = r(
426
- Te,
429
+ ), Zt = r(
430
+ we,
427
431
  {
428
432
  _id: "aiSearchResults__ItemPreview__BreadcrumbIcon"
429
433
  }
430
434
  ), Ne = r(ie, {
431
435
  _id: "aiSearchResults__ItemPreview__Body"
432
- }), Yt = (e) => {
436
+ }), ei = (e) => {
433
437
  const { source: t } = _(), { resultsList: i } = u(), s = i.find((o) => o.id === t.id), {
434
438
  searchSettings: { shouldOpenLinksInNewTab: n }
435
439
  } = p();
@@ -443,38 +447,38 @@ const ae = r("div", {
443
447
  ) : null;
444
448
  }, He = r("div", {
445
449
  _id: "aiSearchResults__ItemPreview__Outline"
446
- }), Zt = (e) => {
450
+ }), ti = (e) => {
447
451
  const { source: t } = _(), { resultsList: i } = u();
448
452
  return i.find((o) => o.id === t.id)?.rootRecord.topLevelHeadings?.length ? /* @__PURE__ */ a(He, { ...e }) : null;
449
- }, ei = r("span", {
453
+ }, ii = r("span", {
450
454
  _id: "aiSearchResults__ItemPreview__Outline__Title",
451
455
  children: "On this page"
452
456
  }), Me = r("ul", {
453
457
  _id: "aiSearchResults__ItemPreview__Outline__List"
454
- }), ti = (e) => {
455
- const { source: t } = _(), { resultsList: i } = u(), s = i.find((d) => d.id === t.id), n = s?.rootRecord.topLevelHeadings;
458
+ }), ri = (e) => {
459
+ const { source: t } = _(), { resultsList: i } = u(), s = i.find((l) => l.id === t.id), n = s?.rootRecord.topLevelHeadings;
456
460
  if (!n?.length) return null;
457
- const o = n.map((d) => {
458
- const v = d?.anchor && d?.anchor === s?.content?.anchor, h = d?.anchor === s?.pathHeadings?.[0]?.anchor;
461
+ const o = n.map((l) => {
462
+ const v = l?.anchor && l?.anchor === s?.content?.anchor, h = l?.anchor === s?.pathHeadings?.[0]?.anchor;
459
463
  return {
460
- ...d,
464
+ ...l,
461
465
  isMatch: v || h
462
466
  };
463
- }), { children: l, ...c } = e;
464
- return /* @__PURE__ */ a(Me, { children: E(l, o), ...c });
467
+ }), { children: d, ...c } = e;
468
+ return /* @__PURE__ */ a(Me, { children: E(d, o), ...c });
465
469
  }, Ue = r(M, {
466
470
  _id: "aiSearchResults__ItemPreview__Outline__Item"
467
- }), ii = (e) => {
471
+ }), si = (e) => {
468
472
  const {
469
473
  searchSettings: { shouldOpenLinksInNewTab: t }
470
474
  } = p();
471
475
  return /* @__PURE__ */ a(Ue, { isExternal: t, ...e });
472
- }, ri = r(g, {
476
+ }, ni = r(g, {
473
477
  _id: "aiSearchResults__ItemPreview__Outline__ItemIcon",
474
478
  iconKey: "newLine"
475
479
  }), Fe = r("span", {
476
480
  _id: "aiSearchResults__ItemPreview__Outline__ItemText"
477
- }), si = (e) => /* @__PURE__ */ a(Fe, { ...e }), ni = r(
481
+ }), ai = (e) => /* @__PURE__ */ a(Fe, { ...e }), oi = r(
478
482
  U,
479
483
  {
480
484
  _id: "aiSearchResults__ItemPreview__Outline__ItemLinkIcon",
@@ -484,17 +488,17 @@ const ae = r("div", {
484
488
  }
485
489
  ), De = r("div", {
486
490
  _id: "aiSearchFooter"
487
- }), ai = (e) => {
491
+ }), ci = (e) => {
488
492
  const { hasContent: t } = u();
489
493
  return /* @__PURE__ */ a(De, { "data-has-results": I(t), ...e });
490
- }, oi = r("div", {
494
+ }, di = r("div", {
491
495
  _id: "aiSearchTagline__Container"
492
- }), ci = r("span", {
496
+ }), li = r("span", {
493
497
  _id: "aiSearchTagline__Text",
494
498
  children: "Powered by"
495
- }), li = r(q, {
499
+ }), ui = r(q, {
496
500
  _id: "aiSearchTagline__Logo"
497
- }), di = r("a", {
501
+ }), mi = r("a", {
498
502
  _id: "aiSearchTagline__BrandName",
499
503
  children: "inkeep",
500
504
  href: "https://www.inkeep.com/",
@@ -503,99 +507,103 @@ const ae = r("div", {
503
507
  });
504
508
  export {
505
509
  gt as AskAITrigger,
506
- wt as AskAITriggerIcon,
507
- ft as AskAITriggerIndicator,
508
- Tt as AskAITriggerLabel,
510
+ Tt as AskAITriggerIcon,
511
+ Et as AskAITriggerIndicator,
512
+ At as AskAITriggerIndicatorText,
513
+ wt as AskAITriggerLabel,
514
+ ft as AskAITriggerQuery,
509
515
  St as Content,
510
516
  bt as EmbeddedSearchInputIcon,
511
517
  gt as EmbeddedSearchPrimitiveAskAITrigger,
512
- wt as EmbeddedSearchPrimitiveAskAITriggerIcon,
513
- ft as EmbeddedSearchPrimitiveAskAITriggerIndicator,
514
- Tt as EmbeddedSearchPrimitiveAskAITriggerLabel,
518
+ Tt as EmbeddedSearchPrimitiveAskAITriggerIcon,
519
+ Et as EmbeddedSearchPrimitiveAskAITriggerIndicator,
520
+ At as EmbeddedSearchPrimitiveAskAITriggerIndicatorText,
521
+ wt as EmbeddedSearchPrimitiveAskAITriggerLabel,
522
+ ft as EmbeddedSearchPrimitiveAskAITriggerQuery,
515
523
  St as EmbeddedSearchPrimitiveContent,
516
- ai as EmbeddedSearchPrimitiveFooter,
524
+ ci as EmbeddedSearchPrimitiveFooter,
517
525
  Rt as EmbeddedSearchPrimitiveInput,
518
526
  pt as EmbeddedSearchPrimitiveInputGroup,
519
527
  Pt as EmbeddedSearchPrimitiveLoading,
520
- Et as EmbeddedSearchPrimitiveResults,
521
- Ot as EmbeddedSearchPrimitiveResultsContent,
522
- At as EmbeddedSearchPrimitiveResultsEmpty,
523
- Ut as EmbeddedSearchPrimitiveResultsItem,
524
- we as EmbeddedSearchPrimitiveResultsItemBreadcrumbs,
525
- Vt as EmbeddedSearchPrimitiveResultsItemDescription,
526
- Wt as EmbeddedSearchPrimitiveResultsItemDescriptionPart,
527
- Ft as EmbeddedSearchPrimitiveResultsItemIcon,
528
- $t as EmbeddedSearchPrimitiveResultsItemIndicator,
529
- Gt as EmbeddedSearchPrimitiveResultsItemPreview,
530
- Yt as EmbeddedSearchPrimitiveResultsItemPreviewBody,
531
- Xt as EmbeddedSearchPrimitiveResultsItemPreviewBreadcrumbIcon,
532
- jt as EmbeddedSearchPrimitiveResultsItemPreviewHeading,
533
- Zt as EmbeddedSearchPrimitiveResultsItemPreviewOutline,
534
- ii as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItem,
535
- ri as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemIcon,
536
- ni as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemLinkIcon,
537
- si as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemText,
538
- ti as EmbeddedSearchPrimitiveResultsItemPreviewOutlineList,
539
- ei as EmbeddedSearchPrimitiveResultsItemPreviewOutlineTitle,
540
- qt as EmbeddedSearchPrimitiveResultsItemPreviewTitle,
541
- zt as EmbeddedSearchPrimitiveResultsItemPreviewTitleLinkIcon,
542
- Kt as EmbeddedSearchPrimitiveResultsItemTag,
543
- Dt as EmbeddedSearchPrimitiveResultsItemTitle,
544
- Mt as EmbeddedSearchPrimitiveResultsList,
545
- Lt as EmbeddedSearchPrimitiveResultsLoading,
546
- Ct as EmbeddedSearchPrimitiveResultsScrollArea,
547
- xt as EmbeddedSearchPrimitiveResultsScrollAreaViewport,
548
- yt as EmbeddedSearchPrimitiveResultsTab,
549
- kt as EmbeddedSearchPrimitiveResultsTabList,
528
+ Lt as EmbeddedSearchPrimitiveResults,
529
+ xt as EmbeddedSearchPrimitiveResultsContent,
530
+ yt as EmbeddedSearchPrimitiveResultsEmpty,
531
+ Dt as EmbeddedSearchPrimitiveResultsItem,
532
+ Te as EmbeddedSearchPrimitiveResultsItemBreadcrumbs,
533
+ Wt as EmbeddedSearchPrimitiveResultsItemDescription,
534
+ $t as EmbeddedSearchPrimitiveResultsItemDescriptionPart,
535
+ Kt as EmbeddedSearchPrimitiveResultsItemIcon,
536
+ Gt as EmbeddedSearchPrimitiveResultsItemIndicator,
537
+ jt as EmbeddedSearchPrimitiveResultsItemPreview,
538
+ ei as EmbeddedSearchPrimitiveResultsItemPreviewBody,
539
+ Zt as EmbeddedSearchPrimitiveResultsItemPreviewBreadcrumbIcon,
540
+ zt as EmbeddedSearchPrimitiveResultsItemPreviewHeading,
541
+ ti as EmbeddedSearchPrimitiveResultsItemPreviewOutline,
542
+ si as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItem,
543
+ ni as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemIcon,
544
+ oi as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemLinkIcon,
545
+ ai as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemText,
546
+ ri as EmbeddedSearchPrimitiveResultsItemPreviewOutlineList,
547
+ ii as EmbeddedSearchPrimitiveResultsItemPreviewOutlineTitle,
548
+ Jt as EmbeddedSearchPrimitiveResultsItemPreviewTitle,
549
+ Xt as EmbeddedSearchPrimitiveResultsItemPreviewTitleLinkIcon,
550
+ Vt as EmbeddedSearchPrimitiveResultsItemTag,
551
+ Qt as EmbeddedSearchPrimitiveResultsItemTitle,
552
+ Ft as EmbeddedSearchPrimitiveResultsList,
553
+ kt as EmbeddedSearchPrimitiveResultsLoading,
554
+ Bt as EmbeddedSearchPrimitiveResultsScrollArea,
555
+ Nt as EmbeddedSearchPrimitiveResultsScrollAreaViewport,
556
+ Ct as EmbeddedSearchPrimitiveResultsTab,
557
+ Ot as EmbeddedSearchPrimitiveResultsTabList,
550
558
  _t as EmbeddedSearchPrimitiveRoot,
551
559
  vt as EmbeddedSearchPrimitiveWrapper,
552
- ai as Footer,
560
+ ci as Footer,
553
561
  Rt as Input,
554
562
  pt as InputGroup,
555
563
  bt as InputIcon,
556
564
  Pt as Loading,
557
565
  ce as PrimitiveContent,
558
- hi as Provider,
559
- Et as Results,
560
- Ot as ResultsContent,
561
- At as ResultsEmpty,
562
- Ut as ResultsItem,
563
- Te as ResultsItemBreadcrumbIcon,
564
- we as ResultsItemBreadcrumbs,
565
- Vt as ResultsItemDescription,
566
- Wt as ResultsItemDescriptionPart,
567
- Ft as ResultsItemIcon,
568
- $t as ResultsItemIndicator,
569
- Gt as ResultsItemPreview,
570
- Yt as ResultsItemPreviewBody,
571
- Xt as ResultsItemPreviewBreadcrumbIcon,
572
- Jt as ResultsItemPreviewBreadcrumbs,
573
- Qt as ResultsItemPreviewHeader,
574
- jt as ResultsItemPreviewHeading,
575
- Zt as ResultsItemPreviewOutline,
576
- ii as ResultsItemPreviewOutlineItem,
577
- ri as ResultsItemPreviewOutlineItemIcon,
578
- ni as ResultsItemPreviewOutlineItemLinkIcon,
579
- si as ResultsItemPreviewOutlineItemText,
580
- ti as ResultsItemPreviewOutlineList,
581
- ei as ResultsItemPreviewOutlineTitle,
582
- qt as ResultsItemPreviewTitle,
583
- zt as ResultsItemPreviewTitleLinkIcon,
584
- Kt as ResultsItemTag,
585
- Dt as ResultsItemTitle,
586
- Mt as ResultsList,
587
- Lt as ResultsLoading,
588
- Ct as ResultsScrollArea,
589
- Ht as ResultsScrollAreaCorner,
590
- Bt as ResultsScrollAreaScrollbar,
591
- Nt as ResultsScrollAreaThumb,
592
- xt as ResultsScrollAreaViewport,
593
- yt as ResultsTab,
594
- kt as ResultsTabList,
566
+ vi as Provider,
567
+ Lt as Results,
568
+ xt as ResultsContent,
569
+ yt as ResultsEmpty,
570
+ Dt as ResultsItem,
571
+ we as ResultsItemBreadcrumbIcon,
572
+ Te as ResultsItemBreadcrumbs,
573
+ Wt as ResultsItemDescription,
574
+ $t as ResultsItemDescriptionPart,
575
+ Kt as ResultsItemIcon,
576
+ Gt as ResultsItemIndicator,
577
+ jt as ResultsItemPreview,
578
+ ei as ResultsItemPreviewBody,
579
+ Zt as ResultsItemPreviewBreadcrumbIcon,
580
+ Yt as ResultsItemPreviewBreadcrumbs,
581
+ qt as ResultsItemPreviewHeader,
582
+ zt as ResultsItemPreviewHeading,
583
+ ti as ResultsItemPreviewOutline,
584
+ si as ResultsItemPreviewOutlineItem,
585
+ ni as ResultsItemPreviewOutlineItemIcon,
586
+ oi as ResultsItemPreviewOutlineItemLinkIcon,
587
+ ai as ResultsItemPreviewOutlineItemText,
588
+ ri as ResultsItemPreviewOutlineList,
589
+ ii as ResultsItemPreviewOutlineTitle,
590
+ Jt as ResultsItemPreviewTitle,
591
+ Xt as ResultsItemPreviewTitleLinkIcon,
592
+ Vt as ResultsItemTag,
593
+ Qt as ResultsItemTitle,
594
+ Ft as ResultsList,
595
+ kt as ResultsLoading,
596
+ Bt as ResultsScrollArea,
597
+ Ut as ResultsScrollAreaCorner,
598
+ Ht as ResultsScrollAreaScrollbar,
599
+ Mt as ResultsScrollAreaThumb,
600
+ Nt as ResultsScrollAreaViewport,
601
+ Ct as ResultsTab,
602
+ Ot as ResultsTabList,
595
603
  _t as Root,
596
- di as TaglineBrandName,
597
- oi as TaglineContainer,
598
- li as TaglineLogo,
599
- ci as TaglineText,
604
+ mi as TaglineBrandName,
605
+ di as TaglineContainer,
606
+ ui as TaglineLogo,
607
+ li as TaglineText,
600
608
  vt as Wrapper
601
609
  };