@cratis/event-models 0.226.0 → 0.228.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.
@@ -1,12 +1,12 @@
1
1
  import { c as Ja, d as Qa, f as ze, l as tr, m as oo, p as Ya, s as Xa, t as nr, u as Xt } from "./defaultStructuredEditorStrings-Ch1I0Lci.js";
2
2
  import { t as or } from "./QueryBindingEditor-MTd0R7iQ.js";
3
3
  import { i as Za, n as es, r as ts, t as ns } from "./toTemplateSources-Chd2UNJQ.js";
4
- import { _ as os, a as fv, c as Ho, d as ir, f as is, g as gv, h as rs, i as as, l as vv, m as ss, n as bv, o as ln, p as rr, r as ls, s as yv, t as wv, u as kv, v as Sv, y as Cv } from "./structuredValue-vqCZttsk.js";
4
+ import { _ as os, a as Cv, c as Ho, d as ir, f as is, g as Nv, h as rs, i as as, l as Tv, m as ss, n as Iv, o as ln, p as rr, r as ls, s as Pv, t as xv, u as Ov, v as Dv, y as Rv } from "./structuredValue-vqCZttsk.js";
5
5
  import { a as we, n as cs, r as ds } from "./iconDiagnostics-Ds4CnqD0.js";
6
- import { t as Iv } from "./StructuredValueEditor-DUSATTWd.js";
6
+ import { t as Mv } from "./StructuredValueEditor-DUSATTWd.js";
7
7
  import { createContext as us, createElement as wt, useCallback as z, useContext as ps, useEffect as ce, useId as ms, useLayoutEffect as Se, useMemo as U, useRef as V, useState as j } from "react";
8
8
  import { Fragment as le, jsx as a, jsxs as b } from "react/jsx-runtime";
9
- import { BindingMode as Dv, BindingNullBehavior as Rv, BindingSourceKind as Fv, BindingSourceKind as xt, CollectionOperation as ke, ColorScheme as hs, ComponentCategory as fs, DestinationKind as Ev, DestinationKind as ar, DiagnosticCode as gs, EditTarget as vs, EditingScopeKind as Vt, FlowContainerKind as cn, FormGenerationMode as ge, FormWidthUnit as Ce, GridUnitType as bs, HorizontalAlignment as io, InteractionActionKind as lt, InteractionTriggerKind as sr, NavigationRegionKind as Go, NavigationRegionMode as De, Orientation as ct, PackageKind as dt, PropertyEditorKind as X, PropertyValueType as K, ProvenanceKind as qo, QueryOriginKind as ys, QueryResultShape as ws, SceneEditKind as Y, SceneNodeKind as ks, TemplateReferenceSource as Ss, TemplateScope as Cs, ValueSource as lr, VerticalAlignment as ro, Visibility as ao, componentCategories as Ns } from "@cratis/scene.model";
9
+ import { BindingMode as Lv, BindingNullBehavior as Bv, BindingSourceKind as jv, BindingSourceKind as xt, CollectionOperation as ke, ColorScheme as hs, ComponentCategory as fs, DestinationKind as Uv, DestinationKind as ar, DiagnosticCode as gs, EditTarget as vs, EditingScopeKind as Vt, FlowContainerKind as cn, FormGenerationMode as ge, FormWidthUnit as Ce, GridUnitType as bs, HorizontalAlignment as io, InteractionActionKind as lt, InteractionTriggerKind as sr, NavigationRegionKind as Go, NavigationRegionMode as De, Orientation as ct, PackageKind as dt, PropertyEditorKind as X, PropertyValueType as K, ProvenanceKind as qo, QueryOriginKind as ys, QueryResultShape as ws, SceneEditKind as Y, SceneNodeKind as ks, TemplateReferenceSource as Ss, TemplateScope as Cs, ValueSource as lr, VerticalAlignment as ro, Visibility as ao, componentCategories as Ns } from "@cratis/scene.model";
10
10
  import { ApplicationStructureIndex as Zt, EffectiveIconCatalog as Ts, NavigationEditKind as Ko, TemplateCatalogKind as cr, ToolbarDiagnosticSeverity as Is, addNavItem as Ps, applicableTemplates as xs, applyEdit as dr, applyNavigationEdits as Os, baseComponentLibraries as Ds, componentArgumentSourcePrefix as Rs, componentBadge as Vo, computeSizeClass as Fs, corePackage as so, createDescriptorCatalog as Es, diagnoseNavigationRegions as Ms, effectiveNavigation as ur, effectivePackages as pr, elementNodeId as re, findComponentDescriptor as lo, findLayoutTypeDescriptor as Jo, inspect as co, isCanvas as ut, isDockPanel as As, isExternalComponent as qe, isGrid as uo, isPackageSelectionValid as _s, isPanel as jt, isStackPanel as po, isThemeCompatible as $s, isWrapPanel as Ls, matchComponentQuery as Bs, normalizeToolbarButton as js, packagesOfKind as Qo, rankFrequentlyUsedComponents as Us, resolveComponentName as Tt, resolveEffectiveConfiguration as mr, resolveIconLibraries as Ws, resolvePackageDependencies as zs, resolveTemplateChain as mo, resolveToolbarButton as Hs, setApplicationLogo as Gs, switchRegionMode as hr, toComponentCatalog as en, toolbarButtonFromItem as ho, validateToolbarButtons as qs, validateValue as dn } from "@cratis/scene.engine";
11
11
  import { ErrorBoundary as Ve, IconButton as xe, Tabs as Ks } from "@cratis/components/Common";
12
12
  import { ColorScheme as Vs, ComponentName as Js, LayoutConfigProvider as fr, LayoutMode as Qs, LayoutName as Ys, TemplatePreviewState as at, applyTemplatePreviewState as Xs, composeApplicationScreen as Zs, composeScreenElement as el, defaultApplicationChrome as tl, defaultBlueprint as gr, defaultBlueprintName as vr, effectiveShellOf as br, externalComponent as fo, foundationSamples as nl, previewProfile as ol, resolveElementComponentNames as go } from "@cratis/scene.blueprint.default";
@@ -97,10 +97,18 @@ import { cratisComponentsPackage as Mr } from "@cratis/scene.components";
97
97
  import { tailwindPackage as Ar } from "@cratis/scene.tailwind";
98
98
  import { componentsBlueprint as _r } from "@cratis/scene.blueprint.components";
99
99
  import { approvalsBlueprint as zd } from "@cratis/scene.blueprint.approvals";
