@burdenoff/fe-libs 2026.1004.2 → 2026.1004.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. package/dist/chrome/mobileTabBar/useVisibleNavItems.d.ts +9 -0
  2. package/dist/chrome/mobileTabBar/useVisibleNavItems.d.ts.map +1 -1
  3. package/dist/chrome/mobileTabBar/useVisibleNavItems.js +3 -1
  4. package/dist/shared/assistant/api.d.ts +6 -0
  5. package/dist/shared/assistant/api.d.ts.map +1 -1
  6. package/dist/shared/assistant/api.js +5 -3
  7. package/dist/shared/assistant/i18nManifest.d.ts +3 -0
  8. package/dist/shared/assistant/i18nManifest.d.ts.map +1 -1
  9. package/dist/shared/assistant/i18nManifest.js +3 -0
  10. package/dist/shared/assistant/index.d.ts +8 -0
  11. package/dist/shared/assistant/index.d.ts.map +1 -1
  12. package/dist/shared/assistant/localUiCommandCopy.d.ts +18 -0
  13. package/dist/shared/assistant/localUiCommandCopy.d.ts.map +1 -1
  14. package/dist/shared/assistant/localUiCommandCopy.js +22 -2
  15. package/dist/shared/assistant/localUiCommands.d.ts +63 -26
  16. package/dist/shared/assistant/localUiCommands.d.ts.map +1 -1
  17. package/dist/shared/assistant/localUiCommands.js +128 -59
  18. package/dist/shared/assistant/ui/AssistantChatArea.d.ts.map +1 -1
  19. package/dist/shared/assistant/ui/AssistantChatArea.js +884 -750
  20. package/dist/shared/assistant/ui/AssistantMarkdownRenderer.d.ts +3 -34
  21. package/dist/shared/assistant/ui/AssistantMarkdownRenderer.d.ts.map +1 -1
  22. package/dist/shared/assistant/ui/AssistantMarkdownRenderer.js +83 -119
  23. package/dist/shared/assistant/ui/composer/AssistantConnectSourceItem.js +2 -1
  24. package/dist/shared/assistant/ui/composer/connectSource.js +2 -1
  25. package/dist/shared/assistant/uiActions/assistantHref.d.ts +36 -0
  26. package/dist/shared/assistant/uiActions/assistantHref.d.ts.map +1 -0
  27. package/dist/shared/assistant/uiActions/assistantHref.js +46 -0
  28. package/dist/shared/assistant/uiActions/deixis.d.ts +29 -0
  29. package/dist/shared/assistant/uiActions/deixis.d.ts.map +1 -0
  30. package/dist/shared/assistant/uiActions/deixis.js +54 -0
  31. package/dist/shared/assistant/uiActions/entityRoutes.d.ts +49 -0
  32. package/dist/shared/assistant/uiActions/entityRoutes.d.ts.map +1 -0
  33. package/dist/shared/assistant/uiActions/entityRoutes.js +53 -0
  34. package/dist/shared/assistant/uiActions/inAppLinks.d.ts +28 -0
  35. package/dist/shared/assistant/uiActions/inAppLinks.d.ts.map +1 -0
  36. package/dist/shared/assistant/uiActions/inAppLinks.js +51 -0
  37. package/dist/shared/assistant/uiActions/linkContext.d.ts +52 -0
  38. package/dist/shared/assistant/uiActions/linkContext.d.ts.map +1 -0
  39. package/dist/shared/assistant/uiActions/linkContext.js +60 -0
  40. package/dist/shared/assistant/uiActions/recordNames.d.ts +73 -0
  41. package/dist/shared/assistant/uiActions/recordNames.d.ts.map +1 -0
  42. package/dist/shared/assistant/uiActions/recordNames.js +75 -0
  43. package/dist/shared/assistant/uiActions/resolveTarget.d.ts +43 -0
  44. package/dist/shared/assistant/uiActions/resolveTarget.d.ts.map +1 -0
  45. package/dist/shared/assistant/uiActions/resolveTarget.js +49 -0
  46. package/dist/shared/assistant/uiActions/uiCatalogue.d.ts +30 -0
  47. package/dist/shared/assistant/uiActions/uiCatalogue.d.ts.map +1 -0
  48. package/dist/shared/assistant/uiActions/uiCatalogue.js +22 -0
  49. package/dist/shared/components/assistantWidget/MessageContent.js +4 -3
  50. package/dist/shared/tours/TourPlayerProvider.d.ts +12 -0
  51. package/dist/shared/tours/TourPlayerProvider.d.ts.map +1 -1
  52. package/dist/shared/tours/TourPlayerProvider.js +1 -1
  53. package/dist/shared/tours/tourTrigger/MobileTourSheet.d.ts.map +1 -1
  54. package/dist/shared/tours/tourTrigger/MobileTourSheet.js +16 -15
  55. package/dist/shared-assistant.js +198 -190
  56. package/package.json +3 -1
