@weavix/tracker-plugin-sdk-react 0.0.8 → 0.0.9

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/index.mjs CHANGED
@@ -1,671 +1,510 @@
1
- import { PluginProvider as pr, usePluginContext as xe } from "@weavix/sdk-react";
2
- import { PluginError as Sr, PluginLoader as xr, useConfirm as wr, useLanguage as jr, useLocalizedString as kr, useTheme as Dr, useToaster as Ar } from "@weavix/sdk-react";
3
- import we, { createContext as gr, useContext as Rr, useMemo as Pe } from "react";
4
- import { METHOD_NOT_SUPPORTED as Fr, MISSING_REQUIRED_SCOPE as Lr, PLUGIN_ID_IS_NOT_CORRECT as $r, PLUGIN_ID_OR_SLOT_NOT_PROVIDED as Wr, PluginActionError as Nr, UNKNOWN_ERROR as Yr, VALIDATION_ERROR as Ur, getField as Mr, getLocalizedString as Vr, hostApi as Hr, trackerApi as Jr, uiApi as qr } from "@weavix/tracker-plugin-sdk";
5
- var M = { exports: {} }, F = {};
6
- var Oe;
7
- function _r() {
8
- if (Oe) return F;
9
- Oe = 1;
10
- var _ = we, p = /* @__PURE__ */ Symbol.for("react.element"), h = /* @__PURE__ */ Symbol.for("react.fragment"), E = Object.prototype.hasOwnProperty, C = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, S = { key: !0, ref: !0, __self: !0, __source: !0 };
11
- function D(m, c, x) {
12
- var g, b = {}, T = null, $ = null;
13
- x !== void 0 && (T = "" + x), c.key !== void 0 && (T = "" + c.key), c.ref !== void 0 && ($ = c.ref);
14
- for (g in c) E.call(c, g) && !S.hasOwnProperty(g) && (b[g] = c[g]);
15
- if (m && m.defaultProps) for (g in c = m.defaultProps, c) b[g] === void 0 && (b[g] = c[g]);
16
- return { $$typeof: p, type: m, key: T, ref: $, props: b, _owner: C.current };
17
- }
18
- return F.Fragment = h, F.jsx = D, F.jsxs = D, F;
1
+ import { PluginError as e, PluginLoader as t, PluginProvider as n, useConfirm as r, useLanguage as i, useLocalizedString as a, usePluginContext as o, useTheme as s, useToaster as c } from "@weavix/sdk-react";
2
+ import { createContext as l, useContext as u, useMemo as d } from "react";
3
+ import { METHOD_NOT_SUPPORTED as f, MISSING_REQUIRED_SCOPE as p, PLUGIN_ID_IS_NOT_CORRECT as m, PLUGIN_ID_OR_SLOT_NOT_PROVIDED as h, PluginActionError as g, UNKNOWN_ERROR as _, VALIDATION_ERROR as v, getField as y, getLocalizedString as ee, hostApi as b, storageApi as x, trackerApi as te, uiApi as ne } from "@weavix/tracker-plugin-sdk";
4
+ //#region \0rolldown/runtime.js
5
+ var S = (e, t) => () => (t || (e((t = { exports: {} }).exports, t), e = null), t.exports), C = /* @__PURE__ */ ((e) => typeof require < "u" ? require : typeof Proxy < "u" ? new Proxy(e, { get: (e, t) => (typeof require < "u" ? require : e)[t] }) : e)(function(e) {
6
+ if (typeof require < "u") return require.apply(this, arguments);
7
+ 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.");
8
+ }), w = /* @__PURE__ */ S(((e) => {
9
+ var t = C("react"), n = Symbol.for("react.element"), r = Symbol.for("react.fragment"), i = Object.prototype.hasOwnProperty, a = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = {
10
+ key: !0,
11
+ ref: !0,
12
+ __self: !0,
13
+ __source: !0
14
+ };
15
+ function s(e, t, r) {
16
+ var s, c = {}, l = null, u = null;
17
+ for (s in r !== void 0 && (l = "" + r), t.key !== void 0 && (l = "" + t.key), t.ref !== void 0 && (u = t.ref), t) i.call(t, s) && !o.hasOwnProperty(s) && (c[s] = t[s]);
18
+ if (e && e.defaultProps) for (s in t = e.defaultProps, t) c[s] === void 0 && (c[s] = t[s]);
19
+ return {
20
+ $$typeof: n,
21
+ type: e,
22
+ key: l,
23
+ ref: u,
24
+ props: c,
25
+ _owner: a.current
26
+ };
27
+ }
28
+ e.Fragment = r, e.jsx = s, e.jsxs = s;
29
+ })), T = /* @__PURE__ */ S(((e) => {
30
+ process.env.NODE_ENV !== "production" && (function() {
31
+ var t = C("react"), n = Symbol.for("react.element"), r = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), o = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.forward_ref"), u = Symbol.for("react.suspense"), d = Symbol.for("react.suspense_list"), f = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), h = Symbol.iterator, g = "@@iterator";
32
+ function _(e) {
33
+ if (typeof e != "object" || !e) return null;
34
+ var t = h && e[h] || e[g];
35
+ return typeof t == "function" ? t : null;
36
+ }
37
+ var v = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
38
+ function y(e) {
39
+ ee("error", e, [...arguments].slice(1));
40
+ }
41
+ function ee(e, t, n) {
42
+ var r = v.ReactDebugCurrentFrame.getStackAddendum();
43
+ r !== "" && (t += "%s", n = n.concat([r]));
44
+ var i = n.map(function(e) {
45
+ return String(e);
46
+ });
47
+ i.unshift("Warning: " + t), Function.prototype.apply.call(console[e], console, i);
48
+ }
49
+ var b = !1, x = !1, te = !1, ne = !1, S = !1, w = Symbol.for("react.module.reference");
50
+ function T(e) {
51
+ return !!(typeof e == "string" || typeof e == "function" || e === i || e === o || S || e === a || e === u || e === d || ne || e === m || b || x || te || typeof e == "object" && e && (e.$$typeof === p || e.$$typeof === f || e.$$typeof === s || e.$$typeof === c || e.$$typeof === l || e.$$typeof === w || e.getModuleId !== void 0));
52
+ }
53
+ function E(e, t, n) {
54
+ var r = e.displayName;
55
+ if (r) return r;
56
+ var i = t.displayName || t.name || "";
57
+ return i === "" ? n : n + "(" + i + ")";
58
+ }
59
+ function D(e) {
60
+ return e.displayName || "Context";
61
+ }
62
+ function O(e) {
63
+ if (e == null) return null;
64
+ if (typeof e.tag == "number" && y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function") return e.displayName || e.name || null;
65
+ if (typeof e == "string") return e;
66
+ switch (e) {
67
+ case i: return "Fragment";
68
+ case r: return "Portal";
69
+ case o: return "Profiler";
70
+ case a: return "StrictMode";
71
+ case u: return "Suspense";
72
+ case d: return "SuspenseList";
73
+ }
74
+ if (typeof e == "object") switch (e.$$typeof) {
75
+ case c: return D(e) + ".Consumer";
76
+ case s: return D(e._context) + ".Provider";
77
+ case l: return E(e, e.render, "ForwardRef");
78
+ case f:
79
+ var t = e.displayName || null;
80
+ return t === null ? O(e.type) || "Memo" : t;
81
+ case p:
82
+ var n = e, m = n._payload, h = n._init;
83
+ try {
84
+ return O(h(m));
85
+ } catch {
86
+ return null;
87
+ }
88
+ }
89
+ return null;
90
+ }
91
+ var k = Object.assign, A = 0, j, M, N, P, F, I, re;
92
+ function ie() {}
93
+ ie.__reactDisabledLog = !0;
94
+ function ae() {
95
+ if (A === 0) {
96
+ j = console.log, M = console.info, N = console.warn, P = console.error, F = console.group, I = console.groupCollapsed, re = console.groupEnd;
97
+ var e = {
98
+ configurable: !0,
99
+ enumerable: !0,
100
+ value: ie,
101
+ writable: !0
102
+ };
103
+ Object.defineProperties(console, {
104
+ info: e,
105
+ log: e,
106
+ warn: e,
107
+ error: e,
108
+ group: e,
109
+ groupCollapsed: e,
110
+ groupEnd: e
111
+ });
112
+ }
113
+ A++;
114
+ }
115
+ function oe() {
116
+ if (A--, A === 0) {
117
+ var e = {
118
+ configurable: !0,
119
+ enumerable: !0,
120
+ writable: !0
121
+ };
122
+ Object.defineProperties(console, {
123
+ log: k({}, e, { value: j }),
124
+ info: k({}, e, { value: M }),
125
+ warn: k({}, e, { value: N }),
126
+ error: k({}, e, { value: P }),
127
+ group: k({}, e, { value: F }),
128
+ groupCollapsed: k({}, e, { value: I }),
129
+ groupEnd: k({}, e, { value: re })
130
+ });
131
+ }
132
+ A < 0 && y("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
133
+ }
134
+ var L = v.ReactCurrentDispatcher, R;
135
+ function z(e, t, n) {
136
+ if (R === void 0) try {
137
+ throw Error();
138
+ } catch (e) {
139
+ var r = e.stack.trim().match(/\n( *(at )?)/);
140
+ R = r && r[1] || "";
141
+ }
142
+ return "\n" + R + e;
143
+ }
144
+ var B = !1, V = new (typeof WeakMap == "function" ? WeakMap : Map)();
145
+ function H(e, t) {
146
+ if (!e || B) return "";
147
+ var n = V.get(e);
148
+ if (n !== void 0) return n;
149
+ var r;
150
+ B = !0;
151
+ var i = Error.prepareStackTrace;
152
+ Error.prepareStackTrace = void 0;
153
+ var a = L.current;
154
+ L.current = null, ae();
155
+ try {
156
+ if (t) {
157
+ var o = function() {
158
+ throw Error();
159
+ };
160
+ if (Object.defineProperty(o.prototype, "props", { set: function() {
161
+ throw Error();
162
+ } }), typeof Reflect == "object" && Reflect.construct) {
163
+ try {
164
+ Reflect.construct(o, []);
165
+ } catch (e) {
166
+ r = e;
167
+ }
168
+ Reflect.construct(e, [], o);
169
+ } else {
170
+ try {
171
+ o.call();
172
+ } catch (e) {
173
+ r = e;
174
+ }
175
+ e.call(o.prototype);
176
+ }
177
+ } else {
178
+ try {
179
+ throw Error();
180
+ } catch (e) {
181
+ r = e;
182
+ }
183
+ e();
184
+ }
185
+ } catch (t) {
186
+ if (t && r && typeof t.stack == "string") {
187
+ for (var s = t.stack.split("\n"), c = r.stack.split("\n"), l = s.length - 1, u = c.length - 1; l >= 1 && u >= 0 && s[l] !== c[u];) u--;
188
+ for (; l >= 1 && u >= 0; l--, u--) if (s[l] !== c[u]) {
189
+ if (l !== 1 || u !== 1) do
190
+ if (l--, u--, u < 0 || s[l] !== c[u]) {
191
+ var d = "\n" + s[l].replace(" at new ", " at ");
192
+ return e.displayName && d.includes("<anonymous>") && (d = d.replace("<anonymous>", e.displayName)), typeof e == "function" && V.set(e, d), d;
193
+ }
194
+ while (l >= 1 && u >= 0);
195
+ break;
196
+ }
197
+ }
198
+ } finally {
199
+ B = !1, L.current = a, oe(), Error.prepareStackTrace = i;
200
+ }
201
+ var f = e ? e.displayName || e.name : "", p = f ? z(f) : "";
202
+ return typeof e == "function" && V.set(e, p), p;
203
+ }
204
+ function se(e, t, n) {
205
+ return H(e, !1);
206
+ }
207
+ function ce(e) {
208
+ var t = e.prototype;
209
+ return !!(t && t.isReactComponent);
210
+ }
211
+ function U(e, t, n) {
212
+ if (e == null) return "";
213
+ if (typeof e == "function") return H(e, ce(e));
214
+ if (typeof e == "string") return z(e);
215
+ switch (e) {
216
+ case u: return z("Suspense");
217
+ case d: return z("SuspenseList");
218
+ }
219
+ if (typeof e == "object") switch (e.$$typeof) {
220
+ case l: return se(e.render);
221
+ case f: return U(e.type, t, n);
222
+ case p:
223
+ var r = e, i = r._payload, a = r._init;
224
+ try {
225
+ return U(a(i), t, n);
226
+ } catch {}
227
+ }
228
+ return "";
229
+ }
230
+ var W = Object.prototype.hasOwnProperty, G = {}, K = v.ReactDebugCurrentFrame;
231
+ function q(e) {
232
+ if (e) {
233
+ var t = e._owner, n = U(e.type, e._source, t ? t.type : null);
234
+ K.setExtraStackFrame(n);
235
+ } else K.setExtraStackFrame(null);
236
+ }
237
+ function le(e, t, n, r, i) {
238
+ var a = Function.call.bind(W);
239
+ for (var o in e) if (a(e, o)) {
240
+ var s = void 0;
241
+ try {
242
+ if (typeof e[o] != "function") {
243
+ var c = Error((r || "React class") + ": " + n + " type `" + o + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[o] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
244
+ throw c.name = "Invariant Violation", c;
245
+ }
246
+ s = e[o](t, o, r, n, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
247
+ } catch (e) {
248
+ s = e;
249
+ }
250
+ s && !(s instanceof Error) && (q(i), y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", r || "React class", n, o, typeof s), q(null)), s instanceof Error && !(s.message in G) && (G[s.message] = !0, q(i), y("Failed %s type: %s", n, s.message), q(null));
251
+ }
252
+ }
253
+ var ue = Array.isArray;
254
+ function J(e) {
255
+ return ue(e);
256
+ }
257
+ function de(e) {
258
+ return typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
259
+ }
260
+ function fe(e) {
261
+ try {
262
+ return Y(e), !1;
263
+ } catch {
264
+ return !0;
265
+ }
266
+ }
267
+ function Y(e) {
268
+ return "" + e;
269
+ }
270
+ function pe(e) {
271
+ if (fe(e)) return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", de(e)), Y(e);
272
+ }
273
+ var X = v.ReactCurrentOwner, me = {
274
+ key: !0,
275
+ ref: !0,
276
+ __self: !0,
277
+ __source: !0
278
+ }, he, ge, _e = {};
279
+ function ve(e) {
280
+ if (W.call(e, "ref")) {
281
+ var t = Object.getOwnPropertyDescriptor(e, "ref").get;
282
+ if (t && t.isReactWarning) return !1;
283
+ }
284
+ return e.ref !== void 0;
285
+ }
286
+ function ye(e) {
287
+ if (W.call(e, "key")) {
288
+ var t = Object.getOwnPropertyDescriptor(e, "key").get;
289
+ if (t && t.isReactWarning) return !1;
290
+ }
291
+ return e.key !== void 0;
292
+ }
293
+ function be(e, t) {
294
+ if (typeof e.ref == "string" && X.current && t && X.current.stateNode !== t) {
295
+ var n = O(X.current.type);
296
+ _e[n] || (y("Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref", O(X.current.type), e.ref), _e[n] = !0);
297
+ }
298
+ }
299
+ function xe(e, t) {
300
+ var n = function() {
301
+ he || (he = !0, y("%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://reactjs.org/link/special-props)", t));
302
+ };
303
+ n.isReactWarning = !0, Object.defineProperty(e, "key", {
304
+ get: n,
305
+ configurable: !0
306
+ });
307
+ }
308
+ function Se(e, t) {
309
+ var n = function() {
310
+ ge || (ge = !0, y("%s: `ref` 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://reactjs.org/link/special-props)", t));
311
+ };
312
+ n.isReactWarning = !0, Object.defineProperty(e, "ref", {
313
+ get: n,
314
+ configurable: !0
315
+ });
316
+ }
317
+ var Ce = function(e, t, r, i, a, o, s) {
318
+ var c = {
319
+ $$typeof: n,
320
+ type: e,
321
+ key: t,
322
+ ref: r,
323
+ props: s,
324
+ _owner: o
325
+ };
326
+ return c._store = {}, Object.defineProperty(c._store, "validated", {
327
+ configurable: !1,
328
+ enumerable: !1,
329
+ writable: !0,
330
+ value: !1
331
+ }), Object.defineProperty(c, "_self", {
332
+ configurable: !1,
333
+ enumerable: !1,
334
+ writable: !1,
335
+ value: i
336
+ }), Object.defineProperty(c, "_source", {
337
+ configurable: !1,
338
+ enumerable: !1,
339
+ writable: !1,
340
+ value: a
341
+ }), Object.freeze && (Object.freeze(c.props), Object.freeze(c)), c;
342
+ };
343
+ function we(e, t, n, r, i) {
344
+ var a, o = {}, s = null, c = null;
345
+ for (a in n !== void 0 && (pe(n), s = "" + n), ye(t) && (pe(t.key), s = "" + t.key), ve(t) && (c = t.ref, be(t, i)), t) W.call(t, a) && !me.hasOwnProperty(a) && (o[a] = t[a]);
346
+ if (e && e.defaultProps) {
347
+ var l = e.defaultProps;
348
+ for (a in l) o[a] === void 0 && (o[a] = l[a]);
349
+ }
350
+ if (s || c) {
351
+ var u = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
352
+ s && xe(o, u), c && Se(o, u);
353
+ }
354
+ return Ce(e, s, c, i, r, X.current, o);
355
+ }
356
+ var Z = v.ReactCurrentOwner, Te = v.ReactDebugCurrentFrame;
357
+ function Q(e) {
358
+ if (e) {
359
+ var t = e._owner, n = U(e.type, e._source, t ? t.type : null);
360
+ Te.setExtraStackFrame(n);
361
+ } else Te.setExtraStackFrame(null);
362
+ }
363
+ var Ee = !1;
364
+ function $(e) {
365
+ return typeof e == "object" && !!e && e.$$typeof === n;
366
+ }
367
+ function De() {
368
+ if (Z.current) {
369
+ var e = O(Z.current.type);
370
+ if (e) return "\n\nCheck the render method of `" + e + "`.";
371
+ }
372
+ return "";
373
+ }
374
+ function Oe(e) {
375
+ if (e !== void 0) {
376
+ var t = e.fileName.replace(/^.*[\\\/]/, ""), n = e.lineNumber;
377
+ return "\n\nCheck your code at " + t + ":" + n + ".";
378
+ }
379
+ return "";
380
+ }
381
+ var ke = {};
382
+ function Ae(e) {
383
+ var t = De();
384
+ if (!t) {
385
+ var n = typeof e == "string" ? e : e.displayName || e.name;
386
+ n && (t = "\n\nCheck the top-level render call using <" + n + ">.");
387
+ }
388
+ return t;
389
+ }
390
+ function je(e, t) {
391
+ if (!(!e._store || e._store.validated || e.key != null)) {
392
+ e._store.validated = !0;
393
+ var n = Ae(t);
394
+ if (!ke[n]) {
395
+ ke[n] = !0;
396
+ var r = "";
397
+ e && e._owner && e._owner !== Z.current && (r = " It was passed a child from " + O(e._owner.type) + "."), Q(e), y("Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.", n, r), Q(null);
398
+ }
399
+ }
400
+ }
401
+ function Me(e, t) {
402
+ if (typeof e == "object") {
403
+ if (J(e)) for (var n = 0; n < e.length; n++) {
404
+ var r = e[n];
405
+ $(r) && je(r, t);
406
+ }
407
+ else if ($(e)) e._store && (e._store.validated = !0);
408
+ else if (e) {
409
+ var i = _(e);
410
+ if (typeof i == "function" && i !== e.entries) for (var a = i.call(e), o; !(o = a.next()).done;) $(o.value) && je(o.value, t);
411
+ }
412
+ }
413
+ }
414
+ function Ne(e) {
415
+ var t = e.type;
416
+ if (!(t == null || typeof t == "string")) {
417
+ var n;
418
+ if (typeof t == "function") n = t.propTypes;
419
+ else if (typeof t == "object" && (t.$$typeof === l || t.$$typeof === f)) n = t.propTypes;
420
+ else return;
421
+ if (n) {
422
+ var r = O(t);
423
+ le(n, e.props, "prop", r, e);
424
+ } else t.PropTypes !== void 0 && !Ee && (Ee = !0, y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", O(t) || "Unknown"));
425
+ typeof t.getDefaultProps == "function" && !t.getDefaultProps.isReactClassApproved && y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
426
+ }
427
+ }
428
+ function Pe(e) {
429
+ for (var t = Object.keys(e.props), n = 0; n < t.length; n++) {
430
+ var r = t[n];
431
+ if (r !== "children" && r !== "key") {
432
+ Q(e), y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", r), Q(null);
433
+ break;
434
+ }
435
+ }
436
+ e.ref !== null && (Q(e), y("Invalid attribute `ref` supplied to `React.Fragment`."), Q(null));
437
+ }
438
+ var Fe = {};
439
+ function Ie(e, t, r, a, o, s) {
440
+ var c = T(e);
441
+ if (!c) {
442
+ var l = "";
443
+ (e === void 0 || typeof e == "object" && e && Object.keys(e).length === 0) && (l += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
444
+ var u = Oe(o);
445
+ u ? l += u : l += De();
446
+ var d;
447
+ e === null ? d = "null" : J(e) ? d = "array" : e !== void 0 && e.$$typeof === n ? (d = "<" + (O(e.type) || "Unknown") + " />", l = " Did you accidentally export a JSX literal instead of a component?") : d = typeof e, y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", d, l);
448
+ }
449
+ var f = we(e, t, r, o, s);
450
+ if (f == null) return f;
451
+ if (c) {
452
+ var p = t.children;
453
+ if (p !== void 0) if (a) if (J(p)) {
454
+ for (var m = 0; m < p.length; m++) Me(p[m], e);
455
+ Object.freeze && Object.freeze(p);
456
+ } else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
457
+ else Me(p, e);
458
+ }
459
+ if (W.call(t, "key")) {
460
+ var h = O(e), g = Object.keys(t).filter(function(e) {
461
+ return e !== "key";
462
+ }), _ = g.length > 0 ? "{key: someKey, " + g.join(": ..., ") + ": ...}" : "{key: someKey}";
463
+ Fe[h + _] || (y("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} />", _, h, g.length > 0 ? "{" + g.join(": ..., ") + ": ...}" : "{}", h), Fe[h + _] = !0);
464
+ }
465
+ return e === i ? Pe(f) : Ne(f), f;
466
+ }
467
+ function Le(e, t, n) {
468
+ return Ie(e, t, n, !0);
469
+ }
470
+ function Re(e, t, n) {
471
+ return Ie(e, t, n, !1);
472
+ }
473
+ var ze = Re, Be = Le;
474
+ e.Fragment = i, e.jsx = ze, e.jsxs = Be;
475
+ })();
476
+ })), E = (/* @__PURE__ */ S(((e, t) => {
477
+ process.env.NODE_ENV === "production" ? t.exports = w() : t.exports = T();
478
+ })))(), D = l(null);
479
+ function O({ children: e }) {
480
+ let { registerHandler: t } = o("basic"), n = d(() => ((e, n) => t(e, n)), [t]), r = d(() => ({ registerHandler: n }), [n]);
481
+ return /* @__PURE__ */ (0, E.jsx)(D.Provider, {
482
+ value: r,
483
+ children: e
484
+ });
19
485
  }
20
- var L = {};
21
- var Ce;
22
- function Er() {
23
- return Ce || (Ce = 1, process.env.NODE_ENV !== "production" && (function() {
24
- var _ = we, p = /* @__PURE__ */ Symbol.for("react.element"), h = /* @__PURE__ */ Symbol.for("react.portal"), E = /* @__PURE__ */ Symbol.for("react.fragment"), C = /* @__PURE__ */ Symbol.for("react.strict_mode"), S = /* @__PURE__ */ Symbol.for("react.profiler"), D = /* @__PURE__ */ Symbol.for("react.provider"), m = /* @__PURE__ */ Symbol.for("react.context"), c = /* @__PURE__ */ Symbol.for("react.forward_ref"), x = /* @__PURE__ */ Symbol.for("react.suspense"), g = /* @__PURE__ */ Symbol.for("react.suspense_list"), b = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), $ = /* @__PURE__ */ Symbol.for("react.offscreen"), Q = Symbol.iterator, ke = "@@iterator";
25
- function De(e) {
26
- if (e === null || typeof e != "object")
27
- return null;
28
- var r = Q && e[Q] || e[ke];
29
- return typeof r == "function" ? r : null;
30
- }
31
- var w = _.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
32
- function f(e) {
33
- {
34
- for (var r = arguments.length, t = new Array(r > 1 ? r - 1 : 0), n = 1; n < r; n++)
35
- t[n - 1] = arguments[n];
36
- Ae("error", e, t);
37
- }
38
- }
39
- function Ae(e, r, t) {
40
- {
41
- var n = w.ReactDebugCurrentFrame, o = n.getStackAddendum();
42
- o !== "" && (r += "%s", t = t.concat([o]));
43
- var u = t.map(function(i) {
44
- return String(i);
45
- });
46
- u.unshift("Warning: " + r), Function.prototype.apply.call(console[e], console, u);
47
- }
48
- }
49
- var Ie = !1, Fe = !1, Le = !1, $e = !1, We = !1, Z;
50
- Z = /* @__PURE__ */ Symbol.for("react.module.reference");
51
- function Ne(e) {
52
- return !!(typeof e == "string" || typeof e == "function" || e === E || e === S || We || e === C || e === x || e === g || $e || e === $ || Ie || Fe || Le || typeof e == "object" && e !== null && (e.$$typeof === T || e.$$typeof === b || e.$$typeof === D || e.$$typeof === m || e.$$typeof === c || // This needs to include all possible module reference object
53
- // types supported by any Flight configuration anywhere since
54
- // we don't know which Flight build this will end up being used
55
- // with.
56
- e.$$typeof === Z || e.getModuleId !== void 0));
57
- }
58
- function Ye(e, r, t) {
59
- var n = e.displayName;
60
- if (n)
61
- return n;
62
- var o = r.displayName || r.name || "";
63
- return o !== "" ? t + "(" + o + ")" : t;
64
- }
65
- function ee(e) {
66
- return e.displayName || "Context";
67
- }
68
- function y(e) {
69
- if (e == null)
70
- return null;
71
- if (typeof e.tag == "number" && f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof e == "function")
72
- return e.displayName || e.name || null;
73
- if (typeof e == "string")
74
- return e;
75
- switch (e) {
76
- case E:
77
- return "Fragment";
78
- case h:
79
- return "Portal";
80
- case S:
81
- return "Profiler";
82
- case C:
83
- return "StrictMode";
84
- case x:
85
- return "Suspense";
86
- case g:
87
- return "SuspenseList";
88
- }
89
- if (typeof e == "object")
90
- switch (e.$$typeof) {
91
- case m:
92
- var r = e;
93
- return ee(r) + ".Consumer";
94
- case D:
95
- var t = e;
96
- return ee(t._context) + ".Provider";
97
- case c:
98
- return Ye(e, e.render, "ForwardRef");
99
- case b:
100
- var n = e.displayName || null;
101
- return n !== null ? n : y(e.type) || "Memo";
102
- case T: {
103
- var o = e, u = o._payload, i = o._init;
104
- try {
105
- return y(i(u));
106
- } catch {
107
- return null;
108
- }
109
- }
110
- }
111
- return null;
112
- }
113
- var P = Object.assign, A = 0, re, te, ne, ae, ie, oe, ue;
114
- function se() {
115
- }
116
- se.__reactDisabledLog = !0;
117
- function Ue() {
118
- {
119
- if (A === 0) {
120
- re = console.log, te = console.info, ne = console.warn, ae = console.error, ie = console.group, oe = console.groupCollapsed, ue = console.groupEnd;
121
- var e = {
122
- configurable: !0,
123
- enumerable: !0,
124
- value: se,
125
- writable: !0
126
- };
127
- Object.defineProperties(console, {
128
- info: e,
129
- log: e,
130
- warn: e,
131
- error: e,
132
- group: e,
133
- groupCollapsed: e,
134
- groupEnd: e
135
- });
136
- }
137
- A++;
138
- }
139
- }
140
- function Me() {
141
- {
142
- if (A--, A === 0) {
143
- var e = {
144
- configurable: !0,
145
- enumerable: !0,
146
- writable: !0
147
- };
148
- Object.defineProperties(console, {
149
- log: P({}, e, {
150
- value: re
151
- }),
152
- info: P({}, e, {
153
- value: te
154
- }),
155
- warn: P({}, e, {
156
- value: ne
157
- }),
158
- error: P({}, e, {
159
- value: ae
160
- }),
161
- group: P({}, e, {
162
- value: ie
163
- }),
164
- groupCollapsed: P({}, e, {
165
- value: oe
166
- }),
167
- groupEnd: P({}, e, {
168
- value: ue
169
- })
170
- });
171
- }
172
- A < 0 && f("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
173
- }
174
- }
175
- var V = w.ReactCurrentDispatcher, H;
176
- function W(e, r, t) {
177
- {
178
- if (H === void 0)
179
- try {
180
- throw Error();
181
- } catch (o) {
182
- var n = o.stack.trim().match(/\n( *(at )?)/);
183
- H = n && n[1] || "";
184
- }
185
- return `
186
- ` + H + e;
187
- }
188
- }
189
- var J = !1, N;
190
- {
191
- var Ve = typeof WeakMap == "function" ? WeakMap : Map;
192
- N = new Ve();
193
- }
194
- function le(e, r) {
195
- if (!e || J)
196
- return "";
197
- {
198
- var t = N.get(e);
199
- if (t !== void 0)
200
- return t;
201
- }
202
- var n;
203
- J = !0;
204
- var o = Error.prepareStackTrace;
205
- Error.prepareStackTrace = void 0;
206
- var u;
207
- u = V.current, V.current = null, Ue();
208
- try {
209
- if (r) {
210
- var i = function() {
211
- throw Error();
212
- };
213
- if (Object.defineProperty(i.prototype, "props", {
214
- set: function() {
215
- throw Error();
216
- }
217
- }), typeof Reflect == "object" && Reflect.construct) {
218
- try {
219
- Reflect.construct(i, []);
220
- } catch (v) {
221
- n = v;
222
- }
223
- Reflect.construct(e, [], i);
224
- } else {
225
- try {
226
- i.call();
227
- } catch (v) {
228
- n = v;
229
- }
230
- e.call(i.prototype);
231
- }
232
- } else {
233
- try {
234
- throw Error();
235
- } catch (v) {
236
- n = v;
237
- }
238
- e();
239
- }
240
- } catch (v) {
241
- if (v && n && typeof v.stack == "string") {
242
- for (var a = v.stack.split(`
243
- `), d = n.stack.split(`
244
- `), s = a.length - 1, l = d.length - 1; s >= 1 && l >= 0 && a[s] !== d[l]; )
245
- l--;
246
- for (; s >= 1 && l >= 0; s--, l--)
247
- if (a[s] !== d[l]) {
248
- if (s !== 1 || l !== 1)
249
- do
250
- if (s--, l--, l < 0 || a[s] !== d[l]) {
251
- var R = `
252
- ` + a[s].replace(" at new ", " at ");
253
- return e.displayName && R.includes("<anonymous>") && (R = R.replace("<anonymous>", e.displayName)), typeof e == "function" && N.set(e, R), R;
254
- }
255
- while (s >= 1 && l >= 0);
256
- break;
257
- }
258
- }
259
- } finally {
260
- J = !1, V.current = u, Me(), Error.prepareStackTrace = o;
261
- }
262
- var k = e ? e.displayName || e.name : "", O = k ? W(k) : "";
263
- return typeof e == "function" && N.set(e, O), O;
264
- }
265
- function He(e, r, t) {
266
- return le(e, !1);
267
- }
268
- function Je(e) {
269
- var r = e.prototype;
270
- return !!(r && r.isReactComponent);
271
- }
272
- function Y(e, r, t) {
273
- if (e == null)
274
- return "";
275
- if (typeof e == "function")
276
- return le(e, Je(e));
277
- if (typeof e == "string")
278
- return W(e);
279
- switch (e) {
280
- case x:
281
- return W("Suspense");
282
- case g:
283
- return W("SuspenseList");
284
- }
285
- if (typeof e == "object")
286
- switch (e.$$typeof) {
287
- case c:
288
- return He(e.render);
289
- case b:
290
- return Y(e.type, r, t);
291
- case T: {
292
- var n = e, o = n._payload, u = n._init;
293
- try {
294
- return Y(u(o), r, t);
295
- } catch {
296
- }
297
- }
298
- }
299
- return "";
300
- }
301
- var I = Object.prototype.hasOwnProperty, ce = {}, fe = w.ReactDebugCurrentFrame;
302
- function U(e) {
303
- if (e) {
304
- var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
305
- fe.setExtraStackFrame(t);
306
- } else
307
- fe.setExtraStackFrame(null);
308
- }
309
- function qe(e, r, t, n, o) {
310
- {
311
- var u = Function.call.bind(I);
312
- for (var i in e)
313
- if (u(e, i)) {
314
- var a = void 0;
315
- try {
316
- if (typeof e[i] != "function") {
317
- var d = Error((n || "React class") + ": " + t + " type `" + i + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof e[i] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
318
- throw d.name = "Invariant Violation", d;
319
- }
320
- a = e[i](r, i, n, t, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
321
- } catch (s) {
322
- a = s;
323
- }
324
- a && !(a instanceof Error) && (U(o), f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", n || "React class", t, i, typeof a), U(null)), a instanceof Error && !(a.message in ce) && (ce[a.message] = !0, U(o), f("Failed %s type: %s", t, a.message), U(null));
325
- }
326
- }
327
- }
328
- var Be = Array.isArray;
329
- function q(e) {
330
- return Be(e);
331
- }
332
- function Ge(e) {
333
- {
334
- var r = typeof Symbol == "function" && Symbol.toStringTag, t = r && e[Symbol.toStringTag] || e.constructor.name || "Object";
335
- return t;
336
- }
337
- }
338
- function Ke(e) {
339
- try {
340
- return de(e), !1;
341
- } catch {
342
- return !0;
343
- }
344
- }
345
- function de(e) {
346
- return "" + e;
347
- }
348
- function ve(e) {
349
- if (Ke(e))
350
- return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Ge(e)), de(e);
351
- }
352
- var pe = w.ReactCurrentOwner, ze = {
353
- key: !0,
354
- ref: !0,
355
- __self: !0,
356
- __source: !0
357
- }, ge, Re;
358
- function Xe(e) {
359
- if (I.call(e, "ref")) {
360
- var r = Object.getOwnPropertyDescriptor(e, "ref").get;
361
- if (r && r.isReactWarning)
362
- return !1;
363
- }
364
- return e.ref !== void 0;
365
- }
366
- function Qe(e) {
367
- if (I.call(e, "key")) {
368
- var r = Object.getOwnPropertyDescriptor(e, "key").get;
369
- if (r && r.isReactWarning)
370
- return !1;
371
- }
372
- return e.key !== void 0;
373
- }
374
- function Ze(e, r) {
375
- typeof e.ref == "string" && pe.current;
376
- }
377
- function er(e, r) {
378
- {
379
- var t = function() {
380
- ge || (ge = !0, f("%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://reactjs.org/link/special-props)", r));
381
- };
382
- t.isReactWarning = !0, Object.defineProperty(e, "key", {
383
- get: t,
384
- configurable: !0
385
- });
386
- }
387
- }
388
- function rr(e, r) {
389
- {
390
- var t = function() {
391
- Re || (Re = !0, f("%s: `ref` 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://reactjs.org/link/special-props)", r));
392
- };
393
- t.isReactWarning = !0, Object.defineProperty(e, "ref", {
394
- get: t,
395
- configurable: !0
396
- });
397
- }
398
- }
399
- var tr = function(e, r, t, n, o, u, i) {
400
- var a = {
401
- // This tag allows us to uniquely identify this as a React Element
402
- $$typeof: p,
403
- // Built-in properties that belong on the element
404
- type: e,
405
- key: r,
406
- ref: t,
407
- props: i,
408
- // Record the component responsible for creating this element.
409
- _owner: u
410
- };
411
- return a._store = {}, Object.defineProperty(a._store, "validated", {
412
- configurable: !1,
413
- enumerable: !1,
414
- writable: !0,
415
- value: !1
416
- }), Object.defineProperty(a, "_self", {
417
- configurable: !1,
418
- enumerable: !1,
419
- writable: !1,
420
- value: n
421
- }), Object.defineProperty(a, "_source", {
422
- configurable: !1,
423
- enumerable: !1,
424
- writable: !1,
425
- value: o
426
- }), Object.freeze && (Object.freeze(a.props), Object.freeze(a)), a;
427
- };
428
- function nr(e, r, t, n, o) {
429
- {
430
- var u, i = {}, a = null, d = null;
431
- t !== void 0 && (ve(t), a = "" + t), Qe(r) && (ve(r.key), a = "" + r.key), Xe(r) && (d = r.ref, Ze(r, o));
432
- for (u in r)
433
- I.call(r, u) && !ze.hasOwnProperty(u) && (i[u] = r[u]);
434
- if (e && e.defaultProps) {
435
- var s = e.defaultProps;
436
- for (u in s)
437
- i[u] === void 0 && (i[u] = s[u]);
438
- }
439
- if (a || d) {
440
- var l = typeof e == "function" ? e.displayName || e.name || "Unknown" : e;
441
- a && er(i, l), d && rr(i, l);
442
- }
443
- return tr(e, a, d, o, n, pe.current, i);
444
- }
445
- }
446
- var B = w.ReactCurrentOwner, _e = w.ReactDebugCurrentFrame;
447
- function j(e) {
448
- if (e) {
449
- var r = e._owner, t = Y(e.type, e._source, r ? r.type : null);
450
- _e.setExtraStackFrame(t);
451
- } else
452
- _e.setExtraStackFrame(null);
453
- }
454
- var G;
455
- G = !1;
456
- function K(e) {
457
- return typeof e == "object" && e !== null && e.$$typeof === p;
458
- }
459
- function Ee() {
460
- {
461
- if (B.current) {
462
- var e = y(B.current.type);
463
- if (e)
464
- return `
465
-
466
- Check the render method of \`` + e + "`.";
467
- }
468
- return "";
469
- }
470
- }
471
- function ar(e) {
472
- return "";
473
- }
474
- var he = {};
475
- function ir(e) {
476
- {
477
- var r = Ee();
478
- if (!r) {
479
- var t = typeof e == "string" ? e : e.displayName || e.name;
480
- t && (r = `
481
-
482
- Check the top-level render call using <` + t + ">.");
483
- }
484
- return r;
485
- }
486
- }
487
- function be(e, r) {
488
- {
489
- if (!e._store || e._store.validated || e.key != null)
490
- return;
491
- e._store.validated = !0;
492
- var t = ir(r);
493
- if (he[t])
494
- return;
495
- he[t] = !0;
496
- var n = "";
497
- e && e._owner && e._owner !== B.current && (n = " It was passed a child from " + y(e._owner.type) + "."), j(e), f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', t, n), j(null);
498
- }
499
- }
500
- function ye(e, r) {
501
- {
502
- if (typeof e != "object")
503
- return;
504
- if (q(e))
505
- for (var t = 0; t < e.length; t++) {
506
- var n = e[t];
507
- K(n) && be(n, r);
508
- }
509
- else if (K(e))
510
- e._store && (e._store.validated = !0);
511
- else if (e) {
512
- var o = De(e);
513
- if (typeof o == "function" && o !== e.entries)
514
- for (var u = o.call(e), i; !(i = u.next()).done; )
515
- K(i.value) && be(i.value, r);
516
- }
517
- }
518
- }
519
- function or(e) {
520
- {
521
- var r = e.type;
522
- if (r == null || typeof r == "string")
523
- return;
524
- var t;
525
- if (typeof r == "function")
526
- t = r.propTypes;
527
- else if (typeof r == "object" && (r.$$typeof === c || // Note: Memo only checks outer props here.
528
- // Inner props are checked in the reconciler.
529
- r.$$typeof === b))
530
- t = r.propTypes;
531
- else
532
- return;
533
- if (t) {
534
- var n = y(r);
535
- qe(t, e.props, "prop", n, e);
536
- } else if (r.PropTypes !== void 0 && !G) {
537
- G = !0;
538
- var o = y(r);
539
- f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", o || "Unknown");
540
- }
541
- typeof r.getDefaultProps == "function" && !r.getDefaultProps.isReactClassApproved && f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
542
- }
543
- }
544
- function ur(e) {
545
- {
546
- for (var r = Object.keys(e.props), t = 0; t < r.length; t++) {
547
- var n = r[t];
548
- if (n !== "children" && n !== "key") {
549
- j(e), f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", n), j(null);
550
- break;
551
- }
552
- }
553
- e.ref !== null && (j(e), f("Invalid attribute `ref` supplied to `React.Fragment`."), j(null));
554
- }
555
- }
556
- var me = {};
557
- function Te(e, r, t, n, o, u) {
558
- {
559
- var i = Ne(e);
560
- if (!i) {
561
- var a = "";
562
- (e === void 0 || typeof e == "object" && e !== null && Object.keys(e).length === 0) && (a += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
563
- var d = ar();
564
- d ? a += d : a += Ee();
565
- var s;
566
- e === null ? s = "null" : q(e) ? s = "array" : e !== void 0 && e.$$typeof === p ? (s = "<" + (y(e.type) || "Unknown") + " />", a = " Did you accidentally export a JSX literal instead of a component?") : s = typeof e, f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", s, a);
567
- }
568
- var l = nr(e, r, t, o, u);
569
- if (l == null)
570
- return l;
571
- if (i) {
572
- var R = r.children;
573
- if (R !== void 0)
574
- if (n)
575
- if (q(R)) {
576
- for (var k = 0; k < R.length; k++)
577
- ye(R[k], e);
578
- Object.freeze && Object.freeze(R);
579
- } else
580
- f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
581
- else
582
- ye(R, e);
583
- }
584
- if (I.call(r, "key")) {
585
- var O = y(e), v = Object.keys(r).filter(function(vr) {
586
- return vr !== "key";
587
- }), z = v.length > 0 ? "{key: someKey, " + v.join(": ..., ") + ": ...}" : "{key: someKey}";
588
- if (!me[O + z]) {
589
- var dr = v.length > 0 ? "{" + v.join(": ..., ") + ": ...}" : "{}";
590
- f(`A props object containing a "key" prop is being spread into JSX:
591
- let props = %s;
592
- <%s {...props} />
593
- React keys must be passed directly to JSX without using spread:
594
- let props = %s;
595
- <%s key={someKey} {...props} />`, z, O, dr, O), me[O + z] = !0;
596
- }
597
- }
598
- return e === E ? ur(l) : or(l), l;
599
- }
600
- }
601
- function sr(e, r, t) {
602
- return Te(e, r, t, !0);
603
- }
604
- function lr(e, r, t) {
605
- return Te(e, r, t, !1);
606
- }
607
- var cr = lr, fr = sr;
608
- L.Fragment = E, L.jsx = cr, L.jsxs = fr;
609
- })()), L;
610
- }
611
- var Se;
612
- function hr() {
613
- return Se || (Se = 1, process.env.NODE_ENV === "production" ? M.exports = _r() : M.exports = Er()), M.exports;
486
+ function k(e) {
487
+ return /* @__PURE__ */ (0, E.jsx)(n, {
488
+ ...e,
489
+ children: /* @__PURE__ */ (0, E.jsx)(O, { children: e.children })
490
+ });
614
491
  }
615
- var X = hr();
616
- const je = gr(null);
617
- function br({ children: _ }) {
618
- const { registerHandler: p } = xe("basic"), h = Pe(() => ((C, S) => p(
619
- C,
620
- S
621
- )), [p]), E = Pe(
622
- () => ({ registerHandler: h }),
623
- [h]
624
- );
625
- return /* @__PURE__ */ X.jsx(je.Provider, { value: E, children: _ });
492
+ function A(e = "basic") {
493
+ let t = o(e), n = u(D);
494
+ if (!n) throw Error("useTrackerPluginContext must be used within TrackerPluginProvider (Tracker service layer). Use PluginProvider only with usePluginContext, or wrap the app with TrackerPluginProvider.");
495
+ let r = t.slot;
496
+ return e === "full" ? {
497
+ ...t,
498
+ slot: r,
499
+ registerHandler: n.registerHandler,
500
+ slotContext: t.slotContext
501
+ } : {
502
+ ...t,
503
+ slot: r,
504
+ registerHandler: n.registerHandler
505
+ };
626
506
  }
627
- function Tr(_) {
628
- return /* @__PURE__ */ X.jsx(pr, { ..._, children: /* @__PURE__ */ X.jsx(br, { children: _.children }) });
629
- }
630
- function Pr(_ = "basic") {
631
- const p = xe(_), h = Rr(je);
632
- if (!h)
633
- throw new Error(
634
- "useTrackerPluginContext must be used within TrackerPluginProvider (Tracker service layer). Use PluginProvider only with usePluginContext, or wrap the app with TrackerPluginProvider."
635
- );
636
- const E = p.slot;
637
- return _ === "full" ? {
638
- ...p,
639
- slot: E,
640
- registerHandler: h.registerHandler,
641
- slotContext: p.slotContext
642
- } : {
643
- ...p,
644
- slot: E,
645
- registerHandler: h.registerHandler
646
- };
647
- }
648
- export {
649
- Fr as METHOD_NOT_SUPPORTED,
650
- Lr as MISSING_REQUIRED_SCOPE,
651
- $r as PLUGIN_ID_IS_NOT_CORRECT,
652
- Wr as PLUGIN_ID_OR_SLOT_NOT_PROVIDED,
653
- Nr as PluginActionError,
654
- Sr as PluginError,
655
- xr as PluginLoader,
656
- Tr as TrackerPluginProvider,
657
- Yr as UNKNOWN_ERROR,
658
- Ur as VALIDATION_ERROR,
659
- Mr as getField,
660
- Vr as getLocalizedString,
661
- Hr as hostApi,
662
- Jr as trackerApi,
663
- qr as uiApi,
664
- wr as useConfirm,
665
- jr as useLanguage,
666
- kr as useLocalizedString,
667
- Dr as useTheme,
668
- Ar as useToaster,
669
- Pr as useTrackerPluginContext
670
- };
671
- //# sourceMappingURL=index.mjs.map
507
+ //#endregion
508
+ export { f as METHOD_NOT_SUPPORTED, p as MISSING_REQUIRED_SCOPE, m as PLUGIN_ID_IS_NOT_CORRECT, h as PLUGIN_ID_OR_SLOT_NOT_PROVIDED, g as PluginActionError, e as PluginError, t as PluginLoader, k as TrackerPluginProvider, _ as UNKNOWN_ERROR, v as VALIDATION_ERROR, y as getField, ee as getLocalizedString, b as hostApi, x as storageApi, te as trackerApi, ne as uiApi, r as useConfirm, i as useLanguage, a as useLocalizedString, s as useTheme, c as useToaster, A as useTrackerPluginContext };
509
+
510
+ //# sourceMappingURL=index.mjs.map