@nadicodeai/ui 12.1.182 → 12.1.184

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 (37) hide show
  1. package/dist/components/catalog-row.d.ts +98 -21
  2. package/dist/components/catalog-row.d.ts.map +1 -1
  3. package/dist/components/catalog-row.js +72 -43
  4. package/dist/components/chart-date-range-control.d.ts +36 -2
  5. package/dist/components/chart-date-range-control.d.ts.map +1 -1
  6. package/dist/components/chart-date-range-control.js +22 -21
  7. package/dist/components/hover-card.d.ts +1 -1
  8. package/dist/components/hover-card.js +1 -1
  9. package/dist/components/page-actions.d.ts +5 -4
  10. package/dist/components/page-actions.d.ts.map +1 -1
  11. package/dist/components/page-actions.js +17 -6
  12. package/dist/components/record-identity.d.ts +1 -1
  13. package/dist/components/record-identity.d.ts.map +1 -1
  14. package/dist/components/record-identity.js +2 -5
  15. package/dist/components/record-list.d.ts +7 -7
  16. package/dist/components/record-list.d.ts.map +1 -1
  17. package/dist/components/record-list.js +7 -24
  18. package/dist/components/record-time.d.ts +2 -4
  19. package/dist/components/record-time.d.ts.map +1 -1
  20. package/dist/components/record-time.js +3 -29
  21. package/dist/components/settings-facts.d.ts +18 -3
  22. package/dist/components/settings-facts.d.ts.map +1 -1
  23. package/dist/components/settings-facts.js +13 -8
  24. package/dist/components/table-layouts.d.ts +8 -8
  25. package/dist/components/table-layouts.d.ts.map +1 -1
  26. package/dist/components/table-layouts.js +8 -8
  27. package/dist/internal/assistant-ui/markdown-text.js +3 -0
  28. package/dist/internal/table-compact-line.d.ts +4 -6
  29. package/dist/internal/table-compact-line.d.ts.map +1 -1
  30. package/dist/internal/table-compact-line.js +58 -9
  31. package/dist/lib/format-record-time.d.ts +9 -0
  32. package/dist/lib/format-record-time.d.ts.map +1 -0
  33. package/dist/lib/format-record-time.js +32 -0
  34. package/dist/showcase/specimens/compositions.d.ts.map +1 -1
  35. package/dist/showcase/specimens/compositions.js +19 -4
  36. package/dist/showcase/usage.generated.js +13 -13
  37. package/package.json +6 -2
@@ -1,39 +1,105 @@
1
+ import type { ReactNode } from "react";
1
2
  import { type CatalogCategory } from "./catalog-categories.js";
2
3
  import type { CollectionFilterCopy, CollectionFiltersProps } from "./collection-filters.js";
3
4
  import type { RecordFact, RecordFacts, RecordName } from "./record-list.js";
5
+ export type CatalogRowKind = "skill" | "plugin" | "server";
6
+ export type CatalogLearner = {
7
+ name: string;
8
+ mark?: ReactNode;
9
+ };
10
+ type OriginMap = {
11
+ skill: {
12
+ kind: "company" | "library" | "nadia" | "added";
13
+ } | {
14
+ kind: "hub";
15
+ hub: string;
16
+ } | {
17
+ kind: "learned";
18
+ by: CatalogLearner | null;
19
+ };
20
+ plugin: {
21
+ kind: "library" | "agentTemplate" | "nadia" | "added";
22
+ };
23
+ server: {
24
+ kind: "portal" | "added";
25
+ } | {
26
+ kind: "plugin";
27
+ plugin: string | null;
28
+ };
29
+ };
30
+ type OriginWordsMap = {
31
+ skill: {
32
+ company: string;
33
+ library: string;
34
+ nadia: string;
35
+ added: string;
36
+ hub: (hub: string) => string;
37
+ learned: string;
38
+ learnedBy: (agent: string) => string;
39
+ };
40
+ plugin: {
41
+ library: string;
42
+ agentTemplate: string;
43
+ nadia: string;
44
+ added: string;
45
+ };
46
+ server: {
47
+ portal: string;
48
+ added: string;
49
+ plugin: (plugin: string) => string;
50
+ anyPlugin: string;
51
+ };
52
+ };
53
+ export type CatalogOrigin<Kind extends CatalogRowKind = CatalogRowKind> = OriginMap[Kind];
54
+ export type CatalogOriginWords<Kind extends CatalogRowKind = CatalogRowKind> = OriginWordsMap[Kind];
4
55
  /** What a skill, a plugin or an MCP server is drawn from: the facts its screen reads, never how they are laid out. */
