@cratis/event-models 0.195.0 → 0.195.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.
@@ -1,23 +1,23 @@
1
- import { c as Aa, d as _a, f as Be, l as Ki, m as eo, p as $a, s as La, t as Hi, u as Jt } from "./defaultStructuredEditorStrings-Ch1I0Lci.js";
1
+ import { c as Aa, d as _a, f as Be, l as Gi, m as eo, p as $a, s as La, t as Hi, u as Jt } from "./defaultStructuredEditorStrings-Ch1I0Lci.js";
2
2
  import { t as Vi } from "./QueryBindingEditor-3C_utVJm.js";
3
- import { i as Ba, n as ja, r as Ua, t as Wa } from "./toTemplateSources-CgAMAN8N.js";
4
- import { _ as za, a as wg, c as Lo, d as Ji, f as qa, g as kg, h as Ga, i as Ka, l as Sg, m as Ha, n as Cg, o as rn, p as Qi, r as Va, s as Ng, t as Tg, u as Ig, v as Pg, y as Og } from "./structuredValue-vqCZttsk.js";
3
+ import { i as Ba, n as ja, r as Ua, t as Wa } from "./toTemplateSources-B9ALGe3x.js";
4
+ import { _ as za, a as wg, c as Lo, d as Ji, f as qa, g as kg, h as Ka, i as Ga, l as Sg, m as Ha, n as Cg, o as rn, p as Qi, r as Va, s as Ng, t as Tg, u as Ig, v as Pg, y as Og } from "./structuredValue-vqCZttsk.js";
5
5
  import { a as ge, n as Ja, r as Qa } from "./iconDiagnostics-Ds4CnqD0.js";
6
6
  import { t as Dg } from "./StructuredValueEditor-CcwyOga0.js";
7
7
  import { createContext as Ya, createElement as ht, useCallback as W, useContext as Za, useEffect as le, useId as Xa, useLayoutEffect as be, useMemo as B, useRef as J, useState as z } from "react";
8
8
  import { LayoutArrangement as H, PrototypeOverlayFrame as Yi } from "@cratis/scene/ScreenEditor";
9
- import { BindingMode as Ag, BindingNullBehavior as _g, BindingSourceKind as $g, BindingSourceKind as Nt, CollectionOperation as ve, ComponentCategory as es, DestinationKind as Lg, DiagnosticCode as ts, EditTarget as ns, EditingScopeKind as qt, FlowContainerKind as an, FormGenerationMode as he, FormWidthUnit as ye, GridUnitType as os, HorizontalAlignment as to, InteractionActionKind as it, InteractionTriggerKind as Zi, NavigationRegionKind as Bo, NavigationRegionMode as Te, Orientation as rt, PackageKind as Gt, PropertyEditorKind as Q, PropertyValueType as G, ProvenanceKind as jo, QueryOriginKind as is, QueryResultShape as rs, SceneEditKind as V, SceneNodeKind as as, TemplateScope as ss, ValueSource as Xi, VerticalAlignment as no, Visibility as oo, componentCategories as ls } from "@cratis/scene.model";
9
+ import { BindingMode as Ag, BindingNullBehavior as _g, BindingSourceKind as $g, BindingSourceKind as Nt, CollectionOperation as ve, ComponentCategory as es, DestinationKind as Lg, DiagnosticCode as ts, EditTarget as ns, EditingScopeKind as qt, FlowContainerKind as an, FormGenerationMode as he, FormWidthUnit as ye, GridUnitType as os, HorizontalAlignment as to, InteractionActionKind as it, InteractionTriggerKind as Zi, NavigationRegionKind as Bo, NavigationRegionMode as Te, Orientation as rt, PackageKind as Kt, PropertyEditorKind as Q, PropertyValueType as K, ProvenanceKind as jo, QueryOriginKind as is, QueryResultShape as rs, SceneEditKind as V, SceneNodeKind as as, TemplateScope as ss, ValueSource as Xi, VerticalAlignment as no, Visibility as oo, componentCategories as ls } from "@cratis/scene.model";
10
10
  import { ApplicationStructureIndex as Qt, EffectiveIconCatalog as cs, NavigationEditKind as Uo, TemplateCatalogKind as er, ToolbarDiagnosticSeverity as ds, addNavItem as us, applicableTemplates as ps, applyEdit as tr, applyNavigationEdits as ms, baseComponentLibraries as hs, componentArgumentSourcePrefix as fs, componentBadge as Wo, computeSizeClass as gs, corePackage as io, createDescriptorCatalog as vs, diagnoseNavigationRegions as bs, effectiveNavigation as nr, effectivePackages as or, elementNodeId as oe, findComponentDescriptor as ro, findLayoutTypeDescriptor as zo, inspect as ao, isCanvas as at, isDockPanel as ys, isExternalComponent as We, isGrid as so, isPackageSelectionValid as ws, isPanel as At, isStackPanel as lo, isThemeCompatible as ks, isWrapPanel as Ss, matchComponentQuery as Cs, normalizeToolbarButton as Ns, packagesOfKind as qo, rankFrequentlyUsedComponents as Ts, resolveComponentName as wt, resolveEffectiveConfiguration as ir, resolveIconLibraries as Is, resolvePackageDependencies as Ps, resolveTemplateChain as co, resolveToolbarButton as Os, setApplicationLogo as xs, switchRegionMode as rr, toComponentCatalog as Yt, toolbarButtonFromItem as uo, validateToolbarButtons as Rs, validateValue as sn } from "@cratis/scene.engine";
11
11
  import { Fragment as ie, jsx as a, jsxs as b } from "react/jsx-runtime";
12
12
  import { ErrorBoundary as qe, IconButton as $e, Tabs as Ds } from "@cratis/components/Common";
13
13
  import { ColorScheme as Es, LayoutConfigProvider as ar, LayoutMode as Fs, TemplatePreviewState as nt, applyTemplatePreviewState as Ms, composeScreenElement as As, defaultBlueprint as sr, defaultBlueprintName as _s, foundationSamples as $s, resolveElementComponentNames as po } from "@cratis/scene.blueprint.default";
14
- import { IconAdapterProvider as lr, SceneElementView as mo, SceneNavigationModelProvider as Ls, SceneNavigationProvider as Bs, SceneThemeProvider as cr, SliceInvokerProvider as js, componentRegistryKey as Rn, corePackage as dr, createDryRunInvoker as Us, itemEditableRule as Ws, itemInheritedReason as zs, mergeIconAdapters as qs, mergePackageRegistries as ur, resolveDesignTimeHost as Gs } from "@cratis/scene.react";
15
- import { Toolbar as Ks, ToolbarFolder as Hs } from "@cratis/components/Toolbar";
14
+ import { IconAdapterProvider as lr, SceneElementView as mo, SceneNavigationModelProvider as Ls, SceneNavigationProvider as Bs, SceneThemeProvider as cr, SliceInvokerProvider as js, componentRegistryKey as Rn, corePackage as dr, createDryRunInvoker as Us, itemEditableRule as Ws, itemInheritedReason as zs, mergeIconAdapters as qs, mergePackageRegistries as ur, resolveDesignTimeHost as Ks } from "@cratis/scene.react";
15
+ import { Toolbar as Gs, ToolbarFolder as Hs } from "@cratis/components/Toolbar";
16
16
  import { PrototypeLayout as Ve } from "@cratis/scene";
