@inkeep/cxkit-primitives 0.5.116 → 0.5.117

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,21 +1,21 @@
1
1
  "use client";
2
2
  import { jsx as a } from "react/jsx-runtime";
3
3
  import { Command as E, useCommandState as g, useCommandStore as j } from "../atoms/cmdk/index.js";
4
- import { ikp as i } from "./factory.js";
4
+ import { ikp as r } from "./factory.js";
5
+ import ee from "./tagline-logo-icon.js";
5
6
  import { dataAttr as v, maybeRender as A } from "../utils/misc.js";
6
- import { forwardRef as k, useMemo as w, useState as ee, useEffect as C, useCallback as y, useRef as K } from "react";
7
+ import { forwardRef as k, useMemo as w, useState as te, useEffect as C, useCallback as y, useRef as K } from "react";
7
8
  import { useSearch as u } from "./embedded-search/search-provider.js";
8
- import { SearchProvider as Rr } from "./embedded-search/search-provider.js";
9
- import te from "./tagline-logo-icon.js";
9
+ import { SearchProvider as Ri } from "./embedded-search/search-provider.js";
10
10
  import { CustomIcon as T } from "../atoms/icons/custom-icon.js";
11
11
  import * as L from "@radix-ui/react-scroll-area";
12
12
  import * as x from "@radix-ui/react-tabs";
13
13
  import { useInkeepConfig as S } from "../providers/config-provider.js";
14
- import { useSearchEvents as re } from "../providers/search-events-provider.js";
14
+ import { useSearchEvents as ie } from "../providers/search-events-provider.js";
15
15
  import { LinkWithQueryParams as U } from "../atoms/link.js";
16
16
  import { SourceItemProvider as q, useSourceItem as p } from "../providers/source-item-provider.js";
17
17
  import { BuiltInIconRenderer as D } from "../atoms/icons/built-in-icon-renderer.js";
18
- import { highlightEmphasis as ie } from "../utils/highlight-emphasis.js";
18
+ import { highlightEmphasis as re } from "../utils/highlight-emphasis.js";
19
19
  import { useScrollingFades as se } from "../hooks/use-scrolling-fades.js";
20
20
  import { useColorModeValue as ne } from "@inkeep/cxkit-color-mode";
21
21
  import ae from "../atoms/avatars/ai.js";
@@ -29,53 +29,53 @@ import { useSearchFetch as le } from "./embedded-search/use-search-filter.js";
29
29
  import { getUrlWithQuery as G } from "./embedded-search/url-query.js";
30
30
  import { ASK_AI_TRIGGER_VALUE as f } from "../constants/search.js";
31
31
  import { useWidgetAutoFocus as de } from "./modal/widget-auto-focus.js";