5
- export type CatalogRow = {
56
+ export type CatalogRow<Kind extends CatalogRowKind = CatalogRowKind> = {
6
57
  name: string;
7
- /** What it does, as its catalog card says it, or what it is (a server's address); left out when nothing says it. */
58
+ /** What it does, as its card or its file says it, or what it is (a server's address); left out when nothing says it. */
8
59
  detail?: string | undefined;
9
- /** The icon its catalog card names; none draws its kind's own. A server always draws the server icon. */
60
+ /** The icon its card names; none draws its kind's own. A server always draws the server icon. */
10
61
  icon?: string | null | undefined;
11
- /** The category its catalog card names; none draws no label. */
62
+ /** The category its card names; a skill or a plugin with none is Other. A server has no category. */
12
63
  category?: CatalogCategory | null | undefined;
13
- /** Where it came from, in the product's words: "From the Library", "Added in Nadia". */
14
- source: string;
64
+ /** Where the Agent's copy came from; a catalog's own entry, which no Agent holds yet, has none. */
65
+ origin?: CatalogOrigin<Kind> | undefined;
15
66
  };
16
- export type CatalogRowKind = "skill" | "plugin" | "server";
17
67
  /** The product's words for the row's columns and its category filter. */
18
- export type CatalogRowWords = {
68
+ export type CatalogRowWords<Kind extends CatalogRowKind = CatalogRowKind> = {
19
69
  category: string;
20
70
  allCategories: string;
21
71
  categoryName: (category: CatalogCategory) => string;
22
- source: string;
23
72
  filter: CollectionFilterCopy;
73
+ /** The origin column's name and words; a screen of a catalog's own entries leaves them out and draws no such column. */
74
+ origin?: {
75
+ label: string;
76
+ words: CatalogOriginWords<Kind>;
77
+ };
24
78
  };
25
79
  /** The shared row's parts a screen spreads into its `CollectionPage`. */
26
80
  export type CatalogRows<TRecord> = {
27
81
  list: {
28
82
  name: (record: TRecord) => RecordName;
29
83
  facts: RecordFacts<TRecord>;
30
- wraps: true;
31
84
  };
32
85
  filters: CollectionFiltersProps | undefined;
33
86
  keep: (rows: readonly TRecord[]) => TRecord[];
34
87
  narrowed: boolean;
35
88
  clear: () => void;
36
89
  };
90
+ export type SkillFacts = {
91
+ origin: "learned" | "written" | "company" | "hub";
92
+ wished: boolean;
93
+ brought: boolean;
94
+ hub: string | null;
95
+ savedBy: string | null;
96
+ };
97
+ /**
98
+ * A skill's origin from Nadia's facts, the one reading both products make. On an Agent's own list a company skill is
99
+ * the company's, whoever wrote it; on the company's list it is where it came from, and the Agent who learned one is
100
+ * `learner` when the screen knows her, or her saved name.
101
+ */
102
+ export declare function skillOrigin(facts: SkillFacts, on: "agent" | "company", learner?: CatalogLearner): CatalogOrigin<"skill">;
37
103
  /**
38
104
  * One row for every skill, plugin and MCP server a person meets, in the Portal's Library and an Agent's pages and in
39
105
  * Nadia's Edit Agent and company skills: the screen says what each record is, this draws it, and the screen keeps its own
@@ -42,20 +108,31 @@ export type CatalogRows<TRecord> = {
42
108
  * @family Compositions
43
109
  * @when A `CollectionPage` of skills, plugins or MCP servers. The screen calls it with its records, what each one is
44
110
  * (`CatalogRow`) and its words, spreads `list` into the page, passes `filters` as the page's filters and lists `keep`'s
45
- * rows; a new screen of the same things gets the same row by the same call.
111
+ * rows; a new screen of the same things gets the same row by the same call. A skill's origin comes from `skillOrigin`.
46
112
  * @instead Any other record is the page's own `RecordList` row. The Library's add-from drawer is `CatalogDrawer`; a
47
113
  * category on its own is `CategoryTag`.
48
114
  * @behaviour The mark is the neutral ringed tile with the card's own icon, its kind's when the card names none, and the
49
- * server icon for a server; the name; under it the detail, wrapping in full. Then two facts: the category label
50
- * (`CategoryTag`), standing only while a row has a category, and where it came from, wrapping in full. The category filter stands after
51
- * the search only while the rows hold more than one category; `keep` narrows rows to the chosen one, and a choice the
52
- * rows no longer hold narrows nothing. `narrowed` says a category is chosen, for the page's no match, and `clear`
53
- * unsets it.
54
- * @words Every string is the product's: the source in the same words wherever it means the same ("From the Library",
55
- * "Added in Nadia", "From the {plugin} plugin"), the category's name as its filter writes it.
56
- * @access The columns are named by `words.category` and `words.source`; the category's icon is decorative.
115
+ * server icon for a server; the name; under it the detail. Then the facts: a skill's or a plugin's category label
116
+ * (`CategoryTag`) on every row, Other when its card names none, a server having none; where the Agent's copy came from,
117
+ * in one closed list of origins, a learned skill naming the Agent who learned it with her mark, or by her name where the screen has no mark for her; then the screen's own
118
+ * columns. The category filter stands after the search only while the rows hold more than one category; `keep` narrows
119
+ * rows to the chosen one, and a choice the rows no longer hold narrows nothing. `narrowed` says a category is chosen,
120
+ * for the page's no match, and `clear` unsets it.
121
+ * @words Every string is the product's, one per origin in the grammar of the row's kind: "Company skill", "From the
122
+ * Library", "Comes with Nadia", "Learned", "Added in Nadia", "Added in the Portal", "From the {plugin} plugin"; the
123
+ * category's name as its filter writes it.
124
+ * @access The columns are named by `words.category` and `words.origin.label`; the category's icon is decorative, and a
125
+ * learned skill's origin reads "Learned by {Agent}".
57
126
  */
58
- export declare function useCatalogRows<TRecord>(kind: CatalogRowKind, records: readonly TRecord[] | undefined, rowOf: (record: TRecord) => CatalogRow, words: CatalogRowWords,
59
- /** One more column a screen owns after the source, such as which of the viewer's Agents have it. */
127
+ export declare function useCatalogRows<Kind extends CatalogRowKind, TRecord>(kind: Kind, records: readonly TRecord[] | undefined, rowOf: (record: TRecord) => CatalogRow<Kind>, words: CatalogRowWords<Kind> & {
128
+ origin: NonNullable<CatalogRowWords<Kind>["origin"]>;
129
+ },
130
+ /** One more column the screen owns after the origin, such as which of the viewer's Agents have it. */
60
131
  extra?: RecordFact<TRecord>): CatalogRows<TRecord>;
132
+ export declare function useCatalogRows<Kind extends CatalogRowKind, TRecord>(kind: Kind, records: readonly TRecord[] | undefined, rowOf: (record: TRecord) => CatalogRow<Kind>, words: CatalogRowWords<Kind> & {
133
+ origin?: undefined;
134
+ },
135
+ /** The screen's own columns after the category, at most two, for a catalog's entries no Agent holds. */
136
+ extra?: readonly [RecordFact<TRecord>] | readonly [RecordFact<TRecord>, RecordFact<TRecord>]): CatalogRows<TRecord>;
137
+ export {};
61
138
  //# sourceMappingURL=catalog-row.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"catalog-row.d.ts","sourceRoot":"","sources":["../../src/components/catalog-row.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAsB,KAAK,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAG3F,OAAO,KAAK,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACpG,OAAO,KAAK,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;A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B,aAAa,CAAC,OAAO,CAAC,CAYxB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,cAAc,CAAC,IAAI,SAAS,cAAc,EAAE,OAAO,EACjE,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,EACvC,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,UAAU,CAAC,IAAI,CAAC,EAC5C,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG;IAAE,MAAM,EAAE,WAAW,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAA;CAAE;AACvF,sGAAsG;AACtG,KAAK,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,GAC1B,WAAW,CAAC,OAAO,CAAC,CAAC;AACxB,wBAAgB,cAAc,CAAC,IAAI,SAAS,cAAc,EAAE,OAAO,EACjE,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,EACvC,KAAK,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,UAAU,CAAC,IAAI,CAAC,EAC5C,KAAK,EAAE,eAAe,CAAC,IAAI,CAAC,GAAG;IAAE,MAAM,CAAC,EAAE,SAAS,CAAA;CAAE;AACrD,wGAAwG;AACxG,KAAK,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,GAC3F,WAAW,CAAC,OAAO,CAAC,CAAC"}
@@ -1,36 +1,56 @@
1
1
  "use client";
2
- import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { Server } from "lucide-react";
4
4
  import { useState } from "react";
5
5
  import { CATALOG_CATEGORIES } from "./catalog-categories.js";
6
6
  import { CategoryTag } from "./catalog-category.js";
7
7
  import { catalogIcon } from "./catalog-entry.js";
8
+ const ORIGIN_READERS = {
9
+ skill: (said) => (origin) => {
10
+ if (origin.kind === "hub")
11
+ return said.hub(origin.hub);
12
+ if (origin.kind !== "learned")
13
+ return said[origin.kind];
14
+ if (origin.by && !origin.by.mark)
15
+ return said.learnedBy(origin.by.name);
16
+ return (_jsxs("span", { className: "inline-flex items-center gap-1.5", children: [origin.by?.mark, _jsx("span", { "aria-hidden": origin.by ? true : undefined, children: said.learned }), origin.by ? _jsx("span", { className: "sr-only", children: said.learnedBy(origin.by.name) }) : null] }));
17
+ },
18
+ plugin: (said) => (origin) => said[origin.kind],
19
+ server: (said) => (origin) => origin.kind === "plugin"
20
+ ? origin.plugin
21
+ ? said.plugin(origin.plugin)
22
+ : said.anyPlugin
23
+ : said[origin.kind],
24
+ };
25
+ function originReader(kind, words) {
26
+ return ORIGIN_READERS[kind](words);
27
+ }
8
28
  /**
9
- * One row for every skill, plugin and MCP server a person meets, in the Portal's Library and an Agent's pages and in
10
- * Nadia's Edit Agent and company skills: the screen says what each record is, this draws it, and the screen keeps its own
11
- * commands, menu, status and editor.
12
- *
13
- * @family Compositions
14
- * @when A `CollectionPage` of skills, plugins or MCP servers. The screen calls it with its records, what each one is
15
- * (`CatalogRow`) and its words, spreads `list` into the page, passes `filters` as the page's filters and lists `keep`'s
16
- * rows; a new screen of the same things gets the same row by the same call.
17
- * @instead Any other record is the page's own `RecordList` row. The Library's add-from drawer is `CatalogDrawer`; a
18
- * category on its own is `CategoryTag`.
19
- * @behaviour The mark is the neutral ringed tile with the card's own icon, its kind's when the card names none, and the
20
- * server icon for a server; the name; under it the detail, wrapping in full. Then two facts: the category label
21
- * (`CategoryTag`), standing only while a row has a category, and where it came from, wrapping in full. The category filter stands after
22
- * the search only while the rows hold more than one category; `keep` narrows rows to the chosen one, and a choice the
23
- * rows no longer hold narrows nothing. `narrowed` says a category is chosen, for the page's no match, and `clear`
24
- * unsets it.
25
- * @words Every string is the product's: the source in the same words wherever it means the same ("From the Library",
26
- * "Added in Nadia", "From the {plugin} plugin"), the category's name as its filter writes it.
27
- * @access The columns are named by `words.category` and `words.source`; the category's icon is decorative.
29
+ * A skill's origin from Nadia's facts, the one reading both products make. On an Agent's own list a company skill is
30
+ * the company's, whoever wrote it; on the company's list it is where it came from, and the Agent who learned one is
31
+ * `learner` when the screen knows her, or her saved name.
28
32
  */
29
- export function useCatalogRows(kind, records, rowOf, words,
30
- /** One more column a screen owns after the source, such as which of the viewer's Agents have it. */
31
- extra) {
33
+ export function skillOrigin(facts, on, learner) {
34
+ if (on === "agent" && facts.origin === "company")
35
+ return { kind: "company" };
36
+ if (facts.wished)
37
+ return { kind: "library" };
38
+ if (facts.hub !== null)
39
+ return { kind: "hub", hub: facts.hub };
40
+ if (facts.brought)
41
+ return { kind: "nadia" };
42
+ const learned = facts.origin === "learned" || (facts.origin === "company" && facts.savedBy !== null);
43
+ if (!learned)
44
+ return { kind: "added" };
45
+ return {
46
+ kind: "learned",
47
+ by: learner ?? (facts.savedBy === null ? null : { name: facts.savedBy }),
48
+ };
49
+ }
50
+ export function useCatalogRows(kind, records, rowOf, words, extra) {
32
51
  const [category, setCategory] = useState("");
33
- const held = CATALOG_CATEGORIES.filter((each) => records?.some((record) => rowOf(record).category === each) ?? false);
52
+ const categoryOf = (record) => kind === "server" ? null : (rowOf(record).category ?? "other");
53
+ const held = CATALOG_CATEGORIES.filter((each) => records?.some((record) => categoryOf(record) === each) ?? false);
34
54
  const chosen = held.find((each) => each === category) ?? "";
35
55
  const narrowed = held.length > 1 && chosen !== "";
36
56
  const filters = held.length > 1
@@ -57,29 +77,38 @@ extra) {
57
77
  shown.detail = row.detail;
58
78
  return shown;
59
79
  };
60
- const shared = [
61
- {
62
- id: "category",
63
- label: words.category,
64
- of: (record) => {
65
- const shown = rowOf(record).category;
66
- return shown ? _jsx(CategoryTag, { category: shown, label: words.categoryName(shown) }) : null;
67
- },
68
- size: 168,
80
+ const categoryFact = {
81
+ id: "category",
82
+ label: words.category,
83
+ of: (record) => {
84
+ const shown = categoryOf(record);
85
+ return shown ? _jsx(CategoryTag, { category: shown, label: words.categoryName(shown) }) : null;
69
86
  },
70
- {
71
- id: "source",
72
- label: words.source,
73
- of: (record) => rowOf(record).source,
74
- size: 200,
75
- wraps: true,
87
+ size: 128,
88
+ };
89
+ const origin = words.origin;
90
+ const own = extra === undefined ? [] : "id" in extra ? [extra] : extra;
91
+ const read = origin && originReader(kind, origin.words);
92
+ const originFact = origin && {
93
+ id: "origin",
94
+ label: origin.label,
95
+ of: (record) => {
96
+ const from = rowOf(record).origin;
97
+ return from && read ? read(from) : null;
76
98
  },
77
- ];
78
- const facts = extra ? [...shared, extra] : shared;
99
+ size: 176,
100
+ wraps: true,
101
+ };
102
+ const [first, second] = originFact ? [originFact, own[0]] : own;
103
+ const facts = first
104
+ ? second
105
+ ? [categoryFact, first, second]
106
+ : [categoryFact, first]
107
+ : [categoryFact];
79
108
  return {
80
- list: { name, facts, wraps: true },
109
+ list: { name, facts },
81
110
  filters,
82
- keep: (rows) => narrowed ? rows.filter((row) => rowOf(row).category === chosen) : [...rows],
111
+ keep: (rows) => narrowed ? rows.filter((row) => categoryOf(row) === chosen) : [...rows],
83
112
  narrowed,
84
113
  clear: () => setCategory(""),
85
114
  };
@@ -1,5 +1,37 @@
1
1
  import * as React from "react";
2
2
  import { type DateRangePreset, type DateRangeValue } from "./chart-date-range.js";
3
+ import type { Calendar as CalendarComponent } from "./calendar.js";
4
+ /**
5
+ * chart-date-range-control: ONE button that opens the common windows as
6
+ * buttons beside a range calendar. A page toolbar carries one such control,
7
+ * not a row of range buttons.
8
+ *
9
+ * Fully controlled: the consumer owns the value and typically round-trips it
10
+ * through URL state with `encodeDateRange` / `decodeDateRange` from
11
+ * `chart-date-range` (a separate server-safe module, because the package owns
12
+ * no routing).
13
+ *
14
+ * `presets` narrows which windows are offered, in the order given. It only
15
+ * filters the offered buttons: the codec enum (`DATE_RANGE_PRESETS`) is
16
+ * unchanged, so a URL arriving with an un-offered but valid preset token still
17
+ * decodes; the consumer decides its fallback.
18
+ */
19
+ type CalendarProps = React.ComponentProps<typeof CalendarComponent>;
20
+ declare const CALENDARS: {
21
+ en: {
22
+ load: () => Promise<{
23
+ default: (props: CalendarProps) => React.JSX.Element;
24
+ }>;
25
+ Calendar: React.LazyExoticComponent<(props: CalendarProps) => React.JSX.Element>;
26
+ };
27
+ it: {
28
+ load: () => Promise<{
29
+ default: (props: CalendarProps) => React.JSX.Element;
30
+ }>;
31
+ Calendar: React.LazyExoticComponent<(props: CalendarProps) => React.JSX.Element>;
32
+ };
33
+ };
34
+ type DateRangeLocale = keyof typeof CALENDARS;
3
35
  /**
4
36
  * The period a chart reads: a button that opens the common windows and a calendar for any other.
5
37
  *
@@ -11,11 +43,11 @@ import { type DateRangePreset, type DateRangeValue } from "./chart-date-range.js
11
43
  * @behaviour "Pair a horizontal layout with live results next to the calendar; in narrow surfaces like a sidebar, fall back to the stacked layout." "Set `min` and `max` to the data window so users can’t pick outside the retention range." "Keep the trigger label as the chosen range (`Apr 1 – Apr 28, 2026`); don’t fall back to `Pick a date` once a value is committed." "Persist the selected range when the popover closes and re-opens so users can tweak the end date without re-picking the start." (https://vercel.com/geist/calendar)
12
44
  * Ours: one button that reads as the current window. It opens the presets as buttons beside a two-month calendar, stacked above it on a narrow surface. A preset applies at once and closes; a custom window applies on the second day. `min` and `max` are `minValue` and `maxValue`, the data's retention window. The value is encoded into the URL by the caller with `encodeDateRange`.
13
45
  * @words "Each preset is a real button with a Title Case label (`Last 30 Days`); don’t mark presets as menu items without keyboard handling." (https://vercel.com/geist/calendar)
14
- * Ours: presets name the window in sentence case: *Past 7 days*, *Past 14 days*, *Past 30 days*, *This cycle*. A custom window reads as its dates.
46
+ * Ours: presets name the window in sentence case: *Past 7 days*, *Past 14 days*, *Past 30 days*, *This cycle*. A custom window reads as its dates. The caller passes the reader's language as `locale` (`en` or `it`), and the calendar names its months, weekdays and buttons in it and starts the week on Monday in Italian; without it the calendar is English.
15
47
  * @access "Trap focus inside the popover so Tab cycles day cells and presets instead of the page behind it." "Announce range changes through `aria-live="polite"` so a screen reader hears `From Apr 1 to Apr 28` after the second click." (https://vercel.com/geist/calendar)
16
48
  * Ours: the button carries the control's name and the current window, and opens a dialog of preset buttons, the current one pressed, and the day grid. A polite status next to the button states the window: the preset's name, or the dates once the second day is chosen; it does not change after the first day.
17
49
  */
18
- declare function DateRangeControl({ value, onChange, label, presets, presetLabels, formatCustomValue, minValue, maxValue, size, className, }: {
50
+ declare function DateRangeControl({ value, onChange, label, presets, presetLabels, formatCustomValue, locale, minValue, maxValue, size, className, }: {
19
51
  value: DateRangeValue;
20
52
  onChange: (value: DateRangeValue) => void;
21
53
  /** Accessible name for the control. */
@@ -28,6 +60,8 @@ declare function DateRangeControl({ value, onChange, label, presets, presetLabel
28
60
  from: string;
29
61
  to: string;
30
62
  }) => string;
63
+ /** The reader's language, which names the calendar's months, weekdays and buttons. */
64
+ locale?: DateRangeLocale | undefined;
31
65
  /** The first day with data, as `yyyy-mm-dd`. */
32
66
  minValue?: string | undefined;
33
67
  /** The last day with data, as `yyyy-mm-dd`. */
@@ -1 +1 @@
1
- {"version":3,"file":"chart-date-range-control.d.ts","sourceRoot":"","sources":["../../src/components/chart-date-range-control.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAIL,KAAK,eAAe,EACpB,KAAK,cAAc,EACpB,MAAM,+BAA+B,CAAC;AAyBvC;;;;;;;;;;;;;;GAcG;AACH,iBAAS,gBAAgB,CAAC,EACxB,KAAK,EACL,QAAQ,EACR,KAAK,EACL,OAA4B,EAC5B,YAAY,EACZ,iBAAiB,EACjB,QAAQ,EACR,QAAQ,EACR,IAAgB,EAChB,SAAS,GACV,EAAE;IACD,KAAK,EAAE,cAAc,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,uCAAuC;IACvC,KAAK,EA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,MAAa,EACb,QAAQ,EACR,QAAQ,EACR,IAAgB,EAChB,SAAS,GACV,EAAE;IACD,KAAK,EAAE,cAAc,CAAC;IACtB,QAAQ,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAC1C,uCAAuC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,OAAO,CAAC,EAAE,SAAS,eAAe,EAAE,CAAC;IACrC,YAAY,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IAC9C,uFAAuF;IACvF,iBAAiB,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,KAAK,MAAM,CAAC;IACnE,sFAAsF;IACtF,MAAM,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACrC,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,+CAA+C;IAC/C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,qBAwGA;AAED,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -8,26 +8,26 @@ import { Button } from "./button.js";
8
8
  import { cn } from "../lib/utils.js";
9
9
  import { Popover, PopoverContent, PopoverTrigger } from "./popover.js";
10
10
  import { DATE_RANGE_PRESETS, formatIsoDay, parseIsoDay, } from "./chart-date-range.js";
11
- /**
12
- * chart-date-range-control: ONE button that opens the common windows as
13
- * buttons beside a range calendar. A page toolbar carries one such control,
14
- * not a row of range buttons.
15
- *
16
- * Fully controlled: the consumer owns the value and typically round-trips it
17
- * through URL state with `encodeDateRange` / `decodeDateRange` from
18
- * `chart-date-range` (a separate server-safe module, because the package owns
19
- * no routing).
20
- *
21
- * `presets` narrows which windows are offered, in the order given. It only
22
- * filters the offered buttons: the codec enum (`DATE_RANGE_PRESETS`) is
23
- * unchanged, so a URL arriving with an un-offered but valid preset token still
24
- * decodes; the consumer decides its fallback.
25
- */
26
11
  const loadCalendar = () => import("./calendar");
27
- const Calendar = React.lazy(() => loadCalendar().then((module) => ({ default: module.Calendar })));
28
- function preloadCalendar(open) {
12
+ // The calendar loads with the names of its language, and a language other than English loads its
13
+ // names only when a reader asks for it.
14
+ function lazyCalendar(loadLocale) {
15
+ const load = async () => {
16
+ const [{ Calendar }, locale] = await Promise.all([loadCalendar(), loadLocale?.()]);
17
+ function LocalizedCalendar(props) {
18
+ return _jsx(Calendar, { ...props, locale: locale });
19
+ }
20
+ return { default: LocalizedCalendar };
21
+ };
22
+ return { load, Calendar: React.lazy(load) };
23
+ }
24
+ const CALENDARS = {
25
+ en: lazyCalendar(),
26
+ it: lazyCalendar(() => import("react-day-picker/locale/it").then((module) => module.it)),
27
+ };
28
+ function preloadCalendar(open, locale) {
29
29
  if (open)
30
- loadCalendar().catch(() => undefined);
30
+ CALENDARS[locale].load().catch(() => undefined);
31
31
  }
32
32
  /**
33
33
  * The period a chart reads: a button that opens the common windows and a calendar for any other.
@@ -40,16 +40,17 @@ function preloadCalendar(open) {
40
40
  * @behaviour "Pair a horizontal layout with live results next to the calendar; in narrow surfaces like a sidebar, fall back to the stacked layout." "Set `min` and `max` to the data window so users can’t pick outside the retention range." "Keep the trigger label as the chosen range (`Apr 1 – Apr 28, 2026`); don’t fall back to `Pick a date` once a value is committed." "Persist the selected range when the popover closes and re-opens so users can tweak the end date without re-picking the start." (https://vercel.com/geist/calendar)
41
41
  * Ours: one button that reads as the current window. It opens the presets as buttons beside a two-month calendar, stacked above it on a narrow surface. A preset applies at once and closes; a custom window applies on the second day. `min` and `max` are `minValue` and `maxValue`, the data's retention window. The value is encoded into the URL by the caller with `encodeDateRange`.
42
42
  * @words "Each preset is a real button with a Title Case label (`Last 30 Days`); don’t mark presets as menu items without keyboard handling." (https://vercel.com/geist/calendar)
43
- * Ours: presets name the window in sentence case: *Past 7 days*, *Past 14 days*, *Past 30 days*, *This cycle*. A custom window reads as its dates.
43
+ * Ours: presets name the window in sentence case: *Past 7 days*, *Past 14 days*, *Past 30 days*, *This cycle*. A custom window reads as its dates. The caller passes the reader's language as `locale` (`en` or `it`), and the calendar names its months, weekdays and buttons in it and starts the week on Monday in Italian; without it the calendar is English.
44
44
  * @access "Trap focus inside the popover so Tab cycles day cells and presets instead of the page behind it." "Announce range changes through `aria-live="polite"` so a screen reader hears `From Apr 1 to Apr 28` after the second click." (https://vercel.com/geist/calendar)
45
45
  * Ours: the button carries the control's name and the current window, and opens a dialog of preset buttons, the current one pressed, and the day grid. A polite status next to the button states the window: the preset's name, or the dates once the second day is chosen; it does not change after the first day.
46
46
  */
47
- function DateRangeControl({ value, onChange, label, presets = DATE_RANGE_PRESETS, presetLabels, formatCustomValue, minValue, maxValue, size = "default", className, }) {
47
+ function DateRangeControl({ value, onChange, label, presets = DATE_RANGE_PRESETS, presetLabels, formatCustomValue, locale = "en", minValue, maxValue, size = "default", className, }) {
48
48
  const [open, setOpen] = React.useState(false);
49
49
  const [pending, setPending] = React.useState(undefined);
50
50
  const id = React.useId();
51
51
  const labelId = `${id}-label`;
52
52
  const triggerId = `${id}-trigger`;
53
+ const { Calendar } = CALENDARS[locale];
53
54
  const isCustom = value.kind === "custom";
54
55
  const selected = pending ??
55
56
  (isCustom ? { from: parseIsoDay(value.from), to: parseIsoDay(value.to) } : undefined);
@@ -58,7 +59,7 @@ function DateRangeControl({ value, onChange, label, presets = DATE_RANGE_PRESETS
58
59
  : presetLabels[value.preset];
59
60
  function handleOpenChange(nextOpen) {
60
61
  setOpen(nextOpen);
61
- preloadCalendar(nextOpen);
62
+ preloadCalendar(nextOpen, locale);
62
63
  if (!nextOpen) {
63
64
  setPending(undefined);
64
65
  }
@@ -35,7 +35,7 @@ import type { PresentContent } from "../internal/present-content.js";
35
35
  * `N/A` or `null`." "Don’t restate what the trigger already showed." "If the row already renders the
36
36
  * deployment URL, don’t repeat it as the first card line." (https://vercel.com/geist/context-card)
37
37
  * Ours: the name and the keys are in sentence case (*Last active*). A time's card leads with the
38
- * relative label, and its trigger keeps its verb sentence: *Updated 3 hours ago*.
38
+ * relative label, and its trigger keeps its verb sentence: *Updated 3h ago*.
39
39
  * @access "The trigger keeps its own accessible name; the card is supplementary and shouldn’t
40
40
  * replace it." "Card content is reachable by keyboard once the trigger has focus; Escape closes the
41
41
  * card and returns focus to the trigger." (https://vercel.com/geist/context-card)
@@ -41,7 +41,7 @@ const HOVER_CARD_DELAY = 150;
41
41
  * `N/A` or `null`." "Don’t restate what the trigger already showed." "If the row already renders the
42
42
  * deployment URL, don’t repeat it as the first card line." (https://vercel.com/geist/context-card)
43
43
  * Ours: the name and the keys are in sentence case (*Last active*). A time's card leads with the
44
- * relative label, and its trigger keeps its verb sentence: *Updated 3 hours ago*.
44
+ * relative label, and its trigger keeps its verb sentence: *Updated 3h ago*.
45
45
  * @access "The trigger keeps its own accessible name; the card is supplementary and shouldn’t
46
46
  * replace it." "Card content is reachable by keyboard once the trigger has focus; Escape closes the
47
47
  * card and returns focus to the trigger." (https://vercel.com/geist/context-card)
@@ -121,14 +121,15 @@ export declare function usePageTitled(): boolean;
121
121
  /** The element on `PageHeader`'s title row that the page's `PageActions` render into. */
122
122
  export declare function PageActionsSlot(): import("react").JSX.Element;
123
123
  /**
124
- * A page's actions, drawn on its title's row. Only the page shown last owns
125
- * the row: a page kept hidden for a quick return gives the row back. Outside a
124
+ * A page's actions, drawn on its title's row. The row has one owner: a page
125
+ * kept hidden for a quick return has given it back, and a second `PageActions`
126
+ * on the page a person sees throws in development and in tests. Outside a
126
127
  * `PageActionsHostProvider`, they render where they stand.
127
128
  *
128
129
  * @family Actions
129
130
  * @when The actions of a collection, an object or an overview page, on the title's row at its trailing edge. A Configuration page has none: each section saves from its footer.
130
- * @instead A row's actions are the row's one button and its `ActionMenu`. A collection toolbar holds search and filters, never a page action.
131
- * @behaviour Takes `period`, `secondary`, `primary` and `menu` and draws their order and variants itself: the period, outline, default, then the three dots last. The menu needs two commands or more; a single extra command is the secondary. A primary whose job comes in a few kinds takes `choices`: its button opens a menu of them aligned to its end, each with its icon, as Vercel's "Add New…" does; a kind that needs its own fields opens its dialog from its row. A destination outside the product ends in the arrow. A running command (`pending`) keeps its place and icon, says its pending word and holds, and the type requires `pendingLabel` whenever `pending` is set. A command here is never destructive or warning: those sit in the danger zone of the page, in a card.
131
+ * @instead A row's actions are the row's one button and its `ActionMenu`. A collection toolbar holds search and filters, never a page action. A page whose parts each have commands gathers them in the one `PageActions` of the component that owns the page; a part never draws a second.
132
+ * @behaviour One per page: the title row has one owner, so a second `PageActions` on the page a person sees would hide the first's commands without a word. It throws in development and in tests, and in production the one that mounted last keeps the row. A page kept hidden for a quick return (an `Activity` with `mode="hidden"`) has given the row back and does not count. Takes `period`, `secondary`, `primary` and `menu` and draws their order and variants itself: the period, outline, default, then the three dots last. The menu needs two commands or more; a single extra command is the secondary. A primary whose job comes in a few kinds takes `choices`: its button opens a menu of them aligned to its end, each with its icon, as Vercel's "Add New…" does; a kind that needs its own fields opens its dialog from its row. A destination outside the product ends in the arrow. A running command (`pending`) keeps its place and icon, says its pending word and holds, and the type requires `pendingLabel` whenever `pending` is set. A command here is never destructive or warning: those sit in the danger zone of the page, in a card.
132
133
  * @words The primary is the page's main job as verb and noun: "Invite member", "New Agent". Its choices are the kinds, as nouns: "Folder", "Documents", "Web page". The pending word is its -ing form: "Inviting member". The menu names the page's record at its top and keeps the destructive command last, after a divider.
133
134
  * @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A running command is `aria-busy` and keeps focus. The three dots carry "More for {record}"; the menu returns focus to them when it closes.
134
135
  */
@@ -1 +1 @@
1
- {"version":3,"file":"page-actions.d.ts","sourceRoot":"","sources":["../../src/components/page-actions.tsx"],"names":[],"mappings":"AAGA,OAAO,EAGL,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,SAAS,E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AAE,SAAS,EAAE,IAAI,EAAE,EAAE,gBAAgB,sCAUpF;AAyCD;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,EACtC,QAAQ,EACR,MAAa,GACd,EAAE;IACD,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,+BAIA;AAED,uGAAuG;AACvG,wBAAgB,aAAa,IAAI,OAAO,CAGvC;AAED,yFAAyF;AACzF,wBAAgB,eAAe,gCAS9B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,sCA6BlD"}
@@ -55,13 +55,23 @@ export function PageActionsRow({ period, primary, secondary, menu }) {
55
55
  return null;
56
56
  return (_jsxs("div", { "data-slot": "page-actions", className: "flex max-w-full min-w-0 flex-wrap items-center gap-2", children: [period, secondary ? _jsx(PageCommandButton, { command: secondary, variant: "outline" }) : null, primary ? _jsx(PageCommandButton, { command: primary, variant: "default" }) : null, menu ? _jsx(ActionMenu, { ...menu }) : null] }));
57
57
  }
58
+ const TWO_OWNERS = "Two PageActions are on the page at once. The title row has one owner, so the one that mounted last hides the commands of the other. Give the page one PageActions.";
58
59
  function createHost(titled = true) {
59
- return createStore((set) => ({
60
+ return createStore((set, get) => ({
60
61
  titled,
61
62
  element: null,
62
63
  owner: null,
63
64
  attach: (element) => set({ element }),
64
- claim: (owner) => set({ owner }),
65
+ claim: (owner) => {
66
+ const current = get().owner;
67
+ if (current !== null &&
68
+ current !== owner &&
69
+ typeof process !== "undefined" &&
70
+ process.env.NODE_ENV !== "production") {
71
+ throw new Error(TWO_OWNERS);
72
+ }
73
+ set({ owner });
74
+ },
65
75
  release: (owner) => set((state) => (state.owner === owner ? { owner: null } : state)),
66
76
  }));
67
77
  }
@@ -92,14 +102,15 @@ export function PageActionsSlot() {
92
102
  return (_jsx("div", { "data-slot": "page-header-actions", className: "flex max-w-full min-w-0 items-center empty:hidden", ref: host?.getState().attach }));
93
103
  }
94
104
  /**
95
- * A page's actions, drawn on its title's row. Only the page shown last owns
96
- * the row: a page kept hidden for a quick return gives the row back. Outside a
105
+ * A page's actions, drawn on its title's row. The row has one owner: a page
106
+ * kept hidden for a quick return has given it back, and a second `PageActions`
107
+ * on the page a person sees throws in development and in tests. Outside a
97
108
  * `PageActionsHostProvider`, they render where they stand.
98
109
  *
99
110
  * @family Actions
100
111
  * @when The actions of a collection, an object or an overview page, on the title's row at its trailing edge. A Configuration page has none: each section saves from its footer.
101
- * @instead A row's actions are the row's one button and its `ActionMenu`. A collection toolbar holds search and filters, never a page action.
102
- * @behaviour Takes `period`, `secondary`, `primary` and `menu` and draws their order and variants itself: the period, outline, default, then the three dots last. The menu needs two commands or more; a single extra command is the secondary. A primary whose job comes in a few kinds takes `choices`: its button opens a menu of them aligned to its end, each with its icon, as Vercel's "Add New…" does; a kind that needs its own fields opens its dialog from its row. A destination outside the product ends in the arrow. A running command (`pending`) keeps its place and icon, says its pending word and holds, and the type requires `pendingLabel` whenever `pending` is set. A command here is never destructive or warning: those sit in the danger zone of the page, in a card.
112
+ * @instead A row's actions are the row's one button and its `ActionMenu`. A collection toolbar holds search and filters, never a page action. A page whose parts each have commands gathers them in the one `PageActions` of the component that owns the page; a part never draws a second.
113
+ * @behaviour One per page: the title row has one owner, so a second `PageActions` on the page a person sees would hide the first's commands without a word. It throws in development and in tests, and in production the one that mounted last keeps the row. A page kept hidden for a quick return (an `Activity` with `mode="hidden"`) has given the row back and does not count. Takes `period`, `secondary`, `primary` and `menu` and draws their order and variants itself: the period, outline, default, then the three dots last. The menu needs two commands or more; a single extra command is the secondary. A primary whose job comes in a few kinds takes `choices`: its button opens a menu of them aligned to its end, each with its icon, as Vercel's "Add New…" does; a kind that needs its own fields opens its dialog from its row. A destination outside the product ends in the arrow. A running command (`pending`) keeps its place and icon, says its pending word and holds, and the type requires `pendingLabel` whenever `pending` is set. A command here is never destructive or warning: those sit in the danger zone of the page, in a card.
103
114
  * @words The primary is the page's main job as verb and noun: "Invite member", "New Agent". Its choices are the kinds, as nouns: "Folder", "Documents", "Web page". The pending word is its -ing form: "Inviting member". The menu names the page's record at its top and keeps the destructive command last, after a divider.
104
115
  * @access DOM order is visual order. A command whose label does not name its target carries `accessibleName`. A running command is `aria-busy` and keeps focus. The three dots carry "More for {record}"; the menu returns focus to them when it closes.
105
116
  */
@@ -8,7 +8,7 @@ import { type IdentityMarkProps } from "./identity-mark.js";
8
8
  * @family Status
9
9
  * @when The first cell of every collection row: the mark, the name, and one muted line saying what the record is or where it comes from, so the row reads without a heading.
10
10
  * @instead An Agent in a gallery is `AgentListRow`; a model is `ModelIdentity`. A descriptive item with prose and actions is `Item`.
11
- * @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text; in a row on a card narrower than its columns, the facts that leave the row join it after a middle dot and wrap so every value stays readable, and a status that leaves the row stands beside the name, which ends in an ellipsis before it. `wraps` only when the name is the whole record, such as a memory, and then the detail wraps too. The table owns the link.
11
+ * @behaviour The mark stands 16 px before the name. The name is semibold (600) ink and the detail a muted 14 px line, two lines with no gap between them, so the row is an entity row; `mark` is required; a record with nothing to say under its name leaves `detail` out and is the name alone, never a dash, which is a table cell's missing value and not a record's. The name holds one line and ends in an ellipsis, whole in its title, with a `hint` such as an ID read after it. The detail is one line too and ends in an ellipsis, whole in its title when it is text; in a row on a card narrower than its columns, the facts that leave the row join it after a middle dot and wrap so every value stays readable, and a status that leaves the row stands beside the name, which ends in an ellipsis before it. `wraps` only when the name is the whole record, such as a memory: the name is then a sentence at the body's regular weight, not a name in semibold, and the detail wraps too. The table owns the link.
12
12
  * @words “Lead the left column with a scannable identifier: an `Avatar` or icon, a Title Case label, then sentence-case secondary metadata (`Member since Mar 14, 2026`).” (https://vercel.com/geist/entity)
13
13
  * Ours: the name as the record calls itself, and the detail in sentence case: kind, then relation, three to six words, "Company skill · every Agent has it".
14
14
  * @access The name is the row link's text; the mark is decorative; the title carries the full name.
@@ -1 +1 @@
1
- {"version":3,"file":"record-identity.d.ts","sourceRoot":"","sources":["../../src/components/record-identity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAIlF;;;;;;;;;;;;GAYG;AACH,iBAAS,cAAc,CAAC,EACtB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,KAAa,GACd,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,8FAA8F;IAC9F,IAAI,EAAE,iBAAiB,CAAC;IACxB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,+BAkCA;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"record-identity.d.ts","sourceRoot":"","sources":["../../src/components/record-identity.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAIlF;;;;;;;;;;;;GAYG;AACH,iBAAS,cAAc,CAAC,EACtB,IAAI,EACJ,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,KAAa,GACd,EAAE;IACD,IAAI,EAAE,SAAS,CAAC;IAChB,8FAA8F;IAC9F,IAAI,EAAE,iBAAiB,CAAC;IACxB,qFAAqF;IACrF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wEAAwE;IACxE,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,+BAgCA;AAED,OAAO,EAAE,cAAc,EAAE,CAAC"}