17
- import { FileUploadHandlerProvider as Vs, QuillLoaderProvider as Js, primeReactPackage as pr, primeReactThemes as Go, usePrimeReactTheme as Qs } from "@cratis/scene.primereact";
18
- import { FaAlignJustify as Ko, FaAlignLeft as Ys, FaAngleDoubleRight as ln, FaArrowsAltH as Zs, FaBars as ot, FaBell as Xs, FaBolt as el, FaBookmark as tl, FaBorderAll as nl, FaCalendarAlt as Ho, FaCaretSquareDown as Vo, FaChartBar as mr, FaCheckSquare as Jo, FaClock as ol, FaClone as il, FaCode as rl, FaCog as Qo, FaColumns as cn, FaCommentAlt as al, FaCommentDots as hr, FaCompass as sl, FaCreditCard as ll, FaCube as cl, FaDatabase as dl, FaDesktop as Dn, FaEdit as dn, FaEllipsisH as ul, FaExclamationCircle as un, FaExpandArrowsAlt as pl, FaFileAlt as En, FaFileUpload as ml, FaFilter as Yo, FaFolderOpen as Zo, FaFont as Xo, FaGripLines as _e, FaGripLinesVertical as hl, FaGripVertical as fl, FaHashtag as ei, FaHeading as _t, FaHistory as gl, FaHourglassHalf as vl, FaIdBadge as bl, FaImage as fr, FaImages as ti, FaInfoCircle as yl, FaKeyboard as gr, FaLayerGroup as wl, FaLink as kl, FaList as vr, FaListAlt as pn, FaListOl as mn, FaLock as Sl, FaMask as ni, FaMobileAlt as Cl, FaMousePointer as $t, FaObjectGroup as Nl, FaPaintBrush as Tl, FaPalette as hn, FaPen as Il, FaPercent as Pl, FaPlay as Ol, FaProjectDiagram as xl, FaPuzzlePiece as br, FaRedo as Rl, FaRegCheckCircle as Dl, FaRegCircle as fn, FaRegSquare as ho, FaSave as El, FaSearch as oi, FaShapes as yr, FaSitemap as gn, FaSlidersH as Fn, FaSpinner as ii, FaSquare as Fl, FaStar as Ml, FaStepForward as vn, FaStickyNote as Al, FaStream as _l, FaTable as lt, FaTag as Tt, FaTerminal as $l, FaTh as ri, FaThLarge as wr, FaThList as fo, FaToggleOn as kr, FaTools as Ll, FaTrash as Bl, FaTree as Mn, FaUndo as jl, FaUser as Ul, FaUserCircle as Wl, FaVectorSquare as zl, FaWindowMaximize as Lt, FaWindowRestore as ql } from "react-icons/fa";
17
+ import { FileUploadHandlerProvider as Vs, QuillLoaderProvider as Js, primeReactPackage as pr, primeReactThemes as Ko, usePrimeReactTheme as Qs } from "@cratis/scene.primereact";
18
+ import { FaAlignJustify as Go, FaAlignLeft as Ys, FaAngleDoubleRight as ln, FaArrowsAltH as Zs, FaBars as ot, FaBell as Xs, FaBolt as el, FaBookmark as tl, FaBorderAll as nl, FaCalendarAlt as Ho, FaCaretSquareDown as Vo, FaChartBar as mr, FaCheckSquare as Jo, FaClock as ol, FaClone as il, FaCode as rl, FaCog as Qo, FaColumns as cn, FaCommentAlt as al, FaCommentDots as hr, FaCompass as sl, FaCreditCard as ll, FaCube as cl, FaDatabase as dl, FaDesktop as Dn, FaEdit as dn, FaEllipsisH as ul, FaExclamationCircle as un, FaExpandArrowsAlt as pl, FaFileAlt as En, FaFileUpload as ml, FaFilter as Yo, FaFolderOpen as Zo, FaFont as Xo, FaGripLines as _e, FaGripLinesVertical as hl, FaGripVertical as fl, FaHashtag as ei, FaHeading as _t, FaHistory as gl, FaHourglassHalf as vl, FaIdBadge as bl, FaImage as fr, FaImages as ti, FaInfoCircle as yl, FaKeyboard as gr, FaLayerGroup as wl, FaLink as kl, FaList as vr, FaListAlt as pn, FaListOl as mn, FaLock as Sl, FaMask as ni, FaMobileAlt as Cl, FaMousePointer as $t, FaObjectGroup as Nl, FaPaintBrush as Tl, FaPalette as hn, FaPen as Il, FaPercent as Pl, FaPlay as Ol, FaProjectDiagram as xl, FaPuzzlePiece as br, FaRedo as Rl, FaRegCheckCircle as Dl, FaRegCircle as fn, FaRegSquare as ho, FaSave as El, FaSearch as oi, FaShapes as yr, FaSitemap as gn, FaSlidersH as Fn, FaSpinner as ii, FaSquare as Fl, FaStar as Ml, FaStepForward as vn, FaStickyNote as Al, FaStream as _l, FaTable as lt, FaTag as Tt, FaTerminal as $l, FaTh as ri, FaThLarge as wr, FaThList as fo, FaToggleOn as kr, FaTools as Ll, FaTrash as Bl, FaTree as Mn, FaUndo as jl, FaUser as Ul, FaUserCircle as Wl, FaVectorSquare as zl, FaWindowMaximize as Lt, FaWindowRestore as ql } from "react-icons/fa";
19
19
  import "@cratis/scene.primereact/primeReactTheme.css";
20
- import { LuChevronLeft as Gl, LuChevronRight as Kl, LuCopy as Hl, LuCornerDownRight as Vl, LuLink as Jl, LuLock as Sr, LuPanelLeft as Ql, LuPlus as Yl, LuTrash2 as Zl, LuZap as Xl } from "react-icons/lu";
20
+ import { LuChevronLeft as Kl, LuChevronRight as Gl, LuCopy as Hl, LuCornerDownRight as Vl, LuLink as Jl, LuLock as Sr, LuPanelLeft as Ql, LuPlus as Yl, LuTrash2 as Zl, LuZap as Xl } from "react-icons/lu";
21
21
  import { PrimeReactProvider as ec } from "@primereact/core/config";
22
22
  import { styles as tc } from "@primereact/styles/accordion";
23
23
  import { styles as nc } from "@primereact/styles/autocomplete";
@@ -63,8 +63,8 @@ import { styles as Uc } from "@primereact/styles/metergroup";
63
63
  import { styles as Wc } from "@primereact/styles/navigationmenu";
64
64
  import { styles as zc } from "@primereact/styles/organizationchart";
65
65
  import { styles as qc } from "@primereact/styles/overlaybadge";
66
- import { styles as Gc } from "@primereact/styles/paginator";
67
- import { styles as Kc } from "@primereact/styles/panel";
66
+ import { styles as Kc } from "@primereact/styles/paginator";
67
+ import { styles as Gc } from "@primereact/styles/panel";
68
68
  import { styles as Hc } from "@primereact/styles/inputpassword";
69
69
  import { styles as Vc } from "@primereact/styles/popover";
70
70
  import { styles as Jc } from "@primereact/styles/progressbar";