32
- const ue = i("div", {
32
+ const ue = r("div", {
33
33
  _id: "aiSearchWrapper"
34
34
  }), Rt = (e) => {
35
35
  const {
36
36
  searchSettings: { view: t }
37
- } = S(), { isHidden: r, hasContent: s } = u(), n = F("(max-width: 768px)"), o = z();
37
+ } = S(), { isHidden: i, hasContent: s } = u(), n = F("(max-width: 768px)"), o = z();
38
38
  return /* @__PURE__ */ a(
39
39
  ue,
40
40
  {
41
- "data-hidden": v(r),
41
+ "data-hidden": v(i),
42
42
  "data-has-content": v(s),
43
43
  "data-in-modal": v(!!o),
44
44
  "data-mobile": v(n),
45
45
  "data-view": t,
46
- "data-dual-pane-search-expanded": v(s && t === "dual-pane" && !r),
46
+ "data-dual-pane-search-expanded": v(s && t === "dual-pane" && !i),
47
47
  ...e
48
48
  }
49
49
  );
50
- }, me = i("div", {
50
+ }, me = r("div", {
51
51
  _id: "aiSearchRoot"
52
52
  }), Pt = (e) => {
53
- const { isHidden: t } = u(), r = F("(max-width: 768px)");
54
- return /* @__PURE__ */ a(me, { "data-hidden": v(t), "data-mobile": v(r), ...e });
55
- }, he = i(E.List, {
53
+ const { isHidden: t } = u(), i = F("(max-width: 768px)");
54
+ return /* @__PURE__ */ a(me, { "data-hidden": v(t), "data-mobile": v(i), ...e });
55
+ }, he = r(E.List, {
56
56
  _id: "aiSearchContent"
57
57
  }), gt = k((e, t) => {
58
- const r = g((s) => s.value);
58
+ const i = g((s) => s.value);
59
59
  return /* @__PURE__ */ a(
60
60
  he,
61
61
  {
62
- "aria-activedescendant": `aiSearchResults__Item-${r}`,
62
+ "aria-activedescendant": `aiSearchResults__Item-${i}`,
63
63
  ...e,
64
64
  ref: t
65
65
  }
66
66
  );
67
- }), Tt = i("div", {
67
+ }), Tt = r("div", {
68
68
  _id: "aiSearchInputGroup"
69
- }), wt = i(T, {
69
+ }), wt = r(T, {
70
70
  _id: "aiSearchInputIcon",
71
71
  iconKey: "search"
72
- }), Ie = i(E.Input, {
72
+ }), Ie = r(E.Input, {
73
73
  _id: "aiSearchInput"
74
- }), ft = k(({ onInput: e, ...t }, r) => {
74
+ }), ft = k(({ onInput: e, ...t }, i) => {
75
75
  const { inputRef: s, shouldAutoFocusInput: n } = u(), o = g((m) => m.value), l = F("(max-width: 768px)"), { searchSettings: c } = S(), d = w(
76
76
  () => c.placeholder || (l ? "Search..." : "Search for anything..."),
77
77
  [c.placeholder, l]
78
- ), _ = N(r, s);
78
+ ), _ = N(i, s);
79
79
  return de("search", s, n), le(), /* @__PURE__ */ a(
80
80
  Ie,
81
81
  {
@@ -85,7 +85,7 @@ const ue = i("div", {
85
85
  ...t
86
86
  }
87
87
  );
88
- }), ve = i(D, {
88
+ }), ve = r(D, {
89
89
  _id: "aiSearchLoading",
90
90
  iconSettings: {
91
91
  builtIn: "LuLoaderCircle"
@@ -93,11 +93,11 @@ const ue = i("div", {
93
93
  }), Et = (e) => {
94
94
  const { loading: t } = u();
95
95
  return t ? /* @__PURE__ */ a(ve, { ...e }) : null;
96
- }, _e = i(E.Item, {
96
+ }, _e = r(E.Item, {
97
97
  _id: "aiAskAITrigger",
98
98
  value: f
99
99
  }), At = (e) => {
100
- const { results: t, tab: r } = u(), s = j(), n = t[r]?.[0]?.id ?? "NONE";
100
+ const { results: t, tab: i } = u(), s = j(), n = t[i]?.[0]?.id ?? "NONE";
101
101
  return /* @__PURE__ */ a(
102
102
  _e,
103
103
  {
@@ -107,10 +107,10 @@ const ue = i("div", {
107
107
  onPointerLeave: () => s.setState("value", n, !0)
108
108
  }
109
109
  );
110
- }, pe = i("img", {
110
+ }, pe = r("img", {
111
111
  _id: "aiAskAITrigger__Icon"
112
112
  }), kt = (e) => {
113
- const { aiChatSettings: t } = S(), { aiAssistantAvatar: r } = t ?? {}, s = typeof r == "string" ? r : r?.light, n = (typeof r == "string" ? r : r?.dark) ?? s, o = ne(s, n), [l, c] = ee(o);
113
+ const { aiChatSettings: t } = S(), { aiAssistantAvatar: i } = t ?? {}, s = typeof i == "string" ? i : i?.light, n = (typeof i == "string" ? i : i?.dark) ?? s, o = ne(s, n), [l, c] = te(o);
114
114
  return C(() => {
115
115
  c(o);
116
116
  }, [o]), /* @__PURE__ */ a(pe, { asChild: !0, ...e, children: l ? (
@@ -128,21 +128,21 @@ const ue = i("div", {
128
128
  }
129
129
  )
130
130
  ) : /* @__PURE__ */ a(ae, { "data-type": "icon", ...e }) });
131
- }, Lt = i("span", {
131
+ }, Lt = r("span", {
132
132
  _id: "aiAskAITrigger__Label"
133
- }), yt = i("span", {
133
+ }), yt = r("span", {
134
134
  _id: "aiAskAITrigger__Query"
135
- }), Ot = i(T, {
135
+ }), Ot = r(T, {
136
136
  _id: "aiAskAITrigger__Indicator",
137
137
  iconKey: "openLinkInSameTab"
138
- }), Ct = i("span", {
138
+ }), Ct = r("span", {
139
139
  _id: "aiAskAITrigger__IndicatorText"
140
- }), be = i(x.Root, {
140
+ }), be = r(x.Root, {
141
141
  _id: "aiSearchResults"
142
142
  }), xt = (e) => {
143
143
  const {
144
144
  searchSettings: { view: t }
145
- } = S(), { tab: r, setTab: s, hasContent: n, isHidden: o, disableTransition: l, results: c, defaultTab: d } = u(), _ = j(), m = y(
145
+ } = S(), { tab: i, setTab: s, hasContent: n, isHidden: o, disableTransition: l, results: c, defaultTab: d } = u(), _ = j(), m = y(
146
146
  (h) => {
147
147
  l(), s(h);
148
148
  const b = c[h][0] ? c[h][0]?.id : void 0;
@@ -151,7 +151,7 @@ const ue = i("div", {
151
151
  [c, l]
152
152
  );
153
153
  return C(() => {
154
- let h = r in c ? r : Object.keys(c)[0];
154
+ let h = i in c ? i : Object.keys(c)[0];
155
155
  if (!c[h]?.length) {
156
156
  const R = Object.keys(c).find((P) => c[P]?.length);
157
157
  R ? h = R : h = d;
@@ -163,40 +163,40 @@ const ue = i("div", {
163
163
  }, [c]), /* @__PURE__ */ a(
164
164
  be,
165
165
  {
166
- value: r,
166
+ value: i,
167
167
  onValueChange: m,
168
168
  "data-has-content": v(n),
169
169
  "data-dual-pane-search-expanded": v(n && t === "dual-pane" && !o),
170
170
  ...e
171
171
  }
172
172
  );
173
- }, Se = i("div", {
173
+ }, Se = r("div", {
174
174
  _id: "aiSearchResults__Loading"
175
175
  }), Nt = (e) => {
176
- const { loading: t, resultsList: r } = u();
177
- return !t || r.length > 0 ? null : /* @__PURE__ */ a(Se, { ...e });
178
- }, Re = i(E.Empty, {
176
+ const { loading: t, resultsList: i } = u();
177
+ return !t || i.length > 0 ? null : /* @__PURE__ */ a(Se, { ...e });
178
+ }, Re = r(E.Empty, {
179
179
  _id: "aiSearchResults__Empty"
180
180
  }), Bt = (e) => {
181
- const t = g((l) => l.search), { loading: r, results: s, tab: n } = u(), o = s[n]?.length;
182
- return r || !t || o ? null : /* @__PURE__ */ a(Re, { children: "No results found.", ...e });
183
- }, Pe = i(x.List, {
181
+ const t = g((l) => l.search), { loading: i, results: s, tab: n } = u(), o = s[n]?.length;
182
+ return i || !t || o ? null : /* @__PURE__ */ a(Re, { children: "No results found.", ...e });
183
+ }, Pe = r(x.List, {
184
184
  _id: "aiSearchResults__TabList"
185
185
  }), Ht = (e) => {
186
- const { children: t, ...r } = e, {
186
+ const { children: t, ...i } = e, {
187
187
  searchSettings: { tabs: s }
188
188
  } = S(), { results: n, loading: o, resultsList: l } = u();
189
189
  if (o && l.length === 0) return null;
190
190
  const c = Object.keys(n);
191
- return !s.length || !c.length ? null : /* @__PURE__ */ a(Pe, { tabIndex: -1, children: A(t, c), ...r });
192
- }, ge = i(x.Trigger, {
191
+ return !s.length || !c.length ? null : /* @__PURE__ */ a(Pe, { tabIndex: -1, children: A(t, c), ...i });
192
+ }, ge = r(x.Trigger, {
193
193
  _id: "aiSearchResults__Tab"
194
194
  }), Mt = k((e, t) => {
195
- const r = K(null), s = N(t, r), { tab: n, onClick: o, ...l } = e, { results: c, tab: d, inputRef: _ } = u(), m = c[n].length, h = n === d, b = () => {
195
+ const i = K(null), s = N(t, i), { tab: n, onClick: o, ...l } = e, { results: c, tab: d, inputRef: _ } = u(), m = c[n].length, h = n === d, b = () => {
196
196
  _.current?.focus();
197
197
  }, R = oe();
198
198
  return C(() => {
199
- h && R?.shadowHost?.shadowRoot?.activeElement?.hasAttribute("ikp-tab") && r.current?.focus();
199
+ h && R?.shadowHost?.shadowRoot?.activeElement?.hasAttribute("ikp-tab") && i.current?.focus();
200
200
  }, [h]), /* @__PURE__ */ a(
201
201
  ge,
202
202
  {
@@ -209,17 +209,17 @@ const ue = i("div", {
209
209
  ...l
210
210
  }
211
211
  );
212
- }), Kt = i("div", {
212
+ }), Kt = r("div", {
213
213
  _id: "aiSearchResults__Content"
214
- }), Te = i(L.Root, {
214
+ }), Te = r(L.Root, {
215
215
  _id: "aiSearchResults__ScrollArea"
216
216
  }), Ut = (e) => {
217
- const { loading: t, resultsList: r } = u();
218
- return t && r.length === 0 ? null : /* @__PURE__ */ a(Te, { tabIndex: -1, ...e });
219
- }, we = i(L.Viewport, {
217
+ const { loading: t, resultsList: i } = u();
218
+ return t && i.length === 0 ? null : /* @__PURE__ */ a(Te, { tabIndex: -1, ...e });
219
+ }, we = r(L.Viewport, {
220
220
  _id: "aiSearchResults__ScrollAreaViewport"
221
- }), Dt = k(({ children: e, ...t }, r) => {
222
- const s = se(), n = N(r, s), { tab: o } = u();
221
+ }), Dt = k(({ children: e, ...t }, i) => {
222
+ const s = se(), n = N(i, s), { tab: o } = u();
223
223
  return C(() => {
224
224
  o && s.current?.scrollTo({ top: 0, behavior: "auto" });
225
225
  }, [o]), /* @__PURE__ */ a(
@@ -234,19 +234,19 @@ const ue = i("div", {
234
234
  ...t
235
235
  }
236
236
  );
237
- }), Ft = i(
237
+ }), Ft = r(
238
238
  L.ScrollAreaScrollbar,
239
239
  {
240
240
  _id: "aiSearchResults__ScrollAreaScrollbar"
241
241
  }
242
- ), Qt = i(L.ScrollAreaThumb, {
242
+ ), Qt = r(L.ScrollAreaThumb, {
243
243
  _id: "aiSearchResults__ScrollAreaThumb"
244
- }), Vt = i(L.Corner, {
244
+ }), Vt = r(L.Corner, {
245
245
  _id: "aiSearchResults__ScrollAreaCorner"
246
- }), fe = i(x.Content, {
246
+ }), fe = r(x.Content, {
247
247
  _id: "aiSearchResults__List"
248
248
  }), Wt = (e) => {
249
- const { children: t, ...r } = e, { results: s, tab: n } = u(), o = s[n] ?? [];
249
+ const { children: t, ...i } = e, { results: s, tab: n } = u(), o = s[n] ?? [];
250
250
  return /* @__PURE__ */ a(
251
251
  fe,
252
252
  {
@@ -255,16 +255,16 @@ const ue = i("div", {
255
255
  "aria-label": "Search results",
256
256
  children: A(t, o),
257
257
  tabIndex: -1,
258
- ...r
258
+ ...i
259
259
  }
260
260
  );
261
- }, Ee = i(E.Item, {
261
+ }, Ee = r(E.Item, {
262
262
  _id: "aiSearchResults__Item",
263
263
  asChild: !0
264
- }), $t = k(({ item: e, onClick: t, onSelect: r, children: s, ...n }, o) => {
264
+ }), $t = k(({ item: e, onClick: t, onSelect: i, children: s, ...n }, o) => {
265
265
  const {
266
266
  searchSettings: { shouldOpenLinksInNewTab: l, view: c, searchQueryParamKey: d }
267
- } = S(), { logEvent: _ } = re(), m = g((I) => I.search), { transitionsDisabled: h } = u(), b = g((I) => I.value), R = K(null), P = z(), Q = N(o, R), J = y((I) => {
267
+ } = S(), { logEvent: _ } = ie(), m = g((I) => I.search), { transitionsDisabled: h } = u(), b = g((I) => I.value), R = K(null), P = z(), Q = N(o, R), J = y((I) => {
268
268
  I.trigger === "keyboard" && R.current?.click();
269
269
  }, []), X = y(
270
270
  (I) => {
@@ -328,7 +328,7 @@ const ue = i("div", {
328
328
  "data-breadcrumbs": !!e.breadcrumbs?.length,
329
329
  "data-disable-transitions": v(h),
330
330
  "data-view": c,
331
- onSelect: O(r, J),
331
+ onSelect: O(i, J),
332
332
  onClick: O(t, X),
333
333
  "data-selected": v(V),
334
334
  tabIndex: Y ? 0 : -1,
@@ -336,12 +336,12 @@ const ue = i("div", {
336
336
  children: /* @__PURE__ */ a(U, { ...Z })
337
337
  }
338
338
  ) });
339
- }), Ae = i("div", {
339
+ }), Ae = r("div", {
340
340
  _id: "aiSearchResults__ItemBreadcrumbs"
341
341
  }), ke = (e) => {
342
- const { source: t } = p(), { tab: r } = u();
342
+ const { source: t } = p(), { tab: i } = u();
343
343
  if (!t.breadcrumbs?.length) return null;
344
- const { children: s, ...n } = e, l = t.tabs?.find((c) => typeof c != "string" && c[0] === r)?.[1]?.breadcrumbs ?? t.breadcrumbs ?? [];
344
+ const { children: s, ...n } = e, l = t.tabs?.find((c) => typeof c != "string" && c[0] === i)?.[1]?.breadcrumbs ?? t.breadcrumbs ?? [];
345
345
  return /* @__PURE__ */ a(
346
346
  Ae,
347
347
  {
@@ -350,83 +350,83 @@ const ue = i("div", {
350
350
  ...n
351
351
  }
352
352
  );
353
- }, Le = i(T, {
353
+ }, Le = r(T, {
354
354
  _id: "aiSearchResults__ItemBreadcrumbIcon",
355
355
  iconKey: "breadcrumbSeparator"
356
- }), ye = i(D, {
356
+ }), ye = r(D, {
357
357
  _id: "aiSearchResults__ItemIcon"
358
358
  }), Gt = (e) => {
359
359
  const { source: t } = p();
360
360
  return /* @__PURE__ */ a(ye, { iconSettings: t.icon, "data-type": t.type, ...e });
361
- }, Oe = i("span", {
361
+ }, Oe = r("span", {
362
362
  _id: "aiSearchResults__ItemTitle"
363
363
  }), jt = (e) => {
364
364
  const { source: t } = p();
365
365
  return /* @__PURE__ */ a(Oe, { "data-type": t.type, children: t.title, ...e });
366
- }, Ce = i("span", {
366
+ }, Ce = r("span", {
367
367
  _id: "aiSearchResults__ItemTag"
368
368
  }), qt = (e) => {
369
369
  const { source: t } = p();
370
370
  return /* @__PURE__ */ a(Ce, { "data-type": t.type, children: t.tag, ...e });
371
- }, xe = i("span", {
371
+ }, xe = r("span", {
372
372
  _id: "aiSearchResults__ItemDescription"
373
373
  }), zt = (e) => {
374
- const { source: t } = p(), { children: r, ...s } = e, n = w(() => t.description ? ie(t.description) : [], [t.description]);
374
+ const { source: t } = p(), { children: i, ...s } = e, n = w(() => t.description ? re(t.description) : [], [t.description]);
375
375
  return n.length ? /* @__PURE__ */ a(
376
376
  xe,
377
377
  {
378
378
  "data-type": t.type,
379
379
  "aria-hidden": "true",
380
- children: A(r, n),
380
+ children: A(i, n),
381
381
  ...s
382
382
  }
383
383
  ) : null;
384
- }, Ne = i("span", {
384
+ }, Ne = r("span", {
385
385
  _id: "aiSearchResults__ItemDescriptionPart"
386
386
  }), Jt = (e) => {
387
- const { part: t, ...r } = e, { source: s } = p();
387
+ const { part: t, ...i } = e, { source: s } = p();
388
388
  return typeof t == "string" ? t : /* @__PURE__ */ a(
389
389
  Ne,
390
390
  {
391
391
  "data-type": s.type,
392
392
  children: t.content,
393
393
  "data-highlighted": v(t.highlighted),
394
- ...r
394
+ ...i
395
395
  }
396
396
  );
397
- }, Be = i(T, {
397
+ }, Be = r(T, {
398
398
  _id: "aiSearchResults__ItemIndicator"
399
399
  }), Xt = (e) => {
400
400
  const { source: t } = p(), {
401
- searchSettings: { view: r }
401
+ searchSettings: { view: i }
402
402
  } = S();
403
403
  return /* @__PURE__ */ a(
404
404
  Be,
405
405
  {
406
406
  iconKey: t.isExternal ? "openLinkInNewTab" : "openLinkInSameTab",
407
- "data-view": r,
407
+ "data-view": i,
408
408
  ...e
409
409
  }
410
410
  );
411
- }, He = i("div", {
411
+ }, He = r("div", {
412
412
  _id: "aiSearchResults__ItemPreview",
413
413
  "aria-hidden": !0
414
414
  }), Yt = (e) => {
415
415
  const {
416
- searchSettings: { view: t, shouldOpenLinksInNewTab: r }
416
+ searchSettings: { view: t, shouldOpenLinksInNewTab: i }
417
417
  } = S(), { results: s, tab: n } = u(), o = g((m) => m.value), l = s[n] ?? [], c = K(null), d = w(() => {
418
418
  if (o === f) return c.current;
419
419
  const m = l.find((h) => h.id === o);
420
420
  return c.current = m ?? null, m;
421
421
  }, [o]);
422
422
  if (t !== "dual-pane" || o === f || !d) return null;
423
- const _ = d.shouldOpenInNewTab !== void 0 ? d.shouldOpenInNewTab : r;
423
+ const _ = d.shouldOpenInNewTab !== void 0 ? d.shouldOpenInNewTab : i;
424
424
  return /* @__PURE__ */ a(q, { source: { ...d, isExternal: _ }, children: /* @__PURE__ */ a(He, { ...e }) });
425
- }, Zt = i("div", {
425
+ }, Zt = r("div", {
426
426
  _id: "aiSearchResults__ItemPreview__Header"
427
- }), Me = i(U, {
427
+ }), Me = r(U, {
428
428
  _id: "aiSearchResults__ItemPreview__Heading"
429
- }), er = (e) => {
429
+ }), ei = (e) => {
430
430
  const { source: t } = p();
431
431
  return /* @__PURE__ */ a(
432
432
  Me,
@@ -438,15 +438,15 @@ const ue = i("div", {
438
438
  ...e
439
439
  }
440
440
  );
441
- }, Ke = i("span", {
441
+ }, Ke = r("span", {
442
442
  _id: "aiSearchResults__ItemPreview__Title"
443
- }), tr = (e) => {
443
+ }), ti = (e) => {
444
444
  const { source: t } = p();
445
445
  return /* @__PURE__ */ a(Ke, { children: t.title, ...e });
446
- }, Ue = i(T, {
446
+ }, Ue = r(T, {
447
447
  _id: "aiSearchResults__ItemPreview__Title__LinkIcon",
448
448
  iconKey: "openLinkInNewTab"
449
- }), rr = (e) => {
449
+ }), ii = (e) => {
450
450
  const { source: t } = p();
451
451
  return /* @__PURE__ */ a(
452
452
  Ue,
@@ -455,20 +455,20 @@ const ue = i("div", {
455
455
  ...e
456
456
  }
457
457
  );
458
- }, ir = i(
458
+ }, ri = r(
459
459
  ke,
460
460
  {
461
461
  _id: "aiSearchResults__ItemPreview__Breadcrumbs"
462
462
  }
463
- ), sr = i(
463
+ ), si = r(
464
464
  Le,
465
465
  {
466
466
  _id: "aiSearchResults__ItemPreview__BreadcrumbIcon"
467
467
  }
468
- ), De = i(ce, {
468
+ ), De = r(ce, {
469
469
  _id: "aiSearchResults__ItemPreview__Body"
470
- }), nr = (e) => {
471
- const { source: t } = p(), { resultsList: r } = u(), s = r.find((o) => o.id === t.id), {
470
+ }), ni = (e) => {
471
+ const { source: t } = p(), { resultsList: i } = u(), s = i.find((o) => o.id === t.id), {
472
472
  searchSettings: { shouldOpenLinksInNewTab: n }
473
473
  } = S();
474
474
  return s ? /* @__PURE__ */ a(
@@ -479,18 +479,18 @@ const ue = i("div", {
479
479
  ...e
480
480
  }
481
481
  ) : null;
482
- }, Fe = i("div", {
482
+ }, Fe = r("div", {
483
483
  _id: "aiSearchResults__ItemPreview__Outline"
484
- }), ar = (e) => {
485
- const { source: t } = p(), { resultsList: r } = u();
486
- return r.find((o) => o.id === t.id)?.rootRecord.topLevelHeadings?.length ? /* @__PURE__ */ a(Fe, { ...e }) : null;
487
- }, or = i("span", {
484
+ }), ai = (e) => {
485
+ const { source: t } = p(), { resultsList: i } = u();
486
+ return i.find((o) => o.id === t.id)?.rootRecord.topLevelHeadings?.length ? /* @__PURE__ */ a(Fe, { ...e }) : null;
487
+ }, oi = r("span", {
488
488
  _id: "aiSearchResults__ItemPreview__Outline__Title",
489
489
  children: "On this page"
490
- }), Qe = i("ul", {
490
+ }), Qe = r("ul", {
491
491
  _id: "aiSearchResults__ItemPreview__Outline__List"
492
- }), cr = (e) => {
493
- const { source: t } = p(), { resultsList: r } = u(), s = r.find((d) => d.id === t.id), n = s?.rootRecord.topLevelHeadings;
492
+ }), ci = (e) => {
493
+ const { source: t } = p(), { resultsList: i } = u(), s = i.find((d) => d.id === t.id), n = s?.rootRecord.topLevelHeadings;
494
494
  if (!n?.length) return null;
495
495
  const o = n.map((d) => {
496
496
  const _ = d?.anchor && d?.anchor === s?.content?.anchor, m = d?.anchor === s?.pathHeadings?.[0]?.anchor;
@@ -500,19 +500,19 @@ const ue = i("div", {
500
500
  };
501
501
  }), { children: l, ...c } = e;
502
502
  return /* @__PURE__ */ a(Qe, { children: A(l, o), ...c });
503
- }, Ve = i(U, {
503
+ }, Ve = r(U, {
504
504
  _id: "aiSearchResults__ItemPreview__Outline__Item"
505
- }), lr = (e) => {
505
+ }), li = (e) => {
506
506
  const {
507
507
  searchSettings: { shouldOpenLinksInNewTab: t }
508
508
  } = S();
509
509
  return /* @__PURE__ */ a(Ve, { isExternal: t, ...e });
510
- }, dr = i(T, {
510
+ }, di = r(T, {
511
511
  _id: "aiSearchResults__ItemPreview__Outline__ItemIcon",
512
512
  iconKey: "newLine"
513
- }), We = i("span", {
513
+ }), We = r("span", {
514
514
  _id: "aiSearchResults__ItemPreview__Outline__ItemText"
515
- }), ur = (e) => /* @__PURE__ */ a(We, { ...e }), mr = i(
515
+ }), ui = (e) => /* @__PURE__ */ a(We, { ...e }), mi = r(
516
516
  D,
517
517
  {
518
518
  _id: "aiSearchResults__ItemPreview__Outline__ItemLinkIcon",
@@ -520,24 +520,24 @@ const ue = i("div", {
520
520
  builtIn: "LuLink"
521
521
  }
522
522
  }
523
- ), $e = i("div", {
523
+ ), $e = r("div", {
524
524
  _id: "aiSearchFooter"
525
- }), hr = (e) => {
525
+ }), hi = (e) => {
526
526
  const { hasContent: t } = u();
527
527
  return /* @__PURE__ */ a($e, { "data-has-results": v(t), ...e });
528
- }, Ir = i("div", {
528
+ }, Ii = r("div", {
529
529
  _id: "aiSearchTagline__Container"
530
- }), vr = i("span", {
530
+ }), vi = r("span", {
531
531
  _id: "aiSearchTagline__Text",
532
532
  children: "Powered by"
533
- }), _r = i(te, {
534
- _id: "aiSearchTagline__Logo"
535
- }), pr = i("a", {
536
- _id: "aiSearchTagline__BrandName",
537
- children: "inkeep",
533
+ }), _i = r("a", {
534
+ _id: "aiSearchTagline__Logo",
538
535
  href: "https://www.inkeep.com/",
539
536
  target: "_blank",
540
- rel: "noopener noreferrer"
537
+ rel: "noopener noreferrer",
538
+ "aria-label": "Inkeep"
539
+ }), pi = r(ee, {
540
+ _id: "aiSearchTagline__LogoIcon"
541
541
  });
542
542
  export {
543
543
  At as AskAITrigger,
@@ -555,7 +555,7 @@ export {
555
555
  Lt as EmbeddedSearchPrimitiveAskAITriggerLabel,
556
556
  yt as EmbeddedSearchPrimitiveAskAITriggerQuery,
557
557
  gt as EmbeddedSearchPrimitiveContent,
558
- hr as EmbeddedSearchPrimitiveFooter,
558
+ hi as EmbeddedSearchPrimitiveFooter,
559
559
  ft as EmbeddedSearchPrimitiveInput,
560
560
  Tt as EmbeddedSearchPrimitiveInputGroup,
561
561
  Et as EmbeddedSearchPrimitiveLoading,
@@ -569,18 +569,18 @@ export {
569
569
  Gt as EmbeddedSearchPrimitiveResultsItemIcon,
570
570
  Xt as EmbeddedSearchPrimitiveResultsItemIndicator,
571
571
  Yt as EmbeddedSearchPrimitiveResultsItemPreview,
572
- nr as EmbeddedSearchPrimitiveResultsItemPreviewBody,
573
- sr as EmbeddedSearchPrimitiveResultsItemPreviewBreadcrumbIcon,
574
- er as EmbeddedSearchPrimitiveResultsItemPreviewHeading,
575
- ar as EmbeddedSearchPrimitiveResultsItemPreviewOutline,
576
- lr as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItem,
577
- dr as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemIcon,
578
- mr as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemLinkIcon,
579
- ur as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemText,
580
- cr as EmbeddedSearchPrimitiveResultsItemPreviewOutlineList,
581
- or as EmbeddedSearchPrimitiveResultsItemPreviewOutlineTitle,
582
- tr as EmbeddedSearchPrimitiveResultsItemPreviewTitle,
583
- rr as EmbeddedSearchPrimitiveResultsItemPreviewTitleLinkIcon,
572
+ ni as EmbeddedSearchPrimitiveResultsItemPreviewBody,
573
+ si as EmbeddedSearchPrimitiveResultsItemPreviewBreadcrumbIcon,
574
+ ei as EmbeddedSearchPrimitiveResultsItemPreviewHeading,
575
+ ai as EmbeddedSearchPrimitiveResultsItemPreviewOutline,
576
+ li as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItem,
577
+ di as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemIcon,
578
+ mi as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemLinkIcon,
579
+ ui as EmbeddedSearchPrimitiveResultsItemPreviewOutlineItemText,
580
+ ci as EmbeddedSearchPrimitiveResultsItemPreviewOutlineList,
581
+ oi as EmbeddedSearchPrimitiveResultsItemPreviewOutlineTitle,
582
+ ti as EmbeddedSearchPrimitiveResultsItemPreviewTitle,
583
+ ii as EmbeddedSearchPrimitiveResultsItemPreviewTitleLinkIcon,
584
584
  qt as EmbeddedSearchPrimitiveResultsItemTag,
585
585
  jt as EmbeddedSearchPrimitiveResultsItemTitle,
586
586
  Wt as EmbeddedSearchPrimitiveResultsList,
@@ -591,13 +591,13 @@ export {
591
591
  Ht as EmbeddedSearchPrimitiveResultsTabList,
592
592
  Pt as EmbeddedSearchPrimitiveRoot,
593
593
  Rt as EmbeddedSearchPrimitiveWrapper,
594
- hr as Footer,
594
+ hi as Footer,
595
595
  ft as Input,
596
596
  Tt as InputGroup,
597
597
  wt as InputIcon,
598
598
  Et as Loading,
599
599
  he as PrimitiveContent,
600
- Rr as Provider,
600
+ Ri as Provider,
601
601
  xt as Results,
602
602
  Kt as ResultsContent,
603
603
  Bt as ResultsEmpty,
@@ -609,20 +609,20 @@ export {
609
609
  Gt as ResultsItemIcon,
610
610
  Xt as ResultsItemIndicator,
611
611
  Yt as ResultsItemPreview,
612
- nr as ResultsItemPreviewBody,
613
- sr as ResultsItemPreviewBreadcrumbIcon,
614
- ir as ResultsItemPreviewBreadcrumbs,
612
+ ni as ResultsItemPreviewBody,
613
+ si as ResultsItemPreviewBreadcrumbIcon,
614
+ ri as ResultsItemPreviewBreadcrumbs,
615
615
  Zt as ResultsItemPreviewHeader,
616
- er as ResultsItemPreviewHeading,
617
- ar as ResultsItemPreviewOutline,
618
- lr as ResultsItemPreviewOutlineItem,
619
- dr as ResultsItemPreviewOutlineItemIcon,
620
- mr as ResultsItemPreviewOutlineItemLinkIcon,
621
- ur as ResultsItemPreviewOutlineItemText,
622
- cr as ResultsItemPreviewOutlineList,
623
- or as ResultsItemPreviewOutlineTitle,
624
- tr as ResultsItemPreviewTitle,
625
- rr as ResultsItemPreviewTitleLinkIcon,
616
+ ei as ResultsItemPreviewHeading,
617
+ ai as ResultsItemPreviewOutline,
618
+ li as ResultsItemPreviewOutlineItem,
619
+ di as ResultsItemPreviewOutlineItemIcon,
620
+ mi as ResultsItemPreviewOutlineItemLinkIcon,
621
+ ui as ResultsItemPreviewOutlineItemText,
622
+ ci as ResultsItemPreviewOutlineList,
623
+ oi as ResultsItemPreviewOutlineTitle,
624
+ ti as ResultsItemPreviewTitle,
625
+ ii as ResultsItemPreviewTitleLinkIcon,
626
626
  qt as ResultsItemTag,
627
627
  jt as ResultsItemTitle,
628
628
  Wt as ResultsList,
@@ -635,9 +635,9 @@ export {
635
635
  Mt as ResultsTab,
636
636
  Ht as ResultsTabList,
637
637
  Pt as Root,
638
- pr as TaglineBrandName,
639
- Ir as TaglineContainer,
640
- _r as TaglineLogo,
641
- vr as TaglineText,
638
+ Ii as TaglineContainer,
639
+ _i as TaglineLogo,
640
+ pi as TaglineLogoIcon,
641
+ vi as TaglineText,
642
642
  Rt as Wrapper
643
643
  };