@burdenoff/microfe-bigconsole 2026.615.3 → 2026.617.1

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.
@@ -309,114 +309,131 @@ var Ee = p(function({ widget: e, onSave: t }) {
309
309
  })
310
310
  ]
311
311
  });
312
- }), I = p(function({ isOpen: s, onClose: c }) {
313
- let [l, u] = _("general"), [d, f] = _("idle"), [p, g] = _(null), [y, I] = _(!1), L = e((e) => e.selectedWidgetId), De = e((e) => e.widgets), R = e((e) => e.updateWidget), z = L ? De.get(L) : void 0;
312
+ });
313
+ function I(e) {
314
+ let t = e;
315
+ return {
316
+ title: e.title || "",
317
+ description: e.description || "",
318
+ refreshInterval: e.refreshInterval ?? void 0,
319
+ renderer: e.renderer || "BIGCONSOLE",
320
+ template: e.template,
321
+ dataSinkId: t.dataSinkId ?? void 0,
322
+ datasetId: t.datasetId ?? void 0,
323
+ parserId: t.parserId ?? void 0,
324
+ parserRules: t.parserRules ?? void 0,
325
+ config: e.config || {},
326
+ drilldownConfig: e.drilldown ? {
327
+ enabled: e.drilldown.enabled ?? !1,
328
+ targetDashboardId: e.drilldown.targetDashboardId ?? "",
329
+ navigationMode: e.drilldown.navigationMode ?? "MODAL",
330
+ parameterMapping: e.drilldown.parameterMapping ?? {},
331
+ passGlobalFilters: e.drilldown.passGlobalFilters ?? !0,
332
+ maxDepth: e.drilldown.maxDepth ?? 3,
333
+ openIn: e.drilldown.openIn ?? "same"
334
+ } : void 0
335
+ };
336
+ }
337
+ var L = p(function({ isOpen: s, onClose: c }) {
338
+ let [l, u] = _("general"), [d, f] = _("idle"), [p, y] = _(null), [L, R] = _(!1), z = e((e) => e.selectedWidgetId), De = e((e) => e.widgets), B = e((e) => e.updateWidget), V = z ? De.get(z) : void 0, H = g(null);
314
339
  h(() => {
315
- z ? (g({
316
- title: z.title || "",
317
- description: z.description || "",
318
- refreshInterval: z.refreshInterval ?? void 0,
319
- renderer: z.renderer || "BIGCONSOLE",
320
- template: z.template,
321
- dataSinkId: z.dataSinkId ?? void 0,
322
- datasetId: z.datasetId ?? void 0,
323
- parserId: z.parserId ?? void 0,
324
- parserRules: z.parserRules ?? void 0,
325
- config: z.config || {},
326
- drilldownConfig: z.drilldown ? {
327
- enabled: z.drilldown.enabled ?? !1,
328
- targetDashboardId: z.drilldown.targetDashboardId ?? "",
329
- navigationMode: z.drilldown.navigationMode ?? "MODAL",
330
- parameterMapping: z.drilldown.parameterMapping ?? {},
331
- passGlobalFilters: z.drilldown.passGlobalFilters ?? !0,
332
- maxDepth: z.drilldown.maxDepth ?? 3,
333
- openIn: z.drilldown.openIn ?? "same"
334
- } : void 0
335
- }), I(!1), f("idle")) : g(null);
336
- }, [z]);
337
- let { updateWidget: B } = n(z?.pageId, z?.dashboardId, { skipFetch: !0 }), { createDrilldown: V, updateDrilldown: H, deleteDrilldown: U } = r(), { dataSinks: W } = a({ skipFetch: !1 }), [G, K] = _(null), { executeParser: Oe } = o({
338
- consoleId: z?.dashboardId,
340
+ if (!z) {
341
+ H.current = null, y(null), R(!1), f("idle");
342
+ return;
343
+ }
344
+ let e = H.current !== z;
345
+ if (H.current = z, V) {
346
+ if (L && !e) return;
347
+ y(I(V)), R(!1), f("idle");
348
+ } else y(null), R(!1), f("idle");
349
+ }, [
350
+ z,
351
+ V,
352
+ L
353
+ ]);
354
+ let { updateWidget: U } = n(V?.pageId, V?.dashboardId, { skipFetch: !0 }), { createDrilldown: Oe, updateDrilldown: ke, deleteDrilldown: Ae } = r(), { dataSinks: W } = a({ skipFetch: !1 }), [G, K] = _(null), { executeParser: je } = o({
355
+ consoleId: V?.dashboardId,
339
356
  skipFetch: !0
340
- }), [ke, Ae] = _(!1), { actions: q, loading: J, createAction: je, updateAction: Me, deleteAction: Ne, reorderActions: Y } = i(L || void 0), [Pe, X] = _(!1), [Fe, Z] = _(void 0), [Ie, Le] = _(!1), Re = m(() => {
357
+ }), [Me, Ne] = _(!1), { actions: q, loading: J, createAction: Pe, updateAction: Fe, deleteAction: Ie, reorderActions: Y } = i(z || void 0), [Le, X] = _(!1), [Re, Z] = _(void 0), [ze, Be] = _(!1), Ve = m(() => {
341
358
  Z(void 0), X(!0);
342
- }, []), ze = m((e) => {
359
+ }, []), He = m((e) => {
343
360
  Z(e), X(!0);
344
- }, []), Be = m(async (e) => {
345
- if (L) {
346
- Le(!0);
361
+ }, []), Ue = m(async (e) => {
362
+ if (z) {
363
+ Be(!0);
347
364
  try {
348
365
  let t = null;
349
- if (t = "id" in e ? await Me(e) : await je(e), t) {
366
+ if (t = "id" in e ? await Fe(e) : await Pe(e), t) {
350
367
  let n = [...q];
351
368
  if ("id" in e) {
352
369
  let r = n.findIndex((t) => t.id === e.id);
353
370
  r >= 0 && (n[r] = t);
354
371
  } else n.push(t);
355
- R(L, { actions: n.sort((e, t) => e.order - t.order) });
372
+ B(z, { actions: n.sort((e, t) => e.order - t.order) });
356
373
  }
357
374
  X(!1), Z(void 0);
358
375
  } catch {} finally {
359
- Le(!1);
376
+ Be(!1);
360
377
  }
361
378
  }
362
379
  }, [
363
- L,
380
+ z,
364
381
  q,
365
- je,
366
- Me,
367
- R
368
- ]), Ve = m(async (e) => {
369
- L && window.confirm("Are you sure you want to delete this action?") && await Ne(e) && R(L, { actions: q.filter((t) => t.id !== e) });
382
+ Pe,
383
+ Fe,
384
+ B
385
+ ]), We = m(async (e) => {
386
+ z && window.confirm("Are you sure you want to delete this action?") && await Ie(e) && B(z, { actions: q.filter((t) => t.id !== e) });
370
387
  }, [
371
- L,
388
+ z,
372
389
  q,
373
- Ne,
374
- R
375
- ]), He = m(async (e) => {
376
- if (!L || e === 0) return;
390
+ Ie,
391
+ B
392
+ ]), Ge = m(async (e) => {
393
+ if (!z || e === 0) return;
377
394
  let t = [...q].sort((e, t) => e.order - t.order), n = t.map((e) => e.id);
378
- [n[e - 1], n[e]] = [n[e], n[e - 1]], await Y(n) && R(L, { actions: t.map((e, t) => ({
395
+ [n[e - 1], n[e]] = [n[e], n[e - 1]], await Y(n) && B(z, { actions: t.map((e, t) => ({
379
396
  ...e,
380
397
  order: n.indexOf(e.id)
381
398
  })).sort((e, t) => e.order - t.order) });
382
399
  }, [
383
- L,
400
+ z,
384
401
  q,
385
402
  Y,
386
- R
387
- ]), Ue = m(async (e) => {
388
- if (!L) return;
403
+ B
404
+ ]), Ke = m(async (e) => {
405
+ if (!z) return;
389
406
  let t = [...q].sort((e, t) => e.order - t.order);
390
407
  if (e === t.length - 1) return;
391
408
  let n = t.map((e) => e.id);
392
- [n[e], n[e + 1]] = [n[e + 1], n[e]], await Y(n) && R(L, { actions: t.map((e, t) => ({
409
+ [n[e], n[e + 1]] = [n[e + 1], n[e]], await Y(n) && B(z, { actions: t.map((e, t) => ({
393
410
  ...e,
394
411
  order: n.indexOf(e.id)
395
412
  })).sort((e, t) => e.order - t.order) });
396
413
  }, [
397
- L,
414
+ z,
398
415
  q,
399
416
  Y,
400
- R
417
+ B
401
418
  ]);
402
419
  h(() => {
403
- L && q.length >= 0 && !J && R(L, { actions: q });
420
+ z && q.length >= 0 && !J && B(z, { actions: q });
404
421
  }, [
405
- L,
422
+ z,
406
423
  q,
407
424
  J,
408
- R
425
+ B
409
426
  ]);
410
427
  let Q = m((e, t) => {
411
- g((n) => n && {
428
+ y((n) => n && {
412
429
  ...n,
413
430
  [e]: t
414
- }), I(!0);
431
+ }), R(!0);
415
432
  }, []), $ = m((e) => {
416
- g((t) => t && {
433
+ y((t) => t && {
417
434
  ...t,
418
435
  config: e
419
- }), I(!0);
436
+ }), R(!0);
420
437
  }, []);
421
438
  h(() => {
422
439
  if (p?.dataSinkId && W.length > 0) {
@@ -424,59 +441,59 @@ var Ee = p(function({ widget: e, onSave: t }) {
424
441
  e && K(e.key);
425
442
  } else K(null);
426
443
  }, [p?.dataSinkId, W]);
427
- let We = m((e) => {
444
+ let qe = m((e) => {
428
445
  if (K(e), e) {
429
446
  let t = W.find((t) => t.key === e);
430
- t && (Q("dataSinkId", t.id), g((t) => t && {
447
+ t && (Q("dataSinkId", t.id), y((t) => t && {
431
448
  ...t,
432
449
  config: {
433
450
  ...t.config,
434
451
  dataSinkKey: e
435
452
  }
436
- }), I(!0));
437
- } else Q("dataSinkId", void 0), g((e) => e && {
453
+ }), R(!0));
454
+ } else Q("dataSinkId", void 0), y((e) => e && {
438
455
  ...e,
439
456
  config: {
440
457
  ...e.config,
441
458
  dataSinkKey: void 0
442
459
  },
443
460
  parserId: void 0
444
- }), I(!0);
445
- }, [W, Q]), Ge = m(async (e) => {
446
- if (Q("parserId", e || void 0), e && z) {
447
- Ae(!0);
461
+ }), R(!0);
462
+ }, [W, Q]), Je = m(async (e) => {
463
+ if (Q("parserId", e || void 0), e && V) {
464
+ Ne(!0);
448
465
  try {
449
- let t = await Oe(e);
466
+ let t = await je(e);
450
467
  if (t?.success && t.output) {
451
468
  let e = we(t.output);
452
- (e.labelField || e.valueField) && (g((t) => {
469
+ (e.labelField || e.valueField) && (y((t) => {
453
470
  if (!t) return t;
454
471
  let n = t.config || {}, r = { ...n };
455
472
  return e.labelField && !n.labelField && (r.labelField = e.labelField), e.valueField && !n.valueField && (r.valueField = e.valueField), e.xAxisField && !n.xAxisField && (r.xAxisField = e.xAxisField), {
456
473
  ...t,
457
474
  config: r
458
475
  };
459
- }), I(!0));
476
+ }), R(!0));
460
477
  }
461
478
  } catch (e) {
462
479
  console.warn("Failed to auto-detect parser fields:", e);
463
480
  } finally {
464
- Ae(!1);
481
+ Ne(!1);
465
482
  }
466
483
  }
467
484
  }, [
468
485
  Q,
469
- Oe,
470
- z
471
- ]), Ke = m(async () => {
472
- if (!(!z || !p)) {
486
+ je,
487
+ V
488
+ ]), Ye = m(async () => {
489
+ if (!(!V || !p)) {
473
490
  f("saving");
474
491
  try {
475
492
  let e = {
476
- ...z.metadata || {},
493
+ ...V.metadata || {},
477
494
  description: p.description || ""
478
- }, t = await B({
479
- id: z.id,
495
+ }, t = await U({
496
+ id: V.id,
480
497
  title: p.title,
481
498
  renderer: p.renderer,
482
499
  template: p.template,
@@ -487,12 +504,12 @@ var Ee = p(function({ widget: e, onSave: t }) {
487
504
  parserId: p.parserId,
488
505
  parserRules: p.parserRules,
489
506
  metadata: e
490
- }), n = z.drilldown;
507
+ }), n = V.drilldown;
491
508
  if (p.drilldownConfig) {
492
509
  let { enabled: e, targetDashboardId: t, navigationMode: r, parameterMapping: i, passGlobalFilters: a, maxDepth: o, openIn: s } = p.drilldownConfig;
493
- if (z.drilldown?.id) {
494
- let c = await H({
495
- id: z.drilldown.id,
510
+ if (V.drilldown?.id) {
511
+ let c = await ke({
512
+ id: V.drilldown.id,
496
513
  targetDashboardId: t,
497
514
  parameterMapping: i,
498
515
  navigationMode: r,
@@ -503,8 +520,8 @@ var Ee = p(function({ widget: e, onSave: t }) {
503
520
  });
504
521
  c && (n = c);
505
522
  } else if (t) {
506
- let c = await V({
507
- sourceWidgetId: z.id,
523
+ let c = await Oe({
524
+ sourceWidgetId: V.id,
508
525
  targetDashboardId: t,
509
526
  parameterMapping: i || {},
510
527
  navigationMode: r,
@@ -517,8 +534,8 @@ var Ee = p(function({ widget: e, onSave: t }) {
517
534
  enabled: e
518
535
  });
519
536
  }
520
- } else z.drilldown?.id && !p.drilldownConfig && (await U(z.drilldown.id), n = void 0);
521
- t ? (R(z.id, {
537
+ } else V.drilldown?.id && !p.drilldownConfig && (await Ae(V.drilldown.id), n = void 0);
538
+ t ? (B(V.id, {
522
539
  title: p.title,
523
540
  description: p.description,
524
541
  renderer: p.renderer,
@@ -531,49 +548,29 @@ var Ee = p(function({ widget: e, onSave: t }) {
531
548
  parserRules: p.parserRules,
532
549
  drilldown: n,
533
550
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
534
- }), f("saved"), I(!1), setTimeout(() => f("idle"), 2e3)) : f("error");
551
+ }), f("saved"), R(!1), setTimeout(() => f("idle"), 2e3)) : f("error");
535
552
  } catch {
536
553
  f("error");
537
554
  }
538
555
  }
539
556
  }, [
540
- z,
557
+ V,
541
558
  p,
559
+ U,
542
560
  B,
543
- R,
544
- V,
545
- H,
546
- U
547
- ]), qe = m(() => {
548
- z && (g({
549
- title: z.title || "",
550
- description: z.description || "",
551
- refreshInterval: z.refreshInterval ?? void 0,
552
- renderer: z.renderer || "BIGCONSOLE",
553
- template: z.template,
554
- dataSinkId: z.dataSinkId ?? void 0,
555
- datasetId: z.datasetId ?? void 0,
556
- parserId: z.parserId ?? void 0,
557
- parserRules: z.parserRules ?? void 0,
558
- config: z.config || {},
559
- drilldownConfig: z.drilldown ? {
560
- enabled: z.drilldown.enabled ?? !1,
561
- targetDashboardId: z.drilldown.targetDashboardId ?? "",
562
- navigationMode: z.drilldown.navigationMode ?? "MODAL",
563
- parameterMapping: z.drilldown.parameterMapping ?? {},
564
- passGlobalFilters: z.drilldown.passGlobalFilters ?? !0,
565
- maxDepth: z.drilldown.maxDepth ?? 3,
566
- openIn: z.drilldown.openIn ?? "same"
567
- } : void 0
568
- }), I(!1), f("idle"));
569
- }, [z]), Je = m((e) => {
561
+ Oe,
562
+ ke,
563
+ Ae
564
+ ]), Xe = m(() => {
565
+ V && (y(I(V)), R(!1), f("idle"));
566
+ }, [V]), Ze = m((e) => {
570
567
  $(e);
571
- }, [$]), Ye = m((e) => {
572
- g((t) => t && {
568
+ }, [$]), Qe = m((e) => {
569
+ y((t) => t && {
573
570
  ...t,
574
571
  drilldownConfig: e
575
- }), I(!0);
576
- }, []), Xe = z ? t(z.type) : null, Ze = z ? Te(z.type) : null;
572
+ }), R(!0);
573
+ }, []), $e = V ? t(V.type) : null, et = V ? Te(V.type) : null;
577
574
  return /* @__PURE__ */ S(me, {
578
575
  open: s,
579
576
  onOpenChange: (e) => !e && c(),
@@ -638,7 +635,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
638
635
  color: "var(--color-text-primary)",
639
636
  margin: 0
640
637
  },
641
- children: z ? "Widget Properties" : "Properties"
638
+ children: V ? "Widget Properties" : "Properties"
642
639
  }),
643
640
  d === "saving" && /* @__PURE__ */ S(M, { style: {
644
641
  height: "var(--size-icon-sm)",
@@ -655,19 +652,19 @@ var Ee = p(function({ widget: e, onSave: t }) {
655
652
  color: "var(--color-status-error-bg)"
656
653
  } })
657
654
  ]
658
- }), Xe && /* @__PURE__ */ S(ge, {
655
+ }), $e && /* @__PURE__ */ S(ge, {
659
656
  style: {
660
657
  fontSize: "var(--font-size-body-sm)",
661
658
  color: "var(--color-text-secondary)",
662
659
  margin: "var(--space-controlGap) 0 0 0",
663
660
  fontWeight: "var(--font-weight-medium)"
664
661
  },
665
- children: Xe.name
662
+ children: $e.name
666
663
  })]
667
664
  })]
668
665
  })
669
666
  }),
670
- z ? /* @__PURE__ */ C(ye, {
667
+ V ? /* @__PURE__ */ C(ye, {
671
668
  value: l,
672
669
  onValueChange: (e) => u(e),
673
670
  style: {
@@ -901,7 +898,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
901
898
  }),
902
899
  p.renderer && p.renderer !== "BIGCONSOLE" && /* @__PURE__ */ S(Ee, {
903
900
  widget: {
904
- ...z,
901
+ ...V,
905
902
  template: p.template,
906
903
  renderer: p.renderer
907
904
  },
@@ -930,7 +927,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
930
927
  /* @__PURE__ */ S(E, { children: "DataSink" }),
931
928
  /* @__PURE__ */ S(ee, {
932
929
  value: G,
933
- onChange: We,
930
+ onChange: qe,
934
931
  placeholder: "Select a DataSink..."
935
932
  }),
936
933
  G && /* @__PURE__ */ C("p", {
@@ -955,9 +952,9 @@ var Ee = p(function({ widget: e, onSave: t }) {
955
952
  children: [
956
953
  /* @__PURE__ */ S(E, { children: "Parser" }),
957
954
  /* @__PURE__ */ S(te, {
958
- consoleId: z?.dashboardId || "",
955
+ consoleId: V?.dashboardId || "",
959
956
  value: p.parserId || null,
960
- onChange: Ge,
957
+ onChange: Je,
961
958
  filterInputSinkKey: G || void 0,
962
959
  filterStatus: void 0,
963
960
  placeholder: G ? "Select a parser..." : "Select a DataSink first...",
@@ -965,7 +962,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
965
962
  }),
966
963
  /* @__PURE__ */ S("p", {
967
964
  className: "text-xs text-muted-foreground",
968
- children: ke ? /* @__PURE__ */ C("span", {
965
+ children: Me ? /* @__PURE__ */ C("span", {
969
966
  className: "flex items-center gap-1",
970
967
  children: [/* @__PURE__ */ S(M, { style: {
971
968
  width: "12px",
@@ -1316,7 +1313,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
1316
1313
  children: "Configure buttons on this widget"
1317
1314
  })] }), /* @__PURE__ */ C(w, {
1318
1315
  size: "sm",
1319
- onClick: Re,
1316
+ onClick: Ve,
1320
1317
  children: [/* @__PURE__ */ S(le, { className: "size-4" }), "Add"]
1321
1318
  })]
1322
1319
  }), J ? /* @__PURE__ */ S("div", {
@@ -1340,14 +1337,14 @@ var Ee = p(function({ widget: e, onSave: t }) {
1340
1337
  children: [/* @__PURE__ */ S(w, {
1341
1338
  variant: "ghost",
1342
1339
  size: "icon-sm",
1343
- onClick: () => He(t),
1340
+ onClick: () => Ge(t),
1344
1341
  disabled: t === 0,
1345
1342
  className: "h-5 w-5",
1346
1343
  children: /* @__PURE__ */ S(se, { className: "size-3" })
1347
1344
  }), /* @__PURE__ */ S(w, {
1348
1345
  variant: "ghost",
1349
1346
  size: "icon-sm",
1350
- onClick: () => Ue(t),
1347
+ onClick: () => Ke(t),
1351
1348
  disabled: t === q.length - 1,
1352
1349
  className: "h-5 w-5",
1353
1350
  children: /* @__PURE__ */ S(oe, { className: "size-3" })
@@ -1375,12 +1372,12 @@ var Ee = p(function({ widget: e, onSave: t }) {
1375
1372
  children: [/* @__PURE__ */ S(w, {
1376
1373
  variant: "ghost",
1377
1374
  size: "icon-sm",
1378
- onClick: () => ze(e),
1375
+ onClick: () => He(e),
1379
1376
  children: /* @__PURE__ */ S(ce, { className: "size-4" })
1380
1377
  }), /* @__PURE__ */ S(w, {
1381
1378
  variant: "ghost",
1382
1379
  size: "icon-sm",
1383
- onClick: () => Ve(e.id),
1380
+ onClick: () => We(e.id),
1384
1381
  children: /* @__PURE__ */ S(ue, { className: "size-4" })
1385
1382
  })]
1386
1383
  })
@@ -1393,33 +1390,33 @@ var Ee = p(function({ widget: e, onSave: t }) {
1393
1390
  value: "drilldown",
1394
1391
  className: "mt-0",
1395
1392
  children: /* @__PURE__ */ S(ae, {
1396
- widget: z,
1397
- onChange: Ye
1393
+ widget: V,
1394
+ onChange: Qe
1398
1395
  })
1399
1396
  }),
1400
1397
  /* @__PURE__ */ S(N, {
1401
1398
  value: "webhooks",
1402
1399
  className: "mt-0",
1403
1400
  children: /* @__PURE__ */ S(re, {
1404
- dashboardId: z.dashboardId,
1405
- widgetId: z.id
1401
+ dashboardId: V.dashboardId,
1402
+ widgetId: V.id
1406
1403
  })
1407
1404
  }),
1408
1405
  /* @__PURE__ */ S(N, {
1409
1406
  value: "events",
1410
1407
  className: "mt-0",
1411
1408
  children: /* @__PURE__ */ S(ie, {
1412
- dashboardId: z.dashboardId,
1413
- widgetId: z.id,
1409
+ dashboardId: V.dashboardId,
1410
+ widgetId: V.id,
1414
1411
  maxHeight: "calc(100vh - 350px)"
1415
1412
  })
1416
1413
  }),
1417
1414
  /* @__PURE__ */ S(N, {
1418
1415
  value: "appearance",
1419
1416
  className: "mt-0",
1420
- children: Ze ? /* @__PURE__ */ S(Ze, {
1421
- config: z.config || {},
1422
- onChange: Je
1417
+ children: et ? /* @__PURE__ */ S(et, {
1418
+ config: V.config || {},
1419
+ onChange: Ze
1423
1420
  }) : /* @__PURE__ */ S("div", {
1424
1421
  className: "p-4 bg-muted rounded-lg text-center",
1425
1422
  children: /* @__PURE__ */ S("p", {
@@ -1440,7 +1437,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
1440
1437
  })]
1441
1438
  })
1442
1439
  }),
1443
- z && /* @__PURE__ */ C("div", {
1440
+ V && /* @__PURE__ */ C("div", {
1444
1441
  style: {
1445
1442
  padding: "var(--space-cardPadding)",
1446
1443
  borderTop: "1px solid var(--color-border)",
@@ -1448,7 +1445,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
1448
1445
  flexShrink: 0
1449
1446
  },
1450
1447
  children: [
1451
- y && /* @__PURE__ */ C("div", {
1448
+ L && /* @__PURE__ */ C("div", {
1452
1449
  style: {
1453
1450
  display: "flex",
1454
1451
  alignItems: "center",
@@ -1474,7 +1471,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
1474
1471
  children: "You have unsaved changes"
1475
1472
  })]
1476
1473
  }),
1477
- d === "saved" && !y && /* @__PURE__ */ C("div", {
1474
+ d === "saved" && !L && /* @__PURE__ */ C("div", {
1478
1475
  style: {
1479
1476
  display: "flex",
1480
1477
  alignItems: "center",
@@ -1530,13 +1527,13 @@ var Ee = p(function({ widget: e, onSave: t }) {
1530
1527
  gap: "var(--space-controlGap)"
1531
1528
  },
1532
1529
  children: [/* @__PURE__ */ S(w, {
1533
- onClick: Ke,
1534
- disabled: d === "saving" || !y,
1530
+ onClick: Ye,
1531
+ disabled: d === "saving" || !L,
1535
1532
  style: {
1536
1533
  flex: 1,
1537
1534
  height: "var(--size-controlHeight-md)",
1538
- backgroundColor: y ? "var(--color-action-primary-bg)" : void 0,
1539
- opacity: y ? 1 : .5
1535
+ backgroundColor: L ? "var(--color-action-primary-bg)" : void 0,
1536
+ opacity: L ? 1 : .5
1540
1537
  },
1541
1538
  children: d === "saving" ? /* @__PURE__ */ C("span", {
1542
1539
  style: {
@@ -1561,11 +1558,11 @@ var Ee = p(function({ widget: e, onSave: t }) {
1561
1558
  })
1562
1559
  }), /* @__PURE__ */ C(w, {
1563
1560
  variant: "outline",
1564
- onClick: qe,
1565
- disabled: d === "saving" || !y,
1561
+ onClick: Xe,
1562
+ disabled: d === "saving" || !L,
1566
1563
  style: {
1567
1564
  height: "var(--size-controlHeight-md)",
1568
- opacity: y ? 1 : .5
1565
+ opacity: L ? 1 : .5
1569
1566
  },
1570
1567
  children: [/* @__PURE__ */ S(x, { style: {
1571
1568
  width: "var(--size-icon-sm)",
@@ -1576,19 +1573,19 @@ var Ee = p(function({ widget: e, onSave: t }) {
1576
1573
  ]
1577
1574
  }),
1578
1575
  /* @__PURE__ */ S(ne, {
1579
- isOpen: Pe,
1580
- action: Fe,
1581
- isLoading: Ie,
1576
+ isOpen: Le,
1577
+ action: Re,
1578
+ isLoading: ze,
1582
1579
  onClose: () => {
1583
1580
  X(!1), Z(void 0);
1584
1581
  },
1585
- onSave: Be
1582
+ onSave: Ue
1586
1583
  })
1587
1584
  ]
1588
1585
  })
1589
1586
  });
1590
1587
  });
1591
1588
  //#endregion
1592
- export { I as default };
1589
+ export { L as default };
1593
1590
 
1594
1591
  //# sourceMappingURL=PropertiesPanel.js.map