100
- import { crmBlueprint as Hd } from "@cratis/scene.blueprint.crm";
101
- import { ticketingBlueprint as Gd } from "@cratis/scene.blueprint.ticketing";
102
- import { dynamicIconImports as qd } from "lucide-react/dynamic";
103
- function Kd(e, t, n) {
100
+ import { bookingsBlueprint as Hd } from "@cratis/scene.blueprint.bookings";
101
+ import { catalogBlueprint as Gd } from "@cratis/scene.blueprint.catalog";
102
+ import { contractsBlueprint as qd } from "@cratis/scene.blueprint.contracts";
103
+ import { crmBlueprint as Kd } from "@cratis/scene.blueprint.crm";
104
+ import { customerPortalBlueprint as Vd } from "@cratis/scene.blueprint.customer-portal";
105
+ import { invoicingBlueprint as Jd } from "@cratis/scene.blueprint.invoicing";
106
+ import { ordersBlueprint as Qd } from "@cratis/scene.blueprint.orders";
107
+ import { ticketingBlueprint as Yd } from "@cratis/scene.blueprint.ticketing";
108
+ import { vendorsBlueprint as Xd } from "@cratis/scene.blueprint.vendors";
109
+ import { workOrdersBlueprint as Zd } from "@cratis/scene.blueprint.work-orders";
110
+ import { dynamicIconImports as eu } from "lucide-react/dynamic";
111
+ function tu(e, t, n) {
104
112
  const o = Math.max(1, Math.min(e.width, t.width - 16)), i = Math.max(1, Math.min(e.height, t.height - 16)), r = Math.max(0, (t.width - o) / 2 - 8);
105
113
  return {
106
114
  width: o,
@@ -108,14 +116,14 @@ function Kd(e, t, n) {
108
116
  offsetX: Math.min(r, Math.max(-r, n))
109
117
  };
110
118
  }
111
- var pi = 900, mi = 640, Vd = 320, Jd = 300;
112
- var Qd = (e) => e ? {
119
+ var pi = 900, mi = 640, nu = 320, ou = 300;
120
+ var iu = (e) => e ? {
113
121
  width: e.width > 0 ? e.width : pi,
114
122
  height: e.height > 0 ? e.height : mi
115
123
  } : {
116
124
  width: pi,
117
125
  height: mi
118
- }, Yd = [
126
+ }, ru = [
119
127
  "n",
120
128
  "s",
121
129
  "e",
@@ -125,7 +133,7 @@ var Qd = (e) => e ? {
125
133
  "se",
126
134
  "sw"
127
135
  ], $r = ({ sourceRect: e, initialSize: t, centerOffsetX: n = 0, children: o, renderInspector: i, canClose: r, onClosed: s }) => {
128
- const [l, c] = j("entering"), [u, d] = j(() => Qd(t)), p = V(u);
136
+ const [l, c] = j("entering"), [u, d] = j(() => iu(t)), p = V(u);
129
137
  p.current = u;
130
138
  const [h, f] = j(!1), [g, m] = j(() => ({
131
139
  width: window.innerWidth,
@@ -160,11 +168,11 @@ var Qd = (e) => e ? {
160
168
  let ye = q.startWidth, me = q.startHeight;
161
169
  if (ne.includes("e") || ne.includes("w")) {
162
170
  const ue = ne.includes("e") ? M.clientX - q.startX : q.startX - M.clientX;
163
- ye = Math.max(Vd, q.startWidth + ue * 2);
171
+ ye = Math.max(nu, q.startWidth + ue * 2);
164
172
  }
165
173
  if (ne.includes("s") || ne.includes("n")) {
166
174
  const ue = ne.includes("s") ? M.clientY - q.startY : q.startY - M.clientY;
167
- me = Math.max(Jd, q.startHeight + ue * 2);
175
+ me = Math.max(ou, q.startHeight + ue * 2);
168
176
  }
169
177
  d({
170
178
  width: ye,
@@ -172,7 +180,7 @@ var Qd = (e) => e ? {
172
180
  });
173
181
  }, []), k = z(() => {
174
182
  w.current = null;
175
- }, []), y = Kd(u, g, n - (h ? 360 / 2 : 0)), N = y.offsetX, A = {
183
+ }, []), y = tu(u, g, n - (h ? 360 / 2 : 0)), N = y.offsetX, A = {
176
184
  size: u,
177
185
  setSize: d,
178
186
  isInspectorOpen: h,
@@ -201,7 +209,7 @@ var Qd = (e) => e ? {
201
209
  },
202
210
  onClick: (M) => M.stopPropagation(),
203
211
  onPointerDown: (M) => M.stopPropagation(),
204
- children: [l === "visible" && Yd.map((M) => /* @__PURE__ */ a("div", {
212
+ children: [l === "visible" && ru.map((M) => /* @__PURE__ */ a("div", {
205
213
  className: `prototype-editor-overlay-resize prototype-editor-overlay-resize--${M}`,
206
214
  onPointerDown: (q) => x(M, q),
207
215
  onPointerMove: S,
@@ -221,7 +229,7 @@ var Qd = (e) => e ? {
221
229
  }, wo = {
222
230
  name: "StudioScreen",
223
231
  slots: [{ name: "content" }]
224
- }, Jt = "content", be = "Screen", Xd = "template-root", Zd = "screen-root", Lr = () => ({
232
+ }, Jt = "content", be = "Screen", au = "template-root", su = "screen-root", Lr = () => ({
225
233
  layouts: [wo],
226
234
  screenTemplates: [],
227
235
  dialogTemplates: [],
@@ -229,7 +237,7 @@ var Qd = (e) => e ? {
229
237
  exposures: [],
230
238
  instanceContributions: []
231
239
  });
232
- function eu(e, t) {
240
+ function lu(e, t) {
233
241
  return {
234
242
  ...Lr(),
235
243
  screens: [{
@@ -242,7 +250,7 @@ function eu(e, t) {
242
250
  }]
243
251
  };
244
252
  }
245
- function tu(e, t, n) {
253
+ function cu(e, t, n) {
246
254
  return {
247
255
  ...Lr(),
248
256
  screenTemplates: [{
@@ -266,7 +274,7 @@ function $n(e, t = !1) {
266
274
  name: be
267
275
  };
268
276
  }
269
- var kn = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t) : void 0, nu = (e) => {
277
+ var kn = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t) : void 0, du = (e) => {
270
278
  const t = e;
271
279
  return !!t && typeof t == "object" && [
272
280
  "left",
@@ -275,11 +283,11 @@ var kn = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t)
275
283
  "bottom"
276
284
  ].every((n) => typeof t[n] == "number");
277
285
  };
278
- function ou(e, t, n) {
286
+ function uu(e, t, n) {
279
287
  const o = e;
280
288
  o.zIndex = n;
281
289
  const i = kn(ao, t.visibility);
282
- i !== void 0 && (o.visibility = i), typeof t.isEnabled == "boolean" && (o.isEnabled = t.isEnabled), typeof t.opacity == "number" && (o.opacity = t.opacity), nu(t.margin) && (o.margin = { ...t.margin });
290
+ i !== void 0 && (o.visibility = i), typeof t.isEnabled == "boolean" && (o.isEnabled = t.isEnabled), typeof t.opacity == "number" && (o.opacity = t.opacity), du(t.margin) && (o.margin = { ...t.margin });
283
291
  const r = kn(io, t.horizontalAlignment);
284
292
  r !== void 0 && (o.horizontalAlignment = r);
285
293
  const s = kn(ro, t.verticalAlignment);
@@ -298,16 +306,16 @@ var Ln = {
298
306
  horizontalAlignment: io.Stretch,
299
307
  verticalAlignment: ro.Stretch
300
308
  };
301
- function iu(e) {
309
+ function pu(e) {
302
310
  const t = {
303
311
  ...Ln,
304
312
  margin: { ...Ln.margin }
305
313
  };
306
- return ou(t, e, 0), delete t.zIndex, t;
314
+ return uu(t, e, 0), delete t.zIndex, t;
307
315
  }
308
- var ru = Object.keys(Ln), H = /* @__PURE__ */ (function(e) {
316
+ var mu = Object.keys(Ln), H = /* @__PURE__ */ (function(e) {
309
317
  return e.Stack = "stack", e.Row = "row", e.Grid = "grid", e.Container = "container", e.Wrap = "wrap", e.Canvas = "canvas", e;
310
- })({}), au = "StudioLayout", su = {
318
+ })({}), hu = "StudioLayout", fu = {
311
319
  Stack: H.Stack,
312
320
  Row: H.Row,
313
321
  Grid: H.Grid,
@@ -315,19 +323,19 @@ var ru = Object.keys(Ln), H = /* @__PURE__ */ (function(e) {
315
323
  Wrap: H.Wrap,
316
324
  Canvas: H.Canvas
317
325
  };
318
- function lu(e) {
319
- const t = Object.entries(su).find(([, n]) => n === e)?.[0] ?? "Container";
320
- return `${au}.${t}`;
326
+ function gu(e) {
327
+ const t = Object.entries(fu).find(([, n]) => n === e)?.[0] ?? "Container";
328
+ return `${hu}.${t}`;
321
329
  }
322
- var Je = "Canvas.Left", Qe = "Canvas.Top", hi = "legacyType", cu = "legacy", fi = "legacyExtras", du = {
330
+ var Je = "Canvas.Left", Qe = "Canvas.Top", hi = "legacyType", vu = "legacy", fi = "legacyExtras", bu = {
323
331
  DatePicker: "calendar",
324
332
  OrgChart: "organizationChart",
325
333
  Chips: "chips",
326
334
  ToggleButton: "toggleSwitch"
327
- }, uu = Object.fromEntries(Object.entries(du).map(([e, t]) => [t, e]));
335
+ }, yu = Object.fromEntries(Object.entries(bu).map(([e, t]) => [t, e]));
328
336
  function Br(e) {
329
337
  const t = e.includes(":") ? e.slice(e.lastIndexOf(":") + 1) : e;
330
- return uu[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
338
+ return yu[t] ?? t.charAt(0).toUpperCase() + t.slice(1);
331
339
  }
332
340
  function Bn(e) {
333
341
  return Array.isArray(e) ? e.filter((t) => t !== null).map(Bn) : e !== null && typeof e == "object" ? Object.fromEntries(Object.entries(e).filter(([, t]) => t !== null).map(([t, n]) => [t, Bn(n)])) : e;
@@ -344,13 +352,13 @@ function zt(e, t = () => {
344
352
  }
345
353
  var fe = (e, t) => typeof e == "number" ? e : t;
346
354
  function Ur(e, t) {
347
- const n = e, o = { ...n.properties ?? {} }, i = Xt(e).map((S) => Ur(S, t)), r = o[cu];
348
- if (r != null && typeof r == "object") return mu(r, n, o, i);
349
- const s = o[fi], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[hi] : void 0, c = l ?? (jt(e) ? lu(jr(e)) : t(qe(e) ? e.componentName : "")), u = qe(e) ? e.componentName : "", { [hi]: d, [fi]: p, [Je]: h, [Qe]: f, ...g } = o, m = {};
355
+ const n = e, o = { ...n.properties ?? {} }, i = Xt(e).map((S) => Ur(S, t)), r = o[vu];
356
+ if (r != null && typeof r == "object") return ku(r, n, o, i);
357
+ const s = o[fi], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[hi] : void 0, c = l ?? (jt(e) ? gu(jr(e)) : t(qe(e) ? e.componentName : "")), u = qe(e) ? e.componentName : "", { [hi]: d, [fi]: p, [Je]: h, [Qe]: f, ...g } = o, m = {};
350
358
  for (const S of s?.topKeys ?? []) S in g && (m[S] = g[S], delete g[S]);
351
359
  const v = fe(h, s?.position.x ?? 0), w = fe(f, s?.position.y ?? 0), P = n.name ?? "", x = s?.emptyName === !0 && P === (l ?? "");
352
360
  return {
353
- ...pu(n, s),
361
+ ...wu(n, s),
354
362
  ...m,
355
363
  _derivedTypeId: c ?? "externalComponent",
356
364
  id: n.id,
@@ -373,12 +381,12 @@ function Ur(e, t) {
373
381
  ZIndex: n.zIndex ?? 0
374
382
  };
375
383
  }
376
- function pu(e, t) {
377
- const n = t?.top ?? {}, o = iu(n), i = e, r = { ...n };
378
- for (const s of ru) JSON.stringify(i[s]) !== JSON.stringify(o[s]) && (r[s] = i[s]);
384
+ function wu(e, t) {
385
+ const n = t?.top ?? {}, o = pu(n), i = e, r = { ...n };
386
+ for (const s of mu) JSON.stringify(i[s]) !== JSON.stringify(o[s]) && (r[s] = i[s]);
379
387
  return r;
380
388
  }
381
- function mu(e, t, n, o) {
389
+ function ku(e, t, n, o) {
382
390
  const i = { ...e }, r = e.properties ?? {}, s = r.canvas ?? {}, l = n[Je], c = n[Qe];
383
391
  (typeof l == "number" || typeof c == "number") && (e.position && typeof e.position == "object" ? i.position = {
384
392
  ...e.position,
@@ -398,7 +406,7 @@ function mu(e, t, n, o) {
398
406
  children: o
399
407
  }), i;
400
408
  }
401
- var hu = [
409
+ var Su = [
402
410
  "input",
403
411
  "textarea",
404
412
  "select",
@@ -417,7 +425,7 @@ var hu = [
417
425
  "[data-studio-typing]"
418
426
  ].join(","), tn = (e) => {
419
427
  const t = e;
420
- return !!t && typeof t.closest == "function" && (t.closest(hu) !== null || t.isContentEditable === !0);
428
+ return !!t && typeof t.closest == "function" && (t.closest(Su) !== null || t.isContentEditable === !0);
421
429
  }, ko = (e) => (e.key === "Delete" || e.key === "Backspace") && !e.ctrlKey && !e.metaKey && !e.altKey && !e.shiftKey && !e.defaultPrevented && !e.repeat && !e.nativeEvent?.isComposing && !tn(e.target);
422
430
  function Ne(e, t, n, o = null) {
423
431
  for (const [i, r] of e.entries()) {
@@ -475,7 +483,7 @@ function Hr(e, t, n, o = 0, i = null) {
475
483
  var Re = /* @__PURE__ */ (function(e) {
476
484
  return e.MoveUp = "moveUp", e.MoveDown = "moveDown", e.Outdent = "outdent", e.Indent = "indent", e;
477
485
  })({});
478
- function fu(e, t, n, o) {
486
+ function Cu(e, t, n, o) {
479
487
  const i = Ne(e, t, o);
480
488
  if (!i) return;
481
489
  const r = i.parent === null ? null : o.idOf(i.parent);
@@ -514,7 +522,7 @@ function fu(e, t, n, o) {
514
522
  var Ue = /* @__PURE__ */ (function(e) {
515
523
  return e.Before = "before", e.Inside = "inside", e.After = "after", e;
516
524
  })({});
517
- function gu(e, t, n, o, i) {
525
+ function Nu(e, t, n, o, i) {
518
526
  const r = Ne(e, n, i);
519
527
  if (!r) return;
520
528
  if (o === Ue.Inside) return {
@@ -529,7 +537,7 @@ function gu(e, t, n, o, i) {
529
537
  index: o === Ue.Before ? s : s + 1
530
538
  };
531
539
  }
532
- function vu(e, t, n) {
540
+ function Tu(e, t, n) {
533
541
  if (t <= 0) return Ue.After;
534
542
  const o = e / t;
535
543
  return o < 0.25 ? Ue.Before : o > 0.75 || !n ? o < 0.5 ? Ue.Before : Ue.After : Ue.Inside;
@@ -539,7 +547,7 @@ var Gr = ({ ownership: e, label: t }) => e === ie.Local ? null : /* @__PURE__ */
539
547
  "data-ownership": e,
540
548
  children: t
541
549
  });
542
- function bu({ row: e, adapter: t, strings: n, isSelected: o, isFocusable: i, dropZone: r, onSelect: s, onToggle: l, onKeyDown: c, onDragStart: u, onDragOver: d, onDrop: p, onDragEnd: h }) {
550
+ function Iu({ row: e, adapter: t, strings: n, isSelected: o, isFocusable: i, dropZone: r, onSelect: s, onToggle: l, onKeyDown: c, onDragStart: u, onDragOver: d, onDrop: p, onDragEnd: h }) {
543
551
  const f = t.ownershipOf(e.node), g = kt(f, $e.Move) && (t.isMovable?.(e.node) ?? !0), m = t.detailOf?.(e.node), v = t.problemsOf?.(e.node) ?? 0;
544
552
  return /* @__PURE__ */ b("li", {
545
553
  role: "treeitem",
@@ -616,7 +624,7 @@ function qr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
616
624
  }, y = (T, C) => {
617
625
  const _ = w.findIndex((D) => D.id === C), L = w[_];
618
626
  if (T.altKey && gi[T.key]) {
619
- T.preventDefault(), S(fu(e, C, gi[T.key], t)), k(C);
627
+ T.preventDefault(), S(Cu(e, C, gi[T.key], t)), k(C);
620
628
  return;
621
629
  }
622
630
  if (ko(T) && s && jn(e, C, t)) {
@@ -654,10 +662,10 @@ function qr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
654
662
  const _ = T.currentTarget.getBoundingClientRect(), L = w.find((D) => D.id === C);
655
663
  g({
656
664
  id: C,
657
- zone: vu(T.clientY - _.top, _.height, !!L && t.acceptsChildren(L.node))
665
+ zone: Tu(T.clientY - _.top, _.height, !!L && t.acceptsChildren(L.node))
658
666
  });
659
667
  }, A = (T, C) => {
660
- T.preventDefault(), p && f?.id === C && S(gu(e, p, C, f.zone, t)), h(void 0), g(void 0);
668
+ T.preventDefault(), p && f?.id === C && S(Nu(e, p, C, f.zone, t)), h(void 0), g(void 0);
661
669
  };
662
670
  return w.length === 0 ? /* @__PURE__ */ a("p", {
663
671
  className: "studio-editor-structure-empty",
@@ -666,7 +674,7 @@ function qr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
666
674
  role: "tree",
667
675
  "aria-label": n.structureLabel,
668
676
  className: "studio-editor-structure-tree",
669
- children: w.map((T) => /* @__PURE__ */ a(bu, {
677
+ children: w.map((T) => /* @__PURE__ */ a(Iu, {
670
678
  row: T,
671
679
  adapter: t,
672
680
  strings: n,
@@ -694,26 +702,26 @@ function qr({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
694
702
  }
695
703
  var Sn = /* @__PURE__ */ (function(e) {
696
704
  return e.Properties = "properties", e.Structure = "structure", e;
697
- })({}), yu = /* @__PURE__ */ new Set([Je, Qe]);
698
- function wu(e, t, n) {
699
- return t ? e : e.filter((o) => !yu.has(o.descriptor.path) || n?.[o.descriptor.path] !== void 0);
705
+ })({}), Pu = /* @__PURE__ */ new Set([Je, Qe]);
706
+ function xu(e, t, n) {
707
+ return t ? e : e.filter((o) => !Pu.has(o.descriptor.path) || n?.[o.descriptor.path] !== void 0);
700
708
  }
701
709
  function So(e) {
702
710
  return { types: e };
703
711
  }
704
- var ku = {
712
+ var Ou = {
705
713
  action: /* @__PURE__ */ new Set([
706
714
  "command",
707
715
  "arguments",
708
716
  "presentation"
709
717
  ]),
710
718
  commandForm: /* @__PURE__ */ new Set(["command"])
711
- }, Kr = (e, t) => ku[e.slice(e.lastIndexOf(":") + 1)]?.has(t) ?? !1, Su = /* @__PURE__ */ new Set([
719
+ }, Kr = (e, t) => Ou[e.slice(e.lastIndexOf(":") + 1)]?.has(t) ?? !1, Du = /* @__PURE__ */ new Set([
712
720
  K.Object,
713
721
  K.Json,
714
722
  K.Collection
715
- ]), Cu = (e) => e.descriptor.output === !0 && Su.has(e.descriptor.valueType), Nu = (e, t, n = () => !1) => e.filter((o) => !Kr(t, o.descriptor.path) && !Cu(o) && !n(o));
716
- function Tu(e) {
723
+ ]), Ru = (e) => e.descriptor.output === !0 && Du.has(e.descriptor.valueType), Fu = (e, t, n = () => !1) => e.filter((o) => !Kr(t, o.descriptor.path) && !Ru(o) && !n(o));
724
+ function Eu(e) {
717
725
  const t = /* @__PURE__ */ new Map();
718
726
  for (const n of e) t.set(n.descriptor.group, [...t.get(n.descriptor.group) ?? [], n]);
719
727
  return [...t.entries()].map(([n, o]) => ({
@@ -734,7 +742,7 @@ function pt(e, t) {
734
742
  var Fe = /* @__PURE__ */ (function(e) {
735
743
  return e.MissingSlice = "missingSlice", e.UnmappedInput = "unmappedInput", e.UnknownInput = "unknownInput", e.UnknownSource = "unknownSource", e;
736
744
  })({});
737
- function Iu(e, t, n) {
745
+ function Mu(e, t, n) {
738
746
  const o = pt(t, e.sliceId);
739
747
  if (!o) return [{ kind: Fe.MissingSlice }];
740
748
  const i = [];
@@ -754,13 +762,13 @@ function Iu(e, t, n) {
754
762
  });
755
763
  return i;
756
764
  }
757
- function Pu(e, t) {
765
+ function Au(e, t) {
758
766
  return Object.fromEntries(e.inputs.flatMap((n) => {
759
767
  const o = t(n.name);
760
768
  return o === void 0 ? [] : [[n.name, o]];
761
769
  }));
762
770
  }
763
- var xu = (e, t) => {
771
+ var _u = (e, t) => {
764
772
  const n = e.input ?? "";
765
773
  switch (e.kind) {
766
774
  case Fe.MissingSlice:
@@ -772,8 +780,8 @@ var xu = (e, t) => {
772
780
  case Fe.UnknownSource:
773
781
  return t.unknownSource(n);
774
782
  }
775
- }, Ou = ({ action: e, slices: t, sources: n, strings: o, disabled: i, suggestSource: r, onChange: s }) => {
776
- const l = o.properties.action, c = e ? pt(t, e.sliceId) : void 0, u = e ? Iu(e, t, new Set(n.map((d) => d.path))) : [];
783
+ }, $u = ({ action: e, slices: t, sources: n, strings: o, disabled: i, suggestSource: r, onChange: s }) => {
784
+ const l = o.properties.action, c = e ? pt(t, e.sliceId) : void 0, u = e ? Mu(e, t, new Set(n.map((d) => d.path))) : [];
777
785
  return /* @__PURE__ */ b("fieldset", {
778
786
  className: "studio-editor-query",
779
787
  disabled: i,
@@ -786,7 +794,7 @@ var xu = (e, t) => {
786
794
  s(p ? {
787
795
  sliceId: p.id,
788
796
  sliceName: p.name,
789
- inputs: Pu(p, r),
797
+ inputs: Au(p, r),
790
798
  presentation: e?.presentation ?? ve.None
791
799
  } : void 0);
792
800
  },
@@ -851,13 +859,13 @@ var xu = (e, t) => {
851
859
  "aria-label": o.properties.diagnostics,
852
860
  children: u.map((d, p) => /* @__PURE__ */ a("li", {
853
861
  "data-severity": "error",
854
- children: xu(d, l.problems)
862
+ children: _u(d, l.problems)
855
863
  }, p))
856
864
  })
857
865
  ]
858
866
  });
859
867
  }, Un = Rs;
860
- function Du(e, t) {
868
+ function Lu(e, t) {
861
869
  return `${Un}${e}.${t}`;
862
870
  }
863
871
  function Vr(e, t, n) {
@@ -865,16 +873,16 @@ function Vr(e, t, n) {
865
873
  path: o,
866
874
  label: o
867
875
  })), ...t.filter((o) => o.componentId !== n).flatMap((o) => o.outputs.map((i) => ({
868
- path: Du(o.componentId, i.path),
876
+ path: Lu(o.componentId, i.path),
869
877
  label: `${o.label} - ${i.label}`
870
878
  })))];
871
879
  }
872
- function Ru(e) {
880
+ function Bu(e) {
873
881
  if (!e.startsWith(Un)) return;
874
882
  const t = e.slice(Un.length), n = t.indexOf(".");
875
883
  return n > 0 ? t.slice(0, n) : void 0;
876
884
  }
877
- function Fu(e, t) {
885
+ function ju(e, t) {
878
886
  const n = pt(t.stateChangeSlices, e.properties.command);
879
887
  return n ? { properties: n.inputs.map((o) => ({
880
888
  name: o.name,
@@ -882,7 +890,7 @@ function Fu(e, t) {
882
890
  })) } : void 0;
883
891
  }
884
892
  function Co(e, t, n, o, i) {
885
- const r = Fu(e, o);
893
+ const r = ju(e, o);
886
894
  let s = !1;
887
895
  const l = {
888
896
  element: e,
@@ -913,7 +921,7 @@ function Co(e, t, n, o, i) {
913
921
  };
914
922
  return l;
915
923
  }
916
- var Eu = ({ component: e, descriptor: t, controller: n, environment: o, strings: i, disabled: r }) => {
924
+ var Uu = ({ component: e, descriptor: t, controller: n, environment: o, strings: i, disabled: r }) => {
917
925
  const [s, l] = j([]), { designTime: c, packageDescriptorOf: u } = o.runtime, d = u(t);
918
926
  if ((d.actions ?? []).length === 0) return null;
919
927
  const p = (m) => Co(e, d, n, o, m), h = c.actions(d, p(i.properties.designTimeActions)), f = h.flatMap((m) => m.diagnostic ? [m.diagnostic] : []), g = (m, v) => {
@@ -937,7 +945,7 @@ var Eu = ({ component: e, descriptor: t, controller: n, environment: o, strings:
937
945
  })
938
946
  ]
939
947
  });
940
- }, Mu = ({ component: e, descriptor: t, properties: n, controller: o, environment: i, strings: r, disabled: s }) => {
948
+ }, Wu = ({ component: e, descriptor: t, properties: n, controller: o, environment: i, strings: r, disabled: s }) => {
941
949
  const { designTime: l, packageDescriptorOf: c } = i.runtime, u = c(t), d = n.flatMap((p) => {
942
950
  const h = l.propertyEditor(u, p.descriptor).contribution;
943
951
  return h ? [{
@@ -963,7 +971,7 @@ var Eu = ({ component: e, descriptor: t, controller: n, environment: o, strings:
963
971
  })
964
972
  }, p.descriptor.path))]
965
973
  });
966
- }, Au = ({ component: e, descriptor: t, controller: n, environment: o, strings: i }) => {
974
+ }, zu = ({ component: e, descriptor: t, controller: n, environment: o, strings: i }) => {
967
975
  const { designTime: r, packageDescriptorOf: s } = o.runtime, l = s(t), c = r.designer(l), u = c.contribution;
968
976
  if (!u && !c.diagnostic) return null;
969
977
  const d = `${c.package ?? ""}:${l.editorKind ?? ""}`;
@@ -982,11 +990,11 @@ var Eu = ({ component: e, descriptor: t, controller: n, environment: o, strings:
982
990
  children: c.diagnostic
983
991
  })]
984
992
  });
985
- }, _u = "commandForm", Wn = "command", Jr = (e) => e.slice(e.lastIndexOf(":") + 1) === _u;
993
+ }, Hu = "commandForm", Wn = "command", Jr = (e) => e.slice(e.lastIndexOf(":") + 1) === Hu;
986
994
  function Qr(e, t) {
987
- return e.flatMap((n) => [...qe(n) && Jr(n.componentName) ? [$u(n, t)] : [], ...Qr(Xt(n), t)]);
995
+ return e.flatMap((n) => [...qe(n) && Jr(n.componentName) ? [Gu(n, t)] : [], ...Qr(Xt(n), t)]);
988
996
  }
989
- function $u(e, t) {
997
+ function Gu(e, t) {
990
998
  const n = e.properties?.[Wn], o = typeof n == "string" ? n : "";
991
999
  return {
992
1000
  elementId: e.id,
@@ -994,7 +1002,7 @@ function $u(e, t) {
994
1002
  commandName: pt(t, o) ? St(pt(t, o)) : void 0
995
1003
  };
996
1004
  }
997
- function Lu(e, t) {
1005
+ function qu(e, t) {
998
1006
  return t ? {
999
1007
  kind: Y.SetProperty,
1000
1008
  nodeId: re(e),
@@ -1006,7 +1014,7 @@ function Lu(e, t) {
1006
1014
  path: Wn
1007
1015
  };
1008
1016
  }
1009
- var Bu = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1017
+ var Ku = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1010
1018
  const i = e.document.screens.find((c) => c.name === be), r = i?.forms ?? [];
1011
1019
  if (!i) return null;
1012
1020
  const s = n.properties.forms, l = new Set(Qr(e.composition.roots, t).map((c) => c.commandName));
@@ -1037,7 +1045,7 @@ var Bu = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1037
1045
  unit: t,
1038
1046
  value: e
1039
1047
  };
1040
- function ju(e) {
1048
+ function Vu(e) {
1041
1049
  return {
1042
1050
  columns: [{
1043
1051
  index: 1,
@@ -1051,7 +1059,7 @@ function ju(e) {
1051
1059
  rowGap: Ee(12, Ce.Pixels)
1052
1060
  };
1053
1061
  }
1054
- function Uu(e) {
1062
+ function Ju(e) {
1055
1063
  const t = e.layout;
1056
1064
  if (!(t !== void 0 && (t.columns.some((o) => o.index < 1) || t.placements.some((o) => o.row < 1 || o.column < 1)))) return e;
1057
1065
  const n = (o) => ({
@@ -1076,7 +1084,7 @@ function Uu(e) {
1076
1084
  };
1077
1085
  }
1078
1086
  function It(e) {
1079
- const t = Uu(e), n = t.layout ?? ju(t.fields), o = t.fields.map((i, r) => Yr(n, i.name) ?? i.placement ?? No(i.name, r));
1087
+ const t = Ju(e), n = t.layout ?? Vu(t.fields), o = t.fields.map((i, r) => Yr(n, i.name) ?? i.placement ?? No(i.name, r));
1080
1088
  return {
1081
1089
  ...t,
1082
1090
  layout: {
@@ -1089,8 +1097,8 @@ function It(e) {
1089
1097
  }))
1090
1098
  };
1091
1099
  }
1092
- function Wu(e, t, n) {
1093
- const o = It(e), i = Hu(n(Yr(o.layout, t) ?? No(t, o.fields.findIndex((r) => r.name === t))));
1100
+ function Qu(e, t, n) {
1101
+ const o = It(e), i = Xu(n(Yr(o.layout, t) ?? No(t, o.fields.findIndex((r) => r.name === t))));
1094
1102
  return {
1095
1103
  ...o,
1096
1104
  layout: {
@@ -1103,7 +1111,7 @@ function Wu(e, t, n) {
1103
1111
  } : r)
1104
1112
  };
1105
1113
  }
1106
- function zu(e, t, n) {
1114
+ function Yu(e, t, n) {
1107
1115
  const o = It(e), i = o.layout.columns.some((r) => r.index === t) ? o.layout.columns.map((r) => r.index === t ? {
1108
1116
  ...r,
1109
1117
  width: n
@@ -1141,7 +1149,7 @@ function No(e, t) {
1141
1149
  columnSpan: 1
1142
1150
  };
1143
1151
  }
1144
- function Hu(e) {
1152
+ function Xu(e) {
1145
1153
  return {
1146
1154
  ...e,
1147
1155
  row: Math.max(1, e.row),
@@ -1158,21 +1166,21 @@ function zn(e) {
1158
1166
  fields: e.inputs.map((t) => ({ name: t.name }))
1159
1167
  };
1160
1168
  }
1161
- function Gu(e, t) {
1169
+ function Zu(e, t) {
1162
1170
  return It({
1163
1171
  ...e,
1164
1172
  generationMode: ge.Manual,
1165
- fields: qu(t)
1173
+ fields: ep(t)
1166
1174
  });
1167
1175
  }
1168
- function qu(e) {
1176
+ function ep(e) {
1169
1177
  return e.inputs.map((t) => ({
1170
1178
  name: t.name,
1171
1179
  sourceProperty: t.name,
1172
1180
  label: t.name
1173
1181
  }));
1174
1182
  }
1175
- function Ku(e, t) {
1183
+ function tp(e, t) {
1176
1184
  return e.generationMode ? e.generationMode : t !== void 0 && e.fields.length === t.inputs.length && e.fields.every((n, o) => n.name === t.inputs[o]?.name && !n.sourceProperty && !n.composeUsing && !n.label && !n.placement) ? ge.Auto : ge.Manual;
1177
1185
  }
1178
1186
  function bi(e, t, n) {
@@ -1181,19 +1189,19 @@ function bi(e, t, n) {
1181
1189
  fields: e.fields.map((o, i) => i === t ? n : o)
1182
1190
  };
1183
1191
  }
1184
- function Vu(e, t) {
1192
+ function np(e, t) {
1185
1193
  return t ? e.find((n) => n.forCommand === St(t)) : void 0;
1186
1194
  }
1187
- var Ju = pt, Me = /* @__PURE__ */ (function(e) {
1195
+ var op = pt, Me = /* @__PURE__ */ (function(e) {
1188
1196
  return e.AutoMapped = "autoMapped", e.Renamed = "renamed", e.Composed = "composed", e.Broken = "broken", e;
1189
1197
  })({});
1190
- function Qu(e, t) {
1198
+ function ip(e, t) {
1191
1199
  return e.fields.map((n) => ({
1192
1200
  field: n,
1193
- kind: Yu(n, t)
1201
+ kind: rp(n, t)
1194
1202
  }));
1195
1203
  }
1196
- function Yu(e, t) {
1204
+ function rp(e, t) {
1197
1205
  if (e.composeUsing) return Me.Composed;
1198
1206
  const n = e.sourceProperty ?? e.name;
1199
1207
  return t.includes(n) ? e.sourceProperty ? Me.Renamed : Me.AutoMapped : Me.Broken;
@@ -1201,8 +1209,8 @@ function Yu(e, t) {
1201
1209
  var He = /* @__PURE__ */ (function(e) {
1202
1210
  return e.None = "none", e.ViaQuery = "viaQuery", e.FromItem = "fromItem", e;
1203
1211
  })({});
1204
- function Xu(e) {
1205
- return e ? Zu(e) ? {
1212
+ function ap(e) {
1213
+ return e ? sp(e) ? {
1206
1214
  kind: He.ViaQuery,
1207
1215
  queryName: e.queryName,
1208
1216
  parameterNames: Object.keys(e.parameterBindings)
@@ -1214,26 +1222,26 @@ function Xu(e) {
1214
1222
  parameterNames: []
1215
1223
  };
1216
1224
  }
1217
- function Zu(e) {
1225
+ function sp(e) {
1218
1226
  return "queryName" in e;
1219
1227
  }
1220
- var ep = {
1228
+ var lp = {
1221
1229
  [Me.AutoMapped]: "Auto-mapped",
1222
1230
  [Me.Renamed]: "Renamed",
1223
1231
  [Me.Composed]: "Composed",
1224
1232
  [Me.Broken]: "Broken"
1225
- }, tp = {
1233
+ }, cp = {
1226
1234
  [He.None]: "No populate source",
1227
1235
  [He.ViaQuery]: "Populate via query",
1228
1236
  [He.FromItem]: "Populate from item"
1229
1237
  };
1230
- function np({ form: e, commandProperties: t, onFieldSelected: n }) {
1231
- const o = Xu(e.populateSource), i = Qu(e, t);
1238
+ function dp({ form: e, commandProperties: t, onFieldSelected: n }) {
1239
+ const o = ap(e.populateSource), i = ip(e, t);
1232
1240
  return /* @__PURE__ */ b("div", {
1233
1241
  className: "studio-editor-form-designer",
1234
1242
  children: [/* @__PURE__ */ b("div", {
1235
1243
  className: "studio-editor-form-designer-populate-source",
1236
- children: [/* @__PURE__ */ a("span", { children: tp[o.kind] }), o.kind === He.ViaQuery && /* @__PURE__ */ b("span", {
1244
+ children: [/* @__PURE__ */ a("span", { children: cp[o.kind] }), o.kind === He.ViaQuery && /* @__PURE__ */ b("span", {
1237
1245
  className: "studio-editor-form-designer-populate-source-detail",
1238
1246
  children: [o.queryName, o.parameterNames.length > 0 && ` by ${o.parameterNames.join(", ")}`]
1239
1247
  })]
@@ -1249,7 +1257,7 @@ function np({ form: e, commandProperties: t, onFieldSelected: n }) {
1249
1257
  }),
1250
1258
  /* @__PURE__ */ a("span", {
1251
1259
  className: "studio-editor-form-designer-field-kind",
1252
- children: ep[s]
1260
+ children: lp[s]
1253
1261
  }),
1254
1262
  r.sourceProperty && /* @__PURE__ */ b("span", {
1255
1263
  className: "studio-editor-form-designer-field-detail",
@@ -1264,7 +1272,7 @@ function np({ form: e, commandProperties: t, onFieldSelected: n }) {
1264
1272
  })]
1265
1273
  });
1266
1274
  }
1267
- var op = ({ form: e, strings: t, onChange: n }) => {
1275
+ var up = ({ form: e, strings: t, onChange: n }) => {
1268
1276
  const o = It(e), i = o.layout;
1269
1277
  return /* @__PURE__ */ b("div", {
1270
1278
  className: "studio-editor-properties__form-layout",
@@ -1275,7 +1283,7 @@ var op = ({ form: e, strings: t, onChange: n }) => {
1275
1283
  name: t.column(r.index),
1276
1284
  value: r.width ?? Ee(),
1277
1285
  strings: t,
1278
- onChange: (s) => n(zu(o, r.index, s))
1286
+ onChange: (s) => n(Yu(o, r.index, s))
1279
1287
  })]
1280
1288
  }, r.index))] }),
1281
1289
  /* @__PURE__ */ b("fieldset", { children: [
@@ -1301,15 +1309,15 @@ var op = ({ form: e, strings: t, onChange: n }) => {
1301
1309
  ] }),
1302
1310
  /* @__PURE__ */ b("fieldset", { children: [/* @__PURE__ */ a("legend", { children: t.placements }), o.fields.map((r) => {
1303
1311
  const s = i.placements.find((l) => l.field === r.name) ?? r.placement;
1304
- return /* @__PURE__ */ b("fieldset", { children: [/* @__PURE__ */ a("legend", { children: r.label || r.name }), /* @__PURE__ */ a(ip, {
1312
+ return /* @__PURE__ */ b("fieldset", { children: [/* @__PURE__ */ a("legend", { children: r.label || r.name }), /* @__PURE__ */ a(pp, {
1305
1313
  placement: s,
1306
1314
  strings: t,
1307
- onChange: (l) => n(Wu(o, r.name, () => l))
1315
+ onChange: (l) => n(Qu(o, r.name, () => l))
1308
1316
  })] }, r.name);
1309
1317
  })] })
1310
1318
  ]
1311
1319
  });
1312
- }, ip = ({ placement: e, strings: t, onChange: n }) => /* @__PURE__ */ b(le, { children: [
1320
+ }, pp = ({ placement: e, strings: t, onChange: n }) => /* @__PURE__ */ b(le, { children: [
1313
1321
  /* @__PURE__ */ a(Dt, {
1314
1322
  label: t.row,
1315
1323
  value: e.row,
@@ -1388,8 +1396,8 @@ function yi(e, t) {
1388
1396
  value: Number.isFinite(n) ? n : 0
1389
1397
  };
1390
1398
  }
1391
- var rp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r }) => {
1392
- const s = t?.inputs.map((c) => c.name) ?? e.fields.map((c) => c.sourceProperty ?? c.name), l = Ku(e, t) === ge.Auto;
1399
+ var mp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r }) => {
1400
+ const s = t?.inputs.map((c) => c.name) ?? e.fields.map((c) => c.sourceProperty ?? c.name), l = tp(e, t) === ge.Auto;
1393
1401
  return /* @__PURE__ */ b("fieldset", {
1394
1402
  className: "studio-editor-properties__form",
1395
1403
  disabled: i,
@@ -1397,7 +1405,7 @@ var rp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1397
1405
  /* @__PURE__ */ a("legend", { children: e.name }),
1398
1406
  /* @__PURE__ */ b("label", { children: [/* @__PURE__ */ a("span", { children: o.mode }), /* @__PURE__ */ b("select", {
1399
1407
  value: l ? ge.Auto : ge.Manual,
1400
- onChange: (c) => t && r(c.target.value === ge.Auto ? zn(t) : Gu(e, t)),
1408
+ onChange: (c) => t && r(c.target.value === ge.Auto ? zn(t) : Zu(e, t)),
1401
1409
  children: [/* @__PURE__ */ a("option", {
1402
1410
  value: ge.Auto,
1403
1411
  children: o.auto
@@ -1406,7 +1414,7 @@ var rp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1406
1414
  children: o.manual
1407
1415
  })]
1408
1416
  })] }),
1409
- /* @__PURE__ */ a(np, {
1417
+ /* @__PURE__ */ a(dp, {
1410
1418
  form: e,
1411
1419
  commandProperties: s
1412
1420
  }),
@@ -1434,15 +1442,15 @@ var rp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1434
1442
  children: s.map((c) => /* @__PURE__ */ a("option", { value: c }, c))
1435
1443
  })]
1436
1444
  }),
1437
- !l && /* @__PURE__ */ a(op, {
1445
+ !l && /* @__PURE__ */ a(up, {
1438
1446
  form: e,
1439
1447
  strings: o,
1440
1448
  onChange: r
1441
1449
  })
1442
1450
  ]
1443
1451
  });
1444
- }, ap = ({ elementId: e, command: t, slices: n, forms: o, strings: i, disabled: r, onCommandChange: s, onFormChange: l, onFormCreate: c }) => {
1445
- const u = i.properties.commandForm, d = Ju(n, t), p = Vu(o, d), h = t !== void 0 && t !== "" && !d;
1452
+ }, hp = ({ elementId: e, command: t, slices: n, forms: o, strings: i, disabled: r, onCommandChange: s, onFormChange: l, onFormCreate: c }) => {
1453
+ const u = i.properties.commandForm, d = op(n, t), p = np(o, d), h = t !== void 0 && t !== "" && !d;
1446
1454
  return /* @__PURE__ */ b("fieldset", {
1447
1455
  className: "studio-editor-query studio-editor-properties__command-form",
1448
1456
  disabled: r,
@@ -1480,7 +1488,7 @@ var rp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1480
1488
  onClick: () => c(d),
1481
1489
  children: u.createForm(d.name)
1482
1490
  }),
1483
- d && p && /* @__PURE__ */ a(rp, {
1491
+ d && p && /* @__PURE__ */ a(mp, {
1484
1492
  form: p,
1485
1493
  slice: d,
1486
1494
  idPrefix: `${e}-form`,
@@ -1490,8 +1498,8 @@ var rp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1490
1498
  })
1491
1499
  ]
1492
1500
  });
1493
- }, sp = ({ outlets: e, disabled: t, strings: n, onChange: o }) => {
1494
- const i = (c, u) => o(e.map((d, p) => p === c ? lp(u) : d)), r = (c) => o(e.filter((u, d) => d !== c)), s = (c, u) => o(cp(e, c, u)), l = () => o([...e, { name: dp(e, n.newOutletName) }]);
1501
+ }, fp = ({ outlets: e, disabled: t, strings: n, onChange: o }) => {
1502
+ const i = (c, u) => o(e.map((d, p) => p === c ? gp(u) : d)), r = (c) => o(e.filter((u, d) => d !== c)), s = (c, u) => o(vp(e, c, u)), l = () => o([...e, { name: bp(e, n.newOutletName) }]);
1495
1503
  return /* @__PURE__ */ b("section", {
1496
1504
  className: "studio-editor-outlets",
1497
1505
  children: [
@@ -1548,17 +1556,17 @@ var rp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1548
1556
  ]
1549
1557
  });
1550
1558
  };
1551
- function lp(e) {
1559
+ function gp(e) {
1552
1560
  return {
1553
1561
  name: e.name,
1554
1562
  ...e.description ? { description: e.description } : {}
1555
1563
  };
1556
1564
  }
1557
- function cp(e, t, n) {
1565
+ function vp(e, t, n) {
1558
1566
  const o = [...e], [i] = o.splice(t, 1);
1559
1567
  return i && o.splice(n, 0, i), o;
1560
1568
  }
1561
- function dp(e, t) {
1569
+ function bp(e, t) {
1562
1570
  const n = new Set(e.map((o) => o.name));
1563
1571
  if (!n.has(t)) return t;
1564
1572
  for (let o = 2; ; o++) {
@@ -1566,24 +1574,24 @@ function dp(e, t) {
1566
1574
  if (!n.has(i)) return i;
1567
1575
  }
1568
1576
  }
1569
- function up(e, t, n, o) {
1577
+ function yp(e, t, n, o) {
1570
1578
  const i = n.flatMap((s) => s.screens ?? []).find((s) => s.screenTemplate === e);
1571
1579
  if (!i) return;
1572
1580
  const r = en(n.map((s) => s.manifest));
1573
1581
  return Xs(go(el(i), o, r), t);
1574
1582
  }
1575
- function pp(e, t) {
1583
+ function wp(e, t) {
1576
1584
  return t.find((n) => n.name === e && n.kind === cr.ScreenTemplate);
1577
1585
  }
1578
1586
  var gt = /* @__PURE__ */ (function(e) {
1579
1587
  return e.Desktop = "desktop", e.Tablet = "tablet", e.Phone = "phone", e;
1580
- })({}), mp = ({ templateName: e, environment: t, strings: n, disabled: o, onApply: i, onDiscard: r }) => {
1581
- const [s, l] = j(at.Populated), [c, u] = j(gt.Desktop), { bundles: d, profile: p, registry: h, designTime: f } = t.runtime, g = U(() => up(e, s, d, p), [
1588
+ })({}), kp = ({ templateName: e, environment: t, strings: n, disabled: o, onApply: i, onDiscard: r }) => {
1589
+ const [s, l] = j(at.Populated), [c, u] = j(gt.Desktop), { bundles: d, profile: p, registry: h, designTime: f } = t.runtime, g = U(() => yp(e, s, d, p), [
1582
1590
  e,
1583
1591
  s,
1584
1592
  d,
1585
1593
  p
1586
- ]), m = pp(e, f.host.templates);
1594
+ ]), m = wp(e, f.host.templates);
1587
1595
  return /* @__PURE__ */ b("section", {
1588
1596
  className: "studio-editor-template-preview",
1589
1597
  "aria-label": n.preview(e),
@@ -1693,7 +1701,7 @@ var gt = /* @__PURE__ */ (function(e) {
1693
1701
  children: c
1694
1702
  }, c))]
1695
1703
  })] }),
1696
- /* @__PURE__ */ a(sp, {
1704
+ /* @__PURE__ */ a(fp, {
1697
1705
  outlets: s.outlets ?? [],
1698
1706
  disabled: o,
1699
1707
  strings: n.properties.outlets,
@@ -1702,16 +1710,16 @@ var gt = /* @__PURE__ */ (function(e) {
1702
1710
  ]
1703
1711
  });
1704
1712
  }
1705
- return /* @__PURE__ */ a(hp, {
1713
+ return /* @__PURE__ */ a(Sp, {
1706
1714
  controller: e,
1707
1715
  environment: t,
1708
1716
  strings: n,
1709
1717
  disabled: o
1710
1718
  });
1711
- }, hp = ({ controller: e, environment: t, strings: n, disabled: o }) => {
1719
+ }, Sp = ({ controller: e, environment: t, strings: n, disabled: o }) => {
1712
1720
  const i = n.properties.templates, [r, s] = j(), l = e.document.screens.find((g) => g.name === be);
1713
1721
  if (!l) return null;
1714
- const c = (g) => e.setScreenTemplate(t.runtime.bundles.flatMap((m) => m.screenTemplates ?? []).find((m) => m.name === g), i.choose), u = U(() => fp(xs({ blueprints: ns(t.runtime.bundles) }, es({
1722
+ const c = (g) => e.setScreenTemplate(t.runtime.bundles.flatMap((m) => m.screenTemplates ?? []).find((m) => m.name === g), i.choose), u = U(() => Cp(xs({ blueprints: ns(t.runtime.bundles) }, es({
1715
1723
  bundles: t.runtime.bundles,
1716
1724
  profile: t.runtime.profile,
1717
1725
  scope: t.templateScope
@@ -1731,7 +1739,7 @@ var gt = /* @__PURE__ */ (function(e) {
1731
1739
  className: "studio-editor-properties__templates",
1732
1740
  children: [
1733
1741
  /* @__PURE__ */ a("strong", { children: i.label }),
1734
- r && /* @__PURE__ */ a(mp, {
1742
+ r && /* @__PURE__ */ a(kp, {
1735
1743
  templateName: r,
1736
1744
  environment: t,
1737
1745
  strings: i,
@@ -1757,7 +1765,7 @@ var gt = /* @__PURE__ */ (function(e) {
1757
1765
  ]
1758
1766
  });
1759
1767
  };
1760
- function fp(e) {
1768
+ function Cp(e) {
1761
1769
  const t = (n) => n.map((o) => ({
1762
1770
  ...o,
1763
1771
  templates: o.templates.filter((i) => i.kind === cr.ScreenTemplate)
@@ -1774,8 +1782,8 @@ function wi(e) {
1774
1782
  const t = Object.fromEntries(Object.entries(e).filter(([, n]) => n !== void 0 && n !== ""));
1775
1783
  return Object.keys(t).length > 0 ? t : void 0;
1776
1784
  }
1777
- var gp = ({ templates: e, referencedTemplates: t, disabled: n, strings: o, onChange: i }) => {
1778
- const r = (u, d) => i(e.map((p, h) => h === u ? bp(d) : p)), s = (u) => i(e.filter((d, p) => p !== u)), l = (u, d) => i(yp(e, u, d)), c = () => i([...e, vp(wp(e, o.newTemplateName))]);
1785
+ var Np = ({ templates: e, referencedTemplates: t, disabled: n, strings: o, onChange: i }) => {
1786
+ const r = (u, d) => i(e.map((p, h) => h === u ? Ip(d) : p)), s = (u) => i(e.filter((d, p) => p !== u)), l = (u, d) => i(Pp(e, u, d)), c = () => i([...e, Tp(xp(e, o.newTemplateName))]);
1779
1787
  return /* @__PURE__ */ b("section", {
1780
1788
  className: "studio-editor-dialog-templates",
1781
1789
  children: [
@@ -1844,14 +1852,14 @@ var gp = ({ templates: e, referencedTemplates: t, disabled: n, strings: o, onCha
1844
1852
  ]
1845
1853
  });
1846
1854
  };
1847
- function vp(e) {
1855
+ function Tp(e) {
1848
1856
  return {
1849
1857
  name: e,
1850
1858
  slots: [{ name: "content" }],
1851
1859
  behaviors: []
1852
1860
  };
1853
1861
  }
1854
- function bp(e) {
1862
+ function Ip(e) {
1855
1863
  return {
1856
1864
  name: e.name,
1857
1865
  slots: e.slots.length > 0 ? e.slots : [{ name: "content" }],
@@ -1863,11 +1871,11 @@ function bp(e) {
1863
1871
  ...e.metadata ? { metadata: e.metadata } : {}
1864
1872
  };
1865
1873
  }
1866
- function yp(e, t, n) {
1874
+ function Pp(e, t, n) {
1867
1875
  const o = [...e], [i] = o.splice(t, 1);
1868
1876
  return i && o.splice(n, 0, i), o;
1869
1877
  }
1870
- function wp(e, t) {
1878
+ function xp(e, t) {
1871
1879
  const n = new Set(e.map((o) => o.name));
1872
1880
  if (!n.has(t)) return t;
1873
1881
  for (let o = 2; ; o++) {
@@ -1875,14 +1883,14 @@ function wp(e, t) {
1875
1883
  if (!n.has(i)) return i;
1876
1884
  }
1877
1885
  }
1878
- var kp = ({ controller: e, strings: t, disabled: n }) => /* @__PURE__ */ a(gp, {
1886
+ var Op = ({ controller: e, strings: t, disabled: n }) => /* @__PURE__ */ a(Np, {
1879
1887
  templates: e.document.dialogTemplates,
1880
- referencedTemplates: Sp(e.document),
1888
+ referencedTemplates: Dp(e.document),
1881
1889
  disabled: n,
1882
1890
  strings: t.properties.dialogTemplates,
1883
1891
  onChange: (o) => e.setDialogTemplates(o, t.properties.dialogTemplates.label)
1884
1892
  });
1885
- function Sp(e) {
1893
+ function Dp(e) {
1886
1894
  const t = /* @__PURE__ */ new Set();
1887
1895
  return vt(e.screens, t), vt(e.screenTemplates, t), vt(e.instanceContributions, t), t;
1888
1896
  }
@@ -1896,13 +1904,13 @@ function vt(e, t) {
1896
1904
  typeof n.dialog == "string" && n.dialog.length > 0 && t.add(n.dialog);
1897
1905
  for (const o of Object.values(n)) vt(o, t);
1898
1906
  }
1899
- var Cp = (e, t, n = !1) => ({
1907
+ var Rp = (e, t, n = !1) => ({
1900
1908
  kind: Y.ChangeLayoutType,
1901
1909
  nodeId: e,
1902
1910
  to: t,
1903
1911
  ...n ? { acceptLoss: !0 } : {}
1904
1912
  });
1905
- function Np(e, t, n) {
1913
+ function Fp(e, t, n) {
1906
1914
  if (t) return { kind: "applied" };
1907
1915
  const o = n.find((i) => i.code === gs.LossyConversionNotAccepted);
1908
1916
  return o ? {
@@ -1917,11 +1925,11 @@ function Np(e, t, n) {
1917
1925
  diagnostics: [...n]
1918
1926
  };
1919
1927
  }
1920
- var Tp = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
1928
+ var Ep = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
1921
1929
  const i = n.properties, [r, s] = j(), l = Jo(t.context.catalog, e.typeId), c = l?.capabilities.convertibleTo ?? [];
1922
1930
  if (!l || c.length === 0) return null;
1923
1931
  const u = (d) => {
1924
- const p = t.tryApply(d, i.changeLayout), h = Np(d, p.applied, p.diagnostics);
1932
+ const p = t.tryApply(d, i.changeLayout), h = Fp(d, p.applied, p.diagnostics);
1925
1933
  s(h.kind === "confirm" ? {
1926
1934
  lost: h.lost,
1927
1935
  edit: h.edit
@@ -1932,7 +1940,7 @@ var Tp = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
1932
1940
  children: [/* @__PURE__ */ b("label", { children: [/* @__PURE__ */ a("span", { children: i.layoutType }), /* @__PURE__ */ b("select", {
1933
1941
  value: e.typeId,
1934
1942
  disabled: o,
1935
- onChange: (d) => u(Cp(e.nodeId, d.target.value)),
1943
+ onChange: (d) => u(Rp(e.nodeId, d.target.value)),
1936
1944
  children: [/* @__PURE__ */ a("option", {
1937
1945
  value: e.typeId,
1938
1946
  children: l.label
@@ -1963,7 +1971,7 @@ var Tp = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
1963
1971
  })]
1964
1972
  });
1965
1973
  };
1966
- var Ip = ({ location: e, strings: t }) => {
1974
+ var Mp = ({ location: e, strings: t }) => {
1967
1975
  const n = t.properties.location, [o, i] = j(), [r, s] = j(""), [l, c] = j(), [u, d] = j(!1);
1968
1976
  if (!e) return null;
1969
1977
  const p = o?.featureId ?? e.currentFeatureId, h = o?.path ?? e.path, f = e.features.filter((m) => m.id !== p), g = async () => {
@@ -2035,7 +2043,7 @@ var Ip = ({ location: e, strings: t }) => {
2035
2043
  ]
2036
2044
  });
2037
2045
  };
2038
- function Pp(e, t, n, o = {}) {
2046
+ function Ap(e, t, n, o = {}) {
2039
2047
  const i = {
2040
2048
  component: t,
2041
2049
  path: n,
@@ -2049,7 +2057,7 @@ function Pp(e, t, n, o = {}) {
2049
2057
  property: i
2050
2058
  };
2051
2059
  }
2052
- function xp(e, t, n) {
2060
+ function _p(e, t, n) {
2053
2061
  return {
2054
2062
  kind: Y.UnexposeProperty,
2055
2063
  owner: e,
@@ -2057,24 +2065,24 @@ function xp(e, t, n) {
2057
2065
  path: n
2058
2066
  };
2059
2067
  }
2060
- var Op = (e, t, n, o) => e.exposures.some((i) => i.owner === t && i.properties.some((r) => r.component === n && r.path === o)), Dp = [
2068
+ var $p = (e, t, n, o) => e.exposures.some((i) => i.owner === t && i.properties.some((r) => r.component === n && r.path === o)), Lp = [
2061
2069
  ke.Add,
2062
2070
  ke.Remove,
2063
2071
  ke.Reorder,
2064
2072
  ke.EditFields
2065
- ], Rp = ({ inspection: e, componentId: t, controller: n, strings: o, authoringTemplate: i }) => {
2073
+ ], Bp = ({ inspection: e, componentId: t, controller: n, strings: o, authoringTemplate: i }) => {
2066
2074
  const r = o.properties;
2067
2075
  if (i === void 0) return null;
2068
2076
  const s = e.properties.filter((l) => l.descriptor.valueType !== K.Object && l.descriptor.group !== "Placement");
2069
2077
  return s.length === 0 ? null : /* @__PURE__ */ b("section", {
2070
2078
  className: "studio-editor-properties__exposure",
2071
2079
  children: [/* @__PURE__ */ a("strong", { children: r.exposure }), /* @__PURE__ */ a("ul", { children: s.map((l) => {
2072
- const c = l.descriptor.path, u = Op(n.document, i, t, c), d = l.descriptor.valueType === K.Collection;
2080
+ const c = l.descriptor.path, u = $p(n.document, i, t, c), d = l.descriptor.valueType === K.Collection;
2073
2081
  return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ b("label", { children: [
2074
2082
  /* @__PURE__ */ a("input", {
2075
2083
  type: "checkbox",
2076
2084
  checked: u,
2077
- onChange: (p) => n.apply(p.target.checked ? Pp(i, t, c, d ? { operations: Dp } : {}) : xp(i, t, c), u ? r.unexposeProperty : r.exposeProperty)
2085
+ onChange: (p) => n.apply(p.target.checked ? Ap(i, t, c, d ? { operations: Lp } : {}) : _p(i, t, c), u ? r.unexposeProperty : r.exposeProperty)
2078
2086
  }),
2079
2087
  /* @__PURE__ */ a("span", { children: l.descriptor.label }),
2080
2088
  u && /* @__PURE__ */ a("em", { children: r.exposedToScopes })
@@ -2135,7 +2143,7 @@ function Si(e, t) {
2135
2143
  };
2136
2144
  }
2137
2145
  var To = ({ registry: e, property: t, context: n, componentId: o, onChange: i, diagnostics: r, presentation: s = "field" }) => {
2138
- const l = s === "popover", { descriptor: c } = t, u = `pe-${o}-${c.path}`.replace(/[^A-Za-z0-9_-]/g, "-"), d = e.resolve(c), p = Ja(t), { editor: h, failed: f } = Si(e, d?.id), { editor: g } = Si(e, p ? "bindingExpression" : void 0), m = n.strings.editors, v = !t.editable || c.readOnly === !0, w = t.editable ? c.readOnly === !0 ? m.readOnly : void 0 : t.reason ?? m.inherited, P = t.effectiveValue, x = Fp(t, r), S = P == null || !Ho(c) ? void 0 : dn(c, P) ?? Hn(c, P), k = S !== void 0 && dn(c, P) !== void 0 ? os(c, P) : void 0, y = k !== void 0 && dn(c, k) === void 0, N = (_) => i(t, _), A = p && Xa(P), T = c.valueType === "boolean", C = Ho(c);
2146
+ const l = s === "popover", { descriptor: c } = t, u = `pe-${o}-${c.path}`.replace(/[^A-Za-z0-9_-]/g, "-"), d = e.resolve(c), p = Ja(t), { editor: h, failed: f } = Si(e, d?.id), { editor: g } = Si(e, p ? "bindingExpression" : void 0), m = n.strings.editors, v = !t.editable || c.readOnly === !0, w = t.editable ? c.readOnly === !0 ? m.readOnly : void 0 : t.reason ?? m.inherited, P = t.effectiveValue, x = jp(t, r), S = P == null || !Ho(c) ? void 0 : dn(c, P) ?? Hn(c, P), k = S !== void 0 && dn(c, P) !== void 0 ? os(c, P) : void 0, y = k !== void 0 && dn(c, k) === void 0, N = (_) => i(t, _), A = p && Xa(P), T = c.valueType === "boolean", C = Ho(c);
2139
2147
  return /* @__PURE__ */ b("div", {
2140
2148
  className: `studio-editor-field${T ? " studio-editor-field--inline" : ""}`,
2141
2149
  "data-property": c.path,
@@ -2228,7 +2236,7 @@ var To = ({ registry: e, property: t, context: n, componentId: o, onChange: i, d
2228
2236
  ]
2229
2237
  });
2230
2238
  };
2231
- function Fp(e, t) {
2239
+ function jp(e, t) {
2232
2240
  const n = t.find((o) => o.path === e.descriptor.path && o.severity === "error");
2233
2241
  return n ? {
2234
2242
  code: n.code,
@@ -2349,7 +2357,7 @@ var ea = {
2349
2357
  }
2350
2358
  }, Ae = /* @__PURE__ */ (function(e) {
2351
2359
  return e.NotJson = "notJson", e.WrongShape = "wrongShape", e.MissingScreen = "missingScreen", e.MissingTemplate = "missingTemplate", e;
2352
- })({}), Ep = [
2360
+ })({}), Up = [
2353
2361
  "layouts",
2354
2362
  "screenTemplates",
2355
2363
  "dialogTemplates",
@@ -2368,7 +2376,7 @@ function ta(e, t) {
2368
2376
  };
2369
2377
  }
2370
2378
  const o = n;
2371
- if (!o || typeof o != "object" || Ep.some((r) => !Array.isArray(o[r]))) return {
2379
+ if (!o || typeof o != "object" || Up.some((r) => !Array.isArray(o[r]))) return {
2372
2380
  readable: !1,
2373
2381
  problem: Ae.WrongShape
2374
2382
  };
@@ -2392,7 +2400,7 @@ var oe = /* @__PURE__ */ (function(e) {
2392
2400
  })({}), Ci = {
2393
2401
  Compact: "Compact",
2394
2402
  Regular: "Regular"
2395
- }, Mp = {
2403
+ }, Wp = {
2396
2404
  ariaLabel: "Icon",
2397
2405
  picker: {
2398
2406
  placeholder: "Choose an icon",
@@ -2422,7 +2430,7 @@ var oe = /* @__PURE__ */ (function(e) {
2422
2430
  "catalog-unavailable": "The icons of {library} could not be read, so they cannot be checked. Try again in a moment."
2423
2431
  },
2424
2432
  notAllowed: "This icon is not available for this field. Choose one of the icons the field offers."
2425
- }, Ap = {
2433
+ }, zp = {
2426
2434
  inspectorTitle: "Inspector",
2427
2435
  windowLabel: "Screen editor",
2428
2436
  stopped: {
@@ -2526,7 +2534,7 @@ var oe = /* @__PURE__ */ (function(e) {
2526
2534
  exposedToScopes: "Screens can change this",
2527
2535
  itemsLabel: "Items",
2528
2536
  addItem: "Add item",
2529
- icon: Mp,
2537
+ icon: Wp,
2530
2538
  structured: nr,
2531
2539
  editors: ea,
2532
2540
  templates: {
@@ -2765,7 +2773,7 @@ var oe = /* @__PURE__ */ (function(e) {
2765
2773
  [oe.NoChange]: "It is already there."
2766
2774
  }
2767
2775
  };
2768
- function _p(e, t) {
2776
+ function Hp(e, t) {
2769
2777
  const n = e?.query, o = n !== null && typeof n == "object" && "queryId" in n ? n.queryId : void 0;
2770
2778
  return typeof o == "string" ? t.find((i) => i.id === o)?.resultFields ?? [] : [];
2771
2779
  }
@@ -2779,7 +2787,7 @@ function Io(e) {
2779
2787
  ...t.navigationModule !== void 0 ? { navigationModule: t.navigationModule } : {},
2780
2788
  queryCandidates: n.queryCandidates,
2781
2789
  availableSources: n.availableSources,
2782
- fields: _p(u, n.queryCandidates),
2790
+ fields: Hp(u, n.queryCandidates),
2783
2791
  colorTokens: d?.colorTokens ?? [],
2784
2792
  icons: {
2785
2793
  catalog: p.icons,
@@ -2811,11 +2819,11 @@ function Io(e) {
2811
2819
  } : g,
2812
2820
  structured: f.structured ?? nr,
2813
2821
  icon: f.icon,
2814
- iconPicker: f.iconPickerLabels ?? Ap.properties.iconPickerLabels ?? {}
2822
+ iconPicker: f.iconPickerLabels ?? zp.properties.iconPickerLabels ?? {}
2815
2823
  }
2816
2824
  };
2817
2825
  }
2818
- function $p(e, t, n) {
2826
+ function Gp(e, t, n) {
2819
2827
  return {
2820
2828
  ...e,
2821
2829
  session: {
@@ -2827,7 +2835,7 @@ function $p(e, t, n) {
2827
2835
  }
2828
2836
  };
2829
2837
  }
2830
- function Lp(e) {
2838
+ function qp(e) {
2831
2839
  switch (e.valueType) {
2832
2840
  case K.String:
2833
2841
  return "text";
@@ -2853,7 +2861,7 @@ function Lp(e) {
2853
2861
  return "undescribed";
2854
2862
  }
2855
2863
  }
2856
- var Bp = class {
2864
+ var Kp = class {
2857
2865
  #e = /* @__PURE__ */ new Map();
2858
2866
  #n = /* @__PURE__ */ new Map();
2859
2867
  #t = /* @__PURE__ */ new Map();
@@ -2896,15 +2904,15 @@ var Bp = class {
2896
2904
  id: e.editorKind,
2897
2905
  tier: "package"
2898
2906
  };
2899
- const n = Lp(e);
2907
+ const n = qp(e);
2900
2908
  return n !== void 0 && this.#e.has(n) ? {
2901
2909
  id: n,
2902
2910
  tier: "default"
2903
2911
  } : void 0;
2904
2912
  }
2905
2913
  };
2906
- function jp() {
2907
- const e = new Bp();
2914
+ function Vp() {
2915
+ const e = new Kp();
2908
2916
  e.register(X.Text, async () => (await import("./TextEditor-BEH-9K1S.js")).TextEditor), e.register(X.Number, async () => (await import("./NumberEditor-Cyo9_23Z.js")).NumberEditor), e.register(X.Boolean, async () => (await import("./BooleanEditor-eC1yCpz0.js")).BooleanEditor), e.register(X.Enum, async () => (await import("./EnumEditor-DNnnf9i3.js")).EnumEditor), e.register(X.Select, async () => (await import("./SelectEditor-CY6dlYWi.js")).SelectEditor), e.register(X.Color, async () => (await import("./ColorEditor-Cc6Xq8pW.js")).ColorEditor), e.register(X.Icon, async () => (await import("./IconEditor-qXyGbGEX.js")).IconEditor), e.register(X.List, async () => (await import("./ListEditor-CfFPVVJ4.js")).ListEditor), e.register(X.Reference, async () => (await import("./ReferenceEditor-CTguqJZC.js")).ReferenceEditor), e.register(X.NavigationTarget, async () => (await import("./NavigationTargetEditor-C53kuCBJ.js")).NavigationTargetEditor), e.register(X.RenderingSlot, async () => (await import("./RenderingSlotEditor-D0ppEIOx.js")).RenderingSlotEditor), e.register(X.Slice, async () => (await import("./SliceEditor-BdiU5-Tg.js")).SliceEditor), e.register(X.InheritanceMode, async () => (await import("./InheritanceModeEditor-CtdsACnc.js")).InheritanceModeEditor), e.register(X.Field, async () => (await import("./FieldEditor-e6VpsD__.js")).FieldEditor), e.register(X.ColumnList, async () => (await import("./ColumnListEditor-CmhQYS5b.js")).ColumnListEditor), e.register(X.Template, async () => (await import("./TemplatePropertyEditor-JGA5uEfP.js")).TemplatePropertyEditor), e.register(X.SampleData, async () => (await import("./ReferenceTargetEditors-Bx6dhIxY.js")).SampleDataEditor), e.register("object", async () => (await import("./StructuredPropertyEditor-Bd-8GBgK.js")).StructuredPropertyEditor), e.register("collection", async () => (await import("./CollectionEditor-DoTQJiqE.js")).CollectionEditor);
2909
2917
  for (const t of [
2910
2918
  X.StringList,
@@ -2924,7 +2932,7 @@ function jp() {
2924
2932
  ]) e.register(t, async () => (await import("./SummaryEditor-C5wP1uIH.js")).SummaryEditor);
2925
2933
  return e;
2926
2934
  }
2927
- var nn = jp(), Po = "presentation", xo = "arguments", Rt = (e) => typeof e == "string" ? e : "";
2935
+ var nn = Vp(), Po = "presentation", xo = "arguments", Rt = (e) => typeof e == "string" ? e : "";
2928
2936
  function na(e, t = "") {
2929
2937
  const n = Rt(e?.command);
2930
2938
  if (n === "") return;
@@ -2936,7 +2944,7 @@ function na(e, t = "") {
2936
2944
  presentation: Object.values(ve).includes(r) ? r : ve.None
2937
2945
  };
2938
2946
  }
2939
- function Up(e) {
2947
+ function Jp(e) {
2940
2948
  return {
2941
2949
  command: e.sliceId,
2942
2950
  [Po]: e.presentation,
@@ -2947,9 +2955,9 @@ function Up(e) {
2947
2955
  }))
2948
2956
  };
2949
2957
  }
2950
- function Wp(e, t) {
2958
+ function Qp(e, t) {
2951
2959
  const n = re(e);
2952
- return Object.entries(Up(t)).map(([o, i]) => ({
2960
+ return Object.entries(Jp(t)).map(([o, i]) => ({
2953
2961
  kind: Y.SetProperty,
2954
2962
  nodeId: n,
2955
2963
  path: o,
@@ -2962,12 +2970,12 @@ var Z = /* @__PURE__ */ (function(e) {
2962
2970
  kind: Z.None,
2963
2971
  target: ""
2964
2972
  };
2965
- function zp(e) {
2966
- const t = e?.find((n) => n.name === Gn)?.bindings.find((n) => qp(n.trigger))?.actions[0];
2967
- return t ? Gp(t) : oa;
2973
+ function Yp(e) {
2974
+ const t = e?.find((n) => n.name === Gn)?.bindings.find((n) => em(n.trigger))?.actions[0];
2975
+ return t ? Zp(t) : oa;
2968
2976
  }
2969
2977
  function Ni(e, t) {
2970
- const n = (e ?? []).filter((r) => r.name !== Gn), o = Hp(t), i = o ? [...n, {
2978
+ const n = (e ?? []).filter((r) => r.name !== Gn), o = Xp(t), i = o ? [...n, {
2971
2979
  name: Gn,
2972
2980
  bindings: [{
2973
2981
  trigger: { kind: sr.Click },
@@ -2976,7 +2984,7 @@ function Ni(e, t) {
2976
2984
  }] : n;
2977
2985
  return i.length > 0 ? i : void 0;
2978
2986
  }
2979
- function Hp(e) {
2987
+ function Xp(e) {
2980
2988
  if (e.target !== "")
2981
2989
  switch (e.kind) {
2982
2990
  case Z.Navigate:
@@ -2998,7 +3006,7 @@ function Hp(e) {
2998
3006
  return;
2999
3007
  }
3000
3008
  }
3001
- function Gp(e) {
3009
+ function Zp(e) {
3002
3010
  switch (e.kind) {
3003
3011
  case lt.Navigate:
3004
3012
  return {
@@ -3019,14 +3027,14 @@ function Gp(e) {
3019
3027
  return oa;
3020
3028
  }
3021
3029
  }
3022
- function qp(e) {
3030
+ function em(e) {
3023
3031
  return e?.kind === sr.Click;
3024
3032
  }
3025
- var Kp = ({ behaviors: e, targets: t, destinations: n, slices: o, strings: i, disabled: r, onChange: s }) => {
3026
- const l = zp(e), [c, u] = j(Z.None), d = l.kind === Z.None ? {
3033
+ var tm = ({ behaviors: e, targets: t, destinations: n, slices: o, strings: i, disabled: r, onChange: s }) => {
3034
+ const l = Yp(e), [c, u] = j(Z.None), d = l.kind === Z.None ? {
3027
3035
  kind: c,
3028
3036
  target: ""
3029
- } : l, p = Vp(d.kind, t, n, o), h = d.target !== "" && !p.some((m) => m.value === d.target), f = (m) => {
3037
+ } : l, p = nm(d.kind, t, n, o), h = d.target !== "" && !p.some((m) => m.value === d.target), f = (m) => {
3030
3038
  u(m), l.kind !== Z.None && s(Ni(e, {
3031
3039
  kind: Z.None,
3032
3040
  target: ""
@@ -3094,7 +3102,7 @@ var Kp = ({ behaviors: e, targets: t, destinations: n, slices: o, strings: i, di
3094
3102
  ]
3095
3103
  });
3096
3104
  };
3097
- function Vp(e, t, n, o) {
3105
+ function nm(e, t, n, o) {
3098
3106
  switch (e) {
3099
3107
  case Z.Navigate:
3100
3108
  return n.map((i) => ({
@@ -3228,7 +3236,7 @@ var Oo = {
3228
3236
  }, on = /* @__PURE__ */ (function(e) {
3229
3237
  return e.Elements = "elements", e.Collection = "collection", e.Region = "region", e;
3230
3238
  })({}), ia = (e) => "rejected" in e;
3231
- function Jp(e, t) {
3239
+ function om(e, t) {
3232
3240
  switch (e.availability) {
3233
3241
  case void 0:
3234
3242
  return !0;
@@ -3240,7 +3248,7 @@ function Jp(e, t) {
3240
3248
  }
3241
3249
  var Do = cl;
3242
3250
  function Ft(e, t) {
3243
- if (!Jp(e, t)) return {
3251
+ if (!om(e, t)) return {
3244
3252
  visible: !1,
3245
3253
  enabled: !1
3246
3254
  };
@@ -3276,10 +3284,10 @@ var Ro = (e, t, n) => e.flatMap((o) => {
3276
3284
  ...o,
3277
3285
  children: Ro(o.children, t, n)
3278
3286
  } : o];
3279
- }), Qp = (e) => Object.fromEntries(Object.entries(e).filter(([, t]) => t !== void 0)), Et = (e, t, n) => Ro(e, t, (o) => Qp({
3287
+ }), im = (e) => Object.fromEntries(Object.entries(e).filter(([, t]) => t !== void 0)), Et = (e, t, n) => Ro(e, t, (o) => im({
3280
3288
  ...o,
3281
3289
  ...n
3282
- })), Yp = (e, t) => Ro(e, t, () => {
3290
+ })), rm = (e, t) => Ro(e, t, () => {
3283
3291
  });
3284
3292
  function Qt(e, t) {
3285
3293
  for (const n of e) {
@@ -3295,7 +3303,7 @@ function Ct(e, t) {
3295
3303
  if (o) return o;
3296
3304
  }
3297
3305
  }
3298
- function Xp(e, t, n) {
3306
+ function am(e, t, n) {
3299
3307
  const o = Ct(e, t);
3300
3308
  if (!o) return [...e];
3301
3309
  const i = o.findIndex((l) => l.id === t);
@@ -3317,7 +3325,7 @@ var ra = (e, t) => ({
3317
3325
  id: t(),
3318
3326
  ...e.children ? { children: e.children.map((n) => ra(n, t)) } : {}
3319
3327
  });
3320
- function Zp(e, t, n) {
3328
+ function sm(e, t, n) {
3321
3329
  const o = Qt(e, t), i = Ct(e, t);
3322
3330
  if (!o || !i) return { items: [...e] };
3323
3331
  const r = ra(o, n), s = i.findIndex((c) => c.id === t) + 1, l = [
@@ -3330,18 +3338,18 @@ function Zp(e, t, n) {
3330
3338
  copy: r
3331
3339
  };
3332
3340
  }
3333
- var em = () => ({
3341
+ var lm = () => ({
3334
3342
  application: { regions: [] },
3335
3343
  modules: []
3336
- }), Ti = (e) => e.navigation ?? em(), tm = (e, t) => ({
3344
+ }), Ti = (e) => e.navigation ?? lm(), cm = (e, t) => ({
3337
3345
  ...e,
3338
3346
  navigation: t
3339
3347
  });
3340
- function nm(e, t, n) {
3348
+ function dm(e, t, n) {
3341
3349
  return (t === void 0 ? e.application.regions : e.modules.find((o) => o.module === t)?.regions ?? []).find((o) => o.region === n)?.items ?? [];
3342
3350
  }
3343
- var om = (e) => e;
3344
- function im(e, t) {
3351
+ var um = (e) => e;
3352
+ function pm(e, t) {
3345
3353
  if (!t?.module) return;
3346
3354
  const n = e.modules.find((r) => r.id === t.module);
3347
3355
  if (!n) return t.module;
@@ -3355,13 +3363,13 @@ function im(e, t) {
3355
3363
  return [n.name, ...o].join(" › ");
3356
3364
  }
3357
3365
  function aa(e) {
3358
- const { region: t, module: n, navigation: o, structure: i, newId: r, slots: s, startingLabel: l, strings: c } = e, u = ur(i, o, n, t), d = nm(o, n, t), p = Ms(i, o, { slots: [...s] }), h = (x) => `${n ?? "application"}:${t}:${x}`, f = [], g = (x, S) => {
3366
+ const { region: t, module: n, navigation: o, structure: i, newId: r, slots: s, startingLabel: l, strings: c } = e, u = ur(i, o, n, t), d = dm(o, n, t), p = Ms(i, o, { slots: [...s] }), h = (x) => `${n ?? "application"}:${t}:${x}`, f = [], g = (x, S) => {
3359
3367
  const k = x.filter((y) => !y.readOnly);
3360
3368
  x.forEach((y) => {
3361
3369
  const N = Qt(d, y.id)?.target ?? (y.target ? {
3362
3370
  module: y.target.module,
3363
3371
  ...y.target.feature ? { feature: y.target.feature } : {}
3364
- } : void 0), A = y.readOnly ? -1 : k.indexOf(y), T = im(i, N), C = p.filter((_) => _.entry === h(y.id)).map((_) => ({
3372
+ } : void 0), A = y.readOnly ? -1 : k.indexOf(y), T = pm(i, N), C = p.filter((_) => _.entry === h(y.id)).map((_) => ({
3365
3373
  code: _.code,
3366
3374
  message: _.message
3367
3375
  }));
@@ -3424,7 +3432,7 @@ function aa(e) {
3424
3432
  region: {
3425
3433
  region: m,
3426
3434
  ...n !== void 0 ? { module: n } : {},
3427
- ...u.mode ? { mode: om(u.mode) } : {}
3435
+ ...u.mode ? { mode: um(u.mode) } : {}
3428
3436
  },
3429
3437
  add: (x) => x === $.addItem ? P() : { rejected: x },
3430
3438
  act: (x, S) => {
@@ -3434,15 +3442,15 @@ function aa(e) {
3434
3442
  case $.moveEarlier:
3435
3443
  case $.moveLater: {
3436
3444
  const k = S.index + (x === $.moveEarlier ? -1 : 1), y = Ct(d, S.id);
3437
- return !y || k < 0 || k >= y.length ? { rejected: "noWhere" } : v("Move", w(Xp(d, S.id, k)), { itemId: S.id });
3445
+ return !y || k < 0 || k >= y.length ? { rejected: "noWhere" } : v("Move", w(am(d, S.id, k)), { itemId: S.id });
3438
3446
  }
3439
3447
  case $.duplicate: {
3440
- const k = Zp(d, S.id, r);
3448
+ const k = sm(d, S.id, r);
3441
3449
  return k.copy ? v("Duplicate", w(k.items), { itemId: k.copy.id }) : { rejected: x };
3442
3450
  }
3443
3451
  case $.delete: {
3444
3452
  const k = Ct(d, S.id) ?? [], y = k.findIndex((A) => A.id === S.id), N = k[y + 1] ?? k[y - 1];
3445
- return v("Remove", w(Yp(d, S.id)), { itemId: N?.id ?? null });
3453
+ return v("Remove", w(rm(d, S.id)), { itemId: N?.id ?? null });
3446
3454
  }
3447
3455
  default:
3448
3456
  return { rejected: x };
@@ -3454,7 +3462,7 @@ function aa(e) {
3454
3462
  if (k) {
3455
3463
  if (x === $.target) return {
3456
3464
  property: Nn("target", "Navigate to", "navigationItemTarget", k.target),
3457
- plan: (y) => v("Link", w(Et(d, S.id, { target: rm(y) ? y : void 0 })), { itemId: S.id })
3465
+ plan: (y) => v("Link", w(Et(d, S.id, { target: mm(y) ? y : void 0 })), { itemId: S.id })
3458
3466
  };
3459
3467
  if (x === $.slot) return {
3460
3468
  property: Nn("slot", "Render into slot", "renderingSlot", k.slot ?? "content"),
@@ -3481,7 +3489,7 @@ function aa(e) {
3481
3489
  }]
3482
3490
  };
3483
3491
  }
3484
- var rm = (e) => typeof e == "object" && e !== null && typeof e.module == "string";
3492
+ var mm = (e) => typeof e == "object" && e !== null && typeof e.module == "string";
3485
3493
  function Nn(e, t, n, o) {
3486
3494
  return {
3487
3495
  descriptor: {
@@ -3498,7 +3506,7 @@ function Nn(e, t, n, o) {
3498
3506
  };
3499
3507
  }
3500
3508
  var Nt = () => globalThis.crypto.randomUUID(), Ii = (e) => typeof e == "string" ? e : "";
3501
- function am({ componentId: e, property: t, newId: n, startingLabel: o, startingDestination: i }) {
3509
+ function hm({ componentId: e, property: t, newId: n, startingLabel: o, startingDestination: i }) {
3502
3510
  const r = t.descriptor.path, s = t.items ?? [], l = s.filter((f) => f.editable), c = new Set(t.operations ?? []), u = {
3503
3511
  component: e,
3504
3512
  path: r
@@ -3643,9 +3651,9 @@ function la(e, t, n, o = {}, i = {}) {
3643
3651
  slots: i
3644
3652
  };
3645
3653
  }
3646
- var sm = (e, t) => e.descriptor.valueType === "number" && typeof t == "string" ? t.trim() === "" ? void 0 : Number(t) : t;
3654
+ var fm = (e, t) => e.descriptor.valueType === "number" && typeof t == "string" ? t.trim() === "" ? void 0 : Number(t) : t;
3647
3655
  function qn(e, t, n) {
3648
- const o = sm(t, n);
3656
+ const o = fm(t, n);
3649
3657
  return t.editTarget === vs.Instance ? o === void 0 ? {
3650
3658
  kind: Y.ResetInstanceValue,
3651
3659
  component: e,
@@ -3673,7 +3681,7 @@ function ca(e, t, n) {
3673
3681
  const { button: i, converted: r } = js(new Zt(e), o);
3674
3682
  return r && i.slice ? { slice: i.slice } : void 0;
3675
3683
  }
3676
- function lm(e, t) {
3684
+ function gm(e, t) {
3677
3685
  return [{
3678
3686
  kind: Y.SetProperty,
3679
3687
  nodeId: re(e),
@@ -3685,7 +3693,7 @@ function lm(e, t) {
3685
3693
  path: "target"
3686
3694
  }];
3687
3695
  }
3688
- function cm(e, t) {
3696
+ function vm(e, t) {
3689
3697
  const n = structuredClone(e);
3690
3698
  return Kn(n, t), n;
3691
3699
  }
@@ -3706,7 +3714,7 @@ var Vn = (e) => typeof e == "string" ? e : "", rn = { [$.addButton]: {
3706
3714
  isUnlinked: (e, t) => Vn(t.slice) === "" && Vn(t.target) === "" && t.destination === void 0,
3707
3715
  startingProperties: { kind: "Action" }
3708
3716
  } };
3709
- function dm({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i, startingLabel: r, structure: s }) {
3717
+ function bm({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i, startingLabel: r, structure: s }) {
3710
3718
  const l = rn[t];
3711
3719
  if (!l) return;
3712
3720
  const c = e.slots?.[l.slot] ?? [], u = c.map((h, f) => {
@@ -3769,7 +3777,7 @@ function dm({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i
3769
3777
  };
3770
3778
  }
3771
3779
  case $.duplicate:
3772
- return p(cm(g, i), f.index + 1, "Duplicate");
3780
+ return p(vm(g, i), f.index + 1, "Duplicate");
3773
3781
  case $.delete: {
3774
3782
  const m = c[f.index + 1] ?? c[f.index - 1];
3775
3783
  return {
@@ -3808,7 +3816,7 @@ function dm({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i
3808
3816
  readOnlyActions: () => []
3809
3817
  };
3810
3818
  }
3811
- function um(e) {
3819
+ function ym(e) {
3812
3820
  const { roots: t, catalog: n, selectedId: o, selectedItemId: i } = e;
3813
3821
  if (!o) return;
3814
3822
  const r = ze(t, o);
@@ -3833,14 +3841,14 @@ function xi(e, t, n, o, i) {
3833
3841
  let p;
3834
3842
  if (d.itemsPath !== void 0) {
3835
3843
  const f = s(t.id)?.properties.find((g) => g.descriptor.path === d.itemsPath);
3836
- p = f && am({
3844
+ p = f && hm({
3837
3845
  componentId: t.id,
3838
3846
  property: f,
3839
3847
  newId: c,
3840
3848
  startingLabel: u.item,
3841
3849
  ...e.startingDestination ? { startingDestination: e.startingDestination } : {}
3842
3850
  });
3843
- } else rn[n] ? p = dm({
3851
+ } else rn[n] ? p = bm({
3844
3852
  component: t,
3845
3853
  addActionId: n,
3846
3854
  ownershipOf: l,
@@ -3859,14 +3867,14 @@ function xi(e, t, n, o, i) {
3859
3867
  ...h ? { selected: h } : {}
3860
3868
  };
3861
3869
  }
3862
- function pm({ controller: e, environment: t, strings: n, startingLabels: o, startingDestination: i, otherSource: r }) {
3870
+ function wm({ controller: e, environment: t, strings: n, startingLabels: o, startingDestination: i, otherSource: r }) {
3863
3871
  const [s, l] = j(0), [c, u] = j(""), [d, p] = j("");
3864
3872
  ce(() => {
3865
3873
  if (d === "") return;
3866
3874
  const C = setTimeout(() => p(""), 4e3);
3867
3875
  return () => clearTimeout(C);
3868
3876
  }, [d]);
3869
- const { document: h, composition: f, context: g, selectedId: m, ownershipOf: v, selectedItemId: w, navigation: P, navigationModule: x, structure: S } = e, k = t.navigation?.slots ?? t.propertyEditors?.slots ?? mm, y = z((C) => {
3877
+ const { document: h, composition: f, context: g, selectedId: m, ownershipOf: v, selectedItemId: w, navigation: P, navigationModule: x, structure: S } = e, k = t.navigation?.slots ?? t.propertyEditors?.slots ?? km, y = z((C) => {
3870
3878
  const _ = an(C.componentName);
3871
3879
  return _ ? aa({
3872
3880
  region: _,
@@ -3894,7 +3902,7 @@ function pm({ controller: e, environment: t, strings: n, startingLabels: o, star
3894
3902
  n,
3895
3903
  r,
3896
3904
  w
3897
- ]), N = U(() => um({
3905
+ ]), N = U(() => ym({
3898
3906
  roots: f.roots,
3899
3907
  catalog: g.catalog,
3900
3908
  selectedId: m,
@@ -3978,7 +3986,7 @@ function pm({ controller: e, environment: t, strings: n, startingLabels: o, star
3978
3986
  }, [w, e])
3979
3987
  };
3980
3988
  }
3981
- var mm = ["content"];
3989
+ var km = ["content"];
3982
3990
  function an(e) {
3983
3991
  const t = e.slice(e.lastIndexOf(":") + 1).toLowerCase();
3984
3992
  return t === "topbar" ? Go.Topbar : t === "sidebar" ? Go.Sidebar : void 0;
@@ -3986,7 +3994,7 @@ function an(e) {
3986
3994
  var da = (e) => ({
3987
3995
  content: e.mainArea,
3988
3996
  aside: e.sidePanel
3989
- }), hm = [
3997
+ }), Sm = [
3990
3998
  De.Inherit,
3991
3999
  De.Extend,
3992
4000
  De.Override
@@ -4146,7 +4154,7 @@ var da = (e) => ({
4146
4154
  className: "studio-editor-mode-cards",
4147
4155
  role: "radiogroup",
4148
4156
  "aria-label": o.modeTitle(w, v),
4149
- children: hm.map((I) => /* @__PURE__ */ b("button", {
4157
+ children: Sm.map((I) => /* @__PURE__ */ b("button", {
4150
4158
  type: "button",
4151
4159
  role: "radio",
4152
4160
  "aria-checked": I === k,
@@ -4207,9 +4215,9 @@ var da = (e) => ({
4207
4215
  })
4208
4216
  ] })
4209
4217
  });
4210
- }, fm = (e) => e.slots?.items ?? [];
4218
+ }, Cm = (e) => e.slots?.items ?? [];
4211
4219
  function Di(e, t) {
4212
- const n = fm(t).flatMap((r) => {
4220
+ const n = Cm(t).flatMap((r) => {
4213
4221
  const { id: s, properties: l } = r, c = ho(s, l);
4214
4222
  return c ? [c] : [];
4215
4223
  });
@@ -4222,8 +4230,8 @@ function Di(e, t) {
4222
4230
  button: r.button
4223
4231
  }));
4224
4232
  }
4225
- var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e) => /(^|:)toolbar$/.test(String(e.componentName ?? "")), bm = ({ controller: e, strings: t, element: n }) => {
4226
- const o = (t.designMode ?? Oo).toolbar, { structure: i } = e, r = gm(n), s = vm(n), l = n.properties ?? {}, c = U(() => {
4233
+ var Nm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), Tm = (e) => /(^|:)toolbar$/.test(String(e.componentName ?? "")), Im = ({ controller: e, strings: t, element: n }) => {
4234
+ const o = (t.designMode ?? Oo).toolbar, { structure: i } = e, r = Nm(n), s = Tm(n), l = n.properties ?? {}, c = U(() => {
4227
4235
  if (!r || i.modules.length === 0) return;
4228
4236
  const g = ho(n.id, l);
4229
4237
  if (!g) return;
@@ -4281,7 +4289,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4281
4289
  children: [o.upgradeNote(p.slice), /* @__PURE__ */ a("button", {
4282
4290
  type: "button",
4283
4291
  "data-action": "upgrade",
4284
- onClick: () => e.applyAll(lm(n.id, p.slice), o.upgrade),
4292
+ onClick: () => e.applyAll(gm(n.id, p.slice), o.upgrade),
4285
4293
  children: o.upgrade
4286
4294
  })]
4287
4295
  }),
@@ -4296,7 +4304,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4296
4304
  label: t.properties.diagnostics
4297
4305
  })]
4298
4306
  });
4299
- }, ym = (e, t) => e.find((n) => n.component === t), wm = /* @__PURE__ */ new Set([xo]), km = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: i }) => {
4307
+ }, Pm = (e, t) => e.find((n) => n.component === t), xm = /* @__PURE__ */ new Set([xo]), Om = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: i }) => {
4300
4308
  const { inspection: r, selectedId: s, selection: l } = e, c = n.properties, u = U(() => So(t.availableSources), [t.availableSources]), d = U(() => tr(e.document, e.composition.roots, e.context, t.availableSources, t.queryCandidates), [
4301
4309
  e.document,
4302
4310
  e.composition.roots,
@@ -4321,7 +4329,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4321
4329
  className: "studio-editor-properties__header",
4322
4330
  children: /* @__PURE__ */ a("strong", { children: c.screenLabel })
4323
4331
  }),
4324
- /* @__PURE__ */ a(Ip, {
4332
+ /* @__PURE__ */ a(Mp, {
4325
4333
  location: t.location,
4326
4334
  strings: n
4327
4335
  }),
@@ -4331,12 +4339,12 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4331
4339
  strings: n,
4332
4340
  disabled: !1
4333
4341
  }),
4334
- /* @__PURE__ */ a(kp, {
4342
+ /* @__PURE__ */ a(Op, {
4335
4343
  controller: e,
4336
4344
  strings: n,
4337
4345
  disabled: !1
4338
4346
  }),
4339
- /* @__PURE__ */ a(Bu, {
4347
+ /* @__PURE__ */ a(Ku, {
4340
4348
  controller: e,
4341
4349
  slices: t.stateChangeSlices,
4342
4350
  strings: n,
@@ -4352,7 +4360,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4352
4360
  strings: n
4353
4361
  })
4354
4362
  });
4355
- const p = Ya(e.composition.roots, s), h = wu(r.properties, p, l.properties), { runtime: f } = t, g = ym(e.context.catalog.components, r.typeId), m = g ? f.packageDescriptorOf(g) : void 0, v = (D) => !!m && f.designTime.propertyEditor(m, D.descriptor).contribution !== void 0, w = t.propertyEditors?.registry ?? nn, P = [...r.diagnostics, ...e.diagnostics], x = Nu(h, r.typeId, (D) => wm.has(D.descriptor.path) || v(D)), S = Tu(x), k = {
4363
+ const p = Ya(e.composition.roots, s), h = xu(r.properties, p, l.properties), { runtime: f } = t, g = Pm(e.context.catalog.components, r.typeId), m = g ? f.packageDescriptorOf(g) : void 0, v = (D) => !!m && f.designTime.propertyEditor(m, D.descriptor).contribution !== void 0, w = t.propertyEditors?.registry ?? nn, P = [...r.diagnostics, ...e.diagnostics], x = Fu(h, r.typeId, (D) => xm.has(D.descriptor.path) || v(D)), S = Eu(x), k = {
4356
4364
  controller: e,
4357
4365
  environment: t,
4358
4366
  strings: n,
@@ -4385,7 +4393,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4385
4393
  environment: t,
4386
4394
  strings: n
4387
4395
  }),
4388
- l && /* @__PURE__ */ a(bm, {
4396
+ l && /* @__PURE__ */ a(Im, {
4389
4397
  controller: e,
4390
4398
  strings: n,
4391
4399
  element: l
@@ -4394,7 +4402,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4394
4402
  diagnostics: cs(P),
4395
4403
  label: c.diagnostics
4396
4404
  }),
4397
- /* @__PURE__ */ a(Tp, {
4405
+ /* @__PURE__ */ a(Ep, {
4398
4406
  inspection: r,
4399
4407
  controller: e,
4400
4408
  strings: n,
@@ -4408,14 +4416,14 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4408
4416
  authoringTemplate: i
4409
4417
  }),
4410
4418
  g && qe(l) && /* @__PURE__ */ b(le, { children: [
4411
- /* @__PURE__ */ a(Au, {
4419
+ /* @__PURE__ */ a(zu, {
4412
4420
  component: l,
4413
4421
  descriptor: g,
4414
4422
  controller: e,
4415
4423
  environment: t,
4416
4424
  strings: n
4417
4425
  }),
4418
- /* @__PURE__ */ a(Eu, {
4426
+ /* @__PURE__ */ a(Uu, {
4419
4427
  component: l,
4420
4428
  descriptor: g,
4421
4429
  controller: e,
@@ -4423,7 +4431,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4423
4431
  strings: n,
4424
4432
  disabled: o !== void 0 && o !== "local"
4425
4433
  }),
4426
- /* @__PURE__ */ a(Mu, {
4434
+ /* @__PURE__ */ a(Wu, {
4427
4435
  component: l,
4428
4436
  descriptor: g,
4429
4437
  properties: r.properties.filter((D) => !Kr(r.typeId, D.descriptor.path)),
@@ -4446,22 +4454,22 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4446
4454
  }), D.properties.map((I) => /* @__PURE__ */ a(To, {
4447
4455
  registry: w,
4448
4456
  property: I,
4449
- context: $p(y, k, I),
4457
+ context: Gp(y, k, I),
4450
4458
  componentId: s,
4451
4459
  onChange: e.setProperty,
4452
4460
  diagnostics: P
4453
4461
  }, `${s}:${I.descriptor.path}`))]
4454
4462
  }, D.name)),
4455
- N && /* @__PURE__ */ a(Ou, {
4463
+ N && /* @__PURE__ */ a($u, {
4456
4464
  action: na(L, t.stateChangeSlices.find((D) => D.id === L?.command)?.name ?? ""),
4457
4465
  slices: t.stateChangeSlices,
4458
4466
  sources: Vr(Object.keys(t.availableSources), d.componentOutputs, s),
4459
4467
  strings: n,
4460
4468
  disabled: o !== void 0 && o !== "local",
4461
4469
  suggestSource: (D) => D === "id" || D.endsWith("Id") ? "row.id" : void 0,
4462
- onChange: (D) => D && e.applyAll(Wp(s, D), n.properties.action.label)
4470
+ onChange: (D) => D && e.applyAll(Qp(s, D), n.properties.action.label)
4463
4471
  }),
4464
- T && /* @__PURE__ */ a(ap, {
4472
+ T && /* @__PURE__ */ a(hp, {
4465
4473
  elementId: s,
4466
4474
  command: typeof L?.command == "string" ? L.command : void 0,
4467
4475
  slices: t.stateChangeSlices,
@@ -4469,12 +4477,12 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4469
4477
  strings: n,
4470
4478
  disabled: _,
4471
4479
  onCommandChange: (D) => {
4472
- e.applyAll([Lu(s, D)], n.properties.commandForm.label).applied && D && !C.some((I) => I.forCommand === D.name) && e.setScreenForms([...C, zn(D)], n.properties.commandForm.createForm(D.name));
4480
+ e.applyAll([qu(s, D)], n.properties.commandForm.label).applied && D && !C.some((I) => I.forCommand === D.name) && e.setScreenForms([...C, zn(D)], n.properties.commandForm.createForm(D.name));
4473
4481
  },
4474
4482
  onFormChange: (D) => e.setScreenForms(C.map((I) => I.forCommand === D.forCommand ? D : I), n.properties.forms.label),
4475
4483
  onFormCreate: (D) => e.setScreenForms([...C, zn(D)], n.properties.commandForm.createForm(D.name))
4476
4484
  }),
4477
- A && /* @__PURE__ */ a(Kp, {
4485
+ A && /* @__PURE__ */ a(tm, {
4478
4486
  behaviors: l.behaviors,
4479
4487
  targets: ds(t, e.document),
4480
4488
  destinations: t.destinations,
@@ -4483,7 +4491,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4483
4491
  disabled: _,
4484
4492
  onChange: (D) => e.setElementBehaviors(s, D, n.properties.toolbarButton.label)
4485
4493
  }, s),
4486
- /* @__PURE__ */ a(Rp, {
4494
+ /* @__PURE__ */ a(Bp, {
4487
4495
  inspection: r,
4488
4496
  componentId: s,
4489
4497
  controller: e,
@@ -4518,7 +4526,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4518
4526
  tabs: [{
4519
4527
  id: Sn.Properties,
4520
4528
  label: e.propertiesTab,
4521
- content: /* @__PURE__ */ a(km, {
4529
+ content: /* @__PURE__ */ a(Om, {
4522
4530
  controller: t,
4523
4531
  environment: n,
4524
4532
  strings: e,
@@ -4536,7 +4544,7 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4536
4544
  return e.Row = "row", e.Column = "column", e.Grid = "grid", e.Wrap = "wrap", e.Freeform = "freeform", e.Grouping = "grouping", e;
4537
4545
  })({}), Ze = /* @__PURE__ */ (function(e) {
4538
4546
  return e.Panel = "Panel", e.StackPanel = "StackPanel", e.WrapPanel = "WrapPanel", e.Grid = "Grid", e.Canvas = "Canvas", e;
4539
- })({}), Sm = [
4547
+ })({}), Dm = [
4540
4548
  {
4541
4549
  item: H.Stack,
4542
4550
  type: "Stack",
@@ -4576,13 +4584,13 @@ var gm = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), vm = (e)
4576
4584
  panel: Ze.Canvas,
4577
4585
  arrangement: Q.Freeform
4578
4586
  }
4579
- ], Cm = /* @__PURE__ */ new Set([
4587
+ ], Rm = /* @__PURE__ */ new Set([
4580
4588
  "column",
4581
4589
  "screenShell",
4582
4590
  "shell"
4583
4591
  ]);
4584
- var Nm = (e) => e.slice(e.lastIndexOf(":") + 1), pa = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).trim(), Tm = (e) => e.split(".").map((t) => pa(t)).join(" "), Im = fs.Layout;
4585
- function Pm(e, t, n = {}) {
4592
+ var Fm = (e) => e.slice(e.lastIndexOf(":") + 1), pa = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).trim(), Em = (e) => e.split(".").map((t) => pa(t)).join(" "), Mm = fs.Layout;
4593
+ function Am(e, t, n = {}) {
4586
4594
  const o = t.map((r) => ({
4587
4595
  key: `layout:${r.item}`,
4588
4596
  label: r.label,
@@ -4590,15 +4598,15 @@ function Pm(e, t, n = {}) {
4590
4598
  component: r.item,
4591
4599
  displayName: r.label
4592
4600
  }),
4593
- category: Im,
4601
+ category: Mm,
4594
4602
  keywords: [],
4595
4603
  payload: {
4596
4604
  kind: "layout",
4597
4605
  item: r.item
4598
4606
  }
4599
4607
  })), i = e.flatMap((r) => {
4600
- const s = new Map((r.descriptors ?? []).map((l) => [Nm(l.component), l]));
4601
- return r.components.filter((l) => !Cm.has(l)).map((l) => {
4608
+ const s = new Map((r.descriptors ?? []).map((l) => [Fm(l.component), l]));
4609
+ return r.components.filter((l) => !Rm.has(l)).map((l) => {
4602
4610
  const c = s.get(l), u = c?.displayName ?? pa(l);
4603
4611
  return {
4604
4612
  key: `${r.package}:${l}`,
@@ -4611,7 +4619,7 @@ function Pm(e, t, n = {}) {
4611
4619
  category: c?.category?.trim() || "Other",
4612
4620
  keywords: c?.keywords ?? [],
4613
4621
  package: r.package,
4614
- packageTitle: n[r.package] ?? Tm(r.package),
4622
+ packageTitle: n[r.package] ?? Em(r.package),
4615
4623
  payload: {
4616
4624
  kind: "component",
4617
4625
  componentName: l,
@@ -4623,7 +4631,7 @@ function Pm(e, t, n = {}) {
4623
4631
  return [...o, ...i];
4624
4632
  }
4625
4633
  var ma = "frequent";
4626
- function xm({ entries: e, usage: t, query: n, groups: o, frequentTitle: i }) {
4634
+ function _m({ entries: e, usage: t, query: n, groups: o, frequentTitle: i }) {
4627
4635
  const r = n.trim().length > 0, s = (h) => ({
4628
4636
  entry: h,
4629
4637
  match: Bs({
@@ -4657,11 +4665,11 @@ function xm({ entries: e, usage: t, query: n, groups: o, frequentTitle: i }) {
4657
4665
  });
4658
4666
  }), d;
4659
4667
  }
4660
- var Om = (e) => e.filter((t) => t.expanded).flatMap((t) => t.rows.map((n) => ({
4668
+ var $m = (e) => e.filter((t) => t.expanded).flatMap((t) => t.rows.map((n) => ({
4661
4669
  group: t,
4662
4670
  row: n
4663
4671
  })));
4664
- function Dm(e, t) {
4672
+ function Lm(e, t) {
4665
4673
  const n = [];
4666
4674
  let o = 0;
4667
4675
  for (const [i, r] of [...t].sort((s, l) => s[0] - l[0]))
@@ -4683,7 +4691,7 @@ var Ri = "cratis.studio.componentUsage.v1", Fi = "cratis.studio.componentGroups.
4683
4691
  } catch {
4684
4692
  return;
4685
4693
  }
4686
- }, Rm = () => Oe(() => typeof window < "u" ? window.localStorage : void 0), Ei = (e) => {
4694
+ }, Bm = () => Oe(() => typeof window < "u" ? window.localStorage : void 0), Ei = (e) => {
4687
4695
  const t = Oe(() => JSON.parse(e ?? "null"));
4688
4696
  if (t === null || typeof t != "object" || Array.isArray(t)) return {};
4689
4697
  const n = {};
@@ -4692,11 +4700,11 @@ var Ri = "cratis.studio.componentUsage.v1", Fi = "cratis.studio.componentGroups.
4692
4700
  last: typeof i.last == "number" && Number.isFinite(i.last) ? i.last : 0
4693
4701
  });
4694
4702
  return n;
4695
- }, Fm = (e) => {
4703
+ }, jm = (e) => {
4696
4704
  const t = Oe(() => JSON.parse(e ?? "null"));
4697
4705
  return t === null || typeof t != "object" || Array.isArray(t) ? {} : Object.fromEntries(Object.entries(t).filter((n) => typeof n[1] == "boolean"));
4698
4706
  };
4699
- function Em(e = Rm(), t) {
4707
+ function Um(e = Bm(), t) {
4700
4708
  const n = t ? `${t}:${Ri}` : Ri, o = t ? `${t}:${Fi}` : Fi;
4701
4709
  let i, r;
4702
4710
  return {
@@ -4713,7 +4721,7 @@ function Em(e = Rm(), t) {
4713
4721
  const u = JSON.stringify(i);
4714
4722
  return e && Oe(() => e.setItem(n, u)), i;
4715
4723
  },
4716
- readGroups: () => r ??= Fm(e ? Oe(() => e.getItem(o)) : void 0),
4724
+ readGroups: () => r ??= jm(e ? Oe(() => e.getItem(o)) : void 0),
4717
4725
  writeGroups: (s) => {
4718
4726
  r = { ...s };
4719
4727
  const l = JSON.stringify(r);
@@ -4729,12 +4737,12 @@ function fa(e, t, n) {
4729
4737
  const o = document.createElement("div");
4730
4738
  o.className = "studio-drag-preview", n && o.append(n.cloneNode(!0)), o.append(Object.assign(document.createElement("span"), { textContent: t })), document.body.append(o), e.dataTransfer.setDragImage(o, 14, 14), setTimeout(() => o.remove(), 0);
4731
4739
  }
4732
- var Mm = (e, t, n) => {
4740
+ var Wm = (e, t, n) => {
4733
4741
  e.dataTransfer.setData(Mo, JSON.stringify(t)), e.dataTransfer.effectAllowed = "copyMove", n && fa(e, n, e.currentTarget instanceof Element ? e.currentTarget.querySelector("svg") : null);
4734
- }, Am = (e, t, n) => {
4742
+ }, zm = (e, t, n) => {
4735
4743
  e.dataTransfer.setData(ha, t), e.dataTransfer.effectAllowed = "move", fa(e, n);
4736
- }, _m = (e) => e.dataTransfer.getData("application/x-studio-element") || void 0, Jn = (e) => e.dataTransfer.types.includes(ha), At = (e) => Lm(e) || Jn(e);
4737
- function $m(e) {
4744
+ }, Hm = (e) => e.dataTransfer.getData("application/x-studio-element") || void 0, Jn = (e) => e.dataTransfer.types.includes(ha), At = (e) => qm(e) || Jn(e);
4745
+ function Gm(e) {
4738
4746
  try {
4739
4747
  const t = JSON.parse(e.dataTransfer.getData(Mo));
4740
4748
  return Eo(t) ? t : void 0;
@@ -4742,7 +4750,7 @@ function $m(e) {
4742
4750
  return;
4743
4751
  }
4744
4752
  }
4745
- var Lm = (e) => e.dataTransfer.types.includes(Mo), Bm = {
4753
+ var qm = (e) => e.dataTransfer.types.includes(Mo), Km = {
4746
4754
  heading: "Components",
4747
4755
  filterPlaceholder: "Filter components...",
4748
4756
  filterLabel: "Filter components",
@@ -4751,8 +4759,8 @@ var Lm = (e) => e.dataTransfer.types.includes(Mo), Bm = {
4751
4759
  nothingMatches: "No component matches.",
4752
4760
  viaKeyword: (e, t, n) => `...${e} matches "${t}" via keyword "${n}"`,
4753
4761
  addLabel: (e) => `Add ${e}`
4754
- }, jm = "★", Um = ({ entries: e, memory: t, strings: n = Bm, onAdd: o, usageVersion: i = 0 }) => {
4755
- const [r, s] = j(""), [l, c] = j(() => t.readGroups()), u = V(null), d = V(null), p = ms(), h = U(() => ({ ...t.readUsage() }), [t, i]), f = U(() => xm({
4762
+ }, Vm = "★", Jm = ({ entries: e, memory: t, strings: n = Km, onAdd: o, usageVersion: i = 0 }) => {
4763
+ const [r, s] = j(""), [l, c] = j(() => t.readGroups()), u = V(null), d = V(null), p = ms(), h = U(() => ({ ...t.readUsage() }), [t, i]), f = U(() => _m({
4756
4764
  entries: e,
4757
4765
  usage: h,
4758
4766
  query: r,
@@ -4788,10 +4796,10 @@ var Lm = (e) => e.dataTransfer.types.includes(Mo), Bm = {
4788
4796
  T.indexOf(N) <= 0 ? u.current?.focus() : w(N, -1);
4789
4797
  } else y.key === "Escape" && A && r !== "" && (y.stopPropagation(), s(""));
4790
4798
  }, x = (y, N) => {
4791
- Mm(N, y.payload, y.label), N.currentTarget.closest('[data-cratis-part="toolbar-folder-panel"]')?.setAttribute("data-dragging", "");
4799
+ Wm(N, y.payload, y.label), N.currentTarget.closest('[data-cratis-part="toolbar-folder-panel"]')?.setAttribute("data-dragging", "");
4792
4800
  }, S = (y) => {
4793
4801
  y.currentTarget.closest('[data-cratis-part="toolbar-folder-panel"]')?.removeAttribute("data-dragging");
4794
- }, k = Om(f);
4802
+ }, k = $m(f);
4795
4803
  return /* @__PURE__ */ b("div", {
4796
4804
  ref: d,
4797
4805
  className: "studio-component-picker",
@@ -4835,7 +4843,7 @@ var Lm = (e) => e.dataTransfer.types.includes(Mo), Bm = {
4835
4843
  "aria-hidden": "true",
4836
4844
  children: y.frequent ? /* @__PURE__ */ a("span", {
4837
4845
  className: "studio-component-picker__star",
4838
- children: jm
4846
+ children: Vm
4839
4847
  }) : y.expanded ? "▼" : "▶"
4840
4848
  }),
4841
4849
  /* @__PURE__ */ a("span", {
@@ -4871,7 +4879,7 @@ var Lm = (e) => e.dataTransfer.types.includes(Mo), Bm = {
4871
4879
  className: "studio-component-picker__label",
4872
4880
  children: [/* @__PURE__ */ a("span", {
4873
4881
  className: "studio-component-picker__name",
4874
- children: Dm(N.label, A.ranges).map((T, C) => T.marked ? /* @__PURE__ */ a("mark", { children: T.text }, C) : /* @__PURE__ */ a("span", { children: T.text }, C))
4882
+ children: Lm(N.label, A.ranges).map((T, C) => T.marked ? /* @__PURE__ */ a("mark", { children: T.text }, C) : /* @__PURE__ */ a("span", { children: T.text }, C))
4875
4883
  }), A.via === "keyword" && A.keyword && /* @__PURE__ */ a("span", {
4876
4884
  className: "studio-component-picker__hint",
4877
4885
  children: n.viaKeyword(N.badge, r.trim(), A.keyword)
@@ -4897,14 +4905,14 @@ var Lm = (e) => e.dataTransfer.types.includes(Mo), Bm = {
4897
4905
  })
4898
4906
  ]
4899
4907
  });
4900
- }, Wm = ({ entries: e, memory: t, icon: n, title: o, closeLabel: i, strings: r, usageVersion: s, onAdd: l }) => /* @__PURE__ */ a(ml, {
4908
+ }, Qm = ({ entries: e, memory: t, icon: n, title: o, closeLabel: i, strings: r, usageVersion: s, onAdd: l }) => /* @__PURE__ */ a(ml, {
4901
4909
  className: "studio-palette-folder studio-palette-folder--picker",
4902
4910
  icon: n,
4903
4911
  title: o,
4904
4912
  heading: o,
4905
4913
  closeLabel: i,
4906
4914
  presentation: "drawer",
4907
- children: /* @__PURE__ */ a(Um, {
4915
+ children: /* @__PURE__ */ a(Jm, {
4908
4916
  entries: e,
4909
4917
  memory: t,
4910
4918
  usageVersion: s,
@@ -4913,7 +4921,7 @@ var Lm = (e) => e.dataTransfer.types.includes(Mo), Bm = {
4913
4921
  })
4914
4922
  });
4915
4923
  function ga({ strings: e, layoutLabels: t, icons: n, paletteSources: o, onAdd: i, memory: r }) {
4916
- const s = U(() => r ?? Em(), [r]), [l, c] = j(0), u = U(() => Pm(o, Sm.map((p) => ({
4924
+ const s = U(() => r ?? Um(), [r]), [l, c] = j(0), u = U(() => Am(o, Dm.map((p) => ({
4917
4925
  item: p.item,
4918
4926
  label: t[p.item]
4919
4927
  })), e.packageTitles), [
@@ -4924,7 +4932,7 @@ function ga({ strings: e, layoutLabels: t, icons: n, paletteSources: o, onAdd: i
4924
4932
  s.recordAdded(p), c((h) => h + 1);
4925
4933
  }, [s]);
4926
4934
  return {
4927
- palette: /* @__PURE__ */ a(Wm, {
4935
+ palette: /* @__PURE__ */ a(Qm, {
4928
4936
  entries: u,
4929
4937
  memory: s,
4930
4938
  usageVersion: l,
@@ -4948,14 +4956,14 @@ var Mi = {
4948
4956
  value: 1
4949
4957
  };
4950
4958
  function Yt(e, t, n, o = [], i = {}) {
4951
- const r = zm(e, i);
4959
+ const r = Ym(e, i);
4952
4960
  return {
4953
4961
  ...sa(t, n),
4954
4962
  children: o,
4955
4963
  ...r
4956
4964
  };
4957
4965
  }
4958
- function zm(e, t) {
4966
+ function Ym(e, t) {
4959
4967
  switch (e) {
4960
4968
  case H.Stack:
4961
4969
  return {
@@ -4988,7 +4996,7 @@ function zm(e, t) {
4988
4996
  return {};
4989
4997
  }
4990
4998
  }
4991
- function Hm(e) {
4999
+ function Xm(e) {
4992
5000
  const t = e.indexOf(":");
4993
5001
  return t > 0 ? {
4994
5002
  package: e.slice(0, t),
@@ -4998,8 +5006,8 @@ function Hm(e) {
4998
5006
  name: e
4999
5007
  };
5000
5008
  }
5001
- function Gm(e, t, n) {
5002
- const { package: o, name: i } = Hm(e);
5009
+ function Zm(e, t, n) {
5010
+ const { package: o, name: i } = Xm(e);
5003
5011
  if (o !== void 0) return pr(t).includes(o) && n[o]?.includes(i) ? {
5004
5012
  package: o,
5005
5013
  name: i
@@ -5010,7 +5018,7 @@ function Gm(e, t, n) {
5010
5018
  name: r.name
5011
5019
  } : void 0;
5012
5020
  }
5013
- function qm(e, t, n) {
5021
+ function eh(e, t, n) {
5014
5022
  const o = new Set(pr(t)), i = (r) => {
5015
5023
  if (Array.isArray(r)) {
5016
5024
  const u = r.map(i);
@@ -5038,7 +5046,7 @@ function va(e, t) {
5038
5046
  const o = ta(n, e.authoringTemplate);
5039
5047
  return o.readable ? {
5040
5048
  opened: !0,
5041
- subject: { document: t ? qm(o.document, t.profile, t.packages) : o.document }
5049
+ subject: { document: t ? eh(o.document, t.profile, t.packages) : o.document }
5042
5050
  } : {
5043
5051
  opened: !1,
5044
5052
  problem: o.problem
@@ -5046,11 +5054,11 @@ function va(e, t) {
5046
5054
  }
5047
5055
  return {
5048
5056
  opened: !0,
5049
- subject: { document: Km(e) }
5057
+ subject: { document: th(e) }
5050
5058
  };
5051
5059
  }
5052
- function Km(e) {
5053
- return e.authoringTemplate !== void 0 ? tu(e.authoringTemplate, Yt(H.Stack, Xd, "Template")) : eu(Yt(H.Stack, Zd, "Screen"), e.screenTemplate);
5060
+ function th(e) {
5061
+ return e.authoringTemplate !== void 0 ? cu(e.authoringTemplate, Yt(H.Stack, au, "Template")) : lu(Yt(H.Stack, su, "Screen"), e.screenTemplate);
5054
5062
  }
5055
5063
  var ba = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
5056
5064
  className: "studio-screen-editor-palette-host",
@@ -5104,8 +5112,8 @@ var ba = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
5104
5112
  } catch {
5105
5113
  return;
5106
5114
  }
5107
- }, Vm = () => qt(() => typeof window < "u" ? window.localStorage : void 0);
5108
- function Jm(e = Vm()) {
5115
+ }, nh = () => qt(() => typeof window < "u" ? window.localStorage : void 0);
5116
+ function oh(e = nh()) {
5109
5117
  return {
5110
5118
  read: (t) => e ? _i(qt(() => e.getItem(`${Qn}:${t}`)) ?? null) : void 0,
5111
5119
  write: (t, n) => {
@@ -5148,22 +5156,22 @@ function ka(e) {
5148
5156
  var $i = {
5149
5157
  width: 900,
5150
5158
  height: 640
5151
- }, Qm = (e) => !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
5159
+ }, ih = (e) => !!e && Number.isFinite(e.width) && Number.isFinite(e.height) && e.width > 0 && e.height > 0;
5152
5160
  function Sa(e) {
5153
5161
  return _o(sn[Ke.Desktop], e);
5154
5162
  }
5155
- function Ym(e) {
5163
+ function rh(e) {
5156
5164
  return !!e && e.width === $i.width && e.height === $i.height;
5157
5165
  }
5158
- function Xm(e, t) {
5159
- const n = Ym(e.saved) ? void 0 : e.saved;
5160
- return Zm([
5166
+ function ah(e, t) {
5167
+ const n = rh(e.saved) ? void 0 : e.saved;
5168
+ return sh([
5161
5169
  e.remembered,
5162
5170
  n,
5163
5171
  e.lastUsed
5164
- ].find(Qm) ?? Sa(t), t);
5172
+ ].find(ih) ?? Sa(t), t);
5165
5173
  }
5166
- function Zm(e, t) {
5174
+ function sh(e, t) {
5167
5175
  return {
5168
5176
  width: Math.round(Math.min(e.width, t.width)),
5169
5177
  height: Math.round(Math.min(e.height, t.height))
@@ -5179,7 +5187,7 @@ var Ca = ({ environment: e, children: t }) => {
5179
5187
  loader: e.richText,
5180
5188
  children: n
5181
5189
  }) : n;
5182
- }, eh = ({ controls: e }) => /* @__PURE__ */ a("div", {
5190
+ }, lh = ({ controls: e }) => /* @__PURE__ */ a("div", {
5183
5191
  className: "studio-window-title-bar",
5184
5192
  role: "toolbar",
5185
5193
  children: /* @__PURE__ */ a("div", {
@@ -5187,18 +5195,18 @@ var Ca = ({ environment: e, children: t }) => {
5187
5195
  children: e
5188
5196
  })
5189
5197
  });
5190
- function th(e, t) {
5198
+ function ch(e, t) {
5191
5199
  return Object.values(Ke).find((n) => {
5192
5200
  const o = _o(sn[n], t);
5193
5201
  return o.width === e.width && o.height === e.height;
5194
5202
  });
5195
5203
  }
5196
- function nh(e) {
5204
+ function dh(e) {
5197
5205
  const t = ka(e);
5198
5206
  return Fs(t.width, t.height);
5199
5207
  }
5200
- var oh = ({ windowSize: e, available: t, strings: n, shell: o, onResize: i }) => {
5201
- const r = th(e, t), s = ka(e), l = nh(e), c = (u, d, p) => /* @__PURE__ */ a(xe, {
5208
+ var uh = ({ windowSize: e, available: t, strings: n, shell: o, onResize: i }) => {
5209
+ const r = ch(e, t), s = ka(e), l = dh(e), c = (u, d, p) => /* @__PURE__ */ a(xe, {
5202
5210
  icon: d,
5203
5211
  "aria-label": p,
5204
5212
  "aria-pressed": r === u,
@@ -5235,7 +5243,7 @@ var oh = ({ windowSize: e, available: t, strings: n, shell: o, onResize: i }) =>
5235
5243
  ]
5236
5244
  });
5237
5245
  };
5238
- function ih(e, t) {
5246
+ function ph(e, t) {
5239
5247
  const n = e.bundles.filter((o) => o.manifest.kind === dt.Blueprint).map((o) => ({
5240
5248
  manifest: o.manifest,
5241
5249
  layouts: o.layouts,
@@ -5281,16 +5289,16 @@ function Na(e, t, n) {
5281
5289
  options: {
5282
5290
  profile: e.compositionProfile,
5283
5291
  catalog: e.packages,
5284
- templateLibrary: ih(e, t),
5292
+ templateLibrary: ph(e, t),
5285
5293
  chrome: (o, i) => i === Js.FullPageShell ? {} : tl()
5286
5294
  }
5287
5295
  };
5288
5296
  }
5289
- function rh(e, t) {
5297
+ function mh(e, t) {
5290
5298
  const { application: n, options: o } = Na(e, t, fo($o, "text", { text: "" }));
5291
5299
  return br(n, n.screens[0], o);
5292
5300
  }
5293
- function ah(e, t) {
5301
+ function hh(e, t) {
5294
5302
  const { application: n, options: o } = Na(e, t, fo($o, "text", { text: "" })), i = n.screens[0];
5295
5303
  return {
5296
5304
  element: Zs(n, i, o).element,
@@ -5300,26 +5308,26 @@ function ah(e, t) {
5300
5308
  function Lo(e) {
5301
5309
  return e.screen ?? e.slice ?? e.dialog ?? "";
5302
5310
  }
5303
- function sh(e) {
5311
+ function fh(e) {
5304
5312
  return e.kind !== ar.External && e.dialog === void 0 && Lo(e) !== "";
5305
5313
  }
5306
- function lh(e, t) {
5314
+ function gh(e, t) {
5307
5315
  return fo("studio-shell-peek", "text", { text: t.replace("{name}", Lo(e)) });
5308
5316
  }
5309
5317
  var _e = /* @__PURE__ */ (function(e) {
5310
5318
  return e.Screen = "screen", e.ScreenTemplate = "screenTemplate", e.DialogTemplate = "dialogTemplate", e.TheShell = "theShell", e;
5311
5319
  })({});
5312
- function ch(e, t, n) {
5320
+ function vh(e, t, n) {
5313
5321
  return t === void 0 ? _e.Screen : (e.dialogTemplates ?? []).some((o) => o.name === t) ? _e.DialogTemplate : t === n ? _e.TheShell : _e.ScreenTemplate;
5314
5322
  }
5315
- var dh = (e) => e === _e.Screen || e === _e.ScreenTemplate, uh = (e) => e !== _e.TheShell, ph = "studio.screenEditor.showApplicationShell.v1", Yn = (e) => {
5323
+ var bh = (e) => e === _e.Screen || e === _e.ScreenTemplate, yh = (e) => e !== _e.TheShell, wh = "studio.screenEditor.showApplicationShell.v1", Yn = (e) => {
5316
5324
  try {
5317
5325
  return e();
5318
5326
  } catch {
5319
5327
  return;
5320
5328
  }
5321
- }, mh = () => Yn(() => typeof window < "u" ? window.localStorage : void 0), Li = (e) => `${ph}:${e === _e.DialogTemplate ? "dialog" : "screen"}`;
5322
- function hh(e = mh()) {
5329
+ }, kh = () => Yn(() => typeof window < "u" ? window.localStorage : void 0), Li = (e) => `${wh}:${e === _e.DialogTemplate ? "dialog" : "screen"}`;
5330
+ function Sh(e = kh()) {
5323
5331
  return {
5324
5332
  read: (t) => {
5325
5333
  const n = e ? Yn(() => e.getItem(Li(t))) : void 0;
@@ -5330,9 +5338,9 @@ function hh(e = mh()) {
5330
5338
  }
5331
5339
  };
5332
5340
  }
5333
- var fh = () => {
5341
+ var Ch = () => {
5334
5342
  };
5335
- function gh(e, t, n, o = vh) {
5343
+ function Nh(e, t, n, o = Th) {
5336
5344
  const { layouts: i, screenTemplates: r, dialogTemplates: s } = e, l = U(() => ({
5337
5345
  layouts: i,
5338
5346
  screenTemplates: r,
@@ -5341,11 +5349,11 @@ function gh(e, t, n, o = vh) {
5341
5349
  i,
5342
5350
  r,
5343
5351
  s
5344
- ]), c = U(() => rh(t, l).name, [t, l]), u = ch(e, n, c), [d, p] = j(() => o.read(u)), [h, f] = j();
5352
+ ]), c = U(() => mh(t, l).name, [t, l]), u = vh(e, n, c), [d, p] = j(() => o.read(u)), [h, f] = j();
5345
5353
  ce(() => {
5346
5354
  p(o.read(u)), f(void 0);
5347
5355
  }, [o, u]);
5348
- const g = uh(u), m = g && (d ?? dh(u)), v = U(() => m ? ah(t, l) : void 0, [
5356
+ const g = yh(u), m = g && (d ?? bh(u)), v = U(() => m ? hh(t, l) : void 0, [
5349
5357
  m,
5350
5358
  t,
5351
5359
  l
@@ -5357,7 +5365,7 @@ function gh(e, t, n, o = vh) {
5357
5365
  u,
5358
5366
  o
5359
5367
  ]), P = z((S) => {
5360
- sh(S) && f(S);
5368
+ fh(S) && f(S);
5361
5369
  }, []), x = z(() => f(void 0), []);
5362
5370
  return {
5363
5371
  available: g,
@@ -5366,11 +5374,11 @@ function gh(e, t, n, o = vh) {
5366
5374
  frame: v,
5367
5375
  peeking: m ? h : void 0,
5368
5376
  peekingName: h ? Lo(h) : "",
5369
- navigate: m ? P : fh,
5377
+ navigate: m ? P : Ch,
5370
5378
  back: x
5371
5379
  };
5372
5380
  }
5373
- var vh = hh();
5381
+ var Th = Sh();
5374
5382
  function Bo(e) {
5375
5383
  return e === void 0 ? "" : e.isDark ? "cratis-theme cratis-dark" : "cratis-theme cratis-light";
5376
5384
  }
@@ -5409,7 +5417,7 @@ var Xn = ({ elementId: e, tone: t, text: n }) => /* @__PURE__ */ a("div", {
5409
5417
  if (typeof o == "string" && o.length > 0) return o;
5410
5418
  }
5411
5419
  };
5412
- function bh({ kind: e, tag: t, element: n, slots: o, message: i }) {
5420
+ function Ih({ kind: e, tag: t, element: n, slots: o, message: i }) {
5413
5421
  const r = o.content ?? [], s = et(n, "header", "title", "summary") ?? n.name ?? n.componentName, l = et(n, "message", "detail", "text", "label"), c = () => {
5414
5422
  switch (e) {
5415
5423
  case se.Toast:
@@ -5487,7 +5495,7 @@ function bh({ kind: e, tag: t, element: n, slots: o, message: i }) {
5487
5495
  }), c()]
5488
5496
  });
5489
5497
  }
5490
- var Ia = us(void 0), yh = () => {
5498
+ var Ia = us(void 0), Ph = () => {
5491
5499
  const e = ps(Ia);
5492
5500
  return e ? /* @__PURE__ */ b("span", {
5493
5501
  className: "studio-design-logo",
@@ -5504,7 +5512,7 @@ var Ia = us(void 0), yh = () => {
5504
5512
  }, Tn = (e) => `data:image/svg+xml;utf8,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="320" height="200"><rect width="320" height="200" fill="hsl(${e} 40% 40%)"/></svg>`)}`, Bi = [{
5505
5513
  label: "Documents",
5506
5514
  children: ["Work", "Home"]
5507
- }], wh = [
5515
+ }], xh = [
5508
5516
  "New",
5509
5517
  "Open",
5510
5518
  { separator: !0 },
@@ -5758,7 +5766,7 @@ var Ia = us(void 0), yh = () => {
5758
5766
  text: "Tooltip",
5759
5767
  label: "Hover me"
5760
5768
  },
5761
- menu: { items: wh },
5769
+ menu: { items: xh },
5762
5770
  menubar: { items: [{
5763
5771
  label: "File",
5764
5772
  items: ["New", "Open"]
@@ -6000,15 +6008,15 @@ function xa(e, t, n) {
6000
6008
  for (const [s, l] of Object.entries(i)) l !== void 0 && (r[s] = l);
6001
6009
  return r;
6002
6010
  }
6003
- function kh(e, t, n) {
6011
+ function Oh(e, t, n) {
6004
6012
  const o = Uo(e, t);
6005
6013
  return o ? Object.keys(o).filter((i) => n?.[i] === void 0) : [];
6006
6014
  }
6007
- var Sh = (e) => {
6015
+ var Dh = (e) => {
6008
6016
  const { width: t, height: n } = e.getBoundingClientRect();
6009
6017
  return t > 0 && n > 0;
6010
- }, Zn = (e) => Array.from(e.children).filter((t) => !t.hasAttribute("data-studio-placeholder-for")).some((t) => Sh(t) || getComputedStyle(t).display === "contents" && Zn(t)), Ch = 150;
6011
- function Nh(e, t) {
6018
+ }, Zn = (e) => Array.from(e.children).filter((t) => !t.hasAttribute("data-studio-placeholder-for")).some((t) => Dh(t) || getComputedStyle(t).display === "contents" && Zn(t)), Rh = 150;
6019
+ function Fh(e, t) {
6012
6020
  const [n, o] = j(!0), i = V(!0);
6013
6021
  return Se(() => {
6014
6022
  const r = e.current;
@@ -6018,7 +6026,7 @@ function Nh(e, t) {
6018
6026
  };
6019
6027
  let l;
6020
6028
  const c = () => {
6021
- clearTimeout(l), Zn(r) ? s(!0) : l = setTimeout(() => s(Zn(r)), Ch);
6029
+ clearTimeout(l), Zn(r) ? s(!0) : l = setTimeout(() => s(Zn(r)), Rh);
6022
6030
  }, u = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(c), d = () => {
6023
6031
  u?.disconnect(), Array.from(r.children).forEach((h) => u?.observe(h));
6024
6032
  }, p = new MutationObserver(() => {
@@ -6029,16 +6037,16 @@ function Nh(e, t) {
6029
6037
  };
6030
6038
  }, [e, t]), n;
6031
6039
  }
6032
- var Th = ({ element: e }) => e.name || e.componentName, Ih = (e, t) => {
6040
+ var Eh = ({ element: e }) => e.name || e.componentName, Mh = (e, t) => {
6033
6041
  const n = V(e), o = V(0);
6034
6042
  return n.current !== e && (n.current = e, t && (o.current += 1)), o.current;
6035
6043
  };
6036
- function Ph(e, t, n, o) {
6044
+ function Ah(e, t, n, o) {
6037
6045
  const i = (r) => {
6038
6046
  const s = V(null), l = U(() => ({
6039
6047
  ...r.element,
6040
6048
  properties: xa(e, r.element.componentName, r.element.properties)
6041
- }), [r.element]), c = U(() => kh(e, r.element.componentName, r.element.properties), [r.element]), u = Pa.has(bt(r.element.componentName)), d = e.startsWith(`${vr}:`), p = d ? void 0 : Ta[bt(r.element.componentName)], h = d && bt(r.element.componentName) === "topbar", [f, g] = j(), m = Nh(s, r.element), v = Th(r), w = Ih(r.element, f !== void 0);
6049
+ }), [r.element]), c = U(() => Oh(e, r.element.componentName, r.element.properties), [r.element]), u = Pa.has(bt(r.element.componentName)), d = e.startsWith(`${vr}:`), p = d ? void 0 : Ta[bt(r.element.componentName)], h = d && bt(r.element.componentName) === "topbar", [f, g] = j(), m = Fh(s, r.element), v = Eh(r), w = Mh(r.element, f !== void 0);
6042
6050
  return /* @__PURE__ */ b("span", {
6043
6051
  ref: s,
6044
6052
  "data-studio-element": r.element.id,
@@ -6052,7 +6060,7 @@ function Ph(e, t, n, o) {
6052
6060
  tone: Kt.Failed,
6053
6061
  text: n.failedToDraw(v, f ?? "")
6054
6062
  }),
6055
- children: p ? /* @__PURE__ */ a(bh, {
6063
+ children: p ? /* @__PURE__ */ a(Ih, {
6056
6064
  kind: p,
6057
6065
  tag: n.overlay(v),
6058
6066
  element: l,
@@ -6060,7 +6068,7 @@ function Ph(e, t, n, o) {
6060
6068
  message: o
6061
6069
  }) : h ? /* @__PURE__ */ b("div", {
6062
6070
  className: "studio-design-topbar",
6063
- children: [/* @__PURE__ */ a(yh, {}), wt(t, {
6071
+ children: [/* @__PURE__ */ a(Ph, {}), wt(t, {
6064
6072
  ...r,
6065
6073
  element: l
6066
6074
  })]
@@ -6077,14 +6085,14 @@ function Ph(e, t, n, o) {
6077
6085
  };
6078
6086
  return i.displayName = `DesignTime(${t.displayName ?? t.name ?? "Component"})`, i;
6079
6087
  }
6080
- function xh(e, t) {
6081
- const n = Object.fromEntries(Object.entries(e).map(([i, r]) => [i, Ph(i, r, t, e["PrimeReact:message"])])), o = {};
6088
+ function _h(e, t) {
6089
+ const n = Object.fromEntries(Object.entries(e).map(([i, r]) => [i, Ah(i, r, t, e["PrimeReact:message"])])), o = {};
6082
6090
  return new Proxy(n, { get: (i, r) => {
6083
6091
  if (typeof r == "string")
6084
- return i[r] ?? (o[r] ??= Oh(t));
6092
+ return i[r] ?? (o[r] ??= $h(t));
6085
6093
  } });
6086
6094
  }
6087
- var Oh = (e) => ({ element: t }) => wt("span", {
6095
+ var $h = (e) => ({ element: t }) => wt("span", {
6088
6096
  "data-studio-element": t.id,
6089
6097
  style: { display: "contents" }
6090
6098
  }, wt(Xn, {
@@ -6093,7 +6101,7 @@ var Oh = (e) => ({ element: t }) => wt("span", {
6093
6101
  text: e.unavailable(t.name || t.componentName)
6094
6102
  })), Te = /* @__PURE__ */ (function(e) {
6095
6103
  return e.Container = "container", e.Between = "between", e;
6096
- })({}), Dh = ({ feedback: e, deniedText: t }) => {
6104
+ })({}), Lh = ({ feedback: e, deniedText: t }) => {
6097
6105
  if (e.denied || !e.drop) return /* @__PURE__ */ a("div", {
6098
6106
  className: "studio-screen-surface__denied",
6099
6107
  "data-studio-drop-state": "denied",
@@ -6110,10 +6118,10 @@ var Oh = (e) => ({ element: t }) => wt("span", {
6110
6118
  "data-empty": n.region.isEmptyContainer,
6111
6119
  style: n.rect
6112
6120
  })] });
6113
- }, Rh = (e) => e.width > 0 && e.height > 0;
6121
+ }, Bh = (e) => e.width > 0 && e.height > 0;
6114
6122
  function Oa(e) {
6115
6123
  const t = e.getBoundingClientRect();
6116
- return Rh(t) ? [t] : Array.from(e.children).flatMap(Oa);
6124
+ return Bh(t) ? [t] : Array.from(e.children).flatMap(Oa);
6117
6125
  }
6118
6126
  function Le(e, t, n) {
6119
6127
  const o = CSS.escape(t), i = [...Array.from(e.querySelectorAll(`[data-studio-element="${o}"]`)), ...Array.from(e.querySelectorAll(`[data-scene-id="${o}"]`))];
@@ -6133,7 +6141,7 @@ function Da(e, t) {
6133
6141
  height: s - i
6134
6142
  };
6135
6143
  }
6136
- var Ra = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, Fh = (e, t) => e.length === t.length && e.every((n, o) => n.region.id === t[o].region.id && Ra(n.rect, t[o].rect)), Fa = Ra, Eh = ({ surface: e, markers: t }) => {
6144
+ var Ra = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, jh = (e, t) => e.length === t.length && e.every((n, o) => n.region.id === t[o].region.id && Ra(n.rect, t[o].rect)), Fa = Ra, Uh = ({ surface: e, markers: t }) => {
6137
6145
  const [n, o] = j([]);
6138
6146
  return Se(() => {
6139
6147
  const i = e.current;
@@ -6145,7 +6153,7 @@ var Ra = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top
6145
6153
  rect: c
6146
6154
  }] : [];
6147
6155
  });
6148
- o((l) => Mh(l, s) ? l : s);
6156
+ o((l) => Wh(l, s) ? l : s);
6149
6157
  }), /* @__PURE__ */ a(le, { children: n.map((i) => /* @__PURE__ */ a("div", {
6150
6158
  className: "studio-screen-surface__binding-source",
6151
6159
  "data-binding-source": i.componentId,
@@ -6156,29 +6164,29 @@ var Ra = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top
6156
6164
  })
6157
6165
  }, `${i.componentId}:${i.label}`)) });
6158
6166
  };
6159
- function Mh(e, t) {
6167
+ function Wh(e, t) {
6160
6168
  return e.length === t.length && e.every((n, o) => {
6161
6169
  const i = t[o];
6162
6170
  return n.componentId === i.componentId && n.label === i.label && Fa(n.rect, i.rect);
6163
6171
  });
6164
6172
  }
6165
- function Ah(e, t) {
6173
+ function zh(e, t) {
6166
6174
  return e ? Object.entries(e.inputs).flatMap(([n, o]) => {
6167
- const i = Ru(o);
6175
+ const i = Bu(o);
6168
6176
  return i ? [{
6169
6177
  componentId: i,
6170
6178
  label: `${n} ← ${t.find((r) => r.path === o)?.label ?? o}`
6171
6179
  }] : [];
6172
6180
  }) : [];
6173
6181
  }
6174
- function _h(e, t) {
6182
+ function Hh(e, t) {
6175
6183
  const { selectedId: n, document: o, composition: i, context: r } = e;
6176
6184
  return U(() => {
6177
6185
  if (!n) return [];
6178
6186
  const s = ze(i.roots, n), l = na(s?.properties);
6179
6187
  if (!l) return [];
6180
6188
  const c = tr(o, i.roots, r, t.availableSources, t.queryCandidates);
6181
- return Ah(l, Vr(c.dataContextPaths, c.componentOutputs, n));
6189
+ return zh(l, Vr(c.dataContextPaths, c.componentOutputs, n));
6182
6190
  }, [
6183
6191
  n,
6184
6192
  o,
@@ -6188,7 +6196,7 @@ function _h(e, t) {
6188
6196
  t.queryCandidates
6189
6197
  ]);
6190
6198
  }
6191
- function $h(e, t, n, o, i) {
6199
+ function Gh(e, t, n, o, i) {
6192
6200
  const r = Ne(e, n, t);
6193
6201
  if (r)
6194
6202
  return {
@@ -6199,17 +6207,17 @@ function $h(e, t, n, o, i) {
6199
6207
  }
6200
6208
  var Ge = /* @__PURE__ */ (function(e) {
6201
6209
  return e.Horizontal = "horizontal", e.Vertical = "vertical", e.None = "none", e;
6202
- })({}), $t = ({ width: e, height: t }) => e * t, Lh = (e, t, n) => t >= e.left && t <= e.left + e.width && n >= e.top && n <= e.top + e.height, Bh = (e, t, n, o) => {
6210
+ })({}), $t = ({ width: e, height: t }) => e * t, qh = (e, t, n) => t >= e.left && t <= e.left + e.width && n >= e.top && n <= e.top + e.height, Kh = (e, t, n, o) => {
6203
6211
  const i = Math.min(o, e.width / 4), r = Math.min(o, e.height / 4);
6204
6212
  return t - e.left < i || e.left + e.width - t < i || n - e.top < r || e.top + e.height - n < r;
6205
6213
  }, ji = ({ region: e, rect: t }, n, o) => e.axis === Ge.Vertical ? Math.abs(n - (t.left + t.width / 2)) : Math.abs(o - (t.top + t.height / 2));
6206
- function jh(e, t, n, o = 6) {
6214
+ function Vh(e, t, n, o = 6) {
6207
6215
  const i = e.filter((u) => u.region.kind === Te.Container);
6208
6216
  if (i.length === 0) return;
6209
6217
  const r = i.map((u, d) => ({
6210
6218
  placed: u,
6211
6219
  order: d
6212
- })).filter(({ placed: u }) => Lh(u.rect, t, n)).sort((u, d) => $t(u.placed.rect) - $t(d.placed.rect) || d.order - u.order).map(({ placed: u }) => u), s = r[0], l = s && r.length > 1 && Bh(s.rect, t, n, o) ? r[1] : s ?? [...i].sort((u, d) => $t(d.rect) - $t(u.rect))[0], c = e.filter((u) => u.region.kind === Te.Between && u.region.containerId === l.region.containerId);
6220
+ })).filter(({ placed: u }) => qh(u.rect, t, n)).sort((u, d) => $t(u.placed.rect) - $t(d.placed.rect) || d.order - u.order).map(({ placed: u }) => u), s = r[0], l = s && r.length > 1 && Kh(s.rect, t, n, o) ? r[1] : s ?? [...i].sort((u, d) => $t(d.rect) - $t(u.rect))[0], c = e.filter((u) => u.region.kind === Te.Between && u.region.containerId === l.region.containerId);
6213
6221
  return l.region.isEmptyContainer || c.length === 0 ? {
6214
6222
  target: l,
6215
6223
  container: l.rect
@@ -6218,8 +6226,8 @@ function jh(e, t, n, o = 6) {
6218
6226
  container: l.rect
6219
6227
  };
6220
6228
  }
6221
- var Uh = (e, t) => e?.top === t?.top && e?.left === t?.left && e?.width === t?.width && e?.height === t?.height, Wh = (e, t) => !!e && e.denied === t.denied && e.drop?.target.region.id === t.drop?.target.region.id && Uh(e.drop?.target.rect, t.drop?.target.rect);
6222
- function zh(e, t, n) {
6229
+ var Jh = (e, t) => e?.top === t?.top && e?.left === t?.left && e?.width === t?.width && e?.height === t?.height, Qh = (e, t) => !!e && e.denied === t.denied && e.drop?.target.region.id === t.drop?.target.region.id && Jh(e.drop?.target.rect, t.drop?.target.rect);
6230
+ function Yh(e, t, n) {
6223
6231
  const [o, i] = j(), r = V(void 0);
6224
6232
  r.current = o;
6225
6233
  const [s, l] = j(), c = V(0), u = V(void 0), d = z(() => {
@@ -6239,7 +6247,7 @@ function zh(e, t, n) {
6239
6247
  const y = u.current, { region: N } = k.target;
6240
6248
  if (!y || !N.containerId) return;
6241
6249
  const A = N.kind === Te.Container ? g(N.containerId) : N.index;
6242
- return $h(n.composition.roots, n.adapter, y, N.containerId, A);
6250
+ return Gh(n.composition.roots, n.adapter, y, N.containerId, A);
6243
6251
  }, g = (k) => {
6244
6252
  const y = [...n.composition.roots];
6245
6253
  for (; y.length > 0; ) {
@@ -6249,7 +6257,7 @@ function zh(e, t, n) {
6249
6257
  }
6250
6258
  return 0;
6251
6259
  }, m = (k) => {
6252
- const y = e.current.getBoundingClientRect(), N = jh(t(), k.clientX - y.left, k.clientY - y.top), A = k.target.closest("[data-scene-id], [data-studio-element]"), T = A?.dataset.sceneId ?? A?.dataset.studioElement, C = !!T && n.ownershipOf(T) !== ie.Local;
6260
+ const y = e.current.getBoundingClientRect(), N = Vh(t(), k.clientX - y.left, k.clientY - y.top), A = k.target.closest("[data-scene-id], [data-studio-element]"), T = A?.dataset.sceneId ?? A?.dataset.studioElement, C = !!T && n.ownershipOf(T) !== ie.Local;
6253
6261
  if (!N || C) return { denied: !0 };
6254
6262
  if (Jn(k)) {
6255
6263
  const _ = f(N), L = _ ? n.validateMove(_) : oe.NodeNotFound;
@@ -6278,14 +6286,14 @@ function zh(e, t, n) {
6278
6286
  onDragOver: (k) => {
6279
6287
  if (!At(k) || (k.preventDefault(), p.current)) return;
6280
6288
  const y = m(k);
6281
- k.dataTransfer.dropEffect = y.denied ? "none" : Jn(k) ? "move" : "copy", i((N) => Wh(N, y) ? N : y);
6289
+ k.dataTransfer.dropEffect = y.denied ? "none" : Jn(k) ? "move" : "copy", i((N) => Qh(N, y) ? N : y);
6282
6290
  },
6283
6291
  onDragLeave: (k) => {
6284
6292
  At(k) && (c.current = Math.max(0, c.current - 1), c.current === 0 && i(void 0));
6285
6293
  },
6286
6294
  onDrop: (k) => {
6287
6295
  if (!At(k)) return;
6288
- const y = _m(k), N = $m(k), { drop: A, denied: T } = m(k), C = A && y ? f(A) : void 0, _ = p.current;
6296
+ const y = Hm(k), N = Gm(k), { drop: A, denied: T } = m(k), C = A && y ? f(A) : void 0, _ = p.current;
6289
6297
  if (k.preventDefault(), d(), p.current = !1, _ || T || !A) return;
6290
6298
  if (y) {
6291
6299
  C && n.move(C, v(k, A));
@@ -6299,7 +6307,7 @@ function zh(e, t, n) {
6299
6307
  };
6300
6308
  }
6301
6309
  var nt = 3;
6302
- function Hh(e, t, n) {
6310
+ function Xh(e, t, n) {
6303
6311
  const o = e.containerId === null ? t : n(e.containerId);
6304
6312
  if (!o) return;
6305
6313
  if (e.kind === Te.Container) return o;
@@ -6320,7 +6328,7 @@ function Hh(e, t, n) {
6320
6328
  height: o.height
6321
6329
  };
6322
6330
  }
6323
- function Gh(e, t, n) {
6331
+ function Zh(e, t, n) {
6324
6332
  const [o, i] = j([]), [r, s] = j(), l = V([]), c = z(() => {
6325
6333
  const d = e.current;
6326
6334
  if (!d) return [];
@@ -6331,7 +6339,7 @@ function Gh(e, t, n) {
6331
6339
  height: p.height
6332
6340
  };
6333
6341
  return t.flatMap((g) => {
6334
- const m = Hh(g, f, h);
6342
+ const m = Xh(g, f, h);
6335
6343
  return m ? [{
6336
6344
  region: g,
6337
6345
  rect: m
@@ -6341,7 +6349,7 @@ function Gh(e, t, n) {
6341
6349
  const d = e.current;
6342
6350
  if (!d) return;
6343
6351
  const p = c();
6344
- l.current = p, i((f) => Fh(f, p) ? f : p);
6352
+ l.current = p, i((f) => jh(f, p) ? f : p);
6345
6353
  const h = n ? Le(d, n, d.getBoundingClientRect()) : void 0;
6346
6354
  s((f) => Fa(f, h) ? f : h);
6347
6355
  }, [
@@ -6380,7 +6388,7 @@ function Gh(e, t, n) {
6380
6388
  var We = /* @__PURE__ */ (function(e) {
6381
6389
  return e.NotShell = "notShell", e.Navigate = "navigate", e.Ignore = "ignore", e;
6382
6390
  })({});
6383
- function qh(e, t) {
6391
+ function ef(e, t) {
6384
6392
  if (!t) return We.NotShell;
6385
6393
  const n = e;
6386
6394
  return !n || typeof n.closest != "function" || n.closest('[data-scene-id="composition"], [data-studio-element="composition"]') ? We.NotShell : n.closest("[data-scene-nav-item], [data-target-screen]") ? We.Navigate : We.Ignore;
@@ -6392,8 +6400,8 @@ var Ui = [
6392
6400
  "mouseup",
6393
6401
  "click",
6394
6402
  "dblclick"
6395
- ], Kh = "[data-scene-id], [data-studio-element], [data-studio-placeholder-for]";
6396
- function Vh(e, t, n = 0) {
6403
+ ], tf = "[data-scene-id], [data-studio-element], [data-studio-placeholder-for]";
6404
+ function nf(e, t, n = 0) {
6397
6405
  const o = tn(t);
6398
6406
  return {
6399
6407
  select: e === "pointerdown" && n === 0 || e === "click",
@@ -6401,16 +6409,16 @@ function Vh(e, t, n = 0) {
6401
6409
  cancelDefault: !o && e === "click"
6402
6410
  };
6403
6411
  }
6404
- function Jh(e) {
6405
- const t = e, n = t && typeof t.closest == "function" ? t.closest(Kh) : null;
6412
+ function of(e) {
6413
+ const t = e, n = t && typeof t.closest == "function" ? t.closest(tf) : null;
6406
6414
  return n?.dataset.sceneId ?? n?.dataset.studioElement ?? n?.dataset.studioPlaceholderFor;
6407
6415
  }
6408
- var Qh = "[data-scene-item], [data-scene-nav-item]";
6409
- function Yh(e) {
6410
- const t = e, n = t && typeof t.closest == "function" ? t.closest(Qh) : null;
6416
+ var rf = "[data-scene-item], [data-scene-nav-item]";
6417
+ function af(e) {
6418
+ const t = e, n = t && typeof t.closest == "function" ? t.closest(rf) : null;
6411
6419
  return n?.dataset.sceneItem ?? n?.dataset.sceneNavItem;
6412
6420
  }
6413
- function Xh(e, t, n = !1) {
6421
+ function sf(e, t, n = !1) {
6414
6422
  const o = V(t);
6415
6423
  o.current = t;
6416
6424
  const i = V(n);
@@ -6420,14 +6428,14 @@ function Xh(e, t, n = !1) {
6420
6428
  const s = (l) => {
6421
6429
  const c = l.target;
6422
6430
  if (c?.closest?.(".studio-screen-surface__chrome")) return;
6423
- const u = qh(c, i.current);
6431
+ const u = ef(c, i.current);
6424
6432
  if (u === We.Navigate) return;
6425
6433
  if (u === We.Ignore) {
6426
6434
  l.type === "click" && l.preventDefault(), l.stopPropagation();
6427
6435
  return;
6428
6436
  }
6429
- const d = Vh(l.type, c, l.button);
6430
- d.select && (tn(c) || r.focus({ preventScroll: !0 }), o.current(Jh(c), Yh(c))), d.cancelDefault && l.preventDefault(), d.swallow && l.stopPropagation();
6437
+ const d = nf(l.type, c, l.button);
6438
+ d.select && (tn(c) || r.focus({ preventScroll: !0 }), o.current(of(c), af(c))), d.cancelDefault && l.preventDefault(), d.swallow && l.stopPropagation();
6431
6439
  };
6432
6440
  for (const l of Ui) r.addEventListener(l, s, !0);
6433
6441
  return () => {
@@ -6435,7 +6443,7 @@ function Xh(e, t, n = !1) {
6435
6443
  };
6436
6444
  }, [e]);
6437
6445
  }
6438
- var Wi = 'button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])', zi = 440, Zh = ({ registry: e, property: t, context: n, componentId: o, anchor: i, opener: r, bounds: s, title: l, strings: c, onChange: u, onClose: d }) => {
6446
+ var Wi = 'button:not(:disabled), [href], input:not(:disabled), select:not(:disabled), textarea:not(:disabled), [tabindex]:not([tabindex="-1"])', zi = 440, lf = ({ registry: e, property: t, context: n, componentId: o, anchor: i, opener: r, bounds: s, title: l, strings: c, onChange: u, onClose: d }) => {
6439
6447
  const p = V(null);
6440
6448
  ce(() => ((p.current?.querySelector(Wi) ?? p.current)?.focus({ preventScroll: !0 }), () => {
6441
6449
  r.isConnected && r.focus({ preventScroll: !0 });
@@ -6484,7 +6492,7 @@ var Wi = 'button:not(:disabled), [href], input:not(:disabled), select:not(:disab
6484
6492
  })
6485
6493
  });
6486
6494
  };
6487
- function ef({ anchor: e, bounds: t, size: n, prefer: o, gap: i = 6 }) {
6495
+ function cf({ anchor: e, bounds: t, size: n, prefer: o, gap: i = 6 }) {
6488
6496
  const r = e.top - i - n.height, s = e.top + e.height + i, l = r >= t.top, c = s + n.height <= t.top + t.height, u = o === "above" ? l || !c ? "above" : "below" : c || !l ? "below" : "above", d = u === "above" ? r : s, p = Math.max(t.top, Math.min(d, t.top + t.height - n.height));
6489
6497
  return {
6490
6498
  left: Math.max(t.left, Math.min(e.left, t.left + t.width - n.width)),
@@ -6497,23 +6505,23 @@ var Hi = [
6497
6505
  $.slot,
6498
6506
  $.slice,
6499
6507
  $.emphasis
6500
- ], tf = [
6508
+ ], df = [
6501
6509
  $.moveEarlier,
6502
6510
  $.moveLater,
6503
6511
  $.addSubItem,
6504
6512
  $.duplicate,
6505
6513
  $.delete
6506
- ], nf = {
6514
+ ], uf = {
6507
6515
  [$.target]: /* @__PURE__ */ a(fc, { "aria-hidden": "true" }),
6508
6516
  [$.slot]: /* @__PURE__ */ a(gc, { "aria-hidden": "true" }),
6509
6517
  [$.slice]: /* @__PURE__ */ a(yc, { "aria-hidden": "true" })
6510
- }, of = {
6518
+ }, pf = {
6511
6519
  [$.moveEarlier]: /* @__PURE__ */ a(uc, { "aria-hidden": "true" }),
6512
6520
  [$.moveLater]: /* @__PURE__ */ a(pc, { "aria-hidden": "true" }),
6513
6521
  [$.addSubItem]: /* @__PURE__ */ a(hc, { "aria-hidden": "true" }),
6514
6522
  [$.duplicate]: /* @__PURE__ */ a(mc, { "aria-hidden": "true" }),
6515
6523
  [$.delete]: /* @__PURE__ */ a(bc, { "aria-hidden": "true" })
6516
- }, rf = ({ subject: e, item: t, anchor: n, bounds: o, strings: i, renameToken: r, chipLabel: s, onRename: l, onAction: c, onChoice: u, readOnlyActions: d, onReadOnlyAction: p, onLeave: h }) => {
6524
+ }, mf = ({ subject: e, item: t, anchor: n, bounds: o, strings: i, renameToken: r, chipLabel: s, onRename: l, onAction: c, onChoice: u, readOnlyActions: d, onReadOnlyAction: p, onLeave: h }) => {
6517
6525
  const f = V(null), g = V(null), [m, v] = j({
6518
6526
  width: 380,
6519
6527
  height: 100
@@ -6529,7 +6537,7 @@ var Hi = [
6529
6537
  height: R.height
6530
6538
  });
6531
6539
  });
6532
- const C = e.source.kind === "elements" ? "above" : "below", _ = ef({
6540
+ const C = e.source.kind === "elements" ? "above" : "below", _ = cf({
6533
6541
  anchor: n,
6534
6542
  bounds: o,
6535
6543
  size: m,
@@ -6594,7 +6602,7 @@ var Hi = [
6594
6602
  "data-roving": R,
6595
6603
  tabIndex: x === R ? 0 : -1
6596
6604
  };
6597
- }, ue = k.filter((R) => Hi.includes(R.id) && Ft(R, t).visible), Ie = tf.flatMap((R) => k.filter((ee) => ee.id === R)).filter((R) => Ft(R, t).visible);
6605
+ }, ue = k.filter((R) => Hi.includes(R.id) && Ft(R, t).visible), Ie = df.flatMap((R) => k.filter((ee) => ee.id === R)).filter((R) => Ft(R, t).visible);
6598
6606
  return /* @__PURE__ */ b("div", {
6599
6607
  ...ne,
6600
6608
  children: [
@@ -6625,7 +6633,7 @@ var Hi = [
6625
6633
  "aria-haspopup": "dialog",
6626
6634
  ...me(),
6627
6635
  onClick: (ee) => u(R.id, ee.currentTarget),
6628
- children: [nf[R.id], /* @__PURE__ */ a("span", { children: s(R.id, t) })]
6636
+ children: [uf[R.id], /* @__PURE__ */ a("span", { children: s(R.id, t) })]
6629
6637
  }, R.id))
6630
6638
  }),
6631
6639
  ue.length > 0 && Ie.length > 0 && /* @__PURE__ */ a("span", {
@@ -6645,20 +6653,20 @@ var Hi = [
6645
6653
  disabled: !ee.enabled,
6646
6654
  ...me(),
6647
6655
  onClick: () => c(R.id),
6648
- children: of[R.id]
6656
+ children: pf[R.id]
6649
6657
  }, R.id);
6650
6658
  })
6651
6659
  })
6652
6660
  ]
6653
6661
  });
6654
- }, af = (e) => {
6662
+ }, hf = (e) => {
6655
6663
  const t = CSS.escape(e);
6656
6664
  return [
6657
6665
  `[data-scene-nav-item="${t}"] > [data-scene-nav-link]`,
6658
6666
  `[data-scene-nav-item="${t}"]`,
6659
6667
  `[data-scene-item="${t}"]`
6660
6668
  ];
6661
- }, Pn = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, sf = (e, t) => Pn(e.surface, t.surface) && Pn(e.component, t.component) && Object.keys(t.items).length === Object.keys(e.items).length && Object.entries(t.items).every(([n, o]) => Pn(e.items[n], o));
6669
+ }, Pn = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, ff = (e, t) => Pn(e.surface, t.surface) && Pn(e.component, t.component) && Object.keys(t.items).length === Object.keys(e.items).length && Object.entries(t.items).every(([n, o]) => Pn(e.items[n], o));
6662
6670
  function eo(e, t, n) {
6663
6671
  const [o, i] = j(), r = z(() => {
6664
6672
  const s = e.current, l = s ? t(s, s.getBoundingClientRect()) : void 0;
@@ -6698,12 +6706,12 @@ function eo(e, t, n) {
6698
6706
  };
6699
6707
  }, [e, r]), o;
6700
6708
  }
6701
- function lf(e, t) {
6709
+ function gf(e, t) {
6702
6710
  return eo(e, z((n, o) => {
6703
6711
  if (!t) return;
6704
6712
  const i = Le(n, t.componentId, o), r = n.querySelector(`[data-studio-element="${CSS.escape(t.componentId)}"]`) ?? n.querySelector(`[data-scene-id="${CSS.escape(t.componentId)}"]`), s = {};
6705
6713
  for (const l of t.source.items) {
6706
- const c = Le(n, l.id, o) ?? (r ? af(l.id).map((u) => r.querySelector(u)).flatMap((u) => u ? [Da(u, o)] : []).find((u) => u !== void 0) : void 0);
6714
+ const c = Le(n, l.id, o) ?? (r ? hf(l.id).map((u) => r.querySelector(u)).flatMap((u) => u ? [Da(u, o)] : []).find((u) => u !== void 0) : void 0);
6707
6715
  c && (s[l.id] = c);
6708
6716
  }
6709
6717
  return {
@@ -6716,10 +6724,10 @@ function lf(e, t) {
6716
6724
  component: i,
6717
6725
  items: s
6718
6726
  };
6719
- }, [t]), sf);
6727
+ }, [t]), ff);
6720
6728
  }
6721
- var xn = 34, cf = ({ surface: e, state: t, controller: n, environment: o, editorStrings: i, strings: r }) => {
6722
- const { subject: s } = t, l = lf(e, s), [c, u] = j(), d = o.propertyEditors?.registry ?? nn, p = U(() => So(o.availableSources), [o.availableSources]), h = z((I) => {
6729
+ var xn = 34, vf = ({ surface: e, state: t, controller: n, environment: o, editorStrings: i, strings: r }) => {
6730
+ const { subject: s } = t, l = gf(e, s), [c, u] = j(), d = o.propertyEditors?.registry ?? nn, p = U(() => So(o.availableSources), [o.availableSources]), h = z((I) => {
6723
6731
  if (typeof I != "string" || I === "") return;
6724
6732
  const F = o.propertyEditors?.slices?.find((q) => q.id === I) ?? o.stateChangeSlices.find((q) => q.id === I), M = I.split(".");
6725
6733
  return F?.name ?? M[M.length - 1];
@@ -6786,7 +6794,7 @@ var xn = 34, cf = ({ surface: e, state: t, controller: n, environment: o, editor
6786
6794
  onClick: () => t.add(P.id),
6787
6795
  children: /* @__PURE__ */ a(vc, { "aria-hidden": "true" })
6788
6796
  }),
6789
- v && D && /* @__PURE__ */ a(rf, {
6797
+ v && D && /* @__PURE__ */ a(mf, {
6790
6798
  subject: s,
6791
6799
  item: v,
6792
6800
  anchor: D,
@@ -6805,12 +6813,12 @@ var xn = 34, cf = ({ surface: e, state: t, controller: n, environment: o, editor
6805
6813
  onReadOnlyAction: (I) => t.perform(I.plan()),
6806
6814
  onLeave: () => e.current?.focus({ preventScroll: !0 })
6807
6815
  }, v.id),
6808
- T && c && D && /* @__PURE__ */ a(Zh, {
6816
+ T && c && D && /* @__PURE__ */ a(lf, {
6809
6817
  registry: d,
6810
6818
  property: T.property,
6811
6819
  context: _(),
6812
6820
  componentId: v.id,
6813
- anchor: df(e, c.opener),
6821
+ anchor: bf(e, c.opener),
6814
6822
  opener: c.opener,
6815
6823
  bounds: l.surface,
6816
6824
  title: s.mode.itemToolbar.find((I) => I.id === c.actionId)?.title ?? c.actionId,
@@ -6841,7 +6849,7 @@ var xn = 34, cf = ({ surface: e, state: t, controller: n, environment: o, editor
6841
6849
  })
6842
6850
  ] });
6843
6851
  };
6844
- function df(e, t) {
6852
+ function bf(e, t) {
6845
6853
  const n = e.current?.getBoundingClientRect(), o = t.getBoundingClientRect();
6846
6854
  return {
6847
6855
  left: o.left - (n?.left ?? 0),
@@ -6861,14 +6869,14 @@ function Ea(e, t) {
6861
6869
  }] : [], ...Ea(Xt(n), t)];
6862
6870
  });
6863
6871
  }
6864
- var uf = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, qi = "content", pf = (e, t) => e.length === t.length && e.every((n, o) => n.id === t[o].id && n.rect.left === t[o].rect.left && n.rect.top === t[o].rect.top && n.rect.width === t[o].rect.width && n.rect.height === t[o].rect.height), mf = ({ surface: e, controller: t, strings: n }) => {
6865
- const o = eo(e, z((f, g) => Le(f, "composition", g), []), uf), { composition: i, context: r, selectedId: s, navigation: l, navigationModule: c, structure: u } = t, d = U(() => Ea(i.roots, r.catalog), [i.roots, r.catalog]), p = z((f, g) => d.flatMap((m) => {
6872
+ var yf = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, qi = "content", wf = (e, t) => e.length === t.length && e.every((n, o) => n.id === t[o].id && n.rect.left === t[o].rect.left && n.rect.top === t[o].rect.top && n.rect.width === t[o].rect.width && n.rect.height === t[o].rect.height), kf = ({ surface: e, controller: t, strings: n }) => {
6873
+ const o = eo(e, z((f, g) => Le(f, "composition", g), []), yf), { composition: i, context: r, selectedId: s, navigation: l, navigationModule: c, structure: u } = t, d = U(() => Ea(i.roots, r.catalog), [i.roots, r.catalog]), p = z((f, g) => d.flatMap((m) => {
6866
6874
  const v = Le(f, m.id, g);
6867
6875
  return v ? [{
6868
6876
  ...m,
6869
6877
  rect: v
6870
6878
  }] : [];
6871
- }), [d]), h = eo(e, p, pf);
6879
+ }), [d]), h = eo(e, p, wf);
6872
6880
  return /* @__PURE__ */ b(le, { children: [o && /* @__PURE__ */ a("div", {
6873
6881
  className: "studio-design-slot",
6874
6882
  "data-slot": qi,
@@ -6922,9 +6930,9 @@ var uf = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
6922
6930
  })
6923
6931
  }, f);
6924
6932
  })] });
6925
- }, hf = sl(), Lt = () => {
6933
+ }, Sf = sl(), Lt = () => {
6926
6934
  throw new Error("The screen is being designed; it does not navigate.");
6927
- }, ff = ({ structure: e, navigation: t, module: n, logoLockedReason: o, onNavigate: i, peeking: r, children: s }) => {
6935
+ }, Cf = ({ structure: e, navigation: t, module: n, logoLockedReason: o, onNavigate: i, peeking: r, children: s }) => {
6928
6936
  const l = U(() => new Zt(e), [e]), c = U(() => ({
6929
6937
  structure: l,
6930
6938
  navigation: t
@@ -6958,7 +6966,7 @@ var uf = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
6958
6966
  children: /* @__PURE__ */ a(il, {
6959
6967
  model: c,
6960
6968
  children: /* @__PURE__ */ a(al, {
6961
- invoker: hf,
6969
+ invoker: Sf,
6962
6970
  warnEmptySlices: !0,
6963
6971
  children: s
6964
6972
  })
@@ -6968,11 +6976,11 @@ var uf = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
6968
6976
  value: p,
6969
6977
  children: g
6970
6978
  }) : g;
6971
- }, gf = 'button, a[href], [role="button"], [role="radio"], [role="option"], [role="menuitem"]', vf = (e) => {
6979
+ }, Nf = 'button, a[href], [role="button"], [role="radio"], [role="option"], [role="menuitem"]', Tf = (e) => {
6972
6980
  const t = e;
6973
- return !!t && typeof t.closest == "function" && t.closest(gf) !== null;
6981
+ return !!t && typeof t.closest == "function" && t.closest(Nf) !== null;
6974
6982
  };
6975
- function bf(e, t, n) {
6983
+ function If(e, t, n) {
6976
6984
  const { subject: o } = t;
6977
6985
  if (!o) return !1;
6978
6986
  const i = tn(e.target), r = () => (e.preventDefault(), e.stopPropagation(), !0);
@@ -6980,7 +6988,7 @@ function bf(e, t, n) {
6980
6988
  return t.deselect(), r();
6981
6989
  const s = o.selected;
6982
6990
  if (!s || i || s.readOnly) return !1;
6983
- if (e.key === "Enter" && !e.altKey && !e.ctrlKey && !e.metaKey) return !vf(e.target) && n() ? r() : !1;
6991
+ if (e.key === "Enter" && !e.altKey && !e.ctrlKey && !e.metaKey) return !Tf(e.target) && n() ? r() : !1;
6984
6992
  if (e.altKey && !e.ctrlKey && !e.metaKey) {
6985
6993
  const l = e.key === "ArrowUp" || e.key === "ArrowLeft", c = e.key === "ArrowDown" || e.key === "ArrowRight";
6986
6994
  if (l || c)
@@ -7002,20 +7010,20 @@ function Ma(e, t, n) {
7002
7010
  ...l ? { slots: l } : {}
7003
7011
  } : e;
7004
7012
  }
7005
- var yf = () => {
7006
- }, wf = {
7013
+ var Pf = () => {
7014
+ }, xf = {
7007
7015
  button: "Button",
7008
7016
  item: "New item"
7009
- }, kf = ({ controller: e, environment: t, resolveBinding: n = yf, configuration: o, strings: i, editorStrings: r, viewportHeight: s, shell: l }) => {
7010
- const c = V(null), { composition: u, dropRegions: d, selectedId: p } = e, { selectionRect: h, measureNow: f } = Gh(c, d, p), { feedback: g, draggedId: m, startMoving: v, endMoving: w, handlers: P } = zh(c, f, e), [x, S] = j(), k = _h(e, t), { document: y, context: N } = e, A = U(() => o ?? (y.instanceContributions.length > 0 ? mr(mo(y, N.scope), y.instanceContributions, N.catalog) : void 0), [
7017
+ }, Of = ({ controller: e, environment: t, resolveBinding: n = Pf, configuration: o, strings: i, editorStrings: r, viewportHeight: s, shell: l }) => {
7018
+ const c = V(null), { composition: u, dropRegions: d, selectedId: p } = e, { selectionRect: h, measureNow: f } = Zh(c, d, p), { feedback: g, draggedId: m, startMoving: v, endMoving: w, handlers: P } = Yh(c, f, e), [x, S] = j(), k = Hh(e, t), { document: y, context: N } = e, A = U(() => o ?? (y.instanceContributions.length > 0 ? mr(mo(y, N.scope), y.instanceContributions, N.catalog) : void 0), [
7011
7019
  o,
7012
7020
  y,
7013
7021
  N
7014
- ]), T = r?.designMode ?? Oo, C = t.destinations[0], _ = U(() => C ? { screen: C.id } : void 0, [C]), L = pm({
7022
+ ]), T = r?.designMode ?? Oo, C = t.destinations[0], _ = U(() => C ? { screen: C.id } : void 0, [C]), L = wm({
7015
7023
  controller: e,
7016
7024
  environment: t,
7017
7025
  strings: T,
7018
- startingLabels: wf,
7026
+ startingLabels: xf,
7019
7027
  ..._ ? { startingDestination: _ } : {}
7020
7028
  });
7021
7029
  Se(() => {
@@ -7029,12 +7037,12 @@ var yf = () => {
7029
7037
  J.preventDefault(), l.back();
7030
7038
  return;
7031
7039
  }
7032
- bf(J, L, () => {
7040
+ If(J, L, () => {
7033
7041
  const ae = c.current?.querySelector(".studio-design-toolbar__title");
7034
7042
  return ae?.focus({ preventScroll: !0 }), !!ae;
7035
7043
  }) || !ko(J) || !e.selectedId || !e.canRemove(e.selectedId) || (J.preventDefault(), e.remove(e.selectedId));
7036
7044
  }, I = !!e.selectedId && e.ownershipOf(e.selectedId) === ie.Local && e.canRemove(e.selectedId), F = e.selection && (e.selection.name || e.selection.componentName) || "";
7037
- Xh(c, (J, ae) => {
7045
+ sf(c, (J, ae) => {
7038
7046
  e.select(J), L.pointItem(J, ae);
7039
7047
  }, l?.frame !== void 0);
7040
7048
  const { setMeasurer: M } = e;
@@ -7062,17 +7070,17 @@ var yf = () => {
7062
7070
  t.runtime.packages
7063
7071
  ]), ne = l?.peeking, ye = r?.shellPeeking(l?.peekingName ?? "") ?? "", me = U(() => {
7064
7072
  const J = l?.frame;
7065
- return J ? Ma(J.element, $o, ne ? lh(ne, ye) : q) : q;
7073
+ return J ? Ma(J.element, $o, ne ? gh(ne, ye) : q) : q;
7066
7074
  }, [
7067
7075
  l?.frame,
7068
7076
  q,
7069
7077
  ne,
7070
7078
  ye
7071
- ]), ue = U(() => xh(t.runtime.registry, i), [t.runtime.registry, i]), Ie = U(() => jo(t.runtime), [t.runtime]), R = U(() => /* @__PURE__ */ a(yr, {
7079
+ ]), ue = U(() => _h(t.runtime.registry, i), [t.runtime.registry, i]), Ie = U(() => jo(t.runtime), [t.runtime]), R = U(() => /* @__PURE__ */ a(yr, {
7072
7080
  registry: t.runtime.iconAdapters,
7073
7081
  children: /* @__PURE__ */ a(fr, {
7074
7082
  storage: null,
7075
- children: /* @__PURE__ */ a(ff, {
7083
+ children: /* @__PURE__ */ a(Cf, {
7076
7084
  structure: e.structure,
7077
7085
  navigation: e.navigation,
7078
7086
  module: e.navigationModule,
@@ -7133,25 +7141,25 @@ var yf = () => {
7133
7141
  "aria-hidden": "true",
7134
7142
  title: i.moveHandle(F),
7135
7143
  onDragStart: (J) => {
7136
- v(e.selectedId), Am(J, e.selectedId, F);
7144
+ v(e.selectedId), zm(J, e.selectedId, F);
7137
7145
  },
7138
7146
  onDragEnd: w,
7139
7147
  children: /* @__PURE__ */ a(Al, { "aria-hidden": "true" })
7140
7148
  }),
7141
- g && /* @__PURE__ */ a(Dh, {
7149
+ g && /* @__PURE__ */ a(Lh, {
7142
7150
  feedback: g,
7143
7151
  deniedText: i.dropDenied
7144
7152
  }),
7145
- /* @__PURE__ */ a(Eh, {
7153
+ /* @__PURE__ */ a(Uh, {
7146
7154
  surface: c,
7147
7155
  markers: k
7148
7156
  }),
7149
- /* @__PURE__ */ a(mf, {
7157
+ /* @__PURE__ */ a(kf, {
7150
7158
  surface: c,
7151
7159
  controller: e,
7152
7160
  strings: T
7153
7161
  }),
7154
- r && /* @__PURE__ */ a(cf, {
7162
+ r && /* @__PURE__ */ a(vf, {
7155
7163
  surface: c,
7156
7164
  state: L,
7157
7165
  controller: e,
@@ -7170,14 +7178,14 @@ var yf = () => {
7170
7178
  })
7171
7179
  });
7172
7180
  }, Ki = 40, Aa = ({ controller: e, environment: t, strings: n, window: o, authoringTemplate: i, deviceFrame: r = !1, saveFailure: s, onSave: l, isSaving: c = !1, onPreview: u }) => {
7173
- const d = gh(e.document, t.runtime, i), p = !!e.selectedId && e.canRemove(e.selectedId), h = /* @__PURE__ */ b(le, { children: [
7181
+ const d = Nh(e.document, t.runtime, i), p = !!e.selectedId && e.canRemove(e.selectedId), h = /* @__PURE__ */ b(le, { children: [
7174
7182
  /* @__PURE__ */ a("span", {
7175
7183
  className: "studio-screen-editor-window__state",
7176
7184
  role: "status",
7177
7185
  "data-dirty": e.isDirty ? "" : void 0,
7178
7186
  children: e.isDirty ? n.unsavedChanges : n.allChangesSaved
7179
7187
  }),
7180
- /* @__PURE__ */ a(oh, {
7188
+ /* @__PURE__ */ a(uh, {
7181
7189
  windowSize: o.size,
7182
7190
  available: o.available,
7183
7191
  strings: n,
@@ -7247,7 +7255,7 @@ var yf = () => {
7247
7255
  role: "group",
7248
7256
  "aria-label": n.windowLabel,
7249
7257
  children: [
7250
- /* @__PURE__ */ a(eh, { controls: h }),
7258
+ /* @__PURE__ */ a(lh, { controls: h }),
7251
7259
  s && /* @__PURE__ */ b("p", {
7252
7260
  className: "studio-screen-editor-window__notice",
7253
7261
  role: "alert",
@@ -7274,7 +7282,7 @@ var yf = () => {
7274
7282
  onClick: d.back,
7275
7283
  children: n.shellPeekBack
7276
7284
  })]
7277
- }), /* @__PURE__ */ a(kf, {
7285
+ }), /* @__PURE__ */ a(Of, {
7278
7286
  controller: e,
7279
7287
  environment: t,
7280
7288
  resolveBinding: () => {
@@ -7289,7 +7297,7 @@ var yf = () => {
7289
7297
  ]
7290
7298
  });
7291
7299
  };
7292
- function Sf(e, t, n) {
7300
+ function Df(e, t, n) {
7293
7301
  const o = e.screens.find((l) => l.name === be);
7294
7302
  if (!o || o.screenTemplate === t?.name) return e;
7295
7303
  const i = o.screenTemplate, r = e.screens.map((l) => {
@@ -7300,14 +7308,14 @@ function Sf(e, t, n) {
7300
7308
  screenTemplate: t.name
7301
7309
  } : u;
7302
7310
  });
7303
- let s = e.screenTemplates.filter((l) => !Cf(l, i, r, n));
7311
+ let s = e.screenTemplates.filter((l) => !Rf(l, i, r, n));
7304
7312
  return t && !s.some((l) => l.name === t.name) && (s = [...s, globalThis.structuredClone(t)]), {
7305
7313
  ...e,
7306
7314
  screens: r,
7307
7315
  screenTemplates: s
7308
7316
  };
7309
7317
  }
7310
- function Cf(e, t, n, o) {
7318
+ function Rf(e, t, n, o) {
7311
7319
  if (e.name !== t || n.some((r) => r.screenTemplate === t)) return !1;
7312
7320
  const i = o.find((r) => r.name === t);
7313
7321
  return i !== void 0 && JSON.stringify(i) === JSON.stringify(e);
@@ -7343,14 +7351,14 @@ function La(e) {
7343
7351
  top: o
7344
7352
  } : void 0;
7345
7353
  }
7346
- function Nf(e) {
7354
+ function Ff(e) {
7347
7355
  const { [Je]: t, [Qe]: n, ...o } = e.properties ?? {};
7348
7356
  return {
7349
7357
  ...e,
7350
7358
  properties: o
7351
7359
  };
7352
7360
  }
7353
- function Tf(e) {
7361
+ function Ef(e) {
7354
7362
  if (e.targetParentId !== null)
7355
7363
  return {
7356
7364
  kind: Y.MoveNode,
@@ -7367,7 +7375,7 @@ function Ba(e, t, n) {
7367
7375
  element: n
7368
7376
  };
7369
7377
  }
7370
- function If(e) {
7378
+ function Mf(e) {
7371
7379
  return {
7372
7380
  kind: Y.RemoveNode,
7373
7381
  nodeId: re(e)
@@ -7381,18 +7389,18 @@ var ja = (e, t) => (e?.children ?? []).map((n) => {
7381
7389
  bottom: o?.bottom
7382
7390
  };
7383
7391
  });
7384
- function Pf(e, t, n, o) {
7392
+ function Af(e, t, n, o) {
7385
7393
  const i = ze(e, t.nodeId);
7386
7394
  if (!i || t.targetParentId === null) return;
7387
7395
  const r = oo(e, t.nodeId), s = ze(e, t.targetParentId), l = !!r && ut(r), c = !!s && ut(s);
7388
7396
  if (!l && !c) return;
7389
- const u = l && c && r.id === t.targetParentId, d = u ? r.children.findIndex((h) => h.id === t.nodeId) : t.index, p = c ? $a(i, n ?? (u ? La(i) : void 0) ?? _a(ja(s, o))) : Nf(i);
7397
+ const u = l && c && r.id === t.targetParentId, d = u ? r.children.findIndex((h) => h.id === t.nodeId) : t.index, p = c ? $a(i, n ?? (u ? La(i) : void 0) ?? _a(ja(s, o))) : Ff(i);
7390
7398
  return [{
7391
7399
  kind: Y.RemoveNode,
7392
7400
  nodeId: re(t.nodeId)
7393
7401
  }, Ba(t.targetParentId, d, p)];
7394
7402
  }
7395
- function xf(e) {
7403
+ function _f(e) {
7396
7404
  switch (e) {
7397
7405
  case Q.Row:
7398
7406
  case Q.Wrap:
@@ -7407,7 +7415,7 @@ function xf(e) {
7407
7415
  }
7408
7416
  }
7409
7417
  function Vi(e, t, n, o) {
7410
- const i = e ?? "screen", r = xf(n), s = {
7418
+ const i = e ?? "screen", r = _f(n), s = {
7411
7419
  id: `${i}:container`,
7412
7420
  kind: Te.Container,
7413
7421
  containerId: e,
@@ -7426,7 +7434,7 @@ function Vi(e, t, n, o) {
7426
7434
  ...c < t.length ? { beforeId: o.idOf(t[c]) } : {}
7427
7435
  }))];
7428
7436
  }
7429
- function Of(e, t, n) {
7437
+ function $f(e, t, n) {
7430
7438
  const o = (i) => i.flatMap((r) => {
7431
7439
  if (!n.acceptsChildren(r)) return [];
7432
7440
  const s = n.childrenOf(r);
@@ -7434,7 +7442,7 @@ function Of(e, t, n) {
7434
7442
  });
7435
7443
  return [...Vi(null, e, t, n), ...o(e)];
7436
7444
  }
7437
- var Df = class {
7445
+ var Lf = class {
7438
7446
  latest;
7439
7447
  publish;
7440
7448
  constructor(e, t) {
@@ -7447,7 +7455,7 @@ var Df = class {
7447
7455
  return this.latest = e(this.latest), this.publish(this.latest), this.latest;
7448
7456
  }
7449
7457
  };
7450
- function Rf(e) {
7458
+ function Bf(e) {
7451
7459
  return {
7452
7460
  document: e,
7453
7461
  undoable: [],
@@ -7457,7 +7465,7 @@ function Rf(e) {
7457
7465
  savedDocument: e
7458
7466
  };
7459
7467
  }
7460
- function Ff(e, t, n, o) {
7468
+ function jf(e, t, n, o) {
7461
7469
  const i = dr(e.document, t, n);
7462
7470
  return i.applied ? {
7463
7471
  ...e,
@@ -7487,7 +7495,7 @@ function Pe(e, t, n) {
7487
7495
  isDirty: t !== e.savedDocument
7488
7496
  };
7489
7497
  }
7490
- function Ef(e, t, n, o) {
7498
+ function Uf(e, t, n, o) {
7491
7499
  let i = e.document;
7492
7500
  const r = [];
7493
7501
  for (const s of t) {
@@ -7510,8 +7518,8 @@ function Ef(e, t, n, o) {
7510
7518
  isDirty: i !== e.savedDocument
7511
7519
  };
7512
7520
  }
7513
- var Mf = (e) => e.undoable.length > 0, Af = (e) => e.redoable.length > 0;
7514
- function _f(e) {
7521
+ var Wf = (e) => e.undoable.length > 0, zf = (e) => e.redoable.length > 0;
7522
+ function Hf(e) {
7515
7523
  const t = e.undoable[e.undoable.length - 1];
7516
7524
  return t ? {
7517
7525
  ...e,
@@ -7525,7 +7533,7 @@ function _f(e) {
7525
7533
  isDirty: t.before !== e.savedDocument
7526
7534
  } : e;
7527
7535
  }
7528
- function $f(e) {
7536
+ function Gf(e) {
7529
7537
  const t = e.redoable[e.redoable.length - 1];
7530
7538
  return t ? {
7531
7539
  ...e,
@@ -7539,7 +7547,7 @@ function $f(e) {
7539
7547
  isDirty: t.before !== e.savedDocument
7540
7548
  } : e;
7541
7549
  }
7542
- function Lf(e) {
7550
+ function qf(e) {
7543
7551
  return {
7544
7552
  ...e,
7545
7553
  savedDocument: e.document,
@@ -7562,7 +7570,7 @@ function yt(e, t, n) {
7562
7570
  Array.isArray(i) && yt(i, t, n);
7563
7571
  }
7564
7572
  }
7565
- var to = (e) => e.id, Bf = (e) => e.name || to(e), jf = (e) => {
7573
+ var to = (e) => e.id, Kf = (e) => e.name || to(e), Vf = (e) => {
7566
7574
  switch (e) {
7567
7575
  case H.Stack:
7568
7576
  return Q.Column;
@@ -7580,10 +7588,10 @@ var to = (e) => e.id, Bf = (e) => e.name || to(e), jf = (e) => {
7580
7588
  return;
7581
7589
  }
7582
7590
  };
7583
- function Uf(e) {
7591
+ function Jf(e) {
7584
7592
  return {
7585
7593
  idOf: to,
7586
- nameOf: Bf,
7594
+ nameOf: Kf,
7587
7595
  childrenOf: Xt,
7588
7596
  withChildren: (t, n) => jt(t) ? {
7589
7597
  ...t,
@@ -7594,13 +7602,13 @@ function Uf(e) {
7594
7602
  } : t,
7595
7603
  acceptsChildren: (t) => jt(t),
7596
7604
  ownershipOf: (t) => e(to(t)) ?? ie.Local,
7597
- arrangementOf: (t) => jt(t) ? jf(jr(t)) : void 0
7605
+ arrangementOf: (t) => jt(t) ? Vf(jr(t)) : void 0
7598
7606
  };
7599
7607
  }
7600
- function Wf(e) {
7608
+ function Qf(e) {
7601
7609
  return e ? ut(e) ? Q.Freeform : uo(e) ? Q.Grid : po(e) && e.orientation === ct.Horizontal ? Q.Row : Q.Column : Q.Column;
7602
7610
  }
7603
- var zf = (e, t) => Math.max(0, Math.min(e, t));
7611
+ var Yf = (e, t) => Math.max(0, Math.min(e, t));
7604
7612
  function Qi(e, t, n) {
7605
7613
  const o = Ne(e, t.nodeId, n);
7606
7614
  if (!o) return oe.NodeNotFound;
@@ -7616,10 +7624,10 @@ function Qi(e, t, n) {
7616
7624
  }
7617
7625
  if ((o.parent === null ? null : n.idOf(o.parent)) === t.targetParentId) {
7618
7626
  const r = i.length - 1;
7619
- if (zf(t.index, r) === o.index) return oe.NoChange;
7627
+ if (Yf(t.index, r) === o.index) return oe.NoChange;
7620
7628
  }
7621
7629
  }
7622
- var Hf = "composition";
7630
+ var Xf = "composition";
7623
7631
  function no(e, t) {
7624
7632
  const n = e.screens.find((s) => s.name === be), o = t !== void 0 ? $n(t, !0) : $n(void 0), i = mo(e, o).levels.filter((s) => s.kind === ks.ScreenTemplate).map((s) => s.owner), r = [];
7625
7633
  for (const s of i) {
@@ -7628,12 +7636,12 @@ function no(e, t) {
7628
7636
  for (const c of l.slots) r.push(...l.content?.[c.name] ?? []);
7629
7637
  }
7630
7638
  return (t === void 0 || o.kind === Vt.Screen) && r.push(...n?.slotContent.content ?? []), {
7631
- element: Yt(H.Stack, Hf, "Composition", r),
7639
+ element: Yt(H.Stack, Xf, "Composition", r),
7632
7640
  roots: r,
7633
7641
  templates: i
7634
7642
  };
7635
7643
  }
7636
- function Gf(e) {
7644
+ function Zf(e) {
7637
7645
  switch (e) {
7638
7646
  case qo.Inherited:
7639
7647
  return ie.Inherited;
@@ -7643,15 +7651,15 @@ function Gf(e) {
7643
7651
  return ie.Local;
7644
7652
  }
7645
7653
  }
7646
- function qf(e, t, n) {
7654
+ function eg(e, t, n) {
7647
7655
  const o = /* @__PURE__ */ new Map();
7648
7656
  for (const i of Qa(t)) {
7649
7657
  const r = co(e, re(i), n);
7650
- o.set(i, r ? Gf(r.provenance.kind) : ie.Inherited);
7658
+ o.set(i, r ? Zf(r.provenance.kind) : ie.Inherited);
7651
7659
  }
7652
7660
  return (i) => o.get(i) ?? ie.Local;
7653
7661
  }
7654
- function Kf(e) {
7662
+ function tg(e) {
7655
7663
  const [t, n] = j({
7656
7664
  catalog: e,
7657
7665
  times: 0
@@ -7669,10 +7677,10 @@ function Kf(e) {
7669
7677
  };
7670
7678
  }, [e]), t.catalog === e ? t.times : 0;
7671
7679
  }
7672
- var Vf = { modules: [] }, Jf = (e, t) => oo(e, t)?.id;
7680
+ var ng = { modules: [] }, og = (e, t) => oo(e, t)?.id;
7673
7681
  function Ua(e, t, n, o) {
7674
- const [i, r] = j(() => Rf(e.document)), s = V(void 0);
7675
- s.current ??= new Df(i, r);
7682
+ const [i, r] = j(() => Bf(e.document)), s = V(void 0);
7683
+ s.current ??= new Lf(i, r);
7676
7684
  const l = z((E) => s.current.commit(E), []), [c, u] = j(), [d, p] = j(), [h, f] = j(n.navigation?.module), g = V(void 0), m = z((E, W) => {
7677
7685
  const B = g.current?.(E), G = g.current?.(W);
7678
7686
  return B && G ? {
@@ -7681,7 +7689,7 @@ function Ua(e, t, n, o) {
7681
7689
  } : void 0;
7682
7690
  }, []), v = z((E) => {
7683
7691
  g.current = E;
7684
- }, []), w = Kf(n.runtime.icons), P = U(() => ({
7692
+ }, []), w = tg(n.runtime.icons), P = U(() => ({
7685
7693
  catalog: n.runtime.catalog,
7686
7694
  scope: $n(t, t !== void 0),
7687
7695
  queryCandidates: [...n.queryCandidates],
@@ -7690,11 +7698,11 @@ function Ua(e, t, n, o) {
7690
7698
  n,
7691
7699
  t,
7692
7700
  w
7693
- ]), x = U(() => no(i.document, t), [i.document, t]), S = U(() => qf(i.document, x.roots, P), [
7701
+ ]), x = U(() => no(i.document, t), [i.document, t]), S = U(() => eg(i.document, x.roots, P), [
7694
7702
  i.document,
7695
7703
  x,
7696
7704
  P
7697
- ]), k = U(() => Uf(S), [S]), y = ft(i.document, t), N = U(() => Of(x.roots, Wf(y), k).filter((E) => E.containerId !== null), [
7705
+ ]), k = U(() => Jf(S), [S]), y = ft(i.document, t), N = U(() => $f(x.roots, Qf(y), k).filter((E) => E.containerId !== null), [
7698
7706
  x,
7699
7707
  y,
7700
7708
  k
@@ -7703,7 +7711,7 @@ function Ua(e, t, n, o) {
7703
7711
  c,
7704
7712
  P
7705
7713
  ]), C = z((E, W) => {
7706
- const B = s.current.current, G = l((te) => Ff(te, E, P, W));
7714
+ const B = s.current.current, G = l((te) => jf(te, E, P, W));
7707
7715
  return {
7708
7716
  applied: G.undoable.length > B.undoable.length || G.document !== B.document,
7709
7717
  diagnostics: G.diagnostics
@@ -7711,7 +7719,7 @@ function Ua(e, t, n, o) {
7711
7719
  }, [l, P]), _ = z((E, W) => {
7712
7720
  C(E, W);
7713
7721
  }, [C]), L = z((E, W) => {
7714
- const B = s.current.current, G = l((te) => Ef(te, E, P, W));
7722
+ const B = s.current.current, G = l((te) => Uf(te, E, P, W));
7715
7723
  return {
7716
7724
  applied: G.document !== B.document,
7717
7725
  diagnostics: G.diagnostics
@@ -7735,10 +7743,10 @@ function Ua(e, t, n, o) {
7735
7743
  t,
7736
7744
  m
7737
7745
  ]), M = z((E, W) => {
7738
- const B = Pf(x.roots, E, W, m), G = Qi(x.roots, E, k);
7739
- if (G && !(G === oe.NoChange && B && E.targetParentId === Jf(x.roots, E.nodeId))) return G;
7746
+ const B = Af(x.roots, E, W, m), G = Qi(x.roots, E, k);
7747
+ if (G && !(G === oe.NoChange && B && E.targetParentId === og(x.roots, E.nodeId))) return G;
7740
7748
  if (B) return L(B, "Move").applied ? void 0 : oe.NodeLocked;
7741
- const te = Tf(E);
7749
+ const te = Ef(E);
7742
7750
  return te ? C(te, "Move").applied ? void 0 : oe.NodeLocked : oe.TargetNotContainer;
7743
7751
  }, [
7744
7752
  x,
@@ -7788,17 +7796,17 @@ function Ua(e, t, n, o) {
7788
7796
  dialogTemplates: E
7789
7797
  }, W));
7790
7798
  }, [l]), ue = z((E, W, B, G, te) => {
7791
- l((de) => Pe(de, Ji(de.document, E, (Be) => Qf(Be, W, B, G)), te));
7799
+ l((de) => Pe(de, Ji(de.document, E, (Be) => ig(Be, W, B, G)), te));
7792
7800
  }, [l]), Ie = z((E, W) => {
7793
7801
  const B = n.runtime.bundles.flatMap((G) => G.screenTemplates ?? []);
7794
- l((G) => Pe(G, Sf(G.document, E, B), W));
7802
+ l((G) => Pe(G, Df(G.document, E, B), W));
7795
7803
  }, [l, n.runtime.bundles]), R = z((E, W, B) => {
7796
7804
  l((G) => Pe(G, Ji(G.document, E, (te) => {
7797
7805
  W ? te.behaviors = W : delete te.behaviors;
7798
7806
  }), B));
7799
- }, [l]), ee = U(() => Ti(i.document), [i.document]), he = n.navigation?.structure ?? Vf, J = z((E, W) => {
7807
+ }, [l]), ee = U(() => Ti(i.document), [i.document]), he = n.navigation?.structure ?? ng, J = z((E, W) => {
7800
7808
  const B = Os(Ti(s.current.current.document), E);
7801
- return B.applied ? (l((G) => Pe(G, tm(G.document, B.model), W)), { applied: !0 }) : {
7809
+ return B.applied ? (l((G) => Pe(G, cm(G.document, B.model), W)), { applied: !0 }) : {
7802
7810
  applied: !1,
7803
7811
  rejected: B.rejected
7804
7812
  };
@@ -7838,7 +7846,7 @@ function Ua(e, t, n, o) {
7838
7846
  remove: (E) => {
7839
7847
  if (!jn(x.roots, E, k)) return;
7840
7848
  const W = zr(x.roots, E, k);
7841
- C(If(E), "Remove").applied && u((B) => B === E || B === void 0 ? W : B);
7849
+ C(Mf(E), "Remove").applied && u((B) => B === E || B === void 0 ? W : B);
7842
7850
  },
7843
7851
  canRemove: (E) => jn(x.roots, E, k),
7844
7852
  setProperty: (E, W) => c && _(qn(c, E, W), "Change"),
@@ -7850,24 +7858,24 @@ function Ua(e, t, n, o) {
7850
7858
  setElementBehaviors: R,
7851
7859
  setScreenTemplate: Ie,
7852
7860
  markSaved: () => {
7853
- l(Lf);
7861
+ l(qf);
7854
7862
  },
7855
7863
  undo: () => {
7856
- l(_f);
7864
+ l(Hf);
7857
7865
  },
7858
7866
  redo: () => {
7859
- l($f);
7867
+ l(Gf);
7860
7868
  },
7861
- canUndo: Mf(i),
7862
- canRedo: Af(i),
7869
+ canUndo: Wf(i),
7870
+ canRedo: zf(i),
7863
7871
  isDirty: i.isDirty
7864
7872
  };
7865
7873
  }
7866
- function Qf(e, t, n, o) {
7874
+ function ig(e, t, n, o) {
7867
7875
  const i = e.properties[t];
7868
- Array.isArray(i) && (e.properties[t] = i.map((r) => Wa(r) && r.id === n ? Yf(r, o) : r));
7876
+ Array.isArray(i) && (e.properties[t] = i.map((r) => Wa(r) && r.id === n ? rg(r, o) : r));
7869
7877
  }
7870
- function Yf(e, t) {
7878
+ function rg(e, t) {
7871
7879
  if (Wa(e.values)) {
7872
7880
  const o = { ...e.values };
7873
7881
  return t ? o.destination = t : delete o.destination, {
@@ -7884,13 +7892,13 @@ function Wa(e) {
7884
7892
  var Yi = () => ({
7885
7893
  width: window.innerWidth - 64,
7886
7894
  height: window.innerHeight - 64
7887
- }), yy = (e) => /* @__PURE__ */ a(ya, {
7895
+ }), Ay = (e) => /* @__PURE__ */ a(ya, {
7888
7896
  strings: e.strings,
7889
7897
  onClose: () => e.onDismiss?.(),
7890
- children: /* @__PURE__ */ a(Xf, { ...e })
7891
- }), Xf = (e) => {
7898
+ children: /* @__PURE__ */ a(ag, { ...e })
7899
+ }), ag = (e) => {
7892
7900
  const t = U(() => va(e.subject, e.environment.runtime), [e.subject, e.environment.runtime]);
7893
- return t.opened ? /* @__PURE__ */ a(Zf, {
7901
+ return t.opened ? /* @__PURE__ */ a(sg, {
7894
7902
  ...e,
7895
7903
  opened: t.subject
7896
7904
  }, e.environment.runtime.id) : /* @__PURE__ */ a($r, {
@@ -7904,8 +7912,8 @@ var Yi = () => ({
7904
7912
  onClose: () => n.close()
7905
7913
  })
7906
7914
  });
7907
- }, Zf = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, sourceRect: s, initialSize: l, rememberWindowAs: c, windowMemory: u, centerOffsetX: d, renderPaletteHost: p, onClose: h, onBeforeClose: f, onPreview: g, opened: m }) => {
7908
- const v = V(void 0), w = Ua(m, e.authoringTemplate, t, (F) => v.current?.(F)), P = U(() => u ?? Jm(), [u]), x = U(() => Xm({
7915
+ }, sg = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, sourceRect: s, initialSize: l, rememberWindowAs: c, windowMemory: u, centerOffsetX: d, renderPaletteHost: p, onClose: h, onBeforeClose: f, onPreview: g, opened: m }) => {
7916
+ const v = V(void 0), w = Ua(m, e.authoringTemplate, t, (F) => v.current?.(F)), P = U(() => u ?? oh(), [u]), x = U(() => ah({
7909
7917
  remembered: c ? P.read(c) : void 0,
7910
7918
  saved: l,
7911
7919
  lastUsed: P.readLastUsed()
@@ -7974,7 +7982,7 @@ var Yi = () => ({
7974
7982
  v.current = D;
7975
7983
  function I(F) {
7976
7984
  if (!Eo(F)) return;
7977
- const M = w.selection && eg(w) ? w.selectedId : void 0;
7985
+ const M = w.selection && lg(w) ? w.selectedId : void 0;
7978
7986
  F.kind === "layout" ? w.insertLayout(F.item, M, void 0) : w.insertComponent(Ao(F.componentName, F.package), M, void 0);
7979
7987
  }
7980
7988
  return /* @__PURE__ */ b(Ca, {
@@ -8023,11 +8031,11 @@ var Yi = () => ({
8023
8031
  })]
8024
8032
  });
8025
8033
  };
8026
- function eg(e) {
8034
+ function lg(e) {
8027
8035
  return !!e.selection && "children" in e.selection;
8028
8036
  }
8029
8037
  var ot = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
8030
- function tg(e, t) {
8038
+ function cg(e, t) {
8031
8039
  if (!t) return e;
8032
8040
  const n = { ...e };
8033
8041
  for (const [o, i] of Object.entries(t)) {
@@ -8046,7 +8054,7 @@ function tg(e, t) {
8046
8054
  var it = "p-anchored-overlay", Bt = "p-collapsible", Dn = "p-overlay-mask", O = (e, t) => ({ props: t ? {
8047
8055
  styles: e,
8048
8056
  motionProps: { name: t }
8049
- } : { styles: e } }), pe = (e) => ({ props: { motionProps: { name: e } } }), ng = {
8057
+ } : { styles: e } }), pe = (e) => ({ props: { motionProps: { name: e } } }), dg = {
8050
8058
  "Accordion.Root": O(kc, Bt),
8051
8059
  "AutoComplete.Root": O(Sc),
8052
8060
  "AutoComplete.Popup": pe(it),
@@ -8134,27 +8142,27 @@ var it = "p-anchored-overlay", Bt = "p-collapsible", Dn = "p-overlay-mask", O =
8134
8142
  "Tooltip.Root": O(jd),
8135
8143
  "Tooltip.Popup": pe("p-tooltip"),
8136
8144
  "Tree.Root": O(Ud)
8137
- }, og = Yo.find((e) => e.name === "lara-light-blue") ?? Yo[0], wy = ({ defaults: e, theme: t, ...n }) => {
8138
- const o = gl(og);
8145
+ }, ug = Yo.find((e) => e.name === "lara-light-blue") ?? Yo[0], _y = ({ defaults: e, theme: t, ...n }) => {
8146
+ const o = gl(ug);
8139
8147
  return /* @__PURE__ */ a(wc, {
8140
8148
  ...n,
8141
8149
  theme: t ?? o?.theme,
8142
- defaults: tg(ng, e)
8150
+ defaults: cg(dg, e)
8143
8151
  });
8144
- }, ky = (e) => /* @__PURE__ */ a(ya, {
8152
+ }, $y = (e) => /* @__PURE__ */ a(ya, {
8145
8153
  strings: e.strings,
8146
8154
  onClose: e.onDismiss,
8147
- children: /* @__PURE__ */ a(ig, { ...e })
8148
- }), ig = (e) => {
8155
+ children: /* @__PURE__ */ a(pg, { ...e })
8156
+ }), pg = (e) => {
8149
8157
  const t = U(() => va(e.subject, e.environment.runtime), [e.subject, e.environment.runtime]);
8150
- return t.opened ? /* @__PURE__ */ a(rg, {
8158
+ return t.opened ? /* @__PURE__ */ a(mg, {
8151
8159
  ...e,
8152
8160
  opened: t.subject
8153
8161
  }, e.environment.runtime.id) : /* @__PURE__ */ a(wa, {
8154
8162
  problem: t.problem,
8155
8163
  strings: e.strings
8156
8164
  });
8157
- }, rg = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, initialSize: s, onChange: l, renderPaletteHost: c, opened: u }) => {
8165
+ }, mg = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, initialSize: s, onChange: l, renderPaletteHost: c, opened: u }) => {
8158
8166
  const d = V(void 0), p = Ua(u, e.authoringTemplate, t, (S) => d.current?.(S)), [h, f] = j(s ?? sn[Ke.Desktop]), [g, m] = j(!0), v = V(l);
8159
8167
  v.current = l, ce(() => {
8160
8168
  const S = ft(p.document, e.authoringTemplate);
@@ -8235,7 +8243,7 @@ var it = "p-anchored-overlay", Bt = "p-collapsible", Dn = "p-overlay-mask", O =
8235
8243
  })
8236
8244
  });
8237
8245
  };
8238
- function ag(e) {
8246
+ function hg(e) {
8239
8247
  const t = {
8240
8248
  "row.id": "Guid",
8241
8249
  "selection.id": "Guid"
@@ -8243,18 +8251,18 @@ function ag(e) {
8243
8251
  for (const n of e) for (const o of n.parameters) t[`route.${o.name}`] ??= o.type;
8244
8252
  return t;
8245
8253
  }
8246
- var sg = new Set(Object.values(ws)), lg = new Set(Object.values(ys));
8247
- function cg(e) {
8248
- return e.filter((t) => sg.has(t.resultShape) && t.origin.every((n) => lg.has(n.kind))).map((t) => t);
8254
+ var fg = new Set(Object.values(ws)), gg = new Set(Object.values(ys));
8255
+ function vg(e) {
8256
+ return e.filter((t) => fg.has(t.resultShape) && t.origin.every((n) => gg.has(n.kind))).map((t) => t);
8249
8257
  }
8250
- function Sy(e) {
8251
- const t = cg(e.queryCandidates ?? []);
8258
+ function Ly(e) {
8259
+ const t = vg(e.queryCandidates ?? []);
8252
8260
  return {
8253
8261
  runtime: e.runtime,
8254
8262
  queryCandidates: t,
8255
8263
  stateChangeSlices: e.stateChangeSlices ?? [],
8256
8264
  destinations: e.destinations ?? [],
8257
- availableSources: ag(t),
8265
+ availableSources: hg(t),
8258
8266
  ...e.richText === !1 ? {} : { richText: e.richText ?? Wd },
8259
8267
  ...e.fileUpload ? { fileUpload: e.fileUpload } : {},
8260
8268
  ...e.templateScope ? { templateScope: e.templateScope } : {},
@@ -8262,39 +8270,40 @@ function Sy(e) {
8262
8270
  ...e.location ? { location: e.location } : {}
8263
8271
  };
8264
8272
  }
8265
- var dg = [.../* @__PURE__ */ new Set([...nn.ids, ...Object.values(X)])];
8266
- function ug(e, t) {
8273
+ var bg = [.../* @__PURE__ */ new Set([...nn.ids, ...Object.values(X)])];
8274
+ function yg(e, t) {
8267
8275
  return ul({
8268
8276
  bundles: e,
8269
- profile: pg(e, t),
8277
+ profile: wg(e, t),
8270
8278
  policy: {
8271
8279
  allowExecutableImports: !0,
8272
8280
  allowNetworkAssets: !1,
8273
8281
  loadDesignTime: !0
8274
8282
  }
8275
- }, { hostEditorKinds: [...dg] });
8283
+ }, { hostEditorKinds: [...bg] });
8276
8284
  }
8277
- function pg(e, t) {
8278
- return !t.layout || e.some((n) => (n.layouts ?? []).some((o) => o.name === t.layout)) ? t : {
8285
+ function wg(e, t) {
8286
+ const n = new Set(t.packages);
8287
+ return !t.layout || e.some((o) => n.has(o.manifest.name) && (o.layouts ?? []).some((i) => i.name === t.layout)) ? t : {
8279
8288
  ...t,
8280
8289
  layout: void 0
8281
8290
  };
8282
8291
  }
8283
- function mg(e) {
8292
+ function kg(e) {
8284
8293
  return e.flatMap((t) => t.iconLibrary ? [t.iconLibrary.catalog] : []);
8285
8294
  }
8286
- function hg(e, t) {
8295
+ function Sg(e, t) {
8287
8296
  const n = Ws(e, t.map((o) => o.manifest));
8288
- return new Ts(n, mg(t));
8297
+ return new Ts(n, kg(t));
8289
8298
  }
8290
- function fg(e) {
8299
+ function Cg(e) {
8291
8300
  const t = ol([e]), n = t.packages.filter((o) => o !== "PrimeReact");
8292
8301
  return n.splice(Math.max(n.indexOf(vr), 0), 0, "PrimeReact"), {
8293
8302
  ...t,
8294
8303
  packages: n
8295
8304
  };
8296
8305
  }
8297
- var gg = [
8306
+ var Ng = [
8298
8307
  "PrimeReact.Accordion",
8299
8308
  "PrimeReact.AutoComplete",
8300
8309
  "PrimeReact.Avatar",
@@ -8397,7 +8406,7 @@ var gg = [
8397
8406
  "itemsControl",
8398
8407
  "stackPanel",
8399
8408
  "wrapPanel"
8400
- ], vg = ["PrimeReact.Dialog"], bg = new Set(gg.filter((e) => !vg.includes(e))), yg = [
8409
+ ], Tg = ["PrimeReact.Dialog"], Ig = new Set(Ng.filter((e) => !Tg.includes(e))), Pg = [
8401
8410
  {
8402
8411
  value: ve.None,
8403
8412
  label: "Run directly"
@@ -8411,7 +8420,7 @@ var gg = [
8411
8420
  label: "Ask in a drawer"
8412
8421
  }
8413
8422
  ];
8414
- function wg(e) {
8423
+ function xg(e) {
8415
8424
  return !e.component.endsWith(":action") || e.properties.some((t) => t.path === "presentation") ? e : {
8416
8425
  ...e,
8417
8426
  properties: [...e.properties, {
@@ -8420,13 +8429,13 @@ function wg(e) {
8420
8429
  group: "Behavior",
8421
8430
  valueType: K.Enum,
8422
8431
  default: ve.None,
8423
- choices: yg,
8432
+ choices: Pg,
8424
8433
  description: "Whether the command runs straight away or first asks for its input in a dialog or a drawer."
8425
8434
  }]
8426
8435
  };
8427
8436
  }
8428
- var kg = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()), Sg = (e) => /ies$/i.test(e) ? `${e.slice(0, -3)}y` : /(ss|us)$/i.test(e) || !/s$/i.test(e) ? e : e.slice(0, -1), za = (e) => e !== null && typeof e == "object" && !Array.isArray(e);
8429
- function Wo(e, t, n = kg(e)) {
8437
+ var Og = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()), Dg = (e) => /ies$/i.test(e) ? `${e.slice(0, -3)}y` : /(ss|us)$/i.test(e) || !/s$/i.test(e) ? e : e.slice(0, -1), za = (e) => e !== null && typeof e == "object" && !Array.isArray(e);
8438
+ function Wo(e, t, n = Og(e)) {
8430
8439
  const o = {
8431
8440
  path: e,
8432
8441
  label: n,
@@ -8438,7 +8447,7 @@ function Wo(e, t, n = kg(e)) {
8438
8447
  } : typeof t == "boolean" ? {
8439
8448
  ...o,
8440
8449
  valueType: K.Boolean
8441
- } : Array.isArray(t) ? Ng(o, t) : za(t) ? {
8450
+ } : Array.isArray(t) ? Fg(o, t) : za(t) ? {
8442
8451
  ...o,
8443
8452
  valueType: K.Object,
8444
8453
  properties: Ha(t),
@@ -8449,12 +8458,12 @@ function Wo(e, t, n = kg(e)) {
8449
8458
  };
8450
8459
  }
8451
8460
  function Ha(e, t = []) {
8452
- return Object.entries(e).filter(([n]) => !t.includes(n)).map(([n, o]) => Cg(n, o));
8461
+ return Object.entries(e).filter(([n]) => !t.includes(n)).map(([n, o]) => Rg(n, o));
8453
8462
  }
8454
- function Cg(e, t) {
8463
+ function Rg(e, t) {
8455
8464
  return Wo(e, t);
8456
8465
  }
8457
- function Ng(e, t) {
8466
+ function Fg(e, t) {
8458
8467
  if (t.length > 0 && t.every((o) => typeof o == "string")) return {
8459
8468
  ...e,
8460
8469
  valueType: K.Json,
@@ -8471,17 +8480,17 @@ function Ng(e, t) {
8471
8480
  ...e,
8472
8481
  valueType: K.Collection,
8473
8482
  item: {
8474
- label: Sg(e.label),
8483
+ label: Dg(e.label),
8475
8484
  properties: Ha(n, ["id"]),
8476
8485
  open: !0
8477
8486
  }
8478
8487
  };
8479
8488
  }
8480
- var Tg = (e) => e.valueType === K.Json && e.editorKind === void 0;
8481
- function Ig(e) {
8489
+ var Eg = (e) => e.valueType === K.Json && e.editorKind === void 0;
8490
+ function Mg(e) {
8482
8491
  const t = Uo(e.component, e.component.slice(e.component.lastIndexOf(":") + 1));
8483
8492
  if (!t) return e;
8484
- const n = new Set(e.properties.map((r) => r.path)), o = e.properties.map((r) => Tg(r) && r.path in t ? Pg(r, t[r.path]) : r), i = Object.entries(t).filter(([r]) => !n.has(r)).map(([r, s]) => ({
8493
+ const n = new Set(e.properties.map((r) => r.path)), o = e.properties.map((r) => Eg(r) && r.path in t ? Ag(r, t[r.path]) : r), i = Object.entries(t).filter(([r]) => !n.has(r)).map(([r, s]) => ({
8485
8494
  ...Wo(r, s),
8486
8495
  description: "Shown as sample content on the design surface until you set it."
8487
8496
  }));
@@ -8490,7 +8499,7 @@ function Ig(e) {
8490
8499
  properties: [...o, ...i]
8491
8500
  } : e;
8492
8501
  }
8493
- function Pg(e, t) {
8502
+ function Ag(e, t) {
8494
8503
  const { editorKind: n, item: o, properties: i, choices: r, ...s } = e, l = Wo(e.path, t);
8495
8504
  return {
8496
8505
  ...l,
@@ -8498,7 +8507,7 @@ function Pg(e, t) {
8498
8507
  valueType: l.valueType
8499
8508
  };
8500
8509
  }
8501
- var Xi = "Placement", xg = [{
8510
+ var Xi = "Placement", _g = [{
8502
8511
  path: Je,
8503
8512
  label: "Left",
8504
8513
  group: Xi,
@@ -8509,33 +8518,33 @@ var Xi = "Placement", xg = [{
8509
8518
  group: Xi,
8510
8519
  valueType: K.Number
8511
8520
  }];
8512
- function Og(e) {
8521
+ function $g(e) {
8513
8522
  const t = new Set(e.properties.map((n) => n.path));
8514
8523
  return {
8515
8524
  ...e,
8516
- properties: [...e.properties, ...xg.filter((n) => !t.has(n.path))]
8525
+ properties: [...e.properties, ..._g.filter((n) => !t.has(n.path))]
8517
8526
  };
8518
8527
  }
8519
- var Zi = "PrimeReact", Dg = 1;
8520
- function Rg(e, t, n) {
8528
+ var Zi = "PrimeReact", Lg = 1;
8529
+ function Bg(e, t, n) {
8521
8530
  const o = en(e.map((p) => p.manifest)), i = e.flatMap((p) => p.descriptors ?? []), r = new Set(i.map((p) => p.component)), s = e.flatMap((p) => p.manifest.components.map((h) => ({
8522
8531
  component: Fn(p.manifest.name, h),
8523
8532
  displayName: h,
8524
8533
  properties: []
8525
- }))).filter((p) => !r.has(p.component)), l = [...i, ...s].map(wg).map(Ig).map(Og), c = [...l, ...Fg(l, o, t)], u = new Set(Object.values(o).flat()), d = new Map(l.map((p) => [p.component, p]));
8534
+ }))).filter((p) => !r.has(p.component)), l = [...i, ...s].map(xg).map(Mg).map($g), c = [...l, ...jg(l, o, t)], u = new Set(Object.values(o).flat()), d = new Map(l.map((p) => [p.component, p]));
8526
8535
  return {
8527
- id: Dg++,
8536
+ id: Lg++,
8528
8537
  bundles: e,
8529
8538
  registry: Sr(e),
8530
8539
  packages: o,
8531
8540
  descriptors: c,
8532
8541
  catalog: Es(c),
8533
8542
  profile: t,
8534
- compositionProfile: fg(t),
8543
+ compositionProfile: Cg(t),
8535
8544
  ...n ? { appearance: n } : {},
8536
- icons: hg(t.packages, e),
8545
+ icons: Sg(t.packages, e),
8537
8546
  iconAdapters: dl(e),
8538
- designTime: ug(e, t),
8547
+ designTime: yg(e, t),
8539
8548
  packageDescriptorOf: (p) => {
8540
8549
  if (p.component.includes(":")) return p;
8541
8550
  const h = Tt(p.component, t, o);
@@ -8543,12 +8552,12 @@ function Rg(e, t, n) {
8543
8552
  },
8544
8553
  isKnownComponent: (p) => u.has(p),
8545
8554
  legacyTypeOf: (p) => {
8546
- const h = Gm(p, t, o), f = h?.package === Zi ? `${Zi}.${Br(h.name)}` : void 0;
8547
- return f !== void 0 && bg.has(f) ? f : void 0;
8555
+ const h = Zm(p, t, o), f = h?.package === Zi ? `${Zi}.${Br(h.name)}` : void 0;
8556
+ return f !== void 0 && Ig.has(f) ? f : void 0;
8548
8557
  }
8549
8558
  };
8550
8559
  }
8551
- function Fg(e, t, n) {
8560
+ function jg(e, t, n) {
8552
8561
  const o = [];
8553
8562
  for (const i of new Set(Object.values(t).flat())) {
8554
8563
  const r = Tt(i, n, t), s = r && e.find((l) => l.component === Fn(r.package, r.name));
@@ -8559,7 +8568,7 @@ function Fg(e, t, n) {
8559
8568
  }
8560
8569
  return o;
8561
8570
  }
8562
- var zo = "Cratis.Icons.Lucide", Eg = {
8571
+ var zo = "Cratis.Icons.Lucide", Ug = {
8563
8572
  name: zo,
8564
8573
  version: "1.52.0",
8565
8574
  kind: dt.IconLibrary,
@@ -8581,23 +8590,31 @@ var zo = "Cratis.Icons.Lucide", Eg = {
8581
8590
  attributionUrl: "https://lucide.dev",
8582
8591
  iconCount: 1858
8583
8592
  }
8584
- }, Mg = {
8593
+ }, Wg = {
8585
8594
  library: zo,
8586
8595
  loadEntries: async () => (await import("./catalog-CZx3FR-E.js")).default
8587
- }, Ag = qd, _g = {
8596
+ }, zg = eu, Hg = {
8588
8597
  library: zo,
8589
- loadGlyph: async ({ key: e }) => (await Ag[e]?.())?.default
8590
- }, $g = {
8591
- manifest: Eg,
8598
+ loadGlyph: async ({ key: e }) => (await zg[e]?.())?.default
8599
+ }, Gg = {
8600
+ manifest: Ug,
8592
8601
  components: {},
8593
8602
  iconLibrary: {
8594
- catalog: Mg,
8595
- adapter: _g
8603
+ catalog: Wg,
8604
+ adapter: Hg
8596
8605
  }
8597
- }, Lg = [
8606
+ }, qg = [
8598
8607
  zd,
8599
8608
  Hd,
8600
- Gd
8609
+ Gd,
8610
+ qd,
8611
+ Kd,
8612
+ Vd,
8613
+ Jd,
8614
+ Qd,
8615
+ Yd,
8616
+ Xd,
8617
+ Zd
8601
8618
  ], Pt = [
8602
8619
  kr,
8603
8620
  Ar,
@@ -8605,10 +8622,10 @@ var zo = "Cratis.Icons.Lucide", Eg = {
8605
8622
  Mr,
8606
8623
  gr,
8607
8624
  _r,
8608
- ...Lg,
8609
- $g
8610
- ], Bg = Pt.map((e) => e.manifest), Cy = Sr(Pt), Ny = en(Bg), Ty = Pt.flatMap((e) => e.themes ?? []);
8611
- function jg(e) {
8625
+ ...qg,
8626
+ Gg
8627
+ ], Kg = Pt.map((e) => e.manifest), By = Sr(Pt), jy = en(Kg), Uy = Pt.flatMap((e) => e.themes ?? []);
8628
+ function Vg(e) {
8612
8629
  const t = Ds(e).map((i) => i.name), n = Qo(e, dt.Styling).map((i) => i.name), o = Qo(e, dt.Blueprint)[0];
8613
8630
  return o ? [
8614
8631
  ...t,
@@ -8621,16 +8638,16 @@ var Ga = (e) => e === void 0 || e.activePack === "" && e.mappings.length === 0 ?
8621
8638
  mappings: e.mappings.map((t) => ({ ...t })),
8622
8639
  bindings: []
8623
8640
  };
8624
- function Ug(e, t) {
8641
+ function Jg(e, t) {
8625
8642
  return t.filter((n) => $s(n, e));
8626
8643
  }
8627
- function Wg(e, t) {
8644
+ function Qg(e, t) {
8628
8645
  return [...new Set(Object.values(t).flat())].map((n) => Tt(n, e, t)).filter((n) => n !== void 0 && n.shadows.length > 0).sort((n, o) => n.name.localeCompare(o.name));
8629
8646
  }
8630
8647
  var Rn = /* @__PURE__ */ (function(e) {
8631
8648
  return e.Fallback = "fallback", e.Explicit = "explicit", e.Automatic = "automatic", e;
8632
8649
  })({});
8633
- function zg(e) {
8650
+ function Yg(e) {
8634
8651
  const t = [
8635
8652
  so,
8636
8653
  ...e.packages,
@@ -8640,17 +8657,17 @@ function zg(e) {
8640
8657
  ];
8641
8658
  return [...new Set(t.filter((n) => n.length > 0))];
8642
8659
  }
8643
- function Hg(e, t) {
8660
+ function Xg(e, t) {
8644
8661
  return e.find((n) => n.manifest.name === t)?.manifest.layouts[0] ?? "";
8645
8662
  }
8646
- function Gg(e, t) {
8663
+ function Zg(e, t) {
8647
8664
  const n = e.root?.template;
8648
8665
  if (!(n?.source !== Ss.Blueprint || n.blueprint === void 0))
8649
8666
  return t.find((o) => o.manifest.name === n.blueprint)?.manifest.layouts.includes(n.id) ? n.id : void 0;
8650
8667
  }
8651
8668
  var qa = "UI Profile";
8652
8669
  function Ka(e, t) {
8653
- const n = t.map((c) => c.manifest), o = zg(e), i = zs(o, n), r = Gg(e, t) ?? Hg(t, e.shell), s = {
8670
+ const n = t.map((c) => c.manifest), o = Yg(e), i = zs(o, n), r = Zg(e, t) ?? Xg(t, e.shell), s = {
8654
8671
  name: qa,
8655
8672
  targetPlatform: "web",
8656
8673
  packages: i.packages,
@@ -8658,7 +8675,7 @@ function Ka(e, t) {
8658
8675
  ...e.root ? { root: e.root } : {},
8659
8676
  theme: e.theme.length > 0 ? e.theme : void 0,
8660
8677
  sampleData: Ga(e.sampleData),
8661
- appearance: qg(e),
8678
+ appearance: ev(e),
8662
8679
  ...e.identity === void 0 ? {} : { identity: e.identity }
8663
8680
  }, l = new Set(o);
8664
8681
  return {
@@ -8676,13 +8693,13 @@ function Ka(e, t) {
8676
8693
  requiredBy: n.filter((d) => i.packages.includes(d.name) && d.dependencies.some((p) => p.name === c)).map((d) => d.name)
8677
8694
  }] : [];
8678
8695
  }),
8679
- collisions: Wg(s, en(n)),
8680
- compatibleThemes: Ug(s, t.flatMap((c) => c.themes ?? [])),
8696
+ collisions: Qg(s, en(n)),
8697
+ compatibleThemes: Jg(s, t.flatMap((c) => c.themes ?? [])),
8681
8698
  layout: r,
8682
8699
  isValid: _s(i)
8683
8700
  };
8684
8701
  }
8685
- function qg(e) {
8702
+ function ev(e) {
8686
8703
  const t = {
8687
8704
  ...e.colorScheme === "dark" ? { colorScheme: hs.Dark } : {},
8688
8705
  ...e.accent.length > 0 ? { accent: e.accent } : {},
@@ -8691,8 +8708,8 @@ function qg(e) {
8691
8708
  };
8692
8709
  return Object.keys(t).length === 0 ? void 0 : t;
8693
8710
  }
8694
- function Kg(e) {
8695
- const t = e.map((s) => s.manifest), n = jg(t), o = n.find((s) => t.find((l) => l.name === s)?.kind === dt.Blueprint) ?? "", i = {
8711
+ function tv(e) {
8712
+ const t = e.map((s) => s.manifest), n = Vg(t), o = n.find((s) => t.find((l) => l.name === s)?.kind === dt.Blueprint) ?? "", i = {
8696
8713
  packages: n.filter((s) => s !== o && s !== so),
8697
8714
  shell: o,
8698
8715
  templatePacks: [],
@@ -8707,7 +8724,7 @@ function Kg(e) {
8707
8724
  theme: r?.name ?? ""
8708
8725
  };
8709
8726
  }
8710
- function Vg(e, t) {
8727
+ function nv(e, t) {
8711
8728
  return {
8712
8729
  name: qa,
8713
8730
  targetPlatform: "web",
@@ -8717,11 +8734,11 @@ function Vg(e, t) {
8717
8734
  sampleData: Ga(t)
8718
8735
  };
8719
8736
  }
8720
- function Iy(e, t = Pt, n, o) {
8721
- const i = e ? Vg(e, o) : Ka(Kg(t), t).profile;
8722
- return Rg(t, i, n);
8737
+ function Wy(e, t = Pt, n, o) {
8738
+ const i = e ? nv(e, o) : Ka(tv(t), t).profile;
8739
+ return Bg(t, i, n);
8723
8740
  }
8724
- function Jg(e, t) {
8741
+ function ov(e, t) {
8725
8742
  const n = no(e), o = mo(e, {
8726
8743
  kind: Vt.Screen,
8727
8744
  name: be
@@ -8731,8 +8748,8 @@ function Jg(e, t) {
8731
8748
  configuration: i
8732
8749
  };
8733
8750
  }
8734
- var Qg = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry }) => {
8735
- const { element: i, configuration: r } = U(() => Jg(e, t.catalog), [e, t.catalog]), s = U(() => go(i, t.compositionProfile, t.packages), [
8751
+ var iv = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry }) => {
8752
+ const { element: i, configuration: r } = U(() => ov(e, t.catalog), [e, t.catalog]), s = U(() => go(i, t.compositionProfile, t.packages), [
8736
8753
  i,
8737
8754
  t.compositionProfile,
8738
8755
  t.packages
@@ -8753,12 +8770,12 @@ var Qg = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry
8753
8770
  })
8754
8771
  })
8755
8772
  });
8756
- }, Yg = (e) => {
8773
+ }, rv = (e) => {
8757
8774
  const t = bt(e);
8758
8775
  return Pa.has(t) || t in Ta;
8759
- }, Xg = (e, t) => {
8776
+ }, av = (e, t) => {
8760
8777
  const n = (o) => {
8761
- const i = Yg(o.element.componentName), r = U(() => ({
8778
+ const i = rv(o.element.componentName), r = U(() => ({
8762
8779
  ...o.element,
8763
8780
  properties: xa(e, o.element.componentName, o.element.properties)
8764
8781
  }), [o.element]);
@@ -8772,11 +8789,11 @@ var Qg = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry
8772
8789
  };
8773
8790
  return n.displayName = `Miniature(${t.displayName ?? t.name ?? "Component"})`, n;
8774
8791
  };
8775
- function Zg(e) {
8776
- return Object.fromEntries(Object.entries(e).map(([t, n]) => [t, Xg(t, n)]));
8792
+ function sv(e) {
8793
+ return Object.fromEntries(Object.entries(e).map(([t, n]) => [t, av(t, n)]));
8777
8794
  }
8778
- var Py = 240, xy = 112;
8779
- function ev(e, t = 240, n = Number.POSITIVE_INFINITY) {
8795
+ var zy = 240, Hy = 112;
8796
+ function lv(e, t = 240, n = Number.POSITIVE_INFINITY) {
8780
8797
  const o = e && e.width > 0 && e.height > 0 ? e : Sa({
8781
8798
  width: 1 / 0,
8782
8799
  height: 1 / 0
@@ -8789,7 +8806,7 @@ function ev(e, t = 240, n = Number.POSITIVE_INFINITY) {
8789
8806
  scale: s
8790
8807
  };
8791
8808
  }
8792
- function tv(e, t = 240) {
8809
+ function cv(e, t = 240) {
8793
8810
  const n = typeof IntersectionObserver < "u", [o, i] = j(!n);
8794
8811
  return ce(() => {
8795
8812
  const r = e.current;
@@ -8802,23 +8819,23 @@ function tv(e, t = 240) {
8802
8819
  n
8803
8820
  ]), o;
8804
8821
  }
8805
- var nv = [
8822
+ var dv = [
8806
8823
  "#f66",
8807
8824
  "#fa0",
8808
8825
  "#3c3"
8809
- ], ov = () => {
8810
- }, er = 16, Oy = ({ document: e, runtime: t, windowSize: n, width: o, title: i, openTitle: r, onClick: s, placeholder: l }) => {
8811
- const c = V(null), u = tv(c), d = U(() => ev(n, o ?? 240, o === void 0 ? 112 : void 0), [
8826
+ ], uv = () => {
8827
+ }, er = 16, Gy = ({ document: e, runtime: t, windowSize: n, width: o, title: i, openTitle: r, onClick: s, placeholder: l }) => {
8828
+ const c = V(null), u = cv(c), d = U(() => lv(n, o ?? 240, o === void 0 ? 112 : void 0), [
8812
8829
  n?.width,
8813
8830
  n?.height,
8814
8831
  o
8815
- ]), p = U(() => jo(t), [t]), h = U(() => Zg(t.registry), [t.registry]), f = {
8832
+ ]), p = U(() => jo(t), [t]), h = U(() => sv(t.registry), [t.registry]), f = {
8816
8833
  width: d.width,
8817
8834
  height: er + d.bodyHeight
8818
8835
  }, g = /* @__PURE__ */ b(le, { children: [/* @__PURE__ */ b("div", {
8819
8836
  className: "screen-thumbnail__title-bar",
8820
8837
  style: { height: er },
8821
- children: [nv.map((v) => /* @__PURE__ */ a("span", {
8838
+ children: [dv.map((v) => /* @__PURE__ */ a("span", {
8822
8839
  className: "screen-thumbnail__light",
8823
8840
  style: { borderColor: v }
8824
8841
  }, v)), i && /* @__PURE__ */ a("span", {
@@ -8838,10 +8855,10 @@ var nv = [
8838
8855
  "--studio-surface-viewport-height": `${d.canvasHeight}px`
8839
8856
  },
8840
8857
  "data-studio-viewport": "",
8841
- children: /* @__PURE__ */ a(Qg, {
8858
+ children: /* @__PURE__ */ a(iv, {
8842
8859
  document: e,
8843
8860
  runtime: t,
8844
- resolveBinding: ov,
8861
+ resolveBinding: uv,
8845
8862
  registry: h
8846
8863
  })
8847
8864
  }) : l
@@ -8867,28 +8884,28 @@ var nv = [
8867
8884
  "aria-label": i,
8868
8885
  children: g
8869
8886
  });
8870
- }, rt = /* @__PURE__ */ new Map(), iv = 200;
8871
- function Dy(e) {
8887
+ }, rt = /* @__PURE__ */ new Map(), pv = 200;
8888
+ function qy(e) {
8872
8889
  if (!e) return;
8873
8890
  if (rt.has(e)) return rt.get(e);
8874
8891
  const t = ta(e), n = t.readable ? t.document : void 0;
8875
- return rt.size >= iv && rt.delete(rt.keys().next().value), rt.set(e, n), n;
8892
+ return rt.size >= pv && rt.delete(rt.keys().next().value), rt.set(e, n), n;
8876
8893
  }
8877
- var Ry = {
8894
+ var Ky = {
8878
8895
  [H.Stack]: "Stack",
8879
8896
  [H.Row]: "Row",
8880
8897
  [H.Grid]: "Grid",
8881
8898
  [H.Container]: "Container",
8882
8899
  [H.Wrap]: "Wrap",
8883
8900
  [H.Canvas]: "Canvas"
8884
- }, rv = {
8901
+ }, mv = {
8885
8902
  [H.Stack]: st,
8886
8903
  [H.Row]: Ml,
8887
8904
  [H.Grid]: Rr,
8888
8905
  [H.Container]: bo,
8889
8906
  [H.Wrap]: yo,
8890
8907
  [H.Canvas]: cc
8891
- }, av = {
8908
+ }, hv = {
8892
8909
  text: vl,
8893
8910
  button: Wt,
8894
8911
  card: xl,
@@ -9029,7 +9046,7 @@ var Ry = {
9029
9046
  themeSwitcher: vn,
9030
9047
  layoutModeSwitcher: En,
9031
9048
  arcPageHeader: Ut
9032
- }, sv = [
9049
+ }, fv = [
9033
9050
  [/dialog/i, ht],
9034
9051
  [/table|grid/i, mt],
9035
9052
  [/menu|bar$/i, st],
@@ -9042,35 +9059,35 @@ var Ry = {
9042
9059
  [/message|toast/i, Tr],
9043
9060
  [/tree/i, _n],
9044
9061
  [/page|screen/i, Mn]
9045
- ], lv = (e) => av[e] ?? sv.find(([t]) => t.test(e))?.[1] ?? Or, cv = {
9062
+ ], gv = (e) => hv[e] ?? fv.find(([t]) => t.test(e))?.[1] ?? Or, vv = {
9046
9063
  [kr.manifest.name]: Dr,
9047
9064
  [Cr.manifest.name]: Fr,
9048
9065
  [Mr.manifest.name]: Or,
9049
9066
  [gr.manifest.name]: yo,
9050
9067
  [_r.manifest.name]: Ut,
9051
9068
  [Ar.manifest.name]: Gl
9052
- }, dv = Ol, Fy = {
9069
+ }, bv = Ol, Vy = {
9053
9070
  layout: (e) => {
9054
- const t = rv[e];
9071
+ const t = mv[e];
9055
9072
  return /* @__PURE__ */ a(t, { "aria-hidden": "true" });
9056
9073
  },
9057
9074
  component: (e) => {
9058
- const t = lv(e);
9075
+ const t = gv(e);
9059
9076
  return /* @__PURE__ */ a(t, { "aria-hidden": "true" });
9060
9077
  },
9061
9078
  drawer: {
9062
9079
  layout: /* @__PURE__ */ a(Rr, { "aria-hidden": "true" }),
9063
9080
  package: (e) => {
9064
- const t = cv[e] ?? dv;
9081
+ const t = vv[e] ?? bv;
9065
9082
  return /* @__PURE__ */ a(t, { "aria-hidden": "true" });
9066
9083
  }
9067
9084
  }
9068
- }, Ey = Pt.map((e) => ({
9085
+ }, Jy = Pt.map((e) => ({
9069
9086
  package: e.manifest.name,
9070
9087
  components: e.manifest.components,
9071
9088
  descriptors: e.descriptors ?? []
9072
9089
  }));
9073
- function My(e, t, n) {
9090
+ function Qy(e, t, n) {
9074
9091
  return e.map((o) => ({
9075
9092
  type: o.type,
9076
9093
  name: t[o.item],
@@ -9078,10 +9095,10 @@ function My(e, t, n) {
9078
9095
  icon: n?.[o.item]
9079
9096
  }));
9080
9097
  }
9081
- var Ay = /* @__PURE__ */ (function(e) {
9098
+ var Yy = /* @__PURE__ */ (function(e) {
9082
9099
  return e.Auto = "auto", e.Manual = "manual", e;
9083
9100
  })({});
9084
- function _y(e) {
9101
+ function Xy(e) {
9085
9102
  return [
9086
9103
  {
9087
9104
  kind: xt.DataContext,
@@ -9104,68 +9121,68 @@ function _y(e) {
9104
9121
  ];
9105
9122
  }
9106
9123
  export {
9107
- Dv as BindingMode,
9108
- Rv as BindingNullBehavior,
9109
- Fv as BindingSourceKind,
9110
- Ay as CommandFormMode,
9111
- Ev as DestinationKind,
9124
+ Lv as BindingMode,
9125
+ Bv as BindingNullBehavior,
9126
+ jv as BindingSourceKind,
9127
+ Yy as CommandFormMode,
9128
+ Uv as DestinationKind,
9112
9129
  Q as LayoutArrangement,
9113
9130
  H as LayoutItem,
9114
9131
  ie as Ownership,
9115
- Qg as PlayScreenView,
9132
+ iv as PlayScreenView,
9116
9133
  Ae as SceneDocumentProblem,
9117
9134
  Ca as ScreenEditorControlProviders,
9118
- yy as ScreenEditorOverlay,
9119
- wy as ScreenEditorPrimeReactProvider,
9135
+ Ay as ScreenEditorOverlay,
9136
+ _y as ScreenEditorPrimeReactProvider,
9120
9137
  Aa as ScreenEditorWindow,
9121
- ky as ScreenEditorWorkspace,
9122
- Oy as ScreenThumbnail,
9138
+ $y as ScreenEditorWorkspace,
9139
+ Gy as ScreenThumbnail,
9123
9140
  oe as StructureEditRejection,
9124
- Iv as StructuredValueEditor,
9125
- wv as asList,
9126
- _y as bindingSourceChoices,
9127
- Vm as browserWindowSizeStorage,
9141
+ Mv as StructuredValueEditor,
9142
+ xv as asList,
9143
+ Xy as bindingSourceChoices,
9144
+ nh as browserWindowSizeStorage,
9128
9145
  St as commandNameOf,
9129
- Sy as createScreenEditorEnvironment,
9130
- Rg as createScreenEditorRuntime,
9131
- Jm as createWindowSizeMemory,
9132
- rv as defaultLayoutIcons,
9133
- Ry as defaultLayoutLabels,
9134
- Fy as defaultPaletteIcons,
9135
- Ey as defaultPaletteSources,
9136
- Ap as defaultScreenEditorStrings,
9146
+ Ly as createScreenEditorEnvironment,
9147
+ Bg as createScreenEditorRuntime,
9148
+ oh as createWindowSizeMemory,
9149
+ mv as defaultLayoutIcons,
9150
+ Ky as defaultLayoutLabels,
9151
+ Vy as defaultPaletteIcons,
9152
+ Jy as defaultPaletteSources,
9153
+ zp as defaultScreenEditorStrings,
9137
9154
  nr as defaultStructuredEditorStrings,
9138
9155
  Sa as defaultWindowSize,
9139
- Zm as fitWindowSize,
9140
- bv as identified,
9156
+ sh as fitWindowSize,
9157
+ Iv as identified,
9141
9158
  ls as isCollectionOfRecords,
9142
- Ym as isLegacyDefaultWindow,
9159
+ rh as isLegacyDefaultWindow,
9143
9160
  as as isObjectWithFields,
9144
- fv as isPrimitiveList,
9161
+ Cv as isPrimitiveList,
9145
9162
  ln as isRecord,
9146
- yv as isStringMap,
9163
+ Pv as isStringMap,
9147
9164
  Ho as isStructured,
9148
- vv as movedItem,
9149
- kv as newItem,
9165
+ Tv as movedItem,
9166
+ Ov as newItem,
9150
9167
  ir as numberListEditorKind,
9151
9168
  ta as readSceneDocument,
9152
- Dy as readThumbnailDocument,
9153
- Xm as resolveInitialWindowSize,
9169
+ qy as readThumbnailDocument,
9170
+ ah as resolveInitialWindowSize,
9154
9171
  is as scalarEditorKind,
9155
- ng as screenEditorPrimeReactDefaults,
9156
- Iy as screenEditorRuntimeForProfile,
9172
+ dg as screenEditorPrimeReactDefaults,
9173
+ Wy as screenEditorRuntimeForProfile,
9157
9174
  pt as sliceNamedBy,
9158
9175
  rr as stringListEditorKind,
9159
9176
  ss as stringMapEditorKind,
9160
9177
  rs as stringOrListEditorKind,
9161
9178
  Hn as structuredProblem,
9162
- ev as thumbnailGeometry,
9163
- xy as thumbnailMaxBodyHeight,
9164
- Py as thumbnailWidth,
9165
- My as toLayoutContainerDescriptors,
9166
- cg as toSceneCandidates,
9167
- gv as withField,
9179
+ lv as thumbnailGeometry,
9180
+ Hy as thumbnailMaxBodyHeight,
9181
+ zy as thumbnailWidth,
9182
+ Qy as toLayoutContainerDescriptors,
9183
+ vg as toSceneCandidates,
9184
+ Nv as withField,
9168
9185
  os as withIdentities,
9169
- Sv as withItem,
9170
- Cv as withoutItem
9186
+ Dv as withItem,
9187
+ Rv as withoutItem
9171
9188
  };