@@ -104,7 +104,7 @@ import { dynamicIconImports as Id } from "lucide-react/dynamic";
104
104
  var go = {
105
105
  name: "StudioScreen",
106
106
  slots: [{ name: "content" }]
107
- }, Kt = "content", Se = "Screen", Pd = "template-root", Od = "screen-root", Ir = () => ({
107
+ }, Gt = "content", Se = "Screen", Pd = "template-root", Od = "screen-root", Ir = () => ({
108
108
  layouts: [go],
109
109
  screenTemplates: [],
110
110
  dialogTemplates: [],
@@ -118,7 +118,7 @@ function xd(e, t) {
118
118
  screens: [{
119
119
  name: Se,
120
120
  layout: go.name,
121
- slotContent: { [Kt]: [e] },
121
+ slotContent: { [Gt]: [e] },
122
122
  forms: [],
123
123
  contributions: [],
124
124
  ...t ? { screenTemplate: t } : {}
@@ -130,14 +130,14 @@ function Rd(e, t, n) {
130
130
  ...Ir(),
131
131
  screenTemplates: [{
132
132
  name: e,
133
- slots: [{ name: Kt }],
134
- content: { [Kt]: [t] },
133
+ slots: [{ name: Gt }],
134
+ content: { [Gt]: [t] },
135
135
  ...n ? { fitsSlot: n } : {}
136
136
  }]
137
137
  };
138
138
  }
139
139
  function ct(e, t) {
140
- return (t === void 0 ? e.screens.find((n) => n.name === Se)?.slotContent : e.screenTemplates.find((n) => n.name === t)?.content)?.[Kt]?.[0];
140
+ return (t === void 0 ? e.screens.find((n) => n.name === Se)?.slotContent : e.screenTemplates.find((n) => n.name === t)?.content)?.[Gt]?.[0];
141
141
  }
142
142
  function An(e, t = !1) {
143
143
  return t && e !== void 0 ? {
@@ -202,7 +202,7 @@ function $d(e) {
202
202
  const t = Object.entries(_d).find(([, n]) => n === e)?.[0] ?? "Container";
203
203
  return `${Ad}.${t}`;
204
204
  }
205
- var Ge = "Canvas.Left", Ke = "Canvas.Top", ai = "legacyType", Ld = "legacy", si = "legacyExtras", Bd = {
205
+ var Ke = "Canvas.Left", Ge = "Canvas.Top", ai = "legacyType", Ld = "legacy", si = "legacyExtras", Bd = {
206
206
  DatePicker: "calendar",
207
207
  OrgChart: "organizationChart",
208
208
  Chips: "chips",
@@ -229,7 +229,7 @@ var me = (e, t) => typeof e == "number" ? e : t;
229
229
  function xr(e, t) {
230
230
  const n = e, o = { ...n.properties ?? {} }, i = Jt(e).map((N) => xr(N, t)), r = o[Ld];
231
231
  if (r != null && typeof r == "object") return Wd(r, n, o, i);
232
- const s = o[si], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[ai] : void 0, c = l ?? (At(e) ? $d(Or(e)) : t(We(e) ? e.componentName : "")), u = We(e) ? e.componentName : "", { [ai]: d, [si]: p, [Ge]: h, [Ke]: m, ...g } = o, f = {};
232
+ const s = o[si], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[ai] : void 0, c = l ?? (At(e) ? $d(Or(e)) : t(We(e) ? e.componentName : "")), u = We(e) ? e.componentName : "", { [ai]: d, [si]: p, [Ke]: h, [Ge]: m, ...g } = o, f = {};
233
233
  for (const N of s?.topKeys ?? []) N in g && (f[N] = g[N], delete g[N]);
234
234
  const v = me(h, s?.position.x ?? 0), w = me(m, s?.position.y ?? 0), P = n.name ?? "", x = s?.emptyName === !0 && P === (l ?? "");
235
235
  return {
@@ -262,7 +262,7 @@ function Ud(e, t) {
262
262
  return r;
263
263
  }
264
264
  function Wd(e, t, n, o) {
265
- const i = { ...e }, r = e.properties ?? {}, s = r.canvas ?? {}, l = n[Ge], c = n[Ke];
265
+ const i = { ...e }, r = e.properties ?? {}, s = r.canvas ?? {}, l = n[Ke], c = n[Ge];
266
266
  (typeof l == "number" || typeof c == "number") && (e.position && typeof e.position == "object" ? i.position = {
267
267
  ...e.position,
268
268
  x: me(l, me(s.x, 0)),
@@ -397,7 +397,7 @@ function qd(e, t, n, o) {
397
397
  var Le = /* @__PURE__ */ (function(e) {
398
398
  return e.Before = "before", e.Inside = "inside", e.After = "after", e;
399
399
  })({});
400
- function Gd(e, t, n, o, i) {
400
+ function Kd(e, t, n, o, i) {
401
401
  const r = we(e, n, i);
402
402
  if (!r) return;
403
403
  if (o === Le.Inside) return {
@@ -412,7 +412,7 @@ function Gd(e, t, n, o, i) {
412
412
  index: o === Le.Before ? s : s + 1
413
413
  };
414
414
  }
415
- function Kd(e, t, n) {
415
+ function Gd(e, t, n) {
416
416
  if (t <= 0) return Le.After;
417
417
  const o = e / t;
418
418
  return o < 0.25 ? Le.Before : o > 0.75 || !n ? o < 0.5 ? Le.Before : Le.After : Le.Inside;
@@ -537,10 +537,10 @@ function Mr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
537
537
  const D = I.currentTarget.getBoundingClientRect(), $ = w.find((S) => S.id === C);
538
538
  g({
539
539
  id: C,
540
- zone: Kd(I.clientY - D.top, D.height, !!$ && t.acceptsChildren($.node))
540
+ zone: Gd(I.clientY - D.top, D.height, !!$ && t.acceptsChildren($.node))
541
541
  });
542
542
  }, F = (I, C) => {
543
- I.preventDefault(), p && m?.id === C && N(Gd(e, p, C, m.zone, t)), h(void 0), g(void 0);
543
+ I.preventDefault(), p && m?.id === C && N(Kd(e, p, C, m.zone, t)), h(void 0), g(void 0);
544
544
  };
545
545
  return w.length === 0 ? /* @__PURE__ */ a("p", {
546
546
  className: "studio-editor-structure-empty",
@@ -577,7 +577,7 @@ function Mr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
577
577
  }
578
578
  var yn = /* @__PURE__ */ (function(e) {
579
579
  return e.Properties = "properties", e.Structure = "structure", e;
580
- })({}), Vd = /* @__PURE__ */ new Set([Ge, Ke]);
580
+ })({}), Vd = /* @__PURE__ */ new Set([Ke, Ge]);
581
581
  function Jd(e, t, n) {
582
582
  return t ? e : e.filter((o) => !Vd.has(o.descriptor.path) || n?.[o.descriptor.path] !== void 0);
583
583
  }
@@ -592,9 +592,9 @@ var Qd = {
592
592
  ]),
593
593
  commandForm: /* @__PURE__ */ new Set(["command"])
594
594
  }, Ar = (e, t) => Qd[e.slice(e.lastIndexOf(":") + 1)]?.has(t) ?? !1, Yd = /* @__PURE__ */ new Set([
595
- G.Object,
596
- G.Json,
597
- G.Collection
595
+ K.Object,
596
+ K.Json,
597
+ K.Collection
598
598
  ]), Zd = (e) => e.descriptor.output === !0 && Yd.has(e.descriptor.valueType), Xd = (e, t, n = () => !1) => e.filter((o) => !Ar(t, o.descriptor.path) && !Zd(o) && !n(o));
599
599
  function eu(e) {
600
600
  const t = /* @__PURE__ */ new Map();
@@ -1612,7 +1612,7 @@ function pi(e) {
1612
1612
  return Object.keys(t).length > 0 ? t : void 0;
1613
1613
  }
1614
1614
  var zu = ({ templates: e, referencedTemplates: t, disabled: n, strings: o, onChange: i }) => {
1615
- const r = (u, d) => i(e.map((p, h) => h === u ? Gu(d) : p)), s = (u) => i(e.filter((d, p) => p !== u)), l = (u, d) => i(Ku(e, u, d)), c = () => i([...e, qu(Hu(e, o.newTemplateName))]);
1615
+ const r = (u, d) => i(e.map((p, h) => h === u ? Ku(d) : p)), s = (u) => i(e.filter((d, p) => p !== u)), l = (u, d) => i(Gu(e, u, d)), c = () => i([...e, qu(Hu(e, o.newTemplateName))]);
1616
1616
  return /* @__PURE__ */ b("section", {
1617
1617
  className: "studio-editor-dialog-templates",
1618
1618
  children: [
@@ -1688,7 +1688,7 @@ function qu(e) {
1688
1688
  behaviors: []
1689
1689
  };
1690
1690
  }
1691
- function Gu(e) {
1691
+ function Ku(e) {
1692
1692
  return {
1693
1693
  name: e.name,
1694
1694
  slots: e.slots.length > 0 ? e.slots : [{ name: "content" }],
@@ -1700,7 +1700,7 @@ function Gu(e) {
1700
1700
  ...e.metadata ? { metadata: e.metadata } : {}
1701
1701
  };
1702
1702
  }
1703
- function Ku(e, t, n) {
1703
+ function Gu(e, t, n) {
1704
1704
  const o = [...e], [i] = o.splice(t, 1);
1705
1705
  return i && o.splice(n, 0, i), o;
1706
1706
  }
@@ -1830,11 +1830,11 @@ var tp = (e, t, n, o) => e.exposures.some((i) => i.owner === t && i.properties.s
1830
1830
  ], op = ({ inspection: e, componentId: t, controller: n, strings: o, authoringTemplate: i }) => {
1831
1831
  const r = o.properties;
1832
1832
  if (i === void 0) return null;
1833
- const s = e.properties.filter((l) => l.descriptor.valueType !== G.Object && l.descriptor.group !== "Placement");
1833
+ const s = e.properties.filter((l) => l.descriptor.valueType !== K.Object && l.descriptor.group !== "Placement");
1834
1834
  return s.length === 0 ? null : /* @__PURE__ */ b("section", {
1835
1835
  className: "studio-editor-properties__exposure",
1836
1836
  children: [/* @__PURE__ */ a("strong", { children: r.exposure }), /* @__PURE__ */ a("ul", { children: s.map((l) => {
1837
- const c = l.descriptor.path, u = tp(n.document, i, t, c), d = l.descriptor.valueType === G.Collection;
1837
+ const c = l.descriptor.path, u = tp(n.document, i, t, c), d = l.descriptor.valueType === K.Collection;
1838
1838
  return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ b("label", { children: [
1839
1839
  /* @__PURE__ */ a("input", {
1840
1840
  type: "checkbox",
@@ -1849,12 +1849,12 @@ var tp = (e, t, n, o) => e.exposures.some((i) => i.owner === t && i.properties.s
1849
1849
  }, mi = (e) => Array.isArray(e) && e.every((t) => typeof t == "string");
1850
1850
  function Wn(e, t, n = e.label) {
1851
1851
  if (t != null) {
1852
- if (e.valueType === G.Json) switch (e.editorKind) {
1852
+ if (e.valueType === K.Json) switch (e.editorKind) {
1853
1853
  case Qi:
1854
1854
  return mi(t) ? void 0 : `${n} is not a list of words`;
1855
1855
  case Ji:
1856
1856
  return Array.isArray(t) && t.every((o) => typeof o == "number") ? void 0 : `${n} is not a list of numbers`;
1857
- case Ga:
1857
+ case Ka:
1858
1858
  return typeof t == "string" || mi(t) ? void 0 : `${n} is not a word or a list of words`;
1859
1859
  case qa:
1860
1860
  return [
@@ -1863,8 +1863,8 @@ function Wn(e, t, n = e.label) {
1863
1863
  "boolean"
1864
1864
  ].includes(typeof t) ? void 0 : `${n} is not a word, a number or a yes or no`;
1865
1865
  }
1866
- if (e.valueType === G.Object && e.editorKind === Ha && e.properties === void 0) return rn(t) ? void 0 : `${n} is not a record of values`;
1867
- if (Ka(e) && rn(t)) return e.properties.map((o) => Wn(o, t[o.path], `${n} / ${o.label}`)).find((o) => o !== void 0);
1866
+ if (e.valueType === K.Object && e.editorKind === Ha && e.properties === void 0) return rn(t) ? void 0 : `${n} is not a record of values`;
1867
+ if (Ga(e) && rn(t)) return e.properties.map((o) => Wn(o, t[o.path], `${n} / ${o.label}`)).find((o) => o !== void 0);
1868
1868
  if (Va(e) && Array.isArray(t)) for (const [o, i] of t.entries()) {
1869
1869
  if (!rn(i)) continue;
1870
1870
  const r = e.item.properties.map((s) => Wn(s, i[s.path], `${n} ${o + 1} / ${s.label}`)).find((s) => s !== void 0);
@@ -2302,7 +2302,7 @@ var te = /* @__PURE__ */ (function(e) {
2302
2302
  noTemplate: "No template",
2303
2303
  menu: "Choose a template",
2304
2304
  updateAvailable: "Update available ({version})",
2305
- browseGallery: "Browse gallery…"
2305
+ browseAll: "Browse all…"
2306
2306
  },
2307
2307
  preview: (e) => `Preview of ${e}`,
2308
2308
  previewState: "Sample data",
@@ -2581,25 +2581,25 @@ function cp(e, t, n) {
2581
2581
  }
2582
2582
  function dp(e) {
2583
2583
  switch (e.valueType) {
2584
- case G.String:
2584
+ case K.String:
2585
2585
  return "text";
2586
- case G.Number:
2586
+ case K.Number:
2587
2587
  return "number";
2588
- case G.Boolean:
2588
+ case K.Boolean:
2589
2589
  return "boolean";
2590
- case G.Enum:
2590
+ case K.Enum:
2591
2591
  return (e.choices ?? []).length <= 4 ? "enum" : "select";
2592
- case G.Icon:
2592
+ case K.Icon:
2593
2593
  return "icon";
2594
- case G.Destination:
2594
+ case K.Destination:
2595
2595
  return "navigationTarget";
2596
- case G.QueryReference:
2596
+ case K.QueryReference:
2597
2597
  return "queryBinding";
2598
- case G.Collection:
2598
+ case K.Collection:
2599
2599
  return "collection";
2600
- case G.Object:
2600
+ case K.Object:
2601
2601
  return e.properties !== void 0 ? "object" : "undescribed";
2602
- case G.Json:
2602
+ case K.Json:
2603
2603
  return "undescribed";
2604
2604
  default:
2605
2605
  return "undescribed";
@@ -2657,7 +2657,7 @@ var up = class {
2657
2657
  };
2658
2658
  function pp() {
2659
2659
  const e = new up();
2660
- e.register(Q.Text, async () => (await import("./TextEditor-BEH-9K1S.js")).TextEditor), e.register(Q.Number, async () => (await import("./NumberEditor-Cyo9_23Z.js")).NumberEditor), e.register(Q.Boolean, async () => (await import("./BooleanEditor-eC1yCpz0.js")).BooleanEditor), e.register(Q.Enum, async () => (await import("./EnumEditor-DNnnf9i3.js")).EnumEditor), e.register(Q.Select, async () => (await import("./SelectEditor-Bi_fonS5.js")).SelectEditor), e.register(Q.Color, async () => (await import("./ColorEditor-Cc6Xq8pW.js")).ColorEditor), e.register(Q.Icon, async () => (await import("./IconEditor-C0ibqn-e.js")).IconEditor), e.register(Q.List, async () => (await import("./ListEditor-CfFPVVJ4.js")).ListEditor), e.register(Q.Reference, async () => (await import("./ReferenceEditor-DYLimujk.js")).ReferenceEditor), e.register(Q.NavigationTarget, async () => (await import("./NavigationTargetEditor-DiGohBww.js")).NavigationTargetEditor), e.register(Q.RenderingSlot, async () => (await import("./RenderingSlotEditor-D0ppEIOx.js")).RenderingSlotEditor), e.register(Q.Slice, async () => (await import("./SliceEditor-C9bAGN4f.js")).SliceEditor), e.register(Q.InheritanceMode, async () => (await import("./InheritanceModeEditor-CtdsACnc.js")).InheritanceModeEditor), e.register(Q.Field, async () => (await import("./FieldEditor-Biz82jlR.js")).FieldEditor), e.register(Q.ColumnList, async () => (await import("./ColumnListEditor-MZzEtJuo.js")).ColumnListEditor), e.register(Q.Template, async () => (await import("./TemplatePropertyEditor-BuRsxUDC.js")).TemplatePropertyEditor), e.register(Q.SampleData, async () => (await import("./ReferenceTargetEditors-D0jEg1QM.js")).SampleDataEditor), e.register("object", async () => (await import("./StructuredPropertyEditor-B3lVjrHZ.js")).StructuredPropertyEditor), e.register("collection", async () => (await import("./CollectionEditor-C7eX8Hw7.js")).CollectionEditor);
2660
+ e.register(Q.Text, async () => (await import("./TextEditor-BEH-9K1S.js")).TextEditor), e.register(Q.Number, async () => (await import("./NumberEditor-Cyo9_23Z.js")).NumberEditor), e.register(Q.Boolean, async () => (await import("./BooleanEditor-eC1yCpz0.js")).BooleanEditor), e.register(Q.Enum, async () => (await import("./EnumEditor-DNnnf9i3.js")).EnumEditor), e.register(Q.Select, async () => (await import("./SelectEditor-Bi_fonS5.js")).SelectEditor), e.register(Q.Color, async () => (await import("./ColorEditor-Cc6Xq8pW.js")).ColorEditor), e.register(Q.Icon, async () => (await import("./IconEditor-C0ibqn-e.js")).IconEditor), e.register(Q.List, async () => (await import("./ListEditor-CfFPVVJ4.js")).ListEditor), e.register(Q.Reference, async () => (await import("./ReferenceEditor-DYLimujk.js")).ReferenceEditor), e.register(Q.NavigationTarget, async () => (await import("./NavigationTargetEditor-DiGohBww.js")).NavigationTargetEditor), e.register(Q.RenderingSlot, async () => (await import("./RenderingSlotEditor-D0ppEIOx.js")).RenderingSlotEditor), e.register(Q.Slice, async () => (await import("./SliceEditor-C9bAGN4f.js")).SliceEditor), e.register(Q.InheritanceMode, async () => (await import("./InheritanceModeEditor-CtdsACnc.js")).InheritanceModeEditor), e.register(Q.Field, async () => (await import("./FieldEditor-Biz82jlR.js")).FieldEditor), e.register(Q.ColumnList, async () => (await import("./ColumnListEditor-MZzEtJuo.js")).ColumnListEditor), e.register(Q.Template, async () => (await import("./TemplatePropertyEditor-CDKWG7m1.js")).TemplatePropertyEditor), e.register(Q.SampleData, async () => (await import("./ReferenceTargetEditors-D0jEg1QM.js")).SampleDataEditor), e.register("object", async () => (await import("./StructuredPropertyEditor-B3lVjrHZ.js")).StructuredPropertyEditor), e.register("collection", async () => (await import("./CollectionEditor-C7eX8Hw7.js")).CollectionEditor);
2661
2661
  for (const t of [
2662
2662
  Q.StringList,
2663
2663
  Q.NumberList,
@@ -2710,13 +2710,13 @@ function hp(e, t) {
2710
2710
  }
2711
2711
  var Y = /* @__PURE__ */ (function(e) {
2712
2712
  return e.None = "none", e.Navigate = "navigate", e.OpenDialog = "openDialog", e.ExecuteCommand = "executeCommand", e;
2713
- })({}), zn = "studio.toolbarButton.click", Gr = {
2713
+ })({}), zn = "studio.toolbarButton.click", Kr = {
2714
2714
  kind: Y.None,
2715
2715
  target: ""
2716
2716
  };
2717
2717
  function fp(e) {
2718
2718
  const t = e?.find((n) => n.name === zn)?.bindings.find((n) => bp(n.trigger))?.actions[0];
2719
- return t ? vp(t) : Gr;
2719
+ return t ? vp(t) : Kr;
2720
2720
  }
2721
2721
  function gi(e, t) {
2722
2722
  const n = (e ?? []).filter((r) => r.name !== zn), o = gp(t), i = o ? [...n, {
@@ -2768,7 +2768,7 @@ function vp(e) {
2768
2768
  target: e.command
2769
2769
  };
2770
2770
  default:
2771
- return Gr;
2771
+ return Kr;
2772
2772
  }
2773
2773
  }
2774
2774
  function bp(e) {
@@ -2978,7 +2978,7 @@ var To = {
2978
2978
  addSubItem: "addSubItem"
2979
2979
  }, en = /* @__PURE__ */ (function(e) {
2980
2980
  return e.Elements = "elements", e.Collection = "collection", e.Region = "region", e;
2981
- })({}), Kr = (e) => "rejected" in e;
2981
+ })({}), Gr = (e) => "rejected" in e;
2982
2982
  function kp(e, t) {
2983
2983
  switch (e.availability) {
2984
2984
  case void 0:
@@ -3239,7 +3239,7 @@ function kn(e, t, n, o) {
3239
3239
  path: e,
3240
3240
  label: t,
3241
3241
  group: "Content",
3242
- valueType: G.String,
3242
+ valueType: K.String,
3243
3243
  editorKind: n
3244
3244
  },
3245
3245
  currentValue: o,
@@ -3438,23 +3438,23 @@ function Mp(e, t) {
3438
3438
  }
3439
3439
  function Ap(e, t) {
3440
3440
  const n = structuredClone(e);
3441
- return Gn(n, t), n;
3441
+ return Kn(n, t), n;
3442
3442
  }
3443
- function Gn(e, t) {
3443
+ function Kn(e, t) {
3444
3444
  if (Array.isArray(e)) {
3445
- for (const o of e) Gn(o, t);
3445
+ for (const o of e) Kn(o, t);
3446
3446
  return;
3447
3447
  }
3448
3448
  if (e === null || typeof e != "object") return;
3449
3449
  const n = e;
3450
3450
  typeof n.id == "string" && n.properties !== null && typeof n.properties == "object" && (n.id = t());
3451
- for (const [o, i] of Object.entries(n)) o !== "properties" && Gn(i, t);
3451
+ for (const [o, i] of Object.entries(n)) o !== "properties" && Kn(i, t);
3452
3452
  }
3453
- var Kn = (e) => typeof e == "string" ? e : "", tn = { [A.addButton]: {
3453
+ var Gn = (e) => typeof e == "string" ? e : "", tn = { [A.addButton]: {
3454
3454
  slot: "items",
3455
3455
  componentName: "core:toolbarItem",
3456
3456
  labelProperty: "label",
3457
- isUnlinked: (e, t) => Kn(t.slice) === "" && Kn(t.target) === "" && t.destination === void 0,
3457
+ isUnlinked: (e, t) => Gn(t.slice) === "" && Gn(t.target) === "" && t.destination === void 0,
3458
3458
  startingProperties: { kind: "Action" }
3459
3459
  } };
3460
3460
  function _p({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i, startingLabel: r, structure: s }) {
@@ -3464,7 +3464,7 @@ function _p({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i
3464
3464
  const g = h.id, f = h.properties ?? {}, v = n(g) !== ne.Local, w = s ? Yr(s, g, f) : void 0;
3465
3465
  return {
3466
3466
  id: g,
3467
- label: Kn(f[l.labelProperty]),
3467
+ label: Gn(f[l.labelProperty]),
3468
3468
  index: m,
3469
3469
  count: c.length,
3470
3470
  readOnly: v,
@@ -3669,7 +3669,7 @@ function Lp({ controller: e, environment: t, strings: n, startingLabels: o, star
3669
3669
  N,
3670
3670
  y
3671
3671
  ]), F = e.selectItem, I = W((C, D) => {
3672
- if (Kr(C))
3672
+ if (Gr(C))
3673
3673
  return u(n.announce.refused(C.rejected)), !1;
3674
3674
  if (C.editAtApplication)
3675
3675
  return e.setNavigationModule(void 0), e.selectItem(void 0, void 0), !0;
@@ -3848,10 +3848,10 @@ var Zr = (e) => ({
3848
3848
  children: o.problems[S.code] ?? S.message
3849
3849
  }, S.code)),
3850
3850
  [
3851
- Rt("label", o.label, G.String, "text", P.label, F, o.inheritedFromApplication),
3852
- Rt("target", o.navigateTo, G.String, "navigationItemTarget", P.values.target, F, o.inheritedFromApplication),
3853
- Rt("slot", o.renderIntoSlot, G.String, "renderingSlot", P.values.slot, F, o.inheritedFromApplication),
3854
- Rt("icon", o.icon, G.String, "icon", P.values.icon, F, o.inheritedFromApplication)
3851
+ Rt("label", o.label, K.String, "text", P.label, F, o.inheritedFromApplication),
3852
+ Rt("target", o.navigateTo, K.String, "navigationItemTarget", P.values.target, F, o.inheritedFromApplication),
3853
+ Rt("slot", o.renderIntoSlot, K.String, "renderingSlot", P.values.slot, F, o.inheritedFromApplication),
3854
+ Rt("icon", o.icon, K.String, "icon", P.values.icon, F, o.inheritedFromApplication)
3855
3855
  ].map((S) => /* @__PURE__ */ a(ko, {
3856
3856
  registry: x,
3857
3857
  property: S,
@@ -4028,8 +4028,8 @@ var Wp = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), zp = (e)
4028
4028
  label: t.properties.diagnostics
4029
4029
  })]
4030
4030
  });
4031
- }, Gp = (e, t) => e.find((n) => n.component === t), Kp = /* @__PURE__ */ new Set([No]), Hp = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: i }) => {
4032
- const { inspection: r, selectedId: s, selection: l } = e, c = n.properties, u = B(() => bo(t.availableSources), [t.availableSources]), d = B(() => Ki(e.document, e.composition.roots, e.context, t.availableSources, t.queryCandidates), [
4031
+ }, Kp = (e, t) => e.find((n) => n.component === t), Gp = /* @__PURE__ */ new Set([No]), Hp = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: i }) => {
4032
+ const { inspection: r, selectedId: s, selection: l } = e, c = n.properties, u = B(() => bo(t.availableSources), [t.availableSources]), d = B(() => Gi(e.document, e.composition.roots, e.context, t.availableSources, t.queryCandidates), [
4033
4033
  e.document,
4034
4034
  e.composition.roots,
4035
4035
  e.context,
@@ -4080,7 +4080,7 @@ var Wp = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), zp = (e)
4080
4080
  strings: n
4081
4081
  })
4082
4082
  });
4083
- const p = $a(e.composition.roots, s), h = Jd(r.properties, p, l.properties), { runtime: m } = t, g = Gp(e.context.catalog.components, r.typeId), f = g ? m.packageDescriptorOf(g) : void 0, v = (S) => !!f && m.designTime.propertyEditor(f, S.descriptor).contribution !== void 0, w = t.propertyEditors?.registry ?? Xt, P = [...r.diagnostics, ...e.diagnostics], x = Xd(h, r.typeId, (S) => Kp.has(S.descriptor.path) || v(S)), N = eu(x), k = {
4083
+ const p = $a(e.composition.roots, s), h = Jd(r.properties, p, l.properties), { runtime: m } = t, g = Kp(e.context.catalog.components, r.typeId), f = g ? m.packageDescriptorOf(g) : void 0, v = (S) => !!f && m.designTime.propertyEditor(f, S.descriptor).contribution !== void 0, w = t.propertyEditors?.registry ?? Xt, P = [...r.diagnostics, ...e.diagnostics], x = Xd(h, r.typeId, (S) => Gp.has(S.descriptor.path) || v(S)), N = eu(x), k = {
4084
4084
  controller: e,
4085
4085
  environment: t,
4086
4086
  strings: n,
@@ -4782,7 +4782,7 @@ var aa = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
4782
4782
  className: "studio-screen-editor-palette-host",
4783
4783
  "data-placement": e,
4784
4784
  "data-cratis-part": "screen-editor-palette",
4785
- children: /* @__PURE__ */ a(Ks, { children: t })
4785
+ children: /* @__PURE__ */ a(Gs, { children: t })
4786
4786
  }), sa = ({ strings: e, onClose: t, children: n }) => /* @__PURE__ */ a(qe, {
4787
4787
  fallback: /* @__PURE__ */ b("div", {
4788
4788
  className: "studio-screen-editor-unreadable",
@@ -5713,7 +5713,7 @@ function va(e, t) {
5713
5713
  height: s - i
5714
5714
  };
5715
5715
  }
5716
- var ba = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, qm = (e, t) => e.length === t.length && e.every((n, o) => n.region.id === t[o].region.id && ba(n.rect, t[o].rect)), ya = ba, Gm = ({ surface: e, markers: t }) => {
5716
+ var ba = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, qm = (e, t) => e.length === t.length && e.every((n, o) => n.region.id === t[o].region.id && ba(n.rect, t[o].rect)), ya = ba, Km = ({ surface: e, markers: t }) => {
5717
5717
  const [n, o] = z([]);
5718
5718
  return be(() => {
5719
5719
  const i = e.current;
@@ -5725,7 +5725,7 @@ var ba = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top
5725
5725
  rect: c
5726
5726
  }] : [];
5727
5727
  });
5728
- o((l) => Km(l, s) ? l : s);
5728
+ o((l) => Gm(l, s) ? l : s);
5729
5729
  }), /* @__PURE__ */ a(ie, { children: n.map((i) => /* @__PURE__ */ a("div", {
5730
5730
  className: "studio-screen-surface__binding-source",
5731
5731
  "data-binding-source": i.componentId,
@@ -5736,7 +5736,7 @@ var ba = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top
5736
5736
  })
5737
5737
  }, `${i.componentId}:${i.label}`)) });
5738
5738
  };
5739
- function Km(e, t) {
5739
+ function Gm(e, t) {
5740
5740
  return e.length === t.length && e.every((n, o) => {
5741
5741
  const i = t[o];
5742
5742
  return n.componentId === i.componentId && n.label === i.label && ya(n.rect, i.rect);
@@ -5757,7 +5757,7 @@ function Vm(e, t) {
5757
5757
  if (!n) return [];
5758
5758
  const s = Be(i.roots, n), l = qr(s?.properties);
5759
5759
  if (!l) return [];
5760
- const c = Ki(o, i.roots, r, t.availableSources, t.queryCandidates);
5760
+ const c = Gi(o, i.roots, r, t.availableSources, t.queryCandidates);
5761
5761
  return Hm(l, _r(c.dataContextPaths, c.componentOutputs, n));
5762
5762
  }, [
5763
5763
  n,
@@ -6072,8 +6072,8 @@ var Ai = [
6072
6072
  [A.slot]: /* @__PURE__ */ a(Ql, { "aria-hidden": "true" }),
6073
6073
  [A.slice]: /* @__PURE__ */ a(Xl, { "aria-hidden": "true" })
6074
6074
  }, hh = {
6075
- [A.moveEarlier]: /* @__PURE__ */ a(Gl, { "aria-hidden": "true" }),
6076
- [A.moveLater]: /* @__PURE__ */ a(Kl, { "aria-hidden": "true" }),
6075
+ [A.moveEarlier]: /* @__PURE__ */ a(Kl, { "aria-hidden": "true" }),
6076
+ [A.moveLater]: /* @__PURE__ */ a(Gl, { "aria-hidden": "true" }),
6077
6077
  [A.addSubItem]: /* @__PURE__ */ a(Vl, { "aria-hidden": "true" }),
6078
6078
  [A.duplicate]: /* @__PURE__ */ a(Hl, { "aria-hidden": "true" }),
6079
6079
  [A.delete]: /* @__PURE__ */ a(Zl, { "aria-hidden": "true" })
@@ -6109,9 +6109,9 @@ var Ai = [
6109
6109
  return;
6110
6110
  }
6111
6111
  S();
6112
- }, K = () => Array.from(m.current?.querySelectorAll("[data-roving]:not(:disabled)") ?? []), se = (O) => {
6112
+ }, G = () => Array.from(m.current?.querySelectorAll("[data-roving]:not(:disabled)") ?? []), se = (O) => {
6113
6113
  if (O.target instanceof HTMLInputElement) return;
6114
- const X = K(), re = X.indexOf(O.target);
6114
+ const X = G(), re = X.indexOf(O.target);
6115
6115
  if (re < 0) return;
6116
6116
  const pe = O.key === "ArrowRight" || O.key === "ArrowDown" ? re + 1 : O.key === "ArrowLeft" || O.key === "ArrowUp" ? re - 1 : O.key === "Home" ? 0 : O.key === "End" ? X.length - 1 : void 0;
6117
6117
  if (pe === void 0 || O.altKey) return;
@@ -6285,11 +6285,11 @@ function bh(e, t) {
6285
6285
  var Tn = 34, yh = ({ surface: e, state: t, controller: n, environment: o, editorStrings: i, strings: r }) => {
6286
6286
  const { subject: s } = t, l = bh(e, s), [c, u] = z(), d = o.propertyEditors?.registry ?? Xt, p = B(() => bo(o.availableSources), [o.availableSources]), h = W((E) => {
6287
6287
  if (typeof E != "string" || E === "") return;
6288
- const _ = o.propertyEditors?.slices?.find((se) => se.id === E) ?? o.stateChangeSlices.find((se) => se.id === E), K = E.split(".");
6289
- return _?.name ?? K[K.length - 1];
6288
+ const _ = o.propertyEditors?.slices?.find((se) => se.id === E) ?? o.stateChangeSlices.find((se) => se.id === E), G = E.split(".");
6289
+ return _?.name ?? G[G.length - 1];
6290
6290
  }, [o]), m = W((E, _) => {
6291
- const K = _.chips?.[E];
6292
- if (K !== void 0 && K !== "") return K;
6291
+ const G = _.chips?.[E];
6292
+ if (G !== void 0 && G !== "") return G;
6293
6293
  switch (E) {
6294
6294
  case A.slice:
6295
6295
  return h(_.values.slice) ?? r.chooseSlice;
@@ -6331,8 +6331,8 @@ var Tn = 34, yh = ({ surface: e, state: t, controller: n, environment: o, editor
6331
6331
  slotNames: Zr(r.navigation)
6332
6332
  }), $ = (E, _) => {
6333
6333
  if (!I) return;
6334
- const K = I.plan(_);
6335
- Kr(K) || u(void 0), t.perform(K);
6334
+ const G = I.plan(_);
6335
+ Gr(G) || u(void 0), t.perform(G);
6336
6336
  }, S = F;
6337
6337
  return /* @__PURE__ */ b(ie, { children: [
6338
6338
  T && P && /* @__PURE__ */ a("button", {
@@ -6360,7 +6360,7 @@ var Tn = 34, yh = ({ surface: e, state: t, controller: n, environment: o, editor
6360
6360
  chipLabel: m,
6361
6361
  onRename: (E) => t.rename(v, E),
6362
6362
  onAction: (E) => t.act(E, v),
6363
- onChoice: (E, _) => u((K) => K && K.actionId === E && K.itemId === v.id ? void 0 : {
6363
+ onChoice: (E, _) => u((G) => G && G.actionId === E && G.itemId === v.id ? void 0 : {
6364
6364
  actionId: E,
6365
6365
  itemId: v.id,
6366
6366
  opener: _
@@ -6593,7 +6593,7 @@ var Ph = () => {
6593
6593
  height: pe.height
6594
6594
  };
6595
6595
  }), () => _(void 0)), [_]);
6596
- const K = B(() => po(c.element, t.runtime.profile, t.runtime.packages), [
6596
+ const G = B(() => po(c.element, t.runtime.profile, t.runtime.packages), [
6597
6597
  c,
6598
6598
  t.runtime.profile,
6599
6599
  t.runtime.packages
@@ -6607,7 +6607,7 @@ var Ph = () => {
6607
6607
  module: e.navigationModule,
6608
6608
  logoLockedReason: F.navigation.logoLocked,
6609
6609
  children: /* @__PURE__ */ a(mo, {
6610
- element: K,
6610
+ element: G,
6611
6611
  registry: se,
6612
6612
  resolveBinding: n,
6613
6613
  configuration: T
@@ -6615,7 +6615,7 @@ var Ph = () => {
6615
6615
  })
6616
6616
  })
6617
6617
  }), [
6618
- K,
6618
+ G,
6619
6619
  se,
6620
6620
  t.runtime.iconAdapters,
6621
6621
  n,
@@ -6665,7 +6665,7 @@ var Ph = () => {
6665
6665
  feedback: m,
6666
6666
  deniedText: i.dropDenied
6667
6667
  }),
6668
- /* @__PURE__ */ a(Gm, {
6668
+ /* @__PURE__ */ a(Km, {
6669
6669
  surface: l,
6670
6670
  markers: N
6671
6671
  }),
@@ -6841,20 +6841,20 @@ function Ca(e, t) {
6841
6841
  ...e,
6842
6842
  properties: {
6843
6843
  ...n,
6844
- [Ge]: Math.max(0, Math.round(t.left)),
6845
- [Ke]: Math.max(0, Math.round(t.top))
6844
+ [Ke]: Math.max(0, Math.round(t.left)),
6845
+ [Ge]: Math.max(0, Math.round(t.top))
6846
6846
  }
6847
6847
  };
6848
6848
  }
6849
6849
  function Na(e) {
6850
- const t = e.properties ?? {}, n = t[Ge], o = t[Ke];
6850
+ const t = e.properties ?? {}, n = t[Ke], o = t[Ge];
6851
6851
  return typeof n == "number" && typeof o == "number" ? {
6852
6852
  left: n,
6853
6853
  top: o
6854
6854
  } : void 0;
6855
6855
  }
6856
6856
  function Eh(e) {
6857
- const { [Ge]: t, [Ke]: n, ...o } = e.properties ?? {};
6857
+ const { [Ke]: t, [Ge]: n, ...o } = e.properties ?? {};
6858
6858
  return {
6859
6859
  ...e,
6860
6860
  properties: o
@@ -7035,7 +7035,7 @@ function qh(e) {
7035
7035
  isDirty: t.before !== e.savedDocument
7036
7036
  } : e;
7037
7037
  }
7038
- function Gh(e) {
7038
+ function Kh(e) {
7039
7039
  const t = e.redoable[e.redoable.length - 1];
7040
7040
  return t ? {
7041
7041
  ...e,
@@ -7049,7 +7049,7 @@ function Gh(e) {
7049
7049
  isDirty: t.before !== e.savedDocument
7050
7050
  } : e;
7051
7051
  }
7052
- function Kh(e) {
7052
+ function Gh(e) {
7053
7053
  return {
7054
7054
  ...e,
7055
7055
  savedDocument: e.document,
@@ -7244,7 +7244,7 @@ function Pa(e, t, n, o) {
7244
7244
  S,
7245
7245
  t,
7246
7246
  f
7247
- ]), K = W((M, q) => {
7247
+ ]), G = W((M, q) => {
7248
7248
  const L = Ah(x.roots, M, q, f), U = Ui(x.roots, M, k);
7249
7249
  if (U && !(U === te.NoChange && L && M.targetParentId === of(x.roots, M.nodeId))) return U;
7250
7250
  if (L) return $(L, "Move").applied ? void 0 : te.NodeLocked;
@@ -7341,7 +7341,7 @@ function Pa(e, t, n, o) {
7341
7341
  apply: D,
7342
7342
  tryApply: C,
7343
7343
  applyAll: $,
7344
- move: K,
7344
+ move: G,
7345
7345
  validateMove: (M) => Ui(x.roots, M, k),
7346
7346
  insertComponent: (M, q, L, U) => _(Qr(yt(), M, M), q, L, "Add", U, M),
7347
7347
  insertLayout: (M, q, L, U) => _(Vt(M, yt(), M), q, L, "Add layout", U, `layout:${M}`),
@@ -7360,13 +7360,13 @@ function Pa(e, t, n, o) {
7360
7360
  setElementBehaviors: O,
7361
7361
  setScreenTemplate: Z,
7362
7362
  markSaved: () => {
7363
- l(Kh);
7363
+ l(Gh);
7364
7364
  },
7365
7365
  undo: () => {
7366
7366
  l(qh);
7367
7367
  },
7368
7368
  redo: () => {
7369
- l(Gh);
7369
+ l(Kh);
7370
7370
  },
7371
7371
  canUndo: Wh(i),
7372
7372
  canRedo: zh(i),
@@ -7423,12 +7423,12 @@ var Wi = () => ({
7423
7423
  c && P.write(c, _);
7424
7424
  }, [P, c]), k = W((_) => {
7425
7425
  N(_);
7426
- const K = ct(w.document, e.authoringTemplate);
7426
+ const G = ct(w.document, e.authoringTemplate);
7427
7427
  h({
7428
7428
  document: w.document,
7429
- legacyElements: Bt(K, t.runtime.legacyTypeOf),
7429
+ legacyElements: Bt(G, t.runtime.legacyTypeOf),
7430
7430
  windowSize: _,
7431
- layout: Ut(K),
7431
+ layout: Ut(G),
7432
7432
  changed: w.isDirty
7433
7433
  });
7434
7434
  }, [
@@ -7439,11 +7439,11 @@ var Wi = () => ({
7439
7439
  e.authoringTemplate
7440
7440
  ]), [y, T] = z(), F = W(async (_) => {
7441
7441
  N(_);
7442
- const K = ct(w.document, e.authoringTemplate), se = {
7442
+ const G = ct(w.document, e.authoringTemplate), se = {
7443
7443
  document: w.document,
7444
- legacyElements: Bt(K, t.runtime.legacyTypeOf),
7444
+ legacyElements: Bt(G, t.runtime.legacyTypeOf),
7445
7445
  windowSize: _,
7446
- layout: Ut(K),
7446
+ layout: Ut(G),
7447
7447
  changed: w.isDirty
7448
7448
  }, ue = await m?.(se);
7449
7449
  return T(ue), !ue;
@@ -7457,11 +7457,11 @@ var Wi = () => ({
7457
7457
  if (!(!m || !w.isDirty)) {
7458
7458
  C(!0);
7459
7459
  try {
7460
- const K = ct(w.document, e.authoringTemplate), se = await m({
7460
+ const G = ct(w.document, e.authoringTemplate), se = await m({
7461
7461
  document: w.document,
7462
- legacyElements: Bt(K, t.runtime.legacyTypeOf),
7462
+ legacyElements: Bt(G, t.runtime.legacyTypeOf),
7463
7463
  windowSize: _,
7464
- layout: Ut(K),
7464
+ layout: Ut(G),
7465
7465
  changed: !0
7466
7466
  });
7467
7467
  T(se), se || w.markSaved();
@@ -7484,8 +7484,8 @@ var Wi = () => ({
7484
7484
  v.current = S;
7485
7485
  function E(_) {
7486
7486
  if (!xo(_)) return;
7487
- const K = w.selection && cf(w) ? w.selectedId : void 0;
7488
- _.kind === "layout" ? w.insertLayout(_.item, K, void 0) : w.insertComponent(Do(_.componentName, _.package), K, void 0);
7487
+ const G = w.selection && cf(w) ? w.selectedId : void 0;
7488
+ _.kind === "layout" ? w.insertLayout(_.item, G, void 0) : w.insertComponent(Do(_.componentName, _.package), G, void 0);
7489
7489
  }
7490
7490
  return /* @__PURE__ */ b(ua, {
7491
7491
  environment: t,
@@ -7609,8 +7609,8 @@ var et = "p-anchored-overlay", Mt = "p-collapsible", On = "p-overlay-mask", R =
7609
7609
  NavigationMenu: R(Wc),
7610
7610
  "OrganizationChart.Root": R(zc),
7611
7611
  OverlayBadge: R(qc),
7612
- "Paginator.Root": R(Gc),
7613
- "Panel.Root": R(Kc, Mt),
7612
+ "Paginator.Root": R(Kc),
7613
+ "Panel.Root": R(Gc, Mt),
7614
7614
  "Popover.Root": R(Vc),
7615
7615
  "Popover.Popup": de(et),
7616
7616
  "ProgressBar.Root": R(Jc),
@@ -7643,7 +7643,7 @@ var et = "p-anchored-overlay", Mt = "p-collapsible", On = "p-overlay-mask", R =
7643
7643
  "Tooltip.Root": R(wd),
7644
7644
  "Tooltip.Popup": de("p-tooltip"),
7645
7645
  "Tree.Root": R(kd)
7646
- }, pf = Go.find((e) => e.name === "lara-light-blue") ?? Go[0], Ib = ({ defaults: e, theme: t, ...n }) => {
7646
+ }, pf = Ko.find((e) => e.name === "lara-light-blue") ?? Ko[0], Ib = ({ defaults: e, theme: t, ...n }) => {
7647
7647
  const o = Qs(pf);
7648
7648
  return /* @__PURE__ */ a(ec, {
7649
7649
  ...n,
@@ -7770,7 +7770,7 @@ function Ob(e) {
7770
7770
  }
7771
7771
  var yf = [.../* @__PURE__ */ new Set([...Xt.ids, ...Object.values(Q)])];
7772
7772
  function wf(e, t) {
7773
- return Gs({
7773
+ return Ks({
7774
7774
  bundles: e,
7775
7775
  profile: t,
7776
7776
  policy: {
@@ -7911,7 +7911,7 @@ function Pf(e) {
7911
7911
  path: Co,
7912
7912
  label: "Presentation",
7913
7913
  group: "Behavior",
7914
- valueType: G.Enum,
7914
+ valueType: K.Enum,
7915
7915
  default: fe.None,
7916
7916
  choices: If,
7917
7917
  description: "Whether the command runs straight away or first asks for its input in a dialog or a drawer."
@@ -7927,18 +7927,18 @@ function _o(e, t, n = Of(e)) {
7927
7927
  };
7928
7928
  return typeof t == "number" ? {
7929
7929
  ...o,
7930
- valueType: G.Number
7930
+ valueType: K.Number
7931
7931
  } : typeof t == "boolean" ? {
7932
7932
  ...o,
7933
- valueType: G.Boolean
7933
+ valueType: K.Boolean
7934
7934
  } : Array.isArray(t) ? Df(o, t) : xa(t) ? {
7935
7935
  ...o,
7936
- valueType: G.Object,
7936
+ valueType: K.Object,
7937
7937
  properties: Ra(t),
7938
7938
  open: !0
7939
7939
  } : {
7940
7940
  ...o,
7941
- valueType: G.String
7941
+ valueType: K.String
7942
7942
  };
7943
7943
  }
7944
7944
  function Ra(e, t = []) {
@@ -7950,19 +7950,19 @@ function Rf(e, t) {
7950
7950
  function Df(e, t) {
7951
7951
  if (t.length > 0 && t.every((o) => typeof o == "string")) return {
7952
7952
  ...e,
7953
- valueType: G.Json,
7953
+ valueType: K.Json,
7954
7954
  editorKind: Qi
7955
7955
  };
7956
7956
  if (t.length > 0 && t.every((o) => typeof o == "number")) return {
7957
7957
  ...e,
7958
- valueType: G.Json,
7958
+ valueType: K.Json,
7959
7959
  editorKind: Ji
7960
7960
  };
7961
7961
  const n = {};
7962
7962
  for (const o of t.filter(xa)) for (const [i, r] of Object.entries(o)) i in n || (n[i] = r);
7963
7963
  return {
7964
7964
  ...e,
7965
- valueType: G.Collection,
7965
+ valueType: K.Collection,
7966
7966
  item: {
7967
7967
  label: xf(e.label),
7968
7968
  properties: Ra(n, ["id"]),
@@ -7970,7 +7970,7 @@ function Df(e, t) {
7970
7970
  }
7971
7971
  };
7972
7972
  }
7973
- var Ef = (e) => e.valueType === G.Json && e.editorKind === void 0;
7973
+ var Ef = (e) => e.valueType === K.Json && e.editorKind === void 0;
7974
7974
  function Ff(e) {
7975
7975
  const t = Ao(e.component, e.component.slice(e.component.lastIndexOf(":") + 1));
7976
7976
  if (!t) return e;
@@ -7992,15 +7992,15 @@ function Mf(e, t) {
7992
7992
  };
7993
7993
  }
7994
7994
  var zi = "Placement", Af = [{
7995
- path: Ge,
7995
+ path: Ke,
7996
7996
  label: "Left",
7997
7997
  group: zi,
7998
- valueType: G.Number
7998
+ valueType: K.Number
7999
7999
  }, {
8000
- path: Ke,
8000
+ path: Ge,
8001
8001
  label: "Top",
8002
8002
  group: zi,
8003
- valueType: G.Number
8003
+ valueType: K.Number
8004
8004
  }];
8005
8005
  function _f(e) {
8006
8006
  const t = new Set(e.properties.map((n) => n.path));
@@ -8054,7 +8054,7 @@ function Bf(e, t, n) {
8054
8054
  var $o = "Cratis.Icons.Lucide", jf = {
8055
8055
  name: $o,
8056
8056
  version: "1.52.0",
8057
- kind: Gt.IconLibrary,
8057
+ kind: Kt.IconLibrary,
8058
8058
  dependencies: [],
8059
8059
  components: [],
8060
8060
  layouts: [],
@@ -8086,7 +8086,7 @@ var $o = "Cratis.Icons.Lucide", jf = {
8086
8086
  catalog: Uf,
8087
8087
  adapter: zf
8088
8088
  }
8089
- }, Gf = [
8089
+ }, Kf = [
8090
8090
  Cd,
8091
8091
  Nd,
8092
8092
  Td
@@ -8097,11 +8097,11 @@ var $o = "Cratis.Icons.Lucide", jf = {
8097
8097
  Cr,
8098
8098
  sr,
8099
8099
  Tr,
8100
- ...Gf,
8100
+ ...Kf,
8101
8101
  qf
8102
- ], Kf = St.map((e) => e.manifest), xb = ur(St), Rb = Yt(Kf), Db = St.flatMap((e) => e.themes ?? []);
8102
+ ], Gf = St.map((e) => e.manifest), xb = ur(St), Rb = Yt(Gf), Db = St.flatMap((e) => e.themes ?? []);
8103
8103
  function Hf(e) {
8104
- const t = hs(e).map((i) => i.name), n = qo(e, Gt.Styling).map((i) => i.name), o = qo(e, Gt.Blueprint)[0];
8104
+ const t = hs(e).map((i) => i.name), n = qo(e, Kt.Styling).map((i) => i.name), o = qo(e, Kt.Blueprint)[0];
8105
8105
  return o ? [
8106
8106
  ...t,
8107
8107
  ...n,
@@ -8166,7 +8166,7 @@ function Fa(e, t) {
8166
8166
  };
8167
8167
  }
8168
8168
  function Zf(e) {
8169
- const t = e.map((s) => s.manifest), n = Hf(t), o = n.find((s) => t.find((l) => l.name === s)?.kind === Gt.Blueprint) ?? "", i = {
8169
+ const t = e.map((s) => s.manifest), n = Hf(t), o = n.find((s) => t.find((l) => l.name === s)?.kind === Kt.Blueprint) ?? "", i = {
8170
8170
  packages: n.filter((s) => s !== o && s !== io),
8171
8171
  shell: o,
8172
8172
  templatePacks: [],
@@ -8281,17 +8281,17 @@ var sg = [
8281
8281
  "#fa0",
8282
8282
  "#3c3"
8283
8283
  ], lg = () => {
8284
- }, Gi = 16, Ab = ({ document: e, runtime: t, windowSize: n, width: o, title: i, openTitle: r, onClick: s, placeholder: l }) => {
8284
+ }, Ki = 16, Ab = ({ document: e, runtime: t, windowSize: n, width: o, title: i, openTitle: r, onClick: s, placeholder: l }) => {
8285
8285
  const c = J(null), u = ag(c), d = B(() => rg(n, o ?? 240, o === void 0 ? 112 : void 0), [
8286
8286
  n?.width,
8287
8287
  n?.height,
8288
8288
  o
8289
8289
  ]), p = B(() => Mo(t), [t]), h = B(() => ig(t.registry), [t.registry]), m = {
8290
8290
  width: d.width,
8291
- height: Gi + d.bodyHeight
8291
+ height: Ki + d.bodyHeight
8292
8292
  }, g = /* @__PURE__ */ b(ie, { children: [/* @__PURE__ */ b("div", {
8293
8293
  className: "screen-thumbnail__title-bar",
8294
- style: { height: Gi },
8294
+ style: { height: Ki },
8295
8295
  children: [sg.map((v) => /* @__PURE__ */ a("span", {
8296
8296
  className: "screen-thumbnail__light",
8297
8297
  style: { borderColor: v }
@@ -8378,7 +8378,7 @@ var $b = {
8378
8378
  file: En,
8379
8379
  navigationBar: ot,
8380
8380
  inputText: Xo,
8381
- inputTextarea: Ko,
8381
+ inputTextarea: Go,
8382
8382
  inputNumber: ei,
8383
8383
  password: Sl,
8384
8384
  floatLabel: Il,
@@ -8466,7 +8466,7 @@ var $b = {
8466
8466
  inputTextField: Xo,
8467
8467
  numberField: ei,
8468
8468
  checkboxField: Jo,
8469
- textAreaField: Ko,
8469
+ textAreaField: Go,
8470
8470
  dropdownField: Vo,
8471
8471
  sliderField: Fn,
8472
8472
  calendarField: Ho,
@@ -8613,7 +8613,7 @@ export {
8613
8613
  Cg as identified,
8614
8614
  Va as isCollectionOfRecords,
8615
8615
  Cm as isLegacyDefaultWindow,
8616
- Ka as isObjectWithFields,
8616
+ Ga as isObjectWithFields,
8617
8617
  wg as isPrimitiveList,
8618
8618
  rn as isRecord,
8619
8619
  Ng as isStringMap,
@@ -8630,7 +8630,7 @@ export {
8630
8630
  vt as sliceNamedBy,
8631
8631
  Qi as stringListEditorKind,
8632
8632
  Ha as stringMapEditorKind,
8633
- Ga as stringOrListEditorKind,
8633
+ Ka as stringOrListEditorKind,
8634
8634
  Wn as structuredProblem,
8635
8635
  rg as thumbnailGeometry,
8636
8636
  Mb as thumbnailMaxBodyHeight,