@luzmo/analytics-components-kit 1.0.1-alpha.19 → 1.0.1-alpha.20

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.
@@ -0,0 +1,735 @@
1
+ /*! * A kit of modern Luzmo Web Components for analytics in your web application.
2
+ *
3
+ * Copyright © 2025 Luzmo
4
+ * All rights reserved.
5
+ * Luzmo web components (“Luzmo Web Components”)
6
+ * must be used according to the Luzmo Terms of Service.
7
+ * This license allows users with a current active Luzmo account
8
+ * to use the Luzmo Web Components. This license terminates
9
+ * automatically if a user no longer has an active Luzmo account.
10
+ * Please view the Luzmo Terms of Service at: https://www.luzmo.com/information-pages/terms-of-use.
11
+ *
12
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ * SOFTWARE.
19
+ * */
20
+ import { h as S } from "./task-Cr9aRIbV.js";
21
+ import { x as K, k as G, a as R, n as M } from "./property-B2F7x7Cz.js";
22
+ import { o as D } from "./if-defined-Bv6MRdSW.js";
23
+ const N = (t, o, i) => {
24
+ const e = (n) => {
25
+ for (const l of n ?? []) {
26
+ if (l.key === t)
27
+ return i ? l : l.control;
28
+ if (l.children) {
29
+ const s = e(l.children);
30
+ if (s)
31
+ return s;
32
+ }
33
+ }
34
+ return null;
35
+ };
36
+ if (o && Array.isArray(o))
37
+ for (const n of o) {
38
+ const l = e(n.children);
39
+ if (l)
40
+ return l;
41
+ }
42
+ return null;
43
+ }, q = ":host{font-family:var(--luzmo-edit-option-font-family, var(--luzmo-font-family));font-size:var(--luzmo-edit-option-font-size, var(--luzmo-font-size))}:host([size=s]){font-size:var(--luzmo-edit-option-font-size-s, var(--luzmo-font-size-s))}:host([size=l]){font-size:var(--luzmo-edit-option-font-size-l, var(--luzmo-font-size-l))}:host([size=xl]){font-size:var(--luzmo-edit-option-font-size-xl, var(--luzmo-font-size-xl))}", w = (t) => {
44
+ var i, e, n;
45
+ let o;
46
+ return typeof ((i = t == null ? void 0 : t.controlInfo) == null ? void 0 : i.default) == "function" ? o = t.controlInfo.default({
47
+ options: t.options,
48
+ slots: t.slots,
49
+ theme: t.theme
50
+ }) : ((e = t.controlInfo) == null ? void 0 : e.default) !== void 0 && ((n = t.controlInfo) == null ? void 0 : n.default) !== null && (o = t.controlInfo.default), o;
51
+ }, H = (t) => {
52
+ var l, s, $, L, d, r, z, b, u, h, p, a, c, m, f;
53
+ let o;
54
+ typeof ((l = t.controlInfo) == null ? void 0 : l.extraLabel) == "function" ? o = t.controlInfo.extraLabel({
55
+ options: t.options,
56
+ slots: t.slots,
57
+ theme: t.theme
58
+ }) : typeof ((s = t.controlInfo) == null ? void 0 : s.extraLabel) == "string" && (o = t.controlInfo.extraLabel), typeof o == "string" && (o = ((r = (d = (L = ($ = t.translations) == null ? void 0 : $.options) == null ? void 0 : L[t.optionKey]) == null ? void 0 : d.extraLabel) == null ? void 0 : r[o]) ?? o);
59
+ let i;
60
+ typeof ((z = t.controlInfo) == null ? void 0 : z.extraLabelTooltip) == "function" ? o = t.controlInfo.extraLabelTooltip({
61
+ options: t.options,
62
+ slots: t.slots,
63
+ theme: t.theme
64
+ }) : typeof ((b = t.controlInfo) == null ? void 0 : b.extraLabelTooltip) == "string" && (i = t.controlInfo.extraLabelTooltip), typeof i == "string" && (o = ((a = (p = (h = (u = t.translations) == null ? void 0 : u.options) == null ? void 0 : h[t.optionKey]) == null ? void 0 : p.extraLabelTooltip) == null ? void 0 : a[i]) ?? i);
65
+ let e;
66
+ typeof ((c = t.controlInfo) == null ? void 0 : c.extraLabelHasClickAction) == "function" ? e = t.controlInfo.extraLabelHasClickAction({
67
+ options: t.options,
68
+ slots: t.slots,
69
+ theme: t.theme
70
+ }) : typeof ((m = t.controlInfo) == null ? void 0 : m.extraLabelHasClickAction) == "boolean" && (e = t.controlInfo.extraLabelHasClickAction);
71
+ const n = typeof ((f = t.controlInfo) == null ? void 0 : f.extraLabelClickAction) == "function" ? () => t.controlInfo.extraLabelClickAction({
72
+ options: t.options,
73
+ slots: t.slots,
74
+ theme: t.theme
75
+ }) : () => {
76
+ };
77
+ return {
78
+ extraLabel: o,
79
+ extraLabelTooltip: i,
80
+ extraLabelHasClickAction: e,
81
+ extraLabelClickAction: n
82
+ };
83
+ }, T = (t, o) => {
84
+ if (o.includes(".")) {
85
+ const i = o.split(".");
86
+ let e = t;
87
+ for (let l = 0; l < i.length - 1; l++)
88
+ e = e[i[l]] ?? {};
89
+ const n = i.length - 1;
90
+ return e[i[n]];
91
+ }
92
+ return t[o];
93
+ }, _ = (t) => (o) => {
94
+ const i = { ...t.options };
95
+ if (t.optionKey.includes(".")) {
96
+ const e = t.optionKey.split(".");
97
+ let n = i;
98
+ for (let s = 0; s < e.length - 1; s++)
99
+ n[e[s]] = n[e[s]] ?? {}, n = n[e[s]];
100
+ const l = e.length - 1;
101
+ n[e[l]] = o.detail.value;
102
+ } else
103
+ i[t.optionKey] = o.detail.value;
104
+ return t.changeCallback(i);
105
+ }, J = (t) => {
106
+ var b, u, h, p, a, c, m, f, x, k, y, C;
107
+ const o = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((p = t.controlInfo) == null ? void 0 : p.label) ?? t.optionKey ?? "", i = t.size, e = {};
108
+ Object.keys((a = t.controlInfo) == null ? void 0 : a.values).forEach((I) => {
109
+ var v, O, A, j, F, P;
110
+ e[I] = {
111
+ ...(v = t.controlInfo) == null ? void 0 : v.values[I],
112
+ label: ((F = (j = (A = (O = t.translations) == null ? void 0 : O.options) == null ? void 0 : A[t.optionKey]) == null ? void 0 : j.enum) == null ? void 0 : F[I]) ?? ((P = t.controlInfo) == null ? void 0 : P.values[I].label)
113
+ };
114
+ });
115
+ const n = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = t.controlInfo) == null ? void 0 : x.tooltip), l = T(t.options, t.optionKey), s = w(t), {
116
+ extraLabel: $,
117
+ extraLabelTooltip: L,
118
+ extraLabelHasClickAction: d,
119
+ extraLabelClickAction: r
120
+ } = H(t), z = _(t);
121
+ return K`
122
+ <luzmo-edit-option-action-button-group
123
+ .label=${o}
124
+ .value=${l}
125
+ .values=${e}
126
+ .default=${s}
127
+ .selects=${(k = t.controlInfo) == null ? void 0 : k.selects}
128
+ .size=${i}
129
+ .tooltip=${n}
130
+ .extraLabel=${$}
131
+ .extraLabelTooltip=${L}
132
+ .extraLabelHasClickAction=${d}
133
+ @extraLabelClick=${r}
134
+ @option-changed=${z}
135
+ .fromOptionValue=${(y = t.controlInfo) == null ? void 0 : y.fromOptionValue}
136
+ .toOptionValue=${(C = t.controlInfo) == null ? void 0 : C.toOptionValue}
137
+ ></luzmo-edit-option-action-button-group>
138
+ `;
139
+ }, Q = (t) => {
140
+ var b, u, h, p, a, c, m, f, x, k;
141
+ const o = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((p = t.controlInfo) == null ? void 0 : p.label) ?? t.optionKey ?? "", i = T(t.options, t.optionKey), e = t.size, n = ((m = (c = (a = t.translations) == null ? void 0 : a.options) == null ? void 0 : c[t.optionKey]) == null ? void 0 : m.tooltip) ?? ((f = t.controlInfo) == null ? void 0 : f.tooltip), l = w(t), {
142
+ extraLabel: s,
143
+ extraLabelTooltip: $,
144
+ extraLabelHasClickAction: L,
145
+ extraLabelClickAction: d
146
+ } = H(t), r = _(t);
147
+ return K`
148
+ <luzmo-edit-option-color-picker
149
+ .value=${i ?? l}
150
+ .label=${o}
151
+ .size=${e}
152
+ .tooltip=${n}
153
+ .extraLabel=${s}
154
+ .extraLabelTooltip=${$}
155
+ .extraLabelHasClickAction=${L}
156
+ @extraLabelClick=${() => {
157
+ if (typeof d == "function") {
158
+ const { options: y } = d();
159
+ return t.changeCallback(y);
160
+ }
161
+ }}
162
+ @option-changed=${r}
163
+ .fromOptionValue=${(x = t.controlInfo) == null ? void 0 : x.fromOptionValue}
164
+ .toOptionValue=${(k = t.controlInfo) == null ? void 0 : k.toOptionValue}
165
+ ></luzmo-edit-option-color-picker>
166
+ `;
167
+ }, U = (t) => {
168
+ var u, h, p, a, c, m, f, x, k, y, C, I, v, O;
169
+ const o = ((p = (h = (u = t.translations) == null ? void 0 : u.options) == null ? void 0 : h[t.optionKey]) == null ? void 0 : p.label) ?? ((a = t.controlInfo) == null ? void 0 : a.label) ?? t.optionKey ?? "", i = T(t.options, t.optionKey) ?? {}, e = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = t.controlInfo) == null ? void 0 : x.tooltip), n = t.language ?? "en", l = {};
170
+ l[n] = ((C = (y = (k = t.translations) == null ? void 0 : k.options) == null ? void 0 : y[t.optionKey]) == null ? void 0 : C.placeholder) ?? ((I = t.controlInfo) == null ? void 0 : I.placeholder) ?? "";
171
+ const s = t.size, $ = w(t), {
172
+ extraLabel: L,
173
+ extraLabelTooltip: d,
174
+ extraLabelHasClickAction: r,
175
+ extraLabelClickAction: z
176
+ } = H(t), b = _(t);
177
+ return K`
178
+ <luzmo-edit-option-multi-language-field
179
+ .label=${o}
180
+ .placeholder=${l}
181
+ .value=${i ?? $}
182
+ language=${D(n)}
183
+ .size=${s}
184
+ .tooltip=${e}
185
+ .extraLabel=${L}
186
+ .extraLabelTooltip=${d}
187
+ .extraLabelHasClickAction=${r}
188
+ @extraLabelClick=${z}
189
+ @option-changed=${b}
190
+ .fromOptionValue=${(v = t.controlInfo) == null ? void 0 : v.fromOptionValue}
191
+ .toOptionValue=${(O = t.controlInfo) == null ? void 0 : O.toOptionValue}
192
+ ></luzmo-edit-option-multi-language-field>
193
+ `;
194
+ }, W = (t) => {
195
+ var h, p, a, c, m, f, x, k, y, C, I, v, O;
196
+ const o = ((a = (p = (h = t.translations) == null ? void 0 : h.options) == null ? void 0 : p[t.optionKey]) == null ? void 0 : a.label) ?? ((c = t.controlInfo) == null ? void 0 : c.label) ?? t.optionKey ?? "", i = (m = t.controlInfo) == null ? void 0 : m.min, e = (f = t.controlInfo) == null ? void 0 : f.max, n = (x = t.controlInfo) == null ? void 0 : x.step, l = T(t.options, t.optionKey), s = ((C = (y = (k = t.translations) == null ? void 0 : k.options) == null ? void 0 : y[t.optionKey]) == null ? void 0 : C.tooltip) ?? ((I = t.controlInfo) == null ? void 0 : I.tooltip), $ = w(t), L = t.size, {
197
+ extraLabel: d,
198
+ extraLabelTooltip: r,
199
+ extraLabelHasClickAction: z,
200
+ extraLabelClickAction: b
201
+ } = H(t), u = _(t);
202
+ return K`
203
+ <luzmo-edit-option-number-field
204
+ .value=${l}
205
+ .default=${$}
206
+ .min=${i}
207
+ .max=${e}
208
+ .step=${n}
209
+ .label=${o}
210
+ .size=${L}
211
+ .tooltip=${s}
212
+ .extraLabel=${d}
213
+ .extraLabelTooltip=${r}
214
+ .extraLabelHasClickAction=${z}
215
+ @extraLabelClick=${b}
216
+ @option-changed=${u}
217
+ .fromOptionValue=${(v = t.controlInfo) == null ? void 0 : v.fromOptionValue}
218
+ .toOptionValue=${(O = t.controlInfo) == null ? void 0 : O.toOptionValue}
219
+ ></luzmo-edit-option-number-field>
220
+ `;
221
+ }, X = (t) => {
222
+ var b, u, h, p, a, c, m, f, x, k, y;
223
+ const o = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((p = t.controlInfo) == null ? void 0 : p.label) ?? t.optionKey ?? "", i = T(t.options, t.optionKey), e = ((m = (c = (a = t.translations) == null ? void 0 : a.options) == null ? void 0 : c[t.optionKey]) == null ? void 0 : m.tooltip) ?? ((f = t.controlInfo) == null ? void 0 : f.tooltip), n = (x = t.controlInfo) == null ? void 0 : x.enum.reduce(
224
+ (C, I) => {
225
+ var v, O, A, j;
226
+ return C[I] = ((j = (A = (O = (v = t.translations) == null ? void 0 : v.options) == null ? void 0 : O[t.optionKey]) == null ? void 0 : A.enum) == null ? void 0 : j[I]) ?? I, C;
227
+ },
228
+ {}
229
+ ), l = t.size, s = w(t), {
230
+ extraLabel: $,
231
+ extraLabelTooltip: L,
232
+ extraLabelHasClickAction: d,
233
+ extraLabelClickAction: r
234
+ } = H(t), z = _(t);
235
+ return K`
236
+ <luzmo-edit-option-picker
237
+ .value=${i}
238
+ .default=${s}
239
+ .values=${n}
240
+ .label=${o}
241
+ .tooltip=${e}
242
+ .size=${l}
243
+ .extraLabel=${$}
244
+ .extraLabelTooltip=${L}
245
+ .extraLabelHasClickAction=${d}
246
+ @extraLabelClick=${r}
247
+ @option-changed=${z}
248
+ .fromOptionValue=${(k = t.controlInfo) == null ? void 0 : k.fromOptionValue}
249
+ .toOptionValue=${(y = t.controlInfo) == null ? void 0 : y.toOptionValue}
250
+ ></luzmo-edit-option-picker>
251
+ `;
252
+ }, Y = (t) => {
253
+ var b, u, h, p, a, c, m, f, x, k, y;
254
+ const o = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((p = t.controlInfo) == null ? void 0 : p.label), i = (a = t.controlInfo) == null ? void 0 : a.positions, e = t.size, n = T(t.options, t.optionKey), l = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = t.controlInfo) == null ? void 0 : x.tooltip), s = w(t) ?? "topRight", {
255
+ extraLabel: $,
256
+ extraLabelTooltip: L,
257
+ extraLabelHasClickAction: d,
258
+ extraLabelClickAction: r
259
+ } = H(t), z = _(t);
260
+ return K`
261
+ <luzmo-edit-option-position-picker
262
+ .value=${(k = t.controlInfo) == null ? void 0 : k.value}
263
+ .positions=${i}
264
+ .default=${s}
265
+ .label=${o}
266
+ .tooltip=${l}
267
+ .size=${e}
268
+ .value=${n}
269
+ .extraLabel=${$}
270
+ .extraLabelTooltip=${L}
271
+ .extraLabelHasClickAction=${d}
272
+ @extraLabelClick=${r}
273
+ @option-changed=${z}
274
+ .readonly=${(y = t.controlInfo) == null ? void 0 : y.readonly}
275
+ ></luzmo-edit-option-position-picker>
276
+ `;
277
+ }, Z = (t) => {
278
+ var z, b, u, h, p, a, c, m, f, x, k, y;
279
+ const o = ((u = (b = (z = t.translations) == null ? void 0 : z.options) == null ? void 0 : b[t.optionKey]) == null ? void 0 : u.label) ?? ((h = t.controlInfo) == null ? void 0 : h.label), i = T(t.options, t.optionKey), e = t.size, n = ((c = (a = (p = t.translations) == null ? void 0 : p.options) == null ? void 0 : a[t.optionKey]) == null ? void 0 : c.tooltip) ?? ((m = t.controlInfo) == null ? void 0 : m.tooltip), l = w(t), {
280
+ extraLabel: s,
281
+ extraLabelTooltip: $,
282
+ extraLabelHasClickAction: L,
283
+ extraLabelClickAction: d
284
+ } = H(t), r = _(t);
285
+ return K`
286
+ <luzmo-edit-option-positions-number-field
287
+ .values=${i ?? l}
288
+ .positions=${(f = t.controlInfo) == null ? void 0 : f.positions}
289
+ .positionConfiguration=${(x = t.controlInfo) == null ? void 0 : x.positionConfiguration}
290
+ .label=${o}
291
+ .size=${e}
292
+ .tooltip=${n}
293
+ .extraLabel=${s}
294
+ .extraLabelTooltip=${$}
295
+ .extraLabelHasClickAction=${L}
296
+ @extraLabelClick=${d}
297
+ @option-changed=${r}
298
+ .fromOptionValue=${(k = t.controlInfo) == null ? void 0 : k.fromOptionValue}
299
+ .toOptionValue=${(y = t.controlInfo) == null ? void 0 : y.toOptionValue}
300
+ ></luzmo-edit-option-positions-number-field>
301
+ `;
302
+ }, g = (t) => {
303
+ var b, u, h, p, a, c, m, f, x, k, y;
304
+ const o = ((h = (u = (b = t.translations) == null ? void 0 : b.options) == null ? void 0 : u[t.optionKey]) == null ? void 0 : h.label) ?? ((p = t.controlInfo) == null ? void 0 : p.label) ?? t.optionKey ?? "", i = T(t.options, t.optionKey), e = w(t), n = (a = t.controlInfo) == null ? void 0 : a.enum.reduce(
305
+ (C, I) => {
306
+ var v, O, A, j;
307
+ return C[I] = ((j = (A = (O = (v = t.translations) == null ? void 0 : v.options) == null ? void 0 : O[t.optionKey]) == null ? void 0 : A.enum) == null ? void 0 : j[I]) ?? I, C;
308
+ },
309
+ {}
310
+ ), l = t.size, s = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.tooltip) ?? ((x = t.controlInfo) == null ? void 0 : x.tooltip), {
311
+ extraLabel: $,
312
+ extraLabelTooltip: L,
313
+ extraLabelHasClickAction: d,
314
+ extraLabelClickAction: r
315
+ } = H(t), z = _(t);
316
+ return K`
317
+ <luzmo-edit-option-radio-button-group
318
+ .value=${i ?? e}
319
+ .values=${n}
320
+ .label=${o}
321
+ .size=${l}
322
+ .tooltip=${s}
323
+ .extraLabel=${$}
324
+ .extraLabelTooltip=${L}
325
+ .extraLabelHasClickAction=${d}
326
+ @extraLabelClick=${r}
327
+ @option-changed=${z}
328
+ .fromOptionValue=${(k = t.controlInfo) == null ? void 0 : k.fromOptionValue}
329
+ .toOptionValue=${(y = t.controlInfo) == null ? void 0 : y.toOptionValue}
330
+ ></luzmo-edit-option-radio-button-group>
331
+ `;
332
+ }, tt = (t) => {
333
+ var p, a, c, m, f, x, k, y, C, I, v, O, A;
334
+ const o = ((c = (a = (p = t.translations) == null ? void 0 : p.options) == null ? void 0 : a[t.optionKey]) == null ? void 0 : c.label) ?? ((m = t.controlInfo) == null ? void 0 : m.label) ?? t.optionKey ?? "", i = ((k = (x = (f = t.translations) == null ? void 0 : f.options) == null ? void 0 : x[t.optionKey]) == null ? void 0 : k.tooltip) ?? ((y = t.controlInfo) == null ? void 0 : y.tooltip), e = (C = t.controlInfo) == null ? void 0 : C.min, n = (I = t.controlInfo) == null ? void 0 : I.max, l = (v = t.controlInfo) == null ? void 0 : v.step, s = T(t.options, t.optionKey), $ = t.size, L = w(t), {
335
+ extraLabel: d,
336
+ extraLabelTooltip: r,
337
+ extraLabelHasClickAction: z,
338
+ extraLabelClickAction: b
339
+ } = H(t), u = _(t);
340
+ return K`
341
+ <luzmo-edit-option-slider
342
+ .value=${s}
343
+ .default=${L}
344
+ .min=${e}
345
+ .max=${n}
346
+ .step=${l}
347
+ .label=${o}
348
+ .tooltip=${i}
349
+ .size=${$}
350
+ .extraLabel=${d}
351
+ .extraLabelTooltip=${r}
352
+ .extraLabelHasClickAction=${z}
353
+ @extraLabelClick=${() => {
354
+ if (typeof b == "function") {
355
+ const { options: j } = b();
356
+ return t.changeCallback(j);
357
+ }
358
+ }}
359
+ @option-changed=${u}
360
+ .fromOptionValue=${(O = t.controlInfo) == null ? void 0 : O.fromOptionValue}
361
+ .toOptionValue=${(A = t.controlInfo) == null ? void 0 : A.toOptionValue}
362
+ ></luzmo-edit-option-slider>
363
+ `;
364
+ }, ot = (t) => {
365
+ var z, b, u, h, p, a, c, m, f, x;
366
+ const o = ((u = (b = (z = t.translations) == null ? void 0 : z.options) == null ? void 0 : b[t.optionKey]) == null ? void 0 : u.label) ?? ((h = t.controlInfo) == null ? void 0 : h.label) ?? t.optionKey ?? "", i = T(t.options, t.optionKey), e = t.size, n = ((c = (a = (p = t.translations) == null ? void 0 : p.options) == null ? void 0 : a[t.optionKey]) == null ? void 0 : c.tooltip) ?? ((m = t.controlInfo) == null ? void 0 : m.tooltip), l = w(t), {
367
+ extraLabel: s,
368
+ extraLabelTooltip: $,
369
+ extraLabelHasClickAction: L,
370
+ extraLabelClickAction: d
371
+ } = H(t), r = _(t);
372
+ return K`
373
+ <luzmo-edit-option-switch
374
+ .value=${i ?? l ?? !1}
375
+ .label=${o}
376
+ .size=${e}
377
+ .tooltip=${n}
378
+ .extraLabel=${s}
379
+ .extraLabelTooltip=${$}
380
+ .extraLabelHasClickAction=${L}
381
+ @extraLabelClick=${d}
382
+ @option-changed=${r}
383
+ .fromOptionValue=${(f = t.controlInfo) == null ? void 0 : f.fromOptionValue}
384
+ .toOptionValue=${(x = t.controlInfo) == null ? void 0 : x.toOptionValue}
385
+ ></luzmo-edit-option-switch>
386
+ `;
387
+ }, it = (t) => {
388
+ var u, h, p, a, c, m, f, x, k, y, C, I, v, O;
389
+ const o = ((p = (h = (u = t.translations) == null ? void 0 : u.options) == null ? void 0 : h[t.optionKey]) == null ? void 0 : p.label) ?? ((a = t.controlInfo) == null ? void 0 : a.label) ?? t.optionKey ?? "", i = t.language ?? "en", e = {};
390
+ e[i] = ((f = (m = (c = t.translations) == null ? void 0 : c.options) == null ? void 0 : m[t.optionKey]) == null ? void 0 : f.placeholder) ?? ((x = t.controlInfo) == null ? void 0 : x.placeholder) ?? "";
391
+ const n = T(t.options, t.optionKey) ?? "", l = t.size, s = ((C = (y = (k = t.translations) == null ? void 0 : k.options) == null ? void 0 : y[t.optionKey]) == null ? void 0 : C.tooltip) ?? ((I = t.controlInfo) == null ? void 0 : I.tooltip), $ = w(t), {
392
+ extraLabel: L,
393
+ extraLabelTooltip: d,
394
+ extraLabelHasClickAction: r,
395
+ extraLabelClickAction: z
396
+ } = H(t), b = _(t);
397
+ return K`
398
+ <luzmo-edit-option-text-field
399
+ .label=${o}
400
+ .placeholder=${e[i]}
401
+ .value=${n ?? $}
402
+ .size=${l}
403
+ .tooltip=${s}
404
+ .extraLabel=${L}
405
+ .extraLabelTooltip=${d}
406
+ .extraLabelHasClickAction=${r}
407
+ @extraLabelClick=${z}
408
+ @option-changed=${b}
409
+ .fromOptionValue=${(v = t.controlInfo) == null ? void 0 : v.fromOptionValue}
410
+ .toOptionValue=${(O = t.controlInfo) == null ? void 0 : O.toOptionValue}
411
+ ></luzmo-edit-option-text-field>
412
+ `;
413
+ }, nt = (t) => {
414
+ switch (t.controlType) {
415
+ case "picker":
416
+ return X(t);
417
+ case "slider":
418
+ return tt(t);
419
+ case "switch":
420
+ return ot(t);
421
+ case "multi-language-field":
422
+ return U(t);
423
+ case "text-field":
424
+ return it(t);
425
+ case "number-field":
426
+ return W(t);
427
+ case "position-picker":
428
+ return Y(t);
429
+ case "positions-number-field":
430
+ return Z(t);
431
+ case "radio-button-group":
432
+ return g(t);
433
+ case "color-picker":
434
+ return Q(t);
435
+ case "action-button-group":
436
+ return J(t);
437
+ }
438
+ };
439
+ var et = Object.defineProperty, E = (t, o, i, e) => {
440
+ for (var n = void 0, l = t.length - 1, s; l >= 0; l--)
441
+ (s = t[l]) && (n = s(o, i, n) || n);
442
+ return n && et(o, i, n), n;
443
+ };
444
+ const B = class B extends G {
445
+ constructor() {
446
+ super(...arguments), this._loadItemConfig = new S(this, {
447
+ task: async ([
448
+ o,
449
+ i,
450
+ e,
451
+ n,
452
+ l
453
+ ]) => {
454
+ let s = !1;
455
+ if (o !== this._itemTypeLoaded && !n) {
456
+ const d = /* @__PURE__ */ Object.assign({
457
+ "../../item-definitions/area-chart/area-chart-options.config.ts": () => import("./area-chart-options.config-BbSP_Auh.js"),
458
+ "../../item-definitions/bar-chart/bar-chart-options.config.ts": () => import("./bar-chart-options.config-CRGDLJCK.js"),
459
+ "../../item-definitions/box-plot/box-plot-options.config.ts": () => import("./box-plot-options.config-BtonHYul.js"),
460
+ "../../item-definitions/bubble-chart/bubble-chart-options.config.ts": () => import("./bubble-chart-options.config-R5R-E3dd.js"),
461
+ "../../item-definitions/bullet-chart/bullet-chart-options.config.ts": () => import("./bullet-chart-options.config-D-_esi9S.js"),
462
+ "../../item-definitions/choropleth-map/choropleth-map-options.config.ts": () => import("./choropleth-map-options.config-z2fY__jr.js"),
463
+ "../../item-definitions/circle-pack-chart/circle-pack-chart-options.config.ts": () => import("./circle-pack-chart-options.config-DEYL3DMK.js"),
464
+ "../../item-definitions/circular-gauge/circular-gauge-options.config.ts": () => import("./circular-gauge-options.config-9tIxyJj1.js"),
465
+ "../../item-definitions/column-chart/column-chart-options.config.ts": () => import("./column-chart-options.config-D87ZFT76.js"),
466
+ "../../item-definitions/combination-chart/combination-chart-options.config.ts": () => import("./combination-chart-options.config-CApdgFvv.js"),
467
+ "../../item-definitions/conditional-number/conditional-number-options.config.ts": () => import("./conditional-number-options.config-PVvKLc1P.js"),
468
+ "../../item-definitions/donut-chart/donut-chart-options.config.ts": () => import("./donut-chart-options.config-NPwNtLDW.js"),
469
+ "../../item-definitions/dropdown-filter/dropdown-filter-options.config.ts": () => import("./dropdown-filter-options.config-D9dvPypF.js"),
470
+ "../../item-definitions/funnel-chart/funnel-chart-options.config.ts": () => import("./funnel-chart-options.config-CrlHKd36.js"),
471
+ "../../item-definitions/image/image-options.config.ts": () => import("./image-options.config-CBfeq5Zw.js"),
472
+ "../../item-definitions/line-chart/line-chart-options.config.ts": () => import("./line-chart-options.config-BtfCTjNr.js"),
473
+ "../../item-definitions/ohlc-chart/ohlc-chart-options.config.ts": () => import("./ohlc-chart-options.config-D9npwajt.js"),
474
+ "../../item-definitions/radar-chart/radar-chart-options.config.ts": () => import("./radar-chart-options.config-DFxna7UF.js"),
475
+ "../../item-definitions/sankey-diagram/sankey-diagram-options.config.ts": () => import("./sankey-diagram-options.config-Dj9g2BOp.js"),
476
+ "../../item-definitions/search-filter/search-filter-options.config.ts": () => import("./search-filter-options.config-BE3JhR-F.js"),
477
+ "../../item-definitions/slicer-filter/slicer-filter-options.config.ts": () => import("./slicer-filter-options.config-BArPA7Mb.js"),
478
+ "../../item-definitions/slider-filter/slider-filter-options.config.ts": () => import("./slider-filter-options.config-BIKIbGbN.js"),
479
+ "../../item-definitions/spacer/spacer-options.config.ts": () => import("./spacer-options.config-IpwUxDyU.js"),
480
+ "../../item-definitions/sunburst-chart/sunburst-chart-options.config.ts": () => import("./sunburst-chart-options.config-BxkJfdrU.js"),
481
+ "../../item-definitions/text/text-options.config.ts": () => import("./text-options.config-BWaJoeG2.js"),
482
+ "../../item-definitions/treemap-chart/treemap-chart-options.config.ts": () => import("./treemap-chart-options.config-MyCTS35Y.js"),
483
+ "../../item-definitions/video/video-options.config.ts": () => import("./video-options.config-Dk36zJ1B.js"),
484
+ "../../item-definitions/wordcloud-chart/wordcloud-chart-options.config.ts": () => import("./wordcloud-chart-options.config-Dq7TF0sb.js")
485
+ });
486
+ if (d[`../../item-definitions/${o}/${o}-options.config.ts`])
487
+ try {
488
+ const r = await d[`../../item-definitions/${o}/${o}-options.config.ts`]();
489
+ this._optionsConfig = (r == null ? void 0 : r.default) ?? [];
490
+ } catch {
491
+ this._optionsConfig = [];
492
+ }
493
+ else
494
+ this._optionsConfig = [];
495
+ s = !0;
496
+ } else n ? (i && o && console.warn(
497
+ "optionKey and itemType are not needed when using custom option configuration"
498
+ ), this._optionsConfig = [{ children: [n] }], i = n.key, o = void 0) : this._optionsConfig = [];
499
+ if ((e !== this._languageLoaded || s) && !l) {
500
+ const d = /* @__PURE__ */ Object.assign({
501
+ "../../item-definitions/area-chart/i18n/area-chart-options.de.ts": () => import("./area-chart-options.de-FcVE2Ywe.js"),
502
+ "../../item-definitions/area-chart/i18n/area-chart-options.en.ts": () => import("./area-chart-options.en-Cz5aXeVe.js"),
503
+ "../../item-definitions/area-chart/i18n/area-chart-options.es.ts": () => import("./area-chart-options.es-o3ABpXnC.js"),
504
+ "../../item-definitions/area-chart/i18n/area-chart-options.fr.ts": () => import("./area-chart-options.fr-CBhHB_ER.js"),
505
+ "../../item-definitions/area-chart/i18n/area-chart-options.nl.ts": () => import("./area-chart-options.nl-SbYGv26w.js"),
506
+ "../../item-definitions/bar-chart/i18n/bar-chart-options.de.ts": () => import("./bar-chart-options.de-DwTn_qfu.js"),
507
+ "../../item-definitions/bar-chart/i18n/bar-chart-options.en.ts": () => import("./bar-chart-options.en-Crc8tYUJ.js"),
508
+ "../../item-definitions/bar-chart/i18n/bar-chart-options.es.ts": () => import("./bar-chart-options.es-ByT_D06p.js"),
509
+ "../../item-definitions/bar-chart/i18n/bar-chart-options.fr.ts": () => import("./bar-chart-options.fr-BwiGRlQf.js"),
510
+ "../../item-definitions/bar-chart/i18n/bar-chart-options.nl.ts": () => import("./bar-chart-options.nl-DzXnHdwX.js"),
511
+ "../../item-definitions/box-plot/i18n/box-plot-options.de.ts": () => import("./box-plot-options.de-D3Yye2Yp.js"),
512
+ "../../item-definitions/box-plot/i18n/box-plot-options.en.ts": () => import("./box-plot-options.en-DADAI4yL.js"),
513
+ "../../item-definitions/box-plot/i18n/box-plot-options.es.ts": () => import("./box-plot-options.es-ePZUgamp.js"),
514
+ "../../item-definitions/box-plot/i18n/box-plot-options.fr.ts": () => import("./box-plot-options.fr-DNkSteEz.js"),
515
+ "../../item-definitions/box-plot/i18n/box-plot-options.nl.ts": () => import("./box-plot-options.nl-GBXrkaLf.js"),
516
+ "../../item-definitions/bubble-chart/i18n/bubble-chart-options.de.ts": () => import("./bubble-chart-options.de-D8Ap7joq.js"),
517
+ "../../item-definitions/bubble-chart/i18n/bubble-chart-options.en.ts": () => import("./bubble-chart-options.en-BU3F4n13.js"),
518
+ "../../item-definitions/bubble-chart/i18n/bubble-chart-options.es.ts": () => import("./bubble-chart-options.es-Bh_dRgE3.js"),
519
+ "../../item-definitions/bubble-chart/i18n/bubble-chart-options.fr.ts": () => import("./bubble-chart-options.fr-CNiJgmGl.js"),
520
+ "../../item-definitions/bubble-chart/i18n/bubble-chart-options.nl.ts": () => import("./bubble-chart-options.nl-BoV3kpaZ.js"),
521
+ "../../item-definitions/bullet-chart/i18n/bullet-chart-options.de.ts": () => import("./bullet-chart-options.de-DxBk0yku.js"),
522
+ "../../item-definitions/bullet-chart/i18n/bullet-chart-options.en.ts": () => import("./bullet-chart-options.en-Cu1cnL90.js"),
523
+ "../../item-definitions/bullet-chart/i18n/bullet-chart-options.es.ts": () => import("./bullet-chart-options.es-pGm2umSR.js"),
524
+ "../../item-definitions/bullet-chart/i18n/bullet-chart-options.fr.ts": () => import("./bullet-chart-options.fr-DGOcuFKQ.js"),
525
+ "../../item-definitions/bullet-chart/i18n/bullet-chart-options.nl.ts": () => import("./bullet-chart-options.nl-BJ39_p2y.js"),
526
+ "../../item-definitions/choropleth-map/i18n/choropleth-map-options.de.ts": () => import("./choropleth-map-options.de-BSt-L5Vh.js"),
527
+ "../../item-definitions/choropleth-map/i18n/choropleth-map-options.en.ts": () => import("./choropleth-map-options.en-Cy7WcWLG.js"),
528
+ "../../item-definitions/choropleth-map/i18n/choropleth-map-options.es.ts": () => import("./choropleth-map-options.es-BnR-9vJv.js"),
529
+ "../../item-definitions/choropleth-map/i18n/choropleth-map-options.fr.ts": () => import("./choropleth-map-options.fr-BlwLS1Wy.js"),
530
+ "../../item-definitions/choropleth-map/i18n/choropleth-map-options.nl.ts": () => import("./choropleth-map-options.nl-D70fr4Hl.js"),
531
+ "../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.de.ts": () => import("./circle-pack-chart-options.de-CUL0ypCU.js"),
532
+ "../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.en.ts": () => import("./circle-pack-chart-options.en-CFTJowAI.js"),
533
+ "../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.es.ts": () => import("./circle-pack-chart-options.es-BGoaousJ.js"),
534
+ "../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.fr.ts": () => import("./circle-pack-chart-options.fr-DLb0Di6Z.js"),
535
+ "../../item-definitions/circle-pack-chart/i18n/circle-pack-chart-options.nl.ts": () => import("./circle-pack-chart-options.nl-CZL69ZgV.js"),
536
+ "../../item-definitions/circular-gauge/i18n/circular-gauge-options.de.ts": () => import("./circular-gauge-options.de-BO3S8GCr.js"),
537
+ "../../item-definitions/circular-gauge/i18n/circular-gauge-options.en.ts": () => import("./circular-gauge-options.en-Cyhhijwg.js"),
538
+ "../../item-definitions/circular-gauge/i18n/circular-gauge-options.es.ts": () => import("./circular-gauge-options.es-DJ7ru4Wf.js"),
539
+ "../../item-definitions/circular-gauge/i18n/circular-gauge-options.fr.ts": () => import("./circular-gauge-options.fr-BVWliP7i.js"),
540
+ "../../item-definitions/circular-gauge/i18n/circular-gauge-options.nl.ts": () => import("./circular-gauge-options.nl-DGpV7Riu.js"),
541
+ "../../item-definitions/column-chart/i18n/column-chart-options.de.ts": () => import("./column-chart-options.de-VQVdi8aP.js"),
542
+ "../../item-definitions/column-chart/i18n/column-chart-options.en.ts": () => import("./column-chart-options.en-Crc8tYUJ.js"),
543
+ "../../item-definitions/column-chart/i18n/column-chart-options.es.ts": () => import("./column-chart-options.es-CT9ZtjV_.js"),
544
+ "../../item-definitions/column-chart/i18n/column-chart-options.fr.ts": () => import("./column-chart-options.fr-BwiGRlQf.js"),
545
+ "../../item-definitions/column-chart/i18n/column-chart-options.nl.ts": () => import("./column-chart-options.nl-DB2dcotu.js"),
546
+ "../../item-definitions/combination-chart/i18n/combination-chart-options.de.ts": () => import("./combination-chart-options.de-CEsSn5-2.js"),
547
+ "../../item-definitions/combination-chart/i18n/combination-chart-options.en.ts": () => import("./combination-chart-options.en-BCKuLOQb.js"),
548
+ "../../item-definitions/combination-chart/i18n/combination-chart-options.es.ts": () => import("./combination-chart-options.es-zMa9kqmV.js"),
549
+ "../../item-definitions/combination-chart/i18n/combination-chart-options.fr.ts": () => import("./combination-chart-options.fr-DOXtaY1V.js"),
550
+ "../../item-definitions/combination-chart/i18n/combination-chart-options.nl.ts": () => import("./combination-chart-options.nl-CCChbhx_.js"),
551
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.de.ts": () => import("./conditional-number-options.de-BJcjBZY1.js"),
552
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.en.ts": () => import("./conditional-number-options.en-WSrIzRGJ.js"),
553
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.es.ts": () => import("./conditional-number-options.es-BKqT0zog.js"),
554
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.fr.ts": () => import("./conditional-number-options.fr-D2r7Azy8.js"),
555
+ "../../item-definitions/conditional-number/i18n/conditional-number-options.nl.ts": () => import("./conditional-number-options.nl-pkRI1tLZ.js"),
556
+ "../../item-definitions/donut-chart/i18n/donut-chart-options.de.ts": () => import("./donut-chart-options.de-nSj3ghwo.js"),
557
+ "../../item-definitions/donut-chart/i18n/donut-chart-options.en.ts": () => import("./donut-chart-options.en-CrUf4CJ9.js"),
558
+ "../../item-definitions/donut-chart/i18n/donut-chart-options.es.ts": () => import("./donut-chart-options.es-DnsGqOdo.js"),
559
+ "../../item-definitions/donut-chart/i18n/donut-chart-options.fr.ts": () => import("./donut-chart-options.fr-DVfZwZny.js"),
560
+ "../../item-definitions/donut-chart/i18n/donut-chart-options.nl.ts": () => import("./donut-chart-options.nl-CUuOQyJg.js"),
561
+ "../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.de.ts": () => import("./dropdown-filter-options.de-0HBcrwev.js"),
562
+ "../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.en.ts": () => import("./dropdown-filter-options.en-CNdmMsNW.js"),
563
+ "../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.es.ts": () => import("./dropdown-filter-options.es-DjgZxklA.js"),
564
+ "../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.fr.ts": () => import("./dropdown-filter-options.fr-n_2OjO_u.js"),
565
+ "../../item-definitions/dropdown-filter/i18n/dropdown-filter-options.nl.ts": () => import("./dropdown-filter-options.nl-CL6UEP00.js"),
566
+ "../../item-definitions/funnel-chart/i18n/funnel-chart-options.de.ts": () => import("./funnel-chart-options.de-CuVFMJUC.js"),
567
+ "../../item-definitions/funnel-chart/i18n/funnel-chart-options.en.ts": () => import("./funnel-chart-options.en-CvPbJr1r.js"),
568
+ "../../item-definitions/funnel-chart/i18n/funnel-chart-options.es.ts": () => import("./funnel-chart-options.es-_M7sC4m6.js"),
569
+ "../../item-definitions/funnel-chart/i18n/funnel-chart-options.fr.ts": () => import("./funnel-chart-options.fr-DvnZ-XbE.js"),
570
+ "../../item-definitions/funnel-chart/i18n/funnel-chart-options.nl.ts": () => import("./funnel-chart-options.nl-C72_FTNm.js"),
571
+ "../../item-definitions/image/i18n/image-options.de.ts": () => import("./image-options.de-CYVnqdL_.js"),
572
+ "../../item-definitions/image/i18n/image-options.en.ts": () => import("./image-options.en-BMmV-4O-.js"),
573
+ "../../item-definitions/image/i18n/image-options.es.ts": () => import("./image-options.es-UN5rmaEt.js"),
574
+ "../../item-definitions/image/i18n/image-options.fr.ts": () => import("./image-options.fr-DRE3zImB.js"),
575
+ "../../item-definitions/image/i18n/image-options.nl.ts": () => import("./image-options.nl-D20hki6i.js"),
576
+ "../../item-definitions/line-chart/i18n/line-chart-options.de.ts": () => import("./line-chart-options.de-C4c6fWBr.js"),
577
+ "../../item-definitions/line-chart/i18n/line-chart-options.en.ts": () => import("./line-chart-options.en-XEng6bZk.js"),
578
+ "../../item-definitions/line-chart/i18n/line-chart-options.es.ts": () => import("./line-chart-options.es-B6CBKzRj.js"),
579
+ "../../item-definitions/line-chart/i18n/line-chart-options.fr.ts": () => import("./line-chart-options.fr-BIugWKt4.js"),
580
+ "../../item-definitions/line-chart/i18n/line-chart-options.nl.ts": () => import("./line-chart-options.nl-87TuLT5-.js"),
581
+ "../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.de.ts": () => import("./ohlc-chart-options.de-CZj-UIJm.js"),
582
+ "../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.en.ts": () => import("./ohlc-chart-options.en-W7r8X64N.js"),
583
+ "../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.es.ts": () => import("./ohlc-chart-options.es-B1PdbaLo.js"),
584
+ "../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.fr.ts": () => import("./ohlc-chart-options.fr-3n_H_IQ3.js"),
585
+ "../../item-definitions/ohlc-chart/i18n/ohlc-chart-options.nl.ts": () => import("./ohlc-chart-options.nl-BVw9fPpa.js"),
586
+ "../../item-definitions/radar-chart/i18n/radar-chart-options.de.ts": () => import("./radar-chart-options.de-DUzx_7w0.js"),
587
+ "../../item-definitions/radar-chart/i18n/radar-chart-options.en.ts": () => import("./radar-chart-options.en-CV6ZYx8z.js"),
588
+ "../../item-definitions/radar-chart/i18n/radar-chart-options.es.ts": () => import("./radar-chart-options.es-BgvSKtUs.js"),
589
+ "../../item-definitions/radar-chart/i18n/radar-chart-options.fr.ts": () => import("./radar-chart-options.fr-CobHnfMX.js"),
590
+ "../../item-definitions/radar-chart/i18n/radar-chart-options.nl.ts": () => import("./radar-chart-options.nl-M4-vur3g.js"),
591
+ "../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.de.ts": () => import("./sankey-diagram-options.de-kp4wK81w.js"),
592
+ "../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.en.ts": () => import("./sankey-diagram-options.en-BJG2rmog.js"),
593
+ "../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.es.ts": () => import("./sankey-diagram-options.es-DoU2uZkk.js"),
594
+ "../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.fr.ts": () => import("./sankey-diagram-options.fr-CqASKXuH.js"),
595
+ "../../item-definitions/sankey-diagram/i18n/sankey-diagram-options.nl.ts": () => import("./sankey-diagram-options.nl-BQcClmve.js"),
596
+ "../../item-definitions/search-filter/i18n/search-filter-options.de.ts": () => import("./search-filter-options.de-CtQU33mZ.js"),
597
+ "../../item-definitions/search-filter/i18n/search-filter-options.en.ts": () => import("./search-filter-options.en-D_lZl4BW.js"),
598
+ "../../item-definitions/search-filter/i18n/search-filter-options.es.ts": () => import("./search-filter-options.es-4mDTBqYv.js"),
599
+ "../../item-definitions/search-filter/i18n/search-filter-options.fr.ts": () => import("./search-filter-options.fr-CSzsk8kC.js"),
600
+ "../../item-definitions/search-filter/i18n/search-filter-options.nl.ts": () => import("./search-filter-options.nl-CUIS-wlX.js"),
601
+ "../../item-definitions/slicer-filter/i18n/slicer-filter-options.de.ts": () => import("./slicer-filter-options.de-89LcA_-b.js"),
602
+ "../../item-definitions/slicer-filter/i18n/slicer-filter-options.en.ts": () => import("./slicer-filter-options.en-BtvdQlh6.js"),
603
+ "../../item-definitions/slicer-filter/i18n/slicer-filter-options.es.ts": () => import("./slicer-filter-options.es-CsuWj6x4.js"),
604
+ "../../item-definitions/slicer-filter/i18n/slicer-filter-options.fr.ts": () => import("./slicer-filter-options.fr-Q1R9a5aW.js"),
605
+ "../../item-definitions/slicer-filter/i18n/slicer-filter-options.nl.ts": () => import("./slicer-filter-options.nl-BR-R2l1o.js"),
606
+ "../../item-definitions/slider-filter/i18n/slider-filter-options.de.ts": () => import("./slider-filter-options.de-BETdnh_t.js"),
607
+ "../../item-definitions/slider-filter/i18n/slider-filter-options.en.ts": () => import("./slider-filter-options.en-DpbWEGHE.js"),
608
+ "../../item-definitions/slider-filter/i18n/slider-filter-options.es.ts": () => import("./slider-filter-options.es-CWazXehw.js"),
609
+ "../../item-definitions/slider-filter/i18n/slider-filter-options.fr.ts": () => import("./slider-filter-options.fr-B2RT9GfR.js"),
610
+ "../../item-definitions/slider-filter/i18n/slider-filter-options.nl.ts": () => import("./slider-filter-options.nl-CwxJqGoK.js"),
611
+ "../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.de.ts": () => import("./sunburst-chart-options.de-DOjqnDNg.js"),
612
+ "../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.en.ts": () => import("./sunburst-chart-options.en-DQOS_dec.js"),
613
+ "../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.es.ts": () => import("./sunburst-chart-options.es-DGsVkhyC.js"),
614
+ "../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.fr.ts": () => import("./sunburst-chart-options.fr-DIWRXmkr.js"),
615
+ "../../item-definitions/sunburst-chart/i18n/sunburst-chart-options.nl.ts": () => import("./sunburst-chart-options.nl-D0hYq2Mh.js"),
616
+ "../../item-definitions/text/i18n/text-options.de.ts": () => import("./text-options.de-BjfS5RBn.js"),
617
+ "../../item-definitions/text/i18n/text-options.en.ts": () => import("./text-options.en-BQqHFc7M.js"),
618
+ "../../item-definitions/text/i18n/text-options.es.ts": () => import("./text-options.es-CMB1DKq4.js"),
619
+ "../../item-definitions/text/i18n/text-options.fr.ts": () => import("./text-options.fr-VPJ3bDOM.js"),
620
+ "../../item-definitions/text/i18n/text-options.nl.ts": () => import("./text-options.nl-C8sliUgH.js"),
621
+ "../../item-definitions/treemap-chart/i18n/treemap-chart-options.de.ts": () => import("./treemap-chart-options.de-Bdj6O-Ju.js"),
622
+ "../../item-definitions/treemap-chart/i18n/treemap-chart-options.en.ts": () => import("./treemap-chart-options.en-D6co_QL8.js"),
623
+ "../../item-definitions/treemap-chart/i18n/treemap-chart-options.es.ts": () => import("./treemap-chart-options.es-BjbsJzCM.js"),
624
+ "../../item-definitions/treemap-chart/i18n/treemap-chart-options.fr.ts": () => import("./treemap-chart-options.fr-VG44wSIJ.js"),
625
+ "../../item-definitions/treemap-chart/i18n/treemap-chart-options.nl.ts": () => import("./treemap-chart-options.nl-BTKv3TBd.js"),
626
+ "../../item-definitions/video/i18n/video-options.de.ts": () => import("./video-options.de-DIKmTgn5.js"),
627
+ "../../item-definitions/video/i18n/video-options.en.ts": () => import("./video-options.en-DMzcDD7I.js"),
628
+ "../../item-definitions/video/i18n/video-options.es.ts": () => import("./video-options.es-CtV-__xN.js"),
629
+ "../../item-definitions/video/i18n/video-options.fr.ts": () => import("./video-options.fr-DHt0mV9L.js"),
630
+ "../../item-definitions/video/i18n/video-options.nl.ts": () => import("./video-options.nl-1cNZgoqf.js"),
631
+ "../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.de.ts": () => import("./wordcloud-chart-options.de-DwLQlEJg.js"),
632
+ "../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.en.ts": () => import("./wordcloud-chart-options.en-DWkM70-M.js"),
633
+ "../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.es.ts": () => import("./wordcloud-chart-options.es-CkXbSwEc.js"),
634
+ "../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.fr.ts": () => import("./wordcloud-chart-options.fr-DNK5Ouc5.js"),
635
+ "../../item-definitions/wordcloud-chart/i18n/wordcloud-chart-options.nl.ts": () => import("./wordcloud-chart-options.nl-CcgmqL7I.js")
636
+ });
637
+ if (d[`../../item-definitions/${o}/i18n/${o}-options.${e}.ts`])
638
+ try {
639
+ const r = await d[`../../item-definitions/${o}/i18n/${o}-options.${e}.ts`]();
640
+ this._translations = (r == null ? void 0 : r.default) ?? {};
641
+ } catch (r) {
642
+ this._translations = {}, console.error(r);
643
+ }
644
+ else
645
+ this._translations = {};
646
+ } else l ? this._translations = {
647
+ options: { [i ?? ""]: l }
648
+ } : this._translations = {};
649
+ const $ = N(i ?? "", this._optionsConfig), L = $ == null ? void 0 : $.type;
650
+ if (L !== this._controlTypeLoaded) {
651
+ const d = /* @__PURE__ */ Object.assign({ "../edit-option-action-button-group/index.ts": () => import("./edit-option-action-button-group/index.js"), "../edit-option-color-picker/index.ts": () => import("./edit-option-color-picker/index.js"), "../edit-option-multi-language-field/index.ts": () => import("./edit-option-multi-language-field/index.js"), "../edit-option-number-field/index.ts": () => import("./edit-option-number-field/index.js"), "../edit-option-picker/index.ts": () => import("./edit-option-picker/index.js"), "../edit-option-position-picker/index.ts": () => import("./edit-option-position-picker/index.js"), "../edit-option-positions-number-field/index.ts": () => import("./edit-option-positions-number-field/index.js"), "../edit-option-radio-button-group/index.ts": () => import("./edit-option-radio-button-group/index.js"), "../edit-option-slider/index.ts": () => import("./edit-option-slider/index.js"), "../edit-option-switch/index.ts": () => import("./edit-option-switch/index.js"), "../edit-option-text-field/index.ts": () => import("./edit-option-text-field/index.js") });
652
+ try {
653
+ d[`../edit-option-${L}/index.ts`] && (await d[`../edit-option-${L}/index.ts`](), this._controlTypeLoaded = L);
654
+ } catch (r) {
655
+ console.error(r);
656
+ }
657
+ }
658
+ return $;
659
+ },
660
+ args: () => [
661
+ this.itemType,
662
+ this.optionKey,
663
+ this.language,
664
+ this.customOptionConfiguration,
665
+ this.customTranslations
666
+ ]
667
+ }), this.language = "en", this.options = {}, this.slots = {}, this.theme = {}, this.size = "m", this.changedOptions = (o) => {
668
+ this.options = o, this.dispatchEvent(
669
+ new CustomEvent("options-changed", {
670
+ bubbles: !0,
671
+ composed: !0,
672
+ cancelable: !0,
673
+ detail: {
674
+ options: o
675
+ }
676
+ })
677
+ );
678
+ };
679
+ }
680
+ render() {
681
+ return this._loadItemConfig.render({
682
+ pending: () => K`<p>Loading...</p>`,
683
+ complete: (o) => {
684
+ var i;
685
+ return nt({
686
+ controlType: o == null ? void 0 : o.type,
687
+ optionKey: ((i = this.customOptionConfiguration) == null ? void 0 : i.key) ?? this.optionKey,
688
+ controlInfo: o,
689
+ options: this.options,
690
+ slots: this.slots,
691
+ theme: this.theme,
692
+ language: this.language,
693
+ translations: this._translations,
694
+ size: this.size,
695
+ changeCallback: this.changedOptions
696
+ });
697
+ },
698
+ error: (o) => (console.error(o), K``)
699
+ });
700
+ }
701
+ };
702
+ B.styles = R(q);
703
+ let V = B;
704
+ E([
705
+ M({ type: String, reflect: !0 })
706
+ ], V.prototype, "language");
707
+ E([
708
+ M({ type: String, reflect: !0, attribute: "item-type" })
709
+ ], V.prototype, "itemType");
710
+ E([
711
+ M({ type: String, reflect: !0, attribute: "option-key" })
712
+ ], V.prototype, "optionKey");
713
+ E([
714
+ M({ type: Object, reflect: !1 })
715
+ ], V.prototype, "customOptionConfiguration");
716
+ E([
717
+ M({ type: Object, reflect: !1 })
718
+ ], V.prototype, "customTranslations");
719
+ E([
720
+ M({ type: Object })
721
+ ], V.prototype, "options");
722
+ E([
723
+ M({ type: Object })
724
+ ], V.prototype, "slots");
725
+ E([
726
+ M({ type: Object })
727
+ ], V.prototype, "theme");
728
+ E([
729
+ M({ type: String, reflect: !0 })
730
+ ], V.prototype, "size");
731
+ customElements.get("luzmo-edit-option") || customElements.define("luzmo-edit-option", V);
732
+ export {
733
+ V as L,
734
+ N as g
735
+ };