@oondemand/oon-core-front 0.5.6 → 0.6.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/chunk-32GGDIWB.js +71 -0
- package/dist/chunk-32GGDIWB.js.map +1 -0
- package/dist/chunk-ALZCHGGI.js +19 -0
- package/dist/chunk-ALZCHGGI.js.map +1 -0
- package/dist/chunk-KD7UQF5E.js +103 -0
- package/dist/chunk-KD7UQF5E.js.map +1 -0
- package/dist/chunk-R7ZBLDC2.js +5429 -0
- package/dist/chunk-R7ZBLDC2.js.map +1 -0
- package/dist/chunk-V6TY7KAL.js +8 -0
- package/dist/chunk-V6TY7KAL.js.map +1 -0
- package/dist/chunk-VC6NTMZS.js +187 -0
- package/dist/chunk-VC6NTMZS.js.map +1 -0
- package/dist/chunk-VJ7YNFF7.js +694 -0
- package/dist/chunk-VJ7YNFF7.js.map +1 -0
- package/dist/chunk-VJDTI2II.js +2111 -0
- package/dist/chunk-VJDTI2II.js.map +1 -0
- package/dist/hooks-lXMaiLqz.d.ts +89 -0
- package/dist/hooks.d.ts +8 -0
- package/dist/hooks.js +24 -0
- package/dist/hooks.js.map +1 -0
- package/dist/index.d.ts +26 -1187
- package/dist/index.js +63 -10202
- package/dist/index.js.map +1 -1
- package/dist/routing.d.ts +12 -0
- package/dist/routing.js +17 -0
- package/dist/routing.js.map +1 -0
- package/dist/testing.d.ts +8 -0
- package/dist/testing.js +22 -0
- package/dist/testing.js.map +1 -0
- package/dist/theme-Clhoswb3.d.ts +28 -0
- package/dist/theme.d.ts +12 -0
- package/dist/theme.js +14 -0
- package/dist/theme.js.map +1 -0
- package/dist/types-BEVt-nU8.d.ts +666 -0
- package/dist/ui-1Um8gXIZ.d.ts +337 -0
- package/dist/ui.d.ts +5 -0
- package/dist/ui.js +86 -0
- package/dist/ui.js.map +1 -0
- package/package.json +21 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
3
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
4
|
+
|
|
5
|
+
export {
|
|
6
|
+
__publicField
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=chunk-V6TY7KAL.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
// src/config/theme.ts
|
|
2
|
+
import { createSystem, defaultConfig, defineConfig, mergeConfigs } from "@chakra-ui/react";
|
|
3
|
+
function createOonTheme(definition) {
|
|
4
|
+
if (!/^[a-z][a-z0-9-]*$/.test(definition?.id || "")) {
|
|
5
|
+
throw new Error("createOonTheme: id deve usar letras min\xFAsculas, n\xFAmeros e h\xEDfen.");
|
|
6
|
+
}
|
|
7
|
+
if (definition.extends?.id === definition.id) {
|
|
8
|
+
throw new Error(`createOonTheme: o tema ${definition.id} n\xE3o pode estender a si mesmo.`);
|
|
9
|
+
}
|
|
10
|
+
return Object.freeze({ ...definition });
|
|
11
|
+
}
|
|
12
|
+
var brandColors = {
|
|
13
|
+
brand: {
|
|
14
|
+
25: { value: "#F8FCFF" },
|
|
15
|
+
50: { value: "#EEF8FD" },
|
|
16
|
+
75: { value: "#E2F3FB" },
|
|
17
|
+
100: { value: "#C7E8F7" },
|
|
18
|
+
200: { value: "#82C8E8" },
|
|
19
|
+
300: { value: "#3FA6E0" },
|
|
20
|
+
350: { value: "#0F8DD0" },
|
|
21
|
+
400: { value: "#0580B9" },
|
|
22
|
+
500: { value: "#0474AF" },
|
|
23
|
+
600: { value: "#036491" },
|
|
24
|
+
700: { value: "#014364" },
|
|
25
|
+
800: { value: "#073A52" },
|
|
26
|
+
850: { value: "#082F3F" },
|
|
27
|
+
900: { value: "#07262E" }
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
var oonThemeConfig = defineConfig({
|
|
31
|
+
globalCss: {
|
|
32
|
+
"html, body, #root": {
|
|
33
|
+
minHeight: "100%"
|
|
34
|
+
},
|
|
35
|
+
body: {
|
|
36
|
+
margin: 0,
|
|
37
|
+
bg: "#F8F9FA",
|
|
38
|
+
color: "#24323A",
|
|
39
|
+
fontFamily: "Poppins, Inter, system-ui, sans-serif",
|
|
40
|
+
fontSize: "14px"
|
|
41
|
+
},
|
|
42
|
+
"button, input, select, textarea": {
|
|
43
|
+
fontFamily: "inherit"
|
|
44
|
+
},
|
|
45
|
+
"::selection": {
|
|
46
|
+
bg: "#C7E8F7",
|
|
47
|
+
color: "#07262E"
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
theme: {
|
|
51
|
+
tokens: {
|
|
52
|
+
colors: brandColors,
|
|
53
|
+
fonts: {
|
|
54
|
+
body: { value: "Poppins, Inter, system-ui, sans-serif" },
|
|
55
|
+
heading: { value: "Poppins, Inter, system-ui, sans-serif" }
|
|
56
|
+
},
|
|
57
|
+
radii: {
|
|
58
|
+
oon: { value: "10px" }
|
|
59
|
+
},
|
|
60
|
+
shadows: {
|
|
61
|
+
oon: { value: "0 8px 24px rgba(7, 38, 46, 0.08)" }
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
semanticTokens: {
|
|
65
|
+
colors: {
|
|
66
|
+
brand: {
|
|
67
|
+
solid: { value: "{colors.brand.500}" },
|
|
68
|
+
contrast: { value: "white" },
|
|
69
|
+
fg: { value: "{colors.brand.700}" },
|
|
70
|
+
muted: { value: "{colors.brand.50}" },
|
|
71
|
+
subtle: { value: "{colors.brand.75}" },
|
|
72
|
+
emphasized: { value: "{colors.brand.600}" },
|
|
73
|
+
focusRing: { value: "{colors.brand.500}" }
|
|
74
|
+
},
|
|
75
|
+
surface: {
|
|
76
|
+
canvas: { value: "{colors.gray.50}" },
|
|
77
|
+
panel: { value: "white" },
|
|
78
|
+
elevated: { value: "white" }
|
|
79
|
+
},
|
|
80
|
+
text: {
|
|
81
|
+
primary: { value: "{colors.gray.800}" },
|
|
82
|
+
muted: { value: "{colors.gray.600}" },
|
|
83
|
+
inverse: { value: "white" }
|
|
84
|
+
},
|
|
85
|
+
border: {
|
|
86
|
+
default: { value: "{colors.gray.200}" },
|
|
87
|
+
strong: { value: "{colors.gray.300}" }
|
|
88
|
+
},
|
|
89
|
+
status: {
|
|
90
|
+
success: { value: "{colors.green.600}" },
|
|
91
|
+
warning: { value: "{colors.orange.600}" },
|
|
92
|
+
danger: { value: "{colors.red.600}" },
|
|
93
|
+
info: { value: "{colors.blue.600}" }
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
var oonDefaultTheme = createOonTheme({
|
|
100
|
+
id: "oon-default",
|
|
101
|
+
label: "Oon",
|
|
102
|
+
density: "comfortable",
|
|
103
|
+
contrast: "standard",
|
|
104
|
+
config: oonThemeConfig
|
|
105
|
+
});
|
|
106
|
+
function isThemeDefinition(value) {
|
|
107
|
+
return Boolean(value) && typeof value === "object" && typeof value.id === "string";
|
|
108
|
+
}
|
|
109
|
+
function densityConfig(density) {
|
|
110
|
+
if (density !== "compact") return defineConfig({});
|
|
111
|
+
return defineConfig({ globalCss: { body: { fontSize: "13px" }, "button, input, select, textarea": { minH: "32px" } } });
|
|
112
|
+
}
|
|
113
|
+
function contrastConfig(contrast) {
|
|
114
|
+
if (contrast !== "high") return defineConfig({});
|
|
115
|
+
return defineConfig({
|
|
116
|
+
theme: {
|
|
117
|
+
semanticTokens: {
|
|
118
|
+
colors: {
|
|
119
|
+
text: { primary: { value: "{colors.black}" }, muted: { value: "{colors.gray.800}" } },
|
|
120
|
+
border: { default: { value: "{colors.gray.500}" }, strong: { value: "{colors.black}" } }
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
function definitionConfig(theme) {
|
|
127
|
+
const inherited = theme.extends ? definitionConfig(theme.extends) : defineConfig({});
|
|
128
|
+
const own = defineConfig(theme.config ?? {});
|
|
129
|
+
return mergeConfigs(inherited, own, densityConfig(theme.density), contrastConfig(theme.contrast));
|
|
130
|
+
}
|
|
131
|
+
function createOonSystem(themeOverride) {
|
|
132
|
+
const base = mergeConfigs(defaultConfig, oonThemeConfig);
|
|
133
|
+
const config = themeOverride ? mergeConfigs(base, isThemeDefinition(themeOverride) ? definitionConfig(themeOverride) : defineConfig(themeOverride)) : base;
|
|
134
|
+
return createSystem(config);
|
|
135
|
+
}
|
|
136
|
+
var oonSystem = createOonSystem();
|
|
137
|
+
|
|
138
|
+
// src/config/ThemeProvider.tsx
|
|
139
|
+
import { ChakraProvider } from "@chakra-ui/react";
|
|
140
|
+
import { createContext, useContext, useMemo, useState } from "react";
|
|
141
|
+
import { jsx } from "react/jsx-runtime";
|
|
142
|
+
var OonThemeContext = createContext(null);
|
|
143
|
+
function isThemeDefinition2(value) {
|
|
144
|
+
return Boolean(value) && typeof value === "object" && typeof value.id === "string";
|
|
145
|
+
}
|
|
146
|
+
function OonThemeProvider({ config, children }) {
|
|
147
|
+
const themes = useMemo(() => {
|
|
148
|
+
const items = [...config.themes ?? []];
|
|
149
|
+
const primaryTheme = config.theme;
|
|
150
|
+
if (isThemeDefinition2(primaryTheme) && !items.some((item) => item.id === primaryTheme.id)) items.unshift(primaryTheme);
|
|
151
|
+
return items;
|
|
152
|
+
}, [config.theme, config.themes]);
|
|
153
|
+
const storageKey = `oon:theme:${config.app.id}`;
|
|
154
|
+
const initial = (() => {
|
|
155
|
+
const stored = typeof window !== "undefined" ? window.localStorage.getItem(storageKey) : null;
|
|
156
|
+
if (stored && themes.some((item) => item.id === stored)) return stored;
|
|
157
|
+
if (config.defaultThemeId && themes.some((item) => item.id === config.defaultThemeId)) return config.defaultThemeId;
|
|
158
|
+
return themes[0]?.id;
|
|
159
|
+
})();
|
|
160
|
+
const [currentThemeId, setCurrentThemeId] = useState(initial);
|
|
161
|
+
const selected = themes.find((item) => item.id === currentThemeId);
|
|
162
|
+
const system = useMemo(() => createOonSystem(selected ?? config.theme), [selected, config.theme]);
|
|
163
|
+
const value = useMemo(() => ({
|
|
164
|
+
themes,
|
|
165
|
+
currentThemeId,
|
|
166
|
+
setTheme(themeId) {
|
|
167
|
+
if (!themes.some((item) => item.id === themeId)) throw new Error(`Tema Oon desconhecido: ${themeId}.`);
|
|
168
|
+
setCurrentThemeId(themeId);
|
|
169
|
+
if (typeof window !== "undefined") window.localStorage.setItem(storageKey, themeId);
|
|
170
|
+
}
|
|
171
|
+
}), [themes, currentThemeId, storageKey]);
|
|
172
|
+
return /* @__PURE__ */ jsx(OonThemeContext.Provider, { value, children: /* @__PURE__ */ jsx(ChakraProvider, { value: system, children }) });
|
|
173
|
+
}
|
|
174
|
+
function useOonTheme() {
|
|
175
|
+
const value = useContext(OonThemeContext);
|
|
176
|
+
if (!value) throw new Error("useOonTheme deve ser usado dentro do OonCore.");
|
|
177
|
+
return value;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export {
|
|
181
|
+
createOonTheme,
|
|
182
|
+
oonDefaultTheme,
|
|
183
|
+
createOonSystem,
|
|
184
|
+
OonThemeProvider,
|
|
185
|
+
useOonTheme
|
|
186
|
+
};
|
|
187
|
+
//# sourceMappingURL=chunk-VC6NTMZS.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/config/theme.ts","../src/config/ThemeProvider.tsx"],"sourcesContent":["import { createSystem, defaultConfig, defineConfig, mergeConfigs } from \"@chakra-ui/react\";\nimport type { SystemConfig } from \"@chakra-ui/react\";\n\nexport type OonThemeDensity = \"compact\" | \"comfortable\";\nexport type OonThemeContrast = \"standard\" | \"high\";\n\nexport interface OonThemeDefinition {\n id: string;\n label?: string;\n extends?: OonThemeDefinition;\n density?: OonThemeDensity;\n contrast?: OonThemeContrast;\n /** Configuração pública do Chakra baseada em tokens, sem CSS remoto. */\n config?: Record<string, unknown>;\n}\n\nexport function createOonTheme<const T extends OonThemeDefinition>(definition: T): T {\n if (!/^[a-z][a-z0-9-]*$/.test(definition?.id || \"\")) {\n throw new Error(\"createOonTheme: id deve usar letras minúsculas, números e hífen.\");\n }\n if (definition.extends?.id === definition.id) {\n throw new Error(`createOonTheme: o tema ${definition.id} não pode estender a si mesmo.`);\n }\n return Object.freeze({ ...definition });\n}\n\n/**\n * Identidade visual padrão das Centrais Oon, consolidada a partir da Central\n * Minexco/CST: azul operacional, superfícies claras, tipografia Poppins e alta\n * densidade de informação.\n */\nexport const brandColors = {\n brand: {\n 25: { value: \"#F8FCFF\" },\n 50: { value: \"#EEF8FD\" },\n 75: { value: \"#E2F3FB\" },\n 100: { value: \"#C7E8F7\" },\n 200: { value: \"#82C8E8\" },\n 300: { value: \"#3FA6E0\" },\n 350: { value: \"#0F8DD0\" },\n 400: { value: \"#0580B9\" },\n 500: { value: \"#0474AF\" },\n 600: { value: \"#036491\" },\n 700: { value: \"#014364\" },\n 800: { value: \"#073A52\" },\n 850: { value: \"#082F3F\" },\n 900: { value: \"#07262E\" },\n },\n} as const;\n\nconst oonThemeConfig = defineConfig({\n globalCss: {\n \"html, body, #root\": {\n minHeight: \"100%\",\n },\n body: {\n margin: 0,\n bg: \"#F8F9FA\",\n color: \"#24323A\",\n fontFamily: \"Poppins, Inter, system-ui, sans-serif\",\n fontSize: \"14px\",\n },\n \"button, input, select, textarea\": {\n fontFamily: \"inherit\",\n },\n \"::selection\": {\n bg: \"#C7E8F7\",\n color: \"#07262E\",\n },\n },\n theme: {\n tokens: {\n colors: brandColors,\n fonts: {\n body: { value: \"Poppins, Inter, system-ui, sans-serif\" },\n heading: { value: \"Poppins, Inter, system-ui, sans-serif\" },\n },\n radii: {\n oon: { value: \"10px\" },\n },\n shadows: {\n oon: { value: \"0 8px 24px rgba(7, 38, 46, 0.08)\" },\n },\n },\n semanticTokens: {\n colors: {\n brand: {\n solid: { value: \"{colors.brand.500}\" },\n contrast: { value: \"white\" },\n fg: { value: \"{colors.brand.700}\" },\n muted: { value: \"{colors.brand.50}\" },\n subtle: { value: \"{colors.brand.75}\" },\n emphasized: { value: \"{colors.brand.600}\" },\n focusRing: { value: \"{colors.brand.500}\" },\n },\n surface: {\n canvas: { value: \"{colors.gray.50}\" },\n panel: { value: \"white\" },\n elevated: { value: \"white\" },\n },\n text: {\n primary: { value: \"{colors.gray.800}\" },\n muted: { value: \"{colors.gray.600}\" },\n inverse: { value: \"white\" },\n },\n border: {\n default: { value: \"{colors.gray.200}\" },\n strong: { value: \"{colors.gray.300}\" },\n },\n status: {\n success: { value: \"{colors.green.600}\" },\n warning: { value: \"{colors.orange.600}\" },\n danger: { value: \"{colors.red.600}\" },\n info: { value: \"{colors.blue.600}\" },\n },\n },\n },\n },\n});\n\nexport const oonDefaultTheme = createOonTheme({\n id: \"oon-default\",\n label: \"Oon\",\n density: \"comfortable\",\n contrast: \"standard\",\n config: oonThemeConfig as unknown as Record<string, unknown>,\n});\n\nfunction isThemeDefinition(value: unknown): value is OonThemeDefinition {\n return Boolean(value) && typeof value === \"object\" && typeof (value as { id?: unknown }).id === \"string\";\n}\n\nfunction densityConfig(density?: OonThemeDensity): SystemConfig {\n if (density !== \"compact\") return defineConfig({});\n return defineConfig({ globalCss: { body: { fontSize: \"13px\" }, \"button, input, select, textarea\": { minH: \"32px\" } } });\n}\n\nfunction contrastConfig(contrast?: OonThemeContrast): SystemConfig {\n if (contrast !== \"high\") return defineConfig({});\n return defineConfig({\n theme: {\n semanticTokens: {\n colors: {\n text: { primary: { value: \"{colors.black}\" }, muted: { value: \"{colors.gray.800}\" } },\n border: { default: { value: \"{colors.gray.500}\" }, strong: { value: \"{colors.black}\" } },\n },\n },\n },\n });\n}\n\nfunction definitionConfig(theme: OonThemeDefinition): SystemConfig {\n const inherited = theme.extends ? definitionConfig(theme.extends) : defineConfig({});\n const own = defineConfig((theme.config ?? {}) as SystemConfig);\n return mergeConfigs(inherited, own, densityConfig(theme.density), contrastConfig(theme.contrast));\n}\n\n/**\n * Constrói o system do Chakra. O padrão Minexco é aplicado primeiro e pode ser\n * sobrescrito por uma identidade específica da Central sem reescrever o shell.\n */\nexport function createOonSystem(themeOverride?: OonThemeDefinition | Record<string, unknown>) {\n const base = mergeConfigs(defaultConfig, oonThemeConfig);\n const config = themeOverride\n ? mergeConfigs(base, isThemeDefinition(themeOverride)\n ? definitionConfig(themeOverride)\n : defineConfig(themeOverride as SystemConfig))\n : base;\n return createSystem(config);\n}\n\nexport const oonSystem = createOonSystem();\n","import { ChakraProvider } from \"@chakra-ui/react\";\nimport { createContext, type ReactNode, useContext, useMemo, useState } from \"react\";\nimport type { OonCoreFrontConfig } from \"../types\";\nimport type { OonThemeDefinition } from \"./theme\";\nimport { createOonSystem } from \"./theme\";\n\nexport interface OonThemeContextValue {\n themes: readonly OonThemeDefinition[];\n currentThemeId?: string;\n setTheme(themeId: string): void;\n}\n\nconst OonThemeContext = createContext<OonThemeContextValue | null>(null);\n\nfunction isThemeDefinition(value: unknown): value is OonThemeDefinition {\n return Boolean(value) && typeof value === \"object\" && typeof (value as { id?: unknown }).id === \"string\";\n}\n\nexport function OonThemeProvider({ config, children }: { config: OonCoreFrontConfig; children: ReactNode }) {\n const themes = useMemo(() => {\n const items = [...(config.themes ?? [])];\n const primaryTheme = config.theme;\n if (isThemeDefinition(primaryTheme) && !items.some((item) => item.id === primaryTheme.id)) items.unshift(primaryTheme);\n return items;\n }, [config.theme, config.themes]);\n const storageKey = `oon:theme:${config.app.id}`;\n const initial = (() => {\n const stored = typeof window !== \"undefined\" ? window.localStorage.getItem(storageKey) : null;\n if (stored && themes.some((item) => item.id === stored)) return stored;\n if (config.defaultThemeId && themes.some((item) => item.id === config.defaultThemeId)) return config.defaultThemeId;\n return themes[0]?.id;\n })();\n const [currentThemeId, setCurrentThemeId] = useState<string | undefined>(initial);\n const selected = themes.find((item) => item.id === currentThemeId);\n const system = useMemo(() => createOonSystem(selected ?? config.theme), [selected, config.theme]);\n const value = useMemo<OonThemeContextValue>(() => ({\n themes,\n currentThemeId,\n setTheme(themeId) {\n if (!themes.some((item) => item.id === themeId)) throw new Error(`Tema Oon desconhecido: ${themeId}.`);\n setCurrentThemeId(themeId);\n if (typeof window !== \"undefined\") window.localStorage.setItem(storageKey, themeId);\n },\n }), [themes, currentThemeId, storageKey]);\n\n return <OonThemeContext.Provider value={value}><ChakraProvider value={system}>{children}</ChakraProvider></OonThemeContext.Provider>;\n}\n\nexport function useOonTheme(): OonThemeContextValue {\n const value = useContext(OonThemeContext);\n if (!value) throw new Error(\"useOonTheme deve ser usado dentro do OonCore.\");\n return value;\n}\n"],"mappings":";AAAA,SAAS,cAAc,eAAe,cAAc,oBAAoB;AAgBjE,SAAS,eAAmD,YAAkB;AACnF,MAAI,CAAC,oBAAoB,KAAK,YAAY,MAAM,EAAE,GAAG;AACnD,UAAM,IAAI,MAAM,2EAAkE;AAAA,EACpF;AACA,MAAI,WAAW,SAAS,OAAO,WAAW,IAAI;AAC5C,UAAM,IAAI,MAAM,0BAA0B,WAAW,EAAE,mCAAgC;AAAA,EACzF;AACA,SAAO,OAAO,OAAO,EAAE,GAAG,WAAW,CAAC;AACxC;AAOO,IAAM,cAAc;AAAA,EACzB,OAAO;AAAA,IACL,IAAI,EAAE,OAAO,UAAU;AAAA,IACvB,IAAI,EAAE,OAAO,UAAU;AAAA,IACvB,IAAI,EAAE,OAAO,UAAU;AAAA,IACvB,KAAK,EAAE,OAAO,UAAU;AAAA,IACxB,KAAK,EAAE,OAAO,UAAU;AAAA,IACxB,KAAK,EAAE,OAAO,UAAU;AAAA,IACxB,KAAK,EAAE,OAAO,UAAU;AAAA,IACxB,KAAK,EAAE,OAAO,UAAU;AAAA,IACxB,KAAK,EAAE,OAAO,UAAU;AAAA,IACxB,KAAK,EAAE,OAAO,UAAU;AAAA,IACxB,KAAK,EAAE,OAAO,UAAU;AAAA,IACxB,KAAK,EAAE,OAAO,UAAU;AAAA,IAC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