@cratis/event-models 0.263.1 → 0.263.3

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,22 +1,22 @@
1
- import { c as Rs, d as Ds, f as Ge, l as Pr, m as wo, p as _s, s as $s, t as Or, u as cn } from "./defaultStructuredEditorStrings-Ch1I0Lci.js";
1
+ import { c as Rs, d as Ds, f as qe, l as Pr, m as wo, p as _s, s as $s, t as Or, u as cn } from "./defaultStructuredEditorStrings-Ch1I0Lci.js";
2
2
  import { t as xr } from "./QueryBindingEditor-MTd0R7iQ.js";
3
- import { i as ui, n as Es, r as As, t as Fs } from "./toTemplateSources-BhsOzMx1.js";
4
- import { _ as Ms, a as ay, c as pi, d as Rr, f as Ls, g as sy, h as Bs, i as js, l as ly, m as Us, n as cy, o as wn, p as Dr, r as zs, s as dy, t as uy, u as py, v as my, y as hy } from "./structuredValue-vqCZttsk.js";
3
+ import { i as ui, n as Es, r as As, t as Ms } from "./toTemplateSources-BhsOzMx1.js";
4
+ import { _ as Fs, a as ay, c as pi, d as Rr, f as Ls, g as sy, h as Bs, i as js, l as ly, m as Us, n as cy, o as wn, p as Dr, r as zs, s as dy, t as uy, u as py, v as my, y as hy } from "./structuredValue-vqCZttsk.js";
5
5
  import { a as ye, n as Ws, r as Ks } from "./iconDiagnostics-Ds4CnqD0.js";
6
6
  import { t as vy } from "./StructuredValueEditor-DUSATTWd.js";
7
- import { Component as Hs, createContext as Gs, createElement as Je, useCallback as H, useContext as qs, useEffect as ie, useId as Vs, useLayoutEffect as Te, useMemo as j, useRef as J, useState as M } from "react";
7
+ import { Component as Hs, createContext as qs, createElement as Je, useCallback as H, useContext as Gs, useEffect as ie, useId as Vs, useLayoutEffect as Te, useMemo as j, useRef as J, useState as F } from "react";
8
8
  import { Fragment as re, jsx as a, jsxs as b } from "react/jsx-runtime";
9
- import { BindingMode as ky, BindingNullBehavior as Sy, BindingSourceKind as Cy, BindingSourceKind as Bt, CollectionOperation as ke, ColorScheme as Js, ComponentCategory as Qs, CornerStyle as kn, DestinationKind as Ty, DestinationKind as _r, DiagnosticCode as Ys, EditTarget as Zs, EditingScopeKind as an, FlowContainerKind as Sn, FormGenerationMode as ve, FormWidthUnit as Ne, GridUnitType as ko, HorizontalAlignment as So, InteractionActionKind as ht, InteractionTriggerKind as $r, LogoKind as Cn, NavigationRegionKind as gt, NavigationRegionMode as $e, Orientation as ft, PackageKind as Qe, PropertyEditorKind as X, PropertyValueType as q, ProvenanceKind as mi, QueryOriginKind as Xs, QueryResultShape as el, SceneEditKind as Z, SceneNodeKind as tl, TemplateReferenceSource as Dt, TemplateScope as St, ValueSource as Er, VerticalAlignment as Co, Visibility as To, componentCategories as nl } from "@cratis/scene.model";
10
- import { ApplicationStructureIndex as dn, EffectiveIconCatalog as ol, NavigationEditKind as hi, TemplateCatalogKind as Ar, ToolbarDiagnosticSeverity as il, addNavItem as rl, applicableTemplates as al, applyEdit as Fr, applyNavigationEdits as sl, baseComponentLibraries as ll, componentArgumentSourcePrefix as cl, componentBadge as fi, computeSizeClass as dl, corePackage as No, createDescriptorCatalog as ul, diagnoseNavigationRegions as pl, effectiveNavigation as Mr, effectivePackages as Lr, elementNodeId as ae, findComponentDescriptor as Io, findLayoutTypeDescriptor as gi, inspect as Po, isCanvas as vt, isDockPanel as ml, isExternalComponent as Ye, isGrid as Oo, isPackageSelectionValid as hl, isPanel as Yt, isStackPanel as xo, isThemeCompatible as fl, isWrapPanel as gl, matchComponentQuery as vl, navigationModes as bl, normalizeNavigationMode as yl, normalizeToolbarButton as wl, packagesOfKind as vi, rankFrequentlyUsedComponents as kl, resolveComponentName as Mt, resolveEffectiveConfiguration as Br, resolveIconLibraries as Sl, resolvePackageDependencies as Cl, resolveScreenTemplates as Tl, resolveTemplateChain as Ro, resolveToolbarButton as Nl, screenTemplateNodeId as Il, setApplicationLogo as Pl, slotNodeId as Ol, switchRegionMode as jr, toComponentCatalog as un, toolbarButtonFromItem as Do, validateToolbarButtons as xl, validateValue as Tn } from "@cratis/scene.engine";
9
+ import { BindingMode as ky, BindingNullBehavior as Sy, BindingSourceKind as Cy, BindingSourceKind as Bt, CollectionOperation as ke, ColorScheme as Js, ComponentCategory as Qs, CornerStyle as kn, DestinationKind as Ty, DestinationKind as _r, DiagnosticCode as Ys, EditTarget as Zs, EditingScopeKind as an, FlowContainerKind as Sn, FormGenerationMode as ve, FormWidthUnit as Ne, GridUnitType as ko, HorizontalAlignment as So, InteractionActionKind as ht, InteractionTriggerKind as $r, LogoKind as Cn, NavigationRegionKind as gt, NavigationRegionMode as $e, Orientation as ft, PackageKind as Qe, PropertyEditorKind as X, PropertyValueType as G, ProvenanceKind as mi, QueryOriginKind as Xs, QueryResultShape as el, SceneEditKind as Z, SceneNodeKind as tl, TemplateReferenceSource as Dt, TemplateScope as St, ValueSource as Er, VerticalAlignment as Co, Visibility as To, componentCategories as nl } from "@cratis/scene.model";
10
+ import { ApplicationStructureIndex as dn, EffectiveIconCatalog as ol, NavigationEditKind as hi, TemplateCatalogKind as Ar, ToolbarDiagnosticSeverity as il, addNavItem as rl, applicableTemplates as al, applyEdit as Mr, applyNavigationEdits as sl, baseComponentLibraries as ll, componentArgumentSourcePrefix as cl, componentBadge as fi, computeSizeClass as dl, corePackage as No, createDescriptorCatalog as ul, diagnoseNavigationRegions as pl, effectiveNavigation as Fr, effectivePackages as Lr, elementNodeId as ae, findComponentDescriptor as Io, findLayoutTypeDescriptor as gi, inspect as Po, isCanvas as vt, isDockPanel as ml, isExternalComponent as Ye, isGrid as Oo, isPackageSelectionValid as hl, isPanel as Yt, isStackPanel as xo, isThemeCompatible as fl, isWrapPanel as gl, matchComponentQuery as vl, navigationModes as bl, normalizeNavigationMode as yl, normalizeToolbarButton as wl, packagesOfKind as vi, rankFrequentlyUsedComponents as kl, resolveComponentName as Ft, resolveEffectiveConfiguration as Br, resolveIconLibraries as Sl, resolvePackageDependencies as Cl, resolveScreenTemplates as Tl, resolveTemplateChain as Ro, resolveToolbarButton as Nl, screenTemplateNodeId as Il, setApplicationLogo as Pl, slotNodeId as Ol, switchRegionMode as jr, toComponentCatalog as un, toolbarButtonFromItem as Do, validateToolbarButtons as xl, validateValue as Tn } from "@cratis/scene.engine";
11
11
  import { ErrorBoundary as wt, IconButton as we, Tabs as Rl } from "@cratis/components/Common";
12
- import { ColorScheme as Ur, ComponentName as Dl, LayoutConfigProvider as zr, LayoutMode as _o, LayoutName as _l, TemplatePreviewState as pt, applyTemplatePreviewState as $l, colorSchemes as El, composeApplicationScreen as Al, composeScreenElement as Fl, defaultApplicationChrome as Ml, defaultBlueprint as Wr, defaultBlueprintName as Kr, effectiveShellOf as Hr, externalComponent as $o, foundationSamples as Ll, layoutModes as Gr, previewProfile as Bl, resolveElementComponentNames as Eo } from "@cratis/scene.blueprint.default";
13
- import { IconAdapterProvider as qr, SceneElementView as Ao, SceneNavigationModelProvider as jl, SceneNavigationProvider as Ul, SceneThemeProvider as Vr, SliceInvokerProvider as zl, componentRegistryKey as _t, corePackage as Jr, createDryRunInvoker as Wl, itemEditableRule as Kl, itemInheritedReason as Hl, mergeIconAdapters as Gl, mergePackageRegistries as Qr, resolveDesignTimeHost as ql } from "@cratis/scene.react";
12
+ import { ColorScheme as Ur, ComponentName as Dl, LayoutConfigProvider as zr, LayoutMode as _o, LayoutName as _l, TemplatePreviewState as pt, applyTemplatePreviewState as $l, colorSchemes as El, composeApplicationScreen as Al, composeScreenElement as Ml, defaultApplicationChrome as Fl, defaultBlueprint as Wr, defaultBlueprintName as Kr, effectiveShellOf as Hr, externalComponent as $o, foundationSamples as Ll, layoutModes as qr, previewProfile as Bl, resolveElementComponentNames as Eo } from "@cratis/scene.blueprint.default";
13
+ import { IconAdapterProvider as Gr, SceneElementView as Ao, SceneNavigationModelProvider as jl, SceneNavigationProvider as Ul, SceneThemeProvider as Vr, SliceInvokerProvider as zl, componentRegistryKey as _t, corePackage as Jr, createDryRunInvoker as Wl, itemEditableRule as Kl, itemInheritedReason as Hl, mergeIconAdapters as ql, mergePackageRegistries as Qr, resolveDesignTimeHost as Gl } from "@cratis/scene.react";
14
14
  import { Toolbar as Vl, ToolbarFolder as Jl } from "@cratis/components/Toolbar";
15
15
  import { PrototypeLayout as it } from "@cratis/scene";
16
16
  import { FileUploadHandlerProvider as Ql, QuillLoaderProvider as Yl, primeReactPackage as Yr, primeReactThemes as bi, usePrimeReactTheme as Zl } from "@cratis/scene.primereact";
17
- import { FaAlignJustify as yi, FaAlignLeft as Xl, FaAngleDoubleRight as Nn, FaArrowsAltH as ec, FaBars as mt, FaBell as tc, FaBolt as nc, FaBookmark as oc, FaBorderAll as ic, FaCalendarAlt as wi, FaCaretSquareDown as ki, FaChartBar as Zr, FaCheckSquare as Si, FaClock as rc, FaClone as ac, FaCode as sc, FaCog as Ci, FaColumns as In, FaCommentAlt as lc, FaCommentDots as Xr, FaCompass as cc, FaCreditCard as dc, FaCube as uc, FaDatabase as pc, FaDesktop as Vn, FaEdit as Pn, FaEllipsisH as mc, FaExclamationCircle as On, FaExpandArrowsAlt as hc, FaFileAlt as Jn, FaFileUpload as fc, FaFilter as Ti, FaFolderOpen as Ni, FaFont as Ii, FaGripLines as ze, FaGripLinesVertical as gc, FaGripVertical as vc, FaHashtag as Pi, FaHeading as Zt, FaHistory as bc, FaHourglassHalf as yc, FaIdBadge as wc, FaImage as ea, FaImages as Oi, FaInfoCircle as kc, FaKeyboard as ta, FaLayerGroup as Sc, FaLink as Cc, FaList as na, FaListAlt as xn, FaListOl as Rn, FaLock as Tc, FaMask as xi, FaMobileAlt as Nc, FaMousePointer as Xt, FaObjectGroup as Ic, FaPaintBrush as Pc, FaPalette as Dn, FaPen as Oc, FaPercent as xc, FaPlay as Rc, FaProjectDiagram as Dc, FaPuzzlePiece as oa, FaRedo as _c, FaRegCheckCircle as $c, FaRegCircle as _n, FaRegSquare as Fo, FaSave as Ec, FaSearch as Ri, FaShapes as ia, FaSitemap as $n, FaSlidersH as Qn, FaSpinner as Di, FaSquare as Ac, FaStar as Fc, FaStepForward as En, FaStickyNote as Mc, FaStream as Lc, FaTable as Ct, FaTag as jt, FaTerminal as Bc, FaTh as _i, FaThLarge as Mo, FaThList as Lo, FaToggleOn as ra, FaTools as jc, FaTrash as Uc, FaTree as Yn, FaUndo as zc, FaUser as Wc, FaUserCircle as Kc, FaVectorSquare as Hc, FaWindowMaximize as Tt, FaWindowRestore as Gc } from "react-icons/fa";
17
+ import { FaAlignJustify as yi, FaAlignLeft as Xl, FaAngleDoubleRight as Nn, FaArrowsAltH as ec, FaBars as mt, FaBell as tc, FaBolt as nc, FaBookmark as oc, FaBorderAll as ic, FaCalendarAlt as wi, FaCaretSquareDown as ki, FaChartBar as Zr, FaCheckSquare as Si, FaClock as rc, FaClone as ac, FaCode as sc, FaCog as Ci, FaColumns as In, FaCommentAlt as lc, FaCommentDots as Xr, FaCompass as cc, FaCreditCard as dc, FaCube as uc, FaDatabase as pc, FaDesktop as Vn, FaEdit as Pn, FaEllipsisH as mc, FaExclamationCircle as On, FaExpandArrowsAlt as hc, FaFileAlt as Jn, FaFileUpload as fc, FaFilter as Ti, FaFolderOpen as Ni, FaFont as Ii, FaGripLines as ze, FaGripLinesVertical as gc, FaGripVertical as vc, FaHashtag as Pi, FaHeading as Zt, FaHistory as bc, FaHourglassHalf as yc, FaIdBadge as wc, FaImage as ea, FaImages as Oi, FaInfoCircle as kc, FaKeyboard as ta, FaLayerGroup as Sc, FaLink as Cc, FaList as na, FaListAlt as xn, FaListOl as Rn, FaLock as Tc, FaMask as xi, FaMobileAlt as Nc, FaMousePointer as Xt, FaObjectGroup as Ic, FaPaintBrush as Pc, FaPalette as Dn, FaPen as Oc, FaPercent as xc, FaPlay as Rc, FaProjectDiagram as Dc, FaPuzzlePiece as oa, FaRedo as _c, FaRegCheckCircle as $c, FaRegCircle as _n, FaRegSquare as Mo, FaSave as Ec, FaSearch as Ri, FaShapes as ia, FaSitemap as $n, FaSlidersH as Qn, FaSpinner as Di, FaSquare as Ac, FaStar as Mc, FaStepForward as En, FaStickyNote as Fc, FaStream as Lc, FaTable as Ct, FaTag as jt, FaTerminal as Bc, FaTh as _i, FaThLarge as Fo, FaThList as Lo, FaToggleOn as ra, FaTools as jc, FaTrash as Uc, FaTree as Yn, FaUndo as zc, FaUser as Wc, FaUserCircle as Kc, FaVectorSquare as Hc, FaWindowMaximize as Tt, FaWindowRestore as qc } from "react-icons/fa";
18
18
  import "@cratis/scene.primereact/primeReactTheme.css";
19
- import { LuChevronLeft as qc, LuChevronRight as Vc, LuCopy as Jc, LuCornerDownRight as Qc, LuLink as Yc, LuLock as aa, LuPanelLeft as Zc, LuPlus as Xc, LuTrash2 as ed, LuZap as td } from "react-icons/lu";
19
+ import { LuChevronLeft as Gc, LuChevronRight as Vc, LuCopy as Jc, LuCornerDownRight as Qc, LuLink as Yc, LuLock as aa, LuPanelLeft as Zc, LuPlus as Xc, LuTrash2 as ed, LuZap as td } from "react-icons/lu";
20
20
  import { PrimeReactProvider as nd } from "@primereact/core/config";
21
21
  import { styles as od } from "@primereact/styles/accordion";
22
22
  import { styles as id } from "@primereact/styles/autocomplete";
@@ -51,8 +51,8 @@ import { styles as _d } from "@primereact/styles/inputcolor";
51
51
  import { styles as $d } from "@primereact/styles/inputgroup";
52
52
  import { styles as Ed } from "@primereact/styles/inputnumber";
53
53
  import { styles as Ad } from "@primereact/styles/inputotp";
54
- import { styles as Fd } from "@primereact/styles/inputtags";
55
- import { styles as Md } from "@primereact/styles/inputtext";
54
+ import { styles as Md } from "@primereact/styles/inputtags";
55
+ import { styles as Fd } from "@primereact/styles/inputtext";
56
56
  import { styles as Ld } from "@primereact/styles/knob";
57
57
  import { styles as Bd } from "@primereact/styles/label";
58
58
  import { styles as jd } from "@primereact/styles/listbox";
@@ -61,8 +61,8 @@ import { styles as zd } from "@primereact/styles/message";
61
61
  import { styles as Wd } from "@primereact/styles/metergroup";
62
62
  import { styles as Kd } from "@primereact/styles/navigationmenu";
63
63
  import { styles as Hd } from "@primereact/styles/organizationchart";
64
- import { styles as Gd } from "@primereact/styles/overlaybadge";
65
- import { styles as qd } from "@primereact/styles/paginator";
64
+ import { styles as qd } from "@primereact/styles/overlaybadge";
65
+ import { styles as Gd } from "@primereact/styles/paginator";
66
66
  import { styles as Vd } from "@primereact/styles/panel";
67
67
  import { styles as Jd } from "@primereact/styles/inputpassword";
68
68
  import { styles as Qd } from "@primereact/styles/popover";
@@ -107,8 +107,8 @@ import { ordersBlueprint as _u } from "@cratis/scene.blueprint.orders";
107
107
  import { ticketingBlueprint as $u } from "@cratis/scene.blueprint.ticketing";
108
108
  import { vendorsBlueprint as Eu } from "@cratis/scene.blueprint.vendors";
109
109
  import { workOrdersBlueprint as Au } from "@cratis/scene.blueprint.work-orders";
