@team-monolith/cds 1.129.2-alpha.2 → 1.129.3-alpha

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 (128) hide show
  1. package/dist/CdsProvider.js +180 -180
  2. package/dist/components/AlertDialog/AlertDialogTitle.js +15 -15
  3. package/dist/components/Banner.js +28 -28
  4. package/dist/components/FileTypeAlertDialog.js +16 -16
  5. package/dist/components/Pagination.js +22 -22
  6. package/dist/emotion.d.ts +185 -0
  7. package/dist/i18n/i18n.js +14 -14
  8. package/dist/index.d.ts +8 -1
  9. package/dist/node_modules/.pnpm/html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js +78 -0
  10. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/I18nextProvider.js +12 -0
  11. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/Trans.js +26 -0
  12. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/TransWithoutContext.js +174 -0
  13. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/context.js +20 -0
  14. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/defaults.js +24 -0
  15. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/i18nInstance.js +6 -0
  16. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/initReactI18next.js +11 -0
  17. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/unescape.js +25 -0
  18. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js +69 -0
  19. package/dist/node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/utils.js +35 -0
  20. package/dist/patterns/LexicalEditor/Plugins.js +64 -64
  21. package/dist/patterns/LexicalEditor/components/FileSelectInput.js +19 -19
  22. package/dist/patterns/LexicalEditor/components/InsertImageDialog/ImagePreview.js +6 -6
  23. package/dist/patterns/LexicalEditor/components/InsertImageDialog/InsertImageDialog.js +34 -34
  24. package/dist/patterns/LexicalEditor/components/UploadFileDialog/UploadFileDialog.js +14 -14
  25. package/dist/patterns/LexicalEditor/nodes/FileNode/FileDownloadButton.js +17 -17
  26. package/dist/patterns/LexicalEditor/nodes/ImageNode/ImageComponent.js +62 -62
  27. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/InputComponent.js +25 -25
  28. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormPlaceholder.js +7 -7
  29. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/FormSolution.js +24 -23
  30. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/SettingForm.js +48 -47
  31. package/dist/patterns/LexicalEditor/nodes/ProblemInputNode/SettingForm/TextTypeDropdown.js +11 -11
  32. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectBox/SelectBoxView.js +15 -15
  33. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SelectComponent.js +28 -28
  34. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/FormSelection.js +30 -30
  35. package/dist/patterns/LexicalEditor/nodes/ProblemSelectNode/SettingForm/SettingForm.js +35 -35
  36. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormIconAndLabel.js +21 -21
  37. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormIconAndLabel/FormLabel.js +15 -15
  38. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/FormQuestion.js +17 -17
  39. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/Evaluation/SettingForm/SettingForm.js +30 -30
  40. package/dist/patterns/LexicalEditor/nodes/SelfEvaluationNode/EvaluationComponent/EvaluationComponent.js +20 -20
  41. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/InputComponent.js +24 -24
  42. package/dist/patterns/LexicalEditor/nodes/SheetInputNode/SettingForm.js +28 -28
  43. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectBox/SelectBoxView.js +11 -11
  44. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SelectComponent.js +26 -26
  45. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormAllowMultipleAnswers.js +8 -8
  46. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/FormSelection.js +27 -27
  47. package/dist/patterns/LexicalEditor/nodes/SheetSelectNode/SelectComponent/SettingForm/SettingForm.js +33 -33
  48. package/dist/patterns/LexicalEditor/nodes/VideoNode/VideoComponent.js +21 -21
  49. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/ComponentAdderPlugin.js +99 -99
  50. package/dist/patterns/LexicalEditor/plugins/ComponentAdderPlugin/useContextMenuOptions.js +50 -50
  51. package/dist/patterns/LexicalEditor/plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js +85 -85
  52. package/dist/patterns/LexicalEditor/plugins/DragDropPastePlugin/index.js +13 -13
  53. package/dist/patterns/LexicalEditor/plugins/FloatingLinkEditorPlugin/FloatingLinkEditor.js +48 -48
  54. package/dist/patterns/LexicalEditor/plugins/ImagesPlugin/useImageNodeTransform.js +16 -16
  55. package/dist/patterns/ToggleButtonGroup/ToggleButton.js +17 -17
  56. package/package.json +15 -18
  57. package/@types/emotion.d.ts +0 -197
  58. package/node_modules/react-i18next/.eslintrc.json +0 -74
  59. package/node_modules/react-i18next/.husky/pre-commit +0 -1
  60. package/node_modules/react-i18next/.prettierignore +0 -4
  61. package/node_modules/react-i18next/CHANGELOG.md +0 -1433
  62. package/node_modules/react-i18next/LICENSE +0 -22
  63. package/node_modules/react-i18next/README.md +0 -181
  64. package/node_modules/react-i18next/TransWithoutContext.d.mts +0 -1
  65. package/node_modules/react-i18next/TransWithoutContext.d.ts +0 -129
  66. package/node_modules/react-i18next/dist/amd/react-i18next.js +0 -867
  67. package/node_modules/react-i18next/dist/amd/react-i18next.min.js +0 -1
  68. package/node_modules/react-i18next/dist/commonjs/I18nextProvider.js +0 -21
  69. package/node_modules/react-i18next/dist/commonjs/Trans.js +0 -54
  70. package/node_modules/react-i18next/dist/commonjs/TransWithoutContext.js +0 -330
  71. package/node_modules/react-i18next/dist/commonjs/Translation.js +0 -19
  72. package/node_modules/react-i18next/dist/commonjs/context.js +0 -81
  73. package/node_modules/react-i18next/dist/commonjs/defaults.js +0 -26
  74. package/node_modules/react-i18next/dist/commonjs/i18nInstance.js +0 -13
  75. package/node_modules/react-i18next/dist/commonjs/index.js +0 -128
  76. package/node_modules/react-i18next/dist/commonjs/initReactI18next.js +0 -15
  77. package/node_modules/react-i18next/dist/commonjs/unescape.js +0 -32
  78. package/node_modules/react-i18next/dist/commonjs/useSSR.js +0 -34
  79. package/node_modules/react-i18next/dist/commonjs/useTranslation.js +0 -114
  80. package/node_modules/react-i18next/dist/commonjs/utils.js +0 -76
  81. package/node_modules/react-i18next/dist/commonjs/withSSR.js +0 -27
  82. package/node_modules/react-i18next/dist/commonjs/withTranslation.js +0 -39
  83. package/node_modules/react-i18next/dist/es/I18nextProvider.js +0 -15
  84. package/node_modules/react-i18next/dist/es/Trans.js +0 -43
  85. package/node_modules/react-i18next/dist/es/TransWithoutContext.js +0 -321
  86. package/node_modules/react-i18next/dist/es/Translation.js +0 -12
  87. package/node_modules/react-i18next/dist/es/context.js +0 -42
  88. package/node_modules/react-i18next/dist/es/defaults.js +0 -18
  89. package/node_modules/react-i18next/dist/es/i18nInstance.js +0 -5
  90. package/node_modules/react-i18next/dist/es/index.js +0 -18
  91. package/node_modules/react-i18next/dist/es/initReactI18next.js +0 -9
  92. package/node_modules/react-i18next/dist/es/package.json +0 -1
  93. package/node_modules/react-i18next/dist/es/unescape.js +0 -25
  94. package/node_modules/react-i18next/dist/es/useSSR.js +0 -27
  95. package/node_modules/react-i18next/dist/es/useTranslation.js +0 -107
  96. package/node_modules/react-i18next/dist/es/utils.js +0 -62
  97. package/node_modules/react-i18next/dist/es/withSSR.js +0 -20
  98. package/node_modules/react-i18next/dist/es/withTranslation.js +0 -32
  99. package/node_modules/react-i18next/dist/umd/react-i18next.js +0 -871
  100. package/node_modules/react-i18next/dist/umd/react-i18next.min.js +0 -1
  101. package/node_modules/react-i18next/helpers.d.ts +0 -3
  102. package/node_modules/react-i18next/icu.macro.d.mts +0 -1
  103. package/node_modules/react-i18next/icu.macro.d.ts +0 -103
  104. package/node_modules/react-i18next/icu.macro.js +0 -729
  105. package/node_modules/react-i18next/index.d.mts +0 -1
  106. package/node_modules/react-i18next/index.d.ts +0 -209
  107. package/node_modules/react-i18next/initReactI18next.d.mts +0 -1
  108. package/node_modules/react-i18next/initReactI18next.d.ts +0 -3
  109. package/node_modules/react-i18next/lint-staged.config.mjs +0 -4
  110. package/node_modules/react-i18next/package.json +0 -167
  111. package/node_modules/react-i18next/react-i18next.js +0 -871
  112. package/node_modules/react-i18next/react-i18next.min.js +0 -1
  113. package/node_modules/react-i18next/src/I18nextProvider.js +0 -7
  114. package/node_modules/react-i18next/src/Trans.js +0 -45
  115. package/node_modules/react-i18next/src/TransWithoutContext.js +0 -479
  116. package/node_modules/react-i18next/src/Translation.js +0 -14
  117. package/node_modules/react-i18next/src/context.js +0 -54
  118. package/node_modules/react-i18next/src/defaults.js +0 -20
  119. package/node_modules/react-i18next/src/i18nInstance.js +0 -7
  120. package/node_modules/react-i18next/src/index.js +0 -22
  121. package/node_modules/react-i18next/src/initReactI18next.js +0 -11
  122. package/node_modules/react-i18next/src/unescape.js +0 -31
  123. package/node_modules/react-i18next/src/useSSR.js +0 -33
  124. package/node_modules/react-i18next/src/useTranslation.js +0 -171
  125. package/node_modules/react-i18next/src/utils.js +0 -93
  126. package/node_modules/react-i18next/src/withSSR.js +0 -21
  127. package/node_modules/react-i18next/src/withTranslation.js +0 -35
  128. package/node_modules/react-i18next/vitest.workspace.typescript.mts +0 -52
