@iota-uz/sdk 0.26.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/client-host/identity.d.ts +4 -4
  2. package/dist/client-host/identity.js +2 -2
  3. package/dist/lens/{CascadePanel-DXykK3Re.js → CascadePanel-CCOzLuq0.js} +64 -64
  4. package/dist/lens/{ChartDataEquivalent--6Rkhu3O.js → ChartDataEquivalent-jAEMAHLz.js} +1 -1
  5. package/dist/lens/{ChartPanel-Cvy_m7Mj.js → ChartPanel-BM5BNY_0.js} +49 -49
  6. package/dist/lens/{CoveragePanel-Ck4WKij9.js → CoveragePanel-D9dnY-z3.js} +20 -20
  7. package/dist/lens/DashboardPanels.d.ts +14 -0
  8. package/dist/lens/DashboardPanels.d.ts.map +1 -1
  9. package/dist/lens/{GaugePanel-yQnz97pE.js → GaugePanel-Da_8U-va.js} +12 -12
  10. package/dist/lens/LensDashboard.d.ts +9 -0
  11. package/dist/lens/LensDashboard.d.ts.map +1 -1
  12. package/dist/lens/{MapPanel-DAsqidkl.js → MapPanel-C_5zKBAZ.js} +16 -16
  13. package/dist/lens/{MetricFlowPanel-DiV_hXg2.js → MetricFlowPanel-CjIbdcGO.js} +24 -24
  14. package/dist/lens/{MetricHierarchyPanel-Beb2HL8v.js → MetricHierarchyPanel-B2P_uTgk.js} +17 -17
  15. package/dist/lens/{MetricRelationshipPanel-WDA2X5G5.js → MetricRelationshipPanel-0d4fAcHP.js} +17 -17
  16. package/dist/lens/{PrintReport-DHVB36F1.js → PrintReport-awUBISRB.js} +5 -5
  17. package/dist/lens/{TablePanel-BSL-Qda_.js → TablePanel-D46pk8E6.js} +222 -222
  18. package/dist/lens/{adapter-C8B6E1pp.js → adapter-BJKTlRCi.js} +7 -7
  19. package/dist/lens/controls/FilterBar.d.ts +9 -2
  20. package/dist/lens/controls/FilterBar.d.ts.map +1 -1
  21. package/dist/lens/controls/ScopedFilterControls.d.ts.map +1 -1
  22. package/dist/lens/controls/toolbarOverflow.d.ts +5 -0
  23. package/dist/lens/controls/toolbarOverflow.d.ts.map +1 -0
  24. package/dist/lens/dashboardEdit-KuYE7jYk.js +284 -0
  25. package/dist/lens/icons.d.ts +6 -0
  26. package/dist/lens/icons.d.ts.map +1 -1
  27. package/dist/lens/{index-Bv8OdTZx.js → index-BHhPCIjl.js} +1 -1
  28. package/dist/lens/index-C2oaf8ou.js +17066 -0
  29. package/dist/lens/index.d.ts +1 -0
  30. package/dist/lens/index.d.ts.map +1 -1
  31. package/dist/lens/index.js +28 -28
  32. package/dist/lens/{install-B6C6Ofrh.js → install-Bu88-uMj.js} +1 -1
  33. package/dist/lens/{install-Cc71ldkx.js → install-Ca0kMSB-.js} +1 -1
  34. package/dist/lens/{install-CJiBw6fK.js → install-Y4ssavWy.js} +1 -1
  35. package/dist/lens/{install-BZZf8fGf.js → install-ilsK_qly.js} +1 -1
  36. package/dist/lens/{keys-CDuPhptC.js → keys-B-YImOJ9.js} +2 -2
  37. package/dist/lens/{metricViews-DSt7U_tR.js → metricViews-CY3ENGQy.js} +10 -10
  38. package/dist/lens/{prefetch-CdqkJU0Q.js → prefetch-H6lk56fj.js} +2 -2
  39. package/dist/lens/{prefetchPanels-DWdWaKBW.js → prefetchPanels-BM6WTBt-.js} +5 -5
  40. package/dist/lens/{print-pZ6_K3m5.js → print-DYkxBibF.js} +1 -1
  41. package/dist/lens/reports/DashboardEmptyState.d.ts +6 -0
  42. package/dist/lens/reports/DashboardEmptyState.d.ts.map +1 -0
  43. package/dist/lens/reports/ReportCompositionEditor.d.ts +11 -15
  44. package/dist/lens/reports/ReportCompositionEditor.d.ts.map +1 -1
  45. package/dist/lens/reports/dashboardEdit.d.ts +128 -0
  46. package/dist/lens/reports/dashboardEdit.d.ts.map +1 -0
  47. package/dist/lens/reports/dashboardEditTypes.d.ts +45 -0
  48. package/dist/lens/reports/dashboardEditTypes.d.ts.map +1 -0
  49. package/dist/lens/reports/editing.d.ts +176 -0
  50. package/dist/lens/reports/editing.d.ts.map +1 -0
  51. package/dist/lens/{scales-BgYelCDe.js → scales-COnESBiP.js} +1 -1
  52. package/dist/lens/style.css +1 -1
  53. package/dist/sdk-identity.cjs +3 -3
  54. package/dist/sdk-identity.js +3 -3
  55. package/dist/sdk-identity.json +2 -2
  56. package/package.json +1 -1
  57. package/dist/lens/index-D0vCs6QJ.js +0 -16447