110
- import { dynamicIconImports as Fu } from "lucide-react/dynamic";
111
- function Mu(e, t, n) {
110
+ import { dynamicIconImports as Mu } from "lucide-react/dynamic";
111
+ function Fu(e, t, n) {
112
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);
113
113
  return {
114
114
  width: o,
@@ -133,9 +133,9 @@ var ju = (e) => e ? {
133
133
  "se",
134
134
  "sw"
135
135
  ], da = ({ sourceRect: e, initialSize: t, centerOffsetX: n = 0, children: o, renderInspector: i, canClose: r, onClosed: s }) => {
136
- const [l, c] = M("entering"), [u, d] = M(() => ju(t)), p = J(u);
136
+ const [l, c] = F("entering"), [u, d] = F(() => ju(t)), p = J(u);
137
137
  p.current = u;
138
- const [m, h] = M(!1), [f, v] = M(() => ({
138
+ const [m, h] = F(!1), [f, v] = F(() => ({
139
139
  width: window.innerWidth,
140
140
  height: window.innerHeight
141
141
  }));
@@ -180,7 +180,7 @@ var ju = (e) => e ? {
180
180
  });
181
181
  }, []), S = H(() => {
182
182
  k.current = null;
183
- }, []), w = Mu(u, f, n - (m ? 360 / 2 : 0)), T = w.offsetX, E = {
183
+ }, []), w = Fu(u, f, n - (m ? 360 / 2 : 0)), T = w.offsetX, E = {
184
184
  size: u,
185
185
  setSize: d,
186
186
  isInspectorOpen: m,
@@ -191,7 +191,7 @@ var ju = (e) => e ? {
191
191
  closeWithoutSaving: () => {
192
192
  x(!0);
193
193
  }
194
- }, I = e.left + e.width / 2, C = e.top + e.height / 2, $ = f.width / 2 + T - w.width / 2, U = f.height / 2 - w.height / 2, D = `${I - $}px ${C - U}px`, F = [
194
+ }, I = e.left + e.width / 2, C = e.top + e.height / 2, $ = f.width / 2 + T - w.width / 2, U = f.height / 2 - w.height / 2, D = `${I - $}px ${C - U}px`, M = [
195
195
  "prototype-editor-overlay-content",
196
196
  l === "visible" ? "prototype-editor-overlay-content--visible" : "",
197
197
  l === "closing" ? "prototype-editor-overlay-content--closing" : ""
@@ -203,7 +203,7 @@ var ju = (e) => e ? {
203
203
  x();
204
204
  },
205
205
  children: [/* @__PURE__ */ b("div", {
206
- className: F,
206
+ className: M,
207
207
  "data-testid": "studio-screen-editor-frame",
208
208
  style: {
209
209
  transformOrigin: D,
@@ -295,7 +295,7 @@ function b0(e) {
295
295
  const t = e.screens.map((n) => n.name);
296
296
  return [...t.filter((n) => n === le), ...t.filter((n) => n !== le)];
297
297
  }
298
- var An = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t) : void 0, Gu = (e) => {
298
+ var An = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t) : void 0, qu = (e) => {
299
299
  const t = e;
300
300
  return !!t && typeof t == "object" && [
301
301
  "left",
@@ -304,11 +304,11 @@ var An = (e, t) => typeof t == "string" ? Object.values(e).find((n) => n === t)
304
304
  "bottom"
305
305
  ].every((n) => typeof t[n] == "number");
306
306
  };
307
- function qu(e, t, n) {
307
+ function Gu(e, t, n) {
308
308
  const o = e;
309
309
  o.zIndex = n;
310
310
  const i = An(To, t.visibility);
311
- i !== void 0 && (o.visibility = i), typeof t.isEnabled == "boolean" && (o.isEnabled = t.isEnabled), typeof t.opacity == "number" && (o.opacity = t.opacity), Gu(t.margin) && (o.margin = { ...t.margin });
311
+ i !== void 0 && (o.visibility = i), typeof t.isEnabled == "boolean" && (o.isEnabled = t.isEnabled), typeof t.opacity == "number" && (o.opacity = t.opacity), qu(t.margin) && (o.margin = { ...t.margin });
312
312
  const r = An(So, t.horizontalAlignment);
313
313
  r !== void 0 && (o.horizontalAlignment = r);
314
314
  const s = An(Co, t.verticalAlignment);
@@ -332,23 +332,23 @@ function Vu(e) {
332
332
  ...Xn,
333
333
  margin: { ...Xn.margin }
334
334
  };
335
- return qu(t, e, 0), delete t.zIndex, t;
335
+ return Gu(t, e, 0), delete t.zIndex, t;
336
336
  }
337
- var Ju = Object.keys(Xn), G = /* @__PURE__ */ (function(e) {
337
+ var Ju = Object.keys(Xn), q = /* @__PURE__ */ (function(e) {
338
338
  return e.Stack = "stack", e.Row = "row", e.Grid = "grid", e.Container = "container", e.Wrap = "wrap", e.Canvas = "canvas", e;
339
339
  })({}), Qu = "StudioLayout", Yu = {
340
- Stack: G.Stack,
341
- Row: G.Row,
342
- Grid: G.Grid,
343
- Container: G.Container,
344
- Wrap: G.Wrap,
345
- Canvas: G.Canvas
340
+ Stack: q.Stack,
341
+ Row: q.Row,
342
+ Grid: q.Grid,
343
+ Container: q.Container,
344
+ Wrap: q.Wrap,
345
+ Canvas: q.Canvas
346
346
  };
347
347
  function Zu(e) {
348
348
  const t = Object.entries(Yu).find(([, n]) => n === e)?.[0] ?? "Container";
349
349
  return `${Qu}.${t}`;
350
350
  }
351
- var et = "Canvas.Left", tt = "Canvas.Top", Ai = "legacyType", Xu = "legacy", Fi = "legacyExtras", ep = {
351
+ var et = "Canvas.Left", tt = "Canvas.Top", Ai = "legacyType", Xu = "legacy", Mi = "legacyExtras", ep = {
352
352
  DatePicker: "calendar",
353
353
  OrgChart: "organizationChart",
354
354
  Chips: "chips",
@@ -362,10 +362,10 @@ function eo(e) {
362
362
  return Array.isArray(e) ? e.filter((t) => t !== null).map(eo) : e !== null && typeof e == "object" ? Object.fromEntries(Object.entries(e).filter(([, t]) => t !== null).map(([t, n]) => [t, eo(n)])) : e;
363
363
  }
364
364
  function ma(e) {
365
- if (vt(e)) return G.Canvas;
366
- if (Oo(e)) return G.Grid;
365
+ if (vt(e)) return q.Canvas;
366
+ if (Oo(e)) return q.Grid;
367
367
  if (!ml(e))
368
- return xo(e) ? e.orientation === ft.Horizontal ? G.Row : G.Stack : gl(e) ? G.Wrap : G.Container;
368
+ return xo(e) ? e.orientation === ft.Horizontal ? q.Row : q.Stack : gl(e) ? q.Wrap : q.Container;
369
369
  }
370
370
  function en(e, t = () => {
371
371
  }) {
@@ -375,7 +375,7 @@ var ge = (e, t) => typeof e == "number" ? e : t;
375
375
  function ha(e, t) {
376
376
  const n = e, o = { ...n.properties ?? {} }, i = cn(e).map((y) => ha(y, t)), r = o[Xu];
377
377
  if (r != null && typeof r == "object") return op(r, n, o, i);
378
- const s = o[Fi], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[Ai] : void 0, c = l ?? (Yt(e) ? Zu(ma(e)) : t(Ye(e) ? e.componentName : "")), u = Ye(e) ? e.componentName : "", { [Ai]: d, [Fi]: p, [et]: m, [tt]: h, ...f } = o, v = {};
378
+ const s = o[Mi], l = typeof o.legacyType == "string" && o.legacyType !== "" ? o[Ai] : void 0, c = l ?? (Yt(e) ? Zu(ma(e)) : t(Ye(e) ? e.componentName : "")), u = Ye(e) ? e.componentName : "", { [Ai]: d, [Mi]: p, [et]: m, [tt]: h, ...f } = o, v = {};
379
379
  for (const y of s?.topKeys ?? []) y in f && (v[y] = f[y], delete f[y]);
380
380
  const g = ge(m, s?.position.x ?? 0), k = ge(h, s?.position.y ?? 0), x = n.name ?? "", O = s?.emptyName === !0 && x === (l ?? "");
381
381
  return {
@@ -622,14 +622,14 @@ function lp({ row: e, adapter: t, strings: n, isSelected: o, isFocusable: i, dro
622
622
  ]
623
623
  });
624
624
  }
625
- var Mi = {
625
+ var Fi = {
626
626
  ArrowUp: Ee.MoveUp,
627
627
  ArrowDown: Ee.MoveDown,
628
628
  ArrowLeft: Ee.Outdent,
629
629
  ArrowRight: Ee.Indent
630
630
  };
631
631
  function ya({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEdit: r, onRemove: s }) {
632
- const [l, c] = M(() => new Set(e.flatMap((I) => [t.idOf(I), ...t.childrenOf(I).map((C) => t.idOf(C))]))), [u, d] = M(o), [p, m] = M(), [h, f] = M(), [v, g] = M(""), k = j(() => va(e, l, t), [
632
+ const [l, c] = F(() => new Set(e.flatMap((I) => [t.idOf(I), ...t.childrenOf(I).map((C) => t.idOf(C))]))), [u, d] = F(o), [p, m] = F(), [h, f] = F(), [v, g] = F(""), k = j(() => va(e, l, t), [
633
633
  e,
634
634
  l,
635
635
  t
@@ -644,8 +644,8 @@ function ya({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
644
644
  I && (d(I), requestAnimationFrame(() => document.querySelector(`[data-row-id="${CSS.escape(I)}"]`)?.focus()));
645
645
  }, w = (I, C) => {
646
646
  const $ = k.findIndex((D) => D.id === C), U = k[$];
647
- if (I.altKey && Mi[I.key]) {
648
- I.preventDefault(), y(rp(e, C, Mi[I.key], t)), S(C);
647
+ if (I.altKey && Fi[I.key]) {
648
+ I.preventDefault(), y(rp(e, C, Fi[I.key], t)), S(C);
649
649
  return;
650
650
  }
651
651
  if (Bo(I) && s && to(e, C, t)) {
@@ -721,7 +721,7 @@ function ya({ roots: e, adapter: t, strings: n, selectedId: o, onSelect: i, onEd
721
721
  children: v
722
722
  })] });
723
723
  }
724
- var Fn = /* @__PURE__ */ (function(e) {
724
+ var Mn = /* @__PURE__ */ (function(e) {
725
725
  return e.Properties = "properties", e.Structure = "structure", e;
726
726
  })({}), cp = /* @__PURE__ */ new Set([et, tt]);
727
727
  function dp(e, t, n) {
@@ -738,9 +738,9 @@ var up = {
738
738
  ]),
739
739
  commandForm: /* @__PURE__ */ new Set(["command"])
740
740
  }, wa = (e, t) => up[e.slice(e.lastIndexOf(":") + 1)]?.has(t) ?? !1, pp = /* @__PURE__ */ new Set([
741
- q.Object,
742
- q.Json,
743
- q.Collection
741
+ G.Object,
742
+ G.Json,
743
+ G.Collection
744
744
  ]), mp = (e) => e.descriptor.output === !0 && pp.has(e.descriptor.valueType), hp = (e, t, n = () => !1) => e.filter((o) => !wa(t, o.descriptor.path) && !mp(o) && !n(o));
745
745
  function fp(e) {
746
746
  const t = /* @__PURE__ */ new Map();
@@ -956,7 +956,7 @@ function Uo(e, t, n = []) {
956
956
  }
957
957
  }
958
958
  var Cp = ({ component: e, descriptor: t, controller: n, environment: o, strings: i, disabled: r }) => {
959
- const [s, l] = M([]), { designTime: c, packageDescriptorOf: u } = o.runtime, d = u(t);
959
+ const [s, l] = F([]), { designTime: c, packageDescriptorOf: u } = o.runtime, d = u(t);
960
960
  if ((d.actions ?? []).length === 0) return null;
961
961
  const p = (g) => mn(e, d, n, o, g), m = c.actions(d, p(i.properties.designTimeActions)), h = Uo(d, o, m.map((g) => g.diagnostic)) !== void 0, f = h ? [] : m.flatMap((g) => g.diagnostic ? [g.diagnostic] : []), v = (g, k) => {
962
962
  const x = c.runAction(d, g, p(k));
@@ -1084,7 +1084,7 @@ var Rp = ({ controller: e, slices: t, strings: n, disabled: o }) => {
1084
1084
  }) })
1085
1085
  ]
1086
1086
  });
1087
- }, Fe = (e = 1, t = Ne.Fraction) => t === Ne.Auto ? { unit: t } : {
1087
+ }, Me = (e = 1, t = Ne.Fraction) => t === Ne.Auto ? { unit: t } : {
1088
1088
  unit: t,
1089
1089
  value: e
1090
1090
  };
@@ -1092,14 +1092,14 @@ function Dp(e) {
1092
1092
  return {
1093
1093
  columns: [{
1094
1094
  index: 1,
1095
- width: Fe(1)
1095
+ width: Me(1)
1096
1096
  }, {
1097
1097
  index: 2,
1098
- width: Fe(1)
1098
+ width: Me(1)
1099
1099
  }],
1100
1100
  placements: e.map((t, n) => zo(t.name, n)),
1101
- columnGap: Fe(16, Ne.Pixels),
1102
- rowGap: Fe(12, Ne.Pixels)
1101
+ columnGap: Me(16, Ne.Pixels),
1102
+ rowGap: Me(12, Ne.Pixels)
1103
1103
  };
1104
1104
  }
1105
1105
  function _p(e) {
@@ -1209,14 +1209,14 @@ function io(e) {
1209
1209
  fields: e.inputs.map((t) => ({ name: t.name }))
1210
1210
  };
1211
1211
  }
1212
- function Fp(e, t) {
1212
+ function Mp(e, t) {
1213
1213
  return Lt({
1214
1214
  ...e,
1215
1215
  generationMode: ve.Manual,
1216
- fields: Mp(t)
1216
+ fields: Fp(t)
1217
1217
  });
1218
1218
  }
1219
- function Mp(e) {
1219
+ function Fp(e) {
1220
1220
  return e.inputs.map((t) => ({
1221
1221
  name: t.name,
1222
1222
  sourceProperty: t.name,
@@ -1235,7 +1235,7 @@ function Bi(e, t, n) {
1235
1235
  function Bp(e, t) {
1236
1236
  return t ? e.find((n) => n.forCommand === At(t)) : void 0;
1237
1237
  }
1238
- var jp = bt, Me = /* @__PURE__ */ (function(e) {
1238
+ var jp = bt, Fe = /* @__PURE__ */ (function(e) {
1239
1239
  return e.AutoMapped = "autoMapped", e.Renamed = "renamed", e.Composed = "composed", e.Broken = "broken", e;
1240
1240
  })({});
1241
1241
  function Up(e, t) {
@@ -1245,23 +1245,23 @@ function Up(e, t) {
1245
1245
  }));
1246
1246
  }
1247
1247
  function zp(e, t) {
1248
- if (e.composeUsing) return Me.Composed;
1248
+ if (e.composeUsing) return Fe.Composed;
1249
1249
  const n = e.sourceProperty ?? e.name;
1250
- return t.includes(n) ? e.sourceProperty ? Me.Renamed : Me.AutoMapped : Me.Broken;
1250
+ return t.includes(n) ? e.sourceProperty ? Fe.Renamed : Fe.AutoMapped : Fe.Broken;
1251
1251
  }
1252
- var qe = /* @__PURE__ */ (function(e) {
1252
+ var Ge = /* @__PURE__ */ (function(e) {
1253
1253
  return e.None = "none", e.ViaQuery = "viaQuery", e.FromItem = "fromItem", e;
1254
1254
  })({});
1255
1255
  function Wp(e) {
1256
1256
  return e ? Kp(e) ? {
1257
- kind: qe.ViaQuery,
1257
+ kind: Ge.ViaQuery,
1258
1258
  queryName: e.queryName,
1259
1259
  parameterNames: Object.keys(e.parameterBindings)
1260
1260
  } : {
1261
- kind: qe.FromItem,
1261
+ kind: Ge.FromItem,
1262
1262
  parameterNames: []
1263
1263
  } : {
1264
- kind: qe.None,
1264
+ kind: Ge.None,
1265
1265
  parameterNames: []
1266
1266
  };
1267
1267
  }
@@ -1269,22 +1269,22 @@ function Kp(e) {
1269
1269
  return "queryName" in e;
1270
1270
  }
1271
1271
  var Hp = {
1272
- [Me.AutoMapped]: "Auto-mapped",
1273
- [Me.Renamed]: "Renamed",
1274
- [Me.Composed]: "Composed",
1275
- [Me.Broken]: "Broken"
1276
- }, Gp = {
1277
- [qe.None]: "No populate source",
1278
- [qe.ViaQuery]: "Populate via query",
1279
- [qe.FromItem]: "Populate from item"
1272
+ [Fe.AutoMapped]: "Auto-mapped",
1273
+ [Fe.Renamed]: "Renamed",
1274
+ [Fe.Composed]: "Composed",
1275
+ [Fe.Broken]: "Broken"
1276
+ }, qp = {
1277
+ [Ge.None]: "No populate source",
1278
+ [Ge.ViaQuery]: "Populate via query",
1279
+ [Ge.FromItem]: "Populate from item"
1280
1280
  };
1281
- function qp({ form: e, commandProperties: t, onFieldSelected: n }) {
1281
+ function Gp({ form: e, commandProperties: t, onFieldSelected: n }) {
1282
1282
  const o = Wp(e.populateSource), i = Up(e, t);
1283
1283
  return /* @__PURE__ */ b("div", {
1284
1284
  className: "studio-editor-form-designer",
1285
1285
  children: [/* @__PURE__ */ b("div", {
1286
1286
  className: "studio-editor-form-designer-populate-source",
1287
- children: [/* @__PURE__ */ a("span", { children: Gp[o.kind] }), o.kind === qe.ViaQuery && /* @__PURE__ */ b("span", {
1287
+ children: [/* @__PURE__ */ a("span", { children: qp[o.kind] }), o.kind === Ge.ViaQuery && /* @__PURE__ */ b("span", {
1288
1288
  className: "studio-editor-form-designer-populate-source-detail",
1289
1289
  children: [o.queryName, o.parameterNames.length > 0 && ` by ${o.parameterNames.join(", ")}`]
1290
1290
  })]
@@ -1324,7 +1324,7 @@ var Vp = ({ form: e, strings: t, onChange: n }) => {
1324
1324
  className: "studio-editor-properties__form-layout-row",
1325
1325
  children: [/* @__PURE__ */ a("span", { children: t.column(r.index) }), /* @__PURE__ */ a(tn, {
1326
1326
  name: t.column(r.index),
1327
- value: r.width ?? Fe(),
1327
+ value: r.width ?? Me(),
1328
1328
  strings: t,
1329
1329
  onChange: (s) => n(Ep(o, r.index, s))
1330
1330
  })]
@@ -1335,7 +1335,7 @@ var Vp = ({ form: e, strings: t, onChange: n }) => {
1335
1335
  className: "studio-editor-properties__form-layout-row",
1336
1336
  children: [/* @__PURE__ */ a("span", { children: t.columnGap }), /* @__PURE__ */ a(tn, {
1337
1337
  name: t.columnGap,
1338
- value: i.columnGap ?? Fe(0, Ne.Pixels),
1338
+ value: i.columnGap ?? Me(0, Ne.Pixels),
1339
1339
  strings: t,
1340
1340
  onChange: (r) => n(Li(o, "columnGap", r))
1341
1341
  })]
@@ -1344,7 +1344,7 @@ var Vp = ({ form: e, strings: t, onChange: n }) => {
1344
1344
  className: "studio-editor-properties__form-layout-row",
1345
1345
  children: [/* @__PURE__ */ a("span", { children: t.rowGap }), /* @__PURE__ */ a(tn, {
1346
1346
  name: t.rowGap,
1347
- value: i.rowGap ?? Fe(0, Ne.Pixels),
1347
+ value: i.rowGap ?? Me(0, Ne.Pixels),
1348
1348
  strings: t,
1349
1349
  onChange: (r) => n(Li(o, "rowGap", r))
1350
1350
  })]
@@ -1399,7 +1399,7 @@ var Vp = ({ form: e, strings: t, onChange: n }) => {
1399
1399
  }),
1400
1400
  /* @__PURE__ */ b("label", { children: [/* @__PURE__ */ a("span", { children: t.fieldWidth }), /* @__PURE__ */ a(tn, {
1401
1401
  name: t.fieldWidth,
1402
- value: e.width ?? Fe(),
1402
+ value: e.width ?? Me(),
1403
1403
  strings: t,
1404
1404
  onChange: (o) => n({
1405
1405
  ...e,
@@ -1448,7 +1448,7 @@ var Qp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1448
1448
  /* @__PURE__ */ a("legend", { children: e.name }),
1449
1449
  /* @__PURE__ */ b("label", { children: [/* @__PURE__ */ a("span", { children: o.mode }), /* @__PURE__ */ b("select", {
1450
1450
  value: l ? ve.Auto : ve.Manual,
1451
- onChange: (c) => t && r(c.target.value === ve.Auto ? io(t) : Fp(e, t)),
1451
+ onChange: (c) => t && r(c.target.value === ve.Auto ? io(t) : Mp(e, t)),
1452
1452
  children: [/* @__PURE__ */ a("option", {
1453
1453
  value: ve.Auto,
1454
1454
  children: o.auto
@@ -1457,7 +1457,7 @@ var Qp = ({ form: e, slice: t, idPrefix: n, strings: o, disabled: i, onChange: r
1457
1457
  children: o.manual
1458
1458
  })]
1459
1459
  })] }),
1460
- /* @__PURE__ */ a(qp, {
1460
+ /* @__PURE__ */ a(Gp, {
1461
1461
  form: e,
1462
1462
  commandProperties: s
1463
1463
  }),
@@ -1643,7 +1643,7 @@ function im(e, t, n, o) {
1643
1643
  const i = n.flatMap((s) => s.screens ?? []).find((s) => s.screenTemplate === e);
1644
1644
  if (!i) return;
1645
1645
  const r = un(n.map((s) => s.manifest));
1646
- return $l(Eo(Fl(i), o, r), t);
1646
+ return $l(Eo(Ml(i), o, r), t);
1647
1647
  }
1648
1648
  function rm(e, t) {
1649
1649
  return t.find((n) => n.name === e && n.kind === Ar.ScreenTemplate);
@@ -1651,7 +1651,7 @@ function rm(e, t) {
1651
1651
  var Pt = /* @__PURE__ */ (function(e) {
1652
1652
  return e.Desktop = "desktop", e.Tablet = "tablet", e.Phone = "phone", e;
1653
1653
  })({}), am = ({ templateName: e, environment: t, strings: n, disabled: o, onApply: i, onDiscard: r }) => {
1654
- const [s, l] = M(pt.Populated), [c, u] = M(Pt.Desktop), { bundles: d, profile: p, registry: m, designTime: h } = t.runtime, f = j(() => im(e, s, d, p), [
1654
+ const [s, l] = F(pt.Populated), [c, u] = F(Pt.Desktop), { bundles: d, profile: p, registry: m, designTime: h } = t.runtime, f = j(() => im(e, s, d, p), [
1655
1655
  e,
1656
1656
  s,
1657
1657
  d,
@@ -1733,7 +1733,7 @@ var Pt = /* @__PURE__ */ (function(e) {
1733
1733
  })
1734
1734
  ]
1735
1735
  });
1736
- }, Mn = ({ controller: e, environment: t, strings: n, disabled: o, authoringTemplate: i }) => {
1736
+ }, Fn = ({ controller: e, environment: t, strings: n, disabled: o, authoringTemplate: i }) => {
1737
1737
  const r = n.properties.templates;
1738
1738
  if (i) {
1739
1739
  const s = e.document.screenTemplates.find((c) => c.name === i);
@@ -1801,11 +1801,11 @@ var Pt = /* @__PURE__ */ (function(e) {
1801
1801
  disabled: o
1802
1802
  });
1803
1803
  }, sm = ({ controller: e, environment: t, strings: n, disabled: o }) => {
1804
- const i = n.properties.templates, [r, s] = M(), l = e.document.screens.find((g) => g.name === le);
1804
+ const i = n.properties.templates, [r, s] = F(), l = e.document.screens.find((g) => g.name === le);
1805
1805
  if (!l) return null;
1806
1806
  const c = t.ownTemplates ?? [], u = (g) => e.setScreenTemplate([...c, ...t.runtime.bundles.flatMap((k) => k.screenTemplates ?? [])].find((k) => k.name === g), i.choose), d = j(() => lm(al({
1807
1807
  ...c.length > 0 ? { own: Xp(c) } : {},
1808
- blueprints: Fs(t.runtime.bundles)
1808
+ blueprints: Ms(t.runtime.bundles)
1809
1809
  }, Es({
1810
1810
  bundles: t.runtime.bundles,
1811
1811
  profile: t.runtime.profile,
@@ -2018,7 +2018,7 @@ function vm(e, t, n) {
2018
2018
  };
2019
2019
  }
2020
2020
  var bm = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
2021
- const i = n.properties, [r, s] = M(), l = gi(t.context.catalog, e.typeId), c = l?.capabilities.convertibleTo ?? [];
2021
+ const i = n.properties, [r, s] = F(), l = gi(t.context.catalog, e.typeId), c = l?.capabilities.convertibleTo ?? [];
2022
2022
  if (!l || c.length === 0) return null;
2023
2023
  const u = (d) => {
2024
2024
  const p = t.tryApply(d, i.changeLayout), m = vm(d, p.applied, p.diagnostics);
@@ -2064,7 +2064,7 @@ var bm = ({ inspection: e, controller: t, strings: n, disabled: o }) => {
2064
2064
  });
2065
2065
  };
2066
2066
  var ym = ({ location: e, strings: t }) => {
2067
- const n = t.properties.location, [o, i] = M(), [r, s] = M(""), [l, c] = M(), [u, d] = M(!1);
2067
+ const n = t.properties.location, [o, i] = F(), [r, s] = F(""), [l, c] = F(), [u, d] = F(!1);
2068
2068
  if (!e) return null;
2069
2069
  const p = o?.featureId ?? e.currentFeatureId, m = o?.path ?? e.path, h = e.features.filter((v) => v.id !== p), f = async () => {
2070
2070
  const v = e.features.find((k) => k.id === r);
@@ -2165,11 +2165,11 @@ var Sm = (e, t, n, o) => e.exposures.some((i) => i.owner === t && i.properties.s
2165
2165
  ], Tm = ({ inspection: e, componentId: t, controller: n, strings: o, authoringTemplate: i }) => {
2166
2166
  const r = o.properties;
2167
2167
  if (i === void 0) return null;
2168
- const s = e.properties.filter((l) => l.descriptor.valueType !== q.Object && l.descriptor.group !== "Placement");
2168
+ const s = e.properties.filter((l) => l.descriptor.valueType !== G.Object && l.descriptor.group !== "Placement");
2169
2169
  return s.length === 0 ? null : /* @__PURE__ */ b("section", {
2170
2170
  className: "studio-editor-properties__exposure",
2171
2171
  children: [/* @__PURE__ */ a("strong", { children: r.exposure }), /* @__PURE__ */ a("ul", { children: s.map((l) => {
2172
- const c = l.descriptor.path, u = Sm(n.document, i, t, c), d = l.descriptor.valueType === q.Collection;
2172
+ const c = l.descriptor.path, u = Sm(n.document, i, t, c), d = l.descriptor.valueType === G.Collection;
2173
2173
  return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ b("label", { children: [
2174
2174
  /* @__PURE__ */ a("input", {
2175
2175
  type: "checkbox",
@@ -2184,7 +2184,7 @@ var Sm = (e, t, n, o) => e.exposures.some((i) => i.owner === t && i.properties.s
2184
2184
  }, zi = (e) => Array.isArray(e) && e.every((t) => typeof t == "string");
2185
2185
  function ro(e, t, n = e.label) {
2186
2186
  if (t != null) {
2187
- if (e.valueType === q.Json) switch (e.editorKind) {
2187
+ if (e.valueType === G.Json) switch (e.editorKind) {
2188
2188
  case Dr:
2189
2189
  return zi(t) ? void 0 : `${n} is not a list of words`;
2190
2190
  case Rr:
@@ -2198,7 +2198,7 @@ function ro(e, t, n = e.label) {
2198
2198
  "boolean"
2199
2199
  ].includes(typeof t) ? void 0 : `${n} is not a word, a number or a yes or no`;
2200
2200
  }
2201
- if (e.valueType === q.Object && e.editorKind === Us && e.properties === void 0) return wn(t) ? void 0 : `${n} is not a record of values`;
2201
+ if (e.valueType === G.Object && e.editorKind === Us && e.properties === void 0) return wn(t) ? void 0 : `${n} is not a record of values`;
2202
2202
  if (js(e) && wn(t)) return e.properties.map((o) => ro(o, t[o.path], `${n} / ${o.label}`)).find((o) => o !== void 0);
2203
2203
  if (zs(e) && Array.isArray(t)) for (const [o, i] of t.entries()) {
2204
2204
  if (!wn(i)) continue;
@@ -2208,7 +2208,7 @@ function ro(e, t, n = e.label) {
2208
2208
  }
2209
2209
  }
2210
2210
  function Wi(e, t) {
2211
- const [n, o] = M(), i = t ? e.loadedOf(t) : void 0;
2211
+ const [n, o] = F(), i = t ? e.loadedOf(t) : void 0;
2212
2212
  return ie(() => {
2213
2213
  if (!t || e.loadedOf(t)) return;
2214
2214
  let r = !0;
@@ -2235,7 +2235,7 @@ function Wi(e, t) {
2235
2235
  };
2236
2236
  }
2237
2237
  var Wo = ({ registry: e, property: t, context: n, componentId: o, onChange: i, diagnostics: r, presentation: s = "field" }) => {
2238
- const l = s === "popover", { descriptor: c } = t, u = `pe-${o}-${c.path}`.replace(/[^A-Za-z0-9_-]/g, "-"), d = e.resolve(c), p = Rs(t), { editor: m, failed: h } = Wi(e, d?.id), { editor: f } = Wi(e, p ? "bindingExpression" : void 0), v = n.strings.editors, g = !t.editable || c.readOnly === !0, k = t.editable ? c.readOnly === !0 ? v.readOnly : void 0 : t.reason ?? v.inherited, x = t.effectiveValue, O = Nm(t, r), y = x == null || !pi(c) ? void 0 : Tn(c, x) ?? ro(c, x), S = y !== void 0 && Tn(c, x) !== void 0 ? Ms(c, x) : void 0, w = S !== void 0 && Tn(c, S) === void 0, T = ($) => i(t, $), E = p && $s(x), I = c.valueType === "boolean", C = pi(c);
2238
+ const l = s === "popover", { descriptor: c } = t, u = `pe-${o}-${c.path}`.replace(/[^A-Za-z0-9_-]/g, "-"), d = e.resolve(c), p = Rs(t), { editor: m, failed: h } = Wi(e, d?.id), { editor: f } = Wi(e, p ? "bindingExpression" : void 0), v = n.strings.editors, g = !t.editable || c.readOnly === !0, k = t.editable ? c.readOnly === !0 ? v.readOnly : void 0 : t.reason ?? v.inherited, x = t.effectiveValue, O = Nm(t, r), y = x == null || !pi(c) ? void 0 : Tn(c, x) ?? ro(c, x), S = y !== void 0 && Tn(c, x) !== void 0 ? Fs(c, x) : void 0, w = S !== void 0 && Tn(c, S) === void 0, T = ($) => i(t, $), E = p && $s(x), I = c.valueType === "boolean", C = pi(c);
2239
2239
  return /* @__PURE__ */ b("div", {
2240
2240
  className: `studio-editor-field${I ? " studio-editor-field--inline" : ""}`,
2241
2241
  "data-property": c.path,
@@ -2937,25 +2937,25 @@ function Rm(e, t, n) {
2937
2937
  }
2938
2938
  function Dm(e) {
2939
2939
  switch (e.valueType) {
2940
- case q.String:
2940
+ case G.String:
2941
2941
  return "text";
2942
- case q.Number:
2942
+ case G.Number:
2943
2943
  return "number";
2944
- case q.Boolean:
2944
+ case G.Boolean:
2945
2945
  return "boolean";
2946
- case q.Enum:
2946
+ case G.Enum:
2947
2947
  return (e.choices ?? []).length <= 4 ? "enum" : "select";
2948
- case q.Icon:
2948
+ case G.Icon:
2949
2949
  return "icon";
2950
- case q.Destination:
2950
+ case G.Destination:
2951
2951
  return "navigationTarget";
2952
- case q.QueryReference:
2952
+ case G.QueryReference:
2953
2953
  return "queryBinding";
2954
- case q.Collection:
2954
+ case G.Collection:
2955
2955
  return "collection";
2956
- case q.Object:
2956
+ case G.Object:
2957
2957
  return e.properties !== void 0 ? "object" : "undescribed";
2958
- case q.Json:
2958
+ case G.Json:
2959
2959
  return "undescribed";
2960
2960
  default:
2961
2961
  return "undescribed";
@@ -3032,11 +3032,11 @@ function $m() {
3032
3032
  ]) e.register(t, async () => (await import("./SummaryEditor-C5wP1uIH.js")).SummaryEditor);
3033
3033
  return e;
3034
3034
  }
3035
- var hn = $m(), Ho = "presentation", Go = "arguments", zt = (e) => typeof e == "string" ? e : "";
3035
+ var hn = $m(), Ho = "presentation", qo = "arguments", zt = (e) => typeof e == "string" ? e : "";
3036
3036
  function xa(e, t = "") {
3037
3037
  const n = zt(e?.command);
3038
3038
  if (n === "") return;
3039
- const o = Array.isArray(e?.arguments) ? e[Go] : [], i = Object.fromEntries(o.map((s) => [zt(s.name), zt(s.source)]).filter(([s]) => s !== "")), r = zt(e?.[Ho]);
3039
+ const o = Array.isArray(e?.arguments) ? e[qo] : [], i = Object.fromEntries(o.map((s) => [zt(s.name), zt(s.source)]).filter(([s]) => s !== "")), r = zt(e?.[Ho]);
3040
3040
  return {
3041
3041
  sliceId: n,
3042
3042
  sliceName: t,
@@ -3048,7 +3048,7 @@ function Em(e) {
3048
3048
  return {
3049
3049
  command: e.sliceId,
3050
3050
  [Ho]: e.presentation,
3051
- [Go]: Object.entries(e.inputs).filter(([, t]) => t.trim() !== "").map(([t, n]) => ({
3051
+ [qo]: Object.entries(e.inputs).filter(([, t]) => t.trim() !== "").map(([t, n]) => ({
3052
3052
  id: t,
3053
3053
  name: t,
3054
3054
  source: n.trim()
@@ -3070,12 +3070,12 @@ var ee = /* @__PURE__ */ (function(e) {
3070
3070
  kind: ee.None,
3071
3071
  target: ""
3072
3072
  };
3073
- function Fm(e) {
3073
+ function Mm(e) {
3074
3074
  const t = e?.find((n) => n.name === ao)?.bindings.find((n) => Bm(n.trigger))?.actions[0];
3075
3075
  return t ? Lm(t) : Ra;
3076
3076
  }
3077
3077
  function Hi(e, t) {
3078
- const n = (e ?? []).filter((r) => r.name !== ao), o = Mm(t), i = o ? [...n, {
3078
+ const n = (e ?? []).filter((r) => r.name !== ao), o = Fm(t), i = o ? [...n, {
3079
3079
  name: ao,
3080
3080
  bindings: [{
3081
3081
  trigger: { kind: $r.Click },
@@ -3084,7 +3084,7 @@ function Hi(e, t) {
3084
3084
  }] : n;
3085
3085
  return i.length > 0 ? i : void 0;
3086
3086
  }
3087
- function Mm(e) {
3087
+ function Fm(e) {
3088
3088
  if (e.target !== "")
3089
3089
  switch (e.kind) {
3090
3090
  case ee.Navigate:
@@ -3131,7 +3131,7 @@ function Bm(e) {
3131
3131
  return e?.kind === $r.Click;
3132
3132
  }
3133
3133
  var jm = ({ behaviors: e, targets: t, destinations: n, slices: o, strings: i, disabled: r, onChange: s }) => {
3134
- const l = Fm(e), [c, u] = M(ee.None), d = l.kind === ee.None ? {
3134
+ const l = Mm(e), [c, u] = F(ee.None), d = l.kind === ee.None ? {
3135
3135
  kind: c,
3136
3136
  target: ""
3137
3137
  } : l, p = Um(d.kind, t, n, o), m = d.target !== "" && !p.some((v) => v.value === d.target), h = (v) => {
@@ -3335,7 +3335,7 @@ var fn = {
3335
3335
  addSubItem: "addSubItem"
3336
3336
  }, gn = /* @__PURE__ */ (function(e) {
3337
3337
  return e.Elements = "elements", e.Collection = "collection", e.Region = "region", e;
3338
- })({}), qo = (e) => "rejected" in e;
3338
+ })({}), Go = (e) => "rejected" in e;
3339
3339
  function zm(e, t) {
3340
3340
  switch (e.availability) {
3341
3341
  case void 0:
@@ -3396,15 +3396,15 @@ function sn(e, t) {
3396
3396
  if (o) return o;
3397
3397
  }
3398
3398
  }
3399
- function Ft(e, t) {
3399
+ function Mt(e, t) {
3400
3400
  if (e.some((n) => n.id === t)) return e;
3401
3401
  for (const n of e) {
3402
- const o = n.children ? Ft(n.children, t) : void 0;
3402
+ const o = n.children ? Mt(n.children, t) : void 0;
3403
3403
  if (o) return o;
3404
3404
  }
3405
3405
  }
3406
3406
  function Hm(e, t, n) {
3407
- const o = Ft(e, t);
3407
+ const o = Mt(e, t);
3408
3408
  if (!o) return [...e];
3409
3409
  const i = o.findIndex((l) => l.id === t);
3410
3410
  if (i < 0 || n < 0 || n >= o.length || i === n) return [...e];
@@ -3425,8 +3425,8 @@ var Da = (e, t) => ({
3425
3425
  id: t(),
3426
3426
  ...e.children ? { children: e.children.map((n) => Da(n, t)) } : {}
3427
3427
  });
3428
- function Gm(e, t, n) {
3429
- const o = sn(e, t), i = Ft(e, t);
3428
+ function qm(e, t, n) {
3429
+ const o = sn(e, t), i = Mt(e, t);
3430
3430
  if (!o || !i) return { items: [...e] };
3431
3431
  const r = Da(o, n), s = i.findIndex((c) => c.id === t) + 1, l = [
3432
3432
  ...i.slice(0, s),
@@ -3438,10 +3438,10 @@ function Gm(e, t, n) {
3438
3438
  copy: r
3439
3439
  };
3440
3440
  }
3441
- var qm = () => ({
3441
+ var Gm = () => ({
3442
3442
  application: { regions: [] },
3443
3443
  modules: []
3444
- }), Gi = (e) => e.navigation ?? qm(), Vm = (e, t) => ({
3444
+ }), qi = (e) => e.navigation ?? Gm(), Vm = (e, t) => ({
3445
3445
  ...e,
3446
3446
  navigation: t
3447
3447
  });
@@ -3463,7 +3463,7 @@ function Ym(e, t) {
3463
3463
  return [n.name, ...o].join(" › ");
3464
3464
  }
3465
3465
  function Yo(e) {
3466
- const { region: t, module: n, navigation: o, structure: i, newId: r, slots: s, startingLabel: l, strings: c } = e, u = Mr(i, o, n, t), d = Jm(o, n, t), p = pl(i, o, { slots: [...s] }), m = (O) => `${n ?? "application"}:${t}:${O}`, h = [], f = (O, y) => {
3466
+ const { region: t, module: n, navigation: o, structure: i, newId: r, slots: s, startingLabel: l, strings: c } = e, u = Fr(i, o, n, t), d = Jm(o, n, t), p = pl(i, o, { slots: [...s] }), m = (O) => `${n ?? "application"}:${t}:${O}`, h = [], f = (O, y) => {
3467
3467
  const S = O.filter((w) => !w.readOnly);
3468
3468
  O.forEach((w) => {
3469
3469
  const T = sn(d, w.id)?.target ?? (w.target ? {
@@ -3541,15 +3541,15 @@ function Yo(e) {
3541
3541
  return y.parentId !== void 0 ? { rejected: "subItemOfSubItem" } : x(y.id);
3542
3542
  case A.moveEarlier:
3543
3543
  case A.moveLater: {
3544
- const S = y.index + (O === A.moveEarlier ? -1 : 1), w = Ft(d, y.id);
3544
+ const S = y.index + (O === A.moveEarlier ? -1 : 1), w = Mt(d, y.id);
3545
3545
  return !w || S < 0 || S >= w.length ? { rejected: "noWhere" } : g("Move", k(Hm(d, y.id, S)), { itemId: y.id });
3546
3546
  }
3547
3547
  case A.duplicate: {
3548
- const S = Gm(d, y.id, r);
3548
+ const S = qm(d, y.id, r);
3549
3549
  return S.copy ? g("Duplicate", k(S.items), { itemId: S.copy.id }) : { rejected: O };
3550
3550
  }
3551
3551
  case A.delete: {
3552
- const S = Ft(d, y.id) ?? [], w = S.findIndex((E) => E.id === y.id), T = S[w + 1] ?? S[w - 1];
3552
+ const S = Mt(d, y.id) ?? [], w = S.findIndex((E) => E.id === y.id), T = S[w + 1] ?? S[w - 1];
3553
3553
  return g("Remove", k(Km(d, y.id)), { itemId: T?.id ?? null });
3554
3554
  }
3555
3555
  default:
@@ -3596,7 +3596,7 @@ function Ln(e, t, n, o) {
3596
3596
  path: e,
3597
3597
  label: t,
3598
3598
  group: "Content",
3599
- valueType: q.String,
3599
+ valueType: G.String,
3600
3600
  editorKind: n
3601
3601
  },
3602
3602
  currentValue: o,
@@ -3605,7 +3605,7 @@ function Ln(e, t, n, o) {
3605
3605
  editable: !0
3606
3606
  };
3607
3607
  }
3608
- var yt = () => globalThis.crypto.randomUUID(), qi = (e) => typeof e == "string" ? e : "";
3608
+ var yt = () => globalThis.crypto.randomUUID(), Gi = (e) => typeof e == "string" ? e : "";
3609
3609
  function Xm({ componentId: e, property: t, newId: n, startingLabel: o, startingDestination: i }) {
3610
3610
  const r = t.descriptor.path, s = t.items ?? [], l = s.filter((h) => h.editable), c = new Set(t.operations ?? []), u = {
3611
3611
  component: e,
@@ -3614,7 +3614,7 @@ function Xm({ componentId: e, property: t, newId: n, startingLabel: o, startingD
3614
3614
  const f = l.indexOf(h);
3615
3615
  return {
3616
3616
  id: h.id,
3617
- label: qi(h.values.label) || qi(h.values.title),
3617
+ label: Gi(h.values.label) || Gi(h.values.title),
3618
3618
  index: f,
3619
3619
  count: l.length,
3620
3620
  readOnly: !h.editable,
@@ -3919,7 +3919,7 @@ function oh({ component: e, addActionId: t, ownershipOf: n, inspect: o, newId: i
3919
3919
  function ih(e) {
3920
3920
  const { roots: t, catalog: n, selectedId: o, selectedItemId: i } = e;
3921
3921
  if (!o) return;
3922
- const r = Ge(t, o);
3922
+ const r = qe(t, o);
3923
3923
  if (!r) return;
3924
3924
  const s = Vi(n, r);
3925
3925
  if (s) return Ji(e, r, s.addActionId, i, !1);
@@ -3968,7 +3968,7 @@ function Ji(e, t, n, o, i) {
3968
3968
  };
3969
3969
  }
3970
3970
  function rh({ controller: e, environment: t, strings: n, startingLabels: o, startingDestination: i, otherSource: r }) {
3971
- const [s, l] = M(0), [c, u] = M(""), [d, p] = M("");
3971
+ const [s, l] = F(0), [c, u] = F(""), [d, p] = F("");
3972
3972
  ie(() => {
3973
3973
  if (d === "") return;
3974
3974
  const C = setTimeout(() => p(""), 4e3);
@@ -4026,7 +4026,7 @@ function rh({ controller: e, environment: t, strings: n, startingLabels: o, star
4026
4026
  y,
4027
4027
  w
4028
4028
  ]), E = e.selectItem, I = H((C, $) => {
4029
- if (qo(C))
4029
+ if (Go(C))
4030
4030
  return u(n.announce.refused(C.rejected)), !1;
4031
4031
  if (C.editAtApplication)
4032
4032
  return e.setNavigationModule(void 0), e.selectItem(void 0, void 0), !0;
@@ -4034,7 +4034,7 @@ function rh({ controller: e, environment: t, strings: n, startingLabels: o, star
4034
4034
  if (!U.applied)
4035
4035
  return u(n.announce.refused("rejected" in U && U.rejected || "diagnostics" in U && U.diagnostics[0]?.message || C.label)), !1;
4036
4036
  const { select: D } = C;
4037
- return D?.elementId !== void 0 && e.select(D.elementId), D?.itemId !== void 0 && e.selectItem(D.itemId === null ? void 0 : T?.componentId ?? v, D.itemId === null ? void 0 : D.itemId), C.notice && (u(C.notice), p(C.notice)), C.renameNext && l((F) => F + 1), $ && !C.notice && u($(C)), !0;
4037
+ return D?.elementId !== void 0 && e.select(D.elementId), D?.itemId !== void 0 && e.selectItem(D.itemId === null ? void 0 : T?.componentId ?? v, D.itemId === null ? void 0 : D.itemId), C.notice && (u(C.notice), p(C.notice)), C.renameNext && l((M) => M + 1), $ && !C.notice && u($(C)), !0;
4038
4038
  }, [
4039
4039
  e,
4040
4040
  n,
@@ -4112,7 +4112,7 @@ var Ea = (e) => ({
4112
4112
  editable: r,
4113
4113
  ...s ? { reason: s } : {}
4114
4114
  }), uo = ({ controller: e, environment: t, strings: n, region: o, itemId: i }) => {
4115
- const r = (n.designMode ?? fn).navigation, { selection: s, navigation: l, structure: c, navigationModule: u } = e, d = o ? i : e.selectedItemId, p = o ?? (s && "componentName" in s ? bn(String(s.componentName)) : void 0), [m, h] = M(!1), f = j(() => jo(t.availableSources), [t.availableSources]);
4115
+ const r = (n.designMode ?? fn).navigation, { selection: s, navigation: l, structure: c, navigationModule: u } = e, d = o ? i : e.selectedItemId, p = o ?? (s && "componentName" in s ? bn(String(s.componentName)) : void 0), [m, h] = F(!1), f = j(() => jo(t.availableSources), [t.availableSources]);
4116
4116
  if (!p) return null;
4117
4117
  const v = t.navigation?.slots ?? t.propertyEditors?.slots ?? ["content"], g = Yo({
4118
4118
  region: p,
@@ -4177,10 +4177,10 @@ var Ea = (e) => ({
4177
4177
  z = Q;
4178
4178
  }
4179
4179
  return [y.readOnly ? r.application : x, ...N];
4180
- })(), F = l.application.logo, L = (N) => {
4180
+ })(), M = l.application.logo, L = (N) => {
4181
4181
  const z = Pl(l, u, {
4182
- image: F?.image ?? "",
4183
- title: F?.title ?? "",
4182
+ image: M?.image ?? "",
4183
+ title: M?.title ?? "",
4184
4184
  ...N
4185
4185
  });
4186
4186
  z.rejected || e.applyNavigationEdits(z.edits, "Logo");
@@ -4224,10 +4224,10 @@ var Ea = (e) => ({
4224
4224
  children: r.problems[N.code] ?? N.message
4225
4225
  }, N.code)),
4226
4226
  [
4227
- Ht("label", r.label, q.String, "text", y.label, C, r.inheritedFromApplication),
4228
- Ht("target", r.navigateTo, q.String, "navigationItemTarget", y.values.target, C, r.inheritedFromApplication),
4229
- Ht("slot", r.renderIntoSlot, q.String, "renderingSlot", y.values.slot, C, r.inheritedFromApplication),
4230
- Ht("icon", r.icon, q.String, "icon", y.values.icon, C, r.inheritedFromApplication)
4227
+ Ht("label", r.label, G.String, "text", y.label, C, r.inheritedFromApplication),
4228
+ Ht("target", r.navigateTo, G.String, "navigationItemTarget", y.values.target, C, r.inheritedFromApplication),
4229
+ Ht("slot", r.renderIntoSlot, G.String, "renderingSlot", y.values.slot, C, r.inheritedFromApplication),
4230
+ Ht("icon", r.icon, G.String, "icon", y.values.icon, C, r.inheritedFromApplication)
4231
4231
  ].map((N) => /* @__PURE__ */ a(Wo, {
4232
4232
  registry: S,
4233
4233
  property: N,
@@ -4297,13 +4297,13 @@ var Ea = (e) => ({
4297
4297
  /* @__PURE__ */ a("legend", { children: r.logo }),
4298
4298
  /* @__PURE__ */ b("label", { children: [r.logoTitle, /* @__PURE__ */ a("input", {
4299
4299
  type: "text",
4300
- value: F?.title ?? "",
4300
+ value: M?.title ?? "",
4301
4301
  disabled: u !== void 0,
4302
4302
  onChange: (N) => L({ title: N.target.value })
4303
4303
  })] }),
4304
4304
  /* @__PURE__ */ b("label", { children: [r.logoImage, /* @__PURE__ */ a("input", {
4305
4305
  type: "text",
4306
- value: F?.image ?? "",
4306
+ value: M?.image ?? "",
4307
4307
  disabled: u !== void 0,
4308
4308
  onChange: (N) => L({ image: N.target.value })
4309
4309
  })] }),
@@ -4331,7 +4331,7 @@ var Ea = (e) => ({
4331
4331
  inherited: "inherited",
4332
4332
  notLinked: "not linked"
4333
4333
  }, ch = [gt.Topbar, gt.Sidebar], dh = ({ controller: e, environment: t, strings: n }) => {
4334
- const o = lh, i = (n.designMode ?? fn).navigation, [r, s] = M(gt.Topbar), [l, c] = M(), { navigation: u, structure: d, navigationModule: p } = e;
4334
+ const o = lh, i = (n.designMode ?? fn).navigation, [r, s] = F(gt.Topbar), [l, c] = F(), { navigation: u, structure: d, navigationModule: p } = e;
4335
4335
  if (!t.navigation) return null;
4336
4336
  const m = t.navigation.slots ?? t.propertyEditors?.slots ?? ["content"], h = Yo({
4337
4337
  region: r,
@@ -4350,7 +4350,7 @@ var Ea = (e) => ({
4350
4350
  mainArea: "Main area"
4351
4351
  }
4352
4352
  }), f = h.items.find((y) => y.id === l), v = f !== void 0 && !f.readOnly, g = (y) => {
4353
- qo(y) || !y.navigationEdits || e.applyNavigationEdits(y.navigationEdits, y.label).applied && y.select?.itemId !== void 0 && c(y.select.itemId === null ? void 0 : y.select.itemId);
4353
+ Go(y) || !y.navigationEdits || e.applyNavigationEdits(y.navigationEdits, y.label).applied && y.select?.itemId !== void 0 && c(y.select.itemId === null ? void 0 : y.select.itemId);
4354
4354
  }, k = (y, S) => g(h.act(y, S)), x = (y) => {
4355
4355
  c(void 0), e.setNavigationModule(y === "" ? void 0 : y);
4356
4356
  }, O = (y) => {
@@ -4573,7 +4573,7 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4573
4573
  label: t.properties.diagnostics
4574
4574
  })]
4575
4575
  });
4576
- }, fh = (e, t) => e.find((n) => n.component === t), gh = /* @__PURE__ */ new Set([Go]), vh = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: i }) => {
4576
+ }, fh = (e, t) => e.find((n) => n.component === t), gh = /* @__PURE__ */ new Set([qo]), vh = ({ controller: e, environment: t, strings: n, ownership: o, authoringTemplate: i }) => {
4577
4577
  const { inspection: r, selectedId: s, selection: l } = e, c = n.properties, u = j(() => jo(t.availableSources), [t.availableSources]), d = j(() => Pr(e.document, e.composition.roots, e.context, t.availableSources, t.queryCandidates), [
4578
4578
  e.document,
4579
4579
  e.composition.roots,
@@ -4584,7 +4584,7 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4584
4584
  if (!s || !l || !r)
4585
4585
  return i ? /* @__PURE__ */ a("div", {
4586
4586
  className: "studio-editor-properties",
4587
- children: /* @__PURE__ */ a(Mn, {
4587
+ children: /* @__PURE__ */ a(Fn, {
4588
4588
  controller: e,
4589
4589
  environment: t,
4590
4590
  strings: n,
@@ -4602,7 +4602,7 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4602
4602
  location: t.location,
4603
4603
  strings: n
4604
4604
  }),
4605
- /* @__PURE__ */ a(Mn, {
4605
+ /* @__PURE__ */ a(Fn, {
4606
4606
  controller: e,
4607
4607
  environment: t,
4608
4608
  strings: n,
@@ -4682,7 +4682,7 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4682
4682
  strings: n,
4683
4683
  disabled: o !== void 0 && o !== "local"
4684
4684
  }),
4685
- i && /* @__PURE__ */ a(Mn, {
4685
+ i && /* @__PURE__ */ a(Fn, {
4686
4686
  controller: e,
4687
4687
  environment: t,
4688
4688
  strings: n,
@@ -4732,14 +4732,14 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4732
4732
  children: [/* @__PURE__ */ a("h4", {
4733
4733
  className: "studio-editor-properties__group-title",
4734
4734
  children: D.name
4735
- }), D.properties.map((F) => /* @__PURE__ */ a(Wo, {
4735
+ }), D.properties.map((M) => /* @__PURE__ */ a(Wo, {
4736
4736
  registry: k,
4737
- property: F,
4738
- context: Rm(w, S, F),
4737
+ property: M,
4738
+ context: Rm(w, S, M),
4739
4739
  componentId: s,
4740
4740
  onChange: e.setProperty,
4741
4741
  diagnostics: x
4742
- }, `${s}:${F.descriptor.path}`))]
4742
+ }, `${s}:${M.descriptor.path}`))]
4743
4743
  }, D.name)),
4744
4744
  T && /* @__PURE__ */ a(yp, {
4745
4745
  action: xa(U, t.stateChangeSlices.find((D) => D.id === U?.command)?.name ?? ""),
@@ -4758,9 +4758,9 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4758
4758
  strings: n,
4759
4759
  disabled: $,
4760
4760
  onCommandChange: (D) => {
4761
- e.applyAll([xp(s, D)], n.properties.commandForm.label).applied && D && !C.some((F) => F.forCommand === D.name) && e.setScreenForms([...C, io(D)], n.properties.commandForm.createForm(D.name));
4761
+ e.applyAll([xp(s, D)], n.properties.commandForm.label).applied && D && !C.some((M) => M.forCommand === D.name) && e.setScreenForms([...C, io(D)], n.properties.commandForm.createForm(D.name));
4762
4762
  },
4763
- onFormChange: (D) => e.setScreenForms(C.map((F) => F.forCommand === D.forCommand ? D : F), n.properties.forms.label),
4763
+ onFormChange: (D) => e.setScreenForms(C.map((M) => M.forCommand === D.forCommand ? D : M), n.properties.forms.label),
4764
4764
  onFormCreate: (D) => e.setScreenForms([...C, io(D)], n.properties.commandForm.createForm(D.name))
4765
4765
  }),
4766
4766
  E && /* @__PURE__ */ a(jm, {
@@ -4782,7 +4782,7 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4782
4782
  ]
4783
4783
  });
4784
4784
  }, Aa = ({ strings: e, controller: t, environment: n, authoringTemplate: o, structure: i, onClose: r }) => {
4785
- const [s, l] = M(Fn.Properties), c = t.selectedId ? t.ownershipOf(t.selectedId) : void 0;
4785
+ const [s, l] = F(Mn.Properties), c = t.selectedId ? t.ownershipOf(t.selectedId) : void 0;
4786
4786
  return /* @__PURE__ */ b("section", {
4787
4787
  className: "studio-editor-inspector",
4788
4788
  "aria-label": e.inspectorTitle,
@@ -4805,7 +4805,7 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4805
4805
  value: s,
4806
4806
  onChange: l,
4807
4807
  tabs: [{
4808
- id: Fn.Properties,
4808
+ id: Mn.Properties,
4809
4809
  label: e.propertiesTab,
4810
4810
  content: /* @__PURE__ */ a(vh, {
4811
4811
  controller: t,
@@ -4815,7 +4815,7 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4815
4815
  authoringTemplate: o
4816
4816
  })
4817
4817
  }, {
4818
- id: Fn.Structure,
4818
+ id: Mn.Structure,
4819
4819
  label: e.structureTab,
4820
4820
  content: i
4821
4821
  }]
@@ -4827,40 +4827,40 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4827
4827
  return e.Panel = "Panel", e.StackPanel = "StackPanel", e.WrapPanel = "WrapPanel", e.Grid = "Grid", e.Canvas = "Canvas", e;
4828
4828
  })({}), bh = [
4829
4829
  {
4830
- item: G.Stack,
4830
+ item: q.Stack,
4831
4831
  type: "Stack",
4832
4832
  panel: rt.StackPanel,
4833
4833
  flowKind: Sn.Column,
4834
4834
  arrangement: Y.Column
4835
4835
  },
4836
4836
  {
4837
- item: G.Row,
4837
+ item: q.Row,
4838
4838
  type: "Row",
4839
4839
  panel: rt.StackPanel,
4840
4840
  flowKind: Sn.Row,
4841
4841
  arrangement: Y.Row
4842
4842
  },
4843
4843
  {
4844
- item: G.Grid,
4844
+ item: q.Grid,
4845
4845
  type: "Grid",
4846
4846
  panel: rt.Grid,
4847
4847
  flowKind: Sn.Grid,
4848
4848
  arrangement: Y.Grid
4849
4849
  },
4850
4850
  {
4851
- item: G.Container,
4851
+ item: q.Container,
4852
4852
  type: "Container",
4853
4853
  panel: rt.Panel,
4854
4854
  arrangement: Y.Grouping
4855
4855
  },
4856
4856
  {
4857
- item: G.Wrap,
4857
+ item: q.Wrap,
4858
4858
  type: "Wrap",
4859
4859
  panel: rt.WrapPanel,
4860
4860
  arrangement: Y.Wrap
4861
4861
  },
4862
4862
  {
4863
- item: G.Canvas,
4863
+ item: q.Canvas,
4864
4864
  type: "Canvas",
4865
4865
  panel: rt.Canvas,
4866
4866
  arrangement: Y.Freeform
@@ -4870,7 +4870,7 @@ var ph = (e) => String(e.componentName ?? "").endsWith("toolbarItem"), mh = (e)
4870
4870
  "screenShell",
4871
4871
  "shell"
4872
4872
  ]);
4873
- var wh = (e) => e.slice(e.lastIndexOf(":") + 1), Fa = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).trim(), kh = (e) => e.split(".").map((t) => Fa(t)).join(" "), Sh = Qs.Layout;
4873
+ var wh = (e) => e.slice(e.lastIndexOf(":") + 1), Ma = (e) => e.replace(/([A-Z])/g, " $1").replace(/^./, (t) => t.toUpperCase()).trim(), kh = (e) => e.split(".").map((t) => Ma(t)).join(" "), Sh = Qs.Layout;
4874
4874
  function Ch(e, t, n = {}) {
4875
4875
  const o = t.map((r) => ({
4876
4876
  key: `layout:${r.item}`,
@@ -4888,7 +4888,7 @@ function Ch(e, t, n = {}) {
4888
4888
  })), i = e.flatMap((r) => {
4889
4889
  const s = new Map((r.descriptors ?? []).map((l) => [wh(l.component), l]));
4890
4890
  return r.components.filter((l) => !yh.has(l)).map((l) => {
4891
- const c = s.get(l), u = c?.displayName ?? Fa(l);
4891
+ const c = s.get(l), u = c?.displayName ?? Ma(l);
4892
4892
  return {
4893
4893
  key: `${r.package}:${l}`,
4894
4894
  label: u,
@@ -4911,7 +4911,7 @@ function Ch(e, t, n = {}) {
4911
4911
  });
4912
4912
  return [...o, ...i];
4913
4913
  }
4914
- var Ma = "frequent";
4914
+ var Fa = "frequent";
4915
4915
  function Th({ entries: e, usage: t, query: n, groups: o, frequentTitle: i }) {
4916
4916
  const r = n.trim().length > 0, s = (m) => ({
4917
4917
  entry: m,
@@ -4923,7 +4923,7 @@ function Th({ entries: e, usage: t, query: n, groups: o, frequentTitle: i }) {
4923
4923
  }, n)
4924
4924
  }), l = (m) => m.map(s).filter((h) => h.match.matched), c = new Map(e.map((m) => [m.key, m])), u = kl(t).flatMap((m) => c.get(m) ?? []), d = [], p = l(u);
4925
4925
  return p.length > 0 && d.push({
4926
- id: Ma,
4926
+ id: Fa,
4927
4927
  title: i,
4928
4928
  frequent: !0,
4929
4929
  count: p.length,
@@ -5022,7 +5022,7 @@ var Rh = (e, t, n) => {
5022
5022
  e.dataTransfer.setData(Xo, JSON.stringify(t)), e.dataTransfer.effectAllowed = "copyMove", n && Ba(e, n, e.currentTarget instanceof Element ? e.currentTarget.querySelector("svg") : null);
5023
5023
  }, Dh = (e, t, n) => {
5024
5024
  e.dataTransfer.setData(La, t), e.dataTransfer.effectAllowed = "move", Ba(e, n);
5025
- }, _h = (e) => e.dataTransfer.getData("application/x-studio-element") || void 0, po = (e) => e.dataTransfer.types.includes(La), Gt = (e) => Eh(e) || po(e);
5025
+ }, _h = (e) => e.dataTransfer.getData("application/x-studio-element") || void 0, po = (e) => e.dataTransfer.types.includes(La), qt = (e) => Eh(e) || po(e);
5026
5026
  function $h(e) {
5027
5027
  try {
5028
5028
  const t = JSON.parse(e.dataTransfer.getData(Xo));
@@ -5040,8 +5040,8 @@ var Eh = (e) => e.dataTransfer.types.includes(Xo), Ah = {
5040
5040
  nothingMatches: "No component matches.",
5041
5041
  viaKeyword: (e, t, n) => `...${e} matches "${t}" via keyword "${n}"`,
5042
5042
  addLabel: (e) => `Add ${e}`
5043
- }, Fh = "★", Mh = ({ entries: e, memory: t, strings: n = Ah, onAdd: o, usageVersion: i = 0 }) => {
5044
- const [r, s] = M(""), [l, c] = M(() => t.readGroups()), u = J(null), d = J(null), p = Vs(), m = j(() => ({ ...t.readUsage() }), [t, i]), h = j(() => Th({
5043
+ }, Mh = "★", Fh = ({ entries: e, memory: t, strings: n = Ah, onAdd: o, usageVersion: i = 0 }) => {
5044
+ const [r, s] = F(""), [l, c] = F(() => t.readGroups()), u = J(null), d = J(null), p = Vs(), m = j(() => ({ ...t.readUsage() }), [t, i]), h = j(() => Th({
5045
5045
  entries: e,
5046
5046
  usage: m,
5047
5047
  query: r,
@@ -5124,7 +5124,7 @@ var Eh = (e) => e.dataTransfer.types.includes(Xo), Ah = {
5124
5124
  "aria-hidden": "true",
5125
5125
  children: w.frequent ? /* @__PURE__ */ a("span", {
5126
5126
  className: "studio-component-picker__star",
5127
- children: Fh
5127
+ children: Mh
5128
5128
  }) : w.expanded ? "▼" : "▶"
5129
5129
  }),
5130
5130
  /* @__PURE__ */ a("span", {
@@ -5182,7 +5182,7 @@ var Eh = (e) => e.dataTransfer.types.includes(Xo), Ah = {
5182
5182
  /* @__PURE__ */ a("span", {
5183
5183
  hidden: !0,
5184
5184
  "data-rows": S.length,
5185
- "data-frequent": Ma
5185
+ "data-frequent": Fa
5186
5186
  })
5187
5187
  ]
5188
5188
  });
@@ -5193,7 +5193,7 @@ var Eh = (e) => e.dataTransfer.types.includes(Xo), Ah = {
5193
5193
  heading: o,
5194
5194
  closeLabel: i,
5195
5195
  presentation: "drawer",
5196
- children: /* @__PURE__ */ a(Mh, {
5196
+ children: /* @__PURE__ */ a(Fh, {
5197
5197
  entries: e,
5198
5198
  memory: t,
5199
5199
  usageVersion: s,
@@ -5202,7 +5202,7 @@ var Eh = (e) => e.dataTransfer.types.includes(Xo), Ah = {
5202
5202
  })
5203
5203
  });
5204
5204
  function ja({ strings: e, layoutLabels: t, icons: n, paletteSources: o, onAdd: i, memory: r }) {
5205
- const s = j(() => r ?? xh(), [r]), [l, c] = M(0), u = j(() => Ch(o, bh.map((p) => ({
5205
+ const s = j(() => r ?? xh(), [r]), [l, c] = F(0), u = j(() => Ch(o, bh.map((p) => ({
5206
5206
  item: p.item,
5207
5207
  label: t[p.item]
5208
5208
  })), e.packageTitles), [
@@ -5246,17 +5246,17 @@ function Pe(e, t, n, o = [], i = {}) {
5246
5246
  }
5247
5247
  function Bh(e, t) {
5248
5248
  switch (e) {
5249
- case G.Stack:
5249
+ case q.Stack:
5250
5250
  return {
5251
5251
  orientation: ft.Vertical,
5252
5252
  spacing: 8
5253
5253
  };
5254
- case G.Row:
5254
+ case q.Row:
5255
5255
  return {
5256
5256
  orientation: ft.Horizontal,
5257
5257
  spacing: 8
5258
5258
  };
5259
- case G.Grid:
5259
+ case q.Grid:
5260
5260
  return {
5261
5261
  rows: [],
5262
5262
  columns: [{
@@ -5269,11 +5269,11 @@ function Bh(e, t) {
5269
5269
  maximumWidth: Number.POSITIVE_INFINITY
5270
5270
  }]
5271
5271
  };
5272
- case G.Wrap:
5272
+ case q.Wrap:
5273
5273
  return { orientation: ft.Horizontal };
5274
- case G.Canvas:
5274
+ case q.Canvas:
5275
5275
  return { extent: t };
5276
- case G.Container:
5276
+ case q.Container:
5277
5277
  return {};
5278
5278
  }
5279
5279
  }
@@ -5293,7 +5293,7 @@ function Uh(e, t, n) {
5293
5293
  package: o,
5294
5294
  name: i
5295
5295
  } : void 0;
5296
- const r = Mt(i, t, n);
5296
+ const r = Ft(i, t, n);
5297
5297
  return r ? {
5298
5298
  package: r.package,
5299
5299
  name: r.name
@@ -5312,7 +5312,7 @@ function zh(e, t, n) {
5312
5312
  for (const [u, d] of Object.entries(s)) {
5313
5313
  let p = i(d);
5314
5314
  if (u === "componentName" && typeof d == "string" && !d.includes(":")) {
5315
- const m = Mt(d, t, n);
5315
+ const m = Ft(d, t, n);
5316
5316
  m && o.has(m.package) && (p = `${m.package}:${m.name}`);
5317
5317
  }
5318
5318
  p !== d && (l = !0), c[u] = p;
@@ -5378,7 +5378,7 @@ function Kh(e, t, n, o) {
5378
5378
  }
5379
5379
  }
5380
5380
  function Hh(e) {
5381
- return e.authoringTemplate !== void 0 ? Hu(e.authoringTemplate, Pe(G.Stack, zu, "Template")) : Ku(Pe(G.Stack, Wu, "Screen"), e.screenTemplate);
5381
+ return e.authoringTemplate !== void 0 ? Hu(e.authoringTemplate, Pe(q.Stack, zu, "Template")) : Ku(Pe(q.Stack, Wu, "Screen"), e.screenTemplate);
5382
5382
  }
5383
5383
  var za = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
5384
5384
  className: "studio-screen-editor-palette-host",
@@ -5400,7 +5400,7 @@ var za = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
5400
5400
  copied: "The technical detail is copied. Paste it into the report.",
5401
5401
  copyFailed: "The technical detail could not be copied. Select it below and copy it.",
5402
5402
  technicalDetail: "Technical detail"
5403
- }, Gh = "https://github.com/Cratis/StudioIssues/issues/new", qh = [
5403
+ }, qh = "https://github.com/Cratis/StudioIssues/issues/new", Gh = [
5404
5404
  [/\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi, "Bearer [redacted]"],
5405
5405
  [/\beyJ[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]{8,}\.[A-Za-z0-9_-]*/g, "[redacted-jwt]"],
5406
5406
  [/\b(authorization|cookie|set-cookie|x-api-key|x-principal[\w-]*)\s*[:=]\s*[^\s,;]+(\s+[^\s,;]+)?/gi, "$1: [redacted]"],
@@ -5409,7 +5409,7 @@ var za = ({ placement: e, children: t }) => /* @__PURE__ */ a("div", {
5409
5409
  [/\b(?:gh[pousr]_[A-Za-z0-9]{20,}|github_pat_[A-Za-z0-9_]{20,}|sk-[A-Za-z0-9_-]{20,}|xox[abprs]-[A-Za-z0-9-]{10,}|AKIA[0-9A-Z]{16})\b/g, "[redacted-key]"]
5410
5410
  ];
5411
5411
  function ln(e) {
5412
- return qh.reduce((t, [n, o]) => t.replace(n, o), e);
5412
+ return Gh.reduce((t, [n, o]) => t.replace(n, o), e);
5413
5413
  }
5414
5414
  function ti(e) {
5415
5415
  return /^\s*at\s+([A-Za-z_$][\w$.]*)/m.exec(e ?? "")?.[1];
@@ -5455,7 +5455,7 @@ var Qh = (e) => {
5455
5455
  const t = `${e.summary}
5456
5456
 
5457
5457
  The full technical detail was copied to the clipboard by "Report this error": paste it below.`;
5458
- return `${Gh}?title=${encodeURIComponent(e.title)}&body=${encodeURIComponent(t)}&labels=${encodeURIComponent("bug")}`;
5458
+ return `${qh}?title=${encodeURIComponent(e.title)}&body=${encodeURIComponent(t)}&labels=${encodeURIComponent("bug")}`;
5459
5459
  }, Yh = Qh;
5460
5460
  function Zh(e, t, n) {
5461
5461
  const o = e instanceof Error ? e : new Error(String(e)), i = t.component ?? ti(n), r = ln(`${t.surface} crashed: ${o.message}`.replace(/\s+/g, " ").slice(0, 120)), s = ln([
@@ -5487,7 +5487,7 @@ var Xh = async (e) => {
5487
5487
  }
5488
5488
  }
5489
5489
  }, ef = ({ error: e, context: t, componentStack: n, onRecover: o, onClose: i, layout: r = "fixed", strings: s = Wa }) => {
5490
- const [l, c] = M("none"), u = e instanceof Error ? e : new Error(String(e)), d = t.component ?? ti(n), p = j(() => Ka(e, t, n), [
5490
+ const [l, c] = F("none"), u = e instanceof Error ? e : new Error(String(e)), d = t.component ?? ti(n), p = j(() => Ka(e, t, n), [
5491
5491
  e,
5492
5492
  t,
5493
5493
  n
@@ -5638,7 +5638,7 @@ var Xh = async (e) => {
5638
5638
  template: t?.authoringTemplate ?? t?.screenTemplate
5639
5639
  },
5640
5640
  children: o
5641
- }), Ga = ({ problem: e, strings: t, onClose: n }) => /* @__PURE__ */ b("div", {
5641
+ }), qa = ({ problem: e, strings: t, onClose: n }) => /* @__PURE__ */ b("div", {
5642
5642
  className: "studio-screen-editor-unreadable",
5643
5643
  role: "alertdialog",
5644
5644
  "aria-label": t.unreadable.title,
@@ -5704,7 +5704,7 @@ function ni(e, t) {
5704
5704
  height: Math.min(e.height + 40, t.height)
5705
5705
  };
5706
5706
  }
5707
- function qa(e) {
5707
+ function Ga(e) {
5708
5708
  return {
5709
5709
  width: e.width,
5710
5710
  height: Math.max(0, e.height - 40)
@@ -5778,11 +5778,11 @@ function pf(e, t) {
5778
5778
  });
5779
5779
  }
5780
5780
  function mf(e) {
5781
- const t = qa(e);
5781
+ const t = Ga(e);
5782
5782
  return dl(t.width, t.height);
5783
5783
  }
5784
5784
  var hf = ({ windowSize: e, available: t, strings: n, shell: o, template: i, onResize: r }) => {
5785
- const s = pf(e, t), l = qa(e), c = mf(e), u = (d, p, m) => /* @__PURE__ */ a(we, {
5785
+ const s = pf(e, t), l = Ga(e), c = mf(e), u = (d, p, m) => /* @__PURE__ */ a(we, {
5786
5786
  icon: p,
5787
5787
  "aria-label": m,
5788
5788
  "aria-pressed": s === d,
@@ -5799,7 +5799,7 @@ var hf = ({ windowSize: e, available: t, strings: n, shell: o, template: i, onRe
5799
5799
  u(Xe.Desktop, /* @__PURE__ */ a(Vn, { "aria-hidden": "true" }), n.desktopPreview),
5800
5800
  u(Xe.Mobile, /* @__PURE__ */ a(Nc, { "aria-hidden": "true" }), n.mobilePreview),
5801
5801
  i && /* @__PURE__ */ a(we, {
5802
- icon: /* @__PURE__ */ a(Mo, { "aria-hidden": "true" }),
5802
+ icon: /* @__PURE__ */ a(Fo, { "aria-hidden": "true" }),
5803
5803
  "aria-label": i.shown ? n.hideTemplate : n.showTemplate,
5804
5804
  "aria-pressed": i.shown,
5805
5805
  title: i.shown ? n.hideTemplate : n.showTemplate,
@@ -5876,7 +5876,7 @@ function Qa(e, t, n) {
5876
5876
  profile: e.compositionProfile,
5877
5877
  catalog: e.packages,
5878
5878
  templateLibrary: ff(e, t),
5879
- chrome: (o, i) => i === Dl.FullPageShell ? {} : Ml()
5879
+ chrome: (o, i) => i === Dl.FullPageShell ? {} : Fl()
5880
5880
  }
5881
5881
  };
5882
5882
  }
@@ -5938,7 +5938,7 @@ function xf(e, t, n, o = Rf, i = !1) {
5938
5938
  r,
5939
5939
  s,
5940
5940
  l
5941
- ]), u = j(() => gf(t, c).name, [t, c]), d = wf(e, n, u), [p, m] = M(() => o.read(d)), [h, f] = M(() => o.readTemplate(d)), [v, g] = M();
5941
+ ]), u = j(() => gf(t, c).name, [t, c]), d = wf(e, n, u), [p, m] = F(() => o.read(d)), [h, f] = F(() => o.readTemplate(d)), [v, g] = F();
5942
5942
  ie(() => {
5943
5943
  m(o.read(d)), f(o.readTemplate(d)), g(void 0);
5944
5944
  }, [o, d]);
@@ -6096,8 +6096,8 @@ function Df({ kind: e, tag: t, element: n, slots: o, message: i }) {
6096
6096
  }), c()]
6097
6097
  });
6098
6098
  }
6099
- var Xa = Gs(void 0), _f = () => {
6100
- const e = qs(Xa);
6099
+ var Xa = qs(void 0), _f = () => {
6100
+ const e = Gs(Xa);
6101
6101
  return e ? /* @__PURE__ */ b("span", {
6102
6102
  className: "studio-design-logo",
6103
6103
  "data-locked": e.locked ? "true" : void 0,
@@ -6118,7 +6118,7 @@ var Xa = Gs(void 0), _f = () => {
6118
6118
  "Open",
6119
6119
  { separator: !0 },
6120
6120
  "Exit"
6121
- ], qt = [{
6121
+ ], Gt = [{
6122
6122
  name: "First",
6123
6123
  description: "Sample row"
6124
6124
  }, {
@@ -6184,8 +6184,8 @@ var Xa = Gs(void 0), _f = () => {
6184
6184
  field: "name",
6185
6185
  header: "Column"
6186
6186
  },
6187
- table: { rows: qt },
6188
- "core:table": { rows: qt },
6187
+ table: { rows: Gt },
6188
+ "core:table": { rows: Gt },
6189
6189
  inputText: { placeholder: "Text" },
6190
6190
  inputTextarea: {
6191
6191
  placeholder: "Text",
@@ -6260,8 +6260,8 @@ var Xa = Gs(void 0), _f = () => {
6260
6260
  "Middle",
6261
6261
  "Right"
6262
6262
  ] },
6263
- dataTable: { rows: qt },
6264
- dataView: { rows: qt },
6263
+ dataTable: { rows: Gt },
6264
+ dataView: { rows: Gt },
6265
6265
  dataScroller: {
6266
6266
  items: [
6267
6267
  "First",
@@ -6616,9 +6616,9 @@ function Ef(e, t, n) {
6616
6616
  var Af = (e) => {
6617
6617
  const { width: t, height: n } = e.getBoundingClientRect();
6618
6618
  return t > 0 && n > 0;
6619
- }, go = (e) => Array.from(e.children).filter((t) => !t.hasAttribute("data-studio-placeholder-for")).some((t) => Af(t) || getComputedStyle(t).display === "contents" && go(t)), Ff = 150;
6620
- function Mf(e, t) {
6621
- const [n, o] = M(!0), i = J(!0);
6619
+ }, go = (e) => Array.from(e.children).filter((t) => !t.hasAttribute("data-studio-placeholder-for")).some((t) => Af(t) || getComputedStyle(t).display === "contents" && go(t)), Mf = 150;
6620
+ function Ff(e, t) {
6621
+ const [n, o] = F(!0), i = J(!0);
6622
6622
  return Te(() => {
6623
6623
  const r = e.current;
6624
6624
  if (!r) return;
@@ -6627,7 +6627,7 @@ function Mf(e, t) {
6627
6627
  };
6628
6628
  let l;
6629
6629
  const c = () => {
6630
- clearTimeout(l), go(r) ? s(!0) : l = setTimeout(() => s(go(r)), Ff);
6630
+ clearTimeout(l), go(r) ? s(!0) : l = setTimeout(() => s(go(r)), Mf);
6631
6631
  }, u = typeof ResizeObserver > "u" ? void 0 : new ResizeObserver(c), d = () => {
6632
6632
  u?.disconnect(), Array.from(r.children).forEach((m) => u?.observe(m));
6633
6633
  }, p = new MutationObserver(() => {
@@ -6647,7 +6647,7 @@ function jf(e, t, n, o) {
6647
6647
  const s = J(null), l = j(() => ({
6648
6648
  ...r.element,
6649
6649
  properties: ts(e, r.element.componentName, r.element.properties)
6650
- }), [r.element]), c = j(() => Ef(e, r.element.componentName, r.element.properties), [r.element]), u = es.has(xt(r.element.componentName)), d = e.startsWith(`${Kr}:`), p = d ? void 0 : Za[xt(r.element.componentName)], m = d && xt(r.element.componentName) === "topbar", [h, f] = M(), v = Mf(s, r.element), g = Lf(r), k = Bf(r.element, h !== void 0);
6650
+ }), [r.element]), c = j(() => Ef(e, r.element.componentName, r.element.properties), [r.element]), u = es.has(xt(r.element.componentName)), d = e.startsWith(`${Kr}:`), p = d ? void 0 : Za[xt(r.element.componentName)], m = d && xt(r.element.componentName) === "topbar", [h, f] = F(), v = Ff(s, r.element), g = Lf(r), k = Bf(r.element, h !== void 0);
6651
6651
  return /* @__PURE__ */ b("span", {
6652
6652
  ref: s,
6653
6653
  "data-studio-element": r.element.id,
@@ -6757,7 +6757,7 @@ function os(e, t) {
6757
6757
  const n = e.replace(/[^a-z0-9]/gi, ""), o = n.toLowerCase(), i = Object.entries(Hf).find(([r]) => o === r || o.endsWith(r));
6758
6758
  return i ? i[1][t % i[1].length] : /id$/i.test(n) ? `${(1e3 + t * 7).toString(16).padStart(4, "0")}-${(4100 + t).toString(16)}` : Uf.test(n) ? (49 + t * 30).toFixed(2) : Wf.test(n) ? String(3 + t * 4) : Kf.test(n) ? t % 2 === 0 ? "Yes" : "No" : zf.test(n) ? `2026-10-${String(12 + t).padStart(2, "0")}` : `${e} ${t + 1}`;
6759
6759
  }
6760
- var Gf = Array.from({ length: 3 }, (e, t) => t), qf = (e) => function(n) {
6760
+ var qf = Array.from({ length: 3 }, (e, t) => t), Gf = (e) => function(n) {
6761
6761
  const { element: o } = n, i = ns(o, "columns");
6762
6762
  return i.length === 0 && e ? Je(e, n) : /* @__PURE__ */ a("section", {
6763
6763
  "data-scene-id": o.id,
@@ -6771,7 +6771,7 @@ var Gf = Array.from({ length: 3 }, (e, t) => t), qf = (e) => function(n) {
6771
6771
  role: "columnheader",
6772
6772
  children: r.label
6773
6773
  }, r.property))
6774
- }) }), /* @__PURE__ */ a("tbody", { children: Gf.map((r) => /* @__PURE__ */ a("tr", {
6774
+ }) }), /* @__PURE__ */ a("tbody", { children: qf.map((r) => /* @__PURE__ */ a("tr", {
6775
6775
  role: "row",
6776
6776
  children: i.map((s) => /* @__PURE__ */ a("td", { children: os(s.property, r) }, s.property))
6777
6777
  }, r)) })]
@@ -6789,7 +6789,7 @@ var Gf = Array.from({ length: 3 }, (e, t) => t), qf = (e) => function(n) {
6789
6789
  function Jf(e) {
6790
6790
  const t = _t("core", "table"), n = _t("core", "summary");
6791
6791
  return {
6792
- [t]: qf(e[t]),
6792
+ [t]: Gf(e[t]),
6793
6793
  [n]: Vf(e[n])
6794
6794
  };
6795
6795
  }
@@ -6850,7 +6850,7 @@ function rs(e, t) {
6850
6850
  };
6851
6851
  }
6852
6852
  var as = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, eg = (e, t) => e.length === t.length && e.every((n, o) => n.region.id === t[o].region.id && as(n.rect, t[o].rect)), ss = as, tg = ({ surface: e, markers: t }) => {
6853
- const [n, o] = M([]);
6853
+ const [n, o] = F([]);
6854
6854
  return Te(() => {
6855
6855
  const i = e.current;
6856
6856
  if (!i) return;
@@ -6891,7 +6891,7 @@ function ig(e, t) {
6891
6891
  const { selectedId: n, document: o, composition: i, context: r } = e;
6892
6892
  return j(() => {
6893
6893
  if (!n) return [];
6894
- const s = Ge(i.roots, n), l = xa(s?.properties);
6894
+ const s = qe(i.roots, n), l = xa(s?.properties);
6895
6895
  if (!l) return [];
6896
6896
  const c = Pr(o, i.roots, r, t.availableSources, t.queryCandidates);
6897
6897
  return og(l, ka(c.dataContextPaths, c.componentOutputs, n));
@@ -6936,9 +6936,9 @@ function lg(e, t, n, o = 6) {
6936
6936
  }
6937
6937
  var cg = (e, t) => e?.top === t?.top && e?.left === t?.left && e?.width === t?.width && e?.height === t?.height, dg = (e, t) => !!e && e.denied === t.denied && e.drop?.target.region.id === t.drop?.target.region.id && cg(e.drop?.target.rect, t.drop?.target.rect);
6938
6938
  function ug(e, t, n) {
6939
- const [o, i] = M(), r = J(void 0);
6939
+ const [o, i] = F(), r = J(void 0);
6940
6940
  r.current = o;
6941
- const [s, l] = M(), c = J(0), u = J(void 0), d = H(() => {
6941
+ const [s, l] = F(), c = J(0), u = J(void 0), d = H(() => {
6942
6942
  c.current = 0, u.current = void 0, l(void 0), i(void 0);
6943
6943
  }, []), p = J(!1);
6944
6944
  ie(() => {
@@ -6989,18 +6989,18 @@ function ug(e, t, n) {
6989
6989
  endMoving: d,
6990
6990
  handlers: {
6991
6991
  onDragEnter: (S) => {
6992
- Gt(S) && (S.preventDefault(), p.current = !1, c.current += 1);
6992
+ qt(S) && (S.preventDefault(), p.current = !1, c.current += 1);
6993
6993
  },
6994
6994
  onDragOver: (S) => {
6995
- if (!Gt(S) || (S.preventDefault(), p.current)) return;
6995
+ if (!qt(S) || (S.preventDefault(), p.current)) return;
6996
6996
  const w = v(S);
6997
6997
  S.dataTransfer.dropEffect = w.denied ? "none" : po(S) ? "move" : "copy", i((T) => dg(T, w) ? T : w);
6998
6998
  },
6999
6999
  onDragLeave: (S) => {
7000
- Gt(S) && (c.current = Math.max(0, c.current - 1), c.current === 0 && i(void 0));
7000
+ qt(S) && (c.current = Math.max(0, c.current - 1), c.current === 0 && i(void 0));
7001
7001
  },
7002
7002
  onDrop: (S) => {
7003
- if (!Gt(S)) return;
7003
+ if (!qt(S)) return;
7004
7004
  const w = _h(S), T = $h(S), { drop: E, denied: I } = v(S), C = E && w ? h(E) : void 0, $ = p.current;
7005
7005
  if (S.preventDefault(), d(), p.current = !1, $ || I || !E) return;
7006
7006
  if (w) {
@@ -7008,8 +7008,8 @@ function ug(e, t, n) {
7008
7008
  return;
7009
7009
  }
7010
7010
  if (!T) return;
7011
- const { region: U } = E.target, D = U.containerId ?? void 0, F = U.kind === Oe.Container ? void 0 : U.index, L = g(S, E);
7012
- T.kind === "layout" ? n.insertLayout(T.item, D, F, L) : n.insertComponent(ei(T.componentName, T.package), D, F, L);
7011
+ const { region: U } = E.target, D = U.containerId ?? void 0, M = U.kind === Oe.Container ? void 0 : U.index, L = g(S, E);
7012
+ T.kind === "layout" ? n.insertLayout(T.item, D, M, L) : n.insertComponent(ei(T.componentName, T.package), D, M, L);
7013
7013
  }
7014
7014
  }
7015
7015
  };
@@ -7037,7 +7037,7 @@ function pg(e, t, n) {
7037
7037
  };
7038
7038
  }
7039
7039
  function mg(e, t, n) {
7040
- const [o, i] = M([]), [r, s] = M(), l = J([]), c = H(() => {
7040
+ const [o, i] = F([]), [r, s] = F(), l = J([]), c = H(() => {
7041
7041
  const d = e.current;
7042
7042
  if (!d) return [];
7043
7043
  const p = d.getBoundingClientRect(), m = (f) => Be(d, f, p), h = {
@@ -7224,16 +7224,16 @@ var hr = [
7224
7224
  [A.slot]: /* @__PURE__ */ a(Zc, { "aria-hidden": "true" }),
7225
7225
  [A.slice]: /* @__PURE__ */ a(td, { "aria-hidden": "true" })
7226
7226
  }, Ng = {
7227
- [A.moveEarlier]: /* @__PURE__ */ a(qc, { "aria-hidden": "true" }),
7227
+ [A.moveEarlier]: /* @__PURE__ */ a(Gc, { "aria-hidden": "true" }),
7228
7228
  [A.moveLater]: /* @__PURE__ */ a(Vc, { "aria-hidden": "true" }),
7229
7229
  [A.addSubItem]: /* @__PURE__ */ a(Qc, { "aria-hidden": "true" }),
7230
7230
  [A.duplicate]: /* @__PURE__ */ a(Jc, { "aria-hidden": "true" }),
7231
7231
  [A.delete]: /* @__PURE__ */ a(ed, { "aria-hidden": "true" })
7232
7232
  }, Ig = ({ 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: m }) => {
7233
- const h = J(null), f = J(null), [v, g] = M({
7233
+ const h = J(null), f = J(null), [v, g] = F({
7234
7234
  width: 380,
7235
7235
  height: 100
7236
- }), [k, x] = M(t.label), [O, y] = M(0), S = e.mode.itemToolbar, w = S.some((_) => _.compact === !0), T = S.some((_) => hr.includes(_.id)), E = S.find((_) => _.id === A.rename), I = E && Wt(E, t);
7236
+ }), [k, x] = F(t.label), [O, y] = F(0), S = e.mode.itemToolbar, w = S.some((_) => _.compact === !0), T = S.some((_) => hr.includes(_.id)), E = S.find((_) => _.id === A.rename), I = E && Wt(E, t);
7237
7237
  ie(() => {
7238
7238
  x(t.label);
7239
7239
  }, [t.id, t.label]), ie(() => {
@@ -7253,7 +7253,7 @@ var hr = [
7253
7253
  }), U = J(!1), D = () => {
7254
7254
  const _ = k.trim();
7255
7255
  _ !== "" && _ !== t.label ? l(_) : x(t.label);
7256
- }, F = (_) => {
7256
+ }, M = (_) => {
7257
7257
  _.key === "Enter" && (_.preventDefault(), D(), U.current = !0, m()), _.key === "Escape" && (_.preventDefault(), _.stopPropagation(), x(t.label), U.current = !0, m());
7258
7258
  }, L = () => {
7259
7259
  if (U.current) {
@@ -7323,7 +7323,7 @@ var hr = [
7323
7323
  "data-action": "rename",
7324
7324
  onChange: (_) => x(_.target.value),
7325
7325
  onBlur: L,
7326
- onKeyDown: F,
7326
+ onKeyDown: M,
7327
7327
  onFocus: (_) => _.currentTarget.select()
7328
7328
  }),
7329
7329
  I?.visible && T && /* @__PURE__ */ a("span", {
@@ -7376,7 +7376,7 @@ var hr = [
7376
7376
  ];
7377
7377
  }, Un = (e, t) => e === t || !!e && !!t && e.left === t.left && e.top === t.top && e.width === t.width && e.height === t.height, Og = (e, t) => Un(e.surface, t.surface) && Un(e.component, t.component) && Object.keys(t.items).length === Object.keys(e.items).length && Object.entries(t.items).every(([n, o]) => Un(e.items[n], o));
7378
7378
  function vo(e, t, n) {
7379
- const [o, i] = M(), r = H(() => {
7379
+ const [o, i] = F(), r = H(() => {
7380
7380
  const s = e.current, l = s ? t(s, s.getBoundingClientRect()) : void 0;
7381
7381
  i((c) => c === void 0 || l === void 0 ? l : n(c, l) ? c : l);
7382
7382
  }, [
@@ -7399,6 +7399,16 @@ function vo(e, t, n) {
7399
7399
  if (typeof ResizeObserver < "u") {
7400
7400
  const d = new ResizeObserver(u);
7401
7401
  d.observe(s), l.push(d);
7402
+ const p = new ResizeObserver(u), m = () => {
7403
+ p.disconnect(), s.querySelectorAll('[data-scene-id="composition"]').forEach((h) => p.observe(h));
7404
+ };
7405
+ if (m(), l.push(p), typeof MutationObserver < "u") {
7406
+ const h = new MutationObserver(m);
7407
+ h.observe(s, {
7408
+ childList: !0,
7409
+ subtree: !0
7410
+ }), l.push(h);
7411
+ }
7402
7412
  }
7403
7413
  if (typeof MutationObserver < "u") {
7404
7414
  const d = new MutationObserver(u);
@@ -7435,14 +7445,14 @@ function xg(e, t) {
7435
7445
  }, [t]), Og);
7436
7446
  }
7437
7447
  var zn = 34, Rg = ({ surface: e, state: t, controller: n, environment: o, editorStrings: i, strings: r }) => {
7438
- const { subject: s } = t, l = xg(e, s), [c, u] = M(), d = o.propertyEditors?.registry ?? hn, p = j(() => jo(o.availableSources), [o.availableSources]), m = H((F) => {
7439
- if (typeof F != "string" || F === "") return;
7440
- const L = o.propertyEditors?.slices?.find((z) => z.id === F) ?? o.stateChangeSlices.find((z) => z.id === F), N = F.split(".");
7448
+ const { subject: s } = t, l = xg(e, s), [c, u] = F(), d = o.propertyEditors?.registry ?? hn, p = j(() => jo(o.availableSources), [o.availableSources]), m = H((M) => {
7449
+ if (typeof M != "string" || M === "") return;
7450
+ const L = o.propertyEditors?.slices?.find((z) => z.id === M) ?? o.stateChangeSlices.find((z) => z.id === M), N = M.split(".");
7441
7451
  return L?.name ?? N[N.length - 1];
7442
- }, [o]), h = H((F, L) => {
7443
- const N = L.chips?.[F];
7452
+ }, [o]), h = H((M, L) => {
7453
+ const N = L.chips?.[M];
7444
7454
  if (N !== void 0 && N !== "") return N;
7445
- switch (F) {
7455
+ switch (M) {
7446
7456
  case A.slice:
7447
7457
  return m(L.values.slice) ?? r.chooseSlice;
7448
7458
  case A.emphasis:
@@ -7455,8 +7465,8 @@ var zn = 34, Rg = ({ surface: e, state: t, controller: n, environment: o, editor
7455
7465
  }, [m, r]), f = s?.selected?.parentId !== void 0 && l !== void 0 && l.items[s.selected.id] === void 0, v = s?.selected?.parentId;
7456
7466
  if (ie(() => {
7457
7467
  if (!f || !v) return;
7458
- const F = e.current?.querySelector(`[data-scene-nav-item="${CSS.escape(v)}"] > [data-scene-nav-link]`);
7459
- F && (F.focus({ preventScroll: !0 }), F.dispatchEvent(new KeyboardEvent("keydown", {
7468
+ const M = e.current?.querySelector(`[data-scene-nav-item="${CSS.escape(v)}"] > [data-scene-nav-link]`);
7469
+ M && (M.focus({ preventScroll: !0 }), M.dispatchEvent(new KeyboardEvent("keydown", {
7460
7470
  key: "ArrowRight",
7461
7471
  bubbles: !0,
7462
7472
  cancelable: !0
@@ -7466,7 +7476,7 @@ var zn = 34, Rg = ({ surface: e, state: t, controller: n, environment: o, editor
7466
7476
  v,
7467
7477
  e
7468
7478
  ]), !s || !l) return null;
7469
- const { selected: g, source: k } = s, x = s.mode.addActions[0], O = k.items.flatMap((F) => l.items[F.id] ? [l.items[F.id]] : []), y = O[O.length - 1], S = s.mode.itemToolbar.some((F) => F.compact === !0), w = y ?? l.component, T = w && x ? S || !y ? {
7479
+ const { selected: g, source: k } = s, x = s.mode.addActions[0], O = k.items.flatMap((M) => l.items[M.id] ? [l.items[M.id]] : []), y = O[O.length - 1], S = s.mode.itemToolbar.some((M) => M.compact === !0), w = y ?? l.component, T = w && x ? S || !y ? {
7470
7480
  left: (y ?? w).left,
7471
7481
  top: (y ? y.top + y.height : w.top) + 8
7472
7482
  } : {
@@ -7481,10 +7491,10 @@ var zn = 34, Rg = ({ surface: e, state: t, controller: n, environment: o, editor
7481
7491
  inCanvas: !1,
7482
7492
  bindingScope: p,
7483
7493
  slotNames: Ea(r.navigation)
7484
- }), U = (F, L) => {
7494
+ }), U = (M, L) => {
7485
7495
  if (!I) return;
7486
7496
  const N = I.plan(L);
7487
- qo(N) || u(void 0), t.perform(N);
7497
+ Go(N) || u(void 0), t.perform(N);
7488
7498
  }, D = E;
7489
7499
  return /* @__PURE__ */ b(re, { children: [
7490
7500
  T && x && /* @__PURE__ */ a("button", {
@@ -7510,15 +7520,15 @@ var zn = 34, Rg = ({ surface: e, state: t, controller: n, environment: o, editor
7510
7520
  strings: r,
7511
7521
  renameToken: t.renameToken,
7512
7522
  chipLabel: h,
7513
- onRename: (F) => t.rename(g, F),
7514
- onAction: (F) => t.act(F, g),
7515
- onChoice: (F, L) => u((N) => N && N.actionId === F && N.itemId === g.id ? void 0 : {
7516
- actionId: F,
7523
+ onRename: (M) => t.rename(g, M),
7524
+ onAction: (M) => t.act(M, g),
7525
+ onChoice: (M, L) => u((N) => N && N.actionId === M && N.itemId === g.id ? void 0 : {
7526
+ actionId: M,
7517
7527
  itemId: g.id,
7518
7528
  opener: L
7519
7529
  }),
7520
7530
  readOnlyActions: k.readOnlyActions(g),
7521
- onReadOnlyAction: (F) => t.perform(F.plan()),
7531
+ onReadOnlyAction: (M) => t.perform(M.plan()),
7522
7532
  onLeave: () => e.current?.focus({ preventScroll: !0 })
7523
7533
  }, g.id),
7524
7534
  I && c && D && /* @__PURE__ */ a(kg, {
@@ -7529,7 +7539,7 @@ var zn = 34, Rg = ({ surface: e, state: t, controller: n, environment: o, editor
7529
7539
  anchor: Dg(e, c.opener),
7530
7540
  opener: c.opener,
7531
7541
  bounds: l.surface,
7532
- title: s.mode.itemToolbar.find((F) => F.id === c.actionId)?.title ?? c.actionId,
7542
+ title: s.mode.itemToolbar.find((M) => M.id === c.actionId)?.title ?? c.actionId,
7533
7543
  strings: r,
7534
7544
  onChange: U,
7535
7545
  onClose: C
@@ -7601,7 +7611,7 @@ var _g = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
7601
7611
  })
7602
7612
  }), m?.map(({ id: h, name: f, region: v, rect: g }) => {
7603
7613
  if (v) {
7604
- const k = Mr(u, l, c, v).sources;
7614
+ const k = Fr(u, l, c, v).sources;
7605
7615
  return /* @__PURE__ */ a("div", {
7606
7616
  className: "studio-design-region",
7607
7617
  "data-region": v,
@@ -7640,7 +7650,7 @@ var _g = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
7640
7650
  })] });
7641
7651
  }, Ag = Wl(), Jt = () => {
7642
7652
  throw new Error("The screen is being designed; it does not navigate.");
7643
- }, Fg = ({ structure: e, navigation: t, module: n, logoLockedReason: o, onNavigate: i, peeking: r, children: s }) => {
7653
+ }, Mg = ({ structure: e, navigation: t, module: n, logoLockedReason: o, onNavigate: i, peeking: r, children: s }) => {
7644
7654
  const l = j(() => new dn(e), [e]), c = j(() => ({
7645
7655
  structure: l,
7646
7656
  navigation: t
@@ -7684,9 +7694,9 @@ var _g = (e, t) => e.left === t.left && e.top === t.top && e.width === t.width &
7684
7694
  value: p,
7685
7695
  children: f
7686
7696
  }) : f;
7687
- }, Mg = 'button, a[href], [role="button"], [role="radio"], [role="option"], [role="menuitem"]', Lg = (e) => {
7697
+ }, Fg = 'button, a[href], [role="button"], [role="radio"], [role="option"], [role="menuitem"]', Lg = (e) => {
7688
7698
  const t = e;
7689
- return !!t && typeof t.closest == "function" && t.closest(Mg) !== null;
7699
+ return !!t && typeof t.closest == "function" && t.closest(Fg) !== null;
7690
7700
  };
7691
7701
  function Bg(e, t, n) {
7692
7702
  const { subject: o } = t;
@@ -7783,14 +7793,14 @@ function Kg(e, t = /* @__PURE__ */ new Set()) {
7783
7793
  property: l.name,
7784
7794
  label: l.label ?? l.name
7785
7795
  }));
7786
- return Pe(G.Stack, i, `Form ${r}`, [
7796
+ return Pe(q.Stack, i, `Form ${r}`, [
7787
7797
  ue(`${i}-title`, r, "core:text", { text: vr(r) }),
7788
7798
  ...s.length > 0 ? [ue(`${i}-fields`, `${r} fields`, "core:summary", { typeName: r }, { fields: s })] : [],
7789
7799
  ue(`${i}-send`, r, "core:button", { label: vr(r) })
7790
7800
  ]);
7791
7801
  });
7792
7802
  }
7793
- var ds = "template-slot:", Hg = "template-slot-label:", Gg = 280, qg = (e) => {
7803
+ var ds = "template-slot:", Hg = "template-slot-label:", qg = 280, Gg = (e) => {
7794
7804
  const t = e.arrangement;
7795
7805
  return t?.root && typeof t.root == "object" ? t.root : void 0;
7796
7806
  }, us = (e) => `${ds}${e}`, He = (e) => e.startsWith(ds), Vg = (e) => e.slice(14), Jg = (e) => e.slots.some((t) => t.name !== Ze);
@@ -7799,7 +7809,7 @@ function ps(e, t) {
7799
7809
  }
7800
7810
  var ms = (e, t) => He(e) ? Math.max(0, t - 1) : t, hs = (e, t, n) => {
7801
7811
  const o = ue(`${Hg}${t}`, t, "core:text", { text: `slot: ${t}` });
7802
- return Pe(G.Stack, us(t), t, [...n ? [o] : [], ...e.content?.[t] ?? []]);
7812
+ return Pe(q.Stack, us(t), t, [...n ? [o] : [], ...e.content?.[t] ?? []]);
7803
7813
  }, br = (e) => ({
7804
7814
  unitType: ko.Star,
7805
7815
  value: e
@@ -7818,10 +7828,10 @@ function fs(e, t, n, o) {
7818
7828
  if (s.length === 0) return;
7819
7829
  const l = r.kind === "Row" ? "row" : "column";
7820
7830
  return r.kind !== "Row" ? {
7821
- ...Pe(G.Stack, `template-flow:${l}-${[...n].join("-")}`, l, s.map((c) => c.element)),
7831
+ ...Pe(q.Stack, `template-flow:${l}-${[...n].join("-")}`, l, s.map((c) => c.element)),
7822
7832
  spacing: r.gap ?? 8
7823
7833
  } : {
7824
- ...Pe(G.Grid, `template-flow:${l}-${[...n].join("-")}`, l, s.map((c, u) => ({
7834
+ ...Pe(q.Grid, `template-flow:${l}-${[...n].join("-")}`, l, s.map((c, u) => ({
7825
7835
  ...c.element,
7826
7836
  properties: {
7827
7837
  ...c.element.properties,
@@ -7831,14 +7841,14 @@ function fs(e, t, n, o) {
7831
7841
  }))),
7832
7842
  rows: [],
7833
7843
  columns: s.map((c) => ({
7834
- width: (c.child.grow ?? 0) > 0 ? br(c.child.grow) : c.child.slotName !== void 0 ? Qg(Gg) : br(1),
7844
+ width: (c.child.grow ?? 0) > 0 ? br(c.child.grow) : c.child.slotName !== void 0 ? Qg(qg) : br(1),
7835
7845
  minimumWidth: 0,
7836
7846
  maximumWidth: Number.POSITIVE_INFINITY
7837
7847
  }))
7838
7848
  };
7839
7849
  }
7840
7850
  function Yg(e, t = !0) {
7841
- const n = /* @__PURE__ */ new Set(), o = qg(e), i = [], r = o ? fs(e, o, n, t) : void 0;
7851
+ const n = /* @__PURE__ */ new Set(), o = Gg(e), i = [], r = o ? fs(e, o, n, t) : void 0;
7842
7852
  r && i.push(r);
7843
7853
  for (const s of e.slots) n.has(s.name) || (n.add(s.name), i.push(hs(e, s.name, t)));
7844
7854
  return {
@@ -7870,7 +7880,7 @@ function bo(e, t) {
7870
7880
  r.push(...Kg(n?.forms, Zg(r)));
7871
7881
  }
7872
7882
  return {
7873
- element: Pe(G.Stack, gs, "Composition", r),
7883
+ element: Pe(q.Stack, gs, "Composition", r),
7874
7884
  roots: r,
7875
7885
  own: r.slice(l),
7876
7886
  templates: i,
@@ -7885,14 +7895,14 @@ function Zg(e) {
7885
7895
  return e.forEach(n), t;
7886
7896
  }
7887
7897
  function Xg(e) {
7888
- return e.templates.length === 0 ? e.element : Pe(G.Stack, gs, "Composition", e.own);
7898
+ return e.templates.length === 0 ? e.element : Pe(q.Stack, gs, "Composition", e.own);
7889
7899
  }
7890
7900
  var ev = () => {
7891
7901
  }, tv = {
7892
7902
  button: "Button",
7893
7903
  item: "New item"
7894
7904
  }, nv = ({ controller: e, environment: t, resolveBinding: n = ev, configuration: o, strings: i, editorStrings: r, viewportHeight: s, shell: l }) => {
7895
- const c = J(null), { composition: u, dropRegions: d, selectedId: p } = e, { selectionRect: m, measureNow: h } = mg(c, d, p), { feedback: f, draggedId: v, startMoving: g, endMoving: k, handlers: x } = ug(c, h, e), [O, y] = M(), S = ig(e, t), { document: w, context: T } = e, E = j(() => o ?? (w.instanceContributions.length > 0 ? Br(Ro(w, T.scope), w.instanceContributions, T.catalog) : void 0), [
7905
+ const c = J(null), { composition: u, dropRegions: d, selectedId: p } = e, { selectionRect: m, measureNow: h } = mg(c, d, p), { feedback: f, draggedId: v, startMoving: g, endMoving: k, handlers: x } = ug(c, h, e), [O, y] = F(), S = ig(e, t), { document: w, context: T } = e, E = j(() => o ?? (w.instanceContributions.length > 0 ? Br(Ro(w, T.scope), w.instanceContributions, T.catalog) : void 0), [
7896
7906
  o,
7897
7907
  w,
7898
7908
  T
@@ -7918,7 +7928,7 @@ var ev = () => {
7918
7928
  const B = c.current?.querySelector(".studio-design-toolbar__title");
7919
7929
  return B?.focus({ preventScroll: !0 }), !!B;
7920
7930
  }) || !Bo(P) || !e.selectedId || !e.canRemove(e.selectedId) || (P.preventDefault(), e.remove(e.selectedId));
7921
- }, F = !!e.selectedId && e.ownershipOf(e.selectedId) === oe.Local && e.canRemove(e.selectedId), L = e.selection && (e.selection.name || e.selection.componentName) || "";
7931
+ }, M = !!e.selectedId && e.ownershipOf(e.selectedId) === oe.Local && e.canRemove(e.selectedId), L = e.selection && (e.selection.name || e.selection.componentName) || "";
7922
7932
  wg(c, (P, B) => {
7923
7933
  e.select(P), U.pointItem(P, B);
7924
7934
  }, l?.frame !== void 0);
@@ -7953,11 +7963,11 @@ var ev = () => {
7953
7963
  pe,
7954
7964
  ce,
7955
7965
  me
7956
- ]), _ = j(() => Qf(t.runtime.registry, i), [t.runtime.registry, i]), ne = j(() => ai(t.runtime), [t.runtime]), fe = j(() => /* @__PURE__ */ a(qr, {
7966
+ ]), _ = j(() => Qf(t.runtime.registry, i), [t.runtime.registry, i]), ne = j(() => ai(t.runtime), [t.runtime]), fe = j(() => /* @__PURE__ */ a(Gr, {
7957
7967
  registry: t.runtime.iconAdapters,
7958
7968
  children: /* @__PURE__ */ a(zr, {
7959
7969
  storage: null,
7960
- children: /* @__PURE__ */ a(Fg, {
7970
+ children: /* @__PURE__ */ a(Mg, {
7961
7971
  structure: e.structure,
7962
7972
  navigation: e.navigation,
7963
7973
  module: e.navigationModule,
@@ -8008,7 +8018,7 @@ var ev = () => {
8008
8018
  "data-moving": v === e.selectedId ? "true" : void 0,
8009
8019
  style: m
8010
8020
  }),
8011
- m && F && /* @__PURE__ */ a("div", {
8021
+ m && M && /* @__PURE__ */ a("div", {
8012
8022
  className: "studio-screen-surface__grip",
8013
8023
  style: {
8014
8024
  left: m.left,
@@ -8265,9 +8275,9 @@ var Ss = (e, t) => (e?.children ?? []).map((n) => {
8265
8275
  };
8266
8276
  });
8267
8277
  function lv(e, t, n, o) {
8268
- const i = Ge(e, t.nodeId);
8278
+ const i = qe(e, t.nodeId);
8269
8279
  if (!i || t.targetParentId === null) return;
8270
- const r = wo(e, t.nodeId), s = Ge(e, t.targetParentId), l = !!r && vt(r), c = !!s && vt(s);
8280
+ const r = wo(e, t.nodeId), s = qe(e, t.targetParentId), l = !!r && vt(r), c = !!s && vt(s);
8271
8281
  if (!l && !c) return;
8272
8282
  const u = l && c && r.id === t.targetParentId, d = u ? r.children.findIndex((m) => m.id === t.nodeId) : t.index, p = c ? ys(i, n ?? (u ? ws(i) : void 0) ?? bs(Ss(s, o))) : rv(i);
8273
8283
  return [{
@@ -8341,7 +8351,7 @@ function pv(e) {
8341
8351
  };
8342
8352
  }
8343
8353
  function mv(e, t, n, o) {
8344
- const i = Fr(e.document, t, n);
8354
+ const i = Mr(e.document, t, n);
8345
8355
  return i.applied ? {
8346
8356
  ...e,
8347
8357
  document: i.model,
@@ -8374,7 +8384,7 @@ function hv(e, t, n, o) {
8374
8384
  let i = e.document;
8375
8385
  const r = [];
8376
8386
  for (const s of t) {
8377
- const l = Fr(i, s, n);
8387
+ const l = Mr(i, s, n);
8378
8388
  if (r.push(...l.diagnostics), !l.applied) return {
8379
8389
  ...e,
8380
8390
  diagnostics: r
@@ -8447,17 +8457,17 @@ function Rt(e, t, n) {
8447
8457
  }
8448
8458
  var yo = (e) => e.id, wv = (e) => e.name || yo(e), kv = (e) => {
8449
8459
  switch (e) {
8450
- case G.Stack:
8460
+ case q.Stack:
8451
8461
  return Y.Column;
8452
- case G.Row:
8462
+ case q.Row:
8453
8463
  return Y.Row;
8454
- case G.Grid:
8464
+ case q.Grid:
8455
8465
  return Y.Grid;
8456
- case G.Wrap:
8466
+ case q.Wrap:
8457
8467
  return Y.Wrap;
8458
- case G.Canvas:
8468
+ case q.Canvas:
8459
8469
  return Y.Freeform;
8460
- case G.Container:
8470
+ case q.Container:
8461
8471
  return Y.Grouping;
8462
8472
  case void 0:
8463
8473
  return;
@@ -8525,7 +8535,7 @@ function Iv(e, t, n) {
8525
8535
  return (i) => o.get(i) ?? oe.Local;
8526
8536
  }
8527
8537
  function Pv(e) {
8528
- const [t, n] = M({
8538
+ const [t, n] = F({
8529
8539
  catalog: e,
8530
8540
  times: 0
8531
8541
  });
@@ -8547,9 +8557,9 @@ function Ov(e, t) {
8547
8557
  }
8548
8558
  var xv = { modules: [] }, Rv = (e, t) => wo(e, t)?.id;
8549
8559
  function Cs(e, t, n, o) {
8550
- const [i, r] = M(() => pv(e.document)), s = J(void 0);
8560
+ const [i, r] = F(() => pv(e.document)), s = J(void 0);
8551
8561
  s.current ??= new uv(i, r);
8552
- const l = H((P) => s.current.commit(P), []), [c, u] = M(), [d, p] = M(), [m, h] = M(n.navigation?.module), f = J(void 0), v = H((P, B) => {
8562
+ const l = H((P) => s.current.commit(P), []), [c, u] = F(), [d, p] = F(), [m, h] = F(n.navigation?.module), f = J(void 0), v = H((P, B) => {
8553
8563
  const W = f.current?.(P), K = f.current?.(B);
8554
8564
  return W && K ? {
8555
8565
  height: W.height,
@@ -8576,7 +8586,7 @@ function Cs(e, t, n, o) {
8576
8586
  O,
8577
8587
  w,
8578
8588
  S
8579
- ]), E = c ? Ge(O.roots, c) : void 0, I = j(() => c ? Po(i.document, ae(c), x) : void 0, [
8589
+ ]), E = c ? qe(O.roots, c) : void 0, I = j(() => c ? Po(i.document, ae(c), x) : void 0, [
8580
8590
  i.document,
8581
8591
  c,
8582
8592
  x
@@ -8595,18 +8605,18 @@ function Cs(e, t, n, o) {
8595
8605
  diagnostics: K.diagnostics
8596
8606
  };
8597
8607
  }, [l, x]), D = H((P, B) => {
8598
- const W = P ?? w?.id ?? O.entry, K = W ? Ge(O.roots, W)?.children ?? [] : [];
8608
+ const W = P ?? w?.id ?? O.entry, K = W ? qe(O.roots, W)?.children ?? [] : [];
8599
8609
  return {
8600
8610
  parent: W,
8601
8611
  index: B ?? K.length
8602
8612
  };
8603
- }, [w, O]), F = J(o);
8604
- F.current = o;
8613
+ }, [w, O]), M = J(o);
8614
+ M.current = o;
8605
8615
  const L = H((P, B, W, K, V, de) => {
8606
8616
  const Ue = D(B, W);
8607
8617
  if (!Ue.parent) return;
8608
- const ot = Ge(bo(s.current.current.document, t).roots, Ue.parent), xs = ot && vt(ot) ? ys(P, V ?? bs(Ss(ot, v))) : P;
8609
- C(ks(Ue.parent, Ue.index, xs, t), K).applied && (u(P.id), de && F.current?.(de));
8618
+ const ot = qe(bo(s.current.current.document, t).roots, Ue.parent), xs = ot && vt(ot) ? ys(P, V ?? bs(Ss(ot, v))) : P;
8619
+ C(ks(Ue.parent, Ue.index, xs, t), K).applied && (u(P.id), de && M.current?.(de));
8610
8620
  }, [
8611
8621
  C,
8612
8622
  D,
@@ -8680,8 +8690,8 @@ function Cs(e, t, n, o) {
8680
8690
  l((K) => De(K, kr(K.document, P, (V) => {
8681
8691
  B ? V.behaviors = B : delete V.behaviors;
8682
8692
  }), W));
8683
- }, [l]), ne = j(() => Gi(i.document), [i.document]), fe = n.navigation?.structure ?? xv, je = H((P, B) => {
8684
- const W = sl(Gi(s.current.current.document), P);
8693
+ }, [l]), ne = j(() => qi(i.document), [i.document]), fe = n.navigation?.structure ?? xv, je = H((P, B) => {
8694
+ const W = sl(qi(s.current.current.document), P);
8685
8695
  return W.applied ? (l((K) => De(K, Vm(K.document, W.model), B)), { applied: !0 }) : {
8686
8696
  applied: !1,
8687
8697
  rejected: W.rejected
@@ -8783,7 +8793,7 @@ var Cr = () => ({
8783
8793
  initialSize: e.initialSize,
8784
8794
  centerOffsetX: e.centerOffsetX,
8785
8795
  onClosed: () => e.onDismiss?.(),
8786
- children: (n) => /* @__PURE__ */ a(Ga, {
8796
+ children: (n) => /* @__PURE__ */ a(qa, {
8787
8797
  problem: t.problem,
8788
8798
  strings: e.strings,
8789
8799
  onClose: () => n.close()
@@ -8813,7 +8823,7 @@ var Cr = () => ({
8813
8823
  y,
8814
8824
  e.authoringTemplate,
8815
8825
  e.screen
8816
- ]), [w, T] = M(), E = H(async (L) => {
8826
+ ]), [w, T] = F(), E = H(async (L) => {
8817
8827
  y(L);
8818
8828
  const N = Nt(k.document, e.authoringTemplate), z = {
8819
8829
  document: It(k.document, e.screen),
@@ -8830,7 +8840,7 @@ var Cr = () => ({
8830
8840
  y,
8831
8841
  e.authoringTemplate,
8832
8842
  e.screen
8833
- ]), [I, C] = M(!1), $ = H(async (L) => {
8843
+ ]), [I, C] = F(!1), $ = H(async (L) => {
8834
8844
  if (!(!h || !k.isDirty)) {
8835
8845
  C(!0);
8836
8846
  try {
@@ -8857,10 +8867,10 @@ var Cr = () => ({
8857
8867
  layoutLabels: o,
8858
8868
  icons: i,
8859
8869
  paletteSources: r,
8860
- onAdd: (L) => F(L.payload)
8870
+ onAdd: (L) => M(L.payload)
8861
8871
  });
8862
8872
  g.current = D;
8863
- function F(L) {
8873
+ function M(L) {
8864
8874
  if (!Zo(L)) return;
8865
8875
  const N = k.selection && Av(k) ? k.selectedId : void 0;
8866
8876
  L.kind === "layout" ? k.insertLayout(L.item, N, void 0) : k.insertComponent(ei(L.componentName, L.package), N, void 0);
@@ -8917,7 +8927,7 @@ function Av(e) {
8917
8927
  return !!e.selection && "children" in e.selection;
8918
8928
  }
8919
8929
  var ct = (e) => typeof e == "object" && e !== null && !Array.isArray(e);
8920
- function Fv(e, t) {
8930
+ function Mv(e, t) {
8921
8931
  if (!t) return e;
8922
8932
  const n = { ...e };
8923
8933
  for (const [o, i] of Object.entries(t)) {
@@ -8933,10 +8943,10 @@ function Fv(e, t) {
8933
8943
  }
8934
8944
  return n;
8935
8945
  }
8936
- var dt = "p-anchored-overlay", Qt = "p-collapsible", Gn = "p-overlay-mask", R = (e, t) => ({ props: t ? {
8946
+ var dt = "p-anchored-overlay", Qt = "p-collapsible", qn = "p-overlay-mask", R = (e, t) => ({ props: t ? {
8937
8947
  styles: e,
8938
8948
  motionProps: { name: t }
8939
- } : { styles: e } }), he = (e) => ({ props: { motionProps: { name: e } } }), Mv = {
8949
+ } : { styles: e } }), he = (e) => ({ props: { motionProps: { name: e } } }), Fv = {
8940
8950
  "Accordion.Root": R(od, Qt),
8941
8951
  "AutoComplete.Root": R(id),
8942
8952
  "AutoComplete.Popup": he(dt),
@@ -8959,11 +8969,11 @@ var dt = "p-anchored-overlay", Qt = "p-collapsible", Gn = "p-overlay-mask", R =
8959
8969
  "DatePicker.Root": R(wd),
8960
8970
  "DatePicker.Popup": he(dt),
8961
8971
  "Dialog.Root": R(kd),
8962
- "Dialog.Backdrop": he(Gn),
8972
+ "Dialog.Backdrop": he(qn),
8963
8973
  "Dialog.Popup": he("p-dialog"),
8964
8974
  Divider: R(Sd),
8965
8975
  "Drawer.Root": R(Cd),
8966
- "Drawer.Backdrop": he(Gn),
8976
+ "Drawer.Backdrop": he(qn),
8967
8977
  "Drawer.Popup": he("p-drawer"),
8968
8978
  "Fieldset.Root": R(Td, Qt),
8969
8979
  "FileUpload.Root": R(Nd),
@@ -8978,8 +8988,8 @@ var dt = "p-anchored-overlay", Qt = "p-collapsible", Gn = "p-overlay-mask", R =
8978
8988
  "InputNumber.Root": R(Ed),
8979
8989
  "InputOtp.Root": R(Ad),
8980
8990
  InputPassword: R(Jd),
8981
- "InputTags.Root": R(Fd),
8982
- InputText: R(Md),
8991
+ "InputTags.Root": R(Md),
8992
+ InputText: R(Fd),
8983
8993
  "Knob.Root": R(Ld),
8984
8994
  Label: R(Bd),
8985
8995
  "Listbox.Root": R(jd),
@@ -8989,8 +8999,8 @@ var dt = "p-anchored-overlay", Qt = "p-collapsible", Gn = "p-overlay-mask", R =
8989
8999
  "MeterGroup.Root": R(Wd),
8990
9000
  NavigationMenu: R(Kd),
8991
9001
  "OrganizationChart.Root": R(Hd),
8992
- OverlayBadge: R(Gd),
8993
- "Paginator.Root": R(qd),
9002
+ OverlayBadge: R(qd),
9003
+ "Paginator.Root": R(Gd),
8994
9004
  "Panel.Root": R(Vd, Qt),
8995
9005
  "Popover.Root": R(Qd),
8996
9006
  "Popover.Popup": he(dt),
@@ -9004,7 +9014,7 @@ var dt = "p-anchored-overlay", Qt = "p-collapsible", Gn = "p-overlay-mask", R =
9004
9014
  "Select.Popup": he(dt),
9005
9015
  "Sidebar.Root": R(ru),
9006
9016
  "Sidebar.Layout": R(iu),
9007
- "Sidebar.Backdrop": he(Gn),
9017
+ "Sidebar.Backdrop": he(qn),
9008
9018
  Skeleton: R(au),
9009
9019
  "Slider.Root": R(su),
9010
9020
  "SpeedDial.Root": R(lu),
@@ -9029,7 +9039,7 @@ var dt = "p-anchored-overlay", Qt = "p-collapsible", Gn = "p-overlay-mask", R =
9029
9039
  return /* @__PURE__ */ a(nd, {
9030
9040
  ...n,
9031
9041
  theme: t ?? o?.theme,
9032
- defaults: Fv(Mv, e)
9042
+ defaults: Mv(Fv, e)
9033
9043
  });
9034
9044
  }, S0 = (e) => /* @__PURE__ */ a(Ha, {
9035
9045
  strings: e.strings,
@@ -9041,12 +9051,12 @@ var dt = "p-anchored-overlay", Qt = "p-collapsible", Gn = "p-overlay-mask", R =
9041
9051
  return t.opened ? /* @__PURE__ */ a(jv, {
9042
9052
  ...e,
9043
9053
  opened: t.subject
9044
- }, e.environment.runtime.id) : /* @__PURE__ */ a(Ga, {
9054
+ }, e.environment.runtime.id) : /* @__PURE__ */ a(qa, {
9045
9055
  problem: t.problem,
9046
9056
  strings: e.strings
9047
9057
  });
9048
9058
  }, jv = ({ subject: e, environment: t, strings: n, layoutLabels: o, icons: i, paletteSources: r, initialSize: s, onChange: l, renderPaletteHost: c, opened: u }) => {
9049
- const d = J(void 0), p = Cs(u, e.authoringTemplate, t, (y) => d.current?.(y)), [m, h] = M(s ?? yn[Xe.Desktop]), [f, v] = M(!0), g = J(l);
9059
+ const d = J(void 0), p = Cs(u, e.authoringTemplate, t, (y) => d.current?.(y)), [m, h] = F(s ?? yn[Xe.Desktop]), [f, v] = F(!0), g = J(l);
9050
9060
  g.current = l, ie(() => {
9051
9061
  const y = Nt(p.document, e.authoringTemplate);
9052
9062
  g.current?.({
@@ -9158,10 +9168,10 @@ function C0(e) {
9158
9168
  };
9159
9169
  }
9160
9170
  var Hv = [.../* @__PURE__ */ new Set([...hn.ids, ...Object.values(X)])];
9161
- function Gv(e, t) {
9162
- return ql({
9171
+ function qv(e, t) {
9172
+ return Gl({
9163
9173
  bundles: e,
9164
- profile: qv(e, t),
9174
+ profile: Gv(e, t),
9165
9175
  policy: {
9166
9176
  allowExecutableImports: !0,
9167
9177
  allowNetworkAssets: !1,
@@ -9169,7 +9179,7 @@ function Gv(e, t) {
9169
9179
  }
9170
9180
  }, { hostEditorKinds: [...Hv] });
9171
9181
  }
9172
- function qv(e, t) {
9182
+ function Gv(e, t) {
9173
9183
  const n = new Set(t.packages);
9174
9184
  return !t.layout || e.some((o) => n.has(o.manifest.name) && (o.layouts ?? []).some((i) => i.name === t.layout)) ? t : {
9175
9185
  ...t,
@@ -9314,7 +9324,7 @@ function tb(e) {
9314
9324
  path: Ho,
9315
9325
  label: "Presentation",
9316
9326
  group: "Behavior",
9317
- valueType: q.Enum,
9327
+ valueType: G.Enum,
9318
9328
  default: be.None,
9319
9329
  choices: eb,
9320
9330
  description: "Whether the command runs straight away or first asks for its input in a dialog or a drawer."
@@ -9330,18 +9340,18 @@ function li(e, t, n = nb(e)) {
9330
9340
  };
9331
9341
  return typeof t == "number" ? {
9332
9342
  ...o,
9333
- valueType: q.Number
9343
+ valueType: G.Number
9334
9344
  } : typeof t == "boolean" ? {
9335
9345
  ...o,
9336
- valueType: q.Boolean
9346
+ valueType: G.Boolean
9337
9347
  } : Array.isArray(t) ? rb(o, t) : Ns(t) ? {
9338
9348
  ...o,
9339
- valueType: q.Object,
9349
+ valueType: G.Object,
9340
9350
  properties: Is(t),
9341
9351
  open: !0
9342
9352
  } : {
9343
9353
  ...o,
9344
- valueType: q.String
9354
+ valueType: G.String
9345
9355
  };
9346
9356
  }
9347
9357
  function Is(e, t = []) {
@@ -9353,19 +9363,19 @@ function ib(e, t) {
9353
9363
  function rb(e, t) {
9354
9364
  if (t.length > 0 && t.every((o) => typeof o == "string")) return {
9355
9365
  ...e,
9356
- valueType: q.Json,
9366
+ valueType: G.Json,
9357
9367
  editorKind: Dr
9358
9368
  };
9359
9369
  if (t.length > 0 && t.every((o) => typeof o == "number")) return {
9360
9370
  ...e,
9361
- valueType: q.Json,
9371
+ valueType: G.Json,
9362
9372
  editorKind: Rr
9363
9373
  };
9364
9374
  const n = {};
9365
9375
  for (const o of t.filter(Ns)) for (const [i, r] of Object.entries(o)) i in n || (n[i] = r);
9366
9376
  return {
9367
9377
  ...e,
9368
- valueType: q.Collection,
9378
+ valueType: G.Collection,
9369
9379
  item: {
9370
9380
  label: ob(e.label),
9371
9381
  properties: Is(n, ["id"]),
@@ -9373,7 +9383,7 @@ function rb(e, t) {
9373
9383
  }
9374
9384
  };
9375
9385
  }
9376
- var ab = (e) => e.valueType === q.Json && e.editorKind === void 0;
9386
+ var ab = (e) => e.valueType === G.Json && e.editorKind === void 0;
9377
9387
  function sb(e) {
9378
9388
  const t = si(e.component, e.component.slice(e.component.lastIndexOf(":") + 1));
9379
9389
  if (!t) return e;
@@ -9398,12 +9408,12 @@ var Tr = "Placement", cb = [{
9398
9408
  path: et,
9399
9409
  label: "Left",
9400
9410
  group: Tr,
9401
- valueType: q.Number
9411
+ valueType: G.Number
9402
9412
  }, {
9403
9413
  path: tt,
9404
9414
  label: "Top",
9405
9415
  group: Tr,
9406
- valueType: q.Number
9416
+ valueType: G.Number
9407
9417
  }];
9408
9418
  function db(e) {
9409
9419
  const t = new Set(e.properties.map((n) => n.path));
@@ -9430,11 +9440,11 @@ function pb(e, t, n) {
9430
9440
  compositionProfile: Qv(t),
9431
9441
  ...n ? { appearance: n } : {},
9432
9442
  icons: Jv(t.packages, e),
9433
- iconAdapters: Gl(e),
9434
- designTime: Gv(e, t),
9443
+ iconAdapters: ql(e),
9444
+ designTime: qv(e, t),
9435
9445
  packageDescriptorOf: (p) => {
9436
9446
  if (p.component.includes(":")) return p;
9437
- const m = Mt(p.component, t, o);
9447
+ const m = Ft(p.component, t, o);
9438
9448
  return (m && d.get(_t(m.package, m.name))) ?? p;
9439
9449
  },
9440
9450
  isKnownComponent: (p) => u.has(p),
@@ -9447,7 +9457,7 @@ function pb(e, t, n) {
9447
9457
  function mb(e, t, n) {
9448
9458
  const o = [];
9449
9459
  for (const i of new Set(Object.values(t).flat())) {
9450
- const r = Mt(i, n, t), s = r && e.find((l) => l.component === _t(r.package, r.name));
9460
+ const r = Ft(i, n, t), s = r && e.find((l) => l.component === _t(r.package, r.name));
9451
9461
  s && o.push({
9452
9462
  ...s,
9453
9463
  component: i
@@ -9480,7 +9490,7 @@ var ci = "Cratis.Icons.Lucide", hb = {
9480
9490
  }, fb = {
9481
9491
  library: ci,
9482
9492
  loadEntries: async () => (await import("./catalog-CZx3FR-E.js")).default
9483
- }, gb = Fu, vb = {
9493
+ }, gb = Mu, vb = {
9484
9494
  library: ci,
9485
9495
  loadGlyph: async ({ key: e }) => (await gb[e]?.())?.default
9486
9496
  }, bb = {
@@ -9529,9 +9539,9 @@ function Sb(e, t) {
9529
9539
  return t.filter((n) => fl(n, e));
9530
9540
  }
9531
9541
  function Cb(e, t) {
9532
- return [...new Set(Object.values(t).flat())].map((n) => Mt(n, e, t)).filter((n) => n !== void 0 && n.shadows.length > 0).sort((n, o) => n.name.localeCompare(o.name));
9542
+ return [...new Set(Object.values(t).flat())].map((n) => Ft(n, e, t)).filter((n) => n !== void 0 && n.shadows.length > 0).sort((n, o) => n.name.localeCompare(o.name));
9533
9543
  }
9534
- var qn = /* @__PURE__ */ (function(e) {
9544
+ var Gn = /* @__PURE__ */ (function(e) {
9535
9545
  return e.Fallback = "fallback", e.Explicit = "explicit", e.Automatic = "automatic", e;
9536
9546
  })({});
9537
9547
  function Tb(e) {
@@ -9576,7 +9586,7 @@ function di(e, t) {
9576
9586
  description: u.description,
9577
9587
  version: u.version,
9578
9588
  kind: u.kind,
9579
- inclusion: c === No ? qn.Fallback : l.has(c) ? qn.Explicit : qn.Automatic,
9589
+ inclusion: c === No ? Gn.Fallback : l.has(c) ? Gn.Explicit : Gn.Automatic,
9580
9590
  requiredBy: n.filter((d) => i.packages.includes(d.name) && d.dependencies.some((p) => p.name === c)).map((d) => d.name)
9581
9591
  }] : [];
9582
9592
  }),
@@ -9651,7 +9661,7 @@ function Db(e, t, n) {
9651
9661
  templatePacks: [...e.templatePacks],
9652
9662
  theme: e.theme,
9653
9663
  colorScheme: El.find((r) => r === e.colorScheme) ?? Ur.Light,
9654
- navigationMode: Gr.find((r) => r === e.navigationMode) ?? _o.Static,
9664
+ navigationMode: qr.find((r) => r === e.navigationMode) ?? _o.Static,
9655
9665
  accent: e.accent,
9656
9666
  defaultScreenTemplate: e.defaultScreenTemplate,
9657
9667
  ...t ? { sampleData: {
@@ -9663,7 +9673,7 @@ function Db(e, t, n) {
9663
9673
  function _b(e, t) {
9664
9674
  const n = t?.template;
9665
9675
  if (t === void 0 || n === void 0 || n.source.length === 0 || n.id.length === 0) return e;
9666
- const o = $b(t.optionsJson), i = yl(o.navigationMode), r = Gr.find((l) => l === bl.find((c) => c.id === i)?.legacy), s = typeof o.menuTheme == "string" && [
9676
+ const o = $b(t.optionsJson), i = yl(o.navigationMode), r = qr.find((l) => l === bl.find((c) => c.id === i)?.legacy), s = typeof o.menuTheme == "string" && [
9667
9677
  "light",
9668
9678
  "dark",
9669
9679
  "primary"
@@ -9702,7 +9712,7 @@ var Eb = {
9702
9712
  default: kn.Default,
9703
9713
  round: kn.Round
9704
9714
  };
9705
- function Fb(e) {
9715
+ function Mb(e) {
9706
9716
  const t = Eb[e.logoKind], n = t !== void 0 || e.initials !== "" || e.icon !== "" || e.image !== "";
9707
9717
  if (!(e.name === "" && !n && e.showName))
9708
9718
  return {
@@ -9716,9 +9726,9 @@ function Fb(e) {
9716
9726
  ...e.showName ? {} : { showName: !1 }
9717
9727
  };
9718
9728
  }
9719
- function Mb(e, t) {
9729
+ function Fb(e, t) {
9720
9730
  if (t == null) return e;
9721
- const n = t.identity === void 0 ? void 0 : Fb(t.identity), o = Ab[t.corners];
9731
+ const n = t.identity === void 0 ? void 0 : Mb(t.identity), o = Ab[t.corners];
9722
9732
  return {
9723
9733
  ...e,
9724
9734
  ...n === void 0 ? {} : { identity: n },
@@ -9728,7 +9738,7 @@ function Mb(e, t) {
9728
9738
  }
9729
9739
  function Lb(e, t, n, o, i = kt) {
9730
9740
  if (n === void 0 || n.root === void 0 && (n.style === void 0 || n.style === null)) return e;
9731
- const r = Mb(_b(Db(t, o), n.root), n.style), s = di(r, i), l = Ob(s, r);
9741
+ const r = Fb(_b(Db(t, o), n.root), n.style), s = di(r, i), l = Ob(s, r);
9732
9742
  return {
9733
9743
  ...e,
9734
9744
  ...l.appearance === void 0 ? {} : { appearance: l.appearance },
@@ -9759,7 +9769,7 @@ var jb = ({ document: e, runtime: t, resolveBinding: n, registry: o = t.registry
9759
9769
  return /* @__PURE__ */ a(Vr, {
9760
9770
  theme: l,
9761
9771
  className: `studio-profile-theme ${ri(l)}`,
9762
- children: /* @__PURE__ */ a(qr, {
9772
+ children: /* @__PURE__ */ a(Gr, {
9763
9773
  registry: t.iconAdapters,
9764
9774
  children: /* @__PURE__ */ a(zr, {
9765
9775
  storage: null,
@@ -9809,7 +9819,7 @@ function Kb(e, t = 240, n = Number.POSITIVE_INFINITY) {
9809
9819
  };
9810
9820
  }
9811
9821
  function Hb(e, t = 240) {
9812
- const n = typeof IntersectionObserver < "u", [o, i] = M(!n);
9822
+ const n = typeof IntersectionObserver < "u", [o, i] = F(!n);
9813
9823
  return ie(() => {
9814
9824
  const r = e.current;
9815
9825
  if (!r || !n) return;
@@ -9821,11 +9831,11 @@ function Hb(e, t = 240) {
9821
9831
  n
9822
9832
  ]), o;
9823
9833
  }
9824
- var Gb = [
9834
+ var qb = [
9825
9835
  "#f66",
9826
9836
  "#fa0",
9827
9837
  "#3c3"
9828
- ], qb = () => {
9838
+ ], Gb = () => {
9829
9839
  }, Ir = 16, R0 = ({ document: e, runtime: t, windowSize: n, width: o, title: i, openTitle: r, onClick: s, placeholder: l }) => {
9830
9840
  const c = J(null), u = Hb(c), d = j(() => Kb(n, o ?? 240, o === void 0 ? 112 : void 0), [
9831
9841
  n?.width,
@@ -9837,7 +9847,7 @@ var Gb = [
9837
9847
  }, f = /* @__PURE__ */ b(re, { children: [/* @__PURE__ */ b("div", {
9838
9848
  className: "screen-thumbnail__title-bar",
9839
9849
  style: { height: Ir },
9840
- children: [Gb.map((g) => /* @__PURE__ */ a("span", {
9850
+ children: [qb.map((g) => /* @__PURE__ */ a("span", {
9841
9851
  className: "screen-thumbnail__light",
9842
9852
  style: { borderColor: g }
9843
9853
  }, g)), i && /* @__PURE__ */ a("span", {
@@ -9860,7 +9870,7 @@ var Gb = [
9860
9870
  children: /* @__PURE__ */ a(jb, {
9861
9871
  document: e,
9862
9872
  runtime: t,
9863
- resolveBinding: qb,
9873
+ resolveBinding: Gb,
9864
9874
  registry: m
9865
9875
  })
9866
9876
  }) : l
@@ -9910,19 +9920,19 @@ function Jb(e) {
9910
9920
  };
9911
9921
  }
9912
9922
  var _0 = {
9913
- [G.Stack]: "Stack",
9914
- [G.Row]: "Row",
9915
- [G.Grid]: "Grid",
9916
- [G.Container]: "Container",
9917
- [G.Wrap]: "Wrap",
9918
- [G.Canvas]: "Canvas"
9923
+ [q.Stack]: "Stack",
9924
+ [q.Row]: "Row",
9925
+ [q.Grid]: "Grid",
9926
+ [q.Container]: "Container",
9927
+ [q.Wrap]: "Wrap",
9928
+ [q.Canvas]: "Canvas"
9919
9929
  }, Qb = {
9920
- [G.Stack]: mt,
9921
- [G.Row]: gc,
9922
- [G.Grid]: Mo,
9923
- [G.Container]: Fo,
9924
- [G.Wrap]: Lo,
9925
- [G.Canvas]: Hc
9930
+ [q.Stack]: mt,
9931
+ [q.Row]: gc,
9932
+ [q.Grid]: Fo,
9933
+ [q.Container]: Mo,
9934
+ [q.Wrap]: Lo,
9935
+ [q.Canvas]: Hc
9926
9936
  }, Yb = {
9927
9937
  text: Xl,
9928
9938
  button: Xt,
@@ -9953,7 +9963,7 @@ var _0 = {
9953
9963
  radioButton: _n,
9954
9964
  toggleSwitch: ra,
9955
9965
  slider: Qn,
9956
- rating: Fc,
9966
+ rating: Mc,
9957
9967
  knob: xc,
9958
9968
  calendar: wi,
9959
9969
  colorPicker: Dn,
@@ -9976,7 +9986,7 @@ var _0 = {
9976
9986
  pickList: ac,
9977
9987
  organizationChart: Dc,
9978
9988
  chart: Zr,
9979
- panel: Fo,
9989
+ panel: Mo,
9980
9990
  accordion: Sc,
9981
9991
  fieldset: ic,
9982
9992
  divider: ze,
@@ -9987,7 +9997,7 @@ var _0 = {
9987
9997
  stepper: En,
9988
9998
  dialog: Tt,
9989
9999
  confirmDialog: On,
9990
- overlayPanel: Gc,
10000
+ overlayPanel: qc,
9991
10001
  sidebar: In,
9992
10002
  tooltip: lc,
9993
10003
  menu: mt,
@@ -10059,7 +10069,7 @@ var _0 = {
10059
10069
  configPanel: Ci,
10060
10070
  pageHeader: Zt,
10061
10071
  mask: xi,
10062
- logo: Mc,
10072
+ logo: Fc,
10063
10073
  userMenu: Wc,
10064
10074
  themeSwitcher: Dn,
10065
10075
  layoutModeSwitcher: Vn,
@@ -10073,7 +10083,7 @@ var _0 = {
10073
10083
  [/button/i, Xt],
10074
10084
  [/image|media/i, ea],
10075
10085
  [/list/i, na],
10076
- [/panel/i, Fo],
10086
+ [/panel/i, Mo],
10077
10087
  [/message|toast/i, Xr],
10078
10088
  [/tree/i, Yn],
10079
10089
  [/page|screen/i, Jn]
@@ -10094,7 +10104,7 @@ var _0 = {
10094
10104
  return /* @__PURE__ */ a(t, { "aria-hidden": "true" });
10095
10105
  },
10096
10106
  drawer: {
10097
- layout: /* @__PURE__ */ a(Mo, { "aria-hidden": "true" }),
10107
+ layout: /* @__PURE__ */ a(Fo, { "aria-hidden": "true" }),
10098
10108
  package: (e) => {
10099
10109
  const t = ey[e] ?? ty;
10100
10110
  return /* @__PURE__ */ a(t, { "aria-hidden": "true" });
@@ -10113,10 +10123,10 @@ function A0(e, t, n) {
10113
10123
  icon: n?.[o.item]
10114
10124
  }));
10115
10125
  }
10116
- var F0 = /* @__PURE__ */ (function(e) {
10126
+ var M0 = /* @__PURE__ */ (function(e) {
10117
10127
  return e.Auto = "auto", e.Manual = "manual", e;
10118
10128
  })({});
10119
- function M0(e) {
10129
+ function F0(e) {
10120
10130
  return [
10121
10131
  {
10122
10132
  kind: Bt.DataContext,
@@ -10142,10 +10152,10 @@ export {
10142
10152
  ky as BindingMode,
10143
10153
  Sy as BindingNullBehavior,
10144
10154
  Cy as BindingSourceKind,
10145
- F0 as CommandFormMode,
10155
+ M0 as CommandFormMode,
10146
10156
  Ty as DestinationKind,
10147
10157
  Y as LayoutArrangement,
10148
- G as LayoutItem,
10158
+ q as LayoutItem,
10149
10159
  oe as Ownership,
10150
10160
  jb as PlayScreenView,
10151
10161
  Se as SceneDocumentProblem,
@@ -10158,7 +10168,7 @@ export {
10158
10168
  te as StructureEditRejection,
10159
10169
  vy as StructuredValueEditor,
10160
10170
  uy as asList,
10161
- M0 as bindingSourceChoices,
10171
+ F0 as bindingSourceChoices,
10162
10172
  of as browserWindowSizeStorage,
10163
10173
  At as commandNameOf,
10164
10174
  C0 as createScreenEditorEnvironment,
@@ -10187,7 +10197,7 @@ export {
10187
10197
  D0 as readThumbnailDocument,
10188
10198
  lf as resolveInitialWindowSize,
10189
10199
  Ls as scalarEditorKind,
10190
- Mv as screenEditorPrimeReactDefaults,
10200
+ Fv as screenEditorPrimeReactDefaults,
10191
10201
  P0 as screenEditorRuntimeForProfile,
10192
10202
  b0 as screenNamesOf,
10193
10203
  bt as sliceNamedBy,
@@ -10201,7 +10211,7 @@ export {
10201
10211
  A0 as toLayoutContainerDescriptors,
10202
10212
  Kv as toSceneCandidates,
10203
10213
  sy as withField,
10204
- Ms as withIdentities,
10214
+ Fs as withIdentities,
10205
10215
  my as withItem,
10206
10216
  It as withScreenAsPrimary,
10207
10217
  hy as withoutItem