@burdenoff/microfe-bigconsole 2026.624.2 → 2026.625.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.
Files changed (71) hide show
  1. package/dist/bigconsole/BigConsoleRoutes.js +93 -93
  2. package/dist/bigconsole/assistant/assistantApi.js +215 -0
  3. package/dist/bigconsole/assistant/assistantApi.js.map +1 -0
  4. package/dist/bigconsole/assistant/createSandboxAssistantTransport.js +119 -0
  5. package/dist/bigconsole/assistant/createSandboxAssistantTransport.js.map +1 -0
  6. package/dist/bigconsole/assistant/index.js +2 -0
  7. package/dist/bigconsole/assistant/pageContext.js +51 -0
  8. package/dist/bigconsole/assistant/pageContext.js.map +1 -0
  9. package/dist/bigconsole/components/dashboard/CreateDashboardDialog.js +48 -48
  10. package/dist/bigconsole/components/dashboard/DashboardToolbar.js +52 -52
  11. package/dist/bigconsole/components/dashboard/DrilldownBreadcrumb.js.map +1 -1
  12. package/dist/bigconsole/components/dashboard/ExportDashboardDialog.js +33 -33
  13. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js +179 -179
  14. package/dist/bigconsole/components/dashboard/ImportDashboardDialog.js.map +1 -1
  15. package/dist/bigconsole/components/dashboard/WidgetPalette.js +38 -38
  16. package/dist/bigconsole/components/datasink/DataSinkTableViewer.js +32 -32
  17. package/dist/bigconsole/components/datasink/ExportDataSinkDialog.js +31 -31
  18. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js +98 -98
  19. package/dist/bigconsole/components/datasink/ImportDataSinkDialog.js.map +1 -1
  20. package/dist/bigconsole/components/parser/ExportParserDialog.js +31 -31
  21. package/dist/bigconsole/components/parser/ImportParserDialog.js +162 -162
  22. package/dist/bigconsole/components/parser/ImportParserDialog.js.map +1 -1
  23. package/dist/bigconsole/components/widgets/ActionConfigDialog.js +79 -79
  24. package/dist/bigconsole/components/widgets/ActionConfigDialog.js.map +1 -1
  25. package/dist/bigconsole/components/widgets/DrilldownConfigPanel.js.map +1 -1
  26. package/dist/bigconsole/components/widgets/PropertiesPanel.js +307 -307
  27. package/dist/bigconsole/components/widgets/PropertiesPanel.js.map +1 -1
  28. package/dist/bigconsole/components/widgets/WidgetConfigDialog.js +222 -222
  29. package/dist/bigconsole/components/widgets/WidgetConfigDialog.js.map +1 -1
  30. package/dist/bigconsole/components/widgets/WidgetTypeSelector.js +23 -23
  31. package/dist/bigconsole/index.js +3 -0
  32. package/dist/bigconsole/pages/DashboardBuilderPage.js +74 -74
  33. package/dist/bigconsole/pages/DashboardBuilderPage.js.map +1 -1
  34. package/dist/bigconsole/pages/DashboardViewPage.js +168 -189
  35. package/dist/bigconsole/pages/DashboardViewPage.js.map +1 -1
  36. package/dist/bigconsole/pages/DashboardsPage.js +266 -310
  37. package/dist/bigconsole/pages/DashboardsPage.js.map +1 -1
  38. package/dist/bigconsole/pages/DataParsersPage.js +148 -194
  39. package/dist/bigconsole/pages/DataParsersPage.js.map +1 -1
  40. package/dist/bigconsole/pages/DataSinkBuilderPage.js +252 -246
  41. package/dist/bigconsole/pages/DataSinkBuilderPage.js.map +1 -1
  42. package/dist/bigconsole/pages/DataSinkViewPage.js +256 -231
  43. package/dist/bigconsole/pages/DataSinkViewPage.js.map +1 -1
  44. package/dist/bigconsole/pages/DataSinksPage.js +173 -219
  45. package/dist/bigconsole/pages/DataSinksPage.js.map +1 -1
  46. package/dist/bigconsole/pages/HomePage.js +125 -141
  47. package/dist/bigconsole/pages/HomePage.js.map +1 -1
  48. package/dist/bigconsole/pages/InsightsPage.js +159 -184
  49. package/dist/bigconsole/pages/InsightsPage.js.map +1 -1
  50. package/dist/bigconsole/pages/ParserBuilderPage.js +401 -393
  51. package/dist/bigconsole/pages/ParserBuilderPage.js.map +1 -1
  52. package/dist/bigconsole/pages/ParserViewPage.js +220 -201
  53. package/dist/bigconsole/pages/ParserViewPage.js.map +1 -1
  54. package/dist/bigconsole/pages/PipelineBuilderPage.js +212 -206
  55. package/dist/bigconsole/pages/PipelineBuilderPage.js.map +1 -1
  56. package/dist/bigconsole/pages/PipelineViewPage.js +204 -181
  57. package/dist/bigconsole/pages/PipelineViewPage.js.map +1 -1
  58. package/dist/bigconsole/pages/PipelinesPage.js +107 -150
  59. package/dist/bigconsole/pages/PipelinesPage.js.map +1 -1
  60. package/dist/bigconsole/pages/SettingsPage.js +184 -171
  61. package/dist/bigconsole/pages/SettingsPage.js.map +1 -1
  62. package/dist/bigconsole/pages/WidgetDemoPage.js +69 -81
  63. package/dist/bigconsole/pages/WidgetDemoPage.js.map +1 -1
  64. package/dist/bigconsole/pages/WorkflowViewPage.js +230 -216
  65. package/dist/bigconsole/pages/WorkflowViewPage.js.map +1 -1
  66. package/dist/bigconsole/pages/WorkflowsPage.js +106 -149
  67. package/dist/bigconsole/pages/WorkflowsPage.js.map +1 -1
  68. package/dist/generated/wspace-operations.js +87 -36
  69. package/dist/generated/wspace-operations.js.map +1 -1
  70. package/dist/index.js +3 -1
  71. package/package.json +6 -2
@@ -23,8 +23,8 @@ import "./event-logs/index.js";
23
23
  import ae from "./DrilldownConfigPanel.js";
24
24
  import { memo as p, useCallback as m, useEffect as h, useRef as g, useState as _ } from "react";
25
25
  import { Check as v, ChevronDown as oe, ChevronUp as se, ExternalLink as y, Info as b, Pencil as ce, Plus as le, Trash2 as ue, X as x } from "lucide-react";
26
- import { Fragment as de, jsx as S, jsxs as C } from "react/jsx-runtime";
27
- import { Button as w, Card as fe, CardContent as pe, Input as T, Label as E, Select as D, SelectContent as O, SelectItem as k, SelectTrigger as A, SelectValue as j, Sheet as me, SheetContent as he, SheetDescription as ge, SheetHeader as _e, SheetTitle as ve, Spinner as M, Tabs as ye, TabsContent as N, TabsList as be, TabsTrigger as P, Textarea as F } from "@burdenoff/fe-libs/ui";
26
+ import { Button as S, Card as de, CardContent as fe, Input as C, Label as w, Select as T, SelectContent as E, SelectItem as D, SelectTrigger as O, SelectValue as k, Sheet as pe, SheetContent as me, SheetDescription as he, SheetHeader as ge, SheetTitle as _e, Spinner as A, Tabs as ve, TabsContent as j, TabsList as ye, TabsTrigger as M, Textarea as N } from "@burdenoff/fe-libs/ui";
27
+ import { Fragment as be, jsx as P, jsxs as F } from "react/jsx-runtime";
28
28
  //#region src/bigconsole/components/widgets/PropertiesPanel.tsx
