@feedmepos/mf-report 5.21.60 → 5.21.61

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/dist/{App-hkV_69de.js → App-j3usf8FY.js} +5 -5
  2. package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-BDvN4H57.js → BaseDialog.vue_vue_type_script_setup_true_lang-UggmboXZ.js} +8 -7
  3. package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-DLiCOf4l.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CpqzVOXy.js} +2 -2
  4. package/dist/{Default.vue_vue_type_script_setup_true_lang-Dksz7BxY.js → Default.vue_vue_type_script_setup_true_lang-B7b3bYC5.js} +2 -2
  5. package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DmLDyd6w.js → FilterSelector.vue_vue_type_script_setup_true_lang-CIbCbfmC.js} +8 -8
  6. package/dist/{InsightView-CxPu5tDS.js → InsightView-CMgtW6qD.js} +6 -6
  7. package/dist/{Integration-hW9VPfLm.js → Integration-CkBqXwuz.js} +3 -3
  8. package/dist/{Integrations-CyUP0PhN.js → Integrations-Dk9y9Qjv.js} +3 -3
  9. package/dist/{Layout-DnW35n9m.js → Layout-DHZsuN72.js} +1 -1
  10. package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Biwwk8va.js → MenuTab.vue_vue_type_script_setup_true_lang-B_UNDwvq.js} +5 -5
  11. package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BWV6EPIY.js → NavigationTab.vue_vue_type_script_setup_true_lang-AU5ZjMBm.js} +3465 -3441
  12. package/dist/{NoData.vue_vue_type_script_setup_true_lang-BWS9Qfxa.js → NoData.vue_vue_type_script_setup_true_lang-kxSAU57T.js} +1 -1
  13. package/dist/{OverviewView-kREZvSyu.js → OverviewView-BluLtqh0.js} +6 -6
  14. package/dist/{Report-BMlvdJNy.js → Report-BpjVd5nd.js} +56 -56
  15. package/dist/ReportEditor-B2SHMOOe.js +1103 -0
  16. package/dist/{ReportView-BoXqG73h.js → ReportView-DbhiaJX_.js} +9 -9
  17. package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-CluezcjG.js → SelectComponent.vue_vue_type_script_setup_true_lang-A3u4G6JX.js} +1 -1
  18. package/dist/{Setting-Ctd4ce90.js → Setting-CEgKxXdO.js} +5 -5
  19. package/dist/{TileEditor-ChHWyPhV.js → TileEditor-Bw3cr-tu.js} +12 -11
  20. package/dist/{TransitionFade-Cb2DNm5W.js → TransitionFade-BjCkyi78.js} +7 -7
  21. package/dist/{app-DWaJ-vEd.js → app-DggmOMWQ.js} +194 -178
  22. package/dist/app.js +1 -1
  23. package/dist/assets/{formatChartData.worker-DAwFx8Qz.js → formatChartData.worker-D2WGGG5c.js} +3 -3
  24. package/dist/assets/{processTableData.worker-CGM71S-g.js → processTableData.worker-2nFOrip5.js} +3 -3
  25. package/dist/i18n-CI_sQ5d_.js +76 -0
  26. package/dist/{vue-i18n-D94kFjeX.js → vue-i18n-DIv5YRC1.js} +1 -1
  27. package/package.json +1 -1
  28. package/dist/ReportEditor-Bcs5OUD5.js +0 -1097
  29. package/dist/i18n-7InkCBCc.js +0 -11
