@gnome-ui/react 1.45.2 → 1.46.0
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.
- package/dist/components/AboutDialog/AboutDialog.cjs +1 -1
- package/dist/components/AboutDialog/AboutDialog.cjs.map +1 -1
- package/dist/components/AboutDialog/AboutDialog.js +105 -106
- package/dist/components/AboutDialog/AboutDialog.js.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.cjs +1 -1
- package/dist/components/BottomSheet/BottomSheet.cjs.map +1 -1
- package/dist/components/BottomSheet/BottomSheet.js +36 -36
- package/dist/components/BottomSheet/BottomSheet.js.map +1 -1
- package/dist/components/Dialog/Dialog.cjs +1 -1
- package/dist/components/Dialog/Dialog.cjs.map +1 -1
- package/dist/components/Dialog/Dialog.js +50 -51
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/dialogUtils.cjs +1 -1
- package/dist/components/Dialog/dialogUtils.cjs.map +1 -1
- package/dist/components/Dialog/dialogUtils.d.ts +6 -0
- package/dist/components/Dialog/dialogUtils.js +11 -2
- package/dist/components/Dialog/dialogUtils.js.map +1 -1
- package/dist/components/Dropdown/Dropdown.cjs +1 -1
- package/dist/components/Dropdown/Dropdown.cjs.map +1 -1
- package/dist/components/Dropdown/Dropdown.js +88 -84
- package/dist/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/PasswordEntryRow/PasswordEntryRow.cjs +1 -1
- package/dist/components/PasswordEntryRow/PasswordEntryRow.cjs.map +1 -1
- package/dist/components/PasswordEntryRow/PasswordEntryRow.d.ts +1 -1
- package/dist/components/PasswordEntryRow/PasswordEntryRow.js +10 -9
- package/dist/components/PasswordEntryRow/PasswordEntryRow.js.map +1 -1
- package/dist/components/ShortcutsDialog/ShortcutsDialog.cjs +1 -1
- package/dist/components/ShortcutsDialog/ShortcutsDialog.cjs.map +1 -1
- package/dist/components/ShortcutsDialog/ShortcutsDialog.js +74 -74
- package/dist/components/ShortcutsDialog/ShortcutsDialog.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,127 +1,127 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import { useBodyScrollLock as e } from "../Dialog/dialogUtils.js";
|
|
2
|
+
import t from "./ShortcutsDialog.module.css.js";
|
|
3
|
+
import { useCallback as n, useEffect as r, useRef as i, useState as a } from "react";
|
|
4
|
+
import { createPortal as o } from "react-dom";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
6
|
//#region src/components/ShortcutsDialog/ShortcutsDialog.tsx
|
|
6
|
-
var
|
|
7
|
-
let [
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}, [
|
|
11
|
-
let
|
|
7
|
+
var l = "button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])", u = ({ open: u, onClose: d, title: f = "Keyboard Shortcuts", sections: p }) => {
|
|
8
|
+
let [m, h] = a(""), g = i(null), _ = i(null), v = i(null), y = i(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);
|
|
9
|
+
e(u), r(() => {
|
|
10
|
+
u ? (v.current = document.activeElement, requestAnimationFrame(() => _.current?.focus())) : (h(""), v.current?.focus());
|
|
11
|
+
}, [u]);
|
|
12
|
+
let b = n((e) => {
|
|
12
13
|
if (e.key === "Escape") {
|
|
13
|
-
e.preventDefault(),
|
|
14
|
+
e.preventDefault(), d();
|
|
14
15
|
return;
|
|
15
16
|
}
|
|
16
17
|
if (e.key !== "Tab") return;
|
|
17
|
-
let t = Array.from(
|
|
18
|
+
let t = Array.from(g.current?.querySelectorAll(l) ?? []);
|
|
18
19
|
if (t.length === 0) return;
|
|
19
20
|
let n = t[0], r = t[t.length - 1];
|
|
20
21
|
e.shiftKey ? document.activeElement === n && (e.preventDefault(), r.focus()) : document.activeElement === r && (e.preventDefault(), n.focus());
|
|
21
|
-
}, [
|
|
22
|
-
if (!
|
|
23
|
-
let
|
|
22
|
+
}, [d]);
|
|
23
|
+
if (!u) return null;
|
|
24
|
+
let x = m.trim().toLowerCase(), S = p.map((e) => ({
|
|
24
25
|
...e,
|
|
25
|
-
shortcuts: e.shortcuts.filter(({ description: e, keys: t }) => !
|
|
26
|
-
})).filter((e) => e.shortcuts.length > 0),
|
|
27
|
-
className:
|
|
28
|
-
onClick:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
ref: h,
|
|
26
|
+
shortcuts: e.shortcuts.filter(({ description: e, keys: t }) => !x || e.toLowerCase().includes(x) || t.some((e) => e.toLowerCase().includes(x)))
|
|
27
|
+
})).filter((e) => e.shortcuts.length > 0), C = /* @__PURE__ */ s("div", {
|
|
28
|
+
className: t.backdrop,
|
|
29
|
+
onClick: d,
|
|
30
|
+
children: /* @__PURE__ */ c("div", {
|
|
31
|
+
ref: g,
|
|
32
32
|
role: "dialog",
|
|
33
33
|
"aria-modal": "true",
|
|
34
|
-
"aria-labelledby":
|
|
35
|
-
className:
|
|
36
|
-
onKeyDown:
|
|
34
|
+
"aria-labelledby": y.current,
|
|
35
|
+
className: t.dialog,
|
|
36
|
+
onKeyDown: b,
|
|
37
37
|
onClick: (e) => e.stopPropagation(),
|
|
38
38
|
children: [
|
|
39
|
-
/* @__PURE__ */
|
|
40
|
-
className:
|
|
41
|
-
children: [/* @__PURE__ */
|
|
42
|
-
id:
|
|
43
|
-
className:
|
|
44
|
-
children:
|
|
45
|
-
}), /* @__PURE__ */
|
|
39
|
+
/* @__PURE__ */ c("div", {
|
|
40
|
+
className: t.header,
|
|
41
|
+
children: [/* @__PURE__ */ s("span", {
|
|
42
|
+
id: y.current,
|
|
43
|
+
className: t.title,
|
|
44
|
+
children: f
|
|
45
|
+
}), /* @__PURE__ */ s("button", {
|
|
46
46
|
type: "button",
|
|
47
|
-
className:
|
|
47
|
+
className: t.closeBtn,
|
|
48
48
|
"aria-label": "Close",
|
|
49
|
-
onClick:
|
|
49
|
+
onClick: d,
|
|
50
50
|
children: "×"
|
|
51
51
|
})]
|
|
52
52
|
}),
|
|
53
|
-
/* @__PURE__ */
|
|
54
|
-
className:
|
|
53
|
+
/* @__PURE__ */ c("div", {
|
|
54
|
+
className: t.searchRow,
|
|
55
55
|
children: [
|
|
56
|
-
/* @__PURE__ */
|
|
57
|
-
className:
|
|
56
|
+
/* @__PURE__ */ s("span", {
|
|
57
|
+
className: t.searchIcon,
|
|
58
58
|
"aria-hidden": "true",
|
|
59
59
|
children: "⌕"
|
|
60
60
|
}),
|
|
61
|
-
/* @__PURE__ */
|
|
62
|
-
ref:
|
|
61
|
+
/* @__PURE__ */ s("input", {
|
|
62
|
+
ref: _,
|
|
63
63
|
type: "search",
|
|
64
|
-
className:
|
|
64
|
+
className: t.searchInput,
|
|
65
65
|
placeholder: "Search shortcuts…",
|
|
66
|
-
value:
|
|
67
|
-
onChange: (e) =>
|
|
66
|
+
value: m,
|
|
67
|
+
onChange: (e) => h(e.target.value),
|
|
68
68
|
"aria-label": "Search shortcuts"
|
|
69
69
|
}),
|
|
70
|
-
|
|
70
|
+
m && /* @__PURE__ */ s("button", {
|
|
71
71
|
type: "button",
|
|
72
|
-
className:
|
|
72
|
+
className: t.searchClear,
|
|
73
73
|
"aria-label": "Clear search",
|
|
74
74
|
onClick: () => {
|
|
75
|
-
|
|
75
|
+
h(""), _.current?.focus();
|
|
76
76
|
},
|
|
77
77
|
children: "×"
|
|
78
78
|
})
|
|
79
79
|
]
|
|
80
80
|
}),
|
|
81
|
-
/* @__PURE__ */
|
|
82
|
-
className:
|
|
81
|
+
/* @__PURE__ */ s("div", {
|
|
82
|
+
className: t.body,
|
|
83
83
|
role: "list",
|
|
84
|
-
children:
|
|
85
|
-
className:
|
|
84
|
+
children: S.length === 0 ? /* @__PURE__ */ c("p", {
|
|
85
|
+
className: t.empty,
|
|
86
86
|
children: [
|
|
87
87
|
"No shortcuts match \"",
|
|
88
|
-
|
|
88
|
+
m,
|
|
89
89
|
"\""
|
|
90
90
|
]
|
|
91
|
-
}) :
|
|
92
|
-
className:
|
|
93
|
-
children: [/* @__PURE__ */
|
|
94
|
-
className:
|
|
95
|
-
children:
|
|
96
|
-
}), /* @__PURE__ */
|
|
97
|
-
className:
|
|
98
|
-
children:
|
|
99
|
-
className:
|
|
100
|
-
children: [/* @__PURE__ */
|
|
101
|
-
className:
|
|
102
|
-
"aria-label":
|
|
103
|
-
children:
|
|
104
|
-
className:
|
|
105
|
-
children: [/* @__PURE__ */
|
|
106
|
-
className:
|
|
91
|
+
}) : S.map((e) => /* @__PURE__ */ c("section", {
|
|
92
|
+
className: t.section,
|
|
93
|
+
children: [/* @__PURE__ */ s("h3", {
|
|
94
|
+
className: t.sectionTitle,
|
|
95
|
+
children: e.title
|
|
96
|
+
}), /* @__PURE__ */ s("ul", {
|
|
97
|
+
className: t.list,
|
|
98
|
+
children: e.shortcuts.map((e) => /* @__PURE__ */ c("li", {
|
|
99
|
+
className: t.row,
|
|
100
|
+
children: [/* @__PURE__ */ s("span", {
|
|
101
|
+
className: t.keys,
|
|
102
|
+
"aria-label": e.keys.join(" + "),
|
|
103
|
+
children: e.keys.map((n, r) => /* @__PURE__ */ c("span", {
|
|
104
|
+
className: t.keyCap,
|
|
105
|
+
children: [/* @__PURE__ */ s("kbd", { children: n }), r < e.keys.length - 1 && /* @__PURE__ */ s("span", {
|
|
106
|
+
className: t.plus,
|
|
107
107
|
"aria-hidden": "true",
|
|
108
108
|
children: "+"
|
|
109
109
|
})]
|
|
110
110
|
}, r))
|
|
111
|
-
}), /* @__PURE__ */
|
|
112
|
-
className:
|
|
113
|
-
children:
|
|
111
|
+
}), /* @__PURE__ */ s("span", {
|
|
112
|
+
className: t.description,
|
|
113
|
+
children: e.description
|
|
114
114
|
})]
|
|
115
|
-
},
|
|
115
|
+
}, e.description))
|
|
116
116
|
})]
|
|
117
|
-
},
|
|
117
|
+
}, e.title))
|
|
118
118
|
})
|
|
119
119
|
]
|
|
120
120
|
})
|
|
121
121
|
});
|
|
122
|
-
return typeof document > "u" ?
|
|
122
|
+
return typeof document > "u" ? C : o(C, document.body);
|
|
123
123
|
};
|
|
124
124
|
//#endregion
|
|
125
|
-
export {
|
|
125
|
+
export { u as ShortcutsDialog };
|
|
126
126
|
|
|
127
127
|
//# sourceMappingURL=ShortcutsDialog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShortcutsDialog.js","names":[],"sources":["../../../src/components/ShortcutsDialog/ShortcutsDialog.tsx"],"sourcesContent":["import { type KeyboardEvent, useCallback, useEffect, useRef, useState } from 'react';\n\nimport { createPortal } from 'react-dom';\n\nimport styles from './ShortcutsDialog.module.css';\n\n// ─── Public types ─────────────────────────────────────────────────────────────\n\nexport interface ShortcutEntry {\n /**\n * Key combination tokens, e.g. `[\"Ctrl\", \"S\"]` or `[\"F5\"]`.\n * Each token is rendered as a styled `<kbd>` key cap.\n */\n keys: string[];\n /** Human-readable description of what the shortcut does. */\n description: string;\n}\n\nexport interface ShortcutsSection {\n /** Section heading, e.g. \"File\", \"Edit\". */\n title: string;\n shortcuts: ShortcutEntry[];\n}\n\nexport interface ShortcutsDialogProps {\n /** Whether the dialog is visible. */\n open: boolean;\n /** Called when the dialog is dismissed (Escape, close button). */\n onClose: () => void;\n /** Dialog heading. Defaults to `\"Keyboard Shortcuts\"`. */\n title?: string;\n /** Shortcut sections to display. */\n sections: ShortcutsSection[];\n}\n\n// ─── Focusable selector (reused from Dialog) ─────────────────────────────────\n\nconst FOCUSABLE =\n 'button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\n// ─── Component ────────────────────────────────────────────────────────────────\n\n/**\n * Modal dialog listing keyboard shortcuts, grouped in sections, with\n * integrated search to filter by description or key name.\n *\n * Mirrors `AdwShortcutsDialog` (libadwaita 1.8 / GNOME 49).\n *\n * - Renders into a portal (`document.body`).\n * - Traps focus; Escape closes.\n * - Search filters across all sections in real time.\n *\n * @see https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.ShortcutsDialog.html\n */\nexport const ShortcutsDialog = ({\n open,\n onClose,\n title = 'Keyboard Shortcuts',\n sections,\n}: ShortcutsDialogProps) => {\n const [query, setQuery] = useState('');\n const dialogRef = useRef<HTMLDivElement>(null);\n const searchRef = useRef<HTMLInputElement>(null);\n const previouslyFocused = useRef<Element | null>(null);\n const titleId = useRef(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);\n\n // Save / restore focus\n useEffect(() => {\n if (open) {\n previouslyFocused.current = document.activeElement;\n // Focus the search field after mount\n requestAnimationFrame(() => searchRef.current?.focus());\n } else {\n setQuery('');\n (previouslyFocused.current as HTMLElement | null)?.focus();\n }\n }, [open]);\n\n // Focus trap + Escape\n const handleKeyDown = useCallback(\n (e: KeyboardEvent<HTMLDivElement>) => {\n if (e.key === 'Escape') {\n e.preventDefault();\n onClose();\n\n return;\n }\n\n if (e.key !== 'Tab') {\n return;\n }\n\n const focusable = Array.from(\n dialogRef.current?.querySelectorAll<HTMLElement>(FOCUSABLE) ?? [],\n );\n\n if (focusable.length === 0) {\n return;\n }\n\n const first = focusable[0];\n const last = focusable[focusable.length - 1];\n\n if (e.shiftKey) {\n if (document.activeElement === first) {\n e.preventDefault();\n last.focus();\n }\n } else {\n if (document.activeElement === last) {\n e.preventDefault();\n first.focus();\n }\n }\n },\n [onClose],\n );\n\n if (!open) {\n return null;\n }\n\n // Filter sections by query\n const q = query.trim().toLowerCase();\n const filtered = sections\n .map((section) => ({\n ...section,\n shortcuts: section.shortcuts.filter(\n ({ description, keys }) =>\n !q ||\n description.toLowerCase().includes(q) ||\n keys.some((k) => k.toLowerCase().includes(q)),\n ),\n }))\n .filter((s) => s.shortcuts.length > 0);\n\n const node = (\n <div className={styles.backdrop} onClick={onClose}
|
|
1
|
+
{"version":3,"file":"ShortcutsDialog.js","names":[],"sources":["../../../src/components/ShortcutsDialog/ShortcutsDialog.tsx"],"sourcesContent":["import { type KeyboardEvent, useCallback, useEffect, useRef, useState } from 'react';\n\nimport { createPortal } from 'react-dom';\n\nimport { useBodyScrollLock } from '../Dialog/dialogUtils';\n\nimport styles from './ShortcutsDialog.module.css';\n\n// ─── Public types ─────────────────────────────────────────────────────────────\n\nexport interface ShortcutEntry {\n /**\n * Key combination tokens, e.g. `[\"Ctrl\", \"S\"]` or `[\"F5\"]`.\n * Each token is rendered as a styled `<kbd>` key cap.\n */\n keys: string[];\n /** Human-readable description of what the shortcut does. */\n description: string;\n}\n\nexport interface ShortcutsSection {\n /** Section heading, e.g. \"File\", \"Edit\". */\n title: string;\n shortcuts: ShortcutEntry[];\n}\n\nexport interface ShortcutsDialogProps {\n /** Whether the dialog is visible. */\n open: boolean;\n /** Called when the dialog is dismissed (Escape, close button). */\n onClose: () => void;\n /** Dialog heading. Defaults to `\"Keyboard Shortcuts\"`. */\n title?: string;\n /** Shortcut sections to display. */\n sections: ShortcutsSection[];\n}\n\n// ─── Focusable selector (reused from Dialog) ─────────────────────────────────\n\nconst FOCUSABLE =\n 'button:not([disabled]), [href], input:not([disabled]), [tabindex]:not([tabindex=\"-1\"])';\n\n// ─── Component ────────────────────────────────────────────────────────────────\n\n/**\n * Modal dialog listing keyboard shortcuts, grouped in sections, with\n * integrated search to filter by description or key name.\n *\n * Mirrors `AdwShortcutsDialog` (libadwaita 1.8 / GNOME 49).\n *\n * - Renders into a portal (`document.body`).\n * - Traps focus; Escape closes.\n * - Search filters across all sections in real time.\n *\n * @see https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.ShortcutsDialog.html\n */\nexport const ShortcutsDialog = ({\n open,\n onClose,\n title = 'Keyboard Shortcuts',\n sections,\n}: ShortcutsDialogProps) => {\n const [query, setQuery] = useState('');\n const dialogRef = useRef<HTMLDivElement>(null);\n const searchRef = useRef<HTMLInputElement>(null);\n const previouslyFocused = useRef<Element | null>(null);\n const titleId = useRef(`shortcuts-title-${Math.random().toString(36).slice(2, 9)}`);\n\n useBodyScrollLock(open);\n\n // Save / restore focus\n useEffect(() => {\n if (open) {\n previouslyFocused.current = document.activeElement;\n // Focus the search field after mount\n requestAnimationFrame(() => searchRef.current?.focus());\n } else {\n setQuery('');\n (previouslyFocused.current as HTMLElement | null)?.focus();\n }\n }, [open]);\n\n // Focus trap + Escape\n const handleKeyDown = useCallback(\n (e: KeyboardEvent<HTMLDivElement>) => {\n if (e.key === 'Escape') {\n e.preventDefault();\n onClose();\n\n return;\n }\n\n if (e.key !== 'Tab') {\n return;\n }\n\n const focusable = Array.from(\n dialogRef.current?.querySelectorAll<HTMLElement>(FOCUSABLE) ?? [],\n );\n\n if (focusable.length === 0) {\n return;\n }\n\n const first = focusable[0];\n const last = focusable[focusable.length - 1];\n\n if (e.shiftKey) {\n if (document.activeElement === first) {\n e.preventDefault();\n last.focus();\n }\n } else {\n if (document.activeElement === last) {\n e.preventDefault();\n first.focus();\n }\n }\n },\n [onClose],\n );\n\n if (!open) {\n return null;\n }\n\n // Filter sections by query\n const q = query.trim().toLowerCase();\n const filtered = sections\n .map((section) => ({\n ...section,\n shortcuts: section.shortcuts.filter(\n ({ description, keys }) =>\n !q ||\n description.toLowerCase().includes(q) ||\n keys.some((k) => k.toLowerCase().includes(q)),\n ),\n }))\n .filter((s) => s.shortcuts.length > 0);\n\n const node = (\n <div className={styles.backdrop} onClick={onClose}>\n <div\n ref={dialogRef}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby={titleId.current}\n className={styles.dialog}\n onKeyDown={handleKeyDown}\n onClick={(e) => e.stopPropagation()}\n >\n {/* ── Header ── */}\n <div className={styles.header}>\n <span id={titleId.current} className={styles.title}>\n {title}\n </span>\n <button type=\"button\" className={styles.closeBtn} aria-label=\"Close\" onClick={onClose}>\n ×\n </button>\n </div>\n\n {/* ── Search ── */}\n <div className={styles.searchRow}>\n <span className={styles.searchIcon} aria-hidden=\"true\">\n ⌕\n </span>\n <input\n ref={searchRef}\n type=\"search\"\n className={styles.searchInput}\n placeholder=\"Search shortcuts…\"\n value={query}\n onChange={(e) => setQuery(e.target.value)}\n aria-label=\"Search shortcuts\"\n />\n {query && (\n <button\n type=\"button\"\n className={styles.searchClear}\n aria-label=\"Clear search\"\n onClick={() => {\n setQuery('');\n searchRef.current?.focus();\n }}\n >\n ×\n </button>\n )}\n </div>\n\n {/* ── Shortcut list ── */}\n <div className={styles.body} role=\"list\">\n {filtered.length === 0 ? (\n <p className={styles.empty}>No shortcuts match \"{query}\"</p>\n ) : (\n filtered.map((section) => (\n <section key={section.title} className={styles.section}>\n <h3 className={styles.sectionTitle}>{section.title}</h3>\n <ul className={styles.list}>\n {section.shortcuts.map((shortcut) => (\n <li key={shortcut.description} className={styles.row}>\n <span className={styles.keys} aria-label={shortcut.keys.join(' + ')}>\n {shortcut.keys.map((key, i) => (\n <span key={i} className={styles.keyCap}>\n <kbd>{key}</kbd>\n {i < shortcut.keys.length - 1 && (\n <span className={styles.plus} aria-hidden=\"true\">\n +\n </span>\n )}\n </span>\n ))}\n </span>\n <span className={styles.description}>{shortcut.description}</span>\n </li>\n ))}\n </ul>\n </section>\n ))\n )}\n </div>\n </div>\n </div>\n );\n\n if (typeof document === 'undefined') {\n return node;\n }\n\n return createPortal(node, document.body);\n};\n"],"mappings":";;;;;;AAuCA,IAAM,IACJ,4FAgBW,KAAmB,EAC9B,SACA,YACA,WAAQ,sBACR,kBAC0B;CAC1B,IAAM,CAAC,GAAO,KAAY,EAAS,EAAE,GAC/B,IAAY,EAAuB,IAAI,GACvC,IAAY,EAAyB,IAAI,GACzC,IAAoB,EAAuB,IAAI,GAC/C,IAAU,EAAO,mBAAmB,KAAK,OAAO,EAAE,SAAS,EAAE,EAAE,MAAM,GAAG,CAAC,GAAG;CAKlF,AAHA,EAAkB,CAAI,GAGtB,QAAgB;EACd,AAAI,KACF,EAAkB,UAAU,SAAS,eAErC,4BAA4B,EAAU,SAAS,MAAM,CAAC,MAEtD,EAAS,EAAE,GACX,EAAmB,SAAgC,MAAM;CAE7D,GAAG,CAAC,CAAI,CAAC;CAGT,IAAM,IAAgB,GACnB,MAAqC;EACpC,IAAI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