29
29
  var xe = [
30
30
  {
@@ -169,27 +169,27 @@ var Ee = p(function({ widget: e, onSave: t }) {
169
169
  a(e.message);
170
170
  }
171
171
  }, [n, t]);
172
- return /* @__PURE__ */ C("div", {
172
+ return /* @__PURE__ */ F("div", {
173
173
  style: {
174
174
  paddingTop: "var(--space-formGap)",
175
175
  borderTop: "1px solid var(--color-border)"
176
176
  },
177
177
  children: [
178
- /* @__PURE__ */ C("div", {
178
+ /* @__PURE__ */ F("div", {
179
179
  style: {
180
180
  display: "flex",
181
181
  alignItems: "center",
182
182
  justifyContent: "space-between",
183
183
  marginBottom: "var(--space-controlGap)"
184
184
  },
185
- children: [/* @__PURE__ */ S("label", {
185
+ children: [/* @__PURE__ */ P("label", {
186
186
  style: {
187
187
  fontSize: "var(--font-size-body-sm)",
188
188
  fontWeight: "var(--font-weight-semibold)",
189
189
  color: "var(--color-text-primary)"
190
190
  },
191
191
  children: "Template (JSON)"
192
- }), i && /* @__PURE__ */ S("span", {
192
+ }), i && /* @__PURE__ */ P("span", {
193
193
  style: {
194
194
  fontSize: "var(--font-size-body-sm)",
195
195
  color: "var(--color-status-error-text)",
@@ -198,7 +198,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
198
198
  children: "Invalid JSON"
199
199
  })]
200
200
  }),
201
- /* @__PURE__ */ S(F, {
201
+ /* @__PURE__ */ P(N, {
202
202
  value: n,
203
203
  onChange: s,
204
204
  spellCheck: !1,
@@ -211,7 +211,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
211
211
  resize: "vertical"
212
212
  }
213
213
  }),
214
- i && /* @__PURE__ */ S("p", {
214
+ i && /* @__PURE__ */ P("p", {
215
215
  style: {
216
216
  fontSize: "var(--font-size-body-sm)",
217
217
  color: "var(--color-status-error-text)",
@@ -222,14 +222,14 @@ var Ee = p(function({ widget: e, onSave: t }) {
222
222
  },
223
223
  children: i
224
224
  }),
225
- /* @__PURE__ */ C("div", {
225
+ /* @__PURE__ */ F("div", {
226
226
  style: {
227
227
  display: "flex",
228
228
  alignItems: "center",
229
229
  gap: "var(--space-controlGap)",
230
230
  marginTop: "var(--space-controlGap)"
231
231
  },
232
- children: [/* @__PURE__ */ S(w, {
232
+ children: [/* @__PURE__ */ P(S, {
233
233
  variant: "outline",
234
234
  size: "sm",
235
235
  onClick: c,
@@ -239,7 +239,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
239
239
  fontWeight: "var(--font-weight-semibold)"
240
240
  },
241
241
  children: "Format"
242
- }), !i && n.trim() !== "" && /* @__PURE__ */ C("span", {
242
+ }), !i && n.trim() !== "" && /* @__PURE__ */ F("span", {
243
243
  style: {
244
244
  fontSize: "var(--font-size-body-sm)",
245
245
  color: "var(--color-status-success-text)",
@@ -247,13 +247,13 @@ var Ee = p(function({ widget: e, onSave: t }) {
247
247
  alignItems: "center",
248
248
  gap: "4px"
249
249
  },
250
- children: [/* @__PURE__ */ S(v, { style: {
250
+ children: [/* @__PURE__ */ P(v, { style: {
251
251
  width: "12px",
252
252
  height: "12px"
253
253
  } }), "Valid JSON"]
254
254
  })]
255
255
  }),
256
- /* @__PURE__ */ C("div", {
256
+ /* @__PURE__ */ F("div", {
257
257
  style: {
258
258
  display: "flex",
259
259
  alignItems: "center",
@@ -265,11 +265,11 @@ var Ee = p(function({ widget: e, onSave: t }) {
265
265
  borderTop: "1px solid var(--color-border)"
266
266
  },
267
267
  children: [
268
- /* @__PURE__ */ S("span", {
268
+ /* @__PURE__ */ P("span", {
269
269
  style: { fontWeight: "var(--font-weight-medium)" },
270
270
  children: "Ctrl+S to save"
271
271
  }),
272
- e.renderer === "ADAPTIVE_CARD" && /* @__PURE__ */ C("a", {
272
+ e.renderer === "ADAPTIVE_CARD" && /* @__PURE__ */ F("a", {
273
273
  href: "https://adaptivecards.io/designer/",
274
274
  target: "_blank",
275
275
  rel: "noopener noreferrer",
@@ -282,12 +282,12 @@ var Ee = p(function({ widget: e, onSave: t }) {
282
282
  fontWeight: "var(--font-weight-medium)",
283
283
  textDecoration: "none"
284
284
  },
285
- children: ["Designer", /* @__PURE__ */ S(y, { style: {
285
+ children: ["Designer", /* @__PURE__ */ P(y, { style: {
286
286
  height: "var(--size-icon-sm)",
287
287
  width: "var(--size-icon-sm)"
288
288
  } })]
289
289
  }),
290
- e.renderer === "BLOCKKIT" && /* @__PURE__ */ C("a", {
290
+ e.renderer === "BLOCKKIT" && /* @__PURE__ */ F("a", {
291
291
  href: "https://app.slack.com/block-kit-builder",
292
292
  target: "_blank",
293
293
  rel: "noopener noreferrer",
@@ -300,7 +300,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
300
300
  fontWeight: "var(--font-weight-medium)",
301
301
  textDecoration: "none"
302
302
  },
303
- children: ["Block Kit Builder", /* @__PURE__ */ S(y, { style: {
303
+ children: ["Block Kit Builder", /* @__PURE__ */ P(y, { style: {
304
304
  height: "var(--size-icon-sm)",
305
305
  width: "var(--size-icon-sm)"
306
306
  } })]
@@ -310,7 +310,7 @@ var Ee = p(function({ widget: e, onSave: t }) {
310
310
  ]
311
311
  });
312
312
  });
313
- function I(e) {
313
+ function De(e) {
314
314
  let t = e;
315
315
  return {
316
316
  title: e.title || "",
@@ -334,42 +334,42 @@ function I(e) {
334
334
  } : void 0
335
335
  };
336
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);
337
+ var I = p(function({ isOpen: s, onClose: c }) {
338
+ let [l, u] = _("general"), [d, f] = _("idle"), [p, y] = _(null), [I, L] = _(!1), R = e((e) => e.selectedWidgetId), Oe = e((e) => e.widgets), z = e((e) => e.updateWidget), B = R ? Oe.get(R) : void 0, V = g(null);
339
339
  h(() => {
340
- if (!z) {
341
- H.current = null, y(null), R(!1), f("idle");
340
+ if (!R) {
341
+ V.current = null, y(null), L(!1), f("idle");
342
342
  return;
343
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");
344
+ let e = V.current !== R;
345
+ if (V.current = R, B) {
346
+ if (I && !e) return;
347
+ y(De(B)), L(!1), f("idle");
348
+ } else y(null), L(!1), f("idle");
349
349
  }, [
350
- z,
351
- V,
352
- L
350
+ R,
351
+ B,
352
+ I
353
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,
354
+ let { updateWidget: ke } = n(B?.pageId, B?.dashboardId, { skipFetch: !0 }), { createDrilldown: Ae, updateDrilldown: je, deleteDrilldown: Me } = r(), { dataSinks: H } = a({ skipFetch: !1 }), [U, W] = _(null), { executeParser: G } = o({
355
+ consoleId: B?.dashboardId,
356
356
  skipFetch: !0
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(() => {
357
+ }), [Ne, Pe] = _(!1), { actions: K, loading: q, createAction: Fe, updateAction: J, deleteAction: Ie, reorderActions: Y } = i(R || void 0), [Le, X] = _(!1), [Re, Z] = _(void 0), [ze, Be] = _(!1), Ve = m(() => {
358
358
  Z(void 0), X(!0);
359
359
  }, []), He = m((e) => {
360
360
  Z(e), X(!0);
361
361
  }, []), Ue = m(async (e) => {
362
- if (z) {
362
+ if (R) {
363
363
  Be(!0);
364
364
  try {
365
365
  let t = null;
366
- if (t = "id" in e ? await Fe(e) : await Pe(e), t) {
367
- let n = [...q];
366
+ if (t = "id" in e ? await J(e) : await Fe(e), t) {
367
+ let n = [...K];
368
368
  if ("id" in e) {
369
369
  let r = n.findIndex((t) => t.id === e.id);
370
370
  r >= 0 && (n[r] = t);
371
371
  } else n.push(t);
372
- B(z, { actions: n.sort((e, t) => e.order - t.order) });
372
+ z(R, { actions: n.sort((e, t) => e.order - t.order) });
373
373
  }
374
374
  X(!1), Z(void 0);
375
375
  } catch {} finally {
@@ -377,80 +377,80 @@ var L = p(function({ isOpen: s, onClose: c }) {
377
377
  }
378
378
  }
379
379
  }, [
380
- z,
381
- q,
382
- Pe,
380
+ R,
381
+ K,
383
382
  Fe,
384
- B
383
+ J,
384
+ z
385
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) });
386
+ R && window.confirm("Are you sure you want to delete this action?") && await Ie(e) && z(R, { actions: K.filter((t) => t.id !== e) });
387
387
  }, [
388
- z,
389
- q,
388
+ R,
389
+ K,
390
390
  Ie,
391
- B
391
+ z
392
392
  ]), Ge = m(async (e) => {
393
- if (!z || e === 0) return;
394
- let t = [...q].sort((e, t) => e.order - t.order), n = t.map((e) => e.id);
395
- [n[e - 1], n[e]] = [n[e], n[e - 1]], await Y(n) && B(z, { actions: t.map((e, t) => ({
393
+ if (!R || e === 0) return;
394
+ let t = [...K].sort((e, t) => e.order - t.order), n = t.map((e) => e.id);
395
+ [n[e - 1], n[e]] = [n[e], n[e - 1]], await Y(n) && z(R, { actions: t.map((e, t) => ({
396
396
  ...e,
397
397
  order: n.indexOf(e.id)
398
398
  })).sort((e, t) => e.order - t.order) });
399
399
  }, [
400
- z,
401
- q,
400
+ R,
401
+ K,
402
402
  Y,
403
- B
403
+ z
404
404
  ]), Ke = m(async (e) => {
405
- if (!z) return;
406
- let t = [...q].sort((e, t) => e.order - t.order);
405
+ if (!R) return;
406
+ let t = [...K].sort((e, t) => e.order - t.order);
407
407
  if (e === t.length - 1) return;
408
408
  let n = t.map((e) => e.id);
409
- [n[e], n[e + 1]] = [n[e + 1], n[e]], await Y(n) && B(z, { actions: t.map((e, t) => ({
409
+ [n[e], n[e + 1]] = [n[e + 1], n[e]], await Y(n) && z(R, { actions: t.map((e, t) => ({
410
410
  ...e,
411
411
  order: n.indexOf(e.id)
412
412
  })).sort((e, t) => e.order - t.order) });
413
413
  }, [
414
- z,
415
- q,
414
+ R,
415
+ K,
416
416
  Y,
417
- B
417
+ z
418
418
  ]);
419
419
  h(() => {
420
- z && q.length >= 0 && !J && B(z, { actions: q });
420
+ R && K.length >= 0 && !q && z(R, { actions: K });
421
421
  }, [
422
- z,
422
+ R,
423
+ K,
423
424
  q,
424
- J,
425
- B
425
+ z
426
426
  ]);
427
427
  let Q = m((e, t) => {
428
428
  y((n) => n && {
429
429
  ...n,
430
430
  [e]: t
431
- }), R(!0);
431
+ }), L(!0);
432
432
  }, []), $ = m((e) => {
433
433
  y((t) => t && {
434
434
  ...t,
435
435
  config: e
436
- }), R(!0);
436
+ }), L(!0);
437
437
  }, []);
438
438
  h(() => {
439
- if (p?.dataSinkId && W.length > 0) {
440
- let e = W.find((e) => e.id === p.dataSinkId);
441
- e && K(e.key);
442
- } else K(null);
443
- }, [p?.dataSinkId, W]);
439
+ if (p?.dataSinkId && H.length > 0) {
440
+ let e = H.find((e) => e.id === p.dataSinkId);
441
+ e && W(e.key);
442
+ } else W(null);
443
+ }, [p?.dataSinkId, H]);
444
444
  let qe = m((e) => {
445
- if (K(e), e) {
446
- let t = W.find((t) => t.key === e);
445
+ if (W(e), e) {
446
+ let t = H.find((t) => t.key === e);
447
447
  t && (Q("dataSinkId", t.id), y((t) => t && {
448
448
  ...t,
449
449
  config: {
450
450
  ...t.config,
451
451
  dataSinkKey: e
452
452
  }
453
- }), R(!0));
453
+ }), L(!0));
454
454
  } else Q("dataSinkId", void 0), y((e) => e && {
455
455
  ...e,
456
456
  config: {
@@ -458,12 +458,12 @@ var L = p(function({ isOpen: s, onClose: c }) {
458
458
  dataSinkKey: void 0
459
459
  },
460
460
  parserId: void 0
461
- }), R(!0);
462
- }, [W, Q]), Je = m(async (e) => {
463
- if (Q("parserId", e || void 0), e && V) {
464
- Ne(!0);
461
+ }), L(!0);
462
+ }, [H, Q]), Je = m(async (e) => {
463
+ if (Q("parserId", e || void 0), e && B) {
464
+ Pe(!0);
465
465
  try {
466
- let t = await je(e);
466
+ let t = await G(e);
467
467
  if (t?.success && t.output) {
468
468
  let e = we(t.output);
469
469
  (e.labelField || e.valueField) && (y((t) => {
@@ -473,27 +473,27 @@ var L = p(function({ isOpen: s, onClose: c }) {
473
473
  ...t,
474
474
  config: r
475
475
  };
476
- }), R(!0));
476
+ }), L(!0));
477
477
  }
478
478
  } catch (e) {
479
479
  console.warn("Failed to auto-detect parser fields:", e);
480
480
  } finally {
481
- Ne(!1);
481
+ Pe(!1);
482
482
  }
483
483
  }
484
484
  }, [
485
485
  Q,
486
- je,
487
- V
486
+ G,
487
+ B
488
488
  ]), Ye = m(async () => {
489
- if (!(!V || !p)) {
489
+ if (!(!B || !p)) {
490
490
  f("saving");
491
491
  try {
492
492
  let e = {
493
- ...V.metadata || {},
493
+ ...B.metadata || {},
494
494
  description: p.description || ""
495
- }, t = await U({
496
- id: V.id,
495
+ }, t = await ke({
496
+ id: B.id,
497
497
  title: p.title,
498
498
  renderer: p.renderer,
499
499
  template: p.template,
@@ -504,12 +504,12 @@ var L = p(function({ isOpen: s, onClose: c }) {
504
504
  parserId: p.parserId,
505
505
  parserRules: p.parserRules,
506
506
  metadata: e
507
- }), n = V.drilldown;
507
+ }), n = B.drilldown;
508
508
  if (p.drilldownConfig) {
509
509
  let { enabled: e, targetDashboardId: t, navigationMode: r, parameterMapping: i, passGlobalFilters: a, maxDepth: o, openIn: s } = p.drilldownConfig;
510
- if (V.drilldown?.id) {
511
- let c = await ke({
512
- id: V.drilldown.id,
510
+ if (B.drilldown?.id) {
511
+ let c = await je({
512
+ id: B.drilldown.id,
513
513
  targetDashboardId: t,
514
514
  parameterMapping: i,
515
515
  navigationMode: r,
@@ -520,8 +520,8 @@ var L = p(function({ isOpen: s, onClose: c }) {
520
520
  });
521
521
  c && (n = c);
522
522
  } else if (t) {
523
- let c = await Oe({
524
- sourceWidgetId: V.id,
523
+ let c = await Ae({
524
+ sourceWidgetId: B.id,
525
525
  targetDashboardId: t,
526
526
  parameterMapping: i || {},
527
527
  navigationMode: r,
@@ -534,8 +534,8 @@ var L = p(function({ isOpen: s, onClose: c }) {
534
534
  enabled: e
535
535
  });
536
536
  }
537
- } else V.drilldown?.id && !p.drilldownConfig && (await Ae(V.drilldown.id), n = void 0);
538
- t ? (B(V.id, {
537
+ } else B.drilldown?.id && !p.drilldownConfig && (await Me(B.drilldown.id), n = void 0);
538
+ t ? (z(B.id, {
539
539
  title: p.title,
540
540
  description: p.description,
541
541
  renderer: p.renderer,
@@ -548,34 +548,34 @@ var L = p(function({ isOpen: s, onClose: c }) {
548
548
  parserRules: p.parserRules,
549
549
  drilldown: n,
550
550
  updatedAt: (/* @__PURE__ */ new Date()).toISOString()
551
- }), f("saved"), R(!1), setTimeout(() => f("idle"), 2e3)) : f("error");
551
+ }), f("saved"), L(!1), setTimeout(() => f("idle"), 2e3)) : f("error");
552
552
  } catch {
553
553
  f("error");
554
554
  }
555
555
  }
556
556
  }, [
557
- V,
558
- p,
559
- U,
560
557
  B,
561
- Oe,
558
+ p,
562
559
  ke,
563
- Ae
560
+ z,
561
+ Ae,
562
+ je,
563
+ Me
564
564
  ]), Xe = m(() => {
565
- V && (y(I(V)), R(!1), f("idle"));
566
- }, [V]), Ze = m((e) => {
565
+ B && (y(De(B)), L(!1), f("idle"));
566
+ }, [B]), Ze = m((e) => {
567
567
  $(e);
568
568
  }, [$]), Qe = m((e) => {
569
569
  y((t) => t && {
570
570
  ...t,
571
571
  drilldownConfig: e
572
- }), R(!0);
573
- }, []), $e = V ? t(V.type) : null, et = V ? Te(V.type) : null;
574
- return /* @__PURE__ */ S(me, {
572
+ }), L(!0);
573
+ }, []), $e = B ? t(B.type) : null, et = B ? Te(B.type) : null;
574
+ return /* @__PURE__ */ P(pe, {
575
575
  open: s,
576
576
  onOpenChange: (e) => !e && c(),
577
577
  modal: !1,
578
- children: /* @__PURE__ */ C(he, {
578
+ children: /* @__PURE__ */ F(me, {
579
579
  style: {
580
580
  width: "420px",
581
581
  maxWidth: "90vw",
@@ -586,20 +586,20 @@ var L = p(function({ isOpen: s, onClose: c }) {
586
586
  overflow: "hidden"
587
587
  },
588
588
  children: [
589
- /* @__PURE__ */ S(_e, {
589
+ /* @__PURE__ */ P(ge, {
590
590
  style: {
591
591
  padding: "var(--space-cardPadding)",
592
592
  borderBottom: "1px solid var(--color-border)",
593
593
  backgroundColor: "var(--color-bg-surface)",
594
594
  flexShrink: 0
595
595
  },
596
- children: /* @__PURE__ */ C("div", {
596
+ children: /* @__PURE__ */ F("div", {
597
597
  style: {
598
598
  display: "flex",
599
599
  alignItems: "center",
600
600
  gap: "var(--space-controlGap)"
601
601
  },
602
- children: [/* @__PURE__ */ S("div", {
602
+ children: [/* @__PURE__ */ P("div", {
603
603
  style: {
604
604
  display: "flex",
605
605
  height: "var(--size-controlHeight-lg)",
@@ -611,48 +611,48 @@ var L = p(function({ isOpen: s, onClose: c }) {
611
611
  boxShadow: "var(--shadow-elevation-2)",
612
612
  flexShrink: 0
613
613
  },
614
- children: /* @__PURE__ */ S(b, { style: {
614
+ children: /* @__PURE__ */ P(b, { style: {
615
615
  height: "var(--size-icon-md)",
616
616
  width: "var(--size-icon-md)",
617
617
  color: "var(--color-action-primary-text)"
618
618
  } })
619
- }), /* @__PURE__ */ C("div", {
619
+ }), /* @__PURE__ */ F("div", {
620
620
  style: {
621
621
  flex: 1,
622
622
  minWidth: 0
623
623
  },
624
- children: [/* @__PURE__ */ C("div", {
624
+ children: [/* @__PURE__ */ F("div", {
625
625
  style: {
626
626
  display: "flex",
627
627
  alignItems: "center",
628
628
  gap: "var(--space-iconGap)"
629
629
  },
630
630
  children: [
631
- /* @__PURE__ */ S(ve, {
631
+ /* @__PURE__ */ P(_e, {
632
632
  style: {
633
633
  fontSize: "var(--font-size-body-md)",
634
634
  fontWeight: "var(--font-weight-bold)",
635
635
  color: "var(--color-text-primary)",
636
636
  margin: 0
637
637
  },
638
- children: V ? "Widget Properties" : "Properties"
638
+ children: B ? "Widget Properties" : "Properties"
639
639
  }),
640
- d === "saving" && /* @__PURE__ */ S(M, { style: {
640
+ d === "saving" && /* @__PURE__ */ P(A, { style: {
641
641
  height: "var(--size-icon-sm)",
642
642
  width: "var(--size-icon-sm)"
643
643
  } }),
644
- d === "saved" && /* @__PURE__ */ S(v, { style: {
644
+ d === "saved" && /* @__PURE__ */ P(v, { style: {
645
645
  height: "var(--size-icon-sm)",
646
646
  width: "var(--size-icon-sm)",
647
647
  color: "var(--color-status-success-bg)"
648
648
  } }),
649
- d === "error" && /* @__PURE__ */ S(x, { style: {
649
+ d === "error" && /* @__PURE__ */ P(x, { style: {
650
650
  height: "var(--size-icon-sm)",
651
651
  width: "var(--size-icon-sm)",
652
652
  color: "var(--color-status-error-bg)"
653
653
  } })
654
654
  ]
655
- }), $e && /* @__PURE__ */ S(ge, {
655
+ }), $e && /* @__PURE__ */ P(he, {
656
656
  style: {
657
657
  fontSize: "var(--font-size-body-sm)",
658
658
  color: "var(--color-text-secondary)",
@@ -664,7 +664,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
664
664
  })]
665
665
  })
666
666
  }),
667
- V ? /* @__PURE__ */ C(ye, {
667
+ B ? /* @__PURE__ */ F(ve, {
668
668
  value: l,
669
669
  onValueChange: (e) => u(e),
670
670
  style: {
@@ -674,7 +674,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
674
674
  minHeight: 0,
675
675
  overflow: "hidden"
676
676
  },
677
- children: [/* @__PURE__ */ C(be, {
677
+ children: [/* @__PURE__ */ F(ye, {
678
678
  style: {
679
679
  width: "100%",
680
680
  display: "flex",
@@ -689,7 +689,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
689
689
  overflowX: "auto"
690
690
  },
691
691
  children: [
692
- /* @__PURE__ */ S(P, {
692
+ /* @__PURE__ */ P(M, {
693
693
  value: "general",
694
694
  style: {
695
695
  fontWeight: "var(--font-weight-semibold)",
@@ -699,7 +699,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
699
699
  },
700
700
  children: "General"
701
701
  }),
702
- /* @__PURE__ */ S(P, {
702
+ /* @__PURE__ */ P(M, {
703
703
  value: "data",
704
704
  style: {
705
705
  fontWeight: "var(--font-weight-semibold)",
@@ -709,7 +709,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
709
709
  },
710
710
  children: "Data"
711
711
  }),
712
- /* @__PURE__ */ S(P, {
712
+ /* @__PURE__ */ P(M, {
713
713
  value: "actions",
714
714
  style: {
715
715
  fontWeight: "var(--font-weight-semibold)",
@@ -719,7 +719,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
719
719
  },
720
720
  children: "Actions"
721
721
  }),
722
- /* @__PURE__ */ S(P, {
722
+ /* @__PURE__ */ P(M, {
723
723
  value: "drilldown",
724
724
  style: {
725
725
  fontWeight: "var(--font-weight-semibold)",
@@ -729,7 +729,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
729
729
  },
730
730
  children: "Drilldown"
731
731
  }),
732
- /* @__PURE__ */ S(P, {
732
+ /* @__PURE__ */ P(M, {
733
733
  value: "webhooks",
734
734
  style: {
735
735
  fontWeight: "var(--font-weight-semibold)",
@@ -739,7 +739,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
739
739
  },
740
740
  children: "Hooks"
741
741
  }),
742
- /* @__PURE__ */ S(P, {
742
+ /* @__PURE__ */ P(M, {
743
743
  value: "events",
744
744
  style: {
745
745
  fontWeight: "var(--font-weight-semibold)",
@@ -749,7 +749,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
749
749
  },
750
750
  children: "Events"
751
751
  }),
752
- /* @__PURE__ */ S(P, {
752
+ /* @__PURE__ */ P(M, {
753
753
  value: "appearance",
754
754
  style: {
755
755
  fontWeight: "var(--font-weight-semibold)",
@@ -760,7 +760,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
760
760
  children: "Style"
761
761
  })
762
762
  ]
763
- }), /* @__PURE__ */ C("div", {
763
+ }), /* @__PURE__ */ F("div", {
764
764
  style: {
765
765
  flex: 1,
766
766
  overflow: "auto",
@@ -768,17 +768,17 @@ var L = p(function({ isOpen: s, onClose: c }) {
768
768
  minHeight: 0
769
769
  },
770
770
  children: [
771
- /* @__PURE__ */ S(N, {
771
+ /* @__PURE__ */ P(j, {
772
772
  value: "general",
773
773
  className: "mt-0",
774
- children: p && /* @__PURE__ */ C("div", {
774
+ children: p && /* @__PURE__ */ F("div", {
775
775
  style: {
776
776
  display: "flex",
777
777
  flexDirection: "column",
778
778
  gap: "var(--space-formGap)"
779
779
  },
780
780
  children: [
781
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
781
+ /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
782
782
  htmlFor: "title",
783
783
  style: {
784
784
  display: "block",
@@ -788,7 +788,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
788
788
  marginBottom: "var(--space-controlGap)"
789
789
  },
790
790
  children: "Title"
791
- }), /* @__PURE__ */ S(T, {
791
+ }), /* @__PURE__ */ P(C, {
792
792
  id: "title",
793
793
  value: p.title,
794
794
  onChange: (e) => Q("title", e.target.value),
@@ -797,7 +797,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
797
797
  fontSize: "var(--font-size-body-sm)"
798
798
  }
799
799
  })] }),
800
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
800
+ /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
801
801
  htmlFor: "description",
802
802
  style: {
803
803
  display: "block",
@@ -807,7 +807,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
807
807
  marginBottom: "var(--space-controlGap)"
808
808
  },
809
809
  children: "Description"
810
- }), /* @__PURE__ */ S(F, {
810
+ }), /* @__PURE__ */ P(N, {
811
811
  id: "description",
812
812
  value: p.description,
813
813
  onChange: (e) => Q("description", e.target.value),
@@ -817,7 +817,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
817
817
  resize: "none"
818
818
  }
819
819
  })] }),
820
- /* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("label", {
820
+ /* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("label", {
821
821
  htmlFor: "refresh",
822
822
  style: {
823
823
  display: "block",
@@ -827,7 +827,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
827
827
  marginBottom: "var(--space-controlGap)"
828
828
  },
829
829
  children: "Auto-Refresh (seconds)"
830
- }), /* @__PURE__ */ S(T, {
830
+ }), /* @__PURE__ */ P(C, {
831
831
  id: "refresh",
832
832
  type: "number",
833
833
  value: p.refreshInterval || "",
@@ -839,13 +839,13 @@ var L = p(function({ isOpen: s, onClose: c }) {
839
839
  fontSize: "var(--font-size-body-sm)"
840
840
  }
841
841
  })] }),
842
- /* @__PURE__ */ C("div", {
842
+ /* @__PURE__ */ F("div", {
843
843
  style: {
844
844
  paddingTop: "var(--space-formGap)",
845
845
  borderTop: "1px solid var(--color-border)"
846
846
  },
847
847
  children: [
848
- /* @__PURE__ */ S("label", {
848
+ /* @__PURE__ */ P("label", {
849
849
  style: {
850
850
  display: "block",
851
851
  fontSize: "var(--font-size-body-sm)",
@@ -855,19 +855,19 @@ var L = p(function({ isOpen: s, onClose: c }) {
855
855
  },
856
856
  children: "Renderer"
857
857
  }),
858
- /* @__PURE__ */ C(D, {
858
+ /* @__PURE__ */ F(T, {
859
859
  value: p.renderer,
860
860
  onValueChange: (e) => {
861
861
  let t = e;
862
862
  Q("renderer", t), t === "BIGCONSOLE" && Q("template", void 0);
863
863
  },
864
- children: [/* @__PURE__ */ S(A, {
864
+ children: [/* @__PURE__ */ P(O, {
865
865
  style: {
866
866
  height: "var(--size-controlHeight-md)",
867
867
  fontSize: "var(--font-size-body-sm)"
868
868
  },
869
- children: /* @__PURE__ */ S(j, { placeholder: "Select renderer" })
870
- }), /* @__PURE__ */ S(O, {
869
+ children: /* @__PURE__ */ P(k, { placeholder: "Select renderer" })
870
+ }), /* @__PURE__ */ P(E, {
871
871
  position: "popper",
872
872
  side: "bottom",
873
873
  sideOffset: 4,
@@ -880,13 +880,13 @@ var L = p(function({ isOpen: s, onClose: c }) {
880
880
  boxShadow: "var(--shadow-elevation-3)",
881
881
  borderRadius: "var(--radius-button)"
882
882
  },
883
- children: xe.map((e) => /* @__PURE__ */ S(k, {
883
+ children: xe.map((e) => /* @__PURE__ */ P(D, {
884
884
  value: e.value,
885
885
  children: e.label
886
886
  }, e.value))
887
887
  })]
888
888
  }),
889
- /* @__PURE__ */ S("p", {
889
+ /* @__PURE__ */ P("p", {
890
890
  style: {
891
891
  fontSize: "var(--font-size-body-sm)",
892
892
  color: "var(--color-text-muted)",
@@ -896,9 +896,9 @@ var L = p(function({ isOpen: s, onClose: c }) {
896
896
  })
897
897
  ]
898
898
  }),
899
- p.renderer && p.renderer !== "BIGCONSOLE" && /* @__PURE__ */ S(Ee, {
899
+ p.renderer && p.renderer !== "BIGCONSOLE" && /* @__PURE__ */ P(Ee, {
900
900
  widget: {
901
- ...V,
901
+ ...B,
902
902
  template: p.template,
903
903
  renderer: p.renderer
904
904
  },
@@ -907,35 +907,35 @@ var L = p(function({ isOpen: s, onClose: c }) {
907
907
  ]
908
908
  })
909
909
  }),
910
- /* @__PURE__ */ S(N, {
910
+ /* @__PURE__ */ P(j, {
911
911
  value: "data",
912
912
  className: "mt-0 space-y-4",
913
- children: p && /* @__PURE__ */ C(de, { children: [
914
- /* @__PURE__ */ C("div", {
913
+ children: p && /* @__PURE__ */ F(be, { children: [
914
+ /* @__PURE__ */ F("div", {
915
915
  className: "space-y-4",
916
916
  children: [
917
- /* @__PURE__ */ S("div", {
917
+ /* @__PURE__ */ P("div", {
918
918
  className: "p-3 bg-bg-sunken rounded-md border border-border-subtle",
919
- children: /* @__PURE__ */ S("p", {
919
+ children: /* @__PURE__ */ P("p", {
920
920
  className: "text-xs text-text-secondary",
921
921
  children: "Connect this widget to a DataSink and Parser to display transformed data."
922
922
  })
923
923
  }),
924
- /* @__PURE__ */ C("div", {
924
+ /* @__PURE__ */ F("div", {
925
925
  className: "space-y-2",
926
926
  children: [
927
- /* @__PURE__ */ S(E, { children: "DataSink" }),
928
- /* @__PURE__ */ S(ee, {
929
- value: G,
927
+ /* @__PURE__ */ P(w, { children: "DataSink" }),
928
+ /* @__PURE__ */ P(ee, {
929
+ value: U,
930
930
  onChange: qe,
931
931
  placeholder: "Select a DataSink..."
932
932
  }),
933
- G && /* @__PURE__ */ C("p", {
933
+ U && /* @__PURE__ */ F("p", {
934
934
  className: "text-xs text-text-secondary",
935
935
  children: [
936
936
  "Key: ",
937
- G,
938
- p.dataSinkId && /* @__PURE__ */ C("span", {
937
+ U,
938
+ p.dataSinkId && /* @__PURE__ */ F("span", {
939
939
  className: "ml-2 text-text-tertiary",
940
940
  children: [
941
941
  "ID: ",
@@ -947,59 +947,59 @@ var L = p(function({ isOpen: s, onClose: c }) {
947
947
  })
948
948
  ]
949
949
  }),
950
- /* @__PURE__ */ C("div", {
950
+ /* @__PURE__ */ F("div", {
951
951
  className: "space-y-2",
952
952
  children: [
953
- /* @__PURE__ */ S(E, { children: "Parser" }),
954
- /* @__PURE__ */ S(te, {
955
- consoleId: V?.dashboardId || "",
953
+ /* @__PURE__ */ P(w, { children: "Parser" }),
954
+ /* @__PURE__ */ P(te, {
955
+ consoleId: B?.dashboardId || "",
956
956
  value: p.parserId || null,
957
957
  onChange: Je,
958
- filterInputSinkKey: G || void 0,
958
+ filterInputSinkKey: U || void 0,
959
959
  filterStatus: void 0,
960
- placeholder: G ? "Select a parser..." : "Select a DataSink first...",
961
- disabled: !G
960
+ placeholder: U ? "Select a parser..." : "Select a DataSink first...",
961
+ disabled: !U
962
962
  }),
963
- /* @__PURE__ */ S("p", {
963
+ /* @__PURE__ */ P("p", {
964
964
  className: "text-xs text-text-secondary",
965
- children: Me ? /* @__PURE__ */ C("span", {
965
+ children: Ne ? /* @__PURE__ */ F("span", {
966
966
  className: "flex items-center gap-1",
967
- children: [/* @__PURE__ */ S(M, { style: {
967
+ children: [/* @__PURE__ */ P(A, { style: {
968
968
  width: "12px",
969
969
  height: "12px"
970
970
  } }), "Auto-detecting field mappings..."]
971
- }) : G ? "Showing parsers that use this DataSink as input" : "Select a DataSink to see available parsers"
971
+ }) : U ? "Showing parsers that use this DataSink as input" : "Select a DataSink to see available parsers"
972
972
  })
973
973
  ]
974
974
  }),
975
- !!(p.parserId && (p.config?.labelField || p.config?.valueField)) && /* @__PURE__ */ C("div", {
975
+ !!(p.parserId && (p.config?.labelField || p.config?.valueField)) && /* @__PURE__ */ F("div", {
976
976
  className: "p-3 bg-green-50 dark:bg-green-950/30 rounded-md border border-green-200 dark:border-green-800",
977
- children: [/* @__PURE__ */ S("p", {
977
+ children: [/* @__PURE__ */ P("p", {
978
978
  className: "text-xs font-medium text-green-700 dark:text-green-400 mb-2",
979
979
  children: "✓ Field mappings configured"
980
- }), /* @__PURE__ */ C("div", {
980
+ }), /* @__PURE__ */ F("div", {
981
981
  className: "text-xs text-green-600 dark:text-green-500 space-y-1",
982
982
  children: [
983
- !!p.config?.labelField && /* @__PURE__ */ C("p", { children: [
983
+ !!p.config?.labelField && /* @__PURE__ */ F("p", { children: [
984
984
  "Label Field:",
985
985
  " ",
986
- /* @__PURE__ */ S("code", {
986
+ /* @__PURE__ */ P("code", {
987
987
  className: "bg-green-100 dark:bg-green-900 px-1 rounded",
988
988
  children: String(p.config.labelField)
989
989
  })
990
990
  ] }),
991
- !!p.config?.valueField && /* @__PURE__ */ C("p", { children: [
991
+ !!p.config?.valueField && /* @__PURE__ */ F("p", { children: [
992
992
  "Value Field:",
993
993
  " ",
994
- /* @__PURE__ */ S("code", {
994
+ /* @__PURE__ */ P("code", {
995
995
  className: "bg-green-100 dark:bg-green-900 px-1 rounded",
996
996
  children: String(p.config.valueField)
997
997
  })
998
998
  ] }),
999
- !!p.config?.xAxisField && /* @__PURE__ */ C("p", { children: [
999
+ !!p.config?.xAxisField && /* @__PURE__ */ F("p", { children: [
1000
1000
  "X-Axis Field:",
1001
1001
  " ",
1002
- /* @__PURE__ */ S("code", {
1002
+ /* @__PURE__ */ P("code", {
1003
1003
  className: "bg-green-100 dark:bg-green-900 px-1 rounded",
1004
1004
  children: String(p.config.xAxisField)
1005
1005
  })
@@ -1007,11 +1007,11 @@ var L = p(function({ isOpen: s, onClose: c }) {
1007
1007
  ]
1008
1008
  })]
1009
1009
  }),
1010
- /* @__PURE__ */ C("div", {
1010
+ /* @__PURE__ */ F("div", {
1011
1011
  className: "space-y-2",
1012
1012
  children: [
1013
- /* @__PURE__ */ S(E, { children: "Data Path (Optional)" }),
1014
- /* @__PURE__ */ S(T, {
1013
+ /* @__PURE__ */ P(w, { children: "Data Path (Optional)" }),
1014
+ /* @__PURE__ */ P(C, {
1015
1015
  value: p.config?.dataPath || "",
1016
1016
  onChange: (e) => $({
1017
1017
  ...p.config,
@@ -1019,7 +1019,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
1019
1019
  }),
1020
1020
  placeholder: "e.g., summary.totalRevenue"
1021
1021
  }),
1022
- /* @__PURE__ */ S("p", {
1022
+ /* @__PURE__ */ P("p", {
1023
1023
  className: "text-xs text-text-secondary",
1024
1024
  children: "Path to extract specific data from the parser output (dot notation)"
1025
1025
  })
@@ -1027,28 +1027,28 @@ var L = p(function({ isOpen: s, onClose: c }) {
1027
1027
  })
1028
1028
  ]
1029
1029
  }),
1030
- /* @__PURE__ */ S("div", {
1030
+ /* @__PURE__ */ P("div", {
1031
1031
  className: "border-t border-border-subtle pt-4",
1032
- children: /* @__PURE__ */ S(E, {
1032
+ children: /* @__PURE__ */ P(w, {
1033
1033
  className: "text-xs text-text-secondary uppercase tracking-wide",
1034
1034
  children: "Alternative Data Sources"
1035
1035
  })
1036
1036
  }),
1037
- /* @__PURE__ */ C("div", {
1037
+ /* @__PURE__ */ F("div", {
1038
1038
  className: "space-y-2",
1039
- children: [/* @__PURE__ */ S(E, { children: "Data Source Type" }), /* @__PURE__ */ C(D, {
1039
+ children: [/* @__PURE__ */ P(w, { children: "Data Source Type" }), /* @__PURE__ */ F(T, {
1040
1040
  value: p.config?.dataSourceType || "",
1041
1041
  onValueChange: (e) => $({
1042
1042
  ...p.config,
1043
1043
  dataSourceType: e || void 0
1044
1044
  }),
1045
- children: [/* @__PURE__ */ S(A, {
1045
+ children: [/* @__PURE__ */ P(O, {
1046
1046
  style: {
1047
1047
  height: "var(--size-controlHeight-md)",
1048
1048
  fontSize: "var(--font-size-body-sm)"
1049
1049
  },
1050
- children: /* @__PURE__ */ S(j, { placeholder: "Select type..." })
1051
- }), /* @__PURE__ */ S(O, {
1050
+ children: /* @__PURE__ */ P(k, { placeholder: "Select type..." })
1051
+ }), /* @__PURE__ */ P(E, {
1052
1052
  position: "popper",
1053
1053
  side: "bottom",
1054
1054
  sideOffset: 4,
@@ -1061,19 +1061,19 @@ var L = p(function({ isOpen: s, onClose: c }) {
1061
1061
  boxShadow: "var(--shadow-elevation-3)",
1062
1062
  borderRadius: "var(--radius-button)"
1063
1063
  },
1064
- children: Se.map((e) => /* @__PURE__ */ S(k, {
1064
+ children: Se.map((e) => /* @__PURE__ */ P(D, {
1065
1065
  value: e.value,
1066
1066
  children: e.label
1067
1067
  }, e.value))
1068
1068
  })]
1069
1069
  })]
1070
1070
  }),
1071
- p.config?.dataSourceType === "REST_API" && /* @__PURE__ */ C("div", {
1071
+ p.config?.dataSourceType === "REST_API" && /* @__PURE__ */ F("div", {
1072
1072
  className: "space-y-3",
1073
1073
  children: [
1074
- /* @__PURE__ */ C("div", {
1074
+ /* @__PURE__ */ F("div", {
1075
1075
  className: "space-y-2",
1076
- children: [/* @__PURE__ */ S(E, { children: "Endpoint URL *" }), /* @__PURE__ */ S(T, {
1076
+ children: [/* @__PURE__ */ P(w, { children: "Endpoint URL *" }), /* @__PURE__ */ P(C, {
1077
1077
  value: p.config?.endpointUrl || "",
1078
1078
  onChange: (e) => $({
1079
1079
  ...p.config,
@@ -1082,35 +1082,35 @@ var L = p(function({ isOpen: s, onClose: c }) {
1082
1082
  placeholder: "https://api.example.com/data"
1083
1083
  })]
1084
1084
  }),
1085
- /* @__PURE__ */ C("div", {
1085
+ /* @__PURE__ */ F("div", {
1086
1086
  className: "space-y-2",
1087
- children: [/* @__PURE__ */ S(E, { children: "HTTP Method" }), /* @__PURE__ */ C(D, {
1087
+ children: [/* @__PURE__ */ P(w, { children: "HTTP Method" }), /* @__PURE__ */ F(T, {
1088
1088
  value: p.config?.httpMethod || "GET",
1089
1089
  onValueChange: (e) => $({
1090
1090
  ...p.config,
1091
1091
  httpMethod: e
1092
1092
  }),
1093
- children: [/* @__PURE__ */ S(A, {
1093
+ children: [/* @__PURE__ */ P(O, {
1094
1094
  style: { height: "var(--size-controlHeight-md)" },
1095
- children: /* @__PURE__ */ S(j, {})
1096
- }), /* @__PURE__ */ C(O, {
1095
+ children: /* @__PURE__ */ P(k, {})
1096
+ }), /* @__PURE__ */ F(E, {
1097
1097
  position: "popper",
1098
1098
  side: "bottom",
1099
1099
  sideOffset: 4,
1100
1100
  children: [
1101
- /* @__PURE__ */ S(k, {
1101
+ /* @__PURE__ */ P(D, {
1102
1102
  value: "GET",
1103
1103
  children: "GET"
1104
1104
  }),
1105
- /* @__PURE__ */ S(k, {
1105
+ /* @__PURE__ */ P(D, {
1106
1106
  value: "POST",
1107
1107
  children: "POST"
1108
1108
  }),
1109
- /* @__PURE__ */ S(k, {
1109
+ /* @__PURE__ */ P(D, {
1110
1110
  value: "PUT",
1111
1111
  children: "PUT"
1112
1112
  }),
1113
- /* @__PURE__ */ S(k, {
1113
+ /* @__PURE__ */ P(D, {
1114
1114
  value: "DELETE",
1115
1115
  children: "DELETE"
1116
1116
  })
@@ -1118,9 +1118,9 @@ var L = p(function({ isOpen: s, onClose: c }) {
1118
1118
  })]
1119
1119
  })]
1120
1120
  }),
1121
- /* @__PURE__ */ C("div", {
1121
+ /* @__PURE__ */ F("div", {
1122
1122
  className: "space-y-2",
1123
- children: [/* @__PURE__ */ S(E, { children: "Headers (JSON)" }), /* @__PURE__ */ S(F, {
1123
+ children: [/* @__PURE__ */ P(w, { children: "Headers (JSON)" }), /* @__PURE__ */ P(N, {
1124
1124
  value: p.config?.headers || "",
1125
1125
  onChange: (e) => $({
1126
1126
  ...p.config,
@@ -1131,35 +1131,35 @@ var L = p(function({ isOpen: s, onClose: c }) {
1131
1131
  className: "font-mono text-xs"
1132
1132
  })]
1133
1133
  }),
1134
- /* @__PURE__ */ C("div", {
1134
+ /* @__PURE__ */ F("div", {
1135
1135
  className: "space-y-2",
1136
- children: [/* @__PURE__ */ S(E, { children: "Authentication" }), /* @__PURE__ */ C(D, {
1136
+ children: [/* @__PURE__ */ P(w, { children: "Authentication" }), /* @__PURE__ */ F(T, {
1137
1137
  value: p.config?.authType || "none",
1138
1138
  onValueChange: (e) => $({
1139
1139
  ...p.config,
1140
1140
  authType: e
1141
1141
  }),
1142
- children: [/* @__PURE__ */ S(A, {
1142
+ children: [/* @__PURE__ */ P(O, {
1143
1143
  style: { height: "var(--size-controlHeight-md)" },
1144
- children: /* @__PURE__ */ S(j, {})
1145
- }), /* @__PURE__ */ C(O, {
1144
+ children: /* @__PURE__ */ P(k, {})
1145
+ }), /* @__PURE__ */ F(E, {
1146
1146
  position: "popper",
1147
1147
  side: "bottom",
1148
1148
  sideOffset: 4,
1149
1149
  children: [
1150
- /* @__PURE__ */ S(k, {
1150
+ /* @__PURE__ */ P(D, {
1151
1151
  value: "none",
1152
1152
  children: "None"
1153
1153
  }),
1154
- /* @__PURE__ */ S(k, {
1154
+ /* @__PURE__ */ P(D, {
1155
1155
  value: "api_key",
1156
1156
  children: "API Key"
1157
1157
  }),
1158
- /* @__PURE__ */ S(k, {
1158
+ /* @__PURE__ */ P(D, {
1159
1159
  value: "bearer",
1160
1160
  children: "Bearer Token"
1161
1161
  }),
1162
- /* @__PURE__ */ S(k, {
1162
+ /* @__PURE__ */ P(D, {
1163
1163
  value: "basic",
1164
1164
  children: "Basic Auth"
1165
1165
  })
@@ -1167,9 +1167,9 @@ var L = p(function({ isOpen: s, onClose: c }) {
1167
1167
  })]
1168
1168
  })]
1169
1169
  }),
1170
- !!(p.config?.authType && p.config.authType !== "none") && /* @__PURE__ */ C("div", {
1170
+ !!(p.config?.authType && p.config.authType !== "none") && /* @__PURE__ */ F("div", {
1171
1171
  className: "space-y-2",
1172
- children: [/* @__PURE__ */ S(E, { children: String(p.config.authType) === "basic" ? "Credentials (user:pass)" : "Token/Key" }), /* @__PURE__ */ S(T, {
1172
+ children: [/* @__PURE__ */ P(w, { children: String(p.config.authType) === "basic" ? "Credentials (user:pass)" : "Token/Key" }), /* @__PURE__ */ P(C, {
1173
1173
  type: "password",
1174
1174
  value: p.config?.authValue || "",
1175
1175
  onChange: (e) => $({
@@ -1179,9 +1179,9 @@ var L = p(function({ isOpen: s, onClose: c }) {
1179
1179
  placeholder: p.config.authType === "basic" ? "username:password" : "Enter token or API key"
1180
1180
  })]
1181
1181
  }),
1182
- (p.config?.httpMethod === "POST" || p.config?.httpMethod === "PUT") && /* @__PURE__ */ C("div", {
1182
+ (p.config?.httpMethod === "POST" || p.config?.httpMethod === "PUT") && /* @__PURE__ */ F("div", {
1183
1183
  className: "space-y-2",
1184
- children: [/* @__PURE__ */ S(E, { children: "Request Body (JSON)" }), /* @__PURE__ */ S(F, {
1184
+ children: [/* @__PURE__ */ P(w, { children: "Request Body (JSON)" }), /* @__PURE__ */ P(N, {
1185
1185
  value: p.config?.requestBody || "",
1186
1186
  onChange: (e) => $({
1187
1187
  ...p.config,
@@ -1192,11 +1192,11 @@ var L = p(function({ isOpen: s, onClose: c }) {
1192
1192
  className: "font-mono text-xs"
1193
1193
  })]
1194
1194
  }),
1195
- /* @__PURE__ */ C("div", {
1195
+ /* @__PURE__ */ F("div", {
1196
1196
  className: "space-y-2",
1197
1197
  children: [
1198
- /* @__PURE__ */ S(E, { children: "Data Path (optional)" }),
1199
- /* @__PURE__ */ S(T, {
1198
+ /* @__PURE__ */ P(w, { children: "Data Path (optional)" }),
1199
+ /* @__PURE__ */ P(C, {
1200
1200
  value: p.config?.dataPath || "",
1201
1201
  onChange: (e) => $({
1202
1202
  ...p.config,
@@ -1204,7 +1204,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
1204
1204
  }),
1205
1205
  placeholder: "$.data.items or .data.items"
1206
1206
  }),
1207
- /* @__PURE__ */ S("p", {
1207
+ /* @__PURE__ */ P("p", {
1208
1208
  className: "text-xs text-text-secondary",
1209
1209
  children: "JSONPath or dot notation to extract data from response"
1210
1210
  })
@@ -1212,12 +1212,12 @@ var L = p(function({ isOpen: s, onClose: c }) {
1212
1212
  })
1213
1213
  ]
1214
1214
  }),
1215
- p.config?.dataSourceType === "GRAPHQL" && /* @__PURE__ */ C("div", {
1215
+ p.config?.dataSourceType === "GRAPHQL" && /* @__PURE__ */ F("div", {
1216
1216
  className: "space-y-3",
1217
1217
  children: [
1218
- /* @__PURE__ */ C("div", {
1218
+ /* @__PURE__ */ F("div", {
1219
1219
  className: "space-y-2",
1220
- children: [/* @__PURE__ */ S(E, { children: "GraphQL Endpoint *" }), /* @__PURE__ */ S(T, {
1220
+ children: [/* @__PURE__ */ P(w, { children: "GraphQL Endpoint *" }), /* @__PURE__ */ P(C, {
1221
1221
  value: p.config?.graphqlEndpoint || "",
1222
1222
  onChange: (e) => $({
1223
1223
  ...p.config,
@@ -1226,9 +1226,9 @@ var L = p(function({ isOpen: s, onClose: c }) {
1226
1226
  placeholder: "https://api.example.com/graphql"
1227
1227
  })]
1228
1228
  }),
1229
- /* @__PURE__ */ C("div", {
1229
+ /* @__PURE__ */ F("div", {
1230
1230
  className: "space-y-2",
1231
- children: [/* @__PURE__ */ S(E, { children: "Query *" }), /* @__PURE__ */ S(F, {
1231
+ children: [/* @__PURE__ */ P(w, { children: "Query *" }), /* @__PURE__ */ P(N, {
1232
1232
  value: p.config?.graphqlQuery || "",
1233
1233
  onChange: (e) => $({
1234
1234
  ...p.config,
@@ -1239,9 +1239,9 @@ var L = p(function({ isOpen: s, onClose: c }) {
1239
1239
  className: "font-mono text-xs"
1240
1240
  })]
1241
1241
  }),
1242
- /* @__PURE__ */ C("div", {
1242
+ /* @__PURE__ */ F("div", {
1243
1243
  className: "space-y-2",
1244
- children: [/* @__PURE__ */ S(E, { children: "Variables (JSON, optional)" }), /* @__PURE__ */ S(F, {
1244
+ children: [/* @__PURE__ */ P(w, { children: "Variables (JSON, optional)" }), /* @__PURE__ */ P(N, {
1245
1245
  value: p.config?.graphqlVariables || "",
1246
1246
  onChange: (e) => $({
1247
1247
  ...p.config,
@@ -1252,9 +1252,9 @@ var L = p(function({ isOpen: s, onClose: c }) {
1252
1252
  className: "font-mono text-xs"
1253
1253
  })]
1254
1254
  }),
1255
- /* @__PURE__ */ C("div", {
1255
+ /* @__PURE__ */ F("div", {
1256
1256
  className: "space-y-2",
1257
- children: [/* @__PURE__ */ S(E, { children: "Headers (JSON, optional)" }), /* @__PURE__ */ S(F, {
1257
+ children: [/* @__PURE__ */ P(w, { children: "Headers (JSON, optional)" }), /* @__PURE__ */ P(N, {
1258
1258
  value: p.config?.headers || "",
1259
1259
  onChange: (e) => $({
1260
1260
  ...p.config,
@@ -1265,11 +1265,11 @@ var L = p(function({ isOpen: s, onClose: c }) {
1265
1265
  className: "font-mono text-xs"
1266
1266
  })]
1267
1267
  }),
1268
- /* @__PURE__ */ C("div", {
1268
+ /* @__PURE__ */ F("div", {
1269
1269
  className: "space-y-2",
1270
1270
  children: [
1271
- /* @__PURE__ */ S(E, { children: "Data Path (optional)" }),
1272
- /* @__PURE__ */ S(T, {
1271
+ /* @__PURE__ */ P(w, { children: "Data Path (optional)" }),
1272
+ /* @__PURE__ */ P(C, {
1273
1273
  value: p.config?.dataPath || "",
1274
1274
  onChange: (e) => $({
1275
1275
  ...p.config,
@@ -1277,7 +1277,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
1277
1277
  }),
1278
1278
  placeholder: ".data.items"
1279
1279
  }),
1280
- /* @__PURE__ */ S("p", {
1280
+ /* @__PURE__ */ P("p", {
1281
1281
  className: "text-xs text-text-secondary",
1282
1282
  children: "Path to extract data from GraphQL response"
1283
1283
  })
@@ -1285,9 +1285,9 @@ var L = p(function({ isOpen: s, onClose: c }) {
1285
1285
  })
1286
1286
  ]
1287
1287
  }),
1288
- p.config?.dataSourceType === "MOCK" && /* @__PURE__ */ C("div", {
1288
+ p.config?.dataSourceType === "MOCK" && /* @__PURE__ */ F("div", {
1289
1289
  className: "space-y-2",
1290
- children: [/* @__PURE__ */ S(E, { children: "Sample Data (JSON)" }), /* @__PURE__ */ S(F, {
1290
+ children: [/* @__PURE__ */ P(w, { children: "Sample Data (JSON)" }), /* @__PURE__ */ P(N, {
1291
1291
  value: p.config?.mockData || "",
1292
1292
  onChange: (e) => $({
1293
1293
  ...p.config,
@@ -1300,65 +1300,65 @@ var L = p(function({ isOpen: s, onClose: c }) {
1300
1300
  })
1301
1301
  ] })
1302
1302
  }),
1303
- /* @__PURE__ */ C(N, {
1303
+ /* @__PURE__ */ F(j, {
1304
1304
  value: "actions",
1305
1305
  className: "mt-0 space-y-4",
1306
- children: [/* @__PURE__ */ C("div", {
1306
+ children: [/* @__PURE__ */ F("div", {
1307
1307
  className: "flex items-center justify-between",
1308
- children: [/* @__PURE__ */ C("div", { children: [/* @__PURE__ */ S("h3", {
1308
+ children: [/* @__PURE__ */ F("div", { children: [/* @__PURE__ */ P("h3", {
1309
1309
  className: "text-sm font-medium",
1310
1310
  children: "Widget Actions"
1311
- }), /* @__PURE__ */ S("p", {
1311
+ }), /* @__PURE__ */ P("p", {
1312
1312
  className: "text-xs text-text-secondary",
1313
1313
  children: "Configure buttons on this widget"
1314
- })] }), /* @__PURE__ */ C(w, {
1314
+ })] }), /* @__PURE__ */ F(S, {
1315
1315
  size: "sm",
1316
1316
  onClick: Ve,
1317
- children: [/* @__PURE__ */ S(le, { className: "size-4" }), "Add"]
1317
+ children: [/* @__PURE__ */ P(le, { className: "size-4" }), "Add"]
1318
1318
  })]
1319
- }), J ? /* @__PURE__ */ S("div", {
1319
+ }), q ? /* @__PURE__ */ P("div", {
1320
1320
  className: "flex justify-center py-8",
1321
- children: /* @__PURE__ */ S(M, { className: "size-6" })
1322
- }) : q.length === 0 ? /* @__PURE__ */ C("div", {
1321
+ children: /* @__PURE__ */ P(A, { className: "size-6" })
1322
+ }) : K.length === 0 ? /* @__PURE__ */ F("div", {
1323
1323
  className: "py-8 text-center",
1324
- children: [/* @__PURE__ */ S(b, { className: "size-10 mx-auto mb-2 text-text-secondary/50" }), /* @__PURE__ */ S("p", {
1324
+ children: [/* @__PURE__ */ P(b, { className: "size-10 mx-auto mb-2 text-text-secondary/50" }), /* @__PURE__ */ P("p", {
1325
1325
  className: "text-sm text-text-secondary",
1326
1326
  children: "No actions configured"
1327
1327
  })]
1328
- }) : /* @__PURE__ */ S("div", {
1328
+ }) : /* @__PURE__ */ P("div", {
1329
1329
  className: "space-y-2",
1330
- children: [...q].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */ S(fe, {
1330
+ children: [...K].sort((e, t) => e.order - t.order).map((e, t) => /* @__PURE__ */ P(de, {
1331
1331
  className: e.disabled ? "opacity-60" : "",
1332
- children: /* @__PURE__ */ C(pe, {
1332
+ children: /* @__PURE__ */ F(fe, {
1333
1333
  className: "p-3 flex items-center gap-2",
1334
1334
  children: [
1335
- /* @__PURE__ */ C("div", {
1335
+ /* @__PURE__ */ F("div", {
1336
1336
  className: "flex flex-col gap-0.5",
1337
- children: [/* @__PURE__ */ S(w, {
1337
+ children: [/* @__PURE__ */ P(S, {
1338
1338
  variant: "ghost",
1339
1339
  size: "icon-sm",
1340
1340
  onClick: () => Ge(t),
1341
1341
  disabled: t === 0,
1342
1342
  className: "h-5 w-5",
1343
- children: /* @__PURE__ */ S(se, { className: "size-3" })
1344
- }), /* @__PURE__ */ S(w, {
1343
+ children: /* @__PURE__ */ P(se, { className: "size-3" })
1344
+ }), /* @__PURE__ */ P(S, {
1345
1345
  variant: "ghost",
1346
1346
  size: "icon-sm",
1347
1347
  onClick: () => Ke(t),
1348
- disabled: t === q.length - 1,
1348
+ disabled: t === K.length - 1,
1349
1349
  className: "h-5 w-5",
1350
- children: /* @__PURE__ */ S(oe, { className: "size-3" })
1350
+ children: /* @__PURE__ */ P(oe, { className: "size-3" })
1351
1351
  })]
1352
1352
  }),
1353
- /* @__PURE__ */ C("div", {
1353
+ /* @__PURE__ */ F("div", {
1354
1354
  className: "flex-1 min-w-0",
1355
- children: [/* @__PURE__ */ C("div", {
1355
+ children: [/* @__PURE__ */ F("div", {
1356
1356
  className: "flex items-center gap-2",
1357
- children: [/* @__PURE__ */ S("span", { className: `size-2 rounded-full ${Ce[e.style] || "bg-muted-foreground"}` }), /* @__PURE__ */ S("span", {
1357
+ children: [/* @__PURE__ */ P("span", { className: `size-2 rounded-full ${Ce[e.style] || "bg-muted-foreground"}` }), /* @__PURE__ */ P("span", {
1358
1358
  className: "text-sm font-medium truncate",
1359
1359
  children: e.label
1360
1360
  })]
1361
- }), /* @__PURE__ */ C("p", {
1361
+ }), /* @__PURE__ */ F("p", {
1362
1362
  className: "text-xs text-text-secondary",
1363
1363
  children: [
1364
1364
  e.name,
@@ -1367,18 +1367,18 @@ var L = p(function({ isOpen: s, onClose: c }) {
1367
1367
  ]
1368
1368
  })]
1369
1369
  }),
1370
- /* @__PURE__ */ C("div", {
1370
+ /* @__PURE__ */ F("div", {
1371
1371
  className: "flex gap-1",
1372
- children: [/* @__PURE__ */ S(w, {
1372
+ children: [/* @__PURE__ */ P(S, {
1373
1373
  variant: "ghost",
1374
1374
  size: "icon-sm",
1375
1375
  onClick: () => He(e),
1376
- children: /* @__PURE__ */ S(ce, { className: "size-4" })
1377
- }), /* @__PURE__ */ S(w, {
1376
+ children: /* @__PURE__ */ P(ce, { className: "size-4" })
1377
+ }), /* @__PURE__ */ P(S, {
1378
1378
  variant: "ghost",
1379
1379
  size: "icon-sm",
1380
1380
  onClick: () => We(e.id),
1381
- children: /* @__PURE__ */ S(ue, { className: "size-4" })
1381
+ children: /* @__PURE__ */ P(ue, { className: "size-4" })
1382
1382
  })]
1383
1383
  })
1384
1384
  ]
@@ -1386,40 +1386,40 @@ var L = p(function({ isOpen: s, onClose: c }) {
1386
1386
  }, e.id))
1387
1387
  })]
1388
1388
  }),
1389
- /* @__PURE__ */ S(N, {
1389
+ /* @__PURE__ */ P(j, {
1390
1390
  value: "drilldown",
1391
1391
  className: "mt-0",
1392
- children: /* @__PURE__ */ S(ae, {
1393
- widget: V,
1392
+ children: /* @__PURE__ */ P(ae, {
1393
+ widget: B,
1394
1394
  onChange: Qe
1395
1395
  })
1396
1396
  }),
1397
- /* @__PURE__ */ S(N, {
1397
+ /* @__PURE__ */ P(j, {
1398
1398
  value: "webhooks",
1399
1399
  className: "mt-0",
1400
- children: /* @__PURE__ */ S(re, {
1401
- dashboardId: V.dashboardId,
1402
- widgetId: V.id
1400
+ children: /* @__PURE__ */ P(re, {
1401
+ dashboardId: B.dashboardId,
1402
+ widgetId: B.id
1403
1403
  })
1404
1404
  }),
1405
- /* @__PURE__ */ S(N, {
1405
+ /* @__PURE__ */ P(j, {
1406
1406
  value: "events",
1407
1407
  className: "mt-0",
1408
- children: /* @__PURE__ */ S(ie, {
1409
- dashboardId: V.dashboardId,
1410
- widgetId: V.id,
1408
+ children: /* @__PURE__ */ P(ie, {
1409
+ dashboardId: B.dashboardId,
1410
+ widgetId: B.id,
1411
1411
  maxHeight: "calc(100vh - 350px)"
1412
1412
  })
1413
1413
  }),
1414
- /* @__PURE__ */ S(N, {
1414
+ /* @__PURE__ */ P(j, {
1415
1415
  value: "appearance",
1416
1416
  className: "mt-0",
1417
- children: et ? /* @__PURE__ */ S(et, {
1418
- config: V.config || {},
1417
+ children: et ? /* @__PURE__ */ P(et, {
1418
+ config: B.config || {},
1419
1419
  onChange: Ze
1420
- }) : /* @__PURE__ */ S("div", {
1420
+ }) : /* @__PURE__ */ P("div", {
1421
1421
  className: "p-4 bg-bg-sunken rounded-lg text-center",
1422
- children: /* @__PURE__ */ S("p", {
1422
+ children: /* @__PURE__ */ P("p", {
1423
1423
  className: "text-sm text-text-secondary",
1424
1424
  children: "No style options for this widget type"
1425
1425
  })
@@ -1427,17 +1427,17 @@ var L = p(function({ isOpen: s, onClose: c }) {
1427
1427
  })
1428
1428
  ]
1429
1429
  })]
1430
- }) : /* @__PURE__ */ S("div", {
1430
+ }) : /* @__PURE__ */ P("div", {
1431
1431
  className: "flex-1 flex items-center justify-center p-4",
1432
- children: /* @__PURE__ */ C("div", {
1432
+ children: /* @__PURE__ */ F("div", {
1433
1433
  className: "text-center",
1434
- children: [/* @__PURE__ */ S(b, { className: "size-12 mx-auto mb-3 text-text-secondary" }), /* @__PURE__ */ S("p", {
1434
+ children: [/* @__PURE__ */ P(b, { className: "size-12 mx-auto mb-3 text-text-secondary" }), /* @__PURE__ */ P("p", {
1435
1435
  className: "text-sm text-text-secondary",
1436
1436
  children: "Select a widget to edit"
1437
1437
  })]
1438
1438
  })
1439
1439
  }),
1440
- V && /* @__PURE__ */ C("div", {
1440
+ B && /* @__PURE__ */ F("div", {
1441
1441
  style: {
1442
1442
  padding: "var(--space-cardPadding)",
1443
1443
  borderTop: "1px solid var(--color-border)",
@@ -1445,7 +1445,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
1445
1445
  flexShrink: 0
1446
1446
  },
1447
1447
  children: [
1448
- L && /* @__PURE__ */ C("div", {
1448
+ I && /* @__PURE__ */ F("div", {
1449
1449
  style: {
1450
1450
  display: "flex",
1451
1451
  alignItems: "center",
@@ -1456,13 +1456,13 @@ var L = p(function({ isOpen: s, onClose: c }) {
1456
1456
  borderRadius: "var(--radius-button)",
1457
1457
  border: "1px solid var(--color-status-warning-border, rgba(251, 191, 36, 0.3))"
1458
1458
  },
1459
- children: [/* @__PURE__ */ S("div", { style: {
1459
+ children: [/* @__PURE__ */ P("div", { style: {
1460
1460
  width: "8px",
1461
1461
  height: "8px",
1462
1462
  borderRadius: "50%",
1463
1463
  backgroundColor: "var(--color-status-warning-bg)",
1464
1464
  flexShrink: 0
1465
- } }), /* @__PURE__ */ S("span", {
1465
+ } }), /* @__PURE__ */ P("span", {
1466
1466
  style: {
1467
1467
  fontSize: "var(--font-size-body-sm)",
1468
1468
  color: "var(--color-status-warning-text, #92400e)",
@@ -1471,7 +1471,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
1471
1471
  children: "You have unsaved changes"
1472
1472
  })]
1473
1473
  }),
1474
- d === "saved" && !L && /* @__PURE__ */ C("div", {
1474
+ d === "saved" && !I && /* @__PURE__ */ F("div", {
1475
1475
  style: {
1476
1476
  display: "flex",
1477
1477
  alignItems: "center",
@@ -1482,12 +1482,12 @@ var L = p(function({ isOpen: s, onClose: c }) {
1482
1482
  borderRadius: "var(--radius-button)",
1483
1483
  border: "1px solid var(--color-status-success-border, rgba(34, 197, 94, 0.3))"
1484
1484
  },
1485
- children: [/* @__PURE__ */ S(v, { style: {
1485
+ children: [/* @__PURE__ */ P(v, { style: {
1486
1486
  width: "var(--size-icon-sm)",
1487
1487
  height: "var(--size-icon-sm)",
1488
1488
  color: "var(--color-status-success-text)",
1489
1489
  flexShrink: 0
1490
- } }), /* @__PURE__ */ S("span", {
1490
+ } }), /* @__PURE__ */ P("span", {
1491
1491
  style: {
1492
1492
  fontSize: "var(--font-size-body-sm)",
1493
1493
  color: "var(--color-status-success-text)",
@@ -1496,7 +1496,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
1496
1496
  children: "All changes saved"
1497
1497
  })]
1498
1498
  }),
1499
- d === "error" && /* @__PURE__ */ C("div", {
1499
+ d === "error" && /* @__PURE__ */ F("div", {
1500
1500
  style: {
1501
1501
  display: "flex",
1502
1502
  alignItems: "center",
@@ -1507,12 +1507,12 @@ var L = p(function({ isOpen: s, onClose: c }) {
1507
1507
  borderRadius: "var(--radius-button)",
1508
1508
  border: "1px solid var(--color-status-error-border)"
1509
1509
  },
1510
- children: [/* @__PURE__ */ S(x, { style: {
1510
+ children: [/* @__PURE__ */ P(x, { style: {
1511
1511
  width: "var(--size-icon-sm)",
1512
1512
  height: "var(--size-icon-sm)",
1513
1513
  color: "var(--color-status-error-text)",
1514
1514
  flexShrink: 0
1515
- } }), /* @__PURE__ */ S("span", {
1515
+ } }), /* @__PURE__ */ P("span", {
1516
1516
  style: {
1517
1517
  fontSize: "var(--font-size-body-sm)",
1518
1518
  color: "var(--color-status-error-text)",
@@ -1521,50 +1521,50 @@ var L = p(function({ isOpen: s, onClose: c }) {
1521
1521
  children: "Failed to save changes"
1522
1522
  })]
1523
1523
  }),
1524
- /* @__PURE__ */ C("div", {
1524
+ /* @__PURE__ */ F("div", {
1525
1525
  style: {
1526
1526
  display: "flex",
1527
1527
  gap: "var(--space-controlGap)"
1528
1528
  },
1529
- children: [/* @__PURE__ */ S(w, {
1529
+ children: [/* @__PURE__ */ P(S, {
1530
1530
  onClick: Ye,
1531
- disabled: d === "saving" || !L,
1531
+ disabled: d === "saving" || !I,
1532
1532
  style: {
1533
1533
  flex: 1,
1534
1534
  height: "var(--size-controlHeight-md)",
1535
- backgroundColor: L ? "var(--color-action-primary-bg)" : void 0,
1536
- opacity: L ? 1 : .5
1535
+ backgroundColor: I ? "var(--color-action-primary-bg)" : void 0,
1536
+ opacity: I ? 1 : .5
1537
1537
  },
1538
- children: d === "saving" ? /* @__PURE__ */ C("span", {
1538
+ children: d === "saving" ? /* @__PURE__ */ F("span", {
1539
1539
  style: {
1540
1540
  display: "flex",
1541
1541
  alignItems: "center",
1542
1542
  gap: "var(--space-iconGap)"
1543
1543
  },
1544
- children: [/* @__PURE__ */ S(M, { style: {
1544
+ children: [/* @__PURE__ */ P(A, { style: {
1545
1545
  width: "var(--size-icon-sm)",
1546
1546
  height: "var(--size-icon-sm)"
1547
1547
  } }), "Saving..."]
1548
- }) : /* @__PURE__ */ C("span", {
1548
+ }) : /* @__PURE__ */ F("span", {
1549
1549
  style: {
1550
1550
  display: "flex",
1551
1551
  alignItems: "center",
1552
1552
  gap: "var(--space-iconGap)"
1553
1553
  },
1554
- children: [/* @__PURE__ */ S(v, { style: {
1554
+ children: [/* @__PURE__ */ P(v, { style: {
1555
1555
  width: "var(--size-icon-sm)",
1556
1556
  height: "var(--size-icon-sm)"
1557
1557
  } }), "Save Changes"]
1558
1558
  })
1559
- }), /* @__PURE__ */ C(w, {
1559
+ }), /* @__PURE__ */ F(S, {
1560
1560
  variant: "outline",
1561
1561
  onClick: Xe,
1562
- disabled: d === "saving" || !L,
1562
+ disabled: d === "saving" || !I,
1563
1563
  style: {
1564
1564
  height: "var(--size-controlHeight-md)",
1565
- opacity: L ? 1 : .5
1565
+ opacity: I ? 1 : .5
1566
1566
  },
1567
- children: [/* @__PURE__ */ S(x, { style: {
1567
+ children: [/* @__PURE__ */ P(x, { style: {
1568
1568
  width: "var(--size-icon-sm)",
1569
1569
  height: "var(--size-icon-sm)"
1570
1570
  } }), "Discard"]
@@ -1572,7 +1572,7 @@ var L = p(function({ isOpen: s, onClose: c }) {
1572
1572
  })
1573
1573
  ]
1574
1574
  }),
1575
- /* @__PURE__ */ S(ne, {
1575
+ /* @__PURE__ */ P(ne, {
1576
1576
  isOpen: Le,
1577
1577
  action: Re,
1578
1578
  isLoading: ze,
@@ -1586,6 +1586,6 @@ var L = p(function({ isOpen: s, onClose: c }) {
1586
1586
  });
1587
1587
  });
1588
1588
  //#endregion
1589
- export { L as default };
1589
+ export { I as default };
1590
1590
 
1591
1591
  //# sourceMappingURL=PropertiesPanel.js.map