@@ -0,0 +1,174 @@
1
+ import e from "../../../../../html-parse-stringify@3.0.1/node_modules/html-parse-stringify/dist/html-parse-stringify.module.js";
2
+ import { isObject as t, isString as n, warn as r, warnOnce as i } from "./utils.js";
3
+ import { getDefaults as a } from "./defaults.js";
4
+ import { getI18n as o } from "./i18nInstance.js";
5
+ import { Children as s, Fragment as c, cloneElement as l, createElement as u, isValidElement as d } from "react";
6
+ //#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/TransWithoutContext.js
7
+ var f = (e, t) => {
8
+ if (!e) return !1;
9
+ let n = e.props?.children ?? e.children;
10
+ return t ? n.length > 0 : !!n;
11
+ }, p = (e) => {
12
+ if (!e) return [];
13
+ let t = e.props?.children ?? e.children;
14
+ return e.props?.i18nIsDynamicList ? h(t) : t;
15
+ }, m = (e) => Array.isArray(e) && e.every(d), h = (e) => Array.isArray(e) ? e : [e], g = (e, t) => {
16
+ let n = { ...t };
17
+ return n.props = Object.assign(e.props, t.props), n;
18
+ }, _ = (e, i, a, o) => {
19
+ if (!e) return "";
20
+ let s = "", c = h(e), l = i?.transSupportBasicHtmlNodes ? i.transKeepBasicHtmlNodesFor ?? [] : [];
21
+ return c.forEach((e, c) => {
22
+ if (n(e)) {
23
+ s += `${e}`;
24
+ return;
25
+ }
26
+ if (d(e)) {
27
+ let { props: t, type: r } = e, u = Object.keys(t).length, d = l.indexOf(r) > -1, f = t.children;
28
+ if (!f && d && !u) {
29
+ s += `<${r}/>`;
30
+ return;
31
+ }
32
+ if (!f && (!d || u) || t.i18nIsDynamicList) {
33
+ s += `<${c}></${c}>`;
34
+ return;
35
+ }
36
+ if (d && u === 1 && n(f)) {
37
+ s += `<${r}>${f}</${r}>`;
38
+ return;
39
+ }
40
+ let p = _(f, i, a, o);
41
+ s += `<${c}>${p}</${c}>`;
42
+ return;
43
+ }
44
+ if (e === null) {
45
+ r(a, "TRANS_NULL_VALUE", "Passed in a null value as child", { i18nKey: o });
46
+ return;
47
+ }
48
+ if (t(e)) {
49
+ let { format: t, ...n } = e, i = Object.keys(n);
50
+ if (i.length === 1) {
51
+ let e = t ? `${i[0]}, ${t}` : i[0];
52
+ s += `{{${e}}}`;
53
+ return;
54
+ }
55
+ r(a, "TRANS_INVALID_OBJ", "Invalid child - Object should only have keys {{ value, format }} (format is optional).", {
56
+ i18nKey: o,
57
+ child: e
58
+ });
59
+ return;
60
+ }
61
+ r(a, "TRANS_INVALID_VAR", "Passed in a variable like {number} - pass variables for interpolation as full objects like {{number}}.", {
62
+ i18nKey: o,
63
+ child: e
64
+ });
65
+ }), s;
66
+ }, v = (r, i, a, o, c, _, v) => {
67
+ if (a === "") return [];
68
+ let y = c.transKeepBasicHtmlNodesFor || [], b = a && new RegExp(y.map((e) => `<${e}`).join("|")).test(a);
69
+ if (!r && !i && !b && !v) return [a];
70
+ let x = i ?? {}, S = (e) => {
71
+ h(e).forEach((e) => {
72
+ n(e) || (f(e) ? S(p(e)) : t(e) && !d(e) && Object.assign(x, e));
73
+ });
74
+ };
75
+ S(r);
76
+ let C = e.parse(`<0>${a}</0>`), w = {
77
+ ...x,
78
+ ..._
79
+ }, T = (e, t, n) => {
80
+ let r = p(e), i = D(r, t.children, n);
81
+ return m(r) && i.length === 0 || e.props?.i18nIsDynamicList ? r : i;
82
+ }, E = (e, t, n, r, i) => {
83
+ e.dummy ? (e.children = t, n.push(l(e, { key: r }, i ? void 0 : t))) : n.push(...s.map([e], (e) => {
84
+ let n = { ...e.props };
85
+ return delete n.i18nIsDynamicList, u(e.type, {
86
+ ...n,
87
+ key: r,
88
+ ref: e.props.ref ?? e.ref
89
+ }, i ? null : t);
90
+ }));
91
+ }, D = (e, r, a) => {
92
+ let s = h(e);
93
+ return h(r).reduce((e, r, l) => {
94
+ let p = r.children?.[0]?.content && o.services.interpolator.interpolate(r.children[0].content, w, o.language);
95
+ if (r.type === "tag") {
96
+ let m = s[parseInt(r.name, 10)];
97
+ !m && i && (m = i[r.name]), a.length === 1 && !m && (m = a[0][r.name]), m ||= {};
98
+ let h = Object.keys(r.attrs).length === 0 ? m : g({ props: r.attrs }, m), _ = d(h), v = _ && f(r, !0) && !r.voidElement, x = b && t(h) && h.dummy && !_, S = t(i) && Object.hasOwnProperty.call(i, r.name);
99
+ if (n(h)) {
100
+ let t = o.services.interpolator.interpolate(h, w, o.language);
101
+ e.push(t);
102
+ } else if (f(h) || v) E(h, T(h, r, a), e, l);
103
+ else if (x) E(h, D(s, r.children, a), e, l);
104
+ else if (Number.isNaN(parseFloat(r.name))) if (S) E(h, T(h, r, a), e, l, r.voidElement);
105
+ else if (c.transSupportBasicHtmlNodes && y.indexOf(r.name) > -1) if (r.voidElement) e.push(u(r.name, { key: `${r.name}-${l}` }));
106
+ else {
107
+ let t = D(s, r.children, a);
108
+ e.push(u(r.name, { key: `${r.name}-${l}` }, t));
109
+ }
110
+ else if (r.voidElement) e.push(`<${r.name} />`);
111
+ else {
112
+ let t = D(s, r.children, a);
113
+ e.push(`<${r.name}>${t}</${r.name}>`);
114
+ }
115
+ else if (t(h) && !_) {
116
+ let t = r.children[0] ? p : null;
117
+ t && e.push(t);
118
+ } else E(h, p, e, l, r.children.length !== 1 || !p);
119
+ } else if (r.type === "text") {
120
+ let t = c.transWrapTextNodes, n = v ? c.unescape(o.services.interpolator.interpolate(r.content, w, o.language)) : o.services.interpolator.interpolate(r.content, w, o.language);
121
+ t ? e.push(u(t, { key: `${r.name}-${l}` }, n)) : e.push(n);
122
+ }
123
+ return e;
124
+ }, []);
125
+ };
126
+ return p(D([{
127
+ dummy: !0,
128
+ children: r || []
129
+ }], C, h(r || []))[0]);
130
+ }, y = (e, t, n) => {
131
+ let r = e.key || t, i = l(e, { key: r });
132
+ if (!i.props || !i.props.children || n.indexOf(`${t}/>`) < 0 && n.indexOf(`${t} />`) < 0) return i;
133
+ function a() {
134
+ return u(c, null, i);
135
+ }
136
+ return u(a, { key: r });
137
+ }, b = (e, t) => e.map((e, n) => y(e, n, t)), x = (e, t) => {
138
+ let n = {};
139
+ return Object.keys(e).forEach((r) => {
140
+ Object.assign(n, { [r]: y(e[r], r, t) });
141
+ }), n;
142
+ }, S = (e, n, r, a) => e ? Array.isArray(e) ? b(e, n) : t(e) ? x(e, n) : (i(r, "TRANS_INVALID_COMPONENTS", "<Trans /> \"components\" prop expects an object or array", { i18nKey: a }), null) : null, C = (e) => !t(e) || Array.isArray(e) ? !1 : Object.keys(e).reduce((e, t) => e && Number.isNaN(Number.parseFloat(t)), !0);
143
+ function w({ children: e, count: t, parent: r, i18nKey: s, context: c, tOptions: l = {}, values: d, defaults: f, components: p, ns: m, i18n: h, t: g, shouldUnescape: y, ...b }) {
144
+ let x = h || o();
145
+ if (!x) return i(x, "NO_I18NEXT_INSTANCE", "Trans: You need to pass in an i18next instance using i18nextReactModule", { i18nKey: s }), e;
146
+ let w = g || x.t.bind(x) || ((e) => e), T = {
147
+ ...a(),
148
+ ...x.options?.react
149
+ }, E = m || w.ns || x.options?.defaultNS;
150
+ E = n(E) ? [E] : E || ["translation"];
151
+ let D = _(e, T, x, s), O = f || D || T.transEmptyNodeValue || s, { hashTransKey: k } = T, A = s || (k ? k(D || O) : D || O);
152
+ x.options?.interpolation?.defaultVariables && (d = d && Object.keys(d).length > 0 ? {
153
+ ...d,
154
+ ...x.options.interpolation.defaultVariables
155
+ } : { ...x.options.interpolation.defaultVariables });
156
+ let j = d || t !== void 0 && !x.options?.interpolation?.alwaysFormat || !e ? l.interpolation : { interpolation: {
157
+ ...l.interpolation,
158
+ prefix: "#$?",
159
+ suffix: "?$#"
160
+ } }, M = {
161
+ ...l,
162
+ context: c || l.context,
163
+ count: t,
164
+ ...d,
165
+ ...j,
166
+ defaultValue: O,
167
+ ns: E
168
+ }, N = A ? w(A, M) : O, P = S(p, N, x, s), F = P || e, I = null;
169
+ C(P) && (I = P, F = e);
170
+ let L = v(F, I, N, x, T, M, y), R = r ?? T.defaultTransParent;
171
+ return R ? u(R, b, L) : L;
172
+ }
173
+ //#endregion
174
+ export { w as Trans, _ as nodesToString };
@@ -0,0 +1,20 @@
1
+ import "./defaults.js";
2
+ import "./i18nInstance.js";
3
+ import "./initReactI18next.js";
4
+ import { createContext as e } from "react";
5
+ //#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/context.js
6
+ var t = e(), n = class {
7
+ constructor() {
8
+ this.usedNamespaces = {};
9
+ }
10
+ addUsedNamespaces(e) {
11
+ e.forEach((e) => {
12
+ this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
13
+ });
14
+ }
15
+ getUsedNamespaces() {
16
+ return Object.keys(this.usedNamespaces);
17
+ }
18
+ };
19
+ //#endregion
20
+ export { t as I18nContext, n as ReportNamespaces };
@@ -0,0 +1,24 @@
1
+ import { unescape as e } from "./unescape.js";
2
+ //#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/defaults.js
3
+ var t = {
4
+ bindI18n: "languageChanged",
5
+ bindI18nStore: "",
6
+ transEmptyNodeValue: "",
7
+ transSupportBasicHtmlNodes: !0,
8
+ transWrapTextNodes: "",
9
+ transKeepBasicHtmlNodesFor: [
10
+ "br",
11
+ "strong",
12
+ "i",
13
+ "p"
14
+ ],
15
+ useSuspense: !0,
16
+ unescape: e
17
+ }, n = (e = {}) => {
18
+ t = {
19
+ ...t,
20
+ ...e
21
+ };
22
+ }, r = () => t;
23
+ //#endregion
24
+ export { r as getDefaults, n as setDefaults };
@@ -0,0 +1,6 @@
1
+ //#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/i18nInstance.js
2
+ var e, t = (t) => {
3
+ e = t;
4
+ }, n = () => e;
5
+ //#endregion
6
+ export { n as getI18n, t as setI18n };
@@ -0,0 +1,11 @@
1
+ import { setDefaults as e } from "./defaults.js";
2
+ import { setI18n as t } from "./i18nInstance.js";
3
+ //#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/initReactI18next.js
4
+ var n = {
5
+ type: "3rdParty",
6
+ init(n) {
7
+ e(n.options.react), t(n);
8
+ }
9
+ };
10
+ //#endregion
11
+ export { n as initReactI18next };
@@ -0,0 +1,25 @@
1
+ //#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/unescape.js
2
+ var e = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, t = {
3
+ "&amp;": "&",
4
+ "&#38;": "&",
5
+ "&lt;": "<",
6
+ "&#60;": "<",
7
+ "&gt;": ">",
8
+ "&#62;": ">",
9
+ "&apos;": "'",
10
+ "&#39;": "'",
11
+ "&quot;": "\"",
12
+ "&#34;": "\"",
13
+ "&nbsp;": " ",
14
+ "&#160;": " ",
15
+ "&copy;": "©",
16
+ "&#169;": "©",
17
+ "&reg;": "®",
18
+ "&#174;": "®",
19
+ "&hellip;": "…",
20
+ "&#8230;": "…",
21
+ "&#x2F;": "/",
22
+ "&#47;": "/"
23
+ }, n = (e) => t[e], r = (t) => t.replace(e, n);
24
+ //#endregion
25
+ export { r as unescape };
@@ -0,0 +1,69 @@
1
+ import { hasLoadedNamespace as e, isObject as t, isString as n, loadLanguages as r, loadNamespaces as i, warnOnce as a } from "./utils.js";
2
+ import { getDefaults as o } from "./defaults.js";
3
+ import { getI18n as s } from "./i18nInstance.js";
4
+ import { I18nContext as c, ReportNamespaces as l } from "./context.js";
5
+ import { useCallback as u, useContext as d, useEffect as f, useRef as p, useState as m } from "react";
6
+ //#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js
7
+ var h = (e, t) => {
8
+ let n = p();
9
+ return f(() => {
10
+ n.current = t ? n.current : e;
11
+ }, [e, t]), n.current;
12
+ }, g = (e, t, n, r) => e.getFixedT(t, n, r), _ = (e, t, n, r) => u(g(e, t, n, r), [
13
+ e,
14
+ t,
15
+ n,
16
+ r
17
+ ]), v = (u, v = {}) => {
18
+ let { i18n: y } = v, { i18n: b, defaultNS: x } = d(c) || {}, S = y || b || s();
19
+ if (S && !S.reportNamespaces && (S.reportNamespaces = new l()), !S) {
20
+ a(S, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
21
+ let e = (e, r) => n(r) ? r : t(r) && n(r.defaultValue) ? r.defaultValue : Array.isArray(e) ? e[e.length - 1] : e, r = [
22
+ e,
23
+ {},
24
+ !1
25
+ ];
26
+ return r.t = e, r.i18n = {}, r.ready = !1, r;
27
+ }
28
+ S.options.react?.wait && a(S, "DEPRECATED_OPTION", "useTranslation: It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");
29
+ let C = {
30
+ ...o(),
31
+ ...S.options.react,
32
+ ...v
33
+ }, { useSuspense: w, keyPrefix: T } = C, E = u || x || S.options?.defaultNS;
34
+ E = n(E) ? [E] : E || ["translation"], S.reportNamespaces.addUsedNamespaces?.(E);
35
+ let D = (S.isInitialized || S.initializedStoreOnce) && E.every((t) => e(t, S, C)), O = _(S, v.lng || null, C.nsMode === "fallback" ? E : E[0], T), k = () => O, A = () => g(S, v.lng || null, C.nsMode === "fallback" ? E : E[0], T), [j, M] = m(k), N = E.join();
36
+ v.lng && (N = `${v.lng}${N}`);
37
+ let P = h(N), F = p(!0);
38
+ f(() => {
39
+ let { bindI18n: e, bindI18nStore: t } = C;
40
+ F.current = !0, !D && !w && (v.lng ? r(S, v.lng, E, () => {
41
+ F.current && M(A);
42
+ }) : i(S, E, () => {
43
+ F.current && M(A);
44
+ })), D && P && P !== N && F.current && M(A);
45
+ let n = () => {
46
+ F.current && M(A);
47
+ };
48
+ return e && S?.on(e, n), t && S?.store.on(t, n), () => {
49
+ F.current = !1, S && e && e?.split(" ").forEach((e) => S.off(e, n)), t && S && t.split(" ").forEach((e) => S.store.off(e, n));
50
+ };
51
+ }, [S, N]), f(() => {
52
+ F.current && D && M(k);
53
+ }, [
54
+ S,
55
+ T,
56
+ D
57
+ ]);
58
+ let I = [
59
+ j,
60
+ S,
61
+ D
62
+ ];
63
+ if (I.t = j, I.i18n = S, I.ready = D, D || !D && !w) return I;
64
+ throw new Promise((e) => {
65
+ v.lng ? r(S, v.lng, E, () => e()) : i(S, E, () => e());
66
+ });
67
+ };
68
+ //#endregion
69
+ export { v as useTranslation };
@@ -0,0 +1,35 @@
1
+ //#region node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/utils.js
2
+ var e = (e, t, n, r) => {
3
+ let i = [n, {
4
+ code: t,
5
+ ...r || {}
6
+ }];
7
+ if (e?.services?.logger?.forward) return e.services.logger.forward(i, "warn", "react-i18next::", !0);
8
+ s(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), e?.services?.logger?.warn ? e.services.logger.warn(...i) : console?.warn && console.warn(...i);
9
+ }, t = {}, n = (n, r, i, a) => {
10
+ s(i) && t[i] || (s(i) && (t[i] = /* @__PURE__ */ new Date()), e(n, r, i, a));
11
+ }, r = (e, t) => () => {
12
+ if (e.isInitialized) t();
13
+ else {
14
+ let n = () => {
15
+ setTimeout(() => {
16
+ e.off("initialized", n);
17
+ }, 0), t();
18
+ };
19
+ e.on("initialized", n);
20
+ }
21
+ }, i = (e, t, n) => {
22
+ e.loadNamespaces(t, r(e, n));
23
+ }, a = (e, t, n, a) => {
24
+ if (s(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return i(e, n, a);
25
+ n.forEach((t) => {
26
+ e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
27
+ }), e.loadLanguages(t, r(e, a));
28
+ }, o = (e, t, r = {}) => !t.languages || !t.languages.length ? (n(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0) : t.hasLoadedNamespace(e, {
29
+ lng: r.lng,
30
+ precheck: (t, n) => {
31
+ if (r.bindI18n && r.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !n(t.isLanguageChangingTo, e)) return !1;
32
+ }
33
+ }), s = (e) => typeof e == "string", c = (e) => typeof e == "object" && !!e;
34
+ //#endregion
35
+ export { o as hasLoadedNamespace, c as isObject, s as isString, a as loadLanguages, i as loadNamespaces, e as warn, n as warnOnce };
@@ -1,26 +1,26 @@
1
- import { CUSTOM_TRANSFORMERS as e } from "./plugins/MarkdownTransformers/index.js";
2
- import { ProblemInputPlugin as t } from "./plugins/ProblemInputPlugin/index.js";
3
- import { ProblemSelectPlugin as n } from "./plugins/ProblemSelectPlugin/index.js";
4
- import { LayoutPlugin as r } from "./plugins/LayoutPlugin/index.js";
5
- import { SheetSelectPlugin as i } from "./plugins/SheetSelectPlugin/index.js";
6
- import { SheetInputPlugin as a } from "./plugins/SheetInputPlugin/index.js";
7
- import { SelfEvaluationPlugin as o } from "./plugins/SelfEvaluationPlugin/index.js";
8
- import { ImagesPlugin as s } from "./plugins/ImagesPlugin/index.js";
9
- import { VideosPlugin as c } from "./plugins/VideosPlugin/index.js";
10
- import { FilePlugin as l } from "./plugins/FilePlugin/index.js";
11
- import { ComponentPickerMenuPlugin as u } from "./plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js";
12
- import { ComponentAdderPlugin as d } from "./plugins/ComponentAdderPlugin/ComponentAdderPlugin.js";
13
- import { FloatingTextFormatToolbarPlugin as f } from "./plugins/FloatingTextFormatToolbarPlugin/index.js";
14
- import p from "./hr.js";
15
- import { FloatingLinkEditorPlugin as m } from "./plugins/FloatingLinkEditorPlugin/index.js";
16
- import { ListMaxIndentLevelPlugin as h } from "./plugins/ListMaxIndentLevelPlugin/index.js";
17
- import { DragDropPastePlugin as g } from "./plugins/DragDropPastePlugin/index.js";
18
- import { ParagraphPlaceholderPlugin as _ } from "./plugins/ParagraphPlaceholderPlugin/index.js";
19
- import { AutoLinkPlugin as v } from "./plugins/AutoLinkPlugin/index.js";
20
- import { useState as y } from "react";
21
- import b from "@emotion/styled";
22
- import { Fragment as x, jsx as S, jsxs as C } from "@emotion/react/jsx-runtime";
23
- import { useTranslation as w } from "react-i18next";
1
+ import { useTranslation as e } from "../../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js";
2
+ import { CUSTOM_TRANSFORMERS as t } from "./plugins/MarkdownTransformers/index.js";
3
+ import { ProblemInputPlugin as n } from "./plugins/ProblemInputPlugin/index.js";
4
+ import { ProblemSelectPlugin as r } from "./plugins/ProblemSelectPlugin/index.js";
5
+ import { LayoutPlugin as i } from "./plugins/LayoutPlugin/index.js";
6
+ import { SheetSelectPlugin as a } from "./plugins/SheetSelectPlugin/index.js";
7
+ import { SheetInputPlugin as o } from "./plugins/SheetInputPlugin/index.js";
8
+ import { SelfEvaluationPlugin as s } from "./plugins/SelfEvaluationPlugin/index.js";
9
+ import { ImagesPlugin as c } from "./plugins/ImagesPlugin/index.js";
10
+ import { VideosPlugin as l } from "./plugins/VideosPlugin/index.js";
11
+ import { FilePlugin as u } from "./plugins/FilePlugin/index.js";
12
+ import { ComponentPickerMenuPlugin as d } from "./plugins/ComponentPickerMenuPlugin/ComponentPickerMenuPlugin.js";
13
+ import { ComponentAdderPlugin as f } from "./plugins/ComponentAdderPlugin/ComponentAdderPlugin.js";
14
+ import { FloatingTextFormatToolbarPlugin as p } from "./plugins/FloatingTextFormatToolbarPlugin/index.js";
15
+ import m from "./hr.js";
16
+ import { FloatingLinkEditorPlugin as h } from "./plugins/FloatingLinkEditorPlugin/index.js";
17
+ import { ListMaxIndentLevelPlugin as g } from "./plugins/ListMaxIndentLevelPlugin/index.js";
18
+ import { DragDropPastePlugin as _ } from "./plugins/DragDropPastePlugin/index.js";
19
+ import { ParagraphPlaceholderPlugin as v } from "./plugins/ParagraphPlaceholderPlugin/index.js";
20
+ import { AutoLinkPlugin as y } from "./plugins/AutoLinkPlugin/index.js";
21
+ import { useState as b } from "react";
22
+ import x from "@emotion/styled";
23
+ import { Fragment as S, jsx as C, jsxs as w } from "@emotion/react/jsx-runtime";
24
24
  import { RichTextPlugin as T } from "@lexical/react/LexicalRichTextPlugin";
25
25
  import { ContentEditable as E } from "@lexical/react/LexicalContentEditable";
26
26
  import { HistoryPlugin as D } from "@lexical/react/LexicalHistoryPlugin";
@@ -36,18 +36,18 @@ import { TablePlugin as I } from "@lexical/react/LexicalTablePlugin";
36
36
  import { LinkPlugin as L } from "@lexical/react/LexicalLinkPlugin";
37
37
  import { ClickableLinkPlugin as R } from "@lexical/react/LexicalClickableLinkPlugin";
38
38
  //#region src/cds/patterns/LexicalEditor/Plugins.tsx
39
- function z(p) {
40
- let { className: b, contentEditableClassName: E, onChange: z, isSheetEnabled: U, isQuizEnabled: W, showFileUpload: G, autoFocus: K } = p, { t: q } = w(), J = j(), [Y, X] = y(null), [Z, Q] = y(!1);
41
- return /* @__PURE__ */ C(x, { children: [
42
- /* @__PURE__ */ S(g, {}),
43
- /* @__PURE__ */ S(T, {
44
- contentEditable: /* @__PURE__ */ S(B, {
45
- className: b,
46
- children: /* @__PURE__ */ S(V, {
39
+ function z(m) {
40
+ let { className: x, contentEditableClassName: E, onChange: z, isSheetEnabled: U, isQuizEnabled: W, showFileUpload: G, autoFocus: K } = m, { t: q } = e(), J = j(), [Y, X] = b(null), [Z, Q] = b(!1);
41
+ return /* @__PURE__ */ w(S, { children: [
42
+ /* @__PURE__ */ C(_, {}),
43
+ /* @__PURE__ */ C(T, {
44
+ contentEditable: /* @__PURE__ */ C(B, {
45
+ className: x,
46
+ children: /* @__PURE__ */ C(V, {
47
47
  ref: (e) => {
48
48
  e !== null && X(e);
49
49
  },
50
- children: /* @__PURE__ */ S(H, {
50
+ children: /* @__PURE__ */ C(H, {
51
51
  className: E,
52
52
  isEditable: J
53
53
  })
@@ -56,57 +56,57 @@ function z(p) {
56
56
  placeholder: null,
57
57
  ErrorBoundary: k
58
58
  }),
59
- /* @__PURE__ */ S(O, {
59
+ /* @__PURE__ */ C(O, {
60
60
  onChange: (e) => {
61
61
  z?.(e.toJSON());
62
62
  },
63
63
  ignoreSelectionChange: !0
64
64
  }),
65
- K && /* @__PURE__ */ S(F, {}),
66
- J && /* @__PURE__ */ C(x, { children: [
67
- /* @__PURE__ */ S(N, {}),
68
- /* @__PURE__ */ S(u, {
65
+ K && /* @__PURE__ */ C(F, {}),
66
+ J && /* @__PURE__ */ w(S, { children: [
67
+ /* @__PURE__ */ C(N, {}),
68
+ /* @__PURE__ */ C(d, {
69
69
  isSheetEnabled: U,
70
70
  isQuizEnabled: W,
71
71
  showFileUpload: G
72
72
  }),
73
- /* @__PURE__ */ S(A, { transformers: e }),
74
- /* @__PURE__ */ S(D, {}),
75
- /* @__PURE__ */ S(_, { placeholder: q("명령어 사용 시에는 '/'를 누르세요. 블록에 마우스를 올려 나타나는 '+'를 클릭하면 아래에 블록을 추가할 수 있습니다.") })
73
+ /* @__PURE__ */ C(A, { transformers: t }),
74
+ /* @__PURE__ */ C(D, {}),
75
+ /* @__PURE__ */ C(v, { placeholder: q("명령어 사용 시에는 '/'를 누르세요. 블록에 마우스를 올려 나타나는 '+'를 클릭하면 아래에 블록을 추가할 수 있습니다.") })
76
76
  ] }),
77
- Y && J && /* @__PURE__ */ C(x, { children: [
78
- /* @__PURE__ */ S(d, {
77
+ Y && J && /* @__PURE__ */ w(S, { children: [
78
+ /* @__PURE__ */ C(f, {
79
79
  anchorElem: Y,
80
80
  isSheetEnabled: U,
81
81
  isQuizEnabled: W,
82
82
  showFileUpload: G
83
83
  }),
84
- /* @__PURE__ */ S(f, { anchorElem: Y }),
85
- /* @__PURE__ */ S(m, {
84
+ /* @__PURE__ */ C(p, { anchorElem: Y }),
85
+ /* @__PURE__ */ C(h, {
86
86
  anchorElem: Y,
87
87
  isLinkEditMode: Z,
88
88
  setIsLinkEditMode: Q
89
89
  })
90
90
  ] }),
91
- !J && /* @__PURE__ */ S(R, {}),
92
- /* @__PURE__ */ S(M, {}),
93
- /* @__PURE__ */ S(P, {}),
94
- /* @__PURE__ */ S(s, {}),
95
- /* @__PURE__ */ S(c, {}),
96
- /* @__PURE__ */ S(l, {}),
97
- /* @__PURE__ */ S(I, {}),
98
- /* @__PURE__ */ S(L, {}),
99
- /* @__PURE__ */ S(h, { maxDepth: 5 }),
100
- /* @__PURE__ */ S(t, {}),
101
- /* @__PURE__ */ S(n, {}),
102
- /* @__PURE__ */ S(r, {}),
103
- /* @__PURE__ */ S(i, {}),
104
- /* @__PURE__ */ S(a, {}),
105
- /* @__PURE__ */ S(o, {}),
106
- /* @__PURE__ */ S(v, {})
91
+ !J && /* @__PURE__ */ C(R, {}),
92
+ /* @__PURE__ */ C(M, {}),
93
+ /* @__PURE__ */ C(P, {}),
94
+ /* @__PURE__ */ C(c, {}),
95
+ /* @__PURE__ */ C(l, {}),
96
+ /* @__PURE__ */ C(u, {}),
97
+ /* @__PURE__ */ C(I, {}),
98
+ /* @__PURE__ */ C(L, {}),
99
+ /* @__PURE__ */ C(g, { maxDepth: 5 }),
100
+ /* @__PURE__ */ C(n, {}),
101
+ /* @__PURE__ */ C(r, {}),
102
+ /* @__PURE__ */ C(i, {}),
103
+ /* @__PURE__ */ C(a, {}),
104
+ /* @__PURE__ */ C(o, {}),
105
+ /* @__PURE__ */ C(s, {}),
106
+ /* @__PURE__ */ C(y, {})
107
107
  ] });
108
108
  }
109
- var B = b.div`
109
+ var B = x.div`
110
110
  min-height: 150px;
111
111
  border: 0;
112
112
  display: flex;
@@ -114,11 +114,11 @@ var B = b.div`
114
114
  outline: 0;
115
115
  z-index: 0;
116
116
  overflow: auto;
117
- `, V = b.div`
117
+ `, V = x.div`
118
118
  flex: auto;
119
119
  position: relative;
120
120
  z-index: -1;
121
- `, H = b(E, { shouldForwardProp: (e) => e !== "isEditable" })`
121
+ `, H = x(E, { shouldForwardProp: (e) => e !== "isEditable" })`
122
122
  border: 0;
123
123
  font-size: 15px;
124
124
  display: block;
@@ -140,7 +140,7 @@ var B = b.div`
140
140
  // center 및 repeat-x를 지정하여 좌우로 긴 선을 그립니다.
141
141
  height: 26px;
142
142
  border: 0;
143
- background: url("${p}") center repeat-x;
143
+ background: url("${m}") center repeat-x;
144
144
  }
145
145
  `;
146
146
  //#endregion
@@ -1,13 +1,13 @@
1
1
  import { stdin_default as e } from "../../../node_modules/.pnpm/remixicon@4.3.0/node_modules/remixicon/icons/Document/file-warning-line.js";
2
2
  import { stdin_default as t } from "../../../node_modules/.pnpm/remixicon@4.3.0/node_modules/remixicon/icons/System/upload-line.js";
3
- import { Button as n } from "../../../components/Button.js";
4
- import { CdsContext as r } from "../../../CdsProvider.js";
5
- import { getTexts as i } from "../../../texts.js";
6
- import { css as a, useTheme as o } from "@emotion/react";
7
- import { useContext as s, useRef as c, useState as l } from "react";
8
- import u from "@emotion/styled";
9
- import { Fragment as d, jsx as f, jsxs as p } from "@emotion/react/jsx-runtime";
10
- import { useTranslation as m } from "react-i18next";
3
+ import { useTranslation as n } from "../../../node_modules/.pnpm/react-i18next@15.7.3_i18next@25.5.2_typescript@5.5.4__react-dom@18.2.0_react@18.2.0__react@18.2.0_typescript@5.5.4/node_modules/react-i18next/dist/es/useTranslation.js";
4
+ import { Button as r } from "../../../components/Button.js";
5
+ import { CdsContext as i } from "../../../CdsProvider.js";
6
+ import { getTexts as a } from "../../../texts.js";
7
+ import { css as o, useTheme as s } from "@emotion/react";
8
+ import { useContext as c, useRef as l, useState as u } from "react";
9
+ import d from "@emotion/styled";
10
+ import { Fragment as f, jsx as p, jsxs as m } from "@emotion/react/jsx-runtime";
11
11
  import h from "moment";
12
12
  //#region src/cds/patterns/LexicalEditor/components/FileSelectInput.tsx
13
13
  var g = (e, t) => ({
@@ -24,9 +24,9 @@ var g = (e, t) => ({
24
24
  errorStr: t("업로드할 수 없는 파일입니다. 모든 파일을 업로드해주세요.")
25
25
  }
26
26
  })[e], _ = 1 * 1024 * 1024 * 1024;
27
- function v(u) {
28
- let { onChange: v, fileType: C, onFileSubmit: w } = u, [T, E] = l(null), D = c(null), { t: O } = m(), { accept: k, errorStr: A } = g(C, O), j = s(r), M = o();
29
- return /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p(x, { children: [/* @__PURE__ */ f(n, {
27
+ function v(d) {
28
+ let { onChange: v, fileType: C, onFileSubmit: w } = d, [T, E] = u(null), D = l(null), { t: O } = n(), { accept: k, errorStr: A } = g(C, O), j = c(i), M = s();
29
+ return /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ m(x, { children: [/* @__PURE__ */ p(r, {
30
30
  fullWidth: !0,
31
31
  color: "grey",
32
32
  size: "medium",
@@ -34,13 +34,13 @@ function v(u) {
34
34
  onClick: () => {
35
35
  D.current?.click();
36
36
  },
37
- startIcon: /* @__PURE__ */ f(t, {})
38
- }), /* @__PURE__ */ f(S, { children: T && /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f(e, { css: a`
37
+ startIcon: /* @__PURE__ */ p(t, {})
38
+ }), /* @__PURE__ */ p(S, { children: T && /* @__PURE__ */ m(f, { children: [/* @__PURE__ */ p(e, { css: o`
39
39
  padding: 0 4px;
40
40
  width: 24px;
41
41
  height: 24px;
42
42
  color: ${M.color.background.danger};
43
- ` }), /* @__PURE__ */ f(b, { children: T })] }) })] }), /* @__PURE__ */ f(y, {
43
+ ` }), /* @__PURE__ */ p(b, { children: T })] }) })] }), /* @__PURE__ */ p(y, {
44
44
  ref: D,
45
45
  type: "file",
46
46
  accept: k,
@@ -48,7 +48,7 @@ function v(u) {
48
48
  let t = e.target.files?.[0];
49
49
  if (!t) return;
50
50
  if (t.size >= _) {
51
- E(i(O, "errorFileTooLarge")), e.target.value = "";
51
+ E(a(O, "errorFileTooLarge")), e.target.value = "";
52
52
  return;
53
53
  }
54
54
  if (k && !(k === "*" || (k.startsWith(".") ? k.slice(1) === t.name.split(".").pop()?.toLowerCase() : new RegExp(k.replace("*", ".*")).test(t.type)))) {
@@ -69,19 +69,19 @@ function v(u) {
69
69
  }
70
70
  })] });
71
71
  }
72
- var y = u.input`
72
+ var y = d.input`
73
73
  display: none;
74
- `, b = u.div(({ theme: e }) => a`
74
+ `, b = d.div(({ theme: e }) => o`
75
75
  color: ${e.color.foreground.danger};
76
76
  font-family: ${e.fontFamily.ui};
77
77
  font-size: 14px;
78
78
  font-weight: 400;
79
79
  line-height: 20px;
80
- `), x = u.div`
80
+ `), x = d.div`
81
81
  display: flex;
82
82
  flex-direction: column;
83
83
  gap: 4px;
84
- `, S = u.div`
84
+ `, S = d.div`
85
85
  padding-left: 8px;
86
86
  display: flex;
87
87
  flex-direction: row;