@object-ui/plugin-aggrid 4.0.3 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/AgGridImpl-CAfXf2vU.js +225 -0
- package/dist/ObjectAgGridImpl-C-HQaIhp.js +460 -0
- package/dist/index.js +21 -16
- package/dist/index.umd.cjs +1 -238
- package/package.json +7 -7
- package/dist/AddressField-CP-8JJvR.js +0 -98
- package/dist/AgGridImpl-DiTsK8F6.js +0 -226
- package/dist/AutoNumberField-DCL2eUJj.js +0 -14
- package/dist/AvatarField-DuaF__ns.js +0 -83
- package/dist/BooleanField-0QUz5DOy.js +0 -41
- package/dist/CodeField-iTabv7wS.js +0 -23
- package/dist/ColorField-R7ZmLj1V.js +0 -38
- package/dist/CurrencyField-CEu2SjEj.js +0 -49
- package/dist/DateField-DoaPu9GV.js +0 -22
- package/dist/DateTimeField-DcKX54zr.js +0 -30
- package/dist/EmailField-eYfpFAtE.js +0 -26
- package/dist/FileField-DtvoWRK-.js +0 -214
- package/dist/FormulaField-DF6-4u2b.js +0 -17
- package/dist/GeolocationField-CyzG2dqR.js +0 -161
- package/dist/GridField-BFlgbp8W.js +0 -49
- package/dist/ImageCropperDialog-BFlbM7vO.js +0 -153
- package/dist/ImageField-DoXNtXV_.js +0 -145
- package/dist/LocationField-BeYK6K9V.js +0 -36
- package/dist/LookupField-DXGCnQ3q.js +0 -1063
- package/dist/MasterDetailField-JpmMudRV.js +0 -110
- package/dist/NumberField-BYuCxbmU.js +0 -27
- package/dist/ObjectAgGridImpl-Bz5whFec.js +0 -20000
- package/dist/ObjectField-Dlf_yrMC.js +0 -50
- package/dist/PasswordField-40E439oE.js +0 -61
- package/dist/PercentField-BvdQEcfn.js +0 -61
- package/dist/PhoneField-CBuoC-vs.js +0 -26
- package/dist/QRCodeField-CrRsA1vB.js +0 -145
- package/dist/RatingField-BVkroiQ4.js +0 -43
- package/dist/RichTextField-DEYNcokk.js +0 -33
- package/dist/SelectField-K-xoVDss.js +0 -36
- package/dist/SignatureField-D0nUx3Cb.js +0 -99
- package/dist/SliderField-C2EpGbj8.js +0 -35
- package/dist/SummaryField-S6Gt7IDC.js +0 -22
- package/dist/TextAreaField-j4eJQ66C.js +0 -125
- package/dist/TextField-DccUZtd7.js +0 -30
- package/dist/TimeField-CWbpycPt.js +0 -22
- package/dist/UrlField-BkPyImh9.js +0 -31
- package/dist/UserField-LrhYdvnz.js +0 -77
- package/dist/VectorField-Baa_mHsO.js +0 -34
- package/dist/check-CBAnx5TO.js +0 -7
- package/dist/createLucideIcon-BtZxPlua.js +0 -42
- package/dist/crop-2wjrXKXD.js +0 -10
- package/dist/dist-BcXWTU-8.js +0 -54
- package/dist/index.css +0 -2
- package/dist/jsx-runtime-CXSCp6pT.js +0 -180
- package/dist/loader-circle-Cxg-xF4u.js +0 -7
- package/dist/plus-COkdZ2Fh.js +0 -10
- package/dist/rolldown-runtime-CkxV0rQ3.js +0 -14
- package/dist/upload-DWhfIa3Y.js +0 -17
- package/dist/useFieldTranslation-DtLNhrx3.js +0 -305
- package/dist/x-BDi_yYx9.js +0 -10
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { r as e, t } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
|
-
//#region ../../node_modules/.pnpm/react@19.2.5/node_modules/react/cjs/react-jsx-runtime.production.js
|
|
3
|
-
var n = /* @__PURE__ */ t(((e) => {
|
|
4
|
-
var t = Symbol.for("react.transitional.element"), n = Symbol.for("react.fragment");
|
|
5
|
-
function r(e, n, r) {
|
|
6
|
-
var i = null;
|
|
7
|
-
if (r !== void 0 && (i = "" + r), n.key !== void 0 && (i = "" + n.key), "key" in n) for (var a in r = {}, n) a !== "key" && (r[a] = n[a]);
|
|
8
|
-
else r = n;
|
|
9
|
-
return n = r.ref, {
|
|
10
|
-
$$typeof: t,
|
|
11
|
-
type: e,
|
|
12
|
-
key: i,
|
|
13
|
-
ref: n === void 0 ? null : n,
|
|
14
|
-
props: r
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
e.Fragment = n, e.jsx = r, e.jsxs = r;
|
|
18
|
-
})), r = /* @__PURE__ */ t(((t) => {
|
|
19
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
20
|
-
function n(e) {
|
|
21
|
-
if (e == null) return null;
|
|
22
|
-
if (typeof e == "function") return e.$$typeof === k ? null : e.displayName || e.name || null;
|
|
23
|
-
if (typeof e == "string") return e;
|
|
24
|
-
switch (e) {
|
|
25
|
-
case v: return "Fragment";
|
|
26
|
-
case b: return "Profiler";
|
|
27
|
-
case y: return "StrictMode";
|
|
28
|
-
case w: return "Suspense";
|
|
29
|
-
case T: return "SuspenseList";
|
|
30
|
-
case O: return "Activity";
|
|
31
|
-
}
|
|
32
|
-
if (typeof e == "object") switch (typeof e.tag == "number" && console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), e.$$typeof) {
|
|
33
|
-
case _: return "Portal";
|
|
34
|
-
case S: return e.displayName || "Context";
|
|
35
|
-
case x: return (e._context.displayName || "Context") + ".Consumer";
|
|
36
|
-
case C:
|
|
37
|
-
var t = e.render;
|
|
38
|
-
return e = e.displayName, e ||= (e = t.displayName || t.name || "", e === "" ? "ForwardRef" : "ForwardRef(" + e + ")"), e;
|
|
39
|
-
case E: return t = e.displayName || null, t === null ? n(e.type) || "Memo" : t;
|
|
40
|
-
case D:
|
|
41
|
-
t = e._payload, e = e._init;
|
|
42
|
-
try {
|
|
43
|
-
return n(e(t));
|
|
44
|
-
} catch {}
|
|
45
|
-
}
|
|
46
|
-
return null;
|
|
47
|
-
}
|
|
48
|
-
function r(e) {
|
|
49
|
-
return "" + e;
|
|
50
|
-
}
|
|
51
|
-
function i(e) {
|
|
52
|
-
try {
|
|
53
|
-
r(e);
|
|
54
|
-
var t = !1;
|
|
55
|
-
} catch {
|
|
56
|
-
t = !0;
|
|
57
|
-
}
|
|
58
|
-
if (t) {
|
|
59
|
-
t = console;
|
|
60
|
-
var n = t.error, i = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
61
|
-
return n.call(t, "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.", i), r(e);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
function a(e) {
|
|
65
|
-
if (e === v) return "<>";
|
|
66
|
-
if (typeof e == "object" && e && e.$$typeof === D) return "<...>";
|
|
67
|
-
try {
|
|
68
|
-
var t = n(e);
|
|
69
|
-
return t ? "<" + t + ">" : "<...>";
|
|
70
|
-
} catch {
|
|
71
|
-
return "<...>";
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
function o() {
|
|
75
|
-
var e = A.A;
|
|
76
|
-
return e === null ? null : e.getOwner();
|
|
77
|
-
}
|
|
78
|
-
function s() {
|
|
79
|
-
return Error("react-stack-top-frame");
|
|
80
|
-
}
|
|
81
|
-
function c(e) {
|
|
82
|
-
if (j.call(e, "key")) {
|
|
83
|
-
var t = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
84
|
-
if (t && t.isReactWarning) return !1;
|
|
85
|
-
}
|
|
86
|
-
return e.key !== void 0;
|
|
87
|
-
}
|
|
88
|
-
function l(e, t) {
|
|
89
|
-
function n() {
|
|
90
|
-
P || (P = !0, console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)", t));
|
|
91
|
-
}
|
|
92
|
-
n.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
93
|
-
get: n,
|
|
94
|
-
configurable: !0
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
function u() {
|
|
98
|
-
var e = n(this.type);
|
|
99
|
-
return F[e] || (F[e] = !0, console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")), e = this.props.ref, e === void 0 ? null : e;
|
|
100
|
-
}
|
|
101
|
-
function d(e, t, n, r, i, a) {
|
|
102
|
-
var o = n.ref;
|
|
103
|
-
return e = {
|
|
104
|
-
$$typeof: g,
|
|
105
|
-
type: e,
|
|
106
|
-
key: t,
|
|
107
|
-
props: n,
|
|
108
|
-
_owner: r
|
|
109
|
-
}, (o === void 0 ? null : o) === null ? Object.defineProperty(e, "ref", {
|
|
110
|
-
enumerable: !1,
|
|
111
|
-
value: null
|
|
112
|
-
}) : Object.defineProperty(e, "ref", {
|
|
113
|
-
enumerable: !1,
|
|
114
|
-
get: u
|
|
115
|
-
}), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
116
|
-
configurable: !1,
|
|
117
|
-
enumerable: !1,
|
|
118
|
-
writable: !0,
|
|
119
|
-
value: 0
|
|
120
|
-
}), Object.defineProperty(e, "_debugInfo", {
|
|
121
|
-
configurable: !1,
|
|
122
|
-
enumerable: !1,
|
|
123
|
-
writable: !0,
|
|
124
|
-
value: null
|
|
125
|
-
}), Object.defineProperty(e, "_debugStack", {
|
|
126
|
-
configurable: !1,
|
|
127
|
-
enumerable: !1,
|
|
128
|
-
writable: !0,
|
|
129
|
-
value: i
|
|
130
|
-
}), Object.defineProperty(e, "_debugTask", {
|
|
131
|
-
configurable: !1,
|
|
132
|
-
enumerable: !1,
|
|
133
|
-
writable: !0,
|
|
134
|
-
value: a
|
|
135
|
-
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
136
|
-
}
|
|
137
|
-
function f(e, t, r, a, s, u) {
|
|
138
|
-
var f = t.children;
|
|
139
|
-
if (f !== void 0) if (a) if (M(f)) {
|
|
140
|
-
for (a = 0; a < f.length; a++) p(f[a]);
|
|
141
|
-
Object.freeze && Object.freeze(f);
|
|
142
|
-
} else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
|
143
|
-
else p(f);
|
|
144
|
-
if (j.call(t, "key")) {
|
|
145
|
-
f = n(e);
|
|
146
|
-
var m = Object.keys(t).filter(function(e) {
|
|
147
|
-
return e !== "key";
|
|
148
|
-
});
|
|
149
|
-
a = 0 < m.length ? "{key: someKey, " + m.join(": ..., ") + ": ...}" : "{key: someKey}", R[f + a] || (m = 0 < m.length ? "{" + m.join(": ..., ") + ": ...}" : "{}", console.error("A props object containing a \"key\" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />", a, f, m, f), R[f + a] = !0);
|
|
150
|
-
}
|
|
151
|
-
if (f = null, r !== void 0 && (i(r), f = "" + r), c(t) && (i(t.key), f = "" + t.key), "key" in t) for (var h in r = {}, t) h !== "key" && (r[h] = t[h]);
|
|
152
|
-
else r = t;
|
|
153
|
-
return f && l(r, typeof e == "function" ? e.displayName || e.name || "Unknown" : e), d(e, f, r, o(), s, u);
|
|
154
|
-
}
|
|
155
|
-
function p(e) {
|
|
156
|
-
m(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e && e.$$typeof === D && (e._payload.status === "fulfilled" ? m(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
157
|
-
}
|
|
158
|
-
function m(e) {
|
|
159
|
-
return typeof e == "object" && !!e && e.$$typeof === g;
|
|
160
|
-
}
|
|
161
|
-
var h = e("react"), g = Symbol.for("react.transitional.element"), _ = Symbol.for("react.portal"), v = Symbol.for("react.fragment"), y = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), x = Symbol.for("react.consumer"), S = Symbol.for("react.context"), C = Symbol.for("react.forward_ref"), w = Symbol.for("react.suspense"), T = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), O = Symbol.for("react.activity"), k = Symbol.for("react.client.reference"), A = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, M = Array.isArray, N = console.createTask ? console.createTask : function() {
|
|
162
|
-
return null;
|
|
163
|
-
};
|
|
164
|
-
h = { react_stack_bottom_frame: function(e) {
|
|
165
|
-
return e();
|
|
166
|
-
} };
|
|
167
|
-
var P, F = {}, I = h.react_stack_bottom_frame.bind(h, s)(), L = N(a(s)), R = {};
|
|
168
|
-
t.Fragment = v, t.jsx = function(e, t, n) {
|
|
169
|
-
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
170
|
-
return f(e, t, n, !1, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
171
|
-
}, t.jsxs = function(e, t, n) {
|
|
172
|
-
var r = 1e4 > A.recentlyCreatedOwnerStacks++;
|
|
173
|
-
return f(e, t, n, !0, r ? Error("react-stack-top-frame") : I, r ? N(a(e)) : L);
|
|
174
|
-
};
|
|
175
|
-
})();
|
|
176
|
-
})), i = /* @__PURE__ */ t(((e, t) => {
|
|
177
|
-
process.env.NODE_ENV === "production" ? t.exports = n() : t.exports = r();
|
|
178
|
-
}));
|
|
179
|
-
//#endregion
|
|
180
|
-
export { i as t };
|
package/dist/plus-COkdZ2Fh.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region \0rolldown/runtime.js
|
|
2
|
-
var e = Object.defineProperty, t = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), n = (t, n) => {
|
|
3
|
-
let r = {};
|
|
4
|
-
for (var i in t) e(r, i, {
|
|
5
|
-
get: t[i],
|
|
6
|
-
enumerable: !0
|
|
7
|
-
});
|
|
8
|
-
return n || e(r, Symbol.toStringTag, { value: "Module" }), r;
|
|
9
|
-
}, r = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
|
|
10
|
-
if (typeof require < "u") return require.apply(this, arguments);
|
|
11
|
-
throw Error("Calling `require` for \"" + e + "\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.");
|
|
12
|
-
});
|
|
13
|
-
//#endregion
|
|
14
|
-
export { n, r, t };
|
package/dist/upload-DWhfIa3Y.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./createLucideIcon-BtZxPlua.js";
|
|
2
|
-
var t = e("upload", [
|
|
3
|
-
["path", {
|
|
4
|
-
d: "M12 3v12",
|
|
5
|
-
key: "1x0j5s"
|
|
6
|
-
}],
|
|
7
|
-
["path", {
|
|
8
|
-
d: "m17 8-5-5-5 5",
|
|
9
|
-
key: "7q97r8"
|
|
10
|
-
}],
|
|
11
|
-
["path", {
|
|
12
|
-
d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",
|
|
13
|
-
key: "ih7n3h"
|
|
14
|
-
}]
|
|
15
|
-
]);
|
|
16
|
-
//#endregion
|
|
17
|
-
export { t };
|
|
@@ -1,305 +0,0 @@
|
|
|
1
|
-
import { r as e, t } from "./rolldown-runtime-CkxV0rQ3.js";
|
|
2
|
-
import { createContext as n, useCallback as r, useContext as i, useEffect as a, useMemo as o, useRef as s, useState as c } from "react";
|
|
3
|
-
//#region ../../node_modules/.pnpm/react-i18next@17.0.6_i18next@26.0.8_typescript@6.0.3__react-dom@19.2.5_react@19.2.5__react@19.2.5_typescript@6.0.3/node_modules/react-i18next/dist/es/utils.js
|
|
4
|
-
var l = (e, t, n, r) => {
|
|
5
|
-
let i = [n, {
|
|
6
|
-
code: t,
|
|
7
|
-
...r || {}
|
|
8
|
-
}];
|
|
9
|
-
if (e?.services?.logger?.forward) return e.services.logger.forward(i, "warn", "react-i18next::", !0);
|
|
10
|
-
g(i[0]) && (i[0] = `react-i18next:: ${i[0]}`), e?.services?.logger?.warn ? e.services.logger.warn(...i) : console?.warn && console.warn(...i);
|
|
11
|
-
}, u = {}, d = (e, t, n, r) => {
|
|
12
|
-
g(n) && u[n] || (g(n) && (u[n] = /* @__PURE__ */ new Date()), l(e, t, n, r));
|
|
13
|
-
}, f = (e, t) => () => {
|
|
14
|
-
if (e.isInitialized) t();
|
|
15
|
-
else {
|
|
16
|
-
let n = () => {
|
|
17
|
-
setTimeout(() => {
|
|
18
|
-
e.off("initialized", n);
|
|
19
|
-
}, 0), t();
|
|
20
|
-
};
|
|
21
|
-
e.on("initialized", n);
|
|
22
|
-
}
|
|
23
|
-
}, p = (e, t, n) => {
|
|
24
|
-
e.loadNamespaces(t, f(e, n));
|
|
25
|
-
}, m = (e, t, n, r) => {
|
|
26
|
-
if (g(n) && (n = [n]), e.options.preload && e.options.preload.indexOf(t) > -1) return p(e, n, r);
|
|
27
|
-
n.forEach((t) => {
|
|
28
|
-
e.options.ns.indexOf(t) < 0 && e.options.ns.push(t);
|
|
29
|
-
}), e.loadLanguages(t, f(e, r));
|
|
30
|
-
}, h = (e, t, n = {}) => !t.languages || !t.languages.length ? (d(t, "NO_LANGUAGES", "i18n.languages were undefined or empty", { languages: t.languages }), !0) : t.hasLoadedNamespace(e, {
|
|
31
|
-
lng: n.lng,
|
|
32
|
-
precheck: (t, r) => {
|
|
33
|
-
if (n.bindI18n && n.bindI18n.indexOf("languageChanging") > -1 && t.services.backendConnector.backend && t.isLanguageChangingTo && !r(t.isLanguageChangingTo, e)) return !1;
|
|
34
|
-
}
|
|
35
|
-
}), g = (e) => typeof e == "string", _ = (e) => typeof e == "object" && !!e, v = /&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g, y = {
|
|
36
|
-
"&": "&",
|
|
37
|
-
"&": "&",
|
|
38
|
-
"<": "<",
|
|
39
|
-
"<": "<",
|
|
40
|
-
">": ">",
|
|
41
|
-
">": ">",
|
|
42
|
-
"'": "'",
|
|
43
|
-
"'": "'",
|
|
44
|
-
""": "\"",
|
|
45
|
-
""": "\"",
|
|
46
|
-
" ": " ",
|
|
47
|
-
" ": " ",
|
|
48
|
-
"©": "©",
|
|
49
|
-
"©": "©",
|
|
50
|
-
"®": "®",
|
|
51
|
-
"®": "®",
|
|
52
|
-
"…": "…",
|
|
53
|
-
"…": "…",
|
|
54
|
-
"/": "/",
|
|
55
|
-
"/": "/"
|
|
56
|
-
}, b = (e) => y[e], x = {
|
|
57
|
-
bindI18n: "languageChanged",
|
|
58
|
-
bindI18nStore: "",
|
|
59
|
-
transEmptyNodeValue: "",
|
|
60
|
-
transSupportBasicHtmlNodes: !0,
|
|
61
|
-
transWrapTextNodes: "",
|
|
62
|
-
transKeepBasicHtmlNodesFor: [
|
|
63
|
-
"br",
|
|
64
|
-
"strong",
|
|
65
|
-
"i",
|
|
66
|
-
"p"
|
|
67
|
-
],
|
|
68
|
-
useSuspense: !0,
|
|
69
|
-
unescape: (e) => e.replace(v, b),
|
|
70
|
-
transDefaultProps: void 0
|
|
71
|
-
}, S = () => x, C, w = () => C, T = n(), E = class {
|
|
72
|
-
constructor() {
|
|
73
|
-
this.usedNamespaces = {};
|
|
74
|
-
}
|
|
75
|
-
addUsedNamespaces(e) {
|
|
76
|
-
e.forEach((e) => {
|
|
77
|
-
this.usedNamespaces[e] || (this.usedNamespaces[e] = !0);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
getUsedNamespaces() {
|
|
81
|
-
return Object.keys(this.usedNamespaces);
|
|
82
|
-
}
|
|
83
|
-
}, D = /* @__PURE__ */ t(((t) => {
|
|
84
|
-
var n = e("react");
|
|
85
|
-
function r(e, t) {
|
|
86
|
-
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
87
|
-
}
|
|
88
|
-
var i = typeof Object.is == "function" ? Object.is : r, a = n.useState, o = n.useEffect, s = n.useLayoutEffect, c = n.useDebugValue;
|
|
89
|
-
function l(e, t) {
|
|
90
|
-
var n = t(), r = a({ inst: {
|
|
91
|
-
value: n,
|
|
92
|
-
getSnapshot: t
|
|
93
|
-
} }), i = r[0].inst, l = r[1];
|
|
94
|
-
return s(function() {
|
|
95
|
-
i.value = n, i.getSnapshot = t, u(i) && l({ inst: i });
|
|
96
|
-
}, [
|
|
97
|
-
e,
|
|
98
|
-
n,
|
|
99
|
-
t
|
|
100
|
-
]), o(function() {
|
|
101
|
-
return u(i) && l({ inst: i }), e(function() {
|
|
102
|
-
u(i) && l({ inst: i });
|
|
103
|
-
});
|
|
104
|
-
}, [e]), c(n), n;
|
|
105
|
-
}
|
|
106
|
-
function u(e) {
|
|
107
|
-
var t = e.getSnapshot;
|
|
108
|
-
e = e.value;
|
|
109
|
-
try {
|
|
110
|
-
var n = t();
|
|
111
|
-
return !i(e, n);
|
|
112
|
-
} catch {
|
|
113
|
-
return !0;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
function d(e, t) {
|
|
117
|
-
return t();
|
|
118
|
-
}
|
|
119
|
-
var f = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? d : l;
|
|
120
|
-
t.useSyncExternalStore = n.useSyncExternalStore === void 0 ? f : n.useSyncExternalStore;
|
|
121
|
-
})), O = /* @__PURE__ */ t(((t) => {
|
|
122
|
-
process.env.NODE_ENV !== "production" && (function() {
|
|
123
|
-
function n(e, t) {
|
|
124
|
-
return e === t && (e !== 0 || 1 / e == 1 / t) || e !== e && t !== t;
|
|
125
|
-
}
|
|
126
|
-
function r(e, t) {
|
|
127
|
-
f || o.startTransition === void 0 || (f = !0, console.error("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));
|
|
128
|
-
var n = t();
|
|
129
|
-
if (!p) {
|
|
130
|
-
var r = t();
|
|
131
|
-
s(n, r) || (console.error("The result of getSnapshot should be cached to avoid an infinite loop"), p = !0);
|
|
132
|
-
}
|
|
133
|
-
r = c({ inst: {
|
|
134
|
-
value: n,
|
|
135
|
-
getSnapshot: t
|
|
136
|
-
} });
|
|
137
|
-
var a = r[0].inst, m = r[1];
|
|
138
|
-
return u(function() {
|
|
139
|
-
a.value = n, a.getSnapshot = t, i(a) && m({ inst: a });
|
|
140
|
-
}, [
|
|
141
|
-
e,
|
|
142
|
-
n,
|
|
143
|
-
t
|
|
144
|
-
]), l(function() {
|
|
145
|
-
return i(a) && m({ inst: a }), e(function() {
|
|
146
|
-
i(a) && m({ inst: a });
|
|
147
|
-
});
|
|
148
|
-
}, [e]), d(n), n;
|
|
149
|
-
}
|
|
150
|
-
function i(e) {
|
|
151
|
-
var t = e.getSnapshot;
|
|
152
|
-
e = e.value;
|
|
153
|
-
try {
|
|
154
|
-
var n = t();
|
|
155
|
-
return !s(e, n);
|
|
156
|
-
} catch {
|
|
157
|
-
return !0;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
function a(e, t) {
|
|
161
|
-
return t();
|
|
162
|
-
}
|
|
163
|
-
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
164
|
-
var o = e("react"), s = typeof Object.is == "function" ? Object.is : n, c = o.useState, l = o.useEffect, u = o.useLayoutEffect, d = o.useDebugValue, f = !1, p = !1, m = typeof window > "u" || window.document === void 0 || window.document.createElement === void 0 ? a : r;
|
|
165
|
-
t.useSyncExternalStore = o.useSyncExternalStore === void 0 ? m : o.useSyncExternalStore, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
166
|
-
})();
|
|
167
|
-
})), k = (/* @__PURE__ */ t(((e, t) => {
|
|
168
|
-
process.env.NODE_ENV === "production" ? t.exports = D() : t.exports = O();
|
|
169
|
-
})))(), A = {
|
|
170
|
-
t: (e, t) => {
|
|
171
|
-
if (g(t)) return t;
|
|
172
|
-
if (_(t) && g(t.defaultValue)) return t.defaultValue;
|
|
173
|
-
if (typeof e == "function") return "";
|
|
174
|
-
if (Array.isArray(e)) {
|
|
175
|
-
let t = e[e.length - 1];
|
|
176
|
-
return typeof t == "function" ? "" : t;
|
|
177
|
-
}
|
|
178
|
-
return e;
|
|
179
|
-
},
|
|
180
|
-
ready: !1
|
|
181
|
-
}, j = () => () => {}, M = (e, t = {}) => {
|
|
182
|
-
let { i18n: n } = t, { i18n: l, defaultNS: u } = i(T) || {}, f = n || l || w();
|
|
183
|
-
f && !f.reportNamespaces && (f.reportNamespaces = new E()), f || d(f, "NO_I18NEXT_INSTANCE", "useTranslation: You will need to pass in an i18next instance by using initReactI18next");
|
|
184
|
-
let _ = o(() => ({
|
|
185
|
-
...S(),
|
|
186
|
-
...f?.options?.react,
|
|
187
|
-
...t
|
|
188
|
-
}), [f, t]), { useSuspense: v, keyPrefix: y } = _, b = e || u || f?.options?.defaultNS, x = g(b) ? [b] : b || ["translation"], C = o(() => x, x);
|
|
189
|
-
f?.reportNamespaces?.addUsedNamespaces?.(C);
|
|
190
|
-
let D = s(0), O = r((e) => {
|
|
191
|
-
if (!f) return j;
|
|
192
|
-
let { bindI18n: t, bindI18nStore: n } = _, r = () => {
|
|
193
|
-
D.current += 1, e();
|
|
194
|
-
};
|
|
195
|
-
return t && f.on(t, r), n && f.store.on(n, r), () => {
|
|
196
|
-
t && t.split(" ").forEach((e) => f.off(e, r)), n && n.split(" ").forEach((e) => f.store.off(e, r));
|
|
197
|
-
};
|
|
198
|
-
}, [f, _]), M = s(), N = r(() => {
|
|
199
|
-
if (!f) return A;
|
|
200
|
-
let e = !!(f.isInitialized || f.initializedStoreOnce) && C.every((e) => h(e, f, _)), n = t.lng || f.language, r = D.current, i = M.current;
|
|
201
|
-
if (i && i.ready === e && i.lng === n && i.keyPrefix === y && i.revision === r) return i;
|
|
202
|
-
let a = {
|
|
203
|
-
t: f.getFixedT(n, _.nsMode === "fallback" ? C : C[0], y),
|
|
204
|
-
ready: e,
|
|
205
|
-
lng: n,
|
|
206
|
-
keyPrefix: y,
|
|
207
|
-
revision: r
|
|
208
|
-
};
|
|
209
|
-
return M.current = a, a;
|
|
210
|
-
}, [
|
|
211
|
-
f,
|
|
212
|
-
C,
|
|
213
|
-
y,
|
|
214
|
-
_,
|
|
215
|
-
t.lng
|
|
216
|
-
]), [P, F] = c(0), { t: I, ready: L } = (0, k.useSyncExternalStore)(O, N, N);
|
|
217
|
-
a(() => {
|
|
218
|
-
if (f && !L && !v) {
|
|
219
|
-
let e = () => F((e) => e + 1);
|
|
220
|
-
t.lng ? m(f, t.lng, C, e) : p(f, C, e);
|
|
221
|
-
}
|
|
222
|
-
}, [
|
|
223
|
-
f,
|
|
224
|
-
t.lng,
|
|
225
|
-
C,
|
|
226
|
-
L,
|
|
227
|
-
v,
|
|
228
|
-
P
|
|
229
|
-
]);
|
|
230
|
-
let R = f || {}, z = s(null), B = s(), V = (e) => {
|
|
231
|
-
let t = Object.getOwnPropertyDescriptors(e);
|
|
232
|
-
t.__original && delete t.__original;
|
|
233
|
-
let n = Object.create(Object.getPrototypeOf(e), t);
|
|
234
|
-
if (!Object.prototype.hasOwnProperty.call(n, "__original")) try {
|
|
235
|
-
Object.defineProperty(n, "__original", {
|
|
236
|
-
value: e,
|
|
237
|
-
writable: !1,
|
|
238
|
-
enumerable: !1,
|
|
239
|
-
configurable: !1
|
|
240
|
-
});
|
|
241
|
-
} catch {}
|
|
242
|
-
return n;
|
|
243
|
-
}, H = o(() => {
|
|
244
|
-
let e = R, t = e?.language, n = e;
|
|
245
|
-
e && (z.current && z.current.__original === e && B.current === t ? n = z.current : (n = V(e), z.current = n, B.current = t));
|
|
246
|
-
let r = !L && !v ? (...e) => (d(f, "USE_T_BEFORE_READY", "useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."), I(...e)) : I, i = [
|
|
247
|
-
r,
|
|
248
|
-
n,
|
|
249
|
-
L
|
|
250
|
-
];
|
|
251
|
-
return i.t = r, i.i18n = n, i.ready = L, i;
|
|
252
|
-
}, [
|
|
253
|
-
I,
|
|
254
|
-
R,
|
|
255
|
-
L,
|
|
256
|
-
R.resolvedLanguage,
|
|
257
|
-
R.language,
|
|
258
|
-
R.languages
|
|
259
|
-
]);
|
|
260
|
-
if (f && v && !L) throw new Promise((e) => {
|
|
261
|
-
let n = () => e();
|
|
262
|
-
t.lng ? m(f, t.lng, C, n) : p(f, C, n);
|
|
263
|
-
});
|
|
264
|
-
return H;
|
|
265
|
-
}, N = n(null);
|
|
266
|
-
function P(e) {
|
|
267
|
-
let t = i(N), { t: n, i18n: r } = M(e);
|
|
268
|
-
return {
|
|
269
|
-
t: n,
|
|
270
|
-
language: t?.language || r.language || "en",
|
|
271
|
-
changeLanguage: t?.changeLanguage || (async (e) => {
|
|
272
|
-
await r.changeLanguage(e);
|
|
273
|
-
}),
|
|
274
|
-
direction: t?.direction || "ltr",
|
|
275
|
-
i18n: r
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
//#endregion
|
|
279
|
-
//#region ../i18n/dist/useSafeTranslation.js
|
|
280
|
-
function F(e, t) {
|
|
281
|
-
return function() {
|
|
282
|
-
try {
|
|
283
|
-
let n = P();
|
|
284
|
-
return n.t(t) === t ? { t: (t, n) => {
|
|
285
|
-
let r = e[t] || t;
|
|
286
|
-
if (n) for (let [e, t] of Object.entries(n)) r = r.replace(`{{${e}}}`, String(t));
|
|
287
|
-
return r;
|
|
288
|
-
} } : { t: n.t };
|
|
289
|
-
} catch {
|
|
290
|
-
return { t: (t, n) => {
|
|
291
|
-
let r = e[t] || t;
|
|
292
|
-
if (n) for (let [e, t] of Object.entries(n)) r = r.replace(`{{${e}}}`, String(t));
|
|
293
|
-
return r;
|
|
294
|
-
} };
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
}
|
|
298
|
-
var I = F({
|
|
299
|
-
"common.selectOption": "Select an option",
|
|
300
|
-
"common.select": "Select...",
|
|
301
|
-
"common.search": "Search",
|
|
302
|
-
"table.selected": "{{count}} selected"
|
|
303
|
-
}, "common.selectOption");
|
|
304
|
-
//#endregion
|
|
305
|
-
export { I as t };
|