@@ -28,6 +28,7 @@ export { appendReportPicks, createReportPickerSelection, parseCatalogPage, parse
28
28
  export type { ReportCatalogEntry, ReportCatalogHost, ReportCatalogPage, ReportCatalogQuery, ReportCatalogScope, ReportDestination, ReportDestinationChoice, ReportDestinationConfirmation, ReportDestinationHost, ReportPick, ReportPickerConfirmation, } from './reports/picker';
29
29
  export { ReportCompositionEditor } from './reports/ReportCompositionEditor';
30
30
  export type { ReportCompositionEditorProps, ReportEditorLifecycle, ReportProposal, ReportProposalHandlers } from './reports/ReportCompositionEditor';
31
+ export type { LensDashboardChrome, LensDashboardEditing } from './reports/dashboardEditTypes';
31
32
  export { createReportLeaveGuard } from './reports/guard';
32
33
  export type { GuardedDraft, ReportLeaveChoice, ReportLeaveGuard } from './reports/guard';
33
34
  export { configurePlacement, diffCompositions, movePlacement, movePlacementBefore, removePlacement, resizePlacement } from './reports/layout';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,cAAc,CAAA;AAErB,OAAO,EACL,YAAY,EACZ,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,0BAA0B,CAAA;AAEjC,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AACjG,OAAO,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAA;AAC9E,OAAO,EACL,gBAAgB,EAChB,4BAA4B,EAC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B,GACpH,MAAM,kBAAkB,CAAA;AACzB,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,YAAY,EAAE,4BAA4B,EAAE,qBAAqB,EAAE,cAAc,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AACpJ,YAAY,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAC7F,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAA;AACxD,YAAY,EAAE,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACxF,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,aAAa,EAAE,mBAAmB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAC7I,YAAY,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,5 +1,5 @@
1
- import { av as r, aw as t, ax as s, ay as o, az as n, aA as i, aB as p, aC as c, aD as l, aE as m, aF as R, aG as b, aH as P, aI as d, aJ as D, aK as C, aL as f, aM as E, aN as S, aO as v, aP as O, aQ as L, aR as h, aS as u, aT as I, aU as _, aV as T, aW as K, aX as M, aY as N, aZ as V, a_ as y, a$ as A, b0 as U, b1 as g, b2 as k, b3 as x, b4 as B, b5 as F, b6 as w, b7 as z, b8 as G, b9 as H, ba as Y, bb as J, bc as Q, bd as W, be as X } from "./index-D0vCs6QJ.js";
2
- import { SDKIdentityMismatchError as $, SDK_IDENTITY as j, SDK_PROTOCOL_VERSION as q, SDK_RELEASE_VERSION as aa, SDK_SOURCE_COMMIT as ea, assertSDKIdentity as ra } from "@iota-uz/sdk/client-host";
1
+ import { aI as r, aJ as t, aK as s, L as o, aL as n, aM as i, aN as p, aO as c, aP as l, aQ as b, aR as m, aS as R, aT as P, aU as d, aV as D, aW as f, aX as C, aY as E, x as S, aZ as v, a_ as L, a$ as O, b0 as h, b1 as u, b2 as I, b3 as _, b4 as T, b5 as K, b6 as M, b7 as N, b8 as V, b9 as g, ba as k, bb as U, bc as x, bd as y, be as A, bf as B, bg as F, bh as Y, bi as j, bj as w, bk as z, bl as G, bm as H, bn as J, bo as Q, bp as W } from "./index-C2oaf8ou.js";
2
+ import { SDKIdentityMismatchError as Z, SDK_IDENTITY as $, SDK_PROTOCOL_VERSION as q, SDK_RELEASE_VERSION as ee, SDK_SOURCE_COMMIT as ae, assertSDKIdentity as re } from "@iota-uz/sdk/client-host";
3
3
  export {
4
4
  r as CONTRACT_VERSION,
5
5
  t as ContractVersionMismatchError,
@@ -10,25 +10,25 @@ export {
10
10
  p as ReportCompositionEditor,
11
11
  c as ReportDestinationPicker,
12
12
  l as ReportPicker,
13
- m as ReportPlacementProvider,
14
- R as ReportRevisionConflictError,
15
- b as ReportVersionNotice,
16
- $ as SDKIdentityMismatchError,
17
- j as SDK_IDENTITY,
13
+ b as ReportPlacementProvider,
14
+ m as ReportRevisionConflictError,
15
+ R as ReportVersionNotice,
16
+ Z as SDKIdentityMismatchError,
17
+ $ as SDK_IDENTITY,
18
18
  q as SDK_PROTOCOL_VERSION,
19
- aa as SDK_RELEASE_VERSION,
20
- ea as SDK_SOURCE_COMMIT,
19
+ ee as SDK_RELEASE_VERSION,
20
+ ae as SDK_SOURCE_COMMIT,
21
21
  P as appendReportPicks,
22
- ra as assertSDKIdentity,
22
+ re as assertSDKIdentity,
23
23
  d as compareReportVersion,
24
24
  D as configurePlacement,
25
- C as copyReportDefinition,
26
- f as createFilterContextDraft,
25
+ f as copyReportDefinition,
26
+ C as createFilterContextDraft,
27
27
  E as createReportDraft,
28
28
  S as createReportLeaveGuard,
29
29
  v as createReportPickerSelection,
30
- O as decodeFilterBoard,
31
- L as diffCompositions,
30
+ L as decodeFilterBoard,
31
+ O as diffCompositions,
32
32
  h as duplicateReportPlacement,
33
33
  u as encodeFilterBoard,
34
34
  I as filterBoardURL,
@@ -38,21 +38,21 @@ export {
38
38
  M as movePlacementBefore,
39
39
  N as parseCatalogPage,
40
40
  V as parseDestinations,
41
- y as parseDocument,
42
- A as parseReportComposition,
41
+ g as parseDocument,
42
+ k as parseReportComposition,
43
43
  U as parseReportDefinition,
44
- g as placeLibraryReport,
45
- k as placeOpenedReport,
46
- x as placementFreshness,
44
+ x as placeLibraryReport,
45
+ y as placeOpenedReport,
46
+ A as placementFreshness,
47
47
  B as registerLensDashboardElement,
48
48
  F as removePlacement,
49
- w as reportDraftToken,
50
- z as reportPlacementActions,
51
- G as reportPlacementAvailable,
52
- H as reportPlacementMenu,
53
- Y as reportPlacementUnavailable,
54
- J as reportUnavailableCopy,
55
- Q as resizePlacement,
56
- W as useReportPlacementHost,
57
- X as withoutUnavailablePlacements
49
+ Y as reportDraftToken,
50
+ j as reportPlacementActions,
51
+ w as reportPlacementAvailable,
52
+ z as reportPlacementMenu,
53
+ G as reportPlacementUnavailable,
54
+ H as reportUnavailableCopy,
55
+ J as resizePlacement,
56
+ Q as useReportPlacementHost,
57
+ W as withoutUnavailablePlacements
58
58
  };
@@ -1,4 +1,4 @@
1
- import { S as M, a as L, b as W, e as Y, i as I, c as q, g as R, d as Q, f as U, m as X, _ as k, t as H, h as J, j as Z, k as $, u as K, s as j, C as ee, l as ae, n as te, P as re, o as oe, p as ie, q as ne, r as se, v as le, w as ue, x as ve, y as ce, z as he, A as O, B as pe, D as N, E as fe, F as w, G as de, H as me, I as ye, J as T, K as xe, L as ge, M as Se, N as Ae, O as be } from "./adapter-C8B6E1pp.js";
1
+ import { S as M, a as L, b as W, e as Y, i as I, c as q, g as R, d as Q, f as U, m as X, _ as k, t as H, h as J, j as Z, k as $, u as K, s as j, C as ee, l as ae, n as te, P as re, o as oe, p as ie, q as ne, r as se, v as le, w as ue, x as ve, y as ce, z as he, A as O, B as pe, D as N, E as fe, F as w, G as de, H as me, I as ye, J as T, K as xe, L as ge, M as Se, N as Ae, O as be } from "./adapter-BJKTlRCi.js";
2
2
  var De = (
3
3
  /** @class */
4
4
  function() {
@@ -1,4 +1,4 @@
1
- import { Q as U, t as $, _ as j, R as Z, T as J, U as q, E as F, V as Q, W as P, X as k, Y as K, n as X, Z as Y, $ as M, a0 as tt, C as et, o as at, a1 as rt, a2 as nt, h as it } from "./adapter-C8B6E1pp.js";
1
+ import { Q as U, t as $, _ as j, R as Z, T as J, U as q, E as F, V as Q, W as P, X as k, Y as K, n as X, Z as Y, $ as M, a0 as tt, C as et, o as at, a1 as rt, a2 as nt, h as it } from "./adapter-BJKTlRCi.js";
2
2
  var ot = 256, st = (
3
3
  /** @class */
4
4
  function() {
@@ -1,4 +1,4 @@
1
- import { bs as b, a3 as Ne, bt as R, e as d, i as V, L as Te, ah as Y, bu as q, bv as L, bw as Ge, ax as Be, bx as C, o as W, af as Fe, bc as Ke, by as Ue, bz as J, bA as $e, bB as We, t as w, _ as H, bC as Xe, K as Ze, bD as Ye, b4 as ce, bm as qe, I as Re, aT as Oe, bE as Ce, bF as Je, W as De, bg as Qe, bG as je, bo as et, bh as tt, bH as P, bI as A, a4 as K, bJ as he, b8 as ae, bK as ne, bL as it, a0 as rt, c as at, bM as nt, ae as ot, bN as Q, bO as j, bP as st, bn as lt, b1 as ut, bQ as pt, a9 as ct, bR as ht, bS as ve, bT as vt, bU as ft, bq as fe } from "./adapter-C8B6E1pp.js";
1
+ import { bs as b, a3 as Ne, bt as R, e as d, i as V, L as Te, ah as Y, bu as q, bv as L, bw as Ge, ax as Be, bx as C, o as W, af as Fe, bc as Ke, by as Ue, bz as J, bA as $e, bB as We, t as w, _ as H, bC as Xe, K as Ze, bD as Ye, b4 as ce, bm as qe, I as Re, aT as Oe, bE as Ce, bF as Je, W as De, bg as Qe, bG as je, bo as et, bh as tt, bH as P, bI as A, a4 as K, bJ as he, b8 as ae, bK as ne, bL as it, a0 as rt, c as at, bM as nt, ae as ot, bN as Q, bO as j, bP as st, bn as lt, b1 as ut, bQ as pt, a9 as ct, bR as ht, bS as ve, bT as vt, bU as ft, bq as fe } from "./adapter-BJKTlRCi.js";
2
2
  var N = d, dt = R, U = -1, x = (
3
3
  /** @class */
4
4
  function() {
@@ -1,4 +1,4 @@
1
- import { L as ge, a3 as Ft, a4 as F, W as ue, a5 as $, a6 as sr, a7 as lr, a0 as ur, a8 as At, a9 as Gt, aa as cr, ab as fr, ac as Mt, ad as pr, ae as vr, af as gr, ag as hr, ah as yr, ai as Pt, e as h, o as he, aj as dr, ak as Q, al as mr, am as Sr, an as wr, ao as M, ap as ke, _ as L, aq as _r, ar as Pe, as as x, at as k, au as Et, av as Ot, aw as _, ax as re, ay as br, az as ye, aA as de, aB as Rr, aC as ee, aD as H, aE as Lt, aF as Cr, aG as U, aH as Ee, aI as Nt, aJ as Tr, aK as Ue, aL as Dr, aM as Fr, aN as Ye, F as I, aO as Be, aP as Je, aQ as Ar, aR as Gr, aS as Vt, aT as Oe, aU as Ae, aV as Mr, aW as Pr, aX as Er, aY as Or, aZ as Lr, a_ as ze, a$ as It, b0 as Nr, Y as xt, V as kt, b1 as Ge, b2 as Vr, n as Ir, b3 as xr, d as kr, f as Ur, b4 as Ut, b5 as Yr, b6 as Br, b7 as He, b8 as Jr, t as R, h as zr, b9 as Hr, ba as jr, bb as Xr, C as Wr, bc as je, bd as Yt, c as Xe, be as Kr, bf as qr, bg as Zr, bh as $r, bi as Qr, bj as en, bk as tn, bl as We, K as rn, bm as nn, bn as an, bo as on, bp as sn, q as Bt, bq as ln, br as un } from "./adapter-C8B6E1pp.js";
1
+ import { L as ge, a3 as Ft, a4 as F, W as ue, a5 as $, a6 as sr, a7 as lr, a0 as ur, a8 as At, a9 as Gt, aa as cr, ab as fr, ac as Mt, ad as pr, ae as vr, af as gr, ag as hr, ah as yr, ai as Pt, e as h, o as he, aj as dr, ak as Q, al as mr, am as Sr, an as wr, ao as M, ap as ke, _ as L, aq as _r, ar as Pe, as as x, at as k, au as Et, av as Ot, aw as _, ax as re, ay as br, az as ye, aA as de, aB as Rr, aC as ee, aD as H, aE as Lt, aF as Cr, aG as U, aH as Ee, aI as Nt, aJ as Tr, aK as Ue, aL as Dr, aM as Fr, aN as Ye, F as I, aO as Be, aP as Je, aQ as Ar, aR as Gr, aS as Vt, aT as Oe, aU as Ae, aV as Mr, aW as Pr, aX as Er, aY as Or, aZ as Lr, a_ as ze, a$ as It, b0 as Nr, Y as xt, V as kt, b1 as Ge, b2 as Vr, n as Ir, b3 as xr, d as kr, f as Ur, b4 as Ut, b5 as Yr, b6 as Br, b7 as He, b8 as Jr, t as R, h as zr, b9 as Hr, ba as jr, bb as Xr, C as Wr, bc as je, bd as Yt, c as Xe, be as Kr, bf as qr, bg as Zr, bh as $r, bi as Qr, bj as en, bk as tn, bl as We, K as rn, bm as nn, bn as an, bo as on, bp as sn, q as Bt, bq as ln, br as un } from "./adapter-BJKTlRCi.js";
2
2
  function Jt(a) {
3
3
  if (ge(a)) {
4
4
  var t = new DOMParser();
@@ -1,6 +1,6 @@
1
1
  import { use as _, insert as c, memo as $, createComponent as g, effect as y, className as C, setAttribute as h, template as m } from "solid-js/web";
2
2
  import { createSignal as k, onMount as E, onCleanup as S, createEffect as v, Show as w } from "solid-js";
3
- import { u as x } from "./index-D0vCs6QJ.js";
3
+ import { u as x } from "./index-C2oaf8ou.js";
4
4
  import "solid-js/store";
5
5
  var H = /* @__PURE__ */ m("<div role=img><div class=lens-chart-canvas>"), M = /* @__PURE__ */ m("<span class=lens-chart-load-error-detail>"), K = /* @__PURE__ */ m("<div class=lens-chart-load-error role=alert><span class=lens-chart-load-error-message>");
6
6
  function I(e) {
@@ -21,7 +21,7 @@ function I(e) {
21
21
  return (a = e.onHover) == null ? void 0 : a.call(e, r);
22
22
  }
23
23
  };
24
- (e.adapter ? Promise.resolve(e.adapter) : import("./index-Bv8OdTZx.js").then(({
24
+ (e.adapter ? Promise.resolve(e.adapter) : import("./index-BHhPCIjl.js").then(({
25
25
  getChartAdapter: r
26
26
  }) => r(e.input.kind))).then((r) => {
27
27
  if (!(t || !o)) {
@@ -1,6 +1,6 @@
1
1
  import { createComponent as w, setAttribute as K, insert as N, effect as A, className as C, template as S } from "solid-js/web";
2
2
  import { Show as E } from "solid-js";
3
- import { a9 as M, aa as O, ab as R, W as D, ac as V, ad as B, ae as F, u as I } from "./index-D0vCs6QJ.js";
3
+ import { am as M, an as O, ao as R, _ as D, ap as V, aq as B, ar as F, u as I } from "./index-C2oaf8ou.js";
4
4
  import "solid-js/store";
5
5
  var P = /* @__PURE__ */ S("<span><span class=lens-quality-chip-label>");
6
6
  const Q = {
@@ -64,7 +64,7 @@ function z({
64
64
  meta: Q[e]
65
65
  };
66
66
  }
67
- function U(e) {
67
+ function W(e) {
68
68
  const a = I(), n = () => z({
69
69
  confidence: e.confidence,
70
70
  availability: e.availability
@@ -88,7 +88,7 @@ const L = /* @__PURE__ */ new Set(["add", "subtract"]);
88
88
  function x(e, a) {
89
89
  return e === "subtract" ? -a : a;
90
90
  }
91
- function m(e, a, n) {
91
+ function b(e, a, n) {
92
92
  const r = e.confidence ?? a.confidence ?? n.confidence, i = e.availability ?? a.availability ?? n.availability, o = e.value.kind === "unavailable", l = o ? i && i !== "available" ? i : "unavailable" : i;
93
93
  return {
94
94
  ...r ? { confidence: r } : {},
@@ -99,7 +99,7 @@ function m(e, a, n) {
99
99
  function Y(e, a, n) {
100
100
  var r;
101
101
  return a.kind !== "ok" ? [] : (((r = e.metricFlow) == null ? void 0 : r.stages) ?? []).map((i) => {
102
- const o = a.resolve(i.key), l = m(o, i, e), u = o.value.kind === "value" ? o.value.value : 0, v = L.has(i.role);
102
+ const o = a.resolve(i.key), l = b(o, i, e), u = o.value.kind === "value" ? o.value.value : 0, v = L.has(i.role);
103
103
  let c = "";
104
104
  return l.showDash && i.role === "add" ? c = "+" : l.showDash && i.role === "subtract" ? c = "−" : v ? c = x(i.role, u) >= 0 ? "+" : "−" : (i.role === "intermediate" || i.role === "result") && (c = "="), {
105
105
  ...l,
@@ -149,8 +149,8 @@ function X(e, a, n, r) {
149
149
  return s;
150
150
  };
151
151
  return o.map((t) => {
152
- const s = i(t.key), d = m(s, t, e), f = c.get(t.key);
153
- let b;
152
+ const s = i(t.key), d = b(s, t, e), f = c.get(t.key);
153
+ let m;
154
154
  if (l && f && f.length > 0 && s.value.kind === "value") {
155
155
  let k = 0, q = !0;
156
156
  for (const y of f) {
@@ -163,7 +163,7 @@ function X(e, a, n, r) {
163
163
  }
164
164
  if (q) {
165
165
  const y = s.value.value - k;
166
- b = { balanced: Math.abs(y) <= (l.tolerance ?? 0), delta: y };
166
+ m = { balanced: Math.abs(y) <= (l.tolerance ?? 0), delta: y };
167
167
  }
168
168
  }
169
169
  return {
@@ -173,7 +173,7 @@ function X(e, a, n, r) {
173
173
  isParent: v.has(t.key),
174
174
  valueText: s.value.kind === "value" ? n(s.value.value) : "—",
175
175
  ...s.share !== void 0 ? { shareText: r(s.share) } : {},
176
- ...b ? { reconcile: b } : {}
176
+ ...m ? { reconcile: m } : {}
177
177
  };
178
178
  });
179
179
  }
@@ -181,7 +181,7 @@ function Z(e, a, n, r) {
181
181
  if (!n) return;
182
182
  const i = (a == null ? void 0 : a.kind) === "ok" ? a.resolve(n.key) : { value: { kind: "unavailable" } };
183
183
  return {
184
- ...m(i, n, e),
184
+ ...b(i, n, e),
185
185
  end: n,
186
186
  valueText: i.value.kind === "value" ? r(i.value.value) : "—"
187
187
  };
@@ -199,7 +199,7 @@ function ae(e, a, n) {
199
199
  return (e == null ? void 0 : e.type) === "derivation" && e.direction === "target_to_source" ? { source: n, target: a } : { source: a, target: n };
200
200
  }
201
201
  export {
202
- U as Q,
202
+ W as Q,
203
203
  Z as a,
204
204
  j as b,
205
205
  ee as c,
@@ -1,7 +1,7 @@
1
1
  var n = Object.defineProperty;
2
2
  var o = (h, e, t) => e in h ? n(h, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[e] = t;
3
3
  var c = (h, e, t) => o(h, typeof e != "symbol" ? e + "" : e, t);
4
- import { f } from "./index-D0vCs6QJ.js";
4
+ import { f } from "./index-C2oaf8ou.js";
5
5
  class g {
6
6
  constructor(e = {}) {
7
7
  c(this, "capacity");
@@ -47,7 +47,7 @@ class g {
47
47
  if (this.entries.has(e) || this.inflight.has(e)) return Promise.resolve();
48
48
  const s = f(e, { fetcher: this.fetcher, csrf: this.csrf, prefetch: !0, signal: t }).then(async (i) => {
49
49
  if (!i.endpoints.panel || t != null && t.aborted) return i;
50
- const { prefetchDocumentFirstRow: r } = await import("./prefetchPanels-DWdWaKBW.js");
50
+ const { prefetchDocumentFirstRow: r } = await import("./prefetchPanels-BM6WTBt-.js");
51
51
  return r(i, {
52
52
  csrf: this.csrf,
53
53
  fetcher: this.fetcher,
@@ -1,8 +1,8 @@
1
- import { ap as w } from "./index-D0vCs6QJ.js";
1
+ import { aC as w } from "./index-C2oaf8ou.js";
2
2
  async function y(e, n) {
3
- var p;
3
+ var d;
4
4
  const l = e.endpoints.panel, o = e.layout.rows.find(({ panels: a }) => a.length > 0);
5
- if (!l || !o || (p = n.signal) != null && p.aborted) return e;
5
+ if (!l || !o || (d = n.signal) != null && d.aborted) return e;
6
6
  const h = new Set(o.panels.map(({ panelId: a }) => a)), f = e.panels.filter(({ id: a, deferred: t }) => t === !0 && h.has(a));
7
7
  if (f.length === 0) return e;
8
8
  const c = new w(l, { csrf: n.csrf, fetcher: n.fetcher, prefetch: !0 });
@@ -14,8 +14,8 @@ async function y(e, n) {
14
14
  for (const s of f) {
15
15
  const r = a[s.id];
16
16
  if (!(r != null && r.frames) || r.error) continue;
17
- const d = r.frames[s.frame] ?? Object.values(r.frames)[0];
18
- d && (t[s.frame] = d, i.add(s.id));
17
+ const p = r.frames[s.frame] ?? Object.values(r.frames)[0];
18
+ p && (t[s.frame] = p, i.add(s.id));
19
19
  }
20
20
  return i.size === 0 ? e : {
21
21
  ...e,
@@ -1,4 +1,4 @@
1
- import { w as B, r as G, v as Q, a as V, l as z, i as W, p as X, b as Y, q as Z } from "./index-D0vCs6QJ.js";
1
+ import { w as B, r as G, v as Q, a as V, l as z, i as W, p as X, b as Y, q as Z } from "./index-C2oaf8ou.js";
2
2
  function p(i) {
3
3
  return Object.values(i.frames)[0];
4
4
  }
@@ -0,0 +1,6 @@
1
+ import { type JSX } from 'solid-js';
2
+ /** A dashboard without cards: what it is for and, when the reader can edit it, the way to fill it. */
3
+ export declare function DashboardEmptyState(props: {
4
+ onAdd?: (trigger: HTMLElement) => void;
5
+ }): JSX.Element;
6
+ //# sourceMappingURL=DashboardEmptyState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardEmptyState.d.ts","sourceRoot":"","sources":["../../src/reports/DashboardEmptyState.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AAIzD,sGAAsG;AACtG,wBAAgB,mBAAmB,CAAC,KAAK,EAAE;IAAE,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,IAAI,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CAsBlG"}
@@ -1,20 +1,11 @@
1
1
  import { type JSX } from 'solid-js';
2
2
  import { type LensThemeMode } from '../runtime';
3
- import type { Composition, Placement, Proposal } from './contract/types';
4
- import { type ReportDraft } from './draft';
3
+ import type { Composition, Placement } from './contract/types';
4
+ import type { ReportDraft } from './draft';
5
+ import { type ReportEditorLifecycle, type ReportProposal, type ReportProposalHandlers } from './editing';
5
6
  import { type ReportLeaveGuard } from './guard';
6
- import { type ReportCatalogHost } from './picker';
7
- export type ReportProposal = Proposal;
8
- /** new: an unpublished draft (Save draft / Publish). existing: a saved object (Save changes / Cancel). */
9
- export type ReportEditorLifecycle = 'new' | 'existing';
10
- export interface ReportProposalHandlers {
11
- /** Called after the reader applied or rejected the proposal. */
12
- settled?: (proposalId: string, outcome: 'applied' | 'rejected') => void;
13
- /** Prepare the proposal again against the current draft (reportDraftToken). */
14
- regenerate?: (proposal: ReportProposal) => void;
15
- /** Keep a stale proposal as a separate draft instead of applying it here. */
16
- openAsDraft?: (proposal: ReportProposal) => void;
17
- }
7
+ import type { ReportCatalogHost } from './picker';
8
+ export type { ReportEditorLifecycle, ReportProposal, ReportProposalHandlers } from './editing';
18
9
  export interface ReportCompositionEditorProps {
19
10
  draft: ReportDraft<Composition>;
20
11
  lifecycle: ReportEditorLifecycle;
@@ -41,6 +32,11 @@ export interface ReportCompositionEditorProps {
41
32
  theme?: LensThemeMode;
42
33
  messages?: Record<string, string>;
43
34
  }
44
- /** Edits a composition draft: layout, captions, card-local periods; Save and Cancel act on the whole session. */
35
+ /**
36
+ * Edits a composition draft: layout, captions, card-local periods; Save and
37
+ * Cancel act on the whole session. It renders its own Lens root, so the
38
+ * runtime's tokens apply wherever a host mounts it. LensDashboard's edit mode
39
+ * offers the same session over the live cards.
40
+ */
45
41
  export declare function ReportCompositionEditor(props: ReportCompositionEditorProps): JSX.Element;
46
42
  //# sourceMappingURL=ReportCompositionEditor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReportCompositionEditor.d.ts","sourceRoot":"","sources":["../../src/reports/ReportCompositionEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AAEjG,OAAO,EAAsC,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AACnF,OAAO,KAAK,EAAE,WAAW,EAAiB,SAAS,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACvF,OAAO,EAA4C,KAAK,WAAW,EAAmB,MAAM,SAAS,CAAA;AACrG,OAAO,EAA0B,KAAK,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAKvE,OAAO,EAAqB,KAAK,iBAAiB,EAAiC,MAAM,UAAU,CAAA;AAInG,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAA;AAErC,0GAA0G;AAC1G,MAAM,MAAM,qBAAqB,GAAG,KAAK,GAAG,UAAU,CAAA;AAEtD,MAAM,WAAW,sBAAsB;IACrC,gEAAgE;IAChE,OAAO,CAAC,EAAE,CAAC,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,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,GAAG,MAAM,CAAA;IACtD,sDAAsD;IACtD,YAAY,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC9E,gEAAgE;IAChE,YAAY,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IAC5D,gFAAgF;IAChF,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;IACzD,mGAAmG;IACnG,KAAK,CAAC,EAAE,gBAAgB,CAAA;IACxB,QAAQ,CAAC,EAAE,cAAc,CAAA;IACzB,gBAAgB,CAAC,EAAE,sBAAsB,CAAA;IACzC,qEAAqE;IACrE,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,KAAK,CAAC,EAAE,aAAa,CAAA;IACrB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CAClC;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,GAAG,GAAG,CAAC,OAAO,CAQxF"}
@@ -0,0 +1,128 @@
1
+ import { type Accessor, type JSX } from 'solid-js';
2
+ import { type LensThemeMode } from '../runtime';
3
+ import type { Placement } from './contract/types';
4
+ import type { SaveIntent } from './draft';
5
+ import type { LensDashboardEditing } from './dashboardEditTypes';
6
+ import { type CompositionSessionHost } from './editing';
7
+ import type { ReportPlacementHost } from './placementHost';
8
+ /** The live dashboard's editing state: a composition session plus the mode's own focus, Escape and lifecycle. */
9
+ declare function createDashboardEditor(edit: LensDashboardEditing, theme: Accessor<LensThemeMode>): {
10
+ edit: LensDashboardEditing;
11
+ session: {
12
+ host: CompositionSessionHost;
13
+ draft: import("./draft").ReportDraft<import("./contract/types").Composition>;
14
+ translate: (key: string, fallback: string, vars?: import("../runtime").TranslationVars) => string;
15
+ instructionsId: string;
16
+ cards: Map<string, HTMLElement>;
17
+ handles: Map<string, HTMLElement>;
18
+ refs: {
19
+ add?: HTMLElement;
20
+ };
21
+ placements: Accessor<import("./editing").SessionPlacement[]>;
22
+ ids: Accessor<string[]>;
23
+ byId: (id: string) => import("./editing").SessionPlacement | undefined;
24
+ title: (placement: Placement) => string;
25
+ placedCount: (reportId: string) => number;
26
+ picking: Accessor<boolean>;
27
+ setPicking: import("solid-js").Setter<boolean>;
28
+ configuring: Accessor<string | undefined>;
29
+ setConfiguring: import("solid-js").Setter<string | undefined>;
30
+ impact: Accessor<{
31
+ placementId: string;
32
+ reportId: string;
33
+ usage?: number;
34
+ } | undefined>;
35
+ setImpact: import("solid-js").Setter<{
36
+ placementId: string;
37
+ reportId: string;
38
+ usage?: number;
39
+ } | undefined>;
40
+ notice: Accessor<string>;
41
+ setNotice: import("solid-js").Setter<string>;
42
+ announcement: Accessor<string>;
43
+ setAnnouncement: import("solid-js").Setter<string>;
44
+ added: Accessor<string[]>;
45
+ saved: Accessor<boolean>;
46
+ copyFailed: Accessor<boolean>;
47
+ pickedEntry: (placementId: string) => import("./contract/types").CatalogEntry | undefined;
48
+ edit: (change: (composition: import("./contract/types").Composition) => import("./contract/types").Composition) => void;
49
+ move: (id: string, direction: import("./layout").PlacementDirection) => void;
50
+ moveBefore: (id: string, targetId: string) => void;
51
+ resize: (id: string, span: number) => void;
52
+ remove: (id: string) => void;
53
+ addPicked: (confirmation: import("./picker").ReportPickerConfirmation) => void;
54
+ configure: (id: string, settings: {
55
+ title: string;
56
+ span: number;
57
+ period?: import("./contract/types").ContextPeriod;
58
+ }) => void;
59
+ save: (intent: SaveIntent) => Promise<boolean>;
60
+ cancel: (options?: {
61
+ announce?: boolean;
62
+ }) => void;
63
+ openImpact: (placementId: string, reportId: string) => Promise<void>;
64
+ saveCopy: () => void;
65
+ conflict: () => import("./draft").ReportRevisionConflictError<import("./contract/types").Composition> | undefined;
66
+ saveError: () => boolean;
67
+ status: () => string;
68
+ proposal: () => import("./contract/types").Proposal | undefined;
69
+ proposalValid: (value: import("./editing").ReportProposal) => boolean;
70
+ applyProposal: (current: import("./editing").ReportProposal) => void;
71
+ rejectProposal: (current: import("./editing").ReportProposal) => void;
72
+ };
73
+ guard: import("./guard").ReportLeaveGuard;
74
+ refs: {
75
+ toggle?: HTMLElement;
76
+ cancel?: HTMLElement;
77
+ };
78
+ editing: () => boolean;
79
+ start: () => void;
80
+ addReport: (trigger?: HTMLElement) => void;
81
+ cancel: () => void;
82
+ save: (intent: SaveIntent) => Promise<void>;
83
+ placementHost: (outer: ReportPlacementHost | undefined) => ReportPlacementHost;
84
+ modeAnnouncement: Accessor<string>;
85
+ cardEdit: (id: string, options: {
86
+ title: () => string;
87
+ preview: () => boolean;
88
+ grid: () => HTMLElement | undefined;
89
+ }) => {
90
+ readonly editing: boolean;
91
+ readonly row: number;
92
+ readonly preview: boolean;
93
+ readonly added: boolean;
94
+ span: () => number;
95
+ dropTarget: Accessor<boolean>;
96
+ dropProps: {
97
+ onDragLeave: () => false;
98
+ onDragOver: (event: DragEvent) => void;
99
+ onDrop: (event: DragEvent) => void;
100
+ };
101
+ handle: () => JSX.Element;
102
+ resize: () => JSX.Element;
103
+ cardRef: (element: HTMLElement) => Map<string, HTMLElement>;
104
+ };
105
+ };
106
+ type EditorState = ReturnType<typeof createDashboardEditor>;
107
+ /** What the dashboard renders of the edit mode, bound to one editor. */
108
+ export interface DashboardEditor extends EditorState {
109
+ Toggle: () => JSX.Element;
110
+ Bar: () => JSX.Element;
111
+ Notices: () => JSX.Element;
112
+ Dialogs: () => JSX.Element;
113
+ Added: (props: {
114
+ placement: Placement;
115
+ theme: LensThemeMode;
116
+ locale?: string;
117
+ csrf?: string;
118
+ fetcher?: typeof fetch;
119
+ }) => JSX.Element;
120
+ }
121
+ /** Creates the editor inside the dashboard's runtime and hands it to the board. */
122
+ export declare function DashboardEditScope(props: {
123
+ edit: LensDashboardEditing;
124
+ theme: Accessor<LensThemeMode>;
125
+ children: (editor: DashboardEditor) => JSX.Element;
126
+ }): JSX.Element;
127
+ export {};
128
+ //# sourceMappingURL=dashboardEdit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboardEdit.d.ts","sourceRoot":"","sources":["../../src/reports/dashboardEdit.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwE,KAAK,QAAQ,EAAE,KAAK,GAAG,EAAE,MAAM,UAAU,CAAA;AAIxH,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAA;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAA;AAChE,OAAO,EAEoB,KAAK,sBAAsB,EACrD,MAAM,WAAW,CAAA;AAGlB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AAK1D,iHAAiH;AACjH,iBAAS,qBAAqB,CAAC,IAAI,EAAE,oBAAoB,EAAE,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAsK3B,CAAC;;;;oBAK/C,CAAC;;;;;;;;;;;;;;iBArKQ,WAAW;iBAAW,WAAW;;;;0BAS3B,WAAW;;mBAaZ,UAAU;2BAsCR,mBAAmB,GAAG,SAAS,KAAG,mBAAmB;;mBAoB7D,MAAM,WAAW;QAAE,KAAK,EAAE,MAAM,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,OAAO,CAAC;QAAC,IAAI,EAAE,MAAM,WAAW,GAAG,SAAS,CAAA;KAAE;;;;;;;;;;;;;;2BAoBpG,WAAW;;EAKnC;AAED,KAAK,WAAW,GAAG,UAAU,CAAC,OAAO,qBAAqB,CAAC,CAAA;AAE3D,wEAAwE;AACxE,MAAM,WAAW,eAAgB,SAAQ,WAAW;IAClD,MAAM,EAAE,MAAM,GAAG,CAAC,OAAO,CAAA;IACzB,GAAG,EAAE,MAAM,GAAG,CAAC,OAAO,CAAA;IACtB,OAAO,EAAE,MAAM,GAAG,CAAC,OAAO,CAAA;IAC1B,OAAO,EAAE,MAAM,GAAG,CAAC,OAAO,CAAA;IAC1B,KAAK,EAAE,CAAC,KAAK,EAAE;QAAE,SAAS,EAAE,SAAS,CAAC;QAAC,KAAK,EAAE,aAAa,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,OAAO,KAAK,CAAA;KAAE,KAAK,GAAG,CAAC,OAAO,CAAA;CACtI;AAED,mFAAmF;AACnF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,oBAAoB,CAAC;IAAC,KAAK,EAAE,QAAQ,CAAC,aAAa,CAAC,CAAC;IAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,eAAe,KAAK,GAAG,CAAC,OAAO,CAAA;CAAE,GAAG,GAAG,CAAC,OAAO,CAgBzK"}
@@ -0,0 +1,45 @@
1
+ import type { Accessor } from 'solid-js';
2
+ import type { DashboardDocument } from '../contract/types';
3
+ import type { Composition, Placement } from './contract/types';
4
+ import type { SaveIntent } from './draft';
5
+ import type { CompositionSessionHost } from './editing';
6
+ import type { ReportLeaveGuard } from './guard';
7
+ /**
8
+ * A host-driven edit mode over the live dashboard. The host owns the draft
9
+ * (createReportDraft, which persists through its own save), whether the board
10
+ * is being edited, and what happens after a save or cancel; the SDK edits the
11
+ * draft in place and renders the cards from it.
12
+ */
13
+ export interface LensDashboardEditing extends Omit<CompositionSessionHost, 'theme'> {
14
+ /** Whether the board is in edit mode. */
15
+ editing: Accessor<boolean>;
16
+ setEditing: (editing: boolean) => void;
17
+ /** In-app navigation guard; one with browser-unload protection is created when omitted. */
18
+ guard?: ReportLeaveGuard;
19
+ /**
20
+ * The document of a placement the open document does not contain yet (added
21
+ * in this session), so its card shows live figures before the save. The
22
+ * catalog's preview of the picked report is used when omitted.
23
+ */
24
+ placementDocument?: (placement: Placement, options: {
25
+ signal: AbortSignal;
26
+ }) => Promise<DashboardDocument>;
27
+ /** After the host acknowledged a save; edit mode has ended. A host typically refreshes the document here. */
28
+ onSaved?: (composition: Composition, intent: SaveIntent) => void;
29
+ /** After the reader cancelled; the draft is back at its saved state and edit mode has ended. */
30
+ onCancel?: () => void;
31
+ /** Show the built-in Edit action (true by default); false when the host renders its own toggle. */
32
+ toggle?: boolean;
33
+ }
34
+ /** Which parts of the dashboard header the SDK renders. Every member defaults to the full chrome. */
35
+ export interface LensDashboardChrome {
36
+ /** The document title. Hide it when the host page renders its own heading. */
37
+ title?: boolean;
38
+ /** The document's own description line after the filters. */
39
+ description?: boolean;
40
+ /** The whole header (title, actions and filters). An edit mode keeps its action row. */
41
+ header?: boolean;
42
+ /** compact folds report periods, restoring saved filters, filter defaults and comparison into a "More" menu. */
43
+ toolbar?: 'full' | 'compact';
44
+ }
45
+ //# sourceMappingURL=dashboardEditTypes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dashboardEditTypes.d.ts","sourceRoot":"","sources":["../../src/reports/dashboardEditTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAA;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAA;AAC9D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AACzC,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAA;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAA;AAE/C;;;;;GAKG;AACH,MAAM,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