@cratis/event-models 0.311.3 → 0.312.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.
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Guid as ve } from "@cratis/fundamentals";
2
- import ii, { Fragment as bt, createContext as ze, forwardRef as Za, memo as ai, startTransition as Ka, useCallback as V, useContext as Oe, useEffect as oe, useId as Bt, useImperativeHandle as qt, useLayoutEffect as St, useMemo as ue, useRef as A, useState as _, useSyncExternalStore as Ja } from "react";
2
+ import ii, { Fragment as bt, createContext as ze, forwardRef as Za, memo as ai, startTransition as Ka, useCallback as V, useContext as Oe, useEffect as oe, useId as qt, useImperativeHandle as Wt, useLayoutEffect as St, useMemo as ue, useRef as A, useState as _, useSyncExternalStore as Ja } from "react";
3
3
  import { Fragment as ne, jsx as a, jsxs as C } from "react/jsx-runtime";
4
4
  import { createPortal as At, flushSync as es } from "react-dom";
5
5
  import { Canvas as ts, CanvasItem as si, Note as ns, canvasGesture as mn } from "@cratis/components/Canvas";
@@ -24,7 +24,7 @@ var Ie = /* @__PURE__ */ (function(e) {
24
24
  return e[e.private = 0] = "private", e[e.public = 1] = "public", e;
25
25
  })({}), Ln = /* @__PURE__ */ (function(e) {
26
26
  return e[e.events = 0] = "events", e[e.readModel = 1] = "readModel", e;
27
- })({}), zt = /* @__PURE__ */ (function(e) {
27
+ })({}), jt = /* @__PURE__ */ (function(e) {
28
28
  return e[e.text = 0] = "text", e[e.number = 1] = "number", e[e.boolean = 2] = "boolean", e[e.date = 3] = "date", e[e.time = 4] = "time", e[e.uniqueId = 5] = "uniqueId", e;
29
29
  })({}), Pn = /* @__PURE__ */ (function(e) {
30
30
  return e[e.unspecified = 0] = "unspecified", e[e.many = 1] = "many", e[e.one = 2] = "one", e[e.zeroOrOne = 3] = "zeroOrOne", e;
@@ -174,7 +174,7 @@ var Ie = /* @__PURE__ */ (function(e) {
174
174
  windowWidth: e.number("windowWidth"),
175
175
  windowHeight: e.number("windowHeight")
176
176
  };
177
- }, Wt = (e) => {
177
+ }, Ht = (e) => {
178
178
  const t = e.optionalString("description"), n = e.optionalString("documentation");
179
179
  return {
180
180
  ...t ? { description: t } : {},
@@ -190,9 +190,9 @@ var Ie = /* @__PURE__ */ (function(e) {
190
190
  if (typeof e != "object" || e === null || Array.isArray(e)) return !1;
191
191
  const t = Reflect.get(e, "type"), n = Reflect.get(e, "properties");
192
192
  return (t === void 0 || typeof t == "string") && (n === void 0 || typeof n == "object" && n !== null && !Array.isArray(n));
193
- }, jt = (e) => {
193
+ }, Vt = (e) => {
194
194
  if (typeof e == "string") try {
195
- return jt(JSON.parse(e));
195
+ return Vt(JSON.parse(e));
196
196
  } catch {
197
197
  return ro();
198
198
  }
@@ -231,9 +231,9 @@ var Ie = /* @__PURE__ */ (function(e) {
231
231
  return {
232
232
  id: e.guid("id"),
233
233
  name: e.string("name"),
234
- ...Wt(e),
235
- schema: jt(e.raw("schema")),
236
- stateSchema: jt(e.raw("stateSchema")),
234
+ ...Ht(e),
235
+ schema: Vt(e.raw("schema")),
236
+ stateSchema: Vt(e.raw("stateSchema")),
237
237
  logicDescription: e.string("logicDescription"),
238
238
  ...e.has("rules") ? { rules: e.array("rules", Ns) } : {},
239
239
  ...t ? { concurrency: t } : {}
@@ -243,8 +243,8 @@ var Ie = /* @__PURE__ */ (function(e) {
243
243
  return {
244
244
  id: e.guid("id"),
245
245
  name: e.string("name"),
246
- ...Wt(e),
247
- schema: jt(e.raw("schema")),
246
+ ...Ht(e),
247
+ schema: Vt(e.raw("schema")),
248
248
  ...t ? { sourceEventId: t } : {},
249
249
  ...e.has("tags") ? { tags: e.strings("tags") } : {},
250
250
  ...n ? { constraints: n } : {},
@@ -257,8 +257,8 @@ var Ie = /* @__PURE__ */ (function(e) {
257
257
  }), io = (e) => ({
258
258
  id: e.guid("id"),
259
259
  name: e.string("name"),
260
- ...Wt(e),
261
- schema: jt(e.raw("schema")),
260
+ ...Ht(e),
261
+ schema: Vt(e.raw("schema")),
262
262
  materializes: e.boolean("materializes")
263
263
  }), Ls = (e) => {
264
264
  const t = e.optionalEnumValue("resultShape"), n = e.optionalString("description"), r = e.optionalString("code");
@@ -380,7 +380,7 @@ var Ie = /* @__PURE__ */ (function(e) {
380
380
  return {
381
381
  id: e.guid("id"),
382
382
  name: e.string("name"),
383
- ...Wt(e),
383
+ ...Ht(e),
384
384
  ...u ? { outcomes: u } : {},
385
385
  given: e.array("given", ao),
386
386
  ...e.has("givenContexts") ? { givenContexts: e.array("givenContexts", _s) } : {},
@@ -506,7 +506,7 @@ var Ie = /* @__PURE__ */ (function(e) {
506
506
  return {
507
507
  id: e.guid("id"),
508
508
  name: e.string("name"),
509
- ...Wt(e),
509
+ ...Ht(e),
510
510
  subFeatures: e.array("subFeatures", ui),
511
511
  slices: e.array("slices", el),
512
512
  collapsed: e.boolean("collapsed"),
@@ -520,7 +520,7 @@ var Ie = /* @__PURE__ */ (function(e) {
520
520
  return {
521
521
  id: e.guid("id"),
522
522
  name: e.string("name"),
523
- ...Wt(e),
523
+ ...Ht(e),
524
524
  features: e.array("features", ui),
525
525
  collapsed: e.boolean("collapsed"),
526
526
  sortOrder: e.number("sortOrder"),
@@ -541,9 +541,10 @@ var Ie = /* @__PURE__ */ (function(e) {
541
541
  stickyNotes: t.array("stickyNotes", bs),
542
542
  links: t.array("links", ys)
543
543
  };
544
- }, Vt = {
544
+ }, Lt = {
545
545
  properties: (e) => `${e} ${e === 1 ? "property" : "properties"}`,
546
546
  caller: "caller",
547
+ persona: (e) => `as ${e}`,
547
548
  roles: "roles",
548
549
  authenticated: "authenticated",
549
550
  anonymous: "anonymous",
@@ -1801,9 +1802,9 @@ function vd({ initialCollections: e, onAddCollection: t, onCollectionMoved: n, o
1801
1802
  var Fi = ze(!1), hd = ({ renderAll: e = !1, children: t }) => /* @__PURE__ */ a(Fi.Provider, {
1802
1803
  value: e,
1803
1804
  children: t
1804
- }), pd = () => Oe(Fi), fd = 12, po = 24, bd = 100, Bi = 1, yd = 1, wd = 24, Sd = 3, Lt = /* @__PURE__ */ new Map(), tr = !1, vt = Bi, fo = 0, Dn = !1;
1805
+ }), pd = () => Oe(Fi), fd = 12, po = 24, bd = 100, Bi = 1, yd = 1, wd = 24, Sd = 3, Pt = /* @__PURE__ */ new Map(), tr = !1, vt = Bi, fo = 0, Dn = !1;
1805
1806
  function Cd(e) {
1806
- return [...Lt].filter(([, t]) => e(t)).sort((t, n) => t[1].distance - n[1].distance);
1807
+ return [...Pt].filter(([, t]) => e(t)).sort((t, n) => t[1].distance - n[1].distance);
1807
1808
  }
1808
1809
  function xd() {
1809
1810
  tr = !1;
@@ -1815,10 +1816,10 @@ function xd() {
1815
1816
  const o = r ? Math.min(vt, Sd) : vt;
1816
1817
  let i = 0;
1817
1818
  for (const [s, l] of Cd((d) => !r || d.verdict))
1818
- if (Lt.delete(s), r ? Ka(() => s(l.verdict)) : s(l.verdict), ++i >= o) break;
1819
+ if (Pt.delete(s), r ? Ka(() => s(l.verdict)) : s(l.verdict), ++i >= o) break;
1819
1820
  Dn = i > 0;
1820
1821
  }
1821
- Lt.size > 0 && xr();
1822
+ Pt.size > 0 && xr();
1822
1823
  }
1823
1824
  function xr() {
1824
1825
  tr || (tr = !0, requestAnimationFrame(xd));
@@ -1826,19 +1827,19 @@ function xr() {
1826
1827
  var bo = !1;
1827
1828
  function Md() {
1828
1829
  bo || (bo = !0, mn.subscribe((e) => {
1829
- !e && Lt.size > 0 && xr();
1830
+ !e && Pt.size > 0 && xr();
1830
1831
  }));
1831
1832
  }
1832
1833
  var yo = {
1833
1834
  request(e, t, n = Number.POSITIVE_INFINITY, r = "light") {
1834
- Md(), Lt.set(e, {
1835
+ Md(), Pt.set(e, {
1835
1836
  verdict: t,
1836
1837
  distance: n,
1837
1838
  weight: r
1838
1839
  }), xr();
1839
1840
  },
1840
1841
  cancel(e) {
1841
- Lt.delete(e);
1842
+ Pt.delete(e);
1842
1843
  }
1843
1844
  };
1844
1845
  function Mr(e, t = "250% 250%", n = "light") {
@@ -2296,7 +2297,7 @@ var Ct = ({ change: e, kind: t, name: n }) => {
2296
2297
  })
2297
2298
  ]
2298
2299
  });
2299
- }, Pt = (e, t, n) => {
2300
+ }, Tt = (e, t, n) => {
2300
2301
  const r = A(t);
2301
2302
  r.current = t, oe(() => {
2302
2303
  if (!n) return;
@@ -2338,7 +2339,7 @@ var Ct = ({ change: e, kind: t, name: n }) => {
2338
2339
  display: "inline-block"
2339
2340
  }), Co = ({ rowType: e, height: t, name: n, description: r, actorId: o, onRenamed: i, validateName: s, onActorAdded: l, onDragStart: d, dragging: c = !1, badge: u, personaAvatar: g, children: p }) => {
2340
2341
  const { readOnly: h, messages: m } = te(), [v, f] = _(!1), [b, y] = _(!1), w = A(void 0), x = A(null), S = A(null), I = A(null), E = ue(() => [S], []), M = ue(() => [I], []);
2341
- Pt(E, () => f(!1), v), Pt(M, () => y(!1), b);
2342
+ Tt(E, () => f(!1), v), Tt(M, () => y(!1), b);
2342
2343
  const D = n ?? Pd(e, m), U = Td(e), ee = U && !h ? i : void 0, F = U && !h ? l : void 0, J = o && !h ? d : void 0, R = h ? [] : u?.actions ?? [], k = h ? void 0 : u?.onActivate, W = R.length > 0 || !!k, L = g ?? u?.avatar, $ = U && (!!L || !!u && !h), K = () => {
2343
2344
  if (R.length > 0) {
2344
2345
  y((O) => !O);
@@ -2827,7 +2828,7 @@ var Io = ({ status: e }) => /* @__PURE__ */ a("svg", {
2827
2828
  children: e
2828
2829
  });
2829
2830
  }, ct = ({ trigger: e, items: t, align: n = "right", onClose: r }) => {
2830
- const o = Oe(Gi), i = Bt(), [s, l] = _(!1), [d, c] = _(), u = A(null), g = A(null), p = o ? o.openMenuId === i : s, h = A(p);
2831
+ const o = Oe(Gi), i = qt(), [s, l] = _(!1), [d, c] = _(), u = A(null), g = A(null), p = o ? o.openMenuId === i : s, h = A(p);
2831
2832
  oe(() => {
2832
2833
  h.current && !p && (r?.(), c(void 0)), h.current = p;
2833
2834
  }, [p, r]);
@@ -2838,7 +2839,7 @@ var Io = ({ status: e }) => /* @__PURE__ */ a("svg", {
2838
2839
  }
2839
2840
  l(y);
2840
2841
  }, v = () => m(!1), f = ue(() => [u, g], []);
2841
- Pt(f, v, p);
2842
+ Tt(f, v, p);
2842
2843
  const b = (y) => y.map((w) => {
2843
2844
  if (w.isSeparator) return /* @__PURE__ */ a("div", { className: "event-modeling-menu-dropdown-separator" }, w.id.toString());
2844
2845
  if (w.isHeader) return /* @__PURE__ */ a("div", {
@@ -3728,7 +3729,7 @@ function Ic(e) {
3728
3729
  }
3729
3730
  }
3730
3731
  var Nc = ({ sliceType: e, recomputeKey: t }) => {
3731
- const n = A(null), [r, o] = _([]), i = `flow-arrow-${Bt().replace(/:/g, "")}`, s = V(() => {
3732
+ const n = A(null), [r, o] = _([]), i = `flow-arrow-${qt().replace(/:/g, "")}`, s = V(() => {
3732
3733
  const u = n.current, g = u?.parentElement;
3733
3734
  if (!u || !g) return;
3734
3735
  const p = u.getBoundingClientRect(), h = u.clientWidth || p.width, m = h ? p.width / h : 1, v = (y) => {
@@ -4156,7 +4157,7 @@ function Gc({ ref: e, initialFeatures: t, moduleId: n, widthOf: r, isCollapsed:
4156
4157
  g,
4157
4158
  M
4158
4159
  ]);
4159
- qt(e, () => ({
4160
+ Wt(e, () => ({
4160
4161
  addFeature: (T) => D(T),
4161
4162
  addSubFeature: (T, N) => D(N, T),
4162
4163
  updateFeature: (T, N) => M((G) => ({
@@ -4813,7 +4814,7 @@ var ru = ({ state: e, specification: t }) => {
4813
4814
  return !1;
4814
4815
  }
4815
4816
  }, au = ({ text: e, variant: t }) => {
4816
- const n = Ce().specificationResult, [r, o] = _(!1), [i, s] = _(!1), l = Bt(), d = A(void 0);
4817
+ const n = Ce().specificationResult, [r, o] = _(!1), [i, s] = _(!1), l = qt(), d = A(void 0);
4817
4818
  oe(() => () => clearTimeout(d.current), []);
4818
4819
  const c = async () => {
4819
4820
  await iu(e) && (s(!0), clearTimeout(d.current), d.current = setTimeout(() => s(!1), 1500));
@@ -5418,7 +5419,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
5418
5419
  }, Ee = {
5419
5420
  background: "#ff9933",
5420
5421
  text: "#2a1500"
5421
- }, Tt = {
5422
+ }, $t = {
5422
5423
  background: "#42b3ff",
5423
5424
  text: "#003d5c"
5424
5425
  }, He = {
@@ -5469,7 +5470,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
5469
5470
  items: lr(e?.items, t.items)
5470
5471
  }), n;
5471
5472
  }, Lu = (e, t) => lr(e, t), _o = {
5472
- [se.command]: Tt,
5473
+ [se.command]: $t,
5473
5474
  [se.readModel]: He,
5474
5475
  [se.event]: Ee,
5475
5476
  [se.projection]: Dr,
@@ -5683,7 +5684,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
5683
5684
  title: e,
5684
5685
  children: n.content
5685
5686
  });
5686
- }, $t = ({ title: e, schema: t, showTitle: n = !0, compact: r = !1 }) => {
5687
+ }, _t = ({ title: e, schema: t, showTitle: n = !0, compact: r = !1 }) => {
5687
5688
  const o = Ce(), i = ue(() => Ri(t), [t]);
5688
5689
  return /* @__PURE__ */ C("div", {
5689
5690
  className: `schema-tooltip-properties${r ? " schema-tooltip-properties--compact" : ""}`,
@@ -5762,7 +5763,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
5762
5763
  children: t
5763
5764
  }, t))
5764
5765
  }), Do = {
5765
- [se.command]: Tt,
5766
+ [se.command]: $t,
5766
5767
  [se.readModel]: He,
5767
5768
  [se.event]: Ee,
5768
5769
  [se.projection]: Dr,
@@ -5808,7 +5809,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
5808
5809
  style: rm,
5809
5810
  children: n
5810
5811
  }),
5811
- l && /* @__PURE__ */ a($t, {
5812
+ l && /* @__PURE__ */ a(_t, {
5812
5813
  title: g.name,
5813
5814
  schema: v.schema,
5814
5815
  showTitle: !1,
@@ -5877,7 +5878,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
5877
5878
  const [d, c] = _(!1), [u, g] = _(""), p = A(null), h = A(null), m = e.length > om, v = () => {
5878
5879
  c(!1), g("");
5879
5880
  }, f = ue(() => [p, h], []);
5880
- Pt(f, v, d);
5881
+ Tt(f, v, d);
5881
5882
  const b = u ? e.filter((w) => t(w).toLowerCase().includes(u.toLowerCase())) : e, y = (w) => {
5882
5883
  i(w), v();
5883
5884
  };
@@ -5955,7 +5956,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
5955
5956
  children: "+"
5956
5957
  })
5957
5958
  })
5958
- }), fa = (e) => Object.fromEntries(e.map((t) => [t.id.toString(), t.values])), im = { borderLeft: `3px solid ${pt.background}` }, am = { borderLeft: `3px solid ${He.background}` }, _t = ({ options: e, nameOf: t, onChosen: n, errors: r = [], statements: o = [], groups: i = [], color: s = Ee.background }) => {
5959
+ }), fa = (e) => Object.fromEntries(e.map((t) => [t.id.toString(), t.values])), im = { borderLeft: `3px solid ${pt.background}` }, am = { borderLeft: `3px solid ${He.background}` }, Dt = ({ options: e, nameOf: t, onChosen: n, errors: r = [], statements: o = [], groups: i = [], color: s = Ee.background }) => {
5959
5960
  const l = Ce().specifications, d = i.filter((c) => c.options.length > 0);
5960
5961
  return /* @__PURE__ */ a(An, {
5961
5962
  options: e,
@@ -6009,16 +6010,16 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6009
6010
  })
6010
6011
  })
6011
6012
  });
6012
- }, sm = (e) => e == null ? "" : typeof e == "string" ? e : typeof e == "object" ? JSON.stringify(e) : String(e), Fo = (e, t) => `${t.eventSource ?? Vt.eventSource}: ${e}`, ba = (e, t) => {
6013
+ }, sm = (e) => e == null ? "" : typeof e == "string" ? e : typeof e == "object" ? JSON.stringify(e) : String(e), Fo = (e, t) => `${t.eventSource ?? Lt.eventSource}: ${e}`, ba = (e, t) => {
6013
6014
  const n = [
6014
- e.persona?.trim() || void 0,
6015
+ e.persona?.trim() ? (t.persona ?? Lt.persona)?.(e.persona.trim()) : void 0,
6015
6016
  e.authenticated === void 0 ? void 0 : e.authenticated ? t.authenticated : t.anonymous,
6016
6017
  e.roles && e.roles.length > 0 ? `${t.roles}: ${e.roles.join(", ")}` : void 0,
6017
6018
  ...Object.entries(e.claims ?? {}).map(([r, o]) => `${r}=${o}`)
6018
6019
  ].filter((r) => r !== void 0);
6019
6020
  return n.length === 0 ? void 0 : `${t.caller}: ${n.join(" · ")}`;
6020
6021
  }, ya = ({ title: e, values: t, caller: n, message: r }) => {
6021
- const { messages: o } = te(), i = o.specifications.values ?? Vt, s = Object.entries(t ?? {}), l = n ? ba(n, i) : void 0;
6022
+ const { messages: o } = te(), i = o.specifications.values ?? Lt, s = Object.entries(t ?? {}), l = n ? ba(n, i) : void 0;
6022
6023
  return /* @__PURE__ */ C("div", {
6023
6024
  className: "event-modeling-spec-details",
6024
6025
  children: [
@@ -6043,7 +6044,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6043
6044
  })
6044
6045
  ]
6045
6046
  });
6046
- }, lm = (e, t, n) => Object.keys(e ?? {}).length > 0 || !!n || !!t && ba(t, Vt) !== void 0, We = ({ name: e, colors: t, onOpen: n, values: r, caller: o, message: i }) => {
6047
+ }, lm = (e, t, n) => Object.keys(e ?? {}).length > 0 || !!n || !!t && ba(t, Lt) !== void 0, We = ({ name: e, colors: t, onOpen: n, values: r, caller: o, message: i }) => {
6047
6048
  const s = A(null), l = !!n, d = o?.persona?.trim(), c = /* @__PURE__ */ a("div", {
6048
6049
  ref: s,
6049
6050
  children: /* @__PURE__ */ a(st, {
@@ -6363,7 +6364,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6363
6364
  return /* @__PURE__ */ C(ft, {
6364
6365
  headline: u.specifications.given,
6365
6366
  actions: /* @__PURE__ */ C(ne, { children: [
6366
- ae && /* @__PURE__ */ a(_t, {
6367
+ ae && /* @__PURE__ */ a(Dt, {
6367
6368
  options: X,
6368
6369
  nameOf: (z) => z.name,
6369
6370
  onChosen: N
@@ -6405,7 +6406,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6405
6406
  })
6406
6407
  })
6407
6408
  }),
6408
- _e && /* @__PURE__ */ a(_t, {
6409
+ _e && /* @__PURE__ */ a(Dt, {
6409
6410
  options: Q,
6410
6411
  nameOf: (z) => z.name,
6411
6412
  onChosen: Je,
@@ -6434,21 +6435,21 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6434
6435
  return t?.type === Xe.custom && o.length === 0 ? [] : e.filter((i) => o.some((s) => s.id.equals(i.eventId) || Bo(s.sourceEventId, i.eventId) || s.name === i.name));
6435
6436
  }, wm = (e) => {
6436
6437
  switch (e) {
6437
- case zt.number:
6438
+ case jt.number:
6438
6439
  return { type: "number" };
6439
- case zt.boolean:
6440
+ case jt.boolean:
6440
6441
  return { type: "boolean" };
6441
- case zt.date:
6442
+ case jt.date:
6442
6443
  return {
6443
6444
  type: "string",
6444
6445
  format: "date"
6445
6446
  };
6446
- case zt.time:
6447
+ case jt.time:
6447
6448
  return {
6448
6449
  type: "string",
6449
6450
  format: "time"
6450
6451
  };
6451
- case zt.uniqueId:
6452
+ case jt.uniqueId:
6452
6453
  return {
6453
6454
  type: "string",
6454
6455
  format: "uuid"
@@ -6604,7 +6605,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6604
6605
  }
6605
6606
  const mt = t === B.stateView ? i : [];
6606
6607
  if (j && !mt.some((Y) => zn(j, Y))) {
6607
- const Y = i.find((fe) => fe.id.equals(j.eventId) || fe.name.toLowerCase() === j.name.toLowerCase()), pe = Y?.name ?? j.name, xe = g.specifications.values ?? Vt;
6608
+ const Y = i.find((fe) => fe.id.equals(j.eventId) || fe.name.toLowerCase() === j.name.toLowerCase()), pe = Y?.name ?? j.name, xe = g.specifications.values ?? Lt;
6608
6609
  return /* @__PURE__ */ a(ft, {
6609
6610
  headline: g.specifications.when,
6610
6611
  children: /* @__PURE__ */ a(Ye, {
@@ -6629,12 +6630,12 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6629
6630
  }] : [], Be = !p && t === B.stateView && !j && !O && !Q && c.length > 0 && !!x, Mt = !p && t !== B.stateChange && t !== B.stateView && !O && !!r && !!h;
6630
6631
  return /* @__PURE__ */ C(ft, {
6631
6632
  headline: g.specifications.when,
6632
- actions: (Mt || Me.length > 0 || Be) && (Be ? /* @__PURE__ */ a(_t, {
6633
+ actions: (Mt || Me.length > 0 || Be) && (Be ? /* @__PURE__ */ a(Dt, {
6633
6634
  options: c,
6634
6635
  nameOf: (Y) => Y.name,
6635
6636
  onChosen: re,
6636
6637
  color: To.background
6637
- }) : /* @__PURE__ */ a(_t, {
6638
+ }) : /* @__PURE__ */ a(Dt, {
6638
6639
  options: Mt && r ? [r] : [],
6639
6640
  nameOf: (Y) => Y.name,
6640
6641
  onChosen: H,
@@ -6643,14 +6644,14 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6643
6644
  children: [
6644
6645
  O && _e && !Ve && /* @__PURE__ */ a(We, {
6645
6646
  name: _e,
6646
- colors: Tt,
6647
+ colors: $t,
6647
6648
  values: De,
6648
6649
  caller: ye,
6649
6650
  onOpen: Ge ? (Y) => Ae(O.id, O.commandId, _e, Y, De ?? {}) : void 0
6650
6651
  }, O.id.toString()),
6651
6652
  Le && ae && /* @__PURE__ */ a(We, {
6652
6653
  name: Le.name,
6653
- colors: Tt,
6654
+ colors: $t,
6654
6655
  values: de,
6655
6656
  caller: ye,
6656
6657
  onOpen: Ge ? (Y) => Ae(ae, Le.id, Le.name, Y, de ?? {}) : void 0
@@ -6661,7 +6662,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6661
6662
  colors: t === B.translator ? sr : Ee,
6662
6663
  caller: ye,
6663
6664
  values: pe ? j?.values : void 0,
6664
- message: pe && j?.eventSourceId ? Fo(j.eventSourceId, g.specifications.values ?? Vt) : void 0,
6665
+ message: pe && j?.eventSourceId ? Fo(j.eventSourceId, g.specifications.values ?? Lt) : void 0,
6665
6666
  onOpen: Je && xe ? (Ze) => $e(xe, Ze) : void 0
6666
6667
  }, Y.id.toString());
6667
6668
  return pe ? /* @__PURE__ */ a(Ye, {
@@ -6802,10 +6803,10 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6802
6803
  ge((gt) => ({
6803
6804
  ...gt,
6804
6805
  [q.id.toString()]: Ue
6805
- })), T.remember(n.id.toString(), q.id.toString(), Ue), $((gt) => gt.map((Ht) => Ht.id.equals(q.id) ? {
6806
- ...Ht,
6806
+ })), T.remember(n.id.toString(), q.id.toString(), Ue), $((gt) => gt.map((zt) => zt.id.equals(q.id) ? {
6807
+ ...zt,
6807
6808
  values: Ue
6808
- } : Ht)), F?.(e, n.id, q.id, q.readModelItemId, le, Ue);
6809
+ } : zt)), F?.(e, n.id, q.id, q.readModelItemId, le, Ue);
6809
6810
  }
6810
6811
  }) : void 0
6811
6812
  })
@@ -6867,8 +6868,8 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6867
6868
  values: (Ae ? q.values : G[q.id.toString()]) ?? {},
6868
6869
  host: Ue,
6869
6870
  onValuesSet: (gt) => {
6870
- ge((Ht) => ({
6871
- ...Ht,
6871
+ ge((zt) => ({
6872
+ ...zt,
6872
6873
  [q.id.toString()]: gt
6873
6874
  })), T.remember(n.id.toString(), q.id.toString(), gt), v?.(e, n.id, q.id, gt);
6874
6875
  }
@@ -6930,7 +6931,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6930
6931
  })) : []] : [], Ga = ye.events && m && !qe ? r : [], eo = d ?? [], Ua = eo.some((q) => q.options.length > 0);
6931
6932
  if (k) return /* @__PURE__ */ C(ft, {
6932
6933
  headline: p.specifications.then,
6933
- actions: Me && i && /* @__PURE__ */ a(_t, {
6934
+ actions: Me && i && /* @__PURE__ */ a(Dt, {
6934
6935
  options: [i],
6935
6936
  nameOf: (q) => q.name,
6936
6937
  onChosen: mt,
@@ -6947,7 +6948,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
6947
6948
  })
6948
6949
  ]
6949
6950
  });
6950
- const Ya = ye.events && m !== void 0 && !qe || Jr.length > 0 || Ua || Kr.length > 0, Xa = !h && Ya && /* @__PURE__ */ a(_t, {
6951
+ const Ya = ye.events && m !== void 0 && !qe || Jr.length > 0 || Ua || Kr.length > 0, Xa = !h && Ya && /* @__PURE__ */ a(Dt, {
6951
6952
  options: Ga,
6952
6953
  nameOf: (q) => q.name,
6953
6954
  onChosen: Be,
@@ -7281,7 +7282,7 @@ var Ru = 250, Ou = "Inter, Helvetica, Arial, sans-serif", st = ({ name: e, backg
7281
7282
  });
7282
7283
  }, _m = ({ ref: e, moduleId: t, collection: n, features: r, rows: o, heights: i, slots: s, editor: l, onFeaturesChanged: d }) => {
7283
7284
  const c = A(/* @__PURE__ */ new Map()), u = A(null);
7284
- qt(e, () => ({
7285
+ Wt(e, () => ({
7285
7286
  addFeature: (v) => u.current?.addFeature(v) ?? Promise.resolve(),
7286
7287
  addSubFeature: (v, f) => u.current?.addSubFeature(v, f) ?? Promise.resolve(),
7287
7288
  updateFeature: (v, f) => u.current?.updateFeature(v, f)
@@ -7746,7 +7747,7 @@ var qm = () => 1, Wm = ({ collection: e, getZoom: t = qm, slots: n, onDeselect:
7746
7747
  oe(() => {
7747
7748
  e !== m.current.snapshot && v((L) => Wr(L, e));
7748
7749
  }, [e]);
7749
- const f = yn(p), b = A(null), y = A(null), w = `module-collection-link-arrow-${Bt().replace(/:/g, "")}`, x = ue(() => new Map(t.map((L) => {
7750
+ const f = yn(p), b = A(null), y = A(null), w = `module-collection-link-arrow-${qt().replace(/:/g, "")}`, x = ue(() => new Map(t.map((L) => {
7750
7751
  const $ = {
7751
7752
  x: L.position.x,
7752
7753
  y: L.position.y,
@@ -7980,7 +7981,7 @@ var ig = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
7980
7981
  const o = t.get(n);
7981
7982
  return !!o && o.x === r.x && o.y === r.y;
7982
7983
  }), ag = ({ links: e, boardRoot: t, getZoom: n, path: r, revision: o }) => {
7983
- const { messages: i } = te(), s = A(null), l = Bt().replace(/:/g, ""), [d, c] = _(/* @__PURE__ */ new Map()), u = ue(() => e.flatMap((m) => [m.from.toString(), m.to.toString()]), [e]), g = A(() => {
7984
+ const { messages: i } = te(), s = A(null), l = qt().replace(/:/g, ""), [d, c] = _(/* @__PURE__ */ new Map()), u = ue(() => e.flatMap((m) => [m.from.toString(), m.to.toString()]), [e]), g = A(() => {
7984
7985
  });
7985
7986
  g.current = () => {
7986
7987
  const m = t.current;
@@ -8204,7 +8205,7 @@ var ig = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
8204
8205
  const S = V((R, k, W) => d.current.has(R) ? Promise.resolve() : (d.current.add(R), l.current.change(R, k), l.current.begin(R, k), x(), Promise.resolve().then(W).then((L) => (L === !1 && (l.current.rollback(R, k), l.current.get(R) || v(($) => $ === R ? void 0 : $), x()), L !== !1)).catch((L) => (l.current.rollback(R, k), l.current.get(R) || v(($) => $ === R ? void 0 : $), x(), o.stickyNoteError ? o.stickyNoteError(L) : console.error(L), !1)).finally(() => {
8205
8206
  l.current.settle(R, k), d.current.delete(R), x();
8206
8207
  })), [o, x]);
8207
- qt(n, () => ({ add(R) {
8208
+ Wt(n, () => ({ add(R) {
8208
8209
  const k = r.onStickyNoteAdded;
8209
8210
  if (!k || c.current) return;
8210
8211
  c.current = !0, o.stickyNoteCreatingChanged?.(!0);
@@ -8230,7 +8231,7 @@ var ig = (e, t) => e.size === t.size && [...e].every(([n, r]) => {
8230
8231
  S
8231
8232
  ]);
8232
8233
  const I = r.onStickyNoteMoved || r.onStickyNoteResized || r.onStickyNoteTextChanged || r.onStickyNoteRemoved ? v : void 0;
8233
- Pt(w, () => I?.(void 0), m !== void 0 && !!I);
8234
+ Tt(w, () => I?.(void 0), m !== void 0 && !!I);
8234
8235
  const E = (R, k) => {
8235
8236
  const W = l.current.get(R);
8236
8237
  !W || d.current.has(R) || W.position.x === k.x && W.position.y === k.y || (u.current.add(R), l.current.change(R, {
@@ -8692,7 +8693,7 @@ var _g = ({ id: e, collections: t, links: n, stickyNotes: r, readOnly: o, editor
8692
8693
  r,
8693
8694
  d
8694
8695
  ]), P = Tg(e, k, t, w, c, s?.onHandleReady, s?.initialZoom, s?.initialPan);
8695
- qt(u, () => ({
8696
+ Wt(u, () => ({
8696
8697
  addCollection: y,
8697
8698
  addStickyNote: (N) => E.current?.add(N),
8698
8699
  exportImage: K,
@@ -8857,7 +8858,7 @@ var qg = ({ document: e, readOnly: t = !1, editor: n, canvas: r, showMinimap: o
8857
8858
  });
8858
8859
  }, Xh = ({ showLogo: e = !1, showViewOptions: t = !1, toolbar: n, handle: r, editor: o, readOnly: i = !1, document: s, ...l }) => {
8859
8860
  const d = A(null);
8860
- qt(r, () => ({
8861
+ Wt(r, () => ({
8861
8862
  scrollTo: (h, m) => d.current?.scrollTo(h, m) ?? Promise.resolve(!1),
8862
8863
  revealSlice: (h, m) => d.current?.revealSlice(h, m) ?? Promise.resolve(!1),
8863
8864
  addCollection: (h, m) => d.current?.addCollection(h, m) ?? Promise.resolve(),
@@ -9563,7 +9564,7 @@ var pv = (e) => e === B.stateChange ? "State Change" : e === B.stateView ? "Stat
9563
9564
  ids: e.order.ids.map((o) => Ne(o, t) ? n : o)
9564
9565
  } : e.order
9565
9566
  };
9566
- return n ? Dt(r, e.snapshot) : r;
9567
+ return n ? Ft(r, e.snapshot) : r;
9567
9568
  }, Cv = (e, t, n) => {
9568
9569
  if (!Number.isInteger(t) || t < 0 || t >= e.length) return e;
9569
9570
  const r = Math.min(Math.max(Number.isInteger(n) ? n : t, 0), e.length - 1);
@@ -9580,7 +9581,7 @@ var pv = (e) => e === B.stateChange ? "State Change" : e === B.stateView ? "Stat
9580
9581
  confirmed: !1
9581
9582
  }
9582
9583
  };
9583
- }, Jo = (e, t) => Dt(t ? {
9584
+ }, Jo = (e, t) => Ft(t ? {
9584
9585
  ...e,
9585
9586
  order: e.order && {
9586
9587
  ...e.order,
@@ -9611,7 +9612,7 @@ var pv = (e) => e === B.stateChange ? "State Change" : e === B.stateView ? "Stat
9611
9612
  confirmed: !0
9612
9613
  } : i) : e.outgoing.filter((i) => !Ne(i.slice.id, t))
9613
9614
  };
9614
- return n ? Dt(o, e.snapshot) : o;
9615
+ return n ? Ft(o, e.snapshot) : o;
9615
9616
  }, Vr = (e, t, n) => {
9616
9617
  if (ot(e, t.id)) return e;
9617
9618
  const r = [...e];
@@ -9634,8 +9635,8 @@ var pv = (e) => e === B.stateChange ? "State Change" : e === B.stateView ? "Stat
9634
9635
  confirmed: !0
9635
9636
  } : o) : e.incoming.filter((o) => !Ne(o.slice.id, t))
9636
9637
  };
9637
- return n ? Dt(r, e.snapshot) : r;
9638
- }, Dt = (e, t) => {
9638
+ return n ? Ft(r, e.snapshot) : r;
9639
+ }, Ft = (e, t) => {
9639
9640
  const n = e.additions.filter((h) => !h.confirmed || !ot(t, h.slice.id)), r = e.outgoing.filter((h) => !h.confirmed || ot(t, h.slice.id)), o = e.incoming.filter((h) => !h.confirmed || !ot(t, h.slice.id)), i = e.order?.ids.filter((h) => ot(t, h)), s = t.filter((h) => i?.some((m) => Ne(m, h.id))).map((h) => h.id), l = i !== void 0 && i.length > 0 && i.every((h, m) => Ne(h, s[m])), d = e.order?.confirmed && l ? void 0 : e.order, c = (h, m) => e.slices.find((v) => Ne(v.id, h)) ?? m, u = t.filter((h) => !r.some((m) => Ne(m.slice.id, h.id))).map((h) => e.additions.some((m) => Ne(m.slice.id, h.id)) || e.incoming.some((m) => Ne(m.slice.id, h.id)) ? c(h.id, h) : h), g = o.reduce((h, m) => Vr(h, c(m.slice.id, m.slice), m.index), u), p = n.reduce((h, m) => ot(h, m.slice.id) ? h : jr(h, c(m.slice.id, m.slice), m.afterSliceId), g);
9640
9641
  return {
9641
9642
  slices: d ? Ev(p, d.ids) : p,
@@ -9659,7 +9660,7 @@ function Rv({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
9659
9660
  t === b.current || t === f.current.snapshot || M((P) => !P.additions.length && !P.incoming.length && !P.outgoing.length && !P.order && P.slices.length === t.length && P.slices.every((j, Q) => j === t[Q]) ? {
9660
9661
  ...P,
9661
9662
  snapshot: t
9662
- } : Dt(P, t));
9663
+ } : Ft(P, t));
9663
9664
  }, [t, M]);
9664
9665
  const D = V((P) => {
9665
9666
  M((j) => {
@@ -9685,7 +9686,7 @@ function Rv({ ref: e, initialSlices: t, moduleId: n, featureId: r, featureCollap
9685
9686
  c,
9686
9687
  M
9687
9688
  ]);
9688
- qt(e, () => ({
9689
+ Wt(e, () => ({
9689
9690
  addSlice: k,
9690
9691
  updateSlices: D,
9691
9692
  addProjectedSlice: U,
@@ -9836,7 +9837,7 @@ var Yn = (e) => {
9836
9837
  }, `row:${d}:${g}`));
9837
9838
  }) }), ei = "38";
9838
9839
  function Pv(e) {
9839
- if (e.sliceType === B.stateChange && e.hasCommand) return Tt.background;
9840
+ if (e.sliceType === B.stateChange && e.hasCommand) return $t.background;
9840
9841
  if (e.sliceType === B.stateView && e.hasReadModel) return He.background;
9841
9842
  }
9842
9843
  var tp = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ne, { children: t.map((r) => {
@@ -9879,13 +9880,13 @@ var tp = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ne,
9879
9880
  });
9880
9881
  }, wt = /* @__PURE__ */ (function(e) {
9881
9882
  return e.add = "add", e.top = "top", e;
9882
- })({}), Ft = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
9883
+ })({}), Bt = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
9883
9884
  className: e === wt.add ? "event-modeling-grid-slice-cell-add-corner" : "event-modeling-grid-slice-cell-action-corner event-modeling-grid-slice-cell-action-corner--top",
9884
9885
  children: t
9885
9886
  }), $v = ({ placement: e, action: t }) => {
9886
9887
  const { readOnly: n, sliceId: r } = ut();
9887
9888
  if (!(n || !r))
9888
- return /* @__PURE__ */ a(Ft, {
9889
+ return /* @__PURE__ */ a(Bt, {
9889
9890
  placement: e,
9890
9891
  children: /* @__PURE__ */ a(Gr, { action: t })
9891
9892
  });
@@ -9976,7 +9977,7 @@ var tp = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ne,
9976
9977
  Xn.custom
9977
9978
  ], Hv = ({ triggerType: e, onTriggerKindChosen: t, onTriggerOpened: n }) => {
9978
9979
  const r = Ce(), [o, i] = _(!1), s = A(null), l = A([s]).current;
9979
- Pt(l, () => i(!1), o);
9980
+ Tt(l, () => i(!1), o);
9980
9981
  const d = e === void 0 ? void 0 : Da(e), c = (u) => (g) => {
9981
9982
  g.stopPropagation(), u();
9982
9983
  };
@@ -10131,7 +10132,7 @@ var tp = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ne,
10131
10132
  onClose: () => y(void 0)
10132
10133
  })]
10133
10134
  }),
10134
- !c && u && v && !I && /* @__PURE__ */ a(Ft, {
10135
+ !c && u && v && !I && /* @__PURE__ */ a(Bt, {
10135
10136
  placement: wt.add,
10136
10137
  children: /* @__PURE__ */ a(Vv, {
10137
10138
  templates: p.prototypeTemplates ?? [],
@@ -10224,7 +10225,7 @@ var tp = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ne,
10224
10225
  return t.events.publicInputOfOutputTranslation;
10225
10226
  }
10226
10227
  }, Fa = ({ ruleBreak: e }) => {
10227
- const { messages: t } = te(), n = Kv(e, t), r = A(null), o = Bt(), [i, s] = _(!1);
10228
+ const { messages: t } = te(), n = Kv(e, t), r = A(null), o = qt(), [i, s] = _(!1);
10228
10229
  return /* @__PURE__ */ C(ne, { children: [/* @__PURE__ */ a("button", {
10229
10230
  ref: r,
10230
10231
  type: "button",
@@ -10287,7 +10288,7 @@ var tp = ({ slice: e, contentRows: t, rowHeights: n }) => /* @__PURE__ */ a(ne,
10287
10288
  content: /* @__PURE__ */ C(ne, { children: [lt(t.description) !== void 0 && /* @__PURE__ */ a(Nr, {
10288
10289
  description: t.description,
10289
10290
  documentation: t.documentation
10290
- }), /* @__PURE__ */ a($t, {
10291
+ }), /* @__PURE__ */ a(_t, {
10291
10292
  title: b ? `${c.events.doubleClickToRenamePrefix} ${p}` : p,
10292
10293
  schema: t.schema
10293
10294
  })] }),
@@ -10424,7 +10425,7 @@ var Wa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
10424
10425
  onMouseLeave: p.onMouseLeave,
10425
10426
  children: [
10426
10427
  /* @__PURE__ */ a(be, {
10427
- content: /* @__PURE__ */ a($t, {
10428
+ content: /* @__PURE__ */ a(_t, {
10428
10429
  title: t.name,
10429
10430
  schema: t.schema
10430
10431
  }),
@@ -10445,7 +10446,7 @@ var Wa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
10445
10446
  name: t.name
10446
10447
  }),
10447
10448
  dt(t) && /* @__PURE__ */ a(Xr, {}),
10448
- r && /* @__PURE__ */ a($t, {
10449
+ r && /* @__PURE__ */ a(_t, {
10449
10450
  title: t.name,
10450
10451
  schema: t.schema,
10451
10452
  showTitle: !1,
@@ -10499,7 +10500,7 @@ var Wa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
10499
10500
  eventCount: e.events.length,
10500
10501
  after: !u && m && x(!0),
10501
10502
  corners: /* @__PURE__ */ C(ne, { children: [
10502
- !u && w.length > 0 && /* @__PURE__ */ a(Ft, {
10503
+ !u && w.length > 0 && /* @__PURE__ */ a(Bt, {
10503
10504
  placement: wt.top,
10504
10505
  children: w.map((S) => /* @__PURE__ */ a(Gr, { action: S }, S.tooltip))
10505
10506
  }),
@@ -10510,7 +10511,7 @@ var Wa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
10510
10511
  onActivate: (S) => g(S)
10511
10512
  }
10512
10513
  }),
10513
- !u && h && !m && p && /* @__PURE__ */ a(Ft, {
10514
+ !u && h && !m && p && /* @__PURE__ */ a(Bt, {
10514
10515
  placement: wt.add,
10515
10516
  children: x(!1)
10516
10517
  })
@@ -10534,7 +10535,7 @@ var Wa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
10534
10535
  }, ri = ({ sliceId: e, kind: t, artifactId: n, name: r, schema: o, description: i, documentation: s, showDetails: l = !1, annotations: d, onRenamed: c }) => {
10535
10536
  const u = In(d), { actions: g, selection: p, messages: h } = te(), m = Te(), [v, f] = _(r), [b, y] = _(void 0);
10536
10537
  oe(() => f(r), [r]);
10537
- const w = t === se.command, x = w ? g.commandCard : g.readModelCardFor?.(n) ?? g.readModelCard, S = w ? Tt : He, I = w ? h.interaction.command : h.interaction.readModel, E = !m && !!c, M = p.onArtifactSelected, D = () => {
10538
+ const w = t === se.command, x = w ? g.commandCard : g.readModelCardFor?.(n) ?? g.readModelCard, S = w ? $t : He, I = w ? h.interaction.command : h.interaction.readModel, E = !m && !!c, M = p.onArtifactSelected, D = () => {
10538
10539
  const U = b?.trim() ?? "";
10539
10540
  y(void 0), !(!U || !c) && (c(U), f(U));
10540
10541
  };
@@ -10549,7 +10550,7 @@ var Wa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
10549
10550
  content: /* @__PURE__ */ C(ne, { children: [lt(i) !== void 0 && /* @__PURE__ */ a(Nr, {
10550
10551
  description: i,
10551
10552
  documentation: s
10552
- }), /* @__PURE__ */ a($t, {
10553
+ }), /* @__PURE__ */ a(_t, {
10553
10554
  title: `${m ? "" : `${h.interaction.doubleClickToRenamePrefix} `}${I}: ${v}`,
10554
10555
  schema: o
10555
10556
  })] }),
@@ -10783,7 +10784,7 @@ var Wa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
10783
10784
  }) : j, O = (N) => {
10784
10785
  const G = `${g.interaction.open} ${g.interaction.externalEvent}: ${N.name}`, ge = sh(N, I), he = I.find(($e) => $e.id.toString() === N.sourceEventId);
10785
10786
  return /* @__PURE__ */ a(be, {
10786
- content: /* @__PURE__ */ a($t, {
10787
+ content: /* @__PURE__ */ a(_t, {
10787
10788
  title: `${p ? "" : `${g.interaction.doubleClickToRenamePrefix} `}${g.interaction.externalEvent}: ${N.name}`,
10788
10789
  schema: ge
10789
10790
  }),
@@ -10813,7 +10814,7 @@ var Wa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
10813
10814
  } : S && {
10814
10815
  label: g.interaction.addCapture,
10815
10816
  add: S
10816
- }, X = e.sliceType === B.translator && !U && !R && !k && !!H, re = !p && (E.length > 0 || X) && /* @__PURE__ */ a(Ft, {
10817
+ }, X = e.sliceType === B.translator && !U && !R && !k && !!H, re = !p && (E.length > 0 || X) && /* @__PURE__ */ a(Bt, {
10817
10818
  placement: wt.add,
10818
10819
  children: X && H ? /* @__PURE__ */ a(dh, {
10819
10820
  sliceId: e.id,
@@ -10857,7 +10858,7 @@ var Wa = ({ onClick: e, eventName: t, pending: n = !1, label: r }) => {
10857
10858
  kind: "split",
10858
10859
  hasItems: e.externalEvents.length > 0 || !!e.command || !!e.projection || !!e.capture,
10859
10860
  left: e.externalEvents.map(O),
10860
- leftCorner: !p && Dv(e.sliceType) && f && /* @__PURE__ */ a(Ft, {
10861
+ leftCorner: !p && Dv(e.sliceType) && f && /* @__PURE__ */ a(Bt, {
10861
10862
  placement: wt.add,
10862
10863
  children: /* @__PURE__ */ a(pa, {
10863
10864
  options: Zv(e, I).filter((G) => !N.has(G.name)),
@@ -10912,7 +10913,7 @@ export {
10912
10913
  ju as CardCorner,
10913
10914
  On as CardNameInput,
10914
10915
  Gr as CellActionButton,
10915
- Ft as CellCorner,
10916
+ Bt as CellCorner,
10916
10917
  $v as CellCornerAction,
10917
10918
  wt as CellCornerPlacement,
10918
10919
  Ct as ChangeBadge,
@@ -11001,7 +11002,7 @@ export {
11001
11002
  _u as PropertySchemaDialog,
11002
11003
  Xr as PublicEventMarker,
11003
11004
  Ot as PublicEventRuleBreak,
11004
- zt as QueryParameterType,
11005
+ jt as QueryParameterType,
11005
11006
  Pn as QueryResultShape,
11006
11007
  eh as REFERENCE_DIM_BOARD_SELECTOR,
11007
11008
  ni as REFERENCE_DIM_CLASS,
@@ -11013,7 +11014,7 @@ export {
11013
11014
  Dd as RowLabelsColumnFrame,
11014
11015
  Z as RowType,
11015
11016
  qh as SAME_SPOT_TOLERANCE,
11016
- $t as SchemaTooltipProperties,
11017
+ _t as SchemaTooltipProperties,
11017
11018
  co as ScopeEmphasisMarker,
11018
11019
  ps as SliceAnnotationStep,
11019
11020
  gv as SliceColumn,
@@ -11112,7 +11113,7 @@ export {
11112
11113
  vn as collectionFrame,
11113
11114
  er as collectionFrameInset,
11114
11115
  hv as combineArtifactNames,
11115
- Tt as commandCardColors,
11116
+ $t as commandCardColors,
11116
11117
  Ko as completeAddedSlice,
11117
11118
  kv as completeMoveIn,
11118
11119
  Iv as completeMoveOut,
@@ -11143,7 +11144,7 @@ export {
11143
11144
  Zt as defaultEventModelMessages,
11144
11145
  ul as defaultEventModelPresentation,
11145
11146
  Ni as defaultMeasureLabelWidth,
11146
- Vt as defaultSpecificationValueMessages,
11147
+ Lt as defaultSpecificationValueMessages,
11147
11148
  pr as defaultViewOptionsMessages,
11148
11149
  ka as describeStickyNoteColour,
11149
11150
  Jn as detailedCardHeight,
@@ -11209,14 +11210,14 @@ export {
11209
11210
  To as queryCardColors,
11210
11211
  Cm as queryReturnsMany,
11211
11212
  Nh as readEventModelDocument,
11212
- jt as readJsonSchema,
11213
+ Vt as readJsonSchema,
11213
11214
  He as readModelCardColors,
11214
11215
  nv as readSliceDragGesture,
11215
11216
  rv as readSlicePress,
11216
11217
  sd as reconcileCollections,
11217
11218
  or as reconcileFeatures,
11218
11219
  Ut as reconcileModules,
11219
- Dt as reconcileSliceSnapshot,
11220
+ Ft as reconcileSliceSnapshot,
11220
11221
  wu as reconcileSpecifications,
11221
11222
  Lh as rectAt,
11222
11223
  oh as referenceableEvents,