@@ -1,18 +1,20 @@
1
1
  import { navTargetPath as e } from "../navigation/navTargetPath.js";
2
+ import { isBackRequest as t, isThereRequest as n, parseChoice as r } from "./uiActions/deixis.js";
3
+ import { parseRecordRequest as i } from "./uiActions/recordNames.js";
2
4
  //#region src/shared/assistant/localUiCommands.ts
3
- var t = /^(?:(?:hey|hi|so|now|and|then|you know|just|actually|basically)\b ?|(?:please|pls|kindly)\b ?|(?:can|could|would|will) (?:you|u)\b(?: please)? ?|i (?:want|would like|d like)(?: you)?(?: to)?\b ?|let s\b ?)/, n = /^(?:(?:hey|hi|so|ok|okay)\W+)*(?:please\W+)?(?:can|could|would|will) (?:you|u)\b/i, r = / (?:please|pls|for me|now|thanks|thank you|right now)$/;
4
- function i(e) {
5
+ var a = /^(?:(?:hey|hi|so|now|and|then|you know|just|actually|basically)\b ?|(?:please|pls|kindly)\b ?|(?:can|could|would|will) (?:you|u)\b(?: please)? ?|i (?:want|would like|d like)(?: you)?(?: to)?\b ?|let s\b ?)/, o = /^(?:(?:hey|hi|so|ok|okay)\W+)*(?:please\W+)?(?:can|could|would|will) (?:you|u)\b/i, s = / (?:please|pls|for me|now|thanks|thank you|right now)$/;
6
+ function c(e) {
5
7
  return e.normalize("NFKC").toLowerCase().replace(/&/g, " and ").replace(/[^\p{L}\p{N}\s]/gu, " ").replace(/\s+/g, " ").trim();
6
8
  }
7
- function a(e, n = {}) {
8
- let a = i(e).replace(/\b(?:um+|uh+|erm|er|hmm+)\b/g, " ").replace(/\s+/g, " ").replace(/\b(\w+)(?: \1\b)+/g, "$1").trim();
9
+ function l(e, t = {}) {
10
+ let n = c(e).replace(/\b(?:um+|uh+|erm|er|hmm+)\b/g, " ").replace(/\s+/g, " ").replace(/\b(\w+)(?: \1\b)+/g, "$1").trim();
9
11
  for (;;) {
10
- let e = a.replace(t, "");
11
- if (n.keepEnding || (e = e.replace(r, "")), e = e.trim(), e === a) return a;
12
- a = e;
12
+ let e = n.replace(a, "");
13
+ if (t.keepEnding || (e = e.replace(s, "")), e = e.trim(), e === n) return n;
14
+ n = e;
13
15
  }
14
16
  }
15
- var o = {
17
+ var u = {
16
18
  light: {
17
19
  kind: "family",
18
20
  family: "light"
@@ -53,27 +55,27 @@ var o = {
53
55
  kind: "named",
54
56
  theme: "system"
55
57
  }
56
- }, s = "(light|dark|forest|ocean|sunset|high contrast|highcontrast|system|device)", c = "(?:(?:the|my) )?(?:(?:app|ui|screen|display|interface|site) )?(?:theme|colou?r scheme|colou?r mode|appearance)", l = "(mode|theme|colou?r scheme|colou?r mode|appearance)", u = "(?:switch|change|set|turn|put|make|flip)", d = [
57
- { pattern: RegExp(`^(?:${u}(?: (?:over|back))? (?:to|into) |go (?:back )?to |(?:turn|switch) on |(?:use|enable|activate|apply|try|turn|switch|set) )?(?:(?:the|a) )?${s} ${l}(?: on)?$`) },
58
- { pattern: RegExp(`^${u} ${c} (?:to|into|back to) (?:(?:the|a) )?${s}(?: ${l})?$`) },
58
+ }, d = "(light|dark|forest|ocean|sunset|high contrast|highcontrast|system|device)", f = "(?:(?:the|my) )?(?:(?:app|ui|screen|display|interface|site) )?(?:theme|colou?r scheme|colou?r mode|appearance)", p = "(mode|theme|colou?r scheme|colou?r mode|appearance)", m = "(?:switch|change|set|turn|put|make|flip)", h = [
59
+ { pattern: RegExp(`^(?:${m}(?: (?:over|back))? (?:to|into) |go (?:back )?to |(?:turn|switch) on |(?:use|enable|activate|apply|try|turn|switch|set) )?(?:(?:the|a) )?${d} ${p}(?: on)?$`) },
60
+ { pattern: RegExp(`^${m} ${f} (?:to|into|back to) (?:(?:the|a) )?${d}(?: ${p})?$`) },
59
61
  { pattern: /^(?:switch|change|go)(?: back)? to (light|dark)()$/ },
60
62
  {
61
- pattern: RegExp(`^(?:(?:turn|switch) off|disable|deactivate|exit|leave) (?:the )?(light|dark) ${l}$`),
63
+ pattern: RegExp(`^(?:(?:turn|switch) off|disable|deactivate|exit|leave) (?:the )?(light|dark) ${p}$`),
62
64
  invert: !0
63
65
  },
64
66
  {
65
- pattern: RegExp(`^(?:(?:turn|switch|set) )?(?:the )?(light|dark) ${l} off$`),
67
+ pattern: RegExp(`^(?:(?:turn|switch|set) )?(?:the )?(light|dark) ${p} off$`),
66
68
  invert: !0
67
69
  },
68
70
  { pattern: /^(?:set|make|change) (?:the |my )?(?:theme|appearance) (?:to )?(?:follow|match|use) (?:my|the) (device|system|os)()(?: (?:theme|appearance))?$/ },
69
71
  { pattern: /^(?:follow|match|use) (?:my|the) (device|system|os)() (?:theme|appearance)$/ },
70
72
  { pattern: /^(?:turn on|switch on|enable|use|activate|switch to) (?:the )?(high contrast|highcontrast)()$/ }
71
73
  ];
72
- function f(e) {
73
- for (let { pattern: t, invert: n } of d) {
74
+ function g(e) {
75
+ for (let { pattern: t, invert: n } of h) {
74
76
  let r = t.exec(e);
75
77
  if (!r) continue;
76
- let i = o[r[1] ?? ""];
78
+ let i = u[r[1] ?? ""];
77
79
  if (i) return i.kind === "named" && i.theme === "system" && r[2] === "mode" ? null : n ? i.kind === "family" ? {
78
80
  kind: "family",
79
81
  family: i.family === "dark" ? "light" : "dark"
@@ -81,27 +83,21 @@ function f(e) {
81
83
  }
82
84
  return null;
83
85
  }
84
- var p = /^(?:delete|remove|erase) (?:this|the|my|the current) conversation$/, m = [
85
- /^go back$/,
86
- /^(?:take|bring) me back$/,
87
- /^(?:(?:go|take me) )?back to the (?:previous|last) (?:page|screen)$/,
88
- /^(?:the )?previous page$/,
89
- /^go back to where i was$/
90
- ], h = /^(?:(?:(?:go|navigate|take me|bring me|jump|head|get me|move|switch)(?: back| over)?|back) (?:to|too)|open(?: up)?|(?:pull|bring) up|visit|show me)\s+(.+)$/, g = /^(?:the )?(.+) (?:page|screen)$/, _ = /(?:^| )(?:tasks?|issues?|tickets?|orders?|invoices?|alerts?|requests?|jobs?|incidents?|bugs?|cases?|deals?|items?|questions?|sessions?|positions?|pull requests?|prs?|work orders?|approvals?|actions?|applications?)$/, v = /^(?:ai|a i|api|a p i|id|data|source|access|banking|graph|search|telemetry|stack|house|field|fields|space|market|mic)$/, y = / (?:page|screen|section|tab)$/;
91
- function b(e) {
86
+ var _ = /^(?:delete|remove|erase) (?:this|the|my|the current) conversation$/, v = /^(?:(?:(?:go|navigate|take me|bring me|jump|head|get me|move|switch)(?: back| over)?|back) (?:to|too)|open(?: up)?|(?:pull|bring) up|visit|show me)\s+(.+)$/, y = /^(?:the )?(.+) (?:page|screen)$/, b = /(?:^| )(?:tasks?|issues?|tickets?|orders?|invoices?|alerts?|requests?|jobs?|incidents?|bugs?|cases?|deals?|items?|questions?|sessions?|positions?|pull requests?|prs?|work orders?|approvals?|actions?|applications?)$/, x = /^(?:ai|a i|api|a p i|id|data|source|access|banking|graph|search|telemetry|stack|house|field|fields|space|market|mic)$/, S = / (?:page|screen|section|tab)$/;
87
+ function C(e) {
92
88
  let t = /* @__PURE__ */ new Map(), n = (e, n) => {
93
89
  if (!e) return;
94
90
  let r = t.get(e) ?? [];
95
91
  r.some((e) => e.path === n.path) || r.push(n), t.set(e, r);
96
92
  };
97
93
  for (let t of e) {
98
- let e = i(t.label);
99
- n(e, t), t.context && n(`${i(t.context)} ${e}`, t), t.group && n(`${i(t.group)} ${e}`, t);
94
+ let e = c(t.label);
95
+ n(e, t), t.context && n(`${c(t.context)} ${e}`, t), t.group && n(`${c(t.group)} ${e}`, t);
100
96
  }
101
97
  for (let [e, r] of [...t]) for (let t of r) n(`\u0000${e.replace(/ /g, "")}`, t);
102
98
  return t;
103
99
  }
104
- var x = new Set([
100
+ var w = new Set([
105
101
  "news",
106
102
  "series",
107
103
  "species",
@@ -120,18 +116,18 @@ var x = new Set([
120
116
  "process",
121
117
  "progress"
122
118
  ]);
123
- function S(e) {
119
+ function T(e) {
124
120
  let t = e.split(" "), n = t.pop() ?? "";
125
121
  if (n.length < 3) return [];
126
122
  let r = /* @__PURE__ */ new Set();
127
- return x.has(n) || (/[^aeiou]ies$/.test(n) && n.length > 4 ? r.add(`${n.slice(0, -3)}y`) : /(?:sses|shes|ches|xes|zes)$/.test(n) ? r.add(n.slice(0, -2)) : n.length >= 4 && /s$/.test(n) && !/(?:ss|us|is)$/.test(n) && r.add(n.slice(0, -1))), [...r].map((e) => [...t, e].join(" "));
123
+ return w.has(n) || (/[^aeiou]ies$/.test(n) && n.length > 4 ? r.add(`${n.slice(0, -3)}y`) : /(?:sses|shes|ches|xes|zes)$/.test(n) ? r.add(n.slice(0, -2)) : n.length >= 4 && /s$/.test(n) && !/(?:ss|us|is)$/.test(n) && r.add(n.slice(0, -1))), [...r].map((e) => [...t, e].join(" "));
128
124
  }
129
- function C(e, t, n) {
130
- let r = h.exec(e) ?? g.exec(e);
125
+ function E(e, t, n) {
126
+ let r = v.exec(e) ?? y.exec(e);
131
127
  if (!r) return null;
132
- let i = r[1] ?? "", a = e.startsWith("show me "), o = /^open /.test(e), s = i.replace(/^(?:the|my|our) /, ""), c = s.replace(y, ""), l = c !== s || g.test(e);
133
- if (a && !l || o && s === i && !l && (_.test(s) || v.test(s) || /^\w{1,3}$/.test(s))) return null;
134
- let u = b(t), d = (e) => {
128
+ let i = r[1] ?? "", a = e.startsWith("show me "), o = /^open /.test(e), s = i.replace(/^(?:the|my|our) /, ""), c = s.replace(S, ""), l = c !== s || y.test(e);
129
+ if (a && !l || o && s === i && !l && (b.test(s) || x.test(s) || /^\w{1,3}$/.test(s))) return null;
130
+ let u = C(t), d = (e) => {
135
131
  let t = u.get(e);
136
132
  if (t) return {
137
133
  key: e,
@@ -143,7 +139,7 @@ function C(e, t, n) {
143
139
  list: r
144
140
  } : void 0;
145
141
  }, f = c === s ? [s] : [s, c], p = f.reduce((e, t) => e ?? d(t), void 0);
146
- if (!p && n && (p = f.flatMap(S).reduce((e, t) => e ?? d(t), void 0)), !p || p.list.length === 0) return null;
142
+ if (!p && n && (p = f.flatMap(T).reduce((e, t) => e ?? d(t), void 0)), !p || p.list.length === 0) return null;
147
143
  let m = p.list;
148
144
  return m.length === 1 ? {
149
145
  kind: "navigate",
@@ -154,27 +150,100 @@ function C(e, t, n) {
154
150
  candidates: m
155
151
  };
156
152
  }
157
- var w = (e) => e === void 0 || /^en(?:[-_]|$)/i.test(e.trim());
158
- function T(e, t, r = {}, i = {}) {
159
- let o = e.normalize("NFKC").trim();
160
- if (/[\p{Extended_Pictographic}\p{So}]/u.test(o) || /(?:^|\s)>?[:;=][-'^]?[()[\]/\\|pPdDoO3*@$]+(?=\s|$)/.test(o) || /(?:^|\s)(?:xD|XD|-_-|T_T|<\/?3)(?=\s|$)/.test(o) || /[?¿؟][^\p{L}\p{N}]*$/u.test(o) && !n.test(o)) return null;
161
- let s = a(e);
162
- if (!s || s.length > 80) return null;
163
- if (p.test(s)) return { kind: "conversation-delete" };
164
- let c = f(s);
165
- if (c) return r.themeWords === "mode-only" && /\b(?:theme|appearance|colou?r scheme)\b/.test(s) && !/\b(?:app|ui|interface)\b/.test(s) ? null : {
153
+ var D = (e) => e === void 0 || /^en(?:[-_]|$)/i.test(e.trim());
154
+ function O(e, n, r = {}, a = {}) {
155
+ let s = e.normalize("NFKC").trim();
156
+ if (/[\p{Extended_Pictographic}\p{So}]/u.test(s) || /(?:^|\s)>?[:;=][-'^]?[()[\]/\\|pPdDoO3*@$]+(?=\s|$)/.test(s) || /(?:^|\s)(?:xD|XD|-_-|T_T|<\/?3)(?=\s|$)/.test(s) || /[?¿؟][^\p{L}\p{N}]*$/u.test(s) && !o.test(s)) return null;
157
+ let c = l(e);
158
+ if (!c || c.length > 80) return null;
159
+ if (_.test(c)) return { kind: "conversation-delete" };
160
+ let u = g(c);
161
+ if (u) return r.themeWords === "mode-only" && /\b(?:theme|appearance|colou?r scheme)\b/.test(c) && !/\b(?:app|ui|interface)\b/.test(c) ? null : {
166
162
  kind: "theme",
167
- request: c
163
+ request: u
164
+ };
165
+ if (a.backRunnable && t(c)) return { kind: "back" };
166
+ let d = D(r.locale), f = d ? a.navigation ?? null : null, p = f ? j(c, f) : null;
167
+ if (p) return p;
168
+ let m = E(l(e, { keepEnding: !0 }), n, d) ?? E(c, n, d), h = f ? M(c, f) : null;
169
+ if (h && m) return N(h, m);
170
+ if (h) return h;
171
+ if (m) return m;
172
+ if (!a.skipRecords && d && r.records?.length) {
173
+ let e = i(c, r.records);
174
+ if (e) return {
175
+ kind: "open-record",
176
+ request: e
177
+ };
178
+ }
179
+ return null;
180
+ }
181
+ var k = 4, A = (e) => ` ${c(e)} `;
182
+ function j(e, t) {
183
+ let n = t.pendingChoice;
184
+ if (!n) return null;
185
+ let i = r(e);
186
+ if (!i) return null;
187
+ let a = n.candidates;
188
+ if (a === null) return {
189
+ kind: "pick-from-list",
190
+ candidates: null,
191
+ candidateIds: n.candidateIds
192
+ };
193
+ let o;
194
+ if (i.kind === "ordinal") o = a[i.position - 1];
195
+ else if (i.kind === "last") o = a[a.length - 1];
196
+ else {
197
+ let e = A(i.context), t = a.filter((t) => t !== null && [t.context, t.group].some((t) => t !== void 0 && A(t).includes(e)));
198
+ o = t.length === 1 ? t[0] : void 0;
199
+ }
200
+ return o === void 0 ? {
201
+ kind: "pick-from-list",
202
+ candidates: a,
203
+ candidateIds: n.candidateIds
204
+ } : o === null ? { kind: "link-not-openable" } : {
205
+ kind: "navigate",
206
+ destination: o,
207
+ via: "choice"
168
208
  };
169
- if (i.backRunnable && m.some((e) => e.test(s))) return { kind: "back" };
170
- let l = w(r.locale);
171
- return C(a(e, { keepEnding: !0 }), t, l) ?? C(s, t, l);
172
209
  }
173
- var E = /^__nav_more__:/;
174
- function D(t, n) {
210
+ function M(e, t) {
211
+ if (!n(e)) return null;
212
+ if (t.pendingChoice) return {
213
+ kind: "pick-from-list",
214
+ candidates: t.pendingChoice.candidates,
215
+ candidateIds: t.pendingChoice.candidateIds
216
+ };
217
+ let { targets: r, unresolved: i } = t.links, [a] = r;
218
+ return a ? r.length === 1 ? {
219
+ kind: "navigate",
220
+ destination: a,
221
+ via: "link"
222
+ } : {
223
+ kind: "choose-linked",
224
+ candidates: r.slice(0, 4)
225
+ } : i > 0 ? { kind: "link-not-openable" } : null;
226
+ }
227
+ function N(e, t) {
228
+ let n = (e) => e.kind === "navigate" ? [e.destination] : e.kind === "choose-linked" || e.kind === "choose-destination" ? e.candidates : null, r = n(e), i = n(t);
229
+ if (!r || !i) return t;
230
+ let a = [];
231
+ for (let e of [...r, ...i]) a.some((t) => t.path === e.path) || a.push(e);
232
+ let [o] = a;
233
+ return o && a.length === 1 ? {
234
+ kind: "navigate",
235
+ destination: o,
236
+ via: "link"
237
+ } : {
238
+ kind: "choose-linked",
239
+ candidates: a.slice(0, 4)
240
+ };
241
+ }
242
+ var P = /^__nav_more__:/;
243
+ function F(t, n) {
175
244
  let r = [];
176
245
  for (let i of t) {
177
- let t = E.test(i.id), a = e(i);
246
+ let t = P.test(i.id), a = e(i);
178
247
  !t && i.path.startsWith("/") && !i.path.startsWith("//") && a.startsWith("/") && !a.startsWith("//") && i.label.trim() && r.push({
179
248
  id: i.id,
180
249
  label: i.label,
@@ -182,11 +251,11 @@ function D(t, n) {
182
251
  ...a === i.path ? {} : { aliases: [i.path] },
183
252
  ...n ? { context: n } : {},
184
253
  ...i.group ? { group: i.group } : {}
185
- }), i.children?.length && r.push(...D(i.children, t ? n : i.label));
254
+ }), i.children?.length && r.push(...F(i.children, t ? n : i.label));
186
255
  }
187
256
  return r;
188
257
  }
189
- function O(e, t) {
258
+ function I(e, t) {
190
259
  return e.kind === "family" ? {
191
260
  alreadyApplied: t.resolvedTheme === e.family,
192
261
  mode: e.family
@@ -195,7 +264,7 @@ function O(e, t) {
195
264
  mode: e.theme
196
265
  };
197
266
  }
198
- function k(e, t) {
267
+ function L(e, t) {
199
268
  let n = (e) => {
200
269
  let [t = ""] = e.split("#"), [n = "", r = ""] = t.split("?"), i = n.length > 1 ? n.replace(/\/+$/, "") : n, a = new URLSearchParams(r);
201
270
  return a.sort(), {
@@ -205,11 +274,11 @@ function k(e, t) {
205
274
  }, r = n(e), i = n(t);
206
275
  return r.pathname === i.pathname ? r.query === "" || r.query === i.query : !1;
207
276
  }
208
- function A(e, t, n) {
209
- let r = [e.path, ...e.aliases ?? []].find((e) => k(e, t));
210
- return r === void 0 ? !1 : r.includes("?") ? !0 : !n.some((e) => e.path !== r && e.path.includes("?") && j(e.path, t));
277
+ function R(e, t, n) {
278
+ let r = [e.path, ...e.aliases ?? []].find((e) => L(e, t));
279
+ return r === void 0 ? !1 : r.includes("?") ? !0 : !n.some((e) => e.path !== r && e.path.includes("?") && z(e.path, t));
211
280
  }
212
- function j(e, t) {
281
+ function z(e, t) {
213
282
  let n = (e) => {
214
283
  let [t = ""] = e.split("#"), [n = "", r = ""] = t.split("?");
215
284
  return {
@@ -222,4 +291,4 @@ function j(e, t) {
222
291
  return !0;
223
292
  }
224
293
  //#endregion
225
- export { A as isAlreadyThere, k as isCurrentPath, T as matchLocalUiCommand, D as navDestinations, a as normaliseUtterance, O as planThemeChange, S as singularVariants };
294
+ export { k as LINKED_CHOICE_MAX, R as isAlreadyThere, L as isCurrentPath, O as matchLocalUiCommand, F as navDestinations, l as normaliseUtterance, I as planThemeChange, T as singularVariants };
@@ -1 +1 @@
1
- {"version":3,"file":"AssistantChatArea.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/AssistantChatArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AAoOf,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AA8IvE;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAmyKxD,CAAC"}
1
+ {"version":3,"file":"AssistantChatArea.d.ts","sourceRoot":"","sources":["../../../../src/shared/assistant/ui/AssistantChatArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AAgPf,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AA+JvE;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;;;;;;;;;OAYG;IACH,WAAW,CAAC,EAAE,oBAAoB,CAAC;CACpC;AAED,eAAO,MAAM,iBAAiB,EAAE,EAAE,CAAC,sBAAsB,CAyiLxD,CAAC"}