@sisense/sdk-ui-vue 2.25.0 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +1 -1
- package/dist/ai.js +80 -77
- package/dist/index.cjs +1 -1
- package/dist/index.js +310 -295
- package/dist/packages/sdk-ui-vue/src/components/widgets/index.d.ts +0 -1
- package/dist/packages/sdk-ui-vue/src/composables/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-custom-widgets.d.ts +10 -1
- package/dist/packages/sdk-ui-vue/src/composables/use-get-data-source-dimensions.d.ts +42 -0
- package/dist/use-tracking-04bcc493.js +512 -0
- package/dist/{use-tracking-52aab296.cjs → use-tracking-a5140061.cjs} +1 -1
- package/package.json +3 -3
- package/dist/packages/sdk-ui-vue/src/components/widgets/table-widget.d.ts +0 -57
- package/dist/packages/sdk-ui-vue/src/providers/sisense-context-provider/sisense-context-provider.d.ts +0 -205
- package/dist/use-tracking-9217c553.js +0 -503
|
@@ -1,503 +0,0 @@
|
|
|
1
|
-
import { getDefaultThemeSettings as rt, getThemeSettingsByOid as nt, createClientApplication as ot, TabberButtonsWidget as at, DataObserver as j, CustomSisenseContextProvider as st, CustomThemeProvider as ct, CustomWidgetsProviderAdapter as it, CustomPluginContextProvider as ut, ComponentAdapter as K, createWrapperElement as ft, trackHook as pt } from "@sisense/sdk-ui-preact";
|
|
2
|
-
import { isRef as h, toRaw as M, toValue as lt, inject as T, ref as i, defineComponent as O, watchEffect as l, provide as m, computed as gt, createVNode as dt, onBeforeUnmount as V, h as x, isReactive as bt } from "vue";
|
|
3
|
-
function yt(t, e) {
|
|
4
|
-
for (var r = -1, n = t == null ? 0 : t.length, o = Array(n); ++r < n; )
|
|
5
|
-
o[r] = e(t[r], r, t);
|
|
6
|
-
return o;
|
|
7
|
-
}
|
|
8
|
-
function mt(t, e) {
|
|
9
|
-
return yt(e, function(r) {
|
|
10
|
-
return t[r];
|
|
11
|
-
});
|
|
12
|
-
}
|
|
13
|
-
function vt(t, e) {
|
|
14
|
-
for (var r = -1, n = Array(t); ++r < t; )
|
|
15
|
-
n[r] = e(r);
|
|
16
|
-
return n;
|
|
17
|
-
}
|
|
18
|
-
var jt = typeof global == "object" && global && global.Object === Object && global;
|
|
19
|
-
const U = jt;
|
|
20
|
-
var Tt = typeof self == "object" && self && self.Object === Object && self, At = U || Tt || Function("return this")();
|
|
21
|
-
const k = At;
|
|
22
|
-
var ht = k.Symbol;
|
|
23
|
-
const v = ht;
|
|
24
|
-
var N = Object.prototype, xt = N.hasOwnProperty, Ot = N.toString, g = v ? v.toStringTag : void 0;
|
|
25
|
-
function Ct(t) {
|
|
26
|
-
var e = xt.call(t, g), r = t[g];
|
|
27
|
-
try {
|
|
28
|
-
t[g] = void 0;
|
|
29
|
-
var n = !0;
|
|
30
|
-
} catch {
|
|
31
|
-
}
|
|
32
|
-
var o = Ot.call(t);
|
|
33
|
-
return n && (e ? t[g] = r : delete t[g]), o;
|
|
34
|
-
}
|
|
35
|
-
var St = Object.prototype, wt = St.toString;
|
|
36
|
-
function Pt(t) {
|
|
37
|
-
return wt.call(t);
|
|
38
|
-
}
|
|
39
|
-
var $t = "[object Null]", Et = "[object Undefined]", $ = v ? v.toStringTag : void 0;
|
|
40
|
-
function C(t) {
|
|
41
|
-
return t == null ? t === void 0 ? Et : $t : $ && $ in Object(t) ? Ct(t) : Pt(t);
|
|
42
|
-
}
|
|
43
|
-
function S(t) {
|
|
44
|
-
return t != null && typeof t == "object";
|
|
45
|
-
}
|
|
46
|
-
var Bt = "[object Arguments]";
|
|
47
|
-
function E(t) {
|
|
48
|
-
return S(t) && C(t) == Bt;
|
|
49
|
-
}
|
|
50
|
-
var _ = Object.prototype, Rt = _.hasOwnProperty, Ft = _.propertyIsEnumerable, Dt = E(function() {
|
|
51
|
-
return arguments;
|
|
52
|
-
}()) ? E : function(t) {
|
|
53
|
-
return S(t) && Rt.call(t, "callee") && !Ft.call(t, "callee");
|
|
54
|
-
};
|
|
55
|
-
const It = Dt;
|
|
56
|
-
var Wt = Array.isArray;
|
|
57
|
-
const Kt = Wt;
|
|
58
|
-
function Mt() {
|
|
59
|
-
return !1;
|
|
60
|
-
}
|
|
61
|
-
var G = typeof exports == "object" && exports && !exports.nodeType && exports, B = G && typeof module == "object" && module && !module.nodeType && module, Vt = B && B.exports === G, R = Vt ? k.Buffer : void 0, Ut = R ? R.isBuffer : void 0, kt = Ut || Mt;
|
|
62
|
-
const Nt = kt;
|
|
63
|
-
var _t = 9007199254740991, Gt = /^(?:0|[1-9]\d*)$/;
|
|
64
|
-
function Lt(t, e) {
|
|
65
|
-
var r = typeof t;
|
|
66
|
-
return e = e ?? _t, !!e && (r == "number" || r != "symbol" && Gt.test(t)) && t > -1 && t % 1 == 0 && t < e;
|
|
67
|
-
}
|
|
68
|
-
var Ht = 9007199254740991;
|
|
69
|
-
function L(t) {
|
|
70
|
-
return typeof t == "number" && t > -1 && t % 1 == 0 && t <= Ht;
|
|
71
|
-
}
|
|
72
|
-
var qt = "[object Arguments]", zt = "[object Array]", Xt = "[object Boolean]", Jt = "[object Date]", Qt = "[object Error]", Yt = "[object Function]", Zt = "[object Map]", te = "[object Number]", ee = "[object Object]", re = "[object RegExp]", ne = "[object Set]", oe = "[object String]", ae = "[object WeakMap]", se = "[object ArrayBuffer]", ce = "[object DataView]", ie = "[object Float32Array]", ue = "[object Float64Array]", fe = "[object Int8Array]", pe = "[object Int16Array]", le = "[object Int32Array]", ge = "[object Uint8Array]", de = "[object Uint8ClampedArray]", be = "[object Uint16Array]", ye = "[object Uint32Array]", a = {};
|
|
73
|
-
a[ie] = a[ue] = a[fe] = a[pe] = a[le] = a[ge] = a[de] = a[be] = a[ye] = !0;
|
|
74
|
-
a[qt] = a[zt] = a[se] = a[Xt] = a[ce] = a[Jt] = a[Qt] = a[Yt] = a[Zt] = a[te] = a[ee] = a[re] = a[ne] = a[oe] = a[ae] = !1;
|
|
75
|
-
function me(t) {
|
|
76
|
-
return S(t) && L(t.length) && !!a[C(t)];
|
|
77
|
-
}
|
|
78
|
-
function ve(t) {
|
|
79
|
-
return function(e) {
|
|
80
|
-
return t(e);
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
var H = typeof exports == "object" && exports && !exports.nodeType && exports, d = H && typeof module == "object" && module && !module.nodeType && module, je = d && d.exports === H, A = je && U.process, Te = function() {
|
|
84
|
-
try {
|
|
85
|
-
var t = d && d.require && d.require("util").types;
|
|
86
|
-
return t || A && A.binding && A.binding("util");
|
|
87
|
-
} catch {
|
|
88
|
-
}
|
|
89
|
-
}();
|
|
90
|
-
const F = Te;
|
|
91
|
-
var D = F && F.isTypedArray, Ae = D ? ve(D) : me;
|
|
92
|
-
const he = Ae;
|
|
93
|
-
var xe = Object.prototype, Oe = xe.hasOwnProperty;
|
|
94
|
-
function Ce(t, e) {
|
|
95
|
-
var r = Kt(t), n = !r && It(t), o = !r && !n && Nt(t), s = !r && !n && !o && he(t), c = r || n || o || s, f = c ? vt(t.length, String) : [], b = f.length;
|
|
96
|
-
for (var u in t)
|
|
97
|
-
(e || Oe.call(t, u)) && !(c && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
98
|
-
(u == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
99
|
-
o && (u == "offset" || u == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
|
|
100
|
-
s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || // Skip index properties.
|
|
101
|
-
Lt(u, b))) && f.push(u);
|
|
102
|
-
return f;
|
|
103
|
-
}
|
|
104
|
-
var Se = Object.prototype;
|
|
105
|
-
function we(t) {
|
|
106
|
-
var e = t && t.constructor, r = typeof e == "function" && e.prototype || Se;
|
|
107
|
-
return t === r;
|
|
108
|
-
}
|
|
109
|
-
function Pe(t, e) {
|
|
110
|
-
return function(r) {
|
|
111
|
-
return t(e(r));
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
var $e = Pe(Object.keys, Object);
|
|
115
|
-
const Ee = $e;
|
|
116
|
-
var Be = Object.prototype, Re = Be.hasOwnProperty;
|
|
117
|
-
function Fe(t) {
|
|
118
|
-
if (!we(t))
|
|
119
|
-
return Ee(t);
|
|
120
|
-
var e = [];
|
|
121
|
-
for (var r in Object(t))
|
|
122
|
-
Re.call(t, r) && r != "constructor" && e.push(r);
|
|
123
|
-
return e;
|
|
124
|
-
}
|
|
125
|
-
function De(t) {
|
|
126
|
-
var e = typeof t;
|
|
127
|
-
return t != null && (e == "object" || e == "function");
|
|
128
|
-
}
|
|
129
|
-
var Ie = "[object AsyncFunction]", We = "[object Function]", Ke = "[object GeneratorFunction]", Me = "[object Proxy]";
|
|
130
|
-
function Ve(t) {
|
|
131
|
-
if (!De(t))
|
|
132
|
-
return !1;
|
|
133
|
-
var e = C(t);
|
|
134
|
-
return e == We || e == Ke || e == Ie || e == Me;
|
|
135
|
-
}
|
|
136
|
-
function Ue(t) {
|
|
137
|
-
return t != null && L(t.length) && !Ve(t);
|
|
138
|
-
}
|
|
139
|
-
function ke(t) {
|
|
140
|
-
return Ue(t) ? Ce(t) : Fe(t);
|
|
141
|
-
}
|
|
142
|
-
function Ne(t) {
|
|
143
|
-
return t == null ? [] : mt(t, ke(t));
|
|
144
|
-
}
|
|
145
|
-
function q(t) {
|
|
146
|
-
return t !== null && !Array.isArray(t) && typeof t == "object";
|
|
147
|
-
}
|
|
148
|
-
function I(t) {
|
|
149
|
-
return h(t) ? M(lt(t)) : t;
|
|
150
|
-
}
|
|
151
|
-
function er(t) {
|
|
152
|
-
const e = I(t);
|
|
153
|
-
return Object.fromEntries(
|
|
154
|
-
Object.entries(e).map(([r, n]) => [r, I(n)])
|
|
155
|
-
);
|
|
156
|
-
}
|
|
157
|
-
function rr(...t) {
|
|
158
|
-
return t.map((e) => h(e) ? [e] : q(e) ? Ne(e).filter(h) : []).flat();
|
|
159
|
-
}
|
|
160
|
-
const W = (t) => {
|
|
161
|
-
if (typeof t == "object" && t !== null) {
|
|
162
|
-
if (typeof Object.getPrototypeOf == "function") {
|
|
163
|
-
const e = Object.getPrototypeOf(t);
|
|
164
|
-
return e === Object.prototype || e === null;
|
|
165
|
-
}
|
|
166
|
-
return Object.prototype.toString.call(t) === "[object Object]";
|
|
167
|
-
}
|
|
168
|
-
return !1;
|
|
169
|
-
}, p = (...t) => t.reduce((e, r) => {
|
|
170
|
-
if (Array.isArray(r))
|
|
171
|
-
throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");
|
|
172
|
-
return Object.keys(r).forEach((n) => {
|
|
173
|
-
["__proto__", "constructor", "prototype"].includes(n) || (Array.isArray(e[n]) && Array.isArray(r[n]) ? e[n] = p.options.mergeArrays ? Array.from(new Set(e[n].concat(r[n]))) : r[n] : W(e[n]) && W(r[n]) ? e[n] = p(e[n], r[n]) : e[n] = r[n]);
|
|
174
|
-
}), e;
|
|
175
|
-
}, {}), z = {
|
|
176
|
-
mergeArrays: !0
|
|
177
|
-
};
|
|
178
|
-
p.options = z;
|
|
179
|
-
p.withOptions = (t, ...e) => {
|
|
180
|
-
p.options = Object.assign({ mergeArrays: !0 }, t);
|
|
181
|
-
const r = p(...e);
|
|
182
|
-
return p.options = z, r;
|
|
183
|
-
};
|
|
184
|
-
const y = {
|
|
185
|
-
isInitialized: !1,
|
|
186
|
-
app: void 0,
|
|
187
|
-
tracking: {
|
|
188
|
-
enabled: !0,
|
|
189
|
-
packageName: "sdk-ui-vue"
|
|
190
|
-
},
|
|
191
|
-
errorBoundary: {
|
|
192
|
-
showErrorBox: !0
|
|
193
|
-
}
|
|
194
|
-
}, X = Symbol("sisenseContextKey"), w = () => T(
|
|
195
|
-
X,
|
|
196
|
-
() => i(y),
|
|
197
|
-
!0
|
|
198
|
-
), J = Symbol("pluginsContextKey"), _e = () => T(J, () => i([]), !0), Q = Symbol("themeContextConfigKey"), Y = () => T(Q, () => i(rt()), !0), Ge = O({
|
|
199
|
-
props: {
|
|
200
|
-
theme: [Object, String],
|
|
201
|
-
/**
|
|
202
|
-
* @internal
|
|
203
|
-
*/
|
|
204
|
-
skipTracking: Boolean
|
|
205
|
-
},
|
|
206
|
-
setup(t, { slots: e }) {
|
|
207
|
-
const r = Y(), n = w(), o = i(r == null ? void 0 : r.value);
|
|
208
|
-
return l(async () => {
|
|
209
|
-
const { theme: s = {} } = t, { app: c } = n.value, f = typeof s == "string";
|
|
210
|
-
let b = s;
|
|
211
|
-
if (f && c)
|
|
212
|
-
try {
|
|
213
|
-
b = await nt(s, c.httpClient);
|
|
214
|
-
} catch (u) {
|
|
215
|
-
console.error("Vue ThemeProvider failed to fetch theme by id:", u);
|
|
216
|
-
}
|
|
217
|
-
o.value = p.withOptions(
|
|
218
|
-
{ mergeArrays: !1 },
|
|
219
|
-
r == null ? void 0 : r.value,
|
|
220
|
-
b
|
|
221
|
-
);
|
|
222
|
-
}), m(Q, o), () => {
|
|
223
|
-
var s;
|
|
224
|
-
return (s = e.default) == null ? void 0 : s.call(e);
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
}), nr = /* @__PURE__ */ O({
|
|
228
|
-
props: {
|
|
229
|
-
/**
|
|
230
|
-
* {@inheritDoc @sisense/sdk-ui!SisenseContextProviderProps.defaultDataSource}
|
|
231
|
-
*
|
|
232
|
-
* @category Sisense App
|
|
233
|
-
*/
|
|
234
|
-
defaultDataSource: [String, Object],
|
|
235
|
-
/**
|
|
236
|
-
* {@inheritDoc @sisense/sdk-ui!SisenseContextProviderProps.url}
|
|
237
|
-
*
|
|
238
|
-
* @category Sisense App
|
|
239
|
-
*/
|
|
240
|
-
url: {
|
|
241
|
-
type: String,
|
|
242
|
-
required: !0
|
|
243
|
-
},
|
|
244
|
-
/**
|
|
245
|
-
* {@inheritDoc @sisense/sdk-ui!SisenseContextProviderProps.ssoEnabled}
|
|
246
|
-
*
|
|
247
|
-
* @category Sisense Authentication
|
|
248
|
-
*/
|
|
249
|
-
ssoEnabled: Boolean,
|
|
250
|
-
/**
|
|
251
|
-
* {@inheritDoc @sisense/sdk-ui!SisenseContextProviderProps.token}
|
|
252
|
-
*
|
|
253
|
-
* @category Sisense Authentication
|
|
254
|
-
*/
|
|
255
|
-
token: String,
|
|
256
|
-
/**
|
|
257
|
-
* {@inheritDoc @sisense/sdk-ui!SisenseContextProviderProps.wat}
|
|
258
|
-
*
|
|
259
|
-
* @category Sisense Authentication
|
|
260
|
-
*/
|
|
261
|
-
wat: String,
|
|
262
|
-
/**
|
|
263
|
-
* {@inheritDoc @sisense/sdk-ui!SisenseContextProviderProps.appConfig}
|
|
264
|
-
*
|
|
265
|
-
* @category Sisense App
|
|
266
|
-
*/
|
|
267
|
-
appConfig: Object,
|
|
268
|
-
/**
|
|
269
|
-
* {@inheritDoc @sisense/sdk-ui!SisenseContextProviderProps.plugins}
|
|
270
|
-
*
|
|
271
|
-
* @category Sisense App
|
|
272
|
-
* @internal
|
|
273
|
-
*/
|
|
274
|
-
plugins: {
|
|
275
|
-
type: Array,
|
|
276
|
-
default: () => []
|
|
277
|
-
},
|
|
278
|
-
/**
|
|
279
|
-
* {@inheritDoc @sisense/sdk-ui!SisenseContextProviderProps.ssoMaxAuthRedirectAttempts}
|
|
280
|
-
*
|
|
281
|
-
* @category Sisense Authentication
|
|
282
|
-
* @alpha
|
|
283
|
-
*/
|
|
284
|
-
ssoMaxAuthRedirectAttempts: Number,
|
|
285
|
-
/**
|
|
286
|
-
* {@inheritDoc @sisense/sdk-ui!SisenseContextProviderProps.ssoRedirectAttemptsTtlMs}
|
|
287
|
-
*
|
|
288
|
-
* @category Sisense Authentication
|
|
289
|
-
* @alpha
|
|
290
|
-
*/
|
|
291
|
-
ssoRedirectAttemptsTtlMs: Number,
|
|
292
|
-
/**
|
|
293
|
-
* @internal
|
|
294
|
-
*/
|
|
295
|
-
showRuntimeErrors: {
|
|
296
|
-
type: Boolean,
|
|
297
|
-
default: y.errorBoundary.showErrorBox
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
setup(t, {
|
|
301
|
-
slots: e
|
|
302
|
-
}) {
|
|
303
|
-
var o, s;
|
|
304
|
-
const r = i({
|
|
305
|
-
...y,
|
|
306
|
-
isInitialized: !0,
|
|
307
|
-
errorBoundary: {
|
|
308
|
-
showErrorBox: t.showRuntimeErrors ?? !0
|
|
309
|
-
},
|
|
310
|
-
tracking: {
|
|
311
|
-
...y.tracking,
|
|
312
|
-
enabled: ((s = (o = t.appConfig) == null ? void 0 : o.trackingConfig) == null ? void 0 : s.enabled) ?? !0
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
ot({
|
|
316
|
-
...t,
|
|
317
|
-
packageName: "sdk-ui-vue"
|
|
318
|
-
}).then((c) => {
|
|
319
|
-
r.value = {
|
|
320
|
-
...r.value,
|
|
321
|
-
app: c
|
|
322
|
-
};
|
|
323
|
-
}), m(X, r);
|
|
324
|
-
const n = gt(() => t.plugins ?? []);
|
|
325
|
-
return m(J, n), () => {
|
|
326
|
-
var c;
|
|
327
|
-
return dt(Ge, {
|
|
328
|
-
theme: (c = r.value.app) == null ? void 0 : c.settings.serverThemeSettings
|
|
329
|
-
}, {
|
|
330
|
-
default: () => {
|
|
331
|
-
var f;
|
|
332
|
-
return [(f = e.default) == null ? void 0 : f.call(e)];
|
|
333
|
-
}
|
|
334
|
-
});
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
}), Z = {
|
|
338
|
-
customWidgetsMap: /* @__PURE__ */ new Map([
|
|
339
|
-
["tabber-buttons", at]
|
|
340
|
-
])
|
|
341
|
-
}, tt = Symbol("customWidgetsContextKey"), Le = () => T(
|
|
342
|
-
tt,
|
|
343
|
-
() => i(Z),
|
|
344
|
-
!0
|
|
345
|
-
), or = O({
|
|
346
|
-
setup(t, { slots: e }) {
|
|
347
|
-
return m(tt, i(Z)), () => {
|
|
348
|
-
var r;
|
|
349
|
-
return (r = e.default) == null ? void 0 : r.call(e);
|
|
350
|
-
};
|
|
351
|
-
}
|
|
352
|
-
}), He = () => {
|
|
353
|
-
const t = w(), e = new j({
|
|
354
|
-
context: t.value
|
|
355
|
-
});
|
|
356
|
-
return l(() => {
|
|
357
|
-
e.setValue({ context: t.value });
|
|
358
|
-
}), {
|
|
359
|
-
propsObserver: e,
|
|
360
|
-
providerComponent: st
|
|
361
|
-
};
|
|
362
|
-
}, qe = () => {
|
|
363
|
-
const t = {
|
|
364
|
-
skipTracking: !0
|
|
365
|
-
}, e = Y(), r = new j({
|
|
366
|
-
context: {
|
|
367
|
-
...t,
|
|
368
|
-
...e.value && {
|
|
369
|
-
themeSettings: e == null ? void 0 : e.value
|
|
370
|
-
}
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
return l(() => {
|
|
374
|
-
r.setValue({
|
|
375
|
-
context: {
|
|
376
|
-
...t,
|
|
377
|
-
...e.value && {
|
|
378
|
-
themeSettings: e.value
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
});
|
|
382
|
-
}), {
|
|
383
|
-
propsObserver: r,
|
|
384
|
-
providerComponent: ct
|
|
385
|
-
};
|
|
386
|
-
}, ze = () => {
|
|
387
|
-
const t = Le(), e = new j({
|
|
388
|
-
context: t.value
|
|
389
|
-
});
|
|
390
|
-
return l(() => {
|
|
391
|
-
e.setValue({
|
|
392
|
-
context: t.value
|
|
393
|
-
});
|
|
394
|
-
}), {
|
|
395
|
-
propsObserver: e,
|
|
396
|
-
providerComponent: it
|
|
397
|
-
};
|
|
398
|
-
}, Xe = () => {
|
|
399
|
-
const t = _e(), e = new j({
|
|
400
|
-
context: { plugins: t.value }
|
|
401
|
-
});
|
|
402
|
-
return l(() => {
|
|
403
|
-
e.setValue({ context: { plugins: t.value } });
|
|
404
|
-
}), {
|
|
405
|
-
propsObserver: e,
|
|
406
|
-
providerComponent: ut
|
|
407
|
-
};
|
|
408
|
-
};
|
|
409
|
-
function et() {
|
|
410
|
-
return [
|
|
411
|
-
Xe(),
|
|
412
|
-
ze(),
|
|
413
|
-
He(),
|
|
414
|
-
qe()
|
|
415
|
-
];
|
|
416
|
-
}
|
|
417
|
-
function Je(t) {
|
|
418
|
-
return bt(t) ? M(t) : t;
|
|
419
|
-
}
|
|
420
|
-
function P(t) {
|
|
421
|
-
const e = Je(t);
|
|
422
|
-
for (const r in e) {
|
|
423
|
-
const n = e[r];
|
|
424
|
-
!q(n) && !Array.isArray(n) || (e[r] = P(n));
|
|
425
|
-
}
|
|
426
|
-
return e;
|
|
427
|
-
}
|
|
428
|
-
const ar = (t, e, r = et()) => {
|
|
429
|
-
if (!e)
|
|
430
|
-
return null;
|
|
431
|
-
const n = i(null), o = new K(t, r);
|
|
432
|
-
return V(() => {
|
|
433
|
-
o.destroy();
|
|
434
|
-
}), () => (n.value && o.render(n.value, P(e)), x("div", { ref: n, style: "width: 100%; height: 100%" }));
|
|
435
|
-
}, sr = (t, e, r, n = et()) => {
|
|
436
|
-
const o = i(), s = i(), c = new K(t, n);
|
|
437
|
-
return V(() => {
|
|
438
|
-
c.destroy();
|
|
439
|
-
}), () => {
|
|
440
|
-
if (o.value && s.value) {
|
|
441
|
-
const f = ft(s.value);
|
|
442
|
-
c.render(o.value, { ...P(e), children: f });
|
|
443
|
-
}
|
|
444
|
-
return [
|
|
445
|
-
x("div", { ref: o }),
|
|
446
|
-
x("div", { ref: s }, r.default ? r.default() : [])
|
|
447
|
-
];
|
|
448
|
-
};
|
|
449
|
-
};
|
|
450
|
-
function Qe(t, e) {
|
|
451
|
-
Object.assign(t.value, e);
|
|
452
|
-
}
|
|
453
|
-
function Ye(t) {
|
|
454
|
-
const e = i(t);
|
|
455
|
-
function r(n) {
|
|
456
|
-
typeof n == "object" && typeof e.value == "object" ? Qe(e, n) : e.value = n;
|
|
457
|
-
}
|
|
458
|
-
return [e, r];
|
|
459
|
-
}
|
|
460
|
-
function cr(t, e) {
|
|
461
|
-
const [r, n] = Ye(e);
|
|
462
|
-
return [r, (s) => {
|
|
463
|
-
const c = t(r.value, s);
|
|
464
|
-
n(c);
|
|
465
|
-
}];
|
|
466
|
-
}
|
|
467
|
-
const ir = (t) => {
|
|
468
|
-
const e = i(!1), r = w(), n = () => {
|
|
469
|
-
const { app: o } = r.value;
|
|
470
|
-
if (!o || e.value)
|
|
471
|
-
return null;
|
|
472
|
-
try {
|
|
473
|
-
pt(t, "sdk-ui-vue", o, () => e.value = !0);
|
|
474
|
-
} catch (s) {
|
|
475
|
-
console.error("An error occurred when calling the trackHook", s);
|
|
476
|
-
}
|
|
477
|
-
};
|
|
478
|
-
return l(() => {
|
|
479
|
-
n();
|
|
480
|
-
}), { hasTrackedRef: e };
|
|
481
|
-
};
|
|
482
|
-
export {
|
|
483
|
-
or as C,
|
|
484
|
-
nr as S,
|
|
485
|
-
Ge as T,
|
|
486
|
-
cr as a,
|
|
487
|
-
rr as b,
|
|
488
|
-
et as c,
|
|
489
|
-
sr as d,
|
|
490
|
-
I as e,
|
|
491
|
-
He as f,
|
|
492
|
-
w as g,
|
|
493
|
-
Ye as h,
|
|
494
|
-
X as i,
|
|
495
|
-
Q as j,
|
|
496
|
-
tt as k,
|
|
497
|
-
Le as l,
|
|
498
|
-
Y as m,
|
|
499
|
-
qe as n,
|
|
500
|
-
ar as s,
|
|
501
|
-
er as t,
|
|
502
|
-
ir as u
|
|
503
|
-
};
|