@@ -1,1097 +0,0 @@
1
- import { defineComponent as K, mergeModels as G, useModel as A, ref as I, computed as U, resolveComponent as f, createBlock as k, openBlock as u, withCtx as m, createElementVNode as h, createVNode as o, unref as l, normalizeClass as ue, createTextVNode as _e, toDisplayString as z, createElementBlock as T, Fragment as j, renderSlot as Oe, createCommentVNode as J, watch as pe, renderList as ee, resolveDynamicComponent as We, isRef as Ne, normalizeStyle as we, onMounted as Re } from "vue";
2
- import { W as qe, g as Ee, _ as Pe, i as ze, S as Ve, d as Ce, T as Je, a as Le } from "./TransitionFade-Cb2DNm5W.js";
3
- import { D as H, c as ce, C as ge, a as Me, b as He, v as se } from "./BaseDialog.vue_vue_type_script_setup_true_lang-BDvN4H57.js";
4
- import { storeToRefs as ve } from "pinia";
5
- import { useRouter as Ue, useRoute as De } from "vue-router";
6
- import { useBreakpoints as fe, useSnackbar as Be, FmButtonColorThemeVariant as re } from "@feedmepos/ui-library";
7
- import { u as Ie } from "./message-dialog-UoMWOnil.js";
8
- import { u as de, b as je, h as be, e as Ge } from "./vue-i18n-D94kFjeX.js";
9
- import { a as Se, _ as he } from "./FilterSelector.vue_vue_type_script_setup_true_lang-DmLDyd6w.js";
10
- import { _ as ye } from "./NoData.vue_vue_type_script_setup_true_lang-BWS9Qfxa.js";
11
- import { r as Fe } from "./i18n-7InkCBCc.js";
12
- import { a as $e } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CluezcjG.js";
13
- const Ae = /* @__PURE__ */ K({
14
- __name: "WidgetDialog",
15
- props: /* @__PURE__ */ G({
16
- isOpen: { type: Boolean }
17
- }, {
18
- modelValue: {},
19
- modelModifiers: {}
20
- }),
21
- emits: /* @__PURE__ */ G(["update:isOpen"], ["update:modelValue"]),
22
- setup(V, { emit: s }) {
23
- const { t: r } = de(), { breakpoints: i } = fe(), y = A(V, "modelValue"), c = V, F = s;
24
- function g() {
25
- F("update:isOpen", !1);
26
- }
27
- function S() {
28
- d.value && (y.value = d.value, d.value = void 0, F("update:isOpen", !1));
29
- }
30
- const d = I(), D = U(() => !d.value);
31
- return (q, $) => {
32
- const B = f("FmButton"), b = f("FmDialog");
33
- return u(), k(b, {
34
- "model-value": c.isOpen
35
- }, {
36
- "dialog-header": m(() => [
37
- _e(z(l(r)("report.widget.type")), 1)
38
- ]),
39
- default: m(() => [
40
- o(qe, {
41
- modelValue: d.value,
42
- "onUpdate:modelValue": $[0] || ($[0] = (N) => d.value = N),
43
- class: ue(`grid ${l(i).lg || l(i).md ? "grid-cols-3 gap-3" : "grid-cols-2 gap-3"}`),
44
- "child-class": "p-[8px] flex flex-col"
45
- }, null, 8, ["modelValue", "class"])
46
- ]),
47
- "dialog-footer": m(() => [
48
- $[1] || ($[1] = h("div", { class: "grow" }, null, -1)),
49
- o(B, {
50
- label: l(r)("report.common.cancel"),
51
- variant: "tertiary",
52
- onClick: g
53
- }, null, 8, ["label"]),
54
- o(B, {
55
- label: l(r)("report.common.confirm"),
56
- disabled: D.value,
57
- onClick: S
58
- }, null, 8, ["label", "disabled"])
59
- ]),
60
- _: 1
61
- }, 8, ["model-value"]);
62
- };
63
- }
64
- }), Ke = { class: "fm-typo-en-body-lg-600" }, xe = /* @__PURE__ */ K({
65
- __name: "ReportEditorTabHeader",
66
- props: /* @__PURE__ */ G({
67
- icon: {
68
- type: String,
69
- required: !0
70
- }
71
- }, {
72
- modelValue: { type: Boolean, required: !0, default: !1 },
73
- modelModifiers: {}
74
- }),
75
- emits: ["update:modelValue"],
76
- setup(V) {
77
- const { t: s } = de(), r = A(V, "modelValue"), i = V;
78
- return (y, c) => {
79
- const F = f("FmIcon");
80
- return u(), T("div", {
81
- class: "px-6 py-16 flex items-center gap-2 bg-fm-color-neutral-white border cursor-pointer",
82
- onClick: c[0] || (c[0] = (g) => r.value = !r.value)
83
- }, [
84
- h("p", Ke, z(l(s)("report.editor.customizeReport")), 1),
85
- c[1] || (c[1] = h("div", { class: "grow" }, null, -1)),
86
- o(F, {
87
- name: i.icon
88
- }, null, 8, ["name"])
89
- ]);
90
- };
91
- }
92
- }), Qe = /* @__PURE__ */ K({
93
- __name: "ReportEditorTabDesktop",
94
- props: {
95
- modelValue: { required: !0, default: !1 },
96
- modelModifiers: {}
97
- },
98
- emits: ["update:modelValue"],
99
- setup(V) {
100
- const s = A(V, "modelValue");
101
- return (r, i) => (u(), T(j, null, [
102
- o(xe, {
103
- modelValue: s.value,
104
- "onUpdate:modelValue": i[0] || (i[0] = (y) => s.value = y),
105
- icon: "keyboard_double_arrow_left"
106
- }, null, 8, ["modelValue"]),
107
- Oe(r.$slots, "default")
108
- ], 64));
109
- }
110
- }), Xe = /* @__PURE__ */ K({
111
- __name: "ReportEditorTabMobile",
112
- props: {
113
- modelValue: { required: !0, default: !1 },
114
- modelModifiers: {}
115
- },
116
- emits: ["update:modelValue"],
117
- setup(V) {
118
- const s = A(V, "modelValue");
119
- return (r, i) => {
120
- const y = f("FmTopSheet"), c = f("FmCard");
121
- return u(), k(c, { class: "fixed bottom-0 w-full" }, {
122
- default: m(() => [
123
- o(xe, {
124
- modelValue: s.value,
125
- "onUpdate:modelValue": i[0] || (i[0] = (F) => s.value = F),
126
- icon: "keyboard_double_arrow_up"
127
- }, null, 8, ["modelValue"]),
128
- o(y, {
129
- modelValue: s.value,
130
- "onUpdate:modelValue": i[2] || (i[2] = (F) => s.value = F),
131
- "fullscreen-size": "sm"
132
- }, {
133
- default: m(() => [
134
- o(xe, {
135
- modelValue: s.value,
136
- "onUpdate:modelValue": i[1] || (i[1] = (F) => s.value = F),
137
- icon: "keyboard_double_arrow_down"
138
- }, null, 8, ["modelValue"]),
139
- s.value ? Oe(r.$slots, "default", { key: 0 }) : J("", !0)
140
- ]),
141
- _: 3
142
- }, 8, ["modelValue"])
143
- ]),
144
- _: 3
145
- });
146
- };
147
- }
148
- }), Ye = {
149
- key: 2,
150
- class: "flex flex-col gap-2"
151
- }, Ze = /* @__PURE__ */ K({
152
- __name: "GlobalFilterDialog",
153
- props: /* @__PURE__ */ G({
154
- schemas: {
155
- type: Array,
156
- default: () => []
157
- },
158
- tiles: {
159
- type: Array,
160
- required: !0
161
- }
162
- }, {
163
- globalFilter: {
164
- default: () => null
165
- },
166
- globalFilterModifiers: {},
167
- isOpen: { type: Boolean, default: () => !1, required: !0 },
168
- isOpenModifiers: {}
169
- }),
170
- emits: ["update:globalFilter", "update:isOpen"],
171
- setup(V) {
172
- const { t: s, te: r } = de(), i = A(V, "globalFilter"), y = A(V, "isOpen"), c = Be(), F = V, g = I(), S = I(), d = I(), D = I(), q = I([]), $ = I([]), B = I(""), b = I(!1);
173
- pe(y, (a) => {
174
- var e, t, v, w, _, C, R;
175
- a && (g.value = ((e = i.value) == null ? void 0 : e.label) || "", S.value = F.schemas.find(
176
- (P) => {
177
- var O;
178
- return P.name === ((O = i.value) == null ? void 0 : O.schemaName);
179
- }
180
- ), d.value = (t = Q.value.find(
181
- (P) => {
182
- var O;
183
- return P.value.name === ((O = i.value) == null ? void 0 : O.name);
184
- }
185
- )) == null ? void 0 : t.value, D.value = (v = i.value) == null ? void 0 : v.option, q.value = ((w = i.value) == null ? void 0 : w.tileIds) || [], $.value = ((_ = i.value) == null ? void 0 : _.filters) || [], b.value = !!((C = i.value) != null && C.dataFormula), B.value = ((R = i.value) == null ? void 0 : R.dataFormula) || "");
186
- });
187
- const N = U(
188
- () => F.schemas.map((a) => ({
189
- label: a.label || a.name,
190
- value: a
191
- }))
192
- ), Q = U(() => {
193
- var a;
194
- return (((a = S.value) == null ? void 0 : a.fields) || []).map((e) => ({
195
- label: e.label || e.name,
196
- value: e
197
- }));
198
- }), W = U(() => {
199
- var a;
200
- return ((a = d.value) == null ? void 0 : a.type) !== H.Timestamp ? [] : Ee(s);
201
- }), E = U(() => F.tiles.reduce((a, e, t) => {
202
- var _, C;
203
- const v = e.widget.config.schemaNames ?? [], w = (e.widget.config.joinDatasources ?? []).flatMap(
204
- (R) => R.schemaNames ?? []
205
- );
206
- return [...v, ...w].includes(((_ = S.value) == null ? void 0 : _.name) || "") && a.push({
207
- label: (C = e == null ? void 0 : e.widget.title) != null && C.trim() ? e.widget.title : `Widget ${t + 1}`,
208
- value: e.id
209
- }), a;
210
- }, [])), L = U(
211
- () => F.schemas.flatMap(
212
- (a) => (a.fields ?? []).map((e) => ({
213
- ...e,
214
- labels: [
215
- Fe(s, r, a.label, "schema"),
216
- Fe(s, r, e.label || e.name, "other")
217
- ]
218
- }))
219
- )
220
- );
221
- function p(a) {
222
- var e;
223
- a.name !== ((e = S.value) == null ? void 0 : e.name) && (S.value = a, d.value = void 0);
224
- }
225
- function X(a) {
226
- d.value = a, D.value = a.type === H.Timestamp ? ce.DateTime : void 0;
227
- }
228
- function le(a, e) {
229
- switch (a) {
230
- case H.Timestamp:
231
- return e === ce.DateTime || e === ce.TimeOfDay ? ge.Between : ge.Equal;
232
- case H.Bool:
233
- case H.String:
234
- case H.Numeric:
235
- return ge.Equal;
236
- default:
237
- throw new Error(`Unsupported data type: ${a}`);
238
- }
239
- }
240
- function te() {
241
- if (!S.value) {
242
- c.open({ message: "Invalid schema", type: "error" });
243
- return;
244
- }
245
- if (!d.value) {
246
- c.open({ message: "Invalid dimension", type: "error" });
247
- return;
248
- }
249
- const a = $.value.filter((e) => e ? !N.value.some((v) => v.value.name === e.schemaName) : !0);
250
- if (a.length > 0) {
251
- c.open({
252
- message: `Invalid filter(s): ${a.filter((e) => !!e).map((e) => e.schemaName).join(
253
- ", "
254
- )}${a.some((e) => !e) ? ", unknown filter(s)" : ""} - schema not found`,
255
- type: "error"
256
- });
257
- return;
258
- }
259
- i.value = {
260
- schemaName: S.value.name,
261
- name: d.value.name,
262
- label: g.value,
263
- operator: le(
264
- d.value.type,
265
- d.value.type === H.Timestamp ? D.value ?? ce.DateTime : null
266
- ),
267
- option: d.value.type === H.Timestamp ? D.value : null,
268
- values: [],
269
- tileIds: [...q.value],
270
- filters: JSON.parse(JSON.stringify($.value)),
271
- dataFormula: b.value ? B.value : void 0
272
- }, y.value = !1;
273
- }
274
- function oe() {
275
- y.value = !1;
276
- }
277
- const x = U(() => {
278
- var a;
279
- return [
280
- (a = S.value) == null ? void 0 : a.name,
281
- ...$.value.map((e) => e.schemaName)
282
- ];
283
- });
284
- function M(a) {
285
- var _, C, R, P;
286
- const e = F.tiles.find((O) => O.id === a.value), t = ((C = (_ = e == null ? void 0 : e.widget) == null ? void 0 : _.config) == null ? void 0 : C.schemaNames) ?? [], v = (((P = (R = e == null ? void 0 : e.widget) == null ? void 0 : R.config) == null ? void 0 : P.joinDatasources) ?? []).flatMap(
287
- (O) => O.schemaNames ?? []
288
- ), w = [...t, ...v];
289
- return x.value.filter((O) => !!O).some((O) => !w.includes(O));
290
- }
291
- return (a, e) => {
292
- const t = f("FmTextField"), v = f("FmSelect"), w = f("FmCheckbox"), _ = f("FmTextarea"), C = f("FmLabel"), R = f("FmIcon"), P = f("FmTooltip"), O = f("FmForm"), ie = f("FmButton"), me = f("FmDialog");
293
- return u(), k(me, {
294
- modelValue: y.value,
295
- "onUpdate:modelValue": e[8] || (e[8] = (ae) => y.value = ae),
296
- overlay: !0,
297
- "z-index": 10
298
- }, {
299
- "dialog-header": m(() => [
300
- _e(z(l(s)("report.section.filter.globalFilter")), 1)
301
- ]),
302
- default: m(() => [
303
- o(O, {
304
- ref: "form",
305
- class: "flex flex-col gap-2 w-[490px]"
306
- }, {
307
- default: m(() => {
308
- var ae;
309
- return [
310
- o(t, {
311
- modelValue: g.value,
312
- "onUpdate:modelValue": e[0] || (e[0] = (n) => g.value = n),
313
- placeholder: l(s)("report.section.filter.displayName"),
314
- label: l(s)("report.section.filter.displayName"),
315
- class: "mb-2"
316
- }, null, 8, ["modelValue", "placeholder", "label"]),
317
- o($e, {
318
- "model-value": S.value,
319
- items: N.value,
320
- placeholder: l(s)("report.section.schema.title"),
321
- label: l(s)("report.section.schema.title"),
322
- "onUpdate:modelValue": e[1] || (e[1] = (n) => p(n))
323
- }, null, 8, ["model-value", "items", "placeholder", "label"]),
324
- o($e, {
325
- "model-value": d.value,
326
- items: Q.value,
327
- placeholder: l(s)("report.section.dimension.title"),
328
- label: l(s)("report.section.dimension.title"),
329
- "onUpdate:modelValue": e[2] || (e[2] = (n) => X(n))
330
- }, null, 8, ["model-value", "items", "placeholder", "label"]),
331
- ((ae = d.value) == null ? void 0 : ae.type) === l(H).Timestamp ? (u(), k(v, {
332
- key: 0,
333
- modelValue: D.value,
334
- "onUpdate:modelValue": e[3] || (e[3] = (n) => D.value = n),
335
- items: W.value,
336
- placeholder: l(s)("report.section.filter.timeFormatter"),
337
- label: l(s)("report.section.filter.timeFormatter")
338
- }, null, 8, ["modelValue", "items", "placeholder", "label"])) : J("", !0),
339
- o(w, {
340
- modelValue: b.value,
341
- "onUpdate:modelValue": e[4] || (e[4] = (n) => b.value = n),
342
- label: l(s)("report.section.filter.advance"),
343
- value: !0
344
- }, null, 8, ["modelValue", "label"]),
345
- b.value ? (u(), k(_, {
346
- key: 1,
347
- modelValue: B.value,
348
- "onUpdate:modelValue": e[5] || (e[5] = (n) => B.value = n),
349
- placeholder: l(s)("report.section.filter.dataFormula")
350
- }, null, 8, ["modelValue", "placeholder"])) : J("", !0),
351
- o(Pe, {
352
- modelValue: $.value,
353
- "onUpdate:modelValue": e[6] || (e[6] = (n) => $.value = n),
354
- options: L.value
355
- }, null, 8, ["modelValue", "options"]),
356
- o(C, { class: "mt-2 fm-typo-en-body-lg-600" }, {
357
- default: m(() => [
358
- _e(z(l(s)("report.section.filter.applyWidget")), 1)
359
- ]),
360
- _: 1
361
- }),
362
- V.tiles.length > 0 ? (u(), T("div", Ye, [
363
- (u(!0), T(j, null, ee(E.value, (n) => (u(), T("div", {
364
- key: n.value,
365
- class: "flex items-center"
366
- }, [
367
- o(w, {
368
- modelValue: q.value,
369
- "onUpdate:modelValue": e[7] || (e[7] = (Y) => q.value = Y),
370
- label: n.label,
371
- value: n.value
372
- }, null, 8, ["modelValue", "label", "value"]),
373
- M(n) ? (u(), k(P, {
374
- key: 0,
375
- content: l(s)("report.section.filter.missingFilterSchema"),
376
- "z-index": 99,
377
- class: "ml-2"
378
- }, {
379
- default: m(() => [
380
- o(R, {
381
- name: "warning",
382
- class: "text-fm-color-system-error-300"
383
- })
384
- ]),
385
- _: 1
386
- }, 8, ["content"])) : J("", !0)
387
- ]))), 128))
388
- ])) : (u(), k(C, {
389
- key: 3,
390
- class: "fm-typo-en-body-lg-400",
391
- label: l(s)("report.section.filter.noWidget")
392
- }, null, 8, ["label"]))
393
- ];
394
- }),
395
- _: 1
396
- }, 512)
397
- ]),
398
- "dialog-footer": m(() => [
399
- e[9] || (e[9] = h("div", { class: "grow" }, null, -1)),
400
- o(ie, {
401
- label: l(s)("report.common.cancel"),
402
- variant: "tertiary",
403
- onClick: oe
404
- }, null, 8, ["label"]),
405
- o(ie, {
406
- label: l(s)("report.common.confirm"),
407
- onClick: te
408
- }, null, 8, ["label"])
409
- ]),
410
- _: 1
411
- }, 8, ["modelValue"]);
412
- };
413
- }
414
- }), el = { class: "flex flex-col gap-24 top-0 bg-fm-color-neutral-white z-10" }, ll = { class: "flex flex-col gap-24 top-0 bg-fm-color-neutral-white z-10" }, tl = { class: "flex items-center gap-1 max-w-[195px] w-[195px]" }, ol = { class: "line-clamp-2 overflow-hidden max-w-[195px] w-[195px]" }, al = { class: "flex flex-col gap-24" }, nl = { class: "line-clamp-2 overflow-hidden max-w-[195px] w-[195px]" }, Te = /* @__PURE__ */ K({
415
- __name: "ReportEditorTab",
416
- props: /* @__PURE__ */ G({
417
- hideConfiguration: {
418
- type: Boolean,
419
- default: !1
420
- }
421
- }, {
422
- modelValue: { required: !0 },
423
- modelModifiers: {}
424
- }),
425
- emits: /* @__PURE__ */ G(["hideConfiguration"], ["update:modelValue"]),
426
- setup(V, { emit: s }) {
427
- const r = A(V, "modelValue"), { breakpoints: i } = fe(), y = V, c = s, F = Ue(), g = De(), S = I(), {
428
- currentSelectWidgetType: d,
429
- categories: D,
430
- editingTile: q,
431
- editingTileIndex: $,
432
- editingGlobalFilter: B,
433
- editingGlobalFilterIndex: b
434
- } = ve(Me()), { schemas: N } = ve(He()), { globalFilters: Q } = ve(je()), { promptMessage: W } = Ie(), E = I(!1), L = I(!1), { t: p, te: X } = de(), le = I(void 0), te = U(() => {
435
- const e = r.value.tiles.flatMap((t) => {
436
- var _;
437
- const v = t.widget.config.schemaNames ?? [], w = ((_ = t.widget.config.joinDatasources) == null ? void 0 : _.flatMap((C) => C.schemaNames ?? [])) ?? [];
438
- return [...v, ...w];
439
- });
440
- return [...new Set(e)].reduce((t, v) => {
441
- const w = N.value.find((_) => _.name === v);
442
- return w && t.push(w), t;
443
- }, []);
444
- });
445
- function oe(e) {
446
- if (!e) return "";
447
- const t = `report.widget.types.${e.toLowerCase()}`;
448
- return X(t) ? p(t) : Fe(p, X, e, "other");
449
- }
450
- pe(
451
- () => d.value,
452
- () => {
453
- d.value !== void 0 && (le.value = ze(d.value), q.value = le.value, $.value = -1, F.push({
454
- name: "tileEditor",
455
- query: g.query
456
- }));
457
- },
458
- { immediate: !0 }
459
- ), pe(
460
- () => r.value.tiles,
461
- (e) => {
462
- e.forEach((t) => {
463
- t.id || (t.id = se());
464
- });
465
- },
466
- { immediate: !0, deep: !0 }
467
- );
468
- const x = [
469
- {
470
- label: p("report.common.edit"),
471
- selected: !1,
472
- variant: "tertiary",
473
- onClick: (e) => {
474
- $.value = e, q.value = JSON.parse(JSON.stringify(r.value.tiles[e])), F.push({
475
- name: "tileEditor",
476
- query: g.query
477
- });
478
- }
479
- },
480
- {
481
- label: p("report.common.duplicate"),
482
- selected: !1,
483
- variant: "tertiary",
484
- onClick: (e) => {
485
- const t = {
486
- ...JSON.parse(JSON.stringify(r.value.tiles[e])),
487
- id: se()
488
- };
489
- r.value.tiles.push(t);
490
- }
491
- },
492
- {
493
- label: p("report.common.remove"),
494
- selected: !1,
495
- variant: "destructive",
496
- onClick: async (e) => {
497
- if (await W({
498
- title: p("report.editor.deleteWidget"),
499
- message: p("report.editor.deleteWidgetConfirm", {
500
- title: r.value.tiles[e].widget.title
501
- })
502
- })) {
503
- const v = r.value.tiles[e].id;
504
- r.value.tiles.splice(e, 1), r.value.globalFilters && r.value.globalFilters.forEach((w) => {
505
- var _;
506
- w.tileIds = (_ = w.tileIds) == null ? void 0 : _.filter((C) => C !== v);
507
- });
508
- }
509
- }
510
- }
511
- ], M = [
512
- {
513
- label: p("report.common.edit"),
514
- selected: !1,
515
- variant: "tertiary",
516
- onClick: (e) => {
517
- var t;
518
- b.value = e, B.value = JSON.parse(JSON.stringify((t = r.value.globalFilters) == null ? void 0 : t[e])), E.value = !0;
519
- }
520
- },
521
- {
522
- label: p("report.common.remove"),
523
- selected: !1,
524
- variant: "destructive",
525
- onClick: async (e) => {
526
- var w, _;
527
- const t = (w = r.value.globalFilters) == null ? void 0 : w[e];
528
- if (!t) return;
529
- await W({
530
- title: p("report.editor.deleteWidget"),
531
- message: p("report.editor.deleteWidgetConfirm", {
532
- title: be(t)
533
- })
534
- }) && ((_ = r.value.globalFilters) == null || _.splice(e, 1));
535
- }
536
- }
537
- ], a = U(() => D.value.map((e) => ({
538
- label: p(`report.category.${e.name}`),
539
- value: e.id
540
- })));
541
- return pe(
542
- () => r.value.globalFilters,
543
- (e) => {
544
- Q.value = JSON.parse(JSON.stringify(e || []));
545
- },
546
- { deep: !0, immediate: !0 }
547
- ), (e, t) => {
548
- const v = f("FmTextField"), w = f("FmSelect"), _ = f("FmButton"), C = f("FmIcon"), R = f("FmTooltip"), P = f("FmMenuItem"), O = f("FmMenu"), ie = f("FmListItem"), me = f("FmList"), ae = f("FmForm");
549
- return u(), k(We(l(i).lg || l(i).md ? Qe : Xe), {
550
- "model-value": y.hideConfiguration,
551
- "onUpdate:modelValue": t[9] || (t[9] = (n) => c("hideConfiguration", n))
552
- }, {
553
- default: m(() => [
554
- o(Ze, {
555
- "is-open": E.value,
556
- "onUpdate:isOpen": t[0] || (t[0] = (n) => E.value = n),
557
- "global-filter": l(B),
558
- tiles: r.value.tiles,
559
- schemas: te.value,
560
- "onUpdate:globalFilter": t[1] || (t[1] = (n) => {
561
- n && (r.value.globalFilters || (r.value.globalFilters = []), typeof l(b) == "number" && l(b) >= 0 ? r.value.globalFilters[l(b)] = n : r.value.globalFilters.push(n));
562
- })
563
- }, null, 8, ["is-open", "global-filter", "tiles", "schemas"]),
564
- o(Ae, {
565
- modelValue: l(d),
566
- "onUpdate:modelValue": t[2] || (t[2] = (n) => Ne(d) ? d.value = n : null),
567
- "is-open": L.value,
568
- "onUpdate:isOpen": t[3] || (t[3] = (n) => L.value = n)
569
- }, null, 8, ["modelValue", "is-open"]),
570
- o(ae, {
571
- ref_key: "form",
572
- ref: S,
573
- class: "px-6 py-16 flex flex-col gap-24 overflow-y-auto overflow-x-hidden"
574
- }, {
575
- default: m(() => [
576
- o(Ve, { class: "border-solid" }, {
577
- header: m(() => [
578
- h("p", null, z(l(p)("report.editor.reportInfo")), 1),
579
- t[10] || (t[10] = h("div", { class: "grow" }, null, -1))
580
- ]),
581
- content: m(() => [
582
- h("div", el, [
583
- o(v, {
584
- modelValue: r.value.name,
585
- "onUpdate:modelValue": t[4] || (t[4] = (n) => r.value.name = n),
586
- label: l(p)("report.common.name"),
587
- placeholder: l(p)("report.common.name")
588
- }, null, 8, ["modelValue", "label", "placeholder"]),
589
- o(w, {
590
- modelValue: r.value.category,
591
- "onUpdate:modelValue": t[5] || (t[5] = (n) => r.value.category = n),
592
- label: l(p)("report.common.category"),
593
- items: a.value
594
- }, null, 8, ["modelValue", "label", "items"]),
595
- o(v, {
596
- modelValue: r.value.description,
597
- "onUpdate:modelValue": t[6] || (t[6] = (n) => r.value.description = n),
598
- label: l(p)("report.common.description"),
599
- placeholder: l(p)("report.common.description")
600
- }, null, 8, ["modelValue", "label", "placeholder"])
601
- ])
602
- ]),
603
- _: 1
604
- }),
605
- o(Ve, {
606
- class: "border-solid",
607
- "is-open": !1
608
- }, {
609
- header: m(() => [
610
- h("p", null, z(l(p)("report.section.filter.globalFilter")), 1),
611
- t[11] || (t[11] = h("div", { class: "grow" }, null, -1))
612
- ]),
613
- content: m(() => [
614
- h("div", ll, [
615
- o(_, {
616
- label: l(p)("report.section.filter.addGlobalFilter"),
617
- variant: "secondary",
618
- icon: "add",
619
- "icon-position": "prepend",
620
- "border-color": l(re).ColorPrimary,
621
- "text-color": l(re).ColorPrimary,
622
- onClick: t[7] || (t[7] = () => {
623
- b.value = null, B.value = null, E.value = !0;
624
- })
625
- }, null, 8, ["label", "border-color", "text-color"]),
626
- o(me, null, {
627
- default: m(() => [
628
- o(l(Ce), {
629
- list: r.value.globalFilters,
630
- "item-key": "`${element.schemaName}-${element.name}`",
631
- class: "flex flex-col gap-2 cursor-grab",
632
- handle: ".handle"
633
- }, {
634
- item: m(({ element: n, index: Y }) => [
635
- o(ie, { class: "!cursor-grab border rounded-md border-neutral-300" }, {
636
- default: m(() => {
637
- var ne;
638
- return [
639
- o(C, {
640
- name: "drag_handle",
641
- class: "handle"
642
- }),
643
- h("div", tl, [
644
- o(R, {
645
- "z-index": 99,
646
- content: l(be)(n),
647
- class: "handle"
648
- }, {
649
- default: m(() => [
650
- h("p", ol, z(l(be)(n)), 1)
651
- ]),
652
- _: 2
653
- }, 1032, ["content"]),
654
- te.value.find(
655
- (Z) => Z.name === n.schemaName
656
- ) ? J("", !0) : (u(), k(R, {
657
- key: 0,
658
- content: l(p)("report.section.filter.missingSchema"),
659
- "z-index": 99
660
- }, {
661
- default: m(() => [
662
- o(C, {
663
- name: "warning",
664
- class: "text-fm-color-system-error-300"
665
- })
666
- ]),
667
- _: 1
668
- }, 8, ["content"])),
669
- (ne = n.tileIds) != null && ne.length ? J("", !0) : (u(), k(R, {
670
- key: 1,
671
- content: l(p)("report.section.filter.missingTileIds"),
672
- "z-index": 99
673
- }, {
674
- default: m(() => [
675
- o(C, {
676
- name: "warning",
677
- class: "text-fm-color-system-warning-300"
678
- })
679
- ]),
680
- _: 1
681
- }, 8, ["content"]))
682
- ]),
683
- t[12] || (t[12] = h("div", { class: "grow" }, null, -1)),
684
- o(O, {
685
- trigger: "click",
686
- shift: !0,
687
- "stop-click-propagation": !0
688
- }, {
689
- "menu-button": m(() => [
690
- o(_, {
691
- "append-icon": "more_vert",
692
- variant: "tertiary"
693
- })
694
- ]),
695
- default: m(() => [
696
- (u(), T(j, null, ee(M, (Z, ke) => o(P, {
697
- key: ke,
698
- onClick: (wl) => Z.onClick(Y)
699
- }, {
700
- label: m(() => [
701
- h("p", {
702
- class: ue(
703
- Z.variant === "destructive" ? " text-fm-color-system-error-300" : ""
704
- )
705
- }, z(Z.label), 3)
706
- ]),
707
- _: 2
708
- }, 1032, ["onClick"])), 64))
709
- ]),
710
- _: 2
711
- }, 1024)
712
- ];
713
- }),
714
- _: 2
715
- }, 1024)
716
- ]),
717
- _: 1
718
- }, 8, ["list"])
719
- ]),
720
- _: 1
721
- })
722
- ])
723
- ]),
724
- _: 1
725
- }),
726
- h("div", al, [
727
- o(_, {
728
- label: l(p)("report.editor.addWidget"),
729
- variant: "secondary",
730
- icon: "add",
731
- "icon-position": "prepend",
732
- "border-color": l(re).ColorPrimary,
733
- "text-color": l(re).ColorPrimary,
734
- onClick: t[8] || (t[8] = (n) => L.value = !0)
735
- }, null, 8, ["label", "border-color", "text-color"]),
736
- o(me, null, {
737
- default: m(() => [
738
- o(l(Ce), {
739
- list: r.value.tiles,
740
- "item-key": "id",
741
- class: "flex flex-col gap-2 cursor-grab",
742
- handle: ".handle"
743
- }, {
744
- item: m(({ element: n, index: Y }) => [
745
- o(ie, { class: "!cursor-grab border rounded-md border-neutral-300" }, {
746
- default: m(() => [
747
- o(C, {
748
- name: "drag_handle",
749
- class: "handle"
750
- }),
751
- o(R, {
752
- content: n.widget.title ? oe(n.widget.title) : l(p)("report.editor.widget", { index: Y + 1 }),
753
- class: "handle"
754
- }, {
755
- default: m(() => [
756
- h("p", nl, z(n.widget.title ? oe(n.widget.title) : l(p)("report.editor.widget", { index: Y + 1 })), 1)
757
- ]),
758
- _: 2
759
- }, 1032, ["content"]),
760
- t[13] || (t[13] = h("div", { class: "grow" }, null, -1)),
761
- o(O, {
762
- trigger: "click",
763
- shift: !0,
764
- "stop-click-propagation": !0
765
- }, {
766
- "menu-button": m(() => [
767
- o(_, {
768
- "append-icon": "more_vert",
769
- variant: "tertiary"
770
- })
771
- ]),
772
- default: m(() => [
773
- (u(), T(j, null, ee(x, (ne, Z) => o(P, {
774
- key: Z,
775
- onClick: (ke) => ne.onClick(Y)
776
- }, {
777
- label: m(() => [
778
- h("p", {
779
- class: ue(
780
- ne.variant === "destructive" ? " text-fm-color-system-error-300" : ""
781
- )
782
- }, z(ne.label), 3)
783
- ]),
784
- _: 2
785
- }, 1032, ["onClick"])), 64))
786
- ]),
787
- _: 2
788
- }, 1024)
789
- ]),
790
- _: 2
791
- }, 1024)
792
- ]),
793
- _: 1
794
- }, 8, ["list"])
795
- ]),
796
- _: 1
797
- })
798
- ])
799
- ]),
800
- _: 1
801
- }, 512)
802
- ]),
803
- _: 1
804
- }, 8, ["model-value"]);
805
- };
806
- }
807
- }), rl = { class: "h-full w-full overflow-x-hidden" }, il = { class: "flex flex-col bg-fm-color-neutral-white w-[400px]" }, sl = { class: "flex bg-fm-color-neutral-white w-[88px]" }, ul = {
808
- key: 1,
809
- class: "w-full overflow-y-auto"
810
- }, dl = {
811
- key: 0,
812
- class: "w-full grid grid-cols-12 gap-[24px] p-24"
813
- }, ml = { class: "col-span-12 mb-4 flex flex-wrap gap-2 pb-2" }, cl = { key: 2 }, pl = {
814
- key: 0,
815
- class: "grid grid-cols-12 gap-[16px]"
816
- }, vl = { class: "col-span-12 mb-4 flex flex-wrap gap-2 pb-2" }, fl = {
817
- key: 3,
818
- class: "h-full w-full flex items-start justify-center bg-fm-color-neutral-white py-24",
819
- style: { backgroundColor: "#F6F8FC" }
820
- }, gl = {
821
- key: 0,
822
- class: "w-full grid grid-cols-12 gap-[24px] p-24"
823
- }, bl = /* @__PURE__ */ K({
824
- __name: "ReportEditorViewport",
825
- props: /* @__PURE__ */ G({
826
- hideConfiguration: { type: Boolean, required: !1, default: !1 },
827
- previewWidth: { type: Number, required: !0 },
828
- previewHeight: { type: Number, required: !0 },
829
- previewScale: { type: Number, required: !0 }
830
- }, {
831
- modelValue: { required: !0, default: () => {
832
- } },
833
- modelModifiers: {}
834
- }),
835
- emits: /* @__PURE__ */ G(["hideConfiguration"], ["update:modelValue"]),
836
- setup(V, { emit: s }) {
837
- const { breakpoints: r } = fe(), i = A(V, "modelValue"), y = V, c = U(() => y.previewWidth > 0 && y.previewHeight > 0), F = U(() => r.value.sm || r.value.xs), g = s;
838
- return (S, d) => {
839
- const D = f("FmCircularProgress"), q = f("FmButton"), $ = f("FmMenuDivider"), B = f("FmCard");
840
- return u(), T("div", rl, [
841
- i.value ? (u(), T(j, { key: 1 }, [
842
- c.value ? J("", !0) : (u(), k(Je, {
843
- key: 0,
844
- "model-value": !y.hideConfiguration
845
- }, {
846
- right: m(() => [
847
- h("div", il, [
848
- i.value ? (u(), k(Te, {
849
- key: 0,
850
- modelValue: i.value,
851
- "onUpdate:modelValue": d[0] || (d[0] = (b) => i.value = b),
852
- "hide-configuration": y.hideConfiguration,
853
- onHideConfiguration: d[1] || (d[1] = (b) => g("hideConfiguration", b))
854
- }, null, 8, ["modelValue", "hide-configuration"])) : J("", !0)
855
- ])
856
- ]),
857
- left: m(() => [
858
- h("div", sl, [
859
- o(q, {
860
- variant: "secondary",
861
- icon: "keyboard_double_arrow_right",
862
- "border-color": l(re).ColorPrimary,
863
- "text-color": l(re).ColorPrimary,
864
- class: "m-24 my-16",
865
- size: "md",
866
- onClick: d[2] || (d[2] = (b) => g("hideConfiguration", !y.hideConfiguration))
867
- }, null, 8, ["border-color", "text-color"])
868
- ])
869
- ]),
870
- _: 1
871
- }, 8, ["model-value"])),
872
- o($, {
873
- vertical: "",
874
- style: { margin: "0px" }
875
- }),
876
- !F.value && !c.value ? (u(), T("div", ul, [
877
- i.value.tiles.length > 0 ? (u(), T("div", dl, [
878
- h("div", ml, [
879
- o(Se)
880
- ]),
881
- (u(!0), T(j, null, ee(i.value.tiles, (b, N) => (u(), k(he, {
882
- key: `${l(se)()}_${N}`,
883
- "model-value": b,
884
- index: N,
885
- "hide-export": !0
886
- }, null, 8, ["model-value", "index"]))), 128))
887
- ])) : (u(), k(ye, { key: 1 }))
888
- ])) : F.value && !c.value ? (u(), T("div", cl, [
889
- o(B, { class: "px-5 pb-28" }, {
890
- default: m(() => [
891
- i.value.tiles.length > 0 ? (u(), T("div", pl, [
892
- h("div", vl, [
893
- o(Se)
894
- ]),
895
- (u(!0), T(j, null, ee(i.value.tiles, (b, N) => (u(), k(he, {
896
- key: `${l(se)()}_${N}`,
897
- "model-value": b,
898
- index: N,
899
- "hide-export": !0
900
- }, null, 8, ["model-value", "index"]))), 128))
901
- ])) : (u(), k(ye, { key: 1 }))
902
- ]),
903
- _: 1
904
- }),
905
- i.value ? (u(), k(Te, {
906
- key: 0,
907
- modelValue: i.value,
908
- "onUpdate:modelValue": d[3] || (d[3] = (b) => i.value = b),
909
- "hide-configuration": y.hideConfiguration,
910
- onHideConfiguration: d[4] || (d[4] = (b) => {
911
- g("hideConfiguration", b);
912
- })
913
- }, null, 8, ["modelValue", "hide-configuration"])) : J("", !0)
914
- ])) : (u(), T("div", fl, [
915
- h("div", {
916
- style: we({
917
- transformOrigin: "top center",
918
- transform: `scale(${y.previewScale})`
919
- })
920
- }, [
921
- h("div", {
922
- class: "overflow-y-auto bg-white rounded-lg",
923
- style: we({
924
- width: y.previewWidth + "px",
925
- height: y.previewHeight + "px"
926
- })
927
- }, [
928
- i.value.tiles.length > 0 ? (u(), T("div", gl, [
929
- (u(!0), T(j, null, ee(i.value.tiles, (b, N) => (u(), k(he, {
930
- key: `${l(se)()}_${N}`,
931
- "model-value": b,
932
- index: N,
933
- "hide-export": !0,
934
- "custom-screen-width": y.previewWidth
935
- }, null, 8, ["model-value", "index", "custom-screen-width"]))), 128))
936
- ])) : (u(), k(ye, { key: 1 }))
937
- ], 4)
938
- ], 4)
939
- ]))
940
- ], 64)) : (u(), k(D, { key: 0 }))
941
- ]);
942
- };
943
- }
944
- }), hl = { class: "flex items-center gap-4" }, yl = { class: "flex justify-center items-center gap-2 w-full" }, _l = { class: "flex gap-4" }, Dl = /* @__PURE__ */ K({
945
- __name: "ReportEditor",
946
- setup(V) {
947
- const s = Ue(), r = De(), i = Me(), { promptLoader: y } = Ge(), { t: c } = de(), { currentReport: F, editingReport: g } = ve(i), { breakpoints: S } = fe(), d = U(() => {
948
- var x;
949
- return !((x = g.value) != null && x.editable);
950
- }), D = U(() => {
951
- var x;
952
- return ((x = g.value) == null ? void 0 : x.name) ?? c("report.editor.newReport");
953
- }), q = Be(), { promptMessage: $ } = Ie(), B = I(!1);
954
- async function b() {
955
- if (!g.value || g.value.tiles.length === 0) {
956
- q.open({ message: c("report.messages.noWidget"), type: "error" });
957
- return;
958
- }
959
- const x = d.value ? c("report.common.clone") : c("report.common.save");
960
- if (await $({
961
- title: `${c("report.messages.saveReport")}`,
962
- message: c("report.messages.confirmAction", { action: x, name: D.value })
963
- }))
964
- try {
965
- await y(async () => {
966
- if (d.value) {
967
- const a = JSON.parse(JSON.stringify(g.value));
968
- a.editable = !0, a.id = "", a.name = `${a.name} ${c("report.common.duplicate")}`, await i.createOrUpdateReport(a);
969
- } else
970
- g.value && await i.createOrUpdateReport(g.value);
971
- s.push({
972
- name: "reportView",
973
- query: r.query
974
- });
975
- });
976
- } catch (a) {
977
- console.log(a), q.open({
978
- message: c("report.messages.failedToAction", { action: x }),
979
- type: "error"
980
- });
981
- }
982
- }
983
- async function N() {
984
- var M;
985
- if (!g.value) return;
986
- await $({
987
- title: c("report.common.report", 1),
988
- message: c("report.editor.notSaved", { name: (M = g.value) == null ? void 0 : M.name })
989
- }) && (g.value = JSON.parse(JSON.stringify(F.value)), s.back());
990
- }
991
- Re(() => {
992
- g.value || s.push({ name: "reports" });
993
- });
994
- const Q = [
995
- {
996
- label: c("report.common.default"),
997
- width: void 0,
998
- height: void 0
999
- },
1000
- {
1001
- label: c("report.editor.devices.desktop"),
1002
- width: 1920,
1003
- height: 1080
1004
- },
1005
- {
1006
- label: c("report.editor.devices.tablet"),
1007
- width: 820,
1008
- height: 1180
1009
- },
1010
- {
1011
- label: c("report.editor.devices.phone"),
1012
- width: 390,
1013
- height: 859
1014
- }
1015
- ], W = I(Q[0]), E = I(!1), L = U(() => E.value ? Math.max(W.value.width || 0, W.value.height || 0) : Math.min(W.value.width || 0, W.value.height || 0)), p = U(() => E.value ? Math.min(W.value.width || 0, W.value.height || 0) : Math.max(W.value.width || 0, W.value.height || 0)), X = U(() => window.innerHeight - 72 - 56), le = U(() => {
1016
- if (!L.value) return 1;
1017
- let x = (X.value - 48) / L.value, M = p.value * x;
1018
- return M > window.innerWidth && (x = window.innerWidth / p.value, M = p.value * x), x > 1 ? 1 : x;
1019
- });
1020
- function te(x) {
1021
- W.value = x;
1022
- }
1023
- function oe() {
1024
- E.value = !E.value;
1025
- }
1026
- return (x, M) => {
1027
- const a = f("FmTooltip"), e = f("FmButton"), t = f("FmPageHead");
1028
- return u(), k(Le, null, {
1029
- default: m(() => [
1030
- o(t, {
1031
- actions: [
1032
- { label: l(c)("report.common.cancel"), value: "cancel", isPrimary: !1 },
1033
- { label: l(c)("report.common.saveReport"), value: "save", isPrimary: !0, prependIcon: "download" }
1034
- ],
1035
- "onClick:action": M[0] || (M[0] = (v) => {
1036
- v === "cancel" && N(), v === "save" && b();
1037
- })
1038
- }, {
1039
- title: m(() => [
1040
- h("div", hl, [
1041
- o(a, {
1042
- content: D.value,
1043
- placement: "bottom"
1044
- }, {
1045
- default: m(() => [
1046
- h("p", {
1047
- class: ue(`${l(S).sm || l(S).xs ? "hidden" : ""} text-ellipsis overflow-hidden text-nowrap fm-typo-en-title-md-600 w-[250px]`)
1048
- }, z(D.value), 3)
1049
- ]),
1050
- _: 1
1051
- }, 8, ["content"]),
1052
- h("div", yl, [
1053
- h("div", _l, [
1054
- (u(), T(j, null, ee(Q, (v) => {
1055
- var w;
1056
- return o(e, {
1057
- key: v.label,
1058
- label: v.label,
1059
- variant: ((w = W.value) == null ? void 0 : w.label) === v.label ? "primary" : "secondary",
1060
- size: "md",
1061
- onClick: (_) => te(v)
1062
- }, null, 8, ["label", "variant", "onClick"]);
1063
- }), 64))
1064
- ]),
1065
- o(e, {
1066
- icon: "screen_rotation",
1067
- variant: "tertiary",
1068
- size: "md",
1069
- class: "text-fm-color-typo-primary",
1070
- onClick: oe
1071
- })
1072
- ])
1073
- ])
1074
- ]),
1075
- _: 1
1076
- }, 8, ["actions"]),
1077
- l(g) ? (u(), k(bl, {
1078
- key: 0,
1079
- modelValue: l(g),
1080
- "onUpdate:modelValue": M[1] || (M[1] = (v) => Ne(g) ? g.value = v : null),
1081
- style: we({ height: X.value + "px" }),
1082
- class: ue(l(S).lg || l(S).md ? "flex" : ""),
1083
- "hide-configuration": B.value,
1084
- "preview-width": p.value,
1085
- "preview-height": L.value,
1086
- "preview-scale": le.value,
1087
- onHideConfiguration: M[2] || (M[2] = (v) => B.value = v)
1088
- }, null, 8, ["modelValue", "style", "class", "hide-configuration", "preview-width", "preview-height", "preview-scale"])) : J("", !0)
1089
- ]),
1090
- _: 1
1091
- });
1092
- };
1093
- }
1094
- });
1095
- export {
1096
- Dl as default
1097
- };